@divkitframework/divkit
Version:
DivKit for the web
11 lines • 429 kB
JavaScript
"use strict";var ld=Object.defineProperty;var ad=(e,r,t)=>r in e?ld(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var br=(e,r,t)=>ad(e,typeof r!="symbol"?r+"":r,t);/*!
DivKit v32.6.0
https://github.com/divkit/divkit
@licence Apache-2.0
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function yl(e){return BigInt(e)}const Eo=yl("9223372036854775807"),Ao=yl("-9223372036854775808");function _n(e){const r=yl(e);if(r>Eo||r<Ao)throw new Error("Integer overflow.");return r}const Ui=_n(0);function xc(e){let r=e;return r<0&&(r=-r),r}function $c(e){let r=0;return e>0?r=1:e<0&&(r=-1),_n(r)}function ud(e,r){return r&&r[3]&&r[7]?{type:"ConditionalExpression",test:e,consequent:r[3],alternate:r[7]}:e}function cd(e,r){return r&&r[3]?{type:"TryExpression",test:e,alternate:r[3]}:e}function Do(e,r){return r.length?r.reduce((t,n)=>({type:"BinaryExpression",operator:n[1],left:t,right:n[3]}),e):e}function Ul(e,r){return r.length?r.reduce((t,n)=>({type:"LogicalExpression",operator:n[1],left:t,right:n[3]}),e):e}function fd(e,r){return r.length?r.reduce((t,n)=>{if(!n[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:t,method:n[3],arguments:n[5][2]}},e):e}function dd(e){return e==="true"||e==="false"?{type:"BooleanLiteral",value:e==="true"}:{type:"Variable",id:{type:"Identifier",name:e}}}function Gl(e){if(e.every(t=>typeof t=="string"))return{type:"StringLiteral",value:e.join("")};let r=e.reduce((t,n)=>(typeof n=="string"&&typeof t[t.length-1]=="string"?t[t.length-1]+=n:t.push(n),t),[]).reduce((t,n)=>(typeof n=="string"?t.quasis.push({type:"StringLiteral",value:n}):(t.quasis.length===t.expressions.length&&t.quasis.push({type:"StringLiteral",value:""}),t.expressions.push(n)),t),{type:"TemplateLiteral",quasis:[],expressions:[]});return r.quasis.length===r.expressions.length&&r.quasis.push({type:"StringLiteral",value:""}),r}function _d(e){try{return _n(e)}catch{throw new Error(`Value ${e} can't be converted to Integer type.`)}}function Yl(e){if(e==="'"||e==="\\")return e;throw new Error("Incorrect string escape")}function hd(e,r){function t(){this.constructor=e}t.prototype=r.prototype,e.prototype=new t}function so(e,r,t,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,so.prototype),i.expected=r,i.found=t,i.location=n,i.name="SyntaxError",i}hd(so,Error);function Ls(e,r,t){return t=t||" ",e.length>r?e:(r-=e.length,t+=t.repeat(r),e+t.slice(0,r))}so.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var t=null,n;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){t=e[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(t){var a=this.location.end,l=Ls("",o.line.toString().length," "),u=t[i.line-1],c=i.line===a.line?a.column:u.length+1,d=c-i.column||1;r+=`
--> `+s+`
`+l+` |
`+o.line+" | "+u+`
`+l+" | "+Ls("",i.column-1," ")+Ls("",d,"^")}else r+=`
at `+s}return r};so.buildMessage=function(e,r){var t={literal:function(u){return'"'+i(u.text)+'"'},class:function(u){var c=u.parts.map(function(d){return Array.isArray(d)?o(d[0])+"-"+o(d[1]):o(d)});return"["+(u.inverted?"^":"")+c.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(u){return u.description}};function n(u){return u.charCodeAt(0).toString(16).toUpperCase()}function i(u){return u.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(c){return"\\x0"+n(c)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(c){return"\\x"+n(c)})}function o(u){return u.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(c){return"\\x0"+n(c)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(c){return"\\x"+n(c)})}function s(u){return t[u.type](u)}function a(u){var c=u.map(s),d,_;if(c.sort(),c.length>0){for(d=1,_=1;d<c.length;d++)c[d-1]!==c[d]&&(c[_]=c[d],_++);c.length=_}switch(c.length){case 1:return c[0];case 2:return c[0]+" or "+c[1];default:return c.slice(0,-1).join(", ")+", or "+c[c.length-1]}}function l(u){return u?'"'+i(u)+'"':"end of input"}return"Expected "+a(e)+" but "+l(r)+" found."};function ys(e,r){r=r!==void 0?r:{};var t={},n=r.grammarSource,i={start:v,JsonStringContents:A},o=v,s="@{",a="}",l="@{}",u="\\",c="?",d=":",_="!:",m="||",b="&&",h="==",w="!=",k=">=",ee=">",Z="<=",R="<",he="+",ue="-",Y="/",ne="*",J="%",T="!",z=".",L="(",O=")",Ae=",",nt="'",ce="e",Re="E",Ce=/^[^}]/,Ke=/^[^'}]/,qe=/^[0-9]/,Ct=/^[a-zA-Z_]/,ye=/^[a-zA-Z_0-9]/,Ne=/^[ \t\r\n]/,te=bt("@{",!1),Be=bt("}",!1),ve=bt("@{}",!1),je=bt("\\",!1),Me=mr(),be=Bt(["}"],!0,!1),Ft=bt("?",!1),se=bt(":",!1),dt=bt("!:",!1),Ve=bt("||",!1),K=bt("&&",!1),ot=bt("==",!1),pe=bt("!=",!1),ut=bt(">=",!1),et=bt(">",!1),st=bt("<=",!1),Xe=bt("<",!1),Vt=bt("+",!1),ct=bt("-",!1),jt=bt("/",!1),ie=bt("*",!1),De=bt("%",!1),_e=bt("!",!1),We=bt(".",!1),Ie=bt("(",!1),wt=bt(")",!1),St=bt(",",!1),at=Pr("string"),Lt=bt("'",!1),Oe=Bt(["'","}"],!0,!1),G=Pr("integer"),it=Bt([["0","9"]],!1,!1),Ht=Pr("number"),Jt=bt("e",!1),P=bt("E",!1),ft=Bt([["a","z"],["A","Z"],"_"],!1,!1),Se=Bt([["a","z"],["A","Z"],"_",["0","9"]],!1,!1),de=Pr("whitespace"),Pt=Bt([" "," ","\r",`
`],!1,!1),Te=function(g){return g},rr=function(g){return Gl(g)},Tt=function(g){return g},_r=function(){return""},re=function(){return Et()},Je=function(){throw new Error("Error tokenizing '"+e+"'.")},tr=function(){throw new Error("Error tokenizing '"+e+"'.")},_t=function(g){return g},It=function(g){return Yl(g)},tt=function(){throw new Error("Error tokenizing '"+e+"'.")},gt=function(g,C){return ud(g,C)},Rt=function(g,C){return cd(g,C)},lr=function(g,C){return Ul(g,C)},Wt=function(g,C){return Ul(g,C)},fr=function(g,C){return Do(g,C)},Xt=function(g,C){return Do(g,C)},$t=function(g,C){return Do(g,C)},nr=function(g,C){return Do(g,C)},Ut=function(g){return g},dr=function(g){return g},xt=function(g,C){return{type:"UnaryExpression",operator:g,argument:C}},vr=function(){throw new Error("Incorrect unary operator")},yr=function(g,C){return fd(g,C)},Ge=function(g,C){return{type:"CallExpression",callee:g,arguments:C}},hr=function(g,C){return[g,...C]},Or=function(g){return g},Ir=function(g){return g},Zt=function(g){return Gl(g)},kr=function(g){return g},an=function(){return""},Pe=function(){return Et()},ke=function(){throw new Error("Error tokenizing '"+e+"'.")},vt=function(){throw new Error("Error tokenizing '"+e+"'.")},zt=function(g){return g},gr=function(g){return Yl(g)},Mr=function(){throw new Error("Error tokenizing '"+e+"'.")},D=function(){return{type:"IntegerLiteral",value:_d(Et())}},j=function(){return{type:"NumberLiteral",value:parseFloat(Et())}},F=function(){return{type:"NumberLiteral",value:parseFloat(Et())}},H=function(){const g=Et();if(/\.\./.test(g)||/\.$/.test(g))throw new Error("Unexpected token: .");return dd(g)},Ue=function(){return{type:"Identifier",name:Et()}},f=0,we=0,rt=[{line:1,column:1}],Qe=0,Gt=[],E=0,kt;if("startRule"in r){if(!(r.startRule in i))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');o=i[r.startRule]}function Et(){return e.substring(we,f)}function bt(g,C){return{type:"literal",text:g,ignoreCase:C}}function Bt(g,C,B){return{type:"class",parts:g,inverted:C,ignoreCase:B}}function mr(){return{type:"any"}}function Rr(){return{type:"end"}}function Pr(g){return{type:"other",description:g}}function Zr(g){var C=rt[g],B;if(C)return C;for(B=g-1;!rt[B];)B--;for(C=rt[B],C={line:C.line,column:C.column};B<g;)e.charCodeAt(B)===10?(C.line++,C.column=1):C.column++,B++;return rt[g]=C,C}function wn(g,C,B){var S=Zr(g),le=Zr(C),oe={source:n,start:{offset:g,line:S.line,column:S.column},end:{offset:C,line:le.line,column:le.column}};return oe}function fe(g){f<Qe||(f>Qe&&(Qe=f,Gt=[]),Gt.push(g))}function y(g,C,B){return new so(so.buildMessage(g,C),g,C,B)}function v(){var g,C;return g=f,At(),C=I(),C!==t?(At(),we=g,g=Te(C)):(f=g,g=t),g}function A(){var g,C,B;for(g=f,C=[],B=q();B!==t;)C.push(B),B=q();return we=g,C=rr(C),g=C,g}function q(){var g,C,B,S,le;if(g=f,e.substr(f,2)===s?(C=s,f+=2):(C=t,E===0&&fe(te)),C!==t?(B=At(),S=I(),S!==t?(At(),e.charCodeAt(f)===125?(le=a,f++):(le=t,E===0&&fe(Be)),le!==t?(we=g,g=Tt(S)):(f=g,g=t)):(f=g,g=t)):(f=g,g=t),g===t&&(g=f,e.substr(f,3)===l?(C=l,f+=3):(C=t,E===0&&fe(ve)),C!==t&&(we=g,C=_r()),g=C,g===t&&(g=f,C=f,E++,e.charCodeAt(f)===92?(B=u,f++):(B=t,E===0&&fe(je)),B===t&&(e.substr(f,2)===s?(B=s,f+=2):(B=t,E===0&&fe(te))),E--,B===t?C=void 0:(f=C,C=t),C!==t?(e.length>f?(B=e.charAt(f),f++):(B=t,E===0&&fe(Me)),B!==t?(we=g,g=re()):(f=g,g=t)):(f=g,g=t),g===t))){if(g=f,e.substr(f,2)===s?(C=s,f+=2):(C=t,E===0&&fe(te)),C!==t){if(B=[],Ce.test(e.charAt(f))?(S=e.charAt(f),f++):(S=t,E===0&&fe(be)),S!==t)for(;S!==t;)B.push(S),Ce.test(e.charAt(f))?(S=e.charAt(f),f++):(S=t,E===0&&fe(be));else B=t;B!==t?(e.charCodeAt(f)===125?(S=a,f++):(S=t,E===0&&fe(Be)),S!==t?(we=g,g=Je()):(f=g,g=t)):(f=g,g=t)}else f=g,g=t;g===t&&(g=f,e.substr(f,2)===s?(C=s,f+=2):(C=t,E===0&&fe(te)),C!==t&&(we=g,C=tr()),g=C,g===t&&(g=f,e.charCodeAt(f)===92?(C=u,f++):(C=t,E===0&&fe(je)),C!==t?(e.substr(f,2)===s?(B=s,f+=2):(B=t,E===0&&fe(te)),B!==t?(we=g,g=_t(B)):(f=g,g=t)):(f=g,g=t),g===t&&(g=f,e.charCodeAt(f)===92?(C=u,f++):(C=t,E===0&&fe(je)),C!==t?(e.length>f?(B=e.charAt(f),f++):(B=t,E===0&&fe(Me)),B!==t?(we=g,g=It(B)):(f=g,g=t)):(f=g,g=t),g===t&&(g=f,e.charCodeAt(f)===92?(C=u,f++):(C=t,E===0&&fe(je)),C!==t&&(we=g,C=tt()),g=C))))}return g}function I(){var g,C,B,S,le,oe,mt,ht,Br,Cr,Hr;return g=f,C=Ye(),C!==t?(B=f,S=At(),e.charCodeAt(f)===63?(le=c,f++):(le=t,E===0&&fe(Ft)),le!==t?(oe=At(),mt=I(),mt!==t?(ht=At(),e.charCodeAt(f)===58?(Br=d,f++):(Br=t,E===0&&fe(se)),Br!==t?(Cr=At(),Hr=I(),Hr!==t?(S=[S,le,oe,mt,ht,Br,Cr,Hr],B=S):(f=B,B=t)):(f=B,B=t)):(f=B,B=t)):(f=B,B=t),B===t&&(B=null),we=g,g=gt(C,B)):(f=g,g=t),g}function Ye(){var g,C,B,S,le,oe,mt;return g=f,C=ge(),C!==t?(B=f,S=At(),e.substr(f,2)===_?(le=_,f+=2):(le=t,E===0&&fe(dt)),le!==t?(oe=At(),mt=I(),mt!==t?(S=[S,le,oe,mt],B=S):(f=B,B=t)):(f=B,B=t),B===t&&(B=null),we=g,g=Rt(C,B)):(f=g,g=t),g}function ge(){var g,C,B,S,le,oe,mt,ht;if(g=f,C=xe(),C!==t){for(B=[],S=f,le=At(),e.substr(f,2)===m?(oe=m,f+=2):(oe=t,E===0&&fe(Ve)),oe!==t?(mt=At(),ht=xe(),ht!==t?(le=[le,oe,mt,ht],S=le):(f=S,S=t)):(f=S,S=t);S!==t;)B.push(S),S=f,le=At(),e.substr(f,2)===m?(oe=m,f+=2):(oe=t,E===0&&fe(Ve)),oe!==t?(mt=At(),ht=xe(),ht!==t?(le=[le,oe,mt,ht],S=le):(f=S,S=t)):(f=S,S=t);we=g,g=lr(C,B)}else f=g,g=t;return g}function xe(){var g,C,B,S,le,oe,mt,ht;if(g=f,C=pt(),C!==t){for(B=[],S=f,le=At(),e.substr(f,2)===b?(oe=b,f+=2):(oe=t,E===0&&fe(K)),oe!==t?(mt=At(),ht=pt(),ht!==t?(le=[le,oe,mt,ht],S=le):(f=S,S=t)):(f=S,S=t);S!==t;)B.push(S),S=f,le=At(),e.substr(f,2)===b?(oe=b,f+=2):(oe=t,E===0&&fe(K)),oe!==t?(mt=At(),ht=pt(),ht!==t?(le=[le,oe,mt,ht],S=le):(f=S,S=t)):(f=S,S=t);we=g,g=Wt(C,B)}else f=g,g=t;return g}function pt(){var g,C,B,S,le,oe,mt,ht;if(g=f,C=Ee(),C!==t){for(B=[],S=f,le=At(),e.substr(f,2)===h?(oe=h,f+=2):(oe=t,E===0&&fe(ot)),oe===t&&(e.substr(f,2)===w?(oe=w,f+=2):(oe=t,E===0&&fe(pe))),oe!==t?(mt=At(),ht=Ee(),ht!==t?(le=[le,oe,mt,ht],S=le):(f=S,S=t)):(f=S,S=t);S!==t;)B.push(S),S=f,le=At(),e.substr(f,2)===h?(oe=h,f+=2):(oe=t,E===0&&fe(ot)),oe===t&&(e.substr(f,2)===w?(oe=w,f+=2):(oe=t,E===0&&fe(pe))),oe!==t?(mt=At(),ht=Ee(),ht!==t?(le=[le,oe,mt,ht],S=le):(f=S,S=t)):(f=S,S=t);we=g,g=fr(C,B)}else f=g,g=t;return g}function Ee(){var g,C,B,S,le,oe,mt,ht;if(g=f,C=Ot(),C!==t){for(B=[],S=f,le=At(),e.substr(f,2)===k?(oe=k,f+=2):(oe=t,E===0&&fe(ut)),oe===t&&(e.charCodeAt(f)===62?(oe=ee,f++):(oe=t,E===0&&fe(et)),oe===t&&(e.substr(f,2)===Z?(oe=Z,f+=2):(oe=t,E===0&&fe(st)),oe===t&&(e.charCodeAt(f)===60?(oe=R,f++):(oe=t,E===0&&fe(Xe))))),oe!==t?(mt=At(),ht=Ot(),ht!==t?(le=[le,oe,mt,ht],S=le):(f=S,S=t)):(f=S,S=t);S!==t;)B.push(S),S=f,le=At(),e.substr(f,2)===k?(oe=k,f+=2):(oe=t,E===0&&fe(ut)),oe===t&&(e.charCodeAt(f)===62?(oe=ee,f++):(oe=t,E===0&&fe(et)),oe===t&&(e.substr(f,2)===Z?(oe=Z,f+=2):(oe=t,E===0&&fe(st)),oe===t&&(e.charCodeAt(f)===60?(oe=R,f++):(oe=t,E===0&&fe(Xe))))),oe!==t?(mt=At(),ht=Ot(),ht!==t?(le=[le,oe,mt,ht],S=le):(f=S,S=t)):(f=S,S=t);we=g,g=Xt(C,B)}else f=g,g=t;return g}function Ot(){var g,C,B,S,le,oe,mt,ht;if(g=f,C=$e(),C!==t){for(B=[],S=f,le=At(),e.charCodeAt(f)===43?(oe=he,f++):(oe=t,E===0&&fe(Vt)),oe===t&&(e.charCodeAt(f)===45?(oe=ue,f++):(oe=t,E===0&&fe(ct))),oe!==t?(mt=At(),ht=$e(),ht!==t?(le=[le,oe,mt,ht],S=le):(f=S,S=t)):(f=S,S=t);S!==t;)B.push(S),S=f,le=At(),e.charCodeAt(f)===43?(oe=he,f++):(oe=t,E===0&&fe(Vt)),oe===t&&(e.charCodeAt(f)===45?(oe=ue,f++):(oe=t,E===0&&fe(ct))),oe!==t?(mt=At(),ht=$e(),ht!==t?(le=[le,oe,mt,ht],S=le):(f=S,S=t)):(f=S,S=t);we=g,g=$t(C,B)}else f=g,g=t;return g}function $e(){var g,C,B,S,le,oe,mt,ht;if(g=f,C=Qt(),C!==t){for(B=[],S=f,le=At(),e.charCodeAt(f)===47?(oe=Y,f++):(oe=t,E===0&&fe(jt)),oe===t&&(e.charCodeAt(f)===42?(oe=ne,f++):(oe=t,E===0&&fe(ie)),oe===t&&(e.charCodeAt(f)===37?(oe=J,f++):(oe=t,E===0&&fe(De)))),oe!==t?(mt=At(),ht=Qt(),ht!==t?(le=[le,oe,mt,ht],S=le):(f=S,S=t)):(f=S,S=t);S!==t;)B.push(S),S=f,le=At(),e.charCodeAt(f)===47?(oe=Y,f++):(oe=t,E===0&&fe(jt)),oe===t&&(e.charCodeAt(f)===42?(oe=ne,f++):(oe=t,E===0&&fe(ie)),oe===t&&(e.charCodeAt(f)===37?(oe=J,f++):(oe=t,E===0&&fe(De)))),oe!==t?(mt=At(),ht=Qt(),ht!==t?(le=[le,oe,mt,ht],S=le):(f=S,S=t)):(f=S,S=t);we=g,g=nr(C,B)}else f=g,g=t;return g}function Qt(){var g,C,B,S;return g=f,C=f,E++,e.charCodeAt(f)===45?(B=ue,f++):(B=t,E===0&&fe(ct)),E--,B!==t?(f=C,C=void 0):C=t,C!==t?(B=ri(),B!==t?(we=g,g=Ut(B)):(f=g,g=t)):(f=g,g=t),g===t&&(g=f,C=f,E++,e.charCodeAt(f)===45?(B=ue,f++):(B=t,E===0&&fe(ct)),E--,B!==t?(f=C,C=void 0):C=t,C!==t?(B=Pn(),B!==t?(we=g,g=dr(B)):(f=g,g=t)):(f=g,g=t),g===t&&(g=f,e.charCodeAt(f)===33?(C=T,f++):(C=t,E===0&&fe(_e)),C===t&&(e.charCodeAt(f)===43?(C=he,f++):(C=t,E===0&&fe(Vt)),C===t&&(e.charCodeAt(f)===45?(C=ue,f++):(C=t,E===0&&fe(ct)))),C!==t?(B=At(),S=Nr(),S===t&&(S=on()),S!==t?(we=g,g=xt(C,S)):(f=g,g=t)):(f=g,g=t),g===t&&(g=on()))),g}function Nr(){var g,C;return g=f,e.charCodeAt(f)===43?(C=he,f++):(C=t,E===0&&fe(Vt)),C===t&&(e.charCodeAt(f)===45?(C=ue,f++):(C=t,E===0&&fe(ct))),C!==t&&(we=g,C=vr()),g=C,g}function on(){var g,C,B,S,le,oe,mt,ht,Br,Cr,Hr,Si,ii,V,lt;if(g=f,C=Ar(),C!==t){for(B=[],S=f,le=At(),e.charCodeAt(f)===46?(oe=z,f++):(oe=t,E===0&&fe(We)),oe!==t?(mt=At(),ht=sn(),ht!==t?(Br=At(),Cr=f,e.charCodeAt(f)===40?(Hr=L,f++):(Hr=t,E===0&&fe(Ie)),Hr!==t?(Si=At(),ii=Qr(),ii!==t?(V=At(),e.charCodeAt(f)===41?(lt=O,f++):(lt=t,E===0&&fe(wt)),lt!==t?(Hr=[Hr,Si,ii,V,lt],Cr=Hr):(f=Cr,Cr=t)):(f=Cr,Cr=t)):(f=Cr,Cr=t),Cr===t&&(Cr=null),le=[le,oe,mt,ht,Br,Cr],S=le):(f=S,S=t)):(f=S,S=t);S!==t;)B.push(S),S=f,le=At(),e.charCodeAt(f)===46?(oe=z,f++):(oe=t,E===0&&fe(We)),oe!==t?(mt=At(),ht=sn(),ht!==t?(Br=At(),Cr=f,e.charCodeAt(f)===40?(Hr=L,f++):(Hr=t,E===0&&fe(Ie)),Hr!==t?(Si=At(),ii=Qr(),ii!==t?(V=At(),e.charCodeAt(f)===41?(lt=O,f++):(lt=t,E===0&&fe(wt)),lt!==t?(Hr=[Hr,Si,ii,V,lt],Cr=Hr):(f=Cr,Cr=t)):(f=Cr,Cr=t)):(f=Cr,Cr=t),Cr===t&&(Cr=null),le=[le,oe,mt,ht,Br,Cr],S=le):(f=S,S=t)):(f=S,S=t);we=g,g=yr(C,B)}else f=g,g=t;return g}function Ar(){var g,C,B,S,le;return g=f,C=sn(),C!==t?(At(),e.charCodeAt(f)===40?(B=L,f++):(B=t,E===0&&fe(Ie)),B!==t?(At(),S=Qr(),S!==t?(At(),e.charCodeAt(f)===41?(le=O,f++):(le=t,E===0&&fe(wt)),le!==t?(we=g,g=Ge(C,S)):(f=g,g=t)):(f=g,g=t)):(f=g,g=t)):(f=g,g=t),g===t&&(g=xr()),g}function Qr(){var g,C,B,S,le,oe;if(g=f,C=I(),C!==t){for(B=[],S=f,At(),e.charCodeAt(f)===44?(le=Ae,f++):(le=t,E===0&&fe(St)),le!==t?(At(),oe=I(),oe!==t?S=oe:(f=S,S=t)):(f=S,S=t);S!==t;)B.push(S),S=f,At(),e.charCodeAt(f)===44?(le=Ae,f++):(le=t,E===0&&fe(St)),le!==t?(At(),oe=I(),oe!==t?S=oe:(f=S,S=t)):(f=S,S=t);we=g,g=hr(C,B)}else f=g,g=t;return g===t&&(g=At()),g}function xr(){var g,C,B,S;return g=ni(),g===t&&(g=kn(),g===t&&(g=ri(),g===t&&(g=Pn(),g===t&&(g=f,e.charCodeAt(f)===40?(C=L,f++):(C=t,E===0&&fe(Ie)),C!==t?(At(),B=I(),B!==t?(At(),e.charCodeAt(f)===41?(S=O,f++):(S=t,E===0&&fe(wt)),S!==t?(we=g,g=Or(B)):(f=g,g=t)):(f=g,g=t)):(f=g,g=t))))),g}function kn(){var g,C,B,S;return E++,g=f,e.charCodeAt(f)===39?(C=nt,f++):(C=t,E===0&&fe(Lt)),C!==t?(B=Hn(),e.charCodeAt(f)===39?(S=nt,f++):(S=t,E===0&&fe(Lt)),S!==t?(we=g,g=Ir(B)):(f=g,g=t)):(f=g,g=t),E--,g===t&&(C=t,E===0&&fe(at)),g}function Hn(){var g,C,B;for(g=f,C=[],B=Tn();B!==t;)C.push(B),B=Tn();return we=g,C=Zt(C),g=C,g}function Tn(){var g,C,B,S,le;if(g=f,e.substr(f,2)===s?(C=s,f+=2):(C=t,E===0&&fe(te)),C!==t?(B=At(),S=I(),S!==t?(At(),e.charCodeAt(f)===125?(le=a,f++):(le=t,E===0&&fe(Be)),le!==t?(we=g,g=kr(S)):(f=g,g=t)):(f=g,g=t)):(f=g,g=t),g===t&&(g=f,e.substr(f,3)===l?(C=l,f+=3):(C=t,E===0&&fe(ve)),C!==t&&(we=g,C=an()),g=C,g===t&&(g=f,C=f,E++,e.charCodeAt(f)===92?(B=u,f++):(B=t,E===0&&fe(je)),B===t&&(e.charCodeAt(f)===39?(B=nt,f++):(B=t,E===0&&fe(Lt)),B===t&&(e.substr(f,2)===s?(B=s,f+=2):(B=t,E===0&&fe(te)))),E--,B===t?C=void 0:(f=C,C=t),C!==t?(e.length>f?(B=e.charAt(f),f++):(B=t,E===0&&fe(Me)),B!==t?(we=g,g=Pe()):(f=g,g=t)):(f=g,g=t),g===t))){if(g=f,e.substr(f,2)===s?(C=s,f+=2):(C=t,E===0&&fe(te)),C!==t){if(B=[],Ke.test(e.charAt(f))?(S=e.charAt(f),f++):(S=t,E===0&&fe(Oe)),S!==t)for(;S!==t;)B.push(S),Ke.test(e.charAt(f))?(S=e.charAt(f),f++):(S=t,E===0&&fe(Oe));else B=t;B!==t?(e.charCodeAt(f)===125?(S=a,f++):(S=t,E===0&&fe(Be)),S!==t?(we=g,g=ke()):(f=g,g=t)):(f=g,g=t)}else f=g,g=t;g===t&&(g=f,e.substr(f,2)===s?(C=s,f+=2):(C=t,E===0&&fe(te)),C!==t&&(we=g,C=vt()),g=C,g===t&&(g=f,e.charCodeAt(f)===92?(C=u,f++):(C=t,E===0&&fe(je)),C!==t?(e.substr(f,2)===s?(B=s,f+=2):(B=t,E===0&&fe(te)),B!==t?(we=g,g=zt(B)):(f=g,g=t)):(f=g,g=t),g===t&&(g=f,e.charCodeAt(f)===92?(C=u,f++):(C=t,E===0&&fe(je)),C!==t?(e.length>f?(B=e.charAt(f),f++):(B=t,E===0&&fe(Me)),B!==t?(we=g,g=gr(B)):(f=g,g=t)):(f=g,g=t),g===t&&(g=f,e.charCodeAt(f)===92?(C=u,f++):(C=t,E===0&&fe(je)),C!==t&&(we=g,C=Mr()),g=C))))}return g}function Pn(){var g,C,B;if(E++,g=f,e.charCodeAt(f)===45?f++:E===0&&fe(ct),C=[],qe.test(e.charAt(f))?(B=e.charAt(f),f++):(B=t,E===0&&fe(it)),B!==t)for(;B!==t;)C.push(B),qe.test(e.charAt(f))?(B=e.charAt(f),f++):(B=t,E===0&&fe(it));else C=t;return C!==t?(we=g,g=D()):(f=g,g=t),E--,g===t&&E===0&&fe(G),g}function ri(){var g,C,B,S,le,oe,mt,ht,Br;for(E++,g=f,e.charCodeAt(f)===45?f++:E===0&&fe(ct),C=[],qe.test(e.charAt(f))?(B=e.charAt(f),f++):(B=t,E===0&&fe(it));B!==t;)C.push(B),qe.test(e.charAt(f))?(B=e.charAt(f),f++):(B=t,E===0&&fe(it));if(e.charCodeAt(f)===46?(B=z,f++):(B=t,E===0&&fe(We)),B!==t){if(S=[],qe.test(e.charAt(f))?(le=e.charAt(f),f++):(le=t,E===0&&fe(it)),le!==t)for(;le!==t;)S.push(le),qe.test(e.charAt(f))?(le=e.charAt(f),f++):(le=t,E===0&&fe(it));else S=t;if(S!==t){if(le=f,e.charCodeAt(f)===101?(oe=ce,f++):(oe=t,E===0&&fe(Jt)),oe===t&&(e.charCodeAt(f)===69?(oe=Re,f++):(oe=t,E===0&&fe(P))),oe!==t){if(e.charCodeAt(f)===43?(mt=he,f++):(mt=t,E===0&&fe(Vt)),mt===t&&(e.charCodeAt(f)===45?(mt=ue,f++):(mt=t,E===0&&fe(ct))),mt===t&&(mt=null),ht=[],qe.test(e.charAt(f))?(Br=e.charAt(f),f++):(Br=t,E===0&&fe(it)),Br!==t)for(;Br!==t;)ht.push(Br),qe.test(e.charAt(f))?(Br=e.charAt(f),f++):(Br=t,E===0&&fe(it));else ht=t;ht!==t?(oe=[oe,mt,ht],le=oe):(f=le,le=t)}else f=le,le=t;le===t&&(le=null),we=g,g=j()}else f=g,g=t}else f=g,g=t;if(g===t){if(g=f,e.charCodeAt(f)===45?f++:E===0&&fe(ct),C=[],qe.test(e.charAt(f))?(B=e.charAt(f),f++):(B=t,E===0&&fe(it)),B!==t)for(;B!==t;)C.push(B),qe.test(e.charAt(f))?(B=e.charAt(f),f++):(B=t,E===0&&fe(it));else C=t;if(C!==t)if(e.charCodeAt(f)===101?(B=ce,f++):(B=t,E===0&&fe(Jt)),B===t&&(e.charCodeAt(f)===69?(B=Re,f++):(B=t,E===0&&fe(P))),B!==t){if(e.charCodeAt(f)===43?(S=he,f++):(S=t,E===0&&fe(Vt)),S===t&&(e.charCodeAt(f)===45?(S=ue,f++):(S=t,E===0&&fe(ct))),S===t&&(S=null),le=[],qe.test(e.charAt(f))?(oe=e.charAt(f),f++):(oe=t,E===0&&fe(it)),oe!==t)for(;oe!==t;)le.push(oe),qe.test(e.charAt(f))?(oe=e.charAt(f),f++):(oe=t,E===0&&fe(it));else le=t;le!==t?(we=g,g=F()):(f=g,g=t)}else f=g,g=t;else f=g,g=t}return E--,g===t&&E===0&&fe(Ht),g}function ni(){var g,C,B,S,le,oe,mt,ht,Br,Cr,Hr;if(g=f,Ct.test(e.charAt(f))?(C=e.charAt(f),f++):(C=t,E===0&&fe(ft)),C!==t){if(B=[],S=[],ye.test(e.charAt(f))?(le=e.charAt(f),f++):(le=t,E===0&&fe(Se)),le!==t)for(;le!==t;)S.push(le),ye.test(e.charAt(f))?(le=e.charAt(f),f++):(le=t,E===0&&fe(Se));else S=t;for(S===t&&(S=f,e.charCodeAt(f)===46?(le=z,f++):(le=t,E===0&&fe(We)),le!==t?(oe=f,E++,mt=f,ht=At(),Br=sn(),Br!==t?(Cr=At(),e.charCodeAt(f)===40?(Hr=L,f++):(Hr=t,E===0&&fe(Ie)),Hr!==t?(ht=[ht,Br,Cr,Hr],mt=ht):(f=mt,mt=t)):(f=mt,mt=t),E--,mt===t?oe=void 0:(f=oe,oe=t),oe!==t?(le=[le,oe],S=le):(f=S,S=t)):(f=S,S=t));S!==t;){if(B.push(S),S=[],ye.test(e.charAt(f))?(le=e.charAt(f),f++):(le=t,E===0&&fe(Se)),le!==t)for(;le!==t;)S.push(le),ye.test(e.charAt(f))?(le=e.charAt(f),f++):(le=t,E===0&&fe(Se));else S=t;S===t&&(S=f,e.charCodeAt(f)===46?(le=z,f++):(le=t,E===0&&fe(We)),le!==t?(oe=f,E++,mt=f,ht=At(),Br=sn(),Br!==t?(Cr=At(),e.charCodeAt(f)===40?(Hr=L,f++):(Hr=t,E===0&&fe(Ie)),Hr!==t?(ht=[ht,Br,Cr,Hr],mt=ht):(f=mt,mt=t)):(f=mt,mt=t),E--,mt===t?oe=void 0:(f=oe,oe=t),oe!==t?(le=[le,oe],S=le):(f=S,S=t)):(f=S,S=t))}we=g,g=H()}else f=g,g=t;return g}function sn(){var g,C,B,S;if(g=f,Ct.test(e.charAt(f))?(C=e.charAt(f),f++):(C=t,E===0&&fe(ft)),C!==t){for(B=[],ye.test(e.charAt(f))?(S=e.charAt(f),f++):(S=t,E===0&&fe(Se));S!==t;)B.push(S),ye.test(e.charAt(f))?(S=e.charAt(f),f++):(S=t,E===0&&fe(Se));we=g,g=Ue()}else f=g,g=t;return g}function At(){var g,C;for(E++,g=[],Ne.test(e.charAt(f))?(C=e.charAt(f),f++):(C=t,E===0&&fe(Pt));C!==t;)g.push(C),Ne.test(e.charAt(f))?(C=e.charAt(f),f++):(C=t,E===0&&fe(Pt));return E--,C=t,E===0&&fe(de),g}if(kt=o(),kt!==t&&f===e.length)return kt;throw kt!==t&&f<e.length&&fe(Rr()),y(Gt,Qe<e.length?e.charAt(Qe):null,Qe<e.length?wn(Qe,Qe+1):wn(Qe,Qe))}const gd=2147483647,pd=-2147483648,md=Number.MAX_VALUE,bd=Number.MIN_VALUE,Fe="string",me="integer",Ze="number",Wr="boolean",ln="color",Wn="url",Er="datetime",ir="dict",or="array";function zn(e,r){var t;switch((t=r[e.type])==null||t.call(r,e),e.type){case"TemplateLiteral":e.expressions.forEach(n=>{zn(n,r)});break;case"BinaryExpression":case"LogicalExpression":zn(e.left,r),zn(e.right,r);break;case"UnaryExpression":zn(e.argument,r);break;case"ConditionalExpression":zn(e.test,r),zn(e.consequent,r),zn(e.alternate,r);break;case"TryExpression":zn(e.test,r),zn(e.alternate,r);break;case"CallExpression":e.arguments.forEach(n=>{zn(n,r)});break;case"MethodExpression":zn(e.object,r),e.arguments.forEach(n=>{zn(n,r)});break}}function ef(e,r){for(;e.length<r;)e="0"+e;return e}function Sr(e,r=1,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=fi(e);return n?(n.a*=r,wl(n)):t}function yd(e,r,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=fi(e);return n?(n.a=r,wl(n)):t}function wl(e){return e.a===255?`#${[e.r,e.g,e.b].map(r=>ef(Math.round(r).toString(16),2)).join("")}`:`rgba(${e.r},${e.g},${e.b},${(e.a/255).toFixed(2)})`}function fi(e){const r=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(r){if(r.length===5){const[u,c,d,_,m]=r,b=d.length===2?d:d+d,h=_.length===2?_:_+_,w=m.length===2?m:m+m,k=c.length===2?c:c+c;return{a:parseInt(k,16),r:parseInt(b,16),g:parseInt(h,16),b:parseInt(w,16)}}const[t,n,i,o]=r,s=n.length===2?n:n+n,a=i.length===2?i:i+i,l=o.length===2?o:o+o;return{a:255,r:parseInt(s,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function ss(e){return e.type==="url"||e.type==="color"?{type:"string",value:e.value}:e}function tf(e){return e.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Ti(e,r){if(e.type==="string")return e.value;if(e.type==="integer")return String(e.value);if(e.type==="number"){let t=String(e.value);return t.includes(".")||(t.includes("e")?t=t.replace("e",".0e"):t+=".0"),t=t.replace(/e\+?/i,"E"),t}else{if(e.type==="boolean")return e.value?"true":"false";if(e.type==="datetime")return tf(e.value);if(e.type==="color")return Xi(ws(e.value));if(e.type==="url")return e.value;if((e.type==="dict"||e.type==="array")&&r)return JSON.stringify(e.value);if(e.type==="dict")return"<dict>";if(e.type==="array")return"<array>"}throw new Error(`Unexpected type ${e.type}`)}function tn(e){let r=Ti(e,!1);return e.type==="string"&&(r="'"+r.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),r}function Ln(e){return e==="datetime"?"DateTime":e.charAt(0).toUpperCase()+e.substring(1)}function Ki(e,r){return _n(r)}function In(e,r){if(r<Ao||r>Eo)throw new Error("Integer overflow.")}function di(e){if(typeof e!="string")throw new Error("Incorrect url value.");try{new URL(e)}catch{throw new Error("Incorrect url value.")}}function wd(e){const r=new Set;return zn(e,{Variable(t){r.add(t.id.name)}}),[...r]}function rn(e,r){throw new Error(`Failed to evaluate [${e}]. ${r}`)}function ws(e){const r=fi(e);if(r)return r;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function Xi(e){return`#${[e.a,e.r,e.g,e.b].map(r=>{if(r<0||r>255)throw new Error("Value out of range 0..1.");return ef(Math.round(r).toString(16),2)}).join("").toUpperCase()}`}function uo(e){return Xi(ws(e))}function Zs(e){return{type:Ze,value:Number(e.value)}}const vd={string:"string",number:"number",integer:"number",boolean:"boolean",color:"string",url:"string",array:"array",dict:"object"};function rf(e,r,t){const n=vd[t];let i=typeof r;if(n==="array"&&!Array.isArray(r)||n!=="array"&&i!==n||i==="object"&&r===null)throw i==="object"&&(Array.isArray(r)?i="array":r===null?i="null":i="dict"),new Error(`Incorrect value type: expected ${Ln(t)}, got ${Ln(i)}.`);if(n==="number"&&t==="integer"){In(e,r);try{r=_n(r)}catch{throw new Error("Cannot convert value to integer.")}}return n==="string"&&t==="color"&&(r=uo(r)),n==="string"&&t==="url"&&di(r),{type:t,value:r}}const vo=new Map,Qs=new Map,Ho=new Map,xs=new Map;function N(e,r,t){const n={args:r,cb:t},i=vo.get(e)||[];vo.has(e)||vo.set(e,i),i.push(n);const o=e+":"+r.map(s=>typeof s=="object"?s.type:s).join("#");Qs.set(o,n)}function Xr(e,r,t){const n={args:r,cb:t},i=Ho.get(e)||[];Ho.has(e)||Ho.set(e,i),i.push(n);const o=e+":"+r.map(s=>typeof s=="object"?s.type:s).join("#");xs.set(o,n)}function kd(e,r,t){const n=e.args.length;let i=e.args.length,o=0;const s=e.args[e.args.length-1];if(typeof s=="object"&&s.isVararg&&(i=1/0),r.length<n)return{type:"few",expected:n,found:r.length,def:e,hasOverloads:t};if(r.length>i)return{type:"many",expected:i,found:r.length,def:e,hasOverloads:t};for(let a=0;a<r.length;++a){let l=a>=e.args.length?e.args[e.args.length-1]:e.args[a];if(typeof l!="object"&&(l={type:l}),l.type===Ze&&r[a].type===me){++o;continue}if(l.type!==r[a].type)return{type:"mismatch",expected:l.type,found:r[a].type,def:e,hasOverloads:t}}return{type:"match",conversions:o}}function $s(e,r,t){const n=e.get(r);if(!n)return{type:"missing"};let i=null,o=null;for(let s=0;s<n.length;++s){const a=kd(n[s],t,n.length>1);if(a.type==="match"){(!o||o.conversions>a.conversions)&&(o={func:n[s],conversions:a.conversions});continue}i||(i=a)}if(!o){if(i)return i;throw new Error("Missing function")}return o}function nf(e,r){return r.map((t,n)=>{let i=n>=e.args.length?e.args[e.args.length-1]:e.args[n];return typeof i!="object"&&(i={type:i}),i.type===Ze&&t.type===me?Zs(t):t})}function ql(e,r){return e+":"+r.args.map(t=>typeof t=="string"?t:t.type).join("#")}function jn(e,r){return{type:Fe,value:Ti(r,!0)}}function Jl(e,r){const t=Number(r.value);if(Number.isNaN(t)||!Number.isFinite(t))throw new Error("Unable to convert value to Number.");if(r.value==="")throw new Error("Unable to convert value to Number.");return{type:Ze,value:t}}function Ed(e,r){if(r.value>Eo||r.value<Ao)throw new Error("Unable to convert value to Integer.");const t=r.value-r.value%1;return{type:me,value:_n(t)}}function Ad(e,r){let t;try{t=_n(r.value)}catch{throw new Error("Unable to convert value to Integer.")}return{type:me,value:t}}function Cd(e,r){return{type:me,value:_n(r.value?1:0)}}function jd(e,r){const t=Number(r.value);if(t!==1&&t!==0)throw new Error("Unable to convert value to Boolean.");return{type:Wr,value:t}}function Sd(e,r){if(r.value!=="true"&&r.value!=="false")throw new Error("Unable to convert value to Boolean.");return{type:Wr,value:r.value==="true"?1:0}}function Vd(e,r){return{type:ln,value:uo(r.value)}}function Id(e,r){return di(r.value),{type:Wn,value:r.value}}function Dd(e,r){try{return{type:Fe,value:encodeURIComponent(r.value)}}catch{throw new Error("Unable to encodeUri string.")}}function Td(e,r){try{return{type:Fe,value:decodeURIComponent(r.value)}}catch{throw new Error("Unable to decodeUri string.")}}function vl(e,r,t,n){const i=e.variables.get(r.value);let o;return i&&i.getType()===n?(o=i.getValue(),e.storeUsedVars||(e.storeUsedVars=new Set),e.storeUsedVars.add(i)):o=t.value,n==="color"?o=uo(o):n==="url"&&di(o),{type:n,value:o}}function To(e,r,t){return vl(e,r,t,t.type)}function Kl(e,r,t){return vl(e,r,t,"color")}function Xl(e,r,t){return vl(e,r,t,"url")}function Fd(){N("toString",[me],jn),N("toString",[Ze],jn),N("toString",[Wr],jn),N("toString",[ln],jn),N("toString",[Wn],jn),N("toString",[Fe],jn),N("toString",[or],jn),N("toString",[ir],jn),N("toNumber",[me],Jl),N("toNumber",[Fe],Jl),N("toInteger",[Ze],Ed),N("toInteger",[Fe],Ad),N("toInteger",[Wr],Cd),N("toBoolean",[me],jd),N("toBoolean",[Fe],Sd),N("toColor",[Fe],Vd),N("toUrl",[Fe],Id),N("encodeUri",[Fe],Dd),N("decodeUri",[Fe],Td),N("getIntegerValue",[Fe,me],To),N("getNumberValue",[Fe,Ze],To),N("getBooleanValue",[Fe,Wr],To),N("getStringValue",[Fe,Fe],To),N("getColorValue",[Fe,ln],Kl),N("getColorValue",[Fe,Fe],Kl),N("getUrlValue",[Fe,Wn],Xl),N("getUrlValue",[Fe,Fe],Xl),Xr("toString",[me],jn),Xr("toString",[Ze],jn),Xr("toString",[Wr],jn),Xr("toString",[ln],jn),Xr("toString",[Wn],jn),Xr("toString",[Fe],jn),Xr("toString",[or],jn),Xr("toString",[ir],jn)}function Sn(e,r){return!e||!r?e:e.padStart(r,"0")}const el={G(e,r){let t;return e<4?t="short":e===5?t="narrow":t="long",r({era:t},"era")},d(e,r){return Sn(r({day:"numeric"},"day"),e>1?e:0)},D(e,r){return Sn(r({},"dayofyear"),e>1?e:0)},F(e,r){return Sn(r({},"dayofweekinmonth"),e>1?e:0)},M(e,r){let t;return e===1?t="numeric":e===2?t="2-digit":e===3?t="short":e===5?t="narrow":t="long",r({month:t,day:"numeric"},"month")},y(e,r){return Sn(r({year:e===2?"2-digit":"numeric"},"year"),e>2?e:void 0)},Y(e,r){return Sn(r({year:e===2?"2-digit":"numeric"},"weekyear"),e>2?e:void 0)},u(e,r){return Sn(r({year:"numeric"},"extendedyear"),e>1?e:void 0)},E(e,r){let t;return e<=3?t="short":e===5?t="narrow":t="long",r({weekday:t},"weekday")},e(e,r){return e>2?el.E(e,r):Sn(r({},"weekdaynumeric"),e>1?e:void 0)},w(e,r){return Sn(r({},"week"),e>1?e:void 0)},W(e,r){return Sn(r({},"weekofmonth"),e>1?e:void 0)},H(e,r){const t=r({hour:"numeric",hour12:!1,hourCycle:"h23"},"hour");if(!t)return;const n=String(Number(t)%24);return Sn(n,e>1?e:void 0)},h(e,r){return Sn(r({hour:"numeric",hour12:!0,hourCycle:"h12"},"hour"),e>1?e:void 0)},K(e,r){const t=r({hour:"numeric",hour12:!0,hourCycle:"h11"},"hour");if(!t)return;const n=String(Number(t)%12);return Sn(n,e>1?e:void 0)},k(e,r){return Sn(r({hour:"numeric",hour12:!1,hourCycle:"h24"},"hour"),e>2?e:void 0)},a(e,r){return r({hour:"numeric",hour12:!0,hourCycle:"h11",dayPeriod:void 0},"dayPeriod")},m(e,r){return Sn(r({minute:"numeric"},"minute"),e>1?e:void 0)},s(e,r){return Sn(r({second:"numeric"},"second"),e>1?e:void 0)},S(e,r){const t=r({fractionalSecondDigits:Math.min(3,e)},"fractionalSecond");return t&&e>3?t.padEnd(e,"0"):t},z(e,r){return r({timeZoneName:e===4?"long":"short"},"timeZoneName")},Z(e,r){const t=-Number(r({},"timezoneoffset")),n=Math.abs(t/60),i=Math.floor(n)*100+(n-Math.floor(n))*60;return(t>=0?"+":"-")+Sn(String(i),4)}},Md=/(\w)\1*|''|'(''|[^'])+('|$)|./g,Pd=/^'([^]*?)'?$/,Nd=/''/g,zd=/[a-zA-Z]/,kl=1e3*60*60*24;function Od(e){const r=e.match(Pd);return r?r[1].replace(Nd,"'"):e}function tl(e,r,t){const n=e[r?"getUTCDay":"getDay"](),i=n<t?t-n-7:t-n;return new Date(e.getTime()+kl*i)}function Zl(e,r,t){const n=new Date(e);return n[r?"setUTCDate":"setDate"](1),n[r?"setUTCMonth":"setMonth"](0),tl(n,r,t)}function Ql(e,r){return Math.round((e.getTime()-r.getTime())/kl)}function xl(e,r,t){let n=0;const i=Zl(e,r||!1,t),o=new Date(e);o[r?"setUTCFullYear":"setFullYear"](e[r?"getUTCFullYear":"getFullYear"]()+1);const s=Zl(o,r||!1,t),a=e.getTime()<i.getTime(),l=e.getTime()>=s.getTime();let u=e[r?"getUTCFullYear":"getFullYear"]();if(a){--u,i[r?"setUTCFullYear":"setFullYear"](i[r?"getUTCFullYear":"getFullYear"]()-1);const c=Ql(tl(e,r,t),i);n=Math.round(c/7)+1}else if(l)++u,n=1;else{const c=Ql(tl(e,r,t),i);n=Math.round(c/7)+1}return{week:n,year:u}}function Ld(e,r,{locale:t,isUTC:n,weekStartDay:i=0}={}){const o=(s,a)=>{if(a==="week"){const{week:c}=xl(e,n||!1,i);return String(c)}if(a==="weekofmonth"){const c=e[n?"getUTCDay":"getDay"](),d=new Date(e);d[n?"setUTCDate":"setDate"](1);const _=d[n?"getUTCDay":"getDay"](),m=e[n?"getUTCDate":"getDate"]();return String(Math.ceil(m/7)+(c<_?1:0))}if(a==="dayofweekinmonth"){const c=e[n?"getUTCDate":"getDate"]();return String(Math.ceil(c/7))}if(a==="weekdaynumeric"){let c=e[n?"getUTCDay":"getDay"]();return c<i&&(c+=7),String(c-i+1)}if(a==="dayofyear"){const c=new Date(e);c[n?"setUTCMonth":"setMonth"](0),c[n?"setUTCDate":"setDate"](1),c[n?"setUTCHours":"setHours"](1),c[n?"setUTCMinutes":"setMinutes"](1),c[n?"setUTCSeconds":"setSeconds"](1);const d=Math.ceil((e.getTime()-c.getTime())/kl);return String(d)}if(a==="weekyear"){let{year:c}=xl(e,n||!1,i);return c<1&&(c=1-c),s.year==="2-digit"?String(c%100):String(c)}if(a==="extendedyear"){const c=e[n?"getUTCFullYear":"getFullYear"]();return s.year==="2-digit"?String(c%100):String(c)}if(a==="timezoneoffset")return n?"0":String(e.getTimezoneOffset());n&&(s.timeZone="UTC");const u=new Intl.DateTimeFormat(t,s).formatToParts(e);for(let c=0;c<u.length;++c)if(u[c].type===a)return u[c].value};return(r.match(Md)||[]).map(s=>{if(s==="''")return"'";const a=s[0];if(a==="'")return Od(s);if(el[a])return el[a](s.length,o);if(a.match(zd))throw new Error(`Format string contains an unescaped latin alphabet character "${a}"`);return s}).join("")}function Rd(e){const r=new Date(e);return r.setUTCMonth(r.getUTCMonth()+1),r.setUTCDate(0),r.getUTCDate()}function Bd(e,r){return{type:Er,value:new Date(Number(r.value)*1e3)}}function Hd(e,r){const t=new Date(Number(r.value)*1e3),n=t.getTimezoneOffset();return t.setMinutes(t.getMinutes()-n),{type:Er,value:t}}function Wd(){return{type:Er,value:new Date}}function Ud(e,r,t){return{type:Er,value:new Date(r.value.getTime()+Number(t.value))}}function Gd(e,r,t){const n=new Date(r.value);return n.setUTCFullYear(Number(t.value)),{type:Er,value:n}}function Yd(e,r,t){const n=Number(t.value);if(n<1||n>12)throw new Error(`Expecting month in [1..12], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMonth(n-1),{type:Er,value:i}}function qd(e,r,t){const n=new Date(r.value),i=Number(t.value);if(i<=0&&i!==-1||i>Rd(n))throw new Error(`Unable to set day ${i} for date ${Ti(r,!1)}.`);return n.setUTCDate(i===-1?0:i),{type:Er,value:n}}function Jd(e,r,t){const n=Number(t.value);if(n<0||n>23)throw new Error(`Expecting hours in [0..23], instead got ${n}.`);const i=new Date(r.value);return i.setUTCHours(n),{type:Er,value:i}}function Kd(e,r,t){const n=Number(t.value);if(n<0||n>59)throw new Error(`Expecting minutes in [0..59], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMinutes(n),{type:Er,value:i}}function Xd(e,r,t){const n=Number(t.value);if(n<0||n>59)throw new Error(`Expecting seconds in [0..59], instead got ${n}.`);const i=new Date(r.value);return i.setUTCSeconds(n),{type:Er,value:i}}function Zd(e,r,t){const n=Number(t.value);if(n<0||n>999)throw new Error(`Expecting millis in [0..999], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMilliseconds(n),{type:Er,value:i}}const Fi=e=>(r,t)=>{let i=new Date(t.value.getTime())[e]();return e==="getUTCMonth"?++i:e==="getUTCDay"&&i===0&&(i=7),{type:me,value:_n(i)}};function of(e){return(r,t,n,i)=>({type:Fe,value:Ld(t.value,n.value,{locale:i==null?void 0:i.value,isUTC:e,weekStartDay:r.weekStartDay})})}const Qd=Fi("getUTCFullYear"),xd=Fi("getUTCMonth"),$d=Fi("getUTCDate"),e_=Fi("getUTCDay"),t_=Fi("getUTCHours"),r_=Fi("getUTCMinutes"),n_=Fi("getUTCSeconds"),i_=Fi("getUTCMilliseconds"),$l=of(!1),ea=of(!0);function o_(){N("parseUnixTime",[me],Bd),N("parseUnixTimeAsLocal",[me],Hd),N("nowLocal",[],Wd),N("addMillis",[Er,me],Ud),N("setYear",[Er,me],Gd),N("setMonth",[Er,me],Yd),N("setDay",[Er,me],qd),N("setHours",[Er,me],Jd),N("setMinutes",[Er,me],Kd),N("setSeconds",[Er,me],Xd),N("setMillis",[Er,me],Zd),N("getYear",[Er],Qd),N("getMonth",[Er],xd),N("getDay",[Er],$d),N("getDayOfWeek",[Er],e_),N("getHours",[Er],t_),N("getMinutes",[Er],r_),N("getSeconds",[Er],n_),N("getMillis",[Er],i_),N("formatDateAsLocal",[Er,Fe],$l),N("formatDateAsUTC",[Er,Fe],ea),N("formatDateAsLocalWithLocale",[Er,Fe,Fe],$l),N("formatDateAsUTCWithLocale",[Er,Fe,Fe],ea)}function s_(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(e,r={}){const t=e;return t.level=r.level||"error",r.additional&&(t.additional=r.additional),t}function l_(e,r){return{type:me,value:_n(r.value.length)}}function a_(e,r,t){return{type:Wr,value:r.value.includes(t.value)?1:0}}function u_(e,r,t,n){if(n.value<t.value)throw new Error("Indexes should be in ascending order.");if(t.value<0||t.value>r.value.length||n.value<0||n.value>r.value.length)throw new Error("Indexes are out of bounds.");return{type:Fe,value:r.value.substring(Number(t.value),Number(n.value))}}function c_(e,r,t,n){let i;return t.value?i=r.value.replace(new RegExp(s_(t.value),"g"),n.value):i=r.value,{type:Fe,value:i}}function f_(e,r,t){return{type:me,value:_n(r.value.indexOf(t.value))}}function d_(e,r,t){return{type:me,value:_n(r.value.lastIndexOf(t.value))}}function __(e,r){return{type:Fe,value:r.value.trim()}}function h_(e,r){return{type:Fe,value:r.value.replace(/^\s+/,"")}}function g_(e,r){return{type:Fe,value:r.value.replace(/\s+$/,"")}}function p_(e,r){return{type:Fe,value:r.value.toUpperCase()}}function m_(e,r){return{type:Fe,value:r.value.toLowerCase()}}function sf(e,r,t,n){if(!n.value.length)return e.warnings.push(Q(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=r.type===Fe?r.value:Ti(r,!1);for(;i.length+o.length<t.value;)i+=n.value;return i.length>0&&i.length+o.length>t.value&&(i=i.substring(0,Number(t.value)-Number(o.length))),i}function ta(e,r,t,n){const i=sf(e,r,t,n);return{type:Fe,value:i+Ti(r,!1)}}function ra(e,r,t,n){const i=sf(e,r,t,n);return{type:Fe,value:Ti(r,!1)+i}}function b_(e,r,t){let n;try{n=new RegExp(t.value)}catch{throw new Error("Invalid regular expression.")}return{type:Wr,value:n.test(r.value)?1:0}}function y_(e,r){return{type:Fe,value:r.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}function w_(){N("len",[Fe],l_),N("contains",[Fe,Fe],a_),N("substring",[Fe,me,me],u_),N("replaceAll",[Fe,Fe,Fe],c_),N("index",[Fe,Fe],f_),N("lastIndex",[Fe,Fe],d_),N("trim",[Fe],__),N("trimLeft",[Fe],h_),N("trimRight",[Fe],g_),N("toUpperCase",[Fe],p_),N("toLowerCase",[Fe],m_),N("padStart",[Fe,me,Fe],ta),N("padStart",[me,me,Fe],ta),N("padEnd",[Fe,me,Fe],ra),N("padEnd",[me,me,Fe],ra),N("testRegex",[Fe,Fe],b_),N("encodeRegex",[Fe],y_)}function v_(e,r,t){if(t.value===Ui)throw new Error("Division by zero is not supported.");let n=r.value/t.value;return n=Ki(e,n),In(e,n),{type:me,value:n}}function k_(e,r,t){if(t.value===0)throw new Error("Division by zero is not supported.");const n=r.value/t.value;return{type:Ze,value:n}}function E_(e,r,t){if(t.value===Ui)throw new Error("Division by zero is not supported.");let n=r.value%t.value;return n=Ki(e,n),In(e,n),{type:me,value:n}}function A_(e,r,t){if(t.value===0)throw new Error("Division by zero is not supported.");const n=r.value%t.value;return{type:Ze,value:n}}function C_(e,...r){let t=r.length?r[0].value:Ui;for(let n=1;n<r.length;++n)t*=r[n].value,t=Ki(e,t),In(e,t);return{type:me,value:t}}function j_(e,...r){let t=r.length?r[0].value:0;for(let n=1;n<r.length;++n)t*=r[n].value;return{type:Ze,value:t}}function S_(e,...r){let t=r.length?r[0].value:Ui;for(let n=1;n<r.length;++n)t-=r[n].value,t=Ki(e,t),In(e,t);return{type:me,value:t}}function V_(e,...r){let t=r.length?r[0].value:0;for(let n=1;n<r.length;++n)t-=r[n].value;return{type:Ze,value:t}}function I_(e,...r){let t=Ui;for(let n=0;n<r.length;++n)t+=r[n].value,t=Ki(e,t),In(e,t);return{type:me,value:t}}function D_(e,...r){let t=0;for(let n=0;n<r.length;++n)t+=r[n].value;return{type:Ze,value:t}}function T_(e,r){const t=xc(r.value);return In(e,t),{type:r.type,value:t}}function F_(e,r){const t=Math.abs(r.value);return{type:Ze,value:t}}function M_(e,...r){if(!r.length)throw new Error("Function requires non empty argument list.");let t=r[0].value;for(let n=1;n<r.length;++n)r[n].value>t&&(t=r[n].value);return{type:me,value:t}}function P_(e,...r){if(!r.length)throw new Error("Function requires non empty argument list.");return{type:Ze,value:Math.max(...r.map(t=>t.value))}}function N_(e,...r){if(!r.length)throw new Error("Function requires non empty argument list.");let t=r[0].value;for(let n=1;n<r.length;++n)r[n].value<t&&(t=r[n].value);return{type:me,value:t}}function z_(e,...r){if(!r.length)throw new Error("Function requires non empty argument list.");return{type:Ze,value:Math.min(...r.map(t=>t.value))}}function O_(){return{type:Ze,value:md}}function L_(){return{type:Ze,value:bd}}function R_(e){return In(e,Eo),{type:me,value:Eo}}function B_(e){return In(e,Ao),{type:me,value:Ao}}function H_(e,r){const t=Math.sign(r.value);return{type:Ze,value:t*Math.round(Math.abs(r.value))}}function W_(e,r){return{type:Ze,value:Math.floor(r.value)}}function U_(e,r){return{type:Ze,value:Math.ceil(r.value)}}function G_(e,r){return{type:me,value:$c(r.value)}}function Y_(e,r){return{type:Ze,value:Math.sign(r.value)}}function q_(e,r,t){let n;if(t.value===Ui)n=r.value;else if(r.value===Ui)n=_n(0);else{const i=$c(t.value);n=xc(r.value)*i}return In(e,n),{type:me,value:n}}function J_(e,r,t){let n=Math.sign(t.value);n===0&&(n=Object.is(n,0)?1:-1);const i=Math.abs(r.value)*n;return{type:Ze,value:i}}function K_(){N("div",[me,me],v_),N("div",[Ze,Ze],k_),N("mod",[me,me],E_),N("mod",[Ze,Ze],A_),N("mul",[{type:me,isVararg:!0}],C_),N("mul",[{type:Ze,isVararg:!0}],j_),N("sub",[{type:me,isVararg:!0}],S_),N("sub",[{type:Ze,isVararg:!0}],V_),N("sum",[{type:me,isVararg:!0}],I_),N("sum",[{type:Ze,isVararg:!0}],D_),N("abs",[me],T_),N("abs",[Ze],F_),N("max",[{type:me,isVararg:!0}],M_),N("max",[{type:Ze,isVararg:!0}],P_),N("min",[{type:me,isVararg:!0}],N_),N("min",[{type:Ze,isVararg:!0}],z_),N("maxNumber",[],O_),N("minNumber",[],L_),N("maxInteger",[],R_),N("minInteger",[],B_),N("round",[Ze],H_),N("floor",[Ze],W_),N("ceil",[Ze],U_),N("signum",[me],G_),N("signum",[Ze],Y_),N("copySign",[me,me],q_),N("copySign",[Ze,Ze],J_)}function vs(e){return(r,t)=>{const n=ws(t.value);return{type:Ze,value:n[e]/255}}}function ks(e){return(r,t,n)=>{const i=ws(t.value);return i[e]=n.value*255,{type:ln,value:Xi(i)}}}const na=vs("a"),ia=vs("r"),oa=vs("g"),sa=vs("b"),la=ks("a"),aa=ks("r"),ua=ks("g"),ca=ks("b");function X_(e,r,t,n){const i={a:255,r:r.value*255,g:t.value*255,b:n.value*255};return{type:ln,value:Xi(i)}}function Z_(e,r,t,n,i){const o={a:r.value*255,r:t.value*255,g:n.value*255,b:i.value*255};return{type:ln,value:Xi(o)}}function Q_(){N("getColorAlpha",[Fe],na),N("getColorAlpha",[ln],na),N("getColorRed",[Fe],ia),N("getColorRed",[ln],ia),N("getColorGreen",[Fe],oa),N("getColorGreen",[ln],oa),N("getColorBlue",[Fe],sa),N("getColorBlue",[ln],sa),N("setColorAlpha",[Fe,Ze],la),N("setColorAlpha",[ln,Ze],la),N("setColorRed",[Fe,Ze],aa),N("setColorRed",[ln,Ze],aa),N("setColorGreen",[Fe,Ze],ua),N("setColorGreen",[ln,Ze],ua),N("setColorBlue",[Fe,Ze],ca),N("setColorBlue",[ln,Ze],ca),N("rgb",[Ze,Ze,Ze],X_),N("argb",[Ze,Ze,Ze,Ze],Z_)}function Mi(e,r,t,n){if(r.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=_n(r.value)/_n(t);return In(e,i),n&&(i=_n(i)%_n(n)),{type:me,value:i}}const lf=1e3,x_=60,af=1e3*60,$_=60,uf=1e3*60*60,eh=24,th=1e3*60*60*24,rh=1e3*60*60*24*7;function nh(e,r){return Mi(e,r,lf,x_)}function ih(e,r){return Mi(e,r,lf)}function oh(e,r){return Mi(e,r,af,$_)}function sh(e,r){return Mi(e,r,af)}function lh(e,r){return Mi(e,r,uf,eh)}function ah(e,r){return Mi(e,r,uf)}function uh(e,r){return Mi(e,r,th)}function ch(e,r){return Mi(e,r,rh)}function fh(){N("getIntervalSeconds",[me],nh),N("getIntervalTotalSeconds",[me],ih),N("getIntervalMinutes",[me],oh),N("getIntervalTotalMinutes",[me],sh),N("getIntervalHours",[me],lh),N("getIntervalTotalHours",[me],ah),N("getIntervalTotalDays",[me],uh),N("getIntervalTotalWeeks",[me],ch)}function dh(e,r){let t=e;for(let n=0;n<r.length;++n){if(!t)throw new Error(`Missing property "${r[n]}" in the dict.`);const i=t[r[n]];if(i===void 0)throw new Error(`Missing property "${r[n]}" in the dict.`);t=i}return t}function Pi(e){return(r,t,...n)=>{if(n.length===0)throw new Error("Non empty argument list is required.");const i=dh(t.value,n.map(o=>o.value));return rf(r,i,e)}}function co(e,r){return(t,n,i,...o)=>{try{return e(t,i,...o)}catch{let a=n.value;return r==="color"?a=uo(a):r==="url"&&di(a),{type:r,value:a}}}}const Wo=Pi(Fe),Uo=Pi(Ze),Go=Pi(me),Yo=Pi(Wr),qo=Pi(ln),Jo=Pi(Wn),rl=Pi(or),nl=Pi(ir),fa=co(Wo,Fe),da=co(Uo,Ze),_a=co(Go,me),ha=co(Yo,Wr),Fo=co(qo,ln),Mo=co(Jo,Wn);function _h(e,r,...t){try{return rl(e,r,...t)}catch{return{type:or,value:[]}}}function hh(e,r,...t){try{return nl(e,r,...t)}catch{return{type:ir,value:{}}}}function gh(e,r,t){return{type:Wr,value:t.value in r.value?1:0}}function ph(e,r){return{type:Wr,value:Object.keys(r.value).length?0:1}}function mh(){const e={type:Fe,isVararg:!0};N("getDictString",[ir,e],Wo),N("getStringFromDict",[ir,e],Wo),N("getDictNumber",[ir,e],Uo),N("getNumberFromDict",[ir,e],Uo),N("getDictInteger",[ir,e],Go),N("getIntegerFromDict",[ir,e],Go),N("getDictBoolean",[ir,e],Yo),N("getBooleanFromDict",[ir,e],Yo),N("getDictColor",[ir,e],qo),N("getColorFromDict",[ir,e],qo),N("getDictUrl",[ir,e],Jo),N("getUrlFromDict",[ir,e],Jo),N("getDictOptString",[Fe,ir,e],fa),N("getOptStringFromDict",[Fe,ir,e],fa),N("getDictOptNumber",[Ze,ir,e],da),N("getOptNumberFromDict",[Ze,ir,e],da),N("getDictOptInteger",[me,ir,e],_a),N("getOptIntegerFromDict",[me,ir,e],_a),N("getDictOptBoolean",[Wr,ir,e],ha),N("getOptBooleanFromDict",[Wr,ir,e],ha),N("getDictOptColor",[ln,ir,e],Fo),N("getOptColorFromDict",[ln,ir,e],Fo),N("getDictOptColor",[Fe,ir,e],Fo),N("getOptColorFromDict",[Fe,ir,e],Fo),N("getDictOptUrl",[Fe,ir,e],Mo),N("getOptUrlFromDict",[Fe,ir,e],Mo),N("getDictOptUrl",[Wn,ir,e],Mo),N("getOptUrlFromDict",[Wn,ir,e],Mo),N("getDictFromDict",[ir,e],nl),N("getArrayFromDict",[ir,e],rl),N("getOptArrayFromDict",[ir,e],_h),N("getOptDictFromDict",[ir,e],hh),Xr("getString",[ir,e],Wo),Xr("getBoolean",[ir,e],Yo),Xr("getInteger",[ir,e],Go),Xr("getNumber",[ir,e],Uo),Xr("getUrl",[ir,e],Jo),Xr("getColor",[ir,e],qo),Xr("getArray",[ir,e],rl),Xr("getDict",[ir,e],nl),Xr("containsKey",[ir,Fe],gh),Xr("isEmpty",[ir],ph)}function Ni(e,r){return(t,n,i)=>{if(i.value<0||i.value>=n.value.length)throw new Error(`Requested index (${i.value}) out of bounds array size (${n.value.length}).`);let o=n.value[Number(i.value)],s=typeof o;if(e==="array"&&!Array.isArray(o)||e!=="array"&&s!==e||s==="object"&&o===null)throw s==="object"&&(Array.isArray(o)?s="Array":o===null?s="Null":s="Dict"),new Error(`Incorrect value type: expected ${Ln(r)}, got ${Ln(s)}.`);if(e==="number"&&r==="integer"){In(t,o);try{o=_n(o)}catch{throw new Error("Cannot convert value to integer.")}}return e==="string"&&r==="color"&&(o=uo(o)),e==="string"&&r==="url"&&di(o),{type:r,value:o}}}function fo(e,r){return(t,n,i,o)=>{try{return e(t,n,i)}catch{let a=o.value;return r==="color"?a=uo(a):r==="url"&&di(a),{type:r,value:a}}}}const Ko=Ni("string","string"),Xo=Ni("number","number"),Zo=Ni("number","integer"),Qo=Ni("boolean","boolean"),xo=Ni("string","color"),$o=Ni("string","url"),il=Ni("array","array"),ol=Ni("object","dict"),ga=fo(Ko,"string"),pa=fo(Xo,"number"),ma=fo(Zo,"integer"),ba=fo(Qo,"boolean"),Po=fo(xo,"color"),No=fo($o,"url");function bh(e,r,t){try{return il(e,r,t)}catch{return{type:or,value:[]}}}function yh(e,r,t){try{return ol(e,r,t)}catch{return{type:ir,value:{}}}}function wh(e,r){return{type:me,value:_n(r.value.length)}}function vh(e,r){return{type:Wr,value:r.value.length===0?1:0}}function kh(){N("getArrayString",[or,me],Ko),N("getStringFromArray",[or,me],Ko),N("getArrayNumber",[or,me],Xo),N("getNumberFromArray",[or,me],Xo),N("getArrayInteger",[or,me],Zo),N("getIntegerFromArray",[or,me],Zo),N("getArrayBoolean",[or,me],Qo),N("getBooleanFromArray",[or,me],Qo),N("getArrayColor",[or,me],xo),N("getColorFromArray",[or,me],xo),N("getArrayUrl",[or,me],$o),N("getUrlFromArray",[or,me],$o),N("getArrayFromArray",[or,me],il),N("getDictFromArray",[or,me],ol),N("getArrayOptString",[or,me,Fe],ga),N("getOptStringFromArray",[or,me,Fe],ga),N("getArrayOptNumber",[or,me,Ze],pa),N("getOptNumberFromArray",[or,me,Ze],pa),N("getArrayOptInteger",[or,me,me],ma),N("getOptIntegerFromArray",[or,me,me],ma),N("getArrayOptBoolean",[or,me,Wr],ba),N("getOptBooleanFromArray",[or,me,Wr],ba),N("getArrayOptColor",[or,me,ln],Po),N("getOptColorFromArray",[or,me,ln],Po),N("getArrayOptColor",[or,me,Fe],Po),N("getOptColorFromArray",[or,me,Fe],Po),N("getArrayOptUrl",[or,me,Wn],No),N("getOptUrlFromArray",[or,me,Wn],No),N("getArrayOptUrl",[or,me,Fe],No),N("getOptUrlFromArray",[or,me,Fe],No),N("getOptArrayFromArray",[or,me],bh),N("getOptDictFromArray",[or,me],yh),N("len",[or],wh),Xr("getString",[or,me],Ko),Xr("getInteger",[or,me],Zo),Xr("getNumber",[or,me