@lookit/templates 2.1.0 → 3.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.
- package/dist/index.browser.js +16 -3
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.min.js +41 -33
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.cjs +15 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/establishingConnectionTemplate.ts +16 -0
- package/src/index.spec.ts +16 -0
- package/src/index.ts +4 -1
- package/src/utils.ts +7 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ap=Object.defineProperty,rp=Object.defineProperties;var op=Object.getOwnPropertyDescriptors;var mo=Object.getOwnPropertySymbols;var ip=Object.prototype.hasOwnProperty,sp=Object.prototype.propertyIsEnumerable;var fo=(Q,H,G)=>H in Q?ap(Q,H,{enumerable:!0,configurable:!0,writable:!0,value:G}):Q[H]=G,S=(Q,H)=>{for(var G in H||(H={}))ip.call(H,G)&&fo(Q,G,H[G]);if(mo)for(var G of mo(H))sp.call(H,G)&&fo(Q,G,H[G]);return Q},K=(Q,H)=>rp(Q,op(H));var chsTemplates=function(){"use strict";function Q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var H={exports:{}},G={exports:{}},Y={},q={};q.__esModule=!0,q.extend=At,q.indexOf=yo,q.escapeExpression=zo,q.isEmpty=wo,q.createFrame=xo,q.blockParams=_o,q.appendContextPath=So;var go={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},vo=/[&<>"'`=]/g,ko=/[&<>"'`=]/;function bo(e){return go[e]}function At(e){for(var n=1;n<arguments.length;n++)for(var t in arguments[n])Object.prototype.hasOwnProperty.call(arguments[n],t)&&(e[t]=arguments[n][t]);return e}var fn=Object.prototype.toString;q.toString=fn;var gn=function(n){return typeof n=="function"};gn(/x/)&&(q.isFunction=gn=function(e){return typeof e=="function"&&fn.call(e)==="[object Function]"}),q.isFunction=gn;var Pt=Array.isArray||function(e){return e&&typeof e=="object"?fn.call(e)==="[object Array]":!1};q.isArray=Pt;function yo(e,n){for(var t=0,a=e.length;t<a;t++)if(e[t]===n)return t;return-1}function zo(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return ko.test(e)?e.replace(vo,bo):e}function wo(e){return!e&&e!==0?!0:!!(Pt(e)&&e.length===0)}function xo(e){var n=At({},e);return n._parent=e,n}function _o(e,n){return e.path=n,e}function So(e,n){return(e?e+".":"")+n}var vn={exports:{}};(function(e,n){n.__esModule=!0;var t=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function a(r,o){var i=o&&o.loc,s=void 0,u=void 0,c=void 0,d=void 0;i&&(s=i.start.line,u=i.end.line,c=i.start.column,d=i.end.column,r+=" - "+s+":"+c);for(var m=Error.prototype.constructor.call(this,r),l=0;l<t.length;l++)this[t[l]]=m[t[l]];Error.captureStackTrace&&Error.captureStackTrace(this,a);try{i&&(this.lineNumber=s,this.endLineNumber=u,Object.defineProperty?(Object.defineProperty(this,"column",{value:c,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:d,enumerable:!0})):(this.column=c,this.endColumn=d))}catch(h){}}a.prototype=new Error,n.default=a,e.exports=n.default})(vn,vn.exports);var J=vn.exports,_e={},kn={exports:{}};(function(e,n){n.__esModule=!0;var t=q;n.default=function(a){a.registerHelper("blockHelperMissing",function(r,o){var i=o.inverse,s=o.fn;if(r===!0)return s(this);if(r===!1||r==null)return i(this);if(t.isArray(r))return r.length>0?(o.ids&&(o.ids=[o.name]),a.helpers.each(r,o)):i(this);if(o.data&&o.ids){var u=t.createFrame(o.data);u.contextPath=t.appendContextPath(o.data.contextPath,o.name),o={data:u}}return s(r,o)})},e.exports=n.default})(kn,kn.exports);var Lo=kn.exports,bn={exports:{}};(function(e,n){n.__esModule=!0;function t(i){return i&&i.__esModule?i:{default:i}}var a=q,r=J,o=t(r);n.default=function(i){i.registerHelper("each",function(s,u){if(!u)throw new o.default("Must pass iterator to #each");var c=u.fn,d=u.inverse,m=0,l="",h=void 0,p=void 0;u.data&&u.ids&&(p=a.appendContextPath(u.data.contextPath,u.ids[0])+"."),a.isFunction(s)&&(s=s.call(this)),u.data&&(h=a.createFrame(u.data));function f(k,b,x){h&&(h.key=k,h.index=b,h.first=b===0,h.last=!!x,p&&(h.contextPath=p+k)),l=l+c(s[k],{data:h,blockParams:a.blockParams([s[k],k],[p+k,null])})}if(s&&typeof s=="object")if(a.isArray(s))for(var g=s.length;m<g;m++)m in s&&f(m,m,m===s.length-1);else if(typeof Symbol=="function"&&s[Symbol.iterator]){for(var y=[],v=s[Symbol.iterator](),z=v.next();!z.done;z=v.next())y.push(z.value);s=y;for(var g=s.length;m<g;m++)f(m,m,m===s.length-1)}else(function(){var k=void 0;Object.keys(s).forEach(function(b){k!==void 0&&f(k,m-1),k=b,m++}),k!==void 0&&f(k,m-1,!0)})();return m===0&&(l=d(this)),l})},e.exports=n.default})(bn,bn.exports);var Eo=bn.exports,yn={exports:{}};(function(e,n){n.__esModule=!0;function t(o){return o&&o.__esModule?o:{default:o}}var a=J,r=t(a);n.default=function(o){o.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=n.default})(yn,yn.exports);var Co=yn.exports,zn={exports:{}};(function(e,n){n.__esModule=!0;function t(i){return i&&i.__esModule?i:{default:i}}var a=q,r=J,o=t(r);n.default=function(i){i.registerHelper("if",function(s,u){if(arguments.length!=2)throw new o.default("#if requires exactly one argument");return a.isFunction(s)&&(s=s.call(this)),!u.hash.includeZero&&!s||a.isEmpty(s)?u.inverse(this):u.fn(this)}),i.registerHelper("unless",function(s,u){if(arguments.length!=2)throw new o.default("#unless requires exactly one argument");return i.helpers.if.call(this,s,{fn:u.inverse,inverse:u.fn,hash:u.hash})})},e.exports=n.default})(zn,zn.exports);var Ao=zn.exports,wn={exports:{}};(function(e,n){n.__esModule=!0,n.default=function(t){t.registerHelper("log",function(){for(var a=[void 0],r=arguments[arguments.length-1],o=0;o<arguments.length-1;o++)a.push(arguments[o]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),a[0]=i,t.log.apply(t,a)})},e.exports=n.default})(wn,wn.exports);var Po=wn.exports,xn={exports:{}};(function(e,n){n.__esModule=!0,n.default=function(t){t.registerHelper("lookup",function(a,r,o){return a&&o.lookupProperty(a,r)})},e.exports=n.default})(xn,xn.exports);var jo=xn.exports,_n={exports:{}};(function(e,n){n.__esModule=!0;function t(i){return i&&i.__esModule?i:{default:i}}var a=q,r=J,o=t(r);n.default=function(i){i.registerHelper("with",function(s,u){if(arguments.length!=2)throw new o.default("#with requires exactly one argument");a.isFunction(s)&&(s=s.call(this));var c=u.fn;if(a.isEmpty(s))return u.inverse(this);var d=u.data;return u.data&&u.ids&&(d=a.createFrame(u.data),d.contextPath=a.appendContextPath(u.data.contextPath,u.ids[0])),c(s,{data:d,blockParams:a.blockParams([s],[d&&d.contextPath])})})},e.exports=n.default})(_n,_n.exports);var qo=_n.exports;_e.__esModule=!0,_e.registerDefaultHelpers=Ko,_e.moveHelperToHooks=Yo;function le(e){return e&&e.__esModule?e:{default:e}}var Io=Lo,No=le(Io),Oo=Eo,Ro=le(Oo),Do=Co,To=le(Do),Mo=Ao,Ho=le(Mo),Bo=Po,Fo=le(Bo),Uo=jo,Go=le(Uo),Vo=qo,Wo=le(Vo);function Ko(e){No.default(e),Ro.default(e),To.default(e),Ho.default(e),Fo.default(e),Go.default(e),Wo.default(e)}function Yo(e,n,t){e.helpers[n]&&(e.hooks[n]=e.helpers[n],t||delete e.helpers[n])}var Sn={},Ln={exports:{}};(function(e,n){n.__esModule=!0;var t=q;n.default=function(a){a.registerDecorator("inline",function(r,o,i,s){var u=r;return o.partials||(o.partials={},u=function(c,d){var m=i.partials;i.partials=t.extend({},m,o.partials);var l=r(c,d);return i.partials=m,l}),o.partials[s.args[0]]=s.fn,u})},e.exports=n.default})(Ln,Ln.exports);var Zo=Ln.exports;Sn.__esModule=!0,Sn.registerDefaultDecorators=$o;function Qo(e){return e&&e.__esModule?e:{default:e}}var Jo=Zo,Xo=Qo(Jo);function $o(e){Xo.default(e)}var En={exports:{}};(function(e,n){n.__esModule=!0;var t=q,a={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(o){if(typeof o=="string"){var i=t.indexOf(a.methodMap,o.toLowerCase());i>=0?o=i:o=parseInt(o,10)}return o},log:function(o){if(o=a.lookupLevel(o),typeof console!="undefined"&&a.lookupLevel(a.level)<=o){var i=a.methodMap[o];console[i]||(i="log");for(var s=arguments.length,u=Array(s>1?s-1:0),c=1;c<s;c++)u[c-1]=arguments[c];console[i].apply(console,u)}}};n.default=a,e.exports=n.default})(En,En.exports);var jt=En.exports,me={},Cn={};Cn.__esModule=!0,Cn.createNewLookupObject=ni;var ei=q;function ni(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];return ei.extend.apply(void 0,[Object.create(null)].concat(n))}me.__esModule=!0,me.createProtoAccessControl=oi,me.resultIsAllowed=ii,me.resetLoggedProperties=ui;function ti(e){return e&&e.__esModule?e:{default:e}}var qt=Cn,ai=jt,ri=ti(ai),Ve=Object.create(null);function oi(e){var n=Object.create(null);n.constructor=!1,n.__defineGetter__=!1,n.__defineSetter__=!1,n.__lookupGetter__=!1;var t=Object.create(null);return t.__proto__=!1,{properties:{whitelist:qt.createNewLookupObject(t,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:qt.createNewLookupObject(n,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function ii(e,n,t){return It(typeof e=="function"?n.methods:n.properties,t)}function It(e,n){return e.whitelist[n]!==void 0?e.whitelist[n]===!0:e.defaultValue!==void 0?e.defaultValue:(si(n),!1)}function si(e){Ve[e]!==!0&&(Ve[e]=!0,ri.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
2
2
|
You can add a runtime option to disable the check or this warning:
|
|
3
|
-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function
|
|
3
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function ui(){Object.keys(Ve).forEach(function(e){delete Ve[e]})}Y.__esModule=!0,Y.HandlebarsEnvironment=jn;function Nt(e){return e&&e.__esModule?e:{default:e}}var de=q,li=J,An=Nt(li),di=_e,ci=Sn,pi=jt,We=Nt(pi),hi=me,mi="4.7.8";Y.VERSION=mi;var fi=8;Y.COMPILER_REVISION=fi;var gi=7;Y.LAST_COMPATIBLE_COMPILER_REVISION=gi;var vi={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Y.REVISION_CHANGES=vi;var Pn="[object Object]";function jn(e,n,t){this.helpers=e||{},this.partials=n||{},this.decorators=t||{},di.registerDefaultHelpers(this),ci.registerDefaultDecorators(this)}jn.prototype={constructor:jn,logger:We.default,log:We.default.log,registerHelper:function(n,t){if(de.toString.call(n)===Pn){if(t)throw new An.default("Arg not supported with multiple helpers");de.extend(this.helpers,n)}else this.helpers[n]=t},unregisterHelper:function(n){delete this.helpers[n]},registerPartial:function(n,t){if(de.toString.call(n)===Pn)de.extend(this.partials,n);else{if(typeof t=="undefined")throw new An.default('Attempting to register a partial called "'+n+'" as undefined');this.partials[n]=t}},unregisterPartial:function(n){delete this.partials[n]},registerDecorator:function(n,t){if(de.toString.call(n)===Pn){if(t)throw new An.default("Arg not supported with multiple decorators");de.extend(this.decorators,n)}else this.decorators[n]=t},unregisterDecorator:function(n){delete this.decorators[n]},resetLoggedPropertyAccesses:function(){hi.resetLoggedProperties()}};var ki=We.default.log;Y.log=ki,Y.createFrame=de.createFrame,Y.logger=We.default;var qn={exports:{}};(function(e,n){n.__esModule=!0;function t(a){this.string=a}t.prototype.toString=t.prototype.toHTML=function(){return""+this.string},n.default=t,e.exports=n.default})(qn,qn.exports);var bi=qn.exports,oe={},In={};In.__esModule=!0,In.wrapHelper=yi;function yi(e,n){if(typeof e!="function")return e;var t=function(){var r=arguments[arguments.length-1];return arguments[arguments.length-1]=n(r),e.apply(this,arguments)};return t}oe.__esModule=!0,oe.checkRevision=Li,oe.template=Ei,oe.wrapProgram=Ke,oe.resolvePartial=Ci,oe.invokePartial=Ai,oe.noop=Dt;function zi(e){return e&&e.__esModule?e:{default:e}}function wi(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}var xi=q,ne=wi(xi),_i=J,te=zi(_i),ae=Y,Ot=_e,Si=In,Rt=me;function Li(e){var n=e&&e[0]||1,t=ae.COMPILER_REVISION;if(!(n>=ae.LAST_COMPATIBLE_COMPILER_REVISION&&n<=ae.COMPILER_REVISION))if(n<ae.LAST_COMPATIBLE_COMPILER_REVISION){var a=ae.REVISION_CHANGES[t],r=ae.REVISION_CHANGES[n];throw new te.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+a+") or downgrade your runtime to an older version ("+r+").")}else throw new te.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}function Ei(e,n){if(!n)throw new te.default("No environment passed to template");if(!e||!e.main)throw new te.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,n.VM.checkRevision(e.compiler);var t=e.compiler&&e.compiler[0]===7;function a(i,s,u){u.hash&&(s=ne.extend({},s,u.hash),u.ids&&(u.ids[0]=!0)),i=n.VM.resolvePartial.call(this,i,s,u);var c=ne.extend({},u,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),d=n.VM.invokePartial.call(this,i,s,c);if(d==null&&n.compile&&(u.partials[u.name]=n.compile(i,e.compilerOptions,n),d=u.partials[u.name](s,c)),d!=null){if(u.indent){for(var m=d.split(`
|
|
4
4
|
`),l=0,h=m.length;l<h&&!(!m[l]&&l+1===h);l++)m[l]=u.indent+m[l];d=m.join(`
|
|
5
|
-
`)}return d}else throw new ne.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}var r={strict:function(s,u,c){if(!s||!(u in s))throw new ne.default('"'+u+'" not defined in '+s,{loc:c});return r.lookupProperty(s,u)},lookupProperty:function(s,u){var c=s[u];if(c==null||Object.prototype.hasOwnProperty.call(s,u)||Rt.resultIsAllowed(c,r.protoAccessControl,u))return c},lookup:function(s,u){for(var c=s.length,d=0;d<c;d++){var m=s[d]&&r.lookupProperty(s[d],u);if(m!=null)return s[d][u]}},lambda:function(s,u){return typeof s=="function"?s.call(u):s},escapeExpression:ee.escapeExpression,invokePartial:a,fn:function(s){var u=e[s];return u.decorator=e[s+"_d"],u},programs:[],program:function(s,u,c,d,m){var l=this.programs[s],h=this.fn(s);return u||m||d||c?l=We(this,s,h,u,c,d,m):l||(l=this.programs[s]=We(this,s,h)),l},data:function(s,u){for(;s&&u--;)s=s._parent;return s},mergeIfNeeded:function(s,u){var c=s||u;return s&&u&&s!==u&&(c=ee.extend({},u,s)),c},nullContext:Object.seal({}),noop:n.VM.noop,compilerInfo:e.compiler};function o(i){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=s.data;o._setup(s),!s.partial&&e.useData&&(u=Ai(i,u));var c=void 0,d=e.useBlockParams?[]:void 0;e.useDepths&&(s.depths?c=i!=s.depths[0]?[i].concat(s.depths):s.depths:c=[i]);function m(l){return""+e.main(r,l,r.helpers,r.partials,u,d,c)}return m=Tt(e.main,m,r,s.depths||[],u,d),m(i,s)}return o.isTop=!0,o._setup=function(i){if(i.partial)r.protoAccessControl=i.protoAccessControl,r.helpers=i.helpers,r.partials=i.partials,r.decorators=i.decorators,r.hooks=i.hooks;else{var s=ee.extend({},n.helpers,i.helpers);Pi(s,r),r.helpers=s,e.usePartial&&(r.partials=r.mergeIfNeeded(i.partials,n.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=ee.extend({},n.decorators,i.decorators)),r.hooks={},r.protoAccessControl=Rt.createProtoAccessControl(i);var u=i.allowCallsToHelperMissing||t;Ot.moveHelperToHooks(r,"helperMissing",u),Ot.moveHelperToHooks(r,"blockHelperMissing",u)}},o._child=function(i,s,u,c){if(e.useBlockParams&&!u)throw new ne.default("must pass block params");if(e.useDepths&&!c)throw new ne.default("must pass parent depths");return We(r,i,e[i],s,0,u,c)},o}function We(e,n,t,a,r,o,i){function s(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=i;return i&&u!=i[0]&&!(u===e.nullContext&&i[0]===null)&&(d=[u].concat(i)),t(e,u,e.helpers,e.partials,c.data||a,o&&[c.blockParams].concat(o),d)}return s=Tt(t,s,e,i,a,o),s.program=n,s.depth=i?i.length:0,s.blockParams=r||0,s}function Ei(e,n,t){return e?!e.call&&!t.name&&(t.name=e,e=t.partials[e]):t.name==="@partial-block"?e=t.data["partial-block"]:e=t.partials[t.name],e}function Ci(e,n,t){var a=t.data&&t.data["partial-block"];t.partial=!0,t.ids&&(t.data.contextPath=t.ids[0]||t.data.contextPath);var r=void 0;if(t.fn&&t.fn!==Dt&&function(){t.data=te.createFrame(t.data);var o=t.fn;r=t.data["partial-block"]=function(s){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=te.createFrame(u.data),u.data["partial-block"]=a,o(s,u)},o.partials&&(t.partials=ee.extend({},t.partials,o.partials))}(),e===void 0&&r&&(e=r),e===void 0)throw new ne.default("The partial "+t.name+" could not be found");if(e instanceof Function)return e(n,t)}function Dt(){return""}function Ai(e,n){return(!n||!("root"in n))&&(n=n?te.createFrame(n):{},n.root=e),n}function Tt(e,n,t,a,r,o){if(e.decorator){var i={};n=e.decorator(n,i,t,a&&a[0],r,o,a),ee.extend(n,i)}return n}function Pi(e,n){Object.keys(e).forEach(function(t){var a=e[t];e[t]=ji(a,n)})}function ji(e,n){var t=n.lookupProperty;return _i.wrapHelper(e,function(a){return ee.extend({lookupProperty:t},a)})}var Nn={exports:{}};(function(e,n){n.__esModule=!0,n.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var a=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=a),t}},e.exports=n.default})(Nn,Nn.exports);var Mt=Nn.exports;(function(e,n){n.__esModule=!0;function t(v){return v&&v.__esModule?v:{default:v}}function a(v){if(v&&v.__esModule)return v;var z={};if(v!=null)for(var k in v)Object.prototype.hasOwnProperty.call(v,k)&&(z[k]=v[k]);return z.default=v,z}var r=Y,o=a(r),i=ki,s=t(i),u=J,c=t(u),d=q,m=a(d),l=re,h=a(l),p=Mt,f=t(p);function g(){var v=new o.HandlebarsEnvironment;return m.extend(v,o),v.SafeString=s.default,v.Exception=c.default,v.Utils=m,v.escapeExpression=m.escapeExpression,v.VM=h,v.template=function(z){return h.template(z,v)},v}var y=g();y.create=g,f.default(y),y.default=y,n.default=y,e.exports=n.default})(G,G.exports);var qi=G.exports,On={exports:{}};(function(e,n){n.__esModule=!0;var t={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!t.helpers.scopedId(r)&&!r.depth}}};n.default=t,e.exports=n.default})(On,On.exports);var Bt=On.exports,Se={},Rn={exports:{}};(function(e,n){n.__esModule=!0;var t=function(){var a={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(s,u,c,d,m,l,h){var p=l.length-1;switch(m){case 1:return l[p-1];case 2:this.$=d.prepareProgram(l[p]);break;case 3:this.$=l[p];break;case 4:this.$=l[p];break;case 5:this.$=l[p];break;case 6:this.$=l[p];break;case 7:this.$=l[p];break;case 8:this.$=l[p];break;case 9:this.$={type:"CommentStatement",value:d.stripComment(l[p]),strip:d.stripFlags(l[p],l[p]),loc:d.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[p],value:l[p],loc:d.locInfo(this._$)};break;case 11:this.$=d.prepareRawBlock(l[p-2],l[p-1],l[p],this._$);break;case 12:this.$={path:l[p-3],params:l[p-2],hash:l[p-1]};break;case 13:this.$=d.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!1,this._$);break;case 14:this.$=d.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!0,this._$);break;case 15:this.$={open:l[p-5],path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:d.stripFlags(l[p-5],l[p])};break;case 16:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:d.stripFlags(l[p-5],l[p])};break;case 17:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:d.stripFlags(l[p-5],l[p])};break;case 18:this.$={strip:d.stripFlags(l[p-1],l[p-1]),program:l[p]};break;case 19:var f=d.prepareBlock(l[p-2],l[p-1],l[p],l[p],!1,this._$),g=d.prepareProgram([f],l[p-1].loc);g.chained=!0,this.$={strip:l[p-2].strip,program:g,chain:!0};break;case 20:this.$=l[p];break;case 21:this.$={path:l[p-1],strip:d.stripFlags(l[p-2],l[p])};break;case 22:this.$=d.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],d.stripFlags(l[p-4],l[p]),this._$);break;case 23:this.$=d.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],d.stripFlags(l[p-4],l[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[p-3],params:l[p-2],hash:l[p-1],indent:"",strip:d.stripFlags(l[p-4],l[p]),loc:d.locInfo(this._$)};break;case 25:this.$=d.preparePartialBlock(l[p-2],l[p-1],l[p],this._$);break;case 26:this.$={path:l[p-3],params:l[p-2],hash:l[p-1],strip:d.stripFlags(l[p-4],l[p])};break;case 27:this.$=l[p];break;case 28:this.$=l[p];break;case 29:this.$={type:"SubExpression",path:l[p-3],params:l[p-2],hash:l[p-1],loc:d.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[p],loc:d.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:d.id(l[p-2]),value:l[p],loc:d.locInfo(this._$)};break;case 32:this.$=d.id(l[p-1]);break;case 33:this.$=l[p];break;case 34:this.$=l[p];break;case 35:this.$={type:"StringLiteral",value:l[p],original:l[p],loc:d.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[p]),original:Number(l[p]),loc:d.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[p]==="true",original:l[p]==="true",loc:d.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:d.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:d.locInfo(this._$)};break;case 40:this.$=l[p];break;case 41:this.$=l[p];break;case 42:this.$=d.preparePath(!0,l[p],this._$);break;case 43:this.$=d.preparePath(!1,l[p],this._$);break;case 44:l[p-2].push({part:d.id(l[p]),original:l[p],separator:l[p-1]}),this.$=l[p-2];break;case 45:this.$=[{part:d.id(l[p]),original:l[p]}];break;case 46:this.$=[];break;case 47:l[p-1].push(l[p]);break;case 48:this.$=[];break;case 49:l[p-1].push(l[p]);break;case 50:this.$=[];break;case 51:l[p-1].push(l[p]);break;case 58:this.$=[];break;case 59:l[p-1].push(l[p]);break;case 64:this.$=[];break;case 65:l[p-1].push(l[p]);break;case 70:this.$=[];break;case 71:l[p-1].push(l[p]);break;case 78:this.$=[];break;case 79:l[p-1].push(l[p]);break;case 82:this.$=[];break;case 83:l[p-1].push(l[p]);break;case 86:this.$=[];break;case 87:l[p-1].push(l[p]);break;case 90:this.$=[];break;case 91:l[p-1].push(l[p]);break;case 94:this.$=[];break;case 95:l[p-1].push(l[p]);break;case 98:this.$=[l[p]];break;case 99:l[p-1].push(l[p]);break;case 100:this.$=[l[p]];break;case 101:l[p-1].push(l[p]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(s,u){throw new Error(s)},parse:function(s){var u=this,c=[0],d=[null],m=[],l=this.table,h="",p=0,f=0;this.lexer.setInput(s),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={});var g=this.lexer.yylloc;m.push(g);var y=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function v(){var se;return se=u.lexer.lex()||1,typeof se!="number"&&(se=u.symbols_[se]||se),se}for(var z,k,b,x,w={},L,I,j,R;;){if(k=c[c.length-1],this.defaultActions[k]?b=this.defaultActions[k]:((z===null||typeof z=="undefined")&&(z=v()),b=l[k]&&l[k][z]),typeof b=="undefined"||!b.length||!b[0]){var pe="";{R=[];for(L in l[k])this.terminals_[L]&&L>2&&R.push("'"+this.terminals_[L]+"'");this.lexer.showPosition?pe="Parse error on line "+(p+1)+`:
|
|
5
|
+
`)}return d}else throw new te.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}var r={strict:function(s,u,c){if(!s||!(u in s))throw new te.default('"'+u+'" not defined in '+s,{loc:c});return r.lookupProperty(s,u)},lookupProperty:function(s,u){var c=s[u];if(c==null||Object.prototype.hasOwnProperty.call(s,u)||Rt.resultIsAllowed(c,r.protoAccessControl,u))return c},lookup:function(s,u){for(var c=s.length,d=0;d<c;d++){var m=s[d]&&r.lookupProperty(s[d],u);if(m!=null)return s[d][u]}},lambda:function(s,u){return typeof s=="function"?s.call(u):s},escapeExpression:ne.escapeExpression,invokePartial:a,fn:function(s){var u=e[s];return u.decorator=e[s+"_d"],u},programs:[],program:function(s,u,c,d,m){var l=this.programs[s],h=this.fn(s);return u||m||d||c?l=Ke(this,s,h,u,c,d,m):l||(l=this.programs[s]=Ke(this,s,h)),l},data:function(s,u){for(;s&&u--;)s=s._parent;return s},mergeIfNeeded:function(s,u){var c=s||u;return s&&u&&s!==u&&(c=ne.extend({},u,s)),c},nullContext:Object.seal({}),noop:n.VM.noop,compilerInfo:e.compiler};function o(i){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=s.data;o._setup(s),!s.partial&&e.useData&&(u=Pi(i,u));var c=void 0,d=e.useBlockParams?[]:void 0;e.useDepths&&(s.depths?c=i!=s.depths[0]?[i].concat(s.depths):s.depths:c=[i]);function m(l){return""+e.main(r,l,r.helpers,r.partials,u,d,c)}return m=Tt(e.main,m,r,s.depths||[],u,d),m(i,s)}return o.isTop=!0,o._setup=function(i){if(i.partial)r.protoAccessControl=i.protoAccessControl,r.helpers=i.helpers,r.partials=i.partials,r.decorators=i.decorators,r.hooks=i.hooks;else{var s=ne.extend({},n.helpers,i.helpers);ji(s,r),r.helpers=s,e.usePartial&&(r.partials=r.mergeIfNeeded(i.partials,n.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=ne.extend({},n.decorators,i.decorators)),r.hooks={},r.protoAccessControl=Rt.createProtoAccessControl(i);var u=i.allowCallsToHelperMissing||t;Ot.moveHelperToHooks(r,"helperMissing",u),Ot.moveHelperToHooks(r,"blockHelperMissing",u)}},o._child=function(i,s,u,c){if(e.useBlockParams&&!u)throw new te.default("must pass block params");if(e.useDepths&&!c)throw new te.default("must pass parent depths");return Ke(r,i,e[i],s,0,u,c)},o}function Ke(e,n,t,a,r,o,i){function s(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=i;return i&&u!=i[0]&&!(u===e.nullContext&&i[0]===null)&&(d=[u].concat(i)),t(e,u,e.helpers,e.partials,c.data||a,o&&[c.blockParams].concat(o),d)}return s=Tt(t,s,e,i,a,o),s.program=n,s.depth=i?i.length:0,s.blockParams=r||0,s}function Ci(e,n,t){return e?!e.call&&!t.name&&(t.name=e,e=t.partials[e]):t.name==="@partial-block"?e=t.data["partial-block"]:e=t.partials[t.name],e}function Ai(e,n,t){var a=t.data&&t.data["partial-block"];t.partial=!0,t.ids&&(t.data.contextPath=t.ids[0]||t.data.contextPath);var r=void 0;if(t.fn&&t.fn!==Dt&&function(){t.data=ae.createFrame(t.data);var o=t.fn;r=t.data["partial-block"]=function(s){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=ae.createFrame(u.data),u.data["partial-block"]=a,o(s,u)},o.partials&&(t.partials=ne.extend({},t.partials,o.partials))}(),e===void 0&&r&&(e=r),e===void 0)throw new te.default("The partial "+t.name+" could not be found");if(e instanceof Function)return e(n,t)}function Dt(){return""}function Pi(e,n){return(!n||!("root"in n))&&(n=n?ae.createFrame(n):{},n.root=e),n}function Tt(e,n,t,a,r,o){if(e.decorator){var i={};n=e.decorator(n,i,t,a&&a[0],r,o,a),ne.extend(n,i)}return n}function ji(e,n){Object.keys(e).forEach(function(t){var a=e[t];e[t]=qi(a,n)})}function qi(e,n){var t=n.lookupProperty;return Si.wrapHelper(e,function(a){return ne.extend({lookupProperty:t},a)})}var Nn={exports:{}};(function(e,n){n.__esModule=!0,n.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var a=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=a),t}},e.exports=n.default})(Nn,Nn.exports);var Mt=Nn.exports;(function(e,n){n.__esModule=!0;function t(v){return v&&v.__esModule?v:{default:v}}function a(v){if(v&&v.__esModule)return v;var z={};if(v!=null)for(var k in v)Object.prototype.hasOwnProperty.call(v,k)&&(z[k]=v[k]);return z.default=v,z}var r=Y,o=a(r),i=bi,s=t(i),u=J,c=t(u),d=q,m=a(d),l=oe,h=a(l),p=Mt,f=t(p);function g(){var v=new o.HandlebarsEnvironment;return m.extend(v,o),v.SafeString=s.default,v.Exception=c.default,v.Utils=m,v.escapeExpression=m.escapeExpression,v.VM=h,v.template=function(z){return h.template(z,v)},v}var y=g();y.create=g,f.default(y),y.default=y,n.default=y,e.exports=n.default})(G,G.exports);var Ii=G.exports,On={exports:{}};(function(e,n){n.__esModule=!0;var t={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!t.helpers.scopedId(r)&&!r.depth}}};n.default=t,e.exports=n.default})(On,On.exports);var Ht=On.exports,Se={},Rn={exports:{}};(function(e,n){n.__esModule=!0;var t=function(){var a={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(s,u,c,d,m,l,h){var p=l.length-1;switch(m){case 1:return l[p-1];case 2:this.$=d.prepareProgram(l[p]);break;case 3:this.$=l[p];break;case 4:this.$=l[p];break;case 5:this.$=l[p];break;case 6:this.$=l[p];break;case 7:this.$=l[p];break;case 8:this.$=l[p];break;case 9:this.$={type:"CommentStatement",value:d.stripComment(l[p]),strip:d.stripFlags(l[p],l[p]),loc:d.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[p],value:l[p],loc:d.locInfo(this._$)};break;case 11:this.$=d.prepareRawBlock(l[p-2],l[p-1],l[p],this._$);break;case 12:this.$={path:l[p-3],params:l[p-2],hash:l[p-1]};break;case 13:this.$=d.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!1,this._$);break;case 14:this.$=d.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!0,this._$);break;case 15:this.$={open:l[p-5],path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:d.stripFlags(l[p-5],l[p])};break;case 16:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:d.stripFlags(l[p-5],l[p])};break;case 17:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:d.stripFlags(l[p-5],l[p])};break;case 18:this.$={strip:d.stripFlags(l[p-1],l[p-1]),program:l[p]};break;case 19:var f=d.prepareBlock(l[p-2],l[p-1],l[p],l[p],!1,this._$),g=d.prepareProgram([f],l[p-1].loc);g.chained=!0,this.$={strip:l[p-2].strip,program:g,chain:!0};break;case 20:this.$=l[p];break;case 21:this.$={path:l[p-1],strip:d.stripFlags(l[p-2],l[p])};break;case 22:this.$=d.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],d.stripFlags(l[p-4],l[p]),this._$);break;case 23:this.$=d.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],d.stripFlags(l[p-4],l[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[p-3],params:l[p-2],hash:l[p-1],indent:"",strip:d.stripFlags(l[p-4],l[p]),loc:d.locInfo(this._$)};break;case 25:this.$=d.preparePartialBlock(l[p-2],l[p-1],l[p],this._$);break;case 26:this.$={path:l[p-3],params:l[p-2],hash:l[p-1],strip:d.stripFlags(l[p-4],l[p])};break;case 27:this.$=l[p];break;case 28:this.$=l[p];break;case 29:this.$={type:"SubExpression",path:l[p-3],params:l[p-2],hash:l[p-1],loc:d.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[p],loc:d.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:d.id(l[p-2]),value:l[p],loc:d.locInfo(this._$)};break;case 32:this.$=d.id(l[p-1]);break;case 33:this.$=l[p];break;case 34:this.$=l[p];break;case 35:this.$={type:"StringLiteral",value:l[p],original:l[p],loc:d.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[p]),original:Number(l[p]),loc:d.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[p]==="true",original:l[p]==="true",loc:d.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:d.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:d.locInfo(this._$)};break;case 40:this.$=l[p];break;case 41:this.$=l[p];break;case 42:this.$=d.preparePath(!0,l[p],this._$);break;case 43:this.$=d.preparePath(!1,l[p],this._$);break;case 44:l[p-2].push({part:d.id(l[p]),original:l[p],separator:l[p-1]}),this.$=l[p-2];break;case 45:this.$=[{part:d.id(l[p]),original:l[p]}];break;case 46:this.$=[];break;case 47:l[p-1].push(l[p]);break;case 48:this.$=[];break;case 49:l[p-1].push(l[p]);break;case 50:this.$=[];break;case 51:l[p-1].push(l[p]);break;case 58:this.$=[];break;case 59:l[p-1].push(l[p]);break;case 64:this.$=[];break;case 65:l[p-1].push(l[p]);break;case 70:this.$=[];break;case 71:l[p-1].push(l[p]);break;case 78:this.$=[];break;case 79:l[p-1].push(l[p]);break;case 82:this.$=[];break;case 83:l[p-1].push(l[p]);break;case 86:this.$=[];break;case 87:l[p-1].push(l[p]);break;case 90:this.$=[];break;case 91:l[p-1].push(l[p]);break;case 94:this.$=[];break;case 95:l[p-1].push(l[p]);break;case 98:this.$=[l[p]];break;case 99:l[p-1].push(l[p]);break;case 100:this.$=[l[p]];break;case 101:l[p-1].push(l[p]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(s,u){throw new Error(s)},parse:function(s){var u=this,c=[0],d=[null],m=[],l=this.table,h="",p=0,f=0;this.lexer.setInput(s),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={});var g=this.lexer.yylloc;m.push(g);var y=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function v(){var ue;return ue=u.lexer.lex()||1,typeof ue!="number"&&(ue=u.symbols_[ue]||ue),ue}for(var z,k,b,x,w={},L,I,j,R;;){if(k=c[c.length-1],this.defaultActions[k]?b=this.defaultActions[k]:((z===null||typeof z=="undefined")&&(z=v()),b=l[k]&&l[k][z]),typeof b=="undefined"||!b.length||!b[0]){var pe="";{R=[];for(L in l[k])this.terminals_[L]&&L>2&&R.push("'"+this.terminals_[L]+"'");this.lexer.showPosition?pe="Parse error on line "+(p+1)+`:
|
|
6
6
|
`+this.lexer.showPosition()+`
|
|
7
7
|
Expecting `+R.join(", ")+", got '"+(this.terminals_[z]||z)+"'":pe="Parse error on line "+(p+1)+": Unexpected "+(z==1?"end of input":"'"+(this.terminals_[z]||z)+"'"),this.parseError(pe,{text:this.lexer.match,token:this.terminals_[z]||z,line:this.lexer.yylineno,loc:g,expected:R})}}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+z);switch(b[0]){case 1:c.push(z),d.push(this.lexer.yytext),m.push(this.lexer.yylloc),c.push(b[1]),z=null,f=this.lexer.yyleng,h=this.lexer.yytext,p=this.lexer.yylineno,g=this.lexer.yylloc;break;case 2:if(I=this.productions_[b[1]][1],w.$=d[d.length-I],w._$={first_line:m[m.length-(I||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(I||1)].first_column,last_column:m[m.length-1].last_column},y&&(w._$.range=[m[m.length-(I||1)].range[0],m[m.length-1].range[1]]),x=this.performAction.call(w,h,f,p,this.yy,b[1],d,m),typeof x!="undefined")return x;I&&(c=c.slice(0,-1*I*2),d=d.slice(0,-1*I),m=m.slice(0,-1*I)),c.push(this.productions_[b[1]][0]),d.push(w.$),m.push(w._$),j=l[c[c.length-2]][c[c.length-1]],c.push(j);break;case 3:return!0}}return!0}},r=function(){var i={EOF:1,parseError:function(u,c){if(this.yy.parser)this.yy.parser.parseError(u,c);else throw new Error(u)},setInput:function(u){return this._input=u,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var c=u.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var c=u.length,d=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c-1),this.offset-=c;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===m.length?this.yylloc.first_column:0)+m[m.length-d.length].length-d[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-c]),this},more:function(){return this._more=!0,this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),c=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
|
|
8
8
|
`+c+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,c,d,m,l;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),p=0;p<h.length&&(d=this._input.match(this.rules[h[p]]),!(d&&(!c||d[0].length>c[0].length)&&(c=d,m=p,!this.options.flex)));p++);return c?(l=c[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],u=this.performAction.call(this,this.yy,this,h[m],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
9
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return typeof u!="undefined"?u:this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(u){this.begin(u)}};return i.options={},i.performAction=function(u,c,d,m){function l(h,p){return c.yytext=c.yytext.substring(h,c.yyleng-p+h)}switch(d){case 0:if(c.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):c.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),c.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(c.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return c.yytext=l(1,2).replace(/\\"/g,'"'),80;case 32:return c.yytext=l(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return c.yytext=c.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},i.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},i}();a.lexer=r;function o(){this.yy={}}return o.prototype=a,a.Parser=o,new o}();n.default=t,e.exports=n.default})(Rn,Rn.exports);var Ii=Rn.exports,Dn={exports:{}},Tn={exports:{}};(function(e,n){n.__esModule=!0;function t(c){return c&&c.__esModule?c:{default:c}}var a=J,r=t(a);function o(){this.parents=[]}o.prototype={constructor:o,mutating:!1,acceptKey:function(d,m){var l=this.accept(d[m]);if(this.mutating){if(l&&!o.prototype[l.type])throw new r.default('Unexpected node type "'+l.type+'" found when accepting '+m+" on "+d.type);d[m]=l}},acceptRequired:function(d,m){if(this.acceptKey(d,m),!d[m])throw new r.default(d.type+" requires "+m)},acceptArray:function(d){for(var m=0,l=d.length;m<l;m++)this.acceptKey(d,m),d[m]||(d.splice(m,1),m--,l--)},accept:function(d){if(!!d){if(!this[d.type])throw new r.default("Unknown type: "+d.type,d);this.current&&this.parents.unshift(this.current),this.current=d;var m=this[d.type](d);if(this.current=this.parents.shift(),!this.mutating||m)return m;if(m!==!1)return d}},Program:function(d){this.acceptArray(d.body)},MustacheStatement:i,Decorator:i,BlockStatement:s,DecoratorBlock:s,PartialStatement:u,PartialBlockStatement:function(d){u.call(this,d),this.acceptKey(d,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(d){this.acceptArray(d.pairs)},HashPair:function(d){this.acceptRequired(d,"value")}};function i(c){this.acceptRequired(c,"path"),this.acceptArray(c.params),this.acceptKey(c,"hash")}function s(c){i.call(this,c),this.acceptKey(c,"program"),this.acceptKey(c,"inverse")}function u(c){this.acceptRequired(c,"name"),this.acceptArray(c.params),this.acceptKey(c,"hash")}n.default=o,e.exports=n.default})(Tn,Tn.exports);var Ht=Tn.exports;(function(e,n){n.__esModule=!0;function t(d){return d&&d.__esModule?d:{default:d}}var a=Ht,r=t(a);function o(){var d=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=d}o.prototype=new r.default,o.prototype.Program=function(d){var m=!this.options.ignoreStandalone,l=!this.isRootSeen;this.isRootSeen=!0;for(var h=d.body,p=0,f=h.length;p<f;p++){var g=h[p],y=this.accept(g);if(!!y){var v=i(h,p,l),z=s(h,p,l),k=y.openStandalone&&v,b=y.closeStandalone&&z,x=y.inlineStandalone&&v&&z;y.close&&u(h,p,!0),y.open&&c(h,p,!0),m&&x&&(u(h,p),c(h,p)&&g.type==="PartialStatement"&&(g.indent=/([ \t]+$)/.exec(h[p-1].original)[1])),m&&k&&(u((g.program||g.inverse).body),c(h,p)),m&&b&&(u(h,p),c((g.inverse||g.program).body))}}return d},o.prototype.BlockStatement=o.prototype.DecoratorBlock=o.prototype.PartialBlockStatement=function(d){this.accept(d.program),this.accept(d.inverse);var m=d.program||d.inverse,l=d.program&&d.inverse,h=l,p=l;if(l&&l.chained)for(h=l.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var f={open:d.openStrip.open,close:d.closeStrip.close,openStandalone:s(m.body),closeStandalone:i((h||m).body)};if(d.openStrip.close&&u(m.body,null,!0),l){var g=d.inverseStrip;g.open&&c(m.body,null,!0),g.close&&u(h.body,null,!0),d.closeStrip.open&&c(p.body,null,!0),!this.options.ignoreStandalone&&i(m.body)&&s(h.body)&&(c(m.body),u(h.body))}else d.closeStrip.open&&c(m.body,null,!0);return f},o.prototype.Decorator=o.prototype.MustacheStatement=function(d){return d.strip},o.prototype.PartialStatement=o.prototype.CommentStatement=function(d){var m=d.strip||{};return{inlineStandalone:!0,open:m.open,close:m.close}};function i(d,m,l){m===void 0&&(m=d.length);var h=d[m-1],p=d[m-2];if(!h)return l;if(h.type==="ContentStatement")return(p||!l?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original)}function s(d,m,l){m===void 0&&(m=-1);var h=d[m+1],p=d[m+2];if(!h)return l;if(h.type==="ContentStatement")return(p||!l?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original)}function u(d,m,l){var h=d[m==null?0:m+1];if(!(!h||h.type!=="ContentStatement"||!l&&h.rightStripped)){var p=h.value;h.value=h.value.replace(l?/^\s+/:/^[ \t]*\r?\n?/,""),h.rightStripped=h.value!==p}}function c(d,m,l){var h=d[m==null?d.length-1:m-1];if(!(!h||h.type!=="ContentStatement"||!l&&h.leftStripped)){var p=h.value;return h.value=h.value.replace(l?/\s+$/:/[ \t]+$/,""),h.leftStripped=h.value!==p,h.leftStripped}}n.default=o,e.exports=n.default})(Dn,Dn.exports);var Ni=Dn.exports,Z={};Z.__esModule=!0,Z.SourceLocation=Di,Z.id=Ti,Z.stripFlags=Mi,Z.stripComment=Bi,Z.preparePath=Hi,Z.prepareMustache=Fi,Z.prepareRawBlock=Ui,Z.prepareBlock=Gi,Z.prepareProgram=Vi,Z.preparePartialBlock=Wi;function Oi(e){return e&&e.__esModule?e:{default:e}}var Ri=J,Mn=Oi(Ri);function Bn(e,n){if(n=n.path?n.path.original:n,e.path.original!==n){var t={loc:e.path.loc};throw new Mn.default(e.path.original+" doesn't match "+n,t)}}function Di(e,n){this.source=e,this.start={line:n.first_line,column:n.first_column},this.end={line:n.last_line,column:n.last_column}}function Ti(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function Mi(e,n){return{open:e.charAt(2)==="~",close:n.charAt(n.length-3)==="~"}}function Bi(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function Hi(e,n,t){t=this.locInfo(t);for(var a=e?"@":"",r=[],o=0,i=0,s=n.length;i<s;i++){var u=n[i].part,c=n[i].original!==u;if(a+=(n[i].separator||"")+u,!c&&(u===".."||u==="."||u==="this")){if(r.length>0)throw new Mn.default("Invalid path: "+a,{loc:t});u===".."&&o++}else r.push(u)}return{type:"PathExpression",data:e,depth:o,parts:r,original:a,loc:t}}function Fi(e,n,t,a,r,o){var i=a.charAt(3)||a.charAt(2),s=i!=="{"&&i!=="&",u=/\*/.test(a);return{type:u?"Decorator":"MustacheStatement",path:e,params:n,hash:t,escaped:s,strip:r,loc:this.locInfo(o)}}function Ui(e,n,t,a){Bn(e,t),a=this.locInfo(a);var r={type:"Program",body:n,strip:{},loc:a};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:r,openStrip:{},inverseStrip:{},closeStrip:{},loc:a}}function Gi(e,n,t,a,r,o){a&&a.path&&Bn(e,a);var i=/\*/.test(e.open);n.blockParams=e.blockParams;var s=void 0,u=void 0;if(t){if(i)throw new Mn.default("Unexpected inverse block on decorator",t);t.chain&&(t.program.body[0].closeStrip=a.strip),u=t.strip,s=t.program}return r&&(r=s,s=n,n=r),{type:i?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:n,inverse:s,openStrip:e.strip,inverseStrip:u,closeStrip:a&&a.strip,loc:this.locInfo(o)}}function Vi(e,n){if(!n&&e.length){var t=e[0].loc,a=e[e.length-1].loc;t&&a&&(n={source:t.source,start:{line:t.start.line,column:t.start.column},end:{line:a.end.line,column:a.end.column}})}return{type:"Program",body:e,strip:{},loc:n}}function Wi(e,n,t,a){return Bn(e,t),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:n,openStrip:e.strip,closeStrip:t&&t.strip,loc:this.locInfo(a)}}Se.__esModule=!0,Se.parseWithoutProcessing=Ut,Se.parse=es;function Ki(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function Ft(e){return e&&e.__esModule?e:{default:e}}var Yi=Ii,Hn=Ft(Yi),Zi=Ni,Qi=Ft(Zi),Ji=Z,Xi=Ki(Ji),$i=q;Se.parser=Hn.default;var Ke={};$i.extend(Ke,Xi);function Ut(e,n){if(e.type==="Program")return e;Hn.default.yy=Ke,Ke.locInfo=function(a){return new Ke.SourceLocation(n&&n.srcName,a)};var t=Hn.default.parse(e);return t}function es(e,n){var t=Ut(e,n),a=new Qi.default(n);return a.accept(t)}var Le={};Le.__esModule=!0,Le.Compiler=Fn,Le.precompile=rs,Le.compile=os;function Gt(e){return e&&e.__esModule?e:{default:e}}var ns=J,Ee=Gt(ns),Ce=q,ts=Bt,Ae=Gt(ts),as=[].slice;function Fn(){}Fn.prototype={compiler:Fn,equals:function(n){var t=this.opcodes.length;if(n.opcodes.length!==t)return!1;for(var a=0;a<t;a++){var r=this.opcodes[a],o=n.opcodes[a];if(r.opcode!==o.opcode||!Vt(r.args,o.args))return!1}t=this.children.length;for(var a=0;a<t;a++)if(!this.children[a].equals(n.children[a]))return!1;return!0},guid:0,compile:function(n,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=Ce.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(n)},compileProgram:function(n){var t=new this.compiler,a=t.compile(n,this.options),r=this.guid++;return this.usePartial=this.usePartial||a.usePartial,this.children[r]=a,this.useDepths=this.useDepths||a.useDepths,r},accept:function(n){if(!this[n.type])throw new Ee.default("Unknown type: "+n.type,n);this.sourceNode.unshift(n);var t=this[n.type](n);return this.sourceNode.shift(),t},Program:function(n){this.options.blockParams.unshift(n.blockParams);for(var t=n.body,a=t.length,r=0;r<a;r++)this.accept(t[r]);return this.options.blockParams.shift(),this.isSimple=a===1,this.blockParams=n.blockParams?n.blockParams.length:0,this},BlockStatement:function(n){Wt(n);var t=n.program,a=n.inverse;t=t&&this.compileProgram(t),a=a&&this.compileProgram(a);var r=this.classifySexpr(n);r==="helper"?this.helperSexpr(n,t,a):r==="simple"?(this.simpleSexpr(n),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("blockValue",n.path.original)):(this.ambiguousSexpr(n,t,a),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(n){var t=n.program&&this.compileProgram(n.program),a=this.setupFullMustacheParams(n,t,void 0),r=n.path;this.useDecorators=!0,this.opcode("registerDecorator",a.length,r.original)},PartialStatement:function(n){this.usePartial=!0;var t=n.program;t&&(t=this.compileProgram(n.program));var a=n.params;if(a.length>1)throw new Ee.default("Unsupported number of partial arguments: "+a.length,n);a.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):a.push({type:"PathExpression",parts:[],depth:0}));var r=n.name.original,o=n.name.type==="SubExpression";o&&this.accept(n.name),this.setupFullMustacheParams(n,t,void 0,!0);var i=n.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",o,r,i),this.opcode("append")},PartialBlockStatement:function(n){this.PartialStatement(n)},MustacheStatement:function(n){this.SubExpression(n),n.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(n){this.DecoratorBlock(n)},ContentStatement:function(n){n.value&&this.opcode("appendContent",n.value)},CommentStatement:function(){},SubExpression:function(n){Wt(n);var t=this.classifySexpr(n);t==="simple"?this.simpleSexpr(n):t==="helper"?this.helperSexpr(n):this.ambiguousSexpr(n)},ambiguousSexpr:function(n,t,a){var r=n.path,o=r.parts[0],i=t!=null||a!=null;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",a),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",o,i)},simpleSexpr:function(n){var t=n.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(n,t,a){var r=this.setupFullMustacheParams(n,t,a),o=n.path,i=o.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",r.length,i);else{if(this.options.knownHelpersOnly)throw new Ee.default("You specified knownHelpersOnly, but used the unknown helper "+i,n);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",r.length,o.original,Ae.default.helpers.simpleId(o))}},PathExpression:function(n){this.addDepth(n.depth),this.opcode("getContext",n.depth);var t=n.parts[0],a=Ae.default.helpers.scopedId(n),r=!n.depth&&!a&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,n.parts):t?n.data?(this.options.data=!0,this.opcode("lookupData",n.depth,n.parts,n.strict)):this.opcode("lookupOnContext",n.parts,n.falsy,n.strict,a):this.opcode("pushContext")},StringLiteral:function(n){this.opcode("pushString",n.value)},NumberLiteral:function(n){this.opcode("pushLiteral",n.value)},BooleanLiteral:function(n){this.opcode("pushLiteral",n.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(n){var t=n.pairs,a=0,r=t.length;for(this.opcode("pushHash");a<r;a++)this.pushParam(t[a].value);for(;a--;)this.opcode("assignToHash",t[a].key);this.opcode("popHash")},opcode:function(n){this.opcodes.push({opcode:n,args:as.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(n){!n||(this.useDepths=!0)},classifySexpr:function(n){var t=Ae.default.helpers.simpleId(n.path),a=t&&!!this.blockParamIndex(n.path.parts[0]),r=!a&&Ae.default.helpers.helperExpression(n),o=!a&&(r||t);if(o&&!r){var i=n.path.parts[0],s=this.options;s.knownHelpers[i]?r=!0:s.knownHelpersOnly&&(o=!1)}return r?"helper":o?"ambiguous":"simple"},pushParams:function(n){for(var t=0,a=n.length;t<a;t++)this.pushParam(n[t])},pushParam:function(n){var t=n.value!=null?n.value:n.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),n.depth&&this.addDepth(n.depth),this.opcode("getContext",n.depth||0),this.opcode("pushStringParam",t,n.type),n.type==="SubExpression"&&this.accept(n);else{if(this.trackIds){var a=void 0;if(n.parts&&!Ae.default.helpers.scopedId(n)&&!n.depth&&(a=this.blockParamIndex(n.parts[0])),a){var r=n.parts.slice(1).join(".");this.opcode("pushId","BlockParam",a,r)}else t=n.original||t,t.replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",n.type,t)}this.accept(n)}},setupFullMustacheParams:function(n,t,a,r){var o=n.params;return this.pushParams(o),this.opcode("pushProgram",t),this.opcode("pushProgram",a),n.hash?this.accept(n.hash):this.opcode("emptyHash",r),o},blockParamIndex:function(n){for(var t=0,a=this.options.blockParams.length;t<a;t++){var r=this.options.blockParams[t],o=r&&Ce.indexOf(r,n);if(r&&o>=0)return[t,o]}}};function rs(e,n,t){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Ee.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);n=n||{},"data"in n||(n.data=!0),n.compat&&(n.useDepths=!0);var a=t.parse(e,n),r=new t.Compiler().compile(a,n);return new t.JavaScriptCompiler().compile(r,n)}function os(e,n,t){if(n===void 0&&(n={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Ee.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);n=Ce.extend({},n),"data"in n||(n.data=!0),n.compat&&(n.useDepths=!0);var a=void 0;function r(){var i=t.parse(e,n),s=new t.Compiler().compile(i,n),u=new t.JavaScriptCompiler().compile(s,n,void 0,!0);return t.template(u)}function o(i,s){return a||(a=r()),a.call(this,i,s)}return o._setup=function(i){return a||(a=r()),a._setup(i)},o._child=function(i,s,u,c){return a||(a=r()),a._child(i,s,u,c)},o}function Vt(e,n){if(e===n)return!0;if(Ce.isArray(e)&&Ce.isArray(n)&&e.length===n.length){for(var t=0;t<e.length;t++)if(!Vt(e[t],n[t]))return!1;return!0}}function Wt(e){if(!e.path.parts){var n=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[n.original+""],original:n.original+"",loc:n.loc}}}var Un={exports:{}},Gn={exports:{}},Pe={},Vn={},Ye={},Ze={},Kt;function is(){if(Kt)return Ze;Kt=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Ze.encode=function(n){if(0<=n&&n<e.length)return e[n];throw new TypeError("Must be between 0 and 63: "+n)},Ze.decode=function(n){var t=65,a=90,r=97,o=122,i=48,s=57,u=43,c=47,d=26,m=52;return t<=n&&n<=a?n-t:r<=n&&n<=o?n-r+d:i<=n&&n<=s?n-i+m:n==u?62:n==c?63:-1},Ze}var Yt;function Zt(){if(Yt)return Ye;Yt=1;var e=is(),n=5,t=1<<n,a=t-1,r=t;function o(s){return s<0?(-s<<1)+1:(s<<1)+0}function i(s){var u=(s&1)===1,c=s>>1;return u?-c:c}return Ye.encode=function(u){var c="",d,m=o(u);do d=m&a,m>>>=n,m>0&&(d|=r),c+=e.encode(d);while(m>0);return c},Ye.decode=function(u,c,d){var m=u.length,l=0,h=0,p,f;do{if(c>=m)throw new Error("Expected more digits in base 64 VLQ value.");if(f=e.decode(u.charCodeAt(c++)),f===-1)throw new Error("Invalid base64 digit: "+u.charAt(c-1));p=!!(f&r),f&=a,l=l+(f<<h),h+=n}while(p);d.value=i(l),d.rest=c},Ye}var Wn={},Qt;function je(){return Qt||(Qt=1,function(e){function n(k,b,x){if(b in k)return k[b];if(arguments.length===3)return x;throw new Error('"'+b+'" is a required argument.')}e.getArg=n;var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,a=/^data:.+\,.+$/;function r(k){var b=k.match(t);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}e.urlParse=r;function o(k){var b="";return k.scheme&&(b+=k.scheme+":"),b+="//",k.auth&&(b+=k.auth+"@"),k.host&&(b+=k.host),k.port&&(b+=":"+k.port),k.path&&(b+=k.path),b}e.urlGenerate=o;function i(k){var b=k,x=r(k);if(x){if(!x.path)return k;b=x.path}for(var w=e.isAbsolute(b),L=b.split(/\/+/),I,j=0,R=L.length-1;R>=0;R--)I=L[R],I==="."?L.splice(R,1):I===".."?j++:j>0&&(I===""?(L.splice(R+1,j),j=0):(L.splice(R,2),j--));return b=L.join("/"),b===""&&(b=w?"/":"."),x?(x.path=b,o(x)):b}e.normalize=i;function s(k,b){k===""&&(k="."),b===""&&(b=".");var x=r(b),w=r(k);if(w&&(k=w.path||"/"),x&&!x.scheme)return w&&(x.scheme=w.scheme),o(x);if(x||b.match(a))return b;if(w&&!w.host&&!w.path)return w.host=b,o(w);var L=b.charAt(0)==="/"?b:i(k.replace(/\/+$/,"")+"/"+b);return w?(w.path=L,o(w)):L}e.join=s,e.isAbsolute=function(k){return k.charAt(0)==="/"||t.test(k)};function u(k,b){k===""&&(k="."),k=k.replace(/\/$/,"");for(var x=0;b.indexOf(k+"/")!==0;){var w=k.lastIndexOf("/");if(w<0||(k=k.slice(0,w),k.match(/^([^\/]+:\/)?\/*$/)))return b;++x}return Array(x+1).join("../")+b.substr(k.length+1)}e.relative=u;var c=function(){var k=Object.create(null);return!("__proto__"in k)}();function d(k){return k}function m(k){return h(k)?"$"+k:k}e.toSetString=c?d:m;function l(k){return h(k)?k.slice(1):k}e.fromSetString=c?d:l;function h(k){if(!k)return!1;var b=k.length;if(b<9||k.charCodeAt(b-1)!==95||k.charCodeAt(b-2)!==95||k.charCodeAt(b-3)!==111||k.charCodeAt(b-4)!==116||k.charCodeAt(b-5)!==111||k.charCodeAt(b-6)!==114||k.charCodeAt(b-7)!==112||k.charCodeAt(b-8)!==95||k.charCodeAt(b-9)!==95)return!1;for(var x=b-10;x>=0;x--)if(k.charCodeAt(x)!==36)return!1;return!0}function p(k,b,x){var w=g(k.source,b.source);return w!==0||(w=k.originalLine-b.originalLine,w!==0)||(w=k.originalColumn-b.originalColumn,w!==0||x)||(w=k.generatedColumn-b.generatedColumn,w!==0)||(w=k.generatedLine-b.generatedLine,w!==0)?w:g(k.name,b.name)}e.compareByOriginalPositions=p;function f(k,b,x){var w=k.generatedLine-b.generatedLine;return w!==0||(w=k.generatedColumn-b.generatedColumn,w!==0||x)||(w=g(k.source,b.source),w!==0)||(w=k.originalLine-b.originalLine,w!==0)||(w=k.originalColumn-b.originalColumn,w!==0)?w:g(k.name,b.name)}e.compareByGeneratedPositionsDeflated=f;function g(k,b){return k===b?0:k===null?1:b===null?-1:k>b?1:-1}function y(k,b){var x=k.generatedLine-b.generatedLine;return x!==0||(x=k.generatedColumn-b.generatedColumn,x!==0)||(x=g(k.source,b.source),x!==0)||(x=k.originalLine-b.originalLine,x!==0)||(x=k.originalColumn-b.originalColumn,x!==0)?x:g(k.name,b.name)}e.compareByGeneratedPositionsInflated=y;function v(k){return JSON.parse(k.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=v;function z(k,b,x){if(b=b||"",k&&(k[k.length-1]!=="/"&&b[0]!=="/"&&(k+="/"),b=k+b),x){var w=r(x);if(!w)throw new Error("sourceMapURL could not be parsed");if(w.path){var L=w.path.lastIndexOf("/");L>=0&&(w.path=w.path.substring(0,L+1))}b=s(o(w),b)}return i(b)}e.computeSourceURL=z}(Wn)),Wn}var Kn={},Jt;function Xt(){if(Jt)return Kn;Jt=1;var e=je(),n=Object.prototype.hasOwnProperty,t=typeof Map!="undefined";function a(){this._array=[],this._set=t?new Map:Object.create(null)}return a.fromArray=function(o,i){for(var s=new a,u=0,c=o.length;u<c;u++)s.add(o[u],i);return s},a.prototype.size=function(){return t?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(o,i){var s=t?o:e.toSetString(o),u=t?this.has(o):n.call(this._set,s),c=this._array.length;(!u||i)&&this._array.push(o),u||(t?this._set.set(o,c):this._set[s]=c)},a.prototype.has=function(o){if(t)return this._set.has(o);var i=e.toSetString(o);return n.call(this._set,i)},a.prototype.indexOf=function(o){if(t){var i=this._set.get(o);if(i>=0)return i}else{var s=e.toSetString(o);if(n.call(this._set,s))return this._set[s]}throw new Error('"'+o+'" is not in the set.')},a.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},a.prototype.toArray=function(){return this._array.slice()},Kn.ArraySet=a,Kn}var Yn={},$t;function ss(){if($t)return Yn;$t=1;var e=je();function n(a,r){var o=a.generatedLine,i=r.generatedLine,s=a.generatedColumn,u=r.generatedColumn;return i>o||i==o&&u>=s||e.compareByGeneratedPositionsInflated(a,r)<=0}function t(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return t.prototype.unsortedForEach=function(r,o){this._array.forEach(r,o)},t.prototype.add=function(r){n(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},t.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Yn.MappingList=t,Yn}var ea;function na(){if(ea)return Vn;ea=1;var e=Zt(),n=je(),t=Xt().ArraySet,a=ss().MappingList;function r(o){o||(o={}),this._file=n.getArg(o,"file",null),this._sourceRoot=n.getArg(o,"sourceRoot",null),this._skipValidation=n.getArg(o,"skipValidation",!1),this._sources=new t,this._names=new t,this._mappings=new a,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(i){var s=i.sourceRoot,u=new r({file:i.file,sourceRoot:s});return i.eachMapping(function(c){var d={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source!=null&&(d.source=c.source,s!=null&&(d.source=n.relative(s,d.source)),d.original={line:c.originalLine,column:c.originalColumn},c.name!=null&&(d.name=c.name)),u.addMapping(d)}),i.sources.forEach(function(c){var d=c;s!==null&&(d=n.relative(s,c)),u._sources.has(d)||u._sources.add(d);var m=i.sourceContentFor(c);m!=null&&u.setSourceContent(c,m)}),u},r.prototype.addMapping=function(i){var s=n.getArg(i,"generated"),u=n.getArg(i,"original",null),c=n.getArg(i,"source",null),d=n.getArg(i,"name",null);this._skipValidation||this._validateMapping(s,u,c,d),c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),d!=null&&(d=String(d),this._names.has(d)||this._names.add(d)),this._mappings.add({generatedLine:s.line,generatedColumn:s.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:c,name:d})},r.prototype.setSourceContent=function(i,s){var u=i;this._sourceRoot!=null&&(u=n.relative(this._sourceRoot,u)),s!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(u)]=s):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(i,s,u){var c=s;if(s==null){if(i.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=i.file}var d=this._sourceRoot;d!=null&&(c=n.relative(d,c));var m=new t,l=new t;this._mappings.unsortedForEach(function(h){if(h.source===c&&h.originalLine!=null){var p=i.originalPositionFor({line:h.originalLine,column:h.originalColumn});p.source!=null&&(h.source=p.source,u!=null&&(h.source=n.join(u,h.source)),d!=null&&(h.source=n.relative(d,h.source)),h.originalLine=p.line,h.originalColumn=p.column,p.name!=null&&(h.name=p.name))}var f=h.source;f!=null&&!m.has(f)&&m.add(f);var g=h.name;g!=null&&!l.has(g)&&l.add(g)},this),this._sources=m,this._names=l,i.sources.forEach(function(h){var p=i.sourceContentFor(h);p!=null&&(u!=null&&(h=n.join(u,h)),d!=null&&(h=n.relative(d,h)),this.setSourceContent(h,p))},this)},r.prototype._validateMapping=function(i,s,u,c){if(s&&typeof s.line!="number"&&typeof s.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(i&&"line"in i&&"column"in i&&i.line>0&&i.column>=0&&!s&&!u&&!c)){if(i&&"line"in i&&"column"in i&&s&&"line"in s&&"column"in s&&i.line>0&&i.column>=0&&s.line>0&&s.column>=0&&u)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:i,source:u,original:s,name:c}))}},r.prototype._serializeMappings=function(){for(var i=0,s=1,u=0,c=0,d=0,m=0,l="",h,p,f,g,y=this._mappings.toArray(),v=0,z=y.length;v<z;v++){if(p=y[v],h="",p.generatedLine!==s)for(i=0;p.generatedLine!==s;)h+=";",s++;else if(v>0){if(!n.compareByGeneratedPositionsInflated(p,y[v-1]))continue;h+=","}h+=e.encode(p.generatedColumn-i),i=p.generatedColumn,p.source!=null&&(g=this._sources.indexOf(p.source),h+=e.encode(g-m),m=g,h+=e.encode(p.originalLine-1-c),c=p.originalLine-1,h+=e.encode(p.originalColumn-u),u=p.originalColumn,p.name!=null&&(f=this._names.indexOf(p.name),h+=e.encode(f-d),d=f)),l+=h}return l},r.prototype._generateSourcesContent=function(i,s){return i.map(function(u){if(!this._sourcesContents)return null;s!=null&&(u=n.relative(s,u));var c=n.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},r.prototype.toJSON=function(){var i={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(i.file=this._file),this._sourceRoot!=null&&(i.sourceRoot=this._sourceRoot),this._sourcesContents&&(i.sourcesContent=this._generateSourcesContent(i.sources,i.sourceRoot)),i},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},Vn.SourceMapGenerator=r,Vn}var qe={},Zn={},ta;function us(){return ta||(ta=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function n(t,a,r,o,i,s){var u=Math.floor((a-t)/2)+t,c=i(r,o[u],!0);return c===0?u:c>0?a-u>1?n(u,a,r,o,i,s):s==e.LEAST_UPPER_BOUND?a<o.length?a:-1:u:u-t>1?n(t,u,r,o,i,s):s==e.LEAST_UPPER_BOUND?u:t<0?-1:t}e.search=function(a,r,o,i){if(r.length===0)return-1;var s=n(-1,r.length,a,r,o,i||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&o(r[s],r[s-1],!0)===0;)--s;return s}}(Zn)),Zn}var Qn={},aa;function ls(){if(aa)return Qn;aa=1;function e(a,r,o){var i=a[r];a[r]=a[o],a[o]=i}function n(a,r){return Math.round(a+Math.random()*(r-a))}function t(a,r,o,i){if(o<i){var s=n(o,i),u=o-1;e(a,s,i);for(var c=a[i],d=o;d<i;d++)r(a[d],c)<=0&&(u+=1,e(a,u,d));e(a,u+1,d);var m=u+1;t(a,r,o,m-1),t(a,r,m+1,i)}}return Qn.quickSort=function(a,r){t(a,r,0,a.length-1)},Qn}var ra;function ds(){if(ra)return qe;ra=1;var e=je(),n=us(),t=Xt().ArraySet,a=Zt(),r=ls().quickSort;function o(c,d){var m=c;return typeof c=="string"&&(m=e.parseSourceMapInput(c)),m.sections!=null?new u(m,d):new i(m,d)}o.fromSourceMap=function(c,d){return i.fromSourceMap(c,d)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(d,m){var l=d.charAt(m);return l===";"||l===","},o.prototype._parseMappings=function(d,m){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(d,m,l){var h=m||null,p=l||o.GENERATED_ORDER,f;switch(p){case o.GENERATED_ORDER:f=this._generatedMappings;break;case o.ORIGINAL_ORDER:f=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var g=this.sourceRoot;f.map(function(y){var v=y.source===null?null:this._sources.at(y.source);return v=e.computeSourceURL(g,v,this._sourceMapURL),{source:v,generatedLine:y.generatedLine,generatedColumn:y.generatedColumn,originalLine:y.originalLine,originalColumn:y.originalColumn,name:y.name===null?null:this._names.at(y.name)}},this).forEach(d,h)},o.prototype.allGeneratedPositionsFor=function(d){var m=e.getArg(d,"line"),l={source:e.getArg(d,"source"),originalLine:m,originalColumn:e.getArg(d,"column",0)};if(l.source=this._findSourceIndex(l.source),l.source<0)return[];var h=[],p=this._findMapping(l,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(p>=0){var f=this._originalMappings[p];if(d.column===void 0)for(var g=f.originalLine;f&&f.originalLine===g;)h.push({line:e.getArg(f,"generatedLine",null),column:e.getArg(f,"generatedColumn",null),lastColumn:e.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++p];else for(var y=f.originalColumn;f&&f.originalLine===m&&f.originalColumn==y;)h.push({line:e.getArg(f,"generatedLine",null),column:e.getArg(f,"generatedColumn",null),lastColumn:e.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++p]}return h},qe.SourceMapConsumer=o;function i(c,d){var m=c;typeof c=="string"&&(m=e.parseSourceMapInput(c));var l=e.getArg(m,"version"),h=e.getArg(m,"sources"),p=e.getArg(m,"names",[]),f=e.getArg(m,"sourceRoot",null),g=e.getArg(m,"sourcesContent",null),y=e.getArg(m,"mappings"),v=e.getArg(m,"file",null);if(l!=this._version)throw new Error("Unsupported version: "+l);f&&(f=e.normalize(f)),h=h.map(String).map(e.normalize).map(function(z){return f&&e.isAbsolute(f)&&e.isAbsolute(z)?e.relative(f,z):z}),this._names=t.fromArray(p.map(String),!0),this._sources=t.fromArray(h,!0),this._absoluteSources=this._sources.toArray().map(function(z){return e.computeSourceURL(f,z,d)}),this.sourceRoot=f,this.sourcesContent=g,this._mappings=y,this._sourceMapURL=d,this.file=v}i.prototype=Object.create(o.prototype),i.prototype.consumer=o,i.prototype._findSourceIndex=function(c){var d=c;if(this.sourceRoot!=null&&(d=e.relative(this.sourceRoot,d)),this._sources.has(d))return this._sources.indexOf(d);var m;for(m=0;m<this._absoluteSources.length;++m)if(this._absoluteSources[m]==c)return m;return-1},i.fromSourceMap=function(d,m){var l=Object.create(i.prototype),h=l._names=t.fromArray(d._names.toArray(),!0),p=l._sources=t.fromArray(d._sources.toArray(),!0);l.sourceRoot=d._sourceRoot,l.sourcesContent=d._generateSourcesContent(l._sources.toArray(),l.sourceRoot),l.file=d._file,l._sourceMapURL=m,l._absoluteSources=l._sources.toArray().map(function(x){return e.computeSourceURL(l.sourceRoot,x,m)});for(var f=d._mappings.toArray().slice(),g=l.__generatedMappings=[],y=l.__originalMappings=[],v=0,z=f.length;v<z;v++){var k=f[v],b=new s;b.generatedLine=k.generatedLine,b.generatedColumn=k.generatedColumn,k.source&&(b.source=p.indexOf(k.source),b.originalLine=k.originalLine,b.originalColumn=k.originalColumn,k.name&&(b.name=h.indexOf(k.name)),y.push(b)),g.push(b)}return r(l.__originalMappings,e.compareByOriginalPositions),l},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}i.prototype._parseMappings=function(d,m){for(var l=1,h=0,p=0,f=0,g=0,y=0,v=d.length,z=0,k={},b={},x=[],w=[],L,I,j,R,pe;z<v;)if(d.charAt(z)===";")l++,z++,h=0;else if(d.charAt(z)===",")z++;else{for(L=new s,L.generatedLine=l,R=z;R<v&&!this._charIsMappingSeparator(d,R);R++);if(I=d.slice(z,R),j=k[I],j)z+=I.length;else{for(j=[];z<R;)a.decode(d,z,b),pe=b.value,z=b.rest,j.push(pe);if(j.length===2)throw new Error("Found a source, but no line and column");if(j.length===3)throw new Error("Found a source and line, but no column");k[I]=j}L.generatedColumn=h+j[0],h=L.generatedColumn,j.length>1&&(L.source=g+j[1],g+=j[1],L.originalLine=p+j[2],p=L.originalLine,L.originalLine+=1,L.originalColumn=f+j[3],f=L.originalColumn,j.length>4&&(L.name=y+j[4],y+=j[4])),w.push(L),typeof L.originalLine=="number"&&x.push(L)}r(w,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,r(x,e.compareByOriginalPositions),this.__originalMappings=x},i.prototype._findMapping=function(d,m,l,h,p,f){if(d[l]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+d[l]);if(d[h]<0)throw new TypeError("Column must be greater than or equal to 0, got "+d[h]);return n.search(d,m,p,f)},i.prototype.computeColumnSpans=function(){for(var d=0;d<this._generatedMappings.length;++d){var m=this._generatedMappings[d];if(d+1<this._generatedMappings.length){var l=this._generatedMappings[d+1];if(m.generatedLine===l.generatedLine){m.lastGeneratedColumn=l.generatedColumn-1;continue}}m.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(d){var m={generatedLine:e.getArg(d,"line"),generatedColumn:e.getArg(d,"column")},l=this._findMapping(m,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(d,"bias",o.GREATEST_LOWER_BOUND));if(l>=0){var h=this._generatedMappings[l];if(h.generatedLine===m.generatedLine){var p=e.getArg(h,"source",null);p!==null&&(p=this._sources.at(p),p=e.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var f=e.getArg(h,"name",null);return f!==null&&(f=this._names.at(f)),{source:p,line:e.getArg(h,"originalLine",null),column:e.getArg(h,"originalColumn",null),name:f}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(d){return d==null}):!1},i.prototype.sourceContentFor=function(d,m){if(!this.sourcesContent)return null;var l=this._findSourceIndex(d);if(l>=0)return this.sourcesContent[l];var h=d;this.sourceRoot!=null&&(h=e.relative(this.sourceRoot,h));var p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var f=h.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(f))return this.sourcesContent[this._sources.indexOf(f)];if((!p.path||p.path=="/")&&this._sources.has("/"+h))return this.sourcesContent[this._sources.indexOf("/"+h)]}if(m)return null;throw new Error('"'+h+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(d){var m=e.getArg(d,"source");if(m=this._findSourceIndex(m),m<0)return{line:null,column:null,lastColumn:null};var l={source:m,originalLine:e.getArg(d,"line"),originalColumn:e.getArg(d,"column")},h=this._findMapping(l,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(d,"bias",o.GREATEST_LOWER_BOUND));if(h>=0){var p=this._originalMappings[h];if(p.source===l.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},qe.BasicSourceMapConsumer=i;function u(c,d){var m=c;typeof c=="string"&&(m=e.parseSourceMapInput(c));var l=e.getArg(m,"version"),h=e.getArg(m,"sections");if(l!=this._version)throw new Error("Unsupported version: "+l);this._sources=new t,this._names=new t;var p={line:-1,column:0};this._sections=h.map(function(f){if(f.url)throw new Error("Support for url field in sections not implemented.");var g=e.getArg(f,"offset"),y=e.getArg(g,"line"),v=e.getArg(g,"column");if(y<p.line||y===p.line&&v<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=g,{generatedOffset:{generatedLine:y+1,generatedColumn:v+1},consumer:new o(e.getArg(f,"map"),d)}})}return u.prototype=Object.create(o.prototype),u.prototype.constructor=o,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var c=[],d=0;d<this._sections.length;d++)for(var m=0;m<this._sections[d].consumer.sources.length;m++)c.push(this._sections[d].consumer.sources[m]);return c}}),u.prototype.originalPositionFor=function(d){var m={generatedLine:e.getArg(d,"line"),generatedColumn:e.getArg(d,"column")},l=n.search(m,this._sections,function(p,f){var g=p.generatedLine-f.generatedOffset.generatedLine;return g||p.generatedColumn-f.generatedOffset.generatedColumn}),h=this._sections[l];return h?h.consumer.originalPositionFor({line:m.generatedLine-(h.generatedOffset.generatedLine-1),column:m.generatedColumn-(h.generatedOffset.generatedLine===m.generatedLine?h.generatedOffset.generatedColumn-1:0),bias:d.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(d){return d.consumer.hasContentsOfAllSources()})},u.prototype.sourceContentFor=function(d,m){for(var l=0;l<this._sections.length;l++){var h=this._sections[l],p=h.consumer.sourceContentFor(d,!0);if(p)return p}if(m)return null;throw new Error('"'+d+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(d){for(var m=0;m<this._sections.length;m++){var l=this._sections[m];if(l.consumer._findSourceIndex(e.getArg(d,"source"))!==-1){var h=l.consumer.generatedPositionFor(d);if(h){var p={line:h.line+(l.generatedOffset.generatedLine-1),column:h.column+(l.generatedOffset.generatedLine===h.line?l.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},u.prototype._parseMappings=function(d,m){this.__generatedMappings=[],this.__originalMappings=[];for(var l=0;l<this._sections.length;l++)for(var h=this._sections[l],p=h.consumer._generatedMappings,f=0;f<p.length;f++){var g=p[f],y=h.consumer._sources.at(g.source);y=e.computeSourceURL(h.consumer.sourceRoot,y,this._sourceMapURL),this._sources.add(y),y=this._sources.indexOf(y);var v=null;g.name&&(v=h.consumer._names.at(g.name),this._names.add(v),v=this._names.indexOf(v));var z={source:y,generatedLine:g.generatedLine+(h.generatedOffset.generatedLine-1),generatedColumn:g.generatedColumn+(h.generatedOffset.generatedLine===g.generatedLine?h.generatedOffset.generatedColumn-1:0),originalLine:g.originalLine,originalColumn:g.originalColumn,name:v};this.__generatedMappings.push(z),typeof z.originalLine=="number"&&this.__originalMappings.push(z)}r(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),r(this.__originalMappings,e.compareByOriginalPositions)},qe.IndexedSourceMapConsumer=u,qe}var Jn={},oa;function cs(){if(oa)return Jn;oa=1;var e=na().SourceMapGenerator,n=je(),t=/(\r?\n)/,a=10,r="$$$isSourceNode$$$";function o(i,s,u,c,d){this.children=[],this.sourceContents={},this.line=i==null?null:i,this.column=s==null?null:s,this.source=u==null?null:u,this.name=d==null?null:d,this[r]=!0,c!=null&&this.add(c)}return o.fromStringWithSourceMap=function(s,u,c){var d=new o,m=s.split(t),l=0,h=function(){var v=k(),z=k()||"";return v+z;function k(){return l<m.length?m[l++]:void 0}},p=1,f=0,g=null;return u.eachMapping(function(v){if(g!==null)if(p<v.generatedLine)y(g,h()),p++,f=0;else{var z=m[l]||"",k=z.substr(0,v.generatedColumn-f);m[l]=z.substr(v.generatedColumn-f),f=v.generatedColumn,y(g,k),g=v;return}for(;p<v.generatedLine;)d.add(h()),p++;if(f<v.generatedColumn){var z=m[l]||"";d.add(z.substr(0,v.generatedColumn)),m[l]=z.substr(v.generatedColumn),f=v.generatedColumn}g=v},this),l<m.length&&(g&&y(g,h()),d.add(m.splice(l).join(""))),u.sources.forEach(function(v){var z=u.sourceContentFor(v);z!=null&&(c!=null&&(v=n.join(c,v)),d.setSourceContent(v,z))}),d;function y(v,z){if(v===null||v.source===void 0)d.add(z);else{var k=c?n.join(c,v.source):v.source;d.add(new o(v.originalLine,v.originalColumn,k,z,v.name))}}},o.prototype.add=function(s){if(Array.isArray(s))s.forEach(function(u){this.add(u)},this);else if(s[r]||typeof s=="string")s&&this.children.push(s);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+s);return this},o.prototype.prepend=function(s){if(Array.isArray(s))for(var u=s.length-1;u>=0;u--)this.prepend(s[u]);else if(s[r]||typeof s=="string")this.children.unshift(s);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+s);return this},o.prototype.walk=function(s){for(var u,c=0,d=this.children.length;c<d;c++)u=this.children[c],u[r]?u.walk(s):u!==""&&s(u,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(s){var u,c,d=this.children.length;if(d>0){for(u=[],c=0;c<d-1;c++)u.push(this.children[c]),u.push(s);u.push(this.children[c]),this.children=u}return this},o.prototype.replaceRight=function(s,u){var c=this.children[this.children.length-1];return c[r]?c.replaceRight(s,u):typeof c=="string"?this.children[this.children.length-1]=c.replace(s,u):this.children.push("".replace(s,u)),this},o.prototype.setSourceContent=function(s,u){this.sourceContents[n.toSetString(s)]=u},o.prototype.walkSourceContents=function(s){for(var u=0,c=this.children.length;u<c;u++)this.children[u][r]&&this.children[u].walkSourceContents(s);for(var d=Object.keys(this.sourceContents),u=0,c=d.length;u<c;u++)s(n.fromSetString(d[u]),this.sourceContents[d[u]])},o.prototype.toString=function(){var s="";return this.walk(function(u){s+=u}),s},o.prototype.toStringWithSourceMap=function(s){var u={code:"",line:1,column:0},c=new e(s),d=!1,m=null,l=null,h=null,p=null;return this.walk(function(f,g){u.code+=f,g.source!==null&&g.line!==null&&g.column!==null?((m!==g.source||l!==g.line||h!==g.column||p!==g.name)&&c.addMapping({source:g.source,original:{line:g.line,column:g.column},generated:{line:u.line,column:u.column},name:g.name}),m=g.source,l=g.line,h=g.column,p=g.name,d=!0):d&&(c.addMapping({generated:{line:u.line,column:u.column}}),m=null,d=!1);for(var y=0,v=f.length;y<v;y++)f.charCodeAt(y)===a?(u.line++,u.column=0,y+1===v?(m=null,d=!1):d&&c.addMapping({source:g.source,original:{line:g.line,column:g.column},generated:{line:u.line,column:u.column},name:g.name})):u.column++}),this.walkSourceContents(function(f,g){c.setSourceContent(f,g)}),{code:u.code,map:c}},Jn.SourceNode=o,Jn}var ia;function ps(){return ia||(ia=1,Pe.SourceMapGenerator=na().SourceMapGenerator,Pe.SourceMapConsumer=ds().SourceMapConsumer,Pe.SourceNode=cs().SourceNode),Pe}(function(e,n){n.__esModule=!0;var t=q,a=void 0;try{var r=ps();a=r.SourceNode}catch(s){}a||(a=function(s,u,c,d){this.src="",d&&this.add(d)},a.prototype={add:function(u){t.isArray(u)&&(u=u.join("")),this.src+=u},prepend:function(u){t.isArray(u)&&(u=u.join("")),this.src=u+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function o(s,u,c){if(t.isArray(s)){for(var d=[],m=0,l=s.length;m<l;m++)d.push(u.wrap(s[m],c));return d}else if(typeof s=="boolean"||typeof s=="number")return s+"";return s}function i(s){this.srcFile=s,this.source=[]}i.prototype={isEmpty:function(){return!this.source.length},prepend:function(u,c){this.source.unshift(this.wrap(u,c))},push:function(u,c){this.source.push(this.wrap(u,c))},merge:function(){var u=this.empty();return this.each(function(c){u.add([" ",c,`
|
|
10
|
-
`])}),u},each:function(u){for(var c=0,d=this.source.length;c<d;c++)u(this.source[c])},empty:function(){var u=this.currentLocation||{start:{}};return new a(u.start.line,u.start.column,this.srcFile)},wrap:function(u){var c=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return u instanceof a?u:(u=o(u,this,c),new a(c.start.line,c.start.column,this.srcFile,u))},functionCall:function(u,c,d){return d=this.generateList(d),this.wrap([u,c?"."+c+"(":"(",d,")"])},quotedString:function(u){return'"'+(u+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(u){var c=this,d=[];Object.keys(u).forEach(function(l){var h=o(u[l],c);h!=="undefined"&&d.push([c.quotedString(l),":",h])});var m=this.generateList(d);return m.prepend("{"),m.add("}"),m},generateList:function(u){for(var c=this.empty(),d=0,m=u.length;d<m;d++)d&&c.add(","),c.add(o(u[d],this));return c},generateArray:function(u){var c=this.generateList(u);return c.prepend("["),c.add("]"),c}},n.default=i,e.exports=n.default})(Gn,Gn.exports);var
|
|
9
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return typeof u!="undefined"?u:this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(u){this.begin(u)}};return i.options={},i.performAction=function(u,c,d,m){function l(h,p){return c.yytext=c.yytext.substring(h,c.yyleng-p+h)}switch(d){case 0:if(c.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):c.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),c.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(c.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return c.yytext=l(1,2).replace(/\\"/g,'"'),80;case 32:return c.yytext=l(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return c.yytext=c.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},i.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},i}();a.lexer=r;function o(){this.yy={}}return o.prototype=a,a.Parser=o,new o}();n.default=t,e.exports=n.default})(Rn,Rn.exports);var Ni=Rn.exports,Dn={exports:{}},Tn={exports:{}};(function(e,n){n.__esModule=!0;function t(c){return c&&c.__esModule?c:{default:c}}var a=J,r=t(a);function o(){this.parents=[]}o.prototype={constructor:o,mutating:!1,acceptKey:function(d,m){var l=this.accept(d[m]);if(this.mutating){if(l&&!o.prototype[l.type])throw new r.default('Unexpected node type "'+l.type+'" found when accepting '+m+" on "+d.type);d[m]=l}},acceptRequired:function(d,m){if(this.acceptKey(d,m),!d[m])throw new r.default(d.type+" requires "+m)},acceptArray:function(d){for(var m=0,l=d.length;m<l;m++)this.acceptKey(d,m),d[m]||(d.splice(m,1),m--,l--)},accept:function(d){if(!!d){if(!this[d.type])throw new r.default("Unknown type: "+d.type,d);this.current&&this.parents.unshift(this.current),this.current=d;var m=this[d.type](d);if(this.current=this.parents.shift(),!this.mutating||m)return m;if(m!==!1)return d}},Program:function(d){this.acceptArray(d.body)},MustacheStatement:i,Decorator:i,BlockStatement:s,DecoratorBlock:s,PartialStatement:u,PartialBlockStatement:function(d){u.call(this,d),this.acceptKey(d,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(d){this.acceptArray(d.pairs)},HashPair:function(d){this.acceptRequired(d,"value")}};function i(c){this.acceptRequired(c,"path"),this.acceptArray(c.params),this.acceptKey(c,"hash")}function s(c){i.call(this,c),this.acceptKey(c,"program"),this.acceptKey(c,"inverse")}function u(c){this.acceptRequired(c,"name"),this.acceptArray(c.params),this.acceptKey(c,"hash")}n.default=o,e.exports=n.default})(Tn,Tn.exports);var Bt=Tn.exports;(function(e,n){n.__esModule=!0;function t(d){return d&&d.__esModule?d:{default:d}}var a=Bt,r=t(a);function o(){var d=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=d}o.prototype=new r.default,o.prototype.Program=function(d){var m=!this.options.ignoreStandalone,l=!this.isRootSeen;this.isRootSeen=!0;for(var h=d.body,p=0,f=h.length;p<f;p++){var g=h[p],y=this.accept(g);if(!!y){var v=i(h,p,l),z=s(h,p,l),k=y.openStandalone&&v,b=y.closeStandalone&&z,x=y.inlineStandalone&&v&&z;y.close&&u(h,p,!0),y.open&&c(h,p,!0),m&&x&&(u(h,p),c(h,p)&&g.type==="PartialStatement"&&(g.indent=/([ \t]+$)/.exec(h[p-1].original)[1])),m&&k&&(u((g.program||g.inverse).body),c(h,p)),m&&b&&(u(h,p),c((g.inverse||g.program).body))}}return d},o.prototype.BlockStatement=o.prototype.DecoratorBlock=o.prototype.PartialBlockStatement=function(d){this.accept(d.program),this.accept(d.inverse);var m=d.program||d.inverse,l=d.program&&d.inverse,h=l,p=l;if(l&&l.chained)for(h=l.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var f={open:d.openStrip.open,close:d.closeStrip.close,openStandalone:s(m.body),closeStandalone:i((h||m).body)};if(d.openStrip.close&&u(m.body,null,!0),l){var g=d.inverseStrip;g.open&&c(m.body,null,!0),g.close&&u(h.body,null,!0),d.closeStrip.open&&c(p.body,null,!0),!this.options.ignoreStandalone&&i(m.body)&&s(h.body)&&(c(m.body),u(h.body))}else d.closeStrip.open&&c(m.body,null,!0);return f},o.prototype.Decorator=o.prototype.MustacheStatement=function(d){return d.strip},o.prototype.PartialStatement=o.prototype.CommentStatement=function(d){var m=d.strip||{};return{inlineStandalone:!0,open:m.open,close:m.close}};function i(d,m,l){m===void 0&&(m=d.length);var h=d[m-1],p=d[m-2];if(!h)return l;if(h.type==="ContentStatement")return(p||!l?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original)}function s(d,m,l){m===void 0&&(m=-1);var h=d[m+1],p=d[m+2];if(!h)return l;if(h.type==="ContentStatement")return(p||!l?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original)}function u(d,m,l){var h=d[m==null?0:m+1];if(!(!h||h.type!=="ContentStatement"||!l&&h.rightStripped)){var p=h.value;h.value=h.value.replace(l?/^\s+/:/^[ \t]*\r?\n?/,""),h.rightStripped=h.value!==p}}function c(d,m,l){var h=d[m==null?d.length-1:m-1];if(!(!h||h.type!=="ContentStatement"||!l&&h.leftStripped)){var p=h.value;return h.value=h.value.replace(l?/\s+$/:/[ \t]+$/,""),h.leftStripped=h.value!==p,h.leftStripped}}n.default=o,e.exports=n.default})(Dn,Dn.exports);var Oi=Dn.exports,Z={};Z.__esModule=!0,Z.SourceLocation=Ti,Z.id=Mi,Z.stripFlags=Hi,Z.stripComment=Bi,Z.preparePath=Fi,Z.prepareMustache=Ui,Z.prepareRawBlock=Gi,Z.prepareBlock=Vi,Z.prepareProgram=Wi,Z.preparePartialBlock=Ki;function Ri(e){return e&&e.__esModule?e:{default:e}}var Di=J,Mn=Ri(Di);function Hn(e,n){if(n=n.path?n.path.original:n,e.path.original!==n){var t={loc:e.path.loc};throw new Mn.default(e.path.original+" doesn't match "+n,t)}}function Ti(e,n){this.source=e,this.start={line:n.first_line,column:n.first_column},this.end={line:n.last_line,column:n.last_column}}function Mi(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function Hi(e,n){return{open:e.charAt(2)==="~",close:n.charAt(n.length-3)==="~"}}function Bi(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function Fi(e,n,t){t=this.locInfo(t);for(var a=e?"@":"",r=[],o=0,i=0,s=n.length;i<s;i++){var u=n[i].part,c=n[i].original!==u;if(a+=(n[i].separator||"")+u,!c&&(u===".."||u==="."||u==="this")){if(r.length>0)throw new Mn.default("Invalid path: "+a,{loc:t});u===".."&&o++}else r.push(u)}return{type:"PathExpression",data:e,depth:o,parts:r,original:a,loc:t}}function Ui(e,n,t,a,r,o){var i=a.charAt(3)||a.charAt(2),s=i!=="{"&&i!=="&",u=/\*/.test(a);return{type:u?"Decorator":"MustacheStatement",path:e,params:n,hash:t,escaped:s,strip:r,loc:this.locInfo(o)}}function Gi(e,n,t,a){Hn(e,t),a=this.locInfo(a);var r={type:"Program",body:n,strip:{},loc:a};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:r,openStrip:{},inverseStrip:{},closeStrip:{},loc:a}}function Vi(e,n,t,a,r,o){a&&a.path&&Hn(e,a);var i=/\*/.test(e.open);n.blockParams=e.blockParams;var s=void 0,u=void 0;if(t){if(i)throw new Mn.default("Unexpected inverse block on decorator",t);t.chain&&(t.program.body[0].closeStrip=a.strip),u=t.strip,s=t.program}return r&&(r=s,s=n,n=r),{type:i?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:n,inverse:s,openStrip:e.strip,inverseStrip:u,closeStrip:a&&a.strip,loc:this.locInfo(o)}}function Wi(e,n){if(!n&&e.length){var t=e[0].loc,a=e[e.length-1].loc;t&&a&&(n={source:t.source,start:{line:t.start.line,column:t.start.column},end:{line:a.end.line,column:a.end.column}})}return{type:"Program",body:e,strip:{},loc:n}}function Ki(e,n,t,a){return Hn(e,t),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:n,openStrip:e.strip,closeStrip:t&&t.strip,loc:this.locInfo(a)}}Se.__esModule=!0,Se.parseWithoutProcessing=Ut,Se.parse=ns;function Yi(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function Ft(e){return e&&e.__esModule?e:{default:e}}var Zi=Ni,Bn=Ft(Zi),Qi=Oi,Ji=Ft(Qi),Xi=Z,$i=Yi(Xi),es=q;Se.parser=Bn.default;var Ye={};es.extend(Ye,$i);function Ut(e,n){if(e.type==="Program")return e;Bn.default.yy=Ye,Ye.locInfo=function(a){return new Ye.SourceLocation(n&&n.srcName,a)};var t=Bn.default.parse(e);return t}function ns(e,n){var t=Ut(e,n),a=new Ji.default(n);return a.accept(t)}var Le={};Le.__esModule=!0,Le.Compiler=Fn,Le.precompile=os,Le.compile=is;function Gt(e){return e&&e.__esModule?e:{default:e}}var ts=J,Ee=Gt(ts),Ce=q,as=Ht,Ae=Gt(as),rs=[].slice;function Fn(){}Fn.prototype={compiler:Fn,equals:function(n){var t=this.opcodes.length;if(n.opcodes.length!==t)return!1;for(var a=0;a<t;a++){var r=this.opcodes[a],o=n.opcodes[a];if(r.opcode!==o.opcode||!Vt(r.args,o.args))return!1}t=this.children.length;for(var a=0;a<t;a++)if(!this.children[a].equals(n.children[a]))return!1;return!0},guid:0,compile:function(n,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=Ce.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(n)},compileProgram:function(n){var t=new this.compiler,a=t.compile(n,this.options),r=this.guid++;return this.usePartial=this.usePartial||a.usePartial,this.children[r]=a,this.useDepths=this.useDepths||a.useDepths,r},accept:function(n){if(!this[n.type])throw new Ee.default("Unknown type: "+n.type,n);this.sourceNode.unshift(n);var t=this[n.type](n);return this.sourceNode.shift(),t},Program:function(n){this.options.blockParams.unshift(n.blockParams);for(var t=n.body,a=t.length,r=0;r<a;r++)this.accept(t[r]);return this.options.blockParams.shift(),this.isSimple=a===1,this.blockParams=n.blockParams?n.blockParams.length:0,this},BlockStatement:function(n){Wt(n);var t=n.program,a=n.inverse;t=t&&this.compileProgram(t),a=a&&this.compileProgram(a);var r=this.classifySexpr(n);r==="helper"?this.helperSexpr(n,t,a):r==="simple"?(this.simpleSexpr(n),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("blockValue",n.path.original)):(this.ambiguousSexpr(n,t,a),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(n){var t=n.program&&this.compileProgram(n.program),a=this.setupFullMustacheParams(n,t,void 0),r=n.path;this.useDecorators=!0,this.opcode("registerDecorator",a.length,r.original)},PartialStatement:function(n){this.usePartial=!0;var t=n.program;t&&(t=this.compileProgram(n.program));var a=n.params;if(a.length>1)throw new Ee.default("Unsupported number of partial arguments: "+a.length,n);a.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):a.push({type:"PathExpression",parts:[],depth:0}));var r=n.name.original,o=n.name.type==="SubExpression";o&&this.accept(n.name),this.setupFullMustacheParams(n,t,void 0,!0);var i=n.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",o,r,i),this.opcode("append")},PartialBlockStatement:function(n){this.PartialStatement(n)},MustacheStatement:function(n){this.SubExpression(n),n.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(n){this.DecoratorBlock(n)},ContentStatement:function(n){n.value&&this.opcode("appendContent",n.value)},CommentStatement:function(){},SubExpression:function(n){Wt(n);var t=this.classifySexpr(n);t==="simple"?this.simpleSexpr(n):t==="helper"?this.helperSexpr(n):this.ambiguousSexpr(n)},ambiguousSexpr:function(n,t,a){var r=n.path,o=r.parts[0],i=t!=null||a!=null;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",a),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",o,i)},simpleSexpr:function(n){var t=n.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(n,t,a){var r=this.setupFullMustacheParams(n,t,a),o=n.path,i=o.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",r.length,i);else{if(this.options.knownHelpersOnly)throw new Ee.default("You specified knownHelpersOnly, but used the unknown helper "+i,n);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",r.length,o.original,Ae.default.helpers.simpleId(o))}},PathExpression:function(n){this.addDepth(n.depth),this.opcode("getContext",n.depth);var t=n.parts[0],a=Ae.default.helpers.scopedId(n),r=!n.depth&&!a&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,n.parts):t?n.data?(this.options.data=!0,this.opcode("lookupData",n.depth,n.parts,n.strict)):this.opcode("lookupOnContext",n.parts,n.falsy,n.strict,a):this.opcode("pushContext")},StringLiteral:function(n){this.opcode("pushString",n.value)},NumberLiteral:function(n){this.opcode("pushLiteral",n.value)},BooleanLiteral:function(n){this.opcode("pushLiteral",n.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(n){var t=n.pairs,a=0,r=t.length;for(this.opcode("pushHash");a<r;a++)this.pushParam(t[a].value);for(;a--;)this.opcode("assignToHash",t[a].key);this.opcode("popHash")},opcode:function(n){this.opcodes.push({opcode:n,args:rs.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(n){!n||(this.useDepths=!0)},classifySexpr:function(n){var t=Ae.default.helpers.simpleId(n.path),a=t&&!!this.blockParamIndex(n.path.parts[0]),r=!a&&Ae.default.helpers.helperExpression(n),o=!a&&(r||t);if(o&&!r){var i=n.path.parts[0],s=this.options;s.knownHelpers[i]?r=!0:s.knownHelpersOnly&&(o=!1)}return r?"helper":o?"ambiguous":"simple"},pushParams:function(n){for(var t=0,a=n.length;t<a;t++)this.pushParam(n[t])},pushParam:function(n){var t=n.value!=null?n.value:n.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),n.depth&&this.addDepth(n.depth),this.opcode("getContext",n.depth||0),this.opcode("pushStringParam",t,n.type),n.type==="SubExpression"&&this.accept(n);else{if(this.trackIds){var a=void 0;if(n.parts&&!Ae.default.helpers.scopedId(n)&&!n.depth&&(a=this.blockParamIndex(n.parts[0])),a){var r=n.parts.slice(1).join(".");this.opcode("pushId","BlockParam",a,r)}else t=n.original||t,t.replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",n.type,t)}this.accept(n)}},setupFullMustacheParams:function(n,t,a,r){var o=n.params;return this.pushParams(o),this.opcode("pushProgram",t),this.opcode("pushProgram",a),n.hash?this.accept(n.hash):this.opcode("emptyHash",r),o},blockParamIndex:function(n){for(var t=0,a=this.options.blockParams.length;t<a;t++){var r=this.options.blockParams[t],o=r&&Ce.indexOf(r,n);if(r&&o>=0)return[t,o]}}};function os(e,n,t){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Ee.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);n=n||{},"data"in n||(n.data=!0),n.compat&&(n.useDepths=!0);var a=t.parse(e,n),r=new t.Compiler().compile(a,n);return new t.JavaScriptCompiler().compile(r,n)}function is(e,n,t){if(n===void 0&&(n={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Ee.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);n=Ce.extend({},n),"data"in n||(n.data=!0),n.compat&&(n.useDepths=!0);var a=void 0;function r(){var i=t.parse(e,n),s=new t.Compiler().compile(i,n),u=new t.JavaScriptCompiler().compile(s,n,void 0,!0);return t.template(u)}function o(i,s){return a||(a=r()),a.call(this,i,s)}return o._setup=function(i){return a||(a=r()),a._setup(i)},o._child=function(i,s,u,c){return a||(a=r()),a._child(i,s,u,c)},o}function Vt(e,n){if(e===n)return!0;if(Ce.isArray(e)&&Ce.isArray(n)&&e.length===n.length){for(var t=0;t<e.length;t++)if(!Vt(e[t],n[t]))return!1;return!0}}function Wt(e){if(!e.path.parts){var n=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[n.original+""],original:n.original+"",loc:n.loc}}}var Un={exports:{}},Gn={exports:{}},Pe={},Vn={},Ze={},Qe={},Kt;function ss(){if(Kt)return Qe;Kt=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Qe.encode=function(n){if(0<=n&&n<e.length)return e[n];throw new TypeError("Must be between 0 and 63: "+n)},Qe.decode=function(n){var t=65,a=90,r=97,o=122,i=48,s=57,u=43,c=47,d=26,m=52;return t<=n&&n<=a?n-t:r<=n&&n<=o?n-r+d:i<=n&&n<=s?n-i+m:n==u?62:n==c?63:-1},Qe}var Yt;function Zt(){if(Yt)return Ze;Yt=1;var e=ss(),n=5,t=1<<n,a=t-1,r=t;function o(s){return s<0?(-s<<1)+1:(s<<1)+0}function i(s){var u=(s&1)===1,c=s>>1;return u?-c:c}return Ze.encode=function(u){var c="",d,m=o(u);do d=m&a,m>>>=n,m>0&&(d|=r),c+=e.encode(d);while(m>0);return c},Ze.decode=function(u,c,d){var m=u.length,l=0,h=0,p,f;do{if(c>=m)throw new Error("Expected more digits in base 64 VLQ value.");if(f=e.decode(u.charCodeAt(c++)),f===-1)throw new Error("Invalid base64 digit: "+u.charAt(c-1));p=!!(f&r),f&=a,l=l+(f<<h),h+=n}while(p);d.value=i(l),d.rest=c},Ze}var Wn={},Qt;function je(){return Qt||(Qt=1,function(e){function n(k,b,x){if(b in k)return k[b];if(arguments.length===3)return x;throw new Error('"'+b+'" is a required argument.')}e.getArg=n;var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,a=/^data:.+\,.+$/;function r(k){var b=k.match(t);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}e.urlParse=r;function o(k){var b="";return k.scheme&&(b+=k.scheme+":"),b+="//",k.auth&&(b+=k.auth+"@"),k.host&&(b+=k.host),k.port&&(b+=":"+k.port),k.path&&(b+=k.path),b}e.urlGenerate=o;function i(k){var b=k,x=r(k);if(x){if(!x.path)return k;b=x.path}for(var w=e.isAbsolute(b),L=b.split(/\/+/),I,j=0,R=L.length-1;R>=0;R--)I=L[R],I==="."?L.splice(R,1):I===".."?j++:j>0&&(I===""?(L.splice(R+1,j),j=0):(L.splice(R,2),j--));return b=L.join("/"),b===""&&(b=w?"/":"."),x?(x.path=b,o(x)):b}e.normalize=i;function s(k,b){k===""&&(k="."),b===""&&(b=".");var x=r(b),w=r(k);if(w&&(k=w.path||"/"),x&&!x.scheme)return w&&(x.scheme=w.scheme),o(x);if(x||b.match(a))return b;if(w&&!w.host&&!w.path)return w.host=b,o(w);var L=b.charAt(0)==="/"?b:i(k.replace(/\/+$/,"")+"/"+b);return w?(w.path=L,o(w)):L}e.join=s,e.isAbsolute=function(k){return k.charAt(0)==="/"||t.test(k)};function u(k,b){k===""&&(k="."),k=k.replace(/\/$/,"");for(var x=0;b.indexOf(k+"/")!==0;){var w=k.lastIndexOf("/");if(w<0||(k=k.slice(0,w),k.match(/^([^\/]+:\/)?\/*$/)))return b;++x}return Array(x+1).join("../")+b.substr(k.length+1)}e.relative=u;var c=function(){var k=Object.create(null);return!("__proto__"in k)}();function d(k){return k}function m(k){return h(k)?"$"+k:k}e.toSetString=c?d:m;function l(k){return h(k)?k.slice(1):k}e.fromSetString=c?d:l;function h(k){if(!k)return!1;var b=k.length;if(b<9||k.charCodeAt(b-1)!==95||k.charCodeAt(b-2)!==95||k.charCodeAt(b-3)!==111||k.charCodeAt(b-4)!==116||k.charCodeAt(b-5)!==111||k.charCodeAt(b-6)!==114||k.charCodeAt(b-7)!==112||k.charCodeAt(b-8)!==95||k.charCodeAt(b-9)!==95)return!1;for(var x=b-10;x>=0;x--)if(k.charCodeAt(x)!==36)return!1;return!0}function p(k,b,x){var w=g(k.source,b.source);return w!==0||(w=k.originalLine-b.originalLine,w!==0)||(w=k.originalColumn-b.originalColumn,w!==0||x)||(w=k.generatedColumn-b.generatedColumn,w!==0)||(w=k.generatedLine-b.generatedLine,w!==0)?w:g(k.name,b.name)}e.compareByOriginalPositions=p;function f(k,b,x){var w=k.generatedLine-b.generatedLine;return w!==0||(w=k.generatedColumn-b.generatedColumn,w!==0||x)||(w=g(k.source,b.source),w!==0)||(w=k.originalLine-b.originalLine,w!==0)||(w=k.originalColumn-b.originalColumn,w!==0)?w:g(k.name,b.name)}e.compareByGeneratedPositionsDeflated=f;function g(k,b){return k===b?0:k===null?1:b===null?-1:k>b?1:-1}function y(k,b){var x=k.generatedLine-b.generatedLine;return x!==0||(x=k.generatedColumn-b.generatedColumn,x!==0)||(x=g(k.source,b.source),x!==0)||(x=k.originalLine-b.originalLine,x!==0)||(x=k.originalColumn-b.originalColumn,x!==0)?x:g(k.name,b.name)}e.compareByGeneratedPositionsInflated=y;function v(k){return JSON.parse(k.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=v;function z(k,b,x){if(b=b||"",k&&(k[k.length-1]!=="/"&&b[0]!=="/"&&(k+="/"),b=k+b),x){var w=r(x);if(!w)throw new Error("sourceMapURL could not be parsed");if(w.path){var L=w.path.lastIndexOf("/");L>=0&&(w.path=w.path.substring(0,L+1))}b=s(o(w),b)}return i(b)}e.computeSourceURL=z}(Wn)),Wn}var Kn={},Jt;function Xt(){if(Jt)return Kn;Jt=1;var e=je(),n=Object.prototype.hasOwnProperty,t=typeof Map!="undefined";function a(){this._array=[],this._set=t?new Map:Object.create(null)}return a.fromArray=function(o,i){for(var s=new a,u=0,c=o.length;u<c;u++)s.add(o[u],i);return s},a.prototype.size=function(){return t?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(o,i){var s=t?o:e.toSetString(o),u=t?this.has(o):n.call(this._set,s),c=this._array.length;(!u||i)&&this._array.push(o),u||(t?this._set.set(o,c):this._set[s]=c)},a.prototype.has=function(o){if(t)return this._set.has(o);var i=e.toSetString(o);return n.call(this._set,i)},a.prototype.indexOf=function(o){if(t){var i=this._set.get(o);if(i>=0)return i}else{var s=e.toSetString(o);if(n.call(this._set,s))return this._set[s]}throw new Error('"'+o+'" is not in the set.')},a.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},a.prototype.toArray=function(){return this._array.slice()},Kn.ArraySet=a,Kn}var Yn={},$t;function us(){if($t)return Yn;$t=1;var e=je();function n(a,r){var o=a.generatedLine,i=r.generatedLine,s=a.generatedColumn,u=r.generatedColumn;return i>o||i==o&&u>=s||e.compareByGeneratedPositionsInflated(a,r)<=0}function t(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return t.prototype.unsortedForEach=function(r,o){this._array.forEach(r,o)},t.prototype.add=function(r){n(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},t.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Yn.MappingList=t,Yn}var ea;function na(){if(ea)return Vn;ea=1;var e=Zt(),n=je(),t=Xt().ArraySet,a=us().MappingList;function r(o){o||(o={}),this._file=n.getArg(o,"file",null),this._sourceRoot=n.getArg(o,"sourceRoot",null),this._skipValidation=n.getArg(o,"skipValidation",!1),this._sources=new t,this._names=new t,this._mappings=new a,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(i){var s=i.sourceRoot,u=new r({file:i.file,sourceRoot:s});return i.eachMapping(function(c){var d={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source!=null&&(d.source=c.source,s!=null&&(d.source=n.relative(s,d.source)),d.original={line:c.originalLine,column:c.originalColumn},c.name!=null&&(d.name=c.name)),u.addMapping(d)}),i.sources.forEach(function(c){var d=c;s!==null&&(d=n.relative(s,c)),u._sources.has(d)||u._sources.add(d);var m=i.sourceContentFor(c);m!=null&&u.setSourceContent(c,m)}),u},r.prototype.addMapping=function(i){var s=n.getArg(i,"generated"),u=n.getArg(i,"original",null),c=n.getArg(i,"source",null),d=n.getArg(i,"name",null);this._skipValidation||this._validateMapping(s,u,c,d),c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),d!=null&&(d=String(d),this._names.has(d)||this._names.add(d)),this._mappings.add({generatedLine:s.line,generatedColumn:s.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:c,name:d})},r.prototype.setSourceContent=function(i,s){var u=i;this._sourceRoot!=null&&(u=n.relative(this._sourceRoot,u)),s!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(u)]=s):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(i,s,u){var c=s;if(s==null){if(i.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=i.file}var d=this._sourceRoot;d!=null&&(c=n.relative(d,c));var m=new t,l=new t;this._mappings.unsortedForEach(function(h){if(h.source===c&&h.originalLine!=null){var p=i.originalPositionFor({line:h.originalLine,column:h.originalColumn});p.source!=null&&(h.source=p.source,u!=null&&(h.source=n.join(u,h.source)),d!=null&&(h.source=n.relative(d,h.source)),h.originalLine=p.line,h.originalColumn=p.column,p.name!=null&&(h.name=p.name))}var f=h.source;f!=null&&!m.has(f)&&m.add(f);var g=h.name;g!=null&&!l.has(g)&&l.add(g)},this),this._sources=m,this._names=l,i.sources.forEach(function(h){var p=i.sourceContentFor(h);p!=null&&(u!=null&&(h=n.join(u,h)),d!=null&&(h=n.relative(d,h)),this.setSourceContent(h,p))},this)},r.prototype._validateMapping=function(i,s,u,c){if(s&&typeof s.line!="number"&&typeof s.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(i&&"line"in i&&"column"in i&&i.line>0&&i.column>=0&&!s&&!u&&!c)){if(i&&"line"in i&&"column"in i&&s&&"line"in s&&"column"in s&&i.line>0&&i.column>=0&&s.line>0&&s.column>=0&&u)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:i,source:u,original:s,name:c}))}},r.prototype._serializeMappings=function(){for(var i=0,s=1,u=0,c=0,d=0,m=0,l="",h,p,f,g,y=this._mappings.toArray(),v=0,z=y.length;v<z;v++){if(p=y[v],h="",p.generatedLine!==s)for(i=0;p.generatedLine!==s;)h+=";",s++;else if(v>0){if(!n.compareByGeneratedPositionsInflated(p,y[v-1]))continue;h+=","}h+=e.encode(p.generatedColumn-i),i=p.generatedColumn,p.source!=null&&(g=this._sources.indexOf(p.source),h+=e.encode(g-m),m=g,h+=e.encode(p.originalLine-1-c),c=p.originalLine-1,h+=e.encode(p.originalColumn-u),u=p.originalColumn,p.name!=null&&(f=this._names.indexOf(p.name),h+=e.encode(f-d),d=f)),l+=h}return l},r.prototype._generateSourcesContent=function(i,s){return i.map(function(u){if(!this._sourcesContents)return null;s!=null&&(u=n.relative(s,u));var c=n.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},r.prototype.toJSON=function(){var i={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(i.file=this._file),this._sourceRoot!=null&&(i.sourceRoot=this._sourceRoot),this._sourcesContents&&(i.sourcesContent=this._generateSourcesContent(i.sources,i.sourceRoot)),i},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},Vn.SourceMapGenerator=r,Vn}var qe={},Zn={},ta;function ls(){return ta||(ta=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function n(t,a,r,o,i,s){var u=Math.floor((a-t)/2)+t,c=i(r,o[u],!0);return c===0?u:c>0?a-u>1?n(u,a,r,o,i,s):s==e.LEAST_UPPER_BOUND?a<o.length?a:-1:u:u-t>1?n(t,u,r,o,i,s):s==e.LEAST_UPPER_BOUND?u:t<0?-1:t}e.search=function(a,r,o,i){if(r.length===0)return-1;var s=n(-1,r.length,a,r,o,i||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&o(r[s],r[s-1],!0)===0;)--s;return s}}(Zn)),Zn}var Qn={},aa;function ds(){if(aa)return Qn;aa=1;function e(a,r,o){var i=a[r];a[r]=a[o],a[o]=i}function n(a,r){return Math.round(a+Math.random()*(r-a))}function t(a,r,o,i){if(o<i){var s=n(o,i),u=o-1;e(a,s,i);for(var c=a[i],d=o;d<i;d++)r(a[d],c)<=0&&(u+=1,e(a,u,d));e(a,u+1,d);var m=u+1;t(a,r,o,m-1),t(a,r,m+1,i)}}return Qn.quickSort=function(a,r){t(a,r,0,a.length-1)},Qn}var ra;function cs(){if(ra)return qe;ra=1;var e=je(),n=ls(),t=Xt().ArraySet,a=Zt(),r=ds().quickSort;function o(c,d){var m=c;return typeof c=="string"&&(m=e.parseSourceMapInput(c)),m.sections!=null?new u(m,d):new i(m,d)}o.fromSourceMap=function(c,d){return i.fromSourceMap(c,d)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(d,m){var l=d.charAt(m);return l===";"||l===","},o.prototype._parseMappings=function(d,m){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(d,m,l){var h=m||null,p=l||o.GENERATED_ORDER,f;switch(p){case o.GENERATED_ORDER:f=this._generatedMappings;break;case o.ORIGINAL_ORDER:f=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var g=this.sourceRoot;f.map(function(y){var v=y.source===null?null:this._sources.at(y.source);return v=e.computeSourceURL(g,v,this._sourceMapURL),{source:v,generatedLine:y.generatedLine,generatedColumn:y.generatedColumn,originalLine:y.originalLine,originalColumn:y.originalColumn,name:y.name===null?null:this._names.at(y.name)}},this).forEach(d,h)},o.prototype.allGeneratedPositionsFor=function(d){var m=e.getArg(d,"line"),l={source:e.getArg(d,"source"),originalLine:m,originalColumn:e.getArg(d,"column",0)};if(l.source=this._findSourceIndex(l.source),l.source<0)return[];var h=[],p=this._findMapping(l,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(p>=0){var f=this._originalMappings[p];if(d.column===void 0)for(var g=f.originalLine;f&&f.originalLine===g;)h.push({line:e.getArg(f,"generatedLine",null),column:e.getArg(f,"generatedColumn",null),lastColumn:e.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++p];else for(var y=f.originalColumn;f&&f.originalLine===m&&f.originalColumn==y;)h.push({line:e.getArg(f,"generatedLine",null),column:e.getArg(f,"generatedColumn",null),lastColumn:e.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++p]}return h},qe.SourceMapConsumer=o;function i(c,d){var m=c;typeof c=="string"&&(m=e.parseSourceMapInput(c));var l=e.getArg(m,"version"),h=e.getArg(m,"sources"),p=e.getArg(m,"names",[]),f=e.getArg(m,"sourceRoot",null),g=e.getArg(m,"sourcesContent",null),y=e.getArg(m,"mappings"),v=e.getArg(m,"file",null);if(l!=this._version)throw new Error("Unsupported version: "+l);f&&(f=e.normalize(f)),h=h.map(String).map(e.normalize).map(function(z){return f&&e.isAbsolute(f)&&e.isAbsolute(z)?e.relative(f,z):z}),this._names=t.fromArray(p.map(String),!0),this._sources=t.fromArray(h,!0),this._absoluteSources=this._sources.toArray().map(function(z){return e.computeSourceURL(f,z,d)}),this.sourceRoot=f,this.sourcesContent=g,this._mappings=y,this._sourceMapURL=d,this.file=v}i.prototype=Object.create(o.prototype),i.prototype.consumer=o,i.prototype._findSourceIndex=function(c){var d=c;if(this.sourceRoot!=null&&(d=e.relative(this.sourceRoot,d)),this._sources.has(d))return this._sources.indexOf(d);var m;for(m=0;m<this._absoluteSources.length;++m)if(this._absoluteSources[m]==c)return m;return-1},i.fromSourceMap=function(d,m){var l=Object.create(i.prototype),h=l._names=t.fromArray(d._names.toArray(),!0),p=l._sources=t.fromArray(d._sources.toArray(),!0);l.sourceRoot=d._sourceRoot,l.sourcesContent=d._generateSourcesContent(l._sources.toArray(),l.sourceRoot),l.file=d._file,l._sourceMapURL=m,l._absoluteSources=l._sources.toArray().map(function(x){return e.computeSourceURL(l.sourceRoot,x,m)});for(var f=d._mappings.toArray().slice(),g=l.__generatedMappings=[],y=l.__originalMappings=[],v=0,z=f.length;v<z;v++){var k=f[v],b=new s;b.generatedLine=k.generatedLine,b.generatedColumn=k.generatedColumn,k.source&&(b.source=p.indexOf(k.source),b.originalLine=k.originalLine,b.originalColumn=k.originalColumn,k.name&&(b.name=h.indexOf(k.name)),y.push(b)),g.push(b)}return r(l.__originalMappings,e.compareByOriginalPositions),l},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}i.prototype._parseMappings=function(d,m){for(var l=1,h=0,p=0,f=0,g=0,y=0,v=d.length,z=0,k={},b={},x=[],w=[],L,I,j,R,pe;z<v;)if(d.charAt(z)===";")l++,z++,h=0;else if(d.charAt(z)===",")z++;else{for(L=new s,L.generatedLine=l,R=z;R<v&&!this._charIsMappingSeparator(d,R);R++);if(I=d.slice(z,R),j=k[I],j)z+=I.length;else{for(j=[];z<R;)a.decode(d,z,b),pe=b.value,z=b.rest,j.push(pe);if(j.length===2)throw new Error("Found a source, but no line and column");if(j.length===3)throw new Error("Found a source and line, but no column");k[I]=j}L.generatedColumn=h+j[0],h=L.generatedColumn,j.length>1&&(L.source=g+j[1],g+=j[1],L.originalLine=p+j[2],p=L.originalLine,L.originalLine+=1,L.originalColumn=f+j[3],f=L.originalColumn,j.length>4&&(L.name=y+j[4],y+=j[4])),w.push(L),typeof L.originalLine=="number"&&x.push(L)}r(w,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,r(x,e.compareByOriginalPositions),this.__originalMappings=x},i.prototype._findMapping=function(d,m,l,h,p,f){if(d[l]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+d[l]);if(d[h]<0)throw new TypeError("Column must be greater than or equal to 0, got "+d[h]);return n.search(d,m,p,f)},i.prototype.computeColumnSpans=function(){for(var d=0;d<this._generatedMappings.length;++d){var m=this._generatedMappings[d];if(d+1<this._generatedMappings.length){var l=this._generatedMappings[d+1];if(m.generatedLine===l.generatedLine){m.lastGeneratedColumn=l.generatedColumn-1;continue}}m.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(d){var m={generatedLine:e.getArg(d,"line"),generatedColumn:e.getArg(d,"column")},l=this._findMapping(m,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(d,"bias",o.GREATEST_LOWER_BOUND));if(l>=0){var h=this._generatedMappings[l];if(h.generatedLine===m.generatedLine){var p=e.getArg(h,"source",null);p!==null&&(p=this._sources.at(p),p=e.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var f=e.getArg(h,"name",null);return f!==null&&(f=this._names.at(f)),{source:p,line:e.getArg(h,"originalLine",null),column:e.getArg(h,"originalColumn",null),name:f}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(d){return d==null}):!1},i.prototype.sourceContentFor=function(d,m){if(!this.sourcesContent)return null;var l=this._findSourceIndex(d);if(l>=0)return this.sourcesContent[l];var h=d;this.sourceRoot!=null&&(h=e.relative(this.sourceRoot,h));var p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var f=h.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(f))return this.sourcesContent[this._sources.indexOf(f)];if((!p.path||p.path=="/")&&this._sources.has("/"+h))return this.sourcesContent[this._sources.indexOf("/"+h)]}if(m)return null;throw new Error('"'+h+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(d){var m=e.getArg(d,"source");if(m=this._findSourceIndex(m),m<0)return{line:null,column:null,lastColumn:null};var l={source:m,originalLine:e.getArg(d,"line"),originalColumn:e.getArg(d,"column")},h=this._findMapping(l,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(d,"bias",o.GREATEST_LOWER_BOUND));if(h>=0){var p=this._originalMappings[h];if(p.source===l.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},qe.BasicSourceMapConsumer=i;function u(c,d){var m=c;typeof c=="string"&&(m=e.parseSourceMapInput(c));var l=e.getArg(m,"version"),h=e.getArg(m,"sections");if(l!=this._version)throw new Error("Unsupported version: "+l);this._sources=new t,this._names=new t;var p={line:-1,column:0};this._sections=h.map(function(f){if(f.url)throw new Error("Support for url field in sections not implemented.");var g=e.getArg(f,"offset"),y=e.getArg(g,"line"),v=e.getArg(g,"column");if(y<p.line||y===p.line&&v<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=g,{generatedOffset:{generatedLine:y+1,generatedColumn:v+1},consumer:new o(e.getArg(f,"map"),d)}})}return u.prototype=Object.create(o.prototype),u.prototype.constructor=o,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var c=[],d=0;d<this._sections.length;d++)for(var m=0;m<this._sections[d].consumer.sources.length;m++)c.push(this._sections[d].consumer.sources[m]);return c}}),u.prototype.originalPositionFor=function(d){var m={generatedLine:e.getArg(d,"line"),generatedColumn:e.getArg(d,"column")},l=n.search(m,this._sections,function(p,f){var g=p.generatedLine-f.generatedOffset.generatedLine;return g||p.generatedColumn-f.generatedOffset.generatedColumn}),h=this._sections[l];return h?h.consumer.originalPositionFor({line:m.generatedLine-(h.generatedOffset.generatedLine-1),column:m.generatedColumn-(h.generatedOffset.generatedLine===m.generatedLine?h.generatedOffset.generatedColumn-1:0),bias:d.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(d){return d.consumer.hasContentsOfAllSources()})},u.prototype.sourceContentFor=function(d,m){for(var l=0;l<this._sections.length;l++){var h=this._sections[l],p=h.consumer.sourceContentFor(d,!0);if(p)return p}if(m)return null;throw new Error('"'+d+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(d){for(var m=0;m<this._sections.length;m++){var l=this._sections[m];if(l.consumer._findSourceIndex(e.getArg(d,"source"))!==-1){var h=l.consumer.generatedPositionFor(d);if(h){var p={line:h.line+(l.generatedOffset.generatedLine-1),column:h.column+(l.generatedOffset.generatedLine===h.line?l.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},u.prototype._parseMappings=function(d,m){this.__generatedMappings=[],this.__originalMappings=[];for(var l=0;l<this._sections.length;l++)for(var h=this._sections[l],p=h.consumer._generatedMappings,f=0;f<p.length;f++){var g=p[f],y=h.consumer._sources.at(g.source);y=e.computeSourceURL(h.consumer.sourceRoot,y,this._sourceMapURL),this._sources.add(y),y=this._sources.indexOf(y);var v=null;g.name&&(v=h.consumer._names.at(g.name),this._names.add(v),v=this._names.indexOf(v));var z={source:y,generatedLine:g.generatedLine+(h.generatedOffset.generatedLine-1),generatedColumn:g.generatedColumn+(h.generatedOffset.generatedLine===g.generatedLine?h.generatedOffset.generatedColumn-1:0),originalLine:g.originalLine,originalColumn:g.originalColumn,name:v};this.__generatedMappings.push(z),typeof z.originalLine=="number"&&this.__originalMappings.push(z)}r(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),r(this.__originalMappings,e.compareByOriginalPositions)},qe.IndexedSourceMapConsumer=u,qe}var Jn={},oa;function ps(){if(oa)return Jn;oa=1;var e=na().SourceMapGenerator,n=je(),t=/(\r?\n)/,a=10,r="$$$isSourceNode$$$";function o(i,s,u,c,d){this.children=[],this.sourceContents={},this.line=i==null?null:i,this.column=s==null?null:s,this.source=u==null?null:u,this.name=d==null?null:d,this[r]=!0,c!=null&&this.add(c)}return o.fromStringWithSourceMap=function(s,u,c){var d=new o,m=s.split(t),l=0,h=function(){var v=k(),z=k()||"";return v+z;function k(){return l<m.length?m[l++]:void 0}},p=1,f=0,g=null;return u.eachMapping(function(v){if(g!==null)if(p<v.generatedLine)y(g,h()),p++,f=0;else{var z=m[l]||"",k=z.substr(0,v.generatedColumn-f);m[l]=z.substr(v.generatedColumn-f),f=v.generatedColumn,y(g,k),g=v;return}for(;p<v.generatedLine;)d.add(h()),p++;if(f<v.generatedColumn){var z=m[l]||"";d.add(z.substr(0,v.generatedColumn)),m[l]=z.substr(v.generatedColumn),f=v.generatedColumn}g=v},this),l<m.length&&(g&&y(g,h()),d.add(m.splice(l).join(""))),u.sources.forEach(function(v){var z=u.sourceContentFor(v);z!=null&&(c!=null&&(v=n.join(c,v)),d.setSourceContent(v,z))}),d;function y(v,z){if(v===null||v.source===void 0)d.add(z);else{var k=c?n.join(c,v.source):v.source;d.add(new o(v.originalLine,v.originalColumn,k,z,v.name))}}},o.prototype.add=function(s){if(Array.isArray(s))s.forEach(function(u){this.add(u)},this);else if(s[r]||typeof s=="string")s&&this.children.push(s);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+s);return this},o.prototype.prepend=function(s){if(Array.isArray(s))for(var u=s.length-1;u>=0;u--)this.prepend(s[u]);else if(s[r]||typeof s=="string")this.children.unshift(s);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+s);return this},o.prototype.walk=function(s){for(var u,c=0,d=this.children.length;c<d;c++)u=this.children[c],u[r]?u.walk(s):u!==""&&s(u,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(s){var u,c,d=this.children.length;if(d>0){for(u=[],c=0;c<d-1;c++)u.push(this.children[c]),u.push(s);u.push(this.children[c]),this.children=u}return this},o.prototype.replaceRight=function(s,u){var c=this.children[this.children.length-1];return c[r]?c.replaceRight(s,u):typeof c=="string"?this.children[this.children.length-1]=c.replace(s,u):this.children.push("".replace(s,u)),this},o.prototype.setSourceContent=function(s,u){this.sourceContents[n.toSetString(s)]=u},o.prototype.walkSourceContents=function(s){for(var u=0,c=this.children.length;u<c;u++)this.children[u][r]&&this.children[u].walkSourceContents(s);for(var d=Object.keys(this.sourceContents),u=0,c=d.length;u<c;u++)s(n.fromSetString(d[u]),this.sourceContents[d[u]])},o.prototype.toString=function(){var s="";return this.walk(function(u){s+=u}),s},o.prototype.toStringWithSourceMap=function(s){var u={code:"",line:1,column:0},c=new e(s),d=!1,m=null,l=null,h=null,p=null;return this.walk(function(f,g){u.code+=f,g.source!==null&&g.line!==null&&g.column!==null?((m!==g.source||l!==g.line||h!==g.column||p!==g.name)&&c.addMapping({source:g.source,original:{line:g.line,column:g.column},generated:{line:u.line,column:u.column},name:g.name}),m=g.source,l=g.line,h=g.column,p=g.name,d=!0):d&&(c.addMapping({generated:{line:u.line,column:u.column}}),m=null,d=!1);for(var y=0,v=f.length;y<v;y++)f.charCodeAt(y)===a?(u.line++,u.column=0,y+1===v?(m=null,d=!1):d&&c.addMapping({source:g.source,original:{line:g.line,column:g.column},generated:{line:u.line,column:u.column},name:g.name})):u.column++}),this.walkSourceContents(function(f,g){c.setSourceContent(f,g)}),{code:u.code,map:c}},Jn.SourceNode=o,Jn}var ia;function hs(){return ia||(ia=1,Pe.SourceMapGenerator=na().SourceMapGenerator,Pe.SourceMapConsumer=cs().SourceMapConsumer,Pe.SourceNode=ps().SourceNode),Pe}(function(e,n){n.__esModule=!0;var t=q,a=void 0;try{var r=hs();a=r.SourceNode}catch(s){}a||(a=function(s,u,c,d){this.src="",d&&this.add(d)},a.prototype={add:function(u){t.isArray(u)&&(u=u.join("")),this.src+=u},prepend:function(u){t.isArray(u)&&(u=u.join("")),this.src=u+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function o(s,u,c){if(t.isArray(s)){for(var d=[],m=0,l=s.length;m<l;m++)d.push(u.wrap(s[m],c));return d}else if(typeof s=="boolean"||typeof s=="number")return s+"";return s}function i(s){this.srcFile=s,this.source=[]}i.prototype={isEmpty:function(){return!this.source.length},prepend:function(u,c){this.source.unshift(this.wrap(u,c))},push:function(u,c){this.source.push(this.wrap(u,c))},merge:function(){var u=this.empty();return this.each(function(c){u.add([" ",c,`
|
|
10
|
+
`])}),u},each:function(u){for(var c=0,d=this.source.length;c<d;c++)u(this.source[c])},empty:function(){var u=this.currentLocation||{start:{}};return new a(u.start.line,u.start.column,this.srcFile)},wrap:function(u){var c=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return u instanceof a?u:(u=o(u,this,c),new a(c.start.line,c.start.column,this.srcFile,u))},functionCall:function(u,c,d){return d=this.generateList(d),this.wrap([u,c?"."+c+"(":"(",d,")"])},quotedString:function(u){return'"'+(u+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(u){var c=this,d=[];Object.keys(u).forEach(function(l){var h=o(u[l],c);h!=="undefined"&&d.push([c.quotedString(l),":",h])});var m=this.generateList(d);return m.prepend("{"),m.add("}"),m},generateList:function(u){for(var c=this.empty(),d=0,m=u.length;d<m;d++)d&&c.add(","),c.add(o(u[d],this));return c},generateArray:function(u){var c=this.generateList(u);return c.prepend("["),c.add("]"),c}},n.default=i,e.exports=n.default})(Gn,Gn.exports);var ms=Gn.exports;(function(e,n){n.__esModule=!0;function t(l){return l&&l.__esModule?l:{default:l}}var a=Y,r=J,o=t(r),i=q,s=ms,u=t(s);function c(l){this.value=l}function d(){}d.prototype={nameLookup:function(h,p){return this.internalNameLookup(h,p)},depthedLookup:function(h){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(h),")"]},compilerInfo:function(){var h=a.COMPILER_REVISION,p=a.REVISION_CHANGES[h];return[h,p]},appendToBuffer:function(h,p,f){return i.isArray(h)||(h=[h]),h=this.source.wrap(h,p),this.environment.isSimple?["return ",h,";"]:f?["buffer += ",h,";"]:(h.appendToBuffer=!0,h)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(h,p){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",h,",",JSON.stringify(p),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(h,p,f,g){this.environment=h,this.options=p,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!g,this.name=this.environment.name,this.isChild=!!f,this.context=f||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(h,p),this.useDepths=this.useDepths||h.useDepths||h.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||h.useBlockParams;var y=h.opcodes,v=void 0,z=void 0,k=void 0,b=void 0;for(k=0,b=y.length;k<b;k++)v=y[k],this.source.currentLocation=v.loc,z=z||v.loc,this[v.opcode].apply(this,v.args);if(this.source.currentLocation=z,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new o.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|
11
11
|
`]),this.decorators.push("return fn;"),g?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
12
12
|
`),this.decorators.push(`}
|
|
13
13
|
`),this.decorators=this.decorators.merge()));var x=this.createFunctionContext(g);if(this.isChild)return x;var w={compiler:this.compilerInfo(),main:x};this.decorators&&(w.main_d=this.decorators,w.useDecorators=!0);var L=this.context,I=L.programs,j=L.decorators;for(k=0,b=I.length;k<b;k++)I[k]&&(w[k]=I[k],j[k]&&(w[k+"_d"]=j[k],w.useDecorators=!0));return this.environment.usePartial&&(w.usePartial=!0),this.options.data&&(w.useData=!0),this.useDepths&&(w.useDepths=!0),this.useBlockParams&&(w.useBlockParams=!0),this.options.compat&&(w.compat=!0),g?w.compilerOptions=this.options:(w.compiler=JSON.stringify(w.compiler),this.source.currentLocation={start:{line:1,column:0}},w=this.objectLiteral(w),p.srcName?(w=w.toStringWithSourceMap({file:p.destName}),w.map=w.map&&w.map.toString()):w=w.toString()),w},preamble:function(){this.lastContext=0,this.source=new u.default(this.options.srcName),this.decorators=new u.default(this.options.srcName)},createFunctionContext:function(h){var p=this,f="",g=this.stackVars.concat(this.registers.list);g.length>0&&(f+=", "+g.join(", "));var y=0;Object.keys(this.aliases).forEach(function(k){var b=p.aliases[k];b.children&&b.referenceCount>1&&(f+=", alias"+ ++y+"="+k,b.children[0]="alias"+y)}),this.lookupPropertyFunctionIsUsed&&(f+=", "+this.lookupPropertyFunctionVarDeclaration());var v=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&v.push("blockParams"),this.useDepths&&v.push("depths");var z=this.mergeSource(f);return h?(v.push(z),Function.apply(this,v)):this.source.wrap(["function(",v.join(","),`) {
|
|
@@ -19,7 +19,7 @@ Expecting `+R.join(", ")+", got '"+(this.terminals_[z]||z)+"'":pe="Parse error o
|
|
|
19
19
|
}
|
|
20
20
|
return undefined
|
|
21
21
|
}
|
|
22
|
-
`.trim()},blockValue:function(h){var p=this.aliasable("container.hooks.blockHelperMissing"),f=[this.contextName(0)];this.setupHelperArgs(h,0,f);var g=this.popStack();f.splice(1,0,g),this.push(this.source.functionCall(p,"call",f))},ambiguousBlockValue:function(){var h=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var f=this.topStack();p.splice(1,0,f),this.pushSource(["if (!",this.lastHelper,") { ",f," = ",this.source.functionCall(h,"call",p),"}"])},appendContent:function(h){this.pendingContent?h=this.pendingContent+h:this.pendingLocation=this.source.currentLocation,this.pendingContent=h},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var h=this.popStack();this.pushSource(["if (",h," != null) { ",this.appendToBuffer(h,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(h){this.lastContext=h},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(h,p,f,g){var y=0;!g&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(h[y++])):this.pushContext(),this.resolvePath("context",h,y,p,f)},lookupBlockParam:function(h,p){this.useBlockParams=!0,this.push(["blockParams[",h[0],"][",h[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(h,p,f){h?this.pushStackLiteral("container.data(data, "+h+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,f)},resolvePath:function(h,p,f,g,y){var v=this;if(this.options.strict||this.options.assumeObjects){this.push(m(this.options.strict&&y,this,p,f,h));return}for(var z=p.length;f<z;f++)this.replaceStack(function(k){var b=v.nameLookup(k,p[f],h);return g?[" && ",b]:[" != null ? ",b," : ",k]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(h,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof h=="string"?this.pushString(h):this.pushStackLiteral(h))},emptyHash:function(h){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(h?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var h=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(h.ids)),this.stringParams&&(this.push(this.objectLiteral(h.contexts)),this.push(this.objectLiteral(h.types))),this.push(this.objectLiteral(h.values))},pushString:function(h){this.pushStackLiteral(this.quotedString(h))},pushLiteral:function(h){this.pushStackLiteral(h)},pushProgram:function(h){h!=null?this.pushStackLiteral(this.programExpression(h)):this.pushStackLiteral(null)},registerDecorator:function(h,p){var f=this.nameLookup("decorators",p,"decorator"),g=this.setupHelperArgs(p,h);this.decorators.push(["fn = ",this.decorators.functionCall(f,"",["fn","props","container",g])," || fn;"])},invokeHelper:function(h,p,f){var g=this.popStack(),y=this.setupHelper(h,p),v=[];f&&v.push(y.name),v.push(g),this.options.strict||v.push(this.aliasable("container.hooks.helperMissing"));var z=["(",this.itemsSeparatedBy(v,"||"),")"],k=this.source.functionCall(z,"call",y.callParams);this.push(k)},itemsSeparatedBy:function(h,p){var f=[];f.push(h[0]);for(var g=1;g<h.length;g++)f.push(p,h[g]);return f},invokeKnownHelper:function(h,p){var f=this.setupHelper(h,p);this.push(this.source.functionCall(f.name,"call",f.callParams))},invokeAmbiguous:function(h,p){this.useRegister("helper");var f=this.popStack();this.emptyHash();var g=this.setupHelper(0,h,p),y=this.lastHelper=this.nameLookup("helpers",h,"helper"),v=["(","(helper = ",y," || ",f,")"];this.options.strict||(v[0]="(helper = ",v.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",v,g.paramsInit?["),(",g.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",g.callParams)," : helper))"])},invokePartial:function(h,p,f){var g=[],y=this.setupParams(p,1,g);h&&(p=this.popStack(),delete y.name),f&&(y.indent=JSON.stringify(f)),y.helpers="helpers",y.partials="partials",y.decorators="container.decorators",h?g.unshift(p):g.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(y.depths="depths"),y=this.objectLiteral(y),g.push(y),this.push(this.source.functionCall("container.invokePartial","",g))},assignToHash:function(h){var p=this.popStack(),f=void 0,g=void 0,y=void 0;this.trackIds&&(y=this.popStack()),this.stringParams&&(g=this.popStack(),f=this.popStack());var v=this.hash;f&&(v.contexts[h]=f),g&&(v.types[h]=g),y&&(v.ids[h]=y),v.values[h]=p},pushId:function(h,p,f){h==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(f?" + "+JSON.stringify("."+f):"")):h==="PathExpression"?this.pushString(p):h==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:d,compileChildren:function(h,p){for(var f=h.children,g=void 0,y=void 0,v=0,z=f.length;v<z;v++){g=f[v],y=new this.compiler;var k=this.matchExistingProgram(g);if(k==null){this.context.programs.push("");var b=this.context.programs.length;g.index=b,g.name="program"+b,this.context.programs[b]=y.compile(g,p,this.context,!this.precompile),this.context.decorators[b]=y.decorators,this.context.environments[b]=g,this.useDepths=this.useDepths||y.useDepths,this.useBlockParams=this.useBlockParams||y.useBlockParams,g.useDepths=this.useDepths,g.useBlockParams=this.useBlockParams}else g.index=k.index,g.name="program"+k.index,this.useDepths=this.useDepths||k.useDepths,this.useBlockParams=this.useBlockParams||k.useBlockParams}},matchExistingProgram:function(h){for(var p=0,f=this.context.environments.length;p<f;p++){var g=this.context.environments[p];if(g&&g.equals(h))return g}},programExpression:function(h){var p=this.environment.children[h],f=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&f.push("blockParams"),this.useDepths&&f.push("depths"),"container.program("+f.join(", ")+")"},useRegister:function(h){this.registers[h]||(this.registers[h]=!0,this.registers.list.push(h))},push:function(h){return h instanceof c||(h=this.source.wrap(h)),this.inlineStack.push(h),h},pushStackLiteral:function(h){this.push(new c(h))},pushSource:function(h){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),h&&this.source.push(h)},replaceStack:function(h){var p=["("],f=void 0,g=void 0,y=void 0;if(!this.isInline())throw new o.default("replaceStack on non-inline");var v=this.popStack(!0);if(v instanceof c)f=[v.value],p=["(",f],y=!0;else{g=!0;var z=this.incrStack();p=["((",this.push(z)," = ",v,")"],f=this.topStack()}var k=h.call(this,f);y||this.popStack(),g&&this.stackSlot--,this.push(p.concat(k,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var h=this.inlineStack;this.inlineStack=[];for(var p=0,f=h.length;p<f;p++){var g=h[p];if(g instanceof c)this.compileStack.push(g);else{var y=this.incrStack();this.pushSource([y," = ",g,";"]),this.compileStack.push(y)}}},isInline:function(){return this.inlineStack.length},popStack:function(h){var p=this.isInline(),f=(p?this.inlineStack:this.compileStack).pop();if(!h&&f instanceof c)return f.value;if(!p){if(!this.stackSlot)throw new o.default("Invalid stack pop");this.stackSlot--}return f},topStack:function(){var h=this.isInline()?this.inlineStack:this.compileStack,p=h[h.length-1];return p instanceof c?p.value:p},contextName:function(h){return this.useDepths&&h?"depths["+h+"]":"depth"+h},quotedString:function(h){return this.source.quotedString(h)},objectLiteral:function(h){return this.source.objectLiteral(h)},aliasable:function(h){var p=this.aliases[h];return p?(p.referenceCount++,p):(p=this.aliases[h]=this.source.wrap(h),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(h,p,f){var g=[],y=this.setupHelperArgs(p,h,g,f),v=this.nameLookup("helpers",p,"helper"),z=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:g,paramsInit:y,name:v,callParams:[z].concat(g)}},setupParams:function(h,p,f){var g={},y=[],v=[],z=[],k=!f,b=void 0;k&&(f=[]),g.name=this.quotedString(h),g.hash=this.popStack(),this.trackIds&&(g.hashIds=this.popStack()),this.stringParams&&(g.hashTypes=this.popStack(),g.hashContexts=this.popStack());var x=this.popStack(),w=this.popStack();(w||x)&&(g.fn=w||"container.noop",g.inverse=x||"container.noop");for(var L=p;L--;)b=this.popStack(),f[L]=b,this.trackIds&&(z[L]=this.popStack()),this.stringParams&&(v[L]=this.popStack(),y[L]=this.popStack());return k&&(g.args=this.source.generateArray(f)),this.trackIds&&(g.ids=this.source.generateArray(z)),this.stringParams&&(g.types=this.source.generateArray(v),g.contexts=this.source.generateArray(y)),this.options.data&&(g.data="data"),this.useBlockParams&&(g.blockParams="blockParams"),g},setupHelperArgs:function(h,p,f,g){var y=this.setupParams(h,p,f);return y.loc=JSON.stringify(this.source.currentLocation),y=this.objectLiteral(y),g?(this.useRegister("options"),f.push("options"),["options=",y]):f?(f.push(y),""):y}},function(){for(var l="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),h=d.RESERVED_WORDS={},p=0,f=l.length;p<f;p++)h[l[p]]=!0}(),d.isValidJavaScriptVariableName=function(l){return!d.RESERVED_WORDS[l]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(l)};function m(l,h,p,f,g){var y=h.popStack(),v=p.length;for(l&&v--;f<v;f++)y=h.nameLookup(y,p[f],g);return l?[h.aliasable("container.strict"),"(",y,", ",h.quotedString(p[f]),", ",JSON.stringify(h.source.currentLocation)," )"]:y}n.default=d,e.exports=n.default})(Un,Un.exports);var ms=Un.exports;(function(e,n){n.__esModule=!0;function t(v){return v&&v.__esModule?v:{default:v}}var a=qi,r=t(a),o=Bt,i=t(o),s=Se,u=Le,c=ms,d=t(c),m=Ht,l=t(m),h=Mt,p=t(h),f=r.default.create;function g(){var v=f();return v.compile=function(z,k){return u.compile(z,k,v)},v.precompile=function(z,k){return u.precompile(z,k,v)},v.AST=i.default,v.Compiler=u.Compiler,v.JavaScriptCompiler=d.default,v.Parser=s.parser,v.parse=s.parse,v.parseWithoutProcessing=s.parseWithoutProcessing,v}var y=g();y.create=g,p.default(y),y.Visitor=l.default,y.default=y,n.default=y,e.exports=n.default})(B,B.exports);var fs=B.exports,de=Q(fs),gs=`<h1>
|
|
22
|
+
`.trim()},blockValue:function(h){var p=this.aliasable("container.hooks.blockHelperMissing"),f=[this.contextName(0)];this.setupHelperArgs(h,0,f);var g=this.popStack();f.splice(1,0,g),this.push(this.source.functionCall(p,"call",f))},ambiguousBlockValue:function(){var h=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var f=this.topStack();p.splice(1,0,f),this.pushSource(["if (!",this.lastHelper,") { ",f," = ",this.source.functionCall(h,"call",p),"}"])},appendContent:function(h){this.pendingContent?h=this.pendingContent+h:this.pendingLocation=this.source.currentLocation,this.pendingContent=h},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var h=this.popStack();this.pushSource(["if (",h," != null) { ",this.appendToBuffer(h,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(h){this.lastContext=h},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(h,p,f,g){var y=0;!g&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(h[y++])):this.pushContext(),this.resolvePath("context",h,y,p,f)},lookupBlockParam:function(h,p){this.useBlockParams=!0,this.push(["blockParams[",h[0],"][",h[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(h,p,f){h?this.pushStackLiteral("container.data(data, "+h+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,f)},resolvePath:function(h,p,f,g,y){var v=this;if(this.options.strict||this.options.assumeObjects){this.push(m(this.options.strict&&y,this,p,f,h));return}for(var z=p.length;f<z;f++)this.replaceStack(function(k){var b=v.nameLookup(k,p[f],h);return g?[" && ",b]:[" != null ? ",b," : ",k]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(h,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof h=="string"?this.pushString(h):this.pushStackLiteral(h))},emptyHash:function(h){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(h?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var h=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(h.ids)),this.stringParams&&(this.push(this.objectLiteral(h.contexts)),this.push(this.objectLiteral(h.types))),this.push(this.objectLiteral(h.values))},pushString:function(h){this.pushStackLiteral(this.quotedString(h))},pushLiteral:function(h){this.pushStackLiteral(h)},pushProgram:function(h){h!=null?this.pushStackLiteral(this.programExpression(h)):this.pushStackLiteral(null)},registerDecorator:function(h,p){var f=this.nameLookup("decorators",p,"decorator"),g=this.setupHelperArgs(p,h);this.decorators.push(["fn = ",this.decorators.functionCall(f,"",["fn","props","container",g])," || fn;"])},invokeHelper:function(h,p,f){var g=this.popStack(),y=this.setupHelper(h,p),v=[];f&&v.push(y.name),v.push(g),this.options.strict||v.push(this.aliasable("container.hooks.helperMissing"));var z=["(",this.itemsSeparatedBy(v,"||"),")"],k=this.source.functionCall(z,"call",y.callParams);this.push(k)},itemsSeparatedBy:function(h,p){var f=[];f.push(h[0]);for(var g=1;g<h.length;g++)f.push(p,h[g]);return f},invokeKnownHelper:function(h,p){var f=this.setupHelper(h,p);this.push(this.source.functionCall(f.name,"call",f.callParams))},invokeAmbiguous:function(h,p){this.useRegister("helper");var f=this.popStack();this.emptyHash();var g=this.setupHelper(0,h,p),y=this.lastHelper=this.nameLookup("helpers",h,"helper"),v=["(","(helper = ",y," || ",f,")"];this.options.strict||(v[0]="(helper = ",v.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",v,g.paramsInit?["),(",g.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",g.callParams)," : helper))"])},invokePartial:function(h,p,f){var g=[],y=this.setupParams(p,1,g);h&&(p=this.popStack(),delete y.name),f&&(y.indent=JSON.stringify(f)),y.helpers="helpers",y.partials="partials",y.decorators="container.decorators",h?g.unshift(p):g.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(y.depths="depths"),y=this.objectLiteral(y),g.push(y),this.push(this.source.functionCall("container.invokePartial","",g))},assignToHash:function(h){var p=this.popStack(),f=void 0,g=void 0,y=void 0;this.trackIds&&(y=this.popStack()),this.stringParams&&(g=this.popStack(),f=this.popStack());var v=this.hash;f&&(v.contexts[h]=f),g&&(v.types[h]=g),y&&(v.ids[h]=y),v.values[h]=p},pushId:function(h,p,f){h==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(f?" + "+JSON.stringify("."+f):"")):h==="PathExpression"?this.pushString(p):h==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:d,compileChildren:function(h,p){for(var f=h.children,g=void 0,y=void 0,v=0,z=f.length;v<z;v++){g=f[v],y=new this.compiler;var k=this.matchExistingProgram(g);if(k==null){this.context.programs.push("");var b=this.context.programs.length;g.index=b,g.name="program"+b,this.context.programs[b]=y.compile(g,p,this.context,!this.precompile),this.context.decorators[b]=y.decorators,this.context.environments[b]=g,this.useDepths=this.useDepths||y.useDepths,this.useBlockParams=this.useBlockParams||y.useBlockParams,g.useDepths=this.useDepths,g.useBlockParams=this.useBlockParams}else g.index=k.index,g.name="program"+k.index,this.useDepths=this.useDepths||k.useDepths,this.useBlockParams=this.useBlockParams||k.useBlockParams}},matchExistingProgram:function(h){for(var p=0,f=this.context.environments.length;p<f;p++){var g=this.context.environments[p];if(g&&g.equals(h))return g}},programExpression:function(h){var p=this.environment.children[h],f=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&f.push("blockParams"),this.useDepths&&f.push("depths"),"container.program("+f.join(", ")+")"},useRegister:function(h){this.registers[h]||(this.registers[h]=!0,this.registers.list.push(h))},push:function(h){return h instanceof c||(h=this.source.wrap(h)),this.inlineStack.push(h),h},pushStackLiteral:function(h){this.push(new c(h))},pushSource:function(h){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),h&&this.source.push(h)},replaceStack:function(h){var p=["("],f=void 0,g=void 0,y=void 0;if(!this.isInline())throw new o.default("replaceStack on non-inline");var v=this.popStack(!0);if(v instanceof c)f=[v.value],p=["(",f],y=!0;else{g=!0;var z=this.incrStack();p=["((",this.push(z)," = ",v,")"],f=this.topStack()}var k=h.call(this,f);y||this.popStack(),g&&this.stackSlot--,this.push(p.concat(k,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var h=this.inlineStack;this.inlineStack=[];for(var p=0,f=h.length;p<f;p++){var g=h[p];if(g instanceof c)this.compileStack.push(g);else{var y=this.incrStack();this.pushSource([y," = ",g,";"]),this.compileStack.push(y)}}},isInline:function(){return this.inlineStack.length},popStack:function(h){var p=this.isInline(),f=(p?this.inlineStack:this.compileStack).pop();if(!h&&f instanceof c)return f.value;if(!p){if(!this.stackSlot)throw new o.default("Invalid stack pop");this.stackSlot--}return f},topStack:function(){var h=this.isInline()?this.inlineStack:this.compileStack,p=h[h.length-1];return p instanceof c?p.value:p},contextName:function(h){return this.useDepths&&h?"depths["+h+"]":"depth"+h},quotedString:function(h){return this.source.quotedString(h)},objectLiteral:function(h){return this.source.objectLiteral(h)},aliasable:function(h){var p=this.aliases[h];return p?(p.referenceCount++,p):(p=this.aliases[h]=this.source.wrap(h),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(h,p,f){var g=[],y=this.setupHelperArgs(p,h,g,f),v=this.nameLookup("helpers",p,"helper"),z=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:g,paramsInit:y,name:v,callParams:[z].concat(g)}},setupParams:function(h,p,f){var g={},y=[],v=[],z=[],k=!f,b=void 0;k&&(f=[]),g.name=this.quotedString(h),g.hash=this.popStack(),this.trackIds&&(g.hashIds=this.popStack()),this.stringParams&&(g.hashTypes=this.popStack(),g.hashContexts=this.popStack());var x=this.popStack(),w=this.popStack();(w||x)&&(g.fn=w||"container.noop",g.inverse=x||"container.noop");for(var L=p;L--;)b=this.popStack(),f[L]=b,this.trackIds&&(z[L]=this.popStack()),this.stringParams&&(v[L]=this.popStack(),y[L]=this.popStack());return k&&(g.args=this.source.generateArray(f)),this.trackIds&&(g.ids=this.source.generateArray(z)),this.stringParams&&(g.types=this.source.generateArray(v),g.contexts=this.source.generateArray(y)),this.options.data&&(g.data="data"),this.useBlockParams&&(g.blockParams="blockParams"),g},setupHelperArgs:function(h,p,f,g){var y=this.setupParams(h,p,f);return y.loc=JSON.stringify(this.source.currentLocation),y=this.objectLiteral(y),g?(this.useRegister("options"),f.push("options"),["options=",y]):f?(f.push(y),""):y}},function(){for(var l="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),h=d.RESERVED_WORDS={},p=0,f=l.length;p<f;p++)h[l[p]]=!0}(),d.isValidJavaScriptVariableName=function(l){return!d.RESERVED_WORDS[l]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(l)};function m(l,h,p,f,g){var y=h.popStack(),v=p.length;for(l&&v--;f<v;f++)y=h.nameLookup(y,p[f],g);return l?[h.aliasable("container.strict"),"(",y,", ",h.quotedString(p[f]),", ",JSON.stringify(h.source.currentLocation)," )"]:y}n.default=d,e.exports=n.default})(Un,Un.exports);var fs=Un.exports;(function(e,n){n.__esModule=!0;function t(v){return v&&v.__esModule?v:{default:v}}var a=Ii,r=t(a),o=Ht,i=t(o),s=Se,u=Le,c=fs,d=t(c),m=Bt,l=t(m),h=Mt,p=t(h),f=r.default.create;function g(){var v=f();return v.compile=function(z,k){return u.compile(z,k,v)},v.precompile=function(z,k){return u.precompile(z,k,v)},v.AST=i.default,v.Compiler=u.Compiler,v.JavaScriptCompiler=d.default,v.Parser=s.parser,v.parse=s.parse,v.parseWithoutProcessing=s.parseWithoutProcessing,v}var y=g();y.create=g,p.default(y),y.Visitor=l.default,y.default=y,n.default=y,e.exports=n.default})(H,H.exports);var gs=H.exports,X=Q(gs),vs=`<h1>
|
|
23
23
|
{{#if header}} {{exp-format header}} {{else}}
|
|
24
24
|
{{{t "consent-garden.header" experiment=experiment.name}}}
|
|
25
25
|
{{/if}}
|
|
@@ -325,7 +325,7 @@ Expecting `+R.join(", ")+", got '"+(this.terminals_[z]||z)+"'":pe="Parse error o
|
|
|
325
325
|
htmlSafe=true
|
|
326
326
|
}}
|
|
327
327
|
{{/if}}
|
|
328
|
-
</p>`,
|
|
328
|
+
</p>`,ks=`<h1>
|
|
329
329
|
{{t "consent-template-5.header"}}:
|
|
330
330
|
{{experiment.name}}
|
|
331
331
|
</h1>
|
|
@@ -500,7 +500,7 @@ Expecting `+R.join(", ")+", got '"+(this.terminals_[z]||z)+"'":pe="Parse error o
|
|
|
500
500
|
</p>
|
|
501
501
|
<p>
|
|
502
502
|
{{t "consent-template-5.contact-statement-2" only_adult=prompt_only_adults}}
|
|
503
|
-
</p>`,
|
|
503
|
+
</p>`,bs=`<div id="consent-video-trial">
|
|
504
504
|
<div class="left-column">{{{consent}}}</div>
|
|
505
505
|
<div class="right-column">
|
|
506
506
|
<div id="{{msg_container_id}}">{{t
|
|
@@ -545,40 +545,40 @@ Expecting `+R.join(", ")+", got '"+(this.terminals_[z]||z)+"'":pe="Parse error o
|
|
|
545
545
|
<button id="next" class="jspsych-btn" disabled>Next</button>
|
|
546
546
|
</div>
|
|
547
547
|
|
|
548
|
-
</div>`;class bs extends Error{constructor(n){super(`"${n}" locale not found.`)}}class ys extends Error{constructor(n){super(`Consent template "${n}" not found.`)}}const E=e=>typeof e=="string",Ie=()=>{let e,n;const t=new Promise((a,r)=>{e=a,n=r});return t.resolve=e,t.reject=n,t},sa=e=>e==null?"":""+e,zs=(e,n,t)=>{e.forEach(a=>{n[a]&&(t[a]=n[a])})},ws=/###/g,ua=e=>e&&e.indexOf("###")>-1?e.replace(ws,"."):e,la=e=>!e||E(e),Ne=(e,n,t)=>{const a=E(n)?n.split("."):n;let r=0;for(;r<a.length-1;){if(la(e))return{};const o=ua(a[r]);!e[o]&&t&&(e[o]=new t),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++r}return la(e)?{}:{obj:e,k:ua(a[r])}},da=(e,n,t)=>{const{obj:a,k:r}=Ne(e,n,Object);if(a!==void 0||n.length===1){a[r]=t;return}let o=n[n.length-1],i=n.slice(0,n.length-1),s=Ne(e,i,Object);for(;s.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),s=Ne(e,i,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]!="undefined"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=t},xs=(e,n,t,a)=>{const{obj:r,k:o}=Ne(e,n,Object);r[o]=r[o]||[],r[o].push(t)},Qe=(e,n)=>{const{obj:t,k:a}=Ne(e,n);if(!!t)return t[a]},_s=(e,n,t)=>{const a=Qe(e,t);return a!==void 0?a:Qe(n,t)},ca=(e,n,t)=>{for(const a in n)a!=="__proto__"&&a!=="constructor"&&(a in e?E(e[a])||e[a]instanceof String||E(n[a])||n[a]instanceof String?t&&(e[a]=n[a]):ca(e[a],n[a],t):e[a]=n[a]);return e},fe=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ss={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Ls=e=>E(e)?e.replace(/[&<>"'\/]/g,n=>Ss[n]):e;class Es{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const t=this.regExpMap.get(n);if(t!==void 0)return t;const a=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,a),this.regExpQueue.push(n),a}}const Cs=[" ",",","?","!",";"],As=new Es(20),Ps=(e,n,t)=>{n=n||"",t=t||"";const a=Cs.filter(i=>n.indexOf(i)<0&&t.indexOf(i)<0);if(a.length===0)return!0;const r=As.getRegExp(`(${a.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!r.test(e);if(!o){const i=e.indexOf(t);i>0&&!r.test(e.substring(0,i))&&(o=!0)}return o},Xn=function(e,n){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[n])return e[n];const a=n.split(t);let r=e;for(let o=0;o<a.length;){if(!r||typeof r!="object")return;let i,s="";for(let u=o;u<a.length;++u)if(u!==o&&(s+=t),s+=a[u],i=r[s],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<a.length-1)continue;o+=u-o+1;break}r=i}return r},Je=e=>e&&e.replace("_","-"),js={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,n){console&&console[e]&&console[e].apply(console,n)}};class Xe{constructor(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(n,t)}init(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=n||js,this.options=t,this.debug=t.debug}log(){for(var n=arguments.length,t=new Array(n),a=0;a<n;a++)t[a]=arguments[a];return this.forward(t,"log","",!0)}warn(){for(var n=arguments.length,t=new Array(n),a=0;a<n;a++)t[a]=arguments[a];return this.forward(t,"warn","",!0)}error(){for(var n=arguments.length,t=new Array(n),a=0;a<n;a++)t[a]=arguments[a];return this.forward(t,"error","")}deprecate(){for(var n=arguments.length,t=new Array(n),a=0;a<n;a++)t[a]=arguments[a];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(n,t,a,r){return r&&!this.debug?null:(E(n[0])&&(n[0]=`${a}${this.prefix} ${n[0]}`),this.logger[t](n))}create(n){return new Xe(this.logger,S({prefix:`${this.prefix}:${n}:`},this.options))}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new Xe(this.logger,n)}}var X=new Xe;class $e{constructor(){this.observers={}}on(n,t){return n.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const r=this.observers[a].get(t)||0;this.observers[a].set(t,r+1)}),this}off(n,t){if(!!this.observers[n]){if(!t){delete this.observers[n];return}this.observers[n].delete(t)}}emit(n){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];this.observers[n]&&Array.from(this.observers[n].entries()).forEach(i=>{let[s,u]=i;for(let c=0;c<u;c++)s(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[s,u]=i;for(let c=0;c<u;c++)s.apply(s,[n,...a])})}}class pa extends $e{constructor(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=n||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const t=this.options.ns.indexOf(n);t>-1&&this.options.ns.splice(t,1)}getResource(n,t,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,i=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;n.indexOf(".")>-1?s=n.split("."):(s=[n,t],a&&(Array.isArray(a)?s.push(...a):E(a)&&o?s.push(...a.split(o)):s.push(a)));const u=Qe(this.data,s);return!u&&!t&&!a&&n.indexOf(".")>-1&&(n=s[0],t=s[1],a=s.slice(2).join(".")),u||!i||!E(a)?u:Xn(this.data&&this.data[n]&&this.data[n][t],a,o)}addResource(n,t,a,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[n,t];a&&(s=s.concat(i?a.split(i):a)),n.indexOf(".")>-1&&(s=n.split("."),r=t,t=s[1]),this.addNamespaces(t),da(this.data,s,r),o.silent||this.emit("added",n,t,a,r)}addResources(n,t,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in a)(E(a[o])||Array.isArray(a[o]))&&this.addResource(n,t,o,a[o],{silent:!0});r.silent||this.emit("added",n,t,a)}addResourceBundle(n,t,a,r,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[n,t];n.indexOf(".")>-1&&(s=n.split("."),r=a,a=t,t=s[1]),this.addNamespaces(t);let u=Qe(this.data,s)||{};i.skipCopy||(a=JSON.parse(JSON.stringify(a))),r?ca(u,a,o):u=S(S({},u),a),da(this.data,s,u),i.silent||this.emit("added",n,t,a)}removeResourceBundle(n,t){this.hasResourceBundle(n,t)&&delete this.data[n][t],this.removeNamespaces(t),this.emit("removed",n,t)}hasResourceBundle(n,t){return this.getResource(n,t)!==void 0}getResourceBundle(n,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?S({},this.getResource(n,t)):this.getResource(n,t)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const t=this.getDataByLanguage(n);return!!(t&&Object.keys(t)||[]).find(r=>t[r]&&Object.keys(t[r]).length>0)}toJSON(){return this.data}}var ha={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,n,t,a,r){return e.forEach(o=>{this.processors[o]&&(n=this.processors[o].process(n,t,a,r))}),n}};const ma={};class en extends $e{constructor(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),zs(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=X.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;const a=this.resolve(n,t);return a&&a.res!==void 0}extractFromKey(n,t){let a=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=a&&n.indexOf(a)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Ps(n,a,r);if(i&&!s){const u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:o};const c=n.split(a);(a!==r||a===r&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),n=c.join(r)}return E(o)&&(o=[o]),{key:n,namespaces:o}}translate(n,t,a){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t=S({},t)),t||(t={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);const r=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,o=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:i,namespaces:s}=this.extractFromKey(n[n.length-1],t),u=s[s.length-1],c=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(d){const k=t.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${k}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:`${u}${k}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:i}const m=this.resolve(n,t);let l=m&&m.res;const h=m&&m.usedKey||i,p=m&&m.exactUsedKey||i,f=Object.prototype.toString.apply(l),g=["[object Number]","[object Function]","[object RegExp]"],y=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,z=!E(l)&&typeof l!="boolean"&&typeof l!="number";if(v&&l&&z&&g.indexOf(f)<0&&!(E(y)&&Array.isArray(l))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,l,K(S({},t),{ns:s})):`key '${i} (${this.language})' returned an object instead of string.`;return r?(m.res=k,m.usedParams=this.getUsedParamsDetails(t),m):k}if(o){const k=Array.isArray(l),b=k?[]:{},x=k?p:h;for(const w in l)if(Object.prototype.hasOwnProperty.call(l,w)){const L=`${x}${o}${w}`;b[w]=this.translate(L,K(S({},t),{joinArrays:!1,ns:s})),b[w]===L&&(b[w]=l[w])}l=b}}else if(v&&E(y)&&Array.isArray(l))l=l.join(y),l&&(l=this.extendTranslation(l,n,t,a));else{let k=!1,b=!1;const x=t.count!==void 0&&!E(t.count),w=en.hasDefaultValue(t),L=x?this.pluralResolver.getSuffix(c,t.count,t):"",I=t.ordinal&&x?this.pluralResolver.getSuffix(c,t.count,{ordinal:!1}):"",j=x&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),R=j&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${L}`]||t[`defaultValue${I}`]||t.defaultValue;!this.isValidLookup(l)&&w&&(k=!0,l=R),this.isValidLookup(l)||(b=!0,l=i);const se=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&b?void 0:l,He=w&&R!==l&&this.options.updateMissing;if(b||k||He){if(this.logger.log(He?"updateKey":"missingKey",c,u,i,He?R:l),o){const W=this.resolve(i,K(S({},t),{keySeparator:!1}));W&&W.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Fe=[];const mn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&mn&&mn[0])for(let W=0;W<mn.length;W++)Fe.push(mn[W]);else this.options.saveMissingTo==="all"?Fe=this.languageUtils.toResolveHierarchy(t.lng||this.language):Fe.push(t.lng||this.language);const co=(W,he,Ue)=>{const po=w&&Ue!==l?Ue:se;this.options.missingKeyHandler?this.options.missingKeyHandler(W,u,he,po,He,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(W,u,he,po,He,t),this.emit("missingKey",W,u,he,l)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?Fe.forEach(W=>{const he=this.pluralResolver.getSuffixes(W,t);j&&t[`defaultValue${this.options.pluralSeparator}zero`]&&he.indexOf(`${this.options.pluralSeparator}zero`)<0&&he.push(`${this.options.pluralSeparator}zero`),he.forEach(Ue=>{co([W],i+Ue,t[`defaultValue${Ue}`]||R)})}):co(Fe,i,R))}l=this.extendTranslation(l,n,t,m,a),b&&l===i&&this.options.appendNamespaceToMissingKey&&(l=`${u}:${i}`),(b||k)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?l=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,k?l:void 0):l=this.options.parseMissingKeyHandler(l))}return r?(m.res=l,m.usedParams=this.getUsedParamsDetails(t),m):l}extendTranslation(n,t,a,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,S(S({},this.options.interpolation.defaultVariables),a),a.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(K(S({},a),{interpolation:S(S({},this.options.interpolation),a.interpolation)}));const c=E(n)&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const l=n.match(this.interpolator.nestingRegexp);d=l&&l.length}let m=a.replace&&!E(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(m=S(S({},this.options.interpolation.defaultVariables),m)),n=this.interpolator.interpolate(n,m,a.lng||this.language||r.usedLng,a),c){const l=n.match(this.interpolator.nestingRegexp),h=l&&l.length;d<h&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(a.lng=this.language||r.usedLng),a.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var l=arguments.length,h=new Array(l),p=0;p<l;p++)h[p]=arguments[p];return o&&o[0]===h[0]&&!a.context?(i.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`),null):i.translate(...h,t)},a)),a.interpolation&&this.interpolator.reset()}const s=a.postProcess||this.options.postProcess,u=E(s)?[s]:s;return n!=null&&u&&u.length&&a.applyPostProcessor!==!1&&(n=ha.handle(u,n,t,this.options&&this.options.postProcessPassResolved?S({i18nResolved:K(S({},r),{usedParams:this.getUsedParamsDetails(a)})},a):a,this)),n}resolve(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,r,o,i,s;return E(n)&&(n=[n]),n.forEach(u=>{if(this.isValidLookup(a))return;const c=this.extractFromKey(u,t),d=c.key;r=d;let m=c.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const l=t.count!==void 0&&!E(t.count),h=l&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),p=t.context!==void 0&&(E(t.context)||typeof t.context=="number")&&t.context!=="",f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);m.forEach(g=>{this.isValidLookup(a)||(s=g,!ma[`${f[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(ma[`${f[0]}-${g}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(y=>{if(this.isValidLookup(a))return;i=y;const v=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,d,y,g,t);else{let k;l&&(k=this.pluralResolver.getSuffix(y,t.count,t));const b=`${this.options.pluralSeparator}zero`,x=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(v.push(d+k),t.ordinal&&k.indexOf(x)===0&&v.push(d+k.replace(x,this.options.pluralSeparator)),h&&v.push(d+b)),p){const w=`${d}${this.options.contextSeparator}${t.context}`;v.push(w),l&&(v.push(w+k),t.ordinal&&k.indexOf(x)===0&&v.push(w+k.replace(x,this.options.pluralSeparator)),h&&v.push(w+b))}}let z;for(;z=v.pop();)this.isValidLookup(a)||(o=z,a=this.getResource(y,g,z,t))}))})}),{res:a,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:s}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,t,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,t,a,r):this.resourceStore.getResource(n,t,a,r)}getUsedParamsDetails(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=n.replace&&!E(n.replace);let r=a?n.replace:n;if(a&&typeof n.count!="undefined"&&(r.count=n.count),this.options.interpolation.defaultVariables&&(r=S(S({},this.options.interpolation.defaultVariables),r)),!a){r=S({},r);for(const o of t)delete r[o]}return r}static hasDefaultValue(n){const t="defaultValue";for(const a in n)if(Object.prototype.hasOwnProperty.call(n,a)&&t===a.substring(0,t.length)&&n[a]!==void 0)return!0;return!1}}const $n=e=>e.charAt(0).toUpperCase()+e.slice(1);class fa{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=X.create("languageUtils")}getScriptPartFromCode(n){if(n=Je(n),!n||n.indexOf("-")<0)return null;const t=n.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(n){if(n=Je(n),!n||n.indexOf("-")<0)return n;const t=n.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(n){if(E(n)&&n.indexOf("-")>-1){if(typeof Intl!="undefined"&&typeof Intl.getCanonicalLocales!="undefined")try{let r=Intl.getCanonicalLocales(n)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch(r){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let a=n.split("-");return this.options.lowerCaseLng?a=a.map(r=>r.toLowerCase()):a.length===2?(a[0]=a[0].toLowerCase(),a[1]=a[1].toUpperCase(),t.indexOf(a[1].toLowerCase())>-1&&(a[1]=$n(a[1].toLowerCase()))):a.length===3&&(a[0]=a[0].toLowerCase(),a[1].length===2&&(a[1]=a[1].toUpperCase()),a[0]!=="sgn"&&a[2].length===2&&(a[2]=a[2].toUpperCase()),t.indexOf(a[1].toLowerCase())>-1&&(a[1]=$n(a[1].toLowerCase())),t.indexOf(a[2].toLowerCase())>-1&&(a[2]=$n(a[2].toLowerCase()))),a.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let t;return n.forEach(a=>{if(t)return;const r=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&n.forEach(a=>{if(t)return;const r=this.getLanguagePartFromCode(a);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(o=>{if(o===r)return o;if(!(o.indexOf("-")<0&&r.indexOf("-")<0)&&(o.indexOf("-")>0&&r.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===r||o.indexOf(r)===0&&r.length>1))return o})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(n,t){if(!n)return[];if(typeof n=="function"&&(n=n(t)),E(n)&&(n=[n]),Array.isArray(n))return n;if(!t)return n.default||[];let a=n[t];return a||(a=n[this.getScriptPartFromCode(t)]),a||(a=n[this.formatLanguageCode(t)]),a||(a=n[this.getLanguagePartFromCode(t)]),a||(a=n.default),a||[]}toResolveHierarchy(n,t){const a=this.getFallbackCodes(t||this.options.fallbackLng||[],n),r=[],o=i=>{!i||(this.isSupportedCode(i)?r.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return E(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(n))):E(n)&&o(this.formatLanguageCode(n)),a.forEach(i=>{r.indexOf(i)<0&&o(this.formatLanguageCode(i))}),r}}let qs=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Is={1:e=>Number(e>1),2:e=>Number(e!=1),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(e==1?0:e>=2&&e<=4?1:2),7:e=>Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(e==1?0:e==2?1:e!=8&&e!=11?2:3),9:e=>Number(e>=2),10:e=>Number(e==1?0:e==2?1:e<7?2:e<11?3:4),11:e=>Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(e!==0),14:e=>Number(e==1?0:e==2?1:e==3?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:e!==0?1:2),17:e=>Number(e==1||e%10==1&&e%100!=11?0:1),18:e=>Number(e==0?0:e==1?1:2),19:e=>Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(e==1?0:e==0||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)};const Ns=["v1","v2","v3"],Os=["v4"],ga={zero:0,one:1,two:2,few:3,many:4,other:5},Rs=()=>{const e={};return qs.forEach(n=>{n.lngs.forEach(t=>{e[t]={numbers:n.nr,plurals:Is[n.fc]}})}),e};class Ds{constructor(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=n,this.options=t,this.logger=X.create("pluralResolver"),(!this.options.compatibilityJSON||Os.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Rs(),this.pluralRulesCache={}}addRule(n,t){this.rules[n]=t}clearCache(){this.pluralRulesCache={}}getRule(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const a=Je(n==="dev"?"en":n),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:a,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const i=new Intl.PluralRules(a,{type:r});return this.pluralRulesCache[o]=i,i}catch(a){return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}needsPlural(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=this.getRule(n,t);return this.shouldUseIntlApi()?a&&a.resolvedOptions().pluralCategories.length>1:a&&a.numbers.length>1}getPluralFormsOfKey(n,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,a).map(r=>`${t}${r}`)}getSuffixes(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=this.getRule(n,t);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort((r,o)=>ga[r]-ga[o]).map(r=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${r}`):a.numbers.map(r=>this.getSuffix(n,r,t)):[]}getSuffix(n,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(n,a);return r?this.shouldUseIntlApi()?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${n}`),"")}getSuffixRetroCompatible(n,t){const a=n.noAbs?n.plurals(t):n.plurals(Math.abs(t));let r=n.numbers[a];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?o():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}shouldUseIntlApi(){return!Ns.includes(this.options.compatibilityJSON)}}const va=function(e,n,t){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=_s(e,n,t);return!o&&r&&E(t)&&(o=Xn(e,t,a),o===void 0&&(o=Xn(n,t,a))),o},et=e=>e.replace(/\$/g,"$$$$");class Ts{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=X.create("interpolator"),this.options=n,this.format=n.interpolation&&n.interpolation.format||(t=>t),this.init(n)}init(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});const{escape:t,escapeValue:a,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:u,formatSeparator:c,unescapeSuffix:d,unescapePrefix:m,nestingPrefix:l,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:v}=n.interpolation;this.escape=t!==void 0?t:Ls,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=o?fe(o):i||"{{",this.suffix=s?fe(s):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=l?fe(l):h||fe("$t("),this.nestingSuffix=p?fe(p):f||fe(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(t,a)=>t&&t.source===a?(t.lastIndex=0,t):new RegExp(a,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(n,t,a,r){let o,i,s;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=h=>{if(h.indexOf(this.formatSeparator)<0){const y=va(t,u,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,a,K(S(S({},r),t),{interpolationkey:h})):y}const p=h.split(this.formatSeparator),f=p.shift().trim(),g=p.join(this.formatSeparator).trim();return this.format(va(t,u,f,this.options.keySeparator,this.options.ignoreJSONStructure),g,a,K(S(S({},r),t),{interpolationkey:f}))};this.resetRegExp();const d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>et(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?et(this.escape(h)):et(h)}].forEach(h=>{for(s=0;o=h.regex.exec(n);){const p=o[1].trim();if(i=c(p),i===void 0)if(typeof d=="function"){const g=d(n,o,r);i=E(g)?g:""}else if(r&&Object.prototype.hasOwnProperty.call(r,p))i="";else if(m){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${n}`),i="";else!E(i)&&!this.useRawValueToEscape&&(i=sa(i));const f=h.safeValue(i);if(n=n.replace(o[0],f),m?(h.regex.lastIndex+=i.length,h.regex.lastIndex-=o[0].length):h.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),n}nest(n,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,o,i;const s=(u,c)=>{const d=this.nestingOptionsSeparator;if(u.indexOf(d)<0)return u;const m=u.split(new RegExp(`${d}[ ]*{`));let l=`{${m[1]}`;u=m[0],l=this.interpolate(l,i);const h=l.match(/'/g),p=l.match(/"/g);(h&&h.length%2===0&&!p||p.length%2!==0)&&(l=l.replace(/'/g,'"'));try{i=JSON.parse(l),c&&(i=S(S({},c),i))}catch(f){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,f),`${u}${d}${l}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u};for(;r=this.nestingRegexp.exec(n);){let u=[];i=S({},a),i=i.replace&&!E(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const d=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=d.shift(),u=d,c=!0}if(o=t(s.call(this,r[1].trim(),i),i),o&&r[0]===n&&!E(o))return o;E(o)||(o=sa(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${n}`),o=""),c&&(o=u.reduce((d,m)=>this.format(d,m,a.lng,K(S({},a),{interpolationkey:r[1].trim()})),o.trim())),n=n.replace(r[0],o),this.regexp.lastIndex=0}return n}}const Ms=e=>{let n=e.toLowerCase().trim();const t={};if(e.indexOf("(")>-1){const a=e.split("(");n=a[0].toLowerCase().trim();const r=a[1].substring(0,a[1].length-1);n==="currency"&&r.indexOf(":")<0?t.currency||(t.currency=r.trim()):n==="relativetime"&&r.indexOf(":")<0?t.range||(t.range=r.trim()):r.split(";").forEach(i=>{if(i){const[s,...u]=i.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();t[d]||(t[d]=c),c==="false"&&(t[d]=!1),c==="true"&&(t[d]=!0),isNaN(c)||(t[d]=parseInt(c,10))}})}return{formatName:n,formatOptions:t}},ge=e=>{const n={};return(t,a,r)=>{let o=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(o=K(S({},o),{[r.interpolationkey]:void 0}));const i=a+JSON.stringify(o);let s=n[i];return s||(s=e(Je(a),r),n[i]=s),s(t)}};class Bs{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=X.create("formatter"),this.options=n,this.formats={number:ge((t,a)=>{const r=new Intl.NumberFormat(t,S({},a));return o=>r.format(o)}),currency:ge((t,a)=>{const r=new Intl.NumberFormat(t,K(S({},a),{style:"currency"}));return o=>r.format(o)}),datetime:ge((t,a)=>{const r=new Intl.DateTimeFormat(t,S({},a));return o=>r.format(o)}),relativetime:ge((t,a)=>{const r=new Intl.RelativeTimeFormat(t,S({},a));return o=>r.format(o,a.range||"day")}),list:ge((t,a)=>{const r=new Intl.ListFormat(t,S({},a));return o=>r.format(o)})},this.init(n)}init(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(n,t){this.formats[n.toLowerCase().trim()]=t}addCached(n,t){this.formats[n.toLowerCase().trim()]=ge(t)}format(n,t,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(u=>u.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,u)=>{const{formatName:c,formatOptions:d}=Ms(u);if(this.formats[c]){let m=s;try{const l=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},h=l.locale||l.lng||r.locale||r.lng||a;m=this.formats[c](s,h,S(S(S({},d),r),l))}catch(l){this.logger.warn(l)}return m}else this.logger.warn(`there was no format function for ${c}`);return s},n)}}const Hs=(e,n)=>{e.pending[n]!==void 0&&(delete e.pending[n],e.pendingCount--)};class Fs extends $e{constructor(n,t,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=n,this.store=t,this.services=a,this.languageUtils=a.languageUtils,this.options=r,this.logger=X.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(a,r.backend,r)}queueLoad(n,t,a,r){const o={},i={},s={},u={};return n.forEach(c=>{let d=!0;t.forEach(m=>{const l=`${c}|${m}`;!a.reload&&this.store.hasResourceBundle(c,m)?this.state[l]=2:this.state[l]<0||(this.state[l]===1?i[l]===void 0&&(i[l]=!0):(this.state[l]=1,d=!1,i[l]===void 0&&(i[l]=!0),o[l]===void 0&&(o[l]=!0),u[m]===void 0&&(u[m]=!0)))}),d||(s[c]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}loaded(n,t,a){const r=n.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&a&&this.store.addResourceBundle(o,i,a,void 0,void 0,{skipCopy:!0}),this.state[n]=t?-1:2,t&&a&&(this.state[n]=0);const s={};this.queue.forEach(u=>{xs(u.loaded,[o],i),Hs(u,n),t&&u.errors.push(t),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{s[c]||(s[c]={});const d=u.loaded[c];d.length&&d.forEach(m=>{s[c][m]===void 0&&(s[c][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(u=>!u.done)}read(n,t,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!n.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:t,fcName:a,tried:r,wait:o,callback:i});return}this.readingCalls++;const s=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(c&&d&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,n,t,a,r+1,o*2,i)},o);return}i(c,d)},u=this.backend[a].bind(this.backend);if(u.length===2){try{const c=u(n,t);c&&typeof c.then=="function"?c.then(d=>s(null,d)).catch(s):s(null,c)}catch(c){s(c)}return}return u(n,t,s)}prepareLoading(n,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();E(n)&&(n=this.languageUtils.toResolveHierarchy(n)),E(t)&&(t=[t]);const o=this.queueLoad(n,t,a,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(n,t,a){this.prepareLoading(n,t,{},a)}reload(n,t,a){this.prepareLoading(n,t,{reload:!0},a)}loadOne(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const a=n.split("|"),r=a[0],o=a[1];this.read(r,o,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,i),!i&&s&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,s),this.loaded(n,i,s)})}saveMissing(n,t,a,r,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${a}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){const u=K(S({},i),{isUpdate:o}),c=this.backend.create.bind(this.backend);if(c.length<6)try{let d;c.length===5?d=c(n,t,a,r,u):d=c(n,t,a,r),d&&typeof d.then=="function"?d.then(m=>s(null,m)).catch(s):s(null,d)}catch(d){s(d)}else c(n,t,a,r,s,u)}!n||!n[0]||this.store.addResource(n[0],t,a,r)}}}const ka=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let n={};if(typeof e[1]=="object"&&(n=e[1]),E(e[1])&&(n.defaultValue=e[1]),E(e[2])&&(n.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const t=e[3]||e[2];Object.keys(t).forEach(a=>{n[a]=t[a]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ba=e=>(E(e.ns)&&(e.ns=[e.ns]),E(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),E(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),nn=()=>{},Us=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})};class Oe extends $e{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ba(n),this.services={},this.logger=X,this.modules={external:[]},Us(this),t&&!this.isInitialized&&!n.isClone){if(!this.options.initImmediate)return this.init(n,t),this;setTimeout(()=>{this.init(n,t)},0)}}init(){var n=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(a=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(E(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=ka();this.options=S(S(S({},r),this.options),ba(t)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=S(S({},r.interpolation),this.options.interpolation)),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?X.init(o(this.modules.logger),this.options):X.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl!="undefined"&&(d=Bs);const m=new fa(this.options);this.store=new pa(this.options.resources,this.options);const l=this.services;l.logger=X,l.resourceStore=this.store,l.languageUtils=m,l.pluralResolver=new Ds(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(l.formatter=o(d),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new Ts(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new Fs(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(h){for(var p=arguments.length,f=new Array(p>1?p-1:0),g=1;g<p;g++)f[g-1]=arguments[g];n.emit(h,...f)}),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init&&l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new en(this.services,this.options),this.translator.on("*",function(h){for(var p=arguments.length,f=new Array(p>1?p-1:0),g=1;g<p;g++)f[g-1]=arguments[g];n.emit(h,...f)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,a||(a=nn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return n.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return n.store[d](...arguments),n}});const u=Ie(),c=()=>{const d=(m,l)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(l),a(m,l)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}loadResources(n){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nn;const r=E(n)?n:this.language;if(typeof n=="function"&&(a=n),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const o=[],i=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&o.indexOf(c)<0&&o.push(c)})};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>i(u)),this.options.preload&&this.options.preload.forEach(s=>i(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(s)})}else a(null)}reloadResources(n,t,a){const r=Ie();return typeof n=="function"&&(a=n,n=void 0),typeof t=="function"&&(a=t,t=void 0),n||(n=this.languages),t||(t=this.options.ns),a||(a=nn),this.services.backendConnector.reload(n,t,o=>{r.resolve(),a(o)}),r}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&ha.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1))for(let t=0;t<this.languages.length;t++){const a=this.languages[t];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}changeLanguage(n,t){var a=this;this.isLanguageChangingTo=n;const r=Ie();this.emit("languageChanging",n);const o=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve(function(){return a.t(...arguments)}),t&&t(u,function(){return a.t(...arguments)})},s=u=>{!n&&!u&&this.services.languageDetector&&(u=[]);const c=E(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,d=>{i(d,c)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(n),r}getFixedT(n,t,a){var r=this;const o=function(i,s){let u;if(typeof s!="object"){for(var c=arguments.length,d=new Array(c>2?c-2:0),m=2;m<c;m++)d[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([i,s].concat(d))}else u=S({},s);u.lng=u.lng||o.lng,u.lngs=u.lngs||o.lngs,u.ns=u.ns||o.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||a||o.keyPrefix);const l=r.options.keySeparator||".";let h;return u.keyPrefix&&Array.isArray(i)?h=i.map(p=>`${u.keyPrefix}${l}${p}`):h=u.keyPrefix?`${u.keyPrefix}${l}${i}`:i,r.t(h,u)};return E(n)?o.lng=n:o.lngs=n,o.ns=t,o.keyPrefix=a,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const a=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const i=(s,u)=>{const c=this.services.backendConnector.state[`${s}|${u}`];return c===-1||c===0||c===2};if(t.precheck){const s=t.precheck(this,i);if(s!==void 0)return s}return!!(this.hasResourceBundle(a,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(a,n)&&(!r||i(o,n)))}loadNamespaces(n,t){const a=Ie();return this.options.ns?(E(n)&&(n=[n]),n.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{a.resolve(),t&&t(r)}),a):(t&&t(),Promise.resolve())}loadLanguages(n,t){const a=Ie();E(n)&&(n=[n]);const r=this.options.preload||[],o=n.filter(i=>r.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=r.concat(o),this.loadResources(i=>{a.resolve(),t&&t(i)}),a):(t&&t(),Promise.resolve())}dir(n){if(n||(n=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!n)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new fa(ka());return t.indexOf(a.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Oe(n,t)}cloneInstance(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nn;const a=n.forkResourceStore;a&&delete n.forkResourceStore;const r=K(S(S({},this.options),n),{isClone:!0}),o=new Oe(r);return(n.debug!==void 0||n.prefix!==void 0)&&(o.logger=o.logger.clone(n)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services=S({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},a&&(o.store=new pa(this.store.data,r),o.services.resourceStore=o.store),o.translator=new en(o.services,r),o.translator.on("*",function(s){for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];o.emit(s,...c)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const N=Oe.createInstance();N.createInstance=Oe.createInstance,N.createInstance,N.dir,N.init,N.loadResources,N.reloadResources,N.use,N.changeLanguage,N.getFixedT,N.t,N.exists,N.setDefaultNamespace,N.hasLoadedNamespace,N.loadNamespaces,N.loadLanguages;function ya(e,n,t){function a(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function r(){return!e||typeof e=="string"}for(var o=typeof n!="string"?[].concat(n):n.split(".");o.length>1;){if(r())return{};var i=a(o.shift());!e[i]&&t&&(e[i]=new t),e=e[i]}return r()?{}:{obj:e,k:a(o.shift())}}function Gs(e,n,t){var a=ya(e,n,Object),r=a.obj,o=a.k;r[o]=t}function Vs(e,n){var t=ya(e,n),a=t.obj,r=t.k;if(!!a)return a[r]}var za=[],Ws=za.forEach,Ks=za.slice;function Ys(e){return Ws.call(Ks.call(arguments,1),function(n){if(n)for(var t in n)e[t]===void 0&&(e[t]=n[t])}),e}var nt=function(e,n){return nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r])},nt(e,n)};function tn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");nt(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var P=function(){return P=Object.assign||function(n){for(var t,a=1,r=arguments.length;a<r;a++){t=arguments[a];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},P.apply(this,arguments)};function Zs(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)n.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]]);return t}function tt(e,n,t){if(t||arguments.length===2)for(var a=0,r=n.length,o;a<r;a++)(o||!(a in n))&&(o||(o=Array.prototype.slice.call(n,0,a)),o[a]=n[a]);return e.concat(o||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;function at(e,n){var t=n&&n.cache?n.cache:nu,a=n&&n.serializer?n.serializer:eu,r=n&&n.strategy?n.strategy:Js;return r(e,{cache:t,serializer:a})}function Qs(e){return e==null||typeof e=="number"||typeof e=="boolean"}function wa(e,n,t,a){var r=Qs(a)?a:t(a),o=n.get(r);return typeof o=="undefined"&&(o=e.call(this,a),n.set(r,o)),o}function xa(e,n,t){var a=Array.prototype.slice.call(arguments,3),r=t(a),o=n.get(r);return typeof o=="undefined"&&(o=e.apply(this,a),n.set(r,o)),o}function rt(e,n,t,a,r){return t.bind(n,e,a,r)}function Js(e,n){var t=e.length===1?wa:xa;return rt(e,this,t,n.cache.create(),n.serializer)}function Xs(e,n){return rt(e,this,xa,n.cache.create(),n.serializer)}function $s(e,n){return rt(e,this,wa,n.cache.create(),n.serializer)}var eu=function(){return JSON.stringify(arguments)};function ot(){this.cache=Object.create(null)}ot.prototype.get=function(e){return this.cache[e]},ot.prototype.set=function(e,n){this.cache[e]=n};var nu={create:function(){return new ot}},it={variadic:Xs,monadic:$s},C;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(C||(C={}));var O;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(O||(O={}));var ve;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ve||(ve={}));function _a(e){return e.type===O.literal}function tu(e){return e.type===O.argument}function Sa(e){return e.type===O.number}function La(e){return e.type===O.date}function Ea(e){return e.type===O.time}function Ca(e){return e.type===O.select}function Aa(e){return e.type===O.plural}function au(e){return e.type===O.pound}function Pa(e){return e.type===O.tag}function ja(e){return!!(e&&typeof e=="object"&&e.type===ve.number)}function st(e){return!!(e&&typeof e=="object"&&e.type===ve.dateTime)}var qa=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ru=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function ou(e){var n={};return e.replace(ru,function(t){var a=t.length;switch(t[0]){case"G":n.era=a===4?"long":a===5?"narrow":"short";break;case"y":n.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":n.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=a===4?"long":a===5?"narrow":"short";break;case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][a-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][a-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][a-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][a-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":n.minute=["numeric","2-digit"][a-1];break;case"s":n.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),n}var iu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function su(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(iu).filter(function(l){return l.length>0}),t=[],a=0,r=n;a<r.length;a++){var o=r[a],i=o.split("/");if(i.length===0)throw new Error("Invalid number skeleton");for(var s=i[0],u=i.slice(1),c=0,d=u;c<d.length;c++){var m=d[c];if(m.length===0)throw new Error("Invalid number skeleton")}t.push({stem:s,options:u})}return t}function uu(e){return e.replace(/^(.*?)-/,"")}var Ia=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Na=/^(@+)?(\+|#+)?[rs]?$/g,lu=/(\*)(0+)|(#+)(0+)|(0+)/g,Oa=/^(0+)$/;function Ra(e){var n={};return e[e.length-1]==="r"?n.roundingPriority="morePrecision":e[e.length-1]==="s"&&(n.roundingPriority="lessPrecision"),e.replace(Na,function(t,a,r){return typeof r!="string"?(n.minimumSignificantDigits=a.length,n.maximumSignificantDigits=a.length):r==="+"?n.minimumSignificantDigits=a.length:a[0]==="#"?n.maximumSignificantDigits=a.length:(n.minimumSignificantDigits=a.length,n.maximumSignificantDigits=a.length+(typeof r=="string"?r.length:0)),""}),n}function Da(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function du(e){var n;if(e[0]==="E"&&e[1]==="E"?(n={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(n={notation:"scientific"},e=e.slice(1)),n){var t=e.slice(0,2);if(t==="+!"?(n.signDisplay="always",e=e.slice(2)):t==="+?"&&(n.signDisplay="exceptZero",e=e.slice(2)),!Oa.test(e))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}function Ta(e){var n={},t=Da(e);return t||n}function cu(e){for(var n={},t=0,a=e;t<a.length;t++){var r=a[t];switch(r.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=r.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=uu(r.options[0]);continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=P(P(P({},n),{notation:"scientific"}),r.options.reduce(function(u,c){return P(P({},u),Ta(c))},{}));continue;case"engineering":n=P(P(P({},n),{notation:"engineering"}),r.options.reduce(function(u,c){return P(P({},u),Ta(c))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(lu,function(u,c,d,m,l,h){if(c)n.minimumIntegerDigits=d.length;else{if(m&&l)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Oa.test(r.stem)){n.minimumIntegerDigits=r.stem.length;continue}if(Ia.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Ia,function(u,c,d,m,l,h){return d==="*"?n.minimumFractionDigits=c.length:m&&m[0]==="#"?n.maximumFractionDigits=m.length:l&&h?(n.minimumFractionDigits=l.length,n.maximumFractionDigits=l.length+h.length):(n.minimumFractionDigits=c.length,n.maximumFractionDigits=c.length),""});var o=r.options[0];o==="w"?n=P(P({},n),{trailingZeroDisplay:"stripIfInteger"}):o&&(n=P(P({},n),Ra(o)));continue}if(Na.test(r.stem)){n=P(P({},n),Ra(r.stem));continue}var i=Da(r.stem);i&&(n=P(P({},n),i));var s=du(r.stem);s&&(n=P(P({},n),s))}return n}var an={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function pu(e,n){for(var t="",a=0;a<e.length;a++){var r=e.charAt(a);if(r==="j"){for(var o=0;a+1<e.length&&e.charAt(a+1)===r;)o++,a++;var i=1+(o&1),s=o<2?1:3+(o>>1),u="a",c=hu(n);for((c=="H"||c=="k")&&(s=0);s-- >0;)t+=u;for(;i-- >0;)t=c+t}else r==="J"?t+="H":t+=r}return t}function hu(e){var n=e.hourCycle;if(n===void 0&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=e.language,a;t!=="root"&&(a=e.maximize().region);var r=an[a||""]||an[t||""]||an["".concat(t,"-001")]||an["001"];return r[0]}var ut,mu=new RegExp("^".concat(qa.source,"*")),fu=new RegExp("".concat(qa.source,"*$"));function A(e,n){return{start:e,end:n}}var gu=!!String.prototype.startsWith&&"_a".startsWith("a",1),vu=!!String.fromCodePoint,ku=!!Object.fromEntries,bu=!!String.prototype.codePointAt,yu=!!String.prototype.trimStart,zu=!!String.prototype.trimEnd,wu=!!Number.isSafeInteger,xu=wu?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},lt=!0;try{var _u=Fa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");lt=((ut=_u.exec("a"))===null||ut===void 0?void 0:ut[0])==="a"}catch(e){lt=!1}var Ma=gu?function(n,t,a){return n.startsWith(t,a)}:function(n,t,a){return n.slice(a,a+t.length)===t},dt=vu?String.fromCodePoint:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(var a="",r=n.length,o=0,i;r>o;){if(i=n[o++],i>1114111)throw RangeError(i+" is not a valid code point");a+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return a},Ba=ku?Object.fromEntries:function(n){for(var t={},a=0,r=n;a<r.length;a++){var o=r[a],i=o[0],s=o[1];t[i]=s}return t},Ha=bu?function(n,t){return n.codePointAt(t)}:function(n,t){var a=n.length;if(!(t<0||t>=a)){var r=n.charCodeAt(t),o;return r<55296||r>56319||t+1===a||(o=n.charCodeAt(t+1))<56320||o>57343?r:(r-55296<<10)+(o-56320)+65536}},Su=yu?function(n){return n.trimStart()}:function(n){return n.replace(mu,"")},Lu=zu?function(n){return n.trimEnd()}:function(n){return n.replace(fu,"")};function Fa(e,n){return new RegExp(e,n)}var ct;if(lt){var Ua=Fa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ct=function(n,t){var a;Ua.lastIndex=t;var r=Ua.exec(n);return(a=r[1])!==null&&a!==void 0?a:""}}else ct=function(n,t){for(var a=[];;){var r=Ha(n,t);if(r===void 0||Ga(r)||Pu(r))break;a.push(r),t+=r>=65536?2:1}return dt.apply(void 0,a)};var Eu=function(){function e(n,t){t===void 0&&(t={}),this.message=n,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(n,t,a){for(var r=[];!this.isEOF();){var o=this.char();if(o===123){var i=this.parseArgument(n,a);if(i.err)return i;r.push(i.val)}else{if(o===125&&n>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){var s=this.clonePosition();this.bump(),r.push({type:O.pound,location:A(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(C.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&pt(this.peek()||0)){var i=this.parseTag(n,t);if(i.err)return i;r.push(i.val)}else{var i=this.parseLiteral(n,t);if(i.err)return i;r.push(i.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(n,t){var a=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:O.literal,value:"<".concat(r,"/>"),location:A(a,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(n+1,t,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!pt(this.char()))return this.error(C.INVALID_TAG,A(s,this.clonePosition()));var u=this.clonePosition(),c=this.parseTagName();return r!==c?this.error(C.UNMATCHED_CLOSING_TAG,A(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:O.tag,value:r,children:i,location:A(a,this.clonePosition())},err:null}:this.error(C.INVALID_TAG,A(s,this.clonePosition())))}else return this.error(C.UNCLOSED_TAG,A(a,this.clonePosition()))}else return this.error(C.INVALID_TAG,A(a,this.clonePosition()))},e.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&Au(this.char());)this.bump();return this.message.slice(n,this.offset())},e.prototype.parseLiteral=function(n,t){for(var a=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o){r+=o;continue}var i=this.tryParseUnquoted(n,t);if(i){r+=i;continue}var s=this.tryParseLeftAngleBracket();if(s){r+=s;continue}break}var u=A(a,this.clonePosition());return{val:{type:O.literal,value:r,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Cu(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(n){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(n==="plural"||n==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var a=this.char();if(a===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(a);this.bump()}return dt.apply(void 0,t)},e.prototype.tryParseUnquoted=function(n,t){if(this.isEOF())return null;var a=this.char();return a===60||a===123||a===35&&(t==="plural"||t==="selectordinal")||a===125&&n>0?null:(this.bump(),dt(a))},e.prototype.parseArgument=function(n,t){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(C.EMPTY_ARGUMENT,A(a,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(C.MALFORMED_ARGUMENT,A(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:O.argument,value:r,location:A(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition())):this.parseArgumentOptions(n,t,r,a);default:return this.error(C.MALFORMED_ARGUMENT,A(a,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),t=this.offset(),a=ct(this.message,t),r=t+a.length;this.bumpTo(r);var o=this.clonePosition(),i=A(n,o);return{value:a,location:i}},e.prototype.parseArgumentOptions=function(n,t,a,r){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(C.EXPECT_ARGUMENT_TYPE,A(i,u));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var l=Lu(m.val);if(l.length===0)return this.error(C.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var h=A(d,this.clonePosition());c={style:l,styleLocation:h}}var p=this.tryParseArgumentClose(r);if(p.err)return p;var f=A(r,this.clonePosition());if(c&&Ma(c==null?void 0:c.style,"::",0)){var g=Su(c.style.slice(2));if(s==="number"){var m=this.parseNumberSkeletonFromString(g,c.styleLocation);return m.err?m:{val:{type:O.number,value:a,location:f,style:m.val},err:null}}else{if(g.length===0)return this.error(C.EXPECT_DATE_TIME_SKELETON,f);var y=g;this.locale&&(y=pu(g,this.locale));var l={type:ve.dateTime,pattern:y,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?ou(y):{}},v=s==="date"?O.date:O.time;return{val:{type:v,value:a,location:f,style:l},err:null}}}return{val:{type:s==="number"?O.number:s==="date"?O.date:O.time,value:a,location:f,style:(o=c==null?void 0:c.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var z=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS,A(z,P({},z)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),b=0;if(s!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),k=this.parseIdentifierIfPossible(),b=m.val}var x=this.tryParsePluralOrSelectOptions(n,s,t,k);if(x.err)return x;var p=this.tryParseArgumentClose(r);if(p.err)return p;var w=A(r,this.clonePosition());return s==="select"?{val:{type:O.select,value:a,options:Ba(x.val),location:w},err:null}:{val:{type:O.plural,value:a,options:Ba(x.val),offset:b,pluralType:s==="plural"?"cardinal":"ordinal",location:w},err:null}}default:return this.error(C.INVALID_ARGUMENT_TYPE,A(i,u))}},e.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=0,t=this.clonePosition();!this.isEOF();){var a=this.char();switch(a){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(r,this.clonePosition()));this.bump();break}case 123:{n+=1,this.bump();break}case 125:{if(n>0)n-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(n,t){var a=[];try{a=su(n)}catch(r){return this.error(C.INVALID_NUMBER_SKELETON,t)}return{val:{type:ve.number,tokens:a,location:t,parsedOptions:this.shouldParseSkeletons?cu(a):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(n,t,a,r){for(var o,i=!1,s=[],u=new Set,c=r.value,d=r.location;;){if(c.length===0){var m=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var l=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_SELECTOR,C.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;d=A(m,this.clonePosition()),c=this.message.slice(m.offset,this.offset())}else break}if(u.has(c))return this.error(t==="select"?C.DUPLICATE_SELECT_ARGUMENT_SELECTOR:C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);c==="other"&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(n+1,t,a);if(p.err)return p;var f=this.tryParseArgumentClose(h);if(f.err)return f;s.push([c,{value:p.val,location:A(h,this.clonePosition())}]),u.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,d=o.location}return s.length===0?this.error(t==="select"?C.EXPECT_SELECT_ARGUMENT_SELECTOR:C.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(C.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(n,t){var a=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,i=i*10+(s-48),this.bump();else break}var u=A(r,this.clonePosition());return o?(i*=a,xu(i)?{val:i,err:null}:this.error(t,u)):this.error(n,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var t=Ha(this.message,n);if(t===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(n,t){return{val:null,err:{kind:n,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},e.prototype.bumpIf=function(n){if(Ma(this.message,n,this.offset())){for(var t=0;t<n.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(n){var t=this.offset(),a=this.message.indexOf(n,t);return a>=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var t=this.offset();if(t===n)break;if(t>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ga(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),t=this.offset(),a=this.message.charCodeAt(t+(n>=65536?2:1));return a!=null?a:null},e}();function pt(e){return e>=97&&e<=122||e>=65&&e<=90}function Cu(e){return pt(e)||e===47}function Au(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ga(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Pu(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ht(e){e.forEach(function(n){if(delete n.location,Ca(n)||Aa(n))for(var t in n.options)delete n.options[t].location,ht(n.options[t].value);else Sa(n)&&ja(n.style)||(La(n)||Ea(n))&&st(n.style)?delete n.style.location:Pa(n)&&ht(n.children)})}function ju(e,n){n===void 0&&(n={}),n=P({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var t=new Eu(e,n).parse();if(t.err){var a=SyntaxError(C[t.err.kind]);throw a.location=t.err.location,a.originalMessage=t.err.message,a}return n!=null&&n.captureLocation||ht(t.val),t.val}var ke;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ke||(ke={}));var rn=function(e){tn(n,e);function n(t,a,r){var o=e.call(this,t)||this;return o.code=a,o.originalMessage=r,o}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n}(Error),Va=function(e){tn(n,e);function n(t,a,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(a,'". Options are "').concat(Object.keys(r).join('", "'),'"'),ke.INVALID_VALUE,o)||this}return n}(rn),qu=function(e){tn(n,e);function n(t,a,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(a),ke.INVALID_VALUE,r)||this}return n}(rn),Iu=function(e){tn(n,e);function n(t,a){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(a,'"'),ke.MISSING_VALUE,a)||this}return n}(rn),F;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(F||(F={}));function Nu(e){return e.length<2?e:e.reduce(function(n,t){var a=n[n.length-1];return!a||a.type!==F.literal||t.type!==F.literal?n.push(t):a.value+=t.value,n},[])}function Ou(e){return typeof e=="function"}function on(e,n,t,a,r,o,i){if(e.length===1&&_a(e[0]))return[{type:F.literal,value:e[0].value}];for(var s=[],u=0,c=e;u<c.length;u++){var d=c[u];if(_a(d)){s.push({type:F.literal,value:d.value});continue}if(au(d)){typeof o=="number"&&s.push({type:F.literal,value:t.getNumberFormat(n).format(o)});continue}var m=d.value;if(!(r&&m in r))throw new Iu(m,i);var l=r[m];if(tu(d)){(!l||typeof l=="string"||typeof l=="number")&&(l=typeof l=="string"||typeof l=="number"?String(l):""),s.push({type:typeof l=="string"?F.literal:F.object,value:l});continue}if(La(d)){var h=typeof d.style=="string"?a.date[d.style]:st(d.style)?d.style.parsedOptions:void 0;s.push({type:F.literal,value:t.getDateTimeFormat(n,h).format(l)});continue}if(Ea(d)){var h=typeof d.style=="string"?a.time[d.style]:st(d.style)?d.style.parsedOptions:a.time.medium;s.push({type:F.literal,value:t.getDateTimeFormat(n,h).format(l)});continue}if(Sa(d)){var h=typeof d.style=="string"?a.number[d.style]:ja(d.style)?d.style.parsedOptions:void 0;h&&h.scale&&(l=l*(h.scale||1)),s.push({type:F.literal,value:t.getNumberFormat(n,h).format(l)});continue}if(Pa(d)){var p=d.children,f=d.value,g=r[f];if(!Ou(g))throw new qu(f,"function",i);var y=on(p,n,t,a,r,o),v=g(y.map(function(b){return b.value}));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map(function(b){return{type:typeof b=="string"?F.literal:F.object,value:b}}))}if(Ca(d)){var z=d.options[l]||d.options.other;if(!z)throw new Va(d.value,l,Object.keys(d.options),i);s.push.apply(s,on(z.value,n,t,a,r));continue}if(Aa(d)){var z=d.options["=".concat(l)];if(!z){if(!Intl.PluralRules)throw new rn(`Intl.PluralRules is not available in this environment.
|
|
548
|
+
</div>`;class ys extends Error{constructor(n){super(`"${n}" locale not found.`)}}class zs extends Error{constructor(n){super(`Consent template "${n}" not found.`)}}const E=e=>typeof e=="string",Ie=()=>{let e,n;const t=new Promise((a,r)=>{e=a,n=r});return t.resolve=e,t.reject=n,t},sa=e=>e==null?"":""+e,ws=(e,n,t)=>{e.forEach(a=>{n[a]&&(t[a]=n[a])})},xs=/###/g,ua=e=>e&&e.indexOf("###")>-1?e.replace(xs,"."):e,la=e=>!e||E(e),Ne=(e,n,t)=>{const a=E(n)?n.split("."):n;let r=0;for(;r<a.length-1;){if(la(e))return{};const o=ua(a[r]);!e[o]&&t&&(e[o]=new t),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++r}return la(e)?{}:{obj:e,k:ua(a[r])}},da=(e,n,t)=>{const{obj:a,k:r}=Ne(e,n,Object);if(a!==void 0||n.length===1){a[r]=t;return}let o=n[n.length-1],i=n.slice(0,n.length-1),s=Ne(e,i,Object);for(;s.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),s=Ne(e,i,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]!="undefined"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=t},_s=(e,n,t,a)=>{const{obj:r,k:o}=Ne(e,n,Object);r[o]=r[o]||[],r[o].push(t)},Je=(e,n)=>{const{obj:t,k:a}=Ne(e,n);if(!!t)return t[a]},Ss=(e,n,t)=>{const a=Je(e,t);return a!==void 0?a:Je(n,t)},ca=(e,n,t)=>{for(const a in n)a!=="__proto__"&&a!=="constructor"&&(a in e?E(e[a])||e[a]instanceof String||E(n[a])||n[a]instanceof String?t&&(e[a]=n[a]):ca(e[a],n[a],t):e[a]=n[a]);return e},fe=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ls={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Es=e=>E(e)?e.replace(/[&<>"'\/]/g,n=>Ls[n]):e;class Cs{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const t=this.regExpMap.get(n);if(t!==void 0)return t;const a=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,a),this.regExpQueue.push(n),a}}const As=[" ",",","?","!",";"],Ps=new Cs(20),js=(e,n,t)=>{n=n||"",t=t||"";const a=As.filter(i=>n.indexOf(i)<0&&t.indexOf(i)<0);if(a.length===0)return!0;const r=Ps.getRegExp(`(${a.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!r.test(e);if(!o){const i=e.indexOf(t);i>0&&!r.test(e.substring(0,i))&&(o=!0)}return o},Xn=function(e,n){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[n])return e[n];const a=n.split(t);let r=e;for(let o=0;o<a.length;){if(!r||typeof r!="object")return;let i,s="";for(let u=o;u<a.length;++u)if(u!==o&&(s+=t),s+=a[u],i=r[s],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<a.length-1)continue;o+=u-o+1;break}r=i}return r},Xe=e=>e&&e.replace("_","-"),qs={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,n){console&&console[e]&&console[e].apply(console,n)}};class $e{constructor(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(n,t)}init(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=n||qs,this.options=t,this.debug=t.debug}log(){for(var n=arguments.length,t=new Array(n),a=0;a<n;a++)t[a]=arguments[a];return this.forward(t,"log","",!0)}warn(){for(var n=arguments.length,t=new Array(n),a=0;a<n;a++)t[a]=arguments[a];return this.forward(t,"warn","",!0)}error(){for(var n=arguments.length,t=new Array(n),a=0;a<n;a++)t[a]=arguments[a];return this.forward(t,"error","")}deprecate(){for(var n=arguments.length,t=new Array(n),a=0;a<n;a++)t[a]=arguments[a];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(n,t,a,r){return r&&!this.debug?null:(E(n[0])&&(n[0]=`${a}${this.prefix} ${n[0]}`),this.logger[t](n))}create(n){return new $e(this.logger,S({prefix:`${this.prefix}:${n}:`},this.options))}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new $e(this.logger,n)}}var $=new $e;class en{constructor(){this.observers={}}on(n,t){return n.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const r=this.observers[a].get(t)||0;this.observers[a].set(t,r+1)}),this}off(n,t){if(!!this.observers[n]){if(!t){delete this.observers[n];return}this.observers[n].delete(t)}}emit(n){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];this.observers[n]&&Array.from(this.observers[n].entries()).forEach(i=>{let[s,u]=i;for(let c=0;c<u;c++)s(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[s,u]=i;for(let c=0;c<u;c++)s.apply(s,[n,...a])})}}class pa extends en{constructor(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=n||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const t=this.options.ns.indexOf(n);t>-1&&this.options.ns.splice(t,1)}getResource(n,t,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,i=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;n.indexOf(".")>-1?s=n.split("."):(s=[n,t],a&&(Array.isArray(a)?s.push(...a):E(a)&&o?s.push(...a.split(o)):s.push(a)));const u=Je(this.data,s);return!u&&!t&&!a&&n.indexOf(".")>-1&&(n=s[0],t=s[1],a=s.slice(2).join(".")),u||!i||!E(a)?u:Xn(this.data&&this.data[n]&&this.data[n][t],a,o)}addResource(n,t,a,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[n,t];a&&(s=s.concat(i?a.split(i):a)),n.indexOf(".")>-1&&(s=n.split("."),r=t,t=s[1]),this.addNamespaces(t),da(this.data,s,r),o.silent||this.emit("added",n,t,a,r)}addResources(n,t,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in a)(E(a[o])||Array.isArray(a[o]))&&this.addResource(n,t,o,a[o],{silent:!0});r.silent||this.emit("added",n,t,a)}addResourceBundle(n,t,a,r,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[n,t];n.indexOf(".")>-1&&(s=n.split("."),r=a,a=t,t=s[1]),this.addNamespaces(t);let u=Je(this.data,s)||{};i.skipCopy||(a=JSON.parse(JSON.stringify(a))),r?ca(u,a,o):u=S(S({},u),a),da(this.data,s,u),i.silent||this.emit("added",n,t,a)}removeResourceBundle(n,t){this.hasResourceBundle(n,t)&&delete this.data[n][t],this.removeNamespaces(t),this.emit("removed",n,t)}hasResourceBundle(n,t){return this.getResource(n,t)!==void 0}getResourceBundle(n,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?S({},this.getResource(n,t)):this.getResource(n,t)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const t=this.getDataByLanguage(n);return!!(t&&Object.keys(t)||[]).find(r=>t[r]&&Object.keys(t[r]).length>0)}toJSON(){return this.data}}var ha={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,n,t,a,r){return e.forEach(o=>{this.processors[o]&&(n=this.processors[o].process(n,t,a,r))}),n}};const ma={};class nn extends en{constructor(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),ws(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=$.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;const a=this.resolve(n,t);return a&&a.res!==void 0}extractFromKey(n,t){let a=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=a&&n.indexOf(a)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!js(n,a,r);if(i&&!s){const u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:o};const c=n.split(a);(a!==r||a===r&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),n=c.join(r)}return E(o)&&(o=[o]),{key:n,namespaces:o}}translate(n,t,a){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t=S({},t)),t||(t={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);const r=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,o=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:i,namespaces:s}=this.extractFromKey(n[n.length-1],t),u=s[s.length-1],c=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(d){const k=t.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${k}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:`${u}${k}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:i}const m=this.resolve(n,t);let l=m&&m.res;const h=m&&m.usedKey||i,p=m&&m.exactUsedKey||i,f=Object.prototype.toString.apply(l),g=["[object Number]","[object Function]","[object RegExp]"],y=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,z=!E(l)&&typeof l!="boolean"&&typeof l!="number";if(v&&l&&z&&g.indexOf(f)<0&&!(E(y)&&Array.isArray(l))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,l,K(S({},t),{ns:s})):`key '${i} (${this.language})' returned an object instead of string.`;return r?(m.res=k,m.usedParams=this.getUsedParamsDetails(t),m):k}if(o){const k=Array.isArray(l),b=k?[]:{},x=k?p:h;for(const w in l)if(Object.prototype.hasOwnProperty.call(l,w)){const L=`${x}${o}${w}`;b[w]=this.translate(L,K(S({},t),{joinArrays:!1,ns:s})),b[w]===L&&(b[w]=l[w])}l=b}}else if(v&&E(y)&&Array.isArray(l))l=l.join(y),l&&(l=this.extendTranslation(l,n,t,a));else{let k=!1,b=!1;const x=t.count!==void 0&&!E(t.count),w=nn.hasDefaultValue(t),L=x?this.pluralResolver.getSuffix(c,t.count,t):"",I=t.ordinal&&x?this.pluralResolver.getSuffix(c,t.count,{ordinal:!1}):"",j=x&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),R=j&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${L}`]||t[`defaultValue${I}`]||t.defaultValue;!this.isValidLookup(l)&&w&&(k=!0,l=R),this.isValidLookup(l)||(b=!0,l=i);const ue=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&b?void 0:l,Fe=w&&R!==l&&this.options.updateMissing;if(b||k||Fe){if(this.logger.log(Fe?"updateKey":"missingKey",c,u,i,Fe?R:l),o){const W=this.resolve(i,K(S({},t),{keySeparator:!1}));W&&W.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ue=[];const mn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&mn&&mn[0])for(let W=0;W<mn.length;W++)Ue.push(mn[W]);else this.options.saveMissingTo==="all"?Ue=this.languageUtils.toResolveHierarchy(t.lng||this.language):Ue.push(t.lng||this.language);const po=(W,he,Ge)=>{const ho=w&&Ge!==l?Ge:ue;this.options.missingKeyHandler?this.options.missingKeyHandler(W,u,he,ho,Fe,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(W,u,he,ho,Fe,t),this.emit("missingKey",W,u,he,l)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?Ue.forEach(W=>{const he=this.pluralResolver.getSuffixes(W,t);j&&t[`defaultValue${this.options.pluralSeparator}zero`]&&he.indexOf(`${this.options.pluralSeparator}zero`)<0&&he.push(`${this.options.pluralSeparator}zero`),he.forEach(Ge=>{po([W],i+Ge,t[`defaultValue${Ge}`]||R)})}):po(Ue,i,R))}l=this.extendTranslation(l,n,t,m,a),b&&l===i&&this.options.appendNamespaceToMissingKey&&(l=`${u}:${i}`),(b||k)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?l=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,k?l:void 0):l=this.options.parseMissingKeyHandler(l))}return r?(m.res=l,m.usedParams=this.getUsedParamsDetails(t),m):l}extendTranslation(n,t,a,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,S(S({},this.options.interpolation.defaultVariables),a),a.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(K(S({},a),{interpolation:S(S({},this.options.interpolation),a.interpolation)}));const c=E(n)&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const l=n.match(this.interpolator.nestingRegexp);d=l&&l.length}let m=a.replace&&!E(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(m=S(S({},this.options.interpolation.defaultVariables),m)),n=this.interpolator.interpolate(n,m,a.lng||this.language||r.usedLng,a),c){const l=n.match(this.interpolator.nestingRegexp),h=l&&l.length;d<h&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(a.lng=this.language||r.usedLng),a.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var l=arguments.length,h=new Array(l),p=0;p<l;p++)h[p]=arguments[p];return o&&o[0]===h[0]&&!a.context?(i.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`),null):i.translate(...h,t)},a)),a.interpolation&&this.interpolator.reset()}const s=a.postProcess||this.options.postProcess,u=E(s)?[s]:s;return n!=null&&u&&u.length&&a.applyPostProcessor!==!1&&(n=ha.handle(u,n,t,this.options&&this.options.postProcessPassResolved?S({i18nResolved:K(S({},r),{usedParams:this.getUsedParamsDetails(a)})},a):a,this)),n}resolve(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,r,o,i,s;return E(n)&&(n=[n]),n.forEach(u=>{if(this.isValidLookup(a))return;const c=this.extractFromKey(u,t),d=c.key;r=d;let m=c.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const l=t.count!==void 0&&!E(t.count),h=l&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),p=t.context!==void 0&&(E(t.context)||typeof t.context=="number")&&t.context!=="",f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);m.forEach(g=>{this.isValidLookup(a)||(s=g,!ma[`${f[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(ma[`${f[0]}-${g}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(y=>{if(this.isValidLookup(a))return;i=y;const v=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,d,y,g,t);else{let k;l&&(k=this.pluralResolver.getSuffix(y,t.count,t));const b=`${this.options.pluralSeparator}zero`,x=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(v.push(d+k),t.ordinal&&k.indexOf(x)===0&&v.push(d+k.replace(x,this.options.pluralSeparator)),h&&v.push(d+b)),p){const w=`${d}${this.options.contextSeparator}${t.context}`;v.push(w),l&&(v.push(w+k),t.ordinal&&k.indexOf(x)===0&&v.push(w+k.replace(x,this.options.pluralSeparator)),h&&v.push(w+b))}}let z;for(;z=v.pop();)this.isValidLookup(a)||(o=z,a=this.getResource(y,g,z,t))}))})}),{res:a,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:s}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,t,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,t,a,r):this.resourceStore.getResource(n,t,a,r)}getUsedParamsDetails(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=n.replace&&!E(n.replace);let r=a?n.replace:n;if(a&&typeof n.count!="undefined"&&(r.count=n.count),this.options.interpolation.defaultVariables&&(r=S(S({},this.options.interpolation.defaultVariables),r)),!a){r=S({},r);for(const o of t)delete r[o]}return r}static hasDefaultValue(n){const t="defaultValue";for(const a in n)if(Object.prototype.hasOwnProperty.call(n,a)&&t===a.substring(0,t.length)&&n[a]!==void 0)return!0;return!1}}const $n=e=>e.charAt(0).toUpperCase()+e.slice(1);class fa{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$.create("languageUtils")}getScriptPartFromCode(n){if(n=Xe(n),!n||n.indexOf("-")<0)return null;const t=n.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(n){if(n=Xe(n),!n||n.indexOf("-")<0)return n;const t=n.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(n){if(E(n)&&n.indexOf("-")>-1){if(typeof Intl!="undefined"&&typeof Intl.getCanonicalLocales!="undefined")try{let r=Intl.getCanonicalLocales(n)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch(r){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let a=n.split("-");return this.options.lowerCaseLng?a=a.map(r=>r.toLowerCase()):a.length===2?(a[0]=a[0].toLowerCase(),a[1]=a[1].toUpperCase(),t.indexOf(a[1].toLowerCase())>-1&&(a[1]=$n(a[1].toLowerCase()))):a.length===3&&(a[0]=a[0].toLowerCase(),a[1].length===2&&(a[1]=a[1].toUpperCase()),a[0]!=="sgn"&&a[2].length===2&&(a[2]=a[2].toUpperCase()),t.indexOf(a[1].toLowerCase())>-1&&(a[1]=$n(a[1].toLowerCase())),t.indexOf(a[2].toLowerCase())>-1&&(a[2]=$n(a[2].toLowerCase()))),a.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let t;return n.forEach(a=>{if(t)return;const r=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&n.forEach(a=>{if(t)return;const r=this.getLanguagePartFromCode(a);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(o=>{if(o===r)return o;if(!(o.indexOf("-")<0&&r.indexOf("-")<0)&&(o.indexOf("-")>0&&r.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===r||o.indexOf(r)===0&&r.length>1))return o})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(n,t){if(!n)return[];if(typeof n=="function"&&(n=n(t)),E(n)&&(n=[n]),Array.isArray(n))return n;if(!t)return n.default||[];let a=n[t];return a||(a=n[this.getScriptPartFromCode(t)]),a||(a=n[this.formatLanguageCode(t)]),a||(a=n[this.getLanguagePartFromCode(t)]),a||(a=n.default),a||[]}toResolveHierarchy(n,t){const a=this.getFallbackCodes(t||this.options.fallbackLng||[],n),r=[],o=i=>{!i||(this.isSupportedCode(i)?r.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return E(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(n))):E(n)&&o(this.formatLanguageCode(n)),a.forEach(i=>{r.indexOf(i)<0&&o(this.formatLanguageCode(i))}),r}}let Is=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ns={1:e=>Number(e>1),2:e=>Number(e!=1),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(e==1?0:e>=2&&e<=4?1:2),7:e=>Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(e==1?0:e==2?1:e!=8&&e!=11?2:3),9:e=>Number(e>=2),10:e=>Number(e==1?0:e==2?1:e<7?2:e<11?3:4),11:e=>Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(e!==0),14:e=>Number(e==1?0:e==2?1:e==3?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:e!==0?1:2),17:e=>Number(e==1||e%10==1&&e%100!=11?0:1),18:e=>Number(e==0?0:e==1?1:2),19:e=>Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(e==1?0:e==0||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)};const Os=["v1","v2","v3"],Rs=["v4"],ga={zero:0,one:1,two:2,few:3,many:4,other:5},Ds=()=>{const e={};return Is.forEach(n=>{n.lngs.forEach(t=>{e[t]={numbers:n.nr,plurals:Ns[n.fc]}})}),e};class Ts{constructor(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=n,this.options=t,this.logger=$.create("pluralResolver"),(!this.options.compatibilityJSON||Rs.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Ds(),this.pluralRulesCache={}}addRule(n,t){this.rules[n]=t}clearCache(){this.pluralRulesCache={}}getRule(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const a=Xe(n==="dev"?"en":n),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:a,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const i=new Intl.PluralRules(a,{type:r});return this.pluralRulesCache[o]=i,i}catch(a){return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}needsPlural(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=this.getRule(n,t);return this.shouldUseIntlApi()?a&&a.resolvedOptions().pluralCategories.length>1:a&&a.numbers.length>1}getPluralFormsOfKey(n,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,a).map(r=>`${t}${r}`)}getSuffixes(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=this.getRule(n,t);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort((r,o)=>ga[r]-ga[o]).map(r=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${r}`):a.numbers.map(r=>this.getSuffix(n,r,t)):[]}getSuffix(n,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(n,a);return r?this.shouldUseIntlApi()?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${n}`),"")}getSuffixRetroCompatible(n,t){const a=n.noAbs?n.plurals(t):n.plurals(Math.abs(t));let r=n.numbers[a];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?o():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}shouldUseIntlApi(){return!Os.includes(this.options.compatibilityJSON)}}const va=function(e,n,t){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Ss(e,n,t);return!o&&r&&E(t)&&(o=Xn(e,t,a),o===void 0&&(o=Xn(n,t,a))),o},et=e=>e.replace(/\$/g,"$$$$");class Ms{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=$.create("interpolator"),this.options=n,this.format=n.interpolation&&n.interpolation.format||(t=>t),this.init(n)}init(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});const{escape:t,escapeValue:a,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:u,formatSeparator:c,unescapeSuffix:d,unescapePrefix:m,nestingPrefix:l,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:v}=n.interpolation;this.escape=t!==void 0?t:Es,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=o?fe(o):i||"{{",this.suffix=s?fe(s):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=l?fe(l):h||fe("$t("),this.nestingSuffix=p?fe(p):f||fe(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(t,a)=>t&&t.source===a?(t.lastIndex=0,t):new RegExp(a,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(n,t,a,r){let o,i,s;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=h=>{if(h.indexOf(this.formatSeparator)<0){const y=va(t,u,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,a,K(S(S({},r),t),{interpolationkey:h})):y}const p=h.split(this.formatSeparator),f=p.shift().trim(),g=p.join(this.formatSeparator).trim();return this.format(va(t,u,f,this.options.keySeparator,this.options.ignoreJSONStructure),g,a,K(S(S({},r),t),{interpolationkey:f}))};this.resetRegExp();const d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>et(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?et(this.escape(h)):et(h)}].forEach(h=>{for(s=0;o=h.regex.exec(n);){const p=o[1].trim();if(i=c(p),i===void 0)if(typeof d=="function"){const g=d(n,o,r);i=E(g)?g:""}else if(r&&Object.prototype.hasOwnProperty.call(r,p))i="";else if(m){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${n}`),i="";else!E(i)&&!this.useRawValueToEscape&&(i=sa(i));const f=h.safeValue(i);if(n=n.replace(o[0],f),m?(h.regex.lastIndex+=i.length,h.regex.lastIndex-=o[0].length):h.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),n}nest(n,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,o,i;const s=(u,c)=>{const d=this.nestingOptionsSeparator;if(u.indexOf(d)<0)return u;const m=u.split(new RegExp(`${d}[ ]*{`));let l=`{${m[1]}`;u=m[0],l=this.interpolate(l,i);const h=l.match(/'/g),p=l.match(/"/g);(h&&h.length%2===0&&!p||p.length%2!==0)&&(l=l.replace(/'/g,'"'));try{i=JSON.parse(l),c&&(i=S(S({},c),i))}catch(f){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,f),`${u}${d}${l}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u};for(;r=this.nestingRegexp.exec(n);){let u=[];i=S({},a),i=i.replace&&!E(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const d=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=d.shift(),u=d,c=!0}if(o=t(s.call(this,r[1].trim(),i),i),o&&r[0]===n&&!E(o))return o;E(o)||(o=sa(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${n}`),o=""),c&&(o=u.reduce((d,m)=>this.format(d,m,a.lng,K(S({},a),{interpolationkey:r[1].trim()})),o.trim())),n=n.replace(r[0],o),this.regexp.lastIndex=0}return n}}const Hs=e=>{let n=e.toLowerCase().trim();const t={};if(e.indexOf("(")>-1){const a=e.split("(");n=a[0].toLowerCase().trim();const r=a[1].substring(0,a[1].length-1);n==="currency"&&r.indexOf(":")<0?t.currency||(t.currency=r.trim()):n==="relativetime"&&r.indexOf(":")<0?t.range||(t.range=r.trim()):r.split(";").forEach(i=>{if(i){const[s,...u]=i.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();t[d]||(t[d]=c),c==="false"&&(t[d]=!1),c==="true"&&(t[d]=!0),isNaN(c)||(t[d]=parseInt(c,10))}})}return{formatName:n,formatOptions:t}},ge=e=>{const n={};return(t,a,r)=>{let o=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(o=K(S({},o),{[r.interpolationkey]:void 0}));const i=a+JSON.stringify(o);let s=n[i];return s||(s=e(Xe(a),r),n[i]=s),s(t)}};class Bs{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=$.create("formatter"),this.options=n,this.formats={number:ge((t,a)=>{const r=new Intl.NumberFormat(t,S({},a));return o=>r.format(o)}),currency:ge((t,a)=>{const r=new Intl.NumberFormat(t,K(S({},a),{style:"currency"}));return o=>r.format(o)}),datetime:ge((t,a)=>{const r=new Intl.DateTimeFormat(t,S({},a));return o=>r.format(o)}),relativetime:ge((t,a)=>{const r=new Intl.RelativeTimeFormat(t,S({},a));return o=>r.format(o,a.range||"day")}),list:ge((t,a)=>{const r=new Intl.ListFormat(t,S({},a));return o=>r.format(o)})},this.init(n)}init(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(n,t){this.formats[n.toLowerCase().trim()]=t}addCached(n,t){this.formats[n.toLowerCase().trim()]=ge(t)}format(n,t,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(u=>u.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,u)=>{const{formatName:c,formatOptions:d}=Hs(u);if(this.formats[c]){let m=s;try{const l=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},h=l.locale||l.lng||r.locale||r.lng||a;m=this.formats[c](s,h,S(S(S({},d),r),l))}catch(l){this.logger.warn(l)}return m}else this.logger.warn(`there was no format function for ${c}`);return s},n)}}const Fs=(e,n)=>{e.pending[n]!==void 0&&(delete e.pending[n],e.pendingCount--)};class Us extends en{constructor(n,t,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=n,this.store=t,this.services=a,this.languageUtils=a.languageUtils,this.options=r,this.logger=$.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(a,r.backend,r)}queueLoad(n,t,a,r){const o={},i={},s={},u={};return n.forEach(c=>{let d=!0;t.forEach(m=>{const l=`${c}|${m}`;!a.reload&&this.store.hasResourceBundle(c,m)?this.state[l]=2:this.state[l]<0||(this.state[l]===1?i[l]===void 0&&(i[l]=!0):(this.state[l]=1,d=!1,i[l]===void 0&&(i[l]=!0),o[l]===void 0&&(o[l]=!0),u[m]===void 0&&(u[m]=!0)))}),d||(s[c]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}loaded(n,t,a){const r=n.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&a&&this.store.addResourceBundle(o,i,a,void 0,void 0,{skipCopy:!0}),this.state[n]=t?-1:2,t&&a&&(this.state[n]=0);const s={};this.queue.forEach(u=>{_s(u.loaded,[o],i),Fs(u,n),t&&u.errors.push(t),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{s[c]||(s[c]={});const d=u.loaded[c];d.length&&d.forEach(m=>{s[c][m]===void 0&&(s[c][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(u=>!u.done)}read(n,t,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!n.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:t,fcName:a,tried:r,wait:o,callback:i});return}this.readingCalls++;const s=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(c&&d&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,n,t,a,r+1,o*2,i)},o);return}i(c,d)},u=this.backend[a].bind(this.backend);if(u.length===2){try{const c=u(n,t);c&&typeof c.then=="function"?c.then(d=>s(null,d)).catch(s):s(null,c)}catch(c){s(c)}return}return u(n,t,s)}prepareLoading(n,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();E(n)&&(n=this.languageUtils.toResolveHierarchy(n)),E(t)&&(t=[t]);const o=this.queueLoad(n,t,a,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(n,t,a){this.prepareLoading(n,t,{},a)}reload(n,t,a){this.prepareLoading(n,t,{reload:!0},a)}loadOne(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const a=n.split("|"),r=a[0],o=a[1];this.read(r,o,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,i),!i&&s&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,s),this.loaded(n,i,s)})}saveMissing(n,t,a,r,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${a}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){const u=K(S({},i),{isUpdate:o}),c=this.backend.create.bind(this.backend);if(c.length<6)try{let d;c.length===5?d=c(n,t,a,r,u):d=c(n,t,a,r),d&&typeof d.then=="function"?d.then(m=>s(null,m)).catch(s):s(null,d)}catch(d){s(d)}else c(n,t,a,r,s,u)}!n||!n[0]||this.store.addResource(n[0],t,a,r)}}}const ka=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let n={};if(typeof e[1]=="object"&&(n=e[1]),E(e[1])&&(n.defaultValue=e[1]),E(e[2])&&(n.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const t=e[3]||e[2];Object.keys(t).forEach(a=>{n[a]=t[a]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ba=e=>(E(e.ns)&&(e.ns=[e.ns]),E(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),E(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),tn=()=>{},Gs=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})};class Oe extends en{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ba(n),this.services={},this.logger=$,this.modules={external:[]},Gs(this),t&&!this.isInitialized&&!n.isClone){if(!this.options.initImmediate)return this.init(n,t),this;setTimeout(()=>{this.init(n,t)},0)}}init(){var n=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(a=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(E(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=ka();this.options=S(S(S({},r),this.options),ba(t)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=S(S({},r.interpolation),this.options.interpolation)),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?$.init(o(this.modules.logger),this.options):$.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl!="undefined"&&(d=Bs);const m=new fa(this.options);this.store=new pa(this.options.resources,this.options);const l=this.services;l.logger=$,l.resourceStore=this.store,l.languageUtils=m,l.pluralResolver=new Ts(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(l.formatter=o(d),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new Ms(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new Us(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(h){for(var p=arguments.length,f=new Array(p>1?p-1:0),g=1;g<p;g++)f[g-1]=arguments[g];n.emit(h,...f)}),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init&&l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new nn(this.services,this.options),this.translator.on("*",function(h){for(var p=arguments.length,f=new Array(p>1?p-1:0),g=1;g<p;g++)f[g-1]=arguments[g];n.emit(h,...f)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,a||(a=tn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return n.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return n.store[d](...arguments),n}});const u=Ie(),c=()=>{const d=(m,l)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(l),a(m,l)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}loadResources(n){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tn;const r=E(n)?n:this.language;if(typeof n=="function"&&(a=n),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const o=[],i=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&o.indexOf(c)<0&&o.push(c)})};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>i(u)),this.options.preload&&this.options.preload.forEach(s=>i(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(s)})}else a(null)}reloadResources(n,t,a){const r=Ie();return typeof n=="function"&&(a=n,n=void 0),typeof t=="function"&&(a=t,t=void 0),n||(n=this.languages),t||(t=this.options.ns),a||(a=tn),this.services.backendConnector.reload(n,t,o=>{r.resolve(),a(o)}),r}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&ha.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1))for(let t=0;t<this.languages.length;t++){const a=this.languages[t];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}changeLanguage(n,t){var a=this;this.isLanguageChangingTo=n;const r=Ie();this.emit("languageChanging",n);const o=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve(function(){return a.t(...arguments)}),t&&t(u,function(){return a.t(...arguments)})},s=u=>{!n&&!u&&this.services.languageDetector&&(u=[]);const c=E(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,d=>{i(d,c)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(n),r}getFixedT(n,t,a){var r=this;const o=function(i,s){let u;if(typeof s!="object"){for(var c=arguments.length,d=new Array(c>2?c-2:0),m=2;m<c;m++)d[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([i,s].concat(d))}else u=S({},s);u.lng=u.lng||o.lng,u.lngs=u.lngs||o.lngs,u.ns=u.ns||o.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||a||o.keyPrefix);const l=r.options.keySeparator||".";let h;return u.keyPrefix&&Array.isArray(i)?h=i.map(p=>`${u.keyPrefix}${l}${p}`):h=u.keyPrefix?`${u.keyPrefix}${l}${i}`:i,r.t(h,u)};return E(n)?o.lng=n:o.lngs=n,o.ns=t,o.keyPrefix=a,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const a=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const i=(s,u)=>{const c=this.services.backendConnector.state[`${s}|${u}`];return c===-1||c===0||c===2};if(t.precheck){const s=t.precheck(this,i);if(s!==void 0)return s}return!!(this.hasResourceBundle(a,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(a,n)&&(!r||i(o,n)))}loadNamespaces(n,t){const a=Ie();return this.options.ns?(E(n)&&(n=[n]),n.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{a.resolve(),t&&t(r)}),a):(t&&t(),Promise.resolve())}loadLanguages(n,t){const a=Ie();E(n)&&(n=[n]);const r=this.options.preload||[],o=n.filter(i=>r.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=r.concat(o),this.loadResources(i=>{a.resolve(),t&&t(i)}),a):(t&&t(),Promise.resolve())}dir(n){if(n||(n=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!n)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new fa(ka());return t.indexOf(a.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Oe(n,t)}cloneInstance(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tn;const a=n.forkResourceStore;a&&delete n.forkResourceStore;const r=K(S(S({},this.options),n),{isClone:!0}),o=new Oe(r);return(n.debug!==void 0||n.prefix!==void 0)&&(o.logger=o.logger.clone(n)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services=S({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},a&&(o.store=new pa(this.store.data,r),o.services.resourceStore=o.store),o.translator=new nn(o.services,r),o.translator.on("*",function(s){for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];o.emit(s,...c)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const N=Oe.createInstance();N.createInstance=Oe.createInstance,N.createInstance,N.dir,N.init,N.loadResources,N.reloadResources,N.use,N.changeLanguage,N.getFixedT,N.t,N.exists,N.setDefaultNamespace,N.hasLoadedNamespace,N.loadNamespaces,N.loadLanguages;function ya(e,n,t){function a(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function r(){return!e||typeof e=="string"}for(var o=typeof n!="string"?[].concat(n):n.split(".");o.length>1;){if(r())return{};var i=a(o.shift());!e[i]&&t&&(e[i]=new t),e=e[i]}return r()?{}:{obj:e,k:a(o.shift())}}function Vs(e,n,t){var a=ya(e,n,Object),r=a.obj,o=a.k;r[o]=t}function Ws(e,n){var t=ya(e,n),a=t.obj,r=t.k;if(!!a)return a[r]}var za=[],Ks=za.forEach,Ys=za.slice;function Zs(e){return Ks.call(Ys.call(arguments,1),function(n){if(n)for(var t in n)e[t]===void 0&&(e[t]=n[t])}),e}var nt=function(e,n){return nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r])},nt(e,n)};function an(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");nt(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var P=function(){return P=Object.assign||function(n){for(var t,a=1,r=arguments.length;a<r;a++){t=arguments[a];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},P.apply(this,arguments)};function Qs(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)n.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]]);return t}function tt(e,n,t){if(t||arguments.length===2)for(var a=0,r=n.length,o;a<r;a++)(o||!(a in n))&&(o||(o=Array.prototype.slice.call(n,0,a)),o[a]=n[a]);return e.concat(o||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;function at(e,n){var t=n&&n.cache?n.cache:tu,a=n&&n.serializer?n.serializer:nu,r=n&&n.strategy?n.strategy:Xs;return r(e,{cache:t,serializer:a})}function Js(e){return e==null||typeof e=="number"||typeof e=="boolean"}function wa(e,n,t,a){var r=Js(a)?a:t(a),o=n.get(r);return typeof o=="undefined"&&(o=e.call(this,a),n.set(r,o)),o}function xa(e,n,t){var a=Array.prototype.slice.call(arguments,3),r=t(a),o=n.get(r);return typeof o=="undefined"&&(o=e.apply(this,a),n.set(r,o)),o}function rt(e,n,t,a,r){return t.bind(n,e,a,r)}function Xs(e,n){var t=e.length===1?wa:xa;return rt(e,this,t,n.cache.create(),n.serializer)}function $s(e,n){return rt(e,this,xa,n.cache.create(),n.serializer)}function eu(e,n){return rt(e,this,wa,n.cache.create(),n.serializer)}var nu=function(){return JSON.stringify(arguments)};function ot(){this.cache=Object.create(null)}ot.prototype.get=function(e){return this.cache[e]},ot.prototype.set=function(e,n){this.cache[e]=n};var tu={create:function(){return new ot}},it={variadic:$s,monadic:eu},C;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(C||(C={}));var O;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(O||(O={}));var ve;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ve||(ve={}));function _a(e){return e.type===O.literal}function au(e){return e.type===O.argument}function Sa(e){return e.type===O.number}function La(e){return e.type===O.date}function Ea(e){return e.type===O.time}function Ca(e){return e.type===O.select}function Aa(e){return e.type===O.plural}function ru(e){return e.type===O.pound}function Pa(e){return e.type===O.tag}function ja(e){return!!(e&&typeof e=="object"&&e.type===ve.number)}function st(e){return!!(e&&typeof e=="object"&&e.type===ve.dateTime)}var qa=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ou=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function iu(e){var n={};return e.replace(ou,function(t){var a=t.length;switch(t[0]){case"G":n.era=a===4?"long":a===5?"narrow":"short";break;case"y":n.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":n.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=a===4?"long":a===5?"narrow":"short";break;case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][a-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][a-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][a-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][a-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":n.minute=["numeric","2-digit"][a-1];break;case"s":n.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),n}var su=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function uu(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(su).filter(function(l){return l.length>0}),t=[],a=0,r=n;a<r.length;a++){var o=r[a],i=o.split("/");if(i.length===0)throw new Error("Invalid number skeleton");for(var s=i[0],u=i.slice(1),c=0,d=u;c<d.length;c++){var m=d[c];if(m.length===0)throw new Error("Invalid number skeleton")}t.push({stem:s,options:u})}return t}function lu(e){return e.replace(/^(.*?)-/,"")}var Ia=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Na=/^(@+)?(\+|#+)?[rs]?$/g,du=/(\*)(0+)|(#+)(0+)|(0+)/g,Oa=/^(0+)$/;function Ra(e){var n={};return e[e.length-1]==="r"?n.roundingPriority="morePrecision":e[e.length-1]==="s"&&(n.roundingPriority="lessPrecision"),e.replace(Na,function(t,a,r){return typeof r!="string"?(n.minimumSignificantDigits=a.length,n.maximumSignificantDigits=a.length):r==="+"?n.minimumSignificantDigits=a.length:a[0]==="#"?n.maximumSignificantDigits=a.length:(n.minimumSignificantDigits=a.length,n.maximumSignificantDigits=a.length+(typeof r=="string"?r.length:0)),""}),n}function Da(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function cu(e){var n;if(e[0]==="E"&&e[1]==="E"?(n={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(n={notation:"scientific"},e=e.slice(1)),n){var t=e.slice(0,2);if(t==="+!"?(n.signDisplay="always",e=e.slice(2)):t==="+?"&&(n.signDisplay="exceptZero",e=e.slice(2)),!Oa.test(e))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}function Ta(e){var n={},t=Da(e);return t||n}function pu(e){for(var n={},t=0,a=e;t<a.length;t++){var r=a[t];switch(r.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=r.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=lu(r.options[0]);continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=P(P(P({},n),{notation:"scientific"}),r.options.reduce(function(u,c){return P(P({},u),Ta(c))},{}));continue;case"engineering":n=P(P(P({},n),{notation:"engineering"}),r.options.reduce(function(u,c){return P(P({},u),Ta(c))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(du,function(u,c,d,m,l,h){if(c)n.minimumIntegerDigits=d.length;else{if(m&&l)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Oa.test(r.stem)){n.minimumIntegerDigits=r.stem.length;continue}if(Ia.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Ia,function(u,c,d,m,l,h){return d==="*"?n.minimumFractionDigits=c.length:m&&m[0]==="#"?n.maximumFractionDigits=m.length:l&&h?(n.minimumFractionDigits=l.length,n.maximumFractionDigits=l.length+h.length):(n.minimumFractionDigits=c.length,n.maximumFractionDigits=c.length),""});var o=r.options[0];o==="w"?n=P(P({},n),{trailingZeroDisplay:"stripIfInteger"}):o&&(n=P(P({},n),Ra(o)));continue}if(Na.test(r.stem)){n=P(P({},n),Ra(r.stem));continue}var i=Da(r.stem);i&&(n=P(P({},n),i));var s=cu(r.stem);s&&(n=P(P({},n),s))}return n}var rn={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function hu(e,n){for(var t="",a=0;a<e.length;a++){var r=e.charAt(a);if(r==="j"){for(var o=0;a+1<e.length&&e.charAt(a+1)===r;)o++,a++;var i=1+(o&1),s=o<2?1:3+(o>>1),u="a",c=mu(n);for((c=="H"||c=="k")&&(s=0);s-- >0;)t+=u;for(;i-- >0;)t=c+t}else r==="J"?t+="H":t+=r}return t}function mu(e){var n=e.hourCycle;if(n===void 0&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=e.language,a;t!=="root"&&(a=e.maximize().region);var r=rn[a||""]||rn[t||""]||rn["".concat(t,"-001")]||rn["001"];return r[0]}var ut,fu=new RegExp("^".concat(qa.source,"*")),gu=new RegExp("".concat(qa.source,"*$"));function A(e,n){return{start:e,end:n}}var vu=!!String.prototype.startsWith&&"_a".startsWith("a",1),ku=!!String.fromCodePoint,bu=!!Object.fromEntries,yu=!!String.prototype.codePointAt,zu=!!String.prototype.trimStart,wu=!!String.prototype.trimEnd,xu=!!Number.isSafeInteger,_u=xu?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},lt=!0;try{var Su=Fa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");lt=((ut=Su.exec("a"))===null||ut===void 0?void 0:ut[0])==="a"}catch(e){lt=!1}var Ma=vu?function(n,t,a){return n.startsWith(t,a)}:function(n,t,a){return n.slice(a,a+t.length)===t},dt=ku?String.fromCodePoint:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(var a="",r=n.length,o=0,i;r>o;){if(i=n[o++],i>1114111)throw RangeError(i+" is not a valid code point");a+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return a},Ha=bu?Object.fromEntries:function(n){for(var t={},a=0,r=n;a<r.length;a++){var o=r[a],i=o[0],s=o[1];t[i]=s}return t},Ba=yu?function(n,t){return n.codePointAt(t)}:function(n,t){var a=n.length;if(!(t<0||t>=a)){var r=n.charCodeAt(t),o;return r<55296||r>56319||t+1===a||(o=n.charCodeAt(t+1))<56320||o>57343?r:(r-55296<<10)+(o-56320)+65536}},Lu=zu?function(n){return n.trimStart()}:function(n){return n.replace(fu,"")},Eu=wu?function(n){return n.trimEnd()}:function(n){return n.replace(gu,"")};function Fa(e,n){return new RegExp(e,n)}var ct;if(lt){var Ua=Fa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ct=function(n,t){var a;Ua.lastIndex=t;var r=Ua.exec(n);return(a=r[1])!==null&&a!==void 0?a:""}}else ct=function(n,t){for(var a=[];;){var r=Ba(n,t);if(r===void 0||Ga(r)||ju(r))break;a.push(r),t+=r>=65536?2:1}return dt.apply(void 0,a)};var Cu=function(){function e(n,t){t===void 0&&(t={}),this.message=n,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(n,t,a){for(var r=[];!this.isEOF();){var o=this.char();if(o===123){var i=this.parseArgument(n,a);if(i.err)return i;r.push(i.val)}else{if(o===125&&n>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){var s=this.clonePosition();this.bump(),r.push({type:O.pound,location:A(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(C.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&pt(this.peek()||0)){var i=this.parseTag(n,t);if(i.err)return i;r.push(i.val)}else{var i=this.parseLiteral(n,t);if(i.err)return i;r.push(i.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(n,t){var a=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:O.literal,value:"<".concat(r,"/>"),location:A(a,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(n+1,t,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!pt(this.char()))return this.error(C.INVALID_TAG,A(s,this.clonePosition()));var u=this.clonePosition(),c=this.parseTagName();return r!==c?this.error(C.UNMATCHED_CLOSING_TAG,A(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:O.tag,value:r,children:i,location:A(a,this.clonePosition())},err:null}:this.error(C.INVALID_TAG,A(s,this.clonePosition())))}else return this.error(C.UNCLOSED_TAG,A(a,this.clonePosition()))}else return this.error(C.INVALID_TAG,A(a,this.clonePosition()))},e.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&Pu(this.char());)this.bump();return this.message.slice(n,this.offset())},e.prototype.parseLiteral=function(n,t){for(var a=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o){r+=o;continue}var i=this.tryParseUnquoted(n,t);if(i){r+=i;continue}var s=this.tryParseLeftAngleBracket();if(s){r+=s;continue}break}var u=A(a,this.clonePosition());return{val:{type:O.literal,value:r,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Au(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(n){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(n==="plural"||n==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var a=this.char();if(a===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(a);this.bump()}return dt.apply(void 0,t)},e.prototype.tryParseUnquoted=function(n,t){if(this.isEOF())return null;var a=this.char();return a===60||a===123||a===35&&(t==="plural"||t==="selectordinal")||a===125&&n>0?null:(this.bump(),dt(a))},e.prototype.parseArgument=function(n,t){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(C.EMPTY_ARGUMENT,A(a,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(C.MALFORMED_ARGUMENT,A(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:O.argument,value:r,location:A(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition())):this.parseArgumentOptions(n,t,r,a);default:return this.error(C.MALFORMED_ARGUMENT,A(a,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),t=this.offset(),a=ct(this.message,t),r=t+a.length;this.bumpTo(r);var o=this.clonePosition(),i=A(n,o);return{value:a,location:i}},e.prototype.parseArgumentOptions=function(n,t,a,r){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(C.EXPECT_ARGUMENT_TYPE,A(i,u));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var l=Eu(m.val);if(l.length===0)return this.error(C.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var h=A(d,this.clonePosition());c={style:l,styleLocation:h}}var p=this.tryParseArgumentClose(r);if(p.err)return p;var f=A(r,this.clonePosition());if(c&&Ma(c==null?void 0:c.style,"::",0)){var g=Lu(c.style.slice(2));if(s==="number"){var m=this.parseNumberSkeletonFromString(g,c.styleLocation);return m.err?m:{val:{type:O.number,value:a,location:f,style:m.val},err:null}}else{if(g.length===0)return this.error(C.EXPECT_DATE_TIME_SKELETON,f);var y=g;this.locale&&(y=hu(g,this.locale));var l={type:ve.dateTime,pattern:y,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?iu(y):{}},v=s==="date"?O.date:O.time;return{val:{type:v,value:a,location:f,style:l},err:null}}}return{val:{type:s==="number"?O.number:s==="date"?O.date:O.time,value:a,location:f,style:(o=c==null?void 0:c.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var z=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS,A(z,P({},z)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),b=0;if(s!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),k=this.parseIdentifierIfPossible(),b=m.val}var x=this.tryParsePluralOrSelectOptions(n,s,t,k);if(x.err)return x;var p=this.tryParseArgumentClose(r);if(p.err)return p;var w=A(r,this.clonePosition());return s==="select"?{val:{type:O.select,value:a,options:Ha(x.val),location:w},err:null}:{val:{type:O.plural,value:a,options:Ha(x.val),offset:b,pluralType:s==="plural"?"cardinal":"ordinal",location:w},err:null}}default:return this.error(C.INVALID_ARGUMENT_TYPE,A(i,u))}},e.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=0,t=this.clonePosition();!this.isEOF();){var a=this.char();switch(a){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(r,this.clonePosition()));this.bump();break}case 123:{n+=1,this.bump();break}case 125:{if(n>0)n-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(n,t){var a=[];try{a=uu(n)}catch(r){return this.error(C.INVALID_NUMBER_SKELETON,t)}return{val:{type:ve.number,tokens:a,location:t,parsedOptions:this.shouldParseSkeletons?pu(a):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(n,t,a,r){for(var o,i=!1,s=[],u=new Set,c=r.value,d=r.location;;){if(c.length===0){var m=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var l=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_SELECTOR,C.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;d=A(m,this.clonePosition()),c=this.message.slice(m.offset,this.offset())}else break}if(u.has(c))return this.error(t==="select"?C.DUPLICATE_SELECT_ARGUMENT_SELECTOR:C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);c==="other"&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(n+1,t,a);if(p.err)return p;var f=this.tryParseArgumentClose(h);if(f.err)return f;s.push([c,{value:p.val,location:A(h,this.clonePosition())}]),u.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,d=o.location}return s.length===0?this.error(t==="select"?C.EXPECT_SELECT_ARGUMENT_SELECTOR:C.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(C.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(n,t){var a=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,i=i*10+(s-48),this.bump();else break}var u=A(r,this.clonePosition());return o?(i*=a,_u(i)?{val:i,err:null}:this.error(t,u)):this.error(n,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var t=Ba(this.message,n);if(t===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(n,t){return{val:null,err:{kind:n,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},e.prototype.bumpIf=function(n){if(Ma(this.message,n,this.offset())){for(var t=0;t<n.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(n){var t=this.offset(),a=this.message.indexOf(n,t);return a>=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var t=this.offset();if(t===n)break;if(t>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ga(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),t=this.offset(),a=this.message.charCodeAt(t+(n>=65536?2:1));return a!=null?a:null},e}();function pt(e){return e>=97&&e<=122||e>=65&&e<=90}function Au(e){return pt(e)||e===47}function Pu(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ga(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ju(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ht(e){e.forEach(function(n){if(delete n.location,Ca(n)||Aa(n))for(var t in n.options)delete n.options[t].location,ht(n.options[t].value);else Sa(n)&&ja(n.style)||(La(n)||Ea(n))&&st(n.style)?delete n.style.location:Pa(n)&&ht(n.children)})}function qu(e,n){n===void 0&&(n={}),n=P({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var t=new Cu(e,n).parse();if(t.err){var a=SyntaxError(C[t.err.kind]);throw a.location=t.err.location,a.originalMessage=t.err.message,a}return n!=null&&n.captureLocation||ht(t.val),t.val}var ke;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ke||(ke={}));var on=function(e){an(n,e);function n(t,a,r){var o=e.call(this,t)||this;return o.code=a,o.originalMessage=r,o}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n}(Error),Va=function(e){an(n,e);function n(t,a,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(a,'". Options are "').concat(Object.keys(r).join('", "'),'"'),ke.INVALID_VALUE,o)||this}return n}(on),Iu=function(e){an(n,e);function n(t,a,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(a),ke.INVALID_VALUE,r)||this}return n}(on),Nu=function(e){an(n,e);function n(t,a){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(a,'"'),ke.MISSING_VALUE,a)||this}return n}(on),F;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(F||(F={}));function Ou(e){return e.length<2?e:e.reduce(function(n,t){var a=n[n.length-1];return!a||a.type!==F.literal||t.type!==F.literal?n.push(t):a.value+=t.value,n},[])}function Ru(e){return typeof e=="function"}function sn(e,n,t,a,r,o,i){if(e.length===1&&_a(e[0]))return[{type:F.literal,value:e[0].value}];for(var s=[],u=0,c=e;u<c.length;u++){var d=c[u];if(_a(d)){s.push({type:F.literal,value:d.value});continue}if(ru(d)){typeof o=="number"&&s.push({type:F.literal,value:t.getNumberFormat(n).format(o)});continue}var m=d.value;if(!(r&&m in r))throw new Nu(m,i);var l=r[m];if(au(d)){(!l||typeof l=="string"||typeof l=="number")&&(l=typeof l=="string"||typeof l=="number"?String(l):""),s.push({type:typeof l=="string"?F.literal:F.object,value:l});continue}if(La(d)){var h=typeof d.style=="string"?a.date[d.style]:st(d.style)?d.style.parsedOptions:void 0;s.push({type:F.literal,value:t.getDateTimeFormat(n,h).format(l)});continue}if(Ea(d)){var h=typeof d.style=="string"?a.time[d.style]:st(d.style)?d.style.parsedOptions:a.time.medium;s.push({type:F.literal,value:t.getDateTimeFormat(n,h).format(l)});continue}if(Sa(d)){var h=typeof d.style=="string"?a.number[d.style]:ja(d.style)?d.style.parsedOptions:void 0;h&&h.scale&&(l=l*(h.scale||1)),s.push({type:F.literal,value:t.getNumberFormat(n,h).format(l)});continue}if(Pa(d)){var p=d.children,f=d.value,g=r[f];if(!Ru(g))throw new Iu(f,"function",i);var y=sn(p,n,t,a,r,o),v=g(y.map(function(b){return b.value}));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map(function(b){return{type:typeof b=="string"?F.literal:F.object,value:b}}))}if(Ca(d)){var z=d.options[l]||d.options.other;if(!z)throw new Va(d.value,l,Object.keys(d.options),i);s.push.apply(s,sn(z.value,n,t,a,r));continue}if(Aa(d)){var z=d.options["=".concat(l)];if(!z){if(!Intl.PluralRules)throw new on(`Intl.PluralRules is not available in this environment.
|
|
549
549
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
550
|
-
`,ke.MISSING_INTL_API,i);var k=t.getPluralRules(n,{type:d.pluralType}).select(l-(d.offset||0));z=d.options[k]||d.options.other}if(!z)throw new Va(d.value,l,Object.keys(d.options),i);s.push.apply(s,
|
|
550
|
+
`,ke.MISSING_INTL_API,i);var k=t.getPluralRules(n,{type:d.pluralType}).select(l-(d.offset||0));z=d.options[k]||d.options.other}if(!z)throw new Va(d.value,l,Object.keys(d.options),i);s.push.apply(s,sn(z.value,n,t,a,r,l-(d.offset||0)));continue}}return Ou(s)}function Du(e,n){return n?P(P(P({},e||{}),n||{}),Object.keys(e).reduce(function(t,a){return t[a]=P(P({},e[a]),n[a]||{}),t},{})):e}function Tu(e,n){return n?Object.keys(e).reduce(function(t,a){return t[a]=Du(e[a],n[a]),t},P({},e)):e}function mt(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,t){e[n]=t}}}}}function Mu(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:at(function(){for(var n,t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return new((n=Intl.NumberFormat).bind.apply(n,tt([void 0],t,!1)))},{cache:mt(e.number),strategy:it.variadic}),getDateTimeFormat:at(function(){for(var n,t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return new((n=Intl.DateTimeFormat).bind.apply(n,tt([void 0],t,!1)))},{cache:mt(e.dateTime),strategy:it.variadic}),getPluralRules:at(function(){for(var n,t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return new((n=Intl.PluralRules).bind.apply(n,tt([void 0],t,!1)))},{cache:mt(e.pluralRules),strategy:it.variadic})}}var Wa=function(){function e(n,t,a,r){t===void 0&&(t=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var c=o.formatToParts(u);if(c.length===1)return c[0].value;var d=c.reduce(function(m,l){return!m.length||l.type!==F.literal||typeof m[m.length-1]!="string"?m.push(l.value):m[m.length-1]+=l.value,m},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(u){return sn(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=e.resolveLocale(t),typeof n=="string"){if(this.message=n,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var i=r||{};i.formatters;var s=Qs(i,["formatters"]);this.ast=e.__parse(n,P(P({},s),{locale:this.resolvedLocale}))}else this.ast=n;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Tu(e.formats,a),this.formatters=r&&r.formatters||Mu(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(n){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(n);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof n=="string"?n:n[0])}},e.__parse=qu,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Ka(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,a)}return t}function Ya(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Ka(Object(t),!0).forEach(function(a){Hu(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ka(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function Hu(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Bu(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Za(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Fu(e,n,t){return n&&Za(e.prototype,n),t&&Za(e,t),e}function Uu(){return{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(n,t,a,r){return a},parseLngForICU:function(n){return n}}}var Qa=function(){function e(n){Bu(this,e),this.type="i18nFormat",this.mem={},this.init(null,n)}return Fu(e,[{key:"init",value:function(t,a){var r=this,o=t&&t.options&&t.options.i18nFormat||{};if(this.options=Zs(o,a,this.options||{},Uu()),this.formats=this.options.formats,t){var i=this.options,s=i.bindI18n,u=i.bindI18nStore,c=i.memoize;t.IntlMessageFormat=Wa,t.ICU=this,c&&(s&&t.on(s,function(){return r.clearCache()}),u&&t.store.on(u,function(){return r.clearCache()}))}}},{key:"addUserDefinedFormats",value:function(t){this.formats=this.formats?Ya(Ya({},this.formats),t):t}},{key:"parse",value:function(t,a,r,o,i,s){var u=s&&s.resolved&&s.resolved.res,c=this.options.memoize&&"".concat(r,".").concat(o,".").concat(i.replace(/\./g,"###")),d;this.options.memoize&&(d=Ws(this.mem,c));try{if(!d){var m=this.options.parseLngForICU(r);d=new Wa(t,m,this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!s||u)&&Vs(this.mem,c,d)}return d.format(a)}catch(l){return this.options.parseErrorHandler(l,i,t,a)}}},{key:"addLookupKeys",value:function(t,a,r,o,i){return t}},{key:"clearCache",value:function(){this.mem={}}}]),e}();Qa.type="i18nFormat";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Ja(e){return typeof e=="undefined"||e===null}function Gu(e){return typeof e=="object"&&e!==null}function Vu(e){return Array.isArray(e)?e:Ja(e)?[]:[e]}function Wu(e,n){var t,a,r,o;if(n)for(o=Object.keys(n),t=0,a=o.length;t<a;t+=1)r=o[t],e[r]=n[r];return e}function Ku(e,n){var t="",a;for(a=0;a<n;a+=1)t+=e;return t}function Yu(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Zu=Ja,Qu=Gu,Ju=Vu,Xu=Ku,$u=Yu,el=Wu,T={isNothing:Zu,isObject:Qu,toArray:Ju,repeat:Xu,isNegativeZero:$u,extend:el};function Xa(e,n){var t="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(t+=`
|
|
551
551
|
|
|
552
|
-
`+e.mark.snippet),a+" "+t):a}function Re(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=Xa(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Re.prototype=Object.create(Error.prototype),Re.prototype.constructor=Re,Re.prototype.toString=function(n){return this.name+": "+Xa(this,n)};var U=Re;function ft(e,n,t,a,r){var o="",i="",s=Math.floor(r/2)-1;return a-n>s&&(o=" ... ",n=a-s+o.length),t-a>s&&(i=" ...",t=a+s-i.length),{str:o+e.slice(n,t).replace(/\t/g,"\u2192")+i,pos:a-n+o.length}}function gt(e,n){return T.repeat(" ",n-e.length)+e}function
|
|
552
|
+
`+e.mark.snippet),a+" "+t):a}function Re(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=Xa(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Re.prototype=Object.create(Error.prototype),Re.prototype.constructor=Re,Re.prototype.toString=function(n){return this.name+": "+Xa(this,n)};var U=Re;function ft(e,n,t,a,r){var o="",i="",s=Math.floor(r/2)-1;return a-n>s&&(o=" ... ",n=a-s+o.length),t-a>s&&(i=" ...",t=a+s-i.length),{str:o+e.slice(n,t).replace(/\t/g,"\u2192")+i,pos:a-n+o.length}}function gt(e,n){return T.repeat(" ",n-e.length)+e}function nl(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var t=/\r?\n|\r|\0/g,a=[0],r=[],o,i=-1;o=t.exec(e.buffer);)r.push(o.index),a.push(o.index+o[0].length),e.position<=o.index&&i<0&&(i=a.length-2);i<0&&(i=a.length-1);var s="",u,c,d=Math.min(e.line+n.linesAfter,r.length).toString().length,m=n.maxLength-(n.indent+d+3);for(u=1;u<=n.linesBefore&&!(i-u<0);u++)c=ft(e.buffer,a[i-u],r[i-u],e.position-(a[i]-a[i-u]),m),s=T.repeat(" ",n.indent)+gt((e.line-u+1).toString(),d)+" | "+c.str+`
|
|
553
553
|
`+s;for(c=ft(e.buffer,a[i],r[i],e.position,m),s+=T.repeat(" ",n.indent)+gt((e.line+1).toString(),d)+" | "+c.str+`
|
|
554
554
|
`,s+=T.repeat("-",n.indent+d+3+c.pos)+`^
|
|
555
555
|
`,u=1;u<=n.linesAfter&&!(i+u>=r.length);u++)c=ft(e.buffer,a[i+u],r[i+u],e.position-(a[i]-a[i+u]),m),s+=T.repeat(" ",n.indent)+gt((e.line+u+1).toString(),d)+" | "+c.str+`
|
|
556
|
-
`;return s.replace(/\n$/,"")}var nl
|
|
557
|
-
\r`;function
|
|
558
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function
|
|
559
|
-
`,n-1))}function
|
|
556
|
+
`;return s.replace(/\n$/,"")}var tl=nl,al=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],rl=["scalar","sequence","mapping"];function ol(e){var n={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(a){n[String(a)]=t})}),n}function il(e,n){if(n=n||{},Object.keys(n).forEach(function(t){if(al.indexOf(t)===-1)throw new U('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(t){return t},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=ol(n.styleAliases||null),rl.indexOf(this.kind)===-1)throw new U('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var M=il;function $a(e,n){var t=[];return e[n].forEach(function(a){var r=t.length;t.forEach(function(o,i){o.tag===a.tag&&o.kind===a.kind&&o.multi===a.multi&&(r=i)}),t[r]=a}),t}function sl(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,t;function a(r){r.multi?(e.multi[r.kind].push(r),e.multi.fallback.push(r)):e[r.kind][r.tag]=e.fallback[r.tag]=r}for(n=0,t=arguments.length;n<t;n+=1)arguments[n].forEach(a);return e}function vt(e){return this.extend(e)}vt.prototype.extend=function(n){var t=[],a=[];if(n instanceof M)a.push(n);else if(Array.isArray(n))a=a.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(t=t.concat(n.implicit)),n.explicit&&(a=a.concat(n.explicit));else throw new U("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(o){if(!(o instanceof M))throw new U("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new U("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new U("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(o){if(!(o instanceof M))throw new U("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(vt.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(a),r.compiledImplicit=$a(r,"implicit"),r.compiledExplicit=$a(r,"explicit"),r.compiledTypeMap=sl(r.compiledImplicit,r.compiledExplicit),r};var er=vt,nr=new M("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),tr=new M("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),ar=new M("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),rr=new er({explicit:[nr,tr,ar]});function ul(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function ll(){return null}function dl(e){return e===null}var or=new M("tag:yaml.org,2002:null",{kind:"scalar",resolve:ul,construct:ll,predicate:dl,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function cl(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function pl(e){return e==="true"||e==="True"||e==="TRUE"}function hl(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ir=new M("tag:yaml.org,2002:bool",{kind:"scalar",resolve:cl,construct:pl,predicate:hl,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function ml(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function fl(e){return 48<=e&&e<=55}function gl(e){return 48<=e&&e<=57}function vl(e){if(e===null)return!1;var n=e.length,t=0,a=!1,r;if(!n)return!1;if(r=e[t],(r==="-"||r==="+")&&(r=e[++t]),r==="0"){if(t+1===n)return!0;if(r=e[++t],r==="b"){for(t++;t<n;t++)if(r=e[t],r!=="_"){if(r!=="0"&&r!=="1")return!1;a=!0}return a&&r!=="_"}if(r==="x"){for(t++;t<n;t++)if(r=e[t],r!=="_"){if(!ml(e.charCodeAt(t)))return!1;a=!0}return a&&r!=="_"}if(r==="o"){for(t++;t<n;t++)if(r=e[t],r!=="_"){if(!fl(e.charCodeAt(t)))return!1;a=!0}return a&&r!=="_"}}if(r==="_")return!1;for(;t<n;t++)if(r=e[t],r!=="_"){if(!gl(e.charCodeAt(t)))return!1;a=!0}return!(!a||r==="_")}function kl(e){var n=e,t=1,a;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),a=n[0],(a==="-"||a==="+")&&(a==="-"&&(t=-1),n=n.slice(1),a=n[0]),n==="0")return 0;if(a==="0"){if(n[1]==="b")return t*parseInt(n.slice(2),2);if(n[1]==="x")return t*parseInt(n.slice(2),16);if(n[1]==="o")return t*parseInt(n.slice(2),8)}return t*parseInt(n,10)}function bl(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!T.isNegativeZero(e)}var sr=new M("tag:yaml.org,2002:int",{kind:"scalar",resolve:vl,construct:kl,predicate:bl,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),yl=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function zl(e){return!(e===null||!yl.test(e)||e[e.length-1]==="_")}function wl(e){var n,t;return n=e.replace(/_/g,"").toLowerCase(),t=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:t*parseFloat(n,10)}var xl=/^[-+]?[0-9]+e/;function _l(e,n){var t;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(T.isNegativeZero(e))return"-0.0";return t=e.toString(10),xl.test(t)?t.replace("e",".e"):t}function Sl(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||T.isNegativeZero(e))}var ur=new M("tag:yaml.org,2002:float",{kind:"scalar",resolve:zl,construct:wl,predicate:Sl,represent:_l,defaultStyle:"lowercase"}),lr=rr.extend({implicit:[or,ir,sr,ur]}),dr=lr,cr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),pr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Ll(e){return e===null?!1:cr.exec(e)!==null||pr.exec(e)!==null}function El(e){var n,t,a,r,o,i,s,u=0,c=null,d,m,l;if(n=cr.exec(e),n===null&&(n=pr.exec(e)),n===null)throw new Error("Date resolve error");if(t=+n[1],a=+n[2]-1,r=+n[3],!n[4])return new Date(Date.UTC(t,a,r));if(o=+n[4],i=+n[5],s=+n[6],n[7]){for(u=n[7].slice(0,3);u.length<3;)u+="0";u=+u}return n[9]&&(d=+n[10],m=+(n[11]||0),c=(d*60+m)*6e4,n[9]==="-"&&(c=-c)),l=new Date(Date.UTC(t,a,r,o,i,s,u)),c&&l.setTime(l.getTime()-c),l}function Cl(e){return e.toISOString()}var hr=new M("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ll,construct:El,instanceOf:Date,represent:Cl});function Al(e){return e==="<<"||e===null}var mr=new M("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Al}),kt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
557
|
+
\r`;function Pl(e){if(e===null)return!1;var n,t,a=0,r=e.length,o=kt;for(t=0;t<r;t++)if(n=o.indexOf(e.charAt(t)),!(n>64)){if(n<0)return!1;a+=6}return a%8===0}function jl(e){var n,t,a=e.replace(/[\r\n=]/g,""),r=a.length,o=kt,i=0,s=[];for(n=0;n<r;n++)n%4===0&&n&&(s.push(i>>16&255),s.push(i>>8&255),s.push(i&255)),i=i<<6|o.indexOf(a.charAt(n));return t=r%4*6,t===0?(s.push(i>>16&255),s.push(i>>8&255),s.push(i&255)):t===18?(s.push(i>>10&255),s.push(i>>2&255)):t===12&&s.push(i>>4&255),new Uint8Array(s)}function ql(e){var n="",t=0,a,r,o=e.length,i=kt;for(a=0;a<o;a++)a%3===0&&a&&(n+=i[t>>18&63],n+=i[t>>12&63],n+=i[t>>6&63],n+=i[t&63]),t=(t<<8)+e[a];return r=o%3,r===0?(n+=i[t>>18&63],n+=i[t>>12&63],n+=i[t>>6&63],n+=i[t&63]):r===2?(n+=i[t>>10&63],n+=i[t>>4&63],n+=i[t<<2&63],n+=i[64]):r===1&&(n+=i[t>>2&63],n+=i[t<<4&63],n+=i[64],n+=i[64]),n}function Il(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var fr=new M("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Pl,construct:jl,predicate:Il,represent:ql}),Nl=Object.prototype.hasOwnProperty,Ol=Object.prototype.toString;function Rl(e){if(e===null)return!0;var n=[],t,a,r,o,i,s=e;for(t=0,a=s.length;t<a;t+=1){if(r=s[t],i=!1,Ol.call(r)!=="[object Object]")return!1;for(o in r)if(Nl.call(r,o))if(!i)i=!0;else return!1;if(!i)return!1;if(n.indexOf(o)===-1)n.push(o);else return!1}return!0}function Dl(e){return e!==null?e:[]}var gr=new M("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Rl,construct:Dl}),Tl=Object.prototype.toString;function Ml(e){if(e===null)return!0;var n,t,a,r,o,i=e;for(o=new Array(i.length),n=0,t=i.length;n<t;n+=1){if(a=i[n],Tl.call(a)!=="[object Object]"||(r=Object.keys(a),r.length!==1))return!1;o[n]=[r[0],a[r[0]]]}return!0}function Hl(e){if(e===null)return[];var n,t,a,r,o,i=e;for(o=new Array(i.length),n=0,t=i.length;n<t;n+=1)a=i[n],r=Object.keys(a),o[n]=[r[0],a[r[0]]];return o}var vr=new M("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ml,construct:Hl}),Bl=Object.prototype.hasOwnProperty;function Fl(e){if(e===null)return!0;var n,t=e;for(n in t)if(Bl.call(t,n)&&t[n]!==null)return!1;return!0}function Ul(e){return e!==null?e:{}}var kr=new M("tag:yaml.org,2002:set",{kind:"mapping",resolve:Fl,construct:Ul}),bt=dr.extend({implicit:[hr,mr],explicit:[fr,gr,vr,kr]}),ie=Object.prototype.hasOwnProperty,un=1,br=2,yr=3,ln=4,yt=1,Gl=2,zr=3,Vl=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Wl=/[\x85\u2028\u2029]/,Kl=/[,\[\]\{\}]/,wr=/^(?:!|!!|![a-z\-]+!)$/i,xr=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _r(e){return Object.prototype.toString.call(e)}function ee(e){return e===10||e===13}function ce(e){return e===9||e===32}function V(e){return e===9||e===32||e===10||e===13}function be(e){return e===44||e===91||e===93||e===123||e===125}function Yl(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function Zl(e){return e===120?2:e===117?4:e===85?8:0}function Ql(e){return 48<=e&&e<=57?e-48:-1}function Sr(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
558
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Jl(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var Lr=new Array(256),Er=new Array(256),ye=0;ye<256;ye++)Lr[ye]=Sr(ye)?1:0,Er[ye]=Sr(ye);function Xl(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||bt,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Cr(e,n){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=tl(t),new U(n,t)}function _(e,n){throw Cr(e,n)}function dn(e,n){e.onWarning&&e.onWarning.call(null,Cr(e,n))}var Ar={YAML:function(n,t,a){var r,o,i;n.version!==null&&_(n,"duplication of %YAML directive"),a.length!==1&&_(n,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),r===null&&_(n,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),i=parseInt(r[2],10),o!==1&&_(n,"unacceptable YAML version of the document"),n.version=a[0],n.checkLineBreaks=i<2,i!==1&&i!==2&&dn(n,"unsupported YAML version of the document")},TAG:function(n,t,a){var r,o;a.length!==2&&_(n,"TAG directive accepts exactly two arguments"),r=a[0],o=a[1],wr.test(r)||_(n,"ill-formed tag handle (first argument) of the TAG directive"),ie.call(n.tagMap,r)&&_(n,'there is a previously declared suffix for "'+r+'" tag handle'),xr.test(o)||_(n,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(i){_(n,"tag prefix is malformed: "+o)}n.tagMap[r]=o}};function se(e,n,t,a){var r,o,i,s;if(n<t){if(s=e.input.slice(n,t),a)for(r=0,o=s.length;r<o;r+=1)i=s.charCodeAt(r),i===9||32<=i&&i<=1114111||_(e,"expected valid JSON character");else Vl.test(s)&&_(e,"the stream contains non-printable characters");e.result+=s}}function Pr(e,n,t,a){var r,o,i,s;for(T.isObject(t)||_(e,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(t),i=0,s=r.length;i<s;i+=1)o=r[i],ie.call(n,o)||(n[o]=t[o],a[o]=!0)}function ze(e,n,t,a,r,o,i,s,u){var c,d;if(Array.isArray(r))for(r=Array.prototype.slice.call(r),c=0,d=r.length;c<d;c+=1)Array.isArray(r[c])&&_(e,"nested arrays are not supported inside keys"),typeof r=="object"&&_r(r[c])==="[object Object]"&&(r[c]="[object Object]");if(typeof r=="object"&&_r(r)==="[object Object]"&&(r="[object Object]"),r=String(r),n===null&&(n={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,d=o.length;c<d;c+=1)Pr(e,n,o[c],t);else Pr(e,n,o,t);else!e.json&&!ie.call(t,r)&&ie.call(n,r)&&(e.line=i||e.line,e.lineStart=s||e.lineStart,e.position=u||e.position,_(e,"duplicated mapping key")),r==="__proto__"?Object.defineProperty(n,r,{configurable:!0,enumerable:!0,writable:!0,value:o}):n[r]=o,delete t[r];return n}function zt(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):_(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function D(e,n,t){for(var a=0,r=e.input.charCodeAt(e.position);r!==0;){for(;ce(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(n&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(ee(r))for(zt(e),r=e.input.charCodeAt(e.position),a++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return t!==-1&&a!==0&&e.lineIndent<t&&dn(e,"deficient indentation"),a}function cn(e){var n=e.position,t;return t=e.input.charCodeAt(n),!!((t===45||t===46)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,t=e.input.charCodeAt(n),t===0||V(t)))}function wt(e,n){n===1?e.result+=" ":n>1&&(e.result+=T.repeat(`
|
|
559
|
+
`,n-1))}function $l(e,n,t){var a,r,o,i,s,u,c,d,m=e.kind,l=e.result,h;if(h=e.input.charCodeAt(e.position),V(h)||be(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(r=e.input.charCodeAt(e.position+1),V(r)||t&&be(r)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,s=!1;h!==0;){if(h===58){if(r=e.input.charCodeAt(e.position+1),V(r)||t&&be(r))break}else if(h===35){if(a=e.input.charCodeAt(e.position-1),V(a))break}else{if(e.position===e.lineStart&&cn(e)||t&&be(h))break;if(ee(h))if(u=e.line,c=e.lineStart,d=e.lineIndent,D(e,!1,-1),e.lineIndent>=n){s=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=i,e.line=u,e.lineStart=c,e.lineIndent=d;break}}s&&(se(e,o,i,!1),wt(e,e.line-u),o=i=e.position,s=!1),ce(h)||(i=e.position+1),h=e.input.charCodeAt(++e.position)}return se(e,o,i,!1),e.result?!0:(e.kind=m,e.result=l,!1)}function ed(e,n){var t,a,r;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=r=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(se(e,a,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)a=e.position,e.position++,r=e.position;else return!0;else ee(t)?(se(e,a,r,!0),wt(e,D(e,!1,n)),a=r=e.position):e.position===e.lineStart&&cn(e)?_(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);_(e,"unexpected end of the stream within a single quoted scalar")}function nd(e,n){var t,a,r,o,i,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=a=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return se(e,t,e.position,!0),e.position++,!0;if(s===92){if(se(e,t,e.position,!0),s=e.input.charCodeAt(++e.position),ee(s))D(e,!1,n);else if(s<256&&Lr[s])e.result+=Er[s],e.position++;else if((i=Zl(s))>0){for(r=i,o=0;r>0;r--)s=e.input.charCodeAt(++e.position),(i=Yl(s))>=0?o=(o<<4)+i:_(e,"expected hexadecimal character");e.result+=Jl(o),e.position++}else _(e,"unknown escape sequence");t=a=e.position}else ee(s)?(se(e,t,a,!0),wt(e,D(e,!1,n)),t=a=e.position):e.position===e.lineStart&&cn(e)?_(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}_(e,"unexpected end of the stream within a double quoted scalar")}function td(e,n){var t=!0,a,r,o,i=e.tag,s,u=e.anchor,c,d,m,l,h,p=Object.create(null),f,g,y,v;if(v=e.input.charCodeAt(e.position),v===91)d=93,h=!1,s=[];else if(v===123)d=125,h=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(D(e,!0,n),v=e.input.charCodeAt(e.position),v===d)return e.position++,e.tag=i,e.anchor=u,e.kind=h?"mapping":"sequence",e.result=s,!0;t?v===44&&_(e,"expected the node content, but found ','"):_(e,"missed comma between flow collection entries"),g=f=y=null,m=l=!1,v===63&&(c=e.input.charCodeAt(e.position+1),V(c)&&(m=l=!0,e.position++,D(e,!0,n))),a=e.line,r=e.lineStart,o=e.position,we(e,n,un,!1,!0),g=e.tag,f=e.result,D(e,!0,n),v=e.input.charCodeAt(e.position),(l||e.line===a)&&v===58&&(m=!0,v=e.input.charCodeAt(++e.position),D(e,!0,n),we(e,n,un,!1,!0),y=e.result),h?ze(e,s,p,g,f,y,a,r,o):m?s.push(ze(e,null,p,g,f,y,a,r,o)):s.push(f),D(e,!0,n),v=e.input.charCodeAt(e.position),v===44?(t=!0,v=e.input.charCodeAt(++e.position)):t=!1}_(e,"unexpected end of the stream within a flow collection")}function ad(e,n){var t,a,r=yt,o=!1,i=!1,s=n,u=0,c=!1,d,m;if(m=e.input.charCodeAt(e.position),m===124)a=!1;else if(m===62)a=!0;else return!1;for(e.kind="scalar",e.result="";m!==0;)if(m=e.input.charCodeAt(++e.position),m===43||m===45)yt===r?r=m===43?zr:Gl:_(e,"repeat of a chomping mode identifier");else if((d=Ql(m))>=0)d===0?_(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?_(e,"repeat of an indentation width identifier"):(s=n+d-1,i=!0);else break;if(ce(m)){do m=e.input.charCodeAt(++e.position);while(ce(m));if(m===35)do m=e.input.charCodeAt(++e.position);while(!ee(m)&&m!==0)}for(;m!==0;){for(zt(e),e.lineIndent=0,m=e.input.charCodeAt(e.position);(!i||e.lineIndent<s)&&m===32;)e.lineIndent++,m=e.input.charCodeAt(++e.position);if(!i&&e.lineIndent>s&&(s=e.lineIndent),ee(m)){u++;continue}if(e.lineIndent<s){r===zr?e.result+=T.repeat(`
|
|
560
560
|
`,o?1+u:u):r===yt&&o&&(e.result+=`
|
|
561
561
|
`);break}for(a?ce(m)?(c=!0,e.result+=T.repeat(`
|
|
562
562
|
`,o?1+u:u)):c?(c=!1,e.result+=T.repeat(`
|
|
563
563
|
`,u+1)):u===0?o&&(e.result+=" "):e.result+=T.repeat(`
|
|
564
564
|
`,u):e.result+=T.repeat(`
|
|
565
|
-
`,o?1+u:u),o=!0,i=!0,u=0,t=e.position
|
|
566
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new
|
|
565
|
+
`,o?1+u:u),o=!0,i=!0,u=0,t=e.position;!ee(m)&&m!==0;)m=e.input.charCodeAt(++e.position);se(e,t,e.position,!1)}return!0}function jr(e,n){var t,a=e.tag,r=e.anchor,o=[],i,s=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,_(e,"tab characters must not be used in indentation")),!(u!==45||(i=e.input.charCodeAt(e.position+1),!V(i))));){if(s=!0,e.position++,D(e,!0,-1)&&e.lineIndent<=n){o.push(null),u=e.input.charCodeAt(e.position);continue}if(t=e.line,we(e,n,yr,!1,!0),o.push(e.result),D(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>n)&&u!==0)_(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return s?(e.tag=a,e.anchor=r,e.kind="sequence",e.result=o,!0):!1}function rd(e,n,t){var a,r,o,i,s,u,c=e.tag,d=e.anchor,m={},l=Object.create(null),h=null,p=null,f=null,g=!1,y=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=m),v=e.input.charCodeAt(e.position);v!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,_(e,"tab characters must not be used in indentation")),a=e.input.charCodeAt(e.position+1),o=e.line,(v===63||v===58)&&V(a))v===63?(g&&(ze(e,m,l,h,p,null,i,s,u),h=p=f=null),y=!0,g=!0,r=!0):g?(g=!1,r=!0):_(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=a;else{if(i=e.line,s=e.lineStart,u=e.position,!we(e,t,br,!1,!0))break;if(e.line===o){for(v=e.input.charCodeAt(e.position);ce(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),V(v)||_(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(ze(e,m,l,h,p,null,i,s,u),h=p=f=null),y=!0,g=!1,r=!1,h=e.tag,p=e.result;else if(y)_(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=d,!0}else if(y)_(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=d,!0}if((e.line===o||e.lineIndent>n)&&(g&&(i=e.line,s=e.lineStart,u=e.position),we(e,n,ln,!0,r)&&(g?p=e.result:f=e.result),g||(ze(e,m,l,h,p,f,i,s,u),h=p=f=null),D(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>n)&&v!==0)_(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return g&&ze(e,m,l,h,p,null,i,s,u),y&&(e.tag=c,e.anchor=d,e.kind="mapping",e.result=m),y}function od(e){var n,t=!1,a=!1,r,o,i;if(i=e.input.charCodeAt(e.position),i!==33)return!1;if(e.tag!==null&&_(e,"duplication of a tag property"),i=e.input.charCodeAt(++e.position),i===60?(t=!0,i=e.input.charCodeAt(++e.position)):i===33?(a=!0,r="!!",i=e.input.charCodeAt(++e.position)):r="!",n=e.position,t){do i=e.input.charCodeAt(++e.position);while(i!==0&&i!==62);e.position<e.length?(o=e.input.slice(n,e.position),i=e.input.charCodeAt(++e.position)):_(e,"unexpected end of the stream within a verbatim tag")}else{for(;i!==0&&!V(i);)i===33&&(a?_(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(n-1,e.position+1),wr.test(r)||_(e,"named tag handle cannot contain such characters"),a=!0,n=e.position+1)),i=e.input.charCodeAt(++e.position);o=e.input.slice(n,e.position),Kl.test(o)&&_(e,"tag suffix cannot contain flow indicator characters")}o&&!xr.test(o)&&_(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch(s){_(e,"tag name is malformed: "+o)}return t?e.tag=o:ie.call(e.tagMap,r)?e.tag=e.tagMap[r]+o:r==="!"?e.tag="!"+o:r==="!!"?e.tag="tag:yaml.org,2002:"+o:_(e,'undeclared tag handle "'+r+'"'),!0}function id(e){var n,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&_(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),n=e.position;t!==0&&!V(t)&&!be(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&_(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function sd(e){var n,t,a;if(a=e.input.charCodeAt(e.position),a!==42)return!1;for(a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!V(a)&&!be(a);)a=e.input.charCodeAt(++e.position);return e.position===n&&_(e,"name of an alias node must contain at least one character"),t=e.input.slice(n,e.position),ie.call(e.anchorMap,t)||_(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],D(e,!0,-1),!0}function we(e,n,t,a,r){var o,i,s,u=1,c=!1,d=!1,m,l,h,p,f,g;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=i=s=ln===t||yr===t,a&&D(e,!0,-1)&&(c=!0,e.lineIndent>n?u=1:e.lineIndent===n?u=0:e.lineIndent<n&&(u=-1)),u===1)for(;od(e)||id(e);)D(e,!0,-1)?(c=!0,s=o,e.lineIndent>n?u=1:e.lineIndent===n?u=0:e.lineIndent<n&&(u=-1)):s=!1;if(s&&(s=c||r),(u===1||ln===t)&&(un===t||br===t?f=n:f=n+1,g=e.position-e.lineStart,u===1?s&&(jr(e,g)||rd(e,g,f))||td(e,f)?d=!0:(i&&ad(e,f)||ed(e,f)||nd(e,f)?d=!0:sd(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&_(e,"alias node should not have any properties")):$l(e,f,un===t)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(d=s&&jr(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&_(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),m=0,l=e.implicitTypes.length;m<l;m+=1)if(p=e.implicitTypes[m],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ie.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,h=e.typeMap.multi[e.kind||"fallback"],m=0,l=h.length;m<l;m+=1)if(e.tag.slice(0,h[m].tag.length)===h[m].tag){p=h[m];break}p||_(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&_(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):_(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}function ud(e){var n=e.position,t,a,r,o=!1,i;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(i=e.input.charCodeAt(e.position))!==0&&(D(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||i!==37));){for(o=!0,i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!V(i);)i=e.input.charCodeAt(++e.position);for(a=e.input.slice(t,e.position),r=[],a.length<1&&_(e,"directive name must not be less than one character in length");i!==0;){for(;ce(i);)i=e.input.charCodeAt(++e.position);if(i===35){do i=e.input.charCodeAt(++e.position);while(i!==0&&!ee(i));break}if(ee(i))break;for(t=e.position;i!==0&&!V(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}i!==0&&zt(e),ie.call(Ar,a)?Ar[a](e,a,r):dn(e,'unknown document directive "'+a+'"')}if(D(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,D(e,!0,-1)):o&&_(e,"directives end mark is expected"),we(e,e.lineIndent-1,ln,!1,!0),D(e,!0,-1),e.checkLineBreaks&&Wl.test(e.input.slice(n,e.position))&&dn(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&cn(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,D(e,!0,-1));return}if(e.position<e.length-1)_(e,"end of the stream or a document separator is expected");else return}function qr(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
566
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new Xl(e,n),a=e.indexOf("\0");for(a!==-1&&(t.position=a,_(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)ud(t);return t.documents}function ld(e,n,t){n!==null&&typeof n=="object"&&typeof t=="undefined"&&(t=n,n=null);var a=qr(e,t);if(typeof n!="function")return a;for(var r=0,o=a.length;r<o;r+=1)n(a[r])}function dd(e,n){var t=qr(e,n);if(t.length!==0){if(t.length===1)return t[0];throw new U("expected a single document in the stream, but found more")}}var cd=ld,pd=dd,Ir={loadAll:cd,load:pd},Nr=Object.prototype.toString,Or=Object.prototype.hasOwnProperty,xt=65279,hd=9,De=10,md=13,fd=32,gd=33,vd=34,_t=35,kd=37,bd=38,yd=39,zd=42,Rr=44,wd=45,pn=58,xd=61,_d=62,Sd=63,Ld=64,Dr=91,Tr=93,Ed=96,Mr=123,Cd=124,Hr=125,B={};B[0]="\\0",B[7]="\\a",B[8]="\\b",B[9]="\\t",B[10]="\\n",B[11]="\\v",B[12]="\\f",B[13]="\\r",B[27]="\\e",B[34]='\\"',B[92]="\\\\",B[133]="\\N",B[160]="\\_",B[8232]="\\L",B[8233]="\\P";var Ad=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Pd=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function jd(e,n){var t,a,r,o,i,s,u;if(n===null)return{};for(t={},a=Object.keys(n),r=0,o=a.length;r<o;r+=1)i=a[r],s=String(n[i]),i.slice(0,2)==="!!"&&(i="tag:yaml.org,2002:"+i.slice(2)),u=e.compiledTypeMap.fallback[i],u&&Or.call(u.styleAliases,s)&&(s=u.styleAliases[s]),t[i]=s;return t}function qd(e){var n,t,a;if(n=e.toString(16).toUpperCase(),e<=255)t="x",a=2;else if(e<=65535)t="u",a=4;else if(e<=4294967295)t="U",a=8;else throw new U("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+T.repeat("0",a-n.length)+n}var Id=1,Te=2;function Nd(e){this.schema=e.schema||bt,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=T.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=jd(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Te:Id,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Br(e,n){for(var t=T.repeat(" ",n),a=0,r=-1,o="",i,s=e.length;a<s;)r=e.indexOf(`
|
|
567
567
|
`,a),r===-1?(i=e.slice(a),a=s):(i=e.slice(a,r+1),a=r+1),i.length&&i!==`
|
|
568
568
|
`&&(o+=t),o+=i;return o}function St(e,n){return`
|
|
569
|
-
`+T.repeat(" ",e.indent*n)}function
|
|
569
|
+
`+T.repeat(" ",e.indent*n)}function Od(e,n){var t,a,r;for(t=0,a=e.implicitTypes.length;t<a;t+=1)if(r=e.implicitTypes[t],r.resolve(n))return!0;return!1}function hn(e){return e===fd||e===hd}function Me(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==xt||65536<=e&&e<=1114111}function Fr(e){return Me(e)&&e!==xt&&e!==md&&e!==De}function Ur(e,n,t){var a=Fr(e),r=a&&!hn(e);return(t?a:a&&e!==Rr&&e!==Dr&&e!==Tr&&e!==Mr&&e!==Hr)&&e!==_t&&!(n===pn&&!r)||Fr(n)&&!hn(n)&&e===_t||n===pn&&r}function Rd(e){return Me(e)&&e!==xt&&!hn(e)&&e!==wd&&e!==Sd&&e!==pn&&e!==Rr&&e!==Dr&&e!==Tr&&e!==Mr&&e!==Hr&&e!==_t&&e!==bd&&e!==zd&&e!==gd&&e!==Cd&&e!==xd&&e!==_d&&e!==yd&&e!==vd&&e!==kd&&e!==Ld&&e!==Ed}function Dd(e){return!hn(e)&&e!==pn}function He(e,n){var t=e.charCodeAt(n),a;return t>=55296&&t<=56319&&n+1<e.length&&(a=e.charCodeAt(n+1),a>=56320&&a<=57343)?(t-55296)*1024+a-56320+65536:t}function Gr(e){var n=/^\n* /;return n.test(e)}var Vr=1,Lt=2,Wr=3,Kr=4,xe=5;function Td(e,n,t,a,r,o,i,s){var u,c=0,d=null,m=!1,l=!1,h=a!==-1,p=-1,f=Rd(He(e,0))&&Dd(He(e,e.length-1));if(n||i)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=He(e,u),!Me(c))return xe;f=f&&Ur(c,d,s),d=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=He(e,u),c===De)m=!0,h&&(l=l||u-p-1>a&&e[p+1]!==" ",p=u);else if(!Me(c))return xe;f=f&&Ur(c,d,s),d=c}l=l||h&&u-p-1>a&&e[p+1]!==" "}return!m&&!l?f&&!i&&!r(e)?Vr:o===Te?xe:Lt:t>9&&Gr(e)?xe:i?o===Te?xe:Lt:l?Kr:Wr}function Md(e,n,t,a,r){e.dump=function(){if(n.length===0)return e.quotingType===Te?'""':"''";if(!e.noCompatMode&&(Ad.indexOf(n)!==-1||Pd.test(n)))return e.quotingType===Te?'"'+n+'"':"'"+n+"'";var o=e.indent*Math.max(1,t),i=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=a||e.flowLevel>-1&&t>=e.flowLevel;function u(c){return Od(e,c)}switch(Td(n,s,e.indent,i,u,e.quotingType,e.forceQuotes&&!a,r)){case Vr:return n;case Lt:return"'"+n.replace(/'/g,"''")+"'";case Wr:return"|"+Yr(n,e.indent)+Zr(Br(n,o));case Kr:return">"+Yr(n,e.indent)+Zr(Br(Hd(n,i),o));case xe:return'"'+Bd(n)+'"';default:throw new U("impossible error: invalid scalar style")}}()}function Yr(e,n){var t=Gr(e)?String(n):"",a=e[e.length-1]===`
|
|
570
570
|
`,r=a&&(e[e.length-2]===`
|
|
571
571
|
`||e===`
|
|
572
572
|
`),o=r?"+":a?"":"-";return t+o+`
|
|
573
573
|
`}function Zr(e){return e[e.length-1]===`
|
|
574
|
-
`?e.slice(0,-1):e}function
|
|
574
|
+
`?e.slice(0,-1):e}function Hd(e,n){for(var t=/(\n+)([^\n]*)/g,a=function(){var c=e.indexOf(`
|
|
575
575
|
`);return c=c!==-1?c:e.length,t.lastIndex=c,Qr(e.slice(0,c),n)}(),r=e[0]===`
|
|
576
576
|
`||e[0]===" ",o,i;i=t.exec(e);){var s=i[1],u=i[2];o=u[0]===" ",a+=s+(!r&&!o&&u!==""?`
|
|
577
577
|
`:"")+Qr(u,n),r=o}return a}function Qr(e,n){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,a,r=0,o,i=0,s=0,u="";a=t.exec(e);)s=a.index,s-r>n&&(o=i>r?i:s,u+=`
|
|
578
578
|
`+e.slice(r,o),r=o+1),i=s;return u+=`
|
|
579
579
|
`,e.length-r>n&&i>r?u+=e.slice(r,i)+`
|
|
580
|
-
`+e.slice(i+1):u+=e.slice(r),u.slice(1)}function Bd(e){for(var n="",t=0,a,r=0;r<e.length;t>=65536?r+=2:r++)t=
|
|
581
|
-
`:""}var Wd
|
|
580
|
+
`+e.slice(i+1):u+=e.slice(r),u.slice(1)}function Bd(e){for(var n="",t=0,a,r=0;r<e.length;t>=65536?r+=2:r++)t=He(e,r),a=B[t],!a&&Me(t)?(n+=e[r],t>=65536&&(n+=e[r+1])):n+=a||qd(t);return n}function Fd(e,n,t){var a="",r=e.tag,o,i,s;for(o=0,i=t.length;o<i;o+=1)s=t[o],e.replacer&&(s=e.replacer.call(t,String(o),s)),(re(e,n,s,!1,!1)||typeof s=="undefined"&&re(e,n,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=r,e.dump="["+a+"]"}function Jr(e,n,t,a){var r="",o=e.tag,i,s,u;for(i=0,s=t.length;i<s;i+=1)u=t[i],e.replacer&&(u=e.replacer.call(t,String(i),u)),(re(e,n+1,u,!0,!0,!1,!0)||typeof u=="undefined"&&re(e,n+1,null,!0,!0,!1,!0))&&((!a||r!=="")&&(r+=St(e,n)),e.dump&&De===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump);e.tag=o,e.dump=r||"[]"}function Ud(e,n,t){var a="",r=e.tag,o=Object.keys(t),i,s,u,c,d;for(i=0,s=o.length;i<s;i+=1)d="",a!==""&&(d+=", "),e.condenseFlow&&(d+='"'),u=o[i],c=t[u],e.replacer&&(c=e.replacer.call(t,u,c)),re(e,n,u,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),re(e,n,c,!1,!1)&&(d+=e.dump,a+=d));e.tag=r,e.dump="{"+a+"}"}function Gd(e,n,t,a){var r="",o=e.tag,i=Object.keys(t),s,u,c,d,m,l;if(e.sortKeys===!0)i.sort();else if(typeof e.sortKeys=="function")i.sort(e.sortKeys);else if(e.sortKeys)throw new U("sortKeys must be a boolean or a function");for(s=0,u=i.length;s<u;s+=1)l="",(!a||r!=="")&&(l+=St(e,n)),c=i[s],d=t[c],e.replacer&&(d=e.replacer.call(t,c,d)),re(e,n+1,c,!0,!0,!0)&&(m=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,m&&(e.dump&&De===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,m&&(l+=St(e,n)),re(e,n+1,d,!0,m)&&(e.dump&&De===e.dump.charCodeAt(0)?l+=":":l+=": ",l+=e.dump,r+=l));e.tag=o,e.dump=r||"{}"}function Xr(e,n,t){var a,r,o,i,s,u;for(r=t?e.explicitTypes:e.implicitTypes,o=0,i=r.length;o<i;o+=1)if(s=r[o],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof n=="object"&&n instanceof s.instanceOf)&&(!s.predicate||s.predicate(n))){if(t?s.multi&&s.representName?e.tag=s.representName(n):e.tag=s.tag:e.tag="?",s.represent){if(u=e.styleMap[s.tag]||s.defaultStyle,Nr.call(s.represent)==="[object Function]")a=s.represent(n,u);else if(Or.call(s.represent,u))a=s.represent[u](n,u);else throw new U("!<"+s.tag+'> tag resolver accepts not "'+u+'" style');e.dump=a}return!0}return!1}function re(e,n,t,a,r,o,i){e.tag=null,e.dump=t,Xr(e,t,!1)||Xr(e,t,!0);var s=Nr.call(e.dump),u=a,c;a&&(a=e.flowLevel<0||e.flowLevel>n);var d=s==="[object Object]"||s==="[object Array]",m,l;if(d&&(m=e.duplicates.indexOf(t),l=m!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&n>0)&&(r=!1),l&&e.usedDuplicates[m])e.dump="*ref_"+m;else{if(d&&l&&!e.usedDuplicates[m]&&(e.usedDuplicates[m]=!0),s==="[object Object]")a&&Object.keys(e.dump).length!==0?(Gd(e,n,e.dump,r),l&&(e.dump="&ref_"+m+e.dump)):(Ud(e,n,e.dump),l&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!i&&n>0?Jr(e,n-1,e.dump,r):Jr(e,n,e.dump,r),l&&(e.dump="&ref_"+m+e.dump)):(Fd(e,n,e.dump),l&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&Md(e,e.dump,n,o,u);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new U("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function Vd(e,n){var t=[],a=[],r,o;for(Et(e,t,a),r=0,o=a.length;r<o;r+=1)n.duplicates.push(t[a[r]]);n.usedDuplicates=new Array(o)}function Et(e,n,t){var a,r,o;if(e!==null&&typeof e=="object")if(r=n.indexOf(e),r!==-1)t.indexOf(r)===-1&&t.push(r);else if(n.push(e),Array.isArray(e))for(r=0,o=e.length;r<o;r+=1)Et(e[r],n,t);else for(a=Object.keys(e),r=0,o=a.length;r<o;r+=1)Et(e[a[r]],n,t)}function Wd(e,n){n=n||{};var t=new Nd(n);t.noRefs||Vd(e,t);var a=e;return t.replacer&&(a=t.replacer.call({"":a},"",a)),re(t,0,a,!0,!0)?t.dump+`
|
|
581
|
+
`:""}var Kd=Wd,Yd={dump:Kd};function Ct(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var Zd=M,Qd=er,Jd=rr,Xd=lr,$d=dr,ec=bt,nc=Ir.load,tc=Ir.loadAll,ac=Yd.dump,rc=U,oc={binary:fr,float:ur,map:ar,null:or,pairs:vr,set:kr,timestamp:hr,bool:ir,int:sr,merge:mr,omap:gr,seq:tr,str:nr},ic=Ct("safeLoad","load"),sc=Ct("safeLoadAll","loadAll"),uc=Ct("safeDump","dump"),lc={Type:Zd,Schema:Qd,FAILSAFE_SCHEMA:Jd,JSON_SCHEMA:Xd,CORE_SCHEMA:$d,DEFAULT_SCHEMA:ec,load:nc,loadAll:tc,dump:ac,YAMLException:rc,types:oc,safeLoad:ic,safeLoadAll:sc,safeDump:uc},$r='<div id="lookit-loader-container"><div class="loader"></div></div>',dc=`No: No
|
|
582
582
|
Yes: Yes
|
|
583
583
|
Next: Next
|
|
584
584
|
Previous: Previous
|
|
@@ -1285,7 +1285,7 @@ exp-video-config-quality:
|
|
|
1285
1285
|
Please check off the "{completedItemText}" box under each instruction before
|
|
1286
1286
|
continuing.
|
|
1287
1287
|
recording-warning: Please try recording and viewing a video before continuing.
|
|
1288
|
-
`,
|
|
1288
|
+
`,cc=`No: Ez
|
|
1289
1289
|
Yes: Bai
|
|
1290
1290
|
Next: Hurrengoa
|
|
1291
1291
|
Previous: Aurrekoa
|
|
@@ -2000,7 +2000,7 @@ exp-video-config-quality:
|
|
|
2000
2000
|
jarraitu aurretik.
|
|
2001
2001
|
recording-warning:
|
|
2002
2002
|
Mesedez, jarraitu aurretik saiatu bideo bat grabatzeneta ikusten.
|
|
2003
|
-
`,
|
|
2003
|
+
`,pc=`---
|
|
2004
2004
|
No: Non
|
|
2005
2005
|
Yes: Oui
|
|
2006
2006
|
Next: Prochain
|
|
@@ -2835,7 +2835,7 @@ exp-video-config-quality:
|
|
|
2835
2835
|
recording-warning:
|
|
2836
2836
|
Veuillez essayer d'enregistrer et de visionner une vid\xE9o avant de
|
|
2837
2837
|
poursuivre.
|
|
2838
|
-
`,
|
|
2838
|
+
`,hc=`---
|
|
2839
2839
|
No: Nem
|
|
2840
2840
|
Yes: Igen
|
|
2841
2841
|
Next: K\xF6vetkez\xF5
|
|
@@ -3599,7 +3599,7 @@ exp-video-config-quality:
|
|
|
3599
3599
|
folytat\xE1shoz.
|
|
3600
3600
|
recording-warning:
|
|
3601
3601
|
K\xE9rj\xFCk, pr\xF3b\xE1lja meg r\xF6gz\xEDteni \xE9s megn\xE9zni a vide\xF3t, miel\u0151tt folytatn\xE1.
|
|
3602
|
-
`,
|
|
3602
|
+
`,mc=`---
|
|
3603
3603
|
No: No
|
|
3604
3604
|
Yes: Si
|
|
3605
3605
|
Next: Avanti
|
|
@@ -4123,7 +4123,7 @@ exp-video-config-quality:
|
|
|
4123
4123
|
continuare.
|
|
4124
4124
|
recording-warning:
|
|
4125
4125
|
Prova a registrare e visualizzare un video prima di continuare.
|
|
4126
|
-
`,
|
|
4126
|
+
`,fc=`---
|
|
4127
4127
|
Cancel: \u4E2D\u65AD\u3059\u308B
|
|
4128
4128
|
Continue: \u7D9A\u3051\u308B
|
|
4129
4129
|
Exit: \u9000\u51FA\u3059\u308B
|
|
@@ -4371,7 +4371,7 @@ please wait, setting up: \u8A2D\u5B9A\u3057\u3066\u3044\u307E\u3059\u3002\u3057\
|
|
|
4371
4371
|
return to fullscreen: \u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3\u306B\u3059\u308B
|
|
4372
4372
|
this-field-is-required: \u3053\u306E\u9805\u76EE\u306F\u5FC5\u9808\u3067\u3059
|
|
4373
4373
|
uploading video: \u52D5\u753B\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u3044\u307E\u3059
|
|
4374
|
-
`,
|
|
4374
|
+
`,gc=`---
|
|
4375
4375
|
No: Nee
|
|
4376
4376
|
Yes: Ja
|
|
4377
4377
|
Next: Volgende
|
|
@@ -4882,7 +4882,7 @@ exp-video-config-quality:
|
|
|
4882
4882
|
verder gaat.
|
|
4883
4883
|
recording-warning:
|
|
4884
4884
|
Probeer een video op te nemen en te bekijken voordat u verder gaat.
|
|
4885
|
-
`,
|
|
4885
|
+
`,vc=`---
|
|
4886
4886
|
Cancel: Cancelar
|
|
4887
4887
|
Continue: Continuar
|
|
4888
4888
|
Exit: Sa\xEDda
|
|
@@ -5643,7 +5643,7 @@ exp-video-config-quality:
|
|
|
5643
5643
|
Por favor, marque a caixa "{completedItemText}" em cada instru\xE7\xE3o antes de
|
|
5644
5644
|
continuar.
|
|
5645
5645
|
recording-warning: Tente gravar e assistir a um v\xEDdeo antes de continuar.
|
|
5646
|
-
`,
|
|
5646
|
+
`,kc=`---
|
|
5647
5647
|
Cancel: Cancelar
|
|
5648
5648
|
Continue: Prosseguir
|
|
5649
5649
|
Exit: Sa\xEDda
|
|
@@ -6124,9 +6124,17 @@ please wait, setting up: por favor espere, configurando
|
|
|
6124
6124
|
return to fullscreen: voltar para tela inteira
|
|
6125
6125
|
this-field-is-required: Este campo \xE9 obrigat\xF3rio.
|
|
6126
6126
|
uploading video: enviando v\xEDdeo
|
|
6127
|
-
`,
|
|
6127
|
+
`,bc=Object.defineProperty,yc=Object.defineProperties,zc=Object.getOwnPropertyDescriptors,eo=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,xc=Object.prototype.propertyIsEnumerable,no=(e,n,t)=>n in e?bc(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,_c=(e,n)=>{for(var t in n||(n={}))wc.call(n,t)&&no(e,t,n[t]);if(eo)for(var t of eo(n))xc.call(n,t)&&no(e,t,n[t]);return e},Sc=(e,n)=>yc(e,zc(n));const Lc=e=>e?(Array.isArray(e)&&(e=e.join(`
|
|
6128
6128
|
|
|
6129
|
-
`)),e.replace(/(\r\n|\n|\r)/gm,"<br>").replace(/\t/gm," ")):"",
|
|
6129
|
+
`)),e.replace(/(\r\n|\n|\r)/gm,"<br>").replace(/\t/gm," ")):"",Ec=()=>Object.entries({"en-us":dc,eu:cc,fr:pc,hu:hc,it:mc,ja:fc,nl:gc,"pt-br":vc,pt:kc}).reduce((e,[n,t])=>{const a=new Intl.Locale(n);return Sc(_c({},e),{[a.baseName]:{translation:lc.load(t)}})},{}),Be=e=>{const n=new Intl.Locale(e.locale);if(!N.hasResourceBundle(n.baseName,"translation"))throw new ys(e.locale);N.language!==n.baseName&&N.changeLanguage(n.baseName)};N.use(Qa).init({debug:!1,resources:Ec()}),X.registerHelper("exp-format",e=>Lc(e)),X.registerHelper("t",(e,{hash:n})=>{const t=String(N.t(e,n));return n.htmlSafe?new X.SafeString(t):t}),X.registerPartial("loader",$r);const Cc=e=>N.t(e),Ac=X.compile($r);var Pc=Object.defineProperty,jc=Object.defineProperties,qc=Object.getOwnPropertyDescriptors,to=Object.getOwnPropertySymbols,Ic=Object.prototype.hasOwnProperty,Nc=Object.prototype.propertyIsEnumerable,ao=(e,n,t)=>n in e?Pc(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,ro=(e,n)=>{for(var t in n||(n={}))Ic.call(n,t)&&ao(e,t,n[t]);if(to)for(var t of to(n))Nc.call(n,t)&&ao(e,t,n[t]);return e},oo=(e,n)=>jc(e,qc(n));const Oc="lookit-jspsych-video-container",Rc="lookit-jspsych-video-msg-container",Dc=e=>{const n=window.chs.study.attributes,{PIName:t,PIContact:a}=e;Be(e);const r=Tc(e),o=X.compile(r)(oo(ro({},e),{name:t,contact:a,experiment:n}));return X.compile(bs)(oo(ro({},e),{consent:o,video_container_id:Oc,msg_container_id:Rc}))},Tc=e=>{switch(e.template){case"consent-template-5":return ks;case"consent-garden":return vs;default:throw new zs(e.template)}};var Mc=`{{! prettier-ignore }}
|
|
6130
|
+
<div id="lookit-establishing-connection-msg">
|
|
6131
|
+
<div>{{t "establishing video connection" }}, {{t "please wait"}}...</div>
|
|
6132
|
+
{{> loader}}
|
|
6133
|
+
</div>`;const Hc=e=>(Be(e),X.compile(Mc)({}));var Bc=Object.defineProperty,Fc=Object.defineProperties,Uc=Object.getOwnPropertyDescriptors,io=Object.getOwnPropertySymbols,Gc=Object.prototype.hasOwnProperty,Vc=Object.prototype.propertyIsEnumerable,so=(e,n,t)=>n in e?Bc(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,Wc=(e,n)=>{for(var t in n||(n={}))Gc.call(n,t)&&so(e,t,n[t]);if(io)for(var t of io(n))Vc.call(n,t)&&so(e,t,n[t]);return e},Kc=(e,n)=>Fc(e,Uc(n));let Yc=class{constructor(n){this.trial=n,this.names={birthDate:"birthDate",databraryShare:"databraryShare",useOfMedia:"useOfMedia",withdrawal:"withdrawal",feedback:"feedback"},this.survey={pages:[{elements:[{description:"exp-lookit-exit-survey.why-birthdate",inputType:"date",isRequired:!0,maxValueExpression:"today()",name:this.names.birthDate,title:"exp-lookit-exit-survey.confirm-birthdate",type:"text"},{description:"exp-lookit-exit-survey.databrary-info",enableIf:"({withdrawal} empty) or ({withdrawal.length} = 0)",isRequired:!0,name:this.names.databraryShare,title:"exp-lookit-exit-survey.q-databrary",type:"boolean",valueFalse:"no",valueTrue:"yes"},{choices:[{text:"exp-lookit-exit-survey.private-option-part-1",value:"private"},{text:"exp-lookit-exit-survey.scientific-option",value:"scientific"},{text:"exp-lookit-exit-survey.publicity-option",value:"public"}],description:"",enableIf:"({withdrawal} empty) or ({withdrawal.length} = 0)",isRequired:!0,name:this.names.useOfMedia,title:"exp-lookit-exit-survey.acceptable-use-header",type:"radiogroup"},{choices:[{text:"exp-lookit-exit-survey.withdrawal-details",value:!0}],defaultValue:[],isRequired:!1,name:this.names.withdrawal,title:"exp-lookit-exit-survey.withdrawal-header",type:"checkbox"},{autoGrow:!0,name:this.names.feedback,rows:3,title:"exp-lookit-exit-survey.feedback-label",type:"comment"}],name:"page1"}],showQuestionNumbers:"off"},this.showDatabraryOptions(),this.additionalVideoPrivacyText(),this.privateLevelOnly(),this.translation()}showDatabraryOptions(){if(!this.trial.show_databrary_options){const n=this.survey.pages[0].elements,t=n.findIndex(a=>a.name===this.names.databraryShare);n.splice(t,1)}}additionalVideoPrivacyText(){const n=this.survey.pages[0].elements.find(t=>t.name===this.names.useOfMedia);n&&Object.assign(n,{description:this.trial.additional_video_privacy_text})}privateLevelOnly(){if(this.trial.private_level_only){const n=this.survey.pages[0].elements.find(t=>t.name===this.names.useOfMedia);n&&Object.assign(n,{defaultValue:"private",description:"exp-lookit-exit-survey.private-option-part-1",choicesVisibleIf:"false",isRequired:!1})}}translation(){const{contact_info:n,name:t}=window.chs.study.attributes,a=Kc(Wc({},this.trial),{include_example:this.trial.include_withdrawal_example,contact:n,name:t});this.survey.pages[0].elements.forEach(r=>{r.description&&Object.assign(r,{description:N.t(r.description,a)}),Object.assign(r,{title:N.t(r.title,a)}),r.choices&&r.choices.forEach(o=>{Object.assign(o,{text:N.t(o.text,a)})})})}};const Zc=e=>(Be(e),new Yc(e).survey);var Qc=`{{! prettier-ignore }}
|
|
6134
|
+
<div id="lookit-uploading-video-msg-container">
|
|
6135
|
+
<div>{{t "uploading video"}}, {{t "please wait"}}...</div>
|
|
6136
|
+
{{> loader}}
|
|
6137
|
+
</div>`;const Jc=e=>(Be(e),X.compile(Qc)({}));var Xc=`<div id="lookit-jspsych-video-config">
|
|
6130
6138
|
<div id="lookit-jspsych-video-config-title-row">
|
|
6131
6139
|
<h2>{{t "exp-video-config.title"}}</h2>
|
|
6132
6140
|
<p>{{t "exp-video-config.not-recording-note"}}</p>
|
|
@@ -6360,5 +6368,5 @@ uploading video: enviando v\xEDdeo
|
|
|
6360
6368
|
</div>
|
|
6361
6369
|
</div>
|
|
6362
6370
|
</div>
|
|
6363
|
-
</div
|
|
6364
|
-
//# sourceMappingURL=https://unpkg.com/@lookit/templates@
|
|
6371
|
+
</div>`,$c=Object.defineProperty,uo=Object.getOwnPropertySymbols,ep=Object.prototype.hasOwnProperty,np=Object.prototype.propertyIsEnumerable,lo=(e,n,t)=>n in e?$c(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,co=(e,n)=>{for(var t in n||(n={}))ep.call(n,t)&&lo(e,t,n[t]);if(uo)for(var t of uo(n))np.call(n,t)&&lo(e,t,n[t]);return e},tp={consentVideo:Dc,videoConfig:(e,n)=>(Be(e),X.compile(Xc)(co(co({},e),n))),uploadingVideo:Jc,exitSurvey:Zc,translateString:Cc,establishingConnection:Hc,loadingAnimation:Ac};return tp}();
|
|
6372
|
+
//# sourceMappingURL=https://unpkg.com/@lookit/templates@3.0.0/dist/index.browser.min.js.map
|