UNPKG

346 kBJavaScriptView Raw
1!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=123)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n(21))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(0),o=n(74),i=n(6),s=n(54),a=n(77),c=n(124),l=o("wks"),u=r.Symbol,p=c?u:u&&u.withoutSetter||s;t.exports=function(t){return i(l,t)||(a&&i(u,t)?l[t]=u[t]:l[t]=p("Symbol."+t)),l[t]}},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(19),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(0),o=n(39).f,i=n(9),s=n(13),a=n(52),c=n(84),l=n(86);t.exports=function(t,e){var n,u,p,d,h,f=t.target,_=t.global,m=t.stat;if(n=_?r:m?r[f]||a(f,{}):(r[f]||{}).prototype)for(u in e){if(d=e[u],p=t.noTargetGet?(h=o(n,u))&&h.value:n[u],!l(_?u:f+(m?".":"#")+u,t.forced)&&void 0!==p){if(typeof d==typeof p)continue;c(d,p)}(t.sham||p&&p.sham)&&i(d,"sham",!0),s(n,u,d,t)}}},function(t,e,n){var r=n(1);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(8),o=n(10),i=n(22);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(8),o=n(76),i=n(3),s=n(37),a=Object.defineProperty;e.f=r?a:function(t,e,n){if(i(t),e=s(e,!0),i(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},,function(t,e,n){var r=n(108),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e,n){var r=n(0),o=n(9),i=n(6),s=n(52),a=n(59),c=n(18),l=c.get,u=c.enforce,p=String(String).split("String");(t.exports=function(t,e,n,a){var c=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,d=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),u(n).source=p.join("string"==typeof e?e:"")),t!==r?(c?!d&&t[e]&&(l=!0):delete t[e],l?t[e]=n:o(t,e,n)):l?t[e]=n:s(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||a(this)}))},function(t,e,n){var r=n(17);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";var r=n(36),o=n(73),i=n(29),s=n(18),a=n(82),c=s.set,l=s.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,e){c(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r,o,i,s=n(127),a=n(0),c=n(5),l=n(9),u=n(6),p=n(58),d=n(56),h=a.WeakMap;if(s){var f=new h,_=f.get,m=f.has,g=f.set;r=function(t,e){return g.call(f,t,e),e},o=function(t){return _.call(f,t)||{}},i=function(t){return m.call(f,t)}}else{var v=p("state");d[v]=!0,r=function(t,e){return l(t,v,e),e},o=function(t){return u(t,v)?t[v]:{}},i=function(t){return u(t,v)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(26);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(126),o=n(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){var r=n(10).f,o=n(6),i=n(2)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(131),i=n(15),s=n(9),a=n(2),c=a("iterator"),l=a("toStringTag"),u=i.values;for(var p in o){var d=r[p],h=d&&d.prototype;if(h){if(h[c]!==u)try{s(h,c,u)}catch(t){h[c]=u}if(h[l]||s(h,l,p),o[p])for(var f in i)if(h[f]!==i[f])try{s(h,f,i[f])}catch(t){h[f]=i[f]}}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(193),o=n(196);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t,e){t.exports=!1},function(t,e){t.exports={}},function(t,e,n){var r=n(3),o=n(130);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var r=n(42),o=n(29),i=n(2)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(69),o=n(154),i=n(155),s="[object Null]",a="[object Undefined]",c=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?a:s:c&&c in Object(t)?o(t):i(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){(function(e){n(15),n(89),n(25);const r=n(132).default,o=n(133).default;function i(t){return t&&"object"==typeof t&&!Array.isArray(t)}function s(t,...e){if(!e.length)return t;const n=e.shift();if(i(t)&&i(n))for(const e in n)i(n[e])?(t[e]||Object.assign(t,{[e]:{}}),s(t[e],n[e])):Object.assign(t,{[e]:n[e]});return s(t,...e)}t.exports.get_types=function(){return Object.keys(t.exports.get_config().types)},t.exports.get_type_config=function(e){const n={};if(t.exports.get_config().types[e]&&Object.assign(n,t.exports.get_config().types[e]),n.type){const e=t.exports.get_type_config(n.type);return Object.assign(e,n),e}return n},e.__PERSPECTIVE_CONFIG__=void 0,t.exports.override_config=function(t){e.__PERSPECTIVE_CONFIG__&&console.warn("Config already initialized!"),e.__PERSPECTIVE_CONFIG__=s(r,t)},t.exports.get_config=function(){return e.__PERSPECTIVE_CONFIG__||(e.__PERSPECTIVE_CONFIG__=s(r,"undefined"==typeof window?o():{types:{float:{filter_operator:"==",aggregate:"sum",format:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}},string:{filter_operator:"==",aggregate:"count"},integer:{filter_operator:"==",aggregate:"sum",format:{}},boolean:{filter_operator:"==",aggregate:"count"},datetime:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},null_value:-1},date:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric"},null_value:-1}}}||{})),e.__PERSPECTIVE_CONFIG__}}).call(this,n(21))},function(t,e,n){var r=n(51),o=n(17);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r,o=n(3),i=n(78),s=n(57),a=n(56),c=n(81),l=n(53),u=n(58),p=u("IE_PROTO"),d=function(){},h=function(t){return"<script>"+t+"<\/script>"},f=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;f=r?function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=l("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F);for(var n=s.length;n--;)delete f.prototype[s[n]];return f()};a[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d.prototype=o(t),n=new d,d.prototype=null,n[p]=t):n=f(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(8),o=n(83),i=n(22),s=n(36),a=n(37),c=n(6),l=n(76),u=Object.getOwnPropertyDescriptor;e.f=r?u:function(t,e){if(t=s(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(c(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(6),o=n(14),i=n(58),s=n(129),a=i("IE_PROTO"),c=Object.prototype;t.exports=s?Object.getPrototypeOf:function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,n){"use strict";var r,o,i,s,a=n(7),c=n(28),l=n(0),u=n(23),p=n(137),d=n(13),h=n(61),f=n(24),_=n(95),m=n(5),g=n(26),v=n(31),b=n(16),y=n(59),w=n(138),x=n(97),E=n(62),S=n(98).set,O=n(140),T=n(141),A=n(142),N=n(101),C=n(143),k=n(18),L=n(86),j=n(2),D=n(144),I=j("species"),P="Promise",M=k.get,R=k.set,z=k.getterFor(P),H=p,F=l.TypeError,q=l.document,U=l.process,B=u("fetch"),W=N.f,V=W,G="process"==b(U),J=!!(q&&q.createEvent&&l.dispatchEvent),Y=L(P,(function(){if(!(y(H)!==String(H))){if(66===D)return!0;if(!G&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!H.prototype.finally)return!0;if(D>=51&&/native code/.test(H))return!1;var t=H.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[I]=e,!(t.then((function(){}))instanceof e)})),$=Y||!x((function(t){H.all(t).catch((function(){}))})),X=function(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e},Z=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;O((function(){for(var o=e.value,i=1==e.state,s=0;r.length>s;){var a,c,l,u=r[s++],p=i?u.ok:u.fail,d=u.resolve,h=u.reject,f=u.domain;try{p?(i||(2===e.rejection&&et(t,e),e.rejection=1),!0===p?a=o:(f&&f.enter(),a=p(o),f&&(f.exit(),l=!0)),a===u.promise?h(F("Promise-chain cycle")):(c=X(a))?c.call(a,d,h):d(a)):h(o)}catch(t){f&&!l&&f.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Q(t,e)}))}},K=function(t,e,n){var r,o;J?((r=q.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},(o=l["on"+t])?o(r):"unhandledrejection"===t&&A("Unhandled promise rejection",n)},Q=function(t,e){S.call(l,(function(){var n,r=e.value;if(tt(e)&&(n=C((function(){G?U.emit("unhandledRejection",r,t):K("unhandledrejection",t,r)})),e.rejection=G||tt(e)?2:1,n.error))throw n.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){S.call(l,(function(){G?U.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)}))},nt=function(t,e,n,r){return function(o){t(e,n,o,r)}},rt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Z(t,e,!0))},ot=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw F("Promise can't be resolved itself");var o=X(n);o?O((function(){var r={done:!1};try{o.call(n,nt(ot,t,r,e),nt(rt,t,r,e))}catch(n){rt(t,r,n,e)}})):(e.value=n,e.state=1,Z(t,e,!1))}catch(n){rt(t,{done:!1},n,e)}}};Y&&(H=function(t){v(this,H,P),g(t),r.call(this);var e=M(this);try{t(nt(ot,this,e),nt(rt,this,e))}catch(t){rt(this,e,t)}},(r=function(t){R(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(H.prototype,{then:function(t,e){var n=z(this),r=W(E(this,H));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=G?U.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Z(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=M(t);this.promise=t,this.resolve=nt(ot,t,e),this.reject=nt(rt,t,e)},N.f=W=function(t){return t===H||t===i?new o(t):V(t)},c||"function"!=typeof p||(s=p.prototype.then,d(p.prototype,"then",(function(t,e){var n=this;return new H((function(t,e){s.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof B&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return T(H,B.apply(l,arguments))}}))),a({global:!0,wrap:!0,forced:Y},{Promise:H}),f(H,P,!1,!0),_(P),i=u(P),a({target:P,stat:!0,forced:Y},{reject:function(t){var e=W(this);return e.reject.call(void 0,t),e.promise}}),a({target:P,stat:!0,forced:c||Y},{resolve:function(t){return T(c&&this===i?H:this,t)}}),a({target:P,stat:!0,forced:$},{all:function(t){var e=this,n=W(e),r=n.resolve,o=n.reject,i=C((function(){var n=g(e.resolve),i=[],s=0,a=1;w(t,(function(t){var c=s++,l=!1;i.push(void 0),a++,n.call(e,t).then((function(t){l||(l=!0,i[c]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=W(e),r=n.reject,o=C((function(){var o=g(e.resolve);w(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(t,e,n){var r=n(139),o=n(16),i=n(2)("toStringTag"),s="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:s?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){"use strict";var r,o,i=n(102),s=n(146),a=RegExp.prototype.exec,c=String.prototype.replace,l=a,u=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),p=s.UNSUPPORTED_Y||s.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(u||d||p)&&(l=function(t){var e,n,r,o,s=this,l=p&&s.sticky,h=i.call(s),f=s.source,_=0,m=t;return l&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),m=String(t).slice(s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==t[s.lastIndex-1])&&(f="(?: "+f+")",m=" "+m,_++),n=new RegExp("^(?:"+f+")",h)),d&&(n=new RegExp("^"+f+"$(?!\\s)",h)),u&&(e=s.lastIndex),r=a.call(l?n:s,m),l?r?(r.input=r.input.slice(_),r[0]=r[0].slice(_),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:u&&r&&(s.lastIndex=s.global?r.index+r[0].length:e),d&&r&&r.length>1&&c.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=l},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(183),o=n(184),i=n(185),s=n(186),a=n(187);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(116);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(27)(Object,"create");t.exports=r},function(t,e,n){var r=n(205);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){"use strict";var r,o=n(93),i=n(8),s=n(0),a=n(5),c=n(6),l=n(42),u=n(9),p=n(13),d=n(10).f,h=n(40),f=n(30),_=n(2),m=n(54),g=s.Int8Array,v=g&&g.prototype,b=s.Uint8ClampedArray,y=b&&b.prototype,w=g&&h(g),x=v&&h(v),E=Object.prototype,S=E.isPrototypeOf,O=_("toStringTag"),T=m("TYPED_ARRAY_TAG"),A=o&&!!f&&"Opera"!==l(s.opera),N=!1,C={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},k=function(t){return a(t)&&c(C,l(t))};for(r in C)s[r]||(A=!1);if((!A||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},A))for(r in C)s[r]&&f(s[r],w);if((!A||!x||x===E)&&(x=w.prototype,A))for(r in C)s[r]&&f(s[r].prototype,x);if(A&&h(y)!==x&&f(y,x),i&&!c(x,O))for(r in N=!0,d(x,O,{get:function(){return a(this)?this[T]:void 0}}),C)s[r]&&u(s[r],T,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:A,TYPED_ARRAY_TAG:N&&T,aTypedArray:function(t){if(k(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(f){if(S.call(w,t))return t}else for(var e in C)if(c(C,r)){var n=s[e];if(n&&(t===n||S.call(n,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n){if(i){if(n)for(var r in C){var o=s[r];o&&c(o.prototype,t)&&delete o.prototype[t]}x[t]&&!n||p(x,t,n?e:A&&v[t]||e)}},exportTypedArrayStaticMethod:function(t,e,n){var r,o;if(i){if(f){if(n)for(r in C)(o=s[r])&&c(o,t)&&delete o[t];if(w[t]&&!n)return;try{return p(w,t,n?e:A&&g[t]||e)}catch(t){}}for(r in C)!(o=s[r])||o[t]&&!n||p(o,t,e)}},isView:function(t){var e=l(t);return"DataView"===e||c(C,e)},isTypedArray:k,TypedArray:w,TypedArrayPrototype:x}},function(t,e,n){var r=n(107);t.exports=r.publicPath(n.p)+"psp.async.wasm"},function(t,e,n){var r=n(1),o=n(16),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(0),o=n(9);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(0),o=n(5),i=r.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(19),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e){t.exports={}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(74),o=n(54),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var r=n(75),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e,n){var r=n(80),o=n(57).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(13);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(3),o=n(26),i=n(2)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||null==(n=r(s)[i])?e:o(n)}},function(t,e,n){var r=n(2),o=n(29),i=r("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},function(t,e,n){"use strict";var r=n(65),o=n(3),i=n(14),s=n(4),a=n(19),c=n(17),l=n(66),u=n(68),p=Math.max,d=Math.min,h=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,_=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(t,e,n,r){var m=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=r.REPLACE_KEEPS_$0,v=m?"$":"$0";return[function(n,r){var o=c(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!m&&g||"string"==typeof r&&-1===r.indexOf(v)){var i=n(e,t,this,r);if(i.done)return i.value}var c=o(t),h=String(this),f="function"==typeof r;f||(r=String(r));var _=c.global;if(_){var y=c.unicode;c.lastIndex=0}for(var w=[];;){var x=u(c,h);if(null===x)break;if(w.push(x),!_)break;""===String(x[0])&&(c.lastIndex=l(h,s(c.lastIndex),y))}for(var E,S="",O=0,T=0;T<w.length;T++){x=w[T];for(var A=String(x[0]),N=p(d(a(x.index),h.length),0),C=[],k=1;k<x.length;k++)C.push(void 0===(E=x[k])?E:String(E));var L=x.groups;if(f){var j=[A].concat(C,N,h);void 0!==L&&j.push(L);var D=String(r.apply(void 0,j))}else D=b(A,h,N,C,L,r);N>=O&&(S+=h.slice(O,N)+D,O=N+A.length)}return S+h.slice(O)}];function b(t,n,r,o,s,a){var c=r+t.length,l=o.length,u=_;return void 0!==s&&(s=i(s),u=f),e.call(a,u,(function(e,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":a=s[i.slice(1,-1)];break;default:var u=+i;if(0===u)return e;if(u>l){var p=h(u/10);return 0===p?e:p<=l?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):e}a=o[u-1]}return void 0===a?"":a}))}}))},function(t,e,n){"use strict";n(145);var r=n(13),o=n(1),i=n(2),s=n(43),a=n(9),c=i("species"),l=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),u="$0"==="a".replace(/./,"$0"),p=i("replace"),d=!!/./[p]&&""===/./[p]("a","$0"),h=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,p){var f=i(t),_=!o((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),m=_&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!_||!m||"replace"===t&&(!l||!u||d)||"split"===t&&!h){var g=/./[f],v=n(f,""[t],(function(t,e,n,r,o){return e.exec===s?_&&!o?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=v[0],y=v[1];r(String.prototype,t,b),r(RegExp.prototype,f,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}p&&a(RegExp.prototype[f],"sham",!0)}},function(t,e,n){"use strict";var r=n(67).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r=n(19),o=n(17),i=function(t){return function(e,n){var i,s,a=String(o(e)),c=r(n),l=a.length;return c<0||c>=l?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):i:t?a.slice(c,c+2):s-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){var r=n(16),o=n(43);t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){var r=n(12).Symbol;t.exports=r},function(t,e,n){var r=n(16);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(27)(n(12),"Map");t.exports=r},function(t,e,n){var r=n(2),o=n(38),i=n(10),s=r("unscopables"),a=Array.prototype;null==a[s]&&i.f(a,s,{configurable:!0,value:o(null)}),t.exports=function(t){a[s][t]=!0}},function(t,e,n){var r=n(28),o=n(75);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(0),o=n(52),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(8),o=n(1),i=n(53);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(1);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){var r=n(8),o=n(10),i=n(3),s=n(79);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=s(e),a=r.length,c=0;a>c;)o.f(t,n=r[c++],e[n]);return t}},function(t,e,n){var r=n(80),o=n(57);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(6),o=n(36),i=n(125).indexOf,s=n(56);t.exports=function(t,e){var n,a=o(t),c=0,l=[];for(n in a)!r(s,n)&&r(a,n)&&l.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~i(l,n)||l.push(n));return l}},function(t,e,n){var r=n(23);t.exports=r("document","documentElement")},function(t,e,n){"use strict";var r=n(7),o=n(87),i=n(40),s=n(30),a=n(24),c=n(9),l=n(13),u=n(2),p=n(28),d=n(29),h=n(88),f=h.IteratorPrototype,_=h.BUGGY_SAFARI_ITERATORS,m=u("iterator"),g=function(){return this};t.exports=function(t,e,n,u,h,v,b){o(n,e,u);var y,w,x,E=function(t){if(t===h&&N)return N;if(!_&&t in T)return T[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},S=e+" Iterator",O=!1,T=t.prototype,A=T[m]||T["@@iterator"]||h&&T[h],N=!_&&A||E(h),C="Array"==e&&T.entries||A;if(C&&(y=i(C.call(new t)),f!==Object.prototype&&y.next&&(p||i(y)===f||(s?s(y,f):"function"!=typeof y[m]&&c(y,m,g)),a(y,S,!0,!0),p&&(d[S]=g))),"values"==h&&A&&"values"!==A.name&&(O=!0,N=function(){return A.call(this)}),p&&!b||T[m]===N||c(T,m,N),d[e]=N,h)if(w={values:E("values"),keys:v?N:E("keys"),entries:E("entries")},b)for(x in w)!_&&!O&&x in T||l(T,x,w[x]);else r({target:e,proto:!0,forced:_||O},w);return w}},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(6),o=n(128),i=n(39),s=n(10);t.exports=function(t,e){for(var n=o(e),a=s.f,c=i.f,l=0;l<n.length;l++){var u=n[l];r(t,u)||a(t,u,c(e,u))}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(1),o=/#|\.prototype\./,i=function(t,e){var n=a[s(t)];return n==l||n!=c&&("function"==typeof e?r(e):!!e)},s=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=i.data={},c=i.NATIVE="N",l=i.POLYFILL="P";t.exports=i},function(t,e,n){"use strict";var r=n(88).IteratorPrototype,o=n(38),i=n(22),s=n(24),a=n(29),c=function(){return this};t.exports=function(t,e,n){var l=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),s(t,l,!1,!0),a[l]=c,t}},function(t,e,n){"use strict";var r,o,i,s=n(40),a=n(9),c=n(6),l=n(2),u=n(28),p=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):d=!0),null==r&&(r={}),u||c(r,p)||a(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(t,e,n){var r=n(7),o=n(90);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,n){"use strict";var r=n(8),o=n(1),i=n(79),s=n(85),a=n(83),c=n(14),l=n(51),u=Object.assign,p=Object.defineProperty;t.exports=!u||o((function(){if(r&&1!==u({b:1},u(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||"abcdefghijklmnopqrst"!=i(u({},e)).join("")}))?function(t,e){for(var n=c(t),o=arguments.length,u=1,p=s.f,d=a.f;o>u;)for(var h,f=l(arguments[u++]),_=p?i(f).concat(p(f)):i(f),m=_.length,g=0;m>g;)h=_[g++],r&&!d.call(f,h)||(n[h]=f[h]);return n}:u},function(t,e,n){"use strict";var r=n(7),o=n(1),i=n(92),s=n(3),a=n(55),c=n(4),l=n(62),u=i.ArrayBuffer,p=i.DataView,d=u.prototype.slice;r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new u(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(void 0!==d&&void 0===e)return d.call(s(this),t);for(var n=s(this).byteLength,r=a(t,n),o=a(void 0===e?n:e,n),i=new(l(this,u))(c(o-r)),h=new p(this),f=new p(i),_=0;r<o;)f.setUint8(_++,h.getUint8(r++));return i}})},function(t,e,n){"use strict";var r=n(0),o=n(8),i=n(93),s=n(9),a=n(61),c=n(1),l=n(31),u=n(19),p=n(4),d=n(94),h=n(135),f=n(40),_=n(30),m=n(60).f,g=n(10).f,v=n(136),b=n(24),y=n(18),w=y.get,x=y.set,E=r.ArrayBuffer,S=E,O=r.DataView,T=O&&O.prototype,A=Object.prototype,N=r.RangeError,C=h.pack,k=h.unpack,L=function(t){return[255&t]},j=function(t){return[255&t,t>>8&255]},D=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},I=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},P=function(t){return C(t,23,4)},M=function(t){return C(t,52,8)},R=function(t,e){g(t.prototype,e,{get:function(){return w(this)[e]}})},z=function(t,e,n,r){var o=d(n),i=w(t);if(o+e>i.byteLength)throw N("Wrong index");var s=w(i.buffer).bytes,a=o+i.byteOffset,c=s.slice(a,a+e);return r?c:c.reverse()},H=function(t,e,n,r,o,i){var s=d(n),a=w(t);if(s+e>a.byteLength)throw N("Wrong index");for(var c=w(a.buffer).bytes,l=s+a.byteOffset,u=r(+o),p=0;p<e;p++)c[l+p]=u[i?p:e-p-1]};if(i){if(!c((function(){E(1)}))||!c((function(){new E(-1)}))||c((function(){return new E,new E(1.5),new E(NaN),"ArrayBuffer"!=E.name}))){for(var F,q=(S=function(t){return l(this,S),new E(d(t))}).prototype=E.prototype,U=m(E),B=0;U.length>B;)(F=U[B++])in S||s(S,F,E[F]);q.constructor=S}_&&f(T)!==A&&_(T,A);var W=new O(new S(2)),V=T.setInt8;W.setInt8(0,2147483648),W.setInt8(1,2147483649),!W.getInt8(0)&&W.getInt8(1)||a(T,{setInt8:function(t,e){V.call(this,t,e<<24>>24)},setUint8:function(t,e){V.call(this,t,e<<24>>24)}},{unsafe:!0})}else S=function(t){l(this,S,"ArrayBuffer");var e=d(t);x(this,{bytes:v.call(new Array(e),0),byteLength:e}),o||(this.byteLength=e)},O=function(t,e,n){l(this,O,"DataView"),l(t,S,"DataView");var r=w(t).byteLength,i=u(e);if(i<0||i>r)throw N("Wrong offset");if(i+(n=void 0===n?r-i:p(n))>r)throw N("Wrong length");x(this,{buffer:t,byteLength:n,byteOffset:i}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=i)},o&&(R(S,"byteLength"),R(O,"buffer"),R(O,"byteLength"),R(O,"byteOffset")),a(O.prototype,{getInt8:function(t){return z(this,1,t)[0]<<24>>24},getUint8:function(t){return z(this,1,t)[0]},getInt16:function(t){var e=z(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=z(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return I(z(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return I(z(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return k(z(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return k(z(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){H(this,1,t,L,e)},setUint8:function(t,e){H(this,1,t,L,e)},setInt16:function(t,e){H(this,2,t,j,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){H(this,2,t,j,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){H(this,4,t,D,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){H(this,4,t,D,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){H(this,4,t,P,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){H(this,8,t,M,e,arguments.length>2?arguments[2]:void 0)}});b(S,"ArrayBuffer"),b(O,"DataView"),t.exports={ArrayBuffer:S,DataView:O}},function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){var r=n(19),o=n(4);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length or index");return n}},function(t,e,n){"use strict";var r=n(23),o=n(10),i=n(2),s=n(8),a=i("species");t.exports=function(t){var e=r(t),n=o.f;s&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(2)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var r,o,i,s=n(0),a=n(1),c=n(16),l=n(20),u=n(81),p=n(53),d=n(99),h=s.location,f=s.setImmediate,_=s.clearImmediate,m=s.process,g=s.MessageChannel,v=s.Dispatch,b=0,y={},w=function(t){if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},x=function(t){return function(){w(t)}},E=function(t){w(t.data)},S=function(t){s.postMessage(t+"",h.protocol+"//"+h.host)};f&&_||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},_=function(t){delete y[t]},"process"==c(m)?r=function(t){m.nextTick(x(t))}:v&&v.now?r=function(t){v.now(x(t))}:g&&!d?(i=(o=new g).port2,o.port1.onmessage=E,r=l(i.postMessage,i,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||a(S)?r="onreadystatechange"in p("script")?function(t){u.appendChild(p("script")).onreadystatechange=function(){u.removeChild(this),w(t)}}:function(t){setTimeout(x(t),0)}:(r=S,s.addEventListener("message",E,!1))),t.exports={set:f,clear:_}},function(t,e,n){var r=n(100);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(t,e,n){var r=n(23);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(26),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e,n){"use strict";var r=n(3);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(13),o=n(3),i=n(1),s=n(102),a=RegExp.prototype,c=a.toString,l=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),u="toString"!=c.name;(l||u)&&r(RegExp.prototype,"toString",(function(){var t=o(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in a)?s.call(t):n)}),{unsafe:!0})},function(t,e,n){"use strict";var r=n(7),o=n(147),i=n(17);r({target:"String",proto:!0,forced:!n(148)("includes")},{includes:function(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(5),o=n(16),i=n(2)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){"use strict";var r=n(65),o=n(3),i=n(4),s=n(17),a=n(66),c=n(68);r("match",1,(function(t,e,n){return[function(e){var n=s(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var s=o(t),l=String(this);if(!s.global)return c(s,l);var u=s.unicode;s.lastIndex=0;for(var p,d=[],h=0;null!==(p=c(s,l));){var f=String(p[0]);d[h]=f,""===f&&(s.lastIndex=a(l,i(s.lastIndex),u)),h++}return 0===h?null:d}]}))},function(t,e){var n=new function(){var t;try{throw new Error}catch(o){var e=o.stack.split("\n"),n=0;for(var r in e)if(e[r].match(/http[s]?:\/\//)){n=Number(r);break}t=e[n].match(/((http[s]?:\/\/.+\/)([^\/]+\.(js|html))).*?:/)}this.fullPath=function(){return t?t[1]:"undefined"!=typeof window?window.location.origin+window.location.pathname:""},this.path=function(){return t?t[2]:"undefined"!=typeof window?window.location.pathname:""},this.host=function(){var t=this.path().match(/.+?\/\/.+?\//);return t?t[0]:"undefined"!=typeof window?window.location.hostname:""},this.file=function(){return t?t[3]:""}};t.exports.host=n.host(),t.exports.path=n.path(),t.exports.isCrossOrigin=function(e){if(!(!e||!e.length)){var n=document.createElement("a");return n.href=e,!n.href.startsWith(window.location.origin)}return window.location.origin!==t.exports.host.slice(0,window.location.origin.length)},t.exports.publicPath=function(e){return!(!e||!e.length)?e:t.exports.path},t.exports.BlobWorker=function(t,e){var n=new Blob([t]),r=window.URL.createObjectURL(n),o=new Worker(r);e&&e(o)},t.exports.XHRWorker=function(e,n){var r=new XMLHttpRequest;r.addEventListener("load",(function(){t.exports.BlobWorker(r.responseText,n)}),r),r.open("get",e,!0),r.send()}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(21))},function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(t,e,n){var r=n(165),o=n(174),i=n(178);t.exports=function(t){return i(t)?r(t):o(t)}},function(t,e,n){(function(t){var r=n(12),o=n(169),i=e&&!e.nodeType&&e,s=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||o;t.exports=c}).call(this,n(112)(t))},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,n){var r=n(171),o=n(172),i=n(173),s=i&&i.isTypedArray,a=s?o(s):r;t.exports=a},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e,n){var r=n(33),o=n(44),i="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=r(t);return e==s||e==a||e==i||e==c}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(197),o=n(204),i=n(206),s=n(207),a=n(208);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(209),o=n(212),i=n(213),s=1,a=2;t.exports=function(t,e,n,c,l,u){var p=n&s,d=t.length,h=e.length;if(d!=h&&!(p&&h>d))return!1;var f=u.get(t);if(f&&u.get(e))return f==e;var _=-1,m=!0,g=n&a?new r:void 0;for(u.set(t,e),u.set(e,t);++_<d;){var v=t[_],b=e[_];if(c)var y=p?c(b,v,_,e,t,u):c(v,b,_,t,e,u);if(void 0!==y){if(y)continue;m=!1;break}if(g){if(!o(e,(function(t,e){if(!i(g,e)&&(v===t||l(v,t,n,c,u)))return g.push(e)}))){m=!1;break}}else if(v!==b&&!l(v,b,n,c,u)){m=!1;break}}return u.delete(t),u.delete(e),m}},function(t,e,n){var r=n(5),o=n(70),i=n(2)("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},function(t,e,n){var r=n(1),o=n(2),i=n(28),s=o("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),i&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(t,e,n){t.exports=function(){var t=n(107),e=t.publicPath(n.p)+"perspective.wasm.worker.js";return t.isCrossOrigin(n.p)?new Promise((function(n){t.XHRWorker(e,n)})):new Promise((function(t){t(new Worker(e))}))}},function(t,e,n){var r,o,i,s,a,c,l,u,p,d,h,f,_,m,g,v,b,y,w,x,E,S,O,T,A,N,C;window,t.exports=(r=n(262),o=n(35),i=n(15),s=n(25),a=n(134),c=n(41),l=n(64),u=n(103),p=n(104),d=n(150),h=n(156),f=n(157),_=n(158),m=n(161),g=n(162),v=n(179),b=n(91),y=n(230),w=n(238),x=n(239),E=n(246),S=n(89),O=n(106),T=n(250),A=n(251),N=n(253),C=n(255),function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=40)}([function(t,e){t.exports=r},function(t,e,n){"use strict";(function(t){function r(t,...e){const n=e.map(t=>t.toString()).join("\n");return function(e){return function(t,e,n){const r=function(t){const e=document.createElement("div");return e.innerHTML=t,Array.prototype.slice.call(e.children)[0]}(t);!function(t){if(t.content)return;let e;for(t.content=document.createDocumentFragment();e=t.firstChild;)Node.prototype.appendChild.call(t.content,e)}(r),e&&(r.innerHTML="<style>".concat(e.toString(),"</style>")+r.innerHTML),r.innerHTML='<style id="psp_styles" scope="'.concat(r.getAttribute("id"),'">test{}</style>')+r.innerHTML;for(let t of Object.getOwnPropertyNames(n.prototype)){let e=Object.getOwnPropertyDescriptor(n.prototype,t);if(e&&e.set){let r=e.set;e.set=function(e){this.hasAttribute(t)&&this.getAttribute(t)===e?(this._initializing||this._initialized)&&r.call(this,e):this.setAttribute(t,e)},Object.defineProperty(n.prototype,t,e)}}let o=r.getAttribute("id");console.log("Registered ".concat(o)),window.customElements.define(o,class extends n{attributeChangedCallback(t,e,r){null===r&&(r="null"),"_"!==t[0]&&e!=r&&Object.getOwnPropertyDescriptor(n.prototype,t).set&&(this[t]=r)}connectedCallback(){if(!this._initialized){this._initializing=!0;var t=document.importNode(r.content,!0);this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(t),super.connectedCallback&&super.connectedCallback();for(let t of Object.getOwnPropertyNames(n.prototype))"connectedCallback"!==t&&this.hasAttribute(t)&&"_"!==t[0]&&Object.getOwnPropertyDescriptor(n.prototype,t).set&&(this[t]=this.getAttribute(t));this._initializing=!1,this._initialized=!0}}static get observedAttributes(){return Object.getOwnPropertyNames(n.prototype)}})}(t,{toString:()=>n},e)}}function o(t){return function(e,n,r){const o=r.value;return r.set=function(e){let r=this.getAttribute(n);try{null!=e&&""!==e||(e=t()),"string"!=typeof e&&(e=JSON.stringify(e)),e!==r&&(r=e),r=JSON.parse(r)}catch(o){console.warn('Invalid value for attribute "'.concat(n,'": ').concat(e)),r=t()}o.call(this,r)},r.get=function(){return this.hasAttribute(n)?JSON.parse(this.getAttribute(n)):t()},delete r.value,delete r.writable,r}}function i(t){let e=document.createElement("textarea");document.body.appendChild(e),e.value=t,e.select(),document.execCommand("copy"),document.body.removeChild(e)}n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"f",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return u})),n(17),n(3),n(14),n(7),n(10),n(4);const s=()=>{let t,e=new Promise(e=>{t=e});return e.resolve=t,e};function a(t,e,n){const r=Symbol("private lock"),o=n.value;return n.value=async function(...t){if(this[r]&&(await this[r],this[r]))return void await this[r];let e;this[r]=s();try{e=await o.call(this,...t)}catch(t){console.error(t)}finally{const t=this[r];return this[r]=void 0,t.resolve(),e}},n}function c(t,...e){if(e[0]===e[1])return;if(e.every(t=>t.classList.contains("null-column")))return;let[n,r]=e.map(e=>Array.prototype.slice.call(t.children).indexOf(e));r<n&&([n,r]=[r,n],e=e.reverse()),t.insertBefore(e[1],e[0]),r+1===t.children.length?t.appendChild(e[0]):t.insertBefore(e[0],t.children[r+1])}const l=o(()=>({})),u=o(()=>[])}).call(this,n(16))},function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e){t.exports=s},function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c})),n(3),n(7),n(4);var r=n(0);function o(){const t=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n <pre style="margin:0;overflow:scroll;position:absolute;width:100%;height:100%">',"</pre>\n "]);return o=function(){return t},t}const i={},s=new class{registerPlugin(t,e){if(i[t])throw new Error('A perspective-viewer plugin "'.concat(t,'" has already been registered'));for(const n in i){const r=i[n];r&&r.name===e.name&&(console.warn('Conflicting plugin name "'.concat(e.name,'", qualifying with id')),r.name="".concat(r.name," [").concat(n,"]"),e.name="".concat(e.name," [").concat(t,"]"))}i[t]=e}getPlugin(t){return i[t]}getInstance(){return i}};t.registerPlugin=s.registerPlugin,t.getPlugin=s.getPlugin,t.__perspective_plugins__&&t.__perspective_plugins__.forEach(([e,n])=>t.registerPlugin(e,n));const a=t=>Object(r.html)(o(),t);function c(){t.registerPlugin("debug",{name:"Debug",create:async function(t){const e=await this._view.to_csv({config:{delimiter:"|"}}),n=this._render_time();Object(r.render)(a(e),t),n()},selectMode:"toggle",resize:function(){},delete:function(){}})}}).call(this,n(16))},function(t,e){t.exports=a},function(t,e){t.exports=c},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,r=t[1]||"",o=t[3];if(!o)return r;if(e&&"function"==typeof btoa){var i=(n=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=o.sources.map((function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"}));return[r].concat(s).concat([i]).join("\n")}return[r].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e){t.exports=l},function(t,e){t.exports=u},function(t,e){t.exports=p},function(t,e){t.exports=d},function(t,e){t.exports=h},function(t,e){t.exports=f},function(t,e){t.exports=_},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=m},function(t,e){t.exports=g},function(t,e){t.exports='\x3c!--\n\nCopyright (c) 2017, the Perspective Authors.\n\nThis file is part of the Perspective library, distributed under the terms of\nthe Apache License 2.0. The full license can be found in the LICENSE file.\n\n--\x3e\n\n<template id="perspective-computed-column">\n <div id="psp-cc__body">\n <span id="psp-cc__close" aria-label="Close Computed Column">&times;</span>\n <div class="psp-cc__container" style="display:none">\n <span id="psp-cc__mode"></span>\n </div>\n <div class="psp-cc__container" style="margin-top:-7px;">\n <div class="psp-cc__content">\n <div id="psp-cc-computation__type"></div>\n <span contentEditable=true type="text" required maxlength="25" size="10" autocomplete="off" id="psp-cc-name"></span>\n </div>\n <div class="psp-cc__content psp-cc__content--nomargin">\n <span class="psp-cc__label psp-cc__error" id="psp-cc__error--name"></span>\n </div>\n </div>\n <div class="psp-cc__container">\n <div class="psp-cc__content">\n <select id="psp-cc-computation__select">\n </select>\n </div>\n </div>\n <div class="psp-cc__container" style="margin-top:-12px;">\n <div id="psp-cc-computation-inputs">\n \x3c!--<div class="psp-cc-computation__input-column" drop-target></div>--\x3e\n </div>\n </div>\n </div>\n <div id="psp-cc__actions">\n <button id="psp-cc-button-delete" class="psp-cc__button">Delete</button>\n <button id="psp-cc-button-save" class="psp-cc__button" disabled>Save</button>\n </div>\n</template>'},function(t,e,n){(t.exports=n(8)(!1)).push([t.i,':host{display:none;flex-direction:column;max-height:35%;margin-top:34px;margin-bottom:24px;flex:0 0 auto!important}:host *{box-sizing:border-box}:host select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--select--background,url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgNC45IDEwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0LjkgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojQUFBQUFBO30KPC9zdHlsZT4KPHRpdGxlPmFycm93czwvdGl0bGU+Cjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMS40LDQuNyAyLjUsMy4yIDMuNSw0LjcgIi8+Cjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMy41LDUuMyAyLjUsNi44IDEuNCw1LjMgIi8+Cjwvc3ZnPg==) no-repeat 95% 50%);background-color:#fff;outline:0;border:none;height:24px;padding:0 0 0 6px;font-size:12px}:host.edit #psp-cc-button-delete{display:block!important}:host .psp-cc__label{color:#666;font-size:10px;margin-left:8px}:host .psp-cc__label.psp-cc__error{color:#cb4549!important;display:none}:host #psp-cc__actions{display:flex;justify-content:flex-start;margin-right:5px;margin-left:20px;margin-top:12px}:host #psp-cc__body,:host .psp-cc__container{display:flex;flex-direction:column}:host #psp-cc__body.row,:host .psp-cc__container.row{align-items:center;flex-direction:row}:host span#psp-cc__close{color:#666;position:absolute}:host span#psp-cc__close:hover{cursor:pointer}:host .psp-cc__container{margin:2px 0 10px 26px}:host .psp-cc__container:first-of-type{margin-bottom:0}:host .psp-cc__container span#psp-cc__mode{color:#000;font-size:12px}:host .psp-cc__container input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;border-bottom:1px solid #ccc;font-size:12px;padding:3px 4px;flex-basis:500px}:host #psp-cc-name{background-color:#eee;border-bottom:1px solid #ccc;color:#333;cursor:default!important;font-size:12px;padding-left:2px;width:100%}:host #psp-cc-name:empty:before{content:"New Column";color:#ccc}:host #psp-cc-name *{display:inline}:host #psp-cc-name br{display:none}:host .psp-label__placeholder{color:#ccc;display:inline-block;font-size:12px;margin-left:4px}:host .psp-label__requiredType{margin-left:5px;margin-top:-1px;display:inline-block}:host .psp-label__requiredType.float::before,:host .psp-label__requiredType.integer::before{font-family:monospace;display:flex;content:"123";color:#016bc6}:host .psp-label__requiredType.string::before{font-family:monospace;display:flex;content:"abc";color:#fe9292}:host .psp-label__requiredType.boolean::before{font-family:monospace;display:flex;content:"t/f";color:#999}:host .psp-label__requiredType.datetime::before{font-family:monospace;display:flex;content:"mdy";color:#999}:host .psp-label__requiredType.date::before{font-family:monospace;display:flex;content:"mdy";color:#999}:host .psp-cc-computation__input-column{box-sizing:border-box;display:flex;align-items:center;border-bottom:1px solid #ccc;margin-top:5px;height:23px;width:100%}:host .psp-cc-computation__input-column perspective-row{margin-left:-26px;margin-right:-5px;width:calc(100% + 26px)}:host .psp-cc-computation__input-column.dropping{background-color:#f0f0ff!important;border:1px solid #1078d1!important;cursor:copy!important}:host .psp-cc-computation__input-column.dropping perspective-row{display:none!important;pointer-events:none}:host .psp-cc-computation__input-column.dropped{border:0;background:0 0}:host perspective-row{margin-bottom:2px;--row_draggable-overflow:hidden;--name-before-display:inline-block;--is_visible-display:inline-block;--row_draggable-padding:2px 10px 2px 2px;--row_close-display:none;--psp_row-margin:0 5px 0 0;--column_name-max-width:180px}:host perspective-row[drop-target]{--row_draggable_children-opacity:0}:host .psp-cc__content{align-items:center;display:flex;margin-top:5px}:host .psp-cc__content.psp-cc__content--nomargin{margin-top:0}:host #psp-cc-computation__type{box-sizing:border-box;display:flex;font-family:monospace;flex-direction:column;font-size:12px;padding-right:3px;padding-left:6px;background:eee;height:24px;text-align:center;padding-top:4px}:host #psp-cc-computation__type .boolean,:host #psp-cc-computation__type .date,:host #psp-cc-computation__type .datetime{color:#999}:host #psp-cc-computation__type .float,:host #psp-cc-computation__type .integer{color:#016bc6}:host #psp-cc-computation__type .string{color:#fe9292}:host #psp-cc-computation__select{margin-left:auto;width:100%;background-color:#eee;font-size:10px;border-bottom:none;color:#666}:host #psp-cc-computation__drop-target-hover{display:none}:host .psp-cc__button{border-radius:0;border-bottom:1px solid #ccc;border-left:0;border-right:0;border-top:0;font-size:12px;margin-left:6px;padding:2px 5px;width:45px}:host .psp-cc__button:hover{cursor:pointer}:host .psp-cc__button[disabled]{background:#666!important;color:#a0a0a0!important;cursor:not-allowed;border-bottom-color:#000!important;opacity:.5}:host .psp-cc__button#psp-cc-button-delete{background:#e76056;border-bottom-color:#bf4d45;color:#fff;display:none}:host .psp-cc__button#psp-cc-button-delete:active{background:#bf4d45;border-bottom-color:#9d3f39}:host .psp-cc__button#psp-cc-button-save{background:#0171d2;border-bottom-color:#0160b1;color:#fff;height:22px}:host .psp-cc__button#psp-cc-button-save:active{background:#0160b1;border-bottom-color:#014986}',""])},function(t,e,n){(t.exports=n(8)(!1)).push([t.i,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""])},function(t,e){t.exports='\x3c!--\r\n \r\n Copyright (c) 2017, the Perspective Authors.\r\n \r\n This file is part of the Perspective library, distributed under the terms of\r\n the Apache License 2.0. The full license can be found in the LICENSE file.\r\n\r\n--\x3e\r\n\r\n<template id="perspective-row">\r\n <div id="psp_row">\r\n <span class=\'is_visible\'></span>\r\n <div draggable=\'true\' class="row_draggable">\r\n <span id=\'name\' class="column_name"></span>\r\n <div class="row_computed">\r\n <span id="row_edit"></span>\r\n </div>\r\n <span id="sort_order"></span>\r\n <select id="column_aggregate" class="string"></select>\r\n <select id="filter_operator"></select>\r\n <input id="filter_operand" placeholder="Value" />\r\n <span id="row_exclamation" hidden>&#x26A0;</span>\r\n <span id=\'row_close\'>&#x2715;</span>\r\n </div>\r\n </div>\r\n</template>'},function(t,e,n){(t.exports=n(8)(!1)).push([t.i,':host{display:block;border:0 solid transparent}:host .row_computed{display:none;flex-direction:row}.dropping *{pointer-events:none}:host #psp_row{display:var(--psp_row-display,flex);margin:var(--psp_row-margin,0);overflow:visible;align-items:var(--column_selector--align-items,center);width:auto!important;height:auto!important;float:none!important}:host .is_visible{width:var(--column_selector--width,20px);min-width:var(--column_selector--width,20px);height:var(--is_visible--height,auto);cursor:var(--is_visible--cursor,pointer);font-size:var(--column_selector--font-size,14px);margin-top:-2px;display:var(--is_visible-display,none);color:var(--column-selector--color,#999);font-family:var(--column-selector--font-family,Arial)!important}:host #sort_order{display:none;font-family:var(--button--font-family,inherit);margin-right:4px;cursor:pointer;width:10px;display:var(--sort_order-display,none);padding:var(--sort_order-padding,0)}:host #sort_order:before{content:var(--row-sort-order--before, "-")}:host #sort_order:hover{color:var(--active--color,inherit)}:host #filter_operand{display:var(--filter_operand-display,none);margin:0;padding:0;height:19px;color:inherit;outline:0;border-color:var(--inactive--color,#ccc)}:host #filter_operator{margin:0 0 0 15px;display:var(--filter_operator-display,none);height:17px}:host #filter_operator:hover{color:var(--active--color,inherit)}@keyframes expand2{from{transform:translateX(10px)}}@keyframes expand3{from{transform:scale(.9)}}:host(:hover) .is_visible{color:var(--active--color,--column-selector--color)}:host #row_close{display:var(--row_close-display,inline);cursor:pointer;min-width:5px;max-width:5px;margin-right:3px;flex-grow:0;margin-left:3px;color:#999;font-family:Arial;font-size:10px}:host .is_visible:before{content:var(--is_visible--before,none)}:host #row_exclamation{color:red}:host #row_close:hover{color:var(--active--color,inherit)}:host .row_draggable select{border:none}:host .row_draggable select:focus{outline:0}:host select::-ms-expand{display:none}:host select{margin-left:15px;padding-right:15px;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;background:var(--select--background,url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgNC45IDEwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0LjkgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojQUFBQUFBO30KPC9zdHlsZT4KPHRpdGxlPmFycm93czwvdGl0bGU+Cjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMS40LDQuNyAyLjUsMy4yIDMuNSw0LjcgIi8+Cjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMy41LDUuMyAyLjUsNi44IDEuNCw1LjMgIi8+Cjwvc3ZnPg==) no-repeat 95% 50%);background-color:var(--select--background-color,#fff);color:inherit;border-radius:5px;height:24px;padding:var(--column_type--padding,0 0 0 5px);font-size:12px}:host .awesomplete>ul{border-radius:0;margin:0;border:none;transition:none!important;background:var(--plugin--background,#fff)!important}:host .awesomplete>ul:before{content:none}:host .awesomplete>input,:host input{border-color:#ccc;border-width:0 0 1px;box-sizing:border-box;background-color:transparent}:host .row_draggable{animation:var(--row_draggable--animation,expand2 .5s ease-out);cursor:move;border-style:solid;background-color:var(--row_draggable-background-color,none);overflow:var(--row_draggable-overflow,visible);border-color:var(--row_draggable-border-color,none);border-width:var(--row_draggable-border-width,0);padding:var(--row_draggable-padding,0);font-size:12px;flex-grow:1;color:inherit;transition:height .2s;box-sizing:border-box;height:var(--row_draggable-height,21px);min-height:var(--row_draggable-height,21px);display:var(--row_draggable-display,flex);align-items:var(--row-draggable--align-items);flex-direction:var(--row-draggable--flex-direction,column);justify-content:var(--row_draggable--justify-content,center);margin:var(--row_draggable--margin,0);transition:var(--row_draggable--transition,none)}:host .row_draggable *{opacity:var(--row_draggable_children-opacity,1)}:host .row_draggable select{margin:0 0 0 27px}:host ul{transition:background-color .2s,border-color .2s}:host(.null-column) .is_visible{opacity:0!important}:host(.null-column) .row_draggable{background-color:var(--null--background,transparent)!important;border-color:#ccc!important;border-width:0 0 1px!important}:host([drop-target]) .row_draggable{background-color:var(--active--background,#f0f0ff)!important;animation:var(--drop-target--animation,var(--row_draggable--animation,expand3 .5s ease-out));border:none!important}:host .float:before,:host .integer:before{content:var(--float--column-type--content, var(--column-type--content, "123"));color:var(--float--column-type--color,var(--column-type--color,#016bc6))}:host .string:before{content:var(--string--column-type--content, var(--column-type--content, "abc"));color:var(--string--column-type--color,var(--column-type--color,#fe9292))}:host .boolean:before{content:var(--boolean--column-type--content, var(--column-type--content, "t/f"));color:var(--boolean--column-type--color,var(--column-type--color,#999))}:host .date:before{content:var(--date--column-type--content, var(--column-type--content, "mdy"));color:var(--date--column-type--color,var(--column-type--color,#999))}:host .datetime:before{content:var(--datetime--column-type--content, var(--column-type--content, "mdy"));color:var(--datetime--column-type--color,var(--column-type--color,#999))}:host .column_name{overflow:hidden;max-width:var(--column_name-max-width,none);white-space:nowrap;text-overflow:ellipsis}:host span#name:before{font-family:var(--interface-monospace--font-family,monospace);position:relative;display:inline-block;padding:var(--column_type--padding,0 5px);min-width:18px;display:var(--name-before-display,none);width:var(--column_type--width,auto)}:host #column_aggregate{display:var(--column_aggregate-display,none);font-size:10px;font-family:Arial,sans-serif;width:88%;height:20px}:host span#name{flex:var(--column-name--flex,0 1 auto);width:100%;white-space:nowrap;margin:var(--column_name-margin,0)}',""])},function(t,e){t.exports='\x3c!--\r\n \r\n Copyright (c) 2017, the Perspective Authors.\r\n \r\n This file is part of the Perspective library, distributed under the terms of\r\n the Apache License 2.0. The full license can be found in the LICENSE file.\r\n\r\n--\x3e\r\n\r\n<template id="perspective-viewer">\r\n\r\n <div id="app">\r\n <div id="menubar">\r\n <div id="copy_button" class="noselect button" title="Copy CSV"></div>\r\n <div id="download_button" class="noselect button" title="Download CSV"></div>\r\n <div id="reset_button" class="noselect button" title="Reset Viewer"></div>\r\n </div>\r\n <div id=\'side_panel\' class="column fixed noselect">\r\n <div id="vis_selector_container">\r\n <select id="vis_selector">\r\n </select>\r\n </div>\r\n <div id="columns_container" style="visibility: hidden">\r\n <ul id=\'active_columns\'></ul>\r\n <div id="sub_columns">\r\n <ul id=\'inactive_columns\'></ul>\r\n <div id="side_panel__actions" style="visibility: hidden">\r\n <div id="add-computed-column" class="side_panel-action"><span class="psp-icon psp-icon__add"></span><span class="psp-title__columnName">New Column</span></div>\r\n </div>\r\n </div>\r\n <perspective-computed-column></perspective-computed-column>\r\n </div>\r\n <div id="resize_bar"></div>\r\n </div>\r\n <div class="column noselect">\r\n <div id=\'top_panel\'>\r\n <div class="rrow">\r\n <div id="row_pivots">\r\n <div class="psp-text-field">\r\n <ul class="psp-text-field__input" for="row-pivots"></ul>\r\n <label for="row_pivots"></label>\r\n </div>\r\n </div>\r\n </div>\r\n <span id="transpose_button" class="rrow centered" title="Transpose Pivots">&#x21C4;</span>\r\n <div class="rrow">\r\n <div id="column_pivots">\r\n <div class="psp-text-field">\r\n <ul class="psp-text-field__input" for="column-pivots"></ul>\r\n <label for="column_pivots"></label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="rrow">\r\n <div id="sort">\r\n <div class="psp-text-field">\r\n <ul class="psp-text-field__input" for="sort"></ul>\r\n <label for="sort"></label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="rrow" style=\'flex-grow:3;height:auto;flex:1 1 400px;max-width:none\'>\r\n <div id="filters">\r\n <div class="psp-text-field">\r\n <ul class="psp-text-field__input" for=\'filters\'></ul>\r\n <label for="filters"></label>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div id="pivot_chart_container">\r\n <div class="plugin_information plugin_information--warning hidden" id="plugin_information--size">\r\n <span class="plugin_information__text" id="plugin_information_count">Estimated rendering</span>\r\n <span class="plugin_information__actions">\r\n <span class="plugin_information__action">Render all points</span>\r\n <span class="plugin_information__action--close" id="close_button"></span>\r\n </span>\r\n </div>\r\n <div id="pivot_chart"></div>\r\n </div>\r\n </div>\r\n\r\n <div id="config_button" class="noselect button" title="Right click for additional options"></div>\r\n\r\n <div id=\'drop_target\'>\r\n <div id=\'drop_target_inner\'>\r\n\r\n </div>\r\n </div>\r\n\r\n <slot></slot>\r\n </div>\r\n\r\n</template>'},function(t,e,n){(t.exports=n(8)(!1)).push([t.i,':host #app #top_panel #row_pivots label:before{content:var(--row_pivots--before, "Row Pivots")}:host #app #top_panel #column_pivots label:before{content:var(--column_pivots--before, "Column Pivots")}:host #app #top_panel #sort label:before{content:"Sort"}:host #app #top_panel #filters label:before{content:"Filter"}:host #app #side_panel #active_columns perspective-row:before{font-size:10px;margin-left:var(--column_selector--width,20px);left:1px;padding:var(--column_type--padding,0 0 0 5px);color:var(--inactive--color,#666);position:absolute;margin-top:-15px}:host:hover #config_button{opacity:1}#config_button{background:0 0;opacity:1!important}.button{padding:var(--button--padding,12px 14px 24px 8px)}[settings=true] #config_button{opacity:1!important}@keyframes expand{from{opacity:0}}:host{position:relative;display:inline-block;overflow:hidden;word-wrap:normal;--highcharts-full--gradient:linear-gradient(#4d342f 0%, #e4521b 22.5%, #feeb65 42.5%, #f0f0f0 50%, #dcedc8 57.5%, #42b3d5 67.5%, #1a237e 100%);--highcharts-positive--gradient:linear-gradient(#dcedc8 0%, #42b3d5 35%, #1a237e 100%);--highcharts-negative--gradient:linear-gradient(#feeb65 100%, #e4521b 70%, #4d342f 0%);--hypergrid-tree-header--background:#fff;--hypergrid-tree-header--color:#666;--hypergrid-header--background:#fff;--hypergrid-separator--color:#666;--hypergrid-header--color:#666;--hypergrid-positive--color:#1078d1;--hypergrid-negative--color:#ff8888;--hypergrid--font-size:12px;--hypergrid-header--font-size:12px;--hypergrid--font-family:Helvetica,Arial,sans-serif;--hypergrid-header--font-family:Helvetica,Arial,sans-serif;--hypergrid-row-hover--background:#f6f6f6;--hypergrid-row-hover--color:#666;--hypergrid-cell-hover--background:#eeeeee;--hypergrid-cell-hover--color:#666;--integer--hypergrid--text-align:right;--float--hypergrid--text-align:right;--d3fc-series:rgba(31, 119, 180, 0.5);--d3fc-series-1:#0366d6;--d3fc-series-2:#ff7f0e;--d3fc-series-3:#2ca02c;--d3fc-series-4:#d62728;--d3fc-series-5:#9467bd;--d3fc-series-6:#8c564b;--d3fc-series-7:#e377c2;--d3fc-series-8:#7f7f7f;--d3fc-series-9:#bcbd22;--d3fc-series-10:#17becf;--d3fc-full--gradient:linear-gradient(#4d342f 0%, #e4521b 22.5%, #feeb65 42.5%, #f0f0f0 50%, #dcedc8 57.5%, #42b3d5 67.5%, #1a237e 100%);--d3fc-positive--gradient:linear-gradient(#dcedc8 0%, #42b3d5 35%, #1a237e 100%);--d3fc-negative--gradient:linear-gradient(#feeb65 100%, #e4521b 70%, #4d342f 0%)}:host #pivot_chart{position:absolute;width:100%;height:100%;display:grid;justify-content:stretch}:host .hidden{display:none}:host .psp-icon{color:#999}:host .psp-icon:hover{cursor:pointer}:host .psp-icon__add{display:flex;width:20px;min-width:20px;margin-top:-2px;height:0;font-family:var(--column-add--font-family,inherit)}:host .psp-icon__add:before{font-feature-settings:"liga";content:var(--column-add--before, "+")}:host .psp-title__columnName{display:flex;margin-left:34px;margin-top:3px;font-size:12px;color:#666}:host .side_panel-action:hover{cursor:pointer}:host *{box-sizing:border-box;line-height:1.42857143}:host #app{display:flex;position:relative;width:100%;height:100%}:host #app.hide_message #drop_target{display:none}:host .chart{padding:15px}:host #pivot_chart_container{flex-grow:1;position:relative;border:var(--plugin--border,none);overflow:hidden}:host .config{display:flex}:host #column_pivots #psp_row,:host #filters #psp_row,:host #row_pivots #psp_row,:host #sort #psp_row{display:inline}:host ul{min-height:20px;padding:0;margin:0;font-size:12px}:host #active_columns perspective-row{animation:.3s ease-out expand;--column-selector--color:var(--active--color, #999);--is_visible--before:var(--active-column-selector--content, "\\25CF")}:host #inactive_columns perspective-row{animation:.3s ease-out expand;--column-selector--color:var(--inactive-column-selector--color, #999);--is_visible--before:var(--inactive-column-selector--content, "\\25CB");--row_draggable--animation:none;opacity:var(--inactive-column--opacity,1);transition:opacity .3s}:host #inactive_columns perspective-row:hover{transition:none;opacity:1}:host #top_panel perspective-row{animation:.3s ease-out expand;--column-name--flex:1;padding:0 10px 0 0;margin-bottom:-1px;display:var(--top-panel-row--display,inline-block);--psp_row-display:inline-block}:host #active_columns,:host #inactive_columns{list-style:none;padding:0;width:100%;margin:var(--column-container--margin,8px 0 0 0);overflow-y:auto;overflow-x:hidden;position:relative}:host #inactive_columns perspective-row.active{--row_draggable--margin:0px 0px 0px 10px;opacity:0;height:0!important;overflow:hidden}:host .columns_horizontal #sub_columns.collapse #side_panel__actions{margin-top:0}:host #sub_columns{min-height:33.3%;flex-shrink:100000;display:flex;flex-direction:column;overflow-x:hidden;width:100%}:host #sub_columns.collapse{flex-shrink:0;min-height:64px}:host #sub_columns.collapse #inactive_columns{display:none}:host .column{display:flex;list-style:none;flex-direction:column;flex:1}:host .rrow{display:flex;flex-grow:1;min-height:24px;align-items:center;max-width:400px;list-style:none;min-width:140px;margin:var(--column-drop-container--margin,5px 10px 0 0)}:host .rrow>div{display:flex;min-height:24px;flex-direction:column;justify-content:flex-end}:host #top_panel>.rrow>*{width:100%;padding:12px 0;margin:-12px 0}:host .rrow #psp_row{white-space:nowrap}:host #sort perspective-row{--sort_order-display:inline;--sort_order-padding:0 0 0 4px}:host #sort perspective-row[sort-order=asc]{--row-sort-order--before:var(--sort-order-asc--before, "\\2191")}:host #sort perspective-row[sort-order=desc]{--row-sort-order--before:var(--sort-order-desc--before, "\\2193")}:host #sort perspective-row[sort-order=none]{--row-sort-order--before:var(--sort-order-none--before, "-")}:host #sort perspective-row[sort-order="asc abs"]{--row-sort-order--before:var(--sort-order-asc-abs--before, "\\21E7")}:host #sort perspective-row[sort-order="desc abs"]{--row-sort-order--before:var(--sort-order-desc-abs--before, "\\21E9")}:host #sort perspective-row[sort-order="col asc"]{--row-sort-order--before:var(--sort-order-col-asc--before, "\\2192")}:host #sort perspective-row[sort-order="col desc"]{--row-sort-order--before:var(--sort-order-col-desc--before, "\\2190")}:host #sort perspective-row[sort-order="col asc abs"]{--row-sort-order--before:var(--sort-order-col-asc-abs--before, "\\21E8")}:host #sort perspective-row[sort-order="col desc abs"]{--row-sort-order--before:var(--sort-order-col-desc-abs--before, "\\21E6")}:host #top_panel perspective-row::after{content:","}:host #top_panel perspective-row:last-child::after{display:none;content:""!important}:host label{white-space:nowrap;display:inline-block;vertical-align:middle;margin-bottom:0}:host #drop_target{position:absolute;left:0;top:0;right:0;bottom:0;padding:30px}:host #drop_target_inner{width:100%;height:100%;display:flex;align-items:center;justify-content:center}:host #drop_target_inner h3{font-weight:300}:host #config_button{position:absolute;top:0;left:0;opacity:0;display:flex;align-items:center;justify-content:center;transition:opacity .2s ease-out}:host #config_button:hover{color:var(--active--color,inherit)}:host .button{cursor:pointer;font-size:16px;font-weight:400}:host select::-ms-expand{display:none}:host select{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;background:var(--select--background,url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgNC45IDEwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0LjkgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojQUFBQUFBO30KPC9zdHlsZT4KPHRpdGxlPmFycm93czwvdGl0bGU+Cjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMS40LDQuNyAyLjUsMy4yIDMuNSw0LjcgIi8+Cjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMy41LDUuMyAyLjUsNi44IDEuNCw1LjMgIi8+Cjwvc3ZnPg==) no-repeat 95% 50%);background-color:#fff;color:inherit;border-radius:5px;height:24px;padding:var(--select--padding,0 0 0 6px);font-size:12px;font-family:inherit}:host input{padding:0 10px}:host .centered{display:flex;align-items:center;justify-content:center}:host #top_panel{display:flex;flex-wrap:wrap;justify-content:flex-start;padding:var(--top_panel--padding,5px 0 10px 0);max-width:1000px;z-index:1}:host #side_panel{position:relative;flex:0 0 auto;padding:var(--side_panel--padding,10px 10px 0 11px)}:host #side_panel>div{display:flex}:host #vis_selector_container{min-height:29px;margin-left:var(--column_selector--width,20px);overflow:hidden}:host #vis_selector{flex-grow:1}:host #transpose_button{cursor:pointer;min-width:5px;max-width:5px;flex-grow:0;color:#999;font-family:Arial;font-size:12px}:host #transpose_button:hover{color:var(--active--color,inherit)}:host #resize_bar{position:absolute;top:0;right:0;bottom:0;width:8px;cursor:col-resize}',""])},function(t,e,n){(t.exports=n(8)(!1)).push([t.i,'.psp-text-field{position:relative;background-color:var(--column-drop-container--background,#fff);border-width:0 0 1px;border-style:solid;border-color:var(--inactive--color,#ccc);display:flex;flex-direction:column;justify-content:flex-end;min-height:24px;transition:border-color .3s ease-out}:host(.dragging) .psp-text-field.dropping{border-bottom-width:2px;border-style:solid;border-color:var(--active--color,#1a7da1)}:host(.dragging) .psp-text-field{border-bottom-width:1px;border-style:solid;border-color:var(--active--color,#1a7da1)}.psp-text-field>.psp-text-field__input{border:0;line-height:20px;vertical-align:bottom;padding-bottom:0;display:none}.psp-text-field__input+label{height:var(--column--height,auto);line-height:17px;box-sizing:border-box;color:var(--inactive--color,#ccc);font-weight:400;white-space:nowrap;padding:var(--column-drop-container--padding,0 0 2px 10px);font-size:12px;display:inline-block;transition:font-size .3s,margin .3s}.dropping .psp-text-field__input,.psp-text-field__input:not(:empty){display:block!important}.dropping .psp-text-field__input::after{content:"|";width:0;overflow:visible;margin-top:-1px;position:absolute}.dropping *{pointer-events:none}.dropping .psp-text-field label,.psp-text-field__input:not(:empty)+label{position:absolute;top:0;margin:var(--column-drop-label--margin,0);font-size:var(--column-drop-label--font-size,12px);display:var(--column-drop-label--display,none)}.dropping perspective-row.inserting{border-top:25px solid transparent}.dropping perspective-row.postserting{border-bottom:25px solid transparent}:host perspective-row{height:var(--column--height,21px);--row_draggable-height:var(--column--height, 21px)}:host([row-pivots]) #active_columns perspective-row{height:var(--active-column--height,41px);min-height:var(--active-column--height,41px);--row_draggable-height:var(--active-column--height, 41px);--column_aggregate-display:inline-block;--is_visible--height:var(--active-column-selector--height, auto)}:host{font-family:Arial,sans-serif;background-color:#eee;color:#333}:host #app.columns_horizontal #columns_container{flex-direction:row-reverse}:host #app.columns_horizontal #active_columns,:host #app.columns_horizontal #inactive_columns{display:flex;flex-direction:column;flex:0 1 auto;width:100%}:host #app.columns_horizontal #inactive_columns{flex:1 1 auto}:host #app.columns_horizontal #sub_columns{flex-shrink:1}:host #app.columns_horizontal #sub_columns perspective-row{--column_name-margin:0 25px 0 0}:host #app.columns_horizontal #side_panel #divider{display:none}:host #app.columns_horizontal perspective-computed-column{max-height:none;margin-right:24px}:host perspective-computed-column{--is_visible--before:var(--active-column-selector--content, "\\25CF");--row_draggable-background-color:var(--column--background, white);--row_draggable-border-color:var(--inactive--color, #ccc);--row_draggable-border-width:0 0 1px 0;--row_draggable-overflow:hidden;--column-selector--color:var(--active--color, #999)}:host #side_panel perspective-row{--name-before-display:inline-block;--is_visible-display:inline-block;--row_draggable-padding:0px 10px 0px 0px;--row_close-display:none;--column_name-max-width:180px}:host #top_panel perspective-row{--row_draggable-display:inline-flex;--row-draggable--flex-direction:row;--row-draggable--align-items:center}:host #columns_container{flex-direction:column;height:calc(100% - 29px)}:host #columns_container #active_columns{flex:0 1 auto}:host #columns_container #active_columns perspective-row{margin-bottom:2px;--row_draggable-background-color:var(--column--background, white);--row_draggable-border-color:var(--inactive--color, #ccc);--row_draggable-border-width:0 0 1px 0;--row_draggable-overflow:hidden;--row_draggable--justify-content:space-evenly}:host #columns_container #active_columns perspective-row:last-child{--row_draggable-border-width:var(--row_draggable-border-last-child-width, 0 0 1px 0)}:host #columns_container #active_columns perspective-row[drop-target]{--row_draggable_children-opacity:0}:host #columns_container #active_columns perspective-row.null-column{--row_draggable_children-opacity:0;pointer-events:none}:host #columns_container #active_columns.one_lock perspective-row:first-child,:host #columns_container #active_columns.two_lock perspective-row:first-child{--active--color:#ccc;--is_visible--cursor:normal}:host #columns_container #active_columns.two_lock perspective-row:nth-child(2){--active--color:#ccc;--is_visible--cursor:normal}:host #columns_container #active_columns perspective-row:only-child{--active--color:#ccc;--is_visible--cursor:normal}:host #columns_container #active_columns,:host #columns_container #inactive_columns{border:none!important}:host ul{transition:background-color .2s,border-color .2s;outline:0;border-style:solid;border-color:var(--inactive--color,#ccc);font-size:12px;padding:var(--column-drop-container--padding,0 10px 0 10px);border-width:0 0 1px}:host #side_panel #side_panel__actions{display:flex;flex-direction:column;flex-shrink:1000;justify-content:flex-start;position:relative;overflow-y:hidden;width:100%;padding-top:20px;margin:var(--column-container--margin,8px);min-height:36px}:host #side_panel #side_panel__actions button.side_panel-action{align-items:center;align-content:center;background:0 0;border:none;display:flex;flex-direction:row;font-size:12px;padding-right:10px;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host #side_panel #side_panel__actions button.side_panel-action span{margin-left:5px;font-size:15px}:host #side_panel #side_panel__actions button.side_panel-action:hover{cursor:pointer}:host .noselect{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host svg .highcharts-legend-box{fill:none}:host #pivot_chart{background-color:var(--plugin--background,#fff)}:host #drop_target{border:var(--plugin--border,none);background:var(--plugin--background,#fff)}:host #pivot_chart_container{box-shadow:var(--plugin--box-shadow,none)}:host #filters perspective-row{margin:0;--filter_operator-display:inline-block;--filter_operand-display:inline-block}:host .plugin_information{color:var(--warning--color,inherit);display:flex;position:absolute;flex-direction:row;justify-content:flex-start;padding:.5rem;width:100%;z-index:10000;transition:opacity .3s ease-out;opacity:1}:host .plugin_information.hidden{display:none;opacity:0}:host .plugin_information.plugin_information--warning{background:#ffca28}:host .plugin_information .plugin_information__text{font-size:12px;margin-right:.25rem;display:flex;flex-wrap:wrap;align-items:center}:host .plugin_information .plugin_information__text:before{content:var(--overflow_hint--before);font-family:var(--overflow_hint--font-family);color:var(--overflow_hint--color);padding:var(--overflow_hint--padding);font-size:16px}:host .plugin_information .plugin_information__action{font-size:12px;text-decoration:underline;cursor:pointer;margin-right:.25rem}:host .plugin_information .plugin_information__action--close{margin-left:12px;display:inline-flex;font-size:12px;cursor:pointer}:host .plugin_information .plugin_information__actions{margin-left:auto;display:flex;align-items:center;flex-direction:row;justify-content:flex-start}:host .plugin_information .plugin_information--overflow-hint-percent{font-weight:700}:host .plugin_information .plugin_information--overflow-hint{white-space:nowrap}:host #drop_target_inner h3{color:#aaa;font-weight:300}:host #config_button,:host #copy_button,:host #download_button,:host #reset_button{font-weight:400;font-family:var(--button--font-family,Arial);color:var(--inactive--color,#999);font-size:var(--button--font-size,16px);transition:opacity .3s;overflow:hidden}:host #config_button:hover,:host #copy_button:hover,:host #download_button:hover,:host #reset_button:hover{color:var(--active--color,inherit)}:host #config_button:before{font-feature-settings:"liga";content:var(--settings-button--content, "\\1F527")}:host #reset_button:before{font-feature-settings:"liga";content:var(--reset_button--before, "Reset")}:host #close_button:before{font-family:var(--button--font-family,Arial);font-feature-settings:"liga";content:var(--close_button--before, "Close")}:host #download_button:before{font-feature-settings:"liga";content:var(--download_button--before, "Save")}:host #copy_button:before{font-feature-settings:"liga";content:var(--copy_button--before, "Copy")}:host #menubar{display:none;flex-direction:column;padding-top:55px}:host #app.show_menu #menubar{display:flex}:host select{border-radius:0;background-color:var(--select--background-color,#fff);border-style:solid;border-color:var(--inactive--color,#ccc);border-width:0 0 1px}:host select:focus{outline:0}:host input{border-style:solid;border-color:var(--inactive--color,#ccc);border-width:0 0 1px}:host input::placeholder{color:var(--inactive--color,#ccc)}:host option[value=""]{color:#fff!important}:host #app{background-color:inherit}:host ::-webkit-scrollbar,:host ::shadow ::-webkit-scrollbar{width:12px}:host ::-webkit-scrollbar-thumb,:host ::shadow ::-webkit-scrollbar-thumb{background:#ccc}:host ::-webkit-scrollbar-track,:host ::shadow ::-webkit-scrollbar-track{background:0 0}',""])},function(t,e){t.exports=v},function(t,e){t.exports=b},function(t,e){t.exports=y},function(t,e){t.exports=w},function(t,e){t.exports=x},function(t,e){t.exports=E},function(t,e,n){n(3),n(9),n(4);const r="dnd-poly-dragstart-pending",o="dnd-poly-dragstart-cancel",i=["none","copy","copyLink","copyMove","link","linkMove","move","all"],s=["none","copy","move","link"],a=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}();function c(t){return t&&t.tagName}function l(t,e,n){void 0===n&&(n=!0),document.addEventListener(t,e,!!a&&{passive:n})}function u(t,e){document.removeEventListener(t,e)}function p(t,e,n,r){void 0===r&&(r=!1);const o=a?{passive:!0,capture:r}:r;return t.addEventListener(e,n,o),{off:function(){t.removeEventListener(e,n,o)}}}function d(t){return 0===t.length?0:t.reduce((function(t,e){return e+t}),0)/t.length}function h(t,e){for(let n=0;n<t.changedTouches.length;n++)if(t.changedTouches[n].identifier===e)return!0;return!1}function f(t,e,n){const r=[],o=[];for(let n=0;n<e.touches.length;n++){const i=e.touches[n];r.push(i[t+"X"]),o.push(i[t+"Y"])}n.x=d(r),n.y=d(o)}const _=["","-webkit-"];function m(t,e,n,r,o){void 0===o&&(o=!0);let i=e.x,s=e.y;r&&(i+=r.x,s+=r.y),o&&(i-=parseInt(t.offsetWidth,10)/2,s-=parseInt(t.offsetHeight,10)/2);const a="translate3d("+i+"px,"+s+"px, 0)";for(let e=0;e<_.length;e++){const r=_[e]+"transform";t.style[r]=a+" "+n[e]}}const g=function(){function t(t,e){this._dataStore=t,this._setDragImageHandler=e,this._dropEffect=s[0]}return Object.defineProperty(t.prototype,"dropEffect",{get:function(){return this._dropEffect},set:function(t){0!==this._dataStore.mode&&i.indexOf(t)>-1&&(this._dropEffect=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"types",{get:function(){if(0!==this._dataStore.mode)return Object.freeze(this._dataStore.types)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"effectAllowed",{get:function(){return this._dataStore.effectAllowed},set:function(t){2===this._dataStore.mode&&i.indexOf(t)>-1&&(this._dataStore.effectAllowed=t)},enumerable:!0,configurable:!0}),t.prototype.setData=function(t,e){if(2===this._dataStore.mode){if(t.indexOf(" ")>-1)throw new Error("illegal arg: type contains space");this._dataStore.data[t]=e,-1===this._dataStore.types.indexOf(t)&&this._dataStore.types.push(t)}},t.prototype.getData=function(t){if(1===this._dataStore.mode||2===this._dataStore.mode)return this._dataStore.data[t]||""},t.prototype.clearData=function(t){if(2===this._dataStore.mode){if(t&&this._dataStore.data[t]){delete this._dataStore.data[t];const e=this._dataStore.types.indexOf(t);return void(e>-1&&this._dataStore.types.splice(e,1))}this._dataStore.data={},this._dataStore.types=[]}},t.prototype.setDragImage=function(t,e,n){2===this._dataStore.mode&&this._setDragImageHandler(t,e,n)},t}();function v(t,e){return t?t===i[0]?s[0]:0===t.indexOf(i[1])||t===i[7]?s[1]:0===t.indexOf(i[4])?s[3]:t===i[6]?s[2]:s[1]:3===e.nodeType&&"A"===e.tagName?s[3]:s[1]}function b(t,e,n,r,o,i,s){void 0===i&&(i=!0),void 0===s&&(s=null),console.log("dnd-poly: dispatching "+t);const a=function(t,e,n,r,o,i,s){void 0===s&&(s=null);const a=e.changedTouches[0],c=new Event(n,{bubbles:!0,cancelable:r});c.dataTransfer=i,c.relatedTarget=s,c.screenX=a.screenX,c.screenY=a.screenY,c.clientX=a.clientX,c.clientY=a.clientY,c.pageX=a.pageX,c.pageY=a.pageY;const l=t.getBoundingClientRect();return c.offsetX=c.clientX-l.left,c.offsetY=c.clientY-l.top,c}(e,n,t,i,document.defaultView,o,s),c=!e.dispatchEvent(a);return r.mode=0,c}function y(t,e){if(!t||t===i[7])return e;if(e===s[1]){if(0===t.indexOf(s[1]))return s[1]}else if(e===s[3]){if(0===t.indexOf(s[3])||t.indexOf("Link")>-1)return s[3]}else if(e===s[2]&&(0===t.indexOf(s[2])||t.indexOf("Move")>-1))return s[2];return s[0]}const w=function(){function t(t,e,n,r){this._initialEvent=t,this._config=e,this._sourceNode=n,this._dragOperationEndedCb=r,this._dragOperationState=0,this._immediateUserSelection=null,this._currentDropTarget=null,console.log("dnd-poly: setting up potential drag operation.."),this._lastTouchEvent=t,this._initialTouch=t.changedTouches[0],this._touchMoveHandler=this._onTouchMove.bind(this),this._touchEndOrCancelHandler=this._onTouchEndOrCancel.bind(this),l("touchmove",this._touchMoveHandler,!1),l("touchend",this._touchEndOrCancelHandler,!1),l("touchcancel",this._touchEndOrCancelHandler,!1)}return t.prototype._setup=function(){const t=this;console.log("dnd-poly: starting drag and drop operation"),this._dragOperationState=1,this._currentDragOperation=s[0],this._dragDataStore={data:{},effectAllowed:void 0,mode:3,types:[]},this._currentHotspotCoordinates={x:null,y:null},this._dragImagePageCoordinates={x:null,y:null};let e=this._sourceNode;if(this._dataTransfer=new g(this._dragDataStore,(function(n,r,o){e=n,"number"!=typeof r&&"number"!=typeof o||(t._dragImageOffset={x:r||0,y:o||0})})),this._dragDataStore.mode=2,this._dataTransfer.dropEffect=s[0],b("dragstart",this._sourceNode,this._lastTouchEvent,this._dragDataStore,this._dataTransfer))return console.log("dnd-poly: dragstart cancelled"),this._dragOperationState=3,this._cleanup(),!1;f("page",this._lastTouchEvent,this._dragImagePageCoordinates);const n=this._config.dragImageSetup(e);var r;if(this._dragImageTransforms=(r=n,_.map((function(t){const e=r.style[t+"transform"];return e&&"none"!==e?e.replace(/translate\(\D*\d+[^,]*,\D*\d+[^,]*\)\s*/g,""):""}))),n.style.position="absolute",n.style.left="0px",n.style.top="0px",n.style.zIndex="999999",n.classList.add("dnd-poly-drag-image"),n.classList.add("dnd-poly-icon"),this._dragImage=n,!this._dragImageOffset)if(this._config.dragImageOffset)this._dragImageOffset={x:this._config.dragImageOffset.x,y:this._config.dragImageOffset.y};else if(this._config.dragImageCenterOnTouch){const t=getComputedStyle(e);this._dragImageOffset={x:0-parseInt(t.marginLeft,10),y:0-parseInt(t.marginTop,10)}}else{const t=e.getBoundingClientRect(),n=getComputedStyle(e);this._dragImageOffset={x:t.left-this._initialTouch.clientX-parseInt(n.marginLeft,10)+t.width/2,y:t.top-this._initialTouch.clientY-parseInt(n.marginTop,10)+t.height/2}}return m(this._dragImage,this._dragImagePageCoordinates,this._dragImageTransforms,this._dragImageOffset,this._config.dragImageCenterOnTouch),document.body.appendChild(this._dragImage),this._iterationIntervalId=window.setInterval((function(){t._iterationLock?console.log("dnd-poly: iteration skipped because previous iteration hast not yet finished."):(t._iterationLock=!0,t._dragAndDropProcessModelIteration(),t._iterationLock=!1)}),this._config.iterationInterval),!0},t.prototype._cleanup=function(){console.log("dnd-poly: cleanup"),this._iterationIntervalId&&(clearInterval(this._iterationIntervalId),this._iterationIntervalId=null),u("touchmove",this._touchMoveHandler),u("touchend",this._touchEndOrCancelHandler),u("touchcancel",this._touchEndOrCancelHandler),this._dragImage&&(this._dragImage.parentNode.removeChild(this._dragImage),this._dragImage=null),this._dragOperationEndedCb(this._config,this._lastTouchEvent,this._dragOperationState)},t.prototype._onTouchMove=function(t){const e=this;if(!1!==h(t,this._initialTouch.identifier)){if(this._lastTouchEvent=t,0===this._dragOperationState){let e=void 0;if(this._config.dragStartConditionOverride)try{e=this._config.dragStartConditionOverride(t)}catch(t){console.error("dnd-poly: error in dragStartConditionOverride hook: "+t),e=!1}else e=1===t.touches.length;return e?void(!0===this._setup()&&(this._initialEvent.preventDefault(),t.preventDefault())):void this._cleanup()}if(console.log("dnd-poly: moving draggable.."),t.preventDefault(),f("client",t,this._currentHotspotCoordinates),f("page",t,this._dragImagePageCoordinates),this._config.dragImageTranslateOverride)try{let n=!1;if(this._config.dragImageTranslateOverride(t,{x:this._currentHotspotCoordinates.x,y:this._currentHotspotCoordinates.y},this._immediateUserSelection,(function(t,r){e._dragImage&&(n=!0,e._currentHotspotCoordinates.x+=t,e._currentHotspotCoordinates.y+=r,e._dragImagePageCoordinates.x+=t,e._dragImagePageCoordinates.y+=r,m(e._dragImage,e._dragImagePageCoordinates,e._dragImageTransforms,e._dragImageOffset,e._config.dragImageCenterOnTouch))})),n)return}catch(t){console.log("dnd-poly: error in dragImageTranslateOverride hook: "+t)}m(this._dragImage,this._dragImagePageCoordinates,this._dragImageTransforms,this._dragImageOffset,this._config.dragImageCenterOnTouch)}},t.prototype._onTouchEndOrCancel=function(t){if(!1!==h(t,this._initialTouch.identifier)){if(this._config.dragImageTranslateOverride)try{this._config.dragImageTranslateOverride(void 0,void 0,void 0,(function(){}))}catch(t){console.log("dnd-poly: error in dragImageTranslateOverride hook: "+t)}0!==this._dragOperationState?(t.preventDefault(),this._dragOperationState="touchcancel"===t.type?3:2):this._cleanup()}},t.prototype._dragAndDropProcessModelIteration=function(){const t=this,e=this._currentDragOperation;this._dragDataStore.mode=3,this._dataTransfer.dropEffect=s[0];const n=b("drag",this._sourceNode,this._lastTouchEvent,this._dragDataStore,this._dataTransfer);if(n&&(console.log("dnd-poly: drag event cancelled."),this._currentDragOperation=s[0]),n||2===this._dragOperationState||3===this._dragOperationState)return this._dragOperationEnded(this._dragOperationState)?void function(t,e,n,r){const o=getComputedStyle(t);if("hidden"===o.visibility||"none"===o.display)return console.log("dnd-poly: source node is not visible. skipping snapback transition."),void r();e.classList.add("dnd-poly-snapback");const i=getComputedStyle(e),s=parseFloat(i.transitionDuration);if(isNaN(s)||0===s)return console.log("dnd-poly: no transition used - skipping snapback"),void r();console.log("dnd-poly: starting dragimage snap back");const a=t.getBoundingClientRect(),c={x:a.left,y:a.top};c.x+=document.body.scrollLeft||document.documentElement.scrollLeft,c.y+=document.body.scrollTop||document.documentElement.scrollTop,c.x-=parseInt(o.marginLeft,10),c.y-=parseInt(o.marginTop,10);const l=parseFloat(i.transitionDelay),u=Math.round(1e3*(s+l));m(e,c,n,void 0,!1),setTimeout(r,u)}(this._sourceNode,this._dragImage,this._dragImageTransforms,(function(){t._finishDragOperation()})):void this._finishDragOperation();const r=this._config.elementFromPoint(this._currentHotspotCoordinates.x,this._currentHotspotCoordinates.y);console.log("dnd-poly: new immediate user selection is: "+r);const o=this._currentDropTarget;r!==this._immediateUserSelection&&r!==this._currentDropTarget&&(this._immediateUserSelection=r,null!==this._currentDropTarget&&(this._dragDataStore.mode=3,this._dataTransfer.dropEffect=s[0],b("dragexit",this._currentDropTarget,this._lastTouchEvent,this._dragDataStore,this._dataTransfer,!1)),null===this._immediateUserSelection?(this._currentDropTarget=this._immediateUserSelection,console.log("dnd-poly: current drop target changed to null")):(this._dragDataStore.mode=3,this._dataTransfer.dropEffect=v(this._dragDataStore.effectAllowed,this._sourceNode),b("dragenter",this._immediateUserSelection,this._lastTouchEvent,this._dragDataStore,this._dataTransfer)?(console.log("dnd-poly: dragenter default prevented"),this._currentDropTarget=this._immediateUserSelection,this._currentDragOperation=y(this._dataTransfer.effectAllowed,this._dataTransfer.dropEffect)):this._immediateUserSelection!==document.body&&(this._currentDropTarget=document.body))),o!==this._currentDropTarget&&c(o)&&(console.log("dnd-poly: current drop target changed."),this._dragDataStore.mode=3,this._dataTransfer.dropEffect=s[0],b("dragleave",o,this._lastTouchEvent,this._dragDataStore,this._dataTransfer,!1,this._currentDropTarget)),c(this._currentDropTarget)&&(this._dragDataStore.mode=3,this._dataTransfer.dropEffect=v(this._dragDataStore.effectAllowed,this._sourceNode),!1===b("dragover",this._currentDropTarget,this._lastTouchEvent,this._dragDataStore,this._dataTransfer)?(console.log("dnd-poly: dragover not prevented on possible drop-target."),this._currentDragOperation=s[0]):(console.log("dnd-poly: dragover prevented."),this._currentDragOperation=y(this._dataTransfer.effectAllowed,this._dataTransfer.dropEffect))),console.log("dnd-poly: d'n'd iteration ended. current drag operation: "+this._currentDragOperation),e!==this._currentDragOperation&&this._dragImage.classList.remove("dnd-poly-"+e);const i="dnd-poly-"+this._currentDragOperation;this._dragImage.classList.add(i)},t.prototype._dragOperationEnded=function(t){console.log("dnd-poly: drag operation end detected with "+this._currentDragOperation);const e=this._currentDragOperation===s[0]||null===this._currentDropTarget||3===t;return e?c(this._currentDropTarget)&&(this._dragDataStore.mode=3,this._dataTransfer.dropEffect=s[0],b("dragleave",this._currentDropTarget,this._lastTouchEvent,this._dragDataStore,this._dataTransfer,!1)):c(this._currentDropTarget)&&(this._dragDataStore.mode=1,this._dataTransfer.dropEffect=this._currentDragOperation,!0===b("drop",this._currentDropTarget,this._lastTouchEvent,this._dragDataStore,this._dataTransfer)?this._currentDragOperation=this._dataTransfer.dropEffect:this._currentDragOperation=s[0]),e},t.prototype._finishDragOperation=function(){console.log("dnd-poly: dragimage snap back transition ended"),this._dragDataStore.mode=3,this._dataTransfer.dropEffect=this._currentDragOperation,b("dragend",this._sourceNode,this._lastTouchEvent,this._dragDataStore,this._dataTransfer,!1),this._dragOperationState=2,this._cleanup()},t}(),x={iterationInterval:150,tryFindDraggableTarget:function(t){let e=t.target;do{if(!1!==e.draggable){if(!0===e.draggable)return e;if(e.getAttribute&&"true"===e.getAttribute("draggable"))return e}}while((e=e.parentNode)&&e!==document.body)},dragImageSetup:function(t){const e=t.cloneNode(!0);return function t(e,n){if(1===e.nodeType){const t=getComputedStyle(e);for(let e=0;e<t.length;e++){const r=t[e];n.style.setProperty(r,t.getPropertyValue(r),t.getPropertyPriority(r))}if(n.style.pointerEvents="none",n.removeAttribute("id"),n.removeAttribute("class"),n.removeAttribute("draggable"),"CANVAS"===n.nodeName){const t=e,r=n,o=t.getContext("2d").getImageData(0,0,t.width,t.height);r.getContext("2d").putImageData(o,0,0)}}if(e.hasChildNodes())for(let r=0;r<e.childNodes.length;r++)t(e.childNodes[r],n.childNodes[r])}(t,e),e},elementFromPoint:function(t,e){return document.elementFromPoint(t,e)}};let E;function S(t,e){if(console.log("dnd-poly: global touchstart"),E)return void console.log("dnd-poly: drag operation already active");const n=x.tryFindDraggableTarget(t,e);if(n)try{E=new w(t,x,n,T)}catch(e){throw T(x,t,3),e}else console.log("dnd-poly: no draggable at touchstart coordinates")}function O(t){console.log("dnd-poly: setup delayed dragstart..");const e=t.target,n=t.composedPath(),i=function(t){console.log("dnd-poly: aborting delayed drag because of "+t.type),a.off(),c.off(),l.off(),u.off(),e&&e.dispatchEvent(new CustomEvent(o,{bubbles:!0,cancelable:!0})),clearTimeout(s)};e&&e.dispatchEvent(new CustomEvent(r,{bubbles:!0,cancelable:!0}));const s=window.setTimeout((function(){console.log("dnd-poly: starting delayed drag.."),a.off(),c.off(),l.off(),u.off(),S(t,n)}),x.holdToDrag),a=p(e,"touchend",i),c=p(e,"touchcancel",i),l=p(e,"touchmove",i),u=p(window,"scroll",i,!0)}function T(t,e,n){if(0===n&&(console.log("dnd-poly: Drag never started. Last event was "+e.type),t.defaultActionOverride))try{t.defaultActionOverride(e),e.defaultPrevented&&console.log("dnd-poly: defaultActionOverride has taken care of triggering the default action. preventing default on original event")}catch(t){console.log("dnd-poly: error in defaultActionOverride: "+t)}E=null}!function(t){if(t&&Object.keys(t).forEach((function(e){x[e]=t[e]})),!x.forceApply){const t=function(){const t={dragEvents:"ondragstart"in document.documentElement,draggable:"draggable"in document.documentElement,userAgentSupportingNativeDnD:void 0},e=!!window.chrome||/chrome/i.test(navigator.userAgent);return t.userAgentSupportingNativeDnD=!(/iPad|iPhone|iPod|Android/.test(navigator.userAgent)||e&&"ontouchstart"in document.documentElement),t}();if(t.userAgentSupportingNativeDnD&&t.draggable&&t.dragEvents)return!1}console.log("dnd-poly: Applying mobile drag and drop polyfill."),x.holdToDrag?(console.log("dnd-poly: holdToDrag set to "+x.holdToDrag),l("touchstart",O,!1)):l("touchstart",S,!1)}({tryFindDraggableTarget:function(t,e){const n=e||t.composedPath();for(let t of n){let e=t;do{if(!1!==e.draggable&&e.getAttribute&&"true"===e.getAttribute("draggable"))return e}while((e=e.parentNode)&&e!==document.body)}},elementFromPoint:function(t,e){for(let n of this._path)if(n.elementFromPoint){let r=n.elementFromPoint(t,e);if(r){for(;r.shadowRoot;)r=r.shadowRoot.elementFromPoint(t,e);return r}}},dragStartConditionOverride:function(t){return this._path=t.composedPath(),!0},holdToDrag:500})},function(t,e){t.exports=S},function(t,e){t.exports=O},function(t,e){t.exports=T},function(t,e){t.exports=A},function(t,e){t.exports=N},function(t,e){t.exports=C},function(t,e,n){"use strict";n.r(e),n(3),n(14),n(28),n(7),n(9),n(15),n(29),n(30),n(4),n(31),n(32),n(33);var r=n(1),o=n(5),i=(n(34),n(11),n(18)),s=n.n(i);class a{constructor(){this.edit=!1,this.column_name=void 0,this.computation=void 0,this.input_columns=[],this.swap_target=!1,this.name_edited=!1,this.computed_function_name=""}is_valid(){const t=s()(this);return!t.includes(null)&&!t.includes(void 0)&&!t.includes("")&&this.input_columns.length===this.computation.num_params}}n(17),n(10);const c=Symbol("formatter");class l{constructor(t,e,n,r,o,i,s=1){this.category=i,this.name=t,this[c]=e,this.input_type=n,this.return_type=r,this.func=o.toString(),this.num_params=s}}var u=n(19),p=n.n(u),d=n(20),h=n.n(d);function f(t){if(0==this._active_columns.children.length)return 0;{let n=!1;for(let r in this._active_columns.children){var e;let o=this._active_columns.children[r];if(n=n||(null==o?void 0:null===(e=o.classList)||void 0===e?void 0:e.contains("null-column")),o.offsetTop+o.offsetHeight>t.offsetY+this._active_columns.scrollTop)return parseInt(r)}let r=this._active_columns.children.length;return n&&r--,r}}function _(t){let e=t.target.getRootNode().host,n=e;n="PERSPECTIVE-VIEWER"===n.tagName?t.target.parentElement:e.parentElement;let r=Array.prototype.slice.call(n.children).indexOf("PERSPECTIVE-ROW"===e.tagName?e:t.target),o=n.getAttribute("for");if(this.hasAttribute(o)){let t=JSON.parse(this.getAttribute(o));t.splice(r,1),0===t.length?this.removeAttribute(o):this.setAttribute(o,JSON.stringify(t))}}function m(t){t.preventDefault(),t.currentTarget.classList.remove("dropping"),this._drop_target_hover&&this._drop_target_hover.removeAttribute("drop-target");let e=t.dataTransfer.getData("text");if(!e)return;e=JSON.parse(e);let n=t.currentTarget.querySelector("ul").getAttribute("for")||t.currentTarget.getAttribute("id").replace("_","-"),r=JSON.parse(this.getAttribute(n)||"[]"),o=r.indexOf(e[0]);-1!==o&&r.splice(o,1);const i=n.indexOf("filter")>-1;if(i?this.setAttribute(n,JSON.stringify(r.concat([e]))):n.indexOf("sort")>-1?this.setAttribute(n,JSON.stringify(r.concat([[e[0]]]))):this.setAttribute(n,JSON.stringify(r.concat([e[0]]))),"pivots"===this._plugin.deselectMode&&this._get_visible_column_count()>1&&"sort"!==n&&!i){for(let t of this.shadowRoot.querySelectorAll("#active_columns perspective-row"))if(t.getAttribute("name")===e[0]){this._active_columns.removeChild(t);break}this._update_column_view()}this._debounce_update()}function g(t){let e=t.target.parentElement.parentElement;Array.prototype.slice(this._active_columns.children).indexOf(e)>-1&&this._get_visible_column_count()>1&&"move"!==t.dataTransfer.dropEffect&&(this._active_columns.removeChild(e),this._update_column_view()),this._active_columns.classList.remove("dropping")}function v(t){let e=t.relatedTarget;for(;e&&e!==this._active_columns;)e=e.parentElement;null===e&&(this._active_columns.classList.remove("dropping"),this._drop_target_null&&(this._active_columns.replaceChild(this._drop_target_null,this._drop_target_hover),delete this._drop_target_null),this._drop_target_hover.parentElement===this._active_columns&&this._active_columns.removeChild(this._drop_target_hover),-1!==this._original_index&&this._active_columns.insertBefore(this._drop_target_hover,this._active_columns.children[this._original_index]),this._drop_target_hover.removeAttribute("drop-target"))}function b(){this._drop_target_null&&(this._drop_target_null.parentElement===this._active_columns?Object(r.e)(this._active_columns,this._drop_target_hover,this._drop_target_null):this._active_columns.replaceChild(this._drop_target_null,this._drop_target_hover),delete this._drop_target_null)}function y(t){b.call(this),this._active_columns.children[t]&&this._drop_target_hover!==this._active_columns.children[t]&&(this._drop_target_null=this._active_columns.children[t],Object(r.e)(this._active_columns,this._active_columns.children[t],this._drop_target_hover))}function w(t){b.call(this),this._active_columns.children[t]&&(this._drop_target_null=this._active_columns.children[t],this._active_columns.replaceChild(this._drop_target_hover,this._active_columns.children[t]))}function x(t){var e,n,o,i,s,a,c,l;t.preventDefault(),t.dataTransfer.dropEffect="move","dropping"!==t.currentTarget.className&&t.currentTarget.classList.add("dropping"),this._drop_target_hover.hasAttribute("drop-target")||this._drop_target_hover.toggleAttribute("drop-target",!0);let u=f.call(this,t);const p=Array.prototype.slice.call(this._active_columns.children).indexOf(this._drop_target_hover),d=this._active_columns.children[u],h=u<(null===(e=this._plugin.initial)||void 0===e?void 0:null===(n=e.names)||void 0===n?void 0:n.length)-1,_=this._drop_target_hover!==this._active_columns.children[u],m=-1!==this._original_index,g=m&&this._original_index<(null===(o=this._plugin.initial)||void 0===o?void 0:null===(i=o.names)||void 0===i?void 0:i.length)-1,v=m&&this._original_index>=(null===(s=this._plugin.initial)||void 0===s?void 0:null===(a=s.names)||void 0===a?void 0:a.length)-1,x=m&&this._original_index<(null===(c=this._plugin.initial)||void 0===c?void 0:c.count),E=!(u<(null===(l=this._plugin.initial)||void 0===l?void 0:l.count))&&(null==d?void 0:d.classList.contains("null-column"));if(x&&E)b.call(this);else if(h&&v&&_){var S,O,T,A,N;b.call(this),this._original_index===(null===(S=this._plugin.initial)||void 0===S?void 0:null===(O=S.names)||void 0===O?void 0:O.length)-1&&this._drop_target_hover===this._active_columns.children[this._original_index]&&this._active_columns.children.length===(null===(T=this._plugin.initial)||void 0===T?void 0:null===(A=T.names)||void 0===A?void 0:A.length)?(this._drop_target_null=this._active_columns.children[u],Object(r.e)(this._active_columns,this._active_columns.children[u],this._drop_target_hover)):(null===(N=this._active_columns.children[u])||void 0===N?void 0:N.classList.contains("null-column"))?this._drop_target_hover!==this._active_columns.children[u]&&(this._drop_target_null=this._active_columns.children[u],this._active_columns.replaceChild(this._drop_target_hover,this._active_columns.children[u])):(this._drop_target_null=this._active_columns.children[u],this._active_columns.replaceChild(this._drop_target_hover,this._active_columns.children[u]),this._active_columns.insertBefore(this._drop_target_null,this._active_columns.children[this._original_index]))}else h&&m&&_?y.call(this,u):h&&!m&&_?w.call(this,u):!h&&g&&_?y.call(this,u):E&&m?y.call(this,u):E&&!m?w.call(this,u):p<u?u+1<this._active_columns.children.length?this._active_columns.children[u+1].hasAttribute("drop-target")||(b.call(this),this._active_columns.insertBefore(this._drop_target_hover,this._active_columns.children[u+1])):this._active_columns.children[this._active_columns.children.length-1].hasAttribute("drop-target")||(b.call(this),this._active_columns.appendChild(this._drop_target_hover)):u<this._active_columns.children.length?this._active_columns.children[u].hasAttribute("drop-target")||(b.call(this),this._active_columns.insertBefore(this._drop_target_hover,this._active_columns.children[u])):this._active_columns.children[this._active_columns.children.length-1].hasAttribute("drop-target")||(b.call(this),this._active_columns.appendChild(this._drop_target_hover))}function E(t){t.preventDefault(),delete this._drop_target_null,t.currentTarget.classList.remove("dropping"),this._drop_target_hover.parentElement===this._active_columns&&this._drop_target_hover.removeAttribute("drop-target"),t.dataTransfer.getData("text")&&this._update_column_view()}function S(t){t.stopPropagation(),t.preventDefault(),t.currentTarget.classList.add("dropping")}function O(t){t.stopPropagation(),t.preventDefault(),t.currentTarget.classList.add("dropping"),t.dataTransfer.dropEffect="move"}function T(t){t.currentTarget==t.target&&(t.stopPropagation(),t.preventDefault(),t.currentTarget.classList.remove("dropping"))}var A=n(0);function N(){const t=k(["\n <optgroup label=",">","</optgroup>\n "]);return N=function(){return t},t}function C(){const t=k(["\n <option value=",">","</option>\n "]);return C=function(){return t},t}function k(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function L(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(L.prototype,HTMLElement.prototype),Object.setPrototypeOf(L,HTMLElement);const j={hour_of_day:new l("Hour of Day",t=>"hour_of_day(".concat(t,")"),"datetime","integer",(function(t){return new Date(t).getHours()}),["Time"]),day_of_week:new l("Day of Week",t=>"day_of_week(".concat(t,")"),"datetime","string",(function(t){return["1 Sunday","2 Monday","3 Tuesday","4 Wednesday","5 Thursday","6 Friday","7 Saturday"][new Date(t).getDay()]}),["Time"]),month_of_year:new l("Month of Year",t=>"month_of_year(".concat(t,")"),"datetime","string",(function(t){return["01 January","02 February","03 March","04 April","05 May","06 June","07 July","08 August","09 September","10 October","11 November","12 December"][new Date(t).getMonth()]}),["Time"]),second_bucket:new l("Bucket (s)",t=>"second_bucket(".concat(t,")"),"datetime","datetime",(function(t){return new Date(1e3*Math.floor(new Date(t).getTime()/1e3))}),["Time"]),minute_bucket:new l("Bucket (m)",t=>"minute_bucket(".concat(t,")"),"datetime","datetime",(function(t){let e=new Date(t);return e.setSeconds(0),e.setMilliseconds(0),e}),["Time"]),hour_bucket:new l("Bucket (h)",t=>"hour_bucket(".concat(t,")"),"datetime","datetime",(function(t){let e=new Date(t);return e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e}),["Time"]),day_bucket:new l("Bucket (D)",t=>"day_bucket(".concat(t,")"),"datetime","date",(function(t){let e=new Date(t);return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e}),["Time"]),week_bucket:new l("Bucket (W)",t=>"week_bucket(".concat(t,")"),"datetime","date",(function(t){let e=new Date(t),n=e.getDay(),r=e.getDate()-n+(0==n?-6:1);return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setDate(r),e}),["Time"]),month_bucket:new l("Bucket (M)",t=>"month_bucket(".concat(t,")"),"datetime","date",(function(t){let e=new Date(t);return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setDate(1),e}),["Time"]),year_bucket:new l("Bucket (Y)",t=>"year_bucket(".concat(t,")"),"datetime","date",(function(t){let e=new Date(t);return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setDate(1),e.setMonth(1),e}),["Time"]),"10_bucket":new l("Bucket (10)",t=>"bin10(".concat(t,")"),"float","float",t=>10*Math.floor(t/10),["Math"]),"100_bucket":new l("Bucket (100)",t=>"bin100(".concat(t,")"),"float","float",t=>100*Math.floor(t/100),["Math"]),"1000_bucket":new l("Bucket (1000)",t=>"bin1000(".concat(t,")"),"float","float",t=>1e3*Math.floor(t/1e3),["Math"]),"0.1_bucket":new l("Bucket (1/10)",t=>"bin10th(".concat(t,")"),"float","float",t=>.1*Math.floor(t/.1),["Math"]),"0.01_bucket":new l("Bucket (1/100)",t=>"bin100th(".concat(t,")"),"float","float",t=>.01*Math.floor(t/.01),["Math"]),"0.001_bucket":new l("Bucket (1/1000)",t=>"bin1000th(".concat(t,")"),"float","float",t=>.001*Math.floor(t/.001),["Math"]),add:new l("+",(t,e)=>"(".concat(t," + ").concat(e,")"),"float","float",(t,e)=>t+e,["Math"],2),subtract:new l("-",(t,e)=>"(".concat(t," - ").concat(e,")"),"float","float",(t,e)=>t-e,["Math"],2),multiply:new l("*",(t,e)=>"(".concat(t," * ").concat(e,")"),"float","float",(t,e)=>t*e,["Math"],2),divide:new l("/",(t,e)=>"(".concat(t," / ").concat(e,")"),"float","float",(t,e)=>t/e,["Math"],2),invert:new l("1/x",t=>"(1 / ".concat(t,")"),"float","float",t=>1/t,["Math"],1),pow:new l("x^2",t=>"(".concat(t," ^ 2)"),"float","float",t=>Math.pow(t,2),["Math"],1),sqrt:new l("sqrt",t=>"sqrt(".concat(t,")"),"float","float",t=>Math.sqrt(t),["Math"],1),abs:new l("abs",t=>"abs(".concat(t,")"),"float","float",t=>Math.abs(t),["Math"],1),percent_a_of_b:new l("%",(t,e)=>"(".concat(t," %% ").concat(e,")"),"float","float",(t,e)=>t/e*100,["Math"],2),uppercase:new l("Uppercase",t=>"uppercase(".concat(t,")"),"string","string",t=>t.toUpperCase(),["Text"]),lowercase:new l("Lowercase",t=>"lowercase(".concat(t,")"),"string","string",t=>t.toLowerCase(),["Text"]),length:new l("length",t=>"length(".concat(t,")"),"string","integer",t=>t.length,["Text"]),concat_space:new l("concat_space",t=>"concat_space(".concat(t,")"),"string","string",(t,e)=>t+" "+e,["Text"],2),concat_comma:new l("concat_comma",t=>"concat_comma(".concat(t,")"),"string","string",(t,e)=>t+", "+e,["Text"],2)};function D(t,e,n){let r=n;const o=e.category;for(const t of o)r=r[t]=r[t]||{};r[t]=e}function I(){const t={};for(const e in j)D(e,j[e],t);return t}let P=I();Object(r.b)(p.a,h.a)(class extends L{constructor(){super(),this.state=new a,this.column_names=[],this.type_markers={float:"123",integer:"123",string:"abc",boolean:"t/f",datetime:"mdy",date:"mdy"}}get computations(){return j}connectedCallback(){this._register_ids(),Object(A.render)(Array.from(this._selector_template()),this._computation_selector),this._register_callbacks(),this._update_computation(null),this._register_inputs()}_register_computations(){P=I(),Object(A.render)(Array.from(this._selector_template()),this._computation_selector)}*_selector_template(t=P){for(const[e,n]of Object.entries(t))n.name?yield Object(A.html)(C(),e,n.name):yield Object(A.html)(N(),e,Array.from(this._selector_template(n)))}_register_inputs(){this._clear_error_messages(),this._disable_save_button(),this._input_columns.innerHTML="";const t=this.state.computation,e=t.input_type;this.state.input_columns=[],this.state.swap_target=!1;for(let n=0;n<t.num_params;n++)this._input_columns.innerHTML+='<div class="psp-cc-computation__input-column"\n data-index="'.concat(n,'"\n drop-target>\n <span class="psp-label__requiredType ').concat(e,'"></span>\n <span class="psp-label__placeholder">Param ').concat(n+1,'</span>\n <div class="psp-cc-computation__drop-target-hover"></div>\n </div>');for(let t of this._input_columns.children)t.addEventListener("drop",this._drop_column.bind(this)),t.addEventListener("dragstart",this._drag_column.bind(this)),t.addEventListener("dragend",this._remove_column.bind(this)),t.addEventListener("dragover",this._hover_column.bind(this)),t.addEventListener("dragleave",this._pass_column.bind(this));this._clear_column_name()}_parse_data_transfer(t){const e=JSON.parse(t);if(e)return{column_name:e[0],column_type:e[3]}}_drag_column(t){this.state.computation.num_params>1&&(this.state.swap_target=t.currentTarget)}_hover_column(t){t.preventDefault(),t.dataTransfer.dropEffect="move";const e=t.currentTarget,n=e.querySelector(".psp-cc-computation__drop-target-hover");"dropping"!==e.className&&e.classList.add("dropping"),n&&!n.hasAttribute("drop-target")&&n.toggleAttribute("drop-target","true"),2===e.children.length&&e.parentNode.insertBefore(n,e.nextSibling)}_drop_column(t){const e=t.currentTarget;t.preventDefault(),e.classList.remove("dropping");const n=void 0!==this.state.swap_target&&e.innerHTML.indexOf("perspective-row")>-1,r=this._parse_data_transfer(t.dataTransfer.getData("text"));if(r){if(n){const n=e.children[0],r=n.getAttribute("name"),o=n.getAttribute("type");t.swapTarget=this.state.swap_target,this._set_input_column(t,r,o),this.state.swap_target=!1,delete t.swapTarget}this._set_input_column(t,r.column_name,r.column_type)}}deselect_column(t){this.state.input_columns=this.state.input_columns.map(e=>e&&e.name===t?void 0:e),this._apply_state(this.state.input_columns,this.state.computation)}_remove_column(t){t.currentTarget.classList.remove("dropping")}_pass_column(t){const e=t.currentTarget,n=e.getBoundingClientRect(),r=t.pageX>=n.left&&t.pageX<=n.right-2,o=t.pageY>=n.top&&t.pageY<=n.bottom-2;if(!(r&&o||null===e||"SPAN"===e.nodeName)){e.classList.remove("dropping");const t=e.querySelector(".psp-cc-computation__drop-target-hover");t&&t.removeAttribute("drop-target")}}_apply_state(t,e,n){this._update_computation(null,this.state.computed_function_name),this.state.input_columns=t;const r=this._input_columns.children;for(let t=0;t<this.state.input_columns.length;t++)void 0!==this.state.input_columns[t]&&this._set_input_column({currentTarget:r[t]},this.state.input_columns[t].name,this.state.input_columns[t].type);this._column_name_input.innerText=n||"",this._set_column_name(),this.state.name_edited=void 0!==n,this.state.is_valid()&&this._enable_save_button()}_set_column_name(){let t=this._column_name_input.innerText;if(0==t.length)return this.state.column_name=void 0,void this._disable_save_button();this.state.column_name=t,this.state.is_valid()&&this._enable_save_button()}_auto_column_name(){if(!this.state.name_edited){if(this.state.input_columns.length>0){let t=[];for(let e of this.state.input_columns)t.push(e.name);this.state.computation[c]?this._column_name_input.innerText=this.state.computation[c].apply(void 0,t):this._column_name_input.innerText="".concat(this.state.computation.name,"(").concat(t.join(", "),")")}else this._column_name_input.innerText="";this._set_column_name()}}_clear_column_name(){this._column_name_input.innerText="",this.state.name_edited=!1,this._set_column_name()}_set_input_column(t,e,n){const r=this.state.computation,o=r.input_type,i=this.state.input_columns;let s;s=t.swapTarget?t.swapTarget:t.currentTarget;const a=Number.parseInt(s.getAttribute("data-index"));if("float"!==o&&"datetime"!==o&&n!==o||"float"===o&&"float"!==n&&"integer"!==n||"datetime"===o&&"datetime"!==n&&"date"!==n)return this._register_inputs(),void s.classList.remove("dropped");s.classList.add("dropped");const c=s.querySelector(".psp-cc-computation__drop-target-hover");c&&c.removeAttribute("drop-target"),s.innerHTML="";const l={name:e,type:n};i[a]=l,this.state.input_columns=i,i.filter(t=>t).length===r.num_params&&this._auto_column_name(),this.dispatchEvent(new CustomEvent("perspective-computed-column-update",{detail:{target:s,column:l}})),this.state.is_valid()&&this._enable_save_button()}_update_computation(t,e){const n=this._computation_selector;e?null==t&&(n.value=e):e=n[n.selectedIndex].value;const r=Object.assign({},j[e]);if(void 0===r)throw"Undefined computation could not be set.";const o=r.num_params,i=r.input_type,s=r.return_type;let a=!0;this.state.computation&&(a=i!==this.state.computation.input_type||o!==this.state.computation.num_params),this._computation_type.innerHTML='<span class="'.concat(s,'">').concat(this.type_markers[s],"</span>"),this.state.computation=r,this.state.computed_function_name=e,a||null===t?(this._register_inputs(),this._clear_column_name()):this._auto_column_name()}_set_error_message(t,e){e&&(e.innerText=t,e.style.display="block")}_clear_error_messages(){this._column_name_error.innerText="",this._column_name_error.style.display="none"}_disable_save_button(){this._save_button.toggleAttribute("disabled",!0)}_enable_save_button(){this._save_button.removeAttribute("disabled")}_save_computed_column(){if(this.state.is_valid()){const t=this.state;if(this.column_names.includes(this.state.column_name))return void this._set_error_message("Column names must be unique.",this._column_name_error);this._clear_error_messages();const e=new CustomEvent("perspective-computed-column-save",{detail:{name:t.column_name,inputs:t.input_columns.map(t=>t.name),func:t.computed_function_name}});this.dispatchEvent(e),this.column_names.push(t.column_name)}}_close_computed_column(){this.style.display="none",this._side_panel_actions.style.display="flex",this.classList.remove("edit"),this._column_name_input.innerText="",this._input_columns.innerHTML="";for(let t of this._input_columns.children)t.classList.remove("dropped");this.state=new a,this._update_computation()}_register_ids(){this._side_panel_actions=this.parentElement.querySelector("#side_panel__actions"),this._close_button=this.shadowRoot.querySelector("#psp-cc__close"),this._column_name_input=this.shadowRoot.querySelector("#psp-cc-name"),this._column_name_error=this.shadowRoot.querySelector("#psp-cc__error--name"),this._computation_selector=this.shadowRoot.querySelector("#psp-cc-computation__select"),this._computation_type=this.shadowRoot.querySelector("#psp-cc-computation__type"),this._input_columns=this.shadowRoot.querySelector("#psp-cc-computation-inputs"),this._save_button=this.shadowRoot.querySelector("#psp-cc-button-save")}_register_callbacks(){this._close_button.addEventListener("click",this._close_computed_column.bind(this)),this._computation_selector.addEventListener("change",this._update_computation.bind(this)),this._column_name_input.addEventListener("dragover",T.bind(this)),this._column_name_input.addEventListener("keyup",t=>{this.state.name_edited=this._column_name_input.innerText&&this._column_name_input.innerText.length>0,this._set_column_name(t)}),this._save_button.addEventListener("click",this._save_computed_column.bind(this))}}),n(35),n(36);var M=n(12),R=n.n(M),z=n(13),H=n.n(z),F=n(21),q=n.n(F),U=n(6),B=n.n(U),W=n(2),V=n(22),G=n.n(V),J=n(23),Y=n.n(J);function $(){const t=K(["\n "," ","\n "]);return $=function(){return t},t}function X(){const t=K(['\n <optgroup label="weighted mean">\n ',"\n </optgroup>\n "]);return X=function(){return t},t}function Z(){const t=K(['\n <option value="','" data-desc="','">',"</option>\n "]);return Z=function(){return t},t}function K(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Q(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(Q.prototype,HTMLElement.prototype),Object.setPrototypeOf(Q,HTMLElement);const tt=document.createElement("span");function et(t,e=0){tt.innerHTML=t,document.body.appendChild(tt);const n="".concat(Math.max(e,tt.offsetWidth)+20,"px");return document.body.removeChild(tt),n}tt.style.visibility="hidden",tt.style.fontFamily="monospace",tt.style.fontSize="12px",tt.style.position="absolute",Object(r.b)(G.a,{toString:()=>Y.a+"\n"+q.a})(class extends Q{set name(t){this.shadowRoot.querySelector("#name").innerHTML=this.getAttribute("name")}_option_template(t,e){return Object(A.html)(Z(),t,e,e||t)}_select_template(t,e){const n=B.a[t][e]||[],r=Object(A.html)(X(),this._weights.map(t=>this._option_template(JSON.stringify(["weighted mean",t]),t)));return Object(A.html)($(),n.map(t=>this._option_template(t)),"integer"===e||"float"===e?r:A.nothing)}set_weights(t){this._weights=t}set type(t){const e=this.shadowRoot.querySelector("#name"),n=this.getAttribute("type");if(!n)return;const r=Object(W.get_type_config)(n);r.type&&e.classList.add(r.type),e.classList.add(n);const o=this.shadowRoot.querySelector("#column_aggregate"),i=this.shadowRoot.querySelector("#filter_operator");Object(A.render)(this._select_template("TYPE_AGGREGATES",r.type||n),o),Object(A.render)(this._select_template("TYPE_FILTERS",r.type||n),i),this.hasAttribute("aggregate")?this.aggregate=this.getAttribute("aggregate"):this.aggregate=r.aggregate,this.hasAttribute("filter")&&(this.filter=this.getAttribute("filter"));const s=this.shadowRoot.querySelector("#filter_operand");this._callback=t=>this._update_filter(t),s.addEventListener("keyup",this._callback.bind(this))}choices(t){const e=this.shadowRoot.querySelector("#filter_operand"),n=this.shadowRoot.querySelector("#filter_operator"),r=new H.a(e,{label:this.getAttribute("name"),list:t,minChars:0,autoFirst:!0,filter:function(t,e){return H.a.FILTER_CONTAINS(t,e.match(/[^,]*$/)[0])},item:function(t,e){return H.a.ITEM(t,e.match(/[^,]*$/)[0])},replace:function(t){const e=this.input.value.match(/^.+,\s*|/)[0];"in"===n.value||"not in"===n.value?this.input.value=e+t+", ":this.input.value=e+t}});""===e.value&&r.evaluate(),e.focus(),this._filter_operand.addEventListener("focus",()=>{0===e.value.trim().length&&r.evaluate()}),e.addEventListener("awesomplete-selectcomplete",this._callback)}set filter(t){const e=this.shadowRoot.querySelector("#filter_operator"),n=JSON.parse(this.getAttribute("filter"));e.value!==n.operator&&(e.value=n.operator||Object(W.get_type_config)(this.getAttribute("type")).filter_operator),e.style.width=et(e.value);const r=this.shadowRoot.querySelector("#filter_operand"),o=n.operand?n.operand.toString():"";this._initialized||(r.value=o),e.value===B.a.FILTER_OPERATORS.isNull||e.value===B.a.FILTER_OPERATORS.isNotNull?r.style.display="none":(r.style.display="inline-block",r.style.width=et(o,30))}set aggregate(t){const e=this.shadowRoot.querySelector("#column_aggregate"),n=this.getAttribute("aggregate");if(e.value!==n&&this.hasAttribute("type")){const t=this.getAttribute("type");e.value=n||Object(W.get_type_config)(t).aggregate}this._blur_agg_dropdown()}set computed_column(t){}_get_computed_data(){const t=JSON.parse(this.getAttribute("computed_column"));return{column_name:t.column_name,input_columns:t.input_columns,input_type:t.input_type,computation:t.computation,type:t.type}}_update_filter(t){const e=this.shadowRoot.querySelector("#filter_operand"),n=this.shadowRoot.querySelector("#filter_operator");let r=e.value;switch(this.getAttribute("type")){case"float":r=parseFloat(r);break;case"integer":r=parseInt(r);break;case"boolean":r=r.toLowerCase().indexOf("true")>-1}n.value!==B.a.FILTER_OPERATORS.isIn&&n.value!==B.a.FILTER_OPERATORS.isNotIn||(r=r.split(",").map(t=>t.trim())),this.setAttribute("filter",JSON.stringify({operator:n.value,operand:r})),this.dispatchEvent(new CustomEvent("filter-selected",{detail:t}))}_set_data_transfer(t){if(this.hasAttribute("filter")){const{operator:e,operand:n}=JSON.parse(this.getAttribute("filter"));t.dataTransfer.setData("text",JSON.stringify([this.getAttribute("name"),e,n,this.getAttribute("type"),this.getAttribute("aggregate")]))}else t.dataTransfer.setData("text",JSON.stringify([this.getAttribute("name"),Object(W.get_type_config)(this.getAttribute("type")).filter_operator,void 0,this.getAttribute("type"),this.getAttribute("aggregate")]));this.dispatchEvent(new CustomEvent("row-drag"))}_register_ids(){this._li=this.shadowRoot.querySelector(".row_draggable"),this._visible=this.shadowRoot.querySelector(".is_visible"),this._row_close=this.shadowRoot.querySelector("#row_close"),this._agg_dropdown=this.shadowRoot.querySelector("#column_aggregate"),this._sort_order=this.shadowRoot.querySelector("#sort_order"),this._filter_operand=this.shadowRoot.querySelector("#filter_operand"),this._filter_operator=this.shadowRoot.querySelector("#filter_operator"),this._edit_computed_column_button=this.shadowRoot.querySelector("#row_edit"),this._column_aggregate_category=this.shadowRoot.querySelector("#column_aggregate_category")}_blur_agg_dropdown(){if(this._agg_dropdown.blur(),"["===this._agg_dropdown.value[0])for(const t of this._agg_dropdown.querySelectorAll("optgroup option")){const e=t.getAttribute("data-desc");t.innerHTML="mean by ".concat(e)}}_focus_agg_dropdown(){for(const t of this._agg_dropdown.querySelectorAll("optgroup option")){const e=t.getAttribute("data-desc");t.innerHTML="by ".concat(e)}}_register_callbacks(){this._li.addEventListener("dragstart",this._set_data_transfer.bind(this)),this._li.addEventListener("dragend",()=>{this.dispatchEvent(new CustomEvent("row-dragend"))}),this._visible.addEventListener("mousedown",t=>this.dispatchEvent(new CustomEvent("visibility-clicked",{detail:t}))),this._row_close.addEventListener("mousedown",t=>this.dispatchEvent(new CustomEvent("close-clicked",{detail:t}))),this._agg_dropdown.addEventListener("focus",this._focus_agg_dropdown.bind(this)),this._agg_dropdown.addEventListener("change",t=>{this._blur_agg_dropdown();const e=this._agg_dropdown.value;this.setAttribute("aggregate",e),this.dispatchEvent(new CustomEvent("aggregate-selected",{detail:t}))}),this._sort_order.addEventListener("click",t=>{this.dispatchEvent(new CustomEvent("sort-order",{detail:t}))});const t=R()(t=>this._update_filter(t),50);this._filter_operator.addEventListener("change",()=>{this._filter_operand.focus(),this._filter_operator.style.width=et(this._filter_operator.value),this.shadowRoot.querySelector("#filter_operand").style.width=et(""+this._filter_operand.value,30),t()}),this._edit_computed_column_button.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("perspective-computed-column-edit",{bubbles:!0,detail:this._get_computed_data()}))})}connectedCallback(){this._register_ids(),this._register_callbacks()}});var nt=n(24),rt=n.n(nt),ot=n(25),it=n.n(ot),st=n(26),at=n.n(st),ct=(n(37),n(38),n(39),n(27)),lt=n.n(ct);class ut{constructor(t,e=!1){this._on_cancel=t,this._cancelled=!1,this.initial=e}cancel(){!this._cancelled&&this._on_cancel&&(this._on_cancel(),this._on_cancel=void 0),this._cancelled=!0}get cancelled(){return this._cancelled}}function pt(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(pt.prototype,HTMLElement.prototype),Object.setPrototypeOf(pt,HTMLElement);class dt extends pt{get _plugin(){let t=o.b.getInstance(),e=this.getAttribute("plugin");return e||(e=Object.keys(t)[0],this.setAttribute("plugin",e)),t[e]||t[Object.keys(t)[0]]}_get_view_dom_columns(t,e){t=t||"#active_columns perspective-row";let n=Array.prototype.slice.call(this.shadowRoot.querySelectorAll(t));return e?n.map(e).filter(t=>t):n}_get_view_all_columns(){return Array.prototype.slice.call(this.shadowRoot.querySelectorAll("#inactive_columns perspective-row"))}_get_view_active_columns(){return Array.prototype.slice.call(this.shadowRoot.querySelectorAll("#active_columns perspective-row"))}_get_view_active_valid_columns(){return Array.prototype.slice.call(this.shadowRoot.querySelectorAll("#active_columns perspective-row")).filter(t=>!t.classList.contains("null-column"))}_get_view_all_column_names(){return this._get_view_all_columns().map(t=>t.getAttribute("name"))}_get_view_active_column_names(){return this._get_view_active_columns().map(t=>t.getAttribute("name"))}_get_view_all_valid_column_names(){return this._get_view_all_column_names().filter(t=>t)}_get_view_active_valid_column_names(){return this._get_view_active_column_names().filter(t=>t)}_get_view_active_valid_column_count(){return this._get_view_active_valid_column_names().length}_get_view_columns({active:t=!0}={}){let e;return e=t?"#active_columns perspective-row":"#inactive_columns perspective-row",this._get_view_dom_columns(e,t=>t.getAttribute("name"))}_get_view_aggregates(t){return t=t||"#active_columns perspective-row",this._get_view_dom_columns(t,t=>{let e=t.getAttribute("aggregate");if("["===e[0])try{e=JSON.parse(e)}catch(t){console.error(t)}const n=t.getAttribute("name");return n&&{op:e,column:n}})}_get_view_row_pivots(){return this._get_view_dom_columns("#row_pivots perspective-row",t=>t.getAttribute("name"))}_get_view_column_pivots(){return this._get_view_dom_columns("#column_pivots perspective-row",t=>t.getAttribute("name"))}_get_view_filter_nodes(){return this._get_view_dom_columns("#filters perspective-row")}_get_view_filters(){return this._get_view_dom_columns("#filters perspective-row",t=>{let{operator:e,operand:n}=JSON.parse(t.getAttribute("filter"));return[t.getAttribute("name"),e,n]})}_get_view_sorts(){return this._get_view_dom_columns("#sort perspective-row",t=>{let e=t.getAttribute("sort-order")||"asc";return[t.getAttribute("name"),e]})}_get_visible_column_count(){return this._get_view_dom_columns().length}get_aggregate_attribute(){const t=JSON.parse(this.getAttribute("aggregates"))||{},e=new Set,n=Object.keys(t).map(n=>(e.add(n),{column:n,op:t[n]}));if(this._aggregate_defaults)for(const t of Object.keys(this._aggregate_defaults))e.has(t)||n.push({column:t,op:this._aggregate_defaults[t]});return n}}function ht(){const t=vt(["Rendering "," of points."]);return ht=function(){return t},t}function ft(){const t=vt(["Rendering "," of columns."]);return ft=function(){return t},t}function _t(){const t=vt(["Rendering "," of columns and "," of points."]);return _t=function(){return t},t}function mt(){const t=vt(['\n <span style="white-space:nowrap">',"</span>\n "]);return mt=function(){return t},t}function gt(){const t=vt(['\n <span title="'," / ",'" class="plugin_information--overflow-hint">&nbsp;<span class="plugin_information--overflow-hint-percent">',"%</span>&nbsp;</span>\n "]);return gt=function(){return t},t}function vt(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function bt(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}let yt={integer:2,string:0,float:3,boolean:4,datetime:1,date:1};const wt=t=>(e,n)=>{const r=yt[t[e]],o=yt[t[n]];let i=0;return i=r==o?e.toLowerCase()<n.toLowerCase()?-1:1:r<o?-1:1,i},xt=t=>{if(t){const e=bt(t[0]),n=bt(t[1]),r=Math.floor(t[0]/t[1]*100);return Object(A.html)(gt(),e,n,r)}},Et=t=>{if(""!==t)return Object(A.html)(mt(),t)},St=(t,...e)=>t.flatMap((t,n)=>[Et(t),xt(e[n])]).filter(t=>t);class Ot extends dt{async _check_recreate_computed_columns(){const t=JSON.parse(this.getAttribute("computed-columns"));if(t.length>0){for(const e of t)await this._create_computed_column({detail:{column_name:e.name,input_columns:e.inputs.map(t=>({name:t})),computation:j[e.func]}});return this._debounce_update({ignore_size_check:!1}),!0}return!1}async _load_table(t,e=!1){this.shadowRoot.querySelector("#app").classList.add("hide_message");const n=this._set_updating();if(this._table&&!e&&this.removeAttribute("computed-columns"),this._clear_state(),this._table=t,this.hasAttribute("computed-columns")&&!e&&await this._check_recreate_computed_columns())return;const[r,o,i]=await Promise.all([t.columns(),t.schema(!0),t.computed_schema()]);this._clear_columns(),this._initial_col_order=r.slice(),this.hasAttribute("columns")||this.setAttribute("columns",JSON.stringify(this._initial_col_order)),r.sort(wt(o));const s=this.get_aggregate_attribute();Object.entries(i).forEach(([t,e])=>{s.find(e=>e.column===t)||s.push({column:t,op:e})});const a=r.concat(Object.keys(i)),c=function(t,e,n){const r=new Set,o=[];for(const n of t){const t=e[n.column],i=Object(W.get_type_config)(t);r.add(n.column),i.type||t?(""!==n.op&&-1!==B.a.TYPE_AGGREGATES[i.type||t].indexOf(n.op)||(n.op=i.aggregate),o.push(n)):console.warn('No column "'.concat(n.column,'" found (specified in aggregates attribute).'))}for(const t of n)r.has(t)||o.push({column:t,op:Object(W.get_type_config)(e[t]).aggregate});return o}(s,o,a);let l=JSON.parse(this.getAttribute("columns"));0===l.filter(t=>a.indexOf(t)>-1).length&&(l=this._initial_col_order),this._aggregate_defaults=function(t,e){const n={};for(const r of e)n[r]=Object(W.get_type_config)(t[r]).aggregate;return n}(o,a);for(const t of a){const e=c.find(e=>e.column===t).op,n=this._new_row(t,o[t],e,null,null,i[t]);this._inactive_columns.appendChild(n),l.includes(t)&&n.classList.add("active")}for(;l.length<(null===(u=this._plugin.initial)||void 0===u?void 0:null===(p=u.names)||void 0===p?void 0:p.length);){var u,p;l.push(null)}for(const t of l){const e=this._new_row(t,o[t]);this._active_columns.appendChild(e)}a.length===l.filter(t=>a.indexOf(t)>-1).length?this._inactive_columns.parentElement.classList.add("collapse"):this._inactive_columns.parentElement.classList.remove("collapse"),this._show_column_container(),!0===await this._table.compute()&&this._show_side_panel_actions(),this.hasAttribute("filters")&&(this.filters=this.getAttribute("filters"));try{await this._debounce_update({force_update:!0})}catch(t){throw console.warn("Initial view failed, resetting UI state"),await this.reset(),t}n()}async get_maxes(){let t,e;const[n,r]=await Promise.all([this._view.schema(),this._view.num_columns()]),o=Object.keys(n||{}).length||1;if(void 0!==this._plugin.max_columns){const e=this._plugin.max_columns%o,n=this._plugin.max_columns+e;t=n<r?n:void 0}return void 0!==this._plugin.max_cells&&(e=Math.ceil(t?this._plugin.max_cells/t:this._plugin.max_cells/(r||1))),{max_cols:t,max_rows:e}}async _warn_render_size_exceeded(t,e){if(this._show_warnings&&(t||e)){const n=await this._view.num_columns(),r=await this._view.num_rows(),o=n*r,i=t&&t<n,s=e&&e<r;if(i&&s){this._plugin_information.classList.remove("hidden");const r=St(_t(),[t,n],[n*e,o]);return Object(A.render)(r,this._plugin_information_message),!0}if(i){this._plugin_information.classList.remove("hidden");const e=St(ft(),[t,n]);return Object(A.render)(e,this._plugin_information_message),!0}if(s){this._plugin_information.classList.remove("hidden");const t=St(ht(),[n*e,o]);return Object(A.render)(t,this._plugin_information_message),!0}this._plugin_information.classList.add("hidden")}return!1}_calculate_throttle_timeout(){let t;const e=this.getAttribute("throttle");if(void 0!==e&&"null"!==e&&this.hasAttribute("throttle")){if(t=parseInt(e),isNaN(t)||t<0)return console.warn('Bad throttle attribute value "'.concat(e,'". Can be (non-negative integer) milliseconds.')),this.removeAttribute("throttle"),0}else{if(!this.__render_times||this.__render_times.length<5)return 0;t=this.__render_times.reduce((t,e)=>t+e,0)/this.__render_times.length,t=Math.min(5e3,t)}return Math.max(0,t)}_view_on_update(t){this._debounced||(this._debounced=setTimeout(async()=>{this._debounced=void 0;const e=this._render_time();this._task&&!this._task.initial&&this._task.cancel();const n=this._task=new ut,r=this._plugin.update||this._plugin.create;try{if(t){const{max_cols:t,max_rows:e}=await this.get_maxes();n.cancelled||(await this._warn_render_size_exceeded(t,e),await r.call(this,this._datavis,this._view,n,t,e))}else await r.call(this,this._datavis,this._view,n);e(),n.cancel()}catch(t){console.error("Error rendering plugin.",t)}finally{this.dispatchEvent(new Event("perspective-view-update"))}},this._calculate_throttle_timeout()))}async _validate_filters(){const t=[];for(const e of this._get_view_filter_nodes()){const n=e.shadowRoot.getElementById("filter_operand"),r=e.shadowRoot.getElementById("row_exclamation"),{operator:o,operand:i}=JSON.parse(e.getAttribute("filter")),s=[e.getAttribute("name"),o,i];await this._table.is_valid_filter(s)?(t.push(s),e.title="",n.style.borderColor="",r.hidden=!0):(e.title="Invalid Filter",n.style.borderColor="red",r.hidden=!1)}return t}_is_config_changed(t){const e=this.getAttribute("plugin");return!(lt()(t,this._previous_config)&&e===this._previous_plugin_name||(this._previous_config=t,this._previous_plugin_name=e,0))}async _new_view({force_update:t=!1,ignore_size_check:e=!1,limit_points:n=!0}={}){if(!this._table)return;this._check_responsive_layout();const r=this._get_view_row_pivots(),o=this._get_view_column_pivots(),i=await this._validate_filters(),s=this._get_view_aggregates();if(0===s.length)return;const a=this._get_view_sorts();let c=s.map(t=>t.column),l={};for(const t of s)l[t.column]=t.op;for(const t of a){const e=t[0];if(-1===c.indexOf(e)&&!(o.indexOf(t)>-1||r.indexOf(t)>-1)){const t=this.get_aggregate_attribute(),{column:n,op:r}=t.reduce((t,n)=>n.column===e?n:t);l[n]=r}}const u={filter:i,row_pivots:r,column_pivots:o,aggregates:l,columns:c,sort:a};this._view&&(this._view.remove_update(this._view_updater),this._view.delete(),this._view=void 0);try{this._view=this._table.view(u),this._view_updater=()=>this._view_on_update(n),this._view.on_update(this._view_updater)}catch(t){throw this._view.delete(),t}const p=this._render_time();this._render_count=(this._render_count||0)+1,this._task&&this._task.cancel();const d=this._task=new ut(()=>this._render_count--,!0);try{const{max_cols:r,max_rows:o}=await this.get_maxes();e||await this._warn_render_size_exceeded(r,o),n?await this._plugin.create.call(this,this._datavis,this._view,d,r,o,t):await this._plugin.create.call(this,this._datavis,this._view,d,void 0,void 0,t)}catch(t){console.warn(t)}finally{this.__render_times||(this.__render_times=[],this.dispatchEvent(new Event("perspective-view-update"))),p(),d.cancel(),0===this._render_count&&(this.removeAttribute("updating"),this.dispatchEvent(new Event("perspective-update-complete")))}}_check_loaded_table(){if(this._table){const t=this._table;delete this._table,this._load_table(t)}}_render_time(){const t=performance.now();return()=>{this.__render_times.unshift(performance.now()-t),this.__render_times=this.__render_times.slice(0,5)}}_restyle_plugin(){if(this._plugin.styleElement){const t=this._task=new ut;this._plugin.styleElement.call(this,this._datavis,this._view,t)}}_clear_state(t=!0){this._task&&this._task.cancel();const e=[];if(this._view){const t=this._view;this._view=void 0,e.push(t.delete()),t.remove_update(this._view_updater),t.remove_delete()}if(this._table&&t){const t=this._table;this._table=void 0,t._owner_viewer&&t._owner_viewer===this&&e.push(t.delete())}return Promise.all(e)}_set_updating(){let t;return this.toggleAttribute("updating",!0),this._updating_promise=new Promise(e=>{t=e}),t}_register_debounce_instance(){const t=R()((t,e,n,r)=>{this._new_view({ignore_size_check:e,force_update:n,limit_points:r}).then(t)},0);this._debounce_update=async({force_update:e=!1,ignore_size_check:n=!1,limit_points:r=!0}={})=>{if(this._table){let o=this._set_updating();await new Promise(o=>t(o,n,e,r)),o()}}}_get_worker(){return this._table?this._table._worker:B.a.shared_worker()}}function Tt(){const t=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n <option value="','">',"</option>\n "]);return Tt=function(){return t},t}const At=t=>{const e=[];for(name in t)e.push(Object(A.html)(Tt(),name,t[name].name||name));return e};class Nt extends Ot{_clear_columns(){this._inactive_columns.innerHTML="",this._active_columns.innerHTML=""}set_aggregate_attribute(t){let e=!1,n=t.reduce((t,n)=>(this._aggregate_defaults[n.column]!==n.op&&(t[n.column]=n.op,e=!0),t),{});e?this.setAttribute("aggregates",JSON.stringify(n)):this.removeAttribute("aggregates")}_get_type(t){let e=this._get_view_dom_columns("#inactive_columns perspective-row");if(e.length>0){const n=e.find(e=>e.getAttribute("name")===t);return n?n.getAttribute("type"):"integer"}return""}_set_row_type(t){const e=this._get_view_dom_columns("#inactive_columns perspective-row").filter(t=>"integer"===t.getAttribute("type")||"float"===t.getAttribute("type")).map(t=>t.getAttribute("name"));t.set_weights(e),t.setAttribute("type",this._get_type(t.getAttribute("name")))}_new_row(t,e,n,r,o,i){let s=document.createElement("perspective-row");if(e=e||this._get_type(t),!n){let r=this.get_aggregate_attribute();n=r&&(n=r.find(e=>e.column===t))?n.op:Object(W.get_type_config)(e).aggregate}if(r&&(s.setAttribute("filter",r),"string"===e)){const e=this._table.view({row_pivots:[t],aggregates:{}});e.to_json().then(t=>{s.choices(this._autocomplete_choices(t))}),e.delete()}o?s.setAttribute("sort-order",o):this._get_view_column_pivots().indexOf(t)>-1?s.setAttribute("sort-order","col asc"):s.setAttribute("sort-order","asc");const a=this._get_view_dom_columns("#inactive_columns perspective-row").filter(t=>"integer"===t.getAttribute("type")||"float"===t.getAttribute("type")).map(t=>t.getAttribute("name"));return s.set_weights(a),null===t?s.classList.add("null-column"):(s.setAttribute("type",e),s.setAttribute("name",t)),s.setAttribute("aggregate",Array.isArray(n)?JSON.stringify(n):n),s.addEventListener("visibility-clicked",this._column_visibility_clicked.bind(this)),s.addEventListener("aggregate-selected",this._column_aggregate_clicked.bind(this)),s.addEventListener("filter-selected",this._column_filter_clicked.bind(this)),s.addEventListener("close-clicked",t=>_.call(this,t.detail)),s.addEventListener("sort-order",this._sort_order_clicked.bind(this)),s.addEventListener("row-drag",()=>{this.classList.add("dragging"),this._active_columns.style.overflow="hidden",this._original_index=Array.prototype.slice.call(this._active_columns.children).findIndex(e=>e.getAttribute("name")===t),-1!==this._original_index?(this._drop_target_hover=this._active_columns.children[this._original_index],setTimeout(()=>s.setAttribute("drop-target",!0))):this._drop_target_hover=this._new_row(t,e,n)}),s.addEventListener("row-dragend",()=>{this._active_columns.style.overflow="auto",this.classList.remove("dragging")}),i&&(s.setAttribute("computed_column",JSON.stringify(i)),s.classList.add("computed")),s}_update_column_view(t,e=!1){if(t||(t=this._get_view_active_column_names()),this._plugin.initial&&this._plugin.initial.names)for(;t.length<this._plugin.initial.names.length;)t.push(null);this.setAttribute("columns",JSON.stringify(t));const n=t.filter(t=>null!=t),r=this._get_view_dom_columns("#inactive_columns perspective-row");n.length===r.length?this._inactive_columns.parentElement.classList.add("collapse"):this._inactive_columns.parentElement.classList.remove("collapse"),r.forEach(t=>{-1===n.indexOf(t.getAttribute("name"))?t.classList.remove("active"):t.classList.add("active")}),e&&this._update_column_list(t,this._active_columns,t=>{if(null===t)return this._new_row(null);{const e=r.find(e=>e.getAttribute("name")===t);if(e)return this._new_row(e.getAttribute("name"),e.getAttribute("type"))}})}_update_column_list(t,e,n,r){r=r||((t,e)=>e.getAttribute("name")===t);const o=Array.prototype.slice.call(e.children);for(let i=0,s=0;i<o.length||s<t.length;i++,s++){const a=t[s],c=o[i],l=o[i+1];if(c)if(void 0===a)e.removeChild(c);else if(r(a,c))this._set_row_type(c);else if(c.classList.contains("null-column")){const t=n(a);t&&e.replaceChild(t,c)}else if(l&&r(a,l))e.removeChild(c),i++;else{const t=n(a);t&&(e.insertBefore(t,c),i--)}else{const t=n(a);t&&e.appendChild(t)}}}_set_row_styles(){let t="";if(this._plugin.initial&&this._plugin.initial.names)for(const e in this._plugin.initial.names){const n=this._plugin.initial.names[e];t+="#active_columns perspective-row:nth-child(".concat(parseInt(e)+1,"){margin-top:23px;}"),t+="#active_columns perspective-row:nth-child(".concat(parseInt(e)+1,'):before{content:"').concat(n,'";}')}this.shadowRoot.querySelector("#psp_styles").innerHTML=t}_show_column_container(){this.shadowRoot.querySelector("#columns_container").style.visibility="visible"}_show_side_panel_actions(){this.shadowRoot.querySelector("#side_panel__actions").style.visibility="visible"}_remove_null_columns(t=0){const e=this._get_view_active_columns();for(;++t<e.length;){const n=e[t];n.classList.contains("null-column")&&this.shadowRoot.querySelector("#active_columns").removeChild(n)}}_set_column_defaults(){const t=this._get_view_all_columns(),e=this._get_view_active_valid_columns(),n=this._get_view_active_valid_column_names();if(t.length>0)if(this._plugin.initial){let n=[],r=this._plugin.initial.count||2;this._fill_numeric(e,n),this._fill_numeric(t,n),this._fill_numeric(t,n,!0),n=n.slice(0,r);const o=this._plugin.initial.names;for(;o&&n.length<o.length;)n.push(null);this.setAttribute("columns",JSON.stringify(n))}else"select"===this._plugin.selectMode?this.setAttribute("columns",JSON.stringify([t[0].getAttribute("name")])):(this.setAttribute("columns",JSON.stringify(n)),this._remove_null_columns())}_fill_numeric(t,e,n=!1){for(let r of t){let t=r.getAttribute("type"),o=r.getAttribute("name");(n||["float","integer"].indexOf(t)>-1&&-1===e.indexOf(o))&&e.push(o)}}async _check_responsive_layout(){if(this.shadowRoot){const t=this.shadowRoot.querySelector("#app");if(this.clientHeight<500&&this.clientWidth>600&&this._get_view_columns({active:!1}).length>this._get_view_columns().length){if(!t.classList.contains("columns_horizontal")){const e=this._persisted_side_panel_width;return this._persisted_side_panel_width=this._side_panel.style.width,this._side_panel.style.width=e||"",t.classList.add("columns_horizontal"),!1}return!1}if(t.classList.contains("columns_horizontal")){const e=this.shadowRoot.querySelector("#pivot_chart_container");e.clientWidth,this._side_panel.clientWidth;const n=this._persisted_side_panel_width||e.clientWidth+this._side_panel.clientWidth/2,r=e.clientHeight+50;return await this._pre_resize(n,r,()=>{const e=this._persisted_side_panel_width;this._persisted_side_panel_width=this._side_panel.style.width,this._side_panel.style.width=e||"",t.classList.remove("columns_horizontal")}),!0}}return!1}_register_ids(){this._aggregate_selector=this.shadowRoot.querySelector("#aggregate_selector"),this._vis_selector=this.shadowRoot.querySelector("#vis_selector"),this._filters=this.shadowRoot.querySelector("#filters"),this._row_pivots=this.shadowRoot.querySelector("#row_pivots"),this._column_pivots=this.shadowRoot.querySelector("#column_pivots"),this._datavis=this.shadowRoot.querySelector("#pivot_chart"),this._active_columns=this.shadowRoot.querySelector("#active_columns"),this._inactive_columns=this.shadowRoot.querySelector("#inactive_columns"),this._side_panel_actions=this.shadowRoot.querySelector("#side_panel__actions"),this._add_computed_column=this.shadowRoot.querySelector("#add-computed-column"),this._computed_column=this.shadowRoot.querySelector("perspective-computed-column"),this._computed_column_inputs=this._computed_column.querySelector("#psp-cc-computation-inputs"),this._inner_drop_target=this.shadowRoot.querySelector("#drop_target_inner"),this._drop_target=this.shadowRoot.querySelector("#drop_target"),this._config_button=this.shadowRoot.querySelector("#config_button"),this._reset_button=this.shadowRoot.querySelector("#reset_button"),this._download_button=this.shadowRoot.querySelector("#download_button"),this._copy_button=this.shadowRoot.querySelector("#copy_button"),this._side_panel=this.shadowRoot.querySelector("#side_panel"),this._top_panel=this.shadowRoot.querySelector("#top_panel"),this._sort=this.shadowRoot.querySelector("#sort"),this._transpose_button=this.shadowRoot.querySelector("#transpose_button"),this._plugin_information=this.shadowRoot.querySelector(".plugin_information"),this._plugin_information_action=this.shadowRoot.querySelector(".plugin_information__action"),this._plugin_information_action_close=this.shadowRoot.querySelector(".plugin_information__action--close"),this._plugin_information_message=this.shadowRoot.querySelector("#plugin_information_count"),this._resize_bar=this.shadowRoot.querySelector("#resize_bar")}_register_view_options(){let t=o.b.getInstance();Object(A.render)(At(t),this._vis_selector)}_register_data_attribute(){if(this.getAttribute("data")){let t=this.getAttribute("data");try{t=JSON.parse(t)}catch(t){}this.load(t)}}_autocomplete_choices(t){return t.slice(1,t.length).map(t=>t.__ROW_PATH__).filter(t=>Array.isArray(t)?t.filter(t=>!!t).length>0:!!t)}}class Ct extends Nt{_show_context_menu(t){return this.shadowRoot.querySelector("#app").classList.toggle("show_menu"),t.stopPropagation(),t.preventDefault(),!1}_hide_context_menu(){this.shadowRoot.querySelector("#app").classList.remove("show_menu")}async _toggle_config(t){if(!t||2!==t.button){this._show_config=!this._show_config,this._hide_context_menu();const t=this.shadowRoot.querySelector("#pivot_chart_container");this._show_config?await this._post_resize(()=>{this.toggleAttribute("settings",!0)},()=>{this._side_panel.style.display="flex",this._top_panel.style.display="flex",this.dispatchEvent(new CustomEvent("perspective-toggle-settings",{detail:this._show_config}))}):await this._pre_resize(t.clientWidth+this._side_panel.clientWidth,t.clientHeight+this._top_panel.clientHeight,()=>{this._side_panel.style.display="none",this._top_panel.style.display="none",this.removeAttribute("settings")},()=>this.dispatchEvent(new CustomEvent("perspective-toggle-settings",{detail:this._show_config})))}}async _pre_resize(t,e,n,r){this._datavis.style.width="".concat(t,"px"),this._datavis.style.height="".concat(e,"px");try{!document.hidden&&this.offsetParent&&await this._plugin.resize.call(this)}finally{null==r||r(),this._datavis.style.width="100%",this._datavis.style.height="100%",n()}}async _post_resize(t,e){null==e||e();try{!document.hidden&&this.offsetParent&&await this._plugin.resize.call(this)}finally{t()}}_open_computed_column(t){t.stopImmediatePropagation(),this._computed_column.style.display="flex",this._side_panel_actions.style.display="none"}_set_computed_column_input(t){t.detail.target.appendChild(this._new_row(t.detail.column.name,t.detail.column.type)),this._update_column_view()}_validate_computed_column(t){const e=t.detail;let n=JSON.parse(this.getAttribute("computed-columns"));null===n&&(n=[]);for(let t of n)if(e.name===t.name)return;n.push(e),this.setAttribute("computed-columns",JSON.stringify(n))}async _create_computed_column(t){const e=t.detail;let n=e.column_name;(await this._table.columns()).includes(n)&&(n+=" ".concat(Math.round(100*Math.random())));const r=[{computation:e.computation,column:n,computed_function_name:e.computation.name,func:e.computation.func,inputs:e.input_columns.map(t=>t.name),input_type:e.computation.input_type,type:e.computation.return_type}],o=this._table.add_computed(r);await this._load_table(o,!0),this._update_column_view()}_column_visibility_clicked(t){const e=t.currentTarget;if("active_columns"===e.parentElement.getAttribute("id")){var n;const s=(null===(n=this._plugin.initial)||void 0===n?void 0:n.count)||1;if(this._get_view_active_valid_column_count()===s)return;if(t.detail.shiftKey)for(let t of Array.prototype.slice.call(this._active_columns.children))t!==e&&this._active_columns.removeChild(t);else{var r,o,i;const t=Array.prototype.slice.call(this._active_columns.children).indexOf(e);if(t<(null===(r=this._plugin.initial)||void 0===r?void 0:r.count))return;t<(null===(o=this._plugin.initial)||void 0===o?void 0:null===(i=o.names)||void 0===i?void 0:i.length)-1&&this._active_columns.insertBefore(this._new_row(null),e),this._active_columns.removeChild(e)}}else{var s,a;if(null===(s=t.path[1])||void 0===s?void 0:s.classList.contains("psp-cc-computation__input-column"))return this._computed_column.deselect_column(t.currentTarget.getAttribute("name")),void this._update_column_view();if(t.detail.shiftKey&&"toggle"===this._plugin.selectMode||!t.detail.shiftKey&&"select"===this._plugin.selectMode)for(let t of Array.prototype.slice.call(this._active_columns.children))this._active_columns.removeChild(t);let n=this._new_row(e.getAttribute("name"),e.getAttribute("type"));const r=this._get_view_active_columns();let o=r.length-1;if(r[o]&&(null===(a=r[o])||void 0===a?void 0:a.classList.contains("null-column"))){for(;o-- >0;)if(!r[o].classList.contains("null-column")){this._active_columns.replaceChild(n,r[o+1]);break}}else this._active_columns.appendChild(n)}this._check_responsive_layout(),this._update_column_view()}_column_aggregate_clicked(){let t=this.get_aggregate_attribute(),e=this._get_view_aggregates();for(let n of t){let t=e.find(t=>t.column===n.column);t&&(n.op=t.op)}this.set_aggregate_attribute(t),this._update_column_view(),this._debounce_update()}_column_filter_clicked(){let t=this._get_view_filters();this._updating_filter=!0,this.setAttribute("filters",JSON.stringify(t)),this._updating_filter=!1,this._debounce_update()}_increment_sort(t,e,n){let r=["asc","desc"];return e&&r.push("col asc","col desc"),n&&(r=r.map(t=>"".concat(t," abs"))),r.push("none"),r[(r.indexOf(t)+1)%r.length]}_sort_order_clicked(t){const e=t.target,n=t.detail.shiftKey&&"string"!==e.getAttribute("type"),r=this._increment_sort(e.getAttribute("sort-order"),this._get_view_column_pivots().length>0,n);e.setAttribute("sort-order",r);const o=this._get_view_sorts();this.setAttribute("sort",JSON.stringify(o))}_transpose(){const t=this.hasAttribute("row-pivots"),e=this.hasAttribute("column-pivots");if(t&&e){let t=this.getAttribute("row-pivots");this.setAttribute("row-pivots",this.getAttribute("column-pivots")),this.setAttribute("column-pivots",t)}else if(t){let t=this.getAttribute("row-pivots");this.removeAttribute("row-pivots"),this.setAttribute("column-pivots",t)}else if(e){let t=this.getAttribute("column-pivots");this.removeAttribute("column-pivots"),this.setAttribute("row-pivots",t)}else this.removeAttribute("column-pivots"),this.removeAttribute("row-pivots")}_reset_sidepanel(){this._side_panel.style.width=""}_resize_sidepanel(t){const e=document.body.style.cursor;document.body.style.cursor="col-resize";const n=t.clientX,r=this._side_panel.offsetWidth,o=t=>{const e=Math.max(0,Math.min(r+(t.clientX-n),this.offsetWidth-10));this._side_panel.style.width="".concat(e,"px"),this._plugin&&this.notifyResize()},i=()=>{document.body.style.cursor=e,document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}_vis_selector_changed(){var t;this._plugin_information.classList.add("hidden"),this.setAttribute("plugin",this._vis_selector.value),this._active_columns.classList.remove("one_lock","two_lock");const e=["one_lock","two_lock"][(null===(t=this._plugin.initial)||void 0===t?void 0:t.count)-1];e&&this._active_columns.classList.add(e),this._debounce_update()}_register_callbacks(){this._sort.addEventListener("drop",m.bind(this)),this._sort.addEventListener("dragend",_.bind(this)),this._sort.addEventListener("dragenter",S.bind(this)),this._sort.addEventListener("dragover",O.bind(this)),this._sort.addEventListener("dragleave",T.bind(this)),this._row_pivots.addEventListener("drop",m.bind(this)),this._row_pivots.addEventListener("dragend",_.bind(this)),this._row_pivots.addEventListener("dragenter",S.bind(this)),this._row_pivots.addEventListener("dragover",O.bind(this)),this._row_pivots.addEventListener("dragleave",T.bind(this)),this._column_pivots.addEventListener("drop",m.bind(this)),this._column_pivots.addEventListener("dragend",_.bind(this)),this._column_pivots.addEventListener("dragenter",S.bind(this)),this._column_pivots.addEventListener("dragover",O.bind(this)),this._column_pivots.addEventListener("dragleave",T.bind(this)),this._filters.addEventListener("drop",m.bind(this)),this._filters.addEventListener("dragend",_.bind(this)),this._filters.addEventListener("dragenter",S.bind(this)),this._filters.addEventListener("dragover",O.bind(this)),this._filters.addEventListener("dragleave",T.bind(this)),this._active_columns.addEventListener("drop",E.bind(this)),this._active_columns.addEventListener("dragenter",S.bind(this)),this._active_columns.addEventListener("dragend",g.bind(this)),this._active_columns.addEventListener("dragover",x.bind(this)),this._active_columns.addEventListener("dragleave",v.bind(this)),this._add_computed_column.addEventListener("click",this._open_computed_column.bind(this)),this._computed_column.addEventListener("perspective-computed-column-save",this._validate_computed_column.bind(this)),this._computed_column.addEventListener("perspective-computed-column-update",this._set_computed_column_input.bind(this)),this._config_button.addEventListener("mousedown",this._toggle_config.bind(this)),this._config_button.addEventListener("contextmenu",this._show_context_menu.bind(this)),this._reset_button.addEventListener("click",this.reset.bind(this)),this._copy_button.addEventListener("click",t=>this.copy(t.shiftKey)),this._download_button.addEventListener("click",t=>this.download(t.shiftKey)),this._transpose_button.addEventListener("click",this._transpose.bind(this)),this._drop_target.addEventListener("dragover",O.bind(this)),this._resize_bar.addEventListener("mousedown",this._resize_sidepanel.bind(this)),this._resize_bar.addEventListener("dblclick",this._reset_sidepanel.bind(this)),this._vis_selector.addEventListener("change",this._vis_selector_changed.bind(this)),this._plugin_information_action.addEventListener("click",()=>{this._debounce_update({ignore_size_check:!0,limit_points:!1}),this._plugin_information.classList.add("hidden")}),this._plugin_information_action_close.addEventListener("click",()=>{this._plugin_information.classList.add("hidden")})}}var kt;function Lt(t,e,n,r,o){var i={};return Object.keys(r).forEach((function(t){i[t]=r[t]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(t,e,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(t,e,i),i=null),i}const jt=["selectable","editable","plugin","row-pivots","column-pivots","aggregates","filters","sort","computed-columns","columns"];Object(r.b)(rt.a,it.a,at.a)((Lt((kt=class extends Ct{constructor(){super(),this._register_debounce_instance(),this._show_config=!0,this._show_warnings=!0,this.__render_times=[],this._resize_handler=this.notifyResize.bind(this),window.addEventListener("resize",this._resize_handler)}connectedCallback(){0===Object.keys(o.b.getInstance()).length&&Object(o.a)(),this.toggleAttribute("settings",!0),this._register_ids(),this._register_callbacks(),this._register_view_options(),this._register_data_attribute(),this.toggleConfig(),this._check_loaded_table()}sort(t){null!=t&&0!==t.length||(this.hasAttribute("sort")&&this.removeAttribute("sort"),t=[]);var e=this._sort.querySelector("ul");this._update_column_list(t,e,t=>{let e="asc";return Array.isArray(t)&&(e=t[1],t=t[0]),this._new_row(t,!1,!1,!1,e)},(t,e)=>Array.isArray(t)?e.getAttribute("name")===t[0]&&e.getAttribute("sort-order")===t[1]:e.getAttribute("name")===t),this.dispatchEvent(new Event("perspective-config-update")),this._debounce_update()}columns(t){null!=t&&0!==t.length||(this.hasAttribute("columns")&&(this._initial_col_order?this.setAttribute("columns",JSON.stringify(this._initial_col_order)):this.removeAttribute("columns")),t=(this._initial_col_order||[]).slice()),this._update_column_view(t,!0),this.dispatchEvent(new Event("perspective-config-update")),this._debounce_update()}"computed-columns"(t){null!=t&&0!==t.length||(this.hasAttribute("computed-columns")&&this.removeAttribute("computed-columns"),t=[]);const e=this._set_updating();(async()=>{if(this._table){const n=await this._table.computed_schema();this._computed_column._close_computed_column();for(let e of t)n[e.name]||await this._create_computed_column({detail:{column_name:e.name,input_columns:e.inputs.map(t=>({name:t})),computation:j[e.func]}});await this._debounce_update(),e()}else this._computed_column._close_computed_column();this.dispatchEvent(new Event("perspective-config-update")),this.dispatchEvent(new Event("perspective-computed-column-update"))})()}aggregates(t){null!=t&&0!==Object.keys(t).length||(this.hasAttribute("aggregates")&&this.removeAttribute("aggregates"),t={}),this._get_view_dom_columns().map(e=>{let n=t[e.getAttribute("name")];n&&e.setAttribute("aggregate",Array.isArray(n)?JSON.stringify(n):n)}),this.dispatchEvent(new Event("perspective-config-update")),this._debounce_update()}filters(t){if(null!=t&&0!==t.length||(this.hasAttribute("filters")&&this.removeAttribute("filters"),t=[]),!this._updating_filter){var e=this._filters.querySelector("ul");this._update_column_list(t,e,t=>{const e=JSON.stringify({operator:t[1],operand:t[2]});return this._new_row(t[0],void 0,void 0,e)},(t,e)=>e.getAttribute("name")===t[0]&&e.getAttribute("filter")===JSON.stringify({operator:t[1],operand:t[2]}))}this.dispatchEvent(new Event("perspective-config-update")),this._debounce_update()}set plugin(t){if("null"===t||null==t)return void this.setAttribute("plugin",this._vis_selector.options[0].value);const e=Object.keys(o.b.getInstance());if(this.hasAttribute("plugin")){let t=this.getAttribute("plugin");if(-1===e.indexOf(t)){const n=e.find(e=>e.indexOf(t)>-1);n?(console.warn('Unknown plugin "'.concat(t,'", using "').concat(n,'"')),this.setAttribute("plugin",n)):(console.error('Unknown plugin "'.concat(t,'"')),this.setAttribute("plugin",this._vis_selector.options[0].value))}else this._vis_selector.value!==t&&(this._vis_selector.value=t,this._vis_selector_changed()),this._set_row_styles(),this._set_column_defaults(),this.dispatchEvent(new Event("perspective-config-update"))}else this.setAttribute("plugin",this._vis_selector.options[0].value)}"column-pivots"(t){null!=t&&0!==t.length||(this.hasAttribute("column-pivots")&&this.removeAttribute("column-pivots"),t=[]);var e=this._column_pivots.querySelector("ul");this._update_column_list(t,e,t=>this._new_row(t)),this.dispatchEvent(new Event("perspective-config-update")),this._debounce_update()}"row-pivots"(t){null!=t&&0!==t.length||(this.hasAttribute("row-pivots")&&this.removeAttribute("row-pivots"),t=[]);var e=this._row_pivots.querySelector("ul");this._update_column_list(t,e,t=>this._new_row(t)),this.dispatchEvent(new Event("perspective-config-update")),this._debounce_update()}set editable(t){"null"===t?this.hasAttribute("editable")&&this.removeAttribute("editable"):this.toggleAttribute("editable",!0),this._debounce_update({force_update:!0}),this.dispatchEvent(new Event("perspective-config-update"))}set throttle(t){"null"===t&&this.hasAttribute("throttle")&&this.removeAttribute("throttle"),this._calculate_throttle_timeout()}set selectable(t){"null"===t?this.hasAttribute("selectable")&&this.removeAttribute("selectable"):this.toggleAttribute("selectable",!0),this._debounce_update({force_update:!0}),this.dispatchEvent(new Event("perspective-config-update"))}get worker(){return this._get_worker()}get table(){return this._table}get view(){return this._view}async load(t,e){let n;if(t instanceof Promise)n=await t;else{try{t=t.trim()}catch(t){}"table"===t.type?n=t:(n=this.worker.table(t,e),n._owner_viewer=this)}this.isConnected?await this._load_table(n):this._table=n}update(t){void 0===this._table?this.load(t):this._table.update(t)}async notifyResize(t){await this._check_responsive_layout()||document.hidden||!this.offsetParent||await this._plugin.resize.call(this,t)}clone(t){this._inner_drop_target&&(this._inner_drop_target.innerHTML=t._inner_drop_target.innerHTML),this._load_table(t.table),this.restore(t.save())}delete(t=!0){let e=this._clear_state(t);return this._plugin.delete&&this._plugin.delete.call(this),window.removeEventListener("load",this._resize_handler),window.removeEventListener("resize",this._resize_handler),e}restyleElement(){this._restyle_plugin()}save(){let t={};const e=new Set(jt);for(let n=0;n<this.attributes.length;n++){let r=this.attributes[n];e.has(r.name)&&(""===r.value?t[r.name]=!0:"plugin"!==r.name&&void 0!==r.value&&null!==r.value?t[r.name]=JSON.parse(r.value):t[r.name]=r.value,e.delete(r.name))}for(const n of e)t[n]=null;return this._plugin.save&&(t.plugin_config=this._plugin.save.call(this)),t}async restore(t){"string"==typeof t&&(t=JSON.parse(t));for(const e of jt)if(t.hasOwnProperty(e)){let n=t[e];!0===n?this.toggleAttribute(e,!0):null!=n&&!1!==n?("string"!=typeof n&&(n=JSON.stringify(n)),this.setAttribute(e,n)):this.removeAttribute(e)}this._plugin.restore&&t.plugin_config&&this._plugin.restore.call(this,t.plugin_config),await this._debounce_update()}async flush(){for(await new Promise(setTimeout);this.hasAttribute("updating");)await this._updating_promise}clear(){var t;null===(t=this._table)||void 0===t||t.clear()}replace(t){this._table?this._table.replace(t):this._load(t)}reset(){this.removeAttribute("row-pivots"),this.removeAttribute("column-pivots"),this.removeAttribute("filters"),this.removeAttribute("sort"),this._initial_col_order?this.setAttribute("columns",JSON.stringify(this._initial_col_order)):this.removeAttribute("columns"),this.setAttribute("plugin",Object.keys(o.b.getInstance())[0]),this.dispatchEvent(new Event("perspective-config-update")),this._hide_context_menu()}async download(t=!1){const e=t?this._table.view():this._view,n=await e.to_csv(),r=document.createElement("a"),o=n,i=o.length,s=new Uint8Array(i);for(let t=0;t<i;t++)s[t]=o.charCodeAt(t);const a=new Blob([s]);r.setAttribute("href",URL.createObjectURL(a)),r.setAttribute("download","perspective.csv"),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),this._hide_context_menu()}copy(t=!1){let e;(t?this._table.view():this._view).to_csv().then(t=>{e=t}).catch(t=>{console.error(t),e=""});let n=0,o=()=>{void 0!==e?Object(r.c)(e):n<200?(n++,setTimeout(o,50)):console.warn("Timeout expired - copy to clipboard cancelled.")};o(),this._hide_context_menu()}async toggleConfig(){await this._toggle_config()}}).prototype,"sort",[r.a],Object.getOwnPropertyDescriptor(kt.prototype,"sort"),kt.prototype),Lt(kt.prototype,"columns",[r.a],Object.getOwnPropertyDescriptor(kt.prototype,"columns"),kt.prototype),Lt(kt.prototype,"computed-columns",[r.a],Object.getOwnPropertyDescriptor(kt.prototype,"computed-columns"),kt.prototype),Lt(kt.prototype,"aggregates",[r.d],Object.getOwnPropertyDescriptor(kt.prototype,"aggregates"),kt.prototype),Lt(kt.prototype,"filters",[r.a],Object.getOwnPropertyDescriptor(kt.prototype,"filters"),kt.prototype),Lt(kt.prototype,"column-pivots",[r.a],Object.getOwnPropertyDescriptor(kt.prototype,"column-pivots"),kt.prototype),Lt(kt.prototype,"row-pivots",[r.a],Object.getOwnPropertyDescriptor(kt.prototype,"row-pivots"),kt.prototype),Lt(kt.prototype,"notifyResize",[r.f],Object.getOwnPropertyDescriptor(kt.prototype,"notifyResize"),kt.prototype),kt))}]))},function(t,e,n){var r=n(77);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(36),o=n(4),i=n(55),s=function(t){return function(e,n,s){var a,c=r(e),l=o(c.length),u=i(s,l);if(t&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(0),o=n(59),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(23),o=n(60),i=n(85),s=n(3);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(1);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e){t.exports.default={types:{float:{filter_operator:"==",aggregate:"sum",format:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}},string:{filter_operator:"==",aggregate:"count"},integer:{filter_operator:"==",aggregate:"sum",format:{}},boolean:{filter_operator:"==",aggregate:"count"},datetime:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},null_value:-1},date:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric"},null_value:-1}}}},function(t,e){t.exports.default=function(){}},function(t,e,n){t.exports=n(263)},function(t,e){var n=Math.abs,r=Math.pow,o=Math.floor,i=Math.log,s=Math.LN2;t.exports={pack:function(t,e,a){var c,l,u,p=new Array(a),d=8*a-e-1,h=(1<<d)-1,f=h>>1,_=23===e?r(2,-24)-r(2,-77):0,m=t<0||0===t&&1/t<0?1:0,g=0;for((t=n(t))!=t||t===1/0?(l=t!=t?1:0,c=h):(c=o(i(t)/s),t*(u=r(2,-c))<1&&(c--,u*=2),(t+=c+f>=1?_/u:_*r(2,1-f))*u>=2&&(c++,u/=2),c+f>=h?(l=0,c=h):c+f>=1?(l=(t*u-1)*r(2,e),c+=f):(l=t*r(2,f-1)*r(2,e),c=0));e>=8;p[g++]=255&l,l/=256,e-=8);for(c=c<<e|l,d+=e;d>0;p[g++]=255&c,c/=256,d-=8);return p[--g]|=128*m,p},unpack:function(t,e){var n,o=t.length,i=8*o-e-1,s=(1<<i)-1,a=s>>1,c=i-7,l=o-1,u=t[l--],p=127&u;for(u>>=7;c>0;p=256*p+t[l],l--,c-=8);for(n=p&(1<<-c)-1,p>>=-c,c+=e;c>0;n=256*n+t[l],l--,c-=8);if(0===p)p=1-a;else{if(p===s)return n?NaN:u?-1/0:1/0;n+=r(2,e),p-=a}return(u?-1:1)*n*r(2,p-e)}}},function(t,e,n){"use strict";var r=n(14),o=n(55),i=n(4);t.exports=function(t){for(var e=r(this),n=i(e.length),s=arguments.length,a=o(s>1?arguments[1]:void 0,n),c=s>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);l>a;)e[a++]=t;return e}},function(t,e,n){var r=n(0);t.exports=r.Promise},function(t,e,n){var r=n(3),o=n(63),i=n(4),s=n(20),a=n(32),c=n(96),l=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,u,p){var d,h,f,_,m,g,v,b=s(e,n,u?2:1);if(p)d=t;else{if("function"!=typeof(h=a(t)))throw TypeError("Target is not iterable");if(o(h)){for(f=0,_=i(t.length);_>f;f++)if((m=u?b(r(v=t[f])[0],v[1]):b(t[f]))&&m instanceof l)return m;return new l(!1)}d=h.call(t)}for(g=d.next;!(v=g.call(d)).done;)if("object"==typeof(m=c(d,b,v.value,u))&&m&&m instanceof l)return m;return new l(!1)}).stop=function(t){return new l(!0,t)}},function(t,e,n){var r={};r[n(2)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r,o,i,s,a,c,l,u,p=n(0),d=n(39).f,h=n(16),f=n(98).set,_=n(99),m=p.MutationObserver||p.WebKitMutationObserver,g=p.process,v=p.Promise,b="process"==h(g),y=d(p,"queueMicrotask"),w=y&&y.value;w||(r=function(){var t,e;for(b&&(t=g.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?s():i=void 0,t}}i=void 0,t&&t.enter()},b?s=function(){g.nextTick(r)}:m&&!_?(a=!0,c=document.createTextNode(""),new m(r).observe(c,{characterData:!0}),s=function(){c.data=a=!a}):v&&v.resolve?(l=v.resolve(void 0),u=l.then,s=function(){u.call(l,r)}):s=function(){f.call(p,r)}),t.exports=w||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,s()),i=e}},function(t,e,n){var r=n(3),o=n(5),i=n(101);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(0);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var r,o,i=n(0),s=n(100),a=i.process,c=a&&a.versions,l=c&&c.v8;l?o=(r=l.split("."))[0]+r[1]:s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){"use strict";var r=n(7),o=n(43);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e,n){"use strict";var r=n(1);function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,e,n){var r=n(105);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(2)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e){t.exports=function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var r=t.indexOf("Edge/");return r>0&&parseInt(t.substring(r+5,t.indexOf(".",r)),10)}},function(t,e,n){var r=n(44),o=n(151),i=n(152),s="Expected a function",a=Math.max,c=Math.min;t.exports=function(t,e,n){var l,u,p,d,h,f,_=0,m=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError(s);function b(e){var n=l,r=u;return l=u=void 0,_=e,d=t.apply(r,n)}function y(t){var n=t-f;return void 0===f||n>=e||n<0||g&&t-_>=p}function w(){var t=o();if(y(t))return x(t);h=setTimeout(w,function(t){var n=e-(t-f);return g?c(n,p-(t-_)):n}(t))}function x(t){return h=void 0,v&&l?b(t):(l=u=void 0,d)}function E(){var t=o(),n=y(t);if(l=arguments,u=this,f=t,n){if(void 0===h)return function(t){return _=t,h=setTimeout(w,e),m?b(t):d}(f);if(g)return clearTimeout(h),h=setTimeout(w,e),b(f)}return void 0===h&&(h=setTimeout(w,e)),d}return e=i(e)||0,r(n)&&(m=!!n.leading,p=(g="maxWait"in n)?a(i(n.maxWait)||0,e):p,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==h&&clearTimeout(h),_=0,l=f=u=h=void 0},E.flush=function(){return void 0===h?d:x(o())},E}},function(t,e,n){var r=n(12);t.exports=function(){return r.Date.now()}},function(t,e,n){var r=n(44),o=n(153),i=NaN,s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return i;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var n=c.test(t);return n||l.test(t)?u(t.slice(2),n?2:8):a.test(t)?i:+t}},function(t,e,n){var r=n(33),o=n(34),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&r(t)==i}},function(t,e,n){var r=n(69),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var o=s.call(t);return r&&(e?t[a]=n:delete t[a]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=o(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var o=e[r],i=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof o?parseInt(i):!1===o?null!==i:o instanceof Function?null:i,t[r]||0===t[r]||(t[r]=r in n?n[r]:o)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1},n),this.index=-1,this.container=this.container(t),this.ul=o.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container}),this.status=o.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:0!=this.minChars?"Type "+this.minChars+" or more characters for results.":"Begin typing for results."}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected?(t.preventDefault(),r.select(void 0,void 0,t)):9===e&&r.selected&&r.tabSelect?r.select(void 0,void 0,t):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},o.bind(this.input,this._events.input),o.bind(this.input.form,this._events.form),o.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=o(t))&&t.children){var e=[];r.apply(t.children).forEach((function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,o=t.label||n;""!==r&&e.push({label:o,value:r})}})),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),o.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),o.fire(this.input,"awesomplete-open")},destroy:function(){if(o.unbind(this.input,this._events.input),o.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.status.textContent=e[t].textContent+", list item "+(t+1)+" of "+e.length,this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,o.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=o.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];o.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),o.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map((function(r){return new n(t.data(r,e))})).filter((function(n){return t.filter(n,e)})),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach((function(n,r){t.ul.appendChild(t.item(n,e,r))})),0===this.ul.children.length?(this.status.textContent="No results found",this.close({reason:"nomatches"})):(this.open(),this.status.textContent=this.ul.children.length+" results found")):(this.close({reason:"nomatches"}),this.status.textContent="No results found")}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(o.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+o.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return o.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(o.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return o.create("li",{innerHTML:r,role:"option","aria-selected":"false",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function o(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function i(t,e){return r.call((e||document).querySelectorAll(t))}function s(){i("input.awesomplete").forEach((function(t){new e(t)}))}o.create=function(t,e){var n=document.createElement(t);for(var r in e){var i=e[r];if("inside"===r)o(i).appendChild(n);else if("around"===r){var s=o(i);s.parentNode.insertBefore(n,s),n.appendChild(s),null!=s.getAttribute("autofocus")&&s.focus()}else r in n?n[r]=i:n.setAttribute(r,i)}return n},o.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach((function(e){t.addEventListener(e,r)}))}},o.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach((function(e){t.removeEventListener(e,r)}))}},o.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var o in r.initEvent(e,!0,!0),n)r[o]=n[o];return t.dispatchEvent(r)},o.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},o.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",s)),e.$=o,e.$$=i,t.exports&&(t.exports=e)}()},function(t,e,n){"use strict";var r=n(7),o=n(70),i=[].reverse,s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},function(t,e,n){"use strict";var r=n(7),o=n(159).trim;r({target:"String",proto:!0,forced:n(160)("trim")},{trim:function(){return o(this)}})},function(t,e,n){var r=n(17),o="["+n(109)+"]",i=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),a=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},function(t,e,n){var r=n(1),o=n(109);t.exports=function(t){return r((function(){return!!o[t]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[t]()||o[t].name!==t}))}},function(t,e,n){"use strict";var r=n(7),o=n(8),i=n(0),s=n(6),a=n(5),c=n(10).f,l=n(84),u=i.Symbol;if(o&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var p={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new u(t):void 0===t?u():u(t);return""===t&&(p[e]=!0),e};l(d,u);var h=d.prototype=u.prototype;h.constructor=d;var f=h.toString,_="Symbol(test)"==String(u("test")),m=/^Symbol\((.*)\)[^)]+$/;c(h,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,e=f.call(t);if(s(p,t))return"";var n=_?e.slice(7,-1):e.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},function(t,e,n){var r=n(163),o=n(110);t.exports=function(t){return null==t?[]:r(t,o(t))}},function(t,e,n){var r=n(164);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e,n){var r=n(166),o=n(167),i=n(71),s=n(111),a=n(170),c=n(113),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),u=!n&&o(t),p=!n&&!u&&s(t),d=!n&&!u&&!p&&c(t),h=n||u||p||d,f=h?r(t.length,String):[],_=f.length;for(var m in t)!e&&!l.call(t,m)||h&&("length"==m||p&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,_))||f.push(m);return f}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(168),o=n(34),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return o(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,e,n){var r=n(33),o=n(34),i="[object Arguments]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e){t.exports=function(){return!1}},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?n:e)&&("number"==o||"symbol"!=o&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var r=n(33),o=n(114),i=n(34),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!s[r(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(108),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=i&&i.exports===o&&r.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(this,n(112)(t))},function(t,e,n){var r=n(175),o=n(176),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(177)(Object.keys,Object);t.exports=r},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(115),o=n(114);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e,n){var r=n(180);t.exports=function(t,e){return r(t,e)}},function(t,e,n){var r=n(181),o=n(34);t.exports=function t(e,n,i,s,a){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,s,t,a))}},function(t,e,n){var r=n(182),o=n(119),i=n(214),s=n(218),a=n(225),c=n(71),l=n(111),u=n(113),p=1,d="[object Arguments]",h="[object Array]",f="[object Object]",_=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,m,g,v){var b=c(t),y=c(e),w=b?h:a(t),x=y?h:a(e),E=(w=w==d?f:w)==f,S=(x=x==d?f:x)==f,O=w==x;if(O&&l(t)){if(!l(e))return!1;b=!0,E=!1}if(O&&!E)return v||(v=new r),b||u(t)?o(t,e,n,m,g,v):i(t,e,w,n,m,g,v);if(!(n&p)){var T=E&&_.call(t,"__wrapped__"),A=S&&_.call(e,"__wrapped__");if(T||A){var N=T?t.value():t,C=A?e.value():e;return v||(v=new r),g(N,C,n,m,v)}}return!!O&&(v||(v=new r),s(t,e,n,m,g,v))}},function(t,e,n){var r=n(45),o=n(188),i=n(189),s=n(190),a=n(191),c=n(192);function l(t){var e=this.__data__=new r(t);this.size=e.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=a,l.prototype.set=c,t.exports=l},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(46),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(46);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(46);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(46);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(45);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(45),o=n(72),i=n(118),s=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<s-1)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(115),o=n(194),i=n(44),s=n(117),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,d=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?d:a).test(s(t))}},function(t,e,n){var r,o=n(195),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(12)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(198),o=n(45),i=n(72);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(199),o=n(200),i=n(201),s=n(202),a=n(203);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(47);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(47),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===o?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(47),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(47),o="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?o:e,this}},function(t,e,n){var r=n(48);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(48);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(48);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(48);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(118),o=n(210),i=n(211);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,t.exports=s},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(69),o=n(215),i=n(116),s=n(119),a=n(216),c=n(217),l=1,u=2,p="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Map]",_="[object Number]",m="[object RegExp]",g="[object Set]",v="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",w="[object DataView]",x=r?r.prototype:void 0,E=x?x.valueOf:void 0;t.exports=function(t,e,n,r,x,S,O){switch(n){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case y:return!(t.byteLength!=e.byteLength||!S(new o(t),new o(e)));case p:case d:case _:return i(+t,+e);case h:return t.name==e.name&&t.message==e.message;case m:case v:return t==e+"";case f:var T=a;case g:var A=r&l;if(T||(T=c),t.size!=e.size&&!A)return!1;var N=O.get(t);if(N)return N==e;r|=u,O.set(t,e);var C=s(T(t),T(e),r,x,S,O);return O.delete(t),C;case b:if(E)return E.call(t)==E.call(e)}return!1}},function(t,e,n){var r=n(12).Uint8Array;t.exports=r},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(219),o=1,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,s,a,c){var l=n&o,u=r(t),p=u.length;if(p!=r(e).length&&!l)return!1;for(var d=p;d--;){var h=u[d];if(!(l?h in e:i.call(e,h)))return!1}var f=c.get(t);if(f&&c.get(e))return f==e;var _=!0;c.set(t,e),c.set(e,t);for(var m=l;++d<p;){var g=t[h=u[d]],v=e[h];if(s)var b=l?s(v,g,h,e,t,c):s(g,v,h,t,e,c);if(!(void 0===b?g===v||a(g,v,n,s,c):b)){_=!1;break}m||(m="constructor"==h)}if(_&&!m){var y=t.constructor,w=e.constructor;y!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w)&&(_=!1)}return c.delete(t),c.delete(e),_}},function(t,e,n){var r=n(220),o=n(222),i=n(110);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(221),o=n(71);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e,n){var r=n(223),o=n(224),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return i.call(t,e)})))}:o;t.exports=a},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(226),o=n(72),i=n(227),s=n(228),a=n(229),c=n(33),l=n(117),u=l(r),p=l(o),d=l(i),h=l(s),f=l(a),_=c;(r&&"[object DataView]"!=_(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=_(new o)||i&&"[object Promise]"!=_(i.resolve())||s&&"[object Set]"!=_(new s)||a&&"[object WeakMap]"!=_(new a))&&(_=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?l(n):"";if(r)switch(r){case u:return"[object DataView]";case p:return"[object Map]";case d:return"[object Promise]";case h:return"[object Set]";case f:return"[object WeakMap]"}return e}),t.exports=_},function(t,e,n){var r=n(27)(n(12),"DataView");t.exports=r},function(t,e,n){var r=n(27)(n(12),"Promise");t.exports=r},function(t,e,n){var r=n(27)(n(12),"Set");t.exports=r},function(t,e,n){var r=n(27)(n(12),"WeakMap");t.exports=r},function(t,e,n){n(231)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(7),o=n(0),i=n(8),s=n(232),a=n(49),c=n(92),l=n(31),u=n(22),p=n(9),d=n(4),h=n(94),f=n(233),_=n(37),m=n(6),g=n(42),v=n(5),b=n(38),y=n(30),w=n(60).f,x=n(235),E=n(236).forEach,S=n(95),O=n(10),T=n(39),A=n(18),N=n(237),C=A.get,k=A.set,L=O.f,j=T.f,D=Math.round,I=o.RangeError,P=c.ArrayBuffer,M=c.DataView,R=a.NATIVE_ARRAY_BUFFER_VIEWS,z=a.TYPED_ARRAY_TAG,H=a.TypedArray,F=a.TypedArrayPrototype,q=a.aTypedArrayConstructor,U=a.isTypedArray,B=function(t,e){for(var n=0,r=e.length,o=new(q(t))(r);r>n;)o[n]=e[n++];return o},W=function(t,e){L(t,e,{get:function(){return C(this)[e]}})},V=function(t){var e;return t instanceof P||"ArrayBuffer"==(e=g(t))||"SharedArrayBuffer"==e},G=function(t,e){return U(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},J=function(t,e){return G(t,e=_(e,!0))?u(2,t[e]):j(t,e)},Y=function(t,e,n){return!(G(t,e=_(e,!0))&&v(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?L(t,e,n):(t[e]=n.value,t)};i?(R||(T.f=J,O.f=Y,W(F,"buffer"),W(F,"byteOffset"),W(F,"byteLength"),W(F,"length")),r({target:"Object",stat:!0,forced:!R},{getOwnPropertyDescriptor:J,defineProperty:Y}),t.exports=function(t,e,n){var i=t.match(/\d+$/)[0]/8,a=t+(n?"Clamped":"")+"Array",c="get"+t,u="set"+t,_=o[a],m=_,g=m&&m.prototype,O={},T=function(t,e){L(t,e,{get:function(){return function(t,e){var n=C(t);return n.view[c](e*i+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var o=C(t);n&&(r=(r=D(r))<0?0:r>255?255:255&r),o.view[u](e*i+o.byteOffset,r,!0)}(this,e,t)},enumerable:!0})};R?s&&(m=e((function(t,e,n,r){return l(t,m,a),N(v(e)?V(e)?void 0!==r?new _(e,f(n,i),r):void 0!==n?new _(e,f(n,i)):new _(e):U(e)?B(m,e):x.call(m,e):new _(h(e)),t,m)})),y&&y(m,H),E(w(_),(function(t){t in m||p(m,t,_[t])})),m.prototype=g):(m=e((function(t,e,n,r){l(t,m,a);var o,s,c,u=0,p=0;if(v(e)){if(!V(e))return U(e)?B(m,e):x.call(m,e);o=e,p=f(n,i);var _=e.byteLength;if(void 0===r){if(_%i)throw I("Wrong length");if((s=_-p)<0)throw I("Wrong length")}else if((s=d(r)*i)+p>_)throw I("Wrong length");c=s/i}else c=h(e),o=new P(s=c*i);for(k(t,{buffer:o,byteOffset:p,byteLength:s,length:c,view:new M(o)});u<c;)T(t,u++)})),y&&y(m,H),g=m.prototype=b(F)),g.constructor!==m&&p(g,"constructor",m),z&&p(g,z,a),O[a]=m,r({global:!0,forced:m!=_,sham:!R},O),"BYTES_PER_ELEMENT"in m||p(m,"BYTES_PER_ELEMENT",i),"BYTES_PER_ELEMENT"in g||p(g,"BYTES_PER_ELEMENT",i),S(a)}):t.exports=function(){}},function(t,e,n){var r=n(0),o=n(1),i=n(97),s=n(49).NATIVE_ARRAY_BUFFER_VIEWS,a=r.ArrayBuffer,c=r.Int8Array;t.exports=!s||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!i((function(t){new c,new c(null),new c(1.5),new c(t)}),!0)||o((function(){return 1!==new c(new a(2),1,void 0).length}))},function(t,e,n){var r=n(234);t.exports=function(t,e){var n=r(t);if(n%e)throw RangeError("Wrong offset");return n}},function(t,e,n){var r=n(19);t.exports=function(t){var e=r(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}},function(t,e,n){var r=n(14),o=n(4),i=n(32),s=n(63),a=n(20),c=n(49).aTypedArrayConstructor;t.exports=function(t){var e,n,l,u,p,d,h=r(t),f=arguments.length,_=f>1?arguments[1]:void 0,m=void 0!==_,g=i(h);if(null!=g&&!s(g))for(d=(p=g.call(h)).next,h=[];!(u=d.call(p)).done;)h.push(u.value);for(m&&f>2&&(_=a(_,arguments[2],2)),n=o(h.length),l=new(c(this))(n),e=0;n>e;e++)l[e]=m?_(h[e],e):h[e];return l}},function(t,e,n){var r=n(20),o=n(51),i=n(14),s=n(4),a=n(120),c=[].push,l=function(t){var e=1==t,n=2==t,l=3==t,u=4==t,p=6==t,d=5==t||p;return function(h,f,_,m){for(var g,v,b=i(h),y=o(b),w=r(f,_,3),x=s(y.length),E=0,S=m||a,O=e?S(h,x):n?S(h,0):void 0;x>E;E++)if((d||E in y)&&(v=w(g=y[E],E,b),t))if(e)O[E]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return E;case 2:c.call(O,g)}else if(u)return!1;return p?-1:l||u?u:O}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(t,e,n){var r=n(5),o=n(30);t.exports=function(t,e,n){var i,s;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(s=i.prototype)&&s!==n.prototype&&o(t,s),t}},function(t,e,n){"use strict";var r=n(0),o=n(49),i=n(1),s=r.Int8Array,a=o.aTypedArray,c=o.exportTypedArrayMethod,l=[].toLocaleString,u=[].slice,p=!!s&&i((function(){l.call(new s(1))}));c("toLocaleString",(function(){return l.apply(p?u.call(a(this)):a(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new s([1,2]).toLocaleString()}))||!i((function(){s.prototype.toLocaleString.call([1,2])})))},function(t,e,n){"use strict";n(240);var r,o=n(7),i=n(8),s=n(121),a=n(0),c=n(78),l=n(13),u=n(31),p=n(6),d=n(90),h=n(241),f=n(67).codeAt,_=n(243),m=n(24),g=n(244),v=n(18),b=a.URL,y=g.URLSearchParams,w=g.getState,x=v.set,E=v.getterFor("URL"),S=Math.floor,O=Math.pow,T=/[A-Za-z]/,A=/[\d+\-.A-Za-z]/,N=/\d/,C=/^(0x|0X)/,k=/^[0-7]+$/,L=/^\d+$/,j=/^[\dA-Fa-f]+$/,D=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,I=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,P=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,M=/[\u0009\u000A\u000D]/g,R=function(t,e){var n,r,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(n=H(e.slice(1,-1))))return"Invalid host";t.host=n}else if(J(t)){if(e=_(e),D.test(e))return"Invalid host";if(null===(n=z(e)))return"Invalid host";t.host=n}else{if(I.test(e))return"Invalid host";for(n="",r=h(e),o=0;o<r.length;o++)n+=V(r[o],q);t.host=n}},z=function(t){var e,n,r,o,i,s,a,c=t.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(e=c.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(o=c[r]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=C.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)s=0;else{if(!(10==i?L:8==i?k:j).test(o))return t;s=parseInt(o,i)}n.push(s)}for(r=0;r<e;r++)if(s=n[r],r==e-1){if(s>=O(256,5-e))return null}else if(s>255)return null;for(a=n.pop(),r=0;r<n.length;r++)a+=n[r]*O(256,3-r);return a},H=function(t){var e,n,r,o,i,s,a,c=[0,0,0,0,0,0,0,0],l=0,u=null,p=0,d=function(){return t.charAt(p)};if(":"==d()){if(":"!=t.charAt(1))return;p+=2,u=++l}for(;d();){if(8==l)return;if(":"!=d()){for(e=n=0;n<4&&j.test(d());)e=16*e+parseInt(d(),16),p++,n++;if("."==d()){if(0==n)return;if(p-=n,l>6)return;for(r=0;d();){if(o=null,r>0){if(!("."==d()&&r<4))return;p++}if(!N.test(d()))return;for(;N.test(d());){if(i=parseInt(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;p++}c[l]=256*c[l]+o,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==d()){if(p++,!d())return}else if(d())return;c[l++]=e}else{if(null!==u)return;p++,u=++l}}if(null!==u)for(s=l-u,l=7;0!=l&&s>0;)a=c[l],c[l--]=c[u+s-1],c[u+--s]=a;else if(8!=l)return;return c},F=function(t){var e,n,r,o;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=S(t/256);return e.join(".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,o=0,i=0;i<8;i++)0!==t[i]?(o>n&&(e=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(e=r,n=o),e}(t),n=0;n<8;n++)o&&0===t[n]||(o&&(o=!1),r===n?(e+=n?":":"::",o=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},q={},U=d({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),B=d({},U,{"#":1,"?":1,"{":1,"}":1}),W=d({},B,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),V=function(t,e){var n=f(t,0);return n>32&&n<127&&!p(e,t)?t:encodeURIComponent(t)},G={ftp:21,file:null,http:80,https:443,ws:80,wss:443},J=function(t){return p(G,t.scheme)},Y=function(t){return""!=t.username||""!=t.password},$=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},X=function(t,e){var n;return 2==t.length&&T.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},Z=function(t){var e;return t.length>1&&X(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},K=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&X(e[0],!0)||e.pop()},Q=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},nt={},rt={},ot={},it={},st={},at={},ct={},lt={},ut={},pt={},dt={},ht={},ft={},_t={},mt={},gt={},vt={},bt={},yt={},wt=function(t,e,n,o){var i,s,a,c,l,u=n||tt,d=0,f="",_=!1,m=!1,g=!1;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(P,"")),e=e.replace(M,""),i=h(e);d<=i.length;){switch(s=i[d],u){case tt:if(!s||!T.test(s)){if(n)return"Invalid scheme";u=nt;continue}f+=s.toLowerCase(),u=et;break;case et:if(s&&(A.test(s)||"+"==s||"-"==s||"."==s))f+=s.toLowerCase();else{if(":"!=s){if(n)return"Invalid scheme";f="",u=nt,d=0;continue}if(n&&(J(t)!=p(G,f)||"file"==f&&(Y(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=f,n)return void(J(t)&&G[t.scheme]==t.port&&(t.port=null));f="","file"==t.scheme?u=ht:J(t)&&o&&o.scheme==t.scheme?u=rt:J(t)?u=at:"/"==i[d+1]?(u=ot,d++):(t.cannotBeABaseURL=!0,t.path.push(""),u=vt)}break;case nt:if(!o||o.cannotBeABaseURL&&"#"!=s)return"Invalid scheme";if(o.cannotBeABaseURL&&"#"==s){t.scheme=o.scheme,t.path=o.path.slice(),t.query=o.query,t.fragment="",t.cannotBeABaseURL=!0,u=yt;break}u="file"==o.scheme?ht:it;continue;case rt:if("/"!=s||"/"!=i[d+1]){u=it;continue}u=ct,d++;break;case ot:if("/"==s){u=lt;break}u=gt;continue;case it:if(t.scheme=o.scheme,s==r)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query;else if("/"==s||"\\"==s&&J(t))u=st;else if("?"==s)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query="",u=bt;else{if("#"!=s){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.path.pop(),u=gt;continue}t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query,t.fragment="",u=yt}break;case st:if(!J(t)||"/"!=s&&"\\"!=s){if("/"!=s){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,u=gt;continue}u=lt}else u=ct;break;case at:if(u=ct,"/"!=s||"/"!=f.charAt(d+1))continue;d++;break;case ct:if("/"!=s&&"\\"!=s){u=lt;continue}break;case lt:if("@"==s){_&&(f="%40"+f),_=!0,a=h(f);for(var v=0;v<a.length;v++){var b=a[v];if(":"!=b||g){var y=V(b,W);g?t.password+=y:t.username+=y}else g=!0}f=""}else if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&J(t)){if(_&&""==f)return"Invalid authority";d-=h(f).length+1,f="",u=ut}else f+=s;break;case ut:case pt:if(n&&"file"==t.scheme){u=_t;continue}if(":"!=s||m){if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&J(t)){if(J(t)&&""==f)return"Invalid host";if(n&&""==f&&(Y(t)||null!==t.port))return;if(c=R(t,f))return c;if(f="",u=mt,n)return;continue}"["==s?m=!0:"]"==s&&(m=!1),f+=s}else{if(""==f)return"Invalid host";if(c=R(t,f))return c;if(f="",u=dt,n==pt)return}break;case dt:if(!N.test(s)){if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&J(t)||n){if(""!=f){var w=parseInt(f,10);if(w>65535)return"Invalid port";t.port=J(t)&&w===G[t.scheme]?null:w,f=""}if(n)return;u=mt;continue}return"Invalid port"}f+=s;break;case ht:if(t.scheme="file","/"==s||"\\"==s)u=ft;else{if(!o||"file"!=o.scheme){u=gt;continue}if(s==r)t.host=o.host,t.path=o.path.slice(),t.query=o.query;else if("?"==s)t.host=o.host,t.path=o.path.slice(),t.query="",u=bt;else{if("#"!=s){Z(i.slice(d).join(""))||(t.host=o.host,t.path=o.path.slice(),K(t)),u=gt;continue}t.host=o.host,t.path=o.path.slice(),t.query=o.query,t.fragment="",u=yt}}break;case ft:if("/"==s||"\\"==s){u=_t;break}o&&"file"==o.scheme&&!Z(i.slice(d).join(""))&&(X(o.path[0],!0)?t.path.push(o.path[0]):t.host=o.host),u=gt;continue;case _t:if(s==r||"/"==s||"\\"==s||"?"==s||"#"==s){if(!n&&X(f))u=gt;else if(""==f){if(t.host="",n)return;u=mt}else{if(c=R(t,f))return c;if("localhost"==t.host&&(t.host=""),n)return;f="",u=mt}continue}f+=s;break;case mt:if(J(t)){if(u=gt,"/"!=s&&"\\"!=s)continue}else if(n||"?"!=s)if(n||"#"!=s){if(s!=r&&(u=gt,"/"!=s))continue}else t.fragment="",u=yt;else t.query="",u=bt;break;case gt:if(s==r||"/"==s||"\\"==s&&J(t)||!n&&("?"==s||"#"==s)){if(".."===(l=(l=f).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(K(t),"/"==s||"\\"==s&&J(t)||t.path.push("")):Q(f)?"/"==s||"\\"==s&&J(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&X(f)&&(t.host&&(t.host=""),f=f.charAt(0)+":"),t.path.push(f)),f="","file"==t.scheme&&(s==r||"?"==s||"#"==s))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==s?(t.query="",u=bt):"#"==s&&(t.fragment="",u=yt)}else f+=V(s,B);break;case vt:"?"==s?(t.query="",u=bt):"#"==s?(t.fragment="",u=yt):s!=r&&(t.path[0]+=V(s,q));break;case bt:n||"#"!=s?s!=r&&("'"==s&&J(t)?t.query+="%27":t.query+="#"==s?"%23":V(s,q)):(t.fragment="",u=yt);break;case yt:s!=r&&(t.fragment+=V(s,U))}d++}},xt=function(t){var e,n,r=u(this,xt,"URL"),o=arguments.length>1?arguments[1]:void 0,s=String(t),a=x(r,{type:"URL"});if(void 0!==o)if(o instanceof xt)e=E(o);else if(n=wt(e={},String(o)))throw TypeError(n);if(n=wt(a,s,null,e))throw TypeError(n);var c=a.searchParams=new y,l=w(c);l.updateSearchParams(a.query),l.updateURL=function(){a.query=String(c)||null},i||(r.href=St.call(r),r.origin=Ot.call(r),r.protocol=Tt.call(r),r.username=At.call(r),r.password=Nt.call(r),r.host=Ct.call(r),r.hostname=kt.call(r),r.port=Lt.call(r),r.pathname=jt.call(r),r.search=Dt.call(r),r.searchParams=It.call(r),r.hash=Pt.call(r))},Et=xt.prototype,St=function(){var t=E(this),e=t.scheme,n=t.username,r=t.password,o=t.host,i=t.port,s=t.path,a=t.query,c=t.fragment,l=e+":";return null!==o?(l+="//",Y(t)&&(l+=n+(r?":"+r:"")+"@"),l+=F(o),null!==i&&(l+=":"+i)):"file"==e&&(l+="//"),l+=t.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==a&&(l+="?"+a),null!==c&&(l+="#"+c),l},Ot=function(){var t=E(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&J(t)?e+"://"+F(t.host)+(null!==n?":"+n:""):"null"},Tt=function(){return E(this).scheme+":"},At=function(){return E(this).username},Nt=function(){return E(this).password},Ct=function(){var t=E(this),e=t.host,n=t.port;return null===e?"":null===n?F(e):F(e)+":"+n},kt=function(){var t=E(this).host;return null===t?"":F(t)},Lt=function(){var t=E(this).port;return null===t?"":String(t)},jt=function(){var t=E(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Dt=function(){var t=E(this).query;return t?"?"+t:""},It=function(){return E(this).searchParams},Pt=function(){var t=E(this).fragment;return t?"#"+t:""},Mt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(i&&c(Et,{href:Mt(St,(function(t){var e=E(this),n=String(t),r=wt(e,n);if(r)throw TypeError(r);w(e.searchParams).updateSearchParams(e.query)})),origin:Mt(Ot),protocol:Mt(Tt,(function(t){var e=E(this);wt(e,String(t)+":",tt)})),username:Mt(At,(function(t){var e=E(this),n=h(String(t));if(!$(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=V(n[r],W)}})),password:Mt(Nt,(function(t){var e=E(this),n=h(String(t));if(!$(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=V(n[r],W)}})),host:Mt(Ct,(function(t){var e=E(this);e.cannotBeABaseURL||wt(e,String(t),ut)})),hostname:Mt(kt,(function(t){var e=E(this);e.cannotBeABaseURL||wt(e,String(t),pt)})),port:Mt(Lt,(function(t){var e=E(this);$(e)||(""==(t=String(t))?e.port=null:wt(e,t,dt))})),pathname:Mt(jt,(function(t){var e=E(this);e.cannotBeABaseURL||(e.path=[],wt(e,t+"",mt))})),search:Mt(Dt,(function(t){var e=E(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",wt(e,t,bt)),w(e.searchParams).updateSearchParams(e.query)})),searchParams:Mt(It),hash:Mt(Pt,(function(t){var e=E(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",wt(e,t,yt)):e.fragment=null}))}),l(Et,"toJSON",(function(){return St.call(this)}),{enumerable:!0}),l(Et,"toString",(function(){return St.call(this)}),{enumerable:!0}),b){var Rt=b.createObjectURL,zt=b.revokeObjectURL;Rt&&l(xt,"createObjectURL",(function(t){return Rt.apply(b,arguments)})),zt&&l(xt,"revokeObjectURL",(function(t){return zt.apply(b,arguments)}))}m(xt,"URL"),o({global:!0,forced:!s,sham:!i},{URL:xt})},function(t,e,n){"use strict";var r=n(67).charAt,o=n(18),i=n(82),s=o.set,a=o.getterFor("String Iterator");i(String,"String",(function(t){s(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(20),o=n(14),i=n(96),s=n(63),a=n(4),c=n(242),l=n(32);t.exports=function(t){var e,n,u,p,d,h,f=o(t),_="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,v=void 0!==g,b=l(f),y=0;if(v&&(g=r(g,m>2?arguments[2]:void 0,2)),null==b||_==Array&&s(b))for(n=new _(e=a(f.length));e>y;y++)h=v?g(f[y],y):f[y],c(n,y,h);else for(d=(p=b.call(f)).next,n=new _;!(u=d.call(p)).done;y++)h=v?i(p,g,[u.value,y],!0):u.value,c(n,y,h);return n.length=y,n}},function(t,e,n){"use strict";var r=n(37),o=n(10),i=n(22);t.exports=function(t,e,n){var s=r(e);s in t?o.f(t,s,i(0,n)):t[s]=n}},function(t,e,n){"use strict";var r=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",s=Math.floor,a=String.fromCharCode,c=function(t){return t+22+75*(t<26)},l=function(t,e,n){var r=0;for(t=n?s(t/700):t>>1,t+=s(t/e);t>455;r+=36)t=s(t/35);return s(r+36*t/(t+38))},u=function(t){var e,n,r=[],o=(t=function(t){for(var e=[],n=0,r=t.length;n<r;){var o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=t.charCodeAt(n++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),n--)}else e.push(o)}return e}(t)).length,u=128,p=0,d=72;for(e=0;e<t.length;e++)(n=t[e])<128&&r.push(a(n));var h=r.length,f=h;for(h&&r.push("-");f<o;){var _=2147483647;for(e=0;e<t.length;e++)(n=t[e])>=u&&n<_&&(_=n);var m=f+1;if(_-u>s((2147483647-p)/m))throw RangeError(i);for(p+=(_-u)*m,u=_,e=0;e<t.length;e++){if((n=t[e])<u&&++p>2147483647)throw RangeError(i);if(n==u){for(var g=p,v=36;;v+=36){var b=v<=d?1:v>=d+26?26:v-d;if(g<b)break;var y=g-b,w=36-b;r.push(a(c(b+y%w))),g=s(y/w)}r.push(a(c(g))),d=l(p,m,f==h),p=0,++f}}++p,++u}return r.join("")};t.exports=function(t){var e,n,i=[],s=t.toLowerCase().replace(o,".").split(".");for(e=0;e<s.length;e++)n=s[e],i.push(r.test(n)?"xn--"+u(n):n);return i.join(".")}},function(t,e,n){"use strict";n(15);var r=n(7),o=n(23),i=n(121),s=n(13),a=n(61),c=n(24),l=n(87),u=n(18),p=n(31),d=n(6),h=n(20),f=n(42),_=n(3),m=n(5),g=n(38),v=n(22),b=n(245),y=n(32),w=n(2),x=o("fetch"),E=o("Headers"),S=w("iterator"),O=u.set,T=u.getterFor("URLSearchParams"),A=u.getterFor("URLSearchParamsIterator"),N=/\+/g,C=Array(4),k=function(t){return C[t-1]||(C[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},L=function(t){try{return decodeURIComponent(t)}catch(e){return t}},j=function(t){var e=t.replace(N," "),n=4;try{return decodeURIComponent(e)}catch(t){for(;n;)e=e.replace(k(n--),L);return e}},D=/[!'()~]|%20/g,I={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},P=function(t){return I[t]},M=function(t){return encodeURIComponent(t).replace(D,P)},R=function(t,e){if(e)for(var n,r,o=e.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(r=n.split("="),t.push({key:j(r.shift()),value:j(r.join("="))}))},z=function(t){this.entries.length=0,R(this.entries,t)},H=function(t,e){if(t<e)throw TypeError("Not enough arguments")},F=l((function(t,e){O(this,{type:"URLSearchParamsIterator",iterator:b(T(t).entries),kind:e})}),"Iterator",(function(){var t=A(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n})),q=function(){p(this,q,"URLSearchParams");var t,e,n,r,o,i,s,a,c,l=arguments.length>0?arguments[0]:void 0,u=this,h=[];if(O(u,{type:"URLSearchParams",entries:h,updateURL:function(){},updateSearchParams:z}),void 0!==l)if(m(l))if("function"==typeof(t=y(l)))for(n=(e=t.call(l)).next;!(r=n.call(e)).done;){if((s=(i=(o=b(_(r.value))).next).call(o)).done||(a=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");h.push({key:s.value+"",value:a.value+""})}else for(c in l)d(l,c)&&h.push({key:c,value:l[c]+""});else R(h,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},U=q.prototype;a(U,{append:function(t,e){H(arguments.length,2);var n=T(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){H(arguments.length,1);for(var e=T(this),n=e.entries,r=t+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;e.updateURL()},get:function(t){H(arguments.length,1);for(var e=T(this).entries,n=t+"",r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){H(arguments.length,1);for(var e=T(this).entries,n=t+"",r=[],o=0;o<e.length;o++)e[o].key===n&&r.push(e[o].value);return r},has:function(t){H(arguments.length,1);for(var e=T(this).entries,n=t+"",r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){H(arguments.length,1);for(var n,r=T(this),o=r.entries,i=!1,s=t+"",a=e+"",c=0;c<o.length;c++)(n=o[c]).key===s&&(i?o.splice(c--,1):(i=!0,n.value=a));i||o.push({key:s,value:a}),r.updateURL()},sort:function(){var t,e,n,r=T(this),o=r.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(t=i[n],e=0;e<n;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===n&&o.push(t)}r.updateURL()},forEach:function(t){for(var e,n=T(this).entries,r=h(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((e=n[o++]).value,e.key,this)},keys:function(){return new F(this,"keys")},values:function(){return new F(this,"values")},entries:function(){return new F(this,"entries")}},{enumerable:!0}),s(U,S,U.entries),s(U,"toString",(function(){for(var t,e=T(this).entries,n=[],r=0;r<e.length;)t=e[r++],n.push(M(t.key)+"="+M(t.value));return n.join("&")}),{enumerable:!0}),c(q,"URLSearchParams"),r({global:!0,forced:!i},{URLSearchParams:q}),i||"function"!=typeof x||"function"!=typeof E||r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,n,r,o=[t];return arguments.length>1&&(e=arguments[1],m(e)&&(n=e.body,"URLSearchParams"===f(n)&&((r=e.headers?new E(e.headers):new E).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=g(e,{body:v(0,String(n)),headers:v(0,r)}))),o.push(e)),x.apply(this,o)}}),t.exports={URLSearchParams:q,getState:T}},function(t,e,n){var r=n(3),o=n(32);t.exports=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},function(t,e,n){(function(t,e){(function(){"use strict";var n,r="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},o="undefined"!=typeof window&&window===this?this:void 0!==t&&null!=t?t:this;function i(){i=function(){},o.Symbol||(o.Symbol=c)}var s,a,c=(s=0,function(t){return"jscomp_symbol_"+(t||"")+s++});function l(){i();var t=o.Symbol.iterator;t||(t=o.Symbol.iterator=o.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&r(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return u(this)}}),l=function(){}}function u(t){var e=0;return function(t){return l(),(t={next:t})[o.Symbol.iterator]=function(){return this},t}((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))}function p(t){l();var e=t[Symbol.iterator];return e?e.call(t):u(t)}if("function"==typeof Object.setPrototypeOf)a=Object.setPrototypeOf;else{var d;t:{var h={};try{h.__proto__={Pa:!0},d=h.Pa;break t}catch(s){}d=!1}a=d?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var f=a;function _(){this.f=!1,this.b=null,this.fa=void 0,this.a=1,this.G=0,this.c=null}function m(t){if(t.f)throw new TypeError("Generator is already running");t.f=!0}function g(t,e){t.c={Ra:e,Va:!0},t.a=t.G}function v(t,e){return t.a=3,{value:e}}function b(t){this.a=new _,this.b=t}function y(t,e,n,r){try{var o=e.call(t.a.b,n);if(!(o instanceof Object))throw new TypeError("Iterator result "+o+" is not an object");if(!o.done)return t.a.f=!1,o;var i=o.value}catch(e){return t.a.b=null,g(t.a,e),w(t)}return t.a.b=null,r.call(t.a,i),w(t)}function w(t){for(;t.a.a;)try{var e=t.b(t.a);if(e)return t.a.f=!1,{value:e.value,done:!1}}catch(e){t.a.fa=void 0,g(t.a,e)}if(t.a.f=!1,t.a.c){if(e=t.a.c,t.a.c=null,e.Va)throw e.Ra;return{value:e.return,done:!0}}return{value:void 0,done:!0}}function x(t){this.next=function(e){return m(t.a),t.a.b?e=y(t,t.a.b.next,e,t.a.m):(t.a.m(e),e=w(t)),e},this.throw=function(e){return m(t.a),t.a.b?e=y(t,t.a.b.throw,e,t.a.m):(g(t.a,e),e=w(t)),e},this.return=function(e){return function(t,e){m(t.a);var n=t.a.b;return n?y(t,"return"in n?n.return:function(t){return{value:t,done:!0}},e,t.a.return):(t.a.return(e),w(t))}(t,e)},l(),this[Symbol.iterator]=function(){return this}}function E(t,e){return e=new x(new b(e)),f&&f(e,t.prototype),e}_.prototype.m=function(t){this.fa=t},_.prototype.return=function(t){this.c={return:t},this.a=this.G},function(){if(!function(){var t=document.createEvent("Event");return t.initEvent("foo",!0,!0),t.preventDefault(),t.defaultPrevented}()){var t=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(t.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var e=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||e&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.Event||e&&"function"!=typeof window.Event){var n=window.Event;if(window.Event=function(t,e){e=e||{};var n=document.createEvent("Event");return n.initEvent(t,!!e.bubbles,!!e.cancelable),n},n)for(var r in n)window.Event[r]=n[r];window.Event.prototype=n.prototype}if(!window.MouseEvent||e&&"function"!=typeof window.MouseEvent){if(e=window.MouseEvent,window.MouseEvent=function(t,e){e=e||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(t,!!e.bubbles,!!e.cancelable,e.view||window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),n},e)for(r in e)window.MouseEvent[r]=e[r];window.MouseEvent.prototype=e.prototype}Array.from||(Array.from=function(t){return[].slice.call(t)}),Object.assign||(Object.assign=function(t,e){for(var n,r=[].slice.call(arguments,1),o=0;o<r.length;o++)if(n=r[o])for(var i=t,s=n,a=Object.getOwnPropertyNames(s),c=0;c<a.length;c++)i[n=a[c]]=s[n];return t})}(window.WebComponents),function(){function t(){}function e(t,e){if(!t.childNodes.length)return[];switch(t.nodeType){case Node.DOCUMENT_NODE:return _.call(t,e);case Node.DOCUMENT_FRAGMENT_NODE:return m.call(t,e);default:return f.call(t,e)}}var n="undefined"==typeof HTMLTemplateElement,r=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),o=!1;/Trident/.test(navigator.userAgent)&&function(){function t(t,e){if(t instanceof DocumentFragment)for(var r;r=t.firstChild;)n.call(this,r,e);else n.call(this,t,e);return t}o=!0;var e=Node.prototype.cloneNode;Node.prototype.cloneNode=function(t){return t=e.call(this,t),this instanceof DocumentFragment&&(t.__proto__=DocumentFragment.prototype),t},DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll,DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector,Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var n=Node.prototype.insertBefore;Node.prototype.insertBefore=t;var r=Node.prototype.appendChild;Node.prototype.appendChild=function(e){return e instanceof DocumentFragment?t.call(this,e,null):r.call(this,e),e};var i=Node.prototype.removeChild,s=Node.prototype.replaceChild;Node.prototype.replaceChild=function(e,n){return e instanceof DocumentFragment?(t.call(this,e,n),i.call(this,n)):s.call(this,e,n),n},Document.prototype.createDocumentFragment=function(){var t=this.createElement("df");return t.__proto__=DocumentFragment.prototype,t};var a=Document.prototype.importNode;Document.prototype.importNode=function(t,e){return e=a.call(this,t,e||!1),t instanceof DocumentFragment&&(e.__proto__=DocumentFragment.prototype),e}}();var i=Node.prototype.cloneNode,s=Document.prototype.createElement,a=Document.prototype.importNode,c=Node.prototype.removeChild,l=Node.prototype.appendChild,u=Node.prototype.replaceChild,p=DOMParser.prototype.parseFromString,d=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),h=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes"),f=Element.prototype.querySelectorAll,_=Document.prototype.querySelectorAll,m=DocumentFragment.prototype.querySelectorAll,g=function(){if(!n){var t=document.createElement("template"),e=document.createElement("template");return e.content.appendChild(document.createElement("div")),t.content.appendChild(e),0===(t=t.cloneNode(!0)).content.childNodes.length||0===t.content.firstChild.content.childNodes.length||r}}();if(n){var v=document.implementation.createHTMLDocument("template"),b=!0,y=document.createElement("style");y.textContent="template{display:none;}";var w=document.head;w.insertBefore(y,w.firstElementChild),t.prototype=Object.create(HTMLElement.prototype);var x=!document.createElement("div").hasOwnProperty("innerHTML");t.R=function(e){if(!e.content&&e.namespaceURI===document.documentElement.namespaceURI){e.content=v.createDocumentFragment();for(var n;n=e.firstChild;)l.call(e.content,n);if(x)e.__proto__=t.prototype;else if(e.cloneNode=function(e){return t.b(this,e)},b)try{S(e),O(e)}catch(t){b=!1}t.a(e.content)}};var E={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},S=function(e){Object.defineProperty(e,"innerHTML",{get:function(){return L(this)},set:function(e){var n=E[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(e)||["",""])[1].toLowerCase()];if(n)for(var r=0;r<n.length;r++)e="<"+n[r]+">"+e+"</"+n[r]+">";for(v.body.innerHTML=e,t.a(v);this.content.firstChild;)c.call(this.content,this.content.firstChild);if(e=v.body,n)for(r=0;r<n.length;r++)e=e.lastChild;for(;e.firstChild;)l.call(this.content,e.firstChild)},configurable:!0})},O=function(t){Object.defineProperty(t,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(t){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(v.body.innerHTML=t,t=this.ownerDocument.createDocumentFragment();v.body.firstChild;)l.call(t,v.body.firstChild);u.call(this.parentNode,t,this)},configurable:!0})};S(t.prototype),O(t.prototype),t.a=function(n){for(var r,o=0,i=(n=e(n,"template")).length;o<i&&(r=n[o]);o++)t.R(r)},document.addEventListener("DOMContentLoaded",(function(){t.a(document)})),Document.prototype.createElement=function(){var e=s.apply(this,arguments);return"template"===e.localName&&t.R(e),e},DOMParser.prototype.parseFromString=function(){var e=p.apply(this,arguments);return t.a(e),e},Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return L(this)},set:function(e){d.set.call(this,e),t.a(this)},configurable:!0,enumerable:!0});var T=/[&\u00A0"]/g,A=/[&\u00A0<>]/g,N=function(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case"\xa0":return"&nbsp;"}},C=(y=function(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e})("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),k=y("style script xmp iframe noembed noframes plaintext noscript".split(" ")),L=function(t,e){"template"===t.localName&&(t=t.content);for(var n,r="",o=e?e(t):h.get.call(t),i=0,s=o.length;i<s&&(n=o[i]);i++){t:{var a=n,c=t,l=e;switch(a.nodeType){case Node.ELEMENT_NODE:for(var u=a.localName,p="<"+u,d=a.attributes,f=0;c=d[f];f++)p+=" "+c.name+'="'+c.value.replace(T,N)+'"';p+=">",a=C[u]?p:p+L(a,l)+"</"+u+">";break t;case Node.TEXT_NODE:a=a.data,a=c&&k[c.localName]?a:a.replace(A,N);break t;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break t;default:throw window.console.error(a),Error("not implemented")}}r+=a}return r}}if(n||g){t.b=function(t,e){var n=i.call(t,!1);return this.R&&this.R(n),e&&(l.call(n.content,i.call(t.content,!0)),j(n.content,t.content)),n};var j=function(n,r){if(r.querySelectorAll&&0!==(r=e(r,"template")).length)for(var o,i,s=0,a=(n=e(n,"template")).length;s<a;s++)i=r[s],o=n[s],t&&t.R&&t.R(i),u.call(o.parentNode,D.call(i,!0),o)},D=Node.prototype.cloneNode=function(e){if(!o&&r&&this instanceof DocumentFragment){if(!e)return this.ownerDocument.createDocumentFragment();var n=I.call(this.ownerDocument,this,!0)}else n=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?t.b(this,e):i.call(this,e);return e&&j(n,this),n},I=Document.prototype.importNode=function(n,r){if(r=r||!1,"template"===n.localName)return t.b(n,r);var o=a.call(this,n,r);if(r){j(o,n),n=e(o,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var i,c=0;c<n.length;c++){i=n[c],(r=s.call(document,"script")).textContent=i.textContent;for(var l,p=i.attributes,d=0;d<p.length;d++)l=p[d],r.setAttribute(l.name,l.value);u.call(i.parentNode,r,i)}}return o}}n&&(window.HTMLTemplateElement=t)}();var S=setTimeout;function O(){}function T(t){if(!(this instanceof T))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this.J=0,this.wa=!1,this.A=void 0,this.U=[],j(t,this)}function A(t,e){for(;3===t.J;)t=t.A;0===t.J?t.U.push(e):(t.wa=!0,T.a((function(){var n=1===t.J?e.Xa:e.Ya;if(null===n)(1===t.J?N:C)(e.qa,t.A);else{try{var r=n(t.A)}catch(t){return void C(e.qa,t)}N(e.qa,r)}})))}function N(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof T)return t.J=3,t.A=e,void k(t);if("function"==typeof n)return void j(function(t,e){return function(){t.apply(e,arguments)}}(n,e),t)}t.J=1,t.A=e,k(t)}catch(e){C(t,e)}}function C(t,e){t.J=2,t.A=e,k(t)}function k(t){2===t.J&&0===t.U.length&&T.a((function(){t.wa||T.b(t.A)}));for(var e=0,n=t.U.length;e<n;e++)A(t,t.U[e]);t.U=null}function L(t,e,n){this.Xa="function"==typeof t?t:null,this.Ya="function"==typeof e?e:null,this.qa=n}function j(t,e){var n=!1;try{t((function(t){n||(n=!0,N(e,t))}),(function(t){n||(n=!0,C(e,t))}))}catch(t){n||(n=!0,C(e,t))}}if(T.prototype.catch=function(t){return this.then(null,t)},T.prototype.then=function(t,e){var n=new this.constructor(O);return A(this,new L(t,e,n)),n},T.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))},T.c=function(t){return new T((function(e,n){function r(t,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,(function(e){r(t,e)}),n)}o[t]=s,0==--i&&e(o)}catch(t){n(t)}}if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var o=Array.prototype.slice.call(t);if(0===o.length)return e([]);for(var i=o.length,s=0;s<o.length;s++)r(s,o[s])}))},T.resolve=function(t){return t&&"object"==typeof t&&t.constructor===T?t:new T((function(e){e(t)}))},T.reject=function(t){return new T((function(e,n){n(t)}))},T.f=function(t){return new T((function(e,n){for(var r=0,o=t.length;r<o;r++)t[r].then(e,n)}))},T.a="function"==typeof e&&function(t){e(t)}||function(t){S(t,0)},T.b=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},!window.Promise&&(window.Promise=T,T.prototype.then=T.prototype.then,T.all=T.c,T.race=T.f,T.resolve=T.resolve,T.reject=T.reject,!window.setImmediate)){var D=document.createTextNode(""),I=[];new MutationObserver((function(){for(var t=I.length,e=0;e<t;e++)I[e]();I.splice(0,t)})).observe(D,{characterData:!0}),T.a=function(t){I.push(t),D.textContent=0<D.textContent.length?"":"a"}}var P={},M=Object.create,R=Object.defineProperties,z=Object.defineProperty;function H(t,e){return{value:t,configurable:!!(e=void 0===e?{}:e).xa,writable:!!e.eb,enumerable:!!e.e}}var F=void 0;try{F=1===z({},"y",{get:function(){return 1}}).y}catch(s){F=!1}var q={};var U=M(null);function B(t){if(this instanceof B)throw new TypeError("Symbol is not a constructor");var e=function(t){t=String(t);for(var e="",n=0;q[t+e];)e=n+=1;q[t+e]=1;var r="Symbol("+t+e+")";return F&&z(Object.prototype,r,{get:void 0,set:function(t){z(this,r,H(t,{xa:!0,eb:!0}))},configurable:!0,enumerable:!1}),r}(t=void 0===t?"":String(t));return F?M(U,{ta:H(t),Ja:H(e)}):e}R(B,{for:H((function(t){if(t=String(t),P[t])return P[t];var e=B(t);return P[t]=e})),keyFor:H((function(t){if(F&&(!t||"Symbol"!==t[B.toStringTag]))throw new TypeError(t+" is not a symbol");for(var e in P)if(P[e]===t)return F?P[e].ta:P[e].substr(7,P[e].length-8)}))}),R(B,{vb:H(B("hasInstance")),wb:H(B("isConcatSpreadable")),iterator:H(B("iterator")),match:H(B("match")),replace:H(B("replace")),search:H(B("search")),yb:H(B("species")),split:H(B("split")),zb:H(B("toPrimitive")),toStringTag:H(B("toStringTag")),unscopables:H(B("unscopables"))}),R(U,{constructor:H(B),toString:H((function(){return this.Ja})),valueOf:H((function(){return"Symbol("+this.ta+")"}))}),F&&z(U,B.toStringTag,H("Symbol",{xa:!0}));var W="function"==typeof Symbol?Symbol:B;if(!window.Symbol){window.Symbol=W;var V=window.Symbol.iterator;Array.prototype[V]=function t(){var e,n=this;return E(t,(function(t){if(1==t.a&&(e=0),3!=t.a)return e<n.length?t=v(t,n[e]):(t.a=0,t=void 0),t;e++,t.a=2}))},Set.prototype[V]=function t(){var e,n,r=this;return E(t,(function(t){if(1==t.a&&(e=[],r.forEach((function(t){e.push(t)})),n=0),3!=t.a)return n<e.length?t=v(t,e[n]):(t.a=0,t=void 0),t;n++,t.a=2}))},Map.prototype[V]=function t(){var e,n,r=this;return E(t,(function(t){if(1==t.a&&(e=[],r.forEach((function(t,n){e.push([n,t])})),n=0),3!=t.a)return n<e.length?t=v(t,e[n]):(t.a=0,t=void 0),t;n++,t.a=2}))},String.prototype[V]=function t(){var e,n=this;return E(t,(function(t){if(1==t.a&&(e=0),3!=t.a)return e<n.length?t=v(t,n[e]):(t.a=0,t=void 0),t;e++,t.a=2}))}}window.WebComponents=window.WebComponents||{flags:{}};var G=document.querySelector('script[src*="webcomponents-bundle"]'),J=/wc-(.+)/,Y={};if(!Y.noOpts){if(location.search.slice(1).split("&").forEach((function(t){var e;(t=t.split("="))[0]&&(e=t[0].match(J))&&(Y[e[1]]=t[1]||!0)})),G)for(var $,X=0;$=G.attributes[X];X++)"src"!==$.name&&(Y[$.name]=$.value||!0);if(Y.log&&Y.log.split){var Z=Y.log.split(",");Y.log={},Z.forEach((function(t){Y.log[t]=!0}))}else Y.log={}}window.WebComponents.flags=Y;var K=Y.shadydom;K&&(window.ShadyDOM=window.ShadyDOM||{},window.ShadyDOM.force=K);var Q=Y.register||Y.ce;function tt(){this.Aa=this.root=null,this.da=!1,this.N=this.$=this.ma=this.assignedSlot=this.assignedNodes=this.S=null,this.childNodes=this.nextSibling=this.previousSibling=this.lastChild=this.firstChild=this.parentNode=this.V=void 0,this.Fa=this.ua=!1,this.Z={}}function et(t){return t.ka||(t.ka=new tt),t.ka}function nt(t){return t&&t.ka}Q&&window.customElements&&(window.customElements.forcePolyfill=Q),tt.prototype.toJSON=function(){return{}};var rt=window.ShadyDOM||{};rt.Ta=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var ot=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");rt.K=!!(ot&&ot.configurable&&ot.get),rt.oa=rt.force||!rt.Ta;var it=navigator.userAgent.match("Trident"),st=navigator.userAgent.match("Edge");function at(t){return(t=nt(t))&&void 0!==t.firstChild}function ct(t){return"ShadyRoot"===t.La}function lt(t){if(ct(t=t.getRootNode()))return t}void 0===rt.Ca&&(rt.Ca=rt.K&&(it||st));var ut=Element.prototype,pt=ut.matches||ut.matchesSelector||ut.mozMatchesSelector||ut.msMatchesSelector||ut.oMatchesSelector||ut.webkitMatchesSelector;function dt(t,e){if(t&&e)for(var n,r=Object.getOwnPropertyNames(e),o=0;o<r.length&&(n=r[o]);o++){var i=n,s=t,a=Object.getOwnPropertyDescriptor(e,i);a&&Object.defineProperty(s,i,a)}}function ht(t,e){for(var n=[],r=1;r<arguments.length;++r)n[r-1]=arguments[r];for(r=0;r<n.length;r++)dt(t,n[r]);return t}var ft=document.createTextNode(""),_t=0,mt=[];function gt(t){mt.push(t),ft.textContent=_t++}new MutationObserver((function(){for(;mt.length;)try{mt.shift()()}catch(t){throw ft.textContent=_t++,t}})).observe(ft,{characterData:!0});var vt=!!document.contains;function bt(t,e){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function yt(t){for(var e=t.length-1;0<=e;e--){var n=t[e],r=n.getAttribute("id")||n.getAttribute("name");r&&"length"!==r&&isNaN(r)&&(t[r]=n)}return t.item=function(e){return t[e]},t.namedItem=function(e){if("length"!==e&&isNaN(e)&&t[e])return t[e];for(var n=p(t),r=n.next();!r.done;r=n.next())if(((r=r.value).getAttribute("id")||r.getAttribute("name"))==e)return r;return null},t}var wt,xt=[];function Et(t){wt||(wt=!0,gt(St)),xt.push(t)}function St(){wt=!1;for(var t=!!xt.length;xt.length;)xt.shift()();return t}function Ot(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.ca=new Set}St.list=xt,Ot.prototype.flush=function(){if(this.a){this.a=!1;var t=this.takeRecords();t.length&&this.ca.forEach((function(e){e(t)}))}},Ot.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var Tt=Element.prototype.insertBefore,At=Element.prototype.replaceChild,Nt=Element.prototype.removeChild,Ct=Element.prototype.setAttribute,kt=Element.prototype.removeAttribute,Lt=Element.prototype.cloneNode,jt=Document.prototype.importNode,Dt=Element.prototype.addEventListener,It=Element.prototype.removeEventListener,Pt=Window.prototype.addEventListener,Mt=Window.prototype.removeEventListener,Rt=Element.prototype.dispatchEvent,zt=Node.prototype.contains||HTMLElement.prototype.contains,Ht=Document.prototype.getElementById,Ft=Element.prototype.querySelector,qt=DocumentFragment.prototype.querySelector,Ut=Document.prototype.querySelector,Bt=Element.prototype.querySelectorAll,Wt=DocumentFragment.prototype.querySelectorAll,Vt=Document.prototype.querySelectorAll,Gt={};Gt.appendChild=Element.prototype.appendChild,Gt.insertBefore=Tt,Gt.replaceChild=At,Gt.removeChild=Nt,Gt.setAttribute=Ct,Gt.removeAttribute=kt,Gt.cloneNode=Lt,Gt.importNode=jt,Gt.addEventListener=Dt,Gt.removeEventListener=It,Gt.fb=Pt,Gt.gb=Mt,Gt.dispatchEvent=Rt,Gt.contains=zt,Gt.getElementById=Ht,Gt.pb=Ft,Gt.tb=qt,Gt.nb=Ut,Gt.querySelector=function(t){switch(this.nodeType){case Node.ELEMENT_NODE:return Ft.call(this,t);case Node.DOCUMENT_NODE:return Ut.call(this,t);default:return qt.call(this,t)}},Gt.qb=Bt,Gt.ub=Wt,Gt.ob=Vt,Gt.querySelectorAll=function(t){switch(this.nodeType){case Node.ELEMENT_NODE:return Bt.call(this,t);case Node.DOCUMENT_NODE:return Vt.call(this,t);default:return Wt.call(this,t)}};var Jt=/[&\u00A0"]/g,Yt=/[&\u00A0<>]/g;function $t(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case"\xa0":return"&nbsp;"}}function Xt(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}var Zt=Xt("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Kt=Xt("style script xmp iframe noembed noframes plaintext noscript".split(" "));function Qt(t,e){"template"===t.localName&&(t=t.content);for(var n,r="",o=e?e(t):t.childNodes,i=0,s=o.length;i<s&&(n=o[i]);i++){t:{var a=n,c=t,l=e;switch(a.nodeType){case Node.ELEMENT_NODE:for(var u=a.localName,p="<"+u,d=a.attributes,h=0;c=d[h];h++)p+=" "+c.name+'="'+c.value.replace(Jt,$t)+'"';p+=">",a=Zt[u]?p:p+Qt(a,l)+"</"+u+">";break t;case Node.TEXT_NODE:a=a.data,a=c&&Kt[c.localName]?a:a.replace(Yt,$t);break t;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break t;default:throw window.console.error(a),Error("not implemented")}}r+=a}return r}var te=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),ee=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function ne(t){var e=[];for(te.currentNode=t,t=te.firstChild();t;)e.push(t),t=te.nextSibling();return e}var re={parentNode:function(t){return te.currentNode=t,te.parentNode()},firstChild:function(t){return te.currentNode=t,te.firstChild()},lastChild:function(t){return te.currentNode=t,te.lastChild()},previousSibling:function(t){return te.currentNode=t,te.previousSibling()},nextSibling:function(t){return te.currentNode=t,te.nextSibling()}};re.childNodes=ne,re.parentElement=function(t){return ee.currentNode=t,ee.parentNode()},re.firstElementChild=function(t){return ee.currentNode=t,ee.firstChild()},re.lastElementChild=function(t){return ee.currentNode=t,ee.lastChild()},re.previousElementSibling=function(t){return ee.currentNode=t,ee.previousSibling()},re.nextElementSibling=function(t){return ee.currentNode=t,ee.nextSibling()},re.children=function(t){var e=[];for(ee.currentNode=t,t=ee.firstChild();t;)e.push(t),t=ee.nextSibling();return yt(e)},re.innerHTML=function(t){return Qt(t,(function(t){return ne(t)}))},re.textContent=function(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}};var oe=rt.K,ie=[Node.prototype,Element.prototype,HTMLElement.prototype];function se(t){var e;t:{for(e=0;e<ie.length;e++){var n=ie[e];if(n.hasOwnProperty(t)){e=n;break t}}e=void 0}if(!e)throw Error("Could not find descriptor for "+t);return Object.getOwnPropertyDescriptor(e,t)}var ae=oe?{parentNode:se("parentNode"),firstChild:se("firstChild"),lastChild:se("lastChild"),previousSibling:se("previousSibling"),nextSibling:se("nextSibling"),childNodes:se("childNodes"),parentElement:se("parentElement"),previousElementSibling:se("previousElementSibling"),nextElementSibling:se("nextElementSibling"),innerHTML:se("innerHTML"),textContent:se("textContent"),firstElementChild:se("firstElementChild"),lastElementChild:se("lastElementChild"),children:se("children")}:{},ce=oe?{firstElementChild:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"firstElementChild"),lastElementChild:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"lastElementChild"),children:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"children")}:{},le=oe?{firstElementChild:Object.getOwnPropertyDescriptor(Document.prototype,"firstElementChild"),lastElementChild:Object.getOwnPropertyDescriptor(Document.prototype,"lastElementChild"),children:Object.getOwnPropertyDescriptor(Document.prototype,"children")}:{},ue={za:ae,sb:ce,mb:le,parentNode:function(t){return ae.parentNode.get.call(t)},firstChild:function(t){return ae.firstChild.get.call(t)},lastChild:function(t){return ae.lastChild.get.call(t)},previousSibling:function(t){return ae.previousSibling.get.call(t)},nextSibling:function(t){return ae.nextSibling.get.call(t)},childNodes:function(t){return Array.prototype.slice.call(ae.childNodes.get.call(t))},parentElement:function(t){return ae.parentElement.get.call(t)},previousElementSibling:function(t){return ae.previousElementSibling.get.call(t)},nextElementSibling:function(t){return ae.nextElementSibling.get.call(t)},innerHTML:function(t){return ae.innerHTML.get.call(t)},textContent:function(t){return ae.textContent.get.call(t)},children:function(t){switch(t.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return ce.children.get.call(t);case Node.DOCUMENT_NODE:return le.children.get.call(t);default:return ae.children.get.call(t)}},firstElementChild:function(t){switch(t.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return ce.firstElementChild.get.call(t);case Node.DOCUMENT_NODE:return le.firstElementChild.get.call(t);default:return ae.firstElementChild.get.call(t)}},lastElementChild:function(t){switch(t.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return ce.lastElementChild.get.call(t);case Node.DOCUMENT_NODE:return le.lastElementChild.get.call(t);default:return ae.lastElementChild.get.call(t)}}},pe=rt.Ca?ue:re;function de(t){for(;t.firstChild;)t.removeChild(t.firstChild)}var he=rt.K,fe=document.implementation.createHTMLDocument("inert"),_e=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),me=_e&&_e.get,ge=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),ve={parentElement:{get:function(){var t=nt(this);return(t=t&&t.parentNode)&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:pe.parentElement(this)},configurable:!0},parentNode:{get:function(){var t=nt(this);return void 0!==(t=t&&t.parentNode)?t:pe.parentNode(this)},configurable:!0},nextSibling:{get:function(){var t=nt(this);return void 0!==(t=t&&t.nextSibling)?t:pe.nextSibling(this)},configurable:!0},previousSibling:{get:function(){var t=nt(this);return void 0!==(t=t&&t.previousSibling)?t:pe.previousSibling(this)},configurable:!0},nextElementSibling:{get:function(){var t=nt(this);if(t&&void 0!==t.nextSibling){for(t=this.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return pe.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){var t=nt(this);if(t&&void 0!==t.previousSibling){for(t=this.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return pe.previousElementSibling(this)},configurable:!0}},be={className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},configurable:!0}},ye={childNodes:{get:function(){if(at(this)){var t=nt(this);if(!t.childNodes){t.childNodes=[];for(var e=this.firstChild;e;e=e.nextSibling)t.childNodes.push(e)}var n=t.childNodes}else n=pe.childNodes(this);return n.item=function(t){return n[t]},n},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var t=nt(this);return void 0!==(t=t&&t.firstChild)?t:pe.firstChild(this)},configurable:!0},lastChild:{get:function(){var t=nt(this);return void 0!==(t=t&&t.lastChild)?t:pe.lastChild(this)},configurable:!0},textContent:{get:function(){if(at(this)){for(var t,e=[],n=0,r=this.childNodes;t=r[n];n++)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")}return pe.textContent(this)},set:function(t){switch(null==t&&(t=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!at(this)&&he){var e=this.firstChild;(e!=this.lastChild||e&&e.nodeType!=Node.TEXT_NODE)&&de(this),ue.za.textContent.set.call(this,t)}else de(this),(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(t));break;default:this.nodeValue=t}},configurable:!0},firstElementChild:{get:function(){var t=nt(this);if(t&&void 0!==t.firstChild){for(t=this.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return pe.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){var t=nt(this);if(t&&void 0!==t.lastChild){for(t=this.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return pe.lastElementChild(this)},configurable:!0},children:{get:function(){return at(this)?yt(Array.prototype.filter.call(this.childNodes,(function(t){return t.nodeType===Node.ELEMENT_NODE}))):pe.children(this)},configurable:!0},innerHTML:{get:function(){return at(this)?Qt("template"===this.localName?this.content:this):pe.innerHTML(this)},set:function(t){var e="template"===this.localName?this.content:this;de(e);var n=this.localName||"div";for(n=this.namespaceURI&&this.namespaceURI!==fe.namespaceURI?fe.createElementNS(this.namespaceURI,n):fe.createElement(n),he?ue.za.innerHTML.set.call(n,t):n.innerHTML=t,t="template"===this.localName?n.content:n;t.firstChild;)e.appendChild(t.firstChild)},configurable:!0}},we={shadowRoot:{get:function(){var t=nt(this);return t&&t.Aa||null},configurable:!0}},xe={activeElement:{get:function(){var t=ge&&ge.get?ge.get.call(document):rt.K?void 0:document.activeElement;if(t&&t.nodeType){var e=!!ct(this);if(this===document||e&&this.host!==t&&Gt.contains.call(this.host,t)){for(e=lt(t);e&&e!==this;)e=lt(t=e.host);t=this===document?e?null:t:e===this?t:null}else t=null}else t=null;return t},set:function(){},configurable:!0}};function Ee(t,e,n){for(var r in e){var o=Object.getOwnPropertyDescriptor(t,r);o&&o.configurable||!o&&n?Object.defineProperty(t,r,e[r]):n&&console.warn("Could not define",r,"on",t)}}function Se(t){Ee(t,ve),Ee(t,be),Ee(t,ye),Ee(t,xe)}var Oe=rt.K?function(){}:function(t){var e=et(t);e.ua||(e.ua=!0,Ee(t,ve,!0),Ee(t,be,!0))},Te=rt.K?function(){}:function(t){et(t).Fa||(Ee(t,ye,!0),Ee(t,we,!0))},Ae=pe.childNodes;function Ne(t,e,n){Oe(t),n=n||null;var r=et(t),o=et(e),i=n?et(n):null;r.previousSibling=n?i.previousSibling:e.lastChild,(i=nt(r.previousSibling))&&(i.nextSibling=t),(i=nt(r.nextSibling=n))&&(i.previousSibling=t),r.parentNode=e,n?n===o.firstChild&&(o.firstChild=t):(o.lastChild=t,o.firstChild||(o.firstChild=t)),o.childNodes=null}function Ce(t){var e=et(t);if(void 0===e.firstChild){e.childNodes=null;var n=Ae(t);for(e.firstChild=n[0]||null,e.lastChild=n[n.length-1]||null,Te(t),e=0;e<n.length;e++){var r=n[e],o=et(r);o.parentNode=t,o.nextSibling=n[e+1]||null,o.previousSibling=n[e-1]||null,Oe(r)}}}var ke=pe.parentNode;function Le(t,e,n){if(e===t)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var r=nt(n);if(void 0!==(r=r&&r.parentNode)&&r!==t||void 0===r&&ke(n)!==t)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===e)return e;var o,i;if(e.parentNode&&je(e.parentNode,e),r=!0,!e.__noInsertionPoint){var s;if(i=o=lt(t))"slot"===e.localName?s=[e]:e.querySelectorAll&&(s=e.querySelectorAll("slot")),i=s&&s.length?s:void 0;if(i){var a=i;(s=o).a=s.a||[],s.o=s.o||[],s.w=s.w||{},s.a.push.apply(s.a,a instanceof Array?a:function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(p(a)))}}if(("slot"===t.localName||i)&&(o=o||lt(t))&&_n(o),at(t)){if(o=n,Te(t),void 0!==(i=et(t)).firstChild&&(i.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(i=e.childNodes,s=0;s<i.length;s++)Ne(i[s],t,o);i=void 0!==(o=et(e)).firstChild?null:void 0,o.firstChild=o.lastChild=i,o.childNodes=i}else Ne(e,t,o);o=nt(t),De(t)?(_n(o.root),r=!1):o.root&&(r=!1)}return r?(r=ct(t)?t.host:t,n?(n=function t(e){var n=e;return e&&"slot"===e.localName&&(n=(n=(n=nt(e))&&n.N)&&n.length?n[0]:t(e.nextSibling)),n}(n),Gt.insertBefore.call(r,e,n)):Gt.appendChild.call(r,e)):e.ownerDocument!==t.ownerDocument&&t.ownerDocument.adoptNode(e),Pe(t,e),e}function je(t,e){if(e.parentNode!==t)throw Error("The node to be removed is not a child of this node: "+e);var n=lt(e),r=nt(t);if(at(t)){var o=et(e),i=et(t);e===i.firstChild&&(i.firstChild=o.nextSibling),e===i.lastChild&&(i.lastChild=o.previousSibling);var s=o.previousSibling,a=o.nextSibling;if(s&&(et(s).nextSibling=a),a&&(et(a).previousSibling=s),o.parentNode=o.previousSibling=o.nextSibling=void 0,void 0!==i.childNodes&&(i.childNodes=null),De(t)){_n(r.root);var c=!0}}if(function t(e){var n=nt(e);if(n&&void 0!==n.V){n=e.childNodes;for(var r,o=0,i=n.length;o<i&&(r=n[o]);o++)t(r)}(e=nt(e))&&(e.V=void 0)}(e),n){if((o=t&&"slot"===t.localName)&&(c=!0),n.o){for(f in yn(n),i=n.w)for(s=i[f],a=0;a<s.length;a++){var l=s[a];if(bt(e,l)){s.splice(a,1);var u=n.o.indexOf(l);if(0<=u&&n.o.splice(u,1),a--,l=(u=nt(l)).N)for(var p=0;p<l.length;p++){var d=l[p],h=ln(d);h&&Gt.removeChild.call(h,d)}u.N=[],u.assignedNodes=[],u=!0}}var f=u}else f=void 0;(f||o)&&_n(n)}return c||(c=ct(t)?t.host:t,(!r.root&&"slot"!==e.localName||c===ke(e))&&Gt.removeChild.call(c,e)),Pe(t,null,e),e}function De(t){return(t=(t=nt(t))&&t.root)&&En(t)}function Ie(t,e){if("slot"===e)De(t=t.parentNode)&&_n(nt(t).root);else if("slot"===t.localName&&"name"===e&&(e=lt(t))){if(e.o){yn(e);var n=t.Ia,r=wn(t);if(r!==n){var o=(n=e.w[n]).indexOf(t);0<=o&&n.splice(o,1),(n=e.w[r]||(e.w[r]=[])).push(t),1<n.length&&(e.w[r]=xn(n))}}_n(e)}}function Pe(t,e,n){(t=(t=nt(t))&&t.S)&&(e&&t.addedNodes.push(e),n&&t.removedNodes.push(n),function(t){t.a||(t.a=!0,gt((function(){t.flush()})))}(t))}function Me(t,e,n){var r=[];return function t(e,n,r,o){for(var i,s=0,a=e.length;s<a&&(i=e[s]);s++){var c;if(c=i.nodeType===Node.ELEMENT_NODE){var l=n,u=r,p=o,d=l(c=i);d&&p.push(c),u&&u(d)?c=d:(t(c.childNodes,l,u,p),c=void 0)}if(c)break}}(t.childNodes,e,n,r),r}var Re=null;function ze(t,e,n){Re||(Re=window.ShadyCSS&&window.ShadyCSS.ScopingShim),Re&&"class"===e?Re.setElementClass(t,n):(Gt.setAttribute.call(t,e,n),Ie(t,e))}var He="__eventWrappers"+Date.now(),Fe=function(){var t=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return t?function(e){return t.get.call(e)}:null}(),qe={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Ue={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function Be(t,e){var n=[],r=t;for(t=t===window?window:t.getRootNode();r;)n.push(r),r=r.assignedSlot?r.assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(e||r!==t)?r.host:r.parentNode;return n[n.length-1]===document&&n.push(window),n}function We(t,e){if(!ct)return t;t=Be(t,!0);for(var n,r,o,i,s=0;s<e.length;s++)if((o=(n=e[s])===window?window:n.getRootNode())!==r&&(i=t.indexOf(o),r=o),!ct(o)||-1<i)return n}var Ve={get composed(){return void 0===this.Y&&(Fe?this.Y=Fe(this):!1!==this.isTrusted&&(this.Y=qe[this.type])),this.Y||!1},composedPath:function(){return this.sa||(this.sa=Be(this.__target,this.composed)),this.sa},get target(){return We(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.ja?(this.va||(this.va=Be(this.ja,!0)),We(this.currentTarget||this.__previousCurrentTarget,this.va)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ia=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ia=this.Ea=!0}};function Ge(t){function e(e,n){return(e=new t(e,n)).Y=n&&!!n.composed,e}return function(t,e){for(var n in e)t[n]=e[n]}(e,t),e.prototype=t.prototype,e}var Je={focus:!0,blur:!0};function Ye(t){return t.__target!==t.target||t.ja!==t.relatedTarget}function $e(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var r,o=0;(r=n[o])&&(!Ye(t)||t.target!==t.relatedTarget)&&(r.call(e,t),!t.Ea);o++);}function Xe(t){var e,n=t.composedPath();Object.defineProperty(t,"currentTarget",{get:function(){return o},configurable:!0});for(var r=n.length-1;0<=r;r--){var o=n[r];if($e(t,o,"capture"),t.ia)return}for(Object.defineProperty(t,"eventPhase",{get:function(){return Event.AT_TARGET}}),r=0;r<n.length;r++){var i=nt(o=n[r]);if(i=i&&i.root,(0===r||i&&i===e)&&($e(t,o,"bubble"),o!==window&&(e=o.getRootNode()),t.ia))break}}function Ze(t,e,n,r,o,i){for(var s=0;s<t.length;s++){var a=t[s],c=a.type,l=a.capture,u=a.once,p=a.passive;if(e===a.node&&n===c&&r===l&&o===u&&i===p)return s}return-1}function Ke(t,e,n){if(e){var r=typeof e;if(("function"===r||"object"===r)&&("object"!==r||e.handleEvent&&"function"==typeof e.handleEvent)){var o=this instanceof Window?Gt.fb:Gt.addEventListener;if(Ue[t])return o.call(this,t,e,n);if(n&&"object"==typeof n)var i=!!n.capture,s=!!n.once,a=!!n.passive;else i=!!n,a=s=!1;var c=n&&n.la||this,l=e[He];if(l){if(-1<Ze(l,c,t,i,s,a))return}else e[He]=[];l=function(o){if(s&&this.removeEventListener(t,e,n),o.__target||tn(o),c!==this){var i=Object.getOwnPropertyDescriptor(o,"currentTarget");Object.defineProperty(o,"currentTarget",{get:function(){return c},configurable:!0})}if(o.__previousCurrentTarget=o.currentTarget,(!ct(c)||-1!=o.composedPath().indexOf(c))&&(o.composed||-1<o.composedPath().indexOf(c)))if(Ye(o)&&o.target===o.relatedTarget)o.eventPhase===Event.BUBBLING_PHASE&&o.stopImmediatePropagation();else if(o.eventPhase===Event.CAPTURING_PHASE||o.bubbles||o.target===c||c instanceof Window){var a="function"===r?e.call(c,o):e.handleEvent&&e.handleEvent(o);return c!==this&&(i?(Object.defineProperty(o,"currentTarget",i),i=null):delete o.currentTarget),a}},e[He].push({node:c,type:t,capture:i,once:s,passive:a,hb:l}),Je[t]?(this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][i?"capture":"bubble"].push(l)):o.call(this,t,l,n)}}}function Qe(t,e,n){if(e){var r=this instanceof Window?Gt.gb:Gt.removeEventListener;if(Ue[t])return r.call(this,t,e,n);if(n&&"object"==typeof n)var o=!!n.capture,i=!!n.once,s=!!n.passive;else o=!!n,s=i=!1;var a=n&&n.la||this,c=void 0,l=null;try{l=e[He]}catch(t){}l&&(-1<(i=Ze(l,a,t,o,i,s))&&(c=l.splice(i,1)[0].hb,l.length||(e[He]=void 0))),r.call(this,t,c||e,n),c&&Je[t]&&this.__handlers&&this.__handlers[t]&&(-1<(c=(t=this.__handlers[t][o?"capture":"bubble"]).indexOf(c))&&t.splice(c,1))}}function tn(t){if(t.__target=t.target,t.ja=t.relatedTarget,rt.K){var e=Object.getPrototypeOf(t);if(!e.hasOwnProperty("__patchProto")){var n=Object.create(e);n.jb=e,dt(n,Ve),e.__patchProto=n}t.__proto__=e.__patchProto}else dt(t,Ve)}var en=Ge(window.Event),nn=Ge(window.CustomEvent),rn=Ge(window.MouseEvent);function on(t,e){return{index:t,W:[],ba:e}}function sn(t,e,n,r){var o=0,i=0,s=0,a=0,c=Math.min(e-o,r-i);if(0==o&&0==i)t:{for(s=0;s<c;s++)if(t[s]!==n[s])break t;s=c}if(e==t.length&&r==n.length){a=t.length;for(var l=n.length,u=0;u<c-s&&an(t[--a],n[--l]);)u++;a=u}if(i+=s,r-=a,0==(e-=a)-(o+=s)&&0==r-i)return[];if(o==e){for(e=on(o,0);i<r;)e.W.push(n[i++]);return[e]}if(i==r)return[on(o,e-o)];for(r=r-(s=i)+1,a=e-(c=o)+1,e=Array(r),l=0;l<r;l++)e[l]=Array(a),e[l][0]=l;for(l=0;l<a;l++)e[0][l]=l;for(l=1;l<r;l++)for(u=1;u<a;u++)if(t[c+u-1]===n[s+l-1])e[l][u]=e[l-1][u-1];else{var p=e[l-1][u]+1,d=e[l][u-1]+1;e[l][u]=p<d?p:d}for(c=e.length-1,s=e[0].length-1,r=e[c][s],t=[];0<c||0<s;)0==c?(t.push(2),s--):0==s?(t.push(3),c--):(a=e[c-1][s-1],(p=(l=e[c-1][s])<(u=e[c][s-1])?l<a?l:a:u<a?u:a)==a?(a==r?t.push(0):(t.push(1),r=a),c--,s--):p==l?(t.push(3),c--,r=l):(t.push(2),s--,r=u));for(t.reverse(),e=void 0,c=[],s=0;s<t.length;s++)switch(t[s]){case 0:e&&(c.push(e),e=void 0),o++,i++;break;case 1:e||(e=on(o,0)),e.ba++,o++,e.W.push(n[i]),i++;break;case 2:e||(e=on(o,0)),e.ba++,o++;break;case 3:e||(e=on(o,0)),e.W.push(n[i]),i++}return e&&c.push(e),c}function an(t,e){return t===e}var cn,ln=pe.parentNode,un=pe.childNodes,pn={},dn=rt.deferConnectionCallbacks&&"loading"===document.readyState;function hn(t){var e=[];do{e.unshift(t)}while(t=t.parentNode);return e}function fn(t,e,n){if(t!==pn)throw new TypeError("Illegal constructor");this.La="ShadyRoot",this.host=e,this.c=n&&n.mode,Ce(e),(t=et(e)).root=this,t.Aa="closed"!==this.c?this:null,(t=et(this)).firstChild=t.lastChild=t.parentNode=t.nextSibling=t.previousSibling=null,t.childNodes=[],this.b=this.aa=!1,this.a=this.w=this.o=null,_n(this)}function _n(t){t.aa||(t.aa=!0,Et((function(){return mn(t)})))}function mn(t){for(var e;t;){t.aa&&(e=t);t:{var n=t;if(ct(t=n.host.getRootNode()))for(var r=n.host.childNodes,o=0;o<r.length;o++)if("slot"==(n=r[o]).localName)break t;t=void 0}}e&&e._renderRoot()}function gn(t,e,n){var r=et(e),o=r.$;r.$=null,n||(n=(t=t.w[e.slot||"__catchall"])&&t[0]),n?(et(n).assignedNodes.push(e),r.assignedSlot=n):r.assignedSlot=void 0,o!==r.assignedSlot&&r.assignedSlot&&(et(r.assignedSlot).da=!0)}function vn(t,e,n){for(var r,o=0;o<n.length&&(r=n[o]);o++)if("slot"==r.localName){var i=nt(r).assignedNodes;i&&i.length&&vn(t,e,i)}else e.push(n[o])}function bn(t,e){Gt.dispatchEvent.call(e,new Event("slotchange")),(e=nt(e)).assignedSlot&&bn(t,e.assignedSlot)}function yn(t){if(t.a&&t.a.length){for(var e,n=t.a,r=0;r<n.length;r++){var o=n[r];Ce(o),Ce(o.parentNode);var i=wn(o);t.w[i]?((e=e||{})[i]=!0,t.w[i].push(o)):t.w[i]=[o],t.o.push(o)}if(e)for(var s in e)t.w[s]=xn(t.w[s]);t.a=[]}}function wn(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.Ia=e}function xn(t){return t.sort((function(t,e){t=hn(t);for(var n=hn(e),r=0;r<t.length;r++){e=t[r];var o=n[r];if(e!==o)return(t=Array.from(e.parentNode.childNodes)).indexOf(e)-t.indexOf(o)}}))}function En(t){return yn(t),!(!t.o||!t.o.length)}if(fn.prototype._renderRoot=function(){var t=dn;if(dn=!0,this.aa=!1,this.o){yn(this);for(var e,n=0;n<this.o.length;n++){var r=nt(e=this.o[n]),o=r.assignedNodes;if(r.assignedNodes=[],r.N=[],r.ma=o)for(r=0;r<o.length;r++){var i=nt(o[r]);i.$=i.assignedSlot,i.assignedSlot===e&&(i.assignedSlot=null)}}for(e=this.host.firstChild;e;e=e.nextSibling)gn(this,e);for(n=0;n<this.o.length;n++){if(!(o=nt(e=this.o[n])).assignedNodes.length)for(r=e.firstChild;r;r=r.nextSibling)gn(this,r,e);if((r=(r=nt(e.parentNode))&&r.root)&&En(r)&&r._renderRoot(),vn(this,o.N,o.assignedNodes),r=o.ma){for(i=0;i<r.length;i++)nt(r[i]).$=null;o.ma=null,r.length>o.assignedNodes.length&&(o.da=!0)}o.da&&(o.da=!1,bn(this,e))}for(n=this.o,e=[],o=0;o<n.length;o++)(i=nt(r=n[o].parentNode))&&i.root||!(0>e.indexOf(r))||e.push(r);for(n=0;n<e.length;n++){r=(o=e[n])===this?this.host:o,i=[],o=o.childNodes;for(var s=0;s<o.length;s++){var a=o[s];if("slot"==a.localName){a=nt(a).N;for(var c=0;c<a.length;c++)i.push(a[c])}else i.push(a)}o=void 0,s=un(r),a=sn(i,i.length,s,s.length);for(var l=c=0;c<a.length&&(o=a[c]);c++){for(var u,p=0;p<o.W.length&&(u=o.W[p]);p++)ln(u)===r&&Gt.removeChild.call(r,u),s.splice(o.index+l,1);l-=o.ba}for(l=0;l<a.length&&(o=a[l]);l++)for(c=s[o.index],p=o.index;p<o.index+o.ba;p++)u=i[p],Gt.insertBefore.call(r,u,c),s.splice(p,0,u)}}if(!this.b)for(e=0,n=(u=this.host.childNodes).length;e<n;e++)r=nt(o=u[e]),ln(o)!==this.host||"slot"!==o.localName&&r.assignedSlot||Gt.removeChild.call(this.host,o);this.b=!0,dn=t,cn&&cn()},window.customElements&&rt.oa){var Sn=new Map;cn=function(){var t=Array.from(Sn);Sn.clear();for(var e=(t=p(t)).next();!e.done;e=t.next()){var n=(e=p(e.value)).next().value;e.next().value?n.Ga():n.Ha()}},dn&&document.addEventListener("readystatechange",(function(){dn=!1,cn()}),{once:!0});var On=window.customElements.define;Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:function(t,e){var n=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;On.call(window.customElements,t,function(t,e,n){var r=0,o="__isConnected"+r++;return(e||n)&&(t.prototype.connectedCallback=t.prototype.Ga=function(){dn?Sn.set(this,!0):this[o]||(this[o]=!0,e&&e.call(this))},t.prototype.disconnectedCallback=t.prototype.Ha=function(){dn?this.isConnected||Sn.set(this,!1):this[o]&&(this[o]=!1,n&&n.call(this))}),t}(e,n,r)),e.prototype.connectedCallback=n,e.prototype.disconnectedCallback=r}})}function Tn(t){var e=t.getRootNode();return ct(e)&&mn(e),(t=nt(t))&&t.assignedSlot||null}var An={addEventListener:Ke.bind(window),removeEventListener:Qe.bind(window)},Nn={addEventListener:Ke,removeEventListener:Qe,appendChild:function(t){return Le(this,t)},insertBefore:function(t,e){return Le(this,t,e)},removeChild:function(t){return je(this,t)},replaceChild:function(t,e){return Le(this,t,e),je(this,e),t},cloneNode:function(t){if("template"==this.localName)var e=Gt.cloneNode.call(this,t);else if(e=Gt.cloneNode.call(this,!1),t&&e.nodeType!==Node.ATTRIBUTE_NODE){t=this.childNodes;for(var n,r=0;r<t.length;r++)n=t[r].cloneNode(!0),e.appendChild(n)}return e},getRootNode:function(){return function t(e){if(e&&e.nodeType){var n=et(e),r=n.V;return void 0===r&&(ct(e)?(r=e,n.V=r):(r=(r=e.parentNode)?t(r):e,Gt.contains.call(document.documentElement,e)&&(n.V=r))),r}}(this)},contains:function(t){return bt(this,t)},dispatchEvent:function(t){return St(),Gt.dispatchEvent.call(this,t)}};Object.defineProperties(Nn,{isConnected:{get:function(){if(me&&me.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var t=this.ownerDocument;if(vt){if(Gt.contains.call(t,this))return!0}else if(t.documentElement&&Gt.contains.call(t.documentElement,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.parentNode||(ct(t)?t.host:void 0);return!!(t&&t instanceof Document)},configurable:!0}});var Cn={get assignedSlot(){return Tn(this)}},kn={querySelector:function(t){return Me(this,(function(e){return pt.call(e,t)}),(function(t){return!!t}))[0]||null},querySelectorAll:function(t,e){if(e){e=Array.prototype.slice.call(Gt.querySelectorAll.call(this,t));var n=this.getRootNode();return e.filter((function(t){return t.getRootNode()==n}))}return Me(this,(function(e){return pt.call(e,t)}))}},Ln={assignedNodes:function(t){if("slot"===this.localName){var e=this.getRootNode();return ct(e)&&mn(e),(e=nt(this))&&(t&&t.flatten?e.N:e.assignedNodes)||[]}}},jn=ht({setAttribute:function(t,e){ze(this,t,e)},removeAttribute:function(t){Gt.removeAttribute.call(this,t),Ie(this,t)},attachShadow:function(t){if(!this)throw"Must provide a host.";if(!t)throw"Not enough arguments.";return new fn(pn,this,t)},get slot(){return this.getAttribute("slot")},set slot(t){ze(this,"slot",t)},get assignedSlot(){return Tn(this)}},kn,Ln);Object.defineProperties(jn,we);var Dn=ht({importNode:function(t,e){return function t(e,n){if(e.ownerDocument!==document||"template"===e.localName)return Gt.importNode.call(document,e,n);var r=Gt.importNode.call(document,e,!1);if(n){e=e.childNodes,n=0;for(var o;n<e.length;n++)o=t(e[n],!0),r.appendChild(o)}return r}(t,e)},getElementById:function(t){return Me(this,(function(e){return e.id==t}),(function(t){return!!t}))[0]||null}},kn);Object.defineProperties(Dn,{_activeElement:xe.activeElement});for(var In=HTMLElement.prototype.blur,Pn={blur:function(){var t=nt(this);(t=(t=t&&t.root)&&t.activeElement)?t.blur():In.call(this)}},Mn={},Rn=p(Object.getOwnPropertyNames(Document.prototype)),zn=Rn.next();!zn.done;Mn={H:Mn.H},zn=Rn.next())Mn.H=zn.value,"on"===Mn.H.substring(0,2)&&Object.defineProperty(Pn,Mn.H,{set:function(t){return function(e){var n=et(this),r=t.H.substring(2);n.Z[t.H]&&this.removeEventListener(r,n.Z[t.H]),this.addEventListener(r,e,{}),n.Z[t.H]=e}}(Mn),get:function(t){return function(){var e=nt(this);return e&&e.Z[t.H]}}(Mn),configurable:!0});var Hn={addEventListener:function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.la=this,this.host.addEventListener(t,e,n)},removeEventListener:function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.la=this,this.host.removeEventListener(t,e,n)},getElementById:function(t){return Me(this,(function(e){return e.id==t}),(function(t){return!!t}))[0]||null}};function Fn(t,e){for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(e,o);i.value?t[o]=i.value:Object.defineProperty(t,o,i)}}if(rt.oa){var qn={inUse:rt.oa,patch:function(t){return Te(t),Oe(t),t},isShadyRoot:ct,enqueue:Et,flush:St,settings:rt,filterMutations:function(t,e){var n=e.getRootNode();return t.map((function(t){var e=n===t.target.getRootNode();if(e&&t.addedNodes){if((e=Array.from(t.addedNodes).filter((function(t){return n===t.getRootNode()}))).length)return t=Object.create(t),Object.defineProperty(t,"addedNodes",{value:e,configurable:!0}),t}else if(e)return t})).filter((function(t){return t}))},observeChildren:function(t,e){var n=et(t);n.S||(n.S=new Ot),n.S.ca.add(e);var r=n.S;return{Ka:e,P:r,Ma:t,takeRecords:function(){return r.takeRecords()}}},unobserveChildren:function(t){var e=t&&t.P;e&&(e.ca.delete(t.Ka),e.ca.size||(et(t.Ma).S=null))},nativeMethods:Gt,nativeTree:pe,deferConnectionCallbacks:rt.deferConnectionCallbacks};window.ShadyDOM=qn,function(){if(window.Event=en,window.CustomEvent=nn,window.MouseEvent=rn,function(){for(var t in Je)window.addEventListener(t,(function(t){t.__target||(tn(t),Xe(t))}),!0)}(),!Fe&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var t=function(){var t=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.dispatchEvent(t)};Element.prototype.click?Element.prototype.click=t:HTMLElement.prototype.click&&(HTMLElement.prototype.click=t)}}();var Un=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;Fn(fn.prototype,Hn),Fn(window.Node.prototype,Nn),Fn(window.Window.prototype,An),Fn(window.Text.prototype,Cn),Fn(window.DocumentFragment.prototype,kn),Fn(window.Element.prototype,jn),Fn(window.Document.prototype,Dn),window.HTMLSlotElement&&Fn(window.HTMLSlotElement.prototype,Ln),Fn(Un.prototype,Pn),rt.K&&(Se(window.Node.prototype),Se(window.Text.prototype),Se(window.DocumentFragment.prototype),Se(window.Element.prototype),Se(Un.prototype),Se(window.Document.prototype),window.HTMLSlotElement&&Se(window.HTMLSlotElement.prototype)),function(){var t=fn.prototype;t.__proto__=DocumentFragment.prototype,Ee(t,ve,!0),Ee(t,ye,!0),Ee(t,xe,!0),Object.defineProperties(t,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach((function(e){Object.defineProperty(t,e,{value:void 0,configurable:!0})})),["ownerDocument","baseURI","isConnected"].forEach((function(e){Object.defineProperty(t,e,{get:function(){return this.host[e]},configurable:!0})}))}(),window.ShadowRoot=fn}var Bn=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function Wn(t){var e=Bn.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function Vn(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function Gn(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function Jn(t,e,n){n=void 0===n?new Set:n;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var o=r;e(o);var i=o.localName;if("link"===i&&"import"===o.getAttribute("rel")){if((r=o.import)instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)Jn(r,e,n);r=Gn(t,o);continue}if("template"===i){r=Gn(t,o);continue}if(o=o.__CE_shadowRoot)for(o=o.firstChild;o;o=o.nextSibling)Jn(o,e,n)}r=r.firstChild?r.firstChild:Gn(t,r)}}function Yn(t,e,n){t[e]=n}function $n(){this.a=new Map,this.m=new Map,this.f=[],this.c=!1}function Xn(t,e){t.c=!0,t.f.push(e)}function Zn(t,e){t.c&&Jn(e,(function(e){return t.b(e)}))}function Kn(t,e){var n=[];for(Jn(e,(function(t){return n.push(t)})),e=0;e<n.length;e++){var r=n[e];1===r.__CE_state?t.connectedCallback(r):er(t,r)}}function Qn(t,e){var n=[];for(Jn(e,(function(t){return n.push(t)})),e=0;e<n.length;e++){var r=n[e];1===r.__CE_state&&t.disconnectedCallback(r)}}function tr(t,e,n){var r=(n=void 0===n?{}:n).cb||new Set,o=n.ha||function(e){return er(t,e)},i=[];if(Jn(e,(function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:e.addEventListener("load",(function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set(r);i.delete(n),tr(t,n,{cb:i,ha:o})}}))}else i.push(e)}),r),t.c)for(e=0;e<i.length;e++)t.b(i[e]);for(e=0;e<i.length;e++)o(i[e])}function er(t,e){if(void 0===e.__CE_state){var n=e.ownerDocument;if((n.defaultView||n.__CE_isImportDocument&&n.__CE_hasRegistry)&&(n=t.a.get(e.localName))){n.constructionStack.push(e);var r=n.constructor;try{try{if(new r!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{n.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}if(e.__CE_state=1,e.__CE_definition=n,n.attributeChangedCallback)for(n=n.observedAttributes,r=0;r<n.length;r++){var o=n[r],i=e.getAttribute(o);null!==i&&t.attributeChangedCallback(e,o,null,i,null)}Vn(e)&&t.connectedCallback(e)}}}function nr(t){var e=document;this.b=t,this.a=e,this.P=void 0,tr(this.b,this.a),"loading"===this.a.readyState&&(this.P=new MutationObserver(this.c.bind(this)),this.P.observe(this.a,{childList:!0,subtree:!0}))}function rr(t){t.P&&t.P.disconnect()}function or(){var t=this;this.a=this.A=void 0,this.b=new Promise((function(e){t.a=e,t.A&&e(t.A)}))}function ir(t){this.c=!1,this.a=t,this.G=new Map,this.f=function(t){return t()},this.b=!1,this.m=[],this.fa=new nr(t)}$n.prototype.b=function(t){if(this.c&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.f.length;e++)this.f[e](t)}},$n.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},$n.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},$n.prototype.attributeChangedCallback=function(t,e,n,r,o){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,r,o)},nr.prototype.c=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||rr(this),e=0;e<t.length;e++)for(var n=t[e].addedNodes,r=0;r<n.length;r++)tr(this.b,n[r])},or.prototype.resolve=function(t){if(this.A)throw Error("Already resolved.");this.A=t,this.a&&this.a(t)},(n=ir.prototype).define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!Wn(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var r=function(t){var e=o[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},o=e.prototype;if(!(o instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=r("connectedCallback"),s=r("disconnectedCallback"),a=r("adoptedCallback"),c=r("attributeChangedCallback"),l=e.observedAttributes||[]}catch(t){return}finally{this.c=!1}e={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:s,adoptedCallback:a,attributeChangedCallback:c,observedAttributes:l,constructionStack:[]},function(t,e,n){t.a.set(e,n),t.m.set(n.constructor,n)}(this.a,t,e),this.m.push(e),this.b||(this.b=!0,this.f((function(){return function(t){if(!1!==t.b){t.b=!1;for(var e=t.m,n=[],r=new Map,o=0;o<e.length;o++)r.set(e[o].localName,[]);for(tr(t.a,document,{ha:function(e){if(void 0===e.__CE_state){var o=e.localName,i=r.get(o);i?i.push(e):t.a.a.get(o)&&n.push(e)}}}),o=0;o<n.length;o++)er(t.a,n[o]);for(;0<e.length;){var i=e.shift();o=i.localName,i=r.get(i.localName);for(var s=0;s<i.length;s++)er(t.a,i[s]);(o=t.G.get(o))&&o.resolve(void 0)}}}(n)})))},n.ha=function(t){tr(this.a,t)},n.get=function(t){if(t=this.a.a.get(t))return t.constructor},n.Da=function(t){if(!Wn(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.G.get(t);return e?e.b:(e=new or,this.G.set(t,e),this.a.a.get(t)&&!this.m.some((function(e){return e.localName===t}))&&e.resolve(void 0),e.b)},n.Za=function(t){rr(this.fa);var e=this.f;this.f=function(n){return t((function(){return e(n)}))}},window.CustomElementRegistry=ir,ir.prototype.define=ir.prototype.define,ir.prototype.upgrade=ir.prototype.ha,ir.prototype.get=ir.prototype.get,ir.prototype.whenDefined=ir.prototype.Da,ir.prototype.polyfillWrapFlushCallback=ir.prototype.Za;var sr=window.Document.prototype.createElement,ar=window.Document.prototype.createElementNS,cr=window.Document.prototype.importNode,lr=window.Document.prototype.prepend,ur=window.Document.prototype.append,pr=window.DocumentFragment.prototype.prepend,dr=window.DocumentFragment.prototype.append,hr=window.Node.prototype.cloneNode,fr=window.Node.prototype.appendChild,_r=window.Node.prototype.insertBefore,mr=window.Node.prototype.removeChild,gr=window.Node.prototype.replaceChild,vr=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),br=window.Element.prototype.attachShadow,yr=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),wr=window.Element.prototype.getAttribute,xr=window.Element.prototype.setAttribute,Er=window.Element.prototype.removeAttribute,Sr=window.Element.prototype.getAttributeNS,Or=window.Element.prototype.setAttributeNS,Tr=window.Element.prototype.removeAttributeNS,Ar=window.Element.prototype.insertAdjacentElement,Nr=window.Element.prototype.insertAdjacentHTML,Cr=window.Element.prototype.prepend,kr=window.Element.prototype.append,Lr=window.Element.prototype.before,jr=window.Element.prototype.after,Dr=window.Element.prototype.replaceWith,Ir=window.Element.prototype.remove,Pr=window.HTMLElement,Mr=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Rr=window.HTMLElement.prototype.insertAdjacentElement,zr=window.HTMLElement.prototype.insertAdjacentHTML,Hr=new function(){};function Fr(t,e,n){function r(e){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],s=0;s<r.length;s++){var a=r[s];if(a instanceof Element&&Vn(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)o.push(a);else o.push(a)}for(e.apply(this,r),r=0;r<i.length;r++)Qn(t,i[r]);if(Vn(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&Kn(t,i)}}void 0!==n.ga&&(e.prepend=r(n.ga)),void 0!==n.append&&(e.append=r(n.append))}var qr=window.customElements;if(!qr||qr.forcePolyfill||"function"!=typeof qr.define||"function"!=typeof qr.get){var Ur=new $n;!function(){var t=Ur;window.HTMLElement=function(){function e(){var e=this.constructor,n=t.m.get(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var r=n.constructionStack;if(0===r.length)return r=sr.call(document,n.localName),Object.setPrototypeOf(r,e.prototype),r.__CE_state=1,r.__CE_definition=n,t.b(r),r;var o=r[n=r.length-1];if(o===Hr)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return r[n]=Hr,Object.setPrototypeOf(o,e.prototype),t.b(o),o}return e.prototype=Pr.prototype,Object.defineProperty(e.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e}),e}()}(),function(){var t=Ur;Yn(Document.prototype,"createElement",(function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructor}return e=sr.call(this,e),t.b(e),e})),Yn(Document.prototype,"importNode",(function(e,n){return e=cr.call(this,e,n),this.__CE_hasRegistry?tr(t,e):Zn(t,e),e})),Yn(Document.prototype,"createElementNS",(function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var r=t.a.get(n);if(r)return new r.constructor}return e=ar.call(this,e,n),t.b(e),e})),Fr(t,Document.prototype,{ga:lr,append:ur})}(),Fr(Ur,DocumentFragment.prototype,{ga:pr,append:dr}),function(){function t(t,n){Object.defineProperty(t,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,t);else{var r=void 0;if(this.firstChild){var o=this.childNodes,i=o.length;if(0<i&&Vn(this)){r=Array(i);for(var s=0;s<i;s++)r[s]=o[s]}}if(n.set.call(this,t),r)for(t=0;t<r.length;t++)Qn(e,r[t])}}})}var e=Ur;Yn(Node.prototype,"insertBefore",(function(t,n){if(t instanceof DocumentFragment){var r=Array.prototype.slice.apply(t.childNodes);if(t=_r.call(this,t,n),Vn(this))for(n=0;n<r.length;n++)Kn(e,r[n]);return t}return r=Vn(t),n=_r.call(this,t,n),r&&Qn(e,t),Vn(this)&&Kn(e,t),n})),Yn(Node.prototype,"appendChild",(function(t){if(t instanceof DocumentFragment){var n=Array.prototype.slice.apply(t.childNodes);if(t=fr.call(this,t),Vn(this))for(var r=0;r<n.length;r++)Kn(e,n[r]);return t}return n=Vn(t),r=fr.call(this,t),n&&Qn(e,t),Vn(this)&&Kn(e,t),r})),Yn(Node.prototype,"cloneNode",(function(t){return t=hr.call(this,t),this.ownerDocument.__CE_hasRegistry?tr(e,t):Zn(e,t),t})),Yn(Node.prototype,"removeChild",(function(t){var n=Vn(t),r=mr.call(this,t);return n&&Qn(e,t),r})),Yn(Node.prototype,"replaceChild",(function(t,n){if(t instanceof DocumentFragment){var r=Array.prototype.slice.apply(t.childNodes);if(t=gr.call(this,t,n),Vn(this))for(Qn(e,n),n=0;n<r.length;n++)Kn(e,r[n]);return t}r=Vn(t);var o=gr.call(this,t,n),i=Vn(this);return i&&Qn(e,n),r&&Qn(e,t),i&&Kn(e,t),o})),vr&&vr.get?t(Node.prototype,vr):Xn(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)mr.call(this,this.firstChild);fr.call(this,document.createTextNode(t))}})}))}(),function(){function t(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){var n=this,o=void 0;if(Vn(this)&&(o=[],Jn(this,(function(t){t!==n&&o.push(t)}))),e.set.call(this,t),o)for(var i=0;i<o.length;i++){var s=o[i];1===s.__CE_state&&r.disconnectedCallback(s)}return this.ownerDocument.__CE_hasRegistry?tr(r,this):Zn(r,this),t}})}function e(t,e){Yn(t,"insertAdjacentElement",(function(t,n){var o=Vn(n);return t=e.call(this,t,n),o&&Qn(r,n),Vn(t)&&Kn(r,n),t}))}function n(t,e){function n(t,e){for(var n=[];t!==e;t=t.nextSibling)n.push(t);for(e=0;e<n.length;e++)tr(r,n[e])}Yn(t,"insertAdjacentHTML",(function(t,r){if("beforebegin"===(t=t.toLowerCase())){var o=this.previousSibling;e.call(this,t,r),n(o||this.parentNode.firstChild,this)}else if("afterbegin"===t)o=this.firstChild,e.call(this,t,r),n(this.firstChild,o);else if("beforeend"===t)o=this.lastChild,e.call(this,t,r),n(o||this.firstChild,null);else{if("afterend"!==t)throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");o=this.nextSibling,e.call(this,t,r),n(this.nextSibling,o)}}))}var r=Ur;br&&Yn(Element.prototype,"attachShadow",(function(t){return this.__CE_shadowRoot=br.call(this,t)})),yr&&yr.get?t(Element.prototype,yr):Mr&&Mr.get?t(HTMLElement.prototype,Mr):Xn(r,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return hr.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,n=e?this.content:this,r=ar.call(document,this.namespaceURI,this.localName);for(r.innerHTML=t;0<n.childNodes.length;)mr.call(n,n.childNodes[0]);for(t=e?r.content:r;0<t.childNodes.length;)fr.call(n,t.childNodes[0])}})})),Yn(Element.prototype,"setAttribute",(function(t,e){if(1!==this.__CE_state)return xr.call(this,t,e);var n=wr.call(this,t);xr.call(this,t,e),e=wr.call(this,t),r.attributeChangedCallback(this,t,n,e,null)})),Yn(Element.prototype,"setAttributeNS",(function(t,e,n){if(1!==this.__CE_state)return Or.call(this,t,e,n);var o=Sr.call(this,t,e);Or.call(this,t,e,n),n=Sr.call(this,t,e),r.attributeChangedCallback(this,e,o,n,t)})),Yn(Element.prototype,"removeAttribute",(function(t){if(1!==this.__CE_state)return Er.call(this,t);var e=wr.call(this,t);Er.call(this,t),null!==e&&r.attributeChangedCallback(this,t,e,null,null)})),Yn(Element.prototype,"removeAttributeNS",(function(t,e){if(1!==this.__CE_state)return Tr.call(this,t,e);var n=Sr.call(this,t,e);Tr.call(this,t,e);var o=Sr.call(this,t,e);n!==o&&r.attributeChangedCallback(this,e,n,o,t)})),Rr?e(HTMLElement.prototype,Rr):Ar?e(Element.prototype,Ar):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),zr?n(HTMLElement.prototype,zr):Nr?n(Element.prototype,Nr):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."),Fr(r,Element.prototype,{ga:Cr,append:kr}),function(t){function e(e){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],s=0;s<r.length;s++){var a=r[s];if(a instanceof Element&&Vn(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)o.push(a);else o.push(a)}for(e.apply(this,r),r=0;r<i.length;r++)Qn(t,i[r]);if(Vn(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&Kn(t,i)}}var n=Element.prototype;void 0!==Lr&&(n.before=e(Lr)),void 0!==Lr&&(n.after=e(jr)),void 0!==Dr&&Yn(n,"replaceWith",(function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];r=[];for(var o=[],i=0;i<n.length;i++){var s=n[i];if(s instanceof Element&&Vn(s)&&o.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(i=Vn(this),Dr.apply(this,n),n=0;n<o.length;n++)Qn(t,o[n]);if(i)for(Qn(t,this),n=0;n<r.length;n++)(o=r[n])instanceof Element&&Kn(t,o)})),void 0!==Ir&&Yn(n,"remove",(function(){var e=Vn(this);Ir.call(this),e&&Qn(t,this)}))}(r)}(),document.__CE_hasRegistry=!0;var Br=new ir(Ur);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Br})}function Wr(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function Vr(t){var e=Gr,n=t=t.replace(Kr,"").replace(Qr,""),r=new Wr;r.start=0,r.end=n.length;for(var o=r,i=0,s=n.length;i<s;i++)if("{"===n[i]){o.rules||(o.rules=[]);var a=o,c=a.rules[a.rules.length-1]||null;(o=new Wr).start=i+1,o.parent=a,o.previous=c,a.rules.push(o)}else"}"===n[i]&&(o.end=i+1,o=o.parent||r);return e(r,t)}function Gr(t,e){var n=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent&&(n=(n=(n=function(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,(function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t}))}(n=e.substring(t.previous?t.previous.end:t.parent.start,t.start-1))).replace(io," ")).substring(n.lastIndexOf(";")+1),n=t.parsedSelector=t.selector=n.trim(),t.atRule=0===n.indexOf("@"),t.atRule?0===n.indexOf("@media")?t.type=Xr:n.match(oo)&&(t.type=$r,t.keyframesName=t.selector.split(io).pop()):t.type=0===n.indexOf("--")?Zr:Yr),n=t.rules)for(var r,o=0,i=n.length;o<i&&(r=n[o]);o++)Gr(r,e);return t}var Jr,Yr=1,$r=7,Xr=4,Zr=1e3,Kr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Qr=/@import[^;]*;/gim,to=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,eo=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,no=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,ro=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,oo=/^@[^\s]*keyframes/,io=/\s+/g,so=!(window.ShadyDOM&&window.ShadyDOM.inUse);function ao(t){Jr=(!t||!t.shimcssproperties)&&(so||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Jr=window.ShadyCSS.nativeCss:window.ShadyCSS?(ao(window.ShadyCSS),window.ShadyCSS=void 0):ao(window.WebComponents&&window.WebComponents.flags);var co=Jr,lo=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,uo=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,po=/(--[\w-]+)\s*([:,;)]|$)/gi,ho=/(animation\s*:)|(animation-name\s*:)/,fo=/@media\s(.*)/,_o=/\{[^}]*\}/g,mo=new Set;function go(t,e){return t?("string"==typeof t&&(t=Vr(t)),e&&yo(t,e),function t(e,n,r){r=void 0===r?"":r;var o="";if(e.cssText||e.rules){var i,s=e.rules;if((i=s)&&(i=!((i=s[0])&&i.selector&&0===i.selector.indexOf("--"))),i){i=0;for(var a,c=s.length;i<c&&(a=s[i]);i++)o=t(a,n,o)}else n?n=e.cssText:n=(n=(n=e.cssText).replace(to,"").replace(eo,"")).replace(no,"").replace(ro,""),(o=n.trim())&&(o=" "+o+"\n")}return o&&(e.selector&&(r+=e.selector+" {\n"),r+=o,e.selector&&(r+="}\n\n")),r}(t,co)):""}function vo(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=Vr(t.textContent)),t.__cssRules||null}function bo(t){return!!t.parent&&t.parent.type===$r}function yo(t,e,n,r){if(t){var o=!1,i=t.type;if(r&&i===Xr){var s=t.selector.match(fo);s&&(window.matchMedia(s[1]).matches||(o=!0))}if(i===Yr?e(t):n&&i===$r?n(t):i===Zr&&(o=!0),(t=t.rules)&&!o){o=0,i=t.length;for(var a;o<i&&(a=t[o]);o++)yo(a,e,n,r)}}}function wo(t,e,n,r){var o=document.createElement("style");return e&&o.setAttribute("scope",e),o.textContent=t,So(o,n,r),o}var xo=null;function Eo(t){t=document.createComment(" Shady DOM styles for "+t+" ");var e=document.head;return e.insertBefore(t,(xo?xo.nextSibling:null)||e.firstChild),xo=t}function So(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),xo?t.compareDocumentPosition(xo)===Node.DOCUMENT_POSITION_PRECEDING&&(xo=t):xo=t}function Oo(t,e){for(var n=0,r=t.length;e<r;e++)if("("===t[e])n++;else if(")"===t[e]&&0==--n)return e;return-1}function To(t,e){so?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)}function Ao(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,X:n}}function No(t){for(var e=[],n="",r=0;0<=r&&r<t.length;r++)if("("===t[r]){var o=Oo(t,r);n+=t.slice(r,o+1),r=o}else","===t[r]?(e.push(n),n=""):n+=t[r];return n&&e.push(n),e}function Co(){}function ko(t,e,n){if(e.nodeType===Node.ELEMENT_NODE&&n(e),e="template"===e.localName?(e.content||e.kb||e).childNodes:e.children||e.childNodes)for(var r=0;r<e.length;r++)ko(t,e[r],n)}function Lo(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var r=t.getAttribute(ti);n?r&&To(t,e=r.replace("style-scope","").replace(e,"")):To(t,(r?r+" ":"")+"style-scope "+e)}}function jo(t,e,n){var r=ri;t.__styleScoped?t.__styleScoped=null:ko(r,t,(function(t){Lo(t,e,!0),Lo(t,n)}))}function Do(t,e){var n=ri;t.__styleScoped?t.__styleScoped=null:ko(n,t,(function(t){Lo(t,e||"",!0)}))}function Io(t,e,n){var r=ri,o=t.__cssBuild;return so||"shady"===o?e=go(e,n):e=function(t,e,n,r,o){var i=Po(n,r);return n=n?Ko+n:"",go(e,(function(e){e.c||(e.selector=e.F=Mo(t,e,t.b,n,i),e.c=!0),o&&o(e,n,i)}))}(r,e,(t=Ao(t)).is,t.X,n)+"\n\n",e.trim()}function Po(t,e){return e?"[is="+t+"]":t}function Mo(t,e,n,r,o){var i=No(e.selector);if(!bo(e)){e=0;for(var s,a=i.length;e<a&&(s=i[e]);e++)i[e]=n.call(t,s,r,o)}return i.filter((function(t){return!!t})).join(Uo)}function Ro(t){return t.replace(Fo,(function(t,e,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+e+"("+n+")"}))}function zo(t,e){return(t=t.split(Qo))[0]+=e,t.join(Qo)}function Ho(t){t.selector===Go&&(t.selector="html")}Co.prototype.b=function(t,e,n){var r=!1;t=t.trim();var o=Fo.test(t);o&&(t=Ro(t=t.replace(Fo,(function(t,e,n){return":"+e+"("+n.replace(/\s/g,"")+")"}))));var i=ni.test(t);if(i){var s=function(t){for(var e,n=[];e=t.match(ni);){var r=e.index,o=Oo(t,r);if(-1===o)throw Error(e.input+" selector missing ')'");e=t.slice(r,o+1),t=t.replace(e,"\ue000"),n.push(e)}return{ra:t,matches:n}}(t);t=s.ra,s=s.matches}return t=(t=t.replace(Yo,Vo+" $1")).replace(Bo,(function(t,o,i){return r||(t=function(t,e,n,r){var o=t.indexOf(Jo);if(0<=t.indexOf(Vo)?t=function(t,e){var n=t.match($o);return(n=n&&n[2].trim()||"")?n[0].match(Wo)?t.replace($o,(function(t,n,r){return e+r})):n.split(Wo)[0]===e?n:ei:t.replace(Vo,e)}(t,r):0!==o&&(t=n?zo(t,n):t),n=!1,0<=o&&(e="",n=!0),n){var i=!0;n&&(t=t.replace(Xo,(function(t,e){return" > "+e})))}return{value:t=t.replace(Zo,(function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'})),Qa:e,stop:i}}(i,o,e,n),r=r||t.stop,o=t.Qa,i=t.value),o+i})),i&&(t=function(t,e){var n=t.split("\ue000");return e.reduce((function(t,e,r){return t+e+n[r+1]}),n[0])}(t,s)),o&&(t=Ro(t)),t},Co.prototype.c=function(t){return t.match(Vo)?"":t.match(Jo)?this.b(t,qo):zo(t.trim(),qo)},o.Object.defineProperties(Co.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Fo=/:(nth[-\w]+)\(([^)]+)\)/,qo=":not(.style-scope)",Uo=",",Bo=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Wo=/[[.:#*]/,Vo=":host",Go=":root",Jo="::slotted",Yo=new RegExp("^("+Jo+")"),$o=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Xo=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Zo=/(.*):dir\((?:(ltr|rtl))\)/,Ko=".",Qo=":",ti="class",ei="should_not_match",ni=/:(?:matches|any|-(?:webkit|moz)-any)/,ri=new Co;function oi(t,e,n,r){this.M=t||null,this.b=e||null,this.pa=n||[],this.T=null,this.X=r||"",this.a=this.I=this.O=null}function ii(t){return t?t.__styleInfo:null}function si(t,e){return t.__styleInfo=e}function ai(t){var e=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return e&&e.call(this,t)}oi.prototype.c=function(){return this.M},oi.prototype._getStyleRules=oi.prototype.c;var ci=navigator.userAgent.match("Trident");function li(){}function ui(t){if(!t.B){var e={},n={};pi(t,n)&&(e.L=n,t.rules=null),e.cssText=t.parsedCssText.replace(_o,"").replace(lo,""),t.B=e}}function pi(t,e){var n=t.B;if(!n){n=t.parsedCssText;for(var r;t=lo.exec(n);)"inherit"===(r=(t[2]||t[3]).trim())&&"unset"===r||(e[t[1].trim()]=r),r=!0;return r}if(n.L)return Object.assign(e,n.L),!0}function di(t,e,n){return e&&(e=0<=e.indexOf(";")?hi(t,e,n):function t(e,n){var r=e.indexOf("var(");if(-1===r)return n(e,"","","");var o=Oo(e,r+3),i=e.substring(r+4,o);return r=e.substring(0,r),e=t(e.substring(o+1),n),-1===(o=i.indexOf(","))?n(r,i.trim(),"",e):n(r,i.substring(0,o).trim(),i.substring(o+1).trim(),e)}(e,(function(e,r,o,i){return r?((r=di(t,n[r],n))&&"initial"!==r?"apply-shim-inherit"===r&&(r="inherit"):r=di(t,n[o]||o,n)||o,e+(r||"")+i):e+i}))),e&&e.trim()||""}function hi(t,e,n){e=e.split(";");for(var r,o,i=0;i<e.length;i++)if(r=e[i]){if(uo.lastIndex=0,o=uo.exec(r))r=di(t,n[o[1]],n);else if(-1!==(o=r.indexOf(":"))){var s=r.substring(o);s=di(t,s=s.trim(),n)||s,r=r.substring(0,o)+s}e[i]=r&&r.lastIndexOf(";")===r.length-1?r.slice(0,-1):r||""}return e.join(";")}function fi(t,e){var n={},r={},o=e&&e.__cssBuild;return yo(e,(function(e){!function(t,e,n,r){if(e.B||ui(e),e.B.L){var o=Ao(t);t=o.is,o=o.X,o=t?Po(t,o):"html";var i=e.parsedSelector,s=":host > *"===i||"html"===i,a=0===i.indexOf(":host")&&!s;"shady"===n&&(a=!(s=i===o+" > *."+o||-1!==i.indexOf("html"))&&0===i.indexOf(o)),"shadow"===n&&(s=":host > *"===i||"html"===i,a=a&&!s),(s||a)&&(n=o,a&&(e.F||(e.F=Mo(ri,e,ri.b,t?Ko+t:"",o)),n=e.F||o),r({ra:n,Wa:a,xb:s}))}}(t,e,o,(function(o){ai.call(t.lb||t,o.ra)&&(o.Wa?pi(e,n):pi(e,r))}))}),null,!0),{$a:r,Ua:n}}function _i(t,e,n,r){var o=Ao(e),i=Po(o.is,o.X),s=new RegExp("(?:^|[^.#[:])"+(e.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])"),a=function(t,e){t=t.b;var n={};if(!so&&t)for(var r=0,o=t[r];r<t.length;o=t[++r]){var i=o,s=e;i.f=new RegExp("\\b"+i.keyframesName+"(?!\\B|-)","g"),i.a=i.keyframesName+"-"+s,i.F=i.F||i.selector,i.selector=i.F.replace(i.keyframesName,i.a),n[o.keyframesName]=mi(o)}return n}(o=ii(e).M,r);return Io(e,o,(function(e){var o="";if(e.B||ui(e),e.B.cssText&&(o=hi(t,e.B.cssText,n)),e.cssText=o,!so&&!bo(e)&&e.cssText){var c=o=e.cssText;if(null==e.ya&&(e.ya=ho.test(o)),e.ya)if(null==e.ea)for(var l in e.ea=[],a)o!==(c=(c=a[l])(o))&&(o=c,e.ea.push(l));else{for(l=0;l<e.ea.length;++l)o=(c=a[e.ea[l]])(o);c=o}e.cssText=c,e.F=e.F||e.selector,o="."+r,c=0;for(var u,p=(l=No(e.F)).length;c<p&&(u=l[c]);c++)l[c]=u.match(s)?u.replace(i,o):o+" "+u;e.selector=l.join(",")}}))}function mi(t){return function(e){return e.replace(t.f,t.a)}}function gi(t,e){var n=vi,r=vo(t);t.textContent=go(r,(function(t){var r=t.cssText=t.parsedCssText;t.B&&t.B.cssText&&(r=r.replace(to,"").replace(eo,""),t.cssText=hi(n,r,e))}))}o.Object.defineProperties(li.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var vi=new li,bi={},yi=window.customElements;if(yi&&!so){var wi=yi.define;yi.define=function(t,e,n){bi[t]||(bi[t]=Eo(t)),wi.call(yi,t,e,n)}}function xi(){this.cache={}}function Ei(){}function Si(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.target!==document.documentElement&&n.target!==document.head)for(var r=0;r<n.addedNodes.length;r++){var o=n.addedNodes[r];if(o.nodeType===Node.ELEMENT_NODE){var i=o.getRootNode(),s=o,a=[];if(s.classList?a=Array.from(s.classList):s instanceof window.SVGElement&&s.hasAttribute("class")&&(a=s.getAttribute("class").split(/\s+/)),a=(s=a).indexOf(ri.a),(s=-1<a?s[a+1]:"")&&i===o.ownerDocument)Do(o,s);else if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(i=i.host))for((i=Ao(i).is)!==s&&jo(o,s,i),o=window.ShadyDOM.nativeMethods.querySelectorAll.call(o,":not(."+ri.a+")"),i=0;i<o.length;i++)(a=(s=o[i]).getRootNode().host)&&Lo(s,a=Ao(a).is)}}}}if(xi.prototype.store=function(t,e,n,r){var o=this.cache[t]||[];o.push({L:e,styleElement:n,I:r}),100<o.length&&o.shift(),this.cache[t]=o},xi.prototype.fetch=function(t,e,n){if(t=this.cache[t])for(var r=t.length-1;0<=r;r--){var o,i=t[r];t:{for(o=0;o<n.length;o++){var s=n[o];if(i.L[s]!==e[s]){o=!1;break t}}o=!0}if(o)return i}},!so){var Oi=new MutationObserver(Si),Ti=function(t){Oi.observe(t,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Ti(document);else{var Ai=function(){Ti(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Ai):requestAnimationFrame((function(){if("loading"===document.readyState){var t=function(){Ai(),document.removeEventListener("readystatechange",t)};document.addEventListener("readystatechange",t)}else Ai()}))}Ei=function(){Si(Oi.takeRecords())}}var Ni=Ei,Ci={},ki=Promise.resolve();function Li(t){(t=Ci[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)}function ji(t){return t._applyShimCurrentVersion===t._applyShimNextVersion}var Di=new xi;function Ii(){this.G={},this.c=document.documentElement;var t=new Wr;t.rules=[],this.f=si(this.c,new oi(t)),this.m=!1,this.b=this.a=null}function Pi(t){!t.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(t.a=window.ShadyCSS.ApplyShim,t.a.invalidCallback=Li),function(t){!t.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(t.b=window.ShadyCSS.CustomStyleInterface,t.b.transformCallback=function(e){t.Ba(e)},t.b.validateCallback=function(){requestAnimationFrame((function(){(t.b.enqueued||t.m)&&t.flushCustomStyles()}))})}(t)}function Mi(t,e){return(e=e.getRootNode().host)?ii(e)?e:Mi(t,e):t.c}function Ri(t,e,n){var r=ii(t=Mi(t,e));t=Object.create(r.O||null);var o=fi(e,n.M);for(var i in e=function(t,e){var n={},r=[];return yo(t,(function(t){t.B||ui(t);var o=t.F||t.parsedSelector;e&&t.B.L&&o&&ai.call(e,o)&&(pi(t,n),t=t.index,o=parseInt(t/32,10),r[o]=(r[o]||0)|1<<t%32)}),null,!0),{L:n,key:r}}(r.M,e).L,Object.assign(t,o.Ua,e,o.$a),e=n.T)((o=e[i])||0===o)&&(t[i]=o);for(i=vi,e=Object.getOwnPropertyNames(t),o=0;o<e.length;o++)t[r=e[o]]=di(i,t[r],t);n.O=t}(n=Ii.prototype).flush=function(){Ni()},n.Sa=function(t){return vo(t)},n.bb=function(t){return go(t)},n.prepareTemplate=function(t,e,n){this.prepareTemplateDom(t,e),this.prepareTemplateStyles(t,e,n)},n.prepareTemplateStyles=function(t,e,n){if(!t.m){so||bi[e]||(bi[e]=Eo(e)),t.m=!0,t.name=e,t.extends=n,Ci[e]=t;for(var r=(r=t.content.querySelector("style"))&&r.getAttribute("css-build")||"",o=[],i=t.content.querySelectorAll("style"),s=0;s<i.length;s++){var a=i[s];if(a.hasAttribute("shady-unscoped")){if(!so){var c=a.textContent;mo.has(c)||(mo.add(c),c=a.cloneNode(!0),document.head.appendChild(c)),a.parentNode.removeChild(a)}}else o.push(a.textContent),a.parentNode.removeChild(a)}o=o.join("").trim(),n={is:e,extends:n,ib:r},Pi(this),i=uo.test(o)||lo.test(o),uo.lastIndex=0,lo.lastIndex=0,o=Vr(o),i&&co&&this.a&&this.a.transformRules(o,e),t._styleAst=o,t.G=r,r=[],co||(r=function(t){var e={},n=[],r=0;for(var o in yo(t,(function(t){ui(t),t.index=r++,t=t.B.cssText;for(var n;n=po.exec(t);){var o=n[1];":"!==n[2]&&(e[o]=!0)}}),(function(t){n.push(t)})),t.b=n,t=[],e)t.push(o);return t}(t._styleAst)),r.length&&!co||(o=so?t.content:null,e=bi[e]||null,e=(i=Io(n,t._styleAst)).length?wo(i,n.is,o,e):void 0,t.a=e),t.f=r}},n.prepareTemplateDom=function(t,e){so||t.c||(t.c=!0,function(t,e){var n=ri;t.__styleScoped?t.__styleScoped=null:ko(n,t,(function(t){Lo(t,e||"")}))}(t.content,e))},n.flushCustomStyles=function(){if(Pi(this),this.b){var t=this.b.processStyles();if(this.b.enqueued){if(co)for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);if(n&&co&&this.a){var r=vo(n);Pi(this),this.a.transformRules(r),n.textContent=go(r)}}else for(Ri(this,this.c,this.f),e=0;e<t.length;e++)(n=this.b.getStyleForCustomStyle(t[e]))&&gi(n,this.f.O);this.b.enqueued=!1,this.m&&!co&&this.styleDocument()}}},n.styleElement=function(t,e){var n=Ao(t).is,r=ii(t);if(!r){var o=Ao(t);r=o.is,o=o.X;var i=bi[r]||null;if(r=Ci[r])var s=r._styleAst,a=r.f;s=new oi(s,i,a,o),r&&si(t,s),r=s}if(t!==this.c&&(this.m=!0),e&&(r.T=r.T||{},Object.assign(r.T,e)),co){if(r.T)for(var c in e=r.T)null===c?t.style.removeProperty(c):t.style.setProperty(c,e[c]);((c=Ci[n])||t===this.c)&&c&&c.a&&!ji(c)&&((ji(c)||c._applyShimValidatingVersion!==c._applyShimNextVersion)&&(Pi(this),this.a&&this.a.transformRules(c._styleAst,n),c.a.textContent=Io(t,r.M),function(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t.b||(t.b=!0,ki.then((function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t.b=!1})))}(c)),so&&(n=t.shadowRoot)&&(n.querySelector("style").textContent=Io(t,r.M)),r.M=c._styleAst)}else if(this.flush(),Ri(this,t,r),r.pa&&r.pa.length){n=r,c=Ao(t).is,r=(e=Di.fetch(c,n.O,n.pa))?e.styleElement:null,s=n.I,(a=e&&e.I)||(a=c+"-"+(a=this.G[c]=(this.G[c]||0)+1)),n.I=a,a=n.I,o=vi,o=r?r.textContent||"":_i(o,t,n.O,a);var l=(i=ii(t)).a;l&&!so&&l!==r&&(l._useCount--,0>=l._useCount&&l.parentNode&&l.parentNode.removeChild(l)),so?i.a?(i.a.textContent=o,r=i.a):o&&(r=wo(o,a,t.shadowRoot,i.b)):r?r.parentNode||(ci&&-1<o.indexOf("@media")&&(r.textContent=o),So(r,null,i.b)):o&&(r=wo(o,a,null,i.b)),r&&(r._useCount=r._useCount||0,i.a!=r&&r._useCount++,i.a=r),a=r,so||(r=n.I,i=o=t.getAttribute("class")||"",s&&(i=o.replace(new RegExp("\\s*x-scope\\s*"+s+"\\s*","g")," ")),o!==(i+=(i?" ":"")+"x-scope "+r)&&To(t,i)),e||Di.store(c,n.O,a,n.I)}},n.styleDocument=function(t){this.styleSubtree(this.c,t)},n.styleSubtree=function(t,e){var n=t.shadowRoot;if((n||t===this.c)&&this.styleElement(t,e),e=n&&(n.children||n.childNodes))for(t=0;t<e.length;t++)this.styleSubtree(e[t]);else if(t=t.children||t.childNodes)for(e=0;e<t.length;e++)this.styleSubtree(t[e])},n.Ba=function(t){var e=this,n=vo(t);yo(n,(function(t){if(so)Ho(t);else{var n=ri;t.selector=t.parsedSelector,Ho(t),t.selector=t.F=Mo(n,t,n.c,void 0,void 0)}co&&(Pi(e),e.a&&e.a.transformRule(t))})),co?t.textContent=go(n):this.f.M.rules.push(n)},n.getComputedStyleValue=function(t,e){var n;return co||(n=(ii(t)||ii(Mi(this,t))).O[e]),(n=n||window.getComputedStyle(t).getPropertyValue(e))?n.trim():""},n.ab=function(t,e){var n=t.getRootNode();if(e=e?e.split(/\s/):[],!(n=n.host&&n.host.localName)){var r=t.getAttribute("class");if(r){r=r.split(/\s/);for(var o=0;o<r.length;o++)if(r[o]===ri.a){n=r[o+1];break}}}n&&e.push(ri.a,n),co||(n=ii(t))&&n.I&&e.push(vi.a,n.I),To(t,e.join(" "))},n.Na=function(t){return ii(t)},Ii.prototype.flush=Ii.prototype.flush,Ii.prototype.prepareTemplate=Ii.prototype.prepareTemplate,Ii.prototype.styleElement=Ii.prototype.styleElement,Ii.prototype.styleDocument=Ii.prototype.styleDocument,Ii.prototype.styleSubtree=Ii.prototype.styleSubtree,Ii.prototype.getComputedStyleValue=Ii.prototype.getComputedStyleValue,Ii.prototype.setElementClass=Ii.prototype.ab,Ii.prototype._styleInfoForNode=Ii.prototype.Na,Ii.prototype.transformCustomStyleForDocument=Ii.prototype.Ba,Ii.prototype.getStyleAst=Ii.prototype.Sa,Ii.prototype.styleAstToString=Ii.prototype.bb,Ii.prototype.flushCustomStyles=Ii.prototype.flushCustomStyles,Object.defineProperties(Ii.prototype,{nativeShadow:{get:function(){return so}},nativeCss:{get:function(){return co}}});var zi,Hi,Fi=new Ii;window.ShadyCSS&&(zi=window.ShadyCSS.ApplyShim,Hi=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:Fi,prepareTemplate:function(t,e,n){Fi.flushCustomStyles(),Fi.prepareTemplate(t,e,n)},prepareTemplateDom:function(t,e){Fi.prepareTemplateDom(t,e)},prepareTemplateStyles:function(t,e,n){Fi.flushCustomStyles(),Fi.prepareTemplateStyles(t,e,n)},styleSubtree:function(t,e){Fi.flushCustomStyles(),Fi.styleSubtree(t,e)},styleElement:function(t){Fi.flushCustomStyles(),Fi.styleElement(t)},styleDocument:function(t){Fi.flushCustomStyles(),Fi.styleDocument(t)},flushCustomStyles:function(){Fi.flushCustomStyles()},getComputedStyleValue:function(t,e){return Fi.getComputedStyleValue(t,e)},nativeCss:co,nativeShadow:so},zi&&(window.ShadyCSS.ApplyShim=zi),Hi&&(window.ShadyCSS.CustomStyleInterface=Hi),function(t){function e(t){return""==t&&(i.call(this),this.i=!0),t.toLowerCase()}function n(t){var e=t.charCodeAt(0);return 32<e&&127>e&&-1==[34,35,60,62,63,96].indexOf(e)?t:encodeURIComponent(t)}function r(t){var e=t.charCodeAt(0);return 32<e&&127>e&&-1==[34,35,60,62,96].indexOf(e)?t:encodeURIComponent(t)}function o(t,o,s){function a(t){g.push(t)}var c=o||"scheme start",h=0,f="",_=!1,m=!1,g=[];t:for(;(null!=t[h-1]||0==h)&&!this.i;){var v=t[h];switch(c){case"scheme start":if(!v||!p.test(v)){if(o){a("Invalid scheme.");break t}f="",c="no scheme";continue}f+=v.toLowerCase(),c="scheme";break;case"scheme":if(v&&d.test(v))f+=v.toLowerCase();else{if(":"!=v){if(o){null!=v&&a("Code point not allowed in scheme: "+v);break t}f="",h=0,c="no scheme";continue}if(this.h=f,f="",o)break t;void 0!==l[this.h]&&(this.D=!0),c="file"==this.h?"relative":this.D&&s&&s.h==this.h?"relative or authority":this.D?"authority first slash":"scheme data"}break;case"scheme data":"?"==v?(this.u="?",c="query"):"#"==v?(this.C="#",c="fragment"):null!=v&&"\t"!=v&&"\n"!=v&&"\r"!=v&&(this.na+=n(v));break;case"no scheme":if(s&&void 0!==l[s.h]){c="relative";continue}a("Missing scheme."),i.call(this),this.i=!0;break;case"relative or authority":if("/"!=v||"/"!=t[h+1]){a("Expected /, got: "+v),c="relative";continue}c="authority ignore slashes";break;case"relative":if(this.D=!0,"file"!=this.h&&(this.h=s.h),null==v){this.j=s.j,this.s=s.s,this.l=s.l.slice(),this.u=s.u,this.v=s.v,this.g=s.g;break t}if("/"==v||"\\"==v)"\\"==v&&a("\\ is an invalid code point."),c="relative slash";else if("?"==v)this.j=s.j,this.s=s.s,this.l=s.l.slice(),this.u="?",this.v=s.v,this.g=s.g,c="query";else{if("#"!=v){c=t[h+1];var b=t[h+2];("file"!=this.h||!p.test(v)||":"!=c&&"|"!=c||null!=b&&"/"!=b&&"\\"!=b&&"?"!=b&&"#"!=b)&&(this.j=s.j,this.s=s.s,this.v=s.v,this.g=s.g,this.l=s.l.slice(),this.l.pop()),c="relative path";continue}this.j=s.j,this.s=s.s,this.l=s.l.slice(),this.u=s.u,this.C="#",this.v=s.v,this.g=s.g,c="fragment"}break;case"relative slash":if("/"!=v&&"\\"!=v){"file"!=this.h&&(this.j=s.j,this.s=s.s,this.v=s.v,this.g=s.g),c="relative path";continue}"\\"==v&&a("\\ is an invalid code point."),c="file"==this.h?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=v){a("Expected '/', got: "+v),c="authority ignore slashes";continue}c="authority second slash";break;case"authority second slash":if(c="authority ignore slashes","/"!=v){a("Expected '/', got: "+v);continue}break;case"authority ignore slashes":if("/"!=v&&"\\"!=v){c="authority";continue}a("Expected authority, got: "+v);break;case"authority":if("@"==v){for(_&&(a("@ already seen."),f+="%40"),_=!0,v=0;v<f.length;v++)"\t"==(b=f[v])||"\n"==b||"\r"==b?a("Invalid whitespace in authority."):":"==b&&null===this.g?this.g="":(b=n(b),null!==this.g?this.g+=b:this.v+=b);f=""}else{if(null==v||"/"==v||"\\"==v||"?"==v||"#"==v){h-=f.length,f="",c="host";continue}f+=v}break;case"file host":if(null==v||"/"==v||"\\"==v||"?"==v||"#"==v){2!=f.length||!p.test(f[0])||":"!=f[1]&&"|"!=f[1]?(0!=f.length&&(this.j=e.call(this,f),f=""),c="relative path start"):c="relative path";continue}"\t"==v||"\n"==v||"\r"==v?a("Invalid whitespace in file host."):f+=v;break;case"host":case"hostname":if(":"!=v||m){if(null==v||"/"==v||"\\"==v||"?"==v||"#"==v){if(this.j=e.call(this,f),f="",c="relative path start",o)break t;continue}"\t"!=v&&"\n"!=v&&"\r"!=v?("["==v?m=!0:"]"==v&&(m=!1),f+=v):a("Invalid code point in host/hostname: "+v)}else if(this.j=e.call(this,f),f="",c="port","hostname"==o)break t;break;case"port":if(/[0-9]/.test(v))f+=v;else{if(null==v||"/"==v||"\\"==v||"?"==v||"#"==v||o){if(""!=f&&((f=parseInt(f,10))!=l[this.h]&&(this.s=f+""),f=""),o)break t;c="relative path start";continue}"\t"==v||"\n"==v||"\r"==v?a("Invalid code point in port: "+v):(i.call(this),this.i=!0)}break;case"relative path start":if("\\"==v&&a("'\\' not allowed in path."),c="relative path","/"!=v&&"\\"!=v)continue;break;case"relative path":null!=v&&"/"!=v&&"\\"!=v&&(o||"?"!=v&&"#"!=v)?"\t"!=v&&"\n"!=v&&"\r"!=v&&(f+=n(v)):("\\"==v&&a("\\ not allowed in relative path."),(b=u[f.toLowerCase()])&&(f=b),".."==f?(this.l.pop(),"/"!=v&&"\\"!=v&&this.l.push("")):"."==f&&"/"!=v&&"\\"!=v?this.l.push(""):"."!=f&&("file"==this.h&&0==this.l.length&&2==f.length&&p.test(f[0])&&"|"==f[1]&&(f=f[0]+":"),this.l.push(f)),f="","?"==v?(this.u="?",c="query"):"#"==v&&(this.C="#",c="fragment"));break;case"query":o||"#"!=v?null!=v&&"\t"!=v&&"\n"!=v&&"\r"!=v&&(this.u+=r(v)):(this.C="#",c="fragment");break;case"fragment":null!=v&&"\t"!=v&&"\n"!=v&&"\r"!=v&&(this.C+=v)}h++}}function i(){this.v=this.na=this.h="",this.g=null,this.s=this.j="",this.l=[],this.C=this.u="",this.D=this.i=!1}function s(t,e){void 0===e||e instanceof s||(e=new s(String(e))),this.Oa=t,i.call(this),t=t.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,""),o.call(this,t,null,e)}var a=!1;if(!t.rb)try{var c=new URL("b","http://a");c.pathname="c%20d",a="http://a/c%20d"===c.href}catch(t){}if(!a){var l=Object.create(null);l.ftp=21,l.file=0,l.gopher=70,l.http=80,l.https=443,l.ws=80,l.wss=443;var u=Object.create(null);u["%2e"]=".",u[".%2e"]="..",u["%2e."]="..",u["%2e%2e"]="..";var p=/[a-zA-Z]/,d=/[a-zA-Z0-9\+\-\.]/;s.prototype={toString:function(){return this.href},get href(){if(this.i)return this.Oa;var t="";return""==this.v&&null==this.g||(t=this.v+(null!=this.g?":"+this.g:"")+"@"),this.protocol+(this.D?"//"+t+this.host:"")+this.pathname+this.u+this.C},set href(t){i.call(this),o.call(this,t)},get protocol(){return this.h+":"},set protocol(t){this.i||o.call(this,t+":","scheme start")},get host(){return this.i?"":this.s?this.j+":"+this.s:this.j},set host(t){!this.i&&this.D&&o.call(this,t,"host")},get hostname(){return this.j},set hostname(t){!this.i&&this.D&&o.call(this,t,"hostname")},get port(){return this.s},set port(t){!this.i&&this.D&&o.call(this,t,"port")},get pathname(){return this.i?"":this.D?"/"+this.l.join("/"):this.na},set pathname(t){!this.i&&this.D&&(this.l=[],o.call(this,t,"relative path start"))},get search(){return this.i||!this.u||"?"==this.u?"":this.u},set search(t){!this.i&&this.D&&(this.u="?","?"==t[0]&&(t=t.slice(1)),o.call(this,t,"query"))},get hash(){return this.i||!this.C||"#"==this.C?"":this.C},set hash(t){this.i||(this.C="#","#"==t[0]&&(t=t.slice(1)),o.call(this,t,"fragment"))},get origin(){var t;if(this.i||!this.h)return"";switch(this.h){case"data":case"file":case"javascript":case"mailto":return"null"}return(t=this.host)?this.h+"://"+t:""}};var h=t.URL;h&&(s.createObjectURL=function(t){return h.createObjectURL.apply(h,arguments)},s.revokeObjectURL=function(t){h.revokeObjectURL(t)}),t.URL=s}}(window),Object.getOwnPropertyDescriptor(Node.prototype,"baseURI")||Object.defineProperty(Node.prototype,"baseURI",{get:function(){var t=(this.ownerDocument||this).querySelector("base[href]");return t&&t.href||window.location.href},configurable:!0,enumerable:!0});var qi=document.createElement("style");qi.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Ui=document.querySelector("head");Ui.insertBefore(qi,Ui.firstChild);var Bi=window.customElements,Wi=!1,Vi=null;function Gi(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document),Vi&&Vi(),Wi=!0,window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}Bi.polyfillWrapFlushCallback&&Bi.polyfillWrapFlushCallback((function(t){Vi=t,Wi&&t()})),"complete"!==document.readyState?(window.addEventListener("load",Gi),window.addEventListener("DOMContentLoaded",(function(){window.removeEventListener("load",Gi),Gi()}))):Gi()}).call(this)}).call(this,n(21),n(247).setImmediate)},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(248),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(21))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,s,a,c=1,l={},u=!1,p=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){f(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){f(t.data)},r=function(t){i.port2.postMessage(t)}):p&&"onreadystatechange"in p.createElement("script")?(o=p.documentElement,r=function(t){var e=p.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(f,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&f(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(e){t.postMessage(s+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return l[c]=o,r(c),c++},d.clearImmediate=h}function h(t){delete l[t]}function f(t){if(u)setTimeout(f,0,t);else{var e=l[t];if(e){u=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{h(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(21),n(249))},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,l=[],u=!1,p=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):p=-1,l.length&&h())}function h(){if(!u){var t=a(d);u=!0;for(var e=l.length;e;){for(c=l,l=[];++p<e;)c&&c[p].run();p=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function _(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new f(t,e)),1!==l.length||u||a(h)},f.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=_,o.addListener=_,o.once=_,o.off=_,o.removeListener=_,o.removeAllListeners=_,o.emit=_,o.prependListener=_,o.prependOnceListener=_,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,n){"use strict";var r=n(65),o=n(105),i=n(3),s=n(17),a=n(62),c=n(66),l=n(4),u=n(68),p=n(43),d=n(1),h=[].push,f=Math.min,_=!d((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(s(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!o(t))return e.call(r,t,i);for(var a,c,l,u=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,_=new RegExp(t.source,d+"g");(a=p.call(_,r))&&!((c=_.lastIndex)>f&&(u.push(r.slice(f,a.index)),a.length>1&&a.index<r.length&&h.apply(u,a.slice(1)),l=a[0].length,f=c,u.length>=i));)_.lastIndex===a.index&&_.lastIndex++;return f===r.length?!l&&_.test("")||u.push(""):u.push(r.slice(f)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=s(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var s=n(r,t,this,o,r!==e);if(s.done)return s.value;var p=i(t),d=String(this),h=a(p,RegExp),m=p.unicode,g=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(_?"y":"g"),v=new h(_?p:"^(?:"+p.source+")",g),b=void 0===o?4294967295:o>>>0;if(0===b)return[];if(0===d.length)return null===u(v,d)?[d]:[];for(var y=0,w=0,x=[];w<d.length;){v.lastIndex=_?w:0;var E,S=u(v,_?d:d.slice(w));if(null===S||(E=f(l(v.lastIndex+(_?0:w)),d.length))===y)w=c(d,w,m);else{if(x.push(d.slice(y,w)),x.length===b)return x;for(var O=1;O<=S.length-1;O++)if(x.push(S[O]),x.length===b)return x;w=y=E}}return x.push(d.slice(y)),x}]}),!_)},function(t,e,n){"use strict";var r=n(7),o=n(252),i=n(14),s=n(4),a=n(26),c=n(120);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=i(this),r=s(n.length);return a(t),(e=c(n,0)).length=o(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},function(t,e,n){"use strict";var r=n(70),o=n(4),i=n(20),s=function(t,e,n,a,c,l,u,p){for(var d,h=c,f=0,_=!!u&&i(u,p,3);f<a;){if(f in n){if(d=_?_(n[f],f,e):n[f],l>0&&r(d))h=s(t,e,d,o(d.length),h,l-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[h]=d}h++}f++}return h};t.exports=s},function(t,e,n){"use strict";var r=n(7),o=n(26),i=n(14),s=n(1),a=n(254),c=[],l=c.sort,u=s((function(){c.sort(void 0)})),p=s((function(){c.sort(null)})),d=a("sort");r({target:"Array",proto:!0,forced:u||!p||!d},{sort:function(t){return void 0===t?l.call(i(this)):l.call(i(this),o(t))}})},function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){n(73)("flatMap")},,,,,,,function(t,e,n){"use strict";n.r(e);const r=new WeakMap,o=t=>(...e)=>{const n=t(...e);return r.set(n,!0),n},i=t=>"function"==typeof t&&r.has(t),s=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,a=(t,e,n=null,r=null)=>{for(;e!==n;){const n=e.nextSibling;t.insertBefore(e,r),e=n}},c=(t,e,n=null)=>{for(;e!==n;){const n=e.nextSibling;t.removeChild(e),e=n}},l={},u={},p=`{{lit-${String(Math.random()).slice(2)}}}`,d=`\x3c!--${p}--\x3e`,h=new RegExp(`${p}|${d}`),f="$lit$";class _{constructor(t,e){this.parts=[],this.element=e;const n=[],r=[],o=document.createTreeWalker(e.content,133,null,!1);let i=0,s=-1,a=0;const{strings:c,values:{length:l}}=t;for(;a<l;){const t=o.nextNode();if(null!==t){if(s++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:n}=e;let r=0;for(let t=0;t<n;t++)m(e[t].name,f)&&r++;for(;r-- >0;){const e=c[a],n=b.exec(e)[2],r=n.toLowerCase()+f,o=t.getAttribute(r);t.removeAttribute(r);const i=o.split(h);this.parts.push({type:"attribute",index:s,name:n,strings:i}),a+=i.length-1}}"TEMPLATE"===t.tagName&&(r.push(t),o.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(p)>=0){const r=t.parentNode,o=e.split(h),i=o.length-1;for(let e=0;e<i;e++){let n,i=o[e];if(""===i)n=v();else{const t=b.exec(i);null!==t&&m(t[2],f)&&(i=i.slice(0,t.index)+t[1]+t[2].slice(0,-f.length)+t[3]),n=document.createTextNode(i)}r.insertBefore(n,t),this.parts.push({type:"node",index:++s})}""===o[i]?(r.insertBefore(v(),t),n.push(t)):t.data=o[i],a+=i}}else if(8===t.nodeType)if(t.data===p){const e=t.parentNode;null!==t.previousSibling&&s!==i||(s++,e.insertBefore(v(),t)),i=s,this.parts.push({type:"node",index:s}),null===t.nextSibling?t.data="":(n.push(t),s--),a++}else{let e=-1;for(;-1!==(e=t.data.indexOf(p,e+1));)this.parts.push({type:"node",index:-1}),a++}}else o.currentNode=r.pop()}for(const t of n)t.parentNode.removeChild(t)}}const m=(t,e)=>{const n=t.length-e.length;return n>=0&&t.slice(n)===e},g=t=>-1!==t.index,v=()=>document.createComment(""),b=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;class y{constructor(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}update(t){let e=0;for(const n of this.__parts)void 0!==n&&n.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const t=s?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],n=this.template.parts,r=document.createTreeWalker(t,133,null,!1);let o,i=0,a=0,c=r.nextNode();for(;i<n.length;)if(o=n[i],g(o)){for(;a<o.index;)a++,"TEMPLATE"===c.nodeName&&(e.push(c),r.currentNode=c.content),null===(c=r.nextNode())&&(r.currentNode=e.pop(),c=r.nextNode());if("node"===o.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(c.previousSibling),this.__parts.push(t)}else this.__parts.push(...this.processor.handleAttributeExpressions(c,o.name,o.strings,this.options));i++}else this.__parts.push(void 0),i++;return s&&(document.adoptNode(t),customElements.upgrade(t)),t}}const w=` ${p} `;class x{constructor(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}getHTML(){const t=this.strings.length-1;let e="",n=!1;for(let r=0;r<t;r++){const t=this.strings[r],o=t.lastIndexOf("\x3c!--");n=(o>-1||n)&&-1===t.indexOf("--\x3e",o+1);const i=b.exec(t);e+=null===i?t+(n?w:d):t.substr(0,i.index)+i[1]+i[2]+f+i[3]+p}return e+=this.strings[t],e}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}class E extends x{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const t=super.getTemplateElement(),e=t.content,n=e.firstChild;return e.removeChild(n),a(e,n.firstChild),t}}const S=t=>null===t||!("object"==typeof t||"function"==typeof t),O=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class T{constructor(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(let t=0;t<n.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new A(this)}_getValue(){const t=this.strings,e=t.length-1;let n="";for(let r=0;r<e;r++){n+=t[r];const e=this.parts[r];if(void 0!==e){const t=e.value;if(S(t)||!O(t))n+="string"==typeof t?t:String(t);else for(const e of t)n+="string"==typeof e?e:String(e)}}return n+=t[e],n}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class A{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===l||S(t)&&t===this.value||(this.value=t,i(t)||(this.committer.dirty=!0))}commit(){for(;i(this.value);){const t=this.value;this.value=l,t(this)}this.value!==l&&this.committer.commit()}}class N{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(v()),this.endNode=t.appendChild(v())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=v()),t.__insert(this.endNode=v())}insertAfterPart(t){t.__insert(this.startNode=v()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){for(;i(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=l,t(this)}const t=this.__pendingValue;t!==l&&(S(t)?t!==this.value&&this.__commitText(t):t instanceof x?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):O(t)?this.__commitIterable(t):t===u?(this.value=u,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof y&&this.value.template===e)this.value.update(t.values);else{const n=new y(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let n,r=0;for(const o of t)n=e[r],void 0===n&&(n=new N(this.options),e.push(n),0===r?n.appendIntoPart(this):n.insertAfterPart(e[r-1])),n.setValue(o),n.commit(),r++;r<e.length&&(e.length=r,this.clear(n&&n.endNode))}clear(t=this.startNode){c(this.startNode.parentNode,t.nextSibling,this.endNode)}}class C{constructor(t,e,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}setValue(t){this.__pendingValue=t}commit(){for(;i(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=l,t(this)}if(this.__pendingValue===l)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=l}}class k extends T{constructor(t,e,n){super(t,e,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new L(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class L extends A{}let j=!1;try{const t={get capture(){return j=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}class D{constructor(t,e,n){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this.__pendingValue=t}commit(){for(;i(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=l,t(this)}if(this.__pendingValue===l)return;const t=this.__pendingValue,e=this.value,n=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),r=null!=t&&(null==e||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=I(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=l}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const I=t=>t&&(j?{capture:t.capture,passive:t.passive,once:t.once}:t.capture);class P{handleAttributeExpressions(t,e,n,r){const o=e[0];if("."===o){return new k(t,e.slice(1),n).parts}return"@"===o?[new D(t,e.slice(1),r.eventContext)]:"?"===o?[new C(t,e.slice(1),n)]:new T(t,e,n).parts}handleTextExpression(t){return new N(t)}}const M=new P;function R(t){let e=z.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},z.set(t.type,e));let n=e.stringsArray.get(t.strings);if(void 0!==n)return n;const r=t.strings.join(p);return n=e.keyString.get(r),void 0===n&&(n=new _(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}const z=new Map,H=new WeakMap,F=(t,e,n)=>{let r=H.get(e);void 0===r&&(c(e,e.firstChild),H.set(e,r=new N(Object.assign({templateFactory:R},n))),r.appendInto(e)),r.setValue(t),r.commit()};n.d(e,"html",(function(){return q})),n.d(e,"svg",(function(){return U})),n.d(e,"DefaultTemplateProcessor",(function(){return P})),n.d(e,"defaultTemplateProcessor",(function(){return M})),n.d(e,"directive",(function(){return o})),n.d(e,"isDirective",(function(){return i})),n.d(e,"removeNodes",(function(){return c})),n.d(e,"reparentNodes",(function(){return a})),n.d(e,"noChange",(function(){return l})),n.d(e,"nothing",(function(){return u})),n.d(e,"AttributeCommitter",(function(){return T})),n.d(e,"AttributePart",(function(){return A})),n.d(e,"BooleanAttributePart",(function(){return C})),n.d(e,"EventPart",(function(){return D})),n.d(e,"isIterable",(function(){return O})),n.d(e,"isPrimitive",(function(){return S})),n.d(e,"NodePart",(function(){return N})),n.d(e,"PropertyCommitter",(function(){return k})),n.d(e,"PropertyPart",(function(){return L})),n.d(e,"parts",(function(){return H})),n.d(e,"render",(function(){return F})),n.d(e,"templateCaches",(function(){return z})),n.d(e,"templateFactory",(function(){return R})),n.d(e,"TemplateInstance",(function(){return y})),n.d(e,"SVGTemplateResult",(function(){return E})),n.d(e,"TemplateResult",(function(){return x})),n.d(e,"createMarker",(function(){return v})),n.d(e,"isTemplatePartActive",(function(){return g})),n.d(e,"Template",(function(){return _})),(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");const q=(t,...e)=>new x(t,e,"html",M),U=(t,...e)=>new E(t,e,"svg",M)},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"CONFIG_ALIASES",(function(){return o})),n.d(r,"CONFIG_VALID_KEYS",(function(){return i})),n.d(r,"SORT_ORDERS",(function(){return c})),n.d(r,"SORT_ORDER_IDS",(function(){return l})),n.d(r,"TYPE_AGGREGATES",(function(){return u})),n.d(r,"FILTER_OPERATORS",(function(){return p})),n.d(r,"COLUMN_SEPARATOR_STRING",(function(){return m})),n.d(r,"TYPE_FILTERS",(function(){return g}));n(15),n(91),n(41),n(64),n(25);const o={row_pivot:"row_pivots","row-pivot":"row_pivots","row-pivots":"row_pivots",col_pivot:"column_pivots",col_pivots:"column_pivots",column_pivot:"column_pivots","column-pivot":"column_pivots","column-pivots":"column_pivots",filters:"filter",sorts:"sort"},i=["viewport","row_pivots","column_pivots","aggregates","columns","filter","sort","row_pivot_depth","filter_op"],s=["any","avg","count","distinct count","dominant","first by index","last by index","last","high","low","mean","median","pct sum parent","pct sum grand total","sum","sum abs","sum not null","unique"],a=["any","count","distinct count","distinct leaf","dominant","first by index","last by index","last","unique"],c=["none","asc","desc","col asc","col desc","asc abs","desc abs","col asc abs","col desc abs"],l=[2,0,1,0,1,3,4,3,4],u={string:a,float:s,integer:s,boolean:["any","count","distinct count","distinct leaf","dominant","first by index","last by index","last","unique","and","or"],datetime:a,date:a},p={lessThan:"<",greaterThan:">",equals:"==",lessThanOrEquals:"<=",greaterThanOrEquals:">=",doesNotEqual:"!=",isNull:"is null",isNotNull:"is not null",isIn:"in",isNotIn:"not in",contains:"contains",bitwiseAnd:"&",bitwiseOr:"|",and:"and",or:"or",beginsWith:"begins with",endsWith:"ends with"},d=[p.bitwiseAnd,p.bitwiseOr,p.equals,p.doesNotEqual,p.or,p.and,p.isNull,p.isNotNull],h=[p.lessThan,p.greaterThan,p.equals,p.lessThanOrEquals,p.greaterThanOrEquals,p.doesNotEqual,p.isNull,p.isNotNull],f=[p.equals,p.contains,p.doesNotEqual,p.isIn,p.isNotIn,p.beginsWith,p.endsWith,p.isNull,p.isNotNull],_=[p.lessThan,p.greaterThan,p.equals,p.lessThanOrEquals,p.greaterThanOrEquals,p.doesNotEqual,p.isNull,p.isNotNull],m="|",g={string:f,float:h,integer:h,boolean:d,datetime:_,date:_};var v=n(35);n(103);const b=new WeakMap;let y=0;function w(t,e){return function(){let n,r=()=>{},o=Array.prototype.slice.call(arguments,0,arguments.length);for(let t=o.length-1;t>=0;t--)"function"==typeof o[t]&&(n=o.splice(t,1)[0]);const i=b.get(n);b.delete(n);let s={cmd:e||"view_method",name:this._name,method:t,args:o,subscribe:!0,callback_id:i};this._worker.post(s,n,r),this._worker.unsubscribe(e,n)}}function x(t,e){return function(){let n,r=()=>{},o=Array.prototype.slice.call(arguments,0,arguments.length);for(let t=o.length-1;t>=0;t--)"function"==typeof o[t]&&(n=o.splice(t,1)[0]);y++,b.set(n,y);let i={cmd:e||"view_method",name:this._name,method:t,args:o,subscribe:!0,callback_id:y};this._worker.post(i,n,r,!0)}}function E(t,e){return function(){var n=Array.prototype.slice.call(arguments,0,arguments.length);return new Promise(function(r,o){var i={cmd:e||"view_method",name:this._name,method:t,args:n,subscribe:!1};this._worker.post(i,r,o)}.bind(this))}}n(104),n(106);function S(t){let e=t;do{for(const n of Object.getOwnPropertyNames(e)){const e=t[n];"constructor"!==n&&"function"==typeof e&&(t[n]=e.bind(t))}}while(e=e!==Object&&Object.getPrototypeOf(e))}n(149);function O(t,e,n){this._worker=t,this._name=Math.random()+"";var r={cmd:"view",view_name:this._name,table_name:e,config:n};this._worker.post(r),S(this)}function T(t,e){this._worker=t,this._name=e}function A(t,e,n){this._worker=t;let r=n.name||Math.random()+"";if(this._name=r,S(this),e.to_arrow){var o={cmd:"table",name:r,args:[],options:n||{}};this._worker.post(o),e.to_arrow().then(t=>{var o={cmd:"table",name:r,args:[t],options:n||{}};this._worker.post(o),e.on_update(this.update,{mode:"row"})})}else{o={cmd:"table",name:r,args:[e],options:n||{}};this._worker.post(o)}}function N(t,e,n){this._worker=t,this._name=Math.random()+"";let r=n;for(let t=0;t<e.length;++t){let n=e[t],r=n.func;"function"==typeof r&&(n.func=r.toString())}var o={cmd:"add_computed",original:r,name:this._name,computed:e};this._worker.post(o)}function C(t,e){this._worker=t,this._name=e}String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;var o,i,s=0|e,a=Math.max(s>=0?s:r-Math.abs(s),0);for(;a<r;){if((o=n[a])===(i=t)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;a++}return!1}}),T.prototype=O.prototype,O.prototype.get_config=E("get_config"),O.prototype.to_json=E("to_json"),O.prototype.to_arrow=E("to_arrow"),O.prototype.to_columns=E("to_columns"),O.prototype.to_csv=E("to_csv"),O.prototype.schema=E("schema"),O.prototype.column_paths=E("column_paths"),O.prototype.num_columns=E("num_columns"),O.prototype.num_rows=E("num_rows"),O.prototype.set_depth=E("set_depth"),O.prototype.get_row_expanded=E("get_row_expanded"),O.prototype.expand=E("expand"),O.prototype.collapse=E("collapse"),O.prototype.delete=E("delete"),O.prototype.col_to_js_typed_array=E("col_to_js_typed_array"),O.prototype.on_update=x("on_update","view_method"),O.prototype.remove_update=w("remove_update","view_method"),O.prototype.on_delete=x("on_delete","view_method"),O.prototype.remove_delete=w("remove_delete","view_method"),A.prototype.type="table",N.prototype=A.prototype,C.prototype=A.prototype,A.prototype.add_computed=function(t){return new N(this._worker,t,this._name)},A.prototype.view=function(t){return new O(this._worker,this._name,t)},A.prototype.compute=E("compute","table_method"),A.prototype.schema=E("schema","table_method"),A.prototype.computed_schema=E("computed_schema","table_method"),A.prototype.is_valid_filter=E("is_valid_filter","table_method"),A.prototype.size=E("size","table_method"),A.prototype.columns=E("columns","table_method"),A.prototype.clear=E("clear","table_method"),A.prototype.replace=E("replace","table_method"),A.prototype.delete=E("delete","table_method"),A.prototype.on_delete=x("on_delete","table_method"),A.prototype.remove=E("remove","table_method"),A.prototype.remove_delete=w("remove_delete","table_method"),A.prototype.update=function(t){return new Promise((e,n)=>{var r={name:this._name,cmd:"table_method",method:"update",args:[t]};this._worker.post(r,e,n,!1)})},A.prototype.execute=function(t){var e={cmd:"table_execute",name:this._name,f:t.toString()};this._worker.post(e)};class k{constructor(){this._initialized=!1,this._worker={initialized:{value:!1},transferable:!1,msg_id:0,handlers:{},messages:[]},S(this)}unsubscribe(t,e){for(let t of Object.keys(this._worker.handlers))this._worker.handlers[t].resolve===e&&delete this._worker.handlers[t]}post(t,e,n,r=!1){(e||n)&&(this._worker.handlers[++this._worker.msg_id]={resolve:e,reject:n,keep_alive:r}),t.id=this._worker.msg_id,this._worker.initialized.value?this.send(t):this._worker.messages.push(()=>this.send(t))}initialize_profile_thread(){this._worker.initialized.value?this.send({id:-1,cmd:"init_profile_thread"}):this._worker.messages.push(()=>this.send({id:-1,cmd:"init_profile_thread"}))}send(){throw new Error("send() not implemented")}open_table(t){return new C(this,t)}open_view(t){return new T(this,t)}_handle(t){if(!this._worker.initialized.value){if(!this._initialized&&"undefined"!=typeof document&&document&&void 0!==typeof window&&window){try{const t=document.createEvent("Event");t.initEvent("perspective-ready",!1,!0),window.dispatchEvent(t)}catch(t){}this._initialized=!0}const e=this._worker.messages;if(this._worker.initialized.value=!0,this._worker.messages=[],e)for(const t in e)e.hasOwnProperty(t)&&e[t]()}if(t.data.id){var e=this._worker.handlers[t.data.id];e&&(t.data.error?e.reject(t.data.error):e.resolve(t.data.data),e.keep_alive||delete this._worker.handlers[t.data.id])}}table(t,e){return new A(this,t,e||{})}terminate(){this._worker.terminate(),this._worker=void 0}}var L=n(122),j=n.n(L),D=n(50),I=n.n(D);const P=15e3,M=new class{_fetch(t){return new Promise(e=>{let n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{e(n.response)},n.send(null)})}worker(){return j()()}async wasm(){return I.a instanceof ArrayBuffer?(console.warn('Perspective has been compiled in INLINE mode. While Perspective\'s runtime performance is not affected, you may see smaller assets size and faster engine initial load time using "@finos/perspective-webpack-plugin" to build your application.\n\nhttps://perspective.finos.org/docs/md/installation.html#-an-important-note-about-hosting'),this._wasm=I.a):this._wasm=await this._fetch(I.a),this._wasm}};class R extends k{constructor(t){t&&Object(v.override_config)(t),super(),this.register()}async register(){let t;const e={cmd:"init",config:Object(v.get_config)()};if("undefined"==typeof WebAssembly)throw new Error("WebAssembly not supported. Support for ASM.JS has been removed as of 0.3.1.");for(var n in[t,e.buffer]=await Promise.all([M.worker(),M.wasm()]),this._worker)t[n]=this._worker[n];this._worker=t,this._worker.addEventListener("message",this._handle.bind(this)),this._worker.postMessage(e),this._detect_transferable()}send(t){this._worker.transferable&&t.args&&t.args[0]instanceof ArrayBuffer?this._worker.postMessage(t,t.args):this._worker.postMessage(t)}terminate(){this._worker.terminate(),this._worker=void 0}_detect_transferable(){var t=new ArrayBuffer(1);this._worker.postMessage(t,[t]),this._worker.transferable=0===t.byteLength,this._worker.transferable?console.log("Transferable support detected"):console.warn("Transferable support not detected")}}class z extends k{constructor(t){super(),this._ws=new WebSocket(t),this._ws.binaryType="arraybuffer",this._ws.onopen=()=>{this.send({id:-1,cmd:"init"})};const e=()=>{this._ws.send("heartbeat"),setTimeout(e,P)};setTimeout(e,15e3),this._ws.onmessage=t=>{"heartbeat"!==t.data&&(this._pending_arrow?(this._handle({data:{id:this._pending_arrow,data:t.data}}),delete this._pending_arrow):(t=JSON.parse(t.data)).is_transferable?this._pending_arrow=t.id:this._handle({data:t}))}}send(t){this._ws.send(JSON.stringify(t))}terminate(){this._ws.close()}}const H=function(){let t,e;return{getInstance:function(n){void 0===t&&(t=new R(n));const r=JSON.stringify(n);if(e&&r!==e)throw new Error("Confiuration object for shared_worker() has changed - this is probably a bug in your application.");return e=r,t}}}();document.currentScript&&document.currentScript.hasAttribute("preload")&&H.getInstance();const F={override:t=>M.set(t),worker:t=>new R(t),websocket:(t=window.location.origin.replace("http","ws"))=>new z(t),shared_worker:t=>H.getInstance(t)};for(let t of Object.keys(r))F[t]=r[t];e.default=F}])}));
2//# sourceMappingURL=perspective-viewer.js.map
\No newline at end of file