/*!
 * 
 * [Dojo](https://dojo.io/)
 * Copyright [JS Foundation](https://js.foundation/) & contributors
 * [New BSD license](https://github.com/dojo/meta/blob/master/LICENSE)
 * All rights reserved
 * 
 */
(window.dojoWebpackJsonpdojo_widgets_custom_elements=window.dojoWebpackJsonpdojo_widgets_custom_elements||[]).push([[0],{100:function(t,e,n){"use strict";n.d(e,"b",function(){return c});var r=n(122),i=n(5),o=n(129),s=n(8),a=n(108);const c=Object(i.a)({invalidator:i.g,injector:o.a,getRegistry:i.f,diffProperty:i.d}).properties()(({properties:t,middleware:{invalidator:e,injector:n,getRegistry:i,diffProperty:o}})=>{if(!n.get(a.a)){const t=i();t&&Object(a.b)({},t.base)}return o("locale",t,(t,i)=>{const o=n.get(a.a);let c;if(o){const t=o.get();t&&(c=t.locale)}if(i.locale&&t.locale!==i.locale){const n=Object(r.d)({locale:i.locale,local:!0});if(Object(s.b)(n))return n.then(()=>{e()}),t.locale||c||Object(r.b)()}return t.locale!==i.locale&&e(),i.locale||c||Object(r.b)()}),n.subscribe(a.a),{localize(n){let{locale:i,i18nBundle:o}=t();return o&&(n=o instanceof Map?o.get(n)||n:o),Object(r.c)(n,{locale:i,invalidator:e})},set(t={}){const e=n.get(a.a);e&&e.set(t)},get(){const t=n.get(a.a);if(t)return t.get()}}});e.a=c},106:function(t,e,n){"use strict";n.d(e,"b",function(){return s});var r=n(135),i=n(5),o=n(82);const s=Object(i.a)({node:i.k,destroy:i.c,icache:o.c})(({middleware:{node:t,destroy:e,icache:n}})=>{const i=[],o=[];return e(()=>{let t;for(;t=o.pop();)t&&t()}),{get(e){const s=t.get(e);if(!s)return null;if(-1===i.indexOf(e)){i.push(e);const t=new r.a(([t])=>{n.set(e,t.contentRect)});t.observe(s),o.push(()=>t.disconnect())}return n.get(e)||null}}});e.a=s},107:function(t,e,n){"use strict";var r=n(5);const i=Object(r.a)({node:r.k,invalidator:r.g})(function({middleware:{node:t,invalidator:e}}){return{get(n,r){const i=t.get(n);return i?(r!==i.value&&setTimeout(()=>e()),{valid:i.validity.valid,message:i.validationMessage}):{valid:void 0,message:""}}}});e.a=i},108:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return c});var r=n(122),i=n(15),o=n(8);const s="__i18n_injector";class a extends i.a{set(t={}){const e=Object(r.d)({locale:t.locale||Object(r.a)()});Object(o.b)(e)?e.then(()=>{super.set(t)}):super.set(t)}}function c(t,e){const n=new a(t);return e.defineInjector(s,t=>(n.setInvalidator(t),()=>n)),n}},110:function(t,e,n){var r,i;
/*!
 * CLDR JavaScript Library v0.5.4 2020-10-22T15:56Z MIT license © Rafael Xavier
 * http://git.io/h4lmVg
 */void 0===(i="function"==typeof(r=function(){var t,e=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=function(t,n){if(e(t)&&(t=t.join("/")),"string"!=typeof t)throw new Error('invalid path "'+t+'"');return(t=(t=t.replace(/^\//,"").replace(/^cldr\//,"")).replace(/{[a-zA-Z]+}/g,function(t){return t=t.replace(/^{([^}]*)}$/,"$1"),n[t]})).split("/")},r=function(t,e){var n,r;if(t.some)return t.some(e);for(n=0,r=t.length;n<r;n++)if(e(t[n],n,t))return!0;return!1},i=function(t,e,n,i){var o,s=n[0],a=n[1],c=t.localeSep,u=n[2],l=n.slice(3,4);return i=i||{},"und"!==s&&"Zzzz"!==a&&"ZZ"!==u?[s,a,u].concat(l):void 0!==e.get("supplemental/likelySubtags")?r([[s,a,u],[s,u],[s,a],[s],["und",a]],function(t){return o=!/\b(Zzzz|ZZ)\b/.test(t.join(c))&&e.get(["supplemental/likelySubtags",t.join(c)])})?(o=o.split(c),["und"!==s?s:o[0],"Zzzz"!==a?a:o[1],"ZZ"!==u?u:o[2]].concat(l)):i.force?e.get("supplemental/likelySubtags/und").split(c):void 0:void 0},o=function(t,e,n){var o,s=n[0],a=n[1],c=n[2],u=n[3];return r([[[s,"Zzzz","ZZ"],[s]],[[s,"Zzzz",c],[s,c]],[[s,a,"ZZ"],[s,a]]],function(r){var s=i(t,e,r[0]);return o=r[1],s&&s[0]===n[0]&&s[1]===n[1]&&s[2]===n[2]})?(u&&o.push(u),o):n},s=function(t){var e,n,r=[];return t=t.replace(/_/,"-"),(e=t.split("-u-"))[1]&&(e[1]=e[1].split("-t-"),t=e[0]+(e[1][1]?"-t-"+e[1][1]:""),r[4]=e[1][0]),n=t.split("-t-")[0],null===(e=n.match(/^(([a-z]{2,3})(-([A-Z][a-z]{3}))?(-([A-Z]{2}|[0-9]{3}))?)((-([a-zA-Z0-9]{5,8}|[0-9][a-zA-Z0-9]{3}))*)$|^(root)$/))?["und","Zzzz","ZZ"]:(r[0]=e[10]||e[2]||"und",r[1]=e[4]||"Zzzz",r[2]=e[6]||"ZZ",e[7]&&e[7].length&&(r[3]=e[7].slice(1)),r)},a=function(t,e){var n,r;if(t.forEach)return t.forEach(e);for(n=0,r=t.length;n<r;n++)e(t[n],n,t)},c=function(t,e,n){var r=t._availableBundleMap,c=t._availableBundleMapQueue;return c.length&&(a(c,function(n,a){var u,l,f,p;if(p=s(n),void 0===(l=i(t,e,p)))throw c.splice(a,1),new Error("Could not find likelySubtags for "+n);f=(f=o(t,e,l)).join(t.localeSep),(u=r[f])&&u.length<n.length||(r[f]=n)}),t._availableBundleMapQueue=[]),r[n]||null},u=function(t,e){var n,r;return r=t+(e&&JSON?": "+JSON.stringify(e):""),(n=new Error(r)).code=t,a(function(t){var e,n=[];if(Object.keys)return Object.keys(t);for(e in t)n.push(e);return n}(e),function(t){n[t]=e[t]}),n},l=function(t,e,n){if(!e)throw u(t,n)},f=function(t,e){l("E_MISSING_PARAMETER",void 0!==t,{name:e})},p=function(t,e,n,r){l("E_INVALID_PAR_TYPE",n,{expected:r,name:e,value:t})},d=function(t,n){p(t,n,"string"==typeof t||e(t),"String or Array")},h=function(t,e){var n;p(t,e,void 0===t||null!==(n=t)&&""+n=="[object Object]","Plain Object")},g=function(t,e){var n,r=t,i=e.length;for(n=0;n<i-1;n++)if(!(r=r[e[n]]))return;return r[e[n]]},v=function(t,e){var n,r=t._availableBundleMapQueue,i=g(e,["main"]);if(i)for(n in i)i.hasOwnProperty(n)&&"root"!==n&&-1===r.indexOf(n)&&r.push(n)},m=function(t){return e(t)?t:[t]},y=t=function(){var n={},r=[].slice.call(arguments,0);return a(r,function(r){var i;for(i in r)i in n&&"object"==typeof n[i]&&!e(n[i])?n[i]=t(n[i],r[i]):n[i]=r[i]}),n},b=function(t,e,n){var r,i,o;for(f(n[0],"json"),r=0;r<n.length;r++)for(o=m(n[r]),i=0;i<o.length;i++)h(o[i],"json"),e=y(e,o[i]),v(t,o[i]);return e},_=function(t,e,r){var i=n(e,r);return g(t._resolved,i)},w=function(t){this.init(t)};return w._alwaysArray=m,w._coreLoad=b,w._createError=u,w._itemGetResolved=_,w._jsonMerge=y,w._pathNormalize=n,w._resourceGet=g,w._validatePresence=f,w._validateType=p,w._validateTypePath=d,w._validateTypePlainObject=h,w._availableBundleMap={},w._availableBundleMapQueue=[],w._resolved={},w.localeSep="-",w.load=function(){w._resolved=b(w,w._resolved,arguments)},w.prototype.init=function(t){var e,n,r,a,u,l,d,h,g,v,m=w.localeSep,y="";f(t,"locale"),p(v=t,"locale","string"==typeof v,"a string"),5===(l=s(t)).length&&(y=m+"u"+m+(h=l.pop()),l[3]||l.pop()),g=l[3],n=(r=i(w,this,l,{force:!0})||l)[0],u=r[1],d=r[2],a=o(w,this,r).join(m),this.attributes=e={bundle:c(w,this,a),minLanguageId:a+y,maxLanguageId:r.join(m)+y,language:n,script:u,territory:d,region:d,variant:g},h&&("-"+h).replace(/-[a-z]{3,8}|(-[a-z]{2})-([a-z]{3,8})/g,function(t,n,r){n?e["u"+n]=r:e["u"+t]=!0}),this.locale=t},w.prototype.get=function(t){return f(t,"path"),d(t,"path"),_(w,t,this.attributes)},w.prototype.main=function(t){return f(t,"path"),d(t,"path"),l("E_MISSING_BUNDLE",null!==this.attributes.bundle,{locale:this.locale}),t=m(t),this.get(["main/{bundle}"].concat(t))},w})?r.call(e,n,e,t):r)||(t.exports=i)},122:function(t,e,n){"use strict";n.d(e,"a",function(){return O}),n.d(e,"b",function(){return j}),n.d(e,"d",function(){return x}),n.d(e,"c",function(){return z});var r=n(0),i=n(4),o=n(139);const s=n(110);let a=s._resolved;Object.defineProperty(s,"_resolved",{get:()=>Object.assign({},a),set(t){a=Object.assign({},t)}});const c=/\{([a-z0-9_]+)\}/gi,u=new i.a,l=new i.a,f=new Map,p=new Map,d="globalize-messages/{bundle}",h="dojo/{bundle}/lookup";let g,v=[],m="",y="unknown",b={},_=0;const w=new s("");function O(){return y}function j(){return g}function E(t){let e,n=t.replace(/^([a-z]{2}).*/i,"$1");for(let r=0;r<v.length;r++){const i=v[r];if(t===i){e=t;break}n===i&&(e=n)}return e}function A(t){return!E(t)&&b.fallback&&!0!==b.fallback}function S(t,e,n){e?(o.locale(t),y=t,g=t):n||(g=t)}function x(t={}){const{local:e=!1,default:n=!1,locale:i=r.a.navigator.language||r.a.navigator.userLanguage,invalidator:s}=t,a=E(i),c=a||m,u=a?i:m,l=[],f=b.supplemental,p=b.fallback;f&&!0!==f&&l.push(f());const d=b[c];return d&&!0!==d&&l.push(d()),!a&&p&&!0!==p&&p&&!0!==p&&l.push(p()),o.loadMessages({[i]:{}}),l.length?async function(t,e,n,r,i,s,a){return Promise.all(t).then(t=>{if(b[e]=!0,b.supplemental=!0,t.forEach(t=>{t.forEach(t=>{o.load(t.default)})}),A(n)){b.fallback=!0;const t=w.get("dojo")||{},e=Object.keys(t);for(let n=0;n<e.length;n++){const r=e[n];t[r].bundles&&o.loadMessages({[r]:t[r].bundles})}n&&-1===e.indexOf(n)&&o.loadMessages({[n]:{}})}return S(r,i,s),a&&a(),r})}(l,c,i,u,n,e,s):(S(u,n,e),u)}function M(t){return{messages:Object.keys(t.messages).reduce((t,e)=>(t[e]="",t),{}),isPlaceholder:!0,format:()=>""}}function I(){return`id-${++_}`}const P=new i.a;function z(t,e){let{locale:n=y,invalidator:r}=e;if("unknown"===y)return{messages:t.messages,isPlaceholder:!1,format:(e,n)=>t.messages[e].replace(c,(t,e)=>{const r=n[e];return void 0===r?t:r})};if(A(n))return x({default:!1,local:!0,locale:n,invalidator:r}),M(t);const i=function(t){const{locales:e={}}=t,n=Object.keys(e);let r=u.get(t);if(!r){r=I(),u.set(t,r);const i={},a={};for(let t=0;t<n.length;t++){const o=n[t],s=!!E(o),c=e[o];let u={};if("function"==typeof c){const t=I();l.set(c,t),f.set(t,c),a[o]={lookup:{[r]:{locale:o,id:t}}}}else u=c;s?i[o]={[r]:u}:a[o]?a[o].bundles={[r]:u}:a[o]={bundles:{[r]:u}}}o.loadMessages(Object.assign({root:{[r]:t.messages},[y]:{[r]:t.messages},[m]:{[r]:t.messages}},i)),s.load({dojo:a})}return r}(t),a=p.get(n)||new o(new s(n));p.set(n,a);const g=a.cldr.get(`${h}/${i}/id`),v=a.cldr.get(`${h}/${i}/locale`);if(g&&v){let t=f.get(g);if(t){s.load({dojo:{[v]:{lookup:{[i]:{loading:!0}}}}}),t().then(t=>{!function(t,e){s.load({dojo:{[t]:{lookup:{[e]:{locale:void 0,id:void 0,loading:void 0}}}}})}(v,i),o.loadMessages({[v]:{[i]:t.default}}),r()})}}if(a.cldr.get(`${h}/${i}/loading`))return M(t);const b=P.get(t)||new Map;let _=b.get(n);return _||(_={messages:Object.keys(t.messages).reduce((t,e)=>{const n=a.cldr.get(`${d}/${i}/${e}`);return t[e]=n,t},{}),isPlaceholder:!1,format:(t,e)=>a.formatMessage(`${i}/${t}`,e)},b.set(n,_),P.set(t,b)),_}},129:function(t,e,n){"use strict";var r=n(5);const i=Object(r.a)({getRegistry:r.f,invalidator:r.g,destroy:r.c})(({middleware:{getRegistry:t,invalidator:e,destroy:n}})=>{const r=[];n(()=>{let t;for(;t=r.pop();)t.destroy()});const i=t();return{subscribe(t,n=e){if(i){const e=i.getInjector(t);if(e){const t=e.invalidator.on("invalidate",()=>{n()});return r.push(t),()=>{const e=r.indexOf(t);-1!==e&&(r.splice(e,1),t.destroy())}}}},get(t){if(i){const e=i.getInjector(t);if(e)return e.injector()}return null}}});e.a=i},130:function(t,e,n){
/*!
 * CLDR JavaScript Library v0.5.4 2020-10-22T15:56Z MIT license © Rafael Xavier
 * http://git.io/h4lmVg
 */
t.exports=n(110),n(140),n(141),n(142)},131:function(t,e,n){"use strict";n.d(e,"a",function(){return d});n(2);var r=n(6);let i,o,s,a,c,u,l,f,p,d;i=String.fromCodePoint,o=String.raw,s=Object(r.a)(String.prototype.codePointAt),a=Object(r.a)(String.prototype.endsWith),c=Object(r.a)(String.prototype.includes),u=Object(r.a)(String.prototype.normalize),l=Object(r.a)(String.prototype.repeat),f=Object(r.a)(String.prototype.startsWith),p=Object(r.a)(String.prototype.padEnd),d=Object(r.a)(String.prototype.padStart)},134:function(t,e,n){"use strict";var r=n(5),i=n(106);const o=Object(r.a)({resize:i.b});const s=function(t={SM:0,MD:576,LG:768,XL:960}){const e=t;return o(({middleware:{resize:t}})=>({get:(n,r=e)=>{const i=t.get(n);if(!i)return null;let o=null;const s=Object.keys(r);for(let t=0;t<s.length;t++){const e=r[s[t]];i.width>=e&&(!o||e>o.size)&&(o={name:s[t],size:e})}return o?{breakpoint:o.name,contentRect:i}:null}}))}();e.a=s},135:function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(146),s=n.n(o);Object(i.a)("build-elide")||r.a.ResizeObserver||(r.a.ResizeObserver=s.a||o);e.a=function(t,e=!1,n=!1){return Object(i.a)("test")?e?function(...e){return new r.a[t](...e)}:function(...e){return r.a[t](...e)}:n?r.a[t].bind(r.a):r.a[t]}("ResizeObserver",!0)},139:function(t,e,n){var r;
/*!
 * Globalize v1.4.0 2018-07-17T20:38Z Released under the MIT license
 * http://git.io/TrdQbw
 */
/*!
 * Globalize v1.4.0 2018-07-17T20:38Z Released under the MIT license
 * http://git.io/TrdQbw
 */
r=function(t,e){var n,r=e._alwaysArray,i=e._createError,o=e._isPlainObject,s=e._runtimeBind,a=e._validateDefaultLocale,c=e._validate,u=e._validateParameterPresence,l=e._validateParameterType,f=e._validateParameterTypePlainObject;n=function(){
/** @file messageformat.js - ICU PluralFormat + SelectFormat for JavaScript
 *  @author Alex Sexton - @SlexAxton
 *  @version 0.3.0-1
 *  @copyright 2012-2015 Alex Sexton, Eemeli Aro, and Contributors
 *  @license To use or fork, MIT. To contribute back, Dojo CLA  */
function t(t,e){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(t))return e?e+"."+t:t;var n=JSON.stringify(t);return e?e+"["+n+"]":n}function e(t,e,n){if(this.lc=[t],this.runtime.pluralFuncs={},this.runtime.pluralFuncs[this.lc[0]]=e,this.runtime.fmt={},n)for(var r in n)this.runtime.fmt[r]=n[r]}return e._parse=function(){function t(t,e,n,r,i,o){this.message=t,this.expected=e,this.found=n,this.offset=r,this.line=i,this.column=o,this.name="SyntaxError"}return function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(t,Error),{SyntaxError:t,parse:function(e){var n,r=arguments.length>1?arguments[1]:{},i={},o={start:Pt},s=Pt,a=function(t){return{type:"messageFormatPattern",statements:t}},c=i,u="{",l={type:"literal",value:"{",description:'"{"'},f=null,p=",",d={type:"literal",value:",",description:'","'},h="}",g={type:"literal",value:"}",description:'"}"'},v=function(t,e){var n={type:"messageFormatElement",argumentIndex:t};return e&&e.length?n.elementFormat=e[1]:n.output=!0,n},m="plural",y={type:"literal",value:"plural",description:'"plural"'},b=function(t,e){return{type:"elementFormat",key:t,val:e}},_="selectordinal",w={type:"literal",value:"selectordinal",description:'"selectordinal"'},O="select",j={type:"literal",value:"select",description:'"select"'},E=function(t,e){return{type:"elementFormat",key:t,val:e}},A=function(t,e){return{type:"pluralFormatPattern",pluralForms:e,offset:t||0}},S="offset",x={type:"literal",value:"offset",description:'"offset"'},M=":",I={type:"literal",value:":",description:'":"'},P=function(t){return t},z=function(t,e){return{key:t,val:e}},k=function(t){return t},L="=",R={type:"literal",value:"=",description:'"="'},F=function(t){return{type:"selectFormatPattern",pluralForms:t}},T=function(t){return t},C="#",D={type:"literal",value:"#",description:'"#"'},$=function(){return{type:"octothorpe"}},N=function(t){return{type:"string",val:t.join("")}},Z={type:"other",description:"identifier"},q=/^[0-9a-zA-Z$_]/,G={type:"class",value:"[0-9a-zA-Z$_]",description:"[0-9a-zA-Z$_]"},B=/^[^ \t\n\r,.+={}]/,J={type:"class",value:"[^ \\t\\n\\r,.+={}]",description:"[^ \\t\\n\\r,.+={}]"},V=function(t){return t},K=function(t){return t.join("")},W=/^[^{}#\\\0-\x1F \t\n\r]/,H={type:"class",value:"[^{}#\\\\\\0-\\x1F \\t\\n\\r]",description:"[^{}#\\\\\\0-\\x1F \\t\\n\\r]"},U=function(t){return t},Q="\\\\",Y={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},X=function(){return"\\"},tt="\\#",et={type:"literal",value:"\\#",description:'"\\\\#"'},nt=function(){return"#"},rt="\\{",it={type:"literal",value:"\\{",description:'"\\\\{"'},ot=function(){return"{"},st="\\}",at={type:"literal",value:"\\}",description:'"\\\\}"'},ct=function(){return"}"},ut="\\u",lt={type:"literal",value:"\\u",description:'"\\\\u"'},ft=function(t,e,n,r){return String.fromCharCode(parseInt("0x"+t+e+n+r))},pt=/^[0-9]/,dt={type:"class",value:"[0-9]",description:"[0-9]"},ht=function(t){return parseInt(t.join(""),10)},gt=/^[0-9a-fA-F]/,vt={type:"class",value:"[0-9a-fA-F]",description:"[0-9a-fA-F]"},mt={type:"other",description:"whitespace"},yt=function(t){return t.join("")},bt=/^[ \t\n\r]/,_t={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},wt=0,Ot=0,jt={line:1,column:1,seenCR:!1},Et=0,At=[],St=0;if("startRule"in r){if(!(r.startRule in o))throw new Error("Can't start parsing from rule \""+r.startRule+'".');s=o[r.startRule]}function xt(t){return Ot!==t&&(Ot>t&&(Ot=0,jt={line:1,column:1,seenCR:!1}),function(t,n,r){var i,o;for(i=n;i<r;i++)"\n"===(o=e.charAt(i))?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):"\r"===o||"\u2028"===o||"\u2029"===o?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}(jt,Ot,t),Ot=t),jt}function Mt(t){wt<Et||(wt>Et&&(Et=wt,At=[]),At.push(t))}function It(n,r,i){var o=xt(i),s=i<e.length?e.charAt(i):null;return null!==r&&function(t){var e=1;for(t.sort(function(t,e){return t.description<e.description?-1:t.description>e.description?1:0});e<t.length;)t[e-1]===t[e]?t.splice(e,1):e++}(r),new t(null!==n?n:function(t,e){var n,r=new Array(t.length);for(n=0;n<t.length;n++)r[n]=t[n].description;return"Expected "+(t.length>1?r.slice(0,-1).join(", ")+" or "+r[t.length-1]:r[0])+" but "+(e?'"'+function(t){function e(t){return t.charCodeAt(0).toString(16).toUpperCase()}return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(t){return"\\x0"+e(t)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(t){return"\\x"+e(t)}).replace(/[\u0180-\u0FFF]/g,function(t){return"\\u0"+e(t)}).replace(/[\u1080-\uFFFF]/g,function(t){return"\\u"+e(t)})}(e)+'"':"end of input")+" found."}(r,s),r,s,i,o.line,o.column)}function Pt(){return zt()}function zt(){var t,e;for(wt,t=[],(e=kt())===i&&(e=Dt())===i&&(e=Ct());e!==i;)t.push(e),(e=kt())===i&&(e=Dt())===i&&(e=Ct());return t!==i&&(t=a(t)),t}function kt(){var t,n,r,o,s,a;return t=wt,123===e.charCodeAt(wt)?(n=u,wt++):(n=i,0===St&&Mt(l)),n!==i&&Bt()!==i&&(r=$t())!==i?(o=wt,44===e.charCodeAt(wt)?(s=p,wt++):(s=i,0===St&&Mt(d)),s!==i&&(a=function(){var t,n,r,o,s,a;if(t=wt,(n=Bt())!==i?(e.substr(wt,6)===m?(r=m,wt+=6):(r=i,0===St&&Mt(y)),r!==i&&(o=Bt())!==i?(44===e.charCodeAt(wt)?(s=p,wt++):(s=i,0===St&&Mt(d)),s!==i&&Bt()!==i&&(a=Lt())!==i&&Bt()!==i?(n=b(r,a),t=n):(wt=t,t=c)):(wt=t,t=c)):(wt=t,t=c),t===i&&(t=wt,(n=Bt())!==i?(e.substr(wt,13)===_?(r=_,wt+=13):(r=i,0===St&&Mt(w)),r!==i&&(o=Bt())!==i?(44===e.charCodeAt(wt)?(s=p,wt++):(s=i,0===St&&Mt(d)),s!==i&&Bt()!==i&&(a=Lt())!==i&&Bt()!==i?(n=b(r,a),t=n):(wt=t,t=c)):(wt=t,t=c)):(wt=t,t=c),t===i&&(t=wt,(n=Bt())!==i?(e.substr(wt,6)===O?(r=O,wt+=6):(r=i,0===St&&Mt(j)),r!==i&&(o=Bt())!==i?(44===e.charCodeAt(wt)?(s=p,wt++):(s=i,0===St&&Mt(d)),s!==i&&Bt()!==i&&(a=function(){var t,e;if(wt,t=[],(e=Ft())!==i)for(;e!==i;)t.push(e),e=Ft();else t=c;return t!==i&&(t=F(t)),t}())!==i&&Bt()!==i?(n=b(r,a),t=n):(wt=t,t=c)):(wt=t,t=c)):(wt=t,t=c),t===i)))if(t=wt,(n=Bt())!==i)if((r=$t())!==i){for(o=[],s=Tt();s!==i;)o.push(s),s=Tt();o!==i?(n=E(r,o),t=n):(wt=t,t=c)}else wt=t,t=c;else wt=t,t=c;return t}())!==i?o=s=[s,a]:(wt=o,o=c),o===i&&(o=f),o!==i&&(s=Bt())!==i?(125===e.charCodeAt(wt)?(a=h,wt++):(a=i,0===St&&Mt(g)),a!==i?t=n=v(r,o):(wt=t,t=c)):(wt=t,t=c)):(wt=t,t=c),t}function Lt(){var t,n,r,o;if(t=wt,(n=function(){var t,n,r,o,s;return t=wt,(n=Bt())!==i?(e.substr(wt,6)===S?(r=S,wt+=6):(r=i,0===St&&Mt(x)),r!==i&&Bt()!==i?(58===e.charCodeAt(wt)?(o=M,wt++):(o=i,0===St&&Mt(I)),o!==i&&Bt()!==i&&(s=qt())!==i&&Bt()!==i?(n=P(s),t=n):(wt=t,t=c)):(wt=t,t=c)):(wt=t,t=c),t}())===i&&(n=f),n!==i){if(r=[],(o=Rt())!==i)for(;o!==i;)r.push(o),o=Rt();else r=c;r!==i?t=n=A(n,r):(wt=t,t=c)}else wt=t,t=c;return t}function Rt(){var t,n,r,o,s;return t=wt,Bt()!==i&&(n=function(){var t,n,r;return t=wt,(n=$t())!==i&&(n=k(n)),(t=n)===i&&(t=wt,61===e.charCodeAt(wt)?(n=L,wt++):(n=i,0===St&&Mt(R)),n!==i&&(r=qt())!==i?(n=P(r),t=n):(wt=t,t=c)),t}())!==i&&Bt()!==i?(123===e.charCodeAt(wt)?(r=u,wt++):(r=i,0===St&&Mt(l)),r!==i&&Bt()!==i&&(o=zt())!==i&&Bt()!==i?(125===e.charCodeAt(wt)?(s=h,wt++):(s=i,0===St&&Mt(g)),s!==i?t=z(n,o):(wt=t,t=c)):(wt=t,t=c)):(wt=t,t=c),t}function Ft(){var t,n,r,o,s;return t=wt,Bt()!==i&&(n=$t())!==i&&Bt()!==i?(123===e.charCodeAt(wt)?(r=u,wt++):(r=i,0===St&&Mt(l)),r!==i&&Bt()!==i&&(o=zt())!==i&&Bt()!==i?(125===e.charCodeAt(wt)?(s=h,wt++):(s=i,0===St&&Mt(g)),s!==i?t=z(n,o):(wt=t,t=c)):(wt=t,t=c)):(wt=t,t=c),t}function Tt(){var t,n,r;return t=wt,Bt()!==i?(44===e.charCodeAt(wt)?(n=p,wt++):(n=i,0===St&&Mt(d)),n!==i&&Bt()!==i&&(r=$t())!==i&&Bt()!==i?t=T(r):(wt=t,t=c)):(wt=t,t=c),t}function Ct(){var t;return wt,35===e.charCodeAt(wt)?(t=C,wt++):(t=i,0===St&&Mt(D)),t!==i&&(t=$()),t}function Dt(){var t,e;if(wt,t=[],(e=Nt())===i&&(e=Jt()),e!==i)for(;e!==i;)t.push(e),(e=Nt())===i&&(e=Jt());else t=c;return t!==i&&(t=N(t)),t}function $t(){var t,n,r,o,s,a;if(St++,t=wt,Bt()!==i){if(n=wt,r=wt,q.test(e.charAt(wt))?(o=e.charAt(wt),wt++):(o=i,0===St&&Mt(G)),o!==i){for(s=[],B.test(e.charAt(wt))?(a=e.charAt(wt),wt++):(a=i,0===St&&Mt(J));a!==i;)s.push(a),B.test(e.charAt(wt))?(a=e.charAt(wt),wt++):(a=i,0===St&&Mt(J));s!==i?r=o=[o,s]:(wt=r,r=c)}else wt=r,r=c;r!==i&&(r=e.substring(n,wt)),(n=r)!==i&&(r=Bt())!==i?t=V(n):(wt=t,t=c)}else wt=t,t=c;return St--,t===i&&0===St&&Mt(Z),t}function Nt(){var t,e;if(wt,t=[],(e=Zt())!==i)for(;e!==i;)t.push(e),e=Zt();else t=c;return t!==i&&(t=K(t)),t}function Zt(){var t,n,r,o,s,a;return t=wt,W.test(e.charAt(wt))?(n=e.charAt(wt),wt++):(n=i,0===St&&Mt(H)),n!==i&&(n=U(n)),(t=n)===i&&(t=wt,e.substr(wt,2)===Q?(n=Q,wt+=2):(n=i,0===St&&Mt(Y)),n!==i&&(n=X()),(t=n)===i&&(t=wt,e.substr(wt,2)===tt?(n=tt,wt+=2):(n=i,0===St&&Mt(et)),n!==i&&(n=nt()),(t=n)===i&&(t=wt,e.substr(wt,2)===rt?(n=rt,wt+=2):(n=i,0===St&&Mt(it)),n!==i&&(n=ot()),(t=n)===i&&(t=wt,e.substr(wt,2)===st?(n=st,wt+=2):(n=i,0===St&&Mt(at)),n!==i&&(n=ct()),(t=n)===i&&(t=wt,e.substr(wt,2)===ut?(n=ut,wt+=2):(n=i,0===St&&Mt(lt)),n!==i&&(r=Gt())!==i&&(o=Gt())!==i&&(s=Gt())!==i&&(a=Gt())!==i?t=n=ft(r,o,s,a):(wt=t,t=c)))))),t}function qt(){var t,n;if(wt,t=[],pt.test(e.charAt(wt))?(n=e.charAt(wt),wt++):(n=i,0===St&&Mt(dt)),n!==i)for(;n!==i;)t.push(n),pt.test(e.charAt(wt))?(n=e.charAt(wt),wt++):(n=i,0===St&&Mt(dt));else t=c;return t!==i&&(t=ht(t)),t}function Gt(){var t;return gt.test(e.charAt(wt))?(t=e.charAt(wt),wt++):(t=i,0===St&&Mt(vt)),t}function Bt(){var t,e,n;for(St++,t=wt,e=[],n=Jt();n!==i;)e.push(n),n=Jt();return e!==i&&(e=yt(e)),St--,(t=e)===i&&(e=i,0===St&&Mt(mt)),t}function Jt(){var t;return bt.test(e.charAt(wt))?(t=e.charAt(wt),wt++):(t=i,0===St&&Mt(_t)),t}if((n=s())!==i&&wt===e.length)return n;throw n!==i&&wt<e.length&&Mt({type:"end",description:"end of input"}),It(null,At,Et)}}}().parse,e.plurals={},e.formatters={},e.prototype.runtime={number:function(t,e){if(isNaN(t))throw new Error("'"+t+"' isn't a number.");return t-(e||0)},plural:function(t,e,n,r,i){if({}.hasOwnProperty.call(r,t))return r[t]();e&&(t-=e);var o=n(t,i);return o in r?r[o]():r.other()},select:function(t,e){return{}.hasOwnProperty.call(e,t)?e[t]():e.other()},pluralFuncs:{},fmt:{},toString:function(){var e=function(n,r){if("object"!=typeof n){var i=n.toString().replace(/^(function )\w*/,"$1");return(a=/([ \t]*)\S.*$/.exec(i))?i.replace(new RegExp("^"+a[1],"mg"),""):i}var o=[];for(var s in n)"toString"!=s&&(0==r?o.push("var "+s+" = "+e(n[s],r+1)+";\n"):o.push(t(s)+": "+e(n[s],r+1)));if(0==r)return o.join("");if(0==o.length)return"{}";for(var a="  ";--r;)a+="  ";return"{\n"+o.join(",\n").replace(/^/gm,a)+"\n}"};return e(this,0)}},e.prototype._precompile=function(n,r){r=r||{keys:{},offset:{}};var i,o,s=[],a=[];switch(n.type){case"messageFormatPattern":for(i=0;i<n.statements.length;++i)s.push(this._precompile(n.statements[i],r));return o=s.join(" + ")||'""',r.pf_count?o:"function(d) { return "+o+"; }";case"messageFormatElement":return r.pf_count=r.pf_count||0,n.output?t(n.argumentIndex,"d"):(r.keys[r.pf_count]=n.argumentIndex,this._precompile(n.elementFormat,r));case"elementFormat":switch(a=[t(r.keys[r.pf_count],"d")],n.key){case"select":return a.push(this._precompile(n.val,r)),"select("+a.join(", ")+")";case"selectordinal":return"plural("+(a=a.concat([0,t(this.lc[0],"pluralFuncs"),this._precompile(n.val,r),1])).join(", ")+")";case"plural":return r.offset[r.pf_count||0]=n.val.offset||0,"plural("+(a=a.concat([r.offset[r.pf_count]||0,t(this.lc[0],"pluralFuncs"),this._precompile(n.val,r)])).join(", ")+")";default:return this.withIntlSupport&&!(n.key in this.runtime.fmt)&&n.key in e.formatters&&(o=e.formatters[n.key],this.runtime.fmt[n.key]="function"==typeof o(this)?o(this):o),a.push(JSON.stringify(this.lc)),n.val&&n.val.length&&a.push(JSON.stringify(1==n.val.length?n.val[0]:n.val)),"fmt."+n.key+"("+a.join(", ")+")"}case"pluralFormatPattern":case"selectFormatPattern":r.pf_count=r.pf_count||0,"selectFormatPattern"==n.type&&(r.offset[r.pf_count]=0);var c=!0;for(i=0;i<n.pluralForms.length;++i){var u=n.pluralForms[i].key;"other"===u&&(c=!1);var l=JSON.parse(JSON.stringify(r));l.pf_count++,s.push(t(u)+": function() { return "+this._precompile(n.pluralForms[i].val,l)+";}")}if(c)throw new Error("No 'other' form found in "+n.type+" "+r.pf_count);return"{ "+s.join(", ")+" }";case"string":return JSON.stringify(n.val||"");case"octothorpe":return r.pf_count?(a=[t(r.keys[r.pf_count-1],"d")],r.offset[r.pf_count-1]&&a.push(r.offset[r.pf_count-1]),"number("+a.join(", ")+")"):'"#"';default:throw new Error("Bad AST type: "+n.type)}},e.prototype.compile=function(n,r){var i={},o=this.lc,s=function(t,n){try{var r=e._parse(n);return t._precompile(r)}catch(t){throw new Error((r?"Precompiler":"Parser")+" error: "+t.toString())}},a=function(e,n){if(n||(n=0),"object"!=typeof e)return e;for(var r=[],i="",o=0;o<n;++o)i+="  ";for(var s in e)r.push("\n"+i+"  "+t(s)+": "+a(e[s],n+1));return"{"+r.join(",")+"\n"+i+"}"};if("string"==typeof n)return new Function("number, plural, select, pluralFuncs, fmt","return "+s(this,n))(this.runtime.number,this.runtime.plural,this.runtime.select,this.runtime.pluralFuncs,this.runtime.fmt);for(var c in r=r||{},n)if(r.locale&&(this.lc=r.locale[c]&&[].concat(r.locale[c])||o),"string"==typeof n[c])try{i[c]=s(this,n[c])}catch(t){throw t.message=t.message.replace(":"," with `"+c+"`:"),t}else for(var u in i[c]={},n[c])try{i[c][u]=s(this,n[c][u])}catch(t){throw t.message=t.message.replace(":"," with `"+u+"` in `"+c+"`:"),t}this.lc=o;var l=this.runtime.toString()+"\n";switch(r.global||""){case"exports":var f=[];for(var p in i)f.push(t(p,"exports")+" = "+a(i[p]));return new Function(l+f.join(";\n"));case"module.exports":return new Function(l+"module.exports = "+a(i));case"":return new Function(l+"return "+a(i));default:return new Function("G",l+t(r.global,"G")+" = "+a(i))}},e}();var p=function(){return i("E_MISSING_PLURAL_MODULE","Plural module not loaded.")},d=function(t){return function(e){var n;return"number"!=typeof e&&"string"!=typeof e||(e=[].slice.call(arguments,0)),l(n=e,"variables",void 0===n||o(n)||Array.isArray(n),"Array or Plain Object"),t(e)}},h=function(t,e){var n=t.locale,r=e.toString;return e.toString=function(){var t,i={};return t=r.call(e),/number\(/.test(t)&&(i.number="messageFormat.number"),/plural\(/.test(t)&&(i.plural="messageFormat.plural"),/select\(/.test(t)&&(i.select="messageFormat.select"),t.replace(/pluralFuncs(\[([^\]]+)\]|\.([a-zA-Z]+))/,function(t){return i.pluralFuncs='{"'+n+'": Globalize("'+n+'").pluralGenerator()}',t}),"(function( "+Object.keys(i).join(", ")+" ) {\n  return "+t+"\n})("+Object.keys(i).map(function(t){return i[t]}).join(", ")+")"},e},g=[].slice;return e.loadMessages=function(e){var n,r={"globalize-messages":e,main:{}};for(n in u(e,"json"),f(e,"json"),e)e.hasOwnProperty(n)&&(r.main[n]={});t.load(r)},e.messageFormatter=e.prototype.messageFormatter=function(t){var e,i,o,f,v,m=g.call(arguments,0);return u(t,"path"),l(t,"path","string"==typeof t||Array.isArray(t),"a String nor an Array"),t=r(t),e=this.cldr,a(e),function(t){c("E_MISSING_MESSAGE_BUNDLE","Missing message bundle for locale `{locale}`.",t.attributes.bundle&&void 0!==t.get("globalize-messages/{bundle}"),{locale:t.locale})}(e),function(t,e){t=t.join("/"),c("E_MISSING_MESSAGE","Missing required message content `{path}`.",void 0!==e,{path:t})}(t,o=e.get(["globalize-messages/{bundle}"].concat(t))),Array.isArray(o)&&(o=o.join(" ")),function(t,e){t=t.join("/"),c("E_INVALID_MESSAGE","Invalid message content `{path}`. {expected} expected.","string"==typeof e,{expected:"a string",path:t})}(t,o),f=void 0!==this.plural?this.pluralGenerator():p,i=new n(e.locale,f).compile(o),v=d(i),s(m,e,v,[h(e,i),f]),v},e.formatMessage=e.prototype.formatMessage=function(t){return this.messageFormatter(t).apply({},g.call(arguments,1))},e},t.exports=r(n(130),n(143))},140:function(t,e,n){var r,i,o;
/*!
 * CLDR JavaScript Library v0.5.4 2020-10-22T15:56Z MIT license © Rafael Xavier
 * http://git.io/h4lmVg
 */i=[n(110)],void 0===(o="function"==typeof(r=function(t){var e,n=t._pathNormalize,r=t._validatePresence,i=t._validateType;
/*!
 * EventEmitter v4.2.7 - git.io/ee
 * Oliver Caldwell
 * MIT license
 * @preserve
 */e=function(){function t(){}var e=t.prototype,n={};function r(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}return e.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},e.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},e.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},e.addListener=function(t,e){var n,i=this.getListenersAsObject(t),o="object"==typeof e;for(n in i)i.hasOwnProperty(n)&&-1===r(i[n],e)&&i[n].push(o?e:{listener:e,once:!1});return this},e.on=i("addListener"),e.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},e.once=i("addOnceListener"),e.defineEvent=function(t){return this.getListeners(t),this},e.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},e.removeListener=function(t,e){var n,i,o=this.getListenersAsObject(t);for(i in o)o.hasOwnProperty(i)&&-1!==(n=r(o[i],e))&&o[i].splice(n,1);return this},e.off=i("removeListener"),e.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},e.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},e.manipulateListeners=function(t,e,n){var r,i,o=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(r=n.length;r--;)o.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"==typeof i?o.call(this,r,i):s.call(this,r,i));return this},e.removeEvent=function(t){var e,n=typeof t,r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},e.removeAllListeners=i("removeEvent"),e.emitEvent=function(t,e){var n,r,i,o=this.getListenersAsObject(t);for(i in o)if(o.hasOwnProperty(i))for(r=o[i].length;r--;)!0===(n=o[i][r]).once&&this.removeListener(t,n.listener),n.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,n.listener);return this},e.trigger=i("emitEvent"),e.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},e.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},e._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},e._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return n.EventEmitter=originalGlobalValue,t},t}();var o,s,a=function(t,e){i(t,e,void 0===t||"function"==typeof t,"Function")},c=new e;function u(t,e){return function(n,o){var s;return r(n,"event"),i(s=n,"event","string"==typeof s||s instanceof RegExp,"String or RegExp"),r(o,"listener"),a(o,"listener"),e[t].apply(e,arguments)}}function l(t){return u("off",t)}function f(t){return u("on",t)}function p(t){return u("once",t)}function d(){o=t.prototype.get,t.prototype.get=function(t){var e=o.apply(this,arguments);return t=n(t,this.attributes).join("/"),c.trigger("get",[t,e]),this.ee.trigger("get",[t,e]),e}}return t.off=l(c),t.on=f(c),t.once=p(c),s=t.prototype.init,t.prototype.init=function(){var t;this.ee=t=new e,this.off=l(t),this.on=f(t),this.once=p(t),s.apply(this,arguments)},t._eventInit=d,d(),t})?r.apply(e,i):r)||(t.exports=o)},141:function(t,e,n){var r,i,o;
/*!
 * CLDR JavaScript Library v0.5.4 2020-10-22T15:56Z MIT license © Rafael Xavier
 * http://git.io/h4lmVg
 */i=[n(110)],void 0===(o="function"==typeof(r=function(t){var e=t._alwaysArray,n=t.prototype.init;return t.prototype.init=function(){var t,r,i;n.apply(this,arguments),this.supplemental=(t=this,(i=(r=function(n){return function(r){return r=e(r),t.get([n].concat(r))}})("supplemental")).weekData=r("supplemental/weekData"),i.weekData.firstDay=function(){return t.get("supplemental/weekData/firstDay/{territory}")||t.get("supplemental/weekData/firstDay/001")},i.weekData.minDays=function(){var e=t.get("supplemental/weekData/minDays/{territory}")||t.get("supplemental/weekData/minDays/001");return parseInt(e,10)},i.timeData=r("supplemental/timeData"),i.timeData.allowed=function(){return t.get("supplemental/timeData/{territory}/_allowed")||t.get("supplemental/timeData/001/_allowed")},i.timeData.preferred=function(){return t.get("supplemental/timeData/{territory}/_preferred")||t.get("supplemental/timeData/001/_preferred")},i)},t})?r.apply(e,i):r)||(t.exports=o)},142:function(t,e,n){var r,i,o;
/*!
 * CLDR JavaScript Library v0.5.4 2020-10-22T15:56Z MIT license © Rafael Xavier
 * http://git.io/h4lmVg
 */i=[n(110)],void 0===(o="function"==typeof(r=function(t){var e,n=t._coreLoad,r=t._jsonMerge,i=t._pathNormalize,o=t._resourceGet,s=t._validatePresence,a=t._validateTypePath,c=e=function(t,n,s,a,c){var u,l,f;if(void 0!==n&&n!==c)return u=i(s,a),void 0!==(f=o(t._resolved,u))&&"object"!=typeof f?f:(void 0===(f=o(t._raw,u))&&(l=function(t,e){var n,r;if("root"!==e)return n=i(["supplemental/parentLocales/parentLocale",e]),(r=o(t._resolved,n)||o(t._raw,n))?r:(r=e.substr(0,e.lastIndexOf(t.localeSep)))?r:"root"}(t,n),f=e(t,l,s,r(a,{bundle:l}),n)),void 0!==f&&function(t,e,n){var r,i=t,o=e.length;for(r=0;r<o-1;r++)i[e[r]]||(i[e[r]]={}),i=i[e[r]];i[e[r]]=n}(t._resolved,u,f),f)};return t._raw={},t.load=function(){t._raw=n(t,t._raw,arguments)},t.prototype.get=function(e){return s(e,"path"),a(e,"path"),c(t,this.attributes&&this.attributes.bundle||"",e,this.attributes)},t._eventInit&&t._eventInit(),t})?r.apply(e,i):r)||(t.exports=o)},143:function(t,e,n){var r;
/*!
 * Globalize v1.4.0 2018-07-17T20:38Z Released under the MIT license
 * http://git.io/TrdQbw
 */
/*!
 * Globalize v1.4.0 2018-07-17T20:38Z Released under the MIT license
 * http://git.io/TrdQbw
 */
r=function(t){var e=function(t,e){return t=t.replace(/{[0-9a-zA-Z-_. ]+}/g,function(t){return t=t.replace(/^{([^}]*)}$/,"$1"),"string"==typeof(n=e[t])?n:"number"==typeof n?""+n:JSON.stringify(n);var n})},n=function(){var t=arguments[0];return[].slice.call(arguments,1).forEach(function(e){var n;for(n in e)t[n]=e[n]}),t},r=function(t,r,i){var o;return r=t+(r?": "+e(r,i):""),(o=new Error(r)).code=t,n(o,i),o},i=function(t){return JSON.stringify(t,function(t,e){return e&&e.runtimeKey?e.runtimeKey:e})},o=function(t,e,n,i){if(!n)throw r(t,e,i)},s=function(t){return Array.isArray(t)?t:t?[t]:[]},a=function(t,e,n){var r;r=s((n=n||{}).skip).some(function(e){return e.test(t)}),o("E_MISSING_CLDR","Missing required CLDR content `{path}`.",e||r,{path:t})},c=function(t,e){o("E_MISSING_PARAMETER","Missing required parameter `{name}`.",void 0!==t,{name:e})},u=function(t,e,n,r){o("E_INVALID_PAR_TYPE","Invalid `{name}` parameter ({value}). {expected} expected.",n,{expected:r,name:e,value:t})},l=function(e,n){u(e,n,void 0===e||"string"==typeof e||e instanceof t,"String or Cldr instance")},f=function(t){return null!==t&&""+t=="[object Object]"},p=function(e){return e instanceof t?e:new t(e)};function d(t){t.once("get",a),t.get("supplemental/likelySubtags")}function h(t){if(!(this instanceof h))return new h(t);c(t,"locale"),l(t,"locale"),this.cldr=p(t),d(this.cldr)}return h.load=function(){t.load.apply(t,arguments)},h.locale=function(t){return l(t,"locale"),arguments.length&&(this.cldr=p(t),d(this.cldr)),this.cldr},h._alwaysArray=s,h._createError=r,h._formatMessage=e,h._isPlainObject=f,h._objectExtend=n,h._regexpEscape=function(t){return t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")},h._runtimeBind=function(t,e,n,r){var o=i(t),s=function(t){if(void 0!==t.name)return t.name;var e=/^function\s+([\w\$]+)\s*\(/.exec(t.toString());return e&&e.length>0?e[1]:void 0}(n),a=e.locale;return s?(n.runtimeKey=function(t,e,n,r){var o,s;return r=r||i(n),s=t+e+r,(o=[].reduce.call(s,function(t,e){return 0|(t=(t<<5)-t+e.charCodeAt(0))},0))>0?"a"+o:"b"+Math.abs(o)}(s,a,null,o),n.generatorString=function(){return'Globalize("'+a+'").'+s+"("+o.slice(1,-1)+")"},n.runtimeArgs=r,n):n},h._stringPad=function(t,e,n){var r;for("string"!=typeof t&&(t=String(t)),r=t.length;r<e;r+=1)t=n?t+"0":"0"+t;return t},h._validate=o,h._validateCldr=a,h._validateDefaultLocale=function(t){o("E_DEFAULT_LOCALE_NOT_DEFINED","Default locale has not been defined.",void 0!==t,{})},h._validateParameterPresence=c,h._validateParameterRange=function(t,e,n,r){o("E_PAR_OUT_OF_RANGE","Parameter `{name}` has value `{value}` out of range [{minimum}, {maximum}].",void 0===t||t>=n&&t<=r,{maximum:r,minimum:n,name:e,value:t})},h._validateParameterTypePlainObject=function(t,e){u(t,e,void 0===t||f(t),"Plain Object")},h._validateParameterType=u,h},t.exports=r(n(130))},146:function(t,e,n){(function(e){var n;n=function(){"use strict";var t=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return function(){function e(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n+=1){var i=r[n];t.call(e,i[1],i[0])}},Object.defineProperties(e.prototype,n),e}()}(),n="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},o=2,s=["top","right","bottom","left","width","height","size","weight"],a="undefined"!=typeof MutationObserver,c=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,s=0;function a(){n&&(n=!1,t()),r&&u()}function c(){i(a)}function u(){var t=Date.now();if(n){if(t-s<o)return;r=!0}else n=!0,r=!1,setTimeout(c,e);s=t}return u}(this.refresh.bind(this),20)};c.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},c.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},c.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},c.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},c.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},c.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},c.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e=""),s.some(function(t){return!!~e.indexOf(t)})&&this.refresh()},c.getInstance=function(){return this.instance_||(this.instance_=new c),this.instance_},c.instance_=null;var u=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n+=1){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},l=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||r},f=m(0,0,0,0);function p(t){return parseFloat(t)||0}function d(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return e.reduce(function(e,n){return e+p(t["border-"+n+"-width"])},0)}function h(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return f;var r=l(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n+=1){var i=r[n],o=t["padding-"+i];e[i]=p(o)}return e}(r),o=i.left+i.right,s=i.top+i.bottom,a=p(r.width),c=p(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==e&&(a-=d(r,"left","right")+o),Math.round(c+s)!==n&&(c-=d(r,"top","bottom")+s)),!function(t){return t===l(t).document.documentElement}(t)){var u=Math.round(a+o)-e,h=Math.round(c+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(h)&&(c-=h)}return m(i.left,i.top,a,c)}var g="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof l(t).SVGGraphicsElement}:function(t){return t instanceof l(t).SVGElement&&"function"==typeof t.getBBox};function v(t){return n?g(t)?function(t){var e=t.getBBox();return m(0,0,e.width,e.height)}(t):h(t):f}function m(t,e,n,r){return{x:t,y:e,width:n,height:r}}var y=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=t};y.prototype.isActive=function(){var t=v(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},y.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var b=function(t,e){var n,r,i,o,s,a,c,l=(r=(n=e).x,i=n.y,o=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),u(c,{x:r,y:i,width:o,height:s,top:i,right:r+o,bottom:s+i,left:r}),c);u(this,{target:t,contentRect:l})},_=function(e,n,r){if(this.activeObservations_=[],this.observations_=new t,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r};_.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new y(t)),this.controller_.addObserver(this),this.controller_.refresh())}},_.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},_.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},_.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},_.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new b(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},_.prototype.clearActive=function(){this.activeObservations_.splice(0)},_.prototype.hasActive=function(){return this.activeObservations_.length>0};var w="undefined"!=typeof WeakMap?new WeakMap:new t,O=function(t){if(!(this instanceof O))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=c.getInstance(),n=new _(t,e,this);w.set(this,n)};return["observe","unobserve","disconnect"].forEach(function(t){O.prototype[t]=function(){return(e=w.get(this))[t].apply(e,arguments);var e}}),void 0!==r.ResizeObserver?r.ResizeObserver:O},t.exports=n()}).call(this,n(17))},82:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"c",function(){return c});var r=n(1),i=n(11),o=n(5);const s=Object(o.a)({invalidator:o.g,destroy:o.c})(({middleware:{invalidator:t,destroy:e}})=>{const n=new r.b,o=new i.a;e(()=>{n.clear()});const s={get:t=>{const e=n.get(t);if(e&&"pending"!==e.status)return e.value},set:(e,r,i=!0)=>{const a=s.get(e);if("function"==typeof r&&(r=r(a))&&"function"==typeof r.then){const s=n.get(e);return n.set(e,{status:"pending",value:r}),!o.has(e)||s&&"pending"===s.status||i&&t(),void r.then(o=>{const s=n.get(e);s&&s.value===r&&(n.set(e,{status:"resolved",value:o}),i&&t())})}return n.set(e,{status:"resolved",value:r}),i&&t(),r},has:t=>n.has(t),delete:(e,r=!0)=>{n.delete(e),o.delete(e),r&&t()},clear:(e=!0)=>{n.clear(),o.clear(),e&&t()},getOrSet:(t,e,r=!0)=>{let i=n.get(t);if(i||s.set(t,e,r),(i=n.get(t))&&"pending"!==i.status)return i.value},pending:t=>{o.add(t);let e=n.get(t);return Boolean(e&&"pending"===e.status)}};return s}),a=()=>s.withType(),c=a();e.b=c},83:function(t,e,n){"use strict";var r=n(5),i=n(82),o=n(129),s=n(11),a=n(13),c=n(12),u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const l="__theme_injector";const f=Object(r.a)({invalidator:r.g,icache:i.b,diffProperty:r.d,injector:o.a,getRegistry:r.f}).properties()(({middleware:{invalidator:t,icache:e,diffProperty:n,injector:r,getRegistry:i},properties:o})=>{let f=new s.a;function p(){const{theme:t}=o();if(t)return t;const e=r.get(l);if(e){const t=e.get();if(Object(c.c)(t))return{theme:t.theme,variant:t.variant};if(t)return t.theme}}if(n("theme",o,(n,r)=>{const{changed:i}=Object(a.a)(n.theme,r.theme,3);i&&(e.clear(),t())}),n("classes",(n,r)=>{let i=!1;if(n.classes&&!r.classes||!n.classes&&r.classes)i=!0;else if(n.classes&&r.classes){const t=[...f.values()];for(let e=0;e<t.length;e++){let o=t[e];if(i=Object(a.a)(n.classes[o],r.classes[o],2).changed)break}}i&&(e.clear(),t())}),!r.get(l)){const t=i();t&&function(t,e){const n=new c.a(t);e.defineInjector(l,t=>(n.setInvalidator(t),()=>n))}(void 0,t.base)}return r.subscribe(l,()=>{e.clear(),t()}),{classes(t){const n=e.get(t);if(n)return n;const r=" _key",i=t[r],s=u(t,[r+""]);f.add(i);let a=s,{classes:l}=o(),d=p();if(d&&Object(c.d)(d)&&(d=Object(c.e)(d.theme)?d.theme.theme:d.theme),d&&d[i]&&(a=Object.assign({},a,d[i])),l&&l[i]){const t=Object.keys(l[i]);for(let e=0;e<t.length;e++){const n=t[e];a[n]&&(a[n]=`${a[n]} ${l[i][n].join(" ")}`)}}return e.set(t,a,!1),a},variant(){const t=p();if(t&&Object(c.d)(t))return t.variant.value.root},set:function(t,e){const n=r.get(l);n&&(Object(c.e)(t)?n.set(t,e):n.set(t))},get(){const t=r.get(l);if(t)return t.get()}}});e.a=f},86:function(t,e,n){"use strict";n.d(e,"b",function(){return a});var r=n(0),i=n(5),o=n(82);const s=Object(o.a)(),a=Object(i.a)({icache:s,diffProperty:i.d,node:i.k,destroy:i.c,invalidator:i.g}).properties()(({middleware:{icache:t,diffProperty:e,node:n,destroy:i,invalidator:o}})=>{let s,a=!1,c=0;const u=new Set;function l(){const t=r.a.document.activeElement;(u.has(s)||u.has(t))&&s!==t&&o(),s=t}return e("focus",(e,n)=>{if(n.focus&&n.focus()){const e=t.getOrSet("current",0);t.set("current",e+1)}}),i(()=>{r.a.document.removeEventListener("focusin",l),r.a.document.removeEventListener("focusout",l),u.clear()}),{shouldFocus(){const e=t.get("current")||0,n=e!==c;return c=e,n},focus(){const e=t.getOrSet("current",0);t.set("current",e+1)},isFocused(t){const e=n.get(t);return!!e&&(u.add(e),a||(r.a.document.addEventListener("focusin",l),r.a.document.addEventListener("focusout",l),a=!0),r.a.document.activeElement===e)}}});e.a=a},88:function(t,e,n){"use strict";n.d(e,"b",function(){return l});var r=n(5);const i=Object(r.a)({node:r.k}),o={height:0,left:0,top:0,width:0},s={height:0,left:0,top:0,width:0},a={bottom:0,left:0,right:0,top:0},c={height:0,left:0,top:0,width:0},u={width:0,height:0},l=i(({middleware:{node:t}})=>({get(e){const n=t.get(e);if(!n)return{client:Object.assign({},o),offset:Object.assign({},s),position:Object.assign({},a),scroll:Object.assign({},c),size:Object.assign({},u)};const r=n.getBoundingClientRect();return{client:{height:n.clientHeight,left:n.clientLeft,top:n.clientTop,width:n.clientWidth},offset:{height:n.offsetHeight,left:n.offsetLeft,top:n.offsetTop,width:n.offsetWidth},position:{bottom:r.bottom,left:r.left,right:r.right,top:r.top},scroll:{height:n.scrollHeight,left:n.scrollLeft,top:n.scrollTop,width:n.scrollWidth},size:{width:r.width,height:r.height}}}}));e.a=l},91:function(t,e,n){"use strict";n.d(e,"d",function(){return r}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"a",function(){return s});function r(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&(n[r[i]]=t[r[i]])}return n}function i(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function o(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function s(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(s,a)}c((r=r.apply(t,e||[])).next())})}},96:function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"c",function(){return l}),n.d(e,"d",function(){return f}),n.d(e,"a",function(){return p});var r=n(5);Array.prototype.slice;const i=Object.prototype.hasOwnProperty;function o(t){return"[object Object]"===Object.prototype.toString.call(t)}function s(t,e){return t.map(function(t){return Array.isArray(t)?s(t,e):o(t)?a({deep:!0,inherited:e,sources:[t],target:{}}):t})}function a(t){const e=t.deep,n=t.inherited,r=t.target,c=t.copied||[],u=[...c];for(let l=0;l<t.sources.length;l++){const f=t.sources[l];if(null!=f)for(let t in f)if(n||i.call(f,t)){let i=f[t];if(-1!==u.indexOf(i))continue;if(e)if(Array.isArray(i))i=s(i,n);else if(o(i)){const e=r[t]||{};c.push(f),i=a({deep:!0,inherited:n,sources:[i],target:e,copied:c})}r[t]=i}}return r}function c(t,...e){return a({deep:!0,inherited:!1,sources:e,target:t})}function u(t,e){const n=Date.now();let r;return r=setTimeout(function i(){const o=Date.now()-n;null==e||o>=e?t():r=setTimeout(i,e-o)},e),{destroy:()=>{null!=r&&(clearTimeout(r),r=null)}}}function l(t,e){let n;return function(){if(n)return;n=!0;let r=arguments;t.apply(this,r),u(function(){n=null},e)}}function f(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function p(t,e,n){let i,o=!1;"function"==typeof e?i=e:(i=e.modifier,n=e.predicate,o=e.shallow||!1);let s=Array.isArray(t)?[...t]:[t];function a(){s=[]}for(;s.length;){const t=s.shift();t&&!0!==t&&(!o&&(Object(r.j)(t)||Object(r.i)(t))&&t.children&&(s=[...s,...t.children]),n&&!n(t)||i(t,a))}return t}},98:function(t,e,n){"use strict";n.d(e,"b",function(){return f}),n.d(e,"a",function(){return j});var r=n(11),i=n(1),o=n(5),s=n(82),a=n(13),c=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function u({requestId:t,orderId:e}){return`${t}/${e}`}class l{constructor(){this._subscriberCounter=1,this._rawCache=new i.b,this._syntheticIdToIdMap=new i.b,this._idToSyntheticIdMap=new i.b,this._syntheticIdToSubscriberMap=new i.b,this._subscriberMap=new i.b}subscribe(t,e){const n=`${this._subscriberCounter++}`;t.forEach(t=>{const e=u(t);let i=this._syntheticIdToSubscriberMap.get(e);i||(i=new r.a),i.add(n),this._syntheticIdToSubscriberMap.set(e,i)}),this._subscriberMap.set(n,{syntheticIds:t,invalidator:e,refs:new r.a(t.map(u))})}notify(t){const e=u(t),n=this._syntheticIdToSubscriberMap.get(e);n&&[...n].forEach(t=>{const n=this._subscriberMap.get(t);if(n){n.refs.delete(e),0===n.refs.size&&(n.invalidator(),this._subscriberMap.delete(t));const r=this._syntheticIdToSubscriberMap.get(e);r.delete(n),this._syntheticIdToSubscriberMap.set(e,r)}})}get(t){const e=u(t),n=this._syntheticIdToIdMap.get(e);if(n)return"resolved"===n.status?this._rawCache.get(n.id):{status:n.status,mtime:Date.now(),value:void 0,stale:n.stale}}delete(t){this._idToSyntheticIdMap.delete(t),this._rawCache.delete(t)}invalidate(){this._rawCache.forEach((t,e)=>{this._rawCache.set(e,Object.assign({},t,{stale:!0}))}),this._syntheticIdToIdMap.forEach((t,e)=>{this._syntheticIdToIdMap.set(e,Object.assign({},t,{stale:!0}))})}addSyntheticId(t,e="pending"){this._syntheticIdToIdMap.set(u(t),{id:null,status:e})}getSyntheticIds(t){const e=this._idToSyntheticIdMap.get(t);return e?[...e.values()]:[]}orphan(t){const e=u(t);this.notify(t),this._syntheticIdToIdMap.set(e,{id:null,status:"orphaned"})}set(t,e,n){const r=u(t),o=e.value[n];this._syntheticIdToIdMap.set(r,{id:o,status:"resolved"});const s=this._idToSyntheticIdMap.get(o)||new i.b;s.set(t.requestId,t),this._idToSyntheticIdMap.set(o,s),this._rawCache.set(o,Object.assign({},e,{stale:!1})),this.notify(t)}}function f(t,e){return"function"==typeof(e=e||t)?t=>({template:{template:e,templateOptions:t}}):"string"==typeof e?f(({data:t})=>({idKey:e,read:(e,{put:n})=>{const{query:r,offset:i}=e,o=Object.keys(r).length?t.filter(t=>t&&function(t,e,n="contains"){const r=Object.keys(t);for(let i=0;i<r.length;i++){const o=r[i],s=t[r[i]];if(s){let t=!0;if(!(t="string"==typeof e[o]&&"string"==typeof s&&"exact"!==n?"contains"===n?-1!==e[o].toLowerCase().indexOf(s.toLowerCase()):0===e[o].toLowerCase().indexOf(s.toLowerCase()):s===e[o]))return!1}}return!0}(r,t,"contains")):t;n({data:o.slice(i),total:o.length},e)}})):{template:{template:()=>e,templateOptions:{}}}}const p=Object(o.a)({invalidator:o.g,destroy:o.c,diffProperty:o.d,icache:s.b}).properties(),d=new i.b,h=new i.b,g=new i.b;let v=0;function m(t){return Boolean(t&&t.template&&"function"==typeof t.template)}function y(t){return Boolean(t&&t.template&&"function"==typeof t.template.template)}function b(t,e){if(Array.isArray(e))return[...e].reverse().reduce((t,e)=>b(t,e),Object.assign({},t));const n=Object.keys(t);let r={};for(let i=0;i<n.length;i++){const o=n[i];r[e[o]||o]=t[o]}return r}function _(t,e){if(!e||!t)return t;if(Array.isArray(e))return e.reduce((t,e)=>_(t,e),Object.assign({},t));let n={},r=[];return Object.keys(e).forEach(i=>{const o=e[i];n=Object.assign({},n,{[i]:t[o]}),r.push(o)}),Object.keys(t).filter(t=>-1===r.indexOf(t)).forEach(e=>{n=Object.assign({},n,{[e]:t[e]})}),n}function w(t){if(void 0===t)throw new Error("Resource template cannot be undefined.");m(t)||(t=t.template);const e=d.get(t.template)||new i.b;d.set(t.template,e);const n=JSON.stringify(t.templateOptions);let o=e.get(n);return o||(o={raw:new l,requestCache:new i.b,instance:t.template(t.templateOptions),invalidators:new r.a},e.set(n,o)),o}const O=p(({id:t,properties:e,middleware:{invalidator:n,destroy:o,diffProperty:s,icache:u}})=>{const l=u.getOrSet("uuid",`${++v}`),p=[];s("resource",e,({resource:t},{resource:e})=>{if(e){if(t&&t.options===e.options&&t.template===e.template||n(),e.options){const t=g.get(e.options);if(t){const e=h.get(t);e&&!e.subscribers.has(n)&&(e.subscribers.add(n),p.push(()=>{e.subscribers.delete(n)}))}}if(t||e.template){if(t&&!e.template){const n=e,{template:r,options:i,idKey:o}=n,s=c(n,["template","options","idKey"]);e.template={template:t.template.template,templateOptions:s}}}else{const t=e,{template:n,options:r,idKey:i}=t,o=c(t,["template","options","idKey"]),s=f(i);e.template=s(o).template}return e}}),o(()=>{p.forEach(t=>t())});const d=t=>{if(!t||!t.template)throw new Error("Resource cannot be undefined");if(m(t))return{template:{template:Object.assign({},t),transform:t.transform}};let e=t.transform,n=t.template.transform;return n&&(e?(n=Array.isArray(n)?n:[n],e=[...n,e]):e=n),y(t)?{template:Object.assign({},t,{transform:e}),options:t.options,transform:e}:{template:Object.assign({},t.template,{transform:e}),options:t.options,transform:e}};function O(e,i=l){const o=h.get(i);if(o)return o.setter;const s={options:{},subscribers:new r.a,setter:t=>t};function c(t){if(!t)return s.subscribers.add(n),{offset:s.options.offset||0,size:s.options.size||30,query:s.options.query||{}};const r=e(s.options,t);return Object(a.a)(r,s.options,5).changed&&(s.options=r,s.subscribers.forEach(t=>{t()})),{offset:s.options.offset||0,size:s.options.size||30,query:s.options.query||{}}}return s.subscribers.add(n),c({}),p.push(()=>{h.delete(t)}),s.setter=c,h.set(i,s),g.set(c,i),p.push(()=>g.delete(c)),c}return d.createOptions=O,d.template=function(t){const{instance:e,raw:r,invalidators:o,requestCache:s}=w(t),a=Object.keys(e).filter(t=>"function"==typeof e[t]);let c;return y(t)&&t.transform&&(c=t.transform),{template:a.reduce((t,n)=>(t[n]=(t=>{e[n](t,{put:(t,n)=>{if(Array.isArray(t))t.forEach(t=>{const n=t[e.idKey],i=r.getSyntheticIds(n);r.invalidate(),i.forEach(n=>{r.set(n,{value:t,status:"resolved",mtime:Date.now()},e.idKey)}),o.forEach(t=>t())});else{const{offset:i,query:o,size:a}=n,u=c?b(o,c):o,l=[];for(let t=0;t<i+a-i;t++)l.push({requestId:JSON.stringify(u),orderId:`${i+t}`});t.data.forEach((t,n)=>{const o=l.shift()||{requestId:JSON.stringify(u),orderId:`${i+n}`};r.set(o,{value:t,status:"resolved",mtime:Date.now()},e.idKey)}),l.forEach(t=>r.orphan(t));const f=s.get(JSON.stringify(u));f&&(f.total=t.total,s.set(JSON.stringify(u),f))}},del:t=>{r.invalidate(),o.forEach(t=>t()),t.forEach(t=>{r.delete(t[e.idKey])})},get:t=>{if(Array.isArray(t))return t.map(t=>{const[e]=r.getSyntheticIds(t);if(e){const t=r.get(e);if(t)return t.value}});let e=[];const{offset:n,size:i,query:o}=t,s=n+i;for(let t=0;t<s-n;t++){const i=r.get({requestId:JSON.stringify(o),orderId:`${n+t}`});if(!i||"pending"===i.status)return;i&&"resolved"===i.status&&e.push(_(i.value,c))}return e}})}),t),{}),createOptions:O,get:function(r,o={}){const s=w(t),{raw:a,requestCache:c,invalidators:u}=s;if(Array.isArray(r))return r.map(t=>{const[e]=a.getSyntheticIds(t);if(e){const t=a.get(e);if(t)return t.value}});const{meta:l=!1,read:f}=o;f&&!u.has(n)&&(u.add(n),p.push(()=>{u.delete(n)}));let d,{size:h,offset:g,query:v}=r;y(t)&&t.transform&&(v=b(v,d=t.transform));const m=g+h,O=JSON.stringify(r),j=JSON.stringify(v);let E=c.get(j)||{inflightMap:new i.b,total:void 0};const A=E.inflightMap.get(O)||!1;if(!o.meta&&A)return;const S=[],x=[];let M=[],I=!1,P=!1;if(!f){let t=[],e="read";for(let n=0;n<m-g;n++){const r=a.get({requestId:j,orderId:`${g+n}`});if(l)if(r){const n="resolved"===r.status?"read":"reading";"read"===e&&"reading"===n&&(e="reading"),t.push({value:_(r.value,d),status:n})}else e="unread",t.push({value:void 0,status:"unread"});else r&&"resolved"===r.status?t.push(_(r.value,d)):t.push(void 0)}return l?{data:t,meta:{status:e,total:E.total}}:t}let z=[];for(let t=0;t<m-g;t++){const n={requestId:j,orderId:`${g+t}`},r=a.get(n);S.push(n),r?r.stale?(M.push(n),r.value&&"resolved"===r.status?a.set(n,Object.assign({},r,{stale:!1}),e.idKey):"orphaned"===r.status&&a.addSyntheticId(n,r.status),I=!0,x.length&&(P=!0),z.push(r)):"resolved"===r.status?(x.length&&(P=!0,I=!0),z.push(r)):"pending"===r.status?(M.push(n),x.length&&(P=!0,I=!0),z.push(r)):(z.push(r),x.push(n)):(M.push(n),a.addSyntheticId(n),z.push({status:"pending",mtime:Date.now(),value:void 0}),I=!0)}if(P&&(M=[...M,...x],x.forEach(t=>{a.addSyntheticId(t)})),M.length&&a.subscribe(M,()=>{n()}),I&&(E.inflightMap.set(O,!0),c.set(j,E),o.read&&o.read({size:h,offset:g,query:v}),E.inflightMap.set(O,!1),c.set(j,E),!E.inflightMap.get(O))){z=[];for(let t=0;t<S.length;t++){const e=S[t],n=a.get(e);n&&"orphaned"!==n.status&&z.push(n)}}if(P||(z=z.filter(t=>"orphaned"!==t.status)),o.meta){let t="read";return{data:z.map(e=>{let n="read";return"resolved"!==e.status&&(n="reading"),"read"===t&&"reading"===n&&(t="reading"),{value:_(e.value,d),status:n}}),meta:{status:t,total:E.total}}}const k=z.filter(t=>"pending"!==t.status).map(t=>_(t.value,d));return z.length===k.length?k:void 0}}},d});function j(){return O.withType()}}}]);
//# sourceMappingURL=common-8.0.0-beta.12.js.map