@mintjamsinc/vue-facet-definition-selection
Version:
A reusable FacetDefinitionSelection component for Vue.js 2.x used by webtop applications.
2 lines • 690 kB
JavaScript
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["bundle"]=t(require("vue")):e["bundle"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function a(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=e,a.c=t,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(i,n,function(t){return e[t]}.bind(null,n));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s="fb15")}({"00ee":function(e,t,a){var i=a("b622"),n=i("toStringTag"),o={};o[n]="z",e.exports="[object z]"===String(o)},"0366":function(e,t,a){var i=a("1c0b");e.exports=function(e,t,a){if(i(e),void 0===t)return e;switch(a){case 0:return function(){return e.call(t)};case 1:return function(a){return e.call(t,a)};case 2:return function(a,i){return e.call(t,a,i)};case 3:return function(a,i,n){return e.call(t,a,i,n)}}return function(){return e.apply(t,arguments)}}},"04d1":function(e,t,a){var i=a("342f"),n=i.match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},"057f":function(e,t,a){var i=a("fc6a"),n=a("241c").f,o={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return n(e)}catch(t){return r.slice()}};e.exports.f=function(e){return r&&"[object Window]"==o.call(e)?s(e):n(i(e))}},"06cf":function(e,t,a){var i=a("83ab"),n=a("d1e7"),o=a("5c6c"),r=a("fc6a"),s=a("a04b"),d=a("5135"),l=a("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=r(e),t=s(t),l)try{return c(e,t)}catch(a){}if(d(e,t))return o(!n.f.call(e,t),e[t])}},"0b42":function(e,t,a){var i=a("861d"),n=a("e8b5"),o=a("b622"),r=o("species");e.exports=function(e){var t;return n(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!n(t.prototype)?i(t)&&(t=t[r],null===t&&(t=void 0)):t=void 0),void 0===t?Array:t}},"0cfb":function(e,t,a){var i=a("83ab"),n=a("d039"),o=a("cc12");e.exports=!i&&!n((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"107c":function(e,t,a){var i=a("d039"),n=a("da84"),o=n.RegExp;e.exports=i((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1276:function(e,t,a){"use strict";var i=a("d784"),n=a("44e7"),o=a("825a"),r=a("1d80"),s=a("4840"),d=a("8aa5"),l=a("50c4"),c=a("577e"),p=a("14c3"),u=a("9263"),m=a("9f7f"),f=a("d039"),h=m.UNSUPPORTED_Y,_=[].push,v=Math.min,g=4294967295,y=!f((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var a="ab".split(e);return 2!==a.length||"a"!==a[0]||"b"!==a[1]}));i("split",(function(e,t,a){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,a){var i=c(r(this)),o=void 0===a?g:a>>>0;if(0===o)return[];if(void 0===e)return[i];if(!n(e))return t.call(i,e,o);var s,d,l,p=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,h=new RegExp(e.source,m+"g");while(s=u.call(h,i)){if(d=h.lastIndex,d>f&&(p.push(i.slice(f,s.index)),s.length>1&&s.index<i.length&&_.apply(p,s.slice(1)),l=s[0].length,f=d,p.length>=o))break;h.lastIndex===s.index&&h.lastIndex++}return f===i.length?!l&&h.test("")||p.push(""):p.push(i.slice(f)),p.length>o?p.slice(0,o):p}:"0".split(void 0,0).length?function(e,a){return void 0===e&&0===a?[]:t.call(this,e,a)}:t,[function(t,a){var n=r(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,n,a):i.call(c(n),t,a)},function(e,n){var r=o(this),u=c(e),m=a(i,r,u,n,i!==t);if(m.done)return m.value;var f=s(r,RegExp),_=r.unicode,y=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(h?"g":"y"),x=new f(h?"^(?:"+r.source+")":r,y),M=void 0===n?g:n>>>0;if(0===M)return[];if(0===u.length)return null===p(x,u)?[u]:[];var b=0,L=0,w=[];while(L<u.length){x.lastIndex=h?0:L;var k,Y=p(x,h?u.slice(L):u);if(null===Y||(k=v(l(x.lastIndex+(h?L:0)),u.length))===b)L=d(u,L,_);else{if(w.push(u.slice(b,L)),w.length===M)return w;for(var D=1;D<=Y.length-1;D++)if(w.push(Y[D]),w.length===M)return w;L=b=k}}return w.push(u.slice(b)),w}]}),!y,h)},"14c3":function(e,t,a){var i=a("c6b6"),n=a("9263");e.exports=function(e,t){var a=e.exec;if("function"===typeof a){var o=a.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return n.call(e,t)}},"1be4":function(e,t,a){var i=a("d066");e.exports=i("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,a){var i=a("b622"),n=i("iterator"),o=!1;try{var r=0,s={next:function(){return{done:!!r++}},return:function(){o=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(d){}e.exports=function(e,t){if(!t&&!o)return!1;var a=!1;try{var i={};i[n]=function(){return{next:function(){return{done:a=!0}}}},e(i)}catch(d){}return a}},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,a){var i=a("d039"),n=a("b622"),o=a("2d00"),r=n("species");e.exports=function(e){return o>=51||!i((function(){var t=[],a=t.constructor={};return a[r]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"23cb":function(e,t,a){var i=a("a691"),n=Math.max,o=Math.min;e.exports=function(e,t){var a=i(e);return a<0?n(a+t,0):o(a,t)}},"23e7":function(e,t,a){var i=a("da84"),n=a("06cf").f,o=a("9112"),r=a("6eeb"),s=a("ce4e"),d=a("e893"),l=a("94ca");e.exports=function(e,t){var a,c,p,u,m,f,h=e.target,_=e.global,v=e.stat;if(c=_?i:v?i[h]||s(h,{}):(i[h]||{}).prototype,c)for(p in t){if(m=t[p],e.noTargetGet?(f=n(c,p),u=f&&f.value):u=c[p],a=l(_?p:h+(v?".":"#")+p,e.forced),!a&&void 0!==u){if(typeof m===typeof u)continue;d(m,u)}(e.sham||u&&u.sham)&&o(m,"sham",!0),r(c,p,m,e)}}},"241c":function(e,t,a){var i=a("ca84"),n=a("7839"),o=n.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},"277d":function(e,t,a){var i=a("23e7"),n=a("e8b5");i({target:"Array",stat:!0},{isArray:n})},"2a62":function(e,t,a){var i=a("825a");e.exports=function(e){var t=e["return"];if(void 0!==t)return i(t.call(e)).value}},"2d00":function(e,t,a){var i,n,o=a("da84"),r=a("342f"),s=o.process,d=o.Deno,l=s&&s.versions||d&&d.version,c=l&&l.v8;c?(i=c.split("."),n=i[0]<4?1:i[0]+i[1]):r&&(i=r.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=r.match(/Chrome\/(\d+)/),i&&(n=i[1]))),e.exports=n&&+n},"342f":function(e,t,a){var i=a("d066");e.exports=i("navigator","userAgent")||""},"35a1":function(e,t,a){var i=a("f5df"),n=a("3f8c"),o=a("b622"),r=o("iterator");e.exports=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||n[i(e)]}},"37e8":function(e,t,a){var i=a("83ab"),n=a("9bf2"),o=a("825a"),r=a("df75");e.exports=i?Object.defineProperties:function(e,t){o(e);var a,i=r(t),s=i.length,d=0;while(s>d)n.f(e,a=i[d++],t[a]);return e}},"3bbe":function(e,t,a){var i=a("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c25":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"h-100 position-relative overflow-hidden"},[a("div",{staticClass:"h-100 overflow-hidden",on:{click:function(e){e.preventDefault(),e.stopPropagation()}}},[a("div",{staticClass:"position-relative w-100"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.filterText,expression:"filterText"},{name:"focus",rawName:"v-focus.delay",value:200,expression:"200",modifiers:{delay:!0}}],staticClass:"pl-2 pr-4 py-2 border-none outline-none material material-blue w-100 text-shadow",attrs:{type:"text",name:"filterText",autocomplete:"off"},domProps:{value:e.filterText},on:{input:function(t){t.target.composing||(e.filterText=t.target.value)}}}),a("div",{staticClass:"absolute-0 left-auto pr-2 text-small text-shadow c-pointer justify-content-center align-items-center",class:{"d-flex":e.filterText,"d-none":!e.filterText},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.clearFilterText.apply(null,arguments)}}},[a("i",{staticClass:"fas fa-times"})])]),a("div",{staticClass:"mt-1 overflow-hidden position-relative",staticStyle:{height:"calc(100% - 2.75rem)"}},[a("perfect-scrollbar",[0==e.filteredFacetDefinitions.length?a("div",{staticClass:"p-2 text-small text-upper font-weight-semibold text-black-50 text-shadow text-truncate"},[e._v("No matching records found.")]):e._e(),e._l(e.filteredFacetDefinitions,(function(t){return a("div",{key:t.key,staticClass:"list-item d-flex justify-content-start align-items-center overflow-hidden c-pointer bg-hover",on:{click:function(a){return a.preventDefault(),a.stopPropagation(),e.doSelect(t)}}},[a("div",{staticClass:"icon-block text-black-50 text-shadow"},[a("i",{class:e.facetIconClasses(t)},[a("i",{staticClass:"fas fa-plus overlay-top-right"})])]),a("div",{staticClass:"flex-grow-1 pr-2 font-weight-semibold text-shadow text-truncate"},[t.label?a("span",[e._v(e._s(t.label)),a("span",{staticClass:"ml-2 text-black-50 text-small"},[e._v(e._s(t.key))])]):e._e(),t.label?e._e():a("span",[e._v(e._s(t.key))])])])}))],2)],1)])])},n=[];a("a4d3"),a("e01a"),a("d3b7"),a("d28b"),a("e260"),a("3ca3"),a("ddb0"),a("277d"),a("fb6a"),a("b0c0"),a("a630");function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}function r(e,t){if(e){if("string"===typeof e)return o(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(e,t):void 0}}function s(e,t){var a="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=r(e))||t&&e&&"number"===typeof e.length){a&&(e=a);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,d=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){d=!0,o=e},f:function(){try{s||null==a["return"]||a["return"]()}finally{if(d)throw o}}}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}a("7a82");function l(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t,a){return t&&l(e.prototype,t),a&&l(e,a),e}a("4e82"),a("c975"),a("ac1f"),a("1276"),a("498a");var p=a("a4a1"),u=a("96a1"),m=a.n(u),f=m.a.Facets,h=m.a.Strings,_={props:{excludes:{type:Array,default:[]}},components:{PerfectScrollbar:p["PerfectScrollbar"]},data:function(){return{filterText:"",value:null,facetDefinitionIndex:[],facetDefinitions:{}}},created:function(){var e=this,t=function(){function t(){d(this,t),this.$onChanged=function(){}}return c(t,[{key:"value",get:function(){return e.value},set:function(t){e.value=t}},{key:"facetDefinitions",get:function(){return e.facetDefinitions}},{key:"onChanged",get:function(){return this.$onChanged},set:function(e){this.$onChanged=e}}]),t}();e.ui=new t,window.Webtop.cmsClient.listFacetDefinitions().then((function(t){var a,i=s(t.facetDefinitions);try{for(i.s();!(a=i.n()).done;){var n=a.value;e.facetDefinitionIndex.push(n.key),e.facetDefinitions[n.key]=n.$data}}catch(o){i.e(o)}finally{i.f()}}))},computed:{filteredFacetDefinitions:function(){var e,t=this,a={filterText:t.filterText},i=[],n=s(t.facetDefinitionIndex);try{for(n.s();!(e=n.n()).done;){var o=e.value,r=t.facetDefinitions[o];if(-1==t.excludes.indexOf(o)){if("propertyset"==r.type){var d,l=!0,c=s(r.keys);try{for(c.s();!(d=c.n()).done;){var p=d.value;if(-1!=t.facetDefinitionIndex.indexOf(p)&&-1==t.excludes.indexOf(p)){l=!1;break}}}catch(b){c.e(b)}finally{c.f()}if(l)continue}if(a.filterText){var u,m=r.key.toLowerCase(),_=h.defaultString(r.label).toLowerCase(),v=a.filterText.trim().split(" "),g=!0,y=s(v);try{for(y.s();!(u=y.n()).done;){var x=u.value;if(-1==m.indexOf(x.toLowerCase())&&-1==_.indexOf(x.toLowerCase())){g=!1;break}}}catch(b){y.e(b)}finally{y.f()}if(!g)continue}i.push(r)}}}catch(b){n.e(b)}finally{n.f()}var M=function(e){var t=e.key,a=h.defaultString(e.label);return a||t};return i.sort((function(e,t){var a=M(e),i=M(t);return f.compareString(a,i)})),i}},methods:{clearFilterText:function(){var e=this;e.filterText="",e.focusFilterText()},focusFilterText:function(){var e=this;e.$nextTick((function(){e.$el.querySelector("input[name='filterText']").focus()}))},facetIconClasses:function(e){return f.iconClasses(e.type)},doSelect:function(e){var t=this;e&&(t.value=e,t.ui.$onChanged())}}},v=_;function g(e,t,a,i,n,o,r,s){var d,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=a,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),r?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=d):n&&(d=s?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),d)if(l.functional){l._injectStyles=d;var c=l.render;l.render=function(e,t){return d.call(t),c(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,d):[d]}return{exports:e,options:l}}var y=g(v,i,n,!1,null,null,null);t["a"]=y.exports},"3ca3":function(e,t,a){"use strict";var i=a("6547").charAt,n=a("577e"),o=a("69f3"),r=a("7dd0"),s="String Iterator",d=o.set,l=o.getterFor(s);r(String,"String",(function(e){d(this,{type:s,string:n(e),index:0})}),(function(){var e,t=l(this),a=t.string,n=t.index;return n>=a.length?{value:void 0,done:!0}:(e=i(a,n),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},"428f":function(e,t,a){var i=a("da84");e.exports=i},4362:function(e,t,a){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,i="/";t.cwd=function(){return i},t.chdir=function(t){e||(e=a("df7c")),i=e.resolve(t,i)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,a){var i=a("d039"),n=a("c6b6"),o="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==n(e)?o.call(e,""):Object(e)}:Object},"44d2":function(e,t,a){var i=a("b622"),n=a("7c73"),o=a("9bf2"),r=i("unscopables"),s=Array.prototype;void 0==s[r]&&o.f(s,r,{configurable:!0,value:n(null)}),e.exports=function(e){s[r][e]=!0}},"44e7":function(e,t,a){var i=a("861d"),n=a("c6b6"),o=a("b622"),r=o("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==n(e))}},4840:function(e,t,a){var i=a("825a"),n=a("1c0b"),o=a("b622"),r=o("species");e.exports=function(e,t){var a,o=i(e).constructor;return void 0===o||void 0==(a=i(o)[r])?t:n(a)}},"485a":function(e,t,a){var i=a("861d");e.exports=function(e,t){var a,n;if("string"===t&&"function"==typeof(a=e.toString)&&!i(n=a.call(e)))return n;if("function"==typeof(a=e.valueOf)&&!i(n=a.call(e)))return n;if("string"!==t&&"function"==typeof(a=e.toString)&&!i(n=a.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},4930:function(e,t,a){var i=a("2d00"),n=a("d039");e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},"498a":function(e,t,a){"use strict";var i=a("23e7"),n=a("58a8").trim,o=a("c8d2");i({target:"String",proto:!0,forced:o("trim")},{trim:function(){return n(this)}})},"4d64":function(e,t,a){var i=a("fc6a"),n=a("50c4"),o=a("23cb"),r=function(e){return function(t,a,r){var s,d=i(t),l=n(d.length),c=o(r,l);if(e&&a!=a){while(l>c)if(s=d[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in d)&&d[c]===a)return e||c||0;return!e&&-1}};e.exports={includes:r(!0),indexOf:r(!1)}},"4df4":function(e,t,a){"use strict";var i=a("0366"),n=a("7b0b"),o=a("9bdd"),r=a("e95a"),s=a("50c4"),d=a("8418"),l=a("35a1");e.exports=function(e){var t,a,c,p,u,m,f=n(e),h="function"==typeof this?this:Array,_=arguments.length,v=_>1?arguments[1]:void 0,g=void 0!==v,y=l(f),x=0;if(g&&(v=i(v,_>2?arguments[2]:void 0,2)),void 0==y||h==Array&&r(y))for(t=s(f.length),a=new h(t);t>x;x++)m=g?v(f[x],x):f[x],d(a,x,m);else for(p=y.call(f),u=p.next,a=new h;!(c=u.call(p)).done;x++)m=g?o(p,v,[c.value,x],!0):c.value,d(a,x,m);return a.length=x,a}},"4e82":function(e,t,a){"use strict";var i=a("23e7"),n=a("1c0b"),o=a("7b0b"),r=a("50c4"),s=a("577e"),d=a("d039"),l=a("addb"),c=a("a640"),p=a("04d1"),u=a("d998"),m=a("2d00"),f=a("512c"),h=[],_=h.sort,v=d((function(){h.sort(void 0)})),g=d((function(){h.sort(null)})),y=c("sort"),x=!d((function(){if(m)return m<70;if(!(p&&p>3)){if(u)return!0;if(f)return f<603;var e,t,a,i,n="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(i=0;i<47;i++)h.push({k:t+i,v:a})}for(h.sort((function(e,t){return t.v-e.v})),i=0;i<h.length;i++)t=h[i].k.charAt(0),n.charAt(n.length-1)!==t&&(n+=t);return"DGBEFHACIJK"!==n}})),M=v||!g||!y||!x,b=function(e){return function(t,a){return void 0===a?-1:void 0===t?1:void 0!==e?+e(t,a)||0:s(t)>s(a)?1:-1}};i({target:"Array",proto:!0,forced:M},{sort:function(e){void 0!==e&&n(e);var t=o(this);if(x)return void 0===e?_.call(t):_.call(t,e);var a,i,s=[],d=r(t.length);for(i=0;i<d;i++)i in t&&s.push(t[i]);s=l(s,b(e)),a=s.length,i=0;while(i<a)t[i]=s[i++];while(i<d)delete t[i++];return t}})},"50c4":function(e,t,a){var i=a("a691"),n=Math.min;e.exports=function(e){return e>0?n(i(e),9007199254740991):0}},"512c":function(e,t,a){var i=a("342f"),n=i.match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},5135:function(e,t,a){var i=a("7b0b"),n={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return n.call(i(e),t)}},5692:function(e,t,a){var i=a("c430"),n=a("c6cd");(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.3",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,a){var i=a("d066"),n=a("241c"),o=a("7418"),r=a("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=n.f(r(e)),a=o.f;return a?t.concat(a(e)):t}},"577e":function(e,t,a){var i=a("d9b5");e.exports=function(e){if(i(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,t,a){var i=a("1d80"),n=a("577e"),o=a("5899"),r="["+o+"]",s=RegExp("^"+r+r+"*"),d=RegExp(r+r+"*$"),l=function(e){return function(t){var a=n(i(t));return 1&e&&(a=a.replace(s,"")),2&e&&(a=a.replace(d,"")),a}};e.exports={start:l(1),end:l(2),trim:l(3)}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6547:function(e,t,a){var i=a("a691"),n=a("577e"),o=a("1d80"),r=function(e){return function(t,a){var r,s,d=n(o(t)),l=i(a),c=d.length;return l<0||l>=c?e?"":void 0:(r=d.charCodeAt(l),r<55296||r>56319||l+1===c||(s=d.charCodeAt(l+1))<56320||s>57343?e?d.charAt(l):r:e?d.slice(l,l+2):s-56320+(r-55296<<10)+65536)}};e.exports={codeAt:r(!1),charAt:r(!0)}},"65f0":function(e,t,a){var i=a("0b42");e.exports=function(e,t){return new(i(e))(0===t?0:t)}},"69f3":function(e,t,a){var i,n,o,r=a("7f9a"),s=a("da84"),d=a("861d"),l=a("9112"),c=a("5135"),p=a("c6cd"),u=a("f772"),m=a("d012"),f="Object already initialized",h=s.WeakMap,_=function(e){return o(e)?n(e):i(e,{})},v=function(e){return function(t){var a;if(!d(t)||(a=n(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return a}};if(r||p.state){var g=p.state||(p.state=new h),y=g.get,x=g.has,M=g.set;i=function(e,t){if(x.call(g,e))throw new TypeError(f);return t.facade=e,M.call(g,e,t),t},n=function(e){return y.call(g,e)||{}},o=function(e){return x.call(g,e)}}else{var b=u("state");m[b]=!0,i=function(e,t){if(c(e,b))throw new TypeError(f);return t.facade=e,l(e,b,t),t},n=function(e){return c(e,b)?e[b]:{}},o=function(e){return c(e,b)}}e.exports={set:i,get:n,has:o,enforce:_,getterFor:v}},"6eeb":function(e,t,a){var i=a("da84"),n=a("9112"),o=a("5135"),r=a("ce4e"),s=a("8925"),d=a("69f3"),l=d.get,c=d.enforce,p=String(String).split("String");(e.exports=function(e,t,a,s){var d,l=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,m=!!s&&!!s.noTargetGet;"function"==typeof a&&("string"!=typeof t||o(a,"name")||n(a,"name",t),d=c(a),d.source||(d.source=p.join("string"==typeof t?t:""))),e!==i?(l?!m&&e[t]&&(u=!0):delete e[t],u?e[t]=a:n(e,t,a)):u?e[t]=a:r(t,a)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,a){var i=a("428f"),n=a("5135"),o=a("e538"),r=a("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});n(t,e)||r(t,e,{value:o.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a82":function(e,t,a){var i=a("23e7"),n=a("83ab"),o=a("9bf2");i({target:"Object",stat:!0,forced:!n,sham:!n},{defineProperty:o.f})},"7b0b":function(e,t,a){var i=a("1d80");e.exports=function(e){return Object(i(e))}},"7c73":function(e,t,a){var i,n=a("825a"),o=a("37e8"),r=a("7839"),s=a("d012"),d=a("1be4"),l=a("cc12"),c=a("f772"),p=">",u="<",m="prototype",f="script",h=c("IE_PROTO"),_=function(){},v=function(e){return u+f+p+e+u+"/"+f+p},g=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=l("iframe"),a="java"+f+":";return t.style.display="none",d.appendChild(t),t.src=String(a),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},x=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}x="undefined"!=typeof document?document.domain&&i?g(i):y():g(i);var e=r.length;while(e--)delete x[m][r[e]];return x()};s[h]=!0,e.exports=Object.create||function(e,t){var a;return null!==e?(_[m]=n(e),a=new _,_[m]=null,a[h]=e):a=x(),void 0===t?a:o(a,t)}},"7dd0":function(e,t,a){"use strict";var i=a("23e7"),n=a("9ed3"),o=a("e163"),r=a("d2bb"),s=a("d44e"),d=a("9112"),l=a("6eeb"),c=a("b622"),p=a("c430"),u=a("3f8c"),m=a("ae93"),f=m.IteratorPrototype,h=m.BUGGY_SAFARI_ITERATORS,_=c("iterator"),v="keys",g="values",y="entries",x=function(){return this};e.exports=function(e,t,a,c,m,M,b){n(a,t,c);var L,w,k,Y=function(e){if(e===m&&H)return H;if(!h&&e in S)return S[e];switch(e){case v:return function(){return new a(this,e)};case g:return function(){return new a(this,e)};case y:return function(){return new a(this,e)}}return function(){return new a(this)}},D=t+" Iterator",T=!1,S=e.prototype,j=S[_]||S["@@iterator"]||m&&S[m],H=!h&&j||Y(m),A="Array"==t&&S.entries||j;if(A&&(L=o(A.call(new e)),f!==Object.prototype&&L.next&&(p||o(L)===f||(r?r(L,f):"function"!=typeof L[_]&&d(L,_,x)),s(L,D,!0,!0),p&&(u[D]=x))),m==g&&j&&j.name!==g&&(T=!0,H=function(){return j.call(this)}),p&&!b||S[_]===H||d(S,_,H),u[t]=H,m)if(w={values:Y(g),keys:M?H:Y(v),entries:Y(y)},b)for(k in w)(h||T||!(k in S))&&l(S,k,w[k]);else i({target:t,proto:!0,forced:h||T},w);return w}},"7f9a":function(e,t,a){var i=a("da84"),n=a("8925"),o=i.WeakMap;e.exports="function"===typeof o&&/native code/.test(n(o))},"825a":function(e,t,a){var i=a("861d");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,a){var i=a("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,a){"use strict";var i=a("a04b"),n=a("9bf2"),o=a("5c6c");e.exports=function(e,t,a){var r=i(t);r in e?n.f(e,r,o(0,a)):e[r]=a}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8875:function(e,t,a){var i,n,o;(function(a,r){n=[],i=r,o="function"===typeof i?i.apply(t,n):i,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(m){var a,i,n,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,r=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(m.stack)||r.exec(m.stack),d=s&&s[1]||!1,l=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");d===c&&(a=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=a.replace(i,"$1").trim());for(var u=0;u<p.length;u++){if("interactive"===p[u].readyState)return p[u];if(p[u].src===d)return p[u];if(d===c&&p[u].innerHTML&&p[u].innerHTML.trim()===n)return p[u]}return null}}return e}))},8925:function(e,t,a){var i=a("c6cd"),n=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return n.call(e)}),e.exports=i.inspectSource},"8aa5":function(e,t,a){"use strict";var i=a("6547").charAt;e.exports=function(e,t,a){return t+(a?i(e,t).length:1)}},"8bbf":function(t,a){t.exports=e},"90e3":function(e,t){var a=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++a+i).toString(36)}},9112:function(e,t,a){var i=a("83ab"),n=a("9bf2"),o=a("5c6c");e.exports=i?function(e,t,a){return n.f(e,t,o(1,a))}:function(e,t,a){return e[t]=a,e}},9263:function(e,t,a){"use strict";var i=a("577e"),n=a("ad6d"),o=a("9f7f"),r=a("5692"),s=a("7c73"),d=a("69f3").get,l=a("fce3"),c=a("107c"),p=RegExp.prototype.exec,u=r("native-string-replace",String.prototype.replace),m=p,f=function(){var e=/a/,t=/b*/g;return p.call(e,"a"),p.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),h=o.UNSUPPORTED_Y||o.BROKEN_CARET,_=void 0!==/()??/.exec("")[1],v=f||_||h||l||c;v&&(m=function(e){var t,a,o,r,l,c,v,g=this,y=d(g),x=i(e),M=y.raw;if(M)return M.lastIndex=g.lastIndex,t=m.call(M,x),g.lastIndex=M.lastIndex,t;var b=y.groups,L=h&&g.sticky,w=n.call(g),k=g.source,Y=0,D=x;if(L&&(w=w.replace("y",""),-1===w.indexOf("g")&&(w+="g"),D=x.slice(g.lastIndex),g.lastIndex>0&&(!g.multiline||g.multiline&&"\n"!==x.charAt(g.lastIndex-1))&&(k="(?: "+k+")",D=" "+D,Y++),a=new RegExp("^(?:"+k+")",w)),_&&(a=new RegExp("^"+k+"$(?!\\s)",w)),f&&(o=g.lastIndex),r=p.call(L?a:g,D),L?r?(r.input=r.input.slice(Y),r[0]=r[0].slice(Y),r.index=g.lastIndex,g.lastIndex+=r[0].length):g.lastIndex=0:f&&r&&(g.lastIndex=g.global?r.index+r[0].length:o),_&&r&&r.length>1&&u.call(r[0],a,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(r[l]=void 0)})),r&&b)for(r.groups=c=s(null),l=0;l<b.length;l++)v=b[l],c[v[0]]=r[v[1]];return r}),e.exports=m},"94ca":function(e,t,a){var i=a("d039"),n=/#|\.prototype\./,o=function(e,t){var a=s[r(e)];return a==l||a!=d&&("function"==typeof t?i(t):!!t)},r=o.normalize=function(e){return String(e).replace(n,".").toLowerCase()},s=o.data={},d=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},"96a1":function(e,t,a){(function(t){/*! For license information please see bundle.min.js.LICENSE.txt */
!function(t,a){e.exports=a()}(self,(function(){return(()=>{var e={9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=d(e),a=t[0],i=t[1];return 3*(a+i)/4-i},t.toByteArray=function(e){var t,a,o=d(e),r=o[0],s=o[1],l=new n(function(e,t,a){return 3*(t+a)/4-a}(0,r,s)),c=0,p=s>0?r-4:r;for(a=0;a<p;a+=4)t=i[e.charCodeAt(a)]<<18|i[e.charCodeAt(a+1)]<<12|i[e.charCodeAt(a+2)]<<6|i[e.charCodeAt(a+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(a)]<<2|i[e.charCodeAt(a+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(a)]<<10|i[e.charCodeAt(a+1)]<<4|i[e.charCodeAt(a+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,o=[],r=16383,s=0,d=i-n;s<d;s+=r)o.push(l(e,s,s+r>d?d:s+r));return 1===n?(t=e[i-1],o.push(a[t>>2]+a[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],o.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"=")),o.join("")};for(var a=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,s=o.length;r<s;++r)a[r]=o[r],i[o.charCodeAt(r)]=r;function d(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=e.indexOf("=");return-1===a&&(a=t),[a,a===t?0:4-a%4]}function l(e,t,i){for(var n,o,r=[],s=t;s<i;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),r.push(a[(o=n)>>18&63]+a[o>>12&63]+a[o>>6&63]+a[63&o]);return r.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},8764:(e,t,a)=>{"use strict";var i=a(9742),n=a(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=d,t.h2=50;var r=2147483647;function s(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,d.prototype),t}function d(e,t,a){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return l(e,t,a)}function l(e,t,a){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!d.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var a=0|h(e,t),i=s(a),n=i.write(e,t);return n!==a&&(i=i.slice(0,n)),i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(I(e,Uint8Array)){var t=new Uint8Array(e);return m(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer))return m(e,t,a);if("undefined"!=typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return m(e,t,a);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return d.from(i,t,a);var n=function(e){if(d.isBuffer(e)){var t=0|f(e.length),a=s(t);return 0===a.length||e.copy(a,0,0,t),a}return void 0!==e.length?"number"!=typeof e.length||B(e.length)?s(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return d.from(e[Symbol.toPrimitive]("string"),t,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return c(e),s(e<0?0:0|f(e))}function u(e){for(var t=e.length<0?0:0|f(e.length),a=s(t),i=0;i<t;i+=1)a[i]=255&e[i];return a}function m(e,t,a){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(a||0))throw new RangeError('"length" is outside of buffer bounds');var i;return i=void 0===t&&void 0===a?new Uint8Array(e):void 0===a?new Uint8Array(e,t):new Uint8Array(e,t,a),Object.setPrototypeOf(i,d.prototype),i}function f(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function h(e,t){if(d.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var a=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===a)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return z(e).length;default:if(n)return i?-1:R(e).length;t=(""+t).toLowerCase(),n=!0}}function _(e,t,a){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if((a>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,a);case"utf8":case"utf-8":return Y(this,t,a);case"ascii":return T(this,t,a);case"latin1":case"binary":return S(this,t,a);case"base64":return k(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,t,a);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function v(e,t,a){var i=e[t];e[t]=e[a],e[a]=i}function g(e,t,a,i,n){if(0===e.length)return-1;if("string"==typeof a?(i=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),B(a=+a)&&(a=n?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(n)return-1;a=e.length-1}else if(a<0){if(!n)return-1;a=0}if("string"==typeof t&&(t=d.from(t,i)),d.isBuffer(t))return 0===t.length?-1:y(e,t,a,i,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,a):Uint8Array.prototype.lastIndexOf.call(e,t,a):y(e,[t],a,i,n);throw new TypeError("val must be string, number or Buffer")}function y(e,t,a,i,n){var o,r=1,s=e.length,d=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;r=2,s/=2,d/=2,a/=2}function l(e,t){return 1===r?e[t]:e.readUInt16BE(t*r)}if(n){var c=-1;for(o=a;o<s;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===d)return c*r}else-1!==c&&(o-=o-c),c=-1}else for(a+d>s&&(a=s-d),o=a;o>=0;o--){for(var p=!0,u=0;u<d;u++)if(l(e,o+u)!==l(t,u)){p=!1;break}if(p)return o}return-1}function x(e,t,a,i){a=Number(a)||0;var n=e.length-a;i?(i=Number(i))>n&&(i=n):i=n;var o=t.length;i>o/2&&(i=o/2);for(var r=0;r<i;++r){var s=parseInt(t.substr(2*r,2),16);if(B(s))return r;e[a+r]=s}return r}function M(e,t,a,i){return F(R(t,e.length-a),e,a,i)}function b(e,t,a,i){return F(function(e){for(var t=[],a=0;a<e.length;++a)t.push(255&e.charCodeAt(a));return t}(t),e,a,i)}function L(e,t,a,i){return F(z(t),e,a,i)}function w(e,t,a,i){return F(function(e,t){for(var a,i,n,o=[],r=0;r<e.length&&!((t-=2)<0);++r)i=(a=e.charCodeAt(r))>>8,n=a%256,o.push(n),o.push(i);return o}(t,e.length-a),e,a,i)}function k(e,t,a){return 0===t&&a===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,a))}function Y(e,t,a){a=Math.min(e.length,a);for(var i=[],n=t;n<a;){var o,r,s,d,l=e[n],c=null,p=l>239?4:l>223?3:l>191?2:1;if(n+p<=a)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[n+1]))&&(d=(31&l)<<6|63&o)>127&&(c=d);break;case 3:o=e[n+1],r=e[n+2],128==(192&o)&&128==(192&r)&&(d=(15&l)<<12|(63&o)<<6|63&r)>2047&&(d<55296||d>57343)&&(c=d);break;case 4:o=e[n+1],r=e[n+2],s=e[n+3],128==(192&o)&&128==(192&r)&&128==(192&s)&&(d=(15&l)<<18|(63&o)<<12|(63&r)<<6|63&s)>65535&&d<1114112&&(c=d)}null===c?(c=65533,p=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=p}return function(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);for(var a="",i=0;i<t;)a+=String.fromCharCode.apply(String,e.slice(i,i+=D));return a}(i)}d.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),d.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),d.poolSize=8192,d.from=function(e,t,a){return l(e,t,a)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(e,t,a){return function(e,t,a){return c(e),e<=0?s(e):void 0!==t?"string"==typeof a?s(e).fill(t,a):s(e).fill(t):s(e)}(e,t,a)},d.allocUnsafe=function(e){return p(e)},d.allocUnsafeSlow=function(e){return p(e)},d.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==d.prototype},d.compare=function(e,t){if(I(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(e)||!d.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var a=e.length,i=t.length,n=0,o=Math.min(a,i);n<o;++n)if(e[n]!==t[n]){a=e[n],i=t[n];break}return a<i?-1:i<a?1:0},d.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);var a;if(void 0===t)for(t=0,a=0;a<e.length;++a)t+=e[a].length;var i=d.allocUnsafe(t),n=0;for(a=0;a<e.length;++a){var o=e[a];if(I(o,Uint8Array))n+o.length>i.length?d.from(o).copy(i,n):Uint8Array.prototype.set.call(i,o,n);else{if(!d.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,n)}n+=o.length}return i},d.byteLength=h,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},d.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},d.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},d.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?Y(this,0,e):_.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(e){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===d.compare(this,e)},d.prototype.inspect=function(){var e="",a=t.h2;return e=this.toString("hex",0,a).replace(/(.{2})/g,"$1 ").trim(),this.length>a&&(e+=" ... "),"<Buffer "+e+">"},o&&(d.prototype[o]=d.prototype.inspect),d.prototype.compare=function(e,t,a,i,n){if(I(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===a&&(a=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||a>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=a)return 0;if(i>=n)return-1;if(t>=a)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),r=(a>>>=0)-(t>>>=0),s=Math.min(o,r),l=this.slice(i,n),c=e.slice(t,a),p=0;p<s;++p)if(l[p]!==c[p]){o=l[p],r=c[p];break}return o<r?-1:r<o?1:0},d.prototype.includes=function(e,t,a){return-1!==this.indexOf(e,t,a)},d.prototype.indexOf=function(e,t,a){return g(this,e,t,a,!0)},d.prototype.lastIndexOf=function(e,t,a){return g(this,e,t,a,!1)},d.prototype.write=function(e,t,a,i){if(void 0===t)i="utf8",a=this.length,t=0;else if(void 0===a&&"string"==typeof t)i=t,a=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(a)?(a>>>=0,void 0===i&&(i="utf8")):(i=a,a=void 0)}var n=this.length-t;if((void 0===a||a>n)&&(a=n),e.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return x(this,e,t,a);case"utf8":case"utf-8":return M(this,e,t,a);case"ascii":case"latin1":case"binary":return b(this,e,t,a);case"base64":return L(this,e,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,a);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function T(e,t,a){var i="";a=Math.min(e.length,a);for(var n=t;n<a;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,a){var i="";a=Math.min(e.length,a);for(var n=t;n<a;++n)i+=String.fromCharCode(e[n]);return i}function j(e,t,a){var i=e.length;(!t||t<0)&&(t=0),(!a||a<0||a>i)&&(a=i);for(var n="",o=t;o<a;++o)n+=N[e[o]];return n}function H(e,t,a){for(var i=e.slice(t,a),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function A(e,t,a){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>a)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,a,i,n,o){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw new RangeError('"value" argument is out of bounds');if(a+i>e.length)throw new RangeError("Index out of range")}function E(e,t,a,i,n,o){if(a+i>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function P(e,t,a,i,o){return t=+t,a>>>=0,o||E(e,0,a,4),n.write(e,t,a,i,23,4),a+4}function C(e,t,a,i,o){return t=+t,a>>>=0,o||E(e,0,a,8),n.write(e,t,a,i,52,8),a+8}d.prototype.slice=function(e,t){var a=this.length;(e=~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),(t=void 0===t?a:~~t)<0?(t+=a)<0&&(t=0):t>a&&(t=a),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,d.prototype),i},d.prototype.readUintLE=d.prototype.readUIntLE=function(e,t,a){e>>>=0,t>>>=0,a||A(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},d.prototype.readUintBE=d.prototype.readUIntBE=function(e,t,a){e>>>=0,t>>>=0,a||A(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},d.prototype.readUint8=d.prototype.readUInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),this[e]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,a){e>>>=0,t>>>=0,a||A(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},d.prototype.readIntBE=function(e,t,a){e>>>=0,t>>>=0,a||A(e,t,this.length);for(var i=t,n=1,o=this[e+--i];i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},d.prototype.readInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){e>>>=0,t||A(e,2,this.length);var a=this[e]|this[e+1]<<8;return 32768&a?4294901760|a:a},d.prototype.readInt16BE=function(e,t){e>>>=0,t||A(e,2,this.length);var a=this[e+1]|this[e]<<8;return 32768&a?4294901760|a:a},d.prototype.readInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return e>>>=0,t||A(e,4,this.length),n.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return e>>>=0,t||A(e,4,this.length),n.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return e>>>=0,t||A(e,8,this.length),n.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return e>>>=0,t||A(e,8,this.length),n.read(this,e,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(e,t,a,i){e=+e,t>>>=0,a>>>=0,i||O(this,e,t,a,Math.pow(2,8*a)-1,0);var n=1,o=0;for(this[t]=255&e;++o<a&&(n*=256);)this[t+o]=e/n&255;return t+a},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(e,t,a,i){e=+e,t>>>=0,a>>>=0,i||O(this,e,t,a,Math.pow(2,8*a)-1,0);var n=a-1,o=1;for(this[t+n]=255&e;--n>=0&&(o*=256);)this[t+n]=e/o&255;return t+a},d.prototype.writeUint8=d.prototype.writeUInt8=function(e,t,a){return e=+e,t>>>=0,a||O(this,e,t,1,255,0),this[t]=255&e,t+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(e,t,a){return e=+e,t>>>=0,a||O(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(e,t,a){return e=+e,t>>>=0,a||O(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(e,t,a){return e=+e,t>>>=0,a||O(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(e,t,a){return e=+e,t>>>=0,a||O(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeIntLE=function(e,t,a,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*a-1);O(this,e,t,a,n-1,-n)}var o=0,r=1,s=0;for(this[t]=255&e;++o<a&&(r*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/r>>0)-s&255;return t+a},d.prototype.writeIntBE=function(e,t,a,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*a-1);O(this,e,t,a,n-1,-n)}var o=a-1,r=1,s=0;for(this[t+o]=255&e;--o>=0&&(r*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/r>>0)-s&255;return t+a},d.prototype.writeInt8=function(e,t,a){return e=+e,t>>>=0,a||O(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,a){return e=+e,t>>>=0,a||O(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeInt16BE=function(e,t,a){return e=+e,t>>>=0,a||O(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeInt32LE=function(e,t,a){return e=+e,t>>>=0,a||O(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},d.prototype.writeInt32BE=function(e,t,a){return e=+e,t>>>=0,a||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeFloatLE=function(e,t,a){return P(this,e,t,!0,a)},d.prototype.writeFloatBE=function(e,t,a){return P(this,e,t,!1,a)},d.prototype.writeDoubleLE=function(e,t,a){return C(this,e,t,!0,a)},d.prototype.writeDoubleBE=function(e,t,a){return C(this,e,t,!1,a)},d.prototype.copy=function(e,t,a,i){if(!d.isBuffer(e))throw new TypeError("argument should be a Buffer");if(a||(a=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<a&&(i=a),i===a)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-a&&(i=e.length-t+a);var n=i-a;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,a,i):Uint8Array.prototype.set.call(e,this.subarray(a,i),t),n},d.prototype.fill=function(e,t,a,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,a=this.length):"string"==typeof a&&(i=a,a=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!d.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){var n=e.charCodeAt(0);("utf8"===i&&n<128||"latin1"===i)&&(e=n)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<a)throw new RangeError("Out of range index");if(a<=t)return this;var o;if(t>>>=0,a=void 0===a?this.length:a>>>0,e||(e=0),"number"==typeof e)for(o=t;o<a;++o)this[o]=e;else{var r=d.isBuffer(e)?e:d.from(e,i),s=r.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<a-t;++o)this[o+t]=r[o%s]}return this};var W=/[^+/0-9A-Za-z-_]/g;function R(e,t){var a;t=t||1/0;for(var i=e.length,n=null,o=[],r=0;r<i;++r){if((a=e.charCodeAt(r))>55295&&a<57344){if(!n){if(a>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(r+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=a;continue}if(a<56320){(t-=3)>-1&&o.push(239,191,189),n=a;continue}a=65536+(n-55296<<10|a-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,a<128){if((t-=1)<0)break;o.push(a)}else if(a<2048){if((t-=2)<0)break;o.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;o.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return o}f