@vizabi/reader-ddfcsv 4.5.1 → 4.5.3
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/README.md +98 -88
- package/dist/reader-ddfcsv-polyfill.js +1 -1
- package/dist/reader-ddfcsv-polyfill.js.map +1 -1
- package/dist/reader-ddfcsv.js +1 -8
- package/lib/src/ddf-csv.js +2 -3
- package/lib/src/ddf-csv.js.map +1 -1
- package/lib/src/ddfcsv-reader.js +2 -3
- package/lib/src/ddfcsv-reader.js.map +1 -1
- package/lib/src/file-readers/github-path-adapter.js +1 -2
- package/lib/src/file-readers/github-path-adapter.js.map +1 -1
- package/lib/src/index.js +2 -2
- package/lib/src/resource-selection-optimizer/index.js +1 -2
- package/lib/src/resource-selection-optimizer/index.js.map +1 -1
- package/lib-web/src/ddf-csv.js +2 -3
- package/lib-web/src/ddf-csv.js.map +1 -1
- package/lib-web/src/ddfcsv-reader.js +2 -3
- package/lib-web/src/ddfcsv-reader.js.map +1 -1
- package/lib-web/src/file-readers/frontend-file-reader.js +0 -1
- package/lib-web/src/file-readers/frontend-file-reader.js.map +1 -1
- package/lib-web/src/file-readers/github-path-adapter.js +1 -2
- package/lib-web/src/file-readers/github-path-adapter.js.map +1 -1
- package/lib-web/src/index-web.js +2 -2
- package/lib-web/src/resource-selection-optimizer/index.js +1 -2
- package/lib-web/src/resource-selection-optimizer/index.js.map +1 -1
- package/package.json +3 -4
- package/src/ddf-csv.ts +1 -1
- package/src/ddfcsv-reader.ts +1 -1
- package/src/file-readers/frontend-file-reader.ts +0 -2
- package/src/resource-selection-optimizer/in-clause-under-conjunction.ts +1 -1
- package/src/test-cases/concepts.ts +1 -1
- package/src/test-cases/entities.ts +1 -1
- package/test/definition/concepts-definition.spec.ts +1 -1
- package/test/definition/entities-definition.spec.ts +1 -1
- package/test/definition/schema-definition.spec.ts +1 -1
- package/test/features-service.spec.ts +1 -1
- package/dist/reader-ddfcsv.js.map +0 -1
package/dist/reader-ddfcsv.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DDFCsvReader=e():t.DDFCsvReader=e()}(window,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=50)}([function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){var r=1/0,n=9007199254740991,o=1.7976931348623157e308,i=NaN,u="[object Arguments]",a="[object Function]",c="[object GeneratorFunction]",s="[object String]",f="[object Symbol]",l=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,d=/^0o[0-7]+$/i,y=/^(?:0|[1-9]\d*)$/,v=parseInt;function g(t){return t!=t}function _(t,e){return function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(e,function(e){return t[e]})}var b,m,j=Object.prototype,w=j.hasOwnProperty,O=j.toString,E=j.propertyIsEnumerable,A=(b=Object.keys,m=Object,function(t){return b(m(t))}),S=Math.max;function R(t,e){var r=k(t)||function(t){return function(t){return P(t)&&C(t)}(t)&&w.call(t,"callee")&&(!E.call(t,"callee")||O.call(t)==u)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!w.call(t,i)||o&&("length"==i||D(i,n))||r.push(i);return r}function T(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||j,e!==n)return A(t);var e,r,n,o=[];for(var i in Object(t))w.call(t,i)&&"constructor"!=i&&o.push(i);return o}function D(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||y.test(t))&&t>-1&&t%1==0&&t<e}var k=Array.isArray;function C(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=F(t)?O.call(t):"";return e==a||e==c}(t)}function F(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function P(t){return!!t&&"object"==typeof t}t.exports=function(t,e,n,u){var a;t=C(t)?t:(a=t)?_(a,function(t){return C(t)?R(t):T(t)}(a)):[],n=n&&!u?function(t){var e=function(t){if(!t)return 0===t?t:0;if((t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||P(t)&&O.call(t)==f}(t))return i;if(F(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=F(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(l,"");var r=h.test(t);return r||d.test(t)?v(t.slice(2),r?2:8):p.test(t)?i:+t}(t))===r||t===-r){var e=t<0?-1:1;return e*o}return t==t?t:0}(t),n=e%1;return e==e?n?e-n:e:0}(n):0;var c=t.length;return n<0&&(n=S(c+n,0)),function(t){return"string"==typeof t||!k(t)&&P(t)&&O.call(t)==s}(t)?n<=c&&t.indexOf(e,n)>-1:!!c&&function(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,g,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,n)>-1}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const n=r(4),o=r(1);e.SCHEMAS=new Set(["concepts.schema","entities.schema","datapoints.schema","*.schema"]),e.DATAPOINTS="datapoints",e.ENTITIES="entities",e.CONCEPTS="concepts",e.CONCEPT_TYPE_MEASURE="measure",e.CONCEPT_TYPE_STRING="string",e.CONCEPT_TYPE_ENTITY_DOMAIN="entity_domain",e.CONCEPT_TYPE_ENTITY_SET="entity_set",e.CONCEPT_TYPE_TIME="time",e.RESERVED_CONCEPT="concept",e.RESERVED_CONCEPT_TYPE="concept_type",e.RESERVED_DOMAIN="domain",e.RESERVED_UNIT="unit",e.RESERVED_DRILL_UP="drill_up",e.RESERVED_KEY="key",e.RESERVED_VALUE="value",e.AVAILABLE_QUERY_OPERATORS=new Set(["$eq","$gt","$gte","$lt","$lte","$ne","$in","$nin","$or","$and","$not","$nor","$size","$all","$elemMatch"]),e.AVAILABLE_FROM_CLAUSE_VALUES=new Set([e.CONCEPTS,e.ENTITIES,e.DATAPOINTS,...e.SCHEMAS]),e.AVAILABLE_ORDER_BY_CLAUSE_VALUES=new Set(["asc","desc",1,-1]),e.DEFAULT_REPOSITORY_NAME=t.env.DEFAULT_REPOSITORY_NAME||"systema_globalis",e.DEFAULT_REPOSITORY_BRANCH=t.env.DEFAULT_REPOSITORY_BRANCH||"master",e.DEFAULT_REPOSITORY_HASH="HEAD",e.isSchemaQuery=function(t){const r=n(t,"from");return e.SCHEMAS.has(r)},e.isDatapointsQuery=function(t){return n(t,"from")===e.DATAPOINTS},e.isEntitiesQuery=function(t){return n(t,"from")===e.ENTITIES},e.isConceptsQuery=function(t){return n(t,"from")===e.CONCEPTS},e.isEntityDomainOrSet=function(t,e){return o(e,t)},e.isMeasure=function(t){return o([e.CONCEPT_TYPE_MEASURE],t)},e.isIndicator=function(t){return o([e.CONCEPT_TYPE_MEASURE,e.CONCEPT_TYPE_STRING],t)}}).call(this,r(8))},function(t,e,r){(function(e){var r="Expected a function",n="__lodash_hash_undefined__",o=1/0,i="[object Function]",u="[object GeneratorFunction]",a="[object Symbol]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,f=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,d="object"==typeof e&&e&&e.Object===Object&&e,y="object"==typeof self&&self&&self.Object===Object&&self,v=d||y||Function("return this")();var g,_=Array.prototype,b=Function.prototype,m=Object.prototype,j=v["__core-js_shared__"],w=(g=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"",O=b.toString,E=m.hasOwnProperty,A=m.toString,S=RegExp("^"+O.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=v.Symbol,T=_.splice,D=N(v,"Map"),k=N(Object,"create"),C=R?R.prototype:void 0,F=C?C.toString:void 0;function P(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function $(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function x(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function L(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function M(t,e){for(var r,n=0,o=(e=function(t,e){if(q(t))return!1;var r=typeof t;if("number"==r||"symbol"==r||"boolean"==r||null==t||V(t))return!0;return s.test(t)||!c.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:q(r=e)?r:B(r)).length;null!=t&&n<o;)t=t[Y(e[n++])];return n&&n==o?t:void 0}function I(t){return!(!z(t)||w&&w in t)&&(function(t){var e=z(t)?A.call(t):"";return e==i||e==u}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?S:h).test(function(t){if(null!=t){try{return O.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function U(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function N(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return I(r)?r:void 0}P.prototype.clear=function(){this.__data__=k?k(null):{}},P.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},P.prototype.get=function(t){var e=this.__data__;if(k){var r=e[t];return r===n?void 0:r}return E.call(e,t)?e[t]:void 0},P.prototype.has=function(t){var e=this.__data__;return k?void 0!==e[t]:E.call(e,t)},P.prototype.set=function(t,e){return this.__data__[t]=k&&void 0===e?n:e,this},$.prototype.clear=function(){this.__data__=[]},$.prototype.delete=function(t){var e=this.__data__,r=L(e,t);return!(r<0||(r==e.length-1?e.pop():T.call(e,r,1),0))},$.prototype.get=function(t){var e=this.__data__,r=L(e,t);return r<0?void 0:e[r][1]},$.prototype.has=function(t){return L(this.__data__,t)>-1},$.prototype.set=function(t,e){var r=this.__data__,n=L(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},x.prototype.clear=function(){this.__data__={hash:new P,map:new(D||$),string:new P}},x.prototype.delete=function(t){return U(this,t).delete(t)},x.prototype.get=function(t){return U(this,t).get(t)},x.prototype.has=function(t){return U(this,t).has(t)},x.prototype.set=function(t,e){return U(this,t).set(t,e),this};var B=H(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(V(t))return F?F.call(t):"";var e=t+"";return"0"==e&&1/t==-o?"-0":e}(e);var r=[];return f.test(t)&&r.push(""),t.replace(l,function(t,e,n,o){r.push(n?o.replace(p,"$1"):e||t)}),r});function Y(t){if("string"==typeof t||V(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}function H(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u),u};return n.cache=new(H.Cache||x),n}H.Cache=x;var q=Array.isArray;function z(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function V(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&A.call(t)==a}t.exports=function(t,e,r){var n=null==t?void 0:M(t,e);return void 0===n?r:n}}).call(this,r(0))},function(t,e,r){(function(t,r){var n=9007199254740991,o="[object Arguments]",i="[object Function]",u="[object GeneratorFunction]",a="[object Map]",c="[object Set]",s=/^\[object .+?Constructor\]$/,f="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,p=f||l||Function("return this")(),h="object"==typeof e&&e&&!e.nodeType&&e,d=h&&"object"==typeof r&&r&&!r.nodeType&&r,y=d&&d.exports===h;var v,g,_,b=Function.prototype,m=Object.prototype,j=p["__core-js_shared__"],w=(v=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",O=b.toString,E=m.hasOwnProperty,A=m.toString,S=RegExp("^"+O.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=y?p.Buffer:void 0,T=m.propertyIsEnumerable,D=R?R.isBuffer:void 0,k=(g=Object.keys,_=Object,function(t){return g(_(t))}),C=H(p,"DataView"),F=H(p,"Map"),P=H(p,"Promise"),$=H(p,"Set"),x=H(p,"WeakMap"),L=!T.call({valueOf:1},"valueOf"),M=z(C),I=z(F),U=z(P),N=z($),B=z(x);function Y(t){return!(!K(t)||w&&w in t)&&(J(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?S:s).test(z(t))}function H(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Y(r)?r:void 0}var q=function(t){return A.call(t)};function z(t){if(null!=t){try{return O.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function V(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&G(t)}(t)&&E.call(t,"callee")&&(!T.call(t,"callee")||A.call(t)==o)}(C&&"[object DataView]"!=q(new C(new ArrayBuffer(1)))||F&&q(new F)!=a||P&&"[object Promise]"!=q(P.resolve())||$&&q(new $)!=c||x&&"[object WeakMap]"!=q(new x))&&(q=function(t){var e=A.call(t),r="[object Object]"==e?t.constructor:void 0,n=r?z(r):void 0;if(n)switch(n){case M:return"[object DataView]";case I:return a;case U:return"[object Promise]";case N:return c;case B:return"[object WeakMap]"}return e});var W=Array.isArray;function G(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!J(t)}var Q=D||function(){return!1};function J(t){var e=K(t)?A.call(t):"";return e==i||e==u}function K(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}r.exports=function(t){if(G(t)&&(W(t)||"string"==typeof t||"function"==typeof t.splice||Q(t)||V(t)))return!t.length;var e=q(t);if(e==a||e==c)return!t.size;if(L||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||m)}(t))return!k(t).length;for(var r in t)if(E.call(t,r))return!1;return!0}}).call(this,r(0),r(2)(t))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DdfCsvError=e.DDF_ERROR=e.CSV_PARSING_ERROR=e.JSON_PARSING_ERROR=e.FILE_READING_ERROR=void 0,e.FILE_READING_ERROR="File reading error",e.JSON_PARSING_ERROR="JSON parsing error",e.CSV_PARSING_ERROR="CSV parsing error",e.DDF_ERROR="DDF error";e.DdfCsvError=class extends Error{constructor(t,e,r){super(),this.name="DdfCsvError",this.message=`${t} [filepath: ${r}]. ${e}.`,this.details=e,this.file=r}}},function(t,e){t.exports=function(t){return null==t}},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:u}catch(t){n=u}}();var c,s=[],f=!1,l=-1;function p(){f&&c&&(f=!1,c.length?s=c.concat(s):l=-1,s.length&&h())}function h(){if(!f){var t=a(p);f=!0;for(var e=s.length;e;){for(c=s,s=[];++l<e;)c&&c[l].run();l=-1,e=s.length}c=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===u||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];s.push(new d(t,e)),1!==s.length||f||a(h)},d.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=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e){t.exports=function(t){for(var e=-1,r=t?t.length:0,n=0,o=[];++e<r;){var i=t[e];i&&(o[n++]=i)}return o}},function(t,e,r){(function(e){var r=1/0,n=1.7976931348623157e308,o=NaN,i="[object Symbol]",u=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,f=parseInt,l="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,h=l||p||Function("return this")(),d=Object.prototype.toString,y=h.Symbol,v=y?y.prototype:void 0,g=v?v.toString:void 0;function _(t){if("string"==typeof t)return t;if(m(t))return g?g.call(t):"";var e=t+"";return"0"==e&&1/t==-r?"-0":e}function b(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&d.call(t)==i}function j(t){return t?(t=function(t){if("number"==typeof t)return t;if(m(t))return o;if(b(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=b(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(u,"");var r=c.test(t);return r||s.test(t)?f(t.slice(2),r?2:8):a.test(t)?o:+t}(t))===r||t===-r?(t<0?-1:1)*n:t==t?t:0:0===t?t:0}t.exports=function(t,e,r){var n,o,i,u;return t=null==(n=t)?"":_(n),o=function(t){var e=j(t),r=e%1;return e==e?r?e-r:e:0}(r),i=0,u=t.length,o==o&&(void 0!==u&&(o=o<=u?o:u),void 0!==i&&(o=o>=i?o:i)),r=o,e=_(e),t.slice(r,r+e.length)==e}}).call(this,r(0))},function(t,e){var r=9007199254740991,n="[object Arguments]",o="[object Function]",i="[object GeneratorFunction]",u=/^(?:0|[1-9]\d*)$/;var a,c,s=Object.prototype,f=s.hasOwnProperty,l=s.toString,p=s.propertyIsEnumerable,h=(a=Object.keys,c=Object,function(t){return a(c(t))});function d(t,e){var r=g(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&_(t)}(t)&&f.call(t,"callee")&&(!p.call(t,"callee")||l.call(t)==n)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],o=r.length,i=!!o;for(var u in t)!e&&!f.call(t,u)||i&&("length"==u||v(u,o))||r.push(u);return r}function y(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||s,e!==n)return h(t);var e,r,n,o=[];for(var i in Object(t))f.call(t,i)&&"constructor"!=i&&o.push(i);return o}function v(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<e}var g=Array.isArray;function _(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?l.call(t):"";return e==o||e==i}(t)}t.exports=function(t){return _(t)?d(t):y(t)}},function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.OFF=0]="OFF",t[t.FATAL=1]="FATAL",t[t.ERROR=2]="ERROR",t[t.WARNING=4]="WARNING",t[t.DEBUG=8]="DEBUG",t[t.ALL=15]="ALL"}(n=e.Level||(e.Level={})),e.getLevelByLabel=(t=>{switch(t){case"off":return n.OFF;case"fatal":return n.FATAL;case"error":return n.ERROR;case"warning":return n.WARNING;case"debug":return n.DEBUG;case"all":return n.ALL;default:return n.OFF}}),e.getLabelByLevel=(t=>{switch(t){case n.OFF:return"off";case n.FATAL:return"fatal";case n.ERROR:return"error";case n.WARNING:return"warning";case n.DEBUG:return"debug";case n.ALL:return"all";default:return"off"}})},function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(13)),n(r(24))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.WhereClauseBasedOnConjunction="WhereClauseBasedOnConjunction",t.ConjunctionPartFromWhereClauseCorrespondsToJoin="ConjunctionPartFromWhereClauseCorrespondsToJoin"}(e.QueryFeature||(e.QueryFeature={}))},function(t,e){t.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},function(t,e,r){(function(t){var n=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},o=/%[sdj%]/g;e.format=function(t){if(!g(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(a(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,u=String(t).replace(o,function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),c=n[r];r<i;c=n[++r])y(c)||!m(c)?u+=" "+c:u+=" "+a(c);return u},e.deprecate=function(r,n){if(void 0!==t&&!0===t.noDeprecation)return r;if(void 0===t)return function(){return e.deprecate(r,n).apply(this,arguments)};var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation?console.trace(n):console.error(n),o=!0}return r.apply(this,arguments)}};var i,u={};function a(t,r){var n={seen:[],stylize:s};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&e._extend(n,r),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),f(n,t,n.depth)}function c(t,e){var r=a.styles[e];return r?"["+a.colors[r][0]+"m"+t+"["+a.colors[r][1]+"m":t}function s(t,e){return t}function f(t,r,n){if(t.customInspect&&r&&O(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return g(o)||(o=f(t,o,n)),o}var i=function(t,e){if(_(e))return t.stylize("undefined","undefined");if(g(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(v(e))return t.stylize(""+e,"number");if(d(e))return t.stylize(""+e,"boolean");if(y(e))return t.stylize("null","null")}(t,r);if(i)return i;var u=Object.keys(r),a=function(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}(u);if(t.showHidden&&(u=Object.getOwnPropertyNames(r)),w(r)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return l(r);if(0===u.length){if(O(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(b(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(j(r))return t.stylize(Date.prototype.toString.call(r),"date");if(w(r))return l(r)}var s,m="",E=!1,A=["{","}"];(h(r)&&(E=!0,A=["[","]"]),O(r))&&(m=" [Function"+(r.name?": "+r.name:"")+"]");return b(r)&&(m=" "+RegExp.prototype.toString.call(r)),j(r)&&(m=" "+Date.prototype.toUTCString.call(r)),w(r)&&(m=" "+l(r)),0!==u.length||E&&0!=r.length?n<0?b(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),s=E?function(t,e,r,n,o){for(var i=[],u=0,a=e.length;u<a;++u)R(e,String(u))?i.push(p(t,e,r,n,String(u),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(p(t,e,r,n,o,!0))}),i}(t,r,n,a,u):u.map(function(e){return p(t,r,n,a,e,E)}),t.seen.pop(),function(t,e,r){if(t.reduce(function(t,e){return 0,e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(s,m,A)):A[0]+m+A[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,o,i){var u,a,c;if((c=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),R(n,o)||(u="["+o+"]"),a||(t.seen.indexOf(c.value)<0?(a=y(r)?f(t,c.value,null):f(t,c.value,r-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n")):a=t.stylize("[Circular]","special")),_(u)){if(i&&o.match(/^\d+$/))return a;(u=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=t.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=t.stylize(u,"string"))}return u+": "+a}function h(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function y(t){return null===t}function v(t){return"number"==typeof t}function g(t){return"string"==typeof t}function _(t){return void 0===t}function b(t){return m(t)&&"[object RegExp]"===E(t)}function m(t){return"object"==typeof t&&null!==t}function j(t){return m(t)&&"[object Date]"===E(t)}function w(t){return m(t)&&("[object Error]"===E(t)||t instanceof Error)}function O(t){return"function"==typeof t}function E(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(_(i)&&(i=t.env.NODE_DEBUG||""),r=r.toUpperCase(),!u[r])if(new RegExp("\\b"+r+"\\b","i").test(i)){var n=t.pid;u[r]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",r,n,t)}}else u[r]=function(){};return u[r]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=h,e.isBoolean=d,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=g,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=_,e.isRegExp=b,e.isObject=m,e.isDate=j,e.isError=w,e.isFunction=O,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(39);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(t=new Date,r=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":"),[t.getDate(),S[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(38),e._extend=function(t,e){if(!e||!m(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(T&&t[T]){var e;if("function"!=typeof(e=t[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise(function(t,n){e=t,r=n}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(t,n){t?r(t):e(n)});try{t.apply(this,o)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),T&&Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,n(t))},e.promisify.custom=T,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var o=r.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,u=function(){return o.apply(i,arguments)};e.apply(this,r).then(function(e){t.nextTick(u,null,e)},function(e){t.nextTick(D,e,u)})}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,n(e)),r}}).call(this,r(8))},function(t,e,r){(function(t,r){var n=200,o="Expected a function",i="__lodash_hash_undefined__",u=1,a=2,c=1/0,s=9007199254740991,f="[object Arguments]",l="[object Array]",p="[object Boolean]",h="[object Date]",d="[object Error]",y="[object Function]",v="[object GeneratorFunction]",g="[object Map]",_="[object Number]",b="[object Object]",m="[object RegExp]",j="[object Set]",w="[object String]",O="[object Symbol]",E="[object ArrayBuffer]",A="[object DataView]",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/,T=/^\./,D=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,C=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[f]=P[l]=P[E]=P[p]=P[A]=P[h]=P[d]=P[y]=P[g]=P[_]=P[b]=P[m]=P[j]=P[w]=P["[object WeakMap]"]=!1;var $="object"==typeof t&&t&&t.Object===Object&&t,x="object"==typeof self&&self&&self.Object===Object&&self,L=$||x||Function("return this")(),M="object"==typeof e&&e&&!e.nodeType&&e,I=M&&"object"==typeof r&&r&&!r.nodeType&&r,U=I&&I.exports===M&&$.process,N=function(){try{return U&&U.binding("util")}catch(t){}}(),B=N&&N.isTypedArray;function Y(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function H(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function q(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function z(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function V(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function W(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var G,Q,J,K=Array.prototype,Z=Function.prototype,X=Object.prototype,tt=L["__core-js_shared__"],et=(G=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"",rt=Z.toString,nt=X.hasOwnProperty,ot=X.toString,it=RegExp("^"+rt.call(nt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=L.Symbol,at=L.Uint8Array,ct=X.propertyIsEnumerable,st=K.splice,ft=ut?ut.isConcatSpreadable:void 0,lt=(Q=Object.keys,J=Object,function(t){return Q(J(t))}),pt=Wt(L,"DataView"),ht=Wt(L,"Map"),dt=Wt(L,"Promise"),yt=Wt(L,"Set"),vt=Wt(L,"WeakMap"),gt=Wt(Object,"create"),_t=re(pt),bt=re(ht),mt=re(dt),jt=re(yt),wt=re(vt),Ot=ut?ut.prototype:void 0,Et=Ot?Ot.valueOf:void 0,At=Ot?Ot.toString:void 0;function St(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Rt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Tt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Dt(t){var e=-1,r=t?t.length:0;for(this.__data__=new Tt;++e<r;)this.add(t[e])}function kt(t){this.__data__=new Rt(t)}function Ct(t,e){var r=ue(t)||ie(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!nt.call(t,i)||o&&("length"==i||Jt(i,n))||r.push(i);return r}function Ft(t,e){for(var r=t.length;r--;)if(oe(t[r][0],e))return r;return-1}St.prototype.clear=function(){this.__data__=gt?gt(null):{}},St.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},St.prototype.get=function(t){var e=this.__data__;if(gt){var r=e[t];return r===i?void 0:r}return nt.call(e,t)?e[t]:void 0},St.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:nt.call(e,t)},St.prototype.set=function(t,e){return this.__data__[t]=gt&&void 0===e?i:e,this},Rt.prototype.clear=function(){this.__data__=[]},Rt.prototype.delete=function(t){var e=this.__data__,r=Ft(e,t);return!(r<0||(r==e.length-1?e.pop():st.call(e,r,1),0))},Rt.prototype.get=function(t){var e=this.__data__,r=Ft(e,t);return r<0?void 0:e[r][1]},Rt.prototype.has=function(t){return Ft(this.__data__,t)>-1},Rt.prototype.set=function(t,e){var r=this.__data__,n=Ft(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Tt.prototype.clear=function(){this.__data__={hash:new St,map:new(ht||Rt),string:new St}},Tt.prototype.delete=function(t){return Vt(this,t).delete(t)},Tt.prototype.get=function(t){return Vt(this,t).get(t)},Tt.prototype.has=function(t){return Vt(this,t).has(t)},Tt.prototype.set=function(t,e){return Vt(this,t).set(t,e),this},Dt.prototype.add=Dt.prototype.push=function(t){return this.__data__.set(t,i),this},Dt.prototype.has=function(t){return this.__data__.has(t)},kt.prototype.clear=function(){this.__data__=new Rt},kt.prototype.delete=function(t){return this.__data__.delete(t)},kt.prototype.get=function(t){return this.__data__.get(t)},kt.prototype.has=function(t){return this.__data__.has(t)},kt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Rt){var o=r.__data__;if(!ht||o.length<n-1)return o.push([t,e]),this;r=this.__data__=new Tt(o)}return r.set(t,e),this};var Pt,$t,xt=(Pt=function(t,e){return t&&Lt(t,e,de)},function(t,e){if(null==t)return t;if(!ae(t))return Pt(t,e);for(var r=t.length,n=$t?r:-1,o=Object(t);($t?n--:++n<r)&&!1!==e(o[n],n,o););return t});var Lt=function(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===r(i[c],c,i))break}return e}}();function Mt(t,e){for(var r=0,n=(e=Kt(e,t)?[e]:qt(e)).length;null!=t&&r<n;)t=t[ee(e[r++])];return r&&r==n?t:void 0}function It(t,e){return null!=t&&e in Object(t)}function Ut(t,e,r,n,o){return t===e||(null==t||null==e||!fe(t)&&!le(e)?t!=t&&e!=e:function(t,e,r,n,o,i){var c=ue(t),s=ue(e),y=l,v=l;c||(y=(y=Gt(t))==f?b:y);s||(v=(v=Gt(e))==f?b:v);var S=y==b&&!z(t),R=v==b&&!z(e),T=y==v;if(T&&!S)return i||(i=new kt),c||he(t)?zt(t,e,r,n,o,i):function(t,e,r,n,o,i,c){switch(r){case A:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case E:return!(t.byteLength!=e.byteLength||!n(new at(t),new at(e)));case p:case h:case _:return oe(+t,+e);case d:return t.name==e.name&&t.message==e.message;case m:case w:return t==e+"";case g:var s=V;case j:var f=i&a;if(s||(s=W),t.size!=e.size&&!f)return!1;var l=c.get(t);if(l)return l==e;i|=u,c.set(t,e);var y=zt(s(t),s(e),n,o,i,c);return c.delete(t),y;case O:if(Et)return Et.call(t)==Et.call(e)}return!1}(t,e,y,r,n,o,i);if(!(o&a)){var D=S&&nt.call(t,"__wrapped__"),k=R&&nt.call(e,"__wrapped__");if(D||k){var C=D?t.value():t,F=k?e.value():e;return i||(i=new kt),r(C,F,n,o,i)}}if(!T)return!1;return i||(i=new kt),function(t,e,r,n,o,i){var u=o&a,c=de(t),s=c.length,f=de(e).length;if(s!=f&&!u)return!1;for(var l=s;l--;){var p=c[l];if(!(u?p in e:nt.call(e,p)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var d=!0;i.set(t,e),i.set(e,t);for(var y=u;++l<s;){p=c[l];var v=t[p],g=e[p];if(n)var _=u?n(g,v,p,e,t,i):n(v,g,p,t,e,i);if(!(void 0===_?v===g||r(v,g,n,o,i):_)){d=!1;break}y||(y="constructor"==p)}if(d&&!y){var b=t.constructor,m=e.constructor;b!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof m&&m instanceof m)&&(d=!1)}return i.delete(t),i.delete(e),d}(t,e,r,n,o,i)}(t,e,Ut,r,n,o))}function Nt(t){return!(!fe(t)||et&&et in t)&&(ce(t)||z(t)?it:C).test(re(t))}function Bt(t){return"function"==typeof t?t:null==t?ye:"object"==typeof t?ue(t)?function(t,e){if(Kt(t)&&Zt(e))return Xt(ee(t),e);return function(r){var n=function(t,e,r){var n=null==t?void 0:Mt(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){var n,o=-1,i=(e=Kt(e,t)?[e]:qt(e)).length;for(;++o<i;){var u=ee(e[o]);if(!(n=null!=t&&r(t,u)))break;t=t[u]}if(n)return n;return!!(i=t?t.length:0)&&se(i)&&Jt(u,i)&&(ue(t)||ie(t))}(t,e,It)}(r,t):Ut(e,n,void 0,u|a)}}(t[0],t[1]):function(t){var e=function(t){var e=de(t),r=e.length;for(;r--;){var n=e[r],o=t[n];e[r]=[n,o,Zt(o)]}return e}(t);if(1==e.length&&e[0][2])return Xt(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,n){var o=r.length,i=o,c=!n;if(null==t)return!i;for(t=Object(t);o--;){var s=r[o];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<i;){var f=(s=r[o])[0],l=t[f],p=s[1];if(c&&s[2]){if(void 0===l&&!(f in t))return!1}else{var h=new kt;if(n)var d=n(l,p,f,t,e,h);if(!(void 0===d?Ut(p,l,n,u|a,h):d))return!1}}return!0}(r,t,e)}}(t):Kt(e=t)?(r=ee(e),function(t){return null==t?void 0:t[r]}):function(t){return function(e){return Mt(e,t)}}(e);var e,r}function Yt(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||X,e!==n)return lt(t);var e,r,n,o=[];for(var i in Object(t))nt.call(t,i)&&"constructor"!=i&&o.push(i);return o}function Ht(t,e){var r=-1,n=ae(t)?Array(t.length):[];return xt(t,function(t,o,i){n[++r]=e(t,o,i)}),n}function qt(t){return ue(t)?t:te(t)}function zt(t,e,r,n,o,i){var c=o&a,s=t.length,f=e.length;if(s!=f&&!(c&&f>s))return!1;var l=i.get(t);if(l&&i.get(e))return l==e;var p=-1,h=!0,d=o&u?new Dt:void 0;for(i.set(t,e),i.set(e,t);++p<s;){var y=t[p],v=e[p];if(n)var g=c?n(v,y,p,e,t,i):n(y,v,p,t,e,i);if(void 0!==g){if(g)continue;h=!1;break}if(d){if(!q(e,function(t,e){if(!d.has(e)&&(y===t||r(y,t,n,o,i)))return d.add(e)})){h=!1;break}}else if(y!==v&&!r(y,v,n,o,i)){h=!1;break}}return i.delete(t),i.delete(e),h}function Vt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Wt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Nt(r)?r:void 0}var Gt=function(t){return ot.call(t)};function Qt(t){return ue(t)||ie(t)||!!(ft&&t&&t[ft])}function Jt(t,e){return!!(e=null==e?s:e)&&("number"==typeof t||F.test(t))&&t>-1&&t%1==0&&t<e}function Kt(t,e){if(ue(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!pe(t))||(R.test(t)||!S.test(t)||null!=e&&t in Object(e))}function Zt(t){return t==t&&!fe(t)}function Xt(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(pt&&Gt(new pt(new ArrayBuffer(1)))!=A||ht&&Gt(new ht)!=g||dt&&"[object Promise]"!=Gt(dt.resolve())||yt&&Gt(new yt)!=j||vt&&"[object WeakMap]"!=Gt(new vt))&&(Gt=function(t){var e=ot.call(t),r=e==b?t.constructor:void 0,n=r?re(r):void 0;if(n)switch(n){case _t:return A;case bt:return g;case mt:return"[object Promise]";case jt:return j;case wt:return"[object WeakMap]"}return e});var te=ne(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(pe(t))return At?At.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}(e);var r=[];return T.test(t)&&r.push(""),t.replace(D,function(t,e,n,o){r.push(n?o.replace(k,"$1"):e||t)}),r});function ee(t){if("string"==typeof t||pe(t))return t;var e=t+"";return"0"==e&&1/t==-c?"-0":e}function re(t){if(null!=t){try{return rt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function ne(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(o);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u),u};return r.cache=new(ne.Cache||Tt),r}function oe(t,e){return t===e||t!=t&&e!=e}function ie(t){return function(t){return le(t)&&ae(t)}(t)&&nt.call(t,"callee")&&(!ct.call(t,"callee")||ot.call(t)==f)}ne.Cache=Tt;var ue=Array.isArray;function ae(t){return null!=t&&se(t.length)&&!ce(t)}function ce(t){var e=fe(t)?ot.call(t):"";return e==y||e==v}function se(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function fe(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function le(t){return!!t&&"object"==typeof t}function pe(t){return"symbol"==typeof t||le(t)&&ot.call(t)==O}var he=B?function(t){return function(e){return t(e)}}(B):function(t){return le(t)&&se(t.length)&&!!P[ot.call(t)]};function de(t){return ae(t)?Ct(t):Yt(t)}function ye(t){return t}r.exports=function(t,e){return function t(e,r,n,o,i){var u=-1,a=e.length;for(n||(n=Qt),i||(i=[]);++u<a;){var c=e[u];r>0&&n(c)?r>1?t(c,r-1,n,o,i):H(i,c):o||(i[i.length]=c)}return i}(function(t,e){return(ue(t)?Y:Ht)(t,Bt(e))}(t,e),1)}}).call(this,r(0),r(2)(t))},function(t,e,r){(function(t,r){var n=200,o="Expected a function",i="__lodash_hash_undefined__",u=1,a=2,c=1/0,s=9007199254740991,f="[object Arguments]",l="[object Array]",p="[object Boolean]",h="[object Date]",d="[object Error]",y="[object Function]",v="[object GeneratorFunction]",g="[object Map]",_="[object Number]",b="[object Object]",m="[object RegExp]",j="[object Set]",w="[object String]",O="[object Symbol]",E="[object ArrayBuffer]",A="[object DataView]",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/,T=/^\./,D=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,C=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[f]=P[l]=P[E]=P[p]=P[A]=P[h]=P[d]=P[y]=P[g]=P[_]=P[b]=P[m]=P[j]=P[w]=P["[object WeakMap]"]=!1;var $="object"==typeof t&&t&&t.Object===Object&&t,x="object"==typeof self&&self&&self.Object===Object&&self,L=$||x||Function("return this")(),M="object"==typeof e&&e&&!e.nodeType&&e,I=M&&"object"==typeof r&&r&&!r.nodeType&&r,U=I&&I.exports===M&&$.process,N=function(){try{return U&&U.binding("util")}catch(t){}}(),B=N&&N.isTypedArray;function Y(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function H(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function z(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function V(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var W,G,Q,J=Array.prototype,K=Function.prototype,Z=Object.prototype,X=L["__core-js_shared__"],tt=(W=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",et=K.toString,rt=Z.hasOwnProperty,nt=Z.toString,ot=RegExp("^"+et.call(rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),it=L.Symbol,ut=L.Uint8Array,at=Z.propertyIsEnumerable,ct=J.splice,st=(G=Object.keys,Q=Object,function(t){return G(Q(t))}),ft=zt(L,"DataView"),lt=zt(L,"Map"),pt=zt(L,"Promise"),ht=zt(L,"Set"),dt=zt(L,"WeakMap"),yt=zt(Object,"create"),vt=Xt(ft),gt=Xt(lt),_t=Xt(pt),bt=Xt(ht),mt=Xt(dt),jt=it?it.prototype:void 0,wt=jt?jt.valueOf:void 0,Ot=jt?jt.toString:void 0;function Et(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function At(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function St(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Rt(t){var e=-1,r=t?t.length:0;for(this.__data__=new St;++e<r;)this.add(t[e])}function Tt(t){this.__data__=new At(t)}function Dt(t,e){var r=ne(t)||re(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!rt.call(t,i)||o&&("length"==i||Wt(i,n))||r.push(i);return r}function kt(t,e){for(var r=t.length;r--;)if(ee(t[r][0],e))return r;return-1}Et.prototype.clear=function(){this.__data__=yt?yt(null):{}},Et.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Et.prototype.get=function(t){var e=this.__data__;if(yt){var r=e[t];return r===i?void 0:r}return rt.call(e,t)?e[t]:void 0},Et.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:rt.call(e,t)},Et.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?i:e,this},At.prototype.clear=function(){this.__data__=[]},At.prototype.delete=function(t){var e=this.__data__,r=kt(e,t);return!(r<0||(r==e.length-1?e.pop():ct.call(e,r,1),0))},At.prototype.get=function(t){var e=this.__data__,r=kt(e,t);return r<0?void 0:e[r][1]},At.prototype.has=function(t){return kt(this.__data__,t)>-1},At.prototype.set=function(t,e){var r=this.__data__,n=kt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},St.prototype.clear=function(){this.__data__={hash:new Et,map:new(lt||At),string:new Et}},St.prototype.delete=function(t){return qt(this,t).delete(t)},St.prototype.get=function(t){return qt(this,t).get(t)},St.prototype.has=function(t){return qt(this,t).has(t)},St.prototype.set=function(t,e){return qt(this,t).set(t,e),this},Rt.prototype.add=Rt.prototype.push=function(t){return this.__data__.set(t,i),this},Rt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.clear=function(){this.__data__=new At},Tt.prototype.delete=function(t){return this.__data__.delete(t)},Tt.prototype.get=function(t){return this.__data__.get(t)},Tt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof At){var o=r.__data__;if(!lt||o.length<n-1)return o.push([t,e]),this;r=this.__data__=new St(o)}return r.set(t,e),this};var Ct,Ft,Pt=(Ct=function(t,e){return t&&$t(t,e,le)},function(t,e){if(null==t)return t;if(!oe(t))return Ct(t,e);for(var r=t.length,n=Ft?r:-1,o=Object(t);(Ft?n--:++n<r)&&!1!==e(o[n],n,o););return t}),$t=function(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===r(i[c],c,i))break}return e}}();function xt(t,e){for(var r=0,n=(e=Gt(e,t)?[e]:Yt(e)).length;null!=t&&r<n;)t=t[Zt(e[r++])];return r&&r==n?t:void 0}function Lt(t,e){return null!=t&&e in Object(t)}function Mt(t,e,r,n,o){return t===e||(null==t||null==e||!ae(t)&&!ce(e)?t!=t&&e!=e:function(t,e,r,n,o,i){var c=ne(t),s=ne(e),y=l,v=l;c||(y=(y=Vt(t))==f?b:y);s||(v=(v=Vt(e))==f?b:v);var S=y==b&&!q(t),R=v==b&&!q(e),T=y==v;if(T&&!S)return i||(i=new Tt),c||fe(t)?Ht(t,e,r,n,o,i):function(t,e,r,n,o,i,c){switch(r){case A:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case E:return!(t.byteLength!=e.byteLength||!n(new ut(t),new ut(e)));case p:case h:case _:return ee(+t,+e);case d:return t.name==e.name&&t.message==e.message;case m:case w:return t==e+"";case g:var s=z;case j:var f=i&a;if(s||(s=V),t.size!=e.size&&!f)return!1;var l=c.get(t);if(l)return l==e;i|=u,c.set(t,e);var y=Ht(s(t),s(e),n,o,i,c);return c.delete(t),y;case O:if(wt)return wt.call(t)==wt.call(e)}return!1}(t,e,y,r,n,o,i);if(!(o&a)){var D=S&&rt.call(t,"__wrapped__"),k=R&&rt.call(e,"__wrapped__");if(D||k){var C=D?t.value():t,F=k?e.value():e;return i||(i=new Tt),r(C,F,n,o,i)}}if(!T)return!1;return i||(i=new Tt),function(t,e,r,n,o,i){var u=o&a,c=le(t),s=c.length,f=le(e).length;if(s!=f&&!u)return!1;for(var l=s;l--;){var p=c[l];if(!(u?p in e:rt.call(e,p)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var d=!0;i.set(t,e),i.set(e,t);for(var y=u;++l<s;){p=c[l];var v=t[p],g=e[p];if(n)var _=u?n(g,v,p,e,t,i):n(v,g,p,t,e,i);if(!(void 0===_?v===g||r(v,g,n,o,i):_)){d=!1;break}y||(y="constructor"==p)}if(d&&!y){var b=t.constructor,m=e.constructor;b!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof m&&m instanceof m)&&(d=!1)}return i.delete(t),i.delete(e),d}(t,e,r,n,o,i)}(t,e,Mt,r,n,o))}function It(t){return!(!ae(t)||tt&&tt in t)&&(ie(t)||q(t)?ot:C).test(Xt(t))}function Ut(t){return"function"==typeof t?t:null==t?pe:"object"==typeof t?ne(t)?function(t,e){if(Gt(t)&&Qt(e))return Jt(Zt(t),e);return function(r){var n=function(t,e,r){var n=null==t?void 0:xt(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){var n,o=-1,i=(e=Gt(e,t)?[e]:Yt(e)).length;for(;++o<i;){var u=Zt(e[o]);if(!(n=null!=t&&r(t,u)))break;t=t[u]}if(n)return n;return!!(i=t?t.length:0)&&ue(i)&&Wt(u,i)&&(ne(t)||re(t))}(t,e,Lt)}(r,t):Mt(e,n,void 0,u|a)}}(t[0],t[1]):function(t){var e=function(t){var e=le(t),r=e.length;for(;r--;){var n=e[r],o=t[n];e[r]=[n,o,Qt(o)]}return e}(t);if(1==e.length&&e[0][2])return Jt(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,n){var o=r.length,i=o,c=!n;if(null==t)return!i;for(t=Object(t);o--;){var s=r[o];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<i;){var f=(s=r[o])[0],l=t[f],p=s[1];if(c&&s[2]){if(void 0===l&&!(f in t))return!1}else{var h=new Tt;if(n)var d=n(l,p,f,t,e,h);if(!(void 0===d?Mt(p,l,n,u|a,h):d))return!1}}return!0}(r,t,e)}}(t):Gt(e=t)?(r=Zt(e),function(t){return null==t?void 0:t[r]}):function(t){return function(e){return xt(e,t)}}(e);var e,r}function Nt(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||Z,e!==n)return st(t);var e,r,n,o=[];for(var i in Object(t))rt.call(t,i)&&"constructor"!=i&&o.push(i);return o}function Bt(t,e){var r=-1,n=oe(t)?Array(t.length):[];return Pt(t,function(t,o,i){n[++r]=e(t,o,i)}),n}function Yt(t){return ne(t)?t:Kt(t)}function Ht(t,e,r,n,o,i){var c=o&a,s=t.length,f=e.length;if(s!=f&&!(c&&f>s))return!1;var l=i.get(t);if(l&&i.get(e))return l==e;var p=-1,h=!0,d=o&u?new Rt:void 0;for(i.set(t,e),i.set(e,t);++p<s;){var y=t[p],v=e[p];if(n)var g=c?n(v,y,p,e,t,i):n(y,v,p,t,e,i);if(void 0!==g){if(g)continue;h=!1;break}if(d){if(!H(e,function(t,e){if(!d.has(e)&&(y===t||r(y,t,n,o,i)))return d.add(e)})){h=!1;break}}else if(y!==v&&!r(y,v,n,o,i)){h=!1;break}}return i.delete(t),i.delete(e),h}function qt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function zt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return It(r)?r:void 0}var Vt=function(t){return nt.call(t)};function Wt(t,e){return!!(e=null==e?s:e)&&("number"==typeof t||F.test(t))&&t>-1&&t%1==0&&t<e}function Gt(t,e){if(ne(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!se(t))||(R.test(t)||!S.test(t)||null!=e&&t in Object(e))}function Qt(t){return t==t&&!ae(t)}function Jt(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(ft&&Vt(new ft(new ArrayBuffer(1)))!=A||lt&&Vt(new lt)!=g||pt&&"[object Promise]"!=Vt(pt.resolve())||ht&&Vt(new ht)!=j||dt&&"[object WeakMap]"!=Vt(new dt))&&(Vt=function(t){var e=nt.call(t),r=e==b?t.constructor:void 0,n=r?Xt(r):void 0;if(n)switch(n){case vt:return A;case gt:return g;case _t:return"[object Promise]";case bt:return j;case mt:return"[object WeakMap]"}return e});var Kt=te(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(se(t))return Ot?Ot.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}(e);var r=[];return T.test(t)&&r.push(""),t.replace(D,function(t,e,n,o){r.push(n?o.replace(k,"$1"):e||t)}),r});function Zt(t){if("string"==typeof t||se(t))return t;var e=t+"";return"0"==e&&1/t==-c?"-0":e}function Xt(t){if(null!=t){try{return et.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function te(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(o);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u),u};return r.cache=new(te.Cache||St),r}function ee(t,e){return t===e||t!=t&&e!=e}function re(t){return function(t){return ce(t)&&oe(t)}(t)&&rt.call(t,"callee")&&(!at.call(t,"callee")||nt.call(t)==f)}te.Cache=St;var ne=Array.isArray;function oe(t){return null!=t&&ue(t.length)&&!ie(t)}function ie(t){var e=ae(t)?nt.call(t):"";return e==y||e==v}function ue(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function ae(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ce(t){return!!t&&"object"==typeof t}function se(t){return"symbol"==typeof t||ce(t)&&nt.call(t)==O}var fe=B?function(t){return function(e){return t(e)}}(B):function(t){return ce(t)&&ue(t.length)&&!!P[nt.call(t)]};function le(t){return oe(t)?Dt(t):Nt(t)}function pe(t){return t}r.exports=function(t,e){return(ne(t)?Y:Bt)(t,Ut(e))}}).call(this,r(0),r(2)(t))},function(t,e,r){(function(t,r){var n=200,o="Expected a function",i="__lodash_hash_undefined__",u=1,a=2,c=1/0,s=9007199254740991,f="[object Arguments]",l="[object Array]",p="[object Boolean]",h="[object Date]",d="[object Error]",y="[object Function]",v="[object GeneratorFunction]",g="[object Map]",_="[object Number]",b="[object Object]",m="[object RegExp]",j="[object Set]",w="[object String]",O="[object Symbol]",E="[object ArrayBuffer]",A="[object DataView]",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/,T=/^\./,D=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,C=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[f]=P[l]=P[E]=P[p]=P[A]=P[h]=P[d]=P[y]=P[g]=P[_]=P[b]=P[m]=P[j]=P[w]=P["[object WeakMap]"]=!1;var $="object"==typeof t&&t&&t.Object===Object&&t,x="object"==typeof self&&self&&self.Object===Object&&self,L=$||x||Function("return this")(),M="object"==typeof e&&e&&!e.nodeType&&e,I=M&&"object"==typeof r&&r&&!r.nodeType&&r,U=I&&I.exports===M&&$.process,N=function(){try{return U&&U.binding("util")}catch(t){}}(),B=N&&N.isTypedArray;function Y(t,e){for(var r=-1,n=t?t.length:0,o=0,i=[];++r<n;){var u=t[r];e(u,r,t)&&(i[o++]=u)}return i}function H(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function z(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function V(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var W,G,Q,J=Array.prototype,K=Function.prototype,Z=Object.prototype,X=L["__core-js_shared__"],tt=(W=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",et=K.toString,rt=Z.hasOwnProperty,nt=Z.toString,ot=RegExp("^"+et.call(rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),it=L.Symbol,ut=L.Uint8Array,at=Z.propertyIsEnumerable,ct=J.splice,st=(G=Object.keys,Q=Object,function(t){return G(Q(t))}),ft=zt(L,"DataView"),lt=zt(L,"Map"),pt=zt(L,"Promise"),ht=zt(L,"Set"),dt=zt(L,"WeakMap"),yt=zt(Object,"create"),vt=Xt(ft),gt=Xt(lt),_t=Xt(pt),bt=Xt(ht),mt=Xt(dt),jt=it?it.prototype:void 0,wt=jt?jt.valueOf:void 0,Ot=jt?jt.toString:void 0;function Et(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function At(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function St(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Rt(t){var e=-1,r=t?t.length:0;for(this.__data__=new St;++e<r;)this.add(t[e])}function Tt(t){this.__data__=new At(t)}function Dt(t,e){var r=ne(t)||re(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!rt.call(t,i)||o&&("length"==i||Wt(i,n))||r.push(i);return r}function kt(t,e){for(var r=t.length;r--;)if(ee(t[r][0],e))return r;return-1}Et.prototype.clear=function(){this.__data__=yt?yt(null):{}},Et.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Et.prototype.get=function(t){var e=this.__data__;if(yt){var r=e[t];return r===i?void 0:r}return rt.call(e,t)?e[t]:void 0},Et.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:rt.call(e,t)},Et.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?i:e,this},At.prototype.clear=function(){this.__data__=[]},At.prototype.delete=function(t){var e=this.__data__,r=kt(e,t);return!(r<0||(r==e.length-1?e.pop():ct.call(e,r,1),0))},At.prototype.get=function(t){var e=this.__data__,r=kt(e,t);return r<0?void 0:e[r][1]},At.prototype.has=function(t){return kt(this.__data__,t)>-1},At.prototype.set=function(t,e){var r=this.__data__,n=kt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},St.prototype.clear=function(){this.__data__={hash:new Et,map:new(lt||At),string:new Et}},St.prototype.delete=function(t){return qt(this,t).delete(t)},St.prototype.get=function(t){return qt(this,t).get(t)},St.prototype.has=function(t){return qt(this,t).has(t)},St.prototype.set=function(t,e){return qt(this,t).set(t,e),this},Rt.prototype.add=Rt.prototype.push=function(t){return this.__data__.set(t,i),this},Rt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.clear=function(){this.__data__=new At},Tt.prototype.delete=function(t){return this.__data__.delete(t)},Tt.prototype.get=function(t){return this.__data__.get(t)},Tt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof At){var o=r.__data__;if(!lt||o.length<n-1)return o.push([t,e]),this;r=this.__data__=new St(o)}return r.set(t,e),this};var Ct,Ft,Pt=(Ct=function(t,e){return t&&xt(t,e,le)},function(t,e){if(null==t)return t;if(!oe(t))return Ct(t,e);for(var r=t.length,n=Ft?r:-1,o=Object(t);(Ft?n--:++n<r)&&!1!==e(o[n],n,o););return t});function $t(t,e){var r=[];return Pt(t,function(t,n,o){e(t,n,o)&&r.push(t)}),r}var xt=function(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===r(i[c],c,i))break}return e}}();function Lt(t,e){for(var r=0,n=(e=Gt(e,t)?[e]:Yt(e)).length;null!=t&&r<n;)t=t[Zt(e[r++])];return r&&r==n?t:void 0}function Mt(t,e){return null!=t&&e in Object(t)}function It(t,e,r,n,o){return t===e||(null==t||null==e||!ae(t)&&!ce(e)?t!=t&&e!=e:function(t,e,r,n,o,i){var c=ne(t),s=ne(e),y=l,v=l;c||(y=(y=Vt(t))==f?b:y);s||(v=(v=Vt(e))==f?b:v);var S=y==b&&!q(t),R=v==b&&!q(e),T=y==v;if(T&&!S)return i||(i=new Tt),c||fe(t)?Ht(t,e,r,n,o,i):function(t,e,r,n,o,i,c){switch(r){case A:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case E:return!(t.byteLength!=e.byteLength||!n(new ut(t),new ut(e)));case p:case h:case _:return ee(+t,+e);case d:return t.name==e.name&&t.message==e.message;case m:case w:return t==e+"";case g:var s=z;case j:var f=i&a;if(s||(s=V),t.size!=e.size&&!f)return!1;var l=c.get(t);if(l)return l==e;i|=u,c.set(t,e);var y=Ht(s(t),s(e),n,o,i,c);return c.delete(t),y;case O:if(wt)return wt.call(t)==wt.call(e)}return!1}(t,e,y,r,n,o,i);if(!(o&a)){var D=S&&rt.call(t,"__wrapped__"),k=R&&rt.call(e,"__wrapped__");if(D||k){var C=D?t.value():t,F=k?e.value():e;return i||(i=new Tt),r(C,F,n,o,i)}}if(!T)return!1;return i||(i=new Tt),function(t,e,r,n,o,i){var u=o&a,c=le(t),s=c.length,f=le(e).length;if(s!=f&&!u)return!1;for(var l=s;l--;){var p=c[l];if(!(u?p in e:rt.call(e,p)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var d=!0;i.set(t,e),i.set(e,t);for(var y=u;++l<s;){p=c[l];var v=t[p],g=e[p];if(n)var _=u?n(g,v,p,e,t,i):n(v,g,p,t,e,i);if(!(void 0===_?v===g||r(v,g,n,o,i):_)){d=!1;break}y||(y="constructor"==p)}if(d&&!y){var b=t.constructor,m=e.constructor;b!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof m&&m instanceof m)&&(d=!1)}return i.delete(t),i.delete(e),d}(t,e,r,n,o,i)}(t,e,It,r,n,o))}function Ut(t){return!(!ae(t)||tt&&tt in t)&&(ie(t)||q(t)?ot:C).test(Xt(t))}function Nt(t){return"function"==typeof t?t:null==t?pe:"object"==typeof t?ne(t)?function(t,e){if(Gt(t)&&Qt(e))return Jt(Zt(t),e);return function(r){var n=function(t,e,r){var n=null==t?void 0:Lt(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){var n,o=-1,i=(e=Gt(e,t)?[e]:Yt(e)).length;for(;++o<i;){var u=Zt(e[o]);if(!(n=null!=t&&r(t,u)))break;t=t[u]}if(n)return n;return!!(i=t?t.length:0)&&ue(i)&&Wt(u,i)&&(ne(t)||re(t))}(t,e,Mt)}(r,t):It(e,n,void 0,u|a)}}(t[0],t[1]):function(t){var e=function(t){var e=le(t),r=e.length;for(;r--;){var n=e[r],o=t[n];e[r]=[n,o,Qt(o)]}return e}(t);if(1==e.length&&e[0][2])return Jt(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,n){var o=r.length,i=o,c=!n;if(null==t)return!i;for(t=Object(t);o--;){var s=r[o];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<i;){var f=(s=r[o])[0],l=t[f],p=s[1];if(c&&s[2]){if(void 0===l&&!(f in t))return!1}else{var h=new Tt;if(n)var d=n(l,p,f,t,e,h);if(!(void 0===d?It(p,l,n,u|a,h):d))return!1}}return!0}(r,t,e)}}(t):Gt(e=t)?(r=Zt(e),function(t){return null==t?void 0:t[r]}):function(t){return function(e){return Lt(e,t)}}(e);var e,r}function Bt(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||Z,e!==n)return st(t);var e,r,n,o=[];for(var i in Object(t))rt.call(t,i)&&"constructor"!=i&&o.push(i);return o}function Yt(t){return ne(t)?t:Kt(t)}function Ht(t,e,r,n,o,i){var c=o&a,s=t.length,f=e.length;if(s!=f&&!(c&&f>s))return!1;var l=i.get(t);if(l&&i.get(e))return l==e;var p=-1,h=!0,d=o&u?new Rt:void 0;for(i.set(t,e),i.set(e,t);++p<s;){var y=t[p],v=e[p];if(n)var g=c?n(v,y,p,e,t,i):n(y,v,p,t,e,i);if(void 0!==g){if(g)continue;h=!1;break}if(d){if(!H(e,function(t,e){if(!d.has(e)&&(y===t||r(y,t,n,o,i)))return d.add(e)})){h=!1;break}}else if(y!==v&&!r(y,v,n,o,i)){h=!1;break}}return i.delete(t),i.delete(e),h}function qt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function zt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Ut(r)?r:void 0}var Vt=function(t){return nt.call(t)};function Wt(t,e){return!!(e=null==e?s:e)&&("number"==typeof t||F.test(t))&&t>-1&&t%1==0&&t<e}function Gt(t,e){if(ne(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!se(t))||(R.test(t)||!S.test(t)||null!=e&&t in Object(e))}function Qt(t){return t==t&&!ae(t)}function Jt(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(ft&&Vt(new ft(new ArrayBuffer(1)))!=A||lt&&Vt(new lt)!=g||pt&&"[object Promise]"!=Vt(pt.resolve())||ht&&Vt(new ht)!=j||dt&&"[object WeakMap]"!=Vt(new dt))&&(Vt=function(t){var e=nt.call(t),r=e==b?t.constructor:void 0,n=r?Xt(r):void 0;if(n)switch(n){case vt:return A;case gt:return g;case _t:return"[object Promise]";case bt:return j;case mt:return"[object WeakMap]"}return e});var Kt=te(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(se(t))return Ot?Ot.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}(e);var r=[];return T.test(t)&&r.push(""),t.replace(D,function(t,e,n,o){r.push(n?o.replace(k,"$1"):e||t)}),r});function Zt(t){if("string"==typeof t||se(t))return t;var e=t+"";return"0"==e&&1/t==-c?"-0":e}function Xt(t){if(null!=t){try{return et.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function te(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(o);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u),u};return r.cache=new(te.Cache||St),r}function ee(t,e){return t===e||t!=t&&e!=e}function re(t){return function(t){return ce(t)&&oe(t)}(t)&&rt.call(t,"callee")&&(!at.call(t,"callee")||nt.call(t)==f)}te.Cache=St;var ne=Array.isArray;function oe(t){return null!=t&&ue(t.length)&&!ie(t)}function ie(t){var e=ae(t)?nt.call(t):"";return e==y||e==v}function ue(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function ae(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ce(t){return!!t&&"object"==typeof t}function se(t){return"symbol"==typeof t||ce(t)&&nt.call(t)==O}var fe=B?function(t){return function(e){return t(e)}}(B):function(t){return ce(t)&&ue(t.length)&&!!P[nt.call(t)]};function le(t){return oe(t)?Dt(t):Bt(t)}function pe(t){return t}r.exports=function(t,e){return(ne(t)?Y:$t)(t,Nt(e))}}).call(this,r(0),r(2)(t))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FrontendFileReader=void 0,r(48);e.FrontendFileReader=class{setRecordTransformer(t){this.recordTransformer=t}checkFile(t){fetch(t,{method:"HEAD",credentials:"same-origin",redirect:"follow"}).then(t=>Promise.resolve(t))}readText(t,e,r){fetch(t).then(t=>t.text()).then(t=>{e(null,t)}).catch(r=>{e(`${t} read error: ${r}`)})}}},function(t,e,r){"use strict";r.r(e);var n=new Date,o=new Date;function i(t,e,r,u){function a(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return a.floor=function(e){return t(e=new Date(+e)),e},a.ceil=function(r){return t(r=new Date(r-1)),e(r,1),t(r),r},a.round=function(t){var e=a(t),r=a.ceil(t);return t-e<r-t?e:r},a.offset=function(t,r){return e(t=new Date(+t),null==r?1:Math.floor(r)),t},a.range=function(r,n,o){var i,u=[];if(r=a.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return u;do{u.push(i=new Date(+r)),e(r,o),t(r)}while(i<r&&r<n);return u},a.filter=function(r){return i(function(e){if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})},r&&(a.count=function(e,i){return n.setTime(+e),o.setTime(+i),t(n),t(o),Math.floor(r(n,o))},a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?a.filter(u?function(e){return u(e)%t==0}:function(e){return a.count(0,e)%t==0}):a:null}),a}var u=6e4,a=6048e5;function c(t){return i(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/a})}var s=c(0),f=c(1),l=c(2),p=c(3),h=c(4),d=c(5),y=c(6),v=(s.range,f.range,l.range,p.range,h.range,d.range,y.range,i(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1})),g=v;v.range;function _(t){return i(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*u)/a})}var b=_(0),m=_(1),j=_(2),w=_(3),O=_(4),E=_(5),A=_(6),S=(b.range,m.range,j.range,w.range,O.range,E.range,A.range,i(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*u)/864e5},function(t){return t.getDate()-1})),R=S,T=(S.range,i(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));T.every=function(t){return isFinite(t=Math.floor(t))&&t>0?i(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)}):null};var D=T,k=(T.range,i(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));k.every=function(t){return isFinite(t=Math.floor(t))&&t>0?i(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null};var C=k;k.range;function F(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function P(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function $(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function x(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,u=t.shortDays,a=t.months,c=t.shortMonths,s=W(o),l=G(o),p=W(i),h=G(i),d=W(u),y=G(u),v=W(a),_=G(a),b=W(c),j=G(c),w={a:function(t){return u[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:yt,e:yt,f:mt,g:Ct,G:Pt,H:vt,I:gt,j:_t,L:bt,m:jt,M:wt,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:re,s:ne,S:Ot,u:Et,U:At,V:Rt,w:Tt,W:Dt,x:null,X:null,y:kt,Y:Ft,Z:$t,"%":ee},O={a:function(t){return u[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:xt,e:xt,f:Nt,g:Kt,G:Xt,H:Lt,I:Mt,j:It,L:Ut,m:Bt,M:Yt,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:re,s:ne,S:Ht,u:qt,U:zt,V:Wt,w:Gt,W:Qt,x:null,X:null,y:Jt,Y:Zt,Z:te,"%":ee},E={a:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.w=y[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=p.exec(e.slice(r));return n?(t.w=h[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=b.exec(e.slice(r));return n?(t.m=j[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=v.exec(e.slice(r));return n?(t.m=_[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,r,n){return T(t,e,r,n)},d:it,e:it,f:lt,g:et,G:tt,H:at,I:at,j:ut,L:ft,m:ot,M:ct,p:function(t,e,r){var n=s.exec(e.slice(r));return n?(t.p=l[n[0].toLowerCase()],r+n[0].length):-1},q:nt,Q:ht,s:dt,S:st,u:J,U:K,V:Z,w:Q,W:X,x:function(t,e,n){return T(t,r,e,n)},X:function(t,e,r){return T(t,n,e,r)},y:et,Y:tt,Z:rt,"%":pt};function A(t,e){return function(r){var n,o,i,u=[],a=-1,c=0,s=t.length;for(r instanceof Date||(r=new Date(+r));++a<s;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(o=B[n=t.charAt(++a)])?n=t.charAt(++a):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),u.push(n),c=a+1);return u.push(t.slice(c,a)),u.join("")}}function S(t,e){return function(r){var n,o,i=$(1900,void 0,1);if(T(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(!e||"Z"in i||(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(n=(o=(n=P($(i.y,0,1))).getUTCDay())>4||0===o?f.ceil(n):f(n),n=g.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(n=(o=(n=F($(i.y,0,1))).getDay())>4||0===o?m.ceil(n):m(n),n=R.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?P($(i.y,0,1)).getUTCDay():F($(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,P(i)):F(i)}}function T(t,e,r,n){for(var o,i,u=0,a=e.length,c=r.length;u<a;){if(n>=c)return-1;if(37===(o=e.charCodeAt(u++))){if(o=e.charAt(u++),!(i=E[o in B?e.charAt(u++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return w.x=A(r,w),w.X=A(n,w),w.c=A(e,w),O.x=A(r,O),O.X=A(n,O),O.c=A(e,O),{format:function(t){var e=A(t+="",w);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=A(t+="",O);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}var L,M,I,U,N,B={"-":"",_:" ",0:"0"},Y=/^\s*\d+/,H=/^%/,q=/[\\^$*+?|[\]().{}]/g;function z(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function V(t){return t.replace(q,"\\$&")}function W(t){return new RegExp("^(?:"+t.map(V).join("|")+")","i")}function G(t){for(var e={},r=-1,n=t.length;++r<n;)e[t[r].toLowerCase()]=r;return e}function Q(t,e,r){var n=Y.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function J(t,e,r){var n=Y.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function K(t,e,r){var n=Y.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Z(t,e,r){var n=Y.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function X(t,e,r){var n=Y.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function tt(t,e,r){var n=Y.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function et(t,e,r){var n=Y.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function rt(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function nt(t,e,r){var n=Y.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function ot(t,e,r){var n=Y.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function it(t,e,r){var n=Y.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ut(t,e,r){var n=Y.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function at(t,e,r){var n=Y.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function ct(t,e,r){var n=Y.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function st(t,e,r){var n=Y.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function ft(t,e,r){var n=Y.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function lt(t,e,r){var n=Y.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function pt(t,e,r){var n=H.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function ht(t,e,r){var n=Y.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function dt(t,e,r){var n=Y.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function yt(t,e){return z(t.getDate(),e,2)}function vt(t,e){return z(t.getHours(),e,2)}function gt(t,e){return z(t.getHours()%12||12,e,2)}function _t(t,e){return z(1+R.count(D(t),t),e,3)}function bt(t,e){return z(t.getMilliseconds(),e,3)}function mt(t,e){return bt(t,e)+"000"}function jt(t,e){return z(t.getMonth()+1,e,2)}function wt(t,e){return z(t.getMinutes(),e,2)}function Ot(t,e){return z(t.getSeconds(),e,2)}function Et(t){var e=t.getDay();return 0===e?7:e}function At(t,e){return z(b.count(D(t)-1,t),e,2)}function St(t){var e=t.getDay();return e>=4||0===e?O(t):O.ceil(t)}function Rt(t,e){return t=St(t),z(O.count(D(t),t)+(4===D(t).getDay()),e,2)}function Tt(t){return t.getDay()}function Dt(t,e){return z(m.count(D(t)-1,t),e,2)}function kt(t,e){return z(t.getFullYear()%100,e,2)}function Ct(t,e){return z((t=St(t)).getFullYear()%100,e,2)}function Ft(t,e){return z(t.getFullYear()%1e4,e,4)}function Pt(t,e){var r=t.getDay();return z((t=r>=4||0===r?O(t):O.ceil(t)).getFullYear()%1e4,e,4)}function $t(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+z(e/60|0,"0",2)+z(e%60,"0",2)}function xt(t,e){return z(t.getUTCDate(),e,2)}function Lt(t,e){return z(t.getUTCHours(),e,2)}function Mt(t,e){return z(t.getUTCHours()%12||12,e,2)}function It(t,e){return z(1+g.count(C(t),t),e,3)}function Ut(t,e){return z(t.getUTCMilliseconds(),e,3)}function Nt(t,e){return Ut(t,e)+"000"}function Bt(t,e){return z(t.getUTCMonth()+1,e,2)}function Yt(t,e){return z(t.getUTCMinutes(),e,2)}function Ht(t,e){return z(t.getUTCSeconds(),e,2)}function qt(t){var e=t.getUTCDay();return 0===e?7:e}function zt(t,e){return z(s.count(C(t)-1,t),e,2)}function Vt(t){var e=t.getUTCDay();return e>=4||0===e?h(t):h.ceil(t)}function Wt(t,e){return t=Vt(t),z(h.count(C(t),t)+(4===C(t).getUTCDay()),e,2)}function Gt(t){return t.getUTCDay()}function Qt(t,e){return z(f.count(C(t)-1,t),e,2)}function Jt(t,e){return z(t.getUTCFullYear()%100,e,2)}function Kt(t,e){return z((t=Vt(t)).getUTCFullYear()%100,e,2)}function Zt(t,e){return z(t.getUTCFullYear()%1e4,e,4)}function Xt(t,e){var r=t.getUTCDay();return z((t=r>=4||0===r?h(t):h.ceil(t)).getUTCFullYear()%1e4,e,4)}function te(){return"+0000"}function ee(){return"%"}function re(t){return+t}function ne(t){return Math.floor(+t/1e3)}function oe(t){return L=x(t),M=L.format,I=L.parse,U=L.utcFormat,N=L.utcParse,L}oe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var ie=Date.prototype.toISOString?function(t){return t.toISOString()}:U("%Y-%m-%dT%H:%M:%S.%LZ");var ue=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:N("%Y-%m-%dT%H:%M:%S.%LZ");r.d(e,"timeFormatDefaultLocale",function(){return oe}),r.d(e,"timeFormat",function(){return M}),r.d(e,"timeParse",function(){return I}),r.d(e,"utcFormat",function(){return U}),r.d(e,"utcParse",function(){return N}),r.d(e,"timeFormatLocale",function(){return x}),r.d(e,"isoFormat",function(){return ie}),r.d(e,"isoParse",function(){return ue})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.githubPathAdapter=void 0,e.githubPathAdapter=function(t){const e=t=>(t.match(/\//g)||[]).length;return t.startsWith("https://raw.githubusercontent.com/")?(t.endsWith("/datapackage.json")&&(t=t.replace("/datapackage.json","")),t.endsWith("/")&&(t=t.replace(/.$/,"")),4===e(t)&&(t+="/master"),t):t.startsWith("https://github.com/")?(t.endsWith(".git")&&(t=t.replace(".git","")),t.endsWith("/datapackage.json")&&(t=t.replace("/datapackage.json","")),t.endsWith("/")&&(t=t.replace(/.$/,"")),(t=t.replace("https://github.com/","https://raw.githubusercontent.com/")).includes("/blob")&&(t=t.replace("/blob","")),4===e(t)&&(t+="/master"),t):t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(13);e.getLevelAvailability=((t,e)=>{const r=[n.Level.OFF,n.Level.FATAL,n.Level.ERROR,n.Level.WARNING,n.Level.DEBUG,n.Level.ALL];let o=n.Level.OFF;for(const e of r)if(o|=e,e===t)break;return 0!=(o&e)});class o{constructor(t){this.diagnosticDescriptor=t,this.parents=[],this.diagnosticDescriptor.level||(this.diagnosticDescriptor.level=n.Level.ERROR)}addOutputTo(t){this.parents.push(t)}getFatalListener(){return this.onFatal}setFatalListener(t){this.onFatal=t}fatal(t,r,o){if(e.getLevelAvailability(this.diagnosticDescriptor.level,n.Level.FATAL)){const e=o instanceof Error?o.stack:o;this.onFatal&&this.onFatal(e),this.addRecord(this.prepareRecord({funName:t,message:r,attachment:e},n.Level.FATAL))}}error(t,r,o){if(e.getLevelAvailability(this.diagnosticDescriptor.level,n.Level.ERROR)){const e=o instanceof Error?o.stack:o;this.addRecord(this.prepareRecord({funName:t,message:r,attachment:e},n.Level.ERROR))}}warning(t,r,o){e.getLevelAvailability(this.diagnosticDescriptor.level,n.Level.WARNING)&&this.addRecord(this.prepareRecord({funName:t,message:r,attachment:o},n.Level.WARNING))}debug(t,r,o){e.getLevelAvailability(this.diagnosticDescriptor.level,n.Level.DEBUG)&&this.addRecord(this.prepareRecord({funName:t,message:r,attachment:o},n.Level.DEBUG))}prepareDiagnosticFor(t){return{fatal:this.prepareFatalFor(t),error:this.prepareErrorFor(t),warning:this.prepareWarningFor(t),debug:this.prepareDebugFor(t)}}addRecord(t){if(this.parents.length<=0)throw Error(`parents are missing for ${this.diagnosticDescriptor.module}@${this.diagnosticDescriptor.version} on ${this.diagnosticDescriptor.requestId}`);for(const e of this.parents)e.addRecord(t)}prepareFatalFor(t){return(e,r)=>{this.fatal(t,e,r)}}prepareErrorFor(t){return(e,r)=>{this.error(t,e,r)}}prepareWarningFor(t){return(e,r)=>{this.warning(t,e,r)}}prepareDebugFor(t){return(e,r)=>{this.debug(t,e,r)}}prepareRecord(t,e){const{funName:r,message:o,attachment:i}=t,u={time:(new Date).toISOString(),module:this.diagnosticDescriptor.module,version:this.diagnosticDescriptor.version,requestId:this.diagnosticDescriptor.requestId,funName:r,message:o,level:n.getLabelByLevel(e)};return i&&(u.attachment=i),u}}e.LiftingDiagnosticManager=o;class i extends o{constructor(){super(...arguments),this.content=[]}addRecord(t){this.content.push(t)}putDiagnosticContentInto(t){t._diagnostic=this.content}extractDiagnosticContentFrom(t){const e=JSON.parse(t);if(!e._diagnostic)throw Error('"_diagnostic" field is NOT defined');this.content.push(...e._diagnostic)}}e.EndpointDiagnosticManager=i,e.createDiagnosticManagerOn=function(t,e){return{forRequest:r=>{const n={module:t,version:e,requestId:r,level:null};return{withSeverityLevel:t=>(n.level=t,new i(n))}},basedOn:r=>{const n={module:t,version:e,requestId:r.diagnosticDescriptor.requestId,level:r.diagnosticDescriptor.level},i=new o(n);return i.addOutputTo(r),r.getFatalListener()&&i.setFatalListener(r.getFatalListener()),i}}}},function(t,e,r){var n,o,i;
|
|
2
|
-
/* @license
|
|
3
|
-
Papa Parse
|
|
4
|
-
v5.3.2
|
|
5
|
-
https://github.com/mholt/PapaParse
|
|
6
|
-
License: MIT
|
|
7
|
-
*/o=[],void 0===(i="function"==typeof(n=function t(){"use strict";var e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},r=!e.document&&!!e.postMessage,n=r&&/blob:/i.test((e.location||{}).protocol),o={},i=0,u={parse:function(r,n){var a=(n=n||{}).dynamicTyping||!1;if(j(a)&&(n.dynamicTypingFunction=a,a={}),n.dynamicTyping=a,n.transform=!!j(n.transform)&&n.transform,n.worker&&u.WORKERS_SUPPORTED){var c=function(){if(!u.WORKERS_SUPPORTED)return!1;var r,n,a=(r=e.URL||e.webkitURL||null,n=t.toString(),u.BLOB_URL||(u.BLOB_URL=r.createObjectURL(new Blob(["(",n,")();"],{type:"text/javascript"})))),c=new e.Worker(a);return c.onmessage=v,c.id=i++,o[c.id]=c}();return c.userStep=n.step,c.userChunk=n.chunk,c.userComplete=n.complete,c.userError=n.error,n.step=j(n.step),n.chunk=j(n.chunk),n.complete=j(n.complete),n.error=j(n.error),delete n.worker,void c.postMessage({input:r,config:n,workerId:c.id})}var h=null;return u.NODE_STREAM_INPUT,"string"==typeof r?h=n.download?new s(n):new l(n):!0===r.readable&&j(r.read)&&j(r.on)?h=new p(n):(e.File&&r instanceof File||r instanceof Object)&&(h=new f(n)),h.stream(r)},unparse:function(t,e){var r=!1,n=!0,o=",",i="\r\n",a='"',c=a+a,s=!1,f=null,l=!1;!function(){if("object"==typeof e){if("string"!=typeof e.delimiter||u.BAD_DELIMITERS.filter(function(t){return-1!==e.delimiter.indexOf(t)}).length||(o=e.delimiter),("boolean"==typeof e.quotes||"function"==typeof e.quotes||Array.isArray(e.quotes))&&(r=e.quotes),"boolean"!=typeof e.skipEmptyLines&&"string"!=typeof e.skipEmptyLines||(s=e.skipEmptyLines),"string"==typeof e.newline&&(i=e.newline),"string"==typeof e.quoteChar&&(a=e.quoteChar),"boolean"==typeof e.header&&(n=e.header),Array.isArray(e.columns)){if(0===e.columns.length)throw new Error("Option columns is empty");f=e.columns}void 0!==e.escapeChar&&(c=e.escapeChar+a),("boolean"==typeof e.escapeFormulae||e.escapeFormulae instanceof RegExp)&&(l=e.escapeFormulae instanceof RegExp?e.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var p=new RegExp(d(a),"g");if("string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return h(null,t,s);if("object"==typeof t[0])return h(f||Object.keys(t[0]),t,s)}else if("object"==typeof t)return"string"==typeof t.data&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||f),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:"object"==typeof t.data[0]?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||"object"==typeof t.data[0]||(t.data=[t.data])),h(t.fields||[],t.data||[],s);throw new Error("Unable to serialize unrecognized input");function h(t,e,r){var u="";"string"==typeof t&&(t=JSON.parse(t)),"string"==typeof e&&(e=JSON.parse(e));var a=Array.isArray(t)&&0<t.length,c=!Array.isArray(e[0]);if(a&&n){for(var s=0;s<t.length;s++)0<s&&(u+=o),u+=y(t[s],s);0<e.length&&(u+=i)}for(var f=0;f<e.length;f++){var l=a?t.length:e[f].length,p=!1,h=a?0===Object.keys(e[f]).length:0===e[f].length;if(r&&!a&&(p="greedy"===r?""===e[f].join("").trim():1===e[f].length&&0===e[f][0].length),"greedy"===r&&a){for(var d=[],v=0;v<l;v++){var g=c?t[v]:v;d.push(e[f][g])}p=""===d.join("").trim()}if(!p){for(var _=0;_<l;_++){0<_&&!h&&(u+=o);var b=a&&c?t[_]:_;u+=y(e[f][b],_)}f<e.length-1&&(!r||0<l&&!h)&&(u+=i)}}return u}function y(t,e){if(null==t)return"";if(t.constructor===Date)return JSON.stringify(t).slice(1,25);var n=!1;l&&"string"==typeof t&&l.test(t)&&(t="'"+t,n=!0);var i=t.toString().replace(p,c);return(n=n||!0===r||"function"==typeof r&&r(t,e)||Array.isArray(r)&&r[e]||function(t,e){for(var r=0;r<e.length;r++)if(-1<t.indexOf(e[r]))return!0;return!1}(i,u.BAD_DELIMITERS)||-1<i.indexOf(o)||" "===i.charAt(0)||" "===i.charAt(i.length-1))?a+i+a:i}}};if(u.RECORD_SEP=String.fromCharCode(30),u.UNIT_SEP=String.fromCharCode(31),u.BYTE_ORDER_MARK="\ufeff",u.BAD_DELIMITERS=["\r","\n",'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!r&&!!e.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=y,u.ParserHandle=h,u.NetworkStreamer=s,u.FileStreamer=f,u.StringStreamer=l,u.ReadableStreamStreamer=p,e.jQuery){var a=e.jQuery;a.fn.parse=function(t){var r=t.config||{},n=[];return this.each(function(t){if("INPUT"!==a(this).prop("tagName").toUpperCase()||"file"!==a(this).attr("type").toLowerCase()||!e.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)n.push({file:this.files[o],inputElem:this,instanceConfig:a.extend({},r)})}),o(),this;function o(){if(0!==n.length){var e,r,o,c,s=n[0];if(j(t.before)){var f=t.before(s.file,s.inputElem);if("object"==typeof f){if("abort"===f.action)return e="AbortError",r=s.file,o=s.inputElem,c=f.reason,void(j(t.error)&&t.error({name:e},r,o,c));if("skip"===f.action)return void i();"object"==typeof f.config&&(s.instanceConfig=a.extend(s.instanceConfig,f.config))}else if("skip"===f)return void i()}var l=s.instanceConfig.complete;s.instanceConfig.complete=function(t){j(l)&&l(t,s.file,s.inputElem),i()},u.parse(s.file,s.instanceConfig)}else j(t.complete)&&t.complete()}function i(){n.splice(0,1),o()}}}function c(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(t){var e=b(t);e.chunkSize=parseInt(e.chunkSize),t.step||t.chunk||(e.chunkSize=null),this._handle=new h(e),(this._handle.streamer=this)._config=e}.call(this,t),this.parseChunk=function(t,r){if(this.isFirstChunk&&j(this._config.beforeFirstChunk)){var o=this._config.beforeFirstChunk(t);void 0!==o&&(t=o)}this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+t;this._partialLine="";var a=this._handle.parse(i,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var c=a.meta.cursor;this._finished||(this._partialLine=i.substring(c-this._baseIndex),this._baseIndex=c),a&&a.data&&(this._rowCount+=a.data.length);var s=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(n)e.postMessage({results:a,workerId:u.WORKER_ID,finished:s});else if(j(this._config.chunk)&&!r){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!s||!j(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),s||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(t){j(this._config.error)?this._config.error(t):n&&this._config.error&&e.postMessage({workerId:u.WORKER_ID,error:t,finished:!1})}}function s(t){var e;(t=t||{}).chunkSize||(t.chunkSize=u.RemoteChunkSize),c.call(this,t),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(t){this._input=t,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),r||(e.onload=m(this._chunkLoaded,this),e.onerror=m(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var t=this._config.downloadRequestHeaders;for(var n in t)e.setRequestHeader(n,t[n])}if(this._config.chunkSize){var o=this._start+this._config.chunkSize-1;e.setRequestHeader("Range","bytes="+this._start+"-"+o)}try{e.send(this._config.downloadRequestBody)}catch(t){this._chunkError(t.message)}r&&0===e.status&&this._chunkError()}},this._chunkLoaded=function(){var t;4===e.readyState&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:e.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null===(t=e.getResponseHeader("Content-Range"))?-1:parseInt(t.substring(t.lastIndexOf("/")+1))),this.parseChunk(e.responseText)))},this._chunkError=function(t){var r=e.statusText||t;this._sendError(new Error(r))}}function f(t){var e,r;(t=t||{}).chunkSize||(t.chunkSize=u.LocalChunkSize),c.call(this,t);var n="undefined"!=typeof FileReader;this.stream=function(t){this._input=t,r=t.slice||t.webkitSlice||t.mozSlice,n?((e=new FileReader).onload=m(this._chunkLoaded,this),e.onerror=m(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var t=this._input;if(this._config.chunkSize){var o=Math.min(this._start+this._config.chunkSize,this._input.size);t=r.call(t,this._start,o)}var i=e.readAsText(t,this._config.encoding);n||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(t){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(t.target.result)},this._chunkError=function(){this._sendError(e.error)}}function l(t){var e;c.call(this,t=t||{}),this.stream=function(t){return e=t,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var t,r=this._config.chunkSize;return r?(t=e.substring(0,r),e=e.substring(r)):(t=e,e=""),this._finished=!e,this.parseChunk(t)}}}function p(t){c.call(this,t=t||{});var e=[],r=!0,n=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(t){this._input=t,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===e.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):r=!0},this._streamData=m(function(t){try{e.push("string"==typeof t?t:t.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(t){this._streamError(t)}},this),this._streamError=m(function(t){this._streamCleanUp(),this._sendError(t)},this),this._streamEnd=m(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=m(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function h(t){var e,r,n,o=Math.pow(2,53),i=-o,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,c=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,s=this,f=0,l=0,p=!1,h=!1,v=[],g={data:[],errors:[],meta:{}};if(j(t.step)){var _=t.step;t.step=function(e){if(g=e,O())w();else{if(w(),0===g.data.length)return;f+=e.data.length,t.preview&&f>t.preview?r.abort():(g.data=g.data[0],_(g,s))}}}function m(e){return"greedy"===t.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function w(){return g&&n&&(A("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),n=!1),t.skipEmptyLines&&(g.data=g.data.filter(function(t){return!m(t)})),O()&&function(){if(g)if(Array.isArray(g.data[0])){for(var e=0;O()&&e<g.data.length;e++)g.data[e].forEach(r);g.data.splice(0,1)}else g.data.forEach(r);function r(e,r){j(t.transformHeader)&&(e=t.transformHeader(e,r)),v.push(e)}}(),function(){if(!g||!t.header&&!t.dynamicTyping&&!t.transform)return g;function e(e,r){var n,o=t.header?{}:[];for(n=0;n<e.length;n++){var i=n,u=e[n];t.header&&(i=n>=v.length?"__parsed_extra":v[n]),t.transform&&(u=t.transform(u,i)),u=E(i,u),"__parsed_extra"===i?(o[i]=o[i]||[],o[i].push(u)):o[i]=u}return t.header&&(n>v.length?A("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+n,l+r):n<v.length&&A("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+n,l+r)),o}var r=1;return!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(e),r=g.data.length):g.data=e(g.data,0),t.header&&g.meta&&(g.meta.fields=v),l+=r,g}()}function O(){return t.header&&0===v.length}function E(e,r){return n=e,t.dynamicTypingFunction&&void 0===t.dynamicTyping[n]&&(t.dynamicTyping[n]=t.dynamicTypingFunction(n)),!0===(t.dynamicTyping[n]||t.dynamicTyping)?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&(function(t){if(a.test(t)){var e=parseFloat(t);if(i<e&&e<o)return!0}return!1}(r)?parseFloat(r):c.test(r)?new Date(r):""===r?null:r):r;var n}function A(t,e,r,n){var o={type:t,code:e,message:r};void 0!==n&&(o.row=n),g.errors.push(o)}this.parse=function(o,i,a){var c=t.quoteChar||'"';if(t.newline||(t.newline=function(t,e){t=t.substring(0,1048576);var r=new RegExp(d(e)+"([^]*?)"+d(e),"gm"),n=(t=t.replace(r,"")).split("\r"),o=t.split("\n"),i=1<o.length&&o[0].length<n[0].length;if(1===n.length||i)return"\n";for(var u=0,a=0;a<n.length;a++)"\n"===n[a][0]&&u++;return u>=n.length/2?"\r\n":"\r"}(o,c)),n=!1,t.delimiter)j(t.delimiter)&&(t.delimiter=t.delimiter(o),g.meta.delimiter=t.delimiter);else{var s=function(e,r,n,o,i){var a,c,s,f;i=i||[",","\t","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var l=0;l<i.length;l++){var p=i[l],h=0,d=0,v=0;s=void 0;for(var g=new y({comments:o,delimiter:p,newline:r,preview:10}).parse(e),_=0;_<g.data.length;_++)if(n&&m(g.data[_]))v++;else{var b=g.data[_].length;d+=b,void 0!==s?0<b&&(h+=Math.abs(b-s),s=b):s=b}0<g.data.length&&(d/=g.data.length-v),(void 0===c||h<=c)&&(void 0===f||f<d)&&1.99<d&&(c=h,a=p,f=d)}return{successful:!!(t.delimiter=a),bestDelimiter:a}}(o,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);s.successful?t.delimiter=s.bestDelimiter:(n=!0,t.delimiter=u.DefaultDelimiter),g.meta.delimiter=t.delimiter}var f=b(t);return t.preview&&t.header&&f.preview++,e=o,r=new y(f),g=r.parse(e,i,a),w(),p?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,r.abort(),e=j(t.chunk)?"":e.substring(r.getCharIndex())},this.resume=function(){s.streamer._halted?(p=!1,s.streamer.parseChunk(e,!0)):setTimeout(s.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,r.abort(),g.meta.aborted=!0,j(t.complete)&&t.complete(g),e=""}}function d(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function y(t){var e,r=(t=t||{}).delimiter,n=t.newline,o=t.comments,i=t.step,a=t.preview,c=t.fastMode,s=e=void 0===t.quoteChar||null===t.quoteChar?'"':t.quoteChar;if(void 0!==t.escapeChar&&(s=t.escapeChar),("string"!=typeof r||-1<u.BAD_DELIMITERS.indexOf(r))&&(r=","),o===r)throw new Error("Comment character same as delimiter");!0===o?o="#":("string"!=typeof o||-1<u.BAD_DELIMITERS.indexOf(o))&&(o=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var f=0,l=!1;this.parse=function(t,u,p){if("string"!=typeof t)throw new Error("Input must be a string");var h=t.length,y=r.length,v=n.length,g=o.length,_=j(i),b=[],m=[],w=[],O=f=0;if(!t)return L();if(c||!1!==c&&-1===t.indexOf(e)){for(var E=t.split(n),A=0;A<E.length;A++){if(w=E[A],f+=w.length,A!==E.length-1)f+=n.length;else if(p)return L();if(!o||w.substring(0,g)!==o){if(_){if(b=[],F(w.split(r)),M(),l)return L()}else F(w.split(r));if(a&&a<=A)return b=b.slice(0,a),L(!0)}}return L()}for(var S=t.indexOf(r,f),R=t.indexOf(n,f),T=new RegExp(d(s)+d(e),"g"),D=t.indexOf(e,f);;)if(t[f]!==e)if(o&&0===w.length&&t.substring(f,f+g)===o){if(-1===R)return L();f=R+v,R=t.indexOf(n,f),S=t.indexOf(r,f)}else if(-1!==S&&(S<R||-1===R))w.push(t.substring(f,S)),f=S+y,S=t.indexOf(r,f);else{if(-1===R)break;if(w.push(t.substring(f,R)),x(R+v),_&&(M(),l))return L();if(a&&b.length>=a)return L(!0)}else for(D=f,f++;;){if(-1===(D=t.indexOf(e,D+1)))return p||m.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:f}),$();if(D===h-1)return $(t.substring(f,D).replace(T,e));if(e!==s||t[D+1]!==s){if(e===s||0===D||t[D-1]!==s){-1!==S&&S<D+1&&(S=t.indexOf(r,D+1)),-1!==R&&R<D+1&&(R=t.indexOf(n,D+1));var k=P(-1===R?S:Math.min(S,R));if(t.substr(D+1+k,y)===r){w.push(t.substring(f,D).replace(T,e)),t[f=D+1+k+y]!==e&&(D=t.indexOf(e,f)),S=t.indexOf(r,f),R=t.indexOf(n,f);break}var C=P(R);if(t.substring(D+1+C,D+1+C+v)===n){if(w.push(t.substring(f,D).replace(T,e)),x(D+1+C+v),S=t.indexOf(r,f),D=t.indexOf(e,f),_&&(M(),l))return L();if(a&&b.length>=a)return L(!0);break}m.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:f}),D++}}else D++}return $();function F(t){b.push(t),O=f}function P(e){var r=0;if(-1!==e){var n=t.substring(D+1,e);n&&""===n.trim()&&(r=n.length)}return r}function $(e){return p||(void 0===e&&(e=t.substring(f)),w.push(e),f=h,F(w),_&&M()),L()}function x(e){f=e,F(w),w=[],R=t.indexOf(n,f)}function L(t){return{data:b,errors:m,meta:{delimiter:r,linebreak:n,aborted:l,truncated:!!t,cursor:O+(u||0)}}}function M(){i(L()),b=[],m=[]}},this.abort=function(){l=!0},this.getCharIndex=function(){return f}}function v(t){var e=t.data,r=o[e.workerId],n=!1;if(e.error)r.userError(e.error,e.file);else if(e.results&&e.results.data){var i={abort:function(){n=!0,g(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:_,resume:_};if(j(r.userStep)){for(var u=0;u<e.results.data.length&&(r.userStep({data:e.results.data[u],errors:e.results.errors,meta:e.results.meta},i),!n);u++);delete e.results}else j(r.userChunk)&&(r.userChunk(e.results,i,e.file),delete e.results)}e.finished&&!n&&g(e.workerId,e.results)}function g(t,e){var r=o[t];j(r.userComplete)&&r.userComplete(e),r.terminate(),delete o[t]}function _(){throw new Error("Not implemented.")}function b(t){if("object"!=typeof t||null===t)return t;var e=Array.isArray(t)?[]:{};for(var r in t)e[r]=b(t[r]);return e}function m(t,e){return function(){t.apply(e,arguments)}}function j(t){return"function"==typeof t}return n&&(e.onmessage=function(t){var r=t.data;if(void 0===u.WORKER_ID&&r&&(u.WORKER_ID=r.workerId),"string"==typeof r.input)e.postMessage({workerId:u.WORKER_ID,results:u.parse(r.input,r.config),finished:!0});else if(e.File&&r.input instanceof File||r.input instanceof Object){var n=u.parse(r.input,r.config);n&&e.postMessage({workerId:u.WORKER_ID,results:n,finished:!0})}}),(s.prototype=Object.create(c.prototype)).constructor=s,(f.prototype=Object.create(c.prototype)).constructor=f,(l.prototype=Object.create(l.prototype)).constructor=l,(p.prototype=Object.create(c.prototype)).constructor=p,u})?n.apply(e,o):n)||(t.exports=i)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(11),o=r(16),i=r(12),u=r(3),a=r(15);function c(t){return u.isDatapointsQuery(t)&&1===n(t.where).length&&o(t.where)&&t.where.$and?a.QueryFeature.WhereClauseBasedOnConjunction:null}e.featureDetectors=[c,(t,e)=>{if(!c(t))return null;for(const r of t.where.$and){const o=n(r);if(1===o.length){const u=i(o),c=r[u];if(t.join&&t.join[c]){const r=t.join[c],o=r.where,s=i(n(o));if(r.key===u&&r.key===s&&1===n(o).length){const t=o[s],i=e.get(r.key),u=!!t.$in||!!t.$nin,c="entity_set"===i.concept_type||"entity_domain"===i.concept_type;if(1===n(t).length&&u&&c)return a.QueryFeature.ConjunctionPartFromWhereClauseCorrespondsToJoin}}}}return null}]},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(7),o=r(1),i=r(4),u=r(3);function a(t,e){const{dataset:r,branch:n,commit:o}=e;return`${t}${r}/${n}/${o}`}function c(t){return t?"default ":""}function s(t,e){return`${c(e)}dataset '${t}'`}e.getRepositoryPath=a,e.getFilePath=function(t,e="datapackage.json"){return`${t}/${e}`},e.extendQueryWithRepository=function(t,e={repositoryDescriptors:{}}){const r=i(e,"repositoryDescriptors",{}),f=n(t.dataset);if(!f){const[e,r]=t.dataset.split("#");!t.branch&&r&&(t.branch=r,t.dataset=e)}const l=n(t.branch)||t.branch===e.defaultRepositoryBranch,p=n(t.commit)||t.commit===e.defaultRepositoryCommit,{dataset:h=i(e,"defaultRepository",u.DEFAULT_REPOSITORY_NAME),branch:d=i(e,"defaultRepositoryBranch",u.DEFAULT_REPOSITORY_BRANCH)}=t;if(n(r[h]))throw new Error(`No ${s(h,f)} was found`);if(n(r[h][d]))throw new Error(`No ${function(t,e){return`${c(e)}branch '${t}'`}(d,l)} in ${s(h,f)} was found`);"HEAD"===t.commit&&(t.commit=i(r,`${h}.${d}.0`)||i(e,"defaultRepositoryCommit",u.DEFAULT_REPOSITORY_HASH));const{commit:y=i(r,`${h}.${d}.0`)||i(e,"defaultRepositoryCommit",u.DEFAULT_REPOSITORY_HASH)}=t;if(!o(r[h][d],y))throw new Error(`No ${function(t,e){return`${c(e)}commit '${t}'`}(y,p)} in ${c(l)}branch '${d}' in ${s(h,f)} was found`);const v=a("",{dataset:h,branch:d,commit:y});return Object.assign(t,{repositoryPath:v}),{dataset:h,branch:d,commit:y,isDefaultBranch:l,isDefaultCommit:p}}},function(t,e,r){(function(e){var r=200,n="__lodash_hash_undefined__",o="[object Function]",i="[object GeneratorFunction]",u=/^\[object .+?Constructor\]$/,a="object"==typeof e&&e&&e.Object===Object&&e,c="object"==typeof self&&self&&self.Object===Object&&self,s=a||c||Function("return this")();function f(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,n){var o=t.length,i=r+(n?1:-1);for(;n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,p,r);var n=r-1,o=t.length;for(;++n<o;)if(t[n]===e)return n;return-1}(t,e,0)>-1}function l(t,e,r){for(var n=-1,o=t?t.length:0;++n<o;)if(r(e,t[n]))return!0;return!1}function p(t){return t!=t}function h(t,e){return t.has(e)}function d(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var y,v=Array.prototype,g=Function.prototype,_=Object.prototype,b=s["__core-js_shared__"],m=(y=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",j=g.toString,w=_.hasOwnProperty,O=_.toString,E=RegExp("^"+j.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=v.splice,S=M(s,"Map"),R=M(s,"Set"),T=M(Object,"create");function D(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function k(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function C(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function F(t){var e=-1,r=t?t.length:0;for(this.__data__=new C;++e<r;)this.add(t[e])}function P(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function $(t){return!(!I(t)||m&&m in t)&&(function(t){var e=I(t)?O.call(t):"";return e==o||e==i}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?E:u).test(function(t){if(null!=t){try{return j.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}D.prototype.clear=function(){this.__data__=T?T(null):{}},D.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},D.prototype.get=function(t){var e=this.__data__;if(T){var r=e[t];return r===n?void 0:r}return w.call(e,t)?e[t]:void 0},D.prototype.has=function(t){var e=this.__data__;return T?void 0!==e[t]:w.call(e,t)},D.prototype.set=function(t,e){return this.__data__[t]=T&&void 0===e?n:e,this},k.prototype.clear=function(){this.__data__=[]},k.prototype.delete=function(t){var e=this.__data__,r=P(e,t);return!(r<0||(r==e.length-1?e.pop():A.call(e,r,1),0))},k.prototype.get=function(t){var e=this.__data__,r=P(e,t);return r<0?void 0:e[r][1]},k.prototype.has=function(t){return P(this.__data__,t)>-1},k.prototype.set=function(t,e){var r=this.__data__,n=P(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},C.prototype.clear=function(){this.__data__={hash:new D,map:new(S||k),string:new D}},C.prototype.delete=function(t){return L(this,t).delete(t)},C.prototype.get=function(t){return L(this,t).get(t)},C.prototype.has=function(t){return L(this,t).has(t)},C.prototype.set=function(t,e){return L(this,t).set(t,e),this},F.prototype.add=F.prototype.push=function(t){return this.__data__.set(t,n),this},F.prototype.has=function(t){return this.__data__.has(t)};var x=R&&1/d(new R([,-0]))[1]==1/0?function(t){return new R(t)}:function(){};function L(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function M(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return $(r)?r:void 0}function I(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=function(t){return t&&t.length?function(t,e,n){var o=-1,i=f,u=t.length,a=!0,c=[],s=c;if(n)a=!1,i=l;else if(u>=r){var p=e?null:x(t);if(p)return d(p);a=!1,i=h,s=new F}else s=e?[]:c;t:for(;++o<u;){var y=t[o],v=e?e(y):y;if(y=n||0!==y?y:0,a&&v==v){for(var g=s.length;g--;)if(s[g]===v)continue t;e&&s.push(v),c.push(y)}else i(s,v,n)||(s!==c&&s.push(v),c.push(y))}return c}(t):[]}}).call(this,r(0))},function(t,e){var r="[object String]",n=Object.prototype.toString,o=Array.isArray;t.exports=function(t){return"string"==typeof t||!o(t)&&function(t){return!!t&&"object"==typeof t}(t)&&n.call(t)==r}},function(t,e,r){(function(t,r){var n=200,o="Expected a function",i="__lodash_hash_undefined__",u=1,a=2,c=1/0,s=9007199254740991,f="[object Arguments]",l="[object Array]",p="[object Boolean]",h="[object Date]",d="[object Error]",y="[object Function]",v="[object GeneratorFunction]",g="[object Map]",_="[object Number]",b="[object Object]",m="[object RegExp]",j="[object Set]",w="[object String]",O="[object Symbol]",E="[object ArrayBuffer]",A="[object DataView]",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/,T=/^\./,D=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,C=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[f]=P[l]=P[E]=P[p]=P[A]=P[h]=P[d]=P[y]=P[g]=P[_]=P[b]=P[m]=P[j]=P[w]=P["[object WeakMap]"]=!1;var $="object"==typeof t&&t&&t.Object===Object&&t,x="object"==typeof self&&self&&self.Object===Object&&self,L=$||x||Function("return this")(),M="object"==typeof e&&e&&!e.nodeType&&e,I=M&&"object"==typeof r&&r&&!r.nodeType&&r,U=I&&I.exports===M&&$.process,N=function(){try{return U&&U.binding("util")}catch(t){}}(),B=N&&N.isTypedArray;function Y(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(!e(t[r],r,t))return!1;return!0}function H(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function z(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function V(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var W,G,Q,J=Array.prototype,K=Function.prototype,Z=Object.prototype,X=L["__core-js_shared__"],tt=(W=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",et=K.toString,rt=Z.hasOwnProperty,nt=Z.toString,ot=RegExp("^"+et.call(rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),it=L.Symbol,ut=L.Uint8Array,at=Z.propertyIsEnumerable,ct=J.splice,st=(G=Object.keys,Q=Object,function(t){return G(Q(t))}),ft=zt(L,"DataView"),lt=zt(L,"Map"),pt=zt(L,"Promise"),ht=zt(L,"Set"),dt=zt(L,"WeakMap"),yt=zt(Object,"create"),vt=Xt(ft),gt=Xt(lt),_t=Xt(pt),bt=Xt(ht),mt=Xt(dt),jt=it?it.prototype:void 0,wt=jt?jt.valueOf:void 0,Ot=jt?jt.toString:void 0;function Et(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function At(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function St(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Rt(t){var e=-1,r=t?t.length:0;for(this.__data__=new St;++e<r;)this.add(t[e])}function Tt(t){this.__data__=new At(t)}function Dt(t,e){var r=ne(t)||re(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!rt.call(t,i)||o&&("length"==i||Wt(i,n))||r.push(i);return r}function kt(t,e){for(var r=t.length;r--;)if(ee(t[r][0],e))return r;return-1}Et.prototype.clear=function(){this.__data__=yt?yt(null):{}},Et.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Et.prototype.get=function(t){var e=this.__data__;if(yt){var r=e[t];return r===i?void 0:r}return rt.call(e,t)?e[t]:void 0},Et.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:rt.call(e,t)},Et.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?i:e,this},At.prototype.clear=function(){this.__data__=[]},At.prototype.delete=function(t){var e=this.__data__,r=kt(e,t);return!(r<0||(r==e.length-1?e.pop():ct.call(e,r,1),0))},At.prototype.get=function(t){var e=this.__data__,r=kt(e,t);return r<0?void 0:e[r][1]},At.prototype.has=function(t){return kt(this.__data__,t)>-1},At.prototype.set=function(t,e){var r=this.__data__,n=kt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},St.prototype.clear=function(){this.__data__={hash:new Et,map:new(lt||At),string:new Et}},St.prototype.delete=function(t){return qt(this,t).delete(t)},St.prototype.get=function(t){return qt(this,t).get(t)},St.prototype.has=function(t){return qt(this,t).has(t)},St.prototype.set=function(t,e){return qt(this,t).set(t,e),this},Rt.prototype.add=Rt.prototype.push=function(t){return this.__data__.set(t,i),this},Rt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.clear=function(){this.__data__=new At},Tt.prototype.delete=function(t){return this.__data__.delete(t)},Tt.prototype.get=function(t){return this.__data__.get(t)},Tt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof At){var o=r.__data__;if(!lt||o.length<n-1)return o.push([t,e]),this;r=this.__data__=new St(o)}return r.set(t,e),this};var Ct,Ft,Pt=(Ct=function(t,e){return t&&xt(t,e,le)},function(t,e){if(null==t)return t;if(!oe(t))return Ct(t,e);for(var r=t.length,n=Ft?r:-1,o=Object(t);(Ft?n--:++n<r)&&!1!==e(o[n],n,o););return t});function $t(t,e){var r=!0;return Pt(t,function(t,n,o){return r=!!e(t,n,o)}),r}var xt=function(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===r(i[c],c,i))break}return e}}();function Lt(t,e){for(var r=0,n=(e=Gt(e,t)?[e]:Yt(e)).length;null!=t&&r<n;)t=t[Zt(e[r++])];return r&&r==n?t:void 0}function Mt(t,e){return null!=t&&e in Object(t)}function It(t,e,r,n,o){return t===e||(null==t||null==e||!ae(t)&&!ce(e)?t!=t&&e!=e:function(t,e,r,n,o,i){var c=ne(t),s=ne(e),y=l,v=l;c||(y=(y=Vt(t))==f?b:y);s||(v=(v=Vt(e))==f?b:v);var S=y==b&&!q(t),R=v==b&&!q(e),T=y==v;if(T&&!S)return i||(i=new Tt),c||fe(t)?Ht(t,e,r,n,o,i):function(t,e,r,n,o,i,c){switch(r){case A:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case E:return!(t.byteLength!=e.byteLength||!n(new ut(t),new ut(e)));case p:case h:case _:return ee(+t,+e);case d:return t.name==e.name&&t.message==e.message;case m:case w:return t==e+"";case g:var s=z;case j:var f=i&a;if(s||(s=V),t.size!=e.size&&!f)return!1;var l=c.get(t);if(l)return l==e;i|=u,c.set(t,e);var y=Ht(s(t),s(e),n,o,i,c);return c.delete(t),y;case O:if(wt)return wt.call(t)==wt.call(e)}return!1}(t,e,y,r,n,o,i);if(!(o&a)){var D=S&&rt.call(t,"__wrapped__"),k=R&&rt.call(e,"__wrapped__");if(D||k){var C=D?t.value():t,F=k?e.value():e;return i||(i=new Tt),r(C,F,n,o,i)}}if(!T)return!1;return i||(i=new Tt),function(t,e,r,n,o,i){var u=o&a,c=le(t),s=c.length,f=le(e).length;if(s!=f&&!u)return!1;for(var l=s;l--;){var p=c[l];if(!(u?p in e:rt.call(e,p)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var d=!0;i.set(t,e),i.set(e,t);for(var y=u;++l<s;){p=c[l];var v=t[p],g=e[p];if(n)var _=u?n(g,v,p,e,t,i):n(v,g,p,t,e,i);if(!(void 0===_?v===g||r(v,g,n,o,i):_)){d=!1;break}y||(y="constructor"==p)}if(d&&!y){var b=t.constructor,m=e.constructor;b!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof m&&m instanceof m)&&(d=!1)}return i.delete(t),i.delete(e),d}(t,e,r,n,o,i)}(t,e,It,r,n,o))}function Ut(t){return!(!ae(t)||tt&&tt in t)&&(ie(t)||q(t)?ot:C).test(Xt(t))}function Nt(t){return"function"==typeof t?t:null==t?pe:"object"==typeof t?ne(t)?function(t,e){if(Gt(t)&&Qt(e))return Jt(Zt(t),e);return function(r){var n=function(t,e,r){var n=null==t?void 0:Lt(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){var n,o=-1,i=(e=Gt(e,t)?[e]:Yt(e)).length;for(;++o<i;){var u=Zt(e[o]);if(!(n=null!=t&&r(t,u)))break;t=t[u]}if(n)return n;return!!(i=t?t.length:0)&&ue(i)&&Wt(u,i)&&(ne(t)||re(t))}(t,e,Mt)}(r,t):It(e,n,void 0,u|a)}}(t[0],t[1]):function(t){var e=function(t){var e=le(t),r=e.length;for(;r--;){var n=e[r],o=t[n];e[r]=[n,o,Qt(o)]}return e}(t);if(1==e.length&&e[0][2])return Jt(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,n){var o=r.length,i=o,c=!n;if(null==t)return!i;for(t=Object(t);o--;){var s=r[o];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<i;){var f=(s=r[o])[0],l=t[f],p=s[1];if(c&&s[2]){if(void 0===l&&!(f in t))return!1}else{var h=new Tt;if(n)var d=n(l,p,f,t,e,h);if(!(void 0===d?It(p,l,n,u|a,h):d))return!1}}return!0}(r,t,e)}}(t):Gt(e=t)?(r=Zt(e),function(t){return null==t?void 0:t[r]}):function(t){return function(e){return Lt(e,t)}}(e);var e,r}function Bt(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||Z,e!==n)return st(t);var e,r,n,o=[];for(var i in Object(t))rt.call(t,i)&&"constructor"!=i&&o.push(i);return o}function Yt(t){return ne(t)?t:Kt(t)}function Ht(t,e,r,n,o,i){var c=o&a,s=t.length,f=e.length;if(s!=f&&!(c&&f>s))return!1;var l=i.get(t);if(l&&i.get(e))return l==e;var p=-1,h=!0,d=o&u?new Rt:void 0;for(i.set(t,e),i.set(e,t);++p<s;){var y=t[p],v=e[p];if(n)var g=c?n(v,y,p,e,t,i):n(y,v,p,t,e,i);if(void 0!==g){if(g)continue;h=!1;break}if(d){if(!H(e,function(t,e){if(!d.has(e)&&(y===t||r(y,t,n,o,i)))return d.add(e)})){h=!1;break}}else if(y!==v&&!r(y,v,n,o,i)){h=!1;break}}return i.delete(t),i.delete(e),h}function qt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function zt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Ut(r)?r:void 0}var Vt=function(t){return nt.call(t)};function Wt(t,e){return!!(e=null==e?s:e)&&("number"==typeof t||F.test(t))&&t>-1&&t%1==0&&t<e}function Gt(t,e){if(ne(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!se(t))||(R.test(t)||!S.test(t)||null!=e&&t in Object(e))}function Qt(t){return t==t&&!ae(t)}function Jt(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(ft&&Vt(new ft(new ArrayBuffer(1)))!=A||lt&&Vt(new lt)!=g||pt&&"[object Promise]"!=Vt(pt.resolve())||ht&&Vt(new ht)!=j||dt&&"[object WeakMap]"!=Vt(new dt))&&(Vt=function(t){var e=nt.call(t),r=e==b?t.constructor:void 0,n=r?Xt(r):void 0;if(n)switch(n){case vt:return A;case gt:return g;case _t:return"[object Promise]";case bt:return j;case mt:return"[object WeakMap]"}return e});var Kt=te(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(se(t))return Ot?Ot.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}(e);var r=[];return T.test(t)&&r.push(""),t.replace(D,function(t,e,n,o){r.push(n?o.replace(k,"$1"):e||t)}),r});function Zt(t){if("string"==typeof t||se(t))return t;var e=t+"";return"0"==e&&1/t==-c?"-0":e}function Xt(t){if(null!=t){try{return et.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function te(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(o);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u),u};return r.cache=new(te.Cache||St),r}function ee(t,e){return t===e||t!=t&&e!=e}function re(t){return function(t){return ce(t)&&oe(t)}(t)&&rt.call(t,"callee")&&(!at.call(t,"callee")||nt.call(t)==f)}te.Cache=St;var ne=Array.isArray;function oe(t){return null!=t&&ue(t.length)&&!ie(t)}function ie(t){var e=ae(t)?nt.call(t):"";return e==y||e==v}function ue(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function ae(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ce(t){return!!t&&"object"==typeof t}function se(t){return"symbol"==typeof t||ce(t)&&nt.call(t)==O}var fe=B?function(t){return function(e){return t(e)}}(B):function(t){return ce(t)&&ue(t.length)&&!!P[nt.call(t)]};function le(t){return oe(t)?Dt(t):Bt(t)}function pe(t){return t}r.exports=function(t,e,r){var n=ne(t)?Y:$t;return r&&function(t,e,r){if(!ae(r))return!1;var n=typeof e;return!!("number"==n?oe(r)&&Wt(e,r.length):"string"==n&&e in r)&&ee(r[e],t)}(t,e,r)&&(e=void 0),n(t,Nt(e))}}).call(this,r(0),r(2)(t))},function(t,e,r){(function(e){var r="Expected a function",n="__lodash_hash_undefined__",o=1/0,i=9007199254740991,u="[object Arguments]",a="[object Function]",c="[object GeneratorFunction]",s="[object Symbol]",f=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,p=/^\./,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,y=/^\[object .+?Constructor\]$/,v=/^(?:0|[1-9]\d*)$/,g="object"==typeof e&&e&&e.Object===Object&&e,_="object"==typeof self&&self&&self.Object===Object&&self,b=g||_||Function("return this")();var m,j=Array.prototype,w=Function.prototype,O=Object.prototype,E=b["__core-js_shared__"],A=(m=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",S=w.toString,R=O.hasOwnProperty,T=O.toString,D=RegExp("^"+S.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=b.Symbol,C=O.propertyIsEnumerable,F=j.splice,P=q(b,"Map"),$=q(Object,"create"),x=k?k.prototype:void 0,L=x?x.toString:void 0;function M(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function I(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function U(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function N(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function B(t,e){return null!=t&&R.call(t,e)}function Y(t){return!(!Z(t)||A&&A in t)&&(J(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?D:y).test(function(t){if(null!=t){try{return S.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function H(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function q(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Y(r)?r:void 0}function z(t,e,r){for(var n,o,a=-1,c=(e=function(t,e){if(Q(t))return!1;var r=typeof t;if("number"==r||"symbol"==r||"boolean"==r||null==t||tt(t))return!0;return l.test(t)||!f.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:Q(n=e)?n:V(n)).length;++a<c;){var s=W(e[a]);if(!(o=null!=t&&r(t,s)))break;t=t[s]}return o||!!(c=t?t.length:0)&&K(c)&&function(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||v.test(t))&&t>-1&&t%1==0&&t<e}(s,c)&&(Q(t)||function(t){return function(t){return X(t)&&function(t){return null!=t&&K(t.length)&&!J(t)}(t)}(t)&&R.call(t,"callee")&&(!C.call(t,"callee")||T.call(t)==u)}(t))}M.prototype.clear=function(){this.__data__=$?$(null):{}},M.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},M.prototype.get=function(t){var e=this.__data__;if($){var r=e[t];return r===n?void 0:r}return R.call(e,t)?e[t]:void 0},M.prototype.has=function(t){var e=this.__data__;return $?void 0!==e[t]:R.call(e,t)},M.prototype.set=function(t,e){return this.__data__[t]=$&&void 0===e?n:e,this},I.prototype.clear=function(){this.__data__=[]},I.prototype.delete=function(t){var e=this.__data__,r=N(e,t);return!(r<0||(r==e.length-1?e.pop():F.call(e,r,1),0))},I.prototype.get=function(t){var e=this.__data__,r=N(e,t);return r<0?void 0:e[r][1]},I.prototype.has=function(t){return N(this.__data__,t)>-1},I.prototype.set=function(t,e){var r=this.__data__,n=N(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},U.prototype.clear=function(){this.__data__={hash:new M,map:new(P||I),string:new M}},U.prototype.delete=function(t){return H(this,t).delete(t)},U.prototype.get=function(t){return H(this,t).get(t)},U.prototype.has=function(t){return H(this,t).has(t)},U.prototype.set=function(t,e){return H(this,t).set(t,e),this};var V=G(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(tt(t))return L?L.call(t):"";var e=t+"";return"0"==e&&1/t==-o?"-0":e}(e);var r=[];return p.test(t)&&r.push(""),t.replace(h,function(t,e,n,o){r.push(n?o.replace(d,"$1"):e||t)}),r});function W(t){if("string"==typeof t||tt(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}function G(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u),u};return n.cache=new(G.Cache||U),n}G.Cache=U;var Q=Array.isArray;function J(t){var e=Z(t)?T.call(t):"";return e==a||e==c}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function Z(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function X(t){return!!t&&"object"==typeof t}function tt(t){return"symbol"==typeof t||X(t)&&T.call(t)==s}t.exports=function(t,e){return null!=t&&z(t,e,B)}}).call(this,r(0))},function(t,e){t.exports=function(t){return t?t[0]:void 0}},function(t,e){var r=9007199254740991,n="[object Arguments]",o="[object Function]",i="[object GeneratorFunction]",u=/^(?:0|[1-9]\d*)$/;function a(t,e){return function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(e,function(e){return t[e]})}var c,s,f=Object.prototype,l=f.hasOwnProperty,p=f.toString,h=f.propertyIsEnumerable,d=(c=Object.keys,s=Object,function(t){return c(s(t))});function y(t,e){var r=_(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&b(t)}(t)&&l.call(t,"callee")&&(!h.call(t,"callee")||p.call(t)==n)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],o=r.length,i=!!o;for(var u in t)!e&&!l.call(t,u)||i&&("length"==u||g(u,o))||r.push(u);return r}function v(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||f,e!==n)return d(t);var e,r,n,o=[];for(var i in Object(t))l.call(t,i)&&"constructor"!=i&&o.push(i);return o}function g(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<e}var _=Array.isArray;function b(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?p.call(t):"";return e==o||e==i}(t)}t.exports=function(t){return t?a(t,function(t){return b(t)?y(t):v(t)}(t)):[]}},function(t,e,r){(function(t,r){var n=200,o="__lodash_hash_undefined__",i=9007199254740991,u="[object Arguments]",a="[object Boolean]",c="[object Date]",s="[object Function]",f="[object GeneratorFunction]",l="[object Map]",p="[object Number]",h="[object Object]",d="[object RegExp]",y="[object Set]",v="[object String]",g="[object Symbol]",_="[object ArrayBuffer]",b="[object DataView]",m="[object Float32Array]",j="[object Float64Array]",w="[object Int8Array]",O="[object Int16Array]",E="[object Int32Array]",A="[object Uint8Array]",S="[object Uint8ClampedArray]",R="[object Uint16Array]",T="[object Uint32Array]",D=/\w*$/,k=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,F={};F[u]=F["[object Array]"]=F[_]=F[b]=F[a]=F[c]=F[m]=F[j]=F[w]=F[O]=F[E]=F[l]=F[p]=F[h]=F[d]=F[y]=F[v]=F[g]=F[A]=F[S]=F[R]=F[T]=!0,F["[object Error]"]=F[s]=F["[object WeakMap]"]=!1;var P="object"==typeof t&&t&&t.Object===Object&&t,$="object"==typeof self&&self&&self.Object===Object&&self,x=P||$||Function("return this")(),L="object"==typeof e&&e&&!e.nodeType&&e,M=L&&"object"==typeof r&&r&&!r.nodeType&&r,I=M&&M.exports===L;function U(t,e){return t.set(e[0],e[1]),t}function N(t,e){return t.add(e),t}function B(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function Y(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function H(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function q(t,e){return function(r){return t(e(r))}}function z(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var V,W=Array.prototype,G=Function.prototype,Q=Object.prototype,J=x["__core-js_shared__"],K=(V=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"",Z=G.toString,X=Q.hasOwnProperty,tt=Q.toString,et=RegExp("^"+Z.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=I?x.Buffer:void 0,nt=x.Symbol,ot=x.Uint8Array,it=q(Object.getPrototypeOf,Object),ut=Object.create,at=Q.propertyIsEnumerable,ct=W.splice,st=Object.getOwnPropertySymbols,ft=rt?rt.isBuffer:void 0,lt=q(Object.keys,Object),pt=Mt(x,"DataView"),ht=Mt(x,"Map"),dt=Mt(x,"Promise"),yt=Mt(x,"Set"),vt=Mt(x,"WeakMap"),gt=Mt(Object,"create"),_t=Yt(pt),bt=Yt(ht),mt=Yt(dt),jt=Yt(yt),wt=Yt(vt),Ot=nt?nt.prototype:void 0,Et=Ot?Ot.valueOf:void 0;function At(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function St(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Rt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Tt(t){this.__data__=new St(t)}function Dt(t,e){var r=qt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&zt(t)}(t)&&X.call(t,"callee")&&(!at.call(t,"callee")||tt.call(t)==u)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!X.call(t,i)||o&&("length"==i||Nt(i,n))||r.push(i);return r}function kt(t,e,r){var n=t[e];X.call(t,e)&&Ht(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function Ct(t,e){for(var r=t.length;r--;)if(Ht(t[r][0],e))return r;return-1}function Ft(t,e,r,n,o,i,k){var C;if(n&&(C=i?n(t,o,i,k):n(t)),void 0!==C)return C;if(!Gt(t))return t;var P=qt(t);if(P){if(C=function(t){var e=t.length,r=t.constructor(e);e&&"string"==typeof t[0]&&X.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!e)return function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(t,C)}else{var $=Ut(t),x=$==s||$==f;if(Vt(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if($==h||$==u||x&&!i){if(Y(t))return i?t:{};if(C=function(t){return"function"!=typeof t.constructor||Bt(t)?{}:(e=it(t),Gt(e)?ut(e):{});var e}(x?{}:t),!e)return function(t,e){return xt(t,It(t),e)}(t,function(t,e){return t&&xt(e,Qt(e),t)}(C,t))}else{if(!F[$])return i?t:{};C=function(t,e,r,n){var o=t.constructor;switch(e){case _:return $t(t);case a:case c:return new o(+t);case b:return function(t,e){var r=e?$t(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,n);case m:case j:case w:case O:case E:case A:case S:case R:case T:return function(t,e){var r=e?$t(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,n);case l:return function(t,e,r){return B(e?r(H(t),!0):H(t),U,new t.constructor)}(t,n,r);case p:case v:return new o(t);case d:return(s=new(u=t).constructor(u.source,D.exec(u))).lastIndex=u.lastIndex,s;case y:return function(t,e,r){return B(e?r(z(t),!0):z(t),N,new t.constructor)}(t,n,r);case g:return i=t,Et?Object(Et.call(i)):{}}var i;var u,s}(t,$,Ft,e)}}k||(k=new Tt);var L=k.get(t);if(L)return L;if(k.set(t,C),!P)var M=r?function(t){return function(t,e,r){var n=e(t);return qt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Qt,It)}(t):Qt(t);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(M||t,function(o,i){M&&(o=t[i=o]),kt(C,i,Ft(o,e,r,n,i,t,k))}),C}function Pt(t){return!(!Gt(t)||K&&K in t)&&(Wt(t)||Y(t)?et:k).test(Yt(t))}function $t(t){var e=new t.constructor(t.byteLength);return new ot(e).set(new ot(t)),e}function xt(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var u=e[o],a=n?n(r[u],t[u],u,r,t):void 0;kt(r,u,void 0===a?t[u]:a)}return r}function Lt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Mt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Pt(r)?r:void 0}At.prototype.clear=function(){this.__data__=gt?gt(null):{}},At.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},At.prototype.get=function(t){var e=this.__data__;if(gt){var r=e[t];return r===o?void 0:r}return X.call(e,t)?e[t]:void 0},At.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:X.call(e,t)},At.prototype.set=function(t,e){return this.__data__[t]=gt&&void 0===e?o:e,this},St.prototype.clear=function(){this.__data__=[]},St.prototype.delete=function(t){var e=this.__data__,r=Ct(e,t);return!(r<0||(r==e.length-1?e.pop():ct.call(e,r,1),0))},St.prototype.get=function(t){var e=this.__data__,r=Ct(e,t);return r<0?void 0:e[r][1]},St.prototype.has=function(t){return Ct(this.__data__,t)>-1},St.prototype.set=function(t,e){var r=this.__data__,n=Ct(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Rt.prototype.clear=function(){this.__data__={hash:new At,map:new(ht||St),string:new At}},Rt.prototype.delete=function(t){return Lt(this,t).delete(t)},Rt.prototype.get=function(t){return Lt(this,t).get(t)},Rt.prototype.has=function(t){return Lt(this,t).has(t)},Rt.prototype.set=function(t,e){return Lt(this,t).set(t,e),this},Tt.prototype.clear=function(){this.__data__=new St},Tt.prototype.delete=function(t){return this.__data__.delete(t)},Tt.prototype.get=function(t){return this.__data__.get(t)},Tt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof St){var o=r.__data__;if(!ht||o.length<n-1)return o.push([t,e]),this;r=this.__data__=new Rt(o)}return r.set(t,e),this};var It=st?q(st,Object):function(){return[]},Ut=function(t){return tt.call(t)};function Nt(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||C.test(t))&&t>-1&&t%1==0&&t<e}function Bt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Q)}function Yt(t){if(null!=t){try{return Z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ht(t,e){return t===e||t!=t&&e!=e}(pt&&Ut(new pt(new ArrayBuffer(1)))!=b||ht&&Ut(new ht)!=l||dt&&"[object Promise]"!=Ut(dt.resolve())||yt&&Ut(new yt)!=y||vt&&"[object WeakMap]"!=Ut(new vt))&&(Ut=function(t){var e=tt.call(t),r=e==h?t.constructor:void 0,n=r?Yt(r):void 0;if(n)switch(n){case _t:return b;case bt:return l;case mt:return"[object Promise]";case jt:return y;case wt:return"[object WeakMap]"}return e});var qt=Array.isArray;function zt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}(t.length)&&!Wt(t)}var Vt=ft||function(){return!1};function Wt(t){var e=Gt(t)?tt.call(t):"";return e==s||e==f}function Gt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Qt(t){return zt(t)?Dt(t):function(t){if(!Bt(t))return lt(t);var e=[];for(var r in Object(t))X.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}r.exports=function(t){return Ft(t,!0,!0)}}).call(this,r(0),r(2)(t))},function(t,e,r){(function(e){var r,n=9007199254740991,o="[object Function]",i="[object GeneratorFunction]",u="[object Map]",a="[object Set]",c="[object String]",s=/^\[object .+?Constructor\]$/,f="[\\ud800-\\udfff]",l="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",p="\\ud83c[\\udffb-\\udfff]",h="[^\\ud800-\\udfff]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",v="(?:"+l+"|"+p+")"+"?",g="[\\ufe0e\\ufe0f]?"+v+("(?:\\u200d(?:"+[h,d,y].join("|")+")[\\ufe0e\\ufe0f]?"+v+")*"),_="(?:"+[h+l+"?",l,d,y,f].join("|")+")",b=RegExp(p+"(?="+p+")|"+_+g,"g"),m=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),j="object"==typeof e&&e&&e.Object===Object&&e,w="object"==typeof self&&self&&self.Object===Object&&self,O=j||w||Function("return this")(),E=(r="length",function(t){return null==t?void 0:t[r]});function A(t){return function(t){return m.test(t)}(t)?function(t){var e=b.lastIndex=0;for(;b.test(t);)e++;return e}(t):E(t)}var S,R,T,D=Function.prototype,k=Object.prototype,C=O["__core-js_shared__"],F=(S=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",P=D.toString,$=k.hasOwnProperty,x=k.toString,L=RegExp("^"+P.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=(R=Object.keys,T=Object,function(t){return R(T(t))}),I=J(O,"DataView"),U=J(O,"Map"),N=J(O,"Promise"),B=J(O,"Set"),Y=J(O,"WeakMap"),H=Z(I),q=Z(U),z=Z(N),V=Z(B),W=Z(Y);function G(t){return!(!et(t)||F&&F in t)&&(tt(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?L:s).test(Z(t))}function Q(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||k,e!==n)return M(t);var e,r,n,o=[];for(var i in Object(t))$.call(t,i)&&"constructor"!=i&&o.push(i);return o}function J(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return G(r)?r:void 0}var K=function(t){return x.call(t)};function Z(t){if(null!=t){try{return P.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(I&&"[object DataView]"!=K(new I(new ArrayBuffer(1)))||U&&K(new U)!=u||N&&"[object Promise]"!=K(N.resolve())||B&&K(new B)!=a||Y&&"[object WeakMap]"!=K(new Y))&&(K=function(t){var e=x.call(t),r="[object Object]"==e?t.constructor:void 0,n=r?Z(r):void 0;if(n)switch(n){case H:return"[object DataView]";case q:return u;case z:return"[object Promise]";case V:return a;case W:return"[object WeakMap]"}return e});var X=Array.isArray;function tt(t){var e=et(t)?x.call(t):"";return e==o||e==i}function et(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=function(t){if(null==t)return 0;if(null!=(e=t)&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(e.length)&&!tt(e))return function(t){return"string"==typeof t||!X(t)&&function(t){return!!t&&"object"==typeof t}(t)&&x.call(t)==c}(t)?A(t):t.length;var e,r=K(t);return r==u||r==a?t.size:Q(t).length}}).call(this,r(0))},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const n=r(5),o=r(7),i=r(16),u=r(36),a=r(35),c=(r(34),r(33)),s=r(11),f=r(19),l=(r(18),r(32)),p=r(20),h=r(10),d=r(4),y=r(31),v=r(30),g=r(9),_=r(29),b=r(1),m=r(28),j=r(3),w=r(17);function O(t,e={}){return new Promise((r,c)=>{const l=[...function(t,e){const r=[],n=d(t,"dataset"),i=d(t,"branch"),u=d(t,"commit");o(n)||_(n)||r.push("'dataset' clause must be string only");o(i)||_(i)||r.push("'branch' clause must be string only");o(u)||_(u)||r.push("'commit' clause must be string only");return r}(t),...function(t,e){const r=[],n=d(t,"from",null);o(n)&&r.push("'from' clause couldn't be empty");_(n)||r.push("'from' clause must be string only");if(!j.AVAILABLE_FROM_CLAUSE_VALUES.has(n)){const t=[...j.AVAILABLE_FROM_CLAUSE_VALUES];r.push(`'from' clause must be one of the list: ${t.join(", ")}`)}return r}(t),...function(t,e){const r=[],n=d(t,"select",null),o=d(t,"from",null),c=d(n,"key"),s=d(n,"value");switch(!0){case j.isSchemaQuery(t):r.push(E(n),function(t,e){if(!u(e)||2!==a(e))return`'select.key' clause for '${t}' queries must have exactly 2 items: 'key', 'value'`}(o,c),T(o,s));break;case j.isEntitiesQuery(t):case j.isConceptsQuery(t):r.push(E(n),D(n,c,s),k(o,c),T(o,s));break;case j.isDatapointsQuery(t):r.push(E(n),function(t,e,r){if(!i(t)||!u(e)||!u(r))return"'select' clause must have next structure: { key: [...], value: [...] }"}(n,c,s),function(t,e){if(a(e)<2)return`'select.key' clause for '${t}' queries must have at least 2 items`}(o,c),function(t,e){const r=(n=e,p(n,(t,e,r)=>b(r,t,e+1)));var n;if(a(r)>0)return`'select.key' clause for '${t}' queries contains duplicates: ${m(r).join(",")}`}(o,c),function(t,e){if(a(e)<1)return`'select.value' clause for '${t}' queries must have at least 1 item`}(o,s));break;default:r.push(E(n))}return g(r)}(t),...function(t,e){const r=[],i=d(t,"join",null),u=d(t,"where",null),a=function t(e){const r=[];for(const n in e)h(n,"$")&&r.push({name:n,isLeaf:!1}),w.isPrimitive(e[n])?h(e[n],"$")&&r.push({name:e[n],isLeaf:!0}):r.push(...t(e[n]));return r}(u);return r.push(function(t,e){if(!o(t)&&!A(t))return`'${e}where' clause must be object only`}(u,R(e)),function(t,e,r){const o=p(e,e=>!function(t,e){return function(t){return!t.isLeaf&&j.AVAILABLE_QUERY_OPERATORS.has(t.name)}(e)||function(t,e){return e.isLeaf&&h(e.name,"$")&&y(t,e.name)}(t,e)}(t,e)).map(t=>t.name),i=[...j.AVAILABLE_QUERY_OPERATORS.values(),...s(t)];if(!n(o))return`'${r}where' clause has unknown operator(s) '${o.join(", ")}', replace it with allowed operators: ${i.join(", ")}`}(i,a,R(e))),g(r)}(t,e),...function(t,e){const r=[],n=d(t,"language",null);switch(!0){case j.isSchemaQuery(t):r.push(function(t){if(y(t,"language"))return"'language' clause for '*.schema' queries shouldn't be present in query"}(t));break;case j.isEntitiesQuery(t):case j.isConceptsQuery(t):case j.isDatapointsQuery(t):default:r.push(function(t){if(!o(t)&&!_(t))return"'language' clause must be string only"}(n))}return g(r)}(t),...function(t,e){const r=[],n=d(t,"join",null);switch(!0){case j.isSchemaQuery(t):case j.isConceptsQuery(t):r.push(function(t){if(y(t,"join"))return`'join' clause for '${t.from}' queries shouldn't be present in query`}(t));break;case j.isEntitiesQuery(t):case j.isDatapointsQuery(t):default:r.push(function(t){if(!o(t)&&!A(t))return"'join' clause must be object only"}(n),...f(n,(t,e)=>(function(t,e){if(!o(t.key)&&!_(t.key))return`'${e}key' clause must be string only`})(t,R({joinID:e}))))}return g(r)}(t),...function(t,e){const r=[],n=d(t,"order_by",null);return r.push(function(t){if(!(o(t)||_(t)||(e=t,u(e)&&v(e,_))||function(t,e){return u(t)&&v(t,e)}(t,S)))return"'order_by' clause must be string or array of strings || objects only";var e}(n)),g(r)}(t)];return n(l)?r():c(`Too many query structure errors: \n* ${l.join("\n* ")}`)})}function E(t){if(o(t))return"'select' clause couldn't be empty"}function A(t){return i(t)&&!u(t)}function S(t){return _(t)||A(t)&&1===a(t)&&j.AVAILABLE_ORDER_BY_CLAUSE_VALUES.has(l(c(t)))}function R(t){return d(t,"joinID",!1)?`join.${t.joinID}.`:""}function T(t,e){if(!u(e)&&!o(e))return`'select.value' clause for '${t}' queries should be array of strings or empty`}function D(t,e,r){if(!i(t)||!u(e))return"'select' clause must have next structure: { key: [...], value: [...] }"}function k(t,e){if(!u(e)||1!==a(e))return`'select.key' clause for '${t}' queries must have only 1 item`}e.validateQueryStructure=O,e.getVersion=function(){return t.env.npm_package_version}}).call(this,r(8))},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e,r){(function(e){var r=1/0,n="[object Symbol]",o=/^\s+/,i="[\\ud800-\\udfff]",u="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",a="\\ud83c[\\udffb-\\udfff]",c="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+u+"|"+a+")"+"?",p="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[c,s,f].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),h="(?:"+[c+u+"?",u,s,f,i].join("|")+")",d=RegExp(a+"(?="+a+")|"+h+p,"g"),y=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),v="object"==typeof e&&e&&e.Object===Object&&e,g="object"==typeof self&&self&&self.Object===Object&&self,_=v||g||Function("return this")();function b(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,m,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}function m(t){return t!=t}function j(t){return function(t){return y.test(t)}(t)?function(t){return t.match(d)||[]}(t):function(t){return t.split("")}(t)}var w=Object.prototype.toString,O=_.Symbol,E=O?O.prototype:void 0,A=E?E.toString:void 0;function S(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&w.call(t)==n}(t))return A?A.call(t):"";var e=t+"";return"0"==e&&1/t==-r?"-0":e}function R(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}(t,e,r)}t.exports=function(t,e,r){var n;if((t=null==(n=t)?"":S(n))&&(r||void 0===e))return t.replace(o,"");if(!t||!(e=S(e)))return t;var i=j(t);return R(i,function(t,e){for(var r=-1,n=t.length;++r<n&&b(e,t[r],0)>-1;);return r}(i,j(e))).join("")}}).call(this,r(0))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(5),o=r(20),i=r(19),u=r(4),a=r(9),c=r(1),s=r(10),f=r(7),l=r(40),p=(r(18),r(3)),h=r(17);function d(t,e){return o(t,t=>!c(e,t))}function y(t,e){const r=o([...e.values()],({concept_type:e})=>c(t,e));return i(r,"concept")}e.validateQueryDefinitions=function(t,e={}){return new Promise((r,o)=>{const i=[...function(t,e){const r=[],o=u(t,"from",null),i=u(t,"select",null),c=u(i,"key"),s=u(i,"value"),f=[],l=[],{conceptsLookup:h}=e;switch(!0){case p.isDatapointsQuery(t):const e=[p.CONCEPT_TYPE_ENTITY_SET,p.CONCEPT_TYPE_ENTITY_DOMAIN,p.CONCEPT_TYPE_TIME];f.push(...y(e,h)),l.push(...h.keys());break;case p.isEntitiesQuery(t):const r=[p.CONCEPT_TYPE_ENTITY_SET,p.CONCEPT_TYPE_ENTITY_DOMAIN];f.push(...y(r,h)),l.push(...h.keys());break;case p.isConceptsQuery(t):f.push(p.RESERVED_CONCEPT),l.push(...h.keys(),p.RESERVED_CONCEPT,p.RESERVED_CONCEPT_TYPE,p.RESERVED_DOMAIN,p.RESERVED_UNIT,p.RESERVED_DRILL_UP);break;default:f.push(p.RESERVED_KEY,p.RESERVED_VALUE),l.push(p.RESERVED_KEY,p.RESERVED_VALUE)}return r.push(function(t,e,r){const o=d(e,r);if(!n(o))return`'select.key' clause for '${t}' query contains unavailable item(s): ${o.join(", ")}`}(o,c,f),function(t,e,r){if(!0!==t.debug)return;const o=u(t,"from",null),i=d(e,r);return n(e)||n(i)?void 0:`'select.value' clause for '${o}' query contains unavailable item(s): ${i.join(", ")}`}(t,s,l)),a(r)}(t,e),...function(t,e){if(!0!==t.debug)return[];const r=[],o=u(t,"where",null),i=(u(t,"from",null),u(t,"select",null)),{conceptsLookup:c}=e;switch(u(i,"key"),u(i,"value"),function(t){const e={};!function t(e,r,o){for(const i in e){const u=!f(o),a=!u&&!s(i,"$")&&isNaN(+i),[c,...p]=i.split(".");a&&(f(r[c])&&(r[l(c,"is--")]=[]),n(p)||r[c].push(l(p.join("."),"is--"))),h.isPrimitive(e[i])||t(e[i],r,a?c:o)}}(t,e)}(o),!0){case p.isDatapointsQuery(t):const e=[];e.push(p.CONCEPT_TYPE_ENTITY_SET,p.CONCEPT_TYPE_ENTITY_DOMAIN,p.CONCEPT_TYPE_TIME),r.push()}return a(r)}(t,e)];return n(i)?r():o(`Too many query definition errors [repo: ${e.basePath}]: \n* ${i.join("\n* ")}`)})}},function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(3)),n(r(41)),n(r(37)),n(r(27)),n(r(26)),n(r(15))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InClauseUnderConjunction=void 0;const n=r(12),o=r(11),i=r(4),u=r(5),a=r(10),c=r(1),s=r(9),f=r(6),l="where",p="join";e.InClauseUnderConjunction=class{constructor(t,e,r){this.parent=t,this.options=r,this.flow={},this.fileReader=r.fileReader,this.datasetPath=r.basePath,this.query=e,this.datapackage=r.datapackage,this.conceptsLookup=r.conceptsLookup}isMatched(){return this.flow.joinObject=i(this.query,p),"datapoints"===this.query.from&&this.flow.joinObject}async getRecommendedFilesSet(){const{debug:t,error:e,warning:r}=this.options.diagnostic.prepareDiagnosticFor("getRecommendedFilesSet");if(this.isMatched()){let r;t("plugin matched");try{if(this.flow.processableClauses=await this.collectProcessableClauses(),!this.flow.processableClauses)return[];this.collectEntityFilesNames();const t=await this.collectEntities();this.fillEntityValuesHash(t),this.getFilesGroupsQueryClause(),r=this.getOptimalFilesGroup()}catch(t){return e("wrong data processing",t),[]}return t("recommended files found",r),r}{const t='Plugin "InClauseUnderConjunction" is not matched!';throw r(t),new f.DdfCsvError(t,"InClauseUnderConjunction plugin")}}collectProcessableClauses(){const t=o(this.flow.joinObject).filter(t=>{var e;return["entity_domain","entity_set"].includes(null===(e=this.options.conceptsLookup.get(t.slice(1)))||void 0===e?void 0:e.concept_type)});return t.length?Promise.all(t.map(t=>{const e=this.flow.joinObject[t].key,r=i(this.flow.joinObject,`${t}.${l}`,{});return this.parent.queryData({select:{key:[e]},where:r,from:this.options.conceptsLookup.has(e)?"entities":"concepts"},Object.assign({joinID:t},this.options)).then(t=>({key:e,entities:new Set(t.map(t=>t[e]))}))})):Promise.resolve(!1)}collectEntityFilesNames(){this.flow.entityFilesNames=new Set,this.flow.entityResources=new Set,this.flow.fileNameToPrimaryKeyHash=new Map;for(const t of this.datapackage.ddfSchema.entities)for(const e of this.flow.processableClauses){const r=e.key;if(n(t.primaryKey)===r)for(const e of t.resources){const t=this.options.resourcesLookup.get(e);this.flow.entityResources.add(t),this.flow.entityFilesNames.add(t.path),this.flow.fileNameToPrimaryKeyHash.set(t.path,r)}}return this}collectEntities(){const t=this,e=[...t.flow.entityResources].map(e=>(e.data||(e.data=t.parent.loadFile(e.path,t.options))).then(t=>({result:t,file:e.path})));return Promise.all(e)}fillEntityValuesHash(t){const e=t=>s(o(t).filter(e=>a(e,"is--")&&!0===t[e]).map(t=>t.replace(/^is--/,"")));this.flow.entityValueToFileHash=new Map,this.flow.entityValueToDomainHash=new Map;for(const r of t)for(const t of r.result.data){const n=this.flow.fileNameToPrimaryKeyHash.get(r.file),o=[...e(t)];u(o)&&o.push(n);const i=t[n]||t[o[0]];this.flow.entityValueToDomainHash.set(i,o),this.flow.entityValueToFileHash.set(i,r.file)}return this}getFilesGroupsQueryClause(){var t;const e=new Map;for(const r of this.flow.processableClauses){const n={datapoints:new Set};for(const e of r.entities){const r=this.flow.entityValueToDomainHash.get(e);for(const o of r)for(const r of this.datapackage.ddfSchema.datapoints)for(const i of r.resources)if(c(r.primaryKey,o)){const r=this.options.resourcesLookup.get(i),u=null===(t=r.constraints)||void 0===t?void 0:t[o];u?u.includes(e)&&n.datapoints.add(r.path):n.datapoints.add(r.path)}}e.set(r.key,n)}return this.flow.filesGroupsByClause=e,this}getOptimalFilesGroup(){const t=this.flow.entityFilesNames,e=new Set;for(const t of this.datapackage.ddfSchema.concepts)for(const r of t.resources)e.add(this.options.resourcesLookup.get(r).path);const r=this.flow.filesGroupsByClause.keys();let n=Array.from(this.flow.filesGroupsByClause.get(r.next().value).datapoints);for(const t of r)n=this.intersectArray(n,Array.from(this.flow.filesGroupsByClause.get(t).datapoints));return[...Array.from(e),...Array.from(t)].concat(n)}intersectArray(t,e){return t.filter(t=>e.includes(t))}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAppropriatePlugin=void 0;const n=r(43),o=r(12);e.getAppropriatePlugin=function(t,e,r){const i=[new n.InClauseUnderConjunction(t,e,r)];return o(i.filter(t=>t.isMatched()))}},function(t,e,r){"use strict";t.exports=(t=>{if("string"!=typeof t)throw new TypeError("Expected a string, got "+typeof t);return 65279===t.charCodeAt(0)?t.slice(1):t})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ddfCsvReader=void 0;const n=r(1),o=r(5),i=r(45),u=r(44),a=r(6),c=r(42),s=r(25),f=r(22),l=t=>!("number"!=typeof t&&!t);e.ddfCsvReader=function(t){const e=[{concept:"concept",concept_type:"string",domain:null},{concept:"concept_type",concept_type:"string",domain:null}],r=new Map([["$and",(t,e)=>e.every(e=>w(t,e))],["$or",(t,e)=>e.some(e=>w(t,e))],["$not",(t,e)=>!w(t,e)],["$nor",(t,e)=>!e.some(e=>w(t,e))],["$eq",(t,e)=>t==e],["$ne",(t,e)=>t!=e],["$gt",(t,e)=>l(t)&&t>e],["$gte",(t,e)=>l(t)&&t>=e],["$lt",(t,e)=>l(t)&&t<e],["$lte",(t,e)=>l(t)&&t<=e],["$in",(t,e)=>e.has(t)],["$nin",(t,e)=>!e.has(t)]]),p=new Map,h=new Map;let d,y,v=[],g=!1;function _(t){const e=(0,c.getFilePath)(t.basePath),{debug:r,error:n}=t.diagnostic.prepareDiagnosticFor("loadDataPackage");return new Promise((o,u)=>{if(d)return o(d);t.fileReader.readText(e,(t,c)=>{if(t)return n("file reading",t),u(new a.DdfCsvError(a.FILE_READING_ERROR,t,e));try{d=JSON.parse(i(c)),v=[],function(t){if(h.size>0)return h;t.resources.forEach(t=>{Array.isArray(t.schema.primaryKey)||(t.schema.primaryKey=[t.schema.primaryKey]);const e=t.schema.fields.reduce((t,e)=>{var r;return(null===(r=e.constraints)||void 0===r?void 0:r.enum)&&(g||(g=!0),t[e.name]=e.constraints.enum),t},{});t.constraints=e,t.translations={},h.set(t.name,t)})}(d),function(t){if(p.size>0)return p;for(const e in t.ddfSchema)t.ddfSchema[e].map(t=>{const e=k(t.primaryKey),r=t.resources.map(t=>h.get(t));p.has(e)?p.get(e).set(t.value,r):p.set(e,new Map([[t.value,r]]))})}(d)}catch(t){return n("json file parsing",t),u(new a.DdfCsvError(a.JSON_PARSING_ERROR,t.message,e))}r("datapackage content is ready"),o(d)})})}async function b(t,r){const{error:n}=r.diagnostic.prepareDiagnosticFor("loadConcepts");m(e,r);const o={select:{key:["concept"],value:["concept_type","domain"]},from:"concepts"};let i;try{!function(t,r){const n=t.filter(t=>"entity_set"===t.concept_type).map(t=>({concept:"is--"+t.concept,concept_type:"boolean",domain:null}));m(t=t.concat(n).concat(e),r)}(await j(o,r),r),i=await function({conceptsLookup:t}){const e=new Map([["boolean",t=>"true"===t||"TRUE"===t],["measure",t=>parseFloat(t)]]),r=[...S(["concept"])].map(r=>r.data.then(r=>{const n=Object.keys(r.data[0]),o=new Map;return n.forEach(r=>{const n=t.get(r).concept_type,i=e.get(n);i&&o.set(r,i)}),r.data.forEach(t=>{for(const[e,r]of o)t[e]=r(t[e])})}));return Promise.all(r)}(r)}catch(t){throw n("concepts processing",t),t}return i}function m(t,e){e.conceptsLookup.clear(),t.forEach(t=>e.conceptsLookup.set(t.concept,t))}function j(t,e){const r=Object.assign({},e),{debug:i}=r.diagnostic.prepareDiagnosticFor("queryData"),{select:{key:u=[],value:a=[]},from:c="",where:s={},join:l={},order_by:p=[],language:h}=t,d={key:u,value:a};i("start all data loading",t);const y=new Set(d.key.concat(d.value)),v=E(s).filter(t=>"entities"===c||!y.has(t)),g=function(t,e,r,o,i){const{debug:u}=o.diagnostic.prepareDiagnosticFor("loadResource"),a=S(t,e);return u("resources list by query",{queryParam:i,resources:[...a]}),Promise.all([...a].map(t=>(function(t,e,r){const{warning:o}=r.diagnostic.prepareDiagnosticFor("loadResource"),i=[];void 0===t.data&&(t.data=C(t.path,r)),i.push(t.data);const u=void 0!==e&&n(function(t){return t.datapackage.translations?t.datapackage.translations.map(t=>t.id):[]}(r),e),a=void 0!==t.translations[e];if(u){if(!a){const n=`lang/${e}/${t.path}`;t.translations[e]=C(n,r).catch(t=>(o(`translation file ${n}`,t),Promise.resolve({})))}i.push(t.translations[e])}return Promise.all(i).then(e=>{const r=e.map(t=>t.data||[]),n=t.schema.primaryKey,o=T(n,"translation",...r);return{data:o,resource:t}})})(t,r,o)))}(d.key,[...d.value,...v],h,r,t),_=function(t,e,r){return Promise.all(Object.keys(t).map(e=>(function(t,e,r,n){return"time"===n.conceptsLookup.get(e.key).concept_type?Promise.resolve({[t]:e.where}):j({select:{key:[e.key]},where:e.where,from:n.conceptsLookup.has(e.key)?"entities":"concepts"},Object.assign({joinID:t},n)).then(r=>({[t]:{[e.key]:{$in:new Set(r.map(t=>t[e.key]))}}}))})(e,t[e],0,r))).then(t=>t.reduce(O,{}))}(l,0,r),b=function(t,e,r){const n=A(["entity_set"],t,r).map(t=>j({select:{key:[t.domain],value:["is--"+t.concept]},from:"entities"},Object.assign({},r)).then(e=>({[t.concept]:{$in:new Set(e.filter(e=>e["is--"+t.concept]).map(e=>e[t.domain]))}})));return Promise.all(n).then(t=>t.reduce((t,e)=>Object.assign(t,e),{}))}(d.key,0,r);return Promise.all([g,b,_]).then(([e,u,a])=>{i("finish all data loading",t);const c=function(...t){return t.reduce((t,r)=>(o(r)||(e=r,function(t){const e=Object.keys(t);for(const r of e)"$or"==r&&(t[r]=t[r].reduce((t,e)=>{const r=Object.keys(e);if(r.length>1)for(const n of r)t.push({[n]:e[n]});else t.push(e);return t},[]))}(e),t.$and.push(r)),t),{$and:[]});var e}(u,function t(e,r){const o={};for(const i in e){const u=e[i];n(["$and","$or","$nor"],i)?o[i]=u.map(e=>t(e,r)):"$in"===i||"$nin"===i?o[i]=new Set(u):void 0!==r[u]?Object.assign(o,r[u]):o[i]="object"==typeof u?t(u,r):u}return o}(s,a));i("dataTables processing",t);const l=e.map(t=>(function(t,e,r,n){const o=t.resource.schema.primaryKey,i=new Set([...o,...e.value,...r]),u=function(t,e,r){const n=new Set(e),o=["entity_set","entity_domain"],i=A(o,t,r);if(0===i.length)return new Map;const u=A(o,null,r);return i.map(t=>u.filter(e=>"entity_set"===t.concept_type?n.has(e.concept)&&e.concept!==t.concept&&(e.domain===t.domain||e.concept===t.domain):n.has(e.concept)&&e.concept!==t.concept&&e.domain===t.concept).reduce((e,r)=>e.set(r.concept,t.concept),new Map)).reduce((t,e)=>new Map([...t,...e]),new Map)}(e.key,o,n);return t.data.map(t=>R(t,i)).map(t=>(function(t,e){const r={};for(const n of Object.keys(t))r[e.get(n)||n]=t[n];return r})(t,u))})(t,d,v,r));i("queryResult processing",t);const h=T(d.key,"overwrite",...l).filter(t=>w(t,c)).map(t=>(function(t,e){for(const r of e)void 0===t[r]&&(t[r]=null);return t})(t,y)).map(t=>R(t,y));return i("result ordering",t),function(t,e=[]){if(0===e.length)return;const r=e.map(t=>{if("string"==typeof t)return{concept:t,direction:1};{const e=Object.keys(t)[0],r="asc"===t[e]?1:-1;return{concept:e,direction:r}}}),n=r.length;t.sort((t,e)=>{for(let o=0;o<n;o++){const n=r[o];if(t[n.concept]<e[n.concept])return-1*n.direction;if(t[n.concept]>e[n.concept])return 1*n.direction}return 0})}(h,p),i("final result is ready",t),function(t,e){const r=e.conceptsLookup;return Object.keys(t[0]||{}).map(t=>r.get(t)||{}).filter(t=>"time"==t.concept_type).forEach(({concept:r})=>{const n=function(t,e){const{error:r}=e.diagnostic.prepareDiagnosticFor("queryData"),n={year:(0,f.utcParse)("%Y"),month:(0,f.utcParse)("%Y-%m"),day:(0,f.utcParse)("%Y%m%d"),hour:(0,f.utcParse)("%Y%m%dt%H"),minute:(0,f.utcParse)("%Y%m%dt%H%M"),second:(0,f.utcParse)("%Y%m%dt%H%M%S"),week:(0,f.utcParse)("%Yw%V"),quarter:(0,f.utcParse)("%Yq%q")};return"time"==t?function(t){for(const e in n){const r=n[e](t);if(r)return r}return r("Could not parse time string: "+t),null}:n[t]?n[t]:(r("No time parser found for time concept: "+t),t=>t)}(r,e);t.forEach(t=>{t[r]=n(t[r])})}),t}(h,r)})}function w(t,e){return Object.keys(e).every(n=>{const o=r.get(n);return o?o(t,e[n]):"object"!=typeof e[n]?r.get("$eq")(t[n],e[n]):w(t[n],e[n])})}function O(t,e){return Object.assign(t,e)}function E(t){const e=[];for(const r in t)n(["$and","$or","$not","$nor"],r)?t[r].map(E).forEach(t=>e.push(...t)):e.push(r);return[...new Set(e)]}function A(t,e,r){const o=e||Array.from(r.conceptsLookup.keys()),i=[];for(const e of o){const o=r.conceptsLookup.get(e);n(t,o.concept_type)&&i.push(o)}return i}function S(t,e){if(!e||0===e.length||t[0]===e)return new Set([...p.get(k(t)).values()].reduce((t,e)=>t.concat(e)));if(Array.isArray(e))return e.map(e=>S(t,e)).reduce((t,e)=>new Set([...t,...e]),new Set);let r=p.get(k(t)).get(e);return r&&(r=r.filter(t=>o(v)||n(v,t.path))),new Set(r)}function R(t,e){const r={};for(const n of Object.keys(t))e.has(n)&&(r[n]=t[n]);return r}function T(t,e,...r){if(1===r.length)return r[0];const n=t.slice(0).sort();return[...r.reduce((t,r)=>(r.forEach(r=>{const o=n.map(t=>r[t]).join(",");t.has(o)?function(t,e,r){switch(r){case"overwrite":Object.assign(t,e);break;case"translation":for(const r in e)""!==e[r]&&(t[r]=e[r]);break;case"overwriteWithError":for(const r in e)if(void 0!==t[r]&&t[r]!==e[r]){const n=JSON.stringify(e),o=JSON.stringify(t),i=`JOIN Error: two resources have different data for "${r}": ${n},${o}`;D(new a.DdfCsvError(a.DDF_ERROR,i))}else t[r]=e[r]}}(t.get(o),r,e):t.set(o,Object.assign({},r))}),t),new Map).values()]}function D(e){throw(t||console).error(e.message),e}function k(t,e=!1){const r=t.slice(0).sort();return e?r.map(t=>e[t]).join(","):r.join(",")}function C(t,e){const{debug:r,error:o}=e.diagnostic.prepareDiagnosticFor("loadFile"),u=(0,c.getFilePath)(e.basePath,t);return r(`start reading "${t}"`),new Promise((c,f)=>{e.fileReader.readText(u,(l,p)=>{if(l)return o(`fail "${t}" reading`,l),f(new a.DdfCsvError(a.FILE_READING_ERROR,l,u));s.parse(i(p),{header:!0,skipEmptyLines:!0,dynamicTyping:t=>{const r=e.conceptsLookup.get(t)||{};return!n(["time","string","entity_domain","entity_set"],r.concept_type)},transform:t=>""===t?null:t,complete:e=>{r(`finish reading "${t}"`),c(e)},error:e=>{o(`fail "${t}" parsing`,e),f(new a.DdfCsvError(a.CSV_PARSING_ERROR,e,t))}})})})}return{query:async function(t,e){const r=Object.assign({},e),{warning:n,error:o}=r.diagnostic.prepareDiagnosticFor("query");let i;if(function(t,e){return"datapoints"==t.from&&0==t.select.value.length}(t))return Promise.resolve([]);try{if(await(0,c.validateQueryStructure)(t,r),r.datapackage=await(y||(y=_(r))),r.resourcesLookup=h,await b(0,r),await(0,c.validateQueryDefinitions)(t,r),(0,c.isSchemaQuery)(t))i=await function(t,e){const{debug:r,error:n}=e.diagnostic.prepareDiagnosticFor("query"),o=t=>(r(`get schema for collection ${t}`),e.datapackage.ddfSchema[t].map(({primaryKey:t,value:e})=>({key:t,value:e}))),i=t.from.split(".")[0];if(e.datapackage.ddfSchema[i])return o(i);if("*"===i)return Object.keys(e.datapackage.ddfSchema).map(o).reduce((t,e)=>t.concat(e));{const t=`No valid collection (${i}) for schema query`;n(t),D(new a.DdfCsvError(a.DDF_ERROR,t))}}(t,r);else{const e=g&&(0,u.getAppropriatePlugin)(this,t,r);if(v=[],e){const r=await e.getRecommendedFilesSet();v=r,t.optimalFilesSet=[].concat(r,t.optimalFilesSet),n("get custom optimal files list by a plugin",v)}i=await j(t,r)}}catch(t){throw o("general query error",t),t}return i},queryData:j,loadFile:C,getDatasetInfo:function(t){return y||_(t)}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prepareDDFCsvReaderObject=void 0;const n=r(5),o=r(46),i=r(6),u=r(14),a=r(14),c=r(23),s="@vizabi/reader-ddfcsv",f="4.5.1";e.prepareDDFCsvReaderObject=function(t){return function(e,r){return{init(n){this._basePath=(0,c.githubPathAdapter)(n.path||""),this._lastModified=n._lastModified,this.fileReader=e||t,this.logger=r,this.resultTransformer=n.resultTransformer,this.readerOptions={basePath:this._basePath,fileReader:this.fileReader,logger:this.logger},this.reader=(0,o.ddfCsvReader)(this.logger)},async getDatasetInfo(){const t=(0,u.createDiagnosticManagerOn)(s,f).forRequest("").withSeverityLevel(a.Level.OFF),e=Object.assign({},this.readerOptions,{diagnostic:t});return this.reader.getDatasetInfo(e).then(t=>{const e=Object.assign({},t);return delete e.ddfSchema,delete e.resources,e})},async checkFile(t){return new Promise((e,r)=>e({status:this.fileReader.checkFile(t),url:t}))},async getFile(t,e,r){return new Promise((n,o)=>{this.fileReader.readText(t,(t,r)=>{if(t)return o(t);try{return n(e?JSON.parse(r):r)}catch(t){return o(t)}},r)})},async checkIfAssetExists(t,e=""){if(n(e)&&n(this._basePath))throw new i.DdfCsvError("Neither initial 'path' nor 'repositoryPath' as a second param were found.","Happens in 'checkIfAssetExists' function",t);const r=`${e||this._basePath}/assets/${t}`;return await this.checkFile(r)},async getAsset(t,e=""){if(n(e)&&n(this._basePath))throw new i.DdfCsvError("Neither initial 'path' nor 'repositoryPath' as a second param were found.","Happens in 'getAsset' function",t);const r=`${e||this._basePath}/${t}`,o=".json"===r.slice(-".json".length);return await this.getFile(r,o)},async read(t,e,o){const c=o?(0,u.createDiagnosticManagerOn)(s,f).basedOn(o):(0,u.createDiagnosticManagerOn)(s,f).forRequest("").withSeverityLevel(a.Level.OFF),{debug:l,error:p,fatal:h}=c.prepareDiagnosticFor("read");let d;l("start reading",t);try{if(n(t.repositoryPath)&&n(this._basePath)){const e="Neither initial 'path' nor 'repositoryPath' in query were found.",r=new i.DdfCsvError(e,JSON.stringify(t));throw p(e,r),r}d=await this.reader.query(t,{basePath:t.repositoryPath||this._basePath,fileReader:this.fileReader,logger:this.logger,conceptsLookup:new Map,diagnostic:c}),d=e?this._prettifyData(d,e):d,this.resultTransformer&&(d=this.resultTransformer(d)),this.logger&&this.logger.log&&(r.log(JSON.stringify(t),d.length),r.log(d))}catch(t){throw h("global data reading error",t),t}return d},_prettifyData:(t,e)=>t.map(t=>(Object.keys(t).forEach(r=>{e[r]&&(t[r]=e[r](t[r]))}),t))}}}},function(t,e){!function(){"use strict";if(!self.fetch){i.prototype.append=function(t,e){t=n(t),e=o(e);var r=this.map[t];r||(r=[],this.map[t]=r),r.push(e)},i.prototype.delete=function(t){delete this.map[n(t)]},i.prototype.get=function(t){var e=this.map[n(t)];return e?e[0]:null},i.prototype.getAll=function(t){return this.map[n(t)]||[]},i.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},i.prototype.set=function(t,e){this.map[n(t)]=[o(e)]},i.prototype.forEach=function(t){var e=this;Object.getOwnPropertyNames(this.map).forEach(function(r){t(r,e.map[r])})};var t={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in self},e=["DELETE","GET","HEAD","OPTIONS","POST","PUT"],r=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent);s.call(f.prototype),s.call(p.prototype),self.Headers=i,self.Request=f,self.Response=p,self.fetch=function(e,n){var o;return o=f.prototype.isPrototypeOf(e)&&!n?e:new f(e,n),new fetch.Promise(function(e,n){var u=function(){return r&&!/^(get|post|head|put|delete|options)$/i.test(this.method)?(this.usingActiveXhr=!0,new ActiveXObject("Microsoft.XMLHTTP")):new XMLHttpRequest}();function a(){if(4===u.readyState){var t=1223===u.status?204:u.status;if(t<100||t>599)n(new TypeError("Network request failed"));else{var r={status:t,statusText:u.statusText,headers:function(t){var e=new i;return t.getAllResponseHeaders().trim().split("\n").forEach(function(t){var r=t.trim().split(":"),n=r.shift().trim(),o=r.join(":").trim();e.append(n,o)}),e}(u),url:"responseURL"in u?u.responseURL:/^X-Request-URL:/m.test(u.getAllResponseHeaders())?u.getResponseHeader("X-Request-URL"):void 0},o="response"in u?u.response:u.responseText;e(new p(o,r))}}}"cors"===o.credentials&&(u.withCredentials=!0),u.onreadystatechange=a,self.usingActiveXhr||(u.onload=a,u.onerror=function(){n(new TypeError("Network request failed"))}),u.open(o.method,o.url,!0),"responseType"in u&&t.blob&&(u.responseType="blob"),o.headers.forEach(function(t,e){e.forEach(function(e){u.setRequestHeader(t,e)})}),u.send(void 0===o._bodyInit?null:o._bodyInit)})},fetch.Promise=self.Promise,self.fetch.polyfill=!0}function n(t){if("string"!=typeof t&&(t=t.toString()),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function o(t){return"string"!=typeof t&&(t=t.toString()),t}function i(t){this.map={};var e=this;t instanceof i?t.forEach(function(t,r){r.forEach(function(r){e.append(t,r)})}):t&&Object.getOwnPropertyNames(t).forEach(function(r){e.append(r,t[r])})}function u(t){if(t.bodyUsed)return fetch.Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function a(t){return new fetch.Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function c(t){var e=new FileReader;return e.readAsArrayBuffer(t),a(e)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else{if(e)throw new Error("unsupported BodyInit type");this._bodyText=""}},t.blob?(this.blob=function(){var t=u(this);if(t)return t;if(this._bodyBlob)return fetch.Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return fetch.Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(c)},this.text=function(){var t,e,r=u(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,(e=new FileReader).readAsText(t),a(e);if(this._bodyFormData)throw new Error("could not read FormData body as text");return fetch.Promise.resolve(this._bodyText)}):this.text=function(){var t=u(this);return t||fetch.Promise.resolve(this._bodyText)},t.formData&&(this.formData=function(){return this.text().then(l)}),this.json=function(){return this.text().then(function(t){return JSON.parse(t)})},this}function f(t,r){var n,o;if(r=r||{},this.url=t,this.credentials=r.credentials||"omit",this.headers=new i(r.headers),this.method=(n=r.method||"GET",o=n.toUpperCase(),e.indexOf(o)>-1?o:n),this.mode=r.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r.body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r.body)}function l(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function p(t,e){e||(e={}),this._initBody(t),this.type="default",this.url=null,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof i?e.headers:new i(e.headers),this.url=e.url||""}}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.versionInfo=e.getDDFCsvReaderObject=e.DdfCsvError=e.FrontendFileReader=void 0;const n=r(21);var o=r(21);Object.defineProperty(e,"FrontendFileReader",{enumerable:!0,get:function(){return o.FrontendFileReader}});var i=r(6);Object.defineProperty(e,"DdfCsvError",{enumerable:!0,get:function(){return i.DdfCsvError}});const u=r(47);e.getDDFCsvReaderObject=(0,u.prepareDDFCsvReaderObject)(new n.FrontendFileReader);e.versionInfo={version:"4.5.1",build:"1725027750257",package:{name:"@vizabi/reader-ddfcsv",description:"Vizabi DDFcsv reader"}},e.version="4.5.1"},function(t,e,r){t.exports=r(49)}])});
|
|
8
|
-
//# sourceMappingURL=reader-ddfcsv.js.map
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DDFCsvReader=e():t.DDFCsvReader=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=46)}([function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(n){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,u=/^(?:0|[1-9]\d*)$/,a=parseInt;function c(t){return t!=t}function s(t,e){return function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(e,(function(e){return t[e]}))}var f,l,h=Object.prototype,p=h.hasOwnProperty,d=h.toString,y=h.propertyIsEnumerable,_=(f=Object.keys,l=Object,function(t){return f(l(t))}),v=Math.max;function g(t,e){var r=j(t)||function(t){return function(t){return E(t)&&w(t)}(t)&&p.call(t,"callee")&&(!y.call(t,"callee")||"[object Arguments]"==d.call(t))}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!p.call(t,i)||o&&("length"==i||m(i,n))||r.push(i);return r}function b(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||h,e!==n)return _(t);var e,r,n,o=[];for(var i in Object(t))p.call(t,i)&&"constructor"!=i&&o.push(i);return o}function m(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<e}var j=Array.isArray;function w(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!function(t){var e=O(t)?d.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)}function O(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function E(t){return!!t&&"object"==typeof t}t.exports=function(t,e,u,f){var l;t=w(t)?t:(l=t)?s(l,function(t){return w(t)?g(t):b(t)}(l)):[],u=u&&!f?function(t){var e=function(t){if(!t)return 0===t?t:0;if((t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||E(t)&&"[object Symbol]"==d.call(t)}(t))return NaN;if(O(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=O(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var u=o.test(t);return u||i.test(t)?a(t.slice(2),u?2:8):n.test(t)?NaN:+t}(t))===1/0||t===-1/0){return 17976931348623157e292*(t<0?-1:1)}return t==t?t:0}(t),u=e%1;return e==e?u?e-u:e:0}(u):0;var h=t.length;return u<0&&(u=v(h+u,0)),function(t){return"string"==typeof t||!j(t)&&E(t)&&"[object String]"==d.call(t)}(t)?u<=h&&t.indexOf(e,u)>-1:!!h&&function(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,c,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,u)>-1}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const n=r(4),o=r(1);e.SCHEMAS=new Set(["concepts.schema","entities.schema","datapoints.schema","*.schema"]),e.DATAPOINTS="datapoints",e.ENTITIES="entities",e.CONCEPTS="concepts",e.CONCEPT_TYPE_MEASURE="measure",e.CONCEPT_TYPE_STRING="string",e.CONCEPT_TYPE_ENTITY_DOMAIN="entity_domain",e.CONCEPT_TYPE_ENTITY_SET="entity_set",e.CONCEPT_TYPE_TIME="time",e.RESERVED_CONCEPT="concept",e.RESERVED_CONCEPT_TYPE="concept_type",e.RESERVED_DOMAIN="domain",e.RESERVED_UNIT="unit",e.RESERVED_DRILL_UP="drill_up",e.RESERVED_KEY="key",e.RESERVED_VALUE="value",e.AVAILABLE_QUERY_OPERATORS=new Set(["$eq","$gt","$gte","$lt","$lte","$ne","$in","$nin","$or","$and","$not","$nor","$size","$all","$elemMatch"]),e.AVAILABLE_FROM_CLAUSE_VALUES=new Set([e.CONCEPTS,e.ENTITIES,e.DATAPOINTS,...e.SCHEMAS]),e.AVAILABLE_ORDER_BY_CLAUSE_VALUES=new Set(["asc","desc",1,-1]),e.DEFAULT_REPOSITORY_NAME=t.env.DEFAULT_REPOSITORY_NAME||"systema_globalis",e.DEFAULT_REPOSITORY_BRANCH=t.env.DEFAULT_REPOSITORY_BRANCH||"master",e.DEFAULT_REPOSITORY_HASH="HEAD",e.isSchemaQuery=function(t){const r=n(t,"from");return e.SCHEMAS.has(r)},e.isDatapointsQuery=function(t){return n(t,"from")===e.DATAPOINTS},e.isEntitiesQuery=function(t){return n(t,"from")===e.ENTITIES},e.isConceptsQuery=function(t){return n(t,"from")===e.CONCEPTS},e.isEntityDomainOrSet=function(t,e){return o(e,t)},e.isMeasure=function(t){return o([e.CONCEPT_TYPE_MEASURE],t)},e.isIndicator=function(t){return o([e.CONCEPT_TYPE_MEASURE,e.CONCEPT_TYPE_STRING],t)}}).call(this,r(19))},function(t,e,r){(function(e){var r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/,o=/^\./,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,a=/^\[object .+?Constructor\]$/,c="object"==typeof e&&e&&e.Object===Object&&e,s="object"==typeof self&&self&&self.Object===Object&&self,f=c||s||Function("return this")();var l,h=Array.prototype,p=Function.prototype,d=Object.prototype,y=f["__core-js_shared__"],_=(l=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",v=p.toString,g=d.hasOwnProperty,b=d.toString,m=RegExp("^"+v.call(g).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=f.Symbol,w=h.splice,O=$(f,"Map"),E=$(Object,"create"),A=j?j.prototype:void 0,S=A?A.toString:void 0;function R(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function D(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function k(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function C(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function T(t,e){for(var o,i=0,u=(e=function(t,e){if(I(t))return!1;var o=typeof t;if("number"==o||"symbol"==o||"boolean"==o||null==t||N(t))return!0;return n.test(t)||!r.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:I(o=e)?o:L(o)).length;null!=t&&i<u;)t=t[x(e[i++])];return i&&i==u?t:void 0}function F(t){return!(!U(t)||(e=t,_&&_ in e))&&(function(t){var e=U(t)?b.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}(t)?m:a).test(function(t){if(null!=t){try{return v.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(t));var e}function P(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function $(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return F(r)?r:void 0}R.prototype.clear=function(){this.__data__=E?E(null):{}},R.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},R.prototype.get=function(t){var e=this.__data__;if(E){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return g.call(e,t)?e[t]:void 0},R.prototype.has=function(t){var e=this.__data__;return E?void 0!==e[t]:g.call(e,t)},R.prototype.set=function(t,e){return this.__data__[t]=E&&void 0===e?"__lodash_hash_undefined__":e,this},D.prototype.clear=function(){this.__data__=[]},D.prototype.delete=function(t){var e=this.__data__,r=C(e,t);return!(r<0)&&(r==e.length-1?e.pop():w.call(e,r,1),!0)},D.prototype.get=function(t){var e=this.__data__,r=C(e,t);return r<0?void 0:e[r][1]},D.prototype.has=function(t){return C(this.__data__,t)>-1},D.prototype.set=function(t,e){var r=this.__data__,n=C(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},k.prototype.clear=function(){this.__data__={hash:new R,map:new(O||D),string:new R}},k.prototype.delete=function(t){return P(this,t).delete(t)},k.prototype.get=function(t){return P(this,t).get(t)},k.prototype.has=function(t){return P(this,t).has(t)},k.prototype.set=function(t,e){return P(this,t).set(t,e),this};var L=M((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(N(t))return S?S.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return o.test(t)&&r.push(""),t.replace(i,(function(t,e,n,o){r.push(n?o.replace(u,"$1"):e||t)})),r}));function x(t){if("string"==typeof t||N(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function M(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u),u};return r.cache=new(M.Cache||k),r}M.Cache=k;var I=Array.isArray;function U(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function N(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==b.call(t)}t.exports=function(t,e,r){var n=null==t?void 0:T(t,e);return void 0===n?r:n}}).call(this,r(0))},function(t,e,r){(function(t,r){var n="[object Map]",o="[object Set]",i=/^\[object .+?Constructor\]$/,u="object"==typeof t&&t&&t.Object===Object&&t,a="object"==typeof self&&self&&self.Object===Object&&self,c=u||a||Function("return this")(),s="object"==typeof e&&e&&!e.nodeType&&e,f=s&&"object"==typeof r&&r&&!r.nodeType&&r,l=f&&f.exports===s;var h,p,d,y=Function.prototype,_=Object.prototype,v=c["__core-js_shared__"],g=(h=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"",b=y.toString,m=_.hasOwnProperty,j=_.toString,w=RegExp("^"+b.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=l?c.Buffer:void 0,E=_.propertyIsEnumerable,A=O?O.isBuffer:void 0,S=(p=Object.keys,d=Object,function(t){return p(d(t))}),R=U(c,"DataView"),D=U(c,"Map"),k=U(c,"Promise"),C=U(c,"Set"),T=U(c,"WeakMap"),F=!E.call({valueOf:1},"valueOf"),P=Y(R),$=Y(D),L=Y(k),x=Y(C),M=Y(T);function I(t){return!(!z(t)||function(t){return!!g&&g in t}(t))&&(H(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}(t)?w:i).test(Y(t))}function U(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return I(r)?r:void 0}var N=function(t){return j.call(t)};function Y(t){if(null!=t){try{return b.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function V(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&q(t)}(t)&&m.call(t,"callee")&&(!E.call(t,"callee")||"[object Arguments]"==j.call(t))}(R&&"[object DataView]"!=N(new R(new ArrayBuffer(1)))||D&&N(new D)!=n||k&&"[object Promise]"!=N(k.resolve())||C&&N(new C)!=o||T&&"[object WeakMap]"!=N(new T))&&(N=function(t){var e=j.call(t),r="[object Object]"==e?t.constructor:void 0,i=r?Y(r):void 0;if(i)switch(i){case P:return"[object DataView]";case $:return n;case L:return"[object Promise]";case x:return o;case M:return"[object WeakMap]"}return e});var B=Array.isArray;function q(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!H(t)}var W=A||function(){return!1};function H(t){var e=z(t)?j.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function z(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}r.exports=function(t){if(q(t)&&(B(t)||"string"==typeof t||"function"==typeof t.splice||W(t)||V(t)))return!t.length;var e=N(t);if(e==n||e==o)return!t.size;if(F||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_)}(t))return!S(t).length;for(var r in t)if(m.call(t,r))return!1;return!0}}).call(this,r(0),r(2)(t))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DdfCsvError=e.DDF_ERROR=e.CSV_PARSING_ERROR=e.JSON_PARSING_ERROR=e.FILE_READING_ERROR=void 0,e.FILE_READING_ERROR="File reading error",e.JSON_PARSING_ERROR="JSON parsing error",e.CSV_PARSING_ERROR="CSV parsing error",e.DDF_ERROR="DDF error";class n extends Error{constructor(t,e,r){super(),this.name="DdfCsvError",this.message=`${t} [filepath: ${r}]. ${e}.`,this.details=e,this.file=r}}e.DdfCsvError=n},function(t,e){t.exports=function(t){return null==t}},function(t,e){t.exports=function(t){for(var e=-1,r=t?t.length:0,n=0,o=[];++e<r;){var i=t[e];i&&(o[n++]=i)}return o}},function(t,e,r){(function(e){var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,u=parseInt,a="object"==typeof e&&e&&e.Object===Object&&e,c="object"==typeof self&&self&&self.Object===Object&&self,s=a||c||Function("return this")(),f=Object.prototype.toString,l=s.Symbol,h=l?l.prototype:void 0,p=h?h.toString:void 0;function d(t){if("string"==typeof t)return t;if(_(t))return p?p.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function _(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==f.call(t)}function v(t){return t?(t=function(t){if("number"==typeof t)return t;if(_(t))return NaN;if(y(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=y(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var a=o.test(t);return a||i.test(t)?u(t.slice(2),a?2:8):n.test(t)?NaN:+t}(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}t.exports=function(t,e,r){var n,o,i,u;return t=null==(n=t)?"":d(n),o=function(t){var e=v(t),r=e%1;return e==e?r?e-r:e:0}(r),i=0,u=t.length,o==o&&(void 0!==u&&(o=o<=u?o:u),void 0!==i&&(o=o>=i?o:i)),r=o,e=d(e),t.slice(r,r+e.length)==e}}).call(this,r(0))},function(t,e){var r=/^(?:0|[1-9]\d*)$/;var n,o,i=Object.prototype,u=i.hasOwnProperty,a=i.toString,c=i.propertyIsEnumerable,s=(n=Object.keys,o=Object,function(t){return n(o(t))});function f(t,e){var r=p(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&d(t)}(t)&&u.call(t,"callee")&&(!c.call(t,"callee")||"[object Arguments]"==a.call(t))}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!u.call(t,i)||o&&("length"==i||h(i,n))||r.push(i);return r}function l(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||i,e!==n)return s(t);var e,r,n,o=[];for(var a in Object(t))u.call(t,a)&&"constructor"!=a&&o.push(a);return o}function h(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||r.test(t))&&t>-1&&t%1==0&&t<e}var p=Array.isArray;function d(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?a.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)}t.exports=function(t){return d(t)?f(t):l(t)}},function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.OFF=0]="OFF",t[t.FATAL=1]="FATAL",t[t.ERROR=2]="ERROR",t[t.WARNING=4]="WARNING",t[t.DEBUG=8]="DEBUG",t[t.ALL=15]="ALL"}(n=e.Level||(e.Level={})),e.getLevelByLabel=t=>{switch(t){case"off":return n.OFF;case"fatal":return n.FATAL;case"error":return n.ERROR;case"warning":return n.WARNING;case"debug":return n.DEBUG;case"all":return n.ALL;default:return n.OFF}},e.getLabelByLevel=t=>{switch(t){case n.OFF:return"off";case n.FATAL:return"fatal";case n.ERROR:return"error";case n.WARNING:return"warning";case n.DEBUG:return"debug";case n.ALL:return"all";default:return"off"}}},function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(12)),n(r(23))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.WhereClauseBasedOnConjunction="WhereClauseBasedOnConjunction",t.ConjunctionPartFromWhereClauseCorrespondsToJoin="ConjunctionPartFromWhereClauseCorrespondsToJoin"}(e.QueryFeature||(e.QueryFeature={}))},function(t,e){t.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},function(t,e,r){(function(t,r){var n="[object Arguments]",o="[object Map]",i="[object Object]",u="[object Set]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,s=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[n]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d[o]=d["[object Number]"]=d[i]=d["[object RegExp]"]=d[u]=d["[object String]"]=d["[object WeakMap]"]=!1;var y="object"==typeof t&&t&&t.Object===Object&&t,_="object"==typeof self&&self&&self.Object===Object&&self,v=y||_||Function("return this")(),g="object"==typeof e&&e&&!e.nodeType&&e,b=g&&"object"==typeof r&&r&&!r.nodeType&&r,m=b&&b.exports===g&&y.process,j=function(){try{return m&&m.binding("util")}catch(t){}}(),w=j&&j.isTypedArray;function O(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function E(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function A(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function S(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}function R(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function D(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var k,C,T,F=Array.prototype,P=Function.prototype,$=Object.prototype,L=v["__core-js_shared__"],x=(k=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"",M=P.toString,I=$.hasOwnProperty,U=$.toString,N=RegExp("^"+M.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=v.Symbol,V=v.Uint8Array,B=$.propertyIsEnumerable,q=F.splice,W=Y?Y.isConcatSpreadable:void 0,H=(C=Object.keys,T=Object,function(t){return C(T(t))}),z=Dt(v,"DataView"),G=Dt(v,"Map"),Q=Dt(v,"Promise"),J=Dt(v,"Set"),K=Dt(v,"WeakMap"),Z=Dt(Object,"create"),X=Mt(z),tt=Mt(G),et=Mt(Q),rt=Mt(J),nt=Mt(K),ot=Y?Y.prototype:void 0,it=ot?ot.valueOf:void 0,ut=ot?ot.toString:void 0;function at(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ct(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function st(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ft(t){var e=-1,r=t?t.length:0;for(this.__data__=new st;++e<r;)this.add(t[e])}function lt(t){this.__data__=new ct(t)}function ht(t,e){var r=Yt(t)||Nt(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!I.call(t,i)||o&&("length"==i||Tt(i,n))||r.push(i);return r}function pt(t,e){for(var r=t.length;r--;)if(Ut(t[r][0],e))return r;return-1}at.prototype.clear=function(){this.__data__=Z?Z(null):{}},at.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},at.prototype.get=function(t){var e=this.__data__;if(Z){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return I.call(e,t)?e[t]:void 0},at.prototype.has=function(t){var e=this.__data__;return Z?void 0!==e[t]:I.call(e,t)},at.prototype.set=function(t,e){return this.__data__[t]=Z&&void 0===e?"__lodash_hash_undefined__":e,this},ct.prototype.clear=function(){this.__data__=[]},ct.prototype.delete=function(t){var e=this.__data__,r=pt(e,t);return!(r<0)&&(r==e.length-1?e.pop():q.call(e,r,1),!0)},ct.prototype.get=function(t){var e=this.__data__,r=pt(e,t);return r<0?void 0:e[r][1]},ct.prototype.has=function(t){return pt(this.__data__,t)>-1},ct.prototype.set=function(t,e){var r=this.__data__,n=pt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},st.prototype.clear=function(){this.__data__={hash:new at,map:new(G||ct),string:new at}},st.prototype.delete=function(t){return Rt(this,t).delete(t)},st.prototype.get=function(t){return Rt(this,t).get(t)},st.prototype.has=function(t){return Rt(this,t).has(t)},st.prototype.set=function(t,e){return Rt(this,t).set(t,e),this},ft.prototype.add=ft.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ft.prototype.has=function(t){return this.__data__.has(t)},lt.prototype.clear=function(){this.__data__=new ct},lt.prototype.delete=function(t){return this.__data__.delete(t)},lt.prototype.get=function(t){return this.__data__.get(t)},lt.prototype.has=function(t){return this.__data__.has(t)},lt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof ct){var n=r.__data__;if(!G||n.length<199)return n.push([t,e]),this;r=this.__data__=new st(n)}return r.set(t,e),this};var dt,yt,_t=(dt=function(t,e){return t&&vt(t,e,Qt)},function(t,e){if(null==t)return t;if(!Vt(t))return dt(t,e);for(var r=t.length,n=yt?r:-1,o=Object(t);(yt?n--:++n<r)&&!1!==e(o[n],n,o););return t});var vt=function(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===r(i[c],c,i))break}return e}}();function gt(t,e){for(var r=0,n=(e=Ft(e,t)?[e]:At(e)).length;null!=t&&r<n;)t=t[xt(e[r++])];return r&&r==n?t:void 0}function bt(t,e){return null!=t&&e in Object(t)}function mt(t,e,r,a,c){return t===e||(null==t||null==e||!Wt(t)&&!Ht(e)?t!=t&&e!=e:function(t,e,r,a,c,s){var f=Yt(t),l=Yt(e),h="[object Array]",p="[object Array]";f||(h=(h=kt(t))==n?i:h);l||(p=(p=kt(e))==n?i:p);var d=h==i&&!S(t),y=p==i&&!S(e),_=h==p;if(_&&!d)return s||(s=new lt),f||Gt(t)?St(t,e,r,a,c,s):function(t,e,r,n,i,a,c){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!n(new V(t),new V(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ut(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case o:var s=R;case u:var f=2&a;if(s||(s=D),t.size!=e.size&&!f)return!1;var l=c.get(t);if(l)return l==e;a|=1,c.set(t,e);var h=St(s(t),s(e),n,i,a,c);return c.delete(t),h;case"[object Symbol]":if(it)return it.call(t)==it.call(e)}return!1}(t,e,h,r,a,c,s);if(!(2&c)){var v=d&&I.call(t,"__wrapped__"),g=y&&I.call(e,"__wrapped__");if(v||g){var b=v?t.value():t,m=g?e.value():e;return s||(s=new lt),r(b,m,a,c,s)}}if(!_)return!1;return s||(s=new lt),function(t,e,r,n,o,i){var u=2&o,a=Qt(t),c=a.length,s=Qt(e).length;if(c!=s&&!u)return!1;var f=c;for(;f--;){var l=a[f];if(!(u?l in e:I.call(e,l)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var p=!0;i.set(t,e),i.set(e,t);var d=u;for(;++f<c;){l=a[f];var y=t[l],_=e[l];if(n)var v=u?n(_,y,l,e,t,i):n(y,_,l,t,e,i);if(!(void 0===v?y===_||r(y,_,n,o,i):v)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var g=t.constructor,b=e.constructor;g==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,r,a,c,s)}(t,e,mt,r,a,c))}function jt(t){return!(!Wt(t)||function(t){return!!x&&x in t}(t))&&(Bt(t)||S(t)?N:h).test(Mt(t))}function wt(t){return"function"==typeof t?t:null==t?Jt:"object"==typeof t?Yt(t)?function(t,e){if(Ft(t)&&Pt(e))return $t(xt(t),e);return function(r){var n=function(t,e,r){var n=null==t?void 0:gt(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){e=Ft(e,t)?[e]:At(e);var n,o=-1,i=e.length;for(;++o<i;){var u=xt(e[o]);if(!(n=null!=t&&r(t,u)))break;t=t[u]}if(n)return n;return!!(i=t?t.length:0)&&qt(i)&&Tt(u,i)&&(Yt(t)||Nt(t))}(t,e,bt)}(r,t):mt(e,n,void 0,3)}}(t[0],t[1]):function(t){var e=function(t){var e=Qt(t),r=e.length;for(;r--;){var n=e[r],o=t[n];e[r]=[n,o,Pt(o)]}return e}(t);if(1==e.length&&e[0][2])return $t(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,n){var o=r.length,i=o,u=!n;if(null==t)return!i;for(t=Object(t);o--;){var a=r[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){var c=(a=r[o])[0],s=t[c],f=a[1];if(u&&a[2]){if(void 0===s&&!(c in t))return!1}else{var l=new lt;if(n)var h=n(s,f,c,t,e,l);if(!(void 0===h?mt(f,s,n,3,l):h))return!1}}return!0}(r,t,e)}}(t):Ft(e=t)?(r=xt(e),function(t){return null==t?void 0:t[r]}):function(t){return function(e){return gt(e,t)}}(e);var e,r}function Ot(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||$,e!==n)return H(t);var e,r,n,o=[];for(var i in Object(t))I.call(t,i)&&"constructor"!=i&&o.push(i);return o}function Et(t,e){var r=-1,n=Vt(t)?Array(t.length):[];return _t(t,(function(t,o,i){n[++r]=e(t,o,i)})),n}function At(t){return Yt(t)?t:Lt(t)}function St(t,e,r,n,o,i){var u=2&o,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var s=i.get(t);if(s&&i.get(e))return s==e;var f=-1,l=!0,h=1&o?new ft:void 0;for(i.set(t,e),i.set(e,t);++f<a;){var p=t[f],d=e[f];if(n)var y=u?n(d,p,f,e,t,i):n(p,d,f,t,e,i);if(void 0!==y){if(y)continue;l=!1;break}if(h){if(!A(e,(function(t,e){if(!h.has(e)&&(p===t||r(p,t,n,o,i)))return h.add(e)}))){l=!1;break}}else if(p!==d&&!r(p,d,n,o,i)){l=!1;break}}return i.delete(t),i.delete(e),l}function Rt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Dt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return jt(r)?r:void 0}var kt=function(t){return U.call(t)};function Ct(t){return Yt(t)||Nt(t)||!!(W&&t&&t[W])}function Tt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||p.test(t))&&t>-1&&t%1==0&&t<e}function Ft(t,e){if(Yt(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!zt(t))||(c.test(t)||!a.test(t)||null!=e&&t in Object(e))}function Pt(t){return t==t&&!Wt(t)}function $t(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(z&&"[object DataView]"!=kt(new z(new ArrayBuffer(1)))||G&&kt(new G)!=o||Q&&"[object Promise]"!=kt(Q.resolve())||J&&kt(new J)!=u||K&&"[object WeakMap]"!=kt(new K))&&(kt=function(t){var e=U.call(t),r=e==i?t.constructor:void 0,n=r?Mt(r):void 0;if(n)switch(n){case X:return"[object DataView]";case tt:return o;case et:return"[object Promise]";case rt:return u;case nt:return"[object WeakMap]"}return e});var Lt=It((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(zt(t))return ut?ut.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return s.test(t)&&r.push(""),t.replace(f,(function(t,e,n,o){r.push(n?o.replace(l,"$1"):e||t)})),r}));function xt(t){if("string"==typeof t||zt(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Mt(t){if(null!=t){try{return M.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function It(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u),u};return r.cache=new(It.Cache||st),r}function Ut(t,e){return t===e||t!=t&&e!=e}function Nt(t){return function(t){return Ht(t)&&Vt(t)}(t)&&I.call(t,"callee")&&(!B.call(t,"callee")||U.call(t)==n)}It.Cache=st;var Yt=Array.isArray;function Vt(t){return null!=t&&qt(t.length)&&!Bt(t)}function Bt(t){var e=Wt(t)?U.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function qt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Wt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ht(t){return!!t&&"object"==typeof t}function zt(t){return"symbol"==typeof t||Ht(t)&&"[object Symbol]"==U.call(t)}var Gt=w?function(t){return function(e){return t(e)}}(w):function(t){return Ht(t)&&qt(t.length)&&!!d[U.call(t)]};function Qt(t){return Vt(t)?ht(t):Ot(t)}function Jt(t){return t}r.exports=function(t,e){return function t(e,r,n,o,i){var u=-1,a=e.length;for(n||(n=Ct),i||(i=[]);++u<a;){var c=e[u];r>0&&n(c)?r>1?t(c,r-1,n,o,i):E(i,c):o||(i[i.length]=c)}return i}(function(t,e){return(Yt(t)?O:Et)(t,wt(e))}(t,e),1)}}).call(this,r(0),r(2)(t))},function(t,e,r){(function(t,r){var n="[object Arguments]",o="[object Map]",i="[object Object]",u="[object Set]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,s=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[n]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d[o]=d["[object Number]"]=d[i]=d["[object RegExp]"]=d[u]=d["[object String]"]=d["[object WeakMap]"]=!1;var y="object"==typeof t&&t&&t.Object===Object&&t,_="object"==typeof self&&self&&self.Object===Object&&self,v=y||_||Function("return this")(),g="object"==typeof e&&e&&!e.nodeType&&e,b=g&&"object"==typeof r&&r&&!r.nodeType&&r,m=b&&b.exports===g&&y.process,j=function(){try{return m&&m.binding("util")}catch(t){}}(),w=j&&j.isTypedArray;function O(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function E(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function A(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}function S(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function R(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var D,k,C,T=Array.prototype,F=Function.prototype,P=Object.prototype,$=v["__core-js_shared__"],L=(D=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",x=F.toString,M=P.hasOwnProperty,I=P.toString,U=RegExp("^"+x.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=v.Symbol,Y=v.Uint8Array,V=P.propertyIsEnumerable,B=T.splice,q=(k=Object.keys,C=Object,function(t){return k(C(t))}),W=St(v,"DataView"),H=St(v,"Map"),z=St(v,"Promise"),G=St(v,"Set"),Q=St(v,"WeakMap"),J=St(Object,"create"),K=$t(W),Z=$t(H),X=$t(z),tt=$t(G),et=$t(Q),rt=N?N.prototype:void 0,nt=rt?rt.valueOf:void 0,ot=rt?rt.toString:void 0;function it(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ut(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function at(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ct(t){var e=-1,r=t?t.length:0;for(this.__data__=new at;++e<r;)this.add(t[e])}function st(t){this.__data__=new ut(t)}function ft(t,e){var r=It(t)||Mt(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!M.call(t,i)||o&&("length"==i||Dt(i,n))||r.push(i);return r}function lt(t,e){for(var r=t.length;r--;)if(xt(t[r][0],e))return r;return-1}it.prototype.clear=function(){this.__data__=J?J(null):{}},it.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},it.prototype.get=function(t){var e=this.__data__;if(J){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return M.call(e,t)?e[t]:void 0},it.prototype.has=function(t){var e=this.__data__;return J?void 0!==e[t]:M.call(e,t)},it.prototype.set=function(t,e){return this.__data__[t]=J&&void 0===e?"__lodash_hash_undefined__":e,this},ut.prototype.clear=function(){this.__data__=[]},ut.prototype.delete=function(t){var e=this.__data__,r=lt(e,t);return!(r<0)&&(r==e.length-1?e.pop():B.call(e,r,1),!0)},ut.prototype.get=function(t){var e=this.__data__,r=lt(e,t);return r<0?void 0:e[r][1]},ut.prototype.has=function(t){return lt(this.__data__,t)>-1},ut.prototype.set=function(t,e){var r=this.__data__,n=lt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},at.prototype.clear=function(){this.__data__={hash:new it,map:new(H||ut),string:new it}},at.prototype.delete=function(t){return At(this,t).delete(t)},at.prototype.get=function(t){return At(this,t).get(t)},at.prototype.has=function(t){return At(this,t).has(t)},at.prototype.set=function(t,e){return At(this,t).set(t,e),this},ct.prototype.add=ct.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ct.prototype.has=function(t){return this.__data__.has(t)},st.prototype.clear=function(){this.__data__=new ut},st.prototype.delete=function(t){return this.__data__.delete(t)},st.prototype.get=function(t){return this.__data__.get(t)},st.prototype.has=function(t){return this.__data__.has(t)},st.prototype.set=function(t,e){var r=this.__data__;if(r instanceof ut){var n=r.__data__;if(!H||n.length<199)return n.push([t,e]),this;r=this.__data__=new at(n)}return r.set(t,e),this};var ht,pt,dt=(ht=function(t,e){return t&&yt(t,e,Ht)},function(t,e){if(null==t)return t;if(!Ut(t))return ht(t,e);for(var r=t.length,n=pt?r:-1,o=Object(t);(pt?n--:++n<r)&&!1!==e(o[n],n,o););return t}),yt=function(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===r(i[c],c,i))break}return e}}();function _t(t,e){for(var r=0,n=(e=kt(e,t)?[e]:Ot(e)).length;null!=t&&r<n;)t=t[Pt(e[r++])];return r&&r==n?t:void 0}function vt(t,e){return null!=t&&e in Object(t)}function gt(t,e,r,a,c){return t===e||(null==t||null==e||!Vt(t)&&!Bt(e)?t!=t&&e!=e:function(t,e,r,a,c,s){var f=It(t),l=It(e),h="[object Array]",p="[object Array]";f||(h=(h=Rt(t))==n?i:h);l||(p=(p=Rt(e))==n?i:p);var d=h==i&&!A(t),y=p==i&&!A(e),_=h==p;if(_&&!d)return s||(s=new st),f||Wt(t)?Et(t,e,r,a,c,s):function(t,e,r,n,i,a,c){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!n(new Y(t),new Y(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case o:var s=S;case u:var f=2&a;if(s||(s=R),t.size!=e.size&&!f)return!1;var l=c.get(t);if(l)return l==e;a|=1,c.set(t,e);var h=Et(s(t),s(e),n,i,a,c);return c.delete(t),h;case"[object Symbol]":if(nt)return nt.call(t)==nt.call(e)}return!1}(t,e,h,r,a,c,s);if(!(2&c)){var v=d&&M.call(t,"__wrapped__"),g=y&&M.call(e,"__wrapped__");if(v||g){var b=v?t.value():t,m=g?e.value():e;return s||(s=new st),r(b,m,a,c,s)}}if(!_)return!1;return s||(s=new st),function(t,e,r,n,o,i){var u=2&o,a=Ht(t),c=a.length,s=Ht(e).length;if(c!=s&&!u)return!1;var f=c;for(;f--;){var l=a[f];if(!(u?l in e:M.call(e,l)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var p=!0;i.set(t,e),i.set(e,t);var d=u;for(;++f<c;){l=a[f];var y=t[l],_=e[l];if(n)var v=u?n(_,y,l,e,t,i):n(y,_,l,t,e,i);if(!(void 0===v?y===_||r(y,_,n,o,i):v)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var g=t.constructor,b=e.constructor;g==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,r,a,c,s)}(t,e,gt,r,a,c))}function bt(t){return!(!Vt(t)||function(t){return!!L&&L in t}(t))&&(Nt(t)||A(t)?U:h).test($t(t))}function mt(t){return"function"==typeof t?t:null==t?zt:"object"==typeof t?It(t)?function(t,e){if(kt(t)&&Ct(e))return Tt(Pt(t),e);return function(r){var n=function(t,e,r){var n=null==t?void 0:_t(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){e=kt(e,t)?[e]:Ot(e);var n,o=-1,i=e.length;for(;++o<i;){var u=Pt(e[o]);if(!(n=null!=t&&r(t,u)))break;t=t[u]}if(n)return n;return!!(i=t?t.length:0)&&Yt(i)&&Dt(u,i)&&(It(t)||Mt(t))}(t,e,vt)}(r,t):gt(e,n,void 0,3)}}(t[0],t[1]):function(t){var e=function(t){var e=Ht(t),r=e.length;for(;r--;){var n=e[r],o=t[n];e[r]=[n,o,Ct(o)]}return e}(t);if(1==e.length&&e[0][2])return Tt(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,n){var o=r.length,i=o,u=!n;if(null==t)return!i;for(t=Object(t);o--;){var a=r[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){var c=(a=r[o])[0],s=t[c],f=a[1];if(u&&a[2]){if(void 0===s&&!(c in t))return!1}else{var l=new st;if(n)var h=n(s,f,c,t,e,l);if(!(void 0===h?gt(f,s,n,3,l):h))return!1}}return!0}(r,t,e)}}(t):kt(e=t)?(r=Pt(e),function(t){return null==t?void 0:t[r]}):function(t){return function(e){return _t(e,t)}}(e);var e,r}function jt(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||P,e!==n)return q(t);var e,r,n,o=[];for(var i in Object(t))M.call(t,i)&&"constructor"!=i&&o.push(i);return o}function wt(t,e){var r=-1,n=Ut(t)?Array(t.length):[];return dt(t,(function(t,o,i){n[++r]=e(t,o,i)})),n}function Ot(t){return It(t)?t:Ft(t)}function Et(t,e,r,n,o,i){var u=2&o,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var s=i.get(t);if(s&&i.get(e))return s==e;var f=-1,l=!0,h=1&o?new ct:void 0;for(i.set(t,e),i.set(e,t);++f<a;){var p=t[f],d=e[f];if(n)var y=u?n(d,p,f,e,t,i):n(p,d,f,t,e,i);if(void 0!==y){if(y)continue;l=!1;break}if(h){if(!E(e,(function(t,e){if(!h.has(e)&&(p===t||r(p,t,n,o,i)))return h.add(e)}))){l=!1;break}}else if(p!==d&&!r(p,d,n,o,i)){l=!1;break}}return i.delete(t),i.delete(e),l}function At(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function St(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return bt(r)?r:void 0}var Rt=function(t){return I.call(t)};function Dt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||p.test(t))&&t>-1&&t%1==0&&t<e}function kt(t,e){if(It(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!qt(t))||(c.test(t)||!a.test(t)||null!=e&&t in Object(e))}function Ct(t){return t==t&&!Vt(t)}function Tt(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(W&&"[object DataView]"!=Rt(new W(new ArrayBuffer(1)))||H&&Rt(new H)!=o||z&&"[object Promise]"!=Rt(z.resolve())||G&&Rt(new G)!=u||Q&&"[object WeakMap]"!=Rt(new Q))&&(Rt=function(t){var e=I.call(t),r=e==i?t.constructor:void 0,n=r?$t(r):void 0;if(n)switch(n){case K:return"[object DataView]";case Z:return o;case X:return"[object Promise]";case tt:return u;case et:return"[object WeakMap]"}return e});var Ft=Lt((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(qt(t))return ot?ot.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return s.test(t)&&r.push(""),t.replace(f,(function(t,e,n,o){r.push(n?o.replace(l,"$1"):e||t)})),r}));function Pt(t){if("string"==typeof t||qt(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function $t(t){if(null!=t){try{return x.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Lt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u),u};return r.cache=new(Lt.Cache||at),r}function xt(t,e){return t===e||t!=t&&e!=e}function Mt(t){return function(t){return Bt(t)&&Ut(t)}(t)&&M.call(t,"callee")&&(!V.call(t,"callee")||I.call(t)==n)}Lt.Cache=at;var It=Array.isArray;function Ut(t){return null!=t&&Yt(t.length)&&!Nt(t)}function Nt(t){var e=Vt(t)?I.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Yt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Vt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Bt(t){return!!t&&"object"==typeof t}function qt(t){return"symbol"==typeof t||Bt(t)&&"[object Symbol]"==I.call(t)}var Wt=w?function(t){return function(e){return t(e)}}(w):function(t){return Bt(t)&&Yt(t.length)&&!!d[I.call(t)]};function Ht(t){return Ut(t)?ft(t):jt(t)}function zt(t){return t}r.exports=function(t,e){return(It(t)?O:wt)(t,mt(e))}}).call(this,r(0),r(2)(t))},function(t,e,r){(function(t,r){var n="[object Arguments]",o="[object Map]",i="[object Object]",u="[object Set]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,s=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[n]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d[o]=d["[object Number]"]=d[i]=d["[object RegExp]"]=d[u]=d["[object String]"]=d["[object WeakMap]"]=!1;var y="object"==typeof t&&t&&t.Object===Object&&t,_="object"==typeof self&&self&&self.Object===Object&&self,v=y||_||Function("return this")(),g="object"==typeof e&&e&&!e.nodeType&&e,b=g&&"object"==typeof r&&r&&!r.nodeType&&r,m=b&&b.exports===g&&y.process,j=function(){try{return m&&m.binding("util")}catch(t){}}(),w=j&&j.isTypedArray;function O(t,e){for(var r=-1,n=t?t.length:0,o=0,i=[];++r<n;){var u=t[r];e(u,r,t)&&(i[o++]=u)}return i}function E(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function A(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}function S(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function R(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var D,k,C,T=Array.prototype,F=Function.prototype,P=Object.prototype,$=v["__core-js_shared__"],L=(D=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",x=F.toString,M=P.hasOwnProperty,I=P.toString,U=RegExp("^"+x.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=v.Symbol,Y=v.Uint8Array,V=P.propertyIsEnumerable,B=T.splice,q=(k=Object.keys,C=Object,function(t){return k(C(t))}),W=St(v,"DataView"),H=St(v,"Map"),z=St(v,"Promise"),G=St(v,"Set"),Q=St(v,"WeakMap"),J=St(Object,"create"),K=$t(W),Z=$t(H),X=$t(z),tt=$t(G),et=$t(Q),rt=N?N.prototype:void 0,nt=rt?rt.valueOf:void 0,ot=rt?rt.toString:void 0;function it(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ut(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function at(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ct(t){var e=-1,r=t?t.length:0;for(this.__data__=new at;++e<r;)this.add(t[e])}function st(t){this.__data__=new ut(t)}function ft(t,e){var r=It(t)||Mt(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!M.call(t,i)||o&&("length"==i||Dt(i,n))||r.push(i);return r}function lt(t,e){for(var r=t.length;r--;)if(xt(t[r][0],e))return r;return-1}it.prototype.clear=function(){this.__data__=J?J(null):{}},it.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},it.prototype.get=function(t){var e=this.__data__;if(J){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return M.call(e,t)?e[t]:void 0},it.prototype.has=function(t){var e=this.__data__;return J?void 0!==e[t]:M.call(e,t)},it.prototype.set=function(t,e){return this.__data__[t]=J&&void 0===e?"__lodash_hash_undefined__":e,this},ut.prototype.clear=function(){this.__data__=[]},ut.prototype.delete=function(t){var e=this.__data__,r=lt(e,t);return!(r<0)&&(r==e.length-1?e.pop():B.call(e,r,1),!0)},ut.prototype.get=function(t){var e=this.__data__,r=lt(e,t);return r<0?void 0:e[r][1]},ut.prototype.has=function(t){return lt(this.__data__,t)>-1},ut.prototype.set=function(t,e){var r=this.__data__,n=lt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},at.prototype.clear=function(){this.__data__={hash:new it,map:new(H||ut),string:new it}},at.prototype.delete=function(t){return At(this,t).delete(t)},at.prototype.get=function(t){return At(this,t).get(t)},at.prototype.has=function(t){return At(this,t).has(t)},at.prototype.set=function(t,e){return At(this,t).set(t,e),this},ct.prototype.add=ct.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ct.prototype.has=function(t){return this.__data__.has(t)},st.prototype.clear=function(){this.__data__=new ut},st.prototype.delete=function(t){return this.__data__.delete(t)},st.prototype.get=function(t){return this.__data__.get(t)},st.prototype.has=function(t){return this.__data__.has(t)},st.prototype.set=function(t,e){var r=this.__data__;if(r instanceof ut){var n=r.__data__;if(!H||n.length<199)return n.push([t,e]),this;r=this.__data__=new at(n)}return r.set(t,e),this};var ht,pt,dt=(ht=function(t,e){return t&&_t(t,e,Ht)},function(t,e){if(null==t)return t;if(!Ut(t))return ht(t,e);for(var r=t.length,n=pt?r:-1,o=Object(t);(pt?n--:++n<r)&&!1!==e(o[n],n,o););return t});function yt(t,e){var r=[];return dt(t,(function(t,n,o){e(t,n,o)&&r.push(t)})),r}var _t=function(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===r(i[c],c,i))break}return e}}();function vt(t,e){for(var r=0,n=(e=kt(e,t)?[e]:Ot(e)).length;null!=t&&r<n;)t=t[Pt(e[r++])];return r&&r==n?t:void 0}function gt(t,e){return null!=t&&e in Object(t)}function bt(t,e,r,a,c){return t===e||(null==t||null==e||!Vt(t)&&!Bt(e)?t!=t&&e!=e:function(t,e,r,a,c,s){var f=It(t),l=It(e),h="[object Array]",p="[object Array]";f||(h=(h=Rt(t))==n?i:h);l||(p=(p=Rt(e))==n?i:p);var d=h==i&&!A(t),y=p==i&&!A(e),_=h==p;if(_&&!d)return s||(s=new st),f||Wt(t)?Et(t,e,r,a,c,s):function(t,e,r,n,i,a,c){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!n(new Y(t),new Y(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case o:var s=S;case u:var f=2&a;if(s||(s=R),t.size!=e.size&&!f)return!1;var l=c.get(t);if(l)return l==e;a|=1,c.set(t,e);var h=Et(s(t),s(e),n,i,a,c);return c.delete(t),h;case"[object Symbol]":if(nt)return nt.call(t)==nt.call(e)}return!1}(t,e,h,r,a,c,s);if(!(2&c)){var v=d&&M.call(t,"__wrapped__"),g=y&&M.call(e,"__wrapped__");if(v||g){var b=v?t.value():t,m=g?e.value():e;return s||(s=new st),r(b,m,a,c,s)}}if(!_)return!1;return s||(s=new st),function(t,e,r,n,o,i){var u=2&o,a=Ht(t),c=a.length,s=Ht(e).length;if(c!=s&&!u)return!1;var f=c;for(;f--;){var l=a[f];if(!(u?l in e:M.call(e,l)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var p=!0;i.set(t,e),i.set(e,t);var d=u;for(;++f<c;){l=a[f];var y=t[l],_=e[l];if(n)var v=u?n(_,y,l,e,t,i):n(y,_,l,t,e,i);if(!(void 0===v?y===_||r(y,_,n,o,i):v)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var g=t.constructor,b=e.constructor;g==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,r,a,c,s)}(t,e,bt,r,a,c))}function mt(t){return!(!Vt(t)||function(t){return!!L&&L in t}(t))&&(Nt(t)||A(t)?U:h).test($t(t))}function jt(t){return"function"==typeof t?t:null==t?zt:"object"==typeof t?It(t)?function(t,e){if(kt(t)&&Ct(e))return Tt(Pt(t),e);return function(r){var n=function(t,e,r){var n=null==t?void 0:vt(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){e=kt(e,t)?[e]:Ot(e);var n,o=-1,i=e.length;for(;++o<i;){var u=Pt(e[o]);if(!(n=null!=t&&r(t,u)))break;t=t[u]}if(n)return n;return!!(i=t?t.length:0)&&Yt(i)&&Dt(u,i)&&(It(t)||Mt(t))}(t,e,gt)}(r,t):bt(e,n,void 0,3)}}(t[0],t[1]):function(t){var e=function(t){var e=Ht(t),r=e.length;for(;r--;){var n=e[r],o=t[n];e[r]=[n,o,Ct(o)]}return e}(t);if(1==e.length&&e[0][2])return Tt(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,n){var o=r.length,i=o,u=!n;if(null==t)return!i;for(t=Object(t);o--;){var a=r[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){var c=(a=r[o])[0],s=t[c],f=a[1];if(u&&a[2]){if(void 0===s&&!(c in t))return!1}else{var l=new st;if(n)var h=n(s,f,c,t,e,l);if(!(void 0===h?bt(f,s,n,3,l):h))return!1}}return!0}(r,t,e)}}(t):kt(e=t)?(r=Pt(e),function(t){return null==t?void 0:t[r]}):function(t){return function(e){return vt(e,t)}}(e);var e,r}function wt(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||P,e!==n)return q(t);var e,r,n,o=[];for(var i in Object(t))M.call(t,i)&&"constructor"!=i&&o.push(i);return o}function Ot(t){return It(t)?t:Ft(t)}function Et(t,e,r,n,o,i){var u=2&o,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var s=i.get(t);if(s&&i.get(e))return s==e;var f=-1,l=!0,h=1&o?new ct:void 0;for(i.set(t,e),i.set(e,t);++f<a;){var p=t[f],d=e[f];if(n)var y=u?n(d,p,f,e,t,i):n(p,d,f,t,e,i);if(void 0!==y){if(y)continue;l=!1;break}if(h){if(!E(e,(function(t,e){if(!h.has(e)&&(p===t||r(p,t,n,o,i)))return h.add(e)}))){l=!1;break}}else if(p!==d&&!r(p,d,n,o,i)){l=!1;break}}return i.delete(t),i.delete(e),l}function At(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function St(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return mt(r)?r:void 0}var Rt=function(t){return I.call(t)};function Dt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||p.test(t))&&t>-1&&t%1==0&&t<e}function kt(t,e){if(It(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!qt(t))||(c.test(t)||!a.test(t)||null!=e&&t in Object(e))}function Ct(t){return t==t&&!Vt(t)}function Tt(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(W&&"[object DataView]"!=Rt(new W(new ArrayBuffer(1)))||H&&Rt(new H)!=o||z&&"[object Promise]"!=Rt(z.resolve())||G&&Rt(new G)!=u||Q&&"[object WeakMap]"!=Rt(new Q))&&(Rt=function(t){var e=I.call(t),r=e==i?t.constructor:void 0,n=r?$t(r):void 0;if(n)switch(n){case K:return"[object DataView]";case Z:return o;case X:return"[object Promise]";case tt:return u;case et:return"[object WeakMap]"}return e});var Ft=Lt((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(qt(t))return ot?ot.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return s.test(t)&&r.push(""),t.replace(f,(function(t,e,n,o){r.push(n?o.replace(l,"$1"):e||t)})),r}));function Pt(t){if("string"==typeof t||qt(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function $t(t){if(null!=t){try{return x.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Lt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u),u};return r.cache=new(Lt.Cache||at),r}function xt(t,e){return t===e||t!=t&&e!=e}function Mt(t){return function(t){return Bt(t)&&Ut(t)}(t)&&M.call(t,"callee")&&(!V.call(t,"callee")||I.call(t)==n)}Lt.Cache=at;var It=Array.isArray;function Ut(t){return null!=t&&Yt(t.length)&&!Nt(t)}function Nt(t){var e=Vt(t)?I.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Yt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Vt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Bt(t){return!!t&&"object"==typeof t}function qt(t){return"symbol"==typeof t||Bt(t)&&"[object Symbol]"==I.call(t)}var Wt=w?function(t){return function(e){return t(e)}}(w):function(t){return Bt(t)&&Yt(t.length)&&!!d[I.call(t)]};function Ht(t){return Ut(t)?ft(t):wt(t)}function zt(t){return t}r.exports=function(t,e){return(It(t)?O:yt)(t,jt(e))}}).call(this,r(0),r(2)(t))},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:u}catch(t){n=u}}();var c,s=[],f=!1,l=-1;function h(){f&&c&&(f=!1,c.length?s=c.concat(s):l=-1,s.length&&p())}function p(){if(!f){var t=a(h);f=!0;for(var e=s.length;e;){for(c=s,s=[];++l<e;)c&&c[l].run();l=-1,e=s.length}c=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===u||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];s.push(new d(t,e)),1!==s.length||f||a(p)},d.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=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FrontendFileReader=void 0;e.FrontendFileReader=class{setRecordTransformer(t){this.recordTransformer=t}checkFile(t){fetch(t,{method:"HEAD",credentials:"same-origin",redirect:"follow"}).then(t=>Promise.resolve(t))}readText(t,e,r){fetch(t).then(t=>t.text()).then(t=>{e(null,t)}).catch(r=>{e(`${t} read error: ${r}`)})}}},function(t,e,r){"use strict";r.r(e);var n=new Date,o=new Date;function i(t,e,r,u){function a(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return a.floor=function(e){return t(e=new Date(+e)),e},a.ceil=function(r){return t(r=new Date(r-1)),e(r,1),t(r),r},a.round=function(t){var e=a(t),r=a.ceil(t);return t-e<r-t?e:r},a.offset=function(t,r){return e(t=new Date(+t),null==r?1:Math.floor(r)),t},a.range=function(r,n,o){var i,u=[];if(r=a.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return u;do{u.push(i=new Date(+r)),e(r,o),t(r)}while(i<r&&r<n);return u},a.filter=function(r){return i((function(e){if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),(function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}))},r&&(a.count=function(e,i){return n.setTime(+e),o.setTime(+i),t(n),t(o),Math.floor(r(n,o))},a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?a.filter(u?function(e){return u(e)%t==0}:function(e){return a.count(0,e)%t==0}):a:null}),a}function u(t){return i((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var a=u(0),c=u(1),s=u(2),f=u(3),l=u(4),h=u(5),p=u(6),d=(a.range,c.range,s.range,f.range,l.range,h.range,p.range,i((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}))),y=d;d.range;function _(t){return i((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var v=_(0),g=_(1),b=_(2),m=_(3),j=_(4),w=_(5),O=_(6),E=(v.range,g.range,b.range,m.range,j.range,w.range,O.range,i((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}))),A=E,S=(E.range,i((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));S.every=function(t){return isFinite(t=Math.floor(t))&&t>0?i((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var R=S,D=(S.range,i((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));D.every=function(t){return isFinite(t=Math.floor(t))&&t>0?i((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var k=D;D.range;function C(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function T(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function F(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function P(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,u=t.shortDays,a=t.months,s=t.shortMonths,f=W(o),l=H(o),h=W(i),p=H(i),d=W(u),_=H(u),v=W(a),b=H(a),m=W(s),j=H(s),w={a:function(t){return u[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:pt,e:pt,f:gt,g:kt,G:Tt,H:dt,I:yt,j:_t,L:vt,m:bt,M:mt,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:te,s:ee,S:jt,u:wt,U:Ot,V:At,w:St,W:Rt,x:null,X:null,y:Dt,Y:Ct,Z:Ft,"%":Xt},O={a:function(t){return u[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Pt,e:Pt,f:It,g:Qt,G:Kt,H:$t,I:Lt,j:xt,L:Mt,m:Ut,M:Nt,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:te,s:ee,S:Yt,u:Vt,U:Bt,V:Wt,w:Ht,W:zt,x:null,X:null,y:Gt,Y:Jt,Z:Zt,"%":Xt},E={a:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.w=_[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=p[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=j[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=v.exec(e.slice(r));return n?(t.m=b[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,r,n){return D(t,e,r,n)},d:nt,e:nt,f:st,g:X,G:Z,H:it,I:it,j:ot,L:ct,m:rt,M:ut,p:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.p=l[n[0].toLowerCase()],r+n[0].length):-1},q:et,Q:lt,s:ht,S:at,u:G,U:Q,V:J,w:z,W:K,x:function(t,e,n){return D(t,r,e,n)},X:function(t,e,r){return D(t,n,e,r)},y:X,Y:Z,Z:tt,"%":ft};function S(t,e){return function(r){var n,o,i,u=[],a=-1,c=0,s=t.length;for(r instanceof Date||(r=new Date(+r));++a<s;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(o=U[n=t.charAt(++a)])?n=t.charAt(++a):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),u.push(n),c=a+1);return u.push(t.slice(c,a)),u.join("")}}function R(t,e){return function(r){var n,o,i=F(1900,void 0,1);if(D(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=T(F(i.y,0,1))).getUTCDay(),n=o>4||0===o?c.ceil(n):c(n),n=y.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=C(F(i.y,0,1))).getDay(),n=o>4||0===o?g.ceil(n):g(n),n=A.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?T(F(i.y,0,1)).getUTCDay():C(F(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,T(i)):C(i)}}function D(t,e,r,n){for(var o,i,u=0,a=e.length,c=r.length;u<a;){if(n>=c)return-1;if(37===(o=e.charCodeAt(u++))){if(o=e.charAt(u++),!(i=E[o in U?e.charAt(u++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return w.x=S(r,w),w.X=S(n,w),w.c=S(e,w),O.x=S(r,O),O.X=S(n,O),O.c=S(e,O),{format:function(t){var e=S(t+="",w);return e.toString=function(){return t},e},parse:function(t){var e=R(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=S(t+="",O);return e.toString=function(){return t},e},utcParse:function(t){var e=R(t+="",!0);return e.toString=function(){return t},e}}}var $,L,x,M,I,U={"-":"",_:" ",0:"0"},N=/^\s*\d+/,Y=/^%/,V=/[\\^$*+?|[\]().{}]/g;function B(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function q(t){return t.replace(V,"\\$&")}function W(t){return new RegExp("^(?:"+t.map(q).join("|")+")","i")}function H(t){for(var e={},r=-1,n=t.length;++r<n;)e[t[r].toLowerCase()]=r;return e}function z(t,e,r){var n=N.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function G(t,e,r){var n=N.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Q(t,e,r){var n=N.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function J(t,e,r){var n=N.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function K(t,e,r){var n=N.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Z(t,e,r){var n=N.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function X(t,e,r){var n=N.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function tt(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function et(t,e,r){var n=N.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function rt(t,e,r){var n=N.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function nt(t,e,r){var n=N.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ot(t,e,r){var n=N.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function it(t,e,r){var n=N.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function ut(t,e,r){var n=N.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function at(t,e,r){var n=N.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function ct(t,e,r){var n=N.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function st(t,e,r){var n=N.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function ft(t,e,r){var n=Y.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function lt(t,e,r){var n=N.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function ht(t,e,r){var n=N.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function pt(t,e){return B(t.getDate(),e,2)}function dt(t,e){return B(t.getHours(),e,2)}function yt(t,e){return B(t.getHours()%12||12,e,2)}function _t(t,e){return B(1+A.count(R(t),t),e,3)}function vt(t,e){return B(t.getMilliseconds(),e,3)}function gt(t,e){return vt(t,e)+"000"}function bt(t,e){return B(t.getMonth()+1,e,2)}function mt(t,e){return B(t.getMinutes(),e,2)}function jt(t,e){return B(t.getSeconds(),e,2)}function wt(t){var e=t.getDay();return 0===e?7:e}function Ot(t,e){return B(v.count(R(t)-1,t),e,2)}function Et(t){var e=t.getDay();return e>=4||0===e?j(t):j.ceil(t)}function At(t,e){return t=Et(t),B(j.count(R(t),t)+(4===R(t).getDay()),e,2)}function St(t){return t.getDay()}function Rt(t,e){return B(g.count(R(t)-1,t),e,2)}function Dt(t,e){return B(t.getFullYear()%100,e,2)}function kt(t,e){return B((t=Et(t)).getFullYear()%100,e,2)}function Ct(t,e){return B(t.getFullYear()%1e4,e,4)}function Tt(t,e){var r=t.getDay();return B((t=r>=4||0===r?j(t):j.ceil(t)).getFullYear()%1e4,e,4)}function Ft(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+B(e/60|0,"0",2)+B(e%60,"0",2)}function Pt(t,e){return B(t.getUTCDate(),e,2)}function $t(t,e){return B(t.getUTCHours(),e,2)}function Lt(t,e){return B(t.getUTCHours()%12||12,e,2)}function xt(t,e){return B(1+y.count(k(t),t),e,3)}function Mt(t,e){return B(t.getUTCMilliseconds(),e,3)}function It(t,e){return Mt(t,e)+"000"}function Ut(t,e){return B(t.getUTCMonth()+1,e,2)}function Nt(t,e){return B(t.getUTCMinutes(),e,2)}function Yt(t,e){return B(t.getUTCSeconds(),e,2)}function Vt(t){var e=t.getUTCDay();return 0===e?7:e}function Bt(t,e){return B(a.count(k(t)-1,t),e,2)}function qt(t){var e=t.getUTCDay();return e>=4||0===e?l(t):l.ceil(t)}function Wt(t,e){return t=qt(t),B(l.count(k(t),t)+(4===k(t).getUTCDay()),e,2)}function Ht(t){return t.getUTCDay()}function zt(t,e){return B(c.count(k(t)-1,t),e,2)}function Gt(t,e){return B(t.getUTCFullYear()%100,e,2)}function Qt(t,e){return B((t=qt(t)).getUTCFullYear()%100,e,2)}function Jt(t,e){return B(t.getUTCFullYear()%1e4,e,4)}function Kt(t,e){var r=t.getUTCDay();return B((t=r>=4||0===r?l(t):l.ceil(t)).getUTCFullYear()%1e4,e,4)}function Zt(){return"+0000"}function Xt(){return"%"}function te(t){return+t}function ee(t){return Math.floor(+t/1e3)}function re(t){return $=P(t),L=$.format,x=$.parse,M=$.utcFormat,I=$.utcParse,$}re({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var ne=Date.prototype.toISOString?function(t){return t.toISOString()}:M("%Y-%m-%dT%H:%M:%S.%LZ");var oe=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:I("%Y-%m-%dT%H:%M:%S.%LZ");r.d(e,"timeFormatDefaultLocale",(function(){return re})),r.d(e,"timeFormat",(function(){return L})),r.d(e,"timeParse",(function(){return x})),r.d(e,"utcFormat",(function(){return M})),r.d(e,"utcParse",(function(){return I})),r.d(e,"timeFormatLocale",(function(){return P})),r.d(e,"isoFormat",(function(){return ne})),r.d(e,"isoParse",(function(){return oe}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.githubPathAdapter=function(t){const e=t=>(t.match(/\//g)||[]).length;return t.startsWith("https://raw.githubusercontent.com/")?(t.endsWith("/datapackage.json")&&(t=t.replace("/datapackage.json","")),t.endsWith("/")&&(t=t.replace(/.$/,"")),4===e(t)&&(t+="/master"),t):t.startsWith("https://github.com/")?(t.endsWith(".git")&&(t=t.replace(".git","")),t.endsWith("/datapackage.json")&&(t=t.replace("/datapackage.json","")),t.endsWith("/")&&(t=t.replace(/.$/,"")),(t=t.replace("https://github.com/","https://raw.githubusercontent.com/")).includes("/blob")&&(t=t.replace("/blob","")),4===e(t)&&(t+="/master"),t):t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(12);e.getLevelAvailability=(t,e)=>{const r=[n.Level.OFF,n.Level.FATAL,n.Level.ERROR,n.Level.WARNING,n.Level.DEBUG,n.Level.ALL];let o=n.Level.OFF;for(const n of r)if(o|=n,n===t)break;return 0!=(o&e)};class o{constructor(t){this.diagnosticDescriptor=t,this.parents=[],this.diagnosticDescriptor.level||(this.diagnosticDescriptor.level=n.Level.ERROR)}addOutputTo(t){this.parents.push(t)}getFatalListener(){return this.onFatal}setFatalListener(t){this.onFatal=t}fatal(t,r,o){if(e.getLevelAvailability(this.diagnosticDescriptor.level,n.Level.FATAL)){const e=o instanceof Error?o.stack:o;this.onFatal&&this.onFatal(e),this.addRecord(this.prepareRecord({funName:t,message:r,attachment:e},n.Level.FATAL))}}error(t,r,o){if(e.getLevelAvailability(this.diagnosticDescriptor.level,n.Level.ERROR)){const e=o instanceof Error?o.stack:o;this.addRecord(this.prepareRecord({funName:t,message:r,attachment:e},n.Level.ERROR))}}warning(t,r,o){e.getLevelAvailability(this.diagnosticDescriptor.level,n.Level.WARNING)&&this.addRecord(this.prepareRecord({funName:t,message:r,attachment:o},n.Level.WARNING))}debug(t,r,o){e.getLevelAvailability(this.diagnosticDescriptor.level,n.Level.DEBUG)&&this.addRecord(this.prepareRecord({funName:t,message:r,attachment:o},n.Level.DEBUG))}prepareDiagnosticFor(t){return{fatal:this.prepareFatalFor(t),error:this.prepareErrorFor(t),warning:this.prepareWarningFor(t),debug:this.prepareDebugFor(t)}}addRecord(t){if(this.parents.length<=0)throw Error(`parents are missing for ${this.diagnosticDescriptor.module}@${this.diagnosticDescriptor.version} on ${this.diagnosticDescriptor.requestId}`);for(const e of this.parents)e.addRecord(t)}prepareFatalFor(t){return(e,r)=>{this.fatal(t,e,r)}}prepareErrorFor(t){return(e,r)=>{this.error(t,e,r)}}prepareWarningFor(t){return(e,r)=>{this.warning(t,e,r)}}prepareDebugFor(t){return(e,r)=>{this.debug(t,e,r)}}prepareRecord(t,e){const{funName:r,message:o,attachment:i}=t,u={time:(new Date).toISOString(),module:this.diagnosticDescriptor.module,version:this.diagnosticDescriptor.version,requestId:this.diagnosticDescriptor.requestId,funName:r,message:o,level:n.getLabelByLevel(e)};return i&&(u.attachment=i),u}}e.LiftingDiagnosticManager=o;class i extends o{constructor(){super(...arguments),this.content=[]}addRecord(t){this.content.push(t)}putDiagnosticContentInto(t){t._diagnostic=this.content}extractDiagnosticContentFrom(t){const e=JSON.parse(t);if(!e._diagnostic)throw Error('"_diagnostic" field is NOT defined');this.content.push(...e._diagnostic)}}e.EndpointDiagnosticManager=i,e.createDiagnosticManagerOn=function(t,e){return{forRequest:r=>{const n={module:t,version:e,requestId:r,level:null};return{withSeverityLevel:t=>(n.level=t,new i(n))}},basedOn:r=>{const n={module:t,version:e,requestId:r.diagnosticDescriptor.requestId,level:r.diagnosticDescriptor.level},i=new o(n);return i.addOutputTo(r),r.getFatalListener()&&i.setFatalListener(r.getFatalListener()),i}}}},function(t,e,r){var n,o,i;o=[],void 0===(i="function"==typeof(n=function t(){"use strict";var e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},r=!e.document&&!!e.postMessage,n=r&&/blob:/i.test((e.location||{}).protocol),o={},i=0,u={parse:function(r,n){var a=(n=n||{}).dynamicTyping||!1;if(j(a)&&(n.dynamicTypingFunction=a,a={}),n.dynamicTyping=a,n.transform=!!j(n.transform)&&n.transform,n.worker&&u.WORKERS_SUPPORTED){var c=function(){if(!u.WORKERS_SUPPORTED)return!1;var r,n,a=(r=e.URL||e.webkitURL||null,n=t.toString(),u.BLOB_URL||(u.BLOB_URL=r.createObjectURL(new Blob(["(",n,")();"],{type:"text/javascript"})))),c=new e.Worker(a);return c.onmessage=_,c.id=i++,o[c.id]=c}();return c.userStep=n.step,c.userChunk=n.chunk,c.userComplete=n.complete,c.userError=n.error,n.step=j(n.step),n.chunk=j(n.chunk),n.complete=j(n.complete),n.error=j(n.error),delete n.worker,void c.postMessage({input:r,config:n,workerId:c.id})}var p=null;return u.NODE_STREAM_INPUT,"string"==typeof r?p=n.download?new s(n):new l(n):!0===r.readable&&j(r.read)&&j(r.on)?p=new h(n):(e.File&&r instanceof File||r instanceof Object)&&(p=new f(n)),p.stream(r)},unparse:function(t,e){var r=!1,n=!0,o=",",i="\r\n",a='"',c=a+a,s=!1,f=null,l=!1;!function(){if("object"==typeof e){if("string"!=typeof e.delimiter||u.BAD_DELIMITERS.filter((function(t){return-1!==e.delimiter.indexOf(t)})).length||(o=e.delimiter),("boolean"==typeof e.quotes||"function"==typeof e.quotes||Array.isArray(e.quotes))&&(r=e.quotes),"boolean"!=typeof e.skipEmptyLines&&"string"!=typeof e.skipEmptyLines||(s=e.skipEmptyLines),"string"==typeof e.newline&&(i=e.newline),"string"==typeof e.quoteChar&&(a=e.quoteChar),"boolean"==typeof e.header&&(n=e.header),Array.isArray(e.columns)){if(0===e.columns.length)throw new Error("Option columns is empty");f=e.columns}void 0!==e.escapeChar&&(c=e.escapeChar+a),("boolean"==typeof e.escapeFormulae||e.escapeFormulae instanceof RegExp)&&(l=e.escapeFormulae instanceof RegExp?e.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var h=new RegExp(d(a),"g");if("string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return p(null,t,s);if("object"==typeof t[0])return p(f||Object.keys(t[0]),t,s)}else if("object"==typeof t)return"string"==typeof t.data&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||f),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:"object"==typeof t.data[0]?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||"object"==typeof t.data[0]||(t.data=[t.data])),p(t.fields||[],t.data||[],s);throw new Error("Unable to serialize unrecognized input");function p(t,e,r){var u="";"string"==typeof t&&(t=JSON.parse(t)),"string"==typeof e&&(e=JSON.parse(e));var a=Array.isArray(t)&&0<t.length,c=!Array.isArray(e[0]);if(a&&n){for(var s=0;s<t.length;s++)0<s&&(u+=o),u+=y(t[s],s);0<e.length&&(u+=i)}for(var f=0;f<e.length;f++){var l=a?t.length:e[f].length,h=!1,p=a?0===Object.keys(e[f]).length:0===e[f].length;if(r&&!a&&(h="greedy"===r?""===e[f].join("").trim():1===e[f].length&&0===e[f][0].length),"greedy"===r&&a){for(var d=[],_=0;_<l;_++){var v=c?t[_]:_;d.push(e[f][v])}h=""===d.join("").trim()}if(!h){for(var g=0;g<l;g++){0<g&&!p&&(u+=o);var b=a&&c?t[g]:g;u+=y(e[f][b],g)}f<e.length-1&&(!r||0<l&&!p)&&(u+=i)}}return u}function y(t,e){if(null==t)return"";if(t.constructor===Date)return JSON.stringify(t).slice(1,25);var n=!1;l&&"string"==typeof t&&l.test(t)&&(t="'"+t,n=!0);var i=t.toString().replace(h,c);return(n=n||!0===r||"function"==typeof r&&r(t,e)||Array.isArray(r)&&r[e]||function(t,e){for(var r=0;r<e.length;r++)if(-1<t.indexOf(e[r]))return!0;return!1}(i,u.BAD_DELIMITERS)||-1<i.indexOf(o)||" "===i.charAt(0)||" "===i.charAt(i.length-1))?a+i+a:i}}};if(u.RECORD_SEP=String.fromCharCode(30),u.UNIT_SEP=String.fromCharCode(31),u.BYTE_ORDER_MARK="\ufeff",u.BAD_DELIMITERS=["\r","\n",'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!r&&!!e.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=y,u.ParserHandle=p,u.NetworkStreamer=s,u.FileStreamer=f,u.StringStreamer=l,u.ReadableStreamStreamer=h,e.jQuery){var a=e.jQuery;a.fn.parse=function(t){var r=t.config||{},n=[];return this.each((function(t){if("INPUT"!==a(this).prop("tagName").toUpperCase()||"file"!==a(this).attr("type").toLowerCase()||!e.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)n.push({file:this.files[o],inputElem:this,instanceConfig:a.extend({},r)})})),o(),this;function o(){if(0!==n.length){var e,r,o,c=n[0];if(j(t.before)){var s=t.before(c.file,c.inputElem);if("object"==typeof s){if("abort"===s.action)return e=c.file,r=c.inputElem,o=s.reason,void(j(t.error)&&t.error({name:"AbortError"},e,r,o));if("skip"===s.action)return void i();"object"==typeof s.config&&(c.instanceConfig=a.extend(c.instanceConfig,s.config))}else if("skip"===s)return void i()}var f=c.instanceConfig.complete;c.instanceConfig.complete=function(t){j(f)&&f(t,c.file,c.inputElem),i()},u.parse(c.file,c.instanceConfig)}else j(t.complete)&&t.complete()}function i(){n.splice(0,1),o()}}}function c(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(t){var e=b(t);e.chunkSize=parseInt(e.chunkSize),t.step||t.chunk||(e.chunkSize=null),this._handle=new p(e),(this._handle.streamer=this)._config=e}.call(this,t),this.parseChunk=function(t,r){if(this.isFirstChunk&&j(this._config.beforeFirstChunk)){var o=this._config.beforeFirstChunk(t);void 0!==o&&(t=o)}this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+t;this._partialLine="";var a=this._handle.parse(i,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var c=a.meta.cursor;this._finished||(this._partialLine=i.substring(c-this._baseIndex),this._baseIndex=c),a&&a.data&&(this._rowCount+=a.data.length);var s=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(n)e.postMessage({results:a,workerId:u.WORKER_ID,finished:s});else if(j(this._config.chunk)&&!r){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!s||!j(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),s||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(t){j(this._config.error)?this._config.error(t):n&&this._config.error&&e.postMessage({workerId:u.WORKER_ID,error:t,finished:!1})}}function s(t){var e;(t=t||{}).chunkSize||(t.chunkSize=u.RemoteChunkSize),c.call(this,t),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(t){this._input=t,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),r||(e.onload=m(this._chunkLoaded,this),e.onerror=m(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var t=this._config.downloadRequestHeaders;for(var n in t)e.setRequestHeader(n,t[n])}if(this._config.chunkSize){var o=this._start+this._config.chunkSize-1;e.setRequestHeader("Range","bytes="+this._start+"-"+o)}try{e.send(this._config.downloadRequestBody)}catch(t){this._chunkError(t.message)}r&&0===e.status&&this._chunkError()}},this._chunkLoaded=function(){4===e.readyState&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:e.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(t){var e=t.getResponseHeader("Content-Range");return null===e?-1:parseInt(e.substring(e.lastIndexOf("/")+1))}(e),this.parseChunk(e.responseText)))},this._chunkError=function(t){var r=e.statusText||t;this._sendError(new Error(r))}}function f(t){var e,r;(t=t||{}).chunkSize||(t.chunkSize=u.LocalChunkSize),c.call(this,t);var n="undefined"!=typeof FileReader;this.stream=function(t){this._input=t,r=t.slice||t.webkitSlice||t.mozSlice,n?((e=new FileReader).onload=m(this._chunkLoaded,this),e.onerror=m(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var t=this._input;if(this._config.chunkSize){var o=Math.min(this._start+this._config.chunkSize,this._input.size);t=r.call(t,this._start,o)}var i=e.readAsText(t,this._config.encoding);n||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(t){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(t.target.result)},this._chunkError=function(){this._sendError(e.error)}}function l(t){var e;c.call(this,t=t||{}),this.stream=function(t){return e=t,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var t,r=this._config.chunkSize;return r?(t=e.substring(0,r),e=e.substring(r)):(t=e,e=""),this._finished=!e,this.parseChunk(t)}}}function h(t){c.call(this,t=t||{});var e=[],r=!0,n=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(t){this._input=t,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===e.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):r=!0},this._streamData=m((function(t){try{e.push("string"==typeof t?t:t.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(t){this._streamError(t)}}),this),this._streamError=m((function(t){this._streamCleanUp(),this._sendError(t)}),this),this._streamEnd=m((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=m((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function p(t){var e,r,n,o=Math.pow(2,53),i=-o,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,c=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,s=this,f=0,l=0,h=!1,p=!1,_=[],v={data:[],errors:[],meta:{}};if(j(t.step)){var g=t.step;t.step=function(e){if(v=e,O())w();else{if(w(),0===v.data.length)return;f+=e.data.length,t.preview&&f>t.preview?r.abort():(v.data=v.data[0],g(v,s))}}}function m(e){return"greedy"===t.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function w(){return v&&n&&(A("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),n=!1),t.skipEmptyLines&&(v.data=v.data.filter((function(t){return!m(t)}))),O()&&function(){if(v)if(Array.isArray(v.data[0])){for(var e=0;O()&&e<v.data.length;e++)v.data[e].forEach(r);v.data.splice(0,1)}else v.data.forEach(r);function r(e,r){j(t.transformHeader)&&(e=t.transformHeader(e,r)),_.push(e)}}(),function(){if(!v||!t.header&&!t.dynamicTyping&&!t.transform)return v;function e(e,r){var n,o=t.header?{}:[];for(n=0;n<e.length;n++){var i=n,u=e[n];t.header&&(i=n>=_.length?"__parsed_extra":_[n]),t.transform&&(u=t.transform(u,i)),u=E(i,u),"__parsed_extra"===i?(o[i]=o[i]||[],o[i].push(u)):o[i]=u}return t.header&&(n>_.length?A("FieldMismatch","TooManyFields","Too many fields: expected "+_.length+" fields but parsed "+n,l+r):n<_.length&&A("FieldMismatch","TooFewFields","Too few fields: expected "+_.length+" fields but parsed "+n,l+r)),o}var r=1;return!v.data.length||Array.isArray(v.data[0])?(v.data=v.data.map(e),r=v.data.length):v.data=e(v.data,0),t.header&&v.meta&&(v.meta.fields=_),l+=r,v}()}function O(){return t.header&&0===_.length}function E(e,r){return n=e,t.dynamicTypingFunction&&void 0===t.dynamicTyping[n]&&(t.dynamicTyping[n]=t.dynamicTypingFunction(n)),!0===(t.dynamicTyping[n]||t.dynamicTyping)?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&(function(t){if(a.test(t)){var e=parseFloat(t);if(i<e&&e<o)return!0}return!1}(r)?parseFloat(r):c.test(r)?new Date(r):""===r?null:r):r;var n}function A(t,e,r,n){var o={type:t,code:e,message:r};void 0!==n&&(o.row=n),v.errors.push(o)}this.parse=function(o,i,a){var c=t.quoteChar||'"';if(t.newline||(t.newline=function(t,e){t=t.substring(0,1048576);var r=new RegExp(d(e)+"([^]*?)"+d(e),"gm"),n=(t=t.replace(r,"")).split("\r"),o=t.split("\n"),i=1<o.length&&o[0].length<n[0].length;if(1===n.length||i)return"\n";for(var u=0,a=0;a<n.length;a++)"\n"===n[a][0]&&u++;return u>=n.length/2?"\r\n":"\r"}(o,c)),n=!1,t.delimiter)j(t.delimiter)&&(t.delimiter=t.delimiter(o),v.meta.delimiter=t.delimiter);else{var s=function(e,r,n,o,i){var a,c,s,f;i=i||[",","\t","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var l=0;l<i.length;l++){var h=i[l],p=0,d=0,_=0;s=void 0;for(var v=new y({comments:o,delimiter:h,newline:r,preview:10}).parse(e),g=0;g<v.data.length;g++)if(n&&m(v.data[g]))_++;else{var b=v.data[g].length;d+=b,void 0!==s?0<b&&(p+=Math.abs(b-s),s=b):s=b}0<v.data.length&&(d/=v.data.length-_),(void 0===c||p<=c)&&(void 0===f||f<d)&&1.99<d&&(c=p,a=h,f=d)}return{successful:!!(t.delimiter=a),bestDelimiter:a}}(o,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);s.successful?t.delimiter=s.bestDelimiter:(n=!0,t.delimiter=u.DefaultDelimiter),v.meta.delimiter=t.delimiter}var f=b(t);return t.preview&&t.header&&f.preview++,e=o,r=new y(f),v=r.parse(e,i,a),w(),h?{meta:{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return h},this.pause=function(){h=!0,r.abort(),e=j(t.chunk)?"":e.substring(r.getCharIndex())},this.resume=function(){s.streamer._halted?(h=!1,s.streamer.parseChunk(e,!0)):setTimeout(s.resume,3)},this.aborted=function(){return p},this.abort=function(){p=!0,r.abort(),v.meta.aborted=!0,j(t.complete)&&t.complete(v),e=""}}function d(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function y(t){var e,r=(t=t||{}).delimiter,n=t.newline,o=t.comments,i=t.step,a=t.preview,c=t.fastMode,s=e=void 0===t.quoteChar||null===t.quoteChar?'"':t.quoteChar;if(void 0!==t.escapeChar&&(s=t.escapeChar),("string"!=typeof r||-1<u.BAD_DELIMITERS.indexOf(r))&&(r=","),o===r)throw new Error("Comment character same as delimiter");!0===o?o="#":("string"!=typeof o||-1<u.BAD_DELIMITERS.indexOf(o))&&(o=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var f=0,l=!1;this.parse=function(t,u,h){if("string"!=typeof t)throw new Error("Input must be a string");var p=t.length,y=r.length,_=n.length,v=o.length,g=j(i),b=[],m=[],w=[],O=f=0;if(!t)return x();if(c||!1!==c&&-1===t.indexOf(e)){for(var E=t.split(n),A=0;A<E.length;A++){if(w=E[A],f+=w.length,A!==E.length-1)f+=n.length;else if(h)return x();if(!o||w.substring(0,v)!==o){if(g){if(b=[],F(w.split(r)),M(),l)return x()}else F(w.split(r));if(a&&a<=A)return b=b.slice(0,a),x(!0)}}return x()}for(var S=t.indexOf(r,f),R=t.indexOf(n,f),D=new RegExp(d(s)+d(e),"g"),k=t.indexOf(e,f);;)if(t[f]!==e)if(o&&0===w.length&&t.substring(f,f+v)===o){if(-1===R)return x();f=R+_,R=t.indexOf(n,f),S=t.indexOf(r,f)}else if(-1!==S&&(S<R||-1===R))w.push(t.substring(f,S)),f=S+y,S=t.indexOf(r,f);else{if(-1===R)break;if(w.push(t.substring(f,R)),L(R+_),g&&(M(),l))return x();if(a&&b.length>=a)return x(!0)}else for(k=f,f++;;){if(-1===(k=t.indexOf(e,k+1)))return h||m.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:f}),$();if(k===p-1)return $(t.substring(f,k).replace(D,e));if(e!==s||t[k+1]!==s){if(e===s||0===k||t[k-1]!==s){-1!==S&&S<k+1&&(S=t.indexOf(r,k+1)),-1!==R&&R<k+1&&(R=t.indexOf(n,k+1));var C=P(-1===R?S:Math.min(S,R));if(t.substr(k+1+C,y)===r){w.push(t.substring(f,k).replace(D,e)),t[f=k+1+C+y]!==e&&(k=t.indexOf(e,f)),S=t.indexOf(r,f),R=t.indexOf(n,f);break}var T=P(R);if(t.substring(k+1+T,k+1+T+_)===n){if(w.push(t.substring(f,k).replace(D,e)),L(k+1+T+_),S=t.indexOf(r,f),k=t.indexOf(e,f),g&&(M(),l))return x();if(a&&b.length>=a)return x(!0);break}m.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:f}),k++}}else k++}return $();function F(t){b.push(t),O=f}function P(e){var r=0;if(-1!==e){var n=t.substring(k+1,e);n&&""===n.trim()&&(r=n.length)}return r}function $(e){return h||(void 0===e&&(e=t.substring(f)),w.push(e),f=p,F(w),g&&M()),x()}function L(e){f=e,F(w),w=[],R=t.indexOf(n,f)}function x(t){return{data:b,errors:m,meta:{delimiter:r,linebreak:n,aborted:l,truncated:!!t,cursor:O+(u||0)}}}function M(){i(x()),b=[],m=[]}},this.abort=function(){l=!0},this.getCharIndex=function(){return f}}function _(t){var e=t.data,r=o[e.workerId],n=!1;if(e.error)r.userError(e.error,e.file);else if(e.results&&e.results.data){var i={abort:function(){n=!0,v(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:g,resume:g};if(j(r.userStep)){for(var u=0;u<e.results.data.length&&(r.userStep({data:e.results.data[u],errors:e.results.errors,meta:e.results.meta},i),!n);u++);delete e.results}else j(r.userChunk)&&(r.userChunk(e.results,i,e.file),delete e.results)}e.finished&&!n&&v(e.workerId,e.results)}function v(t,e){var r=o[t];j(r.userComplete)&&r.userComplete(e),r.terminate(),delete o[t]}function g(){throw new Error("Not implemented.")}function b(t){if("object"!=typeof t||null===t)return t;var e=Array.isArray(t)?[]:{};for(var r in t)e[r]=b(t[r]);return e}function m(t,e){return function(){t.apply(e,arguments)}}function j(t){return"function"==typeof t}return n&&(e.onmessage=function(t){var r=t.data;if(void 0===u.WORKER_ID&&r&&(u.WORKER_ID=r.workerId),"string"==typeof r.input)e.postMessage({workerId:u.WORKER_ID,results:u.parse(r.input,r.config),finished:!0});else if(e.File&&r.input instanceof File||r.input instanceof Object){var n=u.parse(r.input,r.config);n&&e.postMessage({workerId:u.WORKER_ID,results:n,finished:!0})}}),(s.prototype=Object.create(c.prototype)).constructor=s,(f.prototype=Object.create(c.prototype)).constructor=f,(l.prototype=Object.create(l.prototype)).constructor=l,(h.prototype=Object.create(c.prototype)).constructor=h,u})?n.apply(e,o):n)||(t.exports=i)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(10),o=r(15),i=r(11),u=r(3),a=r(14);function c(t){return u.isDatapointsQuery(t)&&1===n(t.where).length&&o(t.where)&&t.where.$and?a.QueryFeature.WhereClauseBasedOnConjunction:null}e.featureDetectors=[c,(t,e)=>{if(!c(t))return null;for(const r of t.where.$and){const o=n(r);if(1===o.length){const u=i(o),c=r[u];if(t.join&&t.join[c]){const r=t.join[c],o=r.where,s=i(n(o));if(r.key===u&&r.key===s&&1===n(o).length){const t=o[s],i=e.get(r.key),u=!!t.$in||!!t.$nin,c="entity_set"===i.concept_type||"entity_domain"===i.concept_type;if(1===n(t).length&&u&&c)return a.QueryFeature.ConjunctionPartFromWhereClauseCorrespondsToJoin}}}}return null}]},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(7),o=r(1),i=r(4),u=r(3);function a(t,e){const{dataset:r,branch:n,commit:o}=e;return`${t}${r}/${n}/${o}`}function c(t){return t?"default ":""}function s(t,e){return`${c(e)}dataset '${t}'`}e.getRepositoryPath=a,e.getFilePath=function(t,e="datapackage.json"){return`${t}/${e}`},e.extendQueryWithRepository=function(t,e={repositoryDescriptors:{}}){const r=i(e,"repositoryDescriptors",{}),f=n(t.dataset);if(!f){const[e,r]=t.dataset.split("#");!t.branch&&r&&(t.branch=r,t.dataset=e)}const l=n(t.branch)||t.branch===e.defaultRepositoryBranch,h=n(t.commit)||t.commit===e.defaultRepositoryCommit,{dataset:p=i(e,"defaultRepository",u.DEFAULT_REPOSITORY_NAME),branch:d=i(e,"defaultRepositoryBranch",u.DEFAULT_REPOSITORY_BRANCH)}=t;if(n(r[p]))throw new Error(`No ${s(p,f)} was found`);if(n(r[p][d]))throw new Error(`No ${function(t,e){return`${c(e)}branch '${t}'`}(d,l)} in ${s(p,f)} was found`);"HEAD"===t.commit&&(t.commit=i(r,`${p}.${d}.0`)||i(e,"defaultRepositoryCommit",u.DEFAULT_REPOSITORY_HASH));const{commit:y=i(r,`${p}.${d}.0`)||i(e,"defaultRepositoryCommit",u.DEFAULT_REPOSITORY_HASH)}=t;if(!o(r[p][d],y))throw new Error(`No ${function(t,e){return`${c(e)}commit '${t}'`}(y,h)} in ${c(l)}branch '${d}' in ${s(p,f)} was found`);const _=a("",{dataset:p,branch:d,commit:y});return Object.assign(t,{repositoryPath:_}),{dataset:p,branch:d,commit:y,isDefaultBranch:l,isDefaultCommit:h}}},function(t,e,r){(function(e){var r=/^\[object .+?Constructor\]$/,n="object"==typeof e&&e&&e.Object===Object&&e,o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();function u(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,n){var o=t.length,i=r+(n?1:-1);for(;n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,c,r);var n=r-1,o=t.length;for(;++n<o;)if(t[n]===e)return n;return-1}(t,e,0)>-1}function a(t,e,r){for(var n=-1,o=t?t.length:0;++n<o;)if(r(e,t[n]))return!0;return!1}function c(t){return t!=t}function s(t,e){return t.has(e)}function f(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var l,h=Array.prototype,p=Function.prototype,d=Object.prototype,y=i["__core-js_shared__"],_=(l=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",v=p.toString,g=d.hasOwnProperty,b=d.toString,m=RegExp("^"+v.call(g).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=h.splice,w=P(i,"Map"),O=P(i,"Set"),E=P(Object,"create");function A(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function S(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function R(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function D(t){var e=-1,r=t?t.length:0;for(this.__data__=new R;++e<r;)this.add(t[e])}function k(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function C(t){return!(!$(t)||(e=t,_&&_ in e))&&(function(t){var e=$(t)?b.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}(t)?m:r).test(function(t){if(null!=t){try{return v.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(t));var e}A.prototype.clear=function(){this.__data__=E?E(null):{}},A.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},A.prototype.get=function(t){var e=this.__data__;if(E){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return g.call(e,t)?e[t]:void 0},A.prototype.has=function(t){var e=this.__data__;return E?void 0!==e[t]:g.call(e,t)},A.prototype.set=function(t,e){return this.__data__[t]=E&&void 0===e?"__lodash_hash_undefined__":e,this},S.prototype.clear=function(){this.__data__=[]},S.prototype.delete=function(t){var e=this.__data__,r=k(e,t);return!(r<0)&&(r==e.length-1?e.pop():j.call(e,r,1),!0)},S.prototype.get=function(t){var e=this.__data__,r=k(e,t);return r<0?void 0:e[r][1]},S.prototype.has=function(t){return k(this.__data__,t)>-1},S.prototype.set=function(t,e){var r=this.__data__,n=k(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},R.prototype.clear=function(){this.__data__={hash:new A,map:new(w||S),string:new A}},R.prototype.delete=function(t){return F(this,t).delete(t)},R.prototype.get=function(t){return F(this,t).get(t)},R.prototype.has=function(t){return F(this,t).has(t)},R.prototype.set=function(t,e){return F(this,t).set(t,e),this},D.prototype.add=D.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},D.prototype.has=function(t){return this.__data__.has(t)};var T=O&&1/f(new O([,-0]))[1]==1/0?function(t){return new O(t)}:function(){};function F(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function P(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return C(r)?r:void 0}function $(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=function(t){return t&&t.length?function(t,e,r){var n=-1,o=u,i=t.length,c=!0,l=[],h=l;if(r)c=!1,o=a;else if(i>=200){var p=e?null:T(t);if(p)return f(p);c=!1,o=s,h=new D}else h=e?[]:l;t:for(;++n<i;){var d=t[n],y=e?e(d):d;if(d=r||0!==d?d:0,c&&y==y){for(var _=h.length;_--;)if(h[_]===y)continue t;e&&h.push(y),l.push(d)}else o(h,y,r)||(h!==l&&h.push(y),l.push(d))}return l}(t):[]}}).call(this,r(0))},function(t,e){var r=Object.prototype.toString,n=Array.isArray;t.exports=function(t){return"string"==typeof t||!n(t)&&function(t){return!!t&&"object"==typeof t}(t)&&"[object String]"==r.call(t)}},function(t,e,r){(function(t,r){var n="[object Arguments]",o="[object Map]",i="[object Object]",u="[object Set]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,s=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[n]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d[o]=d["[object Number]"]=d[i]=d["[object RegExp]"]=d[u]=d["[object String]"]=d["[object WeakMap]"]=!1;var y="object"==typeof t&&t&&t.Object===Object&&t,_="object"==typeof self&&self&&self.Object===Object&&self,v=y||_||Function("return this")(),g="object"==typeof e&&e&&!e.nodeType&&e,b=g&&"object"==typeof r&&r&&!r.nodeType&&r,m=b&&b.exports===g&&y.process,j=function(){try{return m&&m.binding("util")}catch(t){}}(),w=j&&j.isTypedArray;function O(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(!e(t[r],r,t))return!1;return!0}function E(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function A(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}function S(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function R(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var D,k,C,T=Array.prototype,F=Function.prototype,P=Object.prototype,$=v["__core-js_shared__"],L=(D=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",x=F.toString,M=P.hasOwnProperty,I=P.toString,U=RegExp("^"+x.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=v.Symbol,Y=v.Uint8Array,V=P.propertyIsEnumerable,B=T.splice,q=(k=Object.keys,C=Object,function(t){return k(C(t))}),W=St(v,"DataView"),H=St(v,"Map"),z=St(v,"Promise"),G=St(v,"Set"),Q=St(v,"WeakMap"),J=St(Object,"create"),K=$t(W),Z=$t(H),X=$t(z),tt=$t(G),et=$t(Q),rt=N?N.prototype:void 0,nt=rt?rt.valueOf:void 0,ot=rt?rt.toString:void 0;function it(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ut(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function at(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ct(t){var e=-1,r=t?t.length:0;for(this.__data__=new at;++e<r;)this.add(t[e])}function st(t){this.__data__=new ut(t)}function ft(t,e){var r=It(t)||Mt(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!M.call(t,i)||o&&("length"==i||Dt(i,n))||r.push(i);return r}function lt(t,e){for(var r=t.length;r--;)if(xt(t[r][0],e))return r;return-1}it.prototype.clear=function(){this.__data__=J?J(null):{}},it.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},it.prototype.get=function(t){var e=this.__data__;if(J){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return M.call(e,t)?e[t]:void 0},it.prototype.has=function(t){var e=this.__data__;return J?void 0!==e[t]:M.call(e,t)},it.prototype.set=function(t,e){return this.__data__[t]=J&&void 0===e?"__lodash_hash_undefined__":e,this},ut.prototype.clear=function(){this.__data__=[]},ut.prototype.delete=function(t){var e=this.__data__,r=lt(e,t);return!(r<0)&&(r==e.length-1?e.pop():B.call(e,r,1),!0)},ut.prototype.get=function(t){var e=this.__data__,r=lt(e,t);return r<0?void 0:e[r][1]},ut.prototype.has=function(t){return lt(this.__data__,t)>-1},ut.prototype.set=function(t,e){var r=this.__data__,n=lt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},at.prototype.clear=function(){this.__data__={hash:new it,map:new(H||ut),string:new it}},at.prototype.delete=function(t){return At(this,t).delete(t)},at.prototype.get=function(t){return At(this,t).get(t)},at.prototype.has=function(t){return At(this,t).has(t)},at.prototype.set=function(t,e){return At(this,t).set(t,e),this},ct.prototype.add=ct.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ct.prototype.has=function(t){return this.__data__.has(t)},st.prototype.clear=function(){this.__data__=new ut},st.prototype.delete=function(t){return this.__data__.delete(t)},st.prototype.get=function(t){return this.__data__.get(t)},st.prototype.has=function(t){return this.__data__.has(t)},st.prototype.set=function(t,e){var r=this.__data__;if(r instanceof ut){var n=r.__data__;if(!H||n.length<199)return n.push([t,e]),this;r=this.__data__=new at(n)}return r.set(t,e),this};var ht,pt,dt=(ht=function(t,e){return t&&_t(t,e,Ht)},function(t,e){if(null==t)return t;if(!Ut(t))return ht(t,e);for(var r=t.length,n=pt?r:-1,o=Object(t);(pt?n--:++n<r)&&!1!==e(o[n],n,o););return t});function yt(t,e){var r=!0;return dt(t,(function(t,n,o){return r=!!e(t,n,o)})),r}var _t=function(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===r(i[c],c,i))break}return e}}();function vt(t,e){for(var r=0,n=(e=kt(e,t)?[e]:Ot(e)).length;null!=t&&r<n;)t=t[Pt(e[r++])];return r&&r==n?t:void 0}function gt(t,e){return null!=t&&e in Object(t)}function bt(t,e,r,a,c){return t===e||(null==t||null==e||!Vt(t)&&!Bt(e)?t!=t&&e!=e:function(t,e,r,a,c,s){var f=It(t),l=It(e),h="[object Array]",p="[object Array]";f||(h=(h=Rt(t))==n?i:h);l||(p=(p=Rt(e))==n?i:p);var d=h==i&&!A(t),y=p==i&&!A(e),_=h==p;if(_&&!d)return s||(s=new st),f||Wt(t)?Et(t,e,r,a,c,s):function(t,e,r,n,i,a,c){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!n(new Y(t),new Y(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case o:var s=S;case u:var f=2&a;if(s||(s=R),t.size!=e.size&&!f)return!1;var l=c.get(t);if(l)return l==e;a|=1,c.set(t,e);var h=Et(s(t),s(e),n,i,a,c);return c.delete(t),h;case"[object Symbol]":if(nt)return nt.call(t)==nt.call(e)}return!1}(t,e,h,r,a,c,s);if(!(2&c)){var v=d&&M.call(t,"__wrapped__"),g=y&&M.call(e,"__wrapped__");if(v||g){var b=v?t.value():t,m=g?e.value():e;return s||(s=new st),r(b,m,a,c,s)}}if(!_)return!1;return s||(s=new st),function(t,e,r,n,o,i){var u=2&o,a=Ht(t),c=a.length,s=Ht(e).length;if(c!=s&&!u)return!1;var f=c;for(;f--;){var l=a[f];if(!(u?l in e:M.call(e,l)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var p=!0;i.set(t,e),i.set(e,t);var d=u;for(;++f<c;){l=a[f];var y=t[l],_=e[l];if(n)var v=u?n(_,y,l,e,t,i):n(y,_,l,t,e,i);if(!(void 0===v?y===_||r(y,_,n,o,i):v)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var g=t.constructor,b=e.constructor;g==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,r,a,c,s)}(t,e,bt,r,a,c))}function mt(t){return!(!Vt(t)||function(t){return!!L&&L in t}(t))&&(Nt(t)||A(t)?U:h).test($t(t))}function jt(t){return"function"==typeof t?t:null==t?zt:"object"==typeof t?It(t)?function(t,e){if(kt(t)&&Ct(e))return Tt(Pt(t),e);return function(r){var n=function(t,e,r){var n=null==t?void 0:vt(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){e=kt(e,t)?[e]:Ot(e);var n,o=-1,i=e.length;for(;++o<i;){var u=Pt(e[o]);if(!(n=null!=t&&r(t,u)))break;t=t[u]}if(n)return n;return!!(i=t?t.length:0)&&Yt(i)&&Dt(u,i)&&(It(t)||Mt(t))}(t,e,gt)}(r,t):bt(e,n,void 0,3)}}(t[0],t[1]):function(t){var e=function(t){var e=Ht(t),r=e.length;for(;r--;){var n=e[r],o=t[n];e[r]=[n,o,Ct(o)]}return e}(t);if(1==e.length&&e[0][2])return Tt(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,n){var o=r.length,i=o,u=!n;if(null==t)return!i;for(t=Object(t);o--;){var a=r[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){var c=(a=r[o])[0],s=t[c],f=a[1];if(u&&a[2]){if(void 0===s&&!(c in t))return!1}else{var l=new st;if(n)var h=n(s,f,c,t,e,l);if(!(void 0===h?bt(f,s,n,3,l):h))return!1}}return!0}(r,t,e)}}(t):kt(e=t)?(r=Pt(e),function(t){return null==t?void 0:t[r]}):function(t){return function(e){return vt(e,t)}}(e);var e,r}function wt(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||P,e!==n)return q(t);var e,r,n,o=[];for(var i in Object(t))M.call(t,i)&&"constructor"!=i&&o.push(i);return o}function Ot(t){return It(t)?t:Ft(t)}function Et(t,e,r,n,o,i){var u=2&o,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var s=i.get(t);if(s&&i.get(e))return s==e;var f=-1,l=!0,h=1&o?new ct:void 0;for(i.set(t,e),i.set(e,t);++f<a;){var p=t[f],d=e[f];if(n)var y=u?n(d,p,f,e,t,i):n(p,d,f,t,e,i);if(void 0!==y){if(y)continue;l=!1;break}if(h){if(!E(e,(function(t,e){if(!h.has(e)&&(p===t||r(p,t,n,o,i)))return h.add(e)}))){l=!1;break}}else if(p!==d&&!r(p,d,n,o,i)){l=!1;break}}return i.delete(t),i.delete(e),l}function At(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function St(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return mt(r)?r:void 0}var Rt=function(t){return I.call(t)};function Dt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||p.test(t))&&t>-1&&t%1==0&&t<e}function kt(t,e){if(It(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!qt(t))||(c.test(t)||!a.test(t)||null!=e&&t in Object(e))}function Ct(t){return t==t&&!Vt(t)}function Tt(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(W&&"[object DataView]"!=Rt(new W(new ArrayBuffer(1)))||H&&Rt(new H)!=o||z&&"[object Promise]"!=Rt(z.resolve())||G&&Rt(new G)!=u||Q&&"[object WeakMap]"!=Rt(new Q))&&(Rt=function(t){var e=I.call(t),r=e==i?t.constructor:void 0,n=r?$t(r):void 0;if(n)switch(n){case K:return"[object DataView]";case Z:return o;case X:return"[object Promise]";case tt:return u;case et:return"[object WeakMap]"}return e});var Ft=Lt((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(qt(t))return ot?ot.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return s.test(t)&&r.push(""),t.replace(f,(function(t,e,n,o){r.push(n?o.replace(l,"$1"):e||t)})),r}));function Pt(t){if("string"==typeof t||qt(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function $t(t){if(null!=t){try{return x.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Lt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u),u};return r.cache=new(Lt.Cache||at),r}function xt(t,e){return t===e||t!=t&&e!=e}function Mt(t){return function(t){return Bt(t)&&Ut(t)}(t)&&M.call(t,"callee")&&(!V.call(t,"callee")||I.call(t)==n)}Lt.Cache=at;var It=Array.isArray;function Ut(t){return null!=t&&Yt(t.length)&&!Nt(t)}function Nt(t){var e=Vt(t)?I.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Yt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Vt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Bt(t){return!!t&&"object"==typeof t}function qt(t){return"symbol"==typeof t||Bt(t)&&"[object Symbol]"==I.call(t)}var Wt=w?function(t){return function(e){return t(e)}}(w):function(t){return Bt(t)&&Yt(t.length)&&!!d[I.call(t)]};function Ht(t){return Ut(t)?ft(t):wt(t)}function zt(t){return t}r.exports=function(t,e,r){var n=It(t)?O:yt;return r&&function(t,e,r){if(!Vt(r))return!1;var n=typeof e;return!!("number"==n?Ut(r)&&Dt(e,r.length):"string"==n&&e in r)&&xt(r[e],t)}(t,e,r)&&(e=void 0),n(t,jt(e))}}).call(this,r(0),r(2)(t))},function(t,e,r){(function(e){var r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/,o=/^\./,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,a=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,s="object"==typeof e&&e&&e.Object===Object&&e,f="object"==typeof self&&self&&self.Object===Object&&self,l=s||f||Function("return this")();var h,p=Array.prototype,d=Function.prototype,y=Object.prototype,_=l["__core-js_shared__"],v=(h=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"",g=d.toString,b=y.hasOwnProperty,m=y.toString,j=RegExp("^"+g.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=l.Symbol,O=y.propertyIsEnumerable,E=p.splice,A=x(l,"Map"),S=x(Object,"create"),R=w?w.prototype:void 0,D=R?R.toString:void 0;function k(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function C(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function T(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function F(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function P(t,e){return null!=t&&b.call(t,e)}function $(t){return!(!q(t)||(e=t,v&&v in e))&&(V(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}(t)?j:a).test(function(t){if(null!=t){try{return g.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(t));var e}function L(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function x(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return $(r)?r:void 0}function M(t,e,o){for(var i,u,a=-1,s=(e=function(t,e){if(Y(t))return!1;var o=typeof t;if("number"==o||"symbol"==o||"boolean"==o||null==t||H(t))return!0;return n.test(t)||!r.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:Y(i=e)?i:I(i)).length;++a<s;){var f=U(e[a]);if(!(u=null!=t&&o(t,f)))break;t=t[f]}return u||!!(s=t?t.length:0)&&B(s)&&function(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||c.test(t))&&t>-1&&t%1==0&&t<e}(f,s)&&(Y(t)||function(t){return function(t){return W(t)&&function(t){return null!=t&&B(t.length)&&!V(t)}(t)}(t)&&b.call(t,"callee")&&(!O.call(t,"callee")||"[object Arguments]"==m.call(t))}(t))}k.prototype.clear=function(){this.__data__=S?S(null):{}},k.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},k.prototype.get=function(t){var e=this.__data__;if(S){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return b.call(e,t)?e[t]:void 0},k.prototype.has=function(t){var e=this.__data__;return S?void 0!==e[t]:b.call(e,t)},k.prototype.set=function(t,e){return this.__data__[t]=S&&void 0===e?"__lodash_hash_undefined__":e,this},C.prototype.clear=function(){this.__data__=[]},C.prototype.delete=function(t){var e=this.__data__,r=F(e,t);return!(r<0)&&(r==e.length-1?e.pop():E.call(e,r,1),!0)},C.prototype.get=function(t){var e=this.__data__,r=F(e,t);return r<0?void 0:e[r][1]},C.prototype.has=function(t){return F(this.__data__,t)>-1},C.prototype.set=function(t,e){var r=this.__data__,n=F(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},T.prototype.clear=function(){this.__data__={hash:new k,map:new(A||C),string:new k}},T.prototype.delete=function(t){return L(this,t).delete(t)},T.prototype.get=function(t){return L(this,t).get(t)},T.prototype.has=function(t){return L(this,t).has(t)},T.prototype.set=function(t,e){return L(this,t).set(t,e),this};var I=N((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(H(t))return D?D.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return o.test(t)&&r.push(""),t.replace(i,(function(t,e,n,o){r.push(n?o.replace(u,"$1"):e||t)})),r}));function U(t){if("string"==typeof t||H(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function N(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u),u};return r.cache=new(N.Cache||T),r}N.Cache=T;var Y=Array.isArray;function V(t){var e=q(t)?m.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function B(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function q(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function W(t){return!!t&&"object"==typeof t}function H(t){return"symbol"==typeof t||W(t)&&"[object Symbol]"==m.call(t)}t.exports=function(t,e){return null!=t&&M(t,e,P)}}).call(this,r(0))},function(t,e){t.exports=function(t){return t?t[0]:void 0}},function(t,e){var r=/^(?:0|[1-9]\d*)$/;function n(t,e){return function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(e,(function(e){return t[e]}))}var o,i,u=Object.prototype,a=u.hasOwnProperty,c=u.toString,s=u.propertyIsEnumerable,f=(o=Object.keys,i=Object,function(t){return o(i(t))});function l(t,e){var r=d(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&y(t)}(t)&&a.call(t,"callee")&&(!s.call(t,"callee")||"[object Arguments]"==c.call(t))}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!a.call(t,i)||o&&("length"==i||p(i,n))||r.push(i);return r}function h(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||u,e!==n)return f(t);var e,r,n,o=[];for(var i in Object(t))a.call(t,i)&&"constructor"!=i&&o.push(i);return o}function p(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||r.test(t))&&t>-1&&t%1==0&&t<e}var d=Array.isArray;function y(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?c.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)}t.exports=function(t){return t?n(t,function(t){return y(t)?l(t):h(t)}(t)):[]}},function(t,e,r){(function(t,r){var n="[object Arguments]",o="[object Function]",i="[object GeneratorFunction]",u="[object Map]",a="[object Set]",c=/\w*$/,s=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,l={};l[n]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object DataView]"]=l["[object Boolean]"]=l["[object Date]"]=l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l[u]=l["[object Number]"]=l["[object Object]"]=l["[object RegExp]"]=l[a]=l["[object String]"]=l["[object Symbol]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l["[object Error]"]=l[o]=l["[object WeakMap]"]=!1;var h="object"==typeof t&&t&&t.Object===Object&&t,p="object"==typeof self&&self&&self.Object===Object&&self,d=h||p||Function("return this")(),y="object"==typeof e&&e&&!e.nodeType&&e,_=y&&"object"==typeof r&&r&&!r.nodeType&&r,v=_&&_.exports===y;function g(t,e){return t.set(e[0],e[1]),t}function b(t,e){return t.add(e),t}function m(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function j(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}function w(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function O(t,e){return function(r){return t(e(r))}}function E(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var A,S=Array.prototype,R=Function.prototype,D=Object.prototype,k=d["__core-js_shared__"],C=(A=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",T=R.toString,F=D.hasOwnProperty,P=D.toString,$=RegExp("^"+T.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=v?d.Buffer:void 0,x=d.Symbol,M=d.Uint8Array,I=O(Object.getPrototypeOf,Object),U=Object.create,N=D.propertyIsEnumerable,Y=S.splice,V=Object.getOwnPropertySymbols,B=L?L.isBuffer:void 0,q=O(Object.keys,Object),W=_t(d,"DataView"),H=_t(d,"Map"),z=_t(d,"Promise"),G=_t(d,"Set"),Q=_t(d,"WeakMap"),J=_t(Object,"create"),K=jt(W),Z=jt(H),X=jt(z),tt=jt(G),et=jt(Q),rt=x?x.prototype:void 0,nt=rt?rt.valueOf:void 0;function ot(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function it(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ut(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function at(t){this.__data__=new it(t)}function ct(t,e){var r=Ot(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Et(t)}(t)&&F.call(t,"callee")&&(!N.call(t,"callee")||P.call(t)==n)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],o=r.length,i=!!o;for(var u in t)!e&&!F.call(t,u)||i&&("length"==u||bt(u,o))||r.push(u);return r}function st(t,e,r){var n=t[e];F.call(t,e)&&wt(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function ft(t,e){for(var r=t.length;r--;)if(wt(t[r][0],e))return r;return-1}function lt(t,e,r,s,f,h,p){var d;if(s&&(d=h?s(t,f,h,p):s(t)),void 0!==d)return d;if(!Rt(t))return t;var y=Ot(t);if(y){if(d=function(t){var e=t.length,r=t.constructor(e);e&&"string"==typeof t[0]&&F.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!e)return function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(t,d)}else{var _=gt(t),v=_==o||_==i;if(At(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if("[object Object]"==_||_==n||v&&!h){if(j(t))return h?t:{};if(d=function(t){return"function"!=typeof t.constructor||mt(t)?{}:(e=I(t),Rt(e)?U(e):{});var e}(v?{}:t),!e)return function(t,e){return dt(t,vt(t),e)}(t,function(t,e){return t&&dt(e,Dt(e),t)}(d,t))}else{if(!l[_])return h?t:{};d=function(t,e,r,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return pt(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return function(t,e){var r=e?pt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?pt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,n);case u:return function(t,e,r){return m(e?r(w(t),!0):w(t),g,new t.constructor)}(t,n,r);case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,c.exec(t));return e.lastIndex=t.lastIndex,e}(t);case a:return function(t,e,r){return m(e?r(E(t),!0):E(t),b,new t.constructor)}(t,n,r);case"[object Symbol]":return i=t,nt?Object(nt.call(i)):{}}var i}(t,_,lt,e)}}p||(p=new at);var O=p.get(t);if(O)return O;if(p.set(t,d),!y)var A=r?function(t){return function(t,e,r){var n=e(t);return Ot(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Dt,vt)}(t):Dt(t);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(A||t,(function(n,o){A&&(n=t[o=n]),st(d,o,lt(n,e,r,s,o,t,p))})),d}function ht(t){return!(!Rt(t)||(e=t,C&&C in e))&&(St(t)||j(t)?$:s).test(jt(t));var e}function pt(t){var e=new t.constructor(t.byteLength);return new M(e).set(new M(t)),e}function dt(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var u=e[o],a=n?n(r[u],t[u],u,r,t):void 0;st(r,u,void 0===a?t[u]:a)}return r}function yt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function _t(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return ht(r)?r:void 0}ot.prototype.clear=function(){this.__data__=J?J(null):{}},ot.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ot.prototype.get=function(t){var e=this.__data__;if(J){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return F.call(e,t)?e[t]:void 0},ot.prototype.has=function(t){var e=this.__data__;return J?void 0!==e[t]:F.call(e,t)},ot.prototype.set=function(t,e){return this.__data__[t]=J&&void 0===e?"__lodash_hash_undefined__":e,this},it.prototype.clear=function(){this.__data__=[]},it.prototype.delete=function(t){var e=this.__data__,r=ft(e,t);return!(r<0)&&(r==e.length-1?e.pop():Y.call(e,r,1),!0)},it.prototype.get=function(t){var e=this.__data__,r=ft(e,t);return r<0?void 0:e[r][1]},it.prototype.has=function(t){return ft(this.__data__,t)>-1},it.prototype.set=function(t,e){var r=this.__data__,n=ft(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},ut.prototype.clear=function(){this.__data__={hash:new ot,map:new(H||it),string:new ot}},ut.prototype.delete=function(t){return yt(this,t).delete(t)},ut.prototype.get=function(t){return yt(this,t).get(t)},ut.prototype.has=function(t){return yt(this,t).has(t)},ut.prototype.set=function(t,e){return yt(this,t).set(t,e),this},at.prototype.clear=function(){this.__data__=new it},at.prototype.delete=function(t){return this.__data__.delete(t)},at.prototype.get=function(t){return this.__data__.get(t)},at.prototype.has=function(t){return this.__data__.has(t)},at.prototype.set=function(t,e){var r=this.__data__;if(r instanceof it){var n=r.__data__;if(!H||n.length<199)return n.push([t,e]),this;r=this.__data__=new ut(n)}return r.set(t,e),this};var vt=V?O(V,Object):function(){return[]},gt=function(t){return P.call(t)};function bt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||f.test(t))&&t>-1&&t%1==0&&t<e}function mt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||D)}function jt(t){if(null!=t){try{return T.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function wt(t,e){return t===e||t!=t&&e!=e}(W&&"[object DataView]"!=gt(new W(new ArrayBuffer(1)))||H&>(new H)!=u||z&&"[object Promise]"!=gt(z.resolve())||G&>(new G)!=a||Q&&"[object WeakMap]"!=gt(new Q))&&(gt=function(t){var e=P.call(t),r="[object Object]"==e?t.constructor:void 0,n=r?jt(r):void 0;if(n)switch(n){case K:return"[object DataView]";case Z:return u;case X:return"[object Promise]";case tt:return a;case et:return"[object WeakMap]"}return e});var Ot=Array.isArray;function Et(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!St(t)}var At=B||function(){return!1};function St(t){var e=Rt(t)?P.call(t):"";return e==o||e==i}function Rt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Dt(t){return Et(t)?ct(t):function(t){if(!mt(t))return q(t);var e=[];for(var r in Object(t))F.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}r.exports=function(t){return lt(t,!0,!0)}}).call(this,r(0),r(2)(t))},function(t,e,r){(function(e){var r,n="[object Map]",o="[object Set]",i=/^\[object .+?Constructor\]$/,u="[\\ud800-\\udfff]",a="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",c="\\ud83c[\\udffb-\\udfff]",s="[^\\ud800-\\udfff]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",h="(?:"+a+"|"+c+")"+"?",p="[\\ufe0e\\ufe0f]?"+h+("(?:\\u200d(?:"+[s,f,l].join("|")+")[\\ufe0e\\ufe0f]?"+h+")*"),d="(?:"+[s+a+"?",a,f,l,u].join("|")+")",y=RegExp(c+"(?="+c+")|"+d+p,"g"),_=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),v="object"==typeof e&&e&&e.Object===Object&&e,g="object"==typeof self&&self&&self.Object===Object&&self,b=v||g||Function("return this")(),m=(r="length",function(t){return null==t?void 0:t[r]});function j(t){return function(t){return _.test(t)}(t)?function(t){var e=y.lastIndex=0;for(;y.test(t);)e++;return e}(t):m(t)}var w,O,E,A=Function.prototype,S=Object.prototype,R=b["__core-js_shared__"],D=(w=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",k=A.toString,C=S.hasOwnProperty,T=S.toString,F=RegExp("^"+k.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=(O=Object.keys,E=Object,function(t){return O(E(t))}),$=H(b,"DataView"),L=H(b,"Map"),x=H(b,"Promise"),M=H(b,"Set"),I=H(b,"WeakMap"),U=G($),N=G(L),Y=G(x),V=G(M),B=G(I);function q(t){return!(!K(t)||function(t){return!!D&&D in t}(t))&&(J(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}(t)?F:i).test(G(t))}function W(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||S,e!==n)return P(t);var e,r,n,o=[];for(var i in Object(t))C.call(t,i)&&"constructor"!=i&&o.push(i);return o}function H(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return q(r)?r:void 0}var z=function(t){return T.call(t)};function G(t){if(null!=t){try{return k.call(t)}catch(e){}try{return t+""}catch(e){}}return""}($&&"[object DataView]"!=z(new $(new ArrayBuffer(1)))||L&&z(new L)!=n||x&&"[object Promise]"!=z(x.resolve())||M&&z(new M)!=o||I&&"[object WeakMap]"!=z(new I))&&(z=function(t){var e=T.call(t),r="[object Object]"==e?t.constructor:void 0,i=r?G(r):void 0;if(i)switch(i){case U:return"[object DataView]";case N:return n;case Y:return"[object Promise]";case V:return o;case B:return"[object WeakMap]"}return e});var Q=Array.isArray;function J(t){var e=K(t)?T.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function K(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=function(t){if(null==t)return 0;if(null!=(e=t)&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!J(e))return function(t){return"string"==typeof t||!Q(t)&&function(t){return!!t&&"object"==typeof t}(t)&&"[object String]"==T.call(t)}(t)?j(t):t.length;var e,r=z(t);return r==n||r==o?t.size:W(t).length}}).call(this,r(0))},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});const n=r(5),o=r(7),i=r(15),u=r(35),a=r(34),c=(r(33),r(32)),s=r(10),f=r(17),l=(r(16),r(31)),h=r(18),p=r(9),d=r(4),y=r(30),_=r(29),v=r(8),g=r(28),b=r(1),m=r(27),j=r(3);function w(t,e={}){return new Promise((r,o)=>{const i=[...O(t,e),...E(t,e),...A(t,e),...S(t,e),...R(t,e),...D(t,e),...k(t,e)];return n(i)?r():o("Too many query structure errors: \n* "+i.join("\n* "))})}function O(t,e){const r=[],n=d(t,"dataset"),i=d(t,"branch"),u=d(t,"commit");return o(n)||g(n)||r.push("'dataset' clause must be string only"),o(i)||g(i)||r.push("'branch' clause must be string only"),o(u)||g(u)||r.push("'commit' clause must be string only"),r}function E(t,e){const r=[],n=d(t,"from",null);if(o(n)&&r.push("'from' clause couldn't be empty"),g(n)||r.push("'from' clause must be string only"),!j.AVAILABLE_FROM_CLAUSE_VALUES.has(n)){const t=[...j.AVAILABLE_FROM_CLAUSE_VALUES];r.push("'from' clause must be one of the list: "+t.join(", "))}return r}function A(t,e){const r=[],n=d(t,"select",null),o=d(t,"from",null),c=d(n,"key"),s=d(n,"value");switch(!0){case j.isSchemaQuery(t):r.push(C(n),function(t,e){if(!u(e)||2!==a(e))return`'select.key' clause for '${t}' queries must have exactly 2 items: 'key', 'value'`}(o,c),$(o,s));break;case j.isEntitiesQuery(t):case j.isConceptsQuery(t):r.push(C(n),L(n,c,s),x(o,c),$(o,s));break;case j.isDatapointsQuery(t):r.push(C(n),function(t,e,r){if(!i(t)||!u(e)||!u(r))return"'select' clause must have next structure: { key: [...], value: [...] }"}(n,c,s),function(t,e){if(a(e)<2)return`'select.key' clause for '${t}' queries must have at least 2 items`}(o,c),function(t,e){const r=(n=e,h(n,(t,e,r)=>b(r,t,e+1)));var n;if(a(r)>0)return`'select.key' clause for '${t}' queries contains duplicates: ${m(r).join(",")}`}(o,c),function(t,e){if(a(e)<1)return`'select.value' clause for '${t}' queries must have at least 1 item`}(o,s));break;default:r.push(C(n))}return v(r)}function S(t,e){const r=[],i=d(t,"join",null),u=d(t,"where",null),a=function t(e){const r=[];for(const o in e)p(o,"$")&&r.push({name:o,isLeaf:!1}),"object"!=typeof(n=e[o])&&"function"!=typeof n||null===n?p(e[o],"$")&&r.push({name:e[o],isLeaf:!0}):r.push(...t(e[o]));var n;return r}(u);return r.push(function(t,e){if(!o(t)&&!T(t))return`'${e}where' clause must be object only`}(u,P(e)),function(t,e,r){const o=h(e,e=>!function(t,e){return function(t){return!t.isLeaf&&j.AVAILABLE_QUERY_OPERATORS.has(t.name)}(e)||function(t,e){return e.isLeaf&&p(e.name,"$")&&y(t,e.name)}(t,e)}(t,e)).map(t=>t.name),i=[...j.AVAILABLE_QUERY_OPERATORS.values(),...s(t)];if(!n(o))return`'${r}where' clause has unknown operator(s) '${o.join(", ")}', replace it with allowed operators: ${i.join(", ")}`}(i,a,P(e))),v(r)}function R(t,e){const r=[],n=d(t,"language",null);switch(!0){case j.isSchemaQuery(t):r.push(function(t){if(y(t,"language"))return"'language' clause for '*.schema' queries shouldn't be present in query"}(t));break;case j.isEntitiesQuery(t):case j.isConceptsQuery(t):case j.isDatapointsQuery(t):default:r.push(function(t){if(!o(t)&&!g(t))return"'language' clause must be string only"}(n))}return v(r)}function D(t,e){const r=[],n=d(t,"join",null);switch(!0){case j.isSchemaQuery(t):case j.isConceptsQuery(t):r.push(function(t){if(y(t,"join"))return`'join' clause for '${t.from}' queries shouldn't be present in query`}(t));break;case j.isEntitiesQuery(t):case j.isDatapointsQuery(t):default:r.push(function(t){if(!o(t)&&!T(t))return"'join' clause must be object only"}(n),...f(n,(t,e)=>function(t,e){if(!o(t.key)&&!g(t.key))return`'${e}key' clause must be string only`}(t,P({joinID:e}))))}return v(r)}function k(t,e){const r=[],n=d(t,"order_by",null);return r.push(function(t){if(!(o(t)||g(t)||(e=t,u(e)&&_(e,g))||function(t,e){return u(t)&&_(t,e)}(t,F)))return"'order_by' clause must be string or array of strings || objects only";var e}(n)),v(r)}function C(t){if(o(t))return"'select' clause couldn't be empty"}function T(t){return i(t)&&!u(t)}function F(t){return g(t)||T(t)&&1===a(t)&&j.AVAILABLE_ORDER_BY_CLAUSE_VALUES.has(l(c(t)))}function P(t){return d(t,"joinID",!1)?`join.${t.joinID}.`:""}function $(t,e){if(!u(e)&&!o(e))return`'select.value' clause for '${t}' queries should be array of strings or empty`}function L(t,e,r){if(!i(t)||!u(e))return"'select' clause must have next structure: { key: [...], value: [...] }"}function x(t,e){if(!u(e)||1!==a(e))return`'select.key' clause for '${t}' queries must have only 1 item`}e.validateQueryStructure=w,e.getVersion=function(){return t.env.npm_package_version}}).call(this,r(19))},function(t,e,r){(function(e){var r=/^\s+/,n="[\\ud800-\\udfff]",o="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",i="\\ud83c[\\udffb-\\udfff]",u="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+o+"|"+i+")"+"?",f="[\\ufe0e\\ufe0f]?"+s+("(?:\\u200d(?:"+[u,a,c].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*"),l="(?:"+[u+o+"?",o,a,c,n].join("|")+")",h=RegExp(i+"(?="+i+")|"+l+f,"g"),p=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),d="object"==typeof e&&e&&e.Object===Object&&e,y="object"==typeof self&&self&&self.Object===Object&&self,_=d||y||Function("return this")();function v(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,g,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}function g(t){return t!=t}function b(t){return function(t){return p.test(t)}(t)?function(t){return t.match(h)||[]}(t):function(t){return t.split("")}(t)}var m=Object.prototype.toString,j=_.Symbol,w=j?j.prototype:void 0,O=w?w.toString:void 0;function E(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==m.call(t)}(t))return O?O.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function A(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}(t,e,r)}t.exports=function(t,e,n){var o;if((t=null==(o=t)?"":E(o))&&(n||void 0===e))return t.replace(r,"");if(!t||!(e=E(e)))return t;var i=b(t);return A(i,function(t,e){for(var r=-1,n=t.length;++r<n&&v(e,t[r],0)>-1;);return r}(i,b(e))).join("")}}).call(this,r(0))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(5),o=r(18),i=r(17),u=r(4),a=r(8),c=r(1),s=r(9),f=r(7),l=r(37),h=(r(16),r(3));function p(t){return"object"!=typeof t&&"function"!=typeof t||null===t}function d(t,e){const r=[],o=u(t,"from",null),i=u(t,"select",null),c=u(i,"key"),s=u(i,"value"),f=[],l=[],{conceptsLookup:p}=e;switch(!0){case h.isDatapointsQuery(t):const e=[h.CONCEPT_TYPE_ENTITY_SET,h.CONCEPT_TYPE_ENTITY_DOMAIN,h.CONCEPT_TYPE_TIME];f.push(...v(e,p)),l.push(...p.keys());break;case h.isEntitiesQuery(t):const r=[h.CONCEPT_TYPE_ENTITY_SET,h.CONCEPT_TYPE_ENTITY_DOMAIN];f.push(...v(r,p)),l.push(...p.keys());break;case h.isConceptsQuery(t):f.push(h.RESERVED_CONCEPT),l.push(...p.keys(),h.RESERVED_CONCEPT,h.RESERVED_CONCEPT_TYPE,h.RESERVED_DOMAIN,h.RESERVED_UNIT,h.RESERVED_DRILL_UP);break;default:f.push(h.RESERVED_KEY,h.RESERVED_VALUE),l.push(h.RESERVED_KEY,h.RESERVED_VALUE)}return r.push(function(t,e,r){const o=_(e,r);if(!n(o))return`'select.key' clause for '${t}' query contains unavailable item(s): ${o.join(", ")}`}(o,c,f),function(t,e,r){if(!0!==t.debug)return;const o=u(t,"from",null),i=_(e,r);if(!n(e)&&!n(i))return`'select.value' clause for '${o}' query contains unavailable item(s): ${i.join(", ")}`}(t,s,l)),a(r)}function y(t,e){if(!0!==t.debug)return[];const r=[],o=u(t,"where",null),i=(u(t,"from",null),u(t,"select",null)),{conceptsLookup:c}=(u(i,"key"),u(i,"value"),function(t){const e={};(function t(e,r,o){for(const i in e){const u=!!f(o)&&!s(i,"$")&&isNaN(+i),[a,...c]=i.split(".");u&&(f(r[a])&&(r[l(a,"is--")]=[]),n(c)||r[a].push(l(c.join("."),"is--"))),p(e[i])||t(e[i],r,u?a:o)}})(t,e)}(o),e);switch(!0){case h.isDatapointsQuery(t):[].push(h.CONCEPT_TYPE_ENTITY_SET,h.CONCEPT_TYPE_ENTITY_DOMAIN,h.CONCEPT_TYPE_TIME),r.push()}return a(r)}function _(t,e){return o(t,t=>!c(e,t))}function v(t,e){const r=o([...e.values()],({concept_type:e})=>c(t,e));return i(r,"concept")}e.validateQueryDefinitions=function(t,e={}){return new Promise((r,o)=>{const i=[...d(t,e),...y(t,e)];return n(i)?r():o(`Too many query definition errors [repo: ${e.basePath}]: \n* ${i.join("\n* ")}`)})}},function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(3)),n(r(38)),n(r(36)),n(r(26)),n(r(25)),n(r(14))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InClauseUnderConjunction=void 0;const n=r(11),o=r(10),i=r(4),u=r(5),a=r(9),c=r(1),s=r(8),f=r(6);e.InClauseUnderConjunction=class{constructor(t,e,r){this.parent=t,this.options=r,this.flow={},this.fileReader=r.fileReader,this.datasetPath=r.basePath,this.query=e,this.datapackage=r.datapackage,this.conceptsLookup=r.conceptsLookup}isMatched(){return this.flow.joinObject=i(this.query,"join"),"datapoints"===this.query.from&&this.flow.joinObject}async getRecommendedFilesSet(){const{debug:t,error:e,warning:r}=this.options.diagnostic.prepareDiagnosticFor("getRecommendedFilesSet");if(this.isMatched()){let r;t("plugin matched");try{if(this.flow.processableClauses=await this.collectProcessableClauses(),!this.flow.processableClauses)return[];this.collectEntityFilesNames();const t=await this.collectEntities();this.fillEntityValuesHash(t),this.getFilesGroupsQueryClause(),r=this.getOptimalFilesGroup()}catch(n){return e("wrong data processing",n),[]}return t("recommended files found",r),r}{const t='Plugin "InClauseUnderConjunction" is not matched!';throw r(t),new f.DdfCsvError(t,"InClauseUnderConjunction plugin")}}collectProcessableClauses(){const t=o(this.flow.joinObject).filter(t=>{var e;return["entity_domain","entity_set"].includes(null===(e=this.options.conceptsLookup.get(t.slice(1)))||void 0===e?void 0:e.concept_type)});return t.length?Promise.all(t.map(t=>{const e=this.flow.joinObject[t].key,r=i(this.flow.joinObject,t+".where",{});return this.parent.queryData({select:{key:[e]},where:r,from:this.options.conceptsLookup.has(e)?"entities":"concepts"},Object.assign({joinID:t},this.options)).then(t=>({key:e,entities:new Set(t.map(t=>t[e]))}))})):Promise.resolve(!1)}collectEntityFilesNames(){this.flow.entityFilesNames=new Set,this.flow.entityResources=new Set,this.flow.fileNameToPrimaryKeyHash=new Map;for(const t of this.datapackage.ddfSchema.entities)for(const e of this.flow.processableClauses){const r=e.key;if(n(t.primaryKey)===r)for(const e of t.resources){const t=this.options.resourcesLookup.get(e);this.flow.entityResources.add(t),this.flow.entityFilesNames.add(t.path),this.flow.fileNameToPrimaryKeyHash.set(t.path,r)}}return this}collectEntities(){const t=this,e=[...t.flow.entityResources].map(e=>(e.data||(e.data=t.parent.loadFile(e.path,t.options))).then(t=>({result:t,file:e.path})));return Promise.all(e)}fillEntityValuesHash(t){const e=t=>s(o(t).filter(e=>a(e,"is--")&&!0===t[e]).map(t=>t.replace(/^is--/,"")));this.flow.entityValueToFileHash=new Map,this.flow.entityValueToDomainHash=new Map;for(const r of t)for(const t of r.result.data){const n=this.flow.fileNameToPrimaryKeyHash.get(r.file),o=[...e(t)];u(o)&&o.push(n);const i=t[n]||t[o[0]];this.flow.entityValueToDomainHash.set(i,o),this.flow.entityValueToFileHash.set(i,r.file)}return this}getFilesGroupsQueryClause(){var t;const e=new Map;for(const r of this.flow.processableClauses){const n={datapoints:new Set};for(const e of r.entities){const r=this.flow.entityValueToDomainHash.get(e);for(const o of r)for(const r of this.datapackage.ddfSchema.datapoints)for(const i of r.resources)if(c(r.primaryKey,o)){const r=this.options.resourcesLookup.get(i),u=null===(t=r.constraints)||void 0===t?void 0:t[o];u?u.includes(e)&&n.datapoints.add(r.path):n.datapoints.add(r.path)}}e.set(r.key,n)}return this.flow.filesGroupsByClause=e,this}getOptimalFilesGroup(){const t=this.flow.entityFilesNames,e=new Set;for(const o of this.datapackage.ddfSchema.concepts)for(const t of o.resources)e.add(this.options.resourcesLookup.get(t).path);const r=this.flow.filesGroupsByClause.keys();let n=Array.from(this.flow.filesGroupsByClause.get(r.next().value).datapoints);for(const o of r)n=this.intersectArray(n,Array.from(this.flow.filesGroupsByClause.get(o).datapoints));return[...Array.from(e),...Array.from(t)].concat(n)}intersectArray(t,e){return t.filter(t=>e.includes(t))}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAppropriatePlugin=function(t,e,r){const i=[new n.InClauseUnderConjunction(t,e,r)];return o(i.filter(t=>t.isMatched()))};const n=r(40),o=r(11)},function(t,e,r){"use strict";t.exports=t=>{if("string"!=typeof t)throw new TypeError("Expected a string, got "+typeof t);return 65279===t.charCodeAt(0)?t.slice(1):t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ddfCsvReader=function(t){const e=[{concept:"concept",concept_type:"string",domain:null},{concept:"concept_type",concept_type:"string",domain:null}],r=new Map([["$and",(t,e)=>e.every(e=>w(t,e))],["$or",(t,e)=>e.some(e=>w(t,e))],["$not",(t,e)=>!w(t,e)],["$nor",(t,e)=>!e.some(e=>w(t,e))],["$eq",(t,e)=>t==e],["$ne",(t,e)=>t!=e],["$gt",(t,e)=>l(t)&&t>e],["$gte",(t,e)=>l(t)&&t>=e],["$lt",(t,e)=>l(t)&&t<e],["$lte",(t,e)=>l(t)&&t<=e],["$in",(t,e)=>e.has(t)],["$nin",(t,e)=>!e.has(t)]]),h=new Map,p=new Map;let d,y,_=[],v=!1;function g(t){const e=(0,c.getFilePath)(t.basePath),{debug:r,error:n}=t.diagnostic.prepareDiagnosticFor("loadDataPackage");return new Promise((o,u)=>{if(d)return o(d);t.fileReader.readText(e,(t,c)=>{if(t)return n("file reading",t),u(new a.DdfCsvError(a.FILE_READING_ERROR,t,e));try{d=JSON.parse(i(c)),_=[],function(t){if(p.size>0)return p;t.resources.forEach(t=>{Array.isArray(t.schema.primaryKey)||(t.schema.primaryKey=[t.schema.primaryKey]);const e=t.schema.fields.reduce((t,e)=>{var r;return(null===(r=e.constraints)||void 0===r?void 0:r.enum)&&(v||(v=!0),t[e.name]=e.constraints.enum),t},{});t.constraints=e,t.translations={},p.set(t.name,t)})}(d),function(t){if(h.size>0)return h;for(const e in t.ddfSchema)t.ddfSchema[e].map(t=>{const e=C(t.primaryKey),r=t.resources.map(t=>p.get(t));h.has(e)?h.get(e).set(t.value,r):h.set(e,new Map([[t.value,r]]))})}(d)}catch(s){return n("json file parsing",s),u(new a.DdfCsvError(a.JSON_PARSING_ERROR,s.message,e))}r("datapackage content is ready"),o(d)})})}async function b(t,r){const{error:n}=r.diagnostic.prepareDiagnosticFor("loadConcepts");m(e,r);const o={select:{key:["concept"],value:["concept_type","domain"]},from:"concepts"};let i;try{!function(t,r){const n=t.filter(t=>"entity_set"===t.concept_type).map(t=>({concept:"is--"+t.concept,concept_type:"boolean",domain:null}));m(t=t.concat(n).concat(e),r)}(await j(o,r),r),i=await function({conceptsLookup:t}){const e=new Map([["boolean",t=>"true"===t||"TRUE"===t],["measure",t=>parseFloat(t)]]),r=[...S(["concept"])].map(r=>r.data.then(r=>{const n=Object.keys(r.data[0]),o=new Map;return n.forEach(r=>{const n=t.get(r).concept_type,i=e.get(n);i&&o.set(r,i)}),r.data.forEach(t=>{for(const[e,r]of o)t[e]=r(t[e])})}));return Promise.all(r)}(r)}catch(u){throw n("concepts processing",u),u}return i}function m(t,e){e.conceptsLookup.clear(),t.forEach(t=>e.conceptsLookup.set(t.concept,t))}function j(t,e){const r=Object.assign({},e),{debug:i}=r.diagnostic.prepareDiagnosticFor("queryData"),{select:{key:u=[],value:a=[]},from:c="",where:s={},join:l={},order_by:h=[],language:p}=t,d={key:u,value:a};i("start all data loading",t);const y=new Set(d.key.concat(d.value)),_=E(s).filter(t=>"entities"===c||!y.has(t)),v=function(t,e,r,o,i){const{debug:u}=o.diagnostic.prepareDiagnosticFor("loadResource"),a=S(t,e);return u("resources list by query",{queryParam:i,resources:[...a]}),Promise.all([...a].map(t=>function(t,e,r){const{warning:o}=r.diagnostic.prepareDiagnosticFor("loadResource"),i=[];void 0===t.data&&(t.data=T(t.path,r));i.push(t.data);const u=void 0!==e&&n(function(t){if(!t.datapackage.translations)return[];return t.datapackage.translations.map(t=>t.id)}(r),e),a=void 0!==t.translations[e];if(u){if(!a){const n=`lang/${e}/${t.path}`;t.translations[e]=T(n,r).catch(t=>(o("translation file "+n,t),Promise.resolve({})))}i.push(t.translations[e])}return Promise.all(i).then(e=>{const r=e.map(t=>t.data||[]);return{data:D(t.schema.primaryKey,"translation",...r),resource:t}})}(t,r,o)))}(d.key,[...d.value,..._],p,r,t),g=function(t,e,r){return Promise.all(Object.keys(t).map(e=>function(t,e,r,n){return"time"===n.conceptsLookup.get(e.key).concept_type?Promise.resolve({[t]:e.where}):j({select:{key:[e.key]},where:e.where,from:n.conceptsLookup.has(e.key)?"entities":"concepts"},Object.assign({joinID:t},n)).then(r=>({[t]:{[e.key]:{$in:new Set(r.map(t=>t[e.key]))}}}))}(e,t[e],0,r))).then(t=>t.reduce(O,{}))}(l,0,r),b=function(t,e,r){const n=A(["entity_set"],t,r).map(t=>j({select:{key:[t.domain],value:["is--"+t.concept]},from:"entities"},Object.assign({},r)).then(e=>({[t.concept]:{$in:new Set(e.filter(e=>e["is--"+t.concept]).map(e=>e[t.domain]))}})));return Promise.all(n).then(t=>t.reduce((t,e)=>Object.assign(t,e),{}))}(d.key,0,r);return Promise.all([v,b,g]).then(([e,u,a])=>{i("finish all data loading",t);const c=function(...t){return t.reduce((t,e)=>(o(e)||(function(t){const e=Object.keys(t);for(const r of e)"$or"==r&&(t[r]=t[r].reduce((t,e)=>{const r=Object.keys(e);if(r.length>1)for(const n of r)t.push({[n]:e[n]});else t.push(e);return t},[]))}(e),t.$and.push(e)),t),{$and:[]})}(u,function t(e,r){const o={};for(const i in e){const u=e[i];n(["$and","$or","$nor"],i)?o[i]=u.map(e=>t(e,r)):"$in"===i||"$nin"===i?o[i]=new Set(u):void 0!==r[u]?Object.assign(o,r[u]):o[i]="object"==typeof u?t(u,r):u}return o}(s,a));i("dataTables processing",t);const l=e.map(t=>function(t,e,r,n){const o=t.resource.schema.primaryKey,i=new Set([...o,...e.value,...r]),u=function(t,e,r){const n=new Set(e),o=["entity_set","entity_domain"],i=A(o,t,r);if(0===i.length)return new Map;const u=A(o,null,r);return i.map(t=>u.filter(e=>"entity_set"===t.concept_type?n.has(e.concept)&&e.concept!==t.concept&&(e.domain===t.domain||e.concept===t.domain):n.has(e.concept)&&e.concept!==t.concept&&e.domain===t.concept).reduce((e,r)=>e.set(r.concept,t.concept),new Map)).reduce((t,e)=>new Map([...t,...e]),new Map)}(e.key,o,n);return t.data.map(t=>R(t,i)).map(t=>function(t,e){const r={};for(const n of Object.keys(t))r[e.get(n)||n]=t[n];return r}(t,u))}(t,d,_,r));i("queryResult processing",t);const p=D(d.key,"overwrite",...l).filter(t=>w(t,c)).map(t=>function(t,e){for(const r of e)void 0===t[r]&&(t[r]=null);return t}(t,y)).map(t=>R(t,y));return i("result ordering",t),function(t,e=[]){if(0===e.length)return;const r=e.map(t=>{if("string"==typeof t)return{concept:t,direction:1};{const e=Object.keys(t)[0];return{concept:e,direction:"asc"===t[e]?1:-1}}}),n=r.length;t.sort((t,e)=>{for(let o=0;o<n;o++){const n=r[o];if(t[n.concept]<e[n.concept])return-1*n.direction;if(t[n.concept]>e[n.concept])return 1*n.direction}return 0})}(p,h),i("final result is ready",t),function(t,e){const r=e.conceptsLookup,n=Object.keys(t[0]||{});return n.map(t=>r.get(t)||{}).filter(t=>t.concept_type=="time").forEach(({concept:r})=>{const n=function(t,e){const{error:r}=e.diagnostic.prepareDiagnosticFor("queryData"),n={year:(0,f.utcParse)("%Y"),month:(0,f.utcParse)("%Y-%m"),day:(0,f.utcParse)("%Y%m%d"),hour:(0,f.utcParse)("%Y%m%dt%H"),minute:(0,f.utcParse)("%Y%m%dt%H%M"),second:(0,f.utcParse)("%Y%m%dt%H%M%S"),week:(0,f.utcParse)("%Yw%V"),quarter:(0,f.utcParse)("%Yq%q")};if("time"==t)return function(t){for(const e in n){const r=n[e](t);if(r)return r}return r("Could not parse time string: "+t),null};if(!n[t])return r("No time parser found for time concept: "+t),t=>t;return n[t]}(r,e);t.forEach(t=>{t[r]=n(t[r])})}),t}(p,r)})}function w(t,e){return Object.keys(e).every(n=>{const o=r.get(n);return o?o(t,e[n]):"object"!=typeof e[n]?r.get("$eq")(t[n],e[n]):w(t[n],e[n])})}function O(t,e){return Object.assign(t,e)}function E(t){const e=[];for(const r in t)n(["$and","$or","$not","$nor"],r)?t[r].map(E).forEach(t=>e.push(...t)):e.push(r);return[...new Set(e)]}function A(t,e,r){const o=e||Array.from(r.conceptsLookup.keys()),i=[];for(const u of o){const e=r.conceptsLookup.get(u);n(t,e.concept_type)&&i.push(e)}return i}function S(t,e){if(!e||0===e.length||t[0]===e)return new Set([...h.get(C(t)).values()].reduce((t,e)=>t.concat(e)));if(Array.isArray(e))return e.map(e=>S(t,e)).reduce((t,e)=>new Set([...t,...e]),new Set);let r=h.get(C(t)).get(e);return r&&(r=r.filter(t=>o(_)||n(_,t.path))),new Set(r)}function R(t,e){const r={};for(const n of Object.keys(t))e.has(n)&&(r[n]=t[n]);return r}function D(t,e,...r){if(1===r.length)return r[0];const n=t.slice(0).sort();return[...r.reduce((t,r)=>(r.forEach(r=>{const o=n.map(t=>r[t]).join(",");if(t.has(o)){!function(t,e,r){switch(r){case"overwrite":Object.assign(t,e);break;case"translation":for(const r in e)""!==e[r]&&(t[r]=e[r]);break;case"overwriteWithError":for(const r in e)if(void 0!==t[r]&&t[r]!==e[r]){const n=JSON.stringify(e),o=JSON.stringify(t),i=`JOIN Error: two resources have different data for "${r}": ${n},${o}`;k(new a.DdfCsvError(a.DDF_ERROR,i))}else t[r]=e[r]}}(t.get(o),r,e)}else t.set(o,Object.assign({},r))}),t),new Map).values()]}function k(e){throw(t||console).error(e.message),e}function C(t,e=!1){const r=t.slice(0).sort();return e?r.map(t=>e[t]).join(","):r.join(",")}function T(t,e){const{debug:r,error:o}=e.diagnostic.prepareDiagnosticFor("loadFile"),u=(0,c.getFilePath)(e.basePath,t);return r(`start reading "${t}"`),new Promise((c,f)=>{e.fileReader.readText(u,(l,h)=>{if(l)return o(`fail "${t}" reading`,l),f(new a.DdfCsvError(a.FILE_READING_ERROR,l,u));s.parse(i(h),{header:!0,skipEmptyLines:!0,dynamicTyping:t=>{const r=e.conceptsLookup.get(t)||{};return!n(["time","string","entity_domain","entity_set"],r.concept_type)},transform:t=>""===t?null:t,complete:e=>{r(`finish reading "${t}"`),c(e)},error:e=>{o(`fail "${t}" parsing`,e),f(new a.DdfCsvError(a.CSV_PARSING_ERROR,e,t))}})})})}return{query:async function(t,e){const r=Object.assign({},e),{warning:n,error:o}=r.diagnostic.prepareDiagnosticFor("query");let i;if(function(t,e){return"datapoints"==t.from&&0==t.select.value.length}(t))return Promise.resolve([]);try{if(await(0,c.validateQueryStructure)(t,r),r.datapackage=await(y||(y=g(r))),r.resourcesLookup=p,await b(0,r),await(0,c.validateQueryDefinitions)(t,r),(0,c.isSchemaQuery)(t))i=await function(t,e){const{debug:r,error:n}=e.diagnostic.prepareDiagnosticFor("query"),o=t=>(r("get schema for collection "+t),e.datapackage.ddfSchema[t].map(({primaryKey:t,value:e})=>({key:t,value:e}))),i=t.from.split(".")[0];if(e.datapackage.ddfSchema[i])return o(i);if("*"===i)return Object.keys(e.datapackage.ddfSchema).map(o).reduce((t,e)=>t.concat(e));{const t=`No valid collection (${i}) for schema query`;n(t),k(new a.DdfCsvError(a.DDF_ERROR,t))}}(t,r);else{const e=v&&(0,u.getAppropriatePlugin)(this,t,r);if(_=[],e){const r=await e.getRecommendedFilesSet();_=r,t.optimalFilesSet=[].concat(r,t.optimalFilesSet),n("get custom optimal files list by a plugin",_)}i=await j(t,r)}}catch(s){throw o("general query error",s),s}return i},queryData:j,loadFile:T,getDatasetInfo:function(t){return y||g(t)}}};const n=r(1),o=r(5),i=r(42),u=r(41),a=r(6),c=r(39),s=r(24),f=r(21),l=t=>!("number"!=typeof t&&!t)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prepareDDFCsvReaderObject=function(t){return function(e,r){return{init(n){this._basePath=(0,c.githubPathAdapter)(n.path||""),this._lastModified=n._lastModified,this.fileReader=e||t,this.logger=r,this.resultTransformer=n.resultTransformer,this.readerOptions={basePath:this._basePath,fileReader:this.fileReader,logger:this.logger},this.reader=(0,o.ddfCsvReader)(this.logger)},async getDatasetInfo(){const t=(0,u.createDiagnosticManagerOn)(s,"4.5.3").forRequest("").withSeverityLevel(a.Level.OFF),e=Object.assign({},this.readerOptions,{diagnostic:t});return this.reader.getDatasetInfo(e).then(t=>{const e=Object.assign({},t);return delete e.ddfSchema,delete e.resources,e})},async checkFile(t){return new Promise((e,r)=>e({status:this.fileReader.checkFile(t),url:t}))},async getFile(t,e,r){return new Promise((n,o)=>{this.fileReader.readText(t,(t,r)=>{if(t)return o(t);try{return n(e?JSON.parse(r):r)}catch(i){return o(i)}},r)})},async checkIfAssetExists(t,e=""){if(n(e)&&n(this._basePath))throw new i.DdfCsvError("Neither initial 'path' nor 'repositoryPath' as a second param were found.","Happens in 'checkIfAssetExists' function",t);const r=`${e||this._basePath}/assets/${t}`;return await this.checkFile(r)},async getAsset(t,e=""){if(n(e)&&n(this._basePath))throw new i.DdfCsvError("Neither initial 'path' nor 'repositoryPath' as a second param were found.","Happens in 'getAsset' function",t);const r=`${e||this._basePath}/${t}`,o=".json"===r.slice(-".json".length);return await this.getFile(r,o)},async read(t,e,o){const c=o?(0,u.createDiagnosticManagerOn)(s,"4.5.3").basedOn(o):(0,u.createDiagnosticManagerOn)(s,"4.5.3").forRequest("").withSeverityLevel(a.Level.OFF),{debug:f,error:l,fatal:h}=c.prepareDiagnosticFor("read");let p;f("start reading",t);try{if(n(t.repositoryPath)&&n(this._basePath)){const e="Neither initial 'path' nor 'repositoryPath' in query were found.",r=new i.DdfCsvError(e,JSON.stringify(t));throw l(e,r),r}p=await this.reader.query(t,{basePath:t.repositoryPath||this._basePath,fileReader:this.fileReader,logger:this.logger,conceptsLookup:new Map,diagnostic:c}),p=e?this._prettifyData(p,e):p,this.resultTransformer&&(p=this.resultTransformer(p)),this.logger&&this.logger.log&&(r.log(JSON.stringify(t),p.length),r.log(p))}catch(d){throw h("global data reading error",d),d}return p},_prettifyData:(t,e)=>t.map(t=>(Object.keys(t).forEach(r=>{e[r]&&(t[r]=e[r](t[r]))}),t))}}};const n=r(5),o=r(43),i=r(6),u=r(13),a=r(13),c=r(22),s="@vizabi/reader-ddfcsv"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.versionInfo=e.getDDFCsvReaderObject=e.DdfCsvError=e.FrontendFileReader=void 0;const n=r(20);var o=r(20);Object.defineProperty(e,"FrontendFileReader",{enumerable:!0,get:function(){return o.FrontendFileReader}});var i=r(6);Object.defineProperty(e,"DdfCsvError",{enumerable:!0,get:function(){return i.DdfCsvError}});const u=r(44);e.getDDFCsvReaderObject=(0,u.prepareDDFCsvReaderObject)(new n.FrontendFileReader);e.versionInfo={version:"4.5.3",build:"1758124261865",package:{name:"@vizabi/reader-ddfcsv",description:"Vizabi DDFcsv reader"}},e.version="4.5.3"},function(t,e,r){t.exports=r(45)}])}));
|