@lokascript/hyperscript-adapter 2.0.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.
Files changed (82) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +147 -0
  3. package/dist/hyperscript-i18n-ar.global.js +4 -0
  4. package/dist/hyperscript-i18n-bn.global.js +4 -0
  5. package/dist/hyperscript-i18n-de.global.js +4 -0
  6. package/dist/hyperscript-i18n-east-asian.global.js +4 -0
  7. package/dist/hyperscript-i18n-en.global.js +6 -0
  8. package/dist/hyperscript-i18n-es.global.js +4 -0
  9. package/dist/hyperscript-i18n-fr.global.js +4 -0
  10. package/dist/hyperscript-i18n-he.global.js +4 -0
  11. package/dist/hyperscript-i18n-hi.global.js +4 -0
  12. package/dist/hyperscript-i18n-id.global.js +4 -0
  13. package/dist/hyperscript-i18n-it.global.js +4 -0
  14. package/dist/hyperscript-i18n-ja.global.js +4 -0
  15. package/dist/hyperscript-i18n-ko.global.js +4 -0
  16. package/dist/hyperscript-i18n-lite.global.js +1 -0
  17. package/dist/hyperscript-i18n-ms.global.js +4 -0
  18. package/dist/hyperscript-i18n-pl.global.js +4 -0
  19. package/dist/hyperscript-i18n-pt.global.js +4 -0
  20. package/dist/hyperscript-i18n-qu.global.js +4 -0
  21. package/dist/hyperscript-i18n-ru.global.js +4 -0
  22. package/dist/hyperscript-i18n-slavic.global.js +4 -0
  23. package/dist/hyperscript-i18n-south-asian.global.js +4 -0
  24. package/dist/hyperscript-i18n-southeast-asian.global.js +4 -0
  25. package/dist/hyperscript-i18n-sw.global.js +4 -0
  26. package/dist/hyperscript-i18n-th.global.js +4 -0
  27. package/dist/hyperscript-i18n-tl.global.js +4 -0
  28. package/dist/hyperscript-i18n-tr.global.js +4 -0
  29. package/dist/hyperscript-i18n-uk.global.js +4 -0
  30. package/dist/hyperscript-i18n-vi.global.js +4 -0
  31. package/dist/hyperscript-i18n-western.global.js +4 -0
  32. package/dist/hyperscript-i18n-zh.global.js +4 -0
  33. package/dist/hyperscript-i18n.global.js +8 -0
  34. package/dist/hyperscript-i18n.global.js.map +1 -0
  35. package/dist/index.cjs +203 -0
  36. package/dist/index.cjs.map +1 -0
  37. package/dist/index.d.cts +99 -0
  38. package/dist/index.d.ts +99 -0
  39. package/dist/index.js +179 -0
  40. package/dist/index.js.map +1 -0
  41. package/package.json +169 -0
  42. package/src/browser-lite.ts +159 -0
  43. package/src/browser.ts +74 -0
  44. package/src/bundles/ar.ts +6 -0
  45. package/src/bundles/bn.ts +6 -0
  46. package/src/bundles/de.ts +6 -0
  47. package/src/bundles/east-asian.ts +8 -0
  48. package/src/bundles/en.ts +6 -0
  49. package/src/bundles/es.ts +6 -0
  50. package/src/bundles/fr.ts +6 -0
  51. package/src/bundles/he.ts +6 -0
  52. package/src/bundles/hi.ts +6 -0
  53. package/src/bundles/id.ts +6 -0
  54. package/src/bundles/it.ts +6 -0
  55. package/src/bundles/ja.ts +6 -0
  56. package/src/bundles/ko.ts +6 -0
  57. package/src/bundles/ms.ts +6 -0
  58. package/src/bundles/pl.ts +6 -0
  59. package/src/bundles/pt.ts +6 -0
  60. package/src/bundles/qu.ts +6 -0
  61. package/src/bundles/ru.ts +6 -0
  62. package/src/bundles/shared.ts +65 -0
  63. package/src/bundles/slavic.ts +8 -0
  64. package/src/bundles/south-asian.ts +7 -0
  65. package/src/bundles/southeast-asian.ts +10 -0
  66. package/src/bundles/sw.ts +6 -0
  67. package/src/bundles/th.ts +6 -0
  68. package/src/bundles/tl.ts +6 -0
  69. package/src/bundles/tr.ts +6 -0
  70. package/src/bundles/uk.ts +6 -0
  71. package/src/bundles/vi.ts +6 -0
  72. package/src/bundles/western.ts +9 -0
  73. package/src/bundles/zh.ts +6 -0
  74. package/src/derive-syntax.ts +126 -0
  75. package/src/generated/syntax-table.ts +61 -0
  76. package/src/hyperscript-renderer.ts +150 -0
  77. package/src/index.ts +27 -0
  78. package/src/language-resolver.ts +41 -0
  79. package/src/plugin.ts +119 -0
  80. package/src/preprocessor.ts +251 -0
  81. package/src/slim-plugin.ts +60 -0
  82. package/src/slim-preprocessor.ts +190 -0
@@ -0,0 +1,8 @@
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
+ \u{1F4A1} ${a.suggestion}`:"",a.location?.input?`
5
+ \u{1F4CD} ${a.location.input}`:"")}}var rf=new Set(["me","my","myself","you","your","yourself","it","its","result","event","target","body","detail","window","document"]),nf=new Set(["and","or","not","no"]),af=new Set(["true","false","null","undefined"]),uf=new Set(["ms","s","seconds","second","milliseconds","millisecond","minutes","minute","hours","hour"]);function of(e){let r=[],t=0,n=1,a=1;function i(){if(r.length===0)return!0;let d=r[r.length-1];return["OPERATOR","COMPARISON","LOGICAL","LPAREN","LBRACKET","LBRACE","COMMA","COLON"].includes(d.type)}function u(d=0){return e[t+d]??""}function o(){let d=e[t];return t++,d===`
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
+ `).map(o=>o.trim()).filter(o=>o.length>0),u=[];for(let o of i){let s=o.split(a);u.push(...s)}return u}function _3(e,r,t){let n=[];for(let a of e){let i=A0(a.trim(),r,t);if(i===null)return null;n.push(i)}return n.join(" then ")}function vr(e={}){return function(t){let{internals:n}=t,a=n.runtime,i=a.getScript.bind(a);a.getScript=function(u){let o=i(u);if(!o)return null;let s=R3(u,e);if(!s||s==="en")return o;let l=Ie(o,s,e);return l!==o?e.debug&&console.log(`[hyperscript-i18n] ${s}: "${o}" \u2192 "${l}"`):console.warn(`[hyperscript-i18n] Translation unchanged for lang="${s}": "${o.length>60?o.slice(0,60)+"\u2026":o}". 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 R3(e,r){if(r.languageAttribute){let n=e.getAttribute(r.languageAttribute);if(n)return n.split("-")[0].toLowerCase()}let t=wt(e);return t||(r.defaultLanguage??null)}function ea(e,r,t={}){return r==="en"?e:Ie(e,r,t)}var N3=Zi,I3=Qi();typeof _hyperscript<"u"&&_hyperscript.use&&(_hyperscript.use(vr()),W3());function W3(){if(typeof document>"u")return;let r=_hyperscript?.internals?.runtime;if(!r?.processNode||!r?.getInternalData)return;let t=r.getScriptSelector?.()??"[_], [script], [data-script]";document.querySelectorAll(t).forEach(n=>{let a=r.getInternalData(n);a.initialized&&(a.initialized=!1)}),r.processNode(document.body)}return F0(M3);})();
8
+ //# sourceMappingURL=hyperscript-i18n.global.js.map