@lookit/templates 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.browser.js +6 -2
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.min.js +239 -29
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/consentVideoTemplate.ts +3 -0
- package/src/index.spec.ts +83 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var rp=Object.defineProperty,op=Object.defineProperties;var ip=Object.getOwnPropertyDescriptors;var mo=Object.getOwnPropertySymbols;var sp=Object.prototype.hasOwnProperty,up=Object.prototype.propertyIsEnumerable;var fo=(Q,H,G)=>H in Q?rp(Q,H,{enumerable:!0,configurable:!0,writable:!0,value:G}):Q[H]=G,S=(Q,H)=>{for(var G in H||(H={}))sp.call(H,G)&&fo(Q,G,H[G]);if(mo)for(var G of mo(H))up.call(H,G)&&fo(Q,G,H[G]);return Q},K=(Q,H)=>op(Q,ip(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
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(`
|
|
@@ -390,6 +390,159 @@ Expecting `+R.join(", ")+", got '"+(this.terminals_[z]||z)+"'":pe="Parse error o
|
|
|
390
390
|
|
|
391
391
|
<h2>{{t "consent-template-5.data-collection-header"}}</h2>
|
|
392
392
|
|
|
393
|
+
<p>
|
|
394
|
+
{{t "consent-recording-only.data-collection-1" only_adult=prompt_only_adults only_consent_on_chs=only_consent_on_chs}}
|
|
395
|
+
{{t "consent-recording-only.data-collection-2" only_consent_on_chs=only_consent_on_chs}}
|
|
396
|
+
</p>
|
|
397
|
+
|
|
398
|
+
<p>{{t "consent-recording-only.data-collection-3" only_consent_on_chs=only_consent_on_chs}}</p>
|
|
399
|
+
|
|
400
|
+
<h2>{{t "consent-template-5.video-privacy-header"}}</h2>
|
|
401
|
+
<p>{{t "consent-recording-only.video-privacy-consent" only_consent_on_chs=only_consent_on_chs}}</p>
|
|
402
|
+
|
|
403
|
+
<p>{{t "consent-recording-only.video-privacy-private-description" only_consent_on_chs=only_consent_on_chs}}</p>
|
|
404
|
+
|
|
405
|
+
{{#if additional_video_privacy_statement}}
|
|
406
|
+
<p>{{exp-format additional_video_privacy_statement}}</p>
|
|
407
|
+
{{/if}}
|
|
408
|
+
|
|
409
|
+
<h2>{{t "consent-template-5.data-use-researchers-header"}}</h2>
|
|
410
|
+
<p>
|
|
411
|
+
{{t
|
|
412
|
+
"consent-template-5.data-use-researchers-content-1"
|
|
413
|
+
name=PIName
|
|
414
|
+
institution=institution
|
|
415
|
+
only_consent_on_chs=only_consent_on_chs
|
|
416
|
+
}}
|
|
417
|
+
</p>
|
|
418
|
+
<ul>
|
|
419
|
+
<li>{{t "consent-recording-only.data-use-researchers-item-1" only_consent_on_chs=only_consent_on_chs}}</li>
|
|
420
|
+
<li>{{t "consent-recording-only.data-use-researchers-item-2" only_consent_on_chs=only_consent_on_chs}}</li>
|
|
421
|
+
<li>
|
|
422
|
+
{{t
|
|
423
|
+
"consent-recording-only.data-use-researchers-item-3"
|
|
424
|
+
only_adult=prompt_only_adults
|
|
425
|
+
only_consent_on_chs=only_consent_on_chs
|
|
426
|
+
}}
|
|
427
|
+
</li>
|
|
428
|
+
</ul>
|
|
429
|
+
<p>
|
|
430
|
+
{{t
|
|
431
|
+
"consent-template-5.data-use-researchers-content-2"
|
|
432
|
+
only_adult=prompt_only_adults
|
|
433
|
+
}}
|
|
434
|
+
</p>
|
|
435
|
+
{{#if datause}}
|
|
436
|
+
<p>{{exp-format datause}}</p>
|
|
437
|
+
{{/if}}
|
|
438
|
+
|
|
439
|
+
<h2>{{t "consent-template-5.data-use-Lookit-header"}}</h2>
|
|
440
|
+
<p>{{t "consent-recording-only.data-use-Lookit-content" only_consent_on_chs=only_consent_on_chs}}</p>
|
|
441
|
+
|
|
442
|
+
<h2>{{t "consent-template-5.publication-header"}}</h2>
|
|
443
|
+
<p>
|
|
444
|
+
{{t "consent-recording-only.publication-content" only_adult=prompt_only_adults only_consent_on_chs=only_consent_on_chs}}
|
|
445
|
+
</p>
|
|
446
|
+
|
|
447
|
+
{{#if additional_segments}}
|
|
448
|
+
{{#each additional_segments as |segment|}}
|
|
449
|
+
<h2>{{exp-format segment.title}}</h2>
|
|
450
|
+
<p>{{exp-format segment.text}}</p>
|
|
451
|
+
{{/each}}
|
|
452
|
+
{{/if}}
|
|
453
|
+
|
|
454
|
+
<h2>{{t "consent-template-5.research-subject-rights-header"}}</h2>
|
|
455
|
+
<p>{{{exp-format research_rights_statement}}}</p>
|
|
456
|
+
|
|
457
|
+
{{#if gdpr}}
|
|
458
|
+
<h2>{{t "consent-template-5.gdpr-header"}}</h2>
|
|
459
|
+
<p>
|
|
460
|
+
{{t "consent-template-5.gdpr-personal"}}:
|
|
461
|
+
{{exp-format gdpr_personal_data}}.
|
|
462
|
+
{{t "consent-template-5.gdpr-sensitive"}}:
|
|
463
|
+
{{exp-format gdpr_sensitive_data}}
|
|
464
|
+
</p>
|
|
465
|
+
<p>{{t "consent-template-5.gdpr-2"}}</p>
|
|
466
|
+
{{/if}}
|
|
467
|
+
|
|
468
|
+
<h2>{{t "consent-template-5.contact-header"}}</h2>
|
|
469
|
+
<p>
|
|
470
|
+
{{t
|
|
471
|
+
"consent-template-5.contact-statement-1"
|
|
472
|
+
name=PIName
|
|
473
|
+
institution=institution
|
|
474
|
+
contact=PIContact
|
|
475
|
+
only_adult=prompt_only_adults
|
|
476
|
+
omit_injury=omit_injury_phrase
|
|
477
|
+
}}
|
|
478
|
+
</p>
|
|
479
|
+
<p>
|
|
480
|
+
{{t "consent-template-5.contact-statement-2" only_adult=prompt_only_adults}}
|
|
481
|
+
</p>`,bs=`<h1>
|
|
482
|
+
{{t "consent-template-5.header"}}:
|
|
483
|
+
{{experiment.name}}
|
|
484
|
+
</h1>
|
|
485
|
+
|
|
486
|
+
<p>
|
|
487
|
+
{{t
|
|
488
|
+
"consent-template-5.intro-sentence"
|
|
489
|
+
name=PIName
|
|
490
|
+
institution=institution
|
|
491
|
+
experiment=experiment.name
|
|
492
|
+
}}
|
|
493
|
+
{{exp-format summary_statement}}
|
|
494
|
+
</p>
|
|
495
|
+
|
|
496
|
+
<h2>
|
|
497
|
+
{{#if purpose_header}} {{purpose_header}} {{else}}
|
|
498
|
+
{{t "consent-template-5.purpose-header"}}
|
|
499
|
+
{{/if}}
|
|
500
|
+
</h2>
|
|
501
|
+
<p>{{exp-format purpose}}</p>
|
|
502
|
+
|
|
503
|
+
<h2>
|
|
504
|
+
{{#if procedures_header}} {{procedures_header}} {{else}}
|
|
505
|
+
{{t "consent-template-5.procedures-header"}}
|
|
506
|
+
{{/if}}
|
|
507
|
+
</h2>
|
|
508
|
+
<p>
|
|
509
|
+
{{t "consent-template-5.duration-statement" duration=experiment.duration}}
|
|
510
|
+
{{exp-format procedures}}
|
|
511
|
+
</p>
|
|
512
|
+
|
|
513
|
+
<h2>
|
|
514
|
+
{{#if participation_header}} {{participation_header}} {{else}}
|
|
515
|
+
{{t "consent-template-5.participation-header"}}
|
|
516
|
+
{{/if}}
|
|
517
|
+
</h2>
|
|
518
|
+
<p>
|
|
519
|
+
{{t "consent-template-5.participation-content" only_adult=prompt_only_adults}}
|
|
520
|
+
</p>
|
|
521
|
+
|
|
522
|
+
{{#if voluntary_participation}}
|
|
523
|
+
<p>{{exp-format voluntary_participation}}</p>
|
|
524
|
+
{{/if}}
|
|
525
|
+
{{#if risk_statement}}
|
|
526
|
+
|
|
527
|
+
<h2>
|
|
528
|
+
{{#if risk_header}} {{risk_header}} {{else}}
|
|
529
|
+
{{t "consent-template-5.risk-header"}}
|
|
530
|
+
{{/if}}
|
|
531
|
+
</h2>
|
|
532
|
+
|
|
533
|
+
<p>{{exp-format risk_statement}}</p>
|
|
534
|
+
{{/if}}
|
|
535
|
+
|
|
536
|
+
<h2>
|
|
537
|
+
{{#if benefits_header}} {{benefits_header}} {{else}}
|
|
538
|
+
{{t "consent-template-5.benefits-header"}}
|
|
539
|
+
{{/if}}
|
|
540
|
+
</h2>
|
|
541
|
+
|
|
542
|
+
<p>{{exp-format payment}}</p>
|
|
543
|
+
|
|
544
|
+
<h2>{{t "consent-template-5.data-collection-header"}}</h2>
|
|
545
|
+
|
|
393
546
|
<p>
|
|
394
547
|
{{t "consent-template-5.data-collection-1" only_adult=prompt_only_adults}}
|
|
395
548
|
{{t "consent-template-5.data-collection-2"}}
|
|
@@ -500,7 +653,7 @@ Expecting `+R.join(", ")+", got '"+(this.terminals_[z]||z)+"'":pe="Parse error o
|
|
|
500
653
|
</p>
|
|
501
654
|
<p>
|
|
502
655
|
{{t "consent-template-5.contact-statement-2" only_adult=prompt_only_adults}}
|
|
503
|
-
</p>`,
|
|
656
|
+
</p>`,ys=`<div id="consent-video-trial">
|
|
504
657
|
<div class="left-column">{{{consent}}}</div>
|
|
505
658
|
<div class="right-column">
|
|
506
659
|
<div id="{{msg_container_id}}">{{t
|
|
@@ -545,40 +698,40 @@ Expecting `+R.join(", ")+", got '"+(this.terminals_[z]||z)+"'":pe="Parse error o
|
|
|
545
698
|
<button id="next" class="jspsych-btn" disabled>Next</button>
|
|
546
699
|
</div>
|
|
547
700
|
|
|
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.
|
|
701
|
+
</div>`;class zs extends Error{constructor(n){super(`"${n}" locale not found.`)}}class ws 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,xs=(e,n,t)=>{e.forEach(a=>{n[a]&&(t[a]=n[a])})},_s=/###/g,ua=e=>e&&e.indexOf("###")>-1?e.replace(_s,"."):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},Ss=(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]},Ls=(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 Es={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Cs=e=>E(e)?e.replace(/[&<>"'\/]/g,n=>Es[n]):e;class As{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 Ps=[" ",",","?","!",";"],js=new As(20),qs=(e,n,t)=>{n=n||"",t=t||"";const a=Ps.filter(i=>n.indexOf(i)<0&&t.indexOf(i)<0);if(a.length===0)return!0;const r=js.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("_","-"),Is={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||Is,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(),xs(["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&&!qs(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 Ns=[{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}],Os={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 Rs=["v1","v2","v3"],Ds=["v4"],ga={zero:0,one:1,two:2,few:3,many:4,other:5},Ts=()=>{const e={};return Ns.forEach(n=>{n.lngs.forEach(t=>{e[t]={numbers:n.nr,plurals:Os[n.fc]}})}),e};class Ms{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||Ds.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=Ts(),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!Rs.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=Ls(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 Hs{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:Cs,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 Bs=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 Fs{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}=Bs(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 Us=(e,n)=>{e.pending[n]!==void 0&&(delete e.pending[n],e.pendingCount--)};class Gs 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=>{Ss(u.loaded,[o],i),Us(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=()=>{},Vs=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:[]},Vs(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=Fs);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 Ms(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 Hs(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new Gs(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 Ws(e,n,t){var a=ya(e,n,Object),r=a.obj,o=a.k;r[o]=t}function Ks(e,n){var t=ya(e,n),a=t.obj,r=t.k;if(!!a)return a[r]}var za=[],Ys=za.forEach,Zs=za.slice;function Qs(e){return Ys.call(Zs.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 Js(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:au,a=n&&n.serializer?n.serializer:tu,r=n&&n.strategy?n.strategy:$s;return r(e,{cache:t,serializer:a})}function Xs(e){return e==null||typeof e=="number"||typeof e=="boolean"}function wa(e,n,t,a){var r=Xs(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 $s(e,n){var t=e.length===1?wa:xa;return rt(e,this,t,n.cache.create(),n.serializer)}function eu(e,n){return rt(e,this,xa,n.cache.create(),n.serializer)}function nu(e,n){return rt(e,this,wa,n.cache.create(),n.serializer)}var tu=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 au={create:function(){return new ot}},it={variadic:eu,monadic:nu},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 ru(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 ou(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]/,iu=/(?:[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 su(e){var n={};return e.replace(iu,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 uu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function lu(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(uu).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 du(e){return e.replace(/^(.*?)-/,"")}var Ia=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Na=/^(@+)?(\+|#+)?[rs]?$/g,cu=/(\*)(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 pu(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 hu(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=du(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(cu,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=pu(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 mu(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=fu(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 fu(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,gu=new RegExp("^".concat(qa.source,"*")),vu=new RegExp("".concat(qa.source,"*$"));function A(e,n){return{start:e,end:n}}var ku=!!String.prototype.startsWith&&"_a".startsWith("a",1),bu=!!String.fromCodePoint,yu=!!Object.fromEntries,zu=!!String.prototype.codePointAt,wu=!!String.prototype.trimStart,xu=!!String.prototype.trimEnd,_u=!!Number.isSafeInteger,Su=_u?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},lt=!0;try{var Lu=Fa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");lt=((ut=Lu.exec("a"))===null||ut===void 0?void 0:ut[0])==="a"}catch(e){lt=!1}var Ma=ku?function(n,t,a){return n.startsWith(t,a)}:function(n,t,a){return n.slice(a,a+t.length)===t},dt=bu?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=yu?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=zu?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}},Eu=wu?function(n){return n.trimStart()}:function(n){return n.replace(gu,"")},Cu=xu?function(n){return n.trimEnd()}:function(n){return n.replace(vu,"")};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)||qu(r))break;a.push(r),t+=r>=65536?2:1}return dt.apply(void 0,a)};var Au=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()&&ju(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||!Pu(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=Cu(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=Eu(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=mu(g,this.locale));var l={type:ve.dateTime,pattern:y,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?su(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=lu(n)}catch(r){return this.error(C.INVALID_NUMBER_SKELETON,t)}return{val:{type:ve.number,tokens:a,location:t,parsedOptions:this.shouldParseSkeletons?hu(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,Su(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 Pu(e){return pt(e)||e===47}function ju(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 qu(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 Iu(e,n){n===void 0&&(n={}),n=P({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var t=new Au(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),Nu=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),Ou=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 Ru(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 Du(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(ou(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 Ou(m,i);var l=r[m];if(ru(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(!Du(g))throw new Nu(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
702
|
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,sn(z.value,n,t,a,r,l-(d.offset||0)));continue}}return
|
|
703
|
+
`,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 Ru(s)}function Tu(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 Mu(e,n){return n?Object.keys(e).reduce(function(t,a){return t[a]=Tu(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 Hu(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=Js(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=Mu(e.formats,a),this.formatters=r&&r.formatters||Hu(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=Iu,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){Bu(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 Bu(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Fu(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 Uu(e,n,t){return n&&Za(e.prototype,n),t&&Za(e,t),e}function Gu(){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){Fu(this,e),this.type="i18nFormat",this.mem={},this.init(null,n)}return Uu(e,[{key:"init",value:function(t,a){var r=this,o=t&&t.options&&t.options.i18nFormat||{};if(this.options=Qs(o,a,this.options||{},Gu()),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=Ks(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)&&Ws(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 Vu(e){return typeof e=="object"&&e!==null}function Wu(e){return Array.isArray(e)?e:Ja(e)?[]:[e]}function Ku(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 Yu(e,n){var t="",a;for(a=0;a<n;a+=1)t+=e;return t}function Zu(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Qu=Ja,Ju=Vu,Xu=Wu,$u=Yu,el=Zu,nl=Ku,T={isNothing:Qu,isObject:Ju,toArray:Xu,repeat:$u,isNegativeZero:el,extend:nl};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
704
|
|
|
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
|
|
705
|
+
`+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 tl(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
706
|
`+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
707
|
`,s+=T.repeat("-",n.indent+d+3+c.pos)+`^
|
|
555
708
|
`,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 tl
|
|
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
|
|
709
|
+
`;return s.replace(/\n$/,"")}var al=tl,rl=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ol=["scalar","sequence","mapping"];function il(e){var n={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(a){n[String(a)]=t})}),n}function sl(e,n){if(n=n||{},Object.keys(n).forEach(function(t){if(rl.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=il(n.styleAliases||null),ol.indexOf(this.kind)===-1)throw new U('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var M=sl;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 ul(){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=ul(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 ll(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function dl(){return null}function cl(e){return e===null}var or=new M("tag:yaml.org,2002:null",{kind:"scalar",resolve:ll,construct:dl,predicate:cl,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function pl(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 hl(e){return e==="true"||e==="True"||e==="TRUE"}function ml(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ir=new M("tag:yaml.org,2002:bool",{kind:"scalar",resolve:pl,construct:hl,predicate:ml,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 fl(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function gl(e){return 48<=e&&e<=55}function vl(e){return 48<=e&&e<=57}function kl(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(!fl(e.charCodeAt(t)))return!1;a=!0}return a&&r!=="_"}if(r==="o"){for(t++;t<n;t++)if(r=e[t],r!=="_"){if(!gl(e.charCodeAt(t)))return!1;a=!0}return a&&r!=="_"}}if(r==="_")return!1;for(;t<n;t++)if(r=e[t],r!=="_"){if(!vl(e.charCodeAt(t)))return!1;a=!0}return!(!a||r==="_")}function bl(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 yl(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:kl,construct:bl,predicate:yl,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"]}}),zl=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function wl(e){return!(e===null||!zl.test(e)||e[e.length-1]==="_")}function xl(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 _l=/^[-+]?[0-9]+e/;function Sl(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),_l.test(t)?t.replace("e",".e"):t}function Ll(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:wl,construct:xl,predicate:Ll,represent:Sl,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 El(e){return e===null?!1:cr.exec(e)!==null||pr.exec(e)!==null}function Cl(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 Al(e){return e.toISOString()}var hr=new M("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:El,construct:Cl,instanceOf:Date,represent:Al});function Pl(e){return e==="<<"||e===null}var mr=new M("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Pl}),kt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
710
|
+
\r`;function jl(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 ql(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 Il(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 Nl(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var fr=new M("tag:yaml.org,2002:binary",{kind:"scalar",resolve:jl,construct:ql,predicate:Nl,represent:Il}),Ol=Object.prototype.hasOwnProperty,Rl=Object.prototype.toString;function Dl(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,Rl.call(r)!=="[object Object]")return!1;for(o in r)if(Ol.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 Tl(e){return e!==null?e:[]}var gr=new M("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Dl,construct:Tl}),Ml=Object.prototype.toString;function Hl(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],Ml.call(a)!=="[object Object]"||(r=Object.keys(a),r.length!==1))return!1;o[n]=[r[0],a[r[0]]]}return!0}function Bl(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:Hl,construct:Bl}),Fl=Object.prototype.hasOwnProperty;function Ul(e){if(e===null)return!0;var n,t=e;for(n in t)if(Fl.call(t,n)&&t[n]!==null)return!1;return!0}function Gl(e){return e!==null?e:{}}var kr=new M("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ul,construct:Gl}),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,Vl=2,zr=3,Wl=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Kl=/[\x85\u2028\u2029]/,Yl=/[,\[\]\{\}]/,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 Zl(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function Ql(e){return e===120?2:e===117?4:e===85?8:0}function Jl(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?`
|
|
711
|
+
`: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 Xl(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 $l(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=al(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 Wl.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(`
|
|
712
|
+
`,n-1))}function ed(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 nd(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 td(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=Ql(s))>0){for(r=i,o=0;r>0;r--)s=e.input.charCodeAt(++e.position),(i=Zl(s))>=0?o=(o<<4)+i:_(e,"expected hexadecimal character");e.result+=Xl(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 ad(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 rd(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:Vl:_(e,"repeat of a chomping mode identifier");else if((d=Jl(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
713
|
`,o?1+u:u):r===yt&&o&&(e.result+=`
|
|
561
714
|
`);break}for(a?ce(m)?(c=!0,e.result+=T.repeat(`
|
|
562
715
|
`,o?1+u:u)):c?(c=!1,e.result+=T.repeat(`
|
|
563
716
|
`,u+1)):u===0?o&&(e.result+=" "):e.result+=T.repeat(`
|
|
564
717
|
`,u):e.result+=T.repeat(`
|
|
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
|
|
566
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new
|
|
718
|
+
`,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 od(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 id(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),Yl.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 sd(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 ud(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(;id(e)||sd(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)||od(e,g,f))||ad(e,f)?d=!0:(i&&rd(e,f)||nd(e,f)||td(e,f)?d=!0:ud(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&_(e,"alias node should not have any properties")):ed(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 ld(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&&Kl.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+=`
|
|
719
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new $l(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;)ld(t);return t.documents}function dd(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 cd(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 pd=dd,hd=cd,Ir={loadAll:pd,load:hd},Nr=Object.prototype.toString,Or=Object.prototype.hasOwnProperty,xt=65279,md=9,De=10,fd=13,gd=32,vd=33,kd=34,_t=35,bd=37,yd=38,zd=39,wd=42,Rr=44,xd=45,pn=58,_d=61,Sd=62,Ld=63,Ed=64,Dr=91,Tr=93,Cd=96,Mr=123,Ad=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 Pd=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],jd=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function qd(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 Id(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 Nd=1,Te=2;function Od(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=qd(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:Nd,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
720
|
`,a),r===-1?(i=e.slice(a),a=s):(i=e.slice(a,r+1),a=r+1),i.length&&i!==`
|
|
568
721
|
`&&(o+=t),o+=i;return o}function St(e,n){return`
|
|
569
|
-
`+T.repeat(" ",e.indent*n)}function
|
|
722
|
+
`+T.repeat(" ",e.indent*n)}function Rd(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===gd||e===md}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!==fd&&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 Dd(e){return Me(e)&&e!==xt&&!hn(e)&&e!==xd&&e!==Ld&&e!==pn&&e!==Rr&&e!==Dr&&e!==Tr&&e!==Mr&&e!==Hr&&e!==_t&&e!==yd&&e!==wd&&e!==vd&&e!==Ad&&e!==_d&&e!==Sd&&e!==zd&&e!==kd&&e!==bd&&e!==Ed&&e!==Cd}function Td(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 Md(e,n,t,a,r,o,i,s){var u,c=0,d=null,m=!1,l=!1,h=a!==-1,p=-1,f=Dd(He(e,0))&&Td(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 Hd(e,n,t,a,r){e.dump=function(){if(n.length===0)return e.quotingType===Te?'""':"''";if(!e.noCompatMode&&(Pd.indexOf(n)!==-1||jd.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 Rd(e,c)}switch(Md(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(Bd(n,i),o));case xe:return'"'+Fd(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
723
|
`,r=a&&(e[e.length-2]===`
|
|
571
724
|
`||e===`
|
|
572
725
|
`),o=r?"+":a?"":"-";return t+o+`
|
|
573
726
|
`}function Zr(e){return e[e.length-1]===`
|
|
574
|
-
`?e.slice(0,-1):e}function
|
|
727
|
+
`?e.slice(0,-1):e}function Bd(e,n){for(var t=/(\n+)([^\n]*)/g,a=function(){var c=e.indexOf(`
|
|
575
728
|
`);return c=c!==-1?c:e.length,t.lastIndex=c,Qr(e.slice(0,c),n)}(),r=e[0]===`
|
|
576
729
|
`||e[0]===" ",o,i;i=t.exec(e);){var s=i[1],u=i[2];o=u[0]===" ",a+=s+(!r&&!o&&u!==""?`
|
|
577
730
|
`:"")+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
731
|
`+e.slice(r,o),r=o+1),i=s;return u+=`
|
|
579
732
|
`,e.length-r>n&&i>r?u+=e.slice(r,i)+`
|
|
580
|
-
`+e.slice(i+1):u+=e.slice(r),u.slice(1)}function
|
|
581
|
-
`:""}var Kd
|
|
733
|
+
`+e.slice(i+1):u+=e.slice(r),u.slice(1)}function Fd(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||Id(t);return n}function Ud(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 Gd(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 Vd(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?(Vd(e,n,e.dump,r),l&&(e.dump="&ref_"+m+e.dump)):(Gd(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)):(Ud(e,n,e.dump),l&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&Hd(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 Wd(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 Kd(e,n){n=n||{};var t=new Od(n);t.noRefs||Wd(e,t);var a=e;return t.replacer&&(a=t.replacer.call({"":a},"",a)),re(t,0,a,!0,!0)?t.dump+`
|
|
734
|
+
`:""}var Yd=Kd,Zd={dump:Yd};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 Qd=M,Jd=er,Xd=rr,$d=lr,ec=dr,nc=bt,tc=Ir.load,ac=Ir.loadAll,rc=Zd.dump,oc=U,ic={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},sc=Ct("safeLoad","load"),uc=Ct("safeLoadAll","loadAll"),lc=Ct("safeDump","dump"),dc={Type:Qd,Schema:Jd,FAILSAFE_SCHEMA:Xd,JSON_SCHEMA:$d,CORE_SCHEMA:ec,DEFAULT_SCHEMA:nc,load:tc,loadAll:ac,dump:rc,YAMLException:oc,types:ic,safeLoad:sc,safeLoadAll:uc,safeDump:lc},$r='<div id="lookit-loader-container"><div class="loader"></div></div>',cc=`No: No
|
|
582
735
|
Yes: Yes
|
|
583
736
|
Next: Next
|
|
584
737
|
Previous: Previous
|
|
@@ -1161,6 +1314,63 @@ consent-garden:
|
|
|
1161
1314
|
child have any questions or concerns about the Lookit platform, please
|
|
1162
1315
|
contact Lookit staff at lookit@mit.edu.
|
|
1163
1316
|
|
|
1317
|
+
consent-recording-only:
|
|
1318
|
+
data-collection-1:
|
|
1319
|
+
You {only_adult, select, true {} other {and your child}} will be recorded by
|
|
1320
|
+
your computer's webcam and microphone only while providing verbal consent.
|
|
1321
|
+
data-collection-2:
|
|
1322
|
+
This webcam recording {only_consent_on_chs, select, true {is} other {and
|
|
1323
|
+
other data collected on the CHS/Lookit website are}} sent securely to the
|
|
1324
|
+
Lookit platform. You can view your past consent recordings on Lookit at any
|
|
1325
|
+
time.
|
|
1326
|
+
data-collection-3:
|
|
1327
|
+
Recordings {only_consent_on_chs, select, true {} other {and data collected
|
|
1328
|
+
on this website}} are stored securely on Lookit servers and by researchers,
|
|
1329
|
+
and are only shared as described in this document. However, there is always
|
|
1330
|
+
a small risk that data transmitted over the internet may be intercepted or
|
|
1331
|
+
that the security of stored data may be compromised.
|
|
1332
|
+
video-privacy-consent:
|
|
1333
|
+
We will first check that you really agreed to participate by watching your
|
|
1334
|
+
consent recording.
|
|
1335
|
+
video-privacy-private-description:
|
|
1336
|
+
Because this study only uses video recording for consent, your video data
|
|
1337
|
+
will be treated as "Private" by default, which means that the researchers
|
|
1338
|
+
with access to your recordings will not share them with anyone else.
|
|
1339
|
+
data-use-researchers-item-1:
|
|
1340
|
+
webcam consent recordings {only_consent_on_chs, select, true {} other {and
|
|
1341
|
+
other data collected on CHS/Lookit during this session}}
|
|
1342
|
+
data-use-researchers-item-2: your account profile and demographic survey
|
|
1343
|
+
data-use-researchers-item-3:
|
|
1344
|
+
the {only_adult, select, true {} other {child}} profile for the {only_adult,
|
|
1345
|
+
select, true {family member} other {child}} who is participating
|
|
1346
|
+
data-use-researchers-content-2:
|
|
1347
|
+
This includes changes you make in the future to any of this information. We
|
|
1348
|
+
may put different types of information together to learn more about child
|
|
1349
|
+
development. For instance, if {only_adult, select, true {you participate}
|
|
1350
|
+
other {your child participates}} in multiple studies from our group, we may
|
|
1351
|
+
look at how {only_adult, select, true {your} other {his or her}} responses
|
|
1352
|
+
compare across studies, or we may look at {only_adult, select, true {how
|
|
1353
|
+
your responses relate to other family members''} other {whether siblings
|
|
1354
|
+
tend to respond similarly}}. We may also study connections between
|
|
1355
|
+
{only_adult, select, true {your} other {children''s}} responses and family
|
|
1356
|
+
demographic survey data.
|
|
1357
|
+
data-use-Lookit-content:
|
|
1358
|
+
The Lookit core team at MIT will also have access to your consent data
|
|
1359
|
+
{only_consent_on_chs, select, true {} other {and other data collected on
|
|
1360
|
+
CHS/Lookit during this session }}in addition to your account data. They use
|
|
1361
|
+
this data to run and improve Lookit, for instance to provide technical
|
|
1362
|
+
support, check how well data collection is working, or see whether Lookit is
|
|
1363
|
+
reaching a diverse group of families. Lookit stores data indefinitely unless
|
|
1364
|
+
you withdraw your recordings at the end of the study.
|
|
1365
|
+
publication-content:
|
|
1366
|
+
The results of this study may be presented at scientific meetings or
|
|
1367
|
+
published in scientific journals. We may publish individual responses that
|
|
1368
|
+
cannot identify {only_adult, select, true {you} other
|
|
1369
|
+
{children}}{only_consent_on_chs, select, true {} other {, like looking times
|
|
1370
|
+
or sequences of button presses}}. We never publish {only_adult, select, true
|
|
1371
|
+
{} other {children''s}} birthdates or names. We never publish information
|
|
1372
|
+
that would make it possible to link recordings with your demographic data.
|
|
1373
|
+
|
|
1164
1374
|
exp-lookit-observation:
|
|
1165
1375
|
Hide: Hide
|
|
1166
1376
|
Show: Show
|
|
@@ -1285,7 +1495,7 @@ exp-video-config-quality:
|
|
|
1285
1495
|
Please check off the "{completedItemText}" box under each instruction before
|
|
1286
1496
|
continuing.
|
|
1287
1497
|
recording-warning: Please try recording and viewing a video before continuing.
|
|
1288
|
-
`,
|
|
1498
|
+
`,pc=`No: Ez
|
|
1289
1499
|
Yes: Bai
|
|
1290
1500
|
Next: Hurrengoa
|
|
1291
1501
|
Previous: Aurrekoa
|
|
@@ -2000,7 +2210,7 @@ exp-video-config-quality:
|
|
|
2000
2210
|
jarraitu aurretik.
|
|
2001
2211
|
recording-warning:
|
|
2002
2212
|
Mesedez, jarraitu aurretik saiatu bideo bat grabatzeneta ikusten.
|
|
2003
|
-
`,
|
|
2213
|
+
`,hc=`---
|
|
2004
2214
|
No: Non
|
|
2005
2215
|
Yes: Oui
|
|
2006
2216
|
Next: Prochain
|
|
@@ -2835,7 +3045,7 @@ exp-video-config-quality:
|
|
|
2835
3045
|
recording-warning:
|
|
2836
3046
|
Veuillez essayer d'enregistrer et de visionner une vid\xE9o avant de
|
|
2837
3047
|
poursuivre.
|
|
2838
|
-
`,
|
|
3048
|
+
`,mc=`---
|
|
2839
3049
|
No: Nem
|
|
2840
3050
|
Yes: Igen
|
|
2841
3051
|
Next: K\xF6vetkez\xF5
|
|
@@ -3599,7 +3809,7 @@ exp-video-config-quality:
|
|
|
3599
3809
|
folytat\xE1shoz.
|
|
3600
3810
|
recording-warning:
|
|
3601
3811
|
K\xE9rj\xFCk, pr\xF3b\xE1lja meg r\xF6gz\xEDteni \xE9s megn\xE9zni a vide\xF3t, miel\u0151tt folytatn\xE1.
|
|
3602
|
-
`,
|
|
3812
|
+
`,fc=`---
|
|
3603
3813
|
No: No
|
|
3604
3814
|
Yes: Si
|
|
3605
3815
|
Next: Avanti
|
|
@@ -4123,7 +4333,7 @@ exp-video-config-quality:
|
|
|
4123
4333
|
continuare.
|
|
4124
4334
|
recording-warning:
|
|
4125
4335
|
Prova a registrare e visualizzare un video prima di continuare.
|
|
4126
|
-
`,
|
|
4336
|
+
`,gc=`---
|
|
4127
4337
|
Cancel: \u4E2D\u65AD\u3059\u308B
|
|
4128
4338
|
Continue: \u7D9A\u3051\u308B
|
|
4129
4339
|
Exit: \u9000\u51FA\u3059\u308B
|
|
@@ -4371,7 +4581,7 @@ please wait, setting up: \u8A2D\u5B9A\u3057\u3066\u3044\u307E\u3059\u3002\u3057\
|
|
|
4371
4581
|
return to fullscreen: \u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3\u306B\u3059\u308B
|
|
4372
4582
|
this-field-is-required: \u3053\u306E\u9805\u76EE\u306F\u5FC5\u9808\u3067\u3059
|
|
4373
4583
|
uploading video: \u52D5\u753B\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u3044\u307E\u3059
|
|
4374
|
-
`,
|
|
4584
|
+
`,vc=`---
|
|
4375
4585
|
No: Nee
|
|
4376
4586
|
Yes: Ja
|
|
4377
4587
|
Next: Volgende
|
|
@@ -4882,7 +5092,7 @@ exp-video-config-quality:
|
|
|
4882
5092
|
verder gaat.
|
|
4883
5093
|
recording-warning:
|
|
4884
5094
|
Probeer een video op te nemen en te bekijken voordat u verder gaat.
|
|
4885
|
-
`,
|
|
5095
|
+
`,kc=`---
|
|
4886
5096
|
Cancel: Cancelar
|
|
4887
5097
|
Continue: Continuar
|
|
4888
5098
|
Exit: Sa\xEDda
|
|
@@ -5643,7 +5853,7 @@ exp-video-config-quality:
|
|
|
5643
5853
|
Por favor, marque a caixa "{completedItemText}" em cada instru\xE7\xE3o antes de
|
|
5644
5854
|
continuar.
|
|
5645
5855
|
recording-warning: Tente gravar e assistir a um v\xEDdeo antes de continuar.
|
|
5646
|
-
`,
|
|
5856
|
+
`,bc=`---
|
|
5647
5857
|
Cancel: Cancelar
|
|
5648
5858
|
Continue: Prosseguir
|
|
5649
5859
|
Exit: Sa\xEDda
|
|
@@ -6124,17 +6334,17 @@ please wait, setting up: por favor espere, configurando
|
|
|
6124
6334
|
return to fullscreen: voltar para tela inteira
|
|
6125
6335
|
this-field-is-required: Este campo \xE9 obrigat\xF3rio.
|
|
6126
6336
|
uploading video: enviando v\xEDdeo
|
|
6127
|
-
`,
|
|
6337
|
+
`,yc=Object.defineProperty,zc=Object.defineProperties,wc=Object.getOwnPropertyDescriptors,eo=Object.getOwnPropertySymbols,xc=Object.prototype.hasOwnProperty,_c=Object.prototype.propertyIsEnumerable,no=(e,n,t)=>n in e?yc(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,Sc=(e,n)=>{for(var t in n||(n={}))xc.call(n,t)&&no(e,t,n[t]);if(eo)for(var t of eo(n))_c.call(n,t)&&no(e,t,n[t]);return e},Lc=(e,n)=>zc(e,wc(n));const Ec=e=>e?(Array.isArray(e)&&(e=e.join(`
|
|
6128
6338
|
|
|
6129
|
-
`)),e.replace(/(\r\n|\n|\r)/gm,"<br>").replace(/\t/gm," ")):"",
|
|
6339
|
+
`)),e.replace(/(\r\n|\n|\r)/gm,"<br>").replace(/\t/gm," ")):"",Cc=()=>Object.entries({"en-us":cc,eu:pc,fr:hc,hu:mc,it:fc,ja:gc,nl:vc,"pt-br":kc,pt:bc}).reduce((e,[n,t])=>{const a=new Intl.Locale(n);return Lc(Sc({},e),{[a.baseName]:{translation:dc.load(t)}})},{}),Be=e=>{const n=new Intl.Locale(e.locale);if(!N.hasResourceBundle(n.baseName,"translation"))throw new zs(e.locale);N.language!==n.baseName&&N.changeLanguage(n.baseName)};N.use(Qa).init({debug:!1,resources:Cc()}),X.registerHelper("exp-format",e=>Ec(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 Ac=e=>N.t(e),Pc=X.compile($r);var jc=Object.defineProperty,qc=Object.defineProperties,Ic=Object.getOwnPropertyDescriptors,to=Object.getOwnPropertySymbols,Nc=Object.prototype.hasOwnProperty,Oc=Object.prototype.propertyIsEnumerable,ao=(e,n,t)=>n in e?jc(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,ro=(e,n)=>{for(var t in n||(n={}))Nc.call(n,t)&&ao(e,t,n[t]);if(to)for(var t of to(n))Oc.call(n,t)&&ao(e,t,n[t]);return e},oo=(e,n)=>qc(e,Ic(n));const Rc="lookit-jspsych-video-container",Dc="lookit-jspsych-video-msg-container",Tc=e=>{const n=window.chs.study.attributes,{PIName:t,PIContact:a}=e;Be(e);const r=Mc(e),o=X.compile(r)(oo(ro({},e),{name:t,contact:a,experiment:n}));return X.compile(ys)(oo(ro({},e),{consent:o,video_container_id:Rc,msg_container_id:Dc}))},Mc=e=>{switch(e.template){case"consent-template-5":return bs;case"consent-garden":return vs;case"consent-recording-only":return ks;default:throw new ws(e.template)}};var Hc=`{{! prettier-ignore }}
|
|
6130
6340
|
<div id="lookit-establishing-connection-msg">
|
|
6131
6341
|
<div>{{t "establishing video connection" }}, {{t "please wait"}}...</div>
|
|
6132
6342
|
{{> loader}}
|
|
6133
|
-
</div>`;const
|
|
6343
|
+
</div>`;const Bc=e=>(Be(e),X.compile(Hc)({}));var Fc=Object.defineProperty,Uc=Object.defineProperties,Gc=Object.getOwnPropertyDescriptors,io=Object.getOwnPropertySymbols,Vc=Object.prototype.hasOwnProperty,Wc=Object.prototype.propertyIsEnumerable,so=(e,n,t)=>n in e?Fc(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,Kc=(e,n)=>{for(var t in n||(n={}))Vc.call(n,t)&&so(e,t,n[t]);if(io)for(var t of io(n))Wc.call(n,t)&&so(e,t,n[t]);return e},Yc=(e,n)=>Uc(e,Gc(n));let Zc=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=Yc(Kc({},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 Qc=e=>(Be(e),new Zc(e).survey);var Jc=`{{! prettier-ignore }}
|
|
6134
6344
|
<div id="lookit-uploading-video-msg-container">
|
|
6135
6345
|
<div>{{t "uploading video"}}, {{t "please wait"}}...</div>
|
|
6136
6346
|
{{> loader}}
|
|
6137
|
-
</div>`;const
|
|
6347
|
+
</div>`;const Xc=e=>(Be(e),X.compile(Jc)({}));var $c=`<div id="lookit-jspsych-video-config">
|
|
6138
6348
|
<div id="lookit-jspsych-video-config-title-row">
|
|
6139
6349
|
<h2>{{t "exp-video-config.title"}}</h2>
|
|
6140
6350
|
<p>{{t "exp-video-config.not-recording-note"}}</p>
|
|
@@ -6368,5 +6578,5 @@ uploading video: enviando v\xEDdeo
|
|
|
6368
6578
|
</div>
|
|
6369
6579
|
</div>
|
|
6370
6580
|
</div>
|
|
6371
|
-
</div
|
|
6372
|
-
//# sourceMappingURL=https://unpkg.com/@lookit/templates@3.
|
|
6581
|
+
</div>`,ep=Object.defineProperty,uo=Object.getOwnPropertySymbols,np=Object.prototype.hasOwnProperty,tp=Object.prototype.propertyIsEnumerable,lo=(e,n,t)=>n in e?ep(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,co=(e,n)=>{for(var t in n||(n={}))np.call(n,t)&&lo(e,t,n[t]);if(uo)for(var t of uo(n))tp.call(n,t)&&lo(e,t,n[t]);return e},ap={consentVideo:Tc,videoConfig:(e,n)=>(Be(e),X.compile($c)(co(co({},e),n))),uploadingVideo:Xc,exitSurvey:Qc,translateString:Ac,establishingConnection:Bc,loadingAnimation:Pc};return ap}();
|
|
6582
|
+
//# sourceMappingURL=https://unpkg.com/@lookit/templates@3.1.0/dist/index.browser.min.js.map
|