@lokascript/hyperscript-adapter 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -3
- package/dist/hyperscript-i18n-ar.global.js +4 -4
- package/dist/hyperscript-i18n-bn.global.js +4 -4
- package/dist/hyperscript-i18n-de.global.js +4 -4
- package/dist/hyperscript-i18n-east-asian.global.js +4 -4
- package/dist/hyperscript-i18n-en.global.js +6 -6
- package/dist/hyperscript-i18n-es.global.js +4 -4
- package/dist/hyperscript-i18n-fr.global.js +4 -4
- package/dist/hyperscript-i18n-he.global.js +4 -4
- package/dist/hyperscript-i18n-hi.global.js +4 -4
- package/dist/hyperscript-i18n-id.global.js +4 -4
- package/dist/hyperscript-i18n-it.global.js +4 -4
- package/dist/hyperscript-i18n-ja.global.js +4 -4
- package/dist/hyperscript-i18n-ko.global.js +4 -4
- package/dist/hyperscript-i18n-ms.global.js +4 -4
- package/dist/hyperscript-i18n-pl.global.js +4 -4
- package/dist/hyperscript-i18n-pt.global.js +4 -4
- package/dist/hyperscript-i18n-qu.global.js +4 -4
- package/dist/hyperscript-i18n-ru.global.js +4 -4
- package/dist/hyperscript-i18n-slavic.global.js +4 -4
- package/dist/hyperscript-i18n-south-asian.global.js +4 -4
- package/dist/hyperscript-i18n-southeast-asian.global.js +4 -4
- package/dist/hyperscript-i18n-sw.global.js +4 -4
- package/dist/hyperscript-i18n-th.global.js +4 -4
- package/dist/hyperscript-i18n-tl.global.js +4 -4
- package/dist/hyperscript-i18n-tr.global.js +4 -4
- package/dist/hyperscript-i18n-uk.global.js +4 -4
- package/dist/hyperscript-i18n-vi.global.js +4 -4
- package/dist/hyperscript-i18n-western.global.js +4 -4
- package/dist/hyperscript-i18n-zh.global.js +4 -4
- package/dist/hyperscript-i18n.global.js +59 -7
- package/dist/hyperscript-i18n.global.js.map +1 -1
- package/package.json +1 -1
- package/src/hyperscript-renderer.ts +3 -0
|
@@ -1,8 +1,60 @@
|
|
|
1
|
-
"use strict";var HyperscriptI18n=(()=>{var zr=Object.defineProperty;var b0=Object.getOwnPropertyDescriptor;var x0=Object.getOwnPropertyNames;var D0=Object.prototype.hasOwnProperty;var T0=(e,r)=>{for(var t in r)zr(e,t,{get:r[t],enumerable:!0})},B0=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of x0(r))!D0.call(e,a)&&a!==t&&zr(e,a,{get:()=>r[a],enumerable:!(n=b0(r,a))||n.enumerable});return e};var F0=e=>B0(zr({},"__esModule",{value:!0}),e);var M3={};T0(M3,{plugin:()=>vr,preprocess:()=>ea,preprocessToEnglish:()=>Ie,resolveLanguage:()=>wt,semanticVersion:()=>N3,supportedLanguages:()=>I3});var kr=Object.defineProperty,S0=Object.getOwnPropertyDescriptor,na=Object.getOwnPropertyNames,P0=Object.prototype.hasOwnProperty,g=(e,r)=>function(){return e&&(r=(0,e[na(e)[0]])(e=0)),r},A=(e,r)=>{for(var t in r)kr(e,t,{get:r[t],enumerable:!0})},j0=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of na(r))!P0.call(e,a)&&a!==t&&kr(e,a,{get:()=>r[a],enumerable:!(n=S0(r,a))||n.enumerable});return e},L0=e=>j0(kr({},"__esModule",{value:!0}),e);function ia(e,r){let t={...e};for(let n of Object.keys(r)){let a=r[n],i=e[n];a!==void 0&&(typeof a=="object"&&a!==null&&!Array.isArray(a)&&typeof i=="object"&&i!==null&&!Array.isArray(i)?t[n]=ia(i,a):t[n]=a)}return t}function _0(e,r){return ia(e,r)}function Cr(e){if(!e.extends)return e;let r=J.get(e.extends);if(!r)return console.warn(`[Registry] Profile '${e.code}' extends '${e.extends}' but base is not registered. Make sure to import the base language before the variant.`),e;let t=Cr(r);return _0(t,e)}function L(e,r,t){X.set(e,r),J.set(e,t),me.delete(e)}function R0(e){X.set(e.language,e)}function N0(e){Tt=e}function Ar(e,r){Bt.set(e,r),me.delete(e)}function se(e){return e.split("-")[0]}function le(e){return e.includes("-")}function I0(e){let r=X.get(e);if(!r&&le(e)){let t=se(e);r=X.get(t)}if(!r){let t=Array.from(X.keys()).join(", ");throw new Error(`Language '${e}' is not registered. Registered languages: ${t||"none"}. Import the language module first: import '@lokascript/semantic/languages/${e}';`)}return r}function W0(e){let r=J.get(e);if(!r&&le(e)){let t=se(e);r=J.get(t)}if(!r){let t=Array.from(J.keys()).join(", ");throw new Error(`Language profile '${e}' is not registered. Registered languages: ${t||"none"}. Import the language module first: import '@lokascript/semantic/languages/${e}';`)}return Cr(r)}function M0(e){let r=X.get(e);return!r&&le(e)&&(r=X.get(se(e))),r}function Y(e){let r=J.get(e);return!r&&le(e)&&(r=J.get(se(e))),r?Cr(r):void 0}function Me(){return Array.from(X.keys())}function Dt(e){if(X.has(e)&&J.has(e))return!0;if(le(e)){let r=se(e);return X.has(r)&&J.has(r)}return!1}function O0(e,r){return I0(r).tokenize(e)}function pe(e){let r=me.get(e);if(!r&&le(e)&&(r=me.get(se(e))),r)return r;let t=Bt.get(e);if(!t&&le(e)&&(t=Bt.get(se(e))),t)return me.set(e,t),t;if(!Tt)throw new Error(`No patterns registered for language '${e}'. Either import the language module or set a pattern generator.`);let n=W0(e),a=Tt(n);return me.set(e,a),a}function q0(e,r){return pe(e).filter(t=>t.command===r).sort((t,n)=>n.priority-t.priority)}var X,J,me,Tt,Bt,T=g({"src/registry.ts"(){"use strict";X=new Map,J=new Map,me=new Map,Tt=null,Bt=new Map}});function m(e,r){return{start:e,end:r}}function c(e,r,t,n){if(typeof n=="string")return{value:e,kind:r,position:t,normalized:n};if(n){let{normalized:a,stem:i,stemConfidence:u}=n;return{value:e,kind:r,position:t,...a!==void 0&&{normalized:a},...i!==void 0&&{stem:i},...u!==void 0&&{stemConfidence:u}}}return{value:e,kind:r,position:t}}function b(e){return/\s/.test(e)}function _(e){return e==="#"||e==="."||e==="["||e==="@"||e==="*"||e==="<"}function R(e){return e==='"'||e==="'"||e==="`"||e==="\u300C"||e==="\u300D"}function k(e){return/\d/.test(e)}function V0(e){return/[a-zA-Z]/.test(e)}function x(e){return/[a-zA-Z0-9_-]/.test(e)}var P,wr=g({"src/tokenizers/token-utils.ts"(){"use strict";P=class{constructor(e,r){this.pos=0,this.tokens=e,this.language=r}peek(e=0){let r=this.pos+e;return r<0||r>=this.tokens.length?null:this.tokens[r]}advance(){if(this.isAtEnd())throw new Error("Unexpected end of token stream");return this.tokens[this.pos++]}isAtEnd(){return this.pos>=this.tokens.length}mark(){return{position:this.pos}}reset(e){this.pos=e.position}position(){return this.pos}remaining(){return this.tokens.slice(this.pos)}takeWhile(e){let r=[];for(;!this.isAtEnd()&&e(this.peek());)r.push(this.advance());return r}skipWhile(e){for(;!this.isAtEnd()&&e(this.peek());)this.advance()}}}});function Q(e){return r=>{let t=r.charCodeAt(0);return e.some(([n,a])=>t>=n&&t<=a)}}function aa(...e){return r=>e.some(t=>t(r))}function K(e){let r=n=>e.test(n);return{isLetter:r,isIdentifierChar:n=>r(n)||/[0-9_-]/.test(n)}}var K0=g({"src/tokenizers/char-classifiers.ts"(){"use strict"}});function U0(e,r){if(r>=e.length)return null;let t=e[r];if(!_(t))return null;let n=r,a="";if(t==="#"||t==="."){for(a+=e[n++];n<e.length&&x(e[n]);)a+=e[n++];if(a.length<=1)return null;if(n<e.length&&e[n]==="."&&t==="#"){let u=n+1;for(;u<e.length&&x(e[u]);)u++;if(u<e.length&&e[u]==="(")return a}}else if(t==="["){let i=1,u=!1,o=null,s=!1;for(a+=e[n++];n<e.length&&i>0;){let l=e[n];a+=l,s?s=!1:l==="\\"?s=!0:u?l===o&&(u=!1,o=null):l==='"'||l==="'"||l==="`"?(u=!0,o=l):l==="["?i++:l==="]"&&i--,n++}if(i!==0)return null}else if(t==="@"){for(a+=e[n++];n<e.length&&x(e[n]);)a+=e[n++];if(a.length<=1)return null}else if(t==="*"){for(a+=e[n++];n<e.length&&x(e[n]);)a+=e[n++];if(a.length<=1)return null}else if(t==="<"){if(a+=e[n++],n>=e.length||!V0(e[n]))return null;for(;n<e.length&&x(e[n]);)a+=e[n++];for(;n<e.length;){let i=e[n];if(i==="."){if(a+=e[n++],n>=e.length||!x(e[n]))return null;for(;n<e.length&&x(e[n]);)a+=e[n++]}else if(i==="#"){if(a+=e[n++],n>=e.length||!x(e[n]))return null;for(;n<e.length&&x(e[n]);)a+=e[n++]}else if(i==="["){let u=1,o=!1,s=null,l=!1;for(a+=e[n++];n<e.length&&u>0;){let p=e[n];a+=p,l?l=!1:p==="\\"?l=!0:o?p===s&&(o=!1,s=null):p==='"'||p==="'"||p==="`"?(o=!0,s=p):p==="["?u++:p==="]"&&u--,n++}if(u!==0)return null}else break}for(;n<e.length&&b(e[n]);)a+=e[n++];if(n<e.length&&e[n]==="/")for(a+=e[n++];n<e.length&&b(e[n]);)a+=e[n++];if(n>=e.length||e[n]!==">")return null;a+=e[n++]}return a||null}function ua(e,r){if(r>=e.length||e[r]!=="'"||r+1>=e.length||e[r+1].toLowerCase()!=="s")return!1;if(r+2>=e.length)return!0;let n=e[r+2];return b(n)||n==="*"||!x(n)}function H0(e,r){if(r>=e.length)return null;let t=e[r];if(!R(t)||t==="'"&&ua(e,r))return null;let a={'"':'"',"'":"'","`":"`","\u300C":"\u300D"}[t];if(!a)return null;let i=r+1,u=t,o=!1;for(;i<e.length;){let s=e[i];if(u+=s,o)o=!1;else if(s==="\\")o=!0;else if(s===a)return u;i++}return u}function N(e,r){if(r>=e.length)return!1;let t=e[r],n=e[r+1]||"",a=e[r+2]||"";if(t==="/"&&n!=="/"&&/[a-zA-Z0-9._-]/.test(n)||t==="/"&&n==="/"&&/[a-zA-Z]/.test(a)||t==="."&&(n==="/"||n==="."&&a==="/"))return!0;let i=e.slice(r,r+8).toLowerCase();return!!(i.startsWith("http://")||i.startsWith("https://"))}function $0(e,r){if(!N(e,r))return null;let t=r,n="",a=/[a-zA-Z0-9/:._\-?&=%@+~!$'()*,;[\]]/;for(;t<e.length;){let i=e[t];if(i==="#"){if(n.length>0&&/[a-zA-Z0-9/.]$/.test(n))for(n+=i,t++;t<e.length&&/[a-zA-Z0-9_-]/.test(e[t]);)n+=e[t++];break}if(a.test(i))n+=i,t++;else break}return n.length<2?null:n}function G0(e,r){if(r>=e.length)return null;let t=e[r];if(!k(t)&&t!=="-"&&t!=="+")return null;let n=r,a="";if((e[n]==="-"||e[n]==="+")&&(a+=e[n++]),n>=e.length||!k(e[n]))return null;for(;n<e.length&&k(e[n]);)a+=e[n++];if(n<e.length&&e[n]===".")for(a+=e[n++];n<e.length&&k(e[n]);)a+=e[n++];return n<e.length&&(e.slice(n,n+2)==="ms"?a+="ms":(e[n]==="s"||e[n]==="m"||e[n]==="h")&&(a+=e[n])),a}var oa=g({"src/tokenizers/extractors.ts"(){"use strict";wr()}}),br,I,X0=g({"src/tokenizers/base-tokenizer.ts"(){"use strict";wr(),oa(),br=class z0{constructor(){this.profileKeywords=[],this.profileKeywordMap=new Map}tryPropertyAccess(r,t,n){if(r[t]!==".")return!1;let a=n[n.length-1],i=a&&a.position.end<t;if(a&&!i&&(a.kind==="identifier"||a.kind==="keyword"||a.kind==="selector"))return n.push(c(".","operator",m(t,t+1))),!0;let s=t+1;for(;s<r.length&&x(r[s]);)s++;return s<r.length&&r[s]==="("?(n.push(c(".","operator",m(t,t+1))),!0):!1}initializeKeywordsFromProfile(r,t=[]){let n=new Map;if(r.keywords){for(let[a,i]of Object.entries(r.keywords))if(n.set(i.primary,{native:i.primary,normalized:i.normalized||a}),i.alternatives)for(let u of i.alternatives)n.set(u,{native:u,normalized:i.normalized||a})}if(r.references){for(let[a,i]of Object.entries(r.references))n.set(i,{native:i,normalized:a});for(let a of Object.keys(r.references))n.has(a)||n.set(a,{native:a,normalized:a})}if(r.roleMarkers){for(let[a,i]of Object.entries(r.roleMarkers))if(i.primary&&n.set(i.primary,{native:i.primary,normalized:a}),i.alternatives)for(let u of i.alternatives)n.set(u,{native:u,normalized:a})}for(let a of t)n.set(a.native,a);this.profileKeywords=Array.from(n.values()).sort((a,i)=>i.native.length-a.native.length),this.profileKeywordMap=new Map;for(let a of this.profileKeywords){this.profileKeywordMap.set(a.native.toLowerCase(),a);let i=this.removeDiacritics(a.native);i!==a.native&&!this.profileKeywordMap.has(i.toLowerCase())&&this.profileKeywordMap.set(i.toLowerCase(),a)}}removeDiacritics(r){return r.replace(/[\u064B-\u0652\u0670]/g,"")}tryProfileKeyword(r,t){for(let n of this.profileKeywords)if(r.slice(t).startsWith(n.native))return c(n.native,"keyword",m(t,t+n.native.length),n.normalized);return null}isKeywordStart(r,t){let n=r.slice(t);return this.profileKeywords.some(a=>n.startsWith(a.native))}lookupKeyword(r){return this.profileKeywordMap.get(r.toLowerCase())}isKeyword(r){return this.profileKeywordMap.has(r.toLowerCase())}setNormalizer(r){this.normalizer=r}tryNormalize(r){if(!this.normalizer)return null;let t=this.normalizer.normalize(r);return t.stem!==r&&t.confidence>=.7?t:null}tryMorphKeywordMatch(r,t,n){let a=this.tryNormalize(r);if(!a)return null;let i=this.lookupKeyword(a.stem);if(!i)return null;let u={normalized:i.normalized,stem:a.stem,stemConfidence:a.confidence};return c(r,"keyword",m(t,n),u)}trySelector(r,t){let n=U0(r,t);return n?c(n,"selector",m(t,t+n.length)):null}tryEventModifier(r,t){if(r[t]!==".")return null;let n=r.slice(t).match(/^\.(?:once|debounce|throttle|queue)(?:\(([^)]+)\))?(?:\s|$|\.)/);if(!n)return null;let a=n[0].replace(/(\s|\.)$/,""),i=a.slice(1).split("(")[0],u=n[1];return{...c(a,"event-modifier",m(t,t+a.length)),metadata:{modifierName:i,value:u?i==="queue"?u:parseInt(u,10):void 0}}}tryString(r,t){let n=H0(r,t);return n?c(n,"literal",m(t,t+n.length)):null}tryNumber(r,t){let n=G0(r,t);return n?c(n,"literal",m(t,t+n.length)):null}tryMatchTimeUnit(r,t,n,a=!1){let i=t;if(a)for(;i<r.length&&b(r[i]);)i++;let u=r.slice(i);for(let o of n){let s=u.slice(0,o.length);if(o.caseInsensitive?s.toLowerCase()===o.pattern.toLowerCase():s===o.pattern){if(o.notFollowedBy&&(u[o.length]||"")===o.notFollowedBy)continue;if(o.checkBoundary){let p=u[o.length]||"";if(x(p))continue}return{suffix:o.suffix,endPos:i+o.length}}}return null}parseBaseNumber(r,t,n=!0){let a=t,i="";if(n&&(r[a]==="-"||r[a]==="+")&&(i+=r[a++]),a>=r.length||!k(r[a]))return null;for(;a<r.length&&k(r[a]);)i+=r[a++];if(a<r.length&&r[a]===".")for(i+=r[a++];a<r.length&&k(r[a]);)i+=r[a++];return!i||i==="-"||i==="+"?null:{number:i,endPos:a}}tryNumberWithTimeUnits(r,t,n,a={}){let{allowSign:i=!0,skipWhitespace:u=!1}=a,o=this.parseBaseNumber(r,t,i);if(!o)return null;let{number:s,endPos:l}=o,p=[...n,...z0.STANDARD_TIME_UNITS],y=this.tryMatchTimeUnit(r,l,p,u);return y&&(s+=y.suffix,l=y.endPos),c(s,"literal",m(t,l))}tryUrl(r,t){let n=$0(r,t);return n?c(n,"url",m(t,t+n.length)):null}tryVariableRef(r,t){if(r[t]!==":"||t+1>=r.length||!x(r[t+1]))return null;let n=t+1;for(;n<r.length&&x(r[n]);)n++;let a=r.slice(t,n);return c(a,"identifier",m(t,n))}tryOperator(r,t){let n=r.slice(t,t+2);if(["==","!=","<=",">=","&&","||","->"].includes(n))return c(n,"operator",m(t,t+2));let a=r[t];return["<",">","!","+","-","*","/","="].includes(a)?c(a,"operator",m(t,t+1)):["(",")","{","}",",",";",":"].includes(a)?c(a,"punctuation",m(t,t+1)):null}tryMultiCharParticle(r,t,n){for(let a of n)if(r.slice(t,t+a.length)===a)return c(a,"particle",m(t,t+a.length));return null}},br.STANDARD_TIME_UNITS=[{pattern:"ms",suffix:"ms",length:2},{pattern:"s",suffix:"s",length:1,checkBoundary:!0},{pattern:"m",suffix:"m",length:1,checkBoundary:!0,notFollowedBy:"s"},{pattern:"h",suffix:"h",length:1,checkBoundary:!0}],I=br}}),W=g({"src/tokenizers/base.ts"(){"use strict";wr(),K0(),oa(),X0()}});function j(e){return{stem:e,confidence:1}}function z(e,r,t){return t?{stem:e,confidence:r,metadata:t}:{stem:e,confidence:r}}var H=g({"src/tokenizers/morphology/types.ts"(){"use strict"}});function Q0(e){let r=e.charCodeAt(0);return r>=1536&&r<=1791||r>=1872&&r<=1919||r>=2208&&r<=2303||r>=64336&&r<=65023||r>=65136&&r<=65279}function Z0(e){for(let r of e)if(Q0(r))return!0;return!1}function Y0(e){return e.replace(/[\u064B-\u0652\u0670]/g,"")}var sa,la,pa,ma,xr,J0,ep=g({"src/tokenizers/morphology/arabic-normalizer.ts"(){"use strict";H(),sa=[{pattern:"\u0648\u0627\u0644",confidencePenalty:.15,prefixType:"conjunction"},{pattern:"\u0641\u0627\u0644",confidencePenalty:.15,prefixType:"conjunction"},{pattern:"\u0628\u0627\u0644",confidencePenalty:.15,prefixType:"preposition"},{pattern:"\u0643\u0627\u0644",confidencePenalty:.15,prefixType:"preposition"},{pattern:"\u0644\u0644",confidencePenalty:.12,prefixType:"preposition"}],la=[{pattern:"\u0627\u0644",confidencePenalty:.08,prefixType:"article",minRemaining:2},{pattern:"\u0648",confidencePenalty:.08,prefixType:"conjunction",minRemaining:3},{pattern:"\u0641",confidencePenalty:.08,prefixType:"conjunction",minRemaining:3},{pattern:"\u0628",confidencePenalty:.1,prefixType:"preposition",minRemaining:3},{pattern:"\u0644",confidencePenalty:.1,prefixType:"preposition",minRemaining:3},{pattern:"\u0643",confidencePenalty:.1,prefixType:"preposition",minRemaining:3}],pa=[{pattern:"\u064A",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u062A",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0646",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0623",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0627",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3}],ma=[{pattern:"\u0648\u0646",confidencePenalty:.1,type:"masculine-plural"},{pattern:"\u064A\u0646",confidencePenalty:.1,type:"masculine-plural-accusative"},{pattern:"\u0627\u062A",confidencePenalty:.1,type:"feminine-plural"},{pattern:"\u0627\u0646",confidencePenalty:.1,type:"dual-nominative"},{pattern:"\u064A\u0646",confidencePenalty:.1,type:"dual-accusative"},{pattern:"\u0647\u0627",confidencePenalty:.1,type:"pronoun-her"},{pattern:"\u0647\u0645",confidencePenalty:.1,type:"pronoun-them"},{pattern:"\u0647\u0646",confidencePenalty:.1,type:"pronoun-them-f"},{pattern:"\u0646\u0627",confidencePenalty:.1,type:"pronoun-us"},{pattern:"\u0643\u0645",confidencePenalty:.1,type:"pronoun-you-pl"},{pattern:"\u0643",confidencePenalty:.08,type:"pronoun-you"},{pattern:"\u0647",confidencePenalty:.08,type:"pronoun-him"},{pattern:"\u064A",confidencePenalty:.08,type:"pronoun-me"},{pattern:"\u0629",confidencePenalty:.08,type:"feminine"}],xr=class{constructor(){this.language="ar"}isNormalizable(e){return!(!Z0(e)||e.length<2)}normalize(e){let r=Y0(e),t=1,n=[],a=[];for(let u of sa)if(r.startsWith(u.pattern)){let o=r.slice(u.pattern.length);if(o.length>=2){r=o,t-=u.confidencePenalty,n.push(u.pattern);break}}if(n.length===0){for(let u of la)if(r.startsWith(u.pattern)){let o=r.slice(u.pattern.length),s=u.minRemaining??2;if(o.length>=s){r=o,t-=u.confidencePenalty,n.push(u.pattern);break}}}if(!(r.endsWith("\u0627\u062A")||r.endsWith("\u0629")||r.endsWith("\u0648\u0646")||r.endsWith("\u064A\u0646")||r.endsWith("\u0647\u0627")||r.endsWith("\u0647\u0645")||r.endsWith("\u0647\u0646")||r.endsWith("\u0646\u0627")||r.endsWith("\u0643\u0645"))&&(n.length===0||n[0]==="\u0648"||n[0]==="\u0641")){for(let u of pa)if(r.startsWith(u.pattern)){let o=r.slice(u.pattern.length),s=u.minRemaining??3;if(o.length>=s){r=o,t-=u.confidencePenalty,n.push(u.pattern);break}}}for(let u of ma)if(r.endsWith(u.pattern)){let o=r.slice(0,-u.pattern.length);o.length>=2&&(r=o,t-=u.confidencePenalty,a.push(u.pattern))}return t=Math.max(.5,t),n.length===0&&a.length===0?j(e):z(r,t,{removedPrefixes:n,removedSuffixes:a})}},J0=new xr}}),ca={};A(ca,{arabicProfile:()=>ze});var ze,Oe=g({"src/generators/profiles/arabic.ts"(){"use strict";ze={code:"ar",name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",direction:"rtl",wordOrder:"VSO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"\u0623\u0646\u0627",it:"\u0647\u0648",you:"\u0623\u0646\u062A",result:"\u0627\u0644\u0646\u062A\u064A\u062C\u0629",event:"\u0627\u0644\u062D\u062F\u062B",target:"\u0627\u0644\u0647\u062F\u0641",body:"\u0627\u0644\u062C\u0633\u0645"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u0644\u064A",it:"\u0644\u0647",you:"\u0644\u0643"},keywords:{\u0644\u064A:"me",\u0644\u0643:"you",\u0644\u0647:"it",\u0644\u0647\u0627:"it"}},roleMarkers:{destination:{primary:"\u0639\u0644\u0649",alternatives:["\u0641\u064A","\u0625\u0644\u0649","\u0628","\u0642\u0628\u0644","\u0628\u0639\u062F"],position:"before"},source:{primary:"\u0645\u0646",position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0628\u0640",alternatives:["\u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645"],position:"before"}},keywords:{toggle:{primary:"\u0628\u062F\u0651\u0644",alternatives:["\u0628\u062F\u0644","\u063A\u064A\u0651\u0631","\u063A\u064A\u0631"],normalized:"toggle"},add:{primary:"\u0623\u0636\u0641",alternatives:["\u0627\u0636\u0641","\u0632\u0650\u062F"],normalized:"add"},remove:{primary:"\u0627\u062D\u0630\u0641",alternatives:["\u0623\u0632\u0644","\u0627\u0645\u0633\u062D"],normalized:"remove"},put:{primary:"\u0636\u0639",alternatives:["\u0627\u062C\u0639\u0644"],normalized:"put"},append:{primary:"\u0623\u0644\u062D\u0642",normalized:"append"},prepend:{primary:"\u0633\u0628\u0642",normalized:"prepend"},take:{primary:"\u062E\u0630",normalized:"take"},make:{primary:"\u0627\u0635\u0646\u0639",alternatives:["\u0623\u0646\u0634\u0626"],normalized:"make"},clone:{primary:"\u0627\u0633\u062A\u0646\u0633\u062E",alternatives:["\u0627\u0646\u0633\u062E"],normalized:"clone"},swap:{primary:"\u0627\u0633\u062A\u0628\u062F\u0644",alternatives:["\u062A\u0628\u0627\u062F\u0644"],normalized:"swap"},morph:{primary:"\u062D\u0648\u0651\u0644",alternatives:["\u063A\u064A\u0651\u0631"],normalized:"morph"},set:{primary:"\u0627\u0636\u0628\u0637",alternatives:["\u0639\u064A\u0651\u0646","\u062D\u062F\u062F"],normalized:"set"},get:{primary:"\u0627\u062D\u0635\u0644",normalized:"get"},increment:{primary:"\u0632\u0650\u062F",alternatives:["\u0632\u062F","\u0627\u0631\u0641\u0639"],normalized:"increment"},decrement:{primary:"\u0623\u0646\u0642\u0635",alternatives:["\u0627\u0646\u0642\u0635","\u0642\u0644\u0644"],normalized:"decrement"},log:{primary:"\u0633\u062C\u0644",normalized:"log"},show:{primary:"\u0627\u0638\u0647\u0631",alternatives:["\u0623\u0638\u0647\u0631","\u0627\u0639\u0631\u0636"],normalized:"show"},hide:{primary:"\u0627\u062E\u0641",alternatives:["\u0623\u062E\u0641\u0650","\u0627\u062E\u0641\u064A","\u0623\u062E\u0641"],normalized:"hide"},transition:{primary:"\u0627\u0646\u062A\u0642\u0627\u0644",alternatives:["\u0627\u0646\u062A\u0642\u0644"],normalized:"transition"},on:{primary:"\u0639\u0644\u0649",alternatives:["\u0639\u0646\u062F","\u0644\u062F\u0649","\u062D\u064A\u0646"],normalized:"on"},trigger:{primary:"\u062A\u0634\u063A\u064A\u0644",alternatives:["\u0623\u0637\u0644\u0642","\u0641\u0639\u0651\u0644"],normalized:"trigger"},send:{primary:"\u0623\u0631\u0633\u0644",normalized:"send"},focus:{primary:"\u062A\u0631\u0643\u064A\u0632",alternatives:["\u0631\u0643\u0632"],normalized:"focus"},blur:{primary:"\u0636\u0628\u0627\u0628\u064A\u0629",alternatives:["\u0634\u0648\u0634"],normalized:"blur"},go:{primary:"\u0627\u0630\u0647\u0628",alternatives:["\u0627\u0646\u062A\u0642\u0644"],normalized:"go"},wait:{primary:"\u0627\u0646\u062A\u0638\u0631",normalized:"wait"},fetch:{primary:"\u0627\u062D\u0636\u0631",alternatives:["\u062C\u0644\u0628"],normalized:"fetch"},settle:{primary:"\u0627\u0633\u062A\u0642\u0631",normalized:"settle"},if:{primary:"\u0625\u0630\u0627",normalized:"if"},when:{primary:"\u0639\u0646\u062F\u0645\u0627",normalized:"when"},where:{primary:"\u0623\u064A\u0646",normalized:"where"},else:{primary:"\u0648\u0625\u0644\u0627",alternatives:["\u062E\u0644\u0627\u0641 \u0630\u0644\u0643"],normalized:"else"},repeat:{primary:"\u0643\u0631\u0631",normalized:"repeat"},for:{primary:"\u0644\u0643\u0644",normalized:"for"},while:{primary:"\u0628\u064A\u0646\u0645\u0627",normalized:"while"},continue:{primary:"\u0648\u0627\u0635\u0644",normalized:"continue"},halt:{primary:"\u0623\u0648\u0642\u0641",alternatives:["\u062A\u0648\u0642\u0641"],normalized:"halt"},throw:{primary:"\u0627\u0631\u0645",alternatives:["\u0627\u0631\u0645\u0650"],normalized:"throw"},call:{primary:"\u0627\u0633\u062A\u062F\u0639",alternatives:["\u0646\u0627\u062F\u0650"],normalized:"call"},return:{primary:"\u0627\u0631\u062C\u0639",alternatives:["\u0639\u064F\u062F"],normalized:"return"},then:{primary:"\u062B\u0645",alternatives:["\u0628\u0639\u062F\u0647\u0627","\u062B\u0645\u0651"],normalized:"then"},and:{primary:"\u0648\u0623\u064A\u0636\u0627\u064B",alternatives:["\u0623\u064A\u0636\u0627\u064B"],normalized:"and"},end:{primary:"\u0646\u0647\u0627\u064A\u0629",alternatives:["\u0627\u0646\u062A\u0647\u0649","\u0622\u062E\u0631"],normalized:"end"},js:{primary:"\u062C\u0627\u0641\u0627\u0633\u0643\u0631\u0628\u062A",alternatives:["js"],normalized:"js"},async:{primary:"\u0645\u062A\u0632\u0627\u0645\u0646",normalized:"async"},tell:{primary:"\u0623\u062E\u0628\u0631",normalized:"tell"},default:{primary:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",normalized:"default"},init:{primary:"\u062A\u0647\u064A\u0626\u0629",alternatives:["\u0628\u062F\u0621"],normalized:"init"},behavior:{primary:"\u0633\u0644\u0648\u0643",normalized:"behavior"},install:{primary:"\u062A\u062B\u0628\u064A\u062A",alternatives:["\u062B\u0628\u0651\u062A"],normalized:"install"},measure:{primary:"\u0642\u064A\u0627\u0633",alternatives:["\u0642\u0650\u0633"],normalized:"measure"},beep:{primary:"\u0635\u0641\u0651\u0631",normalized:"beep"},break:{primary:"\u062A\u0648\u0642\u0641",normalized:"break"},copy:{primary:"\u0627\u0646\u0633\u062E",normalized:"copy"},exit:{primary:"\u0627\u062E\u0631\u062C",normalized:"exit"},pick:{primary:"\u0627\u062E\u062A\u0631",normalized:"pick"},render:{primary:"\u0627\u0631\u0633\u0645",normalized:"render"},into:{primary:"\u0641\u064A",alternatives:["\u0625\u0644\u0649"],normalized:"into"},before:{primary:"\u0642\u0628\u0644",normalized:"before"},after:{primary:"\u0628\u0639\u062F",normalized:"after"},until:{primary:"\u062D\u062A\u0649",normalized:"until"},event:{primary:"\u062D\u062F\u062B",normalized:"event"},from:{primary:"\u0645\u0646",normalized:"from"}},tokenization:{prefixes:["\u0627\u0644","\u0648","\u0641","\u0628","\u0643","\u0644"]},eventHandler:{eventMarker:{primary:"\u0639\u0646\u062F",alternatives:["\u0641\u064A","\u0644\u062F\u0649","\u0639\u0646\u062F\u0645\u0627","\u062D\u064A\u0646","\u062D\u064A\u0646\u0645\u0627","\u0644\u0645\u0651\u0627","\u0644\u0645\u0627"],position:"before"},temporalMarkers:["\u0639\u0646\u062F\u0645\u0627","\u062D\u064A\u0646","\u0644\u0645\u0651\u0627"],negationMarker:{primary:"\u0639\u062F\u0645",alternatives:["\u0639\u062F\u0645"],position:"before"}}}}}),da={};A(da,{ArabicTokenizer:()=>Tr,arabicTokenizer:()=>St});var ee,ya,Ft,Dr,qe,fa,va,Tr,St,Br=g({"src/tokenizers/arabic.ts"(){"use strict";W(),ep(),Oe(),ee=Q([[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]]),ya=new Set(["\u0628\u0640","\u0644\u0640","\u0643\u0640","\u0648\u0640"]),Ft=new Map([["\u0648",{normalized:"and",type:"conjunction"}],["\u0641",{normalized:"then",type:"conjunction"}],["\u0628",{normalized:"with",type:"preposition"}],["\u0644",{normalized:"to",type:"preposition"}],["\u0643",{normalized:"like",type:"preposition"}],["\u0648\u0644",{normalized:"and-to",type:"conjunction"}],["\u0648\u0628",{normalized:"and-with",type:"conjunction"}],["\u0648\u0643",{normalized:"and-like",type:"conjunction"}],["\u0641\u0644",{normalized:"then-to",type:"conjunction"}],["\u0641\u0628",{normalized:"then-with",type:"conjunction"}],["\u0641\u0643",{normalized:"then-like",type:"conjunction"}]]),Dr=new Map([["\u0639\u0646\u062F\u0645\u0627",{normalized:"on",formality:"formal",confidence:.95,description:"when (formal MSA)"}],["\u062D\u064A\u0646\u0645\u0627",{normalized:"on",formality:"formal",confidence:.93,description:"when/whenever (formal)"}],["\u0639\u0646\u062F",{normalized:"on",formality:"neutral",confidence:.88,description:"at/when (neutral)"}],["\u062D\u064A\u0646",{normalized:"on",formality:"neutral",confidence:.85,description:"when/time (neutral)"}],["\u0644\u0645\u0651\u0627",{normalized:"on",formality:"dialectal",confidence:.7,description:"when (dialectal, with shadda)"}],["\u0644\u0645\u0627",{normalized:"on",formality:"dialectal",confidence:.68,description:"when (dialectal, no diacritic)"}],["\u0644\u062F\u0649",{normalized:"on",formality:"neutral",confidence:.82,description:"at/with (temporal)"}]]),qe=new Set(["\u0641\u064A","\u0639\u0644\u0649","\u0645\u0646","\u0625\u0644\u0649","\u0627\u0644\u0649","\u0645\u0639","\u0639\u0646","\u0642\u0628\u0644","\u0628\u0639\u062F","\u0628\u064A\u0646"]),fa=[{native:"\u0635\u062D\u064A\u062D",normalized:"true"},{native:"\u062E\u0637\u0623",normalized:"false"},{native:"null",normalized:"null"},{native:"\u0641\u0627\u0631\u063A",normalized:"null"},{native:"\u063A\u064A\u0631 \u0645\u0639\u0631\u0641",normalized:"undefined"},{native:"\u0627\u0644\u0623\u0648\u0644",normalized:"first"},{native:"\u0623\u0648\u0644",normalized:"first"},{native:"\u0627\u0644\u0623\u062E\u064A\u0631",normalized:"last"},{native:"\u0622\u062E\u0631",normalized:"last"},{native:"\u0627\u0644\u062A\u0627\u0644\u064A",normalized:"next"},{native:"\u0627\u0644\u0633\u0627\u0628\u0642",normalized:"previous"},{native:"\u0627\u0644\u0623\u0642\u0631\u0628",normalized:"closest"},{native:"\u0627\u0644\u0623\u0628",normalized:"parent"},{native:"\u0627\u0644\u0646\u0642\u0631",normalized:"click"},{native:"\u0646\u0642\u0631",normalized:"click"},{native:"\u0627\u0644\u0625\u062F\u062E\u0627\u0644",normalized:"input"},{native:"\u0625\u062F\u062E\u0627\u0644",normalized:"input"},{native:"\u0627\u0644\u062A\u063A\u064A\u064A\u0631",normalized:"change"},{native:"\u062A\u063A\u064A\u064A\u0631",normalized:"change"},{native:"\u0627\u0644\u0625\u0631\u0633\u0627\u0644",normalized:"submit"},{native:"\u0625\u0631\u0633\u0627\u0644",normalized:"submit"},{native:"\u0627\u0644\u062A\u0631\u0643\u064A\u0632",normalized:"focus"},{native:"\u0641\u0642\u062F\u0627\u0646 \u0627\u0644\u062A\u0631\u0643\u064A\u0632",normalized:"blur"},{native:"\u0636\u063A\u0637",normalized:"keydown"},{native:"\u0631\u0641\u0639",normalized:"keyup"},{native:"\u062A\u0645\u0631\u064A\u0631 \u0627\u0644\u0641\u0623\u0631\u0629",normalized:"mouseover"},{native:"\u0645\u063A\u0627\u062F\u0631\u0629 \u0627\u0644\u0641\u0623\u0631\u0629",normalized:"mouseout"},{native:"\u062A\u062D\u0645\u064A\u0644",normalized:"load"},{native:"\u062A\u0645\u0631\u064A\u0631",normalized:"scroll"},{native:"\u0647\u064A",normalized:"it"},{native:"\u062B\u0627\u0646\u064A\u0629",normalized:"s"},{native:"\u062B\u0648\u0627\u0646\u064A",normalized:"s"},{native:"\u0645\u0644\u064A \u062B\u0627\u0646\u064A\u0629",normalized:"ms"},{native:"\u062F\u0642\u064A\u0642\u0629",normalized:"m"},{native:"\u062F\u0642\u0627\u0626\u0642",normalized:"m"},{native:"\u0633\u0627\u0639\u0629",normalized:"h"},{native:"\u0633\u0627\u0639\u0627\u062A",normalized:"h"}],va=[{pattern:"\u0645\u0644\u064A \u062B\u0627\u0646\u064A\u0629",suffix:"ms",length:9,caseInsensitive:!1},{pattern:"\u0645\u0644\u064A_\u062B\u0627\u0646\u064A\u0629",suffix:"ms",length:8,caseInsensitive:!1},{pattern:"\u062F\u0642\u0627\u0626\u0642",suffix:"m",length:5,caseInsensitive:!1},{pattern:"\u062F\u0642\u064A\u0642\u0629",suffix:"m",length:5,caseInsensitive:!1},{pattern:"\u062B\u0648\u0627\u0646\u064A",suffix:"s",length:5,caseInsensitive:!1},{pattern:"\u062B\u0627\u0646\u064A\u0629",suffix:"s",length:5,caseInsensitive:!1},{pattern:"\u0633\u0627\u0639\u0627\u062A",suffix:"h",length:5,caseInsensitive:!1},{pattern:"\u0633\u0627\u0639\u0629",suffix:"h",length:4,caseInsensitive:!1}],Tr=class extends I{constructor(){super(),this.language="ar",this.direction="rtl",this.initializeKeywordsFromProfile(ze,fa),this.normalizer=new xr}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])){let i=this.extractArabicNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}let a=this.tryPreposition(e,t);if(a){r.push(a),t=a.position.end;continue}if(ee(e[t])){let i=this.tryProclitic(e,t);if(i){r.push(i.conjunction),t=i.conjunction.position.end;continue}let u=this.extractArabicWord(e,t);if(u){r.push(u),t=u.position.end;continue}}if(x(e[t])){let i=this.extractAsciiWord(e,t);if(i){r.push(i),t=i.position.end;continue}}t++}return new P(r,"ar")}classifyToken(e){return qe.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}tryPreposition(e,r){let t=Array.from(qe).sort((n,a)=>a.length-n.length);for(let n of t)if(e.slice(r,r+n.length)===n){let a=r+n.length;if(a>=e.length||b(e[a])||!ee(e[a]))return{...c(n,"particle",m(r,a)),metadata:{prepositionValue:n}}}return null}tryProclitic(e,r){let t=r;for(;t<e.length&&(ee(e[t])||e[t]==="\u0640");)t++;let n=e.slice(r,t);if(this.lookupKeyword(n)||Dr.has(n)||qe.has(n))return null;if(r+2<=e.length){let p=e.slice(r,r+2),y=Ft.get(p);if(y){let v=r+2;if(v<e.length&&ee(e[v])){let f=0,d=v;for(;d<e.length&&ee(e[d]);)f++,d++;if(f>=2)if(Ft.get(e[r])){let C=e.slice(r+1,t);if(!this.lookupKeyword(C)){let B=y.type==="conjunction"?"conjunction":"particle";return{conjunction:c(p,B,m(r,v),y.normalized)}}}else{let C=y.type==="conjunction"?"conjunction":"particle";return{conjunction:c(p,C,m(r,v),y.normalized)}}}}}let a=e[r],i=Ft.get(a);if(!i)return null;let u=r+1;if(u>=e.length||!ee(e[u]))return null;let o=0,s=u;for(;s<e.length&&ee(e[s]);)o++,s++;if(o<2)return null;let l=i.type==="conjunction"?"conjunction":"particle";return{conjunction:c(a,l,m(r,u),i.normalized)}}extractArabicWord(e,r){let t=r,n="";for(let o of ya){let s=o.replace("\u0640","");e.slice(t,t+s.length)}for(;t<e.length&&(ee(e[t])||e[t]==="\u0640");)n+=e[t++];if(!n)return null;let a=Dr.get(n);if(a)return{...c(n,"keyword",m(r,t),a.normalized),metadata:{temporalFormality:a.formality,temporalConfidence:a.confidence}};let i=this.lookupKeyword(n);if(i)return c(n,"keyword",m(r,t),i.normalized);if(qe.has(n))return{...c(n,"particle",m(r,t)),metadata:{prepositionValue:n}};let u=this.tryMorphKeywordMatch(n,r,t);return u||c(n,"identifier",m(r,t))}extractAsciiWord(e,r){let t=r,n="";for(;t<e.length&&x(e[t]);)n+=e[t++];return n?c(n,"identifier",m(r,t)):null}extractArabicNumber(e,r){return this.tryNumberWithTimeUnits(e,r,va,{allowSign:!1,skipWhitespace:!0})}},St=new Tr}}),ha={};A(ha,{bengaliProfile:()=>Ve});var Ve,Pt=g({"src/generators/profiles/bengali.ts"(){"use strict";Ve={code:"bn",name:"Bengali",nativeName:"\u09AC\u09BE\u0982\u09B2\u09BE",direction:"ltr",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"end",suffixes:["\u09C1\u09A8","\u09CB","\u09BE","\u09C7","\u09BF"],subjectDrop:!0},references:{me:"\u0986\u09AE\u09BF",it:"\u098F\u099F\u09BF",you:"\u0986\u09AA\u09A8\u09BF",result:"\u09AB\u09B2\u09BE\u09AB\u09B2",event:"\u0998\u099F\u09A8\u09BE",target:"\u09B2\u0995\u09CD\u09B7\u09CD\u09AF",body:"\u09AC\u09A1\u09BF"},possessive:{marker:"\u09B0",markerPosition:"between",keywords:{\u0986\u09AE\u09BE\u09B0:"me",\u09A4\u09CB\u09AE\u09BE\u09B0:"you",\u0986\u09AA\u09A8\u09BE\u09B0:"you",\u09A4\u09BE\u09B0:"it",\u098F\u09B0:"it"}},roleMarkers:{patient:{primary:"\u0995\u09C7",position:"after"},destination:{primary:"\u09A4\u09C7",alternatives:["\u098F"],position:"after"},source:{primary:"\u09A5\u09C7\u0995\u09C7",position:"after"},style:{primary:"\u09A6\u09BF\u09AF\u09BC\u09C7",position:"after"},event:{primary:"\u09A4\u09C7",position:"after"}},keywords:{toggle:{primary:"\u099F\u0997\u09B2",alternatives:["\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8"],normalized:"toggle"},add:{primary:"\u09AF\u09CB\u0997",alternatives:["\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"],normalized:"add"},remove:{primary:"\u09B8\u09B0\u09BE\u09A8",alternatives:["\u09B8\u09B0\u09BF\u09AF\u09BC\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8","\u09AE\u09C1\u099B\u09C1\u09A8"],normalized:"remove"},put:{primary:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"],normalized:"put"},append:{primary:"\u09B6\u09C7\u09B7\u09C7 \u09AF\u09CB\u0997",alternatives:[],normalized:"append"},prepend:{primary:"\u09B6\u09C1\u09B0\u09C1\u09A4\u09C7 \u09AF\u09CB\u0997",alternatives:[],normalized:"prepend"},take:{primary:"\u09A8\u09BF\u09A8",alternatives:["\u09A8\u09C7"],normalized:"take"},make:{primary:"\u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09C1\u09A8",alternatives:["\u09AC\u09BE\u09A8\u09BE\u09A8"],normalized:"make"},clone:{primary:"\u0995\u09AA\u09BF",alternatives:["\u09AA\u09CD\u09B0\u09A4\u09BF\u09B2\u09BF\u09AA\u09BF"],normalized:"clone"},swap:{primary:"\u09AC\u09A6\u09B2",alternatives:[],normalized:"swap"},morph:{primary:"\u09B0\u09C2\u09AA\u09BE\u09A8\u09CD\u09A4\u09B0",alternatives:[],normalized:"morph"},set:{primary:"\u09B8\u09C7\u099F",alternatives:["\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09A3"],normalized:"set"},get:{primary:"\u09AA\u09BE\u09A8",alternatives:["\u09A8\u09BF\u09A8"],normalized:"get"},increment:{primary:"\u09AC\u09C3\u09A6\u09CD\u09A7\u09BF",alternatives:["\u09AC\u09BE\u09A1\u09BC\u09BE\u09A8"],normalized:"increment"},decrement:{primary:"\u09B9\u09CD\u09B0\u09BE\u09B8",alternatives:["\u0995\u09AE\u09BE\u09A8"],normalized:"decrement"},log:{primary:"\u09B2\u0997",alternatives:["\u09B0\u09C7\u0995\u09B0\u09CD\u09A1"],normalized:"log"},show:{primary:"\u09A6\u09C7\u0996\u09BE\u09A8",alternatives:["\u09A6\u09C7\u0996\u09BE\u0993"],normalized:"show"},hide:{primary:"\u09B2\u09C1\u0995\u09BE\u09A8",alternatives:["\u09B2\u09C1\u0995\u09BE\u0993"],normalized:"hide"},transition:{primary:"\u09B8\u0982\u0995\u09CD\u09B0\u09AE\u09A3",alternatives:[],normalized:"transition"},on:{primary:"\u09A4\u09C7",alternatives:["\u098F","\u09AF\u0996\u09A8"],normalized:"on"},trigger:{primary:"\u099F\u09CD\u09B0\u09BF\u0997\u09BE\u09B0",alternatives:[],normalized:"trigger"},send:{primary:"\u09AA\u09BE\u09A0\u09BE\u09A8",alternatives:["\u09AA\u09BE\u09A0\u09BE\u0993"],normalized:"send"},focus:{primary:"\u09AB\u09CB\u0995\u09BE\u09B8",alternatives:["\u09AE\u09A8\u09CB\u09AF\u09CB\u0997"],normalized:"focus"},blur:{primary:"\u099D\u09BE\u09AA\u09B8\u09BE",alternatives:["\u09AB\u09CB\u0995\u09BE\u09B8_\u09B8\u09B0\u09BE\u09A8"],normalized:"blur"},click:{primary:"\u0995\u09CD\u09B2\u09BF\u0995",normalized:"click"},hover:{primary:"\u09B9\u09CB\u09AD\u09BE\u09B0",alternatives:["\u0989\u09AA\u09B0\u09C7_\u09B0\u09BE\u0996\u09C1\u09A8"],normalized:"hover"},submit:{primary:"\u09B8\u09BE\u09AC\u09AE\u09BF\u099F",alternatives:["\u099C\u09AE\u09BE"],normalized:"submit"},input:{primary:"\u0987\u09A8\u09AA\u09C1\u099F",alternatives:["\u09AA\u09CD\u09B0\u09AC\u09C7\u09B6"],normalized:"input"},change:{primary:"\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8",normalized:"change"},go:{primary:"\u09AF\u09BE\u09A8",alternatives:["\u09AF\u09BE\u0993"],normalized:"go"},wait:{primary:"\u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE",alternatives:["\u09A5\u09BE\u09AE\u09C1\u09A8"],normalized:"wait"},fetch:{primary:"\u0986\u09A8\u09C1\u09A8",alternatives:[],normalized:"fetch"},settle:{primary:"\u09B8\u09CD\u09A5\u09BF\u09B0",alternatives:[],normalized:"settle"},if:{primary:"\u09AF\u09A6\u09BF",alternatives:[],normalized:"if"},when:{primary:"\u09AF\u0996\u09A8",normalized:"when"},where:{primary:"\u0995\u09CB\u09A5\u09BE\u09AF\u09BC",normalized:"where"},else:{primary:"\u09A8\u09A4\u09C1\u09AC\u09BE",alternatives:["\u09A8\u09BE \u09B9\u09B2\u09C7"],normalized:"else"},repeat:{primary:"\u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF",alternatives:["\u09AC\u09BE\u09B0 \u09AC\u09BE\u09B0"],normalized:"repeat"},for:{primary:"\u099C\u09A8\u09CD\u09AF",alternatives:[],normalized:"for"},while:{primary:"\u09AF\u09A4\u0995\u09CD\u09B7\u09A3",alternatives:[],normalized:"while"},continue:{primary:"\u099A\u09BE\u09B2\u09BF\u09AF\u09BC\u09C7 \u09AF\u09BE\u09A8",alternatives:[],normalized:"continue"},halt:{primary:"\u09A5\u09BE\u09AE\u09C1\u09A8",alternatives:["\u09A5\u09BE\u09AE\u09BE\u0993"],normalized:"halt"},throw:{primary:"\u09A8\u09BF\u0995\u09CD\u09B7\u09C7\u09AA",alternatives:["\u099B\u09C1\u0981\u09A1\u09BC\u09C7 \u09A6\u09BF\u09A8"],normalized:"throw"},call:{primary:"\u0995\u09B2",alternatives:["\u09A1\u09BE\u0995\u09C1\u09A8"],normalized:"call"},return:{primary:"\u09AB\u09BF\u09B0\u09C1\u09A8",alternatives:["\u09AB\u09C7\u09B0\u09A4 \u09A6\u09BF\u09A8"],normalized:"return"},then:{primary:"\u09A4\u09BE\u09B0\u09AA\u09B0",alternatives:["\u09A4\u0996\u09A8"],normalized:"then"},and:{primary:"\u098F\u09AC\u0982",alternatives:[],normalized:"and"},end:{primary:"\u09B6\u09C7\u09B7",alternatives:["\u09B8\u09AE\u09BE\u09AA\u09CD\u09A4"],normalized:"end"},js:{primary:"\u099C\u09C7\u098F\u09B8",alternatives:["js"],normalized:"js"},async:{primary:"\u0985\u09CD\u09AF\u09BE\u09B8\u09BF\u0999\u09CD\u0995",alternatives:[],normalized:"async"},tell:{primary:"\u09AC\u09B2\u09C1\u09A8",alternatives:["\u09AC\u09B2"],normalized:"tell"},default:{primary:"\u09A1\u09BF\u09AB\u09B2\u09CD\u099F",alternatives:[],normalized:"default"},init:{primary:"\u09B6\u09C1\u09B0\u09C1",alternatives:[],normalized:"init"},behavior:{primary:"\u0986\u099A\u09B0\u09A3",alternatives:[],normalized:"behavior"},install:{primary:"\u0987\u09A8\u09B8\u09CD\u099F\u09B2",alternatives:[],normalized:"install"},measure:{primary:"\u09AE\u09BE\u09AA\u09C1\u09A8",alternatives:[],normalized:"measure"},beep:{primary:"\u09AC\u09C0\u09AA",alternatives:[],normalized:"beep"},break:{primary:"\u09A5\u09BE\u09AE\u09C1\u09A8",alternatives:[],normalized:"break"},copy:{primary:"\u0995\u09AA\u09BF",alternatives:[],normalized:"copy"},exit:{primary:"\u09AC\u09C7\u09B0",alternatives:[],normalized:"exit"},pick:{primary:"\u09AC\u09BE\u099B\u09C1\u09A8",alternatives:[],normalized:"pick"},render:{primary:"\u09B0\u09C7\u09A8\u09CD\u09A1\u09BE\u09B0",alternatives:[],normalized:"render"},into:{primary:"\u09A4\u09C7",alternatives:["\u098F"],normalized:"into"},before:{primary:"\u0986\u0997\u09C7",alternatives:[],normalized:"before"},after:{primary:"\u09AA\u09B0\u09C7",alternatives:[],normalized:"after"},until:{primary:"\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4",alternatives:[],normalized:"until"},event:{primary:"\u0998\u099F\u09A8\u09BE",alternatives:[],normalized:"event"},from:{primary:"\u09A5\u09C7\u0995\u09C7",normalized:"from"}},tokenization:{particles:["\u0995\u09C7","\u09A4\u09C7","\u09A5\u09C7\u0995\u09C7","\u09B0","\u098F\u09B0","\u09A6\u09BF\u09AF\u09BC\u09C7","\u099C\u09A8\u09CD\u09AF","\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4"],boundaryStrategy:"space"},eventHandler:{keyword:{primary:"\u09A4\u09C7",alternatives:["\u098F","\u09AF\u0996\u09A8"],normalized:"on"},sourceMarker:{primary:"\u09A5\u09C7\u0995\u09C7",position:"after"},eventMarker:{primary:"\u09A4\u09C7",alternatives:["\u098F"],position:"after"},temporalMarkers:["\u09AF\u0996\u09A8","\u09AF\u0996\u09A8\u0987"]}}}}),ga={};A(ga,{BengaliTokenizer:()=>Sr,bengaliTokenizer:()=>Pr});var jt,Fr,Ea,Sr,Pr,za=g({"src/tokenizers/bengali.ts"(){"use strict";W(),Pt(),jt=Q([[2432,2559]]),Fr=new Set(["\u0995\u09C7","\u09A4\u09C7","\u09A5\u09C7\u0995\u09C7","\u09B0","\u098F\u09B0","\u09A6\u09BF\u09AF\u09BC\u09C7","\u099C\u09A8\u09CD\u09AF","\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4","\u098F","\u09AE\u09A7\u09CD\u09AF\u09C7"]),Ea=[{native:"\u09B8\u09A4\u09CD\u09AF",normalized:"true"},{native:"\u09AE\u09BF\u09A5\u09CD\u09AF\u09BE",normalized:"false"},{native:"\u09B6\u09C2\u09A8\u09CD\u09AF",normalized:"null"},{native:"\u0985\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09BF\u09A4",normalized:"undefined"},{native:"\u09AA\u09CD\u09B0\u09A5\u09AE",normalized:"first"},{native:"\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0",normalized:"next"},{native:"\u0986\u0997\u09C7\u09B0",normalized:"previous"},{native:"\u09A8\u09BF\u0995\u099F\u09A4\u09AE",normalized:"closest"},{native:"\u09AE\u09C2\u09B2",normalized:"parent"},{native:"\u0995\u09CD\u09B2\u09BF\u0995",normalized:"click"},{native:"\u099C\u09AE\u09BE",normalized:"submit"},{native:"\u0987\u09A8\u09AA\u09C1\u099F",normalized:"input"},{native:"\u09B2\u09CB\u09A1",normalized:"load"},{native:"\u09B8\u09CD\u0995\u09CD\u09B0\u09CB\u09B2",normalized:"scroll"},{native:"\u0995\u09C7",normalized:"to"},{native:"\u09B8\u09BE\u09A5\u09C7",normalized:"with"}],Sr=class extends I{constructor(){super(),this.language="bn",this.direction="ltr",this.initializeKeywordsFromProfile(Ve,Ea)}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let a=this.tryEventModifier(e,t);if(a){r.push(a),t=a.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let i=this.trySelector(e,t);if(i){r.push(i),t=i.position.end;continue}}if(R(e[t])){let a=this.tryString(e,t);if(a){r.push(a),t=a.position.end;continue}}if(N(e,t)){let a=this.tryUrl(e,t);if(a){r.push(a),t=a.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let a=this.extractNumber(e,t);if(a){r.push(a),t=a.position.end;continue}}if(e[t]===":"){let a=t;t++;let i="";for(;t<e.length&&(x(e[t])||jt(e[t]));)i+=e[t],t++;if(i){r.push(c(":"+i,"identifier",m(a,t),":"+i));continue}t=a}if(jt(e[t])){let a=t,i="";for(;t<e.length&&jt(e[t]);)i+=e[t],t++;if(Fr.has(i))r.push(c(i,"particle",m(a,t)));else{let u=this.lookupKeyword(i);u?r.push(c(i,"keyword",m(a,t),u.normalized)):r.push(c(i,"identifier",m(a,t)))}continue}if(x(e[t])){let a=t,i="";for(;t<e.length&&x(e[t]);)i+=e[t],t++;let u=this.lookupKeyword(i),o=u?"keyword":"identifier";r.push(c(i,o,m(a,t),u?.normalized||i.toLowerCase()));continue}let n=t;r.push(c(e[t],"operator",m(n,t+1))),t++}return new P(r,this.language)}classifyToken(e){return this.isKeyword(e)?"keyword":Fr.has(e)?"particle":e.startsWith(".")||e.startsWith("#")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith(":")?"identifier":e.startsWith('"')||e.startsWith("'")||/^-?\d/.test(e)?"literal":"identifier"}extractNumber(e,r){let t=r,n="";for(e[t]==="-"&&(n+="-",t++);t<e.length&&k(e[t]);)n+=e[t],t++;if(t<e.length&&e[t]===".")for(n+=".",t++;t<e.length&&k(e[t]);)n+=e[t],t++;return n==="-"?null:c(n,"literal",m(r,t))}},Pr=new Sr}}),ka={};A(ka,{germanProfile:()=>ke});var ke,Ke=g({"src/generators/profiles/german.ts"(){"use strict";ke={code:"de",name:"German",nativeName:"Deutsch",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!1},references:{me:"ich",it:"es",you:"du",result:"Ergebnis",event:"Ereignis",target:"Ziel",body:"K\xF6rper"},possessive:{marker:"",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mein",it:"sein",you:"dein"},keywords:{mein:"me",meine:"me",meinen:"me",dein:"you",deine:"you",deinen:"you",sein:"it",seine:"it",seinen:"it"}},roleMarkers:{destination:{primary:"auf",alternatives:["zu","in"],position:"before"},source:{primary:"von",alternatives:["aus"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"mit",position:"before"}},keywords:{toggle:{primary:"umschalten",alternatives:["wechseln"],normalized:"toggle"},add:{primary:"hinzuf\xFCgen",normalized:"add"},remove:{primary:"entfernen",alternatives:["l\xF6schen"],normalized:"remove"},put:{primary:"setzen",alternatives:["stellen","platzieren"],normalized:"put"},append:{primary:"anh\xE4ngen",normalized:"append"},prepend:{primary:"voranstellen",normalized:"prepend"},take:{primary:"nehmen",normalized:"take"},make:{primary:"machen",alternatives:["erstellen","erzeugen"],normalized:"make"},clone:{primary:"klonen",alternatives:["kopieren"],normalized:"clone"},swap:{primary:"austauschen",alternatives:["tauschen","wechseln"],normalized:"swap"},morph:{primary:"verwandeln",alternatives:["transformieren"],normalized:"morph"},set:{primary:"festlegen",alternatives:["definieren"],normalized:"set"},get:{primary:"holen",alternatives:["bekommen"],normalized:"get"},increment:{primary:"erh\xF6hen",normalized:"increment"},decrement:{primary:"verringern",alternatives:["vermindern"],normalized:"decrement"},log:{primary:"protokollieren",alternatives:["ausgeben"],normalized:"log"},show:{primary:"zeigen",alternatives:["anzeigen"],normalized:"show"},hide:{primary:"verbergen",alternatives:["verstecken"],normalized:"hide"},transition:{primary:"\xFCbergang",alternatives:["animieren"],normalized:"transition"},on:{primary:"bei",alternatives:["wenn","auf"],normalized:"on"},trigger:{primary:"ausl\xF6sen",normalized:"trigger"},send:{primary:"senden",alternatives:["schicken"],normalized:"send"},focus:{primary:"fokussieren",normalized:"focus"},blur:{primary:"defokussieren",alternatives:["entfokussieren"],normalized:"blur"},go:{primary:"gehen",alternatives:["navigieren"],normalized:"go"},wait:{primary:"warten",normalized:"wait"},fetch:{primary:"abrufen",alternatives:["laden"],normalized:"fetch"},settle:{primary:"stabilisieren",normalized:"settle"},if:{primary:"wenn",alternatives:["falls"],normalized:"if"},when:{primary:"wenn",normalized:"when"},where:{primary:"wo",normalized:"where"},else:{primary:"sonst",alternatives:["ansonsten"],normalized:"else"},repeat:{primary:"wiederholen",normalized:"repeat"},for:{primary:"f\xFCr",normalized:"for"},while:{primary:"solange",alternatives:["w\xE4hrend"],normalized:"while"},continue:{primary:"fortfahren",alternatives:["weiter"],normalized:"continue"},halt:{primary:"anhalten",alternatives:["stoppen"],normalized:"halt"},throw:{primary:"werfen",normalized:"throw"},call:{primary:"aufrufen",normalized:"call"},return:{primary:"zur\xFCckgeben",normalized:"return"},then:{primary:"dann",alternatives:["danach","anschlie\xDFend"],normalized:"then"},and:{primary:"und",alternatives:["sowie","auch"],normalized:"and"},end:{primary:"ende",alternatives:["beenden","fertig"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"asynchron",normalized:"async"},tell:{primary:"sagen",normalized:"tell"},default:{primary:"standard",normalized:"default"},init:{primary:"initialisieren",normalized:"init"},behavior:{primary:"verhalten",normalized:"behavior"},install:{primary:"installieren",normalized:"install"},measure:{primary:"messen",normalized:"measure"},beep:{primary:"piepton",normalized:"beep"},break:{primary:"unterbrechen",normalized:"break"},copy:{primary:"kopieren",normalized:"copy"},exit:{primary:"beenden",normalized:"exit"},pick:{primary:"ausw\xE4hlen",normalized:"pick"},render:{primary:"rendern",normalized:"render"},into:{primary:"hinein",normalized:"into"},before:{primary:"vor",normalized:"before"},after:{primary:"nach",normalized:"after"},click:{primary:"Klick",alternatives:["Klicken"],normalized:"click"},hover:{primary:"Hover",alternatives:["Schweben"],normalized:"hover"},submit:{primary:"Absenden",alternatives:["Senden"],normalized:"submit"},input:{primary:"Eingabe",normalized:"input"},change:{primary:"\xC4nderung",alternatives:["\xC4ndern"],normalized:"change"},until:{primary:"bis",normalized:"until"},event:{primary:"Ereignis",alternatives:["Event"],normalized:"event"},from:{primary:"von",alternatives:["aus"],normalized:"from"}},eventHandler:{keyword:{primary:"bei",alternatives:["auf"],normalized:"on"},sourceMarker:{primary:"von",alternatives:["aus"],position:"before"},conditionalKeyword:{primary:"wenn",alternatives:["falls"]},eventMarker:{primary:"bei",alternatives:["beim"],position:"before"},temporalMarkers:["wenn","bei"]}}}});function tp(e){let r=e.toLowerCase();return!!(r.endsWith("en")||r.endsWith("eln")||r.endsWith("ern")||r.startsWith("ge")&&r.endsWith("t")||r.startsWith("ge")&&r.endsWith("en")||/[äöüß]/i.test(e))}var Ca,Aa,wa,ba,jr,rp,np=g({"src/tokenizers/morphology/german-normalizer.ts"(){"use strict";H(),Ca=["an","auf","aus","ein","mit","vor","zu","ab","bei","nach","weg","um","her","hin"],Aa=[{ending:"end",stem:"en",confidence:.88,type:"gerund"},{ending:"e",stem:"en",confidence:.75,type:"present"},{ending:"st",stem:"en",confidence:.8,type:"present"},{ending:"t",stem:"en",confidence:.78,type:"present"},{ending:"en",stem:"en",confidence:.85,type:"dictionary"},{ending:"test",stem:"en",confidence:.85,type:"past"},{ending:"ten",stem:"en",confidence:.82,type:"past"},{ending:"tet",stem:"en",confidence:.85,type:"past"},{ending:"te",stem:"en",confidence:.82,type:"past"},{ending:"test",stem:"en",confidence:.8,type:"subjunctive"},{ending:"ten",stem:"en",confidence:.78,type:"subjunctive"},{ending:"tet",stem:"en",confidence:.8,type:"subjunctive"},{ending:"te",stem:"en",confidence:.78,type:"subjunctive"},{ending:"e",stem:"en",confidence:.72,type:"imperative"},{ending:"t",stem:"en",confidence:.72,type:"imperative"},{ending:"en",stem:"en",confidence:.75,type:"imperative"}],wa=[{ending:"le",stem:"eln",confidence:.82,type:"present"},{ending:"elst",stem:"eln",confidence:.85,type:"present"},{ending:"elt",stem:"eln",confidence:.85,type:"present"},{ending:"eln",stem:"eln",confidence:.88,type:"dictionary"},{ending:"re",stem:"ern",confidence:.82,type:"present"},{ending:"erst",stem:"ern",confidence:.85,type:"present"},{ending:"ert",stem:"ern",confidence:.85,type:"present"},{ending:"ern",stem:"ern",confidence:.88,type:"dictionary"}],ba=[...Aa,...wa].sort((e,r)=>r.ending.length-e.ending.length),jr=class{constructor(){this.language="de"}isNormalizable(e){return e.length<3?!1:tp(e)}normalize(e){let r=e.toLowerCase();if(r.endsWith("en")&&r.length>=4||(r.endsWith("eln")||r.endsWith("ern"))&&r.length>=5)return j(e);let t=this.tryParticipleNormalization(r);if(t)return t;let n=this.tryConjugationNormalization(r);return n||j(e)}tryParticipleNormalization(e){for(let r of Ca)if(e.startsWith(r+"ge")){let t=e.slice(r.length),n=this.trySimpleParticipleNormalization(t);if(n){let a={removedPrefixes:["ge"],conjugationType:"participle"};return n.metadata?.removedSuffixes&&(a.removedSuffixes=n.metadata.removedSuffixes),z(r+n.stem,n.confidence*.95,a)}}return this.trySimpleParticipleNormalization(e)}trySimpleParticipleNormalization(e){if(!e.startsWith("ge"))return null;let r=e.slice(2);if(r.endsWith("t")&&r.length>=3){let t=r.slice(0,-1);return z(t+"en",.85,{removedPrefixes:["ge"],removedSuffixes:["t"],conjugationType:"participle"})}return r.endsWith("en")&&r.length>=4?z(r,.82,{removedPrefixes:["ge"],conjugationType:"participle"}):null}tryConjugationNormalization(e){for(let r of ba)if(e.endsWith(r.ending)){let t=e.slice(0,-r.ending.length);if(t.length<2)continue;let n=t+r.stem;return z(n,r.confidence,{removedSuffixes:[r.ending],conjugationType:r.type})}return null}},rp=new jr}}),xa={};A(xa,{GermanTokenizer:()=>_r,germanTokenizer:()=>Rr});var Da,Ta,Lr,Ba,Fa,_r,Rr,Sa=g({"src/tokenizers/german.ts"(){"use strict";W(),Ke(),np(),{isLetter:Da,isIdentifierChar:Ta}=K(/[a-zA-ZäöüÄÖÜß]/),Lr=new Set(["an","auf","aus","bei","durch","f\xFCr","fur","gegen","in","mit","nach","ohne","seit","\xFCber","uber","um","unter","von","vor","zu","zwischen","bis","gegen\xFCber","gegenuber","w\xE4hrend","wahrend","wegen","trotz","statt","innerhalb","au\xDFerhalb","ausserhalb"]),Ba=[{native:"wahr",normalized:"true"},{native:"falsch",normalized:"false"},{native:"null",normalized:"null"},{native:"undefiniert",normalized:"undefined"},{native:"erste",normalized:"first"},{native:"erster",normalized:"first"},{native:"erstes",normalized:"first"},{native:"letzte",normalized:"last"},{native:"letzter",normalized:"last"},{native:"letztes",normalized:"last"},{native:"n\xE4chste",normalized:"next"},{native:"nachste",normalized:"next"},{native:"vorherige",normalized:"previous"},{native:"n\xE4chste",normalized:"closest"},{native:"eltern",normalized:"parent"},{native:"klick",normalized:"click"},{native:"click",normalized:"click"},{native:"eingabe",normalized:"input"},{native:"\xE4nderung",normalized:"change"},{native:"anderung",normalized:"change"},{native:"absenden",normalized:"submit"},{native:"taste unten",normalized:"keydown"},{native:"taste oben",normalized:"keyup"},{native:"maus dr\xFCber",normalized:"mouseover"},{native:"maus druber",normalized:"mouseover"},{native:"maus weg",normalized:"mouseout"},{native:"fokus",normalized:"focus"},{native:"unsch\xE4rfe",normalized:"blur"},{native:"unscharfe",normalized:"blur"},{native:"scrollen",normalized:"scroll"},{native:"meine",normalized:"my"},{native:"meinen",normalized:"my"},{native:"ergebnis",normalized:"result"},{native:"ziel",normalized:"target"},{native:"sekunde",normalized:"s"},{native:"sekunden",normalized:"s"},{native:"millisekunde",normalized:"ms"},{native:"millisekunden",normalized:"ms"},{native:"minute",normalized:"m"},{native:"minuten",normalized:"m"},{native:"stunde",normalized:"h"},{native:"stunden",normalized:"h"},{native:"hinzufugen",normalized:"add"},{native:"hinzufgen",normalized:"add"},{native:"loschen",normalized:"remove"},{native:"anhangen",normalized:"append"},{native:"erhohen",normalized:"increment"},{native:"ubergang",normalized:"transition"},{native:"auslosen",normalized:"trigger"},{native:"zuruckgeben",normalized:"return"},{native:"anschliessend",normalized:"then"},{native:"erh\xF6he",normalized:"increment"},{native:"erhohe",normalized:"increment"},{native:"verringere",normalized:"decrement"}],Fa=[{pattern:"millisekunden",suffix:"ms",length:13,caseInsensitive:!0},{pattern:"millisekunde",suffix:"ms",length:12,caseInsensitive:!0},{pattern:"sekunden",suffix:"s",length:8,caseInsensitive:!0},{pattern:"sekunde",suffix:"s",length:7,caseInsensitive:!0},{pattern:"minuten",suffix:"m",length:7,caseInsensitive:!0},{pattern:"minute",suffix:"m",length:6,caseInsensitive:!0},{pattern:"stunden",suffix:"h",length:7,caseInsensitive:!0},{pattern:"stunde",suffix:"h",length:6,caseInsensitive:!0}],_r=class extends I{constructor(){super(),this.language="de",this.direction="ltr",this.initializeKeywordsFromProfile(ke,Ba),this.normalizer=new jr}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let i=this.extractNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}if(Da(e[t])){let i=this.extractWord(e,t);if(i){r.push(i),t=i.position.end;continue}}let a=this.tryOperator(e,t);if(a){r.push(a),t=a.position.end;continue}t++}return new P(r,"de")}classifyToken(e){let r=e.toLowerCase();return Lr.has(r)?"particle":this.isKeyword(r)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}extractWord(e,r){let t=r,n="";for(;t<e.length&&Ta(e[t]);)n+=e[t++];if(!n)return null;let a=n.toLowerCase(),i=this.lookupKeyword(a);return i?c(n,"keyword",m(r,t),i.normalized):Lr.has(a)?c(n,"particle",m(r,t)):c(n,"identifier",m(r,t))}extractNumber(e,r){return this.tryNumberWithTimeUnits(e,r,Fa,{allowSign:!0,skipWhitespace:!0})}},Rr=new _r}}),Pa={};A(Pa,{englishProfile:()=>ce});var ce,Ce=g({"src/generators/profiles/english.ts"(){"use strict";ce={code:"en",name:"English",nativeName:"English",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!1},references:{me:"me",it:"it",you:"you",result:"result",event:"event",target:"target",body:"body"},possessive:{marker:"'s",markerPosition:"after-object",specialForms:{me:"my",it:"its",you:"your"},keywords:{my:"me",your:"you",its:"it"}},roleMarkers:{destination:{primary:"on",alternatives:["to","from"],position:"before"},source:{primary:"from",position:"before"},patient:{primary:"",position:"before"},style:{primary:"with",alternatives:["by","using"],position:"before"},responseType:{primary:"as",position:"before"},method:{primary:"via",alternatives:["using"],position:"before"}},keywords:{toggle:{primary:"toggle"},add:{primary:"add"},remove:{primary:"remove"},put:{primary:"put"},append:{primary:"append"},prepend:{primary:"prepend"},take:{primary:"take"},make:{primary:"make"},clone:{primary:"clone"},swap:{primary:"swap"},morph:{primary:"morph"},set:{primary:"set"},get:{primary:"get"},increment:{primary:"increment"},decrement:{primary:"decrement"},log:{primary:"log"},show:{primary:"show"},hide:{primary:"hide"},transition:{primary:"transition"},on:{primary:"on"},trigger:{primary:"trigger"},send:{primary:"send"},focus:{primary:"focus"},blur:{primary:"blur"},go:{primary:"go"},wait:{primary:"wait"},fetch:{primary:"fetch"},settle:{primary:"settle"},if:{primary:"if"},when:{primary:"when",normalized:"when"},where:{primary:"where",normalized:"where"},else:{primary:"else"},repeat:{primary:"repeat"},for:{primary:"for"},while:{primary:"while"},continue:{primary:"continue"},halt:{primary:"halt"},throw:{primary:"throw"},call:{primary:"call"},return:{primary:"return"},then:{primary:"then"},and:{primary:"and"},end:{primary:"end"},js:{primary:"js"},async:{primary:"async"},tell:{primary:"tell"},default:{primary:"default"},init:{primary:"init"},behavior:{primary:"behavior"},install:{primary:"install"},measure:{primary:"measure"},beep:{primary:"beep"},break:{primary:"break"},copy:{primary:"copy"},exit:{primary:"exit"},pick:{primary:"pick"},render:{primary:"render"},into:{primary:"into"},before:{primary:"before"},after:{primary:"after"},until:{primary:"until"},event:{primary:"event"},from:{primary:"from"}}}}}),ja={};A(ja,{EnglishTokenizer:()=>Nr,englishTokenizer:()=>Lt});var La,Nr,Lt,Ir=g({"src/tokenizers/english.ts"(){"use strict";W(),Ce(),La=[{native:"true",normalized:"true"},{native:"false",normalized:"false"},{native:"null",normalized:"null"},{native:"undefined",normalized:"undefined"},{native:"first",normalized:"first"},{native:"last",normalized:"last"},{native:"next",normalized:"next"},{native:"previous",normalized:"previous"},{native:"closest",normalized:"closest"},{native:"click",normalized:"click"},{native:"dblclick",normalized:"dblclick"},{native:"mousedown",normalized:"mousedown"},{native:"mouseup",normalized:"mouseup"},{native:"mouseover",normalized:"mouseover"},{native:"mouseout",normalized:"mouseout"},{native:"mouseenter",normalized:"mouseenter"},{native:"mouseleave",normalized:"mouseleave"},{native:"mousemove",normalized:"mousemove"},{native:"keydown",normalized:"keydown"},{native:"keyup",normalized:"keyup"},{native:"keypress",normalized:"keypress"},{native:"input",normalized:"input"},{native:"change",normalized:"change"},{native:"submit",normalized:"submit"},{native:"reset",normalized:"reset"},{native:"load",normalized:"load"},{native:"unload",normalized:"unload"},{native:"scroll",normalized:"scroll"},{native:"resize",normalized:"resize"},{native:"dragstart",normalized:"dragstart"},{native:"drag",normalized:"drag"},{native:"dragend",normalized:"dragend"},{native:"dragenter",normalized:"dragenter"},{native:"dragleave",normalized:"dragleave"},{native:"dragover",normalized:"dragover"},{native:"drop",normalized:"drop"},{native:"touchstart",normalized:"touchstart"},{native:"touchmove",normalized:"touchmove"},{native:"touchend",normalized:"touchend"},{native:"touchcancel",normalized:"touchcancel"},{native:"in",normalized:"in"},{native:"to",normalized:"to"},{native:"at",normalized:"at"},{native:"by",normalized:"by"},{native:"with",normalized:"with"},{native:"without",normalized:"without"},{native:"of",normalized:"of"},{native:"as",normalized:"as"},{native:"every",normalized:"every"},{native:"upon",normalized:"upon"},{native:"unless",normalized:"unless"},{native:"forever",normalized:"forever"},{native:"times",normalized:"times"},{native:"and",normalized:"and"},{native:"or",normalized:"or"},{native:"not",normalized:"not"},{native:"is",normalized:"is"},{native:"exists",normalized:"exists"},{native:"empty",normalized:"empty"},{native:"my",normalized:"my"},{native:"your",normalized:"your"},{native:"its",normalized:"its"},{native:"the",normalized:"the"},{native:"a",normalized:"a"},{native:"an",normalized:"an"},{native:"delete",normalized:"delete"},{native:"innerHTML",normalized:"innerHTML"},{native:"outerHTML",normalized:"outerHTML"},{native:"beforebegin",normalized:"beforebegin"},{native:"afterend",normalized:"afterend"},{native:"beforeend",normalized:"beforeend"},{native:"afterbegin",normalized:"afterbegin"},{native:"flip",normalized:"toggle"},{native:"switch",normalized:"toggle"},{native:"increase",normalized:"increment"},{native:"decrease",normalized:"decrement"},{native:"display",normalized:"show"},{native:"reveal",normalized:"show"},{native:"conceal",normalized:"hide"},{native:"colour",normalized:"color"},{native:"grey",normalized:"gray"},{native:"centre",normalized:"center"},{native:"behaviour",normalized:"behavior"},{native:"initialise",normalized:"initialize"},{native:"favourite",normalized:"favorite"}],Nr=class extends I{constructor(){super(),this.language="en",this.direction="ltr",this.initializeKeywordsFromProfile(ce,La)}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(e[t]==="."){let o=r[r.length-1],s=o&&o.position.end<t;if(o&&!s&&(o.kind==="identifier"||o.kind==="keyword"||o.kind==="selector")){r.push(c(".","operator",m(t,t+1))),t++;continue}let y=t+1;for(;y<e.length&&x(e[y]);)y++;if(y<e.length&&e[y]==="("){r.push(c(".","operator",m(t,t+1))),t++;continue}}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){if(e[t]==="'"&&ua(e,t)){r.push(c("'s","punctuation",m(t,t+2))),t+=2;continue}let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let i=this.tryNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}if(x(e[t])){let i=this.extractWord(e,t);if(i){r.push(i),t=i.position.end;continue}}let a=this.tryOperator(e,t);if(a){r.push(a),t=a.position.end;continue}t++}return new P(r,"en")}classifyToken(e){return this.isKeyword(e)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}extractWord(e,r){let t=r,n="";for(;t<e.length&&x(e[t]);)n+=e[t++];if(!n)return null;if(t<e.length&&e[t]===":"){let o=t;t++;let s="";for(;t<e.length&&x(e[t]);)s+=e[t++];s?n=n+":"+s:t=o}let a=this.classifyToken(n),i=this.lookupKeyword(n),u=i&&i.normalized!==i.native?i.normalized:void 0;if(a==="identifier"){let o=this.tryConvertToClassSelector(e,t,n);if(o)return o.token}return c(n,a,m(r,t),u)}tryConvertToClassSelector(e,r,t){let n=r;for(;n<e.length&&/\s/.test(e[n]);)n++;if(e.slice(n,n+5).toLowerCase()==="class"){let a=n+5;if(a>=e.length||!x(e[a])){let i="."+t;return{token:c(i,"selector",m(r-t.length,r)),endPos:r}}}return null}},Lt=new Nr}});function _a(e,r){return e.replace(/\{(\w+)\}/g,(t,n)=>String(r[n]??`{${n}}`))}function U(e,r,t={},n){let a=Ra[e],i=_a(a,t),u=Na[e],o=u?_a(u,t):void 0;return{code:e,message:i,severity:r,...n&&{role:n},...o&&{suggestion:o}}}var D,Ra,Na,ip=g({"src/generators/schema-error-codes.ts"(){"use strict";D={AMBIGUOUS_TYPE_LITERAL_SELECTOR:"SCHEMA_AMBIGUOUS_TYPE_LITERAL_SELECTOR",TOO_MANY_EXPECTED_TYPES:"SCHEMA_TOO_MANY_EXPECTED_TYPES",MULTI_TYPE_PATIENT_EXPECTED:"SCHEMA_MULTI_TYPE_PATIENT_EXPECTED",NO_REQUIRED_ROLES:"SCHEMA_NO_REQUIRED_ROLES",NO_REQUIRED_ROLES_EXPECTED:"SCHEMA_NO_REQUIRED_ROLES_EXPECTED",TRANSITION_PATIENT_ACCEPTS_SELECTOR:"SCHEMA_TRANSITION_PATIENT_ACCEPTS_SELECTOR",TRANSITION_MISSING_GOAL:"SCHEMA_TRANSITION_MISSING_GOAL",EVENT_HANDLER_MISSING_EVENT:"SCHEMA_EVENT_HANDLER_MISSING_EVENT",EVENT_HANDLER_EVENT_NOT_REQUIRED:"SCHEMA_EVENT_HANDLER_EVENT_NOT_REQUIRED",CONDITIONAL_MISSING_CONDITION:"SCHEMA_CONDITIONAL_MISSING_CONDITION",CONDITIONAL_CONDITION_NOT_REQUIRED:"SCHEMA_CONDITIONAL_CONDITION_NOT_REQUIRED",FOR_LOOP_MISSING_SOURCE:"SCHEMA_FOR_LOOP_MISSING_SOURCE",WHILE_LOOP_MISSING_CONDITION:"SCHEMA_WHILE_LOOP_MISSING_CONDITION"},Ra={[D.AMBIGUOUS_TYPE_LITERAL_SELECTOR]:"Role '{role}' accepts both 'literal' and 'selector'. This may cause ambiguous type inference for values starting with special characters (* . # etc.).",[D.TOO_MANY_EXPECTED_TYPES]:"Role '{role}' accepts {count} different types. This may make type inference unreliable.",[D.MULTI_TYPE_PATIENT_EXPECTED]:"Role '{role}' accepts multiple types (expected for {command} command).",[D.NO_REQUIRED_ROLES]:"Command has no required roles. Is this intentional?",[D.NO_REQUIRED_ROLES_EXPECTED]:"Command has no required roles (expected for {command}).",[D.TRANSITION_PATIENT_ACCEPTS_SELECTOR]:"Transition command 'patient' role (CSS property name) should only accept 'literal', not 'selector'. CSS property names like 'background-color' are strings, not CSS selectors.",[D.TRANSITION_MISSING_GOAL]:"Transition command requires a 'goal' role for the target value (to <value>). Without it, there's no way to specify what value to transition to.",[D.EVENT_HANDLER_MISSING_EVENT]:"Event handler command should have an 'event' role to specify which event to listen for.",[D.EVENT_HANDLER_EVENT_NOT_REQUIRED]:"Event role should be required - every event handler needs an event to listen for.",[D.CONDITIONAL_MISSING_CONDITION]:"Conditional command should have a 'condition' role for the boolean expression.",[D.CONDITIONAL_CONDITION_NOT_REQUIRED]:"Condition role should be required - conditionals need a condition to evaluate.",[D.FOR_LOOP_MISSING_SOURCE]:"For-loop should have a 'source' role for the collection to iterate over.",[D.WHILE_LOOP_MISSING_CONDITION]:"While-loop should have a 'condition' role for the loop condition."},Na={[D.AMBIGUOUS_TYPE_LITERAL_SELECTOR]:"Consider being more specific about which type is expected, or use explicit type markers.",[D.TOO_MANY_EXPECTED_TYPES]:"Consider narrowing the accepted types to improve type inference reliability.",[D.TRANSITION_PATIENT_ACCEPTS_SELECTOR]:"Remove 'selector' from expectedTypes and only accept 'literal'.",[D.TRANSITION_MISSING_GOAL]:"Add a 'goal' role with expectedTypes ['literal', 'variable'].",[D.EVENT_HANDLER_MISSING_EVENT]:"Add an 'event' role with expectedTypes ['literal'].",[D.EVENT_HANDLER_EVENT_NOT_REQUIRED]:"Set required: true on the 'event' role.",[D.CONDITIONAL_MISSING_CONDITION]:"Add a 'condition' role with expectedTypes ['expression'].",[D.CONDITIONAL_CONDITION_NOT_REQUIRED]:"Set required: true on the 'condition' role.",[D.FOR_LOOP_MISSING_SOURCE]:"Add a 'source' role for the collection to iterate over.",[D.WHILE_LOOP_MISSING_CONDITION]:"Add a 'condition' role for the loop continuation condition."}}}),Ia={};A(Ia,{SchemaErrorCodes:()=>D,formatValidationResults:()=>Ma,getValidationStats:()=>Oa,validateAllSchemas:()=>Wa,validateCommandSchema:()=>Wr});function ap(e,r){return{action:e,items:r,get notes(){return r.filter(t=>t.severity==="note").map(t=>t.message)},get warnings(){return r.filter(t=>t.severity==="warning").map(t=>t.message)},get errors(){return r.filter(t=>t.severity==="error").map(t=>t.message)}}}function Wr(e){let r=[];for(let n of e.roles)n.expectedTypes.includes("literal")&&n.expectedTypes.includes("selector")&&(n.role==="patient"&&Mr.has(e.action)?r.push(U(D.MULTI_TYPE_PATIENT_EXPECTED,"note",{role:n.role,command:e.action},n.role)):r.push(U(D.AMBIGUOUS_TYPE_LITERAL_SELECTOR,"warning",{role:n.role},n.role))),n.expectedTypes.length>3&&!Mr.has(e.action)&&r.push(U(D.TOO_MANY_EXPECTED_TYPES,"warning",{role:n.role,count:n.expectedTypes.length},n.role));switch(e.action){case"transition":up(e,r);break;case"on":op(e,r);break;case"if":case"unless":sp(e,r);break;case"repeat":case"for":case"while":lp(e,r);break}return e.roles.filter(n=>n.required).length===0&&(qa.has(e.action)?r.push(U(D.NO_REQUIRED_ROLES_EXPECTED,"note",{command:e.action})):r.push(U(D.NO_REQUIRED_ROLES,"warning",{}))),ap(e.action,r)}function up(e,r){let t=e.roles.find(a=>a.role==="patient"),n=e.roles.find(a=>a.role==="goal");t&&t.expectedTypes.includes("selector")&&r.push(U(D.TRANSITION_PATIENT_ACCEPTS_SELECTOR,"warning",{},"patient")),t&&!n&&r.push(U(D.TRANSITION_MISSING_GOAL,"error",{}))}function op(e,r){let t=e.roles.find(n=>n.role==="event");t||r.push(U(D.EVENT_HANDLER_MISSING_EVENT,"warning",{})),t&&!t.required&&r.push(U(D.EVENT_HANDLER_EVENT_NOT_REQUIRED,"warning",{}))}function sp(e,r){let t=e.roles.find(n=>n.role==="condition");t||r.push(U(D.CONDITIONAL_MISSING_CONDITION,"warning",{})),t&&!t.required&&r.push(U(D.CONDITIONAL_CONDITION_NOT_REQUIRED,"warning",{}))}function lp(e,r){e.action==="for"?e.roles.find(n=>n.role==="source")||r.push(U(D.FOR_LOOP_MISSING_SOURCE,"warning",{})):e.action==="while"&&(e.roles.find(n=>n.role==="condition")||r.push(U(D.WHILE_LOOP_MISSING_CONDITION,"warning",{})))}function Wa(e,r={}){let t=new Map,{includeNotes:n=!1}=r;for(let[a,i]of Object.entries(e)){let u=Wr(i),o=u.items.some(l=>l.severity==="warning"||l.severity==="error"),s=n&&u.items.some(l=>l.severity==="note");(o||s)&&t.set(a,u)}return t}function Ma(e,r={}){let t=[],{showNotes:n=!1,showCodes:a=!0}=r;for(let[i,u]of e){let o=u.items.filter(p=>p.severity==="error"),s=u.items.filter(p=>p.severity==="warning"),l=u.items.filter(p=>p.severity==="note");if(o.length>0){t.push(` \u274C ${i}:`);for(let p of o){let y=a?` [${p.code}]`:"";t.push(` ERROR${y}: ${p.message}`),p.suggestion&&t.push(` \u{1F4A1} Suggestion: ${p.suggestion}`)}}if(s.length>0){t.push(` \u26A0\uFE0F ${i}:`);for(let p of s){let y=a?` [${p.code}]`:"";t.push(` ${y?`${p.code}: `:""}${p.message}`),p.suggestion&&t.push(` \u{1F4A1} ${p.suggestion}`)}}if(n&&l.length>0){t.push(` \u2139\uFE0F ${i}:`);for(let p of l){let y=a?` [${p.code}]`:"";t.push(` ${y?`${p.code}: `:""}${p.message}`)}}}return t.join(`
|
|
2
|
-
`)}function Oa(e){let r=0,t=0,n=0,a={};for(let i of e.values())for(let u of i.items)u.severity==="error"?r++:u.severity==="warning"?t++:u.severity==="note"&&n++,a[u.code]=(a[u.code]||0)+1;return{totalCommands:e.size,errors:r,warnings:t,notes:n,byCode:a}}var Mr,qa,Va=g({"src/generators/schema-validator.ts"(){"use strict";ip(),Mr=new Set(["put","append","prepend","log","throw","make","measure","return","swap","morph","beep","copy"]),qa=new Set(["compound","else","halt","continue","async","init","settle","focus","blur","return","js","measure","break","exit","beep"])}});function pp(e){return de[e]}function mp(e){return Object.values(de).filter(r=>r.category===e)}function Ue(){return Object.values(de).filter(e=>e.roles.length>0)}var Or,qr,Vr,Kr,Ur,Hr,$r,Gr,Xr,Qr,Zr,Yr,Jr,en,tn,Ka,Ua,Ha,$a,Ga,Xa,Qa,Za,Ya,Ja,eu,tu,ru,nu,iu,au,uu,ou,su,lu,pu,mu,cu,du,yu,fu,vu,hu,gu,Eu,zu,ku,Cu,Au,wu,bu,xu,Du,de,rn=g({"src/generators/command-schemas.ts"(){"use strict";Or={action:"toggle",description:"Toggle a class or attribute on/off",category:"dom-class",primaryRole:"patient",roles:[{role:"patient",description:"The class or attribute to toggle",required:!0,expectedTypes:["selector"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES","INVALID_CSS_PROPERTY"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"toggle command requires an argument"},{condition:"Class names are valid CSS identifiers",errorCode:"NO_VALID_CLASS_NAMES",message:"toggle command: no valid class names found"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to toggle",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers",INVALID_CSS_PROPERTY:"Check CSS property name syntax (use kebab-case)"}},qr={action:"add",description:"Add a class or attribute to an element",category:"dom-class",primaryRole:"patient",roles:[{role:"patient",description:"The class or attribute to add",required:!0,expectedTypes:["selector"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES","PROPERTY_REQUIRES_VALUE"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"add command requires an argument"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to add",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers",PROPERTY_REQUIRES_VALUE:"When adding a property (*prop), provide a value argument"}},Vr={action:"remove",description:"Remove a class or attribute from an element",category:"dom-class",primaryRole:"patient",roles:[{role:"patient",description:"The class or attribute to remove",required:!0,expectedTypes:["selector"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to remove from (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"remove command requires an argument"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to remove",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers"}},Kr={action:"put",description:"Put content into a target element or variable",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The content to put",required:!0,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1},{role:"destination",description:"Where to put the content",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:2,markerOverride:{en:"into"}}],errorCodes:["MISSING_ARGUMENTS","MISSING_CONTENT","MISSING_POSITION","INVALID_POSITION","NO_TARGET","NO_ELEMENTS"],preconditions:[{condition:"Command has content and position arguments",errorCode:"MISSING_ARGUMENTS",message:"put requires arguments"},{condition:"Content to put is specified",errorCode:"MISSING_CONTENT",message:"put requires content"},{condition:"Position keyword is specified (into, before, after, etc.)",errorCode:"MISSING_POSITION",message:"put requires position keyword"}],recoveryHints:{MISSING_ARGUMENTS:"Use syntax: put <content> into/before/after <target>",MISSING_CONTENT:"Add content to put (string, element, or expression)",MISSING_POSITION:"Add position keyword: into, before, after, at start of, at end of",INVALID_POSITION:"Valid positions: into, before, after, at start of, at end of",NO_TARGET:'Ensure target element exists or use "me" reference',NO_ELEMENTS:"Check that the selector matches existing elements"}},Ur={action:"set",description:"Set a property or variable to a value",category:"variable",primaryRole:"destination",roles:[{role:"destination",description:"The property or variable to set",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"",ja:"\u3092",ko:"\uB97C",tr:"i",ar:"",sw:"",tl:"",bn:"\u0995\u09C7",qu:"ta"}},{role:"patient",description:"The value to set",required:!0,expectedTypes:["literal","expression","reference"],svoPosition:2,sovPosition:2,markerOverride:{en:"to",es:"a",pt:"para",fr:"\xE0",de:"auf",id:"ke",ja:"\u306B",ko:"\uC73C\uB85C",tr:"e",ar:"\u0625\u0644\u0649",sw:"kwenye",tl:"sa",bn:"\u09A4\u09C7",qu:"man"}}],errorCodes:["MISSING_TARGET","INVALID_TARGET","MISSING_VALUE","INVALID_SYNTAX"],preconditions:[{condition:"Command has a target variable or property",errorCode:"MISSING_TARGET",message:"set command requires a target"},{condition:"Target is a valid variable or property reference",errorCode:"INVALID_TARGET",message:"set command target must be a string or object literal"},{condition:'Value is specified with "to" keyword',errorCode:"MISSING_VALUE",message:'set command requires a value (use "to" keyword)'}],recoveryHints:{MISSING_TARGET:"Add a target: set :variable to value OR set element.property to value",INVALID_TARGET:'Use local variable (:name), element property (el.prop), or "the X of Y" syntax',MISSING_VALUE:'Add "to <value>" to specify what to set',INVALID_SYNTAX:"Use syntax: set <target> to <value>"}},Hr={action:"show",description:"Make an element visible",category:"dom-visibility",primaryRole:"patient",roles:[{role:"patient",description:"The element to show",required:!0,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1},{role:"style",description:"Animation style (fade, slide, etc.)",required:!1,expectedTypes:["literal"],svoPosition:2,sovPosition:2}]},$r={action:"hide",description:"Make an element invisible",category:"dom-visibility",primaryRole:"patient",roles:[{role:"patient",description:"The element to hide",required:!0,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1},{role:"style",description:"Animation style (fade, slide, etc.)",required:!1,expectedTypes:["literal"],svoPosition:2,sovPosition:2}]},Gr={action:"on",description:"Handle an event",category:"event",primaryRole:"event",hasBody:!0,roles:[{role:"event",description:"The event to handle",required:!0,expectedTypes:["literal"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to listen on (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},Xr={action:"trigger",description:"Trigger/dispatch an event",category:"event",primaryRole:"event",roles:[{role:"event",description:"The event to trigger (supports namespaced events like draggable:start)",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},Qr={action:"wait",description:"Wait for a duration or event",category:"async",primaryRole:"patient",roles:[{role:"patient",description:"Duration or event to wait for",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1}]},Zr={action:"fetch",description:"Fetch data from a URL",category:"async",primaryRole:"source",roles:[{role:"source",description:"The URL to fetch from",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,renderOverride:{en:""}},{role:"responseType",description:"Response format (json, text, html, blob, etc.)",required:!1,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:2},{role:"method",description:"HTTP method (GET, POST, etc.)",required:!1,expectedTypes:["literal"],svoPosition:3,sovPosition:3},{role:"destination",description:"Where to store the result",required:!1,expectedTypes:["selector","reference"],svoPosition:4,sovPosition:4}]},Yr={action:"increment",description:"Increment a numeric value",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The value to increment",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:1},{role:"quantity",description:"Amount to increment by (defaults to 1)",required:!1,expectedTypes:["literal"],default:{type:"literal",value:1,dataType:"number"},svoPosition:2,sovPosition:2,markerOverride:{en:"by"}}]},Jr={action:"decrement",description:"Decrement a numeric value",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The value to decrement",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:1},{role:"quantity",description:"Amount to decrement by (defaults to 1)",required:!1,expectedTypes:["literal"],default:{type:"literal",value:1,dataType:"number"},svoPosition:2,sovPosition:2,markerOverride:{en:"by"}}]},en={action:"append",description:"Append content to an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The content to append",required:!0,expectedTypes:["literal","selector","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The element to append to",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}]},tn={action:"prepend",description:"Prepend content to an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The content to prepend",required:!0,expectedTypes:["literal","selector","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The element to prepend to",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}]},Ka={action:"log",description:"Log a value to the console",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The value to log",required:!0,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1}]},Ua={action:"get",description:"Get a value from a source",category:"variable",primaryRole:"source",roles:[{role:"source",description:"The source to get from",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:2,markerOverride:{en:"",es:"",pt:"",fr:"",de:"",ja:"\u3092",zh:"",ko:"\uB97C",ar:"\u0639\u0644\u0649",tr:"i",id:"",sw:"",tl:"",bn:"\u0995\u09C7",qu:"ta"}},{role:"destination",description:"Where to store the result (optional)",required:!1,expectedTypes:["reference"],svoPosition:2,sovPosition:1}]},Ha={action:"take",description:"Take content from a source element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The class or element to take",required:!0,expectedTypes:["selector"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to take from (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},$a={action:"make",description:"Create a new element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element type or selector to create",required:!0,expectedTypes:["literal","selector"],svoPosition:1,sovPosition:1}]},Ga={action:"halt",description:"Halt/stop execution or event propagation",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"What to halt (event, default, bubbling, etc.)",required:!1,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:1}]},Xa={action:"settle",description:"Wait for animations/transitions to settle",category:"async",primaryRole:"patient",roles:[{role:"patient",description:"The element to settle (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},Qa={action:"throw",description:"Throw an error",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The error message or object to throw",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1}]},Za={action:"send",description:"Send an event to an element",category:"event",primaryRole:"event",roles:[{role:"event",description:"The event to send",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1,markerOverride:{en:"to",ja:"\u306B",ar:"\u0625\u0644\u0649",es:"a",ko:"\uC5D0\uAC8C",zh:"\u5230",tr:"-e",pt:"para",fr:"\xE0",de:"an",id:"ke",qu:"-man",sw:"kwa"}}]},Ya={action:"if",description:"Conditional execution",category:"control-flow",primaryRole:"condition",hasBody:!0,roles:[{role:"condition",description:"The condition to evaluate",required:!0,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},Ja={action:"unless",description:"Negated conditional execution (executes when condition is false)",category:"control-flow",primaryRole:"condition",hasBody:!0,roles:[{role:"condition",description:"The condition to evaluate (body executes when false)",required:!0,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},eu={action:"else",description:"Else branch of conditional",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[]},tu={action:"repeat",description:"Repeat a block of commands",category:"control-flow",primaryRole:"loopType",hasBody:!0,roles:[{role:"loopType",description:"Loop variant: forever, times, for, while, until, until-event",required:!0,expectedTypes:["literal"],svoPosition:0,sovPosition:0},{role:"quantity",description:"Number of times to repeat",required:!1,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1},{role:"event",description:"Event to wait for (terminates loop)",required:!1,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:2},{role:"source",description:"Element to listen for event on",required:!1,expectedTypes:["selector","reference"],svoPosition:3,sovPosition:3}],notes:'Can also use "repeat forever", "repeat until condition", or "repeat until event X from Y"'},ru={action:"for",description:"Iterate over a collection",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[{role:"patient",description:"The iteration variable",required:!0,expectedTypes:["reference"],svoPosition:1,sovPosition:2},{role:"source",description:"The collection to iterate over",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:2,sovPosition:1,markerOverride:{en:"in"}}]},nu={action:"while",description:"Loop while condition is true",category:"control-flow",primaryRole:"condition",hasBody:!0,roles:[{role:"condition",description:"The condition to check",required:!0,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},iu={action:"continue",description:"Continue to next loop iteration",category:"control-flow",primaryRole:"patient",roles:[]},au={action:"go",description:"Navigate to a URL",category:"navigation",primaryRole:"destination",roles:[{role:"destination",description:"The URL to navigate to",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"to"},renderOverride:{en:""}}]},uu={action:"transition",description:"Transition an element with animation",category:"dom-visibility",primaryRole:"patient",roles:[{role:"patient",description:"The property to transition (opacity, *background-color, etc.)",required:!0,expectedTypes:["literal"],svoPosition:1,sovPosition:2,markerOverride:{en:"",ar:"",tl:"",sw:""}},{role:"goal",description:"The target value to transition to",required:!0,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:3,markerOverride:{en:"to",ar:"\u0625\u0644\u0649",tl:"sa",sw:"kwenye",bn:"\u09A4\u09C7",qu:"man",es:"a",pt:"para",fr:"\xE0",de:"auf",ja:"\u306B",ko:"\uC73C\uB85C",tr:"e",id:"ke"}},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:3,sovPosition:1},{role:"duration",description:"Transition duration (over 500ms, for 2 seconds)",required:!1,expectedTypes:["literal"],svoPosition:4,sovPosition:4,markerOverride:{en:"over"}},{role:"style",description:"Easing function (ease-in, linear, etc.)",required:!1,expectedTypes:["literal"],svoPosition:5,sovPosition:5}]},ou={action:"clone",description:"Clone an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to clone",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:2},{role:"destination",description:"Where to put the clone",required:!1,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"into"}}]},su={action:"focus",description:"Focus an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to focus (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},lu={action:"blur",description:"Remove focus from an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to blur (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},pu={action:"call",description:"Call a function",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The function to call",required:!0,expectedTypes:["expression","reference"],svoPosition:1,sovPosition:1}]},mu={action:"return",description:"Return a value from a function",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The value to return",required:!1,expectedTypes:["literal","expression","reference"],svoPosition:1,sovPosition:1}]},cu={action:"js",description:"Execute raw JavaScript code",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[{role:"patient",description:"The JavaScript code to execute",required:!1,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},du={action:"async",description:"Execute commands asynchronously",category:"async",primaryRole:"patient",hasBody:!0,roles:[]},yu={action:"tell",description:"Execute commands in context of another element",category:"control-flow",primaryRole:"destination",hasBody:!0,roles:[{role:"destination",description:"The element to tell",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:1,markerOverride:{en:""}}]},fu={action:"default",description:"Set a default value for a variable",category:"variable",primaryRole:"destination",roles:[{role:"destination",description:"The variable to set default for",required:!0,expectedTypes:["reference"],svoPosition:1,sovPosition:1,markerOverride:{en:"",ar:"",tl:"",sw:"",bn:"\u0995\u09C7",qu:"ta"}},{role:"patient",description:"The default value",required:!0,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:2,markerOverride:{en:"to",ar:"\u0625\u0644\u0649",tl:"sa",sw:"kwenye",bn:"\u09A4\u09C7",qu:"man"}}]},vu={action:"init",description:"Initialization block that runs once",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[]},hu={action:"behavior",description:"Define a reusable behavior",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[{role:"patient",description:"The behavior name (PascalCase identifier)",required:!0,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:1}]},gu={action:"install",description:"Install a behavior on an element",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The behavior name to install",required:!0,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"Element to install on (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},Eu={action:"measure",description:"Measure element dimensions (x, y, width, height, etc.)",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"Property to measure (x, y, width, height, top, left, etc.)",required:!1,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1},{role:"source",description:"Element to measure (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:2,markerOverride:{en:"of"}}]},zu={action:"swap",description:"Swap DOM content using various strategies (innerHTML, outerHTML, delete, etc.)",category:"dom-content",primaryRole:"destination",roles:[{role:"method",description:"The swap strategy (innerHTML, outerHTML, beforebegin, afterend, delete)",required:!1,expectedTypes:["literal"],svoPosition:1,sovPosition:3,markerOverride:{en:""}},{role:"destination",description:"The element to swap content in/for",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"of"}},{role:"patient",description:"The content to swap in (optional for delete)",required:!1,expectedTypes:["literal","expression","selector"],svoPosition:3,sovPosition:2,markerOverride:{en:"with"}}]},ku={action:"morph",description:"Morph an element into another using DOM diffing",category:"dom-content",primaryRole:"destination",roles:[{role:"destination",description:"The element to morph",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:1,markerOverride:{en:""}},{role:"patient",description:"The target content/element to morph into",required:!0,expectedTypes:["literal","expression","selector"],svoPosition:2,sovPosition:2,markerOverride:{en:"to"}}]},Cu={action:"beep",description:"Debug output for expressions with type information",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The expression(s) to debug",required:!1,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1}]},Au={action:"break",description:"Exit from the current loop",category:"control-flow",primaryRole:"patient",roles:[]},wu={action:"copy",description:"Copy text or element content to the clipboard",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The text or element to copy",required:!0,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1}]},bu={action:"exit",description:"Exit from the current event handler",category:"control-flow",primaryRole:"patient",roles:[]},xu={action:"pick",description:"Select a random element from a collection",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The items to pick from",required:!0,expectedTypes:["literal","expression","reference"],svoPosition:1,sovPosition:1},{role:"source",description:'The array to pick from (with "from" keyword)',required:!1,expectedTypes:["reference","expression"],svoPosition:2,sovPosition:2}]},Du={action:"render",description:"Render a template with optional variables",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The template to render",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:2},{role:"style",description:"Variables to pass to the template (with keyword)",required:!1,expectedTypes:["expression","reference"],svoPosition:2,sovPosition:1}]},de={toggle:Or,add:qr,remove:Vr,put:Kr,set:Ur,show:Hr,hide:$r,on:Gr,trigger:Xr,wait:Qr,fetch:Zr,increment:Yr,decrement:Jr,append:en,prepend:tn,log:Ka,get:Ua,take:Ha,make:$a,halt:Ga,settle:Xa,throw:Qa,send:Za,if:Ya,unless:Ja,else:eu,repeat:tu,for:ru,while:nu,continue:iu,go:au,transition:uu,clone:ou,focus:su,blur:lu,call:pu,return:mu,js:cu,async:du,tell:yu,default:fu,init:vu,behavior:hu,install:gu,measure:Eu,swap:zu,morph:ku,beep:Cu,break:Au,copy:wu,exit:bu,pick:xu,render:Du,compound:{action:"compound",description:"A compound node representing chained statements",primaryRole:"patient",category:"control-flow",hasBody:!0,roles:[]}},typeof process<"u"&&process.env.NODE_ENV!=="production"&&Promise.resolve().then(()=>(Va(),Ia)).then(({validateAllSchemas:e,formatValidationResults:r})=>{let t=e(de);t.size>0&&(console.warn("[SCHEMA VALIDATION] Found issues in command schemas:"),console.warn(r(t)),console.warn(`
|
|
3
|
-
These warnings help identify potential schema design issues.`),console.warn("Fix them to improve type inference and avoid runtime bugs."))}).catch(e=>{console.debug("Schema validation skipped:",e)})}});function Tu(e,r){let t=r==="SOV"?"sovPosition":"svoPosition";return[...e].sort((n,a)=>{let i=n[t]??99,u=a[t]??99;return i-u})}var cp=g({"src/parser/utils/role-positioning.ts"(){"use strict"}});function dp(e,r){let t=e.markerOverride?.[r.code],n=r.roleMarkers[e.role];if(t!==void 0)return{primary:t,position:n?.position??"before",isOverride:!0};if(n&&n.primary){let a={primary:n.primary,position:n.position,isOverride:!1};return n.alternatives&&(a.alternatives=n.alternatives),a}return null}var yp=g({"src/parser/utils/marker-resolution.ts"(){"use strict"}});function fp(e,r,t,n,a){let i=[];if(i.push({type:"role",role:"event",optional:!1}),n.position==="after"){let l=n.primary.split(/\s+/);if(l.length>1)for(let p of l)i.push({type:"literal",value:p});else{let p=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};i.push(p)}}let u=r.roleMarkers.destination;u&&i.push({type:"group",optional:!0,tokens:[{type:"role",role:"destination",optional:!0},u.alternatives?{type:"literal",value:u.primary,alternatives:u.alternatives}:{type:"literal",value:u.primary}]}),i.push({type:"role",role:"patient",optional:!1});let o=r.roleMarkers.patient;if(o){let l=o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary};i.push(l)}let s=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(s),{id:`${e.action}-event-${r.code}-sov`,language:r.code,command:"on",priority:(a.basePriority??100)+50,template:{format:`{event} ${n.primary} {destination?} {patient} ${o?.primary||""} ${t.primary}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}function vp(e,r,t,n,a){let i=[];i.push({type:"role",role:"patient",optional:!1});let u=r.roleMarkers.patient;if(u){let s=u.alternatives?{type:"literal",value:u.primary,alternatives:u.alternatives}:{type:"literal",value:u.primary};i.push(s)}if(i.push({type:"role",role:"event",optional:!1}),n.position==="after"){let s=n.primary.split(/\s+/);if(s.length>1)for(let l of s)i.push({type:"literal",value:l});else{let l=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};i.push(l)}}let o=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(o),{id:`${e.action}-event-${r.code}-sov-patient-first`,language:r.code,command:"on",priority:(a.basePriority??100)+45,template:{format:`{patient} ${u?.primary||""} {event} ${n.primary} ${t.primary}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}function hp(e,r,t,n,a){let i=[];i.push({type:"role",role:"patient",optional:!1});let u=r.roleMarkers.patient;if(u){let l=u.alternatives?{type:"literal",value:u.primary,alternatives:u.alternatives}:{type:"literal",value:u.primary};i.push(l)}let o=r.roleMarkers.destination;if(o&&(i.push({type:"role",role:"destination",optional:!1}),i.push(o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary})),i.push({type:"role",role:"event",optional:!1}),n.position==="after"){let l=n.primary.split(/\s+/);if(l.length>1)for(let p of l)i.push({type:"literal",value:p});else{let p=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};i.push(p)}}let s=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(s),{id:`${e.action}-event-${r.code}-sov-patient-first-dest`,language:r.code,command:"on",priority:(a.basePriority??100)+40,template:{format:`{patient} ${u?.primary||""} {destination} ${o?.primary||""} {event} ${n.primary} ${t.primary}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination"}}}}function gp(e,r,t,n,a){let i=[];i.push({type:"role",role:"event",optional:!1});let u=n.alternatives?.filter(p=>!p.includes(" ")&&p.length>1)||[];u.length>0&&i.push({type:"literal",value:u[0],alternatives:u.slice(1)});let o=r.roleMarkers.destination;o&&i.push({type:"group",optional:!0,tokens:[{type:"role",role:"destination",optional:!0},o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary}]}),i.push({type:"role",role:"patient",optional:!1});let s=r.roleMarkers.patient;if(s){let p=s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary};i.push(p)}let l=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(l),{id:`${e.action}-event-${r.code}-sov-compact`,language:r.code,command:"on",priority:(a.basePriority??100)+52,template:{format:`{event}${u[0]||""} {patient} ${t.primary}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}function Ep(e,r,t,n,a){let i=[];if(i.push({type:"role",role:"event",optional:!1}),n.position==="after"){let o=n.primary.split(/\s+/);if(o.length>1)for(let s of o)i.push({type:"literal",value:s});else{let s=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};i.push(s)}}let u=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(u),{id:`${e.action}-event-${r.code}-sov-simple`,language:r.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`{event} ${n.primary} ${t.primary}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{default:{type:"reference",value:"me"}}}}}function zp(e,r,t,n){let a=r.eventHandler?.temporalMarkers;if(!a||a.length===0)return null;let i=[];i.push({type:"role",role:"event",optional:!1}),r.possessive?.marker&&i.push({type:"group",optional:!0,tokens:[{type:"literal",value:r.possessive.marker}]}),i.push({type:"literal",value:a[0],alternatives:a.slice(1)}),i.push({type:"role",role:"patient",optional:!1});let u=r.roleMarkers.patient;if(u?.primary){let s=u.alternatives?{type:"literal",value:u.primary,alternatives:u.alternatives}:{type:"literal",value:u.primary};i.push(s)}let o=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(o),{id:`${e.action}-event-${r.code}-sov-temporal`,language:r.code,command:"on",priority:(n.basePriority??100)+49,template:{format:`{event} ${a[0]} {patient} ${t.primary}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"}}}}function kp(e,r,t,n,a){let i=[];if(i.push({type:"role",role:"event",optional:!1}),n.position==="after"){let p=n.primary.split(/\s+/);if(p.length>1)for(let y of p)i.push({type:"literal",value:y});else{let y=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};i.push(y)}}let o=[...e.roles.filter(p=>p.required)].sort((p,y)=>{let v=p.sovPosition??999,f=y.sovPosition??999;return v-f});for(let p of o){i.push({type:"role",role:p.role,optional:!1});let y,v;if(p.markerOverride&&p.markerOverride[r.code]!==void 0)y=p.markerOverride[r.code];else{let f=r.roleMarkers[p.role];f&&(y=f.primary,v=f.alternatives)}if(y){let f=v?{type:"literal",value:y,alternatives:v}:{type:"literal",value:y};i.push(f)}}let s=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(s);let l=o.map(p=>`{${p.role}}`).join(" ");return{id:`${e.action}-event-${r.code}-sov-2role`,language:r.code,command:"on",priority:(a.basePriority??100)+55,template:{format:`{event} ${n.primary} ${l} ${t.primary}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},...Object.fromEntries(o.map(p=>[p.role,{fromRole:p.role}]))}}}function Cp(e,r,t,n,a){let i=[],o=[...e.roles.filter(d=>d.required)].sort((d,h)=>{let C=d.sovPosition??999,B=h.sovPosition??999;return C-B}),s=o[0];i.push({type:"role",role:s.role,optional:!1});let l;if(s.markerOverride&&s.markerOverride[r.code]!==void 0)l=s.markerOverride[r.code];else{let d=r.roleMarkers[s.role];d&&(l=d.primary)}if(l&&i.push({type:"literal",value:l}),i.push({type:"role",role:"event",optional:!1}),n.position==="after"){let d=n.primary.split(/\s+/);if(d.length>1)for(let h of d)i.push({type:"literal",value:h});else{let h=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};i.push(h)}}let p=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(p);let y=o[1];i.push({type:"role",role:y.role,optional:!1});let v,f;if(y.markerOverride&&y.markerOverride[r.code]!==void 0)v=y.markerOverride[r.code];else{let d=r.roleMarkers[y.role];d&&(v=d.primary,f=d.alternatives)}if(v){let d=f?{type:"literal",value:v,alternatives:f}:{type:"literal",value:v};i.push(d)}return{id:`${e.action}-event-${r.code}-sov-2role-dest-first`,language:r.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`{${s.role}} {event} ${n.primary} ${t.primary} {${y.role}}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},[s.role]:{fromRole:s.role},[y.role]:{fromRole:y.role}}}}var Ap=g({"src/generators/event-handlers-sov.ts"(){"use strict"}});function Bu(e,r,t,n,a){let i=[];if(n.position==="before"){let s=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};i.push(s)}i.push({type:"role",role:"event",optional:!1});let u=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(u),i.push({type:"role",role:"patient",optional:!1});let o=r.roleMarkers.destination;return o&&i.push({type:"group",optional:!0,tokens:[o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary},{type:"role",role:"destination",optional:!0}]}),{id:`${e.action}-event-${r.code}-vso`,language:r.code,command:"on",priority:(a.basePriority??100)+50,template:{format:`${n.primary} {event} ${t.primary} {patient} ${o?.primary||""} {destination?}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}function wp(e,r,t,n,a){let i=[],u=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(u),i.push({type:"role",role:"patient",optional:!1});let o=r.roleMarkers.destination;if(o&&i.push({type:"group",optional:!0,tokens:[o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary},{type:"role",role:"destination",optional:!0}]}),n.position==="before"){let s=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};i.push(s)}return i.push({type:"role",role:"event",optional:!1}),{id:`${e.action}-event-${r.code}-vso-verb-first`,language:r.code,command:"on",priority:(a.basePriority??100)+45,template:{format:`${t.primary} {patient} ${o?.primary||""} {destination?} ${n.primary} {event}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}function bp(e,r,t,n,a){let i=[],u=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(u);let s=[...e.roles.filter(p=>p.required)].sort((p,y)=>{let v=p.svoPosition??999,f=y.svoPosition??999;return v-f});for(let p of s){let y,v;if(p.markerOverride&&p.markerOverride[r.code]!==void 0)y=p.markerOverride[r.code];else{let f=r.roleMarkers[p.role];f&&(y=f.primary,v=f.alternatives)}if(y){let f=v?{type:"literal",value:y,alternatives:v}:{type:"literal",value:y};i.push(f)}i.push({type:"role",role:p.role,optional:!1})}if(n.position==="before"){let p=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};i.push(p)}i.push({type:"role",role:"event",optional:!1});let l=s.map(p=>`{${p.role}}`).join(" ");return{id:`${e.action}-event-${r.code}-vso-verb-first-2role`,language:r.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`${t.primary} ${l} ${n.primary} {event}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},...Object.fromEntries(s.map(p=>[p.role,{fromRole:p.role}]))}}}function Fu(e,r,t,n,a){let i=[];if(n.position==="before"){let p=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};i.push(p)}i.push({type:"role",role:"event",optional:!1});let u=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(u);let s=[...e.roles.filter(p=>p.required)].sort((p,y)=>{let v=p.svoPosition??999,f=y.svoPosition??999;return v-f});for(let p of s){let y,v;if(p.markerOverride&&p.markerOverride[r.code]!==void 0)y=p.markerOverride[r.code];else{let f=r.roleMarkers[p.role];f&&(y=f.primary,v=f.alternatives)}if(y){let f=v?{type:"literal",value:y,alternatives:v}:{type:"literal",value:y};i.push(f)}i.push({type:"role",role:p.role,optional:!1})}let l=s.map(p=>`{${p.role}}`).join(" ");return{id:`${e.action}-event-${r.code}-vso-2role`,language:r.code,command:"on",priority:(a.basePriority??100)+55,template:{format:`${n.primary} {event} ${t.primary} ${l}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},...Object.fromEntries(s.map(p=>[p.role,{fromRole:p.role}]))}}}function xp(e,r,t,n,a){let i=[],u=r.eventHandler?.negationMarker;if(n.position==="before"){let l=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};i.push(l)}if(u){let l=u.alternatives?{type:"literal",value:u.primary,alternatives:u.alternatives}:{type:"literal",value:u.primary};i.push(l)}i.push({type:"role",role:"event",optional:!1});let o=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(o),i.push({type:"role",role:"patient",optional:!1});let s=r.roleMarkers.destination;return s&&i.push({type:"group",optional:!0,tokens:[s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary},{type:"role",role:"destination",optional:!0}]}),{id:`${e.action}-event-${r.code}-vso-negated`,language:r.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`${n.primary} ${u?.primary||""} {event} ${t.primary} {patient} ${s?.primary||""} {destination?}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}function Dp(e,r,t,n){let a=[];a.push({type:"literal",value:"and",alternatives:["then"]}),a.push({type:"role",role:"event",optional:!1});let i=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};a.push(i),a.push({type:"role",role:"patient",optional:!1});let u=r.roleMarkers.destination;return u&&a.push({type:"group",optional:!0,tokens:[u.alternatives?{type:"literal",value:u.primary,alternatives:u.alternatives}:{type:"literal",value:u.primary},{type:"role",role:"destination",optional:!0}]}),{id:`${e.action}-event-${r.code}-vso-proclitic`,language:r.code,command:"on",priority:(n.basePriority??100)+45,template:{format:`[proclitic?] {event} ${t.primary} {patient} ${u?.primary||""} {destination?}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}var Tp=g({"src/generators/event-handlers-vso.ts"(){"use strict"}});function Su(){return Me().map(r=>Y(r)).filter(r=>r!==void 0)}function nn(e,r,t=oe){let n=`${e.action}-${r.code}-generated`,a=t.basePriority??100,i=r.keywords[e.action];if(!i)throw new Error(`No keyword translation for '${e.action}' in ${r.code}`);let u=Pp(e,r,i),o=ju(e,r),s=Rp(e,r,i);return{id:n,language:r.code,command:e.action,priority:a,template:{format:s,tokens:u},extraction:o}}function Pu(e,r,t=oe){if(e.roles.filter(o=>!o.required).length===0)return null;let a=e.roles.filter(o=>o.required),i={...e,roles:a};return{...nn(i,r,t),id:`${e.action}-${r.code}-simple`,priority:(t.basePriority??100)-5,extraction:ju(e,r)}}function an(e,r,t=oe){let n=[];if(n.push(nn(e,r,t)),t.generateSimpleVariants){let a=Pu(e,r,t);a&&n.push(a)}return n}function _t(e,r=oe){let t=[],n=Ue();for(let a of n){if(!e.keywords[a.action])continue;let i=an(a,e,r);if(t.push(...i),e.eventHandler?.eventMarker){let u=Sp(a,e,r);t.push(...u)}}return t}function Bp(e,r,t=oe){let n=[],a=r??Su();for(let i of a){if(!i.keywords[e.action])continue;let u=an(e,i,t);n.push(...u)}return n}function Fp(e,r=oe){let t=[],n=e??Su();for(let a of n){let i=_t(a,r);t.push(...i)}return t}function Sp(e,r,t=oe){if(!r.eventHandler||!r.eventHandler.eventMarker)return[];let n=[],a=r.eventHandler.eventMarker,i=r.keywords[e.action];if(!i)return[];let o=e.roles.filter(s=>s.required).length===2;if(r.wordOrder==="SOV")if(o)n.push(kp(e,r,i,a,t)),n.push(Cp(e,r,i,a,t));else{n.push(fp(e,r,i,a,t)),n.push(vp(e,r,i,a,t));let s=r.roleMarkers.destination;s&&s.primary!==a.primary&&n.push(hp(e,r,i,a,t));let l=a.primary.split(/\s+/),p=a.alternatives?.some(v=>!v.includes(" ")&&v.length>1);l.length>1&&p&&n.push(gp(e,r,i,a,t)),n.push(Ep(e,r,i,a,t));let y=zp(e,r,i,t);y&&n.push(y)}else r.wordOrder==="VSO"?o?(n.push(Fu(e,r,i,a,t)),n.push(bp(e,r,i,a,t))):(n.push(Bu(e,r,i,a,t)),n.push(wp(e,r,i,a,t)),r.eventHandler?.negationMarker&&n.push(xp(e,r,i,a,t)),r.tokenization?.prefixes&&n.push(Dp(e,r,i,t))):o?n.push(Fu(e,r,i,a,t)):n.push(Bu(e,r,i,a,t));return n}function Pp(e,r,t){let n=[],a=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary},i=jp(e,r);switch(r.wordOrder){case"SVO":n.push(a),n.push(...i);break;case"SOV":n.push(...i),n.push(a);break;case"VSO":n.push(a),n.push(...i);break;default:n.push(a),n.push(...i)}return n}function jp(e,r){let t=[],n=Tu(e.roles,r.wordOrder);for(let a of n){let i=Lp(a,r);a.required?t.push(...i):t.push({type:"group",optional:!0,tokens:i})}return t}function Lp(e,r){let t=[],n=e.markerOverride?.[r.code],a=r.roleMarkers[e.role],i={type:"role",role:e.role,optional:!e.required,expectedTypes:e.expectedTypes};if(n!==void 0)(a?.position??"before")==="before"?(n&&t.push({type:"literal",value:n}),t.push(i)):(t.push(i),n&&t.push({type:"literal",value:n}));else if(a)if(a.position==="before"){if(a.primary){let u=a.alternatives?{type:"literal",value:a.primary,alternatives:a.alternatives}:{type:"literal",value:a.primary};t.push(u)}t.push(i)}else{t.push(i);let u=a.alternatives?{type:"literal",value:a.primary,alternatives:a.alternatives}:{type:"literal",value:a.primary};t.push(u)}else t.push(i);return t}function _p(e,r){let t={};for(let n of e.roles){let a=n.markerOverride?.[r.code],i=r.roleMarkers[n.role];a!==void 0?t[n.role]=a?{marker:a}:{}:i&&i.primary?t[n.role]=i.alternatives?{marker:i.primary,markerAlternatives:i.alternatives}:{marker:i.primary}:t[n.role]={}}return t}function ju(e,r){let t=_p(e,r),n={};for(let a of e.roles){let i=t[a.role]||{};!a.required&&a.default?n[a.role]={...i,default:a.default}:n[a.role]=i}return n}function Rp(e,r,t){let n=[],i=Tu(e.roles,r.wordOrder).map(u=>{let o=dp(u,r),s="";return o&&o.primary?o.position==="before"?s=`${o.primary} {${u.role}}`:s=`{${u.role}} ${o.primary}`:s=`{${u.role}}`,u.required?s:`[${s}]`});switch(r.wordOrder){case"SVO":case"VSO":n.push(t.primary,...i);break;case"SOV":n.push(...i,t.primary);break;default:n.push(t.primary,...i)}return n.join(" ")}function Np(){let e=Me(),r=Ue().map(n=>n.action),t=0;for(let n of e){let a=Y(n);if(a)for(let i of Ue())a.keywords[i.action]&&(t+=2)}return{languages:e,commands:r,totalPatterns:t}}function Ip(e,r=Ue()){let t=[],n=[];for(let a of r)e.keywords[a.action]?n.push(a.action):t.push(a.action);return{missing:t,available:n}}var oe,un=g({"src/generators/pattern-generator.ts"(){"use strict";rn(),cp(),yp(),Ap(),Tp(),T(),oe={basePriority:100,generateSimpleVariants:!0,generateAlternatives:!0}}});function Lu(){return[{id:"toggle-en-full",language:"en",command:"toggle",priority:100,template:{format:"toggle {patient} on {target}",tokens:[{type:"literal",value:"toggle"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"on",alternatives:["from"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"on",markerAlternatives:["from"],default:{type:"reference",value:"me"}}}},{id:"toggle-en-simple",language:"en",command:"toggle",priority:90,template:{format:"toggle {patient}",tokens:[{type:"literal",value:"toggle"},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}var _u=g({"src/patterns/toggle/en.ts"(){"use strict"}});function Ru(){return[{id:"put-en-into",language:"en",command:"put",priority:100,template:{format:"put {patient} into {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"into",alternatives:["in","to"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"into",markerAlternatives:["in","to"]}}},{id:"put-en-before",language:"en",command:"put",priority:95,template:{format:"put {patient} before {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"before"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"before"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-en-after",language:"en",command:"put",priority:95,template:{format:"put {patient} after {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"after"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"after"},manner:{default:{type:"literal",value:"after"}}}}]}var Nu=g({"src/patterns/put/en.ts"(){"use strict"}});function Iu(){return[{id:"event-en-when-source",language:"en",command:"on",priority:115,template:{format:"when {event} from {source} {body}",tokens:[{type:"literal",value:"when"},{type:"role",role:"event"},{type:"literal",value:"from"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"from"}}},{id:"event-en-when",language:"en",command:"on",priority:105,template:{format:"when {event} {body}",tokens:[{type:"literal",value:"when"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-source",language:"en",command:"on",priority:110,template:{format:"on {event} from {source} {body}",tokens:[{type:"literal",value:"on"},{type:"role",role:"event"},{type:"literal",value:"from"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"from"}}},{id:"event-en-standard",language:"en",command:"on",priority:100,template:{format:"on {event} {body}",tokens:[{type:"literal",value:"on"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-upon",language:"en",command:"on",priority:98,template:{format:"upon {event} {body}",tokens:[{type:"literal",value:"upon"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-if",language:"en",command:"on",priority:95,template:{format:"if {event} {body}",tokens:[{type:"literal",value:"if"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}var Wu=g({"src/patterns/event-handler/en.ts"(){"use strict"}}),Mu={};A(Mu,{buildEnglishPatterns:()=>Ou});function Ou(){let e=[];e.push(...Lu()),e.push(...Ru()),e.push(...Iu()),e.push(qu,Vu,Ku,Uu,Hu,$u,Gu,Xu,Qu,Zu,Yu);let r=_t(ce);return e.push(...r),e}var qu,Vu,Ku,Uu,Hu,$u,Gu,Xu,Qu,Zu,Yu,Ju=g({"src/patterns/en.ts"(){"use strict";Ce(),un(),_u(),Nu(),Wu(),qu={id:"fetch-en-with-response-type",language:"en",command:"fetch",priority:90,template:{format:"fetch {source} as {responseType}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source",expectedTypes:["literal","expression"]},{type:"literal",value:"as"},{type:"role",role:"responseType",expectedTypes:["literal","expression"]}]},extraction:{source:{position:1},responseType:{marker:"as"}}},Vu={id:"fetch-en-simple",language:"en",command:"fetch",priority:80,template:{format:"fetch {source}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source"}]},extraction:{source:{position:1}}},Ku={id:"swap-en-handcrafted",language:"en",command:"swap",priority:110,template:{format:"swap {method} {destination}",tokens:[{type:"literal",value:"swap"},{type:"role",role:"method"},{type:"role",role:"destination"}]},extraction:{method:{position:1},destination:{position:2}}},Uu={id:"repeat-en-until-event-from",language:"en",command:"repeat",priority:120,template:{format:"repeat until event {event} from {source}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"from"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]},extraction:{event:{marker:"event"},source:{marker:"from"},loopType:{default:{type:"literal",value:"until-event"}}}},Hu={id:"repeat-en-until-event",language:"en",command:"repeat",priority:110,template:{format:"repeat until event {event}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]}]},extraction:{event:{marker:"event"},loopType:{default:{type:"literal",value:"until-event"}}}},$u={id:"set-en-possessive",language:"en",command:"set",priority:100,template:{format:"set {destination} to {patient}",tokens:[{type:"literal",value:"set"},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"to"},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{marker:"to"}}},Gu={id:"for-en-basic",language:"en",command:"for",priority:100,template:{format:"for {patient} in {source}",tokens:[{type:"literal",value:"for"},{type:"role",role:"patient",expectedTypes:["expression","reference"]},{type:"literal",value:"in"},{type:"role",role:"source",expectedTypes:["selector","expression","reference"]}]},extraction:{patient:{position:1},source:{marker:"in"},loopType:{default:{type:"literal",value:"for"}}}},Xu={id:"if-en-basic",language:"en",command:"if",priority:100,template:{format:"if {condition}",tokens:[{type:"literal",value:"if"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},Qu={id:"unless-en-basic",language:"en",command:"unless",priority:100,template:{format:"unless {condition}",tokens:[{type:"literal",value:"unless"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},Zu={id:"temporal-en-in",language:"en",command:"wait",priority:95,template:{format:"in {duration}",tokens:[{type:"literal",value:"in"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}},Yu={id:"temporal-en-after",language:"en",command:"wait",priority:95,template:{format:"after {duration}",tokens:[{type:"literal",value:"after"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}}}});function Wp(e){return/[áéíóúüñÁÉÍÓÚÜÑ]/.test(e)}function Mp(e){let r=e.toLowerCase();if(r.endsWith("ar")||r.endsWith("er")||r.endsWith("ir")||r.endsWith("ando")||r.endsWith("iendo")||r.endsWith("ado")||r.endsWith("ido")||r.endsWith("arse")||r.endsWith("erse")||r.endsWith("irse"))return!0;for(let t of e)if(Wp(t))return!0;return!1}var on,eo,to,ro,no,sn,Op,qp=g({"src/tokenizers/morphology/spanish-normalizer.ts"(){"use strict";H(),on=["se","me","te","nos","os"],eo=[{ending:"ando",stem:"ar",confidence:.88,type:"gerund"},{ending:"ado",stem:"ar",confidence:.88,type:"participle"},{ending:"ada",stem:"ar",confidence:.88,type:"participle"},{ending:"ados",stem:"ar",confidence:.88,type:"participle"},{ending:"adas",stem:"ar",confidence:.88,type:"participle"},{ending:"o",stem:"ar",confidence:.75,type:"present"},{ending:"as",stem:"ar",confidence:.82,type:"present"},{ending:"a",stem:"ar",confidence:.75,type:"present"},{ending:"amos",stem:"ar",confidence:.85,type:"present"},{ending:"\xE1is",stem:"ar",confidence:.85,type:"present"},{ending:"ais",stem:"ar",confidence:.82,type:"present"},{ending:"an",stem:"ar",confidence:.8,type:"present"},{ending:"\xE9",stem:"ar",confidence:.85,type:"past"},{ending:"aste",stem:"ar",confidence:.88,type:"past"},{ending:"\xF3",stem:"ar",confidence:.82,type:"past"},{ending:"amos",stem:"ar",confidence:.85,type:"past"},{ending:"asteis",stem:"ar",confidence:.88,type:"past"},{ending:"aron",stem:"ar",confidence:.88,type:"past"},{ending:"aba",stem:"ar",confidence:.88,type:"past"},{ending:"abas",stem:"ar",confidence:.88,type:"past"},{ending:"\xE1bamos",stem:"ar",confidence:.88,type:"past"},{ending:"abamos",stem:"ar",confidence:.85,type:"past"},{ending:"abais",stem:"ar",confidence:.88,type:"past"},{ending:"aban",stem:"ar",confidence:.88,type:"past"},{ending:"e",stem:"ar",confidence:.72,type:"subjunctive"},{ending:"es",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"emos",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"\xE9is",stem:"ar",confidence:.85,type:"subjunctive"},{ending:"eis",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"en",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"a",stem:"ar",confidence:.75,type:"imperative"},{ending:"ad",stem:"ar",confidence:.85,type:"imperative"},{ending:"ar",stem:"ar",confidence:.92,type:"dictionary"}],to=[{ending:"iendo",stem:"er",confidence:.88,type:"gerund"},{ending:"ido",stem:"er",confidence:.85,type:"participle"},{ending:"ida",stem:"er",confidence:.85,type:"participle"},{ending:"idos",stem:"er",confidence:.85,type:"participle"},{ending:"idas",stem:"er",confidence:.85,type:"participle"},{ending:"o",stem:"er",confidence:.72,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"e",stem:"er",confidence:.72,type:"present"},{ending:"emos",stem:"er",confidence:.85,type:"present"},{ending:"\xE9is",stem:"er",confidence:.85,type:"present"},{ending:"eis",stem:"er",confidence:.82,type:"present"},{ending:"en",stem:"er",confidence:.78,type:"present"},{ending:"\xED",stem:"er",confidence:.85,type:"past"},{ending:"iste",stem:"er",confidence:.88,type:"past"},{ending:"i\xF3",stem:"er",confidence:.85,type:"past"},{ending:"io",stem:"er",confidence:.82,type:"past"},{ending:"imos",stem:"er",confidence:.85,type:"past"},{ending:"isteis",stem:"er",confidence:.88,type:"past"},{ending:"ieron",stem:"er",confidence:.88,type:"past"},{ending:"\xEDa",stem:"er",confidence:.88,type:"past"},{ending:"ia",stem:"er",confidence:.85,type:"past"},{ending:"\xEDas",stem:"er",confidence:.88,type:"past"},{ending:"ias",stem:"er",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"er",confidence:.88,type:"past"},{ending:"iamos",stem:"er",confidence:.85,type:"past"},{ending:"\xEDais",stem:"er",confidence:.88,type:"past"},{ending:"iais",stem:"er",confidence:.85,type:"past"},{ending:"\xEDan",stem:"er",confidence:.88,type:"past"},{ending:"ian",stem:"er",confidence:.85,type:"past"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],ro=[{ending:"iendo",stem:"ir",confidence:.88,type:"gerund"},{ending:"ido",stem:"ir",confidence:.85,type:"participle"},{ending:"ida",stem:"ir",confidence:.85,type:"participle"},{ending:"idos",stem:"ir",confidence:.85,type:"participle"},{ending:"idas",stem:"ir",confidence:.85,type:"participle"},{ending:"o",stem:"ir",confidence:.72,type:"present"},{ending:"es",stem:"ir",confidence:.78,type:"present"},{ending:"e",stem:"ir",confidence:.72,type:"present"},{ending:"imos",stem:"ir",confidence:.85,type:"present"},{ending:"\xEDs",stem:"ir",confidence:.85,type:"present"},{ending:"is",stem:"ir",confidence:.82,type:"present"},{ending:"en",stem:"ir",confidence:.78,type:"present"},{ending:"\xED",stem:"ir",confidence:.85,type:"past"},{ending:"iste",stem:"ir",confidence:.88,type:"past"},{ending:"i\xF3",stem:"ir",confidence:.85,type:"past"},{ending:"io",stem:"ir",confidence:.82,type:"past"},{ending:"imos",stem:"ir",confidence:.85,type:"past"},{ending:"isteis",stem:"ir",confidence:.88,type:"past"},{ending:"ieron",stem:"ir",confidence:.88,type:"past"},{ending:"\xEDa",stem:"ir",confidence:.88,type:"past"},{ending:"ia",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDas",stem:"ir",confidence:.88,type:"past"},{ending:"ias",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"ir",confidence:.88,type:"past"},{ending:"iamos",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDais",stem:"ir",confidence:.88,type:"past"},{ending:"iais",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDan",stem:"ir",confidence:.88,type:"past"},{ending:"ian",stem:"ir",confidence:.85,type:"past"},{ending:"ir",stem:"ir",confidence:.92,type:"dictionary"}],no=[...eo,...to,...ro].sort((e,r)=>r.ending.length-e.ending.length),sn=class{constructor(){this.language="es"}isNormalizable(e){return e.length<3?!1:Mp(e)}normalize(e){let r=e.toLowerCase();if((r.endsWith("ar")||r.endsWith("er")||r.endsWith("ir"))&&!on.some(a=>r.endsWith(a+"ar")||r.endsWith(a+"er")||r.endsWith(a+"ir")))return j(e);let t=this.tryReflexiveNormalization(r);if(t)return t;let n=this.tryConjugationNormalization(r);return n||j(e)}tryReflexiveNormalization(e){for(let r of on)if(e.endsWith(r)){let t=e.slice(0,-r.length);if(t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir"))return z(t,.88,{removedSuffixes:[r],conjugationType:"reflexive"});let n=this.tryConjugationNormalization(t);if(n&&n.stem!==t)return z(n.stem,n.confidence*.95,{removedSuffixes:[r,...n.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationNormalization(e){for(let r of no)if(e.endsWith(r.ending)){let t=e.slice(0,-r.ending.length);if(t.length<2)continue;let n=t+r.stem;return z(n,r.confidence,{removedSuffixes:[r.ending],conjugationType:r.type})}return null}},Op=new sn}}),io={};A(io,{spanishProfile:()=>Ae});var Ae,He=g({"src/generators/profiles/spanish.ts"(){"use strict";Ae={code:"es",name:"Spanish",nativeName:"Espa\xF1ol",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0},references:{me:"yo",it:"ello",you:"t\xFA",result:"resultado",event:"evento",target:"objetivo",body:"cuerpo"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mi",it:"su",you:"tu"},keywords:{mi:"me",tu:"you",su:"it"}},roleMarkers:{destination:{primary:"en",alternatives:["sobre","a"],position:"before"},source:{primary:"de",alternatives:["desde"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"con",position:"before"}},keywords:{toggle:{primary:"alternar",alternatives:["cambiar","conmutar"],normalized:"toggle"},add:{primary:"agregar",alternatives:["a\xF1adir"],normalized:"add"},remove:{primary:"quitar",alternatives:["eliminar","remover","sacar"],normalized:"remove"},put:{primary:"poner",alternatives:["colocar"],normalized:"put"},append:{primary:"a\xF1adir",normalized:"append"},prepend:{primary:"anteponer",normalized:"prepend"},take:{primary:"tomar",normalized:"take"},make:{primary:"hacer",alternatives:["crear"],normalized:"make"},clone:{primary:"clonar",alternatives:["copiar"],normalized:"clone"},swap:{primary:"intercambiar",alternatives:["cambiar"],normalized:"swap"},morph:{primary:"transformar",alternatives:["convertir"],normalized:"morph"},set:{primary:"establecer",alternatives:["fijar","definir"],normalized:"set"},get:{primary:"obtener",alternatives:["conseguir"],normalized:"get"},increment:{primary:"incrementar",alternatives:["aumentar"],normalized:"increment"},decrement:{primary:"decrementar",alternatives:["disminuir"],normalized:"decrement"},log:{primary:"registrar",alternatives:["imprimir"],normalized:"log"},show:{primary:"mostrar",alternatives:["ense\xF1ar"],normalized:"show"},hide:{primary:"ocultar",alternatives:["esconder"],normalized:"hide"},transition:{primary:"transici\xF3n",alternatives:["animar"],normalized:"transition"},on:{primary:"en",alternatives:["cuando","al"],normalized:"on"},trigger:{primary:"disparar",alternatives:["activar"],normalized:"trigger"},send:{primary:"enviar",normalized:"send"},focus:{primary:"enfocar",normalized:"focus"},blur:{primary:"desenfocar",normalized:"blur"},click:{primary:"clic",alternatives:["hacer clic"],normalized:"click"},hover:{primary:"sobrevolar",alternatives:["pasar por encima"],normalized:"hover"},submit:{primary:"env\xEDo",alternatives:["enviar"],normalized:"submit"},input:{primary:"entrada",alternatives:["introducir"],normalized:"input"},change:{primary:"cambio",alternatives:["cambiar"],normalized:"change"},go:{primary:"ir",alternatives:["navegar"],normalized:"go"},wait:{primary:"esperar",normalized:"wait"},fetch:{primary:"buscar",alternatives:["obtener"],normalized:"fetch"},settle:{primary:"estabilizar",normalized:"settle"},if:{primary:"si",normalized:"if"},when:{primary:"cuando",normalized:"when"},where:{primary:"donde",normalized:"where"},else:{primary:"sino",alternatives:["de lo contrario"],normalized:"else"},repeat:{primary:"repetir",normalized:"repeat"},for:{primary:"para",normalized:"for"},while:{primary:"mientras",normalized:"while"},continue:{primary:"continuar",normalized:"continue"},halt:{primary:"detener",alternatives:["parar"],normalized:"halt"},throw:{primary:"lanzar",alternatives:["arrojar"],normalized:"throw"},call:{primary:"llamar",normalized:"call"},return:{primary:"retornar",alternatives:["devolver"],normalized:"return"},then:{primary:"entonces",alternatives:["luego","despu\xE9s"],normalized:"then"},and:{primary:"y",alternatives:["adem\xE1s","tambi\xE9n"],normalized:"and"},end:{primary:"fin",alternatives:["final","terminar"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"as\xEDncrono",normalized:"async"},tell:{primary:"decir",normalized:"tell"},default:{primary:"predeterminar",alternatives:["por defecto"],normalized:"default"},init:{primary:"iniciar",alternatives:["inicializar"],normalized:"init"},behavior:{primary:"comportamiento",normalized:"behavior"},install:{primary:"instalar",normalized:"install"},measure:{primary:"medir",normalized:"measure"},beep:{primary:"pitido",normalized:"beep"},break:{primary:"romper",normalized:"break"},copy:{primary:"copiar",normalized:"copy"},exit:{primary:"salir",normalized:"exit"},pick:{primary:"escoger",normalized:"pick"},render:{primary:"renderizar",normalized:"render"},into:{primary:"en",alternatives:["dentro de"],normalized:"into"},before:{primary:"antes",normalized:"before"},after:{primary:"despu\xE9s",normalized:"after"},until:{primary:"hasta",normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"de",alternatives:["desde"],normalized:"from"}},eventHandler:{keyword:{primary:"al",alternatives:["cuando","en"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["desde"],position:"before"},eventMarker:{primary:"al",alternatives:["cuando"],position:"before"},temporalMarkers:["cuando","al"]}}}}),ao={};A(ao,{SpanishTokenizer:()=>mn,spanishTokenizer:()=>$e});var ln,uo,oo,pn,so,mn,$e,Rt=g({"src/tokenizers/spanish.ts"(){"use strict";W(),qp(),He(),{isLetter:ln,isIdentifierChar:uo}=K(/[a-zA-ZáéíóúüñÁÉÍÓÚÜÑ]/),oo=[{pattern:"milisegundos",suffix:"ms",length:12,caseInsensitive:!0},{pattern:"milisegundo",suffix:"ms",length:11,caseInsensitive:!0},{pattern:"segundos",suffix:"s",length:8,caseInsensitive:!0},{pattern:"segundo",suffix:"s",length:7,caseInsensitive:!0},{pattern:"minutos",suffix:"m",length:7,caseInsensitive:!0},{pattern:"minuto",suffix:"m",length:6,caseInsensitive:!0},{pattern:"horas",suffix:"h",length:5,caseInsensitive:!0},{pattern:"hora",suffix:"h",length:4,caseInsensitive:!0}],pn=new Set(["en","a","de","desde","hasta","con","sin","por","para","sobre","entre","antes","despu\xE9s","despues","dentro","fuera","al","del"]),so=[{native:"verdadero",normalized:"true"},{native:"falso",normalized:"false"},{native:"nulo",normalized:"null"},{native:"indefinido",normalized:"undefined"},{native:"primero",normalized:"first"},{native:"primera",normalized:"first"},{native:"\xFAltimo",normalized:"last"},{native:"ultima",normalized:"last"},{native:"siguiente",normalized:"next"},{native:"anterior",normalized:"previous"},{native:"cercano",normalized:"closest"},{native:"padre",normalized:"parent"},{native:"clic",normalized:"click"},{native:"click",normalized:"click"},{native:"hacer clic",normalized:"click"},{native:"entrada",normalized:"input"},{native:"cambio",normalized:"change"},{native:"env\xEDo",normalized:"submit"},{native:"envio",normalized:"submit"},{native:"tecla abajo",normalized:"keydown"},{native:"tecla arriba",normalized:"keyup"},{native:"rat\xF3n encima",normalized:"mouseover"},{native:"raton encima",normalized:"mouseover"},{native:"rat\xF3n fuera",normalized:"mouseout"},{native:"raton fuera",normalized:"mouseout"},{native:"enfoque",normalized:"focus"},{native:"desenfoque",normalized:"blur"},{native:"carga",normalized:"load"},{native:"desplazamiento",normalized:"scroll"},{native:"yo",normalized:"me"},{native:"m\xED",normalized:"me"},{native:"mi",normalized:"me"},{native:"ello",normalized:"it"},{native:"resultado",normalized:"result"},{native:"objetivo",normalized:"target"},{native:"destino",normalized:"target"},{native:"segundo",normalized:"s"},{native:"segundos",normalized:"s"},{native:"milisegundo",normalized:"ms"},{native:"milisegundos",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minutos",normalized:"m"},{native:"hora",normalized:"h"},{native:"horas",normalized:"h"},{native:"de lo contrario",normalized:"else"},{native:"hasta que",normalized:"until"},{native:"antes de",normalized:"before"},{native:"despu\xE9s de",normalized:"after"},{native:"despues de",normalized:"after"},{native:"dentro de",normalized:"into"},{native:"fuera de",normalized:"out"},{native:"asincrono",normalized:"async"},{native:"despues",normalized:"after"},{native:"a\xF1adir",normalized:"add"},{native:"toggle",normalized:"toggle"},{native:"borrar",normalized:"remove"},{native:"pon",normalized:"put"},{native:"crear",normalized:"make"},{native:"y",normalized:"and"},{native:"o",normalized:"or"},{native:"no",normalized:"not"},{native:"es",normalized:"is"},{native:"existe",normalized:"exists"},{native:"vac\xEDo",normalized:"empty"},{native:"vacio",normalized:"empty"}],mn=class extends I{constructor(){super(),this.language="es",this.direction="ltr",this.initializeKeywordsFromProfile(Ae,so),this.normalizer=new sn}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let u=this.tryEventModifier(e,t);if(u){r.push(u),t=u.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let o=this.trySelector(e,t);if(o){r.push(o),t=o.position.end;continue}}if(R(e[t])){let u=this.tryString(e,t);if(u){r.push(u),t=u.position.end;continue}}if(N(e,t)){let u=this.tryUrl(e,t);if(u){r.push(u),t=u.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let u=this.extractSpanishNumber(e,t);if(u){r.push(u),t=u.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}let a=this.tryMultiWordPhrase(e,t);if(a){r.push(a),t=a.position.end;continue}if(ln(e[t])){let u=this.extractSpanishWord(e,t);if(u){r.push(u),t=u.position.end;continue}}let i=this.tryOperator(e,t);if(i){r.push(i),t=i.position.end;continue}t++}return new P(r,"es")}classifyToken(e){let r=e.toLowerCase();return pn.has(r)?"particle":this.isKeyword(r)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}tryMultiWordPhrase(e,r){for(let t of this.profileKeywords){if(!t.native.includes(" "))continue;let n=t.native;if(e.slice(r,r+n.length).toLowerCase()===n.toLowerCase()){let i=r+n.length;if(i>=e.length||b(e[i])||!ln(e[i]))return c(e.slice(r,r+n.length),"keyword",m(r,i),t.normalized)}}return null}extractSpanishWord(e,r){let t=r,n="";for(;t<e.length&&uo(e[t]);)n+=e[t++];if(!n)return null;let a=n.toLowerCase();if(pn.has(a))return c(n,"particle",m(r,t));let i=this.lookupKeyword(a);if(i)return c(n,"keyword",m(r,t),i.normalized);let u=this.tryMorphKeywordMatch(a,r,t);return u||c(n,"identifier",m(r,t))}extractSpanishNumber(e,r){return this.tryNumberWithTimeUnits(e,r,oo,{allowSign:!0,skipWhitespace:!0})}},$e=new mn}}),lo={};A(lo,{frenchProfile:()=>we});var we,Ge=g({"src/generators/profiles/french.ts"(){"use strict";we={code:"fr",name:"French",nativeName:"Fran\xE7ais",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!1},references:{me:"moi",it:"il",you:"toi",result:"r\xE9sultat",event:"\xE9v\xE9nement",target:"cible",body:"corps"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"ma",it:"sa",you:"ta"},keywords:{mon:"me",ma:"me",mes:"me",ton:"you",ta:"you",tes:"you",son:"it",sa:"it",ses:"it"}},roleMarkers:{destination:{primary:"sur",alternatives:["\xE0","dans"],position:"before"},source:{primary:"de",alternatives:["depuis"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"avec",position:"before"}},keywords:{toggle:{primary:"basculer",alternatives:["permuter","alterner"],normalized:"toggle"},add:{primary:"ajouter",normalized:"add"},remove:{primary:"supprimer",alternatives:["enlever","retirer"],normalized:"remove"},put:{primary:"mettre",alternatives:["placer"],normalized:"put"},append:{primary:"annexer",normalized:"append"},prepend:{primary:"pr\xE9fixer",normalized:"prepend"},take:{primary:"prendre",normalized:"take"},make:{primary:"faire",alternatives:["cr\xE9er"],normalized:"make"},clone:{primary:"cloner",alternatives:["copier"],normalized:"clone"},swap:{primary:"\xE9changer",alternatives:["permuter"],normalized:"swap"},morph:{primary:"transformer",alternatives:["m\xE9tamorphoser"],normalized:"morph"},set:{primary:"d\xE9finir",alternatives:["\xE9tablir"],normalized:"set"},get:{primary:"obtenir",normalized:"get"},increment:{primary:"incr\xE9menter",alternatives:["augmenter"],normalized:"increment"},decrement:{primary:"d\xE9cr\xE9menter",alternatives:["diminuer"],normalized:"decrement"},log:{primary:"enregistrer",alternatives:["afficher"],normalized:"log"},show:{primary:"montrer",alternatives:["afficher"],normalized:"show"},hide:{primary:"cacher",alternatives:["masquer"],normalized:"hide"},transition:{primary:"transition",alternatives:["animer"],normalized:"transition"},on:{primary:"sur",alternatives:["quand","lors"],normalized:"on"},trigger:{primary:"d\xE9clencher",normalized:"trigger"},send:{primary:"envoyer",normalized:"send"},focus:{primary:"focaliser",alternatives:["concentrer"],normalized:"focus"},blur:{primary:"d\xE9focaliser",normalized:"blur"},go:{primary:"aller",alternatives:["naviguer"],normalized:"go"},wait:{primary:"attendre",normalized:"wait"},fetch:{primary:"chercher",alternatives:["r\xE9cup\xE9rer"],normalized:"fetch"},settle:{primary:"stabiliser",normalized:"settle"},if:{primary:"si",normalized:"if"},when:{primary:"quand",normalized:"when"},where:{primary:"o\xF9",normalized:"where"},else:{primary:"sinon",normalized:"else"},repeat:{primary:"r\xE9p\xE9ter",normalized:"repeat"},for:{primary:"pour",normalized:"for"},while:{primary:"pendant",normalized:"while"},continue:{primary:"continuer",normalized:"continue"},halt:{primary:"arr\xEAter",alternatives:["stopper"],normalized:"halt"},throw:{primary:"lancer",normalized:"throw"},call:{primary:"appeler",normalized:"call"},return:{primary:"retourner",alternatives:["renvoyer"],normalized:"return"},then:{primary:"puis",alternatives:["ensuite","alors"],normalized:"then"},and:{primary:"et",alternatives:["aussi","\xE9galement"],normalized:"and"},end:{primary:"fin",alternatives:["terminer","finir"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asynchrone",normalized:"async"},tell:{primary:"dire",normalized:"tell"},default:{primary:"d\xE9faut",normalized:"default"},init:{primary:"initialiser",normalized:"init"},behavior:{primary:"comportement",normalized:"behavior"},install:{primary:"installer",normalized:"install"},measure:{primary:"mesurer",normalized:"measure"},beep:{primary:"bip",normalized:"beep"},break:{primary:"arr\xEAter",normalized:"break"},copy:{primary:"copier",normalized:"copy"},exit:{primary:"sortir",normalized:"exit"},pick:{primary:"choisir",normalized:"pick"},render:{primary:"rendu",normalized:"render"},into:{primary:"dans",normalized:"into"},before:{primary:"avant",normalized:"before"},after:{primary:"apr\xE8s",normalized:"after"},click:{primary:"clic",alternatives:["clique"],normalized:"click"},hover:{primary:"survol",alternatives:["survoler"],normalized:"hover"},submit:{primary:"soumission",alternatives:["soumettre"],normalized:"submit"},input:{primary:"saisie",alternatives:["entr\xE9e"],normalized:"input"},change:{primary:"changement",alternatives:["modifier"],normalized:"change"},until:{primary:"jusqu'\xE0",alternatives:["jusque"],normalized:"until"},event:{primary:"\xE9v\xE9nement",normalized:"event"},from:{primary:"de",alternatives:["depuis"],normalized:"from"}},eventHandler:{keyword:{primary:"sur",alternatives:["lors"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["depuis"],position:"before"},conditionalKeyword:{primary:"quand",alternatives:["lorsque"]},eventMarker:{primary:"au",alternatives:["lors du","lors de"],position:"before"},temporalMarkers:["quand","lorsque"]}}}});function Vp(e){let r=e.toLowerCase();return!!(r.endsWith("er")||r.endsWith("ir")||r.endsWith("re")||r.endsWith("ant")||r.endsWith("\xE9")||r.endsWith("i")||r.endsWith("u")||/[àâäéèêëïîôùûüÿçœæ]/i.test(e))}var po,mo,co,yo,fo,cn,Kp,Up=g({"src/tokenizers/morphology/french-normalizer.ts"(){"use strict";H(),po=["toi","vous","nous"],mo=[{ending:"ant",stem:"er",confidence:.88,type:"gerund"},{ending:"\xE9",stem:"er",confidence:.88,type:"participle"},{ending:"\xE9e",stem:"er",confidence:.88,type:"participle"},{ending:"\xE9s",stem:"er",confidence:.88,type:"participle"},{ending:"\xE9es",stem:"er",confidence:.88,type:"participle"},{ending:"e",stem:"er",confidence:.75,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"ons",stem:"er",confidence:.85,type:"present"},{ending:"ez",stem:"er",confidence:.85,type:"present"},{ending:"ent",stem:"er",confidence:.82,type:"present"},{ending:"ais",stem:"er",confidence:.82,type:"past"},{ending:"ait",stem:"er",confidence:.82,type:"past"},{ending:"ions",stem:"er",confidence:.85,type:"past"},{ending:"iez",stem:"er",confidence:.85,type:"past"},{ending:"aient",stem:"er",confidence:.85,type:"past"},{ending:"ai",stem:"er",confidence:.8,type:"past"},{ending:"as",stem:"er",confidence:.78,type:"past"},{ending:"a",stem:"er",confidence:.75,type:"past"},{ending:"\xE2mes",stem:"er",confidence:.88,type:"past"},{ending:"\xE2tes",stem:"er",confidence:.88,type:"past"},{ending:"\xE8rent",stem:"er",confidence:.88,type:"past"},{ending:"erai",stem:"er",confidence:.85,type:"future"},{ending:"eras",stem:"er",confidence:.85,type:"future"},{ending:"era",stem:"er",confidence:.82,type:"future"},{ending:"erons",stem:"er",confidence:.88,type:"future"},{ending:"erez",stem:"er",confidence:.88,type:"future"},{ending:"eront",stem:"er",confidence:.88,type:"future"},{ending:"erais",stem:"er",confidence:.85,type:"conditional"},{ending:"erait",stem:"er",confidence:.85,type:"conditional"},{ending:"erions",stem:"er",confidence:.88,type:"conditional"},{ending:"eriez",stem:"er",confidence:.88,type:"conditional"},{ending:"eraient",stem:"er",confidence:.88,type:"conditional"},{ending:"ions",stem:"er",confidence:.8,type:"subjunctive"},{ending:"iez",stem:"er",confidence:.8,type:"subjunctive"},{ending:"ons",stem:"er",confidence:.82,type:"imperative"},{ending:"ez",stem:"er",confidence:.82,type:"imperative"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],co=[{ending:"issant",stem:"ir",confidence:.88,type:"gerund"},{ending:"i",stem:"ir",confidence:.8,type:"participle"},{ending:"ie",stem:"ir",confidence:.82,type:"participle"},{ending:"is",stem:"ir",confidence:.78,type:"participle"},{ending:"ies",stem:"ir",confidence:.82,type:"participle"},{ending:"is",stem:"ir",confidence:.78,type:"present"},{ending:"it",stem:"ir",confidence:.78,type:"present"},{ending:"issons",stem:"ir",confidence:.88,type:"present"},{ending:"issez",stem:"ir",confidence:.88,type:"present"},{ending:"issent",stem:"ir",confidence:.88,type:"present"},{ending:"issais",stem:"ir",confidence:.85,type:"past"},{ending:"issait",stem:"ir",confidence:.85,type:"past"},{ending:"issions",stem:"ir",confidence:.88,type:"past"},{ending:"issiez",stem:"ir",confidence:.88,type:"past"},{ending:"issaient",stem:"ir",confidence:.88,type:"past"},{ending:"irai",stem:"ir",confidence:.85,type:"future"},{ending:"iras",stem:"ir",confidence:.85,type:"future"},{ending:"ira",stem:"ir",confidence:.82,type:"future"},{ending:"irons",stem:"ir",confidence:.88,type:"future"},{ending:"irez",stem:"ir",confidence:.88,type:"future"},{ending:"iront",stem:"ir",confidence:.88,type:"future"},{ending:"ir",stem:"ir",confidence:.9,type:"dictionary"}],yo=[{ending:"ant",stem:"re",confidence:.82,type:"gerund"},{ending:"u",stem:"re",confidence:.8,type:"participle"},{ending:"ue",stem:"re",confidence:.82,type:"participle"},{ending:"us",stem:"re",confidence:.82,type:"participle"},{ending:"ues",stem:"re",confidence:.82,type:"participle"},{ending:"s",stem:"re",confidence:.72,type:"present"},{ending:"d",stem:"re",confidence:.75,type:"present"},{ending:"ons",stem:"re",confidence:.82,type:"present"},{ending:"ez",stem:"re",confidence:.82,type:"present"},{ending:"ent",stem:"re",confidence:.8,type:"present"},{ending:"re",stem:"re",confidence:.9,type:"dictionary"}],fo=[...mo,...co,...yo].sort((e,r)=>r.ending.length-e.ending.length),cn=class{constructor(){this.language="fr"}isNormalizable(e){return e.length<3?!1:Vp(e)}normalize(e){let r=e.toLowerCase();if((r.endsWith("er")||r.endsWith("ir")||r.endsWith("re"))&&r.length>=4)return j(e);let t=this.tryReflexiveNormalization(r);if(t)return t;let n=this.tryConjugationNormalization(r);return n||j(e)}tryReflexiveNormalization(e){for(let r of po){let t="-"+r;if(e.endsWith(t)){let n=e.slice(0,-t.length),a=this.tryConjugationNormalization(n);if(a&&a.stem!==n)return z(a.stem,a.confidence*.95,{removedSuffixes:[t,...a.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}}return null}tryConjugationNormalization(e){for(let r of fo)if(e.endsWith(r.ending)){let t=e.slice(0,-r.ending.length);if(t.length<2)continue;let n=t+r.stem;return z(n,r.confidence,{removedSuffixes:[r.ending],conjugationType:r.type})}return null}},Kp=new cn}}),vo={};A(vo,{FrenchTokenizer:()=>yn,frenchTokenizer:()=>fn});var ho,go,dn,Eo,zo,yn,fn,ko=g({"src/tokenizers/french.ts"(){"use strict";W(),Ge(),Up(),{isLetter:ho,isIdentifierChar:go}=K(/[a-zA-ZàâäéèêëîïôùûüçœæÀÂÄÉÈÊËÎÏÔÙÛÜÇŒÆ]/),dn=new Set(["\xE0","a","de","du","des","dans","sur","sous","avec","sans","par","pour","entre","avant","apr\xE8s","apres","depuis","vers","chez","contre","au","aux"]),Eo=[{native:"vrai",normalized:"true"},{native:"faux",normalized:"false"},{native:"nul",normalized:"null"},{native:"ind\xE9fini",normalized:"undefined"},{native:"indefini",normalized:"undefined"},{native:"premier",normalized:"first"},{native:"premi\xE8re",normalized:"first"},{native:"premiere",normalized:"first"},{native:"dernier",normalized:"last"},{native:"derni\xE8re",normalized:"last"},{native:"derniere",normalized:"last"},{native:"suivant",normalized:"next"},{native:"pr\xE9c\xE9dent",normalized:"previous"},{native:"precedent",normalized:"previous"},{native:"plus proche",normalized:"closest"},{native:"parent",normalized:"parent"},{native:"clic",normalized:"click"},{native:"click",normalized:"click"},{native:"entr\xE9e",normalized:"input"},{native:"entree",normalized:"input"},{native:"changement",normalized:"change"},{native:"soumission",normalized:"submit"},{native:"touche bas",normalized:"keydown"},{native:"touche haut",normalized:"keyup"},{native:"souris dessus",normalized:"mouseover"},{native:"souris dehors",normalized:"mouseout"},{native:"focus",normalized:"focus"},{native:"flou",normalized:"blur"},{native:"chargement",normalized:"load"},{native:"d\xE9filement",normalized:"scroll"},{native:"defilement",normalized:"scroll"},{native:"je",normalized:"me"},{native:"mon",normalized:"my"},{native:"ma",normalized:"my"},{native:"mes",normalized:"my"},{native:"\xE7a",normalized:"it"},{native:"ca",normalized:"it"},{native:"resultat",normalized:"result"},{native:"evenement",normalized:"event"},{native:"seconde",normalized:"s"},{native:"secondes",normalized:"s"},{native:"milliseconde",normalized:"ms"},{native:"millisecondes",normalized:"ms"},{native:"minute",normalized:"m"},{native:"minutes",normalized:"m"},{native:"heure",normalized:"h"},{native:"heures",normalized:"h"},{native:"prefixer",normalized:"prepend"},{native:"creer",normalized:"make"},{native:"definir",normalized:"set"},{native:"etablir",normalized:"set"},{native:"incrementer",normalized:"increment"},{native:"decrementer",normalized:"decrement"},{native:"declencher",normalized:"trigger"},{native:"defocaliser",normalized:"blur"},{native:"recuperer",normalized:"fetch"},{native:"repeter",normalized:"repeat"},{native:"arreter",normalized:"halt"},{native:"defaut",normalized:"default"},{native:"jusqua",normalized:"until"},{native:"apres",normalized:"after"},{native:"journaliser",normalized:"log"},{native:"transmuter",normalized:"morph"},{native:"tant que",normalized:"while"}],zo=[{pattern:"millisecondes",suffix:"ms",length:13,caseInsensitive:!0},{pattern:"milliseconde",suffix:"ms",length:12,caseInsensitive:!0},{pattern:"secondes",suffix:"s",length:8,caseInsensitive:!0},{pattern:"seconde",suffix:"s",length:7,caseInsensitive:!0},{pattern:"minutes",suffix:"m",length:7,caseInsensitive:!0},{pattern:"minute",suffix:"m",length:6,caseInsensitive:!0},{pattern:"heures",suffix:"h",length:6,caseInsensitive:!0},{pattern:"heure",suffix:"h",length:5,caseInsensitive:!0}],yn=class extends I{constructor(){super(),this.language="fr",this.direction="ltr",this.initializeKeywordsFromProfile(we,Eo),this.normalizer=new cn}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let i=this.extractNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}if(ho(e[t])){let i=this.extractWord(e,t);if(i){r.push(i),t=i.position.end;continue}}let a=this.tryOperator(e,t);if(a){r.push(a),t=a.position.end;continue}t++}return new P(r,"fr")}classifyToken(e){let r=e.toLowerCase();return dn.has(r)?"particle":this.isKeyword(r)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}extractWord(e,r){let t=r,n="";for(;t<e.length&&go(e[t]);)n+=e[t++];if(!n)return null;let a=n.toLowerCase(),i=this.lookupKeyword(a);return i?c(n,"keyword",m(r,t),i.normalized):dn.has(a)?c(n,"particle",m(r,t)):c(n,"identifier",m(r,t))}extractNumber(e,r){return this.tryNumberWithTimeUnits(e,r,zo,{allowSign:!0,skipWhitespace:!0})}},fn=new yn}}),Nt,vn=g({"src/generators/profiles/hebrew.ts"(){"use strict";Nt={code:"he",name:"Hebrew",nativeName:"\u05E2\u05D1\u05E8\u05D9\u05EA",direction:"rtl",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"second",subjectDrop:!0},references:{me:"\u05D0\u05E0\u05D9",it:"\u05D6\u05D4",you:"\u05D0\u05EA\u05D4",result:"\u05EA\u05D5\u05E6\u05D0\u05D4",event:"\u05D0\u05D9\u05E8\u05D5\u05E2",target:"\u05D9\u05E2\u05D3",body:"\u05D2\u05D5\u05E3"},possessive:{marker:"\u05E9\u05DC",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"\u05E9\u05DC\u05D9",it:"\u05E9\u05DC\u05D5",you:"\u05E9\u05DC\u05DA"},keywords:{\u05E9\u05DC\u05D9:"me",\u05E9\u05DC\u05DA:"you",\u05E9\u05DC\u05D5:"it",\u05E9\u05DC\u05D4:"it"}},roleMarkers:{destination:{primary:"\u05E2\u05DC",alternatives:["\u05D1","\u05D0\u05DC","\u05DC"],position:"before"},source:{primary:"\u05DE",alternatives:["\u05DE\u05DF","\u05DE\u05D0\u05EA"],position:"before"},patient:{primary:"\u05D0\u05EA",position:"before"},style:{primary:"\u05E2\u05DD",alternatives:["\u05D1"],position:"before"}},keywords:{toggle:{primary:"\u05D4\u05D7\u05DC\u05E3",alternatives:["\u05E9\u05E0\u05D4","\u05D4\u05E4\u05D5\u05DA"],normalized:"toggle"},add:{primary:"\u05D4\u05D5\u05E1\u05E3",alternatives:["\u05D4\u05DB\u05E0\u05E1"],normalized:"add"},remove:{primary:"\u05D4\u05E1\u05E8",alternatives:["\u05DE\u05D7\u05E7","\u05D4\u05D5\u05E8\u05D3"],normalized:"remove"},put:{primary:"\u05E9\u05D9\u05DD",alternatives:["\u05D4\u05E0\u05D7","\u05D4\u05DB\u05E0\u05E1"],normalized:"put"},append:{primary:"\u05E6\u05E8\u05E3",alternatives:["\u05D4\u05D5\u05E1\u05E3 \u05D1\u05E1\u05D5\u05E3"],normalized:"append"},prepend:{primary:"\u05D4\u05E7\u05D3\u05DD",alternatives:["\u05D4\u05D5\u05E1\u05E3 \u05D1\u05D4\u05EA\u05D7\u05DC\u05D4"],normalized:"prepend"},take:{primary:"\u05E7\u05D7",normalized:"take"},make:{primary:"\u05E6\u05D5\u05E8",alternatives:["\u05D4\u05DB\u05DF"],normalized:"make"},clone:{primary:"\u05E9\u05DB\u05E4\u05DC",alternatives:["\u05D4\u05E2\u05EA\u05E7"],normalized:"clone"},swap:{primary:"\u05D4\u05D7\u05DC\u05E3",alternatives:["\u05D4\u05DE\u05E8"],normalized:"swap"},morph:{primary:"\u05D4\u05E4\u05D5\u05DA",alternatives:["\u05E9\u05E0\u05D4"],normalized:"morph"},set:{primary:"\u05E7\u05D1\u05E2",alternatives:["\u05D4\u05D2\u05D3\u05E8"],normalized:"set"},get:{primary:"\u05E7\u05D1\u05DC",alternatives:["\u05D4\u05E9\u05D2"],normalized:"get"},increment:{primary:"\u05D4\u05D2\u05D3\u05DC",alternatives:["\u05D4\u05D5\u05E1\u05E3 \u05D0\u05D7\u05D3"],normalized:"increment"},decrement:{primary:"\u05D4\u05E7\u05D8\u05DF",alternatives:["\u05D4\u05E4\u05D7\u05EA"],normalized:"decrement"},log:{primary:"\u05E8\u05E9\u05D5\u05DD",normalized:"log"},show:{primary:"\u05D4\u05E8\u05D0\u05D4",alternatives:["\u05D4\u05E6\u05D2"],normalized:"show"},hide:{primary:"\u05D4\u05E1\u05EA\u05E8",alternatives:["\u05D4\u05D7\u05D1\u05D0"],normalized:"hide"},transition:{primary:"\u05DE\u05E2\u05D1\u05E8",alternatives:["\u05D4\u05E0\u05E4\u05E9"],normalized:"transition"},on:{primary:"\u05D1",alternatives:["\u05DB\u05E9","\u05DB\u05D0\u05E9\u05E8","\u05E2\u05DD"],normalized:"on"},trigger:{primary:"\u05D4\u05E4\u05E2\u05DC",alternatives:["\u05E9\u05D2\u05E8"],normalized:"trigger"},send:{primary:"\u05E9\u05DC\u05D7",normalized:"send"},focus:{primary:"\u05DE\u05E7\u05D3",alternatives:["\u05D4\u05EA\u05DE\u05E7\u05D3"],normalized:"focus"},blur:{primary:"\u05D8\u05E9\u05D8\u05E9",alternatives:["\u05D4\u05E1\u05E8 \u05DE\u05D9\u05E7\u05D5\u05D3"],normalized:"blur"},go:{primary:"\u05DC\u05DA",alternatives:["\u05E0\u05D5\u05D5\u05D8","\u05E2\u05D1\u05D5\u05E8"],normalized:"go"},wait:{primary:"\u05D7\u05DB\u05D4",alternatives:["\u05D4\u05DE\u05EA\u05DF"],normalized:"wait"},fetch:{primary:"\u05D4\u05D1\u05D0",alternatives:["\u05D8\u05E2\u05DF"],normalized:"fetch"},settle:{primary:"\u05D4\u05EA\u05D9\u05D9\u05E6\u05D1",normalized:"settle"},if:{primary:"\u05D0\u05DD",normalized:"if"},when:{primary:"\u05DB\u05D0\u05E9\u05E8",alternatives:["\u05DB\u05E9"],normalized:"when"},where:{primary:"\u05D0\u05D9\u05E4\u05D4",alternatives:["\u05D4\u05D9\u05DB\u05DF"],normalized:"where"},else:{primary:"\u05D0\u05D7\u05E8\u05EA",alternatives:["\u05D0\u05DD \u05DC\u05D0"],normalized:"else"},repeat:{primary:"\u05D7\u05D6\u05D5\u05E8",normalized:"repeat"},for:{primary:"\u05E2\u05D1\u05D5\u05E8",alternatives:["\u05DC\u05DB\u05DC"],normalized:"for"},while:{primary:"\u05DB\u05DC \u05E2\u05D5\u05D3",alternatives:["\u05D1\u05D6\u05DE\u05DF"],normalized:"while"},continue:{primary:"\u05D4\u05DE\u05E9\u05DA",normalized:"continue"},halt:{primary:"\u05E2\u05E6\u05D5\u05E8",alternatives:["\u05D4\u05E4\u05E1\u05E7"],normalized:"halt"},throw:{primary:"\u05D6\u05E8\u05D5\u05E7",normalized:"throw"},call:{primary:"\u05E7\u05E8\u05D0",alternatives:["\u05D4\u05E4\u05E2\u05DC"],normalized:"call"},return:{primary:"\u05D4\u05D7\u05D6\u05E8",alternatives:["\u05D7\u05D6\u05D5\u05E8"],normalized:"return"},then:{primary:"\u05D0\u05D6",alternatives:["\u05D0\u05D7\u05E8\u05D9","\u05D5\u05D0\u05D6"],normalized:"then"},and:{primary:"\u05D5\u05D2\u05DD",alternatives:["\u05D2\u05DD"],normalized:"and"},end:{primary:"\u05E1\u05D5\u05E3",alternatives:["\u05E1\u05D9\u05D5\u05DD"],normalized:"end"},js:{primary:"js",alternatives:["\u05D2\u05F3\u05D0\u05D5\u05D5\u05D4\u05E1\u05E7\u05E8\u05D9\u05E4\u05D8"],normalized:"js"},async:{primary:"\u05D0\u05E1\u05D9\u05E0\u05DB\u05E8\u05D5\u05E0\u05D9",normalized:"async"},tell:{primary:"\u05D0\u05DE\u05D5\u05E8",normalized:"tell"},default:{primary:"\u05D1\u05E8\u05D9\u05E8\u05EA \u05DE\u05D7\u05D3\u05DC",normalized:"default"},init:{primary:"\u05D0\u05EA\u05D7\u05DC",alternatives:["\u05D4\u05EA\u05D7\u05DC"],normalized:"init"},behavior:{primary:"\u05D4\u05EA\u05E0\u05D4\u05D2\u05D5\u05EA",normalized:"behavior"},install:{primary:"\u05D4\u05EA\u05E7\u05DF",normalized:"install"},measure:{primary:"\u05DE\u05D3\u05D5\u05D3",normalized:"measure"},beep:{primary:"\u05D1\u05D9\u05E4",normalized:"beep"},break:{primary:"\u05E9\u05D1\u05D5\u05E8",normalized:"break"},copy:{primary:"\u05D4\u05E2\u05EA\u05E7",normalized:"copy"},exit:{primary:"\u05E6\u05D0",normalized:"exit"},pick:{primary:"\u05D1\u05D7\u05E8",normalized:"pick"},render:{primary:"\u05E8\u05E0\u05D3\u05E8",normalized:"render"},into:{primary:"\u05DC\u05EA\u05D5\u05DA",alternatives:["\u05D0\u05DC"],normalized:"into"},before:{primary:"\u05DC\u05E4\u05E0\u05D9",normalized:"before"},after:{primary:"\u05D0\u05D7\u05E8\u05D9",normalized:"after"},click:{primary:"\u05DC\u05D7\u05D9\u05E6\u05D4",alternatives:["\u05E7\u05DC\u05D9\u05E7"],normalized:"click"},hover:{primary:"\u05E8\u05D9\u05D7\u05D5\u05E3",alternatives:["\u05DE\u05E2\u05D1\u05E8"],normalized:"hover"},submit:{primary:"\u05E9\u05DC\u05D9\u05D7\u05D4",alternatives:["\u05D4\u05D2\u05E9\u05D4"],normalized:"submit"},input:{primary:"\u05E7\u05DC\u05D8",alternatives:["\u05D4\u05D6\u05E0\u05D4"],normalized:"input"},change:{primary:"\u05E9\u05D9\u05E0\u05D5\u05D9",alternatives:["\u05E2\u05D3\u05DB\u05D5\u05DF"],normalized:"change"},until:{primary:"\u05E2\u05D3",normalized:"until"},event:{primary:"\u05D0\u05D9\u05E8\u05D5\u05E2",normalized:"event"},from:{primary:"\u05DE",alternatives:["\u05DE\u05D0\u05EA"],normalized:"from"}},tokenization:{prefixes:["\u05D4","\u05D5","\u05D1","\u05DB","\u05DC","\u05DE","\u05E9"]},eventHandler:{keyword:{primary:"\u05D1",alternatives:["\u05DB\u05E9","\u05DB\u05D0\u05E9\u05E8","\u05E2\u05DD"],normalized:"on"},sourceMarker:{primary:"\u05DE",alternatives:["\u05DE\u05D0\u05EA"],position:"before"},conditionalKeyword:{primary:"\u05DB\u05D0\u05E9\u05E8",alternatives:["\u05DB\u05E9","\u05D0\u05DD"]},eventMarker:{primary:"\u05D1",alternatives:["\u05DB\u05E9","\u05E2\u05DD"],position:"before"},temporalMarkers:["\u05DB\u05D0\u05E9\u05E8","\u05DB\u05E9","\u05E2\u05DD"]}}}}),te,Co,Ao,wo,Xe,bo,xo,Do,To,Hp=g({"src/tokenizers/he.ts"(){"use strict";W(),vn(),te=Q([[1424,1535],[64285,64335]]),Co=new Map([["\u05D5","and"]]),Ao=new Map([["\u05D1","on"],["\u05DB","when"]]),wo=new Set(["\u05DC\u05D7\u05D9\u05E6\u05D4","\u05E7\u05DC\u05D9\u05E7","\u05E9\u05DC\u05D9\u05D7\u05D4","\u05D4\u05D2\u05E9\u05D4","\u05E8\u05D9\u05D7\u05D5\u05E3","\u05DE\u05E2\u05D1\u05E8","\u05E9\u05D9\u05E0\u05D5\u05D9","\u05E2\u05D3\u05DB\u05D5\u05DF","\u05E7\u05DC\u05D8","\u05D4\u05D6\u05E0\u05D4","\u05DE\u05D9\u05E7\u05D5\u05D3","\u05D8\u05E9\u05D8\u05D5\u05E9","\u05D8\u05E2\u05D9\u05E0\u05D4","\u05D2\u05DC\u05D9\u05DC\u05D4"]),Xe=new Set(["\u05E2\u05DC","\u05D0\u05EA","\u05D0\u05DC","\u05DE\u05DF","\u05E2\u05DD","\u05D1\u05EA\u05D5\u05DA","\u05DE\u05EA\u05D5\u05DA","\u05DC\u05D9\u05D3","\u05D0\u05D7\u05E8\u05D9","\u05DC\u05E4\u05E0\u05D9","\u05D1\u05D9\u05DF","\u05E2\u05D3","\u05E9\u05DC"]),bo=[{native:"\u05D0\u05DE\u05EA",normalized:"true"},{native:"\u05E9\u05E7\u05E8",normalized:"false"},{native:"null",normalized:"null"},{native:"\u05E8\u05D9\u05E7",normalized:"null"},{native:"\u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8",normalized:"undefined"},{native:"\u05E8\u05D0\u05E9\u05D5\u05DF",normalized:"first"},{native:"\u05D0\u05D7\u05E8\u05D5\u05DF",normalized:"last"},{native:"\u05D4\u05D1\u05D0",normalized:"next"},{native:"\u05D4\u05E7\u05D5\u05D3\u05DD",normalized:"previous"},{native:"\u05D4\u05E7\u05E8\u05D5\u05D1",normalized:"closest"},{native:"\u05D4\u05D5\u05E8\u05D4",normalized:"parent"},{native:"\u05DC\u05D7\u05D9\u05E6\u05D4",normalized:"click"},{native:"\u05E7\u05DC\u05D9\u05E7",normalized:"click"},{native:"\u05E7\u05DC\u05D8",normalized:"input"},{native:"\u05E9\u05D9\u05E0\u05D5\u05D9",normalized:"change"},{native:"\u05E9\u05DC\u05D9\u05D7\u05D4",normalized:"submit"},{native:"\u05DE\u05D9\u05E7\u05D5\u05D3",normalized:"focus"},{native:"\u05D8\u05E9\u05D8\u05D5\u05E9",normalized:"blur"},{native:"\u05DC\u05D7\u05D9\u05E6\u05EA \u05DE\u05E7\u05E9",normalized:"keydown"},{native:"\u05E9\u05D7\u05E8\u05D5\u05E8 \u05DE\u05E7\u05E9",normalized:"keyup"},{native:"\u05DE\u05E2\u05D1\u05E8 \u05E2\u05DB\u05D1\u05E8",normalized:"mouseover"},{native:"\u05D9\u05E6\u05D9\u05D0\u05EA \u05E2\u05DB\u05D1\u05E8",normalized:"mouseout"},{native:"\u05D8\u05E2\u05D9\u05E0\u05D4",normalized:"load"},{native:"\u05D2\u05DC\u05D9\u05DC\u05D4",normalized:"scroll"},{native:"\u05D4\u05D9\u05D0",normalized:"it"},{native:"\u05D4\u05D5\u05D0",normalized:"it"},{native:"\u05D0\u05EA",normalized:"you"},{native:"\u05E9\u05E0\u05D9\u05D9\u05D4",normalized:"s"},{native:"\u05E9\u05E0\u05D9\u05D5\u05EA",normalized:"s"},{native:"\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D9\u05D4",normalized:"ms"},{native:"\u05D3\u05E7\u05D4",normalized:"m"},{native:"\u05D3\u05E7\u05D5\u05EA",normalized:"m"},{native:"\u05E9\u05E2\u05D4",normalized:"h"},{native:"\u05E9\u05E2\u05D5\u05EA",normalized:"h"}],xo=[{pattern:"\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D9\u05D4",suffix:"ms",length:8,caseInsensitive:!1},{pattern:"\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D5\u05EA",suffix:"ms",length:9,caseInsensitive:!1},{pattern:"\u05E9\u05E0\u05D9\u05D5\u05EA",suffix:"s",length:5,caseInsensitive:!1},{pattern:"\u05E9\u05E0\u05D9\u05D9\u05D4",suffix:"s",length:5,caseInsensitive:!1},{pattern:"\u05D3\u05E7\u05D5\u05EA",suffix:"m",length:4,caseInsensitive:!1},{pattern:"\u05D3\u05E7\u05D4",suffix:"m",length:3,caseInsensitive:!1},{pattern:"\u05E9\u05E2\u05D5\u05EA",suffix:"h",length:4,caseInsensitive:!1},{pattern:"\u05E9\u05E2\u05D4",suffix:"h",length:3,caseInsensitive:!1}],Do=class extends I{constructor(){super(),this.language="he",this.direction="rtl",this.initializeKeywordsFromProfile(Nt,bo)}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])){let i=this.extractHebrewNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}let a=this.tryPreposition(e,t);if(a){r.push(a),t=a.position.end;continue}if(te(e[t])){let i=this.tryEventMarkerPrefix(e,t);if(i){r.push(i.marker),r.push(i.event),t=i.event.position.end;continue}let u=this.tryPrefixConjunction(e,t);if(u){r.push(u.conjunction),t=u.conjunction.position.end;continue}let o=this.extractHebrewWord(e,t);if(o){r.push(o),t=o.position.end;continue}}if(x(e[t])){let i=this.extractAsciiWord(e,t);if(i){r.push(i),t=i.position.end;continue}}t++}return new P(r,"he")}classifyToken(e){return Xe.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}tryPreposition(e,r){let t=Array.from(Xe).sort((n,a)=>a.length-n.length);for(let n of t)if(e.slice(r,r+n.length)===n){let a=r+n.length;if(a>=e.length||b(e[a])||!te(e[a]))return{...c(n,"particle",m(r,a)),metadata:{prepositionValue:n}}}return null}tryPrefixConjunction(e,r){let t=r;for(;t<e.length&&te(e[t]);)t++;let n=e.slice(r,t);if(this.lookupKeyword(n)||Xe.has(n))return null;let a=e[r],i=Co.get(a);if(!i)return null;let u=r+1;if(u>=e.length||!te(e[u]))return null;let o=0,s=u;for(;s<e.length&&te(e[s]);)o++,s++;if(o<2)return null;let l=e.slice(u,t);return this.lookupKeyword(l)?{conjunction:c(a,"conjunction",m(r,u),i)}:null}tryEventMarkerPrefix(e,r){let t=e[r],n=Ao.get(t);if(!n)return null;let a=r+1;if(a>=e.length||!te(e[a]))return null;let i=a;for(;i<e.length&&te(e[i]);)i++;let u=e.slice(a,i);if(wo.has(u)){let o=c(t,"keyword",m(r,a),n),s=this.lookupKeyword(u),l=s?c(u,"keyword",m(a,i),s.normalized):c(u,"keyword",m(a,i));return{marker:o,event:l}}return null}extractHebrewWord(e,r){let t=r,n="";for(;t<e.length&&te(e[t]);)n+=e[t++];if(!n)return null;let a=this.lookupKeyword(n);if(a)return c(n,"keyword",m(r,t),a.normalized);if(Xe.has(n))return{...c(n,"particle",m(r,t)),metadata:{prepositionValue:n}};let i=this.tryMorphKeywordMatch(n,r,t);return i||c(n,"identifier",m(r,t))}extractAsciiWord(e,r){let t=r,n="";for(;t<e.length&&x(e[t]);)n+=e[t++];return n?c(n,"identifier",m(r,t)):null}extractHebrewNumber(e,r){return this.tryNumberWithTimeUnits(e,r,xo,{allowSign:!1,skipWhitespace:!0})}},To=new Do}}),Bo={};A(Bo,{hindiProfile:()=>Qe});var Qe,It=g({"src/generators/profiles/hindi.ts"(){"use strict";Qe={code:"hi",name:"Hindi",nativeName:"\u0939\u093F\u0928\u094D\u0926\u0940",direction:"ltr",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"end",suffixes:["\u0947\u0902","\u093E","\u0940","\u0947","\u094B"],subjectDrop:!0},references:{me:"\u092E\u0948\u0902",it:"\u092F\u0939",you:"\u0906\u092A",result:"\u092A\u0930\u093F\u0923\u093E\u092E",event:"\u0918\u091F\u0928\u093E",target:"\u0932\u0915\u094D\u0937\u094D\u092F",body:"\u092C\u0949\u0921\u0940"},possessive:{marker:"\u0915\u093E",markerPosition:"between",keywords:{\u092E\u0947\u0930\u093E:"me",\u092E\u0947\u0930\u0940:"me",\u092E\u0947\u0930\u0947:"me",\u0924\u0947\u0930\u093E:"you",\u0924\u0947\u0930\u0940:"you",\u0924\u0947\u0930\u0947:"you",\u0906\u092A\u0915\u093E:"you",\u0906\u092A\u0915\u0940:"you",\u0906\u092A\u0915\u0947:"you",\u0909\u0938\u0915\u093E:"it",\u0909\u0938\u0915\u0940:"it",\u0909\u0938\u0915\u0947:"it",\u0907\u0938\u0915\u093E:"it",\u0907\u0938\u0915\u0940:"it",\u0907\u0938\u0915\u0947:"it"}},roleMarkers:{patient:{primary:"\u0915\u094B",position:"after"},destination:{primary:"\u092E\u0947\u0902",alternatives:["\u0915\u094B","\u092A\u0930"],position:"after"},source:{primary:"\u0938\u0947",position:"after"},style:{primary:"\u0938\u0947",position:"after"},event:{primary:"\u092A\u0930",position:"after"}},keywords:{toggle:{primary:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"],normalized:"toggle"},add:{primary:"\u091C\u094B\u0921\u093C\u0947\u0902",alternatives:["\u091C\u094B\u0921\u093C"],normalized:"add"},remove:{primary:"\u0939\u091F\u093E\u090F\u0902",alternatives:["\u0939\u091F\u093E","\u092E\u093F\u091F\u093E\u090F\u0902"],normalized:"remove"},put:{primary:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"],normalized:"put"},append:{primary:"\u091C\u094B\u0921\u093C\u0947\u0902_\u0905\u0902\u0924",alternatives:[],normalized:"append"},prepend:{primary:"\u091C\u094B\u0921\u093C\u0947\u0902_\u0936\u0941\u0930\u0942",alternatives:[],normalized:"prepend"},take:{primary:"\u0932\u0947\u0902",alternatives:["\u0932\u0947"],normalized:"take"},make:{primary:"\u092C\u0928\u093E\u090F\u0902",alternatives:["\u092C\u0928\u093E"],normalized:"make"},clone:{primary:"\u0915\u0949\u092A\u0940",alternatives:["\u092A\u094D\u0930\u0924\u093F\u0932\u093F\u092A\u093F"],normalized:"clone"},swap:{primary:"\u092C\u0926\u0932\u0947\u0902_\u0938\u094D\u0925\u093E\u0928",alternatives:[],normalized:"swap"},morph:{primary:"\u0930\u0942\u092A\u093E\u0902\u0924\u0930",alternatives:[],normalized:"morph"},set:{primary:"\u0938\u0947\u091F",alternatives:["\u0928\u093F\u0930\u094D\u0927\u093E\u0930\u093F\u0924"],normalized:"set"},get:{primary:"\u092A\u094D\u0930\u093E\u092A\u094D\u0924",alternatives:["\u092A\u093E\u090F\u0902"],normalized:"get"},increment:{primary:"\u092C\u0922\u093C\u093E\u090F\u0902",alternatives:["\u092C\u0922\u093C\u093E"],normalized:"increment"},decrement:{primary:"\u0918\u091F\u093E\u090F\u0902",alternatives:["\u0918\u091F\u093E"],normalized:"decrement"},log:{primary:"\u0932\u0949\u0917",alternatives:["\u0926\u0930\u094D\u091C"],normalized:"log"},show:{primary:"\u0926\u093F\u0916\u093E\u090F\u0902",alternatives:["\u0926\u093F\u0916\u093E"],normalized:"show"},hide:{primary:"\u091B\u093F\u092A\u093E\u090F\u0902",alternatives:["\u091B\u093F\u092A\u093E"],normalized:"hide"},transition:{primary:"\u0938\u0902\u0915\u094D\u0930\u092E\u0923",alternatives:[],normalized:"transition"},on:{primary:"\u092A\u0930",alternatives:["\u092E\u0947\u0902","\u091C\u092C"],normalized:"on"},trigger:{primary:"\u091F\u094D\u0930\u093F\u0917\u0930",alternatives:[],normalized:"trigger"},send:{primary:"\u092D\u0947\u091C\u0947\u0902",alternatives:["\u092D\u0947\u091C"],normalized:"send"},focus:{primary:"\u092B\u094B\u0915\u0938",alternatives:["\u0915\u0947\u0902\u0926\u094D\u0930\u093F\u0924"],normalized:"focus"},blur:{primary:"\u0927\u0941\u0902\u0927\u0932\u093E",alternatives:["\u092B\u094B\u0915\u0938_\u0939\u091F\u093E\u090F\u0902"],normalized:"blur"},click:{primary:"\u0915\u094D\u0932\u093F\u0915",normalized:"click"},hover:{primary:"\u0939\u094B\u0935\u0930",alternatives:["\u090A\u092A\u0930_\u0930\u0916\u0947\u0902"],normalized:"hover"},submit:{primary:"\u0938\u092C\u092E\u093F\u091F",alternatives:["\u091C\u092E\u093E"],normalized:"submit"},input:{primary:"\u0907\u0928\u092A\u0941\u091F",alternatives:["\u0926\u0930\u094D\u091C"],normalized:"input"},change:{primary:"\u092C\u0926\u0932\u093E\u0935",alternatives:["\u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928"],normalized:"change"},go:{primary:"\u091C\u093E\u090F\u0902",alternatives:["\u091C\u093E"],normalized:"go"},wait:{primary:"\u092A\u094D\u0930\u0924\u0940\u0915\u094D\u0937\u093E",alternatives:["\u0930\u0941\u0915\u0947\u0902"],normalized:"wait"},fetch:{primary:"\u0932\u093E\u090F\u0902",alternatives:[],normalized:"fetch"},settle:{primary:"\u0938\u094D\u0925\u093F\u0930",alternatives:[],normalized:"settle"},if:{primary:"\u0905\u0917\u0930",alternatives:["\u092F\u0926\u093F"],normalized:"if"},when:{primary:"\u091C\u092C",normalized:"when"},where:{primary:"\u0915\u0939\u093E\u0901",normalized:"where"},else:{primary:"\u0935\u0930\u0928\u093E",alternatives:["\u0928\u0939\u0940\u0902 \u0924\u094B"],normalized:"else"},repeat:{primary:"\u0926\u094B\u0939\u0930\u093E\u090F\u0902",alternatives:["\u0926\u094B\u0939\u0930\u093E"],normalized:"repeat"},for:{primary:"\u0915\u0947 \u0932\u093F\u090F",alternatives:[],normalized:"for"},while:{primary:"\u091C\u092C \u0924\u0915",alternatives:[],normalized:"while"},continue:{primary:"\u091C\u093E\u0930\u0940",alternatives:[],normalized:"continue"},halt:{primary:"\u0930\u094B\u0915\u0947\u0902",alternatives:["\u0930\u094B\u0915"],normalized:"halt"},throw:{primary:"\u092B\u0947\u0902\u0915\u0947\u0902",alternatives:["\u092B\u0947\u0902\u0915"],normalized:"throw"},call:{primary:"\u0915\u0949\u0932",alternatives:["\u092C\u0941\u0932\u093E\u090F\u0902"],normalized:"call"},return:{primary:"\u0932\u094C\u091F\u093E\u090F\u0902",alternatives:["\u0932\u094C\u091F\u093E"],normalized:"return"},then:{primary:"\u092B\u093F\u0930",alternatives:["\u0924\u092C"],normalized:"then"},and:{primary:"\u0914\u0930",alternatives:[],normalized:"and"},end:{primary:"\u0938\u092E\u093E\u092A\u094D\u0924",alternatives:["\u0905\u0902\u0924"],normalized:"end"},js:{primary:"\u091C\u0947\u090F\u0938",alternatives:["js"],normalized:"js"},async:{primary:"\u0905\u0938\u093F\u0902\u0915",alternatives:[],normalized:"async"},tell:{primary:"\u092C\u0924\u093E\u090F\u0902",alternatives:["\u092C\u0924\u093E"],normalized:"tell"},default:{primary:"\u0921\u093F\u092B\u093C\u0949\u0932\u094D\u091F",alternatives:[],normalized:"default"},init:{primary:"\u092A\u094D\u0930\u093E\u0930\u0902\u092D",alternatives:[],normalized:"init"},behavior:{primary:"\u0935\u094D\u092F\u0935\u0939\u093E\u0930",alternatives:[],normalized:"behavior"},install:{primary:"\u0907\u0902\u0938\u094D\u091F\u0949\u0932",alternatives:[],normalized:"install"},measure:{primary:"\u092E\u093E\u092A\u0947\u0902",alternatives:[],normalized:"measure"},beep:{primary:"\u092C\u0940\u092A",alternatives:[],normalized:"beep"},break:{primary:"\u0930\u094B\u0915\u0947\u0902",alternatives:[],normalized:"break"},copy:{primary:"\u0915\u0949\u092A\u0940",alternatives:[],normalized:"copy"},exit:{primary:"\u092C\u093E\u0939\u0930",alternatives:[],normalized:"exit"},pick:{primary:"\u091A\u0941\u0928\u0947\u0902",alternatives:[],normalized:"pick"},render:{primary:"\u0930\u0947\u0902\u0921\u0930",alternatives:[],normalized:"render"},into:{primary:"\u092E\u0947\u0902",alternatives:["\u0915\u094B"],normalized:"into"},before:{primary:"\u0938\u0947 \u092A\u0939\u0932\u0947",alternatives:["\u092A\u0939\u0932\u0947"],normalized:"before"},after:{primary:"\u0915\u0947 \u092C\u093E\u0926",alternatives:["\u092C\u093E\u0926"],normalized:"after"},until:{primary:"\u0924\u0915",alternatives:[],normalized:"until"},event:{primary:"\u0918\u091F\u0928\u093E",alternatives:[],normalized:"event"},from:{primary:"\u0938\u0947",normalized:"from"}},tokenization:{particles:["\u0915\u094B","\u092E\u0947\u0902","\u092A\u0930","\u0938\u0947","\u0915\u093E","\u0915\u0940","\u0915\u0947","\u0924\u0915","\u0928\u0947"],boundaryStrategy:"space"},eventHandler:{keyword:{primary:"\u092A\u0930",alternatives:["\u092E\u0947\u0902","\u091C\u092C"],normalized:"on"},sourceMarker:{primary:"\u0938\u0947",position:"after"},eventMarker:{primary:"\u092A\u0930",alternatives:["\u092E\u0947\u0902"],position:"after"},temporalMarkers:["\u091C\u092C","\u091C\u092C \u092D\u0940"]}}}}),Fo={};A(Fo,{HindiTokenizer:()=>gn,hindiTokenizer:()=>En});var So,Ze,hn,Po,gn,En,jo=g({"src/tokenizers/hindi.ts"(){"use strict";W(),It(),So=Q([[2304,2431],[43232,43263]]),Ze=So,hn=new Set(["\u0915\u094B","\u092E\u0947\u0902","\u092A\u0930","\u0938\u0947","\u0915\u093E","\u0915\u0940","\u0915\u0947","\u0924\u0915","\u0928\u0947"]),Po=[{native:"\u0938\u091A",normalized:"true"},{native:"\u0938\u0924\u094D\u092F",normalized:"true"},{native:"\u091D\u0942\u0920",normalized:"false"},{native:"\u0905\u0938\u0924\u094D\u092F",normalized:"false"},{native:"\u0916\u093E\u0932\u0940",normalized:"null"},{native:"\u0905\u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924",normalized:"undefined"},{native:"\u092A\u0939\u0932\u093E",normalized:"first"},{native:"\u0905\u0902\u0924\u093F\u092E",normalized:"last"},{native:"\u0905\u0917\u0932\u093E",normalized:"next"},{native:"\u092A\u093F\u091B\u0932\u093E",normalized:"previous"},{native:"\u0928\u093F\u0915\u091F\u0924\u092E",normalized:"closest"},{native:"\u092E\u0942\u0932",normalized:"parent"},{native:"\u0915\u094D\u0932\u093F\u0915",normalized:"click"},{native:"\u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928",normalized:"change"},{native:"\u091C\u092E\u093E",normalized:"submit"},{native:"\u0907\u0928\u092A\u0941\u091F",normalized:"input"},{native:"\u0932\u094B\u0921",normalized:"load"},{native:"\u0938\u094D\u0915\u094D\u0930\u0949\u0932",normalized:"scroll"},{native:"\u0915\u094B",normalized:"to"},{native:"\u0915\u0947 \u0938\u093E\u0925",normalized:"with"}],gn=class extends I{constructor(){super(),this.language="hi",this.direction="ltr",this.initializeKeywordsFromProfile(Qe,Po)}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let a=this.tryEventModifier(e,t);if(a){r.push(a),t=a.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let i=this.trySelector(e,t);if(i){r.push(i),t=i.position.end;continue}}if(R(e[t])){let a=this.tryString(e,t);if(a){r.push(a),t=a.position.end;continue}}if(N(e,t)){let a=this.tryUrl(e,t);if(a){r.push(a),t=a.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let a=this.extractNumber(e,t);if(a){r.push(a),t=a.position.end;continue}}if(e[t]===":"){let a=t;t++;let i="";for(;t<e.length&&(x(e[t])||Ze(e[t]));)i+=e[t],t++;if(i){r.push(c(":"+i,"identifier",m(a,t),":"+i));continue}t=a}if(Ze(e[t])){let a=t,i="";for(;t<e.length&&(Ze(e[t])||e[t]===" ");){if(e[t]===" "){if(t+1<e.length&&Ze(e[t+1])){let o=e.slice(t),s=[" \u0915\u0947 \u0932\u093F\u090F"," \u0915\u0947 \u0938\u093E\u0925"," \u0915\u0947 \u092C\u093E\u0926"," \u0938\u0947 \u092A\u0939\u0932\u0947"," \u0928\u0939\u0940\u0902 \u0924\u094B"," \u091C\u092C \u0924\u0915"," \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902"].find(l=>o.startsWith(l));if(s){i+=s,t+=s.length;continue}}break}i+=e[t],t++}let u=this.lookupKeyword(i);u?r.push(c(i,"keyword",m(a,t),u.normalized)):hn.has(i)?r.push(c(i,"particle",m(a,t))):r.push(c(i,"identifier",m(a,t)));continue}if(x(e[t])){let a=t,i="";for(;t<e.length&&x(e[t]);)i+=e[t],t++;let u=this.lookupKeyword(i),o=u?"keyword":"identifier";r.push(c(i,o,m(a,t),u?.normalized||i.toLowerCase()));continue}let n=t;r.push(c(e[t],"operator",m(n,t+1))),t++}return new P(r,this.language)}classifyToken(e){return this.isKeyword(e)?"keyword":hn.has(e)?"particle":e.startsWith(".")||e.startsWith("#")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith(":")?"identifier":e.startsWith('"')||e.startsWith("'")||/^-?\d/.test(e)?"literal":"identifier"}extractNumber(e,r){let t=r,n="";for(e[t]==="-"&&(n+="-",t++);t<e.length&&k(e[t]);)n+=e[t],t++;if(t<e.length&&e[t]===".")for(n+=".",t++;t<e.length&&k(e[t]);)n+=e[t],t++;return n==="-"?null:c(n,"literal",m(r,t))}},En=new gn}}),Lo={};A(Lo,{indonesianProfile:()=>be});var be,Ye=g({"src/generators/profiles/indonesian.ts"(){"use strict";be={code:"id",name:"Indonesian",nativeName:"Bahasa Indonesia",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"saya",it:"itu",you:"anda",result:"hasil",event:"peristiwa",target:"target",body:"tubuh"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"saya",it:"nya",you:"anda"},keywords:{saya:"me",aku:"me",ku:"me",anda:"you",kamu:"you",mu:"you",nya:"it",dia:"it"}},roleMarkers:{destination:{primary:"pada",alternatives:["ke","di"],position:"before"},source:{primary:"dari",position:"before"},patient:{primary:"",position:"before"},style:{primary:"dengan",position:"before"}},keywords:{toggle:{primary:"alihkan",alternatives:["ganti","tukar"],normalized:"toggle"},add:{primary:"tambah",alternatives:["tambahkan"],normalized:"add"},remove:{primary:"hapus",alternatives:["buang","hilangkan"],normalized:"remove"},put:{primary:"taruh",alternatives:["letakkan","masukkan"],normalized:"put"},append:{primary:"sisipkan",normalized:"append"},prepend:{primary:"awali",normalized:"prepend"},take:{primary:"ambil",normalized:"take"},make:{primary:"buat",alternatives:["bikin","ciptakan"],normalized:"make"},clone:{primary:"klon",alternatives:["salin","tiru"],normalized:"clone"},swap:{primary:"tukar",alternatives:["ganti"],normalized:"swap"},morph:{primary:"ubah",alternatives:["transformasi"],normalized:"morph"},set:{primary:"atur",alternatives:["tetapkan"],normalized:"set"},get:{primary:"dapatkan",alternatives:["peroleh"],normalized:"get"},increment:{primary:"tingkatkan",alternatives:["naikkan"],normalized:"increment"},decrement:{primary:"turunkan",alternatives:["kurangi"],normalized:"decrement"},log:{primary:"catat",alternatives:["rekam","cetak"],normalized:"log"},show:{primary:"tampilkan",alternatives:["perlihatkan"],normalized:"show"},hide:{primary:"sembunyikan",alternatives:["tutup"],normalized:"hide"},transition:{primary:"transisi",alternatives:["animasikan"],normalized:"transition"},on:{primary:"pada",alternatives:["saat","ketika"],normalized:"on"},trigger:{primary:"picu",alternatives:["jalankan"],normalized:"trigger"},send:{primary:"kirim",alternatives:["kirimkan"],normalized:"send"},focus:{primary:"fokus",alternatives:["fokuskan"],normalized:"focus"},blur:{primary:"blur",normalized:"blur"},go:{primary:"pergi",alternatives:["pindah","navigasi"],normalized:"go"},wait:{primary:"tunggu",normalized:"wait"},fetch:{primary:"ambil",alternatives:["muat"],normalized:"fetch"},settle:{primary:"stabilkan",normalized:"settle"},if:{primary:"jika",alternatives:["kalau","bila"],normalized:"if"},when:{primary:"ketika",normalized:"when"},where:{primary:"di_mana",normalized:"where"},else:{primary:"selainnya",normalized:"else"},repeat:{primary:"ulangi",normalized:"repeat"},for:{primary:"untuk",normalized:"for"},while:{primary:"selama",normalized:"while"},continue:{primary:"lanjutkan",alternatives:["terus"],normalized:"continue"},halt:{primary:"hentikan",alternatives:["berhenti"],normalized:"halt"},throw:{primary:"lempar",normalized:"throw"},call:{primary:"panggil",normalized:"call"},return:{primary:"kembalikan",alternatives:["kembali"],normalized:"return"},then:{primary:"lalu",alternatives:["kemudian","setelah itu"],normalized:"then"},and:{primary:"dan",alternatives:["juga","serta"],normalized:"and"},end:{primary:"selesai",alternatives:["akhir","tamat"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"asinkron",normalized:"async"},tell:{primary:"katakan",alternatives:["beritahu"],normalized:"tell"},default:{primary:"bawaan",normalized:"default"},init:{primary:"inisialisasi",alternatives:["mulai"],normalized:"init"},behavior:{primary:"perilaku",normalized:"behavior"},install:{primary:"pasang",alternatives:["instal"],normalized:"install"},measure:{primary:"ukur",normalized:"measure"},beep:{primary:"bunyi",normalized:"beep"},break:{primary:"hentikan",normalized:"break"},copy:{primary:"salin",normalized:"copy"},exit:{primary:"keluar",normalized:"exit"},pick:{primary:"pilih",normalized:"pick"},render:{primary:"tampilkan",normalized:"render"},into:{primary:"ke dalam",normalized:"into"},before:{primary:"sebelum",normalized:"before"},after:{primary:"sesudah",alternatives:["setelah"],normalized:"after"},click:{primary:"klik",alternatives:["tekan"],normalized:"click"},hover:{primary:"hover",alternatives:["arahkan"],normalized:"hover"},submit:{primary:"kirim",alternatives:["submit"],normalized:"submit"},input:{primary:"masuk",alternatives:["input"],normalized:"input"},change:{primary:"ubah",alternatives:["berubah"],normalized:"change"},until:{primary:"sampai",normalized:"until"},event:{primary:"peristiwa",alternatives:["event"],normalized:"event"},from:{primary:"dari",normalized:"from"}},eventHandler:{keyword:{primary:"pada",alternatives:["ketika","saat"],normalized:"on"},sourceMarker:{primary:"dari",position:"before"},conditionalKeyword:{primary:"ketika",alternatives:["saat","waktu"]},eventMarker:{primary:"saat",alternatives:["ketika"],position:"before"},temporalMarkers:["ketika","saat"]}}}}),_o={};A(_o,{IndonesianTokenizer:()=>kn,indonesianTokenizer:()=>Cn});var Ro,No,zn,Io,kn,Cn,Wo=g({"src/tokenizers/indonesian.ts"(){"use strict";W(),Ye(),{isLetter:Ro,isIdentifierChar:No}=K(/[a-zA-Z]/),zn=new Set(["di","ke","dari","pada","dengan","tanpa","untuk","oleh","antara","sebelum","sesudah","setelah","selama","sampai","hingga","sejak","menuju","tentang","terhadap","melalui","dalam","luar"]),Io=[{native:"benar",normalized:"true"},{native:"salah",normalized:"false"},{native:"null",normalized:"null"},{native:"kosong",normalized:"null"},{native:"tidak terdefinisi",normalized:"undefined"},{native:"pertama",normalized:"first"},{native:"terakhir",normalized:"last"},{native:"selanjutnya",normalized:"next"},{native:"berikutnya",normalized:"next"},{native:"sebelumnya",normalized:"previous"},{native:"terdekat",normalized:"closest"},{native:"induk",normalized:"parent"},{native:"klik",normalized:"click"},{native:"click",normalized:"click"},{native:"masukan",normalized:"input"},{native:"input",normalized:"input"},{native:"perubahan",normalized:"change"},{native:"tombol turun",normalized:"keydown"},{native:"tombol naik",normalized:"keyup"},{native:"mouse masuk",normalized:"mouseover"},{native:"mouse keluar",normalized:"mouseout"},{native:"gulir",normalized:"scroll"},{native:"aku",normalized:"me"},{native:"ini",normalized:"me"},{native:"milikku",normalized:"my"},{native:"dia",normalized:"it"},{native:"kejadian",normalized:"event"},{native:"sasaran",normalized:"target"},{native:"detik",normalized:"s"},{native:"milidetik",normalized:"ms"},{native:"menit",normalized:"m"},{native:"jam",normalized:"h"},{native:"jika tidak",normalized:"else"},{native:"hilangkan fokus",normalized:"blur"},{native:"maka",normalized:"then"}],kn=class extends I{constructor(){super(),this.language="id",this.direction="ltr",this.initializeKeywordsFromProfile(be,Io)}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let i=this.extractNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}if(Ro(e[t])){let i=this.extractWord(e,t);if(i){r.push(i),t=i.position.end;continue}}let a=this.tryOperator(e,t);if(a){r.push(a),t=a.position.end;continue}t++}return new P(r,"id")}classifyToken(e){let r=e.toLowerCase();return zn.has(r)?"particle":this.isKeyword(r)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}extractWord(e,r){let t=r,n="";for(;t<e.length&&No(e[t]);)n+=e[t++];if(!n)return null;let a=n.toLowerCase(),i=this.lookupKeyword(a);return i?c(n,"keyword",m(r,t),i.normalized):zn.has(a)?c(n,"particle",m(r,t)):c(n,"identifier",m(r,t))}extractNumber(e,r){let t=r,n="";for((e[t]==="-"||e[t]==="+")&&(n+=e[t++]);t<e.length&&k(e[t]);)n+=e[t++];if(t<e.length&&e[t]===".")for(n+=e[t++];t<e.length&&k(e[t]);)n+=e[t++];let a=t;for(;a<e.length&&b(e[a]);)a++;let i=e.slice(a).toLowerCase();return i.startsWith("milidetik")?(n+="ms",t=a+9):i.startsWith("detik")?(n+="s",t=a+5):i.startsWith("menit")?(n+="m",t=a+5):i.startsWith("jam")&&(n+="h",t=a+3),!n||n==="-"||n==="+"?null:c(n,"literal",m(r,t))}},Cn=new kn}});function $p(e){return/[àèéìíîòóùúÀÈÉÌÍÎÒÓÙÚ]/.test(e)}function Gp(e){let r=e.toLowerCase();if(r.endsWith("are")||r.endsWith("ere")||r.endsWith("ire")||r.endsWith("ando")||r.endsWith("endo")||r.endsWith("ato")||r.endsWith("uto")||r.endsWith("ito")||r.endsWith("arsi")||r.endsWith("ersi")||r.endsWith("irsi"))return!0;for(let t of e)if($p(t))return!0;return!1}var An,Mo,Oo,qo,Vo,wn,Xp,Qp=g({"src/tokenizers/morphology/italian-normalizer.ts"(){"use strict";H(),An=["si","mi","ti","ci","vi"],Mo=[{ending:"ando",stem:"are",confidence:.88,type:"gerund"},{ending:"ato",stem:"are",confidence:.88,type:"participle"},{ending:"ata",stem:"are",confidence:.88,type:"participle"},{ending:"ati",stem:"are",confidence:.88,type:"participle"},{ending:"ate",stem:"are",confidence:.88,type:"participle"},{ending:"o",stem:"are",confidence:.75,type:"present"},{ending:"i",stem:"are",confidence:.72,type:"present"},{ending:"a",stem:"are",confidence:.75,type:"present"},{ending:"iamo",stem:"are",confidence:.85,type:"present"},{ending:"ate",stem:"are",confidence:.85,type:"present"},{ending:"ano",stem:"are",confidence:.85,type:"present"},{ending:"avo",stem:"are",confidence:.88,type:"past"},{ending:"avi",stem:"are",confidence:.88,type:"past"},{ending:"ava",stem:"are",confidence:.88,type:"past"},{ending:"avamo",stem:"are",confidence:.88,type:"past"},{ending:"avate",stem:"are",confidence:.88,type:"past"},{ending:"avano",stem:"are",confidence:.88,type:"past"},{ending:"ai",stem:"are",confidence:.85,type:"past"},{ending:"asti",stem:"are",confidence:.88,type:"past"},{ending:"\xF2",stem:"are",confidence:.85,type:"past"},{ending:"ammo",stem:"are",confidence:.88,type:"past"},{ending:"aste",stem:"are",confidence:.88,type:"past"},{ending:"arono",stem:"are",confidence:.88,type:"past"},{ending:"i",stem:"are",confidence:.72,type:"subjunctive"},{ending:"ino",stem:"are",confidence:.82,type:"subjunctive"},{ending:"a",stem:"are",confidence:.75,type:"imperative"},{ending:"are",stem:"are",confidence:.92,type:"dictionary"}],Oo=[{ending:"endo",stem:"ere",confidence:.88,type:"gerund"},{ending:"uto",stem:"ere",confidence:.85,type:"participle"},{ending:"uta",stem:"ere",confidence:.85,type:"participle"},{ending:"uti",stem:"ere",confidence:.85,type:"participle"},{ending:"ute",stem:"ere",confidence:.85,type:"participle"},{ending:"o",stem:"ere",confidence:.72,type:"present"},{ending:"i",stem:"ere",confidence:.72,type:"present"},{ending:"e",stem:"ere",confidence:.72,type:"present"},{ending:"iamo",stem:"ere",confidence:.85,type:"present"},{ending:"ete",stem:"ere",confidence:.85,type:"present"},{ending:"ono",stem:"ere",confidence:.82,type:"present"},{ending:"evo",stem:"ere",confidence:.88,type:"past"},{ending:"evi",stem:"ere",confidence:.88,type:"past"},{ending:"eva",stem:"ere",confidence:.88,type:"past"},{ending:"evamo",stem:"ere",confidence:.88,type:"past"},{ending:"evate",stem:"ere",confidence:.88,type:"past"},{ending:"evano",stem:"ere",confidence:.88,type:"past"},{ending:"ei",stem:"ere",confidence:.85,type:"past"},{ending:"etti",stem:"ere",confidence:.85,type:"past"},{ending:"esti",stem:"ere",confidence:.88,type:"past"},{ending:"\xE9",stem:"ere",confidence:.85,type:"past"},{ending:"ette",stem:"ere",confidence:.85,type:"past"},{ending:"emmo",stem:"ere",confidence:.88,type:"past"},{ending:"este",stem:"ere",confidence:.88,type:"past"},{ending:"erono",stem:"ere",confidence:.88,type:"past"},{ending:"ettero",stem:"ere",confidence:.88,type:"past"},{ending:"ere",stem:"ere",confidence:.92,type:"dictionary"}],qo=[{ending:"endo",stem:"ire",confidence:.85,type:"gerund"},{ending:"ito",stem:"ire",confidence:.85,type:"participle"},{ending:"ita",stem:"ire",confidence:.85,type:"participle"},{ending:"iti",stem:"ire",confidence:.85,type:"participle"},{ending:"ite",stem:"ire",confidence:.85,type:"participle"},{ending:"o",stem:"ire",confidence:.7,type:"present"},{ending:"i",stem:"ire",confidence:.7,type:"present"},{ending:"e",stem:"ire",confidence:.7,type:"present"},{ending:"iamo",stem:"ire",confidence:.85,type:"present"},{ending:"ite",stem:"ire",confidence:.85,type:"present"},{ending:"ono",stem:"ire",confidence:.78,type:"present"},{ending:"isco",stem:"ire",confidence:.85,type:"present"},{ending:"isci",stem:"ire",confidence:.85,type:"present"},{ending:"isce",stem:"ire",confidence:.85,type:"present"},{ending:"iscono",stem:"ire",confidence:.88,type:"present"},{ending:"ivo",stem:"ire",confidence:.88,type:"past"},{ending:"ivi",stem:"ire",confidence:.88,type:"past"},{ending:"iva",stem:"ire",confidence:.88,type:"past"},{ending:"ivamo",stem:"ire",confidence:.88,type:"past"},{ending:"ivate",stem:"ire",confidence:.88,type:"past"},{ending:"ivano",stem:"ire",confidence:.88,type:"past"},{ending:"ii",stem:"ire",confidence:.85,type:"past"},{ending:"isti",stem:"ire",confidence:.88,type:"past"},{ending:"\xEC",stem:"ire",confidence:.85,type:"past"},{ending:"immo",stem:"ire",confidence:.88,type:"past"},{ending:"iste",stem:"ire",confidence:.88,type:"past"},{ending:"irono",stem:"ire",confidence:.88,type:"past"},{ending:"ire",stem:"ire",confidence:.92,type:"dictionary"}],Vo=[...Mo,...Oo,...qo].sort((e,r)=>r.ending.length-e.ending.length),wn=class{constructor(){this.language="it"}isNormalizable(e){return e.length<3?!1:Gp(e)}normalize(e){let r=e.toLowerCase();if((r.endsWith("are")||r.endsWith("ere")||r.endsWith("ire"))&&!An.some(a=>r.endsWith(a+"are")||r.endsWith(a+"ere")||r.endsWith(a+"ire")))return j(e);let t=this.tryReflexiveNormalization(r);if(t)return t;let n=this.tryConjugationNormalization(r);return n||j(e)}tryReflexiveNormalization(e){for(let r of An)if(e.endsWith(r)){let t=e.slice(0,-r.length);if(t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir")){let a=t+"e";return z(a,.88,{removedSuffixes:[r],conjugationType:"reflexive"})}if(t.endsWith("are")||t.endsWith("ere")||t.endsWith("ire"))return z(t,.88,{removedSuffixes:[r],conjugationType:"reflexive"});let n=this.tryConjugationNormalization(t);if(n&&n.stem!==t)return z(n.stem,n.confidence*.95,{removedSuffixes:[r,...n.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationNormalization(e){for(let r of Vo)if(e.endsWith(r.ending)){let t=e.slice(0,-r.ending.length);if(t.length<2)continue;let n=t+r.stem;return z(n,r.confidence,{removedSuffixes:[r.ending],conjugationType:r.type})}return null}},Xp=new wn}}),Ko={};A(Ko,{italianProfile:()=>Je});var Je,Wt=g({"src/generators/profiles/italian.ts"(){"use strict";Je={code:"it",name:"Italian",nativeName:"Italiano",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0},references:{me:"io",it:"esso",you:"tu",result:"risultato",event:"evento",target:"obiettivo",body:"corpo"},possessive:{marker:"di",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mio",it:"suo",you:"tuo"},keywords:{mio:"me",mia:"me",miei:"me",mie:"me",tuo:"you",tua:"you",tuoi:"you",tue:"you",suo:"it",sua:"it",suoi:"it",sue:"it"}},roleMarkers:{destination:{primary:"in",alternatives:["su","a"],position:"before"},source:{primary:"da",alternatives:["di"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"con",position:"before"}},keywords:{toggle:{primary:"commutare",alternatives:["alternare","cambiare"],normalized:"toggle"},add:{primary:"aggiungere",alternatives:["aggiungi"],normalized:"add"},remove:{primary:"rimuovere",alternatives:["eliminare","togliere"],normalized:"remove"},put:{primary:"mettere",alternatives:["inserire"],normalized:"put"},append:{primary:"aggiungere",normalized:"append"},prepend:{primary:"anteporre",normalized:"prepend"},take:{primary:"prendere",normalized:"take"},make:{primary:"fare",alternatives:["creare"],normalized:"make"},clone:{primary:"clonare",alternatives:["copiare"],normalized:"clone"},swap:{primary:"scambiare",alternatives:["cambiare"],normalized:"swap"},morph:{primary:"trasformare",alternatives:["convertire"],normalized:"morph"},set:{primary:"impostare",alternatives:["definire"],normalized:"set"},get:{primary:"ottenere",alternatives:["prendere"],normalized:"get"},increment:{primary:"incrementare",alternatives:["aumentare"],normalized:"increment"},decrement:{primary:"decrementare",alternatives:["diminuire"],normalized:"decrement"},log:{primary:"registrare",normalized:"log"},show:{primary:"mostrare",alternatives:["visualizzare"],normalized:"show"},hide:{primary:"nascondere",normalized:"hide"},transition:{primary:"transizione",alternatives:["animare"],normalized:"transition"},on:{primary:"su",alternatives:["quando","al"],normalized:"on"},trigger:{primary:"scatenare",alternatives:["attivare"],normalized:"trigger"},send:{primary:"inviare",normalized:"send"},focus:{primary:"focalizzare",normalized:"focus"},blur:{primary:"sfuocare",normalized:"blur"},go:{primary:"andare",alternatives:["navigare","vai"],normalized:"go"},wait:{primary:"aspettare",alternatives:["attendere"],normalized:"wait"},fetch:{primary:"recuperare",normalized:"fetch"},settle:{primary:"stabilizzare",normalized:"settle"},if:{primary:"se",normalized:"if"},when:{primary:"quando",normalized:"when"},where:{primary:"dove",normalized:"where"},else:{primary:"altrimenti",normalized:"else"},repeat:{primary:"ripetere",normalized:"repeat"},for:{primary:"per",normalized:"for"},while:{primary:"mentre",normalized:"while"},continue:{primary:"continuare",normalized:"continue"},halt:{primary:"fermare",normalized:"halt"},throw:{primary:"lanciare",normalized:"throw"},call:{primary:"chiamare",normalized:"call"},return:{primary:"ritornare",normalized:"return"},then:{primary:"allora",alternatives:["poi","quindi"],normalized:"then"},and:{primary:"e",alternatives:["anche"],normalized:"and"},end:{primary:"fine",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asincrono",normalized:"async"},tell:{primary:"dire",normalized:"tell"},default:{primary:"predefinito",normalized:"default"},init:{primary:"inizializzare",alternatives:["inizia"],normalized:"init"},behavior:{primary:"comportamento",normalized:"behavior"},install:{primary:"installare",normalized:"install"},measure:{primary:"misurare",normalized:"measure"},beep:{primary:"beep",normalized:"beep"},break:{primary:"interrompere",normalized:"break"},copy:{primary:"copiare",normalized:"copy"},exit:{primary:"uscire",normalized:"exit"},pick:{primary:"scegliere",normalized:"pick"},render:{primary:"renderizzare",normalized:"render"},into:{primary:"in",alternatives:["dentro"],normalized:"into"},before:{primary:"prima",normalized:"before"},after:{primary:"dopo",normalized:"after"},click:{primary:"clic",alternatives:["clicca"],normalized:"click"},hover:{primary:"passaggio",alternatives:["sorvolo"],normalized:"hover"},submit:{primary:"invio",alternatives:["inviare"],normalized:"submit"},input:{primary:"inserimento",alternatives:["input"],normalized:"input"},change:{primary:"cambio",alternatives:["cambiamento"],normalized:"change"},until:{primary:"fino",normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"da",alternatives:["di"],normalized:"from"}},eventHandler:{keyword:{primary:"su",alternatives:["al","quando"],normalized:"on"},sourceMarker:{primary:"da",alternatives:["di"],position:"before"},conditionalKeyword:{primary:"quando",alternatives:["se"]},eventMarker:{primary:"al",alternatives:["allo","alla"],position:"before"},temporalMarkers:["quando","al"]}}}}),Uo={};A(Uo,{ItalianTokenizer:()=>Dn,italianTokenizer:()=>Tn});var bn,Ho,$o,xn,Go,Dn,Tn,Xo=g({"src/tokenizers/italian.ts"(){"use strict";W(),Qp(),Wt(),{isLetter:bn,isIdentifierChar:Ho}=K(/[a-zA-ZàèéìíîòóùúÀÈÉÌÍÎÒÓÙÚ]/),$o=[{pattern:"millisecondi",suffix:"ms",length:12,caseInsensitive:!0},{pattern:"millisecondo",suffix:"ms",length:12,caseInsensitive:!0},{pattern:"secondi",suffix:"s",length:7,caseInsensitive:!0},{pattern:"secondo",suffix:"s",length:7,caseInsensitive:!0},{pattern:"minuti",suffix:"m",length:6,caseInsensitive:!0},{pattern:"minuto",suffix:"m",length:6,caseInsensitive:!0},{pattern:"ore",suffix:"h",length:3,caseInsensitive:!0},{pattern:"ora",suffix:"h",length:3,caseInsensitive:!0}],xn=new Set(["in","a","di","da","con","su","per","tra","fra","dopo","prima","dentro","fuori","sopra","sotto","al","allo","alla","ai","agli","alle","del","dello","della","dei","degli","delle","dal","dallo","dalla","dai","dagli","dalle","nel","nello","nella","nei","negli","nelle","sul","sullo","sulla","sui","sugli","sulle"]),Go=[{native:"vero",normalized:"true"},{native:"falso",normalized:"false"},{native:"nullo",normalized:"null"},{native:"indefinito",normalized:"undefined"},{native:"primo",normalized:"first"},{native:"prima",normalized:"first"},{native:"ultimo",normalized:"last"},{native:"ultima",normalized:"last"},{native:"prossimo",normalized:"next"},{native:"successivo",normalized:"next"},{native:"precedente",normalized:"previous"},{native:"vicino",normalized:"closest"},{native:"padre",normalized:"parent"},{native:"clic",normalized:"click"},{native:"click",normalized:"click"},{native:"fare clic",normalized:"click"},{native:"input",normalized:"input"},{native:"cambio",normalized:"change"},{native:"invio",normalized:"submit"},{native:"tasto gi\xF9",normalized:"keydown"},{native:"tasto su",normalized:"keyup"},{native:"mouse sopra",normalized:"mouseover"},{native:"mouse fuori",normalized:"mouseout"},{native:"fuoco",normalized:"focus"},{native:"sfuocatura",normalized:"blur"},{native:"caricamento",normalized:"load"},{native:"scorrimento",normalized:"scroll"},{native:"io",normalized:"me"},{native:"me",normalized:"me"},{native:"destinazione",normalized:"target"},{native:"secondo",normalized:"s"},{native:"secondi",normalized:"s"},{native:"millisecondo",normalized:"ms"},{native:"millisecondi",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minuti",normalized:"m"},{native:"ora",normalized:"h"},{native:"ore",normalized:"h"},{native:"fino a",normalized:"until"},{native:"prima di",normalized:"before"},{native:"dopo di",normalized:"after"},{native:"dentro di",normalized:"into"},{native:"fuori di",normalized:"out"},{native:"aggiungere",normalized:"add"},{native:"aggiungi",normalized:"add"},{native:"rimuovi",normalized:"remove"},{native:"elimina",normalized:"remove"},{native:"togli",normalized:"remove"},{native:"metti",normalized:"put"},{native:"inserisci",normalized:"put"},{native:"prendi",normalized:"take"},{native:"fai",normalized:"make"},{native:"crea",normalized:"make"},{native:"clona",normalized:"clone"},{native:"copia",normalized:"clone"},{native:"imposta",normalized:"set"},{native:"ottieni",normalized:"get"},{native:"incrementa",normalized:"increment"},{native:"aumenta",normalized:"increment"},{native:"decrementa",normalized:"decrement"},{native:"diminuisci",normalized:"decrement"},{native:"registra",normalized:"log"},{native:"mostra",normalized:"show"},{native:"visualizza",normalized:"show"},{native:"nascondi",normalized:"hide"},{native:"anima",normalized:"transition"},{native:"scatena",normalized:"trigger"},{native:"attiva",normalized:"trigger"},{native:"invia",normalized:"send"},{native:"focalizza",normalized:"focus"},{native:"sfuoca",normalized:"blur"},{native:"vai",normalized:"go"},{native:"naviga",normalized:"go"},{native:"aspetta",normalized:"wait"},{native:"attendi",normalized:"wait"},{native:"recupera",normalized:"fetch"},{native:"stabilizza",normalized:"settle"},{native:"ripeti",normalized:"repeat"},{native:"continua",normalized:"continue"},{native:"ferma",normalized:"halt"},{native:"lancia",normalized:"throw"},{native:"chiama",normalized:"call"},{native:"ritorna",normalized:"return"},{native:"inizializza",normalized:"init"},{native:"installa",normalized:"install"},{native:"misura",normalized:"measure"},{native:"e",normalized:"and"},{native:"o",normalized:"or"},{native:"non",normalized:"not"},{native:"\xE8",normalized:"is"},{native:"esiste",normalized:"exists"},{native:"vuoto",normalized:"empty"},{native:"toggle",normalized:"toggle"},{native:"di",normalized:"tell"}],Dn=class extends I{constructor(){super(),this.language="it",this.direction="ltr",this.initializeKeywordsFromProfile(Je,Go),this.normalizer=new wn}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let u=this.tryEventModifier(e,t);if(u){r.push(u),t=u.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let o=this.trySelector(e,t);if(o){r.push(o),t=o.position.end;continue}}if(R(e[t])){let u=this.tryString(e,t);if(u){r.push(u),t=u.position.end;continue}}if(N(e,t)){let u=this.tryUrl(e,t);if(u){r.push(u),t=u.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let u=this.extractItalianNumber(e,t);if(u){r.push(u),t=u.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}let a=this.tryMultiWordPhrase(e,t);if(a){r.push(a),t=a.position.end;continue}if(bn(e[t])){let u=this.extractItalianWord(e,t);if(u){r.push(u),t=u.position.end;continue}}let i=this.tryOperator(e,t);if(i){r.push(i),t=i.position.end;continue}t++}return new P(r,"it")}classifyToken(e){let r=e.toLowerCase();return xn.has(r)?"particle":this.isKeyword(r)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}tryMultiWordPhrase(e,r){for(let t of this.profileKeywords){if(!t.native.includes(" "))continue;let n=t.native;if(e.slice(r,r+n.length).toLowerCase()===n.toLowerCase()){let i=r+n.length;if(i>=e.length||b(e[i])||!bn(e[i]))return c(e.slice(r,r+n.length),"keyword",m(r,i),t.normalized)}}return null}extractItalianWord(e,r){let t=r,n="";for(;t<e.length&&Ho(e[t]);)n+=e[t++];if(!n)return null;let a=n.toLowerCase();if(xn.has(a))return c(n,"particle",m(r,t));let i=this.lookupKeyword(a);if(i)return c(n,"keyword",m(r,t),i.normalized);let u=this.tryMorphKeywordMatch(a,r,t);return u||c(n,"identifier",m(r,t))}extractItalianNumber(e,r){return this.tryNumberWithTimeUnits(e,r,$o,{allowSign:!0,skipWhitespace:!0})}},Tn=new Dn}});function Qo(e){let r=e.charCodeAt(0);return r>=12352&&r<=12447}function Zp(e){let r=e.charCodeAt(0);return r>=12448&&r<=12543}function Yp(e){let r=e.charCodeAt(0);return r>=19968&&r<=40959||r>=13312&&r<=19903}function Jp(e){for(let r of e)if(Qo(r)||Zp(r)||Yp(r))return!0;return!1}var Zo,Yo,Bn,em,tm=g({"src/tokenizers/morphology/japanese-normalizer.ts"(){"use strict";H(),Zo=[{pattern:"\u3057\u305F\u3089",confidence:.88,conjugationType:"conditional-tara",minStemLength:2},{pattern:"\u3059\u308B\u3068",confidence:.88,conjugationType:"conditional-to",minStemLength:2},{pattern:"\u3059\u308C\u3070",confidence:.85,conjugationType:"conditional-ba",minStemLength:2},{pattern:"\u305F\u3089",confidence:.85,conjugationType:"conditional-tara",minStemLength:2},{pattern:"\u308C\u3070",confidence:.82,conjugationType:"conditional-ba",minStemLength:2},{pattern:"\u3066\u3044\u307E\u3057\u305F",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\u3066\u3044\u307E\u3059",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304F\u3060\u3055\u3044",confidence:.85,conjugationType:"request",minStemLength:2},{pattern:"\u3067\u304F\u3060\u3055\u3044",confidence:.85,conjugationType:"request",minStemLength:2},{pattern:"\u3066\u3044\u308B",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304A\u304F",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u307F\u308B",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u3042\u308B",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304F\u308C",confidence:.8,conjugationType:"casual-request",minStemLength:2},{pattern:"\u3067\u304F\u308C",confidence:.8,conjugationType:"casual-request",minStemLength:2},{pattern:"\u3061\u3083\u3063\u305F",confidence:.82,conjugationType:"contracted-past",minStemLength:2},{pattern:"\u3058\u3083\u3063\u305F",confidence:.82,conjugationType:"contracted-past",minStemLength:2},{pattern:"\u3061\u3083\u3046",confidence:.82,conjugationType:"contracted",minStemLength:2},{pattern:"\u3058\u3083\u3046",confidence:.82,conjugationType:"contracted",minStemLength:2},{pattern:"\u307E\u3057\u305F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"\u307E\u305B\u3093",confidence:.85,conjugationType:"negative",minStemLength:2},{pattern:"\u307E\u3059",confidence:.85,conjugationType:"polite",minStemLength:2},{pattern:"\u3066",confidence:.85,conjugationType:"te-form",minStemLength:2},{pattern:"\u305F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"\u306A\u3044",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"\u306A\u304B\u3063\u305F",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\u3089\u308C\u308B",confidence:.8,conjugationType:"potential",minStemLength:2},{pattern:"\u308C\u308B",confidence:.78,conjugationType:"potential",minStemLength:2},{pattern:"\u3089\u308C\u305F",confidence:.8,conjugationType:"passive",minStemLength:2},{pattern:"\u3055\u305B\u308B",confidence:.8,conjugationType:"causative",minStemLength:2},{pattern:"\u305B\u308B",confidence:.78,conjugationType:"causative",minStemLength:2},{pattern:"\u3088\u3046",confidence:.8,conjugationType:"volitional",minStemLength:2},{pattern:"\u308B",confidence:.75,conjugationType:"dictionary",minStemLength:3}],Yo=[{pattern:"\u3057\u305F\u3089",confidence:.88,conjugationType:"conditional-tara"},{pattern:"\u3059\u308B\u3068",confidence:.88,conjugationType:"conditional-to"},{pattern:"\u3059\u308C\u3070",confidence:.85,conjugationType:"conditional-ba"},{pattern:"\u3057\u3066\u3044\u307E\u3059",confidence:.85,conjugationType:"progressive"},{pattern:"\u3057\u3066\u3044\u308B",confidence:.85,conjugationType:"progressive"},{pattern:"\u3057\u307E\u3057\u305F",confidence:.85,conjugationType:"past"},{pattern:"\u3057\u307E\u3059",confidence:.85,conjugationType:"polite"},{pattern:"\u3057\u306A\u3044",confidence:.82,conjugationType:"negative"},{pattern:"\u3057\u3066",confidence:.85,conjugationType:"te-form"},{pattern:"\u3057\u305F",confidence:.85,conjugationType:"past"},{pattern:"\u3059\u308B",confidence:.88,conjugationType:"dictionary"}],Bn=class{constructor(){this.language="ja"}isNormalizable(e){if(!Jp(e)||e.length<2)return!1;let r=e[e.length-1];return Qo(r)}normalize(e){let r=this.normalizeCompound(e);if(r)return r;let t=this.trySuruNormalization(e);if(t)return t;for(let n of Zo)if(e.endsWith(n.pattern)){let a=e.slice(0,-n.pattern.length),i=n.minStemLength??2;if(a.length<i)continue;let u={removedSuffixes:[n.pattern]};return n.conjugationType&&(u.conjugationType=n.conjugationType),z(a,n.confidence,u)}return j(e)}trySuruNormalization(e){for(let r of Yo)if(e.endsWith(r.pattern)){let t=e.slice(0,-r.pattern.length);if(t.length<1)continue;return z(t,r.confidence,{removedSuffixes:[r.pattern],conjugationType:r.conjugationType,originalForm:"suru-verb"})}return null}normalizeCompound(e){let r=[{pattern:"\u3066\u3044\u306A\u304B\u3063\u305F",suffixes:["\u3066","\u3044","\u306A\u304B\u3063\u305F"],confidence:.8,minStemLength:2},{pattern:"\u3067\u3044\u306A\u304B\u3063\u305F",suffixes:["\u3067","\u3044","\u306A\u304B\u3063\u305F"],confidence:.8,minStemLength:2},{pattern:"\u3066\u3044\u306A\u3044",suffixes:["\u3066","\u3044","\u306A\u3044"],confidence:.82,minStemLength:2},{pattern:"\u3067\u3044\u306A\u3044",suffixes:["\u3067","\u3044","\u306A\u3044"],confidence:.82,minStemLength:2},{pattern:"\u3066\u3044\u305F",suffixes:["\u3066","\u3044","\u305F"],confidence:.85,minStemLength:2},{pattern:"\u3067\u3044\u305F",suffixes:["\u3067","\u3044","\u305F"],confidence:.85,minStemLength:2}];for(let{pattern:t,suffixes:n,confidence:a,minStemLength:i}of r)if(e.endsWith(t)){let u=e.slice(0,-t.length);if(u.length<i)continue;return z(u,a,{removedSuffixes:n,conjugationType:"compound"})}return null}},em=new Bn}}),Jo={};A(Jo,{japaneseProfile:()=>xe});var xe,et=g({"src/generators/profiles/japanese.ts"(){"use strict";xe={code:"ja",name:"Japanese",nativeName:"\u65E5\u672C\u8A9E",direction:"ltr",wordOrder:"SOV",markingStrategy:"particle",usesSpaces:!1,defaultVerbForm:"base",verb:{position:"end",suffixes:["\u308B","\u3066","\u305F","\u307E\u3059","\u306A\u3044"],subjectDrop:!0},references:{me:"\u81EA\u5206",it:"\u305D\u308C",you:"\u3042\u306A\u305F",result:"\u7D50\u679C",event:"\u30A4\u30D9\u30F3\u30C8",target:"\u30BF\u30FC\u30B2\u30C3\u30C8",body:"\u30DC\u30C7\u30A3"},possessive:{marker:"\u306E",markerPosition:"between",keywords:{\u79C1\u306E:"me",\u3042\u306A\u305F\u306E:"you",\u305D\u306E:"it"}},roleMarkers:{patient:{primary:"\u3092",position:"after"},destination:{primary:"\u306B",alternatives:["\u3078","\u3067","\u306E"],position:"after"},source:{primary:"\u304B\u3089",position:"after"},style:{primary:"\u3067",position:"after"},event:{primary:"\u3092",position:"after"}},keywords:{toggle:{primary:"\u5207\u308A\u66FF\u3048",alternatives:["\u5207\u308A\u66FF\u3048\u308B","\u30C8\u30B0\u30EB","\u30C8\u30B0\u30EB\u3059\u308B"],normalized:"toggle"},add:{primary:"\u8FFD\u52A0",alternatives:["\u8FFD\u52A0\u3059\u308B","\u52A0\u3048\u308B"],normalized:"add"},remove:{primary:"\u524A\u9664",alternatives:["\u524A\u9664\u3059\u308B","\u53D6\u308A\u9664\u304F"],normalized:"remove"},put:{primary:"\u7F6E\u304F",alternatives:["\u5165\u308C\u308B","\u30BB\u30C3\u30C8"],normalized:"put"},append:{primary:"\u672B\u5C3E\u8FFD\u52A0",alternatives:["\u672B\u5C3E\u306B\u8FFD\u52A0","\u30A2\u30DA\u30F3\u30C9"],normalized:"append"},prepend:{primary:"\u5148\u982D\u8FFD\u52A0",alternatives:["\u5148\u982D\u306B\u8FFD\u52A0","\u30D7\u30EA\u30DA\u30F3\u30C9"],normalized:"prepend"},take:{primary:"\u53D6\u308B",normalized:"take"},make:{primary:"\u4F5C\u308B",alternatives:["\u4F5C\u6210"],normalized:"make"},clone:{primary:"\u8907\u88FD",alternatives:["\u30AF\u30ED\u30FC\u30F3"],normalized:"clone"},swap:{primary:"\u4EA4\u63DB",alternatives:["\u30B9\u30EF\u30C3\u30D7","\u5165\u308C\u66FF\u3048"],normalized:"swap"},morph:{primary:"\u5909\u5F62",alternatives:["\u30E2\u30FC\u30D5","\u5909\u63DB"],normalized:"morph"},set:{primary:"\u8A2D\u5B9A",alternatives:["\u8A2D\u5B9A\u3059\u308B","\u30BB\u30C3\u30C8"],normalized:"set"},get:{primary:"\u53D6\u5F97",alternatives:["\u53D6\u5F97\u3059\u308B","\u30B2\u30C3\u30C8"],normalized:"get"},increment:{primary:"\u5897\u52A0",alternatives:["\u5897\u3084\u3059","\u30A4\u30F3\u30AF\u30EA\u30E1\u30F3\u30C8"],normalized:"increment"},decrement:{primary:"\u6E1B\u5C11",alternatives:["\u6E1B\u3089\u3059","\u30C7\u30AF\u30EA\u30E1\u30F3\u30C8"],normalized:"decrement"},log:{primary:"\u8A18\u9332",alternatives:["\u30ED\u30B0","\u51FA\u529B"],normalized:"log"},show:{primary:"\u8868\u793A",alternatives:["\u8868\u793A\u3059\u308B","\u898B\u305B\u308B"],normalized:"show"},hide:{primary:"\u96A0\u3059",alternatives:["\u975E\u8868\u793A","\u975E\u8868\u793A\u306B\u3059\u308B"],normalized:"hide"},transition:{primary:"\u9077\u79FB",alternatives:["\u30C8\u30E9\u30F3\u30B8\u30B7\u30E7\u30F3","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3"],normalized:"transition"},on:{primary:"\u3067",alternatives:["\u6642","\u3068\u304D"],normalized:"on"},trigger:{primary:"\u5F15\u304D\u91D1",alternatives:["\u767A\u706B","\u30C8\u30EA\u30AC\u30FC"],normalized:"trigger"},send:{primary:"\u9001\u308B",alternatives:["\u9001\u4FE1"],normalized:"send"},focus:{primary:"\u30D5\u30A9\u30FC\u30AB\u30B9",alternatives:["\u96C6\u4E2D"],normalized:"focus"},blur:{primary:"\u307C\u304B\u3057",alternatives:["\u30D5\u30A9\u30FC\u30AB\u30B9\u89E3\u9664"],normalized:"blur"},go:{primary:"\u79FB\u52D5",alternatives:["\u884C\u304F","\u30CA\u30D3\u30B2\u30FC\u30C8"],normalized:"go"},wait:{primary:"\u5F85\u3064",alternatives:["\u5F85\u6A5F"],normalized:"wait"},fetch:{primary:"\u53D6\u5F97",alternatives:["\u30D5\u30A7\u30C3\u30C1"],normalized:"fetch"},settle:{primary:"\u5B89\u5B9A",alternatives:["\u843D\u3061\u7740\u304F"],normalized:"settle"},if:{primary:"\u3082\u3057",alternatives:["\u6761\u4EF6"],normalized:"if"},when:{primary:"\u3068\u304D",normalized:"when"},where:{primary:"\u3069\u3053",normalized:"where"},else:{primary:"\u305D\u3046\u3067\u306A\u3051\u308C\u3070",alternatives:["\u305D\u308C\u4EE5\u5916"],normalized:"else"},repeat:{primary:"\u7E70\u308A\u8FD4\u3057",alternatives:["\u7E70\u308A\u8FD4\u3059","\u30EA\u30D4\u30FC\u30C8"],normalized:"repeat"},for:{primary:"\u305F\u3081\u306B",alternatives:["\u5404"],normalized:"for"},while:{primary:"\u306E\u9593",alternatives:["\u9593"],normalized:"while"},continue:{primary:"\u7D9A\u3051\u308B",alternatives:["\u7D99\u7D9A"],normalized:"continue"},halt:{primary:"\u505C\u6B62",alternatives:["\u6B62\u3081\u308B","\u30CF\u30EB\u30C8"],normalized:"halt"},throw:{primary:"\u6295\u3052\u308B",alternatives:["\u30B9\u30ED\u30FC"],normalized:"throw"},call:{primary:"\u547C\u3073\u51FA\u3057",alternatives:["\u30B3\u30FC\u30EB","\u547C\u3076"],normalized:"call"},return:{primary:"\u623B\u308B",alternatives:["\u8FD4\u3059","\u30EA\u30BF\u30FC\u30F3"],normalized:"return"},then:{primary:"\u305D\u308C\u304B\u3089",alternatives:["\u6B21\u306B","\u305D\u3057\u3066"],normalized:"then"},and:{primary:"\u305D\u3057\u3066",alternatives:["\u3068","\u307E\u305F"],normalized:"and"},end:{primary:"\u7D42\u308F\u308A",alternatives:["\u7D42\u4E86","\u304A\u308F\u308A"],normalized:"end"},js:{primary:"JS\u5B9F\u884C",alternatives:["js"],normalized:"js"},async:{primary:"\u975E\u540C\u671F",alternatives:["\u30A2\u30B7\u30F3\u30AF"],normalized:"async"},tell:{primary:"\u4F1D\u3048\u308B",alternatives:["\u30C6\u30EB"],normalized:"tell"},default:{primary:"\u65E2\u5B9A",alternatives:["\u30C7\u30D5\u30A9\u30EB\u30C8"],normalized:"default"},init:{primary:"\u521D\u671F\u5316",alternatives:["\u30A4\u30CB\u30C3\u30C8"],normalized:"init"},behavior:{primary:"\u632F\u308B\u821E\u3044",alternatives:["\u30D3\u30D8\u30A4\u30D3\u30A2"],normalized:"behavior"},install:{primary:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB",alternatives:["\u5C0E\u5165"],normalized:"install"},measure:{primary:"\u6E2C\u5B9A",alternatives:["\u8A08\u6E2C","\u30E1\u30B8\u30E3\u30FC"],normalized:"measure"},beep:{primary:"\u30D3\u30FC\u30D7",normalized:"beep"},break:{primary:"\u4E2D\u65AD",normalized:"break"},copy:{primary:"\u30B3\u30D4\u30FC",normalized:"copy"},exit:{primary:"\u7D42\u4E86",normalized:"exit"},pick:{primary:"\u9078\u629E",normalized:"pick"},render:{primary:"\u63CF\u753B",normalized:"render"},into:{primary:"\u3078",alternatives:["\u306B"],normalized:"into"},before:{primary:"\u524D\u306B",alternatives:["\u524D"],normalized:"before"},after:{primary:"\u5F8C\u306B",alternatives:["\u5F8C"],normalized:"after"},until:{primary:"\u307E\u3067",alternatives:["\u8FC4"],normalized:"until"},event:{primary:"\u30A4\u30D9\u30F3\u30C8",alternatives:["\u4E8B\u8C61"],normalized:"event"},from:{primary:"\u304B\u3089",normalized:"from"}},tokenization:{particles:["\u3092","\u306B","\u3067","\u304B\u3089","\u306E","\u304C","\u306F","\u3082","\u3078","\u3068"],boundaryStrategy:"particle"},eventHandler:{eventMarker:{primary:"\u3067",position:"after"},temporalMarkers:["\u6642","\u3068\u304D"]}}}}),es={};A(es,{JapaneseTokenizer:()=>Ln,japaneseTokenizer:()=>Mt});var ts,rs,ns,Fn,is,Sn,Pn,jn,as,us,Ln,Mt,_n=g({"src/tokenizers/japanese.ts"(){"use strict";W(),tm(),et(),ts=Q([[12352,12447]]),rs=Q([[12448,12543]]),ns=Q([[19968,40959],[13312,19903]]),Fn=aa(ts,rs,ns),is=new Set(["\u3092","\u306B","\u3067","\u304B\u3089","\u307E\u3067","\u3078","\u3068","\u306E","\u304C","\u306F","\u3082","\u3088\u308A"]),Sn=new Set(["\u3092","\u306B","\u3067","\u3078","\u3068","\u306E","\u304C","\u306F","\u3082"]),Pn=["\u304B\u3089","\u307E\u3067","\u3088\u308A"],jn=new Map([["\u3092",{role:"patient",confidence:.95,description:"object marker"}],["\u306B",{role:"destination",confidence:.85,description:"destination/time marker"}],["\u3067",{role:"manner",confidence:.88,description:"means/location marker"}],["\u304B\u3089",{role:"source",confidence:.9,description:"from/source marker"}],["\u307E\u3067",{role:"destination",confidence:.75,description:"until/boundary marker"}],["\u3078",{role:"destination",confidence:.9,description:"direction marker"}],["\u3068",{role:"style",confidence:.7,description:"with/and marker"}],["\u306E",{role:"destination",confidence:.75,description:"possessive/destination marker"}],["\u304C",{role:"agent",confidence:.85,description:"subject marker"}],["\u306F",{role:"agent",confidence:.75,description:"topic marker"}],["\u3082",{role:"patient",confidence:.65,description:"also/too marker"}],["\u3088\u308A",{role:"source",confidence:.85,description:"from/than marker"}]]),as=[{native:"\u771F",normalized:"true"},{native:"\u507D",normalized:"false"},{native:"\u30CC\u30EB",normalized:"null"},{native:"\u672A\u5B9A\u7FA9",normalized:"undefined"},{native:"\u6700\u521D",normalized:"first"},{native:"\u6700\u5F8C",normalized:"last"},{native:"\u6B21",normalized:"next"},{native:"\u524D",normalized:"previous"},{native:"\u6700\u3082\u8FD1\u3044",normalized:"closest"},{native:"\u89AA",normalized:"parent"},{native:"\u30AF\u30EA\u30C3\u30AF",normalized:"click"},{native:"\u5909\u66F4",normalized:"change"},{native:"\u9001\u4FE1",normalized:"submit"},{native:"\u5165\u529B",normalized:"input"},{native:"\u30ED\u30FC\u30C9",normalized:"load"},{native:"\u30B9\u30AF\u30ED\u30FC\u30EB",normalized:"scroll"},{native:"\u30AD\u30FC\u30C0\u30A6\u30F3",normalized:"keydown"},{native:"\u30AD\u30FC\u30A2\u30C3\u30D7",normalized:"keyup"},{native:"\u30DE\u30A6\u30B9\u30AA\u30FC\u30D0\u30FC",normalized:"mouseover"},{native:"\u30DE\u30A6\u30B9\u30A2\u30A6\u30C8",normalized:"mouseout"},{native:"\u30D6\u30E9\u30FC",normalized:"blur"},{native:"\u79C1",normalized:"me"},{native:"\u79C1\u306E",normalized:"my"},{native:"\u305D\u306E",normalized:"its"},{native:"\u3057\u305F\u3089",normalized:"on"},{native:"\u3059\u308B\u3068",normalized:"on"},{native:"\u6642\u306B",normalized:"on"},{native:"\u3082\u3057",normalized:"if"},{native:"\u306A\u3089\u3070",normalized:"then"},{native:"\u306A\u3089",normalized:"then"},{native:"\u305D\u308C\u304B\u3089",normalized:"then"},{native:"\u305D\u3057\u3066",normalized:"and"},{native:"\u79D2",normalized:"s"},{native:"\u30DF\u30EA\u79D2",normalized:"ms"},{native:"\u5206",normalized:"m"},{native:"\u6642\u9593",normalized:"h"}],us=[{pattern:"\u30DF\u30EA\u79D2",suffix:"ms",length:3},{pattern:"\u6642\u9593",suffix:"h",length:2},{pattern:"\u79D2",suffix:"s",length:1},{pattern:"\u5206",suffix:"m",length:1}],Ln=class extends I{constructor(){super(),this.language="ja",this.direction="ltr",this.initializeKeywordsFromProfile(xe,as),this.normalizer=new Bn}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])){let i=this.extractJapaneseNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}let a=this.tryMultiCharParticle(e,t,Pn);if(a){let i=jn.get(a.value);i?r.push({...a,metadata:{particleRole:i.role,particleConfidence:i.confidence}}):r.push(a),t=a.position.end;continue}if(Sn.has(e[t])){let i=this.tryProfileKeyword(e,t);if(i&&i.value.length>1){r.push(i),t=i.position.end;continue}let u=e[t],o=jn.get(u);o?r.push({...c(u,"particle",m(t,t+1)),metadata:{particleRole:o.role,particleConfidence:o.confidence}}):r.push(c(u,"particle",m(t,t+1))),t++;continue}if(Fn(e[t])){let i=this.extractJapaneseWord(e,t);if(i){r.push(i),t=i.position.end;continue}}if(x(e[t])){let i=this.extractAsciiWord(e,t);if(i){r.push(i),t=i.position.end;continue}}t++}return new P(r,"ja")}classifyToken(e){return is.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||e.startsWith("\u300C")||/^\d/.test(e)?"literal":"identifier"}extractJapaneseWord(e,r){let t=r,n="";for(;t<e.length;){let u=e[t];if(Sn.has(u)&&n.length>0)break;let o=!1;for(let s of Pn)if(e.slice(t,t+s.length)===s&&n.length>0){o=!0;break}if(o)break;if(Fn(u))n+=u,t++;else break}if(!n)return null;let a=this.lookupKeyword(n);if(a)return c(n,"keyword",m(r,t),a.normalized);let i=this.tryMorphKeywordMatch(n,r,t);return i||c(n,"identifier",m(r,t))}extractAsciiWord(e,r){let t=r,n="";for(;t<e.length&&x(e[t]);)n+=e[t++];return n?c(n,"identifier",m(r,t)):null}extractJapaneseNumber(e,r){return this.tryNumberWithTimeUnits(e,r,us,{allowSign:!1,skipWhitespace:!1})}},Mt=new Ln}});function rm(e){let r=e.charCodeAt(0);return r>=44032&&r<=55203}function nm(e){for(let r of e)if(rm(r))return!0;return!1}var os,ss,Rn,im,am=g({"src/tokenizers/morphology/korean-normalizer.ts"(){"use strict";H(),os=[{pattern:"\uD558\uC2DC\uB2C8\uAE4C",confidence:.85,conjugationType:"honorific-causal",minStemLength:1},{pattern:"\uD558\uC2E4\uB54C",confidence:.88,conjugationType:"honorific-temporal",minStemLength:1},{pattern:"\uD558\uC2E4 \uB54C",confidence:.88,conjugationType:"honorific-temporal",minStemLength:1},{pattern:"\uD558\uC2DC\uBA74",confidence:.88,conjugationType:"honorific-conditional",minStemLength:1},{pattern:"\uC73C\uC2DC\uBA74",confidence:.85,conjugationType:"honorific-conditional",minStemLength:2},{pattern:"\uC2DC\uBA74",confidence:.82,conjugationType:"honorific-conditional",minStemLength:2},{pattern:"\uD558\uACE0\uB098\uC11C",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\uD558\uACE0 \uB098\uC11C",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\uD558\uACE0\uC11C",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\uACE0\uB098\uC11C",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uACE0 \uB098\uC11C",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uACE0\uC11C",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD558\uAE30\uC804\uC5D0",confidence:.85,conjugationType:"sequential-before",minStemLength:1},{pattern:"\uD558\uAE30 \uC804\uC5D0",confidence:.85,conjugationType:"sequential-before",minStemLength:1},{pattern:"\uAE30\uC804\uC5D0",confidence:.82,conjugationType:"sequential-before",minStemLength:2},{pattern:"\uAE30 \uC804\uC5D0",confidence:.82,conjugationType:"sequential-before",minStemLength:2},{pattern:"\uD558\uC790\uB9C8\uC790",confidence:.88,conjugationType:"immediate",minStemLength:1},{pattern:"\uC790\uB9C8\uC790",confidence:.85,conjugationType:"immediate",minStemLength:2},{pattern:"\uD574\uC57C\uD574\uC694",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\uD574\uC57C\uD574",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\uD574\uC57C\uD558\uB2E4",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\uC5B4\uC57C\uD574\uC694",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uC5B4\uC57C\uD574",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uC544\uC57C\uD574\uC694",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uC544\uC57C\uD574",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uD558\uB2C8\uAE4C",confidence:.85,conjugationType:"causal-nikka",minStemLength:1},{pattern:"\uD560\uB54C",confidence:.88,conjugationType:"temporal-ttae",minStemLength:1},{pattern:"\uD560 \uB54C",confidence:.88,conjugationType:"temporal-ttae",minStemLength:1},{pattern:"\uC744\uB54C",confidence:.85,conjugationType:"temporal-ttae",minStemLength:2},{pattern:"\uC744 \uB54C",confidence:.85,conjugationType:"temporal-ttae",minStemLength:2},{pattern:"\uD558\uBA74",confidence:.88,conjugationType:"conditional-myeon",minStemLength:1},{pattern:"\uC73C\uBA74",confidence:.85,conjugationType:"conditional-myeon",minStemLength:2},{pattern:"\uB2C8\uAE4C",confidence:.82,conjugationType:"causal-nikka",minStemLength:2},{pattern:"\uBA74",confidence:.8,conjugationType:"conditional-myeon",minStemLength:2},{pattern:"\uD558\uC600\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD588\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD569\uB2C8\uB2E4",confidence:.85,conjugationType:"polite",minStemLength:1},{pattern:"\uC2B5\uB2C8\uB2E4",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uB429\uB2C8\uB2E4",confidence:.82,conjugationType:"polite",minStemLength:1},{pattern:"\u3142\uB2C8\uB2E4",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uD558\uC138\uC694",confidence:.85,conjugationType:"honorific",minStemLength:1},{pattern:"\uD558\uC2ED\uC2DC\uC624",confidence:.85,conjugationType:"honorific",minStemLength:1},{pattern:"\uC138\uC694",confidence:.82,conjugationType:"honorific",minStemLength:2},{pattern:"\uC2ED\uC2DC\uC624",confidence:.82,conjugationType:"honorific",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uC5B4\uC694",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\uD558\uACE0\uC788\uC5B4",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\uD588\uC5B4\uC694",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD574\uC694",confidence:.85,conjugationType:"polite",minStemLength:1},{pattern:"\uC5B4\uC694",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uC544\uC694",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uD588\uC5B4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD574",confidence:.8,conjugationType:"present",minStemLength:1},{pattern:"\uC5C8\uC5B4",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\uC558\uC5B4",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uB2E4",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\uACE0\uC788\uB2E4",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\uACE0\uC788\uC5B4",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\uD558\uB2E4",confidence:.88,conjugationType:"dictionary",minStemLength:1},{pattern:"\uD558\uC9C0\uC54A\uB2E4",confidence:.82,conjugationType:"negative",minStemLength:1},{pattern:"\uC548\uD558\uB2E4",confidence:.82,conjugationType:"negative",minStemLength:1},{pattern:"\uC9C0\uC54A\uB2E4",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"\uD574\uB77C",confidence:.82,conjugationType:"imperative",minStemLength:1},{pattern:"\uD558\uB77C",confidence:.82,conjugationType:"imperative",minStemLength:1},{pattern:"\uB2E4",confidence:.75,conjugationType:"dictionary",minStemLength:2}],ss=[{pattern:"\uD558\uC2DC\uB2C8\uAE4C",confidence:.88,conjugationType:"honorific-causal"},{pattern:"\uD558\uC2E4\uB54C",confidence:.88,conjugationType:"honorific-temporal"},{pattern:"\uD558\uC2E4 \uB54C",confidence:.88,conjugationType:"honorific-temporal"},{pattern:"\uD558\uC2DC\uBA74",confidence:.88,conjugationType:"honorific-conditional"},{pattern:"\uD558\uC168\uC5B4\uC694",confidence:.85,conjugationType:"honorific-past"},{pattern:"\uD558\uC168\uC5B4",confidence:.85,conjugationType:"honorific-past"},{pattern:"\uD558\uC2ED\uB2C8\uB2E4",confidence:.85,conjugationType:"honorific-polite"},{pattern:"\uD558\uACE0\uB098\uC11C",confidence:.88,conjugationType:"sequential-after"},{pattern:"\uD558\uACE0 \uB098\uC11C",confidence:.88,conjugationType:"sequential-after"},{pattern:"\uD558\uACE0\uC11C",confidence:.88,conjugationType:"sequential-after"},{pattern:"\uD558\uAE30\uC804\uC5D0",confidence:.88,conjugationType:"sequential-before"},{pattern:"\uD558\uAE30 \uC804\uC5D0",confidence:.88,conjugationType:"sequential-before"},{pattern:"\uD558\uC790\uB9C8\uC790",confidence:.88,conjugationType:"immediate"},{pattern:"\uD574\uC57C\uD574\uC694",confidence:.88,conjugationType:"obligation"},{pattern:"\uD574\uC57C\uD574",confidence:.88,conjugationType:"obligation"},{pattern:"\uD574\uC57C\uD558\uB2E4",confidence:.88,conjugationType:"obligation"},{pattern:"\uD558\uB2C8\uAE4C",confidence:.88,conjugationType:"causal-nikka"},{pattern:"\uD560\uB54C",confidence:.88,conjugationType:"temporal-ttae"},{pattern:"\uD560 \uB54C",confidence:.88,conjugationType:"temporal-ttae"},{pattern:"\uD558\uBA74",confidence:.88,conjugationType:"conditional-myeon"},{pattern:"\uD558\uC600\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past"},{pattern:"\uD588\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past"},{pattern:"\uD569\uB2C8\uB2E4",confidence:.85,conjugationType:"polite"},{pattern:"\uD558\uC2ED\uC2DC\uC624",confidence:.85,conjugationType:"honorific"},{pattern:"\uD558\uC138\uC694",confidence:.85,conjugationType:"honorific"},{pattern:"\uD588\uC5B4\uC694",confidence:.85,conjugationType:"past"},{pattern:"\uD574\uC694",confidence:.85,conjugationType:"polite"},{pattern:"\uD588\uC5B4",confidence:.85,conjugationType:"past"},{pattern:"\uD574",confidence:.8,conjugationType:"present"},{pattern:"\uD558\uACE0\uC788\uC5B4\uC694",confidence:.82,conjugationType:"progressive"},{pattern:"\uD558\uACE0\uC788\uC5B4",confidence:.82,conjugationType:"progressive"},{pattern:"\uD558\uACE0\uC788\uB2E4",confidence:.82,conjugationType:"progressive"},{pattern:"\uD574\uC11C",confidence:.82,conjugationType:"connective"},{pattern:"\uD558\uACE0",confidence:.8,conjugationType:"connective"},{pattern:"\uD558\uC9C0\uC54A\uC544\uC694",confidence:.82,conjugationType:"negative"},{pattern:"\uD558\uC9C0\uC54A\uB2E4",confidence:.82,conjugationType:"negative"},{pattern:"\uC548\uD574\uC694",confidence:.82,conjugationType:"negative"},{pattern:"\uC548\uD574",confidence:.82,conjugationType:"negative"},{pattern:"\uD574\uB77C",confidence:.82,conjugationType:"imperative"},{pattern:"\uD558\uB77C",confidence:.82,conjugationType:"imperative"},{pattern:"\uD558\uB2E4",confidence:.88,conjugationType:"dictionary"}],Rn=class{constructor(){this.language="ko"}isNormalizable(e){return!(!nm(e)||e.length<2)}normalize(e){let r=this.normalizeCompound(e);if(r)return r;let t=this.tryHadaNormalization(e);if(t)return t;for(let n of os)if(e.endsWith(n.pattern)){let a=e.slice(0,-n.pattern.length),i=n.minStemLength??2;if(a.length<i)continue;let u={removedSuffixes:[n.pattern]};return n.conjugationType&&(u.conjugationType=n.conjugationType),z(a,n.confidence,u)}return j(e)}tryHadaNormalization(e){for(let r of ss)if(e.endsWith(r.pattern)){let t=e.slice(0,-r.pattern.length);if(t.length<1)continue;return z(t,r.confidence,{removedSuffixes:[r.pattern],conjugationType:r.conjugationType,originalForm:"hada-verb"})}return null}normalizeCompound(e){let r=[{pattern:"\uD558\uACE0\uB098\uC11C\uC600\uC5B4",suffixes:["\uD558\uACE0\uB098\uC11C","\uC600\uC5B4"],confidence:.78,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD558\uACE0\uB098\uC11C\uC600\uB2E4",suffixes:["\uD558\uACE0\uB098\uC11C","\uC600\uB2E4"],confidence:.78,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD558\uACE0\uB098\uC11C",suffixes:["\uD558\uACE0","\uB098\uC11C"],confidence:.85,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD574\uC57C\uD588\uC5B4",suffixes:["\uD574\uC57C","\uD588\uC5B4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\uD574\uC57C\uD588\uB2E4",suffixes:["\uD574\uC57C","\uD588\uB2E4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\uD574\uC57C\uD588\uC2B5\uB2C8\uB2E4",suffixes:["\uD574\uC57C","\uD588\uC2B5\uB2C8\uB2E4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\uD558\uC2DC\uBA74\uC11C",suffixes:["\uD558\uC2DC","\uBA74\uC11C"],confidence:.82,conjugationType:"connective",minStemLength:2},{pattern:"\uD558\uC2DC\uBA70",suffixes:["\uD558\uC2DC","\uBA70"],confidence:.82,conjugationType:"connective",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uC5C8\uC5B4",suffixes:["\uD558\uACE0","\uC788\uC5C8\uC5B4"],confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uC5C8\uB2E4",suffixes:["\uD558\uACE0","\uC788\uC5C8\uB2E4"],confidence:.8,conjugationType:"progressive",minStemLength:2}];for(let{pattern:t,suffixes:n,confidence:a,conjugationType:i,minStemLength:u}of r)if(e.endsWith(t)){let o=e.slice(0,-t.length);if(o.length<u)continue;return z(o,a,{removedSuffixes:n,conjugationType:i})}return null}},im=new Rn}}),ls={};A(ls,{koreanProfile:()=>De});var De,tt=g({"src/generators/profiles/korean.ts"(){"use strict";De={code:"ko",name:"Korean",nativeName:"\uD55C\uAD6D\uC5B4",direction:"ltr",wordOrder:"SOV",markingStrategy:"particle",usesSpaces:!0,verb:{position:"end",suffixes:["\uB2E4","\uC694","\uB2C8\uB2E4","\uC138\uC694"],subjectDrop:!0},references:{me:"\uB098",it:"\uADF8\uAC83",you:"\uB108",result:"\uACB0\uACFC",event:"\uC774\uBCA4\uD2B8",target:"\uB300\uC0C1",body:"\uBCF8\uBB38"},possessive:{marker:"\uC758",markerPosition:"between",specialForms:{me:"\uB0B4",it:"\uADF8\uAC83\uC758",you:"\uB124"},keywords:{\uB0B4:"me",\uB124:"you",\uADF8\uC758:"it"}},roleMarkers:{patient:{primary:"\uC744",alternatives:["\uB97C"],position:"after"},destination:{primary:"\uC5D0",alternatives:["\uC73C\uB85C","\uB85C","\uC5D0\uC11C","\uC758"],position:"after"},source:{primary:"\uC5D0\uC11C",alternatives:["\uBD80\uD130"],position:"after"},style:{primary:"\uB85C",alternatives:["\uC73C\uB85C"],position:"after"},event:{primary:"\uC744",alternatives:["\uB97C"],position:"after"}},keywords:{toggle:{primary:"\uD1A0\uAE00",alternatives:["\uC804\uD658"],normalized:"toggle"},add:{primary:"\uCD94\uAC00",normalized:"add"},remove:{primary:"\uC81C\uAC70",alternatives:["\uC0AD\uC81C"],normalized:"remove"},put:{primary:"\uB123\uB2E4",alternatives:["\uB123\uAE30","\uB193\uAE30"],normalized:"put"},append:{primary:"\uCD94\uAC00",normalized:"append"},take:{primary:"\uAC00\uC838\uC624\uB2E4",normalized:"take"},make:{primary:"\uB9CC\uB4E4\uB2E4",normalized:"make"},clone:{primary:"\uBCF5\uC0AC",normalized:"clone"},swap:{primary:"\uAD50\uD658",alternatives:["\uBC14\uAFB8\uB2E4"],normalized:"swap"},morph:{primary:"\uBCC0\uD615",alternatives:["\uBCC0\uD658"],normalized:"morph"},set:{primary:"\uC124\uC815",normalized:"set"},get:{primary:"\uC5BB\uB2E4",alternatives:["\uAC00\uC838\uC624\uAE30"],normalized:"get"},increment:{primary:"\uC99D\uAC00",normalized:"increment"},decrement:{primary:"\uAC10\uC18C",normalized:"decrement"},log:{primary:"\uB85C\uADF8",normalized:"log"},show:{primary:"\uBCF4\uC774\uB2E4",alternatives:["\uD45C\uC2DC","\uBCF4\uC774\uAE30"],normalized:"show"},hide:{primary:"\uC228\uAE30\uB2E4",alternatives:["\uC228\uAE30\uAE30"],normalized:"hide"},transition:{primary:"\uC804\uD658",normalized:"transition"},on:{primary:"\uC5D0",alternatives:["\uC2DC","\uB54C","\uD560 \uB54C"],normalized:"on"},trigger:{primary:"\uD2B8\uB9AC\uAC70",normalized:"trigger"},send:{primary:"\uBCF4\uB0B4\uB2E4",normalized:"send"},focus:{primary:"\uD3EC\uCEE4\uC2A4",normalized:"focus"},blur:{primary:"\uBE14\uB7EC",normalized:"blur"},click:{primary:"\uD074\uB9AD",normalized:"click"},hover:{primary:"\uD638\uBC84",normalized:"hover"},submit:{primary:"\uC81C\uCD9C",normalized:"submit"},input:{primary:"\uC785\uB825",normalized:"input"},change:{primary:"\uBCC0\uACBD",normalized:"change"},go:{primary:"\uC774\uB3D9",normalized:"go"},wait:{primary:"\uB300\uAE30",normalized:"wait"},fetch:{primary:"\uAC00\uC838\uC624\uAE30",normalized:"fetch"},settle:{primary:"\uC548\uC815",normalized:"settle"},if:{primary:"\uB9CC\uC57D",normalized:"if"},when:{primary:"\uB54C",normalized:"when"},where:{primary:"\uC5B4\uB514",normalized:"where"},else:{primary:"\uC544\uB2C8\uBA74",normalized:"else"},repeat:{primary:"\uBC18\uBCF5",normalized:"repeat"},for:{primary:"\uB3D9\uC548",normalized:"for"},while:{primary:"\uB3D9\uC548",normalized:"while"},continue:{primary:"\uACC4\uC18D",normalized:"continue"},halt:{primary:"\uC815\uC9C0",normalized:"halt"},throw:{primary:"\uB358\uC9C0\uB2E4",normalized:"throw"},call:{primary:"\uD638\uCD9C",normalized:"call"},return:{primary:"\uBC18\uD658",normalized:"return"},then:{primary:"\uADF8\uB2E4\uC74C",alternatives:["\uADF8\uB9AC\uACE0","\uADF8\uB7F0\uD6C4"],normalized:"then"},and:{primary:"\uADF8\uB9AC\uACE0",alternatives:["\uB610\uD55C","\uBC0F"],normalized:"and"},end:{primary:"\uB05D",alternatives:["\uC885\uB8CC","\uB9C8\uCE68"],normalized:"end"},js:{primary:"JS\uC2E4\uD589",alternatives:["js"],normalized:"js"},async:{primary:"\uBE44\uB3D9\uAE30",normalized:"async"},tell:{primary:"\uB9D0\uD558\uB2E4",normalized:"tell"},default:{primary:"\uAE30\uBCF8\uAC12",normalized:"default"},init:{primary:"\uCD08\uAE30\uD654",normalized:"init"},behavior:{primary:"\uB3D9\uC791",normalized:"behavior"},install:{primary:"\uC124\uCE58",normalized:"install"},measure:{primary:"\uCE21\uC815",normalized:"measure"},beep:{primary:"\uBE44\uD504",normalized:"beep"},break:{primary:"\uC911\uB2E8",normalized:"break"},copy:{primary:"\uBCF5\uC0AC",normalized:"copy"},exit:{primary:"\uC885\uB8CC",normalized:"exit"},pick:{primary:"\uC120\uD0DD",normalized:"pick"},render:{primary:"\uB80C\uB354\uB9C1",normalized:"render"},into:{primary:"\uC73C\uB85C",normalized:"into"},before:{primary:"\uC804\uC5D0",normalized:"before"},after:{primary:"\uD6C4\uC5D0",normalized:"after"},until:{primary:"\uAE4C\uC9C0",normalized:"until"},event:{primary:"\uC774\uBCA4\uD2B8",normalized:"event"},from:{primary:"\uC5D0\uC11C",normalized:"from"}},tokenization:{particles:["\uC744","\uB97C","\uC774","\uAC00","\uC740","\uB294","\uC5D0","\uC5D0\uC11C","\uC73C\uB85C","\uB85C","\uC640","\uACFC","\uB3C4"],boundaryStrategy:"space"},eventHandler:{eventMarker:{primary:"\uD560 \uB54C",alternatives:["\uD560\uB54C","\uB54C","\uC5D0"],position:"after"},temporalMarkers:["\uD560 \uB54C","\uD560\uB54C","\uB54C"]}}}}),ps={};A(ps,{KoreanTokenizer:()=>Wn,koreanTokenizer:()=>qt});var ms,cs,ye,Ot,rt,Nn,ds,In,ys,fs,Wn,qt,Mn=g({"src/tokenizers/korean.ts"(){"use strict";W(),am(),tt(),ms=Q([[44032,55203]]),cs=Q([[4352,4607],[12592,12687]]),ye=aa(ms,cs),Ot=new Set(["\uC774","\uAC00","\uC744","\uB97C","\uC740","\uB294","\uC5D0","\uC5D0\uC11C","\uB85C","\uC73C\uB85C","\uC640","\uACFC","\uC758","\uB3C4","\uB9CC","\uBD80\uD130","\uAE4C\uC9C0","\uCC98\uB7FC","\uBCF4\uB2E4"]),rt=new Set(["\uC774","\uAC00","\uC744","\uB97C","\uC740","\uB294","\uC5D0","\uB85C","\uC640","\uACFC","\uC758","\uB3C4","\uB9CC"]),Nn=["\uC5D0\uC11C","\uC73C\uB85C","\uBD80\uD130","\uAE4C\uC9C0","\uCC98\uB7FC","\uBCF4\uB2E4"],ds=["\uD560\uB54C","\uD558\uBA74","\uD558\uB2C8\uAE4C","\uD560 \uB54C"],In=new Map([["\uC774",{role:"agent",confidence:.85,variant:"consonant",description:"subject marker (after consonant)"}],["\uAC00",{role:"agent",confidence:.85,variant:"vowel",description:"subject marker (after vowel)"}],["\uC744",{role:"patient",confidence:.95,variant:"consonant",description:"object marker (after consonant)"}],["\uB97C",{role:"patient",confidence:.95,variant:"vowel",description:"object marker (after vowel)"}],["\uC740",{role:"agent",confidence:.75,variant:"consonant",description:"topic marker (after consonant)"}],["\uB294",{role:"agent",confidence:.75,variant:"vowel",description:"topic marker (after vowel)"}],["\uC5D0",{role:"destination",confidence:.85,description:"at/to marker"}],["\uC5D0\uC11C",{role:"source",confidence:.8,description:"at/from marker (action location)"}],["\uB85C",{role:"destination",confidence:.85,variant:"vowel",description:"to/by means (after vowel or \u3139)"}],["\uC73C\uB85C",{role:"destination",confidence:.85,variant:"consonant",description:"to/by means (after consonant)"}],["\uC640",{role:"style",confidence:.7,variant:"vowel",description:"and/with (after vowel)"}],["\uACFC",{role:"style",confidence:.7,variant:"consonant",description:"and/with (after consonant)"}],["\uC758",{role:"patient",confidence:.6,description:"possessive marker"}],["\uB3C4",{role:"patient",confidence:.65,description:"also/too marker"}],["\uB9CC",{role:"patient",confidence:.65,description:"only marker"}],["\uBD80\uD130",{role:"source",confidence:.9,description:"from/since marker"}],["\uAE4C\uC9C0",{role:"destination",confidence:.75,description:"until/to marker"}],["\uCC98\uB7FC",{role:"manner",confidence:.8,description:"like/as marker"}],["\uBCF4\uB2E4",{role:"source",confidence:.75,description:"than marker"}]]),ys=[{native:"\uCC38",normalized:"true"},{native:"\uAC70\uC9D3",normalized:"false"},{native:"\uB110",normalized:"null"},{native:"\uBBF8\uC815\uC758",normalized:"undefined"},{native:"\uCCAB\uBC88\uC9F8",normalized:"first"},{native:"\uB9C8\uC9C0\uB9C9",normalized:"last"},{native:"\uB2E4\uC74C",normalized:"next"},{native:"\uC774\uC804",normalized:"previous"},{native:"\uAC00\uC7A5\uAC00\uAE4C\uC6B4",normalized:"closest"},{native:"\uBD80\uBAA8",normalized:"parent"},{native:"\uD074\uB9AD",normalized:"click"},{native:"\uB354\uBE14\uD074\uB9AD",normalized:"dblclick"},{native:"\uBCC0\uACBD",normalized:"change"},{native:"\uC81C\uCD9C",normalized:"submit"},{native:"\uC785\uB825",normalized:"input"},{native:"\uB85C\uB4DC",normalized:"load"},{native:"\uC2A4\uD06C\uB864",normalized:"scroll"},{native:"\uD0A4\uB2E4\uC6B4",normalized:"keydown"},{native:"\uD0A4\uC5C5",normalized:"keyup"},{native:"\uB9C8\uC6B0\uC2A4\uC624\uBC84",normalized:"mouseover"},{native:"\uB9C8\uC6B0\uC2A4\uC544\uC6C3",normalized:"mouseout"},{native:"\uB0B4",normalized:"my"},{native:"\uADF8\uAC83\uC758",normalized:"its"},{native:"\uADF8\uB2E4\uC74C",normalized:"then"},{native:"\uADF8\uB7F0\uD6C4",normalized:"then"},{native:"\uADF8\uB7EC\uBA74",normalized:"then"},{native:"\uADF8\uB9AC\uACE0",normalized:"and"},{native:"\uB610\uB294",normalized:"or"},{native:"\uC544\uB2C8",normalized:"not"},{native:"\uC774\uB2E4",normalized:"is"},{native:"\uCD08",normalized:"s"},{native:"\uBC00\uB9AC\uCD08",normalized:"ms"},{native:"\uBD84",normalized:"m"},{native:"\uC2DC\uAC04",normalized:"h"}],fs=[{pattern:"\uBC00\uB9AC\uCD08",suffix:"ms",length:3},{pattern:"\uC2DC\uAC04",suffix:"h",length:2},{pattern:"\uCD08",suffix:"s",length:1},{pattern:"\uBD84",suffix:"m",length:1}],Wn=class extends I{constructor(){super(),this.language="ko",this.direction="ltr",this.initializeKeywordsFromProfile(De,ys),this.normalizer=new Rn}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])){let i=this.extractKoreanNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}if(ye(e[t])){let i=this.extractKoreanWord(e,t);if(i){let u=this.trySplitTemporalSuffix(i);u?(r.push(u.stemToken),r.push(u.suffixToken)):r.push(i),t=i.position.end;continue}}let a=this.tryMultiCharParticle(e,t,Nn);if(a){let i=In.get(a.value);i?r.push({...a,metadata:{particleRole:i.role,particleConfidence:i.confidence,particleVariant:i.variant}}):r.push(a),t=a.position.end;continue}if(rt.has(e[t])){let i=e[t],u=In.get(i);u?r.push({...c(i,"particle",m(t,t+1)),metadata:{particleRole:u.role,particleConfidence:u.confidence,particleVariant:u.variant}}):r.push(c(i,"particle",m(t,t+1))),t++;continue}if(x(e[t])){let i=this.extractAsciiWord(e,t);if(i){r.push(i),t=i.position.end;continue}}t++}return new P(r,"ko")}classifyToken(e){return Ot.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}extractKoreanWord(e,r){for(let o=Math.min(6,e.length-r);o>=2;o--){let s=e.slice(r,r+o),l=!0;for(let v=0;v<s.length;v++)if(!ye(s[v])){l=!1;break}if(!l)continue;if(Ot.has(s)&&r===r){let v=r+o,f=v<e.length?e[v]:"";if(f===""||b(f)||!ye(f))return null}let p=this.lookupKeyword(s);if(p)return c(s,"keyword",m(r,r+o),p.normalized);let y=this.tryMorphKeywordMatch(s,r,r+o);if(y)return y}let n=r,a="";for(;n<e.length;){let o=e[n],s=n+1<e.length?e[n+1]:"";if(a.length===0&&rt.has(o))return null;if(rt.has(o)&&a.length>0&&(s===""||b(s)||!ye(s)||rt.has(s)))break;let l=!1;for(let p of Nn)if(e.slice(n,n+p.length)===p&&a.length>0){let y=n+p.length,v=y<e.length?e[y]:"";if(v===""||b(v)||!ye(v)){l=!0;break}}if(l)break;if(ye(o))a+=o,n++;else break}if(!a||Ot.has(a))return null;let i=this.lookupKeyword(a);if(i)return c(a,"keyword",m(r,n),i.normalized);let u=this.tryMorphKeywordMatch(a,r,n);return u||c(a,"identifier",m(r,n))}extractAsciiWord(e,r){let t=r,n="";for(;t<e.length&&x(e[t]);)n+=e[t++];return n?c(n,"identifier",m(r,t)):null}extractKoreanNumber(e,r){return this.tryNumberWithTimeUnits(e,r,fs,{allowSign:!1,skipWhitespace:!1})}trySplitTemporalSuffix(e){let r=e.value;for(let t of ds)if(r.endsWith(t)&&r.length>t.length){let n=r.slice(0,-t.length),a=n.toLowerCase(),i=this.lookupKeyword(a);if(!i)continue;let u=e.position.start+n.length,o=c(n,"keyword",m(e.position.start,u),i.normalized),s=c(t,"keyword",m(u,e.position.end),"when");return{stemToken:o,suffixToken:s}}return null}},qt=new Wn}}),vs={};A(vs,{malayProfile:()=>nt});var nt,Vt=g({"src/generators/profiles/ms.ts"(){"use strict";nt={code:"ms",name:"Malay",nativeName:"Melayu",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"saya",it:"ia",you:"kamu",result:"hasil",event:"peristiwa",target:"sasaran",body:"badan"},possessive:{marker:"",markerPosition:"after-object",keywords:{saya:"me",aku:"me",awak:"you",kamu:"you",anda:"you",dia:"it",ia:"it","-ku":"me","-mu":"you","-nya":"it"}},roleMarkers:{destination:{primary:"ke",alternatives:["pada"],position:"before"},source:{primary:"dari",position:"before"},patient:{primary:"",position:"before"},style:{primary:"dengan",position:"before"}},keywords:{toggle:{primary:"togol",alternatives:["tukar"],normalized:"toggle"},add:{primary:"tambah",normalized:"add"},remove:{primary:"buang",alternatives:["padam"],normalized:"remove"},put:{primary:"letak",alternatives:["letakkan"],normalized:"put"},append:{primary:"tambah_hujung",normalized:"append"},prepend:{primary:"tambah_mula",normalized:"prepend"},take:{primary:"ambil",normalized:"take"},make:{primary:"buat",alternatives:["cipta"],normalized:"make"},clone:{primary:"klon",alternatives:["salin"],normalized:"clone"},swap:{primary:"tukar_tempat",normalized:"swap"},morph:{primary:"ubah_bentuk",normalized:"morph"},set:{primary:"tetapkan",alternatives:["setkan"],normalized:"set"},get:{primary:"dapatkan",alternatives:["ambil"],normalized:"get"},increment:{primary:"tambah_satu",normalized:"increment"},decrement:{primary:"kurang_satu",normalized:"decrement"},log:{primary:"catat",alternatives:["log"],normalized:"log"},show:{primary:"tunjuk",alternatives:["papar"],normalized:"show"},hide:{primary:"sembunyi",alternatives:["sorok"],normalized:"hide"},transition:{primary:"peralihan",normalized:"transition"},on:{primary:"apabila",alternatives:["bila","ketika"],normalized:"on"},trigger:{primary:"cetuskan",normalized:"trigger"},send:{primary:"hantar",normalized:"send"},focus:{primary:"fokus",normalized:"focus"},blur:{primary:"kabur",normalized:"blur"},go:{primary:"pergi",alternatives:["pindah"],normalized:"go"},wait:{primary:"tunggu",normalized:"wait"},fetch:{primary:"ambil_dari",alternatives:["muat"],normalized:"fetch"},settle:{primary:"selesai",normalized:"settle"},if:{primary:"jika",alternatives:["kalau"],normalized:"if"},when:{primary:"apabila",normalized:"when"},where:{primary:"di_mana",normalized:"where"},else:{primary:"kalau_tidak",alternatives:["jika_tidak"],normalized:"else"},repeat:{primary:"ulang",normalized:"repeat"},for:{primary:"untuk",normalized:"for"},while:{primary:"selagi",alternatives:["semasa"],normalized:"while"},continue:{primary:"teruskan",normalized:"continue"},halt:{primary:"henti",alternatives:["berhenti"],normalized:"halt"},throw:{primary:"lempar",normalized:"throw"},call:{primary:"panggil",normalized:"call"},return:{primary:"pulang",alternatives:["kembali"],normalized:"return"},then:{primary:"kemudian",alternatives:["lepas_itu"],normalized:"then"},and:{primary:"dan",normalized:"and"},end:{primary:"tamat",alternatives:["habis"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"tak_segerak",normalized:"async"},tell:{primary:"beritahu",normalized:"tell"},default:{primary:"lalai",normalized:"default"},init:{primary:"mula",alternatives:["mulakan"],normalized:"init"},behavior:{primary:"kelakuan",normalized:"behavior"},install:{primary:"pasang",normalized:"install"},measure:{primary:"ukur",normalized:"measure"},beep:{primary:"bunyi",normalized:"beep"},break:{primary:"henti",normalized:"break"},copy:{primary:"salin",normalized:"copy"},exit:{primary:"keluar",normalized:"exit"},pick:{primary:"pilih",normalized:"pick"},render:{primary:"papar",normalized:"render"},into:{primary:"ke_dalam",normalized:"into"},before:{primary:"sebelum",normalized:"before"},after:{primary:"selepas",alternatives:["lepas"],normalized:"after"},until:{primary:"sehingga",alternatives:["sampai"],normalized:"until"},event:{primary:"peristiwa",normalized:"event"},from:{primary:"dari",normalized:"from"}},eventHandler:{keyword:{primary:"apabila",alternatives:["bila","ketika"],normalized:"on"},sourceMarker:{primary:"dari",position:"before"}}}}}),hs={};A(hs,{MalayTokenizer:()=>On,malayTokenizer:()=>qn});var gs,On,qn,Es=g({"src/tokenizers/ms.ts"(){"use strict";W(),Vt(),gs=[{native:"benar",normalized:"true"},{native:"salah",normalized:"false"},{native:"kosong",normalized:"null"},{native:"tak_tentu",normalized:"undefined"},{native:"pertama",normalized:"first"},{native:"terakhir",normalized:"last"},{native:"seterusnya",normalized:"next"},{native:"sebelumnya",normalized:"previous"},{native:"terdekat",normalized:"closest"},{native:"induk",normalized:"parent"},{native:"klik",normalized:"click"},{native:"berubah",normalized:"change"},{native:"ubah",normalized:"change"},{native:"hantar",normalized:"submit"},{native:"input",normalized:"input"},{native:"masuk",normalized:"input"},{native:"muat",normalized:"load"},{native:"tatal",normalized:"scroll"},{native:"hover",normalized:"hover"}],On=class extends I{constructor(){super(),this.language="ms",this.direction="ltr",this.initializeKeywordsFromProfile(nt,gs)}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let n=this.tryEventModifier(e,t);if(n){r.push(n),t=n.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let a=this.trySelector(e,t);if(a){r.push(a),t=a.position.end;continue}}if(R(e[t])){let n=this.tryString(e,t);if(n){r.push(n),t=n.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let n=this.tryNumber(e,t);if(n){r.push(n),t=n.position.end;continue}}if(N(e,t)){let n=this.tryUrl(e,t);if(n){r.push(n),t=n.position.end;continue}}if(e[t]===":"){let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}}if("()[]{}:,;".includes(e[t])){r.push(c(e[t],"operator",m(t,t+1))),t++;continue}if(x(e[t])){let n=t,a=this.tryProfileKeyword(e,t);if(a){r.push(a),t=a.position.end;continue}let i="";for(;t<e.length&&x(e[t]);)i+=e[t],t++;i&&r.push(c(i,"identifier",m(n,t)));continue}t++}return new P(r,"ms")}classifyToken(e){return this.isKeyword(e)?"keyword":e.startsWith(".")||e.startsWith("#")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith(":")?"identifier":e.startsWith('"')||e.startsWith("'")||/^-?\d/.test(e)?"literal":"identifier"}},qn=new On}}),zs={};A(zs,{polishProfile:()=>it});var it,Kt=g({"src/generators/profiles/polish.ts"(){"use strict";it={code:"pl",name:"Polish",nativeName:"Polski",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"start",subjectDrop:!0,suffixes:["a\u0107","e\u0107","i\u0107","y\u0107","\u0105\u0107","owa\u0107"]},references:{me:"ja",it:"to",you:"ty",result:"wynik",event:"zdarzenie",target:"cel",body:"body"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"m\xF3j",it:"jego",you:"tw\xF3j"},keywords:{m\u00F3j:"me",moja:"me",moje:"me",tw\u00F3j:"you",twoja:"you",twoje:"you",jego:"it",jej:"it"}},roleMarkers:{destination:{primary:"do",alternatives:["w","na"],position:"before"},source:{primary:"z",alternatives:["od","ze"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"z",alternatives:["ze"],position:"before"}},keywords:{toggle:{primary:"prze\u0142\u0105cz",alternatives:["przelacz"],normalized:"toggle",form:"imperative"},add:{primary:"dodaj",normalized:"add",form:"imperative"},remove:{primary:"usu\u0144",alternatives:["usun","wyczy\u015B\u0107","wyczysc"],normalized:"remove",form:"imperative"},put:{primary:"umie\u015B\u0107",alternatives:["umiesc","wstaw"],normalized:"put",form:"imperative"},append:{primary:"do\u0142\u0105cz",alternatives:["dolacz"],normalized:"append",form:"imperative"},prepend:{primary:"poprzed\u017A",alternatives:["poprzedz"],normalized:"prepend",form:"imperative"},take:{primary:"we\u017A",alternatives:["wez"],normalized:"take",form:"imperative"},make:{primary:"utw\xF3rz",alternatives:["utworz","stw\xF3rz","stworz"],normalized:"make",form:"imperative"},clone:{primary:"sklonuj",alternatives:["kopiuj"],normalized:"clone",form:"imperative"},swap:{primary:"zamie\u0144",alternatives:["zamien"],normalized:"swap",form:"imperative"},morph:{primary:"przekszta\u0142\u0107",alternatives:["przeksztalc"],normalized:"morph",form:"imperative"},set:{primary:"ustaw",alternatives:["okre\u015Bl","okresl"],normalized:"set",form:"imperative"},get:{primary:"pobierz",alternatives:["we\u017A","wez"],normalized:"get",form:"imperative"},increment:{primary:"zwi\u0119ksz",alternatives:["zwieksz"],normalized:"increment",form:"imperative"},decrement:{primary:"zmniejsz",normalized:"decrement",form:"imperative"},log:{primary:"loguj",alternatives:["wypisz"],normalized:"log",form:"imperative"},show:{primary:"poka\u017C",alternatives:["pokaz","wy\u015Bwietl","wyswietl"],normalized:"show",form:"imperative"},hide:{primary:"ukryj",alternatives:["schowaj"],normalized:"hide",form:"imperative"},transition:{primary:"animuj",alternatives:["przej\u015Bcie","przejscie"],normalized:"transition",form:"imperative"},on:{primary:"gdy",alternatives:["kiedy","przy","na"],normalized:"on"},trigger:{primary:"wywo\u0142aj",alternatives:["wywolaj","wyzw\xF3l","wyzwol"],normalized:"trigger",form:"imperative"},send:{primary:"wy\u015Blij",alternatives:["wyslij"],normalized:"send",form:"imperative"},focus:{primary:"skup",alternatives:["skupienie"],normalized:"focus",form:"imperative"},blur:{primary:"rozmyj",alternatives:["odskup"],normalized:"blur",form:"imperative"},go:{primary:"id\u017A",alternatives:["idz","przejd\u017A","przejdz","nawiguj"],normalized:"go",form:"imperative"},wait:{primary:"czekaj",alternatives:["poczekaj"],normalized:"wait",form:"imperative"},fetch:{primary:"pobierz",alternatives:["za\u0142aduj","zaladuj"],normalized:"fetch",form:"imperative"},settle:{primary:"ustabilizuj",normalized:"settle",form:"imperative"},if:{primary:"je\u015Bli",alternatives:["jesli","je\u017Celi","jezeli"],normalized:"if"},when:{primary:"kiedy",normalized:"when"},where:{primary:"gdzie",normalized:"where"},else:{primary:"inaczej",alternatives:["wpp"],normalized:"else"},repeat:{primary:"powt\xF3rz",alternatives:["powtorz"],normalized:"repeat",form:"imperative"},for:{primary:"dla",alternatives:["ka\u017Cdy","kazdy"],normalized:"for"},while:{primary:"dop\xF3ki",alternatives:["dopoki","podczas"],normalized:"while"},continue:{primary:"kontynuuj",alternatives:["dalej"],normalized:"continue",form:"imperative"},halt:{primary:"zatrzymaj",alternatives:["przerwij","stop"],normalized:"halt",form:"imperative"},throw:{primary:"rzu\u0107",alternatives:["rzuc"],normalized:"throw",form:"imperative"},call:{primary:"wywo\u0142aj",alternatives:["wywolaj"],normalized:"call",form:"imperative"},return:{primary:"zwr\xF3\u0107",alternatives:["zwroc"],normalized:"return",form:"imperative"},then:{primary:"wtedy",alternatives:["potem","nast\u0119pnie","nastepnie"],normalized:"then"},and:{primary:"i",alternatives:["oraz"],normalized:"and"},end:{primary:"koniec",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"async",alternatives:["asynchronicznie"],normalized:"async"},tell:{primary:"powiedz",normalized:"tell",form:"imperative"},default:{primary:"domy\u015Blnie",alternatives:["domyslnie"],normalized:"default"},init:{primary:"inicjuj",normalized:"init",form:"imperative"},behavior:{primary:"zachowanie",normalized:"behavior"},install:{primary:"zainstaluj",normalized:"install",form:"imperative"},measure:{primary:"zmierz",normalized:"measure",form:"imperative"},beep:{primary:"sygna\u0142",normalized:"beep"},break:{primary:"przerwij",normalized:"break"},copy:{primary:"kopiuj",normalized:"copy"},exit:{primary:"wyjd\u017A",normalized:"exit"},pick:{primary:"wybierz",normalized:"pick"},render:{primary:"renderuj",normalized:"render"},into:{primary:"do",alternatives:["w"],normalized:"into"},before:{primary:"przed",normalized:"before"},after:{primary:"po",normalized:"after"},click:{primary:"klikni\u0119ciu",alternatives:["klikniecie","klik"],normalized:"click"},hover:{primary:"najechaniu",alternatives:["hover"],normalized:"hover"},submit:{primary:"wys\u0142aniu",alternatives:["wyslaniu","submit"],normalized:"submit"},input:{primary:"wprowadzeniu",alternatives:["input"],normalized:"input"},change:{primary:"zmianie",alternatives:["zmiana"],normalized:"change"},until:{primary:"a\u017C",alternatives:["az","do"],normalized:"until"},event:{primary:"zdarzenie",normalized:"event"},from:{primary:"z",alternatives:["od","ze"],normalized:"from"}},eventHandler:{keyword:{primary:"gdy",alternatives:["kiedy","przy","na"],normalized:"on"},sourceMarker:{primary:"na",alternatives:["w","przy"],position:"before"},conditionalKeyword:{primary:"kiedy",alternatives:["gdy","je\u015Bli"]},eventMarker:{primary:"przy",alternatives:["na"],position:"before"},temporalMarkers:["kiedy","gdy","przy"]}}}}),Vn,Kn,um,om=g({"src/tokenizers/morphology/polish-normalizer.ts"(){"use strict";H(),Vn=new Map([["prze\u0142\u0105cz","prze\u0142\u0105cza\u0107"],["przelacz","przelaczac"],["dodaj","dodawa\u0107"],["usu\u0144","usuwa\u0107"],["usun","usuwac"],["umie\u015B\u0107","umieszcza\u0107"],["umiesc","umieszczac"],["wstaw","wstawia\u0107"],["ustaw","ustawia\u0107"],["pobierz","pobiera\u0107"],["we\u017A","bra\u0107"],["wez","brac"],["zwi\u0119ksz","zwi\u0119ksza\u0107"],["zwieksz","zwiekszac"],["zmniejsz","zmniejsza\u0107"],["poka\u017C","pokazywa\u0107"],["pokaz","pokazywac"],["ukryj","ukrywa\u0107"],["schowaj","schowywa\u0107"],["czekaj","czeka\u0107"],["poczekaj","poczeka\u0107"],["id\u017A","i\u015B\u0107"],["idz","isc"],["przejd\u017A","przej\u015B\u0107"],["przejdz","przejsc"],["wywo\u0142aj","wywo\u0142ywa\u0107"],["wywolaj","wywolywac"],["wy\u015Blij","wysy\u0142a\u0107"],["wyslij","wysylac"],["loguj","logowa\u0107"],["wypisz","wypisywa\u0107"],["sklonuj","sklonowa\u0107"],["kopiuj","kopiowa\u0107"],["zamie\u0144","zamienia\u0107"],["zamien","zamieniac"],["utw\xF3rz","tworzy\u0107"],["utworz","tworzyc"],["stw\xF3rz","stwarza\u0107"],["stworz","stwarzac"],["skup","skupia\u0107"],["rozmyj","rozmywa\u0107"],["nawiguj","nawigowa\u0107"],["za\u0142aduj","\u0142adowa\u0107"],["zaladuj","ladowac"],["powt\xF3rz","powtarza\u0107"],["powtorz","powtarzac"],["kontynuuj","kontynuowa\u0107"],["zatrzymaj","zatrzymywa\u0107"],["przerwij","przerywa\u0107"],["rzu\u0107","rzuca\u0107"],["rzuc","rzucac"],["zwr\xF3\u0107","zwraca\u0107"],["zwroc","zwracac"],["inicjuj","inicjowa\u0107"],["zainstaluj","instalowa\u0107"],["zmierz","mierzy\u0107"]]),Kn=class{constructor(){this.language="pl"}isNormalizable(e){return e.length<3?!1:/[a-zA-ZąęćńóśźżłĄĘĆŃÓŚŹŻŁ]/.test(e)}normalize(e){let r=e.toLowerCase();if(this.isInfinitive(r))return j(r);let t=this.tryImperativeNormalization(r);if(t)return t;let n=this.tryPastTenseNormalization(r);if(n)return n;let a=this.tryPresentTenseNormalization(r);return a||j(r)}isInfinitive(e){return["a\u0107","e\u0107","i\u0107","y\u0107","\u0105\u0107","owa\u0107","iwa\u0107","ywa\u0107"].some(t=>e.endsWith(t))}tryImperativeNormalization(e){return Vn.has(e)?z(Vn.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):e.endsWith("aj")?z(e.slice(0,-2)+"a\u0107",.8,{removedSuffixes:["aj"],conjugationType:"imperative"}):e.endsWith("uj")?z(e.slice(0,-2)+"owa\u0107",.8,{removedSuffixes:["uj"],conjugationType:"imperative"}):e.endsWith("ij")?z(e.slice(0,-2)+"i\u0107",.75,{removedSuffixes:["ij"],conjugationType:"imperative"}):null}tryPresentTenseNormalization(e){return e.endsWith("uj\u0119")||e.endsWith("uje")?z(e.slice(0,-3)+"owa\u0107",.85,{removedSuffixes:["uj\u0119"],conjugationType:"present"}):e.endsWith("am")&&e.length>3?z(e.slice(0,-2)+"a\u0107",.8,{removedSuffixes:["am"],conjugationType:"present"}):e.endsWith("em")&&e.length>3?z(e.slice(0,-2)+"e\u0107",.75,{removedSuffixes:["em"],conjugationType:"present"}):e.endsWith("\u0119")&&e.length>2?z(e.slice(0,-1)+"a\u0107",.7,{removedSuffixes:["\u0119"],conjugationType:"present"}):null}tryPastTenseNormalization(e){if(e.endsWith("a\u0142em")||e.endsWith("a\u0142am"))return z(e.slice(0,-4)+"a\u0107",.85,{removedSuffixes:[e.slice(-4)],conjugationType:"past"});if(e.endsWith("a\u0142")||e.endsWith("a\u0142a")){let r=e.endsWith("a\u0142a")?3:2;return z(e.slice(0,-r)+"a\u0107",.8,{removedSuffixes:[e.slice(-r)],conjugationType:"past"})}if(e.endsWith("i\u0142em")||e.endsWith("i\u0142am")||e.endsWith("ilem")||e.endsWith("ilam"))return z(e.slice(0,-4)+"i\u0107",.85,{removedSuffixes:[e.slice(-4)],conjugationType:"past"});if(e.endsWith("i\u0142")||e.endsWith("i\u0142a")||e.endsWith("il")||e.endsWith("ila")){let r=e.endsWith("i\u0142a")||e.endsWith("ila")?3:2;return z(e.slice(0,-r)+"i\u0107",.8,{removedSuffixes:[e.slice(-r)],conjugationType:"past"})}return null}},um=new Kn}}),ks={};A(ks,{PolishTokenizer:()=>Hn,polishTokenizer:()=>$n});var Cs,As,Un,ws,Hn,$n,bs=g({"src/tokenizers/polish.ts"(){"use strict";W(),Kt(),om(),{isLetter:Cs,isIdentifierChar:As}=K(/[a-zA-ZąęćńóśźżłĄĘĆŃÓŚŹŻŁ]/),Un=new Set(["do","od","z","ze","w","we","na","po","pod","przed","za","nad","mi\u0119dzy","miedzy","przez","dla","bez","o","przy","u","wed\u0142ug","wedlug","mimo","w\u015Br\xF3d","wsrod","obok","poza","wok\xF3\u0142","wokol","przeciw","ku"]),ws=[{native:"prawda",normalized:"true"},{native:"fa\u0142sz",normalized:"false"},{native:"falsz",normalized:"false"},{native:"null",normalized:"null"},{native:"nieokre\u015Blony",normalized:"undefined"},{native:"nieokreslony",normalized:"undefined"},{native:"pierwszy",normalized:"first"},{native:"pierwsza",normalized:"first"},{native:"pierwsze",normalized:"first"},{native:"ostatni",normalized:"last"},{native:"ostatnia",normalized:"last"},{native:"ostatnie",normalized:"last"},{native:"nast\u0119pny",normalized:"next"},{native:"nastepny",normalized:"next"},{native:"poprzedni",normalized:"previous"},{native:"najbli\u017Cszy",normalized:"closest"},{native:"najblizszy",normalized:"closest"},{native:"rodzic",normalized:"parent"},{native:"klikni\u0119cie",normalized:"click"},{native:"klikniecie",normalized:"click"},{native:"klik",normalized:"click"},{native:"click",normalized:"click"},{native:"zmiana",normalized:"change"},{native:"wys\u0142anie",normalized:"submit"},{native:"wyslanie",normalized:"submit"},{native:"naci\u015Bni\u0119cie",normalized:"keydown"},{native:"nacisniecie",normalized:"keydown"},{native:"klawisz",normalized:"keydown"},{native:"najechanie",normalized:"mouseover"},{native:"zjechanie",normalized:"mouseout"},{native:"rozmycie",normalized:"blur"},{native:"za\u0142adowanie",normalized:"load"},{native:"zaladowanie",normalized:"load"},{native:"przewini\u0119cie",normalized:"scroll"},{native:"przewiniecie",normalized:"scroll"},{native:"input",normalized:"input"},{native:"m\xF3j",normalized:"my"},{native:"moj",normalized:"my"},{native:"sekunda",normalized:"s"},{native:"sekundy",normalized:"s"},{native:"sekund",normalized:"s"},{native:"milisekunda",normalized:"ms"},{native:"milisekundy",normalized:"ms"},{native:"milisekund",normalized:"ms"},{native:"minuta",normalized:"m"},{native:"minuty",normalized:"m"},{native:"minut",normalized:"m"},{native:"godzina",normalized:"h"},{native:"godziny",normalized:"h"},{native:"godzin",normalized:"h"},{native:"po\u0142\xF3\u017C",normalized:"put"},{native:"poloz",normalized:"put"},{native:"lub",normalized:"or"},{native:"nie",normalized:"not"},{native:"jest",normalized:"is"},{native:"istnieje",normalized:"exists"},{native:"pusty",normalized:"empty"},{native:"puste",normalized:"empty"}],Hn=class extends I{constructor(){super(),this.language="pl",this.direction="ltr",this.initializeKeywordsFromProfile(it,ws),this.normalizer=new Kn}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let i=this.extractNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}if(Cs(e[t])){let i=this.extractWord(e,t);if(i){r.push(i),t=i.position.end;continue}}let a=this.tryOperator(e,t);if(a){r.push(a),t=a.position.end;continue}t++}return new P(r,"pl")}classifyToken(e){let r=e.toLowerCase();return Un.has(r)?"particle":this.isKeyword(r)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}extractWord(e,r){let t=r,n="";for(;t<e.length&&As(e[t]);)n+=e[t++];if(!n)return null;let a=n.toLowerCase();if(Un.has(a))return c(n,"particle",m(r,t));let i=this.lookupKeyword(a);return i?c(n,"keyword",m(r,t),i.normalized):c(n,"identifier",m(r,t))}extractNumber(e,r){let t=r,n="";for((e[t]==="-"||e[t]==="+")&&(n+=e[t++]);t<e.length&&k(e[t]);)n+=e[t++];if(t<e.length&&e[t]===".")for(n+=e[t++];t<e.length&&k(e[t]);)n+=e[t++];let a=t;for(;a<e.length&&b(e[a]);)a++;let i=e.slice(a).toLowerCase();return i.startsWith("milisekund")||i.startsWith("milisekunda")?(n+="ms",t=a+(i.startsWith("milisekundy")||i.startsWith("milisekunda")?11:10)):i.startsWith("sekund")||i.startsWith("sekunda")?(n+="s",t=a+(i.startsWith("sekundy")||i.startsWith("sekunda")?7:6)):i.startsWith("minut")||i.startsWith("minuta")?(n+="m",t=a+(i.startsWith("minuty")||i.startsWith("minuta")?6:5)):i.startsWith("godzin")||i.startsWith("godzina")?(n+="h",t=a+(i.startsWith("godziny")||i.startsWith("godzina")?7:6)):i.startsWith("ms")?(n+="ms",t=a+2):i.startsWith("s")&&!i.startsWith("se")&&(n+="s",t=a+1),!n||n==="-"||n==="+"?null:c(n,"literal",m(r,t))}},$n=new Hn}}),xs={};A(xs,{portugueseProfile:()=>Te});var Te,at=g({"src/generators/profiles/portuguese.ts"(){"use strict";Te={code:"pt",name:"Portuguese",nativeName:"Portugu\xEAs",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"eu",it:"ele",you:"voc\xEA",result:"resultado",event:"evento",target:"alvo",body:"corpo"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"meu",it:"seu",you:"teu"},keywords:{meu:"me",minha:"me",teu:"you",tua:"you",seu:"it",sua:"it"}},roleMarkers:{destination:{primary:"em",alternatives:["para","a"],position:"before"},source:{primary:"de",alternatives:["desde"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"com",position:"before"}},keywords:{toggle:{primary:"alternar",alternatives:["trocar"],normalized:"toggle"},add:{primary:"adicionar",alternatives:["acrescentar"],normalized:"add"},remove:{primary:"remover",alternatives:["eliminar","apagar"],normalized:"remove"},put:{primary:"colocar",alternatives:["p\xF4r","por"],normalized:"put"},append:{primary:"anexar",normalized:"append"},prepend:{primary:"preceder",normalized:"prepend"},take:{primary:"pegar",normalized:"take"},make:{primary:"fazer",alternatives:["criar"],normalized:"make"},clone:{primary:"clonar",alternatives:["copiar"],normalized:"clone"},swap:{primary:"trocar",alternatives:["substituir"],normalized:"swap"},morph:{primary:"transformar",alternatives:["converter"],normalized:"morph"},set:{primary:"definir",alternatives:["configurar"],normalized:"set"},get:{primary:"obter",normalized:"get"},increment:{primary:"incrementar",alternatives:["aumentar"],normalized:"increment"},decrement:{primary:"decrementar",alternatives:["diminuir"],normalized:"decrement"},log:{primary:"registrar",alternatives:["imprimir"],normalized:"log"},show:{primary:"mostrar",alternatives:["exibir"],normalized:"show"},hide:{primary:"ocultar",alternatives:["esconder"],normalized:"hide"},transition:{primary:"transi\xE7\xE3o",alternatives:["animar"],normalized:"transition"},on:{primary:"em",alternatives:["quando","ao"],normalized:"on"},trigger:{primary:"disparar",alternatives:["ativar"],normalized:"trigger"},send:{primary:"enviar",normalized:"send"},focus:{primary:"focar",normalized:"focus"},blur:{primary:"desfocar",normalized:"blur"},go:{primary:"ir",alternatives:["navegar"],normalized:"go"},wait:{primary:"esperar",alternatives:["aguardar"],normalized:"wait"},fetch:{primary:"buscar",normalized:"fetch"},settle:{primary:"estabilizar",normalized:"settle"},if:{primary:"se",normalized:"if"},when:{primary:"quando",normalized:"when"},where:{primary:"onde",normalized:"where"},else:{primary:"sen\xE3o",normalized:"else"},repeat:{primary:"repetir",normalized:"repeat"},for:{primary:"para",normalized:"for"},while:{primary:"enquanto",normalized:"while"},continue:{primary:"continuar",normalized:"continue"},halt:{primary:"parar",normalized:"halt"},throw:{primary:"lan\xE7ar",normalized:"throw"},call:{primary:"chamar",normalized:"call"},return:{primary:"retornar",alternatives:["devolver"],normalized:"return"},then:{primary:"ent\xE3o",alternatives:["depois","logo"],normalized:"then"},and:{primary:"e",alternatives:["tamb\xE9m","al\xE9m disso"],normalized:"and"},end:{primary:"fim",alternatives:["final","t\xE9rmino"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"ass\xEDncrono",normalized:"async"},tell:{primary:"dizer",normalized:"tell"},default:{primary:"padr\xE3o",normalized:"default"},init:{primary:"iniciar",alternatives:["inicializar"],normalized:"init"},behavior:{primary:"comportamento",normalized:"behavior"},install:{primary:"instalar",normalized:"install"},measure:{primary:"medir",normalized:"measure"},beep:{primary:"apitar",normalized:"beep"},break:{primary:"parar",normalized:"break"},copy:{primary:"copiar",normalized:"copy"},exit:{primary:"sair",normalized:"exit"},pick:{primary:"escolher",normalized:"pick"},render:{primary:"renderizar",normalized:"render"},into:{primary:"em",alternatives:["dentro de"],normalized:"into"},before:{primary:"antes",normalized:"before"},after:{primary:"depois",normalized:"after"},click:{primary:"clique",alternatives:["clicar"],normalized:"click"},hover:{primary:"sobrevoar",alternatives:["passar"],normalized:"hover"},submit:{primary:"envio",alternatives:["submeter"],normalized:"submit"},input:{primary:"entrada",alternatives:["inser\xE7\xE3o"],normalized:"input"},change:{primary:"altera\xE7\xE3o",alternatives:["mudan\xE7a"],normalized:"change"},until:{primary:"at\xE9",normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"de",alternatives:["desde"],normalized:"from"}},eventHandler:{keyword:{primary:"em",alternatives:["ao","quando"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["desde"],position:"before"},conditionalKeyword:{primary:"quando",alternatives:["se"]},eventMarker:{primary:"ao",alternatives:["no"],position:"before"},temporalMarkers:["quando","ao"]}}}});function sm(e){return/[áàâãéêíóôõúüçÁÀÂÃÉÊÍÓÔÕÚÜÇ]/.test(e)}function lm(e){let r=e.toLowerCase();if(r.endsWith("ar")||r.endsWith("er")||r.endsWith("ir")||r.endsWith("ando")||r.endsWith("endo")||r.endsWith("indo")||r.endsWith("ado")||r.endsWith("ido")||r.endsWith("ar-se")||r.endsWith("er-se")||r.endsWith("ir-se"))return!0;for(let t of e)if(sm(t))return!0;return!1}var Gn,Ds,Ts,Bs,Fs,Xn,pm,mm=g({"src/tokenizers/morphology/portuguese-normalizer.ts"(){"use strict";H(),Gn=["-se","-me","-te","-nos","-vos"],Ds=[{ending:"ando",stem:"ar",confidence:.88,type:"gerund"},{ending:"ado",stem:"ar",confidence:.88,type:"participle"},{ending:"ada",stem:"ar",confidence:.88,type:"participle"},{ending:"ados",stem:"ar",confidence:.88,type:"participle"},{ending:"adas",stem:"ar",confidence:.88,type:"participle"},{ending:"o",stem:"ar",confidence:.75,type:"present"},{ending:"as",stem:"ar",confidence:.82,type:"present"},{ending:"a",stem:"ar",confidence:.75,type:"present"},{ending:"amos",stem:"ar",confidence:.85,type:"present"},{ending:"ais",stem:"ar",confidence:.85,type:"present"},{ending:"am",stem:"ar",confidence:.8,type:"present"},{ending:"ei",stem:"ar",confidence:.88,type:"past"},{ending:"aste",stem:"ar",confidence:.88,type:"past"},{ending:"ou",stem:"ar",confidence:.88,type:"past"},{ending:"\xE1mos",stem:"ar",confidence:.88,type:"past"},{ending:"amos",stem:"ar",confidence:.85,type:"past"},{ending:"astes",stem:"ar",confidence:.88,type:"past"},{ending:"aram",stem:"ar",confidence:.88,type:"past"},{ending:"ava",stem:"ar",confidence:.88,type:"past"},{ending:"avas",stem:"ar",confidence:.88,type:"past"},{ending:"\xE1vamos",stem:"ar",confidence:.88,type:"past"},{ending:"avamos",stem:"ar",confidence:.85,type:"past"},{ending:"\xE1veis",stem:"ar",confidence:.88,type:"past"},{ending:"aveis",stem:"ar",confidence:.85,type:"past"},{ending:"avam",stem:"ar",confidence:.88,type:"past"},{ending:"e",stem:"ar",confidence:.72,type:"subjunctive"},{ending:"es",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"emos",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"eis",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"em",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"a",stem:"ar",confidence:.75,type:"imperative"},{ending:"ai",stem:"ar",confidence:.85,type:"imperative"},{ending:"ar",stem:"ar",confidence:.92,type:"dictionary"}],Ts=[{ending:"endo",stem:"er",confidence:.88,type:"gerund"},{ending:"ido",stem:"er",confidence:.85,type:"participle"},{ending:"ida",stem:"er",confidence:.85,type:"participle"},{ending:"idos",stem:"er",confidence:.85,type:"participle"},{ending:"idas",stem:"er",confidence:.85,type:"participle"},{ending:"o",stem:"er",confidence:.72,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"e",stem:"er",confidence:.72,type:"present"},{ending:"emos",stem:"er",confidence:.85,type:"present"},{ending:"eis",stem:"er",confidence:.82,type:"present"},{ending:"em",stem:"er",confidence:.78,type:"present"},{ending:"i",stem:"er",confidence:.85,type:"past"},{ending:"este",stem:"er",confidence:.88,type:"past"},{ending:"eu",stem:"er",confidence:.88,type:"past"},{ending:"emos",stem:"er",confidence:.85,type:"past"},{ending:"estes",stem:"er",confidence:.88,type:"past"},{ending:"eram",stem:"er",confidence:.88,type:"past"},{ending:"ia",stem:"er",confidence:.85,type:"past"},{ending:"ias",stem:"er",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"er",confidence:.88,type:"past"},{ending:"iamos",stem:"er",confidence:.85,type:"past"},{ending:"\xEDeis",stem:"er",confidence:.88,type:"past"},{ending:"ieis",stem:"er",confidence:.85,type:"past"},{ending:"iam",stem:"er",confidence:.85,type:"past"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],Bs=[{ending:"indo",stem:"ir",confidence:.88,type:"gerund"},{ending:"ido",stem:"ir",confidence:.85,type:"participle"},{ending:"ida",stem:"ir",confidence:.85,type:"participle"},{ending:"idos",stem:"ir",confidence:.85,type:"participle"},{ending:"idas",stem:"ir",confidence:.85,type:"participle"},{ending:"o",stem:"ir",confidence:.72,type:"present"},{ending:"es",stem:"ir",confidence:.78,type:"present"},{ending:"e",stem:"ir",confidence:.72,type:"present"},{ending:"imos",stem:"ir",confidence:.85,type:"present"},{ending:"is",stem:"ir",confidence:.82,type:"present"},{ending:"em",stem:"ir",confidence:.78,type:"present"},{ending:"i",stem:"ir",confidence:.85,type:"past"},{ending:"iste",stem:"ir",confidence:.88,type:"past"},{ending:"iu",stem:"ir",confidence:.88,type:"past"},{ending:"imos",stem:"ir",confidence:.85,type:"past"},{ending:"istes",stem:"ir",confidence:.88,type:"past"},{ending:"iram",stem:"ir",confidence:.88,type:"past"},{ending:"ia",stem:"ir",confidence:.85,type:"past"},{ending:"ias",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"ir",confidence:.88,type:"past"},{ending:"iamos",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDeis",stem:"ir",confidence:.88,type:"past"},{ending:"ieis",stem:"ir",confidence:.85,type:"past"},{ending:"iam",stem:"ir",confidence:.85,type:"past"},{ending:"ir",stem:"ir",confidence:.92,type:"dictionary"}],Fs=[...Ds,...Ts,...Bs].sort((e,r)=>r.ending.length-e.ending.length),Xn=class{constructor(){this.language="pt"}isNormalizable(e){return e.length<3?!1:lm(e)}normalize(e){let r=e.toLowerCase();if((r.endsWith("ar")||r.endsWith("er")||r.endsWith("ir"))&&!Gn.some(a=>r.endsWith(a)))return j(e);let t=this.tryReflexiveNormalization(r);if(t)return t;let n=this.tryConjugationNormalization(r);return n||j(e)}tryReflexiveNormalization(e){for(let r of Gn)if(e.endsWith(r)){let t=e.slice(0,-r.length);if(t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir"))return z(t,.88,{removedSuffixes:[r],conjugationType:"reflexive"});let n=this.tryConjugationNormalization(t);if(n&&n.stem!==t)return z(n.stem,n.confidence*.95,{removedSuffixes:[r,...n.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationNormalization(e){for(let r of Fs)if(e.endsWith(r.ending)){let t=e.slice(0,-r.ending.length);if(t.length<2)continue;let n=t+r.stem;return z(n,r.confidence,{removedSuffixes:[r.ending],conjugationType:r.type})}return null}},pm=new Xn}}),Ss={};A(Ss,{PortugueseTokenizer:()=>Zn,portugueseTokenizer:()=>Yn});var Ps,js,Qn,Ls,_s,Zn,Yn,Rs=g({"src/tokenizers/portuguese.ts"(){"use strict";W(),at(),mm(),{isLetter:Ps,isIdentifierChar:js}=K(/[a-zA-ZáàâãéêíóôõúüçÁÀÂÃÉÊÍÓÔÕÚÜÇ]/),Qn=new Set(["em","a","de","desde","at\xE9","ate","com","sem","por","para","sobre","entre","antes","depois","dentro","fora","ao","do","no","na"]),Ls=[{native:"verdadeiro",normalized:"true"},{native:"falso",normalized:"false"},{native:"nulo",normalized:"null"},{native:"indefinido",normalized:"undefined"},{native:"primeiro",normalized:"first"},{native:"primeira",normalized:"first"},{native:"\xFAltimo",normalized:"last"},{native:"ultima",normalized:"last"},{native:"pr\xF3ximo",normalized:"next"},{native:"proximo",normalized:"next"},{native:"anterior",normalized:"previous"},{native:"mais pr\xF3ximo",normalized:"closest"},{native:"mais proximo",normalized:"closest"},{native:"pai",normalized:"parent"},{native:"clique",normalized:"click"},{native:"click",normalized:"click"},{native:"entrada",normalized:"input"},{native:"mudan\xE7a",normalized:"change"},{native:"mudanca",normalized:"change"},{native:"envio",normalized:"submit"},{native:"tecla baixo",normalized:"keydown"},{native:"tecla cima",normalized:"keyup"},{native:"mouse sobre",normalized:"mouseover"},{native:"mouse fora",normalized:"mouseout"},{native:"foco",normalized:"focus"},{native:"desfoque",normalized:"blur"},{native:"carregar",normalized:"load"},{native:"rolagem",normalized:"scroll"},{native:"meu",normalized:"my"},{native:"minha",normalized:"my"},{native:"isso",normalized:"it"},{native:"segundo",normalized:"s"},{native:"segundos",normalized:"s"},{native:"milissegundo",normalized:"ms"},{native:"milissegundos",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minutos",normalized:"m"},{native:"hora",normalized:"h"},{native:"horas",normalized:"h"},{native:"senao",normalized:"else"},{native:"transicao",normalized:"transition"},{native:"ate",normalized:"until"},{native:"entao",normalized:"then"},{native:"lancar",normalized:"throw"},{native:"assincrono",normalized:"async"},{native:"padrao",normalized:"default"},{native:"at\xE9 que",normalized:"until"},{native:"dentro de",normalized:"into"}],_s=[{pattern:"milissegundos",suffix:"ms",length:13,caseInsensitive:!0},{pattern:"milissegundo",suffix:"ms",length:12,caseInsensitive:!0},{pattern:"segundos",suffix:"s",length:8,caseInsensitive:!0},{pattern:"segundo",suffix:"s",length:7,caseInsensitive:!0},{pattern:"minutos",suffix:"m",length:7,caseInsensitive:!0},{pattern:"minuto",suffix:"m",length:6,caseInsensitive:!0},{pattern:"horas",suffix:"h",length:5,caseInsensitive:!0},{pattern:"hora",suffix:"h",length:4,caseInsensitive:!0}],Zn=class extends I{constructor(){super(),this.language="pt",this.direction="ltr",this.initializeKeywordsFromProfile(Te,Ls),this.normalizer=new Xn}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let i=this.extractNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}if(Ps(e[t])){let i=this.extractWord(e,t);if(i){r.push(i),t=i.position.end;continue}}let a=this.tryOperator(e,t);if(a){r.push(a),t=a.position.end;continue}t++}return new P(r,"pt")}classifyToken(e){let r=e.toLowerCase();return Qn.has(r)?"particle":this.isKeyword(r)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}extractWord(e,r){let t=r,n="";for(;t<e.length&&js(e[t]);)n+=e[t++];if(!n)return null;let a=n.toLowerCase(),i=this.lookupKeyword(a);return i?c(n,"keyword",m(r,t),i.normalized):Qn.has(a)?c(n,"particle",m(r,t)):c(n,"identifier",m(r,t))}extractNumber(e,r){return this.tryNumberWithTimeUnits(e,r,_s,{allowSign:!0,skipWhitespace:!0})}},Yn=new Zn}}),Ns={};A(Ns,{quechuaProfile:()=>Be});var Be,ut=g({"src/generators/profiles/quechua.ts"(){"use strict";Be={code:"qu",name:"Quechua",nativeName:"Runasimi",direction:"ltr",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,verb:{position:"end",subjectDrop:!0},references:{me:"\xF1uqa",it:"pay",you:"qam",result:"rurasqa",event:"ruwakuq",target:"\xF1awpaqman",body:"ukhu"},possessive:{marker:"-pa",markerPosition:"after-object",keywords:{\u00F1uqapa:"me",\u00F1uqaypa:"me",qampa:"you",paypa:"it"}},roleMarkers:{patient:{primary:"ta",position:"after"},destination:{primary:"man",alternatives:["pa"],position:"after"},source:{primary:"manta",position:"after"},style:{primary:"wan",position:"after"},event:{primary:"pi",position:"after"}},keywords:{toggle:{primary:"t'ikray",alternatives:["tikray","kutichiy"],normalized:"toggle"},add:{primary:"yapay",alternatives:["yapaykuy"],normalized:"add"},remove:{primary:"qichuy",alternatives:["hurquy","anchuchiy"],normalized:"remove"},put:{primary:"churay",alternatives:["tiyachiy"],normalized:"put"},append:{primary:"qatichiy",alternatives:["qhipaman_yapay"],normalized:"append"},prepend:{primary:"\xF1awpachiy",normalized:"prepend"},take:{primary:"hapiy",normalized:"take"},make:{primary:"ruray",alternatives:["kamay"],normalized:"make"},clone:{primary:"kikinchay",alternatives:["qillqay"],normalized:"clone"},swap:{primary:"t'inkuy",alternatives:["rantikunakuy","rantin_tikray"],normalized:"swap"},morph:{primary:"tikray",alternatives:["kutichiy"],normalized:"morph"},set:{primary:"churay",alternatives:["kamaykuy"],normalized:"set"},get:{primary:"taripay",normalized:"get"},increment:{primary:"yapachiy",normalized:"increment"},decrement:{primary:"pisiyachiy",normalized:"decrement"},log:{primary:"qillqakuy",alternatives:["willakuy"],normalized:"log"},show:{primary:"rikuchiy",alternatives:["qawachiy"],normalized:"show"},hide:{primary:"pakay",alternatives:["pakakuy"],normalized:"hide"},transition:{primary:"tikray",alternatives:["kuyuchiy"],normalized:"transition"},on:{primary:"chaypim",alternatives:["kaypi"],normalized:"on"},trigger:{primary:"qallarichiy",alternatives:["kichay"],normalized:"trigger"},send:{primary:"kachay",alternatives:["apachiy"],normalized:"send"},focus:{primary:"qhawachiy",alternatives:["qhaway"],normalized:"focus"},blur:{primary:"paqariy",alternatives:["mana qhawachiy"],normalized:"blur"},go:{primary:"riy",alternatives:["puriy"],normalized:"go"},wait:{primary:"suyay",normalized:"wait"},fetch:{primary:"apamuy",alternatives:["taripakaramuy"],normalized:"fetch"},settle:{primary:"tiyakuy",normalized:"settle"},if:{primary:"sichus",normalized:"if"},when:{primary:"maykama",normalized:"when"},where:{primary:"maypi",normalized:"where"},else:{primary:"manachus",alternatives:["hukniraq"],normalized:"else"},repeat:{primary:"kutipay",alternatives:["muyu"],normalized:"repeat"},for:{primary:"sapankaq",normalized:"for"},while:{primary:"kaykamaqa",normalized:"while"},continue:{primary:"qatipay",normalized:"continue"},halt:{primary:"sayay",alternatives:["tukuy"],normalized:"halt"},throw:{primary:"chanqay",normalized:"throw"},call:{primary:"waqyay",alternatives:["qayay"],normalized:"call"},return:{primary:"kutichiy",alternatives:["kutimuy"],normalized:"return"},then:{primary:"chaymantataq",alternatives:["hinaspa","chaymanta"],normalized:"then"},and:{primary:"hinallataq",alternatives:["ima","chaymantawan"],normalized:"and"},end:{primary:"tukukuy",alternatives:["tukuy","puchukay"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"mana waqtalla",normalized:"async"},tell:{primary:"niy",alternatives:["willakuy"],normalized:"tell"},default:{primary:"qallariy",normalized:"default"},init:{primary:"qallarichiy",normalized:"init"},behavior:{primary:"ruwana",normalized:"behavior"},install:{primary:"churay",normalized:"install"},measure:{primary:"tupuy",normalized:"measure"},beep:{primary:"waqay",normalized:"beep"},break:{primary:"p'akiy",normalized:"break"},copy:{primary:"qillqay",normalized:"copy"},exit:{primary:"lluqsiy",normalized:"exit"},pick:{primary:"akllay",normalized:"pick"},render:{primary:"rikuchiy",normalized:"render"},into:{primary:"ukuman",normalized:"into"},before:{primary:"\xF1awpaq",normalized:"before"},after:{primary:"qhipa",normalized:"after"},until:{primary:"kama",alternatives:["-kama"],normalized:"until"},event:{primary:"ruwakuq",alternatives:["imayna"],normalized:"event"},from:{primary:"manta",alternatives:["-manta"],normalized:"from"},click:{primary:"\xF1itiy",normalized:"click"},load:{primary:"apakuy",normalized:"load"},submit:{primary:"kachay",normalized:"submit"},hover:{primary:"hawachiy",normalized:"hover"},input:{primary:"yaykuchiy",normalized:"input"},change:{primary:"tikray",normalized:"change"}},eventHandler:{keyword:{primary:"pi",alternatives:["kaqtin"]},sourceMarker:{primary:"manta",position:"after"},eventMarker:{primary:"pi",alternatives:["kaqtin","kaqpi"],position:"after"}}}}}),Is={};A(Is,{QuechuaTokenizer:()=>ei,quechuaTokenizer:()=>ti});var Jn,Ws,ot,Ms,ei,ti,Os=g({"src/tokenizers/quechua.ts"(){"use strict";W(),ut(),{isLetter:Jn,isIdentifierChar:Ws}=K(/[a-zA-ZñÑ']/),ot=new Set(["-ta","-man","-manta","-pi","-wan","-paq","-kama","-rayku","-hina","ta","man","manta","pi","wan","paq","kama","hina","pa"]),Ms=[{native:"ar\xED",normalized:"true"},{native:"ari",normalized:"true"},{native:"manan",normalized:"false"},{native:"mana",normalized:"false"},{native:"ch'usaq",normalized:"null"},{native:"chusaq",normalized:"null"},{native:"mana riqsisqa",normalized:"undefined"},{native:"\xF1awpaq",normalized:"first"},{native:"nawpaq",normalized:"first"},{native:"qhipa",normalized:"last"},{native:"hamuq",normalized:"next"},{native:"\xF1awpaq kaq",normalized:"previous"},{native:"\xF1awpaq_kaq",normalized:"previous"},{native:"aswan qayllaqa",normalized:"closest"},{native:"tayta",normalized:"parent"},{native:"llikllay",normalized:"click"},{native:"\xF1itiy",normalized:"click"},{native:"click",normalized:"click"},{native:"yaykuy",normalized:"input"},{native:"llave uray",normalized:"keydown"},{native:"llave hawa",normalized:"keyup"},{native:"mausiri yayku",normalized:"mouseover"},{native:"mausiri lluqsi",normalized:"mouseout"},{native:"qhaway",normalized:"focus"},{native:"mana qhaway",normalized:"blur"},{native:"kargay",normalized:"load"},{native:"muyuy",normalized:"scroll"},{native:"\xF1uqa",normalized:"me"},{native:"nuqa",normalized:"me"},{native:"\xF1uqap",normalized:"my"},{native:"nuqap",normalized:"my"},{native:"chay",normalized:"it"},{native:"chaymi",normalized:"it"},{native:"lluqsiy",normalized:"result"},{native:"ruway",normalized:"event"},{native:"maypi",normalized:"target"},{native:"sikundu",normalized:"s"},{native:"segundu",normalized:"s"},{native:"waranqa sikundu",normalized:"ms"},{native:"minutu",normalized:"m"},{native:"ura",normalized:"h"},{native:"hora",normalized:"h"},{native:"chaypim",normalized:"on"},{native:"kaypi",normalized:"on"},{native:"chayqa",normalized:"then"},{native:"chaymanta",normalized:"then"},{native:"chaymantataq",normalized:"then"},{native:"hinaspa",normalized:"then"},{native:"tukukuy",normalized:"end"},{native:"puchukay",normalized:"end"},{native:"kaykama",normalized:"until"},{native:"yapay",normalized:"add"},{native:"t'ikray",normalized:"toggle"},{native:"tikray",normalized:"toggle"},{native:"qhawachiy",normalized:"focus"},{native:"mana qhawachiy",normalized:"blur"},{native:"-manta",normalized:"from"}],ei=class extends I{constructor(){super(),this.language="qu",this.direction="ltr",this.initializeKeywordsFromProfile(Be,Ms)}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){let o=this.splitSelectorSuffix(u);o.length===2?(r.push(o[0]),r.push(o[1]),t=o[1].position.end):(r.push(u),t=u.position.end);continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let i=this.extractNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}if(e[t]==="-"){let i=this.trySuffix(e,t);if(i){r.push(i),t=i.position.end;continue}}if(Jn(e[t])){let i=this.tryMultiWordKeyword(e,t);if(i){r.push(i),t=i.position.end;continue}let u=this.extractWord(e,t);if(u){r.push(u),t=u.position.end;continue}}let a=this.tryOperator(e,t);if(a){r.push(a),t=a.position.end;continue}t++}return new P(r,"qu")}classifyToken(e){let r=e.toLowerCase();return ot.has(r)?"particle":this.isKeyword(r)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}trySuffix(e,r){for(let t of ot)if(e.slice(r,r+t.length).toLowerCase()===t)return c(e.slice(r,r+t.length),"particle",m(r,r+t.length));return null}splitSelectorSuffix(e){let r=e.value;for(let t of ot)if(r.toLowerCase().endsWith(t)){let n=r.length-t.length,a=r.slice(0,n),i=r.slice(n),u=c(a,"selector",m(e.position.start,e.position.start+n)),o=c(i,"particle",m(e.position.start+n,e.position.end));return[u,o]}return[e]}tryMultiWordKeyword(e,r){let t=[{pattern:"mana qhawachiy",normalized:"blur"},{pattern:"mana qhaway",normalized:"blur"},{pattern:"mana riqsisqa",normalized:"undefined"},{pattern:"mana waqtalla",normalized:"async"},{pattern:"\xF1awpaq kaq",normalized:"previous"},{pattern:"aswan qayllaqa",normalized:"closest"},{pattern:"llave uray",normalized:"keydown"},{pattern:"llave hawa",normalized:"keyup"},{pattern:"mausiri yayku",normalized:"mouseover"},{pattern:"mausiri lluqsi",normalized:"mouseout"},{pattern:"waranqa sikundu",normalized:"ms"}],n=e.toLowerCase();for(let{pattern:a,normalized:i}of t)if(n.slice(r,r+a.length)===a){let u=r+a.length;if(u>=e.length||b(e[u])||!Jn(e[u]))return c(e.slice(r,u),"keyword",m(r,u),i)}return null}extractWord(e,r){let t=r,n="";for(;t<e.length&&Ws(e[t]);)n+=e[t++];if(!n)return null;let a=n.toLowerCase();if(ot.has(a))return c(n,"particle",m(r,t));let i=this.lookupKeyword(a);return i?c(n,"keyword",m(r,t),i.normalized):c(n,"identifier",m(r,t))}extractNumber(e,r){let t=r,n="";for((e[t]==="-"||e[t]==="+")&&(n+=e[t++]);t<e.length&&k(e[t]);)n+=e[t++];if(t<e.length&&e[t]===".")for(n+=e[t++];t<e.length&&k(e[t]);)n+=e[t++];let a=t;for(;a<e.length&&b(e[a]);)a++;let i=e.slice(a).toLowerCase();return i.startsWith("sikundu")||i.startsWith("segundu")?(n+="s",t=a+7):i.startsWith("minutu")?(n+="m",t=a+6):(i.startsWith("hora")||i.startsWith("ura"))&&(n+="h",t=a+(i.startsWith("hora")?4:3)),!n||n==="-"||n==="+"?null:c(n,"literal",m(r,t))}},ti=new ei}}),qs={};A(qs,{russianProfile:()=>st});var st,Ut=g({"src/generators/profiles/russian.ts"(){"use strict";st={code:"ru",name:"Russian",nativeName:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0,suffixes:["\u0442\u044C","\u0442\u044C\u0441\u044F","\u0438\u0442\u044C","\u0438\u0442\u044C\u0441\u044F","\u0430\u0442\u044C","\u0430\u0442\u044C\u0441\u044F","\u0435\u0442\u044C","\u0435\u0442\u044C\u0441\u044F"]},references:{me:"\u044F",it:"\u044D\u0442\u043E",you:"\u0442\u044B",result:"\u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442",event:"\u0441\u043E\u0431\u044B\u0442\u0438\u0435",target:"\u0446\u0435\u043B\u044C",body:"body"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u043C\u043E\u0439",it:"\u0435\u0433\u043E",you:"\u0442\u0432\u043E\u0439"},keywords:{\u043C\u043E\u0439:"me",\u043C\u043E\u044F:"me",\u043C\u043E\u0451:"me",\u043C\u043E\u0438:"me",\u0442\u0432\u043E\u0439:"you",\u0442\u0432\u043E\u044F:"you",\u0442\u0432\u043E\u0451:"you",\u0442\u0432\u043E\u0438:"you",\u0435\u0433\u043E:"it",\u0435\u0451:"it"}},roleMarkers:{destination:{primary:"\u0432",alternatives:["\u043D\u0430","\u043A"],position:"before"},source:{primary:"\u0438\u0437",alternatives:["\u043E\u0442","\u0441"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0441",alternatives:["\u0441\u043E"],position:"before"}},keywords:{toggle:{primary:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438"],normalized:"toggle",form:"infinitive"},add:{primary:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C",alternatives:["\u0434\u043E\u0431\u0430\u0432\u044C"],normalized:"add",form:"infinitive"},remove:{primary:"\u0443\u0434\u0430\u043B\u0438\u0442\u044C",alternatives:["\u0443\u0434\u0430\u043B\u0438","\u0443\u0431\u0440\u0430\u0442\u044C","\u0443\u0431\u0435\u0440\u0438"],normalized:"remove",form:"infinitive"},put:{primary:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C","\u0432\u0441\u0442\u0430\u0432\u044C"],normalized:"put",form:"infinitive"},append:{primary:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C_\u0432_\u043A\u043E\u043D\u0435\u0446",alternatives:["\u0434\u043E\u043F\u0438\u0441\u0430\u0442\u044C"],normalized:"append",form:"infinitive"},prepend:{primary:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C_\u0432_\u043D\u0430\u0447\u0430\u043B\u043E",normalized:"prepend",form:"infinitive"},take:{primary:"\u0432\u0437\u044F\u0442\u044C",alternatives:["\u0432\u043E\u0437\u044C\u043C\u0438"],normalized:"take",form:"infinitive"},make:{primary:"\u0441\u043E\u0437\u0434\u0430\u0442\u044C",alternatives:["\u0441\u043E\u0437\u0434\u0430\u0439"],normalized:"make",form:"infinitive"},clone:{primary:"\u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u043A\u043B\u043E\u043D\u0438\u0440\u0443\u0439"],normalized:"clone",form:"infinitive"},swap:{primary:"\u043F\u043E\u043C\u0435\u043D\u044F\u0442\u044C",alternatives:["\u043F\u043E\u043C\u0435\u043D\u044F\u0439"],normalized:"swap",form:"infinitive"},morph:{primary:"\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0439"],normalized:"morph",form:"infinitive"},set:{primary:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",alternatives:["\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u044C","\u0437\u0430\u0434\u0430\u0439"],normalized:"set",form:"infinitive"},get:{primary:"\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u0443\u0447\u0438"],normalized:"get",form:"infinitive"},increment:{primary:"\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C",alternatives:["\u0443\u0432\u0435\u043B\u0438\u0447\u044C"],normalized:"increment",form:"infinitive"},decrement:{primary:"\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C",alternatives:["\u0443\u043C\u0435\u043D\u044C\u0448\u0438"],normalized:"decrement",form:"infinitive"},log:{primary:"\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C",alternatives:["\u0437\u0430\u043F\u0438\u0448\u0438"],normalized:"log",form:"infinitive"},show:{primary:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"],normalized:"show",form:"infinitive"},hide:{primary:"\u0441\u043A\u0440\u044B\u0442\u044C",alternatives:["\u0441\u043A\u0440\u043E\u0439","\u0441\u043F\u0440\u044F\u0442\u0430\u0442\u044C","\u0441\u043F\u0440\u044F\u0447\u044C"],normalized:"hide",form:"infinitive"},transition:{primary:"\u0430\u043D\u0438\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0430\u043D\u0438\u043C\u0438\u0440\u0443\u0439"],normalized:"transition",form:"infinitive"},on:{primary:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u0433\u0434\u0430"],normalized:"on"},trigger:{primary:"\u0432\u044B\u0437\u0432\u0430\u0442\u044C",alternatives:["\u0432\u044B\u0437\u043E\u0432\u0438"],normalized:"trigger",form:"infinitive"},send:{primary:"\u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",alternatives:["\u043E\u0442\u043F\u0440\u0430\u0432\u044C"],normalized:"send",form:"infinitive"},focus:{primary:"\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u0443\u0439","\u0444\u043E\u043A\u0443\u0441"],normalized:"focus",form:"infinitive"},blur:{primary:"\u0440\u0430\u0437\u043C\u044B\u0442\u044C",alternatives:["\u0440\u0430\u0437\u043C\u043E\u0439"],normalized:"blur",form:"infinitive"},click:{primary:"\u043A\u043B\u0438\u043A",alternatives:["\u043A\u043B\u0438\u043A\u0435","\u043D\u0430\u0436\u0430\u0442\u0438\u0438"],normalized:"click"},hover:{primary:"\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0438",alternatives:["\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0435"],normalized:"hover"},submit:{primary:"\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0435",alternatives:["\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430"],normalized:"submit"},input:{primary:"\u0432\u0432\u043E\u0434\u0435",alternatives:["\u0432\u0432\u043E\u0434"],normalized:"input"},change:{primary:"\u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0438",alternatives:["\u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435"],normalized:"change"},go:{primary:"\u043F\u0435\u0440\u0435\u0439\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u0438\u0434\u0442\u0438","\u0438\u0434\u0438"],normalized:"go",form:"infinitive"},wait:{primary:"\u0436\u0434\u0430\u0442\u044C",alternatives:["\u0436\u0434\u0438","\u043F\u043E\u0434\u043E\u0436\u0434\u0438"],normalized:"wait",form:"infinitive"},fetch:{primary:"\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C",alternatives:["\u0437\u0430\u0433\u0440\u0443\u0437\u0438"],normalized:"fetch",form:"infinitive"},settle:{primary:"\u0441\u0442\u0430\u0431\u0438\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C",normalized:"settle",form:"infinitive"},if:{primary:"\u0435\u0441\u043B\u0438",normalized:"if"},when:{primary:"\u043A\u043E\u0433\u0434\u0430",normalized:"when"},where:{primary:"\u0433\u0434\u0435",normalized:"where"},else:{primary:"\u0438\u043D\u0430\u0447\u0435",normalized:"else"},repeat:{primary:"\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",alternatives:["\u043F\u043E\u0432\u0442\u043E\u0440\u0438"],normalized:"repeat",form:"infinitive"},for:{primary:"\u0434\u043B\u044F",alternatives:["\u043A\u0430\u0436\u0434\u044B\u0439"],normalized:"for"},while:{primary:"\u043F\u043E\u043A\u0430",normalized:"while"},continue:{primary:"\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C",alternatives:["\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438"],normalized:"continue",form:"infinitive"},halt:{primary:"\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",alternatives:["\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0441\u044C","\u0441\u0442\u043E\u043F"],normalized:"halt",form:"infinitive"},throw:{primary:"\u0431\u0440\u043E\u0441\u0438\u0442\u044C",alternatives:["\u0431\u0440\u043E\u0441\u044C"],normalized:"throw",form:"infinitive"},call:{primary:"\u0432\u044B\u0437\u0432\u0430\u0442\u044C",alternatives:["\u0432\u044B\u0437\u043E\u0432\u0438"],normalized:"call",form:"infinitive"},return:{primary:"\u0432\u0435\u0440\u043D\u0443\u0442\u044C",alternatives:["\u0432\u0435\u0440\u043D\u0438"],normalized:"return",form:"infinitive"},then:{primary:"\u0437\u0430\u0442\u0435\u043C",alternatives:["\u043F\u043E\u0442\u043E\u043C","\u0442\u043E\u0433\u0434\u0430"],normalized:"then"},and:{primary:"\u0438",normalized:"and"},end:{primary:"\u043A\u043E\u043D\u0435\u0446",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E",alternatives:["async"],normalized:"async"},tell:{primary:"\u0441\u043A\u0430\u0437\u0430\u0442\u044C",alternatives:["\u0441\u043A\u0430\u0436\u0438"],normalized:"tell",form:"infinitive"},default:{primary:"\u043F\u043E_\u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",normalized:"default"},init:{primary:"\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0439"],normalized:"init",form:"infinitive"},behavior:{primary:"\u043F\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u0435",normalized:"behavior"},install:{primary:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C_\u043F\u0430\u043A\u0435\u0442",normalized:"install",form:"infinitive"},measure:{primary:"\u0438\u0437\u043C\u0435\u0440\u0438\u0442\u044C",alternatives:["\u0438\u0437\u043C\u0435\u0440\u044C"],normalized:"measure",form:"infinitive"},beep:{primary:"\u0437\u0432\u0443\u043A",normalized:"beep"},break:{primary:"\u043F\u0440\u0435\u0440\u0432\u0430\u0442\u044C",normalized:"break"},copy:{primary:"\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",normalized:"copy"},exit:{primary:"\u0432\u044B\u0439\u0442\u0438",normalized:"exit"},pick:{primary:"\u0432\u044B\u0431\u0440\u0430\u0442\u044C",normalized:"pick"},render:{primary:"\u043E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C",normalized:"render"},into:{primary:"\u0432",alternatives:["\u0432\u043E"],normalized:"into"},before:{primary:"\u0434\u043E",alternatives:["\u043F\u0435\u0440\u0435\u0434"],normalized:"before"},after:{primary:"\u043F\u043E\u0441\u043B\u0435",normalized:"after"},until:{primary:"\u0434\u043E",alternatives:["\u043F\u043E\u043A\u0430_\u043D\u0435"],normalized:"until"},event:{primary:"\u0441\u043E\u0431\u044B\u0442\u0438\u0435",normalized:"event"},from:{primary:"\u0438\u0437",alternatives:["\u043E\u0442","\u0441"],normalized:"from"}},eventHandler:{keyword:{primary:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u0433\u0434\u0430"],normalized:"on"},sourceMarker:{primary:"\u043D\u0430",alternatives:["\u0432","\u043F\u0440\u0438"],position:"before"},eventMarker:{primary:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u0433\u0434\u0430"],position:"before"},temporalMarkers:["\u043A\u043E\u0433\u0434\u0430","\u0435\u0441\u043B\u0438"]}}}});function cm(e){return/[а-яА-ЯёЁ]/.test(e)}function dm(e){for(let r of e)if(cm(r))return!0;return!1}var ri,ni,ym,fm=g({"src/tokenizers/morphology/russian-normalizer.ts"(){"use strict";H(),ri=new Map([["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438","\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C"],["\u0434\u043E\u0431\u0430\u0432\u044C","\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C"],["\u0443\u0434\u0430\u043B\u0438","\u0443\u0434\u0430\u043B\u0438\u0442\u044C"],["\u0443\u0431\u0435\u0440\u0438","\u0443\u0431\u0440\u0430\u0442\u044C"],["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C"],["\u043F\u043E\u043C\u0435\u0441\u0442\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C"],["\u0432\u0441\u0442\u0430\u0432\u044C","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C"],["\u0432\u043E\u0437\u044C\u043C\u0438","\u0432\u0437\u044F\u0442\u044C"],["\u0441\u043E\u0437\u0434\u0430\u0439","\u0441\u043E\u0437\u0434\u0430\u0442\u044C"],["\u043A\u043B\u043E\u043D\u0438\u0440\u0443\u0439","\u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u043F\u043E\u043C\u0435\u043D\u044F\u0439","\u043F\u043E\u043C\u0435\u043D\u044F\u0442\u044C"],["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0439","\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C"],["\u0437\u0430\u0434\u0430\u0439","\u0437\u0430\u0434\u0430\u0442\u044C"],["\u043F\u043E\u043B\u0443\u0447\u0438","\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C"],["\u0443\u0432\u0435\u043B\u0438\u0447\u044C","\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C"],["\u0443\u043C\u0435\u043D\u044C\u0448\u0438","\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C"],["\u0437\u0430\u043F\u0438\u0448\u0438","\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C"],["\u043F\u043E\u043A\u0430\u0436\u0438","\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C"],["\u0441\u043A\u0440\u043E\u0439","\u0441\u043A\u0440\u044B\u0442\u044C"],["\u0441\u043F\u0440\u044F\u0447\u044C","\u0441\u043F\u0440\u044F\u0442\u0430\u0442\u044C"],["\u0430\u043D\u0438\u043C\u0438\u0440\u0443\u0439","\u0430\u043D\u0438\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0432\u044B\u0437\u043E\u0432\u0438","\u0432\u044B\u0437\u0432\u0430\u0442\u044C"],["\u043E\u0442\u043F\u0440\u0430\u0432\u044C","\u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C"],["\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u0443\u0439","\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0440\u0430\u0437\u043C\u043E\u0439","\u0440\u0430\u0437\u043C\u044B\u0442\u044C"],["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u043F\u0435\u0440\u0435\u0439\u0442\u0438"],["\u0438\u0434\u0438","\u0438\u0434\u0442\u0438"],["\u0436\u0434\u0438","\u0436\u0434\u0430\u0442\u044C"],["\u043F\u043E\u0434\u043E\u0436\u0434\u0438","\u043F\u043E\u0434\u043E\u0436\u0434\u0430\u0442\u044C"],["\u0437\u0430\u0433\u0440\u0443\u0437\u0438","\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C"],["\u043F\u043E\u0432\u0442\u043E\u0440\u0438","\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C"],["\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"],["\u0431\u0440\u043E\u0441\u044C","\u0431\u0440\u043E\u0441\u0438\u0442\u044C"],["\u0432\u0435\u0440\u043D\u0438","\u0432\u0435\u0440\u043D\u0443\u0442\u044C"],["\u0441\u043A\u0430\u0436\u0438","\u0441\u043A\u0430\u0437\u0430\u0442\u044C"],["\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0439","\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0438\u0437\u043C\u0435\u0440\u044C","\u0438\u0437\u043C\u0435\u0440\u0438\u0442\u044C"]]),ni=class{constructor(){this.language="ru"}isNormalizable(e){return e.length<3?!1:dm(e)}normalize(e){let r=e.toLowerCase();if(r.endsWith("\u0441\u044F")||r.endsWith("\u0441\u044C")){let u=this.tryReflexiveNormalization(r);if(u)return u}if(r.endsWith("\u0442\u044C")||r.endsWith("\u0442\u0438")||r.endsWith("\u0447\u044C"))return j(e);let t=this.tryImperativeLookup(r);if(t)return t;let n=this.tryPastTenseNormalization(r);if(n)return n;let a=this.tryPresentTenseNormalization(r);if(a)return a;let i=this.tryGenericImperativeNormalization(r);return i||j(e)}tryReflexiveNormalization(e){let r=(e.endsWith("\u0441\u044F"),2),t=e.slice(0,-r);if(e.endsWith("\u0442\u044C\u0441\u044F")||e.endsWith("\u0442\u0438\u0441\u044C")||e.endsWith("\u0447\u044C\u0441\u044F"))return j(e);let n=this.normalizeNonReflexive(t);if(n.confidence<1){let a=n.stem.endsWith("\u0442\u044C")?n.stem.slice(0,-2)+"\u0442\u044C\u0441\u044F":n.stem+"\u0441\u044F";return z(a,n.confidence*.95,{removedSuffixes:["\u0441\u044F",...n.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}normalizeNonReflexive(e){if(e.endsWith("\u0442\u044C")||e.endsWith("\u0442\u0438")||e.endsWith("\u0447\u044C"))return j(e);let r=this.tryImperativeLookup(e);if(r)return r;let t=this.tryPastTenseNormalization(e);if(t)return t;let n=this.tryPresentTenseNormalization(e);if(n)return n;let a=this.tryGenericImperativeNormalization(e);return a||j(e)}tryImperativeLookup(e){return ri.has(e)?z(ri.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):null}tryGenericImperativeNormalization(e){return e.endsWith("\u0439\u0442\u0435")&&e.length>5?z(e.slice(0,-3)+"\u0442\u044C",.8,{removedSuffixes:["\u0439\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0438\u0442\u0435")&&e.length>5?z(e.slice(0,-3)+"\u0438\u0442\u044C",.8,{removedSuffixes:["\u0438\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0439")&&e.length>3?z(e.slice(0,-1)+"\u0442\u044C",.75,{removedSuffixes:["\u0439"],conjugationType:"imperative"}):e.endsWith("\u0438")&&e.length>3?z(e+"\u0442\u044C",.7,{removedSuffixes:["\u0438\u2192\u0438\u0442\u044C"],conjugationType:"imperative"}):null}tryPastTenseNormalization(e){return e.endsWith("\u0430\u043B\u0430")&&e.length>4?z(e.slice(0,-3)+"\u0430\u0442\u044C",.85,{removedSuffixes:["\u0430\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0430")&&e.length>4?z(e.slice(0,-3)+"\u0438\u0442\u044C",.85,{removedSuffixes:["\u0438\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0435\u043B\u043E")&&e.length>4?z(e.slice(0,-3)+"\u0435\u0442\u044C",.82,{removedSuffixes:["\u0435\u043B\u043E"],conjugationType:"past"}):e.endsWith("\u0430\u0431\u043E")&&e.length>4?z(e.slice(0,-3)+"\u0430\u0442\u044C",.82,{removedSuffixes:["\u0430\u0431\u043E"],conjugationType:"past"}):e.endsWith("\u0430\u043B\u0438")&&e.length>4?z(e.slice(0,-3)+"\u0430\u0442\u044C",.85,{removedSuffixes:["\u0430\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0438")&&e.length>4?z(e.slice(0,-3)+"\u0438\u0442\u044C",.85,{removedSuffixes:["\u0438\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0430\u043B")&&e.length>3?z(e.slice(0,-2)+"\u0430\u0442\u044C",.82,{removedSuffixes:["\u0430\u043B"],conjugationType:"past"}):e.endsWith("\u0438\u043B")&&e.length>3?z(e.slice(0,-2)+"\u0438\u0442\u044C",.82,{removedSuffixes:["\u0438\u043B"],conjugationType:"past"}):null}tryPresentTenseNormalization(e){return e.endsWith("\u0438\u0448\u044C")&&e.length>4?z(e.slice(0,-3)+"\u0438\u0442\u044C",.8,{removedSuffixes:["\u0438\u0448\u044C"],conjugationType:"present"}):e.endsWith("\u0438\u0442")&&e.length>3?z(e.slice(0,-2)+"\u0438\u0442\u044C",.78,{removedSuffixes:["\u0438\u0442"],conjugationType:"present"}):e.endsWith("\u0438\u043C")&&e.length>3?z(e.slice(0,-2)+"\u0438\u0442\u044C",.78,{removedSuffixes:["\u0438\u043C"],conjugationType:"present"}):e.endsWith("\u044F\u0442")&&e.length>3?z(e.slice(0,-2)+"\u0438\u0442\u044C",.78,{removedSuffixes:["\u044F\u0442"],conjugationType:"present"}):e.endsWith("\u0435\u0448\u044C")&&e.length>4?z(e.slice(0,-3)+"\u0430\u0442\u044C",.75,{removedSuffixes:["\u0435\u0448\u044C"],conjugationType:"present"}):e.endsWith("\u0435\u0442")&&e.length>3?z(e.slice(0,-2)+"\u0430\u0442\u044C",.72,{removedSuffixes:["\u0435\u0442"],conjugationType:"present"}):e.endsWith("\u0435\u043C")&&e.length>3?z(e.slice(0,-2)+"\u0430\u0442\u044C",.72,{removedSuffixes:["\u0435\u043C"],conjugationType:"present"}):e.endsWith("\u044E\u0442")&&e.length>3?z(e.slice(0,-2)+"\u0430\u0442\u044C",.75,{removedSuffixes:["\u044E\u0442"],conjugationType:"present"}):e.endsWith("\u0443\u0442")&&e.length>3?z(e.slice(0,-2)+"\u0430\u0442\u044C",.72,{removedSuffixes:["\u0443\u0442"],conjugationType:"present"}):null}},ym=new ni}}),Vs={};A(Vs,{RussianTokenizer:()=>ai,russianTokenizer:()=>ui});var Ks,Us,ii,Hs,ai,ui,$s=g({"src/tokenizers/russian.ts"(){"use strict";W(),Ut(),fm(),{isLetter:Ks,isIdentifierChar:Us}=K(/[a-zA-Zа-яА-ЯёЁ]/),ii=new Set(["\u0432","\u0432\u043E","\u043D\u0430","\u0441","\u0441\u043E","\u043A","\u043A\u043E","\u043E","\u043E\u0431","\u043E\u0431\u043E","\u0443","\u043E\u0442","\u0434\u043E","\u0438\u0437","\u0437\u0430","\u043F\u043E","\u043F\u043E\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043F\u0435\u0440\u0435\u0434\u043E","\u043C\u0435\u0436\u0434\u0443","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u0434\u043B\u044F","\u043F\u0440\u0438","\u043F\u0440\u043E","\u043F\u043E\u0441\u043B\u0435","\u0432\u043E\u043A\u0440\u0443\u0433","\u043F\u0440\u043E\u0442\u0438\u0432","\u0432\u043C\u0435\u0441\u0442\u043E","\u043A\u0440\u043E\u043C\u0435","\u0441\u0440\u0435\u0434\u0438"]),Hs=[{native:"\u0438\u0441\u0442\u0438\u043D\u0430",normalized:"true"},{native:"\u043F\u0440\u0430\u0432\u0434\u0430",normalized:"true"},{native:"\u043B\u043E\u0436\u044C",normalized:"false"},{native:"null",normalized:"null"},{native:"\u043D\u0435\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E",normalized:"undefined"},{native:"\u043F\u0435\u0440\u0432\u044B\u0439",normalized:"first"},{native:"\u043F\u0435\u0440\u0432\u0430\u044F",normalized:"first"},{native:"\u043F\u0435\u0440\u0432\u043E\u0435",normalized:"first"},{native:"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439",normalized:"last"},{native:"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F",normalized:"last"},{native:"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435",normalized:"last"},{native:"\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",normalized:"next"},{native:"\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F",normalized:"next"},{native:"\u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",normalized:"previous"},{native:"\u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F",normalized:"previous"},{native:"\u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0438\u0439",normalized:"closest"},{native:"\u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C",normalized:"parent"},{native:"\u043A\u043B\u0438\u043A",normalized:"click"},{native:"\u043D\u0430\u0436\u0430\u0442\u0438\u0435",normalized:"click"},{native:"click",normalized:"click"},{native:"\u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435",normalized:"change"},{native:"\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430",normalized:"submit"},{native:"\u043A\u043B\u0430\u0432\u0438\u0448\u0430",normalized:"keydown"},{native:"\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0435",normalized:"mouseover"},{native:"\u0443\u0445\u043E\u0434",normalized:"mouseout"},{native:"\u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430",normalized:"load"},{native:"\u043F\u0440\u043E\u043A\u0440\u0443\u0442\u043A\u0430",normalized:"scroll"},{native:"\u0432\u0432\u043E\u0434",normalized:"input"},{native:"\u043C\u043E\u0439",normalized:"my"},{native:"\u043C\u043E\u044F",normalized:"my"},{native:"\u043C\u043E\u0451",normalized:"my"},{native:"\u043C\u043E\u0438",normalized:"my"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u044B",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"s"},{native:"\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"ms"},{native:"\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B",normalized:"ms"},{native:"\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"ms"},{native:"\u043C\u0438\u043D\u0443\u0442\u0430",normalized:"m"},{native:"\u043C\u0438\u043D\u0443\u0442\u044B",normalized:"m"},{native:"\u043C\u0438\u043D\u0443\u0442",normalized:"m"},{native:"\u0447\u0430\u0441",normalized:"h"},{native:"\u0447\u0430\u0441\u0430",normalized:"h"},{native:"\u0447\u0430\u0441\u043E\u0432",normalized:"h"},{native:"\u0438\u043B\u0438",normalized:"or"},{native:"\u043D\u0435",normalized:"not"},{native:"\u0435\u0441\u0442\u044C",normalized:"is"},{native:"\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442",normalized:"exists"},{native:"\u043F\u0443\u0441\u0442\u043E\u0439",normalized:"empty"},{native:"\u043F\u0443\u0441\u0442\u0430\u044F",normalized:"empty"},{native:"\u043F\u0443\u0441\u0442\u043E\u0435",normalized:"empty"}],ai=class extends I{constructor(){super(),this.language="ru",this.direction="ltr",this.initializeKeywordsFromProfile(st,Hs),this.normalizer=new ni}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let i=this.extractNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}if(Ks(e[t])){let i=this.extractWord(e,t);if(i){r.push(i),t=i.position.end;continue}}let a=this.tryOperator(e,t);if(a){r.push(a),t=a.position.end;continue}t++}return new P(r,"ru")}classifyToken(e){let r=e.toLowerCase();return ii.has(r)?"particle":this.isKeyword(r)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}extractWord(e,r){let t=r,n="";for(;t<e.length&&Us(e[t]);)n+=e[t++];if(!n)return null;let a=n.toLowerCase();if(ii.has(a))return c(n,"particle",m(r,t));let i=this.lookupKeyword(a);return i?c(n,"keyword",m(r,t),i.normalized):c(n,"identifier",m(r,t))}extractNumber(e,r){let t=r,n="";for((e[t]==="-"||e[t]==="+")&&(n+=e[t++]);t<e.length&&k(e[t]);)n+=e[t++];if(t<e.length&&e[t]===".")for(n+=e[t++];t<e.length&&k(e[t]);)n+=e[t++];let a=t;for(;a<e.length&&b(e[a]);)a++;let i=e.slice(a).toLowerCase();return i.startsWith("\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434")||i.startsWith("\u043C\u0441")?i.startsWith("\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434")?(n+="ms",t=a+11,i.length>11&&/[аы]/.test(i[11])&&t++):(n+="ms",t=a+2):i.startsWith("\u0441\u0435\u043A\u0443\u043D\u0434")||i.startsWith("\u0441\u0435\u043A")?i.startsWith("\u0441\u0435\u043A\u0443\u043D\u0434")?(n+="s",t=a+6,i.length>6&&/[аы]/.test(i[6])&&t++):(n+="s",t=a+3):i.startsWith("\u043C\u0438\u043D\u0443\u0442")||i.startsWith("\u043C\u0438\u043D")?i.startsWith("\u043C\u0438\u043D\u0443\u0442")?(n+="m",t=a+5,i.length>5&&/[аы]/.test(i[5])&&t++):(n+="m",t=a+3):i.startsWith("\u0447\u0430\u0441")?(n+="h",t=a+3,i.length>3&&i[3]==="\u0430"?t++:i.length>3&&i.slice(3,5)==="\u043E\u0432"&&(t+=2)):i.startsWith("ms")?(n+="ms",t=a+2):i.startsWith("s")&&!i.startsWith("se")&&(n+="s",t=a+1),!n||n==="-"||n==="+"?null:c(n,"literal",m(r,t))}},ui=new ai}}),Gs={};A(Gs,{swahiliProfile:()=>Fe});var Fe,lt=g({"src/generators/profiles/swahili.ts"(){"use strict";Fe={code:"sw",name:"Swahili",nativeName:"Kiswahili",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"mimi",it:"hiyo",you:"wewe",result:"matokeo",event:"tukio",target:"lengo",body:"mwili"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"yangu",it:"yake",you:"yako"},keywords:{wangu:"me",yangu:"me",langu:"me",changu:"me",wako:"you",yako:"you",lako:"you",chako:"you",wake:"it",yake:"it",lake:"it",chake:"it"}},roleMarkers:{destination:{primary:"kwenye",alternatives:["kwa"],position:"before"},source:{primary:"kutoka",position:"before"},patient:{primary:"",position:"before"},style:{primary:"na",position:"before"}},keywords:{toggle:{primary:"badilisha",alternatives:["geuza"],normalized:"toggle"},add:{primary:"ongeza",alternatives:["weka"],normalized:"add"},remove:{primary:"ondoa",alternatives:["futa","toa"],normalized:"remove"},put:{primary:"weka",alternatives:["tia"],normalized:"put"},append:{primary:"ambatanisha",normalized:"append"},prepend:{primary:"tanguliza",normalized:"prepend"},take:{primary:"chukua",normalized:"take"},make:{primary:"tengeneza",alternatives:["unda"],normalized:"make"},clone:{primary:"nakili",alternatives:["rudufu"],normalized:"clone"},swap:{primary:"badilisha",alternatives:["badalisha"],normalized:"swap"},morph:{primary:"geuza",alternatives:["badilisha umbo"],normalized:"morph"},set:{primary:"seti",alternatives:["weka"],normalized:"set"},get:{primary:"pata",alternatives:["pokea"],normalized:"get"},increment:{primary:"ongezeko",alternatives:["ongeza"],normalized:"increment"},decrement:{primary:"punguza",normalized:"decrement"},log:{primary:"andika",alternatives:["rekodi"],normalized:"log"},show:{primary:"onyesha",normalized:"show"},hide:{primary:"ficha",alternatives:["mficho"],normalized:"hide"},transition:{primary:"hamisha",alternatives:["animisha"],normalized:"transition"},on:{primary:"wakati",alternatives:["kwenye","unapo"],normalized:"on"},trigger:{primary:"chochea",alternatives:["anzisha"],normalized:"trigger"},send:{primary:"tuma",alternatives:["peleka"],normalized:"send"},focus:{primary:"lenga",alternatives:["angazia"],normalized:"focus"},blur:{primary:"blur",normalized:"blur"},go:{primary:"nenda",alternatives:["enda","elekea"],normalized:"go"},wait:{primary:"subiri",alternatives:["ngoja"],normalized:"wait"},fetch:{primary:"leta",alternatives:["pakia"],normalized:"fetch"},settle:{primary:"tulia",alternatives:["imarika"],normalized:"settle"},if:{primary:"kama",alternatives:["ikiwa"],normalized:"if"},when:{primary:"wakati",normalized:"when"},where:{primary:"wapi",normalized:"where"},else:{primary:"vinginevyo",alternatives:["sivyo"],normalized:"else"},repeat:{primary:"rudia",normalized:"repeat"},for:{primary:"kwa",normalized:"for"},while:{primary:"wakati",normalized:"while"},continue:{primary:"endelea",normalized:"continue"},halt:{primary:"simama",alternatives:["acha"],normalized:"halt"},throw:{primary:"tupa",normalized:"throw"},call:{primary:"ita",normalized:"call"},return:{primary:"rudisha",alternatives:["rejea"],normalized:"return"},then:{primary:"kisha",alternatives:["halafu","baadaye"],normalized:"then"},and:{primary:"na",alternatives:["pia","vilevile"],normalized:"and"},end:{primary:"mwisho",alternatives:["maliza","tamati"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"isiyo sawia",normalized:"async"},tell:{primary:"sema",alternatives:["ambia"],normalized:"tell"},default:{primary:"chaguo-msingi",normalized:"default"},init:{primary:"anzisha",alternatives:["anza"],normalized:"init"},behavior:{primary:"tabia",normalized:"behavior"},install:{primary:"sakinisha",alternatives:["weka"],normalized:"install"},measure:{primary:"pima",normalized:"measure"},beep:{primary:"lia",normalized:"beep"},break:{primary:"vunja",normalized:"break"},copy:{primary:"nakili",normalized:"copy"},exit:{primary:"toka",normalized:"exit"},pick:{primary:"chagua",normalized:"pick"},render:{primary:"chora",normalized:"render"},into:{primary:"ndani",normalized:"into"},before:{primary:"kabla",normalized:"before"},after:{primary:"baada",normalized:"after"},until:{primary:"hadi",normalized:"until"},event:{primary:"tukio",normalized:"event"},from:{primary:"kutoka",normalized:"from"}},eventHandler:{keyword:{primary:"wakati",alternatives:["kwenye","kwa"]},sourceMarker:{primary:"kutoka",position:"before"},conditionalKeyword:{primary:"unapo",alternatives:["anapo","tunapo","mnapo","wanapo"]},eventMarker:{primary:"wakati",alternatives:["kwenye","kwa","unapo"],position:"before"}}}}}),Xs={};A(Xs,{SwahiliTokenizer:()=>si,swahiliTokenizer:()=>li});var Qs,Zs,oi,Ys,si,li,Js=g({"src/tokenizers/swahili.ts"(){"use strict";W(),lt(),{isLetter:Qs,isIdentifierChar:Zs}=K(/[a-zA-Z]/),oi=new Set(["kwa","na","katika","kwenye","kutoka","hadi","mpaka","kabla","baada","wakati","bila","kuhusu","karibu","mbele","nyuma","ndani","nje","juu","chini","kati"]),Ys=[{native:"kweli",normalized:"true"},{native:"uongo",normalized:"false"},{native:"null",normalized:"null"},{native:"tupu",normalized:"null"},{native:"haijafafanuliwa",normalized:"undefined"},{native:"kwanza",normalized:"first"},{native:"mwisho",normalized:"last"},{native:"inayofuata",normalized:"next"},{native:"iliyopita",normalized:"previous"},{native:"karibu zaidi",normalized:"closest"},{native:"mzazi",normalized:"parent"},{native:"bonyeza",normalized:"click"},{native:"click",normalized:"click"},{native:"ingiza",normalized:"input"},{native:"badiliko",normalized:"change"},{native:"wasilisha",normalized:"submit"},{native:"funguo chini",normalized:"keydown"},{native:"funguo juu",normalized:"keyup"},{native:"kipanya juu",normalized:"mouseover"},{native:"kipanya nje",normalized:"mouseout"},{native:"ukungu",normalized:"blur"},{native:"sogeza",normalized:"scroll"},{native:"yenyewe",normalized:"it"},{native:"wangu",normalized:"my"},{native:"langu",normalized:"my"},{native:"changu",normalized:"my"},{native:"sekunde",normalized:"s"},{native:"milisekunde",normalized:"ms"},{native:"dakika",normalized:"m"},{native:"saa",normalized:"h"},{native:"ondoa lenga",normalized:"blur"},{native:"piga simu",normalized:"call"},{native:"basi",normalized:"then"},{native:"mpaka",normalized:"until"}],si=class extends I{constructor(){super(),this.language="sw",this.direction="ltr",this.initializeKeywordsFromProfile(Fe,Ys)}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let i=this.extractNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}if(Qs(e[t])){let i=this.extractWord(e,t);if(i){r.push(i),t=i.position.end;continue}}let a=this.tryOperator(e,t);if(a){r.push(a),t=a.position.end;continue}t++}return new P(r,"sw")}classifyToken(e){let r=e.toLowerCase();return oi.has(r)?"particle":this.isKeyword(r)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}extractWord(e,r){let t=r,n="";for(;t<e.length&&Zs(e[t]);)n+=e[t++];if(!n)return null;let a=n.toLowerCase(),i=this.lookupKeyword(a);return i?c(n,"keyword",m(r,t),i.normalized):oi.has(a)?c(n,"particle",m(r,t)):c(n,"identifier",m(r,t))}extractNumber(e,r){let t=r,n="";for((e[t]==="-"||e[t]==="+")&&(n+=e[t++]);t<e.length&&k(e[t]);)n+=e[t++];if(t<e.length&&e[t]===".")for(n+=e[t++];t<e.length&&k(e[t]);)n+=e[t++];let a=t;for(;a<e.length&&b(e[a]);)a++;let i=e.slice(a).toLowerCase();return i.startsWith("milisekunde")?(n+="ms",t=a+11):i.startsWith("sekunde")?(n+="s",t=a+7):i.startsWith("dakika")?(n+="m",t=a+6):i.startsWith("saa")&&(n+="h",t=a+3),!n||n==="-"||n==="+"?null:c(n,"literal",m(r,t))}},li=new si}}),el={};A(el,{thaiProfile:()=>pt});var pt,Ht=g({"src/generators/profiles/thai.ts"(){"use strict";pt={code:"th",name:"Thai",nativeName:"\u0E44\u0E17\u0E22",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!1,defaultVerbForm:"base",verb:{position:"second",subjectDrop:!0},references:{me:"\u0E09\u0E31\u0E19",it:"\u0E21\u0E31\u0E19",you:"\u0E04\u0E38\u0E13",result:"\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",event:"\u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C",target:"\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22",body:"\u0E1A\u0E2D\u0E14\u0E35\u0E49"},possessive:{marker:"\u0E02\u0E2D\u0E07",markerPosition:"between",keywords:{\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19:"me",\u0E02\u0E2D\u0E07\u0E1C\u0E21:"me",\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13:"you",\u0E02\u0E2D\u0E07\u0E21\u0E31\u0E19:"it",\u0E02\u0E2D\u0E07\u0E40\u0E02\u0E32:"it",\u0E02\u0E2D\u0E07\u0E40\u0E18\u0E2D:"it"}},roleMarkers:{patient:{primary:"",position:"before"},destination:{primary:"\u0E43\u0E19",alternatives:["\u0E44\u0E1B\u0E22\u0E31\u0E07"],position:"before"},source:{primary:"\u0E08\u0E32\u0E01",position:"before"},style:{primary:"\u0E14\u0E49\u0E27\u0E22",position:"before"},event:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",position:"before"}},keywords:{toggle:{primary:"\u0E2A\u0E25\u0E31\u0E1A",alternatives:[],normalized:"toggle"},add:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21",alternatives:[],normalized:"add"},remove:{primary:"\u0E25\u0E1A",alternatives:["\u0E25\u0E1A\u0E2D\u0E2D\u0E01"],normalized:"remove"},put:{primary:"\u0E43\u0E2A\u0E48",alternatives:["\u0E27\u0E32\u0E07"],normalized:"put"},append:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E17\u0E49\u0E32\u0E22",alternatives:[],normalized:"append"},prepend:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2B\u0E19\u0E49\u0E32",alternatives:[],normalized:"prepend"},take:{primary:"\u0E23\u0E31\u0E1A",alternatives:[],normalized:"take"},make:{primary:"\u0E2A\u0E23\u0E49\u0E32\u0E07",alternatives:[],normalized:"make"},clone:{primary:"\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",alternatives:["\u0E2A\u0E33\u0E40\u0E19\u0E32"],normalized:"clone"},swap:{primary:"\u0E2A\u0E25\u0E31\u0E1A\u0E17\u0E35\u0E48",alternatives:[],normalized:"swap"},morph:{primary:"\u0E41\u0E1B\u0E25\u0E07\u0E23\u0E48\u0E32\u0E07",alternatives:[],normalized:"morph"},set:{primary:"\u0E15\u0E31\u0E49\u0E07",alternatives:["\u0E01\u0E33\u0E2B\u0E19\u0E14"],normalized:"set"},get:{primary:"\u0E23\u0E31\u0E1A\u0E04\u0E48\u0E32",alternatives:[],normalized:"get"},increment:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E04\u0E48\u0E32",alternatives:[],normalized:"increment"},decrement:{primary:"\u0E25\u0E14\u0E04\u0E48\u0E32",alternatives:[],normalized:"decrement"},log:{primary:"\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01",alternatives:[],normalized:"log"},show:{primary:"\u0E41\u0E2A\u0E14\u0E07",alternatives:[],normalized:"show"},hide:{primary:"\u0E0B\u0E48\u0E2D\u0E19",alternatives:[],normalized:"hide"},transition:{primary:"\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19",alternatives:[],normalized:"transition"},on:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"],normalized:"on"},trigger:{primary:"\u0E17\u0E23\u0E34\u0E01\u0E40\u0E01\u0E2D\u0E23\u0E4C",alternatives:[],normalized:"trigger"},send:{primary:"\u0E2A\u0E48\u0E07",alternatives:[],normalized:"send"},focus:{primary:"\u0E42\u0E1F\u0E01\u0E31\u0E2A",alternatives:[],normalized:"focus"},blur:{primary:"\u0E40\u0E1A\u0E25\u0E2D",alternatives:[],normalized:"blur"},click:{primary:"\u0E04\u0E25\u0E34\u0E01",normalized:"click"},hover:{primary:"\u0E42\u0E2E\u0E40\u0E27\u0E2D\u0E23\u0E4C",alternatives:["\u0E27\u0E32\u0E07\u0E40\u0E21\u0E32\u0E2A\u0E4C"],normalized:"hover"},submit:{primary:"\u0E2A\u0E48\u0E07",alternatives:["\u0E2A\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25"],normalized:"submit"},input:{primary:"\u0E1B\u0E49\u0E2D\u0E19",alternatives:["\u0E01\u0E23\u0E2D\u0E01"],normalized:"input"},change:{primary:"\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19",alternatives:["\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07"],normalized:"change"},go:{primary:"\u0E44\u0E1B",alternatives:["\u0E44\u0E1B\u0E17\u0E35\u0E48"],normalized:"go"},wait:{primary:"\u0E23\u0E2D",alternatives:[],normalized:"wait"},fetch:{primary:"\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",alternatives:[],normalized:"fetch"},settle:{primary:"\u0E04\u0E07\u0E17\u0E35\u0E48",alternatives:[],normalized:"settle"},if:{primary:"\u0E16\u0E49\u0E32",alternatives:["\u0E2B\u0E32\u0E01"],normalized:"if"},when:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",normalized:"when"},where:{primary:"\u0E17\u0E35\u0E48\u0E44\u0E2B\u0E19",normalized:"where"},else:{primary:"\u0E44\u0E21\u0E48\u0E07\u0E31\u0E49\u0E19",alternatives:["\u0E44\u0E21\u0E48\u0E40\u0E0A\u0E48\u0E19\u0E19\u0E31\u0E49\u0E19"],normalized:"else"},repeat:{primary:"\u0E17\u0E33\u0E0B\u0E49\u0E33",alternatives:[],normalized:"repeat"},for:{primary:"\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A",alternatives:[],normalized:"for"},while:{primary:"\u0E43\u0E19\u0E02\u0E13\u0E30\u0E17\u0E35\u0E48",alternatives:[],normalized:"while"},continue:{primary:"\u0E15\u0E48\u0E2D\u0E44\u0E1B",alternatives:[],normalized:"continue"},halt:{primary:"\u0E2B\u0E22\u0E38\u0E14",alternatives:[],normalized:"halt"},throw:{primary:"\u0E42\u0E22\u0E19",alternatives:[],normalized:"throw"},call:{primary:"\u0E40\u0E23\u0E35\u0E22\u0E01",alternatives:[],normalized:"call"},return:{primary:"\u0E04\u0E37\u0E19\u0E04\u0E48\u0E32",alternatives:["\u0E01\u0E25\u0E31\u0E1A"],normalized:"return"},then:{primary:"\u0E41\u0E25\u0E49\u0E27",alternatives:[],normalized:"then"},and:{primary:"\u0E41\u0E25\u0E30",alternatives:[],normalized:"and"},end:{primary:"\u0E08\u0E1A",alternatives:[],normalized:"end"},js:{primary:"\u0E40\u0E08\u0E40\u0E2D\u0E2A",alternatives:["js"],normalized:"js"},async:{primary:"\u0E2D\u0E30\u0E0B\u0E34\u0E07\u0E04\u0E4C",alternatives:[],normalized:"async"},tell:{primary:"\u0E1A\u0E2D\u0E01",alternatives:[],normalized:"tell"},default:{primary:"\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",alternatives:[],normalized:"default"},init:{primary:"\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",alternatives:[],normalized:"init"},behavior:{primary:"\u0E1E\u0E24\u0E15\u0E34\u0E01\u0E23\u0E23\u0E21",alternatives:[],normalized:"behavior"},install:{primary:"\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07",alternatives:[],normalized:"install"},measure:{primary:"\u0E27\u0E31\u0E14",alternatives:[],normalized:"measure"},beep:{primary:"\u0E1A\u0E35\u0E4A\u0E1A",alternatives:[],normalized:"beep"},break:{primary:"\u0E2B\u0E22\u0E38\u0E14",alternatives:[],normalized:"break"},copy:{primary:"\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",alternatives:[],normalized:"copy"},exit:{primary:"\u0E2D\u0E2D\u0E01",alternatives:[],normalized:"exit"},pick:{primary:"\u0E40\u0E25\u0E37\u0E2D\u0E01",alternatives:[],normalized:"pick"},render:{primary:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",alternatives:[],normalized:"render"},into:{primary:"\u0E43\u0E19",alternatives:[],normalized:"into"},before:{primary:"\u0E01\u0E48\u0E2D\u0E19",alternatives:[],normalized:"before"},after:{primary:"\u0E2B\u0E25\u0E31\u0E07",alternatives:[],normalized:"after"},until:{primary:"\u0E08\u0E19\u0E16\u0E36\u0E07",alternatives:[],normalized:"until"},event:{primary:"\u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C",alternatives:[],normalized:"event"},from:{primary:"\u0E08\u0E32\u0E01",normalized:"from"}},tokenization:{boundaryStrategy:"character"},eventHandler:{keyword:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"],normalized:"on"},sourceMarker:{primary:"\u0E08\u0E32\u0E01",position:"before"},eventMarker:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"],position:"before"},temporalMarkers:["\u0E40\u0E21\u0E37\u0E48\u0E2D","\u0E15\u0E2D\u0E19"]}}}}),tl={};A(tl,{ThaiTokenizer:()=>pi,thaiTokenizer:()=>mi});var $t,rl,pi,mi,nl=g({"src/tokenizers/thai.ts"(){"use strict";W(),Ht(),$t=Q([[3584,3711]]),rl=[{native:"\u0E08\u0E23\u0E34\u0E07",normalized:"true"},{native:"\u0E40\u0E17\u0E47\u0E08",normalized:"false"},{native:"\u0E27\u0E48\u0E32\u0E07",normalized:"null"},{native:"\u0E44\u0E21\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14",normalized:"undefined"},{native:"\u0E41\u0E23\u0E01",normalized:"first"},{native:"\u0E2A\u0E38\u0E14\u0E17\u0E49\u0E32\u0E22",normalized:"last"},{native:"\u0E16\u0E31\u0E14\u0E44\u0E1B",normalized:"next"},{native:"\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",normalized:"previous"},{native:"\u0E43\u0E01\u0E25\u0E49\u0E2A\u0E38\u0E14",normalized:"closest"},{native:"\u0E15\u0E49\u0E19\u0E17\u0E32\u0E07",normalized:"parent"},{native:"\u0E04\u0E25\u0E34\u0E01",normalized:"click"},{native:"\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07",normalized:"change"},{native:"\u0E2A\u0E48\u0E07",normalized:"submit"},{native:"\u0E2D\u0E34\u0E19\u0E1E\u0E38\u0E15",normalized:"input"},{native:"\u0E42\u0E2B\u0E25\u0E14",normalized:"load"},{native:"\u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19",normalized:"scroll"},{native:"\u0E40\u0E27\u0E25\u0E32",normalized:"when"},{native:"\u0E44\u0E1B\u0E22\u0E31\u0E07",normalized:"to"},{native:"\u0E14\u0E49\u0E27\u0E22",normalized:"with"},{native:"\u0E41\u0E25\u0E30",normalized:"and"}],pi=class extends I{constructor(){super(),this.language="th",this.direction="ltr",this.initializeKeywordsFromProfile(pt,rl)}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let a=this.tryEventModifier(e,t);if(a){r.push(a),t=a.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let i=this.trySelector(e,t);if(i){r.push(i),t=i.position.end;continue}}if(R(e[t])){let a=this.tryString(e,t);if(a){r.push(a),t=a.position.end;continue}}if(N(e,t)){let a=this.tryUrl(e,t);if(a){r.push(a),t=a.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let a=this.tryNumber(e,t);if(a){r.push(a),t=a.position.end;continue}}if(e[t]===":"){let a=t;t++;let i="";for(;t<e.length&&(x(e[t])||$t(e[t]));)i+=e[t],t++;if(i){r.push(c(":"+i,"identifier",m(a,t),":"+i));continue}t=a}if($t(e[t])){let a=t,i=this.tryProfileKeyword(e,t);if(i){r.push(i),t=i.position.end;continue}let u="";for(;t<e.length&&$t(e[t])&&!(u.length>0&&this.isKeywordStart(e,t));)u+=e[t],t++;u&&r.push(c(u,"identifier",m(a,t)));continue}if(x(e[t])){let a=t,i="";for(;t<e.length&&x(e[t]);)i+=e[t],t++;r.push(c(i,"identifier",m(a,t),i.toLowerCase()));continue}let n=t;r.push(c(e[t],"operator",m(n,t+1))),t++}return new P(r,this.language)}classifyToken(e){return this.isKeyword(e)?"keyword":e.startsWith(".")||e.startsWith("#")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith(":")?"identifier":e.startsWith('"')||e.startsWith("'")||/^-?\d/.test(e)?"literal":"identifier"}},mi=new pi}}),il={};A(il,{tagalogProfile:()=>mt});var mt,Gt=g({"src/generators/profiles/tl.ts"(){"use strict";mt={code:"tl",name:"Tagalog",nativeName:"Tagalog",direction:"ltr",wordOrder:"VSO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"ako",it:"ito",you:"ikaw",result:"resulta",event:"pangyayari",target:"target",body:"body"},possessive:{marker:"ng",markerPosition:"between",keywords:{ko:"me",akin:"me",aking:"me",mo:"you",iyo:"you",niya:"it",nito:"it",kaniya:"it"}},roleMarkers:{destination:{primary:"sa",position:"before"},source:{primary:"mula_sa",position:"before"},patient:{primary:"",position:"before"},style:{primary:"nang",position:"before"}},keywords:{toggle:{primary:"palitan",alternatives:["itoggle"],normalized:"toggle"},add:{primary:"idagdag",alternatives:["magdagdag"],normalized:"add"},remove:{primary:"alisin",alternatives:["tanggalin"],normalized:"remove"},put:{primary:"ilagay",alternatives:["maglagay"],normalized:"put"},append:{primary:"idagdag_sa_dulo",normalized:"append"},prepend:{primary:"idagdag_sa_simula",normalized:"prepend"},take:{primary:"kumuha",normalized:"take"},make:{primary:"gumawa",alternatives:["lumikha"],normalized:"make"},clone:{primary:"kopyahin",normalized:"clone"},swap:{primary:"palitan_pwesto",alternatives:["magpalit"],normalized:"swap"},morph:{primary:"baguhin",normalized:"morph"},set:{primary:"itakda",alternatives:["magtakda"],normalized:"set"},get:{primary:"kunin",alternatives:["kumuha"],normalized:"get"},increment:{primary:"dagdagan",alternatives:["taasan"],normalized:"increment"},decrement:{primary:"bawasan",alternatives:["ibaba"],normalized:"decrement"},log:{primary:"itala",normalized:"log"},show:{primary:"ipakita",alternatives:["magpakita"],normalized:"show"},hide:{primary:"itago",alternatives:["magtago"],normalized:"hide"},transition:{primary:"baguhin",alternatives:["lumipat"],normalized:"transition"},on:{primary:"kapag",alternatives:["kung","sa"],normalized:"on"},trigger:{primary:"palitawin",alternatives:["magpatugtog"],normalized:"trigger"},send:{primary:"ipadala",alternatives:["magpadala"],normalized:"send"},focus:{primary:"ituon",normalized:"focus"},blur:{primary:"alisin_tuon",normalized:"blur"},go:{primary:"pumunta",alternatives:["punta"],normalized:"go"},wait:{primary:"maghintay",alternatives:["hintay"],normalized:"wait"},fetch:{primary:"kuhanin_mula",alternatives:["kunin_mula"],normalized:"fetch"},settle:{primary:"magpatahimik",normalized:"settle"},if:{primary:"kung",alternatives:["kapag"],normalized:"if"},when:{primary:"kapag",normalized:"when"},where:{primary:"kung_saan",normalized:"where"},else:{primary:"kung_hindi",alternatives:["kundi"],normalized:"else"},repeat:{primary:"ulitin",alternatives:["paulit-ulit"],normalized:"repeat"},for:{primary:"para_sa",normalized:"for"},while:{primary:"habang",normalized:"while"},continue:{primary:"magpatuloy",normalized:"continue"},halt:{primary:"itigil",alternatives:["huminto"],normalized:"halt"},throw:{primary:"ihagis",alternatives:["itapon"],normalized:"throw"},call:{primary:"tawagin",alternatives:["tawagan","tumawag"],normalized:"call"},return:{primary:"ibalik",alternatives:["bumalik"],normalized:"return"},then:{primary:"pagkatapos",alternatives:["saka"],normalized:"then"},and:{primary:"at",normalized:"and"},end:{primary:"wakas",alternatives:["tapos"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"async",normalized:"async"},tell:{primary:"sabihin",alternatives:["magsabi"],normalized:"tell"},default:{primary:"pamantayan",alternatives:["default","unang_halaga"],normalized:"default"},init:{primary:"simulan",alternatives:["magsimula"],normalized:"init"},behavior:{primary:"ugali",alternatives:["kilos"],normalized:"behavior"},install:{primary:"ikabit",alternatives:["mag-install"],normalized:"install"},measure:{primary:"sukatin",normalized:"measure"},beep:{primary:"tunog",normalized:"beep"},break:{primary:"itigil",normalized:"break"},copy:{primary:"kopyahin",normalized:"copy"},exit:{primary:"lumabas",normalized:"exit"},pick:{primary:"pumili",normalized:"pick"},render:{primary:"ipakita",normalized:"render"},into:{primary:"sa",normalized:"into"},before:{primary:"bago",normalized:"before"},after:{primary:"matapos",alternatives:["pagkatapos"],normalized:"after"},until:{primary:"hanggang",normalized:"until"},event:{primary:"pangyayari",normalized:"event"},from:{primary:"mula",alternatives:["galing"],normalized:"from"}},eventHandler:{keyword:{primary:"kapag",normalized:"on"},sourceMarker:{primary:"mula_sa",alternatives:["galing_sa"],position:"before"},eventMarker:{primary:"kapag",alternatives:["kung","sa"],position:"before"}}}}}),al={};A(al,{TagalogTokenizer:()=>ci,tagalogTokenizer:()=>di});var ul,ci,di,ol=g({"src/tokenizers/tl.ts"(){"use strict";W(),Gt(),ul=[{native:"totoo",normalized:"true"},{native:"mali",normalized:"false"},{native:"wala",normalized:"null"},{native:"hindi_tinukoy",normalized:"undefined"},{native:"una",normalized:"first"},{native:"huli",normalized:"last"},{native:"susunod",normalized:"next"},{native:"nakaraan",normalized:"previous"},{native:"pinakamalapit",normalized:"closest"},{native:"magulang",normalized:"parent"},{native:"pindot",normalized:"click"},{native:"pagbabago",normalized:"change"},{native:"isumite",normalized:"submit"},{native:"input",normalized:"input"},{native:"karga",normalized:"load"},{native:"mag_scroll",normalized:"scroll"}],ci=class extends I{constructor(){super(),this.language="tl",this.direction="ltr",this.initializeKeywordsFromProfile(mt,ul)}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let n=this.tryEventModifier(e,t);if(n){r.push(n),t=n.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let a=this.trySelector(e,t);if(a){r.push(a),t=a.position.end;continue}}if(R(e[t])){let n=this.tryString(e,t);if(n){r.push(n),t=n.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let n=this.tryNumber(e,t);if(n){r.push(n),t=n.position.end;continue}}if(N(e,t)){let n=this.tryUrl(e,t);if(n){r.push(n),t=n.position.end;continue}}if(e[t]===":"){let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}}if("()[]{}:,;".includes(e[t])){r.push(c(e[t],"operator",m(t,t+1))),t++;continue}if(x(e[t])){let n=t,a=this.tryProfileKeyword(e,t);if(a){r.push(a),t=a.position.end;continue}let i="";for(;t<e.length&&x(e[t]);)i+=e[t],t++;i&&r.push(c(i,"identifier",m(n,t)));continue}t++}return new P(r,"tl")}classifyToken(e){return this.isKeyword(e)?"keyword":e.startsWith(".")||e.startsWith("#")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith(":")?"identifier":e.startsWith('"')||e.startsWith("'")||/^-?\d/.test(e)?"literal":"identifier"}},di=new ci}});function vm(e){let r=e.charCodeAt(0);return r>=65&&r<=90||r>=97&&r<=122?!0:"\xE7\xC7\u011F\u011E\u0131\u0130\xF6\xD6\u015F\u015E\xFC\xDC".includes(e)}function hm(e){for(let r of e)if(vm(r))return!0;return!1}function yi(e){return"a\u0131ouAIOU".includes(e)}function sl(e){return"ei\xF6\xFCE\u0130\xD6\xDC".includes(e)}function ll(e){return yi(e)||sl(e)}function gm(e){for(let r=e.length-1;r>=0;r--)if(ll(e[r]))return e[r];return null}function Em(e,r){let t=gm(e);if(!t)return!0;let n=r.split("").find(a=>ll(a));return n?yi(t)?yi(n):sl(n):!0}var pl,fi,zm,km=g({"src/tokenizers/morphology/turkish-normalizer.ts"(){"use strict";H(),pl=[{pattern:"iyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"uyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"iyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"eceksiniz",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaks\u0131n\u0131z",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"eceksin",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaks\u0131n",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"ece\u011Fiz",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"aca\u011F\u0131z",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"ece\u011Fim",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"aca\u011F\u0131m",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"ecekler",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaklar",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"mi\u015Fsiniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015Fs\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015Fs\xFCn\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fsunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fsin",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015Fs\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015Fs\xFCn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fsun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fiz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015F\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015F\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015F\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015F\xFCm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015Flar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015Fler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Flar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"diniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCn\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tiniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCn\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"diler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131lar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dular",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tiler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131lar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tular",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"din",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tin",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131k",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"duk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131k",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tuk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\xFCm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"dum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\xFCm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"iyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"uyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"ecek",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"acak",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"mi\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mu\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"di",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\u0131",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\xFC",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"du",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"ti",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\u0131",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\xFC",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tu",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mek",confidence:.88,conjugationType:"dictionary",minStemLength:2},{pattern:"mak",confidence:.88,conjugationType:"dictionary",minStemLength:2},{pattern:"eyelim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"ayal\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"eyim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"ay\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"elim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"al\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"melisiniz",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131s\u0131n\u0131z",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"melisin",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131s\u0131n",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meliyiz",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131y\u0131z",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meliyim",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131y\u0131m",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"meliler",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131lar",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meli",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"ebiliyor",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"abiliyor",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"ebilir",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"abilir",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"ebildi",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"abildi",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"ebilmek",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"abilmek",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"iniz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"\u0131n\u0131z",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"\xFCn\xFCz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"unuz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"in",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"\u0131n",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"\xFCn",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"un",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"ildi",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\u0131ld\u0131",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\xFCld\xFC",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"uldu",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ilir",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\u0131l\u0131r",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\xFCl\xFCr",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ulur",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"tirmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"t\u0131rmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"t\xFCrmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"turmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"dirmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"d\u0131rmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"d\xFCrmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"durmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"miyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"muyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"miyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"muyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"medi",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"mad\u0131",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"me",confidence:.75,conjugationType:"negative",minStemLength:3},{pattern:"ma",confidence:.75,conjugationType:"negative",minStemLength:3}],fi=class{constructor(){this.language="tr"}isNormalizable(e){return!(!hm(e)||e.length<3)}normalize(e){let r=e.toLowerCase();for(let t of pl)if(r.endsWith(t.pattern)){let n=r.slice(0,-t.pattern.length),a=t.minStemLength??2;if(n.length<a)continue;if(!Em(n,t.pattern)){let u=t.confidence*.9,o={removedSuffixes:[t.pattern]};return t.conjugationType&&(o.conjugationType=t.conjugationType),z(n,u,o)}let i={removedSuffixes:[t.pattern]};return t.conjugationType&&(i.conjugationType=t.conjugationType),z(n,t.confidence,i)}return j(e)}},zm=new fi}}),ml={};A(ml,{turkishProfile:()=>Se});var Se,ct=g({"src/generators/profiles/turkish.ts"(){"use strict";Se={code:"tr",name:"Turkish",nativeName:"T\xFCrk\xE7e",direction:"ltr",wordOrder:"SOV",markingStrategy:"case-suffix",usesSpaces:!0,verb:{position:"end",suffixes:["mek","mak","yor","di","mi\u015F"],subjectDrop:!0},references:{me:"ben",it:"o",you:"sen",result:"sonu\xE7",event:"olay",target:"hedef",body:"g\xF6vde"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"benim",it:"onun",you:"senin"},keywords:{benim:"me",senin:"you",onun:"it"}},roleMarkers:{patient:{primary:"i",alternatives:["\u0131","u","\xFC","yi","y\u0131","yu","y\xFC","ni","n\u0131","nu","n\xFC"],position:"after"},destination:{primary:"e",alternatives:["a","ye","ya","ne","na","de","da","te","ta","\u0131n","in","un","\xFCn","n\u0131n","nin","nun","n\xFCn"],position:"after"},source:{primary:"den",alternatives:["dan","ten","tan"],position:"after"},style:{primary:"le",alternatives:["la","yle","yla"],position:"after"},event:{primary:"i",alternatives:["\u0131","u","\xFC"],position:"after"}},keywords:{toggle:{primary:"de\u011Fi\u015Ftir",alternatives:["a\xE7/kapat"],normalized:"toggle"},add:{primary:"ekle",normalized:"add"},remove:{primary:"kald\u0131r",alternatives:["sil"],normalized:"remove"},put:{primary:"koy",normalized:"put"},append:{primary:"ekle",normalized:"append"},take:{primary:"tut",normalized:"take"},make:{primary:"yap",normalized:"make"},clone:{primary:"kopyala",normalized:"clone"},swap:{primary:"takas",normalized:"swap"},morph:{primary:"d\xF6n\xFC\u015Ft\xFCr",alternatives:["\u015Fekil de\u011Fi\u015Ftir"],normalized:"morph"},set:{primary:"ayarla",alternatives:["yap","belirle"],normalized:"set"},get:{primary:"al",normalized:"get"},increment:{primary:"art\u0131r",normalized:"increment"},decrement:{primary:"azalt",normalized:"decrement"},log:{primary:"kaydet",normalized:"log"},show:{primary:"g\xF6ster",normalized:"show"},hide:{primary:"gizle",normalized:"hide"},transition:{primary:"ge\xE7i\u015F",normalized:"transition"},on:{primary:"\xFCzerinde",alternatives:["oldu\u011Funda","zaman"],normalized:"on"},trigger:{primary:"tetikle",normalized:"trigger"},send:{primary:"g\xF6nder",normalized:"send"},focus:{primary:"odak",alternatives:["odaklanma"],normalized:"focus"},blur:{primary:"bulan\u0131k",alternatives:["bulan\u0131kl\u0131k"],normalized:"blur"},click:{primary:"t\u0131klama",alternatives:["t\u0131kla"],normalized:"click"},hover:{primary:"\xFCzerine gelme",alternatives:["\xFCzerinde gezinme"],normalized:"hover"},submit:{primary:"g\xF6nderme",alternatives:["g\xF6nder"],normalized:"submit"},input:{primary:"giri\u015F",alternatives:["girdi"],normalized:"input"},change:{primary:"de\u011Fi\u015Fiklik",alternatives:["de\u011Fi\u015Fim"],normalized:"change"},go:{primary:"git",normalized:"go"},wait:{primary:"bekle",normalized:"wait"},fetch:{primary:"getir",normalized:"fetch"},settle:{primary:"sabitlen",normalized:"settle"},if:{primary:"e\u011Fer",normalized:"if"},when:{primary:"iken",alternatives:["durumunda","oldu\u011Funda"],normalized:"when"},where:{primary:"nerede",normalized:"where"},else:{primary:"yoksa",normalized:"else"},repeat:{primary:"tekrarla",normalized:"repeat"},for:{primary:"i\xE7in",normalized:"for"},while:{primary:"iken",normalized:"while"},continue:{primary:"devam",normalized:"continue"},halt:{primary:"durdur",normalized:"halt"},throw:{primary:"f\u0131rlat",normalized:"throw"},call:{primary:"\xE7a\u011F\u0131r",normalized:"call"},return:{primary:"d\xF6n",normalized:"return"},then:{primary:"sonra",alternatives:["ard\u0131ndan","daha sonra"],normalized:"then"},and:{primary:"ve",alternatives:["ayr\u0131ca","hem de"],normalized:"and"},end:{primary:"son",alternatives:["biti\u015F","bitti"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asenkron",normalized:"async"},tell:{primary:"s\xF6yle",normalized:"tell"},default:{primary:"varsay\u0131lan",normalized:"default"},init:{primary:"ba\u015Flat",normalized:"init"},behavior:{primary:"davran\u0131\u015F",normalized:"behavior"},install:{primary:"y\xFCkle",alternatives:["kur","y\xFCklemek"],normalized:"install"},measure:{primary:"\xF6l\xE7",normalized:"measure"},beep:{primary:"bip",normalized:"beep"},break:{primary:"dur",normalized:"break"},copy:{primary:"kopyala",normalized:"copy"},exit:{primary:"\xE7\u0131k",normalized:"exit"},pick:{primary:"se\xE7",normalized:"pick"},render:{primary:"render",normalized:"render"},into:{primary:"i\xE7ine",normalized:"into"},before:{primary:"\xF6nce",normalized:"before"},after:{primary:"sonra",normalized:"after"},until:{primary:"kadar",normalized:"until"},event:{primary:"olay",normalized:"event"},from:{primary:"den",alternatives:["dan"],normalized:"from"}},eventHandler:{eventMarker:{primary:"da",alternatives:["de","ta","te"],position:"after"},temporalMarkers:["d\u0131\u011F\u0131nda","di\u011Finde"]}}}}),cl={};A(cl,{TurkishTokenizer:()=>gi,turkishTokenizer:()=>Qt});var Xt,vi,hi,dl,yl,gi,Qt,Ei=g({"src/tokenizers/turkish.ts"(){"use strict";W(),km(),ct(),{isLetter:Xt}=K(/[a-zA-ZçÇğĞıİöÖşŞüÜ]/),vi=new Set(["ile","i\xE7in","kadar","gibi","\xF6nce","\xFCzerinde","alt\u0131nda","i\xE7inde","d\u0131\u015F\u0131nda","aras\u0131nda","kar\u015F\u0131","g\xF6re","ra\u011Fmen","do\u011Fru","boyunca"]),hi=new Set(["de","da","te","ta","den","dan","ten","tan","e","a","ye","ya","i","\u0131","u","\xFC","in","\u0131n","un","\xFCn","le","la","yle","yla"]),dl=[{native:"do\u011Fru",normalized:"true"},{native:"dogru",normalized:"true"},{native:"yanl\u0131\u015F",normalized:"false"},{native:"yanlis",normalized:"false"},{native:"null",normalized:"null"},{native:"bo\u015F",normalized:"null"},{native:"bos",normalized:"null"},{native:"tan\u0131ms\u0131z",normalized:"undefined"},{native:"tanimsiz",normalized:"undefined"},{native:"ilk",normalized:"first"},{native:"son",normalized:"last"},{native:"sonraki",normalized:"next"},{native:"\xF6nceki",normalized:"previous"},{native:"onceki",normalized:"previous"},{native:"en_yak\u0131n",normalized:"closest"},{native:"en_yakin",normalized:"closest"},{native:"ebeveyn",normalized:"parent"},{native:"t\u0131klama",normalized:"click"},{native:"tiklama",normalized:"click"},{native:"t\u0131k",normalized:"click"},{native:"tik",normalized:"click"},{native:"giri\u015F",normalized:"input"},{native:"giris",normalized:"input"},{native:"de\u011Fi\u015Fim",normalized:"change"},{native:"degisim",normalized:"change"},{native:"odak",normalized:"focus"},{native:"bulan\u0131k",normalized:"blur"},{native:"bulanik",normalized:"blur"},{native:"fare \xFCzerinde",normalized:"mouseover"},{native:"fare uzerinde",normalized:"mouseover"},{native:"fare d\u0131\u015F\u0131nda",normalized:"mouseout"},{native:"fare disinda",normalized:"mouseout"},{native:"kayd\u0131r",normalized:"scroll"},{native:"kaydir",normalized:"scroll"},{native:"tu\u015F_bas",normalized:"keydown"},{native:"tus_bas",normalized:"keydown"},{native:"tu\u015F_b\u0131rak",normalized:"keyup"},{native:"tus_birak",normalized:"keyup"},{native:"benim",normalized:"my"},{native:"onun",normalized:"its"},{native:"saniye",normalized:"s"},{native:"milisaniye",normalized:"ms"},{native:"dakika",normalized:"m"},{native:"saat",normalized:"h"},{native:"sonra",normalized:"then"},{native:"ard\u0131ndan",normalized:"then"},{native:"ardindan",normalized:"then"},{native:"daha sonra",normalized:"then"},{native:"ve",normalized:"and"},{native:"veya",normalized:"or"},{native:"de\u011Fil",normalized:"not"},{native:"degil",normalized:"not"}],yl=[{pattern:"milisaniye",suffix:"ms",length:10,caseInsensitive:!0},{pattern:"dakika",suffix:"m",length:6,caseInsensitive:!0},{pattern:"saniye",suffix:"s",length:6,caseInsensitive:!0},{pattern:"saat",suffix:"h",length:4,caseInsensitive:!0},{pattern:"dk",suffix:"m",length:2,checkBoundary:!0},{pattern:"sa",suffix:"h",length:2,checkBoundary:!0}],gi=class extends I{constructor(){super(),this.language="tr",this.direction="ltr",this.initializeKeywordsFromProfile(Se,dl),this.normalizer=new fi}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])){let i=this.extractTurkishNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}let a=this.tryMultiWordPhrase(e,t);if(a){r.push(a),t=a.position.end;continue}if(Xt(e[t])){let i=this.extractTurkishWord(e,t);if(i){r.push(i),t=i.position.end;continue}}t++}return new P(r,"tr")}classifyToken(e){let r=e.toLowerCase();return vi.has(r)||hi.has(r)?"particle":this.isKeyword(r)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}tryMultiWordPhrase(e,r){for(let t of this.profileKeywords){if(!t.native.includes(" "))continue;let n=t.native;if(e.slice(r,r+n.length).toLowerCase()===n.toLowerCase()){let i=r+n.length;if(i>=e.length||b(e[i])||!Xt(e[i]))return c(e.slice(r,r+n.length),"keyword",m(r,i),t.normalized)}}return null}extractTurkishWord(e,r){let t=r,n="";for(;t<e.length&&(Xt(e[t])||e[t]==="_");)n+=e[t++];if(!n)return null;let a=n.toLowerCase();if(hi.has(a)||vi.has(a))return c(n,"particle",m(r,t));let i=this.lookupKeyword(a);if(i)return c(n,"keyword",m(r,t),i.normalized);let u=this.tryMorphKeywordMatch(a,r,t);return u||c(n,"identifier",m(r,t))}extractTurkishNumber(e,r){return this.tryNumberWithTimeUnits(e,r,yl,{allowSign:!1,skipWhitespace:!0})}},Qt=new gi}}),fl={};A(fl,{ukrainianProfile:()=>dt});var dt,Zt=g({"src/generators/profiles/ukrainian.ts"(){"use strict";dt={code:"uk",name:"Ukrainian",nativeName:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0,suffixes:["\u0442\u0438","\u0442\u0438\u0441\u044F","\u0438\u0442\u0438","\u0438\u0442\u0438\u0441\u044F","\u0430\u0442\u0438","\u0430\u0442\u0438\u0441\u044F","\u0456\u0442\u0438","\u0456\u0442\u0438\u0441\u044F"]},references:{me:"\u044F",it:"\u0446\u0435",you:"\u0442\u0438",result:"\u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442",event:"\u043F\u043E\u0434\u0456\u044F",target:"\u0446\u0456\u043B\u044C",body:"body"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u043C\u0456\u0439",it:"\u0439\u043E\u0433\u043E",you:"\u0442\u0432\u0456\u0439"},keywords:{\u043C\u0456\u0439:"me",\u043C\u043E\u044F:"me",\u043C\u043E\u0454:"me",\u043C\u043E\u0457:"me",\u0442\u0432\u0456\u0439:"you",\u0442\u0432\u043E\u044F:"you",\u0442\u0432\u043E\u0454:"you",\u0442\u0432\u043E\u0457:"you",\u0439\u043E\u0433\u043E:"it",\u0457\u0457:"it"}},roleMarkers:{destination:{primary:"\u0432",alternatives:["\u043D\u0430","\u0434\u043E"],position:"before"},source:{primary:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0437",alternatives:["\u0456\u0437"],position:"before"}},keywords:{toggle:{primary:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438"],normalized:"toggle",form:"infinitive"},add:{primary:"\u0434\u043E\u0434\u0430\u0442\u0438",alternatives:["\u0434\u043E\u0434\u0430\u0439"],normalized:"add",form:"infinitive"},remove:{primary:"\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438",alternatives:["\u0432\u0438\u0434\u0430\u043B\u0438","\u043F\u0440\u0438\u0431\u0440\u0430\u0442\u0438","\u043F\u0440\u0438\u0431\u0435\u0440\u0438"],normalized:"remove",form:"infinitive"},put:{primary:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438","\u0432\u0441\u0442\u0430\u0432"],normalized:"put",form:"infinitive"},append:{primary:"\u0434\u043E\u0434\u0430\u0442\u0438_\u0432_\u043A\u0456\u043D\u0435\u0446\u044C",alternatives:["\u0434\u043E\u043F\u0438\u0441\u0430\u0442\u0438"],normalized:"append",form:"infinitive"},prepend:{primary:"\u0434\u043E\u0434\u0430\u0442\u0438_\u043D\u0430_\u043F\u043E\u0447\u0430\u0442\u043E\u043A",normalized:"prepend",form:"infinitive"},take:{primary:"\u0432\u0437\u044F\u0442\u0438",alternatives:["\u0432\u0456\u0437\u044C\u043C\u0438"],normalized:"take",form:"infinitive"},make:{primary:"\u0441\u0442\u0432\u043E\u0440\u0438\u0442\u0438",alternatives:["\u0441\u0442\u0432\u043E\u0440\u0438"],normalized:"make",form:"infinitive"},clone:{primary:"\u043A\u043B\u043E\u043D\u0443\u0432\u0430\u0442\u0438",alternatives:["\u043A\u043B\u043E\u043D\u0443\u0439"],normalized:"clone",form:"infinitive"},swap:{primary:"\u043F\u043E\u043C\u0456\u043D\u044F\u0442\u0438",alternatives:["\u043F\u043E\u043C\u0456\u043D\u044F\u0439"],normalized:"swap",form:"infinitive"},morph:{primary:"\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0439"],normalized:"morph",form:"infinitive"},set:{primary:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438",alternatives:["\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u0438","\u0437\u0430\u0434\u0430\u0439"],normalized:"set",form:"infinitive"},get:{primary:"\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438",alternatives:["\u043E\u0442\u0440\u0438\u043C\u0430\u0439"],normalized:"get",form:"infinitive"},increment:{primary:"\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438",alternatives:["\u0437\u0431\u0456\u043B\u044C\u0448"],normalized:"increment",form:"infinitive"},decrement:{primary:"\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438",alternatives:["\u0437\u043C\u0435\u043D\u0448"],normalized:"decrement",form:"infinitive"},log:{primary:"\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u0438",alternatives:["\u0437\u0430\u043F\u0438\u0448\u0438"],normalized:"log",form:"infinitive"},show:{primary:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"],normalized:"show",form:"infinitive"},hide:{primary:"\u0441\u0445\u043E\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0445\u043E\u0432\u0430\u0439","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0439"],normalized:"hide",form:"infinitive"},transition:{primary:"\u0430\u043D\u0456\u043C\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0430\u043D\u0456\u043C\u0443\u0439"],normalized:"transition",form:"infinitive"},on:{primary:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u043B\u0438"],normalized:"on"},trigger:{primary:"\u0432\u0438\u043A\u043B\u0438\u043A\u0430\u0442\u0438",alternatives:["\u0432\u0438\u043A\u043B\u0438\u0447"],normalized:"trigger",form:"infinitive"},send:{primary:"\u043D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438",alternatives:["\u043D\u0430\u0434\u0456\u0448\u043B\u0438"],normalized:"send",form:"infinitive"},focus:{primary:"\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0439","\u0444\u043E\u043A\u0443\u0441"],normalized:"focus",form:"infinitive"},blur:{primary:"\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0439"],normalized:"blur",form:"infinitive"},click:{primary:"\u043A\u043B\u0456\u043A\u0443",alternatives:["\u043A\u043B\u0456\u043A","\u043D\u0430\u0442\u0438\u0441\u043A\u0430\u043D\u043D\u0456"],normalized:"click"},hover:{primary:"\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u043D\u0456",alternatives:["\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u043D\u044F"],normalized:"hover"},submit:{primary:"\u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0446\u0456",alternatives:["\u0432\u0456\u0434\u043F\u0440\u0430\u0432\u043A\u0430"],normalized:"submit"},input:{primary:"\u0432\u0432\u0435\u0434\u0435\u043D\u043D\u0456",alternatives:["\u0432\u0432\u0435\u0434\u0435\u043D\u043D\u044F"],normalized:"input"},change:{primary:"\u0437\u043C\u0456\u043D\u0456",alternatives:["\u0437\u043C\u0456\u043D\u0430"],normalized:"change"},go:{primary:"\u043F\u0435\u0440\u0435\u0439\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u0439\u0442\u0438","\u0439\u0434\u0438"],normalized:"go",form:"infinitive"},wait:{primary:"\u0447\u0435\u043A\u0430\u0442\u0438",alternatives:["\u0447\u0435\u043A\u0430\u0439","\u0437\u0430\u0447\u0435\u043A\u0430\u0439"],normalized:"wait",form:"infinitive"},fetch:{primary:"\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438",alternatives:["\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436"],normalized:"fetch",form:"infinitive"},settle:{primary:"\u0441\u0442\u0430\u0431\u0456\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438",normalized:"settle",form:"infinitive"},if:{primary:"\u044F\u043A\u0449\u043E",normalized:"if"},when:{primary:"\u043A\u043E\u043B\u0438",normalized:"when"},where:{primary:"\u0434\u0435",normalized:"where"},else:{primary:"\u0456\u043D\u0430\u043A\u0448\u0435",normalized:"else"},repeat:{primary:"\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",alternatives:["\u043F\u043E\u0432\u0442\u043E\u0440\u0438"],normalized:"repeat",form:"infinitive"},for:{primary:"\u0434\u043B\u044F",alternatives:["\u043A\u043E\u0436\u043D\u0438\u0439"],normalized:"for"},while:{primary:"\u043F\u043E\u043A\u0438",normalized:"while"},continue:{primary:"\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438",alternatives:["\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0439"],normalized:"continue",form:"infinitive"},halt:{primary:"\u0437\u0443\u043F\u0438\u043D\u0438\u0442\u0438",alternatives:["\u0437\u0443\u043F\u0438\u043D\u0438\u0441\u044C","\u0441\u0442\u043E\u043F"],normalized:"halt",form:"infinitive"},throw:{primary:"\u043A\u0438\u043D\u0443\u0442\u0438",alternatives:["\u043A\u0438\u043D\u044C"],normalized:"throw",form:"infinitive"},call:{primary:"\u0432\u0438\u043A\u043B\u0438\u043A\u0430\u0442\u0438",alternatives:["\u0432\u0438\u043A\u043B\u0438\u0447"],normalized:"call",form:"infinitive"},return:{primary:"\u043F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u0438",alternatives:["\u043F\u043E\u0432\u0435\u0440\u043D\u0438"],normalized:"return",form:"infinitive"},then:{primary:"\u043F\u043E\u0442\u0456\u043C",alternatives:["\u0434\u0430\u043B\u0456","\u0442\u043E\u0434\u0456"],normalized:"then"},and:{primary:"\u0456",alternatives:["\u0442\u0430"],normalized:"and"},end:{primary:"\u043A\u0456\u043D\u0435\u0446\u044C",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E",alternatives:["async"],normalized:"async"},tell:{primary:"\u0441\u043A\u0430\u0437\u0430\u0442\u0438",alternatives:["\u0441\u043A\u0430\u0436\u0438"],normalized:"tell",form:"infinitive"},default:{primary:"\u0437\u0430_\u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C",normalized:"default"},init:{primary:"\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0439"],normalized:"init",form:"infinitive"},behavior:{primary:"\u043F\u043E\u0432\u0435\u0434\u0456\u043D\u043A\u0430",normalized:"behavior"},install:{primary:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438_\u043F\u0430\u043A\u0435\u0442",normalized:"install",form:"infinitive"},measure:{primary:"\u0432\u0438\u043C\u0456\u0440\u044F\u0442\u0438",alternatives:["\u0432\u0438\u043C\u0456\u0440\u044F\u0439"],normalized:"measure",form:"infinitive"},beep:{primary:"\u0437\u0432\u0443\u043A",normalized:"beep"},break:{primary:"\u043F\u0435\u0440\u0435\u0440\u0432\u0430\u0442\u0438",normalized:"break"},copy:{primary:"\u043A\u043E\u043F\u0456\u044E\u0432\u0430\u0442\u0438",normalized:"copy"},exit:{primary:"\u0432\u0438\u0439\u0442\u0438",normalized:"exit"},pick:{primary:"\u0432\u0438\u0431\u0440\u0430\u0442\u0438",normalized:"pick"},render:{primary:"\u0432\u0456\u0434\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u0438",normalized:"render"},into:{primary:"\u0432",alternatives:["\u0443"],normalized:"into"},before:{primary:"\u0434\u043E",alternatives:["\u043F\u0435\u0440\u0435\u0434"],normalized:"before"},after:{primary:"\u043F\u0456\u0441\u043B\u044F",normalized:"after"},until:{primary:"\u0434\u043E",alternatives:["\u043F\u043E\u043A\u0438_\u043D\u0435"],normalized:"until"},event:{primary:"\u043F\u043E\u0434\u0456\u044F",normalized:"event"},from:{primary:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"],normalized:"from"}},eventHandler:{keyword:{primary:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u043B\u0438"],normalized:"on"},sourceMarker:{primary:"\u043D\u0430",alternatives:["\u0432","\u043F\u0440\u0438"],position:"before"},eventMarker:{primary:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u043B\u0438"],position:"before"},temporalMarkers:["\u043A\u043E\u043B\u0438","\u044F\u043A\u0449\u043E"]}}}});function Cm(e){return/[а-яА-ЯіІїЇєЄґҐьЬ']/.test(e)}var zi,ki,Am,wm=g({"src/tokenizers/morphology/ukrainian-normalizer.ts"(){"use strict";H(),zi=new Map([["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438","\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438"],["\u0434\u043E\u0434\u0430\u0439","\u0434\u043E\u0434\u0430\u0442\u0438"],["\u0432\u0438\u0434\u0430\u043B\u0438","\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438"],["\u043F\u0440\u0438\u0431\u0435\u0440\u0438","\u043F\u0440\u0438\u0431\u0440\u0430\u0442\u0438"],["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438"],["\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438"],["\u0432\u0441\u0442\u0430\u0432","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438"],["\u0432\u0456\u0437\u044C\u043C\u0438","\u0432\u0437\u044F\u0442\u0438"],["\u0441\u0442\u0432\u043E\u0440\u0438","\u0441\u0442\u0432\u043E\u0440\u0438\u0442\u0438"],["\u043A\u043B\u043E\u043D\u0443\u0439","\u043A\u043B\u043E\u043D\u0443\u0432\u0430\u0442\u0438"],["\u043F\u043E\u043C\u0456\u043D\u044F\u0439","\u043F\u043E\u043C\u0456\u043D\u044F\u0442\u0438"],["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0439","\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438"],["\u0437\u0430\u0434\u0430\u0439","\u0437\u0430\u0434\u0430\u0442\u0438"],["\u043E\u0442\u0440\u0438\u043C\u0430\u0439","\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438"],["\u0437\u0431\u0456\u043B\u044C\u0448","\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438"],["\u0437\u043C\u0435\u043D\u0448","\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438"],["\u0437\u0430\u043F\u0438\u0448\u0438","\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u0438"],["\u043F\u043E\u043A\u0430\u0436\u0438","\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438"],["\u0441\u0445\u043E\u0432\u0430\u0439","\u0441\u0445\u043E\u0432\u0430\u0442\u0438"],["\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0439","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438"],["\u0430\u043D\u0456\u043C\u0443\u0439","\u0430\u043D\u0456\u043C\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0438\u043A\u043B\u0438\u0447","\u0432\u0438\u043A\u043B\u0438\u043A\u0430\u0442\u0438"],["\u043D\u0430\u0434\u0456\u0448\u043B\u0438","\u043D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438"],["\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0439","\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438"],["\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0439","\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438"],["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u043F\u0435\u0440\u0435\u0439\u0442\u0438"],["\u0439\u0434\u0438","\u0439\u0442\u0438"],["\u0447\u0435\u043A\u0430\u0439","\u0447\u0435\u043A\u0430\u0442\u0438"],["\u0437\u0430\u0447\u0435\u043A\u0430\u0439","\u0437\u0430\u0447\u0435\u043A\u0430\u0442\u0438"],["\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436","\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438"],["\u043F\u043E\u0432\u0442\u043E\u0440\u0438","\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438"],["\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0439","\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438"],["\u043A\u0438\u043D\u044C","\u043A\u0438\u043D\u0443\u0442\u0438"],["\u043F\u043E\u0432\u0435\u0440\u043D\u0438","\u043F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u0438"],["\u0441\u043A\u0430\u0436\u0438","\u0441\u043A\u0430\u0437\u0430\u0442\u0438"],["\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0439","\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0438\u043C\u0456\u0440\u044F\u0439","\u0432\u0438\u043C\u0456\u0440\u044F\u0442\u0438"]]),ki=class{constructor(){this.language="uk"}isNormalizable(e){return e.length<3?!1:Cm(e)}normalize(e){let r=e.toLowerCase();if(r.endsWith("\u0441\u044F")||r.endsWith("\u0441\u044C")){let u=this.tryReflexiveNormalization(r);if(u)return u}if(r.endsWith("\u0442\u0438")||r.endsWith("\u0447\u0438"))return j(e);let t=this.tryImperativeLookup(r);if(t)return t;let n=this.tryPastTenseNormalization(r);if(n)return n;let a=this.tryPresentTenseNormalization(r);if(a)return a;let i=this.tryGenericImperativeNormalization(r);return i||j(e)}tryReflexiveNormalization(e){let r=e.slice(0,-2);if(e.endsWith("\u0442\u0438\u0441\u044F")||e.endsWith("\u0447\u0438\u0441\u044F"))return j(e);let t=this.normalizeNonReflexive(r);if(t.confidence<1){let n=t.stem.endsWith("\u0442\u0438")?t.stem.slice(0,-2)+"\u0442\u0438\u0441\u044F":t.stem+"\u0441\u044F";return z(n,t.confidence*.95,{removedSuffixes:["\u0441\u044F",...t.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}normalizeNonReflexive(e){if(e.endsWith("\u0442\u0438")||e.endsWith("\u0447\u0438"))return j(e);let r=this.tryImperativeLookup(e);if(r)return r;let t=this.tryPastTenseNormalization(e);if(t)return t;let n=this.tryPresentTenseNormalization(e);if(n)return n;let a=this.tryGenericImperativeNormalization(e);return a||j(e)}tryImperativeLookup(e){return zi.has(e)?z(zi.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):null}tryGenericImperativeNormalization(e){return e.endsWith("\u0439\u0442\u0435")&&e.length>5?z(e.slice(0,-3)+"\u0442\u0438",.8,{removedSuffixes:["\u0439\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0456\u0442\u044C")&&e.length>5?z(e.slice(0,-3)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0456\u0442\u044C"],conjugationType:"imperative"}):e.endsWith("\u0439")&&e.length>3?z(e.slice(0,-1)+"\u0442\u0438",.75,{removedSuffixes:["\u0439"],conjugationType:"imperative"}):e.endsWith("\u0438")&&e.length>3?z(e+"\u0442\u0438",.7,{removedSuffixes:["\u0438\u2192\u0438\u0442\u0438"],conjugationType:"imperative"}):null}tryPastTenseNormalization(e){return e.endsWith("\u0430\u043B\u0430")&&e.length>4?z(e.slice(0,-3)+"\u0430\u0442\u0438",.85,{removedSuffixes:["\u0430\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0430")&&e.length>4?z(e.slice(0,-3)+"\u0438\u0442\u0438",.85,{removedSuffixes:["\u0438\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0430\u043B\u0438")&&e.length>4?z(e.slice(0,-3)+"\u0430\u0442\u0438",.85,{removedSuffixes:["\u0430\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0438")&&e.length>4?z(e.slice(0,-3)+"\u0438\u0442\u0438",.85,{removedSuffixes:["\u0438\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0430\u0432")&&e.length>3?z(e.slice(0,-2)+"\u0430\u0442\u0438",.82,{removedSuffixes:["\u0430\u0432"],conjugationType:"past"}):e.endsWith("\u0438\u0432")&&e.length>3?z(e.slice(0,-2)+"\u0438\u0442\u0438",.82,{removedSuffixes:["\u0438\u0432"],conjugationType:"past"}):null}tryPresentTenseNormalization(e){return e.endsWith("\u0438\u0448")&&e.length>3?z(e.slice(0,-2)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0438\u0448"],conjugationType:"present"}):e.endsWith("\u0438\u0442\u044C")&&e.length>4?z(e.slice(0,-3)+"\u0438\u0442\u0438",.78,{removedSuffixes:["\u0438\u0442\u044C"],conjugationType:"present"}):e.endsWith("\u0438\u043C\u043E")&&e.length>4?z(e.slice(0,-3)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0438\u043C\u043E"],conjugationType:"present"}):e.endsWith("\u044F\u0442\u044C")&&e.length>4?z(e.slice(0,-3)+"\u0438\u0442\u0438",.78,{removedSuffixes:["\u044F\u0442\u044C"],conjugationType:"present"}):e.endsWith("\u0454\u0448")&&e.length>3?z(e.slice(0,-2)+"\u0430\u0442\u0438",.78,{removedSuffixes:["\u0454\u0448"],conjugationType:"present"}):e.endsWith("\u0435\u0448")&&e.length>3?z(e.slice(0,-2)+"\u0430\u0442\u0438",.75,{removedSuffixes:["\u0435\u0448"],conjugationType:"present"}):e.endsWith("\u0454")&&e.length>2?z(e.slice(0,-1)+"\u0430\u0442\u0438",.72,{removedSuffixes:["\u0454"],conjugationType:"present"}):e.endsWith("\u0454\u043C\u043E")&&e.length>4?z(e.slice(0,-3)+"\u0430\u0442\u0438",.8,{removedSuffixes:["\u0454\u043C\u043E"],conjugationType:"present"}):e.endsWith("\u044E\u0442\u044C")&&e.length>4?z(e.slice(0,-3)+"\u0430\u0442\u0438",.78,{removedSuffixes:["\u044E\u0442\u044C"],conjugationType:"present"}):e.endsWith("\u0443\u0442\u044C")&&e.length>4?z(e.slice(0,-3)+"\u0430\u0442\u0438",.75,{removedSuffixes:["\u0443\u0442\u044C"],conjugationType:"present"}):null}},Am=new ki}}),vl={};A(vl,{UkrainianTokenizer:()=>Ai,ukrainianTokenizer:()=>wi});var hl,gl,Ci,El,Ai,wi,zl=g({"src/tokenizers/ukrainian.ts"(){"use strict";W(),Zt(),wm(),{isLetter:hl,isIdentifierChar:gl}=K(/[a-zA-Zа-яА-ЯіІїЇєЄґҐьЬ']/),Ci=new Set(["\u0432","\u0443","\u043D\u0430","\u0437","\u0456\u0437","\u0437\u0456","\u0434\u043E","\u0432\u0456\u0434","\u043E","\u043E\u0431","\u043F\u0440\u0438","\u0434\u043B\u044F","\u043F\u0456\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043C\u0456\u0436","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u043F\u043E","\u0437\u0430","\u043F\u0440\u043E","\u043F\u0456\u0441\u043B\u044F","\u043D\u0430\u0432\u043A\u043E\u043B\u043E","\u043F\u0440\u043E\u0442\u0438","\u0437\u0430\u043C\u0456\u0441\u0442\u044C","\u043A\u0440\u0456\u043C","\u0441\u0435\u0440\u0435\u0434","\u043A"]),El=[{native:"\u0456\u0441\u0442\u0438\u043D\u0430",normalized:"true"},{native:"\u043F\u0440\u0430\u0432\u0434\u0430",normalized:"true"},{native:"\u0445\u0438\u0431\u043D\u0456\u0441\u0442\u044C",normalized:"false"},{native:"null",normalized:"null"},{native:"\u043D\u0435\u0432\u0438\u0437\u043D\u0430\u0447\u0435\u043D\u043E",normalized:"undefined"},{native:"\u043F\u0435\u0440\u0448\u0438\u0439",normalized:"first"},{native:"\u043F\u0435\u0440\u0448\u0430",normalized:"first"},{native:"\u043F\u0435\u0440\u0448\u0435",normalized:"first"},{native:"\u043E\u0441\u0442\u0430\u043D\u043D\u0456\u0439",normalized:"last"},{native:"\u043E\u0441\u0442\u0430\u043D\u043D\u044F",normalized:"last"},{native:"\u043E\u0441\u0442\u0430\u043D\u043D\u0454",normalized:"last"},{native:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439",normalized:"next"},{native:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0430",normalized:"next"},{native:"\u043F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439",normalized:"previous"},{native:"\u043F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F",normalized:"previous"},{native:"\u043D\u0430\u0439\u0431\u043B\u0438\u0436\u0447\u0438\u0439",normalized:"closest"},{native:"\u0431\u0430\u0442\u044C\u043A\u043E",normalized:"parent"},{native:"\u043A\u043B\u0456\u043A",normalized:"click"},{native:"\u043D\u0430\u0442\u0438\u0441\u043A\u0430\u043D\u043D\u044F",normalized:"click"},{native:"click",normalized:"click"},{native:"\u0437\u043C\u0456\u043D\u0430",normalized:"change"},{native:"\u043D\u0430\u0434\u0441\u0438\u043B\u0430\u043D\u043D\u044F",normalized:"submit"},{native:"\u043A\u043B\u0430\u0432\u0456\u0448\u0430",normalized:"keydown"},{native:"\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u043D\u044F",normalized:"mouseover"},{native:"\u0432\u0456\u0434\u0432\u0435\u0434\u0435\u043D\u043D\u044F",normalized:"mouseout"},{native:"\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F",normalized:"load"},{native:"\u043F\u0440\u043E\u043A\u0440\u0443\u0442\u043A\u0430",normalized:"scroll"},{native:"\u0432\u0432\u0435\u0434\u0435\u043D\u043D\u044F",normalized:"input"},{native:"\u043C\u0456\u0439",normalized:"my"},{native:"\u043C\u043E\u044F",normalized:"my"},{native:"\u043C\u043E\u0454",normalized:"my"},{native:"\u043C\u043E\u0457",normalized:"my"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u0438",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"s"},{native:"\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"ms"},{native:"\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0438",normalized:"ms"},{native:"\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"ms"},{native:"\u0445\u0432\u0438\u043B\u0438\u043D\u0430",normalized:"m"},{native:"\u0445\u0432\u0438\u043B\u0438\u043D\u0438",normalized:"m"},{native:"\u0445\u0432\u0438\u043B\u0438\u043D",normalized:"m"},{native:"\u0433\u043E\u0434\u0438\u043D\u0430",normalized:"h"},{native:"\u0433\u043E\u0434\u0438\u043D\u0438",normalized:"h"},{native:"\u0433\u043E\u0434\u0438\u043D",normalized:"h"},{native:"\u0430\u0431\u043E",normalized:"or"},{native:"\u043D\u0435",normalized:"not"},{native:"\u0454",normalized:"is"},{native:"\u0456\u0441\u043D\u0443\u0454",normalized:"exists"},{native:"\u043F\u043E\u0440\u043E\u0436\u043D\u0456\u0439",normalized:"empty"},{native:"\u043F\u043E\u0440\u043E\u0436\u043D\u044F",normalized:"empty"},{native:"\u043F\u043E\u0440\u043E\u0436\u043D\u0454",normalized:"empty"}],Ai=class extends I{constructor(){super(),this.language="uk",this.direction="ltr",this.initializeKeywordsFromProfile(dt,El),this.normalizer=new ki}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])){let i=this.tryString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])||e[t]==="-"&&t+1<e.length&&k(e[t+1])){let i=this.extractNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}if(hl(e[t])){let i=this.extractWord(e,t);if(i){r.push(i),t=i.position.end;continue}}let a=this.tryOperator(e,t);if(a){r.push(a),t=a.position.end;continue}t++}return new P(r,"uk")}classifyToken(e){let r=e.toLowerCase();return Ci.has(r)?"particle":this.isKeyword(r)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}extractWord(e,r){let t=r,n="";for(;t<e.length&&gl(e[t]);)n+=e[t++];if(!n)return null;let a=n.toLowerCase();if(Ci.has(a))return c(n,"particle",m(r,t));let i=this.lookupKeyword(a);return i?c(n,"keyword",m(r,t),i.normalized):c(n,"identifier",m(r,t))}extractNumber(e,r){let t=r,n="";for((e[t]==="-"||e[t]==="+")&&(n+=e[t++]);t<e.length&&k(e[t]);)n+=e[t++];if(t<e.length&&e[t]===".")for(n+=e[t++];t<e.length&&k(e[t]);)n+=e[t++];let a=t;for(;a<e.length&&b(e[a]);)a++;let i=e.slice(a).toLowerCase();return i.startsWith("\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434")||i.startsWith("\u043C\u0441")?i.startsWith("\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434")?(n+="ms",t=a+10,i.length>10&&/[аи]/.test(i[10])&&t++):(n+="ms",t=a+2):i.startsWith("\u0441\u0435\u043A\u0443\u043D\u0434")||i.startsWith("\u0441\u0435\u043A")?i.startsWith("\u0441\u0435\u043A\u0443\u043D\u0434")?(n+="s",t=a+6,i.length>6&&/[аи]/.test(i[6])&&t++):(n+="s",t=a+3):i.startsWith("\u0445\u0432\u0438\u043B\u0438\u043D")||i.startsWith("\u0445\u0432")?i.startsWith("\u0445\u0432\u0438\u043B\u0438\u043D")?(n+="m",t=a+6,i.length>6&&/[аи]/.test(i[6])&&t++):(n+="m",t=a+2):i.startsWith("\u0433\u043E\u0434\u0438\u043D")?(n+="h",t=a+5,i.length>5&&/[аи]/.test(i[5])&&t++):i.startsWith("ms")?(n+="ms",t=a+2):i.startsWith("s")&&!i.startsWith("se")&&(n+="s",t=a+1),!n||n==="-"||n==="+"?null:c(n,"literal",m(r,t))}},wi=new Ai}}),kl={};A(kl,{vietnameseProfile:()=>yt});var yt,Yt=g({"src/generators/profiles/vietnamese.ts"(){"use strict";yt={code:"vi",name:"Vietnamese",nativeName:"Ti\u1EBFng Vi\u1EC7t",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"t\xF4i",it:"n\xF3",you:"b\u1EA1n",result:"k\u1EBFt qu\u1EA3",event:"s\u1EF1 ki\u1EC7n",target:"m\u1EE5c ti\xEAu",body:"body"},possessive:{marker:"c\u1EE7a",markerPosition:"between",specialForms:{me:"c\u1EE7a t\xF4i",it:"c\u1EE7a n\xF3",you:"c\u1EE7a b\u1EA1n"},keywords:{"c\u1EE7a t\xF4i":"me","c\u1EE7a b\u1EA1n":"you","c\u1EE7a anh":"you","c\u1EE7a ch\u1ECB":"you","c\u1EE7a n\xF3":"it"}},roleMarkers:{destination:{primary:"v\xE0o",alternatives:["cho","\u0111\u1EBFn"],position:"before"},source:{primary:"t\u1EEB",alternatives:["kh\u1ECFi"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"v\u1EDBi",position:"before"}},keywords:{toggle:{primary:"chuy\u1EC3n \u0111\u1ED5i",alternatives:["b\u1EADt t\u1EAFt","chuy\u1EC3n"],normalized:"toggle"},add:{primary:"th\xEAm",alternatives:["b\u1ED5 sung"],normalized:"add"},remove:{primary:"x\xF3a",alternatives:["g\u1EE1 b\u1ECF","lo\u1EA1i b\u1ECF","b\u1ECF"],normalized:"remove"},put:{primary:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"],normalized:"put"},append:{primary:"n\u1ED1i",normalized:"append"},prepend:{primary:"th\xEAm v\xE0o \u0111\u1EA7u",normalized:"prepend"},take:{primary:"l\u1EA5y",normalized:"take"},make:{primary:"t\u1EA1o",normalized:"make"},clone:{primary:"sao ch\xE9p",normalized:"clone"},swap:{primary:"ho\xE1n \u0111\u1ED5i",normalized:"swap"},morph:{primary:"bi\u1EBFn \u0111\u1ED5i",normalized:"morph"},set:{primary:"g\xE1n",alternatives:["thi\u1EBFt l\u1EADp","\u0111\u1EB7t"],normalized:"set"},get:{primary:"l\u1EA5y gi\xE1 tr\u1ECB",alternatives:["nh\u1EADn","l\u1EA5y"],normalized:"get"},increment:{primary:"t\u0103ng",alternatives:["t\u0103ng l\xEAn"],normalized:"increment"},decrement:{primary:"gi\u1EA3m",alternatives:["gi\u1EA3m \u0111i"],normalized:"decrement"},log:{primary:"in ra",normalized:"log"},show:{primary:"hi\u1EC3n th\u1ECB",alternatives:["hi\u1EC7n"],normalized:"show"},hide:{primary:"\u1EA9n",alternatives:["che","gi\u1EA5u"],normalized:"hide"},transition:{primary:"chuy\u1EC3n ti\u1EBFp",normalized:"transition"},on:{primary:"khi",alternatives:["l\xFAc","tr\xEAn"],normalized:"on"},trigger:{primary:"k\xEDch ho\u1EA1t",normalized:"trigger"},send:{primary:"g\u1EEDi",normalized:"send"},focus:{primary:"t\u1EADp trung",normalized:"focus"},blur:{primary:"m\u1EA5t t\u1EADp trung",normalized:"blur"},click:{primary:"nh\u1EA5p",alternatives:["b\u1EA5m"],normalized:"click"},hover:{primary:"di chu\u1ED9t",alternatives:["r\xEA chu\u1ED9t"],normalized:"hover"},submit:{primary:"g\u1EEDi",alternatives:["n\u1ED9p"],normalized:"submit"},input:{primary:"nh\u1EADp",alternatives:["nh\u1EADp li\u1EC7u"],normalized:"input"},change:{primary:"thay \u0111\u1ED5i",alternatives:["\u0111\u1ED5i"],normalized:"change"},go:{primary:"\u0111i \u0111\u1EBFn",alternatives:["\u0111i"],normalized:"go"},wait:{primary:"ch\u1EDD",alternatives:["\u0111\u1EE3i"],normalized:"wait"},fetch:{primary:"t\u1EA3i",normalized:"fetch"},settle:{primary:"\u1ED5n \u0111\u1ECBnh",normalized:"settle"},if:{primary:"n\u1EBFu",normalized:"if"},when:{primary:"khi",normalized:"when"},where:{primary:"\u1EDF_\u0111\xE2u",normalized:"where"},else:{primary:"kh\xF4ng th\xEC",alternatives:["n\u1EBFu kh\xF4ng"],normalized:"else"},repeat:{primary:"l\u1EB7p l\u1EA1i",normalized:"repeat"},for:{primary:"v\u1EDBi m\u1ED7i",normalized:"for"},while:{primary:"trong khi",normalized:"while"},continue:{primary:"ti\u1EBFp t\u1EE5c",normalized:"continue"},halt:{primary:"d\u1EEBng",alternatives:["d\u1EEBng l\u1EA1i"],normalized:"halt"},throw:{primary:"n\xE9m",normalized:"throw"},call:{primary:"g\u1ECDi",normalized:"call"},return:{primary:"tr\u1EA3 v\u1EC1",normalized:"return"},then:{primary:"r\u1ED3i",alternatives:["sau \u0111\xF3","th\xEC"],normalized:"then"},and:{primary:"v\xE0",normalized:"and"},end:{primary:"k\u1EBFt th\xFAc",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"b\u1EA5t \u0111\u1ED3ng b\u1ED9",normalized:"async"},tell:{primary:"n\xF3i v\u1EDBi",normalized:"tell"},default:{primary:"m\u1EB7c \u0111\u1ECBnh",normalized:"default"},init:{primary:"kh\u1EDFi t\u1EA1o",normalized:"init"},behavior:{primary:"h\xE0nh vi",normalized:"behavior"},install:{primary:"c\xE0i \u0111\u1EB7t",normalized:"install"},measure:{primary:"\u0111o l\u01B0\u1EDDng",normalized:"measure"},beep:{primary:"beep",normalized:"beep"},break:{primary:"d\u1EEBng",normalized:"break"},copy:{primary:"sao ch\xE9p",normalized:"copy"},exit:{primary:"tho\xE1t",normalized:"exit"},pick:{primary:"ch\u1ECDn",normalized:"pick"},render:{primary:"k\u1EBFt xu\u1EA5t",normalized:"render"},into:{primary:"v\xE0o",alternatives:["v\xE0o trong"],normalized:"into"},before:{primary:"tr\u01B0\u1EDBc",alternatives:["tr\u01B0\u1EDBc khi"],normalized:"before"},after:{primary:"sau",alternatives:["sau khi"],normalized:"after"},until:{primary:"cho \u0111\u1EBFn khi",normalized:"until"},event:{primary:"s\u1EF1 ki\u1EC7n",normalized:"event"},from:{primary:"t\u1EEB",alternatives:["kh\u1ECFi"],normalized:"from"}},eventHandler:{keyword:{primary:"khi",alternatives:["l\xFAc","tr\xEAn"],normalized:"on"},sourceMarker:{primary:"tr\xEAn",alternatives:["t\u1EA1i"],position:"before"},eventMarker:{primary:"khi",alternatives:["l\xFAc"],position:"before"},temporalMarkers:["khi","l\xFAc"]}}}}),Cl={};A(Cl,{VietnameseTokenizer:()=>xi,vietnameseTokenizer:()=>Di});var Pe,Al,bi,wl,xi,Di,bl=g({"src/tokenizers/vietnamese.ts"(){"use strict";W(),Yt(),{isLetter:Pe,isIdentifierChar:Al}=K(/[a-zA-ZàáảãạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệìíỉĩịòóỏõọôồốổỗộơờớởỡợùúủũụưừứửữựỳýỷỹỵđÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÈÉẺẼẸÊỀẾỂỄỆÌÍỈĨỊÒÓỎÕỌÔỒỐỔỖỘƠỜỚỞỠỢÙÚỦŨỤƯỪỨỬỮỰỲÝỶỸỴĐ]/),bi=new Set(["trong","ngo\xE0i","tr\xEAn","d\u01B0\u1EDBi","v\xE0o","ra","\u0111\u1EBFn","t\u1EEB","v\u1EDBi","cho","b\u1EDFi","qua","tr\u01B0\u1EDBc","sau","gi\u1EEFa","b\xEAn","theo","v\u1EC1","t\u1EDBi","l\xEAn","xu\u1ED1ng"]),wl=[{native:"\u0111\xFAng",normalized:"true"},{native:"sai",normalized:"false"},{native:"null",normalized:"null"},{native:"kh\xF4ng x\xE1c \u0111\u1ECBnh",normalized:"undefined"},{native:"\u0111\u1EA7u ti\xEAn",normalized:"first"},{native:"cu\u1ED1i c\xF9ng",normalized:"last"},{native:"ti\u1EBFp theo",normalized:"next"},{native:"tr\u01B0\u1EDBc \u0111\xF3",normalized:"previous"},{native:"g\u1EA7n nh\u1EA5t",normalized:"closest"},{native:"cha",normalized:"parent"},{native:"nh\u1EA5p",normalized:"click"},{native:"nh\u1EA5p chu\u1ED9t",normalized:"click"},{native:"click",normalized:"click"},{native:"nh\u1EA5p \u0111\xFAp",normalized:"dblclick"},{native:"nh\u1EADp",normalized:"input"},{native:"thay \u0111\u1ED5i",normalized:"change"},{native:"g\u1EEDi bi\u1EC3u m\u1EABu",normalized:"submit"},{native:"ph\xEDm xu\u1ED1ng",normalized:"keydown"},{native:"ph\xEDm l\xEAn",normalized:"keyup"},{native:"chu\u1ED9t v\xE0o",normalized:"mouseover"},{native:"chu\u1ED9t ra",normalized:"mouseout"},{native:"t\u1EA3i trang",normalized:"load"},{native:"cu\u1ED9n",normalized:"scroll"},{native:"c\u1EE7a t\xF4i",normalized:"my"},{native:"c\u1EE7a n\xF3",normalized:"its"},{native:"gi\xE2y",normalized:"s"},{native:"mili gi\xE2y",normalized:"ms"},{native:"ph\xFAt",normalized:"m"},{native:"gi\u1EDD",normalized:"h"},{native:"th\xEAm v\xE0o cu\u1ED1i",normalized:"append"},{native:"nh\xE2n b\u1EA3n",normalized:"clone"},{native:"t\u1EA1o ra",normalized:"make"},{native:"\u0111\u1EB7t gi\xE1 tr\u1ECB",normalized:"set"},{native:"ghi nh\u1EADt k\xFD",normalized:"log"},{native:"chuy\u1EC3n t\u1EDBi",normalized:"go"},{native:"ng\u01B0\u1EE3c l\u1EA1i",normalized:"else"},{native:"l\u1EB7p",normalized:"repeat"},{native:"ho\u1EB7c",normalized:"or"},{native:"kh\xF4ng",normalized:"not"},{native:"l\xE0",normalized:"is"},{native:"t\u1ED3n t\u1EA1i",normalized:"exists"},{native:"r\u1ED7ng",normalized:"empty"},{native:"javascript",normalized:"js"}],xi=class extends I{constructor(){super(),this.language="vi",this.direction="ltr",this.initializeKeywordsFromProfile(yt,wl)}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let u=this.tryEventModifier(e,t);if(u){r.push(u),t=u.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let o=this.trySelector(e,t);if(o){r.push(o),t=o.position.end;continue}}if(R(e[t])){let u=this.tryString(e,t);if(u){r.push(u),t=u.position.end;continue}}if(N(e,t)){let u=this.tryUrl(e,t);if(u){r.push(u),t=u.position.end;continue}}if(k(e[t])){let u=this.extractVietnameseNumber(e,t);if(u){r.push(u),t=u.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}let a=this.tryOperator(e,t);if(a){r.push(a),t=a.position.end;continue}let i=this.tryMultiWordPhrase(e,t);if(i){r.push(i),t=i.position.end;continue}if(Pe(e[t])){let u=this.extractVietnameseWord(e,t);if(u){r.push(u),t=u.position.end;continue}}t++}return new P(r,"vi")}classifyToken(e){let r=e.toLowerCase();return bi.has(r)?"particle":this.isKeyword(r)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}tryMultiWordPhrase(e,r){for(let t of this.profileKeywords){if(!t.native.includes(" "))continue;let n=t.native;if(e.slice(r,r+n.length).toLowerCase()===n.toLowerCase()){let i=e[r+n.length];if(i&&Pe(i))continue;return c(e.slice(r,r+n.length),"keyword",m(r,r+n.length),t.normalized)}}return null}extractVietnameseWord(e,r){let t=r,n="";for(;t<e.length&&Al(e[t]);)n+=e[t++];if(!n)return null;let a=n.toLowerCase();if(bi.has(a))return c(n,"particle",m(r,t));let i=this.lookupKeyword(a);return i?c(n,"keyword",m(r,t),i.normalized):c(n,"identifier",m(r,t))}extractVietnameseNumber(e,r){let t=r,n="";for(;t<e.length&&k(e[t]);)n+=e[t++];if(t<e.length&&e[t]===".")for(n+=e[t++];t<e.length&&k(e[t]);)n+=e[t++];if(t<e.length){let a=e.slice(t).toLowerCase();a.startsWith(" mili gi\xE2y")||a.startsWith(" miligi\xE2y")?(n+="ms",t+=a.startsWith(" mili gi\xE2y")?10:9):a.startsWith(" gi\xE2y")?(n+="s",t+=5):a.startsWith(" ph\xFAt")?(n+="m",t+=5):a.startsWith(" gi\u1EDD")?(n+="h",t+=4):a.startsWith("ms")?(n+="ms",t+=2):a[0]==="s"&&!Pe(a[1]||"")?(n+="s",t+=1):a[0]==="m"&&a[1]!=="s"&&!Pe(a[1]||"")?(n+="m",t+=1):a[0]==="h"&&!Pe(a[1]||"")&&(n+="h",t+=1)}return n?c(n,"literal",m(r,t)):null}},Di=new xi}}),xl={};A(xl,{chineseProfile:()=>je});var je,ft=g({"src/generators/profiles/chinese.ts"(){"use strict";je={code:"zh",name:"Chinese",nativeName:"\u4E2D\u6587",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!1,verb:{position:"second",subjectDrop:!0},references:{me:"\u6211",it:"\u5B83",you:"\u4F60",result:"\u7ED3\u679C",event:"\u4E8B\u4EF6",target:"\u76EE\u6807",body:"\u4E3B\u4F53"},possessive:{marker:"\u7684",markerPosition:"between",keywords:{\u6211\u7684:"me",\u4F60\u7684:"you",\u5B83\u7684:"it",\u4ED6\u7684:"it",\u5979\u7684:"it"}},roleMarkers:{destination:{primary:"\u5728",alternatives:["\u5230","\u4E8E"],position:"before"},source:{primary:"\u4ECE",alternatives:["\u7531"],position:"before"},patient:{primary:"\u628A",position:"before"},style:{primary:"\u7528",alternatives:["\u4EE5"],position:"before"}},keywords:{toggle:{primary:"\u5207\u6362",normalized:"toggle"},add:{primary:"\u6DFB\u52A0",alternatives:["\u52A0"],normalized:"add"},remove:{primary:"\u79FB\u9664",alternatives:["\u5220\u9664","\u53BB\u6389"],normalized:"remove"},put:{primary:"\u653E\u7F6E",alternatives:["\u653E","\u653E\u5165"],normalized:"put"},append:{primary:"\u8FFD\u52A0",alternatives:["\u9644\u52A0"],normalized:"append"},prepend:{primary:"\u524D\u7F6E",alternatives:["\u9884\u7F6E"],normalized:"prepend"},take:{primary:"\u83B7\u53D6",normalized:"take"},make:{primary:"\u5236\u4F5C",normalized:"make"},clone:{primary:"\u590D\u5236",normalized:"clone"},swap:{primary:"\u4EA4\u6362",normalized:"swap"},morph:{primary:"\u53D8\u5F62",alternatives:["\u8F6C\u6362"],normalized:"morph"},set:{primary:"\u8BBE\u7F6E",alternatives:["\u8BBE\u5B9A"],normalized:"set"},get:{primary:"\u83B7\u5F97",alternatives:["\u83B7\u53D6","\u53D6\u5F97"],normalized:"get"},increment:{primary:"\u589E\u52A0",normalized:"increment"},decrement:{primary:"\u51CF\u5C11",normalized:"decrement"},log:{primary:"\u65E5\u5FD7",normalized:"log"},show:{primary:"\u663E\u793A",alternatives:["\u5C55\u793A"],normalized:"show"},hide:{primary:"\u9690\u85CF",normalized:"hide"},transition:{primary:"\u8FC7\u6E21",normalized:"transition"},on:{primary:"\u5F53",alternatives:["\u5728...\u65F6"],normalized:"on"},trigger:{primary:"\u89E6\u53D1",normalized:"trigger"},send:{primary:"\u53D1\u9001",normalized:"send"},focus:{primary:"\u805A\u7126",normalized:"focus"},blur:{primary:"\u5931\u7126",normalized:"blur"},click:{primary:"\u70B9\u51FB",normalized:"click"},hover:{primary:"\u60AC\u505C",alternatives:["\u60AC\u6D6E"],normalized:"hover"},submit:{primary:"\u63D0\u4EA4",normalized:"submit"},input:{primary:"\u8F93\u5165",normalized:"input"},change:{primary:"\u6539\u53D8",alternatives:["\u53D8\u5316"],normalized:"change"},go:{primary:"\u524D\u5F80",normalized:"go"},wait:{primary:"\u7B49\u5F85",normalized:"wait"},fetch:{primary:"\u83B7\u53D6",normalized:"fetch"},settle:{primary:"\u7A33\u5B9A",normalized:"settle"},if:{primary:"\u5982\u679C",normalized:"if"},when:{primary:"\u5F53",normalized:"when"},where:{primary:"\u54EA\u91CC",normalized:"where"},else:{primary:"\u5426\u5219",normalized:"else"},repeat:{primary:"\u91CD\u590D",normalized:"repeat"},for:{primary:"\u4E3A",normalized:"for"},while:{primary:"\u5F53",normalized:"while"},continue:{primary:"\u7EE7\u7EED",normalized:"continue"},halt:{primary:"\u505C\u6B62",normalized:"halt"},throw:{primary:"\u629B\u51FA",normalized:"throw"},call:{primary:"\u8C03\u7528",normalized:"call"},return:{primary:"\u8FD4\u56DE",normalized:"return"},then:{primary:"\u7136\u540E",alternatives:["\u63A5\u7740","\u4E4B\u540E"],normalized:"then"},and:{primary:"\u5E76\u4E14",alternatives:["\u548C","\u800C\u4E14"],normalized:"and"},end:{primary:"\u7ED3\u675F",alternatives:["\u7EC8\u6B62","\u5B8C"],normalized:"end"},js:{primary:"JS\u6267\u884C",alternatives:["js"],normalized:"js"},async:{primary:"\u5F02\u6B65",normalized:"async"},tell:{primary:"\u544A\u8BC9",normalized:"tell"},default:{primary:"\u9ED8\u8BA4",normalized:"default"},init:{primary:"\u521D\u59CB\u5316",normalized:"init"},behavior:{primary:"\u884C\u4E3A",normalized:"behavior"},install:{primary:"\u5B89\u88C5",normalized:"install"},measure:{primary:"\u6D4B\u91CF",normalized:"measure"},beep:{primary:"\u8702\u9E23",normalized:"beep"},break:{primary:"\u4E2D\u65AD",normalized:"break"},copy:{primary:"\u590D\u5236",normalized:"copy"},exit:{primary:"\u9000\u51FA",normalized:"exit"},pick:{primary:"\u9009\u53D6",normalized:"pick"},render:{primary:"\u6E32\u67D3",normalized:"render"},into:{primary:"\u8FDB\u5165",normalized:"into"},before:{primary:"\u4E4B\u524D",normalized:"before"},after:{primary:"\u4E4B\u540E",normalized:"after"},until:{primary:"\u76F4\u5230",normalized:"until"},event:{primary:"\u4E8B\u4EF6",normalized:"event"},from:{primary:"\u4ECE",normalized:"from"}},tokenization:{boundaryStrategy:"character"},eventHandler:{keyword:{primary:"\u5F53",alternatives:["\u5728...\u65F6"],normalized:"on"},sourceMarker:{primary:"\u4ECE",position:"before"},eventMarker:{primary:"\u5F53",alternatives:["\u5728"],position:"before"},temporalMarkers:["\u5F53","\u5728...\u65F6"]}}}}),Dl={};A(Dl,{ChineseTokenizer:()=>Ti,chineseTokenizer:()=>tr});var Jt,er,Tl,Bl,Fl,Ti,tr,Bi=g({"src/tokenizers/chinese.ts"(){"use strict";W(),ft(),Jt=Q([[19968,40959],[13312,19903],[131072,173791],[63744,64255],[194560,195103]]),er=new Set(["\u628A","\u5728","\u4ECE","\u5230","\u5411","\u7ED9","\u5BF9","\u7528","\u88AB","\u8BA9","\u7684","\u5730","\u5F97","\u4E86","\u7740","\u8FC7","\u5417","\u5462","\u5427"]),Tl=["\u7136\u540E","\u63A5\u7740","\u5E76\u4E14","\u6216\u8005","\u5982\u679C","\u90A3\u4E48","\u5426\u5219"],Bl=[{native:"\u771F",normalized:"true"},{native:"\u5047",normalized:"false"},{native:"\u7A7A",normalized:"null"},{native:"\u672A\u5B9A\u4E49",normalized:"undefined"},{native:"\u7B2C\u4E00\u4E2A",normalized:"first"},{native:"\u9996\u4E2A",normalized:"first"},{native:"\u6700\u540E\u4E00\u4E2A",normalized:"last"},{native:"\u672B\u4E2A",normalized:"last"},{native:"\u4E0B\u4E00\u4E2A",normalized:"next"},{native:"\u4E0A\u4E00\u4E2A",normalized:"previous"},{native:"\u6700\u8FD1\u7684",normalized:"closest"},{native:"\u7236\u7EA7",normalized:"parent"},{native:"\u70B9\u51FB",normalized:"click"},{native:"\u53CC\u51FB",normalized:"dblclick"},{native:"\u8F93\u5165",normalized:"input"},{native:"\u53D8\u66F4",normalized:"change"},{native:"\u6539\u53D8",normalized:"change"},{native:"\u63D0\u4EA4",normalized:"submit"},{native:"\u6309\u952E",normalized:"keydown"},{native:"\u91CA\u653E\u952E",normalized:"keyup"},{native:"\u9F20\u6807\u79FB\u5165",normalized:"mouseover"},{native:"\u9F20\u6807\u79FB\u51FA",normalized:"mouseout"},{native:"\u83B7\u5F97\u7126\u70B9",normalized:"focus"},{native:"\u5931\u53BB\u7126\u70B9",normalized:"blur"},{native:"\u52A0\u8F7D",normalized:"load"},{native:"\u6EDA\u52A8",normalized:"scroll"},{native:"\u6211\u7684",normalized:"my"},{native:"\u5B83\u7684",normalized:"its"},{native:"\u79D2",normalized:"s"},{native:"\u6BEB\u79D2",normalized:"ms"},{native:"\u5206\u949F",normalized:"m"},{native:"\u5C0F\u65F6",normalized:"h"},{native:"\u548C",normalized:"and"},{native:"\u6216\u8005",normalized:"or"},{native:"\u6216",normalized:"or"},{native:"\u4E0D",normalized:"not"},{native:"\u975E",normalized:"not"},{native:"\u662F",normalized:"is"},{native:"\u82E5",normalized:"if"},{native:"\u4E0D\u7136",normalized:"else"},{native:"\u5FAA\u73AF",normalized:"repeat"},{native:"\u904D\u5386",normalized:"for"},{native:"\u6BCF\u4E2A",normalized:"for"},{native:"\u4E3A\u6BCF",normalized:"for"},{native:"\u4E2D\u6B62",normalized:"halt"},{native:"\u629B",normalized:"throw"},{native:"\u547C\u53EB",normalized:"call"},{native:"\u56DE",normalized:"return"},{native:"\u811A\u672C",normalized:"js"},{native:"\u901A\u77E5",normalized:"tell"},{native:"\u7F3A\u7701",normalized:"default"},{native:"\u521D\u59CB",normalized:"init"},{native:"\u52A8\u4F5C",normalized:"behavior"},{native:"\u6FC0\u53D1",normalized:"trigger"},{native:"\u5BF9\u7126",normalized:"focus"},{native:"\u6A21\u7CCA",normalized:"blur"},{native:"\u8DF3\u8F6C",normalized:"go"},{native:"\u5BFC\u822A",normalized:"go"},{native:"\u6293\u53D6",normalized:"fetch"},{native:"\u83B7\u53D6\u6570\u636E",normalized:"fetch"},{native:"\u5B89\u5B9A",normalized:"settle"},{native:"\u62FF\u53D6",normalized:"take"},{native:"\u53D6",normalized:"take"},{native:"\u521B\u5EFA",normalized:"make"},{native:"\u514B\u9686",normalized:"clone"},{native:"\u8BB0\u5F55",normalized:"log"},{native:"\u6253\u5370",normalized:"log"},{native:"\u52A8\u753B",normalized:"transition"},{native:"\u5230\u91CC\u9762",normalized:"into"},{native:"\u91CC",normalized:"into"},{native:"\u524D",normalized:"before"},{native:"\u540E",normalized:"after"},{native:"\u90A3\u4E48",normalized:"then"},{native:"\u5B8C",normalized:"end"}],Fl=[{pattern:"\u6BEB\u79D2",suffix:"ms",length:2},{pattern:"\u5206\u949F",suffix:"m",length:2},{pattern:"\u5C0F\u65F6",suffix:"h",length:2},{pattern:"\u79D2",suffix:"s",length:1},{pattern:"\u5206",suffix:"m",length:1}],Ti=class extends I{constructor(){super(),this.language="zh",this.direction="ltr",this.initializeKeywordsFromProfile(je,Bl)}tokenize(e){let r=[],t=0;for(;t<e.length;){if(b(e[t])){t++;continue}if(_(e[t])){let i=this.tryEventModifier(e,t);if(i){r.push(i),t=i.position.end;continue}if(this.tryPropertyAccess(e,t,r)){t++;continue}let u=this.trySelector(e,t);if(u){r.push(u),t=u.position.end;continue}}if(R(e[t])||e[t]==="\u201C"||e[t]==="\u201D"||e[t]==="\u2018"||e[t]==="\u2019"){let i=this.tryChineseString(e,t);if(i){r.push(i),t=i.position.end;continue}}if(N(e,t)){let i=this.tryUrl(e,t);if(i){r.push(i),t=i.position.end;continue}}if(k(e[t])){let i=this.extractChineseNumber(e,t);if(i){r.push(i),t=i.position.end;continue}}let n=this.tryVariableRef(e,t);if(n){r.push(n),t=n.position.end;continue}let a=this.tryMultiCharParticle(e,t,Tl);if(a){r.push(a),t=a.position.end;continue}if(Jt(e[t])){let i=this.extractChineseWord(e,t);if(i){r.push(i),t=i.position.end;continue}}if(x(e[t])){let i=this.extractAsciiWord(e,t);if(i){r.push(i),t=i.position.end;continue}}t++}return new P(r,"zh")}classifyToken(e){return er.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||e.startsWith("\u201C")||e.startsWith("\u2018")||/^\d/.test(e)?"literal":"identifier"}extractChineseWord(e,r){for(let a of this.profileKeywords){let i=a.native,u=e.slice(r,r+i.length);if(u===i){let o=!0;for(let s=0;s<i.length;s++)if(!Jt(i[s])){o=!1;break}if(o)return c(u,"keyword",m(r,r+i.length),a.normalized)}}let t=r,n="";for(;t<e.length;){let a=e[t];if(er.has(a)&&n.length>0)break;if(Jt(a))n+=a,t++;else break}return n?er.has(n)?c(n,"particle",m(r,t)):c(n,"identifier",m(r,t)):null}extractAsciiWord(e,r){let t=r,n="";for(;t<e.length&&x(e[t]);)n+=e[t++];return n?c(n,"identifier",m(r,t)):null}tryChineseString(e,r){let t=e[r];if(t==='"'||t==="'"||t==="`")return this.tryString(e,r);if(t==="\u201C"){let n=r+1;for(;n<e.length&&e[n]!=="\u201D";)n++;if(n>=e.length)return null;let a=e.slice(r,n+1);return c(a,"literal",m(r,n+1))}if(t==="\u2018"){let n=r+1;for(;n<e.length&&e[n]!=="\u2019";)n++;if(n>=e.length)return null;let a=e.slice(r,n+1);return c(a,"literal",m(r,n+1))}return null}extractChineseNumber(e,r){return this.tryNumberWithTimeUnits(e,r,Fl,{allowSign:!1,skipWhitespace:!1})}},tr=new Ti}});function fe(e){let r="complex";return e.startsWith("#")&&!e.includes(" ")?r="id":e.startsWith(".")&&!e.includes(" ")?r="class":e.startsWith("[")&&e.endsWith("]")?r="attribute":/^[a-z][a-z0-9]*$/i.test(e)&&(r="element"),{type:"selector",value:e,selectorKind:r}}function M(e,r){let t={type:"literal",value:e};return r!==void 0?{type:"literal",value:e,dataType:r}:t}function Fi(e){return Sl.has(e)}function re(e){return{type:"reference",value:e}}function rr(e,r){return{type:"property-path",object:e,property:r}}function Le(e,r,t){let n={kind:"command",action:e,roles:new Map(Object.entries(r))};return t!==void 0?{...n,metadata:t}:n}function nr(e,r,t,n,a,i){let u=new Map;u.set("event",e);let o={kind:"event-handler",action:"on",roles:u,body:r};return t!==void 0&&(o.eventModifiers=t),n!==void 0&&(o.metadata=n),a!==void 0&&a.length>0&&(o.parameterNames=a),i!==void 0&&i.length>0&&(o.additionalEvents=i),o}function Si(e,r="then",t){let n={kind:"compound",action:"compound",roles:new Map,statements:e,chainType:r};return t!==void 0&&(n.metadata=t),n}function bm(e,r,t,n){let a=new Map;a.set("condition",e);let i={kind:"conditional",action:"if",roles:a,thenBranch:r};return t!==void 0&&(i.elseBranch=t),n!==void 0&&(i.metadata=n),i}function xm(e,r,t,n,a){let i={kind:"loop",action:e,loopVariant:r,roles:new Map(Object.entries(t)),body:n};return a?.loopVariable&&(i.loopVariable=a.loopVariable),a?.indexVariable&&(i.indexVariable=a.indexVariable),a?.metadata&&(i.metadata=a.metadata),i}var Sl,ir=g({"src/types.ts"(){"use strict";Sl=new Set(["me","you","it","result","event","target","body"])}});function Dm(e,r){let t=ar[r];return t&&t[e]?t[e]:e.toLowerCase()}var ar,Pl=g({"src/patterns/event-handler/shared.ts"(){"use strict";ar={ko:{\uD074\uB9AD:"click",\uC785\uB825:"input",\uBCC0\uACBD:"change",\uC81C\uCD9C:"submit",\uD0A4\uB2E4\uC6B4:"keydown",\uD0A4\uC5C5:"keyup",\uB9C8\uC6B0\uC2A4\uC624\uBC84:"mouseover",\uB9C8\uC6B0\uC2A4\uC544\uC6C3:"mouseout",\uB9C8\uC6B0\uC2A4\uB2E4\uC6B4:"mousedown",\uB9C8\uC6B0\uC2A4\uC5C5:"mouseup",\uD3EC\uCEE4\uC2A4:"focus",\uBE14\uB7EC:"blur",\uB85C\uB4DC:"load",\uB9AC\uC0AC\uC774\uC988:"resize",\uC2A4\uD06C\uB864:"scroll"},ja:{\u30AF\u30EA\u30C3\u30AF:"click",\u5165\u529B:"input",\u5909\u66F4:"change",\u9001\u4FE1:"submit",\u30AD\u30FC\u30C0\u30A6\u30F3:"keydown",\u30AD\u30FC\u30A2\u30C3\u30D7:"keyup",\u30AD\u30FC\u30D7\u30EC\u30B9:"keypress",\u30DE\u30A6\u30B9\u30AA\u30FC\u30D0\u30FC:"mouseover",\u30DE\u30A6\u30B9\u30A2\u30A6\u30C8:"mouseout",\u30DE\u30A6\u30B9\u62BC\u4E0B:"mousedown",\u30DE\u30A6\u30B9\u89E3\u653E:"mouseup",\u30D5\u30A9\u30FC\u30AB\u30B9:"focus",\u30D6\u30E9\u30FC:"blur",\u30ED\u30FC\u30C9:"load",\u8AAD\u307F\u8FBC\u307F:"load",\u30B5\u30A4\u30BA\u5909\u66F4:"resize",\u30B9\u30AF\u30ED\u30FC\u30EB:"scroll"},ar:{\u0627\u0644\u0646\u0642\u0631:"click",\u0646\u0642\u0631:"click",\u0627\u0644\u0625\u062F\u062E\u0627\u0644:"input",\u0625\u062F\u062E\u0627\u0644:"input",\u0627\u0644\u062A\u063A\u064A\u064A\u0631:"change",\u062A\u063A\u064A\u064A\u0631:"change",\u0627\u0644\u0625\u0631\u0633\u0627\u0644:"submit",\u0625\u0631\u0633\u0627\u0644:"submit","\u0636\u063A\u0637 \u0627\u0644\u0645\u0641\u062A\u0627\u062D":"keydown","\u0631\u0641\u0639 \u0627\u0644\u0645\u0641\u062A\u0627\u062D":"keyup","\u062A\u0645\u0631\u064A\u0631 \u0627\u0644\u0645\u0627\u0648\u0633":"mouseover",\u0627\u0644\u062A\u0631\u0643\u064A\u0632:"focus",\u062A\u062D\u0645\u064A\u0644:"load",\u062A\u0645\u0631\u064A\u0631:"scroll"},es:{clic:"click",click:"click",entrada:"input",cambio:"change",env\u00EDo:"submit",enviar:"submit","tecla abajo":"keydown","tecla arriba":"keyup","rat\xF3n encima":"mouseover","rat\xF3n fuera":"mouseout",enfoque:"focus",desenfoque:"blur",carga:"load",desplazamiento:"scroll"},tr:{t\u0131klama:"click",t\u0131kla:"click",t\u0131k:"click",giri\u015F:"input",girdi:"input",de\u011Fi\u015Fiklik:"change",de\u011Fi\u015Fim:"change",g\u00F6nderme:"submit",g\u00F6nder:"submit",tu\u015Fbasma:"keydown",tu\u015Fb\u0131rakma:"keyup",fare_bas:"mousedown",fare_b\u0131rak:"mouseup",farei\u00E7inde:"mouseover",fared\u0131\u015F\u0131nda:"mouseout",odaklanma:"focus",odak:"focus",bulan\u0131kl\u0131k:"blur",y\u00FCkleme:"load",y\u00FCkle:"load",boyut_de\u011Fi\u015Ftir:"resize",kayd\u0131rma:"scroll"},pt:{clique:"click",clicar:"click",click:"click",entrada:"input",inserir:"input",mudan\u00E7a:"change",mudanca:"change",alterar:"change",envio:"submit",enviar:"submit","tecla baixo":"keydown","tecla cima":"keyup","pressionar tecla":"keydown","soltar tecla":"keyup","mouse sobre":"mouseover","mouse fora":"mouseout",foco:"focus",focar:"focus",desfoque:"blur",desfocar:"blur",carregar:"load",carregamento:"load",rolagem:"scroll",rolar:"scroll"},zh:{\u70B9\u51FB:"click",\u5355\u51FB:"click",\u53CC\u51FB:"dblclick",\u8F93\u5165:"input",\u6539\u53D8:"change",\u53D8\u5316:"change",\u53D8\u66F4:"change",\u63D0\u4EA4:"submit",\u53D1\u9001:"submit",\u6309\u952E:"keydown",\u952E\u5165:"keydown",\u677E\u952E:"keyup",\u9F20\u6807\u8FDB\u5165:"mouseover",\u9F20\u6807\u79FB\u5165:"mouseover",\u9F20\u6807\u79BB\u5F00:"mouseout",\u9F20\u6807\u79FB\u51FA:"mouseout",\u7126\u70B9:"focus",\u805A\u7126:"focus",\u5931\u7126:"blur",\u6A21\u7CCA:"blur",\u52A0\u8F7D:"load",\u8F7D\u5165:"load",\u6EDA\u52A8:"scroll"},fr:{clic:"click",cliquer:"click",click:"click",saisie:"input",entr\u00E9e:"input",changement:"change",changer:"change",soumettre:"submit",soumission:"submit",envoi:"submit","touche bas":"keydown","touche haut":"keyup","souris dessus":"mouseover","souris dehors":"mouseout",focus:"focus",focaliser:"focus",d\u00E9focus:"blur",d\u00E9focaliser:"blur",chargement:"load",charger:"load",d\u00E9filement:"scroll",d\u00E9filer:"scroll"},de:{klick:"click",klicken:"click",click:"click",eingabe:"input",eingeben:"input",\u00E4nderung:"change",\u00E4ndern:"change",absenden:"submit",einreichen:"submit","taste runter":"keydown","taste hoch":"keyup","maus \xFCber":"mouseover","maus raus":"mouseout",fokus:"focus",fokussieren:"focus",defokussieren:"blur",unsch\u00E4rfe:"blur",laden:"load",ladung:"load",scrollen:"scroll",bl\u00E4ttern:"scroll"},id:{klik:"click",click:"click",masukan:"input",input:"input",ubah:"change",perubahan:"change",kirim:"submit","tekan tombol":"keydown","lepas tombol":"keyup","mouse masuk":"mouseover","mouse keluar":"mouseout",fokus:"focus",blur:"blur",muat:"load",memuat:"load",gulir:"scroll",menggulir:"scroll"},bn:{\u0995\u09CD\u09B2\u09BF\u0995:"click",\u0987\u09A8\u09AA\u09C1\u099F:"input",\u099C\u09AE\u09BE:"submit",\u09B2\u09CB\u09A1:"load",\u09B8\u09CD\u0995\u09CD\u09B0\u09CB\u09B2:"scroll",\u09B0\u09BF\u09B8\u09BE\u0987\u099C:"resize",\u099D\u09BE\u09AA\u09B8\u09BE:"blur",\u09AB\u09CB\u0995\u09BE\u09B8:"focus",\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8:"change"},qu:{click:"click","\xF1it'iy":"click",\u00F1itiy:"click",yaykuchiy:"input",yaykuy:"input",tikray:"change","t'ikray":"change",apachiy:"submit",kachay:"submit","llave uray":"keydown","llave hawa":"keyup","q'away":"focus",qhaway:"focus",paqariy:"blur","mana q'away":"blur",cargay:"load",apakuy:"load",apamuy:"load",kunray:"scroll",muyuy:"scroll",hatun_kay:"resize"},sw:{bofya:"click",click:"click",kubofya:"click",ingiza:"input",kubadilisha:"change",mabadiliko:"change",tuma:"submit",kutuma:"submit","bonyeza chini":"keydown","bonyeza juu":"keyup","panya juu":"mouseover","panya nje":"mouseout",lenga:"focus",kulenga:"focus",blur:"blur",pakia:"load",kupakia:"load",sogeza:"scroll",kusogeza:"scroll"}}}});function jl(e){return M0(e)}function _e(e,r){return O0(e,r)}function ur(){return Me()}function Tm(e){return Dt(e)}function Bm(e){R0(e)}var vt=g({"src/tokenizers/index.ts"(){"use strict";T(),Ir(),_n(),Mn(),Br(),Rt(),Ei(),Bi(),W()}});function Ll(e,r){return!r||r.length===0||r.includes(e)||r.includes("expression")?!0:e==="property-path"?r.some(t=>["selector","reference","expression"].includes(t)):!1}var Fm=g({"src/parser/utils/type-validation.ts"(){"use strict"}});function Sm(e,r){return e.possessive?.keywords?.[r]}var Pm=g({"src/parser/utils/possessive-keywords.ts"(){"use strict"}});function jm(e,r){return $.matchPattern(e,r)}function Lm(e,r){return $.matchBest(e,r)}var ht,or,$,sr=g({"src/parser/pattern-matcher.ts"(){"use strict";ir(),Fm(),Pm(),T(),ht=class At{constructor(){this.stemMatchCount=0,this.totalKeywordMatches=0}matchPattern(r,t){let n=r.mark(),a=new Map;if(this.currentProfile=Y(t.language),this.stemMatchCount=0,this.totalKeywordMatches=0,!this.matchTokenSequence(r,t.template.tokens,a))return r.reset(n),null;let u=this.calculateConfidence(t,a);return this.applyExtractionRules(t,a),{pattern:t,captured:a,consumedTokens:r.position()-n.position,confidence:u}}matchBest(r,t){let n=[];for(let i of t){let u=r.mark(),o=this.matchPattern(r,i);o&&n.push(o),r.reset(u)}if(n.length===0)return null;n.sort((i,u)=>{let o=u.pattern.priority-i.pattern.priority;return o!==0?o:u.confidence-i.confidence});let a=n[0];return this.matchPattern(r,a.pattern),a}matchTokenSequence(r,t,n){let a=t[0],i=a?.type==="literal"&&(a.value==="and"||a.value==="then"||a.alternatives?.includes("and")||a.alternatives?.includes("then"));if(this.currentProfile?.code==="ar"&&!i)for(;r.peek()?.kind==="conjunction";)r.advance();for(let u of t)if(!this.matchPatternToken(r,u,n)){if(this.isOptional(u))continue;return!1}return!0}matchPatternToken(r,t,n){switch(t.type){case"literal":return this.matchLiteralToken(r,t);case"role":return this.matchRoleToken(r,t,n);case"group":return this.matchGroupToken(r,t,n);default:return!1}}matchLiteralToken(r,t){let n=r.peek();if(!n)return!1;let a=this.getMatchType(n,t.value);if(a!=="none")return this.totalKeywordMatches++,a==="stem"&&this.stemMatchCount++,r.advance(),!0;if(t.alternatives)for(let i of t.alternatives){let u=this.getMatchType(n,i);if(u!=="none")return this.totalKeywordMatches++,u==="stem"&&this.stemMatchCount++,r.advance(),!0}return!1}matchRoleToken(r,t,n){this.skipNoiseWords(r);let a=r.peek();if(!a)return t.optional||!1;let i=this.tryMatchPossessiveExpression(r);if(i)return t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(i.type)&&!t.expectedTypes.includes("expression")?t.optional||!1:(n.set(t.role,i),!0);let u=this.tryMatchMethodCallExpression(r);if(u)return t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(u.type)&&!t.expectedTypes.includes("expression")?t.optional||!1:(n.set(t.role,u),!0);let o=this.tryMatchPossessiveSelectorExpression(r);if(o)return t.expectedTypes&&t.expectedTypes.length>0&&!Ll(o.type,t.expectedTypes)?t.optional||!1:(n.set(t.role,o),!0);let s=this.tryMatchPropertyAccessExpression(r);if(s)return t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(s.type)&&!t.expectedTypes.includes("expression")?t.optional||!1:(n.set(t.role,s),!0);let l=this.tryMatchSelectorPropertyExpression(r);if(l)return t.expectedTypes&&t.expectedTypes.length>0&&!Ll(l.type,t.expectedTypes)?t.optional||!1:(n.set(t.role,l),!0);let p=this.tokenToSemanticValue(a);return!p||t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(p.type)?t.optional||!1:(n.set(t.role,p),r.advance(),!0)}tryMatchPossessiveExpression(r){let t=r.peek();if(!t||!this.currentProfile)return null;let n=(t.normalized||t.value).toLowerCase(),a=Sm(this.currentProfile,n);if(!a)return null;let i=r.mark();r.advance();let u=r.peek();if(!u)return r.reset(i),null;if(u.kind==="identifier"||u.kind==="keyword"&&!this.isStructuralKeyword(u.value)||u.kind==="selector"&&u.value.startsWith("*")||u.kind==="selector"&&u.value.startsWith("@")||u.kind==="selector"&&u.value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(u.value)){r.advance();let o=u.value;u.kind==="selector"&&o.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(o)&&(o=o.substring(1));let s=o;for(;r.peek()?.kind==="selector"&&r.peek().value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(r.peek().value);)s+=r.peek().value,r.advance();let l=r.peek();return l?.kind==="literal"&&l.value.startsWith("(")&&(s+=l.value,r.advance()),rr(re(a),s)}return r.reset(i),null}isStructuralKeyword(r){return new Set(["into","in","to","from","at","by","with","without","before","after","of","as","on","then","end","else","if","repeat","while","for","toggle","add","remove","put","set","show","hide","increment","decrement","send","trigger","call"]).has(r.toLowerCase())}tryMatchMethodCallExpression(r){let t=r.peek();if(!t||t.kind!=="selector")return null;let n=r.mark();r.advance();let a=r.peek();if(!a||a.kind!=="operator"||a.value!==".")return r.reset(n),null;r.advance();let i=r.peek();if(!i||i.kind!=="identifier")return r.reset(n),null;r.advance();let u=r.peek();if(!u||u.kind!=="punctuation"||u.value!=="(")return r.reset(n),null;r.advance();let o=[];for(;!r.isAtEnd()&&o.length<At.MAX_METHOD_ARGS;){let l=r.peek();if(!l)break;if(l.kind==="punctuation"&&l.value===")"){r.advance();break}if(l.kind==="punctuation"&&l.value===","){r.advance();continue}o.push(l.value),r.advance()}return{type:"expression",raw:`${t.value}.${i.value}(${o.join(", ")})`}}tryMatchPropertyAccessExpression(r){let t=r.peek();if(!t||t.kind!=="identifier"&&t.kind!=="keyword")return null;let n=r.mark();r.advance();let a=r.peek();if(!a||a.kind!=="operator"||a.value!==".")return r.reset(n),null;r.advance();let i=r.peek();if(!i||i.kind!=="identifier")return r.reset(n),null;r.advance();let u=`${t.value}.${i.value}`,o=1;for(;!r.isAtEnd()&&o<At.MAX_PROPERTY_DEPTH;){let l=r.peek();if(!l||l.kind!=="operator"||l.value!==".")break;r.advance();let p=r.peek();if(!p||p.kind!=="identifier")break;r.advance(),u+=`.${p.value}`,o++}let s=r.peek();if(s&&s.kind==="punctuation"&&s.value==="("){r.advance();let l=[],p=0;for(;!r.isAtEnd()&&l.length<At.MAX_METHOD_ARGS;){let v=r.peek();if(!v)break;if(v.kind==="punctuation"&&v.value===")"){if(p===0){r.advance();break}p--}if(v.kind==="punctuation"&&v.value==="("&&p++,v.kind==="punctuation"&&v.value===","){r.advance();continue}l.push(v.value),r.advance()}return{type:"expression",raw:`${u}(${l.join(", ")})`}}return{type:"expression",raw:u}}tryMatchPossessiveSelectorExpression(r){let t=r.peek();if(!t||t.kind!=="selector")return null;let n=r.mark();r.advance();let a=r.peek();if(!a||a.kind!=="punctuation"||a.value!=="'s")return r.reset(n),null;r.advance();let i=r.peek();return!i||i.kind!=="selector"&&i.kind!=="identifier"?(r.reset(n),null):(r.advance(),rr(fe(t.value),i.value))}tryMatchSelectorPropertyExpression(r){let t=r.peek();if(!t||t.kind!=="selector"||!t.value.startsWith("#"))return null;let n=r.mark();r.advance();let a=r.peek();if(!a||a.kind!=="selector"||!a.value.startsWith("."))return r.reset(n),null;let i=r.peek(1);i&&i.kind,r.advance();let u=a.value.slice(1);return rr(fe(t.value),u)}matchGroupToken(r,t,n){let a=r.mark(),i=new Set(n.keys());if(!this.matchTokenSequence(r,t.tokens,n)){r.reset(a);for(let o of n.keys())i.has(o)||n.delete(o);return t.optional||!1}return!0}getMatchType(r,t){return r.value===t?"exact":r.normalized===t?"normalized":r.stem===t&&r.stemConfidence!==void 0&&r.stemConfidence>=.7?"stem":r.kind==="keyword"&&r.value.toLowerCase()===t.toLowerCase()?"case-insensitive":"none"}tokenToSemanticValue(r){switch(r.kind){case"selector":return fe(r.value);case"literal":return this.parseLiteralValue(r.value);case"keyword":let t=(r.normalized||r.value).toLowerCase();return Fi(t)?re(t):M(r.normalized||r.value);case"identifier":if(r.value.startsWith(":"))return re(r.value);let n=r.value.toLowerCase();return Fi(n)?re(n):{type:"expression",raw:r.value};case"url":return M(r.value,"string");default:return null}}parseLiteralValue(r){if(r.startsWith('"')||r.startsWith("'")||r.startsWith("`")||r.startsWith("\u300C")){let a=r.slice(1,-1);return M(a,"string")}if(r==="true")return M(!0,"boolean");if(r==="false")return M(!1,"boolean");let t=r.match(/^(\d+(?:\.\d+)?)(ms|s|m|h)?$/);if(t){let a=parseFloat(t[1]);return t[2]?M(r,"duration"):M(a,"number")}let n=parseFloat(r);return isNaN(n)?M(r,"string"):M(n,"number")}applyExtractionRules(r,t){for(let[n,a]of Object.entries(r.extraction))t.has(n)||(a.value!==void 0?t.set(n,{type:"literal",value:a.value}):a.default&&t.set(n,a.default))}isOptional(r){return r.type!=="literal"&&r.optional===!0}calculateConfidence(r,t){let n=0,a=0,i=l=>r.extraction?.[l]?.default!==void 0;for(let l of r.template.tokens)if(l.type==="role")a+=1,t.has(l.role)&&(n+=1);else if(l.type==="group"){for(let p of l.tokens)if(p.type==="role"){let y=i(p.role),v=.8;a+=v,t.has(p.role)?n+=v:y&&(n+=v*.6)}}let u=a>0?n/a:1;if(this.stemMatchCount>0&&this.totalKeywordMatches>0){let l=this.stemMatchCount/this.totalKeywordMatches*.15;u=Math.max(.5,u-l)}let o=this.calculateVSOConfidenceBoost(r);u=Math.min(1,u+o);let s=this.arabicPrepositionDisambiguation(r,t);return u=Math.max(0,Math.min(1,u+s)),u}calculateVSOConfidenceBoost(r){if(r.language!=="ar")return 0;let t=r.template.tokens[0];if(!t||t.type!=="literal")return 0;let n=new Set(["\u0628\u062F\u0644","\u063A\u064A\u0631","\u0623\u0636\u0641","\u0623\u0632\u0644","\u0636\u0639","\u0627\u062C\u0639\u0644","\u0639\u064A\u0646","\u0632\u062F","\u0627\u0646\u0642\u0635","\u0633\u062C\u0644","\u0623\u0638\u0647\u0631","\u0623\u062E\u0641","\u0634\u063A\u0644","\u0623\u0631\u0633\u0644","\u0631\u0643\u0632","\u0634\u0648\u0634","\u062A\u0648\u0642\u0641","\u0627\u0646\u0633\u062E","\u0627\u062D\u0630\u0641","\u0627\u0635\u0646\u0639","\u0627\u0646\u062A\u0638\u0631","\u0627\u0646\u062A\u0642\u0627\u0644","\u0623\u0648"]);if(n.has(t.value))return .15;if(t.alternatives){for(let a of t.alternatives)if(n.has(a))return .15}return 0}arabicPrepositionDisambiguation(r,t){if(r.language!=="ar")return 0;let n=0,a={patient:["\u0639\u0644\u0649"],destination:["\u0625\u0644\u0649","\u0627\u0644\u0649"],source:["\u0645\u0646"],agent:["\u0645\u0646"],manner:["\u0628"],style:["\u0628"],goal:["\u0625\u0644\u0649","\u0627\u0644\u0649"],method:["\u0628"]};for(let[i,u]of t.entries()){let o=a[i];if(!o||o.length===0)continue;let s="metadata"in u?u.metadata:void 0;if(s&&typeof s.prepositionValue=="string"){let l=s.prepositionValue;o.includes(l)?n+=.1:n-=.1}}return Math.max(-.1,Math.min(.1,n))}skipNoiseWords(r){let t=r.peek();if(!t)return;let n=t.value.toLowerCase();if(At.ENGLISH_NOISE_WORDS.has(n)){let a=r.mark();r.advance();let i=r.peek();if(i&&i.kind==="selector")return;r.reset(a)}n==="class"&&r.advance()}extractEventModifiers(r){let t={},n=!1;for(;!r.isAtEnd();){let a=r.peek();if(!a||a.kind!=="event-modifier")break;let i=a.metadata;if(!i)break;switch(n=!0,i.modifierName){case"once":t.once=!0;break;case"debounce":typeof i.value=="number"&&(t.debounce=i.value);break;case"throttle":typeof i.value=="number"&&(t.throttle=i.value);break;case"queue":(i.value==="first"||i.value==="last"||i.value==="all"||i.value==="none")&&(t.queue=i.value);break}r.advance()}return n?t:void 0}},ht.MAX_PROPERTY_DEPTH=10,ht.MAX_METHOD_ARGS=20,ht.ENGLISH_NOISE_WORDS=new Set(["the","a","an"]),or=ht,$=new or}});function ie(e,r){return pr.render(e,r)}function lr(e){return pr.renderExplicit(e)}var Pi,pr,ji=g({"src/explicit/renderer.ts"(){"use strict";T(),vt(),Pi=class{render(e,r){if(e.kind==="compound")return this.renderCompound(e,r);let t=q0(r,e.action);if(t.length===0)return this.renderExplicit(e);let n=this.findBestPattern(e,t);return n?this.renderWithPattern(e,n):this.renderExplicit(e)}renderCompound(e,r){let t=e.statements.map(a=>this.render(a,r)),n=this.getChainWord(e.chainType,r);return t.join(` ${n} `)}getChainWord(e,r){let t=Y(r);return t?.keywords?t.keywords[e]?.primary??e:e}renderExplicit(e){if(e.kind==="compound"){let t=e;return t.statements.map(a=>this.renderExplicit(a)).join(` ${t.chainType} `)}let r=[e.action];for(let[t,n]of e.roles)r.push(`${t}:${this.valueToString(n)}`);if(e.kind==="event-handler"){let t=e;if(t.body&&t.body.length>0){let n=t.body.map(a=>this.renderExplicit(a));r.push(`body:${n.join(" ")}`)}}return`[${r.join(" ")}]`}supportedLanguages(){return ur()}findBestPattern(e,r){let t=r.map(n=>{let a=n.priority;for(let i of n.template.tokens)i.type==="role"&&(e.roles.has(i.role)?a+=10:i.optional||(a-=50));return n.language==="en"&&((n.id.includes("standard")||n.id.includes("en-source"))&&(a+=20),(n.id.includes("-when")||n.id.includes("-if")||n.id.includes("-upon"))&&(a-=15)),{pattern:n,score:a}});return t.sort((n,a)=>a.score-n.score),t.length>0?t[0].pattern:null}renderWithPattern(e,r){let t=[],n=r.language;for(let a of r.template.tokens){let i=this.renderPatternToken(a,e,n);i!==null&&t.push(i)}if(e.kind==="event-handler"){let a=e;if(a.body&&a.body.length>0){let i=a.body.map(u=>this.render(u,n));t.push(i.join(" "))}}return t.join(" ")}renderPatternToken(e,r,t){switch(e.type){case"literal":return e.value;case"role":{let n=r.roles.get(e.role);return n?this.valueToNaturalString(n,t):(e.optional,null)}case"group":{if(!e.tokens.filter(i=>i.type==="role"&&!i.optional).every(i=>r.roles.has(i.role))&&e.optional)return null;if(e.optional&&e.tokens.find(u=>u.type==="role"&&u.role==="destination")){let u=r.roles.get("destination");if(u?.type==="reference"&&u.value==="me")return null}let a=[];for(let i of e.tokens){let u=this.renderPatternToken(i,r,t);u!==null&&a.push(u)}return a.length>0?a.join(" "):null}default:return null}}valueToString(e){switch(e.type){case"literal":return typeof e.value=="string"?e.dataType==="string"||/\s/.test(e.value)?`"${e.value}"`:e.value:String(e.value);case"selector":return e.value;case"reference":return e.value;case"property-path":return`${this.valueToString(e.object)}'s ${e.property}`;case"expression":return e.raw}}valueToNaturalString(e,r="en"){switch(e.type){case"literal":return typeof e.value=="string"&&e.dataType==="string"?`"${e.value}"`:String(e.value);case"selector":return e.value;case"reference":return this.renderReference(e,r);case"property-path":return this.renderPropertyPath(e,r);case"expression":return e.raw}}renderReference(e,r){let t=Y(r);return t?.references?t.references[e.value]??e.value:e.value}renderPropertyPath(e,r){let t=Y(r),n=e.property,a=e.object.type==="reference"?e.object.value:null;if(t?.possessive?.specialForms&&a){let u=t.possessive.specialForms[a];if(u){let{markerPosition:o,usePossessiveAdjectives:s}=t.possessive;return s&&o==="after-object"?`${n} ${u}`:`${u} ${n}`}}let i=this.valueToNaturalString(e.object,r);if(t?.possessive){let{marker:u,markerPosition:o,usePossessiveAdjectives:s}=t.possessive;if(s&&a&&o==="after-object")return`${n} ${i}`;if(u)switch(o){case"between":return t.usesSpaces?`${i}${u} ${n}`:`${i}${u}${n}`;case"after-object":return`${i}${u} ${n}`;case"before-property":return`${i} ${u} ${n}`}}return r==="en"||!t?.possessive?i==="me"?`my ${n}`:i==="it"?`its ${n}`:`${i}'s ${n}`:`${i} ${n}`}},pr=new Pi}});function gt(e){let r=e.trim();if(!r.startsWith("[")||!r.endsWith("]"))throw new Error("Explicit syntax must be wrapped in brackets: [command role:value ...]");let t=r.slice(1,-1).trim();if(!t)throw new Error("Empty explicit statement");let n=_m(t);if(n.length===0)throw new Error("No command specified in explicit statement");let a=n[0].toLowerCase(),i=new Map;for(let o=1;o<n.length;o++){let s=n[o],l=s.indexOf(":");if(l===-1)throw new Error(`Invalid role format: "${s}". Expected role:value`);let p=s.slice(0,l),y=s.slice(l+1);if(p==="body"&&y.startsWith("[")){let f=Nm(s,l+1),d=s.slice(l+1,f+1);i.set(p,{type:"expression",raw:d});continue}let v=Rm(y);i.set(p,v)}if(a==="on"){let o=i.get("event");if(!o)throw new Error("Event handler requires event role: [on event:click ...]");let s=i.get("body"),l=[];return s&&s.type==="expression"&&l.push(gt(s.raw)),i.delete("body"),nr(o,l,void 0,{sourceLanguage:"explicit"})}let u={};for(let[o,s]of i)u[o]=s;return Le(a,u,{sourceLanguage:"explicit"})}function _m(e){let r=[],t="",n=!1,a="",i=0;for(let u=0;u<e.length;u++){let o=e[u];if(n){t+=o,o===a&&e[u-1]!=="\\"&&(n=!1);continue}if(o==='"'||o==="'"){n=!0,a=o,t+=o;continue}if(o==="["){i++,t+=o;continue}if(o==="]"){i--,t+=o;continue}if(o===" "&&i===0){t&&(r.push(t),t="");continue}t+=o}return t&&r.push(t),r}function Rm(e){if(e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("@")||e.startsWith("*"))return fe(e);if(e.startsWith('"')||e.startsWith("'")){let n=e.slice(1,-1);return M(n,"string")}if(e==="true")return M(!0,"boolean");if(e==="false")return M(!1,"boolean");let r=e.toLowerCase();if(Fi(r))return re(r);let t=e.match(/^(-?\d+(?:\.\d+)?)(ms|s|m|h)?$/);if(t){let n=parseFloat(t[1]);return t[2]?M(e,"duration"):M(n,"number")}return M(e,"string")}function Nm(e,r){let t=0;for(let n=r;n<e.length;n++)if(e[n]==="[")t++;else if(e[n]==="]"&&(t--,t===0))return n;return e.length-1}function Et(e){let r=e.trim();return r.startsWith("[")&&r.endsWith("]")}var Li=g({"src/explicit/parser.ts"(){"use strict";ir()}}),_l={};A(_l,{SemanticParserImpl:()=>cr,canParse:()=>Rl,createSemanticAnalyzer:()=>Om,fromExplicit:()=>ql,getAllTranslations:()=>Mm,getCommandType:()=>Nl,getSupportedLanguages:()=>Il,parse:()=>Z,parseExplicit:()=>Ml,render:()=>mr,renderExplicit:()=>Wl,roundTrip:()=>qm,semanticParser:()=>Re,toExplicit:()=>Ol,tokenize:()=>Im,translate:()=>Wm});function Z(e,r){return Re.parse(e,r)}function Rl(e,r){return Re.canParse(e,r)}function Nl(e,r){try{return Re.parse(e,r).action}catch{return null}}function Im(e,r){return _e(e,r)}function Il(){return ur()}function Wm(e,r,t){let n=Z(e,r);return mr(n,t)}function Mm(e,r){let t=Z(e,r),n={};for(let a of Il())try{n[a]=mr(t,a)}catch{}return n}function Om(){return{analyze(e,r){try{return{node:Z(e,r),confidence:1,success:!0}}catch(t){return{node:null,confidence:0,success:!1,error:t}}}}}function mr(e,r){return ie(e,r)}function Wl(e){return ie(e,"explicit")}function Ml(e){return gt(e)}function Ol(e,r){let t=Z(e,r);return Wl(t)}function ql(e,r){let t=Ml(e);return mr(t,r)}function qm(e,r){let t=Ol(e,r);return ql(t,r)}var ve,cr,Re,_i=g({"src/parser/semantic-parser.ts"(){"use strict";ir(),vt(),T(),sr(),Pl(),ji(),Li(),ve=class ne{parse(r,t){let{modifiers:n,remainingInput:a}=this.extractStandaloneModifiers(r,t),i=a||r,u=_e(i,t),o=pe(t);if(o.length===0)throw new Error(`No patterns available for language: ${t}`);let s=[...o].sort((h,C)=>C.priority-h.priority),l=s.filter(h=>h.command==="on"),p=$.matchBest(u,l);if(p){let h=this.buildEventHandler(p,u,t);return n?this.applyModifiers(h,n):h}let y=s.filter(h=>h.command!=="on"),v=$.matchBest(u,y);if(v)return this.buildCommand(v,t);let f=this.trySOVEventExtraction(i,t,s);if(f)return n?this.applyModifiers(f,n):f;let d=this.tryCompoundCommandParsing(u,y,t);if(d)return d;throw new Error(`Could not parse input in ${t}: ${i}`)}canParse(r,t){try{return this.parse(r,t),!0}catch{return!1}}supportedLanguages(){return ur()}buildCommand(r,t){if(!r)throw new Error("No match to build command from");let n={};for(let[a,i]of r.captured)n[a]=i;return Le(r.pattern.command,n,{sourceLanguage:t,patternId:r.pattern.id,confidence:r.confidence})}buildEventHandler(r,t,n){if(!r)throw new Error("No match to build event handler from");let a=r.captured.get("event");if(!a)throw new Error("Event handler pattern matched but no event captured");let i=$.extractEventModifiers(t),u=this.extractOrConjunctionEvents(t,n),o=a;u.length>0&&a.type==="literal"&&(o={type:"literal",value:[String(a.value),...u.map(y=>String("value"in y?y.value:""))].join(" or ")});let s,l=r.captured.get("action");if(l&&l.type==="literal"){let p=l.value,y={};for(let[d,h]of r.captured)d!=="event"&&d!=="action"&&d!=="continues"&&(y[d]=h);let v=Le(p,y,{sourceLanguage:n,patternId:r.pattern.id,confidence:r.confidence}),f=r.captured.get("continues");if(f&&f.type==="literal"&&f.value==="then"){let d=pe(n).filter(B=>B.command!=="on").sort((B,q)=>q.priority-B.priority),h=pe(n).filter(B=>B.id.startsWith("grammar-")&&B.id.includes("-continuation")).sort((B,q)=>q.priority-B.priority),C=this.parseBodyWithGrammarPatterns(t,d,h,n);C.length>0?s=[v,...C]:s=[v]}else s=[v]}else{let p=pe(n).filter(y=>y.command!=="on").sort((y,v)=>v.priority-y.priority);s=this.parseBodyWithClauses(t,p,n)}return nr(o,s,i,{sourceLanguage:n,patternId:r.pattern.id,confidence:r.confidence})}parseBodyWithClauses(r,t,n){let a=[],i=[];for(;!r.isAtEnd();){let u=r.peek();if(!u)break;let o=u.kind==="conjunction"||u.kind==="keyword"&&this.isThenKeyword(u.value,n),s=u.kind==="keyword"&&this.isEndKeyword(u.value,n);if(o){if(i.length>0){let l=this.parseClause(i,t,n);a.push(...l),i.length=0}r.advance();continue}if(s){if(i.length>0){let l=this.parseClause(i,t,n);a.push(...l)}r.advance();break}i.push(u),r.advance()}if(i.length>0){let u=this.parseClause(i,t,n);a.push(...u)}return a.length>1?[Si(a,"then",{sourceLanguage:n})]:a}parseClause(r,t,n){if(r.length===0)return[];let a=new P(r,n),i=[];for(;!a.isAtEnd();){let u=$.matchBest(a,t);u?i.push(this.buildCommand(u,n)):a.advance()}if(i.length===0){let u=this.parseSOVClauseByVerbAnchoring(r,n);if(u.length>0)return u}return i}static buildVerbLookup(r){let t=new Map;for(let[n,a]of Object.entries(r.keywords))if(!["on","if","else","when","where","while","for","end","then","and"].includes(n)&&(t.set(a.primary.toLowerCase(),n),a.alternatives))for(let i of a.alternatives)t.set(i.toLowerCase(),n);return t}static buildMarkerToRoleLookup(r){let t=new Map;for(let[n,a]of Object.entries(r.roleMarkers))if(a&&(t.set(a.primary,n),a.alternatives))for(let i of a.alternatives)t.has(i)||t.set(i,n);return t}parseSOVClauseByVerbAnchoring(r,t){let n=Y(t);if(!n||n.wordOrder!=="SOV")return[];let a=ne.buildVerbLookup(n),i=ne.buildMarkerToRoleLookup(n),u=[],o=0;for(;o<r.length;){let s=-1,l="";for(let d=o;d<r.length;d++){let h=r[d],C=a.get(h.value.toLowerCase()),B=h.normalized?a.get(h.normalized.toLowerCase()):void 0,q=C||B;if(q){s=d,l=q;break}}if(s===-1)break;let p=r.slice(o,s),y=r.length;for(let d=s+1;d<r.length;d++){let h=r[d];if(h.kind==="conjunction"||this.isThenKeyword(h.value,t)){y=d;break}if(d>s+1&&(a.get(h.value.toLowerCase())||(h.normalized?a.get(h.normalized.toLowerCase()):void 0))){y=d;break}}let v=r.slice(s+1,y),f=this.extractRolesFromMarkedTokens(p,v,i,l,t);if(u.push(Le(l,f,{sourceLanguage:t,confidence:.7})),o=y,o<r.length){let d=r[o];(d.kind==="conjunction"||this.isThenKeyword(d.value,t))&&o++}}return u}extractRolesFromMarkedTokens(r,t,n,a,i){let u={},o=s=>{let l=[];for(let p of s){let y=n.get(p.value);if(y&&p.kind==="particle"&&l.length>0){let v=this.tokensToSemanticValue(l);if(v){let f=this.mapRoleForCommand(y,a,u);f&&(u[f]=v)}l=[]}else l.push(p)}if(l.length>0){let p=this.tokensToSemanticValue(l);p&&(u.patient?u.destination||(u.destination=p):u.patient=p)}};return o(r),o(t),u}mapRoleForCommand(r,t,n){return n[r]?r==="patient"&&!n.destination?"destination":r==="destination"&&!n.patient?"patient":r==="source"&&!n.source?"source":null:r}tokensToSemanticValue(r){if(r.length===0)return null;let t=r.filter(i=>i.kind!=="whitespace");if(t.length===0)return null;if(t.length===1)return this.tokenToSemanticValue(t[0]);let n=t.map(i=>i.value).join(""),a=t[0];return a.kind==="selector"||a.value.startsWith("#")||a.value.startsWith(".")||a.value.startsWith("@")||a.value.startsWith("*")?fe(n):a.kind==="literal"||a.value.startsWith('"')||a.value.startsWith("'")?M(n):a.kind==="reference"?re(n):M(n)}tokenToSemanticValue(r){let t=r.value;if(r.kind==="selector"||t.startsWith("#")||t.startsWith(".")||t.startsWith("@")||t.startsWith("*"))return fe(t);if(t.startsWith('"')||t.startsWith("'"))return M(t);if(/^-?\d+(\.\d+)?$/.test(t))return M(parseFloat(t));if(t==="true"||t==="\u771F"||t==="\uCC38"||t==="do\u011Fru")return M(!0);if(t==="false"||t==="\u507D"||t==="\uAC70\uC9D3"||t==="yanl\u0131\u015F")return M(!1);let n=r.normalized?.toLowerCase();return n==="me"||n==="it"||n==="you"||n==="result"||n==="body"?re(n):r.kind==="reference"?re(r.normalized||"me"):M(t)}parseBodyWithGrammarPatterns(r,t,n,a){let i=[];for(;!r.isAtEnd();){let u=r.peek();if(u&&this.isThenKeyword(u.value,a)){r.advance();continue}if(u&&this.isEndKeyword(u.value,a)){r.advance();break}let o=!1;if(n.length>0){let s=$.matchBest(r,n);if(s){let l=s.pattern.command,p={};for(let[f,d]of s.captured)f!=="event"&&f!=="action"&&f!=="continues"&&(p[f]=d);let y=Le(l,p,{sourceLanguage:a,patternId:s.pattern.id});i.push(y),o=!0;let v=s.captured.get("continues");if(v&&v.type==="literal"&&v.value==="then")continue}}if(!o){let s=$.matchBest(r,t);s&&(i.push(this.buildCommand(s,a)),o=!0)}o||r.advance()}return i}tryCompoundCommandParsing(r,t,n){let a=r.tokens;if(!a.some(s=>s.kind==="conjunction"||s.kind==="keyword"&&this.isThenKeyword(s.value,n)))return null;let u=new P(a,n),o=this.parseBodyWithClauses(u,t,n);return o.length===0?null:o.length===1?o[0]:Si(o,"then",{sourceLanguage:n,confidence:.65})}trySOVEventExtraction(r,t,n){let a=ne.SOV_EVENT_MARKERS[t];if(!a)return null;let u=_e(r,t).tokens,o=ar[t],s=new Set;if(o)for(let O of Object.keys(o))s.add(O.toLowerCase());let l=ne.SOV_SOURCE_MARKERS[t],p=-1,y="",v="",f=1;for(let O=0;O<u.length;O++){let V=u[O],ae=V.value.toLowerCase(),ue=ae,Ee="",hr=ae.indexOf("[");hr>0&&(ue=ae.slice(0,hr),Ee=V.value.slice(hr));let gr=V.normalized?.toLowerCase(),ta=gr&&ne.KNOWN_EVENTS.has(gr),ra=s.has(ae)||s.has(ue),w0=ne.KNOWN_EVENTS.has(ue);if(ta||ra||w0){let We;if(ta?We=gr:ra?We=o?.[ae]??o?.[ue]??ue:We=ue,a.size>0){let bt=1,Er=u[O+1];Er&&Er.kind==="selector"&&Er.value.startsWith("[")&&(bt=2);let xt=u[O+bt];if(xt&&(xt.kind==="particle"||xt.kind==="keyword")&&a.has(xt.value)){p=O,y=We,v=Ee||(bt===2?u[O+1].value:""),f=bt+1;break}}else{p=O,y=We,v=Ee,f=1;break}}}if(p===-1)return null;let d=new Set;for(let O=p;O<p+f;O++)d.add(O);if(l){let O=p+f;if(O<u.length){let V=u[O];(V.kind==="particle"||V.kind==="keyword")&&l.markers.has(V.value)&&d.add(O)}for(let V=0;V<p;V++){let ae=u[V],ue=ae.value.toLowerCase(),Ee=ae.normalized?.toLowerCase();if(l.windowTokens.has(ue)||Ee&&l.windowTokens.has(Ee)){d.add(V);break}}}let h=u.filter((O,V)=>!d.has(V));if(h.length===0)return null;let C=n.filter(O=>O.command!=="on"),B=new P(h,t),q=this.parseBodyWithClauses(B,C,t);if(q.length===0)return null;let ge={sourceLanguage:t,confidence:.75};return v&&(ge.keyFilter=v),nr({type:"literal",value:y},q,void 0,ge)}isThenKeyword(r,t){let n={en:new Set(["then"]),ja:new Set(["\u305D\u308C\u304B\u3089","\u6B21\u306B","\u305D\u3057\u3066"]),ar:new Set(["\u062B\u0645","\u0628\u0639\u062F\u0647\u0627","\u062B\u0645\u0651"]),es:new Set(["entonces","luego","despu\xE9s"]),ko:new Set(["\uADF8\uB2E4\uC74C","\uADF8\uB9AC\uACE0","\uADF8\uB7F0\uD6C4","\uADF8\uB7EC\uBA74"]),zh:new Set(["\u7136\u540E","\u63A5\u7740","\u4E4B\u540E"]),tr:new Set(["sonra","ard\u0131ndan","daha sonra"]),pt:new Set(["ent\xE3o","depois","logo"]),fr:new Set(["puis","ensuite","alors"]),de:new Set(["dann","danach","anschlie\xDFend"]),id:new Set(["lalu","kemudian","setelah itu"]),tl:new Set(["pagkatapos","tapos"]),bn:new Set(["\u09A4\u09BE\u09B0\u09AA\u09B0","\u09AA\u09B0\u09C7"]),qu:new Set(["chaymantataq","hinaspa","chaymanta","chayqa"]),sw:new Set(["kisha","halafu","baadaye"])};return(n[t]||n.en).has(r.toLowerCase())}isEndKeyword(r,t){let n={en:new Set(["end"]),ja:new Set(["\u7D42\u308F\u308A","\u7D42\u4E86","\u304A\u308F\u308A"]),ar:new Set(["\u0646\u0647\u0627\u064A\u0629","\u0627\u0646\u062A\u0647\u0649","\u0622\u062E\u0631"]),es:new Set(["fin","final","terminar"]),ko:new Set(["\uB05D","\uC885\uB8CC","\uB9C8\uCE68"]),zh:new Set(["\u7ED3\u675F","\u7EC8\u6B62","\u5B8C"]),tr:new Set(["son","biti\u015F","bitti"]),pt:new Set(["fim","final","t\xE9rmino"]),fr:new Set(["fin","terminer","finir"]),de:new Set(["ende","beenden","fertig"]),id:new Set(["selesai","akhir","tamat"]),tl:new Set(["wakas","tapos"]),bn:new Set(["\u09B8\u09AE\u09BE\u09AA\u09CD\u09A4"]),qu:new Set(["tukukuy","tukuy","puchukay"]),sw:new Set(["mwisho","maliza","tamati"])};return(n[t]||n.en).has(r.toLowerCase())}extractStandaloneModifiers(r,t){let a=_e(r,t).tokens;if(a.length===0)return{modifiers:null,remainingInput:null};let u=a[0].value.toLowerCase(),o=ne.STANDALONE_MODIFIERS[u];if(!o)return{modifiers:null,remainingInput:null};let s={},l=1;if(o==="once")s.once=!0;else{let f=1;if(f<a.length){let d=a[f];(d.kind==="keyword"||d.kind==="particle")&&(f++,l++)}if(f<a.length){let d=a[f];if(d.kind==="literal"){let h=d.value.match(/^(\d+)(ms|s|m)?$/);if(h){let C=parseInt(h[1],10),B=h[2]||"ms";B==="s"?C*=1e3:B==="m"&&(C*=6e4),s[o]=C,l=f+1}}}s[o]||(s[o]=o==="debounce"?300:100)}let p=a.slice(l);if(p.length===0)return{modifiers:null,remainingInput:null};let y=p[0].position.start,v=r.slice(y);return{modifiers:s,remainingInput:v}}applyModifiers(r,t){return{...r,eventModifiers:{...r.eventModifiers,...t}}}extractOrConjunctionEvents(r,t){let n=[];for(;;){let a=r.mark(),i=r.peek();if(!i)break;let u=(i.normalized||i.value).toLowerCase();if(!ne.OR_KEYWORDS.has(u)){r.reset(a);break}r.advance();let o=r.peek();if(!o){r.reset(a);break}let s=(o.normalized||o.value).toLowerCase();r.advance(),n.push({type:"literal",value:s})}return n}},ve.KNOWN_EVENTS=new Set(["click","dblclick","input","change","submit","keydown","keyup","keypress","mouseover","mouseout","mousedown","mouseup","focus","blur","load","scroll","resize","contextmenu"]),ve.SOV_EVENT_MARKERS={ja:new Set(["\u3067"]),ko:new Set,tr:new Set(["de","da","te","ta"]),bn:new Set(["\u098F"]),qu:new Set(["pi"])},ve.SOV_SOURCE_MARKERS={ja:{markers:new Set(["\u304B\u3089"]),windowTokens:new Set(["\u30A6\u30A3\u30F3\u30C9\u30A6","\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8","window","document"])},ko:{markers:new Set(["\uC5D0\uC11C"]),windowTokens:new Set(["\uCC3D","\uC708\uB3C4\uC6B0","\uBB38\uC11C","window","document"])},tr:{markers:new Set(["den","dan","ten","tan"]),windowTokens:new Set(["pencere","belge","window","document"])},bn:{markers:new Set(["\u09A5\u09C7\u0995\u09C7","\u09AE\u09A7\u09CD\u09AF\u09C7"]),windowTokens:new Set(["\u0989\u0987\u09A8\u09CD\u09A1\u09CB","\u09A1\u0995\u09C1\u09AE\u09C7\u09A8\u09CD\u099F","window","document"])},qu:{markers:new Set(["manta"]),windowTokens:new Set(["k_iri","ventana","window","document"])}},ve.STANDALONE_MODIFIERS={once:"once",debounced:"debounce",debounce:"debounce",throttled:"throttle",throttle:"throttle"},ve.OR_KEYWORDS=new Set(["or","\u0623\u0648","o","ou","oder","atau","atau","\u6216","\u307E\u305F\u306F","\uB610\uB294","veya","\u0985\u09A5\u09AC\u09BE","utaq","au","\u0430\u0431\u043E","\u0438\u043B\u0438","ho\u1EB7c","lub","\u05D0\u05D5","\u0E2B\u0E23\u0E37\u0E2D","o"]),cr=ve,Re=new cr}});T(),Br(),Oe(),L("ar",St,ze),T(),za(),Pt(),L("bn",Pr,Ve),T(),Sa(),Ke(),L("de",Rr,ke),T(),Ir(),Ce(),Ju(),L("en",Lt,ce),Ar("en",Ou()),T(),Rt(),He(),L("es",$e,Ae),T(),Rt();var Vl={code:"es-MX",name:"Spanish (Mexico)",nativeName:"Espa\xF1ol (M\xE9xico)",direction:"ltr",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",extends:"es",verb:{position:"start",subjectDrop:!0},references:{me:"yo",it:"ello",you:"t\xFA",result:"resultado",event:"evento",target:"objetivo",body:"cuerpo"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mi",it:"su",you:"tu"},keywords:{mi:"me",tu:"you",su:"it"}},roleMarkers:{destination:{primary:"en",alternatives:["sobre","a"],position:"before"},source:{primary:"de",alternatives:["desde"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"con",position:"before"}},keywords:{toggle:{primary:"alternar",alternatives:["cambiar","conmutar","switchear"],normalized:"toggle"},add:{primary:"agregar",alternatives:["a\xF1adir","meter"],normalized:"add"},remove:{primary:"quitar",alternatives:["eliminar","borrar","sacar"],normalized:"remove"},put:{primary:"poner",alternatives:["colocar","meter"],normalized:"put"},append:{primary:"a\xF1adir",normalized:"append"},prepend:{primary:"anteponer",normalized:"prepend"},take:{primary:"tomar",alternatives:["agarrar"],normalized:"take"},make:{primary:"hacer",alternatives:["crear"],normalized:"make"},clone:{primary:"clonar",alternatives:["copiar"],normalized:"clone"},swap:{primary:"intercambiar",alternatives:["cambiar"],normalized:"swap"},morph:{primary:"transformar",alternatives:["convertir"],normalized:"morph"},set:{primary:"establecer",alternatives:["fijar","definir","setear"],normalized:"set"},get:{primary:"obtener",alternatives:["conseguir","jalar"],normalized:"get"},increment:{primary:"incrementar",alternatives:["aumentar","subir"],normalized:"increment"},decrement:{primary:"decrementar",alternatives:["disminuir","bajar"],normalized:"decrement"},log:{primary:"registrar",alternatives:["imprimir","loguear"],normalized:"log"},show:{primary:"mostrar",alternatives:["ense\xF1ar"],normalized:"show"},hide:{primary:"ocultar",alternatives:["esconder"],normalized:"hide"},transition:{primary:"transici\xF3n",alternatives:["animar"],normalized:"transition"},on:{primary:"en",alternatives:["cuando","al"],normalized:"on"},trigger:{primary:"disparar",alternatives:["activar"],normalized:"trigger"},send:{primary:"enviar",alternatives:["mandar"],normalized:"send"},focus:{primary:"enfocar",normalized:"focus"},blur:{primary:"desenfocar",normalized:"blur"},click:{primary:"clic",alternatives:["hacer clic","dar clic"],normalized:"click"},hover:{primary:"sobrevolar",alternatives:["pasar encima"],normalized:"hover"},submit:{primary:"env\xEDo",alternatives:["enviar"],normalized:"submit"},input:{primary:"entrada",alternatives:["introducir"],normalized:"input"},change:{primary:"cambio",alternatives:["cambiar"],normalized:"change"},go:{primary:"ir",alternatives:["navegar"],normalized:"go"},wait:{primary:"esperar",alternatives:["ahorita","aguantar"],normalized:"wait"},fetch:{primary:"buscar",alternatives:["obtener","jalar","traer"],normalized:"fetch"},settle:{primary:"estabilizar",normalized:"settle"},if:{primary:"si",normalized:"if"},when:{primary:"cuando",normalized:"when"},where:{primary:"donde",normalized:"where"},else:{primary:"sino",alternatives:["de lo contrario","si no"],normalized:"else"},repeat:{primary:"repetir",normalized:"repeat"},for:{primary:"para",normalized:"for"},while:{primary:"mientras",normalized:"while"},continue:{primary:"continuar",alternatives:["seguir"],normalized:"continue"},halt:{primary:"detener",alternatives:["parar"],normalized:"halt"},throw:{primary:"lanzar",alternatives:["aventar","arrojar"],normalized:"throw"},call:{primary:"llamar",normalized:"call"},return:{primary:"retornar",alternatives:["devolver","regresar"],normalized:"return"},then:{primary:"entonces",alternatives:["luego","despu\xE9s"],normalized:"then"},and:{primary:"y",alternatives:["adem\xE1s","tambi\xE9n"],normalized:"and"},end:{primary:"fin",alternatives:["final","terminar"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"as\xEDncrono",normalized:"async"},tell:{primary:"decir",normalized:"tell"},default:{primary:"predeterminar",alternatives:["por defecto"],normalized:"default"},init:{primary:"iniciar",alternatives:["inicializar","arrancar"],normalized:"init"},behavior:{primary:"comportamiento",normalized:"behavior"},install:{primary:"instalar",normalized:"install"},measure:{primary:"medir",normalized:"measure"},beep:{primary:"pitido",normalized:"beep"},break:{primary:"romper",normalized:"break"},copy:{primary:"copiar",normalized:"copy"},exit:{primary:"salir",normalized:"exit"},pick:{primary:"escoger",normalized:"pick"},render:{primary:"renderizar",normalized:"render"},into:{primary:"en",alternatives:["dentro de"],normalized:"into"},before:{primary:"antes",normalized:"before"},after:{primary:"despu\xE9s",normalized:"after"},until:{primary:"hasta",normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"de",alternatives:["desde"],normalized:"from"}},eventHandler:{keyword:{primary:"al",alternatives:["cuando","en"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["desde"],position:"before"},eventMarker:{primary:"al",alternatives:["cuando"],position:"before"},temporalMarkers:["cuando","al"]}};L("es-MX",$e,Vl),T(),ko(),Ge(),L("fr",fn,we),T(),Hp(),vn(),L("he",To,Nt),T(),jo(),It(),L("hi",En,Qe),T(),Wo(),Ye(),L("id",Cn,be),T(),Xo(),Wt(),L("it",Tn,Je),T(),_n(),et(),L("ja",Mt,xe),T(),Mn(),tt(),L("ko",qt,De),T(),Es(),Vt(),L("ms",qn,nt),T(),bs(),Kt(),L("pl",$n,it),T(),Rs(),at(),L("pt",Yn,Te),T(),Os(),ut(),L("qu",ti,Be),T(),$s(),Ut(),L("ru",ui,st),T(),Js(),lt(),L("sw",li,Fe),T(),nl(),Ht(),L("th",mi,pt),T(),ol(),Gt(),L("tl",di,mt),T(),Ei(),ct(),L("tr",Qt,Se),T(),zl(),Zt(),L("uk",wi,dt),T(),bl(),Yt(),L("vi",Di,yt),T(),Bi(),ft(),L("zh",tr,je),ir();function Vm(){return[]}function Km(){return[{id:"toggle-bn-full",language:"bn",command:"toggle",priority:100,template:{format:"{patient} \u0995\u09C7 \u099F\u0997\u09B2 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u099F\u0997\u09B2",alternatives:["\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0}}},{id:"toggle-bn-simple",language:"bn",command:"toggle",priority:90,template:{format:"\u099F\u0997\u09B2 {patient}",tokens:[{type:"literal",value:"\u099F\u0997\u09B2",alternatives:["\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-bn-with-dest",language:"bn",command:"toggle",priority:95,template:{format:"{destination} \u098F {patient} \u0995\u09C7 \u099F\u0997\u09B2 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]},{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u099F\u0997\u09B2",alternatives:["\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{destination:{position:0},patient:{position:2}}}]}_u();function Um(){return[{id:"toggle-es-full",language:"es",command:"toggle",priority:100,template:{format:"alternar {patient} en {target}",tokens:[{type:"literal",value:"alternar",alternatives:["cambiar","toggle"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"en",alternatives:["sobre","de"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"en",markerAlternatives:["sobre","de"],default:{type:"reference",value:"me"}}}},{id:"toggle-es-simple",language:"es",command:"toggle",priority:90,template:{format:"alternar {patient}",tokens:[{type:"literal",value:"alternar",alternatives:["cambiar","toggle"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Hm(){return[{id:"toggle-hi-full",language:"hi",command:"toggle",priority:100,template:{format:"{patient} \u0915\u094B {destination} \u092A\u0930 \u091F\u0949\u0917\u0932 \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"destination"},{type:"literal",value:"\u092A\u0930"},{type:"literal",value:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094B"]}]}]},extraction:{patient:{position:0},destination:{marker:"\u0915\u094B",position:2}}},{id:"toggle-hi-simple",language:"hi",command:"toggle",priority:90,template:{format:"{patient} \u091F\u0949\u0917\u0932 \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094B"]}]}]},extraction:{patient:{position:0},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-hi-bare",language:"hi",command:"toggle",priority:80,template:{format:"\u091F\u0949\u0917\u0932 {patient}",tokens:[{type:"literal",value:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function $m(){return[{id:"toggle-it-full",language:"it",command:"toggle",priority:100,template:{format:"commutare {patient} su {target}",tokens:[{type:"literal",value:"commutare",alternatives:["alternare","toggle","cambiare"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"su",alternatives:["in","di"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"su",markerAlternatives:["in","di"],default:{type:"reference",value:"me"}}}},{id:"toggle-it-simple",language:"it",command:"toggle",priority:90,template:{format:"commutare {patient}",tokens:[{type:"literal",value:"commutare",alternatives:["alternare","toggle","cambiare"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Gm(){return[]}function Xm(){return[]}function Qm(){return[{id:"toggle-pl-full",language:"pl",command:"toggle",priority:100,template:{format:"prze\u0142\u0105cz {patient} na {destination}",tokens:[{type:"literal",value:"prze\u0142\u0105cz",alternatives:["przelacz","prze\u0142\u0105czaj"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"na",alternatives:["w","dla"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"na",markerAlternatives:["w","dla"],default:{type:"reference",value:"me"}}}},{id:"toggle-pl-simple",language:"pl",command:"toggle",priority:90,template:{format:"prze\u0142\u0105cz {patient}",tokens:[{type:"literal",value:"prze\u0142\u0105cz",alternatives:["przelacz","prze\u0142\u0105czaj"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Zm(){return[{id:"toggle-qu-sov",language:"qu",command:"toggle",priority:100,template:{format:"{patient} ta t'ikray",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{patient:{position:0}}},{id:"toggle-qu-simple",language:"qu",command:"toggle",priority:90,template:{format:"t'ikray {patient}",tokens:[{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-qu-with-dest",language:"qu",command:"toggle",priority:95,template:{format:"{destination} pi {patient} ta t'ikray",tokens:[{type:"role",role:"destination"},{type:"literal",value:"pi"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{destination:{position:0},patient:{position:2}}},{id:"toggle-qu-dest-man",language:"qu",command:"toggle",priority:93,template:{format:"{destination} man {patient} ta t'ikray",tokens:[{type:"role",role:"destination"},{type:"literal",value:"man"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function Ym(){return[{id:"toggle-ru-full",language:"ru",command:"toggle",priority:100,template:{format:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C {patient} \u043D\u0430 {destination}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u0434\u043B\u044F"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u0434\u043B\u044F"],default:{type:"reference",value:"me"}}}},{id:"toggle-ru-simple",language:"ru",command:"toggle",priority:90,template:{format:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Jm(){return[{id:"toggle-th-simple",language:"th",command:"toggle",priority:100,template:{format:"\u0E2A\u0E25\u0E31\u0E1A {patient}",tokens:[{type:"literal",value:"\u0E2A\u0E25\u0E31\u0E1A"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-th-with-dest",language:"th",command:"toggle",priority:95,template:{format:"\u0E2A\u0E25\u0E31\u0E1A {patient} \u0E43\u0E19 {destination}",tokens:[{type:"literal",value:"\u0E2A\u0E25\u0E31\u0E1A"},{type:"role",role:"patient"},{type:"literal",value:"\u0E43\u0E19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E43\u0E19",position:3}}}]}function ec(){return[]}function tc(){return[{id:"toggle-uk-full",language:"uk",command:"toggle",priority:100,template:{format:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438 {patient} \u043D\u0430 {destination}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u0434\u043B\u044F"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u0434\u043B\u044F"],default:{type:"reference",value:"me"}}}},{id:"toggle-uk-simple",language:"uk",command:"toggle",priority:90,template:{format:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function rc(){return[{id:"toggle-vi-full",language:"vi",command:"toggle",priority:100,template:{format:"chuy\u1EC3n \u0111\u1ED5i {patient} tr\xEAn {target}",tokens:[{type:"literal",value:"chuy\u1EC3n \u0111\u1ED5i",alternatives:["chuy\u1EC3n","b\u1EADt t\u1EAFt"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"tr\xEAn",alternatives:["t\u1EA1i","\u1EDF"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"tr\xEAn",markerAlternatives:["t\u1EA1i","\u1EDF"],default:{type:"reference",value:"me"}}}},{id:"toggle-vi-simple",language:"vi",command:"toggle",priority:90,template:{format:"chuy\u1EC3n \u0111\u1ED5i {patient}",tokens:[{type:"literal",value:"chuy\u1EC3n \u0111\u1ED5i",alternatives:["chuy\u1EC3n","b\u1EADt t\u1EAFt"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function nc(){return[{id:"toggle-zh-full",language:"zh",command:"toggle",priority:100,template:{format:"\u5207\u6362 {patient} \u5728 {target}",tokens:[{type:"literal",value:"\u5207\u6362"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u5728",alternatives:["\u5230","\u4E8E"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u5728",markerAlternatives:["\u5230","\u4E8E"],default:{type:"reference",value:"me"}}}},{id:"toggle-zh-simple",language:"zh",command:"toggle",priority:90,template:{format:"\u5207\u6362 {patient}",tokens:[{type:"literal",value:"\u5207\u6362"},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-zh-ba",language:"zh",command:"toggle",priority:95,template:{format:"\u628A {patient} \u5207\u6362",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u5207\u6362"}]},extraction:{patient:{marker:"\u628A"},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-zh-full-ba",language:"zh",command:"toggle",priority:98,template:{format:"\u5728 {target} \u628A {patient} \u5207\u6362",tokens:[{type:"literal",value:"\u5728",alternatives:["\u5230","\u4E8E"]},{type:"role",role:"destination"},{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u5207\u6362"}]},extraction:{destination:{marker:"\u5728",markerAlternatives:["\u5230","\u4E8E"]},patient:{marker:"\u628A"}}}]}function Kl(e){switch(e){case"ar":return Vm();case"bn":return Km();case"en":return Lu();case"es":return Um();case"hi":return Hm();case"it":return $m();case"ja":return Gm();case"ko":return Xm();case"pl":return Qm();case"qu":return Zm();case"ru":return Ym();case"th":return Jm();case"tr":return ec();case"uk":return tc();case"vi":return rc();case"zh":return nc();default:return[]}}function ic(){return[]}function ac(e){switch(e){case"ar":return ic();default:return[]}}function uc(){return[]}function oc(){return[{id:"put-bn-full",language:"bn",command:"put",priority:100,template:{format:"{patient} \u0995\u09C7 {destination} \u098F \u09B0\u09BE\u0996\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]},{type:"literal",value:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"]}]},extraction:{patient:{position:0},destination:{marker:"\u098F",position:2}}},{id:"put-bn-simple",language:"bn",command:"put",priority:90,template:{format:"\u09B0\u09BE\u0996\u09C1\u09A8 {patient} {destination} \u098F",tokens:[{type:"literal",value:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"]},{type:"role",role:"patient"},{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]}]},extraction:{patient:{position:1},destination:{position:2}}}]}Nu();function sc(){return[{id:"put-es-full",language:"es",command:"put",priority:100,template:{format:"poner {patient} en {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar","put"]},{type:"role",role:"patient"},{type:"literal",value:"en",alternatives:["dentro de","a"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"en",markerAlternatives:["dentro de","a"]}}},{id:"put-es-before",language:"es",command:"put",priority:95,template:{format:"poner {patient} antes de {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar"]},{type:"role",role:"patient"},{type:"literal",value:"antes de",alternatives:["antes"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"antes de",markerAlternatives:["antes"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-es-after",language:"es",command:"put",priority:95,template:{format:"poner {patient} despu\xE9s de {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar"]},{type:"role",role:"patient"},{type:"literal",value:"despu\xE9s de",alternatives:["despues de","despu\xE9s"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"despu\xE9s de",markerAlternatives:["despues de","despu\xE9s"]},manner:{default:{type:"literal",value:"after"}}}}]}function lc(){return[{id:"put-hi-full",language:"hi",command:"put",priority:100,template:{format:"{patient} \u0915\u094B {destination} \u092E\u0947\u0902 \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"destination"},{type:"literal",value:"\u092E\u0947\u0902"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]}]},extraction:{patient:{position:0},destination:{marker:"\u092E\u0947\u0902",position:3}}},{id:"put-hi-simple",language:"hi",command:"put",priority:90,template:{format:"{patient} \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]}]},extraction:{patient:{position:0},destination:{default:{type:"reference",value:"me"}}}},{id:"put-hi-bare",language:"hi",command:"put",priority:80,template:{format:"\u0930\u0916\u0947\u0902 {patient}",tokens:[{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function pc(){return[{id:"put-id-full",language:"id",command:"put",priority:100,template:{format:"taruh {patient} ke dalam {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan","tempatkan","put"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"ke"},{type:"literal",value:"dalam",alternatives:["di"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:4}}},{id:"put-id-simple-ke",language:"id",command:"put",priority:95,template:{format:"taruh {patient} ke {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan","tempatkan"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"ke",alternatives:["di","pada"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}},{id:"put-id-di",language:"id",command:"put",priority:90,template:{format:"taruh {patient} di {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"di"},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}}]}function mc(){return[{id:"put-it-full",language:"it",command:"put",priority:100,template:{format:"mettere {patient} in {target}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"in",alternatives:["dentro","nel"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"in",markerAlternatives:["dentro","nel"]}}},{id:"put-it-simple",language:"it",command:"put",priority:90,template:{format:"mettere {patient}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function cc(){return[]}function dc(){return[]}function yc(){return[{id:"put-pl-full",language:"pl",command:"put",priority:100,template:{format:"umie\u015B\u0107 {patient} w {destination}",tokens:[{type:"literal",value:"umie\u015B\u0107",alternatives:["umiesc","wstaw","w\u0142\xF3\u017C","wloz"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"w",alternatives:["do","na"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"w",markerAlternatives:["do","na"]}}},{id:"put-pl-before",language:"pl",command:"put",priority:95,template:{format:"umie\u015B\u0107 {patient} przed {destination}",tokens:[{type:"literal",value:"umie\u015B\u0107",alternatives:["umiesc","wstaw"]},{type:"role",role:"patient"},{type:"literal",value:"przed"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"przed"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-pl-after",language:"pl",command:"put",priority:95,template:{format:"umie\u015B\u0107 {patient} po {destination}",tokens:[{type:"literal",value:"umie\u015B\u0107",alternatives:["umiesc","wstaw"]},{type:"role",role:"patient"},{type:"literal",value:"po"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"po"},manner:{default:{type:"literal",value:"after"}}}}]}function fc(){return[{id:"put-ru-full",language:"ru",command:"put",priority:100,template:{format:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C {patient} \u0432 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C","\u0432\u0441\u0442\u0430\u0432\u044C"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u0432\u043E","\u043D\u0430"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u0432",markerAlternatives:["\u0432\u043E","\u043D\u0430"]}}},{id:"put-ru-before",language:"ru",command:"put",priority:95,template:{format:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C {patient} \u043F\u0435\u0440\u0435\u0434 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u0435\u0440\u0435\u0434",alternatives:["\u0434\u043E"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u0435\u0440\u0435\u0434",markerAlternatives:["\u0434\u043E"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-ru-after",language:"ru",command:"put",priority:95,template:{format:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C {patient} \u043F\u043E\u0441\u043B\u0435 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u043E\u0441\u043B\u0435"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u043E\u0441\u043B\u0435"},manner:{default:{type:"literal",value:"after"}}}}]}function vc(){return[{id:"put-th-full",language:"th",command:"put",priority:100,template:{format:"\u0E43\u0E2A\u0E48 {patient} \u0E43\u0E19 {destination}",tokens:[{type:"literal",value:"\u0E43\u0E2A\u0E48",alternatives:["\u0E27\u0E32\u0E07"]},{type:"role",role:"patient"},{type:"literal",value:"\u0E43\u0E19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E43\u0E19",position:3}}}]}function hc(){return[]}function gc(){return[{id:"put-uk-full",language:"uk",command:"put",priority:100,template:{format:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438 {patient} \u0432 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438","\u0432\u0441\u0442\u0430\u0432"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u0443","\u043D\u0430"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u0432",markerAlternatives:["\u0443","\u043D\u0430"]}}},{id:"put-uk-before",language:"uk",command:"put",priority:95,template:{format:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438 {patient} \u043F\u0435\u0440\u0435\u0434 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u0435\u0440\u0435\u0434",alternatives:["\u0434\u043E"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u0435\u0440\u0435\u0434",markerAlternatives:["\u0434\u043E"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-uk-after",language:"uk",command:"put",priority:95,template:{format:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438 {patient} \u043F\u0456\u0441\u043B\u044F {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u0456\u0441\u043B\u044F"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u0456\u0441\u043B\u044F"},manner:{default:{type:"literal",value:"after"}}}}]}function Ec(){return[{id:"put-vi-into",language:"vi",command:"put",priority:100,template:{format:"\u0111\u1EB7t {patient} v\xE0o {target}",tokens:[{type:"literal",value:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"]},{type:"role",role:"patient"},{type:"literal",value:"v\xE0o",alternatives:["v\xE0o trong"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"v\xE0o",markerAlternatives:["v\xE0o trong"]}}},{id:"put-vi-before",language:"vi",command:"put",priority:95,template:{format:"\u0111\u1EB7t {patient} tr\u01B0\u1EDBc {target}",tokens:[{type:"literal",value:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"]},{type:"role",role:"patient"},{type:"literal",value:"tr\u01B0\u1EDBc",alternatives:["tr\u01B0\u1EDBc khi"]},{type:"role",role:"manner"}]},extraction:{patient:{position:1},manner:{marker:"tr\u01B0\u1EDBc",markerAlternatives:["tr\u01B0\u1EDBc khi"]}}},{id:"put-vi-after",language:"vi",command:"put",priority:95,template:{format:"\u0111\u1EB7t {patient} sau {target}",tokens:[{type:"literal",value:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"]},{type:"role",role:"patient"},{type:"literal",value:"sau",alternatives:["sau khi"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"sau",markerAlternatives:["sau khi"]}}}]}function zc(){return[{id:"put-zh-full",language:"zh",command:"put",priority:100,template:{format:"\u653E\u7F6E {patient} \u5230 {destination}",tokens:[{type:"literal",value:"\u653E\u7F6E",alternatives:["\u653E","\u653E\u5165","\u7F6E\u5165","put"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"\u5230",alternatives:["\u5728","\u4E8E","\u5165"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}},{id:"put-zh-ba",language:"zh",command:"put",priority:95,template:{format:"\u628A {patient} \u653E\u5230 {destination}",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"\u653E\u5230",alternatives:["\u653E\u5728","\u653E\u5165"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}}]}function Ul(e){switch(e){case"ar":return uc();case"bn":return oc();case"en":return Ru();case"es":return sc();case"hi":return lc();case"id":return pc();case"it":return mc();case"ja":return cc();case"ko":return dc();case"pl":return yc();case"ru":return fc();case"th":return vc();case"tr":return hc();case"uk":return gc();case"vi":return Ec();case"zh":return zc();default:return[]}}function kc(){return[]}function Cc(){return[{id:"event-handler-bn-sov",language:"bn",command:"on",priority:100,template:{format:"{event} \u09A4\u09C7 {action}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u09A4\u09C7",alternatives:["\u098F"]},{type:"role",role:"action"}]},extraction:{event:{position:0},action:{position:2}}},{id:"event-handler-bn-with-source",language:"bn",command:"on",priority:95,template:{format:"{source} \u09A5\u09C7\u0995\u09C7 {event} \u09A4\u09C7 {action}",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u09A5\u09C7\u0995\u09C7"},{type:"role",role:"event"},{type:"literal",value:"\u09A4\u09C7",alternatives:["\u098F"]},{type:"role",role:"action"}]},extraction:{source:{position:0},event:{marker:"\u09A4\u09C7",position:2},action:{position:4}}},{id:"event-handler-bn-when",language:"bn",command:"on",priority:90,template:{format:"\u09AF\u0996\u09A8 {event} {action}",tokens:[{type:"literal",value:"\u09AF\u0996\u09A8"},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}}]}function Ac(){return[{id:"event-de-wenn-source",language:"de",command:"on",priority:115,template:{format:"wenn {event} von {source} {body}",tokens:[{type:"literal",value:"wenn",alternatives:["falls","sobald"]},{type:"role",role:"event"},{type:"literal",value:"von",alternatives:["aus"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"von",markerAlternatives:["aus"]}}},{id:"event-de-wenn",language:"de",command:"on",priority:105,template:{format:"wenn {event} {body}",tokens:[{type:"literal",value:"wenn",alternatives:["falls","sobald"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-bei-source",language:"de",command:"on",priority:110,template:{format:"bei {event} von {source} {body}",tokens:[{type:"literal",value:"bei",alternatives:["beim"]},{type:"role",role:"event"},{type:"literal",value:"von",alternatives:["aus"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"von",markerAlternatives:["aus"]}}},{id:"event-de-bei",language:"de",command:"on",priority:100,template:{format:"bei {event} {body}",tokens:[{type:"literal",value:"bei",alternatives:["beim"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-auf",language:"de",command:"on",priority:95,template:{format:"auf {event} {body}",tokens:[{type:"literal",value:"auf"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-im-falle",language:"de",command:"on",priority:90,template:{format:"im Falle von {event} {body}",tokens:[{type:"literal",value:"im Falle von",alternatives:["im Fall von"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}Wu();function wc(){return[{id:"event-es-native-al-source",language:"es",command:"on",priority:115,template:{format:"al {event} en {source} {body}",tokens:[{type:"literal",value:"al"},{type:"role",role:"event"},{type:"literal",value:"en",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"en",markerAlternatives:["de"]}}},{id:"event-es-cuando-source",language:"es",command:"on",priority:112,template:{format:"cuando {event} en {source} {body}",tokens:[{type:"literal",value:"cuando"},{type:"role",role:"event"},{type:"literal",value:"en",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"en",markerAlternatives:["de"]}}},{id:"event-es-native-al",language:"es",command:"on",priority:108,template:{format:"al {event} {body}",tokens:[{type:"literal",value:"al"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-standard",language:"es",command:"on",priority:100,template:{format:"en {event} {body}",tokens:[{type:"literal",value:"en",alternatives:["al","cuando"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-source",language:"es",command:"on",priority:110,template:{format:"en {event} desde {source} {body}",tokens:[{type:"literal",value:"en",alternatives:["al"]},{type:"role",role:"event"},{type:"literal",value:"desde",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"desde",markerAlternatives:["de"]}}},{id:"event-es-when",language:"es",command:"on",priority:95,template:{format:"cuando {event} {body}",tokens:[{type:"literal",value:"cuando"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-conditional-si",language:"es",command:"on",priority:85,template:{format:"si {event} {body}",tokens:[{type:"literal",value:"si"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function bc(){return[{id:"event-fr-quand-source",language:"fr",command:"on",priority:115,template:{format:"quand {event} de {source} {body}",tokens:[{type:"literal",value:"quand",alternatives:["lorsque"]},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["depuis"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["depuis"]}}},{id:"event-fr-quand",language:"fr",command:"on",priority:105,template:{format:"quand {event} {body}",tokens:[{type:"literal",value:"quand",alternatives:["lorsque"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-sur-source",language:"fr",command:"on",priority:110,template:{format:"sur {event} de {source} {body}",tokens:[{type:"literal",value:"sur",alternatives:["lors de"]},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["depuis"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["depuis"]}}},{id:"event-fr-sur",language:"fr",command:"on",priority:100,template:{format:"sur {event} {body}",tokens:[{type:"literal",value:"sur",alternatives:["lors de"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-si",language:"fr",command:"on",priority:95,template:{format:"si {event} {body}",tokens:[{type:"literal",value:"si"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-a",language:"fr",command:"on",priority:90,template:{format:"\xE0 {event} {body}",tokens:[{type:"literal",value:"\xE0",alternatives:["au"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function xc(){return[]}function Dc(){return[{id:"event-hi-standard",language:"hi",command:"on",priority:100,template:{format:"{event} \u092A\u0930",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u092A\u0930",alternatives:["\u092E\u0947\u0902","\u091C\u092C"]}]},extraction:{event:{position:0}}},{id:"event-hi-with-source",language:"hi",command:"on",priority:95,template:{format:"{source} \u0938\u0947 {event} \u092A\u0930",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u0938\u0947"},{type:"role",role:"event"},{type:"literal",value:"\u092A\u0930",alternatives:["\u092E\u0947\u0902","\u091C\u092C"]}]},extraction:{source:{position:0},event:{marker:"\u0938\u0947",position:2}}},{id:"event-hi-bare",language:"hi",command:"on",priority:80,template:{format:"{event}",tokens:[{type:"role",role:"event"}]},extraction:{event:{position:0}}}]}function Tc(){return[{id:"event-id-ketika-source",language:"id",command:"on",priority:115,template:{format:"ketika {event} dari {source} {body}",tokens:[{type:"literal",value:"ketika",alternatives:["saat","waktu"]},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}},{id:"event-id-ketika",language:"id",command:"on",priority:105,template:{format:"ketika {event} {body}",tokens:[{type:"literal",value:"ketika",alternatives:["saat","waktu"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-pada-source",language:"id",command:"on",priority:110,template:{format:"pada {event} dari {source} {body}",tokens:[{type:"literal",value:"pada"},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}},{id:"event-id-pada",language:"id",command:"on",priority:100,template:{format:"pada {event} {body}",tokens:[{type:"literal",value:"pada"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-jika",language:"id",command:"on",priority:95,template:{format:"jika {event} {body}",tokens:[{type:"literal",value:"jika",alternatives:["kalau","apabila"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-bila",language:"id",command:"on",priority:90,template:{format:"bila {event} {body}",tokens:[{type:"literal",value:"bila"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Bc(){return[{id:"event-handler-it-full",language:"it",command:"on",priority:100,template:{format:"su {event} {action}",tokens:[{type:"literal",value:"su",alternatives:["quando","al","on"]},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}},{id:"event-handler-it-from",language:"it",command:"on",priority:95,template:{format:"su {event} da {source} {action}",tokens:[{type:"literal",value:"su",alternatives:["quando","al","on"]},{type:"role",role:"event"},{type:"literal",value:"da",alternatives:["di"]},{type:"role",role:"source"},{type:"role",role:"action"}]},extraction:{event:{position:1},source:{marker:"da",markerAlternatives:["di"]},action:{position:-1}}}]}function Fc(){return[]}function Sc(){return[]}function Pc(){return[{id:"event-ms-apabila",language:"ms",command:"on",priority:100,template:{format:"apabila {event} {body}",tokens:[{type:"literal",value:"apabila",alternatives:["bila","ketika"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-ms-apabila-source",language:"ms",command:"on",priority:110,template:{format:"apabila {event} dari {source} {body}",tokens:[{type:"literal",value:"apabila",alternatives:["bila","ketika"]},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}}]}function jc(){return[{id:"event-handler-pl-full",language:"pl",command:"on",priority:100,template:{format:"gdy {event} na {source}",tokens:[{type:"literal",value:"gdy",alternatives:["kiedy","przy","na"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"na",alternatives:["w","przy","z"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"na",markerAlternatives:["w","przy","z"],default:{type:"reference",value:"me"}}}},{id:"event-handler-pl-simple",language:"pl",command:"on",priority:90,template:{format:"gdy {event}",tokens:[{type:"literal",value:"gdy",alternatives:["kiedy","przy","na"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Lc(){return[{id:"event-pt-ao-source",language:"pt",command:"on",priority:115,template:{format:"ao {event} em {source} {body}",tokens:[{type:"literal",value:"ao",alternatives:["\xE0"]},{type:"role",role:"event"},{type:"literal",value:"em",alternatives:["de","no","na"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"em",markerAlternatives:["de","no","na"]}}},{id:"event-pt-quando-source",language:"pt",command:"on",priority:110,template:{format:"quando {event} de {source} {body}",tokens:[{type:"literal",value:"quando"},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["em","no","na"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["em","no","na"]}}},{id:"event-pt-ao",language:"pt",command:"on",priority:105,template:{format:"ao {event} {body}",tokens:[{type:"literal",value:"ao",alternatives:["\xE0"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-quando",language:"pt",command:"on",priority:100,template:{format:"quando {event} {body}",tokens:[{type:"literal",value:"quando"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-em",language:"pt",command:"on",priority:95,template:{format:"em {event} {body}",tokens:[{type:"literal",value:"em",alternatives:["no","na"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-se",language:"pt",command:"on",priority:90,template:{format:"se {event} {body}",tokens:[{type:"literal",value:"se"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function _c(){return[{id:"event-qu-source",language:"qu",command:"on",priority:110,template:{format:"{event} pi {source} manta {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"pi"},{type:"role",role:"source"},{type:"literal",value:"manta"}]},extraction:{event:{position:0},source:{marker:"manta"}}},{id:"event-qu-kaqtin",language:"qu",command:"on",priority:105,template:{format:"{event} kaqtin {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"kaqtin",alternatives:["qtin","ptin"]}]},extraction:{event:{position:0}}},{id:"event-qu-standard",language:"qu",command:"on",priority:100,template:{format:"{event} pi {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"pi",alternatives:["kaqpi","kaqpim"]}]},extraction:{event:{position:0}}}]}function Rc(){return[{id:"event-handler-ru-full",language:"ru",command:"on",priority:100,template:{format:"\u043F\u0440\u0438 {event} \u043D\u0430 {source}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u0433\u0434\u0430"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u043E\u0442"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u043E\u0442"],default:{type:"reference",value:"me"}}}},{id:"event-handler-ru-simple",language:"ru",command:"on",priority:90,template:{format:"\u043F\u0440\u0438 {event}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u0433\u0434\u0430"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Nc(){return[{id:"event-sw-unapo-source",language:"sw",command:"on",priority:115,template:{format:"unapo {event} kutoka {source} {body}",tokens:[{type:"literal",value:"unapo",alternatives:["wakati wa","wakati"]},{type:"role",role:"event"},{type:"literal",value:"kutoka"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"kutoka"}}},{id:"event-sw-unapo",language:"sw",command:"on",priority:105,template:{format:"unapo {event} {body}",tokens:[{type:"literal",value:"unapo",alternatives:["wakati wa","wakati"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-kwa-source",language:"sw",command:"on",priority:110,template:{format:"kwa {event} kutoka {source} {body}",tokens:[{type:"literal",value:"kwa"},{type:"role",role:"event"},{type:"literal",value:"kutoka"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"kutoka"}}},{id:"event-sw-kwa",language:"sw",command:"on",priority:100,template:{format:"kwa {event} {body}",tokens:[{type:"literal",value:"kwa"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-ikiwa",language:"sw",command:"on",priority:95,template:{format:"ikiwa {event} {body}",tokens:[{type:"literal",value:"ikiwa",alternatives:["kama"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-baada-ya",language:"sw",command:"on",priority:90,template:{format:"baada ya {event} {body}",tokens:[{type:"literal",value:"baada ya"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Ic(){return[{id:"event-handler-th-svo",language:"th",command:"on",priority:100,template:{format:"\u0E40\u0E21\u0E37\u0E48\u0E2D {event} {action}",tokens:[{type:"literal",value:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"]},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}},{id:"event-handler-th-with-source",language:"th",command:"on",priority:95,template:{format:"\u0E40\u0E21\u0E37\u0E48\u0E2D {event} \u0E08\u0E32\u0E01 {source} {action}",tokens:[{type:"literal",value:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"]},{type:"role",role:"event"},{type:"literal",value:"\u0E08\u0E32\u0E01"},{type:"role",role:"source"},{type:"role",role:"action"}]},extraction:{event:{position:1},source:{marker:"\u0E08\u0E32\u0E01",position:3},action:{position:4}}}]}function Wc(){return[{id:"event-tl-kapag-source",language:"tl",command:"on",priority:115,template:{format:"kapag {event} mula_sa {source} {body}",tokens:[{type:"literal",value:"kapag",alternatives:["kung","sa"]},{type:"role",role:"event"},{type:"literal",value:"mula_sa",alternatives:["galing_sa"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"mula_sa"}}},{id:"event-tl-kapag",language:"tl",command:"on",priority:105,template:{format:"kapag {event} {body}",tokens:[{type:"literal",value:"kapag",alternatives:["kung","sa"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Mc(){return[]}function Oc(){return[{id:"event-handler-uk-full",language:"uk",command:"on",priority:100,template:{format:"\u043F\u0440\u0438 {event} \u043D\u0430 {source}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u043B\u0438"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u0432\u0456\u0434"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u0432\u0456\u0434"],default:{type:"reference",value:"me"}}}},{id:"event-handler-uk-simple",language:"uk",command:"on",priority:90,template:{format:"\u043F\u0440\u0438 {event}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u043B\u0438"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function qc(){return[{id:"event-handler-vi-full",language:"vi",command:"on",priority:100,template:{format:"khi {event} tr\xEAn {source}",tokens:[{type:"literal",value:"khi",alternatives:["l\xFAc","tr\xEAn"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"tr\xEAn",alternatives:["t\u1EA1i"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"tr\xEAn",markerAlternatives:["t\u1EA1i"],default:{type:"reference",value:"me"}}}},{id:"event-handler-vi-simple",language:"vi",command:"on",priority:90,template:{format:"khi {event}",tokens:[{type:"literal",value:"khi",alternatives:["l\xFAc","tr\xEAn"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Vc(){return[{id:"event-zh-temporal-source",language:"zh",command:"on",priority:115,template:{format:"{event} \u7684\u65F6\u5019 \u4ECE {source} {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u7684\u65F6\u5019",alternatives:["\u65F6\u5019","\u65F6"]},{type:"literal",value:"\u4ECE",alternatives:["\u5728"]},{type:"role",role:"source"}]},extraction:{event:{position:0},source:{marker:"\u4ECE",markerAlternatives:["\u5728"]}}},{id:"event-zh-source",language:"zh",command:"on",priority:110,template:{format:"\u5F53 {event} \u4ECE {source} {body}",tokens:[{type:"literal",value:"\u5F53"},{type:"role",role:"event"},{type:"literal",value:"\u4ECE",alternatives:["\u5728"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"\u4ECE",markerAlternatives:["\u5728"]}}},{id:"event-zh-immediate",language:"zh",command:"on",priority:108,template:{format:"\u4E00 {event} \u5C31 {body}",tokens:[{type:"literal",value:"\u4E00"},{type:"role",role:"event"},{type:"literal",value:"\u5C31"}]},extraction:{event:{position:1}}},{id:"event-zh-temporal",language:"zh",command:"on",priority:105,template:{format:"{event} \u7684\u65F6\u5019 {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u7684\u65F6\u5019",alternatives:["\u65F6\u5019","\u65F6"]}]},extraction:{event:{position:0}}},{id:"event-zh-whenever",language:"zh",command:"on",priority:103,template:{format:"\u6BCF\u5F53 {event} {body}",tokens:[{type:"literal",value:"\u6BCF\u5F53",alternatives:["\u6BCF\u6B21"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-zh-standard",language:"zh",command:"on",priority:100,template:{format:"\u5F53 {event} {body}",tokens:[{type:"literal",value:"\u5F53"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-zh-completion",language:"zh",command:"on",priority:95,template:{format:"{event} \u4E86 {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u4E86"}]},extraction:{event:{position:0}}},{id:"event-zh-conditional",language:"zh",command:"on",priority:90,template:{format:"\u5982\u679C {event} {body}",tokens:[{type:"literal",value:"\u5982\u679C",alternatives:["\u82E5","\u5047\u5982"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Hl(e){switch(e){case"ar":return kc();case"bn":return Cc();case"de":return Ac();case"en":return Iu();case"es":return wc();case"fr":return bc();case"he":return xc();case"hi":return Dc();case"id":return Tc();case"it":return Bc();case"ja":return Fc();case"ko":return Sc();case"ms":return Pc();case"pl":return jc();case"pt":return Lc();case"qu":return _c();case"ru":return Rc();case"sw":return Nc();case"th":return Ic();case"tl":return Wc();case"tr":return Mc();case"uk":return Oc();case"vi":return qc();case"zh":return Vc();default:return[]}}function Kc(){return[]}function Uc(){return[]}function Hc(){return[]}function $c(e){switch(e){case"ja":return Kc();case"ko":return Uc();case"tr":return Hc();default:return[]}}function Gc(){return[]}function Xc(){return[{id:"add-bn-full",language:"bn",command:"add",priority:100,template:{format:"{patient} \u0995\u09C7 \u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09AF\u09CB\u0997"},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0}}},{id:"add-bn-simple",language:"bn",command:"add",priority:90,template:{format:"\u09AF\u09CB\u0997 {patient}",tokens:[{type:"literal",value:"\u09AF\u09CB\u0997"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"add-bn-with-dest",language:"bn",command:"add",priority:95,template:{format:"{destination} \u098F {patient} \u0995\u09C7 \u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]},{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09AF\u09CB\u0997"},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{destination:{position:0},patient:{position:2}}}]}function Qc(){return[{id:"add-hi-full",language:"hi",command:"add",priority:100,template:{format:"{patient} \u0915\u094B {destination} \u092E\u0947\u0902 \u091C\u094B\u0921\u093C\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"destination"},{type:"literal",value:"\u092E\u0947\u0902"},{type:"literal",value:"\u091C\u094B\u0921\u093C\u0947\u0902",alternatives:["\u091C\u094B\u0921\u093C"]}]},extraction:{patient:{position:0},destination:{marker:"\u092E\u0947\u0902",position:3}}},{id:"add-hi-simple",language:"hi",command:"add",priority:90,template:{format:"{patient} \u091C\u094B\u0921\u093C\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u091C\u094B\u0921\u093C\u0947\u0902",alternatives:["\u091C\u094B\u0921\u093C"]}]},extraction:{patient:{position:0},destination:{default:{type:"reference",value:"me"}}}},{id:"add-hi-bare",language:"hi",command:"add",priority:80,template:{format:"\u091C\u094B\u0921\u093C\u0947\u0902 {patient}",tokens:[{type:"literal",value:"\u091C\u094B\u0921\u093C\u0947\u0902",alternatives:["\u091C\u094B\u0921\u093C"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Zc(){return[{id:"add-it-full",language:"it",command:"add",priority:100,template:{format:"aggiungere {patient} a {target}",tokens:[{type:"literal",value:"aggiungere",alternatives:["aggiungi","add"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"a",alternatives:["su","in"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"a",markerAlternatives:["su","in"],default:{type:"reference",value:"me"}}}},{id:"add-it-simple",language:"it",command:"add",priority:90,template:{format:"aggiungere {patient}",tokens:[{type:"literal",value:"aggiungere",alternatives:["aggiungi","add"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Yc(){return[]}function Jc(){return[]}function ed(){return[{id:"add-pl-full",language:"pl",command:"add",priority:100,template:{format:"dodaj {patient} do {destination}",tokens:[{type:"literal",value:"dodaj",alternatives:["do\u0142\u0105cz","dolacz"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"do",alternatives:["na","w"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"do",markerAlternatives:["na","w"],default:{type:"reference",value:"me"}}}},{id:"add-pl-simple",language:"pl",command:"add",priority:90,template:{format:"dodaj {patient}",tokens:[{type:"literal",value:"dodaj",alternatives:["do\u0142\u0105cz","dolacz"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function td(){return[{id:"add-qu-sov",language:"qu",command:"add",priority:100,template:{format:"{patient} ta yapay",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"yapay",alternatives:["yapaykuy"]}]},extraction:{patient:{position:0}}},{id:"add-qu-simple",language:"qu",command:"add",priority:90,template:{format:"yapay {patient}",tokens:[{type:"literal",value:"yapay",alternatives:["yapaykuy"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"add-qu-with-dest",language:"qu",command:"add",priority:95,template:{format:"{destination} man {patient} ta yapay",tokens:[{type:"role",role:"destination"},{type:"literal",value:"man"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"yapay",alternatives:["yapaykuy"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function rd(){return[{id:"add-ru-full",language:"ru",command:"add",priority:100,template:{format:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C {patient} \u043A {destination}",tokens:[{type:"literal",value:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C",alternatives:["\u0434\u043E\u0431\u0430\u0432\u044C"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043A",alternatives:["\u043D\u0430","\u0432"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u043A",markerAlternatives:["\u043D\u0430","\u0432"],default:{type:"reference",value:"me"}}}},{id:"add-ru-simple",language:"ru",command:"add",priority:90,template:{format:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C",alternatives:["\u0434\u043E\u0431\u0430\u0432\u044C"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function nd(){return[{id:"add-th-simple",language:"th",command:"add",priority:100,template:{format:"\u0E40\u0E1E\u0E34\u0E48\u0E21 {patient}",tokens:[{type:"literal",value:"\u0E40\u0E1E\u0E34\u0E48\u0E21"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"add-th-with-dest",language:"th",command:"add",priority:95,template:{format:"\u0E40\u0E1E\u0E34\u0E48\u0E21 {patient} \u0E43\u0E19 {destination}",tokens:[{type:"literal",value:"\u0E40\u0E1E\u0E34\u0E48\u0E21"},{type:"role",role:"patient"},{type:"literal",value:"\u0E43\u0E19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E43\u0E19",position:3}}}]}function id(){return[]}function ad(){return[{id:"add-uk-full",language:"uk",command:"add",priority:100,template:{format:"\u0434\u043E\u0434\u0430\u0442\u0438 {patient} \u0434\u043E {destination}",tokens:[{type:"literal",value:"\u0434\u043E\u0434\u0430\u0442\u0438",alternatives:["\u0434\u043E\u0434\u0430\u0439"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0434\u043E",alternatives:["\u043D\u0430","\u0432"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u0434\u043E",markerAlternatives:["\u043D\u0430","\u0432"],default:{type:"reference",value:"me"}}}},{id:"add-uk-simple",language:"uk",command:"add",priority:90,template:{format:"\u0434\u043E\u0434\u0430\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0434\u043E\u0434\u0430\u0442\u0438",alternatives:["\u0434\u043E\u0434\u0430\u0439"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function ud(){return[{id:"add-vi-full",language:"vi",command:"add",priority:100,template:{format:"th\xEAm {patient} v\xE0o {target}",tokens:[{type:"literal",value:"th\xEAm",alternatives:["b\u1ED5 sung"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"v\xE0o",alternatives:["cho"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"v\xE0o",markerAlternatives:["cho"],default:{type:"reference",value:"me"}}}},{id:"add-vi-simple",language:"vi",command:"add",priority:90,template:{format:"th\xEAm {patient}",tokens:[{type:"literal",value:"th\xEAm",alternatives:["b\u1ED5 sung"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function od(){return[{id:"add-zh-full",language:"zh",command:"add",priority:100,template:{format:"\u7ED9 {destination} \u6DFB\u52A0 {patient}",tokens:[{type:"literal",value:"\u7ED9",alternatives:["\u70BA","\u4E3A"]},{type:"role",role:"destination"},{type:"literal",value:"\u6DFB\u52A0",alternatives:["\u52A0","\u589E\u52A0","\u52A0\u4E0A"]},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"add-zh-simple",language:"zh",command:"add",priority:90,template:{format:"\u6DFB\u52A0 {patient}",tokens:[{type:"literal",value:"\u6DFB\u52A0",alternatives:["\u52A0","\u589E\u52A0"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}},{id:"add-zh-ba",language:"zh",command:"add",priority:95,template:{format:"\u628A {patient} \u6DFB\u52A0\u5230 {destination}",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u6DFB\u52A0\u5230",alternatives:["\u52A0\u5230","\u589E\u52A0\u5230"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u6DFB\u52A0\u5230",markerAlternatives:["\u52A0\u5230","\u589E\u52A0\u5230"]}}}]}function sd(e){switch(e){case"ar":return Gc();case"bn":return Xc();case"hi":return Qc();case"it":return Zc();case"ja":return Yc();case"ko":return Jc();case"pl":return ed();case"qu":return td();case"ru":return rd();case"th":return nd();case"tr":return id();case"uk":return ad();case"vi":return ud();case"zh":return od();default:return[]}}function ld(){return[]}function pd(){return[{id:"remove-bn-full",language:"bn",command:"remove",priority:100,template:{format:"{patient} \u0995\u09C7 \u09B8\u09B0\u09BE\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09B8\u09B0\u09BE\u09A8",alternatives:["\u09AE\u09C1\u099B\u09C1\u09A8"]}]},extraction:{patient:{position:0}}},{id:"remove-bn-simple",language:"bn",command:"remove",priority:90,template:{format:"\u09B8\u09B0\u09BE\u09A8 {patient}",tokens:[{type:"literal",value:"\u09B8\u09B0\u09BE\u09A8",alternatives:["\u09AE\u09C1\u099B\u09C1\u09A8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"remove-bn-with-source",language:"bn",command:"remove",priority:95,template:{format:"{source} \u09A5\u09C7\u0995\u09C7 {patient} \u0995\u09C7 \u09B8\u09B0\u09BE\u09A8",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u09A5\u09C7\u0995\u09C7"},{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09B8\u09B0\u09BE\u09A8",alternatives:["\u09AE\u09C1\u099B\u09C1\u09A8"]}]},extraction:{source:{position:0},patient:{position:2}}}]}function md(){return[{id:"remove-hi-full",language:"hi",command:"remove",priority:100,template:{format:"{patient} \u0915\u094B {source} \u0938\u0947 \u0939\u091F\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"source"},{type:"literal",value:"\u0938\u0947"},{type:"literal",value:"\u0939\u091F\u093E\u090F\u0902",alternatives:["\u0939\u091F\u093E","\u092E\u093F\u091F\u093E\u090F\u0902"]}]},extraction:{patient:{position:0},source:{marker:"\u0938\u0947",position:3}}},{id:"remove-hi-simple",language:"hi",command:"remove",priority:90,template:{format:"{patient} \u0939\u091F\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0939\u091F\u093E\u090F\u0902",alternatives:["\u0939\u091F\u093E","\u092E\u093F\u091F\u093E\u090F\u0902"]}]},extraction:{patient:{position:0},source:{default:{type:"reference",value:"me"}}}},{id:"remove-hi-bare",language:"hi",command:"remove",priority:80,template:{format:"\u0939\u091F\u093E\u090F\u0902 {patient}",tokens:[{type:"literal",value:"\u0939\u091F\u093E\u090F\u0902",alternatives:["\u0939\u091F\u093E","\u092E\u093F\u091F\u093E\u090F\u0902"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function cd(){return[{id:"remove-it-full",language:"it",command:"remove",priority:100,template:{format:"rimuovere {patient} da {target}",tokens:[{type:"literal",value:"rimuovere",alternatives:["rimuovi","eliminare","togliere","remove"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"da",alternatives:["di"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"da",markerAlternatives:["di"],default:{type:"reference",value:"me"}}}},{id:"remove-it-simple",language:"it",command:"remove",priority:90,template:{format:"rimuovere {patient}",tokens:[{type:"literal",value:"rimuovere",alternatives:["rimuovi","eliminare","togliere","remove"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function dd(){return[]}function yd(){return[]}function fd(){return[{id:"remove-pl-full",language:"pl",command:"remove",priority:100,template:{format:"usu\u0144 {patient} z {source}",tokens:[{type:"literal",value:"usu\u0144",alternatives:["usun","wyczy\u015B\u0107","wyczysc"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"z",alternatives:["od","ze"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"z",markerAlternatives:["od","ze"],default:{type:"reference",value:"me"}}}},{id:"remove-pl-simple",language:"pl",command:"remove",priority:90,template:{format:"usu\u0144 {patient}",tokens:[{type:"literal",value:"usu\u0144",alternatives:["usun","wyczy\u015B\u0107","wyczysc"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function vd(){return[{id:"remove-qu-sov",language:"qu",command:"remove",priority:100,template:{format:"{patient} ta qichuy",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"qichuy",alternatives:["hurquy","anchuchiy"]}]},extraction:{patient:{position:0}}},{id:"remove-qu-simple",language:"qu",command:"remove",priority:90,template:{format:"qichuy {patient}",tokens:[{type:"literal",value:"qichuy",alternatives:["hurquy","anchuchiy"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"remove-qu-with-source",language:"qu",command:"remove",priority:95,template:{format:"{source} manta {patient} ta qichuy",tokens:[{type:"role",role:"source"},{type:"literal",value:"manta"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"qichuy",alternatives:["hurquy","anchuchiy"]}]},extraction:{source:{position:0},patient:{position:2}}}]}function hd(){return[{id:"remove-ru-full",language:"ru",command:"remove",priority:100,template:{format:"\u0443\u0434\u0430\u043B\u0438\u0442\u044C {patient} \u0438\u0437 {source}",tokens:[{type:"literal",value:"\u0443\u0434\u0430\u043B\u0438\u0442\u044C",alternatives:["\u0443\u0434\u0430\u043B\u0438","\u0443\u0431\u0440\u0430\u0442\u044C","\u0443\u0431\u0435\u0440\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0438\u0437",alternatives:["\u043E\u0442","\u0441"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"\u0438\u0437",markerAlternatives:["\u043E\u0442","\u0441"],default:{type:"reference",value:"me"}}}},{id:"remove-ru-simple",language:"ru",command:"remove",priority:90,template:{format:"\u0443\u0434\u0430\u043B\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u0443\u0434\u0430\u043B\u0438\u0442\u044C",alternatives:["\u0443\u0434\u0430\u043B\u0438","\u0443\u0431\u0440\u0430\u0442\u044C","\u0443\u0431\u0435\u0440\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function gd(){return[{id:"remove-th-simple",language:"th",command:"remove",priority:100,template:{format:"\u0E25\u0E1A {patient}",tokens:[{type:"literal",value:"\u0E25\u0E1A",alternatives:["\u0E25\u0E1A\u0E2D\u0E2D\u0E01"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"remove-th-with-source",language:"th",command:"remove",priority:95,template:{format:"\u0E25\u0E1A {patient} \u0E08\u0E32\u0E01 {source}",tokens:[{type:"literal",value:"\u0E25\u0E1A",alternatives:["\u0E25\u0E1A\u0E2D\u0E2D\u0E01"]},{type:"role",role:"patient"},{type:"literal",value:"\u0E08\u0E32\u0E01"},{type:"role",role:"source"}]},extraction:{patient:{position:1},source:{marker:"\u0E08\u0E32\u0E01",position:3}}}]}function Ed(){return[]}function zd(){return[{id:"remove-uk-full",language:"uk",command:"remove",priority:100,template:{format:"\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438 {patient} \u0437 {source}",tokens:[{type:"literal",value:"\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438",alternatives:["\u0432\u0438\u0434\u0430\u043B\u0438","\u043F\u0440\u0438\u0431\u0440\u0430\u0442\u0438","\u043F\u0440\u0438\u0431\u0435\u0440\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"\u0437",markerAlternatives:["\u0432\u0456\u0434","\u0456\u0437"],default:{type:"reference",value:"me"}}}},{id:"remove-uk-simple",language:"uk",command:"remove",priority:90,template:{format:"\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438",alternatives:["\u0432\u0438\u0434\u0430\u043B\u0438","\u043F\u0440\u0438\u0431\u0440\u0430\u0442\u0438","\u043F\u0440\u0438\u0431\u0435\u0440\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function kd(){return[{id:"remove-vi-full",language:"vi",command:"remove",priority:100,template:{format:"x\xF3a {patient} kh\u1ECFi {target}",tokens:[{type:"literal",value:"x\xF3a",alternatives:["g\u1EE1 b\u1ECF","lo\u1EA1i b\u1ECF","b\u1ECF"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"kh\u1ECFi",alternatives:["t\u1EEB"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"kh\u1ECFi",markerAlternatives:["t\u1EEB"],default:{type:"reference",value:"me"}}}},{id:"remove-vi-simple",language:"vi",command:"remove",priority:90,template:{format:"x\xF3a {patient}",tokens:[{type:"literal",value:"x\xF3a",alternatives:["g\u1EE1 b\u1ECF","lo\u1EA1i b\u1ECF","b\u1ECF"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Cd(){return[{id:"remove-zh-full",language:"zh",command:"remove",priority:100,template:{format:"\u4ECE {destination} \u5220\u9664 {patient}",tokens:[{type:"literal",value:"\u4ECE",alternatives:["\u5F9E"]},{type:"role",role:"destination"},{type:"literal",value:"\u5220\u9664",alternatives:["\u522A\u9664","\u79FB\u9664","\u53BB\u6389"]},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"remove-zh-simple",language:"zh",command:"remove",priority:90,template:{format:"\u5220\u9664 {patient}",tokens:[{type:"literal",value:"\u5220\u9664",alternatives:["\u522A\u9664","\u79FB\u9664","\u53BB\u6389"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}},{id:"remove-zh-ba",language:"zh",command:"remove",priority:95,template:{format:"\u628A {patient} \u4ECE {destination} \u5220\u9664",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u4ECE",alternatives:["\u5F9E"]},{type:"role",role:"destination"},{type:"literal",value:"\u5220\u9664",alternatives:["\u522A\u9664","\u79FB\u9664"]}]},extraction:{patient:{position:1},destination:{position:3}}}]}function Ad(e){switch(e){case"ar":return ld();case"bn":return pd();case"hi":return md();case"it":return cd();case"ja":return dd();case"ko":return yd();case"pl":return fd();case"qu":return vd();case"ru":return hd();case"th":return gd();case"tr":return Ed();case"uk":return zd();case"vi":return kd();case"zh":return Cd();default:return[]}}function wd(){return[]}function bd(){return[{id:"show-bn-full",language:"bn",command:"show",priority:100,template:{format:"{patient} \u0995\u09C7 \u09A6\u09C7\u0996\u09BE\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09A6\u09C7\u0996\u09BE\u09A8",alternatives:["\u09A6\u09C7\u0996\u09BE\u0993"]}]},extraction:{patient:{position:0}}},{id:"show-bn-simple",language:"bn",command:"show",priority:90,template:{format:"\u09A6\u09C7\u0996\u09BE\u09A8 {patient}",tokens:[{type:"literal",value:"\u09A6\u09C7\u0996\u09BE\u09A8",alternatives:["\u09A6\u09C7\u0996\u09BE\u0993"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function xd(){return[{id:"show-de-full",language:"de",command:"show",priority:100,template:{format:"zeige {patient}",tokens:[{type:"literal",value:"zeige",alternatives:["zeigen","anzeigen","show"]},{type:"role",role:"patient",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1}}}]}function Dd(){return[{id:"show-fr-full",language:"fr",command:"show",priority:100,template:{format:"afficher {patient}",tokens:[{type:"literal",value:"afficher",alternatives:["montrer","pr\xE9senter","show"]},{type:"role",role:"patient",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1}}}]}function Td(){return[{id:"show-hi-full",language:"hi",command:"show",priority:100,template:{format:"{patient} \u0915\u094B \u0926\u093F\u0916\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u0926\u093F\u0916\u093E\u090F\u0902",alternatives:["\u0926\u093F\u0916\u093E"]}]},extraction:{patient:{position:0}}},{id:"show-hi-simple",language:"hi",command:"show",priority:90,template:{format:"\u0926\u093F\u0916\u093E\u090F\u0902 {patient}",tokens:[{type:"literal",value:"\u0926\u093F\u0916\u093E\u090F\u0902",alternatives:["\u0926\u093F\u0916\u093E"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"show-hi-bare",language:"hi",command:"show",priority:80,template:{format:"\u0926\u093F\u0916\u093E\u090F\u0902",tokens:[{type:"literal",value:"\u0926\u093F\u0916\u093E\u090F\u0902",alternatives:["\u0926\u093F\u0916\u093E"]}]},extraction:{patient:{default:{type:"reference",value:"me"}}}}]}function Bd(){return[{id:"show-it-full",language:"it",command:"show",priority:100,template:{format:"mostrare {patient} con {style}",tokens:[{type:"literal",value:"mostrare",alternatives:["mostra","visualizzare","show"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"con"},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"con"}}},{id:"show-it-simple",language:"it",command:"show",priority:90,template:{format:"mostrare {patient}",tokens:[{type:"literal",value:"mostrare",alternatives:["mostra","visualizzare","show"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function Fd(){return[]}function Sd(){return[]}function Pd(){return[{id:"show-pl-full",language:"pl",command:"show",priority:100,template:{format:"poka\u017C {patient} z {style}",tokens:[{type:"literal",value:"poka\u017C",alternatives:["pokaz","wy\u015Bwietl","wyswietl"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"z",alternatives:["ze","jako"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"z",markerAlternatives:["ze","jako"]}}},{id:"show-pl-simple",language:"pl",command:"show",priority:90,template:{format:"poka\u017C {patient}",tokens:[{type:"literal",value:"poka\u017C",alternatives:["pokaz","wy\u015Bwietl","wyswietl"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function jd(){return[{id:"show-ru-full",language:"ru",command:"show",priority:100,template:{format:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C {patient} \u0441 {style}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0441",alternatives:["\u0441\u043E","\u043A\u0430\u043A"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"\u0441",markerAlternatives:["\u0441\u043E","\u043A\u0430\u043A"]}}},{id:"show-ru-simple",language:"ru",command:"show",priority:90,template:{format:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function Ld(){return[{id:"show-th-simple",language:"th",command:"show",priority:100,template:{format:"\u0E41\u0E2A\u0E14\u0E07 {patient}",tokens:[{type:"literal",value:"\u0E41\u0E2A\u0E14\u0E07"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function _d(){return[]}function Rd(){return[{id:"show-uk-full",language:"uk",command:"show",priority:100,template:{format:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 {patient} \u0437 {style}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0437",alternatives:["\u0456\u0437","\u044F\u043A"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"\u0437",markerAlternatives:["\u0456\u0437","\u044F\u043A"]}}},{id:"show-uk-simple",language:"uk",command:"show",priority:90,template:{format:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function Nd(){return[{id:"show-vi-full",language:"vi",command:"show",priority:100,template:{format:"hi\u1EC3n th\u1ECB {patient} v\u1EDBi {effect}",tokens:[{type:"literal",value:"hi\u1EC3n th\u1ECB",alternatives:["hi\u1EC7n"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"v\u1EDBi"},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"v\u1EDBi"}}},{id:"show-vi-simple",language:"vi",command:"show",priority:90,template:{format:"hi\u1EC3n th\u1ECB {patient}",tokens:[{type:"literal",value:"hi\u1EC3n th\u1ECB",alternatives:["hi\u1EC7n"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function Id(){return[{id:"show-zh-full",language:"zh",command:"show",priority:100,template:{format:"\u663E\u793A {patient}",tokens:[{type:"literal",value:"\u663E\u793A",alternatives:["\u986F\u793A","\u5C55\u793A","\u5448\u73B0","\u5448\u73FE"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"show-zh-ba",language:"zh",command:"show",priority:95,template:{format:"\u628A {patient} \u663E\u793A",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u663E\u793A",alternatives:["\u986F\u793A","\u5C55\u793A"]}]},extraction:{patient:{position:1}}},{id:"show-zh-with-\u7ED9",language:"zh",command:"show",priority:90,template:{format:"\u7ED9 {destination} \u663E\u793A {patient}",tokens:[{type:"literal",value:"\u7ED9",alternatives:["\u7D66"]},{type:"role",role:"destination"},{type:"literal",value:"\u663E\u793A",alternatives:["\u986F\u793A"]},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:3}}}]}function Wd(e){switch(e){case"ar":return wd();case"bn":return bd();case"de":return xd();case"fr":return Dd();case"hi":return Td();case"it":return Bd();case"ja":return Fd();case"ko":return Sd();case"pl":return Pd();case"ru":return jd();case"th":return Ld();case"tr":return _d();case"uk":return Rd();case"vi":return Nd();case"zh":return Id();default:return[]}}function Md(){return[]}function Od(){return[{id:"hide-bn-full",language:"bn",command:"hide",priority:100,template:{format:"{patient} \u0995\u09C7 \u09B2\u09C1\u0995\u09BE\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09B2\u09C1\u0995\u09BE\u09A8",alternatives:["\u09B2\u09C1\u0995\u09BE\u0993"]}]},extraction:{patient:{position:0}}},{id:"hide-bn-simple",language:"bn",command:"hide",priority:90,template:{format:"\u09B2\u09C1\u0995\u09BE\u09A8 {patient}",tokens:[{type:"literal",value:"\u09B2\u09C1\u0995\u09BE\u09A8",alternatives:["\u09B2\u09C1\u0995\u09BE\u0993"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function qd(){return[{id:"hide-de-full",language:"de",command:"hide",priority:100,template:{format:"verstecke {patient}",tokens:[{type:"literal",value:"verstecke",alternatives:["verstecken","verberge","verbergen","hide"]},{type:"role",role:"patient",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1}}}]}function Vd(){return[{id:"hide-hi-full",language:"hi",command:"hide",priority:100,template:{format:"{patient} \u0915\u094B \u091B\u093F\u092A\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u091B\u093F\u092A\u093E\u090F\u0902",alternatives:["\u091B\u093F\u092A\u093E"]}]},extraction:{patient:{position:0}}},{id:"hide-hi-simple",language:"hi",command:"hide",priority:90,template:{format:"\u091B\u093F\u092A\u093E\u090F\u0902 {patient}",tokens:[{type:"literal",value:"\u091B\u093F\u092A\u093E\u090F\u0902",alternatives:["\u091B\u093F\u092A\u093E"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"hide-hi-bare",language:"hi",command:"hide",priority:80,template:{format:"\u091B\u093F\u092A\u093E\u090F\u0902",tokens:[{type:"literal",value:"\u091B\u093F\u092A\u093E\u090F\u0902",alternatives:["\u091B\u093F\u092A\u093E"]}]},extraction:{patient:{default:{type:"reference",value:"me"}}}}]}function Kd(){return[{id:"hide-it-full",language:"it",command:"hide",priority:100,template:{format:"nascondere {patient} con {style}",tokens:[{type:"literal",value:"nascondere",alternatives:["nascondi","hide"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"con"},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"con"}}},{id:"hide-it-simple",language:"it",command:"hide",priority:90,template:{format:"nascondere {patient}",tokens:[{type:"literal",value:"nascondere",alternatives:["nascondi","hide"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function Ud(){return[]}function Hd(){return[]}function $d(){return[{id:"hide-pl-full",language:"pl",command:"hide",priority:100,template:{format:"ukryj {patient} z {style}",tokens:[{type:"literal",value:"ukryj",alternatives:["schowaj","zas\u0142o\u0144","zaslon"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"z",alternatives:["ze","jako"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"z",markerAlternatives:["ze","jako"]}}},{id:"hide-pl-simple",language:"pl",command:"hide",priority:90,template:{format:"ukryj {patient}",tokens:[{type:"literal",value:"ukryj",alternatives:["schowaj","zas\u0142o\u0144","zaslon"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function Gd(){return[{id:"hide-ru-full",language:"ru",command:"hide",priority:100,template:{format:"\u0441\u043A\u0440\u044B\u0442\u044C {patient} \u0441 {style}",tokens:[{type:"literal",value:"\u0441\u043A\u0440\u044B\u0442\u044C",alternatives:["\u0441\u043A\u0440\u043E\u0439","\u0441\u043F\u0440\u044F\u0442\u0430\u0442\u044C","\u0441\u043F\u0440\u044F\u0447\u044C"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0441",alternatives:["\u0441\u043E","\u043A\u0430\u043A"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"\u0441",markerAlternatives:["\u0441\u043E","\u043A\u0430\u043A"]}}},{id:"hide-ru-simple",language:"ru",command:"hide",priority:90,template:{format:"\u0441\u043A\u0440\u044B\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u0441\u043A\u0440\u044B\u0442\u044C",alternatives:["\u0441\u043A\u0440\u043E\u0439","\u0441\u043F\u0440\u044F\u0442\u0430\u0442\u044C","\u0441\u043F\u0440\u044F\u0447\u044C"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function Xd(){return[{id:"hide-th-simple",language:"th",command:"hide",priority:100,template:{format:"\u0E0B\u0E48\u0E2D\u0E19 {patient}",tokens:[{type:"literal",value:"\u0E0B\u0E48\u0E2D\u0E19"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function Qd(){return[]}function Zd(){return[{id:"hide-uk-full",language:"uk",command:"hide",priority:100,template:{format:"\u0441\u0445\u043E\u0432\u0430\u0442\u0438 {patient} \u0437 {style}",tokens:[{type:"literal",value:"\u0441\u0445\u043E\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0445\u043E\u0432\u0430\u0439","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0439"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0437",alternatives:["\u0456\u0437","\u044F\u043A"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"\u0437",markerAlternatives:["\u0456\u0437","\u044F\u043A"]}}},{id:"hide-uk-simple",language:"uk",command:"hide",priority:90,template:{format:"\u0441\u0445\u043E\u0432\u0430\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0441\u0445\u043E\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0445\u043E\u0432\u0430\u0439","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0439"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function Yd(){return[{id:"hide-vi-full",language:"vi",command:"hide",priority:100,template:{format:"\u1EA9n {patient} v\u1EDBi {effect}",tokens:[{type:"literal",value:"\u1EA9n",alternatives:["che","gi\u1EA5u"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"v\u1EDBi"},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"v\u1EDBi"}}},{id:"hide-vi-simple",language:"vi",command:"hide",priority:90,template:{format:"\u1EA9n {patient}",tokens:[{type:"literal",value:"\u1EA9n",alternatives:["che","gi\u1EA5u"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function Jd(){return[{id:"hide-zh-full",language:"zh",command:"hide",priority:100,template:{format:"\u9690\u85CF {patient}",tokens:[{type:"literal",value:"\u9690\u85CF",alternatives:["\u96B1\u85CF","\u85CF\u8D77","\u85CF"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"hide-zh-ba",language:"zh",command:"hide",priority:95,template:{format:"\u628A {patient} \u9690\u85CF",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u9690\u85CF",alternatives:["\u96B1\u85CF","\u85CF\u8D77"]}]},extraction:{patient:{position:1}}},{id:"hide-zh-from",language:"zh",command:"hide",priority:90,template:{format:"\u4ECE {destination} \u9690\u85CF {patient}",tokens:[{type:"literal",value:"\u4ECE",alternatives:["\u5F9E"]},{type:"role",role:"destination"},{type:"literal",value:"\u9690\u85CF",alternatives:["\u96B1\u85CF"]},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:3}}}]}function e4(e){switch(e){case"ar":return Md();case"bn":return Od();case"de":return qd();case"hi":return Vd();case"it":return Kd();case"ja":return Ud();case"ko":return Hd();case"pl":return $d();case"ru":return Gd();case"th":return Xd();case"tr":return Qd();case"uk":return Zd();case"vi":return Yd();case"zh":return Jd();default:return[]}}function t4(){return[]}function r4(){return[{id:"set-bn-full",language:"bn",command:"set",priority:100,template:{format:"{patient} \u0995\u09C7 {goal} \u098F \u09B8\u09C7\u099F \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"role",role:"goal"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]},{type:"literal",value:"\u09B8\u09C7\u099F",alternatives:["\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09A3"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0},goal:{marker:"\u098F",position:2}}},{id:"set-bn-simple",language:"bn",command:"set",priority:90,template:{format:"\u09B8\u09C7\u099F {patient} {goal}",tokens:[{type:"literal",value:"\u09B8\u09C7\u099F",alternatives:["\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09A3"]},{type:"role",role:"patient"},{type:"role",role:"goal"}]},extraction:{patient:{position:1},goal:{position:2}}}]}function n4(){return[{id:"set-de-full",language:"de",command:"set",priority:100,template:{format:"setze {destination} auf {patient}",tokens:[{type:"literal",value:"setze",alternatives:["setzen","stelle","stellen","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"auf",alternatives:["zu","an"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-de-festlegen-auf",language:"de",command:"set",priority:99,template:{format:"festlegen auf {destination} {patient}",tokens:[{type:"literal",value:"festlegen",alternatives:["einstellen","setzen"]},{type:"literal",value:"auf",alternatives:["an"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-de-equals",language:"de",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function i4(){return[{id:"set-es-full",language:"es",command:"set",priority:100,template:{format:"establecer {destination} a {patient}",tokens:[{type:"literal",value:"establecer",alternatives:["fijar","definir","poner","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"a",alternatives:["en","como"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-es-prep-first",language:"es",command:"set",priority:95,template:{format:"establecer en {destination} {patient}",tokens:[{type:"literal",value:"establecer",alternatives:["fijar","definir","poner","set"]},{type:"literal",value:"en",alternatives:["a"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-es-equals",language:"es",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function a4(){return[{id:"set-fr-full",language:"fr",command:"set",priority:100,template:{format:"d\xE9finir {destination} \xE0 {patient}",tokens:[{type:"literal",value:"d\xE9finir",alternatives:["definir","mettre","fixer","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"\xE0",alternatives:["a","sur","comme"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-fr-sur-direct",language:"fr",command:"set",priority:98,template:{format:"d\xE9finir sur {destination} {patient}",tokens:[{type:"literal",value:"d\xE9finir",alternatives:["definir","mettre","fixer"]},{type:"literal",value:"sur",alternatives:["\xE0","en"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-fr-equals",language:"fr",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function u4(){return[{id:"set-hi-full",language:"hi",command:"set",priority:100,template:{format:"{destination} \u0915\u094B {patient} \u0938\u0947\u091F \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"destination"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"patient"},{type:"literal",value:"\u0938\u0947\u091F",alternatives:["\u0928\u093F\u0930\u094D\u0927\u093E\u0930\u093F\u0924"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094B"]}]}]},extraction:{destination:{position:0},patient:{marker:"\u0915\u094B",position:2}}},{id:"set-hi-simple",language:"hi",command:"set",priority:90,template:{format:"\u0938\u0947\u091F {destination} {patient}",tokens:[{type:"literal",value:"\u0938\u0947\u091F",alternatives:["\u0928\u093F\u0930\u094D\u0927\u093E\u0930\u093F\u0924"]},{type:"role",role:"destination"},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:2}}}]}function o4(){return[{id:"set-id-full",language:"id",command:"set",priority:100,template:{format:"atur {destination} ke {patient}",tokens:[{type:"literal",value:"atur",alternatives:["tetapkan","setel","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"ke",alternatives:["menjadi","jadi","pada"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-id-pada-direct",language:"id",command:"set",priority:98,template:{format:"atur pada {destination} {patient}",tokens:[{type:"literal",value:"atur",alternatives:["tetapkan","setel"]},{type:"literal",value:"pada",alternatives:["ke","di"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-id-equals",language:"id",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function s4(){return[{id:"set-it-full",language:"it",command:"set",priority:100,template:{format:"impostare {patient} a {goal}",tokens:[{type:"literal",value:"impostare",alternatives:["imposta","set","definire"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"a",alternatives:["su","come"]},{type:"role",role:"goal"}]}]},extraction:{patient:{position:1},goal:{marker:"a",markerAlternatives:["su","come"]}}},{id:"set-it-simple",language:"it",command:"set",priority:90,template:{format:"impostare {patient}",tokens:[{type:"literal",value:"impostare",alternatives:["imposta","set"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function l4(){return[]}function p4(){return[]}function m4(){return[{id:"set-pl-full",language:"pl",command:"set",priority:100,template:{format:"ustaw {patient} na {goal}",tokens:[{type:"literal",value:"ustaw",alternatives:["okre\u015Bl","okresl","przypisz"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"na",alternatives:["do","jako"]},{type:"role",role:"goal"}]}]},extraction:{patient:{position:1},goal:{marker:"na",markerAlternatives:["do","jako"]}}},{id:"set-pl-simple",language:"pl",command:"set",priority:90,template:{format:"ustaw {patient}",tokens:[{type:"literal",value:"ustaw",alternatives:["okre\u015Bl","okresl"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function c4(){return[{id:"set-pt-full",language:"pt",command:"set",priority:100,template:{format:"definir {destination} para {patient}",tokens:[{type:"literal",value:"definir",alternatives:["estabelecer","colocar","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"para",alternatives:["como","a","em"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-pt-em-direct",language:"pt",command:"set",priority:98,template:{format:"definir em {destination} {patient}",tokens:[{type:"literal",value:"definir",alternatives:["estabelecer","colocar"]},{type:"literal",value:"em",alternatives:["para","a"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-pt-equals",language:"pt",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function d4(){return[{id:"set-ru-full",language:"ru",command:"set",priority:100,template:{format:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C {patient} \u0432 {goal}",tokens:[{type:"literal",value:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",alternatives:["\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u044C","\u0437\u0430\u0434\u0430\u0439"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u043D\u0430","\u043A\u0430\u043A"]},{type:"role",role:"goal"}]}]},extraction:{patient:{position:1},goal:{marker:"\u0432",markerAlternatives:["\u043D\u0430","\u043A\u0430\u043A"]}}},{id:"set-ru-simple",language:"ru",command:"set",priority:90,template:{format:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",alternatives:["\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u044C","\u0437\u0430\u0434\u0430\u0439"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function y4(){return[{id:"set-th-simple",language:"th",command:"set",priority:100,template:{format:"\u0E15\u0E31\u0E49\u0E07 {patient} {goal}",tokens:[{type:"literal",value:"\u0E15\u0E31\u0E49\u0E07",alternatives:["\u0E01\u0E33\u0E2B\u0E19\u0E14"]},{type:"role",role:"patient"},{type:"role",role:"goal"}]},extraction:{patient:{position:1},goal:{position:2}}}]}function f4(){return[]}function v4(){return[{id:"set-uk-full",language:"uk",command:"set",priority:100,template:{format:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438 {patient} \u0432 {goal}",tokens:[{type:"literal",value:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438",alternatives:["\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u0438","\u0437\u0430\u0434\u0430\u0439"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u043D\u0430","\u044F\u043A"]},{type:"role",role:"goal"}]}]},extraction:{patient:{position:1},goal:{marker:"\u0432",markerAlternatives:["\u043D\u0430","\u044F\u043A"]}}},{id:"set-uk-simple",language:"uk",command:"set",priority:90,template:{format:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438",alternatives:["\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u0438","\u0437\u0430\u0434\u0430\u0439"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function h4(){return[{id:"set-vi-full",language:"vi",command:"set",priority:100,template:{format:"g\xE1n {target} th\xE0nh {value}",tokens:[{type:"literal",value:"g\xE1n",alternatives:["thi\u1EBFt l\u1EADp","\u0111\u1EB7t gi\xE1 tr\u1ECB"]},{type:"role",role:"patient"},{type:"literal",value:"th\xE0nh",alternatives:["b\u1EB1ng","l\xE0"]},{type:"role",role:"goal"}]},extraction:{patient:{position:1},goal:{marker:"th\xE0nh",markerAlternatives:["b\u1EB1ng","l\xE0"]}}},{id:"set-vi-simple",language:"vi",command:"set",priority:90,template:{format:"\u0111\u1EB7t {target} l\xE0 {value}",tokens:[{type:"literal",value:"\u0111\u1EB7t"},{type:"role",role:"patient"},{type:"literal",value:"l\xE0"},{type:"role",role:"goal"}]},extraction:{patient:{position:1},goal:{marker:"l\xE0"}}}]}function g4(){return[{id:"set-zh-full",language:"zh",command:"set",priority:100,template:{format:"\u8BBE\u7F6E {destination} \u4E3A {patient}",tokens:[{type:"literal",value:"\u8BBE\u7F6E",alternatives:["\u8A2D\u7F6E","\u8BBE\u5B9A","\u8A2D\u5B9A"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"\u4E3A",alternatives:["\u70BA","\u5230","\u6210"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{marker:"\u4E3A",markerAlternatives:["\u70BA","\u5230","\u6210"]}}},{id:"set-zh-ba",language:"zh",command:"set",priority:95,template:{format:"\u628A {destination} \u8BBE\u7F6E\u4E3A {patient}",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"\u8BBE\u7F6E\u4E3A",alternatives:["\u8A2D\u7F6E\u70BA","\u8BBE\u5B9A\u4E3A","\u8A2D\u5B9A\u70BA"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{marker:"\u8BBE\u7F6E\u4E3A",markerAlternatives:["\u8A2D\u7F6E\u70BA","\u8BBE\u5B9A\u4E3A","\u8A2D\u5B9A\u70BA"]}}},{id:"set-zh-simple",language:"zh",command:"set",priority:90,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function E4(e){switch(e){case"ar":return t4();case"bn":return r4();case"de":return n4();case"es":return i4();case"fr":return a4();case"hi":return u4();case"id":return o4();case"it":return s4();case"ja":return l4();case"ko":return p4();case"pl":return m4();case"pt":return c4();case"ru":return d4();case"th":return y4();case"tr":return f4();case"uk":return v4();case"vi":return h4();case"zh":return g4();default:return[]}}function z4(){return[]}function k4(){return[{id:"get-bn-full",language:"bn",command:"get",priority:100,template:{format:"{source} \u09A5\u09C7\u0995\u09C7 \u09AA\u09BE\u09A8",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u09A5\u09C7\u0995\u09C7"},{type:"literal",value:"\u09AA\u09BE\u09A8",alternatives:["\u09A8\u09BF\u09A8"]}]},extraction:{source:{position:0}}},{id:"get-bn-simple",language:"bn",command:"get",priority:90,template:{format:"\u09AA\u09BE\u09A8 {source}",tokens:[{type:"literal",value:"\u09AA\u09BE\u09A8",alternatives:["\u09A8\u09BF\u09A8"]},{type:"role",role:"source"}]},extraction:{source:{position:1}}}]}function C4(){return[{id:"get-de-full",language:"de",command:"get",priority:100,template:{format:"hole {source}",tokens:[{type:"literal",value:"hole",alternatives:["holen","get","bekomme","bekommen"]},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]},extraction:{source:{position:1}}}]}function A4(){return[{id:"get-hi-full",language:"hi",command:"get",priority:100,template:{format:"{source} \u0938\u0947 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u0938\u0947"},{type:"literal",value:"\u092A\u094D\u0930\u093E\u092A\u094D\u0924",alternatives:["\u092A\u093E\u090F\u0902"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094B"]}]}]},extraction:{source:{position:0}}},{id:"get-hi-simple",language:"hi",command:"get",priority:90,template:{format:"\u092A\u094D\u0930\u093E\u092A\u094D\u0924 {source}",tokens:[{type:"literal",value:"\u092A\u094D\u0930\u093E\u092A\u094D\u0924",alternatives:["\u092A\u093E\u090F\u0902"]},{type:"role",role:"source"}]},extraction:{source:{position:1}}}]}function w4(){return[{id:"get-it-full",language:"it",command:"get",priority:100,template:{format:"ottenere {patient} da {source}",tokens:[{type:"literal",value:"ottenere",alternatives:["ottieni","get","prendere"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"da",alternatives:["di"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"da",markerAlternatives:["di"]}}},{id:"get-it-simple",language:"it",command:"get",priority:90,template:{format:"ottenere {patient}",tokens:[{type:"literal",value:"ottenere",alternatives:["ottieni","get"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function b4(){return[]}function x4(){return[]}function D4(){return[{id:"get-pl-full",language:"pl",command:"get",priority:100,template:{format:"pobierz {patient} z {source}",tokens:[{type:"literal",value:"pobierz",alternatives:["we\u017A","wez","uzyskaj"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"z",alternatives:["od","ze"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"z",markerAlternatives:["od","ze"]}}},{id:"get-pl-simple",language:"pl",command:"get",priority:90,template:{format:"pobierz {patient}",tokens:[{type:"literal",value:"pobierz",alternatives:["we\u017A","wez","uzyskaj"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function T4(){return[{id:"get-ru-full",language:"ru",command:"get",priority:100,template:{format:"\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C {patient} \u0438\u0437 {source}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u0443\u0447\u0438","\u0432\u0437\u044F\u0442\u044C","\u0432\u043E\u0437\u044C\u043C\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0438\u0437",alternatives:["\u043E\u0442","\u0441"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"\u0438\u0437",markerAlternatives:["\u043E\u0442","\u0441"]}}},{id:"get-ru-simple",language:"ru",command:"get",priority:90,template:{format:"\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u0443\u0447\u0438","\u0432\u0437\u044F\u0442\u044C","\u0432\u043E\u0437\u044C\u043C\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function B4(){return[{id:"get-th-simple",language:"th",command:"get",priority:100,template:{format:"\u0E23\u0E31\u0E1A\u0E04\u0E48\u0E32 {source}",tokens:[{type:"literal",value:"\u0E23\u0E31\u0E1A\u0E04\u0E48\u0E32"},{type:"role",role:"source"}]},extraction:{source:{position:1}}}]}function F4(){return[{id:"get-uk-full",language:"uk",command:"get",priority:100,template:{format:"\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438 {patient} \u0437 {source}",tokens:[{type:"literal",value:"\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438",alternatives:["\u043E\u0442\u0440\u0438\u043C\u0430\u0439","\u0432\u0437\u044F\u0442\u0438","\u0432\u0456\u0437\u044C\u043C\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"\u0437",markerAlternatives:["\u0432\u0456\u0434","\u0456\u0437"]}}},{id:"get-uk-simple",language:"uk",command:"get",priority:90,template:{format:"\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438",alternatives:["\u043E\u0442\u0440\u0438\u043C\u0430\u0439","\u0432\u0437\u044F\u0442\u0438","\u0432\u0456\u0437\u044C\u043C\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function S4(){return[{id:"get-vi-full",language:"vi",command:"get",priority:100,template:{format:"l\u1EA5y gi\xE1 tr\u1ECB c\u1EE7a {target}",tokens:[{type:"literal",value:"l\u1EA5y gi\xE1 tr\u1ECB",alternatives:["nh\u1EADn","l\u1EA5y"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"c\u1EE7a"}]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"get-vi-simple",language:"vi",command:"get",priority:90,template:{format:"l\u1EA5y {target}",tokens:[{type:"literal",value:"l\u1EA5y",alternatives:["nh\u1EADn","l\u1EA5y gi\xE1 tr\u1ECB"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function P4(e){switch(e){case"ar":return z4();case"bn":return k4();case"de":return C4();case"hi":return A4();case"it":return w4();case"ja":return b4();case"ko":return x4();case"pl":return D4();case"ru":return T4();case"th":return B4();case"uk":return F4();case"vi":return S4();default:return[]}}function j4(){return[{id:"increment-bn-full",language:"bn",command:"increment",priority:100,template:{format:"{patient} \u0995\u09C7 \u09AC\u09C3\u09A6\u09CD\u09A7\u09BF \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09AC\u09C3\u09A6\u09CD\u09A7\u09BF",alternatives:["\u09AC\u09BE\u09A1\u09BC\u09BE\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0}}},{id:"increment-bn-with-quantity",language:"bn",command:"increment",priority:95,template:{format:"{patient} \u0995\u09C7 {quantity} \u09A6\u09BF\u09AF\u09BC\u09C7 \u09AC\u09C3\u09A6\u09CD\u09A7\u09BF \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"role",role:"quantity"},{type:"literal",value:"\u09A6\u09BF\u09AF\u09BC\u09C7"},{type:"literal",value:"\u09AC\u09C3\u09A6\u09CD\u09A7\u09BF",alternatives:["\u09AC\u09BE\u09A1\u09BC\u09BE\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0},quantity:{marker:"\u09A6\u09BF\u09AF\u09BC\u09C7",position:2}}},{id:"increment-bn-simple",language:"bn",command:"increment",priority:90,template:{format:"\u09AC\u09C3\u09A6\u09CD\u09A7\u09BF {patient}",tokens:[{type:"literal",value:"\u09AC\u09C3\u09A6\u09CD\u09A7\u09BF",alternatives:["\u09AC\u09BE\u09A1\u09BC\u09BE\u09A8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function L4(){return[{id:"increment-de-full",language:"de",command:"increment",priority:100,template:{format:"erh\xF6he {patient}",tokens:[{type:"literal",value:"erh\xF6he",alternatives:["erhoehe","erh\xF6hen","inkrementiere","inkrementieren","increment"]},{type:"role",role:"patient",expectedTypes:["selector","reference","expression"]}]},extraction:{patient:{position:1}}}]}function _4(){return[{id:"increment-hi-full",language:"hi",command:"increment",priority:100,template:{format:"{patient} \u0915\u094B \u092C\u0922\u093C\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u092C\u0922\u093C\u093E\u090F\u0902",alternatives:["\u092C\u0922\u093C\u093E"]}]},extraction:{patient:{position:0}}},{id:"increment-hi-with-quantity",language:"hi",command:"increment",priority:95,template:{format:"{patient} \u0915\u094B {quantity} \u0938\u0947 \u092C\u0922\u093C\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"quantity"},{type:"literal",value:"\u0938\u0947"},{type:"literal",value:"\u092C\u0922\u093C\u093E\u090F\u0902",alternatives:["\u092C\u0922\u093C\u093E"]}]},extraction:{patient:{position:0},quantity:{marker:"\u0938\u0947",position:2}}},{id:"increment-hi-simple",language:"hi",command:"increment",priority:90,template:{format:"\u092C\u0922\u093C\u093E\u090F\u0902 {patient}",tokens:[{type:"literal",value:"\u092C\u0922\u093C\u093E\u090F\u0902",alternatives:["\u092C\u0922\u093C\u093E"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function R4(){return[{id:"increment-it-full",language:"it",command:"increment",priority:100,template:{format:"incrementare {patient} di {quantity}",tokens:[{type:"literal",value:"incrementare",alternatives:["incrementa","aumentare","increment"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"di",alternatives:["per"]},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"di",markerAlternatives:["per"],default:{type:"literal",value:"1"}}}},{id:"increment-it-simple",language:"it",command:"increment",priority:90,template:{format:"incrementare {patient}",tokens:[{type:"literal",value:"incrementare",alternatives:["incrementa","aumentare","increment"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:"1"}}}}]}function N4(){return[{id:"increment-pl-full",language:"pl",command:"increment",priority:100,template:{format:"zwi\u0119ksz {patient} o {quantity}",tokens:[{type:"literal",value:"zwi\u0119ksz",alternatives:["zwieksz","podnie\u015B","podnies"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"o"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"o",default:{type:"literal",value:1}}}},{id:"increment-pl-simple",language:"pl",command:"increment",priority:90,template:{format:"zwi\u0119ksz {patient}",tokens:[{type:"literal",value:"zwi\u0119ksz",alternatives:["zwieksz","podnie\u015B","podnies"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}]}function I4(){return[{id:"increment-ru-full",language:"ru",command:"increment",priority:100,template:{format:"\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C {patient} \u043D\u0430 {quantity}",tokens:[{type:"literal",value:"\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C",alternatives:["\u0443\u0432\u0435\u043B\u0438\u0447\u044C"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u043D\u0430",default:{type:"literal",value:1}}}},{id:"increment-ru-simple",language:"ru",command:"increment",priority:90,template:{format:"\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C",alternatives:["\u0443\u0432\u0435\u043B\u0438\u0447\u044C"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}]}function W4(){return[{id:"increment-th-simple",language:"th",command:"increment",priority:100,template:{format:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E04\u0E48\u0E32 {patient}",tokens:[{type:"literal",value:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E04\u0E48\u0E32"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"increment-th-with-quantity",language:"th",command:"increment",priority:95,template:{format:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E04\u0E48\u0E32 {patient} \u0E14\u0E49\u0E27\u0E22 {quantity}",tokens:[{type:"literal",value:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E04\u0E48\u0E32"},{type:"role",role:"patient"},{type:"literal",value:"\u0E14\u0E49\u0E27\u0E22"},{type:"role",role:"quantity"}]},extraction:{patient:{position:1},quantity:{marker:"\u0E14\u0E49\u0E27\u0E22",position:3}}}]}function M4(){return[]}function O4(){return[{id:"increment-uk-full",language:"uk",command:"increment",priority:100,template:{format:"\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 {patient} \u043D\u0430 {quantity}",tokens:[{type:"literal",value:"\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438",alternatives:["\u0437\u0431\u0456\u043B\u044C\u0448"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u043D\u0430",default:{type:"literal",value:1}}}},{id:"increment-uk-simple",language:"uk",command:"increment",priority:90,template:{format:"\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438",alternatives:["\u0437\u0431\u0456\u043B\u044C\u0448"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}]}function q4(){return[{id:"increment-vi-full",language:"vi",command:"increment",priority:100,template:{format:"t\u0103ng {target} th\xEAm {amount}",tokens:[{type:"literal",value:"t\u0103ng",alternatives:["t\u0103ng l\xEAn"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"th\xEAm",alternatives:["l\xEAn"]},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"th\xEAm",markerAlternatives:["l\xEAn"],default:{type:"literal",value:"1"}}}},{id:"increment-vi-simple",language:"vi",command:"increment",priority:90,template:{format:"t\u0103ng {target}",tokens:[{type:"literal",value:"t\u0103ng",alternatives:["t\u0103ng l\xEAn"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:"1"}}}}]}function V4(){return[{id:"increment-zh-full",language:"zh",command:"increment",priority:100,template:{format:"\u589E\u52A0 {patient}",tokens:[{type:"literal",value:"\u589E\u52A0",alternatives:["\u9012\u589E","\u52A0","\u589E","increment"]},{type:"role",role:"patient",expectedTypes:["selector","reference","expression"]}]},extraction:{patient:{position:1}}}]}function K4(e){switch(e){case"bn":return j4();case"de":return L4();case"hi":return _4();case"it":return R4();case"pl":return N4();case"ru":return I4();case"th":return W4();case"tr":return M4();case"uk":return O4();case"vi":return q4();case"zh":return V4();default:return[]}}function U4(){return[{id:"decrement-bn-full",language:"bn",command:"decrement",priority:100,template:{format:"{patient} \u0995\u09C7 \u09B9\u09CD\u09B0\u09BE\u09B8 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09B9\u09CD\u09B0\u09BE\u09B8",alternatives:["\u0995\u09AE\u09BE\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0}}},{id:"decrement-bn-with-quantity",language:"bn",command:"decrement",priority:95,template:{format:"{patient} \u0995\u09C7 {quantity} \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B9\u09CD\u09B0\u09BE\u09B8 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"role",role:"quantity"},{type:"literal",value:"\u09A6\u09BF\u09AF\u09BC\u09C7"},{type:"literal",value:"\u09B9\u09CD\u09B0\u09BE\u09B8",alternatives:["\u0995\u09AE\u09BE\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0},quantity:{marker:"\u09A6\u09BF\u09AF\u09BC\u09C7",position:2}}},{id:"decrement-bn-simple",language:"bn",command:"decrement",priority:90,template:{format:"\u09B9\u09CD\u09B0\u09BE\u09B8 {patient}",tokens:[{type:"literal",value:"\u09B9\u09CD\u09B0\u09BE\u09B8",alternatives:["\u0995\u09AE\u09BE\u09A8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function H4(){return[{id:"decrement-de-full",language:"de",command:"decrement",priority:100,template:{format:"verringere {patient}",tokens:[{type:"literal",value:"verringere",alternatives:["verringern","dekrementiere","dekrementieren","reduziere","decrement"]},{type:"role",role:"patient",expectedTypes:["selector","reference","expression"]}]},extraction:{patient:{position:1}}}]}function $4(){return[{id:"decrement-hi-full",language:"hi",command:"decrement",priority:100,template:{format:"{patient} \u0915\u094B \u0918\u091F\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u0918\u091F\u093E\u090F\u0902",alternatives:["\u0918\u091F\u093E"]}]},extraction:{patient:{position:0}}},{id:"decrement-hi-with-quantity",language:"hi",command:"decrement",priority:95,template:{format:"{patient} \u0915\u094B {quantity} \u0938\u0947 \u0918\u091F\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"quantity"},{type:"literal",value:"\u0938\u0947"},{type:"literal",value:"\u0918\u091F\u093E\u090F\u0902",alternatives:["\u0918\u091F\u093E"]}]},extraction:{patient:{position:0},quantity:{marker:"\u0938\u0947",position:2}}},{id:"decrement-hi-simple",language:"hi",command:"decrement",priority:90,template:{format:"\u0918\u091F\u093E\u090F\u0902 {patient}",tokens:[{type:"literal",value:"\u0918\u091F\u093E\u090F\u0902",alternatives:["\u0918\u091F\u093E"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function G4(){return[{id:"decrement-it-full",language:"it",command:"decrement",priority:100,template:{format:"decrementare {patient} di {quantity}",tokens:[{type:"literal",value:"decrementare",alternatives:["decrementa","diminuire","decrement"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"di",alternatives:["per"]},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"di",markerAlternatives:["per"],default:{type:"literal",value:"1"}}}},{id:"decrement-it-simple",language:"it",command:"decrement",priority:90,template:{format:"decrementare {patient}",tokens:[{type:"literal",value:"decrementare",alternatives:["decrementa","diminuire","decrement"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:"1"}}}}]}function X4(){return[{id:"decrement-pl-full",language:"pl",command:"decrement",priority:100,template:{format:"zmniejsz {patient} o {quantity}",tokens:[{type:"literal",value:"zmniejsz",alternatives:["obni\u017C","obniz"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"o"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"o",default:{type:"literal",value:1}}}},{id:"decrement-pl-simple",language:"pl",command:"decrement",priority:90,template:{format:"zmniejsz {patient}",tokens:[{type:"literal",value:"zmniejsz",alternatives:["obni\u017C","obniz"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}]}function Q4(){return[{id:"decrement-ru-full",language:"ru",command:"decrement",priority:100,template:{format:"\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C {patient} \u043D\u0430 {quantity}",tokens:[{type:"literal",value:"\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C",alternatives:["\u0443\u043C\u0435\u043D\u044C\u0448\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u043D\u0430",default:{type:"literal",value:1}}}},{id:"decrement-ru-simple",language:"ru",command:"decrement",priority:90,template:{format:"\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C",alternatives:["\u0443\u043C\u0435\u043D\u044C\u0448\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}]}function Z4(){return[{id:"decrement-th-simple",language:"th",command:"decrement",priority:100,template:{format:"\u0E25\u0E14\u0E04\u0E48\u0E32 {patient}",tokens:[{type:"literal",value:"\u0E25\u0E14\u0E04\u0E48\u0E32"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"decrement-th-with-quantity",language:"th",command:"decrement",priority:95,template:{format:"\u0E25\u0E14\u0E04\u0E48\u0E32 {patient} \u0E14\u0E49\u0E27\u0E22 {quantity}",tokens:[{type:"literal",value:"\u0E25\u0E14\u0E04\u0E48\u0E32"},{type:"role",role:"patient"},{type:"literal",value:"\u0E14\u0E49\u0E27\u0E22"},{type:"role",role:"quantity"}]},extraction:{patient:{position:1},quantity:{marker:"\u0E14\u0E49\u0E27\u0E22",position:3}}}]}function Y4(){return[]}function J4(){return[{id:"decrement-uk-full",language:"uk",command:"decrement",priority:100,template:{format:"\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438 {patient} \u043D\u0430 {quantity}",tokens:[{type:"literal",value:"\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438",alternatives:["\u0437\u043C\u0435\u043D\u0448"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u043D\u0430",default:{type:"literal",value:1}}}},{id:"decrement-uk-simple",language:"uk",command:"decrement",priority:90,template:{format:"\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438",alternatives:["\u0437\u043C\u0435\u043D\u0448"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}]}function ey(){return[{id:"decrement-vi-full",language:"vi",command:"decrement",priority:100,template:{format:"gi\u1EA3m {target} \u0111i {amount}",tokens:[{type:"literal",value:"gi\u1EA3m",alternatives:["gi\u1EA3m \u0111i"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0111i",alternatives:["xu\u1ED1ng"]},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u0111i",markerAlternatives:["xu\u1ED1ng"],default:{type:"literal",value:"1"}}}},{id:"decrement-vi-simple",language:"vi",command:"decrement",priority:90,template:{format:"gi\u1EA3m {target}",tokens:[{type:"literal",value:"gi\u1EA3m",alternatives:["gi\u1EA3m \u0111i"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:"1"}}}}]}function ty(){return[{id:"decrement-zh-full",language:"zh",command:"decrement",priority:100,template:{format:"\u51CF\u5C11 {patient}",tokens:[{type:"literal",value:"\u51CF\u5C11",alternatives:["\u9012\u51CF","\u51CF","\u964D\u4F4E","decrement"]},{type:"role",role:"patient",expectedTypes:["selector","reference","expression"]}]},extraction:{patient:{position:1}}}]}function ry(e){switch(e){case"bn":return U4();case"de":return H4();case"hi":return $4();case"it":return G4();case"pl":return X4();case"ru":return Q4();case"th":return Z4();case"tr":return Y4();case"uk":return J4();case"vi":return ey();case"zh":return ty();default:return[]}}var ny={id:"fetch-en-with-response-type",language:"en",command:"fetch",priority:90,template:{format:"fetch {source} as {responseType}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source",expectedTypes:["literal","expression"]},{type:"literal",value:"as"},{type:"role",role:"responseType",expectedTypes:["literal","expression"]}]},extraction:{source:{position:1},responseType:{marker:"as"}}},iy={id:"fetch-en-simple",language:"en",command:"fetch",priority:80,template:{format:"fetch {source}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source"}]},extraction:{source:{position:1}}},ay=[ny,iy],uy={id:"swap-en-handcrafted",language:"en",command:"swap",priority:110,template:{format:"swap {method} {destination}",tokens:[{type:"literal",value:"swap"},{type:"role",role:"method"},{type:"role",role:"destination"}]},extraction:{method:{position:1},destination:{position:2}}},oy=[uy],sy={id:"repeat-en-until-event-from",language:"en",command:"repeat",priority:120,template:{format:"repeat until event {event} from {source}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"from"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]},extraction:{event:{marker:"event"},source:{marker:"from"},loopType:{default:{type:"literal",value:"until-event"}}}},ly={id:"repeat-en-until-event",language:"en",command:"repeat",priority:110,template:{format:"repeat until event {event}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]}]},extraction:{event:{marker:"event"},loopType:{default:{type:"literal",value:"until-event"}}}},py=[sy,ly],my={id:"set-en-possessive",language:"en",command:"set",priority:100,template:{format:"set {destination} to {patient}",tokens:[{type:"literal",value:"set"},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"to"},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{marker:"to"}}},cy=[my],dy={id:"for-en-basic",language:"en",command:"for",priority:100,template:{format:"for {patient} in {source}",tokens:[{type:"literal",value:"for"},{type:"role",role:"patient",expectedTypes:["expression","reference"]},{type:"literal",value:"in"},{type:"role",role:"source",expectedTypes:["selector","expression","reference"]}]},extraction:{patient:{position:1},source:{marker:"in"},loopType:{default:{type:"literal",value:"for"}}}},yy={id:"if-en-basic",language:"en",command:"if",priority:100,template:{format:"if {condition}",tokens:[{type:"literal",value:"if"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},fy={id:"unless-en-basic",language:"en",command:"unless",priority:100,template:{format:"unless {condition}",tokens:[{type:"literal",value:"unless"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},vy=[dy,yy,fy],hy={id:"temporal-en-in",language:"en",command:"wait",priority:95,template:{format:"in {duration}",tokens:[{type:"literal",value:"in"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}},gy={id:"temporal-en-after",language:"en",command:"wait",priority:95,template:{format:"after {duration}",tokens:[{type:"literal",value:"after"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}},Ey=[hy,gy],zy=[...ay,...oy,...py,...cy,...vy,...Ey];function ky(){return zy}un(),T();var Cy=[Kl,ac,Ul,Hl,sd,Ad,Wd,e4,E4,P4,K4,ry,$c],$l=new Map;function Ay(e){let r=$l.get(e);if(r)return r;let t=Y(e);if(!t)return[];let n=_t(t);return $l.set(e,n),n}function Ri(e){let r=Cy.flatMap(t=>t(e));return e==="en"&&r.push(...ky()),r.push(...Ay(e)),r}var wy=["en","ja","ar","es","ko","zh","tr","pt","fr","de","id","qu","sw","it","vi","pl","ru","uk","hi","bn","th","ms","tl","he"];function Gl(){let e=[];for(let r of wy)e.push(...Ri(r));return e}var Ni=new Map,Ne=null;function Ii(){return Ne===null&&(Ne=Gl()),Ne}var zt=new Proxy([],{get(e,r){let t=Ii(),n=Reflect.get(t,r);return typeof n=="function"?n.bind(t):n},ownKeys(){return Reflect.ownKeys(Ii())},getOwnPropertyDescriptor(e,r){return Reflect.getOwnPropertyDescriptor(Ii(),r)}});function by(){return Ne===null&&(Ne=Gl()),Ne}function Xl(e){if(Ni.has(e))return Ni.get(e);let r=Ri(e);return Ni.set(e,r),r}function xy(e,r){return Xl(e).filter(t=>t.command===r).sort((t,n)=>n.priority-t.priority)}function Dy(){let e=new Set(zt.map(r=>r.language));return Array.from(e)}function Ty(){let e=new Set(zt.map(r=>r.command));return Array.from(e)}function By(e){return zt.find(r=>r.id===e)}function Fy(){let e={},r={};for(let t of zt)e[t.language]=(e[t.language]||0)+1,r[t.command]=(r[t.command]||0)+1;return{totalPatterns:zt.length,byLanguage:e,byCommand:r}}Pl(),T();function Sy(e){return Ri(e.code)}N0(Sy),vt(),sr(),_i(),Li(),ji(),ji(),Li();function Py(e,r){if(Et(e))return e;let t=Z(e,r);return lr(t)}function Ql(e,r){let t=gt(e);return ie(t,r)}function $i(e,r,t){if(Et(e))return Ql(e,t);let n=Z(e,r);return ie(n,t)}function kt(e,r){return Et(e)?gt(e):Z(e,r)}function jy(e,r,t){let n=kt(e,r),a=t??r,i=Et(e)?lr(n):ie(n,a);if(t!==void 0)return i;let u=e.trim().toLowerCase(),o=i.trim().toLowerCase();return{original:e,semantic:n,rendered:i,matches:u===o}}function Ly(e,r,t=["en","ja","ar","es","ko","zh","tr","pt","fr","de","id","qu","sw"]){let n={},a=kt(e,r);for(let i of t)n[i]=ie(a,i);return n.explicit=lr(a),n}function _y(e,r,t,n){try{let a=kt(e,t),i=kt(r,n);if(a.action!==i.action)return!1;for(let[u,o]of a.roles){let s=i.roles.get(u);if(!s||!Zl(o,s))return!1}return!0}catch{return!1}}function Zl(e,r){if(e.type!==r.type)return!1;switch(e.type){case"literal":return e.value===r.value;case"selector":return e.value===r.value;case"reference":return e.value===r.value;case"property-path":return Zl(e.object,r.object)&&e.property===r.property;case"expression":return e.raw===r.raw;default:return!1}}T(),sr(),_i(),vt(),T();var Ct=class{constructor(e={}){this.cache=new Map,this.config={maxSize:e.maxSize??1e3,ttlMs:e.ttlMs??0,enabled:e.enabled??!0},this.stats={hits:0,misses:0,evictions:0,expirations:0}}makeKey(e,r){return`${r}:${e}`}isExpired(e){return this.config.ttlMs===0?!1:Date.now()-e.createdAt>this.config.ttlMs}evictLRU(){let e=this.cache.keys().next().value;e!==void 0&&(this.cache.delete(e),this.stats.evictions++)}get(e,r){if(!this.config.enabled){this.stats.misses++;return}let t=this.makeKey(e,r),n=this.cache.get(t);if(!n){this.stats.misses++;return}if(this.isExpired(n)){this.cache.delete(t),this.stats.expirations++,this.stats.misses++;return}return this.cache.delete(t),n.lastAccessed=Date.now(),this.cache.set(t,n),this.stats.hits++,n.result}set(e,r,t){if(!this.config.enabled||t.confidence===0)return;let n=this.makeKey(e,r),a=Date.now();for(;this.cache.size>=this.config.maxSize;)this.evictLRU();this.cache.set(n,{result:t,createdAt:a,lastAccessed:a})}has(e,r){if(!this.config.enabled)return!1;let t=this.makeKey(e,r),n=this.cache.get(t);return n?this.isExpired(n)?(this.cache.delete(t),this.stats.expirations++,!1):!0:!1}delete(e,r){let t=this.makeKey(e,r);return this.cache.delete(t)}clear(){this.cache.clear()}resetStats(){this.stats={hits:0,misses:0,evictions:0,expirations:0}}getStats(){let e=this.stats.hits+this.stats.misses;return{hits:this.stats.hits,misses:this.stats.misses,size:this.cache.size,maxSize:this.config.maxSize,hitRate:e>0?this.stats.hits/e:0,evictions:this.stats.evictions,expirations:this.stats.expirations,enabled:this.config.enabled}}configure(e){if(e.maxSize!==void 0)for(this.config.maxSize=e.maxSize;this.cache.size>this.config.maxSize;)this.evictLRU();e.ttlMs!==void 0&&(this.config.ttlMs=e.ttlMs),e.enabled!==void 0&&(this.config.enabled=e.enabled)}enable(){this.config.enabled=!0}disable(){this.config.enabled=!1}getConfig(){return{...this.config}}},Wi=new Ct;function Ry(e){return new Ct(e)}function Ny(e,r=Wi){return((t,n)=>{let a=r.get(t,n);if(a)return a;let i=e(t,n);return r.set(t,n,i),i})}var Yl=class{constructor(e={}){this.patternMatcher=new or,this.languages=new Set(Me()),e.cache===!1?this.cache=new Ct({enabled:!1}):this.cache=e.cache?new Ct(e.cache):Wi}analyze(e,r){if(!this.supportsLanguage(r))return{confidence:0,errors:[`Language '${r}' is not supported for semantic parsing`]};let t=this.cache.get(e,r);if(t)return t;let n=this.analyzeUncached(e,r);return this.cache.set(e,r,n),n}analyzeUncached(e,r){try{try{let u=Z(e,r),o={confidence:u.metadata?.confidence??.8,node:u};return u.kind==="command"?{...o,command:{name:u.action,roles:u.roles}}:o}catch{}let t=jl(r);if(!t)return{confidence:0,errors:[`No tokenizer available for language '${r}'`]};let n=t.tokenize(e),a=pe(r);if(a.length===0)return{confidence:0,errors:[`No patterns available for language '${r}'`]};let i=this.patternMatcher.matchBest(n,a);if(i){let u=this.buildSemanticNode(i);return{confidence:i.confidence,command:{name:i.pattern.command,roles:i.captured},node:u,tokensConsumed:i.consumedTokens}}return{confidence:0,errors:["No pattern matched the input"]}}catch(t){return{confidence:0,errors:[t instanceof Error?t.message:String(t)]}}}supportsLanguage(e){return this.languages.has(e)}supportedLanguages(){return Array.from(this.languages)}getCacheStats(){return this.cache.getStats()}clearCache(){this.cache.clear()}configureCache(e){this.cache.configure(e)}buildSemanticNode(e){return{kind:"command",action:e.pattern.command,roles:e.captured,metadata:{patternId:e.pattern.id}}}};function Gi(e){return new Yl(e)}var Jl=.5,Iy=.8;function Xi(e,r=Jl){return e.confidence>=r&&e.command!==void 0}function Wy(e,r){let t=[],n={};for(let[a,i]of e)switch(a){case"patient":case"event":t.push(i);break;case"destination":r==="put"?n.into=i:n.on=i;break;case"source":n.from=i;break;case"quantity":n.by=i;break;case"duration":n.over=i;break;case"method":n.as=i;break;case"style":n.with=i;break;case"condition":n.if=i;break;case"agent":n.agent=i;break;default:n[a]=i}return{args:t,modifiers:n}}Oe(),ft(),Ce(),Ge(),Ke(),Ye(),et(),tt(),at(),ut(),He(),lt(),ct(),Oe(),Pt(),ft(),Ce(),Ge(),Ke(),vn(),It(),Ye(),Wt(),et(),tt(),Vt(),Kt(),at(),ut(),Ut(),He(),lt(),Ht(),Gt(),ct(),Zt(),Yt();var dr={ar:ze,bn:Ve,zh:je,en:ce,fr:we,de:ke,he:Nt,hi:Qe,id:be,it:Je,ja:xe,ko:De,ms:nt,pl:it,pt:Te,qu:Be,ru:st,es:Ae,"es-MX":Vl,sw:Fe,th:pt,tl:mt,tr:Se,uk:dt,vi:yt};function My(e){return dr[e]}function Oy(){return Object.keys(dr)}function qy(e){return e in dr}rn(),un(),Va(),rn();var Mi=new Map(Object.entries(de));function Oi(e){return Mi.get(e)}function Vy(e,r){Mi.set(e,r)}function e0(e){if(e.type==="literal"&&typeof e.value=="string"||e.type==="selector"||e.type==="reference")return e.value}function Ky(e,r){if(e==null)return!1;for(let t of r)switch(t){case"selector":if(e.type==="selector")return!0;let n=e0(e);if(n&&(n.startsWith(".")||n.startsWith("#")||n.startsWith("[")))return!0;break;case"literal":if(e.type==="literal"||e.type==="property-path")return!0;break;case"reference":if(e.type==="reference"||e.type==="property-path")return!0;let a=e0(e);if(a&&["me","you","it","my","its","result","event","target"].includes(a.toLowerCase()))return!0;break;case"expression":if(e.type==="expression"||e.type==="property-path")return!0;break}return!1}function t0(e){let r=[],t=[],n=[],a=0,i=Oi(e.action);if(!i)return t.push({code:"UNKNOWN_ROLE",message:`No schema found for action '${e.action}'. Skipping validation.`,severity:"warning"}),{valid:!0,errors:r,warnings:t,confidenceAdjustment:-.1,suggestions:n};let u=new Map;for(let s of e.arguments)s.role&&u.set(s.role,s);for(let s of i.roles){let l=u.get(s.role);if(s.required&&!l){s.default?t.push({code:"MISSING_REQUIRED_ROLE",message:`Role '${s.role}' not provided, using default.`,role:s.role,severity:"warning"}):(r.push({code:"MISSING_REQUIRED_ROLE",message:`Required role '${s.role}' (${s.description}) is missing.`,role:s.role,expected:s.expectedTypes,severity:"error"}),n.push(`Add ${s.description.toLowerCase()} to the command.`),a-=.2);continue}l&&!Ky(l,s.expectedTypes)&&(t.push({code:"INVALID_TYPE",message:`Role '${s.role}' expected ${s.expectedTypes.join(" or ")}, got ${l.type}.`,role:s.role,expected:s.expectedTypes,actual:l,severity:"warning"}),a-=.1)}for(let s of e.arguments)s.role&&(i.roles.some(p=>p.role===s.role)||(t.push({code:"UNKNOWN_ROLE",message:`Role '${s.role}' is not recognized for command '${e.action}'.`,role:s.role,severity:"warning"}),a-=.05));return i.roles.filter(s=>s.required&&!s.default).every(s=>u.has(s.role))&&r.length===0&&(a+=.1),{valid:r.length===0,errors:r,warnings:t,confidenceAdjustment:Math.max(-1,Math.min(1,a)),suggestions:n}}function Uy(e){let r=t0(e);return{...e,confidence:Math.max(0,Math.min(1,e.confidence+r.confidenceAdjustment)),validation:r}}function qi(e){switch(e){case"preposition":return"preposition";case"postposition":case"particle":case"case-suffix":return"postposition";default:return"none"}}function r0(e,r,t){let n={form:r.primary,role:e,position:qi(t),required:r.required??!1};return r.alternatives&&(n.alternatives=r.alternatives),n}function Hy(e){let r=[];for(let[t,n]of Object.entries(e.roleMarkers))n&&r.push(r0(t,n,e.markingStrategy));return{code:e.code,name:e.nativeName,wordOrder:e.wordOrder,adpositionType:qi(e.markingStrategy),morphology:e.morphology,direction:e.direction,markers:r,canonicalOrder:e.canonicalOrder}}function $y(e){if(!e||typeof e!="object")return!1;let r=e;return typeof r.code=="string"&&typeof r.name=="string"&&typeof r.wordOrder=="string"&&typeof r.markingStrategy=="string"&&typeof r.morphology=="string"&&typeof r.keywords=="object"&&Array.isArray(r.canonicalOrder)}var n0={accessibility:!0,performance:!0,schema:!0,strict:!1},Gy=new Set(["scroll","mousemove","touchmove","resize","input","keydown","keyup","keypress"]),i0=new Set(["scroll","mousemove","touchmove","resize"]);function a0(e,r){let t=[];if(e.kind==="event-handler"){let n=e.roles.get("event");if(n&&n.type==="literal"){let a=String(n.value).toLowerCase();(a==="mouseenter"||a==="mouseover"||a==="hover")&&t.push({code:"HOVER_ONLY_INTERACTION",severity:"warning",message:`Hover-only interaction detected (${a}). Not accessible to keyboard or touch users.`,suggestion:"Add keyboard equivalent (focus) or use a click-based interaction.",location:{input:r,role:"event"}})}}return t}function u0(e,r){let t=[];if(e.kind==="event-handler"){let n=e.roles.get("event");if(n&&n.type==="literal"){let a=String(n.value).toLowerCase();if(Gy.has(a)){let i=i0.has(a)?"warning":"info";t.push({code:"HIGH_FREQUENCY_TRIGGER",severity:i,message:`High-frequency event '${a}' may cause performance issues.`,suggestion:i0.has(a)?`Consider using 'on ${a} throttled:100ms' to limit execution frequency.`:"Consider debouncing or throttling this handler.",location:{input:r,role:"event"}})}}}return t}function o0(e,r){let t=[];if(e.kind!=="command")return t;let n=Oi(e.action);if(!n)return t;let a=Array.isArray(n.roles)?n.roles:[],i=new Set;for(let u of a)u&&typeof u=="object"&&"role"in u&&(i.add(u.role),u.required&&!e.roles.has(u.role)&&t.push({code:"MISSING_REQUIRED_ROLE",severity:"error",message:`Command '${e.action}' requires '${u.role}' but it was not provided.`,suggestion:u.description,location:{input:r}}));return e.roles.forEach((u,o)=>{i.has(o)||t.push({code:"INVALID_ROLE_FOR_COMMAND",severity:"warning",message:`Role '${o}' is not typically used with '${e.action}' command.`,location:{input:r,role:o}})}),t}function Xy(e){return e.kind==="event-handler"?e.body??[]:[]}function s0(e,r={}){let t=[],n=new Map;for(let a of e)if(a.kind==="event-handler"){let i=a.roles.get("event"),u=a.roles.get("source"),o=`${i?.type==="literal"?i.value:"unknown"}:${u?.type==="selector"?u.value:"self"}`;n.has(o)||n.set(o,[]);let s=Xy(a);n.get(o).push({handler:a,commands:s})}return n.forEach((a,i)=>{if(a.length>1){let u=[],o=[];for(let{commands:v}of a)for(let f of v){u.push(f.action);let d=f.roles.get("patient");o.push(d?.type==="selector"?d.value:"unknown")}let s=u.includes("toggle"),l=u.includes("show"),p=u.includes("hide");s&&(l||p)&&o.filter((f,d)=>(u[d]==="toggle"||u[d]==="show"||u[d]==="hide")&&o.some((h,C)=>d!==C&&f===h)).length>0&&t.push({code:"CONFLICTING_ACTIONS",severity:"warning",message:`Conflicting actions on '${i}': ${[...new Set(u)].join(", ")} may interfere with each other.`,suggestion:"Consider using a single toggle or conditional logic."}),u.some(v=>["fetch","wait","send"].includes(v))&&a.length>1&&t.push({code:"POTENTIAL_RACE_CONDITION",severity:"info",message:`Multiple handlers on '${i}' include async operations. Consider sequencing.`,suggestion:'Use "then" to chain operations or add loading states.'})}}),t}function Vi(e,r="en",t={}){let n={...n0,...t},a=[],i=null;try{i=Z(e,r)}catch{}if(!i)return{valid:!1,warnings:[{code:"UNREACHABLE_BEHAVIOR",severity:"error",message:"Could not parse input to semantic representation.",location:{input:e}}],node:null};n.accessibility&&a.push(...a0(i,e)),n.performance&&a.push(...u0(i,e)),n.schema&&a.push(...o0(i,e));let u=a.some(l=>l.severity==="error"),o=a.some(l=>l.severity==="warning");return{valid:n.strict?!u&&!o:!u,warnings:a,node:i}}function Qy(e,r="en",t={}){let n=[],a=[];for(let l of e){let p=Vi(l,r,t);n.push(...p.warnings),p.node&&a.push(p.node)}n.push(...s0(a,t));let i=n.some(l=>l.severity==="error"),u={...n0,...t},o=n.some(l=>l.severity==="warning");return{valid:u.strict?!i&&!o:!i,warnings:n,node:a[0]??null}}var yr=!1,Ki={};function Zy(e={}){yr=!0,Ki=e}function Yy(){yr=!1}function Jy(){return yr}function ef(){return{...Ki}}function tf(e,r,t){if(!yr)return;if(!t){console.warn(`[hyperfixi] Parse failed: ${e}`);return}let n=Vi(e,r,Ki);for(let a of n.warnings){let i=a.severity==="error"?"\u274C":a.severity==="warning"?"\u26A0\uFE0F":"\u2139\uFE0F",u=a.severity==="error"?"error":a.severity==="warning"?"warn":"info";console[u](`${i} [hyperfixi:${a.code}] ${a.message}`,a.suggestion?`
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
`?(n++,a=1):a++,d}function s(){for(;t<e.length&&/\s/.test(e[t]);)o()}function l(d){let h="";for(;t<e.length&&d(e[t]);)h+=o();return h}function p(d){let h=d;for(o();t<e.length&&e[t]!==d;)e[t]==="\\"&&t+1<e.length&&(h+=o()),h+=o();return t<e.length&&(h+=o()),h}function y(){let d="`";for(o();t<e.length&&e[t]!=="`";)e[t]==="\\"&&t+1<e.length&&(d+=o()),d+=o();return t<e.length&&(d+=o()),d}function v(){let d="<";for(o();t<e.length&&(d+=o(),!d.endsWith("/>")););return d}function f(d,h,C){return{type:d,value:h,start:C,end:t,line:n,column:a-h.length}}for(;t<e.length&&(s(),!(t>=e.length));){let d=t,h=u();if(h==="'"&&u(1)==="s"&&!/\w/.test(u(2))){o(),o(),r.push(f("POSSESSIVE","'s",d));continue}if(h==='"'||h==="'"){let C=p(h);r.push(f("STRING",C,d));continue}if(h==="`"){let C=y();r.push(f("TEMPLATE_LITERAL",C,d));continue}if(h==="<"&&/[a-zA-Z.#\[]/.test(u(1))){let C=v();r.push(f("QUERY_SELECTOR",C,d));continue}if(h==="#"&&i()){o();let C=l(B=>/[\w-]/.test(B));r.push(f("ID_SELECTOR","#"+C,d));continue}if(h==="."&&/[a-zA-Z_-]/.test(u(1))&&i()){o();let C=l(B=>/[\w-]/.test(B));r.push(f("CLASS_SELECTOR","."+C,d));continue}if(h==="["&&i()){let C=u(1);if(C==="@"||/[a-zA-Z]/.test(C)){let B="";for(B+=o();t<e.length&&e[t]!=="]";)e[t]==='"'||e[t]==="'"?B+=p(e[t]):B+=o();t<e.length&&(B+=o()),r.push(f("ATTRIBUTE_SELECTOR",B,d));continue}}if(h==="["){o(),r.push(f("LBRACKET","[",d));continue}if(h==="]"){o(),r.push(f("RBRACKET","]",d));continue}if(/\d/.test(h)){let C=l(ge=>/[\d.]/.test(ge)),B=t,q=l(ge=>/[a-zA-Z]/.test(ge));uf.has(q)?r.push(f("TIME_EXPRESSION",C+q,d)):(t=B,r.push(f("NUMBER",C,d)));continue}if(h==="("){o(),r.push(f("LPAREN","(",d));continue}if(h===")"){o(),r.push(f("RPAREN",")",d));continue}if(h==="{"){o(),r.push(f("LBRACE","{",d));continue}if(h==="}"){o(),r.push(f("RBRACE","}",d));continue}if(h===","){o(),r.push(f("COMMA",",",d));continue}if(h===":"){o(),r.push(f("COLON",":",d));continue}if(h==="."){o(),r.push(f("DOT",".",d));continue}if(h==="+"||h==="-"||h==="*"||h==="/"||h==="%"){o(),r.push(f("OPERATOR",h,d));continue}if(h==="="||h==="!"||h==="<"||h===">"){let C=o();u()==="="&&(C+=o()),r.push(f("COMPARISON",C,d));continue}if(/[a-zA-Z_$]/.test(h)){let C=l(q=>/[\w$]/.test(q)),B=C.toLowerCase();rf.has(B)?r.push(f("CONTEXT_VAR",C,d)):nf.has(B)?r.push(f("LOGICAL",C,d)):af.has(B)?r.push(f("BOOLEAN",C,d)):r.push(f("IDENTIFIER",C,d));continue}o()}return r.push(f("EOF","",t)),r}var sf=class{constructor(){this.tokens=[],this.current=0}parse(e){try{return this.tokens=of(e),this.current=0,this.isAtEnd()?{success:!1,error:"Empty expression"}:{success:!0,node:this.parseExpression(),consumed:this.current}}catch(r){return{success:!1,error:r instanceof Error?r.message:"Parse error"}}}peek(){return this.tokens[this.current]??{type:"EOF",value:"",start:0,end:0}}previous(){return this.tokens[this.current-1]??{type:"EOF",value:"",start:0,end:0}}isAtEnd(){return this.peek().type==="EOF"}advance(){return this.isAtEnd()||this.current++,this.previous()}check(e){return this.peek().type===e}checkValue(e){return this.peek().value.toLowerCase()===e.toLowerCase()}match(...e){for(let r of e)if(this.check(r))return this.advance(),!0;return!1}parseExpression(){return this.parseOr()}parseOr(){let e=this.parseAnd();for(;this.checkValue("or");){let r=this.advance().value,t=this.parseAnd();e=this.createBinaryExpression(r,e,t)}return e}parseAnd(){let e=this.parseEquality();for(;this.checkValue("and");){let r=this.advance().value,t=this.parseEquality();e=this.createBinaryExpression(r,e,t)}return e}parseEquality(){let e=this.parseComparison();for(;this.match("COMPARISON")||this.checkValue("is")||this.checkValue("matches")||this.checkValue("contains")||this.checkValue("in");){let r=this.previous().value,t=this.parseComparison();e=this.createBinaryExpression(r,e,t)}return e}parseComparison(){let e=this.parseAddition();for(;this.check("COMPARISON");){let r=this.advance().value,t=this.parseAddition();e=this.createBinaryExpression(r,e,t)}return e}parseAddition(){let e=this.parseMultiplication();for(;this.peek().value==="+"||this.peek().value==="-";){let r=this.advance().value,t=this.parseMultiplication();e=this.createBinaryExpression(r,e,t)}return e}parseMultiplication(){let e=this.parseUnary();for(;this.peek().value==="*"||this.peek().value==="/"||this.peek().value==="%";){let r=this.advance().value,t=this.parseUnary();e=this.createBinaryExpression(r,e,t)}return e}parseUnary(){if(this.checkValue("not")||this.checkValue("no")||this.peek().value==="-"){let e=this.advance().value,r=this.parseUnary();return this.createUnaryExpression(e,r)}return this.parsePostfix()}parsePostfix(){let e=this.parsePrimary();for(;;)if(this.match("DOT"))if(this.check("IDENTIFIER")||this.check("CONTEXT_VAR")){let r=this.advance().value;e=this.createPropertyAccess(e,r)}else break;else if(this.match("POSSESSIVE"))if(this.check("IDENTIFIER")||this.check("CONTEXT_VAR")){let r=this.advance().value;e=this.createPossessiveExpression(e,r)}else break;else if(this.match("LPAREN")){let r=this.parseArguments();e=this.createCallExpression(e,r)}else if(this.match("LBRACKET")){let r=this.parseExpression();if(!this.match("RBRACKET"))throw new Error("Expected ] after index");e=this.createPropertyAccess(e,r)}else break;return e}parsePrimary(){let e=this.peek();if(this.match("NUMBER"))return this.createLiteral(parseFloat(e.value),"number",e);if(this.match("STRING")){let r=e.value.slice(1,-1);return this.createLiteral(r,"string",e)}if(this.match("BOOLEAN")){let r=e.value==="true"?!0:e.value==="false"?!1:e.value==="null"?null:void 0,t={true:"boolean",false:"boolean",null:"null",undefined:"undefined"};return this.createLiteral(r,t[e.value]??"string",e)}if(this.match("TEMPLATE_LITERAL"))return{type:"templateLiteral",value:e.value,start:e.start,end:e.end,line:e.line,column:e.column};if(this.match("TIME_EXPRESSION"))return this.parseTimeExpression(e);if(this.match("ID_SELECTOR"))return this.createSelector(e.value,"id",e);if(this.match("CLASS_SELECTOR"))return this.createSelector(e.value,"class",e);if(this.match("ATTRIBUTE_SELECTOR"))return this.createSelector(e.value,"attribute",e);if(this.match("QUERY_SELECTOR")){let r=e.value.slice(1,-2);return this.createSelector(r,"query",e)}if(this.match("CONTEXT_VAR"))return this.createContextReference(e.value,e);if(this.match("IDENTIFIER"))return this.createIdentifier(e.value,e);if(this.match("LPAREN")){let r=this.parseExpression();if(!this.match("RPAREN"))throw new Error("Expected ) after expression");return r}if(this.match("LBRACKET"))return this.parseArrayLiteral();if(this.match("LBRACE"))return this.parseObjectLiteral();throw new Error(`Unexpected token: ${e.value}`)}parseArguments(){let e=[];if(!this.check("RPAREN"))do e.push(this.parseExpression());while(this.match("COMMA"));if(!this.match("RPAREN"))throw new Error("Expected ) after arguments");return e}parseArrayLiteral(){let e=[],r=this.previous().start;if(!this.check("RBRACKET"))do e.push(this.parseExpression());while(this.match("COMMA"));if(!this.match("RBRACKET"))throw new Error("Expected ] after array elements");return{type:"arrayLiteral",elements:e,start:r,end:this.previous().end}}parseObjectLiteral(){let e=[],r=this.previous().start;if(!this.check("RBRACE"))do{let t;if(this.check("STRING"))t=this.advance().value.slice(1,-1);else if(this.check("IDENTIFIER"))t=this.advance().value;else throw new Error("Expected property name");if(!this.match("COLON"))throw new Error("Expected : after property name");let n=this.parseExpression();e.push({key:t,value:n})}while(this.match("COMMA"));if(!this.match("RBRACE"))throw new Error("Expected } after object properties");return{type:"objectLiteral",properties:e.map(t=>({type:"objectProperty",key:t.key,value:t.value})),start:r,end:this.previous().end}}parseTimeExpression(e){let r=e.value.match(/^(\d+(?:\.\d+)?)(ms|s|seconds?|milliseconds?|minutes?|hours?)$/i);if(!r)throw new Error(`Invalid time expression: ${e.value}`);let t=parseFloat(r[1]),n=r[2].toLowerCase();return{type:"timeExpression",value:t,unit:n,raw:e.value,start:e.start,end:e.end,line:e.line,column:e.column}}createLiteral(e,r,t){return{type:"literal",value:e,dataType:r,raw:t.value,start:t.start,end:t.end,line:t.line,column:t.column}}createSelector(e,r,t){return{type:"selector",value:e,selector:e,selectorType:r,start:t.start,end:t.end,line:t.line,column:t.column}}createContextReference(e,r){return{type:"contextReference",contextType:e,name:r.value,start:r.start,end:r.end,line:r.line,column:r.column}}createIdentifier(e,r){return{type:"identifier",name:e,start:r.start,end:r.end,line:r.line,column:r.column}}createPropertyAccess(e,r){return{type:"propertyAccess",object:e,property:typeof r=="string"?r:r.type==="identifier"?r.name:"",start:e.start,end:this.previous().end}}createPossessiveExpression(e,r){return{type:"possessiveExpression",object:e,property:r,start:e.start,end:this.previous().end}}createBinaryExpression(e,r,t){return{type:"binaryExpression",operator:e,left:r,right:t,start:r.start,end:t.end}}createUnaryExpression(e,r){return{type:"unaryExpression",operator:e,operand:r,prefix:!0,start:this.previous().start,end:r.end}}createCallExpression(e,r){return{type:"callExpression",callee:e,arguments:r,start:e.start,end:this.previous().end}}};function lf(e){return new sf().parse(e)}function G(e,r){switch(e.type){case"literal":return l0(e);case"selector":return p0(e,r);case"reference":return m0(e);case"property-path":return c0(e,r);case"expression":return d0(e);default:let t=e;throw new Error(`Unknown semantic value type: ${t.type}`)}}function l0(e){let r={type:"literal",value:e.value};return e.dataType?{...r,dataType:e.dataType}:r}function p0(e,r){return r&&e.value.startsWith("*")&&/^[a-zA-Z-]/.test(e.value.slice(1))&&r.push(`Converted '${e.value}' to a CSS selector, but it looks like a CSS property name. CSS properties in commands like 'transition' should be literal strings, not selectors. Consider using expectedTypes: ['literal'] instead of ['literal', 'selector'] in the command schema.`),{type:"selector",value:e.value,selector:e.value,selectorType:e.selectorKind}}function m0(e){return{type:"contextReference",contextType:e.value,name:e.value}}function c0(e,r){return{type:"propertyAccess",object:G(e.object,r),property:e.property}}function d0(e){let r=lf(e.raw);return!r.success||!r.node?{type:"identifier",name:e.raw}:r.node}function y0(e,r){return e.roles.get(r)}function E(e,r,t){let n=y0(e,r);return n?G(n,t):void 0}function w(e,r=[],t,n={}){let a={type:"command",name:e,args:r};return t&&Object.keys(t).length>0&&(a.modifiers=t),n.isBlocking&&(a.isBlocking=n.isBlocking),n.implicitTarget&&(a.implicitTarget=n.implicitTarget),n.semanticRoles&&Object.keys(n.semanticRoles).length>0&&(a.semanticRoles=n.semanticRoles),a}var pf={action:"toggle",toAST(e,r){let t=E(e,"patient"),n=E(e,"destination"),a=E(e,"duration"),i=t?[t]:[],u={};return n&&(u.on=n),a&&(u.for=a),w("toggle",i,u)}},mf={action:"add",toAST(e,r){let t=E(e,"patient"),n=E(e,"destination"),a=t?[t]:[],i={};return n&&(i.to=n),w("add",a,i)}},cf={action:"remove",toAST(e,r){let t=E(e,"patient"),n=E(e,"source"),a=t?[t]:[],i={};return n&&(i.from=n),w("remove",a,i)}},df={action:"set",toAST(e,r){let t=E(e,"destination"),n=E(e,"patient"),a=[],i={};return t&&a.push(t),n&&(i.to=n),w("set",a,i)}},yf={action:"show",toAST(e,r){let t=E(e,"destination"),n=E(e,"patient"),a=E(e,"duration"),i=[],u={},o=t??n;return o&&i.push(o),a&&(u.with=a),w("show",i,u)}},ff={action:"hide",toAST(e,r){let t=E(e,"destination"),n=E(e,"patient"),a=E(e,"duration"),i=[],u={},o=t??n;return o&&i.push(o),a&&(u.with=a),w("hide",i,u)}},vf={action:"increment",toAST(e,r){let t=E(e,"destination"),n=E(e,"patient"),a=E(e,"quantity"),i=[],u={},o=t??n;return o&&i.push(o),a&&(u.by=a),w("increment",i,u)}},hf={action:"decrement",toAST(e,r){let t=E(e,"destination"),n=E(e,"patient"),a=E(e,"quantity"),i=[],u={},o=t??n;return o&&i.push(o),a&&(u.by=a),w("decrement",i,u)}},gf={action:"wait",toAST(e,r){let t=E(e,"duration");return w("wait",t?[t]:[],void 0,{isBlocking:!0})}},Ef={action:"log",toAST(e,r){let t=E(e,"patient"),n=[];return t&&n.push(t),w("log",n)}},zf={action:"put",toAST(e,r){let t=E(e,"patient"),n=E(e,"destination"),a=y0(e,"method"),i=t?[t]:[],u={};if(n){let o=a?.type==="literal"?String(a.value):"into";u[o]=n}return w("put",i,u)}},kf={action:"fetch",toAST(e,r){let t=E(e,"source"),n=E(e,"method"),a=E(e,"responseType"),i=E(e,"patient"),u=t?[t]:[],o={};return n&&(o.with=n),a&&(o.as=a),i&&(o.body=i),w("fetch",u,o,{isBlocking:!0})}},Cf={action:"append",toAST(e,r){let t=E(e,"patient"),n=E(e,"destination"),a=t?[t]:[],i={};return n&&(i.to=n),w("append",a,i)}},Af={action:"prepend",toAST(e,r){let t=E(e,"patient"),n=E(e,"destination"),a=t?[t]:[],i={};return n&&(i.to=n),w("prepend",a,i)}},wf={action:"trigger",toAST(e,r){let t=E(e,"event"),n=E(e,"destination"),a=t?[t]:[],i={};return n&&(i.on=n),w("trigger",a,i)}},bf={action:"send",toAST(e,r){let t=E(e,"event"),n=E(e,"destination"),a=E(e,"patient"),i=t?[t]:[],u={};return n&&(u.to=n),a&&(u.detail=a),w("send",i,u)}},xf={action:"go",toAST(e,r){let t=E(e,"source"),n=E(e,"destination"),a=[],i={};return t&&a.push(t),n&&(i.to=n),w("go",a,i)}},Df={action:"transition",toAST(e,r){let t=E(e,"patient"),n=E(e,"goal"),a=E(e,"duration"),i=E(e,"destination"),u=t?[t]:[],o={};return n&&(o.to=n),a&&(o.over=a),i&&(o.on=i),w("transition",u,o)}},Tf={action:"focus",toAST(e,r){let t=E(e,"destination"),n=E(e,"patient"),a=[],i={},u=t??n;return u&&a.push(u),w("focus",a,i)}},Bf={action:"blur",toAST(e,r){let t=E(e,"destination"),n=E(e,"patient"),a=[],i=t??n;return i&&a.push(i),w("blur",a)}},Ff={action:"get",toAST(e,r){let t=E(e,"source"),n=E(e,"patient"),a=[],i=t??n;return i&&a.push(i),w("get",a)}},Sf={action:"take",toAST(e,r){let t=E(e,"patient"),n=E(e,"source"),a=t?[t]:[],i={};return n&&(i.from=n),w("take",a,i)}},Pf={action:"call",toAST(e,r){let t=E(e,"patient");return w("call",t?[t]:[])}},jf={action:"return",toAST(e,r){let t=E(e,"patient");return w("return",t?[t]:[])}},Lf={action:"halt",toAST(e,r){return w("halt",[])}},_f={action:"throw",toAST(e,r){let t=E(e,"patient");return w("throw",t?[t]:[])}},Rf={action:"settle",toAST(e,r){let t=E(e,"destination"),n=E(e,"patient"),a=[],i=t??n;return i&&a.push(i),w("settle",a,void 0,{isBlocking:!0})}},Nf={action:"swap",toAST(e,r){let t=E(e,"patient"),n=E(e,"source"),a=E(e,"destination"),i=E(e,"style"),u=[],o={};return t&&u.push(t),n&&u.push(n),a&&(o.on=a),i&&(o.with=i),w("swap",u,o)}},If={action:"morph",toAST(e,r){let t=E(e,"source"),n=E(e,"destination"),a=E(e,"patient"),i=[],u={},o=t??a;return o&&i.push(o),n&&(u.on=n),w("morph",i,u)}},Wf={action:"clone",toAST(e,r){let t=E(e,"source"),n=E(e,"destination"),a=E(e,"patient"),i=[],u={},o=t??a;return o&&i.push(o),n&&(u.into=n),w("clone",i,u)}},Mf={action:"make",toAST(e,r){let t=E(e,"patient");return w("make",t?[t]:[])}},Of={action:"measure",toAST(e,r){let t=E(e,"patient"),n=E(e,"destination"),a=E(e,"source"),i=[],u={};t&&i.push(t);let o=n??a;return o&&(u.of=o),w("measure",i,u)}},qf={action:"tell",toAST(e,r){let t=E(e,"destination"),n=E(e,"patient"),a=[],i=t??n;return i&&a.push(i),w("tell",a)}},Vf={action:"js",toAST(e,r){let t=E(e,"patient");return w("js",t?[t]:[])}},Kf={action:"async",toAST(e,r){return w("async",[])}},Uf={action:"if",toAST(e,r){let t=E(e,"condition");return w("if",t?[t]:[])}},Hf={action:"unless",toAST(e,r){let t=E(e,"condition");return w("unless",t?[t]:[])}},$f={action:"repeat",toAST(e,r){let t=E(e,"quantity"),n=E(e,"patient"),a=[],i=t??n;return i&&a.push(i),w("repeat",a)}},Gf={action:"for",toAST(e,r){let t=E(e,"patient"),n=E(e,"source"),a=t?[t]:[],i={};return n&&(i.in=n),w("for",a,i)}},Xf={action:"while",toAST(e,r){let t=E(e,"condition");return w("while",t?[t]:[])}},Qf={action:"continue",toAST(e,r){return w("continue",[])}},Zf={action:"default",toAST(e,r){let t=E(e,"patient"),n=E(e,"source"),a=t?[t]:[],i={};return n&&(i.to=n),w("default",a,i)}},Yf={action:"init",toAST(e,r){return w("init",[])}},Jf={action:"behavior",toAST(e,r){let t=E(e,"patient");return w("behavior",t?[t]:[])}},e3={action:"install",toAST(e,r){let t=E(e,"patient"),n=E(e,"destination"),a=t?[t]:[],i={};return n&&(i.on=n),w("install",a,i)}},t3={action:"on",toAST(e,r){let t=E(e,"event"),n=E(e,"source"),a=t?[t]:[],i={};return n&&(i.from=n),w("on",a,i)}},Ui=new Map([["toggle",pf],["add",mf],["remove",cf],["set",df],["show",yf],["hide",ff],["increment",vf],["decrement",hf],["wait",gf],["log",Ef],["put",zf],["fetch",kf],["append",Cf],["prepend",Af],["get",Ff],["take",Sf],["trigger",wf],["send",bf],["on",t3],["go",xf],["transition",Df],["focus",Tf],["blur",Bf],["call",Pf],["return",jf],["halt",Lf],["throw",_f],["settle",Rf],["swap",Nf],["morph",If],["clone",Wf],["measure",Of],["make",Mf],["tell",qf],["default",Zf],["js",Vf],["async",Kf],["if",Uf],["unless",Hf],["repeat",$f],["for",Gf],["while",Xf],["continue",Qf],["init",Yf],["behavior",Jf],["install",e3]]);function f0(e){return Ui.get(e)}function r3(e){Ui.set(e.action,e)}function n3(){return new Map(Ui)}var v0=class{constructor(e={}){this.warnings=[]}build(e){switch(e.kind){case"command":return this.buildCommand(e);case"event-handler":return this.buildEventHandler(e);case"conditional":return this.buildConditional(e);case"compound":return this.buildCompound(e);case"loop":return this.buildLoop(e);default:throw new Error(`Unknown semantic node kind: ${e.kind}`)}}buildCommand(e){let r=f0(e.action),t;if(r){let n=r.toAST(e,this);if("ast"in n&&"warnings"in n){let a=n;this.warnings.push(...a.warnings),t=a.ast}else t=n}else t=this.buildGenericCommand(e);if(e.roles&&e.roles.size>0){let n={};for(let[a,i]of e.roles)n[a]=G(i);Object.keys(n).length>0&&(t.semanticRoles=n)}return t}buildGenericCommand(e){let r=[],t={},n=["patient","source","quantity"],a=["destination","duration","method","style"];for(let u of n){let o=e.roles.get(u);o&&r.push(G(o))}for(let u of a){let o=e.roles.get(u);if(o){let s=this.roleToModifierKey(u);t[s]=G(o)}}let i={type:"command",name:e.action,args:r};return Object.keys(t).length>0?{...i,modifiers:t}:i}roleToModifierKey(e){return{destination:"on",duration:"for",source:"from",condition:"if",method:"via",style:"with"}[e]??e}buildEventHandler(e){let r=e.roles.get("event"),t,n;if(r?.type==="literal"){let h=String(r.value);h.includes("|")||h.includes(" or ")?(n=h.split(/\s+or\s+|\|/).map(C=>C.trim()),t=n[0]):t=h}else r?.type==="reference"?t=r.value:t="click";let a=e.body.map(h=>this.build(h)),i=e.roles.get("source"),u,o;i?.type==="selector"?(u=i.value,o=i.value):i?.type==="reference"?o=i.value:i?.type==="literal"&&(o=String(i.value));let s=e.roles.get("condition"),l=s?G(s):void 0,p=e.roles.get("destination"),y=p?G(p):void 0,v=e.eventModifiers,f=u;if(v?.from){let h=v.from;h.type==="selector"&&!u&&(f=h.value)}let d=e.parameterNames?[...e.parameterNames]:void 0;return{type:"eventHandler",event:t,commands:a,...n&&n.length>1?{events:n}:{},...f?{selector:f}:{},...o?{target:o}:{},...l?{condition:l}:{},...y?{watchTarget:y}:{},...d&&d.length>0?{args:d,params:d}:{}}}buildConditional(e){let r=e.roles.get("condition");if(!r)throw new Error("Conditional node missing condition");let t=G(r),n=e.thenBranch.map(u=>this.build(u)),a=e.elseBranch?.map(u=>this.build(u)),i=[t,{type:"block",commands:n}];return a&&a.length>0&&i.push({type:"block",commands:a}),{type:"command",name:"if",args:i}}buildCompound(e){let r=e.statements.map(n=>this.build(n));return r.length===1?r[0]:r.length===0?{type:"block",commands:[]}:{type:"CommandSequence",commands:r}}buildLoop(e){let r=e.body.map(n=>this.build(n)),t=[{type:"identifier",name:e.loopVariant}];switch(e.loopVariant){case"times":{let n=e.roles.get("quantity");n&&t.push(G(n));break}case"for":{e.loopVariable&&t.push({type:"string",value:e.loopVariable});let n=e.roles.get("source");n&&t.push(G(n));break}case"while":case"until":{let n=e.roles.get("condition");n&&t.push(G(n));break}case"forever":break}return t.push({type:"block",commands:r}),{type:"command",name:"repeat",args:t}}buildBlock(e){return{type:"block",commands:e.map(t=>this.build(t))}}};function i3(e){let r=new v0;return{ast:r.build(e),warnings:r.warnings}}T();var Hi={en:async()=>{let{englishTokenizer:e}=await Promise.resolve().then(()=>(Ir(),ja)),{englishProfile:r}=await Promise.resolve().then(()=>(Ce(),Pa)),{buildEnglishPatterns:t}=await Promise.resolve().then(()=>(Ju(),Mu));return{tokenizer:e,profile:r,buildPatterns:t}},es:async()=>{let{spanishTokenizer:e}=await Promise.resolve().then(()=>(Rt(),ao)),{spanishProfile:r}=await Promise.resolve().then(()=>(He(),io));return{tokenizer:e,profile:r}},ja:async()=>{let{japaneseTokenizer:e}=await Promise.resolve().then(()=>(_n(),es)),{japaneseProfile:r}=await Promise.resolve().then(()=>(et(),Jo));return{tokenizer:e,profile:r}},ar:async()=>{let{arabicTokenizer:e}=await Promise.resolve().then(()=>(Br(),da)),{arabicProfile:r}=await Promise.resolve().then(()=>(Oe(),ca));return{tokenizer:e,profile:r}},ko:async()=>{let{koreanTokenizer:e}=await Promise.resolve().then(()=>(Mn(),ps)),{koreanProfile:r}=await Promise.resolve().then(()=>(tt(),ls));return{tokenizer:e,profile:r}},zh:async()=>{let{chineseTokenizer:e}=await Promise.resolve().then(()=>(Bi(),Dl)),{chineseProfile:r}=await Promise.resolve().then(()=>(ft(),xl));return{tokenizer:e,profile:r}},tr:async()=>{let{turkishTokenizer:e}=await Promise.resolve().then(()=>(Ei(),cl)),{turkishProfile:r}=await Promise.resolve().then(()=>(ct(),ml));return{tokenizer:e,profile:r}},pt:async()=>{let{portugueseTokenizer:e}=await Promise.resolve().then(()=>(Rs(),Ss)),{portugueseProfile:r}=await Promise.resolve().then(()=>(at(),xs));return{tokenizer:e,profile:r}},fr:async()=>{let{frenchTokenizer:e}=await Promise.resolve().then(()=>(ko(),vo)),{frenchProfile:r}=await Promise.resolve().then(()=>(Ge(),lo));return{tokenizer:e,profile:r}},de:async()=>{let{germanTokenizer:e}=await Promise.resolve().then(()=>(Sa(),xa)),{germanProfile:r}=await Promise.resolve().then(()=>(Ke(),ka));return{tokenizer:e,profile:r}},id:async()=>{let{indonesianTokenizer:e}=await Promise.resolve().then(()=>(Wo(),_o)),{indonesianProfile:r}=await Promise.resolve().then(()=>(Ye(),Lo));return{tokenizer:e,profile:r}},qu:async()=>{let{quechuaTokenizer:e}=await Promise.resolve().then(()=>(Os(),Is)),{quechuaProfile:r}=await Promise.resolve().then(()=>(ut(),Ns));return{tokenizer:e,profile:r}},sw:async()=>{let{swahiliTokenizer:e}=await Promise.resolve().then(()=>(Js(),Xs)),{swahiliProfile:r}=await Promise.resolve().then(()=>(lt(),Gs));return{tokenizer:e,profile:r}},bn:async()=>{let{bengaliTokenizer:e}=await Promise.resolve().then(()=>(za(),ga)),{bengaliProfile:r}=await Promise.resolve().then(()=>(Pt(),ha));return{tokenizer:e,profile:r}},hi:async()=>{let{hindiTokenizer:e}=await Promise.resolve().then(()=>(jo(),Fo)),{hindiProfile:r}=await Promise.resolve().then(()=>(It(),Bo));return{tokenizer:e,profile:r}},it:async()=>{let{italianTokenizer:e}=await Promise.resolve().then(()=>(Xo(),Uo)),{italianProfile:r}=await Promise.resolve().then(()=>(Wt(),Ko));return{tokenizer:e,profile:r}},ms:async()=>{let{malayTokenizer:e}=await Promise.resolve().then(()=>(Es(),hs)),{malayProfile:r}=await Promise.resolve().then(()=>(Vt(),vs));return{tokenizer:e,profile:r}},pl:async()=>{let{polishTokenizer:e}=await Promise.resolve().then(()=>(bs(),ks)),{polishProfile:r}=await Promise.resolve().then(()=>(Kt(),zs));return{tokenizer:e,profile:r}},ru:async()=>{let{russianTokenizer:e}=await Promise.resolve().then(()=>($s(),Vs)),{russianProfile:r}=await Promise.resolve().then(()=>(Ut(),qs));return{tokenizer:e,profile:r}},th:async()=>{let{thaiTokenizer:e}=await Promise.resolve().then(()=>(nl(),tl)),{thaiProfile:r}=await Promise.resolve().then(()=>(Ht(),el));return{tokenizer:e,profile:r}},tl:async()=>{let{tagalogTokenizer:e}=await Promise.resolve().then(()=>(ol(),al)),{tagalogProfile:r}=await Promise.resolve().then(()=>(Gt(),il));return{tokenizer:e,profile:r}},uk:async()=>{let{ukrainianTokenizer:e}=await Promise.resolve().then(()=>(zl(),vl)),{ukrainianProfile:r}=await Promise.resolve().then(()=>(Zt(),fl));return{tokenizer:e,profile:r}},vi:async()=>{let{vietnameseTokenizer:e}=await Promise.resolve().then(()=>(bl(),Cl)),{vietnameseProfile:r}=await Promise.resolve().then(()=>(Yt(),kl));return{tokenizer:e,profile:r}}},fr=Object.keys(Hi);function a3(e,r){L(e,r.tokenizer,r.profile),r.patterns?Ar(e,r.patterns):r.buildPatterns&&Ar(e,r.buildPatterns())}async function u3(e,r){try{let t=await fetch(r);if(!t.ok)throw new Error(`Failed to fetch ${r}: ${t.status} ${t.statusText}`);let n=await t.text(),a=new Blob([n],{type:"application/javascript"}),i=URL.createObjectURL(a);try{let u=await import(i);if(!u.tokenizer||!u.profile)throw new Error("Invalid language module: missing tokenizer or profile");return u}finally{URL.revokeObjectURL(i)}}catch(t){throw new Error(`Failed to load language '${e}' from ${r}: ${t instanceof Error?t.message:String(t)}`)}}async function h0(e,r={}){let{url:t,module:n,skipIfRegistered:a=!0}=r;if(a&&Dt(e))return{code:e,loaded:!1};try{let i;if(n)i=n;else if(t)i=await u3(e,t);else{let u=Hi[e];if(!u)throw new Error(`Unknown language: ${e}. Supported: ${fr.join(", ")}`);i=await u()}return a3(e,i),{code:e,loaded:!0}}catch(i){return{code:e,loaded:!1,error:i instanceof Error?i.message:String(i)}}}async function o3(e,r={}){return Promise.all(e.map(t=>h0(t,r)))}function s3(e){return e in Hi}function l3(){return fr.filter(Dt)}function p3(){return fr.filter(e=>!Dt(e))}vt(),T(),sr();function g0(e,r){try{let t=_e(e,r),n=pe(r);if(n.length===0)return{confidence:0,parseSuccess:!1,error:`No patterns available for language: ${r}`};let a=[...n].sort((l,p)=>p.priority-l.priority),i=a.filter(l=>l.command==="on"),u=$.matchBest(t,i);if(u)return{confidence:u.confidence,parseSuccess:!0,patternId:u.pattern.id,action:u.pattern.command,tokensConsumed:u.consumedTokens};t.reset(t.mark());let o=a.filter(l=>l.command!=="on"),s=$.matchBest(t,o);return s?{confidence:s.confidence,parseSuccess:!0,patternId:s.pattern.id,action:s.pattern.command,tokensConsumed:s.consumedTokens}:{confidence:0,parseSuccess:!1,error:`Could not match any patterns for: ${e}`}}catch(t){return{confidence:0,parseSuccess:!1,error:t instanceof Error?t.message:String(t)}}}function E0(e,r){let t=g0(e,r);if(!t.parseSuccess)return{node:null,confidence:0,error:t.error};try{let{parse:n}=(_i(),L0(_l));return{node:n(e,r),confidence:t.confidence,error:void 0}}catch(n){return{node:null,confidence:t.confidence,error:n instanceof Error?n.message:String(n)}}}function S(e){let r={};return typeof e.start=="number"&&(r.start=e.start),typeof e.end=="number"&&(r.end=e.end),typeof e.line=="number"&&(r.line=e.line),typeof e.column=="number"&&(r.column=e.column),r}function F(e){if(!e)return{type:"literal",value:null};switch(e.type){case"eventHandler":return m3(e);case"command":return c3(e);case"CommandSequence":return f3(e);case"block":return v3(e);case"if":return h3(e);case"literal":return{type:"literal",value:e.value,...S(e)};case"string":return{type:"literal",value:e.value,...S(e)};case"selector":return{type:"selector",value:e.value??e.selector??"",...S(e)};case"contextReference":return{type:"identifier",value:e.name??e.contextType??"",...S(e)};case"identifier":return{type:"identifier",value:e.name??e.value??"",name:e.name??"",...S(e)};case"propertyAccess":return g3(e);case"possessiveExpression":return E3(e);case"memberExpression":return z3(e);case"binaryExpression":return k3(e);case"callExpression":return C3(e);case"unaryExpression":return{type:"unary",operator:e.operator,operand:F(e.operand),...S(e)};case"timeExpression":return{type:"literal",value:e.value,...S(e)};case"templateLiteral":return{type:"literal",value:e.raw??"",...S(e)};case"variable":return{type:"variable",name:e.name??"",scope:e.scope??"local",...S(e)};case"htmlSelector":return{type:"selector",value:e.value??e.selector??"",...S(e)};case"positional":return{type:"positional",position:e.position,...e.target?{target:F(e.target)}:{},...S(e)};case"positionalExpression":return{type:"positional",position:e.operator,...e.argument?{target:F(e.argument)}:{},...S(e)};default:return{type:"literal",value:e.value??null,...S(e)}}}function m3(e){let r=e.event??"click",n=(e.commands??e.body??[]).map(i=>F(i)),a=b3(e);return{type:"event",event:r,modifiers:a,body:n,...S(e)}}function c3(e){let r=e.name;if(r==="if"||r==="unless")return d3(e);if(r==="repeat")return y3(e);let t=(e.args??[]).map(o=>F(o)),n=e.target?F(e.target):void 0,a=e.modifiers?w3(e.modifiers):void 0,i=e.semanticRoles,u=i?A3(i):void 0;return{type:"command",name:r,args:t,...n?{target:n}:{},...a&&Object.keys(a).length>0?{modifiers:a}:{},...u&&Object.keys(u).length>0?{roles:u}:{},...S(e)}}function d3(e){let r=e.args??[],t=r[0]?F(r[0]):{type:"literal",value:!0},n=he(r[1]),a=r[2]?he(r[2]):void 0;return e.name==="unless"&&(t={type:"unary",operator:"not",operand:t}),{type:"if",condition:t,thenBranch:n,...a?{elseBranch:a}:{},...S(e)}}function y3(e){let r=e.args??[];if(r.length===0)return{type:"repeat",body:[],...S(e)};let t=r[0],n=t?.name??t?.value??"forever",a=r[r.length-1];switch(n){case"times":return{type:"repeat",count:r[1]?F(r[1]):void 0,body:he(a),...S(e)};case"for":{let i=r[1]?.value??"item",u=r[2]?F(r[2]):{type:"identifier",value:"[]"};return{type:"foreach",itemName:i,collection:u,body:he(a),...S(e)}}case"while":return{type:"while",condition:r[1]?F(r[1]):{type:"literal",value:!0},body:he(a),...S(e)};case"until":return{type:"while",condition:{type:"unary",operator:"not",operand:r[1]?F(r[1]):{type:"literal",value:!1}},body:he(a),...S(e)};default:return{type:"repeat",body:he(a),...S(e)}}}function f3(e){let r=e.commands??[];return r.length===1?F(r[0]):{type:"event",event:"click",body:r.map(t=>F(t)),...S(e)}}function v3(e){let r=e.commands??[];return r.length===1?F(r[0]):{type:"event",event:"click",body:r.map(t=>F(t)),...S(e)}}function h3(e){let r=e.condition?F(e.condition):{type:"literal",value:!0},t=(e.thenBranch??[]).map(a=>F(a)),n=e.elseBranch?e.elseBranch.map(a=>F(a)):void 0;return{type:"if",condition:r,thenBranch:t,...n?{elseBranch:n}:{},...S(e)}}function g3(e){return{type:"possessive",object:e.object?F(e.object):{type:"identifier",value:"me"},property:e.property??"",...S(e)}}function E3(e){let r=e.object?F(e.object):{type:"identifier",value:"me"},t=typeof e.property=="string"?e.property:e.property?.name??e.property?.value??"";return{type:"possessive",object:r,property:t,...S(e)}}function z3(e){let r=e.object?F(e.object):{type:"identifier",value:"me"},t=typeof e.property=="string"?e.property:e.property?F(e.property):{type:"literal",value:""};return{type:"member",object:r,property:t,computed:e.computed??!1,...S(e)}}function k3(e){return{type:"binary",operator:e.operator??"",left:F(e.left),right:F(e.right),...S(e)}}function C3(e){let r=typeof e.callee=="string"?{type:"identifier",value:e.callee,name:e.callee}:F(e.callee),t=(e.arguments??e.args??[]).map(n=>F(n));return{type:"call",callee:r,args:t,...S(e)}}function A3(e){let r={};for(let[t,n]of Object.entries(e))r[t]=F(n);return r}function w3(e){let r={};for(let[t,n]of Object.entries(e))r[t]=F(n);return r}function b3(e){let r=e.eventModifiers;return{...e.once||r?.once?{once:!0}:{},...e.debounce||r?.debounce?{debounce:e.debounce??r?.debounce}:{},...e.throttle||r?.throttle?{throttle:e.throttle??r?.throttle}:{},...e.prevent||r?.prevent?{prevent:!0}:{},...e.stop||r?.stop?{stop:!0}:{},...e.capture||r?.capture?{capture:!0}:{},...e.passive||r?.passive?{passive:!0}:{},...e.from||r?.from?{from:e.from??r?.from}:e.selector?{from:e.selector}:{}}}function he(e){return e?e.type==="block"?(e.commands??[]).map(r=>F(r)):[F(e)]:[]}function Qi(){return["en","ja","ar","es","ko","zh","tr","pt","fr","de","id","qu","sw"]}var Zi="0.1.0";function x3(e,r){return E0(e,r)}function wt(e){let r=e.getAttribute("data-lang");if(r)return Yi(r);let t=e.getAttribute("data-hyperscript-lang")??e.closest?.("[data-hyperscript-lang]")?.getAttribute("data-hyperscript-lang");if(t)return Yi(t);let n=typeof document<"u"?document.documentElement?.lang:null;return n&&n!=="en"?Yi(n):null}function Yi(e){return e.split("-")[0].toLowerCase()}var k0=.5,D3={confidenceThreshold:k0,strategy:"semantic",fallbackToOriginal:!0};function T3(e,r){return typeof e=="number"?e:e[r]??e["*"]??k0}var Ji=null;function B3(){return Ji||(Ji=Gi()),Ji}function Ie(e,r,t={}){if(r==="en")return e;let n={...D3,...t},a=C0(e,r,n);if(a!==null)return a;let i=S3(e);if(i){let u=C0(i.commands,r,n);if(u!==null)return i.prefix+u}return n.fallbackToOriginal,e}function C0(e,r,t){if(t.strategy==="semantic"||t.strategy==="auto"){let n=T3(t.confidenceThreshold,r),a=A0(e,r,n);if(a!==null)return a}if((t.strategy==="auto"||t.strategy==="i18n")&&t.i18nToEnglish){let n=P3(e,r,t.i18nToEnglish);if(n!==null)return n}return null}var F3=/^(on\s+(?:every\s+)?[\w-]+(?:\[.*?\])?(?:\.[\w-]+(?:\([^)]*\))?)*(?:\s+from\s+\S+)?(?:\s+queue\s+\w+)?\s+)/;function S3(e){let r=e.match(F3);if(!r)return null;let t=r[1],n=e.slice(t.length);return n?{prefix:t,commands:n}:null}function A0(e,r,t){try{let n=L3(e,r);if(n.length>1)return _3(n,r,t);let a=B3();if(!a.supportsLanguage(r))return null;let i=a.analyze(e,r);return Xi(i,t)?i.node?ie(i.node,"en"):$i(e,r,"en"):null}catch{return null}}function P3(e,r,t){try{let n=t(e,r);return n!==e?n:null}catch{return null}}function j3(e){let r=["then"],t=Y(e);if(t?.keywords?.then){let n=t.keywords.then;if(n.primary&&n.primary!=="then"&&r.push(n.primary),n.alternatives)for(let a of n.alternatives)r.includes(a)||r.push(a)}return r}function L3(e,r){let n=j3(r).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),a=new RegExp(`\\s+(?:${n.join("|")})\\s+`,"i"),i=e.split(`
|
|
7
|
-
`)
|
|
1
|
+
"use strict";var HyperscriptI18n=(()=>{var Kr=Object.defineProperty;var mm=Object.getOwnPropertyDescriptor;var dm=Object.getOwnPropertyNames;var fm=Object.prototype.hasOwnProperty;var ym=(e,t)=>{for(var r in t)Kr(e,r,{get:t[r],enumerable:!0})},hm=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dm(t))!fm.call(e,i)&&i!==r&&Kr(e,i,{get:()=>t[i],enumerable:!(n=mm(t,i))||n.enumerable});return e};var vm=e=>hm(Kr({},"__esModule",{value:!0}),e);var _2={};ym(_2,{plugin:()=>Wr,preprocess:()=>ja,preprocessToEnglish:()=>st,resolveLanguage:()=>Xt,semanticVersion:()=>P2,supportedLanguages:()=>L2});function A(e,t){return t?{type:"literal",value:e,dataType:t}:{type:"literal",value:e}}function ce(e,t){return t?{type:"selector",value:e,selectorKind:t}:{type:"selector",value:e}}function re(e){return{type:"reference",value:e}}function ct(e,t){return{type:"property-path",object:e,property:t}}function ne(e){return{type:"expression",raw:e}}function Qt(e,t=!0){return{type:"flag",name:e,enabled:t}}function Z(e,t,r){let n=t instanceof Map?t:new Map(Object.entries(t)),i={kind:"command",action:e,roles:n};return r?{...i,metadata:r}:i}function Ie(e,t,r,n,i){let a=t instanceof Map?t:new Map(Object.entries(t));return{...{kind:"event-handler",action:e,roles:a,body:r},...i&&{eventModifiers:i},...n&&{metadata:n}}}function pt(e,t,r,n,i){let a=t instanceof Map?t:new Map(Object.entries(t));return{...{kind:"conditional",action:e,roles:a,thenBranch:r},...n&&{elseBranch:n},...i&&{metadata:i}}}function Na(e,t="sequential",r){let n={kind:"compound",action:"compound",roles:new Map,statements:e,chainType:t};return r?{...n,metadata:r}:n}function Zt(e){return e.type==="flag"?e.name:"raw"in e&&e.raw!==void 0?String(e.raw):"value"in e&&e.value!==void 0?String(e.value):e.type==="property-path"?`${Zt(e.object)}.${e.property}`:""}function Ia(e,t){let r=e.roles.get(t);return r?Zt(r):""}function Oe(e,t,r,n,i,a,o){let u=t instanceof Map?t:new Map(Object.entries(t));return{...{kind:"loop",action:e,roles:u,loopVariant:r,body:n},...i&&{loopVariable:i},...a&&{indexVariable:a},...o&&{metadata:o}}}function Hr(e,t,r,n){return{kind:"command",action:"try",roles:new Map,body:e,...t&&t.length>0?{catchBranch:t}:{},...r&&r.length>0?{finallyBranch:r}:{},...n?{metadata:n}:{}}}function Oa(e,t,r){return{kind:"command",action:e,roles:new Map,asyncVariant:e,asyncBody:t,...r?{metadata:r}:{}}}function Ma(e,t,r,n){return{kind:"command",action:"match",roles:e instanceof Map?e:new Map(Object.entries(e)),arms:t,...r&&r.length>0?{defaultArm:r}:{},...n?{metadata:n}:{}}}var gm=class{constructor(e){this.namespace=e,this.enabled=this.checkEnabled()}checkEnabled(){if(typeof process<"u"&&process.env){let e=process.env.DEBUG||"";return e==="*"||e.includes("framework:*")||e.includes(`framework:${this.namespace}`)}return!1}log(e,t,...r){if(!this.enabled)return;let n=`[framework:${this.namespace}]`,i=new Date().toISOString();switch(e){case"debug":console.debug(`${i} ${n} DEBUG:`,t,...r);break;case"info":console.info(`${i} ${n} INFO:`,t,...r);break;case"warn":console.warn(`${i} ${n} WARN:`,t,...r);break;case"error":console.error(`${i} ${n} ERROR:`,t,...r);break}}debug(e,...t){this.log("debug",e,...t)}info(e,...t){this.log("info",e,...t)}warn(e,...t){this.log("warn",e,...t)}error(e,...t){this.log("error",e,...t)}isEnabled(){return this.enabled}enable(){this.enabled=!0}disable(){this.enabled=!1}};function Em(e){return new gm(e)}function ke(e,t){return!t||t.length===0||t.includes(e)||t.includes("expression")?!0:e==="property-path"?t.some(r=>["selector","reference","expression"].includes(r)):!1}function zm(e,t){return!t||t.length===0?!0:ke(e.type,t)}function km(e){return e.startsWith(".")||e.startsWith("#")||e.startsWith("<")}function Cm(e){return e.startsWith(".")}function xm(e){return e.startsWith("#")}function wm(e){return e.startsWith("*")}function Am(e){if(e.match(/^(\d+(?:\.\d+)?)(ms|s|m|h)?$/))return!0;let r=parseFloat(e);return!isNaN(r)&&isFinite(r)}function bm(e){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e)}function Dm(e){return e.startsWith(":")}function Tm(e){return new Set(["me","you","it","result","event","target","body"]).has(e.toLowerCase())}function Wa(e,t){return e?.possessive?.keywords?.[t]}function Sm(e,t){return e?.possessive?.keywords?.[t]!==void 0}function Bm(e){return e?.possessive?.keywords??{}}function qa(e){return!1}var mt=class We{constructor(){this.logger=Em("pattern-matcher"),this.stemMatchCount=0,this.totalKeywordMatches=0}safeToLowerCase(t){return typeof t=="string"?t.toLowerCase():t==null?"":String(t).toLowerCase()}matchPattern(t,r,n){let i=t.mark(),a=new Map;if(this.logger.debug("========================================"),this.logger.debug("matchPattern ENTRY"),this.logger.debug("Pattern ID:",r.id),this.logger.debug("Pattern command:",r.command),this.logger.debug("Pattern language:",r.language),this.logger.debug("Pattern template:",JSON.stringify(r.template,null,2)),this.logger.isEnabled()){let s=[];for(let l=0;l<10;l++){let c=t.peek(l);if(c)s.push({type:c.type,value:c.value,kind:c.kind});else break}this.logger.debug("Input tokens (first 10):",s),this.logger.debug("Profile code:",n?.code)}this.currentProfile=n,this.stemMatchCount=0,this.totalKeywordMatches=0,this.logger.debug("--- Calling matchTokenSequence ---"),this.logger.debug("Pattern tokens to match:",JSON.stringify(r.template.tokens,null,2));let o=this.matchTokenSequence(t,r.template.tokens,a);if(this.logger.debug("matchTokenSequence returned:",o),this.logger.debug("Captured roles:",Array.from(a.entries()).map(([s,l])=>[s,JSON.stringify(l)])),!o)return this.logger.debug(">>> MATCH FAILED - resetting token position"),t.reset(i),null;let u=this.calculateConfidence(r,a);return this.applyExtractionRules(r,a),{pattern:r,captured:a,consumedTokens:t.position()-i.position,confidence:u}}matchBest(t,r,n){let i=[];for(let o of r){let u=t.mark(),s=this.matchPattern(t,o,n);s&&i.push(s),t.reset(u)}if(i.length===0)return null;i.sort((o,u)=>{let s=u.pattern.priority-o.pattern.priority;if(s!==0)return s;let l=u.confidence-o.confidence;return Math.abs(l)>.001?l:u.consumedTokens-o.consumedTokens});let a=i[0];return this.matchPattern(t,a.pattern),a}matchTokenSequence(t,r,n,i){let a=r[0],o=a?.type==="literal"&&(a.value==="and"||a.value==="then"||a.alternatives?.includes("and")||a.alternatives?.includes("then"));if(this.currentProfile?.code==="ar"&&!o)for(;t.peek()?.kind==="conjunction";)t.advance();let u=null,s=null;for(let l=0;l<r.length;l++){let c=r[l];this.logger.debug(" >> Matching pattern token:",JSON.stringify(c,null,2));let p=t.peek();if(this.logger.debug(" >> Current input token:",p?JSON.stringify({type:p.type,value:p.value,kind:p.kind}):"EOF"),c.type==="role"&&c.greedy){let E=this.collectStopMarkers(r,l+1);if(i)for(let b of i)E.add(b);let C=[];for(;!t.isAtEnd();){let b=t.peek();if(!b||this.isStopMarker(b,E))break;C.push(b.value),t.advance()}if(C.length>0){n.set(c.role,{type:"expression",raw:C.join(" ")}),u=null,s=null;continue}else{if(c.optional)continue;return!1}}if(c.type==="group"){let E=this.collectStopMarkers(r,l+1);if(i)for(let b of i)E.add(b);if(this.matchGroupToken(t,c,n,E)){u=null,s=null;continue}if(this.isOptional(c))continue;return!1}let m=c.type==="role"&&c.optional===!0,d=m?t.mark():null;if(c.type==="role"&&!m){let E=l+1<r.length?r[l+1]:null;if(E?.type==="literal"){let C=t.peek();if(C&&this.getMatchType(C,E.value)!=="none"){if(this.logger.debug(" >> MARKER-STEAL GUARD: current token matches next literal, skipping role"),this.logger.debug(" >> Token match FAILED"),this.isOptional(c))continue;if(u&&s){this.logger.debug(" >> BACKTRACKING: undoing optional role",s),t.reset(u),n.delete(s),u=null,s=null;let b=this.matchPatternToken(t,c,n);if(this.logger.debug(" >> Backtrack retry result:",b),b)continue}return!1}}}let y=this.matchPatternToken(t,c,n);if(this.logger.debug(" >> Match result:",y),y){m?(u=d,s=c.role):(u=null,s=null);continue}if(this.logger.debug(" >> Token match FAILED"),!this.isOptional(c)){if(u&&s){this.logger.debug(" >> BACKTRACKING: undoing optional role",s),t.reset(u),n.delete(s),u=null,s=null;let E=this.matchPatternToken(t,c,n);if(this.logger.debug(" >> Backtrack retry result:",E),E)continue}return!1}}return!0}matchPatternToken(t,r,n){switch(r.type){case"literal":return this.matchLiteralToken(t,r);case"role":return this.matchRoleToken(t,r,n);case"group":return this.matchGroupToken(t,r,n);default:return!1}}matchLiteralToken(t,r){let n=t.peek();if(this.logger.debug(" >>> matchLiteralToken: expecting",r.value),this.logger.debug(" >>> matchLiteralToken: got token",n?JSON.stringify({type:n.type,value:n.value,kind:n.kind}):"null"),!n)return this.logger.debug(" >>> matchLiteralToken: FAIL - no token"),!1;let i=this.getMatchType(n,r.value);if(this.logger.debug(" >>> matchType for",n.value,"vs",r.value,":",i),i!=="none")return this.totalKeywordMatches++,i==="stem"&&this.stemMatchCount++,t.advance(),!0;if(r.alternatives)for(let a of r.alternatives){let o=this.getMatchType(n,a);if(o!=="none")return this.totalKeywordMatches++,o==="stem"&&this.stemMatchCount++,t.advance(),!0}return!1}matchRoleToken(t,r,n){this.logger.debug(" >>> matchRoleToken ENTRY: capturing role",r.role),this.logger.debug(" >>> matchRoleToken: expected types",r.expectedTypes),this.logger.debug(" >>> matchRoleToken: optional?",r.optional),this.skipNoiseWords(t);let i=t.peek();if(this.logger.debug(" >>> After skipNoiseWords, current token:",i?JSON.stringify({value:i.value,kind:i.kind}):"null"),!i)return r.optional||!1;let a=this.tryMatchPossessiveExpression(t);if(a)return r.expectedTypes&&r.expectedTypes.length>0&&!ke(a.type,r.expectedTypes)?r.optional||!1:(n.set(r.role,a),!0);let o=this.tryMatchMethodCallExpression(t);if(o)return r.expectedTypes&&r.expectedTypes.length>0&&!ke(o.type,r.expectedTypes)?r.optional||!1:(n.set(r.role,o),!0);let u=this.tryMatchPossessiveSelectorExpression(t);if(u)return r.expectedTypes&&r.expectedTypes.length>0&&!ke(u.type,r.expectedTypes)?r.optional||!1:(n.set(r.role,u),!0);let s=this.tryMatchPropertyAccessExpression(t);if(s)return r.expectedTypes&&r.expectedTypes.length>0&&!ke(s.type,r.expectedTypes)?r.optional||!1:(n.set(r.role,s),!0);let l=this.tryMatchSelectorPropertyExpression(t);if(l)return r.expectedTypes&&r.expectedTypes.length>0&&!ke(l.type,r.expectedTypes)?r.optional||!1:(n.set(r.role,l),!0);this.logger.debug(" >>> Trying tokenToSemanticValue for token:",i?JSON.stringify({value:i.value,kind:i.kind}):"null");let c=this.tokenToSemanticValue(i);return this.logger.debug(" >>> tokenToSemanticValue returned:",c?JSON.stringify(c):"null"),c?(this.logger.debug(" >>> Validating type:",c.type,"against expected:",r.expectedTypes),r.expectedTypes&&r.expectedTypes.length>0&&!ke(c.type,r.expectedTypes)?(this.logger.debug(" >>> TYPE MISMATCH - returning",r.optional||!1),r.optional||!1):(this.logger.debug(" >>> Type validation PASSED"),n.set(r.role,c),t.advance(),!0)):r.optional||!1}tryMatchPossessiveExpression(t){let r=t.peek();if(!r||!this.currentProfile)return null;let n=r.normalized||r.value,i=this.safeToLowerCase(n),a=Wa(this.currentProfile,i);if(!a)return null;let o=t.mark();t.advance();let u=t.peek();if(!u)return t.reset(o),null;if(u.kind==="identifier"||u.kind==="keyword"&&!this.isStructuralKeyword(u.value)||u.kind==="selector"&&u.value.startsWith("*")||u.kind==="selector"&&u.value.startsWith("@")||u.kind==="selector"&&u.value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(u.value)){t.advance();let s=u.value;u.kind==="selector"&&s.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(s)&&(s=s.substring(1));let l=s;for(;t.peek()?.kind==="selector"&&t.peek().value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(t.peek().value);)l+=t.peek().value,t.advance();let c=t.peek();return c?.kind==="literal"&&c.value.startsWith("(")&&(l+=c.value,t.advance()),ct(re(a),l)}return t.reset(o),null}isStructuralKeyword(t){return new Set(["into","in","to","from","at","by","with","without","before","after","of","as","on","then","end","else","if","repeat","while","for","toggle","add","remove","put","set","show","hide","increment","decrement","send","trigger","call"]).has(t.toLowerCase())}tryMatchMethodCallExpression(t){let r=t.peek();if(!r||r.kind!=="selector")return null;let n=t.mark();t.advance();let i=t.peek();if(!i||i.kind!=="operator"||i.value!==".")return t.reset(n),null;t.advance();let a=t.peek();if(!a||a.kind!=="identifier")return t.reset(n),null;t.advance();let o=t.peek();if(!o||o.kind!=="punctuation"||o.value!=="(")return t.reset(n),null;t.advance();let u=[];for(;!t.isAtEnd()&&u.length<We.MAX_METHOD_ARGS;){let l=t.peek();if(!l)break;if(l.kind==="punctuation"&&l.value===")"){t.advance();break}if(l.kind==="punctuation"&&l.value===","){t.advance();continue}u.push(l.value),t.advance()}return{type:"expression",raw:`${r.value}.${a.value}(${u.join(", ")})`}}tryMatchPropertyAccessExpression(t){let r=t.peek();if(!r||r.kind!=="identifier"&&r.kind!=="keyword")return null;let n=t.mark();t.advance();let i=t.peek();if(!i||i.kind!=="operator"||i.value!==".")return t.reset(n),null;t.advance();let a=t.peek();if(!a||a.kind!=="identifier")return t.reset(n),null;t.advance();let o=`${r.value}.${a.value}`,u=1;for(;!t.isAtEnd()&&u<We.MAX_PROPERTY_DEPTH;){let l=t.peek();if(!l||l.kind!=="operator"||l.value!==".")break;t.advance();let c=t.peek();if(!c||c.kind!=="identifier")break;t.advance(),o+=`.${c.value}`,u++}let s=t.peek();if(s&&s.kind==="punctuation"&&s.value==="("){t.advance();let l=[],c=0;for(;!t.isAtEnd()&&l.length<We.MAX_METHOD_ARGS;){let m=t.peek();if(!m)break;if(m.kind==="punctuation"&&m.value===")"){if(c===0){t.advance();break}c--}if(m.kind==="punctuation"&&m.value==="("&&c++,m.kind==="punctuation"&&m.value===","){t.advance();continue}l.push(m.value),t.advance()}return{type:"expression",raw:`${o}(${l.join(", ")})`}}return{type:"expression",raw:o}}tryMatchPossessiveSelectorExpression(t){let r=t.peek();if(!r||r.kind!=="selector")return null;let n=t.mark();t.advance();let i=t.peek();if(!i||i.kind!=="punctuation"||i.value!=="'s")return t.reset(n),null;t.advance();let a=t.peek();return!a||a.kind!=="selector"&&a.kind!=="identifier"?(t.reset(n),null):(t.advance(),ct(ce(r.value),a.value))}tryMatchSelectorPropertyExpression(t){let r=t.peek();if(!r||r.kind!=="selector"||typeof r.value!="string"||!r.value.startsWith("#"))return null;let n=t.mark();t.advance();let i=t.peek();if(!i||i.kind!=="selector"||!i.value.startsWith("."))return t.reset(n),null;let a=t.peek(1);a&&a.kind,t.advance();let o=i.value.slice(1);return ct(ce(r.value),o)}matchGroupToken(t,r,n,i){let a=t.mark(),o=new Set(n.keys());if(this.matchTokenSequence(t,r.tokens,n,i))return!0;t.reset(a);for(let l of n.keys())o.has(l)||n.delete(l);if(!r.optional)return!1;let s=this.getGroupLeadingMarker(r);if(s)for(let l=1;l<=We.MAX_MARKER_SCAN;l++){let c=t.peek(l);if(!c)break;if((c.normalized||c.value).toLowerCase()===s){this.logger.debug(" >> MARKER SCAN: found",s,"at offset",l,"- skipping intervening tokens");for(let d=0;d<l;d++)t.advance();if(this.matchTokenSequence(t,r.tokens,n,i))return!0;t.reset(a);for(let d of n.keys())o.has(d)||n.delete(d);break}}return!0}getGroupLeadingMarker(t){let r=t.tokens[0];return r?.type==="literal"?r.value.toLowerCase():null}getMatchType(t,r){return t.value===r?"exact":t.normalized===r?"normalized":t.stem===r&&t.stemConfidence!==void 0&&t.stemConfidence>=.7?"stem":t.kind==="keyword"&&this.safeToLowerCase(t.value)===r.toLowerCase()?"case-insensitive":"none"}collectStopMarkers(t,r){let n=new Set;for(let i=r;i<t.length;i++){let a=t[i];if(a.type==="literal"){if(n.add(a.value.toLowerCase()),a.alternatives)for(let o of a.alternatives)n.add(o.toLowerCase());break}if(a.type==="group"){for(let o of a.tokens)if(o.type==="literal"){if(n.add(o.value.toLowerCase()),o.alternatives)for(let u of o.alternatives)n.add(u.toLowerCase());break}if(!a.optional)break}}return n}isStopMarker(t,r){return r.size===0?!1:!!(r.has(t.value.toLowerCase())||t.normalized&&r.has(t.normalized.toLowerCase()))}tokenToSemanticValue(t){switch(t.kind){case"selector":return ce(t.value);case"literal":return this.parseLiteralValue(t.value);case"keyword":let r=t.normalized||t.value,n=this.safeToLowerCase(r);return qa(n)?re(n):A(t.normalized||t.value);case"identifier":if(typeof t.value=="string"&&t.value.startsWith(":"))return re(t.value);let i=this.safeToLowerCase(t.value);return qa(i)?re(i):{type:"expression",raw:t.value};case"url":return A(t.value,"string");default:return null}}parseLiteralValue(t){if(t.startsWith('"')||t.startsWith("'")||t.startsWith("`")||t.startsWith("\u300C")){let i=t.slice(1,-1);return A(i,"string")}if(t==="true")return A(!0,"boolean");if(t==="false")return A(!1,"boolean");let r=t.match(/^(\d+(?:\.\d+)?)(ms|s|m|h)?$/);if(r){let i=parseFloat(r[1]);return r[2]?A(t,"duration"):A(i,"number")}let n=parseFloat(t);return isNaN(n)?A(t,"string"):A(n,"number")}applyExtractionRules(t,r){for(let[n,i]of Object.entries(t.extraction))r.has(n)||(i.value!==void 0?r.set(n,{type:"literal",value:i.value}):i.default&&r.set(n,i.default))}isOptional(t){return t.type!=="literal"&&t.optional===!0}calculateConfidence(t,r){let n=0,i=0,a=l=>t.extraction?.[l]?.default!==void 0;for(let l of t.template.tokens)if(l.type==="role")i+=1,r.has(l.role)&&(n+=1);else if(l.type==="group"){for(let c of l.tokens)if(c.type==="role"){let p=a(c.role),m=.8;i+=m,r.has(c.role)?n+=m:p&&(n+=m*.6)}}let o=i>0?n/i:1;if(this.stemMatchCount>0&&this.totalKeywordMatches>0){let l=this.stemMatchCount/this.totalKeywordMatches*.15;o=Math.max(.5,o-l)}let u=this.calculateVSOConfidenceBoost(t);o=Math.min(1,o+u);let s=this.arabicPrepositionDisambiguation(t,r);return o=Math.max(0,Math.min(1,o+s)),o}calculateVSOConfidenceBoost(t){if(t.language!=="ar")return 0;let r=t.template.tokens[0];if(!r||r.type!=="literal")return 0;let n=new Set(["\u0628\u062F\u0644","\u063A\u064A\u0631","\u0623\u0636\u0641","\u0623\u0632\u0644","\u0636\u0639","\u0627\u062C\u0639\u0644","\u0639\u064A\u0646","\u0632\u062F","\u0627\u0646\u0642\u0635","\u0633\u062C\u0644","\u0623\u0638\u0647\u0631","\u0623\u062E\u0641","\u0634\u063A\u0644","\u0623\u0631\u0633\u0644","\u0631\u0643\u0632","\u0634\u0648\u0634","\u062A\u0648\u0642\u0641","\u0627\u0646\u0633\u062E","\u0627\u062D\u0630\u0641","\u0627\u0635\u0646\u0639","\u0627\u0646\u062A\u0638\u0631","\u0627\u0646\u062A\u0642\u0627\u0644","\u0623\u0648"]);if(n.has(r.value))return .15;if(r.alternatives){for(let i of r.alternatives)if(n.has(i))return .15}return 0}arabicPrepositionDisambiguation(t,r){if(t.language!=="ar")return 0;let n=0,i={patient:["\u0639\u0644\u0649"],destination:["\u0625\u0644\u0649","\u0627\u0644\u0649"],source:["\u0645\u0646"],agent:["\u0645\u0646"],manner:["\u0628"],style:["\u0628"],goal:["\u0625\u0644\u0649","\u0627\u0644\u0649"],method:["\u0628"]};for(let[a,o]of r.entries()){let u=i[a];if(!u||u.length===0)continue;let s="metadata"in o?o.metadata:void 0;if(s&&typeof s.prepositionValue=="string"){let l=s.prepositionValue;u.includes(l)?n+=.1:n-=.1}}return Math.max(-.1,Math.min(.1,n))}skipNoiseWords(t){let r=t.peek();if(!r)return;let n=this.safeToLowerCase(r.value);if(We.ENGLISH_NOISE_WORDS.has(n)){let i=t.mark();t.advance();let a=t.peek();if(a&&a.kind==="selector")return;t.reset(i)}n==="class"&&t.advance()}extractEventModifiers(t){let r={},n=!1;for(;!t.isAtEnd();){let i=t.peek();if(!i||i.kind!=="event-modifier")break;let a=i.metadata;if(!a)break;switch(n=!0,a.modifierName){case"once":r.once=!0;break;case"debounce":typeof a.value=="number"&&(r.debounce=a.value);break;case"throttle":typeof a.value=="number"&&(r.throttle=a.value);break;case"queue":(a.value==="first"||a.value==="last"||a.value==="all"||a.value==="none")&&(r.queue=a.value);break}t.advance()}return n?r:void 0}};mt.MAX_MARKER_SCAN=3,mt.MAX_PROPERTY_DEPTH=10,mt.MAX_METHOD_ARGS=20,mt.ENGLISH_NOISE_WORDS=new Set(["the","a","an"]);var Gr=mt,Ur=new Gr;function Fm(e,t){return Ur.matchPattern(e,t)}function Pm(e,t){return Ur.matchBest(e,t)}var $a={basePriority:100,includeOptionalVariants:!0};function Xr(e,t,r=$a){let n=`${e.action}-${t.code}-generated`,i=r.basePriority??100,a=t.keywords[e.action];if(!a)throw new Error(`No keyword translation for '${e.action}' in ${t.code}`);let o=Lm(e,t,a.primary,a.alternatives),u=_m(e,t),s=Rm(e,t,a.primary);return{id:n,language:t.code,command:e.action,priority:i,template:{format:s,tokens:o},extraction:u}}function Lm(e,t,r,n){let i=[],a={type:"literal",value:r,...n?.length&&{alternatives:n}},o=jm(e.roles,t.wordOrder);if(t.wordOrder==="SVO"){i.push(a);for(let u of o)er(i,u,t)}else if(t.wordOrder==="SOV"){for(let u of o)er(i,u,t);i.push(a)}else if(t.wordOrder==="VSO"){i.push(a);for(let u of o)er(i,u,t)}else{i.push(a);for(let u of o)er(i,u,t)}return i}function er(e,t,r){let n=Yr(t,r),i=!t.required,a={type:"role",role:t.role,optional:i,expectedTypes:t.expectedTypes,...t.greedy&&{greedy:!0}};if(n){let o=r.roleMarkers?.[t.role],u=r.wordOrder==="SOV"?"after":"before",s=t.markerPosition??o?.position??u;i?s==="before"?e.push({type:"group",optional:!0,tokens:[{type:"literal",value:n},a]}):e.push({type:"group",optional:!0,tokens:[a,{type:"literal",value:n}]}):s==="before"?(e.push({type:"literal",value:n}),e.push(a)):(e.push(a),e.push({type:"literal",value:n}))}else e.push(a)}function Yr(e,t){return e.markerOverride?.[t.code]?e.markerOverride[t.code]:t.roleMarkers?.[e.role]?.primary}function jm(e,t){let r=[...e];return t==="SVO"?r.sort((n,i)=>(i.svoPosition??0)-(n.svoPosition??0)):t==="SOV"&&r.sort((n,i)=>(i.sovPosition??0)-(n.sovPosition??0)),r}function _m(e,t){let r={};for(let n of e.roles){let i=Yr(n,t),a={...n.default!==void 0&&{default:n.default},...i&&{marker:i}};r[n.role]=a}return r}function Rm(e,t,r){let n=[];(t.wordOrder==="SVO"||t.wordOrder==="VSO")&&n.push(r);for(let i of e.roles){let a=Yr(i,t),o=`{${i.role}}`;a?t.roleMarkers?.[i.role]?.position==="after"?n.push(`${o} ${a}`):n.push(`${a} ${o}`):n.push(o)}return t.wordOrder==="SOV"&&n.push(r),n.join(" ")}function Nm(e,t,r=$a){let n=[];return n.push(Xr(e,t,r)),n}function Va(e,t){let r=[],n=new Set;for(let i of t){let a=e.get(i);a&&(r.push(a),n.add(i))}for(let[i,a]of e)n.has(i)||r.push(a);return r}function Ka(e,t,r){let n=[];for(let i of e){let a=t.find(o=>o.role===i.role);a?r==="preposition"?(a.form&&n.push(a.form),n.push(i.translated||i.value)):r==="postposition"?(n.push(i.translated||i.value),a.form&&n.push(a.form)):n.push(i.translated||i.value):n.push(i.translated||i.value)}return n}function Ha(e){if(e.length===0)return"";let t="";for(let r=0;r<e.length;r++){let n=e[r],i=e[r+1],a=n.endsWith("-"),o=n.startsWith("-"),u=n;if(a&&(u=n.slice(0,-1)),o&&(u=n.substring(1)),t+=u,i){let s=i.startsWith("-");!a&&!s&&(t+=" ")}}return t}var Ga=class{constructor(e){this.dictionary=e.dictionary,this.profileProvider=e.profileProvider}transform(e,t,r){let n=this.profileProvider.getProfile(t),i=this.profileProvider.getProfile(r);if(!n)throw new Error(`No profile found for language: ${t}`);if(!i)throw new Error(`No profile found for language: ${r}`);let a=this.parseStatement(e,t,n),o=this.translateRoles(a,t,r),u=Va(o,i.canonicalOrder),s=Ka(u,i.markers,i.adpositionType);return Ha(s)}parseStatement(e,t,r){let n=new Map,i=e.split(/\s+/),a=0;for(;a<i.length;){let o=i[a],u=r.markers.find(s=>s.form===o);if(u)a+1<i.length?(n.set(u.role,i[a+1]),a+=2):a++;else{let s=this.dictionary.lookup(o,t);s?n.set("action",s):(o.startsWith("#")||o.startsWith("."),n.set("patient",o)),a++}}return n}translateRoles(e,t,r){let n=new Map;for(let[i,a]of e){let o=this.dictionary.translate(a,r);n.set(i,{role:i,value:a,translated:o??a})}return n}},Ua=class{constructor(e){this.translations=e}lookup(e,t){let r=this.translations[t];if(!r)return;let n=e.toLowerCase();for(let[i,a]of Object.entries(r))if(a.toLowerCase()===n)return i}translate(e,t){return this.translations[t]?.[e]}getAllTranslations(e,t){let r=this.lookup(e,t);if(!r)return{};let n={};for(let[i,a]of Object.entries(this.translations)){let o=a[r];o&&(n[i]=o)}return n}},Im=class{lookup(e,t){return e}translate(e,t){return e}getAllTranslations(e,t){return{en:e}}},Xa=class{constructor(e){this.profiles=e}getProfile(e){return this.profiles[e]}getSupportedLanguages(){return Object.keys(this.profiles)}hasLanguage(e){return e in this.profiles}},Om=class{getProfile(e){}getSupportedLanguages(){return[]}hasLanguage(e){return!1}},L=class{constructor(){this.name="string-literal"}canExtract(e,t){let r=e[t];return r==='"'||r==="'"||r==="`"||r==="\u201C"||r==="\u2018"}extract(e,t){let r=e[t];if(r==="\u201C"){let a=1;for(;t+a<e.length;){if(e[t+a]==="\u201D")return a++,{value:e.substring(t,t+a),length:a};a++}return null}if(r==="\u2018"){let a=1;for(;t+a<e.length;){if(e[t+a]==="\u2019")return a++,{value:e.substring(t,t+a),length:a};a++}return null}let n=1,i=!1;for(;t+n<e.length;){let a=e[t+n];if(i){i=!1,n++;continue}if(a==="\\"){i=!0,n++;continue}if(a===r)return n++,{value:e.substring(t,t+n),length:n};n++}return null}},P=class{constructor(){this.name="number"}canExtract(e,t){return/\d/.test(e[t])}extract(e,t){let r=0,n=!1;for(;t+r<e.length;){let o=e[t+r];if(/\d/.test(o))r++;else if(o==="."&&!n)n=!0,r++;else break}if(r===0)return null;let i=e.substring(t,t+r),a=t+r;if(a<e.length){let o=e.slice(a),u=[{pattern:"\u6BEB\u79D2",suffix:"ms"},{pattern:"\u5206\u949F",suffix:"m"},{pattern:"\u5C0F\u65F6",suffix:"h"},{pattern:"\u30DF\u30EA\u79D2",suffix:"ms"},{pattern:"\u6642\u9593",suffix:"h"}];for(let l of u)if(o.startsWith(l.pattern))return{value:i+l.suffix,length:r+l.pattern.length,metadata:{hasTimeUnit:!0}};if(o.startsWith("ms"))return{value:i+"ms",length:r+2,metadata:{hasTimeUnit:!0}};let s=[{pattern:"\u79D2",suffix:"s"},{pattern:"\u5206",suffix:"m"}];for(let l of s)if(o.startsWith(l.pattern))return{value:i+l.suffix,length:r+1,metadata:{hasTimeUnit:!0}};if(/^[smh](?![a-zA-Z])/.test(o))return{value:i+o[0],length:r+1,metadata:{hasTimeUnit:!0}}}return{value:i,length:r}}},ft=class{constructor(){this.name="identifier"}canExtract(e,t){return/[a-zA-Z_]/.test(e[t])}extract(e,t){let r=0;for(;t+r<e.length;){let n=e[t+r];if(/[a-zA-Z0-9_]/.test(n))r++;else break}return r>0?{value:e.substring(t,t+r),length:r}:null}},Ya=class{constructor(){this.name="unicode-identifier"}canExtract(e,t){return e.charCodeAt(t)<128?!1:/\p{L}/u.test(e[t])}extract(e,t){let r=0;for(;t+r<e.length;){let n=e[t+r];if(/[\p{L}\p{N}\p{M}]/u.test(n))r++;else break}return r>0?{value:e.substring(t,t+r),length:r}:null}},Mm=class{constructor(){this.name="whitespace"}canExtract(e,t){return/\s/.test(e[t])}extract(e,t){let r=0;for(;t+r<e.length&&/\s/.test(e[t+r]);)r++;return r>0?{value:e.substring(t,t+r),length:r}:null}};function rr(e){return"setContext"in e&&typeof e.setContext=="function"}function nr(e){let t={language:e.language,direction:e.direction,lookupKeyword:e.lookupKeyword.bind(e),isKeyword:e.isKeyword.bind(e),isKeywordStart:e.isKeywordStart.bind(e)};return e.normalizer?{...t,normalizer:e.normalizer}:t}var dt=new Set(["me","you","it","result","event","target","body"]);function ir(e,t=dt){return t.has(e)}var Ja=new Set(["body","then","else","condition","loop-body","variable","catch","finally"]);function Wm(e){let t=e.slice(1,-1),r=0;for(let n of t)if(n==="[")r++;else if(n==="]")r--;else if(r===0&&(n===" "||n===":"))return!0;return!1}function qe(e,t={}){let r=e.trim();if(!r.startsWith("[")||!r.endsWith("]"))throw new Error("Explicit syntax must be wrapped in brackets: [command role:value ...]");let n=r.slice(1,-1).trim();if(!n)throw new Error("Empty explicit statement");let i=$m(n);if(i.length===0)throw new Error("No command specified in explicit statement");let a=i[0].toLowerCase(),o=new Map,u=t.referenceSet??dt,s=t.schemaLookup?.getSchema(a),l=s?new Set(s.roles.map(c=>c.role)):null;for(let c=1;c<i.length;c++){let p=i[c];if(p.startsWith("+")||p.startsWith("~")){let C=p.startsWith("+"),b=p.slice(1);if(!b)throw new Error(`Empty flag name: "${p}"`);if(l&&!l.has(b)){let ge=[...l].join(", ");throw new Error(`Unknown flag "${b}" for command "${a}". Valid roles: ${ge}`)}o.set(b,Qt(b,C));continue}let m=p.indexOf(":");if(m===-1)throw new Error(`Invalid role format: "${p}". Expected role:value or +flag`);let d=p.slice(0,m);if(l&&!Ja.has(d)&&!l.has(d)){let C=[...l].join(", ");throw new Error(`Unknown role "${d}" for command "${a}". Valid roles: ${C}`)}let f=d,y=p.slice(m+1);if(Ja.has(d)&&y.startsWith("[")&&Wm(y)){let C=Km(p,m+1),b=p.slice(m+1,C+1);o.set(f,{type:"expression",raw:b});continue}let E=Vm(y,u);o.set(f,E)}if(s&&a!=="on"){for(let c of s.roles)if(c.required&&!o.has(c.role)&&!c.default)throw new Error(`Missing required role "${c.role}" for command "${a}": ${c.description}`)}switch(a){case"on":{if(!o.get("event"))throw new Error("Event handler requires event role: [on event:click ...]");let p=tr(o,"body",t);return o.delete("body"),Ie("on",o,p,{sourceLanguage:"explicit"})}case"if":{let c=tr(o,"then",t),p=tr(o,"else",t);return o.delete("then"),o.delete("else"),pt(a,o,c,p.length>0?p:void 0,{sourceLanguage:"explicit"})}case"repeat":{let c=tr(o,"loop-body",t),p=o.get("loop-variant"),m=o.get("variable"),d=o.get("index-variable");o.delete("loop-body"),o.delete("loop-variant"),o.delete("variable"),o.delete("index-variable");let f;p&&p.type==="literal"&&typeof p.value=="string"?f=p.value:o.has("quantity")?f="times":o.has("source")?f="for":o.has("condition")?f="while":f="forever";let y=m?.type==="literal"&&typeof m.value=="string"?m.value:m?.type==="expression"?m.raw:void 0,E=d?.type==="literal"&&typeof d.value=="string"?d.value:void 0;return Oe(a,o,f,c,y,E,{sourceLanguage:"explicit"})}default:return Z(a,o,{sourceLanguage:"explicit"})}}function fe(e){let t=e.trim();return t.startsWith("[")&&t.endsWith("]")}function tr(e,t,r){let n=e.get(t);return n?n.type==="expression"?[qe(n.raw,r)]:[]:[]}function qm(e){if(e){if(e.startsWith("#"))return"id";if(e.startsWith("."))return"class";if(e.startsWith("["))return"attribute";if(e.startsWith("<")||e.startsWith("*"))return"element";if(/[>+~ ]/.test(e)&&e.length>1)return"complex"}}function $m(e){let t=[],r="",n=!1,i="",a=0;for(let o=0;o<e.length;o++){let u=e[o];if(n){r+=u,u===i&&e[o-1]!=="\\"&&(n=!1);continue}if(u==='"'||u==="'"){n=!0,i=u,r+=u;continue}if(u==="["){a++,r+=u;continue}if(u==="]"){a--,r+=u;continue}if(u===" "&&a===0){r&&(t.push(r),r="");continue}r+=u}return r&&t.push(r),t}function Vm(e,t){if(e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("@")||e.startsWith("*"))return ce(e,qm(e));if(e.startsWith('"')||e.startsWith("'")){let i=e.slice(1,-1);return A(i,"string")}if(e==="true")return A(!0,"boolean");if(e==="false")return A(!1,"boolean");let r=e.toLowerCase();if(ir(r,t))return re(r);let n=e.match(/^(-?\d+(?:\.\d+)?)(ms|s|m|h)?$/);if(n){let i=parseFloat(n[1]);return n[2]?A(e,"duration"):A(i,"number")}return A(e)}function Km(e,t){let r=0;for(let n=t;n<e.length;n++)if(e[n]==="[")r++;else if(e[n]==="]"&&(r--,r===0))return n;return e.length-1}function K(e){if(e.kind==="compound"){let r=e;return r.statements.map(i=>K(i)).join(` ${r.chainType} `)}let t=[e.action];for(let[r,n]of e.roles)n.type==="flag"?t.push(n.enabled?`+${n.name}`:`~${n.name}`):t.push(`${r}:${Qa(n)}`);if(e.kind==="event-handler"){let r=e;if(r.body&&r.body.length>0){let n=r.body.map(i=>K(i));t.push(`body:${n.join(" ")}`)}}if(e.kind==="conditional"){let r=e;if(r.thenBranch&&r.thenBranch.length>0){let n=r.thenBranch.map(i=>K(i));t.push(`then:${n.join(" ")}`)}if(r.elseBranch&&r.elseBranch.length>0){let n=r.elseBranch.map(i=>K(i));t.push(`else:${n.join(" ")}`)}}if(e.kind==="loop"){let r=e;if(r.loopVariant&&t.push(`loop-variant:${r.loopVariant}`),r.loopVariable&&t.push(`variable:${r.loopVariable}`),r.indexVariable&&t.push(`index-variable:${r.indexVariable}`),r.body&&r.body.length>0){let n=r.body.map(i=>K(i));t.push(`loop-body:${n.join(" ")}`)}}if(e.kind==="command"){let r=e;if(r.body&&r.body.length>0){let n=r.body.map(i=>K(i));t.push(`body:${n.join(" ")}`)}if(r.catchBranch&&r.catchBranch.length>0){let n=r.catchBranch.map(i=>K(i));t.push(`catch:${n.join(" ")}`)}if(r.finallyBranch&&r.finallyBranch.length>0){let n=r.finallyBranch.map(i=>K(i));t.push(`finally:${n.join(" ")}`)}if(r.asyncVariant&&t.push(`async-variant:${r.asyncVariant}`),r.asyncBody&&r.asyncBody.length>0){let n=r.asyncBody.map(i=>K(i));t.push(`async-body:${n.join(" ")}`)}}return`[${t.join(" ")}]`}function Qa(e){switch(e.type){case"literal":return typeof e.value=="string"?e.dataType==="string"||/\s/.test(e.value)?`"${e.value}"`:e.value:String(e.value);case"selector":return e.value;case"reference":return e.value;case"property-path":return`${Qa(e.object)}'s ${e.property}`;case"expression":return e.raw;case"flag":return e.name}}var Hm=new Set(["selector","literal","reference","expression","property-path","flag"]);function Gm(e){let t=[];if(!e.action||typeof e.action!="string")return t.push({severity:"error",code:"INVALID_ACTION",message:'Field "action" is required and must be a string.',suggestion:'Provide a command name like "toggle", "add", "set", etc.'}),t;if(e.roles&&typeof e.roles=="object")for(let[r,n]of Object.entries(e.roles)){if(!n||typeof n!="object"){t.push({severity:"error",code:"INVALID_ROLE_VALUE",message:`Role "${r}" must be an object with "type" and "value" fields.`,suggestion:'Use: { "type": "selector", "value": ".active" }'});continue}let i=n;Hm.has(i.type)||t.push({severity:"error",code:"INVALID_VALUE_TYPE",message:`Role "${r}" has invalid type "${i.type}".`,suggestion:"Valid types: selector, literal, reference, expression, property-path."}),(i.value===void 0||i.value===null)&&t.push({severity:"error",code:"MISSING_VALUE",message:`Role "${r}" is missing the "value" field.`})}return e.trigger&&(!e.trigger.event||typeof e.trigger.event!="string")&&t.push({severity:"error",code:"INVALID_TRIGGER",message:'Trigger "event" is required and must be a string.',suggestion:'Use an event name like "click", "mouseover", "keydown".'}),t}function Um(e){let t=new Map;if(e.roles)for(let[r,n]of Object.entries(e.roles))t.set(r,Xm(n));if(e.trigger){t.set("event",A(e.trigger.event,"string"));let r=new Map(t);r.delete("event");let n=Z(e.action,r);return Ie("on",t,[n],{sourceLanguage:"json"},e.trigger.modifiers??{})}return Z(e.action,t,{sourceLanguage:"json"})}function Za(e){if(e.kind==="compound"){let r=e;return r.statements.length>0?Za(r.statements[0]):{action:"compound",roles:{}}}if(e.kind==="event-handler"){let r=e,n=r.body?.[0]?.action??e.action,i={};if(r.body?.[0])for(let[s,l]of r.body[0].roles)i[s]=Jr(l);let a=e.roles.get("event"),o=a?"value"in a?String(a.value):"raw"in a?a.raw:"unknown":"unknown",u={action:n==="on"?r.body?.[0]?.action??"on":n,roles:i,trigger:{event:o}};return r.eventModifiers&&Object.keys(r.eventModifiers).length>0&&(u.trigger.modifiers=r.eventModifiers),u}let t={};for(let[r,n]of e.roles)t[r]=Jr(n);return{action:e.action,roles:t}}function Xm(e){switch(e.type){case"selector":return ce(String(e.value),Ym(String(e.value)));case"literal":return A(e.value,typeof e.value=="number"?"number":typeof e.value=="boolean"?"boolean":"string");case"reference":return re(String(e.value));case"expression":return ne(String(e.value));case"property-path":return ne(String(e.value));case"flag":return Qt(String(e.value),!0);default:return A(String(e.value),"string")}}function Jr(e){switch(e.type){case"selector":return{type:"selector",value:e.value};case"literal":return{type:"literal",value:e.value};case"reference":return{type:"reference",value:e.value};case"expression":return{type:"expression",value:e.raw};case"property-path":return{type:"property-path",value:`${Jr(e.object).value}.${e.property}`};case"flag":return{type:"flag",value:e.enabled}}}function Ym(e){return e.startsWith("#")?"id":e.startsWith(".")?"class":e.startsWith("[")?"attribute":"complex"}function J(e){let t=Jm(e.roles),r;switch(e.kind){case"command":{let n=e;r={kind:"command",action:e.action,roles:t},n.body&&n.body.length>0&&(r.body=n.body.map(J)),n.catchBranch&&n.catchBranch.length>0&&(r.catchBranch=n.catchBranch.map(J)),n.finallyBranch&&n.finallyBranch.length>0&&(r.finallyBranch=n.finallyBranch.map(J)),n.asyncVariant&&(r.asyncVariant=n.asyncVariant),n.asyncBody&&n.asyncBody.length>0&&(r.asyncBody=n.asyncBody.map(J)),n.arms&&n.arms.length>0&&(r.arms=n.arms.map(i=>({pattern:eo(i.pattern),body:i.body.map(J)}))),n.defaultArm&&n.defaultArm.length>0&&(r.defaultArm=n.defaultArm.map(J));break}case"event-handler":{let n=e;r={kind:"event-handler",action:e.action,roles:t,body:n.body.map(J)};break}case"compound":{let n=e;r={kind:"compound",action:"compound",statements:n.statements.map(J),chainType:n.chainType};break}case"conditional":{let n=e;r={kind:"command",action:e.action,roles:t},r.thenBranch=n.thenBranch.map(J),n.elseBranch&&n.elseBranch.length>0&&(r.elseBranch=n.elseBranch.map(J));break}case"loop":{let n=e;r={kind:"command",action:e.action,roles:t},r.loopVariant=n.loopVariant,r.loopBody=n.body.map(J),n.loopVariable&&(r.loopVariable=n.loopVariable),n.indexVariable&&(r.indexVariable=n.indexVariable);break}}return e.annotations&&e.annotations.length>0&&(r.annotations=e.annotations.map(n=>n.value!==void 0?{name:n.name,value:n.value}:{name:n.name})),e.diagnostics&&e.diagnostics.length>0&&(r.diagnostics=e.diagnostics.map(n=>({level:n.level,role:n.role,message:n.message,code:n.code}))),r}function Jm(e){let t={};for(let[r,n]of e)t[r]=eo(n);return t}function eo(e){switch(e.type){case"selector":{let t=new Set(["id","class","attribute","element","complex"]),r="selectorKind"in e?e.selectorKind:void 0,n={type:"selector",value:e.value};return r&&t.has(r)&&(n.selectorKind=r),n}case"literal":return e.dataType?{type:"literal",value:e.value,dataType:e.dataType}:{type:"literal",value:e.value};case"reference":return{type:"reference",value:e.value};case"expression":return{type:"expression",raw:e.raw};case"property-path":return{type:"expression",raw:Zt(e)};case"flag":return{type:"flag",name:e.name,enabled:e.enabled}}}function X(e){let t=new Map(Object.entries(e.roles??{}).map(([o,u])=>[o,to(u)])),r=e.annotations?.map(o=>o.value!==void 0?{name:o.name,value:o.value}:{name:o.name}),n=e.diagnostics?.map(o=>({level:o.level,role:o.role,message:o.message,code:o.code}));if(e.trigger){let o=e.trigger.event;t.set("event",A(o,"string"));let u=new Map(t);u.delete("event");let s=Z(e.action,u),l=Ie("on",t,[s],{sourceLanguage:"json"},e.trigger.modifiers??{});return ue(l,r,n)}let i=e.kind??"command";if(i==="event-handler"){let o=(e.body??[]).map(X),u=Ie(e.action,t,o);return ue(u,r,n)}if(i==="compound"){let o=(e.statements??[]).map(X),u=Na(o,e.chainType??"sequential");return ue(u,r,n)}if(e.thenBranch&&e.thenBranch.length>0){let o=e.thenBranch.map(X),u=e.elseBranch?e.elseBranch.map(X):void 0,s=pt(e.action,t,o,u);return ue(s,r,n)}if(e.loopVariant){let o=(e.loopBody??[]).map(X),u=Oe(e.action,t,e.loopVariant,o,e.loopVariable,e.indexVariable);return ue(u,r,n)}if(e.catchBranch||e.finallyBranch){let o=(e.body??[]).map(X),u=e.catchBranch?e.catchBranch.map(X):void 0,s=e.finallyBranch?e.finallyBranch.map(X):void 0,l=Hr(o,u,s);return ue(l,r,n)}if(e.asyncVariant){let o=(e.asyncBody??[]).map(X),u=Oa(e.asyncVariant,o);return ue(u,r,n)}if(e.arms&&e.arms.length>0){let o=e.arms.map(l=>({pattern:to(l.pattern),body:l.body.map(X)})),u=e.defaultArm?e.defaultArm.map(X):void 0,s=Ma(t,o,u);return ue(s,r,n)}if(e.body&&e.body.length>0&&i==="command"){let o=e.body.map(X),u=Hr(o);return ue(u,r,n)}let a=Z(e.action,t);return ue(a,r,n)}function ue(e,t,r){return(!t||t.length===0)&&(!r||r.length===0)?e:{...e,...t&&t.length>0?{annotations:t}:{},...r&&r.length>0?{diagnostics:r}:{}}}function to(e){switch(e.type){case"selector":return ce(String(e.value??""),e.selectorKind);case"literal":return A(e.value!==void 0?e.value:"",e.dataType);case"reference":return re(String(e.value??""));case"expression":return ne(e.raw??String(e.value??""));case"flag":return Qt(e.name??String(e.value??""),e.enabled??(typeof e.value=="boolean"?e.value:!0));case"property-path":return ne(String(e.value??e.raw??""))}}function Qm(e){let t={lseVersion:e.lseVersion,nodes:e.nodes.map(J)};return e.features&&e.features.length>0&&(t.features=[...e.features]),t}function Zm(e){return{lseVersion:e.lseVersion,...e.features&&e.features.length>0?{features:e.features}:{},nodes:e.nodes.map(X)}}function ed(e){return typeof e=="object"&&e!==null&&"lseVersion"in e&&"nodes"in e&&Array.isArray(e.nodes)}var td=new Set(["command","event-handler","compound"]),rd=new Set(["selector","literal","reference","expression","property-path","flag"]),nd=new Set(["then","and","async","sequential","pipe"]),id=new Set(["all","race"]),ad=new Set(["error","warning"]);function od(e){let t=[];if(typeof e!="object"||e===null)return[{severity:"error",code:"INVALID_ROOT",message:"Root must be a JSON object"}];let r=e,n="kind"in r?String(r.kind):"command";if("kind"in r&&!td.has(n)&&t.push({severity:"error",code:"INVALID_KIND",message:`Invalid kind "${r.kind}". Must be one of: command, event-handler, compound`}),"action"in r?(typeof r.action!="string"||r.action.length===0)&&t.push({severity:"error",code:"INVALID_ACTION",message:"action must be a non-empty string"}):t.push({severity:"error",code:"MISSING_ACTION",message:"Missing required field: action"}),!("roles"in r)&&n!=="compound")t.push({severity:"error",code:"MISSING_ROLES",message:"Missing required field: roles"});else if("roles"in r&&(typeof r.roles!="object"||r.roles===null||Array.isArray(r.roles)))t.push({severity:"error",code:"INVALID_ROLES",message:"roles must be a plain object"});else if("roles"in r&&r.roles)for(let[i,a]of Object.entries(r.roles)){if(typeof a!="object"||a===null){t.push({severity:"error",code:"INVALID_ROLE_VALUE",message:`Role "${i}" value must be an object`});continue}let o=a;if((!("type"in o)||!rd.has(String(o.type)))&&t.push({severity:"error",code:"INVALID_VALUE_TYPE",message:`Role "${i}" has invalid type "${o.type}"`}),o.type==="flag"){let u=typeof o.name=="string",s=typeof o.enabled=="boolean",l="value"in o;!u&&!l&&t.push({severity:"error",code:"MISSING_FLAG_NAME",message:`Flag role "${i}" missing required field: name (or value)`}),!s&&!l&&t.push({severity:"error",code:"MISSING_FLAG_ENABLED",message:`Flag role "${i}" missing required field: enabled (or value)`})}o.type==="expression"&&typeof o.raw!="string"&&!("value"in o)&&t.push({severity:"error",code:"MISSING_EXPRESSION_RAW",message:`Expression role "${i}" missing required field: raw (or value)`})}if("trigger"in r&&r.trigger){let i=r.trigger;typeof i!="object"||i===null?t.push({severity:"error",code:"INVALID_TRIGGER",message:"trigger must be an object"}):(!i.event||typeof i.event!="string")&&t.push({severity:"error",code:"INVALID_TRIGGER",message:"trigger.event is required and must be a non-empty string"})}if(n==="event-handler"&&!("trigger"in r)&&(!("body"in r)||!Array.isArray(r.body))&&t.push({severity:"error",code:"MISSING_BODY",message:"event-handler node requires a body array"}),n==="compound"&&((!("statements"in r)||!Array.isArray(r.statements))&&t.push({severity:"error",code:"MISSING_STATEMENTS",message:"compound node requires a statements array"}),"chainType"in r&&!nd.has(String(r.chainType))&&t.push({severity:"error",code:"INVALID_CHAIN_TYPE",message:`Invalid chainType "${r.chainType}". Must be one of: then, and, async, sequential, pipe`})),"diagnostics"in r)if(!Array.isArray(r.diagnostics))t.push({severity:"error",code:"INVALID_DIAGNOSTICS",message:"diagnostics must be an array"});else for(let i=0;i<r.diagnostics.length;i++){let a=r.diagnostics[i];if(!a||typeof a!="object"){t.push({severity:"error",code:"INVALID_DIAGNOSTIC_ENTRY",message:`diagnostics[${i}] must be an object`});continue}ad.has(String(a.level))||t.push({severity:"error",code:"INVALID_DIAGNOSTIC_LEVEL",message:`diagnostics[${i}].level must be "error" or "warning"`}),typeof a.role!="string"&&t.push({severity:"error",code:"MISSING_DIAGNOSTIC_ROLE",message:`diagnostics[${i}] missing required field: role`}),typeof a.message!="string"&&t.push({severity:"error",code:"MISSING_DIAGNOSTIC_MESSAGE",message:`diagnostics[${i}] missing required field: message`}),typeof a.code!="string"&&t.push({severity:"error",code:"MISSING_DIAGNOSTIC_CODE",message:`diagnostics[${i}] missing required field: code`})}if("annotations"in r)if(!Array.isArray(r.annotations))t.push({severity:"error",code:"INVALID_ANNOTATIONS",message:"annotations must be an array"});else for(let i=0;i<r.annotations.length;i++){let a=r.annotations[i];if(!a||typeof a!="object"){t.push({severity:"error",code:"INVALID_ANNOTATION_ENTRY",message:`annotations[${i}] must be an object`});continue}(typeof a.name!="string"||a.name.length===0)&&t.push({severity:"error",code:"MISSING_ANNOTATION_NAME",message:`annotations[${i}] missing required field: name`})}if("asyncVariant"in r&&!id.has(String(r.asyncVariant))&&t.push({severity:"error",code:"INVALID_ASYNC_VARIANT",message:`Invalid asyncVariant "${r.asyncVariant}". Must be "all" or "race"`}),"arms"in r)if(!Array.isArray(r.arms))t.push({severity:"error",code:"INVALID_ARMS",message:"arms must be an array"});else for(let i=0;i<r.arms.length;i++){let a=r.arms[i];if(!a||typeof a!="object"){t.push({severity:"error",code:"INVALID_ARM_ENTRY",message:`arms[${i}] must be an object`});continue}(!a.pattern||typeof a.pattern!="object")&&t.push({severity:"error",code:"MISSING_ARM_PATTERN",message:`arms[${i}] missing required field: pattern`}),Array.isArray(a.body)||t.push({severity:"error",code:"MISSING_ARM_BODY",message:`arms[${i}] missing required field: body (array)`})}return t}function pe(e){if(!e||typeof e!="object")return Z("unknown",{});switch(e.type){case"event":return ud(e);case"command":return sd(e);case"if":return ld(e);case"repeat":return cd(e);case"foreach":return pd(e);case"while":return md(e);default:return Z("get",{patient:T(e)})}}function ud(e){let t=String(e.event??"click"),n=(Array.isArray(e.body)?e.body:[]).map(pe),i={event:A(t)};e.target&&typeof e.target=="object"&&(i.source=T(e.target));let a=e.modifiers,o;return a&&(o=gd(a),a.prevent&&(i.prevent=A(!0)),a.stop&&(i.stop=A(!0)),a.passive&&(i.passive=A(!0)),a.capture&&(i.capture=A(!0))),Ie("on",i,n,void 0,o)}function sd(e){let t=String(e.name??"unknown"),r=Array.isArray(e.args)?e.args:[],n=e.target&&typeof e.target=="object"?e.target:void 0,i=e.roles,a=e.modifiers,o;if(i&&typeof i=="object"&&Object.keys(i).length>0){o={};for(let[u,s]of Object.entries(i))s&&typeof s=="object"&&"type"in s&&(o[u]=T(s))}else o=hd(t,r,a,n);return Z(t,o)}function ld(e){let t=e.condition&&typeof e.condition=="object"?T(e.condition):ne("true"),n=(Array.isArray(e.thenBranch)?e.thenBranch:[]).map(pe),i,a=e.elseIfBranches;return a&&a.length>0?i=[ro(a,e.elseBranch)]:Array.isArray(e.elseBranch)&&e.elseBranch.length>0&&(i=e.elseBranch.map(pe)),pt("if",{condition:t},n,i)}function ro(e,t){let[r,...n]=e,i=T(r.condition),a=r.body.map(pe),o;return n.length>0?o=[ro(n,t)]:t&&t.length>0&&(o=t.map(pe)),pt("if",{condition:i},a,o)}function cd(e){let r=(Array.isArray(e.body)?e.body:[]).map(pe),n={},i;return e.count!==void 0&&e.count!==null?(i="times",typeof e.count=="number"?n.quantity=A(e.count,"number"):typeof e.count=="object"&&(n.quantity=T(e.count))):e.whileCondition&&typeof e.whileCondition=="object"?(i="while",n.condition=T(e.whileCondition)):typeof e.untilEvent=="string"?(i="until",n.condition=A(e.untilEvent)):i="forever",Oe("repeat",n,i,r)}function pd(e){let r=(Array.isArray(e.body)?e.body:[]).map(pe),n={};e.collection&&typeof e.collection=="object"&&(n.source=T(e.collection));let i=typeof e.itemName=="string"?e.itemName:void 0,a=typeof e.indexName=="string"?e.indexName:void 0;return Oe("repeat",n,"for",r,i,a)}function md(e){let r=(Array.isArray(e.body)?e.body:[]).map(pe),n={};return e.condition&&typeof e.condition=="object"&&(n.condition=T(e.condition)),Oe("repeat",n,"while",r)}function T(e){switch(e.type){case"literal":return dd(e);case"selector":return ce(String(e.value??""),no(String(e.value??"")));case"identifier":return fd(e);case"variable":return yd(e);case"possessive":return ct(e.object&&typeof e.object=="object"?T(e.object):re("me"),String(e.property??""));case"binary":case"unary":case"member":case"call":case"positional":return ne(Q(e));default:return"value"in e?A(String(e.value??"")):ne(Q(e))}}function dd(e){let t=e.value;return t==null?A("null"):A(t,typeof t=="number"?"number":typeof t=="boolean"?"boolean":void 0)}function fd(e){let t=String(e.value??"");return dt.has(t)?re(t):A(t)}function yd(e){let t=String(e.name??"");switch(String(e.scope??"local")){case"element":return ne(`:${t}`);case"global":return ne(`$${t}`);default:return ne(t)}}function Q(e){if(!e||typeof e!="object")return"";switch(e.type){case"literal":{let t=e.value;return t==null?"null":typeof t=="string"?/\s/.test(t)?`"${t}"`:t:String(t)}case"identifier":return String(e.value??"");case"selector":return String(e.value??"");case"variable":{let t=String(e.name??""),r=String(e.scope??"local");return r==="element"?`:${t}`:r==="global"?`$${t}`:t}case"binary":{let t=e.left&&typeof e.left=="object"?Q(e.left):"",r=e.right&&typeof e.right=="object"?Q(e.right):"";return`${t} ${e.operator??""} ${r}`}case"unary":{let t=e.operand&&typeof e.operand=="object"?Q(e.operand):"";return`${e.operator??""} ${t}`}case"member":{let t=e.object&&typeof e.object=="object"?Q(e.object):"";if(e.computed&&e.property&&typeof e.property=="object")return`${t}[${Q(e.property)}]`;let r=typeof e.property=="string"?e.property:e.property&&typeof e.property=="object"?Q(e.property):"";return`${t}.${r}`}case"possessive":return`${e.object&&typeof e.object=="object"?Q(e.object):""}'s ${e.property??""}`;case"call":{let t=e.callee&&typeof e.callee=="object"?Q(e.callee):"",r=Array.isArray(e.args)?e.args.map(n=>Q(n)).join(", "):"";return`${t}(${r})`}case"positional":{let t=e.target&&typeof e.target=="object"?Q(e.target):"";return t?`${e.position??""} ${t}`:String(e.position??"")}default:return"value"in e?String(e.value??""):""}}function hd(e,t,r,n){let i={};switch(e){case"set":{t[0]&&(i.destination=T(t[0]));let a=r?.to;a&&typeof a=="object"&&"type"in a?i.patient=T(a):t[1]&&(i.patient=T(t[1]));break}case"put":{if(t[0]&&(i.patient=T(t[0])),r)for(let a of["into","before","after"]){let o=r[a];if(o&&typeof o=="object"&&"type"in o){i.destination=T(o),i.method=A(a);break}}!i.destination&&n&&(i.destination=T(n));break}case"increment":case"decrement":{t[0]&&(i.destination=T(t[0]));let a=r?.by;a&&typeof a=="object"&&"type"in a?i.quantity=T(a):t[1]&&(i.quantity=T(t[1]));break}case"fetch":{t[0]&&(i.source=T(t[0]));let a=r?.as;a&&typeof a=="object"&&"type"in a?i.responseType=T(a):typeof a=="string"&&(i.responseType=A(a));break}case"wait":case"settle":{t[0]&&(i.duration=T(t[0]));break}case"toggle":case"add":case"show":case"hide":{t[0]&&(i.patient=T(t[0])),n&&(i.destination=T(n));break}case"remove":{t[0]&&(i.patient=T(t[0])),n&&(i.source=T(n));break}case"send":case"trigger":{t[0]&&(i.patient=T(t[0])),n&&(i.destination=T(n));break}case"log":{t[0]&&(i.patient=T(t[0]));break}default:{t[0]&&(i.patient=T(t[0])),n&&(i.destination=T(n));break}}return i}function no(e){if(e){if(e.startsWith("#"))return"id";if(e.startsWith("."))return"class";if(e.startsWith("["))return"attribute";if(e.startsWith("<")||e.startsWith("*"))return"element";if(/[>\+~ ]/.test(e)&&e.length>1)return"complex"}}function vd(e){if(dt.has(e))return re(e);let t=no(e);return t?ce(e,t):A(e)}function gd(e){let t=e.once===!0?!0:void 0,r=typeof e.debounce=="number"?e.debounce:void 0,n=typeof e.throttle=="number"?e.throttle:void 0,i=typeof e.from=="string"?vd(e.from):void 0;if(!(t===void 0&&r===void 0&&n===void 0&&i===void 0))return{...t!==void 0?{once:t}:{},...r!==void 0?{debounce:r}:{},...n!==void 0?{throttle:n}:{},...i!==void 0?{from:i}:{}}}var Ed=class{constructor(e){this.patterns=new Map,this.tokenizers=new Map,this.schemas=e.schemas;for(let t of e.languages)this.registerLanguage(t)}registerLanguage(e){this.tokenizers.set(e.code,e.tokenizer);let t=[];for(let r of this.schemas){let n=Xr(r,e.patternProfile);t.push(n)}this.patterns.set(e.code,t)}getPatterns(e){return this.patterns.get(e)||[]}getTokenizer(e){return this.tokenizers.get(e)}getSupportedLanguages(){return Array.from(this.patterns.keys())}},zd=class{constructor(e,t,r){this.registry=t,this.matcher=new Gr,this.transformer=r,e.codeGenerator&&(this.codeGenerator=e.codeGenerator);let n=new Map(e.schemas.map(i=>[i.action,i]));this.schemaLookup={getSchema:i=>n.get(i)}}parse(e,t){return this.parseWithConfidence(e,t).node}parseWithConfidence(e,t){if(fe(e)){let o=qe(e,{schemaLookup:this.schemaLookup});if(!this.schemaLookup.getSchema(o.action))throw new Error(`No schema for action "${o.action}" in this DSL`);return{node:o,confidence:1}}let r=this.registry.getTokenizer(t);if(!r)throw new Error(`No tokenizer registered for language: ${t}`);let n=r.tokenize(e),i=this.registry.getPatterns(t),a={code:t};for(let o of i){let u=this.matcher.matchPattern(n,o,a);if(u)return{node:{kind:"command",action:o.command,roles:u.captured,metadata:{sourceLanguage:t,sourceText:e,patternId:o.id,confidence:u.confidence}},confidence:u.confidence}}throw new Error(`No pattern matched for input: ${e}`)}validate(e,t){try{return{valid:!0,node:this.parseWithConfidence(e,t).node}}catch(r){return{valid:!1,errors:[r instanceof Error?r.message:String(r)]}}}translate(e,t,r){return fe(e)?e:this.transformer.transform(e,t,r)}compile(e,t){if(!this.codeGenerator)return{ok:!1,errors:["No code generator configured for this DSL"]};try{let r=this.parseWithConfidence(e,t);return{ok:!0,code:this.codeGenerator.generate(r.node),node:r.node,metadata:{parser:"semantic",confidence:r.confidence}}}catch(r){return{ok:!1,errors:[r instanceof Error?r.message:String(r)]}}}getSupportedLanguages(){return this.registry.getSupportedLanguages()}};function kd(e){let t={};for(let r of e.languages){let n={};for(let[i,a]of Object.entries(r.patternProfile.keywords))n[i]=a.primary;t[r.code]=n}return new Ua(t)}function Cd(e){let t={};for(let r of e.languages)r.grammarProfile&&(t[r.code]=r.grammarProfile);return new Xa(t)}function xd(e){let t=e.dictionary??kd(e),r=e.profileProvider??Cd(e),n=new Ga({dictionary:t,profileProvider:r}),i=new Ed(e);return new zd(e,i,n)}function io(e){let t=e.outputFormat??"both",r=e.examplesPerCommand??2,n=[oo(),uo(),Ad(e.schemas,t,r),bd(t),Dd()],i=n;e.maxTokens&&e.maxTokens>0&&(i=Rd(n,e.maxTokens));let a=i.map(l=>`## ${l.title}
|
|
2
|
+
|
|
3
|
+
${l.content}`).join(`
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
`),o=e.schemas.reduce((l,c)=>l+c.roles.length,0),u=be(a),s={domain:e.domain,commandCount:e.schemas.length,roleCount:o,approximateTokens:u};return{text:a,sections:i,metadata:s}}function ao(e,t=2){let r=Sd(e),n=[];for(let i=0;i<Math.min(t,r.length);i++){let a=r[i],o=new Map;for(let m of a){let d=Bd(m);o.set(m.role,d)}let u=new Map;for(let[m,d]of o)u.set(m,jd(d));let s=Z(e.action,u),l=K(s),c={};for(let[m,d]of o)c[m]=d;let p={action:e.action,roles:c};n.push({explicit:l,json:p})}return n}function wd(){let e=oo(),t=uo();return`# LokaScript Explicit Syntax (LSE) Quick Reference
|
|
8
|
+
|
|
9
|
+
${e.content}
|
|
10
|
+
|
|
11
|
+
${t.content}`}function oo(){let e='LokaScript Explicit Syntax (LSE) is a bracket-based format for imperative commands.\n\n### Syntax\n\n```\n[command role1:value1 role2:value2 +flag1 ~flag2]\n```\n\n- **Command**: The first token inside brackets (lowercased)\n- **Role pair**: `name:value` \u2014 a named semantic role with a typed value (no space around colon)\n- **Enabled flag**: `+name` \u2014 boolean attribute present\n- **Disabled flag**: `~name` \u2014 boolean attribute negated\n- **Nested body**: `body:[command ...]` \u2014 a bracket command inside a role value\n\n### Rules\n\n1. Commands are always lowercased\n2. Role names preserve their original case\n3. No spaces around the colon in role:value pairs\n4. Strings with spaces must be quoted: `patient:"hello world"`\n5. Selectors start with `#`, `.`, `[`, `@`, or `*`\n6. Output must be valid bracket syntax: `[action role:value ...]`';return{id:"protocol",title:"LSE Protocol",content:e,approximateTokens:be(e)}}function uo(){let e="Values in LSE are classified by their syntactic form (first match wins):\n\n| Type | Syntax | Example |\n|------|--------|---------|\n| Selector | Starts with `#` `.` `[` `@` `*` | `#button`, `.active`, `[data-id]` |\n| String | Quoted with `\"` or `'` | `\"hello world\"`, `'json'` |\n| Boolean | Exact: `true` / `false` | `visible:true` |\n| Reference | Built-in name | `me`, `you`, `it`, `result`, `event`, `target`, `body` |\n| Duration | Number + suffix | `500ms`, `2s`, `1m`, `1h` |\n| Number | Digits with optional decimal | `5`, `3.14`, `-1` |\n| Plain | Fallback (any non-whitespace) | `/api/users`, `json`, `production` |\n\n**Important**: Classification is by prefix, not by intent. `#true` is a selector (not boolean). `event` as a value is a reference (not plain text).";return{id:"value-types",title:"Value Types",content:e,approximateTokens:be(e)}}function Ad(e,t,r){let n=[];for(let a of e)n.push(Td(a,t,r));let i=n.join(`
|
|
12
|
+
|
|
13
|
+
`);return{id:"commands",title:"Available Commands",content:i,approximateTokens:be(i)}}function bd(e){let t;return e==="explicit"?t="Output valid LSE bracket syntax. Each command must be wrapped in brackets:\n\n```\n[command role:value ...]\n```\n\nDo NOT output JSON. Only use bracket syntax.":e==="json"?t='Output valid JSON in the LLM-simplified format:\n\n```json\n{\n "action": "command-name",\n "roles": {\n "roleName": { "type": "valueType", "value": "theValue" }\n }\n}\n```\n\nValid value types: `selector`, `literal`, `reference`, `expression`.\nDo NOT output bracket syntax. Only use JSON.':t=`You may output EITHER format:
|
|
14
|
+
|
|
15
|
+
**Bracket syntax** (preferred for single commands):
|
|
16
|
+
\`\`\`
|
|
17
|
+
[command role:value ...]
|
|
18
|
+
\`\`\`
|
|
19
|
+
|
|
20
|
+
**JSON format** (preferred when structured data is needed):
|
|
21
|
+
\`\`\`json
|
|
22
|
+
{
|
|
23
|
+
"action": "command-name",
|
|
24
|
+
"roles": {
|
|
25
|
+
"roleName": { "type": "valueType", "value": "theValue" }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
\`\`\`
|
|
29
|
+
|
|
30
|
+
Both formats are equally valid. Use whichever is more natural for the context.`,{id:"output-format",title:"Output Format",content:t,approximateTokens:be(t)}}function Dd(){let e="If you're unsure about a command or role:\n\n1. **Unknown command**: Use the closest matching command from the Available Commands section. Do not invent commands.\n2. **Unknown role**: Use only the roles listed for each command. Do not add roles not in the schema.\n3. **Ambiguous value type**: When in doubt, use `expression` type (it's the most permissive).\n4. **Missing required role**: Always include all required roles. Check the Required/Optional labels.\n5. **Selector vs plain value**: If a value starts with `#`, `.`, `[`, `@`, or `*`, it's a selector. URLs like `/api/data` are plain values.\n\nWhen generating LSE, prefer explicit role labeling over positional guessing. Every value should have a role name.";return{id:"error-recovery",title:"Error Recovery",content:e,approximateTokens:be(e)}}function Td(e,t,r){let n=[];n.push(`### \`${e.action}\` \u2014 ${e.description}`),n.push("");let i=e.roles.filter(u=>u.required),a=e.roles.filter(u=>!u.required);if(i.length>0){n.push("**Required roles:**");for(let u of i)n.push(`- \`${u.role}\`: ${u.description} (type: ${so(u)})`)}if(a.length>0){n.push("**Optional roles:**");for(let u of a)n.push(`- \`${u.role}\`: ${u.description} (type: ${so(u)})`)}let o=ao(e,r);if(o.length>0){if(n.push(""),t==="explicit"||t==="both"){n.push("**Bracket syntax:**");for(let u of o)n.push(`\`\`\`
|
|
31
|
+
${u.explicit}
|
|
32
|
+
\`\`\``)}if(t==="json"||t==="both"){n.push("**JSON format:**");for(let u of o)n.push(`\`\`\`json
|
|
33
|
+
${JSON.stringify(u.json,null,2)}
|
|
34
|
+
\`\`\``)}}return n.join(`
|
|
35
|
+
`)}function so(e){return e.expectedTypes.join(" | ")}function Sd(e){let t=e.roles.filter(i=>i.required),r=e.roles.filter(i=>!i.required),n=[];t.length>0&&n.push(t);for(let i of r)n.push([...t,i]);return r.length>=2&&n.push([...t,...r]),n.length===0&&n.push(e.roles.slice()),n}function Bd(e){switch(e.expectedTypes[0]||"expression"){case"selector":return Fd(e.role);case"literal":return Pd(e.role);case"reference":return{type:"reference",value:"me"};case"expression":return Ld(e.role);case"flag":return{type:"flag",value:!0};default:return{type:"literal",value:"example"}}}function Fd(e){return{type:"selector",value:{patient:".active",destination:"#output",source:"#input",target:"#target"}[e]||`#${e}`}}function Pd(e){return{type:"literal",value:{duration:"30s",interval:"5s",delay:"500ms",timeout:"10s",quantity:5,limit:10,style:"json",manner:"rolling",format:"html"}[e]||e}}function Ld(e){return{type:"expression",value:{source:"/api/data",destination:"#output",patient:".active",instrument:"toUpperCase",condition:"age > 18",style:"json",duration:"5s",url:"/api/users"}[e]||`/api/${e}`}}function jd(e){switch(e.type){case"selector":return{type:"selector",value:String(e.value),selectorKind:_d(String(e.value))};case"literal":return{type:"literal",value:e.value,dataType:typeof e.value=="number"?"number":typeof e.value=="boolean"?"boolean":"string"};case"reference":return{type:"reference",value:String(e.value)};case"expression":return{type:"expression",value:String(e.value),raw:String(e.value)};case"flag":return{type:"flag",value:e.value};default:return{type:"literal",value:String(e.value),dataType:"string"}}}function _d(e){return e.startsWith("#")?"id":e.startsWith(".")?"class":e.startsWith("[")?"attribute":"complex"}function be(e){return Math.ceil(e.length/4)}function Rd(e,t){let r=[],n=t;for(let i of e)if(i.approximateTokens<=n)r.push(i),n-=i.approximateTokens;else{let a=Math.max(n*4,40),o=i.content.slice(0,a)+`
|
|
36
|
+
|
|
37
|
+
*(truncated)*`;r.push({...i,content:o,approximateTokens:be(o)});break}return r}function lo(e,t){let r=t.maxPairsPerCommand??5,n=t.minQuality??.5,i=t.shuffleRoles??!0,a=t.languages??["en"],o=[],u=0;for(let l of e){let c=Nd(l);for(let p of a){let m=0;for(let d of c){if(m>=r)break;let f=co(l,d,p,t.domain,`${t.domain}-synth-${u++}`);if(f.quality>=n&&(o.push(f),m++),i&&d.length>=2&&m<r){let y=[...d].reverse(),E=co(l,y,p,t.domain,`${t.domain}-synth-${u++}`);E.quality>=n&&(o.push(E),m++)}}}}let s={domain:t.domain,commandCount:e.length,pairCount:o.length,bySource:{synthetic:o.length},languages:a};return{pairs:o,metadata:s}}function Nd(e){let t=e.roles.filter(i=>i.required),r=e.roles.filter(i=>!i.required),n=[];t.length>0&&n.push(t);for(let i of r)n.push([...t,i]);return r.length>=2&&n.push([...t,...r]),n.length===0&&n.push(e.roles.slice()),n}function co(e,t,r,n,i){let a=new Map;for(let y of t)a.set(y.role,Od(y));let o=new Map;for(let[y,E]of a)o.set(y,$d(E));let u=Z(e.action,o),s=K(u),l={};for(let[y,E]of a)l[y]=E;let c={action:e.action,roles:l},p=Id(e,a,r),m=e.roles.filter(y=>y.required).length,d=t.filter(y=>y.required).length,f=m>0?d/m:.8;return{id:i,natural:p,language:r,explicit:s,json:c,domain:n,action:e.action,source:"synthetic",quality:f}}function Id(e,t,r){let n=[e.action];for(let i of e.roles){let a=t.get(i.role);if(!a)continue;let o=i.markerOverride?.[r];o&&n.push(o),n.push(String(a.value))}return n.join(" ")}function Od(e){switch(e.expectedTypes[0]||"expression"){case"selector":return Md(e.role);case"literal":return Wd(e.role);case"reference":return{type:"reference",value:"me"};case"expression":return qd(e.role);case"flag":return{type:"flag",value:!0};default:return{type:"literal",value:"example"}}}function Md(e){return{type:"selector",value:{patient:".active",destination:"#output",source:"#input",target:"#target"}[e]||`#${e}`}}function Wd(e){return{type:"literal",value:{duration:"30s",interval:"5s",delay:"500ms",timeout:"10s",quantity:5,limit:10,style:"json",manner:"rolling",format:"html"}[e]||e}}function qd(e){return{type:"expression",value:{source:"/api/data",destination:"#output",patient:".active",instrument:"toUpperCase",condition:"age > 18",style:"json",duration:"5s",url:"/api/users"}[e]||`/api/${e}`}}function $d(e){switch(e.type){case"selector":return{type:"selector",value:String(e.value),selectorKind:Vd(String(e.value))};case"literal":return{type:"literal",value:e.value,dataType:typeof e.value=="number"?"number":typeof e.value=="boolean"?"boolean":"string"};case"reference":return{type:"reference",value:String(e.value)};case"expression":return{type:"expression",value:String(e.value),raw:String(e.value)};case"flag":return{type:"flag",value:e.value};default:return{type:"literal",value:String(e.value),dataType:"string"}}}function Vd(e){return e.startsWith("#")?"id":e.startsWith(".")?"class":e.startsWith("[")?"attribute":"complex"}function po(e,t,r,n,i){let a=r.some(c=>c.severity==="error"),o=r.map(c=>Kd(c)),u=Gd(o,n,i),s,l;if(i&&n){let c=n.getSchema(i);c&&(s=Ud(c),a&&(l=Xd(c)))}return{accepted:!a,input:{format:t,text:e},diagnostics:o,hints:u,...s&&{schema:s},...l&&{correctedExample:l}}}function Kd(e){let t=Hd(e);return{severity:e.severity,code:e.code||"unknown",message:e.message,...e.suggestions?.[0]&&{suggestion:e.suggestions[0]},...t&&{fixType:t}}}function Hd(e){let t=(e.code||"").toLowerCase(),r=e.message.toLowerCase();if(t.includes("missing-role")||t.includes("missing_role")||r.includes("required role")||r.includes("missing role"))return"missing_role";if(t.includes("invalid-type")||t.includes("invalid_type")||t.includes("type-mismatch")||r.includes("invalid type")||r.includes("expected type"))return"invalid_type";if(t.includes("unknown-command")||t.includes("unknown_command")||r.includes("unknown command")||r.includes("not recognized")&&r.includes("command"))return"unknown_command";if(t.includes("unknown-role")||t.includes("unknown_role")||r.includes("unknown role")||r.includes("not recognized")&&r.includes("role"))return"unknown_role";if(t.includes("parse")||t.includes("syntax")||r.includes("syntax error")||r.includes("parse error")||r.includes("unexpected"))return"syntax_error"}function Gd(e,t,r){let n=[],i=r&&t?t.getSchema(r):void 0;for(let a of e)if(a.severity==="error")switch(a.fixType){case"missing_role":{if(i){let o=i.roles.filter(u=>u.required).map(u=>`'${u.role}' (${u.description}, type: ${u.expectedTypes.join("|")})`).join(", ");n.push(`Required roles for '${r}': ${o}`)}else n.push("Check that all required roles are present.");break}case"unknown_command":{n.push("Command not recognized. Ensure you're using a valid command from the domain schema.");break}case"unknown_role":{if(i){let o=i.roles.map(u=>`'${u.role}'`).join(", ");n.push(`Valid roles for '${r}': ${o}`)}else n.push("Use only roles defined in the command schema.");break}case"invalid_type":{n.push("Check value types: selectors start with #.[@*, strings use quotes, numbers are plain digits.");break}case"syntax_error":{n.push("Ensure bracket syntax: [command role:value ...]. No spaces around the colon.");break}default:a.suggestion&&n.push(a.suggestion)}return[...new Set(n)]}function Ud(e){let t=[],r=[],n={};for(let i of e.roles)i.required?t.push(i.role):r.push(i.role),n[i.role]=i.description;return{action:e.action,requiredRoles:t,optionalRoles:r,roleDescriptions:n}}function Xd(e){let t=new Map,r={};for(let o of e.roles){if(!o.required)continue;let u=Yd(o.role,o.expectedTypes[0]||"expression");t.set(o.role,Jd(u)),r[o.role]=u}let n=Z(e.action,t),i=K(n),a={action:e.action,roles:r};return{explicit:i,json:a}}function Yd(e,t){switch(t){case"selector":return{type:"selector",value:`#${e}`};case"expression":return{type:"expression",value:`<${e}-value>`};case"literal":return{type:"literal",value:`<${e}-value>`};case"reference":return{type:"reference",value:"me"};default:return{type:"expression",value:`<${e}-value>`}}}function Jd(e){switch(e.type){case"selector":return{type:"selector",value:e.value,selectorKind:"id"};case"expression":return{type:"expression",value:e.value,raw:e.value};case"literal":return{type:"literal",value:e.value,dataType:"string"};case"reference":return{type:"reference",value:e.value};default:return{type:"literal",value:e.value,dataType:"string"}}}var Qd=class{constructor(){this.descriptors=new Map,this.dslCache=new Map,this.rendererCache=new Map}register(e){if(this.descriptors.has(e.name))throw new Error(`Domain already registered: ${e.name}`);this.descriptors.set(e.name,e)}setSchemas(e,t){let r=this.descriptors.get(e);if(!r)throw new Error(`Domain not registered: ${e}`);this.descriptors.set(e,{...r,schemas:t})}getDomainNames(){return Array.from(this.descriptors.keys())}getDescriptor(e){return this.descriptors.get(e)}getToolDefinitions(){let e=[];for(let t of this.descriptors.values())e.push(...Zd(t));return e}canHandle(e){let t=mo(e);return t?this.descriptors.has(t.domain):!1}async handleToolCall(e,t){let r=mo(e);if(!r)return null;let n=this.descriptors.get(r.domain);if(!n)return null;try{let i=await this.getDSL(n);switch(r.operation){case"parse":return await this.handleParse(n,i,t);case"compile":return await this.handleCompile(n,i,t);case"validate":return await this.handleValidate(n,i,t);case"translate":return await this.handleTranslate(n,i,t);default:return De({error:`Unknown operation: ${r.operation}`},!0)}}catch(i){let a=i instanceof Error?i.message:String(i);return De({error:`${n.name} tool error: ${a}`},!0)}}async getDSLForDomain(e){let t=this.descriptors.get(e);return t?this.getDSL(t):null}generatePrompt(e,t){let r=this.descriptors.get(e);return!r?.schemas||r.schemas.length===0?null:io({domain:e,description:r.description,schemas:r.schemas,...t})}generateTrainingData(e,t){let r=this.descriptors.get(e);return!r?.schemas||r.schemas.length===0?null:lo(r.schemas,{domain:e,...t})}buildFeedback(e,t,r,n){let i=this.descriptors.get(e);if(!i?.schemas||i.schemas.length===0)return null;let a=this.createSchemaLookup(i.schemas),o;try{r==="explicit"&&(o=qe(t,{schemaLookup:a}).action)}catch{}return po(t,r,n,a,o)}getSchemas(e){let t=this.descriptors.get(e);return t?.schemas?t.schemas:null}createSchemaLookup(e){let t=new Map;for(let r of e)t.set(r.action,r);return{getSchema:r=>t.get(r)}}async getDSL(e){let t=this.dslCache.get(e.name);if(t)return t;let r=await e.getDSL();return this.dslCache.set(e.name,r),r}async getRenderer(e){if(!e.getRenderer)return null;let t=this.rendererCache.get(e.name);if(t)return t;let r=await e.getRenderer();return this.rendererCache.set(e.name,r),r}async handleParse(e,t,r){let n=me(r,e.inputLabel);if(!n)return Me(e.inputLabel);let i=me(r,"language","en"),a=t.parse(n,i),o={};for(let[u,s]of a.roles)o[u]=s;return De({action:a.action,roles:o,language:i,[e.inputLabel]:n})}async handleCompile(e,t,r){let n=me(r,e.inputLabel);if(!n)return Me(e.inputLabel);let i=me(r,"language","en"),a=t.compile(n,i);return De({ok:a.ok,code:a.code,errors:a.errors,language:i,input:n})}async handleValidate(e,t,r){let n=me(r,e.inputLabel);if(!n)return Me(e.inputLabel);let i=me(r,"language","en"),a=t.validate(n,i);return De({valid:a.valid,errors:a.errors,language:i,[e.inputLabel]:n})}async handleTranslate(e,t,r){let n=me(r,e.inputLabel);if(!n)return Me(e.inputLabel);let i=me(r,"from");if(!i)return Me("from");let a=me(r,"to");if(!a)return Me("to");let o=t.parse(n,i),u=t.compile(n,i),s=null,l=await this.getRenderer(e);if(l)try{s=typeof l=="function"?l(o,a):l.render(o,a)}catch{}let c={};for(let[p,m]of o.roles)c[p]=m;return De({input:{[e.inputLabel]:n,language:i},...s!=null&&{rendered:{text:s,language:a}},semantic:{action:o.action,roles:c},...u.ok&&u.code!=null&&{compiled:u.code}})}};function Zd(e){let t=[],r=e.tools??["parse","compile","validate","translate"],n=e.languages.join(", ");for(let i of r)switch(i){case"parse":t.push({name:`parse_${e.name}`,description:`Parse a ${e.description} input into a semantic representation (action, roles, confidence). Supports: ${n}.`,inputSchema:{type:"object",properties:{[e.inputLabel]:{type:"string",description:e.inputDescription},language:{type:"string",description:`Language code: ${n}`,default:"en"}},required:[e.inputLabel]}});break;case"compile":t.push({name:`compile_${e.name}`,description:`Compile a ${e.description} input to ${e.outputDescription??"target code"}. Supports: ${n}.`,inputSchema:{type:"object",properties:{[e.inputLabel]:{type:"string",description:e.inputDescription},language:{type:"string",description:`Language code: ${n}`,default:"en"}},required:[e.inputLabel]}});break;case"validate":t.push({name:`validate_${e.name}`,description:`Check ${e.description} syntax for errors. Returns {valid, errors[]}. Supports: ${n}.`,inputSchema:{type:"object",properties:{[e.inputLabel]:{type:"string",description:`${e.inputDescription} to validate`},language:{type:"string",description:`Language code: ${n}`,default:"en"}},required:[e.inputLabel]}});break;case"translate":t.push({name:`translate_${e.name}`,description:`Translate ${e.description} input between natural languages (requires 'from' and 'to' codes). Supports: ${n}.`,inputSchema:{type:"object",properties:{[e.inputLabel]:{type:"string",description:`${e.inputDescription} to translate`},from:{type:"string",description:`Source language code: ${n}`},to:{type:"string",description:`Target language code: ${n}`}},required:[e.inputLabel,"from","to"]}});break}return t}function mo(e){let t=e.match(/^(parse|compile|validate|translate)_(.+)$/);return t?{operation:t[1],domain:t[2]}:null}function me(e,t,r=""){let n=e[t];return typeof n=="string"?n:r}function De(e,t){return{content:[{type:"text",text:JSON.stringify(e,null,2)}],...t&&{isError:!0}}}function Me(e){return De({error:`Missing required parameter: ${e}`},!0)}var e4=/^\s*(\/\/|--|#)/;function fo(e){let t=e.trim();return t===""||e4.test(t)}var t4=class{constructor(e,t){this.registry=e,this.minConfidence=t?.minConfidence??.5,this.priority=t?.priority??[]}async detect(e,t="en"){let r=this.registry.getDomainNames();if(r.length===0)return null;let n=[];for(let i of r)try{let a=await this.registry.getDSLForDomain(i);if(!a)continue;let{node:o,confidence:u}=a.parseWithConfidence(e,t);u>=this.minConfidence&&n.push({domain:i,node:o,confidence:u,dsl:a})}catch{}return n.length===0?null:(this.priority.length>0?n.sort((i,a)=>{let o=this.getPriorityIndex(i.domain),u=this.getPriorityIndex(a.domain);return o!==u?o-u:a.confidence-i.confidence}):n.sort((i,a)=>a.confidence-i.confidence),n[0])}async parseComposite(e,t="en"){let r=e.split(`
|
|
38
|
+
`),n=[],i=[];for(let a=0;a<r.length;a++){let o=r[a];if(fo(o))continue;let u=o.trim(),s=await this.detect(u,t);s?n.push({line:a+1,input:u,domain:s.domain,node:s.node,confidence:s.confidence}):i.push({line:a+1,input:u,message:"No domain matched this input"})}return{statements:n,errors:i}}async compile(e,t="en"){let r=await this.detect(e,t);return r?{...r.dsl.compile(e,t),domain:r.domain}:null}async compileComposite(e,t="en"){let r=e.split(`
|
|
39
|
+
`),n=[],i=[];for(let a=0;a<r.length;a++){let o=r[a];if(fo(o))continue;let u=o.trim(),s=await this.detect(u,t);if(s){let l=s.dsl.compile(u,t);n.push({line:a+1,input:u,domain:s.domain,ok:l.ok,code:l.code,errors:l.errors})}else i.push({line:a+1,input:u,message:"No domain matched this input"})}return{statements:n,errors:i}}async validate(e,t="en"){let r=await this.detect(e,t);return r?{...r.dsl.validate(e,t),domain:r.domain}:{valid:!1,errors:["No domain matched this input"]}}getPriorityIndex(e){let t=this.priority.indexOf(e);return t===-1?this.priority.length:t}};function r4(e){let t=[];for(let r of e){let n=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t.push(new RegExp(`${n}\\s*=\\s*"([^"]+)"`,"g")),t.push(new RegExp(`${n}\\s*=\\s*'([^']+)'`,"g")),t.push(new RegExp(`${n}\\s*=\\s*\`([^\`]+)\``,"g"))}return t}function n4(e){return e.map(t=>{let r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`<script[^>]*type=["']?${r}["']?[^>]*>([\\s\\S]*?)<\\/script>`,"gi")})}function yo(e,t){let r=1;for(let n=0;n<t&&n<e.length;n++)e[n]===`
|
|
40
|
+
`&&r++;return r}function i4(e,t){let r=e.lastIndexOf("<",t);return r===-1?void 0:e.slice(r,t+200).match(/\bid=["']([^"']+)["']/)?.[1]}function a4(e,t){let r=e.lastIndexOf("<",t);return r===-1?void 0:e.slice(r,t+200).match(/\blang=["']([^"']+)["']/)?.[1]}var ho=class{constructor(e){this.configs=e}extract(e,t){let r=[];for(let n of this.configs){let i=n.defaultLanguage??"en",a=r4(n.attributes);for(let o of a){o.lastIndex=0;let u;for(;u=o.exec(e);){let s=u[1].trim();if(!s)continue;let l=yo(e,u.index),c=i4(e,u.index),p=a4(e,u.index);r.push({domain:n.domain,code:s,language:p??i,file:t,line:l,column:1,...c!=null&&{elementId:c}})}}if(n.scriptTypes){let o=n4(n.scriptTypes);for(let u of o){u.lastIndex=0;let s;for(;s=u.exec(e);){let l=s[1].trim();if(!l)continue;let c=yo(e,s.index);r.push({domain:n.domain,code:l,language:i,file:t,line:c,column:1})}}}}return r}async extractFromFiles(e,t){let r=[];for(let n of e)try{let i=await t(n),a=this.extract(i,n);r.push(...a)}catch{}return r}},o4=class{constructor(e){this.backends=new Map,this.options={confidenceThreshold:e?.confidenceThreshold??.7,continueOnError:e?.continueOnError??!0,debug:e?.debug??!1}}registerBackend(e){if(this.backends.has(e.domain))throw new Error(`Backend already registered for domain: ${e.domain}`);this.backends.set(e.domain,e)}async compileFiles(e,t){let r=Array.from(this.backends.values()).map(s=>s.scanConfig),i=await new ho(r).extractFromFiles(e,t);this.options.debug&&console.log(`[aot] Extracted ${i.length} snippets from ${e.length} files`);let a=[],o=[],u={};for(let s of i){u[s.domain]=(u[s.domain]??0)+1;let l=this.compileSnippet(s);if("error"in l){if(o.push({domain:s.domain,source:s.code,file:s.file,line:s.line,message:l.error}),!this.options.continueOnError)break}else a.push(l)}return{compiled:a,errors:o,stats:{totalSnippets:i.length,compiledCount:a.length,errorCount:o.length,domainBreakdown:u}}}compileSnippet(e){let t=this.backends.get(e.domain);if(!t)return{error:`No backend registered for domain: ${e.domain}`};try{let r=t.dsl.compile(e.code,e.language);return!r.ok||!r.code?{error:r.errors?.join("; ")??"Compilation failed"}:{domain:e.domain,source:e.code,compiled:r.code,language:e.language,file:e.file,line:e.line}}catch(r){return{error:r instanceof Error?r.message:String(r)}}}generateOutput(e,t){let r=t?.format??"esm",n=t?.includeComments??!0,i=t?.groupByDomain??!0,a=[];if(n&&(a.push("// Generated by @lokascript/framework AOT compiler"),a.push(`// ${e.stats.compiledCount} snippets compiled, ${e.stats.errorCount} errors`),a.push("")),i){let u=new Map;for(let s of e.compiled){let l=u.get(s.domain)??[];l.push(s),u.set(s.domain,l)}for(let[s,l]of u){n&&(a.push(`// === Domain: ${s} ===`),a.push(""));for(let c of l)n&&(a.push(`// Source: ${c.file}:${c.line}`),a.push(`// Language: ${c.language}`)),a.push(c.compiled),a.push("")}}else for(let u of e.compiled)n&&a.push(`// [${u.domain}] ${u.file}:${u.line}`),a.push(u.compiled),a.push("");let o=a.join(`
|
|
41
|
+
`).trimEnd();switch(r){case"cjs":return`'use strict';
|
|
42
|
+
|
|
43
|
+
${o}
|
|
44
|
+
`;case"iife":return`(function() {
|
|
45
|
+
${o}
|
|
46
|
+
})();
|
|
47
|
+
`;case"esm":default:return`${o}
|
|
48
|
+
`}}};async function u4(e){let t=[];for(let r of e.getDomainNames()){let n=e.getDescriptor(r);if(!n?.scanConfig)continue;let i=await e.getDSLForDomain(r);if(!i)continue;let a={domain:r,attributes:[...n.scanConfig.attributes],...n.scanConfig.scriptTypes?{scriptTypes:[...n.scanConfig.scriptTypes]}:{},defaultLanguage:n.scanConfig.defaultLanguage??"en"},o={generate(u){return JSON.stringify({action:u.action,roles:Object.fromEntries(u.roles)})}};t.push({domain:r,dsl:i,codeGenerator:o,scanConfig:a})}return t}function s4(e){return{description:e.description||`${e.action} command`,category:e.category||"general",primaryRole:e.primaryRole||e.roles[0]?.role||"patient",...e,action:e.action,roles:e.roles}}function l4(e){return{description:e.description||`${e.role} role`,...e,role:e.role,required:e.required,expectedTypes:e.expectedTypes}}function vo(e,t,r){return e[t]?.[r]??t}function c4(e,t,r){return e[t]?.[r]??t}function go(...e){return e.filter(Boolean).join(" ")}function Eo(e,t){let r={},n={};for(let i of t)for(let[a,o]of Object.entries(i.keywords))r[a]||(r[a]={}),r[a][i.code]=o.primary;for(let i of e)for(let a of i.roles)if(a.markerOverride){let o=a.role;n[o]||(n[o]={});for(let[u,s]of Object.entries(a.markerOverride))n[o][u]=s}for(let i of t)if(i.roleMarkers)for(let[a,o]of Object.entries(i.roleMarkers))n[a]||(n[a]={}),n[a][i.code]=o.primary;return{keywords:r,markers:n}}function zo(e){let t=new Set,r=new Set;for(let n of e)n.wordOrder==="SOV"&&t.add(n.code),n.wordOrder==="VSO"&&r.add(n.code);return{sovLanguages:t,vsoLanguages:r}}function p4(e,t){let{keywords:r,markers:n}=Eo(e,t),{sovLanguages:i}=zo(t),a=new Map;for(let o of e)a.set(o.action,o);return{render(o,u){let s=a.get(o.action);if(!s)return o.action;let l=vo(r,o.action,u),c=i.has(u),p=[];for(let d of s.roles){let f=Ia(o,d.role);if(!f&&!d.required)continue;let y=d.markerOverride?.[u]??n[d.role]?.[u]??void 0;p.push({...y!=null&&{marker:y},value:f||"",role:d})}let m=[];if(c){for(let d of p)d.value&&m.push(d.value),d.marker&&m.push(d.marker);m.push(l)}else{m.push(l);for(let d of p)d.marker&&m.push(d.marker),d.value&&m.push(d.value)}return go(...m)}}}function m4(){let e=[];function t(r,n,i){let a={message:n,severity:r,...i?.code!=null&&{code:i.code},...i?.line!=null&&{line:i.line},...i?.column!=null&&{column:i.column},...i?.source!=null&&{source:i.source},...i?.suggestions!=null&&i.suggestions.length>0&&{suggestions:i.suggestions}};e.push(a)}return{error(r,n){t("error",r,n)},warning(r,n){t("warning",r,n)},info(r,n){t("info",r,n)},add(r){e.push(r)},hasErrors(){return e.some(r=>r.severity==="error")},getDiagnostics(){return e},toResult(){let r=0,n=0,i=0;for(let a of e)a.severity==="error"?r++:a.severity==="warning"?n++:i++;return{ok:r===0,diagnostics:e,summary:{errors:r,warnings:n,infos:i}}}}}function d4(e,t){return{message:e instanceof Error?e.message:String(e),severity:"error",...t?.code!=null&&{code:t.code},...t?.line!=null&&{line:t.line},...t?.column!=null&&{column:t.column},...t?.source!=null&&{source:t.source},...t?.suggestions!=null&&t.suggestions.length>0&&{suggestions:t.suggestions}}}function f4(e,t){return e.filter(r=>r.severity===t)}var xe=class{constructor(e,t){this.pos=0,this.tokens=e,this.language=t}peek(e=0){let t=this.pos+e;return t<0||t>=this.tokens.length?null:this.tokens[t]}advance(){if(this.isAtEnd())throw new Error("Unexpected end of token stream");return this.tokens[this.pos++]}isAtEnd(){return this.pos>=this.tokens.length}mark(){return{position:this.pos}}reset(e){this.pos=e.position}position(){return this.pos}remaining(){return this.tokens.slice(this.pos)}takeWhile(e){let t=[];for(;!this.isAtEnd()&&e(this.peek());)t.push(this.advance());return t}skipWhile(e){for(;!this.isAtEnd()&&e(this.peek());)this.advance()}};function q(e,t){return{start:e,end:t}}function $(e,t,r,n){if(typeof e=="object"){let{value:a,kind:o,position:u,normalized:s,stem:l,stemConfidence:c,metadata:p}=e;return{value:a,kind:o,position:u,...s!==void 0&&{normalized:s},...l!==void 0&&{stem:l},...c!==void 0&&{stemConfidence:c},...p!==void 0&&{metadata:p}}}let i=e;if(!t||!r)throw new Error("createToken requires kind and position parameters");if(typeof n=="string")return{value:i,kind:t,position:r,normalized:n};if(n){let{normalized:a,stem:o,stemConfidence:u,metadata:s}=n;return{value:i,kind:t,position:r,...a!==void 0&&{normalized:a},...o!==void 0&&{stem:o},...u!==void 0&&{stemConfidence:u},...s!==void 0&&{metadata:s}}}return{value:i,kind:t,position:r}}function de(e){return/\s/.test(e)}function ko(e){return e==="#"||e==="."||e==="["||e==="@"||e==="*"||e==="<"}function Co(e){return e==='"'||e==="'"||e==="`"||e==="\u300C"||e==="\u300D"}function Ce(e){return/\d/.test(e)}function xo(e){return/[a-zA-Z]/.test(e)}function G(e){return/[a-zA-Z0-9_-]/.test(e)}function wo(e,t){if(t>=e.length)return null;let r=e[t];if(!ko(r))return null;let n=t,i="";if(r==="#"||r==="."){for(i+=e[n++];n<e.length&&G(e[n]);)i+=e[n++];if(i.length<=1)return null;if(n<e.length&&e[n]==="."&&r==="#"){let o=n+1;for(;o<e.length&&G(e[o]);)o++;if(o<e.length&&e[o]==="(")return i}}else if(r==="["){let a=1,o=!1,u=null,s=!1;for(i+=e[n++];n<e.length&&a>0;){let l=e[n];i+=l,s?s=!1:l==="\\"?s=!0:o?l===u&&(o=!1,u=null):l==='"'||l==="'"||l==="`"?(o=!0,u=l):l==="["?a++:l==="]"&&a--,n++}if(a!==0)return null}else if(r==="@"){for(i+=e[n++];n<e.length&&G(e[n]);)i+=e[n++];if(i.length<=1)return null}else if(r==="*"){for(i+=e[n++];n<e.length&&G(e[n]);)i+=e[n++];if(i.length<=1)return null}else if(r==="<"){if(i+=e[n++],n>=e.length||!xo(e[n]))return null;for(;n<e.length&&G(e[n]);)i+=e[n++];for(;n<e.length;){let a=e[n];if(a==="."){if(i+=e[n++],n>=e.length||!G(e[n]))return null;for(;n<e.length&&G(e[n]);)i+=e[n++]}else if(a==="#"){if(i+=e[n++],n>=e.length||!G(e[n]))return null;for(;n<e.length&&G(e[n]);)i+=e[n++]}else if(a==="["){let o=1,u=!1,s=null,l=!1;for(i+=e[n++];n<e.length&&o>0;){let c=e[n];i+=c,l?l=!1:c==="\\"?l=!0:u?c===s&&(u=!1,s=null):c==='"'||c==="'"||c==="`"?(u=!0,s=c):c==="["?o++:c==="]"&&o--,n++}if(o!==0)return null}else break}for(;n<e.length&&de(e[n]);)i+=e[n++];if(n<e.length&&e[n]==="/")for(i+=e[n++];n<e.length&&de(e[n]);)i+=e[n++];if(n>=e.length||e[n]!==">")return null;i+=e[n++]}return i||null}function Ao(e,t){if(t>=e.length||e[t]!=="'"||t+1>=e.length||e[t+1].toLowerCase()!=="s")return!1;if(t+2>=e.length)return!0;let n=e[t+2];return de(n)||n==="*"||!G(n)}function bo(e,t){if(t>=e.length)return null;let r=e[t];if(!Co(r)||r==="'"&&Ao(e,t))return null;let i={'"':'"',"'":"'","`":"`","\u300C":"\u300D"}[r];if(!i)return null;let a=t+1,o=r,u=!1;for(;a<e.length;){let s=e[a];if(o+=s,u)u=!1;else if(s==="\\")u=!0;else if(s===i)return o;a++}return o}function Do(e,t){if(t>=e.length)return!1;let r=e[t],n=e[t+1]||"",i=e[t+2]||"";if(r==="/"&&n!=="/"&&/[a-zA-Z0-9._-]/.test(n)||r==="/"&&n==="/"&&/[a-zA-Z]/.test(i)||r==="."&&(n==="/"||n==="."&&i==="/"))return!0;let a=e.slice(t,t+8).toLowerCase();return!!(a.startsWith("http://")||a.startsWith("https://"))}function To(e,t){if(!Do(e,t))return null;let r=t,n="",i=/[a-zA-Z0-9/:._\-?&=%@+~!$'()*,;[\]]/;for(;r<e.length;){let a=e[r];if(a==="#"){if(n.length>0&&/[a-zA-Z0-9/.]$/.test(n))for(n+=a,r++;r<e.length&&/[a-zA-Z0-9_-]/.test(e[r]);)n+=e[r++];break}if(i.test(a))n+=a,r++;else break}return n.length<2?null:n}function So(e,t){if(t>=e.length)return null;let r=e[t];if(!Ce(r)&&r!=="-"&&r!=="+")return null;let n=t,i="";if((e[n]==="-"||e[n]==="+")&&(i+=e[n++]),n>=e.length||!Ce(e[n]))return null;for(;n<e.length&&Ce(e[n]);)i+=e[n++];if(n<e.length&&e[n]===".")for(i+=e[n++];n<e.length&&Ce(e[n]);)i+=e[n++];return n<e.length&&(e.slice(n,n+2)==="ms"?i+="ms":(e[n]==="s"||e[n]==="m"||e[n]==="h")&&(i+=e[n])),i}var Qr=["===","!==","->","==","!=","<=",">=","&&","||","**","+=","-=","*=","/=","+","-","*","/","=",">","<","!","&","|","%","^","~"],Bo=class{constructor(e=Qr){this.operators=e,this.name="operator",this.operators=[...e].sort((t,r)=>r.length-t.length)}canExtract(e,t){return this.operators.some(r=>e.startsWith(r,t))}extract(e,t){for(let r of this.operators)if(e.startsWith(r,t))return{value:r,length:r.length};return null}},Fo="()[]{},:;",Po=class{constructor(e=Fo){this.punctuation=e,this.name="punctuation"}canExtract(e,t){return this.punctuation.includes(e[t])}extract(e,t){let r=e[t];return this.punctuation.includes(r)?{value:r,length:1}:null}};function Zr(){return[new L,new P,new Bo,new Po,new ft,new Ya]}function y4(e){return e.registerExtractors(Zr()),e}function Te(e){return t=>{let r=t.charCodeAt(0);return e.some(([n,i])=>r>=n&&r<=i)}}function h4(...e){return t=>e.some(r=>r(t))}function v4(e){let t=n=>e.test(n);return{isLetter:t,isIdentifierChar:n=>t(n)||/[0-9_-]/.test(n)}}var g4=new Set(Qr),Lo=class _o{constructor(){this.profileKeywords=[],this.profileKeywordMap=new Map,this.extractors=[]}tokenize(t){if(this.isUsingExtractors())return this.tokenizeWithExtractors(t);throw new Error(`${this.constructor.name}: tokenize() not implemented and no extractors registered. Either register extractors or override tokenize() method.`)}registerExtractor(t){rr(t)&&t.setContext(nr(this)),this.extractors.push(t)}registerExtractors(t){for(let r of t)this.registerExtractor(r)}clearExtractors(){this.extractors=[]}isUsingExtractors(){return this.extractors.length>0}tokenizeWithExtractors(t){let r=[],n=0;for(;n<t.length;){for(;n<t.length&&de(t[n]);)n++;if(n>=t.length)break;let i=!1;for(let a of this.extractors)if(a.canExtract(t,n)){let o=a.extract(t,n);if(o){let u=o.metadata?.normalized,s=o.metadata?.stem,l=o.metadata?.stemConfidence,c={};if(o.metadata)for(let[m,d]of Object.entries(o.metadata))m!=="normalized"&&m!=="stem"&&m!=="stemConfidence"&&(c[m]=d);let p={};u&&(p.normalized=u),s&&(p.stem=s),l!==void 0&&(p.stemConfidence=l),Object.keys(c).length>0&&(p.metadata=c),r.push($(o.value,this.classifyToken(o.value),q(n,n+o.length),Object.keys(p).length>0?p:void 0)),n+=o.length,i=!0;break}}if(!i){let a=t[n],o=this.classifyUnknownChar(a);r.push($(a,o,q(n,n+1))),n++}}return new xe(r,this.language)}classifyUnknownChar(t){return"()[]{},:;".includes(t)?"punctuation":"+-*/<>=!&|".includes(t)?"operator":"identifier"}tryPropertyAccess(t,r,n){if(t[r]!==".")return!1;let i=n[n.length-1],a=i&&i.position.end<r;if(i&&!a&&(i.kind==="identifier"||i.kind==="keyword"||i.kind==="selector"))return n.push($(".","operator",q(r,r+1))),!0;let s=r+1;for(;s<t.length&&G(t[s]);)s++;return s<t.length&&t[s]==="("?(n.push($(".","operator",q(r,r+1))),!0):!1}initializeKeywordsFromProfile(t,r=[]){let n=new Map;if(t.keywords){for(let[i,a]of Object.entries(t.keywords))if(n.set(a.primary,{native:a.primary,normalized:a.normalized||i}),a.alternatives)for(let o of a.alternatives)n.set(o,{native:o,normalized:a.normalized||i})}if(t.references){for(let[i,a]of Object.entries(t.references))n.set(a,{native:a,normalized:i});for(let i of Object.keys(t.references))n.has(i)||n.set(i,{native:i,normalized:i})}if(t.roleMarkers){for(let[i,a]of Object.entries(t.roleMarkers))if(a.primary&&n.set(a.primary,{native:a.primary,normalized:i}),a.alternatives)for(let o of a.alternatives)n.set(o,{native:o,normalized:i})}if(t.possessive?.keywords)for(let[i,a]of Object.entries(t.possessive.keywords))n.set(i,{native:i,normalized:a});for(let i of r)n.set(i.native,i);this.profileKeywords=Array.from(n.values()).sort((i,a)=>a.native.length-i.native.length),this.profileKeywordMap=new Map;for(let i of this.profileKeywords){this.profileKeywordMap.set(i.native.toLowerCase(),i);let a=this.removeDiacritics(i.native);a!==i.native&&!this.profileKeywordMap.has(a.toLowerCase())&&this.profileKeywordMap.set(a.toLowerCase(),i)}}removeDiacritics(t){return t.replace(/[\u064B-\u0652\u0670]/g,"")}tryProfileKeyword(t,r){for(let n of this.profileKeywords)if(t.slice(r).startsWith(n.native))return $(n.native,"keyword",q(r,r+n.native.length),n.normalized);return null}isKeywordStart(t,r){let n=t.slice(r);return this.profileKeywords.some(i=>n.startsWith(i.native))}lookupKeyword(t){return this.profileKeywordMap.get(t.toLowerCase())}isKeyword(t){return this.profileKeywordMap.has(t.toLowerCase())}setNormalizer(t){this.normalizer=t}tryNormalize(t){if(!this.normalizer)return null;let r=this.normalizer.normalize(t);return r.stem!==t&&r.confidence>=.7?r:null}tryMorphKeywordMatch(t,r,n){let i=this.tryNormalize(t);if(!i)return null;let a=this.lookupKeyword(i.stem);if(!a)return null;let o={normalized:a.normalized,stem:i.stem,stemConfidence:i.confidence};return $(t,"keyword",q(r,n),o)}trySelector(t,r){let n=wo(t,r);return n?$(n,"selector",q(r,r+n.length)):null}tryEventModifier(t,r){if(t[r]!==".")return null;let n=t.slice(r).match(/^\.(?:once|debounce|throttle|queue)(?:\(([^)]+)\))?(?:\s|$|\.)/);if(!n)return null;let i=n[0].replace(/(\s|\.)$/,""),a=i.slice(1).split("(")[0],o=n[1];return{...$(i,"event-modifier",q(r,r+i.length)),metadata:{modifierName:a,value:o?a==="queue"?o:parseInt(o,10):void 0}}}tryString(t,r){let n=bo(t,r);return n?$(n,"literal",q(r,r+n.length)):null}tryNumber(t,r){let n=So(t,r);return n?$(n,"literal",q(r,r+n.length)):null}tryMatchTimeUnit(t,r,n,i=!1){let a=r;if(i)for(;a<t.length&&de(t[a]);)a++;let o=t.slice(a);for(let u of n){let s=o.slice(0,u.length);if(u.caseInsensitive?s.toLowerCase()===u.pattern.toLowerCase():s===u.pattern){if(u.notFollowedBy&&(o[u.length]||"")===u.notFollowedBy)continue;if(u.checkBoundary){let c=o[u.length]||"";if(G(c))continue}return{suffix:u.suffix,endPos:a+u.length}}}return null}parseBaseNumber(t,r,n=!0){let i=r,a="";if(n&&(t[i]==="-"||t[i]==="+")&&(a+=t[i++]),i>=t.length||!Ce(t[i]))return null;for(;i<t.length&&Ce(t[i]);)a+=t[i++];if(i<t.length&&t[i]===".")for(a+=t[i++];i<t.length&&Ce(t[i]);)a+=t[i++];return!a||a==="-"||a==="+"?null:{number:a,endPos:i}}tryNumberWithTimeUnits(t,r,n,i={}){let{allowSign:a=!0,skipWhitespace:o=!1}=i,u=this.parseBaseNumber(t,r,a);if(!u)return null;let{number:s,endPos:l}=u,c=[...n,..._o.STANDARD_TIME_UNITS],p=this.tryMatchTimeUnit(t,l,c,o);return p&&(s+=p.suffix,l=p.endPos),$(s,"literal",q(r,l))}tryUrl(t,r){let n=To(t,r);return n?$(n,"url",q(r,r+n.length)):null}tryVariableRef(t,r){if(t[r]!==":"||r+1>=t.length||!G(t[r+1]))return null;let n=r+1;for(;n<t.length&&G(t[n]);)n++;let i=t.slice(r,n);return $(i,"identifier",q(r,n))}tryOperator(t,r){let n=t.slice(r,r+2);if(["==","!=","<=",">=","&&","||","->"].includes(n))return $(n,"operator",q(r,r+2));let i=t[r];return["<",">","!","+","-","*","/","="].includes(i)?$(i,"operator",q(r,r+1)):["(",")","{","}",",",";",":"].includes(i)?$(i,"punctuation",q(r,r+1)):null}tryMultiCharParticle(t,r,n){for(let i of n)if(t.slice(r,r+i.length)===i)return $(i,"particle",q(r,r+i.length));return null}};Lo.STANDARD_TIME_UNITS=[{pattern:"ms",suffix:"ms",length:2},{pattern:"s",suffix:"s",length:1,checkBoundary:!0},{pattern:"m",suffix:"m",length:1,checkBoundary:!0,notFollowedBy:"s"},{pattern:"h",suffix:"h",length:1,checkBoundary:!0}];var j=Lo;function E4(e){let{language:t,direction:r="ltr",keywords:n,keywordExtras:i,keywordProfile:a,includeOperators:o=!1,caseInsensitive:u=!0,customExtractors:s}=e,l=new Set(u?n.map(p=>p.toLowerCase()):n);class c extends j{constructor(){super(),this.language=t,this.direction=r,s&&this.registerExtractors(s),this.registerExtractors(Zr()),a&&this.initializeKeywordsFromProfile(a,i)}classifyToken(m){let d=u?m.toLowerCase():m;return l.has(d)||this.isKeyword(m)?"keyword":/^\d/.test(m)||/^['"]/.test(m)?"literal":o&&g4.has(m)?"operator":"identifier"}}return new c}function D(e){return{stem:e,confidence:1}}function v(e,t,r){return r?{stem:e,confidence:t,metadata:r}:{stem:e,confidence:t}}function z4(e){return e.map(t=>JSON.stringify(jo(t))).join(`
|
|
49
|
+
`)}function jo(e){return{id:e.id,prompt:e.natural,completion:e.explicit,metadata:{domain:e.domain,action:e.action,language:e.language,source:e.source,quality:e.quality,...e.confidence!==void 0&&{confidence:e.confidence}}}}function k4(e){return e.split(`
|
|
50
|
+
`).filter(t=>t.trim().length>0).map(t=>JSON.parse(t))}function C4(e,t=.5,r=.7){return e>=t&&e<r}function x4(e,t){let r=[...t].sort((o,u)=>u.confidence-o.confidence),n=r.map((o,u)=>({action:o.action,confidence:o.confidence,explicit:K(o.node),description:o.description||`${o.action} (option ${String.fromCharCode(97+u)})`})),i=n.map((o,u)=>` (${String.fromCharCode(97+u)}) ${o.explicit} \u2014 ${o.description} (conf: ${o.confidence.toFixed(2)})`),a=[`Your input parsed with confidence ${r[0]?.confidence.toFixed(2)??"?"}.`,...i,"Which did you mean?"].join(`
|
|
51
|
+
`);return{input:e,candidates:n,question:a}}var w4=class{constructor(e=1e3){this.events=[],this.maxEvents=e}record(e){this.events.push(e),this.events.length>this.maxEvents&&(this.events=this.events.slice(this.events.length-this.maxEvents))}getHitRateByCommand(){return this.computeHitRate(e=>e.action)}getHitRateByLanguage(){return this.computeHitRate(e=>e.language)}getTopFailures(e=10){let t=new Map;for(let r of this.events)if(!(r.outcome!=="rejected"||!r.diagnosticCodes))for(let n of r.diagnosticCodes){let i=t.get(n)||{count:0,actions:new Set};i.count++,i.actions.add(r.action),t.set(n,i)}return Array.from(t.entries()).map(([r,{count:n,actions:i}])=>({code:r,count:n,actions:Array.from(i)})).sort((r,n)=>n.count-r.count).slice(0,e)}getSummary(){let e={};for(let t of this.events)e[t.outcome]=(e[t.outcome]||0)+1;return{totalEvents:this.events.length,byOutcome:e,byCommand:this.getHitRateByCommand(),byLanguage:this.getHitRateByLanguage(),topFailures:this.getTopFailures()}}exportJSONL(){return this.events.map(e=>JSON.stringify(e)).join(`
|
|
52
|
+
`)}get size(){return this.events.length}clear(){this.events=[]}computeHitRate(e){let t=new Map;for(let n of this.events){let i=e(n),a=t.get(i)||{attempts:0,successes:0};a.attempts++,n.outcome==="accepted"&&a.successes++,t.set(i,a)}let r={};for(let[n,{attempts:i,successes:a}]of t)r[n]={attempts:i,successes:a,rate:i>0?a/i:0};return r}};function A4(e,t){return new b4(e,t)}var b4=class{constructor(e,t){this.dsl=e,this.config=t}parse(e,t){let r=this.splitStatements(e,t),n=[],i=[],a;for(let o of r){let u=this.classifyLine(o.text,t),s=o.text;if(this.config.continuation){let l=this.resolveContinuation(o.text,t,a?.category);l!==null&&(s=l)}if(this.config.preprocessor){let l=this.config.preprocessor(s,u,t,{...a!=null&&{previous:a},lineNumber:o.line,indent:o.indent});if(l===null)continue;s=l}try{let c={node:this.dsl.parse(s,t),source:o.text,line:o.line,...u!=null&&{category:u},indent:o.indent};n.push(c),a=c}catch(l){i.push({message:l instanceof Error?l.message:String(l),line:o.line,source:o.text,code:"parse-error"})}}return{statements:n,errors:i}}splitStatements(e,t){let{mode:r,trim:n=!0,commentPrefixes:i=["--","//"]}=this.config.split;if(r==="delimiter")return this.splitByDelimiter(e,t,n,i);let a=e.split(`
|
|
53
|
+
`),o=[];for(let u=0;u<a.length;u++){let s=a[u],l=s.length-s.trimStart().length,c=n?s.trim():s;c&&(i.some(p=>c.startsWith(p))||o.push({text:c,line:u+1,indent:l}))}return o}splitByDelimiter(e,t,r,n){let i=this.config.split.delimiters?.[t]??this.config.split.defaultDelimiter??/,\s*|\n\s*/,a=e.split(i),o=[];for(let u=0;u<a.length;u++){let s=a[u],l=r?s.trim():s;l&&(n.some(c=>l.startsWith(c))||o.push({text:l,line:u+1,indent:0}))}return o}classifyLine(e,t){if(!this.config.keywords)return;let r=e.toLowerCase(),n=this.config.keywords.wordOrders?.[t]??"SVO";for(let[i,a]of Object.entries(this.config.keywords.categories)){let o=a[t]??a.en??[];for(let u of o){let s=u.toLowerCase();if(n==="SOV"){if(r.endsWith(s)||r.startsWith(s))return i}else if(r.startsWith(s))return i}}}resolveContinuation(e,t,r){if(!this.config.continuation||!r)return null;let n=this.config.continuation.keywords[t]??this.config.continuation.keywords.en??[],i=e.toLowerCase();for(let a of n){let o=a.toLowerCase();if(i.startsWith(o)){let u=e.slice(a.length).trim();if(!u)return null;if(this.config.continuation.resolve)return this.config.continuation.resolve(u,r,t,this.config.keywords?.categories??{});let s=this.config.keywords?.categories[r]?.[t]??this.config.keywords?.categories[r]?.en;return s?.[0]?s[0]+" "+u:null}}return null}};function D4(e,t){return t.nesting==="flat"?T4(e,t):S4(e,t)}function T4(e,t){let r=[],n=[],i=null,a=()=>{i&&(r.push({type:i.type,...i.name!=null&&{name:i.name},statements:i.stmts,children:[],line:i.line,indent:i.indent}),i=null)};for(let o of e)if(o.category&&t.blockTypes.includes(o.category)){a();let u=t.extractName?.(o.source,o.category);i={type:o.category,...u!=null&&{name:u},stmts:[o],line:o.line,indent:o.indent}}else i?i.stmts.push(o):n.push(o);return a(),{blocks:r,orphans:n}}function S4(e,t){let r=[],n=[],i=[],a=o=>{for(;i.length>0;){let u=i[i.length-1];if(u.indent>=o){i.pop();let s={type:u.type,...u.name!=null&&{name:u.name},statements:u.stmts,children:u.children,line:u.line,indent:u.indent};i.length>0?i[i.length-1].children.push(s):r.push(s)}else break}};for(let o of e)if(o.category&&t.blockTypes.includes(o.category)){a(o.indent);let u=t.extractName?.(o.source,o.category);i.push({type:o.category,...u!=null&&{name:u},stmts:[o],children:[],line:o.line,indent:o.indent})}else i.length>0?i[i.length-1].stmts.push(o):n.push(o);return a(-1),{blocks:r,orphans:n}}var en=Object.defineProperty,B4=Object.getOwnPropertyDescriptor,Ro=Object.getOwnPropertyNames,F4=Object.prototype.hasOwnProperty,h=(e,t)=>function(){return e&&(t=(0,e[Ro(e)[0]])(e=0)),t},k=(e,t)=>{for(var r in t)en(e,r,{get:t[r],enumerable:!0})},P4=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ro(t))!F4.call(e,i)&&i!==r&&en(e,i,{get:()=>t[i],enumerable:!(n=B4(t,i))||n.enumerable});return e},L4=e=>P4(en({},"__esModule",{value:!0}),e);function No(e,t){let r={...e};for(let n of Object.keys(t)){let i=t[n],a=e[n];i!==void 0&&(typeof i=="object"&&i!==null&&!Array.isArray(i)&&typeof a=="object"&&a!==null&&!Array.isArray(a)?r[n]=No(a,i):r[n]=i)}return r}function j4(e,t){return No(e,t)}function tn(e){if(!e.extends)return e;let t=se.get(e.extends);if(!t)return console.warn(`[Registry] Profile '${e.code}' extends '${e.extends}' but base is not registered. Make sure to import the base language before the variant.`),e;let r=tn(t);return j4(r,e)}function N(e,t,r){ie.set(e,t),se.set(e,r),Pe.delete(e)}function _4(e){ie.set(e.language,e)}function R4(e){or=e}function rn(e,t){ur.set(e,t),Pe.delete(e)}function Se(e){return e.split("-")[0]}function Be(e){return e.includes("-")}function N4(e){let t=ie.get(e);if(!t&&Be(e)){let r=Se(e);t=ie.get(r)}if(!t){let r=Array.from(ie.keys()).join(", ");throw new Error(`Language '${e}' is not registered. Registered languages: ${r||"none"}. Import the language module first: import '@lokascript/semantic/languages/${e}';`)}return t}function I4(e){let t=se.get(e);if(!t&&Be(e)){let r=Se(e);t=se.get(r)}if(!t){let r=Array.from(se.keys()).join(", ");throw new Error(`Language profile '${e}' is not registered. Registered languages: ${r||"none"}. Import the language module first: import '@lokascript/semantic/languages/${e}';`)}return tn(t)}function O4(e){let t=ie.get(e);return!t&&Be(e)&&(t=ie.get(Se(e))),t}function oe(e){let t=se.get(e);return!t&&Be(e)&&(t=se.get(Se(e))),t?tn(t):void 0}function yt(){return Array.from(ie.keys())}function ar(e){if(ie.has(e)&&se.has(e))return!0;if(Be(e)){let t=Se(e);return ie.has(t)&&se.has(t)}return!1}function M4(e,t){return N4(t).tokenize(e)}function Fe(e){let t=Pe.get(e);if(!t&&Be(e)&&(t=Pe.get(Se(e))),t)return t;let r=ur.get(e);if(!r&&Be(e)&&(r=ur.get(Se(e))),r)return Pe.set(e,r),r;if(!or)throw new Error(`No patterns registered for language '${e}'. Either import the language module or set a pattern generator.`);let n=I4(e),i=or(n);return Pe.set(e,i),i}function W4(e,t){return Fe(e).filter(r=>r.command===t).sort((r,n)=>n.priority-r.priority)}var ie,se,Pe,or,ur,w=h({"src/registry.ts"(){"use strict";ie=new Map,se=new Map,Pe=new Map,or=null,ur=new Map}}),q4=h({"src/tokenizers/token-utils.ts"(){"use strict"}}),$4=h({"src/tokenizers/char-classifiers.ts"(){"use strict"}}),V4=h({"src/tokenizers/base-tokenizer.ts"(){"use strict"}}),S=h({"src/tokenizers/base.ts"(){"use strict";q4(),$4(),V4()}}),H=h({"src/tokenizers/morphology/types.ts"(){"use strict"}});function K4(e){let t=e.charCodeAt(0);return t>=1536&&t<=1791||t>=1872&&t<=1919||t>=2208&&t<=2303||t>=64336&&t<=65023||t>=65136&&t<=65279}function H4(e){for(let t of e)if(K4(t))return!0;return!1}function G4(e){return e.replace(/[\u064B-\u0652\u0670]/g,"")}var Io,Oo,Mo,Wo,nn,U4,X4=h({"src/tokenizers/morphology/arabic-normalizer.ts"(){"use strict";H(),Io=[{pattern:"\u0648\u0627\u0644",confidencePenalty:.15,prefixType:"conjunction"},{pattern:"\u0641\u0627\u0644",confidencePenalty:.15,prefixType:"conjunction"},{pattern:"\u0628\u0627\u0644",confidencePenalty:.15,prefixType:"preposition"},{pattern:"\u0643\u0627\u0644",confidencePenalty:.15,prefixType:"preposition"},{pattern:"\u0644\u0644",confidencePenalty:.12,prefixType:"preposition"}],Oo=[{pattern:"\u0627\u0644",confidencePenalty:.08,prefixType:"article",minRemaining:2},{pattern:"\u0648",confidencePenalty:.08,prefixType:"conjunction",minRemaining:3},{pattern:"\u0641",confidencePenalty:.08,prefixType:"conjunction",minRemaining:3},{pattern:"\u0628",confidencePenalty:.1,prefixType:"preposition",minRemaining:3},{pattern:"\u0644",confidencePenalty:.1,prefixType:"preposition",minRemaining:3},{pattern:"\u0643",confidencePenalty:.1,prefixType:"preposition",minRemaining:3}],Mo=[{pattern:"\u064A",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u062A",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0646",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0623",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0627",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3}],Wo=[{pattern:"\u0648\u0646",confidencePenalty:.1,type:"masculine-plural"},{pattern:"\u064A\u0646",confidencePenalty:.1,type:"masculine-plural-accusative"},{pattern:"\u0627\u062A",confidencePenalty:.1,type:"feminine-plural"},{pattern:"\u0627\u0646",confidencePenalty:.1,type:"dual-nominative"},{pattern:"\u064A\u0646",confidencePenalty:.1,type:"dual-accusative"},{pattern:"\u0647\u0627",confidencePenalty:.1,type:"pronoun-her"},{pattern:"\u0647\u0645",confidencePenalty:.1,type:"pronoun-them"},{pattern:"\u0647\u0646",confidencePenalty:.1,type:"pronoun-them-f"},{pattern:"\u0646\u0627",confidencePenalty:.1,type:"pronoun-us"},{pattern:"\u0643\u0645",confidencePenalty:.1,type:"pronoun-you-pl"},{pattern:"\u0643",confidencePenalty:.08,type:"pronoun-you"},{pattern:"\u0647",confidencePenalty:.08,type:"pronoun-him"},{pattern:"\u064A",confidencePenalty:.08,type:"pronoun-me"},{pattern:"\u0629",confidencePenalty:.08,type:"feminine"}],nn=class{constructor(){this.language="ar"}isNormalizable(e){return!(!H4(e)||e.length<2)}normalize(e){let t=G4(e),r=1,n=[],i=[];for(let o of Io)if(t.startsWith(o.pattern)){let u=t.slice(o.pattern.length);if(u.length>=2){t=u,r-=o.confidencePenalty,n.push(o.pattern);break}}if(n.length===0){for(let o of Oo)if(t.startsWith(o.pattern)){let u=t.slice(o.pattern.length),s=o.minRemaining??2;if(u.length>=s){t=u,r-=o.confidencePenalty,n.push(o.pattern);break}}}if(!(t.endsWith("\u0627\u062A")||t.endsWith("\u0629")||t.endsWith("\u0648\u0646")||t.endsWith("\u064A\u0646")||t.endsWith("\u0647\u0627")||t.endsWith("\u0647\u0645")||t.endsWith("\u0647\u0646")||t.endsWith("\u0646\u0627")||t.endsWith("\u0643\u0645"))&&(n.length===0||n[0]==="\u0648"||n[0]==="\u0641")){for(let o of Mo)if(t.startsWith(o.pattern)){let u=t.slice(o.pattern.length),s=o.minRemaining??3;if(u.length>=s){t=u,r-=o.confidencePenalty,n.push(o.pattern);break}}}for(let o of Wo)if(t.endsWith(o.pattern)){let u=t.slice(0,-o.pattern.length);u.length>=2&&(t=u,r-=o.confidencePenalty,i.push(o.pattern))}return r=Math.max(.5,r),n.length===0&&i.length===0?D(e):v(t,r,{removedPrefixes:n,removedSuffixes:i})}},U4=new nn}}),qo={};k(qo,{arabicProfile:()=>$e});var $e,ht=h({"src/generators/profiles/arabic.ts"(){"use strict";$e={code:"ar",name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",direction:"rtl",script:"arabic",wordOrder:"VSO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"\u0623\u0646\u0627",it:"\u0647\u0648",you:"\u0623\u0646\u062A",result:"\u0627\u0644\u0646\u062A\u064A\u062C\u0629",event:"\u0627\u0644\u062D\u062F\u062B",target:"\u0627\u0644\u0647\u062F\u0641",body:"\u0627\u0644\u062C\u0633\u0645"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u0644\u064A",it:"\u0644\u0647",you:"\u0644\u0643"},keywords:{\u0644\u064A:"me",\u0644\u0643:"you",\u0644\u0647:"it",\u0644\u0647\u0627:"it"}},roleMarkers:{destination:{primary:"\u0639\u0644\u0649",alternatives:["\u0641\u064A","\u0625\u0644\u0649","\u0628","\u0642\u0628\u0644","\u0628\u0639\u062F"],position:"before"},source:{primary:"\u0645\u0646",position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0628\u0640",alternatives:["\u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645"],position:"before"}},keywords:{toggle:{primary:"\u0628\u062F\u0651\u0644",alternatives:["\u0628\u062F\u0644","\u063A\u064A\u0651\u0631","\u063A\u064A\u0631"],normalized:"toggle"},add:{primary:"\u0623\u0636\u0641",alternatives:["\u0627\u0636\u0641"],normalized:"add"},remove:{primary:"\u0627\u062D\u0630\u0641",alternatives:["\u0623\u0632\u0644","\u0627\u0645\u0633\u062D"],normalized:"remove"},put:{primary:"\u0636\u0639",alternatives:["\u0627\u062C\u0639\u0644"],normalized:"put"},append:{primary:"\u0623\u0644\u062D\u0642",normalized:"append"},prepend:{primary:"\u0633\u0628\u0642",normalized:"prepend"},take:{primary:"\u062E\u0630",normalized:"take"},make:{primary:"\u0627\u0635\u0646\u0639",alternatives:["\u0623\u0646\u0634\u0626"],normalized:"make"},clone:{primary:"\u0627\u0633\u062A\u0646\u0633\u062E",normalized:"clone"},swap:{primary:"\u0627\u0633\u062A\u0628\u062F\u0644",alternatives:["\u062A\u0628\u0627\u062F\u0644"],normalized:"swap"},morph:{primary:"\u062D\u0648\u0651\u0644",normalized:"morph"},set:{primary:"\u0627\u0636\u0628\u0637",alternatives:["\u0639\u064A\u0651\u0646","\u062D\u062F\u062F"],normalized:"set"},get:{primary:"\u0627\u062D\u0635\u0644",normalized:"get"},increment:{primary:"\u0632\u0650\u062F",alternatives:["\u0632\u062F","\u0627\u0631\u0641\u0639"],normalized:"increment"},decrement:{primary:"\u0623\u0646\u0642\u0635",alternatives:["\u0627\u0646\u0642\u0635","\u0642\u0644\u0644"],normalized:"decrement"},log:{primary:"\u0633\u062C\u0644",normalized:"log"},show:{primary:"\u0627\u0638\u0647\u0631",alternatives:["\u0623\u0638\u0647\u0631","\u0627\u0639\u0631\u0636"],normalized:"show"},hide:{primary:"\u0627\u062E\u0641",alternatives:["\u0623\u062E\u0641\u0650","\u0627\u062E\u0641\u064A","\u0623\u062E\u0641"],normalized:"hide"},transition:{primary:"\u0627\u0646\u062A\u0642\u0627\u0644",alternatives:["\u0627\u0646\u062A\u0642\u0644"],normalized:"transition"},on:{primary:"\u0639\u0644\u0649",alternatives:["\u0639\u0646\u062F","\u0644\u062F\u0649","\u062D\u064A\u0646"],normalized:"on"},trigger:{primary:"\u062A\u0634\u063A\u064A\u0644",alternatives:["\u0623\u0637\u0644\u0642","\u0641\u0639\u0651\u0644"],normalized:"trigger"},send:{primary:"\u0623\u0631\u0633\u0644",normalized:"send"},focus:{primary:"\u062A\u0631\u0643\u064A\u0632",alternatives:["\u0631\u0643\u0632"],normalized:"focus"},blur:{primary:"\u0636\u0628\u0627\u0628\u064A\u0629",alternatives:["\u0634\u0648\u0634"],normalized:"blur"},go:{primary:"\u0627\u0630\u0647\u0628",normalized:"go"},wait:{primary:"\u0627\u0646\u062A\u0638\u0631",normalized:"wait"},fetch:{primary:"\u0627\u062D\u0636\u0631",alternatives:["\u062C\u0644\u0628"],normalized:"fetch"},settle:{primary:"\u0627\u0633\u062A\u0642\u0631",normalized:"settle"},if:{primary:"\u0625\u0630\u0627",normalized:"if"},when:{primary:"\u0639\u0646\u062F\u0645\u0627",normalized:"when"},where:{primary:"\u0623\u064A\u0646",normalized:"where"},else:{primary:"\u0648\u0625\u0644\u0627",alternatives:["\u062E\u0644\u0627\u0641 \u0630\u0644\u0643"],normalized:"else"},repeat:{primary:"\u0643\u0631\u0631",normalized:"repeat"},for:{primary:"\u0644\u0643\u0644",normalized:"for"},while:{primary:"\u0628\u064A\u0646\u0645\u0627",normalized:"while"},continue:{primary:"\u0648\u0627\u0635\u0644",normalized:"continue"},halt:{primary:"\u0623\u0648\u0642\u0641",normalized:"halt"},throw:{primary:"\u0627\u0631\u0645",alternatives:["\u0627\u0631\u0645\u0650"],normalized:"throw"},call:{primary:"\u0627\u0633\u062A\u062F\u0639",alternatives:["\u0646\u0627\u062F\u0650"],normalized:"call"},return:{primary:"\u0627\u0631\u062C\u0639",alternatives:["\u0639\u064F\u062F"],normalized:"return"},then:{primary:"\u062B\u0645",alternatives:["\u0628\u0639\u062F\u0647\u0627","\u062B\u0645\u0651"],normalized:"then"},and:{primary:"\u0648\u0623\u064A\u0636\u0627\u064B",alternatives:["\u0623\u064A\u0636\u0627\u064B"],normalized:"and"},end:{primary:"\u0646\u0647\u0627\u064A\u0629",alternatives:["\u0627\u0646\u062A\u0647\u0649","\u0622\u062E\u0631"],normalized:"end"},js:{primary:"\u062C\u0627\u0641\u0627\u0633\u0643\u0631\u0628\u062A",alternatives:["js"],normalized:"js"},async:{primary:"\u0645\u062A\u0632\u0627\u0645\u0646",normalized:"async"},tell:{primary:"\u0623\u062E\u0628\u0631",normalized:"tell"},default:{primary:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",normalized:"default"},init:{primary:"\u062A\u0647\u064A\u0626\u0629",alternatives:["\u0628\u062F\u0621"],normalized:"init"},behavior:{primary:"\u0633\u0644\u0648\u0643",normalized:"behavior"},install:{primary:"\u062A\u062B\u0628\u064A\u062A",alternatives:["\u062B\u0628\u0651\u062A"],normalized:"install"},measure:{primary:"\u0642\u064A\u0627\u0633",alternatives:["\u0642\u0650\u0633"],normalized:"measure"},beep:{primary:"\u0635\u0641\u0651\u0631",normalized:"beep"},break:{primary:"\u062A\u0648\u0642\u0641",normalized:"break"},copy:{primary:"\u0627\u0646\u0633\u062E",normalized:"copy"},exit:{primary:"\u0627\u062E\u0631\u062C",normalized:"exit"},pick:{primary:"\u0627\u062E\u062A\u0631",normalized:"pick"},render:{primary:"\u0627\u0631\u0633\u0645",normalized:"render"},into:{primary:"\u0641\u064A",alternatives:["\u0625\u0644\u0649"],normalized:"into"},before:{primary:"\u0642\u0628\u0644",normalized:"before"},after:{primary:"\u0628\u0639\u062F",normalized:"after"},until:{primary:"\u062D\u062A\u0649",normalized:"until"},event:{primary:"\u062D\u062F\u062B",normalized:"event"},from:{primary:"\u0645\u0646",normalized:"from"}},tokenization:{prefixes:["\u0627\u0644","\u0648","\u0641","\u0628","\u0643","\u0644"]},eventHandler:{eventMarker:{primary:"\u0639\u0646\u062F",alternatives:["\u0641\u064A","\u0644\u062F\u0649","\u0639\u0646\u062F\u0645\u0627","\u062D\u064A\u0646","\u062D\u064A\u0646\u0645\u0627","\u0644\u0645\u0651\u0627","\u0644\u0645\u0627"],position:"before"},temporalMarkers:["\u0639\u0646\u062F\u0645\u0627","\u062D\u064A\u0646","\u0644\u0645\u0651\u0627"],negationMarker:{primary:"\u0639\u062F\u0645",alternatives:["\u0639\u062F\u0645"],position:"before"}}}}});function Y4(){return[new L,new P,new _,new R,new ft]}var $o,_,Vo,R,I=h({"src/tokenizers/generic-extractors.ts"(){"use strict";$o=["===","!==","->","==","!=","<=",">=","&&","||","**","+=","-=","*=","/=","+","-","*","/","=",">","<","!","&","|","%","^","~"],_=class{constructor(e=$o){this.name="operator",this.operators=[...e].sort((t,r)=>r.length-t.length)}canExtract(e,t){return this.operators.some(r=>e.startsWith(r,t))}extract(e,t){for(let r of this.operators)if(e.startsWith(r,t))return{value:r,length:r.length};return null}},Vo="()[]{},:;",R=class{constructor(e=Vo){this.punctuation=e,this.name="punctuation"}canExtract(e,t){return this.punctuation.includes(e[t])}extract(e,t){let r=e[t];return this.punctuation.includes(r)?{value:r,length:1}:null}}}});function J4(e,t){let r=e[t];if(r==="#"){let n=e.slice(t).match(/^#[a-zA-Z_][\w-]*/);return n?n[0]:null}if(r==="."){let n=e.slice(t).match(/^\.[a-zA-Z_][\w-]*/);return n?n[0]:null}if(r==="["){let n=0,i=t;for(;i<e.length;){if(e[i]==="["&&n++,e[i]==="]"&&(n--,n===0))return e.slice(t,i+1);i++}return null}if(r==="<"){let n=e.slice(t).match(/^<[\w-]+(?:[#.][\w-]+|\[[^\]]+\])*\s*\/>/);return n?n[0]:null}return null}var an,Q4=h({"src/tokenizers/extractors/css-selector.ts"(){"use strict";an=class{constructor(){this.name="css-selector"}canExtract(e,t){let r=e[t];return r==="#"||r==="."||r==="["||r==="<"}extract(e,t){let r=J4(e,t);return r?{value:r,length:r.length,metadata:{type:"css-selector"}}:null}}}}),on,Z4=h({"src/tokenizers/extractors/event-modifier.ts"(){"use strict";on=class{constructor(){this.name="event-modifier"}canExtract(e,t){if(e[t]!==".")return!1;let r=e.slice(t);return/^\.(once|prevent|stop|debounce|throttle|queue)/.test(r)}extract(e,t){let r=e.slice(t).match(/^\.(?:once|prevent|stop|debounce|throttle|queue)(?:\(([^)]+)\))?/);if(!r)return null;let n=r[0],i=n.slice(1).split("(")[0],a=r[1];return{value:n,length:n.length,metadata:{modifierName:i,value:a?i==="queue"?a:parseInt(a,10):void 0}}}}}});function ef(e,t){let r=e.slice(t);if(r.startsWith("http://")||r.startsWith("https://")){let n=r.match(/^https?:\/\/[^\s]*/);return n?n[0]:null}if(r.startsWith("//")){let n=r.match(/^\/\/[^\s]*/);return n?n[0]:null}if(r.startsWith("./")||r.startsWith("../")){let n=r.match(/^\.\.?\/[^\s]*/);return n?n[0]:null}if(r.startsWith("/")){let n=r.match(/^\/[^\s]*/);return n?n[0]:null}return null}var un,tf=h({"src/tokenizers/extractors/url.ts"(){"use strict";un=class{constructor(){this.name="url"}canExtract(e,t){let r=e.slice(t);return r.startsWith("http://")||r.startsWith("https://")||r.startsWith("//")||r.startsWith("./")||r.startsWith("../")||r.startsWith("/")}extract(e,t){let r=ef(e,t);return r?{value:r,length:r.length,metadata:{type:"url"}}:null}}}}),sn,rf=h({"src/tokenizers/extractors/variable-ref.ts"(){"use strict";sn=class{constructor(){this.name="variable-ref"}canExtract(e,t){return e[t]===":"&&t+1<e.length&&/[a-zA-Z_]/.test(e[t+1])}extract(e,t){if(!this.canExtract(e,t))return null;let r=1;for(;t+r<e.length&&/[a-zA-Z0-9_]/.test(e[t+r]);)r++;return{value:e.substring(t,t+r),length:r,metadata:{type:"variable-reference"}}}}}});function nf(e){let t=e.charCodeAt(0);return t>=12352&&t<=12447}function af(e){let t=e.charCodeAt(0);return t>=12448&&t<=12543}function of(e){let t=e.charCodeAt(0);return t>=19968&&t<=40879||t>=13312&&t<=19903}function Ko(e){return nf(e)||af(e)||of(e)}var Ho,uf=h({"src/tokenizers/extractors/japanese-keyword.ts"(){"use strict";Ho=class{constructor(){this.name="japanese-keyword"}setContext(e){this.context=e}canExtract(e,t){return Ko(e[t])}extract(e,t){if(!this.context)throw new Error("JapaneseKeywordExtractor: context not set");let r=t;this.context.isKeywordStart(e,t);let n="",i=t;for(;i<e.length&&Ko(e[i]);)n+=e[i],i++;let a=n,o=n.length;for(let c=n.length;c>0;c--){let p=n.substring(0,c);if(this.context.lookupKeyword(p)){a=p,o=c;break}}if(n=a,i=t+o,!n)return null;let u=this.context.lookupKeyword(n),s=u&&u.normalized!==u.native?u.normalized:void 0,l;if(!u&&this.context.normalizer){let c=this.context.normalizer.normalize(n);if(c.stem!==n&&c.confidence>=.7){let p=this.context.lookupKeyword(c.stem);p&&(l=p.normalized)}}return{value:n,length:i-r,metadata:{normalized:s||l}}}}}}),ln,cn,Go,sf=h({"src/tokenizers/extractors/japanese-particle.ts"(){"use strict";ln=new Map([["\u3092",{role:"patient",confidence:.95}],["\u306B",{role:"destination",confidence:.85}],["\u304C",{role:"subject",confidence:.9}],["\u306E",{role:"possessive",confidence:.9}],["\u3068",{role:"conjunction",confidence:.8}],["\u3067",{role:"instrument",confidence:.85}],["\u3078",{role:"direction",confidence:.85}],["\u3084",{role:"listing",confidence:.8}],["\u304B",{role:"question",confidence:.85}],["\u3082",{role:"also",confidence:.85}],["\u306F",{role:"topic",confidence:.9}]]),cn=new Map([["\u304B\u3089",{role:"source",confidence:.95}],["\u307E\u3067",{role:"until",confidence:.95}],["\u3088\u308A",{role:"comparison",confidence:.9}],["\u3068\u3057\u3066",{role:"as",confidence:.9}],["\u306B\u3064\u3044\u3066",{role:"about",confidence:.9}],["\u306B\u3088\u3063\u3066",{role:"by-means",confidence:.9}],["\u306B\u3066",{role:"at-location",confidence:.85}]]),Go=class{constructor(){this.name="japanese-particle"}setContext(e){this._context=e,this._context}canExtract(e,t){let r=e[t];if(ln.has(r))return!0;for(let[n]of cn)if(e.startsWith(n,t))return!0;return!1}extract(e,t){for(let[i,a]of cn)if(e.startsWith(i,t))return{value:i,length:i.length,metadata:{role:a.role,confidence:a.confidence,variant:i}};let r=e[t],n=ln.get(r);return n?{value:r,length:1,metadata:{role:n.role,confidence:n.confidence,variant:r}}:null}}}});function lf(e){let t=e.charCodeAt(0);return t>=44032&&t<=55203}function cf(e){let t=e.charCodeAt(0);return t>=4352&&t<=4607||t>=12592&&t<=12687}function pn(e){return lf(e)||cf(e)}var Uo,Xo,pf=h({"src/tokenizers/extractors/korean-keyword.ts"(){"use strict";Uo=["\uD560\uB54C","\uD558\uBA74","\uD558\uB2C8\uAE4C","\uD560 \uB54C"],Xo=class{constructor(){this.name="korean-keyword"}setContext(e){this.context=e}canExtract(e,t){return pn(e[t])}extract(e,t){if(!this.context)throw new Error("KoreanKeywordExtractor: context not set");let r=t,n=6;for(let p=Math.min(n,e.length-r);p>=2;p--){let m=e.slice(r,r+p),d=!0;for(let y=0;y<m.length;y++)if(!pn(m[y])){d=!1;break}if(!d)continue;let f=this.context.lookupKeyword(m);if(f)return{value:m,length:p,metadata:{normalized:f.normalized!==f.native?f.normalized:void 0}};if(this.context.normalizer){let y=this.context.normalizer.normalize(m);if(y.stem!==m&&y.confidence>=.7){let E=this.context.lookupKeyword(y.stem);if(E)return{value:m,length:p,metadata:{normalized:E.normalized,stem:y.stem,stemConfidence:y.confidence}}}}}let i="",a=t;for(;a<e.length&&pn(e[a])&&!(i.length>0&&this.context.isKeywordStart(e,a));)i+=e[a],a++;if(!i)return null;for(let p of Uo)if(i.endsWith(p)&&i.length>p.length){let m=i.slice(0,-p.length),d=this.context.lookupKeyword(m);if(d)return{value:m,length:m.length,metadata:{normalized:d.normalized,hasSuffix:!0,suffix:p,stem:m}}}let o=this.context.lookupKeyword(i),u=o&&o.normalized!==o.native?o.normalized:void 0;i.includes("\uD1A0\uAE00")&&(console.log(`[KO DEBUG] word="${i}"`),console.log(`[KO DEBUG] keywordEntry=${o?"FOUND":"NOT FOUND"}`),console.log(`[KO DEBUG] normalizer=${this.context.normalizer?"EXISTS":"MISSING"}`));let s,l,c;if(!o&&this.context.normalizer){let p=this.context.normalizer.normalize(i);if(p.stem!==i&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(s=m.normalized,l=p.stem,c=p.confidence,i.includes("\uD1A0\uAE00")&&console.log(`[KO DEBUG] word="${i}", stem="${p.stem}", normalized="${s}"`))}}return{value:i,length:a-r,metadata:{normalized:u||s,stem:l,stemConfidence:c}}}}}}),mn,dn,Yo,mf=h({"src/tokenizers/extractors/korean-particle.ts"(){"use strict";mn=new Map([["\uC774",{role:"agent",confidence:.85,variant:"consonant",description:"subject marker (after consonant)"}],["\uAC00",{role:"agent",confidence:.85,variant:"vowel",description:"subject marker (after vowel)"}],["\uC744",{role:"patient",confidence:.95,variant:"consonant",description:"object marker (after consonant)"}],["\uB97C",{role:"patient",confidence:.95,variant:"vowel",description:"object marker (after vowel)"}],["\uC740",{role:"agent",confidence:.75,variant:"consonant",description:"topic marker (after consonant)"}],["\uB294",{role:"agent",confidence:.75,variant:"vowel",description:"topic marker (after vowel)"}],["\uC5D0",{role:"destination",confidence:.85,description:"at/to marker"}],["\uB85C",{role:"destination",confidence:.85,variant:"vowel",description:"to/by means (after vowel or \u3139)"}],["\uC640",{role:"style",confidence:.7,variant:"vowel",description:"and/with (after vowel)"}],["\uACFC",{role:"style",confidence:.7,variant:"consonant",description:"and/with (after consonant)"}],["\uC758",{role:"patient",confidence:.6,description:"possessive marker"}],["\uB3C4",{role:"patient",confidence:.65,description:"also/too marker"}],["\uB9CC",{role:"patient",confidence:.65,description:"only marker"}]]),dn=new Map([["\uC5D0\uC11C",{role:"source",confidence:.8,description:"at/from marker (action location)"}],["\uC73C\uB85C",{role:"destination",confidence:.85,variant:"consonant",description:"to/by means (after consonant)"}],["\uBD80\uD130",{role:"source",confidence:.9,description:"from/since marker"}],["\uAE4C\uC9C0",{role:"destination",confidence:.75,description:"until/to marker"}],["\uCC98\uB7FC",{role:"manner",confidence:.8,description:"like/as marker"}],["\uBCF4\uB2E4",{role:"source",confidence:.75,description:"than marker"}]]),Yo=class{constructor(){this.name="korean-particle"}setContext(e){this._context=e,this._context}canExtract(e,t){let r=e[t];if(mn.has(r))return!0;for(let[n]of dn)if(e.startsWith(n,t))return!0;return!1}extract(e,t){for(let[i,a]of dn)if(e.startsWith(i,t))return{value:i,length:i.length,metadata:{particleRole:a.role,particleConfidence:a.confidence,particleVariant:a.variant}};let r=e[t],n=mn.get(r);return n?{value:r,length:1,metadata:{particleRole:n.role,particleConfidence:n.confidence,particleVariant:n.variant}}:null}}}});function fn(e){let t=e.charCodeAt(0);return t>=19968&&t<=40959||t>=13312&&t<=19903||t>=63744&&t<=64255||t>=131072&&t<=173791||t>=173824&&t<=177983||t>=177984&&t<=178207||t>=178208&&t<=183983||t>=183984&&t<=191471||t>=194560&&t<=195103}var Jo,df=h({"src/tokenizers/extractors/chinese-keyword.ts"(){"use strict";Jo=class{constructor(){this.name="chinese-keyword"}setContext(e){this.context=e}canExtract(e,t){return fn(e[t])}extract(e,t){if(!this.context)throw new Error("ChineseKeywordExtractor: context not set");let r=t,n=null;if(this.context.isKeywordStart(e,t))for(let o=10;o>=1;o--){let u=e.slice(t,t+o);if([...u].every(s=>fn(s))){let s=this.context.lookupKeyword(u);if(s){n={word:u,entry:s};break}}}if(n)return{value:n.word,length:n.word.length,metadata:{normalized:n.entry.normalized}};let i="",a=t;for(;a<e.length&&fn(e[a])&&(i+=e[a],a++,!(a<e.length&&this.context.isKeywordStart(e,a))););return i?{value:i,length:a-r,metadata:{}}:null}}}}),yn,hn,Qo,ff=h({"src/tokenizers/extractors/chinese-particle.ts"(){"use strict";yn=new Map([["\u628A",{role:"patient",confidence:.95,description:"ba-construction object marker"}],["\u5728",{role:"location",confidence:.85,description:"at/in/on location marker"}],["\u4ECE",{role:"source",confidence:.9,description:"from marker"}],["\u5230",{role:"destination",confidence:.9,description:"to/until marker"}],["\u5411",{role:"destination",confidence:.85,description:"towards marker"}],["\u7ED9",{role:"destination",confidence:.85,description:"to/for recipient marker"}],["\u5BF9",{role:"destination",confidence:.8,description:"to/towards marker"}],["\u7528",{role:"instrument",confidence:.85,description:"with/using marker"}],["\u88AB",{role:"agent",confidence:.8,description:"by (passive) marker"}],["\u8BA9",{role:"agent",confidence:.75,description:"let/make causative marker"}],["\u7684",{role:"possessive",confidence:.9,description:"possessive/attributive marker"}],["\u5730",{role:"manner",confidence:.85,description:"adverbial marker"}],["\u5F97",{role:"manner",confidence:.8,description:"complement marker"}],["\u4E86",{role:"aspect",confidence:.7,description:"completion aspect marker"}],["\u7740",{role:"aspect",confidence:.7,description:"progressive aspect marker"}],["\u8FC7",{role:"aspect",confidence:.7,description:"experiential aspect marker"}],["\u5417",{role:"mood",confidence:.75,description:"question particle"}],["\u5462",{role:"mood",confidence:.7,description:"question/emphasis particle"}],["\u5427",{role:"mood",confidence:.7,description:"suggestion particle"}]]),hn=new Map([["\u7136\u540E",{role:"sequence",confidence:.9,description:"then/afterwards"}],["\u63A5\u7740",{role:"sequence",confidence:.85,description:"next/following"}],["\u5E76\u4E14",{role:"conjunction",confidence:.85,description:"and/moreover"}],["\u6216\u8005",{role:"conjunction",confidence:.85,description:"or"}],["\u5982\u679C",{role:"condition",confidence:.9,description:"if"}],["\u90A3\u4E48",{role:"consequence",confidence:.85,description:"then"}],["\u5426\u5219",{role:"alternative",confidence:.85,description:"otherwise"}]]),Qo=class{constructor(){this.name="chinese-particle"}setContext(e){this._context=e,this._context}canExtract(e,t){let r=e[t];if(yn.has(r))return!0;for(let[n]of hn)if(e.startsWith(n,t))return!0;return!1}extract(e,t){for(let[i,a]of hn)if(e.startsWith(i,t))return{value:i,length:i.length,metadata:{particleRole:a.role,particleConfidence:a.confidence,particleDescription:a.description}};let r=e[t],n=yn.get(r);return n?{value:r,length:1,metadata:{particleRole:n.role,particleConfidence:n.confidence,particleDescription:n.description}}:null}}}});function yf(e){return{isLetter:n=>e.test(n),isIdentifierChar:n=>/[0-9]/.test(n)||e.test(n)}}function hf(){return[new ru]}var Zo,eu,tu,ru,vf=h({"src/tokenizers/extractors/vietnamese-keyword.ts"(){"use strict";({isLetter:Zo,isIdentifierChar:eu}=yf(/[a-zA-ZàáảãạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệìíỉĩịòóỏõọôồốổỗộơờớởỡợùúủũụưừứửữựỳýỷỹỵđÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÈÉẺẼẸÊỀẾỂỄỆÌÍỈĨỊÒÓỎÕỌÔỒỐỔỖỘƠỜỚỞỠỢÙÚỦŨỤƯỪỨỬỮỰỲÝỶỸỴĐ]/)),tu=new Set(["trong","ngo\xE0i","tr\xEAn","d\u01B0\u1EDBi","v\xE0o","ra","\u0111\u1EBFn","t\u1EEB","v\u1EDBi","cho","b\u1EDFi","qua","tr\u01B0\u1EDBc","sau","gi\u1EEFa","b\xEAn","theo","v\u1EC1","t\u1EDBi","l\xEAn","xu\u1ED1ng"]),ru=class{constructor(){this.name="vietnamese-keyword"}setContext(e){this.context=e}canExtract(e,t){return Zo(e[t])}extract(e,t){if(!this.context)throw new Error("VietnameseKeywordExtractor: context not set");let r=this.tryMultiWordPhrase(e,t);if(r)return r;let n=t,i="";for(;n<e.length&&eu(e[n]);)i+=e[n++];if(!i)return null;let a=i.toLowerCase(),o=tu.has(a),u=this.context.lookupKeyword(a),s=u&&u.normalized!==u.native?u.normalized:void 0;return{value:i,length:n-t,metadata:{normalized:s,isPreposition:o}}}tryMultiWordPhrase(e,t){if(!this.context)return null;let r=["chuy\u1EC3n \u0111\u1ED5i","b\u1EADt t\u1EAFt","hi\u1EC3n th\u1ECB","g\u1EE1 b\u1ECF","lo\u1EA1i b\u1ECF","b\u1ED5 sung","th\xEAm v\xE0o \u0111\u1EA7u","ho\xE1n \u0111\u1ED5i","bi\u1EBFn \u0111\u1ED5i","thi\u1EBFt l\u1EADp","l\u1EA5y gi\xE1 tr\u1ECB","t\u0103ng l\xEAn","gi\u1EA3m \u0111i","in ra","chuy\u1EC3n ti\u1EBFp","k\xEDch ho\u1EA1t","t\u1EADp trung","m\u1EA5t t\u1EADp trung","nh\u1EA5p chu\u1ED9t","di chu\u1ED9t","r\xEA chu\u1ED9t","nh\u1EADp li\u1EC7u","thay \u0111\u1ED5i","\u0111i \u0111\u1EBFn","ch\u1EDD \u0111\u1EE3i","\u1ED5n \u0111\u1ECBnh","n\u1EBFu kh\xF4ng","kh\xF4ng th\xEC","l\u1EB7p l\u1EA1i","v\u1EDBi m\u1ED7i","trong khi","ti\u1EBFp t\u1EE5c","d\u1EEBng l\u1EA1i","tr\u1EA3 v\u1EC1","sau \u0111\xF3","k\u1EBFt th\xFAc","b\u1EA5t \u0111\u1ED3ng b\u1ED9","n\xF3i v\u1EDBi","m\u1EB7c \u0111\u1ECBnh","kh\u1EDFi t\u1EA1o","h\xE0nh vi","c\xE0i \u0111\u1EB7t","\u0111o l\u01B0\u1EDDng","sao ch\xE9p","tho\xE1t ra","k\u1EBFt xu\u1EA5t","v\xE0o trong","tr\u01B0\u1EDBc khi","sau khi","cho \u0111\u1EBFn khi","s\u1EF1 ki\u1EC7n","k\u1EBFt qu\u1EA3","m\u1EE5c ti\xEAu","c\u1EE7a t\xF4i","c\u1EE7a n\xF3","c\u1EE7a b\u1EA1n","c\u1EE7a anh","c\u1EE7a ch\u1ECB","kh\xF4ng x\xE1c \u0111\u1ECBnh","\u0111\u1EA7u ti\xEAn","cu\u1ED1i c\xF9ng","ti\u1EBFp theo","tr\u01B0\u1EDBc \u0111\xF3","g\u1EA7n nh\u1EA5t","nh\u1EA5p \u0111\xFAp","g\u1EEDi bi\u1EC3u m\u1EABu","ph\xEDm xu\u1ED1ng","ph\xEDm l\xEAn","chu\u1ED9t v\xE0o","chu\u1ED9t ra","t\u1EA3i trang","mili gi\xE2y","th\xEAm v\xE0o cu\u1ED1i","nh\xE2n b\u1EA3n","t\u1EA1o ra","\u0111\u1EB7t gi\xE1 tr\u1ECB","ghi nh\u1EADt k\xFD","chuy\u1EC3n t\u1EDBi","ng\u01B0\u1EE3c l\u1EA1i"];for(let n of r)if(e.slice(t,t+n.length).toLowerCase()===n.toLowerCase()){let a=t+n.length;if(a>=e.length||!/[a-zA-Zàáảãạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệìíỉĩịòóỏõọôồốổỗộơờớởỡợùúủũụưừứửữựỳýỷỹỵđ]/.test(e[a])){let o=this.context.lookupKeyword(n);return{value:e.slice(t,a),length:n.length,metadata:{normalized:o?.normalized,isPreposition:!1}}}}return null}}}}),vn,nu,iu,gf=h({"src/tokenizers/extractors/arabic-keyword.ts"(){"use strict";S(),vn=Te([[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]]),nu=new Set(["\u0641\u064A","\u0639\u0644\u0649","\u0645\u0646","\u0625\u0644\u0649","\u0627\u0644\u0649","\u0645\u0639","\u0639\u0646","\u0642\u0628\u0644","\u0628\u0639\u062F","\u0628\u064A\u0646"]),iu=class{constructor(){this.name="arabic-keyword"}setContext(e){this.context=e}canExtract(e,t){return vn(e[t])}extract(e,t){if(!this.context)throw new Error("ArabicKeywordExtractor: context not set");let r=t;this.context.isKeywordStart(e,t);let n="",i=t;for(;i<e.length&&(vn(e[i])||e[i]==="\u0640");)n+=e[i],i++;if(!n)return null;let a=this.context.lookupKeyword(n),o=a&&a.normalized!==a.native?a.normalized:void 0;if(nu.has(n))return{value:n,length:i-r,metadata:{prepositionValue:n,normalized:o}};let u,s,l;if(!a&&this.context.normalizer){let c=this.context.normalizer.normalize(n);if(c.stem!==n&&c.confidence>=.7){let p=this.context.lookupKeyword(c.stem);p&&(u=p.normalized,s=c.stem,l=c.confidence)}}return{value:n,length:i-r,metadata:{normalized:o||u,stem:s,stemConfidence:l}}}}}}),Ve,Ke,au,Ef=h({"src/tokenizers/extractors/arabic-proclitic.ts"(){"use strict";S(),Ve=Te([[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]]),Ke=new Map([["\u0648",{normalized:"and",type:"conjunction"}],["\u0641",{normalized:"then",type:"conjunction"}],["\u0628",{normalized:"with",type:"preposition"}],["\u0644",{normalized:"to",type:"preposition"}],["\u0643",{normalized:"like",type:"preposition"}],["\u0648\u0644",{normalized:"and-to",type:"conjunction"}],["\u0648\u0628",{normalized:"and-with",type:"conjunction"}],["\u0648\u0643",{normalized:"and-like",type:"conjunction"}],["\u0641\u0644",{normalized:"then-to",type:"conjunction"}],["\u0641\u0628",{normalized:"then-with",type:"conjunction"}],["\u0641\u0643",{normalized:"then-like",type:"conjunction"}]]),au=class{constructor(){this.name="arabic-proclitic"}setContext(e){this.context=e}canExtract(e,t){let r=e[t];return Ke.has(r)||t+1<e.length&&Ke.has(e.slice(t,t+2))}extract(e,t){if(!this.context)throw new Error("ArabicProcliticExtractor: context not set");let r=t;for(;r<e.length&&(Ve(e[r])||e[r]==="\u0640");)r++;let n=e.slice(t,r);if(this.context.isKeyword(n))return null;if(t+2<=e.length){let l=e.slice(t,t+2),c=Ke.get(l);if(c){let p=t+2;if(p<e.length&&Ve(e[p])){let m=0,d=p;for(;d<e.length&&Ve(e[d]);)m++,d++;if(m>=2)if(Ke.get(e[t])){let y=e.slice(t+1,r);if(!this.context.isKeyword(y))return{value:l,length:2,metadata:{procliticType:c.type,normalized:c.normalized}}}else return{value:l,length:2,metadata:{procliticType:c.type,normalized:c.normalized}}}}}let i=e[t],a=Ke.get(i);if(!a)return null;let o=t+1;if(o>=e.length||!Ve(e[o]))return null;let u=0,s=o;for(;s<e.length&&Ve(e[s]);)u++,s++;return u<2?null:{value:i,length:1,metadata:{procliticType:a.type,normalized:a.normalized}}}}}}),ou,gn,uu,zf=h({"src/tokenizers/extractors/arabic-temporal.ts"(){"use strict";S(),ou=Te([[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]]),gn=new Map([["\u0639\u0646\u062F\u0645\u0627",{normalized:"on",formality:"formal",confidence:.95,description:"when (formal MSA)"}],["\u062D\u064A\u0646\u0645\u0627",{normalized:"on",formality:"formal",confidence:.93,description:"when/whenever (formal)"}],["\u0639\u0646\u062F",{normalized:"on",formality:"neutral",confidence:.88,description:"at/when (neutral)"}],["\u062D\u064A\u0646",{normalized:"on",formality:"neutral",confidence:.85,description:"when/time (neutral)"}],["\u0644\u0645\u0651\u0627",{normalized:"on",formality:"dialectal",confidence:.7,description:"when (dialectal, with shadda)"}],["\u0644\u0645\u0627",{normalized:"on",formality:"dialectal",confidence:.68,description:"when (dialectal, no diacritic)"}],["\u0644\u062F\u0649",{normalized:"on",formality:"neutral",confidence:.82,description:"at/with (temporal)"}]]),uu=class{constructor(){this.name="arabic-temporal"}setContext(e){this._context=e,this._context}canExtract(e,t){for(let[r]of gn)if(e.startsWith(r,t))return!0;return!1}extract(e,t){let r=Array.from(gn.entries()).sort(([n],[i])=>i.length-n.length);for(let[n,i]of r)if(e.startsWith(n,t)){let a=t+n.length;if(a>=e.length||/\s/.test(e[a])||!ou(e[a]))return{value:n,length:n.length,metadata:{temporalFormality:i.formality,temporalConfidence:i.confidence,normalized:i.normalized,description:i.description}}}return null}}}});function kf(e){return{isLetter:n=>e.test(n),isIdentifierChar:n=>/[0-9]/.test(n)||e.test(n)}}function Cf(){return[new En("russian-keyword",/[a-zA-Zа-яА-ЯёЁ]/,su)]}function xf(){return[new En("ukrainian-keyword",/[a-zA-Zа-яА-ЯіІїЇєЄґҐьЬ']/,lu)]}var En,su,lu,cu=h({"src/tokenizers/extractors/cyrillic-keyword.ts"(){"use strict";En=class{constructor(e,t,r){this.name=e;let n=kf(t);this.isLetter=n.isLetter,this.isIdentifierChar=n.isIdentifierChar,this.prepositions=r}setContext(e){this.context=e}canExtract(e,t){return this.isLetter(e[t])}extract(e,t){if(!this.context)throw new Error(`${this.name}: context not set`);let r=t,n="";for(;r<e.length&&this.isIdentifierChar(e[r]);)n+=e[r++];if(!n)return null;let i=n.toLowerCase(),a=this.prepositions.has(i),o=this.context.lookupKeyword(i),u=o&&o.normalized!==o.native?o.normalized:void 0,s;if(!o&&this.context.normalizer){let l=this.context.normalizer.normalize(n);if(l.stem!==n&&l.confidence>=.7){let c=this.context.lookupKeyword(l.stem);c&&(s=c.normalized)}}return{value:n,length:r-t,metadata:{normalized:u||s,isPreposition:a}}}},su=new Set(["\u0432","\u0432\u043E","\u043D\u0430","\u0441","\u0441\u043E","\u043A","\u043A\u043E","\u043E","\u043E\u0431","\u043E\u0431\u043E","\u0443","\u043E\u0442","\u0434\u043E","\u0438\u0437","\u0437\u0430","\u043F\u043E","\u043F\u043E\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043F\u0435\u0440\u0435\u0434\u043E","\u043C\u0435\u0436\u0434\u0443","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u0434\u043B\u044F","\u043F\u0440\u0438","\u043F\u0440\u043E","\u043F\u043E\u0441\u043B\u0435","\u0432\u043E\u043A\u0440\u0443\u0433","\u043F\u0440\u043E\u0442\u0438\u0432","\u0432\u043C\u0435\u0441\u0442\u043E","\u043A\u0440\u043E\u043C\u0435","\u0441\u0440\u0435\u0434\u0438"]),lu=new Set(["\u0432","\u0443","\u043D\u0430","\u0437","\u0456\u0437","\u0437\u0456","\u0434\u043E","\u0432\u0456\u0434","\u043E","\u043E\u0431","\u043F\u0440\u0438","\u0434\u043B\u044F","\u043F\u0456\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043C\u0456\u0436","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u043F\u043E","\u0437\u0430","\u043F\u0440\u043E","\u043F\u0456\u0441\u043B\u044F","\u043D\u0430\u0432\u043A\u043E\u043B\u043E","\u043F\u0440\u043E\u0442\u0438","\u0437\u0430\u043C\u0456\u0441\u0442\u044C","\u043A\u0440\u0456\u043C","\u0441\u0435\u0440\u0435\u0434","\u043A"])}});function zn(e){let t=e.charCodeAt(0);return t>=2304&&t<=2431||t>=43232&&t<=43263}var pu,wf=h({"src/tokenizers/extractors/hindi-keyword.ts"(){"use strict";pu=class{constructor(){this.name="hindi-keyword"}setContext(e){this.context=e}canExtract(e,t){return zn(e[t])}extract(e,t){if(!this.context)throw new Error("HindiKeywordExtractor: context not set");let r=t,n="",i=t;for(;i<e.length&&(zn(e[i])||e[i]===" ");){if(e[i]===" "){if(i+1<e.length&&zn(e[i+1])){let s=e.slice(i),l=[" \u0915\u0947 \u0932\u093F\u090F"," \u0915\u0947 \u0938\u093E\u0925"," \u0915\u0947 \u092C\u093E\u0926"," \u0938\u0947 \u092A\u0939\u0932\u0947"," \u0928\u0939\u0940\u0902 \u0924\u094B"," \u091C\u092C \u0924\u0915"," \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902"].find(c=>s.startsWith(c));if(l){n+=l,i+=l.length;continue}}break}n+=e[i],i++}if(!n)return null;let a=this.context.lookupKeyword(n),o=a&&a.normalized!==a.native?a.normalized:void 0,u;if(!a&&this.context.normalizer){let s=this.context.normalizer.normalize(n);if(s.stem!==n&&s.confidence>=.7){let l=this.context.lookupKeyword(s.stem);l&&(u=l.normalized)}}return{value:n,length:i-r,metadata:{normalized:o||u}}}}}}),kn,Cn,mu,Af=h({"src/tokenizers/extractors/hindi-particle.ts"(){"use strict";kn=new Map([["\u0915\u094B",{role:"patient",confidence:.95}],["\u092E\u0947\u0902",{role:"destination",confidence:.9}],["\u092A\u0930",{role:"event",confidence:.85}],["\u0938\u0947",{role:"source",confidence:.9}],["\u0915\u093E",{role:"possessive",confidence:.95}],["\u0915\u0940",{role:"possessive",confidence:.95}],["\u0915\u0947",{role:"possessive",confidence:.95}],["\u0924\u0915",{role:"until",confidence:.9}],["\u0928\u0947",{role:"agent",confidence:.85}]]),Cn=new Map([["\u0915\u0947 \u0932\u093F\u090F",{role:"purpose",confidence:.95}],["\u0915\u0947 \u0938\u093E\u0925",{role:"instrument",confidence:.95}],["\u0915\u0947 \u092C\u093E\u0926",{role:"temporal-after",confidence:.9}],["\u0938\u0947 \u092A\u0939\u0932\u0947",{role:"temporal-before",confidence:.9}],["\u0928\u0939\u0940\u0902 \u0924\u094B",{role:"conditional",confidence:.85}],["\u091C\u092C \u0924\u0915",{role:"temporal-until",confidence:.9}],["\u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902",{role:"about",confidence:.9}]]),mu=class{constructor(){this.name="hindi-particle"}setContext(e){this._context=e,this._context}canExtract(e,t){for(let[i]of Cn)if(e.startsWith(i,t))return!0;let r="",n=t;for(;n<e.length&&this.isDevanagari(e[n]);)r+=e[n],n++;return kn.has(r)}extract(e,t){for(let[a,o]of Cn)if(e.startsWith(a,t))return{value:a,length:a.length,metadata:{role:o.role,confidence:o.confidence,variant:a}};let r="",n=t;for(;n<e.length&&this.isDevanagari(e[n]);)r+=e[n],n++;let i=kn.get(r);return i?{value:r,length:r.length,metadata:{role:i.role,confidence:i.confidence,variant:r}}:null}isDevanagari(e){let t=e.charCodeAt(0);return t>=2304&&t<=2431||t>=43232&&t<=43263}}}});function du(e){let t=e.charCodeAt(0);return t>=2432&&t<=2559}var fu,bf=h({"src/tokenizers/extractors/bengali-keyword.ts"(){"use strict";fu=class{constructor(){this.name="bengali-keyword"}setContext(e){this.context=e}canExtract(e,t){return du(e[t])}extract(e,t){if(!this.context)throw new Error("BengaliKeywordExtractor: context not set");let r=t,n="",i=t;for(;i<e.length&&du(e[i]);)n+=e[i],i++;if(!n)return null;let a=this.context.lookupKeyword(n),o=a&&a.normalized!==a.native?a.normalized:void 0,u;if(!a&&this.context.normalizer){let s=this.context.normalizer.normalize(n);if(s.stem!==n&&s.confidence>=.7){let l=this.context.lookupKeyword(s.stem);l&&(u=l.normalized)}}return{value:n,length:i-r,metadata:{normalized:o||u}}}}}}),xn,yu,Df=h({"src/tokenizers/extractors/bengali-particle.ts"(){"use strict";xn=new Map([["\u0995\u09C7",{role:"patient",confidence:.95}],["\u09A4\u09C7",{role:"destination",confidence:.9}],["\u098F",{role:"event",confidence:.85}],["\u09A5\u09C7\u0995\u09C7",{role:"source",confidence:.95}],["\u09B0",{role:"possessive",confidence:.95}],["\u098F\u09B0",{role:"possessive",confidence:.95}],["\u09A6\u09BF\u09AF\u09BC\u09C7",{role:"instrument",confidence:.9}],["\u099C\u09A8\u09CD\u09AF",{role:"purpose",confidence:.9}],["\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4",{role:"until",confidence:.9}],["\u09AE\u09A7\u09CD\u09AF\u09C7",{role:"location",confidence:.85}]]),yu=class{constructor(){this.name="bengali-particle"}setContext(e){this._context=e,this._context}canExtract(e,t){let r="",n=t;for(;n<e.length&&this.isBengali(e[n]);)r+=e[n],n++;return xn.has(r)}extract(e,t){let r="",n=t;for(;n<e.length&&this.isBengali(e[n]);)r+=e[n],n++;let i=xn.get(r);return i?{value:r,length:r.length,metadata:{role:i.role,confidence:i.confidence,variant:r}}:null}isBengali(e){let t=e.charCodeAt(0);return t>=2432&&t<=2559}}}});function vt(e){let t=e.charCodeAt(0);return t>=3584&&t<=3711}function wn(e){return/[a-zA-Z0-9_]/.test(e)}function Tf(){return[new hu]}var hu,Sf=h({"src/tokenizers/extractors/thai-keyword.ts"(){"use strict";hu=class{constructor(){this.name="thai-keyword"}setContext(e){this.context=e}canExtract(e,t){return vt(e[t])||wn(e[t])}extract(e,t){if(!this.context)throw new Error("ThaiKeywordExtractor: context not set");let r=e[t];return vt(r)?this.extractThaiWord(e,t):wn(r)?this.extractAsciiWord(e,t):null}extractThaiWord(e,t){if(!this.context)return null;let r=null,n=t,i="";for(;n<e.length&&vt(e[n]);){i+=e[n],n++;let u=this.context.lookupKeyword(i);u&&(r={word:i,entry:u})}if(r){let u=r.entry.normalized!==r.entry.native?r.entry.normalized:void 0;return{value:r.word,length:r.word.length,metadata:{normalized:u}}}let a=t,o="";for(;a<e.length&&vt(e[a])&&!(o.length>0&&this.isKeywordStart(e,a));)o+=e[a],a++;return o?{value:o,length:o.length,metadata:{}}:null}extractAsciiWord(e,t){if(!this.context)return null;let r=t,n="";for(;r<e.length&&wn(e[r]);)n+=e[r++];if(!n)return null;let i=n.toLowerCase(),a=this.context.lookupKeyword(i),o=a&&a.normalized!==a.native?a.normalized:void 0;return{value:n,length:n.length,metadata:{normalized:o}}}isKeywordStart(e,t){if(!this.context)return!1;let r=t,n="";for(;r<e.length&&vt(e[r]);){if(n+=e[r],r++,this.context.lookupKeyword(n))return!0;if(n.length>10)break}return!1}}}});function Bf(e){return/[a-zA-Z_]/.test(e)}function Ff(e){return/[a-zA-Z0-9_]/.test(e)}function Pf(){return[new vu]}var vu,Lf=h({"src/tokenizers/extractors/malay-keyword.ts"(){"use strict";vu=class{constructor(){this.name="malay-keyword"}setContext(e){this.context=e}canExtract(e,t){return Bf(e[t])}extract(e,t){if(!this.context)throw new Error("MalayKeywordExtractor: context not set");let r=t,n="";for(;r<e.length&&Ff(e[r]);)n+=e[r++];if(!n)return null;let i=n.toLowerCase(),a=this.context.lookupKeyword(i),o=a&&a.normalized!==a.native?a.normalized:void 0;return{value:n,length:n.length,metadata:{normalized:o}}}}}});function jf(e){return/[a-zA-Z_]/.test(e)}function _f(e){return/[a-zA-Z0-9_]/.test(e)}function Rf(){return[new Eu]}var gu,Eu,Nf=h({"src/tokenizers/extractors/tagalog-keyword.ts"(){"use strict";gu=new Set(["sa","ng","para","mula","hanggang","gaya","tulad","kasama","para sa"]),Eu=class{constructor(){this.name="tagalog-keyword"}setContext(e){this.context=e}canExtract(e,t){return jf(e[t])}extract(e,t){if(!this.context)throw new Error("TagalogKeywordExtractor: context not set");let r=t,n="";for(;r<e.length&&_f(e[r]);)n+=e[r++];if(!n)return null;let i=n.toLowerCase(),a=gu.has(i),o=this.context.lookupKeyword(i),u=o&&o.normalized!==o.native?o.normalized:void 0,s;if(!o&&this.context.normalizer){let l=this.context.normalizer.normalize(n);if(l.stem!==n&&l.confidence>=.7){let c=this.context.lookupKeyword(l.stem);c&&(s=c.normalized)}}return{value:n,length:n.length,metadata:{normalized:u||s,isPreposition:a}}}}}});function If(){let e=/[a-zA-ZąęćńóśźżłĄĘĆŃÓŚŹŻŁ]/;return{isLetter:n=>e.test(n),isIdentifierChar:n=>/[0-9]/.test(n)||e.test(n)}}function Of(){return[new xu]}var zu,ku,Cu,xu,Mf=h({"src/tokenizers/extractors/polish-keyword.ts"(){"use strict";zu=new Set(["do","od","z","ze","w","we","na","po","pod","przed","za","nad","mi\u0119dzy","miedzy","przez","dla","bez","o","przy","u","wed\u0142ug","wedlug","mimo","w\u015Br\xF3d","wsrod","obok","poza","wok\xF3\u0142","wokol","przeciw","ku"]),{isLetter:ku,isIdentifierChar:Cu}=If(),xu=class{constructor(){this.name="polish-keyword"}setContext(e){this.context=e}canExtract(e,t){return ku(e[t])}extract(e,t){if(!this.context)throw new Error("PolishKeywordExtractor: context not set");let r=t,n="";for(;r<e.length&&Cu(e[r]);)n+=e[r++];if(!n)return null;let i=n.toLowerCase(),a=zu.has(i),o=this.context.lookupKeyword(i),u=o&&o.normalized!==o.native?o.normalized:void 0,s;if(!o&&this.context.normalizer){let l=this.context.normalizer.normalize(n);if(l.stem!==n&&l.confidence>=.7){let c=this.context.lookupKeyword(l.stem);c&&(s=c.normalized)}}return{value:n,length:r-t,metadata:{normalized:u||s,isPreposition:a}}}}}});function Wf(){let e=/[a-zA-Z]/;return{isLetter:n=>e.test(n),isIdentifierChar:n=>/[0-9]/.test(n)||e.test(n)}}function qf(){return[new Du]}var wu,Au,bu,Du,$f=h({"src/tokenizers/extractors/indonesian-keyword.ts"(){"use strict";wu=new Set(["di","ke","dari","pada","dengan","tanpa","untuk","oleh","antara","sebelum","sesudah","setelah","selama","sampai","hingga","sejak","menuju","tentang","terhadap","melalui","dalam","luar"]),{isLetter:Au,isIdentifierChar:bu}=Wf(),Du=class{constructor(){this.name="indonesian-keyword"}setContext(e){this.context=e}canExtract(e,t){return Au(e[t])}extract(e,t){if(!this.context)throw new Error("IndonesianKeywordExtractor: context not set");let r=t,n="";for(;r<e.length&&bu(e[r]);)n+=e[r++];if(!n)return null;let i=n.toLowerCase(),a=wu.has(i),o=this.context.lookupKeyword(i),u=o&&o.normalized!==o.native?o.normalized:void 0,s;if(!o&&this.context.normalizer){let l=this.context.normalizer.normalize(n);if(l.stem!==n&&l.confidence>=.7){let c=this.context.lookupKeyword(l.stem);c&&(s=c.normalized)}}return{value:n,length:r-t,metadata:{normalized:u||s,isPreposition:a}}}}}});function Vf(){let e=/[a-zA-Z]/;return{isLetter:n=>e.test(n),isIdentifierChar:n=>/[0-9]/.test(n)||e.test(n)}}function Kf(){return[new Fu]}var Tu,Su,Bu,Fu,Hf=h({"src/tokenizers/extractors/swahili-keyword.ts"(){"use strict";Tu=new Set(["kwa","na","katika","kwenye","kutoka","hadi","mpaka","kabla","baada","wakati","bila","kuhusu","karibu","mbele","nyuma","ndani","nje","juu","chini","kati"]),{isLetter:Su,isIdentifierChar:Bu}=Vf(),Fu=class{constructor(){this.name="swahili-keyword"}setContext(e){this.context=e}canExtract(e,t){return Su(e[t])}extract(e,t){if(!this.context)throw new Error("SwahiliKeywordExtractor: context not set");let r=t,n="";for(;r<e.length&&Bu(e[r]);)n+=e[r++];if(!n)return null;let i=n.toLowerCase(),a=Tu.has(i),o=this.context.lookupKeyword(i),u=o&&o.normalized!==o.native?o.normalized:void 0,s;if(!o&&this.context.normalizer){let l=this.context.normalizer.normalize(n);if(l.stem!==n&&l.confidence>=.7){let c=this.context.lookupKeyword(l.stem);c&&(s=c.normalized)}}return{value:n,length:r-t,metadata:{normalized:u||s,isPreposition:a}}}}}});function An(e){let t=e.charCodeAt(0);return t>=65&&t<=90||t>=97&&t<=122?!0:"\xE7\xC7\u011F\u011E\u0131\u0130\xF6\xD6\u015F\u015E\xFC\xDC".includes(e)}function Gf(){return new ju}var Pu,Lu,ju,Uf=h({"src/tokenizers/extractors/turkish-keyword.ts"(){"use strict";Pu=new Set(["ile","i\xE7in","kadar","gibi","\xF6nce","\xFCzerinde","alt\u0131nda","i\xE7inde","d\u0131\u015F\u0131nda","aras\u0131nda","kar\u015F\u0131","g\xF6re","ra\u011Fmen","do\u011Fru","boyunca"]),Lu=new Set(["de","da","te","ta","den","dan","ten","tan","e","a","ye","ya","i","\u0131","u","\xFC","in","\u0131n","un","\xFCn","le","la","yle","yla"]),ju=class{constructor(){this.name="turkish-keyword"}setContext(e){this.context=e}canExtract(e,t){return An(e[t])}extract(e,t){if(!this.context)throw new Error("TurkishKeywordExtractor: context not set");let r=t,n=12;for(let p=Math.min(n,e.length-r);p>=2;p--){let m=e.slice(r,r+p),d=!0;for(let y=0;y<m.length;y++)if(!An(m[y])){d=!1;break}if(!d)continue;let f=this.context.lookupKeyword(m);if(f)return{value:m,length:p,metadata:{normalized:f.normalized!==f.native?f.normalized:void 0}};if(this.context.normalizer){let y=this.context.normalizer.normalize(m);if(y.stem!==m&&y.confidence>=.7){let E=this.context.lookupKeyword(y.stem);if(E)return{value:m,length:p,metadata:{normalized:E.normalized,stem:y.stem,stemConfidence:y.confidence}}}}}let i="",a=t;for(;a<e.length&&An(e[a]);)i+=e[a],a++;for(let p=i.length;p>=2;p--){let m=i.substring(0,p),d=this.context.lookupKeyword(m);if(d)return{value:m,length:p,metadata:{normalized:d.normalized!==d.native?d.normalized:void 0}}}if(!i||!i)return null;if(Pu.has(i.toLowerCase()))return{value:i,length:a-r,metadata:{postpositionValue:i.toLowerCase()}};if(Lu.has(i.toLowerCase()))return{value:i,length:a-r,metadata:{caseSuffixValue:i.toLowerCase()}};let o=this.context.lookupKeyword(i),u=o&&o.normalized!==o.native?o.normalized:void 0,s,l,c;if(!o&&this.context.normalizer){let p=this.context.normalizer.normalize(i);if(p.stem!==i&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(s=m.normalized,l=p.stem,c=p.confidence)}}return{value:i,length:a-r,metadata:{normalized:u||s,stem:l,stemConfidence:c}}}}}});function bn(e){let t=e.charCodeAt(0);return t>=65&&t<=90||t>=97&&t<=122?!0:e==="\xF1"||e==="\xD1"||e==="'"||e==="\u2019"}function Xf(){return new Nu}var _u,Ru,Nu,Yf=h({"src/tokenizers/extractors/quechua-keyword.ts"(){"use strict";_u=new Set(["-ta","-man","-manta","-pi","-wan","-paq","-kama","-rayku","-hina","ta","man","manta","pi","wan","paq","kama","hina","pa"]),Ru=new Set(["kama","hina","rayku","paq"]),Nu=class{constructor(){this.name="quechua-keyword"}setContext(e){this.context=e}canExtract(e,t){return bn(e[t])}extract(e,t){if(!this.context)throw new Error("QuechuaKeywordExtractor: context not set");let r=t,n=12;for(let l=Math.min(n,e.length-r);l>=2;l--){let c=e.slice(r,r+l),p=!0;for(let d=0;d<c.length;d++)if(!bn(c[d])){p=!1;break}if(!p)continue;let m=this.context.lookupKeyword(c);if(m)return{value:c,length:l,metadata:{normalized:m.normalized!==m.native?m.normalized:void 0}};if(this.context.normalizer){let d=this.context.normalizer.normalize(c);if(d.stem!==c&&d.confidence>=.7){let f=this.context.lookupKeyword(d.stem);if(f)return{value:c,length:l,metadata:{normalized:f.normalized}}}}}let i="",a=t;for(;a<e.length&&bn(e[a])&&!(i.length>0&&this.context.isKeywordStart(e,a));)i+=e[a],a++;if(!i)return null;if(_u.has(i.toLowerCase()))return{value:i,length:a-r,metadata:{suffixValue:i.toLowerCase()}};if(Ru.has(i.toLowerCase()))return{value:i,length:a-r,metadata:{postpositionValue:i.toLowerCase()}};let o=this.context.lookupKeyword(i),u=o&&o.normalized!==o.native?o.normalized:void 0,s;if(!o&&this.context.normalizer){let l=this.context.normalizer.normalize(i);if(l.stem!==i&&l.confidence>=.7){let c=this.context.lookupKeyword(l.stem);c&&(s=c.normalized)}}return{value:i,length:a-r,metadata:{normalized:u||s}}}}}});function Jf(){return[new Mu]}var Dn,Iu,Ou,Mu,Qf=h({"src/tokenizers/extractors/hebrew-keyword.ts"(){"use strict";S(),Dn=Te([[1424,1535],[64285,64335]]),Iu=new Set(["\u05E2\u05DC","\u05D0\u05EA","\u05D0\u05DC","\u05DE\u05DF","\u05E2\u05DD","\u05D1\u05EA\u05D5\u05DA","\u05DE\u05EA\u05D5\u05DA","\u05DC\u05D9\u05D3","\u05D0\u05D7\u05E8\u05D9","\u05DC\u05E4\u05E0\u05D9","\u05D1\u05D9\u05DF","\u05E2\u05D3","\u05E9\u05DC"]),Ou=new Set(["\u05D5"]),Mu=class{constructor(){this.name="hebrew-keyword"}setContext(e){this.context=e}canExtract(e,t){return Dn(e[t])}extract(e,t){if(!this.context)throw new Error("HebrewKeywordExtractor: context not set");let r=t;this.context.isKeywordStart(e,t);let n="",i=t;for(;i<e.length&&Dn(e[i]);)n+=e[i],i++;if(!n)return null;let a=this.context.lookupKeyword(n),o=a&&a.normalized!==a.native?a.normalized:void 0;if(Iu.has(n))return{value:n,length:i-r,metadata:{prepositionValue:n,normalized:o}};if(Ou.has(n))return{value:n,length:i-r,metadata:{conjunctionValue:n,normalized:o}};let u;if(!a&&this.context.normalizer){let s=this.context.normalizer.normalize(n);if(s.stem!==n&&s.confidence>=.7){let l=this.context.lookupKeyword(s.stem);l&&(u=l.normalized)}}return{value:n,length:i-r,metadata:{normalized:o||u}}}}}});function Zf(){return new qu}var Tn,gt,Wu,Sn,qu,ey=h({"src/tokenizers/extractors/hebrew-proclitic.ts"(){"use strict";S(),Tn=Te([[1424,1535],[64285,64335]]),gt=new Map([["\u05D1","on"],["\u05DC","to"],["\u05DE","from"],["\u05DB","as"],["\u05D4","the"],["\u05D5","and"],["\u05E9","that"]]),Wu=new Set(["\u05D1","\u05DB"]),Sn=new Set(["\u05DC\u05D7\u05D9\u05E6\u05D4","\u05E7\u05DC\u05D9\u05E7","\u05E9\u05DC\u05D9\u05D7\u05D4","\u05D4\u05D2\u05E9\u05D4","\u05E8\u05D9\u05D7\u05D5\u05E3","\u05DE\u05E2\u05D1\u05E8","\u05E9\u05D9\u05E0\u05D5\u05D9","\u05E2\u05D3\u05DB\u05D5\u05DF","\u05E7\u05DC\u05D8","\u05D4\u05D6\u05E0\u05D4","\u05DE\u05D9\u05E7\u05D5\u05D3","\u05D8\u05E9\u05D8\u05D5\u05E9","\u05D8\u05E2\u05D9\u05E0\u05D4","\u05D2\u05DC\u05D9\u05DC\u05D4"]),qu=class{constructor(){this.name="hebrew-proclitic"}setContext(e){this.context=e}canExtract(e,t){let r=e[t];return gt.has(r)&&t+1<e.length&&Tn(e[t+1])}extract(e,t){if(!this.context)throw new Error("HebrewProcliticExtractor: context not set");let r=e[t],n=gt.get(r);if(!n)return null;let i=t;for(;i<e.length&&Tn(e[i]);)i++;let a=e.slice(t,i);if(this.context?.lookupKeyword(a))return null;if(t+1<e.length&>.has(e[t+1])){let m=e.slice(t+1,i),d=this.context?.lookupKeyword(m),f=Sn.has(m);if(!(d||f||m.length>=3))return null}let u=e.slice(t+1,i),s=this.context?.lookupKeyword(u),l=Wu.has(r),c=Sn.has(u);return l&&c?{value:r,length:1,metadata:{normalized:n,procliticType:n,isEventMarker:!0}}:u.length===1&>.has(u)||!s&&!c&&u.length<2?null:{value:r,length:1,metadata:{normalized:n,procliticType:n,isEventMarker:l&&s}}}}}});function ty(e){let t=e.charCodeAt(0);return t>=65&&t<=90||t>=97&&t<=122||t===95||t===36}function ry(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95||t===36}var le,ye=h({"src/tokenizers/extractors/ascii-identifier.ts"(){"use strict";le=class{constructor(){this.name="ascii-identifier"}setContext(e){this.context=e}canExtract(e,t){return ty(e[t])}extract(e,t){if(!this.context)throw new Error("AsciiIdentifierExtractor: context not set");let r=t,n="",i=t;for(;i<e.length&&ry(e[i]);)n+=e[i],i++;if(!n)return null;let a=this.context.lookupKeyword(n),o=a&&a.normalized!==a.native?a.normalized:void 0;return{value:n,length:i-r,metadata:{normalized:o}}}}}}),$u=h({"src/tokenizers/extractors/index.ts"(){"use strict";Q4(),Z4(),tf(),rf()}});function O(){return[new un,new on,new sn,new an]}var M=h({"src/tokenizers/extractor-helpers.ts"(){"use strict";$u()}}),Vu={};k(Vu,{ArabicTokenizer:()=>Bn,arabicTokenizer:()=>sr});var Ku,Hu,Gu,Bn,sr,Fn=h({"src/tokenizers/arabic.ts"(){"use strict";S(),X4(),ht(),I(),M(),gf(),ye(),Ef(),zf(),Ku=new Set(["\u0648\u0644","\u0648\u0628","\u0648\u0643","\u0641\u0644","\u0641\u0628","\u0641\u0643"]),Hu=new Set(["\u0641\u064A","\u0639\u0644\u0649","\u0645\u0646","\u0625\u0644\u0649","\u0627\u0644\u0649","\u0645\u0639","\u0639\u0646","\u0642\u0628\u0644","\u0628\u0639\u062F","\u0628\u064A\u0646","\u0628","\u0644","\u0643"]),Gu=[{native:"\u0635\u062D\u064A\u062D",normalized:"true"},{native:"\u062E\u0637\u0623",normalized:"false"},{native:"null",normalized:"null"},{native:"\u0641\u0627\u0631\u063A",normalized:"null"},{native:"\u063A\u064A\u0631 \u0645\u0639\u0631\u0641",normalized:"undefined"},{native:"\u0627\u0644\u0623\u0648\u0644",normalized:"first"},{native:"\u0623\u0648\u0644",normalized:"first"},{native:"\u0627\u0644\u0623\u062E\u064A\u0631",normalized:"last"},{native:"\u0622\u062E\u0631",normalized:"last"},{native:"\u0627\u0644\u062A\u0627\u0644\u064A",normalized:"next"},{native:"\u0627\u0644\u0633\u0627\u0628\u0642",normalized:"previous"},{native:"\u0627\u0644\u0623\u0642\u0631\u0628",normalized:"closest"},{native:"\u0627\u0644\u0623\u0628",normalized:"parent"},{native:"\u0627\u0644\u0646\u0642\u0631",normalized:"click"},{native:"\u0646\u0642\u0631",normalized:"click"},{native:"\u0627\u0644\u0625\u062F\u062E\u0627\u0644",normalized:"input"},{native:"\u0625\u062F\u062E\u0627\u0644",normalized:"input"},{native:"\u0627\u0644\u062A\u063A\u064A\u064A\u0631",normalized:"change"},{native:"\u062A\u063A\u064A\u064A\u0631",normalized:"change"},{native:"\u0627\u0644\u0625\u0631\u0633\u0627\u0644",normalized:"submit"},{native:"\u0625\u0631\u0633\u0627\u0644",normalized:"submit"},{native:"\u0627\u0644\u062A\u0631\u0643\u064A\u0632",normalized:"focus"},{native:"\u0641\u0642\u062F\u0627\u0646 \u0627\u0644\u062A\u0631\u0643\u064A\u0632",normalized:"blur"},{native:"\u0636\u063A\u0637",normalized:"keydown"},{native:"\u0631\u0641\u0639",normalized:"keyup"},{native:"\u062A\u0645\u0631\u064A\u0631 \u0627\u0644\u0641\u0623\u0631\u0629",normalized:"mouseover"},{native:"\u0645\u063A\u0627\u062F\u0631\u0629 \u0627\u0644\u0641\u0623\u0631\u0629",normalized:"mouseout"},{native:"\u062A\u062D\u0645\u064A\u0644",normalized:"load"},{native:"\u062A\u0645\u0631\u064A\u0631",normalized:"scroll"},{native:"\u0647\u064A",normalized:"it"},{native:"\u062B\u0627\u0646\u064A\u0629",normalized:"s"},{native:"\u062B\u0648\u0627\u0646\u064A",normalized:"s"},{native:"\u0645\u0644\u064A \u062B\u0627\u0646\u064A\u0629",normalized:"ms"},{native:"\u062F\u0642\u064A\u0642\u0629",normalized:"m"},{native:"\u062F\u0642\u0627\u0626\u0642",normalized:"m"},{native:"\u0633\u0627\u0639\u0629",normalized:"h"},{native:"\u0633\u0627\u0639\u0627\u062A",normalized:"h"},{native:"\u0639\u0646\u062F\u0645\u0627",normalized:"on"},{native:"\u062D\u064A\u0646\u0645\u0627",normalized:"on"},{native:"\u0639\u0646\u062F",normalized:"on"},{native:"\u062D\u064A\u0646",normalized:"on"},{native:"\u0644\u0645\u0651\u0627",normalized:"on"},{native:"\u0644\u0645\u0627",normalized:"on"},{native:"\u0644\u062F\u0649",normalized:"on"}],Bn=class extends j{constructor(){super(),this.language="ar",this.direction="rtl",this.initializeKeywordsFromProfile($e,Gu),this.normalizer=new nn,this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractor(new le),this.registerExtractor(new uu),this.registerExtractor(new au),this.registerExtractor(new iu),this.registerExtractor(new _),this.registerExtractor(new R)}tokenizeWithExtractors(e){let t=[],r=0;for(;r<e.length;){for(;r<e.length&&de(e[r]);)r++;if(r>=e.length)break;let n=!1;for(let i of this.extractors)if(i.canExtract(e,r)){let a=i.extract(e,r);if(a){let o=a.metadata?.normalized,u=a.metadata?.stem,s=a.metadata?.stemConfidence,l={};if(a.metadata)for(let[m,d]of Object.entries(a.metadata))m!=="normalized"&&m!=="stem"&&m!=="stemConfidence"&&(l[m]=d);let c;l.procliticType==="conjunction"?c="conjunction":l.procliticType==="preposition"?c="particle":c=this.classifyToken(a.value);let p={};o&&(p.normalized=o),u&&(p.stem=u),s!==void 0&&(p.stemConfidence=s),Object.keys(l).length>0&&(p.metadata=l),t.push($(a.value,c,q(r,r+a.length),Object.keys(p).length>0?p:void 0)),r+=a.length,n=!0;break}}if(!n){let i=e[r],a=this.classifyUnknownChar(i);t.push($(i,a,q(r,r+1))),r++}}return new xe(t,this.language)}classifyToken(e){return Ku.has(e)?"conjunction":Hu.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}},sr=new Bn}});function Uu(e){return/[\u0980-\u09FF]/u.test(e)}var Xu,Yu,Ju,ny=h({"src/tokenizers/morphology/bengali-normalizer.ts"(){"use strict";H(),Xu=[{suffix:"\u099A\u09CD\u099B\u09C7 \u0986\u099B\u09C7",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099A\u09CD\u099B \u0986\u099B\u09BF",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099A\u09CD\u099B\u09C7\u09A8 \u0986\u099B\u09C7\u09A8",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u09C7\u099B\u09C7\u09A8",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u09C7\u099B\u09C7",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u09C7\u099B",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u09AC\u09C7\u09A8",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u09AC\u09C7",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u09AC\u09CB",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u09B2\u09C7\u09A8",replacement:"",confidence:.85,type:"past",minStemLength:1},{suffix:"\u09B2\u09CB",replacement:"",confidence:.85,type:"past",minStemLength:1},{suffix:"\u09B2",replacement:"",confidence:.85,type:"past",minStemLength:2},{suffix:"\u09C1\u09A8",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u09CB",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u099A\u09CD\u099B\u09C7",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099A\u09CD\u099B",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099A\u09CD\u099B\u09BF",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u09BE",replacement:"",confidence:.9,type:"dictionary",minStemLength:1},{suffix:"\u09C7",replacement:"",confidence:.85,type:"present",minStemLength:2},{suffix:"\u09BF",replacement:"",confidence:.85,type:"present",minStemLength:2},{suffix:"\u09CB",replacement:"",confidence:.85,type:"present",minStemLength:2}],Yu=class{constructor(){this.language="bn"}isNormalizable(e){return e.length<2?!1:Uu(e)}normalize(e){let t=this.tryConjugationNormalization(e);return t||D(e)}tryConjugationNormalization(e){for(let t of Xu)if(e.endsWith(t.suffix)){let r=Array.from(e),n=Array.from(t.suffix),i=r.slice(0,r.length-n.length),a=i.join("")+t.replacement,o=t.minStemLength??1;if(i.length<o||a.length>0&&!Uu(a))continue;return v(a,t.confidence,{removedSuffixes:[t.suffix],conjugationType:t.type})}return null}},Ju=new Yu}}),Qu={};k(Qu,{bengaliProfile:()=>Et});var Et,lr=h({"src/generators/profiles/bengali.ts"(){"use strict";Et={code:"bn",name:"Bengali",nativeName:"\u09AC\u09BE\u0982\u09B2\u09BE",direction:"ltr",script:"bengali",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"end",suffixes:["\u09C1\u09A8","\u09CB","\u09BE","\u09C7","\u09BF"],subjectDrop:!0},references:{me:"\u0986\u09AE\u09BF",it:"\u098F\u099F\u09BF",you:"\u0986\u09AA\u09A8\u09BF",result:"\u09AB\u09B2\u09BE\u09AB\u09B2",event:"\u0998\u099F\u09A8\u09BE",target:"\u09B2\u0995\u09CD\u09B7\u09CD\u09AF",body:"\u09AC\u09A1\u09BF"},possessive:{marker:"\u09B0",markerPosition:"between",keywords:{\u0986\u09AE\u09BE\u09B0:"me",\u09A4\u09CB\u09AE\u09BE\u09B0:"you",\u0986\u09AA\u09A8\u09BE\u09B0:"you",\u09A4\u09BE\u09B0:"it",\u098F\u09B0:"it"}},roleMarkers:{patient:{primary:"\u0995\u09C7",position:"after"},destination:{primary:"\u09A4\u09C7",alternatives:["\u098F"],position:"after"},source:{primary:"\u09A5\u09C7\u0995\u09C7",position:"after"},style:{primary:"\u09A6\u09BF\u09AF\u09BC\u09C7",position:"after"},event:{primary:"\u09A4\u09C7",position:"after"}},keywords:{toggle:{primary:"\u099F\u0997\u09B2",normalized:"toggle"},add:{primary:"\u09AF\u09CB\u0997",alternatives:["\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"],normalized:"add"},remove:{primary:"\u09B8\u09B0\u09BE\u09A8",alternatives:["\u09B8\u09B0\u09BF\u09AF\u09BC\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8","\u09AE\u09C1\u099B\u09C1\u09A8"],normalized:"remove"},put:{primary:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"],normalized:"put"},append:{primary:"\u09B6\u09C7\u09B7\u09C7 \u09AF\u09CB\u0997",alternatives:[],normalized:"append"},prepend:{primary:"\u09B6\u09C1\u09B0\u09C1\u09A4\u09C7 \u09AF\u09CB\u0997",alternatives:[],normalized:"prepend"},take:{primary:"\u09A8\u09BF\u09A8",alternatives:["\u09A8\u09C7"],normalized:"take"},make:{primary:"\u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09C1\u09A8",alternatives:["\u09AC\u09BE\u09A8\u09BE\u09A8"],normalized:"make"},clone:{primary:"\u0995\u09CD\u09B2\u09CB\u09A8",alternatives:["\u09AA\u09CD\u09B0\u09A4\u09BF\u09B2\u09BF\u09AA\u09BF"],normalized:"clone"},swap:{primary:"\u09AC\u09A6\u09B2",alternatives:[],normalized:"swap"},morph:{primary:"\u09B0\u09C2\u09AA\u09BE\u09A8\u09CD\u09A4\u09B0",alternatives:[],normalized:"morph"},set:{primary:"\u09B8\u09C7\u099F",alternatives:["\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09A3"],normalized:"set"},get:{primary:"\u09AA\u09BE\u09A8",normalized:"get"},increment:{primary:"\u09AC\u09C3\u09A6\u09CD\u09A7\u09BF",alternatives:["\u09AC\u09BE\u09A1\u09BC\u09BE\u09A8"],normalized:"increment"},decrement:{primary:"\u09B9\u09CD\u09B0\u09BE\u09B8",alternatives:["\u0995\u09AE\u09BE\u09A8"],normalized:"decrement"},log:{primary:"\u09B2\u0997",alternatives:["\u09B0\u09C7\u0995\u09B0\u09CD\u09A1"],normalized:"log"},show:{primary:"\u09A6\u09C7\u0996\u09BE\u09A8",alternatives:["\u09A6\u09C7\u0996\u09BE\u0993"],normalized:"show"},hide:{primary:"\u09B2\u09C1\u0995\u09BE\u09A8",alternatives:["\u09B2\u09C1\u0995\u09BE\u0993"],normalized:"hide"},transition:{primary:"\u09B8\u0982\u0995\u09CD\u09B0\u09AE\u09A3",alternatives:[],normalized:"transition"},on:{primary:"\u09A4\u09C7",alternatives:["\u098F"],normalized:"on"},trigger:{primary:"\u099F\u09CD\u09B0\u09BF\u0997\u09BE\u09B0",alternatives:[],normalized:"trigger"},send:{primary:"\u09AA\u09BE\u09A0\u09BE\u09A8",alternatives:["\u09AA\u09BE\u09A0\u09BE\u0993"],normalized:"send"},focus:{primary:"\u09AB\u09CB\u0995\u09BE\u09B8",alternatives:["\u09AE\u09A8\u09CB\u09AF\u09CB\u0997"],normalized:"focus"},blur:{primary:"\u099D\u09BE\u09AA\u09B8\u09BE",alternatives:["\u09AB\u09CB\u0995\u09BE\u09B8_\u09B8\u09B0\u09BE\u09A8"],normalized:"blur"},click:{primary:"\u0995\u09CD\u09B2\u09BF\u0995",normalized:"click"},hover:{primary:"\u09B9\u09CB\u09AD\u09BE\u09B0",alternatives:["\u0989\u09AA\u09B0\u09C7_\u09B0\u09BE\u0996\u09C1\u09A8"],normalized:"hover"},submit:{primary:"\u09B8\u09BE\u09AC\u09AE\u09BF\u099F",alternatives:["\u099C\u09AE\u09BE"],normalized:"submit"},input:{primary:"\u0987\u09A8\u09AA\u09C1\u099F",alternatives:["\u09AA\u09CD\u09B0\u09AC\u09C7\u09B6"],normalized:"input"},change:{primary:"\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8",normalized:"change"},go:{primary:"\u09AF\u09BE\u09A8",alternatives:["\u09AF\u09BE\u0993"],normalized:"go"},wait:{primary:"\u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE",normalized:"wait"},fetch:{primary:"\u0986\u09A8\u09C1\u09A8",alternatives:[],normalized:"fetch"},settle:{primary:"\u09B8\u09CD\u09A5\u09BF\u09B0",alternatives:[],normalized:"settle"},if:{primary:"\u09AF\u09A6\u09BF",alternatives:[],normalized:"if"},when:{primary:"\u09AF\u0996\u09A8",normalized:"when"},where:{primary:"\u0995\u09CB\u09A5\u09BE\u09AF\u09BC",normalized:"where"},else:{primary:"\u09A8\u09A4\u09C1\u09AC\u09BE",alternatives:["\u09A8\u09BE \u09B9\u09B2\u09C7"],normalized:"else"},repeat:{primary:"\u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF",alternatives:["\u09AC\u09BE\u09B0 \u09AC\u09BE\u09B0"],normalized:"repeat"},for:{primary:"\u099C\u09A8\u09CD\u09AF",alternatives:[],normalized:"for"},while:{primary:"\u09AF\u09A4\u0995\u09CD\u09B7\u09A3",alternatives:[],normalized:"while"},continue:{primary:"\u099A\u09BE\u09B2\u09BF\u09AF\u09BC\u09C7 \u09AF\u09BE\u09A8",alternatives:[],normalized:"continue"},halt:{primary:"\u09A5\u09BE\u09AE\u09C1\u09A8",alternatives:["\u09A5\u09BE\u09AE\u09BE\u0993"],normalized:"halt"},throw:{primary:"\u09A8\u09BF\u0995\u09CD\u09B7\u09C7\u09AA",alternatives:["\u099B\u09C1\u0981\u09A1\u09BC\u09C7 \u09A6\u09BF\u09A8"],normalized:"throw"},call:{primary:"\u0995\u09B2",alternatives:["\u09A1\u09BE\u0995\u09C1\u09A8"],normalized:"call"},return:{primary:"\u09AB\u09BF\u09B0\u09C1\u09A8",alternatives:["\u09AB\u09C7\u09B0\u09A4 \u09A6\u09BF\u09A8"],normalized:"return"},then:{primary:"\u09A4\u09BE\u09B0\u09AA\u09B0",alternatives:["\u09A4\u0996\u09A8"],normalized:"then"},and:{primary:"\u098F\u09AC\u0982",alternatives:[],normalized:"and"},end:{primary:"\u09B6\u09C7\u09B7",alternatives:["\u09B8\u09AE\u09BE\u09AA\u09CD\u09A4"],normalized:"end"},js:{primary:"\u099C\u09C7\u098F\u09B8",alternatives:["js"],normalized:"js"},async:{primary:"\u0985\u09CD\u09AF\u09BE\u09B8\u09BF\u0999\u09CD\u0995",alternatives:[],normalized:"async"},tell:{primary:"\u09AC\u09B2\u09C1\u09A8",alternatives:["\u09AC\u09B2"],normalized:"tell"},default:{primary:"\u09A1\u09BF\u09AB\u09B2\u09CD\u099F",alternatives:[],normalized:"default"},init:{primary:"\u09B6\u09C1\u09B0\u09C1",alternatives:[],normalized:"init"},behavior:{primary:"\u0986\u099A\u09B0\u09A3",alternatives:[],normalized:"behavior"},install:{primary:"\u0987\u09A8\u09B8\u09CD\u099F\u09B2",alternatives:[],normalized:"install"},measure:{primary:"\u09AE\u09BE\u09AA\u09C1\u09A8",alternatives:[],normalized:"measure"},beep:{primary:"\u09AC\u09C0\u09AA",alternatives:[],normalized:"beep"},break:{primary:"\u09AD\u09BE\u0999\u09C1\u09A8",alternatives:[],normalized:"break"},copy:{primary:"\u0995\u09AA\u09BF",alternatives:[],normalized:"copy"},exit:{primary:"\u09AC\u09C7\u09B0",alternatives:[],normalized:"exit"},pick:{primary:"\u09AC\u09BE\u099B\u09C1\u09A8",alternatives:[],normalized:"pick"},render:{primary:"\u09B0\u09C7\u09A8\u09CD\u09A1\u09BE\u09B0",alternatives:[],normalized:"render"},into:{primary:"\u09AD\u09BF\u09A4\u09B0\u09C7",normalized:"into"},before:{primary:"\u0986\u0997\u09C7",alternatives:[],normalized:"before"},after:{primary:"\u09AA\u09B0\u09C7",alternatives:[],normalized:"after"},until:{primary:"\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4",alternatives:[],normalized:"until"},event:{primary:"\u0998\u099F\u09A8\u09BE",alternatives:[],normalized:"event"},from:{primary:"\u09A5\u09C7\u0995\u09C7",normalized:"from"}},tokenization:{particles:["\u0995\u09C7","\u09A4\u09C7","\u09A5\u09C7\u0995\u09C7","\u09B0","\u098F\u09B0","\u09A6\u09BF\u09AF\u09BC\u09C7","\u099C\u09A8\u09CD\u09AF","\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4"],boundaryStrategy:"space"},eventHandler:{keyword:{primary:"\u09A4\u09C7",alternatives:["\u098F","\u09AF\u0996\u09A8"],normalized:"on"},sourceMarker:{primary:"\u09A5\u09C7\u0995\u09C7",position:"after"},eventMarker:{primary:"\u09A4\u09C7",alternatives:["\u098F"],position:"after"},temporalMarkers:["\u09AF\u0996\u09A8","\u09AF\u0996\u09A8\u0987"]}}}}),Zu={};k(Zu,{BengaliTokenizer:()=>Pn,bengaliTokenizer:()=>Ln});var es,ts,Pn,Ln,rs=h({"src/tokenizers/bengali.ts"(){"use strict";S(),ny(),lr(),I(),M(),bf(),Df(),ye(),es=new Set(["\u0995\u09C7","\u09A4\u09C7","\u09A5\u09C7\u0995\u09C7","\u09B0","\u098F\u09B0","\u09A6\u09BF\u09AF\u09BC\u09C7","\u099C\u09A8\u09CD\u09AF","\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4","\u098F","\u09AE\u09A7\u09CD\u09AF\u09C7"]),ts=[{native:"\u09B8\u09A4\u09CD\u09AF",normalized:"true"},{native:"\u09AE\u09BF\u09A5\u09CD\u09AF\u09BE",normalized:"false"},{native:"\u09B6\u09C2\u09A8\u09CD\u09AF",normalized:"null"},{native:"\u0985\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09BF\u09A4",normalized:"undefined"},{native:"\u09AA\u09CD\u09B0\u09A5\u09AE",normalized:"first"},{native:"\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0",normalized:"next"},{native:"\u0986\u0997\u09C7\u09B0",normalized:"previous"},{native:"\u09A8\u09BF\u0995\u099F\u09A4\u09AE",normalized:"closest"},{native:"\u09AE\u09C2\u09B2",normalized:"parent"},{native:"\u0995\u09CD\u09B2\u09BF\u0995",normalized:"click"},{native:"\u099C\u09AE\u09BE",normalized:"submit"},{native:"\u0987\u09A8\u09AA\u09C1\u099F",normalized:"input"},{native:"\u09B2\u09CB\u09A1",normalized:"load"},{native:"\u09B8\u09CD\u0995\u09CD\u09B0\u09CB\u09B2",normalized:"scroll"},{native:"\u0995\u09C7",normalized:"to"},{native:"\u09B8\u09BE\u09A5\u09C7",normalized:"with"}],Pn=class extends j{constructor(){super(),this.language="bn",this.direction="ltr",this.initializeKeywordsFromProfile(Et,ts),this.setNormalizer(Ju),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractor(new yu),this.registerExtractor(new fu),this.registerExtractor(new le),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){return es.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":(e.startsWith(":"),"identifier")}},Ln=new Pn}}),ns={};k(ns,{germanProfile:()=>He});var He,zt=h({"src/generators/profiles/german.ts"(){"use strict";He={code:"de",name:"German",nativeName:"Deutsch",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!1},references:{me:"ich",it:"es",you:"du",result:"Ergebnis",event:"Ereignis",target:"Ziel",body:"K\xF6rper"},possessive:{marker:"",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mein",it:"sein",you:"dein"},keywords:{mein:"me",meine:"me",meinen:"me",dein:"you",deine:"you",deinen:"you",sein:"it",seine:"it",seinen:"it"}},roleMarkers:{destination:{primary:"auf",alternatives:["zu","in"],position:"before"},source:{primary:"von",alternatives:["aus"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"mit",position:"before"}},keywords:{toggle:{primary:"umschalten",alternatives:["wechseln"],normalized:"toggle"},add:{primary:"hinzuf\xFCgen",normalized:"add"},remove:{primary:"entfernen",alternatives:["l\xF6schen"],normalized:"remove"},put:{primary:"setzen",alternatives:["stellen","platzieren"],normalized:"put"},append:{primary:"anh\xE4ngen",normalized:"append"},prepend:{primary:"voranstellen",normalized:"prepend"},take:{primary:"nehmen",normalized:"take"},make:{primary:"machen",alternatives:["erstellen","erzeugen"],normalized:"make"},clone:{primary:"klonen",alternatives:["duplizieren"],normalized:"clone"},swap:{primary:"austauschen",alternatives:["tauschen","vertauschen"],normalized:"swap"},morph:{primary:"verwandeln",alternatives:["transformieren"],normalized:"morph"},set:{primary:"festlegen",alternatives:["definieren"],normalized:"set"},get:{primary:"holen",alternatives:["bekommen"],normalized:"get"},increment:{primary:"erh\xF6hen",normalized:"increment"},decrement:{primary:"verringern",alternatives:["vermindern"],normalized:"decrement"},log:{primary:"protokollieren",alternatives:["ausgeben"],normalized:"log"},show:{primary:"zeigen",alternatives:["anzeigen"],normalized:"show"},hide:{primary:"verbergen",alternatives:["verstecken"],normalized:"hide"},transition:{primary:"\xFCbergang",alternatives:["animieren"],normalized:"transition"},on:{primary:"bei",alternatives:["auf"],normalized:"on"},trigger:{primary:"ausl\xF6sen",normalized:"trigger"},send:{primary:"senden",alternatives:["schicken"],normalized:"send"},focus:{primary:"fokussieren",normalized:"focus"},blur:{primary:"defokussieren",alternatives:["entfokussieren"],normalized:"blur"},go:{primary:"gehen",alternatives:["navigieren"],normalized:"go"},wait:{primary:"warten",normalized:"wait"},fetch:{primary:"abrufen",alternatives:["laden"],normalized:"fetch"},settle:{primary:"stabilisieren",normalized:"settle"},if:{primary:"falls",alternatives:["sofern"],normalized:"if"},when:{primary:"wenn",normalized:"when"},where:{primary:"wo",normalized:"where"},else:{primary:"sonst",alternatives:["ansonsten"],normalized:"else"},repeat:{primary:"wiederholen",normalized:"repeat"},for:{primary:"f\xFCr",normalized:"for"},while:{primary:"solange",alternatives:["w\xE4hrend"],normalized:"while"},continue:{primary:"fortfahren",alternatives:["weiter"],normalized:"continue"},halt:{primary:"anhalten",alternatives:["stoppen"],normalized:"halt"},throw:{primary:"werfen",normalized:"throw"},call:{primary:"aufrufen",normalized:"call"},return:{primary:"zur\xFCckgeben",normalized:"return"},then:{primary:"dann",alternatives:["danach","anschlie\xDFend"],normalized:"then"},and:{primary:"und",alternatives:["sowie","auch"],normalized:"and"},end:{primary:"ende",alternatives:["fertig"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"asynchron",normalized:"async"},tell:{primary:"sagen",normalized:"tell"},default:{primary:"standard",normalized:"default"},init:{primary:"initialisieren",normalized:"init"},behavior:{primary:"verhalten",normalized:"behavior"},install:{primary:"installieren",normalized:"install"},measure:{primary:"messen",normalized:"measure"},beep:{primary:"piepton",normalized:"beep"},break:{primary:"unterbrechen",normalized:"break"},copy:{primary:"kopieren",normalized:"copy"},exit:{primary:"beenden",normalized:"exit"},pick:{primary:"ausw\xE4hlen",normalized:"pick"},render:{primary:"rendern",normalized:"render"},into:{primary:"hinein",normalized:"into"},before:{primary:"vor",normalized:"before"},after:{primary:"nach",normalized:"after"},click:{primary:"Klick",alternatives:["Klicken"],normalized:"click"},hover:{primary:"Hover",alternatives:["Schweben"],normalized:"hover"},submit:{primary:"Absenden",alternatives:["Senden"],normalized:"submit"},input:{primary:"Eingabe",normalized:"input"},change:{primary:"\xC4nderung",alternatives:["\xC4ndern"],normalized:"change"},until:{primary:"bis",normalized:"until"},event:{primary:"Ereignis",alternatives:["Event"],normalized:"event"},from:{primary:"von",alternatives:["aus"],normalized:"from"}},eventHandler:{keyword:{primary:"bei",alternatives:["auf"],normalized:"on"},sourceMarker:{primary:"von",alternatives:["aus"],position:"before"},conditionalKeyword:{primary:"wenn",alternatives:["falls"]},eventMarker:{primary:"bei",alternatives:["beim"],position:"before"},temporalMarkers:["wenn","bei"]}}}});function iy(e){let t=e.toLowerCase();return!!(t.endsWith("en")||t.endsWith("eln")||t.endsWith("ern")||t.startsWith("ge")&&t.endsWith("t")||t.startsWith("ge")&&t.endsWith("en")||/[äöüß]/i.test(e))}var is,as,os,us,jn,ay,oy=h({"src/tokenizers/morphology/german-normalizer.ts"(){"use strict";H(),is=["an","auf","aus","ein","mit","vor","zu","ab","bei","nach","weg","um","her","hin"],as=[{ending:"end",stem:"en",confidence:.88,type:"gerund"},{ending:"e",stem:"en",confidence:.75,type:"present"},{ending:"st",stem:"en",confidence:.8,type:"present"},{ending:"t",stem:"en",confidence:.78,type:"present"},{ending:"en",stem:"en",confidence:.85,type:"dictionary"},{ending:"test",stem:"en",confidence:.85,type:"past"},{ending:"ten",stem:"en",confidence:.82,type:"past"},{ending:"tet",stem:"en",confidence:.85,type:"past"},{ending:"te",stem:"en",confidence:.82,type:"past"},{ending:"test",stem:"en",confidence:.8,type:"subjunctive"},{ending:"ten",stem:"en",confidence:.78,type:"subjunctive"},{ending:"tet",stem:"en",confidence:.8,type:"subjunctive"},{ending:"te",stem:"en",confidence:.78,type:"subjunctive"},{ending:"e",stem:"en",confidence:.72,type:"imperative"},{ending:"t",stem:"en",confidence:.72,type:"imperative"},{ending:"en",stem:"en",confidence:.75,type:"imperative"}],os=[{ending:"le",stem:"eln",confidence:.82,type:"present"},{ending:"elst",stem:"eln",confidence:.85,type:"present"},{ending:"elt",stem:"eln",confidence:.85,type:"present"},{ending:"eln",stem:"eln",confidence:.88,type:"dictionary"},{ending:"re",stem:"ern",confidence:.82,type:"present"},{ending:"erst",stem:"ern",confidence:.85,type:"present"},{ending:"ert",stem:"ern",confidence:.85,type:"present"},{ending:"ern",stem:"ern",confidence:.88,type:"dictionary"}],us=[...as,...os].sort((e,t)=>t.ending.length-e.ending.length),jn=class{constructor(){this.language="de"}isNormalizable(e){return e.length<3?!1:iy(e)}normalize(e){let t=e.toLowerCase();if(t.endsWith("en")&&t.length>=4)return D(e);if((t.endsWith("eln")||t.endsWith("ern"))&&t.length>=5)return D(e);let r=this.tryParticipleNormalization(t);if(r)return r;let n=this.tryConjugationNormalization(t);return n||D(e)}tryParticipleNormalization(e){for(let t of is)if(e.startsWith(t+"ge")){let r=e.slice(t.length),n=this.trySimpleParticipleNormalization(r);if(n){let i={removedPrefixes:["ge"],conjugationType:"participle"};return n.metadata?.removedSuffixes&&(i.removedSuffixes=n.metadata.removedSuffixes),v(t+n.stem,n.confidence*.95,i)}}return this.trySimpleParticipleNormalization(e)}trySimpleParticipleNormalization(e){if(!e.startsWith("ge"))return null;let t=e.slice(2);if(t.endsWith("t")&&t.length>=3){let r=t.slice(0,-1);return v(r+"en",.85,{removedPrefixes:["ge"],removedSuffixes:["t"],conjugationType:"participle"})}return t.endsWith("en")&&t.length>=4?v(t,.82,{removedPrefixes:["ge"],conjugationType:"participle"}):null}tryConjugationNormalization(e){for(let t of us)if(e.endsWith(t.ending)){let r=e.slice(0,-t.ending.length);if(r.length<2)continue;let n=r+t.stem;return v(n,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}},ay=new jn}});function uy(e){return{isLetter:n=>e.test(n),isIdentifierChar:n=>/[0-9]/.test(n)||e.test(n)}}function sy(){return[new ps]}var ss,ls,cs,ps,ly=h({"src/tokenizers/extractors/german-keyword.ts"(){"use strict";({isLetter:ss,isIdentifierChar:ls}=uy(/[a-zA-ZäöüÄÖÜß]/)),cs=new Set(["an","auf","aus","bei","durch","f\xFCr","fur","gegen","in","mit","nach","ohne","seit","\xFCber","uber","um","unter","von","vor","zu","zwischen","bis","gegen\xFCber","gegenuber","w\xE4hrend","wahrend","wegen","trotz","statt","innerhalb","au\xDFerhalb","ausserhalb"]),ps=class{constructor(){this.name="german-keyword"}setContext(e){this.context=e}canExtract(e,t){return ss(e[t])}extract(e,t){if(!this.context)throw new Error("GermanKeywordExtractor: context not set");return this.extractGermanWord(e,t)}extractGermanWord(e,t){if(!this.context)return null;let r=t,n="";for(;r<e.length&&ls(e[r]);)n+=e[r++];if(!n)return null;let i=n.toLowerCase(),a=cs.has(i),o=this.context.lookupKeyword(n),u=o&&o.normalized!==o.native?o.normalized:void 0,s;if(!o&&this.context.normalizer){let l=this.context.normalizer.normalize(n);if(l.stem!==n&&l.confidence>=.7){let c=this.context.lookupKeyword(l.stem);c&&(s=c.normalized)}}return{value:n,length:r-t,metadata:{normalized:u||s,isPreposition:a}}}}}}),ms={};k(ms,{GermanTokenizer:()=>_n,germanTokenizer:()=>Rn});var ds,_n,Rn,fs=h({"src/tokenizers/german.ts"(){"use strict";S(),zt(),oy(),I(),M(),ly(),ds=[{native:"wahr",normalized:"true"},{native:"falsch",normalized:"false"},{native:"null",normalized:"null"},{native:"undefiniert",normalized:"undefined"},{native:"erste",normalized:"first"},{native:"erster",normalized:"first"},{native:"erstes",normalized:"first"},{native:"letzte",normalized:"last"},{native:"letzter",normalized:"last"},{native:"letztes",normalized:"last"},{native:"n\xE4chste",normalized:"next"},{native:"nachste",normalized:"next"},{native:"vorherige",normalized:"previous"},{native:"n\xE4chste",normalized:"closest"},{native:"eltern",normalized:"parent"},{native:"klick",normalized:"click"},{native:"click",normalized:"click"},{native:"eingabe",normalized:"input"},{native:"\xE4nderung",normalized:"change"},{native:"anderung",normalized:"change"},{native:"absenden",normalized:"submit"},{native:"taste unten",normalized:"keydown"},{native:"taste oben",normalized:"keyup"},{native:"maus dr\xFCber",normalized:"mouseover"},{native:"maus druber",normalized:"mouseover"},{native:"maus weg",normalized:"mouseout"},{native:"fokus",normalized:"focus"},{native:"unsch\xE4rfe",normalized:"blur"},{native:"unscharfe",normalized:"blur"},{native:"scrollen",normalized:"scroll"},{native:"meine",normalized:"my"},{native:"meinen",normalized:"my"},{native:"ergebnis",normalized:"result"},{native:"ziel",normalized:"target"},{native:"sekunde",normalized:"s"},{native:"sekunden",normalized:"s"},{native:"millisekunde",normalized:"ms"},{native:"millisekunden",normalized:"ms"},{native:"minute",normalized:"m"},{native:"minuten",normalized:"m"},{native:"stunde",normalized:"h"},{native:"stunden",normalized:"h"},{native:"hinzufugen",normalized:"add"},{native:"hinzufgen",normalized:"add"},{native:"loschen",normalized:"remove"},{native:"anhangen",normalized:"append"},{native:"erhohen",normalized:"increment"},{native:"ubergang",normalized:"transition"},{native:"auslosen",normalized:"trigger"},{native:"zuruckgeben",normalized:"return"},{native:"anschliessend",normalized:"then"},{native:"erh\xF6he",normalized:"increment"},{native:"erhohe",normalized:"increment"},{native:"verringere",normalized:"decrement"}],_n=class extends j{constructor(){super(),this.language="de",this.direction="ltr",this.initializeKeywordsFromProfile(He,ds),this.normalizer=new jn,this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractors(sy()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){return this.isKeyword(e)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}},Rn=new _n}}),ys={};k(ys,{englishProfile:()=>Le});var Le,Ge=h({"src/generators/profiles/english.ts"(){"use strict";Le={code:"en",name:"English",nativeName:"English",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!1},references:{me:"me",it:"it",you:"you",result:"result",event:"event",target:"target",body:"body"},possessive:{marker:"'s",markerPosition:"after-object",specialForms:{me:"my",it:"its",you:"your"},keywords:{my:"me",your:"you",its:"it"}},roleMarkers:{destination:{primary:"on",alternatives:["to","from"],position:"before"},source:{primary:"from",position:"before"},patient:{primary:"",position:"before"},style:{primary:"with",alternatives:["by","using"],position:"before"},responseType:{primary:"as",position:"before"},method:{primary:"via",alternatives:["using"],position:"before"}},keywords:{toggle:{primary:"toggle"},add:{primary:"add"},remove:{primary:"remove"},put:{primary:"put"},append:{primary:"append"},prepend:{primary:"prepend"},take:{primary:"take"},make:{primary:"make"},clone:{primary:"clone"},swap:{primary:"swap"},morph:{primary:"morph"},set:{primary:"set"},get:{primary:"get"},increment:{primary:"increment"},decrement:{primary:"decrement"},log:{primary:"log"},show:{primary:"show"},hide:{primary:"hide"},transition:{primary:"transition"},on:{primary:"on"},trigger:{primary:"trigger"},send:{primary:"send"},focus:{primary:"focus"},blur:{primary:"blur"},go:{primary:"go"},wait:{primary:"wait"},fetch:{primary:"fetch"},settle:{primary:"settle"},if:{primary:"if"},when:{primary:"when",normalized:"when"},where:{primary:"where",normalized:"where"},else:{primary:"else"},repeat:{primary:"repeat"},for:{primary:"for"},while:{primary:"while"},continue:{primary:"continue"},halt:{primary:"halt"},throw:{primary:"throw"},call:{primary:"call"},return:{primary:"return"},then:{primary:"then"},and:{primary:"and"},end:{primary:"end"},js:{primary:"js"},async:{primary:"async"},tell:{primary:"tell"},default:{primary:"default"},init:{primary:"init"},behavior:{primary:"behavior"},install:{primary:"install"},measure:{primary:"measure"},beep:{primary:"beep"},break:{primary:"break"},copy:{primary:"copy"},exit:{primary:"exit"},pick:{primary:"pick"},render:{primary:"render"},into:{primary:"into"},before:{primary:"before"},after:{primary:"after"},until:{primary:"until"},event:{primary:"event"},from:{primary:"from"}}}}});function Nn(e){return/[a-zA-Z0-9_]/.test(e)}function cy(){return[new hs]}var hs,py=h({"src/tokenizers/extractors/english-keyword.ts"(){"use strict";hs=class{constructor(){this.name="english-keyword"}setContext(e){this.context=e}canExtract(e,t){return/[a-zA-Z_]/.test(e[t])}extract(e,t){if(!this.context)throw new Error("EnglishKeywordExtractor: context not set");let r=t,n="";for(;r<e.length&&Nn(e[r]);)n+=e[r++];if(!n)return null;if(r<e.length&&e[r]===":"){let u=r;r++;let s="";for(;r<e.length&&Nn(e[r]);)s+=e[r++];s?n=n+":"+s:r=u}let i=this.context.lookupKeyword(n),a=i&&i.normalized!==i.native?i.normalized:void 0,o=null;return this.context.isKeyword(n)||(o=this.tryClassSyntaxConversion(e,r,n)),{value:o||n,length:r-t,metadata:{normalized:a,classConversion:o?!0:void 0}}}tryClassSyntaxConversion(e,t,r){let n=t;for(;n<e.length&&/\s/.test(e[n]);)n++;if(e.slice(n,n+5).toLowerCase()==="class"){let i=n+5;if(i>=e.length||!Nn(e[i]))return"."+r}return null}}}}),vs={};k(vs,{EnglishTokenizer:()=>In,englishTokenizer:()=>cr});var gs,In,cr,On=h({"src/tokenizers/english.ts"(){"use strict";S(),Ge(),I(),M(),py(),gs=[{native:"true",normalized:"true"},{native:"false",normalized:"false"},{native:"null",normalized:"null"},{native:"undefined",normalized:"undefined"},{native:"first",normalized:"first"},{native:"last",normalized:"last"},{native:"next",normalized:"next"},{native:"previous",normalized:"previous"},{native:"closest",normalized:"closest"},{native:"click",normalized:"click"},{native:"dblclick",normalized:"dblclick"},{native:"mousedown",normalized:"mousedown"},{native:"mouseup",normalized:"mouseup"},{native:"mouseover",normalized:"mouseover"},{native:"mouseout",normalized:"mouseout"},{native:"mouseenter",normalized:"mouseenter"},{native:"mouseleave",normalized:"mouseleave"},{native:"mousemove",normalized:"mousemove"},{native:"keydown",normalized:"keydown"},{native:"keyup",normalized:"keyup"},{native:"keypress",normalized:"keypress"},{native:"input",normalized:"input"},{native:"change",normalized:"change"},{native:"submit",normalized:"submit"},{native:"reset",normalized:"reset"},{native:"load",normalized:"load"},{native:"unload",normalized:"unload"},{native:"scroll",normalized:"scroll"},{native:"resize",normalized:"resize"},{native:"dragstart",normalized:"dragstart"},{native:"drag",normalized:"drag"},{native:"dragend",normalized:"dragend"},{native:"dragenter",normalized:"dragenter"},{native:"dragleave",normalized:"dragleave"},{native:"dragover",normalized:"dragover"},{native:"drop",normalized:"drop"},{native:"touchstart",normalized:"touchstart"},{native:"touchmove",normalized:"touchmove"},{native:"touchend",normalized:"touchend"},{native:"touchcancel",normalized:"touchcancel"},{native:"in",normalized:"in"},{native:"to",normalized:"to"},{native:"at",normalized:"at"},{native:"by",normalized:"by"},{native:"with",normalized:"with"},{native:"without",normalized:"without"},{native:"of",normalized:"of"},{native:"as",normalized:"as"},{native:"every",normalized:"every"},{native:"upon",normalized:"upon"},{native:"unless",normalized:"unless"},{native:"forever",normalized:"forever"},{native:"times",normalized:"times"},{native:"and",normalized:"and"},{native:"or",normalized:"or"},{native:"not",normalized:"not"},{native:"is",normalized:"is"},{native:"exists",normalized:"exists"},{native:"empty",normalized:"empty"},{native:"my",normalized:"my"},{native:"your",normalized:"your"},{native:"its",normalized:"its"},{native:"the",normalized:"the"},{native:"a",normalized:"a"},{native:"an",normalized:"an"},{native:"delete",normalized:"delete"},{native:"innerHTML",normalized:"innerHTML"},{native:"outerHTML",normalized:"outerHTML"},{native:"beforebegin",normalized:"beforebegin"},{native:"afterend",normalized:"afterend"},{native:"beforeend",normalized:"beforeend"},{native:"afterbegin",normalized:"afterbegin"},{native:"flip",normalized:"toggle"},{native:"switch",normalized:"toggle"},{native:"increase",normalized:"increment"},{native:"decrease",normalized:"decrement"},{native:"display",normalized:"show"},{native:"reveal",normalized:"show"},{native:"conceal",normalized:"hide"},{native:"colour",normalized:"color"},{native:"grey",normalized:"gray"},{native:"centre",normalized:"center"},{native:"behaviour",normalized:"behavior"},{native:"initialise",normalized:"initialize"},{native:"favourite",normalized:"favorite"}],In=class extends j{constructor(){super(),this.language="en",this.direction="ltr",this.initializeKeywordsFromProfile(Le,gs),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractors(cy()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){return this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}},cr=new In}});function Es(e,t){return e.replace(/\{(\w+)\}/g,(r,n)=>String(t[n]??`{${n}}`))}function Y(e,t,r={},n){let i=zs[e],a=Es(i,r),o=ks[e],u=o?Es(o,r):void 0;return{code:e,message:a,severity:t,...n&&{role:n},...u&&{suggestion:u}}}var z,zs,ks,my=h({"src/generators/schema-error-codes.ts"(){"use strict";z={AMBIGUOUS_TYPE_LITERAL_SELECTOR:"SCHEMA_AMBIGUOUS_TYPE_LITERAL_SELECTOR",TOO_MANY_EXPECTED_TYPES:"SCHEMA_TOO_MANY_EXPECTED_TYPES",MULTI_TYPE_PATIENT_EXPECTED:"SCHEMA_MULTI_TYPE_PATIENT_EXPECTED",NO_REQUIRED_ROLES:"SCHEMA_NO_REQUIRED_ROLES",NO_REQUIRED_ROLES_EXPECTED:"SCHEMA_NO_REQUIRED_ROLES_EXPECTED",TRANSITION_PATIENT_ACCEPTS_SELECTOR:"SCHEMA_TRANSITION_PATIENT_ACCEPTS_SELECTOR",TRANSITION_MISSING_GOAL:"SCHEMA_TRANSITION_MISSING_GOAL",EVENT_HANDLER_MISSING_EVENT:"SCHEMA_EVENT_HANDLER_MISSING_EVENT",EVENT_HANDLER_EVENT_NOT_REQUIRED:"SCHEMA_EVENT_HANDLER_EVENT_NOT_REQUIRED",CONDITIONAL_MISSING_CONDITION:"SCHEMA_CONDITIONAL_MISSING_CONDITION",CONDITIONAL_CONDITION_NOT_REQUIRED:"SCHEMA_CONDITIONAL_CONDITION_NOT_REQUIRED",FOR_LOOP_MISSING_SOURCE:"SCHEMA_FOR_LOOP_MISSING_SOURCE",WHILE_LOOP_MISSING_CONDITION:"SCHEMA_WHILE_LOOP_MISSING_CONDITION",VALUE_TYPE_MISMATCH:"SCHEMA_VALUE_TYPE_MISMATCH",SELECTOR_KIND_MISMATCH:"SCHEMA_SELECTOR_KIND_MISMATCH",SELECTOR_KINDS_WITHOUT_SELECTOR_TYPE:"SCHEMA_SELECTOR_KINDS_WITHOUT_SELECTOR_TYPE",KEYWORD_COLLISION:"PROFILE_KEYWORD_COLLISION"},zs={[z.AMBIGUOUS_TYPE_LITERAL_SELECTOR]:"Role '{role}' accepts both 'literal' and 'selector'. This may cause ambiguous type inference for values starting with special characters (* . # etc.).",[z.TOO_MANY_EXPECTED_TYPES]:"Role '{role}' accepts {count} different types. This may make type inference unreliable.",[z.MULTI_TYPE_PATIENT_EXPECTED]:"Role '{role}' accepts multiple types (expected for {command} command).",[z.NO_REQUIRED_ROLES]:"Command has no required roles. Is this intentional?",[z.NO_REQUIRED_ROLES_EXPECTED]:"Command has no required roles (expected for {command}).",[z.TRANSITION_PATIENT_ACCEPTS_SELECTOR]:"Transition command 'patient' role (CSS property name) should only accept 'literal', not 'selector'. CSS property names like 'background-color' are strings, not CSS selectors.",[z.TRANSITION_MISSING_GOAL]:"Transition command requires a 'goal' role for the target value (to <value>). Without it, there's no way to specify what value to transition to.",[z.EVENT_HANDLER_MISSING_EVENT]:"Event handler command should have an 'event' role to specify which event to listen for.",[z.EVENT_HANDLER_EVENT_NOT_REQUIRED]:"Event role should be required - every event handler needs an event to listen for.",[z.CONDITIONAL_MISSING_CONDITION]:"Conditional command should have a 'condition' role for the boolean expression.",[z.CONDITIONAL_CONDITION_NOT_REQUIRED]:"Condition role should be required - conditionals need a condition to evaluate.",[z.FOR_LOOP_MISSING_SOURCE]:"For-loop should have a 'source' role for the collection to iterate over.",[z.WHILE_LOOP_MISSING_CONDITION]:"While-loop should have a 'condition' role for the loop condition.",[z.VALUE_TYPE_MISMATCH]:"Role '{role}' of command '{command}' expects type [{expectedTypes}], got '{actualType}'.",[z.SELECTOR_KIND_MISMATCH]:"Role '{role}' of command '{command}' expects selector kind [{selectorKinds}], got '{actualKind}'.",[z.SELECTOR_KINDS_WITHOUT_SELECTOR_TYPE]:"Role '{role}' has selectorKinds but expectedTypes does not include 'selector'.",[z.KEYWORD_COLLISION]:"Keyword '{keyword}' is used by multiple commands: {commands}. Only the first-registered command will be reachable."},ks={[z.AMBIGUOUS_TYPE_LITERAL_SELECTOR]:"Consider being more specific about which type is expected, or use explicit type markers.",[z.TOO_MANY_EXPECTED_TYPES]:"Consider narrowing the accepted types to improve type inference reliability.",[z.TRANSITION_PATIENT_ACCEPTS_SELECTOR]:"Remove 'selector' from expectedTypes and only accept 'literal'.",[z.TRANSITION_MISSING_GOAL]:"Add a 'goal' role with expectedTypes ['literal', 'variable'].",[z.EVENT_HANDLER_MISSING_EVENT]:"Add an 'event' role with expectedTypes ['literal'].",[z.EVENT_HANDLER_EVENT_NOT_REQUIRED]:"Set required: true on the 'event' role.",[z.CONDITIONAL_MISSING_CONDITION]:"Add a 'condition' role with expectedTypes ['expression'].",[z.CONDITIONAL_CONDITION_NOT_REQUIRED]:"Set required: true on the 'condition' role.",[z.FOR_LOOP_MISSING_SOURCE]:"Add a 'source' role for the collection to iterate over.",[z.WHILE_LOOP_MISSING_CONDITION]:"Add a 'condition' role for the loop continuation condition.",[z.VALUE_TYPE_MISMATCH]:"Ensure the value matches one of the expected types: [{expectedTypes}].",[z.SELECTOR_KIND_MISMATCH]:"Use a selector of the correct kind: [{selectorKinds}].",[z.SELECTOR_KINDS_WITHOUT_SELECTOR_TYPE]:"Either add 'selector' to expectedTypes or remove selectorKinds.",[z.KEYWORD_COLLISION]:"Give each command a unique keyword. Move the shared keyword to alternatives on one command, or use a more specific translation."}}}),Cs={};k(Cs,{SchemaErrorCodes:()=>z,formatValidationResults:()=>ws,getValidationStats:()=>As,validateAllKeywordCollisions:()=>Ey,validateAllSchemas:()=>xs,validateCommandSchema:()=>Mn,validateKeywordCollisions:()=>bs,validateRoleValues:()=>gy});function dy(e,t){return{action:e,items:t,get notes(){return t.filter(r=>r.severity==="note").map(r=>r.message)},get warnings(){return t.filter(r=>r.severity==="warning").map(r=>r.message)},get errors(){return t.filter(r=>r.severity==="error").map(r=>r.message)}}}function Mn(e){let t=[];for(let n of e.roles)n.expectedTypes.includes("literal")&&n.expectedTypes.includes("selector")&&(n.role==="patient"&&Wn.has(e.action)?t.push(Y(z.MULTI_TYPE_PATIENT_EXPECTED,"note",{role:n.role,command:e.action},n.role)):t.push(Y(z.AMBIGUOUS_TYPE_LITERAL_SELECTOR,"warning",{role:n.role},n.role))),n.expectedTypes.length>3&&!Wn.has(e.action)&&t.push(Y(z.TOO_MANY_EXPECTED_TYPES,"warning",{role:n.role,count:n.expectedTypes.length},n.role));for(let n of e.roles)n.selectorKinds&&n.selectorKinds.length>0&&(n.expectedTypes.includes("selector")||t.push(Y(z.SELECTOR_KINDS_WITHOUT_SELECTOR_TYPE,"warning",{role:n.role},n.role)));switch(e.action){case"transition":fy(e,t);break;case"on":yy(e,t);break;case"if":case"unless":hy(e,t);break;case"repeat":case"for":case"while":vy(e,t);break}return e.roles.filter(n=>n.required).length===0&&(Ds.has(e.action)?t.push(Y(z.NO_REQUIRED_ROLES_EXPECTED,"note",{command:e.action})):t.push(Y(z.NO_REQUIRED_ROLES,"warning",{}))),dy(e.action,t)}function fy(e,t){let r=e.roles.find(i=>i.role==="patient"),n=e.roles.find(i=>i.role==="goal");r&&r.expectedTypes.includes("selector")&&t.push(Y(z.TRANSITION_PATIENT_ACCEPTS_SELECTOR,"warning",{},"patient")),r&&!n&&t.push(Y(z.TRANSITION_MISSING_GOAL,"error",{}))}function yy(e,t){let r=e.roles.find(n=>n.role==="event");r||t.push(Y(z.EVENT_HANDLER_MISSING_EVENT,"warning",{})),r&&!r.required&&t.push(Y(z.EVENT_HANDLER_EVENT_NOT_REQUIRED,"warning",{}))}function hy(e,t){let r=e.roles.find(n=>n.role==="condition");r||t.push(Y(z.CONDITIONAL_MISSING_CONDITION,"warning",{})),r&&!r.required&&t.push(Y(z.CONDITIONAL_CONDITION_NOT_REQUIRED,"warning",{}))}function vy(e,t){e.action==="for"?e.roles.find(n=>n.role==="source")||t.push(Y(z.FOR_LOOP_MISSING_SOURCE,"warning",{})):e.action==="while"&&(e.roles.find(n=>n.role==="condition")||t.push(Y(z.WHILE_LOOP_MISSING_CONDITION,"warning",{})))}function xs(e,t={}){let r=new Map,{includeNotes:n=!1}=t;for(let[i,a]of Object.entries(e)){let o=Mn(a),u=o.items.some(l=>l.severity==="warning"||l.severity==="error"),s=n&&o.items.some(l=>l.severity==="note");(u||s)&&r.set(i,o)}return r}function ws(e,t={}){let r=[],{showNotes:n=!1,showCodes:i=!0}=t;for(let[a,o]of e){let u=o.items.filter(c=>c.severity==="error"),s=o.items.filter(c=>c.severity==="warning"),l=o.items.filter(c=>c.severity==="note");if(u.length>0){r.push(` \u274C ${a}:`);for(let c of u){let p=i?` [${c.code}]`:"";r.push(` ERROR${p}: ${c.message}`),c.suggestion&&r.push(` \u{1F4A1} Suggestion: ${c.suggestion}`)}}if(s.length>0){r.push(` \u26A0\uFE0F ${a}:`);for(let c of s){let p=i?` [${c.code}]`:"";r.push(` ${p?`${c.code}: `:""}${c.message}`),c.suggestion&&r.push(` \u{1F4A1} ${c.suggestion}`)}}if(n&&l.length>0){r.push(` \u2139\uFE0F ${a}:`);for(let c of l){let p=i?` [${c.code}]`:"";r.push(` ${p?`${c.code}: `:""}${c.message}`)}}}return r.join(`
|
|
54
|
+
`)}function As(e){let t=0,r=0,n=0,i={};for(let a of e.values())for(let o of a.items)o.severity==="error"?t++:o.severity==="warning"?r++:o.severity==="note"&&n++,i[o.code]=(i[o.code]||0)+1;return{totalCommands:e.size,errors:t,warnings:r,notes:n,byCode:i}}function gy(e,t){let r=[];for(let n of t){let i=e.roles.find(a=>a.role===n.role);i&&(i.expectedTypes.length>0&&!i.expectedTypes.includes(n.type)&&(i.expectedTypes.includes("expression")||r.push({level:"error",role:n.role,message:`${e.action}.${n.role} expects type [${i.expectedTypes.join(", ")}], got '${n.type}'`,code:z.VALUE_TYPE_MISMATCH})),n.type==="selector"&&n.selectorKind&&i.selectorKinds&&i.selectorKinds.length>0&&(i.selectorKinds.includes(n.selectorKind)||r.push({level:"error",role:n.role,message:`${e.action}.${n.role} expects selector kind [${i.selectorKinds.join(", ")}], got '${n.selectorKind}'`,code:z.SELECTOR_KIND_MISMATCH})))}return r}function bs(e){let t=[];if(!e.keywords)return{language:e.code,collisions:t};let r=new Map;for(let[i,a]of Object.entries(e.keywords)){if(!a||!a.primary)continue;let o=r.get(a.primary)||[];if(o.push({command:i,isPrimary:!0}),r.set(a.primary,o),a.alternatives)for(let u of a.alternatives){let s=r.get(u)||[];s.push({command:i,isPrimary:!1}),r.set(u,s)}}for(let[i,a]of r){let o=[...new Set(a.map(l=>l.command))];if(o.length<=1)continue;let u=a.filter(l=>l.isPrimary).length,s;u>=2?s="primary-primary":u===1?s="primary-alternative":s="alternative-alternative",t.push({keyword:i,commands:o.sort(),type:s})}let n={"primary-primary":0,"primary-alternative":1,"alternative-alternative":2};return t.sort((i,a)=>n[i.type]-n[a.type]),{language:e.code,collisions:t}}function Ey(e){let t=[];for(let[,r]of Object.entries(e)){let n=bs(r);n.collisions.length>0&&t.push(n)}return t.sort((r,n)=>r.language.localeCompare(n.language))}var Wn,Ds,Ts=h({"src/generators/schema-validator.ts"(){"use strict";my(),Wn=new Set(["put","append","prepend","log","throw","make","measure","return","swap","morph","beep","copy"]),Ds=new Set(["compound","else","halt","continue","async","init","settle","focus","blur","return","js","measure","break","exit","beep"])}});function Ss(e){return je[e]}function zy(e){return Object.values(je).filter(t=>t.category===e)}function kt(){return Object.values(je).filter(e=>e.roles.length>0)}var qn,$n,Vn,Kn,Hn,Gn,Un,Xn,Yn,Jn,Qn,Zn,ei,ti,ri,Bs,Fs,Ps,Ls,js,_s,Rs,Ns,Is,Os,Ms,Ws,qs,$s,Vs,Ks,Hs,Gs,Us,Xs,Ys,Js,Qs,Zs,el,tl,rl,nl,il,al,ol,ul,sl,ll,cl,pl,ml,dl,je,pr=h({"src/generators/command-schemas.ts"(){"use strict";qn={action:"toggle",description:"Toggle a class or attribute on/off",category:"dom-class",primaryRole:"patient",roles:[{role:"patient",description:"The class or attribute to toggle",required:!0,expectedTypes:["selector"],selectorKinds:["class","attribute"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES","INVALID_CSS_PROPERTY"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"toggle command requires an argument"},{condition:"Class names are valid CSS identifiers",errorCode:"NO_VALID_CLASS_NAMES",message:"toggle command: no valid class names found"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to toggle",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers",INVALID_CSS_PROPERTY:"Check CSS property name syntax (use kebab-case)"}},$n={action:"add",description:"Add a class or attribute to an element",category:"dom-class",primaryRole:"patient",roles:[{role:"patient",description:"The class or attribute to add",required:!0,expectedTypes:["selector"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES","PROPERTY_REQUIRES_VALUE"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"add command requires an argument"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to add",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers",PROPERTY_REQUIRES_VALUE:"When adding a property (*prop), provide a value argument"}},Vn={action:"remove",description:"Remove a class or attribute from an element",category:"dom-class",primaryRole:"patient",roles:[{role:"patient",description:"The class or attribute to remove",required:!0,expectedTypes:["selector"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to remove from (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"remove command requires an argument"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to remove",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers"}},Kn={action:"put",description:"Put content into a target element or variable",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The content to put",required:!0,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1},{role:"destination",description:"Where to put the content",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:2,markerOverride:{en:"into"}}],errorCodes:["MISSING_ARGUMENTS","MISSING_CONTENT","MISSING_POSITION","INVALID_POSITION","NO_TARGET","NO_ELEMENTS"],preconditions:[{condition:"Command has content and position arguments",errorCode:"MISSING_ARGUMENTS",message:"put requires arguments"},{condition:"Content to put is specified",errorCode:"MISSING_CONTENT",message:"put requires content"},{condition:"Position keyword is specified (into, before, after, etc.)",errorCode:"MISSING_POSITION",message:"put requires position keyword"}],recoveryHints:{MISSING_ARGUMENTS:"Use syntax: put <content> into/before/after <target>",MISSING_CONTENT:"Add content to put (string, element, or expression)",MISSING_POSITION:"Add position keyword: into, before, after, at start of, at end of",INVALID_POSITION:"Valid positions: into, before, after, at start of, at end of",NO_TARGET:'Ensure target element exists or use "me" reference',NO_ELEMENTS:"Check that the selector matches existing elements"}},Hn={action:"set",description:"Set a property or variable to a value",category:"variable",primaryRole:"destination",roles:[{role:"destination",description:"The property or variable to set",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"",ja:"\u3092",ko:"\uB97C",tr:"i",ar:"",sw:"",tl:"",bn:"\u0995\u09C7",qu:"ta"}},{role:"patient",description:"The value to set",required:!0,expectedTypes:["literal","expression","reference"],svoPosition:2,sovPosition:2,markerOverride:{en:"to",es:"a",pt:"para",fr:"\xE0",de:"auf",id:"ke",ja:"\u306B",ko:"\uC73C\uB85C",tr:"e",ar:"\u0625\u0644\u0649",sw:"kwenye",tl:"sa",bn:"\u09A4\u09C7",qu:"man"}}],errorCodes:["MISSING_TARGET","INVALID_TARGET","MISSING_VALUE","INVALID_SYNTAX"],preconditions:[{condition:"Command has a target variable or property",errorCode:"MISSING_TARGET",message:"set command requires a target"},{condition:"Target is a valid variable or property reference",errorCode:"INVALID_TARGET",message:"set command target must be a string or object literal"},{condition:'Value is specified with "to" keyword',errorCode:"MISSING_VALUE",message:'set command requires a value (use "to" keyword)'}],recoveryHints:{MISSING_TARGET:"Add a target: set :variable to value OR set element.property to value",INVALID_TARGET:'Use local variable (:name), element property (el.prop), or "the X of Y" syntax',MISSING_VALUE:'Add "to <value>" to specify what to set',INVALID_SYNTAX:"Use syntax: set <target> to <value>"}},Gn={action:"show",description:"Make an element visible",category:"dom-visibility",primaryRole:"patient",roles:[{role:"patient",description:"The element to show",required:!0,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1},{role:"style",description:"Animation style (fade, slide, etc.)",required:!1,expectedTypes:["literal"],svoPosition:2,sovPosition:2}]},Un={action:"hide",description:"Make an element invisible",category:"dom-visibility",primaryRole:"patient",roles:[{role:"patient",description:"The element to hide",required:!0,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1},{role:"style",description:"Animation style (fade, slide, etc.)",required:!1,expectedTypes:["literal"],svoPosition:2,sovPosition:2}]},Xn={action:"on",description:"Handle an event",category:"event",primaryRole:"event",hasBody:!0,roles:[{role:"event",description:"The event to handle",required:!0,expectedTypes:["literal"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to listen on (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},Yn={action:"trigger",description:"Trigger/dispatch an event",category:"event",primaryRole:"event",roles:[{role:"event",description:"The event to trigger (supports namespaced events like draggable:start)",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},Jn={action:"wait",description:"Wait for a duration or event",category:"async",primaryRole:"patient",roles:[{role:"patient",description:"Duration or event to wait for",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1}]},Qn={action:"fetch",description:"Fetch data from a URL",category:"async",primaryRole:"source",roles:[{role:"source",description:"The URL to fetch from",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,renderOverride:{en:""}},{role:"responseType",description:"Response format (json, text, html, blob, etc.)",required:!1,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:2},{role:"method",description:"HTTP method (GET, POST, etc.)",required:!1,expectedTypes:["literal"],svoPosition:3,sovPosition:3},{role:"destination",description:"Where to store the result",required:!1,expectedTypes:["selector","reference"],svoPosition:4,sovPosition:4}]},Zn={action:"increment",description:"Increment a numeric value",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The value to increment",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:1},{role:"quantity",description:"Amount to increment by (defaults to 1)",required:!1,expectedTypes:["literal"],default:{type:"literal",value:1,dataType:"number"},svoPosition:2,sovPosition:2,markerOverride:{en:"by"}}]},ei={action:"decrement",description:"Decrement a numeric value",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The value to decrement",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:1},{role:"quantity",description:"Amount to decrement by (defaults to 1)",required:!1,expectedTypes:["literal"],default:{type:"literal",value:1,dataType:"number"},svoPosition:2,sovPosition:2,markerOverride:{en:"by"}}]},ti={action:"append",description:"Append content to an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The content to append",required:!0,expectedTypes:["literal","selector","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The element to append to",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}]},ri={action:"prepend",description:"Prepend content to an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The content to prepend",required:!0,expectedTypes:["literal","selector","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The element to prepend to",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}]},Bs={action:"log",description:"Log a value to the console",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The value to log",required:!0,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1}]},Fs={action:"get",description:"Get a value from a source",category:"variable",primaryRole:"source",roles:[{role:"source",description:"The source to get from",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:2,markerOverride:{en:"",es:"",pt:"",fr:"",de:"",ja:"\u3092",zh:"",ko:"\uB97C",ar:"\u0639\u0644\u0649",tr:"i",id:"",sw:"",tl:"",bn:"\u0995\u09C7",qu:"ta"}},{role:"destination",description:"Where to store the result (optional)",required:!1,expectedTypes:["reference"],svoPosition:2,sovPosition:1}]},Ps={action:"take",description:"Take content from a source element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The class or element to take",required:!0,expectedTypes:["selector"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to take from (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},Ls={action:"make",description:"Create a new element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element type or selector to create",required:!0,expectedTypes:["literal","selector"],svoPosition:1,sovPosition:1}]},js={action:"halt",description:"Halt/stop execution or event propagation",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"What to halt (event, default, bubbling, etc.)",required:!1,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:1}]},_s={action:"settle",description:"Wait for animations/transitions to settle",category:"async",primaryRole:"patient",roles:[{role:"patient",description:"The element to settle (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},Rs={action:"throw",description:"Throw an error",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The error message or object to throw",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1}]},Ns={action:"send",description:"Send an event to an element",category:"event",primaryRole:"event",roles:[{role:"event",description:"The event to send",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1,markerOverride:{en:"to",ja:"\u306B",ar:"\u0625\u0644\u0649",es:"a",ko:"\uC5D0\uAC8C",zh:"\u5230",tr:"-e",pt:"para",fr:"\xE0",de:"an",id:"ke",qu:"-man",sw:"kwa"}}]},Is={action:"if",description:"Conditional execution",category:"control-flow",primaryRole:"condition",hasBody:!0,roles:[{role:"condition",description:"The condition to evaluate",required:!0,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},Os={action:"unless",description:"Negated conditional execution (executes when condition is false)",category:"control-flow",primaryRole:"condition",hasBody:!0,roles:[{role:"condition",description:"The condition to evaluate (body executes when false)",required:!0,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},Ms={action:"else",description:"Else branch of conditional",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[]},Ws={action:"repeat",description:"Repeat a block of commands",category:"control-flow",primaryRole:"loopType",hasBody:!0,roles:[{role:"loopType",description:"Loop variant: forever, times, for, while, until, until-event",required:!0,expectedTypes:["literal"],svoPosition:0,sovPosition:0},{role:"quantity",description:"Number of times to repeat",required:!1,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1},{role:"event",description:"Event to wait for (terminates loop)",required:!1,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:2},{role:"source",description:"Element to listen for event on",required:!1,expectedTypes:["selector","reference"],svoPosition:3,sovPosition:3}],notes:'Can also use "repeat forever", "repeat until condition", or "repeat until event X from Y"'},qs={action:"for",description:"Iterate over a collection",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[{role:"patient",description:"The iteration variable",required:!0,expectedTypes:["reference"],svoPosition:1,sovPosition:2},{role:"source",description:"The collection to iterate over",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:2,sovPosition:1,markerOverride:{en:"in"}}]},$s={action:"while",description:"Loop while condition is true",category:"control-flow",primaryRole:"condition",hasBody:!0,roles:[{role:"condition",description:"The condition to check",required:!0,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},Vs={action:"continue",description:"Continue to next loop iteration",category:"control-flow",primaryRole:"patient",roles:[]},Ks={action:"go",description:"Navigate to a URL",category:"navigation",primaryRole:"destination",roles:[{role:"destination",description:"The URL to navigate to",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"to"},renderOverride:{en:""}}]},Hs={action:"transition",description:"Transition an element with animation",category:"dom-visibility",primaryRole:"patient",roles:[{role:"patient",description:"The property to transition (opacity, *background-color, etc.)",required:!0,expectedTypes:["literal"],svoPosition:1,sovPosition:2,markerOverride:{en:"",ar:"",tl:"",sw:""}},{role:"goal",description:"The target value to transition to",required:!0,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:3,markerOverride:{en:"to",ar:"\u0625\u0644\u0649",tl:"sa",sw:"kwenye",bn:"\u09A4\u09C7",qu:"man",es:"a",pt:"para",fr:"\xE0",de:"auf",ja:"\u306B",ko:"\uC73C\uB85C",tr:"e",id:"ke"}},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:3,sovPosition:1},{role:"duration",description:"Transition duration (over 500ms, for 2 seconds)",required:!1,expectedTypes:["literal"],svoPosition:4,sovPosition:4,markerOverride:{en:"over"}},{role:"style",description:"Easing function (ease-in, linear, etc.)",required:!1,expectedTypes:["literal"],svoPosition:5,sovPosition:5}]},Gs={action:"clone",description:"Clone an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to clone",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:2},{role:"destination",description:"Where to put the clone",required:!1,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"into"}}]},Us={action:"focus",description:"Focus an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to focus (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},Xs={action:"blur",description:"Remove focus from an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to blur (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},Ys={action:"call",description:"Call a function",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The function to call",required:!0,expectedTypes:["expression","reference"],svoPosition:1,sovPosition:1}]},Js={action:"return",description:"Return a value from a function",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The value to return",required:!1,expectedTypes:["literal","expression","reference"],svoPosition:1,sovPosition:1}]},Qs={action:"js",description:"Execute raw JavaScript code",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[{role:"patient",description:"The JavaScript code to execute",required:!1,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},Zs={action:"async",description:"Execute commands asynchronously",category:"async",primaryRole:"patient",hasBody:!0,roles:[]},el={action:"tell",description:"Execute commands in context of another element",category:"control-flow",primaryRole:"destination",hasBody:!0,roles:[{role:"destination",description:"The element to tell",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:1,markerOverride:{en:""}}]},tl={action:"default",description:"Set a default value for a variable",category:"variable",primaryRole:"destination",roles:[{role:"destination",description:"The variable to set default for",required:!0,expectedTypes:["reference"],svoPosition:1,sovPosition:1,markerOverride:{en:"",ar:"",tl:"",sw:"",bn:"\u0995\u09C7",qu:"ta"}},{role:"patient",description:"The default value",required:!0,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:2,markerOverride:{en:"to",ar:"\u0625\u0644\u0649",tl:"sa",sw:"kwenye",bn:"\u09A4\u09C7",qu:"man"}}]},rl={action:"init",description:"Initialization block that runs once",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[]},nl={action:"behavior",description:"Define a reusable behavior",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[{role:"patient",description:"The behavior name (PascalCase identifier)",required:!0,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:1}]},il={action:"install",description:"Install a behavior on an element",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The behavior name to install",required:!0,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"Element to install on (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},al={action:"measure",description:"Measure element dimensions (x, y, width, height, etc.)",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"Property to measure (x, y, width, height, top, left, etc.)",required:!1,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1},{role:"source",description:"Element to measure (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:2,markerOverride:{en:"of"}}]},ol={action:"swap",description:"Swap DOM content using various strategies (innerHTML, outerHTML, delete, etc.)",category:"dom-content",primaryRole:"destination",roles:[{role:"method",description:"The swap strategy (innerHTML, outerHTML, beforebegin, afterend, delete)",required:!1,expectedTypes:["literal"],svoPosition:1,sovPosition:3,markerOverride:{en:""}},{role:"destination",description:"The element to swap content in/for",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"of"}},{role:"patient",description:"The content to swap in (optional for delete)",required:!1,expectedTypes:["literal","expression","selector"],svoPosition:3,sovPosition:2,markerOverride:{en:"with"}}]},ul={action:"morph",description:"Morph an element into another using DOM diffing",category:"dom-content",primaryRole:"destination",roles:[{role:"destination",description:"The element to morph",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:1,markerOverride:{en:""}},{role:"patient",description:"The target content/element to morph into",required:!0,expectedTypes:["literal","expression","selector"],svoPosition:2,sovPosition:2,markerOverride:{en:"to"}}]},sl={action:"beep",description:"Debug output for expressions with type information",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The expression(s) to debug",required:!1,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1}]},ll={action:"break",description:"Exit from the current loop",category:"control-flow",primaryRole:"patient",roles:[]},cl={action:"copy",description:"Copy text or element content to the clipboard",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The text or element to copy",required:!0,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1}]},pl={action:"exit",description:"Exit from the current event handler",category:"control-flow",primaryRole:"patient",roles:[]},ml={action:"pick",description:"Select a random element from a collection",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The items to pick from",required:!0,expectedTypes:["literal","expression","reference"],svoPosition:1,sovPosition:1},{role:"source",description:'The array to pick from (with "from" keyword)',required:!1,expectedTypes:["reference","expression"],svoPosition:2,sovPosition:2}]},dl={action:"render",description:"Render a template with optional variables",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The template to render",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:2},{role:"style",description:"Variables to pass to the template (with keyword)",required:!1,expectedTypes:["expression","reference"],svoPosition:2,sovPosition:1}]},je={toggle:qn,add:$n,remove:Vn,put:Kn,set:Hn,show:Gn,hide:Un,on:Xn,trigger:Yn,wait:Jn,fetch:Qn,increment:Zn,decrement:ei,append:ti,prepend:ri,log:Bs,get:Fs,take:Ps,make:Ls,halt:js,settle:_s,throw:Rs,send:Ns,if:Is,unless:Os,else:Ms,repeat:Ws,for:qs,while:$s,continue:Vs,go:Ks,transition:Hs,clone:Gs,focus:Us,blur:Xs,call:Ys,return:Js,js:Qs,async:Zs,tell:el,default:tl,init:rl,behavior:nl,install:il,measure:al,swap:ol,morph:ul,beep:sl,break:ll,copy:cl,exit:pl,pick:ml,render:dl,compound:{action:"compound",description:"A compound node representing chained statements",primaryRole:"patient",category:"control-flow",hasBody:!0,roles:[]}},typeof process<"u"&&process.env.NODE_ENV!=="production"&&Promise.resolve().then(()=>(Ts(),Cs)).then(({validateAllSchemas:e,formatValidationResults:t})=>{let r=e(je);r.size>0&&(console.warn("[SCHEMA VALIDATION] Found issues in command schemas:"),console.warn(t(r)),console.warn(`
|
|
55
|
+
These warnings help identify potential schema design issues.`),console.warn("Fix them to improve type inference and avoid runtime bugs."))}).catch(e=>{console.debug("Schema validation skipped:",e)})}});function fl(e,t){let r=t==="SOV"?"sovPosition":"svoPosition";return[...e].sort((n,i)=>{let a=n[r]??99,o=i[r]??99;return a-o})}var ky=h({"src/parser/utils/role-positioning.ts"(){"use strict"}});function Cy(e,t){let r=e.markerOverride?.[t.code],n=t.roleMarkers[e.role];if(r!==void 0)return{primary:r,position:n?.position??"before",isOverride:!0};if(n&&n.primary){let i={primary:n.primary,position:n.position,isOverride:!1};return n.alternatives&&(i.alternatives=n.alternatives),i}return null}var xy=h({"src/parser/utils/marker-resolution.ts"(){"use strict"}});function wy(e,t,r,n,i){let a=[];if(a.push({type:"role",role:"event",optional:!1}),n.position==="after"){let l=n.primary.split(/\s+/);if(l.length>1)for(let c of l)a.push({type:"literal",value:c});else{let c=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};a.push(c)}}let o=t.roleMarkers.destination;o&&a.push({type:"group",optional:!0,tokens:[{type:"role",role:"destination",optional:!0},o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary}]}),a.push({type:"role",role:"patient",optional:!1});let u=t.roleMarkers.patient;if(u){let l=u.alternatives?{type:"literal",value:u.primary,alternatives:u.alternatives}:{type:"literal",value:u.primary};a.push(l)}let s=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};return a.push(s),{id:`${e.action}-event-${t.code}-sov`,language:t.code,command:"on",priority:(i.basePriority??100)+50,template:{format:`{event} ${n.primary} {destination?} {patient} ${u?.primary||""} ${r.primary}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}function Ay(e,t,r,n,i){let a=[];a.push({type:"role",role:"patient",optional:!1});let o=t.roleMarkers.patient;if(o){let s=o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary};a.push(s)}if(a.push({type:"role",role:"event",optional:!1}),n.position==="after"){let s=n.primary.split(/\s+/);if(s.length>1)for(let l of s)a.push({type:"literal",value:l});else{let l=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};a.push(l)}}let u=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};return a.push(u),{id:`${e.action}-event-${t.code}-sov-patient-first`,language:t.code,command:"on",priority:(i.basePriority??100)+45,template:{format:`{patient} ${o?.primary||""} {event} ${n.primary} ${r.primary}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}function by(e,t,r,n,i){let a=[];a.push({type:"role",role:"patient",optional:!1});let o=t.roleMarkers.patient;if(o){let l=o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary};a.push(l)}let u=t.roleMarkers.destination;if(u&&(a.push({type:"role",role:"destination",optional:!1}),a.push(u.alternatives?{type:"literal",value:u.primary,alternatives:u.alternatives}:{type:"literal",value:u.primary})),a.push({type:"role",role:"event",optional:!1}),n.position==="after"){let l=n.primary.split(/\s+/);if(l.length>1)for(let c of l)a.push({type:"literal",value:c});else{let c=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};a.push(c)}}let s=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};return a.push(s),{id:`${e.action}-event-${t.code}-sov-patient-first-dest`,language:t.code,command:"on",priority:(i.basePriority??100)+40,template:{format:`{patient} ${o?.primary||""} {destination} ${u?.primary||""} {event} ${n.primary} ${r.primary}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination"}}}}function Dy(e,t,r,n,i){let a=[];a.push({type:"role",role:"event",optional:!1});let o=n.alternatives?.filter(c=>!c.includes(" ")&&c.length>1)||[];o.length>0&&a.push({type:"literal",value:o[0],alternatives:o.slice(1)});let u=t.roleMarkers.destination;u&&a.push({type:"group",optional:!0,tokens:[{type:"role",role:"destination",optional:!0},u.alternatives?{type:"literal",value:u.primary,alternatives:u.alternatives}:{type:"literal",value:u.primary}]}),a.push({type:"role",role:"patient",optional:!1});let s=t.roleMarkers.patient;if(s){let c=s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary};a.push(c)}let l=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};return a.push(l),{id:`${e.action}-event-${t.code}-sov-compact`,language:t.code,command:"on",priority:(i.basePriority??100)+52,template:{format:`{event}${o[0]||""} {patient} ${r.primary}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}function Ty(e,t,r,n,i){let a=[];if(a.push({type:"role",role:"event",optional:!1}),n.position==="after"){let u=n.primary.split(/\s+/);if(u.length>1)for(let s of u)a.push({type:"literal",value:s});else{let s=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};a.push(s)}}let o=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};return a.push(o),{id:`${e.action}-event-${t.code}-sov-simple`,language:t.code,command:"on",priority:(i.basePriority??100)+48,template:{format:`{event} ${n.primary} ${r.primary}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{default:{type:"reference",value:"me"}}}}}function Sy(e,t,r,n){let i=t.eventHandler?.temporalMarkers;if(!i||i.length===0)return null;let a=[];a.push({type:"role",role:"event",optional:!1}),t.possessive?.marker&&a.push({type:"group",optional:!0,tokens:[{type:"literal",value:t.possessive.marker}]}),a.push({type:"literal",value:i[0],alternatives:i.slice(1)}),a.push({type:"role",role:"patient",optional:!1});let o=t.roleMarkers.patient;if(o?.primary){let s=o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary};a.push(s)}let u=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};return a.push(u),{id:`${e.action}-event-${t.code}-sov-temporal`,language:t.code,command:"on",priority:(n.basePriority??100)+49,template:{format:`{event} ${i[0]} {patient} ${r.primary}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"}}}}function By(e,t,r,n,i){let a=[];if(a.push({type:"role",role:"event",optional:!1}),n.position==="after"){let c=n.primary.split(/\s+/);if(c.length>1)for(let p of c)a.push({type:"literal",value:p});else{let p=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};a.push(p)}}let u=[...e.roles.filter(c=>c.required)].sort((c,p)=>{let m=c.sovPosition??999,d=p.sovPosition??999;return m-d});for(let c of u){a.push({type:"role",role:c.role,optional:!1});let p,m;if(c.markerOverride&&c.markerOverride[t.code]!==void 0)p=c.markerOverride[t.code];else{let d=t.roleMarkers[c.role];d&&(p=d.primary,m=d.alternatives)}if(p){let d=m?{type:"literal",value:p,alternatives:m}:{type:"literal",value:p};a.push(d)}}let s=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};a.push(s);let l=u.map(c=>`{${c.role}}`).join(" ");return{id:`${e.action}-event-${t.code}-sov-2role`,language:t.code,command:"on",priority:(i.basePriority??100)+55,template:{format:`{event} ${n.primary} ${l} ${r.primary}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},...Object.fromEntries(u.map(c=>[c.role,{fromRole:c.role}]))}}}function Fy(e,t,r,n,i){let a=[],u=[...e.roles.filter(f=>f.required)].sort((f,y)=>{let E=f.sovPosition??999,C=y.sovPosition??999;return E-C}),s=u[0];a.push({type:"role",role:s.role,optional:!1});let l;if(s.markerOverride&&s.markerOverride[t.code]!==void 0)l=s.markerOverride[t.code];else{let f=t.roleMarkers[s.role];f&&(l=f.primary)}if(l&&a.push({type:"literal",value:l}),a.push({type:"role",role:"event",optional:!1}),n.position==="after"){let f=n.primary.split(/\s+/);if(f.length>1)for(let y of f)a.push({type:"literal",value:y});else{let y=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};a.push(y)}}let c=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};a.push(c);let p=u[1];a.push({type:"role",role:p.role,optional:!1});let m,d;if(p.markerOverride&&p.markerOverride[t.code]!==void 0)m=p.markerOverride[t.code];else{let f=t.roleMarkers[p.role];f&&(m=f.primary,d=f.alternatives)}if(m){let f=d?{type:"literal",value:m,alternatives:d}:{type:"literal",value:m};a.push(f)}return{id:`${e.action}-event-${t.code}-sov-2role-dest-first`,language:t.code,command:"on",priority:(i.basePriority??100)+48,template:{format:`{${s.role}} {event} ${n.primary} ${r.primary} {${p.role}}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},[s.role]:{fromRole:s.role},[p.role]:{fromRole:p.role}}}}var Py=h({"src/generators/event-handlers-sov.ts"(){"use strict"}});function yl(e,t,r,n,i){let a=[];if(n.position==="before"){let s=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};a.push(s)}a.push({type:"role",role:"event",optional:!1});let o=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};a.push(o),a.push({type:"role",role:"patient",optional:!1});let u=t.roleMarkers.destination;return u&&a.push({type:"group",optional:!0,tokens:[u.alternatives?{type:"literal",value:u.primary,alternatives:u.alternatives}:{type:"literal",value:u.primary},{type:"role",role:"destination",optional:!0}]}),{id:`${e.action}-event-${t.code}-vso`,language:t.code,command:"on",priority:(i.basePriority??100)+50,template:{format:`${n.primary} {event} ${r.primary} {patient} ${u?.primary||""} {destination?}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}function Ly(e,t,r,n,i){let a=[],o=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};a.push(o),a.push({type:"role",role:"patient",optional:!1});let u=t.roleMarkers.destination;if(u&&a.push({type:"group",optional:!0,tokens:[u.alternatives?{type:"literal",value:u.primary,alternatives:u.alternatives}:{type:"literal",value:u.primary},{type:"role",role:"destination",optional:!0}]}),n.position==="before"){let s=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};a.push(s)}return a.push({type:"role",role:"event",optional:!1}),{id:`${e.action}-event-${t.code}-vso-verb-first`,language:t.code,command:"on",priority:(i.basePriority??100)+45,template:{format:`${r.primary} {patient} ${u?.primary||""} {destination?} ${n.primary} {event}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}function jy(e,t,r,n,i){let a=[],o=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};a.push(o);let s=[...e.roles.filter(c=>c.required)].sort((c,p)=>{let m=c.svoPosition??999,d=p.svoPosition??999;return m-d});for(let c of s){let p,m;if(c.markerOverride&&c.markerOverride[t.code]!==void 0)p=c.markerOverride[t.code];else{let d=t.roleMarkers[c.role];d&&(p=d.primary,m=d.alternatives)}if(p){let d=m?{type:"literal",value:p,alternatives:m}:{type:"literal",value:p};a.push(d)}a.push({type:"role",role:c.role,optional:!1})}if(n.position==="before"){let c=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};a.push(c)}a.push({type:"role",role:"event",optional:!1});let l=s.map(c=>`{${c.role}}`).join(" ");return{id:`${e.action}-event-${t.code}-vso-verb-first-2role`,language:t.code,command:"on",priority:(i.basePriority??100)+48,template:{format:`${r.primary} ${l} ${n.primary} {event}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},...Object.fromEntries(s.map(c=>[c.role,{fromRole:c.role}]))}}}function hl(e,t,r,n,i){let a=[];if(n.position==="before"){let c=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};a.push(c)}a.push({type:"role",role:"event",optional:!1});let o=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};a.push(o);let s=[...e.roles.filter(c=>c.required)].sort((c,p)=>{let m=c.svoPosition??999,d=p.svoPosition??999;return m-d});for(let c of s){let p,m;if(c.markerOverride&&c.markerOverride[t.code]!==void 0)p=c.markerOverride[t.code];else{let d=t.roleMarkers[c.role];d&&(p=d.primary,m=d.alternatives)}if(p){let d=m?{type:"literal",value:p,alternatives:m}:{type:"literal",value:p};a.push(d)}a.push({type:"role",role:c.role,optional:!1})}let l=s.map(c=>`{${c.role}}`).join(" ");return{id:`${e.action}-event-${t.code}-vso-2role`,language:t.code,command:"on",priority:(i.basePriority??100)+55,template:{format:`${n.primary} {event} ${r.primary} ${l}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},...Object.fromEntries(s.map(c=>[c.role,{fromRole:c.role}]))}}}function _y(e,t,r,n,i){let a=[],o=t.eventHandler?.negationMarker;if(n.position==="before"){let l=n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary};a.push(l)}if(o){let l=o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary};a.push(l)}a.push({type:"role",role:"event",optional:!1});let u=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};a.push(u),a.push({type:"role",role:"patient",optional:!1});let s=t.roleMarkers.destination;return s&&a.push({type:"group",optional:!0,tokens:[s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary},{type:"role",role:"destination",optional:!0}]}),{id:`${e.action}-event-${t.code}-vso-negated`,language:t.code,command:"on",priority:(i.basePriority??100)+48,template:{format:`${n.primary} ${o?.primary||""} {event} ${r.primary} {patient} ${s?.primary||""} {destination?}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}function Ry(e,t,r,n){let i=[];i.push({type:"literal",value:"and",alternatives:["then"]}),i.push({type:"role",role:"event",optional:!1});let a=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(a),i.push({type:"role",role:"patient",optional:!1});let o=t.roleMarkers.destination;return o&&i.push({type:"group",optional:!0,tokens:[o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary},{type:"role",role:"destination",optional:!0}]}),{id:`${e.action}-event-${t.code}-vso-proclitic`,language:t.code,command:"on",priority:(n.basePriority??100)+45,template:{format:`[proclitic?] {event} ${r.primary} {patient} ${o?.primary||""} {destination?}`,tokens:i},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination",default:{type:"reference",value:"me"}}}}}var Ny=h({"src/generators/event-handlers-vso.ts"(){"use strict"}});function vl(){return yt().map(t=>oe(t)).filter(t=>t!==void 0)}function ni(e,t,r=we){let n=`${e.action}-${t.code}-generated`,i=r.basePriority??100,a=t.keywords[e.action];if(!a)throw new Error(`No keyword translation for '${e.action}' in ${t.code}`);let o=Wy(e,t,a),u=El(e,t),s=Ky(e,t,a);return{id:n,language:t.code,command:e.action,priority:i,template:{format:s,tokens:o},extraction:u}}function gl(e,t,r=we){if(e.roles.filter(u=>!u.required).length===0)return null;let i=e.roles.filter(u=>u.required),a={...e,roles:i};return{...ni(a,t,r),id:`${e.action}-${t.code}-simple`,priority:(r.basePriority??100)-5,extraction:El(e,t)}}function ii(e,t,r=we){let n=[];if(n.push(ni(e,t,r)),r.generateSimpleVariants){let i=gl(e,t,r);i&&n.push(i)}return n}function mr(e,t=we){let r=[],n=kt();for(let i of n){if(!e.keywords[i.action])continue;let a=ii(i,e,t);if(r.push(...a),e.eventHandler?.eventMarker){let o=My(i,e,t);r.push(...o)}}return r}function Iy(e,t,r=we){let n=[],i=t??vl();for(let a of i){if(!a.keywords[e.action])continue;let o=ii(e,a,r);n.push(...o)}return n}function Oy(e,t=we){let r=[],n=e??vl();for(let i of n){let a=mr(i,t);r.push(...a)}return r}function My(e,t,r=we){if(!t.eventHandler||!t.eventHandler.eventMarker)return[];let n=[],i=t.eventHandler.eventMarker,a=t.keywords[e.action];if(!a)return[];let u=e.roles.filter(s=>s.required).length===2;if(t.wordOrder==="SOV")if(u)n.push(By(e,t,a,i,r)),n.push(Fy(e,t,a,i,r));else{n.push(wy(e,t,a,i,r)),n.push(Ay(e,t,a,i,r));let s=t.roleMarkers.destination;s&&s.primary!==i.primary&&n.push(by(e,t,a,i,r));let l=i.primary.split(/\s+/),c=i.alternatives?.some(m=>!m.includes(" ")&&m.length>1);l.length>1&&c&&n.push(Dy(e,t,a,i,r)),n.push(Ty(e,t,a,i,r));let p=Sy(e,t,a,r);p&&n.push(p)}else t.wordOrder==="VSO"?u?(n.push(hl(e,t,a,i,r)),n.push(jy(e,t,a,i,r))):(n.push(yl(e,t,a,i,r)),n.push(Ly(e,t,a,i,r)),t.eventHandler?.negationMarker&&n.push(_y(e,t,a,i,r)),t.tokenization?.prefixes&&n.push(Ry(e,t,a,r))):u?n.push(hl(e,t,a,i,r)):n.push(yl(e,t,a,i,r));return n}function Wy(e,t,r){let n=[],i=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary},a=qy(e,t);switch(t.wordOrder){case"SVO":n.push(i),n.push(...a);break;case"SOV":n.push(...a),n.push(i);break;case"VSO":n.push(i),n.push(...a);break;default:n.push(i),n.push(...a)}return n}function qy(e,t){let r=[],n=fl(e.roles,t.wordOrder);for(let i of n){let a=$y(i,t);i.required?r.push(...a):r.push({type:"group",optional:!0,tokens:a})}return r}function $y(e,t){let r=[],n=e.markerOverride?.[t.code],i=t.roleMarkers[e.role],a={type:"role",role:e.role,optional:!e.required,expectedTypes:e.expectedTypes};if(n!==void 0)(i?.position??"before")==="before"?(n&&r.push({type:"literal",value:n}),r.push(a)):(r.push(a),n&&r.push({type:"literal",value:n}));else if(i)if(i.position==="before"){if(i.primary){let o=i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary};r.push(o)}r.push(a)}else{r.push(a);let o=i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary};r.push(o)}else r.push(a);return r}function Vy(e,t){let r={};for(let n of e.roles){let i=n.markerOverride?.[t.code],a=t.roleMarkers[n.role];i!==void 0?r[n.role]=i?{marker:i}:{}:a&&a.primary?r[n.role]=a.alternatives?{marker:a.primary,markerAlternatives:a.alternatives}:{marker:a.primary}:r[n.role]={}}return r}function El(e,t){let r=Vy(e,t),n={};for(let i of e.roles){let a=r[i.role]||{};!i.required&&i.default?n[i.role]={...a,default:i.default}:n[i.role]=a}return n}function Ky(e,t,r){let n=[],a=fl(e.roles,t.wordOrder).map(o=>{let u=Cy(o,t),s="";return u&&u.primary?u.position==="before"?s=`${u.primary} {${o.role}}`:s=`{${o.role}} ${u.primary}`:s=`{${o.role}}`,o.required?s:`[${s}]`});switch(t.wordOrder){case"SVO":case"VSO":n.push(r.primary,...a);break;case"SOV":n.push(...a,r.primary);break;default:n.push(r.primary,...a)}return n.join(" ")}function Hy(){let e=yt(),t=kt().map(n=>n.action),r=0;for(let n of e){let i=oe(n);if(i)for(let a of kt())i.keywords[a.action]&&(r+=2)}return{languages:e,commands:t,totalPatterns:r}}function Gy(e,t=kt()){let r=[],n=[];for(let i of t)e.keywords[i.action]?n.push(i.action):r.push(i.action);return{missing:r,available:n}}var we,ai=h({"src/generators/pattern-generator.ts"(){"use strict";pr(),ky(),xy(),Py(),Ny(),w(),we={basePriority:100,generateSimpleVariants:!0,generateAlternatives:!0}}});function zl(){return[{id:"toggle-en-full",language:"en",command:"toggle",priority:100,template:{format:"toggle {patient} on {target}",tokens:[{type:"literal",value:"toggle"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"on",alternatives:["from"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"on",markerAlternatives:["from"],default:{type:"reference",value:"me"}}}},{id:"toggle-en-simple",language:"en",command:"toggle",priority:90,template:{format:"toggle {patient}",tokens:[{type:"literal",value:"toggle"},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}var kl=h({"src/patterns/toggle/en.ts"(){"use strict"}});function Cl(){return[{id:"put-en-into",language:"en",command:"put",priority:100,template:{format:"put {patient} into {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"into",alternatives:["in","to"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"into",markerAlternatives:["in","to"]}}},{id:"put-en-before",language:"en",command:"put",priority:95,template:{format:"put {patient} before {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"before"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"before"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-en-after",language:"en",command:"put",priority:95,template:{format:"put {patient} after {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"after"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"after"},manner:{default:{type:"literal",value:"after"}}}}]}var xl=h({"src/patterns/put/en.ts"(){"use strict"}});function wl(){return[{id:"event-en-when-source",language:"en",command:"on",priority:115,template:{format:"when {event} from {source} {body}",tokens:[{type:"literal",value:"when"},{type:"role",role:"event"},{type:"literal",value:"from"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"from"}}},{id:"event-en-when",language:"en",command:"on",priority:105,template:{format:"when {event} {body}",tokens:[{type:"literal",value:"when"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-source",language:"en",command:"on",priority:110,template:{format:"on {event} from {source} {body}",tokens:[{type:"literal",value:"on"},{type:"role",role:"event"},{type:"literal",value:"from"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"from"}}},{id:"event-en-standard",language:"en",command:"on",priority:100,template:{format:"on {event} {body}",tokens:[{type:"literal",value:"on"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-upon",language:"en",command:"on",priority:98,template:{format:"upon {event} {body}",tokens:[{type:"literal",value:"upon"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-if",language:"en",command:"on",priority:95,template:{format:"if {event} {body}",tokens:[{type:"literal",value:"if"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}var Al=h({"src/patterns/event-handler/en.ts"(){"use strict"}}),bl={};k(bl,{buildEnglishPatterns:()=>Dl});function Dl(){let e=[];e.push(...zl()),e.push(...Cl()),e.push(...wl()),e.push(Tl,Sl,Bl,Fl,Pl,Ll,jl,_l,Rl,Nl,Il);let t=mr(Le);return e.push(...t),e}var Tl,Sl,Bl,Fl,Pl,Ll,jl,_l,Rl,Nl,Il,Ol=h({"src/patterns/en.ts"(){"use strict";Ge(),ai(),kl(),xl(),Al(),Tl={id:"fetch-en-with-response-type",language:"en",command:"fetch",priority:90,template:{format:"fetch {source} as {responseType}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source",expectedTypes:["literal","expression"]},{type:"literal",value:"as"},{type:"role",role:"responseType",expectedTypes:["literal","expression"]}]},extraction:{source:{position:1},responseType:{marker:"as"}}},Sl={id:"fetch-en-simple",language:"en",command:"fetch",priority:80,template:{format:"fetch {source}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source"}]},extraction:{source:{position:1}}},Bl={id:"swap-en-handcrafted",language:"en",command:"swap",priority:110,template:{format:"swap {method} {destination}",tokens:[{type:"literal",value:"swap"},{type:"role",role:"method"},{type:"role",role:"destination"}]},extraction:{method:{position:1},destination:{position:2}}},Fl={id:"repeat-en-until-event-from",language:"en",command:"repeat",priority:120,template:{format:"repeat until event {event} from {source}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"from"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]},extraction:{event:{marker:"event"},source:{marker:"from"},loopType:{default:{type:"literal",value:"until-event"}}}},Pl={id:"repeat-en-until-event",language:"en",command:"repeat",priority:110,template:{format:"repeat until event {event}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]}]},extraction:{event:{marker:"event"},loopType:{default:{type:"literal",value:"until-event"}}}},Ll={id:"set-en-possessive",language:"en",command:"set",priority:100,template:{format:"set {destination} to {patient}",tokens:[{type:"literal",value:"set"},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"to"},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{marker:"to"}}},jl={id:"for-en-basic",language:"en",command:"for",priority:100,template:{format:"for {patient} in {source}",tokens:[{type:"literal",value:"for"},{type:"role",role:"patient",expectedTypes:["expression","reference"]},{type:"literal",value:"in"},{type:"role",role:"source",expectedTypes:["selector","expression","reference"]}]},extraction:{patient:{position:1},source:{marker:"in"},loopType:{default:{type:"literal",value:"for"}}}},_l={id:"if-en-basic",language:"en",command:"if",priority:100,template:{format:"if {condition}",tokens:[{type:"literal",value:"if"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},Rl={id:"unless-en-basic",language:"en",command:"unless",priority:100,template:{format:"unless {condition}",tokens:[{type:"literal",value:"unless"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},Nl={id:"temporal-en-in",language:"en",command:"wait",priority:95,template:{format:"in {duration}",tokens:[{type:"literal",value:"in"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}},Il={id:"temporal-en-after",language:"en",command:"wait",priority:95,template:{format:"after {duration}",tokens:[{type:"literal",value:"after"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}}}});function Uy(e){return/[áéíóúüñÁÉÍÓÚÜÑ]/.test(e)}function Xy(e){let t=e.toLowerCase();if(t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir")||t.endsWith("ando")||t.endsWith("iendo")||t.endsWith("ado")||t.endsWith("ido")||t.endsWith("arse")||t.endsWith("erse")||t.endsWith("irse"))return!0;for(let r of e)if(Uy(r))return!0;return!1}var oi,Ml,Wl,ql,$l,ui,Yy,Jy=h({"src/tokenizers/morphology/spanish-normalizer.ts"(){"use strict";H(),oi=["se","me","te","nos","os"],Ml=[{ending:"ando",stem:"ar",confidence:.88,type:"gerund"},{ending:"ado",stem:"ar",confidence:.88,type:"participle"},{ending:"ada",stem:"ar",confidence:.88,type:"participle"},{ending:"ados",stem:"ar",confidence:.88,type:"participle"},{ending:"adas",stem:"ar",confidence:.88,type:"participle"},{ending:"o",stem:"ar",confidence:.75,type:"present"},{ending:"as",stem:"ar",confidence:.82,type:"present"},{ending:"a",stem:"ar",confidence:.75,type:"present"},{ending:"amos",stem:"ar",confidence:.85,type:"present"},{ending:"\xE1is",stem:"ar",confidence:.85,type:"present"},{ending:"ais",stem:"ar",confidence:.82,type:"present"},{ending:"an",stem:"ar",confidence:.8,type:"present"},{ending:"\xE9",stem:"ar",confidence:.85,type:"past"},{ending:"aste",stem:"ar",confidence:.88,type:"past"},{ending:"\xF3",stem:"ar",confidence:.82,type:"past"},{ending:"amos",stem:"ar",confidence:.85,type:"past"},{ending:"asteis",stem:"ar",confidence:.88,type:"past"},{ending:"aron",stem:"ar",confidence:.88,type:"past"},{ending:"aba",stem:"ar",confidence:.88,type:"past"},{ending:"abas",stem:"ar",confidence:.88,type:"past"},{ending:"\xE1bamos",stem:"ar",confidence:.88,type:"past"},{ending:"abamos",stem:"ar",confidence:.85,type:"past"},{ending:"abais",stem:"ar",confidence:.88,type:"past"},{ending:"aban",stem:"ar",confidence:.88,type:"past"},{ending:"e",stem:"ar",confidence:.72,type:"subjunctive"},{ending:"es",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"emos",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"\xE9is",stem:"ar",confidence:.85,type:"subjunctive"},{ending:"eis",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"en",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"a",stem:"ar",confidence:.75,type:"imperative"},{ending:"ad",stem:"ar",confidence:.85,type:"imperative"},{ending:"ar",stem:"ar",confidence:.92,type:"dictionary"}],Wl=[{ending:"iendo",stem:"er",confidence:.88,type:"gerund"},{ending:"ido",stem:"er",confidence:.85,type:"participle"},{ending:"ida",stem:"er",confidence:.85,type:"participle"},{ending:"idos",stem:"er",confidence:.85,type:"participle"},{ending:"idas",stem:"er",confidence:.85,type:"participle"},{ending:"o",stem:"er",confidence:.72,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"e",stem:"er",confidence:.72,type:"present"},{ending:"emos",stem:"er",confidence:.85,type:"present"},{ending:"\xE9is",stem:"er",confidence:.85,type:"present"},{ending:"eis",stem:"er",confidence:.82,type:"present"},{ending:"en",stem:"er",confidence:.78,type:"present"},{ending:"\xED",stem:"er",confidence:.85,type:"past"},{ending:"iste",stem:"er",confidence:.88,type:"past"},{ending:"i\xF3",stem:"er",confidence:.85,type:"past"},{ending:"io",stem:"er",confidence:.82,type:"past"},{ending:"imos",stem:"er",confidence:.85,type:"past"},{ending:"isteis",stem:"er",confidence:.88,type:"past"},{ending:"ieron",stem:"er",confidence:.88,type:"past"},{ending:"\xEDa",stem:"er",confidence:.88,type:"past"},{ending:"ia",stem:"er",confidence:.85,type:"past"},{ending:"\xEDas",stem:"er",confidence:.88,type:"past"},{ending:"ias",stem:"er",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"er",confidence:.88,type:"past"},{ending:"iamos",stem:"er",confidence:.85,type:"past"},{ending:"\xEDais",stem:"er",confidence:.88,type:"past"},{ending:"iais",stem:"er",confidence:.85,type:"past"},{ending:"\xEDan",stem:"er",confidence:.88,type:"past"},{ending:"ian",stem:"er",confidence:.85,type:"past"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],ql=[{ending:"iendo",stem:"ir",confidence:.88,type:"gerund"},{ending:"ido",stem:"ir",confidence:.85,type:"participle"},{ending:"ida",stem:"ir",confidence:.85,type:"participle"},{ending:"idos",stem:"ir",confidence:.85,type:"participle"},{ending:"idas",stem:"ir",confidence:.85,type:"participle"},{ending:"o",stem:"ir",confidence:.72,type:"present"},{ending:"es",stem:"ir",confidence:.78,type:"present"},{ending:"e",stem:"ir",confidence:.72,type:"present"},{ending:"imos",stem:"ir",confidence:.85,type:"present"},{ending:"\xEDs",stem:"ir",confidence:.85,type:"present"},{ending:"is",stem:"ir",confidence:.82,type:"present"},{ending:"en",stem:"ir",confidence:.78,type:"present"},{ending:"\xED",stem:"ir",confidence:.85,type:"past"},{ending:"iste",stem:"ir",confidence:.88,type:"past"},{ending:"i\xF3",stem:"ir",confidence:.85,type:"past"},{ending:"io",stem:"ir",confidence:.82,type:"past"},{ending:"imos",stem:"ir",confidence:.85,type:"past"},{ending:"isteis",stem:"ir",confidence:.88,type:"past"},{ending:"ieron",stem:"ir",confidence:.88,type:"past"},{ending:"\xEDa",stem:"ir",confidence:.88,type:"past"},{ending:"ia",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDas",stem:"ir",confidence:.88,type:"past"},{ending:"ias",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"ir",confidence:.88,type:"past"},{ending:"iamos",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDais",stem:"ir",confidence:.88,type:"past"},{ending:"iais",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDan",stem:"ir",confidence:.88,type:"past"},{ending:"ian",stem:"ir",confidence:.85,type:"past"},{ending:"ir",stem:"ir",confidence:.92,type:"dictionary"}],$l=[...Ml,...Wl,...ql].sort((e,t)=>t.ending.length-e.ending.length),ui=class{constructor(){this.language="es"}isNormalizable(e){return e.length<3?!1:Xy(e)}normalize(e){let t=e.toLowerCase();if((t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir"))&&!oi.some(i=>t.endsWith(i+"ar")||t.endsWith(i+"er")||t.endsWith(i+"ir")))return D(e);let r=this.tryReflexiveNormalization(t);if(r)return r;let n=this.tryConjugationNormalization(t);return n||D(e)}tryReflexiveNormalization(e){for(let t of oi)if(e.endsWith(t)){let r=e.slice(0,-t.length);if(r.endsWith("ar")||r.endsWith("er")||r.endsWith("ir"))return v(r,.88,{removedSuffixes:[t],conjugationType:"reflexive"});let n=this.tryConjugationNormalization(r);if(n&&n.stem!==r)return v(n.stem,n.confidence*.95,{removedSuffixes:[t,...n.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationNormalization(e){for(let t of $l)if(e.endsWith(t.ending)){let r=e.slice(0,-t.ending.length);if(r.length<2)continue;let n=r+t.stem;return v(n,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}},Yy=new ui}}),Vl={};k(Vl,{spanishProfile:()=>Ue});var Ue,Ct=h({"src/generators/profiles/spanish.ts"(){"use strict";Ue={code:"es",name:"Spanish",nativeName:"Espa\xF1ol",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0},references:{me:"yo",it:"ello",you:"t\xFA",result:"resultado",event:"evento",target:"objetivo",body:"cuerpo"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mi",it:"su",you:"tu"},keywords:{mi:"me",tu:"you",su:"it"}},roleMarkers:{destination:{primary:"en",alternatives:["sobre","a"],position:"before"},source:{primary:"de",alternatives:["desde"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"con",position:"before"}},keywords:{toggle:{primary:"alternar",alternatives:["conmutar","toggle"],normalized:"toggle"},add:{primary:"agregar",alternatives:["a\xF1adir"],normalized:"add"},remove:{primary:"quitar",alternatives:["eliminar","remover","sacar","borrar"],normalized:"remove"},put:{primary:"poner",alternatives:["colocar","pon"],normalized:"put"},append:{primary:"anexar",normalized:"append"},prepend:{primary:"anteponer",normalized:"prepend"},take:{primary:"tomar",normalized:"take"},make:{primary:"hacer",alternatives:["crear"],normalized:"make"},clone:{primary:"clonar",alternatives:["duplicar"],normalized:"clone"},swap:{primary:"intercambiar",alternatives:["permutar"],normalized:"swap"},morph:{primary:"transformar",alternatives:["convertir"],normalized:"morph"},set:{primary:"establecer",alternatives:["fijar","definir"],normalized:"set"},get:{primary:"obtener",alternatives:["conseguir"],normalized:"get"},increment:{primary:"incrementar",alternatives:["aumentar"],normalized:"increment"},decrement:{primary:"decrementar",alternatives:["disminuir"],normalized:"decrement"},log:{primary:"registrar",alternatives:["imprimir"],normalized:"log"},show:{primary:"mostrar",alternatives:["ense\xF1ar"],normalized:"show"},hide:{primary:"ocultar",alternatives:["esconder"],normalized:"hide"},transition:{primary:"transici\xF3n",alternatives:["animar"],normalized:"transition"},on:{primary:"en",alternatives:["al"],normalized:"on"},trigger:{primary:"disparar",alternatives:["activar"],normalized:"trigger"},send:{primary:"enviar",normalized:"send"},focus:{primary:"enfocar",alternatives:["enfoque"],normalized:"focus"},blur:{primary:"desenfocar",alternatives:["desenfoque"],normalized:"blur"},click:{primary:"clic",alternatives:["hacer clic","click"],normalized:"click"},hover:{primary:"sobrevolar",alternatives:["pasar por encima"],normalized:"hover"},submit:{primary:"env\xEDo",alternatives:["envio","someter"],normalized:"submit"},input:{primary:"entrada",alternatives:["introducir"],normalized:"input"},change:{primary:"cambio",alternatives:["cambiar"],normalized:"change"},load:{primary:"carga",normalized:"load"},scroll:{primary:"desplazamiento",normalized:"scroll"},keydown:{primary:"tecla abajo",normalized:"keydown"},keyup:{primary:"tecla arriba",normalized:"keyup"},mouseover:{primary:"rat\xF3n encima",alternatives:["raton encima"],normalized:"mouseover"},mouseout:{primary:"rat\xF3n fuera",alternatives:["raton fuera"],normalized:"mouseout"},go:{primary:"ir",alternatives:["navegar"],normalized:"go"},wait:{primary:"esperar",normalized:"wait"},fetch:{primary:"buscar",alternatives:["recuperar"],normalized:"fetch"},settle:{primary:"estabilizar",normalized:"settle"},if:{primary:"si",normalized:"if"},when:{primary:"cuando",normalized:"when"},where:{primary:"donde",normalized:"where"},else:{primary:"sino",alternatives:["de lo contrario"],normalized:"else"},repeat:{primary:"repetir",normalized:"repeat"},for:{primary:"para",normalized:"for"},while:{primary:"mientras",normalized:"while"},continue:{primary:"continuar",normalized:"continue"},halt:{primary:"detener",alternatives:["parar"],normalized:"halt"},throw:{primary:"lanzar",alternatives:["arrojar"],normalized:"throw"},call:{primary:"llamar",normalized:"call"},return:{primary:"retornar",alternatives:["devolver"],normalized:"return"},then:{primary:"entonces",alternatives:["luego"],normalized:"then"},and:{primary:"y",alternatives:["adem\xE1s","tambi\xE9n"],normalized:"and"},or:{primary:"o",normalized:"or"},not:{primary:"no",normalized:"not"},is:{primary:"es",normalized:"is"},exists:{primary:"existe",normalized:"exists"},empty:{primary:"vac\xEDo",alternatives:["vacio"],normalized:"empty"},end:{primary:"fin",alternatives:["final","terminar"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"as\xEDncrono",alternatives:["asincrono"],normalized:"async"},tell:{primary:"decir",normalized:"tell"},default:{primary:"predeterminar",alternatives:["por defecto"],normalized:"default"},init:{primary:"iniciar",alternatives:["inicializar"],normalized:"init"},behavior:{primary:"comportamiento",normalized:"behavior"},install:{primary:"instalar",normalized:"install"},measure:{primary:"medir",normalized:"measure"},beep:{primary:"pitido",normalized:"beep"},break:{primary:"romper",normalized:"break"},copy:{primary:"copiar",normalized:"copy"},exit:{primary:"salir",normalized:"exit"},pick:{primary:"escoger",normalized:"pick"},render:{primary:"renderizar",normalized:"render"},first:{primary:"primero",alternatives:["primera"],normalized:"first"},last:{primary:"\xFAltimo",alternatives:["ultima"],normalized:"last"},next:{primary:"siguiente",normalized:"next"},previous:{primary:"anterior",normalized:"previous"},closest:{primary:"cercano",normalized:"closest"},parent:{primary:"padre",normalized:"parent"},into:{primary:"dentro",alternatives:["adentro","dentro de"],normalized:"into"},before:{primary:"antes",alternatives:["antes de"],normalized:"before"},after:{primary:"despu\xE9s",alternatives:["despues","despu\xE9s de","despues de"],normalized:"after"},out:{primary:"fuera",alternatives:["fuera de"],normalized:"out"},until:{primary:"hasta",alternatives:["hasta que"],normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"de",alternatives:["desde"],normalized:"from"}},eventHandler:{keyword:{primary:"al",alternatives:["cuando","en"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["desde"],position:"before"},eventMarker:{primary:"al",alternatives:["cuando"],position:"before"},temporalMarkers:["cuando","al"]}}}});function Qy(e){return{isLetter:n=>e.test(n),isIdentifierChar:n=>/[0-9]/.test(n)||e.test(n)}}function Zy(){return[new Gl]}var si,Kl,Hl,Gl,eh=h({"src/tokenizers/extractors/spanish-keyword.ts"(){"use strict";S(),{isLetter:si,isIdentifierChar:Kl}=Qy(/[a-zA-ZáéíóúüñÁÉÍÓÚÜÑ]/),Hl=new Set(["en","a","de","desde","hasta","con","sin","por","para","sobre","entre","antes","despu\xE9s","despues","dentro","fuera","al","del"]),Gl=class{constructor(){this.name="spanish-keyword"}setContext(e){this.context=e}canExtract(e,t){return si(e[t])}extract(e,t){if(!this.context)throw new Error("SpanishKeywordExtractor: context not set");let r=this.tryMultiWordPhrase(e,t);return r||this.extractSpanishWord(e,t)}tryMultiWordPhrase(e,t){if(!this.context)return null;let r=["de lo contrario","de lo normal","por defecto","de nuevo","de otra manera"];for(let n of r)if(e.slice(t,t+n.length).toLowerCase()===n.toLowerCase()){let a=t+n.length;if(a>=e.length||de(e[a])||!si(e[a])){let o=this.context.lookupKeyword(n);return{value:e.slice(t,a),length:n.length,metadata:{normalized:o?.normalized,multiWord:!0}}}}return null}extractSpanishWord(e,t){if(!this.context)return null;let r=t,n="";for(;r<e.length&&Kl(e[r]);)n+=e[r++];if(!n)return null;let i=n.toLowerCase(),a=Hl.has(i),o=this.context.lookupKeyword(n),u=o&&o.normalized!==o.native?o.normalized:void 0,s;if(!o&&this.context.normalizer){let l=this.context.normalizer.normalize(n);if(l.stem!==n&&l.confidence>=.7){let c=this.context.lookupKeyword(l.stem);c&&(s=c.normalized)}}return{value:n,length:r-t,metadata:{normalized:u||s,isPreposition:a}}}}}}),Ul={};k(Ul,{SpanishTokenizer:()=>li,spanishTokenizer:()=>xt});var Xl,Yl,li,xt,dr=h({"src/tokenizers/spanish.ts"(){"use strict";S(),Jy(),Ct(),I(),M(),eh(),Xl=new Set(["en","a","de","desde","hasta","con","sin","por","para","sobre","entre","antes","despu\xE9s","despues","dentro","fuera","al","del"]),Yl=[{native:"verdadero",normalized:"true"},{native:"falso",normalized:"false"},{native:"nulo",normalized:"null"},{native:"indefinido",normalized:"undefined"},{native:"segundo",normalized:"s"},{native:"segundos",normalized:"s"},{native:"milisegundo",normalized:"ms"},{native:"milisegundos",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minutos",normalized:"m"},{native:"hora",normalized:"h"},{native:"horas",normalized:"h"},{native:"m\xED",normalized:"me"},{native:"destino",normalized:"target"}],li=class extends j{constructor(){super(),this.language="es",this.direction="ltr",this.initializeKeywordsFromProfile(Ue,Yl),this.setNormalizer(new ui),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractors(Zy()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){let t=e.toLowerCase();return Xl.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}},xt=new li}}),Jl={};k(Jl,{frenchProfile:()=>Xe});var Xe,wt=h({"src/generators/profiles/french.ts"(){"use strict";Xe={code:"fr",name:"French",nativeName:"Fran\xE7ais",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!1},references:{me:"moi",it:"il",you:"toi",result:"r\xE9sultat",event:"\xE9v\xE9nement",target:"cible",body:"corps"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"ma",it:"sa",you:"ta"},keywords:{mon:"me",ma:"me",mes:"me",ton:"you",ta:"you",tes:"you",son:"it",sa:"it",ses:"it"}},roleMarkers:{destination:{primary:"sur",alternatives:["\xE0","dans"],position:"before"},source:{primary:"de",alternatives:["depuis"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"avec",position:"before"}},keywords:{toggle:{primary:"basculer",alternatives:["alterner"],normalized:"toggle"},add:{primary:"ajouter",normalized:"add"},remove:{primary:"supprimer",alternatives:["enlever","retirer"],normalized:"remove"},put:{primary:"mettre",alternatives:["placer"],normalized:"put"},append:{primary:"annexer",normalized:"append"},prepend:{primary:"pr\xE9fixer",normalized:"prepend"},take:{primary:"prendre",normalized:"take"},make:{primary:"faire",alternatives:["cr\xE9er"],normalized:"make"},clone:{primary:"cloner",alternatives:["dupliquer"],normalized:"clone"},swap:{primary:"\xE9changer",alternatives:["permuter"],normalized:"swap"},morph:{primary:"transformer",alternatives:["m\xE9tamorphoser"],normalized:"morph"},set:{primary:"d\xE9finir",alternatives:["\xE9tablir"],normalized:"set"},get:{primary:"obtenir",normalized:"get"},increment:{primary:"incr\xE9menter",alternatives:["augmenter"],normalized:"increment"},decrement:{primary:"d\xE9cr\xE9menter",alternatives:["diminuer"],normalized:"decrement"},log:{primary:"enregistrer",alternatives:["journaliser"],normalized:"log"},show:{primary:"montrer",alternatives:["afficher"],normalized:"show"},hide:{primary:"cacher",alternatives:["masquer"],normalized:"hide"},transition:{primary:"transition",alternatives:["animer"],normalized:"transition"},on:{primary:"sur",alternatives:["lors"],normalized:"on"},trigger:{primary:"d\xE9clencher",normalized:"trigger"},send:{primary:"envoyer",normalized:"send"},focus:{primary:"focaliser",alternatives:["concentrer"],normalized:"focus"},blur:{primary:"d\xE9focaliser",normalized:"blur"},go:{primary:"aller",alternatives:["naviguer"],normalized:"go"},wait:{primary:"attendre",normalized:"wait"},fetch:{primary:"chercher",alternatives:["r\xE9cup\xE9rer"],normalized:"fetch"},settle:{primary:"stabiliser",normalized:"settle"},if:{primary:"si",normalized:"if"},when:{primary:"quand",normalized:"when"},where:{primary:"o\xF9",normalized:"where"},else:{primary:"sinon",normalized:"else"},repeat:{primary:"r\xE9p\xE9ter",normalized:"repeat"},for:{primary:"pour",normalized:"for"},while:{primary:"pendant",normalized:"while"},continue:{primary:"continuer",normalized:"continue"},halt:{primary:"arr\xEAter",alternatives:["stopper"],normalized:"halt"},throw:{primary:"lancer",normalized:"throw"},call:{primary:"appeler",normalized:"call"},return:{primary:"retourner",alternatives:["renvoyer"],normalized:"return"},then:{primary:"puis",alternatives:["ensuite","alors"],normalized:"then"},and:{primary:"et",alternatives:["aussi","\xE9galement"],normalized:"and"},end:{primary:"fin",alternatives:["terminer","finir"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asynchrone",normalized:"async"},tell:{primary:"dire",normalized:"tell"},default:{primary:"d\xE9faut",normalized:"default"},init:{primary:"initialiser",normalized:"init"},behavior:{primary:"comportement",normalized:"behavior"},install:{primary:"installer",normalized:"install"},measure:{primary:"mesurer",normalized:"measure"},beep:{primary:"bip",normalized:"beep"},break:{primary:"interrompre",normalized:"break"},copy:{primary:"copier",normalized:"copy"},exit:{primary:"sortir",normalized:"exit"},pick:{primary:"choisir",normalized:"pick"},render:{primary:"rendu",normalized:"render"},into:{primary:"dans",normalized:"into"},before:{primary:"avant",normalized:"before"},after:{primary:"apr\xE8s",normalized:"after"},click:{primary:"clic",alternatives:["clique"],normalized:"click"},hover:{primary:"survol",alternatives:["survoler"],normalized:"hover"},submit:{primary:"soumission",alternatives:["soumettre"],normalized:"submit"},input:{primary:"saisie",alternatives:["entr\xE9e"],normalized:"input"},change:{primary:"changement",alternatives:["modifier"],normalized:"change"},until:{primary:"jusqu'\xE0",alternatives:["jusque"],normalized:"until"},event:{primary:"\xE9v\xE9nement",normalized:"event"},from:{primary:"de",alternatives:["depuis"],normalized:"from"}},eventHandler:{keyword:{primary:"sur",alternatives:["lors"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["depuis"],position:"before"},conditionalKeyword:{primary:"quand",alternatives:["lorsque"]},eventMarker:{primary:"au",alternatives:["lors du","lors de"],position:"before"},temporalMarkers:["quand","lorsque"]}}}});function th(e){let t=e.toLowerCase();return!!(t.endsWith("er")||t.endsWith("ir")||t.endsWith("re")||t.endsWith("ant")||t.endsWith("\xE9")||t.endsWith("i")||t.endsWith("u")||/[àâäéèêëïîôùûüÿçœæ]/i.test(e))}var Ql,Zl,e0,t0,r0,ci,rh,nh=h({"src/tokenizers/morphology/french-normalizer.ts"(){"use strict";H(),Ql=["toi","vous","nous"],Zl=[{ending:"ant",stem:"er",confidence:.88,type:"gerund"},{ending:"\xE9",stem:"er",confidence:.88,type:"participle"},{ending:"\xE9e",stem:"er",confidence:.88,type:"participle"},{ending:"\xE9s",stem:"er",confidence:.88,type:"participle"},{ending:"\xE9es",stem:"er",confidence:.88,type:"participle"},{ending:"e",stem:"er",confidence:.75,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"ons",stem:"er",confidence:.85,type:"present"},{ending:"ez",stem:"er",confidence:.85,type:"present"},{ending:"ent",stem:"er",confidence:.82,type:"present"},{ending:"ais",stem:"er",confidence:.82,type:"past"},{ending:"ait",stem:"er",confidence:.82,type:"past"},{ending:"ions",stem:"er",confidence:.85,type:"past"},{ending:"iez",stem:"er",confidence:.85,type:"past"},{ending:"aient",stem:"er",confidence:.85,type:"past"},{ending:"ai",stem:"er",confidence:.8,type:"past"},{ending:"as",stem:"er",confidence:.78,type:"past"},{ending:"a",stem:"er",confidence:.75,type:"past"},{ending:"\xE2mes",stem:"er",confidence:.88,type:"past"},{ending:"\xE2tes",stem:"er",confidence:.88,type:"past"},{ending:"\xE8rent",stem:"er",confidence:.88,type:"past"},{ending:"erai",stem:"er",confidence:.85,type:"future"},{ending:"eras",stem:"er",confidence:.85,type:"future"},{ending:"era",stem:"er",confidence:.82,type:"future"},{ending:"erons",stem:"er",confidence:.88,type:"future"},{ending:"erez",stem:"er",confidence:.88,type:"future"},{ending:"eront",stem:"er",confidence:.88,type:"future"},{ending:"erais",stem:"er",confidence:.85,type:"conditional"},{ending:"erait",stem:"er",confidence:.85,type:"conditional"},{ending:"erions",stem:"er",confidence:.88,type:"conditional"},{ending:"eriez",stem:"er",confidence:.88,type:"conditional"},{ending:"eraient",stem:"er",confidence:.88,type:"conditional"},{ending:"ions",stem:"er",confidence:.8,type:"subjunctive"},{ending:"iez",stem:"er",confidence:.8,type:"subjunctive"},{ending:"ons",stem:"er",confidence:.82,type:"imperative"},{ending:"ez",stem:"er",confidence:.82,type:"imperative"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],e0=[{ending:"issant",stem:"ir",confidence:.88,type:"gerund"},{ending:"i",stem:"ir",confidence:.8,type:"participle"},{ending:"ie",stem:"ir",confidence:.82,type:"participle"},{ending:"is",stem:"ir",confidence:.78,type:"participle"},{ending:"ies",stem:"ir",confidence:.82,type:"participle"},{ending:"is",stem:"ir",confidence:.78,type:"present"},{ending:"it",stem:"ir",confidence:.78,type:"present"},{ending:"issons",stem:"ir",confidence:.88,type:"present"},{ending:"issez",stem:"ir",confidence:.88,type:"present"},{ending:"issent",stem:"ir",confidence:.88,type:"present"},{ending:"issais",stem:"ir",confidence:.85,type:"past"},{ending:"issait",stem:"ir",confidence:.85,type:"past"},{ending:"issions",stem:"ir",confidence:.88,type:"past"},{ending:"issiez",stem:"ir",confidence:.88,type:"past"},{ending:"issaient",stem:"ir",confidence:.88,type:"past"},{ending:"irai",stem:"ir",confidence:.85,type:"future"},{ending:"iras",stem:"ir",confidence:.85,type:"future"},{ending:"ira",stem:"ir",confidence:.82,type:"future"},{ending:"irons",stem:"ir",confidence:.88,type:"future"},{ending:"irez",stem:"ir",confidence:.88,type:"future"},{ending:"iront",stem:"ir",confidence:.88,type:"future"},{ending:"ir",stem:"ir",confidence:.9,type:"dictionary"}],t0=[{ending:"ant",stem:"re",confidence:.82,type:"gerund"},{ending:"u",stem:"re",confidence:.8,type:"participle"},{ending:"ue",stem:"re",confidence:.82,type:"participle"},{ending:"us",stem:"re",confidence:.82,type:"participle"},{ending:"ues",stem:"re",confidence:.82,type:"participle"},{ending:"s",stem:"re",confidence:.72,type:"present"},{ending:"d",stem:"re",confidence:.75,type:"present"},{ending:"ons",stem:"re",confidence:.82,type:"present"},{ending:"ez",stem:"re",confidence:.82,type:"present"},{ending:"ent",stem:"re",confidence:.8,type:"present"},{ending:"re",stem:"re",confidence:.9,type:"dictionary"}],r0=[...Zl,...e0,...t0].sort((e,t)=>t.ending.length-e.ending.length),ci=class{constructor(){this.language="fr"}isNormalizable(e){return e.length<3?!1:th(e)}normalize(e){let t=e.toLowerCase();if((t.endsWith("er")||t.endsWith("ir")||t.endsWith("re"))&&t.length>=4)return D(e);let r=this.tryReflexiveNormalization(t);if(r)return r;let n=this.tryConjugationNormalization(t);return n||D(e)}tryReflexiveNormalization(e){for(let t of Ql){let r="-"+t;if(e.endsWith(r)){let n=e.slice(0,-r.length),i=this.tryConjugationNormalization(n);if(i&&i.stem!==n)return v(i.stem,i.confidence*.95,{removedSuffixes:[r,...i.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}}return null}tryConjugationNormalization(e){for(let t of r0)if(e.endsWith(t.ending)){let r=e.slice(0,-t.ending.length);if(r.length<2)continue;let n=r+t.stem;return v(n,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}},rh=new ci}});function ih(e){return{isLetter:n=>e.test(n),isIdentifierChar:n=>/[0-9]/.test(n)||e.test(n)}}function ah(){return[new o0]}var n0,i0,a0,o0,oh=h({"src/tokenizers/extractors/french-keyword.ts"(){"use strict";({isLetter:n0,isIdentifierChar:i0}=ih(/[a-zA-ZàâæçéèêëïîôùûüÿœÀÂÆÇÉÈÊËÏÎÔÙÛÜŸŒ]/)),a0=new Set(["\xE0","a","de","du","des","dans","sur","sous","avec","sans","par","pour","entre","avant","apr\xE8s","apres","depuis","vers","chez","contre","au","aux"]),o0=class{constructor(){this.name="french-keyword"}setContext(e){this.context=e}canExtract(e,t){return n0(e[t])}extract(e,t){if(!this.context)throw new Error("FrenchKeywordExtractor: context not set");let r=t,n="";for(;r<e.length&&i0(e[r]);)n+=e[r++];if(!n)return null;let i=n.toLowerCase(),a=a0.has(i),o=this.context.lookupKeyword(i),u=o&&o.normalized!==o.native?o.normalized:void 0,s;if(!o&&this.context.normalizer){let l=this.context.normalizer.normalize(n);if(l.stem!==n&&l.confidence>=.7){let c=this.context.lookupKeyword(l.stem);c&&(s=c.normalized)}}return{value:n,length:r-t,metadata:{normalized:u||s,isPreposition:a}}}}}}),u0={};k(u0,{FrenchTokenizer:()=>pi,frenchTokenizer:()=>mi});var s0,pi,mi,l0=h({"src/tokenizers/french.ts"(){"use strict";S(),wt(),nh(),I(),M(),oh(),s0=[{native:"vrai",normalized:"true"},{native:"faux",normalized:"false"},{native:"nul",normalized:"null"},{native:"ind\xE9fini",normalized:"undefined"},{native:"indefini",normalized:"undefined"},{native:"premier",normalized:"first"},{native:"premi\xE8re",normalized:"first"},{native:"premiere",normalized:"first"},{native:"dernier",normalized:"last"},{native:"derni\xE8re",normalized:"last"},{native:"derniere",normalized:"last"},{native:"suivant",normalized:"next"},{native:"pr\xE9c\xE9dent",normalized:"previous"},{native:"precedent",normalized:"previous"},{native:"plus proche",normalized:"closest"},{native:"parent",normalized:"parent"},{native:"clic",normalized:"click"},{native:"click",normalized:"click"},{native:"entr\xE9e",normalized:"input"},{native:"entree",normalized:"input"},{native:"changement",normalized:"change"},{native:"soumission",normalized:"submit"},{native:"touche bas",normalized:"keydown"},{native:"touche haut",normalized:"keyup"},{native:"souris dessus",normalized:"mouseover"},{native:"souris dehors",normalized:"mouseout"},{native:"focus",normalized:"focus"},{native:"flou",normalized:"blur"},{native:"chargement",normalized:"load"},{native:"d\xE9filement",normalized:"scroll"},{native:"defilement",normalized:"scroll"},{native:"je",normalized:"me"},{native:"mon",normalized:"my"},{native:"ma",normalized:"my"},{native:"mes",normalized:"my"},{native:"\xE7a",normalized:"it"},{native:"ca",normalized:"it"},{native:"resultat",normalized:"result"},{native:"evenement",normalized:"event"},{native:"seconde",normalized:"s"},{native:"secondes",normalized:"s"},{native:"milliseconde",normalized:"ms"},{native:"millisecondes",normalized:"ms"},{native:"minute",normalized:"m"},{native:"minutes",normalized:"m"},{native:"heure",normalized:"h"},{native:"heures",normalized:"h"},{native:"prefixer",normalized:"prepend"},{native:"creer",normalized:"make"},{native:"definir",normalized:"set"},{native:"etablir",normalized:"set"},{native:"incrementer",normalized:"increment"},{native:"decrementer",normalized:"decrement"},{native:"declencher",normalized:"trigger"},{native:"defocaliser",normalized:"blur"},{native:"recuperer",normalized:"fetch"},{native:"repeter",normalized:"repeat"},{native:"arreter",normalized:"halt"},{native:"defaut",normalized:"default"},{native:"jusqua",normalized:"until"},{native:"apres",normalized:"after"},{native:"journaliser",normalized:"log"},{native:"transmuter",normalized:"morph"},{native:"tant que",normalized:"while"}],pi=class extends j{constructor(){super(),this.language="fr",this.direction="ltr",this.initializeKeywordsFromProfile(Xe,s0),this.normalizer=new ci,this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractors(ah()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){return this.isKeyword(e)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}},mi=new pi}}),fr,di=h({"src/generators/profiles/hebrew.ts"(){"use strict";fr={code:"he",name:"Hebrew",nativeName:"\u05E2\u05D1\u05E8\u05D9\u05EA",direction:"rtl",script:"hebrew",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"second",subjectDrop:!0},references:{me:"\u05D0\u05E0\u05D9",it:"\u05D6\u05D4",you:"\u05D0\u05EA\u05D4",result:"\u05EA\u05D5\u05E6\u05D0\u05D4",event:"\u05D0\u05D9\u05E8\u05D5\u05E2",target:"\u05D9\u05E2\u05D3",body:"\u05D2\u05D5\u05E3"},possessive:{marker:"\u05E9\u05DC",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"\u05E9\u05DC\u05D9",it:"\u05E9\u05DC\u05D5",you:"\u05E9\u05DC\u05DA"},keywords:{\u05E9\u05DC\u05D9:"me",\u05E9\u05DC\u05DA:"you",\u05E9\u05DC\u05D5:"it",\u05E9\u05DC\u05D4:"it"}},roleMarkers:{destination:{primary:"\u05E2\u05DC",alternatives:["\u05D1","\u05D0\u05DC","\u05DC"],position:"before"},source:{primary:"\u05DE",alternatives:["\u05DE\u05DF","\u05DE\u05D0\u05EA"],position:"before"},patient:{primary:"\u05D0\u05EA",position:"before"},style:{primary:"\u05E2\u05DD",alternatives:["\u05D1"],position:"before"}},keywords:{toggle:{primary:"\u05DE\u05EA\u05D2",alternatives:["\u05D4\u05D3\u05DC\u05E7 \u05DB\u05D1\u05D4"],normalized:"toggle"},add:{primary:"\u05D4\u05D5\u05E1\u05E3",normalized:"add"},remove:{primary:"\u05D4\u05E1\u05E8",alternatives:["\u05DE\u05D7\u05E7","\u05D4\u05D5\u05E8\u05D3"],normalized:"remove"},put:{primary:"\u05E9\u05D9\u05DD",alternatives:["\u05D4\u05E0\u05D7","\u05D4\u05DB\u05E0\u05E1"],normalized:"put"},append:{primary:"\u05E6\u05E8\u05E3",alternatives:["\u05D4\u05D5\u05E1\u05E3 \u05D1\u05E1\u05D5\u05E3"],normalized:"append"},prepend:{primary:"\u05D4\u05E7\u05D3\u05DD",alternatives:["\u05D4\u05D5\u05E1\u05E3 \u05D1\u05D4\u05EA\u05D7\u05DC\u05D4"],normalized:"prepend"},take:{primary:"\u05E7\u05D7",normalized:"take"},make:{primary:"\u05E6\u05D5\u05E8",alternatives:["\u05D4\u05DB\u05DF"],normalized:"make"},clone:{primary:"\u05E9\u05DB\u05E4\u05DC",normalized:"clone"},swap:{primary:"\u05D4\u05D7\u05DC\u05E3",alternatives:["\u05D4\u05DE\u05E8"],normalized:"swap"},morph:{primary:"\u05D4\u05E4\u05D5\u05DA",alternatives:["\u05E2\u05E6\u05D1 \u05DE\u05D7\u05D3\u05E9"],normalized:"morph"},set:{primary:"\u05E7\u05D1\u05E2",alternatives:["\u05D4\u05D2\u05D3\u05E8"],normalized:"set"},get:{primary:"\u05E7\u05D1\u05DC",alternatives:["\u05D4\u05E9\u05D2"],normalized:"get"},increment:{primary:"\u05D4\u05D2\u05D3\u05DC",alternatives:["\u05D4\u05D5\u05E1\u05E3 \u05D0\u05D7\u05D3"],normalized:"increment"},decrement:{primary:"\u05D4\u05E7\u05D8\u05DF",alternatives:["\u05D4\u05E4\u05D7\u05EA"],normalized:"decrement"},log:{primary:"\u05E8\u05E9\u05D5\u05DD",normalized:"log"},show:{primary:"\u05D4\u05E8\u05D0\u05D4",alternatives:["\u05D4\u05E6\u05D2"],normalized:"show"},hide:{primary:"\u05D4\u05E1\u05EA\u05E8",alternatives:["\u05D4\u05D7\u05D1\u05D0"],normalized:"hide"},transition:{primary:"\u05DE\u05E2\u05D1\u05E8",alternatives:["\u05D4\u05E0\u05E4\u05E9"],normalized:"transition"},on:{primary:"\u05D1",alternatives:["\u05E2\u05DD"],normalized:"on"},trigger:{primary:"\u05D4\u05E4\u05E2\u05DC",alternatives:["\u05E9\u05D2\u05E8"],normalized:"trigger"},send:{primary:"\u05E9\u05DC\u05D7",normalized:"send"},focus:{primary:"\u05DE\u05E7\u05D3",alternatives:["\u05D4\u05EA\u05DE\u05E7\u05D3"],normalized:"focus"},blur:{primary:"\u05D8\u05E9\u05D8\u05E9",alternatives:["\u05D4\u05E1\u05E8 \u05DE\u05D9\u05E7\u05D5\u05D3"],normalized:"blur"},go:{primary:"\u05DC\u05DA",alternatives:["\u05E0\u05D5\u05D5\u05D8"],normalized:"go"},wait:{primary:"\u05D7\u05DB\u05D4",alternatives:["\u05D4\u05DE\u05EA\u05DF"],normalized:"wait"},fetch:{primary:"\u05D4\u05D1\u05D0",alternatives:["\u05D8\u05E2\u05DF"],normalized:"fetch"},settle:{primary:"\u05D4\u05EA\u05D9\u05D9\u05E6\u05D1",normalized:"settle"},if:{primary:"\u05D0\u05DD",normalized:"if"},when:{primary:"\u05DB\u05D0\u05E9\u05E8",alternatives:["\u05DB\u05E9"],normalized:"when"},where:{primary:"\u05D0\u05D9\u05E4\u05D4",alternatives:["\u05D4\u05D9\u05DB\u05DF"],normalized:"where"},else:{primary:"\u05D0\u05D7\u05E8\u05EA",alternatives:["\u05D0\u05DD \u05DC\u05D0"],normalized:"else"},repeat:{primary:"\u05D7\u05D6\u05D5\u05E8",normalized:"repeat"},for:{primary:"\u05E2\u05D1\u05D5\u05E8",alternatives:["\u05DC\u05DB\u05DC"],normalized:"for"},while:{primary:"\u05DB\u05DC \u05E2\u05D5\u05D3",alternatives:["\u05D1\u05D6\u05DE\u05DF"],normalized:"while"},continue:{primary:"\u05D4\u05DE\u05E9\u05DA",normalized:"continue"},halt:{primary:"\u05E2\u05E6\u05D5\u05E8",alternatives:["\u05D4\u05E4\u05E1\u05E7"],normalized:"halt"},throw:{primary:"\u05D6\u05E8\u05D5\u05E7",normalized:"throw"},call:{primary:"\u05E7\u05E8\u05D0",alternatives:["\u05D6\u05DE\u05DF"],normalized:"call"},return:{primary:"\u05D4\u05D7\u05D6\u05E8",normalized:"return"},then:{primary:"\u05D0\u05D6",alternatives:["\u05D5\u05D0\u05D6"],normalized:"then"},and:{primary:"\u05D5\u05D2\u05DD",alternatives:["\u05D2\u05DD"],normalized:"and"},end:{primary:"\u05E1\u05D5\u05E3",alternatives:["\u05E1\u05D9\u05D5\u05DD"],normalized:"end"},js:{primary:"js",alternatives:["\u05D2\u05F3\u05D0\u05D5\u05D5\u05D4\u05E1\u05E7\u05E8\u05D9\u05E4\u05D8"],normalized:"js"},async:{primary:"\u05D0\u05E1\u05D9\u05E0\u05DB\u05E8\u05D5\u05E0\u05D9",normalized:"async"},tell:{primary:"\u05D0\u05DE\u05D5\u05E8",normalized:"tell"},default:{primary:"\u05D1\u05E8\u05D9\u05E8\u05EA \u05DE\u05D7\u05D3\u05DC",normalized:"default"},init:{primary:"\u05D0\u05EA\u05D7\u05DC",alternatives:["\u05D4\u05EA\u05D7\u05DC"],normalized:"init"},behavior:{primary:"\u05D4\u05EA\u05E0\u05D4\u05D2\u05D5\u05EA",normalized:"behavior"},install:{primary:"\u05D4\u05EA\u05E7\u05DF",normalized:"install"},measure:{primary:"\u05DE\u05D3\u05D5\u05D3",normalized:"measure"},beep:{primary:"\u05D1\u05D9\u05E4",normalized:"beep"},break:{primary:"\u05E9\u05D1\u05D5\u05E8",normalized:"break"},copy:{primary:"\u05D4\u05E2\u05EA\u05E7",normalized:"copy"},exit:{primary:"\u05E6\u05D0",normalized:"exit"},pick:{primary:"\u05D1\u05D7\u05E8",normalized:"pick"},render:{primary:"\u05E8\u05E0\u05D3\u05E8",normalized:"render"},into:{primary:"\u05DC\u05EA\u05D5\u05DA",alternatives:["\u05D0\u05DC"],normalized:"into"},before:{primary:"\u05DC\u05E4\u05E0\u05D9",normalized:"before"},after:{primary:"\u05D0\u05D7\u05E8\u05D9",normalized:"after"},click:{primary:"\u05DC\u05D7\u05D9\u05E6\u05D4",alternatives:["\u05E7\u05DC\u05D9\u05E7"],normalized:"click"},hover:{primary:"\u05E8\u05D9\u05D7\u05D5\u05E3",normalized:"hover"},submit:{primary:"\u05E9\u05DC\u05D9\u05D7\u05D4",alternatives:["\u05D4\u05D2\u05E9\u05D4"],normalized:"submit"},input:{primary:"\u05E7\u05DC\u05D8",alternatives:["\u05D4\u05D6\u05E0\u05D4"],normalized:"input"},change:{primary:"\u05E9\u05D9\u05E0\u05D5\u05D9",alternatives:["\u05E2\u05D3\u05DB\u05D5\u05DF"],normalized:"change"},until:{primary:"\u05E2\u05D3",normalized:"until"},event:{primary:"\u05D0\u05D9\u05E8\u05D5\u05E2",normalized:"event"},from:{primary:"\u05DE",alternatives:["\u05DE\u05D0\u05EA"],normalized:"from"}},tokenization:{prefixes:["\u05D4","\u05D5","\u05D1","\u05DB","\u05DC","\u05DE","\u05E9"]},eventHandler:{keyword:{primary:"\u05D1",alternatives:["\u05E2\u05DD"],normalized:"on"},sourceMarker:{primary:"\u05DE",alternatives:["\u05DE\u05D0\u05EA"],position:"before"},conditionalKeyword:{primary:"\u05DB\u05D0\u05E9\u05E8",alternatives:["\u05DB\u05E9","\u05D0\u05DD"]},eventMarker:{primary:"\u05D1",alternatives:["\u05DB\u05E9","\u05E2\u05DD"],position:"before"},temporalMarkers:["\u05DB\u05D0\u05E9\u05E8","\u05DB\u05E9","\u05E2\u05DD"]}}}}),c0,p0,m0,d0,uh=h({"src/tokenizers/he.ts"(){"use strict";S(),di(),I(),M(),Qf(),ey(),ye(),c0=new Set(["\u05E2\u05DC","\u05D0\u05EA","\u05D0\u05DC","\u05DE\u05DF","\u05E2\u05DD","\u05D1\u05EA\u05D5\u05DA","\u05DE\u05EA\u05D5\u05DA","\u05DC\u05D9\u05D3","\u05D0\u05D7\u05E8\u05D9","\u05DC\u05E4\u05E0\u05D9","\u05D1\u05D9\u05DF","\u05E2\u05D3","\u05E9\u05DC"]),p0=[{native:"\u05D0\u05DE\u05EA",normalized:"true"},{native:"\u05E9\u05E7\u05E8",normalized:"false"},{native:"null",normalized:"null"},{native:"\u05E8\u05D9\u05E7",normalized:"null"},{native:"\u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8",normalized:"undefined"},{native:"\u05E8\u05D0\u05E9\u05D5\u05DF",normalized:"first"},{native:"\u05D0\u05D7\u05E8\u05D5\u05DF",normalized:"last"},{native:"\u05D4\u05D1\u05D0",normalized:"next"},{native:"\u05D4\u05E7\u05D5\u05D3\u05DD",normalized:"previous"},{native:"\u05D4\u05E7\u05E8\u05D5\u05D1",normalized:"closest"},{native:"\u05D4\u05D5\u05E8\u05D4",normalized:"parent"},{native:"\u05DC\u05D7\u05D9\u05E6\u05D4",normalized:"click"},{native:"\u05E7\u05DC\u05D9\u05E7",normalized:"click"},{native:"\u05E7\u05DC\u05D8",normalized:"input"},{native:"\u05E9\u05D9\u05E0\u05D5\u05D9",normalized:"change"},{native:"\u05E9\u05DC\u05D9\u05D7\u05D4",normalized:"submit"},{native:"\u05DE\u05D9\u05E7\u05D5\u05D3",normalized:"focus"},{native:"\u05D8\u05E9\u05D8\u05D5\u05E9",normalized:"blur"},{native:"\u05DC\u05D7\u05D9\u05E6\u05EA \u05DE\u05E7\u05E9",normalized:"keydown"},{native:"\u05E9\u05D7\u05E8\u05D5\u05E8 \u05DE\u05E7\u05E9",normalized:"keyup"},{native:"\u05DE\u05E2\u05D1\u05E8 \u05E2\u05DB\u05D1\u05E8",normalized:"mouseover"},{native:"\u05D9\u05E6\u05D9\u05D0\u05EA \u05E2\u05DB\u05D1\u05E8",normalized:"mouseout"},{native:"\u05D8\u05E2\u05D9\u05E0\u05D4",normalized:"load"},{native:"\u05D2\u05DC\u05D9\u05DC\u05D4",normalized:"scroll"},{native:"\u05D4\u05D9\u05D0",normalized:"it"},{native:"\u05D4\u05D5\u05D0",normalized:"it"},{native:"\u05D0\u05EA",normalized:"you"},{native:"\u05E9\u05E0\u05D9\u05D9\u05D4",normalized:"s"},{native:"\u05E9\u05E0\u05D9\u05D5\u05EA",normalized:"s"},{native:"\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D9\u05D4",normalized:"ms"},{native:"\u05D3\u05E7\u05D4",normalized:"m"},{native:"\u05D3\u05E7\u05D5\u05EA",normalized:"m"},{native:"\u05E9\u05E2\u05D4",normalized:"h"},{native:"\u05E9\u05E2\u05D5\u05EA",normalized:"h"}],m0=class extends j{constructor(){super(),this.language="he",this.direction="rtl",this.initializeKeywordsFromProfile(fr,p0),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractor(new le),this.registerExtractor(Zf()),this.registerExtractors(Jf()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){return c0.has(e)?"particle":this.isKeyword(e)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}},d0=new m0}});function f0(e){return/[\u0900-\u097F\u0A8E-\u0A8F]/u.test(e)}var y0,fi,sh,lh=h({"src/tokenizers/morphology/hindi-normalizer.ts"(){"use strict";H(),y0=[{suffix:" \u0930\u0939\u093E \u0939\u0948",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:" \u0930\u0939\u0940 \u0939\u0948",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:" \u0930\u0939\u0947 \u0939\u0948\u0902",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0930\u0939\u093E",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0930\u0939\u0940",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0930\u0939\u0947",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0942\u0902\u0917\u093E",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0942\u0902\u0917\u0940",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0947\u0917\u093E",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0947\u0917\u0940",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0947\u0902\u0917\u0947",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0924\u093E \u0939\u0948",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0940 \u0939\u0948",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0947 \u0939\u0948\u0902",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u093E",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0940",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0947",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0928\u093E",replacement:"",confidence:.9,type:"dictionary",minStemLength:1},{suffix:"\u093E\u092F\u093E",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u093E\u092F\u0940",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u093E\u092F\u0947",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u092F\u093E",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u093F\u092F\u0947",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u093F\u090F",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u0908",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u090F",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u0947\u0902",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u094B",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u093E",replacement:"",confidence:.82,type:"past",minStemLength:2},{suffix:"\u0940",replacement:"",confidence:.82,type:"past",minStemLength:2},{suffix:"\u0947",replacement:"",confidence:.82,type:"past",minStemLength:2}],fi=class{constructor(){this.language="hi"}isNormalizable(e){return e.length<2?!1:f0(e)}normalize(e){let t=this.tryConjugationNormalization(e);return t||D(e)}tryConjugationNormalization(e){for(let t of y0)if(e.endsWith(t.suffix)){let r=Array.from(e),n=Array.from(t.suffix),i=r.slice(0,r.length-n.length),a=i.join("")+t.replacement,o=t.minStemLength??1;if(i.length<o||a.length>0&&!f0(a))continue;return v(a,t.confidence,{removedSuffixes:[t.suffix],conjugationType:t.type})}return null}},sh=new fi}}),h0={};k(h0,{hindiProfile:()=>At});var At,yr=h({"src/generators/profiles/hindi.ts"(){"use strict";At={code:"hi",name:"Hindi",nativeName:"\u0939\u093F\u0928\u094D\u0926\u0940",direction:"ltr",script:"devanagari",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"end",suffixes:["\u0947\u0902","\u093E","\u0940","\u0947","\u094B"],subjectDrop:!0},references:{me:"\u092E\u0948\u0902",it:"\u092F\u0939",you:"\u0906\u092A",result:"\u092A\u0930\u093F\u0923\u093E\u092E",event:"\u0918\u091F\u0928\u093E",target:"\u0932\u0915\u094D\u0937\u094D\u092F",body:"\u092C\u0949\u0921\u0940"},possessive:{marker:"\u0915\u093E",markerPosition:"between",keywords:{\u092E\u0947\u0930\u093E:"me",\u092E\u0947\u0930\u0940:"me",\u092E\u0947\u0930\u0947:"me",\u0924\u0947\u0930\u093E:"you",\u0924\u0947\u0930\u0940:"you",\u0924\u0947\u0930\u0947:"you",\u0906\u092A\u0915\u093E:"you",\u0906\u092A\u0915\u0940:"you",\u0906\u092A\u0915\u0947:"you",\u0909\u0938\u0915\u093E:"it",\u0909\u0938\u0915\u0940:"it",\u0909\u0938\u0915\u0947:"it",\u0907\u0938\u0915\u093E:"it",\u0907\u0938\u0915\u0940:"it",\u0907\u0938\u0915\u0947:"it"}},roleMarkers:{patient:{primary:"\u0915\u094B",position:"after"},destination:{primary:"\u092E\u0947\u0902",alternatives:["\u0915\u094B","\u092A\u0930"],position:"after"},source:{primary:"\u0938\u0947",position:"after"},style:{primary:"\u0938\u0947",position:"after"},event:{primary:"\u092A\u0930",position:"after"}},keywords:{toggle:{primary:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"],normalized:"toggle"},add:{primary:"\u091C\u094B\u0921\u093C\u0947\u0902",alternatives:["\u091C\u094B\u0921\u093C"],normalized:"add"},remove:{primary:"\u0939\u091F\u093E\u090F\u0902",alternatives:["\u0939\u091F\u093E","\u092E\u093F\u091F\u093E\u090F\u0902"],normalized:"remove"},put:{primary:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"],normalized:"put"},append:{primary:"\u091C\u094B\u0921\u093C\u0947\u0902_\u0905\u0902\u0924",alternatives:[],normalized:"append"},prepend:{primary:"\u091C\u094B\u0921\u093C\u0947\u0902_\u0936\u0941\u0930\u0942",alternatives:[],normalized:"prepend"},take:{primary:"\u0932\u0947\u0902",alternatives:["\u0932\u0947"],normalized:"take"},make:{primary:"\u092C\u0928\u093E\u090F\u0902",alternatives:["\u092C\u0928\u093E"],normalized:"make"},clone:{primary:"\u0915\u094D\u0932\u094B\u0928",alternatives:["\u092A\u094D\u0930\u0924\u093F\u0932\u093F\u092A\u093F"],normalized:"clone"},swap:{primary:"\u092C\u0926\u0932\u0947\u0902_\u0938\u094D\u0925\u093E\u0928",alternatives:[],normalized:"swap"},morph:{primary:"\u0930\u0942\u092A\u093E\u0902\u0924\u0930",alternatives:[],normalized:"morph"},set:{primary:"\u0938\u0947\u091F",alternatives:["\u0928\u093F\u0930\u094D\u0927\u093E\u0930\u093F\u0924"],normalized:"set"},get:{primary:"\u092A\u094D\u0930\u093E\u092A\u094D\u0924",alternatives:["\u092A\u093E\u090F\u0902"],normalized:"get"},increment:{primary:"\u092C\u0922\u093C\u093E\u090F\u0902",alternatives:["\u092C\u0922\u093C\u093E"],normalized:"increment"},decrement:{primary:"\u0918\u091F\u093E\u090F\u0902",alternatives:["\u0918\u091F\u093E"],normalized:"decrement"},log:{primary:"\u0932\u0949\u0917",alternatives:["\u0926\u0930\u094D\u091C"],normalized:"log"},show:{primary:"\u0926\u093F\u0916\u093E\u090F\u0902",alternatives:["\u0926\u093F\u0916\u093E"],normalized:"show"},hide:{primary:"\u091B\u093F\u092A\u093E\u090F\u0902",alternatives:["\u091B\u093F\u092A\u093E"],normalized:"hide"},transition:{primary:"\u0938\u0902\u0915\u094D\u0930\u092E\u0923",alternatives:[],normalized:"transition"},on:{primary:"\u092A\u0930",alternatives:[],normalized:"on"},trigger:{primary:"\u091F\u094D\u0930\u093F\u0917\u0930",alternatives:[],normalized:"trigger"},send:{primary:"\u092D\u0947\u091C\u0947\u0902",alternatives:["\u092D\u0947\u091C"],normalized:"send"},focus:{primary:"\u092B\u094B\u0915\u0938",alternatives:["\u0915\u0947\u0902\u0926\u094D\u0930\u093F\u0924"],normalized:"focus"},blur:{primary:"\u0927\u0941\u0902\u0927\u0932\u093E",alternatives:["\u092B\u094B\u0915\u0938_\u0939\u091F\u093E\u090F\u0902"],normalized:"blur"},click:{primary:"\u0915\u094D\u0932\u093F\u0915",normalized:"click"},hover:{primary:"\u0939\u094B\u0935\u0930",alternatives:["\u090A\u092A\u0930_\u0930\u0916\u0947\u0902"],normalized:"hover"},submit:{primary:"\u0938\u092C\u092E\u093F\u091F",alternatives:["\u091C\u092E\u093E"],normalized:"submit"},input:{primary:"\u0907\u0928\u092A\u0941\u091F",alternatives:[],normalized:"input"},change:{primary:"\u092C\u0926\u0932\u093E\u0935",alternatives:["\u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928"],normalized:"change"},go:{primary:"\u091C\u093E\u090F\u0902",alternatives:["\u091C\u093E"],normalized:"go"},wait:{primary:"\u092A\u094D\u0930\u0924\u0940\u0915\u094D\u0937\u093E",alternatives:["\u0930\u0941\u0915\u0947\u0902"],normalized:"wait"},fetch:{primary:"\u0932\u093E\u090F\u0902",alternatives:[],normalized:"fetch"},settle:{primary:"\u0938\u094D\u0925\u093F\u0930",alternatives:[],normalized:"settle"},if:{primary:"\u0905\u0917\u0930",alternatives:["\u092F\u0926\u093F"],normalized:"if"},when:{primary:"\u091C\u092C",normalized:"when"},where:{primary:"\u0915\u0939\u093E\u0901",normalized:"where"},else:{primary:"\u0935\u0930\u0928\u093E",alternatives:["\u0928\u0939\u0940\u0902 \u0924\u094B"],normalized:"else"},repeat:{primary:"\u0926\u094B\u0939\u0930\u093E\u090F\u0902",alternatives:["\u0926\u094B\u0939\u0930\u093E"],normalized:"repeat"},for:{primary:"\u0915\u0947 \u0932\u093F\u090F",alternatives:[],normalized:"for"},while:{primary:"\u091C\u092C \u0924\u0915",alternatives:[],normalized:"while"},continue:{primary:"\u091C\u093E\u0930\u0940",alternatives:[],normalized:"continue"},halt:{primary:"\u0930\u094B\u0915\u0947\u0902",alternatives:["\u0930\u094B\u0915"],normalized:"halt"},throw:{primary:"\u092B\u0947\u0902\u0915\u0947\u0902",alternatives:["\u092B\u0947\u0902\u0915"],normalized:"throw"},call:{primary:"\u0915\u0949\u0932",alternatives:["\u092C\u0941\u0932\u093E\u090F\u0902"],normalized:"call"},return:{primary:"\u0932\u094C\u091F\u093E\u090F\u0902",alternatives:["\u0932\u094C\u091F\u093E"],normalized:"return"},then:{primary:"\u092B\u093F\u0930",alternatives:["\u0924\u092C"],normalized:"then"},and:{primary:"\u0914\u0930",alternatives:[],normalized:"and"},end:{primary:"\u0938\u092E\u093E\u092A\u094D\u0924",alternatives:["\u0905\u0902\u0924"],normalized:"end"},js:{primary:"\u091C\u0947\u090F\u0938",alternatives:["js"],normalized:"js"},async:{primary:"\u0905\u0938\u093F\u0902\u0915",alternatives:[],normalized:"async"},tell:{primary:"\u092C\u0924\u093E\u090F\u0902",alternatives:["\u092C\u0924\u093E"],normalized:"tell"},default:{primary:"\u0921\u093F\u092B\u093C\u0949\u0932\u094D\u091F",alternatives:[],normalized:"default"},init:{primary:"\u092A\u094D\u0930\u093E\u0930\u0902\u092D",alternatives:[],normalized:"init"},behavior:{primary:"\u0935\u094D\u092F\u0935\u0939\u093E\u0930",alternatives:[],normalized:"behavior"},install:{primary:"\u0907\u0902\u0938\u094D\u091F\u0949\u0932",alternatives:[],normalized:"install"},measure:{primary:"\u092E\u093E\u092A\u0947\u0902",alternatives:[],normalized:"measure"},beep:{primary:"\u092C\u0940\u092A",alternatives:[],normalized:"beep"},break:{primary:"\u0924\u094B\u0921\u093C\u0947\u0902",alternatives:[],normalized:"break"},copy:{primary:"\u0915\u0949\u092A\u0940",alternatives:[],normalized:"copy"},exit:{primary:"\u092C\u093E\u0939\u0930",alternatives:[],normalized:"exit"},pick:{primary:"\u091A\u0941\u0928\u0947\u0902",alternatives:[],normalized:"pick"},render:{primary:"\u0930\u0947\u0902\u0921\u0930",alternatives:[],normalized:"render"},into:{primary:"\u092E\u0947\u0902",alternatives:["\u0915\u094B"],normalized:"into"},before:{primary:"\u0938\u0947 \u092A\u0939\u0932\u0947",alternatives:["\u092A\u0939\u0932\u0947"],normalized:"before"},after:{primary:"\u0915\u0947 \u092C\u093E\u0926",alternatives:["\u092C\u093E\u0926"],normalized:"after"},until:{primary:"\u0924\u0915",alternatives:[],normalized:"until"},event:{primary:"\u0918\u091F\u0928\u093E",alternatives:[],normalized:"event"},from:{primary:"\u0938\u0947",normalized:"from"}},tokenization:{particles:["\u0915\u094B","\u092E\u0947\u0902","\u092A\u0930","\u0938\u0947","\u0915\u093E","\u0915\u0940","\u0915\u0947","\u0924\u0915","\u0928\u0947"],boundaryStrategy:"space"},eventHandler:{keyword:{primary:"\u092A\u0930",alternatives:[],normalized:"on"},sourceMarker:{primary:"\u0938\u0947",position:"after"},eventMarker:{primary:"\u092A\u0930",alternatives:["\u092E\u0947\u0902"],position:"after"},temporalMarkers:["\u091C\u092C","\u091C\u092C \u092D\u0940"]}}}}),v0={};k(v0,{HindiTokenizer:()=>yi,hindiTokenizer:()=>hi});var g0,E0,yi,hi,z0=h({"src/tokenizers/hindi.ts"(){"use strict";S(),lh(),yr(),I(),M(),wf(),Af(),ye(),g0=new Set(["\u0915\u094B","\u092E\u0947\u0902","\u092A\u0930","\u0938\u0947","\u0915\u093E","\u0915\u0940","\u0915\u0947","\u0924\u0915","\u0928\u0947"]),E0=[{native:"\u0938\u091A",normalized:"true"},{native:"\u0938\u0924\u094D\u092F",normalized:"true"},{native:"\u091D\u0942\u0920",normalized:"false"},{native:"\u0905\u0938\u0924\u094D\u092F",normalized:"false"},{native:"\u0916\u093E\u0932\u0940",normalized:"null"},{native:"\u0905\u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924",normalized:"undefined"},{native:"\u092A\u0939\u0932\u093E",normalized:"first"},{native:"\u0905\u0902\u0924\u093F\u092E",normalized:"last"},{native:"\u0905\u0917\u0932\u093E",normalized:"next"},{native:"\u092A\u093F\u091B\u0932\u093E",normalized:"previous"},{native:"\u0928\u093F\u0915\u091F\u0924\u092E",normalized:"closest"},{native:"\u092E\u0942\u0932",normalized:"parent"},{native:"\u0915\u094D\u0932\u093F\u0915",normalized:"click"},{native:"\u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928",normalized:"change"},{native:"\u091C\u092E\u093E",normalized:"submit"},{native:"\u0907\u0928\u092A\u0941\u091F",normalized:"input"},{native:"\u0932\u094B\u0921",normalized:"load"},{native:"\u0938\u094D\u0915\u094D\u0930\u0949\u0932",normalized:"scroll"},{native:"\u0915\u094B",normalized:"to"},{native:"\u0915\u0947 \u0938\u093E\u0925",normalized:"with"}],yi=class extends j{constructor(){super(),this.language="hi",this.direction="ltr",this.initializeKeywordsFromProfile(At,E0),this.normalizer=new fi,this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractor(new mu),this.registerExtractor(new pu),this.registerExtractor(new le),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){return g0.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":(e.startsWith(":"),"identifier")}},hi=new yi}}),k0={};k(k0,{indonesianProfile:()=>Ye});var Ye,bt=h({"src/generators/profiles/indonesian.ts"(){"use strict";Ye={code:"id",name:"Indonesian",nativeName:"Bahasa Indonesia",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"saya",it:"itu",you:"anda",result:"hasil",event:"peristiwa",target:"target",body:"tubuh"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"saya",it:"nya",you:"anda"},keywords:{saya:"me",aku:"me",ku:"me",anda:"you",kamu:"you",mu:"you",nya:"it",dia:"it"}},roleMarkers:{destination:{primary:"pada",alternatives:["ke","di"],position:"before"},source:{primary:"dari",position:"before"},patient:{primary:"",position:"before"},style:{primary:"dengan",position:"before"}},keywords:{toggle:{primary:"alihkan",normalized:"toggle"},add:{primary:"tambah",alternatives:["tambahkan"],normalized:"add"},remove:{primary:"hapus",alternatives:["buang","hilangkan"],normalized:"remove"},put:{primary:"taruh",alternatives:["letakkan","masukkan"],normalized:"put"},append:{primary:"sisipkan",normalized:"append"},prepend:{primary:"awali",normalized:"prepend"},take:{primary:"ambil",normalized:"take"},make:{primary:"buat",alternatives:["bikin","ciptakan"],normalized:"make"},clone:{primary:"klon",alternatives:["tiru"],normalized:"clone"},swap:{primary:"tukar",alternatives:["ganti"],normalized:"swap"},morph:{primary:"ubah",alternatives:["transformasi"],normalized:"morph"},set:{primary:"atur",alternatives:["tetapkan"],normalized:"set"},get:{primary:"dapatkan",alternatives:["peroleh"],normalized:"get"},increment:{primary:"tingkatkan",alternatives:["naikkan"],normalized:"increment"},decrement:{primary:"turunkan",alternatives:["kurangi"],normalized:"decrement"},log:{primary:"catat",alternatives:["rekam","cetak"],normalized:"log"},show:{primary:"tampilkan",alternatives:["perlihatkan"],normalized:"show"},hide:{primary:"sembunyikan",alternatives:["tutup"],normalized:"hide"},transition:{primary:"transisi",alternatives:["animasikan"],normalized:"transition"},on:{primary:"pada",alternatives:["saat"],normalized:"on"},trigger:{primary:"picu",alternatives:["jalankan"],normalized:"trigger"},send:{primary:"kirim",alternatives:["kirimkan"],normalized:"send"},focus:{primary:"fokus",alternatives:["fokuskan"],normalized:"focus"},blur:{primary:"blur",normalized:"blur"},go:{primary:"pergi",alternatives:["pindah","navigasi"],normalized:"go"},wait:{primary:"tunggu",normalized:"wait"},fetch:{primary:"muat",normalized:"fetch"},settle:{primary:"stabilkan",normalized:"settle"},if:{primary:"jika",alternatives:["kalau","bila"],normalized:"if"},when:{primary:"ketika",normalized:"when"},where:{primary:"di_mana",normalized:"where"},else:{primary:"selainnya",normalized:"else"},repeat:{primary:"ulangi",normalized:"repeat"},for:{primary:"untuk",normalized:"for"},while:{primary:"selama",normalized:"while"},continue:{primary:"lanjutkan",alternatives:["terus"],normalized:"continue"},halt:{primary:"hentikan",alternatives:["berhenti"],normalized:"halt"},throw:{primary:"lempar",normalized:"throw"},call:{primary:"panggil",normalized:"call"},return:{primary:"kembalikan",alternatives:["kembali"],normalized:"return"},then:{primary:"lalu",alternatives:["kemudian","setelah itu"],normalized:"then"},and:{primary:"dan",alternatives:["juga","serta"],normalized:"and"},end:{primary:"selesai",alternatives:["akhir","tamat"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"asinkron",normalized:"async"},tell:{primary:"katakan",alternatives:["beritahu"],normalized:"tell"},default:{primary:"bawaan",normalized:"default"},init:{primary:"inisialisasi",alternatives:["mulai"],normalized:"init"},behavior:{primary:"perilaku",normalized:"behavior"},install:{primary:"pasang",alternatives:["instal"],normalized:"install"},measure:{primary:"ukur",normalized:"measure"},beep:{primary:"bunyi",normalized:"beep"},break:{primary:"putuskan",normalized:"break"},copy:{primary:"salin",normalized:"copy"},exit:{primary:"keluar",normalized:"exit"},pick:{primary:"pilih",normalized:"pick"},render:{primary:"olah",normalized:"render"},into:{primary:"ke dalam",normalized:"into"},before:{primary:"sebelum",normalized:"before"},after:{primary:"sesudah",alternatives:["setelah"],normalized:"after"},click:{primary:"klik",alternatives:["tekan"],normalized:"click"},hover:{primary:"hover",alternatives:["arahkan"],normalized:"hover"},submit:{primary:"ajukan",normalized:"submit"},input:{primary:"masuk",alternatives:["input"],normalized:"input"},change:{primary:"berubah",normalized:"change"},until:{primary:"sampai",normalized:"until"},event:{primary:"peristiwa",alternatives:["event"],normalized:"event"},from:{primary:"dari",normalized:"from"}},eventHandler:{keyword:{primary:"pada",alternatives:["ketika","saat"],normalized:"on"},sourceMarker:{primary:"dari",position:"before"},conditionalKeyword:{primary:"ketika",alternatives:["saat","waktu"]},eventMarker:{primary:"saat",alternatives:["ketika"],position:"before"},temporalMarkers:["ketika","saat"]}}}}),C0={};k(C0,{IndonesianTokenizer:()=>vi,indonesianTokenizer:()=>gi});var x0,w0,vi,gi,A0=h({"src/tokenizers/indonesian.ts"(){"use strict";S(),bt(),I(),M(),$f(),x0=new Set(["di","ke","dari","pada","dengan","tanpa","untuk","oleh","antara","sebelum","sesudah","setelah","selama","sampai","hingga","sejak","menuju","tentang","terhadap","melalui","dalam","luar"]),w0=[{native:"benar",normalized:"true"},{native:"salah",normalized:"false"},{native:"null",normalized:"null"},{native:"kosong",normalized:"null"},{native:"tidakdidefinisikan",normalized:"undefined"},{native:"pertama",normalized:"first"},{native:"terakhir",normalized:"last"},{native:"berikutnya",normalized:"next"},{native:"sebelumnya",normalized:"previous"},{native:"terdekat",normalized:"closest"},{native:"induk",normalized:"parent"},{native:"klik",normalized:"click"},{native:"click",normalized:"click"},{native:"ubah",normalized:"change"},{native:"kirim",normalized:"submit"},{native:"tekan",normalized:"keydown"},{native:"arahkan",normalized:"mouseover"},{native:"tinggalkan",normalized:"mouseout"},{native:"kabur",normalized:"blur"},{native:"muat",normalized:"load"},{native:"gulir",normalized:"scroll"},{native:"input",normalized:"input"},{native:"milik",normalized:"my"},{native:"detik",normalized:"s"},{native:"milidetik",normalized:"ms"},{native:"menit",normalized:"m"},{native:"jam",normalized:"h"},{native:"atau",normalized:"or"},{native:"tidak",normalized:"not"},{native:"adalah",normalized:"is"},{native:"ada",normalized:"exists"}],vi=class extends j{constructor(){super(),this.language="id",this.direction="ltr",this.initializeKeywordsFromProfile(Ye,w0),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractors(qf()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){let t=e.toLowerCase();return x0.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}},gi=new vi}});function ch(e){return/[àèéìíîòóùúÀÈÉÌÍÎÒÓÙÚ]/.test(e)}function ph(e){let t=e.toLowerCase();if(t.endsWith("are")||t.endsWith("ere")||t.endsWith("ire")||t.endsWith("ando")||t.endsWith("endo")||t.endsWith("ato")||t.endsWith("uto")||t.endsWith("ito")||t.endsWith("arsi")||t.endsWith("ersi")||t.endsWith("irsi"))return!0;for(let r of e)if(ch(r))return!0;return!1}var Ei,b0,D0,T0,S0,zi,mh,dh=h({"src/tokenizers/morphology/italian-normalizer.ts"(){"use strict";H(),Ei=["si","mi","ti","ci","vi"],b0=[{ending:"ando",stem:"are",confidence:.88,type:"gerund"},{ending:"ato",stem:"are",confidence:.88,type:"participle"},{ending:"ata",stem:"are",confidence:.88,type:"participle"},{ending:"ati",stem:"are",confidence:.88,type:"participle"},{ending:"ate",stem:"are",confidence:.88,type:"participle"},{ending:"o",stem:"are",confidence:.75,type:"present"},{ending:"i",stem:"are",confidence:.72,type:"present"},{ending:"a",stem:"are",confidence:.75,type:"present"},{ending:"iamo",stem:"are",confidence:.85,type:"present"},{ending:"ate",stem:"are",confidence:.85,type:"present"},{ending:"ano",stem:"are",confidence:.85,type:"present"},{ending:"avo",stem:"are",confidence:.88,type:"past"},{ending:"avi",stem:"are",confidence:.88,type:"past"},{ending:"ava",stem:"are",confidence:.88,type:"past"},{ending:"avamo",stem:"are",confidence:.88,type:"past"},{ending:"avate",stem:"are",confidence:.88,type:"past"},{ending:"avano",stem:"are",confidence:.88,type:"past"},{ending:"ai",stem:"are",confidence:.85,type:"past"},{ending:"asti",stem:"are",confidence:.88,type:"past"},{ending:"\xF2",stem:"are",confidence:.85,type:"past"},{ending:"ammo",stem:"are",confidence:.88,type:"past"},{ending:"aste",stem:"are",confidence:.88,type:"past"},{ending:"arono",stem:"are",confidence:.88,type:"past"},{ending:"i",stem:"are",confidence:.72,type:"subjunctive"},{ending:"ino",stem:"are",confidence:.82,type:"subjunctive"},{ending:"a",stem:"are",confidence:.75,type:"imperative"},{ending:"are",stem:"are",confidence:.92,type:"dictionary"}],D0=[{ending:"endo",stem:"ere",confidence:.88,type:"gerund"},{ending:"uto",stem:"ere",confidence:.85,type:"participle"},{ending:"uta",stem:"ere",confidence:.85,type:"participle"},{ending:"uti",stem:"ere",confidence:.85,type:"participle"},{ending:"ute",stem:"ere",confidence:.85,type:"participle"},{ending:"o",stem:"ere",confidence:.72,type:"present"},{ending:"i",stem:"ere",confidence:.72,type:"present"},{ending:"e",stem:"ere",confidence:.72,type:"present"},{ending:"iamo",stem:"ere",confidence:.85,type:"present"},{ending:"ete",stem:"ere",confidence:.85,type:"present"},{ending:"ono",stem:"ere",confidence:.82,type:"present"},{ending:"evo",stem:"ere",confidence:.88,type:"past"},{ending:"evi",stem:"ere",confidence:.88,type:"past"},{ending:"eva",stem:"ere",confidence:.88,type:"past"},{ending:"evamo",stem:"ere",confidence:.88,type:"past"},{ending:"evate",stem:"ere",confidence:.88,type:"past"},{ending:"evano",stem:"ere",confidence:.88,type:"past"},{ending:"ei",stem:"ere",confidence:.85,type:"past"},{ending:"etti",stem:"ere",confidence:.85,type:"past"},{ending:"esti",stem:"ere",confidence:.88,type:"past"},{ending:"\xE9",stem:"ere",confidence:.85,type:"past"},{ending:"ette",stem:"ere",confidence:.85,type:"past"},{ending:"emmo",stem:"ere",confidence:.88,type:"past"},{ending:"este",stem:"ere",confidence:.88,type:"past"},{ending:"erono",stem:"ere",confidence:.88,type:"past"},{ending:"ettero",stem:"ere",confidence:.88,type:"past"},{ending:"ere",stem:"ere",confidence:.92,type:"dictionary"}],T0=[{ending:"endo",stem:"ire",confidence:.85,type:"gerund"},{ending:"ito",stem:"ire",confidence:.85,type:"participle"},{ending:"ita",stem:"ire",confidence:.85,type:"participle"},{ending:"iti",stem:"ire",confidence:.85,type:"participle"},{ending:"ite",stem:"ire",confidence:.85,type:"participle"},{ending:"o",stem:"ire",confidence:.7,type:"present"},{ending:"i",stem:"ire",confidence:.7,type:"present"},{ending:"e",stem:"ire",confidence:.7,type:"present"},{ending:"iamo",stem:"ire",confidence:.85,type:"present"},{ending:"ite",stem:"ire",confidence:.85,type:"present"},{ending:"ono",stem:"ire",confidence:.78,type:"present"},{ending:"isco",stem:"ire",confidence:.85,type:"present"},{ending:"isci",stem:"ire",confidence:.85,type:"present"},{ending:"isce",stem:"ire",confidence:.85,type:"present"},{ending:"iscono",stem:"ire",confidence:.88,type:"present"},{ending:"ivo",stem:"ire",confidence:.88,type:"past"},{ending:"ivi",stem:"ire",confidence:.88,type:"past"},{ending:"iva",stem:"ire",confidence:.88,type:"past"},{ending:"ivamo",stem:"ire",confidence:.88,type:"past"},{ending:"ivate",stem:"ire",confidence:.88,type:"past"},{ending:"ivano",stem:"ire",confidence:.88,type:"past"},{ending:"ii",stem:"ire",confidence:.85,type:"past"},{ending:"isti",stem:"ire",confidence:.88,type:"past"},{ending:"\xEC",stem:"ire",confidence:.85,type:"past"},{ending:"immo",stem:"ire",confidence:.88,type:"past"},{ending:"iste",stem:"ire",confidence:.88,type:"past"},{ending:"irono",stem:"ire",confidence:.88,type:"past"},{ending:"ire",stem:"ire",confidence:.92,type:"dictionary"}],S0=[...b0,...D0,...T0].sort((e,t)=>t.ending.length-e.ending.length),zi=class{constructor(){this.language="it"}isNormalizable(e){return e.length<3?!1:ph(e)}normalize(e){let t=e.toLowerCase();if((t.endsWith("are")||t.endsWith("ere")||t.endsWith("ire"))&&!Ei.some(i=>t.endsWith(i+"are")||t.endsWith(i+"ere")||t.endsWith(i+"ire")))return D(e);let r=this.tryReflexiveNormalization(t);if(r)return r;let n=this.tryConjugationNormalization(t);return n||D(e)}tryReflexiveNormalization(e){for(let t of Ei)if(e.endsWith(t)){let r=e.slice(0,-t.length);if(r.endsWith("ar")||r.endsWith("er")||r.endsWith("ir")){let i=r+"e";return v(i,.88,{removedSuffixes:[t],conjugationType:"reflexive"})}if(r.endsWith("are")||r.endsWith("ere")||r.endsWith("ire"))return v(r,.88,{removedSuffixes:[t],conjugationType:"reflexive"});let n=this.tryConjugationNormalization(r);if(n&&n.stem!==r)return v(n.stem,n.confidence*.95,{removedSuffixes:[t,...n.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationNormalization(e){for(let t of S0)if(e.endsWith(t.ending)){let r=e.slice(0,-t.ending.length);if(r.length<2)continue;let n=r+t.stem;return v(n,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}},mh=new zi}}),B0={};k(B0,{italianProfile:()=>Dt});var Dt,hr=h({"src/generators/profiles/italian.ts"(){"use strict";Dt={code:"it",name:"Italian",nativeName:"Italiano",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0},references:{me:"io",it:"esso",you:"tu",result:"risultato",event:"evento",target:"obiettivo",body:"corpo"},possessive:{marker:"di",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mio",it:"suo",you:"tuo"},keywords:{mio:"me",mia:"me",miei:"me",mie:"me",tuo:"you",tua:"you",tuoi:"you",tue:"you",suo:"it",sua:"it",suoi:"it",sue:"it"}},roleMarkers:{destination:{primary:"in",alternatives:["su","a"],position:"before"},source:{primary:"da",alternatives:["di"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"con",position:"before"}},keywords:{toggle:{primary:"commutare",alternatives:["alternare"],normalized:"toggle"},add:{primary:"aggiungere",alternatives:["aggiungi"],normalized:"add"},remove:{primary:"rimuovere",alternatives:["eliminare","togliere"],normalized:"remove"},put:{primary:"mettere",alternatives:["inserire"],normalized:"put"},append:{primary:"accodare",normalized:"append"},prepend:{primary:"anteporre",normalized:"prepend"},take:{primary:"prendere",normalized:"take"},make:{primary:"fare",alternatives:["creare"],normalized:"make"},clone:{primary:"clonare",normalized:"clone"},swap:{primary:"scambiare",normalized:"swap"},morph:{primary:"trasformare",alternatives:["convertire"],normalized:"morph"},set:{primary:"impostare",alternatives:["definire"],normalized:"set"},get:{primary:"ottenere",normalized:"get"},increment:{primary:"incrementare",alternatives:["aumentare"],normalized:"increment"},decrement:{primary:"decrementare",alternatives:["diminuire"],normalized:"decrement"},log:{primary:"registrare",normalized:"log"},show:{primary:"mostrare",alternatives:["visualizzare"],normalized:"show"},hide:{primary:"nascondere",normalized:"hide"},transition:{primary:"transizione",alternatives:["animare"],normalized:"transition"},on:{primary:"su",alternatives:["al"],normalized:"on"},trigger:{primary:"scatenare",alternatives:["attivare"],normalized:"trigger"},send:{primary:"inviare",normalized:"send"},focus:{primary:"focalizzare",normalized:"focus"},blur:{primary:"sfuocare",normalized:"blur"},go:{primary:"andare",alternatives:["navigare","vai"],normalized:"go"},wait:{primary:"aspettare",alternatives:["attendere"],normalized:"wait"},fetch:{primary:"recuperare",normalized:"fetch"},settle:{primary:"stabilizzare",normalized:"settle"},if:{primary:"se",normalized:"if"},when:{primary:"quando",normalized:"when"},where:{primary:"dove",normalized:"where"},else:{primary:"altrimenti",normalized:"else"},repeat:{primary:"ripetere",normalized:"repeat"},for:{primary:"per",normalized:"for"},while:{primary:"mentre",normalized:"while"},continue:{primary:"continuare",normalized:"continue"},halt:{primary:"fermare",normalized:"halt"},throw:{primary:"lanciare",normalized:"throw"},call:{primary:"chiamare",normalized:"call"},return:{primary:"ritornare",normalized:"return"},then:{primary:"allora",alternatives:["poi","quindi"],normalized:"then"},and:{primary:"e",alternatives:["anche"],normalized:"and"},end:{primary:"fine",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asincrono",normalized:"async"},tell:{primary:"dire",normalized:"tell"},default:{primary:"predefinito",normalized:"default"},init:{primary:"inizializzare",alternatives:["inizia"],normalized:"init"},behavior:{primary:"comportamento",normalized:"behavior"},install:{primary:"installare",normalized:"install"},measure:{primary:"misurare",normalized:"measure"},beep:{primary:"beep",normalized:"beep"},break:{primary:"interrompere",normalized:"break"},copy:{primary:"copiare",normalized:"copy"},exit:{primary:"uscire",normalized:"exit"},pick:{primary:"scegliere",normalized:"pick"},render:{primary:"renderizzare",normalized:"render"},into:{primary:"in",alternatives:["dentro"],normalized:"into"},before:{primary:"prima",normalized:"before"},after:{primary:"dopo",normalized:"after"},click:{primary:"clic",alternatives:["clicca"],normalized:"click"},hover:{primary:"passaggio",alternatives:["sorvolo"],normalized:"hover"},submit:{primary:"invio",alternatives:["sottomettere"],normalized:"submit"},input:{primary:"inserimento",alternatives:["input"],normalized:"input"},change:{primary:"cambio",alternatives:["cambiamento"],normalized:"change"},until:{primary:"fino",normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"da",alternatives:["di"],normalized:"from"}},eventHandler:{keyword:{primary:"su",alternatives:["al"],normalized:"on"},sourceMarker:{primary:"da",alternatives:["di"],position:"before"},conditionalKeyword:{primary:"quando",alternatives:["se"]},eventMarker:{primary:"al",alternatives:["allo","alla"],position:"before"},temporalMarkers:["quando","al"]}}}});function fh(e){return{isLetter:n=>e.test(n),isIdentifierChar:n=>/[0-9]/.test(n)||e.test(n)}}function yh(){return[new F0("italian-keyword",/[a-zA-ZàèéìíîòóùúÀÈÉÌÍÎÒÓÙÚ]/,P0)]}var F0,P0,hh=h({"src/tokenizers/extractors/romance-language-keyword.ts"(){"use strict";F0=class{constructor(e,t,r){this.name=e;let n=fh(t);this.isLetter=n.isLetter,this.isIdentifierChar=n.isIdentifierChar,this.prepositions=r}setContext(e){this.context=e}canExtract(e,t){return this.isLetter(e[t])}extract(e,t){if(!this.context)throw new Error(`${this.name}: context not set`);let r=t,n="";for(;r<e.length&&this.isIdentifierChar(e[r]);)n+=e[r++];if(!n)return null;let i=n.toLowerCase(),a=this.prepositions.has(i),o=this.context.lookupKeyword(i),u=o&&o.normalized!==o.native?o.normalized:void 0,s;if(!o&&this.context.normalizer){let l=this.context.normalizer.normalize(n);if(l.stem!==n&&l.confidence>=.7){let c=this.context.lookupKeyword(l.stem);c&&(s=c.normalized)}}return{value:n,length:r-t,metadata:{normalized:u||s,isPreposition:a}}}},P0=new Set(["in","a","di","da","con","su","per","tra","fra","dopo","prima","dentro","fuori","sopra","sotto","al","allo","alla","ai","agli","alle","del","dello","della","dei","degli","delle","dal","dallo","dalla","dai","dagli","dalle","nel","nello","nella","nei","negli","nelle","sul","sullo","sulla","sui","sugli","sulle"])}}),L0={};k(L0,{ItalianTokenizer:()=>ki,italianTokenizer:()=>Ci});var j0,_0,ki,Ci,R0=h({"src/tokenizers/italian.ts"(){"use strict";S(),dh(),hr(),I(),M(),hh(),j0=new Set(["in","a","di","da","con","su","per","tra","fra","dopo","prima","dentro","fuori","sopra","sotto","al","allo","alla","ai","agli","alle","del","dello","della","dei","degli","delle","dal","dallo","dalla","dai","dagli","dalle","nel","nello","nella","nei","negli","nelle","sul","sullo","sulla","sui","sugli","sulle"]),_0=[{native:"vero",normalized:"true"},{native:"falso",normalized:"false"},{native:"nullo",normalized:"null"},{native:"indefinito",normalized:"undefined"},{native:"primo",normalized:"first"},{native:"prima",normalized:"first"},{native:"ultimo",normalized:"last"},{native:"ultima",normalized:"last"},{native:"prossimo",normalized:"next"},{native:"successivo",normalized:"next"},{native:"precedente",normalized:"previous"},{native:"vicino",normalized:"closest"},{native:"padre",normalized:"parent"},{native:"clic",normalized:"click"},{native:"click",normalized:"click"},{native:"fare clic",normalized:"click"},{native:"input",normalized:"input"},{native:"cambio",normalized:"change"},{native:"invio",normalized:"submit"},{native:"tasto gi\xF9",normalized:"keydown"},{native:"tasto su",normalized:"keyup"},{native:"mouse sopra",normalized:"mouseover"},{native:"mouse fuori",normalized:"mouseout"},{native:"fuoco",normalized:"focus"},{native:"sfuocatura",normalized:"blur"},{native:"caricamento",normalized:"load"},{native:"scorrimento",normalized:"scroll"},{native:"io",normalized:"me"},{native:"me",normalized:"me"},{native:"destinazione",normalized:"target"},{native:"secondo",normalized:"s"},{native:"secondi",normalized:"s"},{native:"millisecondo",normalized:"ms"},{native:"millisecondi",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minuti",normalized:"m"},{native:"ora",normalized:"h"},{native:"ore",normalized:"h"},{native:"fino a",normalized:"until"},{native:"prima di",normalized:"before"},{native:"dopo di",normalized:"after"},{native:"dentro di",normalized:"into"},{native:"fuori di",normalized:"out"},{native:"aggiungere",normalized:"add"},{native:"aggiungi",normalized:"add"},{native:"rimuovi",normalized:"remove"},{native:"elimina",normalized:"remove"},{native:"togli",normalized:"remove"},{native:"metti",normalized:"put"},{native:"inserisci",normalized:"put"},{native:"prendi",normalized:"take"},{native:"fai",normalized:"make"},{native:"crea",normalized:"make"},{native:"clona",normalized:"clone"},{native:"copia",normalized:"clone"},{native:"imposta",normalized:"set"},{native:"ottieni",normalized:"get"},{native:"incrementa",normalized:"increment"},{native:"aumenta",normalized:"increment"},{native:"decrementa",normalized:"decrement"},{native:"diminuisci",normalized:"decrement"},{native:"registra",normalized:"log"},{native:"mostra",normalized:"show"},{native:"visualizza",normalized:"show"},{native:"nascondi",normalized:"hide"},{native:"anima",normalized:"transition"},{native:"scatena",normalized:"trigger"},{native:"attiva",normalized:"trigger"},{native:"invia",normalized:"send"},{native:"focalizza",normalized:"focus"},{native:"sfuoca",normalized:"blur"},{native:"vai",normalized:"go"},{native:"naviga",normalized:"go"},{native:"aspetta",normalized:"wait"},{native:"attendi",normalized:"wait"},{native:"recupera",normalized:"fetch"},{native:"stabilizza",normalized:"settle"},{native:"ripeti",normalized:"repeat"},{native:"continua",normalized:"continue"},{native:"ferma",normalized:"halt"},{native:"lancia",normalized:"throw"},{native:"chiama",normalized:"call"},{native:"ritorna",normalized:"return"},{native:"inizializza",normalized:"init"},{native:"installa",normalized:"install"},{native:"misura",normalized:"measure"},{native:"e",normalized:"and"},{native:"o",normalized:"or"},{native:"non",normalized:"not"},{native:"\xE8",normalized:"is"},{native:"esiste",normalized:"exists"},{native:"vuoto",normalized:"empty"},{native:"toggle",normalized:"toggle"},{native:"di",normalized:"tell"}],ki=class extends j{constructor(){super(),this.language="it",this.direction="ltr",this.initializeKeywordsFromProfile(Dt,_0),this.setNormalizer(new zi),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractors(yh()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){let t=e.toLowerCase();return j0.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}},Ci=new ki}});function N0(e){let t=e.charCodeAt(0);return t>=12352&&t<=12447}function vh(e){let t=e.charCodeAt(0);return t>=12448&&t<=12543}function gh(e){let t=e.charCodeAt(0);return t>=19968&&t<=40959||t>=13312&&t<=19903}function Eh(e){for(let t of e)if(N0(t)||vh(t)||gh(t))return!0;return!1}var I0,O0,xi,zh,kh=h({"src/tokenizers/morphology/japanese-normalizer.ts"(){"use strict";H(),I0=[{pattern:"\u3057\u305F\u3089",confidence:.88,conjugationType:"conditional-tara",minStemLength:2},{pattern:"\u3059\u308B\u3068",confidence:.88,conjugationType:"conditional-to",minStemLength:2},{pattern:"\u3059\u308C\u3070",confidence:.85,conjugationType:"conditional-ba",minStemLength:2},{pattern:"\u305F\u3089",confidence:.85,conjugationType:"conditional-tara",minStemLength:2},{pattern:"\u308C\u3070",confidence:.82,conjugationType:"conditional-ba",minStemLength:2},{pattern:"\u3066\u3044\u307E\u3057\u305F",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\u3066\u3044\u307E\u3059",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304F\u3060\u3055\u3044",confidence:.85,conjugationType:"request",minStemLength:2},{pattern:"\u3067\u304F\u3060\u3055\u3044",confidence:.85,conjugationType:"request",minStemLength:2},{pattern:"\u3066\u3044\u308B",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304A\u304F",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u307F\u308B",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u3042\u308B",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304F\u308C",confidence:.8,conjugationType:"casual-request",minStemLength:2},{pattern:"\u3067\u304F\u308C",confidence:.8,conjugationType:"casual-request",minStemLength:2},{pattern:"\u3061\u3083\u3063\u305F",confidence:.82,conjugationType:"contracted-past",minStemLength:2},{pattern:"\u3058\u3083\u3063\u305F",confidence:.82,conjugationType:"contracted-past",minStemLength:2},{pattern:"\u3061\u3083\u3046",confidence:.82,conjugationType:"contracted",minStemLength:2},{pattern:"\u3058\u3083\u3046",confidence:.82,conjugationType:"contracted",minStemLength:2},{pattern:"\u307E\u3057\u305F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"\u307E\u305B\u3093",confidence:.85,conjugationType:"negative",minStemLength:2},{pattern:"\u307E\u3059",confidence:.85,conjugationType:"polite",minStemLength:2},{pattern:"\u3066",confidence:.85,conjugationType:"te-form",minStemLength:2},{pattern:"\u305F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"\u306A\u3044",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"\u306A\u304B\u3063\u305F",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\u3089\u308C\u308B",confidence:.8,conjugationType:"potential",minStemLength:2},{pattern:"\u308C\u308B",confidence:.78,conjugationType:"potential",minStemLength:2},{pattern:"\u3089\u308C\u305F",confidence:.8,conjugationType:"passive",minStemLength:2},{pattern:"\u3055\u305B\u308B",confidence:.8,conjugationType:"causative",minStemLength:2},{pattern:"\u305B\u308B",confidence:.78,conjugationType:"causative",minStemLength:2},{pattern:"\u3088\u3046",confidence:.8,conjugationType:"volitional",minStemLength:2},{pattern:"\u308B",confidence:.75,conjugationType:"dictionary",minStemLength:3}],O0=[{pattern:"\u3057\u305F\u3089",confidence:.88,conjugationType:"conditional-tara"},{pattern:"\u3059\u308B\u3068",confidence:.88,conjugationType:"conditional-to"},{pattern:"\u3059\u308C\u3070",confidence:.85,conjugationType:"conditional-ba"},{pattern:"\u3057\u3066\u3044\u307E\u3059",confidence:.85,conjugationType:"progressive"},{pattern:"\u3057\u3066\u3044\u308B",confidence:.85,conjugationType:"progressive"},{pattern:"\u3057\u307E\u3057\u305F",confidence:.85,conjugationType:"past"},{pattern:"\u3057\u307E\u3059",confidence:.85,conjugationType:"polite"},{pattern:"\u3057\u306A\u3044",confidence:.82,conjugationType:"negative"},{pattern:"\u3057\u3066",confidence:.85,conjugationType:"te-form"},{pattern:"\u3057\u305F",confidence:.85,conjugationType:"past"},{pattern:"\u3059\u308B",confidence:.88,conjugationType:"dictionary"}],xi=class{constructor(){this.language="ja"}isNormalizable(e){if(!Eh(e)||e.length<2)return!1;let t=e[e.length-1];return N0(t)}normalize(e){let t=this.normalizeCompound(e);if(t)return t;let r=this.trySuruNormalization(e);if(r)return r;for(let n of I0)if(e.endsWith(n.pattern)){let i=e.slice(0,-n.pattern.length),a=n.minStemLength??2;if(i.length<a)continue;let o={removedSuffixes:[n.pattern]};return n.conjugationType&&(o.conjugationType=n.conjugationType),v(i,n.confidence,o)}return D(e)}trySuruNormalization(e){for(let t of O0)if(e.endsWith(t.pattern)){let r=e.slice(0,-t.pattern.length);if(r.length<1)continue;return v(r,t.confidence,{removedSuffixes:[t.pattern],conjugationType:t.conjugationType,originalForm:"suru-verb"})}return null}normalizeCompound(e){let t=[{pattern:"\u3066\u3044\u306A\u304B\u3063\u305F",suffixes:["\u3066","\u3044","\u306A\u304B\u3063\u305F"],confidence:.8,minStemLength:2},{pattern:"\u3067\u3044\u306A\u304B\u3063\u305F",suffixes:["\u3067","\u3044","\u306A\u304B\u3063\u305F"],confidence:.8,minStemLength:2},{pattern:"\u3066\u3044\u306A\u3044",suffixes:["\u3066","\u3044","\u306A\u3044"],confidence:.82,minStemLength:2},{pattern:"\u3067\u3044\u306A\u3044",suffixes:["\u3067","\u3044","\u306A\u3044"],confidence:.82,minStemLength:2},{pattern:"\u3066\u3044\u305F",suffixes:["\u3066","\u3044","\u305F"],confidence:.85,minStemLength:2},{pattern:"\u3067\u3044\u305F",suffixes:["\u3067","\u3044","\u305F"],confidence:.85,minStemLength:2}];for(let{pattern:r,suffixes:n,confidence:i,minStemLength:a}of t)if(e.endsWith(r)){let o=e.slice(0,-r.length);if(o.length<a)continue;return v(o,i,{removedSuffixes:n,conjugationType:"compound"})}return null}},zh=new xi}}),M0={};k(M0,{japaneseProfile:()=>Je});var Je,Tt=h({"src/generators/profiles/japanese.ts"(){"use strict";Je={code:"ja",name:"Japanese",nativeName:"\u65E5\u672C\u8A9E",direction:"ltr",script:"cjk",wordOrder:"SOV",markingStrategy:"particle",usesSpaces:!1,defaultVerbForm:"base",verb:{position:"end",suffixes:["\u308B","\u3066","\u305F","\u307E\u3059","\u306A\u3044"],subjectDrop:!0},references:{me:"\u81EA\u5206",it:"\u305D\u308C",you:"\u3042\u306A\u305F",result:"\u7D50\u679C",event:"\u30A4\u30D9\u30F3\u30C8",target:"\u30BF\u30FC\u30B2\u30C3\u30C8",body:"\u30DC\u30C7\u30A3"},possessive:{marker:"\u306E",markerPosition:"between",keywords:{\u79C1\u306E:"me",\u3042\u306A\u305F\u306E:"you",\u305D\u306E:"it"}},roleMarkers:{patient:{primary:"\u3092",position:"after"},destination:{primary:"\u306B",alternatives:["\u3078","\u3067","\u306E"],position:"after"},source:{primary:"\u304B\u3089",position:"after"},style:{primary:"\u3067",position:"after"},event:{primary:"\u3092",position:"after"}},keywords:{toggle:{primary:"\u5207\u308A\u66FF\u3048",alternatives:["\u5207\u308A\u66FF\u3048\u308B","\u30C8\u30B0\u30EB","\u30C8\u30B0\u30EB\u3059\u308B"],normalized:"toggle"},add:{primary:"\u8FFD\u52A0",alternatives:["\u8FFD\u52A0\u3059\u308B","\u52A0\u3048\u308B"],normalized:"add"},remove:{primary:"\u524A\u9664",alternatives:["\u524A\u9664\u3059\u308B","\u53D6\u308A\u9664\u304F"],normalized:"remove"},put:{primary:"\u7F6E\u304F",alternatives:["\u5165\u308C\u308B"],normalized:"put"},append:{primary:"\u672B\u5C3E\u8FFD\u52A0",alternatives:["\u672B\u5C3E\u306B\u8FFD\u52A0","\u30A2\u30DA\u30F3\u30C9"],normalized:"append"},prepend:{primary:"\u5148\u982D\u8FFD\u52A0",alternatives:["\u5148\u982D\u306B\u8FFD\u52A0","\u30D7\u30EA\u30DA\u30F3\u30C9"],normalized:"prepend"},take:{primary:"\u53D6\u308B",normalized:"take"},make:{primary:"\u4F5C\u308B",alternatives:["\u4F5C\u6210"],normalized:"make"},clone:{primary:"\u8907\u88FD",alternatives:["\u30AF\u30ED\u30FC\u30F3"],normalized:"clone"},swap:{primary:"\u4EA4\u63DB",alternatives:["\u30B9\u30EF\u30C3\u30D7","\u5165\u308C\u66FF\u3048"],normalized:"swap"},morph:{primary:"\u5909\u5F62",alternatives:["\u30E2\u30FC\u30D5","\u5909\u63DB"],normalized:"morph"},set:{primary:"\u8A2D\u5B9A",alternatives:["\u8A2D\u5B9A\u3059\u308B"],normalized:"set"},get:{primary:"\u53D6\u5F97",alternatives:["\u53D6\u5F97\u3059\u308B","\u30B2\u30C3\u30C8"],normalized:"get"},increment:{primary:"\u5897\u52A0",alternatives:["\u5897\u3084\u3059","\u30A4\u30F3\u30AF\u30EA\u30E1\u30F3\u30C8"],normalized:"increment"},decrement:{primary:"\u6E1B\u5C11",alternatives:["\u6E1B\u3089\u3059","\u30C7\u30AF\u30EA\u30E1\u30F3\u30C8"],normalized:"decrement"},log:{primary:"\u8A18\u9332",alternatives:["\u30ED\u30B0","\u51FA\u529B"],normalized:"log"},show:{primary:"\u8868\u793A",alternatives:["\u8868\u793A\u3059\u308B","\u898B\u305B\u308B"],normalized:"show"},hide:{primary:"\u96A0\u3059",alternatives:["\u975E\u8868\u793A","\u975E\u8868\u793A\u306B\u3059\u308B"],normalized:"hide"},transition:{primary:"\u9077\u79FB",alternatives:["\u30C8\u30E9\u30F3\u30B8\u30B7\u30E7\u30F3","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3"],normalized:"transition"},on:{primary:"\u3067",alternatives:["\u6642"],normalized:"on"},trigger:{primary:"\u5F15\u304D\u91D1",alternatives:["\u767A\u706B","\u30C8\u30EA\u30AC\u30FC"],normalized:"trigger"},send:{primary:"\u9001\u308B",alternatives:["\u9001\u4FE1"],normalized:"send"},focus:{primary:"\u30D5\u30A9\u30FC\u30AB\u30B9",alternatives:["\u96C6\u4E2D"],normalized:"focus"},blur:{primary:"\u307C\u304B\u3057",alternatives:["\u30D5\u30A9\u30FC\u30AB\u30B9\u89E3\u9664","\u30D6\u30E9\u30FC"],normalized:"blur"},go:{primary:"\u79FB\u52D5",alternatives:["\u884C\u304F","\u30CA\u30D3\u30B2\u30FC\u30C8"],normalized:"go"},wait:{primary:"\u5F85\u3064",alternatives:["\u5F85\u6A5F"],normalized:"wait"},fetch:{primary:"\u30D5\u30A7\u30C3\u30C1",normalized:"fetch"},settle:{primary:"\u5B89\u5B9A",alternatives:["\u843D\u3061\u7740\u304F"],normalized:"settle"},if:{primary:"\u3082\u3057",normalized:"if"},when:{primary:"\u3068\u304D",alternatives:["\u3068\u304D\u306B"],normalized:"when"},where:{primary:"\u3069\u3053",normalized:"where"},else:{primary:"\u305D\u3046\u3067\u306A\u3051\u308C\u3070",alternatives:["\u305D\u308C\u4EE5\u5916"],normalized:"else"},repeat:{primary:"\u7E70\u308A\u8FD4\u3057",alternatives:["\u7E70\u308A\u8FD4\u3059","\u30EA\u30D4\u30FC\u30C8"],normalized:"repeat"},for:{primary:"\u305F\u3081\u306B",alternatives:["\u5404"],normalized:"for"},while:{primary:"\u306E\u9593",alternatives:["\u9593"],normalized:"while"},continue:{primary:"\u7D9A\u3051\u308B",alternatives:["\u7D99\u7D9A"],normalized:"continue"},halt:{primary:"\u505C\u6B62",alternatives:["\u6B62\u3081\u308B","\u30CF\u30EB\u30C8"],normalized:"halt"},throw:{primary:"\u6295\u3052\u308B",alternatives:["\u30B9\u30ED\u30FC"],normalized:"throw"},call:{primary:"\u547C\u3073\u51FA\u3057",alternatives:["\u30B3\u30FC\u30EB","\u547C\u3076"],normalized:"call"},return:{primary:"\u623B\u308B",alternatives:["\u8FD4\u3059","\u30EA\u30BF\u30FC\u30F3"],normalized:"return"},then:{primary:"\u305D\u308C\u304B\u3089",alternatives:["\u6B21\u306B","\u306A\u3089\u3070","\u306A\u3089"],normalized:"then"},and:{primary:"\u307E\u305F",alternatives:["\u3068","\u305D\u3057\u3066"],normalized:"and"},end:{primary:"\u7D42\u308F\u308A",alternatives:["\u7D42\u4E86","\u304A\u308F\u308A"],normalized:"end"},js:{primary:"JS\u5B9F\u884C",alternatives:["js"],normalized:"js"},async:{primary:"\u975E\u540C\u671F",alternatives:["\u30A2\u30B7\u30F3\u30AF"],normalized:"async"},tell:{primary:"\u4F1D\u3048\u308B",alternatives:["\u30C6\u30EB"],normalized:"tell"},default:{primary:"\u65E2\u5B9A",alternatives:["\u30C7\u30D5\u30A9\u30EB\u30C8"],normalized:"default"},init:{primary:"\u521D\u671F\u5316",alternatives:["\u30A4\u30CB\u30C3\u30C8"],normalized:"init"},behavior:{primary:"\u632F\u308B\u821E\u3044",alternatives:["\u30D3\u30D8\u30A4\u30D3\u30A2"],normalized:"behavior"},install:{primary:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB",alternatives:["\u5C0E\u5165"],normalized:"install"},measure:{primary:"\u6E2C\u5B9A",alternatives:["\u8A08\u6E2C","\u30E1\u30B8\u30E3\u30FC"],normalized:"measure"},beep:{primary:"\u30D3\u30FC\u30D7",normalized:"beep"},break:{primary:"\u4E2D\u65AD",normalized:"break"},copy:{primary:"\u30B3\u30D4\u30FC",normalized:"copy"},exit:{primary:"\u9000\u51FA",normalized:"exit"},pick:{primary:"\u9078\u629E",normalized:"pick"},render:{primary:"\u63CF\u753B",normalized:"render"},into:{primary:"\u3078",alternatives:["\u306B"],normalized:"into"},before:{primary:"\u524D\u306B",alternatives:["\u524D"],normalized:"before"},after:{primary:"\u5F8C\u306B",alternatives:["\u5F8C"],normalized:"after"},until:{primary:"\u307E\u3067",alternatives:["\u8FC4"],normalized:"until"},event:{primary:"\u30A4\u30D9\u30F3\u30C8",alternatives:["\u4E8B\u8C61"],normalized:"event"},from:{primary:"\u304B\u3089",normalized:"from"}},tokenization:{particles:["\u3092","\u306B","\u3067","\u304B\u3089","\u306E","\u304C","\u306F","\u3082","\u3078","\u3068"],boundaryStrategy:"particle"},eventHandler:{eventMarker:{primary:"\u3067",position:"after"},temporalMarkers:["\u6642","\u3068\u304D"]}}}}),W0={};k(W0,{JapaneseTokenizer:()=>wi,japaneseTokenizer:()=>vr});var q0,$0,wi,vr,Ai=h({"src/tokenizers/japanese.ts"(){"use strict";S(),kh(),Tt(),I(),M(),uf(),sf(),ye(),q0=new Set(["\u3092","\u306B","\u3067","\u304B\u3089","\u307E\u3067","\u3078","\u3068","\u306E","\u304C","\u306F","\u3082","\u3088\u308A"]),$0=[{native:"\u771F",normalized:"true"},{native:"\u507D",normalized:"false"},{native:"\u30CC\u30EB",normalized:"null"},{native:"\u672A\u5B9A\u7FA9",normalized:"undefined"},{native:"\u6700\u521D",normalized:"first"},{native:"\u6700\u5F8C",normalized:"last"},{native:"\u6B21",normalized:"next"},{native:"\u524D",normalized:"previous"},{native:"\u6700\u3082\u8FD1\u3044",normalized:"closest"},{native:"\u89AA",normalized:"parent"},{native:"\u30AF\u30EA\u30C3\u30AF",normalized:"click"},{native:"\u5909\u66F4",normalized:"change"},{native:"\u9001\u4FE1",normalized:"submit"},{native:"\u5165\u529B",normalized:"input"},{native:"\u30ED\u30FC\u30C9",normalized:"load"},{native:"\u30B9\u30AF\u30ED\u30FC\u30EB",normalized:"scroll"},{native:"\u30AD\u30FC\u30C0\u30A6\u30F3",normalized:"keydown"},{native:"\u30AD\u30FC\u30A2\u30C3\u30D7",normalized:"keyup"},{native:"\u30DE\u30A6\u30B9\u30AA\u30FC\u30D0\u30FC",normalized:"mouseover"},{native:"\u30DE\u30A6\u30B9\u30A2\u30A6\u30C8",normalized:"mouseout"},{native:"\u79C1",normalized:"me"},{native:"\u3057\u305F\u3089",normalized:"on"},{native:"\u3059\u308B\u3068",normalized:"on"},{native:"\u6642\u306B",normalized:"on"},{native:"\u79D2",normalized:"s"},{native:"\u30DF\u30EA\u79D2",normalized:"ms"},{native:"\u5206",normalized:"m"},{native:"\u6642\u9593",normalized:"h"}],wi=class extends j{constructor(){super(),this.language="ja",this.direction="ltr",this.initializeKeywordsFromProfile(Je,$0),this.normalizer=new xi,this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractor(new le),this.registerExtractor(new Go),this.registerExtractor(new Ho),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){return q0.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||e.startsWith("\u300C")||/^\d/.test(e)?"literal":"identifier"}},vr=new wi}});function Ch(e){let t=e.charCodeAt(0);return t>=44032&&t<=55203}function xh(e){for(let t of e)if(Ch(t))return!0;return!1}var V0,K0,bi,wh,Ah=h({"src/tokenizers/morphology/korean-normalizer.ts"(){"use strict";H(),V0=[{pattern:"\uD558\uC2DC\uB2C8\uAE4C",confidence:.85,conjugationType:"honorific-causal",minStemLength:1},{pattern:"\uD558\uC2E4\uB54C",confidence:.88,conjugationType:"honorific-temporal",minStemLength:1},{pattern:"\uD558\uC2E4 \uB54C",confidence:.88,conjugationType:"honorific-temporal",minStemLength:1},{pattern:"\uD558\uC2DC\uBA74",confidence:.88,conjugationType:"honorific-conditional",minStemLength:1},{pattern:"\uC73C\uC2DC\uBA74",confidence:.85,conjugationType:"honorific-conditional",minStemLength:2},{pattern:"\uC2DC\uBA74",confidence:.82,conjugationType:"honorific-conditional",minStemLength:2},{pattern:"\uD558\uACE0\uB098\uC11C",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\uD558\uACE0 \uB098\uC11C",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\uD558\uACE0\uC11C",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\uACE0\uB098\uC11C",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uACE0 \uB098\uC11C",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uACE0\uC11C",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD558\uAE30\uC804\uC5D0",confidence:.85,conjugationType:"sequential-before",minStemLength:1},{pattern:"\uD558\uAE30 \uC804\uC5D0",confidence:.85,conjugationType:"sequential-before",minStemLength:1},{pattern:"\uAE30\uC804\uC5D0",confidence:.82,conjugationType:"sequential-before",minStemLength:2},{pattern:"\uAE30 \uC804\uC5D0",confidence:.82,conjugationType:"sequential-before",minStemLength:2},{pattern:"\uD558\uC790\uB9C8\uC790",confidence:.88,conjugationType:"immediate",minStemLength:1},{pattern:"\uC790\uB9C8\uC790",confidence:.85,conjugationType:"immediate",minStemLength:2},{pattern:"\uD574\uC57C\uD574\uC694",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\uD574\uC57C\uD574",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\uD574\uC57C\uD558\uB2E4",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\uC5B4\uC57C\uD574\uC694",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uC5B4\uC57C\uD574",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uC544\uC57C\uD574\uC694",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uC544\uC57C\uD574",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uD558\uB2C8\uAE4C",confidence:.85,conjugationType:"causal-nikka",minStemLength:1},{pattern:"\uD560\uB54C",confidence:.88,conjugationType:"temporal-ttae",minStemLength:1},{pattern:"\uD560 \uB54C",confidence:.88,conjugationType:"temporal-ttae",minStemLength:1},{pattern:"\uC744\uB54C",confidence:.85,conjugationType:"temporal-ttae",minStemLength:2},{pattern:"\uC744 \uB54C",confidence:.85,conjugationType:"temporal-ttae",minStemLength:2},{pattern:"\uD558\uBA74",confidence:.88,conjugationType:"conditional-myeon",minStemLength:1},{pattern:"\uC73C\uBA74",confidence:.85,conjugationType:"conditional-myeon",minStemLength:2},{pattern:"\uB2C8\uAE4C",confidence:.82,conjugationType:"causal-nikka",minStemLength:2},{pattern:"\uBA74",confidence:.8,conjugationType:"conditional-myeon",minStemLength:2},{pattern:"\uD558\uC600\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD588\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD569\uB2C8\uB2E4",confidence:.85,conjugationType:"polite",minStemLength:1},{pattern:"\uC2B5\uB2C8\uB2E4",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uB429\uB2C8\uB2E4",confidence:.82,conjugationType:"polite",minStemLength:1},{pattern:"\u3142\uB2C8\uB2E4",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uD558\uC138\uC694",confidence:.85,conjugationType:"honorific",minStemLength:1},{pattern:"\uD558\uC2ED\uC2DC\uC624",confidence:.85,conjugationType:"honorific",minStemLength:1},{pattern:"\uC138\uC694",confidence:.82,conjugationType:"honorific",minStemLength:2},{pattern:"\uC2ED\uC2DC\uC624",confidence:.82,conjugationType:"honorific",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uC5B4\uC694",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\uD558\uACE0\uC788\uC5B4",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\uD588\uC5B4\uC694",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD574\uC694",confidence:.85,conjugationType:"polite",minStemLength:1},{pattern:"\uC5B4\uC694",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uC544\uC694",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uD588\uC5B4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD574",confidence:.8,conjugationType:"present",minStemLength:1},{pattern:"\uC5C8\uC5B4",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\uC558\uC5B4",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uB2E4",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\uACE0\uC788\uB2E4",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\uACE0\uC788\uC5B4",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\uD558\uB2E4",confidence:.88,conjugationType:"dictionary",minStemLength:1},{pattern:"\uD558\uC9C0\uC54A\uB2E4",confidence:.82,conjugationType:"negative",minStemLength:1},{pattern:"\uC548\uD558\uB2E4",confidence:.82,conjugationType:"negative",minStemLength:1},{pattern:"\uC9C0\uC54A\uB2E4",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"\uD574\uB77C",confidence:.82,conjugationType:"imperative",minStemLength:1},{pattern:"\uD558\uB77C",confidence:.82,conjugationType:"imperative",minStemLength:1},{pattern:"\uB2E4",confidence:.75,conjugationType:"dictionary",minStemLength:2}],K0=[{pattern:"\uD558\uC2DC\uB2C8\uAE4C",confidence:.88,conjugationType:"honorific-causal"},{pattern:"\uD558\uC2E4\uB54C",confidence:.88,conjugationType:"honorific-temporal"},{pattern:"\uD558\uC2E4 \uB54C",confidence:.88,conjugationType:"honorific-temporal"},{pattern:"\uD558\uC2DC\uBA74",confidence:.88,conjugationType:"honorific-conditional"},{pattern:"\uD558\uC168\uC5B4\uC694",confidence:.85,conjugationType:"honorific-past"},{pattern:"\uD558\uC168\uC5B4",confidence:.85,conjugationType:"honorific-past"},{pattern:"\uD558\uC2ED\uB2C8\uB2E4",confidence:.85,conjugationType:"honorific-polite"},{pattern:"\uD558\uACE0\uB098\uC11C",confidence:.88,conjugationType:"sequential-after"},{pattern:"\uD558\uACE0 \uB098\uC11C",confidence:.88,conjugationType:"sequential-after"},{pattern:"\uD558\uACE0\uC11C",confidence:.88,conjugationType:"sequential-after"},{pattern:"\uD558\uAE30\uC804\uC5D0",confidence:.88,conjugationType:"sequential-before"},{pattern:"\uD558\uAE30 \uC804\uC5D0",confidence:.88,conjugationType:"sequential-before"},{pattern:"\uD558\uC790\uB9C8\uC790",confidence:.88,conjugationType:"immediate"},{pattern:"\uD574\uC57C\uD574\uC694",confidence:.88,conjugationType:"obligation"},{pattern:"\uD574\uC57C\uD574",confidence:.88,conjugationType:"obligation"},{pattern:"\uD574\uC57C\uD558\uB2E4",confidence:.88,conjugationType:"obligation"},{pattern:"\uD558\uB2C8\uAE4C",confidence:.88,conjugationType:"causal-nikka"},{pattern:"\uD560\uB54C",confidence:.88,conjugationType:"temporal-ttae"},{pattern:"\uD560 \uB54C",confidence:.88,conjugationType:"temporal-ttae"},{pattern:"\uD558\uBA74",confidence:.88,conjugationType:"conditional-myeon"},{pattern:"\uD558\uC600\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past"},{pattern:"\uD588\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past"},{pattern:"\uD569\uB2C8\uB2E4",confidence:.85,conjugationType:"polite"},{pattern:"\uD558\uC2ED\uC2DC\uC624",confidence:.85,conjugationType:"honorific"},{pattern:"\uD558\uC138\uC694",confidence:.85,conjugationType:"honorific"},{pattern:"\uD588\uC5B4\uC694",confidence:.85,conjugationType:"past"},{pattern:"\uD574\uC694",confidence:.85,conjugationType:"polite"},{pattern:"\uD588\uC5B4",confidence:.85,conjugationType:"past"},{pattern:"\uD574",confidence:.8,conjugationType:"present"},{pattern:"\uD558\uACE0\uC788\uC5B4\uC694",confidence:.82,conjugationType:"progressive"},{pattern:"\uD558\uACE0\uC788\uC5B4",confidence:.82,conjugationType:"progressive"},{pattern:"\uD558\uACE0\uC788\uB2E4",confidence:.82,conjugationType:"progressive"},{pattern:"\uD574\uC11C",confidence:.82,conjugationType:"connective"},{pattern:"\uD558\uACE0",confidence:.8,conjugationType:"connective"},{pattern:"\uD558\uC9C0\uC54A\uC544\uC694",confidence:.82,conjugationType:"negative"},{pattern:"\uD558\uC9C0\uC54A\uB2E4",confidence:.82,conjugationType:"negative"},{pattern:"\uC548\uD574\uC694",confidence:.82,conjugationType:"negative"},{pattern:"\uC548\uD574",confidence:.82,conjugationType:"negative"},{pattern:"\uD574\uB77C",confidence:.82,conjugationType:"imperative"},{pattern:"\uD558\uB77C",confidence:.82,conjugationType:"imperative"},{pattern:"\uD558\uB2E4",confidence:.88,conjugationType:"dictionary"}],bi=class{constructor(){this.language="ko"}isNormalizable(e){return!(!xh(e)||e.length<2)}normalize(e){let t=this.normalizeCompound(e);if(t)return t;let r=this.tryHadaNormalization(e);if(r)return r;for(let n of V0)if(e.endsWith(n.pattern)){let i=e.slice(0,-n.pattern.length),a=n.minStemLength??2;if(i.length<a)continue;let o={removedSuffixes:[n.pattern]};return n.conjugationType&&(o.conjugationType=n.conjugationType),v(i,n.confidence,o)}return D(e)}tryHadaNormalization(e){for(let t of K0)if(e.endsWith(t.pattern)){let r=e.slice(0,-t.pattern.length);if(r.length<1)continue;return v(r,t.confidence,{removedSuffixes:[t.pattern],conjugationType:t.conjugationType,originalForm:"hada-verb"})}return null}normalizeCompound(e){let t=[{pattern:"\uD558\uACE0\uB098\uC11C\uC600\uC5B4",suffixes:["\uD558\uACE0\uB098\uC11C","\uC600\uC5B4"],confidence:.78,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD558\uACE0\uB098\uC11C\uC600\uB2E4",suffixes:["\uD558\uACE0\uB098\uC11C","\uC600\uB2E4"],confidence:.78,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD558\uACE0\uB098\uC11C",suffixes:["\uD558\uACE0","\uB098\uC11C"],confidence:.85,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD574\uC57C\uD588\uC5B4",suffixes:["\uD574\uC57C","\uD588\uC5B4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\uD574\uC57C\uD588\uB2E4",suffixes:["\uD574\uC57C","\uD588\uB2E4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\uD574\uC57C\uD588\uC2B5\uB2C8\uB2E4",suffixes:["\uD574\uC57C","\uD588\uC2B5\uB2C8\uB2E4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\uD558\uC2DC\uBA74\uC11C",suffixes:["\uD558\uC2DC","\uBA74\uC11C"],confidence:.82,conjugationType:"connective",minStemLength:2},{pattern:"\uD558\uC2DC\uBA70",suffixes:["\uD558\uC2DC","\uBA70"],confidence:.82,conjugationType:"connective",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uC5C8\uC5B4",suffixes:["\uD558\uACE0","\uC788\uC5C8\uC5B4"],confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uC5C8\uB2E4",suffixes:["\uD558\uACE0","\uC788\uC5C8\uB2E4"],confidence:.8,conjugationType:"progressive",minStemLength:2}];for(let{pattern:r,suffixes:n,confidence:i,conjugationType:a,minStemLength:o}of t)if(e.endsWith(r)){let u=e.slice(0,-r.length);if(u.length<o)continue;return v(u,i,{removedSuffixes:n,conjugationType:a})}return null}},wh=new bi}}),H0={};k(H0,{koreanProfile:()=>Qe});var Qe,St=h({"src/generators/profiles/korean.ts"(){"use strict";Qe={code:"ko",name:"Korean",nativeName:"\uD55C\uAD6D\uC5B4",direction:"ltr",script:"hangul",wordOrder:"SOV",markingStrategy:"particle",usesSpaces:!0,verb:{position:"end",suffixes:["\uB2E4","\uC694","\uB2C8\uB2E4","\uC138\uC694"],subjectDrop:!0},references:{me:"\uB098",it:"\uADF8\uAC83",you:"\uB108",result:"\uACB0\uACFC",event:"\uC774\uBCA4\uD2B8",target:"\uB300\uC0C1",body:"\uBCF8\uBB38"},possessive:{marker:"\uC758",markerPosition:"between",specialForms:{me:"\uB0B4",it:"\uADF8\uAC83\uC758",you:"\uB124"},keywords:{\uB0B4:"me",\uB124:"you",\uADF8\uC758:"it"}},roleMarkers:{patient:{primary:"\uC744",alternatives:["\uB97C"],position:"after"},destination:{primary:"\uC5D0",alternatives:["\uC73C\uB85C","\uB85C","\uC5D0\uC11C","\uC758"],position:"after"},source:{primary:"\uC5D0\uC11C",alternatives:["\uBD80\uD130"],position:"after"},style:{primary:"\uB85C",alternatives:["\uC73C\uB85C"],position:"after"},event:{primary:"\uC744",alternatives:["\uB97C"],position:"after"}},keywords:{toggle:{primary:"\uD1A0\uAE00",normalized:"toggle"},add:{primary:"\uCD94\uAC00",normalized:"add"},remove:{primary:"\uC81C\uAC70",alternatives:["\uC0AD\uC81C"],normalized:"remove"},put:{primary:"\uB123\uB2E4",alternatives:["\uB123\uAE30","\uB193\uAE30"],normalized:"put"},append:{primary:"\uB367\uBD99\uC774\uB2E4",alternatives:["\uB05D\uC5D0\uCD94\uAC00"],normalized:"append"},prepend:{primary:"\uC55E\uC5D0\uCD94\uAC00",alternatives:["\uC120\uB450\uCD94\uAC00"],normalized:"prepend"},take:{primary:"\uAC00\uC838\uC624\uB2E4",normalized:"take"},make:{primary:"\uB9CC\uB4E4\uB2E4",normalized:"make"},clone:{primary:"\uBCF5\uC81C",normalized:"clone"},swap:{primary:"\uAD50\uD658",alternatives:["\uBC14\uAFB8\uB2E4"],normalized:"swap"},morph:{primary:"\uBCC0\uD615",alternatives:["\uBCC0\uD658"],normalized:"morph"},set:{primary:"\uC124\uC815",normalized:"set"},get:{primary:"\uC5BB\uB2E4",normalized:"get"},increment:{primary:"\uC99D\uAC00",normalized:"increment"},decrement:{primary:"\uAC10\uC18C",normalized:"decrement"},log:{primary:"\uB85C\uADF8",normalized:"log"},show:{primary:"\uBCF4\uC774\uB2E4",alternatives:["\uD45C\uC2DC","\uBCF4\uC774\uAE30"],normalized:"show"},hide:{primary:"\uC228\uAE30\uB2E4",alternatives:["\uC228\uAE30\uAE30"],normalized:"hide"},transition:{primary:"\uD2B8\uB79C\uC9C0\uC158",normalized:"transition"},on:{primary:"\uC5D0",alternatives:["\uC2DC","\uD560 \uB54C"],normalized:"on"},trigger:{primary:"\uD2B8\uB9AC\uAC70",normalized:"trigger"},send:{primary:"\uBCF4\uB0B4\uB2E4",normalized:"send"},focus:{primary:"\uD3EC\uCEE4\uC2A4",normalized:"focus"},blur:{primary:"\uBE14\uB7EC",normalized:"blur"},click:{primary:"\uD074\uB9AD",normalized:"click"},hover:{primary:"\uD638\uBC84",normalized:"hover"},submit:{primary:"\uC81C\uCD9C",normalized:"submit"},input:{primary:"\uC785\uB825",normalized:"input"},change:{primary:"\uBCC0\uACBD",normalized:"change"},go:{primary:"\uC774\uB3D9",normalized:"go"},wait:{primary:"\uB300\uAE30",normalized:"wait"},fetch:{primary:"\uD328\uCE58",normalized:"fetch"},settle:{primary:"\uC548\uC815",normalized:"settle"},if:{primary:"\uB9CC\uC57D",normalized:"if"},when:{primary:"\uB54C",normalized:"when"},where:{primary:"\uC5B4\uB514",normalized:"where"},else:{primary:"\uC544\uB2C8\uBA74",normalized:"else"},repeat:{primary:"\uBC18\uBCF5",normalized:"repeat"},for:{primary:"\uAC01\uAC01",normalized:"for"},while:{primary:"\uB3D9\uC548",normalized:"while"},continue:{primary:"\uACC4\uC18D",normalized:"continue"},halt:{primary:"\uC815\uC9C0",normalized:"halt"},throw:{primary:"\uB358\uC9C0\uB2E4",normalized:"throw"},call:{primary:"\uD638\uCD9C",normalized:"call"},return:{primary:"\uBC18\uD658",normalized:"return"},then:{primary:"\uADF8\uB2E4\uC74C",alternatives:["\uADF8\uB7F0\uD6C4"],normalized:"then"},and:{primary:"\uADF8\uB9AC\uACE0",alternatives:["\uB610\uD55C","\uBC0F"],normalized:"and"},end:{primary:"\uB05D",alternatives:["\uB9C8\uCE68"],normalized:"end"},js:{primary:"JS\uC2E4\uD589",alternatives:["js"],normalized:"js"},async:{primary:"\uBE44\uB3D9\uAE30",normalized:"async"},tell:{primary:"\uB9D0\uD558\uB2E4",normalized:"tell"},default:{primary:"\uAE30\uBCF8\uAC12",normalized:"default"},init:{primary:"\uCD08\uAE30\uD654",normalized:"init"},behavior:{primary:"\uB3D9\uC791",normalized:"behavior"},install:{primary:"\uC124\uCE58",normalized:"install"},measure:{primary:"\uCE21\uC815",normalized:"measure"},beep:{primary:"\uBE44\uD504",normalized:"beep"},break:{primary:"\uC911\uB2E8",normalized:"break"},copy:{primary:"\uBCF5\uC0AC",normalized:"copy"},exit:{primary:"\uB098\uAC00\uAE30",normalized:"exit"},pick:{primary:"\uC120\uD0DD",normalized:"pick"},render:{primary:"\uB80C\uB354\uB9C1",normalized:"render"},into:{primary:"\uC73C\uB85C",normalized:"into"},before:{primary:"\uC804\uC5D0",normalized:"before"},after:{primary:"\uD6C4\uC5D0",normalized:"after"},until:{primary:"\uAE4C\uC9C0",normalized:"until"},event:{primary:"\uC774\uBCA4\uD2B8",normalized:"event"},from:{primary:"\uC5D0\uC11C",normalized:"from"}},tokenization:{particles:["\uC744","\uB97C","\uC774","\uAC00","\uC740","\uB294","\uC5D0","\uC5D0\uC11C","\uC73C\uB85C","\uB85C","\uC640","\uACFC","\uB3C4"],boundaryStrategy:"space"},eventHandler:{eventMarker:{primary:"\uD560 \uB54C",alternatives:["\uD560\uB54C","\uB54C","\uC5D0"],position:"after"},temporalMarkers:["\uD560 \uB54C","\uD560\uB54C","\uB54C"]}}}}),G0={};k(G0,{KoreanTokenizer:()=>Di,koreanTokenizer:()=>gr});var U0,X0,Di,gr,Ti=h({"src/tokenizers/korean.ts"(){"use strict";S(),Ah(),St(),I(),M(),pf(),mf(),ye(),U0=new Set(["\uC774","\uAC00","\uC744","\uB97C","\uC740","\uB294","\uC5D0","\uC5D0\uC11C","\uB85C","\uC73C\uB85C","\uC640","\uACFC","\uC758","\uB3C4","\uB9CC","\uBD80\uD130","\uAE4C\uC9C0","\uCC98\uB7FC","\uBCF4\uB2E4"]),X0=[{native:"\uCC38",normalized:"true"},{native:"\uAC70\uC9D3",normalized:"false"},{native:"\uB110",normalized:"null"},{native:"\uBBF8\uC815\uC758",normalized:"undefined"},{native:"\uCCAB\uBC88\uC9F8",normalized:"first"},{native:"\uB9C8\uC9C0\uB9C9",normalized:"last"},{native:"\uB2E4\uC74C",normalized:"next"},{native:"\uC774\uC804",normalized:"previous"},{native:"\uAC00\uC7A5\uAC00\uAE4C\uC6B4",normalized:"closest"},{native:"\uBD80\uBAA8",normalized:"parent"},{native:"\uD074\uB9AD",normalized:"click"},{native:"\uB354\uBE14\uD074\uB9AD",normalized:"dblclick"},{native:"\uBCC0\uACBD",normalized:"change"},{native:"\uC81C\uCD9C",normalized:"submit"},{native:"\uC785\uB825",normalized:"input"},{native:"\uB85C\uB4DC",normalized:"load"},{native:"\uC2A4\uD06C\uB864",normalized:"scroll"},{native:"\uD0A4\uB2E4\uC6B4",normalized:"keydown"},{native:"\uD0A4\uC5C5",normalized:"keyup"},{native:"\uB9C8\uC6B0\uC2A4\uC624\uBC84",normalized:"mouseover"},{native:"\uB9C8\uC6B0\uC2A4\uC544\uC6C3",normalized:"mouseout"},{native:"\uB0B4",normalized:"my"},{native:"\uADF8\uAC83\uC758",normalized:"its"},{native:"\uADF8\uB2E4\uC74C",normalized:"then"},{native:"\uADF8\uB7F0\uD6C4",normalized:"then"},{native:"\uADF8\uB7EC\uBA74",normalized:"then"},{native:"\uADF8\uB9AC\uACE0",normalized:"and"},{native:"\uB610\uB294",normalized:"or"},{native:"\uC544\uB2C8",normalized:"not"},{native:"\uC774\uB2E4",normalized:"is"},{native:"\uCD08",normalized:"s"},{native:"\uBC00\uB9AC\uCD08",normalized:"ms"},{native:"\uBD84",normalized:"m"},{native:"\uC2DC\uAC04",normalized:"h"}],Di=class extends j{constructor(){super(),this.language="ko",this.direction="ltr",this.initializeKeywordsFromProfile(Qe,X0),this.normalizer=new bi,this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractor(new le),this.registerExtractor(new Yo),this.registerExtractor(new Xo),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){return U0.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}},gr=new Di}}),Y0={};k(Y0,{malayProfile:()=>Bt});var Bt,Er=h({"src/generators/profiles/ms.ts"(){"use strict";Bt={code:"ms",name:"Malay",nativeName:"Melayu",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"saya",it:"ia",you:"kamu",result:"hasil",event:"peristiwa",target:"sasaran",body:"badan"},possessive:{marker:"",markerPosition:"after-object",keywords:{saya:"me",aku:"me",awak:"you",kamu:"you",anda:"you",dia:"it",ia:"it","-ku":"me","-mu":"you","-nya":"it"}},roleMarkers:{destination:{primary:"ke",alternatives:["pada"],position:"before"},source:{primary:"dari",position:"before"},patient:{primary:"",position:"before"},style:{primary:"dengan",position:"before"}},keywords:{toggle:{primary:"togol",alternatives:["tukar"],normalized:"toggle"},add:{primary:"tambah",normalized:"add"},remove:{primary:"buang",alternatives:["padam"],normalized:"remove"},put:{primary:"letak",alternatives:["letakkan"],normalized:"put"},append:{primary:"tambah_hujung",normalized:"append"},prepend:{primary:"tambah_mula",normalized:"prepend"},take:{primary:"ambil",normalized:"take"},make:{primary:"buat",alternatives:["cipta"],normalized:"make"},clone:{primary:"klon",alternatives:[],normalized:"clone"},swap:{primary:"tukar_tempat",normalized:"swap"},morph:{primary:"ubah_bentuk",normalized:"morph"},set:{primary:"tetapkan",alternatives:["setkan"],normalized:"set"},get:{primary:"dapatkan",alternatives:[],normalized:"get"},increment:{primary:"tambah_satu",normalized:"increment"},decrement:{primary:"kurang_satu",normalized:"decrement"},log:{primary:"catat",alternatives:["log"],normalized:"log"},show:{primary:"tunjuk",alternatives:[],normalized:"show"},hide:{primary:"sembunyi",alternatives:["sorok"],normalized:"hide"},transition:{primary:"peralihan",normalized:"transition"},on:{primary:"apabila",alternatives:["ketika"],normalized:"on"},trigger:{primary:"cetuskan",normalized:"trigger"},send:{primary:"hantar",normalized:"send"},focus:{primary:"fokus",normalized:"focus"},blur:{primary:"kabur",normalized:"blur"},go:{primary:"pergi",alternatives:["pindah"],normalized:"go"},wait:{primary:"tunggu",normalized:"wait"},fetch:{primary:"ambil_dari",alternatives:["muat"],normalized:"fetch"},settle:{primary:"selesai",normalized:"settle"},if:{primary:"jika",alternatives:["kalau"],normalized:"if"},when:{primary:"bila",normalized:"when"},where:{primary:"di_mana",normalized:"where"},else:{primary:"kalau_tidak",alternatives:["jika_tidak"],normalized:"else"},repeat:{primary:"ulang",normalized:"repeat"},for:{primary:"untuk",normalized:"for"},while:{primary:"selagi",alternatives:["semasa"],normalized:"while"},continue:{primary:"teruskan",normalized:"continue"},halt:{primary:"henti",alternatives:["berhenti"],normalized:"halt"},throw:{primary:"lempar",normalized:"throw"},call:{primary:"panggil",normalized:"call"},return:{primary:"pulang",alternatives:["kembali"],normalized:"return"},then:{primary:"kemudian",alternatives:["lepas_itu"],normalized:"then"},and:{primary:"dan",normalized:"and"},end:{primary:"tamat",alternatives:["habis"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"tak_segerak",normalized:"async"},tell:{primary:"beritahu",normalized:"tell"},default:{primary:"lalai",normalized:"default"},init:{primary:"mula",alternatives:["mulakan"],normalized:"init"},behavior:{primary:"kelakuan",normalized:"behavior"},install:{primary:"pasang",normalized:"install"},measure:{primary:"ukur",normalized:"measure"},beep:{primary:"bunyi",normalized:"beep"},break:{primary:"pecah",normalized:"break"},copy:{primary:"salin",normalized:"copy"},exit:{primary:"keluar",normalized:"exit"},pick:{primary:"pilih",normalized:"pick"},render:{primary:"papar",normalized:"render"},into:{primary:"ke_dalam",normalized:"into"},before:{primary:"sebelum",normalized:"before"},after:{primary:"selepas",alternatives:["lepas"],normalized:"after"},until:{primary:"sehingga",alternatives:["sampai"],normalized:"until"},event:{primary:"peristiwa",normalized:"event"},from:{primary:"dari",normalized:"from"}},eventHandler:{keyword:{primary:"apabila",alternatives:["ketika"],normalized:"on"},sourceMarker:{primary:"dari",position:"before"}}}}}),J0={};k(J0,{MalayTokenizer:()=>Si,malayTokenizer:()=>Bi});var Q0,Si,Bi,Z0=h({"src/tokenizers/ms.ts"(){"use strict";S(),Er(),I(),M(),Lf(),Q0=[{native:"benar",normalized:"true"},{native:"salah",normalized:"false"},{native:"kosong",normalized:"null"},{native:"tak_tentu",normalized:"undefined"},{native:"pertama",normalized:"first"},{native:"terakhir",normalized:"last"},{native:"seterusnya",normalized:"next"},{native:"sebelumnya",normalized:"previous"},{native:"terdekat",normalized:"closest"},{native:"induk",normalized:"parent"},{native:"klik",normalized:"click"},{native:"berubah",normalized:"change"},{native:"ubah",normalized:"change"},{native:"hantar",normalized:"submit"},{native:"input",normalized:"input"},{native:"masuk",normalized:"input"},{native:"muat",normalized:"load"},{native:"tatal",normalized:"scroll"},{native:"hover",normalized:"hover"}],Si=class extends j{constructor(){super(),this.language="ms",this.direction="ltr",this.initializeKeywordsFromProfile(Bt,Q0),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractors(Pf()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){return this.isKeyword(e)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith(".")||e.startsWith("#")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith(":")?"identifier":e.startsWith('"')||e.startsWith("'")||/^-?\d/.test(e)?"literal":"identifier"}},Bi=new Si}}),ec={};k(ec,{polishProfile:()=>Ft});var Ft,zr=h({"src/generators/profiles/polish.ts"(){"use strict";Ft={code:"pl",name:"Polish",nativeName:"Polski",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"start",subjectDrop:!0,suffixes:["a\u0107","e\u0107","i\u0107","y\u0107","\u0105\u0107","owa\u0107"]},references:{me:"ja",it:"to",you:"ty",result:"wynik",event:"zdarzenie",target:"cel",body:"body"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"m\xF3j",it:"jego",you:"tw\xF3j"},keywords:{m\u00F3j:"me",moja:"me",moje:"me",tw\u00F3j:"you",twoja:"you",twoje:"you",jego:"it",jej:"it"}},roleMarkers:{destination:{primary:"do",alternatives:["w","na"],position:"before"},source:{primary:"z",alternatives:["od","ze"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"z",alternatives:["ze"],position:"before"}},keywords:{toggle:{primary:"prze\u0142\u0105cz",alternatives:["przelacz"],normalized:"toggle",form:"imperative"},add:{primary:"dodaj",normalized:"add",form:"imperative"},remove:{primary:"usu\u0144",alternatives:["usun","wyczy\u015B\u0107","wyczysc"],normalized:"remove",form:"imperative"},put:{primary:"umie\u015B\u0107",alternatives:["umiesc","wstaw"],normalized:"put",form:"imperative"},append:{primary:"do\u0142\u0105cz",alternatives:["dolacz"],normalized:"append",form:"imperative"},prepend:{primary:"poprzed\u017A",alternatives:["poprzedz"],normalized:"prepend",form:"imperative"},take:{primary:"we\u017A",alternatives:["wez"],normalized:"take",form:"imperative"},make:{primary:"utw\xF3rz",alternatives:["utworz","stw\xF3rz","stworz"],normalized:"make",form:"imperative"},clone:{primary:"sklonuj",normalized:"clone",form:"imperative"},swap:{primary:"zamie\u0144",alternatives:["zamien"],normalized:"swap",form:"imperative"},morph:{primary:"przekszta\u0142\u0107",alternatives:["przeksztalc"],normalized:"morph",form:"imperative"},set:{primary:"ustaw",alternatives:["okre\u015Bl","okresl"],normalized:"set",form:"imperative"},get:{primary:"uzyskaj",normalized:"get",form:"imperative"},increment:{primary:"zwi\u0119ksz",alternatives:["zwieksz"],normalized:"increment",form:"imperative"},decrement:{primary:"zmniejsz",normalized:"decrement",form:"imperative"},log:{primary:"loguj",alternatives:["wypisz"],normalized:"log",form:"imperative"},show:{primary:"poka\u017C",alternatives:["pokaz","wy\u015Bwietl","wyswietl"],normalized:"show",form:"imperative"},hide:{primary:"ukryj",alternatives:["schowaj"],normalized:"hide",form:"imperative"},transition:{primary:"animuj",alternatives:["przej\u015Bcie","przejscie"],normalized:"transition",form:"imperative"},on:{primary:"gdy",alternatives:["przy","na"],normalized:"on"},trigger:{primary:"wyzw\xF3l",alternatives:["wyzwol"],normalized:"trigger",form:"imperative"},send:{primary:"wy\u015Blij",alternatives:["wyslij"],normalized:"send",form:"imperative"},focus:{primary:"skup",alternatives:["skupienie"],normalized:"focus",form:"imperative"},blur:{primary:"rozmyj",alternatives:["odskup"],normalized:"blur",form:"imperative"},go:{primary:"id\u017A",alternatives:["idz","przejd\u017A","przejdz","nawiguj"],normalized:"go",form:"imperative"},wait:{primary:"czekaj",alternatives:["poczekaj"],normalized:"wait",form:"imperative"},fetch:{primary:"pobierz",alternatives:["za\u0142aduj","zaladuj"],normalized:"fetch",form:"imperative"},settle:{primary:"ustabilizuj",normalized:"settle",form:"imperative"},if:{primary:"je\u015Bli",alternatives:["jesli","je\u017Celi","jezeli"],normalized:"if"},when:{primary:"kiedy",normalized:"when"},where:{primary:"gdzie",normalized:"where"},else:{primary:"inaczej",alternatives:["wpp"],normalized:"else"},repeat:{primary:"powt\xF3rz",alternatives:["powtorz"],normalized:"repeat",form:"imperative"},for:{primary:"dla",alternatives:["ka\u017Cdy","kazdy"],normalized:"for"},while:{primary:"dop\xF3ki",alternatives:["dopoki","podczas"],normalized:"while"},continue:{primary:"kontynuuj",alternatives:["dalej"],normalized:"continue",form:"imperative"},halt:{primary:"zatrzymaj",alternatives:["stop"],normalized:"halt",form:"imperative"},throw:{primary:"rzu\u0107",alternatives:["rzuc"],normalized:"throw",form:"imperative"},call:{primary:"wywo\u0142aj",alternatives:["wywolaj"],normalized:"call",form:"imperative"},return:{primary:"zwr\xF3\u0107",alternatives:["zwroc"],normalized:"return",form:"imperative"},then:{primary:"wtedy",alternatives:["potem","nast\u0119pnie","nastepnie"],normalized:"then"},and:{primary:"i",alternatives:["oraz"],normalized:"and"},end:{primary:"koniec",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"async",alternatives:["asynchronicznie"],normalized:"async"},tell:{primary:"powiedz",normalized:"tell",form:"imperative"},default:{primary:"domy\u015Blnie",alternatives:["domyslnie"],normalized:"default"},init:{primary:"inicjuj",normalized:"init",form:"imperative"},behavior:{primary:"zachowanie",normalized:"behavior"},install:{primary:"zainstaluj",normalized:"install",form:"imperative"},measure:{primary:"zmierz",normalized:"measure",form:"imperative"},beep:{primary:"sygna\u0142",normalized:"beep"},break:{primary:"przerwij",normalized:"break"},copy:{primary:"kopiuj",normalized:"copy"},exit:{primary:"wyjd\u017A",normalized:"exit"},pick:{primary:"wybierz",normalized:"pick"},render:{primary:"renderuj",normalized:"render"},into:{primary:"do",alternatives:["w"],normalized:"into"},before:{primary:"przed",normalized:"before"},after:{primary:"po",normalized:"after"},click:{primary:"klikni\u0119ciu",alternatives:["klikniecie","klik"],normalized:"click"},hover:{primary:"najechaniu",alternatives:["hover"],normalized:"hover"},submit:{primary:"wys\u0142aniu",alternatives:["wyslaniu","submit"],normalized:"submit"},input:{primary:"wprowadzeniu",alternatives:["input"],normalized:"input"},change:{primary:"zmianie",alternatives:["zmiana"],normalized:"change"},until:{primary:"a\u017C",alternatives:["az"],normalized:"until"},event:{primary:"zdarzenie",normalized:"event"},from:{primary:"z",alternatives:["od","ze"],normalized:"from"}},eventHandler:{keyword:{primary:"gdy",alternatives:["przy","na"],normalized:"on"},sourceMarker:{primary:"na",alternatives:["w","przy"],position:"before"},conditionalKeyword:{primary:"kiedy",alternatives:["gdy","je\u015Bli"]},eventMarker:{primary:"przy",alternatives:["na"],position:"before"},temporalMarkers:["kiedy","gdy","przy"]}}}}),Fi,Pi,bh,Dh=h({"src/tokenizers/morphology/polish-normalizer.ts"(){"use strict";H(),Fi=new Map([["prze\u0142\u0105cz","prze\u0142\u0105cza\u0107"],["przelacz","przelaczac"],["dodaj","dodawa\u0107"],["usu\u0144","usuwa\u0107"],["usun","usuwac"],["umie\u015B\u0107","umieszcza\u0107"],["umiesc","umieszczac"],["wstaw","wstawia\u0107"],["ustaw","ustawia\u0107"],["pobierz","pobiera\u0107"],["we\u017A","bra\u0107"],["wez","brac"],["zwi\u0119ksz","zwi\u0119ksza\u0107"],["zwieksz","zwiekszac"],["zmniejsz","zmniejsza\u0107"],["poka\u017C","pokazywa\u0107"],["pokaz","pokazywac"],["ukryj","ukrywa\u0107"],["schowaj","schowywa\u0107"],["czekaj","czeka\u0107"],["poczekaj","poczeka\u0107"],["id\u017A","i\u015B\u0107"],["idz","isc"],["przejd\u017A","przej\u015B\u0107"],["przejdz","przejsc"],["wywo\u0142aj","wywo\u0142ywa\u0107"],["wywolaj","wywolywac"],["wy\u015Blij","wysy\u0142a\u0107"],["wyslij","wysylac"],["loguj","logowa\u0107"],["wypisz","wypisywa\u0107"],["sklonuj","sklonowa\u0107"],["kopiuj","kopiowa\u0107"],["zamie\u0144","zamienia\u0107"],["zamien","zamieniac"],["utw\xF3rz","tworzy\u0107"],["utworz","tworzyc"],["stw\xF3rz","stwarza\u0107"],["stworz","stwarzac"],["skup","skupia\u0107"],["rozmyj","rozmywa\u0107"],["nawiguj","nawigowa\u0107"],["za\u0142aduj","\u0142adowa\u0107"],["zaladuj","ladowac"],["powt\xF3rz","powtarza\u0107"],["powtorz","powtarzac"],["kontynuuj","kontynuowa\u0107"],["zatrzymaj","zatrzymywa\u0107"],["przerwij","przerywa\u0107"],["rzu\u0107","rzuca\u0107"],["rzuc","rzucac"],["zwr\xF3\u0107","zwraca\u0107"],["zwroc","zwracac"],["inicjuj","inicjowa\u0107"],["zainstaluj","instalowa\u0107"],["zmierz","mierzy\u0107"]]),Pi=class{constructor(){this.language="pl"}isNormalizable(e){return e.length<3?!1:/[a-zA-ZąęćńóśźżłĄĘĆŃÓŚŹŻŁ]/.test(e)}normalize(e){let t=e.toLowerCase();if(this.isInfinitive(t))return D(t);let r=this.tryImperativeNormalization(t);if(r)return r;let n=this.tryPastTenseNormalization(t);if(n)return n;let i=this.tryPresentTenseNormalization(t);return i||D(t)}isInfinitive(e){return["a\u0107","e\u0107","i\u0107","y\u0107","\u0105\u0107","owa\u0107","iwa\u0107","ywa\u0107"].some(r=>e.endsWith(r))}tryImperativeNormalization(e){return Fi.has(e)?v(Fi.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):e.endsWith("aj")?v(e.slice(0,-2)+"a\u0107",.8,{removedSuffixes:["aj"],conjugationType:"imperative"}):e.endsWith("uj")?v(e.slice(0,-2)+"owa\u0107",.8,{removedSuffixes:["uj"],conjugationType:"imperative"}):e.endsWith("ij")?v(e.slice(0,-2)+"i\u0107",.75,{removedSuffixes:["ij"],conjugationType:"imperative"}):null}tryPresentTenseNormalization(e){return e.endsWith("uj\u0119")||e.endsWith("uje")?v(e.slice(0,-3)+"owa\u0107",.85,{removedSuffixes:["uj\u0119"],conjugationType:"present"}):e.endsWith("am")&&e.length>3?v(e.slice(0,-2)+"a\u0107",.8,{removedSuffixes:["am"],conjugationType:"present"}):e.endsWith("em")&&e.length>3?v(e.slice(0,-2)+"e\u0107",.75,{removedSuffixes:["em"],conjugationType:"present"}):e.endsWith("\u0119")&&e.length>2?v(e.slice(0,-1)+"a\u0107",.7,{removedSuffixes:["\u0119"],conjugationType:"present"}):null}tryPastTenseNormalization(e){if(e.endsWith("a\u0142em")||e.endsWith("a\u0142am"))return v(e.slice(0,-4)+"a\u0107",.85,{removedSuffixes:[e.slice(-4)],conjugationType:"past"});if(e.endsWith("a\u0142")||e.endsWith("a\u0142a")){let t=e.endsWith("a\u0142a")?3:2;return v(e.slice(0,-t)+"a\u0107",.8,{removedSuffixes:[e.slice(-t)],conjugationType:"past"})}if(e.endsWith("i\u0142em")||e.endsWith("i\u0142am")||e.endsWith("ilem")||e.endsWith("ilam"))return v(e.slice(0,-4)+"i\u0107",.85,{removedSuffixes:[e.slice(-4)],conjugationType:"past"});if(e.endsWith("i\u0142")||e.endsWith("i\u0142a")||e.endsWith("il")||e.endsWith("ila")){let t=e.endsWith("i\u0142a")||e.endsWith("ila")?3:2;return v(e.slice(0,-t)+"i\u0107",.8,{removedSuffixes:[e.slice(-t)],conjugationType:"past"})}return null}},bh=new Pi}}),tc={};k(tc,{PolishTokenizer:()=>Li,polishTokenizer:()=>ji});var rc,nc,Li,ji,ic=h({"src/tokenizers/polish.ts"(){"use strict";S(),zr(),Dh(),I(),M(),Mf(),rc=new Set(["do","od","z","ze","w","we","na","po","pod","przed","za","nad","mi\u0119dzy","miedzy","przez","dla","bez","o","przy","u","wed\u0142ug","wedlug","mimo","w\u015Br\xF3d","wsrod","obok","poza","wok\xF3\u0142","wokol","przeciw","ku"]),nc=[{native:"prawda",normalized:"true"},{native:"fa\u0142sz",normalized:"false"},{native:"falsz",normalized:"false"},{native:"null",normalized:"null"},{native:"nieokre\u015Blony",normalized:"undefined"},{native:"nieokreslony",normalized:"undefined"},{native:"pierwszy",normalized:"first"},{native:"pierwsza",normalized:"first"},{native:"pierwsze",normalized:"first"},{native:"ostatni",normalized:"last"},{native:"ostatnia",normalized:"last"},{native:"ostatnie",normalized:"last"},{native:"nast\u0119pny",normalized:"next"},{native:"nastepny",normalized:"next"},{native:"poprzedni",normalized:"previous"},{native:"najbli\u017Cszy",normalized:"closest"},{native:"najblizszy",normalized:"closest"},{native:"rodzic",normalized:"parent"},{native:"klikni\u0119cie",normalized:"click"},{native:"klikniecie",normalized:"click"},{native:"klik",normalized:"click"},{native:"click",normalized:"click"},{native:"zmiana",normalized:"change"},{native:"wys\u0142anie",normalized:"submit"},{native:"wyslanie",normalized:"submit"},{native:"naci\u015Bni\u0119cie",normalized:"keydown"},{native:"nacisniecie",normalized:"keydown"},{native:"klawisz",normalized:"keydown"},{native:"najechanie",normalized:"mouseover"},{native:"zjechanie",normalized:"mouseout"},{native:"rozmycie",normalized:"blur"},{native:"za\u0142adowanie",normalized:"load"},{native:"zaladowanie",normalized:"load"},{native:"przewini\u0119cie",normalized:"scroll"},{native:"przewiniecie",normalized:"scroll"},{native:"input",normalized:"input"},{native:"m\xF3j",normalized:"my"},{native:"moj",normalized:"my"},{native:"sekunda",normalized:"s"},{native:"sekundy",normalized:"s"},{native:"sekund",normalized:"s"},{native:"milisekunda",normalized:"ms"},{native:"milisekundy",normalized:"ms"},{native:"milisekund",normalized:"ms"},{native:"minuta",normalized:"m"},{native:"minuty",normalized:"m"},{native:"minut",normalized:"m"},{native:"godzina",normalized:"h"},{native:"godziny",normalized:"h"},{native:"godzin",normalized:"h"},{native:"po\u0142\xF3\u017C",normalized:"put"},{native:"poloz",normalized:"put"},{native:"lub",normalized:"or"},{native:"nie",normalized:"not"},{native:"jest",normalized:"is"},{native:"istnieje",normalized:"exists"},{native:"pusty",normalized:"empty"},{native:"puste",normalized:"empty"}],Li=class extends j{constructor(){super(),this.language="pl",this.direction="ltr",this.initializeKeywordsFromProfile(Ft,nc),this.setNormalizer(new Pi),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractors(Of()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){let t=e.toLowerCase();return rc.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}},ji=new Li}}),ac={};k(ac,{portugueseProfile:()=>Ze});var Ze,Pt=h({"src/generators/profiles/portuguese.ts"(){"use strict";Ze={code:"pt",name:"Portuguese",nativeName:"Portugu\xEAs",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"eu",it:"ele",you:"voc\xEA",result:"resultado",event:"evento",target:"alvo",body:"corpo"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"meu",it:"seu",you:"teu"},keywords:{meu:"me",minha:"me",teu:"you",tua:"you",seu:"it",sua:"it"}},roleMarkers:{destination:{primary:"em",alternatives:["para","a"],position:"before"},source:{primary:"de",alternatives:["desde"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"com",position:"before"}},keywords:{toggle:{primary:"alternar",alternatives:[],normalized:"toggle"},add:{primary:"adicionar",alternatives:["acrescentar"],normalized:"add"},remove:{primary:"remover",alternatives:["eliminar","apagar"],normalized:"remove"},put:{primary:"colocar",alternatives:["p\xF4r","por"],normalized:"put"},append:{primary:"anexar",normalized:"append"},prepend:{primary:"preceder",normalized:"prepend"},take:{primary:"pegar",normalized:"take"},make:{primary:"fazer",alternatives:["criar"],normalized:"make"},clone:{primary:"clonar",alternatives:[],normalized:"clone"},swap:{primary:"trocar",alternatives:["substituir"],normalized:"swap"},morph:{primary:"transformar",alternatives:["converter"],normalized:"morph"},set:{primary:"definir",alternatives:["configurar"],normalized:"set"},get:{primary:"obter",normalized:"get"},increment:{primary:"incrementar",alternatives:["aumentar"],normalized:"increment"},decrement:{primary:"decrementar",alternatives:["diminuir"],normalized:"decrement"},log:{primary:"registrar",alternatives:["imprimir"],normalized:"log"},show:{primary:"mostrar",alternatives:["exibir"],normalized:"show"},hide:{primary:"ocultar",alternatives:["esconder"],normalized:"hide"},transition:{primary:"transi\xE7\xE3o",alternatives:["animar"],normalized:"transition"},on:{primary:"em",alternatives:["ao"],normalized:"on"},trigger:{primary:"disparar",alternatives:["ativar"],normalized:"trigger"},send:{primary:"enviar",normalized:"send"},focus:{primary:"focar",normalized:"focus"},blur:{primary:"desfocar",normalized:"blur"},go:{primary:"ir",alternatives:["navegar"],normalized:"go"},wait:{primary:"esperar",alternatives:["aguardar"],normalized:"wait"},fetch:{primary:"buscar",normalized:"fetch"},settle:{primary:"estabilizar",normalized:"settle"},if:{primary:"se",normalized:"if"},when:{primary:"quando",normalized:"when"},where:{primary:"onde",normalized:"where"},else:{primary:"sen\xE3o",normalized:"else"},repeat:{primary:"repetir",normalized:"repeat"},for:{primary:"para",normalized:"for"},while:{primary:"enquanto",normalized:"while"},continue:{primary:"continuar",normalized:"continue"},halt:{primary:"parar",normalized:"halt"},throw:{primary:"lan\xE7ar",normalized:"throw"},call:{primary:"chamar",normalized:"call"},return:{primary:"retornar",alternatives:["devolver"],normalized:"return"},then:{primary:"ent\xE3o",alternatives:["logo"],normalized:"then"},and:{primary:"e",alternatives:["tamb\xE9m","al\xE9m disso"],normalized:"and"},end:{primary:"fim",alternatives:["final","t\xE9rmino"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"ass\xEDncrono",normalized:"async"},tell:{primary:"dizer",normalized:"tell"},default:{primary:"padr\xE3o",normalized:"default"},init:{primary:"iniciar",alternatives:["inicializar"],normalized:"init"},behavior:{primary:"comportamento",normalized:"behavior"},install:{primary:"instalar",normalized:"install"},measure:{primary:"medir",normalized:"measure"},beep:{primary:"apitar",normalized:"beep"},break:{primary:"interromper",normalized:"break"},copy:{primary:"copiar",normalized:"copy"},exit:{primary:"sair",normalized:"exit"},pick:{primary:"escolher",normalized:"pick"},render:{primary:"renderizar",normalized:"render"},into:{primary:"dentro",alternatives:["dentro de"],normalized:"into"},before:{primary:"antes",normalized:"before"},after:{primary:"depois",normalized:"after"},click:{primary:"clique",alternatives:["clicar"],normalized:"click"},hover:{primary:"sobrevoar",alternatives:["passar"],normalized:"hover"},submit:{primary:"envio",alternatives:["submeter"],normalized:"submit"},input:{primary:"entrada",alternatives:["inser\xE7\xE3o"],normalized:"input"},change:{primary:"altera\xE7\xE3o",alternatives:["mudan\xE7a"],normalized:"change"},until:{primary:"at\xE9",normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"de",alternatives:["desde"],normalized:"from"}},eventHandler:{keyword:{primary:"em",alternatives:["ao"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["desde"],position:"before"},conditionalKeyword:{primary:"quando",alternatives:["se"]},eventMarker:{primary:"ao",alternatives:["no"],position:"before"},temporalMarkers:["quando","ao"]}}}});function Th(e){return/[áàâãéêíóôõúüçÁÀÂÃÉÊÍÓÔÕÚÜÇ]/.test(e)}function Sh(e){let t=e.toLowerCase();if(t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir")||t.endsWith("ando")||t.endsWith("endo")||t.endsWith("indo")||t.endsWith("ado")||t.endsWith("ido")||t.endsWith("ar-se")||t.endsWith("er-se")||t.endsWith("ir-se"))return!0;for(let r of e)if(Th(r))return!0;return!1}var _i,oc,uc,sc,lc,Ri,Bh,Fh=h({"src/tokenizers/morphology/portuguese-normalizer.ts"(){"use strict";H(),_i=["-se","-me","-te","-nos","-vos"],oc=[{ending:"ando",stem:"ar",confidence:.88,type:"gerund"},{ending:"ado",stem:"ar",confidence:.88,type:"participle"},{ending:"ada",stem:"ar",confidence:.88,type:"participle"},{ending:"ados",stem:"ar",confidence:.88,type:"participle"},{ending:"adas",stem:"ar",confidence:.88,type:"participle"},{ending:"o",stem:"ar",confidence:.75,type:"present"},{ending:"as",stem:"ar",confidence:.82,type:"present"},{ending:"a",stem:"ar",confidence:.75,type:"present"},{ending:"amos",stem:"ar",confidence:.85,type:"present"},{ending:"ais",stem:"ar",confidence:.85,type:"present"},{ending:"am",stem:"ar",confidence:.8,type:"present"},{ending:"ei",stem:"ar",confidence:.88,type:"past"},{ending:"aste",stem:"ar",confidence:.88,type:"past"},{ending:"ou",stem:"ar",confidence:.88,type:"past"},{ending:"\xE1mos",stem:"ar",confidence:.88,type:"past"},{ending:"amos",stem:"ar",confidence:.85,type:"past"},{ending:"astes",stem:"ar",confidence:.88,type:"past"},{ending:"aram",stem:"ar",confidence:.88,type:"past"},{ending:"ava",stem:"ar",confidence:.88,type:"past"},{ending:"avas",stem:"ar",confidence:.88,type:"past"},{ending:"\xE1vamos",stem:"ar",confidence:.88,type:"past"},{ending:"avamos",stem:"ar",confidence:.85,type:"past"},{ending:"\xE1veis",stem:"ar",confidence:.88,type:"past"},{ending:"aveis",stem:"ar",confidence:.85,type:"past"},{ending:"avam",stem:"ar",confidence:.88,type:"past"},{ending:"e",stem:"ar",confidence:.72,type:"subjunctive"},{ending:"es",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"emos",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"eis",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"em",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"a",stem:"ar",confidence:.75,type:"imperative"},{ending:"ai",stem:"ar",confidence:.85,type:"imperative"},{ending:"ar",stem:"ar",confidence:.92,type:"dictionary"}],uc=[{ending:"endo",stem:"er",confidence:.88,type:"gerund"},{ending:"ido",stem:"er",confidence:.85,type:"participle"},{ending:"ida",stem:"er",confidence:.85,type:"participle"},{ending:"idos",stem:"er",confidence:.85,type:"participle"},{ending:"idas",stem:"er",confidence:.85,type:"participle"},{ending:"o",stem:"er",confidence:.72,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"e",stem:"er",confidence:.72,type:"present"},{ending:"emos",stem:"er",confidence:.85,type:"present"},{ending:"eis",stem:"er",confidence:.82,type:"present"},{ending:"em",stem:"er",confidence:.78,type:"present"},{ending:"i",stem:"er",confidence:.85,type:"past"},{ending:"este",stem:"er",confidence:.88,type:"past"},{ending:"eu",stem:"er",confidence:.88,type:"past"},{ending:"emos",stem:"er",confidence:.85,type:"past"},{ending:"estes",stem:"er",confidence:.88,type:"past"},{ending:"eram",stem:"er",confidence:.88,type:"past"},{ending:"ia",stem:"er",confidence:.85,type:"past"},{ending:"ias",stem:"er",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"er",confidence:.88,type:"past"},{ending:"iamos",stem:"er",confidence:.85,type:"past"},{ending:"\xEDeis",stem:"er",confidence:.88,type:"past"},{ending:"ieis",stem:"er",confidence:.85,type:"past"},{ending:"iam",stem:"er",confidence:.85,type:"past"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],sc=[{ending:"indo",stem:"ir",confidence:.88,type:"gerund"},{ending:"ido",stem:"ir",confidence:.85,type:"participle"},{ending:"ida",stem:"ir",confidence:.85,type:"participle"},{ending:"idos",stem:"ir",confidence:.85,type:"participle"},{ending:"idas",stem:"ir",confidence:.85,type:"participle"},{ending:"o",stem:"ir",confidence:.72,type:"present"},{ending:"es",stem:"ir",confidence:.78,type:"present"},{ending:"e",stem:"ir",confidence:.72,type:"present"},{ending:"imos",stem:"ir",confidence:.85,type:"present"},{ending:"is",stem:"ir",confidence:.82,type:"present"},{ending:"em",stem:"ir",confidence:.78,type:"present"},{ending:"i",stem:"ir",confidence:.85,type:"past"},{ending:"iste",stem:"ir",confidence:.88,type:"past"},{ending:"iu",stem:"ir",confidence:.88,type:"past"},{ending:"imos",stem:"ir",confidence:.85,type:"past"},{ending:"istes",stem:"ir",confidence:.88,type:"past"},{ending:"iram",stem:"ir",confidence:.88,type:"past"},{ending:"ia",stem:"ir",confidence:.85,type:"past"},{ending:"ias",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"ir",confidence:.88,type:"past"},{ending:"iamos",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDeis",stem:"ir",confidence:.88,type:"past"},{ending:"ieis",stem:"ir",confidence:.85,type:"past"},{ending:"iam",stem:"ir",confidence:.85,type:"past"},{ending:"ir",stem:"ir",confidence:.92,type:"dictionary"}],lc=[...oc,...uc,...sc].sort((e,t)=>t.ending.length-e.ending.length),Ri=class{constructor(){this.language="pt"}isNormalizable(e){return e.length<3?!1:Sh(e)}normalize(e){let t=e.toLowerCase();if((t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir"))&&!_i.some(i=>t.endsWith(i)))return D(e);let r=this.tryReflexiveNormalization(t);if(r)return r;let n=this.tryConjugationNormalization(t);return n||D(e)}tryReflexiveNormalization(e){for(let t of _i)if(e.endsWith(t)){let r=e.slice(0,-t.length);if(r.endsWith("ar")||r.endsWith("er")||r.endsWith("ir"))return v(r,.88,{removedSuffixes:[t],conjugationType:"reflexive"});let n=this.tryConjugationNormalization(r);if(n&&n.stem!==r)return v(n.stem,n.confidence*.95,{removedSuffixes:[t,...n.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationNormalization(e){for(let t of lc)if(e.endsWith(t.ending)){let r=e.slice(0,-t.ending.length);if(r.length<2)continue;let n=r+t.stem;return v(n,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}},Bh=new Ri}});function Ph(e){return{isLetter:n=>e.test(n),isIdentifierChar:n=>/[0-9]/.test(n)||e.test(n)}}function Lh(){return[new dc]}var cc,pc,mc,dc,jh=h({"src/tokenizers/extractors/portuguese-keyword.ts"(){"use strict";({isLetter:cc,isIdentifierChar:pc}=Ph(/[a-zA-ZáâãéêíóôõúçÁÂÃÉÊÍÓÔÕÚÇ]/)),mc=new Set(["em","a","de","para","com","sem","por","sobre","entre","antes","depois","dentro","fora","ao","do","da","no","na"]),dc=class{constructor(){this.name="portuguese-keyword"}setContext(e){this.context=e}canExtract(e,t){return cc(e[t])}extract(e,t){if(!this.context)throw new Error("PortugueseKeywordExtractor: context not set");let r=t,n="";for(;r<e.length&&pc(e[r]);)n+=e[r++];if(!n)return null;let i=n.toLowerCase(),a=mc.has(i),o=this.context.lookupKeyword(i),u=o&&o.normalized!==o.native?o.normalized:void 0,s;if(!o&&this.context.normalizer){let l=this.context.normalizer.normalize(n);if(l.stem!==n&&l.confidence>=.7){let c=this.context.lookupKeyword(l.stem);c&&(s=c.normalized)}}return{value:n,length:r-t,metadata:{normalized:u||s,isPreposition:a}}}}}}),fc={};k(fc,{PortugueseTokenizer:()=>Ni,portugueseTokenizer:()=>Ii});var yc,hc,Ni,Ii,vc=h({"src/tokenizers/portuguese.ts"(){"use strict";S(),Pt(),Fh(),I(),M(),jh(),yc=new Set(["em","a","de","desde","at\xE9","ate","com","sem","por","para","sobre","entre","antes","depois","dentro","fora","ao","do","no","na"]),hc=[{native:"verdadeiro",normalized:"true"},{native:"falso",normalized:"false"},{native:"nulo",normalized:"null"},{native:"indefinido",normalized:"undefined"},{native:"primeiro",normalized:"first"},{native:"primeira",normalized:"first"},{native:"\xFAltimo",normalized:"last"},{native:"ultima",normalized:"last"},{native:"pr\xF3ximo",normalized:"next"},{native:"proximo",normalized:"next"},{native:"anterior",normalized:"previous"},{native:"mais pr\xF3ximo",normalized:"closest"},{native:"mais proximo",normalized:"closest"},{native:"pai",normalized:"parent"},{native:"clique",normalized:"click"},{native:"click",normalized:"click"},{native:"entrada",normalized:"input"},{native:"mudan\xE7a",normalized:"change"},{native:"mudanca",normalized:"change"},{native:"envio",normalized:"submit"},{native:"tecla baixo",normalized:"keydown"},{native:"tecla cima",normalized:"keyup"},{native:"mouse sobre",normalized:"mouseover"},{native:"mouse fora",normalized:"mouseout"},{native:"foco",normalized:"focus"},{native:"desfoque",normalized:"blur"},{native:"carregar",normalized:"load"},{native:"rolagem",normalized:"scroll"},{native:"meu",normalized:"my"},{native:"minha",normalized:"my"},{native:"isso",normalized:"it"},{native:"segundo",normalized:"s"},{native:"segundos",normalized:"s"},{native:"milissegundo",normalized:"ms"},{native:"milissegundos",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minutos",normalized:"m"},{native:"hora",normalized:"h"},{native:"horas",normalized:"h"},{native:"senao",normalized:"else"},{native:"transicao",normalized:"transition"},{native:"ate",normalized:"until"},{native:"entao",normalized:"then"},{native:"lancar",normalized:"throw"},{native:"assincrono",normalized:"async"},{native:"padrao",normalized:"default"},{native:"at\xE9 que",normalized:"until"},{native:"dentro de",normalized:"into"}],Ni=class extends j{constructor(){super(),this.language="pt",this.direction="ltr",this.initializeKeywordsFromProfile(Ze,hc),this.setNormalizer(new Ri),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractors(Lh()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){let t=e.toLowerCase();return yc.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}},Ii=new Ni}}),gc={};k(gc,{quechuaProfile:()=>et});var et,Lt=h({"src/generators/profiles/quechua.ts"(){"use strict";et={code:"qu",name:"Quechua",nativeName:"Runasimi",direction:"ltr",script:"latin",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,verb:{position:"end",subjectDrop:!0},references:{me:"\xF1uqa",it:"pay",you:"qam",result:"rurasqa",event:"ruwakuq",target:"\xF1awpaqman",body:"ukhu"},possessive:{marker:"-pa",markerPosition:"after-object",keywords:{\u00F1uqapa:"me",\u00F1uqaypa:"me",qampa:"you",paypa:"it"}},roleMarkers:{patient:{primary:"ta",position:"after"},destination:{primary:"man",alternatives:["pa"],position:"after"},source:{primary:"manta",position:"after"},style:{primary:"wan",position:"after"},event:{primary:"pi",position:"after"}},keywords:{toggle:{primary:"t'ikray",alternatives:["tikray"],normalized:"toggle"},add:{primary:"yapay",alternatives:["yapaykuy"],normalized:"add"},remove:{primary:"qichuy",alternatives:["hurquy","anchuchiy"],normalized:"remove"},put:{primary:"churay",alternatives:["tiyachiy"],normalized:"put"},append:{primary:"qatichiy",alternatives:["qhipaman_yapay"],normalized:"append"},prepend:{primary:"\xF1awpachiy",normalized:"prepend"},take:{primary:"hapiy",normalized:"take"},make:{primary:"ruray",alternatives:["kamay"],normalized:"make"},clone:{primary:"kikinchay",alternatives:[],normalized:"clone"},swap:{primary:"t'inkuy",alternatives:["rantikunakuy","rantin_tikray"],normalized:"swap"},morph:{primary:"tukunay",alternatives:[],normalized:"morph"},set:{primary:"churanay",alternatives:["kamaykuy"],normalized:"set"},get:{primary:"taripay",normalized:"get"},increment:{primary:"yapachiy",normalized:"increment"},decrement:{primary:"pisiyachiy",normalized:"decrement"},log:{primary:"qillqakuy",alternatives:["willakuy"],normalized:"log"},show:{primary:"rikuchiy",alternatives:["qawachiy"],normalized:"show"},hide:{primary:"pakay",alternatives:["pakakuy"],normalized:"hide"},transition:{primary:"pasay",alternatives:[],normalized:"transition"},on:{primary:"chaypim",alternatives:["kaypi"],normalized:"on"},trigger:{primary:"kuyuchiy",alternatives:["kichay"],normalized:"trigger"},send:{primary:"kachay",alternatives:["apachiy"],normalized:"send"},focus:{primary:"qhawachiy",alternatives:["qhaway"],normalized:"focus"},blur:{primary:"paqariy",alternatives:["mana qhawachiy"],normalized:"blur"},go:{primary:"riy",alternatives:["puriy"],normalized:"go"},wait:{primary:"suyay",normalized:"wait"},fetch:{primary:"apamuy",alternatives:["taripakaramuy"],normalized:"fetch"},settle:{primary:"tiyakuy",normalized:"settle"},if:{primary:"sichus",normalized:"if"},when:{primary:"maykama",normalized:"when"},where:{primary:"maypi",normalized:"where"},else:{primary:"manachus",alternatives:["hukniraq"],normalized:"else"},repeat:{primary:"kutipay",alternatives:["muyu"],normalized:"repeat"},for:{primary:"sapankaq",normalized:"for"},while:{primary:"kaykamaqa",normalized:"while"},continue:{primary:"qatipay",normalized:"continue"},halt:{primary:"sayay",alternatives:[],normalized:"halt"},throw:{primary:"chanqay",normalized:"throw"},call:{primary:"waqyay",alternatives:["qayay"],normalized:"call"},return:{primary:"kutichiy",alternatives:["kutimuy"],normalized:"return"},then:{primary:"chaymantataq",alternatives:["hinaspa","chaymanta"],normalized:"then"},and:{primary:"hinallataq",alternatives:["ima","chaymantawan"],normalized:"and"},end:{primary:"tukukuy",alternatives:["tukuy","puchukay"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"mana waqtalla",normalized:"async"},tell:{primary:"niy",alternatives:[],normalized:"tell"},default:{primary:"qallariy",normalized:"default"},init:{primary:"qallarichiy",normalized:"init"},behavior:{primary:"ruwana",normalized:"behavior"},install:{primary:"tarpuy",normalized:"install"},measure:{primary:"tupuy",normalized:"measure"},beep:{primary:"waqay",normalized:"beep"},break:{primary:"p'akiy",normalized:"break"},copy:{primary:"qillqay",normalized:"copy"},exit:{primary:"lluqsiy",normalized:"exit"},pick:{primary:"akllay",normalized:"pick"},render:{primary:"rikurichiy",normalized:"render"},into:{primary:"ukuman",normalized:"into"},before:{primary:"\xF1awpaq",normalized:"before"},after:{primary:"qhipa",normalized:"after"},until:{primary:"kama",alternatives:["-kama"],normalized:"until"},event:{primary:"ruwakuq",alternatives:["imayna"],normalized:"event"},from:{primary:"manta",alternatives:["-manta"],normalized:"from"},click:{primary:"\xF1itiy",normalized:"click"},load:{primary:"apakuy",normalized:"load"},submit:{primary:"apaykachay",normalized:"submit"},hover:{primary:"hawachiy",normalized:"hover"},input:{primary:"yaykuchiy",normalized:"input"},change:{primary:"kambiay",normalized:"change"}},eventHandler:{keyword:{primary:"pi",alternatives:["kaqtin"]},sourceMarker:{primary:"manta",position:"after"},eventMarker:{primary:"pi",alternatives:["kaqtin","kaqpi"],position:"after"}}}}});function _h(e){let t=e.charCodeAt(0);return t>=65&&t<=90||t>=97&&t<=122?!0:e==="\xF1"||e==="\xD1"||e==="'"||e==="'"}function Rh(e){for(let t of e)if(_h(t))return!0;return!1}var Ec,zc,kc,Nh=h({"src/tokenizers/morphology/quechua-normalizer.ts"(){"use strict";H(),Ec=[{pattern:"shankichik",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"shaniku",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"shanki",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shani",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shanchik",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shanku",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shan",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"rqankichik",confidence:.8,conjugationType:"past",minStemLength:2},{pattern:"rqaniku",confidence:.8,conjugationType:"past",minStemLength:2},{pattern:"rqanki",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqani",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqanchik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqanku",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqan",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"nqankichik",confidence:.8,conjugationType:"future",minStemLength:2},{pattern:"nqaniku",confidence:.8,conjugationType:"future",minStemLength:2},{pattern:"nqanki",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqani",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqanchik",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqanku",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqa",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"chikuy",confidence:.8,conjugationType:"compound",minStemLength:2},{pattern:"chiku",confidence:.82,conjugationType:"compound",minStemLength:2},{pattern:"chiy",confidence:.85,conjugationType:"causative",minStemLength:2,replacement:"y"},{pattern:"chiq",confidence:.85,conjugationType:"causative",minStemLength:2,replacement:"y"},{pattern:"chi",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"kuy",confidence:.82,conjugationType:"reflexive",minStemLength:2},{pattern:"rqa",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"rqan",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"sha",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"na",confidence:.85,conjugationType:"obligation",minStemLength:2},{pattern:"manmi",confidence:.8,conjugationType:"potential",minStemLength:2},{pattern:"man",confidence:.8,conjugationType:"potential",minStemLength:2},{pattern:"nkichik",confidence:.8,conjugationType:"present",minStemLength:2},{pattern:"niku",confidence:.8,conjugationType:"present",minStemLength:2},{pattern:"nki",confidence:.82,conjugationType:"present",minStemLength:2},{pattern:"nchik",confidence:.82,conjugationType:"present",minStemLength:2},{pattern:"nku",confidence:.82,conjugationType:"present",minStemLength:2},{pattern:"ni",confidence:.85,conjugationType:"present",minStemLength:2},{pattern:"ku",confidence:.82,conjugationType:"reflexive",minStemLength:2},{pattern:"ychik",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"y",confidence:.9,conjugationType:"dictionary",minStemLength:2},{pattern:"sqa",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ska",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"kama",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"manta",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"man",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"wan",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"pi",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"ta",confidence:.7,conjugationType:"dictionary",minStemLength:2}],zc=class{constructor(){this.language="qu"}isNormalizable(e){return!(!Rh(e)||e.length<3||!/[aiu]/.test(e.toLowerCase()))}normalize(e){let t=e.toLowerCase();for(let r of Ec)if(t.endsWith(r.pattern)){let n=t.slice(0,-r.pattern.length);r.replacement&&!n.endsWith(r.replacement)&&(n=n+r.replacement);let i=r.minStemLength??2;if(n.length<i||!this.isValidStem(n))continue;let a={removedSuffixes:[r.pattern]};return r.conjugationType&&(a.conjugationType=r.conjugationType),v(n,r.confidence,a)}return D(e)}isValidStem(e){return!(e.length<2||!/[aeiou]/.test(e)||new Set(["ta","man","pi","wan","pa","kama","hina"]).has(e))}},kc=new zc}}),Cc={};k(Cc,{QuechuaTokenizer:()=>Oi,quechuaTokenizer:()=>Mi});var xc,wc,Ac,Oi,Mi,bc=h({"src/tokenizers/quechua.ts"(){"use strict";S(),Lt(),Nh(),I(),M(),Yf(),xc=class{constructor(){this.name="quechua-string-literal"}canExtract(e,t){return e[t]==='"'}extract(e,t){let r=e[t],n=r,i=t+1;for(;i<e.length;){let a=e[i];if(a===r)return n+=a,{value:n,length:n.length};a==="\\"&&i+1<e.length?(n+=a+e[i+1],i+=2):(n+=a,i++)}return null}},wc=new Set(["-ta","-man","-manta","-pi","-wan","-paq","-kama","-rayku","-hina","ta","man","manta","pi","wan","paq","kama","hina","pa"]),Ac=[{native:"ar\xED",normalized:"true"},{native:"ari",normalized:"true"},{native:"manan",normalized:"false"},{native:"mana",normalized:"false"},{native:"ch'usaq",normalized:"null"},{native:"chusaq",normalized:"null"},{native:"mana riqsisqa",normalized:"undefined"},{native:"\xF1awpaq",normalized:"first"},{native:"nawpaq",normalized:"first"},{native:"qhipa",normalized:"last"},{native:"hamuq",normalized:"next"},{native:"\xF1awpaq kaq",normalized:"previous"},{native:"\xF1awpaq_kaq",normalized:"previous"},{native:"aswan qayllaqa",normalized:"closest"},{native:"tayta",normalized:"parent"},{native:"llikllay",normalized:"click"},{native:"\xF1itiy",normalized:"click"},{native:"click",normalized:"click"},{native:"yaykuy",normalized:"input"},{native:"llave uray",normalized:"keydown"},{native:"llave hawa",normalized:"keyup"},{native:"mausiri yayku",normalized:"mouseover"},{native:"mausiri lluqsi",normalized:"mouseout"},{native:"qhaway",normalized:"focus"},{native:"mana qhaway",normalized:"blur"},{native:"kargay",normalized:"load"},{native:"muyuy",normalized:"scroll"},{native:"\xF1uqa",normalized:"me"},{native:"nuqa",normalized:"me"},{native:"\xF1uqap",normalized:"my"},{native:"nuqap",normalized:"my"},{native:"chay",normalized:"it"},{native:"chaymi",normalized:"it"},{native:"lluqsiy",normalized:"result"},{native:"ruway",normalized:"event"},{native:"maypi",normalized:"target"},{native:"sikundu",normalized:"s"},{native:"segundu",normalized:"s"},{native:"waranqa sikundu",normalized:"ms"},{native:"minutu",normalized:"m"},{native:"ura",normalized:"h"},{native:"hora",normalized:"h"},{native:"chaypim",normalized:"on"},{native:"kaypi",normalized:"on"},{native:"chayqa",normalized:"then"},{native:"chaymanta",normalized:"then"},{native:"chaymantataq",normalized:"then"},{native:"hinaspa",normalized:"then"},{native:"tukukuy",normalized:"end"},{native:"puchukay",normalized:"end"},{native:"kaykama",normalized:"until"},{native:"yapay",normalized:"add"},{native:"t'ikray",normalized:"toggle"},{native:"tikray",normalized:"toggle"},{native:"qhawachiy",normalized:"focus"},{native:"mana qhawachiy",normalized:"blur"},{native:"-manta",normalized:"from"}],Oi=class extends j{constructor(){super(),this.language="qu",this.direction="ltr",this.initializeKeywordsFromProfile(et,Ac),this.setNormalizer(kc),this.registerExtractors(O()),this.registerExtractor(new xc),this.registerExtractor(new P),this.registerExtractor(Xf()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){let t=e.toLowerCase();return wc.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}},Mi=new Oi}});function Ih(e){return/[а-яА-ЯёЁ]/.test(e)}function Oh(e){for(let t of e)if(Ih(t))return!0;return!1}var Wi,qi,Mh,Wh=h({"src/tokenizers/morphology/russian-normalizer.ts"(){"use strict";H(),Wi=new Map([["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438","\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C"],["\u0434\u043E\u0431\u0430\u0432\u044C","\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C"],["\u0443\u0434\u0430\u043B\u0438","\u0443\u0434\u0430\u043B\u0438\u0442\u044C"],["\u0443\u0431\u0435\u0440\u0438","\u0443\u0431\u0440\u0430\u0442\u044C"],["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C"],["\u043F\u043E\u043C\u0435\u0441\u0442\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C"],["\u0432\u0441\u0442\u0430\u0432\u044C","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C"],["\u0432\u043E\u0437\u044C\u043C\u0438","\u0432\u0437\u044F\u0442\u044C"],["\u0441\u043E\u0437\u0434\u0430\u0439","\u0441\u043E\u0437\u0434\u0430\u0442\u044C"],["\u043A\u043B\u043E\u043D\u0438\u0440\u0443\u0439","\u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u043F\u043E\u043C\u0435\u043D\u044F\u0439","\u043F\u043E\u043C\u0435\u043D\u044F\u0442\u044C"],["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0439","\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C"],["\u0437\u0430\u0434\u0430\u0439","\u0437\u0430\u0434\u0430\u0442\u044C"],["\u043F\u043E\u043B\u0443\u0447\u0438","\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C"],["\u0443\u0432\u0435\u043B\u0438\u0447\u044C","\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C"],["\u0443\u043C\u0435\u043D\u044C\u0448\u0438","\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C"],["\u0437\u0430\u043F\u0438\u0448\u0438","\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C"],["\u043F\u043E\u043A\u0430\u0436\u0438","\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C"],["\u0441\u043A\u0440\u043E\u0439","\u0441\u043A\u0440\u044B\u0442\u044C"],["\u0441\u043F\u0440\u044F\u0447\u044C","\u0441\u043F\u0440\u044F\u0442\u0430\u0442\u044C"],["\u0430\u043D\u0438\u043C\u0438\u0440\u0443\u0439","\u0430\u043D\u0438\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0432\u044B\u0437\u043E\u0432\u0438","\u0432\u044B\u0437\u0432\u0430\u0442\u044C"],["\u043E\u0442\u043F\u0440\u0430\u0432\u044C","\u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C"],["\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u0443\u0439","\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0440\u0430\u0437\u043C\u043E\u0439","\u0440\u0430\u0437\u043C\u044B\u0442\u044C"],["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u043F\u0435\u0440\u0435\u0439\u0442\u0438"],["\u0438\u0434\u0438","\u0438\u0434\u0442\u0438"],["\u0436\u0434\u0438","\u0436\u0434\u0430\u0442\u044C"],["\u043F\u043E\u0434\u043E\u0436\u0434\u0438","\u043F\u043E\u0434\u043E\u0436\u0434\u0430\u0442\u044C"],["\u0437\u0430\u0433\u0440\u0443\u0437\u0438","\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C"],["\u043F\u043E\u0432\u0442\u043E\u0440\u0438","\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C"],["\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"],["\u0431\u0440\u043E\u0441\u044C","\u0431\u0440\u043E\u0441\u0438\u0442\u044C"],["\u0432\u0435\u0440\u043D\u0438","\u0432\u0435\u0440\u043D\u0443\u0442\u044C"],["\u0441\u043A\u0430\u0436\u0438","\u0441\u043A\u0430\u0437\u0430\u0442\u044C"],["\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0439","\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0438\u0437\u043C\u0435\u0440\u044C","\u0438\u0437\u043C\u0435\u0440\u0438\u0442\u044C"]]),qi=class{constructor(){this.language="ru"}isNormalizable(e){return e.length<3?!1:Oh(e)}normalize(e){let t=e.toLowerCase();if(t.endsWith("\u0441\u044F")||t.endsWith("\u0441\u044C")){let o=this.tryReflexiveNormalization(t);if(o)return o}if(t.endsWith("\u0442\u044C")||t.endsWith("\u0442\u0438")||t.endsWith("\u0447\u044C"))return D(e);let r=this.tryImperativeLookup(t);if(r)return r;let n=this.tryPastTenseNormalization(t);if(n)return n;let i=this.tryPresentTenseNormalization(t);if(i)return i;let a=this.tryGenericImperativeNormalization(t);return a||D(e)}tryReflexiveNormalization(e){let t=(e.endsWith("\u0441\u044F"),2),r=e.slice(0,-t);if(e.endsWith("\u0442\u044C\u0441\u044F")||e.endsWith("\u0442\u0438\u0441\u044C")||e.endsWith("\u0447\u044C\u0441\u044F"))return D(e);let n=this.normalizeNonReflexive(r);if(n.confidence<1){let i=n.stem.endsWith("\u0442\u044C")?n.stem.slice(0,-2)+"\u0442\u044C\u0441\u044F":n.stem+"\u0441\u044F";return v(i,n.confidence*.95,{removedSuffixes:["\u0441\u044F",...n.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}normalizeNonReflexive(e){if(e.endsWith("\u0442\u044C")||e.endsWith("\u0442\u0438")||e.endsWith("\u0447\u044C"))return D(e);let t=this.tryImperativeLookup(e);if(t)return t;let r=this.tryPastTenseNormalization(e);if(r)return r;let n=this.tryPresentTenseNormalization(e);if(n)return n;let i=this.tryGenericImperativeNormalization(e);return i||D(e)}tryImperativeLookup(e){return Wi.has(e)?v(Wi.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):null}tryGenericImperativeNormalization(e){return e.endsWith("\u0439\u0442\u0435")&&e.length>5?v(e.slice(0,-3)+"\u0442\u044C",.8,{removedSuffixes:["\u0439\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0438\u0442\u0435")&&e.length>5?v(e.slice(0,-3)+"\u0438\u0442\u044C",.8,{removedSuffixes:["\u0438\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0439")&&e.length>3?v(e.slice(0,-1)+"\u0442\u044C",.75,{removedSuffixes:["\u0439"],conjugationType:"imperative"}):e.endsWith("\u0438")&&e.length>3?v(e+"\u0442\u044C",.7,{removedSuffixes:["\u0438\u2192\u0438\u0442\u044C"],conjugationType:"imperative"}):null}tryPastTenseNormalization(e){return e.endsWith("\u0430\u043B\u0430")&&e.length>4?v(e.slice(0,-3)+"\u0430\u0442\u044C",.85,{removedSuffixes:["\u0430\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0430")&&e.length>4?v(e.slice(0,-3)+"\u0438\u0442\u044C",.85,{removedSuffixes:["\u0438\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0435\u043B\u043E")&&e.length>4?v(e.slice(0,-3)+"\u0435\u0442\u044C",.82,{removedSuffixes:["\u0435\u043B\u043E"],conjugationType:"past"}):e.endsWith("\u0430\u0431\u043E")&&e.length>4?v(e.slice(0,-3)+"\u0430\u0442\u044C",.82,{removedSuffixes:["\u0430\u0431\u043E"],conjugationType:"past"}):e.endsWith("\u0430\u043B\u0438")&&e.length>4?v(e.slice(0,-3)+"\u0430\u0442\u044C",.85,{removedSuffixes:["\u0430\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0438")&&e.length>4?v(e.slice(0,-3)+"\u0438\u0442\u044C",.85,{removedSuffixes:["\u0438\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0430\u043B")&&e.length>3?v(e.slice(0,-2)+"\u0430\u0442\u044C",.82,{removedSuffixes:["\u0430\u043B"],conjugationType:"past"}):e.endsWith("\u0438\u043B")&&e.length>3?v(e.slice(0,-2)+"\u0438\u0442\u044C",.82,{removedSuffixes:["\u0438\u043B"],conjugationType:"past"}):null}tryPresentTenseNormalization(e){return e.endsWith("\u0438\u0448\u044C")&&e.length>4?v(e.slice(0,-3)+"\u0438\u0442\u044C",.8,{removedSuffixes:["\u0438\u0448\u044C"],conjugationType:"present"}):e.endsWith("\u0438\u0442")&&e.length>3?v(e.slice(0,-2)+"\u0438\u0442\u044C",.78,{removedSuffixes:["\u0438\u0442"],conjugationType:"present"}):e.endsWith("\u0438\u043C")&&e.length>3?v(e.slice(0,-2)+"\u0438\u0442\u044C",.78,{removedSuffixes:["\u0438\u043C"],conjugationType:"present"}):e.endsWith("\u044F\u0442")&&e.length>3?v(e.slice(0,-2)+"\u0438\u0442\u044C",.78,{removedSuffixes:["\u044F\u0442"],conjugationType:"present"}):e.endsWith("\u0435\u0448\u044C")&&e.length>4?v(e.slice(0,-3)+"\u0430\u0442\u044C",.75,{removedSuffixes:["\u0435\u0448\u044C"],conjugationType:"present"}):e.endsWith("\u0435\u0442")&&e.length>3?v(e.slice(0,-2)+"\u0430\u0442\u044C",.72,{removedSuffixes:["\u0435\u0442"],conjugationType:"present"}):e.endsWith("\u0435\u043C")&&e.length>3?v(e.slice(0,-2)+"\u0430\u0442\u044C",.72,{removedSuffixes:["\u0435\u043C"],conjugationType:"present"}):e.endsWith("\u044E\u0442")&&e.length>3?v(e.slice(0,-2)+"\u0430\u0442\u044C",.75,{removedSuffixes:["\u044E\u0442"],conjugationType:"present"}):e.endsWith("\u0443\u0442")&&e.length>3?v(e.slice(0,-2)+"\u0430\u0442\u044C",.72,{removedSuffixes:["\u0443\u0442"],conjugationType:"present"}):null}},Mh=new qi}}),Dc={};k(Dc,{russianProfile:()=>jt});var jt,kr=h({"src/generators/profiles/russian.ts"(){"use strict";jt={code:"ru",name:"Russian",nativeName:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",direction:"ltr",script:"cyrillic",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0,suffixes:["\u0442\u044C","\u0442\u044C\u0441\u044F","\u0438\u0442\u044C","\u0438\u0442\u044C\u0441\u044F","\u0430\u0442\u044C","\u0430\u0442\u044C\u0441\u044F","\u0435\u0442\u044C","\u0435\u0442\u044C\u0441\u044F"]},references:{me:"\u044F",it:"\u044D\u0442\u043E",you:"\u0442\u044B",result:"\u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442",event:"\u0441\u043E\u0431\u044B\u0442\u0438\u0435",target:"\u0446\u0435\u043B\u044C",body:"body"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u043C\u043E\u0439",it:"\u0435\u0433\u043E",you:"\u0442\u0432\u043E\u0439"},keywords:{\u043C\u043E\u0439:"me",\u043C\u043E\u044F:"me",\u043C\u043E\u0451:"me",\u043C\u043E\u0438:"me",\u0442\u0432\u043E\u0439:"you",\u0442\u0432\u043E\u044F:"you",\u0442\u0432\u043E\u0451:"you",\u0442\u0432\u043E\u0438:"you",\u0435\u0433\u043E:"it",\u0435\u0451:"it"}},roleMarkers:{destination:{primary:"\u0432",alternatives:["\u043D\u0430","\u043A"],position:"before"},source:{primary:"\u0438\u0437",alternatives:["\u043E\u0442","\u0441"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0441",alternatives:["\u0441\u043E"],position:"before"}},keywords:{toggle:{primary:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438"],normalized:"toggle",form:"infinitive"},add:{primary:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C",alternatives:["\u0434\u043E\u0431\u0430\u0432\u044C"],normalized:"add",form:"infinitive"},remove:{primary:"\u0443\u0434\u0430\u043B\u0438\u0442\u044C",alternatives:["\u0443\u0434\u0430\u043B\u0438","\u0443\u0431\u0440\u0430\u0442\u044C","\u0443\u0431\u0435\u0440\u0438"],normalized:"remove",form:"infinitive"},put:{primary:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C","\u0432\u0441\u0442\u0430\u0432\u044C"],normalized:"put",form:"infinitive"},append:{primary:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C_\u0432_\u043A\u043E\u043D\u0435\u0446",alternatives:["\u0434\u043E\u043F\u0438\u0441\u0430\u0442\u044C"],normalized:"append",form:"infinitive"},prepend:{primary:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C_\u0432_\u043D\u0430\u0447\u0430\u043B\u043E",normalized:"prepend",form:"infinitive"},take:{primary:"\u0432\u0437\u044F\u0442\u044C",alternatives:["\u0432\u043E\u0437\u044C\u043C\u0438"],normalized:"take",form:"infinitive"},make:{primary:"\u0441\u043E\u0437\u0434\u0430\u0442\u044C",alternatives:["\u0441\u043E\u0437\u0434\u0430\u0439"],normalized:"make",form:"infinitive"},clone:{primary:"\u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u043A\u043B\u043E\u043D\u0438\u0440\u0443\u0439"],normalized:"clone",form:"infinitive"},swap:{primary:"\u043F\u043E\u043C\u0435\u043D\u044F\u0442\u044C",alternatives:["\u043F\u043E\u043C\u0435\u043D\u044F\u0439"],normalized:"swap",form:"infinitive"},morph:{primary:"\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0439"],normalized:"morph",form:"infinitive"},set:{primary:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",alternatives:["\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u044C","\u0437\u0430\u0434\u0430\u0439"],normalized:"set",form:"infinitive"},get:{primary:"\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u0443\u0447\u0438"],normalized:"get",form:"infinitive"},increment:{primary:"\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C",alternatives:["\u0443\u0432\u0435\u043B\u0438\u0447\u044C"],normalized:"increment",form:"infinitive"},decrement:{primary:"\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C",alternatives:["\u0443\u043C\u0435\u043D\u044C\u0448\u0438"],normalized:"decrement",form:"infinitive"},log:{primary:"\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C",alternatives:["\u0437\u0430\u043F\u0438\u0448\u0438"],normalized:"log",form:"infinitive"},show:{primary:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"],normalized:"show",form:"infinitive"},hide:{primary:"\u0441\u043A\u0440\u044B\u0442\u044C",alternatives:["\u0441\u043A\u0440\u043E\u0439","\u0441\u043F\u0440\u044F\u0442\u0430\u0442\u044C","\u0441\u043F\u0440\u044F\u0447\u044C"],normalized:"hide",form:"infinitive"},transition:{primary:"\u0430\u043D\u0438\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0430\u043D\u0438\u043C\u0438\u0440\u0443\u0439"],normalized:"transition",form:"infinitive"},on:{primary:"\u043F\u0440\u0438",normalized:"on"},trigger:{primary:"\u0438\u043D\u0438\u0446\u0438\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C","\u0437\u0430\u043F\u0443\u0441\u0442\u0438"],normalized:"trigger",form:"infinitive"},send:{primary:"\u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",alternatives:["\u043E\u0442\u043F\u0440\u0430\u0432\u044C"],normalized:"send",form:"infinitive"},focus:{primary:"\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u0443\u0439","\u0444\u043E\u043A\u0443\u0441"],normalized:"focus",form:"infinitive"},blur:{primary:"\u0440\u0430\u0437\u043C\u044B\u0442\u044C",alternatives:["\u0440\u0430\u0437\u043C\u043E\u0439"],normalized:"blur",form:"infinitive"},click:{primary:"\u043A\u043B\u0438\u043A",alternatives:["\u043A\u043B\u0438\u043A\u0435","\u043D\u0430\u0436\u0430\u0442\u0438\u0438"],normalized:"click"},hover:{primary:"\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0438",alternatives:["\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0435"],normalized:"hover"},submit:{primary:"\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0435",alternatives:["\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430"],normalized:"submit"},input:{primary:"\u0432\u0432\u043E\u0434\u0435",alternatives:["\u0432\u0432\u043E\u0434"],normalized:"input"},change:{primary:"\u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0438",alternatives:["\u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435"],normalized:"change"},go:{primary:"\u043F\u0435\u0440\u0435\u0439\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u0438\u0434\u0442\u0438","\u0438\u0434\u0438"],normalized:"go",form:"infinitive"},wait:{primary:"\u0436\u0434\u0430\u0442\u044C",alternatives:["\u0436\u0434\u0438","\u043F\u043E\u0434\u043E\u0436\u0434\u0438"],normalized:"wait",form:"infinitive"},fetch:{primary:"\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C",alternatives:["\u0437\u0430\u0433\u0440\u0443\u0437\u0438"],normalized:"fetch",form:"infinitive"},settle:{primary:"\u0441\u0442\u0430\u0431\u0438\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C",normalized:"settle",form:"infinitive"},if:{primary:"\u0435\u0441\u043B\u0438",normalized:"if"},when:{primary:"\u043A\u043E\u0433\u0434\u0430",normalized:"when"},where:{primary:"\u0433\u0434\u0435",normalized:"where"},else:{primary:"\u0438\u043D\u0430\u0447\u0435",normalized:"else"},repeat:{primary:"\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",alternatives:["\u043F\u043E\u0432\u0442\u043E\u0440\u0438"],normalized:"repeat",form:"infinitive"},for:{primary:"\u0434\u043B\u044F",alternatives:["\u043A\u0430\u0436\u0434\u044B\u0439"],normalized:"for"},while:{primary:"\u043F\u043E\u043A\u0430",normalized:"while"},continue:{primary:"\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C",alternatives:["\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438"],normalized:"continue",form:"infinitive"},halt:{primary:"\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",alternatives:["\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0441\u044C","\u0441\u0442\u043E\u043F"],normalized:"halt",form:"infinitive"},throw:{primary:"\u0431\u0440\u043E\u0441\u0438\u0442\u044C",alternatives:["\u0431\u0440\u043E\u0441\u044C"],normalized:"throw",form:"infinitive"},call:{primary:"\u0432\u044B\u0437\u0432\u0430\u0442\u044C",alternatives:["\u0432\u044B\u0437\u043E\u0432\u0438"],normalized:"call",form:"infinitive"},return:{primary:"\u0432\u0435\u0440\u043D\u0443\u0442\u044C",alternatives:["\u0432\u0435\u0440\u043D\u0438"],normalized:"return",form:"infinitive"},then:{primary:"\u0437\u0430\u0442\u0435\u043C",alternatives:["\u043F\u043E\u0442\u043E\u043C","\u0442\u043E\u0433\u0434\u0430"],normalized:"then"},and:{primary:"\u0438",normalized:"and"},end:{primary:"\u043A\u043E\u043D\u0435\u0446",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E",alternatives:["async"],normalized:"async"},tell:{primary:"\u0441\u043A\u0430\u0437\u0430\u0442\u044C",alternatives:["\u0441\u043A\u0430\u0436\u0438"],normalized:"tell",form:"infinitive"},default:{primary:"\u043F\u043E_\u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",normalized:"default"},init:{primary:"\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0439"],normalized:"init",form:"infinitive"},behavior:{primary:"\u043F\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u0435",normalized:"behavior"},install:{primary:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C_\u043F\u0430\u043A\u0435\u0442",normalized:"install",form:"infinitive"},measure:{primary:"\u0438\u0437\u043C\u0435\u0440\u0438\u0442\u044C",alternatives:["\u0438\u0437\u043C\u0435\u0440\u044C"],normalized:"measure",form:"infinitive"},beep:{primary:"\u0437\u0432\u0443\u043A",normalized:"beep"},break:{primary:"\u043F\u0440\u0435\u0440\u0432\u0430\u0442\u044C",normalized:"break"},copy:{primary:"\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",normalized:"copy"},exit:{primary:"\u0432\u044B\u0439\u0442\u0438",normalized:"exit"},pick:{primary:"\u0432\u044B\u0431\u0440\u0430\u0442\u044C",normalized:"pick"},render:{primary:"\u043E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C",normalized:"render"},into:{primary:"\u0432",alternatives:["\u0432\u043E"],normalized:"into"},before:{primary:"\u0434\u043E",alternatives:["\u043F\u0435\u0440\u0435\u0434"],normalized:"before"},after:{primary:"\u043F\u043E\u0441\u043B\u0435",normalized:"after"},until:{primary:"\u043F\u043E\u043A\u0430_\u043D\u0435",normalized:"until"},event:{primary:"\u0441\u043E\u0431\u044B\u0442\u0438\u0435",normalized:"event"},from:{primary:"\u0438\u0437",alternatives:["\u043E\u0442","\u0441"],normalized:"from"}},eventHandler:{keyword:{primary:"\u043F\u0440\u0438",normalized:"on"},sourceMarker:{primary:"\u043D\u0430",alternatives:["\u0432","\u043F\u0440\u0438"],position:"before"},eventMarker:{primary:"\u043F\u0440\u0438",position:"before"},temporalMarkers:["\u043A\u043E\u0433\u0434\u0430","\u0435\u0441\u043B\u0438"]}}}}),Tc={};k(Tc,{RussianTokenizer:()=>$i,russianTokenizer:()=>Vi});var Sc,Bc,$i,Vi,Fc=h({"src/tokenizers/russian.ts"(){"use strict";S(),Wh(),kr(),I(),M(),cu(),ye(),Sc=new Set(["\u0432","\u0432\u043E","\u043D\u0430","\u0441","\u0441\u043E","\u043A","\u043A\u043E","\u043E","\u043E\u0431","\u043E\u0431\u043E","\u0443","\u043E\u0442","\u0434\u043E","\u0438\u0437","\u0437\u0430","\u043F\u043E","\u043F\u043E\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043F\u0435\u0440\u0435\u0434\u043E","\u043C\u0435\u0436\u0434\u0443","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u0434\u043B\u044F","\u043F\u0440\u0438","\u043F\u0440\u043E","\u043F\u043E\u0441\u043B\u0435","\u0432\u043E\u043A\u0440\u0443\u0433","\u043F\u0440\u043E\u0442\u0438\u0432","\u0432\u043C\u0435\u0441\u0442\u043E","\u043A\u0440\u043E\u043C\u0435","\u0441\u0440\u0435\u0434\u0438"]),Bc=[{native:"\u0438\u0441\u0442\u0438\u043D\u0430",normalized:"true"},{native:"\u043F\u0440\u0430\u0432\u0434\u0430",normalized:"true"},{native:"\u043B\u043E\u0436\u044C",normalized:"false"},{native:"null",normalized:"null"},{native:"\u043D\u0435\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E",normalized:"undefined"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u044B",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"s"},{native:"\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"ms"},{native:"\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B",normalized:"ms"},{native:"\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"ms"},{native:"\u043C\u0438\u043D\u0443\u0442\u0430",normalized:"m"},{native:"\u043C\u0438\u043D\u0443\u0442\u044B",normalized:"m"},{native:"\u043C\u0438\u043D\u0443\u0442",normalized:"m"},{native:"\u0447\u0430\u0441",normalized:"h"},{native:"\u0447\u0430\u0441\u0430",normalized:"h"},{native:"\u0447\u0430\u0441\u043E\u0432",normalized:"h"},{native:"\u043F\u0435\u0440\u0432\u0430\u044F",normalized:"first"},{native:"\u043F\u0435\u0440\u0432\u043E\u0435",normalized:"first"},{native:"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F",normalized:"last"},{native:"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435",normalized:"last"},{native:"\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F",normalized:"next"},{native:"\u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F",normalized:"previous"},{native:"\u043F\u0443\u0441\u0442\u0430\u044F",normalized:"empty"},{native:"\u043F\u0443\u0441\u0442\u043E\u0435",normalized:"empty"},{native:"\u043C\u043E\u044F",normalized:"my"},{native:"\u043C\u043E\u0451",normalized:"my"},{native:"\u043C\u043E\u0438",normalized:"my"}],$i=class extends j{constructor(){super(),this.language="ru",this.direction="ltr",this.initializeKeywordsFromProfile(jt,Bc),this.setNormalizer(new qi),this.registerExtractors([...O(),...Cf(),new L,new P,new le,new _,new R])}classifyToken(e){let t=e.toLowerCase();return Sc.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}},Vi=new $i}}),Pc={};k(Pc,{swahiliProfile:()=>tt});var tt,_t=h({"src/generators/profiles/swahili.ts"(){"use strict";tt={code:"sw",name:"Swahili",nativeName:"Kiswahili",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"mimi",it:"hiyo",you:"wewe",result:"matokeo",event:"tukio",target:"lengo",body:"mwili"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"yangu",it:"yake",you:"yako"},keywords:{wangu:"me",yangu:"me",langu:"me",changu:"me",wako:"you",yako:"you",lako:"you",chako:"you",wake:"it",yake:"it",lake:"it",chake:"it"}},roleMarkers:{destination:{primary:"kwenye",alternatives:["kwa"],position:"before"},source:{primary:"kutoka",position:"before"},patient:{primary:"",position:"before"},style:{primary:"na",position:"before"}},keywords:{toggle:{primary:"badilisha",normalized:"toggle"},add:{primary:"ongeza",normalized:"add"},remove:{primary:"ondoa",alternatives:["futa","toa"],normalized:"remove"},put:{primary:"weka",alternatives:["tia"],normalized:"put"},append:{primary:"ambatanisha",normalized:"append"},prepend:{primary:"tanguliza",normalized:"prepend"},take:{primary:"chukua",normalized:"take"},make:{primary:"tengeneza",alternatives:["unda"],normalized:"make"},clone:{primary:"nakili",alternatives:["rudufu"],normalized:"clone"},swap:{primary:"badilishana",alternatives:["badalisha"],normalized:"swap"},morph:{primary:"geuza",alternatives:["badilisha umbo"],normalized:"morph"},set:{primary:"seti",normalized:"set"},get:{primary:"pata",alternatives:["pokea"],normalized:"get"},increment:{primary:"ongezeko",normalized:"increment"},decrement:{primary:"punguza",normalized:"decrement"},log:{primary:"andika",alternatives:["rekodi"],normalized:"log"},show:{primary:"onyesha",normalized:"show"},hide:{primary:"ficha",alternatives:["mficho"],normalized:"hide"},transition:{primary:"hamisha",alternatives:["animisha"],normalized:"transition"},on:{primary:"unapo",alternatives:["kwenye"],normalized:"on"},trigger:{primary:"chochea",normalized:"trigger"},send:{primary:"tuma",alternatives:["peleka"],normalized:"send"},focus:{primary:"lenga",alternatives:["angazia"],normalized:"focus"},blur:{primary:"blur",normalized:"blur"},go:{primary:"nenda",alternatives:["enda","elekea"],normalized:"go"},wait:{primary:"subiri",alternatives:["ngoja"],normalized:"wait"},fetch:{primary:"leta",alternatives:["pakia"],normalized:"fetch"},settle:{primary:"tulia",alternatives:["imarika"],normalized:"settle"},if:{primary:"kama",alternatives:["ikiwa"],normalized:"if"},when:{primary:"wakati",normalized:"when"},where:{primary:"wapi",normalized:"where"},else:{primary:"vinginevyo",alternatives:["sivyo"],normalized:"else"},repeat:{primary:"rudia",normalized:"repeat"},for:{primary:"kwa",normalized:"for"},while:{primary:"kadri",normalized:"while"},continue:{primary:"endelea",normalized:"continue"},halt:{primary:"simama",alternatives:["acha"],normalized:"halt"},throw:{primary:"tupa",normalized:"throw"},call:{primary:"ita",normalized:"call"},return:{primary:"rudisha",alternatives:["rejea"],normalized:"return"},then:{primary:"kisha",alternatives:["halafu","baadaye"],normalized:"then"},and:{primary:"na",alternatives:["pia","vilevile"],normalized:"and"},end:{primary:"mwisho",alternatives:["maliza","tamati"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"isiyo sawia",normalized:"async"},tell:{primary:"sema",alternatives:["ambia"],normalized:"tell"},default:{primary:"chaguo-msingi",normalized:"default"},init:{primary:"anzisha",alternatives:["anza"],normalized:"init"},behavior:{primary:"tabia",normalized:"behavior"},install:{primary:"sakinisha",normalized:"install"},measure:{primary:"pima",normalized:"measure"},beep:{primary:"lia",normalized:"beep"},break:{primary:"vunja",normalized:"break"},copy:{primary:"nakala",normalized:"copy"},exit:{primary:"toka",normalized:"exit"},pick:{primary:"chagua",normalized:"pick"},render:{primary:"chora",normalized:"render"},into:{primary:"ndani",normalized:"into"},before:{primary:"kabla",normalized:"before"},after:{primary:"baada",normalized:"after"},until:{primary:"hadi",normalized:"until"},event:{primary:"tukio",normalized:"event"},from:{primary:"kutoka",normalized:"from"}},eventHandler:{keyword:{primary:"unapo",alternatives:["kwenye","kwa","wakati"]},sourceMarker:{primary:"kutoka",position:"before"},conditionalKeyword:{primary:"unapo",alternatives:["anapo","tunapo","mnapo","wanapo"]},eventMarker:{primary:"unapo",alternatives:["kwenye","kwa","wakati"],position:"before"}}}}}),Lc={};k(Lc,{SwahiliTokenizer:()=>Ki,swahiliTokenizer:()=>Hi});var jc,_c,Ki,Hi,Rc=h({"src/tokenizers/swahili.ts"(){"use strict";S(),_t(),I(),M(),Hf(),jc=new Set(["kwa","na","katika","kwenye","kutoka","hadi","mpaka","kabla","baada","wakati","bila","kuhusu","karibu","mbele","nyuma","ndani","nje","juu","chini","kati"]),_c=[{native:"kweli",normalized:"true"},{native:"uongo",normalized:"false"},{native:"null",normalized:"null"},{native:"tupu",normalized:"null"},{native:"haijafafanuliwa",normalized:"undefined"},{native:"wa kwanza",normalized:"first"},{native:"wa mwisho",normalized:"last"},{native:"ifuatayo",normalized:"next"},{native:"iliyotangulia",normalized:"previous"},{native:"karibu",normalized:"closest"},{native:"mzazi",normalized:"parent"},{native:"bonyeza",normalized:"click"},{native:"click",normalized:"click"},{native:"ganti",normalized:"change"},{native:"wasilisha",normalized:"submit"},{native:"bonyeza kitufe",normalized:"keydown"},{native:"sogeza juu",normalized:"mouseover"},{native:"sogeza nje",normalized:"mouseout"},{native:"fifia",normalized:"blur"},{native:"pakia",normalized:"load"},{native:"sukuma",normalized:"scroll"},{native:"input",normalized:"input"},{native:"yangu",normalized:"my"},{native:"wangu",normalized:"my"},{native:"changu",normalized:"my"},{native:"langu",normalized:"my"},{native:"sekunde",normalized:"s"},{native:"millisekunde",normalized:"ms"},{native:"dakika",normalized:"m"},{native:"saa",normalized:"h"},{native:"au",normalized:"or"},{native:"si",normalized:"not"},{native:"ni",normalized:"is"},{native:"ipo",normalized:"exists"},{native:"tupu",normalized:"empty"}],Ki=class extends j{constructor(){super(),this.language="sw",this.direction="ltr",this.initializeKeywordsFromProfile(tt,_c),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractors(Kf()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){let t=e.toLowerCase();return jc.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}},Hi=new Ki}}),Nc={};k(Nc,{thaiProfile:()=>Rt});var Rt,Cr=h({"src/generators/profiles/thai.ts"(){"use strict";Rt={code:"th",name:"Thai",nativeName:"\u0E44\u0E17\u0E22",direction:"ltr",script:"thai",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!1,defaultVerbForm:"base",verb:{position:"second",subjectDrop:!0},references:{me:"\u0E09\u0E31\u0E19",it:"\u0E21\u0E31\u0E19",you:"\u0E04\u0E38\u0E13",result:"\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",event:"\u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C",target:"\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22",body:"\u0E1A\u0E2D\u0E14\u0E35\u0E49"},possessive:{marker:"\u0E02\u0E2D\u0E07",markerPosition:"between",keywords:{\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19:"me",\u0E02\u0E2D\u0E07\u0E1C\u0E21:"me",\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13:"you",\u0E02\u0E2D\u0E07\u0E21\u0E31\u0E19:"it",\u0E02\u0E2D\u0E07\u0E40\u0E02\u0E32:"it",\u0E02\u0E2D\u0E07\u0E40\u0E18\u0E2D:"it"}},roleMarkers:{patient:{primary:"",position:"before"},destination:{primary:"\u0E43\u0E19",alternatives:["\u0E44\u0E1B\u0E22\u0E31\u0E07"],position:"before"},source:{primary:"\u0E08\u0E32\u0E01",position:"before"},style:{primary:"\u0E14\u0E49\u0E27\u0E22",position:"before"},event:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",position:"before"}},keywords:{toggle:{primary:"\u0E2A\u0E25\u0E31\u0E1A",alternatives:[],normalized:"toggle"},add:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21",alternatives:[],normalized:"add"},remove:{primary:"\u0E25\u0E1A",alternatives:["\u0E25\u0E1A\u0E2D\u0E2D\u0E01"],normalized:"remove"},put:{primary:"\u0E43\u0E2A\u0E48",alternatives:["\u0E27\u0E32\u0E07"],normalized:"put"},append:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E17\u0E49\u0E32\u0E22",alternatives:[],normalized:"append"},prepend:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2B\u0E19\u0E49\u0E32",alternatives:[],normalized:"prepend"},take:{primary:"\u0E23\u0E31\u0E1A",alternatives:[],normalized:"take"},make:{primary:"\u0E2A\u0E23\u0E49\u0E32\u0E07",alternatives:[],normalized:"make"},clone:{primary:"\u0E42\u0E04\u0E25\u0E19",alternatives:["\u0E2A\u0E33\u0E40\u0E19\u0E32"],normalized:"clone"},swap:{primary:"\u0E2A\u0E25\u0E31\u0E1A\u0E17\u0E35\u0E48",alternatives:[],normalized:"swap"},morph:{primary:"\u0E41\u0E1B\u0E25\u0E07\u0E23\u0E48\u0E32\u0E07",alternatives:[],normalized:"morph"},set:{primary:"\u0E15\u0E31\u0E49\u0E07",alternatives:["\u0E01\u0E33\u0E2B\u0E19\u0E14"],normalized:"set"},get:{primary:"\u0E23\u0E31\u0E1A\u0E04\u0E48\u0E32",alternatives:[],normalized:"get"},increment:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E04\u0E48\u0E32",alternatives:[],normalized:"increment"},decrement:{primary:"\u0E25\u0E14\u0E04\u0E48\u0E32",alternatives:[],normalized:"decrement"},log:{primary:"\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01",alternatives:[],normalized:"log"},show:{primary:"\u0E41\u0E2A\u0E14\u0E07",alternatives:[],normalized:"show"},hide:{primary:"\u0E0B\u0E48\u0E2D\u0E19",alternatives:[],normalized:"hide"},transition:{primary:"\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E1C\u0E48\u0E32\u0E19",alternatives:[],normalized:"transition"},on:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"],normalized:"on"},trigger:{primary:"\u0E17\u0E23\u0E34\u0E01\u0E40\u0E01\u0E2D\u0E23\u0E4C",alternatives:[],normalized:"trigger"},send:{primary:"\u0E2A\u0E48\u0E07",alternatives:[],normalized:"send"},focus:{primary:"\u0E42\u0E1F\u0E01\u0E31\u0E2A",alternatives:[],normalized:"focus"},blur:{primary:"\u0E40\u0E1A\u0E25\u0E2D",alternatives:[],normalized:"blur"},click:{primary:"\u0E04\u0E25\u0E34\u0E01",normalized:"click"},hover:{primary:"\u0E42\u0E2E\u0E40\u0E27\u0E2D\u0E23\u0E4C",alternatives:["\u0E27\u0E32\u0E07\u0E40\u0E21\u0E32\u0E2A\u0E4C"],normalized:"hover"},submit:{primary:"\u0E22\u0E37\u0E48\u0E19",alternatives:["\u0E2A\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25"],normalized:"submit"},input:{primary:"\u0E1B\u0E49\u0E2D\u0E19",alternatives:["\u0E01\u0E23\u0E2D\u0E01"],normalized:"input"},change:{primary:"\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19",alternatives:["\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07"],normalized:"change"},go:{primary:"\u0E44\u0E1B",alternatives:["\u0E44\u0E1B\u0E17\u0E35\u0E48"],normalized:"go"},wait:{primary:"\u0E23\u0E2D",alternatives:[],normalized:"wait"},fetch:{primary:"\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",alternatives:[],normalized:"fetch"},settle:{primary:"\u0E04\u0E07\u0E17\u0E35\u0E48",alternatives:[],normalized:"settle"},if:{primary:"\u0E16\u0E49\u0E32",alternatives:["\u0E2B\u0E32\u0E01"],normalized:"if"},when:{primary:"\u0E02\u0E13\u0E30\u0E17\u0E35\u0E48",normalized:"when"},where:{primary:"\u0E17\u0E35\u0E48\u0E44\u0E2B\u0E19",normalized:"where"},else:{primary:"\u0E44\u0E21\u0E48\u0E07\u0E31\u0E49\u0E19",alternatives:["\u0E44\u0E21\u0E48\u0E40\u0E0A\u0E48\u0E19\u0E19\u0E31\u0E49\u0E19"],normalized:"else"},repeat:{primary:"\u0E17\u0E33\u0E0B\u0E49\u0E33",alternatives:[],normalized:"repeat"},for:{primary:"\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A",alternatives:[],normalized:"for"},while:{primary:"\u0E43\u0E19\u0E02\u0E13\u0E30\u0E17\u0E35\u0E48",alternatives:[],normalized:"while"},continue:{primary:"\u0E15\u0E48\u0E2D\u0E44\u0E1B",alternatives:[],normalized:"continue"},halt:{primary:"\u0E2B\u0E22\u0E38\u0E14",alternatives:[],normalized:"halt"},throw:{primary:"\u0E42\u0E22\u0E19",alternatives:[],normalized:"throw"},call:{primary:"\u0E40\u0E23\u0E35\u0E22\u0E01",alternatives:[],normalized:"call"},return:{primary:"\u0E04\u0E37\u0E19\u0E04\u0E48\u0E32",alternatives:["\u0E01\u0E25\u0E31\u0E1A"],normalized:"return"},then:{primary:"\u0E41\u0E25\u0E49\u0E27",alternatives:[],normalized:"then"},and:{primary:"\u0E41\u0E25\u0E30",alternatives:[],normalized:"and"},end:{primary:"\u0E08\u0E1A",alternatives:[],normalized:"end"},js:{primary:"\u0E40\u0E08\u0E40\u0E2D\u0E2A",alternatives:["js"],normalized:"js"},async:{primary:"\u0E2D\u0E30\u0E0B\u0E34\u0E07\u0E04\u0E4C",alternatives:[],normalized:"async"},tell:{primary:"\u0E1A\u0E2D\u0E01",alternatives:[],normalized:"tell"},default:{primary:"\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",alternatives:[],normalized:"default"},init:{primary:"\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",alternatives:[],normalized:"init"},behavior:{primary:"\u0E1E\u0E24\u0E15\u0E34\u0E01\u0E23\u0E23\u0E21",alternatives:[],normalized:"behavior"},install:{primary:"\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07",alternatives:[],normalized:"install"},measure:{primary:"\u0E27\u0E31\u0E14",alternatives:[],normalized:"measure"},beep:{primary:"\u0E1A\u0E35\u0E4A\u0E1A",alternatives:[],normalized:"beep"},break:{primary:"\u0E02\u0E31\u0E14\u0E08\u0E31\u0E07\u0E2B\u0E27\u0E30",alternatives:[],normalized:"break"},copy:{primary:"\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",alternatives:[],normalized:"copy"},exit:{primary:"\u0E2D\u0E2D\u0E01",alternatives:[],normalized:"exit"},pick:{primary:"\u0E40\u0E25\u0E37\u0E2D\u0E01",alternatives:[],normalized:"pick"},render:{primary:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",alternatives:[],normalized:"render"},into:{primary:"\u0E43\u0E19",alternatives:[],normalized:"into"},before:{primary:"\u0E01\u0E48\u0E2D\u0E19",alternatives:[],normalized:"before"},after:{primary:"\u0E2B\u0E25\u0E31\u0E07",alternatives:[],normalized:"after"},until:{primary:"\u0E08\u0E19\u0E16\u0E36\u0E07",alternatives:[],normalized:"until"},event:{primary:"\u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C",alternatives:[],normalized:"event"},from:{primary:"\u0E08\u0E32\u0E01",normalized:"from"}},tokenization:{boundaryStrategy:"character"},eventHandler:{keyword:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"],normalized:"on"},sourceMarker:{primary:"\u0E08\u0E32\u0E01",position:"before"},eventMarker:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"],position:"before"},temporalMarkers:["\u0E40\u0E21\u0E37\u0E48\u0E2D","\u0E15\u0E2D\u0E19"]}}}}),Ic={};k(Ic,{ThaiTokenizer:()=>Gi,thaiTokenizer:()=>Ui});var Oc,Gi,Ui,Mc=h({"src/tokenizers/thai.ts"(){"use strict";S(),Cr(),I(),M(),Sf(),Oc=[{native:"\u0E08\u0E23\u0E34\u0E07",normalized:"true"},{native:"\u0E40\u0E17\u0E47\u0E08",normalized:"false"},{native:"\u0E27\u0E48\u0E32\u0E07",normalized:"null"},{native:"\u0E44\u0E21\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14",normalized:"undefined"},{native:"\u0E41\u0E23\u0E01",normalized:"first"},{native:"\u0E2A\u0E38\u0E14\u0E17\u0E49\u0E32\u0E22",normalized:"last"},{native:"\u0E16\u0E31\u0E14\u0E44\u0E1B",normalized:"next"},{native:"\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",normalized:"previous"},{native:"\u0E43\u0E01\u0E25\u0E49\u0E2A\u0E38\u0E14",normalized:"closest"},{native:"\u0E15\u0E49\u0E19\u0E17\u0E32\u0E07",normalized:"parent"},{native:"\u0E04\u0E25\u0E34\u0E01",normalized:"click"},{native:"\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07",normalized:"change"},{native:"\u0E2A\u0E48\u0E07",normalized:"submit"},{native:"\u0E2D\u0E34\u0E19\u0E1E\u0E38\u0E15",normalized:"input"},{native:"\u0E42\u0E2B\u0E25\u0E14",normalized:"load"},{native:"\u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19",normalized:"scroll"},{native:"\u0E40\u0E27\u0E25\u0E32",normalized:"when"},{native:"\u0E44\u0E1B\u0E22\u0E31\u0E07",normalized:"to"},{native:"\u0E14\u0E49\u0E27\u0E22",normalized:"with"},{native:"\u0E41\u0E25\u0E30",normalized:"and"}],Gi=class extends j{constructor(){super(),this.language="th",this.direction="ltr",this.initializeKeywordsFromProfile(Rt,Oc),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractors(Tf()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){return this.isKeyword(e)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith(".")||e.startsWith("#")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith(":")?"identifier":e.startsWith('"')||e.startsWith("'")||/^-?\d/.test(e)?"literal":"identifier"}},Ui=new Gi}}),Wc={};k(Wc,{tagalogProfile:()=>Nt});var Nt,xr=h({"src/generators/profiles/tl.ts"(){"use strict";Nt={code:"tl",name:"Tagalog",nativeName:"Tagalog",direction:"ltr",script:"latin",wordOrder:"VSO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"ako",it:"ito",you:"ikaw",result:"resulta",event:"pangyayari",target:"target",body:"body"},possessive:{marker:"ng",markerPosition:"between",keywords:{ko:"me",akin:"me",aking:"me",mo:"you",iyo:"you",niya:"it",nito:"it",kaniya:"it"}},roleMarkers:{destination:{primary:"sa",position:"before"},source:{primary:"mula_sa",position:"before"},patient:{primary:"",position:"before"},style:{primary:"nang",position:"before"}},keywords:{toggle:{primary:"palitan",alternatives:["itoggle"],normalized:"toggle"},add:{primary:"idagdag",alternatives:["magdagdag"],normalized:"add"},remove:{primary:"alisin",alternatives:["tanggalin"],normalized:"remove"},put:{primary:"ilagay",alternatives:["maglagay"],normalized:"put"},append:{primary:"idagdag_sa_dulo",normalized:"append"},prepend:{primary:"idagdag_sa_simula",normalized:"prepend"},take:{primary:"kumuha",normalized:"take"},make:{primary:"gumawa",alternatives:["lumikha"],normalized:"make"},clone:{primary:"i-clone",normalized:"clone"},swap:{primary:"palitan_pwesto",alternatives:["magpalit"],normalized:"swap"},morph:{primary:"baguhin",normalized:"morph"},set:{primary:"itakda",alternatives:["magtakda"],normalized:"set"},get:{primary:"kunin",normalized:"get"},increment:{primary:"dagdagan",alternatives:["taasan"],normalized:"increment"},decrement:{primary:"bawasan",alternatives:["ibaba"],normalized:"decrement"},log:{primary:"itala",normalized:"log"},show:{primary:"ipakita",alternatives:["magpakita"],normalized:"show"},hide:{primary:"itago",alternatives:["magtago"],normalized:"hide"},transition:{primary:"lumipat",normalized:"transition"},on:{primary:"kapag",normalized:"on"},trigger:{primary:"palitawin",alternatives:["magpatugtog"],normalized:"trigger"},send:{primary:"ipadala",alternatives:["magpadala"],normalized:"send"},focus:{primary:"ituon",normalized:"focus"},blur:{primary:"alisin_tuon",normalized:"blur"},go:{primary:"pumunta",alternatives:["punta"],normalized:"go"},wait:{primary:"maghintay",alternatives:["hintay"],normalized:"wait"},fetch:{primary:"kuhanin_mula",alternatives:["kunin_mula"],normalized:"fetch"},settle:{primary:"magpatahimik",normalized:"settle"},if:{primary:"kung",normalized:"if"},when:{primary:"tuwing",normalized:"when"},where:{primary:"kung_saan",normalized:"where"},else:{primary:"kung_hindi",alternatives:["kundi"],normalized:"else"},repeat:{primary:"ulitin",alternatives:["paulit-ulit"],normalized:"repeat"},for:{primary:"para_sa",normalized:"for"},while:{primary:"habang",normalized:"while"},continue:{primary:"magpatuloy",normalized:"continue"},halt:{primary:"itigil",alternatives:["huminto"],normalized:"halt"},throw:{primary:"ihagis",alternatives:["itapon"],normalized:"throw"},call:{primary:"tawagin",alternatives:["tawagan","tumawag"],normalized:"call"},return:{primary:"ibalik",alternatives:["bumalik"],normalized:"return"},then:{primary:"pagkatapos",alternatives:["saka"],normalized:"then"},and:{primary:"at",normalized:"and"},end:{primary:"wakas",alternatives:["tapos"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"async",normalized:"async"},tell:{primary:"sabihin",alternatives:["magsabi"],normalized:"tell"},default:{primary:"pamantayan",alternatives:["default","unang_halaga"],normalized:"default"},init:{primary:"simulan",alternatives:["magsimula"],normalized:"init"},behavior:{primary:"ugali",alternatives:["kilos"],normalized:"behavior"},install:{primary:"ikabit",alternatives:["mag-install"],normalized:"install"},measure:{primary:"sukatin",normalized:"measure"},beep:{primary:"tunog",normalized:"beep"},break:{primary:"putulin",normalized:"break"},copy:{primary:"kopyahin",normalized:"copy"},exit:{primary:"lumabas",normalized:"exit"},pick:{primary:"pumili",normalized:"pick"},render:{primary:"irender",normalized:"render"},into:{primary:"sa",normalized:"into"},before:{primary:"bago",normalized:"before"},after:{primary:"matapos",normalized:"after"},until:{primary:"hanggang",normalized:"until"},event:{primary:"pangyayari",normalized:"event"},from:{primary:"mula",alternatives:["galing"],normalized:"from"}},eventHandler:{keyword:{primary:"kapag",normalized:"on"},sourceMarker:{primary:"mula_sa",alternatives:["galing_sa"],position:"before"},eventMarker:{primary:"kapag",position:"before"}}}}});function qh(e){let t=e.charCodeAt(0);return t>=65&&t<=90||t>=97&&t<=122?!0:e==="\xF1"||e==="\xD1"}function $h(e){for(let t of e)if(qh(t))return!0;return!1}function Vh(e){let t=e.toLowerCase();if(t.length<5)return null;let r=0;for(let n=0;n<t.length;n++){let i=t[n];if(!"aeiou".includes(i))r=n+1;else break}if(r===0)return null;for(let n of Vc){let i=r;if(t.slice(i,i+n.length)===n){let a=t.slice(0,r)+t.slice(i+n.length);if(a.length>=3)return{stem:a,infix:n}}}return null}function Kh(e){let t=e.toLowerCase();if(t.length<4)return{stem:t,reduplicated:!1};let r=t[0],n=t[1];if(!"aeiou".includes(r)&&"aeiou".includes(n)){let i=t.slice(2);if(i.length>=2&&i[0]===r)return{stem:i,reduplicated:!0}}return{stem:t,reduplicated:!1}}var qc,$c,Vc,Kc,Hc,Gc,Hh=h({"src/tokenizers/morphology/tagalog-normalizer.ts"(){"use strict";H(),qc=[{pattern:"magpapa",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"magpa",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"ipang",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"ipag",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"nagpa",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3}],$c=[{pattern:"mag",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"nag",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"mang",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"nang",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"ma",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"na",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"i",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"pa",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3}],Vc=["um","in"],Kc=[{pattern:"hin",confidencePenalty:.18,type:"patient-focus"},{pattern:"in",confidencePenalty:.18,type:"patient-focus"},{pattern:"han",confidencePenalty:.18,type:"locative-focus"},{pattern:"an",confidencePenalty:.18,type:"locative-focus"}],Hc=class{constructor(){this.language="tl"}isNormalizable(e){return!(!$h(e)||e.length<2)}normalize(e){let t=e.toLowerCase(),r=1,n=[],i=[],a=[];for(let l of qc)if(t.startsWith(l.pattern)){let c=t.slice(l.pattern.length),p=l.minRemaining??2;if(c.length>=p){t=c,r-=l.confidencePenalty,n.push(l.pattern),a.push(`prefix:${l.pattern}`);break}}if(n.length===0){for(let l of $c)if(t.startsWith(l.pattern)){let c=t.slice(l.pattern.length),p=l.minRemaining??2;if(c.length>=p){t=c,r-=l.confidencePenalty,n.push(l.pattern),a.push(`prefix:${l.pattern}`);break}}}let o=Kh(t);o.reduplicated&&o.stem.length>=2&&(t=o.stem,r-=.1,a.push("reduplication:CV"));let u=Vh(t),s=!1;if(u&&u.stem.length>=2&&(t=u.stem,r-=.18,a.push(`infix:${u.infix}`),s=!0),!s){for(let l of Kc)if(t.endsWith(l.pattern)){let c=t.slice(0,-l.pattern.length);if(c.length>=2){t=c,r-=l.confidencePenalty,i.push(l.pattern),a.push(`suffix:${l.pattern}`);break}}}return r=Math.max(.5,r),n.length===0&&i.length===0&&a.length===0?D(e):v(t,r,{removedPrefixes:n,removedSuffixes:i,appliedRules:a})}},Gc=new Hc}}),Uc={};k(Uc,{TagalogTokenizer:()=>Xi,tagalogTokenizer:()=>Yi});var Xc,Xi,Yi,Yc=h({"src/tokenizers/tl.ts"(){"use strict";S(),xr(),Hh(),I(),M(),Nf(),Xc=[{native:"totoo",normalized:"true"},{native:"mali",normalized:"false"},{native:"wala",normalized:"null"},{native:"hindi_tinukoy",normalized:"undefined"},{native:"una",normalized:"first"},{native:"huli",normalized:"last"},{native:"susunod",normalized:"next"},{native:"nakaraan",normalized:"previous"},{native:"pinakamalapit",normalized:"closest"},{native:"magulang",normalized:"parent"},{native:"pindot",normalized:"click"},{native:"pagbabago",normalized:"change"},{native:"isumite",normalized:"submit"},{native:"input",normalized:"input"},{native:"karga",normalized:"load"},{native:"mag_scroll",normalized:"scroll"}],Xi=class extends j{constructor(){super(),this.language="tl",this.direction="ltr",this.initializeKeywordsFromProfile(Nt,Xc),this.setNormalizer(Gc),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractors(Rf()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){return this.isKeyword(e)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith(".")||e.startsWith("#")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith(":")?"identifier":e.startsWith('"')||e.startsWith("'")||/^-?\d/.test(e)?"literal":"identifier"}},Yi=new Xi}});function Gh(e){let t=e.charCodeAt(0);return t>=65&&t<=90||t>=97&&t<=122?!0:"\xE7\xC7\u011F\u011E\u0131\u0130\xF6\xD6\u015F\u015E\xFC\xDC".includes(e)}function Uh(e){for(let t of e)if(Gh(t))return!0;return!1}function Ji(e){return"a\u0131ouAIOU".includes(e)}function Jc(e){return"ei\xF6\xFCE\u0130\xD6\xDC".includes(e)}function Qc(e){return Ji(e)||Jc(e)}function Xh(e){for(let t=e.length-1;t>=0;t--)if(Qc(e[t]))return e[t];return null}function Yh(e,t){let r=Xh(e);if(!r)return!0;let n=t.split("").find(i=>Qc(i));return n?Ji(r)?Ji(n):Jc(n):!0}var Zc,Qi,Jh,Qh=h({"src/tokenizers/morphology/turkish-normalizer.ts"(){"use strict";H(),Zc=[{pattern:"iyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"uyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"iyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"eceksiniz",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaks\u0131n\u0131z",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"eceksin",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaks\u0131n",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"ece\u011Fiz",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"aca\u011F\u0131z",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"ece\u011Fim",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"aca\u011F\u0131m",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"ecekler",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaklar",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"mi\u015Fsiniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015Fs\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015Fs\xFCn\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fsunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fsin",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015Fs\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015Fs\xFCn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fsun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fiz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015F\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015F\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015F\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015F\xFCm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015Flar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015Fler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Flar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"diniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCn\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tiniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCn\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"diler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131lar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dular",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tiler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131lar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tular",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"din",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tin",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131k",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"duk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131k",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tuk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\xFCm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"dum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\xFCm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"iyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"uyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"ecek",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"acak",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"mi\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mu\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"di",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\u0131",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\xFC",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"du",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"ti",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\u0131",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\xFC",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tu",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mek",confidence:.88,conjugationType:"dictionary",minStemLength:2},{pattern:"mak",confidence:.88,conjugationType:"dictionary",minStemLength:2},{pattern:"eyelim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"ayal\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"eyim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"ay\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"elim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"al\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"melisiniz",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131s\u0131n\u0131z",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"melisin",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131s\u0131n",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meliyiz",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131y\u0131z",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meliyim",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131y\u0131m",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"meliler",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131lar",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meli",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"ebiliyor",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"abiliyor",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"ebilir",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"abilir",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"ebildi",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"abildi",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"ebilmek",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"abilmek",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"iniz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"\u0131n\u0131z",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"\xFCn\xFCz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"unuz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"in",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"\u0131n",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"\xFCn",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"un",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"ildi",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\u0131ld\u0131",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\xFCld\xFC",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"uldu",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ilir",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\u0131l\u0131r",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\xFCl\xFCr",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ulur",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"tirmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"t\u0131rmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"t\xFCrmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"turmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"dirmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"d\u0131rmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"d\xFCrmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"durmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"miyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"muyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"miyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"muyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"medi",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"mad\u0131",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"me",confidence:.75,conjugationType:"negative",minStemLength:3},{pattern:"ma",confidence:.75,conjugationType:"negative",minStemLength:3}],Qi=class{constructor(){this.language="tr"}isNormalizable(e){return!(!Uh(e)||e.length<3)}normalize(e){let t=e.toLowerCase();for(let r of Zc)if(t.endsWith(r.pattern)){let n=t.slice(0,-r.pattern.length),i=r.minStemLength??2;if(n.length<i)continue;if(!Yh(n,r.pattern)){let o=r.confidence*.9,u={removedSuffixes:[r.pattern]};return r.conjugationType&&(u.conjugationType=r.conjugationType),v(n,o,u)}let a={removedSuffixes:[r.pattern]};return r.conjugationType&&(a.conjugationType=r.conjugationType),v(n,r.confidence,a)}return D(e)}},Jh=new Qi}}),ep={};k(ep,{turkishProfile:()=>rt});var rt,It=h({"src/generators/profiles/turkish.ts"(){"use strict";rt={code:"tr",name:"Turkish",nativeName:"T\xFCrk\xE7e",direction:"ltr",script:"latin",wordOrder:"SOV",markingStrategy:"case-suffix",usesSpaces:!0,verb:{position:"end",suffixes:["mek","mak","yor","di","mi\u015F"],subjectDrop:!0},references:{me:"ben",it:"o",you:"sen",result:"sonu\xE7",event:"olay",target:"hedef",body:"g\xF6vde"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"benim",it:"onun",you:"senin"},keywords:{benim:"me",senin:"you",onun:"it"}},roleMarkers:{patient:{primary:"i",alternatives:["\u0131","u","\xFC","yi","y\u0131","yu","y\xFC","ni","n\u0131","nu","n\xFC"],position:"after"},destination:{primary:"e",alternatives:["a","ye","ya","ne","na","de","da","te","ta","\u0131n","in","un","\xFCn","n\u0131n","nin","nun","n\xFCn"],position:"after"},source:{primary:"den",alternatives:["dan","ten","tan"],position:"after"},style:{primary:"le",alternatives:["la","yle","yla"],position:"after"},event:{primary:"i",alternatives:["\u0131","u","\xFC"],position:"after"}},keywords:{toggle:{primary:"de\u011Fi\u015Ftir",alternatives:["a\xE7/kapat"],normalized:"toggle"},add:{primary:"ekle",normalized:"add"},remove:{primary:"kald\u0131r",alternatives:["sil"],normalized:"remove"},put:{primary:"koy",normalized:"put"},append:{primary:"ili\u015Ftir",normalized:"append"},prepend:{primary:"ba\u015F\u0131naekle",normalized:"prepend"},take:{primary:"tut",normalized:"take"},make:{primary:"yap",normalized:"make"},clone:{primary:"klonla",normalized:"clone"},swap:{primary:"takas",normalized:"swap"},morph:{primary:"d\xF6n\xFC\u015Ft\xFCr",alternatives:["\u015Fekil de\u011Fi\u015Ftir"],normalized:"morph"},set:{primary:"ayarla",alternatives:["belirle"],normalized:"set"},get:{primary:"al",normalized:"get"},increment:{primary:"art\u0131r",normalized:"increment"},decrement:{primary:"azalt",normalized:"decrement"},log:{primary:"kaydet",normalized:"log"},show:{primary:"g\xF6ster",normalized:"show"},hide:{primary:"gizle",normalized:"hide"},transition:{primary:"ge\xE7i\u015F",normalized:"transition"},on:{primary:"\xFCzerinde",alternatives:["zaman"],normalized:"on"},trigger:{primary:"tetikle",normalized:"trigger"},send:{primary:"g\xF6nder",normalized:"send"},focus:{primary:"odak",alternatives:["odaklanma"],normalized:"focus"},blur:{primary:"bulan\u0131k",alternatives:["bulan\u0131kl\u0131k","bulanik"],normalized:"blur"},click:{primary:"t\u0131klama",alternatives:["t\u0131kla","tiklama","t\u0131k","tik"],normalized:"click"},hover:{primary:"\xFCzerine gelme",alternatives:["\xFCzerinde gezinme"],normalized:"hover"},submit:{primary:"g\xF6nderme",normalized:"submit"},input:{primary:"giri\u015F",alternatives:["girdi","giris"],normalized:"input"},change:{primary:"de\u011Fi\u015Fiklik",alternatives:["de\u011Fi\u015Fim","degisim"],normalized:"change"},go:{primary:"git",normalized:"go"},wait:{primary:"bekle",normalized:"wait"},fetch:{primary:"getir",normalized:"fetch"},settle:{primary:"sabitlen",normalized:"settle"},if:{primary:"e\u011Fer",normalized:"if"},when:{primary:"iken",alternatives:["durumunda","oldu\u011Funda"],normalized:"when"},where:{primary:"nerede",normalized:"where"},else:{primary:"yoksa",normalized:"else"},repeat:{primary:"tekrarla",normalized:"repeat"},for:{primary:"i\xE7in",normalized:"for"},while:{primary:"s\xFCresince",normalized:"while"},continue:{primary:"devam",normalized:"continue"},halt:{primary:"durdur",normalized:"halt"},throw:{primary:"f\u0131rlat",normalized:"throw"},call:{primary:"\xE7a\u011F\u0131r",normalized:"call"},return:{primary:"d\xF6n",normalized:"return"},then:{primary:"ard\u0131ndan",alternatives:["daha sonra","ardindan"],normalized:"then"},and:{primary:"ve",alternatives:["ayr\u0131ca","hem de"],normalized:"and"},or:{primary:"veya",normalized:"or"},not:{primary:"de\u011Fil",alternatives:["degil"],normalized:"not"},end:{primary:"son",alternatives:["biti\u015F","bitti"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asenkron",normalized:"async"},tell:{primary:"s\xF6yle",normalized:"tell"},default:{primary:"varsay\u0131lan",normalized:"default"},init:{primary:"ba\u015Flat",normalized:"init"},behavior:{primary:"davran\u0131\u015F",normalized:"behavior"},install:{primary:"y\xFCkle",alternatives:["kur","y\xFCklemek"],normalized:"install"},measure:{primary:"\xF6l\xE7",normalized:"measure"},beep:{primary:"bip",normalized:"beep"},break:{primary:"dur",normalized:"break"},copy:{primary:"kopyala",normalized:"copy"},exit:{primary:"\xE7\u0131k",normalized:"exit"},pick:{primary:"se\xE7",normalized:"pick"},render:{primary:"render",normalized:"render"},into:{primary:"i\xE7ine",normalized:"into"},before:{primary:"\xF6nce",normalized:"before"},after:{primary:"sonra",normalized:"after"},until:{primary:"kadar",normalized:"until"},event:{primary:"olay",normalized:"event"},from:{primary:"den",alternatives:["dan"],normalized:"from"}},eventHandler:{eventMarker:{primary:"da",alternatives:["de","ta","te"],position:"after"},temporalMarkers:["d\u0131\u011F\u0131nda","di\u011Finde"]}}}}),tp={};k(tp,{TurkishTokenizer:()=>Zi,turkishTokenizer:()=>wr});var rp,np,ip,Zi,wr,ea=h({"src/tokenizers/turkish.ts"(){"use strict";S(),Qh(),It(),I(),M(),Uf(),rp=new Set(["ile","i\xE7in","kadar","gibi","\xF6nce","\xFCzerinde","alt\u0131nda","i\xE7inde","d\u0131\u015F\u0131nda","aras\u0131nda","kar\u015F\u0131","g\xF6re","ra\u011Fmen","do\u011Fru","boyunca"]),np=new Set(["de","da","te","ta","den","dan","ten","tan","e","a","ye","ya","i","\u0131","u","\xFC","in","\u0131n","un","\xFCn","le","la","yle","yla"]),ip=[{native:"do\u011Fru",normalized:"true"},{native:"dogru",normalized:"true"},{native:"yanl\u0131\u015F",normalized:"false"},{native:"yanlis",normalized:"false"},{native:"null",normalized:"null"},{native:"bo\u015F",normalized:"null"},{native:"bos",normalized:"null"},{native:"tan\u0131ms\u0131z",normalized:"undefined"},{native:"tanimsiz",normalized:"undefined"},{native:"ilk",normalized:"first"},{native:"son",normalized:"last"},{native:"sonraki",normalized:"next"},{native:"\xF6nceki",normalized:"previous"},{native:"onceki",normalized:"previous"},{native:"en_yak\u0131n",normalized:"closest"},{native:"en_yakin",normalized:"closest"},{native:"ebeveyn",normalized:"parent"},{native:"fare \xFCzerinde",normalized:"mouseover"},{native:"fare uzerinde",normalized:"mouseover"},{native:"fare d\u0131\u015F\u0131nda",normalized:"mouseout"},{native:"fare disinda",normalized:"mouseout"},{native:"kayd\u0131r",normalized:"scroll"},{native:"kaydir",normalized:"scroll"},{native:"tu\u015F_bas",normalized:"keydown"},{native:"tus_bas",normalized:"keydown"},{native:"tu\u015F_b\u0131rak",normalized:"keyup"},{native:"tus_birak",normalized:"keyup"},{native:"saniye",normalized:"s"},{native:"milisaniye",normalized:"ms"},{native:"dakika",normalized:"m"},{native:"saat",normalized:"h"},{native:"sonra",normalized:"then"}],Zi=class extends j{constructor(){super(),this.language="tr",this.direction="ltr",this.initializeKeywordsFromProfile(rt,ip),this.setNormalizer(new Qi),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractor(Gf()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){let t=e.toLowerCase();return rp.has(t)||np.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}},wr=new Zi}});function Zh(e){return/[а-яА-ЯіІїЇєЄґҐьЬ']/.test(e)}var ta,ra,ev,tv=h({"src/tokenizers/morphology/ukrainian-normalizer.ts"(){"use strict";H(),ta=new Map([["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438","\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438"],["\u0434\u043E\u0434\u0430\u0439","\u0434\u043E\u0434\u0430\u0442\u0438"],["\u0432\u0438\u0434\u0430\u043B\u0438","\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438"],["\u043F\u0440\u0438\u0431\u0435\u0440\u0438","\u043F\u0440\u0438\u0431\u0440\u0430\u0442\u0438"],["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438"],["\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438"],["\u0432\u0441\u0442\u0430\u0432","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438"],["\u0432\u0456\u0437\u044C\u043C\u0438","\u0432\u0437\u044F\u0442\u0438"],["\u0441\u0442\u0432\u043E\u0440\u0438","\u0441\u0442\u0432\u043E\u0440\u0438\u0442\u0438"],["\u043A\u043B\u043E\u043D\u0443\u0439","\u043A\u043B\u043E\u043D\u0443\u0432\u0430\u0442\u0438"],["\u043F\u043E\u043C\u0456\u043D\u044F\u0439","\u043F\u043E\u043C\u0456\u043D\u044F\u0442\u0438"],["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0439","\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438"],["\u0437\u0430\u0434\u0430\u0439","\u0437\u0430\u0434\u0430\u0442\u0438"],["\u043E\u0442\u0440\u0438\u043C\u0430\u0439","\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438"],["\u0437\u0431\u0456\u043B\u044C\u0448","\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438"],["\u0437\u043C\u0435\u043D\u0448","\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438"],["\u0437\u0430\u043F\u0438\u0448\u0438","\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u0438"],["\u043F\u043E\u043A\u0430\u0436\u0438","\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438"],["\u0441\u0445\u043E\u0432\u0430\u0439","\u0441\u0445\u043E\u0432\u0430\u0442\u0438"],["\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0439","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438"],["\u0430\u043D\u0456\u043C\u0443\u0439","\u0430\u043D\u0456\u043C\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0438\u043A\u043B\u0438\u0447","\u0432\u0438\u043A\u043B\u0438\u043A\u0430\u0442\u0438"],["\u043D\u0430\u0434\u0456\u0448\u043B\u0438","\u043D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438"],["\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0439","\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438"],["\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0439","\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438"],["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u043F\u0435\u0440\u0435\u0439\u0442\u0438"],["\u0439\u0434\u0438","\u0439\u0442\u0438"],["\u0447\u0435\u043A\u0430\u0439","\u0447\u0435\u043A\u0430\u0442\u0438"],["\u0437\u0430\u0447\u0435\u043A\u0430\u0439","\u0437\u0430\u0447\u0435\u043A\u0430\u0442\u0438"],["\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436","\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438"],["\u043F\u043E\u0432\u0442\u043E\u0440\u0438","\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438"],["\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0439","\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438"],["\u043A\u0438\u043D\u044C","\u043A\u0438\u043D\u0443\u0442\u0438"],["\u043F\u043E\u0432\u0435\u0440\u043D\u0438","\u043F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u0438"],["\u0441\u043A\u0430\u0436\u0438","\u0441\u043A\u0430\u0437\u0430\u0442\u0438"],["\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0439","\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0438\u043C\u0456\u0440\u044F\u0439","\u0432\u0438\u043C\u0456\u0440\u044F\u0442\u0438"]]),ra=class{constructor(){this.language="uk"}isNormalizable(e){return e.length<3?!1:Zh(e)}normalize(e){let t=e.toLowerCase();if(t.endsWith("\u0441\u044F")||t.endsWith("\u0441\u044C")){let o=this.tryReflexiveNormalization(t);if(o)return o}if(t.endsWith("\u0442\u0438")||t.endsWith("\u0447\u0438"))return D(e);let r=this.tryImperativeLookup(t);if(r)return r;let n=this.tryPastTenseNormalization(t);if(n)return n;let i=this.tryPresentTenseNormalization(t);if(i)return i;let a=this.tryGenericImperativeNormalization(t);return a||D(e)}tryReflexiveNormalization(e){let t=e.slice(0,-2);if(e.endsWith("\u0442\u0438\u0441\u044F")||e.endsWith("\u0447\u0438\u0441\u044F"))return D(e);let r=this.normalizeNonReflexive(t);if(r.confidence<1){let n=r.stem.endsWith("\u0442\u0438")?r.stem.slice(0,-2)+"\u0442\u0438\u0441\u044F":r.stem+"\u0441\u044F";return v(n,r.confidence*.95,{removedSuffixes:["\u0441\u044F",...r.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}normalizeNonReflexive(e){if(e.endsWith("\u0442\u0438")||e.endsWith("\u0447\u0438"))return D(e);let t=this.tryImperativeLookup(e);if(t)return t;let r=this.tryPastTenseNormalization(e);if(r)return r;let n=this.tryPresentTenseNormalization(e);if(n)return n;let i=this.tryGenericImperativeNormalization(e);return i||D(e)}tryImperativeLookup(e){return ta.has(e)?v(ta.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):null}tryGenericImperativeNormalization(e){return e.endsWith("\u0439\u0442\u0435")&&e.length>5?v(e.slice(0,-3)+"\u0442\u0438",.8,{removedSuffixes:["\u0439\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0456\u0442\u044C")&&e.length>5?v(e.slice(0,-3)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0456\u0442\u044C"],conjugationType:"imperative"}):e.endsWith("\u0439")&&e.length>3?v(e.slice(0,-1)+"\u0442\u0438",.75,{removedSuffixes:["\u0439"],conjugationType:"imperative"}):e.endsWith("\u0438")&&e.length>3?v(e+"\u0442\u0438",.7,{removedSuffixes:["\u0438\u2192\u0438\u0442\u0438"],conjugationType:"imperative"}):null}tryPastTenseNormalization(e){return e.endsWith("\u0430\u043B\u0430")&&e.length>4?v(e.slice(0,-3)+"\u0430\u0442\u0438",.85,{removedSuffixes:["\u0430\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0430")&&e.length>4?v(e.slice(0,-3)+"\u0438\u0442\u0438",.85,{removedSuffixes:["\u0438\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0430\u043B\u0438")&&e.length>4?v(e.slice(0,-3)+"\u0430\u0442\u0438",.85,{removedSuffixes:["\u0430\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0438")&&e.length>4?v(e.slice(0,-3)+"\u0438\u0442\u0438",.85,{removedSuffixes:["\u0438\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0430\u0432")&&e.length>3?v(e.slice(0,-2)+"\u0430\u0442\u0438",.82,{removedSuffixes:["\u0430\u0432"],conjugationType:"past"}):e.endsWith("\u0438\u0432")&&e.length>3?v(e.slice(0,-2)+"\u0438\u0442\u0438",.82,{removedSuffixes:["\u0438\u0432"],conjugationType:"past"}):null}tryPresentTenseNormalization(e){return e.endsWith("\u0438\u0448")&&e.length>3?v(e.slice(0,-2)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0438\u0448"],conjugationType:"present"}):e.endsWith("\u0438\u0442\u044C")&&e.length>4?v(e.slice(0,-3)+"\u0438\u0442\u0438",.78,{removedSuffixes:["\u0438\u0442\u044C"],conjugationType:"present"}):e.endsWith("\u0438\u043C\u043E")&&e.length>4?v(e.slice(0,-3)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0438\u043C\u043E"],conjugationType:"present"}):e.endsWith("\u044F\u0442\u044C")&&e.length>4?v(e.slice(0,-3)+"\u0438\u0442\u0438",.78,{removedSuffixes:["\u044F\u0442\u044C"],conjugationType:"present"}):e.endsWith("\u0454\u0448")&&e.length>3?v(e.slice(0,-2)+"\u0430\u0442\u0438",.78,{removedSuffixes:["\u0454\u0448"],conjugationType:"present"}):e.endsWith("\u0435\u0448")&&e.length>3?v(e.slice(0,-2)+"\u0430\u0442\u0438",.75,{removedSuffixes:["\u0435\u0448"],conjugationType:"present"}):e.endsWith("\u0454")&&e.length>2?v(e.slice(0,-1)+"\u0430\u0442\u0438",.72,{removedSuffixes:["\u0454"],conjugationType:"present"}):e.endsWith("\u0454\u043C\u043E")&&e.length>4?v(e.slice(0,-3)+"\u0430\u0442\u0438",.8,{removedSuffixes:["\u0454\u043C\u043E"],conjugationType:"present"}):e.endsWith("\u044E\u0442\u044C")&&e.length>4?v(e.slice(0,-3)+"\u0430\u0442\u0438",.78,{removedSuffixes:["\u044E\u0442\u044C"],conjugationType:"present"}):e.endsWith("\u0443\u0442\u044C")&&e.length>4?v(e.slice(0,-3)+"\u0430\u0442\u0438",.75,{removedSuffixes:["\u0443\u0442\u044C"],conjugationType:"present"}):null}},ev=new ra}}),ap={};k(ap,{ukrainianProfile:()=>Ot});var Ot,Ar=h({"src/generators/profiles/ukrainian.ts"(){"use strict";Ot={code:"uk",name:"Ukrainian",nativeName:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",direction:"ltr",script:"cyrillic",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0,suffixes:["\u0442\u0438","\u0442\u0438\u0441\u044F","\u0438\u0442\u0438","\u0438\u0442\u0438\u0441\u044F","\u0430\u0442\u0438","\u0430\u0442\u0438\u0441\u044F","\u0456\u0442\u0438","\u0456\u0442\u0438\u0441\u044F"]},references:{me:"\u044F",it:"\u0446\u0435",you:"\u0442\u0438",result:"\u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442",event:"\u043F\u043E\u0434\u0456\u044F",target:"\u0446\u0456\u043B\u044C",body:"body"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u043C\u0456\u0439",it:"\u0439\u043E\u0433\u043E",you:"\u0442\u0432\u0456\u0439"},keywords:{\u043C\u0456\u0439:"me",\u043C\u043E\u044F:"me",\u043C\u043E\u0454:"me",\u043C\u043E\u0457:"me",\u0442\u0432\u0456\u0439:"you",\u0442\u0432\u043E\u044F:"you",\u0442\u0432\u043E\u0454:"you",\u0442\u0432\u043E\u0457:"you",\u0439\u043E\u0433\u043E:"it",\u0457\u0457:"it"}},roleMarkers:{destination:{primary:"\u0432",alternatives:["\u043D\u0430","\u0434\u043E"],position:"before"},source:{primary:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0437",alternatives:["\u0456\u0437"],position:"before"}},keywords:{toggle:{primary:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438"],normalized:"toggle",form:"infinitive"},add:{primary:"\u0434\u043E\u0434\u0430\u0442\u0438",alternatives:["\u0434\u043E\u0434\u0430\u0439"],normalized:"add",form:"infinitive"},remove:{primary:"\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438",alternatives:["\u0432\u0438\u0434\u0430\u043B\u0438","\u043F\u0440\u0438\u0431\u0440\u0430\u0442\u0438","\u043F\u0440\u0438\u0431\u0435\u0440\u0438"],normalized:"remove",form:"infinitive"},put:{primary:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438","\u0432\u0441\u0442\u0430\u0432"],normalized:"put",form:"infinitive"},append:{primary:"\u0434\u043E\u0434\u0430\u0442\u0438_\u0432_\u043A\u0456\u043D\u0435\u0446\u044C",alternatives:["\u0434\u043E\u043F\u0438\u0441\u0430\u0442\u0438"],normalized:"append",form:"infinitive"},prepend:{primary:"\u0434\u043E\u0434\u0430\u0442\u0438_\u043D\u0430_\u043F\u043E\u0447\u0430\u0442\u043E\u043A",normalized:"prepend",form:"infinitive"},take:{primary:"\u0432\u0437\u044F\u0442\u0438",alternatives:["\u0432\u0456\u0437\u044C\u043C\u0438"],normalized:"take",form:"infinitive"},make:{primary:"\u0441\u0442\u0432\u043E\u0440\u0438\u0442\u0438",alternatives:["\u0441\u0442\u0432\u043E\u0440\u0438"],normalized:"make",form:"infinitive"},clone:{primary:"\u043A\u043B\u043E\u043D\u0443\u0432\u0430\u0442\u0438",alternatives:["\u043A\u043B\u043E\u043D\u0443\u0439"],normalized:"clone",form:"infinitive"},swap:{primary:"\u043F\u043E\u043C\u0456\u043D\u044F\u0442\u0438",alternatives:["\u043F\u043E\u043C\u0456\u043D\u044F\u0439"],normalized:"swap",form:"infinitive"},morph:{primary:"\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0439"],normalized:"morph",form:"infinitive"},set:{primary:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438",alternatives:["\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u0438","\u0437\u0430\u0434\u0430\u0439"],normalized:"set",form:"infinitive"},get:{primary:"\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438",alternatives:["\u043E\u0442\u0440\u0438\u043C\u0430\u0439"],normalized:"get",form:"infinitive"},increment:{primary:"\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438",alternatives:["\u0437\u0431\u0456\u043B\u044C\u0448"],normalized:"increment",form:"infinitive"},decrement:{primary:"\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438",alternatives:["\u0437\u043C\u0435\u043D\u0448"],normalized:"decrement",form:"infinitive"},log:{primary:"\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u0438",alternatives:["\u0437\u0430\u043F\u0438\u0448\u0438"],normalized:"log",form:"infinitive"},show:{primary:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"],normalized:"show",form:"infinitive"},hide:{primary:"\u0441\u0445\u043E\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0445\u043E\u0432\u0430\u0439","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0439"],normalized:"hide",form:"infinitive"},transition:{primary:"\u0430\u043D\u0456\u043C\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0430\u043D\u0456\u043C\u0443\u0439"],normalized:"transition",form:"infinitive"},on:{primary:"\u043F\u0440\u0438",normalized:"on"},trigger:{primary:"\u0456\u043D\u0456\u0446\u0456\u044E\u0432\u0430\u0442\u0438",alternatives:["\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0438","\u0437\u0430\u043F\u0443\u0441\u0442\u0438"],normalized:"trigger",form:"infinitive"},send:{primary:"\u043D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438",alternatives:["\u043D\u0430\u0434\u0456\u0448\u043B\u0438"],normalized:"send",form:"infinitive"},focus:{primary:"\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0439","\u0444\u043E\u043A\u0443\u0441"],normalized:"focus",form:"infinitive"},blur:{primary:"\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0439"],normalized:"blur",form:"infinitive"},click:{primary:"\u043A\u043B\u0456\u043A\u0443",alternatives:["\u043A\u043B\u0456\u043A","\u043D\u0430\u0442\u0438\u0441\u043A\u0430\u043D\u043D\u0456"],normalized:"click"},hover:{primary:"\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u043D\u0456",alternatives:["\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u043D\u044F"],normalized:"hover"},submit:{primary:"\u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0446\u0456",alternatives:["\u0432\u0456\u0434\u043F\u0440\u0430\u0432\u043A\u0430"],normalized:"submit"},input:{primary:"\u0432\u0432\u0435\u0434\u0435\u043D\u043D\u0456",alternatives:["\u0432\u0432\u0435\u0434\u0435\u043D\u043D\u044F"],normalized:"input"},change:{primary:"\u0437\u043C\u0456\u043D\u0456",alternatives:["\u0437\u043C\u0456\u043D\u0430"],normalized:"change"},go:{primary:"\u043F\u0435\u0440\u0435\u0439\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u0439\u0442\u0438","\u0439\u0434\u0438"],normalized:"go",form:"infinitive"},wait:{primary:"\u0447\u0435\u043A\u0430\u0442\u0438",alternatives:["\u0447\u0435\u043A\u0430\u0439","\u0437\u0430\u0447\u0435\u043A\u0430\u0439"],normalized:"wait",form:"infinitive"},fetch:{primary:"\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438",alternatives:["\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436"],normalized:"fetch",form:"infinitive"},settle:{primary:"\u0441\u0442\u0430\u0431\u0456\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438",normalized:"settle",form:"infinitive"},if:{primary:"\u044F\u043A\u0449\u043E",normalized:"if"},when:{primary:"\u043A\u043E\u043B\u0438",normalized:"when"},where:{primary:"\u0434\u0435",normalized:"where"},else:{primary:"\u0456\u043D\u0430\u043A\u0448\u0435",normalized:"else"},repeat:{primary:"\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",alternatives:["\u043F\u043E\u0432\u0442\u043E\u0440\u0438"],normalized:"repeat",form:"infinitive"},for:{primary:"\u0434\u043B\u044F",alternatives:["\u043A\u043E\u0436\u043D\u0438\u0439"],normalized:"for"},while:{primary:"\u043F\u043E\u043A\u0438",normalized:"while"},continue:{primary:"\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438",alternatives:["\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0439"],normalized:"continue",form:"infinitive"},halt:{primary:"\u0437\u0443\u043F\u0438\u043D\u0438\u0442\u0438",alternatives:["\u0437\u0443\u043F\u0438\u043D\u0438\u0441\u044C","\u0441\u0442\u043E\u043F"],normalized:"halt",form:"infinitive"},throw:{primary:"\u043A\u0438\u043D\u0443\u0442\u0438",alternatives:["\u043A\u0438\u043D\u044C"],normalized:"throw",form:"infinitive"},call:{primary:"\u0432\u0438\u043A\u043B\u0438\u043A\u0430\u0442\u0438",alternatives:["\u0432\u0438\u043A\u043B\u0438\u0447"],normalized:"call",form:"infinitive"},return:{primary:"\u043F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u0438",alternatives:["\u043F\u043E\u0432\u0435\u0440\u043D\u0438"],normalized:"return",form:"infinitive"},then:{primary:"\u043F\u043E\u0442\u0456\u043C",alternatives:["\u0434\u0430\u043B\u0456","\u0442\u043E\u0434\u0456"],normalized:"then"},and:{primary:"\u0456",alternatives:["\u0442\u0430"],normalized:"and"},end:{primary:"\u043A\u0456\u043D\u0435\u0446\u044C",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E",alternatives:["async"],normalized:"async"},tell:{primary:"\u0441\u043A\u0430\u0437\u0430\u0442\u0438",alternatives:["\u0441\u043A\u0430\u0436\u0438"],normalized:"tell",form:"infinitive"},default:{primary:"\u0437\u0430_\u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C",normalized:"default"},init:{primary:"\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0439"],normalized:"init",form:"infinitive"},behavior:{primary:"\u043F\u043E\u0432\u0435\u0434\u0456\u043D\u043A\u0430",normalized:"behavior"},install:{primary:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438_\u043F\u0430\u043A\u0435\u0442",normalized:"install",form:"infinitive"},measure:{primary:"\u0432\u0438\u043C\u0456\u0440\u044F\u0442\u0438",alternatives:["\u0432\u0438\u043C\u0456\u0440\u044F\u0439"],normalized:"measure",form:"infinitive"},beep:{primary:"\u0437\u0432\u0443\u043A",normalized:"beep"},break:{primary:"\u043F\u0435\u0440\u0435\u0440\u0432\u0430\u0442\u0438",normalized:"break"},copy:{primary:"\u043A\u043E\u043F\u0456\u044E\u0432\u0430\u0442\u0438",normalized:"copy"},exit:{primary:"\u0432\u0438\u0439\u0442\u0438",normalized:"exit"},pick:{primary:"\u0432\u0438\u0431\u0440\u0430\u0442\u0438",normalized:"pick"},render:{primary:"\u0432\u0456\u0434\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u0438",normalized:"render"},into:{primary:"\u0432",alternatives:["\u0443"],normalized:"into"},before:{primary:"\u0434\u043E",alternatives:["\u043F\u0435\u0440\u0435\u0434"],normalized:"before"},after:{primary:"\u043F\u0456\u0441\u043B\u044F",normalized:"after"},until:{primary:"\u043F\u043E\u043A\u0438_\u043D\u0435",normalized:"until"},event:{primary:"\u043F\u043E\u0434\u0456\u044F",normalized:"event"},from:{primary:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"],normalized:"from"}},eventHandler:{keyword:{primary:"\u043F\u0440\u0438",normalized:"on"},sourceMarker:{primary:"\u043D\u0430",alternatives:["\u0432","\u043F\u0440\u0438"],position:"before"},eventMarker:{primary:"\u043F\u0440\u0438",position:"before"},temporalMarkers:["\u043A\u043E\u043B\u0438","\u044F\u043A\u0449\u043E"]}}}}),op={};k(op,{UkrainianTokenizer:()=>na,ukrainianTokenizer:()=>ia});var up,sp,na,ia,lp=h({"src/tokenizers/ukrainian.ts"(){"use strict";S(),tv(),Ar(),I(),M(),cu(),ye(),up=new Set(["\u0432","\u0443","\u043D\u0430","\u0437","\u0456\u0437","\u0437\u0456","\u0434\u043E","\u0432\u0456\u0434","\u043E","\u043E\u0431","\u043F\u0440\u0438","\u0434\u043B\u044F","\u043F\u0456\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043C\u0456\u0436","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u043F\u043E","\u0437\u0430","\u043F\u0440\u043E","\u043F\u0456\u0441\u043B\u044F","\u043D\u0430\u0432\u043A\u043E\u043B\u043E","\u043F\u0440\u043E\u0442\u0438","\u0437\u0430\u043C\u0456\u0441\u0442\u044C","\u043A\u0440\u0456\u043C","\u0441\u0435\u0440\u0435\u0434","\u043A"]),sp=[{native:"\u0456\u0441\u0442\u0438\u043D\u0430",normalized:"true"},{native:"\u043F\u0440\u0430\u0432\u0434\u0430",normalized:"true"},{native:"\u0445\u0438\u0431\u043D\u0456\u0441\u0442\u044C",normalized:"false"},{native:"null",normalized:"null"},{native:"\u043D\u0435\u0432\u0438\u0437\u043D\u0430\u0447\u0435\u043D\u043E",normalized:"undefined"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u0438",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"s"},{native:"\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"ms"},{native:"\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0438",normalized:"ms"},{native:"\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"ms"},{native:"\u0445\u0432\u0438\u043B\u0438\u043D\u0430",normalized:"m"},{native:"\u0445\u0432\u0438\u043B\u0438\u043D\u0438",normalized:"m"},{native:"\u0445\u0432\u0438\u043B\u0438\u043D",normalized:"m"},{native:"\u0433\u043E\u0434\u0438\u043D\u0430",normalized:"h"},{native:"\u0433\u043E\u0434\u0438\u043D\u0438",normalized:"h"},{native:"\u0433\u043E\u0434\u0438\u043D",normalized:"h"},{native:"\u043F\u0435\u0440\u0448\u0430",normalized:"first"},{native:"\u043F\u0435\u0440\u0448\u0435",normalized:"first"},{native:"\u043E\u0441\u0442\u0430\u043D\u043D\u044F",normalized:"last"},{native:"\u043E\u0441\u0442\u0430\u043D\u043D\u0454",normalized:"last"},{native:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0430",normalized:"next"},{native:"\u043F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F",normalized:"previous"},{native:"\u043F\u043E\u0440\u043E\u0436\u043D\u044F",normalized:"empty"},{native:"\u043F\u043E\u0440\u043E\u0436\u043D\u0454",normalized:"empty"},{native:"\u043C\u043E\u044F",normalized:"my"},{native:"\u043C\u043E\u0454",normalized:"my"},{native:"\u043C\u043E\u0457",normalized:"my"}],na=class extends j{constructor(){super(),this.language="uk",this.direction="ltr",this.initializeKeywordsFromProfile(Ot,sp),this.setNormalizer(new ra),this.registerExtractors([...O(),...xf(),new L,new P,new le,new _,new R])}classifyToken(e){let t=e.toLowerCase();return up.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}},ia=new na}}),cp={};k(cp,{vietnameseProfile:()=>Mt});var Mt,br=h({"src/generators/profiles/vietnamese.ts"(){"use strict";Mt={code:"vi",name:"Vietnamese",nativeName:"Ti\u1EBFng Vi\u1EC7t",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"t\xF4i",it:"n\xF3",you:"b\u1EA1n",result:"k\u1EBFt qu\u1EA3",event:"s\u1EF1 ki\u1EC7n",target:"m\u1EE5c ti\xEAu",body:"body"},possessive:{marker:"c\u1EE7a",markerPosition:"between",specialForms:{me:"c\u1EE7a t\xF4i",it:"c\u1EE7a n\xF3",you:"c\u1EE7a b\u1EA1n"},keywords:{"c\u1EE7a t\xF4i":"me","c\u1EE7a b\u1EA1n":"you","c\u1EE7a anh":"you","c\u1EE7a ch\u1ECB":"you","c\u1EE7a n\xF3":"it"}},roleMarkers:{destination:{primary:"v\xE0o",alternatives:["cho","\u0111\u1EBFn"],position:"before"},source:{primary:"t\u1EEB",alternatives:["kh\u1ECFi"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"v\u1EDBi",position:"before"}},keywords:{toggle:{primary:"chuy\u1EC3n \u0111\u1ED5i",alternatives:["b\u1EADt t\u1EAFt","chuy\u1EC3n"],normalized:"toggle"},add:{primary:"th\xEAm",alternatives:["b\u1ED5 sung"],normalized:"add"},remove:{primary:"x\xF3a",alternatives:["g\u1EE1 b\u1ECF","lo\u1EA1i b\u1ECF","b\u1ECF"],normalized:"remove"},put:{primary:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"],normalized:"put"},append:{primary:"n\u1ED1i",normalized:"append"},prepend:{primary:"th\xEAm v\xE0o \u0111\u1EA7u",normalized:"prepend"},take:{primary:"l\u1EA5y",normalized:"take"},make:{primary:"t\u1EA1o",normalized:"make"},clone:{primary:"nh\xE2n b\u1EA3n",normalized:"clone"},swap:{primary:"ho\xE1n \u0111\u1ED5i",normalized:"swap"},morph:{primary:"bi\u1EBFn \u0111\u1ED5i",normalized:"morph"},set:{primary:"g\xE1n",alternatives:["thi\u1EBFt l\u1EADp"],normalized:"set"},get:{primary:"l\u1EA5y gi\xE1 tr\u1ECB",alternatives:["nh\u1EADn"],normalized:"get"},increment:{primary:"t\u0103ng",alternatives:["t\u0103ng l\xEAn"],normalized:"increment"},decrement:{primary:"gi\u1EA3m",alternatives:["gi\u1EA3m \u0111i"],normalized:"decrement"},log:{primary:"in ra",normalized:"log"},show:{primary:"hi\u1EC3n th\u1ECB",alternatives:["hi\u1EC7n"],normalized:"show"},hide:{primary:"\u1EA9n",alternatives:["che","gi\u1EA5u"],normalized:"hide"},transition:{primary:"chuy\u1EC3n ti\u1EBFp",normalized:"transition"},on:{primary:"khi",alternatives:["tr\xEAn"],normalized:"on"},trigger:{primary:"k\xEDch ho\u1EA1t",normalized:"trigger"},send:{primary:"g\u1EEDi",normalized:"send"},focus:{primary:"t\u1EADp trung",normalized:"focus"},blur:{primary:"m\u1EA5t t\u1EADp trung",normalized:"blur"},click:{primary:"nh\u1EA5p",alternatives:["b\u1EA5m"],normalized:"click"},hover:{primary:"di chu\u1ED9t",alternatives:["r\xEA chu\u1ED9t"],normalized:"hover"},submit:{primary:"n\u1ED9p",alternatives:[],normalized:"submit"},input:{primary:"nh\u1EADp",alternatives:["nh\u1EADp li\u1EC7u"],normalized:"input"},change:{primary:"thay \u0111\u1ED5i",alternatives:["\u0111\u1ED5i"],normalized:"change"},go:{primary:"\u0111i \u0111\u1EBFn",alternatives:["\u0111i"],normalized:"go"},wait:{primary:"ch\u1EDD",alternatives:["\u0111\u1EE3i"],normalized:"wait"},fetch:{primary:"t\u1EA3i",normalized:"fetch"},settle:{primary:"\u1ED5n \u0111\u1ECBnh",normalized:"settle"},if:{primary:"n\u1EBFu",normalized:"if"},when:{primary:"l\xFAc",normalized:"when"},where:{primary:"\u1EDF_\u0111\xE2u",normalized:"where"},else:{primary:"kh\xF4ng th\xEC",alternatives:["n\u1EBFu kh\xF4ng"],normalized:"else"},repeat:{primary:"l\u1EB7p l\u1EA1i",normalized:"repeat"},for:{primary:"v\u1EDBi m\u1ED7i",normalized:"for"},while:{primary:"trong khi",normalized:"while"},continue:{primary:"ti\u1EBFp t\u1EE5c",normalized:"continue"},halt:{primary:"d\u1EEBng",alternatives:["d\u1EEBng l\u1EA1i"],normalized:"halt"},throw:{primary:"n\xE9m",normalized:"throw"},call:{primary:"g\u1ECDi",normalized:"call"},return:{primary:"tr\u1EA3 v\u1EC1",normalized:"return"},then:{primary:"r\u1ED3i",alternatives:["sau \u0111\xF3","th\xEC"],normalized:"then"},and:{primary:"v\xE0",normalized:"and"},end:{primary:"k\u1EBFt th\xFAc",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"b\u1EA5t \u0111\u1ED3ng b\u1ED9",normalized:"async"},tell:{primary:"n\xF3i v\u1EDBi",normalized:"tell"},default:{primary:"m\u1EB7c \u0111\u1ECBnh",normalized:"default"},init:{primary:"kh\u1EDFi t\u1EA1o",normalized:"init"},behavior:{primary:"h\xE0nh vi",normalized:"behavior"},install:{primary:"c\xE0i \u0111\u1EB7t",normalized:"install"},measure:{primary:"\u0111o l\u01B0\u1EDDng",normalized:"measure"},beep:{primary:"beep",normalized:"beep"},break:{primary:"ng\u1EAFt",normalized:"break"},copy:{primary:"sao ch\xE9p",normalized:"copy"},exit:{primary:"tho\xE1t",normalized:"exit"},pick:{primary:"ch\u1ECDn",normalized:"pick"},render:{primary:"k\u1EBFt xu\u1EA5t",normalized:"render"},into:{primary:"v\xE0o",alternatives:["v\xE0o trong"],normalized:"into"},before:{primary:"tr\u01B0\u1EDBc",alternatives:["tr\u01B0\u1EDBc khi"],normalized:"before"},after:{primary:"sau",alternatives:["sau khi"],normalized:"after"},until:{primary:"cho \u0111\u1EBFn khi",normalized:"until"},event:{primary:"s\u1EF1 ki\u1EC7n",normalized:"event"},from:{primary:"t\u1EEB",alternatives:["kh\u1ECFi"],normalized:"from"}},eventHandler:{keyword:{primary:"khi",alternatives:["tr\xEAn"],normalized:"on"},sourceMarker:{primary:"tr\xEAn",alternatives:["t\u1EA1i"],position:"before"},eventMarker:{primary:"khi",alternatives:["l\xFAc"],position:"before"},temporalMarkers:["khi","l\xFAc"]}}}}),pp={};k(pp,{VietnameseTokenizer:()=>aa,vietnameseTokenizer:()=>oa});var mp,aa,oa,dp=h({"src/tokenizers/vietnamese.ts"(){"use strict";S(),br(),vf(),I(),M(),mp=[{native:"\u0111\xFAng",normalized:"true"},{native:"sai",normalized:"false"},{native:"null",normalized:"null"},{native:"kh\xF4ng x\xE1c \u0111\u1ECBnh",normalized:"undefined"},{native:"\u0111\u1EA7u ti\xEAn",normalized:"first"},{native:"cu\u1ED1i c\xF9ng",normalized:"last"},{native:"ti\u1EBFp theo",normalized:"next"},{native:"tr\u01B0\u1EDBc \u0111\xF3",normalized:"previous"},{native:"g\u1EA7n nh\u1EA5t",normalized:"closest"},{native:"cha",normalized:"parent"},{native:"nh\u1EA5p",normalized:"click"},{native:"nh\u1EA5p chu\u1ED9t",normalized:"click"},{native:"click",normalized:"click"},{native:"nh\u1EA5p \u0111\xFAp",normalized:"dblclick"},{native:"nh\u1EADp",normalized:"input"},{native:"thay \u0111\u1ED5i",normalized:"change"},{native:"g\u1EEDi bi\u1EC3u m\u1EABu",normalized:"submit"},{native:"ph\xEDm xu\u1ED1ng",normalized:"keydown"},{native:"ph\xEDm l\xEAn",normalized:"keyup"},{native:"chu\u1ED9t v\xE0o",normalized:"mouseover"},{native:"chu\u1ED9t ra",normalized:"mouseout"},{native:"t\u1EA3i trang",normalized:"load"},{native:"cu\u1ED9n",normalized:"scroll"},{native:"c\u1EE7a t\xF4i",normalized:"my"},{native:"c\u1EE7a n\xF3",normalized:"its"},{native:"gi\xE2y",normalized:"s"},{native:"mili gi\xE2y",normalized:"ms"},{native:"ph\xFAt",normalized:"m"},{native:"gi\u1EDD",normalized:"h"},{native:"th\xEAm v\xE0o cu\u1ED1i",normalized:"append"},{native:"nh\xE2n b\u1EA3n",normalized:"clone"},{native:"t\u1EA1o ra",normalized:"make"},{native:"\u0111\u1EB7t gi\xE1 tr\u1ECB",normalized:"set"},{native:"ghi nh\u1EADt k\xFD",normalized:"log"},{native:"chuy\u1EC3n t\u1EDBi",normalized:"go"},{native:"ng\u01B0\u1EE3c l\u1EA1i",normalized:"else"},{native:"l\u1EB7p",normalized:"repeat"},{native:"ho\u1EB7c",normalized:"or"},{native:"kh\xF4ng",normalized:"not"},{native:"l\xE0",normalized:"is"},{native:"t\u1ED3n t\u1EA1i",normalized:"exists"},{native:"r\u1ED7ng",normalized:"empty"},{native:"javascript",normalized:"js"}],aa=class extends j{constructor(){super(),this.language="vi",this.direction="ltr",this.initializeKeywordsFromProfile(Mt,mp),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractors(hf()),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){let t=e.toLowerCase();return this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}},oa=new aa}}),fp={};k(fp,{chineseProfile:()=>nt});var nt,Wt=h({"src/generators/profiles/chinese.ts"(){"use strict";nt={code:"zh",name:"Chinese",nativeName:"\u4E2D\u6587",direction:"ltr",script:"cjk",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!1,verb:{position:"second",subjectDrop:!0},references:{me:"\u6211",it:"\u5B83",you:"\u4F60",result:"\u7ED3\u679C",event:"\u4E8B\u4EF6",target:"\u76EE\u6807",body:"\u4E3B\u4F53"},possessive:{marker:"\u7684",markerPosition:"between",keywords:{\u6211\u7684:"me",\u4F60\u7684:"you",\u5B83\u7684:"it",\u4ED6\u7684:"it",\u5979\u7684:"it"}},roleMarkers:{destination:{primary:"\u5728",alternatives:["\u5230","\u4E8E"],position:"before"},source:{primary:"\u4ECE",alternatives:["\u7531"],position:"before"},patient:{primary:"\u628A",position:"before"},style:{primary:"\u7528",alternatives:["\u4EE5"],position:"before"}},keywords:{toggle:{primary:"\u5207\u6362",normalized:"toggle"},add:{primary:"\u6DFB\u52A0",alternatives:["\u52A0"],normalized:"add"},remove:{primary:"\u79FB\u9664",alternatives:["\u5220\u9664","\u53BB\u6389"],normalized:"remove"},put:{primary:"\u653E\u7F6E",alternatives:["\u653E","\u653E\u5165"],normalized:"put"},append:{primary:"\u8FFD\u52A0",alternatives:["\u9644\u52A0"],normalized:"append"},prepend:{primary:"\u524D\u7F6E",alternatives:["\u9884\u7F6E"],normalized:"prepend"},take:{primary:"\u62FF\u53D6",normalized:"take"},make:{primary:"\u5236\u4F5C",normalized:"make"},clone:{primary:"\u514B\u9686",normalized:"clone"},swap:{primary:"\u4EA4\u6362",normalized:"swap"},morph:{primary:"\u53D8\u5F62",alternatives:["\u8F6C\u6362"],normalized:"morph"},set:{primary:"\u8BBE\u7F6E",alternatives:["\u8BBE\u5B9A"],normalized:"set"},get:{primary:"\u83B7\u53D6",alternatives:["\u83B7\u5F97","\u53D6\u5F97"],normalized:"get"},increment:{primary:"\u589E\u52A0",normalized:"increment"},decrement:{primary:"\u51CF\u5C11",normalized:"decrement"},log:{primary:"\u65E5\u5FD7",normalized:"log"},show:{primary:"\u663E\u793A",alternatives:["\u5C55\u793A"],normalized:"show"},hide:{primary:"\u9690\u85CF",normalized:"hide"},transition:{primary:"\u8FC7\u6E21",normalized:"transition"},on:{primary:"\u5F53",alternatives:["\u5728...\u65F6"],normalized:"on"},trigger:{primary:"\u89E6\u53D1",normalized:"trigger"},send:{primary:"\u53D1\u9001",normalized:"send"},focus:{primary:"\u805A\u7126",normalized:"focus"},blur:{primary:"\u5931\u7126",normalized:"blur"},click:{primary:"\u70B9\u51FB",normalized:"click"},hover:{primary:"\u60AC\u505C",alternatives:["\u60AC\u6D6E"],normalized:"hover"},submit:{primary:"\u63D0\u4EA4",normalized:"submit"},input:{primary:"\u8F93\u5165",normalized:"input"},change:{primary:"\u6539\u53D8",alternatives:["\u53D8\u5316"],normalized:"change"},go:{primary:"\u524D\u5F80",normalized:"go"},wait:{primary:"\u7B49\u5F85",normalized:"wait"},fetch:{primary:"\u6293\u53D6",normalized:"fetch"},settle:{primary:"\u7A33\u5B9A",normalized:"settle"},if:{primary:"\u5982\u679C",normalized:"if"},when:{primary:"\u4F55\u65F6",normalized:"when"},where:{primary:"\u54EA\u91CC",normalized:"where"},else:{primary:"\u5426\u5219",normalized:"else"},repeat:{primary:"\u91CD\u590D",normalized:"repeat"},for:{primary:"\u4E3A",normalized:"for"},while:{primary:"\u6301\u7EED",normalized:"while"},continue:{primary:"\u7EE7\u7EED",normalized:"continue"},halt:{primary:"\u505C\u6B62",normalized:"halt"},throw:{primary:"\u629B\u51FA",normalized:"throw"},call:{primary:"\u8C03\u7528",normalized:"call"},return:{primary:"\u8FD4\u56DE",normalized:"return"},then:{primary:"\u7136\u540E",alternatives:["\u63A5\u7740"],normalized:"then"},and:{primary:"\u5E76\u4E14",alternatives:["\u548C","\u800C\u4E14"],normalized:"and"},end:{primary:"\u7ED3\u675F",alternatives:["\u7EC8\u6B62","\u5B8C"],normalized:"end"},js:{primary:"JS\u6267\u884C",alternatives:["js"],normalized:"js"},async:{primary:"\u5F02\u6B65",normalized:"async"},tell:{primary:"\u544A\u8BC9",normalized:"tell"},default:{primary:"\u9ED8\u8BA4",normalized:"default"},init:{primary:"\u521D\u59CB\u5316",normalized:"init"},behavior:{primary:"\u884C\u4E3A",normalized:"behavior"},install:{primary:"\u5B89\u88C5",normalized:"install"},measure:{primary:"\u6D4B\u91CF",normalized:"measure"},beep:{primary:"\u8702\u9E23",normalized:"beep"},break:{primary:"\u4E2D\u65AD",normalized:"break"},copy:{primary:"\u590D\u5236",normalized:"copy"},exit:{primary:"\u9000\u51FA",normalized:"exit"},pick:{primary:"\u9009\u53D6",normalized:"pick"},render:{primary:"\u6E32\u67D3",normalized:"render"},into:{primary:"\u8FDB\u5165",normalized:"into"},before:{primary:"\u4E4B\u524D",normalized:"before"},after:{primary:"\u4E4B\u540E",normalized:"after"},until:{primary:"\u76F4\u5230",normalized:"until"},event:{primary:"\u4E8B\u4EF6",normalized:"event"},from:{primary:"\u4ECE",normalized:"from"}},tokenization:{boundaryStrategy:"character"},eventHandler:{keyword:{primary:"\u5F53",alternatives:["\u5728...\u65F6"],normalized:"on"},sourceMarker:{primary:"\u4ECE",position:"before"},eventMarker:{primary:"\u5F53",alternatives:["\u5728"],position:"before"},temporalMarkers:["\u5F53","\u5728...\u65F6"]}}}}),yp={};k(yp,{ChineseTokenizer:()=>ua,chineseTokenizer:()=>Dr});var hp,vp,ua,Dr,sa=h({"src/tokenizers/chinese.ts"(){"use strict";S(),Wt(),I(),M(),df(),ff(),ye(),hp=new Set(["\u628A","\u5728","\u4ECE","\u5230","\u5411","\u7ED9","\u5BF9","\u7528","\u88AB","\u8BA9","\u7684","\u5730","\u5F97","\u4E86","\u7740","\u8FC7","\u5417","\u5462","\u5427"]),vp=[{native:"\u771F",normalized:"true"},{native:"\u5047",normalized:"false"},{native:"\u7A7A",normalized:"null"},{native:"\u672A\u5B9A\u4E49",normalized:"undefined"},{native:"\u7B2C\u4E00\u4E2A",normalized:"first"},{native:"\u9996\u4E2A",normalized:"first"},{native:"\u6700\u540E\u4E00\u4E2A",normalized:"last"},{native:"\u672B\u4E2A",normalized:"last"},{native:"\u4E0B\u4E00\u4E2A",normalized:"next"},{native:"\u4E0A\u4E00\u4E2A",normalized:"previous"},{native:"\u6700\u8FD1\u7684",normalized:"closest"},{native:"\u7236\u7EA7",normalized:"parent"},{native:"\u70B9\u51FB",normalized:"click"},{native:"\u53CC\u51FB",normalized:"dblclick"},{native:"\u8F93\u5165",normalized:"input"},{native:"\u53D8\u66F4",normalized:"change"},{native:"\u6539\u53D8",normalized:"change"},{native:"\u63D0\u4EA4",normalized:"submit"},{native:"\u6309\u952E",normalized:"keydown"},{native:"\u91CA\u653E\u952E",normalized:"keyup"},{native:"\u9F20\u6807\u79FB\u5165",normalized:"mouseover"},{native:"\u9F20\u6807\u79FB\u51FA",normalized:"mouseout"},{native:"\u83B7\u5F97\u7126\u70B9",normalized:"focus"},{native:"\u5931\u53BB\u7126\u70B9",normalized:"blur"},{native:"\u52A0\u8F7D",normalized:"load"},{native:"\u6EDA\u52A8",normalized:"scroll"},{native:"\u6211\u7684",normalized:"my"},{native:"\u5B83\u7684",normalized:"its"},{native:"\u79D2",normalized:"s"},{native:"\u6BEB\u79D2",normalized:"ms"},{native:"\u5206\u949F",normalized:"m"},{native:"\u5C0F\u65F6",normalized:"h"},{native:"\u548C",normalized:"and"},{native:"\u6216\u8005",normalized:"or"},{native:"\u6216",normalized:"or"},{native:"\u4E0D",normalized:"not"},{native:"\u975E",normalized:"not"},{native:"\u662F",normalized:"is"},{native:"\u82E5",normalized:"if"},{native:"\u4E0D\u7136",normalized:"else"},{native:"\u5FAA\u73AF",normalized:"repeat"},{native:"\u904D\u5386",normalized:"for"},{native:"\u6BCF\u4E2A",normalized:"for"},{native:"\u4E3A\u6BCF",normalized:"for"},{native:"\u4E2D\u6B62",normalized:"halt"},{native:"\u629B",normalized:"throw"},{native:"\u547C\u53EB",normalized:"call"},{native:"\u56DE",normalized:"return"},{native:"\u811A\u672C",normalized:"js"},{native:"\u901A\u77E5",normalized:"tell"},{native:"\u7F3A\u7701",normalized:"default"},{native:"\u521D\u59CB",normalized:"init"},{native:"\u52A8\u4F5C",normalized:"behavior"},{native:"\u6FC0\u53D1",normalized:"trigger"},{native:"\u5BF9\u7126",normalized:"focus"},{native:"\u6A21\u7CCA",normalized:"blur"},{native:"\u8DF3\u8F6C",normalized:"go"},{native:"\u5BFC\u822A",normalized:"go"},{native:"\u6293\u53D6",normalized:"fetch"},{native:"\u83B7\u53D6\u6570\u636E",normalized:"fetch"},{native:"\u5B89\u5B9A",normalized:"settle"},{native:"\u62FF\u53D6",normalized:"take"},{native:"\u53D6",normalized:"take"},{native:"\u521B\u5EFA",normalized:"make"},{native:"\u514B\u9686",normalized:"clone"},{native:"\u8BB0\u5F55",normalized:"log"},{native:"\u6253\u5370",normalized:"log"},{native:"\u52A8\u753B",normalized:"transition"},{native:"\u5230\u91CC\u9762",normalized:"into"},{native:"\u91CC",normalized:"into"},{native:"\u524D",normalized:"before"},{native:"\u540E",normalized:"after"},{native:"\u90A3\u4E48",normalized:"then"},{native:"\u5B8C",normalized:"end"}],ua=class extends j{constructor(){super(),this.language="zh",this.direction="ltr",this.initializeKeywordsFromProfile(nt,vp),this.registerExtractors(O()),this.registerExtractor(new L),this.registerExtractor(new P),this.registerExtractor(new le),this.registerExtractor(new Qo),this.registerExtractor(new Jo),this.registerExtractor(new _),this.registerExtractor(new R)}classifyToken(e){return hp.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||e.startsWith("\u201C")||e.startsWith("\u2018")||/^\d/.test(e)?"literal":"identifier"}},Dr=new ua}});function it(e){let t="complex";return e.startsWith("#")&&!e.includes(" ")?t="id":e.startsWith(".")&&!e.includes(" ")?t="class":e.startsWith("[")&&e.endsWith("]")?t="attribute":/^[a-z][a-z0-9]*$/i.test(e)&&(t="element"),{type:"selector",value:e,selectorKind:t}}function V(e,t){let r={type:"literal",value:e};return t!==void 0?{type:"literal",value:e,dataType:t}:r}function gp(e){return ir(e)}function Ae(e){return{type:"reference",value:e}}function Tr(e,t){return{type:"property-path",object:e,property:t}}function qt(e,t,r){let n={kind:"command",action:e,roles:new Map(Object.entries(t))};return r!==void 0?{...n,metadata:r}:n}function la(e,t,r,n,i,a){let o=new Map;o.set("event",e);let u={kind:"event-handler",action:"on",roles:o,body:t};return r!==void 0&&(u.eventModifiers=r),n!==void 0&&(u.metadata=n),i!==void 0&&i.length>0&&(u.parameterNames=i),a!==void 0&&a.length>0&&(u.additionalEvents=a),u}function ca(e,t="then",r){let n={kind:"compound",action:"compound",roles:new Map,statements:e,chainType:t};return r!==void 0&&(n.metadata=r),n}function rv(e,t,r,n){let i=new Map;i.set("condition",e);let a={kind:"conditional",action:"if",roles:i,thenBranch:t};return r!==void 0&&(a.elseBranch=r),n!==void 0&&(a.metadata=n),a}function nv(e,t,r,n,i){let a={kind:"loop",action:e,loopVariant:t,roles:new Map(Object.entries(r)),body:n};return i?.loopVariable&&(a.loopVariable=i.loopVariable),i?.indexVariable&&(a.indexVariable=i.indexVariable),i?.metadata&&(a.metadata=i.metadata),a}var pa=h({"src/types.ts"(){"use strict"}});function iv(e,t){let r=Sr[t];return r&&r[e]?r[e]:e.toLowerCase()}var Sr,Ep=h({"src/patterns/event-handler/shared.ts"(){"use strict";Sr={ko:{\uD074\uB9AD:"click",\uC785\uB825:"input",\uBCC0\uACBD:"change",\uC81C\uCD9C:"submit",\uD0A4\uB2E4\uC6B4:"keydown",\uD0A4\uC5C5:"keyup",\uB9C8\uC6B0\uC2A4\uC624\uBC84:"mouseover",\uB9C8\uC6B0\uC2A4\uC544\uC6C3:"mouseout",\uB9C8\uC6B0\uC2A4\uB2E4\uC6B4:"mousedown",\uB9C8\uC6B0\uC2A4\uC5C5:"mouseup",\uD3EC\uCEE4\uC2A4:"focus",\uBE14\uB7EC:"blur",\uB85C\uB4DC:"load",\uB9AC\uC0AC\uC774\uC988:"resize",\uC2A4\uD06C\uB864:"scroll"},ja:{\u30AF\u30EA\u30C3\u30AF:"click",\u5165\u529B:"input",\u5909\u66F4:"change",\u9001\u4FE1:"submit",\u30AD\u30FC\u30C0\u30A6\u30F3:"keydown",\u30AD\u30FC\u30A2\u30C3\u30D7:"keyup",\u30AD\u30FC\u30D7\u30EC\u30B9:"keypress",\u30DE\u30A6\u30B9\u30AA\u30FC\u30D0\u30FC:"mouseover",\u30DE\u30A6\u30B9\u30A2\u30A6\u30C8:"mouseout",\u30DE\u30A6\u30B9\u62BC\u4E0B:"mousedown",\u30DE\u30A6\u30B9\u89E3\u653E:"mouseup",\u30D5\u30A9\u30FC\u30AB\u30B9:"focus",\u30D6\u30E9\u30FC:"blur",\u30ED\u30FC\u30C9:"load",\u8AAD\u307F\u8FBC\u307F:"load",\u30B5\u30A4\u30BA\u5909\u66F4:"resize",\u30B9\u30AF\u30ED\u30FC\u30EB:"scroll"},ar:{\u0627\u0644\u0646\u0642\u0631:"click",\u0646\u0642\u0631:"click",\u0627\u0644\u0625\u062F\u062E\u0627\u0644:"input",\u0625\u062F\u062E\u0627\u0644:"input",\u0627\u0644\u062A\u063A\u064A\u064A\u0631:"change",\u062A\u063A\u064A\u064A\u0631:"change",\u0627\u0644\u0625\u0631\u0633\u0627\u0644:"submit",\u0625\u0631\u0633\u0627\u0644:"submit","\u0636\u063A\u0637 \u0627\u0644\u0645\u0641\u062A\u0627\u062D":"keydown","\u0631\u0641\u0639 \u0627\u0644\u0645\u0641\u062A\u0627\u062D":"keyup","\u062A\u0645\u0631\u064A\u0631 \u0627\u0644\u0645\u0627\u0648\u0633":"mouseover",\u0627\u0644\u062A\u0631\u0643\u064A\u0632:"focus",\u062A\u062D\u0645\u064A\u0644:"load",\u062A\u0645\u0631\u064A\u0631:"scroll"},es:{clic:"click",click:"click",entrada:"input",cambio:"change",env\u00EDo:"submit",enviar:"submit","tecla abajo":"keydown","tecla arriba":"keyup","rat\xF3n encima":"mouseover","rat\xF3n fuera":"mouseout",enfoque:"focus",desenfoque:"blur",carga:"load",desplazamiento:"scroll"},tr:{t\u0131klama:"click",t\u0131kla:"click",t\u0131k:"click",giri\u015F:"input",girdi:"input",de\u011Fi\u015Fiklik:"change",de\u011Fi\u015Fim:"change",g\u00F6nderme:"submit",g\u00F6nder:"submit",tu\u015Fbasma:"keydown",tu\u015Fb\u0131rakma:"keyup",fare_bas:"mousedown",fare_b\u0131rak:"mouseup",farei\u00E7inde:"mouseover",fared\u0131\u015F\u0131nda:"mouseout",odaklanma:"focus",odak:"focus",bulan\u0131kl\u0131k:"blur",y\u00FCkleme:"load",y\u00FCkle:"load",boyut_de\u011Fi\u015Ftir:"resize",kayd\u0131rma:"scroll"},pt:{clique:"click",clicar:"click",click:"click",entrada:"input",inserir:"input",mudan\u00E7a:"change",mudanca:"change",alterar:"change",envio:"submit",enviar:"submit","tecla baixo":"keydown","tecla cima":"keyup","pressionar tecla":"keydown","soltar tecla":"keyup","mouse sobre":"mouseover","mouse fora":"mouseout",foco:"focus",focar:"focus",desfoque:"blur",desfocar:"blur",carregar:"load",carregamento:"load",rolagem:"scroll",rolar:"scroll"},zh:{\u70B9\u51FB:"click",\u5355\u51FB:"click",\u53CC\u51FB:"dblclick",\u8F93\u5165:"input",\u6539\u53D8:"change",\u53D8\u5316:"change",\u53D8\u66F4:"change",\u63D0\u4EA4:"submit",\u53D1\u9001:"submit",\u6309\u952E:"keydown",\u952E\u5165:"keydown",\u677E\u952E:"keyup",\u9F20\u6807\u8FDB\u5165:"mouseover",\u9F20\u6807\u79FB\u5165:"mouseover",\u9F20\u6807\u79BB\u5F00:"mouseout",\u9F20\u6807\u79FB\u51FA:"mouseout",\u7126\u70B9:"focus",\u805A\u7126:"focus",\u5931\u7126:"blur",\u6A21\u7CCA:"blur",\u52A0\u8F7D:"load",\u8F7D\u5165:"load",\u6EDA\u52A8:"scroll"},fr:{clic:"click",cliquer:"click",click:"click",saisie:"input",entr\u00E9e:"input",changement:"change",changer:"change",soumettre:"submit",soumission:"submit",envoi:"submit","touche bas":"keydown","touche haut":"keyup","souris dessus":"mouseover","souris dehors":"mouseout",focus:"focus",focaliser:"focus",d\u00E9focus:"blur",d\u00E9focaliser:"blur",chargement:"load",charger:"load",d\u00E9filement:"scroll",d\u00E9filer:"scroll"},de:{klick:"click",klicken:"click",click:"click",eingabe:"input",eingeben:"input",\u00E4nderung:"change",\u00E4ndern:"change",absenden:"submit",einreichen:"submit","taste runter":"keydown","taste hoch":"keyup","maus \xFCber":"mouseover","maus raus":"mouseout",fokus:"focus",fokussieren:"focus",defokussieren:"blur",unsch\u00E4rfe:"blur",laden:"load",ladung:"load",scrollen:"scroll",bl\u00E4ttern:"scroll"},id:{klik:"click",click:"click",masukan:"input",input:"input",ubah:"change",perubahan:"change",kirim:"submit","tekan tombol":"keydown","lepas tombol":"keyup","mouse masuk":"mouseover","mouse keluar":"mouseout",fokus:"focus",blur:"blur",muat:"load",memuat:"load",gulir:"scroll",menggulir:"scroll"},bn:{\u0995\u09CD\u09B2\u09BF\u0995:"click",\u0987\u09A8\u09AA\u09C1\u099F:"input",\u099C\u09AE\u09BE:"submit",\u09B2\u09CB\u09A1:"load",\u09B8\u09CD\u0995\u09CD\u09B0\u09CB\u09B2:"scroll",\u09B0\u09BF\u09B8\u09BE\u0987\u099C:"resize",\u099D\u09BE\u09AA\u09B8\u09BE:"blur",\u09AB\u09CB\u0995\u09BE\u09B8:"focus",\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8:"change"},qu:{click:"click","\xF1it'iy":"click",\u00F1itiy:"click",yaykuchiy:"input",yaykuy:"input",tikray:"change","t'ikray":"change",apachiy:"submit",kachay:"submit","llave uray":"keydown","llave hawa":"keyup","q'away":"focus",qhaway:"focus",paqariy:"blur","mana q'away":"blur",cargay:"load",apakuy:"load",apamuy:"load",kunray:"scroll",muyuy:"scroll",hatun_kay:"resize"},sw:{bofya:"click",click:"click",kubofya:"click",ingiza:"input",kubadilisha:"change",mabadiliko:"change",tuma:"submit",kutuma:"submit","bonyeza chini":"keydown","bonyeza juu":"keyup","panya juu":"mouseover","panya nje":"mouseout",lenga:"focus",kulenga:"focus",blur:"blur",pakia:"load",kupakia:"load",sogeza:"scroll",kusogeza:"scroll"}}}});function zp(e){return O4(e)}function at(e,t){return M4(e,t)}function Br(){return yt()}function av(e){return ar(e)}function ov(e){_4(e)}var $t=h({"src/tokenizers/index.ts"(){"use strict";w(),On(),Ai(),Ti(),Fn(),dr(),ea(),sa(),S()}});function kp(e,t){return!t||t.length===0||t.includes(e)||t.includes("expression")?!0:e==="property-path"?t.some(r=>["selector","reference","expression"].includes(r)):!1}var uv=h({"src/parser/utils/type-validation.ts"(){"use strict"}});function sv(e,t){return e.possessive?.keywords?.[t]}var lv=h({"src/parser/utils/possessive-keywords.ts"(){"use strict"}});function cv(e,t){return ee.matchPattern(e,t)}function pv(e,t){return ee.matchBest(e,t)}var Vt,Fr,ee,Pr=h({"src/parser/pattern-matcher.ts"(){"use strict";pa(),uv(),lv(),w(),Vt=class Ut{constructor(){this.stemMatchCount=0,this.totalKeywordMatches=0}matchPattern(t,r){let n=t.mark(),i=new Map;if(this.currentProfile=oe(r.language),this.stemMatchCount=0,this.totalKeywordMatches=0,!this.matchTokenSequence(t,r.template.tokens,i))return t.reset(n),null;let o=this.calculateConfidence(r,i);return this.applyExtractionRules(r,i),{pattern:r,captured:i,consumedTokens:t.position()-n.position,confidence:o}}matchBest(t,r){let n=[];for(let a of r){let o=t.mark(),u=this.matchPattern(t,a);u&&n.push(u),t.reset(o)}if(n.length===0)return null;n.sort((a,o)=>{let u=o.pattern.priority-a.pattern.priority;return u!==0?u:o.confidence-a.confidence});let i=n[0];return this.matchPattern(t,i.pattern),i}matchTokenSequence(t,r,n){let i=r[0],a=i?.type==="literal"&&(i.value==="and"||i.value==="then"||i.alternatives?.includes("and")||i.alternatives?.includes("then"));if(this.currentProfile?.code==="ar"&&!a)for(;t.peek()?.kind==="conjunction";)t.advance();for(let o of r)if(!this.matchPatternToken(t,o,n)){if(this.isOptional(o))continue;return!1}return!0}matchPatternToken(t,r,n){switch(r.type){case"literal":return this.matchLiteralToken(t,r);case"role":return this.matchRoleToken(t,r,n);case"group":return this.matchGroupToken(t,r,n);default:return!1}}matchLiteralToken(t,r){let n=t.peek();if(!n)return!1;let i=this.getMatchType(n,r.value);if(i!=="none")return this.totalKeywordMatches++,i==="stem"&&this.stemMatchCount++,t.advance(),!0;if(r.alternatives)for(let a of r.alternatives){let o=this.getMatchType(n,a);if(o!=="none")return this.totalKeywordMatches++,o==="stem"&&this.stemMatchCount++,t.advance(),!0}return!1}matchRoleToken(t,r,n){this.skipNoiseWords(t);let i=t.peek();if(!i)return r.optional||!1;let a=this.tryMatchPossessiveExpression(t);if(a)return r.expectedTypes&&r.expectedTypes.length>0&&!r.expectedTypes.includes(a.type)&&!r.expectedTypes.includes("expression")?r.optional||!1:(n.set(r.role,a),!0);let o=this.tryMatchMethodCallExpression(t);if(o)return r.expectedTypes&&r.expectedTypes.length>0&&!r.expectedTypes.includes(o.type)&&!r.expectedTypes.includes("expression")?r.optional||!1:(n.set(r.role,o),!0);let u=this.tryMatchPossessiveSelectorExpression(t);if(u)return r.expectedTypes&&r.expectedTypes.length>0&&!kp(u.type,r.expectedTypes)?r.optional||!1:(n.set(r.role,u),!0);let s=this.tryMatchPropertyAccessExpression(t);if(s)return r.expectedTypes&&r.expectedTypes.length>0&&!r.expectedTypes.includes(s.type)&&!r.expectedTypes.includes("expression")?r.optional||!1:(n.set(r.role,s),!0);let l=this.tryMatchSelectorPropertyExpression(t);if(l)return r.expectedTypes&&r.expectedTypes.length>0&&!kp(l.type,r.expectedTypes)?r.optional||!1:(n.set(r.role,l),!0);let c=this.tokenToSemanticValue(i);return!c||r.expectedTypes&&r.expectedTypes.length>0&&!r.expectedTypes.includes(c.type)?r.optional||!1:(n.set(r.role,c),t.advance(),!0)}tryMatchPossessiveExpression(t){let r=t.peek();if(!r||!this.currentProfile)return null;let n=(r.normalized||r.value).toLowerCase(),i=sv(this.currentProfile,n);if(!i)return null;let a=t.mark();t.advance();let o=t.peek();if(!o)return t.reset(a),null;if(o.kind==="identifier"||o.kind==="keyword"&&!this.isStructuralKeyword(o.value)||o.kind==="selector"&&o.value.startsWith("*")||o.kind==="selector"&&o.value.startsWith("@")||o.kind==="selector"&&o.value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(o.value)){t.advance();let u=o.value;o.kind==="selector"&&u.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(u)&&(u=u.substring(1));let s=u;for(;t.peek()?.kind==="selector"&&t.peek().value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(t.peek().value);)s+=t.peek().value,t.advance();let l=t.peek();return l?.kind==="literal"&&l.value.startsWith("(")&&(s+=l.value,t.advance()),Tr(Ae(i),s)}return t.reset(a),null}isStructuralKeyword(t){return new Set(["into","in","to","from","at","by","with","without","before","after","of","as","on","then","end","else","if","repeat","while","for","toggle","add","remove","put","set","show","hide","increment","decrement","send","trigger","call"]).has(t.toLowerCase())}tryMatchMethodCallExpression(t){let r=t.peek();if(!r||r.kind!=="selector")return null;let n=t.mark();t.advance();let i=t.peek();if(!i||i.kind!=="operator"||i.value!==".")return t.reset(n),null;t.advance();let a=t.peek();if(!a||a.kind!=="identifier")return t.reset(n),null;t.advance();let o=t.peek();if(!o||o.kind!=="punctuation"||o.value!=="(")return t.reset(n),null;t.advance();let u=[];for(;!t.isAtEnd()&&u.length<Ut.MAX_METHOD_ARGS;){let l=t.peek();if(!l)break;if(l.kind==="punctuation"&&l.value===")"){t.advance();break}if(l.kind==="punctuation"&&l.value===","){t.advance();continue}u.push(l.value),t.advance()}return{type:"expression",raw:`${r.value}.${a.value}(${u.join(", ")})`}}tryMatchPropertyAccessExpression(t){let r=t.peek();if(!r||r.kind!=="identifier"&&r.kind!=="keyword")return null;let n=t.mark();t.advance();let i=t.peek();if(!i||i.kind!=="operator"||i.value!==".")return t.reset(n),null;t.advance();let a=t.peek();if(!a||a.kind!=="identifier")return t.reset(n),null;t.advance();let o=`${r.value}.${a.value}`,u=1;for(;!t.isAtEnd()&&u<Ut.MAX_PROPERTY_DEPTH;){let l=t.peek();if(!l||l.kind!=="operator"||l.value!==".")break;t.advance();let c=t.peek();if(!c||c.kind!=="identifier")break;t.advance(),o+=`.${c.value}`,u++}let s=t.peek();if(s&&s.kind==="punctuation"&&s.value==="("){t.advance();let l=[],c=0;for(;!t.isAtEnd()&&l.length<Ut.MAX_METHOD_ARGS;){let m=t.peek();if(!m)break;if(m.kind==="punctuation"&&m.value===")"){if(c===0){t.advance();break}c--}if(m.kind==="punctuation"&&m.value==="("&&c++,m.kind==="punctuation"&&m.value===","){t.advance();continue}l.push(m.value),t.advance()}return{type:"expression",raw:`${o}(${l.join(", ")})`}}return{type:"expression",raw:o}}tryMatchPossessiveSelectorExpression(t){let r=t.peek();if(!r||r.kind!=="selector")return null;let n=t.mark();t.advance();let i=t.peek();if(!i||i.kind!=="punctuation"||i.value!=="'s")return t.reset(n),null;t.advance();let a=t.peek();return!a||a.kind!=="selector"&&a.kind!=="identifier"?(t.reset(n),null):(t.advance(),Tr(it(r.value),a.value))}tryMatchSelectorPropertyExpression(t){let r=t.peek();if(!r||r.kind!=="selector"||!r.value.startsWith("#"))return null;let n=t.mark();t.advance();let i=t.peek();if(!i||i.kind!=="selector"||!i.value.startsWith("."))return t.reset(n),null;let a=t.peek(1);a&&a.kind,t.advance();let o=i.value.slice(1);return Tr(it(r.value),o)}matchGroupToken(t,r,n){let i=t.mark(),a=new Set(n.keys());if(!this.matchTokenSequence(t,r.tokens,n)){t.reset(i);for(let u of n.keys())a.has(u)||n.delete(u);return r.optional||!1}return!0}getMatchType(t,r){return t.value===r?"exact":t.normalized===r?"normalized":t.stem===r&&t.stemConfidence!==void 0&&t.stemConfidence>=.7?"stem":t.kind==="keyword"&&t.value.toLowerCase()===r.toLowerCase()?"case-insensitive":"none"}tokenToSemanticValue(t){switch(t.kind){case"selector":return it(t.value);case"literal":return this.parseLiteralValue(t.value);case"keyword":let r=(t.normalized||t.value).toLowerCase();return gp(r)?Ae(r):V(t.normalized||t.value);case"identifier":if(t.value.startsWith(":"))return Ae(t.value);let n=t.value.toLowerCase();return gp(n)?Ae(n):{type:"expression",raw:t.value};case"url":return V(t.value,"string");default:return null}}parseLiteralValue(t){if(t.startsWith('"')||t.startsWith("'")||t.startsWith("`")||t.startsWith("\u300C")){let i=t.slice(1,-1);return V(i,"string")}if(t==="true")return V(!0,"boolean");if(t==="false")return V(!1,"boolean");let r=t.match(/^(\d+(?:\.\d+)?)(ms|s|m|h)?$/);if(r){let i=parseFloat(r[1]);return r[2]?V(t,"duration"):V(i,"number")}let n=parseFloat(t);return isNaN(n)?V(t,"string"):V(n,"number")}applyExtractionRules(t,r){for(let[n,i]of Object.entries(t.extraction))r.has(n)||(i.value!==void 0?r.set(n,{type:"literal",value:i.value}):i.default&&r.set(n,i.default))}isOptional(t){return t.type!=="literal"&&t.optional===!0}calculateConfidence(t,r){let n=0,i=0,a=l=>t.extraction?.[l]?.default!==void 0;for(let l of t.template.tokens)if(l.type==="role")i+=1,r.has(l.role)&&(n+=1);else if(l.type==="group"){for(let c of l.tokens)if(c.type==="role"){let p=a(c.role),m=.8;i+=m,r.has(c.role)?n+=m:p&&(n+=m*.6)}}let o=i>0?n/i:1;if(this.stemMatchCount>0&&this.totalKeywordMatches>0){let l=this.stemMatchCount/this.totalKeywordMatches*.15;o=Math.max(.5,o-l)}let u=this.calculateVSOConfidenceBoost(t);o=Math.min(1,o+u);let s=this.arabicPrepositionDisambiguation(t,r);return o=Math.max(0,Math.min(1,o+s)),o}calculateVSOConfidenceBoost(t){if(t.language!=="ar")return 0;let r=t.template.tokens[0];if(!r||r.type!=="literal")return 0;let n=new Set(["\u0628\u062F\u0644","\u063A\u064A\u0631","\u0623\u0636\u0641","\u0623\u0632\u0644","\u0636\u0639","\u0627\u062C\u0639\u0644","\u0639\u064A\u0646","\u0632\u062F","\u0627\u0646\u0642\u0635","\u0633\u062C\u0644","\u0623\u0638\u0647\u0631","\u0623\u062E\u0641","\u0634\u063A\u0644","\u0623\u0631\u0633\u0644","\u0631\u0643\u0632","\u0634\u0648\u0634","\u062A\u0648\u0642\u0641","\u0627\u0646\u0633\u062E","\u0627\u062D\u0630\u0641","\u0627\u0635\u0646\u0639","\u0627\u0646\u062A\u0638\u0631","\u0627\u0646\u062A\u0642\u0627\u0644","\u0623\u0648"]);if(n.has(r.value))return .15;if(r.alternatives){for(let i of r.alternatives)if(n.has(i))return .15}return 0}arabicPrepositionDisambiguation(t,r){if(t.language!=="ar")return 0;let n=0,i={patient:["\u0639\u0644\u0649"],destination:["\u0625\u0644\u0649","\u0627\u0644\u0649"],source:["\u0645\u0646"],agent:["\u0645\u0646"],manner:["\u0628"],style:["\u0628"],goal:["\u0625\u0644\u0649","\u0627\u0644\u0649"],method:["\u0628"]};for(let[a,o]of r.entries()){let u=i[a];if(!u||u.length===0)continue;let s="metadata"in o?o.metadata:void 0;if(s&&typeof s.prepositionValue=="string"){let l=s.prepositionValue;u.includes(l)?n+=.1:n-=.1}}return Math.max(-.1,Math.min(.1,n))}skipNoiseWords(t){let r=t.peek();if(!r)return;let n=r.value.toLowerCase();if(Ut.ENGLISH_NOISE_WORDS.has(n)){let i=t.mark();t.advance();let a=t.peek();if(a&&(a.kind==="selector"||a.kind==="identifier"))return;t.reset(i)}n==="class"&&t.advance()}extractEventModifiers(t){let r={},n=!1;for(;!t.isAtEnd();){let i=t.peek();if(!i||i.kind!=="event-modifier")break;let a=i.metadata;if(!a)break;switch(n=!0,a.modifierName){case"once":r.once=!0;break;case"debounce":typeof a.value=="number"&&(r.debounce=a.value);break;case"throttle":typeof a.value=="number"&&(r.throttle=a.value);break;case"queue":(a.value==="first"||a.value==="last"||a.value==="all"||a.value==="none")&&(r.queue=a.value);break}t.advance()}return n?r:void 0}},Vt.MAX_PROPERTY_DEPTH=10,Vt.MAX_METHOD_ARGS=20,Vt.ENGLISH_NOISE_WORDS=new Set(["the","a","an"]),Fr=Vt,ee=new Fr}});function ve(e,t){return jr.render(e,t)}function Lr(e){return jr.renderExplicit(e)}var ma,jr,da=h({"src/explicit/renderer.ts"(){"use strict";w(),$t(),ma=class{render(e,t){if(e.kind==="compound")return this.renderCompound(e,t);let r=W4(t,e.action);if(r.length===0)return this.renderExplicit(e);let n=this.findBestPattern(e,r);return n?this.renderWithPattern(e,n):this.renderExplicit(e)}renderCompound(e,t){let r=e.statements.map(i=>this.render(i,t)),n=this.getChainWord(e.chainType,t);return r.join(` ${n} `)}getChainWord(e,t){let r=oe(t);return r?.keywords?r.keywords[e]?.primary??e:e}renderExplicit(e){return K(e)}supportedLanguages(){return Br()}findBestPattern(e,t){let r=t.map(n=>{let i=n.priority;for(let a of n.template.tokens)a.type==="role"&&(e.roles.has(a.role)?i+=10:a.optional||(i-=50));return n.language==="en"&&((n.id.includes("standard")||n.id.includes("en-source"))&&(i+=20),(n.id.includes("-when")||n.id.includes("-if")||n.id.includes("-upon"))&&(i-=15)),{pattern:n,score:i}});return r.sort((n,i)=>i.score-n.score),r.length>0?r[0].pattern:null}renderWithPattern(e,t){let r=[],n=t.language;for(let i of t.template.tokens){let a=this.renderPatternToken(i,e,n);a!==null&&r.push(a)}if(e.kind==="event-handler"){let i=e;if(i.body&&i.body.length>0){let a=i.body.map(o=>this.render(o,n));r.push(a.join(" "))}}return r.join(" ")}renderPatternToken(e,t,r){switch(e.type){case"literal":return e.value;case"role":{let n=t.roles.get(e.role);return n?this.valueToNaturalString(n,r):(e.optional,null)}case"group":{if(!e.tokens.filter(o=>o.type==="role"&&!o.optional).every(o=>t.roles.has(o.role))&&e.optional)return null;if(e.optional&&e.tokens.find(u=>u.type==="role"&&u.role==="destination")){let u=t.roles.get("destination");if(u?.type==="reference"&&u.value==="me")return null}let i=[],a=!1;for(let o of e.tokens){let u=this.renderPatternToken(o,t,r);u!==null&&(i.push(u),o.type==="role"&&(a=!0))}return e.optional&&!a?null:i.length>0?i.join(" "):null}default:return null}}valueToNaturalString(e,t="en"){switch(e.type){case"literal":return typeof e.value=="string"&&e.dataType==="string"?`"${e.value}"`:String(e.value);case"selector":return e.value;case"reference":return this.renderReference(e,t);case"property-path":return this.renderPropertyPath(e,t);case"expression":return e.raw;case"flag":return e.name}}renderReference(e,t){let r=oe(t);return r?.references?r.references[e.value]??e.value:e.value}renderPropertyPath(e,t){let r=oe(t),n=e.property,i=e.object.type==="reference"?e.object.value:null;if(r?.possessive?.specialForms&&i){let o=r.possessive.specialForms[i];if(o){let{markerPosition:u,usePossessiveAdjectives:s}=r.possessive;return s&&u==="after-object"?`${n} ${o}`:`${o} ${n}`}}let a=this.valueToNaturalString(e.object,t);if(r?.possessive){let{marker:o,markerPosition:u,usePossessiveAdjectives:s}=r.possessive;if(s&&i&&u==="after-object")return`${n} ${a}`;if(o)switch(u){case"between":return r.usesSpaces?`${a}${o} ${n}`:`${a}${o}${n}`;case"after-object":return`${a}${o} ${n}`;case"before-property":return`${a} ${o} ${n}`}}return t==="en"||!r?.possessive?a==="me"?`my ${n}`:a==="it"?`its ${n}`:`${a}'s ${n}`:`${a} ${n}`}},jr=new ma}});function _r(e){return qe(e,{schemaLookup:Cp})}var Cp,fa=h({"src/explicit/parser.ts"(){"use strict";pr(),Cp={getSchema:Ss}}}),xp={};k(xp,{SemanticParserImpl:()=>Nr,canParse:()=>wp,createSemanticAnalyzer:()=>yv,fromExplicit:()=>Bp,getAllTranslations:()=>fv,getCommandType:()=>Ap,getSupportedLanguages:()=>bp,parse:()=>ae,parseExplicit:()=>Tp,render:()=>Rr,renderExplicit:()=>Dp,roundTrip:()=>hv,semanticParser:()=>ot,toExplicit:()=>Sp,tokenize:()=>mv,translate:()=>dv});function ae(e,t){return ot.parse(e,t)}function wp(e,t){return ot.canParse(e,t)}function Ap(e,t){try{return ot.parse(e,t).action}catch{return null}}function mv(e,t){return at(e,t)}function bp(){return Br()}function dv(e,t,r){let n=ae(e,t);return Rr(n,r)}function fv(e,t){let r=ae(e,t),n={};for(let i of bp())try{n[i]=Rr(r,i)}catch{}return n}function yv(){return{analyze(e,t){try{return{node:ae(e,t),confidence:1,success:!0}}catch(r){return{node:null,confidence:0,success:!1,error:r}}}}}function Rr(e,t){return ve(e,t)}function Dp(e){return ve(e,"explicit")}function Tp(e){return _r(e)}function Sp(e,t){let r=ae(e,t);return Dp(r)}function Bp(e,t){let r=Tp(e);return Rr(r,t)}function hv(e,t){let r=Sp(e,t);return Bp(r,t)}var _e,Nr,ot,ya=h({"src/parser/semantic-parser.ts"(){"use strict";pa(),$t(),w(),Pr(),Ep(),da(),fa(),_e=class he{parse(t,r){let{modifiers:n,remainingInput:i}=this.extractStandaloneModifiers(t,r),a=i||t,o=at(a,r),u=Fe(r);if(u.length===0)throw new Error(`No patterns available for language: ${r}`);let s=[...u].sort((y,E)=>E.priority-y.priority),l=s.filter(y=>y.command==="on"),c=ee.matchBest(o,l);if(c){let y=this.buildEventHandler(c,o,r);return n?this.applyModifiers(y,n):y}let p=s.filter(y=>y.command!=="on"),m=ee.matchBest(o,p);if(m)return this.buildCommand(m,r);let d=this.trySOVEventExtraction(a,r,s);if(d)return n?this.applyModifiers(d,n):d;let f=this.tryCompoundCommandParsing(o,p,r);if(f)return f;throw new Error(`Could not parse input in ${r}: ${a}`)}canParse(t,r){try{return this.parse(t,r),!0}catch{return!1}}supportedLanguages(){return Br()}buildCommand(t,r){if(!t)throw new Error("No match to build command from");let n={};for(let[i,a]of t.captured)n[i]=a;return qt(t.pattern.command,n,{sourceLanguage:r,patternId:t.pattern.id,confidence:t.confidence})}buildEventHandler(t,r,n){if(!t)throw new Error("No match to build event handler from");let i=t.captured.get("event");if(!i)throw new Error("Event handler pattern matched but no event captured");let a=ee.extractEventModifiers(r),o=this.extractOrConjunctionEvents(r,n),u=i;o.length>0&&i.type==="literal"&&(u={type:"literal",value:[String(i.value),...o.map(p=>String("value"in p?p.value:""))].join(" or ")});let s,l=t.captured.get("action");if(l&&l.type==="literal"){let c=l.value,p={};for(let[f,y]of t.captured)f!=="event"&&f!=="action"&&f!=="continues"&&(p[f]=y);let m=qt(c,p,{sourceLanguage:n,patternId:t.pattern.id,confidence:t.confidence}),d=t.captured.get("continues");if(d&&d.type==="literal"&&d.value==="then"){let f=Fe(n).filter(C=>C.command!=="on").sort((C,b)=>b.priority-C.priority),y=Fe(n).filter(C=>C.id.startsWith("grammar-")&&C.id.includes("-continuation")).sort((C,b)=>b.priority-C.priority),E=this.parseBodyWithGrammarPatterns(r,f,y,n);E.length>0?s=[m,...E]:s=[m]}else s=[m]}else{let c=Fe(n).filter(p=>p.command!=="on").sort((p,m)=>m.priority-p.priority);s=this.parseBodyWithClauses(r,c,n)}return la(u,s,a,{sourceLanguage:n,patternId:t.pattern.id,confidence:t.confidence})}parseBodyWithClauses(t,r,n){let i=[],a=[];for(;!t.isAtEnd();){let o=t.peek();if(!o)break;let u=o.kind==="conjunction"||o.kind==="keyword"&&this.isThenKeyword(o.value,n),s=o.kind==="keyword"&&this.isEndKeyword(o.value,n);if(u){if(a.length>0){let l=this.parseClause(a,r,n);i.push(...l),a.length=0}t.advance();continue}if(s){if(a.length>0){let l=this.parseClause(a,r,n);i.push(...l)}t.advance();break}a.push(o),t.advance()}if(a.length>0){let o=this.parseClause(a,r,n);i.push(...o)}return i.length>1?[ca(i,"then",{sourceLanguage:n})]:i}parseClause(t,r,n){if(t.length===0)return[];let i=new xe(t,n),a=[];for(;!i.isAtEnd();){let o=ee.matchBest(i,r);o?a.push(this.buildCommand(o,n)):i.advance()}if(a.length===0){let o=this.parseSOVClauseByVerbAnchoring(t,n);if(o.length>0)return o}return a}static buildVerbLookup(t){let r=new Map;for(let[n,i]of Object.entries(t.keywords))if(!["on","if","else","when","where","while","for","end","then","and"].includes(n)&&(r.set(i.primary.toLowerCase(),n),i.alternatives))for(let a of i.alternatives)r.set(a.toLowerCase(),n);return r}static buildMarkerToRoleLookup(t){let r=new Map;for(let[n,i]of Object.entries(t.roleMarkers))if(i&&(r.set(i.primary,n),i.alternatives))for(let a of i.alternatives)r.has(a)||r.set(a,n);return r}parseSOVClauseByVerbAnchoring(t,r){let n=oe(r);if(!n||n.wordOrder!=="SOV")return[];let i=he.buildVerbLookup(n),a=he.buildMarkerToRoleLookup(n),o=[],u=0;for(;u<t.length;){let s=-1,l="";for(let f=u;f<t.length;f++){let y=t[f],E=i.get(y.value.toLowerCase()),C=y.normalized?i.get(y.normalized.toLowerCase()):void 0,b=E||C;if(b){s=f,l=b;break}}if(s===-1)break;let c=t.slice(u,s),p=t.length;for(let f=s+1;f<t.length;f++){let y=t[f];if(y.kind==="conjunction"||this.isThenKeyword(y.value,r)){p=f;break}if(f>s+1&&(i.get(y.value.toLowerCase())||(y.normalized?i.get(y.normalized.toLowerCase()):void 0))){p=f;break}}let m=t.slice(s+1,p),d=this.extractRolesFromMarkedTokens(c,m,a,l,r);if(o.push(qt(l,d,{sourceLanguage:r,confidence:.7})),u=p,u<t.length){let f=t[u];(f.kind==="conjunction"||this.isThenKeyword(f.value,r))&&u++}}return o}extractRolesFromMarkedTokens(t,r,n,i,a){let o={},u=s=>{let l=[];for(let c of s){let p=n.get(c.value);if(p&&c.kind==="particle"&&l.length>0){let m=this.tokensToSemanticValue(l);if(m){let d=this.mapRoleForCommand(p,i,o);d&&(o[d]=m)}l=[]}else l.push(c)}if(l.length>0){let c=this.tokensToSemanticValue(l);c&&(o.patient?o.destination||(o.destination=c):o.patient=c)}};return u(t),u(r),o}mapRoleForCommand(t,r,n){return n[t]?t==="patient"&&!n.destination?"destination":t==="destination"&&!n.patient?"patient":t==="source"&&!n.source?"source":null:t}tokensToSemanticValue(t){if(t.length===0)return null;let r=t.filter(a=>a.kind!=="whitespace");if(r.length===0)return null;if(r.length===1)return this.tokenToSemanticValue(r[0]);let n=r.map(a=>a.value).join(""),i=r[0];return i.kind==="selector"||i.value.startsWith("#")||i.value.startsWith(".")||i.value.startsWith("@")||i.value.startsWith("*")?it(n):i.kind==="literal"||i.value.startsWith('"')||i.value.startsWith("'")?V(n):i.kind==="reference"?Ae(n):V(n)}tokenToSemanticValue(t){let r=t.value;if(t.kind==="selector"||r.startsWith("#")||r.startsWith(".")||r.startsWith("@")||r.startsWith("*"))return it(r);if(r.startsWith('"')||r.startsWith("'"))return V(r);if(/^-?\d+(\.\d+)?$/.test(r))return V(parseFloat(r));if(r==="true"||r==="\u771F"||r==="\uCC38"||r==="do\u011Fru")return V(!0);if(r==="false"||r==="\u507D"||r==="\uAC70\uC9D3"||r==="yanl\u0131\u015F")return V(!1);let n=t.normalized?.toLowerCase();return n==="me"||n==="it"||n==="you"||n==="result"||n==="body"?Ae(n):t.kind==="reference"?Ae(t.normalized||"me"):V(r)}parseBodyWithGrammarPatterns(t,r,n,i){let a=[];for(;!t.isAtEnd();){let o=t.peek();if(o&&this.isThenKeyword(o.value,i)){t.advance();continue}if(o&&this.isEndKeyword(o.value,i)){t.advance();break}let u=!1;if(n.length>0){let s=ee.matchBest(t,n);if(s){let l=s.pattern.command,c={};for(let[d,f]of s.captured)d!=="event"&&d!=="action"&&d!=="continues"&&(c[d]=f);let p=qt(l,c,{sourceLanguage:i,patternId:s.pattern.id});a.push(p),u=!0;let m=s.captured.get("continues");if(m&&m.type==="literal"&&m.value==="then")continue}}if(!u){let s=ee.matchBest(t,r);s&&(a.push(this.buildCommand(s,i)),u=!0)}u||t.advance()}return a}tryCompoundCommandParsing(t,r,n){let i=t.tokens;if(!i.some(s=>s.kind==="conjunction"||s.kind==="keyword"&&this.isThenKeyword(s.value,n)))return null;let o=new xe(i,n),u=this.parseBodyWithClauses(o,r,n);return u.length===0?null:u.length===1?u[0]:ca(u,"then",{sourceLanguage:n,confidence:.65})}trySOVEventExtraction(t,r,n){let i=he.SOV_EVENT_MARKERS[r];if(!i)return null;let o=at(t,r).tokens,u=Sr[r],s=new Set;if(u)for(let W of Object.keys(u))s.add(W.toLowerCase());let l=he.SOV_SOURCE_MARKERS[r],c=-1,p="",m="",d=1;for(let W=0;W<o.length;W++){let U=o[W],Ee=U.value.toLowerCase(),ze=Ee,Ne="",qr=Ee.indexOf("[");qr>0&&(ze=Ee.slice(0,qr),Ne=U.value.slice(qr));let $r=U.normalized?.toLowerCase(),_a=$r&&he.KNOWN_EVENTS.has($r),Ra=s.has(Ee)||s.has(ze),pm=he.KNOWN_EVENTS.has(ze);if(_a||Ra||pm){let lt;if(_a?lt=$r:Ra?lt=u?.[Ee]??u?.[ze]??ze:lt=ze,i.size>0){let Yt=1,Vr=o[W+1];Vr&&Vr.kind==="selector"&&Vr.value.startsWith("[")&&(Yt=2);let Jt=o[W+Yt];if(Jt&&(Jt.kind==="particle"||Jt.kind==="keyword")&&i.has(Jt.value)){c=W,p=lt,m=Ne||(Yt===2?o[W+1].value:""),d=Yt+1;break}}else{c=W,p=lt,m=Ne,d=1;break}}}if(c===-1)return null;let f=new Set;for(let W=c;W<c+d;W++)f.add(W);if(l){let W=c+d;if(W<o.length){let U=o[W];(U.kind==="particle"||U.kind==="keyword")&&l.markers.has(U.value)&&f.add(W)}for(let U=0;U<c;U++){let Ee=o[U],ze=Ee.value.toLowerCase(),Ne=Ee.normalized?.toLowerCase();if(l.windowTokens.has(ze)||Ne&&l.windowTokens.has(Ne)){f.add(U);break}}}let y=o.filter((W,U)=>!f.has(U));if(y.length===0)return null;let E=n.filter(W=>W.command!=="on"),C=new xe(y,r),b=this.parseBodyWithClauses(C,E,r);if(b.length===0)return null;let ge={sourceLanguage:r,confidence:.75};return m&&(ge.keyFilter=m),la({type:"literal",value:p},b,void 0,ge)}isThenKeyword(t,r){let n={en:new Set(["then"]),ja:new Set(["\u305D\u308C\u304B\u3089","\u6B21\u306B","\u305D\u3057\u3066"]),ar:new Set(["\u062B\u0645","\u0628\u0639\u062F\u0647\u0627","\u062B\u0645\u0651"]),es:new Set(["entonces","luego","despu\xE9s"]),ko:new Set(["\uADF8\uB2E4\uC74C","\uADF8\uB9AC\uACE0","\uADF8\uB7F0\uD6C4","\uADF8\uB7EC\uBA74"]),zh:new Set(["\u7136\u540E","\u63A5\u7740","\u4E4B\u540E"]),tr:new Set(["sonra","ard\u0131ndan","daha sonra"]),pt:new Set(["ent\xE3o","depois","logo"]),fr:new Set(["puis","ensuite","alors"]),de:new Set(["dann","danach","anschlie\xDFend"]),id:new Set(["lalu","kemudian","setelah itu"]),tl:new Set(["pagkatapos","tapos"]),bn:new Set(["\u09A4\u09BE\u09B0\u09AA\u09B0","\u09AA\u09B0\u09C7"]),qu:new Set(["chaymantataq","hinaspa","chaymanta","chayqa"]),sw:new Set(["kisha","halafu","baadaye"])};return(n[r]||n.en).has(t.toLowerCase())}isEndKeyword(t,r){let n={en:new Set(["end"]),ja:new Set(["\u7D42\u308F\u308A","\u7D42\u4E86","\u304A\u308F\u308A"]),ar:new Set(["\u0646\u0647\u0627\u064A\u0629","\u0627\u0646\u062A\u0647\u0649","\u0622\u062E\u0631"]),es:new Set(["fin","final","terminar"]),ko:new Set(["\uB05D","\uC885\uB8CC","\uB9C8\uCE68"]),zh:new Set(["\u7ED3\u675F","\u7EC8\u6B62","\u5B8C"]),tr:new Set(["son","biti\u015F","bitti"]),pt:new Set(["fim","final","t\xE9rmino"]),fr:new Set(["fin","terminer","finir"]),de:new Set(["ende","beenden","fertig"]),id:new Set(["selesai","akhir","tamat"]),tl:new Set(["wakas","tapos"]),bn:new Set(["\u09B8\u09AE\u09BE\u09AA\u09CD\u09A4"]),qu:new Set(["tukukuy","tukuy","puchukay"]),sw:new Set(["mwisho","maliza","tamati"])};return(n[r]||n.en).has(t.toLowerCase())}extractStandaloneModifiers(t,r){let i=at(t,r).tokens;if(i.length===0)return{modifiers:null,remainingInput:null};let o=i[0].value.toLowerCase(),u=he.STANDALONE_MODIFIERS[o];if(!u)return{modifiers:null,remainingInput:null};let s={},l=1;if(u==="once")s.once=!0;else{let d=1;if(d<i.length){let f=i[d];(f.kind==="keyword"||f.kind==="particle")&&(d++,l++)}if(d<i.length){let f=i[d];if(f.kind==="literal"){let y=f.value.match(/^(\d+)(ms|s|m)?$/);if(y){let E=parseInt(y[1],10),C=y[2]||"ms";C==="s"?E*=1e3:C==="m"&&(E*=6e4),s[u]=E,l=d+1}}}s[u]||(s[u]=u==="debounce"?300:100)}let c=i.slice(l);if(c.length===0)return{modifiers:null,remainingInput:null};let p=c[0].position.start,m=t.slice(p);return{modifiers:s,remainingInput:m}}applyModifiers(t,r){return{...t,eventModifiers:{...t.eventModifiers,...r}}}extractOrConjunctionEvents(t,r){let n=[];for(;;){let i=t.mark(),a=t.peek();if(!a)break;let o=(a.normalized||a.value).toLowerCase();if(!he.OR_KEYWORDS.has(o)){t.reset(i);break}t.advance();let u=t.peek();if(!u){t.reset(i);break}let s=(u.normalized||u.value).toLowerCase();t.advance(),n.push({type:"literal",value:s})}return n}},_e.KNOWN_EVENTS=new Set(["click","dblclick","input","change","submit","keydown","keyup","keypress","mouseover","mouseout","mousedown","mouseup","focus","blur","load","scroll","resize","contextmenu"]),_e.SOV_EVENT_MARKERS={ja:new Set(["\u3067"]),ko:new Set,tr:new Set(["de","da","te","ta"]),bn:new Set(["\u098F"]),qu:new Set(["pi"])},_e.SOV_SOURCE_MARKERS={ja:{markers:new Set(["\u304B\u3089"]),windowTokens:new Set(["\u30A6\u30A3\u30F3\u30C9\u30A6","\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8","window","document"])},ko:{markers:new Set(["\uC5D0\uC11C"]),windowTokens:new Set(["\uCC3D","\uC708\uB3C4\uC6B0","\uBB38\uC11C","window","document"])},tr:{markers:new Set(["den","dan","ten","tan"]),windowTokens:new Set(["pencere","belge","window","document"])},bn:{markers:new Set(["\u09A5\u09C7\u0995\u09C7","\u09AE\u09A7\u09CD\u09AF\u09C7"]),windowTokens:new Set(["\u0989\u0987\u09A8\u09CD\u09A1\u09CB","\u09A1\u0995\u09C1\u09AE\u09C7\u09A8\u09CD\u099F","window","document"])},qu:{markers:new Set(["manta"]),windowTokens:new Set(["k_iri","ventana","window","document"])}},_e.STANDALONE_MODIFIERS={once:"once",debounced:"debounce",debounce:"debounce",throttled:"throttle",throttle:"throttle"},_e.OR_KEYWORDS=new Set(["or","\u0623\u0648","o","ou","oder","atau","atau","\u6216","\u307E\u305F\u306F","\uB610\uB294","veya","\u0985\u09A5\u09AC\u09BE","utaq","au","\u0430\u0431\u043E","\u0438\u043B\u0438","ho\u1EB7c","lub","\u05D0\u05D5","\u0E2B\u0E23\u0E37\u0E2D","o"]),Nr=_e,ot=new Nr}});w(),Fn(),ht(),N("ar",sr,$e),w(),rs(),lr(),N("bn",Ln,Et),w(),fs(),zt(),N("de",Rn,He),w(),On(),Ge(),Ol(),N("en",cr,Le),rn("en",Dl()),w(),dr(),Ct(),N("es",xt,Ue),w(),dr();var Fp={code:"es-MX",name:"Spanish (Mexico)",nativeName:"Espa\xF1ol (M\xE9xico)",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",extends:"es",verb:{position:"start",subjectDrop:!0},references:{me:"yo",it:"ello",you:"t\xFA",result:"resultado",event:"evento",target:"objetivo",body:"cuerpo"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mi",it:"su",you:"tu"},keywords:{mi:"me",tu:"you",su:"it"}},roleMarkers:{destination:{primary:"en",alternatives:["sobre","a"],position:"before"},source:{primary:"de",alternatives:["desde"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"con",position:"before"}},keywords:{toggle:{primary:"alternar",alternatives:["conmutar","switchear"],normalized:"toggle"},add:{primary:"agregar",alternatives:["a\xF1adir"],normalized:"add"},remove:{primary:"quitar",alternatives:["eliminar","borrar","sacar"],normalized:"remove"},put:{primary:"poner",alternatives:["colocar","meter"],normalized:"put"},append:{primary:"anexar",normalized:"append"},prepend:{primary:"anteponer",normalized:"prepend"},take:{primary:"tomar",alternatives:["agarrar"],normalized:"take"},make:{primary:"hacer",alternatives:["crear"],normalized:"make"},clone:{primary:"clonar",alternatives:["duplicar"],normalized:"clone"},swap:{primary:"intercambiar",alternatives:["permutar"],normalized:"swap"},morph:{primary:"transformar",alternatives:["convertir"],normalized:"morph"},set:{primary:"establecer",alternatives:["fijar","definir","setear"],normalized:"set"},get:{primary:"obtener",alternatives:["conseguir"],normalized:"get"},increment:{primary:"incrementar",alternatives:["aumentar","subir"],normalized:"increment"},decrement:{primary:"decrementar",alternatives:["disminuir","bajar"],normalized:"decrement"},log:{primary:"registrar",alternatives:["imprimir","loguear"],normalized:"log"},show:{primary:"mostrar",alternatives:["ense\xF1ar"],normalized:"show"},hide:{primary:"ocultar",alternatives:["esconder"],normalized:"hide"},transition:{primary:"transici\xF3n",alternatives:["animar"],normalized:"transition"},on:{primary:"en",alternatives:["al"],normalized:"on"},trigger:{primary:"disparar",alternatives:["activar"],normalized:"trigger"},send:{primary:"enviar",alternatives:["mandar"],normalized:"send"},focus:{primary:"enfocar",normalized:"focus"},blur:{primary:"desenfocar",normalized:"blur"},click:{primary:"clic",alternatives:["hacer clic","dar clic"],normalized:"click"},hover:{primary:"sobrevolar",alternatives:["pasar encima"],normalized:"hover"},submit:{primary:"env\xEDo",alternatives:["someter"],normalized:"submit"},input:{primary:"entrada",alternatives:["introducir"],normalized:"input"},change:{primary:"cambio",alternatives:["cambiar"],normalized:"change"},go:{primary:"ir",alternatives:["navegar"],normalized:"go"},wait:{primary:"esperar",alternatives:["ahorita","aguantar"],normalized:"wait"},fetch:{primary:"buscar",alternatives:["jalar","traer","recuperar"],normalized:"fetch"},settle:{primary:"estabilizar",normalized:"settle"},if:{primary:"si",normalized:"if"},when:{primary:"cuando",normalized:"when"},where:{primary:"donde",normalized:"where"},else:{primary:"sino",alternatives:["de lo contrario","si no"],normalized:"else"},repeat:{primary:"repetir",normalized:"repeat"},for:{primary:"para",normalized:"for"},while:{primary:"mientras",normalized:"while"},continue:{primary:"continuar",alternatives:["seguir"],normalized:"continue"},halt:{primary:"detener",alternatives:["parar"],normalized:"halt"},throw:{primary:"lanzar",alternatives:["aventar","arrojar"],normalized:"throw"},call:{primary:"llamar",normalized:"call"},return:{primary:"retornar",alternatives:["devolver","regresar"],normalized:"return"},then:{primary:"entonces",alternatives:["luego"],normalized:"then"},and:{primary:"y",alternatives:["adem\xE1s","tambi\xE9n"],normalized:"and"},end:{primary:"fin",alternatives:["final","terminar"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"as\xEDncrono",normalized:"async"},tell:{primary:"decir",normalized:"tell"},default:{primary:"predeterminar",alternatives:["por defecto"],normalized:"default"},init:{primary:"iniciar",alternatives:["inicializar","arrancar"],normalized:"init"},behavior:{primary:"comportamiento",normalized:"behavior"},install:{primary:"instalar",normalized:"install"},measure:{primary:"medir",normalized:"measure"},beep:{primary:"pitido",normalized:"beep"},break:{primary:"romper",normalized:"break"},copy:{primary:"copiar",normalized:"copy"},exit:{primary:"salir",normalized:"exit"},pick:{primary:"escoger",normalized:"pick"},render:{primary:"renderizar",normalized:"render"},into:{primary:"dentro",alternatives:["adentro"],normalized:"into"},before:{primary:"antes",normalized:"before"},after:{primary:"despu\xE9s",normalized:"after"},until:{primary:"hasta",normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"de",alternatives:["desde"],normalized:"from"}},eventHandler:{keyword:{primary:"al",alternatives:["cuando","en"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["desde"],position:"before"},eventMarker:{primary:"al",alternatives:["cuando"],position:"before"},temporalMarkers:["cuando","al"]}};N("es-MX",xt,Fp),w(),l0(),wt(),N("fr",mi,Xe),w(),uh(),di(),N("he",d0,fr),w(),z0(),yr(),N("hi",hi,At),w(),A0(),bt(),N("id",gi,Ye),w(),R0(),hr(),N("it",Ci,Dt),w(),Ai(),Tt(),N("ja",vr,Je),w(),Ti(),St(),N("ko",gr,Qe),w(),Z0(),Er(),N("ms",Bi,Bt),w(),ic(),zr(),N("pl",ji,Ft),w(),vc(),Pt(),N("pt",Ii,Ze),w(),bc(),Lt(),N("qu",Mi,et),w(),Fc(),kr(),N("ru",Vi,jt),w(),Rc(),_t(),N("sw",Hi,tt),w(),Mc(),Cr(),N("th",Ui,Rt),w(),Yc(),xr(),N("tl",Yi,Nt),w(),ea(),It(),N("tr",wr,rt),w(),lp(),Ar(),N("uk",ia,Ot),w(),dp(),br(),N("vi",oa,Mt),w(),sa(),Wt(),N("zh",Dr,nt),pa();function vv(){return[]}function gv(){return[{id:"toggle-bn-full",language:"bn",command:"toggle",priority:100,template:{format:"{patient} \u0995\u09C7 \u099F\u0997\u09B2 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u099F\u0997\u09B2",alternatives:["\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0}}},{id:"toggle-bn-simple",language:"bn",command:"toggle",priority:90,template:{format:"\u099F\u0997\u09B2 {patient}",tokens:[{type:"literal",value:"\u099F\u0997\u09B2",alternatives:["\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-bn-with-dest",language:"bn",command:"toggle",priority:95,template:{format:"{destination} \u098F {patient} \u0995\u09C7 \u099F\u0997\u09B2 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]},{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u099F\u0997\u09B2",alternatives:["\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{destination:{position:0},patient:{position:2}}}]}kl();function Ev(){return[{id:"toggle-es-full",language:"es",command:"toggle",priority:100,template:{format:"alternar {patient} en {target}",tokens:[{type:"literal",value:"alternar",alternatives:["cambiar","toggle"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"en",alternatives:["sobre","de"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"en",markerAlternatives:["sobre","de"],default:{type:"reference",value:"me"}}}},{id:"toggle-es-simple",language:"es",command:"toggle",priority:90,template:{format:"alternar {patient}",tokens:[{type:"literal",value:"alternar",alternatives:["cambiar","toggle"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function zv(){return[{id:"toggle-hi-full",language:"hi",command:"toggle",priority:100,template:{format:"{patient} \u0915\u094B {destination} \u092A\u0930 \u091F\u0949\u0917\u0932 \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"destination"},{type:"literal",value:"\u092A\u0930"},{type:"literal",value:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094B"]}]}]},extraction:{patient:{position:0},destination:{marker:"\u0915\u094B",position:2}}},{id:"toggle-hi-simple",language:"hi",command:"toggle",priority:90,template:{format:"{patient} \u091F\u0949\u0917\u0932 \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094B"]}]}]},extraction:{patient:{position:0},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-hi-bare",language:"hi",command:"toggle",priority:80,template:{format:"\u091F\u0949\u0917\u0932 {patient}",tokens:[{type:"literal",value:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function kv(){return[{id:"toggle-it-full",language:"it",command:"toggle",priority:100,template:{format:"commutare {patient} su {target}",tokens:[{type:"literal",value:"commutare",alternatives:["alternare","toggle","cambiare"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"su",alternatives:["in","di"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"su",markerAlternatives:["in","di"],default:{type:"reference",value:"me"}}}},{id:"toggle-it-simple",language:"it",command:"toggle",priority:90,template:{format:"commutare {patient}",tokens:[{type:"literal",value:"commutare",alternatives:["alternare","toggle","cambiare"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Cv(){return[]}function xv(){return[]}function wv(){return[{id:"toggle-pl-full",language:"pl",command:"toggle",priority:100,template:{format:"prze\u0142\u0105cz {patient} na {destination}",tokens:[{type:"literal",value:"prze\u0142\u0105cz",alternatives:["przelacz","prze\u0142\u0105czaj"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"na",alternatives:["w","dla"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"na",markerAlternatives:["w","dla"],default:{type:"reference",value:"me"}}}},{id:"toggle-pl-simple",language:"pl",command:"toggle",priority:90,template:{format:"prze\u0142\u0105cz {patient}",tokens:[{type:"literal",value:"prze\u0142\u0105cz",alternatives:["przelacz","prze\u0142\u0105czaj"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Av(){return[{id:"toggle-qu-sov",language:"qu",command:"toggle",priority:100,template:{format:"{patient} ta t'ikray",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{patient:{position:0}}},{id:"toggle-qu-simple",language:"qu",command:"toggle",priority:90,template:{format:"t'ikray {patient}",tokens:[{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-qu-with-dest",language:"qu",command:"toggle",priority:95,template:{format:"{destination} pi {patient} ta t'ikray",tokens:[{type:"role",role:"destination"},{type:"literal",value:"pi"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{destination:{position:0},patient:{position:2}}},{id:"toggle-qu-dest-man",language:"qu",command:"toggle",priority:93,template:{format:"{destination} man {patient} ta t'ikray",tokens:[{type:"role",role:"destination"},{type:"literal",value:"man"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function bv(){return[{id:"toggle-ru-full",language:"ru",command:"toggle",priority:100,template:{format:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C {patient} \u043D\u0430 {destination}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u0434\u043B\u044F"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u0434\u043B\u044F"],default:{type:"reference",value:"me"}}}},{id:"toggle-ru-simple",language:"ru",command:"toggle",priority:90,template:{format:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Dv(){return[{id:"toggle-th-simple",language:"th",command:"toggle",priority:100,template:{format:"\u0E2A\u0E25\u0E31\u0E1A {patient}",tokens:[{type:"literal",value:"\u0E2A\u0E25\u0E31\u0E1A"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-th-with-dest",language:"th",command:"toggle",priority:95,template:{format:"\u0E2A\u0E25\u0E31\u0E1A {patient} \u0E43\u0E19 {destination}",tokens:[{type:"literal",value:"\u0E2A\u0E25\u0E31\u0E1A"},{type:"role",role:"patient"},{type:"literal",value:"\u0E43\u0E19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E43\u0E19",position:3}}}]}function Tv(){return[]}function Sv(){return[{id:"toggle-uk-full",language:"uk",command:"toggle",priority:100,template:{format:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438 {patient} \u043D\u0430 {destination}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u0434\u043B\u044F"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u0434\u043B\u044F"],default:{type:"reference",value:"me"}}}},{id:"toggle-uk-simple",language:"uk",command:"toggle",priority:90,template:{format:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Bv(){return[{id:"toggle-vi-full",language:"vi",command:"toggle",priority:100,template:{format:"chuy\u1EC3n \u0111\u1ED5i {patient} tr\xEAn {target}",tokens:[{type:"literal",value:"chuy\u1EC3n \u0111\u1ED5i",alternatives:["chuy\u1EC3n","b\u1EADt t\u1EAFt"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"tr\xEAn",alternatives:["t\u1EA1i","\u1EDF"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"tr\xEAn",markerAlternatives:["t\u1EA1i","\u1EDF"],default:{type:"reference",value:"me"}}}},{id:"toggle-vi-simple",language:"vi",command:"toggle",priority:90,template:{format:"chuy\u1EC3n \u0111\u1ED5i {patient}",tokens:[{type:"literal",value:"chuy\u1EC3n \u0111\u1ED5i",alternatives:["chuy\u1EC3n","b\u1EADt t\u1EAFt"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Fv(){return[{id:"toggle-zh-full",language:"zh",command:"toggle",priority:100,template:{format:"\u5207\u6362 {patient} \u5728 {target}",tokens:[{type:"literal",value:"\u5207\u6362"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u5728",alternatives:["\u5230","\u4E8E"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u5728",markerAlternatives:["\u5230","\u4E8E"],default:{type:"reference",value:"me"}}}},{id:"toggle-zh-simple",language:"zh",command:"toggle",priority:90,template:{format:"\u5207\u6362 {patient}",tokens:[{type:"literal",value:"\u5207\u6362"},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-zh-ba",language:"zh",command:"toggle",priority:95,template:{format:"\u628A {patient} \u5207\u6362",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u5207\u6362"}]},extraction:{patient:{marker:"\u628A"},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-zh-full-ba",language:"zh",command:"toggle",priority:98,template:{format:"\u5728 {target} \u628A {patient} \u5207\u6362",tokens:[{type:"literal",value:"\u5728",alternatives:["\u5230","\u4E8E"]},{type:"role",role:"destination"},{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u5207\u6362"}]},extraction:{destination:{marker:"\u5728",markerAlternatives:["\u5230","\u4E8E"]},patient:{marker:"\u628A"}}}]}function Pp(e){switch(e){case"ar":return vv();case"bn":return gv();case"en":return zl();case"es":return Ev();case"hi":return zv();case"it":return kv();case"ja":return Cv();case"ko":return xv();case"pl":return wv();case"qu":return Av();case"ru":return bv();case"th":return Dv();case"tr":return Tv();case"uk":return Sv();case"vi":return Bv();case"zh":return Fv();default:return[]}}function Pv(){return[]}function Lv(e){switch(e){case"ar":return Pv();default:return[]}}function jv(){return[]}function _v(){return[{id:"put-bn-full",language:"bn",command:"put",priority:100,template:{format:"{patient} \u0995\u09C7 {destination} \u098F \u09B0\u09BE\u0996\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]},{type:"literal",value:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"]}]},extraction:{patient:{position:0},destination:{marker:"\u098F",position:2}}},{id:"put-bn-simple",language:"bn",command:"put",priority:90,template:{format:"\u09B0\u09BE\u0996\u09C1\u09A8 {patient} {destination} \u098F",tokens:[{type:"literal",value:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"]},{type:"role",role:"patient"},{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]}]},extraction:{patient:{position:1},destination:{position:2}}}]}xl();function Rv(){return[{id:"put-es-full",language:"es",command:"put",priority:100,template:{format:"poner {patient} en {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar","put"]},{type:"role",role:"patient"},{type:"literal",value:"en",alternatives:["dentro de","a"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"en",markerAlternatives:["dentro de","a"]}}},{id:"put-es-before",language:"es",command:"put",priority:95,template:{format:"poner {patient} antes de {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar"]},{type:"role",role:"patient"},{type:"literal",value:"antes de",alternatives:["antes"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"antes de",markerAlternatives:["antes"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-es-after",language:"es",command:"put",priority:95,template:{format:"poner {patient} despu\xE9s de {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar"]},{type:"role",role:"patient"},{type:"literal",value:"despu\xE9s de",alternatives:["despues de","despu\xE9s"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"despu\xE9s de",markerAlternatives:["despues de","despu\xE9s"]},manner:{default:{type:"literal",value:"after"}}}}]}function Nv(){return[{id:"put-hi-full",language:"hi",command:"put",priority:100,template:{format:"{patient} \u0915\u094B {destination} \u092E\u0947\u0902 \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"destination"},{type:"literal",value:"\u092E\u0947\u0902"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]}]},extraction:{patient:{position:0},destination:{marker:"\u092E\u0947\u0902",position:3}}},{id:"put-hi-simple",language:"hi",command:"put",priority:90,template:{format:"{patient} \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]}]},extraction:{patient:{position:0},destination:{default:{type:"reference",value:"me"}}}},{id:"put-hi-bare",language:"hi",command:"put",priority:80,template:{format:"\u0930\u0916\u0947\u0902 {patient}",tokens:[{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Iv(){return[{id:"put-id-full",language:"id",command:"put",priority:100,template:{format:"taruh {patient} ke dalam {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan","tempatkan","put"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"ke"},{type:"literal",value:"dalam",alternatives:["di"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:4}}},{id:"put-id-simple-ke",language:"id",command:"put",priority:95,template:{format:"taruh {patient} ke {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan","tempatkan"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"ke",alternatives:["di","pada"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}},{id:"put-id-di",language:"id",command:"put",priority:90,template:{format:"taruh {patient} di {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"di"},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}}]}function Ov(){return[{id:"put-it-full",language:"it",command:"put",priority:100,template:{format:"mettere {patient} in {target}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"in",alternatives:["dentro","nel"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"in",markerAlternatives:["dentro","nel"]}}},{id:"put-it-simple",language:"it",command:"put",priority:90,template:{format:"mettere {patient}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function Mv(){return[]}function Wv(){return[]}function qv(){return[{id:"put-pl-full",language:"pl",command:"put",priority:100,template:{format:"umie\u015B\u0107 {patient} w {destination}",tokens:[{type:"literal",value:"umie\u015B\u0107",alternatives:["umiesc","wstaw","w\u0142\xF3\u017C","wloz"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"w",alternatives:["do","na"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"w",markerAlternatives:["do","na"]}}},{id:"put-pl-before",language:"pl",command:"put",priority:95,template:{format:"umie\u015B\u0107 {patient} przed {destination}",tokens:[{type:"literal",value:"umie\u015B\u0107",alternatives:["umiesc","wstaw"]},{type:"role",role:"patient"},{type:"literal",value:"przed"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"przed"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-pl-after",language:"pl",command:"put",priority:95,template:{format:"umie\u015B\u0107 {patient} po {destination}",tokens:[{type:"literal",value:"umie\u015B\u0107",alternatives:["umiesc","wstaw"]},{type:"role",role:"patient"},{type:"literal",value:"po"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"po"},manner:{default:{type:"literal",value:"after"}}}}]}function $v(){return[{id:"put-ru-full",language:"ru",command:"put",priority:100,template:{format:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C {patient} \u0432 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C","\u0432\u0441\u0442\u0430\u0432\u044C"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u0432\u043E","\u043D\u0430"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u0432",markerAlternatives:["\u0432\u043E","\u043D\u0430"]}}},{id:"put-ru-before",language:"ru",command:"put",priority:95,template:{format:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C {patient} \u043F\u0435\u0440\u0435\u0434 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u0435\u0440\u0435\u0434",alternatives:["\u0434\u043E"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u0435\u0440\u0435\u0434",markerAlternatives:["\u0434\u043E"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-ru-after",language:"ru",command:"put",priority:95,template:{format:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C {patient} \u043F\u043E\u0441\u043B\u0435 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u043E\u0441\u043B\u0435"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u043E\u0441\u043B\u0435"},manner:{default:{type:"literal",value:"after"}}}}]}function Vv(){return[{id:"put-th-full",language:"th",command:"put",priority:100,template:{format:"\u0E43\u0E2A\u0E48 {patient} \u0E43\u0E19 {destination}",tokens:[{type:"literal",value:"\u0E43\u0E2A\u0E48",alternatives:["\u0E27\u0E32\u0E07"]},{type:"role",role:"patient"},{type:"literal",value:"\u0E43\u0E19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E43\u0E19",position:3}}}]}function Kv(){return[]}function Hv(){return[{id:"put-uk-full",language:"uk",command:"put",priority:100,template:{format:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438 {patient} \u0432 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438","\u0432\u0441\u0442\u0430\u0432"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u0443","\u043D\u0430"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u0432",markerAlternatives:["\u0443","\u043D\u0430"]}}},{id:"put-uk-before",language:"uk",command:"put",priority:95,template:{format:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438 {patient} \u043F\u0435\u0440\u0435\u0434 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u0435\u0440\u0435\u0434",alternatives:["\u0434\u043E"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u0435\u0440\u0435\u0434",markerAlternatives:["\u0434\u043E"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-uk-after",language:"uk",command:"put",priority:95,template:{format:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438 {patient} \u043F\u0456\u0441\u043B\u044F {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u0456\u0441\u043B\u044F"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u0456\u0441\u043B\u044F"},manner:{default:{type:"literal",value:"after"}}}}]}function Gv(){return[{id:"put-vi-into",language:"vi",command:"put",priority:100,template:{format:"\u0111\u1EB7t {patient} v\xE0o {target}",tokens:[{type:"literal",value:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"]},{type:"role",role:"patient"},{type:"literal",value:"v\xE0o",alternatives:["v\xE0o trong"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"v\xE0o",markerAlternatives:["v\xE0o trong"]}}},{id:"put-vi-before",language:"vi",command:"put",priority:95,template:{format:"\u0111\u1EB7t {patient} tr\u01B0\u1EDBc {target}",tokens:[{type:"literal",value:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"]},{type:"role",role:"patient"},{type:"literal",value:"tr\u01B0\u1EDBc",alternatives:["tr\u01B0\u1EDBc khi"]},{type:"role",role:"manner"}]},extraction:{patient:{position:1},manner:{marker:"tr\u01B0\u1EDBc",markerAlternatives:["tr\u01B0\u1EDBc khi"]}}},{id:"put-vi-after",language:"vi",command:"put",priority:95,template:{format:"\u0111\u1EB7t {patient} sau {target}",tokens:[{type:"literal",value:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"]},{type:"role",role:"patient"},{type:"literal",value:"sau",alternatives:["sau khi"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"sau",markerAlternatives:["sau khi"]}}}]}function Uv(){return[{id:"put-zh-full",language:"zh",command:"put",priority:100,template:{format:"\u653E\u7F6E {patient} \u5230 {destination}",tokens:[{type:"literal",value:"\u653E\u7F6E",alternatives:["\u653E","\u653E\u5165","\u7F6E\u5165","put"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"\u5230",alternatives:["\u5728","\u4E8E","\u5165"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}},{id:"put-zh-ba",language:"zh",command:"put",priority:95,template:{format:"\u628A {patient} \u653E\u5230 {destination}",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"\u653E\u5230",alternatives:["\u653E\u5728","\u653E\u5165"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}}]}function Lp(e){switch(e){case"ar":return jv();case"bn":return _v();case"en":return Cl();case"es":return Rv();case"hi":return Nv();case"id":return Iv();case"it":return Ov();case"ja":return Mv();case"ko":return Wv();case"pl":return qv();case"ru":return $v();case"th":return Vv();case"tr":return Kv();case"uk":return Hv();case"vi":return Gv();case"zh":return Uv();default:return[]}}function Xv(){return[]}function Yv(){return[{id:"event-handler-bn-sov",language:"bn",command:"on",priority:100,template:{format:"{event} \u09A4\u09C7 {action}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u09A4\u09C7",alternatives:["\u098F"]},{type:"role",role:"action"}]},extraction:{event:{position:0},action:{position:2}}},{id:"event-handler-bn-with-source",language:"bn",command:"on",priority:95,template:{format:"{source} \u09A5\u09C7\u0995\u09C7 {event} \u09A4\u09C7 {action}",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u09A5\u09C7\u0995\u09C7"},{type:"role",role:"event"},{type:"literal",value:"\u09A4\u09C7",alternatives:["\u098F"]},{type:"role",role:"action"}]},extraction:{source:{position:0},event:{marker:"\u09A4\u09C7",position:2},action:{position:4}}},{id:"event-handler-bn-when",language:"bn",command:"on",priority:90,template:{format:"\u09AF\u0996\u09A8 {event} {action}",tokens:[{type:"literal",value:"\u09AF\u0996\u09A8"},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}}]}function Jv(){return[{id:"event-de-wenn-source",language:"de",command:"on",priority:115,template:{format:"wenn {event} von {source} {body}",tokens:[{type:"literal",value:"wenn",alternatives:["falls","sobald"]},{type:"role",role:"event"},{type:"literal",value:"von",alternatives:["aus"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"von",markerAlternatives:["aus"]}}},{id:"event-de-wenn",language:"de",command:"on",priority:105,template:{format:"wenn {event} {body}",tokens:[{type:"literal",value:"wenn",alternatives:["falls","sobald"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-bei-source",language:"de",command:"on",priority:110,template:{format:"bei {event} von {source} {body}",tokens:[{type:"literal",value:"bei",alternatives:["beim"]},{type:"role",role:"event"},{type:"literal",value:"von",alternatives:["aus"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"von",markerAlternatives:["aus"]}}},{id:"event-de-bei",language:"de",command:"on",priority:100,template:{format:"bei {event} {body}",tokens:[{type:"literal",value:"bei",alternatives:["beim"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-auf",language:"de",command:"on",priority:95,template:{format:"auf {event} {body}",tokens:[{type:"literal",value:"auf"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-im-falle",language:"de",command:"on",priority:90,template:{format:"im Falle von {event} {body}",tokens:[{type:"literal",value:"im Falle von",alternatives:["im Fall von"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}Al();function Qv(){return[{id:"event-es-native-al-source",language:"es",command:"on",priority:115,template:{format:"al {event} en {source} {body}",tokens:[{type:"literal",value:"al"},{type:"role",role:"event"},{type:"literal",value:"en",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"en",markerAlternatives:["de"]}}},{id:"event-es-cuando-source",language:"es",command:"on",priority:112,template:{format:"cuando {event} en {source} {body}",tokens:[{type:"literal",value:"cuando"},{type:"role",role:"event"},{type:"literal",value:"en",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"en",markerAlternatives:["de"]}}},{id:"event-es-native-al",language:"es",command:"on",priority:108,template:{format:"al {event} {body}",tokens:[{type:"literal",value:"al"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-standard",language:"es",command:"on",priority:100,template:{format:"en {event} {body}",tokens:[{type:"literal",value:"en",alternatives:["al","cuando"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-source",language:"es",command:"on",priority:110,template:{format:"en {event} desde {source} {body}",tokens:[{type:"literal",value:"en",alternatives:["al"]},{type:"role",role:"event"},{type:"literal",value:"desde",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"desde",markerAlternatives:["de"]}}},{id:"event-es-when",language:"es",command:"on",priority:95,template:{format:"cuando {event} {body}",tokens:[{type:"literal",value:"cuando"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-conditional-si",language:"es",command:"on",priority:85,template:{format:"si {event} {body}",tokens:[{type:"literal",value:"si"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Zv(){return[{id:"event-fr-quand-source",language:"fr",command:"on",priority:115,template:{format:"quand {event} de {source} {body}",tokens:[{type:"literal",value:"quand",alternatives:["lorsque"]},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["depuis"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["depuis"]}}},{id:"event-fr-quand",language:"fr",command:"on",priority:105,template:{format:"quand {event} {body}",tokens:[{type:"literal",value:"quand",alternatives:["lorsque"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-sur-source",language:"fr",command:"on",priority:110,template:{format:"sur {event} de {source} {body}",tokens:[{type:"literal",value:"sur",alternatives:["lors de"]},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["depuis"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["depuis"]}}},{id:"event-fr-sur",language:"fr",command:"on",priority:100,template:{format:"sur {event} {body}",tokens:[{type:"literal",value:"sur",alternatives:["lors de"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-si",language:"fr",command:"on",priority:95,template:{format:"si {event} {body}",tokens:[{type:"literal",value:"si"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-a",language:"fr",command:"on",priority:90,template:{format:"\xE0 {event} {body}",tokens:[{type:"literal",value:"\xE0",alternatives:["au"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function eg(){return[]}function tg(){return[{id:"event-hi-standard",language:"hi",command:"on",priority:100,template:{format:"{event} \u092A\u0930",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u092A\u0930",alternatives:["\u092E\u0947\u0902","\u091C\u092C"]}]},extraction:{event:{position:0}}},{id:"event-hi-with-source",language:"hi",command:"on",priority:95,template:{format:"{source} \u0938\u0947 {event} \u092A\u0930",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u0938\u0947"},{type:"role",role:"event"},{type:"literal",value:"\u092A\u0930",alternatives:["\u092E\u0947\u0902","\u091C\u092C"]}]},extraction:{source:{position:0},event:{marker:"\u0938\u0947",position:2}}},{id:"event-hi-bare",language:"hi",command:"on",priority:80,template:{format:"{event}",tokens:[{type:"role",role:"event"}]},extraction:{event:{position:0}}}]}function rg(){return[{id:"event-id-ketika-source",language:"id",command:"on",priority:115,template:{format:"ketika {event} dari {source} {body}",tokens:[{type:"literal",value:"ketika",alternatives:["saat","waktu"]},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}},{id:"event-id-ketika",language:"id",command:"on",priority:105,template:{format:"ketika {event} {body}",tokens:[{type:"literal",value:"ketika",alternatives:["saat","waktu"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-pada-source",language:"id",command:"on",priority:110,template:{format:"pada {event} dari {source} {body}",tokens:[{type:"literal",value:"pada"},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}},{id:"event-id-pada",language:"id",command:"on",priority:100,template:{format:"pada {event} {body}",tokens:[{type:"literal",value:"pada"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-jika",language:"id",command:"on",priority:95,template:{format:"jika {event} {body}",tokens:[{type:"literal",value:"jika",alternatives:["kalau","apabila"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-bila",language:"id",command:"on",priority:90,template:{format:"bila {event} {body}",tokens:[{type:"literal",value:"bila"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function ng(){return[{id:"event-handler-it-full",language:"it",command:"on",priority:100,template:{format:"su {event} {action}",tokens:[{type:"literal",value:"su",alternatives:["quando","al","on"]},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}},{id:"event-handler-it-from",language:"it",command:"on",priority:95,template:{format:"su {event} da {source} {action}",tokens:[{type:"literal",value:"su",alternatives:["quando","al","on"]},{type:"role",role:"event"},{type:"literal",value:"da",alternatives:["di"]},{type:"role",role:"source"},{type:"role",role:"action"}]},extraction:{event:{position:1},source:{marker:"da",markerAlternatives:["di"]},action:{position:-1}}}]}function ig(){return[]}function ag(){return[]}function og(){return[{id:"event-ms-apabila",language:"ms",command:"on",priority:100,template:{format:"apabila {event} {body}",tokens:[{type:"literal",value:"apabila",alternatives:["bila","ketika"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-ms-apabila-source",language:"ms",command:"on",priority:110,template:{format:"apabila {event} dari {source} {body}",tokens:[{type:"literal",value:"apabila",alternatives:["bila","ketika"]},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}}]}function ug(){return[{id:"event-handler-pl-full",language:"pl",command:"on",priority:100,template:{format:"gdy {event} na {source}",tokens:[{type:"literal",value:"gdy",alternatives:["przy","na"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"na",alternatives:["w","przy","z"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"na",markerAlternatives:["w","przy","z"],default:{type:"reference",value:"me"}}}},{id:"event-handler-pl-simple",language:"pl",command:"on",priority:90,template:{format:"gdy {event}",tokens:[{type:"literal",value:"gdy",alternatives:["przy","na"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function sg(){return[{id:"event-pt-ao-source",language:"pt",command:"on",priority:115,template:{format:"ao {event} em {source} {body}",tokens:[{type:"literal",value:"ao",alternatives:["\xE0"]},{type:"role",role:"event"},{type:"literal",value:"em",alternatives:["de","no","na"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"em",markerAlternatives:["de","no","na"]}}},{id:"event-pt-quando-source",language:"pt",command:"on",priority:110,template:{format:"quando {event} de {source} {body}",tokens:[{type:"literal",value:"quando"},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["em","no","na"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["em","no","na"]}}},{id:"event-pt-ao",language:"pt",command:"on",priority:105,template:{format:"ao {event} {body}",tokens:[{type:"literal",value:"ao",alternatives:["\xE0"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-quando",language:"pt",command:"on",priority:100,template:{format:"quando {event} {body}",tokens:[{type:"literal",value:"quando"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-em",language:"pt",command:"on",priority:95,template:{format:"em {event} {body}",tokens:[{type:"literal",value:"em",alternatives:["no","na"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-se",language:"pt",command:"on",priority:90,template:{format:"se {event} {body}",tokens:[{type:"literal",value:"se"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function lg(){return[{id:"event-qu-source",language:"qu",command:"on",priority:110,template:{format:"{event} pi {source} manta {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"pi"},{type:"role",role:"source"},{type:"literal",value:"manta"}]},extraction:{event:{position:0},source:{marker:"manta"}}},{id:"event-qu-kaqtin",language:"qu",command:"on",priority:105,template:{format:"{event} kaqtin {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"kaqtin",alternatives:["qtin","ptin"]}]},extraction:{event:{position:0}}},{id:"event-qu-standard",language:"qu",command:"on",priority:100,template:{format:"{event} pi {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"pi",alternatives:["kaqpi","kaqpim"]}]},extraction:{event:{position:0}}}]}function cg(){return[{id:"event-handler-ru-full",language:"ru",command:"on",priority:100,template:{format:"\u043F\u0440\u0438 {event} \u043D\u0430 {source}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u0433\u0434\u0430"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u043E\u0442"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u043E\u0442"],default:{type:"reference",value:"me"}}}},{id:"event-handler-ru-simple",language:"ru",command:"on",priority:90,template:{format:"\u043F\u0440\u0438 {event}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u0433\u0434\u0430"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function pg(){return[{id:"event-sw-unapo-source",language:"sw",command:"on",priority:115,template:{format:"unapo {event} kutoka {source} {body}",tokens:[{type:"literal",value:"unapo",alternatives:["wakati wa","wakati"]},{type:"role",role:"event"},{type:"literal",value:"kutoka"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"kutoka"}}},{id:"event-sw-unapo",language:"sw",command:"on",priority:105,template:{format:"unapo {event} {body}",tokens:[{type:"literal",value:"unapo",alternatives:["wakati wa","wakati"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-kwa-source",language:"sw",command:"on",priority:110,template:{format:"kwa {event} kutoka {source} {body}",tokens:[{type:"literal",value:"kwa"},{type:"role",role:"event"},{type:"literal",value:"kutoka"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"kutoka"}}},{id:"event-sw-kwa",language:"sw",command:"on",priority:100,template:{format:"kwa {event} {body}",tokens:[{type:"literal",value:"kwa"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-ikiwa",language:"sw",command:"on",priority:95,template:{format:"ikiwa {event} {body}",tokens:[{type:"literal",value:"ikiwa",alternatives:["kama"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-baada-ya",language:"sw",command:"on",priority:90,template:{format:"baada ya {event} {body}",tokens:[{type:"literal",value:"baada ya"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function mg(){return[{id:"event-handler-th-svo",language:"th",command:"on",priority:100,template:{format:"\u0E40\u0E21\u0E37\u0E48\u0E2D {event} {action}",tokens:[{type:"literal",value:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"]},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}},{id:"event-handler-th-with-source",language:"th",command:"on",priority:95,template:{format:"\u0E40\u0E21\u0E37\u0E48\u0E2D {event} \u0E08\u0E32\u0E01 {source} {action}",tokens:[{type:"literal",value:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"]},{type:"role",role:"event"},{type:"literal",value:"\u0E08\u0E32\u0E01"},{type:"role",role:"source"},{type:"role",role:"action"}]},extraction:{event:{position:1},source:{marker:"\u0E08\u0E32\u0E01",position:3},action:{position:4}}}]}function dg(){return[{id:"event-tl-kapag-source",language:"tl",command:"on",priority:115,template:{format:"kapag {event} mula_sa {source} {body}",tokens:[{type:"literal",value:"kapag",alternatives:["kung","sa"]},{type:"role",role:"event"},{type:"literal",value:"mula_sa",alternatives:["galing_sa"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"mula_sa"}}},{id:"event-tl-kapag",language:"tl",command:"on",priority:105,template:{format:"kapag {event} {body}",tokens:[{type:"literal",value:"kapag",alternatives:["kung","sa"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function fg(){return[]}function yg(){return[{id:"event-handler-uk-full",language:"uk",command:"on",priority:100,template:{format:"\u043F\u0440\u0438 {event} \u043D\u0430 {source}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u043B\u0438"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u0432\u0456\u0434"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u0432\u0456\u0434"],default:{type:"reference",value:"me"}}}},{id:"event-handler-uk-simple",language:"uk",command:"on",priority:90,template:{format:"\u043F\u0440\u0438 {event}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u043B\u0438"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function hg(){return[{id:"event-handler-vi-full",language:"vi",command:"on",priority:100,template:{format:"khi {event} tr\xEAn {source}",tokens:[{type:"literal",value:"khi",alternatives:["l\xFAc","tr\xEAn"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"tr\xEAn",alternatives:["t\u1EA1i"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"tr\xEAn",markerAlternatives:["t\u1EA1i"],default:{type:"reference",value:"me"}}}},{id:"event-handler-vi-simple",language:"vi",command:"on",priority:90,template:{format:"khi {event}",tokens:[{type:"literal",value:"khi",alternatives:["l\xFAc","tr\xEAn"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function vg(){return[{id:"event-zh-temporal-source",language:"zh",command:"on",priority:115,template:{format:"{event} \u7684\u65F6\u5019 \u4ECE {source} {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u7684\u65F6\u5019",alternatives:["\u65F6\u5019","\u65F6"]},{type:"literal",value:"\u4ECE",alternatives:["\u5728"]},{type:"role",role:"source"}]},extraction:{event:{position:0},source:{marker:"\u4ECE",markerAlternatives:["\u5728"]}}},{id:"event-zh-source",language:"zh",command:"on",priority:110,template:{format:"\u5F53 {event} \u4ECE {source} {body}",tokens:[{type:"literal",value:"\u5F53"},{type:"role",role:"event"},{type:"literal",value:"\u4ECE",alternatives:["\u5728"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"\u4ECE",markerAlternatives:["\u5728"]}}},{id:"event-zh-immediate",language:"zh",command:"on",priority:108,template:{format:"\u4E00 {event} \u5C31 {body}",tokens:[{type:"literal",value:"\u4E00"},{type:"role",role:"event"},{type:"literal",value:"\u5C31"}]},extraction:{event:{position:1}}},{id:"event-zh-temporal",language:"zh",command:"on",priority:105,template:{format:"{event} \u7684\u65F6\u5019 {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u7684\u65F6\u5019",alternatives:["\u65F6\u5019","\u65F6"]}]},extraction:{event:{position:0}}},{id:"event-zh-whenever",language:"zh",command:"on",priority:103,template:{format:"\u6BCF\u5F53 {event} {body}",tokens:[{type:"literal",value:"\u6BCF\u5F53",alternatives:["\u6BCF\u6B21"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-zh-standard",language:"zh",command:"on",priority:100,template:{format:"\u5F53 {event} {body}",tokens:[{type:"literal",value:"\u5F53"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-zh-completion",language:"zh",command:"on",priority:95,template:{format:"{event} \u4E86 {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u4E86"}]},extraction:{event:{position:0}}},{id:"event-zh-conditional",language:"zh",command:"on",priority:90,template:{format:"\u5982\u679C {event} {body}",tokens:[{type:"literal",value:"\u5982\u679C",alternatives:["\u82E5","\u5047\u5982"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function jp(e){switch(e){case"ar":return Xv();case"bn":return Yv();case"de":return Jv();case"en":return wl();case"es":return Qv();case"fr":return Zv();case"he":return eg();case"hi":return tg();case"id":return rg();case"it":return ng();case"ja":return ig();case"ko":return ag();case"ms":return og();case"pl":return ug();case"pt":return sg();case"qu":return lg();case"ru":return cg();case"sw":return pg();case"th":return mg();case"tl":return dg();case"tr":return fg();case"uk":return yg();case"vi":return hg();case"zh":return vg();default:return[]}}function gg(){return[]}function Eg(){return[]}function zg(){return[]}function kg(e){switch(e){case"ja":return gg();case"ko":return Eg();case"tr":return zg();default:return[]}}function Cg(){return[]}function xg(){return[{id:"add-bn-full",language:"bn",command:"add",priority:100,template:{format:"{patient} \u0995\u09C7 \u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09AF\u09CB\u0997"},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0}}},{id:"add-bn-simple",language:"bn",command:"add",priority:90,template:{format:"\u09AF\u09CB\u0997 {patient}",tokens:[{type:"literal",value:"\u09AF\u09CB\u0997"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"add-bn-with-dest",language:"bn",command:"add",priority:95,template:{format:"{destination} \u098F {patient} \u0995\u09C7 \u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]},{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09AF\u09CB\u0997"},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{destination:{position:0},patient:{position:2}}}]}function wg(){return[{id:"add-hi-full",language:"hi",command:"add",priority:100,template:{format:"{patient} \u0915\u094B {destination} \u092E\u0947\u0902 \u091C\u094B\u0921\u093C\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"destination"},{type:"literal",value:"\u092E\u0947\u0902"},{type:"literal",value:"\u091C\u094B\u0921\u093C\u0947\u0902",alternatives:["\u091C\u094B\u0921\u093C"]}]},extraction:{patient:{position:0},destination:{marker:"\u092E\u0947\u0902",position:3}}},{id:"add-hi-simple",language:"hi",command:"add",priority:90,template:{format:"{patient} \u091C\u094B\u0921\u093C\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u091C\u094B\u0921\u093C\u0947\u0902",alternatives:["\u091C\u094B\u0921\u093C"]}]},extraction:{patient:{position:0},destination:{default:{type:"reference",value:"me"}}}},{id:"add-hi-bare",language:"hi",command:"add",priority:80,template:{format:"\u091C\u094B\u0921\u093C\u0947\u0902 {patient}",tokens:[{type:"literal",value:"\u091C\u094B\u0921\u093C\u0947\u0902",alternatives:["\u091C\u094B\u0921\u093C"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Ag(){return[{id:"add-it-full",language:"it",command:"add",priority:100,template:{format:"aggiungere {patient} a {target}",tokens:[{type:"literal",value:"aggiungere",alternatives:["aggiungi","add"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"a",alternatives:["su","in"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"a",markerAlternatives:["su","in"],default:{type:"reference",value:"me"}}}},{id:"add-it-simple",language:"it",command:"add",priority:90,template:{format:"aggiungere {patient}",tokens:[{type:"literal",value:"aggiungere",alternatives:["aggiungi","add"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function bg(){return[]}function Dg(){return[]}function Tg(){return[{id:"add-pl-full",language:"pl",command:"add",priority:100,template:{format:"dodaj {patient} do {destination}",tokens:[{type:"literal",value:"dodaj",alternatives:["do\u0142\u0105cz","dolacz"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"do",alternatives:["na","w"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"do",markerAlternatives:["na","w"],default:{type:"reference",value:"me"}}}},{id:"add-pl-simple",language:"pl",command:"add",priority:90,template:{format:"dodaj {patient}",tokens:[{type:"literal",value:"dodaj",alternatives:["do\u0142\u0105cz","dolacz"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Sg(){return[{id:"add-qu-sov",language:"qu",command:"add",priority:100,template:{format:"{patient} ta yapay",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"yapay",alternatives:["yapaykuy"]}]},extraction:{patient:{position:0}}},{id:"add-qu-simple",language:"qu",command:"add",priority:90,template:{format:"yapay {patient}",tokens:[{type:"literal",value:"yapay",alternatives:["yapaykuy"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"add-qu-with-dest",language:"qu",command:"add",priority:95,template:{format:"{destination} man {patient} ta yapay",tokens:[{type:"role",role:"destination"},{type:"literal",value:"man"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"yapay",alternatives:["yapaykuy"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function Bg(){return[{id:"add-ru-full",language:"ru",command:"add",priority:100,template:{format:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C {patient} \u043A {destination}",tokens:[{type:"literal",value:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C",alternatives:["\u0434\u043E\u0431\u0430\u0432\u044C"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043A",alternatives:["\u043D\u0430","\u0432"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u043A",markerAlternatives:["\u043D\u0430","\u0432"],default:{type:"reference",value:"me"}}}},{id:"add-ru-simple",language:"ru",command:"add",priority:90,template:{format:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C",alternatives:["\u0434\u043E\u0431\u0430\u0432\u044C"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Fg(){return[{id:"add-th-simple",language:"th",command:"add",priority:100,template:{format:"\u0E40\u0E1E\u0E34\u0E48\u0E21 {patient}",tokens:[{type:"literal",value:"\u0E40\u0E1E\u0E34\u0E48\u0E21"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"add-th-with-dest",language:"th",command:"add",priority:95,template:{format:"\u0E40\u0E1E\u0E34\u0E48\u0E21 {patient} \u0E43\u0E19 {destination}",tokens:[{type:"literal",value:"\u0E40\u0E1E\u0E34\u0E48\u0E21"},{type:"role",role:"patient"},{type:"literal",value:"\u0E43\u0E19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E43\u0E19",position:3}}}]}function Pg(){return[]}function Lg(){return[{id:"add-uk-full",language:"uk",command:"add",priority:100,template:{format:"\u0434\u043E\u0434\u0430\u0442\u0438 {patient} \u0434\u043E {destination}",tokens:[{type:"literal",value:"\u0434\u043E\u0434\u0430\u0442\u0438",alternatives:["\u0434\u043E\u0434\u0430\u0439"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0434\u043E",alternatives:["\u043D\u0430","\u0432"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u0434\u043E",markerAlternatives:["\u043D\u0430","\u0432"],default:{type:"reference",value:"me"}}}},{id:"add-uk-simple",language:"uk",command:"add",priority:90,template:{format:"\u0434\u043E\u0434\u0430\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0434\u043E\u0434\u0430\u0442\u0438",alternatives:["\u0434\u043E\u0434\u0430\u0439"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function jg(){return[{id:"add-vi-full",language:"vi",command:"add",priority:100,template:{format:"th\xEAm {patient} v\xE0o {target}",tokens:[{type:"literal",value:"th\xEAm",alternatives:["b\u1ED5 sung"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"v\xE0o",alternatives:["cho"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"v\xE0o",markerAlternatives:["cho"],default:{type:"reference",value:"me"}}}},{id:"add-vi-simple",language:"vi",command:"add",priority:90,template:{format:"th\xEAm {patient}",tokens:[{type:"literal",value:"th\xEAm",alternatives:["b\u1ED5 sung"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function _g(){return[{id:"add-zh-full",language:"zh",command:"add",priority:100,template:{format:"\u7ED9 {destination} \u6DFB\u52A0 {patient}",tokens:[{type:"literal",value:"\u7ED9",alternatives:["\u70BA","\u4E3A"]},{type:"role",role:"destination"},{type:"literal",value:"\u6DFB\u52A0",alternatives:["\u52A0","\u589E\u52A0","\u52A0\u4E0A"]},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"add-zh-simple",language:"zh",command:"add",priority:90,template:{format:"\u6DFB\u52A0 {patient}",tokens:[{type:"literal",value:"\u6DFB\u52A0",alternatives:["\u52A0","\u589E\u52A0"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}},{id:"add-zh-ba",language:"zh",command:"add",priority:95,template:{format:"\u628A {patient} \u6DFB\u52A0\u5230 {destination}",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u6DFB\u52A0\u5230",alternatives:["\u52A0\u5230","\u589E\u52A0\u5230"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u6DFB\u52A0\u5230",markerAlternatives:["\u52A0\u5230","\u589E\u52A0\u5230"]}}}]}function Rg(e){switch(e){case"ar":return Cg();case"bn":return xg();case"hi":return wg();case"it":return Ag();case"ja":return bg();case"ko":return Dg();case"pl":return Tg();case"qu":return Sg();case"ru":return Bg();case"th":return Fg();case"tr":return Pg();case"uk":return Lg();case"vi":return jg();case"zh":return _g();default:return[]}}function Ng(){return[]}function Ig(){return[{id:"remove-bn-full",language:"bn",command:"remove",priority:100,template:{format:"{patient} \u0995\u09C7 \u09B8\u09B0\u09BE\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09B8\u09B0\u09BE\u09A8",alternatives:["\u09AE\u09C1\u099B\u09C1\u09A8"]}]},extraction:{patient:{position:0}}},{id:"remove-bn-simple",language:"bn",command:"remove",priority:90,template:{format:"\u09B8\u09B0\u09BE\u09A8 {patient}",tokens:[{type:"literal",value:"\u09B8\u09B0\u09BE\u09A8",alternatives:["\u09AE\u09C1\u099B\u09C1\u09A8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"remove-bn-with-source",language:"bn",command:"remove",priority:95,template:{format:"{source} \u09A5\u09C7\u0995\u09C7 {patient} \u0995\u09C7 \u09B8\u09B0\u09BE\u09A8",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u09A5\u09C7\u0995\u09C7"},{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09B8\u09B0\u09BE\u09A8",alternatives:["\u09AE\u09C1\u099B\u09C1\u09A8"]}]},extraction:{source:{position:0},patient:{position:2}}}]}function Og(){return[{id:"remove-hi-full",language:"hi",command:"remove",priority:100,template:{format:"{patient} \u0915\u094B {source} \u0938\u0947 \u0939\u091F\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"source"},{type:"literal",value:"\u0938\u0947"},{type:"literal",value:"\u0939\u091F\u093E\u090F\u0902",alternatives:["\u0939\u091F\u093E","\u092E\u093F\u091F\u093E\u090F\u0902"]}]},extraction:{patient:{position:0},source:{marker:"\u0938\u0947",position:3}}},{id:"remove-hi-simple",language:"hi",command:"remove",priority:90,template:{format:"{patient} \u0939\u091F\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0939\u091F\u093E\u090F\u0902",alternatives:["\u0939\u091F\u093E","\u092E\u093F\u091F\u093E\u090F\u0902"]}]},extraction:{patient:{position:0},source:{default:{type:"reference",value:"me"}}}},{id:"remove-hi-bare",language:"hi",command:"remove",priority:80,template:{format:"\u0939\u091F\u093E\u090F\u0902 {patient}",tokens:[{type:"literal",value:"\u0939\u091F\u093E\u090F\u0902",alternatives:["\u0939\u091F\u093E","\u092E\u093F\u091F\u093E\u090F\u0902"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Mg(){return[{id:"remove-it-full",language:"it",command:"remove",priority:100,template:{format:"rimuovere {patient} da {target}",tokens:[{type:"literal",value:"rimuovere",alternatives:["rimuovi","eliminare","togliere","remove"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"da",alternatives:["di"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"da",markerAlternatives:["di"],default:{type:"reference",value:"me"}}}},{id:"remove-it-simple",language:"it",command:"remove",priority:90,template:{format:"rimuovere {patient}",tokens:[{type:"literal",value:"rimuovere",alternatives:["rimuovi","eliminare","togliere","remove"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function Wg(){return[]}function qg(){return[]}function $g(){return[{id:"remove-pl-full",language:"pl",command:"remove",priority:100,template:{format:"usu\u0144 {patient} z {source}",tokens:[{type:"literal",value:"usu\u0144",alternatives:["usun","wyczy\u015B\u0107","wyczysc"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"z",alternatives:["od","ze"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"z",markerAlternatives:["od","ze"],default:{type:"reference",value:"me"}}}},{id:"remove-pl-simple",language:"pl",command:"remove",priority:90,template:{format:"usu\u0144 {patient}",tokens:[{type:"literal",value:"usu\u0144",alternatives:["usun","wyczy\u015B\u0107","wyczysc"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Vg(){return[{id:"remove-qu-sov",language:"qu",command:"remove",priority:100,template:{format:"{patient} ta qichuy",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"qichuy",alternatives:["hurquy","anchuchiy"]}]},extraction:{patient:{position:0}}},{id:"remove-qu-simple",language:"qu",command:"remove",priority:90,template:{format:"qichuy {patient}",tokens:[{type:"literal",value:"qichuy",alternatives:["hurquy","anchuchiy"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"remove-qu-with-source",language:"qu",command:"remove",priority:95,template:{format:"{source} manta {patient} ta qichuy",tokens:[{type:"role",role:"source"},{type:"literal",value:"manta"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"qichuy",alternatives:["hurquy","anchuchiy"]}]},extraction:{source:{position:0},patient:{position:2}}}]}function Kg(){return[{id:"remove-ru-full",language:"ru",command:"remove",priority:100,template:{format:"\u0443\u0434\u0430\u043B\u0438\u0442\u044C {patient} \u0438\u0437 {source}",tokens:[{type:"literal",value:"\u0443\u0434\u0430\u043B\u0438\u0442\u044C",alternatives:["\u0443\u0434\u0430\u043B\u0438","\u0443\u0431\u0440\u0430\u0442\u044C","\u0443\u0431\u0435\u0440\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0438\u0437",alternatives:["\u043E\u0442","\u0441"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"\u0438\u0437",markerAlternatives:["\u043E\u0442","\u0441"],default:{type:"reference",value:"me"}}}},{id:"remove-ru-simple",language:"ru",command:"remove",priority:90,template:{format:"\u0443\u0434\u0430\u043B\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u0443\u0434\u0430\u043B\u0438\u0442\u044C",alternatives:["\u0443\u0434\u0430\u043B\u0438","\u0443\u0431\u0440\u0430\u0442\u044C","\u0443\u0431\u0435\u0440\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Hg(){return[{id:"remove-th-simple",language:"th",command:"remove",priority:100,template:{format:"\u0E25\u0E1A {patient}",tokens:[{type:"literal",value:"\u0E25\u0E1A",alternatives:["\u0E25\u0E1A\u0E2D\u0E2D\u0E01"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"remove-th-with-source",language:"th",command:"remove",priority:95,template:{format:"\u0E25\u0E1A {patient} \u0E08\u0E32\u0E01 {source}",tokens:[{type:"literal",value:"\u0E25\u0E1A",alternatives:["\u0E25\u0E1A\u0E2D\u0E2D\u0E01"]},{type:"role",role:"patient"},{type:"literal",value:"\u0E08\u0E32\u0E01"},{type:"role",role:"source"}]},extraction:{patient:{position:1},source:{marker:"\u0E08\u0E32\u0E01",position:3}}}]}function Gg(){return[]}function Ug(){return[{id:"remove-uk-full",language:"uk",command:"remove",priority:100,template:{format:"\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438 {patient} \u0437 {source}",tokens:[{type:"literal",value:"\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438",alternatives:["\u0432\u0438\u0434\u0430\u043B\u0438","\u043F\u0440\u0438\u0431\u0440\u0430\u0442\u0438","\u043F\u0440\u0438\u0431\u0435\u0440\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"\u0437",markerAlternatives:["\u0432\u0456\u0434","\u0456\u0437"],default:{type:"reference",value:"me"}}}},{id:"remove-uk-simple",language:"uk",command:"remove",priority:90,template:{format:"\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438",alternatives:["\u0432\u0438\u0434\u0430\u043B\u0438","\u043F\u0440\u0438\u0431\u0440\u0430\u0442\u0438","\u043F\u0440\u0438\u0431\u0435\u0440\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Xg(){return[{id:"remove-vi-full",language:"vi",command:"remove",priority:100,template:{format:"x\xF3a {patient} kh\u1ECFi {target}",tokens:[{type:"literal",value:"x\xF3a",alternatives:["g\u1EE1 b\u1ECF","lo\u1EA1i b\u1ECF","b\u1ECF"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"kh\u1ECFi",alternatives:["t\u1EEB"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"kh\u1ECFi",markerAlternatives:["t\u1EEB"],default:{type:"reference",value:"me"}}}},{id:"remove-vi-simple",language:"vi",command:"remove",priority:90,template:{format:"x\xF3a {patient}",tokens:[{type:"literal",value:"x\xF3a",alternatives:["g\u1EE1 b\u1ECF","lo\u1EA1i b\u1ECF","b\u1ECF"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Yg(){return[{id:"remove-zh-full",language:"zh",command:"remove",priority:100,template:{format:"\u4ECE {destination} \u5220\u9664 {patient}",tokens:[{type:"literal",value:"\u4ECE",alternatives:["\u5F9E"]},{type:"role",role:"destination"},{type:"literal",value:"\u5220\u9664",alternatives:["\u522A\u9664","\u79FB\u9664","\u53BB\u6389"]},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"remove-zh-simple",language:"zh",command:"remove",priority:90,template:{format:"\u5220\u9664 {patient}",tokens:[{type:"literal",value:"\u5220\u9664",alternatives:["\u522A\u9664","\u79FB\u9664","\u53BB\u6389"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}},{id:"remove-zh-ba",language:"zh",command:"remove",priority:95,template:{format:"\u628A {patient} \u4ECE {destination} \u5220\u9664",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u4ECE",alternatives:["\u5F9E"]},{type:"role",role:"destination"},{type:"literal",value:"\u5220\u9664",alternatives:["\u522A\u9664","\u79FB\u9664"]}]},extraction:{patient:{position:1},destination:{position:3}}}]}function Jg(e){switch(e){case"ar":return Ng();case"bn":return Ig();case"hi":return Og();case"it":return Mg();case"ja":return Wg();case"ko":return qg();case"pl":return $g();case"qu":return Vg();case"ru":return Kg();case"th":return Hg();case"tr":return Gg();case"uk":return Ug();case"vi":return Xg();case"zh":return Yg();default:return[]}}function Qg(){return[]}function Zg(){return[{id:"show-bn-full",language:"bn",command:"show",priority:100,template:{format:"{patient} \u0995\u09C7 \u09A6\u09C7\u0996\u09BE\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09A6\u09C7\u0996\u09BE\u09A8",alternatives:["\u09A6\u09C7\u0996\u09BE\u0993"]}]},extraction:{patient:{position:0}}},{id:"show-bn-simple",language:"bn",command:"show",priority:90,template:{format:"\u09A6\u09C7\u0996\u09BE\u09A8 {patient}",tokens:[{type:"literal",value:"\u09A6\u09C7\u0996\u09BE\u09A8",alternatives:["\u09A6\u09C7\u0996\u09BE\u0993"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function e3(){return[{id:"show-de-full",language:"de",command:"show",priority:100,template:{format:"zeige {patient}",tokens:[{type:"literal",value:"zeige",alternatives:["zeigen","anzeigen","show"]},{type:"role",role:"patient",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1}}}]}function t3(){return[{id:"show-fr-full",language:"fr",command:"show",priority:100,template:{format:"afficher {patient}",tokens:[{type:"literal",value:"afficher",alternatives:["montrer","pr\xE9senter","show"]},{type:"role",role:"patient",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1}}}]}function r3(){return[{id:"show-hi-full",language:"hi",command:"show",priority:100,template:{format:"{patient} \u0915\u094B \u0926\u093F\u0916\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u0926\u093F\u0916\u093E\u090F\u0902",alternatives:["\u0926\u093F\u0916\u093E"]}]},extraction:{patient:{position:0}}},{id:"show-hi-simple",language:"hi",command:"show",priority:90,template:{format:"\u0926\u093F\u0916\u093E\u090F\u0902 {patient}",tokens:[{type:"literal",value:"\u0926\u093F\u0916\u093E\u090F\u0902",alternatives:["\u0926\u093F\u0916\u093E"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"show-hi-bare",language:"hi",command:"show",priority:80,template:{format:"\u0926\u093F\u0916\u093E\u090F\u0902",tokens:[{type:"literal",value:"\u0926\u093F\u0916\u093E\u090F\u0902",alternatives:["\u0926\u093F\u0916\u093E"]}]},extraction:{patient:{default:{type:"reference",value:"me"}}}}]}function n3(){return[{id:"show-it-full",language:"it",command:"show",priority:100,template:{format:"mostrare {patient} con {style}",tokens:[{type:"literal",value:"mostrare",alternatives:["mostra","visualizzare","show"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"con"},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"con"}}},{id:"show-it-simple",language:"it",command:"show",priority:90,template:{format:"mostrare {patient}",tokens:[{type:"literal",value:"mostrare",alternatives:["mostra","visualizzare","show"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function i3(){return[]}function a3(){return[]}function o3(){return[{id:"show-pl-full",language:"pl",command:"show",priority:100,template:{format:"poka\u017C {patient} z {style}",tokens:[{type:"literal",value:"poka\u017C",alternatives:["pokaz","wy\u015Bwietl","wyswietl"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"z",alternatives:["ze","jako"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"z",markerAlternatives:["ze","jako"]}}},{id:"show-pl-simple",language:"pl",command:"show",priority:90,template:{format:"poka\u017C {patient}",tokens:[{type:"literal",value:"poka\u017C",alternatives:["pokaz","wy\u015Bwietl","wyswietl"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function u3(){return[{id:"show-ru-full",language:"ru",command:"show",priority:100,template:{format:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C {patient} \u0441 {style}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0441",alternatives:["\u0441\u043E","\u043A\u0430\u043A"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"\u0441",markerAlternatives:["\u0441\u043E","\u043A\u0430\u043A"]}}},{id:"show-ru-simple",language:"ru",command:"show",priority:90,template:{format:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function s3(){return[{id:"show-th-simple",language:"th",command:"show",priority:100,template:{format:"\u0E41\u0E2A\u0E14\u0E07 {patient}",tokens:[{type:"literal",value:"\u0E41\u0E2A\u0E14\u0E07"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function l3(){return[]}function c3(){return[{id:"show-uk-full",language:"uk",command:"show",priority:100,template:{format:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 {patient} \u0437 {style}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0437",alternatives:["\u0456\u0437","\u044F\u043A"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"\u0437",markerAlternatives:["\u0456\u0437","\u044F\u043A"]}}},{id:"show-uk-simple",language:"uk",command:"show",priority:90,template:{format:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function p3(){return[{id:"show-vi-full",language:"vi",command:"show",priority:100,template:{format:"hi\u1EC3n th\u1ECB {patient} v\u1EDBi {effect}",tokens:[{type:"literal",value:"hi\u1EC3n th\u1ECB",alternatives:["hi\u1EC7n"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"v\u1EDBi"},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"v\u1EDBi"}}},{id:"show-vi-simple",language:"vi",command:"show",priority:90,template:{format:"hi\u1EC3n th\u1ECB {patient}",tokens:[{type:"literal",value:"hi\u1EC3n th\u1ECB",alternatives:["hi\u1EC7n"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function m3(){return[{id:"show-zh-full",language:"zh",command:"show",priority:100,template:{format:"\u663E\u793A {patient}",tokens:[{type:"literal",value:"\u663E\u793A",alternatives:["\u986F\u793A","\u5C55\u793A","\u5448\u73B0","\u5448\u73FE"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"show-zh-ba",language:"zh",command:"show",priority:95,template:{format:"\u628A {patient} \u663E\u793A",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u663E\u793A",alternatives:["\u986F\u793A","\u5C55\u793A"]}]},extraction:{patient:{position:1}}},{id:"show-zh-with-\u7ED9",language:"zh",command:"show",priority:90,template:{format:"\u7ED9 {destination} \u663E\u793A {patient}",tokens:[{type:"literal",value:"\u7ED9",alternatives:["\u7D66"]},{type:"role",role:"destination"},{type:"literal",value:"\u663E\u793A",alternatives:["\u986F\u793A"]},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:3}}}]}function d3(e){switch(e){case"ar":return Qg();case"bn":return Zg();case"de":return e3();case"fr":return t3();case"hi":return r3();case"it":return n3();case"ja":return i3();case"ko":return a3();case"pl":return o3();case"ru":return u3();case"th":return s3();case"tr":return l3();case"uk":return c3();case"vi":return p3();case"zh":return m3();default:return[]}}function f3(){return[]}function y3(){return[{id:"hide-bn-full",language:"bn",command:"hide",priority:100,template:{format:"{patient} \u0995\u09C7 \u09B2\u09C1\u0995\u09BE\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09B2\u09C1\u0995\u09BE\u09A8",alternatives:["\u09B2\u09C1\u0995\u09BE\u0993"]}]},extraction:{patient:{position:0}}},{id:"hide-bn-simple",language:"bn",command:"hide",priority:90,template:{format:"\u09B2\u09C1\u0995\u09BE\u09A8 {patient}",tokens:[{type:"literal",value:"\u09B2\u09C1\u0995\u09BE\u09A8",alternatives:["\u09B2\u09C1\u0995\u09BE\u0993"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function h3(){return[{id:"hide-de-full",language:"de",command:"hide",priority:100,template:{format:"verstecke {patient}",tokens:[{type:"literal",value:"verstecke",alternatives:["verstecken","verberge","verbergen","hide"]},{type:"role",role:"patient",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1}}}]}function v3(){return[{id:"hide-hi-full",language:"hi",command:"hide",priority:100,template:{format:"{patient} \u0915\u094B \u091B\u093F\u092A\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u091B\u093F\u092A\u093E\u090F\u0902",alternatives:["\u091B\u093F\u092A\u093E"]}]},extraction:{patient:{position:0}}},{id:"hide-hi-simple",language:"hi",command:"hide",priority:90,template:{format:"\u091B\u093F\u092A\u093E\u090F\u0902 {patient}",tokens:[{type:"literal",value:"\u091B\u093F\u092A\u093E\u090F\u0902",alternatives:["\u091B\u093F\u092A\u093E"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"hide-hi-bare",language:"hi",command:"hide",priority:80,template:{format:"\u091B\u093F\u092A\u093E\u090F\u0902",tokens:[{type:"literal",value:"\u091B\u093F\u092A\u093E\u090F\u0902",alternatives:["\u091B\u093F\u092A\u093E"]}]},extraction:{patient:{default:{type:"reference",value:"me"}}}}]}function g3(){return[{id:"hide-it-full",language:"it",command:"hide",priority:100,template:{format:"nascondere {patient} con {style}",tokens:[{type:"literal",value:"nascondere",alternatives:["nascondi","hide"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"con"},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"con"}}},{id:"hide-it-simple",language:"it",command:"hide",priority:90,template:{format:"nascondere {patient}",tokens:[{type:"literal",value:"nascondere",alternatives:["nascondi","hide"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function E3(){return[]}function z3(){return[]}function k3(){return[{id:"hide-pl-full",language:"pl",command:"hide",priority:100,template:{format:"ukryj {patient} z {style}",tokens:[{type:"literal",value:"ukryj",alternatives:["schowaj","zas\u0142o\u0144","zaslon"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"z",alternatives:["ze","jako"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"z",markerAlternatives:["ze","jako"]}}},{id:"hide-pl-simple",language:"pl",command:"hide",priority:90,template:{format:"ukryj {patient}",tokens:[{type:"literal",value:"ukryj",alternatives:["schowaj","zas\u0142o\u0144","zaslon"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function C3(){return[{id:"hide-ru-full",language:"ru",command:"hide",priority:100,template:{format:"\u0441\u043A\u0440\u044B\u0442\u044C {patient} \u0441 {style}",tokens:[{type:"literal",value:"\u0441\u043A\u0440\u044B\u0442\u044C",alternatives:["\u0441\u043A\u0440\u043E\u0439","\u0441\u043F\u0440\u044F\u0442\u0430\u0442\u044C","\u0441\u043F\u0440\u044F\u0447\u044C"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0441",alternatives:["\u0441\u043E","\u043A\u0430\u043A"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"\u0441",markerAlternatives:["\u0441\u043E","\u043A\u0430\u043A"]}}},{id:"hide-ru-simple",language:"ru",command:"hide",priority:90,template:{format:"\u0441\u043A\u0440\u044B\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u0441\u043A\u0440\u044B\u0442\u044C",alternatives:["\u0441\u043A\u0440\u043E\u0439","\u0441\u043F\u0440\u044F\u0442\u0430\u0442\u044C","\u0441\u043F\u0440\u044F\u0447\u044C"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function x3(){return[{id:"hide-th-simple",language:"th",command:"hide",priority:100,template:{format:"\u0E0B\u0E48\u0E2D\u0E19 {patient}",tokens:[{type:"literal",value:"\u0E0B\u0E48\u0E2D\u0E19"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function w3(){return[]}function A3(){return[{id:"hide-uk-full",language:"uk",command:"hide",priority:100,template:{format:"\u0441\u0445\u043E\u0432\u0430\u0442\u0438 {patient} \u0437 {style}",tokens:[{type:"literal",value:"\u0441\u0445\u043E\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0445\u043E\u0432\u0430\u0439","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0439"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0437",alternatives:["\u0456\u0437","\u044F\u043A"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"\u0437",markerAlternatives:["\u0456\u0437","\u044F\u043A"]}}},{id:"hide-uk-simple",language:"uk",command:"hide",priority:90,template:{format:"\u0441\u0445\u043E\u0432\u0430\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0441\u0445\u043E\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0445\u043E\u0432\u0430\u0439","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0439"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function b3(){return[{id:"hide-vi-full",language:"vi",command:"hide",priority:100,template:{format:"\u1EA9n {patient} v\u1EDBi {effect}",tokens:[{type:"literal",value:"\u1EA9n",alternatives:["che","gi\u1EA5u"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"v\u1EDBi"},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"v\u1EDBi"}}},{id:"hide-vi-simple",language:"vi",command:"hide",priority:90,template:{format:"\u1EA9n {patient}",tokens:[{type:"literal",value:"\u1EA9n",alternatives:["che","gi\u1EA5u"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function D3(){return[{id:"hide-zh-full",language:"zh",command:"hide",priority:100,template:{format:"\u9690\u85CF {patient}",tokens:[{type:"literal",value:"\u9690\u85CF",alternatives:["\u96B1\u85CF","\u85CF\u8D77","\u85CF"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"hide-zh-ba",language:"zh",command:"hide",priority:95,template:{format:"\u628A {patient} \u9690\u85CF",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u9690\u85CF",alternatives:["\u96B1\u85CF","\u85CF\u8D77"]}]},extraction:{patient:{position:1}}},{id:"hide-zh-from",language:"zh",command:"hide",priority:90,template:{format:"\u4ECE {destination} \u9690\u85CF {patient}",tokens:[{type:"literal",value:"\u4ECE",alternatives:["\u5F9E"]},{type:"role",role:"destination"},{type:"literal",value:"\u9690\u85CF",alternatives:["\u96B1\u85CF"]},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:3}}}]}function T3(e){switch(e){case"ar":return f3();case"bn":return y3();case"de":return h3();case"hi":return v3();case"it":return g3();case"ja":return E3();case"ko":return z3();case"pl":return k3();case"ru":return C3();case"th":return x3();case"tr":return w3();case"uk":return A3();case"vi":return b3();case"zh":return D3();default:return[]}}function S3(){return[]}function B3(){return[{id:"set-bn-full",language:"bn",command:"set",priority:100,template:{format:"{patient} \u0995\u09C7 {goal} \u098F \u09B8\u09C7\u099F \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"role",role:"goal"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]},{type:"literal",value:"\u09B8\u09C7\u099F",alternatives:["\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09A3"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0},goal:{marker:"\u098F",position:2}}},{id:"set-bn-simple",language:"bn",command:"set",priority:90,template:{format:"\u09B8\u09C7\u099F {patient} {goal}",tokens:[{type:"literal",value:"\u09B8\u09C7\u099F",alternatives:["\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09A3"]},{type:"role",role:"patient"},{type:"role",role:"goal"}]},extraction:{patient:{position:1},goal:{position:2}}}]}function F3(){return[{id:"set-de-full",language:"de",command:"set",priority:100,template:{format:"setze {destination} auf {patient}",tokens:[{type:"literal",value:"setze",alternatives:["setzen","stelle","stellen","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"auf",alternatives:["zu","an"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-de-festlegen-auf",language:"de",command:"set",priority:99,template:{format:"festlegen auf {destination} {patient}",tokens:[{type:"literal",value:"festlegen",alternatives:["einstellen","setzen"]},{type:"literal",value:"auf",alternatives:["an"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-de-equals",language:"de",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function P3(){return[{id:"set-es-full",language:"es",command:"set",priority:100,template:{format:"establecer {destination} a {patient}",tokens:[{type:"literal",value:"establecer",alternatives:["fijar","definir","poner","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"a",alternatives:["en","como"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-es-prep-first",language:"es",command:"set",priority:95,template:{format:"establecer en {destination} {patient}",tokens:[{type:"literal",value:"establecer",alternatives:["fijar","definir","poner","set"]},{type:"literal",value:"en",alternatives:["a"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-es-equals",language:"es",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function L3(){return[{id:"set-fr-full",language:"fr",command:"set",priority:100,template:{format:"d\xE9finir {destination} \xE0 {patient}",tokens:[{type:"literal",value:"d\xE9finir",alternatives:["definir","mettre","fixer","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"\xE0",alternatives:["a","sur","comme"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-fr-sur-direct",language:"fr",command:"set",priority:98,template:{format:"d\xE9finir sur {destination} {patient}",tokens:[{type:"literal",value:"d\xE9finir",alternatives:["definir","mettre","fixer"]},{type:"literal",value:"sur",alternatives:["\xE0","en"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-fr-equals",language:"fr",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function j3(){return[{id:"set-hi-full",language:"hi",command:"set",priority:100,template:{format:"{destination} \u0915\u094B {patient} \u0938\u0947\u091F \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"destination"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"patient"},{type:"literal",value:"\u0938\u0947\u091F",alternatives:["\u0928\u093F\u0930\u094D\u0927\u093E\u0930\u093F\u0924"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094B"]}]}]},extraction:{destination:{position:0},patient:{marker:"\u0915\u094B",position:2}}},{id:"set-hi-simple",language:"hi",command:"set",priority:90,template:{format:"\u0938\u0947\u091F {destination} {patient}",tokens:[{type:"literal",value:"\u0938\u0947\u091F",alternatives:["\u0928\u093F\u0930\u094D\u0927\u093E\u0930\u093F\u0924"]},{type:"role",role:"destination"},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:2}}}]}function _3(){return[{id:"set-id-full",language:"id",command:"set",priority:100,template:{format:"atur {destination} ke {patient}",tokens:[{type:"literal",value:"atur",alternatives:["tetapkan","setel","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"ke",alternatives:["menjadi","jadi","pada"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-id-pada-direct",language:"id",command:"set",priority:98,template:{format:"atur pada {destination} {patient}",tokens:[{type:"literal",value:"atur",alternatives:["tetapkan","setel"]},{type:"literal",value:"pada",alternatives:["ke","di"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-id-equals",language:"id",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function R3(){return[{id:"set-it-full",language:"it",command:"set",priority:100,template:{format:"impostare {patient} a {goal}",tokens:[{type:"literal",value:"impostare",alternatives:["imposta","set","definire"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"a",alternatives:["su","come"]},{type:"role",role:"goal"}]}]},extraction:{patient:{position:1},goal:{marker:"a",markerAlternatives:["su","come"]}}},{id:"set-it-simple",language:"it",command:"set",priority:90,template:{format:"impostare {patient}",tokens:[{type:"literal",value:"impostare",alternatives:["imposta","set"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function N3(){return[]}function I3(){return[]}function O3(){return[{id:"set-pl-full",language:"pl",command:"set",priority:100,template:{format:"ustaw {patient} na {goal}",tokens:[{type:"literal",value:"ustaw",alternatives:["okre\u015Bl","okresl","przypisz"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"na",alternatives:["do","jako"]},{type:"role",role:"goal"}]}]},extraction:{patient:{position:1},goal:{marker:"na",markerAlternatives:["do","jako"]}}},{id:"set-pl-simple",language:"pl",command:"set",priority:90,template:{format:"ustaw {patient}",tokens:[{type:"literal",value:"ustaw",alternatives:["okre\u015Bl","okresl"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function M3(){return[{id:"set-pt-full",language:"pt",command:"set",priority:100,template:{format:"definir {destination} para {patient}",tokens:[{type:"literal",value:"definir",alternatives:["estabelecer","colocar","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"para",alternatives:["como","a","em"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-pt-em-direct",language:"pt",command:"set",priority:98,template:{format:"definir em {destination} {patient}",tokens:[{type:"literal",value:"definir",alternatives:["estabelecer","colocar"]},{type:"literal",value:"em",alternatives:["para","a"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-pt-equals",language:"pt",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function W3(){return[{id:"set-ru-full",language:"ru",command:"set",priority:100,template:{format:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C {patient} \u0432 {goal}",tokens:[{type:"literal",value:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",alternatives:["\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u044C","\u0437\u0430\u0434\u0430\u0439"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u043D\u0430","\u043A\u0430\u043A"]},{type:"role",role:"goal"}]}]},extraction:{patient:{position:1},goal:{marker:"\u0432",markerAlternatives:["\u043D\u0430","\u043A\u0430\u043A"]}}},{id:"set-ru-simple",language:"ru",command:"set",priority:90,template:{format:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",alternatives:["\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u044C","\u0437\u0430\u0434\u0430\u0439"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function q3(){return[{id:"set-th-simple",language:"th",command:"set",priority:100,template:{format:"\u0E15\u0E31\u0E49\u0E07 {patient} {goal}",tokens:[{type:"literal",value:"\u0E15\u0E31\u0E49\u0E07",alternatives:["\u0E01\u0E33\u0E2B\u0E19\u0E14"]},{type:"role",role:"patient"},{type:"role",role:"goal"}]},extraction:{patient:{position:1},goal:{position:2}}}]}function $3(){return[]}function V3(){return[{id:"set-uk-full",language:"uk",command:"set",priority:100,template:{format:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438 {patient} \u0432 {goal}",tokens:[{type:"literal",value:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438",alternatives:["\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u0438","\u0437\u0430\u0434\u0430\u0439"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u043D\u0430","\u044F\u043A"]},{type:"role",role:"goal"}]}]},extraction:{patient:{position:1},goal:{marker:"\u0432",markerAlternatives:["\u043D\u0430","\u044F\u043A"]}}},{id:"set-uk-simple",language:"uk",command:"set",priority:90,template:{format:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438",alternatives:["\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u0438","\u0437\u0430\u0434\u0430\u0439"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function K3(){return[{id:"set-vi-full",language:"vi",command:"set",priority:100,template:{format:"g\xE1n {target} th\xE0nh {value}",tokens:[{type:"literal",value:"g\xE1n",alternatives:["thi\u1EBFt l\u1EADp","\u0111\u1EB7t gi\xE1 tr\u1ECB"]},{type:"role",role:"patient"},{type:"literal",value:"th\xE0nh",alternatives:["b\u1EB1ng","l\xE0"]},{type:"role",role:"goal"}]},extraction:{patient:{position:1},goal:{marker:"th\xE0nh",markerAlternatives:["b\u1EB1ng","l\xE0"]}}},{id:"set-vi-simple",language:"vi",command:"set",priority:90,template:{format:"\u0111\u1EB7t {target} l\xE0 {value}",tokens:[{type:"literal",value:"\u0111\u1EB7t"},{type:"role",role:"patient"},{type:"literal",value:"l\xE0"},{type:"role",role:"goal"}]},extraction:{patient:{position:1},goal:{marker:"l\xE0"}}}]}function H3(){return[{id:"set-zh-full",language:"zh",command:"set",priority:100,template:{format:"\u8BBE\u7F6E {destination} \u4E3A {patient}",tokens:[{type:"literal",value:"\u8BBE\u7F6E",alternatives:["\u8A2D\u7F6E","\u8BBE\u5B9A","\u8A2D\u5B9A"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"\u4E3A",alternatives:["\u70BA","\u5230","\u6210"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{marker:"\u4E3A",markerAlternatives:["\u70BA","\u5230","\u6210"]}}},{id:"set-zh-ba",language:"zh",command:"set",priority:95,template:{format:"\u628A {destination} \u8BBE\u7F6E\u4E3A {patient}",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"\u8BBE\u7F6E\u4E3A",alternatives:["\u8A2D\u7F6E\u70BA","\u8BBE\u5B9A\u4E3A","\u8A2D\u5B9A\u70BA"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{marker:"\u8BBE\u7F6E\u4E3A",markerAlternatives:["\u8A2D\u7F6E\u70BA","\u8BBE\u5B9A\u4E3A","\u8A2D\u5B9A\u70BA"]}}},{id:"set-zh-simple",language:"zh",command:"set",priority:90,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function G3(e){switch(e){case"ar":return S3();case"bn":return B3();case"de":return F3();case"es":return P3();case"fr":return L3();case"hi":return j3();case"id":return _3();case"it":return R3();case"ja":return N3();case"ko":return I3();case"pl":return O3();case"pt":return M3();case"ru":return W3();case"th":return q3();case"tr":return $3();case"uk":return V3();case"vi":return K3();case"zh":return H3();default:return[]}}function U3(){return[]}function X3(){return[{id:"get-bn-full",language:"bn",command:"get",priority:100,template:{format:"{source} \u09A5\u09C7\u0995\u09C7 \u09AA\u09BE\u09A8",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u09A5\u09C7\u0995\u09C7"},{type:"literal",value:"\u09AA\u09BE\u09A8",alternatives:["\u09A8\u09BF\u09A8"]}]},extraction:{source:{position:0}}},{id:"get-bn-simple",language:"bn",command:"get",priority:90,template:{format:"\u09AA\u09BE\u09A8 {source}",tokens:[{type:"literal",value:"\u09AA\u09BE\u09A8",alternatives:["\u09A8\u09BF\u09A8"]},{type:"role",role:"source"}]},extraction:{source:{position:1}}}]}function Y3(){return[{id:"get-de-full",language:"de",command:"get",priority:100,template:{format:"hole {source}",tokens:[{type:"literal",value:"hole",alternatives:["holen","get","bekomme","bekommen"]},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]},extraction:{source:{position:1}}}]}function J3(){return[{id:"get-hi-full",language:"hi",command:"get",priority:100,template:{format:"{source} \u0938\u0947 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u0938\u0947"},{type:"literal",value:"\u092A\u094D\u0930\u093E\u092A\u094D\u0924",alternatives:["\u092A\u093E\u090F\u0902"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094B"]}]}]},extraction:{source:{position:0}}},{id:"get-hi-simple",language:"hi",command:"get",priority:90,template:{format:"\u092A\u094D\u0930\u093E\u092A\u094D\u0924 {source}",tokens:[{type:"literal",value:"\u092A\u094D\u0930\u093E\u092A\u094D\u0924",alternatives:["\u092A\u093E\u090F\u0902"]},{type:"role",role:"source"}]},extraction:{source:{position:1}}}]}function Q3(){return[{id:"get-it-full",language:"it",command:"get",priority:100,template:{format:"ottenere {patient} da {source}",tokens:[{type:"literal",value:"ottenere",alternatives:["ottieni","get","prendere"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"da",alternatives:["di"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"da",markerAlternatives:["di"]}}},{id:"get-it-simple",language:"it",command:"get",priority:90,template:{format:"ottenere {patient}",tokens:[{type:"literal",value:"ottenere",alternatives:["ottieni","get"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function Z3(){return[]}function eE(){return[]}function tE(){return[{id:"get-pl-full",language:"pl",command:"get",priority:100,template:{format:"uzyskaj {patient} z {source}",tokens:[{type:"literal",value:"uzyskaj"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"z",alternatives:["od","ze"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"z",markerAlternatives:["od","ze"]}}},{id:"get-pl-simple",language:"pl",command:"get",priority:90,template:{format:"uzyskaj {patient}",tokens:[{type:"literal",value:"uzyskaj"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function rE(){return[{id:"get-ru-full",language:"ru",command:"get",priority:100,template:{format:"\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C {patient} \u0438\u0437 {source}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u0443\u0447\u0438","\u0432\u0437\u044F\u0442\u044C","\u0432\u043E\u0437\u044C\u043C\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0438\u0437",alternatives:["\u043E\u0442","\u0441"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"\u0438\u0437",markerAlternatives:["\u043E\u0442","\u0441"]}}},{id:"get-ru-simple",language:"ru",command:"get",priority:90,template:{format:"\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u0443\u0447\u0438","\u0432\u0437\u044F\u0442\u044C","\u0432\u043E\u0437\u044C\u043C\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function nE(){return[{id:"get-th-simple",language:"th",command:"get",priority:100,template:{format:"\u0E23\u0E31\u0E1A\u0E04\u0E48\u0E32 {source}",tokens:[{type:"literal",value:"\u0E23\u0E31\u0E1A\u0E04\u0E48\u0E32"},{type:"role",role:"source"}]},extraction:{source:{position:1}}}]}function iE(){return[{id:"get-uk-full",language:"uk",command:"get",priority:100,template:{format:"\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438 {patient} \u0437 {source}",tokens:[{type:"literal",value:"\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438",alternatives:["\u043E\u0442\u0440\u0438\u043C\u0430\u0439","\u0432\u0437\u044F\u0442\u0438","\u0432\u0456\u0437\u044C\u043C\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"\u0437",markerAlternatives:["\u0432\u0456\u0434","\u0456\u0437"]}}},{id:"get-uk-simple",language:"uk",command:"get",priority:90,template:{format:"\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438",alternatives:["\u043E\u0442\u0440\u0438\u043C\u0430\u0439","\u0432\u0437\u044F\u0442\u0438","\u0432\u0456\u0437\u044C\u043C\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function aE(){return[{id:"get-vi-full",language:"vi",command:"get",priority:100,template:{format:"l\u1EA5y gi\xE1 tr\u1ECB c\u1EE7a {target}",tokens:[{type:"literal",value:"l\u1EA5y gi\xE1 tr\u1ECB",alternatives:["nh\u1EADn","l\u1EA5y"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"c\u1EE7a"}]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"get-vi-simple",language:"vi",command:"get",priority:90,template:{format:"l\u1EA5y {target}",tokens:[{type:"literal",value:"l\u1EA5y",alternatives:["nh\u1EADn","l\u1EA5y gi\xE1 tr\u1ECB"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function oE(e){switch(e){case"ar":return U3();case"bn":return X3();case"de":return Y3();case"hi":return J3();case"it":return Q3();case"ja":return Z3();case"ko":return eE();case"pl":return tE();case"ru":return rE();case"th":return nE();case"uk":return iE();case"vi":return aE();default:return[]}}function uE(){return[]}function sE(){return[{id:"increment-bn-full",language:"bn",command:"increment",priority:100,template:{format:"{patient} \u0995\u09C7 \u09AC\u09C3\u09A6\u09CD\u09A7\u09BF \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09AC\u09C3\u09A6\u09CD\u09A7\u09BF",alternatives:["\u09AC\u09BE\u09A1\u09BC\u09BE\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0}}},{id:"increment-bn-with-quantity",language:"bn",command:"increment",priority:95,template:{format:"{patient} \u0995\u09C7 {quantity} \u09A6\u09BF\u09AF\u09BC\u09C7 \u09AC\u09C3\u09A6\u09CD\u09A7\u09BF \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"role",role:"quantity"},{type:"literal",value:"\u09A6\u09BF\u09AF\u09BC\u09C7"},{type:"literal",value:"\u09AC\u09C3\u09A6\u09CD\u09A7\u09BF",alternatives:["\u09AC\u09BE\u09A1\u09BC\u09BE\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0},quantity:{marker:"\u09A6\u09BF\u09AF\u09BC\u09C7",position:2}}},{id:"increment-bn-simple",language:"bn",command:"increment",priority:90,template:{format:"\u09AC\u09C3\u09A6\u09CD\u09A7\u09BF {patient}",tokens:[{type:"literal",value:"\u09AC\u09C3\u09A6\u09CD\u09A7\u09BF",alternatives:["\u09AC\u09BE\u09A1\u09BC\u09BE\u09A8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function lE(){return[{id:"increment-de-full",language:"de",command:"increment",priority:100,template:{format:"erh\xF6he {patient}",tokens:[{type:"literal",value:"erh\xF6he",alternatives:["erhoehe","erh\xF6hen","inkrementiere","inkrementieren","increment"]},{type:"role",role:"patient",expectedTypes:["selector","reference","expression"]}]},extraction:{patient:{position:1}}}]}function cE(){return[]}function pE(){return[]}function mE(){return[{id:"increment-hi-full",language:"hi",command:"increment",priority:100,template:{format:"{patient} \u0915\u094B \u092C\u0922\u093C\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u092C\u0922\u093C\u093E\u090F\u0902",alternatives:["\u092C\u0922\u093C\u093E"]}]},extraction:{patient:{position:0}}},{id:"increment-hi-with-quantity",language:"hi",command:"increment",priority:95,template:{format:"{patient} \u0915\u094B {quantity} \u0938\u0947 \u092C\u0922\u093C\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"quantity"},{type:"literal",value:"\u0938\u0947"},{type:"literal",value:"\u092C\u0922\u093C\u093E\u090F\u0902",alternatives:["\u092C\u0922\u093C\u093E"]}]},extraction:{patient:{position:0},quantity:{marker:"\u0938\u0947",position:2}}},{id:"increment-hi-simple",language:"hi",command:"increment",priority:90,template:{format:"\u092C\u0922\u093C\u093E\u090F\u0902 {patient}",tokens:[{type:"literal",value:"\u092C\u0922\u093C\u093E\u090F\u0902",alternatives:["\u092C\u0922\u093C\u093E"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function dE(){return[{id:"increment-it-full",language:"it",command:"increment",priority:100,template:{format:"incrementare {patient} di {quantity}",tokens:[{type:"literal",value:"incrementare",alternatives:["incrementa","aumentare","increment"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"di",alternatives:["per"]},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"di",markerAlternatives:["per"],default:{type:"literal",value:"1"}}}},{id:"increment-it-simple",language:"it",command:"increment",priority:90,template:{format:"incrementare {patient}",tokens:[{type:"literal",value:"incrementare",alternatives:["incrementa","aumentare","increment"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:"1"}}}}]}function fE(){return[]}function yE(){return[]}function hE(){return[{id:"increment-pl-full",language:"pl",command:"increment",priority:100,template:{format:"zwi\u0119ksz {patient} o {quantity}",tokens:[{type:"literal",value:"zwi\u0119ksz",alternatives:["zwieksz","podnie\u015B","podnies"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"o"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"o",default:{type:"literal",value:1}}}},{id:"increment-pl-simple",language:"pl",command:"increment",priority:90,template:{format:"zwi\u0119ksz {patient}",tokens:[{type:"literal",value:"zwi\u0119ksz",alternatives:["zwieksz","podnie\u015B","podnies"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}]}function vE(){return[{id:"increment-ru-full",language:"ru",command:"increment",priority:100,template:{format:"\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C {patient} \u043D\u0430 {quantity}",tokens:[{type:"literal",value:"\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C",alternatives:["\u0443\u0432\u0435\u043B\u0438\u0447\u044C"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u043D\u0430",default:{type:"literal",value:1}}}},{id:"increment-ru-simple",language:"ru",command:"increment",priority:90,template:{format:"\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C",alternatives:["\u0443\u0432\u0435\u043B\u0438\u0447\u044C"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}]}function gE(){return[{id:"increment-th-simple",language:"th",command:"increment",priority:100,template:{format:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E04\u0E48\u0E32 {patient}",tokens:[{type:"literal",value:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E04\u0E48\u0E32"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"increment-th-with-quantity",language:"th",command:"increment",priority:95,template:{format:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E04\u0E48\u0E32 {patient} \u0E14\u0E49\u0E27\u0E22 {quantity}",tokens:[{type:"literal",value:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E04\u0E48\u0E32"},{type:"role",role:"patient"},{type:"literal",value:"\u0E14\u0E49\u0E27\u0E22"},{type:"role",role:"quantity"}]},extraction:{patient:{position:1},quantity:{marker:"\u0E14\u0E49\u0E27\u0E22",position:3}}}]}function EE(){return[]}function zE(){return[{id:"increment-uk-full",language:"uk",command:"increment",priority:100,template:{format:"\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 {patient} \u043D\u0430 {quantity}",tokens:[{type:"literal",value:"\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438",alternatives:["\u0437\u0431\u0456\u043B\u044C\u0448"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u043D\u0430",default:{type:"literal",value:1}}}},{id:"increment-uk-simple",language:"uk",command:"increment",priority:90,template:{format:"\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438",alternatives:["\u0437\u0431\u0456\u043B\u044C\u0448"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}]}function kE(){return[{id:"increment-vi-full",language:"vi",command:"increment",priority:100,template:{format:"t\u0103ng {target} th\xEAm {amount}",tokens:[{type:"literal",value:"t\u0103ng",alternatives:["t\u0103ng l\xEAn"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"th\xEAm",alternatives:["l\xEAn"]},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"th\xEAm",markerAlternatives:["l\xEAn"],default:{type:"literal",value:"1"}}}},{id:"increment-vi-simple",language:"vi",command:"increment",priority:90,template:{format:"t\u0103ng {target}",tokens:[{type:"literal",value:"t\u0103ng",alternatives:["t\u0103ng l\xEAn"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:"1"}}}}]}function CE(){return[{id:"increment-zh-full",language:"zh",command:"increment",priority:100,template:{format:"\u589E\u52A0 {patient}",tokens:[{type:"literal",value:"\u589E\u52A0",alternatives:["\u9012\u589E","\u52A0","\u589E","increment"]},{type:"role",role:"patient",expectedTypes:["selector","reference","expression"]}]},extraction:{patient:{position:1}}}]}function xE(e){switch(e){case"ar":return uE();case"bn":return sE();case"de":return lE();case"es":return cE();case"fr":return pE();case"hi":return mE();case"it":return dE();case"ja":return fE();case"ko":return yE();case"pl":return hE();case"ru":return vE();case"th":return gE();case"tr":return EE();case"uk":return zE();case"vi":return kE();case"zh":return CE();default:return[]}}function wE(){return[{id:"decrement-bn-full",language:"bn",command:"decrement",priority:100,template:{format:"{patient} \u0995\u09C7 \u09B9\u09CD\u09B0\u09BE\u09B8 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09B9\u09CD\u09B0\u09BE\u09B8",alternatives:["\u0995\u09AE\u09BE\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0}}},{id:"decrement-bn-with-quantity",language:"bn",command:"decrement",priority:95,template:{format:"{patient} \u0995\u09C7 {quantity} \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B9\u09CD\u09B0\u09BE\u09B8 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"role",role:"quantity"},{type:"literal",value:"\u09A6\u09BF\u09AF\u09BC\u09C7"},{type:"literal",value:"\u09B9\u09CD\u09B0\u09BE\u09B8",alternatives:["\u0995\u09AE\u09BE\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0},quantity:{marker:"\u09A6\u09BF\u09AF\u09BC\u09C7",position:2}}},{id:"decrement-bn-simple",language:"bn",command:"decrement",priority:90,template:{format:"\u09B9\u09CD\u09B0\u09BE\u09B8 {patient}",tokens:[{type:"literal",value:"\u09B9\u09CD\u09B0\u09BE\u09B8",alternatives:["\u0995\u09AE\u09BE\u09A8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function AE(){return[{id:"decrement-de-full",language:"de",command:"decrement",priority:100,template:{format:"verringere {patient}",tokens:[{type:"literal",value:"verringere",alternatives:["verringern","dekrementiere","dekrementieren","reduziere","decrement"]},{type:"role",role:"patient",expectedTypes:["selector","reference","expression"]}]},extraction:{patient:{position:1}}}]}function bE(){return[{id:"decrement-hi-full",language:"hi",command:"decrement",priority:100,template:{format:"{patient} \u0915\u094B \u0918\u091F\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u0918\u091F\u093E\u090F\u0902",alternatives:["\u0918\u091F\u093E"]}]},extraction:{patient:{position:0}}},{id:"decrement-hi-with-quantity",language:"hi",command:"decrement",priority:95,template:{format:"{patient} \u0915\u094B {quantity} \u0938\u0947 \u0918\u091F\u093E\u090F\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"quantity"},{type:"literal",value:"\u0938\u0947"},{type:"literal",value:"\u0918\u091F\u093E\u090F\u0902",alternatives:["\u0918\u091F\u093E"]}]},extraction:{patient:{position:0},quantity:{marker:"\u0938\u0947",position:2}}},{id:"decrement-hi-simple",language:"hi",command:"decrement",priority:90,template:{format:"\u0918\u091F\u093E\u090F\u0902 {patient}",tokens:[{type:"literal",value:"\u0918\u091F\u093E\u090F\u0902",alternatives:["\u0918\u091F\u093E"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function DE(){return[{id:"decrement-it-full",language:"it",command:"decrement",priority:100,template:{format:"decrementare {patient} di {quantity}",tokens:[{type:"literal",value:"decrementare",alternatives:["decrementa","diminuire","decrement"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"di",alternatives:["per"]},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"di",markerAlternatives:["per"],default:{type:"literal",value:"1"}}}},{id:"decrement-it-simple",language:"it",command:"decrement",priority:90,template:{format:"decrementare {patient}",tokens:[{type:"literal",value:"decrementare",alternatives:["decrementa","diminuire","decrement"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:"1"}}}}]}function TE(){return[]}function SE(){return[]}function BE(){return[{id:"decrement-pl-full",language:"pl",command:"decrement",priority:100,template:{format:"zmniejsz {patient} o {quantity}",tokens:[{type:"literal",value:"zmniejsz",alternatives:["obni\u017C","obniz"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"o"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"o",default:{type:"literal",value:1}}}},{id:"decrement-pl-simple",language:"pl",command:"decrement",priority:90,template:{format:"zmniejsz {patient}",tokens:[{type:"literal",value:"zmniejsz",alternatives:["obni\u017C","obniz"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}]}function FE(){return[{id:"decrement-ru-full",language:"ru",command:"decrement",priority:100,template:{format:"\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C {patient} \u043D\u0430 {quantity}",tokens:[{type:"literal",value:"\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C",alternatives:["\u0443\u043C\u0435\u043D\u044C\u0448\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u043D\u0430",default:{type:"literal",value:1}}}},{id:"decrement-ru-simple",language:"ru",command:"decrement",priority:90,template:{format:"\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C",alternatives:["\u0443\u043C\u0435\u043D\u044C\u0448\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}]}function PE(){return[{id:"decrement-th-simple",language:"th",command:"decrement",priority:100,template:{format:"\u0E25\u0E14\u0E04\u0E48\u0E32 {patient}",tokens:[{type:"literal",value:"\u0E25\u0E14\u0E04\u0E48\u0E32"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"decrement-th-with-quantity",language:"th",command:"decrement",priority:95,template:{format:"\u0E25\u0E14\u0E04\u0E48\u0E32 {patient} \u0E14\u0E49\u0E27\u0E22 {quantity}",tokens:[{type:"literal",value:"\u0E25\u0E14\u0E04\u0E48\u0E32"},{type:"role",role:"patient"},{type:"literal",value:"\u0E14\u0E49\u0E27\u0E22"},{type:"role",role:"quantity"}]},extraction:{patient:{position:1},quantity:{marker:"\u0E14\u0E49\u0E27\u0E22",position:3}}}]}function LE(){return[]}function jE(){return[{id:"decrement-uk-full",language:"uk",command:"decrement",priority:100,template:{format:"\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438 {patient} \u043D\u0430 {quantity}",tokens:[{type:"literal",value:"\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438",alternatives:["\u0437\u043C\u0435\u043D\u0448"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u043D\u0430",default:{type:"literal",value:1}}}},{id:"decrement-uk-simple",language:"uk",command:"decrement",priority:90,template:{format:"\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438",alternatives:["\u0437\u043C\u0435\u043D\u0448"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}]}function _E(){return[{id:"decrement-vi-full",language:"vi",command:"decrement",priority:100,template:{format:"gi\u1EA3m {target} \u0111i {amount}",tokens:[{type:"literal",value:"gi\u1EA3m",alternatives:["gi\u1EA3m \u0111i"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0111i",alternatives:["xu\u1ED1ng"]},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u0111i",markerAlternatives:["xu\u1ED1ng"],default:{type:"literal",value:"1"}}}},{id:"decrement-vi-simple",language:"vi",command:"decrement",priority:90,template:{format:"gi\u1EA3m {target}",tokens:[{type:"literal",value:"gi\u1EA3m",alternatives:["gi\u1EA3m \u0111i"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:"1"}}}}]}function RE(){return[{id:"decrement-zh-full",language:"zh",command:"decrement",priority:100,template:{format:"\u51CF\u5C11 {patient}",tokens:[{type:"literal",value:"\u51CF\u5C11",alternatives:["\u9012\u51CF","\u51CF","\u964D\u4F4E","decrement"]},{type:"role",role:"patient",expectedTypes:["selector","reference","expression"]}]},extraction:{patient:{position:1}}}]}function NE(e){switch(e){case"bn":return wE();case"de":return AE();case"hi":return bE();case"it":return DE();case"ja":return TE();case"ko":return SE();case"pl":return BE();case"ru":return FE();case"th":return PE();case"tr":return LE();case"uk":return jE();case"vi":return _E();case"zh":return RE();default:return[]}}function IE(){return[{id:"append-en-full",language:"en",command:"append",priority:100,template:{format:"append {patient} to {destination}",tokens:[{type:"literal",value:"append"},{type:"role",role:"patient",expectedTypes:["literal","selector","expression"]},{type:"literal",value:"to"},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{marker:"to"}}}]}function OE(){return[]}function ME(){return[]}function WE(){return[]}function qE(e){switch(e){case"en":return IE();case"es":return OE();case"ja":return ME();case"ko":return WE();default:return[]}}function $E(){return[{id:"prepend-en-full",language:"en",command:"prepend",priority:100,template:{format:"prepend {patient} to {destination}",tokens:[{type:"literal",value:"prepend"},{type:"role",role:"patient",expectedTypes:["literal","selector","expression"]},{type:"literal",value:"to"},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{marker:"to"}}}]}function VE(){return[]}function KE(){return[]}function HE(){return[]}function GE(e){switch(e){case"en":return $E();case"es":return VE();case"ja":return KE();case"ko":return HE();default:return[]}}function UE(){return[{id:"trigger-en-full",language:"en",command:"trigger",priority:100,template:{format:"trigger {event} on {destination}",tokens:[{type:"literal",value:"trigger"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"on"},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]}]},extraction:{event:{position:1},destination:{marker:"on",default:{type:"reference",value:"me"}}}},{id:"trigger-en-simple",language:"en",command:"trigger",priority:90,template:{format:"trigger {event}",tokens:[{type:"literal",value:"trigger"},{type:"role",role:"event",expectedTypes:["literal","expression"]}]},extraction:{event:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function XE(){return[]}function YE(){return[]}function JE(){return[]}function QE(e){switch(e){case"en":return UE();case"es":return XE();case"ja":return YE();case"ko":return JE();default:return[]}}var ZE={id:"fetch-en-with-response-type",language:"en",command:"fetch",priority:90,template:{format:"fetch {source} as {responseType}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source",expectedTypes:["literal","expression"]},{type:"literal",value:"as"},{type:"role",role:"responseType",expectedTypes:["literal","expression"]}]},extraction:{source:{position:1},responseType:{marker:"as"}}},e9={id:"fetch-en-simple",language:"en",command:"fetch",priority:80,template:{format:"fetch {source}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source"}]},extraction:{source:{position:1}}},t9=[ZE,e9],r9={id:"swap-en-handcrafted",language:"en",command:"swap",priority:110,template:{format:"swap {method} {destination}",tokens:[{type:"literal",value:"swap"},{type:"role",role:"method"},{type:"role",role:"destination"}]},extraction:{method:{position:1},destination:{position:2}}},n9=[r9],i9={id:"repeat-en-until-event-from",language:"en",command:"repeat",priority:120,template:{format:"repeat until event {event} from {source}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"from"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]},extraction:{event:{marker:"event"},source:{marker:"from"},loopType:{default:{type:"literal",value:"until-event"}}}},a9={id:"repeat-en-until-event",language:"en",command:"repeat",priority:110,template:{format:"repeat until event {event}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]}]},extraction:{event:{marker:"event"},loopType:{default:{type:"literal",value:"until-event"}}}},o9=[i9,a9],u9={id:"set-en-possessive",language:"en",command:"set",priority:100,template:{format:"set {destination} to {patient}",tokens:[{type:"literal",value:"set"},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"to"},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{marker:"to"}}},s9=[u9],l9={id:"for-en-basic",language:"en",command:"for",priority:100,template:{format:"for {patient} in {source}",tokens:[{type:"literal",value:"for"},{type:"role",role:"patient",expectedTypes:["expression","reference"]},{type:"literal",value:"in"},{type:"role",role:"source",expectedTypes:["selector","expression","reference"]}]},extraction:{patient:{position:1},source:{marker:"in"},loopType:{default:{type:"literal",value:"for"}}}},c9={id:"if-en-basic",language:"en",command:"if",priority:100,template:{format:"if {condition}",tokens:[{type:"literal",value:"if"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},p9={id:"unless-en-basic",language:"en",command:"unless",priority:100,template:{format:"unless {condition}",tokens:[{type:"literal",value:"unless"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},m9=[l9,c9,p9],d9={id:"temporal-en-in",language:"en",command:"wait",priority:95,template:{format:"in {duration}",tokens:[{type:"literal",value:"in"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}},f9={id:"temporal-en-after",language:"en",command:"wait",priority:95,template:{format:"after {duration}",tokens:[{type:"literal",value:"after"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}},y9=[d9,f9],h9=[...t9,...n9,...o9,...s9,...m9,...y9];function v9(){return h9}ai(),w();var g9=[Pp,Lv,Lp,jp,Rg,Jg,d3,T3,G3,oE,xE,NE,qE,GE,QE,kg],_p=new Map;function E9(e){let t=_p.get(e);if(t)return t;let r=oe(e);if(!r)return[];let n=mr(r);return _p.set(e,n),n}function ha(e){let t=g9.flatMap(r=>r(e));return e==="en"&&t.push(...v9()),t.push(...E9(e)),t}var z9=["en","ja","ar","es","ko","zh","tr","pt","fr","de","id","qu","sw","it","vi","pl","ru","uk","hi","bn","th","ms","tl","he"];function Rp(){let e=[];for(let t of z9)e.push(...ha(t));return e}var va=new Map,ut=null;function ga(){return ut===null&&(ut=Rp()),ut}var Kt=new Proxy([],{get(e,t){let r=ga(),n=Reflect.get(r,t);return typeof n=="function"?n.bind(r):n},ownKeys(){return Reflect.ownKeys(ga())},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(ga(),t)}});function k9(){return ut===null&&(ut=Rp()),ut}function Np(e){if(va.has(e))return va.get(e);let t=ha(e);return va.set(e,t),t}function C9(e,t){return Np(e).filter(r=>r.command===t).sort((r,n)=>n.priority-r.priority)}function x9(){let e=new Set(Kt.map(t=>t.language));return Array.from(e)}function w9(){let e=new Set(Kt.map(t=>t.command));return Array.from(e)}function A9(e){return Kt.find(t=>t.id===e)}function b9(){let e={},t={};for(let r of Kt)e[r.language]=(e[r.language]||0)+1,t[r.command]=(t[r.command]||0)+1;return{totalPatterns:Kt.length,byLanguage:e,byCommand:t}}Ep(),w();function D9(e){return ha(e.code)}R4(D9),$t(),$u(),M(),I();Pr(),ya(),fa(),da(),da(),fa();function T9(e,t){if(fe(e))return e;let r=ae(e,t);return Lr(r)}function Ip(e,t){let r=_r(e);return ve(r,t)}function Da(e,t,r){if(fe(e))return Ip(e,r);let n=ae(e,t);return ve(n,r)}function Ht(e,t){return fe(e)?_r(e):ae(e,t)}function S9(e,t,r){let n=Ht(e,t),i=r??t,a=fe(e)?Lr(n):ve(n,i);if(r!==void 0)return a;let o=e.trim().toLowerCase(),u=a.trim().toLowerCase();return{original:e,semantic:n,rendered:a,matches:o===u}}function B9(e,t,r=["en","ja","ar","es","ko","zh","tr","pt","fr","de","id","qu","sw"]){let n={},i=Ht(e,t);for(let a of r)n[a]=ve(i,a);return n.explicit=Lr(i),n}function F9(e,t,r,n){try{let i=Ht(e,r),a=Ht(t,n);if(i.action!==a.action)return!1;for(let[o,u]of i.roles){let s=a.roles.get(o);if(!s||!Op(u,s))return!1}return!0}catch{return!1}}function Op(e,t){if(e.type!==t.type)return!1;switch(e.type){case"literal":return e.value===t.value;case"selector":return e.value===t.value;case"reference":return e.value===t.value;case"property-path":return Op(e.object,t.object)&&e.property===t.property;case"expression":return e.raw===t.raw;case"flag":return e.name===t.name&&e.enabled===t.enabled;default:return!1}}w(),Pr(),ya(),$t(),w();var Gt=class{constructor(e={}){this.cache=new Map,this.config={maxSize:e.maxSize??1e3,ttlMs:e.ttlMs??0,enabled:e.enabled??!0},this.stats={hits:0,misses:0,evictions:0,expirations:0}}makeKey(e,t){return`${t}:${e}`}isExpired(e){return this.config.ttlMs===0?!1:Date.now()-e.createdAt>this.config.ttlMs}evictLRU(){let e=this.cache.keys().next().value;e!==void 0&&(this.cache.delete(e),this.stats.evictions++)}get(e,t){if(!this.config.enabled){this.stats.misses++;return}let r=this.makeKey(e,t),n=this.cache.get(r);if(!n){this.stats.misses++;return}if(this.isExpired(n)){this.cache.delete(r),this.stats.expirations++,this.stats.misses++;return}return this.cache.delete(r),n.lastAccessed=Date.now(),this.cache.set(r,n),this.stats.hits++,n.result}set(e,t,r){if(!this.config.enabled||r.confidence===0)return;let n=this.makeKey(e,t),i=Date.now();for(;this.cache.size>=this.config.maxSize;)this.evictLRU();this.cache.set(n,{result:r,createdAt:i,lastAccessed:i})}has(e,t){if(!this.config.enabled)return!1;let r=this.makeKey(e,t),n=this.cache.get(r);return n?this.isExpired(n)?(this.cache.delete(r),this.stats.expirations++,!1):!0:!1}delete(e,t){let r=this.makeKey(e,t);return this.cache.delete(r)}clear(){this.cache.clear()}resetStats(){this.stats={hits:0,misses:0,evictions:0,expirations:0}}getStats(){let e=this.stats.hits+this.stats.misses;return{hits:this.stats.hits,misses:this.stats.misses,size:this.cache.size,maxSize:this.config.maxSize,hitRate:e>0?this.stats.hits/e:0,evictions:this.stats.evictions,expirations:this.stats.expirations,enabled:this.config.enabled}}configure(e){if(e.maxSize!==void 0)for(this.config.maxSize=e.maxSize;this.cache.size>this.config.maxSize;)this.evictLRU();e.ttlMs!==void 0&&(this.config.ttlMs=e.ttlMs),e.enabled!==void 0&&(this.config.enabled=e.enabled)}enable(){this.config.enabled=!0}disable(){this.config.enabled=!1}getConfig(){return{...this.config}}},Ea=new Gt;function P9(e){return new Gt(e)}function L9(e,t=Ea){return((r,n)=>{let i=t.get(r,n);if(i)return i;let a=e(r,n);return t.set(r,n,a),a})}var Mp=class{constructor(e={}){this.patternMatcher=new Fr,this.languages=new Set(yt()),e.cache===!1?this.cache=new Gt({enabled:!1}):this.cache=e.cache?new Gt(e.cache):Ea}analyze(e,t){if(!this.supportsLanguage(t))return{confidence:0,errors:[`Language '${t}' is not supported for semantic parsing`]};let r=this.cache.get(e,t);if(r)return r;let n=this.analyzeUncached(e,t);return this.cache.set(e,t,n),n}analyzeUncached(e,t){try{try{let o=ae(e,t),u={confidence:o.metadata?.confidence??.8,node:o};return o.kind==="command"?{...u,command:{name:o.action,roles:o.roles}}:u}catch{}let r=zp(t);if(!r)return{confidence:0,errors:[`No tokenizer available for language '${t}'`]};let n=r.tokenize(e),i=Fe(t);if(i.length===0)return{confidence:0,errors:[`No patterns available for language '${t}'`]};let a=this.patternMatcher.matchBest(n,i);if(a){let o=this.buildSemanticNode(a);return{confidence:a.confidence,command:{name:a.pattern.command,roles:a.captured},node:o,tokensConsumed:a.consumedTokens}}return{confidence:0,errors:["No pattern matched the input"]}}catch(r){return{confidence:0,errors:[r instanceof Error?r.message:String(r)]}}}supportsLanguage(e){return this.languages.has(e)}supportedLanguages(){return Array.from(this.languages)}getCacheStats(){return this.cache.getStats()}clearCache(){this.cache.clear()}configureCache(e){this.cache.configure(e)}buildSemanticNode(e){return{kind:"command",action:e.pattern.command,roles:e.captured,metadata:{patternId:e.pattern.id}}}};function Ta(e){return new Mp(e)}var Wp=.5,j9=.8;function Sa(e,t=Wp){return e.confidence>=t&&e.command!==void 0}function _9(e,t){let r=[],n={};for(let[i,a]of e)switch(i){case"patient":case"event":r.push(a);break;case"destination":t==="put"?n.into=a:n.on=a;break;case"source":n.from=a;break;case"quantity":n.by=a;break;case"duration":n.over=a;break;case"method":n.as=a;break;case"style":n.with=a;break;case"condition":n.if=a;break;case"agent":n.agent=a;break;default:n[i]=a}return{args:r,modifiers:n}}ht(),Wt(),Ge(),wt(),zt(),bt(),Tt(),St(),Pt(),Lt(),Ct(),_t(),It(),ht(),lr(),Wt(),Ge(),wt(),zt(),di(),yr(),bt(),hr(),Tt(),St(),Er(),zr(),Pt(),Lt(),kr(),Ct(),_t(),Cr(),xr(),It(),Ar(),br();var Ir={ar:$e,bn:Et,zh:nt,en:Le,fr:Xe,de:He,he:fr,hi:At,id:Ye,it:Dt,ja:Je,ko:Qe,ms:Bt,pl:Ft,pt:Ze,qu:et,ru:jt,es:Ue,"es-MX":Fp,sw:tt,th:Rt,tl:Nt,tr:rt,uk:Ot,vi:Mt};function R9(e){return Ir[e]}function N9(){return Object.keys(Ir)}function I9(e){return e in Ir}pr(),ai(),Ts(),pr();var za=new Map(Object.entries(je));function ka(e){return za.get(e)}function O9(e,t){za.set(e,t)}function qp(e){if(e.type==="literal"&&typeof e.value=="string"||e.type==="selector"||e.type==="reference")return e.value}function M9(e,t){if(e==null)return!1;for(let r of t)switch(r){case"selector":if(e.type==="selector")return!0;let n=qp(e);if(n&&(n.startsWith(".")||n.startsWith("#")||n.startsWith("[")))return!0;break;case"literal":if(e.type==="literal"||e.type==="property-path")return!0;break;case"reference":if(e.type==="reference"||e.type==="property-path")return!0;let i=qp(e);if(i&&["me","you","it","my","its","result","event","target"].includes(i.toLowerCase()))return!0;break;case"expression":if(e.type==="expression"||e.type==="property-path")return!0;break}return!1}function $p(e){let t=[],r=[],n=[],i=0,a=ka(e.action);if(!a)return r.push({code:"UNKNOWN_ROLE",message:`No schema found for action '${e.action}'. Skipping validation.`,severity:"warning"}),{valid:!0,errors:t,warnings:r,confidenceAdjustment:-.1,suggestions:n};let o=new Map;for(let s of e.arguments)s.role&&o.set(s.role,s);for(let s of a.roles){let l=o.get(s.role);if(s.required&&!l){s.default?r.push({code:"MISSING_REQUIRED_ROLE",message:`Role '${s.role}' not provided, using default.`,role:s.role,severity:"warning"}):(t.push({code:"MISSING_REQUIRED_ROLE",message:`Required role '${s.role}' (${s.description}) is missing.`,role:s.role,expected:s.expectedTypes,severity:"error"}),n.push(`Add ${s.description.toLowerCase()} to the command.`),i-=.2);continue}l&&!M9(l,s.expectedTypes)&&(r.push({code:"INVALID_TYPE",message:`Role '${s.role}' expected ${s.expectedTypes.join(" or ")}, got ${l.type}.`,role:s.role,expected:s.expectedTypes,actual:l,severity:"warning"}),i-=.1)}for(let s of e.arguments)s.role&&(a.roles.some(c=>c.role===s.role)||(r.push({code:"UNKNOWN_ROLE",message:`Role '${s.role}' is not recognized for command '${e.action}'.`,role:s.role,severity:"warning"}),i-=.05));return a.roles.filter(s=>s.required&&!s.default).every(s=>o.has(s.role))&&t.length===0&&(i+=.1),{valid:t.length===0,errors:t,warnings:r,confidenceAdjustment:Math.max(-1,Math.min(1,i)),suggestions:n}}function W9(e){let t=$p(e);return{...e,confidence:Math.max(0,Math.min(1,e.confidence+t.confidenceAdjustment)),validation:t}}function Ca(e){switch(e){case"preposition":return"preposition";case"postposition":case"particle":case"case-suffix":return"postposition";default:return"none"}}function Vp(e,t,r){let n={form:t.primary,role:e,position:Ca(r),required:t.required??!1};return t.alternatives&&(n.alternatives=t.alternatives),n}function q9(e){let t=[];for(let[r,n]of Object.entries(e.roleMarkers))n&&t.push(Vp(r,n,e.markingStrategy));return{code:e.code,name:e.nativeName,wordOrder:e.wordOrder,adpositionType:Ca(e.markingStrategy),morphology:e.morphology,direction:e.direction,markers:t,canonicalOrder:e.canonicalOrder}}function $9(e){if(!e||typeof e!="object")return!1;let t=e;return typeof t.code=="string"&&typeof t.name=="string"&&typeof t.wordOrder=="string"&&typeof t.markingStrategy=="string"&&typeof t.morphology=="string"&&typeof t.keywords=="object"&&Array.isArray(t.canonicalOrder)}var Kp={accessibility:!0,performance:!0,schema:!0,strict:!1},V9=new Set(["scroll","mousemove","touchmove","resize","input","keydown","keyup","keypress"]),Hp=new Set(["scroll","mousemove","touchmove","resize"]);function Gp(e,t){let r=[];if(e.kind==="event-handler"){let n=e.roles.get("event");if(n&&n.type==="literal"){let i=String(n.value).toLowerCase();(i==="mouseenter"||i==="mouseover"||i==="hover")&&r.push({code:"HOVER_ONLY_INTERACTION",severity:"warning",message:`Hover-only interaction detected (${i}). Not accessible to keyboard or touch users.`,suggestion:"Add keyboard equivalent (focus) or use a click-based interaction.",location:{input:t,role:"event"}})}}return r}function Up(e,t){let r=[];if(e.kind==="event-handler"){let n=e.roles.get("event");if(n&&n.type==="literal"){let i=String(n.value).toLowerCase();if(V9.has(i)){let a=Hp.has(i)?"warning":"info";r.push({code:"HIGH_FREQUENCY_TRIGGER",severity:a,message:`High-frequency event '${i}' may cause performance issues.`,suggestion:Hp.has(i)?`Consider using 'on ${i} throttled:100ms' to limit execution frequency.`:"Consider debouncing or throttling this handler.",location:{input:t,role:"event"}})}}}return r}function Xp(e,t){let r=[];if(e.kind!=="command")return r;let n=ka(e.action);if(!n)return r;let i=Array.isArray(n.roles)?n.roles:[],a=new Set;for(let o of i)o&&typeof o=="object"&&"role"in o&&(a.add(o.role),o.required&&!e.roles.has(o.role)&&r.push({code:"MISSING_REQUIRED_ROLE",severity:"error",message:`Command '${e.action}' requires '${o.role}' but it was not provided.`,suggestion:o.description,location:{input:t}}));return e.roles.forEach((o,u)=>{a.has(u)||r.push({code:"INVALID_ROLE_FOR_COMMAND",severity:"warning",message:`Role '${u}' is not typically used with '${e.action}' command.`,location:{input:t,role:u}})}),r}function K9(e){return e.kind==="event-handler"?e.body??[]:[]}function Yp(e,t={}){let r=[],n=new Map;for(let i of e)if(i.kind==="event-handler"){let a=i.roles.get("event"),o=i.roles.get("source"),u=`${a?.type==="literal"?a.value:"unknown"}:${o?.type==="selector"?o.value:"self"}`;n.has(u)||n.set(u,[]);let s=K9(i);n.get(u).push({handler:i,commands:s})}return n.forEach((i,a)=>{if(i.length>1){let o=[],u=[];for(let{commands:m}of i)for(let d of m){o.push(d.action);let f=d.roles.get("patient");u.push(f?.type==="selector"?f.value:"unknown")}let s=o.includes("toggle"),l=o.includes("show"),c=o.includes("hide");s&&(l||c)&&u.filter((d,f)=>(o[f]==="toggle"||o[f]==="show"||o[f]==="hide")&&u.some((y,E)=>f!==E&&d===y)).length>0&&r.push({code:"CONFLICTING_ACTIONS",severity:"warning",message:`Conflicting actions on '${a}': ${[...new Set(o)].join(", ")} may interfere with each other.`,suggestion:"Consider using a single toggle or conditional logic."}),o.some(m=>["fetch","wait","send"].includes(m))&&i.length>1&&r.push({code:"POTENTIAL_RACE_CONDITION",severity:"info",message:`Multiple handlers on '${a}' include async operations. Consider sequencing.`,suggestion:'Use "then" to chain operations or add loading states.'})}}),r}function xa(e,t="en",r={}){let n={...Kp,...r},i=[],a=null;try{a=ae(e,t)}catch{}if(!a)return{valid:!1,warnings:[{code:"UNREACHABLE_BEHAVIOR",severity:"error",message:"Could not parse input to semantic representation.",location:{input:e}}],node:null};n.accessibility&&i.push(...Gp(a,e)),n.performance&&i.push(...Up(a,e)),n.schema&&i.push(...Xp(a,e));let o=i.some(l=>l.severity==="error"),u=i.some(l=>l.severity==="warning");return{valid:n.strict?!o&&!u:!o,warnings:i,node:a}}function H9(e,t="en",r={}){let n=[],i=[];for(let l of e){let c=xa(l,t,r);n.push(...c.warnings),c.node&&i.push(c.node)}n.push(...Yp(i,r));let a=n.some(l=>l.severity==="error"),o={...Kp,...r},u=n.some(l=>l.severity==="warning");return{valid:o.strict?!a&&!u:!a,warnings:n,node:i[0]??null}}var Or=!1,wa={};function G9(e={}){Or=!0,wa=e}function U9(){Or=!1}function X9(){return Or}function Y9(){return{...wa}}function J9(e,t,r){if(!Or)return;if(!r){console.warn(`[hyperfixi] Parse failed: ${e}`);return}let n=xa(e,t,wa);for(let i of n.warnings){let a=i.severity==="error"?"\u274C":i.severity==="warning"?"\u26A0\uFE0F":"\u2139\uFE0F",o=i.severity==="error"?"error":i.severity==="warning"?"warn":"info";console[o](`${a} [hyperfixi:${i.code}] ${i.message}`,i.suggestion?`
|
|
56
|
+
\u{1F4A1} ${i.suggestion}`:"",i.location?.input?`
|
|
57
|
+
\u{1F4CD} ${i.location.input}`:"")}}var Q9=new Set(["me","my","myself","you","your","yourself","it","its","result","event","target","body","detail","window","document"]),Z9=new Set(["and","or","not","no"]),ez=new Set(["true","false","null","undefined"]),tz=new Set(["ms","s","seconds","second","milliseconds","millisecond","minutes","minute","hours","hour"]);function rz(e){let t=[],r=0,n=1,i=1;function a(){if(t.length===0)return!0;let f=t[t.length-1];return["OPERATOR","COMPARISON","LOGICAL","LPAREN","LBRACKET","LBRACE","COMMA","COLON"].includes(f.type)}function o(f=0){return e[r+f]??""}function u(){let f=e[r];return r++,f===`
|
|
58
|
+
`?(n++,i=1):i++,f}function s(){for(;r<e.length&&/\s/.test(e[r]);)u()}function l(f){let y="";for(;r<e.length&&f(e[r]);)y+=u();return y}function c(f){let y=f;for(u();r<e.length&&e[r]!==f;)e[r]==="\\"&&r+1<e.length&&(y+=u()),y+=u();return r<e.length&&(y+=u()),y}function p(){let f="`";for(u();r<e.length&&e[r]!=="`";)e[r]==="\\"&&r+1<e.length&&(f+=u()),f+=u();return r<e.length&&(f+=u()),f}function m(){let f="<";for(u();r<e.length&&(f+=u(),!f.endsWith("/>")););return f}function d(f,y,E){return{type:f,value:y,start:E,end:r,line:n,column:i-y.length}}for(;r<e.length&&(s(),!(r>=e.length));){let f=r,y=o();if(y==="'"&&o(1)==="s"&&!/\w/.test(o(2))){u(),u(),t.push(d("POSSESSIVE","'s",f));continue}if(y==='"'||y==="'"){let E=c(y);t.push(d("STRING",E,f));continue}if(y==="`"){let E=p();t.push(d("TEMPLATE_LITERAL",E,f));continue}if(y==="<"&&/[a-zA-Z.#\[]/.test(o(1))){let E=m();t.push(d("QUERY_SELECTOR",E,f));continue}if(y==="#"&&a()){u();let E=l(C=>/[\w-]/.test(C));t.push(d("ID_SELECTOR","#"+E,f));continue}if(y==="."&&/[a-zA-Z_-]/.test(o(1))&&a()){u();let E=l(C=>/[\w-]/.test(C));t.push(d("CLASS_SELECTOR","."+E,f));continue}if(y==="["&&a()){let E=o(1);if(E==="@"||/[a-zA-Z]/.test(E)){let C="";for(C+=u();r<e.length&&e[r]!=="]";)e[r]==='"'||e[r]==="'"?C+=c(e[r]):C+=u();r<e.length&&(C+=u()),t.push(d("ATTRIBUTE_SELECTOR",C,f));continue}}if(y==="["){u(),t.push(d("LBRACKET","[",f));continue}if(y==="]"){u(),t.push(d("RBRACKET","]",f));continue}if(/\d/.test(y)){let E=l(ge=>/[\d.]/.test(ge)),C=r,b=l(ge=>/[a-zA-Z]/.test(ge));tz.has(b)?t.push(d("TIME_EXPRESSION",E+b,f)):(r=C,t.push(d("NUMBER",E,f)));continue}if(y==="("){u(),t.push(d("LPAREN","(",f));continue}if(y===")"){u(),t.push(d("RPAREN",")",f));continue}if(y==="{"){u(),t.push(d("LBRACE","{",f));continue}if(y==="}"){u(),t.push(d("RBRACE","}",f));continue}if(y===","){u(),t.push(d("COMMA",",",f));continue}if(y===":"){u(),t.push(d("COLON",":",f));continue}if(y==="."){u(),t.push(d("DOT",".",f));continue}if(y==="+"||y==="-"||y==="*"||y==="/"||y==="%"){u(),t.push(d("OPERATOR",y,f));continue}if(y==="="||y==="!"||y==="<"||y===">"){let E=u();o()==="="&&(E+=u()),t.push(d("COMPARISON",E,f));continue}if(/[a-zA-Z_$]/.test(y)){let E=l(b=>/[\w$]/.test(b)),C=E.toLowerCase();Q9.has(C)?t.push(d("CONTEXT_VAR",E,f)):Z9.has(C)?t.push(d("LOGICAL",E,f)):ez.has(C)?t.push(d("BOOLEAN",E,f)):t.push(d("IDENTIFIER",E,f));continue}u()}return t.push(d("EOF","",r)),t}var nz=class{constructor(){this.tokens=[],this.current=0}parse(e){try{return this.tokens=rz(e),this.current=0,this.isAtEnd()?{success:!1,error:"Empty expression"}:{success:!0,node:this.parseExpression(),consumed:this.current}}catch(t){return{success:!1,error:t instanceof Error?t.message:"Parse error"}}}peek(){return this.tokens[this.current]??{type:"EOF",value:"",start:0,end:0}}previous(){return this.tokens[this.current-1]??{type:"EOF",value:"",start:0,end:0}}isAtEnd(){return this.peek().type==="EOF"}advance(){return this.isAtEnd()||this.current++,this.previous()}check(e){return this.peek().type===e}checkValue(e){return this.peek().value.toLowerCase()===e.toLowerCase()}match(...e){for(let t of e)if(this.check(t))return this.advance(),!0;return!1}parseExpression(){return this.parseOr()}parseOr(){let e=this.parseAnd();for(;this.checkValue("or");){let t=this.advance().value,r=this.parseAnd();e=this.createBinaryExpression(t,e,r)}return e}parseAnd(){let e=this.parseEquality();for(;this.checkValue("and");){let t=this.advance().value,r=this.parseEquality();e=this.createBinaryExpression(t,e,r)}return e}parseEquality(){let e=this.parseComparison();for(;this.match("COMPARISON")||this.checkValue("is")||this.checkValue("matches")||this.checkValue("contains")||this.checkValue("in");){let t=this.previous().value,r=this.parseComparison();e=this.createBinaryExpression(t,e,r)}return e}parseComparison(){let e=this.parseAddition();for(;this.check("COMPARISON");){let t=this.advance().value,r=this.parseAddition();e=this.createBinaryExpression(t,e,r)}return e}parseAddition(){let e=this.parseMultiplication();for(;this.peek().value==="+"||this.peek().value==="-";){let t=this.advance().value,r=this.parseMultiplication();e=this.createBinaryExpression(t,e,r)}return e}parseMultiplication(){let e=this.parseUnary();for(;this.peek().value==="*"||this.peek().value==="/"||this.peek().value==="%";){let t=this.advance().value,r=this.parseUnary();e=this.createBinaryExpression(t,e,r)}return e}parseUnary(){if(this.checkValue("not")||this.checkValue("no")||this.peek().value==="-"){let e=this.advance().value,t=this.parseUnary();return this.createUnaryExpression(e,t)}return this.parsePostfix()}parsePostfix(){let e=this.parsePrimary();for(;;)if(this.match("DOT"))if(this.check("IDENTIFIER")||this.check("CONTEXT_VAR")){let t=this.advance().value;e=this.createPropertyAccess(e,t)}else break;else if(this.match("POSSESSIVE"))if(this.check("IDENTIFIER")||this.check("CONTEXT_VAR")){let t=this.advance().value;e=this.createPossessiveExpression(e,t)}else break;else if(this.match("LPAREN")){let t=this.parseArguments();e=this.createCallExpression(e,t)}else if(this.match("LBRACKET")){let t=this.parseExpression();if(!this.match("RBRACKET"))throw new Error("Expected ] after index");e=this.createPropertyAccess(e,t)}else break;return e}parsePrimary(){let e=this.peek();if(this.match("NUMBER"))return this.createLiteral(parseFloat(e.value),"number",e);if(this.match("STRING")){let t=e.value.slice(1,-1);return this.createLiteral(t,"string",e)}if(this.match("BOOLEAN")){let t=e.value==="true"?!0:e.value==="false"?!1:e.value==="null"?null:void 0,r={true:"boolean",false:"boolean",null:"null",undefined:"undefined"};return this.createLiteral(t,r[e.value]??"string",e)}if(this.match("TEMPLATE_LITERAL"))return{type:"templateLiteral",value:e.value,start:e.start,end:e.end,line:e.line,column:e.column};if(this.match("TIME_EXPRESSION"))return this.parseTimeExpression(e);if(this.match("ID_SELECTOR"))return this.createSelector(e.value,"id",e);if(this.match("CLASS_SELECTOR"))return this.createSelector(e.value,"class",e);if(this.match("ATTRIBUTE_SELECTOR"))return this.createSelector(e.value,"attribute",e);if(this.match("QUERY_SELECTOR")){let t=e.value.slice(1,-2);return this.createSelector(t,"query",e)}if(this.match("CONTEXT_VAR"))return this.createContextReference(e.value,e);if(this.match("IDENTIFIER"))return this.createIdentifier(e.value,e);if(this.match("LPAREN")){let t=this.parseExpression();if(!this.match("RPAREN"))throw new Error("Expected ) after expression");return t}if(this.match("LBRACKET"))return this.parseArrayLiteral();if(this.match("LBRACE"))return this.parseObjectLiteral();throw new Error(`Unexpected token: ${e.value}`)}parseArguments(){let e=[];if(!this.check("RPAREN"))do e.push(this.parseExpression());while(this.match("COMMA"));if(!this.match("RPAREN"))throw new Error("Expected ) after arguments");return e}parseArrayLiteral(){let e=[],t=this.previous().start;if(!this.check("RBRACKET"))do e.push(this.parseExpression());while(this.match("COMMA"));if(!this.match("RBRACKET"))throw new Error("Expected ] after array elements");return{type:"arrayLiteral",elements:e,start:t,end:this.previous().end}}parseObjectLiteral(){let e=[],t=this.previous().start;if(!this.check("RBRACE"))do{let r;if(this.check("STRING"))r=this.advance().value.slice(1,-1);else if(this.check("IDENTIFIER"))r=this.advance().value;else throw new Error("Expected property name");if(!this.match("COLON"))throw new Error("Expected : after property name");let n=this.parseExpression();e.push({key:r,value:n})}while(this.match("COMMA"));if(!this.match("RBRACE"))throw new Error("Expected } after object properties");return{type:"objectLiteral",properties:e.map(r=>({type:"objectProperty",key:r.key,value:r.value})),start:t,end:this.previous().end}}parseTimeExpression(e){let t=e.value.match(/^(\d+(?:\.\d+)?)(ms|s|seconds?|milliseconds?|minutes?|hours?)$/i);if(!t)throw new Error(`Invalid time expression: ${e.value}`);let r=parseFloat(t[1]),n=t[2].toLowerCase();return{type:"timeExpression",value:r,unit:n,raw:e.value,start:e.start,end:e.end,line:e.line,column:e.column}}createLiteral(e,t,r){return{type:"literal",value:e,dataType:t,raw:r.value,start:r.start,end:r.end,line:r.line,column:r.column}}createSelector(e,t,r){return{type:"selector",value:e,selector:e,selectorType:t,start:r.start,end:r.end,line:r.line,column:r.column}}createContextReference(e,t){return{type:"contextReference",contextType:e,name:t.value,start:t.start,end:t.end,line:t.line,column:t.column}}createIdentifier(e,t){return{type:"identifier",name:e,start:t.start,end:t.end,line:t.line,column:t.column}}createPropertyAccess(e,t){return{type:"propertyAccess",object:e,property:typeof t=="string"?t:t.type==="identifier"?t.name:"",start:e.start,end:this.previous().end}}createPossessiveExpression(e,t){return{type:"possessiveExpression",object:e,property:t,start:e.start,end:this.previous().end}}createBinaryExpression(e,t,r){return{type:"binaryExpression",operator:e,left:t,right:r,start:t.start,end:r.end}}createUnaryExpression(e,t){return{type:"unaryExpression",operator:e,operand:t,prefix:!0,start:this.previous().start,end:t.end}}createCallExpression(e,t){return{type:"callExpression",callee:e,arguments:t,start:e.start,end:this.previous().end}}};function iz(e){return new nz().parse(e)}function te(e,t){switch(e.type){case"literal":return Jp(e);case"selector":return Qp(e,t);case"reference":return Zp(e);case"property-path":return em(e,t);case"expression":return tm(e);case"flag":return{type:"literal",value:e.enabled};default:let r=e;throw new Error(`Unknown semantic value type: ${r.type}`)}}function Jp(e){let t={type:"literal",value:e.value};return e.dataType?{...t,dataType:e.dataType}:t}function Qp(e,t){return t&&e.value.startsWith("*")&&/^[a-zA-Z-]/.test(e.value.slice(1))&&t.push(`Converted '${e.value}' to a CSS selector, but it looks like a CSS property name. CSS properties in commands like 'transition' should be literal strings, not selectors. Consider using expectedTypes: ['literal'] instead of ['literal', 'selector'] in the command schema.`),{type:"selector",value:e.value,selector:e.value,selectorType:e.selectorKind}}function Zp(e){return{type:"contextReference",contextType:e.value,name:e.value}}function em(e,t){return{type:"propertyAccess",object:te(e.object,t),property:e.property}}function tm(e){let t=iz(e.raw);return!t.success||!t.node?{type:"identifier",name:e.raw}:t.node}function rm(e,t){return e.roles.get(t)}function g(e,t,r){let n=rm(e,t);return n?te(n,r):void 0}function x(e,t=[],r,n={}){let i={type:"command",name:e,args:t};return r&&Object.keys(r).length>0&&(i.modifiers=r),n.isBlocking&&(i.isBlocking=n.isBlocking),n.implicitTarget&&(i.implicitTarget=n.implicitTarget),n.semanticRoles&&Object.keys(n.semanticRoles).length>0&&(i.semanticRoles=n.semanticRoles),i}var az={action:"toggle",toAST(e,t){let r=g(e,"patient"),n=g(e,"destination"),i=g(e,"duration"),a=r?[r]:[],o={};return n&&(o.on=n),i&&(o.for=i),x("toggle",a,o)}},oz={action:"add",toAST(e,t){let r=g(e,"patient"),n=g(e,"destination"),i=r?[r]:[],a={};return n&&(a.to=n),x("add",i,a)}},uz={action:"remove",toAST(e,t){let r=g(e,"patient"),n=g(e,"source"),i=r?[r]:[],a={};return n&&(a.from=n),x("remove",i,a)}},sz={action:"set",toAST(e,t){let r=g(e,"destination"),n=g(e,"patient"),i=[],a={};return r&&i.push(r),n&&(a.to=n),x("set",i,a)}},lz={action:"show",toAST(e,t){let r=g(e,"destination"),n=g(e,"patient"),i=g(e,"duration"),a=[],o={},u=r??n;return u&&a.push(u),i&&(o.with=i),x("show",a,o)}},cz={action:"hide",toAST(e,t){let r=g(e,"destination"),n=g(e,"patient"),i=g(e,"duration"),a=[],o={},u=r??n;return u&&a.push(u),i&&(o.with=i),x("hide",a,o)}},pz={action:"increment",toAST(e,t){let r=g(e,"destination"),n=g(e,"patient"),i=g(e,"quantity"),a=[],o={},u=r??n;return u&&a.push(u),i&&(o.by=i),x("increment",a,o)}},mz={action:"decrement",toAST(e,t){let r=g(e,"destination"),n=g(e,"patient"),i=g(e,"quantity"),a=[],o={},u=r??n;return u&&a.push(u),i&&(o.by=i),x("decrement",a,o)}},dz={action:"wait",toAST(e,t){let r=g(e,"duration");return x("wait",r?[r]:[],void 0,{isBlocking:!0})}},fz={action:"log",toAST(e,t){let r=g(e,"patient"),n=[];return r&&n.push(r),x("log",n)}},yz={action:"put",toAST(e,t){let r=g(e,"patient"),n=g(e,"destination"),i=rm(e,"method"),a=r?[r]:[],o={};if(n){let u=i?.type==="literal"?String(i.value):"into";o[u]=n}return x("put",a,o)}},hz={action:"fetch",toAST(e,t){let r=g(e,"source"),n=g(e,"method"),i=g(e,"responseType"),a=g(e,"patient"),o=r?[r]:[],u={};return n&&(u.with=n),i&&(u.as=i),a&&(u.body=a),x("fetch",o,u,{isBlocking:!0})}},vz={action:"append",toAST(e,t){let r=g(e,"patient"),n=g(e,"destination"),i=r?[r]:[],a={};return n&&(a.to=n),x("append",i,a)}},gz={action:"prepend",toAST(e,t){let r=g(e,"patient"),n=g(e,"destination"),i=r?[r]:[],a={};return n&&(a.to=n),x("prepend",i,a)}},Ez={action:"trigger",toAST(e,t){let r=g(e,"event"),n=g(e,"destination"),i=r?[r]:[],a={};return n&&(a.on=n),x("trigger",i,a)}},zz={action:"send",toAST(e,t){let r=g(e,"event"),n=g(e,"destination"),i=g(e,"patient"),a=r?[r]:[],o={};return n&&(o.to=n),i&&(o.detail=i),x("send",a,o)}},kz={action:"go",toAST(e,t){let r=g(e,"source"),n=g(e,"destination"),i=[],a={};return r&&i.push(r),n&&(a.to=n),x("go",i,a)}},Cz={action:"transition",toAST(e,t){let r=g(e,"patient"),n=g(e,"goal"),i=g(e,"duration"),a=g(e,"destination"),o=r?[r]:[],u={};return n&&(u.to=n),i&&(u.over=i),a&&(u.on=a),x("transition",o,u)}},xz={action:"focus",toAST(e,t){let r=g(e,"destination"),n=g(e,"patient"),i=[],a={},o=r??n;return o&&i.push(o),x("focus",i,a)}},wz={action:"blur",toAST(e,t){let r=g(e,"destination"),n=g(e,"patient"),i=[],a=r??n;return a&&i.push(a),x("blur",i)}},Az={action:"get",toAST(e,t){let r=g(e,"source"),n=g(e,"patient"),i=[],a=r??n;return a&&i.push(a),x("get",i)}},bz={action:"take",toAST(e,t){let r=g(e,"patient"),n=g(e,"source"),i=r?[r]:[],a={};return n&&(a.from=n),x("take",i,a)}},Dz={action:"call",toAST(e,t){let r=g(e,"patient");return x("call",r?[r]:[])}},Tz={action:"return",toAST(e,t){let r=g(e,"patient");return x("return",r?[r]:[])}},Sz={action:"halt",toAST(e,t){return x("halt",[])}},Bz={action:"throw",toAST(e,t){let r=g(e,"patient");return x("throw",r?[r]:[])}},Fz={action:"settle",toAST(e,t){let r=g(e,"destination"),n=g(e,"patient"),i=[],a=r??n;return a&&i.push(a),x("settle",i,void 0,{isBlocking:!0})}},Pz={action:"swap",toAST(e,t){let r=g(e,"patient"),n=g(e,"source"),i=g(e,"destination"),a=g(e,"style"),o=[],u={};return r&&o.push(r),n&&o.push(n),i&&(u.on=i),a&&(u.with=a),x("swap",o,u)}},Lz={action:"morph",toAST(e,t){let r=g(e,"source"),n=g(e,"destination"),i=g(e,"patient"),a=[],o={},u=r??i;return u&&a.push(u),n&&(o.on=n),x("morph",a,o)}},jz={action:"clone",toAST(e,t){let r=g(e,"source"),n=g(e,"destination"),i=g(e,"patient"),a=[],o={},u=r??i;return u&&a.push(u),n&&(o.into=n),x("clone",a,o)}},_z={action:"make",toAST(e,t){let r=g(e,"patient");return x("make",r?[r]:[])}},Rz={action:"measure",toAST(e,t){let r=g(e,"patient"),n=g(e,"destination"),i=g(e,"source"),a=[],o={};r&&a.push(r);let u=n??i;return u&&(o.of=u),x("measure",a,o)}},Nz={action:"tell",toAST(e,t){let r=g(e,"destination"),n=g(e,"patient"),i=[],a=r??n;return a&&i.push(a),x("tell",i)}},Iz={action:"js",toAST(e,t){let r=g(e,"patient");return x("js",r?[r]:[])}},Oz={action:"async",toAST(e,t){return x("async",[])}},Mz={action:"if",toAST(e,t){let r=g(e,"condition");return x("if",r?[r]:[])}},Wz={action:"unless",toAST(e,t){let r=g(e,"condition");return x("unless",r?[r]:[])}},qz={action:"repeat",toAST(e,t){let r=g(e,"quantity"),n=g(e,"patient"),i=[],a=r??n;return a&&i.push(a),x("repeat",i)}},$z={action:"for",toAST(e,t){let r=g(e,"patient"),n=g(e,"source"),i=r?[r]:[],a={};return n&&(a.in=n),x("for",i,a)}},Vz={action:"while",toAST(e,t){let r=g(e,"condition");return x("while",r?[r]:[])}},Kz={action:"continue",toAST(e,t){return x("continue",[])}},Hz={action:"default",toAST(e,t){let r=g(e,"patient"),n=g(e,"source"),i=r?[r]:[],a={};return n&&(a.to=n),x("default",i,a)}},Gz={action:"init",toAST(e,t){return x("init",[])}},Uz={action:"behavior",toAST(e,t){let r=g(e,"patient");return x("behavior",r?[r]:[])}},Xz={action:"install",toAST(e,t){let r=g(e,"patient"),n=g(e,"destination"),i=r?[r]:[],a={};return n&&(a.on=n),x("install",i,a)}},Yz={action:"on",toAST(e,t){let r=g(e,"event"),n=g(e,"source"),i=r?[r]:[],a={};return n&&(a.from=n),x("on",i,a)}},Aa=new Map([["toggle",az],["add",oz],["remove",uz],["set",sz],["show",lz],["hide",cz],["increment",pz],["decrement",mz],["wait",dz],["log",fz],["put",yz],["fetch",hz],["append",vz],["prepend",gz],["get",Az],["take",bz],["trigger",Ez],["send",zz],["on",Yz],["go",kz],["transition",Cz],["focus",xz],["blur",wz],["call",Dz],["return",Tz],["halt",Sz],["throw",Bz],["settle",Fz],["swap",Pz],["morph",Lz],["clone",jz],["measure",Rz],["make",_z],["tell",Nz],["default",Hz],["js",Iz],["async",Oz],["if",Mz],["unless",Wz],["repeat",qz],["for",$z],["while",Vz],["continue",Kz],["init",Gz],["behavior",Uz],["install",Xz]]);function nm(e){return Aa.get(e)}function Jz(e){Aa.set(e.action,e)}function Qz(){return new Map(Aa)}var im=class{constructor(e={}){this.warnings=[]}build(e){switch(e.kind){case"command":return this.buildCommand(e);case"event-handler":return this.buildEventHandler(e);case"conditional":return this.buildConditional(e);case"compound":return this.buildCompound(e);case"loop":return this.buildLoop(e);default:throw new Error(`Unknown semantic node kind: ${e.kind}`)}}buildCommand(e){let t=nm(e.action),r;if(t){let n=t.toAST(e,this);if("ast"in n&&"warnings"in n){let i=n;this.warnings.push(...i.warnings),r=i.ast}else r=n}else r=this.buildGenericCommand(e);if(e.roles&&e.roles.size>0){let n={};for(let[i,a]of e.roles)n[i]=te(a);Object.keys(n).length>0&&(r.semanticRoles=n)}return r}buildGenericCommand(e){let t=[],r={},n=["patient","source","quantity"],i=["destination","duration","method","style"];for(let o of n){let u=e.roles.get(o);u&&t.push(te(u))}for(let o of i){let u=e.roles.get(o);if(u){let s=this.roleToModifierKey(o);r[s]=te(u)}}let a={type:"command",name:e.action,args:t};return Object.keys(r).length>0?{...a,modifiers:r}:a}roleToModifierKey(e){return{destination:"on",duration:"for",source:"from",condition:"if",method:"via",style:"with"}[e]??e}buildEventHandler(e){let t=e.roles.get("event"),r,n;if(t?.type==="literal"){let y=String(t.value);y.includes("|")||y.includes(" or ")?(n=y.split(/\s+or\s+|\|/).map(E=>E.trim()),r=n[0]):r=y}else t?.type==="reference"?r=t.value:r="click";let i=e.body.map(y=>this.build(y)),a=e.roles.get("source"),o,u;a?.type==="selector"?(o=a.value,u=a.value):a?.type==="reference"?u=a.value:a?.type==="literal"&&(u=String(a.value));let s=e.roles.get("condition"),l=s?te(s):void 0,c=e.roles.get("destination"),p=c?te(c):void 0,m=e.eventModifiers,d=o;if(m?.from){let y=m.from;y.type==="selector"&&!o&&(d=y.value)}let f=e.parameterNames?[...e.parameterNames]:void 0;return{type:"eventHandler",event:r,commands:i,...n&&n.length>1?{events:n}:{},...d?{selector:d}:{},...u?{target:u}:{},...l?{condition:l}:{},...p?{watchTarget:p}:{},...f&&f.length>0?{args:f,params:f}:{}}}buildConditional(e){let t=e.roles.get("condition");if(!t)throw new Error("Conditional node missing condition");let r=te(t),n=e.thenBranch.map(o=>this.build(o)),i=e.elseBranch?.map(o=>this.build(o)),a=[r,{type:"block",commands:n}];return i&&i.length>0&&a.push({type:"block",commands:i}),{type:"command",name:"if",args:a}}buildCompound(e){let t=e.statements.map(n=>this.build(n));return t.length===1?t[0]:t.length===0?{type:"block",commands:[]}:{type:"CommandSequence",commands:t}}buildLoop(e){let t=e.body.map(n=>this.build(n)),r=[{type:"identifier",name:e.loopVariant}];switch(e.loopVariant){case"times":{let n=e.roles.get("quantity");n&&r.push(te(n));break}case"for":{e.loopVariable&&r.push({type:"string",value:e.loopVariable});let n=e.roles.get("source");n&&r.push(te(n));break}case"while":case"until":{let n=e.roles.get("condition");n&&r.push(te(n));break}case"forever":break}return r.push({type:"block",commands:t}),{type:"command",name:"repeat",args:r}}buildBlock(e){return{type:"block",commands:e.map(r=>this.build(r))}}};function Zz(e){let t=new im;return{ast:t.build(e),warnings:t.warnings}}w();var ba={en:async()=>{let{englishTokenizer:e}=await Promise.resolve().then(()=>(On(),vs)),{englishProfile:t}=await Promise.resolve().then(()=>(Ge(),ys)),{buildEnglishPatterns:r}=await Promise.resolve().then(()=>(Ol(),bl));return{tokenizer:e,profile:t,buildPatterns:r}},es:async()=>{let{spanishTokenizer:e}=await Promise.resolve().then(()=>(dr(),Ul)),{spanishProfile:t}=await Promise.resolve().then(()=>(Ct(),Vl));return{tokenizer:e,profile:t}},ja:async()=>{let{japaneseTokenizer:e}=await Promise.resolve().then(()=>(Ai(),W0)),{japaneseProfile:t}=await Promise.resolve().then(()=>(Tt(),M0));return{tokenizer:e,profile:t}},ar:async()=>{let{arabicTokenizer:e}=await Promise.resolve().then(()=>(Fn(),Vu)),{arabicProfile:t}=await Promise.resolve().then(()=>(ht(),qo));return{tokenizer:e,profile:t}},ko:async()=>{let{koreanTokenizer:e}=await Promise.resolve().then(()=>(Ti(),G0)),{koreanProfile:t}=await Promise.resolve().then(()=>(St(),H0));return{tokenizer:e,profile:t}},zh:async()=>{let{chineseTokenizer:e}=await Promise.resolve().then(()=>(sa(),yp)),{chineseProfile:t}=await Promise.resolve().then(()=>(Wt(),fp));return{tokenizer:e,profile:t}},tr:async()=>{let{turkishTokenizer:e}=await Promise.resolve().then(()=>(ea(),tp)),{turkishProfile:t}=await Promise.resolve().then(()=>(It(),ep));return{tokenizer:e,profile:t}},pt:async()=>{let{portugueseTokenizer:e}=await Promise.resolve().then(()=>(vc(),fc)),{portugueseProfile:t}=await Promise.resolve().then(()=>(Pt(),ac));return{tokenizer:e,profile:t}},fr:async()=>{let{frenchTokenizer:e}=await Promise.resolve().then(()=>(l0(),u0)),{frenchProfile:t}=await Promise.resolve().then(()=>(wt(),Jl));return{tokenizer:e,profile:t}},de:async()=>{let{germanTokenizer:e}=await Promise.resolve().then(()=>(fs(),ms)),{germanProfile:t}=await Promise.resolve().then(()=>(zt(),ns));return{tokenizer:e,profile:t}},id:async()=>{let{indonesianTokenizer:e}=await Promise.resolve().then(()=>(A0(),C0)),{indonesianProfile:t}=await Promise.resolve().then(()=>(bt(),k0));return{tokenizer:e,profile:t}},qu:async()=>{let{quechuaTokenizer:e}=await Promise.resolve().then(()=>(bc(),Cc)),{quechuaProfile:t}=await Promise.resolve().then(()=>(Lt(),gc));return{tokenizer:e,profile:t}},sw:async()=>{let{swahiliTokenizer:e}=await Promise.resolve().then(()=>(Rc(),Lc)),{swahiliProfile:t}=await Promise.resolve().then(()=>(_t(),Pc));return{tokenizer:e,profile:t}},bn:async()=>{let{bengaliTokenizer:e}=await Promise.resolve().then(()=>(rs(),Zu)),{bengaliProfile:t}=await Promise.resolve().then(()=>(lr(),Qu));return{tokenizer:e,profile:t}},hi:async()=>{let{hindiTokenizer:e}=await Promise.resolve().then(()=>(z0(),v0)),{hindiProfile:t}=await Promise.resolve().then(()=>(yr(),h0));return{tokenizer:e,profile:t}},it:async()=>{let{italianTokenizer:e}=await Promise.resolve().then(()=>(R0(),L0)),{italianProfile:t}=await Promise.resolve().then(()=>(hr(),B0));return{tokenizer:e,profile:t}},ms:async()=>{let{malayTokenizer:e}=await Promise.resolve().then(()=>(Z0(),J0)),{malayProfile:t}=await Promise.resolve().then(()=>(Er(),Y0));return{tokenizer:e,profile:t}},pl:async()=>{let{polishTokenizer:e}=await Promise.resolve().then(()=>(ic(),tc)),{polishProfile:t}=await Promise.resolve().then(()=>(zr(),ec));return{tokenizer:e,profile:t}},ru:async()=>{let{russianTokenizer:e}=await Promise.resolve().then(()=>(Fc(),Tc)),{russianProfile:t}=await Promise.resolve().then(()=>(kr(),Dc));return{tokenizer:e,profile:t}},th:async()=>{let{thaiTokenizer:e}=await Promise.resolve().then(()=>(Mc(),Ic)),{thaiProfile:t}=await Promise.resolve().then(()=>(Cr(),Nc));return{tokenizer:e,profile:t}},tl:async()=>{let{tagalogTokenizer:e}=await Promise.resolve().then(()=>(Yc(),Uc)),{tagalogProfile:t}=await Promise.resolve().then(()=>(xr(),Wc));return{tokenizer:e,profile:t}},uk:async()=>{let{ukrainianTokenizer:e}=await Promise.resolve().then(()=>(lp(),op)),{ukrainianProfile:t}=await Promise.resolve().then(()=>(Ar(),ap));return{tokenizer:e,profile:t}},vi:async()=>{let{vietnameseTokenizer:e}=await Promise.resolve().then(()=>(dp(),pp)),{vietnameseProfile:t}=await Promise.resolve().then(()=>(br(),cp));return{tokenizer:e,profile:t}}},Mr=Object.keys(ba);function e2(e,t){N(e,t.tokenizer,t.profile),t.patterns?rn(e,t.patterns):t.buildPatterns&&rn(e,t.buildPatterns())}async function t2(e,t){try{let r=await fetch(t);if(!r.ok)throw new Error(`Failed to fetch ${t}: ${r.status} ${r.statusText}`);let n=await r.text(),i=new Blob([n],{type:"application/javascript"}),a=URL.createObjectURL(i);try{let o=await import(a);if(!o.tokenizer||!o.profile)throw new Error("Invalid language module: missing tokenizer or profile");return o}finally{URL.revokeObjectURL(a)}}catch(r){throw new Error(`Failed to load language '${e}' from ${t}: ${r instanceof Error?r.message:String(r)}`)}}async function am(e,t={}){let{url:r,module:n,skipIfRegistered:i=!0}=t;if(i&&ar(e))return{code:e,loaded:!1};try{let a;if(n)a=n;else if(r)a=await t2(e,r);else{let o=ba[e];if(!o)throw new Error(`Unknown language: ${e}. Supported: ${Mr.join(", ")}`);a=await o()}return e2(e,a),{code:e,loaded:!0}}catch(a){return{code:e,loaded:!1,error:a instanceof Error?a.message:String(a)}}}async function r2(e,t={}){return Promise.all(e.map(r=>am(r,t)))}function n2(e){return e in ba}function i2(){return Mr.filter(ar)}function a2(){return Mr.filter(e=>!ar(e))}$t(),w(),Pr();function om(e,t){try{let r=at(e,t),n=Fe(t);if(n.length===0)return{confidence:0,parseSuccess:!1,error:`No patterns available for language: ${t}`};let i=[...n].sort((l,c)=>c.priority-l.priority),a=i.filter(l=>l.command==="on"),o=ee.matchBest(r,a);if(o)return{confidence:o.confidence,parseSuccess:!0,patternId:o.pattern.id,action:o.pattern.command,tokensConsumed:o.consumedTokens};r.reset(r.mark());let u=i.filter(l=>l.command!=="on"),s=ee.matchBest(r,u);return s?{confidence:s.confidence,parseSuccess:!0,patternId:s.pattern.id,action:s.pattern.command,tokensConsumed:s.consumedTokens}:{confidence:0,parseSuccess:!1,error:`Could not match any patterns for: ${e}`}}catch(r){return{confidence:0,parseSuccess:!1,error:r instanceof Error?r.message:String(r)}}}function um(e,t){let r=om(e,t);if(!r.parseSuccess)return{node:null,confidence:0,error:r.error};try{let{parse:n}=(ya(),L4(xp));return{node:n(e,t),confidence:r.confidence,error:void 0}}catch(n){return{node:null,confidence:r.confidence,error:n instanceof Error?n.message:String(n)}}}function F(e){let t={};return typeof e.start=="number"&&(t.start=e.start),typeof e.end=="number"&&(t.end=e.end),typeof e.line=="number"&&(t.line=e.line),typeof e.column=="number"&&(t.column=e.column),t}function B(e){if(!e)return{type:"literal",value:null};switch(e.type){case"eventHandler":return o2(e);case"command":return u2(e);case"CommandSequence":return c2(e);case"block":return p2(e);case"if":return m2(e);case"literal":return{type:"literal",value:e.value,...F(e)};case"string":return{type:"literal",value:e.value,...F(e)};case"selector":return{type:"selector",value:e.value??e.selector??"",...F(e)};case"contextReference":return{type:"identifier",value:e.name??e.contextType??"",...F(e)};case"identifier":return{type:"identifier",value:e.name??e.value??"",name:e.name??"",...F(e)};case"propertyAccess":return d2(e);case"possessiveExpression":return f2(e);case"memberExpression":return y2(e);case"binaryExpression":return h2(e);case"callExpression":return v2(e);case"unaryExpression":return{type:"unary",operator:e.operator,operand:B(e.operand),...F(e)};case"timeExpression":return{type:"literal",value:e.value,...F(e)};case"templateLiteral":return{type:"literal",value:e.raw??"",...F(e)};case"variable":return{type:"variable",name:e.name??"",scope:e.scope??"local",...F(e)};case"htmlSelector":return{type:"selector",value:e.value??e.selector??"",...F(e)};case"positional":return{type:"positional",position:e.position,...e.target?{target:B(e.target)}:{},...F(e)};case"positionalExpression":return{type:"positional",position:e.operator,...e.argument?{target:B(e.argument)}:{},...F(e)};default:return{type:"literal",value:e.value??null,...F(e)}}}function o2(e){let t=e.event??"click",n=(e.commands??e.body??[]).map(a=>B(a)),i=z2(e);return{type:"event",event:t,modifiers:i,body:n,...F(e)}}function u2(e){let t=e.name;if(t==="if"||t==="unless")return s2(e);if(t==="repeat")return l2(e);let r=(e.args??[]).map(u=>B(u)),n=e.target?B(e.target):void 0,i=e.modifiers?E2(e.modifiers):void 0,a=e.semanticRoles,o=a?g2(a):void 0;return{type:"command",name:t,args:r,...n?{target:n}:{},...i&&Object.keys(i).length>0?{modifiers:i}:{},...o&&Object.keys(o).length>0?{roles:o}:{},...F(e)}}function s2(e){let t=e.args??[],r=t[0]?B(t[0]):{type:"literal",value:!0},n=Re(t[1]),i=t[2]?Re(t[2]):void 0;return e.name==="unless"&&(r={type:"unary",operator:"not",operand:r}),{type:"if",condition:r,thenBranch:n,...i?{elseBranch:i}:{},...F(e)}}function l2(e){let t=e.args??[];if(t.length===0)return{type:"repeat",body:[],...F(e)};let r=t[0],n=r?.name??r?.value??"forever",i=t[t.length-1];switch(n){case"times":return{type:"repeat",count:t[1]?B(t[1]):void 0,body:Re(i),...F(e)};case"for":{let a=t[1]?.value??"item",o=t[2]?B(t[2]):{type:"identifier",value:"[]"};return{type:"foreach",itemName:a,collection:o,body:Re(i),...F(e)}}case"while":return{type:"while",condition:t[1]?B(t[1]):{type:"literal",value:!0},body:Re(i),...F(e)};case"until":return{type:"while",condition:{type:"unary",operator:"not",operand:t[1]?B(t[1]):{type:"literal",value:!1}},body:Re(i),...F(e)};default:return{type:"repeat",body:Re(i),...F(e)}}}function c2(e){let t=e.commands??[];return t.length===1?B(t[0]):{type:"event",event:"click",body:t.map(r=>B(r)),...F(e)}}function p2(e){let t=e.commands??[];return t.length===1?B(t[0]):{type:"event",event:"click",body:t.map(r=>B(r)),...F(e)}}function m2(e){let t=e.condition?B(e.condition):{type:"literal",value:!0},r=(e.thenBranch??[]).map(i=>B(i)),n=e.elseBranch?e.elseBranch.map(i=>B(i)):void 0;return{type:"if",condition:t,thenBranch:r,...n?{elseBranch:n}:{},...F(e)}}function d2(e){return{type:"possessive",object:e.object?B(e.object):{type:"identifier",value:"me"},property:e.property??"",...F(e)}}function f2(e){let t=e.object?B(e.object):{type:"identifier",value:"me"},r=typeof e.property=="string"?e.property:e.property?.name??e.property?.value??"";return{type:"possessive",object:t,property:r,...F(e)}}function y2(e){let t=e.object?B(e.object):{type:"identifier",value:"me"},r=typeof e.property=="string"?e.property:e.property?B(e.property):{type:"literal",value:""};return{type:"member",object:t,property:r,computed:e.computed??!1,...F(e)}}function h2(e){return{type:"binary",operator:e.operator??"",left:B(e.left),right:B(e.right),...F(e)}}function v2(e){let t=typeof e.callee=="string"?{type:"identifier",value:e.callee,name:e.callee}:B(e.callee),r=(e.arguments??e.args??[]).map(n=>B(n));return{type:"call",callee:t,args:r,...F(e)}}function g2(e){let t={};for(let[r,n]of Object.entries(e))t[r]=B(n);return t}function E2(e){let t={};for(let[r,n]of Object.entries(e))t[r]=B(n);return t}function z2(e){let t=e.eventModifiers;return{...e.once||t?.once?{once:!0}:{},...e.debounce||t?.debounce?{debounce:e.debounce??t?.debounce}:{},...e.throttle||t?.throttle?{throttle:e.throttle??t?.throttle}:{},...e.prevent||t?.prevent?{prevent:!0}:{},...e.stop||t?.stop?{stop:!0}:{},...e.capture||t?.capture?{capture:!0}:{},...e.passive||t?.passive?{passive:!0}:{},...e.from||t?.from?{from:e.from??t?.from}:e.selector?{from:e.selector}:{}}}function Re(e){return e?e.type==="block"?(e.commands??[]).map(t=>B(t)):[B(e)]:[]}function Ba(){return["en","ja","ar","es","ko","zh","tr","pt","fr","de","id","qu","sw"]}var Fa="0.1.0";function k2(e,t){return um(e,t)}function Xt(e){let t=e.getAttribute("data-lang");if(t)return Pa(t);let r=e.getAttribute("data-hyperscript-lang")??e.closest?.("[data-hyperscript-lang]")?.getAttribute("data-hyperscript-lang");if(r)return Pa(r);let n=typeof document<"u"?document.documentElement?.lang:null;return n&&n!=="en"?Pa(n):null}function Pa(e){return e.split("-")[0].toLowerCase()}var sm=.5,C2={confidenceThreshold:sm,strategy:"semantic",fallbackToOriginal:!0};function x2(e,t){return typeof e=="number"?e:e[t]??e["*"]??sm}var La=null;function w2(){return La||(La=Ta()),La}function st(e,t,r={}){if(t==="en")return e;let n={...C2,...r},i=lm(e,t,n);if(i!==null)return i;let a=b2(e);if(a){let o=lm(a.commands,t,n);if(o!==null)return a.prefix+o}return n.fallbackToOriginal,e}function lm(e,t,r){if(r.strategy==="semantic"||r.strategy==="auto"){let n=x2(r.confidenceThreshold,t),i=cm(e,t,n);if(i!==null)return i}if((r.strategy==="auto"||r.strategy==="i18n")&&r.i18nToEnglish){let n=D2(e,t,r.i18nToEnglish);if(n!==null)return n}return null}var A2=/^(on\s+(?:every\s+)?[\w-]+(?:\[.*?\])?(?:\.[\w-]+(?:\([^)]*\))?)*(?:\s+from\s+\S+)?(?:\s+queue\s+\w+)?\s+)/;function b2(e){let t=e.match(A2);if(!t)return null;let r=t[1],n=e.slice(r.length);return n?{prefix:r,commands:n}:null}function cm(e,t,r){try{let n=S2(e,t);if(n.length>1)return B2(n,t,r);let i=w2();if(!i.supportsLanguage(t))return null;let a=i.analyze(e,t);return Sa(a,r)?a.node?ve(a.node,"en"):Da(e,t,"en"):null}catch{return null}}function D2(e,t,r){try{let n=r(e,t);return n!==e?n:null}catch{return null}}function T2(e){let t=["then"],r=oe(e);if(r?.keywords?.then){let n=r.keywords.then;if(n.primary&&n.primary!=="then"&&t.push(n.primary),n.alternatives)for(let i of n.alternatives)t.includes(i)||t.push(i)}return t}function S2(e,t){let n=T2(t).map(u=>u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),i=new RegExp(`\\s+(?:${n.join("|")})\\s+`,"i"),a=e.split(`
|
|
59
|
+
`).map(u=>u.trim()).filter(u=>u.length>0),o=[];for(let u of a){let s=u.split(i);o.push(...s)}return o}function B2(e,t,r){let n=[];for(let i of e){let a=cm(i.trim(),t,r);if(a===null)return null;n.push(a)}return n.join(" then ")}function Wr(e={}){return function(r){let{internals:n}=r,i=n.runtime,a=i.getScript.bind(i);i.getScript=function(o){let u=a(o);if(!u)return null;let s=F2(o,e);if(!s||s==="en")return u;let l=st(u,s,e);return l!==u?e.debug&&console.log(`[hyperscript-i18n] ${s}: "${u}" \u2192 "${l}"`):console.warn(`[hyperscript-i18n] Translation unchanged for lang="${s}": "${u.length>60?u.slice(0,60)+"\u2026":u}". The input may not match any known pattern, or the language may not be registered. Original text will be passed to _hyperscript as-is.`),l}}}function F2(e,t){if(t.languageAttribute){let n=e.getAttribute(t.languageAttribute);if(n)return n.split("-")[0].toLowerCase()}let r=Xt(e);return r||(t.defaultLanguage??null)}function ja(e,t,r={}){return t==="en"?e:st(e,t,r)}var P2=Fa,L2=Ba();typeof _hyperscript<"u"&&_hyperscript.use&&(_hyperscript.use(Wr()),j2());function j2(){if(typeof document>"u")return;let t=_hyperscript?.internals?.runtime;if(!t?.processNode||!t?.getInternalData)return;let r=t.getScriptSelector?.()??"[_], [script], [data-script]";document.querySelectorAll(r).forEach(n=>{let i=t.getInternalData(n);i.initialized&&(i.initialized=!1)}),t.processNode(document.body)}return vm(_2);})();
|
|
8
60
|
//# sourceMappingURL=hyperscript-i18n.global.js.map
|