textbrowser 0.54.3 → 0.54.4
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/CHANGES.md +4 -0
- package/dist/WorkInfo-es.js +4 -4
- package/dist/index-es.js +4 -4
- package/dist/index-es.min.js +1 -1
- package/package.json +2 -1
package/CHANGES.md
CHANGED
package/dist/WorkInfo-es.js
CHANGED
|
@@ -9,8 +9,8 @@ function requireDist () {
|
|
|
9
9
|
hasRequiredDist = 1;
|
|
10
10
|
(function (module, exports) {
|
|
11
11
|
(function (global, factory) {
|
|
12
|
-
|
|
13
|
-
})(dist, (function () {
|
|
12
|
+
factory(exports) ;
|
|
13
|
+
})(dist, (function (exports) {
|
|
14
14
|
function _arrayLikeToArray(r, a) {
|
|
15
15
|
(null == a || a > r.length) && (a = r.length);
|
|
16
16
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
@@ -152,11 +152,11 @@ function requireDist () {
|
|
|
152
152
|
|
|
153
153
|
var getJSON = buildGetJSONWithFetch();
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
exports.getJSON = getJSON;
|
|
156
156
|
|
|
157
157
|
}));
|
|
158
158
|
|
|
159
|
-
} (dist$1));
|
|
159
|
+
} (dist$1, dist$1.exports));
|
|
160
160
|
return dist$1.exports;
|
|
161
161
|
}
|
|
162
162
|
|
package/dist/index-es.js
CHANGED
|
@@ -9,8 +9,8 @@ function requireDist$1 () {
|
|
|
9
9
|
hasRequiredDist$1 = 1;
|
|
10
10
|
(function (module, exports) {
|
|
11
11
|
(function (global, factory) {
|
|
12
|
-
|
|
13
|
-
})(dist$2, function () {
|
|
12
|
+
factory(exports) ;
|
|
13
|
+
})(dist$2, function (exports) {
|
|
14
14
|
|
|
15
15
|
function _arrayLikeToArray(r, a) {
|
|
16
16
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -151,9 +151,9 @@ function requireDist$1 () {
|
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
var getJSON = buildGetJSONWithFetch();
|
|
154
|
-
|
|
154
|
+
exports.getJSON = getJSON;
|
|
155
155
|
});
|
|
156
|
-
} (dist$3));
|
|
156
|
+
} (dist$3, dist$3.exports));
|
|
157
157
|
return dist$3.exports;
|
|
158
158
|
}
|
|
159
159
|
|
package/dist/index-es.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e,t={exports:{}};var n=(e||(e=1,t.exports=function(){function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(t){if(Array.isArray(t))return e(t)}function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e){return t(e)||n(e)||i(e)||r()}function i(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}function a(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}function s(e,t){var n=e();return n&&n.then?n.then(t):t(n)}function u(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function c(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).fetch,t=void 0===e?"undefined"!=typeof window?window.fetch:self.fetch:e;return function e(n,r,i){try{var c=!1;return a(u((function(){return s((function(){if(Array.isArray(n))return a(Promise.all(n.map((function(t){return e(t)}))),(function(e){return r&&r.apply(void 0,o(e)),c=!0,e}))}),(function(e){return c?e:a(t(n),(function(e){return a(e.json(),(function(e){return"function"==typeof r?r(e):e}))}))}))}),(function(e){var t=e;if(t.message+=" (File: ".concat(n,")"),i)return i(t,n);throw t})))}catch(e){return Promise.reject(e)}}}return c()}()),t.exports);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(){a=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=new RegExp(e,r);return t.set(i,o||t.get(e)),d(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return f(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},a.apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var _=globalThis.jsonExtra,x=function(e){return e.replace(/\\+/g,(function(e){return e.slice(0,e.length/2)}))},S=function(e){return _.parse("{"+(e||"").replace(/^\{/,"").replace(/\}$/,"")+"}")},j=function(e,t,n){var r,o=n.onMatch,i=n.extra,a=n.betweenMatches,s=n.afterMatch,u=n.escapeAtOne,c=0;if(i&&(a=i,s=i,u=i),!a||!s)throw new Error("You must have `extra` or `betweenMatches` and `afterMatch` arguments.");for(;null!==(r=e.exec(t));){var l=g(r,2),f=l[0],p=l[1],d=e.lastIndex,h=d-f.length;h>c&&a(t.slice(c,h)),u&&p.length%2?(c=d,u(f)):(o.apply(void 0,y(r)),c=d)}c!==t.length&&s(t.slice(c))},E="undefined"!=typeof fetch?fetch:null,k=function(){return E},O="undefined"!=typeof document?document:null,A=function(){return O};var F=function(e,t,n){return t.sort(new Intl.Collator(e,n).compare)},I=function(e,t,n){return new Intl.ListFormat(e,n).format(t)},D=function(e,t,n,r,o){if("function"!=typeof n)return function(e,t,n,r){return F(e,t,r),I(e,t,n)}(e,t,n,r);F(e,t,o);var i,a=(i=Date.now(),"undefined"!=typeof performance&&"function"==typeof performance.now&&(i+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Math.trunc((i+16*Math.random())%16);return i=Math.floor(i/16),("x"===e?t:3&t|8).toString(16)}))),s=y(t).map((function(e,t){return"<<".concat(a).concat(t,">>")})),u=[],c=function(e){u.push(e)};j(new RegExp("<<".concat(a,"(\\d)>>"),"gu"),I(e,s,r),{betweenMatches:c,afterMatch:c,onMatch:function(e,r){c(n(t[Number(r)],Number(r)))}});var l=A().createDocumentFragment();return l.append.apply(l,u),l},N=function(e){var t=e.object;if(Array.isArray(t)){if("function"==typeof t[1]){var n=g(t,4);return{value:n[0],callback:n[1],options:n[2],extraOpts:n[3]}}var r=g(t,3);return{value:r[0],options:r[1],extraOpts:r[2]}}return{value:t}},P=function(e){var t=e.value,n=e.arg;e.key;var r,a=e.locale;if("string"==typeof t||t&&"object"===i(t)&&"nodeType"in t)return t;var s=function(e){var t=e.type,i=e.options,a=void 0===i?r:i,s=e.checkArgOptions,u=void 0!==s&&s;if("string"==typeof n){var c=g(n.split("|"),3),l=c[0],f=c[1],p=c[2];"DATE"===l&&(l="DATETIME"),l===t&&(f?u&&!p||(a=o(o({},a),S(u&&p?p:f))):a={})}return a},u=!1;if(t&&"object"===i(t)&&!Array.isArray(t)){var c=Object.keys(t)[0];if(["number","date","datetime","dateRange","datetimeRange","relative","region","language","script","currency","list","plural"].includes(c)){var l,f,p=t[c],d=N({object:p});switch(t=d.value,r=d.options,l=d.extraOpts,f=d.callback,c){case"date":case"datetime":u=!0;break;case"dateRange":case"datetimeRange":var h=new Intl.DateTimeFormat(a,s({type:"DATERANGE",options:l}));return h.formatRange.apply(h,y([t,r].map((function(e){return"number"==typeof e?new Date(e):e}))));case"region":case"language":case"script":case"currency":return new Intl.DisplayNames(a,o(o({},s({type:c.toUpperCase()})),{},{type:c})).of(t);case"relative":var v=[r,l];return l=v[0],r=v[1],new Intl.RelativeTimeFormat(a,s({type:"RELATIVE"})).format(t,l);case"list":return f?D(a,t,f,s({type:"LIST"}),s({type:"LIST",options:l,checkArgOptions:!0})):D(a,t,s({type:"LIST"}),s({type:"LIST",options:l,checkArgOptions:!0}))}}}if(t&&("number"==typeof t&&(u||/^DATE(?:TIME)(?:\||$)/.test(n))&&(t=new Date(t)),"object"===i(t)&&"getTime"in t&&"function"==typeof t.getTime))return new Intl.DateTimeFormat(a,s({type:"DATETIME"})).format(t);if(Array.isArray(t)){var m,b=t[2];return(m=new Intl.DateTimeFormat(a,s({type:"DATERANGE",options:b}))).formatRange.apply(m,y(t.slice(0,2).map((function(e){return"number"==typeof e?new Date(e):e}))))}if("number"==typeof t)return new Intl.NumberFormat(a,s({type:"NUMBER"})).format(t);throw new TypeError("Unknown formatter")},T=c((function e(){s(this,e)})),C=function(e){var t=e.key,n=e.body,r=e.type,o=e.messageStyle,i=H({messageStyle:void 0===o?"richNested":o})({body:n},t);if(!i)throw new Error("Key value not found for ".concat(r," key: (").concat(t,")"));return i.value},$=function(e){f(n,T);var t=v(n);function n(e){var r;return s(this,n),(r=t.call(this)).locals=e,r}return c(n,[{key:"getSubstitution",value:function(e){return C({key:e.slice(1),body:this.locals,type:"local"})}},{key:"isMatch",value:function(e){var t=e.slice(1).split("."),n=this.locals;return this.constructor.isMatchingKey(e)&&t.every((function(e){var t=e in n;return n=n[e],t}))}}],[{key:"isMatchingKey",value:function(e){return e.startsWith("-")}}]),n}(),L=function(e){f(n,T);var t=v(n);function n(e){var r;return s(this,n),(r=t.call(this)).substitutions=e,r}return c(n,[{key:"isMatch",value:function(e){return this.constructor.isMatchingKey(e)&&e in this.substitutions}}],[{key:"isMatchingKey",value:function(e){return/^[0-9A-Z_a-z]/.test(e)}}]),n}(),R=function(e){f(n,T);var t=v(n);function n(e,r){var o,i=r.substitutions;return s(this,n),(o=t.call(this)).switches=e,o.substitutions=i,o}return c(n,[{key:"getSubstitution",value:function(e,t){var n,r,a=t.locale,s=t.usedKeys,u=t.arg,c=t.missingSuppliedFormatters,l=this.constructor.getKey(e).slice(1),f=g(this.getMatch(l),3),p=f[0],d=f[1],h=f[2];if(s.push(h),p&&p.includes("|")){var v=g(p.split("|"),3);n=v[1],r=v[2]}if(!d)return c({key:e,formatter:this}),"\\{"+e+"}";var y=function(e,t){var n=S(r);return new Intl.NumberFormat(a,o(o({},t),n)).format(e)},m=function(e,t){var n=S(r);return new Intl.PluralRules(a,o(o({},t),n)).select(e)},b=this.substitutions[h],w=b;if("number"==typeof b)switch(n){case"NUMBER":w=y(b);break;case"PLURAL":w=m(b);break;default:w=new Intl.PluralRules(a).select(b)}else if(b&&"object"===i(b)){var _=Object.keys(b)[0];if(["number","plural"].includes(_)){var x=N({object:b[_]}),j=x.value,E=x.options;if(n||(n=_.toUpperCase()),!(_.toUpperCase()===n))throw new TypeError('Expecting type "'.concat(n.toLowerCase(),'"; instead found "').concat(_,'".'));switch(n){case"NUMBER":w=y(j,E);break;case"PLURAL":w=m(j,E)}}}var k="richNested",O=function(e){return e.replace(/\\/g,"\\\\").replace(/\./g,"\\.")};try{return C({messageStyle:k,key:w?O(w):u,body:d,type:"switch"})}catch(e){try{return C({messageStyle:k,key:"*"+O(w),body:d,type:"switch"})}catch(e){var A=Object.keys(d).find((function(e){return e.startsWith("*")}));if(!A)throw new Error("No defaults found for switch ".concat(l));return C({messageStyle:k,key:O(A),body:d,type:"switch"})}}}},{key:"isMatch",value:function(e){return Boolean(e&&this.constructor.isMatchingKey(e)&&this.getMatch(e.slice(1)).length)}},{key:"getMatch",value:function(e){var t=this,n=e.split(".");return n.reduce((function(r,o,i){if(i<n.length-1){if(!(o in r))throw new Error('Switch key "'.concat(o,'" not found (from "~').concat(e,'")'));return r[o]}var a=Object.entries(r).find((function(e){var n=g(e,1)[0];return o===t.constructor.getKey(n)}));return a?[].concat(y(a),[o]):[]}),this.switches)}}],[{key:"isMatchingKey",value:function(e){return e.startsWith("~")}},{key:"getKey",value:function(e){var t=e.match(/^(?:[\0-\{\}-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*/);return t&&t[0]}}]),n}();function M(e,t,n){if(!e.s){if(n instanceof U){if(!n.s)return void(n.o=M.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(M.bind(null,e,t),M.bind(null,e,2));e.s=t,e.v=n;var r=e.o;r&&r(e)}}var U=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{M(r,1,i(this.v))}catch(e){M(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?M(r,1,t?t(o):o):n?M(r,1,n(o)):M(r,2,o)}catch(e){M(r,2,e)}},r},e}();function z(e){return e instanceof U&&1&e.s}var B=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Reached end of values array.";if(!Array.isArray(e))throw new TypeError("The `values` argument to `promiseChainForValues` must be an array.");if("function"!=typeof t)throw new TypeError("The `errBack` argument to `promiseChainForValues` must be a function.");return(n=function(){var n,o,i,a,s=!1,u=Promise.reject(new Error("Intentionally reject so as to begin checking chain"));return i=function(e,t,n){for(var r;;){var o=e();if(z(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!z(i)){r=1;break}i=i.s}}var a=new U,s=M.bind(null,a,2);return(0===r?o.then(c):1===r?i.then(u):(void 0).then((function(){(o=e())?o.then?o.then(c).then(void 0,s):c(o):M(a,1,i)}))).then(void 0,s),a;function u(t){i=t;do{if(!(o=e())||z(o)&&!o.v)return void M(a,1,i);if(o.then)return void o.then(c).then(void 0,s);z(i=n())&&(i=i.v)}while(!i||!i.then);i.then(u).then(void 0,s)}function c(e){e?(i=n())&&i.then?i.then(u).then(void 0,s):u(i):M(a,1,i)}}((function(){return!s}),0,(function(){var i=e.shift();return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){return function(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}(u,(function(e){n=e,s=!0}))}),(function(){if(o)throw new Error(r);e.length||(o=!0),u=t(i)}))})),a=function(e){return n},i&&i.then?i.then(a):a(i)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(n.apply(this,e))}catch(e){return Promise.reject(e)}})()},q=function(e,t){if("string"!=typeof e)throw new TypeError("`defaultLocaleResolver` expects a string `localesBasePath`.");if("string"!=typeof t)throw new TypeError("`defaultLocaleResolver` expects a string `locale`.");if(/[\.\/\\]/.test(t))throw new TypeError("Locales cannot use file-reserved characters, `.`, `/` or `\\`");return"".concat(e.replace(/\/$/,""),"/_locales/").concat(t,"/messages.json")},W=function(e){var t=e.string,n=e.dom,r=e.usedKeys,a=e.substitutions,s=e.allSubstitutions,u=e.locale,c=e.locals,l=e.switches,f=e.maximumLocalNestingDepth,p=void 0===f?3:f,d=e.missingSuppliedFormatters,h=e.checkExtraSuppliedFormatters;if("number"!=typeof p)throw new TypeError("`maximumLocalNestingDepth` must be a number.");var v=function(){Object.entries(a).forEach((function(e){var t=g(e,2),n=t[0];"function"==typeof t[1]&&r.push(n)}))};v();var m=new $(c),b=new L(a),w=new R(l,{substitutions:a}),_=/(\\*)\{((?:(?:[\0-\|~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|\\\})*?)(?:(\|)((?:[\0-\|~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*))?\}/g;s&&(s=Array.isArray(s)?s:[s]);var E=function(e){var t,n=e.key,o=e.arg,i=e.substs;return m.constructor.isMatchingKey(n)?t=m.getSubstitution(n):w.constructor.isMatchingKey(n)?t=w.getSubstitution(n,{locale:u,usedKeys:r,arg:o,missingSuppliedFormatters:d}):"function"==typeof(t=i[n])&&(t=t({arg:o,key:n})),s?t=s.reduce((function(e,t){return t({value:e,arg:o,key:n,locale:u})}),t):o&&/^(?:NUMBER|DATE(?:TIME|RANGE|TIMERANGE)?|REGION|LANGUAGE|SCRIPT|CURRENCY|RELATIVE|LIST)(?:\||$)/.test(o)&&(t=P({value:t,arg:o,key:n,locale:u})),t},k=1,O=function(e){var t=e.substitution,n=e.ky,r=e.arg,i=e.processSubsts,s=t;if("string"==typeof t&&t.includes("{")){if(k++>p)throw new TypeError("Too much recursion in local variables.");if(m.constructor.isMatchingKey(n)){var u,c=a;r&&(u=S(r),c=o(o({},a),u)),s=i({str:t,substs:c,formatter:m}),u&&h({substitutions:u})}else w.constructor.isMatchingKey(n)&&(s=i({str:t}))}return s};if(!n){var A=!1,F=function e(t){var n=t.str,o=t.substs,s=void 0===o?a:o,u=t.formatter,c=void 0===u?b:u;return n.replace(_,(function(t,n,o,a,u){if(n.length%2)return t;if(d({key:o,formatter:c}))return t;var l=E({key:o,arg:u,substs:s});return l=O({substitution:l,ky:o,arg:u,processSubsts:e}),A=A||null!==l&&"object"===i(l)&&"nodeType"in l,r.push(o),n+l}))}({str:t});if(!A)return h({substitutions:a}),r.length=0,v(),x(F);r.length=0,v()}k=1;var I=function e(t){var n=t.str,o=t.substs,s=void 0===o?a:o,u=t.formatter,c=void 0===u?b:u,l=[],f=new RegExp(_,"gu"),p=function(){l.push.apply(l,arguments)};return j(f,n,{extra:p,onMatch:function(t,n,o,a,u){if(d({key:o,formatter:c}))p(t);else{n.length&&p(n);var l=E({key:o,arg:u,substs:s});l=O({substitution:l,ky:o,arg:u,processSubsts:e}),Array.isArray(l)?p.apply(void 0,y(l)):l&&"object"===i(l)&&"nodeType"in l?p(l.cloneNode(!0)):p(l)}r.push(o)}}),l}({str:t});return h({substitutions:a}),r.length=0,I.map((function(e){return"string"==typeof e?x(e):e}))};function V(e,t){if(Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))&&"string"==typeof t&&t.endsWith("Nested"))return e.map((function(e){return e.replace(a(/(\\+)/g,{backslashes:1}),"\\$<backslashes>").replace(/\./g,"\\.")})).join(".");if("string"!=typeof e)throw new TypeError("`key` is expected to be a string (or array of strings for nested style)");return e}var H=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).messageStyle,t=void 0===e?"richNested":e;return"function"==typeof t?t:"richNested"===t?function(e,t){var n=e&&"object"===i(e)&&e.body,r=[],o=function(e){r.length||(r[0]=""),r[r.length-1]+=e};j(/(\\*)\./g,t,{extra:o,onMatch:function(e,t){o(t),r.push("")}});var a=r.map((function(e){return x(e)})),s=!1,u=n;return a.some((function(e,t,n){return!u||"object"!==i(u)||(t===n.length-1&&e in u&&u[e]&&"object"===i(u[e])&&"message"in u[e]&&"string"==typeof u[e].message&&(s={value:u[e].message,info:u[e]}),u=u[e],!1)})),s}:"rich"===t?function(e,t){var n=e&&"object"===i(e)&&e.body;return!!(n&&"object"===i(n)&&t in n&&n[t]&&"object"===i(n[t])&&"message"in n[t]&&"string"==typeof n[t].message)&&{value:n[t].message,info:n[t]}}:"plain"===t?function(e,t){var n=e&&"object"===i(e)&&e.body;return!!(n&&"object"===i(n)&&t in n&&n[t]&&"string"==typeof n[t])&&{value:n[t]}}:"plainNested"===t?function(e,t){var n=e&&"object"===i(e)&&e.body;if(n&&"object"===i(n)){var r=t.split(/(?<!\\)\./).reduce((function(e,t){return e&&"object"===i(e)&&e[t]?e[t]:null}),n);if(r&&"string"==typeof r)return{value:r}}return!1}:function(){throw new TypeError("Unknown `messageStyle` ".concat(t))}()};function J(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}function K(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}var G=function(e){if(!e.includes("-"))throw new Error("Locale not available");return e.replace(/\x2D(?:[\0-,\.-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*$/,"")},Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.locales,n=e.defaultLocales,r=e.localeResolver,o=e.localesBasePath,i=e.localeMatcher;return X({locales:t,defaultLocales:n,localeResolver:r,localesBasePath:o,localeMatcher:i})},X=K((function(e){var t=K((function(e){if("string"!=typeof e)throw new TypeError("Non-string locale type");var n=s(c,e);if("string"!=typeof n)throw new TypeError("`localeResolver` expected to resolve to (URL) string.");return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){var t=k();return J(d?t(n,{method:"HEAD"}):t(n),(function(t){if(404===t.status)throw new Error("Trying again");return d?e:J(t.json(),(function(t){return{locale:e,strings:t}}))}))}),(function(n){if("SyntaxError"===n.name)throw n;return J(f(e),t)}))})),n=e.locales,r=void 0===n?"undefined"!=typeof intlDomLocale?[intlDomLocale]:"undefined"==typeof navigator?[]:navigator.languages:n,o=e.defaultLocales,i=void 0===o?["en-US"]:o,a=e.localeResolver,s=void 0===a?q:a,u=e.localesBasePath,c=void 0===u?".":u,l=e.localeMatcher,f=void 0===l?"lookup":l,p=e.headOnly,d=void 0!==p&&p;if("lookup"===f)f=G;else if("function"!=typeof f)throw new TypeError('`localeMatcher` must be "lookup" or a function!');return B([].concat(y(r),y(i)),t,"No matching locale found for "+[].concat(y(r),y(i)).join(", "))}));function Y(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}var Q=function(e){var t=e.strings,n=e.resolvedLocale,r=e.messageStyle,a=void 0===r?"richNested":r,s=e.allSubstitutions,u=e.insertNodes,c=e.keyCheckerConverter,l=void 0===c?V:c,f=e.defaults,p=e.substitutions,d=e.dom,h=void 0!==d&&d,v=e.forceNodeReturn,g=void 0!==v&&v,m=e.throwOnMissingSuppliedFormatters,b=void 0===m||m,w=e.throwOnExtraSuppliedFormatters,_=void 0===w||w;if(!t||"object"!==i(t))throw new TypeError("Locale strings must be an object!");var x=H({messageStyle:a}),S=function(e,r){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=c.allSubstitutions,v=void 0===d?s:d,m=c.defaults,w=void 0===m?f:m,S=c.dom,j=void 0===S?h:S,E=c.forceNodeReturn,k=void 0===E?g:E,O=c.throwOnMissingSuppliedFormatters,F=void 0===O?b:O,I=c.throwOnExtraSuppliedFormatters,D=void 0===I?_:I;e=l(e,a);var N=x(t,e),T=function(e){var t,n=e.message,r=e.defaults,o=e.messageStyle,a=e.messageForKey,s=void 0===a?H({messageStyle:o}):a,u=e.key;if("string"==typeof n)t=n;else if(!1===r||null==r)t=!1;else{if(!r||"object"!==i(r))throw new TypeError("Default locale strings must resolve to `false`, nullish, or an object!");var c=s(r,u);t=c?c.value:c}if(!1===t)throw new Error("Key value not found for key: (".concat(u,")"));return t}({message:!(!N||"string"!=typeof N.value)&&N.value,defaults:w,messageForKey:x,key:e});return function(e){var t=e.string,n=e.locale,r=e.locals,o=e.switches,i=e.allSubstitutions,a=void 0===i?[P]:i,s=e.insertNodes,u=void 0===s?W:s,c=e.substitutions,l=void 0!==c&&c,f=e.dom,p=void 0!==f&&f,d=e.forceNodeReturn,h=void 0!==d&&d,v=e.throwOnMissingSuppliedFormatters,g=void 0===v||v,m=e.throwOnExtraSuppliedFormatters,b=void 0===m||m;if("string"!=typeof t)throw new TypeError("An options object with a `string` property set to a string must be provided for `getDOMForLocaleString`.");var w=function(e){var t=A();return h?t.createTextNode(e):e},_=[];if(!l&&!a&&!g)return w(t);l||(l={});var x=u({string:t,dom:p,usedKeys:_,substitutions:l,allSubstitutions:a,locale:n,locals:r,switches:o,missingSuppliedFormatters:function(e){var t=e.key,n=e.formatter,r=n.isMatch(t);if(n.constructor.isMatchingKey(t)&&!r){if(g)throw new Error("Missing formatting key: ".concat(t));return!0}return!1},checkExtraSuppliedFormatters:function(e){var t=e.substitutions;b&&Object.keys(t).forEach((function(e){if(!_.includes(e))throw new Error("Extra formatting key: ".concat(e))}))}});if("string"==typeof x)return w(x);var S=A().createDocumentFragment();return S.append.apply(S,y(x)),S}({string:T,locals:t.head&&t.head.locals,switches:t.head&&t.head.switches,locale:n,allSubstitutions:v,insertNodes:u,substitutions:o(o({},p),r),dom:j,forceNodeReturn:k,throwOnMissingSuppliedFormatters:F,throwOnExtraSuppliedFormatters:D})};return S.resolvedLocale=n,S.strings=t,S.sort=function(e,t){return F(n,e,t)},S.sortList=function(e,t,r,o){return D(n,e,t,r,o)},S.list=function(e,t){return I(n,e,t)},S},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.locales,n=e.defaultLocales,r=e.localeStringFinder,o=void 0===r?Z:r,i=e.localesBasePath,a=e.localeResolver,s=e.localeMatcher,u=e.messageStyle,c=e.allSubstitutions,l=e.insertNodes,f=e.keyCheckerConverter,p=e.defaults,d=e.substitutions,h=e.maximumLocalNestingDepth,v=e.dom,g=e.forceNodeReturn,y=e.throwOnMissingSuppliedFormatters,m=e.throwOnExtraSuppliedFormatters;try{return Y(o({locales:t,defaultLocales:n,localeResolver:a,localesBasePath:i,localeMatcher:s}),(function(e){var t,r,b=e.strings,w=e.locale;return t=function(){return Q({strings:b,resolvedLocale:w,messageStyle:u,allSubstitutions:c,insertNodes:l,keyCheckerConverter:f,defaults:p,substitutions:d,maximumLocalNestingDepth:h,dom:v,forceNodeReturn:g,throwOnMissingSuppliedFormatters:y,throwOnExtraSuppliedFormatters:m})},(r=function(){if(!p&&n)return Y(o({locales:n,defaultLocales:[],localeResolver:a,localesBasePath:i,localeMatcher:s}),(function(e){p=e.strings,e.locale===w&&(p=null)}))}())&&r.then?r.then(t):t(r)}))}catch(e){return Promise.reject(e)}};function te(e,{before:t,after:n,favicon:r,canvas:o,image:i=!0,acceptErrors:a}={}){return e=Array.isArray(e)?e:[e],Promise.all(e.map((e=>function(e){let s,u={};Array.isArray(e)?[s,u={}]=e:s=e;let{favicon:c=r}=u;const{before:l=t,after:f=n,canvas:p=o,image:d=i}=u;function h(){l?l.before(v):f?f.after(v):document.head.append(v)}const v=document.createElement("link");return new Promise(((e,t)=>{let n=t;if(a&&(n="function"==typeof a?n=>{a({error:n,stylesheetURL:s,options:u,resolve:e,reject:t})}:e),s.endsWith(".css")?c=!1:s.endsWith(".ico")&&(c=!0),c){if(v.rel="shortcut icon",v.type="image/x-icon",!1===d)return v.href=s,h(),void e(v);const n=document.createElement("canvas");n.width=16,n.height=16;const r=n.getContext("2d"),o=document.createElement("img");return o.addEventListener("error",(e=>{t(e)})),o.addEventListener("load",(()=>{if(!r)throw new Error("Canvas context could not be found");r.drawImage(o,0,0),v.href=p?n.toDataURL("image/x-icon"):s,h(),e(v)})),void(o.src=s)}v.rel="stylesheet",v.type="text/css",v.href=s,h(),v.addEventListener("error",(e=>{n(e)})),v.addEventListener("load",(()=>{e(v)}))}))}(e))))}var ne,re={exports:{}};var oe=(ne||(ne=1,function(e){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){return i(e)||s(e,t)||u(e,t)||f()}function r(e){return o(e)||a(e)||u(e)||l()}function o(e){if(Array.isArray(e))return c(e)}function i(e){if(Array.isArray(e))return e}function a(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function s(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var p=/^(?:submit|button|image|reset|file)$/i,d=/^(?:input|select|textarea|keygen)/i,h=/(\[[^[\]]*])/g;function v(e,o){"object"!==t(o)?o={hash:Boolean(o)}:void 0===o.hash&&(o.hash=!0);var i=o.hash?{}:"",a=o.serializer||(o.hash?m:b),s=e&&e.elements?r(e.elements):[],u=Object.create(null);return s.forEach((function(e){if((o.disabled||!e.disabled)&&e.name&&d.test(e.nodeName)&&!p.test(e.type)){var t=e.name,n=e.type,s=e.name,c=e.checked,l=e.value;if("checkbox"!==n&&"radio"!==n||c||(l=void 0),o.empty){if("checkbox"!==n||c||(l=""),"radio"===n&&(u[s]||c?c&&(u[s]=!0):u[s]=!1,void 0===l))return}else if(!l)return;if("select-multiple"===n){var f=!1;return r(e.options).forEach((function(e){var n=o.empty&&!e.value,r=e.value||n;e.selected&&r&&(f=!0,i=o.hash&&"[]"!==t.slice(-2)?a(i,t+"[]",e.value):a(i,t,e.value))})),void(!f&&o.empty&&(i=a(i,t,"")))}i=a(i,t,l)}})),o.empty&&Object.entries(u).forEach((function(e){var t=n(e,2),r=t[0];t[1]||(i=a(i,r,""))})),i}function g(e){var t=[],n=/^([^[\]]*)/,r=new RegExp(h),o=n.exec(e);for(o[1]&&t.push(o[1]);null!==(o=r.exec(e));)t.push(o[1]);return t}function y(e,t,n){if(0===t.length)return n;var r=t.shift(),o=r.match(/^\[(.+?)]$/);if("[]"===r)return e=e||[],Array.isArray(e)?e.push(y(null,t,n)):(e._values=e._values||[],e._values.push(y(null,t,n))),e;if(o){var i=o[1],a=Number(i);isNaN(a)?(e=e||{})[i]=y(e[i],t,n):(e=e||[])[a]=y(e[a],t,n)}else e[r]=y(e[r],t,n);return e}function m(e,t,n){if(t.match(h))y(e,g(t),n);else{var r=e[t];r?(Array.isArray(r)||(e[t]=[r]),e[t].push(n)):e[t]=n}return e}function b(e,t,n){return n=n.replace(/(\r)?\n/g,"\r\n"),n=(n=encodeURIComponent(n)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+n}function w(e,o){Object.entries(o).forEach((function(o){var i=n(o,2),a=i[0],s=i[1],u=e[a],c=!1;if(!u&&!(u=e.querySelector('[name="'.concat(a,'"]')))){if(!((u=e[a+"[]"])&&"object"===t(u)&&"length"in u||(u=e.querySelectorAll('[name="'.concat(a,'[]"]'))).length))throw new Error("Name not found ".concat(a));c=!0}var l=u.type;if("checkbox"===l&&(u.checked=""!==s),("radio"===l||u[0]&&"radio"===u[0].type)&&r(e.querySelectorAll('[name="'.concat(a+(c?"[]":""),'"]'))).forEach((function(e){e.checked=s===e.value})),u[0]&&"select-multiple"===u[0].type)r(u[0].options).forEach((function(e){s.includes(e.value)&&(e.selected=!0)}));else if(Array.isArray(s)){if("select-multiple"===l)return void r(u.options).forEach((function(e){s.includes(e.value)&&(e.selected=!0)}));s.forEach((function(e,t){var n=u[t];if("checkbox"!==n.type)"select-multiple"!==n.type?n.value=e:r(n.options).forEach((function(t){e.includes(t.value)&&(t.selected=!0)}));else{var o=n.value===e||"on"===e;n.checked=o}}))}else u.value=s}))}e.deserialize=w,e.serialize=v,Object.defineProperty(e,"__esModule",{value:!0})}(re.exports)),re.exports);var ie,ae={exports:{}};var se=(ie||(ie=1,function(e){let t;"undefined"!=typeof window&&window&&(t=window);let n="undefined"!=typeof document&&document||t?.document;const r=["$plugins","$map"],o="http://www.w3.org/1999/xhtml",i=/-([a-z])/gu,a=new Map([["maxlength","maxLength"],["minlength","minLength"],["readonly","readOnly"]]),s=new Set(["checked","defaultChecked","defaultSelected","disabled","indeterminate","open","readOnly","selected","accessKey","async","autocapitalize","autofocus","contentEditable","defaultValue","defer","draggable","formnovalidate","hidden","innerText","inputMode","ismap","multiple","novalidate","pattern","required","spellcheck","translate","value","willvalidate"]),u=new Set(["autocomplete","dir","integrity","lang","max","min","minLength","maxLength","title"]),c=e=>{if(!n)throw new Error("No document object");return n.querySelector(e)},l=e=>{if(!n)throw new Error("No document object");return[...n.querySelectorAll(e)]};function f(e,t){const n=e.nodeName?.toLowerCase();"template"!==n?e.append(t):e.content.append(t)}function p(e,t,n,r){e.addEventListener(t,n,Boolean(r))}function d(e,t,r){if(!n)throw new Error("No document defined");if(!/^\w+$/u.test(r))throw new TypeError(`Bad ${e} reference; with prefix "${t}" and arg "${r}"`);const o=n.createElement("div");return o.innerHTML="&"+t+r+";",n.createTextNode(o.innerHTML)}function h(e,t){return t.toUpperCase()}function v(e){return null==e}function g(e){const t=typeof e;if("string"==typeof e||void 0===e)return"string";if("object"===t){if(null===e)return"null";if(Array.isArray(e))return"array";if("nodeType"in e)switch(e.nodeType){case 1:return"element";case 7:return"processing-instruction";case 9:return"document";case 11:return"fragment";default:return"non-container node"}}return t}function y(e,t){return e.append(t),e}function m(e){return function(...t){const n=t[0];let r=e[""]?' xmlns="'+e[""]+'"':n;for(const[t,n]of Object.entries(e))""!==t&&(r+=" xmlns:"+t+'="'+n+'"');return r}}function b(e){return function(t,n){const r=e.childNodes[n],o=Array.isArray(t)?j(...t):j(t);r.replaceWith(o)}}function w(e){return function(t){if("string"==typeof t||"number"==typeof t)throw new TypeError("Unexpected text string/number in the head");Array.isArray(t)?e.append(j(...t)):"object"==typeof t&&"nodeType"in t?e.append(t):e.append(j(t))}}function _(e){return function(t){"string"==typeof t||"number"==typeof t?e.append(String(t)):Array.isArray(t)?e.append(j(...t)):"object"==typeof t&&"nodeType"in t?e.append(t):e.append(j(t))}}function x(e,t,n,r,o){if(r.$state=o??"attributeValue",n&&"object"==typeof n){const o=S(r,Object.keys(n)[0]);if(o)return o.set({opts:r,element:e,attribute:{name:t,value:n}})}return n}function S(e,t){return e.$plugins&&e.$plugins.find((e=>e.name===t))}const j=function e(...l){if(!t)throw new Error("No window object");if(!n)throw new Error("No document object");let j=n.createDocumentFragment();function E(t){if(!n)throw new Error("No document object");for(let[r,o]of Object.entries(t))if(r=a.has(r)?String(a.get(r)):r,u.has(r))o=x(j,r,o,A),v(o)||(j[r]=o);else if(s.has(r))o=x(j,r,o,A),j[r]=o;else switch(r){case"#":A.$state="fragmentChildren",k[k.length]=e(A,o);break;case"$shadow":{const{open:t,closed:r}=o;let{content:i,template:a}=o;const s=j.attachShadow({mode:r||!1===t?"closed":"open"});a?(Array.isArray(a)?a="object"===g(a[0])?e("template",...a,n.body):e("template",a,n.body):"string"==typeof a&&(a=c(a)),e(a.content.cloneNode(!0),s)):(i||!0!==t&&(i=t||"boolean"==typeof r?i:r),i&&"boolean"!=typeof i&&(Array.isArray(i)?e({"#":i},s):e(i,s)));break}case"$state":case"is":case"xmlns":break;case"$custom":Object.assign(j,o);break;case"$define":{if(!("localName"in j))throw new Error("Element expected for `$define`");const e=j.localName.toLowerCase(),r=!e.includes("-");let i;if(r&&(i=j.getAttribute("is"),!i)){if(!Object.hasOwn(t,"is"))throw new TypeError(`Expected \`is\` with \`$define\` on built-in; args: ${JSON.stringify(l)}`);t.is=x(j,"is",t.is,A),j.setAttribute("is",t.is),({is:i}=t)}const a=r?i:e;if(window.customElements.get(a))break;const s=t=>{if(!n)throw new Error("No document object");const o="object"==typeof c&&"string"==typeof c.extends?n.createElement(c.extends).constructor:r?n.createElement(e).constructor:window.HTMLElement;return t?class extends o{constructor(){super(),t.call(this)}}:class extends o{}};let u,c,f;const p=o;Array.isArray(p)?p.length<=2?([u,c]=p,"string"==typeof c?c={extends:c}:c&&!Object.hasOwn(c,"extends")&&(f=c),"object"==typeof u&&(f=u,u=s())):([u,f,c]=p,"string"==typeof c&&(c={extends:c})):"function"==typeof p?u=p:(f=p,u=s()),u.toString().startsWith("class")||(u=s(u)),!c&&r&&(c={extends:e}),f&&Object.entries(f).forEach((([e,t])=>{u.prototype[e]=t})),window.customElements.define(a,u,"object"==typeof c?c:void 0);break}case"$symbol":{const[e,t]=o;if("function"==typeof t){const n=t.bind(j);"string"==typeof e?j[Symbol.for(e)]=n:j[e]=n}else{const n=t;n.elem=j,"string"==typeof e?j[Symbol.for(e)]=n:j[e]=n}break}case"$data":P(o);break;case"$attribute":{const e=o,t=3===e.length?n.createAttributeNS(e[0],e[1]):n.createAttribute(e[0]);t.value=e.at(-1),k[k.length]=t;break}case"$text":{const e=n.createTextNode(o);k[k.length]=e;break}case"$document":{const t=n.implementation.createHTMLDocument();if(!o)throw new Error("Bad attribute value");const r=o;if(r.childNodes){const e=r.childNodes.length;for(;t.childNodes[e];)t.childNodes[e].remove();r.childNodes.forEach(b(t))}else{if(r.$DOCTYPE){const n={$DOCTYPE:r.$DOCTYPE},o=e(n);t.firstChild?.replaceWith(o)}const o=t.querySelector("html"),i=o?.querySelector("head"),a=o?.querySelector("body");if(r.title||r.head){const e=n.createElement("meta");e.setAttribute("charset","utf-8"),i?.append(e),r.title&&(t.title=r.title),r.head&&i&&r.head.forEach(w(i))}r.body&&a&&r.body.forEach(_(a))}if(r.xmlDeclaration){const{version:e,encoding:o,standalone:i}=r.xmlDeclaration,a=`${e?` version="${e}"`:""}${o?` encoding="${o}"`:""}${i?' standalone="yes"':""}`.slice(1),s=n.createProcessingInstruction("xml",a);t.insertBefore(s,t.firstChild)}k[k.length]=t;break}case"$DOCTYPE":{const e=o,t=n.implementation.createDocumentType(e.name,e.publicId||"",e.systemId||"");k[k.length]=t;break}case"$on":for(let[e,t]of Object.entries(o||{})){if("function"==typeof t&&(t=[t,!1]),"function"!=typeof t[0])throw new TypeError(`Expect a function for \`$on\`; args: ${JSON.stringify(l)}`);p(j,e,t[0],t[1])}break;case"className":case"class":o=x(j,r,o,A),v(o)||(j.className=o);break;case"dataset":{const e=(t,n)=>{let r="";const o=""!==n;Object.keys(t).forEach((a=>{const s=t[a];if(r=o?n+a.replaceAll(i,h).replace(/^([a-z])/u,h):n+a.replaceAll(i,h),null===s||"object"!=typeof s)return v(s)||(j.dataset[r]=s),void(r=n);e(s,r)}))};e(o,"");break}case"innerHTML":v(o)||(j.innerHTML=o);break;case"htmlFor":case"for":if("label"===O){o=x(j,r,o,A),v(o)||(j.htmlFor=o);break}o=x(j,r,o,A),j.setAttribute(r,o);break;default:{if(r.startsWith("on")){o=x(j,r,o,A),j[r]=o;break}if("style"===r){if(o=x(j,r,o,A),v(o))break;if("object"==typeof o){for(const[e,t]of Object.entries(o))v(t)||("float"===e?(j.style.cssFloat=t,j.style.styleFloat=t):j.style[e.replaceAll(i,h)]=t);break}j.setAttribute(r,o);break}const e=r,t=S(A,e);if(t){t.set({opts:A,element:k[0],attribute:{name:e,value:o}});break}o=x(j,r,o,A),j.setAttribute(r,o);break}}}const k=[];let O,A,F=!1,I=0;if("object"===g(l[0])&&Object.keys(l[0]).some((e=>r.includes(e)))){if(A=l[0],void 0===A.$state&&(F=!0,A.$state="root"),Array.isArray(A.$map)&&(A.$map={root:A.$map}),"$plugins"in A){if(!Array.isArray(A.$plugins))throw new TypeError(`\`$plugins\` must be an array; args: ${JSON.stringify(l)}`);A.$plugins.forEach((e=>{if(!e||"object"!=typeof e)throw new TypeError(`Plugin must be an object; args: ${JSON.stringify(l)}`);if(!e.name||!e.name.startsWith("$_"))throw new TypeError(`Plugin object name must be present and begin with \`$_\`; args: ${JSON.stringify(l)}`);if("function"!=typeof e.set)throw new TypeError(`Plugin object must have a \`set\` method; args: ${JSON.stringify(l)}`)}))}I=1}else A={$state:void 0};const D=l.length,N=A.$map&&A.$map.root,P=e=>{let t,n;const r=N;if(!0===e)[t,n]=r;else if(Array.isArray(e)){if("string"==typeof e[0])return void e.forEach((e=>{P(A.$map[e])}));t=e[0]||r[0],n=e[1]||r[1]}else/^\[object (?:Weak)?Map\]$/u.test([].toString.call(e))?(t=e,n=r[1]):(t=r[0],n=e);t.set(j,n)};for(let r=I;r<D;r++){let i=l[r];const a=g(i);switch(a){case"null":if(r===D-1)return k.length<=1?k[0]:k.reduce(y,n.createDocumentFragment());throw new TypeError(`\`null\` values not allowed except as final Jamilih argument; index ${r} on args: ${JSON.stringify(l)}`);case"string":switch(i){case"!":k[k.length]=n.createComment(l[++r]);break;case"?":{i=l[++r];let e=l[++r];const t=e;if(t&&"object"==typeof t){const n=[];for(const[e,r]of Object.entries(t))n.push(e+'="'+r.replaceAll('"',""")+'"');e=n.join(" ")}try{k[k.length]=n.createProcessingInstruction(i,e)}catch(t){k[k.length]=n.createComment("?"+i+" "+e+"?")}break}case"&":k[k.length]=d("entity","",l[++r]);break;case"#":k[k.length]=d("decimal",i,String(l[++r]));break;case"#x":k[k.length]=d("hexadecimal",i,l[++r]);break;case"![":try{k[k.length]=n.createCDATASection(l[++r])}catch(e){k[k.length]=n.createTextNode(l[r])}break;case"":k[k.length]=j=n.createDocumentFragment(),A.$state="fragment";break;default:{O=i;const e=l[r+1];if(e&&"object"===g(e)&&e.is){const{is:t}=e;j=n.createElementNS?n.createElementNS(o,O,{is:t}):n.createElement(O,{is:t})}else j=n.createElementNS?n.createElementNS(o,O):n.createElement(O);A.$state="element",k[k.length]=j;break}}break;case"object":{if(!i||"object"!=typeof i)throw new Error("Null should not reach here");const e=i;if("xmlns"in e){const n=e,r=n.xmlns&&"object"==typeof n.xmlns?m(n.xmlns):' xmlns="'+n.xmlns+'"';j=k[k.length-1]=(new t.DOMParser).parseFromString((new t.XMLSerializer).serializeToString(j).replace(' xmlns="'+o+'"',r),"application/xml").documentElement,A.$state="element"}E(e);break}case"processing-instruction":case"document":case"fragment":case"element":if(0===r&&(j=i,A.$state="element"),r===D-1||r===D-2&&null===l[r+1]){const e=k.length;for(let t=0;t<e;t++)f(i,k[t])}else k[k.length]=i;break;case"array":{const t=i,r=t.length;for(let o=0;o<r;o++){const r=t[o],i=typeof r;if(null===r||v(r))throw new TypeError(`Bad children (parent array: ${JSON.stringify(l)}; index ${o} of child: ${JSON.stringify(t)})`);switch(i){case"string":case"number":case"boolean":f(j,n.createTextNode(String(r)));break;default:if("object"!=typeof r)throw new TypeError(`Bad children (parent array: ${JSON.stringify(l)}; index ${o} of child: ${JSON.stringify(t)})`);if(Array.isArray(r))A.$state="children",f(j,e(A,...r));else if("#"in r)A.$state="fragmentChildren",f(j,e(A,r["#"]));else{let e;"nodeType"in r||(e=x(j,null,r,A,"children")),f(j,e||r)}}}break}default:throw new TypeError(`Unexpected type: ${a}; arg: ${i}; index ${r} on args: ${JSON.stringify(l)}`)}}const T=k[0]||j;return F&&A.$map&&A.$map.root&&P(!0),T};class E extends Error{constructor(e,t){super(e),this.code=0,this.name=t}}j.toJML=function(e,{stringOutput:n=!1,reportInvalidState:r=!0,stripWhitespace:o=!1}={}){if(!t)throw new Error("No window object set");"string"==typeof e&&(e=(new t.DOMParser).parseFromString(e,"text/html"));const i=[];let a=i,s=0;function u(e){if(r){const t=new E(e,"INVALID_STATE_ERR");throw t.code=11,t}}function c(e,t){t.systemId.includes('"')&&t.systemId.includes("'")&&u("systemId cannot have both single and double quotes.");const{publicId:n,systemId:r}=t;r&&(e.systemId=r),n&&(e.publicId=n)}function l(e){a[s]=e,s++}function f(){l([]),a=a[s-1],s=0}function p(e,t){a=a[s-1][e],s=0,t&&(a=a[t])}function d(e,t){const n="nodeType"in e?e.nodeType:null;if(!n)throw new TypeError("Not an XML type");if(5===n)return void l(["&",e.nodeName]);t={...t};const r=/^([\u0009\u000A\u000D\u0020-\uD7FF\uE000-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$/u;let i,h;function v(){i=a,h=s}function g(){a=i,s=h,s++}switch([2,3,4,7,8].includes(n)&&e.nodeValue&&!r.test(e.nodeValue)&&u("Node has bad XML character value"),n){case 1:{const n=e;v();const r=n.nodeName.toLowerCase();f(),l(r);const o={};let i=!1;t[n.prefix||""]!==n.namespaceURI&&(t[n.prefix||""]=n.namespaceURI,n.prefix?o["xmlns:"+n.prefix]=n.namespaceURI:n.namespaceURI?o.xmlns=n.namespaceURI:o.xmlns=null,i=!0),n.attributes.length?l([...n.attributes].reduce((function(e,t){return e[t.name]=t.value,e}),o)):i&&l(o);const{childNodes:a}=n;a.length&&(f(),[...a].forEach((function(e){d(e,t)}))),g();break}case 2:{const t=e;l({$attribute:[t.namespaceURI,t.name,t.value]});break}case 3:{const t=e;if(!t.nodeValue)throw new Error("Unexpected null comment value");if(o&&/^\s+$/u.test(t.nodeValue))return void l("");l(t.nodeValue);break}case 4:{const t=e;t.nodeValue?.includes("]]>")&&u("CDATA cannot end with closing ]]>"),l(["![",t.nodeValue]);break}case 7:{const t=e;/^xml$/iu.test(t.target)&&u('Processing instructions cannot be "xml".'),t.target.includes("?>")&&u("Processing instruction targets cannot include ?>"),t.target.includes(":")&&u('The processing instruction target cannot include ":"'),t.data.includes("?>")&&u("Processing instruction data cannot include ?>"),l(["?",t.target,t.data]);break}case 8:{const t=e;if(!t.nodeValue)throw new Error("Unexpected null comment value");(t.nodeValue.includes("--")||t.nodeValue.length&&t.nodeValue.lastIndexOf("-")===t.nodeValue.length-1)&&u("Comments cannot include --"),l(["!",t.nodeValue]);break}case 9:{const n=e;v(),l({$document:{childNodes:[]}}),p("$document","childNodes");const{childNodes:r}=n;r.length||u("Documents must have a child node"),[...r].forEach((function(e){d(e,t)})),g();break}case 10:{const t=e;v();const n={$DOCTYPE:{name:t.name}};/^(\u0020|\u000D|\u000A|[a-zA-Z0-9]|[-'()+,./:=?;!*#@$_%])*$/u.test(t.publicId)||u("A publicId must have valid characters."),c(n.$DOCTYPE,t),l(n),g();break}case 11:{const n=e;v(),l({"#":[]}),p("#");const{childNodes:r}=n;[...r].forEach((function(e){d(e,t)})),g();break}default:throw new TypeError("Not an XML type")}}return d(e,{}),n?JSON.stringify(i[0]):i[0]},j.toJMLString=function(e,t){return j.toJML(e,Object.assign(t||{},{stringOutput:!0}))},j.toDOM=function(...e){return j(...e)},j.toHTML=function(...e){const t=j(...e);switch(t.nodeType){case 1:return t.outerHTML;case 2:return`${t.name}="${t.value.replaceAll('"',""")}"`;case 3:if(!t.nodeValue)throw new TypeError("Unexpected null Text node");return t.nodeValue;case 7:{const e=t;return`<?${e.target} ${e.data}?>`}case 9:case 11:return[...t.childNodes].map((e=>j.toHTML(e))).join("");case 10:{const e=t;return`<!DOCTYPE ${e.name}${e.publicId?` PUBLIC "${e.publicId}" "${e.systemId}"`:e.systemId?` SYSTEM "${e.systemId}"`:""}>`}default:throw new Error("Unexpected node type")}},j.toDOMString=function(...e){return j.toHTML(...e)},j.toXML=function(...e){if(!t)throw new Error("No window object set");const n=j(...e);return(new t.XMLSerializer).serializeToString(n)},j.toXMLDOMString=function(...e){return j.toXML(...e)};class k extends Map{get(e){const t="string"==typeof e?c(e):e;return super.get.call(this,t)}set(e,t){const n="string"==typeof e?c(e):e;return super.set.call(this,n,t)}invoke(e,t,...n){const r="string"==typeof e?c(e):e;return this.get(r)[t](r,...n)}}class O extends WeakMap{get(e){const t="string"==typeof e?c(e):e;if(!t)throw new Error("Can't find the element");return super.get.call(this,t)}set(e,t){const n="string"==typeof e?c(e):e;if(!n)throw new Error("Can't find the element");return super.set.call(this,n,t)}invoke(e,t,...n){const r="string"==typeof e?c(e):e;if(!r)throw new Error("Can't find the element");return this.get(r)[t](r,...n)}}function A(e,t){return[...e].reduce(((e,n)=>(e.push(n,t),e)),[]).slice(0,-1)}j.Map=k,j.WeakMap=O,j.weak=function(e,...t){const n=new O;return[n,j({$map:[n,e]},...t)]},j.strong=function(e,...t){const n=new k;return[n,j({$map:[n,e]},...t)]},j.symbol=j.sym=j.for=function(e,t){return("string"==typeof e?c(e):e)["symbol"==typeof t?t:Symbol.for(t)]},j.command=function(e,t,n,...r){if(!(e="string"==typeof e?c(e):e))throw new Error("No element found");let o;if(["symbol","string"].includes(typeof t))return o=j.sym(e,t),"function"==typeof o?o(n,...r):o[n](...r);if(o=t.get(e),!o)throw new Error("No map found");return"function"==typeof o?o.call(e,n,...r):o[n](e,...r)},j.setWindow=r=>{t=r,n=t?.document,n&&n.body&&(e.body=n.body)},j.getWindow=()=>{if(!t)throw new Error("No window object set");return t},e.body=void 0,n&&n.body&&(e.body=n.body);const F=" ";e.$=c,e.$$=l,e.DOMException=E,e.default=j,e.glue=A,e.jml=j,e.nbsp=F,Object.defineProperty(e,"__esModule",{value:!0})}(ae.exports)),ae.exports);const ue=(e,t)=>{const n="string"==typeof e?(r=e,document.querySelector(r)):e;var r;return n?.querySelector(t)},ce={en:{submit:"Submit",cancel:"Cancel",ok:"Ok"}};const le=new class{constructor({locale:e,localeObject:t}={}){this.localeStrings=ce.en,this.setLocale({locale:e,localeObject:t})}setLocale({locale:e,localeObject:t={}}){this.localeStrings={...ce.en,...e?ce[e]:{},...t}}makeDialog({atts:e={$on:null},children:t=[],close:n,remove:r=!0}){n&&(e.$on||(e.$on={}),e.$on.close||(e.$on.close=n));const o=se.jml("dialog",e,t,se.$("#main"));return o.showModal(),r&&o.addEventListener("close",(()=>{o.remove()})),o}makeSubmitDialog({submit:e,submitClass:t="submit",...n}){const r=this.makeCancelDialog(n);return ue(r,`button.${n.cancelClass||"cancel"}`).before(se.jml("button",{class:t,$on:{click(t){e&&e.call(this,{e:t,dialog:r})}}},[this.localeStrings.submit]),se.nbsp.repeat(2)),r}makeCancelDialog({submit:e,cancel:t,cancelClass:n="cancel",submitClass:r="submit",...o}){const i=this.makeDialog(o);return se.jml("div",{class:r},[["br"],["br"],["button",{class:n,$on:{click(e){e.preventDefault(),t&&!1===t.call(this,{e:e,dialog:i})||i.close()}}},[this.localeStrings.cancel]]],i),i}alert(e,t){e="string"==typeof e?{message:e}:e;const{ok:n=("object"==typeof t?!1!==t.ok:!1!==t),message:r,submitClass:o="submit"}=e;return new Promise((e=>{const t=se.jml("dialog",[r,...n?[["br"],["br"],["div",{class:o},[["button",{$on:{click(){t.close(),e()}}},[this.localeStrings.ok]]]]]:[]],se.$("#main"));t.showModal()}))}prompt(e){e="string"==typeof e?{message:e}:e;const{message:t,submit:n,...r}=e;return new Promise(((e,o)=>{this.makeSubmitDialog({...r,submit:function({e:t,dialog:r}){n&&n.call(this,{e:t,dialog:r}),r.close(),e(ue(r,"input").value)},cancel(){o(new Error("cancelled"))},children:[["label",[t,se.nbsp.repeat(3),["input"]]]]})}))}confirm(e){e="string"==typeof e?{message:e}:e;const{message:t,submitClass:n="submit"}=e;return new Promise(((e,r)=>{const o=se.jml("dialog",[t,["br"],["br"],["div",{class:n},[["button",{$on:{click(){o.close(),e()}}},[this.localeStrings.ok]],se.nbsp.repeat(2),["button",{$on:{click(){o.close(),r(new Error("cancelled"))}}},[this.localeStrings.cancel]]]]],se.$("#main"));o.showModal()}))}};class fe{constructor({langData:e}){this.langData=e}localeFromLangData(e){return this.langData["localization-strings"][e]}getLanguageFromCode(e){return this.localeFromLangData(e).languages[e]}getFieldNameFromPluginNameAndLocales({pluginName:e,workI18n:t,targetLanguage:n,applicableFieldI18N:r,meta:o,metaApplicableField:i}){return t(["plugins",e,"fieldname"],{...o,...i,applicableField:r,targetLanguage:n?this.getLanguageFromCode(n):""},{throwOnExtraSuppliedFormatters:!1})}getLanguageInfo({$p:e}){const t=this.langData.languages,n=e=>!!t.some((({code:t})=>t===e))&&e,r=e.get("lang",!0),o=navigator.languages.filter(n),i=o.length?o:[n(navigator.language)||"en-US"];return{lang:[...(r||i[0]).split("."),...i],langs:t,languageParam:r,fallbackLanguages:i}}}var pe=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch(e){}r||(r=window._),e.exports=r},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(47),i="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!=e&&"object"==n(e)}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var t=n(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(52),o=n(37),i=n(7);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(9),o=n(101),i=n(102),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),i=n(133),a=n(61),s=n(134),u=n(8),c=n(48),l=c(r),f=c(o),p=c(i),d=c(a),h=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t,n){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(2),i=n(121),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,u=s&&s.exports===a?o.Buffer:void 0,c=(u?u.isBuffer:void 0)||i;e.exports=c}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(90),o=n(91),i=n(92),a=n(93),s=n(94);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(30);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(8),o=n(5);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(4)(Object,"create");e.exports=r},function(e,t,n){var r=n(114);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(49),o=n(50);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=i?i(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?o(n,c,l):r(n,c,l)}return n}},function(e,t,n){var r=n(120),o=n(3),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){var r=n(122),o=n(35),i=n(36),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(65),o=n(150)(r);e.exports=o},function(e,t){e.exports=function(e){return e}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(154),i=n(164),a=n(25),s=n(0),u=n(173);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==r(e)?s(e)?i(e[0],e[1]):o(e):u(e)}},function(e,t,n){var r=n(44);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(1);function i(e){this._isDirected=!o.has(e,"directed")||e.directed,this._isMultigraph=!!o.has(e,"multigraph")&&e.multigraph,this._isCompound=!!o.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=o.constant(void 0),this._defaultEdgeLabelFn=o.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function a(e,t){e[t]?e[t]++:e[t]=1}function s(e,t){--e[t]||delete e[t]}function u(e,t,n,r){var i=""+t,a=""+n;if(!e&&i>a){var s=i;i=a,a=s}return i+""+a+""+(o.isUndefined(r)?"\0":r)}function c(e,t){return u(e,t.v,t.w,t.name)}e.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(e){return this._label=e,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(e){return o.isFunction(e)||(e=o.constant(e)),this._defaultNodeLabelFn=e,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return o.keys(this._nodes)},i.prototype.sources=function(){var e=this;return o.filter(this.nodes(),(function(t){return o.isEmpty(e._in[t])}))},i.prototype.sinks=function(){var e=this;return o.filter(this.nodes(),(function(t){return o.isEmpty(e._out[t])}))},i.prototype.setNodes=function(e,t){var n=arguments,r=this;return o.each(e,(function(e){n.length>1?r.setNode(e,t):r.setNode(e)})),this},i.prototype.setNode=function(e,t){return o.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},i.prototype.node=function(e){return this._nodes[e]},i.prototype.hasNode=function(e){return o.has(this._nodes,e)},i.prototype.removeNode=function(e){var t=this;if(o.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],o.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),o.each(o.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],o.each(o.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},i.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(t))t="\0";else{for(var n=t+="";!o.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},i.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},i.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},i.prototype.children=function(e){if(o.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return o.keys(t)}else{if("\0"===e)return this.nodes();if(this.hasNode(e))return[]}},i.prototype.predecessors=function(e){var t=this._preds[e];if(t)return o.keys(t)},i.prototype.successors=function(e){var t=this._sucs[e];if(t)return o.keys(t)},i.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return o.union(t,this.successors(e))},i.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},i.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;o.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),o.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var r={};return this._isCompound&&o.each(t.nodes(),(function(e){t.setParent(e,function e(o){var i=n.parent(o);return void 0===i||t.hasNode(i)?(r[o]=i,i):i in r?r[i]:e(i)}(e))})),t},i.prototype.setDefaultEdgeLabel=function(e){return o.isFunction(e)||(e=o.constant(e)),this._defaultEdgeLabelFn=e,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return o.values(this._edgeObjs)},i.prototype.setPath=function(e,t){var n=this,r=arguments;return o.reduce(e,(function(e,o){return r.length>1?n.setEdge(e,o,t):n.setEdge(e,o),o})),this},i.prototype.setEdge=function(){var e,t,n,i,s=!1,c=arguments[0];"object"===r(c)&&null!==c&&"v"in c?(e=c.v,t=c.w,n=c.name,2===arguments.length&&(i=arguments[1],s=!0)):(e=c,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),e=""+e,t=""+t,o.isUndefined(n)||(n=""+n);var l=u(this._isDirected,e,t,n);if(o.has(this._edgeLabels,l))return s&&(this._edgeLabels[l]=i),this;if(!o.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[l]=s?i:this._defaultEdgeLabelFn(e,t,n);var f=function(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}(this._isDirected,e,t,n);return e=f.v,t=f.w,Object.freeze(f),this._edgeObjs[l]=f,a(this._preds[t],e),a(this._sucs[e],t),this._in[t][l]=f,this._out[e][l]=f,this._edgeCount++,this},i.prototype.edge=function(e,t,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(e,t,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return o.has(this._edgeLabels,r)},i.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):u(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[t],e),s(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},i.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var r=o.values(n);return t?o.filter(r,(function(e){return e.v===t})):r}},i.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var r=o.values(n);return t?o.filter(r,(function(e){return e.w===t})):r}},i.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(15),o=n(95),i=n(96),a=n(97),s=n(98),u=n(99);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),i=n(115),a=n(116),s=n(117);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(47),i="object"==r(t)&&t&&!t.nodeType&&t,a=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.process,u=function(){try{return a&&a.require&&a.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(56),o=n(57),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(54)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(62);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(0),i=n(44),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||s.test(e)||!a.test(e)||null!=t&&e in Object(t)}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(8),i=n(3);e.exports=function(e){return"symbol"==r(e)||i(e)&&"[object Symbol]"==o(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(this,n(11))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(50),o=n(30),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(51);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(4),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(119),o=n(21),i=n(0),a=n(12),s=n(53),u=n(22),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var g in e)!t&&!c.call(e,g)||d&&("length"==g||f&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,v))||h.push(g);return h}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=n(e);return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(52),o=n(125),i=n(7);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(39),o=n(40),i=n(38),a=n(57),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t,n){var r=n(60),o=n(38),i=n(6);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(39),o=n(0);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(4)(n(2),"Set");e.exports=r},function(e,t,n){var r=n(2).Uint8Array;e.exports=r},function(e,t,n){var r=n(5),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(148),o=n(6);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(156),o=n(3);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(68),o=n(159),i=n(69);e.exports=function(e,t,n,a,s,u){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(e);if(p&&u.get(t))return p==t;var d=-1,h=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++d<l;){var g=e[d],y=t[d];if(a)var m=c?a(y,g,d,t,e,u):a(g,y,d,e,t,u);if(void 0!==m){if(m)continue;h=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(g===e||s(g,e,n,a,u)))return v.push(t)}))){h=!1;break}}else if(g!==y&&!s(g,y,n,a,u)){h=!1;break}}return u.delete(e),u.delete(t),h}},function(e,t,n){var r=n(32),o=n(157),i=n(158);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(5);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t,n){var r=n(73),o=n(27);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(0),o=n(43),i=n(166),a=n(169);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(73),o=n(21),i=n(0),a=n(53),s=n(34),u=n(27);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var p=u(t[c]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(p,l)&&(i(e)||o(e))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(1),o=n(77);e.exports=function(e,t,n,r){return function(e,t,n,r){var i,a,s={},u=new o,c=function(e){var t=e.v!==i?e.v:e.w,r=s[t],o=n(e),c=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=i,u.decrease(t,c))};for(e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:n},u.add(e,n)}));u.size()>0&&(i=u.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return s}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n<t.length&&(o=t[n].priority<t[o].priority?n:o,r<t.length&&(o=t[r].priority<t[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))},o.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},o.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,o=n[e],i=n[t];n[e]=i,n[t]=o,r[i.key]=e,r[o.key]=t}},function(e,t,n){var r=n(1);e.exports=function(e){var t=0,n=[],o={},i=[];return e.nodes().forEach((function(a){r.has(o,a)||function a(s){var u=o[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach((function(e){r.has(o,e)?o[e].onStack&&(u.lowlink=Math.min(u.lowlink,o[e].index)):(a(e),u.lowlink=Math.min(u.lowlink,o[e].lowlink))})),u.lowlink===u.index){var c,l=[];do{c=n.pop(),o[c].onStack=!1,l.push(c)}while(s!==c);i.push(l)}}(a)})),i}},function(e,t,n){var r=n(1);function o(e){var t={},n={},o=[];if(r.each(e.sinks(),(function a(s){if(r.has(n,s))throw new i;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],o.push(s))})),r.size(t)!==e.nodeCount())throw new i;return o}function i(){}e.exports=o,o.CycleException=i,i.prototype=new Error},function(e,t,n){var r=n(1);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,n,o,i,a,s){r.has(i,n)||(i[n]=!0,o||s.push(n),r.each(a(n),(function(n){e(t,n,o,i,a,s)})),o&&s.push(n))}(e,t,"post"===n,a,o,i)})),i}},function(e,t,n){(function(t){var r=n(226),o=["delete","get","head","patch","post","put"];e.exports.load=function(e,n,i){var a,s,u=n.method?n.method.toLowerCase():"get";function c(e,n){e?i(e):("[object process]"===Object.prototype.toString.call(void 0!==t?t:0)&&"function"==typeof n.buffer&&n.buffer(!0),n.end((function(e,t){e?i(e):i(void 0,t)})))}if(void 0!==n.method?"string"!=typeof n.method?a=new TypeError("options.method must be a string"):-1===o.indexOf(n.method)&&(a=new TypeError("options.method must be one of the following: "+o.slice(0,o.length-1).join(", ")+" or "+o[o.length-1])):void 0!==n.prepareRequest&&"function"!=typeof n.prepareRequest&&(a=new TypeError("options.prepareRequest must be a function")),a)i(a);else if(s=r["delete"===u?"del":u](e),n.prepareRequest)try{n.prepareRequest(s,c)}catch(e){i(e)}else c(void 0,s)}}).call(this,n(13))},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!==e&&"object"===r(e)}},function(e,t,n){(function(r,o){var i,a,s,u;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
1
|
+
var e,t={exports:{}};var n=(e||(e=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function n(e){if(Array.isArray(e))return t(e)}function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e){return n(e)||r(e)||a(e)||o()}function a(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}function s(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}function u(e,t){var n=e();return n&&n.then?n.then(t):t(n)}function c(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function l(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).fetch,t=void 0===e?"undefined"!=typeof window?window.fetch:self.fetch:e;return function e(n,r,o){try{var a=!1;return s(c((function(){return u((function(){if(Array.isArray(n))return s(Promise.all(n.map((function(t){return e(t)}))),(function(e){return r&&r.apply(void 0,i(e)),a=!0,e}))}),(function(e){return a?e:s(t(n),(function(e){return s(e.json(),(function(e){return"function"==typeof r?r(e):e}))}))}))}),(function(e){var t=e;if(t.message+=" (File: ".concat(n,")"),o)return o(t,n);throw t})))}catch(e){return Promise.reject(e)}}}var f=l();e.getJSON=f}(t.exports)),t.exports);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(){a=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=new RegExp(e,r);return t.set(i,o||t.get(e)),d(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return f(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},a.apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var _=globalThis.jsonExtra,x=function(e){return e.replace(/\\+/g,(function(e){return e.slice(0,e.length/2)}))},S=function(e){return _.parse("{"+(e||"").replace(/^\{/,"").replace(/\}$/,"")+"}")},j=function(e,t,n){var r,o=n.onMatch,i=n.extra,a=n.betweenMatches,s=n.afterMatch,u=n.escapeAtOne,c=0;if(i&&(a=i,s=i,u=i),!a||!s)throw new Error("You must have `extra` or `betweenMatches` and `afterMatch` arguments.");for(;null!==(r=e.exec(t));){var l=g(r,2),f=l[0],p=l[1],d=e.lastIndex,h=d-f.length;h>c&&a(t.slice(c,h)),u&&p.length%2?(c=d,u(f)):(o.apply(void 0,y(r)),c=d)}c!==t.length&&s(t.slice(c))},E="undefined"!=typeof fetch?fetch:null,k=function(){return E},O="undefined"!=typeof document?document:null,A=function(){return O};var F=function(e,t,n){return t.sort(new Intl.Collator(e,n).compare)},I=function(e,t,n){return new Intl.ListFormat(e,n).format(t)},D=function(e,t,n,r,o){if("function"!=typeof n)return function(e,t,n,r){return F(e,t,r),I(e,t,n)}(e,t,n,r);F(e,t,o);var i,a=(i=Date.now(),"undefined"!=typeof performance&&"function"==typeof performance.now&&(i+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Math.trunc((i+16*Math.random())%16);return i=Math.floor(i/16),("x"===e?t:3&t|8).toString(16)}))),s=y(t).map((function(e,t){return"<<".concat(a).concat(t,">>")})),u=[],c=function(e){u.push(e)};j(new RegExp("<<".concat(a,"(\\d)>>"),"gu"),I(e,s,r),{betweenMatches:c,afterMatch:c,onMatch:function(e,r){c(n(t[Number(r)],Number(r)))}});var l=A().createDocumentFragment();return l.append.apply(l,u),l},N=function(e){var t=e.object;if(Array.isArray(t)){if("function"==typeof t[1]){var n=g(t,4);return{value:n[0],callback:n[1],options:n[2],extraOpts:n[3]}}var r=g(t,3);return{value:r[0],options:r[1],extraOpts:r[2]}}return{value:t}},P=function(e){var t=e.value,n=e.arg;e.key;var r,a=e.locale;if("string"==typeof t||t&&"object"===i(t)&&"nodeType"in t)return t;var s=function(e){var t=e.type,i=e.options,a=void 0===i?r:i,s=e.checkArgOptions,u=void 0!==s&&s;if("string"==typeof n){var c=g(n.split("|"),3),l=c[0],f=c[1],p=c[2];"DATE"===l&&(l="DATETIME"),l===t&&(f?u&&!p||(a=o(o({},a),S(u&&p?p:f))):a={})}return a},u=!1;if(t&&"object"===i(t)&&!Array.isArray(t)){var c=Object.keys(t)[0];if(["number","date","datetime","dateRange","datetimeRange","relative","region","language","script","currency","list","plural"].includes(c)){var l,f,p=t[c],d=N({object:p});switch(t=d.value,r=d.options,l=d.extraOpts,f=d.callback,c){case"date":case"datetime":u=!0;break;case"dateRange":case"datetimeRange":var h=new Intl.DateTimeFormat(a,s({type:"DATERANGE",options:l}));return h.formatRange.apply(h,y([t,r].map((function(e){return"number"==typeof e?new Date(e):e}))));case"region":case"language":case"script":case"currency":return new Intl.DisplayNames(a,o(o({},s({type:c.toUpperCase()})),{},{type:c})).of(t);case"relative":var v=[r,l];return l=v[0],r=v[1],new Intl.RelativeTimeFormat(a,s({type:"RELATIVE"})).format(t,l);case"list":return f?D(a,t,f,s({type:"LIST"}),s({type:"LIST",options:l,checkArgOptions:!0})):D(a,t,s({type:"LIST"}),s({type:"LIST",options:l,checkArgOptions:!0}))}}}if(t&&("number"==typeof t&&(u||/^DATE(?:TIME)(?:\||$)/.test(n))&&(t=new Date(t)),"object"===i(t)&&"getTime"in t&&"function"==typeof t.getTime))return new Intl.DateTimeFormat(a,s({type:"DATETIME"})).format(t);if(Array.isArray(t)){var m,b=t[2];return(m=new Intl.DateTimeFormat(a,s({type:"DATERANGE",options:b}))).formatRange.apply(m,y(t.slice(0,2).map((function(e){return"number"==typeof e?new Date(e):e}))))}if("number"==typeof t)return new Intl.NumberFormat(a,s({type:"NUMBER"})).format(t);throw new TypeError("Unknown formatter")},T=c((function e(){s(this,e)})),C=function(e){var t=e.key,n=e.body,r=e.type,o=e.messageStyle,i=H({messageStyle:void 0===o?"richNested":o})({body:n},t);if(!i)throw new Error("Key value not found for ".concat(r," key: (").concat(t,")"));return i.value},$=function(e){f(n,T);var t=v(n);function n(e){var r;return s(this,n),(r=t.call(this)).locals=e,r}return c(n,[{key:"getSubstitution",value:function(e){return C({key:e.slice(1),body:this.locals,type:"local"})}},{key:"isMatch",value:function(e){var t=e.slice(1).split("."),n=this.locals;return this.constructor.isMatchingKey(e)&&t.every((function(e){var t=e in n;return n=n[e],t}))}}],[{key:"isMatchingKey",value:function(e){return e.startsWith("-")}}]),n}(),L=function(e){f(n,T);var t=v(n);function n(e){var r;return s(this,n),(r=t.call(this)).substitutions=e,r}return c(n,[{key:"isMatch",value:function(e){return this.constructor.isMatchingKey(e)&&e in this.substitutions}}],[{key:"isMatchingKey",value:function(e){return/^[0-9A-Z_a-z]/.test(e)}}]),n}(),R=function(e){f(n,T);var t=v(n);function n(e,r){var o,i=r.substitutions;return s(this,n),(o=t.call(this)).switches=e,o.substitutions=i,o}return c(n,[{key:"getSubstitution",value:function(e,t){var n,r,a=t.locale,s=t.usedKeys,u=t.arg,c=t.missingSuppliedFormatters,l=this.constructor.getKey(e).slice(1),f=g(this.getMatch(l),3),p=f[0],d=f[1],h=f[2];if(s.push(h),p&&p.includes("|")){var v=g(p.split("|"),3);n=v[1],r=v[2]}if(!d)return c({key:e,formatter:this}),"\\{"+e+"}";var y=function(e,t){var n=S(r);return new Intl.NumberFormat(a,o(o({},t),n)).format(e)},m=function(e,t){var n=S(r);return new Intl.PluralRules(a,o(o({},t),n)).select(e)},b=this.substitutions[h],w=b;if("number"==typeof b)switch(n){case"NUMBER":w=y(b);break;case"PLURAL":w=m(b);break;default:w=new Intl.PluralRules(a).select(b)}else if(b&&"object"===i(b)){var _=Object.keys(b)[0];if(["number","plural"].includes(_)){var x=N({object:b[_]}),j=x.value,E=x.options;if(n||(n=_.toUpperCase()),!(_.toUpperCase()===n))throw new TypeError('Expecting type "'.concat(n.toLowerCase(),'"; instead found "').concat(_,'".'));switch(n){case"NUMBER":w=y(j,E);break;case"PLURAL":w=m(j,E)}}}var k="richNested",O=function(e){return e.replace(/\\/g,"\\\\").replace(/\./g,"\\.")};try{return C({messageStyle:k,key:w?O(w):u,body:d,type:"switch"})}catch(e){try{return C({messageStyle:k,key:"*"+O(w),body:d,type:"switch"})}catch(e){var A=Object.keys(d).find((function(e){return e.startsWith("*")}));if(!A)throw new Error("No defaults found for switch ".concat(l));return C({messageStyle:k,key:O(A),body:d,type:"switch"})}}}},{key:"isMatch",value:function(e){return Boolean(e&&this.constructor.isMatchingKey(e)&&this.getMatch(e.slice(1)).length)}},{key:"getMatch",value:function(e){var t=this,n=e.split(".");return n.reduce((function(r,o,i){if(i<n.length-1){if(!(o in r))throw new Error('Switch key "'.concat(o,'" not found (from "~').concat(e,'")'));return r[o]}var a=Object.entries(r).find((function(e){var n=g(e,1)[0];return o===t.constructor.getKey(n)}));return a?[].concat(y(a),[o]):[]}),this.switches)}}],[{key:"isMatchingKey",value:function(e){return e.startsWith("~")}},{key:"getKey",value:function(e){var t=e.match(/^(?:[\0-\{\}-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*/);return t&&t[0]}}]),n}();function M(e,t,n){if(!e.s){if(n instanceof U){if(!n.s)return void(n.o=M.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(M.bind(null,e,t),M.bind(null,e,2));e.s=t,e.v=n;var r=e.o;r&&r(e)}}var U=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{M(r,1,i(this.v))}catch(e){M(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?M(r,1,t?t(o):o):n?M(r,1,n(o)):M(r,2,o)}catch(e){M(r,2,e)}},r},e}();function z(e){return e instanceof U&&1&e.s}var B=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Reached end of values array.";if(!Array.isArray(e))throw new TypeError("The `values` argument to `promiseChainForValues` must be an array.");if("function"!=typeof t)throw new TypeError("The `errBack` argument to `promiseChainForValues` must be a function.");return(n=function(){var n,o,i,a,s=!1,u=Promise.reject(new Error("Intentionally reject so as to begin checking chain"));return i=function(e,t,n){for(var r;;){var o=e();if(z(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!z(i)){r=1;break}i=i.s}}var a=new U,s=M.bind(null,a,2);return(0===r?o.then(c):1===r?i.then(u):(void 0).then((function(){(o=e())?o.then?o.then(c).then(void 0,s):c(o):M(a,1,i)}))).then(void 0,s),a;function u(t){i=t;do{if(!(o=e())||z(o)&&!o.v)return void M(a,1,i);if(o.then)return void o.then(c).then(void 0,s);z(i=n())&&(i=i.v)}while(!i||!i.then);i.then(u).then(void 0,s)}function c(e){e?(i=n())&&i.then?i.then(u).then(void 0,s):u(i):M(a,1,i)}}((function(){return!s}),0,(function(){var i=e.shift();return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){return function(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}(u,(function(e){n=e,s=!0}))}),(function(){if(o)throw new Error(r);e.length||(o=!0),u=t(i)}))})),a=function(e){return n},i&&i.then?i.then(a):a(i)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(n.apply(this,e))}catch(e){return Promise.reject(e)}})()},q=function(e,t){if("string"!=typeof e)throw new TypeError("`defaultLocaleResolver` expects a string `localesBasePath`.");if("string"!=typeof t)throw new TypeError("`defaultLocaleResolver` expects a string `locale`.");if(/[\.\/\\]/.test(t))throw new TypeError("Locales cannot use file-reserved characters, `.`, `/` or `\\`");return"".concat(e.replace(/\/$/,""),"/_locales/").concat(t,"/messages.json")},W=function(e){var t=e.string,n=e.dom,r=e.usedKeys,a=e.substitutions,s=e.allSubstitutions,u=e.locale,c=e.locals,l=e.switches,f=e.maximumLocalNestingDepth,p=void 0===f?3:f,d=e.missingSuppliedFormatters,h=e.checkExtraSuppliedFormatters;if("number"!=typeof p)throw new TypeError("`maximumLocalNestingDepth` must be a number.");var v=function(){Object.entries(a).forEach((function(e){var t=g(e,2),n=t[0];"function"==typeof t[1]&&r.push(n)}))};v();var m=new $(c),b=new L(a),w=new R(l,{substitutions:a}),_=/(\\*)\{((?:(?:[\0-\|~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|\\\})*?)(?:(\|)((?:[\0-\|~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*))?\}/g;s&&(s=Array.isArray(s)?s:[s]);var E=function(e){var t,n=e.key,o=e.arg,i=e.substs;return m.constructor.isMatchingKey(n)?t=m.getSubstitution(n):w.constructor.isMatchingKey(n)?t=w.getSubstitution(n,{locale:u,usedKeys:r,arg:o,missingSuppliedFormatters:d}):"function"==typeof(t=i[n])&&(t=t({arg:o,key:n})),s?t=s.reduce((function(e,t){return t({value:e,arg:o,key:n,locale:u})}),t):o&&/^(?:NUMBER|DATE(?:TIME|RANGE|TIMERANGE)?|REGION|LANGUAGE|SCRIPT|CURRENCY|RELATIVE|LIST)(?:\||$)/.test(o)&&(t=P({value:t,arg:o,key:n,locale:u})),t},k=1,O=function(e){var t=e.substitution,n=e.ky,r=e.arg,i=e.processSubsts,s=t;if("string"==typeof t&&t.includes("{")){if(k++>p)throw new TypeError("Too much recursion in local variables.");if(m.constructor.isMatchingKey(n)){var u,c=a;r&&(u=S(r),c=o(o({},a),u)),s=i({str:t,substs:c,formatter:m}),u&&h({substitutions:u})}else w.constructor.isMatchingKey(n)&&(s=i({str:t}))}return s};if(!n){var A=!1,F=function e(t){var n=t.str,o=t.substs,s=void 0===o?a:o,u=t.formatter,c=void 0===u?b:u;return n.replace(_,(function(t,n,o,a,u){if(n.length%2)return t;if(d({key:o,formatter:c}))return t;var l=E({key:o,arg:u,substs:s});return l=O({substitution:l,ky:o,arg:u,processSubsts:e}),A=A||null!==l&&"object"===i(l)&&"nodeType"in l,r.push(o),n+l}))}({str:t});if(!A)return h({substitutions:a}),r.length=0,v(),x(F);r.length=0,v()}k=1;var I=function e(t){var n=t.str,o=t.substs,s=void 0===o?a:o,u=t.formatter,c=void 0===u?b:u,l=[],f=new RegExp(_,"gu"),p=function(){l.push.apply(l,arguments)};return j(f,n,{extra:p,onMatch:function(t,n,o,a,u){if(d({key:o,formatter:c}))p(t);else{n.length&&p(n);var l=E({key:o,arg:u,substs:s});l=O({substitution:l,ky:o,arg:u,processSubsts:e}),Array.isArray(l)?p.apply(void 0,y(l)):l&&"object"===i(l)&&"nodeType"in l?p(l.cloneNode(!0)):p(l)}r.push(o)}}),l}({str:t});return h({substitutions:a}),r.length=0,I.map((function(e){return"string"==typeof e?x(e):e}))};function V(e,t){if(Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))&&"string"==typeof t&&t.endsWith("Nested"))return e.map((function(e){return e.replace(a(/(\\+)/g,{backslashes:1}),"\\$<backslashes>").replace(/\./g,"\\.")})).join(".");if("string"!=typeof e)throw new TypeError("`key` is expected to be a string (or array of strings for nested style)");return e}var H=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).messageStyle,t=void 0===e?"richNested":e;return"function"==typeof t?t:"richNested"===t?function(e,t){var n=e&&"object"===i(e)&&e.body,r=[],o=function(e){r.length||(r[0]=""),r[r.length-1]+=e};j(/(\\*)\./g,t,{extra:o,onMatch:function(e,t){o(t),r.push("")}});var a=r.map((function(e){return x(e)})),s=!1,u=n;return a.some((function(e,t,n){return!u||"object"!==i(u)||(t===n.length-1&&e in u&&u[e]&&"object"===i(u[e])&&"message"in u[e]&&"string"==typeof u[e].message&&(s={value:u[e].message,info:u[e]}),u=u[e],!1)})),s}:"rich"===t?function(e,t){var n=e&&"object"===i(e)&&e.body;return!!(n&&"object"===i(n)&&t in n&&n[t]&&"object"===i(n[t])&&"message"in n[t]&&"string"==typeof n[t].message)&&{value:n[t].message,info:n[t]}}:"plain"===t?function(e,t){var n=e&&"object"===i(e)&&e.body;return!!(n&&"object"===i(n)&&t in n&&n[t]&&"string"==typeof n[t])&&{value:n[t]}}:"plainNested"===t?function(e,t){var n=e&&"object"===i(e)&&e.body;if(n&&"object"===i(n)){var r=t.split(/(?<!\\)\./).reduce((function(e,t){return e&&"object"===i(e)&&e[t]?e[t]:null}),n);if(r&&"string"==typeof r)return{value:r}}return!1}:function(){throw new TypeError("Unknown `messageStyle` ".concat(t))}()};function J(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}function K(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}var G=function(e){if(!e.includes("-"))throw new Error("Locale not available");return e.replace(/\x2D(?:[\0-,\.-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*$/,"")},Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.locales,n=e.defaultLocales,r=e.localeResolver,o=e.localesBasePath,i=e.localeMatcher;return X({locales:t,defaultLocales:n,localeResolver:r,localesBasePath:o,localeMatcher:i})},X=K((function(e){var t=K((function(e){if("string"!=typeof e)throw new TypeError("Non-string locale type");var n=s(c,e);if("string"!=typeof n)throw new TypeError("`localeResolver` expected to resolve to (URL) string.");return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){var t=k();return J(d?t(n,{method:"HEAD"}):t(n),(function(t){if(404===t.status)throw new Error("Trying again");return d?e:J(t.json(),(function(t){return{locale:e,strings:t}}))}))}),(function(n){if("SyntaxError"===n.name)throw n;return J(f(e),t)}))})),n=e.locales,r=void 0===n?"undefined"!=typeof intlDomLocale?[intlDomLocale]:"undefined"==typeof navigator?[]:navigator.languages:n,o=e.defaultLocales,i=void 0===o?["en-US"]:o,a=e.localeResolver,s=void 0===a?q:a,u=e.localesBasePath,c=void 0===u?".":u,l=e.localeMatcher,f=void 0===l?"lookup":l,p=e.headOnly,d=void 0!==p&&p;if("lookup"===f)f=G;else if("function"!=typeof f)throw new TypeError('`localeMatcher` must be "lookup" or a function!');return B([].concat(y(r),y(i)),t,"No matching locale found for "+[].concat(y(r),y(i)).join(", "))}));function Y(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}var Q=function(e){var t=e.strings,n=e.resolvedLocale,r=e.messageStyle,a=void 0===r?"richNested":r,s=e.allSubstitutions,u=e.insertNodes,c=e.keyCheckerConverter,l=void 0===c?V:c,f=e.defaults,p=e.substitutions,d=e.dom,h=void 0!==d&&d,v=e.forceNodeReturn,g=void 0!==v&&v,m=e.throwOnMissingSuppliedFormatters,b=void 0===m||m,w=e.throwOnExtraSuppliedFormatters,_=void 0===w||w;if(!t||"object"!==i(t))throw new TypeError("Locale strings must be an object!");var x=H({messageStyle:a}),S=function(e,r){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=c.allSubstitutions,v=void 0===d?s:d,m=c.defaults,w=void 0===m?f:m,S=c.dom,j=void 0===S?h:S,E=c.forceNodeReturn,k=void 0===E?g:E,O=c.throwOnMissingSuppliedFormatters,F=void 0===O?b:O,I=c.throwOnExtraSuppliedFormatters,D=void 0===I?_:I;e=l(e,a);var N=x(t,e),T=function(e){var t,n=e.message,r=e.defaults,o=e.messageStyle,a=e.messageForKey,s=void 0===a?H({messageStyle:o}):a,u=e.key;if("string"==typeof n)t=n;else if(!1===r||null==r)t=!1;else{if(!r||"object"!==i(r))throw new TypeError("Default locale strings must resolve to `false`, nullish, or an object!");var c=s(r,u);t=c?c.value:c}if(!1===t)throw new Error("Key value not found for key: (".concat(u,")"));return t}({message:!(!N||"string"!=typeof N.value)&&N.value,defaults:w,messageForKey:x,key:e});return function(e){var t=e.string,n=e.locale,r=e.locals,o=e.switches,i=e.allSubstitutions,a=void 0===i?[P]:i,s=e.insertNodes,u=void 0===s?W:s,c=e.substitutions,l=void 0!==c&&c,f=e.dom,p=void 0!==f&&f,d=e.forceNodeReturn,h=void 0!==d&&d,v=e.throwOnMissingSuppliedFormatters,g=void 0===v||v,m=e.throwOnExtraSuppliedFormatters,b=void 0===m||m;if("string"!=typeof t)throw new TypeError("An options object with a `string` property set to a string must be provided for `getDOMForLocaleString`.");var w=function(e){var t=A();return h?t.createTextNode(e):e},_=[];if(!l&&!a&&!g)return w(t);l||(l={});var x=u({string:t,dom:p,usedKeys:_,substitutions:l,allSubstitutions:a,locale:n,locals:r,switches:o,missingSuppliedFormatters:function(e){var t=e.key,n=e.formatter,r=n.isMatch(t);if(n.constructor.isMatchingKey(t)&&!r){if(g)throw new Error("Missing formatting key: ".concat(t));return!0}return!1},checkExtraSuppliedFormatters:function(e){var t=e.substitutions;b&&Object.keys(t).forEach((function(e){if(!_.includes(e))throw new Error("Extra formatting key: ".concat(e))}))}});if("string"==typeof x)return w(x);var S=A().createDocumentFragment();return S.append.apply(S,y(x)),S}({string:T,locals:t.head&&t.head.locals,switches:t.head&&t.head.switches,locale:n,allSubstitutions:v,insertNodes:u,substitutions:o(o({},p),r),dom:j,forceNodeReturn:k,throwOnMissingSuppliedFormatters:F,throwOnExtraSuppliedFormatters:D})};return S.resolvedLocale=n,S.strings=t,S.sort=function(e,t){return F(n,e,t)},S.sortList=function(e,t,r,o){return D(n,e,t,r,o)},S.list=function(e,t){return I(n,e,t)},S},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.locales,n=e.defaultLocales,r=e.localeStringFinder,o=void 0===r?Z:r,i=e.localesBasePath,a=e.localeResolver,s=e.localeMatcher,u=e.messageStyle,c=e.allSubstitutions,l=e.insertNodes,f=e.keyCheckerConverter,p=e.defaults,d=e.substitutions,h=e.maximumLocalNestingDepth,v=e.dom,g=e.forceNodeReturn,y=e.throwOnMissingSuppliedFormatters,m=e.throwOnExtraSuppliedFormatters;try{return Y(o({locales:t,defaultLocales:n,localeResolver:a,localesBasePath:i,localeMatcher:s}),(function(e){var t,r,b=e.strings,w=e.locale;return t=function(){return Q({strings:b,resolvedLocale:w,messageStyle:u,allSubstitutions:c,insertNodes:l,keyCheckerConverter:f,defaults:p,substitutions:d,maximumLocalNestingDepth:h,dom:v,forceNodeReturn:g,throwOnMissingSuppliedFormatters:y,throwOnExtraSuppliedFormatters:m})},(r=function(){if(!p&&n)return Y(o({locales:n,defaultLocales:[],localeResolver:a,localesBasePath:i,localeMatcher:s}),(function(e){p=e.strings,e.locale===w&&(p=null)}))}())&&r.then?r.then(t):t(r)}))}catch(e){return Promise.reject(e)}};function te(e,{before:t,after:n,favicon:r,canvas:o,image:i=!0,acceptErrors:a}={}){return e=Array.isArray(e)?e:[e],Promise.all(e.map((e=>function(e){let s,u={};Array.isArray(e)?[s,u={}]=e:s=e;let{favicon:c=r}=u;const{before:l=t,after:f=n,canvas:p=o,image:d=i}=u;function h(){l?l.before(v):f?f.after(v):document.head.append(v)}const v=document.createElement("link");return new Promise(((e,t)=>{let n=t;if(a&&(n="function"==typeof a?n=>{a({error:n,stylesheetURL:s,options:u,resolve:e,reject:t})}:e),s.endsWith(".css")?c=!1:s.endsWith(".ico")&&(c=!0),c){if(v.rel="shortcut icon",v.type="image/x-icon",!1===d)return v.href=s,h(),void e(v);const n=document.createElement("canvas");n.width=16,n.height=16;const r=n.getContext("2d"),o=document.createElement("img");return o.addEventListener("error",(e=>{t(e)})),o.addEventListener("load",(()=>{if(!r)throw new Error("Canvas context could not be found");r.drawImage(o,0,0),v.href=p?n.toDataURL("image/x-icon"):s,h(),e(v)})),void(o.src=s)}v.rel="stylesheet",v.type="text/css",v.href=s,h(),v.addEventListener("error",(e=>{n(e)})),v.addEventListener("load",(()=>{e(v)}))}))}(e))))}var ne,re={exports:{}};var oe=(ne||(ne=1,function(e){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){return i(e)||s(e,t)||u(e,t)||f()}function r(e){return o(e)||a(e)||u(e)||l()}function o(e){if(Array.isArray(e))return c(e)}function i(e){if(Array.isArray(e))return e}function a(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function s(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var p=/^(?:submit|button|image|reset|file)$/i,d=/^(?:input|select|textarea|keygen)/i,h=/(\[[^[\]]*])/g;function v(e,o){"object"!==t(o)?o={hash:Boolean(o)}:void 0===o.hash&&(o.hash=!0);var i=o.hash?{}:"",a=o.serializer||(o.hash?m:b),s=e&&e.elements?r(e.elements):[],u=Object.create(null);return s.forEach((function(e){if((o.disabled||!e.disabled)&&e.name&&d.test(e.nodeName)&&!p.test(e.type)){var t=e.name,n=e.type,s=e.name,c=e.checked,l=e.value;if("checkbox"!==n&&"radio"!==n||c||(l=void 0),o.empty){if("checkbox"!==n||c||(l=""),"radio"===n&&(u[s]||c?c&&(u[s]=!0):u[s]=!1,void 0===l))return}else if(!l)return;if("select-multiple"===n){var f=!1;return r(e.options).forEach((function(e){var n=o.empty&&!e.value,r=e.value||n;e.selected&&r&&(f=!0,i=o.hash&&"[]"!==t.slice(-2)?a(i,t+"[]",e.value):a(i,t,e.value))})),void(!f&&o.empty&&(i=a(i,t,"")))}i=a(i,t,l)}})),o.empty&&Object.entries(u).forEach((function(e){var t=n(e,2),r=t[0];t[1]||(i=a(i,r,""))})),i}function g(e){var t=[],n=/^([^[\]]*)/,r=new RegExp(h),o=n.exec(e);for(o[1]&&t.push(o[1]);null!==(o=r.exec(e));)t.push(o[1]);return t}function y(e,t,n){if(0===t.length)return n;var r=t.shift(),o=r.match(/^\[(.+?)]$/);if("[]"===r)return e=e||[],Array.isArray(e)?e.push(y(null,t,n)):(e._values=e._values||[],e._values.push(y(null,t,n))),e;if(o){var i=o[1],a=Number(i);isNaN(a)?(e=e||{})[i]=y(e[i],t,n):(e=e||[])[a]=y(e[a],t,n)}else e[r]=y(e[r],t,n);return e}function m(e,t,n){if(t.match(h))y(e,g(t),n);else{var r=e[t];r?(Array.isArray(r)||(e[t]=[r]),e[t].push(n)):e[t]=n}return e}function b(e,t,n){return n=n.replace(/(\r)?\n/g,"\r\n"),n=(n=encodeURIComponent(n)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+n}function w(e,o){Object.entries(o).forEach((function(o){var i=n(o,2),a=i[0],s=i[1],u=e[a],c=!1;if(!u&&!(u=e.querySelector('[name="'.concat(a,'"]')))){if(!((u=e[a+"[]"])&&"object"===t(u)&&"length"in u||(u=e.querySelectorAll('[name="'.concat(a,'[]"]'))).length))throw new Error("Name not found ".concat(a));c=!0}var l=u.type;if("checkbox"===l&&(u.checked=""!==s),("radio"===l||u[0]&&"radio"===u[0].type)&&r(e.querySelectorAll('[name="'.concat(a+(c?"[]":""),'"]'))).forEach((function(e){e.checked=s===e.value})),u[0]&&"select-multiple"===u[0].type)r(u[0].options).forEach((function(e){s.includes(e.value)&&(e.selected=!0)}));else if(Array.isArray(s)){if("select-multiple"===l)return void r(u.options).forEach((function(e){s.includes(e.value)&&(e.selected=!0)}));s.forEach((function(e,t){var n=u[t];if("checkbox"!==n.type)"select-multiple"!==n.type?n.value=e:r(n.options).forEach((function(t){e.includes(t.value)&&(t.selected=!0)}));else{var o=n.value===e||"on"===e;n.checked=o}}))}else u.value=s}))}e.deserialize=w,e.serialize=v,Object.defineProperty(e,"__esModule",{value:!0})}(re.exports)),re.exports);var ie,ae={exports:{}};var se=(ie||(ie=1,function(e){let t;"undefined"!=typeof window&&window&&(t=window);let n="undefined"!=typeof document&&document||t?.document;const r=["$plugins","$map"],o="http://www.w3.org/1999/xhtml",i=/-([a-z])/gu,a=new Map([["maxlength","maxLength"],["minlength","minLength"],["readonly","readOnly"]]),s=new Set(["checked","defaultChecked","defaultSelected","disabled","indeterminate","open","readOnly","selected","accessKey","async","autocapitalize","autofocus","contentEditable","defaultValue","defer","draggable","formnovalidate","hidden","innerText","inputMode","ismap","multiple","novalidate","pattern","required","spellcheck","translate","value","willvalidate"]),u=new Set(["autocomplete","dir","integrity","lang","max","min","minLength","maxLength","title"]),c=e=>{if(!n)throw new Error("No document object");return n.querySelector(e)},l=e=>{if(!n)throw new Error("No document object");return[...n.querySelectorAll(e)]};function f(e,t){const n=e.nodeName?.toLowerCase();"template"!==n?e.append(t):e.content.append(t)}function p(e,t,n,r){e.addEventListener(t,n,Boolean(r))}function d(e,t,r){if(!n)throw new Error("No document defined");if(!/^\w+$/u.test(r))throw new TypeError(`Bad ${e} reference; with prefix "${t}" and arg "${r}"`);const o=n.createElement("div");return o.innerHTML="&"+t+r+";",n.createTextNode(o.innerHTML)}function h(e,t){return t.toUpperCase()}function v(e){return null==e}function g(e){const t=typeof e;if("string"==typeof e||void 0===e)return"string";if("object"===t){if(null===e)return"null";if(Array.isArray(e))return"array";if("nodeType"in e)switch(e.nodeType){case 1:return"element";case 7:return"processing-instruction";case 9:return"document";case 11:return"fragment";default:return"non-container node"}}return t}function y(e,t){return e.append(t),e}function m(e){return function(...t){const n=t[0];let r=e[""]?' xmlns="'+e[""]+'"':n;for(const[t,n]of Object.entries(e))""!==t&&(r+=" xmlns:"+t+'="'+n+'"');return r}}function b(e){return function(t,n){const r=e.childNodes[n],o=Array.isArray(t)?j(...t):j(t);r.replaceWith(o)}}function w(e){return function(t){if("string"==typeof t||"number"==typeof t)throw new TypeError("Unexpected text string/number in the head");Array.isArray(t)?e.append(j(...t)):"object"==typeof t&&"nodeType"in t?e.append(t):e.append(j(t))}}function _(e){return function(t){"string"==typeof t||"number"==typeof t?e.append(String(t)):Array.isArray(t)?e.append(j(...t)):"object"==typeof t&&"nodeType"in t?e.append(t):e.append(j(t))}}function x(e,t,n,r,o){if(r.$state=o??"attributeValue",n&&"object"==typeof n){const o=S(r,Object.keys(n)[0]);if(o)return o.set({opts:r,element:e,attribute:{name:t,value:n}})}return n}function S(e,t){return e.$plugins&&e.$plugins.find((e=>e.name===t))}const j=function e(...l){if(!t)throw new Error("No window object");if(!n)throw new Error("No document object");let j=n.createDocumentFragment();function E(t){if(!n)throw new Error("No document object");for(let[r,o]of Object.entries(t))if(r=a.has(r)?String(a.get(r)):r,u.has(r))o=x(j,r,o,A),v(o)||(j[r]=o);else if(s.has(r))o=x(j,r,o,A),j[r]=o;else switch(r){case"#":A.$state="fragmentChildren",k[k.length]=e(A,o);break;case"$shadow":{const{open:t,closed:r}=o;let{content:i,template:a}=o;const s=j.attachShadow({mode:r||!1===t?"closed":"open"});a?(Array.isArray(a)?a="object"===g(a[0])?e("template",...a,n.body):e("template",a,n.body):"string"==typeof a&&(a=c(a)),e(a.content.cloneNode(!0),s)):(i||!0!==t&&(i=t||"boolean"==typeof r?i:r),i&&"boolean"!=typeof i&&(Array.isArray(i)?e({"#":i},s):e(i,s)));break}case"$state":case"is":case"xmlns":break;case"$custom":Object.assign(j,o);break;case"$define":{if(!("localName"in j))throw new Error("Element expected for `$define`");const e=j.localName.toLowerCase(),r=!e.includes("-");let i;if(r&&(i=j.getAttribute("is"),!i)){if(!Object.hasOwn(t,"is"))throw new TypeError(`Expected \`is\` with \`$define\` on built-in; args: ${JSON.stringify(l)}`);t.is=x(j,"is",t.is,A),j.setAttribute("is",t.is),({is:i}=t)}const a=r?i:e;if(window.customElements.get(a))break;const s=t=>{if(!n)throw new Error("No document object");const o="object"==typeof c&&"string"==typeof c.extends?n.createElement(c.extends).constructor:r?n.createElement(e).constructor:window.HTMLElement;return t?class extends o{constructor(){super(),t.call(this)}}:class extends o{}};let u,c,f;const p=o;Array.isArray(p)?p.length<=2?([u,c]=p,"string"==typeof c?c={extends:c}:c&&!Object.hasOwn(c,"extends")&&(f=c),"object"==typeof u&&(f=u,u=s())):([u,f,c]=p,"string"==typeof c&&(c={extends:c})):"function"==typeof p?u=p:(f=p,u=s()),u.toString().startsWith("class")||(u=s(u)),!c&&r&&(c={extends:e}),f&&Object.entries(f).forEach((([e,t])=>{u.prototype[e]=t})),window.customElements.define(a,u,"object"==typeof c?c:void 0);break}case"$symbol":{const[e,t]=o;if("function"==typeof t){const n=t.bind(j);"string"==typeof e?j[Symbol.for(e)]=n:j[e]=n}else{const n=t;n.elem=j,"string"==typeof e?j[Symbol.for(e)]=n:j[e]=n}break}case"$data":P(o);break;case"$attribute":{const e=o,t=3===e.length?n.createAttributeNS(e[0],e[1]):n.createAttribute(e[0]);t.value=e.at(-1),k[k.length]=t;break}case"$text":{const e=n.createTextNode(o);k[k.length]=e;break}case"$document":{const t=n.implementation.createHTMLDocument();if(!o)throw new Error("Bad attribute value");const r=o;if(r.childNodes){const e=r.childNodes.length;for(;t.childNodes[e];)t.childNodes[e].remove();r.childNodes.forEach(b(t))}else{if(r.$DOCTYPE){const n={$DOCTYPE:r.$DOCTYPE},o=e(n);t.firstChild?.replaceWith(o)}const o=t.querySelector("html"),i=o?.querySelector("head"),a=o?.querySelector("body");if(r.title||r.head){const e=n.createElement("meta");e.setAttribute("charset","utf-8"),i?.append(e),r.title&&(t.title=r.title),r.head&&i&&r.head.forEach(w(i))}r.body&&a&&r.body.forEach(_(a))}if(r.xmlDeclaration){const{version:e,encoding:o,standalone:i}=r.xmlDeclaration,a=`${e?` version="${e}"`:""}${o?` encoding="${o}"`:""}${i?' standalone="yes"':""}`.slice(1),s=n.createProcessingInstruction("xml",a);t.insertBefore(s,t.firstChild)}k[k.length]=t;break}case"$DOCTYPE":{const e=o,t=n.implementation.createDocumentType(e.name,e.publicId||"",e.systemId||"");k[k.length]=t;break}case"$on":for(let[e,t]of Object.entries(o||{})){if("function"==typeof t&&(t=[t,!1]),"function"!=typeof t[0])throw new TypeError(`Expect a function for \`$on\`; args: ${JSON.stringify(l)}`);p(j,e,t[0],t[1])}break;case"className":case"class":o=x(j,r,o,A),v(o)||(j.className=o);break;case"dataset":{const e=(t,n)=>{let r="";const o=""!==n;Object.keys(t).forEach((a=>{const s=t[a];if(r=o?n+a.replaceAll(i,h).replace(/^([a-z])/u,h):n+a.replaceAll(i,h),null===s||"object"!=typeof s)return v(s)||(j.dataset[r]=s),void(r=n);e(s,r)}))};e(o,"");break}case"innerHTML":v(o)||(j.innerHTML=o);break;case"htmlFor":case"for":if("label"===O){o=x(j,r,o,A),v(o)||(j.htmlFor=o);break}o=x(j,r,o,A),j.setAttribute(r,o);break;default:{if(r.startsWith("on")){o=x(j,r,o,A),j[r]=o;break}if("style"===r){if(o=x(j,r,o,A),v(o))break;if("object"==typeof o){for(const[e,t]of Object.entries(o))v(t)||("float"===e?(j.style.cssFloat=t,j.style.styleFloat=t):j.style[e.replaceAll(i,h)]=t);break}j.setAttribute(r,o);break}const e=r,t=S(A,e);if(t){t.set({opts:A,element:k[0],attribute:{name:e,value:o}});break}o=x(j,r,o,A),j.setAttribute(r,o);break}}}const k=[];let O,A,F=!1,I=0;if("object"===g(l[0])&&Object.keys(l[0]).some((e=>r.includes(e)))){if(A=l[0],void 0===A.$state&&(F=!0,A.$state="root"),Array.isArray(A.$map)&&(A.$map={root:A.$map}),"$plugins"in A){if(!Array.isArray(A.$plugins))throw new TypeError(`\`$plugins\` must be an array; args: ${JSON.stringify(l)}`);A.$plugins.forEach((e=>{if(!e||"object"!=typeof e)throw new TypeError(`Plugin must be an object; args: ${JSON.stringify(l)}`);if(!e.name||!e.name.startsWith("$_"))throw new TypeError(`Plugin object name must be present and begin with \`$_\`; args: ${JSON.stringify(l)}`);if("function"!=typeof e.set)throw new TypeError(`Plugin object must have a \`set\` method; args: ${JSON.stringify(l)}`)}))}I=1}else A={$state:void 0};const D=l.length,N=A.$map&&A.$map.root,P=e=>{let t,n;const r=N;if(!0===e)[t,n]=r;else if(Array.isArray(e)){if("string"==typeof e[0])return void e.forEach((e=>{P(A.$map[e])}));t=e[0]||r[0],n=e[1]||r[1]}else/^\[object (?:Weak)?Map\]$/u.test([].toString.call(e))?(t=e,n=r[1]):(t=r[0],n=e);t.set(j,n)};for(let r=I;r<D;r++){let i=l[r];const a=g(i);switch(a){case"null":if(r===D-1)return k.length<=1?k[0]:k.reduce(y,n.createDocumentFragment());throw new TypeError(`\`null\` values not allowed except as final Jamilih argument; index ${r} on args: ${JSON.stringify(l)}`);case"string":switch(i){case"!":k[k.length]=n.createComment(l[++r]);break;case"?":{i=l[++r];let e=l[++r];const t=e;if(t&&"object"==typeof t){const n=[];for(const[e,r]of Object.entries(t))n.push(e+'="'+r.replaceAll('"',""")+'"');e=n.join(" ")}try{k[k.length]=n.createProcessingInstruction(i,e)}catch(t){k[k.length]=n.createComment("?"+i+" "+e+"?")}break}case"&":k[k.length]=d("entity","",l[++r]);break;case"#":k[k.length]=d("decimal",i,String(l[++r]));break;case"#x":k[k.length]=d("hexadecimal",i,l[++r]);break;case"![":try{k[k.length]=n.createCDATASection(l[++r])}catch(e){k[k.length]=n.createTextNode(l[r])}break;case"":k[k.length]=j=n.createDocumentFragment(),A.$state="fragment";break;default:{O=i;const e=l[r+1];if(e&&"object"===g(e)&&e.is){const{is:t}=e;j=n.createElementNS?n.createElementNS(o,O,{is:t}):n.createElement(O,{is:t})}else j=n.createElementNS?n.createElementNS(o,O):n.createElement(O);A.$state="element",k[k.length]=j;break}}break;case"object":{if(!i||"object"!=typeof i)throw new Error("Null should not reach here");const e=i;if("xmlns"in e){const n=e,r=n.xmlns&&"object"==typeof n.xmlns?m(n.xmlns):' xmlns="'+n.xmlns+'"';j=k[k.length-1]=(new t.DOMParser).parseFromString((new t.XMLSerializer).serializeToString(j).replace(' xmlns="'+o+'"',r),"application/xml").documentElement,A.$state="element"}E(e);break}case"processing-instruction":case"document":case"fragment":case"element":if(0===r&&(j=i,A.$state="element"),r===D-1||r===D-2&&null===l[r+1]){const e=k.length;for(let t=0;t<e;t++)f(i,k[t])}else k[k.length]=i;break;case"array":{const t=i,r=t.length;for(let o=0;o<r;o++){const r=t[o],i=typeof r;if(null===r||v(r))throw new TypeError(`Bad children (parent array: ${JSON.stringify(l)}; index ${o} of child: ${JSON.stringify(t)})`);switch(i){case"string":case"number":case"boolean":f(j,n.createTextNode(String(r)));break;default:if("object"!=typeof r)throw new TypeError(`Bad children (parent array: ${JSON.stringify(l)}; index ${o} of child: ${JSON.stringify(t)})`);if(Array.isArray(r))A.$state="children",f(j,e(A,...r));else if("#"in r)A.$state="fragmentChildren",f(j,e(A,r["#"]));else{let e;"nodeType"in r||(e=x(j,null,r,A,"children")),f(j,e||r)}}}break}default:throw new TypeError(`Unexpected type: ${a}; arg: ${i}; index ${r} on args: ${JSON.stringify(l)}`)}}const T=k[0]||j;return F&&A.$map&&A.$map.root&&P(!0),T};class E extends Error{constructor(e,t){super(e),this.code=0,this.name=t}}j.toJML=function(e,{stringOutput:n=!1,reportInvalidState:r=!0,stripWhitespace:o=!1}={}){if(!t)throw new Error("No window object set");"string"==typeof e&&(e=(new t.DOMParser).parseFromString(e,"text/html"));const i=[];let a=i,s=0;function u(e){if(r){const t=new E(e,"INVALID_STATE_ERR");throw t.code=11,t}}function c(e,t){t.systemId.includes('"')&&t.systemId.includes("'")&&u("systemId cannot have both single and double quotes.");const{publicId:n,systemId:r}=t;r&&(e.systemId=r),n&&(e.publicId=n)}function l(e){a[s]=e,s++}function f(){l([]),a=a[s-1],s=0}function p(e,t){a=a[s-1][e],s=0,t&&(a=a[t])}function d(e,t){const n="nodeType"in e?e.nodeType:null;if(!n)throw new TypeError("Not an XML type");if(5===n)return void l(["&",e.nodeName]);t={...t};const r=/^([\u0009\u000A\u000D\u0020-\uD7FF\uE000-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$/u;let i,h;function v(){i=a,h=s}function g(){a=i,s=h,s++}switch([2,3,4,7,8].includes(n)&&e.nodeValue&&!r.test(e.nodeValue)&&u("Node has bad XML character value"),n){case 1:{const n=e;v();const r=n.nodeName.toLowerCase();f(),l(r);const o={};let i=!1;t[n.prefix||""]!==n.namespaceURI&&(t[n.prefix||""]=n.namespaceURI,n.prefix?o["xmlns:"+n.prefix]=n.namespaceURI:n.namespaceURI?o.xmlns=n.namespaceURI:o.xmlns=null,i=!0),n.attributes.length?l([...n.attributes].reduce((function(e,t){return e[t.name]=t.value,e}),o)):i&&l(o);const{childNodes:a}=n;a.length&&(f(),[...a].forEach((function(e){d(e,t)}))),g();break}case 2:{const t=e;l({$attribute:[t.namespaceURI,t.name,t.value]});break}case 3:{const t=e;if(!t.nodeValue)throw new Error("Unexpected null comment value");if(o&&/^\s+$/u.test(t.nodeValue))return void l("");l(t.nodeValue);break}case 4:{const t=e;t.nodeValue?.includes("]]>")&&u("CDATA cannot end with closing ]]>"),l(["![",t.nodeValue]);break}case 7:{const t=e;/^xml$/iu.test(t.target)&&u('Processing instructions cannot be "xml".'),t.target.includes("?>")&&u("Processing instruction targets cannot include ?>"),t.target.includes(":")&&u('The processing instruction target cannot include ":"'),t.data.includes("?>")&&u("Processing instruction data cannot include ?>"),l(["?",t.target,t.data]);break}case 8:{const t=e;if(!t.nodeValue)throw new Error("Unexpected null comment value");(t.nodeValue.includes("--")||t.nodeValue.length&&t.nodeValue.lastIndexOf("-")===t.nodeValue.length-1)&&u("Comments cannot include --"),l(["!",t.nodeValue]);break}case 9:{const n=e;v(),l({$document:{childNodes:[]}}),p("$document","childNodes");const{childNodes:r}=n;r.length||u("Documents must have a child node"),[...r].forEach((function(e){d(e,t)})),g();break}case 10:{const t=e;v();const n={$DOCTYPE:{name:t.name}};/^(\u0020|\u000D|\u000A|[a-zA-Z0-9]|[-'()+,./:=?;!*#@$_%])*$/u.test(t.publicId)||u("A publicId must have valid characters."),c(n.$DOCTYPE,t),l(n),g();break}case 11:{const n=e;v(),l({"#":[]}),p("#");const{childNodes:r}=n;[...r].forEach((function(e){d(e,t)})),g();break}default:throw new TypeError("Not an XML type")}}return d(e,{}),n?JSON.stringify(i[0]):i[0]},j.toJMLString=function(e,t){return j.toJML(e,Object.assign(t||{},{stringOutput:!0}))},j.toDOM=function(...e){return j(...e)},j.toHTML=function(...e){const t=j(...e);switch(t.nodeType){case 1:return t.outerHTML;case 2:return`${t.name}="${t.value.replaceAll('"',""")}"`;case 3:if(!t.nodeValue)throw new TypeError("Unexpected null Text node");return t.nodeValue;case 7:{const e=t;return`<?${e.target} ${e.data}?>`}case 9:case 11:return[...t.childNodes].map((e=>j.toHTML(e))).join("");case 10:{const e=t;return`<!DOCTYPE ${e.name}${e.publicId?` PUBLIC "${e.publicId}" "${e.systemId}"`:e.systemId?` SYSTEM "${e.systemId}"`:""}>`}default:throw new Error("Unexpected node type")}},j.toDOMString=function(...e){return j.toHTML(...e)},j.toXML=function(...e){if(!t)throw new Error("No window object set");const n=j(...e);return(new t.XMLSerializer).serializeToString(n)},j.toXMLDOMString=function(...e){return j.toXML(...e)};class k extends Map{get(e){const t="string"==typeof e?c(e):e;return super.get.call(this,t)}set(e,t){const n="string"==typeof e?c(e):e;return super.set.call(this,n,t)}invoke(e,t,...n){const r="string"==typeof e?c(e):e;return this.get(r)[t](r,...n)}}class O extends WeakMap{get(e){const t="string"==typeof e?c(e):e;if(!t)throw new Error("Can't find the element");return super.get.call(this,t)}set(e,t){const n="string"==typeof e?c(e):e;if(!n)throw new Error("Can't find the element");return super.set.call(this,n,t)}invoke(e,t,...n){const r="string"==typeof e?c(e):e;if(!r)throw new Error("Can't find the element");return this.get(r)[t](r,...n)}}function A(e,t){return[...e].reduce(((e,n)=>(e.push(n,t),e)),[]).slice(0,-1)}j.Map=k,j.WeakMap=O,j.weak=function(e,...t){const n=new O;return[n,j({$map:[n,e]},...t)]},j.strong=function(e,...t){const n=new k;return[n,j({$map:[n,e]},...t)]},j.symbol=j.sym=j.for=function(e,t){return("string"==typeof e?c(e):e)["symbol"==typeof t?t:Symbol.for(t)]},j.command=function(e,t,n,...r){if(!(e="string"==typeof e?c(e):e))throw new Error("No element found");let o;if(["symbol","string"].includes(typeof t))return o=j.sym(e,t),"function"==typeof o?o(n,...r):o[n](...r);if(o=t.get(e),!o)throw new Error("No map found");return"function"==typeof o?o.call(e,n,...r):o[n](e,...r)},j.setWindow=r=>{t=r,n=t?.document,n&&n.body&&(e.body=n.body)},j.getWindow=()=>{if(!t)throw new Error("No window object set");return t},e.body=void 0,n&&n.body&&(e.body=n.body);const F=" ";e.$=c,e.$$=l,e.DOMException=E,e.default=j,e.glue=A,e.jml=j,e.nbsp=F,Object.defineProperty(e,"__esModule",{value:!0})}(ae.exports)),ae.exports);const ue=(e,t)=>{const n="string"==typeof e?(r=e,document.querySelector(r)):e;var r;return n?.querySelector(t)},ce={en:{submit:"Submit",cancel:"Cancel",ok:"Ok"}};const le=new class{constructor({locale:e,localeObject:t}={}){this.localeStrings=ce.en,this.setLocale({locale:e,localeObject:t})}setLocale({locale:e,localeObject:t={}}){this.localeStrings={...ce.en,...e?ce[e]:{},...t}}makeDialog({atts:e={$on:null},children:t=[],close:n,remove:r=!0}){n&&(e.$on||(e.$on={}),e.$on.close||(e.$on.close=n));const o=se.jml("dialog",e,t,se.$("#main"));return o.showModal(),r&&o.addEventListener("close",(()=>{o.remove()})),o}makeSubmitDialog({submit:e,submitClass:t="submit",...n}){const r=this.makeCancelDialog(n);return ue(r,`button.${n.cancelClass||"cancel"}`).before(se.jml("button",{class:t,$on:{click(t){e&&e.call(this,{e:t,dialog:r})}}},[this.localeStrings.submit]),se.nbsp.repeat(2)),r}makeCancelDialog({submit:e,cancel:t,cancelClass:n="cancel",submitClass:r="submit",...o}){const i=this.makeDialog(o);return se.jml("div",{class:r},[["br"],["br"],["button",{class:n,$on:{click(e){e.preventDefault(),t&&!1===t.call(this,{e:e,dialog:i})||i.close()}}},[this.localeStrings.cancel]]],i),i}alert(e,t){e="string"==typeof e?{message:e}:e;const{ok:n=("object"==typeof t?!1!==t.ok:!1!==t),message:r,submitClass:o="submit"}=e;return new Promise((e=>{const t=se.jml("dialog",[r,...n?[["br"],["br"],["div",{class:o},[["button",{$on:{click(){t.close(),e()}}},[this.localeStrings.ok]]]]]:[]],se.$("#main"));t.showModal()}))}prompt(e){e="string"==typeof e?{message:e}:e;const{message:t,submit:n,...r}=e;return new Promise(((e,o)=>{this.makeSubmitDialog({...r,submit:function({e:t,dialog:r}){n&&n.call(this,{e:t,dialog:r}),r.close(),e(ue(r,"input").value)},cancel(){o(new Error("cancelled"))},children:[["label",[t,se.nbsp.repeat(3),["input"]]]]})}))}confirm(e){e="string"==typeof e?{message:e}:e;const{message:t,submitClass:n="submit"}=e;return new Promise(((e,r)=>{const o=se.jml("dialog",[t,["br"],["br"],["div",{class:n},[["button",{$on:{click(){o.close(),e()}}},[this.localeStrings.ok]],se.nbsp.repeat(2),["button",{$on:{click(){o.close(),r(new Error("cancelled"))}}},[this.localeStrings.cancel]]]]],se.$("#main"));o.showModal()}))}};class fe{constructor({langData:e}){this.langData=e}localeFromLangData(e){return this.langData["localization-strings"][e]}getLanguageFromCode(e){return this.localeFromLangData(e).languages[e]}getFieldNameFromPluginNameAndLocales({pluginName:e,workI18n:t,targetLanguage:n,applicableFieldI18N:r,meta:o,metaApplicableField:i}){return t(["plugins",e,"fieldname"],{...o,...i,applicableField:r,targetLanguage:n?this.getLanguageFromCode(n):""},{throwOnExtraSuppliedFormatters:!1})}getLanguageInfo({$p:e}){const t=this.langData.languages,n=e=>!!t.some((({code:t})=>t===e))&&e,r=e.get("lang",!0),o=navigator.languages.filter(n),i=o.length?o:[n(navigator.language)||"en-US"];return{lang:[...(r||i[0]).split("."),...i],langs:t,languageParam:r,fallbackLanguages:i}}}var pe=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch(e){}r||(r=window._),e.exports=r},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(47),i="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!=e&&"object"==n(e)}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var t=n(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(52),o=n(37),i=n(7);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(9),o=n(101),i=n(102),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),i=n(133),a=n(61),s=n(134),u=n(8),c=n(48),l=c(r),f=c(o),p=c(i),d=c(a),h=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t,n){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(2),i=n(121),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,u=s&&s.exports===a?o.Buffer:void 0,c=(u?u.isBuffer:void 0)||i;e.exports=c}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(90),o=n(91),i=n(92),a=n(93),s=n(94);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(30);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(8),o=n(5);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(4)(Object,"create");e.exports=r},function(e,t,n){var r=n(114);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(49),o=n(50);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=i?i(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?o(n,c,l):r(n,c,l)}return n}},function(e,t,n){var r=n(120),o=n(3),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){var r=n(122),o=n(35),i=n(36),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(65),o=n(150)(r);e.exports=o},function(e,t){e.exports=function(e){return e}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(154),i=n(164),a=n(25),s=n(0),u=n(173);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==r(e)?s(e)?i(e[0],e[1]):o(e):u(e)}},function(e,t,n){var r=n(44);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(1);function i(e){this._isDirected=!o.has(e,"directed")||e.directed,this._isMultigraph=!!o.has(e,"multigraph")&&e.multigraph,this._isCompound=!!o.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=o.constant(void 0),this._defaultEdgeLabelFn=o.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function a(e,t){e[t]?e[t]++:e[t]=1}function s(e,t){--e[t]||delete e[t]}function u(e,t,n,r){var i=""+t,a=""+n;if(!e&&i>a){var s=i;i=a,a=s}return i+""+a+""+(o.isUndefined(r)?"\0":r)}function c(e,t){return u(e,t.v,t.w,t.name)}e.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(e){return this._label=e,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(e){return o.isFunction(e)||(e=o.constant(e)),this._defaultNodeLabelFn=e,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return o.keys(this._nodes)},i.prototype.sources=function(){var e=this;return o.filter(this.nodes(),(function(t){return o.isEmpty(e._in[t])}))},i.prototype.sinks=function(){var e=this;return o.filter(this.nodes(),(function(t){return o.isEmpty(e._out[t])}))},i.prototype.setNodes=function(e,t){var n=arguments,r=this;return o.each(e,(function(e){n.length>1?r.setNode(e,t):r.setNode(e)})),this},i.prototype.setNode=function(e,t){return o.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},i.prototype.node=function(e){return this._nodes[e]},i.prototype.hasNode=function(e){return o.has(this._nodes,e)},i.prototype.removeNode=function(e){var t=this;if(o.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],o.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),o.each(o.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],o.each(o.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},i.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(t))t="\0";else{for(var n=t+="";!o.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},i.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},i.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},i.prototype.children=function(e){if(o.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return o.keys(t)}else{if("\0"===e)return this.nodes();if(this.hasNode(e))return[]}},i.prototype.predecessors=function(e){var t=this._preds[e];if(t)return o.keys(t)},i.prototype.successors=function(e){var t=this._sucs[e];if(t)return o.keys(t)},i.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return o.union(t,this.successors(e))},i.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},i.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;o.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),o.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var r={};return this._isCompound&&o.each(t.nodes(),(function(e){t.setParent(e,function e(o){var i=n.parent(o);return void 0===i||t.hasNode(i)?(r[o]=i,i):i in r?r[i]:e(i)}(e))})),t},i.prototype.setDefaultEdgeLabel=function(e){return o.isFunction(e)||(e=o.constant(e)),this._defaultEdgeLabelFn=e,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return o.values(this._edgeObjs)},i.prototype.setPath=function(e,t){var n=this,r=arguments;return o.reduce(e,(function(e,o){return r.length>1?n.setEdge(e,o,t):n.setEdge(e,o),o})),this},i.prototype.setEdge=function(){var e,t,n,i,s=!1,c=arguments[0];"object"===r(c)&&null!==c&&"v"in c?(e=c.v,t=c.w,n=c.name,2===arguments.length&&(i=arguments[1],s=!0)):(e=c,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),e=""+e,t=""+t,o.isUndefined(n)||(n=""+n);var l=u(this._isDirected,e,t,n);if(o.has(this._edgeLabels,l))return s&&(this._edgeLabels[l]=i),this;if(!o.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[l]=s?i:this._defaultEdgeLabelFn(e,t,n);var f=function(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}(this._isDirected,e,t,n);return e=f.v,t=f.w,Object.freeze(f),this._edgeObjs[l]=f,a(this._preds[t],e),a(this._sucs[e],t),this._in[t][l]=f,this._out[e][l]=f,this._edgeCount++,this},i.prototype.edge=function(e,t,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(e,t,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return o.has(this._edgeLabels,r)},i.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):u(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[t],e),s(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},i.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var r=o.values(n);return t?o.filter(r,(function(e){return e.v===t})):r}},i.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var r=o.values(n);return t?o.filter(r,(function(e){return e.w===t})):r}},i.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(15),o=n(95),i=n(96),a=n(97),s=n(98),u=n(99);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),i=n(115),a=n(116),s=n(117);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(47),i="object"==r(t)&&t&&!t.nodeType&&t,a=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.process,u=function(){try{return a&&a.require&&a.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(56),o=n(57),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(54)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(62);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(0),i=n(44),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||s.test(e)||!a.test(e)||null!=t&&e in Object(t)}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(8),i=n(3);e.exports=function(e){return"symbol"==r(e)||i(e)&&"[object Symbol]"==o(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(this,n(11))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(50),o=n(30),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(51);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(4),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(119),o=n(21),i=n(0),a=n(12),s=n(53),u=n(22),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var g in e)!t&&!c.call(e,g)||d&&("length"==g||f&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,v))||h.push(g);return h}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=n(e);return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(52),o=n(125),i=n(7);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(39),o=n(40),i=n(38),a=n(57),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t,n){var r=n(60),o=n(38),i=n(6);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(39),o=n(0);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(4)(n(2),"Set");e.exports=r},function(e,t,n){var r=n(2).Uint8Array;e.exports=r},function(e,t,n){var r=n(5),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(148),o=n(6);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(156),o=n(3);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(68),o=n(159),i=n(69);e.exports=function(e,t,n,a,s,u){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(e);if(p&&u.get(t))return p==t;var d=-1,h=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++d<l;){var g=e[d],y=t[d];if(a)var m=c?a(y,g,d,t,e,u):a(g,y,d,e,t,u);if(void 0!==m){if(m)continue;h=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(g===e||s(g,e,n,a,u)))return v.push(t)}))){h=!1;break}}else if(g!==y&&!s(g,y,n,a,u)){h=!1;break}}return u.delete(e),u.delete(t),h}},function(e,t,n){var r=n(32),o=n(157),i=n(158);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(5);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t,n){var r=n(73),o=n(27);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(0),o=n(43),i=n(166),a=n(169);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(73),o=n(21),i=n(0),a=n(53),s=n(34),u=n(27);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var p=u(t[c]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(p,l)&&(i(e)||o(e))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(1),o=n(77);e.exports=function(e,t,n,r){return function(e,t,n,r){var i,a,s={},u=new o,c=function(e){var t=e.v!==i?e.v:e.w,r=s[t],o=n(e),c=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=i,u.decrease(t,c))};for(e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:n},u.add(e,n)}));u.size()>0&&(i=u.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return s}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n<t.length&&(o=t[n].priority<t[o].priority?n:o,r<t.length&&(o=t[r].priority<t[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))},o.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},o.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,o=n[e],i=n[t];n[e]=i,n[t]=o,r[i.key]=e,r[o.key]=t}},function(e,t,n){var r=n(1);e.exports=function(e){var t=0,n=[],o={},i=[];return e.nodes().forEach((function(a){r.has(o,a)||function a(s){var u=o[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach((function(e){r.has(o,e)?o[e].onStack&&(u.lowlink=Math.min(u.lowlink,o[e].index)):(a(e),u.lowlink=Math.min(u.lowlink,o[e].lowlink))})),u.lowlink===u.index){var c,l=[];do{c=n.pop(),o[c].onStack=!1,l.push(c)}while(s!==c);i.push(l)}}(a)})),i}},function(e,t,n){var r=n(1);function o(e){var t={},n={},o=[];if(r.each(e.sinks(),(function a(s){if(r.has(n,s))throw new i;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],o.push(s))})),r.size(t)!==e.nodeCount())throw new i;return o}function i(){}e.exports=o,o.CycleException=i,i.prototype=new Error},function(e,t,n){var r=n(1);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,n,o,i,a,s){r.has(i,n)||(i[n]=!0,o||s.push(n),r.each(a(n),(function(n){e(t,n,o,i,a,s)})),o&&s.push(n))}(e,t,"post"===n,a,o,i)})),i}},function(e,t,n){(function(t){var r=n(226),o=["delete","get","head","patch","post","put"];e.exports.load=function(e,n,i){var a,s,u=n.method?n.method.toLowerCase():"get";function c(e,n){e?i(e):("[object process]"===Object.prototype.toString.call(void 0!==t?t:0)&&"function"==typeof n.buffer&&n.buffer(!0),n.end((function(e,t){e?i(e):i(void 0,t)})))}if(void 0!==n.method?"string"!=typeof n.method?a=new TypeError("options.method must be a string"):-1===o.indexOf(n.method)&&(a=new TypeError("options.method must be one of the following: "+o.slice(0,o.length-1).join(", ")+" or "+o[o.length-1])):void 0!==n.prepareRequest&&"function"!=typeof n.prepareRequest&&(a=new TypeError("options.prepareRequest must be a function")),a)i(a);else if(s=r["delete"===u?"del":u](e),n.prepareRequest)try{n.prepareRequest(s,c)}catch(e){i(e)}else c(void 0,s)}}).call(this,n(13))},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!==e&&"object"===r(e)}},function(e,t,n){(function(r,o){var i,a,s,u;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
2
2
|
/*! Native Promise Only
|
|
3
3
|
v0.8.1 (c) Kyle Simpson
|
|
4
4
|
MIT License: http://getify.mit-license.org
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "textbrowser",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.4",
|
|
4
4
|
"description": "Multilinear text browser",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index-es.min.js",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"tsc": "tsc",
|
|
19
|
+
"prepublishOnly": "npm run rollup",
|
|
19
20
|
"server": "./server/main.js --allowPlugins --namespace=test",
|
|
20
21
|
"start": "static -p 8081",
|
|
21
22
|
"rollup": "rollup -c",
|