1/*! For license information please see LICENSES */ 2(window.webpackJsonp=window.webpackJsonp||[]).push([[105],{1:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var content=function(e,t){var content=e[1]||"",n=e[3];if(!n)return content;if(t&&"function"==typeof btoa){var r=(l=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(data," */")),o=n.sources.map((function(source){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(source," */")}));return[content].concat(o).concat([r]).join("\n")}var l,c,data;return[content].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(content,"}"):content})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(o[l]=!0)}for(var c=0;c<e.length;c++){var h=[].concat(e[c]);r&&o[h[0]]||(n&&(h[2]?h[2]="".concat(n," and ").concat(h[2]):h[2]=n),t.push(h))}},t}},100:function(e,t,n){"use strict";e.exports=function(e){return"function"==typeof e}},101:function(e,t,n){var r=n(2967),o=n(2970);e.exports=function(object,e){var t=o(object,e);return r(t)?t:void 0}},102:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return h}));var r=n(33);function o(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function l(line,e){var t=line,n=t.length;if(n<=150)return t;e>n&&(e=n);var r=Math.max(e-60,0);r<5&&(r=0);var o=Math.min(r+140,n);return o>n-5&&(o=n),o===n&&(r=Math.max(o-140,0)),t=t.slice(r,o),r>0&&(t="'{snip} "+t),o<n&&(t+=" {snip}"),t}function c(input,e){if(!Array.isArray(input))return"";for(var output=[],i=0;i<input.length;i++){var t=input[i];try{output.push(String(t))}catch(e){output.push("[value cannot be serialized]")}}return output.join(e)}function h(e,pattern){return!!Object(r.k)(e)&&(Object(r.j)(pattern)?pattern.test(e):"string"==typeof pattern&&-1!==e.indexOf(pattern))}},112:function(e,t,n){"use strict";var r=n(23),map={function:!0,object:!0};e.exports=function(e){return r(e)&&map[typeof e]||!1}},113:function(e,t,n){"use strict";var r=n(2250),o=n(2858),l=n(90),c=n(2862),h=n(2863);
2(e.exports=function(e,t){var n,o,d,f,desc;return arguments.length<2||"string"!=typeof e?(f=t,t=e,e=null):f=arguments[2],r(e)?(n=h.call(e,"c"),o=h.call(e,"e"),d=h.call(e,"w")):(n=d=!0,o=!1),desc={value:t,configurable:n,enumerable:o,writable:d},f?l(c(f),desc):desc}).gs=function(e,t,n){var d,f,m,desc;return"string"!=typeof e?(m=n,n=t,t=e,e=null):m=arguments[3],r(t)?o(t)?r(n)?o(n)||(m=n,n=void 0):n=void 0:(m=t,t=n=void 0):t=void 0,r(e)?(d=h.call(e,"c"),f=h.call(e,"e")):(d=!0,f=!1),desc={get:t,set:n,configurable:d,enumerable:f},m?l(c(m),desc):desc}},115:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},118:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(75),o=n(60),l=n(66);class c extends o.Emitter{constructor(e){super(),this.writable=!1,Object(l.a)(this,e),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,desc){const t=new Error(e);return t.type="TransportError",t.description=desc,super.emit("error",t),this}open(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emit("open")}onData(data){const e=Object(r.a)(data,this.socket.binaryType);this.onPacket(e)}onPacket(e){super.emit("packet",e)}onClose(){this.readyState="closed",super.emit("close")}}},119:function(e,t){t.encode=function(e){var t="";for(var i in e)e.hasOwnProperty(i)&&(t.length&&(t+="&"),t+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return t},t.decode=function(e){for(var t={},n=e.split("&"),i=0,r=n.length;i<r;i++){var o=n[i].split("=");
2t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}},131:function(e,t,n){var r=n(82).Symbol;e.exports=r},132:function(e,t,n){var r=n(131),o=n(2952),l=n(2953),c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?o(e):l(e)}},135:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(43),o=Object(r.f)(),l="Sentry Logger ",c=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(r.c)((function(){o.console.log(l+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(r.c)((function(){o.console.warn(l+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(r.c)((function(){o.console.error(l+"[Error]: "+e.join(" "))}))},e}();o.__SENTRY__=o.__SENTRY__||{};var h=o.__SENTRY__.logger||(o.__SENTRY__.logger=new c)},136:function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,b=e.indexOf("["),o=e.indexOf("]");-1!=b&&-1!=o&&(e=e.substring(0,b)+e.substring(b,o).replace(/:/g,";")+e.substring(o,e.length));for(var l,data,c=n.exec(e||""),h={},i=14;i--;)h[r[i]]=c[i]||"";return-1!=b&&-1!=o&&(h.source=t,h.host=h.host.substring(1,h.host.length-1).replace(/;/g,":"),h.authority=h.authority.replace("[","").replace("]","").replace(/;/g,":"),h.ipv6uri=!0),h.pathNames=function(e,path){var t=path.replace(/\/{2,9}/g,"/").split("/");"/"!=path.substr(0,1)&&0!==path.length||t.splice(0,1);"/"==path.substr(path.length-1,1)&&t.splice(t.length-1,1);return t}(0,h.path),h.queryKey=(l=h.query,data={},l.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(data[t]=n)})),data),h}},1561:function(e,t,n){"use strict";var r,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),map={},l=0,i=0;function c(e){var t="";do{t=o[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function h(){var e=c(+new Date);return e!==r?(l=0,r=e):e+"."+c(l++)}for(;i<64;i++)map[o[i]]=i;h.encode=c,h.decode=function(e){var t=0;for(i=0;i<e.length;i++)t=64*t+map[e.charAt(i)];return t},e.exports=h},1626:function(e,t,n){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",s="week",u="month",o="quarter",a="year",l=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,c=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},d={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+h(r,2,"0")+":"+h(i,2,"0")},m:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,u),i=t-r<0,s=e.clone().add(n+(i?-1:1),u);return Number(-(n+(t-r)/(i?r-s:s-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(l){return{M:u,y:a,w:s,d:i,D:"date",h:r,m:n,s:t,ms:e,Q:o}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m="en",A={};A[m]=f;var y=function(e){return e instanceof w},v=function(e,t,n){var r;if(!e)return m;if("string"==typeof e)A[e]&&(r=e),t&&(A[e]=t,r=e);else{var i=e.name;A[i]=e,r=i}return!n&&r&&(m=r),r||!n&&m},g=function(e,t){if(y(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},_=d;_.l=v,_.i=y,_.w=function(e,t){return g(e,{locale:t.$L,utc:t.$u,$offset:t.$offset})};var w=function(){function h(e){this.$L=this.$L||v(e.locale,null,!0),this.parse(e)}var d=h.prototype;return d.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(l);if(r)return n?new Date(Date.UTC(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}return new Date(t)}(e),this.init()},d.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},d.$utils=function(){return _},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(e,t){var n=g(e);return this.startOf(t)<=n&&n<=this.endOf(t)},d.isAfter=function(e,t){return g(e)<this.startOf(t)},d.isBefore=function(e,t){return this.endOf(t)<g(e)},d.$g=function(e,t,n){return _.u(e)?this[t]:this.set(n,e)},d.year=function(e){return this.$g(e,"$y",a)},d.month=function(e){return this.$g(e,"$M",u)},d.day=function(e){return this.$g(e,"$W",i)},d.date=function(e){return this.$g(e,"$D","date")},d.hour=function(e){return this.$g(e,"$H",r)},d.minute=function(e){return this.$g(e,"$m",n)},d.second=function(e){return this.$g(e,"$s",t)},d.millisecond=function(t){return this.$g(t,"$ms",e)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(e,o){var l=this,c=!!_.u(o)||o,h=_.p(e),d=function(e,t){var n=_.w(l.$u?Date.UTC(l.$y,t,e):new Date(l.$y,t,e),l);return c?n:n.endOf(i)},f=function(e,t){return _.w(l.toDate()[e].apply(l.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},m=this.$W,A=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case a:return c?d(1,0):d(31,11);case u:return c?d(1,A):d(0,A+1);case s:var g=this.$locale().weekStart||0,w=(m<g?m+7:m)-g;return d(c?y-w:y+(6-w),A);case i:case"date":return f(v+"Hours",0);case r:return f(v+"Minutes",1);case n:return f(v+"Seconds",2);case t:return f(v+"Milliseconds",3);default:return this.clone()}},d.endOf=function(e){return this.startOf(e,!1)},d.$set=function(s,o){var l,c=_.p(s),h="set"+(this.$u?"UTC":""),d=(l={},l.day=h+"Date",l.date=h+"Date",l[u]=h+"Month",l[a]=h+"FullYear",l[r]=h+"Hours",l[n]=h+"Minutes",l[t]=h+"Seconds",l[e]=h+"Milliseconds",l)[c],f=c===i?this.$D+(o-this.$W):o;if(c===u||c===a){var m=this.clone().set("date",1);
2m.$d[d](f),m.init(),this.$d=m.set("date",Math.min(this.$D,m.daysInMonth())).toDate()}else d&&this.$d[d](f);return this.init(),this},d.set=function(e,t){return this.clone().$set(e,t)},d.get=function(e){return this[_.p(e)]()},d.add=function(e,o){var l,c=this;e=Number(e);var h=_.p(o),d=function(t){var n=g(c);return _.w(n.date(n.date()+Math.round(t*e)),c)};if(h===u)return this.set(u,this.$M+e);if(h===a)return this.set(a,this.$y+e);if(h===i)return d(1);if(h===s)return d(7);var f=(l={},l[n]=6e4,l[r]=36e5,l[t]=1e3,l)[h]||1,m=this.$d.getTime()+e*f;return _.w(m,this)},d.subtract=function(e,t){return this.add(-1*e,t)},d.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=_.z(this),i=this.$locale(),s=this.$H,u=this.$m,o=this.$M,a=i.weekdays,l=i.months,h=function(e,r,i,s){return e&&(e[r]||e(t,n))||i[r].substr(0,s)},d=function(e){return _.s(s%12||12,e,"0")},f=i.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:_.s(o+1,2,"0"),MMM:h(i.monthsShort,o,l,3),MMMM:l[o]||l(this,n),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:h(i.weekdaysMin,this.$W,a,2),ddd:h(i.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(s),HH:_.s(s,2,"0"),h:d(1),hh:d(2),a:f(s,u,!0),A:f(s,u,!1),m:String(u),mm:_.s(u,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:r};return n.replace(c,(function(e,t){return t||m[e]||r.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(e,l,c){var h,d=_.p(l),f=g(e),m=6e4*(f.utcOffset()-this.utcOffset()),A=this-f,y=_.m(this,f);return y=(h={},h[a]=y/12,h[u]=y,h[o]=y/3,h[s]=(A-m)/6048e5,h.day=(A-m)/864e5,h[r]=A/36e5,h[n]=A/6e4,h[t]=A/1e3,h)[d]||A,c?y:_.a(y)},d.daysInMonth=function(){return this.endOf(u).$D},d.$locale=function(){return A[this.$L]},d.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=v(e,t,!0);return r&&(n.$L=r),n},d.clone=function(){return _.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},h}();return g.prototype=w.prototype,g.extend=function(e,t){return e(t,w,g),g},g.locale=v,g.isDayjs=y,g.unix=function(e){return g(1e3*e)},g.en=A[m],g.Ls=A,g}()},1627:function(e,t,n){"use strict";var r,o,l=n(2251),c=n(23),h=n(32),d=n(26),f=n(41),m=n(166),A=Array.prototype.slice,y=Function.prototype.apply;r=function(e,t,n){t=l(t),y.call(e,this,t.concat((function(e,t){c(e)?n.reject(e):n.resolve(arguments.length>2?A.call(arguments,1):t)})))},o=function(e,t,n,o){var l;if(o=m(o,t),f(o))return o.failed?o:(l=d(),o.done((function(t){if(e.returnsPromise)y.call(e,n,t);else try{r.call(n,e,t,l)}catch(e){l.reject(e)}}),l.reject),l.promise);if(e.returnsPromise)return y.call(e,n,o);l=d();try{r.call(n,e,o,l)}catch(e){throw l.reject(e),e}return l.promise},e.exports=t=function(e){return o(h(this),null,e,A.call(arguments,1))}
2,Object.defineProperty(t,"_base",{configurable:!0,enumerable:!1,writable:!0,value:o})},1628:function(e,t,n){"use strict";e.exports=n(2868)()?Array.from:n(2869)},1629:function(e,t,n){"use strict";var r=Object.prototype.toString,o=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(e){return"function"==typeof e&&o(r.call(e))}},1630:function(e,t,n){"use strict";var r=n(2879),o=Math.abs,l=Math.floor;e.exports=function(e){return isNaN(e)?0:0!==(e=Number(e))&&isFinite(e)?r(e)*l(o(e)):e}},1631:function(e,t,n){"use strict";var r=n(23),o=n(32),l=n(26),c=l.reject;e.exports=function(e,t){l.extend(e,(function(t){var n;return r(t)&&o(t),this.pending||(this.pending=[]),n=l(),this.pending.push(e,[arguments,n.resolve,n.reject]),n.promise}),(function(e,n,r){var o;if(this.failed)r(this.value);else{try{o=t.apply(this.value,e)}catch(e){return void r(e)}n(o)}}),(function(e){if(r(e)&&o(e),this.failed)return this;try{return t.apply(this.value,arguments)}catch(e){return c(e)}}))}},1633:function(e,t,n){var r=n(2951),o=n(115),l=Object.prototype,c=l.hasOwnProperty,h=l.propertyIsEnumerable,d=r(function(){return arguments}())?r:function(e){return o(e)&&c.call(e,"callee")&&!h.call(e,"callee")};e.exports=d},1634:function(e,t,n){var r=n(101)(n(82),"Map");e.exports=r},1635:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1636:function(e,t,n){var r=n(2971),o=n(2978),l=n(2980),c=n(2981),h=n(2982);function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=r,d.prototype.delete=o,d.prototype.get=l,d.prototype.has=c,d.prototype.set=h,e.exports=d},1637:function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},1638:function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},1639:function(e,t,n){var r=n(83),o=n(1640),l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;e.exports=function(e,object){if(r(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!o(e))||(c.test(e)||!l.test(e)||null!=object&&e in Object(object))}},164:function(e,t,n){"use strict";(function(t,n){var r=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},o=function(e){var t,n,o=document.createTextNode(""),i=0;return new e((function(){var e;if(t)n&&(t=n.concat(t));else{if(!n)return;t=n}if(n=t,t=null,"function"==typeof n)return e=n,n=null,void e();for(o.data=i=++i%2;n;)e=n.shift(),n.length||(n=null),e()})).observe(o,{characterData:!0}),function(e){r(e),t?"function"==typeof t?t=[t,e]:t.push(e):(t=e,o.data=i=++i%2)}};e.exports=function(){if("object"==typeof t&&t&&"function"==typeof t.nextTick)return t.nextTick;if("function"==typeof queueMicrotask)return function(e){queueMicrotask(r(e))};if("object"==typeof document&&document){if("function"==typeof MutationObserver)return o(MutationObserver);if("function"==typeof WebKitMutationObserver)return o(WebKitMutationObserver)}return"function"==typeof n?function(e){n(r(e))}:"function"==typeof setTimeout||"object"==typeof setTimeout?function(e){setTimeout(r(e),0)}:null}()}).call(this,n(45),n(1601).setImmediate)},1640:function(e,t,n){var r=n(132),o=n(115);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},1641:function(e,t){e.exports=function(e){return e}},1642:function(e,t,n){"use strict";const r=n(3048);class o extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,({message:e}=e)):(this.originalError=new Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}}const l=(input,e)=>new Promise((t,n)=>{e={onFailedAttempt:()=>{},retries:10,...e};const l=r.operation(e);l.attempt(async r=>{try{t(await input(r))}catch(t){if(!(t instanceof Error))return void n(new TypeError(`Non-error was thrown: "${t}". You should only throw errors.`));if(t instanceof o)l.stop(),n(t.originalError);else if(t instanceof TypeError)l.stop(),n(t);else{((e,t,n)=>{const r=n.retries-(t-1);e.attemptNumber=t,e.retriesLeft=r})(t,r,e);try{await e.onFailedAttempt(t)}catch(e){return void n(e)}l.retry(t)||n(l.mainError())}}})});e.exports=l,e.exports.default=l,e.exports.AbortError=o},165:function(e,t,n){"use strict";e.exports=n(2871)()?globalThis:n(2872)},1658:function(e,t,n){"use strict";n.r(t),n.d(t,"v1",(function(){return w})),n.d(t,"v3",(function(){return P})),n.d(t,"v4",(function(){return D})),n.d(t,"v5",(function(){return F})),n.d(t,"NIL",(function(){return R})),n.d(t,"version",(function(){return N})),n.d(t,"validate",(function(){return h})),n.d(t,"stringify",(function(){return y}
2)),n.d(t,"parse",(function(){return x}));var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function l(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var c=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var h=function(e){return"string"==typeof e&&c.test(e)},d=[],f=0;f<256;++f)d.push((f+256).toString(16).substr(1));var m,A,y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!h(n))throw TypeError("Stringified UUID is invalid");return n},v=0,_=0;var w=function(e,t,n){var i=t&&n||0,b=t||new Array(16),r=(e=e||{}).node||m,o=void 0!==e.clockseq?e.clockseq:A;if(null==r||null==o){var c=e.random||(e.rng||l)();null==r&&(r=m=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==o&&(o=A=16383&(c[6]<<8|c[7]))}var h=void 0!==e.msecs?e.msecs:Date.now(),d=void 0!==e.nsecs?e.nsecs:_+1,dt=h-v+(d-_)/1e4;if(dt<0&&void 0===e.clockseq&&(o=o+1&16383),(dt<0||h>v)&&void 0===e.nsecs&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=h,_=d,A=o;var f=(1e4*(268435455&(h+=122192928e5))+d)%4294967296;b[i++]=f>>>24&255,b[i++]=f>>>16&255,b[i++]=f>>>8&255,b[i++]=255&f;var w=h/4294967296*1e4&268435455;b[i++]=w>>>8&255,b[i++]=255&w,b[i++]=w>>>24&15|16,b[i++]=w>>>16&255,b[i++]=o>>>8|128,b[i++]=255&o;for(var x=0;x<6;++x)b[i+x]=r[x];return t||y(b)};var x=function(e){if(!h(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};var E=function(e,t,n){function r(e,r,o,l){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],i=0;i<e.length;++i)t.push(e.charCodeAt(i));return t}(e)),"string"==typeof r&&(r=x(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),(c=n(c))[6]=15&c[6]|t,c[8]=63&c[8]|128,o){l=l||0;for(var i=0;i<16;++i)o[l+i]=c[i];return o}return y(c)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r};function C(e){return 14+(e+64>>>9<<4)+1}function S(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function T(q,a,b,e,s,t){return S((n=S(S(a,q),S(e,t)))<<(r=s)|n>>>32-r,b);var n,r}function B(a,b,e,t,n,s,r){return T(b&e|~b&t,a,b,n,s,r)}function k(a,b,e,t,n,s,r){return T(b&t|e&~t,a,b,n,s,r)}function I(a,b,e,t,n,s,r){return T(b^e^t,a,b,n,s,r)}function M(a,b,e,t,n,s,r){return T(e^(b|~t),a,b,n,s,r)}var P=E("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var i=0;i<t.length;++i)e[i]=t.charCodeAt(i)}return function(input){for(var output=[],e=32*input.length,i=0;i<e;i+=8){var t=input[i>>5]>>>i%32&255,n=parseInt("0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t),16);output.push(n)}return output}(function(e,t){e[t>>5]|=128<<t%32,e[C(t)-1]=t;for(var a=1732584193,b=-271733879,n=-1732584194,r=271733878,i=0;i<e.length;i+=16){var o=a,l=b,c=n,h=r;a=B(a,b,n,r,e[i],7,-680876936),r=B(r,a,b,n,e[i+1],12,-389564586),n=B(n,r,a,b,e[i+2],17,606105819),b=B(b,n,r,a,e[i+3],22,-1044525330),a=B(a,b,n,r,e[i+4],7,-176418897),r=B(r,a,b,n,e[i+5],12,1200080426),n=B(n,r,a,b,e[i+6],17,-1473231341),b=B(b,n,r,a,e[i+7],22,-45705983),a=B(a,b,n,r,e[i+8],7,1770035416),r=B(r,a,b,n,e[i+9],12,-1958414417),n=B(n,r,a,b,e[i+10],17,-42063),b=B(b,n,r,a,e[i+11],22,-1990404162),a=B(a,b,n,r,e[i+12],7,1804603682),r=B(r,a,b,n,e[i+13],12,-40341101),n=B(n,r,a,b,e[i+14],17,-1502002290),b=B(b,n,r,a,e[i+15],22,1236535329),a=k(a,b,n,r,e[i+1],5,-165796510),r=k(r,a,b,n,e[i+6],9,-1069501632),n=k(n,r,a,b,e[i+11],14,643717713),b=k(b,n,r,a,e[i],20,-373897302),a=k(a,b,n,r,e[i+5],5,-701558691),r=k(r,a,b,n,e[i+10],9,38016083),n=k(n,r,a,b,e[i+15],14,-660478335),b=k(b,n,r,a,e[i+4],20,-405537848),a=k(a,b,n,r,e[i+9],5,568446438),r=k(r,a,b,n,e[i+14],9,-1019803690),n=k(n,r,a,b,e[i+3],14,-187363961),b=k(b,n,r,a,e[i+8],20,1163531501),a=k(a,b,n,r,e[i+13],5,-1444681467),r
vendor: 2,881 bytes, line 2
2=k(r,a,b,n,e[i+2],9,-51403784),n=k(n,r,a,b,e[i+7],14,1735328473),b=k(b,n,r,a,e[i+12],20,-1926607734),a=I(a,b,n,r,e[i+5],4,-378558),r=I(r,a,b,n,e[i+8],11,-2022574463),n=I(n,r,a,b,e[i+11],16,1839030562),b=I(b,n,r,a,e[i+14],23,-35309556),a=I(a,b,n,r,e[i+1],4,-1530992060),r=I(r,a,b,n,e[i+4],11,1272893353),n=I(n,r,a,b,e[i+7],16,-155497632),b=I(b,n,r,a,e[i+10],23,-1094730640),a=I(a,b,n,r,e[i+13],4,681279174),r=I(r,a,b,n,e[i],11,-358537222),n=I(n,r,a,b,e[i+3],16,-722521979),b=I(b,n,r,a,e[i+6],23,76029189),a=I(a,b,n,r,e[i+9],4,-640364487),r=I(r,a,b,n,e[i+12],11,-421815835),n=I(n,r,a,b,e[i+15],16,530742520),b=I(b,n,r,a,e[i+2],23,-995338651),a=M(a,b,n,r,e[i],6,-198630844),r=M(r,a,b,n,e[i+7],10,1126891415),n=M(n,r,a,b,e[i+14],15,-1416354905),b=M(b,n,r,a,e[i+5],21,-57434055),a=M(a,b,n,r,e[i+12],6,1700485571),r=M(r,a,b,n,e[i+3],10,-1894986606),n=M(n,r,a,b,e[i+10],15,-1051523),b=M(b,n,r,a,e[i+1],21,-2054922799),a=M(a,b,n,r,e[i+8],6,1873313359),r=M(r,a,b,n,e[i+15],10,-30611744),n=M(n,r,a,b,e[i+6],15,-1560198380),b=M(b,n,r,a,e[i+13],21,1309151649),a=M(a,b,n,r,e[i+4],6,-145523070),r=M(r,a,b,n,e[i+11],10,-1120210379),n=M(n,r,a,b,e[i+2],15,718787259),b=M(b,n,r,a,e[i+9],21,-343485551),a=S(a,o),b=S(b,l),n=S(n,c),r=S(r,h)}return[a,b,n,r]}(function(input){if(0===input.length)return[];for(var e=8*input.length,output=new Uint32Array(C(e)),i=0;i<e;i+=8)output[i>>5]|=(255&input[i/8])<<i%32;return output}(e),8*e.length))}));var D=function(e,t,n){var r=(e=e||{}).random||(e.rng||l)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return y(r)};function U(s,e,t,n){switch(s){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function O(e,t){return e<<t|e>>>32-t}var F=E("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,l=Math.ceil(o/16),c=new Array(l),h=0;h<l;++h){for(var d=new Uint32Array(16),f=0;f<16;++f)d[f]=e[64*h+4*f]<<24|e[64*h+4*f+1]<<16|e[64*h+4*f+2]<<8|e[64*h+4*f+3];c[h]=d}c[l-1][14]=8*(e.length-1)/Math.pow(2,32),c[l-1][14]=Math.floor(c[l-1][14]),c[l-1][15]=8*(e.length-1)&4294967295;for(var m=0;m<l;++m){for(var A=new Uint32Array(80),y=0;y<16;++y)A[y]=c[m][y];for(var v=16;v<80;++v)A[v]=O(A[v-3]^A[v-8]^A[v-14]^A[v-16],1);for(var a=n[0],b=n[1],_=n[2],w=n[3],x=n[4],E=0;E<80;++E){var s=Math.floor(E/20),C=O(a,5)+U(s,b,_,w)+x+t[s]+A[E]>>>0;x=w,w=_,_=O(b,30)>>>0,b=a,a=C}n[0]=n[0]+a>>>0,n[1]=n[1]+b>>>0,n[2]=n[2]+_>>>0,n[3]=n[3]+w>>>0,n[4]=n[4]+x>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>
2>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),R="00000000-0000-0000-0000-000000000000";var N=function(e){if(!h(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},1659:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"b",(function(){return m}));var r=n(135),o=n(43);function l(){if(!("fetch"in Object(o.f)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function c(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function h(){if(!l())return!1;var e=Object(o.f)();if(c(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var h=n.createElement("iframe");h.hidden=!0,n.head.appendChild(h),h.contentWindow&&h.contentWindow.fetch&&(t=c(h.contentWindow.fetch)),n.head.removeChild(h)}catch(e){r.a.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}function d(){return"ReportingObserver"in Object(o.f)()}function f(){if(!l())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}function m(){var e=Object(o.f)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}},166:function(e,t,n){"use strict";var r=n(2883),o=n(23),l=n(26),c=n(41),h=n(91),d=Array.prototype.push,f=Array.prototype.slice;e.exports=function(e,t){var i,n;for(o(t)&&e.length!==t?(e=f.call(e,0,t)).length<t&&d.apply(e,new Array(t-e.length)):t=e.length,i=0;i<t;++i)if(n=h(e[i]),c(n)){if(!n.resolved)return t>1?l.apply(null,e):n(r);if(n.failed)return n;e[i]=n.value}return e}},1660:function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],i=0;i<e.length;i+=1)if(n&&navigator.userAgent.indexOf(e[i])>=0)return 1;return 0}();var o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function l(e){return e&&"[object Function]"==={}.toString.call(e)}function c(element,e){if(1!==element.nodeType)return[];var t=element.ownerDocument.defaultView.getComputedStyle(element,null);return e?t[e]:t}function h(element){return"HTML"===element.nodeName?element:element.parentNode||element.host}function d(element){if(!element)return document.body;switch(element.nodeName){case"HTML":case"BODY":return element.ownerDocument.body;case"#document":return element.body}var e=c(element),t=e.overflow,n=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(t+r+n)?element:d(h(element))}function f(e){return e&&e.referenceNode?e.referenceNode:e}var m=n&&!(!window.MSInputMethodContext||!document.documentMode),A=n&&/MSIE 10/.test(navigator.userAgent);function y(e){return 11===e?m:10===e?A:m||A}function v(element){if(!element)return document.documentElement;for(var e=y(10)?document.body:null,t=element.offsetParent||null;t===e&&element.nextElementSibling;)t=(element=element.nextElementSibling).offsetParent;var n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===c(t,"position")?v(t):t:element?element.ownerDocument.documentElement:document.documentElement}function _(e){return null!==e.parentNode?_(e.parentNode):e}function w(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,l=document.createRange();l.setStart(r,0),l.setEnd(o,0);var element,c,h=l.commonAncestorContainer;if(e!==h&&t!==h||r.contains(o))return"BODY"===(c=(element=h).nodeName)||"HTML"!==c&&v(element.firstElementChild)!==element?v(h):h;var d=_(e);return d.host?w(d.host,t):w(e,_(t).host)}function x(element){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===e?"scrollTop":"scrollLeft",n=element.nodeName;if("BODY"===n||"HTML"===n){var html=element.ownerDocument.documentElement,r=element.ownerDocument.scrollingElement||html;return r[t]}return element[t]}function E(rect,element){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],t=x(element,"top"),n=x(element,"left"),r=e?-1:1;return rect.top+=t*r,rect.bottom+=t*r,rect.left+=n*r,rect.right+=n*r,rect}function C(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function S(e,body,html,t){return Math.max(body["offset"+e],body["scroll"+e],html["client"+e],html["offset"+e],html["scroll"+e],y(10)?parseInt(html["offset"+e])+parseInt(t["margin"+("Height"===e?"Top":"Left")])+parseInt(t["margin"+("Height"===e?"Bottom":"Right")]):0)}function T(e){var body=e.body,html=e.documentElement,t=y(10)&&getComputedStyle(html);return{height:S("Height",body,html,t),width:S("Width",body,html,t)}}var B=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),I=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},M=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e};function P(e){return M({},e,{right:e.left+e.width,bottom:e.top+e.height})}function D(element){var rect={};try{if(y(10)){rect=element.getBoundingClientRect();var e=x(element,"top"),t=x(element,"left");rect.top+=e,rect.left+=t,rect.bottom+=e,rect.right+=t}else rect=element.getBoundingClientRect()}catch(e){}var n={left:rect.left,top:rect.top,width:rect.right-rect.left,height:rect.bottom-rect.top},r="HTML"===element.nodeName?T(element.ownerDocument):{},o=r.width||element.clientWidth||n.width,l=r.height||element.clientHeight||n.height,h=element.offsetWidth-o,d=element.offsetHeight-l;if(h||d){var f=c(element);h-=C(f,"x"),d-=C(f,"y"),n.width-=h,n.height-=d}return P(n)}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=y(10),o="HTML"===t.nodeName,l=D(e),h=D(t),f=d(e),m=c(t),A=parseFloat(m.borderTopWidth),v=parseFloat(m.borderLeftWidth);n&&o&&(h.top=Math.max(h.top,0),h.left=Math.max(h.left,0));var _=P({top:l.top-h.top-A,left:l.left-h.left-v,width:l.width,height:l.height});
vendor: 16,085 bytes, line 2
2if(_.marginTop=0,_.marginLeft=0,!r&&o){var w=parseFloat(m.marginTop),x=parseFloat(m.marginLeft);_.top-=A-w,_.bottom-=A-w,_.left-=v-x,_.right-=v-x,_.marginTop=w,_.marginLeft=x}return(r&&!n?t.contains(f):t===f&&"BODY"!==f.nodeName)&&(_=E(_,t)),_}function O(element){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],html=element.ownerDocument.documentElement,t=U(element,html),n=Math.max(html.clientWidth,window.innerWidth||0),r=Math.max(html.clientHeight,window.innerHeight||0),o=e?0:x(html),l=e?0:x(html,"left"),c={top:o-t.top+t.marginTop,left:l-t.left+t.marginLeft,width:n,height:r};return P(c)}function F(element){var e=element.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===c(element,"position"))return!0;var t=h(element);return!!t&&F(t)}function R(element){if(!element||!element.parentElement||y())return document.documentElement;for(var e=element.parentElement;e&&"none"===c(e,"transform");)e=e.parentElement;return e||document.documentElement}function N(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l={top:0,left:0},c=o?R(e):w(e,f(t));if("viewport"===r)l=O(c,o);else{var m=void 0;"scrollParent"===r?"BODY"===(m=d(h(t))).nodeName&&(m=e.ownerDocument.documentElement):m="window"===r?e.ownerDocument.documentElement:r;var A=U(m,c,o);if("HTML"!==m.nodeName||F(c))l=A;else{var y=T(e.ownerDocument),v=y.height,_=y.width;l.top+=A.top-A.marginTop,l.bottom=v+A.top,l.left+=A.left-A.marginLeft,l.right=_+A.left}}var x="number"==typeof(n=n||0);return l.left+=x?n:n.left||0,l.top+=x?n:n.top||0,l.right-=x?n:n.right||0,l.bottom-=x?n:n.bottom||0,l}function L(e){return e.width*e.height}function z(e,t,n,r,o){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var c=N(n,r,l,o),h={top:{width:c.width,height:t.top-c.top},right:{width:c.right-t.right,height:c.height},bottom:{width:c.width,height:c.bottom-t.bottom},left:{width:t.left-c.left,height:c.height}},d=Object.keys(h).map((function(e){return M({key:e},h[e],{area:L(h[e])})})).sort((function(a,b){return b.area-a.area})),f=d.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),m=f.length>0?f[0].key:d[0].key,A=e.split("-")[1];return m+(A?"-"+A:"")}function H(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?R(t):w(t,f(n));return U(n,o,r)}function Q(element){var e=element.ownerDocument.defaultView.getComputedStyle(element),t=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),n=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:element.offsetWidth+n,height:element.offsetHeight+t}}function V(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function j(e,t,n){n=n.split("-")[0];var r=Q(e),o={width:r.width,height:r.height},l=-1!==["right","left"].indexOf(n),c=l?"top":"left",h=l?"left":"top",d=l?"height":"width",f=l?"width":"height";return o[c]=t[c]+t[d]/2-r[d]/2,o[h]=n===h?t[h]-r[f]:t[V(h)],o}function G(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function K(e,data,t){return(void 0===t?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=G(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",t))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&l(t)&&(data.offsets.popper=P(data.offsets.popper),data.offsets.reference=P(data.offsets.reference),data=t(data,e))})),data}function $(){if(!this.state.isDestroyed){var data={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};data.offsets.reference=H(this.state,this.popper,this.reference,this.options.positionFixed),data.placement=z(this.options.placement,data.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),data.originalPlacement=data.placement,data.positionFixed=this.options.positionFixed,data.offsets.popper=j(this.popper,data.offsets.reference,data.placement),data.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",data=K(this.modifiers,data),this.state.isCreated?this.options.onUpdate(data):(this.state.isCreated=!0,this.options.onCreate(data))}}function Y(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function W(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==document.body.style[o])return o}return null}function X(){return this.state.isDestroyed=!0,Y(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[W("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function J(element){var e=element.ownerDocument;return e?e.defaultView:window}function Z(e,t,n,r){n.updateBound=r,J(e).addEventListener("resize",n.updateBound,{passive:!0});var o=d(e);return function e(t,n,r,o){var l="BODY"===t.nodeName,c=l?t.ownerDocument.defaultView:t;c.addEventListener(n,r,{passive:!0}),l||e(d(c.parentNode),n,r,o),o.push(c)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function ee(){this.state.eventsEnabled||(this.state=Z(this.reference,this.options,this.state,this.scheduleUpdate))}function te(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,J(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function ne(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function re(element,e){Object.keys(e).forEach((function(t){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&ne(e[t])&&(n="px"),element.style[t]=e[t]+n}))}var ie=n&&/Firefox/i.test(navigator.userAgent);function se(e,t,n){var r=G(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var l="`"+t+"`",c="`"+n+"`";console.warn(c+" modifier is required by "+l+" modifier in order to work, be sure to include it before "+l+"!")}return o}var ae=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],oe=ae.slice(3);function le(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=oe.indexOf(e),r=oe.slice(n+1).concat(oe.slice(0,n));return t?r.reverse():r}var ce="flip",ue="clockwise",he="counterclockwise";function de(e,t,n,r){var o=[0,0],l=-1!==["right","left"].indexOf(r),c=e.split(/(\+|\-)/).map((function(e){return e.trim()})),h=c.indexOf(G(c,(function(e){return-1!==e.search(/,|\s/)})));c[h]&&-1===c[h].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var d=/\s*,\s*|\s+/,f=-1!==h?[c.slice(0,h).concat([c[h].split(d)[0]]),[c[h].split(d)[1]].concat(c.slice(h+1))]:[c];return(f=f.map((function(e,r){var o=(1===r?!l:l)?"height":"width",c=!1;return e.reduce((function(a,b){return""===a[a.length-1]&&-1!==["+","-"].indexOf(b)?(a[a.length-1]=b,c=!0,a):c?(a[a.length-1]+=b,c=!1,a):a.concat(b)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),l=+o[1],c=o[2];if(!l)return e;if(0===c.indexOf("%")){var element=void 0;switch(c){case"%p":element=n;break;case"%":case"%r":default:element=r}return P(element)[t]/100*l}if("vh"===c||"vw"===c){return("vh"===c?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*l}return l}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){ne(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var pe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(data){var e=data.placement,t=e.split("-")[0],n=e.split("-")[1];if(n){var r=data.offsets,o=r.reference,l=r.popper,c=-1!==["bottom","top"].indexOf(t),h=c?"left":"top",d=c?"width":"height",f={start:I({},h,o[h]),end:I({},h,o[h]+o[d]-l[d])};data.offsets.popper=M({},l,f[n])}return data}},offset:{order:200,enabled:!0,fn:function(data,e){var t=e.offset,n=data.placement,r=data.offsets,o=r.popper,l=r.reference,c=n.split("-")[0],h=void 0;return h=ne(+t)?[+t,0]:de(t,o,l,c),"left"===c?(o.top+=h[0],o.left-=h[1]):"right"===c?(o.top+=h[0],o.left+=h[1]):"top"===c?(o.left+=h[0],o.top-=h[1]):"bottom"===c&&(o.left+=h[0],o.top+=h[1]),data.popper=o,data},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(data,e){var t=e.boundariesElement||v(data.instance.popper);data.instance.reference===t&&(t=v(t));var n=W("transform"),r=data.instance.popper.style,o=r.top,l=r.left,c=r[n];r.top="",r.left="",r[n]="";var h=N(data.instance.popper,data.instance.reference,e.padding,t,data.positionFixed);r.top=o,r.left=l,r[n]=c,e.boundaries=h;var d=e.priority,f=data.offsets.popper,m={primary:function(t){var n=f[t];return f[t]<h[t]&&!e.escapeWithReference&&(n=Math.max(f[t],h[t])),I({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=f[n];return f[t]>h[t]&&!e.escapeWithReference&&(r=Math.min(f[n],h[t]-("right"===t?f.width:f.height))),I({},n,r)}};return d.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";f=M({},f,m[t](e))})),data.offsets.popper=f,data},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(data){var e=data.offsets,t=e.popper,n=e.reference,r=data.placement.split("-")[0],o=Math.floor,l=-1!==["top","bottom"].indexOf(r),c=l?"right":"bottom",h=l?"left":"top",d=l?"width":"height";return t[c]<o(n[h])&&(data.offsets.popper[h]=o(n[h])-t[d]),t[h]>o(n[c])&&(data.offsets.popper[h]=o(n[c])),data}},arrow:{order:500,enabled:!0,fn:function(data,e){var t;if(!se(data.instance.modifiers,"arrow","keepTogether"))return data;var n=e.element;if("string"==typeof n){if(!(n=data.instance.popper.querySelector(n)))return data}else if(!data.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),data;var r=data.placement.split("-")[0],o=data.offsets,l=o.popper,h=o.reference,d=-1!==["left","right"].indexOf(r),f=d?"height":"width",m=d?"Top":"Left",A=m.toLowerCase(),y=d?"left":"top",v=d?"bottom":"right",_=Q(n)[f];h[v]-_<l[A]&&(data.offsets.popper[A]-=l[A]-(h[v]-_)),h[A]+_>l[v]&&(data.offsets.popper[A]+=h[A]+_-l[v]),data.offsets.popper=P(data.offsets.popper);var w=h[A]+h[f]/2-_/2,x=c(data.instance.popper),E=parseFloat(x["margin"+m]),C=parseFloat(x["border"+m+"Width"]),S=w-data.offsets.popper[A]-E-C;return S=Math.max(Math.min(l[f]-_,S),0),data.arrowElement=n,data.offsets.arrow=(I(t={},A,Math.round(S)),I(t,y,""),t),data},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(data,e){if(Y(data.instance.modifiers,"inner"))return data;if(data.flipped&&data.placement===data.originalPlacement)return data;var t=N(data.instance.popper,data.instance.reference,e.padding,e.boundariesElement,data.positionFixed),n=data.placement.split("-")[0],r=V(n),o=data.placement.split("-")[1]||"",l=[];switch(e.behavior){case ce:l=[n,r];break;case ue:l=le(n);break;case he:l=le(n,!0);break;default:l=e.behavior}return l.forEach((function(c,h){if(n!==c||l.length===h+1)return data;n=data.placement.split("-")[0],r=V(n);var d=data.offsets.popper,f=data.offsets.reference,m=Math.floor,A="left"===n&&m(d.right)>m(f.left)||"right"===n&&m(d.left)<m(f.right)||"top"===n&&m(d.bottom)>m(f.top)||"bottom"===n&&m(d.top)<m(f.bottom),y=m(d.left)<m(t.left),v=m(d.right)>m(t.right),_=m(d.top)<m(t.top),w=m(d.bottom)>m(t.bottom),x="left"===n&&y||"right"===n&&v||"top"===n&&_||"bottom"===n&&w,E=-1!==["top","bottom"].indexOf(n),C=!!e.flipVariations&&(E&&"start"===o&&y||E&&"end"===o&&v||!E&&"start"===o&&_||!E&&"end"===o&&w),S=!!e.flipVariationsByContent&&(E&&"start"===o&&v||E&&"end"===o&&y||!E&&"start"===o&&w||!E&&"end"===o&&_),T=C||S;(A||x||T)&&(data.flipped=!0,(A||x)&&(n=l[h+1]),T&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),data.placement=n+(o?"-"+o:""),data.offsets.popper=M({},data.offsets.popper,j(data.instance.popper,data.offsets.reference,data.placement)),data=K(data.instance.modifiers,data,"flip"))})),data},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(data){var e=data.placement,t=e.split("-")[0],n=data.offsets,r=n.popper,o=n.reference,l=-1!==["left","right"].indexOf(t),c=-1===["top","left"].indexOf(t);return r[l?"left":"top"]=o[t]-(c?r[l?"width":"height"]:0),data.placement=V(e),data.offsets.popper=P(r),data}},hide:{order:800,enabled:!0,fn:function(data){if(!se(data.instance.modifiers,"hide","preventOverflow"))return data;var e=data.offsets.reference,t=G(data.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(e.bottom<t.top||e.left>t.right||e.top>t.bottom||e.right<t.left){if(!0===data.hide)return data;data.hide=!0,data.attributes["x-out-of-boundaries"]=""}else{if(!1===data.hide)return data;data.hide=!1,data.attributes["x-out-of-boundaries"]=!1}return data}},computeStyle:{order:850,enabled:!0,fn:function(data,e){var t=e.x,n=e.y,r=data.offsets.popper,o=G(data.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var l=void 0!==o?o:e.gpuAcceleration,c=v(data.instance.popper),h=D(c),d={position:r.position},f=function(data,e){var t=data.offsets,n=t.popper,r=t.reference,o=Math.round,l=Math.floor,c=function(e){return e},h=o(r.width),d=o(n.width),f=-1!==["left","right"].indexOf(data.placement),m=-1!==data.placement.indexOf("-"),A=e?f||m||h%2==d%2?o:l:c,y=e?o:c;return{left:A(h%2==1&&d%2==1&&!m&&e?n.left-1:n.left),top:y(n.top),bottom:y(n.bottom),right:A(n.right)}}(data,window.devicePixelRatio<2||!ie),m="bottom"===t?"top":"bottom",A="right"===n?"left":"right",y=W("transform"),_=void 0,w=void 0;if(w="bottom"===m?"HTML"===c.nodeName?-c.clientHeight+f.bottom:-h.height+f.bottom:f.top,_="right"===A?"HTML"===c.nodeName?-c.clientWidth+f.right:-h.width+f.right:f.left,l&&y)d[y]="translate3d("+_+"px, "+w+"px, 0)",d[m]=0,d[A]=0,d.willChange="transform";else{var x="bottom"===m?-1:1,E="right"===A?-1:1;d[m]=w*x,d[A]=_*E,d.willChange=m+", "+A}var C={"x-placement":data.placement};return data.attributes=M({},C,data.attributes),data.styles=M({},d,data.styles),data.arrowStyles=M({},data.offsets.arrow,data.arrowStyles),data},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(data){var element,e;return re(data.instance.popper,data.styles),element=data.instance.popper,e=data.attributes,Object.keys(e).forEach((function(t){!1!==e[t]?element.setAttribute(t,e[t]):element.removeAttribute(t)})),data.arrowElement&&Object.keys(data.arrowStyles).length&&re(data.arrowElement,data.arrowStyles),data},onLoad:function(e,t,n,r,o){var l=H(o,t,e,n.positionFixed),c=z(n.placement,l,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",c),re(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},fe=function(){function e(t,n){var r=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};B(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=M({},e.Defaults,c),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(M({}
vendor: 1,270 bytes, line 2
2,e.Defaults.modifiers,c.modifiers)).forEach((function(t){r.options.modifiers[t]=M({},e.Defaults.modifiers[t]||{},c.modifiers?c.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return M({name:e},r.options.modifiers[e])})).sort((function(a,b){return a.order-b.order})),this.modifiers.forEach((function(e){e.enabled&&l(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var h=this.options.eventsEnabled;h&&this.enableEventListeners(),this.state.eventsEnabled=h}return k(e,[{key:"update",value:function(){return $.call(this)}},{key:"destroy",value:function(){return X.call(this)}},{key:"enableEventListeners",value:function(){return ee.call(this)}},{key:"disableEventListeners",value:function(){return te.call(this)}}]),e}();fe.Utils=("undefined"!=typeof window?window:e).PopperUtils,fe.placements=ae,fe.Defaults=pe,t.a=fe}).call(this,n(31))},169:function(e,t,n){var r=n(2957),o=n(2958),l=n(2959),c=n(2960),h=n(2961);function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=r,d.prototype.delete=o,d.prototype.get=l,d.prototype.has=c,d.prototype.set=h,e.exports=d},170:function(e,t,n){var r=n(2265);e.exports=function(e,t){for(var n=e.length;n--;
2)if(r(e[n][0],t))return n;return-1}},171:function(e,t,n){var r=n(101)(Object,"create");e.exports=r},172:function(e,t,n){var r=n(2979);e.exports=function(map,e){var data=map.__data__;return r(e)?data["string"==typeof e?"string":"hash"]:data.map}},173:function(e,t,n){var r=n(1640);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},180:function(e,t,n){"use strict";n.r(t),n.d(t,"Severity",(function(){return d.a})),n.d(t,"Status",(function(){return c})),n.d(t,"addGlobalEventProcessor",(function(){return w})),n.d(t,"addBreadcrumb",(function(){return F})),n.d(t,"captureException",(function(){return P})),n.d(t,"captureEvent",(function(){return U})),n.d(t,"captureMessage",(function(){return D})),n.d(t,"configureScope",(function(){return O})),n.d(t,"getHubFromCarrier",(function(){return k})),n.d(t,"getCurrentHub",(function(){return T})),n.d(t,"Hub",(function(){return E})),n.d(t,"Scope",(function(){return v})),n.d(t,"setContext",(function(){return R})),n.d(t,"setExtra",(function(){return z})),n.d(t,"setExtras",(function(){return N})),n.d(t,"setTag",(function(){return H})),n.d(t,"setTags",(function(){return L})),n.d(t,"setUser",(function(){return Q})),n.d(t,"withScope",(function(){return V})),n.d(t,"BrowserClient",(function(){return Ce})),n.d(t,"defaultIntegrations",(function(){return nt})),n.d(t,"forceLoad",(function(){return ot})),n.d(t,"init",(function(){return it})),n.d(t,"lastEventId",(function(){return at})),n.d(t,"onLoad",(function(){return lt})),n.d(t,"showReportDialog",(function(){return st})),n.d(t,"flush",(function(){return ct})),n.d(t,"close",(function(){return ut})),n.d(t,"wrap",(function(){return ht})),n.d(t,"SDK_NAME",(function(){return xe})),n.d(t,"SDK_VERSION",(function(){return Ee})),n.d(t,"Integrations",(function(){return mt})),n.d(t,"Transports",(function(){return l}));var r={};n.r(r),n.d(r,"FunctionToString",(function(){return Se})),n.d(r,"InboundFilters",(function(){return Be}));var o={};n.r(o),n.d(o,"GlobalHandlers",(function(){return Je})),n.d(o,"TryCatch",(function(){return Ue})),n.d(o,"Breadcrumbs",(function(){return We})),n.d(o,"LinkedErrors",(function(){return Ze})),n.d(o,"UserAgent",(function(){return tt}));var l={};n.r(l),n.d(l,"BaseTransport",(function(){return ye})),n.d(l,"FetchTransport",(function(){return _e})),n.d(l,"XHRTransport",(function(){return be}));var c,h=n(9),d=n(4123);!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(c||(c={})),function(e){e.fromHttpCode=function(code){return code>=200&&code<300?e.Success:429===code?e.RateLimit:code>=400&&code<500?e.Invalid:code>=500?e.Failed:e.Unknown}}(c||(c={}));var f,m=n(33);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(f||(f={}));var A=function(){function e(e){var t=this;this._state=f.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(f.RESOLVED,e)},this._reject=function(e){t._setResult(f.REJECTED,e)},this._setResult=function(e,n){t._state===f.PENDING&&(Object(m.m)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==f.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===f.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===f.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.toString=function(){return"[object SyncPromise]"},e.resolve=function(t){return new e((function(e){e(t)}))}
2,e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,l=[];t.forEach((function(t,c){e.resolve(t).then((function(e){l[c]=e,0===(o-=1)&&n(l)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void o(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void o(e)}else o(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,l;return n.then((function(e){l=!1,o=e,t&&t()}),(function(e){l=!0,o=e,t&&t()})).then((function(){l?r(o):e(o)}))}))},e}(),y=n(43),v=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){e._scopeListeners.forEach((function(t){t(e)})),e._notifyingListeners=!1})))},e.prototype._notifyEventProcessors=function(e,t,n,r){var o=this;return void 0===r&&(r=0),new A((function(l,c){var d=e[r];if(null===t||"function"!=typeof d)l(t);else{var f=d(h.a({},t),n);Object(m.m)(f)?f.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(l)})).then(null,c):o._notifyEventProcessors(e,f,n,r+1).then(l).then(null,c)}}))},e.prototype.setUser=function(e){return this._user=e||{},this._notifyScopeListeners(),this},e.prototype.setTags=function(e){return this._tags=h.a({},this._tags,e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=h.a({},this._tags,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=h.a({},this._extra,e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=h.a({},this._extra,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this._transaction=e,this._span&&(this._span.transaction=e),this._notifyScopeListeners(),this},e.prototype.setContext=function(e,t){var n;return this._context=h.a({},this._context,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(span){return this._span=span,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=h.d(t._breadcrumbs),n._tags=h.a({},t._tags),n._extra=h.a({},t._extra),n._context=h.a({},t._context),n._user=t._user,n._level=t._level,n._span=t._span,n._transaction=t._transaction,n._fingerprint=t._fingerprint,n._eventProcessors=h.d(t._eventProcessors)),n},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._transaction=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=h.a({timestamp:Object(y.l)()},e);return this._breadcrumbs=void 0!==t&&t>=0?h.d(this._breadcrumbs,[n]).slice(-t):h.d(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e.prototype.applyToEvent=function(e,t){return this._extra&&Object.keys(this._extra).length&&(e.extra=h.a({},this._extra,e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=h.a({},this._tags,e.tags)),this._user&&Object.keys(this._user).length&&(e.user=h.a({},this._user,e.user)),this._context&&Object.keys(this._context).length&&(e.contexts=h.a({},this._context,e.contexts)),this._level&&(e.level=this._level),this._transaction&&(e.transaction=this._transaction),this._span&&(e.contexts=h.a({trace:this._span.getTraceContext()},e.contexts)),this._applyFingerprint(e),e.breadcrumbs=h.d(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(h.d(_(),this._eventProcessors),e,t)},e}();function _(){var e=Object(y.f)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function w(e){_().push(e)}var x=n(135),E=function(){function e(e,t,n){void 0===t&&(t=new v),void 0===n&&(n=3),this._version=n,this._stack=[],this._stack.push({client:e,scope:t})}return e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop();o&&o.client&&o.client[e]&&(t=o.client)[e].apply(t,h.d(n,[o.scope]))},e.prototype.isOlderThan=function(e){return this._version<e}
2,e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=this.getStack(),t=e.length>0?e[e.length-1].scope:void 0,n=v.clone(t);return this.getStack().push({client:this.getClient(),scope:n}),n},e.prototype.popScope=function(){return void 0!==this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Object(y.m)(),r=t;if(!t){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(e){o=e}r={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,h.a({},r,{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=Object(y.m)(),o=n;if(!n){var l=void 0;try{throw new Error(e)}catch(e){l=e}o={originalException:e,syntheticException:l}}return this._invokeClient("captureMessage",e,t,h.a({},o,{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(y.m)();return this._invokeClient("captureEvent",e,h.a({},t,{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop();if(n.scope&&n.client){var r=n.client.getOptions&&n.client.getOptions()||{},o=r.beforeBreadcrumb,l=void 0===o?null:o,c=r.maxBreadcrumbs,d=void 0===c?100:c;if(!(d<=0)){var f=Object(y.l)(),m=h.a({timestamp:f},e),A=l?Object(y.c)((function(){return l(m,t)})):m;null!==A&&n.scope.addBreadcrumb(A,Math.min(d,100))}}},e.prototype.setUser=function(e){var t=this.getStackTop();t.scope&&t.scope.setUser(e)},e.prototype.setTags=function(e){var t=this.getStackTop();t.scope&&t.scope.setTags(e)},e.prototype.setExtras=function(e){var t=this.getStackTop();t.scope&&t.scope.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop();t.scope&&t.client&&e(t.scope)},e.prototype.run=function(e){var t=S(this);try{e(this)}finally{S(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return x.a.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e,t){return void 0===t&&(t=!1),this._callExtensionMethod("startSpan",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=C(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);x.a.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function C(){var e=Object(y.f)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function S(e){var t=C(),n=k(t);return I(t,e),n}function T(){var e=C();return B(e)&&!k(e).isOlderThan(3)||I(e,new E),Object(y.i)()?function(e){try{var t=C().__SENTRY__;if(!t||!t.extensions||!t.extensions.domain)return k(e);var n=t.extensions.domain.active;if(!n)return k(e);if(!B(n)||k(n).isOlderThan(3)){var r=k(e).getStackTop();I(n,new E(r.client,v.clone(r.scope)))}return k(n)}catch(t){return k(e)}}(e):k(e)}function B(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function k(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new E),e.__SENTRY__.hub}function I(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function M(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=T();if(r&&r[e])return r[e].apply(r,h.d(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function P(e){var t;try{throw new Error("Sentry syntheticException")}catch(e){t=e}return M("captureException",e,{originalException:e,syntheticException:t})}function D(e,t){var n;try{throw new Error(e)}catch(e){n=e}return M("captureMessage",e,t,{originalException:e,syntheticException:n})}function U(e){return M("captureEvent",e)}function O(e){M("configureScope",e)}function F(e){M("addBreadcrumb",e)}function R(e,t){M("setContext",e,t)}function N(e){M("setExtras",e)}function L(e){M("setTags",e)}function z(e,t){M("setExtra",e,t)}function H(e,t){M("setTag",e,t)}function Q(e){M("setUser",e)}function V(e){M("withScope",e)}
2var j=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e});var G=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,j(r,n.prototype),r}return h.b(t,e),t}(Error),K=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,$=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,path=t.path,r=t.pass,o=t.port,l=t.projectId;return t.protocol+"://"+t.user+(e&&r?":"+r:"")+"@"+n+(o?":"+o:"")+"/"+(path?path+"/":path)+l},e.prototype._fromString=function(e){var t=K.exec(e);if(!t)throw new G("Invalid Dsn");var n=h.c(t.slice(1),6),r=n[0],o=n[1],l=n[2],c=void 0===l?"":l,d=n[3],f=n[4],m=void 0===f?"":f,path="",A=n[5],y=A.split("/");y.length>1&&(path=y.slice(0,-1).join("/"),A=y.pop()),this._fromComponents({host:d,pass:c,path:path,projectId:A,port:m,protocol:r,user:o})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(component){if(!e[component])throw new G("Invalid Dsn")})),"http"!==this.protocol&&"https"!==this.protocol)throw new G("Invalid Dsn");if(this.port&&isNaN(parseInt(this.port,10)))throw new G("Invalid Dsn")},e}(),object=n(67),Y=function(){function e(e){this.dsn=e,this._dsnObject=new $(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getStoreEndpoint=function(){return""+this._getBaseUrl()+this.getStoreEndpointPath()},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+Object(object.e)(e)},e.prototype._getBaseUrl=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,header=["Sentry sentry_version=7"];return header.push("sentry_client="+e+"/"+t),header.push("sentry_key="+n.user),n.pass&&header.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":header.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this._getBaseUrl()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",r=[];for(var o in r.push("dsn="+t.toString()),e)if("user"===o){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return r.length?n+"?"+r.join("&"):n},e}(),W=n(102),X=[];function J(e){var t={};return function(e){var t=e.defaultIntegrations&&h.d(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var o=n.map((function(i){return i.name})),l=[];t.forEach((function(e){-1===o.indexOf(e.name)&&-1===l.indexOf(e.name)&&(r.push(e),l.push(e.name))})),n.forEach((function(e){-1===l.indexOf(e.name)&&(r.push(e),l.push(e.name))}))}else"function"==typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=h.d(t);var c=r.map((function(i){return i.name}));return-1!==c.indexOf("Debug")&&r.push.apply(r,h.d(r.splice(c.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===X.indexOf(e.name)&&(e.setupOnce(w,T),X.push(e.name),x.a.log("Integration installed: "+e.name))}(e)})),t}var Z=function(){function e(e,t){this._integrations={},this._processing=!1,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new $(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,o=t&&t.event_id;return this._processing=!0,this._getBackend().eventFromException(e,t).then((function(e){return r._processEvent(e,t,n)})).then((function(e){o=e&&e.event_id,r._processing=!1})).then(null,(function(e){x.a.error(e),r._processing=!1})),o},e.prototype.captureMessage=function(e,t,n,r){var o=this,l=n&&n.event_id;return this._processing=!0,(Object(m.i)(e)?this._getBackend().eventFromMessage(""+e,t,n):this._getBackend().eventFromException(e,n)).then((function(e){return o._processEvent(e,n,r)})).then((function(e){l=e&&e.event_id,o._processing=!1})).then(null,(function(e){x.a.error(e),o._processing=!1})),l},e.prototype.captureEvent=function(e,t,n){var r=this,o=t&&t.event_id;return this._processing=!0,this._processEvent(e,t,n).then((function(e){o=e&&e.event_id,r._processing=!1})).then(null,(function(e){x.a.error(e),r._processing=!1})),o},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;
2return this._isClientProcessing(e).then((function(n){return clearInterval(n.interval),t._getBackend().getTransport().close(e).then((function(e){return n.ready&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=J(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return x.a.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._isClientProcessing=function(e){var t=this;return new A((function(n){var r=0,o=0;clearInterval(o),o=setInterval((function(){t._processing?(r+=1,e&&r>=e&&n({interval:o,ready:!1})):n({interval:o,ready:!0})}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,o=this.getOptions(),l=o.environment,c=o.release,d=o.dist,f=o.maxValueLength,m=void 0===f?250:f,v=o.normalizeDepth,_=void 0===v?3:v,w=h.a({},e);void 0===w.environment&&void 0!==l&&(w.environment=l),void 0===w.release&&void 0!==c&&(w.release=c),void 0===w.dist&&void 0!==d&&(w.dist=d),w.message&&(w.message=Object(W.d)(w.message,m));var x=w.exception&&w.exception.values&&w.exception.values[0];x&&x.value&&(x.value=Object(W.d)(x.value,m));var E=w.request;E&&E.url&&(E.url=Object(W.d)(E.url,m)),void 0===w.event_id&&(w.event_id=n&&n.event_id?n.event_id:Object(y.m)()),this._addIntegrations(w.sdk);var C=A.resolve(w);return t&&(C=t.applyToEvent(w,n)),C.then((function(e){return"number"==typeof _&&_>0?r._normalizeEvent(e,_):e}))},e.prototype._normalizeEvent=function(e,t){return e?h.a({},e,e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(b){return h.a({},b,b.data&&{data:Object(object.c)(b.data,t)})}))},e.user&&{user:Object(object.c)(e.user,t)},e.contexts&&{contexts:Object(object.c)(e.contexts,t)},e.extra&&{extra:Object(object.c)(e.extra,t)}):null},e.prototype._addIntegrations=function(e){var t=Object.keys(this._integrations);e&&t.length>0&&(e.integrations=t)},e.prototype._processEvent=function(e,t,n){var r=this,o=this.getOptions(),l=o.beforeSend,c=o.sampleRate;return this._isEnabled()?"number"==typeof c&&Math.random()>c?A.reject("This event has been sampled, will not send event."):new A((function(o,c){r._prepareEvent(e,n,t).then((function(e){if(null!==e){var n=e;if(t&&t.data&&!0===t.data.__sentry__||!l)return r._getBackend().sendEvent(n),void o(n);var h=l(e,t);if(void 0===h)x.a.error("`beforeSend` method has to return `null` or a valid event.");else if(Object(m.m)(h))r._handleAsyncBeforeSend(h,o,c);else{if(null===(n=h))return x.a.log("`beforeSend` returned `null`, will not send event."),void o(null);r._getBackend().sendEvent(n),o(n)}}else c("An event processor returned null, will not send event.")})).then(null,(function(e){r.captureException(e,{data:{__sentry__:!0},originalException:e}),c("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))})):A.reject("SDK not enabled, will not send event.")},e.prototype._handleAsyncBeforeSend=function(e,t,n){var r=this;e.then((function(e){null!==e?(r._getBackend().sendEvent(e),t(e)):n("`beforeSend` returned `null`, will not send event.")})).then(null,(function(e){n("beforeSend rejected with "+e)}))},e}(),ee=function(){function e(){}return e.prototype.sendEvent=function(e){return A.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:c.Skipped})},e.prototype.close=function(e){return A.resolve(!0)},e}(),te=function(){function e(e){this._options=e,this._options.dsn||x.a.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype._setupTransport=function(){return new ee},e.prototype.eventFromException=function(e,t){throw new G("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new G("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){x.a.error("Error while sending event: "+e)}))},e.prototype.getTransport=function(){return this._transport},e}(),ne=n(1659),re=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ie=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,se=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ae=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,oe=/\((\S*)(?::(\d+))(?::(\d+))\)/;function le(e){var t=null,n=e&&e.framesToPop;try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,l=n.split("\n"),c=[],line=0;line<l.length;line+=2){var element=null;(t=r.exec(l[line]))?element={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=o.exec(l[line]))&&(element={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),element&&(!element.func&&element.line&&(element.func="?"),c.push(element))}if(!c.length)return null;return{message:ue(e),name:e.name,stack:c}}(e))return ce(t,n)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,element,r=[],o=e.stack.split("\n"),i=0;i<o.length;++i){if(n=re.exec(o[i])){var l=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=oe.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),element={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||"?",args:l?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=se.exec(o[i]))element={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=ie.exec(o[i])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=ae.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==i||n[5]||void 0===e.columnNumber||(r[0].column=e.columnNumber+1),element={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!element.func&&element.line&&(element.func="?"),r.push(element)}if(!r.length)return null;return{message:ue(e),name:e.name,stack:r}}(e))return ce(t,n)}catch(e){}return{message:ue(e),name:e&&e.name,stack:[],failed:!0}}function ce(e,t){try{return h.a({},e,{stack:e.stack.slice(t)})}catch(t){return e}}function ue(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function he(e){var t=pe(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function de(e){return{exception:{values:[he(e)]}}}function pe(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.
2slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).slice(0,50).reverse()}function fe(e,t,n){var r;if(void 0===n&&(n={}),Object(m.e)(e)&&e.error)return r=de(le(e=e.error));if(Object(m.a)(e)||Object(m.b)(e)){var o=e,l=o.name||(Object(m.a)(o)?"DOMError":"DOMException"),c=o.message?l+": "+o.message:l;return r=me(c,t,n),Object(y.b)(r,c),r}return Object(m.d)(e)?r=de(le(e)):Object(m.h)(e)||Object(m.f)(e)?(r=function(e,t,n){var r={exception:{values:[{type:Object(m.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(object.a)(e)}]},extra:{__serialized__:Object(object.d)(e)}};if(t){var o=pe(le(t).stack);r.stacktrace={frames:o}}return r}(e,t,n.rejection),Object(y.a)(r,{synthetic:!0}),r):(r=me(e,t,n),Object(y.b)(r,""+e,void 0),Object(y.a)(r,{synthetic:!0}),r)}function me(input,e,t){void 0===t&&(t={});var n={message:input};if(t.attachStacktrace&&e){var r=pe(le(e).stack);n.stacktrace={frames:r}}return n}var Ae,ge=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):A.reject(new G("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new A((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);A.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),ye=function(){function e(e){this.options=e,this._buffer=new ge(30),this.url=new Y(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new G("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e}(),ve=Object(y.f)(),_e=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return h.b(t,e),t.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var n={body:JSON.stringify(e),method:"POST",referrerPolicy:Object(ne.d)()?"origin":""};return void 0!==this.options.headers&&(n.headers=this.options.headers),this._buffer.add(new A((function(e,r){ve.fetch(t.url,n).then((function(n){var o=c.fromHttpCode(n.status);if(o!==c.Success){if(o===c.RateLimit){var l=Date.now();t._disabledUntil=new Date(l+Object(y.j)(l,n.headers.get("Retry-After"))),x.a.warn("Too many requests, backing off till: "+t._disabledUntil)}r(n)}else e({status:o})})).catch(r)})))},t}(ye),be=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return h.b(t,e),t.prototype.sendEvent=function(e){var t=this;return new Date(Date.now())<this._disabledUntil?Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429}):this._buffer.add(new A((function(n,r){var o=new XMLHttpRequest;for(var header in o.onreadystatechange=function(){if(4===o.readyState){var e=c.fromHttpCode(o.status);if(e!==c.Success){if(e===c.RateLimit){var l=Date.now();t._disabledUntil=new Date(l+Object(y.j)(l,o.getResponseHeader("Retry-After"))),x.a.warn("Too many requests, backing off till: "+t._disabledUntil)}r(o)}else n({status:e})}},o.open("POST",t.url),t.options.headers)t.options.headers.hasOwnProperty(header)&&o.setRequestHeader(header,t.options.headers[header]);o.send(JSON.stringify(e))})))},t}(ye),we=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h.b(t,e),t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=h.a({},this._options.transportOptions,{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):Object(ne.a)()?new _e(t):new be(t)},t.prototype.eventFromException=function(e,t){var n=fe(e,t&&t.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return Object(y.a)(n,{handled:!0,type:"generic"}),n.level=d.a.Error,t&&t.event_id&&(n.event_id=t.event_id),A.resolve(n)},t.prototype.eventFromMessage=function(e,t,n){void 0===t&&(t=d.a.Info);var r=me(e,n&&n.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return r.level=t,n&&n.event_id&&(r.event_id=n.event_id),A.resolve(r)},t}(te),xe="sentry.javascript.browser",Ee="5.15.5",Ce=function(e){function t(t){return void 0===t&&(t={}),e.call(this,we,t)||this}return h.b(t,e),t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",t.sdk=h.a({},t.sdk,{name:xe,packages:h.d(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:Ee}]),version:Ee}),e.prototype._prepareEvent.call(this,t,n,r)},t.prototype.showReportDialog=function(e){void 0===e&&(e={});var t=Object(y.f)().document;if(t)if(this._isEnabled()){var n=e.dsn||this.getDsn();if(e.eventId)if(n){var script=t.createElement("script");script.async=!0,script.src=new Y(n).getReportDialogEndpoint(e),e.onLoad&&(script.onload=e.onLoad),(t.head||t.body).appendChild(script)}else x.a.error("Missing `Dsn` option in showReportDialog call");else x.a.error("Missing `eventId` option in showReportDialog call")}else x.a.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(Z),Se=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Ae=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return Ae.apply(n,e)}},e.id="FunctionToString",e}(),Te=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Be=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){w((function(t){var n=T();if(!n)return t;var r=n.getIntegration(e);if(r){var o=n.getClient(),l=o?o.getOptions():{},c=r._mergeOptions(l);if(r._shouldDropEvent(t,c))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(x.a.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(y.d)(e)),!0):this._isIgnoredError(e,t)?(x.a.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(y.d)(e)),!0):this._isBlacklistedUrl(e,t)?(x.a.warn("Event dropped due to being matched by `blackl
2istUrls` option.\nEvent: "+Object(y.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isWhitelistedUrl(e,t)&&(x.a.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+Object(y.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(pattern){return Object(W.a)(e,pattern)}))}))},e.prototype._isBlacklistedUrl=function(e,t){if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.blacklistUrls.some((function(pattern){return Object(W.a)(n,pattern)}))},e.prototype._isWhitelistedUrl=function(e,t){if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.whitelistUrls.some((function(pattern){return Object(W.a)(n,pattern)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{blacklistUrls:h.d(this._options.blacklistUrls||[],e.blacklistUrls||[]),ignoreErrors:h.d(this._options.ignoreErrors||[],e.ignoreErrors||[],Te),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal,whitelistUrls:h.d(this._options.whitelistUrls||[],e.whitelistUrls||[])}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,o=t.value,l=void 0===o?"":o;return[""+l,r+": "+l]}catch(t){return x.a.error("Cannot extract message for event "+Object(y.d)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return x.a.error("Cannot extract url for event "+Object(y.d)(e)),null}},e.id="InboundFilters",e}();var ke=0;function Ie(){return ke>0}function Me(){ke+=1,setTimeout((function(){ke-=1}))}function Pe(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(e){return Pe(e,t)}));return e.handleEvent?e.handleEvent.apply(this,o):e.apply(this,o)}catch(e){throw Me(),V((function(n){n.addEventProcessor((function(e){var n=h.a({},e);return t.mechanism&&(Object(y.b)(n,void 0,void 0),Object(y.a)(n,t.mechanism)),n.extra=h.a({},n.extra,{arguments:r}),n})),P(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}var De,Ue=function(){function e(){this._ignoreOnError=0,this.name=e.id}return e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=Pe(r,{mechanism:{data:{function:Object(y.e)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e(Pe(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(y.e)(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=Object(y.f)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(object.b)(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Pe(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(y.e)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,Pe(r,{mechanism:{data:{function:"addEventListener",handler:Object(y.e)(r),target:e},handled:!0,type:"instrument"}}),o)}})),Object(object.b)(n,"removeEventListener",(function(e){return function(t,n,r){var o=n;try{o=o&&(o.__sentry_wrapped__||o)}catch(e){}return e.call(this,t,o,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach((function(e){e in r&&"function"==typeof r[e]&&Object(object.b)(r,e,(function(t){var n={mechanism:{data:{function:e,handler:Object(y.e)(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=Object(y.e)(t.__sentry_original__)),Pe(t,n)}))})),e.apply(this,t)}},e.prototype.setupOnce=function(){this._ignoreOnError=this._ignoreOnError;var e=Object(y.f)();Object(object.b)(e,"setTimeout",this._wrapTimeFunction.bind(this)),Object(object.b)(e,"setInterval",this._wrapTimeFunction.bind(this)),Object(object.b)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),"XMLHttpRequest"in e&&Object(object.b)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this._wrapEventTarget.bind(this))},e.id="TryCatch",e}(),Oe=Object(y.f)(),Fe={},Re={};function Ne(e){if(!Re[e])switch(Re[e]=!0,e){case"console":!function(){if(!("console"in Oe))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in Oe.console&&Object(object.b)(Oe.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];ze("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,Oe.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in Oe))return;Oe.document.addEventListener("click",Ke("click",ze.bind(null,"dom")),!1),Oe.document.addEventListener("keypress",qe(ze.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(e){var t=Oe[e]&&Oe[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Object(object.b)(t,"addEventListener",(function(e){return function(t,n,r){return n&&n.handleEvent?("click"===t&&Object(object.b)(n,"handleEvent",(function(e){return function(t){return Ke("click",ze.bind(null,"dom"))(t),e.call(this,t)}})),"keypress"===t&&Object(object.b)(n,"handleEvent",(function(e){return function(t){return qe(ze.bind(null,"dom"))(t),e.call(this,t)}}
2))):("click"===t&&Ke("click",ze.bind(null,"dom"),!0)(this),"keypress"===t&&qe(ze.bind(null,"dom"))(this)),e.call(this,t,n,r)}})),Object(object.b)(t,"removeEventListener",(function(e){return function(t,n,r){var o=n;try{o=o&&(o.__sentry_wrapped__||o)}catch(e){}return e.call(this,t,o,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Oe))return;var e=XMLHttpRequest.prototype;Object(object.b)(e,"open",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[1];return this.__sentry_xhr__={method:Object(m.k)(t[0])?t[0].toUpperCase():t[0],url:t[1]},Object(m.k)(r)&&"POST"===this.__sentry_xhr__.method&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0),e.apply(this,t)}})),Object(object.b)(e,"send",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o={args:t,startTimestamp:Date.now(),xhr:r};return ze("xhr",h.a({},o)),r.addEventListener("readystatechange",(function(){if(4===r.readyState){try{r.__sentry_xhr__&&(r.__sentry_xhr__.status_code=r.status)}catch(e){}ze("xhr",h.a({},o,{endTimestamp:Date.now()}))}})),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!Object(ne.c)())return;Object(object.b)(Oe,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:He(t),url:Qe(t)},startTimestamp:Date.now()};return ze("fetch",h.a({},r)),e.apply(Oe,t).then((function(e){return ze("fetch",h.a({},r,{endTimestamp:Date.now(),response:e})),e}),(function(e){throw ze("fetch",h.a({},r,{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!Object(ne.b)())return;var e=Oe.onpopstate;function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var o=De,l=String(r);De=l,ze("history",{from:o,to:l})}return e.apply(this,t)}}Oe.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Oe.location.href,o=De;if(De=r,ze("history",{from:o,to:r}),e)return e.apply(this,t)},Object(object.b)(Oe.history,"pushState",t),Object(object.b)(Oe.history,"replaceState",t)}();break;case"error":$e=Oe.onerror,Oe.onerror=function(e,t,line,n,r){return ze("error",{column:n,error:r,line:line,msg:e,url:t}),!!$e&&$e.apply(this,arguments)};break;case"unhandledrejection":Ye=Oe.onunhandledrejection,Oe.onunhandledrejection=function(e){return ze("unhandledrejection",e),!Ye||Ye.apply(this,arguments)};break;default:x.a.warn("unknown instrumentation type:",e)}}function Le(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(Fe[e.type]=Fe[e.type]||[],Fe[e.type].push(e.callback),Ne(e.type))}function ze(e,data){var t,n;if(e&&Fe[e])try{for(var r=h.e(Fe[e]||[]),o=r.next();!o.done;o=r.next()){var l=o.value;try{l(data)}catch(t){x.a.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(y.e)(l)+"\nError: "+t)}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}function He(e){return void 0===e&&(e=[]),"Request"in Oe&&Object(m.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Qe(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Oe&&Object(m.g)(e[0],Request)?e[0].url:String(e[0])}var Ve,je,Ge=0;function Ke(e,t,n){return void 0===n&&(n=!1),function(r){Ve=void 0,r&&je!==r&&(je=r,Ge&&clearTimeout(Ge),n?Ge=setTimeout((function(){t({event:r,name:e})})):t({event:r,name:e}))}}function qe(e){return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(Ve||Ke("input",e)(t),clearTimeout(Ve),Ve=setTimeout((function(){Ve=void 0}),1e3))}}var $e=null;var Ye=null;var We=function(){function e(t){this.name=e.id,this._options=h.a({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:d.a.fromString(e.level),message:Object(W.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(W.b)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}T().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Object(y.h)(e.event.target):Object(y.h)(e.event)}catch(e){t="<unknown>"}0!==t.length&&T().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;T().addBreadcrumb({category:"xhr",data:e.xhr.__sentry_xhr__,type:"http"},{xhr:e.xhr})}else this._options.sentry&&e.xhr.__sentry_own_request__&&Xe(e.args[0])},e.prototype._fetchBreadcrumb=function(e){if(e.endTimestamp){var t=T().getClient(),n=t&&t.getDsn();if(this._options.sentry&&n){var r=new Y(n).getStoreEndpoint();if(r&&-1!==e.fetchData.url.indexOf(r)&&"POST"===e.fetchData.method&&e.args[1]&&e.args[1].body)return void Xe(e.args[1].body)}e.error?T().addBreadcrumb({category:"fetch",data:h.a({},e.fetchData,{status_code:e.response.status}),level:d.a.Error,type:"http"},{data:e.error,input:e.args}):T().addBreadcrumb({category:"fetch",data:h.a({},e.fetchData,{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})}},e.prototype._historyBreadcrumb=function(e){var t=Object(y.f)(),n=e.from,r=e.to,o=Object(y.k)(t.location.href),l=Object(y.k)(n),c=Object(y.k)(r);l.path||(l=o),o.protocol===c.protocol&&o.host===c.host&&(r=c.relative),o.protocol===l.protocol&&o.host===l.host&&(n=l.relative),T().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Le({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,h.d(t))},type:"console"}),this._options.dom&&Le({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,h.d(t))},type:"dom"}),this._options.xhr&&Le({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,h.d(t))},type:"xhr"}),this._options.fetch&&Le({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,h.d(t))},type:"fetch"}),this._options.history&&Le({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,h.d(t))},type:"history"})},e.id="Breadcrumbs",e}();function Xe(e){try{var t=JSON.parse(e);T().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level||d.a.fromString("error"),message:Object(y.d)(t)},{event:t})}catch(e){x.a.error("Error while adding sentry type breadcrumb")}}var Je=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=h.a({onerror:!0,onunhandledrejection:!0}
2,t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(x.a.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(x.a.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Le({callback:function(data){var n=data.error,r=T(),o=r.getIntegration(e),l=n&&!0===n.__sentry_own_request__;if(o&&!Ie()&&!l){var c=r.getClient(),h=Object(m.i)(n)?t._eventFromIncompleteOnError(data.msg,data.url,data.line,data.column):t._enhanceEventWithInitialFrame(fe(n,void 0,{attachStacktrace:c&&c.getOptions().attachStacktrace,rejection:!1}),data.url,data.line,data.column);Object(y.a)(h,{handled:!1,type:"onerror"}),r.captureEvent(h,{originalException:n})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Le({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var o=T(),l=o.getIntegration(e),c=r&&!0===r.__sentry_own_request__;if(!l||Ie()||c)return!0;var h=o.getClient(),f=Object(m.i)(r)?t._eventFromIncompleteRejection(r):fe(r,void 0,{attachStacktrace:h&&h.getOptions().attachStacktrace,rejection:!0});f.level=d.a.Error,Object(y.a)(f,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(f,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,line,n){var r,o=Object(m.e)(e)?e.message:e;if(Object(m.k)(o)){var l=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);l&&(r=l[1],o=l[2])}var c={exception:{values:[{type:r||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(c,t,line,n)},e.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,line,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var r=isNaN(parseInt(n,10))?void 0:n,o=isNaN(parseInt(line,10))?void 0:line,l=Object(m.k)(t)&&t.length>0?t:Object(y.g)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:r,filename:l,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),Ze=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){w((function(t,n){var r=T().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Object(m.g)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=h.d(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Object(m.g)(e[t],Error)||n.length+1>=this._limit)return n;var r=he(le(e[t]));return this._walkErrorTree(e[t],t,h.d([r],n))},e.id="LinkedErrors",e}(),et=Object(y.f)(),tt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){w((function(t){if(T().getIntegration(e)){if(!et.navigator||!et.location)return t;var n=t.request||{};return n.url=n.url||et.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=et.navigator.userAgent,h.a({},t,{request:n})}return t}))},e.id="UserAgent",e}(),nt=[new r.InboundFilters,new r.FunctionToString,new Ue,new We,new Je,new Ze,new tt];function it(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=nt),void 0===e.release){var t=Object(y.f)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}!function(e,t){!0===t.debug&&x.a.enable();var n=T(),r=new e(t);n.bindClient(r)}(Ce,e)}function st(e){void 0===e&&(e={}),e.eventId||(e.eventId=T().lastEventId());var t=T().getClient();t&&t.showReportDialog(e)}function at(){return T().lastEventId()}function ot(){}function lt(e){e()}function ct(e){var t=T().getClient();return t?t.flush(e):A.reject(!1)}function ut(e){var t=T().getClient();return t?t.close(e):A.reject(!1)}function ht(e){return Pe(e)()}var pt={},ft=Object(y.f)();ft.Sentry&&ft.Sentry.Integrations&&(pt=ft.Sentry.Integrations);var mt=h.a({},pt,r,o)},2:function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],l=o[0],c={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[l]?r[l].parts.push(c):n.push(r[l]={id:l,parts:[c]})}return n}n.r(t),n.d(t,"default",(function(){return y}
2));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l={},head=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,h=0,d=!1,f=function(){},m=null,A="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function y(e,t,n,o){d=n,m=o||{};var c=r(e,t);return v(c),function(t){for(var n=[],i=0;i<c.length;i++){var o=c[i];(h=l[o.id]).refs--,n.push(h)}t?v(c=r(e,t)):c=[];for(i=0;i<n.length;i++){var h;if(0===(h=n[i]).refs){for(var d=0;d<h.parts.length;d++)h.parts[d]();delete l[h.id]}}}}function v(e){for(var i=0;i<e.length;i++){var t=e[i],n=l[t.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](t.parts[r]);for(;r<t.parts.length;r++)n.parts.push(w(t.parts[r]));n.parts.length>t.parts.length&&(n.parts.length=t.parts.length)}else{var o=[];for(r=0;r<t.parts.length;r++)o.push(w(t.parts[r]));l[t.id]={id:t.id,refs:1,parts:o}}}}function _(){var e=document.createElement("style");return e.type="text/css",head.appendChild(e),e}function w(e){var t,n,r=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(r){if(d)return f;r.parentNode.removeChild(r)}if(A){var o=h++;r=c||(c=_()),t=C.bind(null,r,o,!1),n=C.bind(null,r,o,!0)}else r=_(),t=S.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var x,E=(x=[],function(e,t){return x[e]=t,x.filter(Boolean).join("\n")});function C(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=E(t,o);else{var l=document.createTextNode(o),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(l,c[t]):e.appendChild(l)}}function S(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),m.ssrId&&e.setAttribute("data-vue-ssr-id",t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},2185:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.SpaceBar=32]="SpaceBar",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=35]="Home",e[e.Left=37]="Left",e[e.Up=38]="Up",e[e.Right=39]="Right",e[e.Down=40]="Down"}(t.EKeyCodes||(t.EKeyCodes={}))},2208:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.document=t.window=void 0;var r="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document;t.document=r;var o="undefined"==typeof window?{document:r,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window;t.window=o},2229:function(e,t,n){e.exports=function(){"use strict";var e,t=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^\s\d-:/.()]+/,s=function(e){return function(t){this[e]=+t}},i=[/[+-]\d\d:?\d\d/,function(e){var t,n;(this.zone||(this.zone={})).offset=0==(n=60*(t=e.match(/([+-]|\d\d)/g))[1]+ +t[2])?0:"+"===t[0]?-n:n}],a={A:[/[AP]M/,function(e){this.afternoon="PM"===e}],a:[/[ap]m/,function(e){this.afternoon="pm"===e}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(t){var n=e.ordinal,r=t.match(/\d+/);if(this.day=r[0],n)for(var o=1;o<=31;o+=1)n(o).replace(/\[|\]/g,"")===t&&(this.day=o)}
2],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(t){var n=e,r=n.months,o=n.monthsShort,s=o?o.findIndex((function(e){return e===t})):r.findIndex((function(e){return e.substr(0,3)===t}));if(s<0)throw new Error;this.month=s+1}],MMMM:[o,function(t){var n=e.months.indexOf(t);if(n<0)throw new Error;this.month=n+1}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){e=+e,this.year=e+(e>68?1900:2e3)}],YYYY:[/\d{4}/,s("year")],Z:i,ZZ:i},l=function(e,n,r){try{var o=function(e){for(var n=e.match(t),r=n.length,o=0;o<r;o+=1){var s=n[o],i=a[s],l=i&&i[0],c=i&&i[1];n[o]=c?{regex:l,parser:c}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},o=0,s=0;o<r;o+=1){var i=n[o];if("string"==typeof i)s+=i.length;else{var a=i.regex,l=i.parser,c=e.substr(s),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}(n)(e),s=o.year,i=o.month,l=o.day,c=o.hours,u=o.minutes,h=o.seconds,d=o.milliseconds,f=o.zone,m=new Date,A=l||(s||i?1:m.getDate()),p=s||m.getFullYear(),y=0;s&&!i||(y=i>0?i-1:m.getMonth());var v=c||0,_=u||0,g=h||0,w=d||0;return f?new Date(Date.UTC(p,y,A,v,_,g,w+60*f.offset*1e3)):r?new Date(Date.UTC(p,y,A,v,_,g,w)):new Date(p,y,A,v,_,g,w)}catch(e){return new Date("")}};return function(t,n,r){var o=n.prototype,s=o.parse;o.parse=function(t){var n=t.date,o=t.utc,i=t.args;this.$u=o;var a=i[1];if("string"==typeof a){var c=!0===i[2],u=!0===i[3],h=c||u,d=i[2];u&&(d=i[2]),c||(e=d?r.Ls[d]:this.$locale()),this.$d=l(n,a,o),this.init(t),h&&n!==this.format(a)&&(this.$d=new Date("")),d&&!0!==d&&(this.$L=d)}else s.call(this,t)}}}()},2246:function(e,t,n){"use strict";var r=Function.prototype.call,o=n(90);e.exports=o(n(26),{invokeAsync:n(2867),isPromise:n(41),dynamicQueue:n(2886),validPromise:n(2890),callAsync:r.bind(n(1627)),delay:r.bind(n(2891)),gate:r.bind(n(2893)),monitor:n(2897),promisify:r.bind(n(2898)),promisifySync:r.bind(n(2899)),every:r.bind(n(2900)),find:r.bind(n(2901)),map:r.bind(n(2258)),reduce:r.bind(n(2259)),some:r.bind(n(2260))},n(2902)),n(2910),n(2911),n(2912),n(2256),n(2913),n(2914),n(2915),n(2916),n(2917),n(2918),n(2920),n(2921)},2247:function(e,t,n){"use strict";e.exports=function(){}},2248:function(e,t,n){"use strict";var r=Object.create,o=Object.getPrototypeOf,l={};e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||r;return"function"==typeof e&&o(e(t(null),l))===l}},2249:function(e,t,n){"use strict";var r,o=n(112),l=n(49),c=Object.prototype.isPrototypeOf,h=Object.defineProperty,d={configurable:!0,enumerable:!1,writable:!0,value:void 0};r=function(e,t){if(l(e),null===t||o(t))return e;throw new TypeError("Prototype must be null or an object")},e.exports=function(e){var t,n;return e?(2===e.level?e.set?(n=e.set,t=function(e,t){return n.call(r(e,t),t),e}):t=function(e,t){return r(e,t).__proto__=t,e}:t=function e(t,n){var o;return r(t,n),(o=c.call(e.nullPolyfill,t))&&delete e.nullPolyfill.__proto__,null===n&&(n=e.nullPolyfill),t.__proto__=n,o&&h(e.nullPolyfill,"__proto__",d),t},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e,t=Object.create(null),n={},desc=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(desc){try{(e=desc.set).call(t,n)}catch(e){}if(Object.getPrototypeOf(t)===n)return{set:e,level:2}}return t.__proto__=n,Object.getPrototypeOf(t)===n?{level:2}:((t={}).__proto__=n,Object.getPrototypeOf(t)===n&&{level:1})}()),n(2856)},2250:function(e,t,n){"use strict";e.exports=function(e){return null!=e}},2251:function(e,t,n){"use strict";var r=n(1628),o=Array.isArray;e.exports=function(e){return o(e)?e:r(e)}},2252:function(e,t,n){"use strict";e.exports=n(2870)()?n(165).Symbol:n(2873)},2253:function(e,t,n){"use strict";var r=n(2874);e.exports=function(e){if(!r(e))throw new TypeError(e+" is not a symbol");return e}},2254:function(e,t,n){"use strict";var r=n(65),o=n(2892);e.exports=function(e){if((e=r(e))>o)throw new TypeError(e+" exceeds maximum possible timeout");return e}},2255:function(e,t,n){"use strict";
2e.exports=n(2895)("forEach")},2256:function(e,t,n){"use strict";var r=n(32);n(26).extend("finally",(function(e){return r(e),this.pending||(this.pending=[]),this.pending.push("finally",arguments),this}),(function(e){e()}),(function(e){return r(e)(),this}))},2257:function(e,t,n){"use strict";var r=n(90),o=n(23),l=n(49),c=n(32),h=n(65),d=n(26),f=n(41),m=n(91),A=Function.prototype.call,y=d.resolve;e.exports=function(e){var t=function(t,n,o){for(this.list=t,this.cb=n,this.context=o,this.length=h(t.length);this.current<this.length;){if(this.current in t)return r(this,d()),this.processCb=this.processCb.bind(this),this.processValue=this.processValue.bind(this),this.continue(),this.promise;++this.current}return y(!e)};return t.prototype={current:0,state:!1,continue:function(){for(var e;!this.state&&(e=this.process(),"cb"===this.state)&&(e=this.processCb(e),"value"===this.state);)this.processValue(e)},process:function(){var e=m(this.list[this.current]);if(f(e)){if(!e.resolved)return e.done(function(e){e=this.processCb(e),"value"===this.state&&(this.processValue(e),this.state||this.continue())}.bind(this),this.reject),null;if(e.failed)return this.reject(e.value),null;e=e.value}return this.state="cb",e},processCb:function(e){if(this.cb){try{e=A.call(this.cb,this.context,e,this.current,this.list)}catch(e){return this.reject(e),null}if(e=m(e),f(e)){if(!e.resolved)return e.done(function(e){this.state="value",this.processValue(e),this.state||this.continue()}.bind(this),this.reject),null;if(e.failed)return this.reject(e.value),null;e=e.value}}return this.state="value",e},processValue:function(t){if(Boolean(t)!==e){for(;++this.current<this.length;)if(this.current in this.list)return void(this.state=!1);this.resolve(!e)}else this.resolve(e)}},function(e){return l(this),o(e)&&c(e),new t(this,e,arguments[1])}}},2258:function(e,t,n){"use strict";var r,o=n(90),l=n(23),c=n(49),h=n(32),d=n(65),f=n(26),m=n(41),A=n(91),y=Array.prototype.every,v=Function.prototype.call;(r=function(e,t,n){return this.list=e,this.cb=t,this.context=n,this.result=new Array(d(e.length)),o(this,f()),y.call(e,this.process,this),this.waiting?(this.initialized=!0,this.promise):this.resolve(this.result)}).prototype={waiting:0,initialized:!1,process:function(e,t){if(++this.waiting,e=A(e),m(e)){if(!e.resolved)return e.done(this.processCb.bind(this,t),this.reject),!0;if(e.failed)return this.reject(e.value),!1;e=e.value}return this.processCb(t,e)},processCb:function(e,t){if(this.promise.resolved)return!1;if(this.cb){try{t=v.call(this.cb,this.context,t,e,this.list)}catch(e){return this.reject(e),!1}if(t=A(t),m(t)){if(!t.resolved)return t.done(this.processValue.bind(this,e),this.reject),!0;if(t.failed)return this.reject(t.value),!1;t=t.value}}return this.processValue(e,t),!0},processValue:function(e,t){this.promise.resolved||(this.result[e]=t,!--this.waiting&&this.initialized&&this.resolve(this.result))}},e.exports=function(e){return c(this),l(e)&&h(e),new r(this,e,arguments[1])}},2259:function(e,t,n){"use strict";var r,o=n(90),l=n(23),c=n(49),h=n(32),d=n(65),f=n(26),m=n(41),A=n(91),y=Function.prototype.call,v=f.resolve;(r=function(e,t,n,r){if(this.list=e,this.cb=t,this.initialized=r,this.length=d(e.length),n=A(n),m(n)){if(!n.resolved)return o(this,f()),n.done(function(e){this.value=e,this.init()}.bind(this),this.reject),this.promise;if(this.value=n.value,n.failed)return n}else this.value=n;return this.init()}).prototype={current:0,state:!1,init:function(){for(;this.current<this.length&&!hasOwnProperty.call(this.list,this.current);)++this.current;if(this.current===this.length){if(!this.initialized)throw new Error("Reduce of empty array with no initial value");return this.resolve?this.resolve(this.value):v(this.value)}return this.promise||o(this,f()),this.processCb=this.processCb.bind(this),this.processValue=this.processValue.bind(this),this.continue(),this.promise},continue:function(){for(var e;!this.state&&(e=this.process(),"cb"===this.state)&&(e=this.processCb(e),"value"===this.state);)this.processValue(e)},process:function(){var e=A(this.list[this.current]);if(m(e)){if(!e.resolved)return e.done(function(e){e=this.processCb(e),"value"===this.state&&(this.processValue(e),this.state||this.continue())}.bind(this),this.reject),null;if(e.failed)return this.reject(e.value),null;e=e.value}return this.state="cb",e},processCb:function(e){if(!this.initialized)return this.initialized=!0,this.state="value",e;if(this.cb){try{e=y.call(this.cb,void 0,this.value,e,this.current,this.list)}catch(e){return this.reject(e),null}if(e=A(e),m(e)){if(!e.resolved)return e.done(function(e){this.state="value",this.processValue(e),this.state||this.continue()}.bind(this),this.reject),null;if(e.failed)return this.reject(e.value),null;e=e.value}}return this.state="value",e},processValue:function(e){for(this.value=e;++this.current<this.length;)if(hasOwnProperty.call(this.list,this.current))return void(this.state=!1);this.resolve(this.value)}},e.exports=function(e){return c(this),l(e)&&h(e),new r(this,e,arguments[1],arguments.length>1)}},2260:function(e,t,n){"use strict";e.exports=n(2257)(!0)},2261:function(e,t,n){"use strict";(function(e){var r=n(2941),o=n(2942),l=n(2943);function c(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(e,t){if(c()<t)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=d.prototype:(null===e&&(e=new d(t)),e.length=t),e}function d(e,t,n){if(!(d.TYPED_ARRAY_SUPPORT||this instanceof d))return new d(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return A(this,e)}return f(this,e,t,n)}function f(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);d.TYPED_ARRAY_SUPPORT?(e=t).__proto__=d.prototype:e=y(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!d.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|_(t,n),o=(e=h(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}
vendor: 17,546 bytes, line 2
2(e,t,n):function(e,t){if(d.isBuffer(t)){var n=0|v(t.length);return 0===(e=h(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?h(e,0):y(e,t);if("Buffer"===t.type&&l(t.data))return y(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function m(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function A(e,t){if(m(t),e=h(e,t<0?0:0|v(t)),!d.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function y(e,t){var n=t.length<0?0:0|v(t.length);e=h(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function v(e){if(e>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|e}function _(e,t){if(d.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(r)return $(e).length;t=(""+t).toLowerCase(),r=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return U(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(b,e,t){var i=b[e];b[e]=b[t],b[t]=i}function E(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=d.from(t,r)),d.isBuffer(t))return 0===t.length?-1:C(e,t,n,r,o);if("number"==typeof t)return t&=255,d.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function C(e,t,n,r,o){var i,l=1,c=e.length,h=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;l=2,c/=2,h/=2,n/=2}function d(e,i){return 1===l?e[i]:e.readUInt16BE(i*l)}if(o){var f=-1;for(i=n;i<c;i++)if(d(e,i)===d(t,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===h)return f*l}else-1!==f&&(i-=i-f),f=-1}else for(n+h>c&&(n=c-h),i=n;i>=0;i--){for(var m=!0,A=0;A<h;A++)if(d(e,i+A)!==d(t,A)){m=!1;break}if(m)return i}return-1}function S(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var l=t.length;if(l%2!=0)throw new TypeError("Invalid hex string");r>l/2&&(r=l/2);for(var i=0;i<r;++i){var c=parseInt(t.substr(2*i,2),16);if(isNaN(c))return i;e[n+i]=c}return i}function T(e,t,n,r){return W($(t,e.length-n),e,n,r)}function B(e,t,n,r){return W(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,n,r)}function k(e,t,n,r){return B(e,t,n,r)}function I(e,t,n,r){return W(Y(t),e,n,r)}function M(e,t,n,r){return W(function(e,t){for(var n,r,o,l=[],i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),r=n>>8,o=n%256,l.push(o),l.push(r);return l}(t,e.length-n),e,n,r)}function P(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function D(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,l,c,h,d=e[i],f=null,m=d>239?4:d>223?3:d>191?2:1;if(i+m<=n)switch(m){case 1:d<128&&(f=d);break;case 2:128==(192&(o=e[i+1]))&&(h=(31&d)<<6|63&o)>127&&(f=h);break;case 3:o=e[i+1],l=e[i+2],128==(192&o)&&128==(192&l)&&(h=(15&d)<<12|(63&o)<<6|63&l)>2047&&(h<55296||h>57343)&&(f=h);break;case 4:o=e[i+1],l=e[i+2],c=e[i+3],128==(192&o)&&128==(192&l)&&128==(192&c)&&(h=(15&d)<<18|(63&o)<<12|(63&l)<<6|63&c)>65535&&h<1114112&&(f=h)}null===f?(f=65533,m=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=m}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(r)}t.Buffer=d,t.SlowBuffer=function(e){+e!=e&&(e=0);return d.alloc(+e)},t.INSPECT_MAX_BYTES=50,d.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=c(),d.poolSize=8192,d._augment=function(e){return e.__proto__=d.prototype,e},d.from=function(e,t,n){return f(null,e,t,n)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0})),d.alloc=function(e,t,n){return function(e,t,n,r){return m(t),t<=0?h(e,t):void 0!==n?"string"==typeof r?h(e,t).fill(n,r):h(e,t).fill(n):h(e,t)}(null,e,t,n)},d.allocUnsafe=function(e){return A(null,e)},d.allocUnsafeSlow=function(e){return A(null,e)},d.isBuffer=function(b){return!(null==b||!b._isBuffer)},d.compare=function(a,b){if(!d.isBuffer(a)||!d.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var e=a.length,t=b.length,i=0,n=Math.min(e,t);i<n;++i)if(a[i]!==b[i]){e=a[i],t=b[i];break}return e<t?-1:t<e?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(!l(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=d.allocUnsafe(t),r=0;for(i=0;i<e.length;++i){var o=e[i];if(!d.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,r),r+=o.length}return n},d.byteLength=_,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 i=0;i<e;i+=2)x(this,i,i+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 i=0;i<e;i+=4)x(this,i,i+3),x(this,i+1,i+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 i=0;i<e;i+=8)x(this,i,i+7),x(this,i+1,i+6),x(this,i+2,i+5),x(this,i+3,i+4);return this},d.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?D(this,0,e):w.apply(this,arguments)},d.prototype.equals=function(b){if(!d.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===d.compare(this,b)},d.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},d.prototype.compare=function(e,t,n,r,o){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var l=(o>>>=0)-(r>>>=0),c=(n>>>=0)-(t>>>=0),h=Math.min(l,c),f=this.slice(r,o),m=e.slice(t,n),i=0;i<h;++i)if(f[i]!==m[i]){l=f[i],c=m[i];break}return l<c?-1:c<l?1:0},d.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},d.prototype.indexOf=function(e,t,n){return E(this,e,t,n,!0)},d.prototype.lastIndexOf=function(e,t,n){return E(this,e,t,n,!1)},d.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var l=!1;;)switch(r){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":return B(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return I(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,n);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=K(e[i]);return o}function R(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,l){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<l)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function z(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function H(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function Q(e,t,n,r,o,l){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,l){return l||Q(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,l){return l||Q(e,0,n,8),o.write(e,t,n,r,52,8),n+8}d.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),d.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=d.prototype;else{var o=t-e;n=new d(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},d.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},d.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},d.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},d.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},d.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},d.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(e,t){return t||N(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 t||N(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 t||N(e,4,this.length),o.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},d.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},d.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},d.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},d.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,l=1,sub=0;for(this[t]=255&e;++i<n&&(l*=256);)e<0&&0===sub&&0!==this[t+i-1]&&(sub=1),this[t+i]=(e/l>>0)-sub&255;return t+n},d.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-1,l=1,sub=0;for(this[t+i]=255&e;--i>=0&&(l*=256);)e<0&&0===sub&&0!==this[t+i+1]&&(sub=1),this[t+i]=(e/l>>0)-sub&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},d.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},d.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},d.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!d.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},d.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var code=e.charCodeAt(0);code<256&&(e=code)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!d.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=d.isBuffer(e)?e:$(new d(e,r).toString()),l=o.length;for(i=0;i<n-t;++i)this[i+t]=o[i%l]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function K(e){return e<16?"0"+e.toString(16):e.toString(16)}function $(e,t){var n;t=t||1/0;for(var r=e.length,o=null,l=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>
2-1&&l.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&l.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&l.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&l.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;l.push(n)}else if(n<2048){if((t-=2)<0)break;l.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;l.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;l.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return l}function Y(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(31))},2262:function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},2263:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(31))},2264:function(e,t,n){var r=n(169),o=n(2962),l=n(2963),c=n(2964),h=n(2965),d=n(2966);function f(e){var data=this.__data__=new r(e);this.size=data.size}f.prototype.clear=o,f.prototype.delete=l,f.prototype.get=c,f.prototype.has=h,f.prototype.set=d,e.exports=f},2265:function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2266:function(e,t,n){var r=n(132),o=n(1635);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},2267:function(e,t,n){n(13);var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2268:function(e,t,n){var r=n(2983),o=n(115);e.exports=function e(t,n,l,c,h){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,l,c,e,h))}},2269:function(e,t,n){var r=n(2270),o=n(2986),l=n(2271);e.exports=function(e,t,n,c,h,d){var f=1&n,m=e.length,A=t.length;if(m!=A&&!(f&&A>m))return!1;var y=d.get(e),v=d.get(t);if(y&&v)return y==t&&v==e;var _=-1,w=!0,x=2&n?new r:void 0;for(d.set(e,t),d.set(t,e);++_<m;){var E=e[_],C=t[_];if(c)var S=f?c(C,E,_,t,e,d):c(E,C,_,e,t,d);if(void 0!==S){if(S)continue;w=!1;break}if(x){if(!o(t,(function(e,t){if(!l(x,t)&&(E===e||h(E,e,n,c,d)))return x.push(t)}))){w=!1;break}}else if(E!==C&&!h(E,C,n,c,d)){w=!1;break}}return d.delete(e),d.delete(t),w}},2270:function(e,t,n){var r=n(1636),o=n(2984),l=n(2985);function c(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}c.prototype.add=c.prototype.push=o,c.prototype.has=l,e.exports=c},2271:function(e,t){e.exports=function(e,t){return e.has(t)}},2272:function(e,t,n){var r=n(2996),o=n(3002),l=n(2276);e.exports=function(object){return l(object)?r(object):o(object)}},2273:function(e,t,n){(function(e){var r=n(82),o=n(2998),l=t&&!t.nodeType&&t,c=l&&"object"==typeof e&&e&&!e.nodeType&&e,h=c&&c.exports===l?r.Buffer:void 0,d=(h?h.isBuffer:void 0)||o;e.exports=d}).call(this,n(2127)(e))},2274:function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},2275:function(e,t,n){var r=n(2999),o=n(3e3),l=n(3001),c=l&&l.isTypedArray,h=c?o(c):r;e.exports=h},2276:function(e,t,n){var r=n(2266),o=n(1638);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},2280:function(e,t,n){var r=n(101)(n(82),"Set");e.exports=r},2281:function(e,t,n){var r=n(1635);e.exports=function(e){return e==e&&!r(e)}},2282:function(e,t){e.exports=function(e,t){return function(object){return null!=object&&(object[e]===t&&(void 0!==t||e in Object(object)))}}},2283:function(e,t,n){var r=n(2284),o=n(173);e.exports=function(object,path){for(var e=0,t=(path=r(path,object)).length;null!=object&&e<t;)object=object[o(path[e++])];return e&&e==t?object:void 0}},2284:function(e,t,n){var r=n(83),o=n(1639),l=n(3017),c=n(3020);e.exports=function(e,object){return r(e)?e:o(e,object)?[e]:l(c(e))}},2286:function(e,t,n){var r,o;n(19),n(15),n(22),n(59),n(13),n(34),n(12),n(35),n(14),void 0===(o="function"==typeof(r=function(){"use strict";return function(e,b,t,n){var r={features:null,bind:function(a,b,e,t){var n=(t?"remove":"add")+"EventListener";b=b.split(" ");for(var r=0;r<b.length;r++)b[r]&&a[n](b[r],e,!1)},isArray:function(a){return a instanceof Array},createEl:function(a,b){var e=document.createElement(b||"div");return a&&(e.className=a),e},getScrollY:function(){var a=window.pageYOffset;return void 0!==a?a:document.documentElement.scrollTop},unbind:function(a,b,e){r.bind(a,b,e,!0)},removeClass:function(a,b){var e=new RegExp("(\\s|^)"+b+"(\\s|$)");a.className=a.className.replace(e," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(a,b){r.hasClass(a,b)||(a.className+=(a.className?" ":"")+b)},hasClass:function(a,b){return a.className&&new RegExp("(^|\\s)"+b+"(\\s|$)").test(a.className)},getChildByClass:function(a,b){for(var e=a.firstChild;e;){if(r.hasClass(e,b))return e;e=e.nextSibling}},arraySearch:function(a,b,e){for(var t=a.length;t--;)if(a[t][e]===b)return t;return-1},extend:function(a,b,e){for(var t in b)if(b.hasOwnProperty(t)){if(e&&a.hasOwnProperty(t))continue;a[t]=b[t]}},easing:{sine:{out:function(a){return Math.sin(a*(Math.PI/2))},inOut:function(a){return-(Math.cos(Math.PI*a)-1)/2}},cubic:{out:function(a){return--a*a*a+1}}},detectFeatures:function(){if(r.features)return r.features;var b=r.createEl().style,e="",t={};if(t.oldIE=document.all&&!document.addEventListener,t.touch="ontouchstart"in window,window.requestAnimationFrame&&(t.raf=window.requestAnimationFrame,t.caf=window.cancelAnimationFrame),t.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!t.pointerEvent){var n=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var g=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);g&&g.length>0&&(g=parseInt(g[1],10))>=1&&g<8&&(t.isOldIOSPhone=!0)}var o=n.match(/Android\s([0-9\.]*)/),i=o?o[1]:0;(i=parseFloat(i))>=1&&(i<4.4&&(t.isOldAndroid=!0),t.androidVersion=i),t.isMobileOpera=/opera mini|o
2pera mobi/i.test(n)}for(var l,c,h=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],f=0;f<4;f++){e=d[f];for(var m=0;m<3;m++)l=h[m],c=e+(e?l.charAt(0).toUpperCase()+l.slice(1):l),!t[l]&&c in b&&(t[l]=c);e&&!t.raf&&(e=e.toLowerCase(),t.raf=window[e+"RequestAnimationFrame"],t.raf&&(t.caf=window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"]))}if(!t.raf){var p=0;t.raf=function(a){var b=(new Date).getTime(),e=Math.max(0,16-(b-p)),t=window.setTimeout((function(){a(b+e)}),e);return p=b+e,t},t.caf=function(a){clearTimeout(a)}}return t.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r.features=t,t}};r.detectFeatures(),r.features.oldIE&&(r.bind=function(a,b,e,t){b=b.split(" ");for(var n,r=(t?"detach":"attach")+"Event",g=function(){e.handleEvent.call(e)},o=0;o<b.length;o++)if(n=b[o])if("object"==typeof e&&e.handleEvent){if(t){if(!e["oldIE"+n])return!1}else e["oldIE"+n]=g;a[r]("on"+n,e["oldIE"+n])}else a[r]("on"+n,e)});var o=this,i={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(a){return"A"===a.tagName},getDoubleTapZoom:function(a,b){return a||b.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};r.extend(i,n);var l,c,h,d,f,m,p,q,A,s,y,u,v,_,w,x,E,C,S,T,B,k,I,M,P,D,U,O,F,R,N,L,z,H,Q,V,j,G,K,$,Y,W,X,J,Z,ee,te,ne,re,ie,se,ae,oe,le,ce,ue,he={x:0,y:0},de={x:0,y:0},pe={x:0,y:0},fe={},me=0,Ae={},ge={x:0,y:0},ye=0,ve=!0,_e=[],be={},we=!1,xe=function(a,b){r.extend(o,b.publicMethods),_e.push(a)},Ee=function(a){var b=Vt();return a>b-1?a-b:a<0?b+a:a},Ce={},Se=function(a,b){return Ce[a]||(Ce[a]=[]),Ce[a].push(b)},Te=function(a){var b=Ce[a];if(b){var e=Array.prototype.slice.call(arguments);e.shift();for(var t=0;t<b.length;t++)b[t].apply(o,e)}},Be=function(){return(new Date).getTime()},ke=function(a){le=a,o.bg.style.opacity=a*i.bgOpacity},Ie=function(a,b,e,t,n){(!we||n&&n!==o.currItem)&&(t/=n?n.fitRatio:o.currItem.fitRatio),a[k]=u+b+"px, "+e+"px"+v+" scale("+t+")"},Me=function(a){re&&(a&&(s>o.currItem.fitRatio?we||(Jt(o.currItem,!1,!0),we=!0):we&&(Jt(o.currItem),we=!1)),Ie(re,pe.x,pe.y,s))},Pe=function(a){a.container&&Ie(a.container.style,a.initialPosition.x,a.initialPosition.y,a.initialZoomLevel,a)},De=function(a,b){b[k]=u+a+"px, 0px"+v},Ue=function(a,b){if(!i.loop&&b){var e=d+(ge.x*me-a)/ge.x,t=Math.round(a-ft.x);(e<0&&t>0||e>=Vt()-1&&t<0)&&(a=ft.x+t*i.mainScrollEndFriction)}ft.x=a,De(a,f)},Oe=function(a,b){var e=mt[a]-Ae[a];return de[a]+he[a]+e-e*(b/y)},Fe=function(a,b){a.x=b.x,a.y=b.y,b.id&&(a.id=b.id)},Re=function(a){a.x=Math.round(a.x),a.y=Math.round(a.y)},Ne=null,Le=function t(){Ne&&(r.unbind(document,"mousemove",t),r.addClass(e,"pswp--has_mouse"),i.mouseUsed=!0,Te("mouseUsed")),Ne=setTimeout((function(){Ne=null}),100)},ze=function(a,b){var e=$t(o.currItem,fe,a);return b&&(ne=e),e},He=function(a){return a||(a=o.currItem),a.initialZoomLevel},Qe=function(a){return a||(a=o.currItem),a.w>0?i.maxSpreadZoom:1},Ve=function(a,b,e,t){return t===o.currItem.initialZoomLevel?(e[a]=o.currItem.initialPosition[a],!0):(e[a]=Oe(a,t),e[a]>b.min[a]?(e[a]=b.min[a],!0):e[a]<b.max[a]&&(e[a]=b.max[a],!0))},je=function(a){var b="";i.escKey&&27===a.keyCode?b="close":i.arrowKeys&&(37===a.keyCode?b="prev":39===a.keyCode&&(b="next")),b&&(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey||(a.preventDefault?a.preventDefault():a.returnValue=!1,o[b]()))},Ge=function(a){a&&(W||Y||ie||j)&&(a.preventDefault(),a.stopPropagation())},Ke=function(){o.setScrollOffset(0,r.getScrollY())},qe={},$e=0,Ye=function(a){qe[a]&&(qe[a].raf&&D(qe[a].raf),$e--,delete qe[a])},We=function(a){qe[a]&&Ye(a),qe[a]||($e++,qe[a]={})},Xe=function(){for(var a in qe)qe.hasOwnProperty(a)&&Ye(a)},Je=function(a,b,e,t,n,r,g){var o,i=Be();We(a),function l(){if(qe[a]){if((o=Be()-i)>=t)return Ye(a),r(e),void(g&&g());
2r((e-b)*n(o/t)+b),qe[a].raf=P(l)}}()},Ze={shout:Te,listen:Se,viewportSize:fe,options:i,isMainScrollAnimating:function(){return ie},getZoomLevel:function(){return s},getCurrentIndex:function(){return d},isDragging:function(){return K},isZooming:function(){return ee},setScrollOffset:function(a,b){Ae.x=a,R=Ae.y=b,Te("updateScrollOffset",Ae)},applyZoomPan:function(a,b,e,t){pe.x=b,pe.y=e,s=a,Me(t)},init:function(){if(!l&&!c){var t;o.framework=r,o.template=e,o.bg=r.getChildByClass(e,"pswp__bg"),U=e.className,l=!0,N=r.detectFeatures(),P=N.raf,D=N.caf,k=N.transform,F=N.oldIE,o.scrollWrap=r.getChildByClass(e,"pswp__scroll-wrap"),o.container=r.getChildByClass(o.scrollWrap,"pswp__container"),f=o.container.style,o.itemHolders=x=[{el:o.container.children[0],wrap:0,index:-1},{el:o.container.children[1],wrap:0,index:-1},{el:o.container.children[2],wrap:0,index:-1}],x[0].el.style.display=x[2].el.style.display="none",function(){if(k){var b=N.perspective&&!M;return u="translate"+(b?"3d(":"("),void(v=N.perspective?", 0px)":")")}k="left",r.addClass(e,"pswp--ie"),De=function(a,b){b.left=a+"px"},Pe=function(a){var b=a.fitRatio>1?1:a.fitRatio,e=a.container.style,t=b*a.w,n=b*a.h;e.width=t+"px",e.height=n+"px",e.left=a.initialPosition.x+"px",e.top=a.initialPosition.y+"px"},Me=function(){if(re){var a=re,b=o.currItem,e=b.fitRatio>1?1:b.fitRatio,t=e*b.w,n=e*b.h;a.width=t+"px",a.height=n+"px",a.left=pe.x+"px",a.top=pe.y+"px"}}}(),A={resize:o.updateSize,orientationchange:function(){clearTimeout(L),L=setTimeout((function(){fe.x!==o.scrollWrap.clientWidth&&o.updateSize()}),500)},scroll:Ke,keydown:je,click:Ge};var n=N.isOldIOSPhone||N.isOldAndroid||N.isMobileOpera;for(N.animationName&&N.transform&&!n||(i.showAnimationDuration=i.hideAnimationDuration=0),t=0;t<_e.length;t++)o["init"+_e[t]]();b&&(o.ui=new b(o,r)).init(),Te("firstUpdate"),d=d||i.index||0,(isNaN(d)||d<0||d>=Vt())&&(d=0),o.currItem=Qt(d),(N.isOldIOSPhone||N.isOldAndroid)&&(ve=!1),e.setAttribute("aria-hidden","false"),i.modal&&(ve?e.style.position="fixed":(e.style.position="absolute",e.style.top=r.getScrollY()+"px")),void 0===R&&(Te("initialLayout"),R=O=r.getScrollY());var h="pswp--open ";for(i.mainClass&&(h+=i.mainClass+" "),i.showHideOpacity&&(h+="pswp--animate_opacity "),h+=M?"pswp--touch":"pswp--notouch",h+=N.animationName?" pswp--css_animation":"",h+=N.svg?" pswp--svg":"",r.addClass(e,h),o.updateSize(),m=-1,ye=null,t=0;t<3;t++)De((t+m)*ge.x,x[t].el.style);F||r.bind(o.scrollWrap,q,o),Se("initialZoomInEnd",(function(){o.setContent(x[0],d-1),o.setContent(x[2],d+1),x[0].el.style.display=x[2].el.style.display="block",i.focus&&e.focus(),r.bind(document,"keydown",o),N.transform&&r.bind(o.scrollWrap,"click",o),i.mouseUsed||r.bind(document,"mousemove",Le),r.bind(window,"resize scroll orientationchange",o),Te("bindEvents")})),o.setContent(x[1],d),o.updateCurrItem(),Te("afterInit"),ve||(_=setInterval((function(){$e||K||ee||s!==o.currItem.initialZoomLevel||o.updateSize()}),1e3)),r.addClass(e,"pswp--visible")}},close:function(){l&&(l=!1,c=!0,Te("close"),r.unbind(window,"resize scroll orientationchange",o),r.unbind(window,"scroll",A.scroll),r.unbind(document,"keydown",o),r.unbind(document,"mousemove",Le),N.transform&&r.unbind(o.scrollWrap,"click",o),K&&r.unbind(window,p,o),clearTimeout(L),Te("unbindEvents"),jt(o.currItem,null,!0,o.destroy))},destroy:function(){Te("destroy"),Nt&&clearTimeout(Nt),e.setAttribute("aria-hidden","true"),e.className=U,_&&clearInterval(_),r.unbind(o.scrollWrap,q,o),r.unbind(window,"scroll",o),yt(),Xe(),Ce=null},panTo:function(a,b,e){e||(a>ne.min.x?a=ne.min.x:a<ne.max.x&&(a=ne.max.x),b>ne.min.y?b=ne.min.y:b<ne.max.y&&(b=ne.max.y)),pe.x=a,pe.y=b,Me()},handleEvent:function(a){a=a||window.event,A[a.type]&&A[a.type](a)},goTo:function(a){var b=(a=Ee(a))-d;ye=b,d=a,o.currItem=Qt(d),me-=b,Ue(ge.x*me),Xe(),ie=!1,o.updateCurrItem()},next:function(){o.goTo(d+1)},prev:function(){o.goTo(d-1)},updateCurrZoomItem:function(a){if(a&&Te("beforeChange",0),x[1].el.children.length){var b=x[1].el.children[0];re=r.hasClass(b,"pswp__zoom-wrap")?b.style:null}else re=null;ne=o.currItem.bounds,y=s=o.currItem.initialZoomLevel,pe.x=ne.center.x,pe.y=ne.center.y,a&&Te("afterChange")},invalidateCurrItems:function(){w=!0;for(var a=0;a<3;a++)x[a].item&&(x[a].item.needsUpdate=!0)}
vendor: 4,901 bytes, line 2
2,updateCurrItem:function(a){if(0!==ye){var b,e=Math.abs(ye);if(!(a&&e<2)){o.currItem=Qt(d),we=!1,Te("beforeChange",ye),e>=3&&(m+=ye+(ye>0?-3:3),e=3);for(var t=0;t<e;t++)ye>0?(b=x.shift(),x[2]=b,m++,De((m+2)*ge.x,b.el.style),o.setContent(b,d-e+t+1+1)):(b=x.pop(),x.unshift(b),m--,De(m*ge.x,b.el.style),o.setContent(b,d+e-t-1-1));if(re&&1===Math.abs(ye)){var n=Qt(E);n.initialZoomLevel!==s&&($t(n,fe),Jt(n),Pe(n))}ye=0,o.updateCurrZoomItem(),E=d,Te("afterChange")}}},updateSize:function(b){if(!ve&&i.modal){var t=r.getScrollY();if(R!==t&&(e.style.top=t+"px",R=t),!b&&be.x===window.innerWidth&&be.y===window.innerHeight)return;be.x=window.innerWidth,be.y=window.innerHeight,e.style.height=be.y+"px"}if(fe.x=o.scrollWrap.clientWidth,fe.y=o.scrollWrap.clientHeight,Ke(),ge.x=fe.x+Math.round(fe.x*i.spacing),ge.y=fe.y,Ue(ge.x*me),Te("beforeResize"),void 0!==m){for(var n,g,l,c=0;c<3;c++)n=x[c],De((c+m)*ge.x,n.el.style),l=d+c-1,i.loop&&Vt()>2&&(l=Ee(l)),(g=Qt(l))&&(w||g.needsUpdate||!g.bounds)?(o.cleanSlide(g),o.setContent(n,l),1===c&&(o.currItem=g,o.updateCurrZoomItem(!0)),g.needsUpdate=!1):-1===n.index&&l>=0&&o.setContent(n,l),g&&g.container&&($t(g,fe),Jt(g),Pe(g));w=!1}y=s=o.currItem.initialZoomLevel,(ne=o.currItem.bounds)&&(pe.x=ne.center.x,pe.y=ne.center.y,Me(!0)),Te("resize")},zoomTo:function(a,b,e,t,n){b&&(y=s,mt.x=Math.abs(b.x)-pe.x,mt.y=Math.abs(b.y)-pe.y,Fe(de,pe));var g=ze(a,!1),o={};Ve("x",g,o,a),Ve("y",g,o,a);var i=s,l=pe.x,c=pe.y;Re(o);var h=function(b){1===b?(s=a,pe.x=o.x,pe.y=o.y):(s=(a-i)*b+i,pe.x=(o.x-l)*b+l,pe.y=(o.y-c)*b+c),n&&n(b),Me(1===b)};e?Je("customZoomTo",0,1,e,t||r.easing.sine.inOut,h):h(1)}},et={},tt={},nt={},it={},st={},at=[],ot={},lt=[],ct={},ut=0,ht={x:0,y:0},pt=0,ft={x:0,y:0},mt={x:0,y:0},At={x:0,y:0},gt=function(a,b){return ct.x=Math.abs(a.x-b.x),ct.y=Math.abs(a.y-b.y),Math.sqrt(ct.x*ct.x+ct.y*ct.y)},yt=function(){X&&(D(X),X=null)},vt={},_t=function(a,b){return vt.prevent=!function e(a,b){return!(!a||a===document)&&!(a.getAttribute("class")&&a.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(b(a)?a:e(a.parentNode,b))}(a.target,i.isClickableElement),Te("preventDragEvent",a,b,vt),vt.prevent},bt=function(a,b){return b.x=a.pageX,b.y=a.pageY,b.id=a.identifier,b},wt=function(a,b,e){e.x=.5*(a.x+b.x),e.y=.5*(a.y+b.y)},xt=function(){var a=pe.y-o.currItem.initialPosition.y;return 1-Math.abs(a/(fe.y/2))},Et={},Ct={},St=[],Tt=function(a){for(;St.length>0;)St.pop();return I?(ue=0,at.forEach((function(a){0===ue?St[0]=a:1===ue&&(St[1]=a),ue++}))):a.type.indexOf("touch")>-1?a.touches&&a.touches.length>0&&(St[0]=bt(a.touches[0],Et),a.touches.length>1&&(St[1]=bt(a.touches[1],Ct))):(Et.x=a.pageX,Et.y=a.pageY,Et.id="",St[0]=Et),St},Bt=function(a,b){var e,t,n,g,r=pe[a]+b[a],l=b[a]>0,c=ft.x+b.x,h=ft.x-ot.x;return e=r>ne.min[a]||r<ne.max[a]?i.panEndFriction:1,r=pe[a]+b[a]*e,!i.allowPanToNext&&s!==o.currItem.initialZoomLevel||(re?"h"!==se||"x"!==a||Y||(l?(r>ne.min[a]&&(e=i.panEndFriction,ne.min[a],t=ne.min[a]-de[a]),(t<=0||h<0)&&Vt()>1?(g=c,h<0&&c>ot.x&&(g=ot.x)):ne.min.x!==ne.max.x&&(n=r)):(r<ne.max[a]&&(e=i.panEndFriction,ne.max[a],t=de[a]-ne.max[a]),(t<=0||h>0)&&Vt()>1?(g=c,h>0&&c<ot.x&&(g=ot.x)):ne.min.x!==ne.max.x&&(n=r))):g=c,"x"!==a)?void(ie||J||s>o.currItem.fitRatio&&(pe[a]+=b[a]*e)):(void 0!==g&&(Ue(g,!0),J=g!==ot.x),ne.min.x!==ne.max.x&&(void 0!==n?pe.x=n:J||(pe.x+=b.x*e)),void 0!==g)},kt=function(a){if(!("mousedown"===a.type&&a.button>0)){if(Ht)return void a.preventDefault();if(!G||"mousedown"!==a.type){if(_t(a,!0)&&a.preventDefault(),Te("pointerDown"),I){var b=r.arraySearch(at,a.pointerId,"id");b<0&&(b=at.length),at[b]={x:a.pageX,y:a.pageY,id:a.pointerId}}var e=Tt(a),t=e.length;Z=null,Xe(),K&&1!==t||(K=ae=!0,r.bind(window,p,o),V=ce=oe=j=J=W=$=Y=!1,se=null,Te("firstTouchStart",e),Fe(de,pe),he.x=he.y=0,Fe(it,e[0]),Fe(st,it),ot.x=ge.x*me,lt=[{x:it.x,y:it.y}],H=z=Be(),ze(s,!0),yt(),function e(){K&&(X=P(e),Mt())}()),!ee&&t>1&&!ie&&!J&&(y=s,Y=!1,ee=$=!0,he.y=he.x=0,Fe(de,pe),Fe(et,e[0]),Fe(tt,e[1]),wt(et,tt,At),mt.x=Math.abs(At.x)-pe.x,mt.y=Math.abs(At.y)-pe.y,te=gt(et,tt))}}},It=function(a){if(a.preventDefault(),I){var b=r.arraySearch(at,a.pointerId,"id");if(b>-1){var e=at[b];e.x=a.pageX,e.y=a.pageY}}if(K){var t=Tt(a);if(se||W||ee)Z=t;else if(ft.x!==ge.x*me)se="h";else{var n=Math.abs(t[0].x-it.x)-Math.abs(t[0].y-it.y);Math.abs(n)>=10&&(se=n>0?"h":"v",Z=t)}}},Mt=function(){if(Z){var a=Z.length;if(0!==a)if(Fe(et,Z[0]),nt.x=et.x-it.x,nt.y=et.y-it.y,ee&&a>1){if(it.x=et.x,it.y=et.y,!nt.x&&!nt.y&&function(a,b){return a.x===b.x&&a.y===b.y}(Z[1],tt))return;Fe(tt,Z[1]),Y||(Y=!0,Te("zoomGestureStarted"));var b=gt(et,tt),e=Ft(b);e>o.currItem.initialZoomLevel+o.currItem.initialZoomLevel/15&&(ce=!0);var t=1,n=He(),g=Qe();if(e<n)if(i.pinchToClose&&!ce&&y<=o.currItem.initialZoomLevel){var r=1-(n-e)/(n/1.2);ke(r),Te("onPinchClose",r),oe=!0}else(t=(n-e)/n)>1&&(t=1),e=n-t*(n/3);else e>g&&((t=(e-g)/(6*n))>1&&(t=1),e=g+t*n);
2t<0&&(t=0),wt(et,tt,ht),he.x+=ht.x-At.x,he.y+=ht.y-At.y,Fe(At,ht),pe.x=Oe("x",e),pe.y=Oe("y",e),V=e>s,s=e,Me()}else{if(!se)return;if(ae&&(ae=!1,Math.abs(nt.x)>=10&&(nt.x-=Z[0].x-st.x),Math.abs(nt.y)>=10&&(nt.y-=Z[0].y-st.y)),it.x=et.x,it.y=et.y,0===nt.x&&0===nt.y)return;if("v"===se&&i.closeOnVerticalDrag&&"fit"===i.scaleMode&&s===o.currItem.initialZoomLevel){he.y+=nt.y,pe.y+=nt.y;var l=xt();return j=!0,Te("onVerticalDrag",l),ke(l),void Me()}(function(a,b,e){if(a-H>50){var t=lt.length>2?lt.shift():{};t.x=b,t.y=e,lt.push(t),H=a}})(Be(),et.x,et.y),W=!0,ne=o.currItem.bounds,Bt("x",nt)||(Bt("y",nt),Re(pe),Me())}}},Pt=function(a){if(N.isOldAndroid){if(G&&"mouseup"===a.type)return;a.type.indexOf("touch")>-1&&(clearTimeout(G),G=setTimeout((function(){G=0}),600))}var b;if(Te("pointerUp"),_t(a,!1)&&a.preventDefault(),I){var e=r.arraySearch(at,a.pointerId,"id");e>-1&&(b=at.splice(e,1)[0],navigator.msPointerEnabled?(b.type={4:"mouse",2:"touch",3:"pen"}[a.pointerType],b.type||(b.type=a.pointerType||"mouse")):b.type=a.pointerType||"mouse")}var g,t=Tt(a),n=t.length;if("mouseup"===a.type&&(n=0),2===n)return Z=null,!0;1===n&&Fe(st,t[0]),0!==n||se||ie||(b||("mouseup"===a.type?b={x:a.pageX,y:a.pageY,type:"mouse"}:a.changedTouches&&a.changedTouches[0]&&(b={x:a.changedTouches[0].pageX,y:a.changedTouches[0].pageY,type:"touch"})),Te("touchRelease",a,b));var l=-1;if(0===n&&(K=!1,r.unbind(window,p,o),yt(),ee?l=0:-1!==pt&&(l=Be()-pt)),pt=1===n?Be():-1,g=-1!==l&&l<150?"zoom":"swipe",ee&&n<2&&(ee=!1,1===n&&(g="zoomPointerUp"),Te("zoomGestureEnded")),Z=null,W||Y||ie||j)if(Xe(),Q||(Q=Dt()),Q.calculateSwipeSpeed("x"),j)if(xt()<i.verticalDragRange)o.close();else{var c=pe.y,h=le;Je("verticalDrag",0,1,300,r.easing.cubic.out,(function(a){pe.y=(o.currItem.initialPosition.y-c)*a+c,ke((1-h)*a+h),Me()})),Te("onVerticalDrag",1)}else{if((J||ie)&&0===n){if(Ot(g,Q))return;g="zoomPointerUp"}if(!ie)return"swipe"!==g?void Rt():void(!J&&s>o.currItem.fitRatio&&Ut(Q))}},Dt=function(){var a,b,e={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(t){lt.length>1?(a=Be()-H+50,b=lt[lt.length-2][t]):(a=Be()-z,b=st[t]),e.lastFlickOffset[t]=it[t]-b,e.lastFlickDist[t]=Math.abs(e.lastFlickOffset[t]),e.lastFlickDist[t]>20?e.lastFlickSpeed[t]=e.lastFlickOffset[t]/a:e.lastFlickSpeed[t]=0,Math.abs(e.lastFlickSpeed[t])<.1&&(e.lastFlickSpeed[t]=0),e.slowDownRatio[t]=.95,e.slowDownRatioReverse[t]=1-e.slowDownRatio[t],e.speedDecelerationRatio[t]=1},calculateOverBoundsAnimOffset:function(a,b){e.backAnimStarted[a]||(pe[a]>ne.min[a]?e.backAnimDestination[a]=ne.min[a]:pe[a]<ne.max[a]&&(e.backAnimDestination[a]=ne.max[a]),void 0!==e.backAnimDestination[a]&&(e.slowDownRatio[a]=.7,e.slowDownRatioReverse[a]=1-e.slowDownRatio[a],e.speedDecelerationRatioAbs[a]<.05&&(e.lastFlickSpeed[a]=0,e.backAnimStarted[a]=!0,Je("bounceZoomPan"+a,pe[a],e.backAnimDestination[a],b||300,r.easing.sine.out,(function(b){pe[a]=b,Me()})))))},calculateAnimOffset:function(a){e.backAnimStarted[a]||(e.speedDecelerationRatio[a]=e.speedDecelerationRatio[a]*(e.slowDownRatio[a]+e.slowDownRatioReverse[a]-e.slowDownRatioReverse[a]*e.timeDiff/10),e.speedDecelerationRatioAbs[a]=Math.abs(e.lastFlickSpeed[a]*e.speedDecelerationRatio[a]),e.distanceOffset[a]=e.lastFlickSpeed[a]*e.speedDecelerationRatio[a]*e.timeDiff,pe[a]+=e.distanceOffset[a])},panAnimLoop:function(){if(qe.zoomPan&&(qe.zoomPan.raf=P(e.panAnimLoop),e.now=Be(),e.timeDiff=e.now-e.lastNow,e.lastNow=e.now,e.calculateAnimOffset("x"),e.calculateAnimOffset("y"),Me(),e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),e.speedDecelerationRatioAbs.x<.05&&e.speedDecelerationRatioAbs.y<.05))return pe.x=Math.round(pe.x),pe.y=Math.round(pe.y),Me(),void Ye("zoomPan")}};return e},Ut=function(a){return a.calculateSwipeSpeed("y"),ne=o.currItem.bounds,a.backAnimDestination={},a.backAnimStarted={},Math.abs(a.lastFlickSpeed.x)<=.05&&Math.abs(a.lastFlickSpeed.y)<=.05?(a.speedDecelerationRatioAbs.x=a.speedDecelerationRatioAbs.y=0,a.calculateOverBoundsAnimOffset("x"),a.calculateOverBoundsAnimOffset("y"),!0):(We("zoomPan"),a.lastNow=Be(),void a.panAnimLoop())},Ot=function(a,b){var e,t,n;if(ie||(ut=d),"swipe"===a){var g=it.x-st.x,l=b.lastFlickDist.x<10;g>30&&(l||b.lastFlickOffset.x>20)?t=-1:g<-30&&(l||b.lastFlickOffset.x<-20)&&(t=1)}t&&((d+=t)<0?(d=i.loop?Vt()-1:0,n=!0):d>=Vt()&&(d=i.loop?0:Vt()-1,n=!0),n&&!i.loop||(ye+=t,me-=t,e=!0));var c,h=ge.x*me,f=Math.abs(h-ft.x);return e||h>ft.x==b.lastFlickSpeed.x>0?(c=Math.abs(b.lastFlickSpeed.x)>0?f/Math.abs(b.lastFlickSpeed.x):333,c=Math.min(c,400),c=Math.max(c,250)):c=333,ut===d&&(e=!1),ie=!0,Te("mainScrollAnimStart"),Je("mainScroll",ft.x,h,c,r.easing.cubic.out,Ue,(function(){Xe(),ie=!1,ut=-1,(e||ut!==d)&&o.updateCurrItem(),Te("mainScrollAnimComplete")}
2)),e&&o.updateCurrItem(!0),e},Ft=function(a){return 1/te*a*y},Rt=function(){var a=s,b=He(),e=Qe();s<b?a=b:s>e&&(a=e);var t,n=le;return oe&&!V&&!ce&&s<b?(o.close(),!0):(oe&&(t=function(a){ke((1-n)*a+n)}),o.zoomTo(a,0,200,r.easing.cubic.out,t),!0)};xe("Gestures",{publicMethods:{initGestures:function(){var a=function(e,b,t,n,r){C=e+b,S=e+t,T=e+n,B=r?e+r:""};(I=N.pointerEvent)&&N.touch&&(N.touch=!1),I?navigator.msPointerEnabled?a("MSPointer","Down","Move","Up","Cancel"):a("pointer","down","move","up","cancel"):N.touch?(a("touch","start","move","end","cancel"),M=!0):a("mouse","down","move","up"),p=S+" "+T+" "+B,q=C,I&&!M&&(M=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),o.likelyTouchDevice=M,A[C]=kt,A[S]=It,A[T]=Pt,B&&(A[B]=A[T]),N.touch&&(q+=" mousedown",p+=" mousemove mouseup",A.mousedown=A[C],A.mousemove=A[S],A.mouseup=A[T]),M||(i.allowPanToNext=!1)}}});var Nt,Lt,zt,Ht,Qt,Vt,jt=function(b,t,n,g){var l;Nt&&clearTimeout(Nt),Ht=!0,zt=!0,b.initialLayout?(l=b.initialLayout,b.initialLayout=null):l=i.getThumbBoundsFn&&i.getThumbBoundsFn(d);var c=n?i.hideAnimationDuration:i.showAnimationDuration,f=function(){Ye("initialZoom"),n?(o.template.removeAttribute("style"),o.bg.removeAttribute("style")):(ke(1),t&&(t.style.display="block"),r.addClass(e,"pswp--animated-in"),Te("initialZoom"+(n?"OutEnd":"InEnd"))),g&&g(),Ht=!1};if(!c||!l||void 0===l.x)return Te("initialZoom"+(n?"Out":"In")),s=b.initialZoomLevel,Fe(pe,b.initialPosition),Me(),e.style.opacity=n?0:1,ke(1),void(c?setTimeout((function(){f()}),c):f());!function(){var t=h,g=!o.currItem.src||o.currItem.loadError||i.showHideOpacity;b.miniImg&&(b.miniImg.style.webkitBackfaceVisibility="hidden"),n||(s=l.w/b.w,pe.x=l.x,pe.y=l.y-O,o[g?"template":"bg"].style.opacity=.001,Me()),We("initialZoom"),n&&!t&&r.removeClass(e,"pswp--animated-in"),g&&(n?r[(t?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout((function(){r.addClass(e,"pswp--animate_opacity")}),30)),Nt=setTimeout((function(){if(Te("initialZoom"+(n?"Out":"In")),n){var o=l.w/b.w,i={x:pe.x,y:pe.y},h=s,d=le,m=function(b){1===b?(s=o,pe.x=l.x,pe.y=l.y-R):(s=(o-h)*b+h,pe.x=(l.x-i.x)*b+i.x,pe.y=(l.y-R-i.y)*b+i.y),Me(),g?e.style.opacity=1-b:ke(d-b*d)};t?Je("initialZoom",0,1,c,r.easing.cubic.out,m,f):(m(1),Nt=setTimeout(f,c+20))}else s=b.initialZoomLevel,Fe(pe,b.initialPosition),Me(),ke(1),g?e.style.opacity=1:ke(1),Nt=setTimeout(f,c+20)}),n?25:90)}()},Gt={},Kt=[],qt={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Lt.length}},$t=function(a,b,e){if(a.src&&!a.loadError){var t=!e;if(t&&(a.vGap||(a.vGap={top:0,bottom:0}),Te("parseVerticalMargin",a)),Gt.x=b.x,Gt.y=b.y-a.vGap.top-a.vGap.bottom,t){var n=Gt.x/a.w,r=Gt.y/a.h;a.fitRatio=n<r?n:r;var g=i.scaleMode;"orig"===g?e=1:"fit"===g&&(e=a.fitRatio),e>1&&(e=1),a.initialZoomLevel=e,a.bounds||(a.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!e)return;return function(a,b,e){var t=a.bounds;t.center.x=Math.round((Gt.x-b)/2),t.center.y=Math.round((Gt.y-e)/2)+a.vGap.top,t.max.x=b>Gt.x?Math.round(Gt.x-b):t.center.x,t.max.y=e>Gt.y?Math.round(Gt.y-e)+a.vGap.top:t.center.y,t.min.x=b>Gt.x?0:t.center.x,t.min.y=e>Gt.y?a.vGap.top:t.center.y}(a,a.w*e,a.h*e),t&&e===a.initialZoomLevel&&(a.initialPosition=a.bounds.center),a.bounds}return a.w=a.h=0,a.initialZoomLevel=a.fitRatio=1,a.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},a.initialPosition=a.bounds.center,a.bounds},Yt=function(a,b,e,t,n,g){b.loadError||t&&(b.imageAppended=!0,Jt(b,t,b===o.currItem&&we),e.appendChild(t),g&&setTimeout((function(){b&&b.loaded&&b.placeholder&&(b.placeholder.style.display="none",b.placeholder=null)}),500))},Wt=function(a){a.loading=!0,a.loaded=!1;var b=a.img=r.createEl("pswp__img","img"),e=function(){a.loading=!1,a.loaded=!0,a.loadComplete?a.loadComplete(a):a.img=null,b.onload=b.onerror=null,b=null};return b.onload=e,b.onerror=function(){a.loadError=!0,e()},b.src=a.src,b},Xt=function(a,b){if(a.src&&a.loadError&&a.container)return b&&(a.container.innerHTML=""),a.container.innerHTML=i.errorMsg.replace("%url%",a.src),!0},Jt=function(a,b,e){if(a.src){b||(b=a.container.lastChild);var t=e?a.w:Math.round(a.w*a.fitRatio),n=e?a.h:Math.round(a.h*a.fitRatio);a.placeholder&&!a.loaded&&(a.placeholder.style.width=t+"px",a.placeholder.style.height=n+"px"),b.style.width=t+"px",b.style.height=n+"px"}},Zt=function(){if(Kt.length){for(var a,b=0;b<Kt.length;b++)(a=Kt[b]).holder.index===a.index&&Yt(a.index,a.item,a.baseDiv,a.img,0,a.clearPlaceholder);Kt=[]}};xe("Controller",{publicMethods:{lazyLoadItem:function(a){a=Ee(a);var b=Qt(a);b&&(!b.loaded&&!b.loading||w)&&(Te("gettingData",a,b),b.src&&Wt(b))},initController:function(){r.extend(i,qt,!0),o.items=Lt=t,Qt=o.getItemAt,Vt=i.getNumItemsFn,i.loop,Vt()<3&&(i.loop=!1),Se("beforeChange",(function(a){var b,e=i.preload,t=null===a||a>=0,n=Math.min(e[0],Vt()),g=Math.min(e[1],Vt());for(b=1;b<=(t?g:n);b++)o.lazyLoadItem(d+b);for(b=1;b<=(t?n:g);b++)o.lazyLoadItem(d-b)})),Se("initialLayout",(function(){o.currItem.initialLayout=i.getThumbBoundsFn&&i.getThumbBoundsFn(d)})),Se("mainScrollAnimComplete",Zt),Se("initialZoomInEnd",Zt),Se("destroy",(function(){for(var a,b=0;b<Lt.length;b++)(a=Lt[b]).container&&(a.container=null),a.placeholder&&(a.placeholder=null),a.img&&(a.img=null),a.preloader&&(a.preloader=null),a.loadError&&(a.loaded=a.loadError=!1);Kt=null}))},getItemAt:function(a){return a>=0&&void 0!==Lt[a]&&Lt[a]},allowProgressiveImg:function(){return i.forceProgressiveLoading||!M||i.mouseUsed||screen.width>1200},setContent:function(a,b){i.loop&&(b=Ee(b));var e=o.getItemAt(a.index);e&&(e.container=null);var t,g=o.getItemAt(b);if(g){Te("gettingData",b,g),a.index=b,a.item=g;var n=g.container=r.createEl("pswp__zoom-wrap");if(!g.src&&g.html&&(g.html.tagName?n.appendChild(g.html):n.innerHTML=g.html),Xt(g),$t(g,fe),!g.src||g.loadError||g.loaded)g.src&&!g.loadError&&((t=r.createEl("pswp__img","img")).style.opacity=1,t.src=g.src,Jt(g,t),Yt(0,g,n,t));else{if(g.loadComplete=function(e){if(l){if(a&&a.index===b){if(Xt(e,!0))return e.loadComplete=e.img=null,$t(e,fe),Pe(e),void(a.index===d&&o.updateCurrZoomItem());e.imageAppended?!Ht&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null):N.transform&&(ie||Ht)?Kt.push({item:e,baseDiv:n,img:e.img,index:b,holder:a,clearPlaceholder:!0}):Yt(0,e,n,e.img,0,!0)}e.loadComplete=null,e.img=null,Te("imageLoadComplete",b,e)}},r.features.transform){var c="pswp__img pswp__img--placeholder";c+=g.msrc?"":" pswp__img--placeholder--blank";var h=r.createEl(c,g.msrc?"img":"");g.msrc&&(h.src=g.msrc),Jt(g,h),n.appendChild(h),g.placeholder=h}g.loading||Wt(g),o.allowProgressiveImg()&&(!zt&&N.transform?Kt.push({item:g,baseDiv:n,img:g.img,index:b,holder:a}):Yt(0,g,n,g.img,0,!0))}zt||b!==d?Pe(g):(re=n.style,jt(g,t||g.img)),a.el.innerHTML="",a.el.appendChild(n)}else a.el.innerHTML=""},cleanSlide:function(a){a.img&&(a.img.onload=a.img.onerror=null),a.loaded=a.loading=a.img=a.imageAppended=!1}}});var en,tn,nn={},rn=function(a,b,e){var t=document.createEvent("CustomEvent"),n={origEvent:a,target:a.target,releasePoint:b,pointerType:e||"touch"};t.initCustomEvent("pswpTap",!0,!0,n),a.target.dispatchEvent(t)};xe("Tap",{publicMethods:{initTap:function(){Se("firstTouchStart",o.onTapStart),Se("touchRelease",o.onTapRelease),Se("destroy",(function(){nn={},en=null}))},onTapStart:function(a){a.length>1&&(clearTimeout(en),en=null)},onTapRelease:function(a,b){if(b&&!W&&!$&&!$e){var e=b;if(en&&(clearTimeout(en),en=null,function(a,b){return Math.abs(a.x-b.x)<25&&Math.abs(a.y-b.y)<25}(e,nn)))return void Te("doubleTap",e);if("mouse"===b.type)return void rn(a,b,"mouse");if("BUTTON"===a.target.tagName.toUpperCase()||r.hasClass(a.target,"pswp__single-tap"))return void rn(a,b);Fe(nn,e),en=setTimeout((function(){rn(a,b),en=null}),300)}}}}),xe("DesktopZoom",{publicMethods:{initDesktopZoom:function(){F||(M?Se("mou
2seUsed",(function(){o.setupDesktopZoom()})):o.setupDesktopZoom(!0))},setupDesktopZoom:function(b){tn={};var t="wheel mousewheel DOMMouseScroll";Se("bindEvents",(function(){r.bind(e,t,o.handleMouseWheel)})),Se("unbindEvents",(function(){tn&&r.unbind(e,t,o.handleMouseWheel)})),o.mouseZoomedIn=!1;var n,g=function(){o.mouseZoomedIn&&(r.removeClass(e,"pswp--zoomed-in"),o.mouseZoomedIn=!1),s<1?r.addClass(e,"pswp--zoom-allowed"):r.removeClass(e,"pswp--zoom-allowed"),l()},l=function(){n&&(r.removeClass(e,"pswp--dragging"),n=!1)};Se("resize",g),Se("afterChange",g),Se("pointerDown",(function(){o.mouseZoomedIn&&(n=!0,r.addClass(e,"pswp--dragging"))})),Se("pointerUp",l),b||g()},handleMouseWheel:function(a){if(s<=o.currItem.fitRatio)return i.modal&&(!i.closeOnScroll||$e||K?a.preventDefault():k&&Math.abs(a.deltaY)>2&&(h=!0,o.close())),!0;if(a.stopPropagation(),tn.x=0,"deltaX"in a)1===a.deltaMode?(tn.x=18*a.deltaX,tn.y=18*a.deltaY):(tn.x=a.deltaX,tn.y=a.deltaY);else if("wheelDelta"in a)a.wheelDeltaX&&(tn.x=-.16*a.wheelDeltaX),a.wheelDeltaY?tn.y=-.16*a.wheelDeltaY:tn.y=-.16*a.wheelDelta;else{if(!("detail"in a))return;tn.y=a.detail}ze(s,!0);var b=pe.x-tn.x,e=pe.y-tn.y;(i.modal||b<=ne.min.x&&b>=ne.max.x&&e<=ne.min.y&&e>=ne.max.y)&&a.preventDefault(),o.panTo(b,e)},toggleDesktopZoom:function(b){b=b||{x:fe.x/2+Ae.x,y:fe.y/2+Ae.y};var t=i.getDoubleTapZoom(!0,o.currItem),n=s===t;o.mouseZoomedIn=!n,o.zoomTo(n?o.currItem.initialZoomLevel:t,b,333),r[(n?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var sn,an,on,ln,cn,un,hn,dn,pn,fn,mn,An,gn={history:!0,galleryUID:1},yn=function(){return mn.hash.substring(1)},vn=function(){sn&&clearTimeout(sn),on&&clearTimeout(on)},_n=function(){var a=yn(),b={};if(a.length<5)return b;var e,t=a.split("&");for(e=0;e<t.length;e++)if(t[e]){var n=t[e].split("=");n.length<2||(b[n[0]]=n[1])}if(i.galleryPIDs){var r=b.pid;for(b.pid=0,e=0;e<Lt.length;e++)if(Lt[e].pid===r){b.pid=e;break}}else b.pid=parseInt(b.pid,10)-1;return b.pid<0&&(b.pid=0),b},bn=function e(){if(on&&clearTimeout(on),$e||K)on=setTimeout(e,500);else{ln?clearTimeout(an):ln=!0;var a=d+1,b=Qt(d);b.hasOwnProperty("pid")&&(a=b.pid);var t=hn+"&gid="+i.galleryUID+"&pid="+a;dn||-1===mn.hash.indexOf(t)&&(fn=!0);var n=mn.href.split("#")[0]+"#"+t;An?"#"+t!==window.location.hash&&history[dn?"replaceState":"pushState"]("",document.title,n):dn?mn.replace(n):mn.hash=t,dn=!0,an=setTimeout((function(){ln=!1}),60)}};xe("History",{publicMethods:{initHistory:function(){if(r.extend(i,gn,!0),i.history){mn=window.location,fn=!1,pn=!1,dn=!1,hn=yn(),An="pushState"in history,hn.indexOf("gid=")>-1&&(hn=(hn=hn.split("&gid=")[0]).split("?gid=")[0]),Se("afterChange",o.updateURL),Se("unbindEvents",(function(){r.unbind(window,"hashchange",o.onHashChange)}));var a=function(){un=!0,pn||(fn?history.back():hn?mn.hash=hn:An?history.pushState("",document.title,mn.pathname+mn.search):mn.hash=""),vn()};Se("unbindEvents",(function(){h&&a()})),Se("destroy",(function(){un||a()})),Se("firstUpdate",(function(){d=_n().pid}));var b=hn.indexOf("pid=");b>-1&&"&"===(hn=hn.substring(0,b)).slice(-1)&&(hn=hn.slice(0,-1)),setTimeout((function(){l&&r.bind(window,"hashchange",o.onHashChange)}),40)}},onHashChange:function(){return yn()===hn?(pn=!0,void o.close()):void(ln||(cn=!0,o.goTo(_n().pid),cn=!1))},updateURL:function(){vn(),cn||(dn?sn=setTimeout(bn,800):bn())}}}),r.extend(o,Ze)}})?r.call(t,n,t,e):r)||(e.exports=o)},2287:function(e,t,n){var r,o;n(19),n(12),void 0===(o="function"==typeof(r=function(){"use strict";return function(e,b){var t,n,r,o,g,l,i,c,h,d,f,m,A,p,q,y,v,u,_=this,w=!1,x=!0,E=!0,C={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(a,b){return a.title?(b.children[0].innerHTML=a.title,!0):(b.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return e.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return e.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200}
2,S=function(a){if(y)return!0;a=a||window.event,q.timeToIdle&&q.mouseUsed&&!h&&O();for(var e,t,n=(a.target||a.srcElement).getAttribute("class")||"",g=0;g<L.length;g++)(e=L[g]).onTap&&n.indexOf("pswp__"+e.name)>-1&&(e.onTap(),t=!0);if(t){a.stopPropagation&&a.stopPropagation(),y=!0;var r=b.features.isOldAndroid?600:30;setTimeout((function(){y=!1}),r)}},T=function(a,e,t){b[(t?"add":"remove")+"Class"](a,"pswp__"+e)},B=function(){var a=1===q.getNumItemsFn();a!==p&&(T(n,"ui--one-slide",a),p=a)},k=function(){T(i,"share-modal--hidden",E)},I=function(){return(E=!E)?(b.removeClass(i,"pswp__share-modal--fade-in"),setTimeout((function(){E&&k()}),300)):(k(),setTimeout((function(){E||b.addClass(i,"pswp__share-modal--fade-in")}),30)),E||P(),!1},M=function(b){var t=(b=b||window.event).target||b.srcElement;return e.shout("shareLinkClick",b,t),!(!t.href||!t.hasAttribute("download")&&(window.open(t.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),E||I(),1))},P=function(){for(var a,e,t,n,r="",g=0;g<q.shareButtons.length;g++)a=q.shareButtons[g],e=q.getImageURLForShare(a),t=q.getPageURLForShare(a),n=q.getTextForShare(a),r+='<a href="'+a.url.replace("{{url}}",encodeURIComponent(t)).replace("{{image_url}}",encodeURIComponent(e)).replace("{{raw_image_url}}",e).replace("{{text}}",encodeURIComponent(n))+'" target="_blank" class="pswp__share--'+a.id+'"'+(a.download?"download":"")+">"+a.label+"</a>",q.parseShareButtonOut&&(r=q.parseShareButtonOut(a,r));i.children[0].innerHTML=r,i.children[0].onclick=M},D=function(a){for(var e=0;e<q.closeElClasses.length;e++)if(b.hasClass(a,"pswp__"+q.closeElClasses[e]))return!0},U=0,O=function(){clearTimeout(u),U=0,h&&_.setIdle(!1)},F=function(a){var b=(a=a||window.event).relatedTarget||a.toElement;b&&"HTML"!==b.nodeName||(clearTimeout(u),u=setTimeout((function(){_.setIdle(!0)}),q.timeToIdleOutside))},R=function(a){m!==a&&(T(f,"preloader--active",!a),m=a)},N=function(a){var t=a.vGap;if(!e.likelyTouchDevice||q.mouseUsed||screen.width>q.fitControlsWidth){var g=q.barsSize;if(q.captionEl&&"auto"===g.bottom)if(o||((o=b.createEl("pswp__caption pswp__caption--fake")).appendChild(b.createEl("pswp__caption__center")),n.insertBefore(o,r),b.addClass(n,"pswp__ui--fit")),q.addCaptionHTMLFn(a,o,!0)){var l=o.clientHeight;t.bottom=parseInt(l,10)||44}else t.bottom=g.top;else t.bottom="auto"===g.bottom?0:g.bottom;t.top=g.top}else t.top=t.bottom=0},L=[{name:"caption",option:"captionEl",onInit:function(a){r=a}},{name:"share-modal",option:"shareEl",onInit:function(a){i=a},onTap:function(){I()}},{name:"button--share",option:"shareEl",onInit:function(a){l=a},onTap:function(){I()}},{name:"button--zoom",option:"zoomEl",onTap:e.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(a){g=a}},{name:"button--close",option:"closeEl",onTap:e.close},{name:"button--arrow--left",option:"arrowEl",onTap:e.prev},{name:"button--arrow--right",option:"arrowEl",onTap:e.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){t.isFullscreen()?t.exit():t.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(a){f=a}}];_.init=function(){b.extend(e.options,C,!0),q=e.options,n=b.getChildByClass(e.scrollWrap,"pswp__ui"),d=e.listen,function(){var a;d("onVerticalDrag",(function(a){x&&a<.95?_.hideControls():!x&&a>=.95&&_.showControls()})),d("onPinchClose",(function(b){x&&b<.9?(_.hideControls(),a=!0):a&&!x&&b>.9&&_.showControls()})),d("zoomGestureEnded",(function(){(a=!1)&&!x&&_.showControls()}))}(),d("beforeChange",_.update),d("doubleTap",(function(b){var t=e.currItem.initialZoomLevel;e.getZoomLevel()!==t?e.zoomTo(t,b,333):e.zoomTo(q.getDoubleTapZoom(!1,e.currItem),b,333)})),d("preventDragEvent",(function(a,b,e){var t=a.target||a.srcElement;t&&t.getAttribute("class")&&a.type.indexOf("mouse")>-1&&(t.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(t.tagName))&&(e.prevent=!1)})),d("bindEvents",(function(){b.bind(n,"pswpTap click",S),b.bind(e.scrollWrap,"pswpTap",_.onGlobalTap),e.likelyTouchDevice||b.bind(e.scrollWrap,"mouseover",_.onMouseOver)})),d("unbindEvents",(function(){E||I(),v&&clearInterval(v),b.unbind(document,"mouseout",F),b.unbind(document,"mousemove",O),b.unbind(n,"pswpTap click",S),b.unbind(e.scrollWrap,"pswpTap",_.onGlobalTap),b.unbind(e.scrollWrap,"mouseover",_.onMouseOver),t&&(b.unbind(document,t.eventK,_.updateFullscreen),t.isFullscreen()&&(q.hideAnimationDuration=0,t.exit()),t=null)})),d("destroy",(function(){q.captionEl&&(o&&n.removeChild(o),b.removeClass(r,"pswp__caption--empty")),i&&(i.children[0].onclick=null),b.removeClass(n,"pswp__ui--over-close"),b.addClass(n,"pswp__ui--hidden"),_.setIdle(!1)})),q.showAnimationDuration||b.removeClass(n,"pswp__ui--hidden"),d("initialZoomIn",(function(){q.showAnimationDuration&&b.removeClass(n,"pswp__ui--hidden")})),d("initialZoomOut",(function(){b.addClass(n,"pswp__ui--hidden")})),d("parseVerticalMargin",N),function(){var a,e,t,r=function(n){if(n)for(var r=n.length,g=0;g<r;g++){a=n[g],e=a.className;for(var o=0;o<L.length;
2o++)t=L[o],e.indexOf("pswp__"+t.name)>-1&&(q[t.option]?(b.removeClass(a,"pswp__element--disabled"),t.onInit&&t.onInit(a)):b.addClass(a,"pswp__element--disabled"))}};r(n.children);var g=b.getChildByClass(n,"pswp__top-bar");g&&r(g.children)}(),q.shareEl&&l&&i&&(E=!0),B(),q.timeToIdle&&d("mouseUsed",(function(){b.bind(document,"mousemove",O),b.bind(document,"mouseout",F),v=setInterval((function(){2==++U&&_.setIdle(!0)}),q.timeToIdle/2)})),q.fullscreenEl&&!b.features.isOldAndroid&&(t||(t=_.getFullscreenAPI()),t?(b.bind(document,t.eventK,_.updateFullscreen),_.updateFullscreen(),b.addClass(e.template,"pswp--supports-fs")):b.removeClass(e.template,"pswp--supports-fs")),q.preloaderEl&&(R(!0),d("beforeChange",(function(){clearTimeout(A),A=setTimeout((function(){e.currItem&&e.currItem.loading?(!e.allowProgressiveImg()||e.currItem.img&&!e.currItem.img.naturalWidth)&&R(!1):R(!0)}),q.loadingIndicatorDelay)})),d("imageLoadComplete",(function(b,t){e.currItem===t&&R(!0)})))},_.setIdle=function(a){h=a,T(n,"ui--idle",a)},_.update=function(){x&&e.currItem?(_.updateIndexIndicator(),q.captionEl&&(q.addCaptionHTMLFn(e.currItem,r),T(r,"caption--empty",!e.currItem.title)),w=!0):w=!1,E||I(),B()},_.updateFullscreen=function(n){n&&setTimeout((function(){e.setScrollOffset(0,b.getScrollY())}),50),b[(t.isFullscreen()?"add":"remove")+"Class"](e.template,"pswp--fs")},_.updateIndexIndicator=function(){q.counterEl&&(g.innerHTML=e.getCurrentIndex()+1+q.indexIndicatorSep+q.getNumItemsFn())},_.onGlobalTap=function(t){var n=(t=t||window.event).target||t.srcElement;if(!y)if(t.detail&&"mouse"===t.detail.pointerType){if(D(n))return void e.close();b.hasClass(n,"pswp__img")&&(1===e.getZoomLevel()&&e.getZoomLevel()<=e.currItem.fitRatio?q.clickToCloseNonZoomable&&e.close():e.toggleDesktopZoom(t.detail.releasePoint))}else if(q.tapToToggleControls&&(x?_.hideControls():_.showControls()),q.tapToClose&&(b.hasClass(n,"pswp__img")||D(n)))return void e.close()},_.onMouseOver=function(a){var b=(a=a||window.event).target||a.srcElement;T(n,"ui--over-close",D(b))},_.hideControls=function(){b.addClass(n,"pswp__ui--hidden"),x=!1},_.showControls=function(){x=!0,w||_.update(),b.removeClass(n,"pswp__ui--hidden")},_.supportsFullscreen=function(){var a=document;return!!(a.exitFullscreen||a.mozCancelFullScreen||a.webkitExitFullscreen||a.msExitFullscreen)},_.getFullscreenAPI=function(){var b,t=document.documentElement,n="fullscreenchange";return t.requestFullscreen?b={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:n}:t.mozRequestFullScreen?b={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+n}:t.webkitRequestFullscreen?b={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+n}:t.msRequestFullscreen&&(b={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),b&&(b.enter=function(){return c=q.closeOnScroll,q.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?e.template[this.enterK]():void e.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},b.exit=function(){return q.closeOnScroll=c,document[this.exitK]()},b.isFullscreen=function(){return document[this.elementK]}),b}}})?r.call(t,n,t,e):r)||(e.exports=o)},23:function(e,t,n){"use strict";var r=n(2247)();e.exports=function(e){return e!==r&&null!==e}},2310:function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(){return(t=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e}).apply(this,arguments)}var n="function"==typeof Float32Array;function r(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function l(e){return 3*e}function c(e,t,n){return((r(t,n)*e+o(t,n))*e+l(t))*e}function h(e,t,n){return 3*r(t,n)*e*e+2*o(t,n)*e+l(t)}function d(e){return e}var f=function(e,t,r,o){if(!(0<=e&&e<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&r===o)return d;for(var l=n?new Float32Array(11):new Array(11),i=0;i<11;++i)l[i]=c(.1*i,e,r);function f(t){for(var n=0,o=1;10!==o&&l[o]<=t;++o)n+=.1;--o;var d=n+(t-l[o])/(l[o+1]-l[o])*.1,f=h(d,e,r);return f>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var o=h(t,n,r);if(0===o)return t;t-=(c(t,n,r)-e)/o}return t}(t,d,e,r):0===f?d:function(e,t,n,r,o){var l,h,i=0;do{(l=c(h=t+(n-t)/2,r,o)-e)>0?n=h:t=h}while(Math.abs(l)>1e-7&&++i<10);return h}(t,n,n+.1,e,r)}return function(e){return 0===e?0:1===e?1:c(f(e),t,o)}},m={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},A=!1;try{var y=Object.defineProperty({},"passive",{get:function(){A=!0}});window.addEventListener("test",null,y)}catch(e){}var v=function(e){return"string"!=typeof e?e:document.querySelector(e)},_=function(element,e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!1};e instanceof Array||(e=[e]);for(var i=0;i<e.length;i++)element.addEventListener(e[i],t,!!A&&n)},w=function(element,e,t){e instanceof Array||(e=[e]);for(var i=0;i<e.length;i++)element.removeEventListener(e[i],t)},x=function(element){var e=0,t=0;do{e+=element.offsetTop||0,t+=element.offsetLeft||0,element=element.offsetParent}while(element);return{top:e,left:t}},E=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],C={container:"body",duration:500,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0};function S(e){C=t({},C,e)}var T=function(){var element,t,n,r,o,l,c,h,d,A,y,S,T,B,k,I,M,P,D,U,O,F,R,progress,N=function(e){c&&(U=e,D=!0)};function L(e){var t=e.scrollTop;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollTop),t}function z(e){var t=e.scrollLeft;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollLeft),t}function H(e){if(D)return Q();F||(F=e),R=e-F,progress=Math.min(R/n,1),progress=O(progress),V(t,k+P*progress,T+M*progress),R<n?window.requestAnimationFrame(H):Q()}function Q(){D||V(t,I,B),F=!1,w(t,E,N),D&&A&&A(U,element),!D&&d&&d(element)}function V(element,e,t){S&&(element.scrollTop=e),y&&(element.scrollLeft=t),"body"===element.tagName.toLowerCase()&&(S&&(
2document.documentElement.scrollTop=e),y&&(document.documentElement.scrollLeft=t))}return function(w,F){var R=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"===e(F)?R=F:"number"==typeof F&&(R.duration=F),!(element=v(w)))return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+w);t=v(R.container||C.container),n=R.hasOwnProperty("duration")?R.duration:C.duration,r=R.easing||C.easing,o=R.hasOwnProperty("offset")?R.offset:C.offset,l=R.hasOwnProperty("force")?!1!==R.force:C.force,c=R.hasOwnProperty("cancelable")?!1!==R.cancelable:C.cancelable,h=R.onStart||C.onStart,d=R.onDone||C.onDone,A=R.onCancel||C.onCancel,y=void 0===R.x?C.x:R.x,S=void 0===R.y?C.y:R.y;var Q=x(t),V=x(element);if("function"==typeof o&&(o=o(element,t)),k=L(t),I=V.top-Q.top+o,T=z(t),B=V.left-Q.left+o,D=!1,P=I-k,M=B-T,!l){var j="body"===t.tagName.toLowerCase()?document.documentElement.clientHeight||window.innerHeight:t.offsetHeight,G=k,K=G+j,$=I-o,Y=$+element.offsetHeight;if($>=G&&Y<=K)return void(d&&d(element))}if(h&&h(element),P||M)return"string"==typeof r&&(r=m[r]||m.ease),O=f.apply(f,r),_(t,E,N,{passive:!0}),window.requestAnimationFrame(H),function(){U=null,D=!0};d&&d(element)}},B=T(),k=[];function I(e){var t=function(e){for(var i=0;i<k.length;++i)if(k[i].el===e)return k[i]}(e);return t||(k.push(t={el:e,binding:{}}),t)}function M(e){var t=I(this).binding;if(t.value){if(e.preventDefault(),"string"==typeof t.value)return B(t.value);B(t.value.el||t.value.element,t.value)}}var P={bind:function(e,t){I(e).binding=t,_(e,"click",M)},unbind:function(e){!function(e){for(var i=0;i<k.length;++i)if(k[i].el===e)return k.splice(i,1),!0}(e),w(e,"click",M)},update:function(e,t){I(e).binding=t}},D={bind:P.bind,unbind:P.unbind,update:P.update,beforeMount:P.bind,unmounted:P.unbind,updated:P.update,scrollTo:B,bindings:k},U=function(e,t){t&&S(t),e.directive("scroll-to",D),(e.config.globalProperties||e.prototype).$scrollTo=D.scrollTo};return"undefined"!=typeof window&&window.Vue&&(window.VueScrollTo=D,window.VueScrollTo.setDefaults=S,window.VueScrollTo.scroller=T,window.Vue.use&&window.Vue.use(U)),D.install=U,D}()},2355:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?m((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function c(e,source,t){return e.concat(source).map((function(element){return l(element,t)}))}function h(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(symbol){return e.propertyIsEnumerable(symbol)})):[]}(e))}function d(object,e){try{return e in object}catch(e){return!1}}function f(e,source,t){var n={};return t.isMergeableObject(e)&&h(e).forEach((function(r){n[r]=l(e[r],t)})),h(source).forEach((function(r){(function(e,t){return d(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(d(e,r)&&t.isMergeableObject(source[r])?n[r]=function(e,t){if(!t.customMerge)return m;var n=t.customMerge(e);return"function"==typeof n?n:m}(r,t)(e[r],source[r],t):n[r]=l(source[r],t))})),n}function m(e,source,t){(t=t||{}).arrayMerge=t.arrayMerge||c,t.isMergeableObject=t.isMergeableObject||r,t.cloneUnlessOtherwiseSpecified=l;var n=Array.isArray(source);return n===Array.isArray(e)?n?t.arrayMerge(e,source,t):f(e,source,t):l(source,t)}m.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return m(e,n,t)}),{})};var A=m;e.exports=A},2356:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var i=0;i<this._inner.length;i++){if(this._inner[i]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var i=0;i<this._inner.length;i++)if(this._inner[i]===e){this._inner.splice(i,1);break}},e}()},2357:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=void 0;function o(){o.init||(o.init=!0,r=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}
2var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}())}var l={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function(){this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!r&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var e=this;o(),this.$nextTick((function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight}));var object=document.createElement("object");this._resizeObject=object,object.setAttribute("aria-hidden","true"),object.setAttribute("tabindex",-1),object.onload=this.addResizeHandlers,object.type="text/html",r&&this.$el.appendChild(object),object.data="about:blank",r||this.$el.appendChild(object)},beforeDestroy:function(){this.removeResizeHandlers()}};var c={version:"0.4.5",install:function(e){e.component("resize-observer",l),e.component("ResizeObserver",l)}},h=null;"undefined"!=typeof window?h=window.Vue:void 0!==e&&(h=e.Vue),h&&h.use(c)}).call(this,n(31))},2358:function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},2359:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return y}));var r=n(118),o=n(119),l=n.n(o),c=n(1561),h=n.n(c),d=n(66),f=n(68),m=n(75);const A="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class y extends r.a{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=A?{}:Object(d.b)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=f.d&&!A?t?new f.a(e,t):new f.a(e):new f.a(e,t,n)}catch(e){return this.emit("error",e)}this.ws.binaryType=this.socket.binaryType||f.b,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(t){this.writable=!1;for(let i=0;i<t.length;i++){const n=t[i],r=i===t.length-1;Object(m.c)(n,this.supportsBinary,data=>{const t={};if(!f.d&&(n.options&&(t.compress=n.options.compress),this.opts.perMessageDeflate)){("string"==typeof data?e.byteLength(data):data.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1)}try{f.d?this.ws.send(data):this.ws.send(data,t)}catch(e){}r&&Object(f.c)(()=>{this.writable=!0,this.emit("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let n="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=h()()),this.supportsBinary||(e.b64=1);const r=l.a.encode(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}check(){return!(!f.a||"__initialize"in f.a&&this.name===y.prototype.name)}
2}}).call(this,n(2261).Buffer)},2360:function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},2400:function(e,t,n){(function(t){e.exports=function(){"use strict";var e,n,r;function o(t,o){if(e)if(n){var l="var sharedChunk = {}; ("+e+")(sharedChunk); ("+n+")(sharedChunk);",c={};e(c),r=o(c),"undefined"!=typeof window&&(r.workerUrl=window.URL.createObjectURL(new Blob([l],{type:"text/javascript"})))}else n=o;else e=o}return o(0,(function(e){var n=r;function r(e,t,n,i){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(i-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=i,this.p2x=n,this.p2y=i}r.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},r.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},r.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},r.prototype.solveCurveX=function(e,t){var n,i,r,s,a;for(void 0===t&&(t=1e-6),r=e,a=0;a<8;a++){if(s=this.sampleCurveX(r)-e,Math.abs(s)<t)return r;var o=this.sampleCurveDerivativeX(r);if(Math.abs(o)<1e-6)break;r-=s/o}if((r=e)<(n=0))return n;if(r>(i=1))return i;for(;n<i;){if(s=this.sampleCurveX(r),Math.abs(s-e)<t)return r;e>s?n=r:i=r,r=.5*(i-n)+n}return r},r.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var i=o;function o(e,t){this.x=e,this.y=t}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),i=n*this.x+t*this.y;return this.x=t*this.x-n*this.y,this.y=i,this},_rotateAround:function(e,t){var n=Math.cos(e),i=Math.sin(e),r=t.y+i*(this.x-t.x)+n*(this.y-t.y);return this.x=t.x+n*(this.x-t.x)-i*(this.y-t.y),this.y=r,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(e){return e instanceof o?e:Array.isArray(e)?new o(e[0],e[1]):e};var s="undefined"!=typeof self?self:{};function a(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!a(e[n],t[n]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==t){if("object"!=typeof t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!a(e[n],t[n]))return!1;return!0}return e===t}const l=Math.pow(2,53)-1,c=Math.PI/180,u=180/Math.PI;function h(e){return e*c}function d(e){if(e<=0)return 0;if(e>=1)return 1;const t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function p(e,t,i,r){const s=new n(e,t,i,r);return function(e){return s.solve(e)}}const f=p(.25,.1,.25,1);function m(e,t,n){return Math.min(n,Math.max(t,e))}function A(e,t,n){const i=n-t,r=((e-t)%i+i)%i+t;return r===t?n:r}function y(e,t,n){if(!e.length)return n(null,[]);let i=e.length;const r=new Array(e.length);let s=null;e.forEach((e,a)=>{t(e,(e,t)=>{e&&(s=e),r[a]=t,0==--i&&n(s,r)})})}function g(e){const t=[];for(const n in e)t.push(e[n]);return t}function v(e,...t){for(const n of t)for(const t in n)e[t]=n[t];return e}let _=1;function b(){return _++}function w(){return function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function x(e){return!!e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}
vendor: 3,093 bytes, line 2
2function E(e,t){e.forEach(e=>{t[e]&&(t[e]=t[e].bind(t))})}function C(e,t){return-1!==e.indexOf(t,e.length-t.length)}function S(e,t,n){const i={};for(const r in e)i[r]=t.call(n||this,e[r],r,e);return i}function T(e,t,n){const i={};for(const r in e)t.call(n||this,e[r],r,e)&&(i[r]=e[r]);return i}function B(e){return Array.isArray(e)?e.map(B):"object"==typeof e&&e?S(e,B):e}const k={};function I(e){k[e]||("undefined"!=typeof console&&console.warn(e),k[e]=!0)}function M(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function P(e){let t=0;for(let n,i,r=0,s=e.length,a=s-1;r<s;a=r++)n=e[r],i=e[a],t+=(i.x-n.x)*(n.y+i.y);return t}function D(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function U(e){const t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(e,n,i,r)=>{const s=i||r;return t[n]=!s||s.toLowerCase(),""}),t["max-age"]){const e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t}let O,F,R=null;function N(e){if(null==R){const t=e.navigator?e.navigator.userAgent:null;R=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return R}function L(e){try{const t=s[e];return t.setItem("_mapbox_test_",1),t.removeItem("_mapbox_test_"),!0}catch(e){return!1}}let z,H=!1;const Q={now:()=>void 0!==z?z:s.performance.now(),setErrorState(){H=!0},setNow(e){z=e},restoreNow(){z=void 0},frame(e){if(H)return{cancel:()=>{}};const t=s.requestAnimationFrame(e);return{cancel:()=>s.cancelAnimationFrame(t)}},getImageData(e,t=0){const n=s.document.createElement("canvas"),i=n.getContext("2d");if(!i)throw new Error("failed to create canvas 2d context");return n.width=e.width,n.height=e.height,i.drawImage(e,0,0,e.width,e.height),i.getImageData(-t,-t,e.width+2*t,e.height+2*t)},resolveURL:e=>(O||(O=s.document.createElement("a")),O.href=e,O.href),get devicePixelRatio(){return s.devicePixelRatio},get prefersReducedMotion(){return!!s.matchMedia&&(null==F&&(F=s.matchMedia("(prefers-reduced-motion: reduce)")),F.matches)}};let q;const V={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(null==q){const e=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{q=null!=t.env.API_URL_REGEX?new RegExp(t.env.API_URL_REGEX):e}catch(t){q=e}}return q},get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},j={supported:!1,testSupport:function(e){!$&&K&&(Y?W(e):G=e)}};let G,K,$=!1,Y=!1;function W(e){const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,K),e.isContextLost())return;j.supported=!0}
2catch(e){}e.deleteTexture(t),$=!0}s.document&&(K=s.document.createElement("img"),K.onload=function(){G&&W(G),G=null,Y=!0},K.onerror=function(){$=!0,G=null},K.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const X="01";function J(e){return 0===e.indexOf("mapbox:")}function Z(e){return V.API_URL_REGEX.test(e)}const ee=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function te(e){const t=e.match(ee);if(!t)throw new Error("Unable to parse URL object");return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}function ne(e){const t=e.params.length?"?"+e.params.join("&"):"";return`${e.protocol}://${e.authority}${e.path}${t}`}function rt(e){if(!e)return null;const t=e.split(".");if(!t||3!==t.length)return null;try{return JSON.parse(decodeURIComponent(s.atob(t[1]).split("").map(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch(e){return null}}class re{constructor(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(e){const t=rt(V.ACCESS_TOKEN);let n="";return n=t&&t.u?s.btoa(encodeURIComponent(t.u).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode(Number("0x"+t)))):V.ACCESS_TOKEN||"",e?`mapbox.eventData.${e}:${n}`:"mapbox.eventData:"+n}fetchEventData(){const e=L("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{const e=s.localStorage.getItem(t);e&&(this.eventData=JSON.parse(e));const i=s.localStorage.getItem(n);i&&(this.anonId=i)}catch(e){I("Unable to read from LocalStorage")}}saveEventData(){const e=L("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{s.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&s.localStorage.setItem(t,JSON.stringify(this.eventData))}catch(e){I("Unable to write to LocalStorage")}}processRequests(e){}postEvent(e,t,n,i){if(!V.EVENTS_URL)return;const r=te(V.EVENTS_URL);r.params.push("access_token="+(i||V.ACCESS_TOKEN||""));const s={event:this.type,created:new Date(e).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"2.1.1",skuId:X,userId:this.anonId},a=t?v(s,t):s,o={url:ne(r),headers:{"Content-Type":"text/plain"},body:JSON.stringify([a])};this.pendingRequest=xe(o,e=>{this.pendingRequest=null,n(e),this.saveEventData(),this.processRequests(i)})}queueRequest(e,t){this.queue.push(e),this.processRequests(t)}}const ie=new class extends re{constructor(e){super("appUserTurnstile"),this._customAccessToken=e}postTurnstileEvent(e,t){V.EVENTS_URL&&V.ACCESS_TOKEN&&Array.isArray(e)&&e.some(e=>J(e)||Z(e))&&this.queueRequest(Date.now(),t)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const t=rt(V.ACCESS_TOKEN),n=t?t.u:V.ACCESS_TOKEN;let i=n!==this.eventData.tokenU;x(this.anonId)||(this.anonId=w(),i=!0);const r=this.queue.shift();if(this.eventData.lastSuccess){const e=new Date(this.eventData.lastSuccess),t=new Date(r),n=(r-this.eventData.lastSuccess)/864e5;i=i||n>=1||n<-1||e.getDate()!==t.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(r,{"enabled.telemetry":!1},e=>{e||(this.eventData.lastSuccess=r,this.eventData.tokenU=n)},e)}},se=ie.postTurnstileEvent.bind(ie),ae=new class extends re{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(e,t,n,i){this.skuToken=t,this.errorCb=i,V.EVENTS_URL&&(n||V.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},n):this.errorCb(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:n}=this.queue.shift();t&&this.success[t]||(this.anonId||this.fetchEventData(),x(this.anonId)||(this.anonId=w()),this.postEvent(n,{skuToken:this.skuToken},e=>{e?this.errorCb(e):t&&(this.success[t]=!0)},e))}},oe=ae.postMapLoadEvent.bind(ae),le=new class extends re{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(e,t,n,i){if(!V.API_URL||!V.SESSION_PATH)return;const r=te(V.API_URL+V.SESSION_PATH);r.params.push("sku="+(t||"")),r.params.push("access_token="+(i||V.ACCESS_TOKEN||""));const s={url:ne(r),headers:{"Content-Type":"text/plain"}};this.pendingRequest=Ee(s,e=>{this.pendingRequest=null,n(e),this.saveEventData(),this.processRequests(i)})}getSessionAPI(e,t,n,i){this.skuToken=t,this.errorCb=i,V.SESSION_PATH&&V.API_URL&&(n||V.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},n):this.errorCb(new Error("NO_ACCESS_TOKEN")))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:n}=this.queue.shift();
2t&&this.success[t]||this.getSession(n,this.skuToken,e=>{e?this.errorCb(e):t&&(this.success[t]=!0)},e)}},ce=le.getSessionAPI.bind(le);let ue,he,de=500,dt=50;function pe(){s.caches&&!ue&&(ue=s.caches.open("mapbox-tiles"))}function fe(e){const t=e.indexOf("?");return t<0?e:e.slice(0,t)}let me,Ae=1/0;function ge(){return null==me&&(me=s.OffscreenCanvas&&new s.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof s.createImageBitmap),me}const ye={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(ye);class ve extends Error{constructor(e,t,n){401===t&&Z(n)&&(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),super(e),this.status=t,this.url=n}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const _e=D()?()=>self.worker&&self.worker.referrer:()=>("blob:"===s.location.protocol?s.parent:s).location.href,be=function(e,t){if(!(/^file:/.test(n=e.url)||/^file:/.test(_e())&&!/^\w+:/.test(n))){if(s.fetch&&s.Request&&s.AbortController&&s.Request.prototype.hasOwnProperty("signal"))return function(e,t){const n=new s.AbortController,i=new s.Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:_e(),signal:n.signal});let r=!1,a=!1;const o=(l=i.url).indexOf("sku=")>0&&Z(l);var l;"json"===e.type&&i.headers.set("Accept","application/json");const u=(n,r,l)=>{if(a)return;if(n&&"SecurityError"!==n.message&&I(n),r&&l)return c(r);const u=Date.now();s.fetch(i).then(n=>{if(n.ok){const e=o?n.clone():null;return c(n,e,u)}return t(new ve(n.statusText,n.status,e.url))}).catch(e=>{20!==e.code&&t(new Error(e.message))})},c=(n,o,l)=>{("arrayBuffer"===e.type?n.arrayBuffer():"json"===e.type?n.json():n.text()).then(e=>{a||(o&&l&&function(e,t,n){if(pe(),!ue)return;const i={status:t.status,statusText:t.statusText,headers:new s.Headers};t.headers.forEach((e,t)=>i.headers.set(t,e));const r=U(t.headers.get("Cache-Control")||"");r["no-store"]||(r["max-age"]&&i.headers.set("Expires",new Date(n+1e3*r["max-age"]).toUTCString()),new Date(i.headers.get("Expires")).getTime()-n<42e4||function(e,t){if(void 0===he)try{new Response(new ReadableStream),he=!0}catch(e){he=!1}he?t(e.body):e.blob().then(t)}(t,t=>{const n=new s.Response(t,i);pe(),ue&&ue.then(t=>t.put(fe(e.url),n)).catch(e=>I(e.message))}))}(i,o,l),r=!0,t(null,e,n.headers.get("Cache-Control"),n.headers.get("Expires")))}).catch(e=>{a||t(new Error(e.message))})};return o?function(e,t){if(pe(),!ue)return t(null);const n=fe(e.url);ue.then(e=>{e.match(n).then(i=>{const r=function(e){if(!e)return!1;const t=new Date(e.headers.get("Expires")||0),n=U(e.headers.get("Cache-Control")||"");return t>Date.now()&&!n["no-cache"]}(i);e.delete(n),r&&e.put(n,i.clone()),t(null,i,r)}).catch(t)}).catch(t)}(i,u):u(null,null),{cancel:()=>{a=!0,r||n.abort()}}}(e,t);if(D()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}var n;return function(e,t){const n=new s.XMLHttpRequest;n.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(n.responseType="arraybuffer");for(const t in e.headers)n.setRequestHeader(t,e.headers[t]);return"json"===e.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===e.credentials,n.onerror=()=>{t(new Error(n.statusText))},n.onload=()=>{if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){let i=n.response;if("json"===e.type)try{i=JSON.parse(n.response)}catch(e){return t(e)}t(null,i,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else t(new ve(n.statusText,n.status,e.url))},n.send(e.body),{cancel:()=>n.abort()}}(e,t)},we=function(e,t){return be(v(e,{type:"arrayBuffer"}),t)},xe=function(e,t){return be(v(e,{method:"POST"}),t)},Ee=function(e,t){return be(v(e,{method:"GET"}),t)};function Ce(e){const t=s.document.createElement("a");return t.href=e,t.protocol===s.document.location.protocol&&t.host===s.document.location.host}const Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Te,Be;Te=[],Be=0;const ke=function(e,t){if(j.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),Be>=V.MAX_PARALLEL_IMAGE_REQUESTS){const n={requestParameters:e,callback:t,cancelled:!1,cancel(){this.cancelled=!0}};return Te.push(n),n}Be++;let n=!1;const i=()=>
2{if(!n)for(n=!0,Be--;Te.length&&Be<V.MAX_PARALLEL_IMAGE_REQUESTS;){const e=Te.shift(),{requestParameters:t,callback:n,cancelled:i}=e;i||(e.cancel=ke(t,n).cancel)}},r=we(e,(e,n,r,a)=>{i(),e?t(e):n&&(ge()?function(e,t){const n=new s.Blob([new Uint8Array(e)],{type:"image/png"});s.createImageBitmap(n).then(e=>{t(null,e)}).catch(e=>{t(new Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(n,t):function(e,t,n,i){const r=new s.Image,a=s.URL;r.onload=()=>{t(null,r),a.revokeObjectURL(r.src),r.onload=null,s.requestAnimationFrame(()=>{r.src=Se})},r.onerror=()=>t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const o=new s.Blob([new Uint8Array(e)],{type:"image/png"});r.cacheControl=n,r.expires=i,r.src=e.byteLength?a.createObjectURL(o):Se}(n,t,r,a))});return{cancel:()=>{r.cancel(),i()}}};function Ie(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function Me(e,t,n){if(n&&n[e]){const i=n[e].indexOf(t);-1!==i&&n[e].splice(i,1)}}class Pe{constructor(e,t={}){v(this,t),this.type=e}}class De extends Pe{constructor(e,t={}){super("error",v({error:e},t))}}class Ue{on(e,t){return this._listeners=this._listeners||{},Ie(e,t,this._listeners),this}off(e,t){return Me(e,t,this._listeners),Me(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},Ie(e,t,this._oneTimeListeners),this):new Promise(t=>this.once(e,t))}fire(e,t){"string"==typeof e&&(e=new Pe(e,t||{}));const n=e.type;if(this.listens(n)){e.target=this;const t=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const n of t)n.call(this,e);const i=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const t of i)Me(n,t,this._oneTimeListeners),t.call(this,e);const r=this._eventedParent;r&&(v(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),r.fire(e))}else e instanceof De&&console.error(e.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}var Oe={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0}
vendor: 5,282 bytes, line 2
2,clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}
vendor: 4,077 bytes, line 2
2,"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}
vendor: 3,547 bytes, line 2
2,"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky
vendor: 13,499 bytes, line 2
2"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},
2paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};class Fe{constructor(e,t,n,i){this.message=(e?e+": ":"")+n,i&&(this.identifier=i),null!=t&&t.__line__&&(this.line=t.__line__)}}function Re(e){const t=e.value;return t?[new Fe(e.key,t,"constants have been deprecated as of v8")]:[]}function Ne(e,...t){for(const n of t)for(const t in n)e[t]=n[t];return e}function Le(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function ze(e){if(Array.isArray(e))return e.map(ze);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const n in e)t[n]=ze(e[n]);return t}return Le(e)}
vendor: 8,804 bytes, line 2
2class He extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}class Qe{constructor(e,t=[]){this.parent=e,this.bindings={};for(const[e,n]of t)this.bindings[e]=n}concat(e){return new Qe(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(e+" not found in scope.")}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const Ve={kind:"null"},je={kind:"number"},Ge={kind:"string"},Ke={kind:"boolean"},qe={kind:"color"},$e={kind:"object"},Ye={kind:"value"},We={kind:"collator"},Xe={kind:"formatted"},Je={kind:"resolvedImage"};function Ze(e,t){return{kind:"array",itemType:e,N:t}}function et(e){if("array"===e.kind){const t=et(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const tt=[Ve,je,Ge,Ke,qe,Xe,$e,Ze(Ye),Je];function nt(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!nt(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of tt)if(!nt(e,t))return null}return`Expected ${et(e)} but found ${et(t)} instead.`}function it(e,t){return t.some(t=>t.kind===e.kind)}function st(e,t){return t.some(t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e)}function at(e,t){return e(t={exports:{}},t.exports),t.exports}var ot=at((function(e,t){var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function i(e){return(e=Math.round(e))<0?0:e>255?255:e}function r(e){return i("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function s(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function a(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{t.parseCSSColor=function(e){var t,o=e.replace(/ /g,"").toLowerCase();if(o in n)return n[o].slice();if("#"===o[0])return 4===o.length?(t=parseInt(o.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===o.length&&(t=parseInt(o.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var l=o.indexOf("("),u=o.indexOf(")");if(-1!==l&&u+1===o.length){var c=o.substr(0,l),h=o.substr(l+1,u-(l+1)).split(","),p=1;switch(c){case"rgba":if(4!==h.length)return null;p=s(h.pop());case"rgb":return 3!==h.length?null:[r(h[0]),r(h[1]),r(h[2]),p];case"hsla":if(4!==h.length)return null;p=s(h.pop());case"hsl":if(3!==h.length)return null;var d=(parseFloat(h[0])%360+360)%360/360,f=s(h[1]),m=s(h[2]),A=m<=.5?m*(f+1):m+f-m*f,g=2*m-A;return[i(255*a(g,A,d+1/3)),i(255*a(g,A,d)),i(255*a(g,A,d-1/3)),p];default:return null}}return null}}catch(e){}})).parseCSSColor;class lt{constructor(e,t,n,i=1){this.r=e,this.g=t,this.b=n,this.a=i}static parse(e){if(!e)return;if(e instanceof lt)return e;if("string"!=typeof e)return;const t=ot(e);return t?new lt(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]):void 0}toString(){const[e,t,n,i]=this.toArray();return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(n)},${i})`}toArray(){const{r:e,g:t,b:n,a:i}=this;return 0===i?[0,0,0,0]:[255*e/i,255*t/i,255*n/i,i]}}lt.black=new lt(0,0,0,1),lt.white=new lt(1,1,1,1),lt.transparent=new lt(0,0,0,0),lt.red=new lt(1,0,0,1),lt.blue=new lt(0,0,1,1);class ct{constructor(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class ut{constructor(e,t,n,i,r){this.text=e,this.image=t,this.scale=n,this.fontStack=i,this.textColor=r}}class ht{constructor(e){this.sections=e}static fromString(e){return new ht([new ut(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(e=>0!==e.text.length||e.image&&0!==e.image.name.length)}static factory(e){return e instanceof ht?e:ht.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.name]);continue}e.push(t.text);const n={};t.fontStack&&(n["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(n["font-scale"]=t.scale),t.textColor&&(n["text-color"]=["rgba"].concat(t.textColor.toArray())),e.push(n)}return e}}class pt{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new pt({name:e,available:!1}):null}serialize(){return["image",this.name]}}function ft(e,t,n,i){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===i||"number"==typeof i&&i>=0&&i<=1?null:`Invalid rgba value [${[e,t,n,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof i?[e,t,n,i]:[e,t,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function mt(e){if(null===e)return!0;
vendor: 6,566 bytes, line 2
2if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof lt)return!0;if(e instanceof ct)return!0;if(e instanceof ht)return!0;if(e instanceof pt)return!0;if(Array.isArray(e)){for(const t of e)if(!mt(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!mt(e[t]))return!1;return!0}return!1}function At(e){if(null===e)return Ve;if("string"==typeof e)return Ge;if("boolean"==typeof e)return Ke;if("number"==typeof e)return je;if(e instanceof lt)return qe;if(e instanceof ct)return We;if(e instanceof ht)return Xe;if(e instanceof pt)return Je;if(Array.isArray(e)){const t=e.length;let n;for(const t of e){const e=At(t);if(n){if(n===e)continue;n=Ye;break}n=e}return Ze(n||Ye,t)}return $e}function gt(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof lt||e instanceof ht||e instanceof pt?e.toString():JSON.stringify(e)}class yt{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!mt(e[1]))return t.error("invalid value");const n=e[1];let i=At(n);const r=t.expectedType;return"array"!==i.kind||0!==i.N||!r||"array"!==r.kind||"number"==typeof r.N&&0!==r.N||(i=r),new yt(i,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof lt?["rgba"].concat(this.value.toArray()):this.value instanceof ht?this.value.serialize():this.value}}class vt{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const _t={string:Ge,number:je,boolean:Ke,object:$e};class bt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n,i=1;const r=e[0];if("array"===r){let r,s;if(e.length>2){const n=e[1];if("string"!=typeof n||!(n in _t)||"object"===n)return t.error('The item type argument of "array" must be one of string, number, boolean',1);r=_t[n],i++}else r=Ye;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);s=e[2],i++}n=Ze(r,s)}else n=_t[r];const s=[];for(;i<e.length;i++){const n=t.parse(e[i],i,Ye);if(!n)return null;s.push(n)}return new bt(n,s)}evaluate(e){for(let t=0;t<this.args.length;t++){const n=this.args[t].evaluate(e);if(!nt(this.type,At(n)))return n;if(t===this.args.length-1)throw new vt(`Expected value to be of type ${et(this.type)}, but found ${et(At(n))} instead.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);const i=e.N;("number"==typeof i||this.args.length>1)&&t.push(i)}}return t.concat(this.args.map(e=>e.serialize()))}}class wt{constructor(e){this.type=Xe,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");const i=[];let r=!1;for(let n=1;n<=e.length-1;++n){const s=e[n];if(r&&"object"==typeof s&&!Array.isArray(s)){r=!1;let e=null;if(s["font-scale"]&&(e=t.parse(s["font-scale"],1,je),!e))return null;let n=null;if(s["text-font"]&&(n=t.parse(s["text-font"],1,Ze(Ge)),!n))return null;let a=null;if(s["text-color"]&&(a=t.parse(s["text-color"],1,qe),!a))return null;const o=i[i.length-1];o.scale=e,o.font=n,o.textColor=a}else{const s=t.parse(e[n],1,Ye);if(!s)return null;const a=s.type.kind;if("string"!==a&&"value"!==a&&"null"!==a&&"resolvedImage"!==a)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");r=!0,i.push({content:s,scale:null,font:null,textColor:null})}}return new wt(i)}evaluate(e){return new ht(this.sections.map(t=>{const n=t.content.evaluate(e);return At(n)===Je?new ut("",n,null,null,null):new ut(gt(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)}))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const n={};t.scale&&(n["font-scale"]=t.scale.serialize()),t.font&&(n["text-font"]=t.font.serialize()),t.textColor&&(n["text-color"]=t.textColor.serialize()),e.push(n)}return e}}class xt{constructor(e){this.type=Je,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,Ge);return n?new xt(n):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),n=pt.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Et={"to-boolean":Ke,"to-color":qe,"to-number":je,"to-string":Ge};class Ct{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");const i=Et[n],r=[];for(let n=1;n<e.length;n++){const i=t.parse(e[n],n,Ye);if(!i)return null;r.push(i)}return new Ct(i,r)}evaluate(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){let t,n;for(const i of this.args){if(t=i.evaluate(e),n=null,t instanceof lt)return t;if("string"==typeof t){const n=e.parseColor(t);if(n)return n}else if(Array.isArray(t)&&(n=t.length<3||t.length>4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:ft(t[0],t[1],t[2],t[3]),!n))return new lt(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new vt(n||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const n of this.args){if(t=n.evaluate(e),null===t)return 0;const i=Number(t);if(!isNaN(i))return i}throw new vt(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?ht.fromString(gt(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?pt.fromString(gt(this.args[0].evaluate(e))):gt(this.args[0].evaluate(e))}
vendor: 4,698 bytes, line 2
2eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if("formatted"===this.type.kind)return new wt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new xt(this.args[0]).serialize();const e=["to-"+this.type.kind];return this.eachChild(t=>{e.push(t.serialize())}),e}}const St=["Unknown","Point","LineString","Polygon"];class Tt{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?St[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=lt.parse(e)),t}}class Bt{constructor(e,t,n,i){this.name=e,this.type=t,this._evaluate=n,this.args=i}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,t){const n=e[0],i=Bt.definitions[n];if(!i)return t.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const r=Array.isArray(i)?i[0]:i.type,s=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,a=s.filter(([t])=>!Array.isArray(t)||t.length===e.length-1);let o=null;for(const[i,s]of a){o=new Wt(t.registry,t.path,null,t.scope);const a=[];let l=!1;for(let t=1;t<e.length;t++){const n=e[t],r=Array.isArray(i)?i[t-1]:i.type,s=o.parse(n,1+a.length,r);if(!s){l=!0;break}a.push(s)}if(!l)if(Array.isArray(i)&&i.length!==a.length)o.error(`Expected ${i.length} arguments, but found ${a.length} instead.`);else{for(let e=0;e<a.length;e++){const t=Array.isArray(i)?i[e]:i.type,n=a[e];o.concat(e+1).checkSubtype(t,n.type)}if(0===o.errors.length)return new Bt(n,r,s,a)}}if(1===a.length)t.errors.push(...o.errors);else{const n=(a.length?a:s).map(([e])=>{return t=e,Array.isArray(t)?`(${t.map(et).join(", ")})`:`(${et(t.type)}...)`;var t}).join(" | "),i=[];for(let n=1;n<e.length;n++){const r=t.parse(e[n],1+i.length);if(!r)return null;i.push(et(r.type))}t.error(`Expected arguments of type ${n}, but found (${i.join(", ")}) instead.`)}return null}static register(e,t){Bt.definitions=t;for(const n in t)e[n]=Bt}}class kt{constructor(e,t,n){this.type=We,this.locale=n,this.caseSensitive=e,this.diacriticSensitive=t}static parse(e,t){if(2!==e.length)return t.error("Expected one argument.");const n=e[1];if("object"!=typeof n||Array.isArray(n))return t.error("Collator options argument must be an object.");const i=t.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,Ke);if(!i)return null;const r=t.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,Ke);if(!r)return null;let s=null;return n.locale&&(s=t.parse(n.locale,1,Ge),!s)?null:new kt(i,r,s)}evaluate(e){return new ct(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}function It(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function Mt(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function Pt(e,t){const n=(180+e[0])/360,i=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,r=Math.pow(2,t.z);return[Math.round(n*r*8192),Math.round(i*r*8192)]}function Dt(e,t,n){const i=e[0]-t[0],r=e[1]-t[1],s=e[0]-n[0],a=e[1]-n[1];return i*a-s*r==0&&i*s<=0&&r*a<=0}function Ut(e,t){let n=!1;for(let a=0,o=t.length;a<o;a++){const o=t[a];for(let t=0,a=o.length;t<a-1;t++){if(Dt(e,o[t],o[t+1]))return!1;(r=o[t])[1]>(i=e)[1]!=(s=o[t+1])[1]>i[1]&&i[0]<(s[0]-r[0])*(i[1]-r[1])/(s[1]-r[1])+r[0]&&(n=!n)}}var i,r,s;return n}function Ot(e,t){for(let n=0;n<t.length;n++)if(Ut(e,t[n]))return!0;return!1}function Ft(e,t,n,i){const r=i[0]-n[0],s=i[1]-n[1],a=(e[0]-n[0])*s-r*(e[1]-n[1]),o=(t[0]-n[0])*s-r*(t[1]-n[1]);return a>0&&o<0||a<0&&o>0}function Rt(e,t,n){for(const u of n)for(let n=0;n<u.length-1;++n)if(0!=(o=[(a=u[n+1])[0]-(s=u[n])[0],a[1]-s[1]])[0]*(l=[(r=t)[0]-(i=e)[0],r[1]-i[1]])[1]-o[1]
vendor: 4,229 bytes, line 2
2*l[0]&&Ft(i,r,s,a)&&Ft(s,a,i,r))return!0;var i,r,s,a,o,l;return!1}function Nt(e,t){for(let n=0;n<e.length;++n)if(!Ut(e[n],t))return!1;for(let n=0;n<e.length-1;++n)if(Rt(e[n],e[n+1],t))return!1;return!0}function Lt(e,t){for(let n=0;n<t.length;n++)if(Nt(e,t[n]))return!0;return!1}function zt(e,t,n){const i=[];for(let r=0;r<e.length;r++){const s=[];for(let i=0;i<e[r].length;i++){const a=Pt(e[r][i],n);It(t,a),s.push(a)}i.push(s)}return i}function Ht(e,t,n){const i=[];for(let r=0;r<e.length;r++){const s=zt(e[r],t,n);i.push(s)}return i}function Qt(e,t,n,i){if(e[0]<n[0]||e[0]>n[2]){const t=.5*i;let r=e[0]-n[0]>t?-i:n[0]-e[0]>t?i:0;0===r&&(r=e[0]-n[2]>t?-i:n[2]-e[0]>t?i:0),e[0]+=r}It(t,e)}function Vt(e,t,n,i){const r=8192*Math.pow(2,i.z),s=[8192*i.x,8192*i.y],a=[];for(const i of e)for(const e of i){const i=[e.x+s[0],e.y+s[1]];Qt(i,t,n,r),a.push(i)}return a}function jt(e,t,n,i){const r=8192*Math.pow(2,i.z),s=[8192*i.x,8192*i.y],a=[];for(const n of e){const e=[];for(const i of n){const n=[i.x+s[0],i.y+s[1]];It(t,n),e.push(n)}a.push(e)}if(t[2]-t[0]<=r/2){(o=t)[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(const e of a)for(const i of e)Qt(i,t,n,r)}var o;return a}class Gt{constructor(e,t){this.type=Ke,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(mt(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e<t.features.length;++e){const n=t.features[e].geometry.type;if("Polygon"===n||"MultiPolygon"===n)return new Gt(t,t.features[e].geometry)}else if("Feature"===t.type){const e=t.geometry.type;if("Polygon"===e||"MultiPolygon"===e)return new Gt(t,t.geometry)}else if("Polygon"===t.type||"MultiPolygon"===t.type)return new Gt(t,t)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){const n=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],r=e.canonicalID();if("Polygon"===t.type){const s=zt(t.coordinates,i,r),a=Vt(e.geometry(),n,i,r);if(!Mt(n,i))return!1;for(const e of a)if(!Ut(e,s))return!1}if("MultiPolygon"===t.type){const s=Ht(t.coordinates,i,r),a=Vt(e.geometry(),n,i,r);if(!Mt(n,i))return!1;for(const e of a)if(!Ot(e,s))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){const n=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],r=e.canonicalID();if("Polygon"===t.type){const s=zt(t.coordinates,i,r),a=jt(e.geometry(),n,i,r);if(!Mt(n,i))return!1;for(const e of a)if(!Nt(e,s))return!1}if("MultiPolygon"===t.type){const s=Ht(t.coordinates,i,r),a=jt(e.geometry(),n,i,r);if(!Mt(n,i))return!1;for(const e of a)if(!Lt(e,s))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}function Kt(e){if(e instanceof Bt){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof Gt)return!1;let t=!0;return e.eachChild(e=>{t&&!Kt(e)&&(t=!1)}),t}function qt(e){if(e instanceof Bt&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild(e=>{t&&!qt(e)&&(t=!1)}),t}function $t(e,t){if(e instanceof Bt&&t.indexOf(e.name)>=0)return!1;let n=!0;return e.eachChild(e=>{n&&!$t(e,t)&&(n=!1)}),n}class Yt{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const n=e[1];return t.scope.has(n)?new Yt(n,t.scope.get(n)):t.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class Wt{constructor(e,t=[],n,i=new Qe,r=[]){this.registry=e,this.path=t,this.key=t.map(e=>`[${e}]`).join(""),this.scope=i,this.errors=r,this.expectedType=n}parse(e,t,n,i,r={}){return t?this.concat(t,n,i)._parse(e,r):this._parse(e,r)}
vendor: 1,032 bytes, line 2
2_parse(e,t){function n(e,t,n){return"assert"===n?new bt(t,[e]):"coerce"===n?new Ct(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const i=e[0];if("string"!=typeof i)return this.error(`Expression name must be a string, but found ${typeof i} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const r=this.registry[i];if(r){let i=r.parse(e,this);if(!i)return null;if(this.expectedType){const e=this.expectedType,r=i.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==r.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==r.kind&&"string"!==r.kind){if(this.checkSubtype(e,r))return null}else i=n(i,e,t.typeAnnotation||"coerce");else i=n(i,e,t.typeAnnotation||"assert")}if(!(i instanceof yt)&&"resolvedImage"!==i.t
vendor: 6,149 bytes, line 2
2ype.kind&&function e(t){if(t instanceof Yt)return e(t.boundExpression);if(t instanceof Bt&&"error"===t.name)return!1;if(t instanceof kt)return!1;if(t instanceof Gt)return!1;const n=t instanceof Ct||t instanceof bt;let i=!0;return t.eachChild(t=>{i=n?i&&e(t):i&&t instanceof yt}),!!i&&Kt(t)&&$t(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script"])}(i)){const t=new Tt;try{i=new yt(i.type,i.evaluate(t))}catch(e){return this.error(e.message),null}}return i}return this.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,t,n){const i="number"==typeof e?this.path.concat(e):this.path,r=n?this.scope.concat(n):this.scope;return new Wt(this.registry,i,t||null,r,this.errors)}error(e,...t){const n=`${this.key}${t.map(e=>`[${e}]`).join("")}`;this.errors.push(new He(n,e))}checkSubtype(e,t){const n=nt(e,t);return n&&this.error(n),n}}function Xt(e,t){const n=e.length-1;let i,r,s=0,a=n,o=0;for(;s<=a;)if(o=Math.floor((s+a)/2),i=e[o],r=e[o+1],i<=t){if(o===n||t<r)return o;s=o+1}else{if(!(i>t))throw new vt("Input is not a number.");a=o-1}return 0}class Jt{constructor(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[e,t]of n)this.labels.push(e),this.outputs.push(t)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const n=t.parse(e[1],1,je);if(!n)return null;const i=[];let r=null;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(let n=1;n<e.length;n+=2){const s=1===n?-1/0:e[n],a=e[n+1],o=n,l=n+1;if("number"!=typeof s)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',o);if(i.length&&i[i.length-1][0]>=s)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',o);const u=t.parse(a,l,r);if(!u)return null;r=r||u.type,i.push([s,u])}return new Jt(r,n,i)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=t[0])return n[0].evaluate(e);const r=t.length;return i>=t[r-1]?n[r-1].evaluate(e):n[Xt(t,i)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}function Zt(e,t,n){return e*(1-n)+t*n}var en=Object.freeze({__proto__:null,number:Zt,color:function(e,t,n){return new lt(Zt(e.r,t.r,n),Zt(e.g,t.g,n),Zt(e.b,t.b,n),Zt(e.a,t.a,n))},array:function(e,t,n){return e.map((e,i)=>Zt(e,t[i],n))}});const tr=6/29*3*(6/29),tn=Math.PI/180,nn=180/Math.PI;function rn(e){return e>.008856451679035631?Math.pow(e,1/3):e/tr+4/29}function sn(e){return e>6/29?e*e*e:tr*(e-4/29)}function an(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function on(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ln(e){const t=on(e.r),n=on(e.g),i=on(e.b),r=rn((.4124564*t+.3575761*n+.1804375*i)/.95047),s=rn((.2126729*t+.7151522*n+.072175*i)/1);return{l:116*s-16,a:500*(r-s),b:200*(s-rn((.0193339*t+.119192*n+.9503041*i)/1.08883)),alpha:e.a}}function cn(e){let t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,i=isNaN(e.b)?t:t-e.b/200;return t=1*sn(t),n=.95047*sn(n),i=1.08883*sn(i),new lt(an(3.2404542*n-1.5371385*t-.4985314*i),an(-.969266*n+1.8760108*t+.041556*i),an(.0556434*n-.2040259*t+1.0572252*i),e.alpha)}function un(e,t,n){const i=t-e;return e+n*(i>180||i<-180?i-360*Math.round(i/360):i)}const hn={forward:ln,reverse:cn,interpolate:function(e,t,n){return{l:Zt(e.l,t.l,n),a:Zt(e.a,t.a,n),b:Zt(e.b,t.b,n),alpha:Zt(e.alpha,t.alpha,n)}}},hr={forward:function(e){const{l:t,a:n,b:i}=ln(e),r=Math.atan2(i,n)*nn;return{h:r<0?r+360:r,c:Math.sqrt(n*n+i*i),l:t,alpha:e.a}},reverse:function(e){const t=e.h*tn,n=e.c;return cn({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:un(e.h,t.h,n),c:Zt(e.c,t.c,n),l:Zt(e.l,t.l,n),alpha:Zt(e.alpha,t.alpha,n)}}};var dn=Object.freeze({__proto__:null,lab:hn,hcl:hr});class pn{constructor(e,t,n,i,r){this.type=e,this.operator=t,this.interpolation=n,this.input=i,this.labels=[],this.outputs=[];for(const[e,t]of r)this.labels.push(e),this.outputs.push(t)}static interpolationFactor(e,t,i,r){let s=0;if("exponential"===e.name)s=fn(t,e.base,i,r);else if("linear"===e.name)s=fn(t,1,i,r);else if("cubic-bezier"===e.name){const a=e.controlPoints;s=new n(a[0],a[1],a[2],a[3]).solve(fn(t,1,i,r))}return s}static parse(e,t){let[n,i,r,...s]=e;if(!Array.isArray(i)||0===i.length)return t.error("Expected an interpolation type expression.",1);if("linear"===i[0])i={name:"linear"};else if("exponential"===i[0]){const e=i[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:e}}else{if("cubic-bezier"!==i[0])return t.error("Unknown interpolation type "+String(i[0]),1,0);{const e=i.slice(1);if(4!==e.length||e.some(e=>"number"!=typeof e||e<0||e>1))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(r=t.parse(r,2,je),!r)return null;const a=[];let o=null;"interpolate-hcl"===n||"interpolate-lab"===n?o=qe:t.expectedType&&"value"!==t.expectedType.kind&&(o=t.expectedType);for(let e=0;e<s.length;e+=2){const n=s[e],i=s[e+1],r=e+3,l=e+4;if("number"!=typeof n)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not c
2omputed expressions) for the input values.',r);if(a.length&&a[a.length-1][0]>=n)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',r);const u=t.parse(i,l,o);if(!u)return null;o=o||u.type,a.push([n,u])}return"number"===o.kind||"color"===o.kind||"array"===o.kind&&"number"===o.itemType.kind&&"number"==typeof o.N?new pn(o,n,i,r,a):t.error(`Type ${et(o)} is not interpolatable.`)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=t[0])return n[0].evaluate(e);const r=t.length;if(i>=t[r-1])return n[r-1].evaluate(e);const s=Xt(t,i),a=pn.interpolationFactor(this.interpolation,i,t[s],t[s+1]),o=n[s].evaluate(e),l=n[s+1].evaluate(e);return"interpolate"===this.operator?en[this.type.kind.toLowerCase()](o,l,a):"interpolate-hcl"===this.operator?hr.reverse(hr.interpolate(hr.forward(o),hr.forward(l),a)):hn.reverse(hn.interpolate(hn.forward(o),hn.forward(l),a))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];for(let e=0;e<this.labels.length;e++)t.push(this.labels[e],this.outputs[e].serialize());return t}}function fn(e,t,n,i){const r=i-n,s=e-n;return 0===r?0:1===t?s/r:(Math.pow(t,s)-1)/(Math.pow(t,r)-1)}class mn{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expectected at least one argument.");let n=null;const i=t.expectedType;i&&"value"!==i.kind&&(n=i);const r=[];for(const i of e.slice(1)){const e=t.parse(i,1+r.length,n,void 0,{typeAnnotation:"omit"});if(!e)return null;n=n||e.type,r.push(e)}const s=i&&r.some(e=>nt(i,e.type));return new mn(s?Ye:n,r)}evaluate(e){let t,n=null,i=0;for(const r of this.args)if(i++,n=r.evaluate(e),n&&n instanceof pt&&!n.available&&(t||(t=n.name),n=null,i===this.args.length&&(n=t)),null!==n)break;return n}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(t=>{e.push(t.serialize())}),e}}class An{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let i=1;i<e.length-1;i+=2){const r=e[i];if("string"!=typeof r)return t.error(`Expected string, but found ${typeof r} instead.`,i);if(/[^a-zA-Z0-9_]/.test(r))return t.error("Variable names must contain only alphanumeric characters or '_'.",i);const s=t.parse(e[i+1],i+1);if(!s)return null;n.push([r,s])}const i=t.parse(e[e.length-1],e.length-1,t.expectedType,n);return i?new An(n,i):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[t,n]of this.bindings)e.push(t,n.serialize());return e.push(this.result.serialize()),e}}class gn{constructor(e,t,n){this.type=e,this.index=t,this.input=n}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,je),i=t.parse(e[2],2,Ze(t.expectedType||Ye));return n&&i?new gn(i.type.itemType,n,i):null}evaluate(e){const t=this.index.evaluate(e),n=this.input.evaluate(e);if(t<0)throw new vt(`Array index out of bounds: ${t} < 0.`);if(t>=n.length)throw new vt(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new vt(`Array index must be an integer, but found ${t} instead.`);return n[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class yn{constructor(e,t){this.type=Ke,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,Ye),i=t.parse(e[2],2,Ye);return n&&i?it(n.type,[Ke,Ge,je,Ve,Ye])?new yn(n,i):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${et(n.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!n)return!1;if(!st(t,["boolean","string","number","null"]))throw new vt(`Expected first argument to be of type boolean, string, number or null, but found ${et(At(t))} instead.`);if(!st(n,["string","array"]))throw new vt(`Expected second argument to be of type array or string, but found ${et(At(n))} instead.`);return n.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class vn{constructor(e,t,n){this.type=je,this.needle=e,this.haystack=t,this.fromIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,Ye),i=t.parse(e[2],2,Ye);if(!n||!i)return null;if(!it(n.type,[Ke,Ge,je,Ve,Ye]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${et(n.type)} instead`);if(4===e.length){const r=t.parse(e[3],3,je);return r?new vn(n,i,r):null}return new vn(n,i)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!st(t,["boolean","string","number","null"]))throw new vt(`Expected first argument to be of type boolean, string, number or null, but found ${et(At(t))} instead.`);if(!st(n,["string","array"]))throw new vt(`Expected second argument to be of type array or string, but found ${et(At(n))} instead.`);if(this.fromIndex){const i=this.fromIndex.evaluate(e);return n.indexOf(t,i)}return n.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}
vendor: 2,453 bytes, line 2
2class br{constructor(e,t,n,i,r,s){this.inputType=e,this.type=t,this.input=n,this.cases=i,this.outputs=r,this.otherwise=s}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let n,i;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);const r={},s=[];for(let a=2;a<e.length-1;a+=2){let o=e[a];const l=e[a+1];Array.isArray(o)||(o=[o]);const u=t.concat(a);if(0===o.length)return u.error("Expected at least one branch label.");for(const e of o){if("number"!=typeof e&&"string"!=typeof e)return u.error("Branch labels must be numbers or strings.");if("number"==typeof e&&Math.abs(e)>Number.MAX_SAFE_INTEGER)return u.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return u.error("Numeric branch labels must be integer values.");if(n){if(u.checkSubtype(n,At(e)))return null}else n=At(e);if(void 0!==r[String(e)])return u.error("Branch labels must be unique.");r[String(e)]=s.length}const c=t.parse(l,a,i);if(!c)return null;i=i||c.type,s.push(c)}const a=t.parse(e[1],1,Ye);if(!a)return null;const o=t.parse(e[e.length-1],e.length-1,i);return o?"value"!==a.type.kind&&t.concat(1).checkSubtype(n,a.type)?null:new br(n,i,a,r,s,o):null}evaluate(e){const t=this.input.evaluate(e);return(At(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),n=[],i={};for(const e of t){const t=i[this.cases[e]];void 0===t?(i[this.cases[e]]=n.length,n.push([this.cases[e],[e]])):n[t][1].push(e)}const r=e=>"number"===this.inputType.kind?Number(e):e;for(const[t,i]of n)e.push(1===i.length?r(i[0]):i.map(r)),e.push(this.outputs[t].serialize());return e.push(this.otherwise.serialize()),e}}class _n{constructor(e,t,n){this.type=e,this.branches=t,this.otherwise=n}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);const i=[];for(let r=1;r<e.length-1;r+=2){const s=t.parse(e[r],r,Ke);
vendor: 12,121 bytes, line 2
2if(!s)return null;const a=t.parse(e[r+1],r+1,n);if(!a)return null;i.push([s,a]),n=n||a.type}const r=t.parse(e[e.length-1],e.length-1,n);return r?new _n(n,i,r):null}evaluate(e){for(const[t,n]of this.branches)if(t.evaluate(e))return n.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[t,n]of this.branches)e(t),e(n);e(this.otherwise)}outputDefined(){return this.branches.every(([e,t])=>t.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(t=>{e.push(t.serialize())}),e}}class bn{constructor(e,t,n,i){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=i}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,Ye),i=t.parse(e[2],2,je);if(!n||!i)return null;if(!it(n.type,[Ze(Ye),Ge,Ye]))return t.error(`Expected first argument to be of type array or string, but found ${et(n.type)} instead`);if(4===e.length){const r=t.parse(e[3],3,je);return r?new bn(n.type,n,i,r):null}return new bn(n.type,n,i)}evaluate(e){const t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!st(t,["string","array"]))throw new vt(`Expected first argument to be of type array or string, but found ${et(At(t))} instead.`);if(this.endIndex){const i=this.endIndex.evaluate(e);return t.slice(n,i)}return t.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function wn(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function xn(e,t,n,i){return 0===i.compare(t,n)}function En(e,t,n){const i="=="!==e&&"!="!==e;return class r{constructor(e,t,n){this.type=Ke,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const n=e[0];let s=t.parse(e[1],1,Ye);if(!s)return null;if(!wn(n,s.type))return t.concat(1).error(`"${n}" comparisons are not supported for type '${et(s.type)}'.`);let a=t.parse(e[2],2,Ye);if(!a)return null;if(!wn(n,a.type))return t.concat(2).error(`"${n}" comparisons are not supported for type '${et(a.type)}'.`);if(s.type.kind!==a.type.kind&&"value"!==s.type.kind&&"value"!==a.type.kind)return t.error(`Cannot compare types '${et(s.type)}' and '${et(a.type)}'.`);i&&("value"===s.type.kind&&"value"!==a.type.kind?s=new bt(a.type,[s]):"value"!==s.type.kind&&"value"===a.type.kind&&(a=new bt(s.type,[a])));let o=null;if(4===e.length){if("string"!==s.type.kind&&"string"!==a.type.kind&&"value"!==s.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(o=t.parse(e[3],3,We),!o)return null}return new r(s,a,o)}evaluate(r){const s=this.lhs.evaluate(r),a=this.rhs.evaluate(r);if(i&&this.hasUntypedArgument){const t=At(s),n=At(a);if(t.kind!==n.kind||"string"!==t.kind&&"number"!==t.kind)throw new vt(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${n.kind}) instead.`)}if(this.collator&&!i&&this.hasUntypedArgument){const e=At(s),n=At(a);if("string"!==e.kind||"string"!==n.kind)return t(r,s,a)}return this.collator?n(r,s,a,this.collator.evaluate(r)):t(r,s,a)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild(e=>{t.push(e.serialize())}),t}}}const Cn=En("==",(function(e,t,n){return t===n}),xn),Sn=En("!=",(function(e,t,n){return t!==n}),(function(e,t,n,i){return!xn(0,t,n,i)})),Tn=En("<",(function(e,t,n){return t<n}),(function(e,t,n,i){return i.compare(t,n)<0})),Bn=En(">",(function(e,t,n){return t>n}),(function(e,t,n,i){return i.compare(t,n)>0})),kn=En("<=",(function(e,t,n){return t<=n}),(function(e,t,n,i){return i.compare(t,n)<=0}));class In{constructor(e,t,n,i,r){this.type=Ge,this.number=e,this.locale=t,this.currency=n,this.minFractionDigits=i,this.maxFractionDigits=r}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,je);if(!n)return null;const i=e[2];if("object"!=typeof i||Array.isArray(i))return t.error("NumberFormat options argument must be an object.");let r=null;if(i.locale&&(r=t.parse(i.locale,1,Ge),!r))return null;let s=null;if(i.currency&&(s=t.parse(i.currency,1,Ge),!s))return null;let a=null;if(i["min-fraction-digits"]&&(a=t.parse(i["min-fraction-digits"],1,je),!a))return null;let o=null;return i["max-fraction-digits"]&&(o=t.parse(i["max-fraction-digits"],1,je),!o)?null:new In(n,r,s,a,o)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class Mn{constructor(e){this.type=je,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error(`Expected argument of type string or array, but found ${et(n.type)} instead.`):new Mn(n):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new vt(`Expected value to be of type string or array, but found ${et(At(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(t=>{e.push(t.serialize())}),e}}const Pn={"==":Cn,"!=":Sn,">":Bn,"<":Tn,">=":En(">=",(function(e,t,n){return t>=n}),(function(e,t,n,i){return i.compare(t,n)>=0})),"<=":kn,array:bt,at:gn,boolean:bt,case:_n,coalesce:mn,collator:kt,format:wt,image:xt,in:yn,"index-of":vn,interpolate:pn,"interpolate-hcl":pn,"interpolate-lab":pn,length:Mn,let:An,literal:yt,match:br,number:bt,"number-format":In,object:bt,slice:bn,step:Jt,string:bt,"to-boolean":Ct,"to-color":Ct,"to-number":Ct,"to-string":Ct,var:Yt,within:Gt};function Dn(e,[t,n,i,r]){t=t.evaluate(e),n=n.evaluate(e),i=i.evaluate(e);const s=r?r.evaluate(e):1,a=ft(t,n,i,s);if(a)throw new vt(a);return new lt(t/255*s,n/255*s,i/255*s,s)}function Un(e,t){return e in t}function On(e,t){const n=t[e];return void 0===n?null:n}function Fn(e){return{type:e}}function Rn(e){return{result:"success",value:e}}function Nn(e){return{result:"error",value:e}}function Ln(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function zn(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Hn(e){return!!e.expression&&e.expression.interpolated}function Qn(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function Vn(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function jn(e){return e}function Gn(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function Kn(e,t,n,i,r){return Gn(typeof n===r?i[n]:void 0,e.default,t.default)}function qn(e,t,n){if("number"!==Qn(n))return Gn(e.default,t.default);const i=e.stops.length;if(1===i)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[i-1][0])return e.stops[i-1][1];const r=Xt(e.stops.map(e=>e[0]),n);return e.stops[r][1]}function $n(e,t,n){const i=void 0!==e.base?e.base:1;if("number"!==Qn(n))return Gn(e.default,t.default);const r=e.stops.length;if(1===r)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];const s=Xt(e.stops.map(e=>e[0]),n),a=function(e,t,n,i){const r=i-n,s=e-n;return 0===r?0:1===t?s/r:(Math.pow(t,s)-1)/(Math.pow(t,r)-1)}(n,i,e.stops[s][0],e.stops[s+1][0]),o=e.stops[s][1],l=e.stops[s+1][1];let u=en[t.type]||jn;if(e.colorSpace&&"rgb"!==e.colorSpace){const t=dn[e.colorSpace];u=(e,n)=>t.reverse(t.interpolate(t.forward(e),t.forward(n),a))}return"function"==typeof o.evaluate?{evaluate(...e){const t=o.evaluate.apply(void 0,e),n=l.evaluate.apply(void 0,e);if(void 0!==t&&void 0!==n)return u(t,n,a)}}:u(o,l,a)}function Yn(e,t,n){return"color"===t.type?n=lt.parse(n):"formatted"===t.type?n=ht.fromString(n.toString()):"resolvedImage"===t.type?n=pt.fromString(n.toString()):Qn(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0),Gn(n,e.default,t.default)}Bt.register(Pn,{error:[{kind:"error"},[Ge],(e,[t])=>{throw new vt(t.evaluate(e))}],typeof:[Ge,[Ye],(e,[t])=>et(At(t.evaluate(e)))],"to-rgba":[Ze(je,4),[qe],(e,[t])=>t.evaluate(e).toArray()],rgb:[qe,[je,je,je],Dn],rgba:[qe,[je,je,je,je],Dn],has:{type:Ke,overloads:[[[Ge],(e,[t])=>Un(t.evaluate(e),e.properties())],[[Ge,$e],(e,[t,n])=>Un(t.evaluate(e),n.evaluate(e))]]},get:{type:Ye,overloads:[[[Ge],(e,[t])=>On(t.evaluate(e),e.properties())],[[Ge,$e],(e,[t,n])=>On(t.evaluate(e),n.evaluate(e))]]},"feature-state":[Ye,[Ge],(e,[t])=>On(t.evaluate(e),e.featureState||{})],properties:[$e,[],e=>e.properties()],"geometry-type":[Ge,[],e=>e.geometryType()],id:[Ye,[],e=>e.id()],zoom:[je,[],e=>e.globals.zoom],"heatmap-density":[je,[],e=>e.globals.heatmapDensity||0],"line-progress":[je,[],e=>e.globals.lineProgress||0],"sky-radial-progress":[je,[],e=>e.globals.skyRadialProgress||0],accumulated:[Ye,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[je,Fn(je),(e,t)=>{let n=0;for(const i of t)n+=i.evaluate(e);return n}],"*":[je,Fn(je),(e,t)=>{let n=1;for(const i of t)n*=i.evaluate(e);return n}],"-":{type:je,overloads:[[[je,je],(e,[t,n])=>t.evaluate(e)-n.evaluate(e)],[[je],(e,[t])=>-t.evaluate(e)]]},"/":[je,[je,je],(e,[t,n])=>t.evaluate(e)/n.evaluate(e)],"%":[je,[je,je],(e,[t,n])=>t.evaluate(e)%n.evaluate(e)],ln2:[je,[],()=>Math.LN2],pi:[je,[],()=>Math.PI],e:[je,[],()=>Math.E],"^":[je,[je,je],(e,[t,n])=>Math.pow(t.evaluate(e),n.evaluate(e))],sqrt:[je,[je],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[je,[je],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[je,[je],(e,[t])=>Math.log(t.evaluate(e))],log2:[je,[je],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[je,[je],(e,[t])=>Math.sin(t.evaluate(e))],cos:[je,[je],(e,[t])=>Math.cos(t.evaluate(e))],tan:[je,[je],(e,[t])=>Math.tan(t.evaluate(e))],asin:[je,[je],(e,[t])=>Math.asin(t.evaluate(e))],acos:[je,[je],(e,[t])=>Math.acos(t.evaluate(e))],atan:[je,[je],(e,[t])=>Math.atan(t.evaluate(e))],min:[je,Fn(je),(e,t)=>Math.min(...t.map(t=>t.evaluate(e)))],max:[je,Fn(je),(e,t)=>Math.max(...t.map(t=>t.evaluate(e)))],abs:[je,[je],(e,[t])=>Math.abs(t.evaluate(e))],round:[je,[je],(e,[t])=>{const n=t.evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[je,[je],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[je,[je],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[Ke,[Ge,Ye],(e,[t,n])=>e.properties()[t.value]===n.value],"filter-id-==":[Ke,[Ye],(e,[t])=>e.id()===t.value],"filter-type-==":[Ke,[Ge],(e,[t])=>e.geometryType()===t.value],"filter-<":[Ke,[Ge,Ye],(e,[t,n])=>{const i=e.properties()[t.value],r=n.value;return typeof i==typeof r&&i<r}],"filter-id-<":[Ke,[Ye],(e,[t])=>{const n=e.id(),i=t.value;return typeof n==typeof i&&n<i}],"filter->":[Ke,[Ge,Ye],(e,[t,n])=>{const i=e.properties()[t.value],r=n.value;return typeof i==typeof r&&i>r}
vendor: 6,971 bytes, line 2
2],"filter-id->":[Ke,[Ye],(e,[t])=>{const n=e.id(),i=t.value;return typeof n==typeof i&&n>i}],"filter-<=":[Ke,[Ge,Ye],(e,[t,n])=>{const i=e.properties()[t.value],r=n.value;return typeof i==typeof r&&i<=r}],"filter-id-<=":[Ke,[Ye],(e,[t])=>{const n=e.id(),i=t.value;return typeof n==typeof i&&n<=i}],"filter->=":[Ke,[Ge,Ye],(e,[t,n])=>{const i=e.properties()[t.value],r=n.value;return typeof i==typeof r&&i>=r}],"filter-id->=":[Ke,[Ye],(e,[t])=>{const n=e.id(),i=t.value;return typeof n==typeof i&&n>=i}],"filter-has":[Ke,[Ye],(e,[t])=>t.value in e.properties()],"filter-has-id":[Ke,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[Ke,[Ze(Ge)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[Ke,[Ze(Ye)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[Ke,[Ge,Ze(Ye)],(e,[t,n])=>n.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[Ke,[Ge,Ze(Ye)],(e,[t,n])=>function(e,t,n,i){for(;n<=i;){const r=n+i>>1;if(t[r]===e)return!0;t[r]>e?i=r-1:n=r+1}return!1}(e.properties()[t.value],n.value,0,n.value.length-1)],all:{type:Ke,overloads:[[[Ke,Ke],(e,[t,n])=>t.evaluate(e)&&n.evaluate(e)],[Fn(Ke),(e,t)=>{for(const n of t)if(!n.evaluate(e))return!1;return!0}]]},any:{type:Ke,overloads:[[[Ke,Ke],(e,[t,n])=>t.evaluate(e)||n.evaluate(e)],[Fn(Ke),(e,t)=>{for(const n of t)if(n.evaluate(e))return!0;return!1}]]},"!":[Ke,[Ke],(e,[t])=>!t.evaluate(e)],"is-supported-script":[Ke,[Ge],(e,[t])=>{const n=e.globals&&e.globals.isSupportedScript;return!n||n(t.evaluate(e))}],upcase:[Ge,[Ge],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[Ge,[Ge],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[Ge,Fn(Ye),(e,t)=>t.map(t=>gt(t.evaluate(e))).join("")],"resolved-locale":[Ge,[We],(e,[t])=>t.evaluate(e).resolvedLocale()]});class Wn{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new Tt,this._defaultValue=t?function(e){return"color"===e.type&&Vn(e.default)?new lt(0,0,0,0):"color"===e.type?lt.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,n,i,r,s){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=i,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=s,this.expression.evaluate(this._evaluator)}evaluate(e,t,n,i,r,s){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=i,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=s||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new vt(`Expected value to be one of ${Object.keys(this._enumValues).map(e=>JSON.stringify(e)).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}function Xn(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in Pn}function Jn(e,t){const n=new Wt(Pn,[],t?function(e){const t={color:qe,string:Ge,number:je,enum:Ge,boolean:Ke,formatted:Xe,resolvedImage:Je};return"array"===e.type?Ze(t[e.value]||Ye,e.length):t[e.type]}(t):void 0),i=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return i?Rn(new Wn(i,t)):Nn(n.errors)}class Zn{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!qt(t.expression)}evaluateWithoutErrorHandling(e,t,n,i,r,s){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,i,r,s)}evaluate(e,t,n,i,r,s){return this._styleExpression.evaluate(e,t,n,i,r,s)}}class er{constructor(e,t,n,i){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!qt(t.expression),this.interpolationType=i}evaluateWithoutErrorHandling(e,t,n,i,r,s){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,i,r,s)}evaluate(e,t,n,i,r,s){return this._styleExpression.evaluate(e,t,n,i,r,s)}interpolationFactor(e,t,n){return this.interpolationType?pn.interpolationFactor(this.interpolationType,e,t,n):0}}function nr(e,t){if("error"===(e=Jn(e,t)).result)return e;const n=e.value.expression,i=Kt(n);if(!i&&!Ln(t))return Nn([new He("","data expressions not supported")]);const r=$t(n,["zoom"]);if(!r&&!zn(t))return Nn([new He("","zoom expressions not supported")]);const s=function e(t){let n=null;if(t instanceof An)n=e(t.result);else if(t instanceof mn){for(const i of t.args)if(n=e(i),n)break}else(t instanceof Jt||t instanceof pn)&&t.input instanceof Bt&&"zoom"===t.input.name&&(n=t);return n instanceof He||t.eachChild(t=>{const i=e(t);i instanceof He?n=i:!n&&i?n=new He("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&i&&n!==i&&(n=new He("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n}(n);return s||r?s instanceof He?Nn([s]):s instanceof pn&&!Hn(t)?Nn([new He("",'"interpolate" expressions cannot be used with this property')]):Rn(s?new er(i?"camera":"composite",e.value,s.labels,s instanceof pn?s.interpolation:void 0):new Zn(i?"constant":"source",e.value)):Nn([new He("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class rr{constructor(e,t){this._parameters=e,this._specification=t,Ne(this,function e(t,n){const i="color"===n.type,r=t.stops&&"object"==typeof t.stops[0][0],s=r||!(r||void 0!==t.property),a=t.type||(Hn(n)?"exponential":"interval");if(i&&((t=Ne({},t)).stops&&(t.stops=t.stops.map(e=>[e[0],lt.parse(e[1])])),t.default=lt.parse(t.default?t.default:n.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!dn[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);let o,l,u;if("exponential"===a)o=$n;else if("interval"===a)o=qn;else if("categorical"===a){o=Kn,l=Object.create(null);for(const e of t.stops)l[e[0]]=e[1];u=typeof t.stops[0][0]}else{if("identity"!==a)throw new Error(`Unknown function type "${a}"`);o=Yn}if(r){const i={},r=[];for(let e=0;e<t.stops.length;e++){const n=t.stops[e],s=n[0].zoom;void 0===i[s]&&(i[s]={zoom:s,type:t.type,property:t.property,default:t.default,stops:[]},r.push(s)),i[s].stops.push([n[0].value,n[1]])}const s=[];for(const t of r)s.push([i[t].zoom,e(i[t],n)]);const a={name:"linear"};return{kind:"composite",interpolationType:a,interpolationFactor:pn.interpolationFactor.bind(void 0,a),zoomStops:s.map(e=>e[0]),evaluate:({zoom:e},i)=>$n({stops:s,base:t.base},n,e).evaluate(e,i)}}if(s){const e="exponential"===a?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:e,interpolationFactor:pn.interpolationFactor.bind(void 0,e),zoomStops:t.stops.map(e=>e[0]),evaluate:({zoom:e})=>o(t,n,e,l,u)}}return{kind:"source",evaluate(e,i){const r=i&&i.properties?i.properties[t.property]:void 0;
vendor: 16,015 bytes, line 2
2return void 0===r?Gn(t.default,n.default):o(t,n,r,l,u)}}}(this._parameters,this._specification))}static deserialize(e){return new rr(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function ir(e){const t=e.key,n=e.value,i=e.valueSpec||{},r=e.objectElementValidators||{},s=e.style,a=e.styleSpec;let o=[];const l=Qn(n);if("object"!==l)return[new Fe(t,n,`object expected, ${l} found`)];for(const e in n){const l=e.split(".")[0],u=i[l]||i["*"];let c;if(r[l])c=r[l];else if(i[l])c=Mr;else if(r["*"])c=r["*"];else{if(!i["*"]){o.push(new Fe(t,n[e],`unknown property "${e}"`));continue}c=Mr}o=o.concat(c({key:(t?t+".":t)+e,value:n[e],valueSpec:u,style:s,styleSpec:a,object:n,objectKey:e},n))}for(const e in i)r[e]||i[e].required&&void 0===i[e].default&&void 0===n[e]&&o.push(new Fe(t,n,`missing required property "${e}"`));return o}function sr(e){const t=e.value,n=e.valueSpec,i=e.style,r=e.styleSpec,s=e.key,a=e.arrayElementValidator||Mr;if("array"!==Qn(t))return[new Fe(s,t,`array expected, ${Qn(t)} found`)];if(n.length&&t.length!==n.length)return[new Fe(s,t,`array length ${n.length} expected, length ${t.length} found`)];if(n["min-length"]&&t.length<n["min-length"])return[new Fe(s,t,`array length at least ${n["min-length"]} expected, length ${t.length} found`)];let o={type:n.value,values:n.values,minimum:n.minimum,maximum:n.maximum};r.$version<7&&(o.function=n.function),"object"===Qn(n.value)&&(o=n.value);let l=[];for(let e=0;e<t.length;e++)l=l.concat(a({array:t,arrayIndex:e,value:t[e],valueSpec:o,style:i,styleSpec:r,key:`${s}[${e}]`}));return l}function ar(e){const t=e.key,n=e.value,i=e.valueSpec;let r=Qn(n);if("number"===r&&n!=n&&(r="NaN"),"number"!==r)return[new Fe(t,n,`number expected, ${r} found`)];if("minimum"in i){let r=i.minimum;if("array"===Qn(i.minimum)&&(r=i.minimum[e.arrayIndex]),n<r)return[new Fe(t,n,`${n} is less than the minimum value ${r}`)]}if("maximum"in i){let r=i.maximum;if("array"===Qn(i.maximum)&&(r=i.maximum[e.arrayIndex]),n>r)return[new Fe(t,n,`${n} is greater than the maximum value ${r}`)]}return[]}function or(e){const t=e.valueSpec,n=Le(e.value.type);let i,r,s,a={};const o="categorical"!==n&&void 0===e.value.property,l=!o,u="array"===Qn(e.value.stops)&&"array"===Qn(e.value.stops[0])&&"object"===Qn(e.value.stops[0][0]),c=ir({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===n)return[new Fe(e.key,e.value,'identity function may not have a "stops" property')];let t=[];const i=e.value;return t=t.concat(sr({key:e.key,value:i,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:h})),"array"===Qn(i)&&0===i.length&&t.push(new Fe(e.key,i,"array must have at least one stop")),t},default:function(e){return Mr({key:e.key,value:e.value,valueSpec:t,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===n&&o&&c.push(new Fe(e.key,e.value,'missing required property "property"')),"identity"===n||e.value.stops||c.push(new Fe(e.key,e.value,'missing required property "stops"')),"exponential"===n&&e.valueSpec.expression&&!Hn(e.valueSpec)&&c.push(new Fe(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!Ln(e.valueSpec)?c.push(new Fe(e.key,e.value,"property functions not supported")):o&&!zn(e.valueSpec)&&c.push(new Fe(e.key,e.value,"zoom functions not supported"))),"categorical"!==n&&!u||void 0!==e.value.property||c.push(new Fe(e.key,e.value,'"property" property is required')),c;function h(e){let n=[];const i=e.value,o=e.key;if("array"!==Qn(i))return[new Fe(o,i,`array expected, ${Qn(i)} found`)];if(2!==i.length)return[new Fe(o,i,`array length 2 expected, length ${i.length} found`)];if(u){if("object"!==Qn(i[0]))return[new Fe(o,i,`object expected, ${Qn(i[0])} found`)];if(void 0===i[0].zoom)return[new Fe(o,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new Fe(o,i,"object stop key must have value")];if(s&&s>Le(i[0].zoom))return[new Fe(o,i[0].zoom,"stop zoom values must appear in ascending order")];Le(i[0].zoom)!==s&&(s=Le(i[0].zoom),r=void 0,a={}),n=n.concat(ir({key:o+"[0]",value:i[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:ar,value:p}}))}else n=n.concat(p({key:o+"[0]",value:i[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},i));return Xn(ze(i[1]))?n.concat([new Fe(o+"[1]",i[1],"expressions are not allowed in function stops.")]):n.concat(Mr({key:o+"[1]",value:i[1],valueSpec:t,style:e.style,styleSpec:e.styleSpec}))}function p(e,s){const o=Qn(e.value),l=Le(e.value),u=null!==e.value?e.value:s;if(i){if(o!==i)return[new Fe(e.key,u,`${o} stop domain type must match previous stop domain type ${i}`)]}else i=o;if("number"!==o&&"string"!==o&&"boolean"!==o)return[new Fe(e.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==o&&"categorical"!==n){let i=`number expected, ${o} found`;return Ln(t)&&void 0===n&&(i+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Fe(e.key,u,i)]}return"categorical"!==n||"number"!==o||isFinite(l)&&Math.floor(l)===l?"categorical"!==n&&"number"===o&&void 0!==r&&l<r?[new Fe(e.key,u,"stop domain values must appear in ascending order")]:(r=l,"categorical"===n&&l in a?[new Fe(e.key,u,"stop domain values must be unique")]:(a[l]=!0,[])):[new Fe(e.key,u,"integer expected, found "+l)]}}function li(e){const t=("property"===e.expressionContext?nr:Jn)(ze(e.value),e.valueSpec);if("error"===t.result)return t.value.map(t=>new Fe(`${e.key}${t.key}`,e.value,t.message));const n=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!n.outputDefined())return[new Fe(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===e.expressionContext&&"layout"===e.propertyType&&!qt(n))return[new Fe(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!qt(n))return[new Fe(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!$t(n,["zoom","feature-state"]))return[new Fe(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!Kt(n))return[new Fe(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function lr(e){const t=e.key,n=e.value,i=e.valueSpec,r=[];return Array.isArray(i.values)?-1===i.values.indexOf(Le(n))&&r.push(new Fe(t,n,`expected one of [${i.values.join(", ")}], ${JSON.stringify(n)} found`)):-1===Object.keys(i.values).indexOf(Le(n))&&r.push(new Fe(t,n,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(n)} found`)),r}function cr(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!cr(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}const ur={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function dr(e){if(null==e)return{filter:()=>!0,needGeometry:!1};cr(e)||(e=fr(e));const t=Jn(e,ur);if("error"===t.result)throw new Error(t.value.map(e=>`${e.key}: ${e.message}`).join(", "));return{filter:(e,n,i)=>t.value.evaluate(e,n,{},i),needGeometry:function e(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(let n=1;n<t.length;n++)if(e(t[n]))return!0;return!1}(e)}}function pr(e,t){return e<t?-1:e>t?1:0}function fr(e){if(!e)return!0;const t=e[0];return e.length<=1?"any"!==t:"=="===t?mr(e[1],e[2],"=="):"!="===t?yr(mr(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?mr(e[1],e[2],t):"any"===t?(n=e.slice(1),["any"].concat(n.map(fr))):"all"===t?["all"].concat(e.slice(1).map(fr)):"none"===t?["all"].concat(e.slice(1).map(fr).map(yr)):"in"===t?Ar(e[1],e.slice(2)):"!in"===t?yr(Ar(e[1],e.slice(2))):"has"===t?gr(e[1]):"!has"===t?yr(gr(e[1])):"within"!==t||e;var n}function mr(e,t,n){switch(e){case"$type":return["filter-type-"+n,t];case"$id":return["filter-id-"+n,t];default:return["filter-"+n,e,t]}}function Ar(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(e=>typeof e!=typeof t[0])?["filter-in-large",e,["literal",t.sort(pr)]]:["filter-in-small",e,["literal",t]]}}function gr(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function yr(e){return["!",e]}function vr(e){return cr(ze(e.value))?li(Ne({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function e(t){const n=t.value,i=t.key;if("array"!==Qn(n))return[new Fe(i,n,`array expected, ${Qn(n)} found`)];const r=t.styleSpec;let s,a=[];if(n.length<1)return[new Fe(i,n,"filter array must have at least 1 element")];switch(a=a.concat(lr({key:i+"[0]",value:n[0],valueSpec:r.filter_operator,style:t.style,styleSpec:t.styleSpec})),Le(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===Le(n[1])&&a.push(new Fe(i,n,`"$type" cannot be use with operator "${n[0]}"`));case"==":case"!=":3!==n.length&&a.push(new Fe(i,n,`filter array for operator "${n[0]}" must have 3 elements`));case"in":case"!in":n.length>=2&&(s=Qn(n[1]),"string"!==s&&a.push(new Fe(i+"[1]",n[1],`string expected, ${s} found`)));for(let e=2;e<n.length;e++)s=Qn(n[e]),"$type"===Le(n[1])?a=a.concat(lr({key:`${i}[${e}]`,value:n[e],valueSpec:r.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==s&&"number"!==s&&"boolean"!==s&&a.push(new Fe(`${i}[${e}]`,n[e],`string, number, or boolean expected, ${s} found`));break;case"any":case"all":case"none":for(let r=1;r<n.length;r++)a=a.concat(e({key:`${i}[${r}]`,value:n[r],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":s=Qn(n[1]),2!==n.length?a.push(new Fe(i,n,`filter array for "${n[0]}" operator must have 2 elements`)):"string"!==s&&a.push(new Fe(i+"[1]",n[1],`string expected, ${s} found`));break;case"within":s=Qn(n[1]),2!==n.length?a.push(new Fe(i,n,`filter array for "${n[0]}" operator must have 2 elements`)):"object"!==s&&a.push(new Fe(i+"[1]",n[1],`object expected, ${s} found`))}return a}(e)}function _r(e,t){const n=e.key,i=e.style,r=e.styleSpec,s=e.value,a=e.objectKey,o=r[`${t}_${e.layerType}`];if(!o)return[];const l=a.match(/^(.*)-transition$/);if("paint"===t&&l&&o[l[1]]&&o[l[1]].transition)return Mr({key:n,value:s,valueSpec:r.transition,style:i,styleSpec:r});const u=e.valueSpec||o[a];if(!u)return[new Fe(n,s,`unknown property "${a}"`)];let c;if("string"===Qn(s)&&Ln(u)&&!u.tokens&&(c=/^{([^}]+)}$/.exec(s)))return[new Fe(n,s,`"${a}" does not support interpolation syntax\nUse an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(c[1])} }\`.`)];const h=[];return"symbol"===e.layerType&&("text-field"===a&&i&&!i.glyphs&&h.push(new Fe(n,s,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&Vn(ze(s))&&"identity"===Le(s.type)&&h.push(new Fe(n,s,'"text-font" does not support identity functions'))),h.concat(Mr({key:e.key,value:s,valueSpec:u,style:i,styleSpec:r,expressionContext:"property",propertyType:t,propertyKey:a}))}function wr(e){return _r(e,"paint")}function xr(e){return _r(e,"layout")}function Er(e){let t=[];const n=e.value,i=e.key,r=e.style,s=e.styleSpec;n.type||n.ref||t.push(new Fe(i,n,'either "type" or "ref" is required'));let a=Le(n.type);const o=Le(n.ref);if(n.id){const s=Le(n.id);for(let a=0;a<e.arrayIndex;a++){const e=r.layers[a];Le(e.id)===s&&t.push(new Fe(i,n.id,`duplicate layer id "${n.id}", previously used at line ${e.id.__line__}`))}}if("ref"in n){let e;["type","source","source-layer","filter","layout"].forEach(e=>{e in n&&t.push(new Fe(i,n[e],`"${e}" is prohibited for ref layers`))}),r.layers.forEach(t=>{Le(t.id)===o&&(e=t)}),e?e.ref?t.push(new Fe(i,n.ref,"ref cannot reference another ref layer")):a=Le(e.type):t.push(new Fe(i,n.ref,`ref layer "${o}" not found`))}else if("background"!==a&&"sky"!==a)if(n.source){const e=r.sources&&r.sources[n.source],s=e&&Le(e.type);e?"vector"===s&&"raster"===a?t.push(new Fe(i,n.source,`layer "${n.id}" requires a raster source`)):"raster"===s&&"raster"!==a?t.push(new Fe(i,n.source,`layer "${n.id}" requires a vector source`)):"vector"!==s||n["source-layer"]?"raster-dem"===s&&"hillshade"!==a?t.push(new Fe(i,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==a||!n.paint||!n.paint["line-gradient"]||"geojson"===s&&e.lineMetrics||t.push(new Fe(i,n,`layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new Fe(i,n,`layer "${n.id}" must specify a "source-layer"`)):t.push(new Fe(i,n.source,`source "${n.source}" not found`))}else t.push(new Fe(i,n,'missing required property "source"'));return t=t.concat(ir({key:i,value:n,valueSpec:s.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":()=>[],type:()=>Mr({key:i+".type",value:n.type,valueSpec:s.layer.type,style:e.style,styleSpec:e.styleSpec,object:n,objectKey:"type"}),filter:vr,layout:e=>ir({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>xr(Ne({layerType:a},e))}}),paint:e=>ir({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>wr(Ne({layerType:a},e))}})}})),t}function Cr(e){const t=e.value,n=e.key,i=Qn(t);return"string"!==i?[new Fe(n,t,`string expected, ${i} found`)]:[]}const Sr={promoteId:function({key:e,value:t}){if("string"===Qn(t))return Cr({key:e,value:t});{const n=[];for(const i in t)n.push(...Cr({key:`${e}.${i}`,value:t[i]}));return n}}};function Tr(e){const t=e.value,n=e.key,i=e.styleSpec,r=e.style;if(!t.type)return[new Fe(n,t,'"type" is required')];const s=Le(t.type);let a;switch(s){case"vector":case"raster":case"raster-dem":return a=ir({key:n,value:t,valueSpec:i["source_"+s.replace("-","_")],style:e.style,styleSpec:i,objectElementValidators:Sr}),a;case"geojson":if(a=ir({key:n,value:t,valueSpec:i.source_geojson,style:r,styleSpec:i,objectElementValidators:Sr}),t.cluster)for(const e in t.clusterProperties){const[i,r]=t.clusterProperties[e],s="string"==typeof i?[i,["accumulated"],["get",e]]:i;a.push(...li({key:`${n}.${e}.map`,value:r,expressionContext:"cluster-map"})),a.push(...li({key:`${n}.${e}.reduce`,value:s,expressionContext:"cluster-reduce"}))}return a;case"video":return ir({key:n,value:t,valueSpec:i.source_video,style:r,styleSpec:i});case"image":return ir({key:n,value:t,valueSpec:i.source_image,style:r,styleSpec:i});case"canvas":return[new Fe(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return lr({key:n+".type",value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:r,styleSpec:i})}}function Br(e){const t=e.value,n=e.styleSpec,i=n.light,r=e.style;let s=[];const a=Qn(t);if(void 0===t)return s;if("object"!==a)return s=s.concat([new Fe("light",t,`object expected, ${a} found`)]),s;for(const e in t){const a=e.match(/^(.*)-transition$/);s=s.concat(a&&i[a[1]]&&i[a[1]].transition?Mr({key:e,value:t[e],valueSpec:n.transition,style:r,styleSpec:n}):i[e]?Mr({key:e,value:t[e],valueSpec:i[e],style:r,styleSpec:n}):[new Fe(e,t[e],`unknown property "${e}"`)])}return s}function kr(e){const t=e.value,n=e.key,i=e.style,r=e.styleSpec,s=r.terrain;let a=[];const o=Qn(t);if(void 0===t)return a;
vendor: 4,760 bytes, line 2
2if("object"!==o)return a=a.concat([new Fe("terrain",t,`object expected, ${o} found`)]),a;for(const e in t){const n=e.match(/^(.*)-transition$/);a=a.concat(n&&s[n[1]]&&s[n[1]].transition?Mr({key:e,value:t[e],valueSpec:r.transition,style:i,styleSpec:r}):s[e]?Mr({key:e,value:t[e],valueSpec:s[e],style:i,styleSpec:r}):[new Fe(e,t[e],`unknown property "${e}"`)])}if(t.source){const e=i.sources&&i.sources[t.source],r=e&&Le(e.type);e?"raster-dem"!==r&&a.push(new Fe(n,t.source,`terrain cannot be used with a source of type ${r}, it only be used with a "raster-dem" source type`)):a.push(new Fe(n,t.source,`source "${t.source}" not found`))}else a.push(new Fe(n,t,'terrain is missing required property "source"'));return a}const Ir={"*":()=>[],array:sr,boolean:function(e){const t=e.value,n=e.key,i=Qn(t);return"boolean"!==i?[new Fe(n,t,`boolean expected, ${i} found`)]:[]},number:ar,color:function(e){const t=e.key,n=e.value,i=Qn(n);return"string"!==i?[new Fe(t,n,`color expected, ${i} found`)]:null===ot(n)?[new Fe(t,n,`color expected, "${n}" found`)]:[]},constants:Re,enum:lr,filter:vr,function:or,layer:Er,object:ir,source:Tr,light:Br,terrain:kr,string:Cr,formatted:function(e){return 0===Cr(e).length?[]:li(e)},resolvedImage:function(e){return 0===Cr(e).length?[]:li(e)}};function Mr(e){const t=e.value,n=e.valueSpec,i=e.styleSpec;return n.expression&&Vn(Le(t))?or(e):n.expression&&Xn(ze(t))?li(e):n.type&&Ir[n.type]?Ir[n.type](e):ir(Ne({},e,{valueSpec:n.type?i[n.type]:n}))}function Pr(e){const t=e.value,n=e.key,i=Cr(e);return i.length||(-1===t.indexOf("{fontstack}")&&i.push(new Fe(n,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&i.push(new Fe(n,t,'"glyphs" url must include a "{range}" token'))),i}function Dr(e,t=Oe){let n=[];return n=n.concat(Mr({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:Pr,"*":()=>[]}})),e.constants&&(n=n.concat(Re({key:"constants",value:e.constants,style:e,styleSpec:t}))),Ur(n)}function Ur(e){return[].concat(e).sort((e,t)=>e.line-t.line)}function Or(e){return function(...t){return Ur(e.apply(this,t))}}Dr.source=Or(Tr),Dr.light=Or(Br),Dr.terrain=Or(kr),Dr.layer=Or(Er),Dr.filter=Or(vr),Dr.paintProperty=Or(wr),Dr.layoutProperty=Or(xr);const Fr=Dr,Rr=Fr.light,Nr=Fr.paintProperty,Lr=Fr.layoutProperty;function zr(e,t){let n=!1;if(t&&t.length)for(const i of t)e.fire(new De(new Error(i.message))),n=!0;return n}var Hr=Qr;function Qr(e,t,n){var i=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;var r=new Int32Array(this.arrayBuffer);e=r[0],this.d=(t=r[1])+2*(n=r[2]);for(var s=0;s<this.d*this.d;s++){var a=r[3+s],o=r[3+s+1];i.push(a===o?null:r.subarray(a,o))}var l=r[3+i.length+1];this.keys=r.subarray(r[3+i.length],l),this.bboxes=r.subarray(l),this.insert=this._insertReadonly}else{this.d=t+2*n;for(var u=0;u<this.d*this.d;u++)i.push([]);this.keys=[],this.bboxes=[]}this.n=t,this.extent=e,this.padding=n,this.scale=t/e,this.uid=0;var c=n/t*e;this.min=-c,this.max=e+c}Qr.prototype.insert=function(e,t,n,i,r){this._forEachCell(t,n,i,r,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(i),this.bboxes.push(r)},Qr.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Qr.prototype._insertCell=function(e,t,n,i,r,s){this.cells[r].push(s)},Qr.prototype.query=function(e,t,n,i,r){var s=this.min,a=this.max;if(e<=s&&t<=s&&a<=n&&a<=i&&!r)return Array.prototype.slice.call(this.keys);var o=[];return this._forEachCell(e,t,n,i,this._queryCell,o,{},r),o},Qr.prototype._queryCell=function(e,t,n,i,r,s,a,o){var l=this.cells[r];if(null!==l)for(var u=this.keys,c=this.bboxes,h=0;h<l.length;h++){var p=l[h];if(void 0===a[p]){var d=4*p;(o?o(c[d+0],c[d+1],c[d+2],c[d+3]):e<=c[d+2]&&t<=c[d+3]&&n>=c[d+0]&&i>=c[d+1])?(a[p]=!0,s.push(u[p])):a[p]=!1}}},Qr.prototype._forEachCell=function(e,t,n,i,r,s,a,o){for(var l=this._convertToCellCoord(e),u=this._convertToCellCoord(t),c=this._convertToCellCoord(n),h=this._convertToCellCoord(i),p=l;p<=c;p++)for(var d=u;d<=h;d++){var f=this.d*d+p;if((!o||o(this._convertFromCellCoord(p),this._convertFromCellCoord(d),this._convertFromCellCoord(p+1),this._convertFromCellCoord(d+1)))&&r.call(this,e,t,n,i,f,s,a,o))return}},Qr.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},Qr.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},Qr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=3+this.cells.length+1+1,n=0,i=0;i<this.cells.length;i++)n+=this.cells[i].length;var r=new Int32Array(t+n+this.keys.length+this.bboxes.length);r[0]=this.extent,r[1]=this.n,r[2]=this.padding;
2for(var s=t,a=0;a<e.length;a++){var o=e[a];r[3+a]=s,r.set(o,s),s+=o.length}return r[3+e.length]=s,r.set(this.keys,s),r[3+e.length+1]=s+=this.keys.length,r.set(this.bboxes,s),s+=this.bboxes.length,r.buffer};const{ImageData:Vr,ImageBitmap:jr}=s,Gr={};function Kr(e,t,n={}){Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),Gr[e]={klass:t,omit:n.omit||[],shallow:n.shallow||[]}}Kr("Object",Object),Hr.serialize=function(e,t){const n=e.toArrayBuffer();return t&&t.push(n),{buffer:n}},Hr.deserialize=function(e){return new Hr(e.buffer)},Kr("Grid",Hr),Kr("Color",lt),Kr("Error",Error),Kr("ResolvedImage",pt),Kr("StylePropertyFunction",rr),Kr("StyleExpression",Wn,{omit:["_evaluator"]}),Kr("ZoomDependentExpression",er),Kr("ZoomConstantExpression",Zn),Kr("CompoundExpression",Bt,{omit:["_evaluate"]});for(const e in Pn)Pn[e]._classRegistryKey||Kr("Expression_"+e,Pn[e]);function qr(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function $r(e){return jr&&e instanceof jr}function Yr(e,t){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(qr(e)||$r(e))return t&&t.push(e),e;if(ArrayBuffer.isView(e)){const n=e;return t&&t.push(n.buffer),n}if(e instanceof Vr)return t&&t.push(e.data.buffer),e;if(Array.isArray(e)){const n=[];for(const i of e)n.push(Yr(i,t));return n}if("object"==typeof e){const n=e.constructor,i=n._classRegistryKey;if(!i)throw new Error("can't serialize object of unregistered class");const r=n.serialize?n.serialize(e,t):{};if(!n.serialize){for(const n in e){if(!e.hasOwnProperty(n))continue;if(Gr[i].omit.indexOf(n)>=0)continue;const s=e[n];r[n]=Gr[i].shallow.indexOf(n)>=0?s:Yr(s,t)}e instanceof Error&&(r.message=e.message)}if(r.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==i&&(r.$name=i),r}throw new Error("can't serialize object of type "+typeof e)}function Wr(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||qr(e)||$r(e)||ArrayBuffer.isView(e)||e instanceof Vr)return e;if(Array.isArray(e))return e.map(Wr);if("object"==typeof e){const t=e.$name||"Object",{klass:n}=Gr[t];if(!n)throw new Error("can't deserialize unregistered class "+t);if(n.deserialize)return n.deserialize(e);const i=Object.create(n.prototype);for(const n of Object.keys(e)){if("$name"===n)continue;const r=e[n];i[n]=Gr[t].shallow.indexOf(n)>=0?r:Wr(r)}return i}throw new Error("can't deserialize object of type "+typeof e)}class Xr{constructor(){this.first=!0}update(e,t){const n=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=t):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=t),e!==this.lastZoom&&(this.lastZoom=e,this.lastFloorZoom=n,!0))}}const Jr=e=>e>=1536&&e<=1791,Zr=e=>e>=1872&&e<=1919,ei=e=>e>=2208&&e<=2303,ti=e=>e>=11904&&e<=12031,ni=e=>e>=12032&&e<=12255,ri=e=>e>=12272&&e<=12287,ii=e=>e>=12288&&e<=12351,si=e=>e>=12352&&e<=12447,ai=e=>e>=12448&&e<=12543,oi=e=>e>=12544&&e<=12591,ci=e=>e>=12704&&e<=12735,ui=e=>e>=12736&&e<=12783,hi=e=>e>=12784&&e<=12799,di=e=>e>=12800&&e<=13055,pi=e=>e>=13056&&e<=13311,fi=e=>e>=13312&&e<=19903,mi=e=>e>=19968&&e<=40959,Ai=e=>e>=40960&&e<=42127,gi=e=>e>=42128&&e<=42191,yi=e=>e>=44032&&e<=55215,vi=e=>e>=63744&&e<=64255,_i=e=>e>=64336&&e<=65023,bi=e=>e>=65040&&e<=65055,wi=e=>e>=65072&&e<=65103,xi=e=>e>=65104&&e<=65135,Ei=e=>e>=65136&&e<=65279,Ci=e=>e>=65280&&e<=65519;function Si(e){for(const t of e)if(ki(t.charCodeAt(0)))return!0;return!1}function Ti(e){for(const t of e)if(!Bi(t.charCodeAt(0)))return!1;return!0}function Bi(e){return!(Jr(e)||Zr(e)||ei(e)||_i(e)||Ei(e))}function ki(e){return!(746!==e&&747!==e&&(e<4352||!(ci(e)||oi(e)||wi(e)&&!(e>=65097&&e<=65103)||vi(e)||pi(e)||ti(e)||ui(e)||!(!ii(e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||fi(e)||mi(e)||di(e)||(e=>e>=12592&&e<=12687)(e)||(e=>e>=43360&&e<=43391)(e)||(e=>e>=55216&&e<=55295)(e)||(e=>e>
vendor: 6,763 bytes, line 2
2=4352&&e<=4607)(e)||yi(e)||si(e)||ri(e)||(e=>e>=12688&&e<=12703)(e)||ni(e)||hi(e)||ai(e)&&12540!==e||!(!Ci(e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!xi(e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||(e=>e>=5120&&e<=5759)(e)||(e=>e>=6320&&e<=6399)(e)||bi(e)||(e=>e>=19904&&e<=19967)(e)||Ai(e)||gi(e))))}function Ii(e){return!(ki(e)||function(e){return!!((e=>e>=128&&e<=255)(e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||(e=>e>=8192&&e<=8303)(e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||(e=>e>=8448&&e<=8527)(e)||(e=>e>=8528&&e<=8591)(e)||(e=>e>=8960&&e<=9215)(e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||(e=>e>=9216&&e<=9279)(e)&&9251!==e||(e=>e>=9280&&e<=9311)(e)||(e=>e>=9312&&e<=9471)(e)||(e=>e>=9632&&e<=9727)(e)||(e=>e>=9728&&e<=9983)(e)&&!(e>=9754&&e<=9759)||(e=>e>=11008&&e<=11263)(e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||ii(e)||ai(e)||(e=>e>=57344&&e<=63743)(e)||wi(e)||xi(e)||Ci(e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function Mi(e){return e>=1424&&e<=2303||_i(e)||Ei(e)}function Pi(e,t){return!(!t&&Mi(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||(e=>e>=6016&&e<=6143)(e))}function Di(e){for(const t of e)if(Mi(t.charCodeAt(0)))return!0;return!1}let Ui=null,Oi="unavailable",Fi=null;const Ri=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(Oi="error"),Ui&&Ui(e)};function Ni(){Li.fire(new Pe("pluginStateChange",{pluginStatus:Oi,pluginURL:Fi}))}const Li=new Ue,zi=function(){return Oi},Hi=function(){if("deferred"!==Oi||!Fi)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Oi="loading",Ni(),Fi&&we({url:Fi},e=>{e?Ri(e):(Oi="loaded",Ni())})},Qi={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>"loaded"===Oi||null!=Qi.applyArabicShaping,isLoading:()=>"loading"===Oi,setState(e){Oi=e.pluginStatus,Fi=e.pluginURL},isParsed:()=>null!=Qi.applyArabicShaping&&null!=Qi.processBidirectionalText&&null!=Qi.processStyledBidirectionalText,getPluginURL:()=>Fi};class Vi{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Xr,this.transition={})}isSupportedScript(e){return function(e,t){for(const n of e)if(!Pi(n.charCodeAt(0),t))return!1;return!0}(e,Qi.isLoaded())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const e=this.zoom,t=e-Math.floor(e),n=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*t}}}class ji{constructor(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(Vn(e))return new rr(e,t);if(Xn(e)){const n=nr(e,t);if("error"===n.result)throw new Error(n.value.map(e=>`${e.key}: ${e.message}`).join(", "));return n.value}{let n=e;return"string"==typeof e&&"color"===t.type&&(n=lt.parse(e)),{kind:"constant",evaluate:()=>n}}}(void 0===t?e.specification.default:t,e.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,n){return this.property.possiblyEvaluate(this,e,t,n)}}class Gi{constructor(e){this.property=e,this.value=new ji(e,void 0)}transitioned(e,t){return new qi(this.property,this.value,t,v({},e.transition,this.transition),e.now)}untransitioned(){return new qi(this.property,this.value,null,{},0)}}class Ki{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return B(this._values[e].value.value)}setValue(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Gi(this._values[e].property)),this._values[e].value=new ji(this._values[e].property,null===t?void 0:B(t))}getTransition(e){return B(this._values[e].transition)}setTransition(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Gi(this._values[e].property)),this._values[e].transition=B(t)||void 0}serialize(){const e={};for(const t of Object.keys(this._values)){const n=this.getValue(t);void 0!==n&&(e[t]=n);const i=this.getTransition(t);void 0!==i&&(e[t+"-transition"]=i)}return e}transitioned(e,t){const n=new $i(this._properties);for(const i of Object.keys(this._values))n._values[i]=this._values[i].transitioned(e,t._values[i]);return n}untransitioned(){const e=new $i(this._properties);for(const t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class qi{constructor(e,t,n,i,r){this.property=e,this.value=t,this.begin=r+i.delay||0,this.end=this.begin+i.duration||0,e.specification.transition&&(i.delay||i.duration)&&(this.prior=n)}possiblyEvaluate(e,t,n){const i=e.now||0,r=this.value.possiblyEvaluate(e,t,n),s=this.prior;if(s){if(i>this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(i<this.begin)return s.possiblyEvaluate(e,t,n);{const a=(i-this.begin)/(this.end-this.begin);return this.property.interpolate(s.possiblyEvaluate(e,t,n),r,d(a))}}return r}}class $i{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,n){const i=new Xi(this._properties);for(const r of Object.keys(this._values))i._values[r]=this._values[r].possiblyEvaluate(e,t,n);return i}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class Yi{constructor(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)}getValue(e){return B(this._values[e].value)}setValue(e,t){this._values[e]=new ji(this._values[e].property,null===t?void 0:B(t))}serialize(){const e={};for(const t of Object.keys(this._values)){const n=this.getValue(t);void 0!==n&&(e[t]=n)}return e}possiblyEvaluate(e,t,n){const i=new Xi(this._properties);for(const r of Object.keys(this._values))i._values[r]=this._values[r].possiblyEvaluate(e,t,n);return i}}class Wi{constructor(e,t,n){this.property=e,this.value=t,this.parameters=n}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,n,i){return this.property.evaluate(this.value,this.parameters,e,t,n,i)}}class Xi{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class Ji{constructor(e){this.specification=e}
vendor: 17,798 bytes, line 2
2possiblyEvaluate(e,t){return e.expression.evaluate(t)}interpolate(e,t,n){const i=en[this.specification.type];return i?i(e,t,n):e}}class Zi{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,n,i){return new Wi(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},n,i)}:e.expression,t)}interpolate(e,t,n){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new Wi(this,{kind:"constant",value:void 0},e.parameters);const i=en[this.specification.type];return i?new Wi(this,{kind:"constant",value:i(e.value.value,t.value.value,n)},e.parameters):e}evaluate(e,t,n,i,r,s){return"constant"===e.kind?e.value:e.evaluate(t,n,i,r,s)}}class es extends Zi{possiblyEvaluate(e,t,n,i){if(void 0===e.value)return new Wi(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){const r=e.expression.evaluate(t,null,{},n,i),s="resolvedImage"===e.property.specification.type&&"string"!=typeof r?r.name:r,a=this._calculate(s,s,s,t);return new Wi(this,{kind:"constant",value:a},t)}if("camera"===e.expression.kind){const n=this._calculate(e.expression.evaluate({zoom:t.zoom-1}),e.expression.evaluate({zoom:t.zoom}),e.expression.evaluate({zoom:t.zoom+1}),t);return new Wi(this,{kind:"constant",value:n},t)}return new Wi(this,e.expression,t)}evaluate(e,t,n,i,r,s){if("source"===e.kind){const a=e.evaluate(t,n,i,r,s);return this._calculate(a,a,a,t)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(t.zoom)-1},n,i),e.evaluate({zoom:Math.floor(t.zoom)},n,i),e.evaluate({zoom:Math.floor(t.zoom)+1},n,i),t):e.value}_calculate(e,t,n,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}}interpolate(e){return e}}class ts{constructor(e){this.specification=e}possiblyEvaluate(e,t,n,i){if(void 0!==e.value){if("constant"===e.expression.kind){const r=e.expression.evaluate(t,null,{},n,i);return this._calculate(r,r,r,t)}return this._calculate(e.expression.evaluate(new Vi(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Vi(Math.floor(t.zoom),t)),e.expression.evaluate(new Vi(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,n,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}}interpolate(e){return e}}class ns{constructor(e){this.specification=e}possiblyEvaluate(e,t,n,i){return!!e.expression.evaluate(t,null,{},n,i)}interpolate(){return!1}}class rs{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const t in e){const n=e[t];n.specification.overridable&&this.overridableProperties.push(t);const i=this.defaultPropertyValues[t]=new ji(n,void 0),r=this.defaultTransitionablePropertyValues[t]=new Gi(n);this.defaultTransitioningPropertyValues[t]=r.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=i.possiblyEvaluate({})}}}function is(e,t){return 256*(e=m(Math.floor(e),0,255))+m(Math.floor(t),0,255)}Kr("DataDrivenProperty",Zi),Kr("DataConstantProperty",Ji),Kr("CrossFadedDataDrivenProperty",es),Kr("CrossFadedProperty",ts),Kr("ColorRampProperty",ns);const ss={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class as{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class os{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function ls(e,t=1){let n=0,i=0;return{members:e.map(e=>{const r=ss[e.type].BYTES_PER_ELEMENT,s=n=cs(n,Math.max(t,r)),a=e.components||1;return i=Math.max(i,r),n+=r*a,{name:e.name,type:e.type,components:a,offset:s}}),size:cs(n,Math.max(i,t)),alignment:t}}function cs(e,t){return Math.ceil(e/t)*t}class us extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const i=2*e;return this.int16[i+0]=t,this.int16[i+1]=n,e}}us.prototype.bytesPerElement=4,Kr("StructArrayLayout2i4",us);class hs extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n,i)}emplace(e,t,n,i,r){const s=4*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=i,this.int16[s+3]=r,e}}hs.prototype.bytesPerElement=8,Kr("StructArrayLayout4i8",hs);class ds extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,s,a){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,i,r,s,a)}emplace(e,t,n,i,r,s,a,o){const l=6*e,u=12*e,c=3*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.uint8[u+4]=i,this.uint8[u+5]=r,this.uint8[u+6]=s,this.uint8[u+7]=a,this.float32[c+2]=o,e}}ds.prototype.bytesPerElement=12,Kr("StructArrayLayout2i4ub1f12",ds);class ps extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const i=2*e;return this.float32[i+0]=t,this.float32[i+1]=n,e}}ps.prototype.bytesPerElement=8,Kr("StructArrayLayout2f8",ps);class fs extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,s,a,o,l,u){const c=this.length;return this.resize(c+1),this.emplace(c,e,t,n,i,r,s,a,o,l,u)}emplace(e,t,n,i,r,s,a,o,l,u,c){const h=10*e;return this.uint16[h+0]=t,this.uint16[h+1]=n,this.uint16[h+2]=i,this.uint16[h+3]=r,this.uint16[h+4]=s,this.uint16[h+5]=a,this.uint16[h+6]=o,this.uint16[h+7]=l,this.uint16[h+8]=u,this.uint16[h+9]=c,e}}fs.prototype.bytesPerElement=20,Kr("StructArrayLayout10ui20",fs);class ms extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,s,a,o,l,u,c,h){const p=this.length;return this.resize(p+1),this.emplace(p,e,t,n,i,r,s,a,o,l,u,c,h)}emplace(e,t,n,i,r,s,a,o,l,u,c,h,p){const d=12*e;return this.int16[d+0]=t,this.int16[d+1]=n,this.int16[d+2]=i,this.int16[d+3]=r,this.uint16[d+4]=s,this.uint16[d+5]=a,this.uint16[d+6]=o,this.uint16[d+7]=l,this.int16[d+8]=u,this.int16[d+9]=c,this.int16[d+10]=h,this.int16[d+11]=p,e}}ms.prototype.bytesPerElement=24,Kr("StructArrayLayout4i4ui4i24",ms);class As extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n)}emplace(e,t,n,i){const r=3*e;return this.float32[r+0]=t,this.float32[r+1]=n,this.float32[r+2]=i,e}}As.prototype.bytesPerElement=12,Kr("StructArrayLayout3f12",As);class gs extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint32[1*e+0]=t,e}}gs.prototype.bytesPerElement=4,Kr("StructArrayLayout1ul4",gs);class ys extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,s,a,o,l,u){const c=this.length;return this.resize(c+1),this.emplace(c,e,t,n,i,r,s,a,o,l,u)}emplace(e,t,n,i,r,s,a,o,l,u,c){const h=16*e,p=8*e;return this.int16[h+0]=t,this.int16[h+1]=n,this.float32[p+1]=i,this.float32[p+2]=r,this.float32[p+3]=s,this.float32[p+4]=a,this.int16[h+10]=o,this.uint32[p+6]=l,this.uint16[h+14]=u,this.uint16[h+15]=c,e}}ys.prototype.bytesPerElement=32,Kr("StructArrayLayout2i4f1i1ul2ui32",ys);class vs extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,i,r,s)}emplace(e,t,n,i,r,s,a){const o=6*e;return this.int16[o+0]=t,this.int16[o+1]=n,this.int16[o+2]=i,this.int16[o+3]=r,this.int16[o+4]=s,this.int16[o+5]=a,e}}vs.prototype.bytesPerElement=12,Kr("StructArrayLayout2i2i2i12",vs);class _s extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,i,r)}emplace(e,t,n,i,r,s){const a=4*e,o=8*e;return this.float32[a+0]=t,this.float32[a+1]=n,this.float32[a+2]=i,this.int16[o+6]=r,this.int16[o+7]=s,e}}_s.prototype.bytesPerElement=16,Kr("StructArrayLayout2f1f2i16",_s);class bs extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n,i)}emplace(e,t,n,i,r){const s=12*e,a=3*e;return this.uint8[s+0]=t,this.uint8[s+1]=n,this.float32[a+1]=i,this.float32[a+2]=r,e}}bs.prototype.bytesPerElement=12,Kr("StructArrayLayout2ub2f12",bs);class ws extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n)}emplace(e,t,n,i){const r=3*e;return this.uint16[r+0]=t,this.uint16[r+1]=n,this.uint16[r+2]=i,e}}ws.prototype.bytesPerElement=6,Kr("StructArrayLayout3ui6",ws);class xs extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,s,a,o,l,u,c,h,p,d,f,m,A){const g=this.length;return this.resize(g+1),this.emplace(g,e,t,n,i,r,s,a,o,l,u,c,h,p,d,f,m,A)}emplace(e,t,n,i,r,s,a,o,l,u,c,h,p,d,f,m,A,g){const y=24*e,v=12*e,b=48*e;return this.int16[y+0]=t,this.int16[y+1]=n,this.uint16[y+2]=i,this.uint16[y+3]=r,this.uint32[v+2]=s,this.uint32[v+3]=a,this.uint32[v+4]=o,this.uint16[y+10]=l,this.uint16[y+11]=u,this.uint16[y+12]=c,this.float32[v+7]=h,this.float32[v+8]=p,this.uint8[b+36]=d,this.uint8[b+37]=f,this.uint8[b+38]=m,this.uint32[v+10]=A,this.int16[y+22]=g,e}}xs.prototype.bytesPerElement=48,Kr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",xs);class Es extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,s,a,o,l,u,c,h,p,d,f,m,A,g,y,v,b,_,w,x,E,C,S,T){const B=this.length;return this.resize(B+1),this.emplace(B,e,t,n,i,r,s,a,o,l,u,c,h,p,d,f,m,A,g,y,v,b,_,w,x,E,C,S,T)}emplace(e,t,n,i,r,s,a,o,l,u,c,h,p,d,f,m,A,g,y,v,b,_,w,x,E,C,S,T,B){const k=34*e,I=17*e;return this.int16[k+0]=t,this.int16[k+1]=n,this.int16[k+2]=i,this.int16[k+3]=r,this.int16[k+4]=s,this.int16[k+5]=a,this.int16[k+6]=o,this.int16[k+7]=l,this.uint16[k+8]=u,this.uint16[k+9]=c,this.uint16[k+10]=h,this.uint16[k+11]=p,this.uint16[k+12]=d,this.uint16[k+13]=f,this.uint16[k+14]=m,this.uint16[k+15]=A,this.uint16[k+16]=g,this.uint16[k+17]=y,this.uint16[k+18]=v,this.uint16[k+19]=b,this.uint16[k+20]=_,this.uint16[k+21]=w,this.uint16[k+22]=x,this.uint32[I+12]=E,this.float32[I+13]=C,this.float32[I+14]=S,this.float32[I+15]=T,this.float32[I+16]=B,e}}Es.prototype.bytesPerElement=68,Kr("StructArrayLayout8i15ui1ul4f68",Es);class Cs extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.float32[1*e+0]=t,e}}Cs.prototype.bytesPerElement=4,Kr("StructArrayLayout1f4",Cs);class Ss extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n)}emplace(e,t,n,i){const r=3*e;return this.int16[r+0]=t,this.int16[r+1]=n,this.int16[r+2]=i,e}}Ss.prototype.bytesPerElement=6,Kr("StructArrayLayout3i6",Ss);class Ts extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n,i)}emplace(e,t,n,i,r){const s=6*e;return this.uint32[3*e+0]=t,this.uint16[s+2]=n,this.uint16[s+3]=i,this.uint16[s+4]=r,e}}Ts.prototype.bytesPerElement=12,Kr("StructArrayLayout1ul3ui12",Ts);class Bs extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const i=2*e;return this.uint16[i+0]=t,this.uint16[i+1]=n,e}}Bs.prototype.bytesPerElement=4,Kr("StructArrayLayout2ui4",Bs);class ks extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint16[1*e+0]=t,e}}ks.prototype.bytesPerElement=2,Kr("StructArrayLayout1ui2",ks);class Is extends os{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n,i)}emplace(e,t,n,i,r){const s=4*e;return this.float32[s+0]=t,this.float32[s+1]=n,this.float32[s+2]=i,this.float32[s+3]=r,e}}Is.prototype.bytesPerElement=16,Kr("StructArrayLayout4f16",Is);class Ms extends as{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.float32[this._pos4+1]}get y1(){return this._structArray.float32[this._pos4+2]}get x2(){return this._structArray.float32[this._pos4+3]}get y2(){return this._structArray.float32[this._pos4+4]}get padding(){return this._structArray.int16[this._pos2+10]}get featureIndex(){return this._structArray.uint32[this._pos4+6]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+14]}get bucketIndex(){return this._structArray.uint16[this._pos2+15]}get anchorPoint(){return new i(this.anchorPointX,this.anchorPointY)}}Ms.prototype.size=32;class Ps extends ys{get(e){return new Ms(this,e)}}Kr("CollisionBoxArray",Ps);class Ds extends as{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Ds.prototype.size=48;class Us extends xs{get(e){return new Ds(this,e)}}Kr("PlacedSymbolArray",Us);class Os extends as{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}
vendor: 4,276 bytes, line 2
2get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get textOffset0(){return this._structArray.float32[this._pos4+14]}get textOffset1(){return this._structArray.float32[this._pos4+15]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+16]}}Os.prototype.size=68;class Fs extends Es{get(e){return new Os(this,e)}}Kr("SymbolInstanceArray",Fs);class Rs extends Cs{getoffsetX(e){return this.float32[1*e+0]}}Kr("GlyphOffsetArray",Rs);class Ns extends Ss{getx(e){return this.int16[3*e+0]}gety(e){return this.int16[3*e+1]}gettileUnitDistanceFromAnchor(e){return this.int16[3*e+2]}}Kr("SymbolLineVertexArray",Ns);class Ls extends as{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}Ls.prototype.size=12;class zs extends Ts{get(e){return new Ls(this,e)}}Kr("FeatureIndexArray",zs);class Hs extends as{get a_centroid_pos0(){return this._structArray.uint16[this._pos2+0]}get a_centroid_pos1(){return this._structArray.uint16[this._pos2+1]}}Hs.prototype.size=4;class Qs extends Bs{get(e){return new Hs(this,e)}}Kr("FillExtrusionCentroidArray",Qs);const Vs=ls([{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"}]);var js=at((function(e){e.exports=function(e,t){var n,i,r,s,a,o,l,u;for(i=e.length-(n=3&e.length),r=t,a=3432918353,o=461845907,u=0;u<i;)l=255&e.charCodeAt(u)|(255&e.charCodeAt(++u))<<8|(255&e.charCodeAt(++u))<<16|(255&e.charCodeAt(++u))<<24,++u,r=27492+(65535&(s=5*(65535&(r=(r^=l=(65535&(l=(l=(65535&l)*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*o+(((l>>>16)*o&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(s>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&e.charCodeAt(u+2))<<16;case 2:l^=(255&e.charCodeAt(u+1))<<8;case 1:r^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(u)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*o+(((l>>>16)*o&65535)<<16)&4294967295}return r^=e.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0}})),Gs=at((function(e){e.exports=function(e,t){for(var n,i=e.length,r=t^i,s=0;i>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(s)|(255&e.charCodeAt(++s))<<8|(255&e.charCodeAt(++s))<<16|(255&e.charCodeAt(++s))<<24))+((1540483477*(n>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),i-=4,++s;switch(i){case 3:r^=(255&e.charCodeAt(s+2))<<16;case 2:r^=(255&e.charCodeAt(s+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(s)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}})),Ks=js,qs=Gs;Ks.murmur3=js,Ks.murmur2=qs;class $s{constructor(){this.ids=[],this.positions=[],this.indexed=!1}
vendor: 10,988 bytes, line 2
2add(e,t,n,i){this.ids.push(Ys(e)),this.positions.push(t,n,i)}getPositions(e){const t=Ys(e);let n=0,i=this.ids.length-1;for(;n<i;){const e=n+i>>1;this.ids[e]>=t?i=e:n=e+1}const r=[];for(;this.ids[n]===t;)r.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return r}static serialize(e,t){const n=new Float64Array(e.ids),i=new Uint32Array(e.positions);return function e(t,n,i,r){for(;i<r;){const s=t[i+r>>1];let a=i-1,o=r+1;for(;;){do{a++}while(t[a]<s);do{o--}while(t[o]>s);if(a>=o)break;Ws(t,a,o),Ws(n,3*a,3*o),Ws(n,3*a+1,3*o+1),Ws(n,3*a+2,3*o+2)}o-i<r-o?(e(t,n,i,o),i=o+1):(e(t,n,o+1,r),r=o)}}(n,i,0,n.length-1),t&&t.push(n.buffer,i.buffer),{ids:n,positions:i}}static deserialize(e){const t=new $s;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t}}function Ys(e){const t=+e;return!isNaN(t)&&t<=l?t:Ks(String(e))}function Ws(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}Kr("FeaturePositionMap",$s);class Xs{constructor(e,t){this.gl=e.gl,this.location=t}}class Js extends Xs{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))}}class Zs extends Xs{constructor(e,t){super(e,t),this.current=[0,0,0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]&&e[3]===this.current[3]||(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))}}class ea extends Xs{constructor(e,t){super(e,t),this.current=lt.transparent}set(e){e.r===this.current.r&&e.g===this.current.g&&e.b===this.current.b&&e.a===this.current.a||(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))}}const ta=new Float32Array(16),na=new Float32Array(9);function ra(e){return[is(255*e.r,255*e.g),is(255*e.b,255*e.a)]}class ia{constructor(e,t,n){this.value=e,this.uniformNames=t.map(e=>"u_"+e),this.type=n}setUniform(e,t,n){e.set(n.constantOr(this.value))}getBinding(e,t,n){return"color"===this.type?new ea(e,t):new Js(e,t)}}class sa{constructor(e,t){this.uniformNames=t.map(e=>"u_"+e),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr}setUniform(e,t,n,i){const r="u_pattern_to"===i?this.patternTo:"u_pattern_from"===i?this.patternFrom:"u_pixel_ratio_to"===i?this.pixelRatioTo:"u_pixel_ratio_from"===i?this.pixelRatioFrom:null;r&&e.set(r)}getBinding(e,t,n){return"u_pattern"===n.substr(0,9)?new Zs(e,t):new Js(e,t)}}class aa{constructor(e,t,n,i){this.expression=e,this.type=n,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:"a_"+e,type:"Float32",components:"color"===n?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(e,t,n,i,r){const s=this.paintVertexArray.length,a=this.expression.evaluate(new Vi(0),t,{},i,[],r);this.paintVertexArray.resize(e),this._setPaintValue(s,e,a)}updatePaintArray(e,t,n,i){const r=this.expression.evaluate({zoom:0},n,i);this._setPaintValue(e,t,r)}_setPaintValue(e,t,n){if("color"===this.type){const i=ra(n);for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,i[0],i[1])}else{for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class oa{constructor(e,t,n,i,r,s){this.expression=e,this.uniformNames=t.map(e=>`u_${e}_t`),this.type=n,this.useIntegerZoom=i,this.zoom=r,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:"a_"+e,type:"Float32",components:"color"===n?4:2,offset:0})),this.paintVertexArray=new s}populatePaintArray(e,t,n,i,r){const s=this.expression.evaluate(new Vi(this.zoom),t,{},i,[],r),a=this.expression.evaluate(new Vi(this.zoom+1),t,{},i,[],r),o=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(o,e,s,a)}updatePaintArray(e,t,n,i){const r=this.expression.evaluate({zoom:this.zoom},n,i),s=this.expression.evaluate({zoom:this.zoom+1},n,i);this._setPaintValue(e,t,r,s)}_setPaintValue(e,t,n,i){if("color"===this.type){const r=ra(n),s=ra(i);for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,r[0],r[1],s[0],s[1])}else{for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,n,i);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(i))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,t){const n=this.useIntegerZoom?Math.floor(t.zoom):t.zoom,i=m(this.expression.interpolationFactor(n,this.zoom,this.zoom+1),0,1);e.set(i)}getBinding(e,t,n){return new Js(e,t)}}class la{constructor(e,t,n,i,r,s,a){this.expression=e,this.type=n,this.useIntegerZoom=i,this.zoom=r,this.layerId=a;for(let e=0;e<t.length;++e);this.zoomInPaintVertexArray=new s,this.zoomOutPaintVertexArray=new s}populatePaintArray(e,t,n){const i=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(e),this.zoomOutPaintVertexArray.resize(e),this._setPaintValues(i,e,t.patterns&&t.patterns[this.layerId],n)}updatePaintArray(e,t,n,i,r){this._setPaintValues(e,t,n.patterns&&n.patterns[this.layerId],r)}_setPaintValues(e,t,n,i){if(!i||!n)return;const{min:r,mid:s,max:a}=n,o=i[r],l=i[s],u=i[a];if(o&&l&&u)for(let n=e;n<t;n++)this.zoomInPaintVertexArray.emplace(n,l.tl[0],l.tl[1],l.br[0],l.br[1],o.tl[0],o.tl[1],o.br[0],o.br[1],l.pixelRatio,o.pixelRatio),this.zoomOutPaintVertexArray.emplace(n,l.tl[0],l.tl[1],l.br[0],l.br[1],u.tl[0],u.tl[1],u.br[0],u.br[1],l.pixelRatio,u.pixelRatio)}upload(e){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=e.createVertexBuffer(this.zoomInPaintVertexArray,Vs.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=e.createVertexBuffer(this.zoomOutPaintVertexArray,Vs.members,this.expression.isStateDependent))}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}}class ca{constructor(e,t,n=(()=>!0)){this.binders={},this._buffers=[];const i=[];for(const r in e.paint._values){if(!n(r))continue;const s=e.paint.get(r);if(!(s instanceof Wi&&Ln(s.property.specification)))continue;const a=ha(r,e.type),o=s.value,l=s.property.specification.type,u=s.property.useIntegerZoom,c=s.property.specification["property-type"],h="cross-faded"===c||"cross-faded-data-driven"===c;if("constant"===o.kind)this.binders[r]=h?new sa(o.value,a):new ia(o.value,a,l),i.push("/u_"+r);else if("source"===o.kind||h){const n=da(r,l,"source");this.binders[r]=h?new la(o,a,l,u,t,n,e.id):new aa(o,a,l,n),i.push("/a_"+r)}else{const e=da(r,l,"composite");this.binders[r]=new oa(o,a,l,u,t,e),i.push("/z_"+r)}}this.cacheKey=i.sort().join("")}getMaxValue(e){const t=this.binders[e];return t instanceof aa||t instanceof oa?t.maxValue:0}populatePaintArrays(e,t,n,i,r){for(const s in this.binders){const a=this.binders[s];(a instanceof aa||a instanceof oa||a instanceof la)&&a.populatePaintArray(e,t,n,i,r)}}setConstantPatternPositions(e,t){for(const n in this.binders){const i=this.binders[n];i instanceof sa&&i.setConstantPatternPositions(e,t)}}updatePaintArrays(e,t,n,i,r){let s=!1;for(const a in e){const o=t.getPositions(a);for(const t of o){const o=n.feature(t.index);for(const n in this.binders){const l=this.binders[n];if((l instanceof aa||l instanceof oa||l instanceof la)&&!0===l.expression.isStateDependent){const u=i.paint.get(n);l.expression=u.value,l.updatePaintArray(t.start,t.end,o,e[a],r),s=!0}}}}return s}defines(){const e=[];for(const t in this.binders){const n=this.binders[t];(n instanceof ia||n instanceof sa)&&e.push(...n.uniformNames.map(e=>"#define HAS_UNIFORM_"+e))}return e}getBinderAttributes(){const e=[];for(const t in this.binders){const n=this.binders[t];if(n instanceof aa||n instanceof oa)for(let t=0;t<n.paintVertexAttributes.length;t++)e.push(n.paintVertexAttributes[t].name);else if(n instanceof la)for(let t=0;t<Vs.members.length;t++)e.push(Vs.members[t].name)}return e}getBinderUniforms(){const e=[];for(const t in this.binders){const n=this.binders[t];if(n instanceof ia||n instanceof sa||n instanceof oa)for(const t of n.uniformNames)e.push(t)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e,t){const n=[];for(const i in this.binders){const r=this.binders[i];if(r instanceof ia||r instanceof sa||r instanceof oa)for(const s of r.uniformNames)if(t[s]){const a=r.getBinding(e,t[s],s);n.push({name:s,property:i,binding:a})}}return n}setUniforms(e,t,n,i){for(const{name:e,property:r,binding:s}of t)this.binders[r].setUniform(s,i,n.get(r),e)}updatePaintBuffers(e){this._buffers=[];for(const t in this.binders){const n=this.binders[t];if(e&&n instanceof la){const t=2===e.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;t&&this._buffers.push(t)}else(n instanceof aa||n instanceof oa)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}}upload(e){for(const t in this.binders){const n=this.binders[t];(n instanceof aa||n instanceof oa||n instanceof la)&&n.upload(e)}this.updatePaintBuffers()}destroy(){for(const e in this.binders){const t=this.binders[e];(t instanceof aa||t instanceof oa||t instanceof la)&&t.destroy()}}}class ua{constructor(e,t,n=(()=>!0)){this.programConfigurations={};for(const i of e)this.programConfigurations[i.id]=new ca(i,t,n);this.needsUpload=!1,this._featureMap=new $s,this._bufferOffset=0}populatePaintArrays(e,t,n,i,r,s){for(const n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(e,t,i,r,s);void 0!==t.id&&this._featureMap.add(t.id,n,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,n,i){for(const r of n)this.needsUpload=this.programConfigurations[r.id].updatePaintArrays(e,this._featureMap,t,r,i)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}function ha(e,t){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["ga
2pwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[e]||[e.replace(t+"-","").replace(/-/g,"_")]}function da(e,t,n){const i={color:{source:ps,composite:Is},number:{source:Cs,composite:ps}},r=function(e){return{"line-pattern":{source:fs,composite:fs},"fill-pattern":{source:fs,composite:fs},"fill-extrusion-pattern":{source:fs,composite:fs}}[e]}(e);return r&&r[n]||i[t][n]}Kr("ConstantBinder",ia),Kr("CrossFadedConstantBinder",sa),Kr("SourceExpressionBinder",aa),Kr("CrossFadedCompositeBinder",la),Kr("CompositeExpressionBinder",oa),Kr("ProgramConfiguration",ca,{omit:["_buffers"]}),Kr("ProgramConfigurationSet",ua);class pa extends Ue{constructor(e,t){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1},"custom"!==e.type&&(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&"sky"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),t.layout&&(this._unevaluatedLayout=new Yi(t.layout)),t.paint)){this._transitionablePaint=new Ki(t.paint);for(const t in e.paint)this.setPaintProperty(t,e.paint[t],{validate:!1});for(const t in e.layout)this.setLayoutProperty(t,e.layout[t],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Xi(t.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t,n={}){null!=t&&this._validate(Lr,`layers.${this.id}.layout.${e}`,e,t,n)||("visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t)}getPaintProperty(e){return C(e,"-transition")?this._transitionablePaint.getTransition(e.slice(0,-"-transition".length)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t,n={}){if(null!=t&&this._validate(Nr,`layers.${this.id}.paint.${e}`,e,t,n))return!1;if(C(e,"-transition"))return this._transitionablePaint.setTransition(e.slice(0,-"-transition".length),t||void 0),!1;{const n=this._transitionablePaint._values[e],i="cross-faded-data-driven"===n.property.specification["property-type"],r=n.value.isDataDriven(),s=n.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);const a=this._transitionablePaint._values[e].value;return a.isDataDriven()||r||i||this._handleOverridablePaintPropertyUpdate(e,s,a)}}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getProgramConfiguration(e){return null}_handleOverridablePaintPropertyUpdate(e,t,n){return!1}isHidden(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}
vendor: 3,192 bytes, line 2
2serialize(){const e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),T(e,(e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length))}_validate(e,t,n,i,r={}){return(!r||!1!==r.validate)&&zr(this,e.call(Fr,{key:t,layerType:this.type,objectKey:n,value:i,styleSpec:Oe,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const e in this.paint._values){const t=this.paint.get(e);if(t instanceof Wi&&Ln(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}}const fa=ls([{name:"a_pos",components:2,type:"Int16"}],4),{members:ma}=fa;class Aa{constructor(e=[]){this.segments=e}prepareSegment(e,t,n,i){let r=this.segments[this.segments.length-1];return e>Aa.MAX_VERTEX_ARRAY_LENGTH&&I(`Max vertices per segment is ${Aa.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!r||r.vertexLength+e>Aa.MAX_VERTEX_ARRAY_LENGTH||r.sortKey!==i)&&(r={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==i&&(r.sortKey=i),this.segments.push(r)),r}get(){return this.segments}destroy(){for(const e of this.segments)for(const t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,n,i){return new Aa([{vertexOffset:e,primitiveOffset:t,vertexLength:n,primitiveLength:i,vaos:{},sortKey:0}])}}Aa.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Kr("SegmentVector",Aa);const ga=Math.pow(2,14)-1,ya=-ga-1;function va(e){const t=8192/e.extent,n=e.loadGeometry();for(let e=0;e<n.length;e++){const i=n[e];for(let e=0;e<i.length;e++){const n=i[e],r=Math.round(n.x*t),s=Math.round(n.y*t);n.x=m(r,ya,ga),n.y=m(s,ya,ga),(r<n.x||r>n.x+1||s<n.y||s>n.y+1)&&I("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return n}function _a(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?va(e):[]}}function ba(e,t,n,i,r){e.emplaceBack(2*t+(i+1)/2,2*n+(r+1)/2)}class wa{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new us,this.indexArray=new ws,this.segments=new Aa,this.programConfigurations=new ua(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,n){const i=this.layers[0],r=[];let s=null;"circle"===i.type&&(s=i.layout.get("circle-sort-key"));for(const{feature:t,id:i,index:a,sourceLayerIndex:o}of e){const e=this.layers[0]._featureFilter.needGeometry,l=_a(t,e);if(!this.layers[0]._featureFilter.filter(new Vi(this.zoom),l,n))continue;const u=s?s.evaluate(l,{},n):void 0,c={id:i,properties:t.properties,type:t.type,sourceLayerIndex:o,index:a,geometry:e?l.geometry:va(t),patterns:{},sortKey:u};r.push(c)}s&&r.sort((e,t)=>
vendor: 13,752 bytes, line 2
2e.sortKey-t.sortKey);for(const i of r){const{geometry:r,index:s,sourceLayerIndex:a}=i,o=e[s].feature;this.addFeature(i,r,s,n),t.featureIndex.insert(o,r,s,a,this.index)}}update(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,ma),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,n,i){for(const n of t)for(const t of n){const n=t.x,i=t.y;if(n<0||n>=8192||i<0||i>=8192)continue;const r=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),s=r.vertexLength;ba(this.layoutVertexArray,n,i,-1,-1),ba(this.layoutVertexArray,n,i,1,-1),ba(this.layoutVertexArray,n,i,1,1),ba(this.layoutVertexArray,n,i,-1,1),this.indexArray.emplaceBack(s,s+1,s+2),this.indexArray.emplaceBack(s,s+3,s+2),r.vertexLength+=4,r.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{},i)}}function xa(e,t){for(let n=0;n<e.length;n++)if(Pa(t,e[n]))return!0;for(let n=0;n<t.length;n++)if(Pa(e,t[n]))return!0;return!!Ta(e,t)}function Ea(e,t,n){return!!Pa(e,t)||!!ka(t,e,n)}function Ca(e,t){if(1===e.length)return Ma(t,e[0]);for(let n=0;n<t.length;n++){const i=t[n];for(let t=0;t<i.length;t++)if(Pa(e,i[t]))return!0}for(let n=0;n<e.length;n++)if(Ma(t,e[n]))return!0;for(let n=0;n<t.length;n++)if(Ta(e,t[n]))return!0;return!1}function Sa(e,t,n){if(e.length>1){if(Ta(e,t))return!0;for(let i=0;i<t.length;i++)if(ka(t[i],e,n))return!0}for(let i=0;i<e.length;i++)if(ka(e[i],t,n))return!0;return!1}function Ta(e,t){if(0===e.length||0===t.length)return!1;for(let n=0;n<e.length-1;n++){const i=e[n],r=e[n+1];for(let e=0;e<t.length-1;e++)if(Ba(i,r,t[e],t[e+1]))return!0}return!1}function Ba(e,t,n,i){return M(e,n,i)!==M(t,n,i)&&M(e,t,n)!==M(e,t,i)}function ka(e,t,n){const i=n*n;if(1===t.length)return e.distSqr(t[0])<i;for(let n=1;n<t.length;n++)if(Ia(e,t[n-1],t[n])<i)return!0;return!1}function Ia(e,t,n){const i=t.distSqr(n);if(0===i)return e.distSqr(t);const r=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/i;return e.distSqr(r<0?t:r>1?n:n.sub(t)._mult(r)._add(t))}function Ma(e,t){let n,i,r,s=!1;for(let a=0;a<e.length;a++){n=e[a];for(let e=0,a=n.length-1;e<n.length;a=e++)i=n[e],r=n[a],i.y>t.y!=r.y>t.y&&t.x<(r.x-i.x)*(t.y-i.y)/(r.y-i.y)+i.x&&(s=!s)}return s}function Pa(e,t){let n=!1;for(let i=0,r=e.length-1;i<e.length;r=i++){const s=e[i],a=e[r];s.y>t.y!=a.y>t.y&&t.x<(a.x-s.x)*(t.y-s.y)/(a.y-s.y)+s.x&&(n=!n)}return n}function Da(e,t,n,r,s){for(const i of e)if(t<=i.x&&n<=i.y&&r>=i.x&&s>=i.y)return!0;const a=[new i(t,n),new i(t,s),new i(r,s),new i(r,n)];if(e.length>2)for(const t of a)if(Pa(e,t))return!0;for(let t=0;t<e.length-1;t++)if(Ua(e[t],e[t+1],a))return!0;return!1}function Ua(e,t,n){const i=n[0],r=n[2];if(e.x<i.x&&t.x<i.x||e.x>r.x&&t.x>r.x||e.y<i.y&&t.y<i.y||e.y>r.y&&t.y>r.y)return!1;const s=M(e,t,n[0]);return s!==M(e,t,n[1])||s!==M(e,t,n[2])||s!==M(e,t,n[3])}function Oa(e,t,n){const i=t.paint.get(e).value;return"constant"===i.kind?i.value:n.programConfigurations.get(t.id).getMaxValue(e)}function Fa(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ra(e,t,n,r,s){if(!t[0]&&!t[1])return e;const a=i.convert(t)._mult(s);"viewport"===n&&a._rotate(-r);const o=[];for(let t=0;t<e.length;t++)o.push(e[t].sub(a));return o}function Na(e,t,n,r){const s=i.convert(e)._mult(r);return"viewport"===t&&s._rotate(-n),s}Kr("CircleBucket",wa,{omit:["layers"]});const La=new rs({"circle-sort-key":new Zi(Oe.layout_circle["circle-sort-key"])});var za={paint:new rs({"circle-radius":new Zi(Oe.paint_circle["circle-radius"]),"circle-color":new Zi(Oe.paint_circle["circle-color"]),"circle-blur":new Zi(Oe.paint_circle["circle-blur"]),"circle-opacity":new Zi(Oe.paint_circle["circle-opacity"]),"circle-translate":new Ji(Oe.paint_circle["circle-translate"]),"circle-translate-anchor":new Ji(Oe.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Ji(Oe.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Ji(Oe.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Zi(Oe.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Zi(Oe.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Zi(Oe.paint_circle["circle-stroke-opacity"])}),layout:La},Ha="undefined"!=typeof Float32Array?Float32Array:Array;function Qa(){var e=new Ha(9);return Ha!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function Va(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function ja(e,t,n){var i=t[0],r=t[1],s=t[2],a=t[3],o=t[4],l=t[5],u=t[6],c=t[7],h=t[8],p=t[9],d=t[10],f=t[11],m=t[12],A=t[13],g=t[14],y=t[15],v=n[0],b=n[1],_=n[2],w=n[3];return e[0]=v*i+b*o+_*h+w*m,e[1]=v*r+b*l+_*p+w*A,e[2]=v*s+b*u+_*d+w*g,e[3]=v*a+b*c+_*f+w*y,e[4]=(v=n[4])*i+(b=n[5])*o+(_=n[6])*h+(w=n[7])*m,e[5]=v*r+b*l+_*p+w*A,e[6]=v*s+b*u+_*d+w*g,e[7]=v*a+b*c+_*f+w*y,e[8]=(v=n[8])*i+(b=n[9])*o+(_=n[10])*h+(w=n[11])*m,e[9]=v*r+b*l+_*p+w*A,e[10]=v*s+b*u+_*d+w*g,e[11]=v*a+b*c+_*f+w*y,e[12]=(v=n[12])*i+(b=n[13])*o+(_=n[14])*h+(w=n[15])*m,e[13]=v*r+b*l+_*p+w*A,e[14]=v*s+b*u+_*d+w*g,e[15]=v*a+b*c+_*f+w*y,e}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var Ga=ja;function Ka(){var e=new Ha(3);return Ha!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function qa(e){var t=new Ha(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function $a(e){return Math.hypot(e[0],e[1],e[2])}function Ya(e,t,n){var i=new Ha(3);return i[0]=e,i[1]=t,i[2]=n,i}function Wa(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function Xa(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function Ja(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function Za(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e}function eo(e,t){var n=t[0],i=t[1],r=t[2],s=n*n+i*i+r*r;return s>0&&(s=1/Math.sqrt(s)),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s,e}function to(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function no(e,t,n){var i=t[0],r=t[1],s=t[2],a=n[0],o=n[1],l=n[2];return e[0]=r*l-s*o,e[1]=s*a-i*l,e[2]=i*o-r*a,e}function ro(e,t,n){var i=t[0],r=t[1],s=t[2],a=n[3]*i+n[7]*r+n[11]*s+n[15];return e[0]=(n[0]*i+n[4]*r+n[8]*s+n[12])/(a=a||1),e[1]=(n[1]*i+n[5]*r+n[9]*s+n[13])/a,e[2]=(n[2]*i+n[6]*r+n[10]*s+n[14])/a,e}function io(e,t,n){var i=n[0],r=n[1],s=n[2],a=t[0],o=t[1],l=t[2],u=r*l-s*o,c=s*a-i*l,h=i*o-r*a,p=r*h-s*c,d=s*u-i*h,f=i*c-r*u,m=2*n[3];return c*=m,h*=m,d*=2,f*=2,e[0]=a+(u*=m)+(p*=2),e[1]=o+c+d,e[2]=l+h+f,e}var so,ao=Xa,oo=$a;function lo(e,t,n){var i=t[0],r=t[1],s=t[2],a=t[3];return e[0]=n[0]*i+n[4]*r+n[8]*s+n[12]*a,e[1]=n[1]*i+n[5]*r+n[9]*s+n[13]*a,e[2]=n[2]*i+n[6]*r+n[10]*s+n[14]*a,e[3]=n[3]*i+n[7]*r+n[11]*s+n[15]*a,e}function co(){var e=new Ha(4);return Ha!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function uo(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e}function ho(e,t,n){n*=.5;var i=t[0],r=t[1],s=t[2],a=t[3],o=Math.sin(n),l=Math.cos(n);return e[0]=i*l+a*o,e[1]=r*l+s*o,e[2]=s*l-r*o,e[3]=a*l-i*o,e}Ka(),so=new Ha(4),Ha!=Float32Array&&(so[0]=0,so[1]=0,so[2]=0,so[3]=0),Ka(),Ya(1,0,0),Ya(0,1,0),co(),co(),Qa();class po{constructor(e,t){this.points=e,this.planes=t}static fromInvProjectionMatrix(e,t,n){const i=Math.pow(2,n),r=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(n=>{const r=lo([],n,e),s=1/r[3]/t*i;return function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}(r,r,[s,s,1/r[3],s])}),s=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(e=>{const t=eo([],no([],ao([],r[e[0]],r[e[1]]),ao([],r[e[2]],r[e[1]]))),n=-to(t,r[e[1]]);return t.concat(n)});return new po(r,s)}}class fo{constructor(e,t){this.min=e,this.max=t,this.center=Ja([],Wa([],this.min,this.max),.5)}quadrant(e){const t=[e%2==0,e<2],n=qa(this.min),i=qa(this.max);for(let e=0;e<t.length;e++)n[e]=t[e]?this.min[e]:this.center[e],i[e]=t[e]?this.center[e]:this.max[e];return i[2]=this.max[2],new fo(n,i)}distanceX(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]}distanceY(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]}distanceZ(e){return Math.max(Math.min(this.max[2],e[2]),this.min[2])-e[2]}intersects(e){const t=[[this.min[0],this.min[1],this.min[2],1],[this.max[0],this.min[1],this.min[2],1],[this.max[0],this.max[1],this.min[2],1],[this.min[0],this.max[1],this.min[2],1],[this.min[0],this.min[1],this.max[2],1],[this.max[0],this.min[1],this.max[2],1],[this.max[0],this.max[1],this.max[2],1],[this.min[0],this.max[1],this.max[2],1]];let n=!0;for(let s=0;s<e.planes.length;s++){const a=e.planes[s];let o=0;for(let e=0;e<t.length;e++)o+=(i=a)[0]*(r=t[e])[0]+i[1]*r[1]+i[2]*r[2]+i[3]*r[3]>=0;if(0===o)return 0;o!==t.length&&(n=!1)}var i,r;if(n)return 2;for(let t=0;t<3;t++){let n=Number.MAX_VALUE,i=-Number.MAX_VALUE;for(let r=0;r<e.points.length;r++){const s=e.points[r][t]-this.min[t];n=Math.min(n,s),i=Math.max(i,s)}if(i<0||n>this.max[t]-this.min[t])return 0}return 1}}function mo(e,t,n){const r=lo([],[e.x,e.y,t,1],n);return new i(r[0]/r[3],r[1]/r[3])}const Ao=Ya(0,0,0),go=Ya(0,0,1);function yo(e,t){const n=Ka();return Ao[2]=t,e.intersectsPlane(Ao,go,n),new i(n[0],n[1])}class vo extends wa{}function _o(e,{width:t,height:n},i,r){if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==t*n*i)throw new RangeError("mismatched image size")}else r=new Uint8Array(t*n*i);return e.width=t,e.height=n,e.data=r,e}function bo(e,{width:t,height:n},i){if(t===e.width&&n===e.height)return;const r=_o({},{width:t,height:n},i);wo(e,r,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,t),height:Math.min(e.height,n)},i),e.width=t,e.height=n,e.data=r.data}function wo(e,t,n,i,r,s){if(0===r.width||0===r.height)return t;if(r.width>e.width||r.height>e.height||n.x>e.width-r.width||n.y>e.height-r.height)throw new RangeError("out of range source coordinates for image copy");if(r.width>t.width||r.height>t.height||i.x>t.width-r.width||i.y>t.height-r.height)throw new RangeError("out of range destination coordinates for image copy");const a=e.data,o=t.data;for(let l=0;l<r.height;l++){const u=((n.y+l)*e.width+n.x)*s,c=((i.y+l)*t.width+i.x)*s;for(let e=0;e<r.width*s;e++)o[c+e]=a[u+e]}return t}Kr("HeatmapBucket",vo,{omit:["layers"]});class xo{constructor(e,t){_o(this,e,1,t)}resize(e){bo(this,e,1)}clone(){return new xo({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,n,i,r){wo(e,t,n,i,r,1)}}class Eo{constructor(e,t){_o(this,e,4,t)}resize(e){bo(this,e,4)}replace(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new Eo({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,n,i,r){wo(e,t,n,i,r,4)}}Kr("AlphaImage",xo),Kr("RGBAImage",Eo);var Co={paint:new rs({"heatmap-radius":new Zi(Oe.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Zi(Oe.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ji(Oe.paint_heatmap["heatmap-intensity"]),"heatmap-color":new ns(Oe.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ji(Oe.paint_heatmap["heatmap-opacity"])})};function So(e){const t={},n=e.resolution||256,i=e.clips?e.clips.length:1,r=e.image||new Eo({width:n,height:i}),s=(n,i,s)=>{t[e.evaluationKey]=s;const a=e.expression.evaluate(t);r.data[n+i+0]=Math.floor(255*a.r/a.a),r.data[n+i+1]=Math.floor(255*a.g/a.a),r.data[n+i+2]=Math.floor(255*a.b/a.a),r.data[n+i+3]=Math.floor(255*a.a)};if(e.clips)for(let t=0,r=0;t<i;++t,r+=4*n)for(let i=0,a=0;i<n;i++,a+=4){const o=i/(n-1),{start:l,end:u}=e.clips[t];s(r,a,l*(1-o)+u*o)}else for(let e=0,t=0;e<n;e++,t+=4)s(0,t,e/(n-1));return r}var To={paint:new rs({"hillshade-illumination-direction":new Ji(Oe.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new Ji(Oe.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new Ji(Oe.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new Ji(Oe.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new Ji(Oe.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new Ji(Oe.paint_hillshade["hillshade-accent-color"])})};const Bo=ls([{name:"a_pos",components:2,type:"Int16"}],4),{members:ko}=Bo;var Io=Po,Mo=Po;function Po(e,t,n){n=n||2;var i,r,s,a,o,l,u,c=t&&t.length,h=c?t[0]*n:e.length,p=Do(e,0,h,n,!0),d=[];if(!p||p.next===p.prev)return d;if(c&&(p=function(e,t,n,i){var r,s,a,o=[];for(r=0,s=t.length;r<s;r++)(a=Do(e,t[r]*i,r<s-1?t[r+1]*i:e.length,i,!1))===a.next&&(a.steiner=!0),o.push(jo(a));for(o.sort(zo),r=0;r<o.length;r++)Ho(o[r],n),n=Uo(n,n.next);return n}(e,t,p,n)),e.length>80*n){i=s=e[0],r=a=e[1];for(var f=n;f<h;f+=n)(o=e[f])<i&&(i=o),(l=e[f+1])<r&&(r=l),o>s&&(s=o),l>a&&(a=l);u=0!==(u=Math.max(s-i,a-r))?1/u:0}return Oo(p,d,n,i,r,u),d}function Do(e,t,n,i,r){var s,a;if(r===rl(e,t,n,i)>0)for(s=t;s<n;s+=i)a=el(s,e[s],e[s+1],a);else for(s=n-i;s>=t;s-=i)a=el(s,e[s],e[s+1],a);return a&&$o(a,a.next)&&(tl(a),a=a.next),a}function Uo(e,t){if(!e)return e;t||(t=e);var n,i=e;do{if(n=!1,i.steiner||!$o(i,i.next)&&0!==qo(i.prev,i,i.next))i=i.next;else{if(tl(i),(i=t=i.prev)===i.next)break;n=!0}}while(n||i!==t);return t}function Oo(e,t,n,i,r,s,a){if(e){!a&&s&&function(e,t,n,i){var r=e;do{null===r.z&&(r.z=Vo(r.x,r.y,t,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}
vendor: 5,905 bytes, line 2
2while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,function(e){var t,n,i,r,s,a,o,l,u=1;do{for(n=e,e=null,s=null,a=0;n;){for(a++,i=n,o=0,t=0;t<u&&(o++,i=i.nextZ);t++);for(l=u;o>0||l>0&&i;)0!==o&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,o--):(r=i,i=i.nextZ,l--),s?s.nextZ=r:e=r,r.prevZ=s,s=r;n=i}s.nextZ=null,u*=2}while(a>1)}(r)}(e,i,r,s);for(var o,l,u=e;e.prev!==e.next;)if(o=e.prev,l=e.next,s?Ro(e,i,r,s):Fo(e))t.push(o.i/n),t.push(e.i/n),t.push(l.i/n),tl(e),e=l.next,u=l.next;else if((e=l)===u){a?1===a?Oo(e=No(Uo(e),t,n),t,n,i,r,s,2):2===a&&Lo(e,t,n,i,r,s):Oo(Uo(e),t,n,i,r,s,1);break}}}function Fo(e){var t=e.prev,n=e,i=e.next;if(qo(t,n,i)>=0)return!1;for(var r=e.next.next;r!==e.prev;){if(Go(t.x,t.y,n.x,n.y,i.x,i.y,r.x,r.y)&&qo(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function Ro(e,t,n,i){var r=e.prev,s=e,a=e.next;if(qo(r,s,a)>=0)return!1;for(var o=r.x>s.x?r.x>a.x?r.x:a.x:s.x>a.x?s.x:a.x,l=r.y>s.y?r.y>a.y?r.y:a.y:s.y>a.y?s.y:a.y,u=Vo(r.x<s.x?r.x<a.x?r.x:a.x:s.x<a.x?s.x:a.x,r.y<s.y?r.y<a.y?r.y:a.y:s.y<a.y?s.y:a.y,t,n,i),c=Vo(o,l,t,n,i),h=e.prevZ,p=e.nextZ;h&&h.z>=u&&p&&p.z<=c;){if(h!==e.prev&&h!==e.next&&Go(r.x,r.y,s.x,s.y,a.x,a.y,h.x,h.y)&&qo(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,p!==e.prev&&p!==e.next&&Go(r.x,r.y,s.x,s.y,a.x,a.y,p.x,p.y)&&qo(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;h&&h.z>=u;){if(h!==e.prev&&h!==e.next&&Go(r.x,r.y,s.x,s.y,a.x,a.y,h.x,h.y)&&qo(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;p&&p.z<=c;){if(p!==e.prev&&p!==e.next&&Go(r.x,r.y,s.x,s.y,a.x,a.y,p.x,p.y)&&qo(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function No(e,t,n){var i=e;do{var r=i.prev,s=i.next.next;!$o(r,s)&&Yo(r,i,i.next,s)&&Jo(r,s)&&Jo(s,r)&&(t.push(r.i/n),t.push(i.i/n),t.push(s.i/n),tl(i),tl(i.next),i=e=s),i=i.next}while(i!==e);return Uo(i)}function Lo(e,t,n,i,r,s){var a=e;do{for(var o=a.next.next;o!==a.prev;){if(a.i!==o.i&&Ko(a,o)){var l=Zo(a,o);return a=Uo(a,a.next),l=Uo(l,l.next),Oo(a,t,n,i,r,s),void Oo(l,t,n,i,r,s)}o=o.next}a=a.next}while(a!==e)}function zo(e,t){return e.x-t.x}function Ho(e,t){if(t=function(e,t){var n,i=t,r=e.x,s=e.y,a=-1/0;do{if(s<=i.y&&s>=i.next.y&&i.next.y!==i.y){var o=i.x+(s-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(o<=r&&o>a){if(a=o,o===r){if(s===i.y)return i;if(s===i.next.y)return i.next}n=i.x<i.next.x?i:i.next}}i=i.next}while(i!==t);if(!n)return null;if(r===a)return n;var l,u=n,c=n.x,h=n.y,p=1/0;i=n;do{r>=i.x&&i.x>=c&&r!==i.x&&Go(s<h?r:a,s,c,h,s<h?a:r,s,i.x,i.y)&&(l=Math.abs(s-i.y)/(r-i.x),Jo(i,e)&&(l<p||l===p&&(i.x>n.x||i.x===n.x&&Qo(n,i)))&&(n=i,p=l)),i=i.next}while(i!==u);return n}(e,t)){var n=Zo(t,e);Uo(t,t.next),Uo(n,n.next)}}function Qo(e,t){return qo(e.prev,e,t.prev)<0&&qo(t.next,e,e.next)<0}function Vo(e,t,n,i,r){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*r)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*r)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function jo(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function Go(e,t,n,i,r,s,a,o){return(r-a)*(t-o)-(e-a)*(s-o)>=0&&(e-a)*(i-o)-(n-a)*(t-o)>=0&&(n-a)*(s-o)-(r-a)*(i-o)>=0}function Ko(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Yo(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Jo(e,t)&&Jo(t,e)&&function(e,t){var n=e,i=!1,r=(e.x+t.x)/2,s=(e.y+t.y)/2;do{n.y>s!=n.next.y>s&&n.next.y!==n.y&&r<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==e);return i}(e,t)&&(qo(e.prev,e,t.prev)||qo(e,t.prev,t))||$o(e,t)&&qo(e.prev,e,e.next)>0&&qo(t.prev,t,t.next)>0)}function qo(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function $o(e,t){return e.x===t.x&&e.y===t.y}function Yo(e,t,n,i){var r=Xo(qo(e,t,n)),s=Xo(qo(e,t,i)),a=Xo(qo(n,i,e)),o=Xo(qo(n,i,t));return r!==s&&a!==o||!(0!==r||!Wo(e,n,t))||!(0!==s||!Wo(e,i,t))||!(0!==a||!Wo(n,e,i))||!(0!==o||!Wo(n,t,i))}function Wo(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Xo(e){return e>0?1:e<0?-1:0}function Jo(e,t){return qo(e.prev,e,e.next)<0?qo(e,t,e.next)>=0&&qo(e,e.prev,t)>=0:qo(e,t,e.prev)<0||qo(e,e.next,t)<0}function Zo(e,t){var n=new nl(e.i,e.x,e.y),i=new nl(t.i,t.x,t.y),r=e.next,s=t.prev;return e.next=t,t.prev=e,n.next=r,r.prev=n,i.next=n,n.prev=i,s.next=i,i.prev=s,i}function el(e,t,n,i){var r=new nl(e,t,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function tl(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function nl(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function rl(e,t,n,i){for(var r=0,s=t,a=n-i;s<n;s+=i)r+=(e[a]-e[s])*(e[s+1]+e[a+1]),a=s;return r}function il(e,t,n,i,r){!function e(t,n,i,r,s){for(;r>i;){if(r-i>600){var a=r-i+1,o=n-i+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(o-a/2<0?-1:1);e(t,n,Math.max(i,Math.floor(n-o*u/a+c)),Math.min(r,Math.floor(n+(a-o)*u/a+c)),s)}var h=t[n],p=i,d=r;for(sl(t,i,n),s(t[r],h)>0&&sl(t,i,r);p<d;){for(sl(t,p,d),p++,d--;s(t[p],h)<0;)p++;for(;s(t[d],h)>0;)d--}0===s(t[i],h)?sl(t,i,d):sl(t,++d,r),d<=n&&(i=d+1),n<=d&&(r=d-1)}}(e,t,n||0,i||e.length-1,r||al)}function sl(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function al(e,t){return e<t?-1:e>t?1:0}function ll(e,t){const n=e.length;if(n<=1)return[e];const i=[];let r,s;for(let t=0;t<n;t++){const n=P(e[t]);0!==n&&(e[t].area=Math.abs(n),void 0===s&&(s=n<0),s===n<0?(r&&i.push(r),r=[e[t]]):r.push(e[t]))}if(r&&i.push(r),t>1)for(let e=0;e<i.length;e++)i[e].length<=t||(il(i[e],t,1,i[e].length-1,ol),i[e]=i[e].slice(0,t));return i}function ol(e,t){return t.area-e.area}function cl(e,t,n){const i=n.patternDependencies;let r=!1;for(const n of t){const t=n.paint.get(e+"-pattern");t.isConstant()||(r=!0);const s=t.constantOr(null);
vendor: 33,608 bytes, line 2
2s&&(r=!0,i[s.to]=!0,i[s.from]=!0)}return r}function ul(e,t,n,i,r){const s=r.patternDependencies;for(const a of t){const t=a.paint.get(e+"-pattern").value;if("constant"!==t.kind){let e=t.evaluate({zoom:i-1},n,{},r.availableImages),o=t.evaluate({zoom:i},n,{},r.availableImages),l=t.evaluate({zoom:i+1},n,{},r.availableImages);e=e&&e.name?e.name:e,o=o&&o.name?o.name:o,l=l&&l.name?l.name:l,s[e]=!0,s[o]=!0,s[l]=!0,n.patterns[a.id]={min:e,mid:o,max:l}}}return n}Po.deviation=function(e,t,n,i){var r=t&&t.length,s=Math.abs(rl(e,0,r?t[0]*n:e.length,n));if(r)for(var a=0,o=t.length;a<o;a++)s-=Math.abs(rl(e,t[a]*n,a<o-1?t[a+1]*n:e.length,n));var l=0;for(a=0;a<i.length;a+=3){var u=i[a]*n,c=i[a+1]*n,h=i[a+2]*n;l+=Math.abs((e[u]-e[h])*(e[c+1]-e[u+1])-(e[u]-e[c])*(e[h+1]-e[u+1]))}return 0===s&&0===l?0:Math.abs((l-s)/s)},Po.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},i=0,r=0;r<e.length;r++){for(var s=0;s<e[r].length;s++)for(var a=0;a<t;a++)n.vertices.push(e[r][s][a]);r>0&&n.holes.push(i+=e[r-1].length)}return n},Io.default=Mo;class hl{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new us,this.indexArray=new ws,this.indexArray2=new Bs,this.programConfigurations=new ua(e.layers,e.zoom),this.segments=new Aa,this.segments2=new Aa,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,n){this.hasPattern=cl("fill",this.layers,t);const i=this.layers[0].layout.get("fill-sort-key"),r=[];for(const{feature:s,id:a,index:o,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,u=_a(s,e);if(!this.layers[0]._featureFilter.filter(new Vi(this.zoom),u,n))continue;const c=i?i.evaluate(u,{},n,t.availableImages):void 0,h={id:a,properties:s.properties,type:s.type,sourceLayerIndex:l,index:o,geometry:e?u.geometry:va(s),patterns:{},sortKey:c};r.push(h)}i&&r.sort((e,t)=>e.sortKey-t.sortKey);for(const i of r){const{geometry:r,index:s,sourceLayerIndex:a}=i;if(this.hasPattern){const e=ul("fill",this.layers,i,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(i,r,s,n,{});t.featureIndex.insert(e[s].feature,r,s,a,this.index)}}update(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)}addFeatures(e,t,n){for(const e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,ko),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,n,i,r){for(const e of ll(t,500)){let t=0;for(const n of e)t+=n.length;const n=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray),i=n.vertexLength,r=[],s=[];for(const t of e){if(0===t.length)continue;t!==e[0]&&s.push(r.length/2);const n=this.segments2.prepareSegment(t.length,this.layoutVertexArray,this.indexArray2),i=n.vertexLength;this.layoutVertexArray.emplaceBack(t[0].x,t[0].y),this.indexArray2.emplaceBack(i+t.length-1,i),r.push(t[0].x),r.push(t[0].y);for(let e=1;e<t.length;e++)this.layoutVertexArray.emplaceBack(t[e].x,t[e].y),this.indexArray2.emplaceBack(i+e-1,i+e),r.push(t[e].x),r.push(t[e].y);n.vertexLength+=t.length,n.primitiveLength+=t.length}const a=Io(r,s);for(let e=0;e<a.length;e+=3)this.indexArray.emplaceBack(i+a[e],i+a[e+1],i+a[e+2]);n.vertexLength+=t,n.primitiveLength+=a.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,r,i)}}Kr("FillBucket",hl,{omit:["layers","patternFeatures"]});const pl=new rs({"fill-sort-key":new Zi(Oe.layout_fill["fill-sort-key"])});var fl={paint:new rs({"fill-antialias":new Ji(Oe.paint_fill["fill-antialias"]),"fill-opacity":new Zi(Oe.paint_fill["fill-opacity"]),"fill-color":new Zi(Oe.paint_fill["fill-color"]),"fill-outline-color":new Zi(Oe.paint_fill["fill-outline-color"]),"fill-translate":new Ji(Oe.paint_fill["fill-translate"]),"fill-translate-anchor":new Ji(Oe.paint_fill["fill-translate-anchor"]),"fill-pattern":new es(Oe.paint_fill["fill-pattern"])}),layout:pl};const dl=ls([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),ml=ls([{name:"a_centroid_pos",components:2,type:"Uint16"}]),{members:Al}=dl;var gl=yl;function yl(e,t,n,i,r){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=i,this._values=r,e.readFields(vl,this,t)}function vl(e,t,n){1==e?t.id=n.readVarint():2==e?function(e,t){for(var n=e.readVarint()+e.pos;e.pos<n;){var i=t._keys[e.readVarint()],r=t._values[e.readVarint()];t.properties[i]=r}}(n,t):3==e?t.type=n.readVarint():4==e&&(t._geometry=n.pos)}function _l(e){for(var t,n,i=0,r=0,s=e.length,a=s-1;r<s;a=r++)i+=((n=e[a]).x-(t=e[r]).x)*(t.y+n.y);return i}yl.types=["Unknown","Point","LineString","Polygon"],yl.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,n=e.readVarint()+e.pos,r=1,s=0,a=0,o=0,l=[];e.pos<n;){if(s<=0){var u=e.readVarint();r=7&u,s=u>>3}if(s--,1===r||2===r)a+=e.readSVarint(),o+=e.readSVarint(),1===r&&(t&&l.push(t),t=[]),t.push(new i(a,o));else{if(7!==r)throw new Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&l.push(t),l},yl.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,i=0,r=0,s=0,a=1/0,o=-1/0,l=1/0,u=-1/0;e.pos<t;){if(i<=0){var c=e.readVarint();n=7&c,i=c>>3}if(i--,1===n||2===n)(r+=e.readSVarint())<a&&(a=r),r>o&&(o=r),(s+=e.readSVarint())<l&&(l=s),s>u&&(u=s);else if(7!==n)throw new Error("unknown command "+n)}return[a,l,o,u]},yl.prototype.toGeoJSON=function(e,t,n){var i,r,s=this.extent*Math.pow(2,n),a=this.extent*e,o=this.extent*t,l=this.loadGeometry(),u=yl.types[this.type];function c(e){for(var t=0;t<e.length;t++){var n=e[t];e[t]=[360*(n.x+a)/s-180,360/Math.PI*Math.atan(Math.exp((180-360*(n.y+o)/s)*Math.PI/180))-90]}}switch(this.type){case 1:var h=[];for(i=0;i<l.length;i++)h[i]=l[i][0];c(l=h);break;case 2:for(i=0;i<l.length;i++)c(l[i]);break;case 3:for(l=function(e){var t=e.length;if(t<=1)return[e];for(var n,i,r=[],s=0;s<t;s++){var a=_l(e[s]);0!==a&&(void 0===i&&(i=a<0),i===a<0?(n&&r.push(n),n=[e[s]]):n.push(e[s]))}return n&&r.push(n),r}(l),i=0;i<l.length;i++)for(r=0;r<l[i].length;r++)c(l[i][r])}1===l.length?l=l[0]:u="Multi"+u;var p={type:"Feature",geometry:{type:u,coordinates:l},properties:this.properties};return"id"in this&&(p.id=this.id),p};var bl=wl;function wl(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(xl,this,t),this.length=this._features.length}function xl(e,t,n){15===e?t.version=n.readVarint():1===e?t.name=n.readString():5===e?t.extent=n.readVarint():2===e?t._features.push(n.pos):3===e?t._keys.push(n.readString()):4===e&&t._values.push(function(e){for(var t=null,n=e.readVarint()+e.pos;e.pos<n;){var i=e.readVarint()>>3;t=1===i?e.readString():2===i?e.readFloat():3===i?e.readDouble():4===i?e.readVarint64():5===i?e.readVarint():6===i?e.readSVarint():7===i?e.readBoolean():null}return t}(n))}function El(e,t,n){if(3===e){var i=new bl(n,n.readVarint()+n.pos);i.length&&(t[i.name]=i)}}wl.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new gl(this._pbf,t,this.extent,this._keys,this._values)};var Cl={VectorTile:function(e,t){this.layers=e.readFields(El,{},t)},VectorTileFeature:gl,VectorTileLayer:bl};const Sl=Cl.VectorTileFeature.types,Tl=Math.pow(2,13);function Bl(e,t,n,i,r,s,a,o){e.emplaceBack((t<<1)+a,(n<<1)+s,(Math.floor(i*Tl)<<1)+r,Math.round(o))}class kl{constructor(){this.acc=new i(0,0),this.polyCount=[]}startRing(e){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new i(e.x,e.y),this.max=new i(e.x,e.y))}append(e,t){this.currentPolyCount.edges++,this.acc._add(e);let n=!!this.borders;const i=this.min,r=this.max;e.x<i.x?(i.x=e.x,n=!0):e.x>r.x&&(r.x=e.x,n=!0),e.y<i.y?(i.y=e.y,n=!0):e.y>r.y&&(r.y=e.y,n=!0),((0===e.x||8192===e.x)&&e.x===t.x)!=((0===e.y||8192===e.y)&&e.y===t.y)&&this.processBorderOverlap(e,t),n&&this.checkBorderIntersection(e,t)}checkBorderIntersection(e,t){t.x<0!=e.x<0&&this.addBorderIntersection(0,Zt(t.y,e.y,(0-t.x)/(e.x-t.x))),t.x>8192!=e.x>8192&&this.addBorderIntersection(1,Zt(t.y,e.y,(8192-t.x)/(e.x-t.x))),t.y<0!=e.y<0&&this.addBorderIntersection(2,Zt(t.x,e.x,(0-t.y)/(e.y-t.y))),t.y>8192!=e.y>8192&&this.addBorderIntersection(3,Zt(t.x,e.x,(8192-t.y)/(e.y-t.y)))}addBorderIntersection(e,t){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const n=this.borders[e];t<n[0]&&(n[0]=t),t>n[1]&&(n[1]=t)}processBorderOverlap(e,t){if(e.x===t.x){if(e.y===t.y)return;const n=0===e.x?0:1;this.addBorderIntersection(n,t.y),this.addBorderIntersection(n,e.y)}else{const n=0===e.y?2:3;this.addBorderIntersection(n,t.x),this.addBorderIntersection(n,e.x)}}centroid(){const e=this.polyCount.reduce((e,t)=>e+t.edges,0);return 0!==e?this.acc.div(e)._round():new i(0,0)}span(){return new i(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce((e,t)=>e+ +(t[0]!==Number.MAX_VALUE),0)}}class Il{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new hs,this.centroidVertexArray=new Qs,this.indexArray=new ws,this.programConfigurations=new ua(e.layers,e.zoom),this.segments=new Aa,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.enableTerrain=e.enableTerrain}populate(e,t,n){this.features=[],this.hasPattern=cl("fill-extrusion",this.layers,t),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDone=[!1,!1,!1,!1],this.tileToMeter=function(e){const t=Math.exp(Math.PI*(1-e.y/(1<<e.z)*2));return 80150034*t/(t*t+1)/8192/(1<<e.z)}(n);for(const{feature:i,id:r,index:s,sourceLayerIndex:a}of e){const e=this.layers[0]._featureFilter.needGeometry,o=_a(i,e);if(!this.layers[0]._featureFilter.filter(new Vi(this.zoom),o,n))continue;const l={id:r,sourceLayerIndex:a,index:s,geometry:e?o.geometry:va(i),properties:i.properties,type:i.type,patterns:{}},u=this.layoutVertexArray.length;this.hasPattern?this.features.push(ul("fill-extrusion",this.layers,l,this.zoom,t)):this.addFeature(l,l.geometry,s,n,{}),t.featureIndex.insert(i,l.geometry,s,a,this.index,u)}this.sortBorders()}addFeatures(e,t,n){for(const e of this.features){const{geometry:i}=e;this.addFeature(e,i,e.index,t,n)}this.sortBorders()}update(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Al),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}uploadCentroid(e){0!==this.centroidVertexArray.length&&(this.centroidVertexBuffer?this.needsCentroidUpdate&&this.centroidVertexBuffer.updateData(this.centroidVertexArray):this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,ml.members,!0),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,n,i,r){const s=this.enableTerrain&&e.properties&&e.properties.hasOwnProperty("type")&&e.properties.hasOwnProperty("height")&&"Polygon"===Sl[e.type]?new kl:null;for(const n of ll(t,500)){let t=0,i=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);if(0===n.length||(a=n[0]).every(e=>e.x<=0)||a.every(e=>e.x>=8192)||a.every(e=>e.y<=0)||a.every(e=>e.y>=8192))continue;for(let e=0;e<n.length;e++){const r=n[e];if(0===r.length)continue;t+=r.length;let a=0;s&&s.startRing(r[0]);for(let e=0;e<r.length;e++){const t=r[e];if(e>=1){const n=r[e-1];if(!Ml(t,n)){s&&s.append(t,n),i.vertexLength+4>Aa.MAX_VERTEX_ARRAY_LENGTH&&(i=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const e=t.sub(n)._perp(),r=e.x/(Math.abs(e.x)+Math.abs(e.y)),o=e.y>0?1:0,l=n.dist(t);a+l>32768&&(a=0),Bl(this.layoutVertexArray,t.x,t.y,r,o,0,0,a),Bl(this.layoutVertexArray,t.x,t.y,r,o,0,1,a),a+=l,Bl(this.layoutVertexArray,n.x,n.y,r,o,0,0,a),Bl(this.layoutVertexArray,n.x,n.y,r,o,0,1,a);const u=i.vertexLength;this.indexArray.emplaceBack(u,u+2,u+1),this.indexArray.emplaceBack(u+1,u+2,u+3),i.vertexLength+=4,i.primitiveLength+=2}}}}if(i.vertexLength+t>Aa.MAX_VERTEX_ARRAY_LENGTH&&(i=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray)),"Polygon"!==Sl[e.type])continue;const r=[],o=[],l=i.vertexLength;for(let e=0;e<n.length;e++){const t=n[e];if(0!==t.length){t!==n[0]&&o.push(r.length/2);for(let e=0;e<t.length;e++){const n=t[e];Bl(this.layoutVertexArray,n.x,n.y,0,0,1,1,0),r.push(n.x),r.push(n.y),s&&s.currentPolyCount.top++}}}const u=Io(r,o);for(let e=0;e<u.length;e+=3)this.indexArray.emplaceBack(l+u[e],l+u[e+2],l+u[e+1]);i.primitiveLength+=u.length/3,i.vertexLength+=t}var a;if(s&&s.polyCount.length>0){if(s.borders){s.vertexArrayOffset=this.centroidVertexArray.length;const e=s.borders,t=this.featuresOnBorder.push(s)-1;for(let n=0;n<4;n++)e[n][0]!==Number.MAX_VALUE&&this.borders[n].push(t)}this.encodeCentroid(s.borders?void 0:s.centroid(),s)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,r,i)}sortBorders(){for(let e=0;e<4;e++)this.borders[e].sort((t,n)=>this.featuresOnBorder[t].borders[e][0]-this.featuresOnBorder[n].borders[e][0])}encodeCentroid(e,t,n=!0){let i,r;if(e)if(0!==e.y){const n=t.span()._mult(this.tileToMeter);i=(Math.max(e.x,1)<<3)+Math.min(7,Math.round(n.x/10)),r=(Math.max(e.y,1)<<3)+Math.min(7,Math.round(n.y/10))}else i=Math.ceil(7.3*e.x),r=0;else i=0,r=+n;let s=n?this.centroidVertexArray.length:t.vertexArrayOffset;for(const e of t.polyCount){n&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*e.edges+e.top);for(let t=0;t<2*e.edges;t++)this.centroidVertexArray.emplace(s++,0,r),this.centroidVertexArray.emplace(s++,i,r);for(let t=0;t<e.top;t++)this.centroidVertexArray.emplace(s++,i,r)}}}function Ml(e,t){return e.x===t.x&&(e.x<0||e.x>8192)||e.y===t.y&&(e.y<0||e.y>8192)}Kr("FillExtrusionBucket",Il,{omit:["layers","features"]}),Kr("PartMetadata",kl);var Pl={paint:new rs({"fill-extrusion-opacity":new Ji(Oe["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Zi(Oe["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ji(Oe["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ji(Oe["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new es(Oe["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Zi(Oe["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Zi(Oe["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ji(Oe["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})};function Dl(e,t){return e.x*t.x+e.y*t.y}function Ul(e,t){if(1===e.length){let n=0;const i=t[n++];let r;for(;!r||i.equals(r);)if(r=t[n++],!r)return 1/0;for(;n<t.length;n++){const s=t[n],a=e[0],o=r.sub(i),l=s.sub(i),u=a.sub(i),c=Dl(o,o),h=Dl(o,l),p=Dl(l,l),d=Dl(u,o),f=Dl(u,l),m=c*p-h*h,A=(p*d-h*f)/m,g=(c*f-h*d)/m,y=i.z*(1-A-g)+r.z*A+s.z*g;if(isFinite(y))return y}return 1/0}{let e=1/0;for(const n of t)e=Math.min(e,n.z);return e}}function Ol(e){const t=new i(e[0],e[1]);return t.z=e[2],t}function Fl(e,t,n,i,r,s,a,o){const l=a*r.getElevationAt(e,t,!0,!0),u=0!==s[0],c=u?0===s[1]?a*(s[0]/7.3):a*function(e,t,n){const i=Math.floor(t[0]/8),r=Math.floor(t[1]/8),s=10*(t[0]-8*i),a=10*(t[1]-8*r),o=e.getElevationAt(i,r,!0,!0),l=e.getMeterToDEM(n),u=Math.floor(.5*(s*l-1)),c=Math.floor(.5*(a*l-1)),h=e.tileCoordToPixel(i,r),p=2*u+1,d=2*c+1,f=function(e,t,n,i,r){return[e.getElevationAtPixel(t,n,!0),e.getElevationAtPixel(t+r,n,!0),e.getElevationAtPixel(t,n+r,!0),e.getElevationAtPixel(t+i,n+r,!0)]}(e,h.x-u,h.y-c,p,d),m=Math.abs(f[0]-f[1]),A=Math.abs(f[2]-f[3]),g=Math.abs(f[0]-f[2])+Math.abs(f[1]-f[3]),y=Math.min(.25,.5*l*(m+A)/p),v=Math.min(.25,.5*l*g/d);return o+Math.max(y*s,v*a)}(r,s,o):l;return{base:l+(0===n)?-1:n,top:u?Math.max(c+i,l+n+2):l+i}}const Rl=ls([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),{members:Nl}=Rl,Ll=ls([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),{members:zl}=Ll,Hl=Cl.VectorTileFeature.types,Ql=Math.cos(Math.PI/180*37.5);class Vl{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(e=>{this.gradients[e.id]={}}),this.layoutVertexArray=new ds,this.layoutVertexArray2=new ps,this.indexArray=new ws,this.programConfigurations=new ua(e.layers,e.zoom),this.segments=new Aa,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,n){this.hasPattern=cl("line",this.layers,t);const i=this.layers[0].layout.get("line-sort-key"),r=[];for(const{feature:t,id:s,index:a,sourceLayerIndex:o}of e){const e=this.layers[0]._featureFilter.needGeometry,l=_a(t,e);if(!this.layers[0]._featureFilter.filter(new Vi(this.zoom),l,n))continue;const u=i?i.evaluate(l,{},n):void 0,c={id:s,properties:t.properties,type:t.type,sourceLayerIndex:o,index:a,geometry:e?l.geometry:va(t),patterns:{},sortKey:u};r.push(c)}i&&r.sort((e,t)=>e.sortKey-t.sortKey);for(const i of r){const{geometry:r,index:s,sourceLayerIndex:a}=i;if(this.hasPattern){const e=ul("line",this.layers,i,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(i,r,s,n,{});t.featureIndex.insert(e[s].feature,r,s,a,this.index)}}update(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)}addFeatures(e,t,n){for(const e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,zl)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Nl),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,t,n,i,r){const s=this.layers[0].layout,a=s.get("line-join").evaluate(e,{}),o=s.get("line-cap"),l=s.get("line-miter-limit"),u=s.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const n of t)this.addLine(n,e,a,o,l,u);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,r,i)}addLine(e,t,n,i,r,s){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let t=0;t<e.length-1;t++)this.totalDistance+=e[t].dist(e[t+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const a="Polygon"===Hl[t.type];let o=e.length;for(;o>=2&&e[o-1].equals(e[o-2]);)o--;let l=0;for(;l<o-1&&e[l].equals(e[l+1]);)l++;if(o<(a?3:2))return;"bevel"===n&&(r=1.05);const u=this.overscaling<=16?122880/(512*this.overscaling):0,c=this.segments.prepareSegment(10*o,this.layoutVertexArray,this.indexArray);let h,p=void 0,d=void 0,f=void 0,m=void 0;this.e1=this.e2=-1,a&&(h=e[o-2],m=e[l].sub(h)._unit()._perp());for(let t=l;t<o;t++){if(d=t===o-1?a?e[l+1]:void 0:e[t+1],d&&e[t].equals(d))continue;m&&(f=m),h&&(p=h),h=e[t],m=d?d.sub(h)._unit()._perp():f,f=f||m;let A=f.add(m);0===A.x&&0===A.y||A._unit();const g=f.x*m.x+f.y*m.y,y=A.x*m.x+A.y*m.y,v=0!==y?1/y:1/0,b=2*Math.sqrt(2-2*y),_=y<Ql&&p&&d,w=f.x*m.y-f.y*m.x>0;if(_&&t>l){const e=h.dist(p);if(e>2*u){const t=h.sub(h.sub(p)._mult(u/e)._round());this.updateDistance(p,t),this.addCurrentVertex(t,f,0,0,c),p=t}}const x=p&&d;let E=x?n:a?"butt":i;if(x&&"round"===E&&(v<s?E="miter":v<=2&&(E="fakeround")),"miter"===E&&v>r&&(E="bevel"),"bevel"===E&&(v>2&&(E="flipbevel"),v<r&&(E="miter")),p&&this.updateDistance(p,h),"miter"===E)A._mult(v),this.addCurrentVertex(h,A,0,0,c);else if("flipbevel"===E){if(v>100)A=m.mult(-1);else{const e=v*f.add(m).mag()/f.sub(m).mag();A._perp()._mult(e*(w?-1:1))}this.addCurrentVertex(h,A,0,0,c),this.addCurrentVertex(h,A.mult(-1),0,0,c)}else if("bevel"===E||"fakeround"===E){const e=-Math.sqrt(v*v-1),t=w?e:0,n=w?0:e;if(p&&this.addCurrentVertex(h,f,t,n,c),"fakeround"===E){const e=Math.round(180*b/Math.PI/20);for(let t=1;t<e;t++){let n=t/e;if(.5!==n){const e=n-.5;n+=n*e*(n-1)*((1.0904+g*(g*(3.55645-1.43519*g)-3.2452))*e*e+(.848013+g*(.215638*g-1.06021)))}const i=m.sub(f)._mult(n)._add(f)._unit()._mult(w?-1:1);this.addHalfVertex(h,i.x,i.y,!1,w,0,c)}}d&&this.addCurrentVertex(h,m,-t,-n,c)}else if("butt"===E)this.addCurrentVertex(h,A,0,0,c);else if("square"===E){const e=p?1:-1;this.addCurrentVertex(h,A,e,e,c)}else"round"===E&&(p&&(this.addCurrentVertex(h,f,0,0,c),this.addCurrentVertex(h,f,1,1,c,!0)),d&&(this.addCurrentVertex(h,m,-1,-1,c,!0),this.addCurrentVertex(h,m,0,0,c)));if(_&&t<o-1){const e=h.dist(d);if(e>2*u){const t=h.add(d.sub(h)._mult(u/e)._round());this.updateDistance(h,t),this.addCurrentVertex(t,m,0,0,c),h=t}}}}addCurrentVertex(e,t,n,i,r,s=!1){const a=t.y*i-t.x,o=-t.y-t.x*i;this.addHalfVertex(e,t.x+t.y*n,t.y-t.x*n,s,!1,n,r),this.addHalfVertex(e,a,o,s,!0,-i,r)}addHalfVertex({x:e,y:t},n,i,r,s,a,o){this.layoutVertexArray.emplaceBack((e<<1)+(r?1:0),(t<<1)+(s?1:0),Math.round(63*n)+128,Math.round(63*i)+128,1+(0===a?0:a<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length);const l=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,l),o.primitiveLength++),s?this.e2=l:this.e1=l}updateScaledDistance(){if(this.lineClips){const e=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=e*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}}Kr("LineBucket",Vl,{omit:["layers","patternFeatures"]});const jl=new rs({"line-cap":new Ji(Oe.layout_line["line-cap"]),"line-join":new Zi(Oe.layout_line["line-join"]),"line-miter-limit":new Ji(Oe.layout_line["line-miter-limit"]),"line-round-limit":new Ji(Oe.layout_line["line-round-limit"]),"line-sort-key":new Zi(Oe.layout_line["line-sort-key"])});var Gl={paint:new rs({"line-opacity":new Zi(Oe.paint_line["line-opacity"]),"line-color":new Zi(Oe.paint_line["line-color"]),"line-translate":new Ji(Oe.paint_line["line-translate"]),"line-translate-anchor":new Ji(Oe.paint_line["line-translate-anchor"]),"line-width":new Zi(Oe.paint_line["line-width"]),"line-gap-width":new Zi(Oe.paint_line["line-gap-width"]),"line-offset":new Zi(Oe.paint_line["line-offset"]),"line-blur":new Zi(Oe.paint_line["line-blur"]),"line-dasharray":new ts(Oe.paint_line["line-dasharray"]),"line-pattern":new es(Oe.paint_line["line-pattern"]),"line-gradient":new ns(Oe.paint_line["line-gradient"])}),layout:jl};const Kl=new class extends Zi{possiblyEvaluate(e,t){return t=new Vi(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,n,i){return t=v({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,n,i)}}(Gl.paint.properties["line-width"].specification);function ql(e,t){return t>0?t+2*e:e}Kl.useIntegerZoom=!0;const $l=ls([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Yl=ls([{name:"a_projected_pos",components:3,type:"Float32"}],4),Wl=(ls([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),ls([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Xl=ls([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]),Jl=(ls([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),ls([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Zl=ls([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function ec(e,t){const{expression:n}=t;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new Vi(e+1))};if("source"===n.kind)return{kind:"source"};{const{zoomStops:t,interpolationType:i}=n;let r=0;for(;r<t.length&&t[r]<=e;)r++;r=Math.max(0,r-1);let s=r;for(;s<t.length&&t[s]<e+1;)s++;s=Math.min(t.length-1,s);const a=t[r],o=t[s];return"composite"===n.kind?{kind:"composite",minZoom:a,maxZoom:o,interpolationType:i}:{kind:"camera",minZoom:a,maxZoom:o,minSize:n.evaluate(new Vi(a)),maxSize:n.evaluate(new Vi(o)),interpolationType:i}}}function tc(e,{uSize:t,uSizeT:n},{lowerSize:i,upperSize:r}){return"source"===e.kind?i/128:"composite"===e.kind?Zt(i/128,r/128,n):t}function nc(e,t){let n=0,i=0;if("constant"===e.kind)i=e.layoutSize;else if("source"!==e.kind){const{interpolationType:r,minZoom:s,maxZoom:a}=e,o=r?m(pn.interpolationFactor(r,t,s,a),0,1):0;"camera"===e.kind?i=Zt(e.minSize,e.maxSize,o):n=o}return{uSizeT:n,uSize:i}}ls([{name:"triangle",components:3,type:"Uint16"}]),ls([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),ls([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),ls([{type:"Float32",name:"offsetX"}]),ls([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var rc=Object.freeze({__proto__:null,getSizeData:ec,evaluateSizeForFeature:tc,evaluateSizeForZoom:nc,SIZE_PACK_FACTOR:128});function ic(e,t,n){return e.sections.forEach(e=>{e.text=function(e,t,n){const i=t.layout.get("text-transform").evaluate(n,{});return"uppercase"===i?e=e.toLocaleUpperCase():"lowercase"===i&&(e=e.toLocaleLowerCase()),Qi.applyArabicShaping&&(e=Qi.applyArabicShaping(e)),e}(e.text,t,n)}),e}const sc={"!":"ï¸","#":"ï¼",$:"ï¼","%":"ï¼
","&":"ï¼","(":"︵",")":"︶","*":"ï¼","+":"ï¼",",":"ï¸","-":"︲",".":"ã»","/":"ï¼",":":"ï¸",";":"ï¸","<":"︿","=":"ï¼",">":"ï¹","?":"ï¸","@":"ï¼ ","[":"ï¹","\\":"ï¼¼","]":"ï¹","^":"ï¼¾",_:"︳","`":"ï½","{":"︷","|":"â","}":"︸","~":"ï½","¢":"ï¿ ","£":"ï¿¡","Â¥":"ï¿¥","¦":"¦","¬":"ï¿¢","¯":"ï¿£","â":"︲","â":"︱","â":"ï¹","â":"ï¹","â":"ï¹","â":"ï¹","â¦":"ï¸","â§":"ã»","â©":"₩","ã":"ï¸","ã":"ï¸","ã":"︿","ã":"ï¹","ã":"︽","ã":"︾","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"︻","ã":"︼","ã":"︹","ã":"︺","ã":"ï¸","ã":"ï¸","ï¼":"ï¸","ï¼":"︵","ï¼":"︶","ï¼":"ï¸","ï¼":"︲","ï¼":"ã»","ï¼":"ï¸","ï¼":"ï¸","ï¼":"︿","ï¼":"ï¹","ï¼":"ï¸","ï¼»":"ï¹","ï¼½":"ï¹","_":"︳","ï½":"︷","ï½":"â","ï½":"︸","ï½":"︵","ï½ ":"︶","。":"ï¸","ï½¢":"ï¹","ï½£":"ï¹"};var ac=function(e,t,n,i,r){var s,a,o=8*r-i-1,l=(1<<o)-1,u=l>>1,c=-7,h=n?r-1:0,p=n?-1:1,d=e[t+h];for(h+=p,s=d&(1<<-c)-1,d>>=-c,c+=o;c>0;s=256*s+e[t+h],h+=p,c-=8);for(a=s&(1<<-c)-1,s>>=-c,c+=i;c>0;a=256*a+e[t+h],h+=p,c-=8);if(0===s)s=1-u;else{if(s===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),s-=u}return(d?-1:1)*a*Math.pow(2,s-i)},oc=function(e,t,n,i,r,s){var a,o,l,u=8*s-r-1,c=(1<<u)-1,h=c>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:s-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(o=0,a=c):a+h>=1?(o=(t*l-1)*Math.pow(2,r),a+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;e[n+d]=255&o,d+=f,o/=256,r-=8);for(a=a<<r|o,u+=r;u>0;e[n+d]=255&a,d+=f,a/=256,u-=8);e[n+d-f]|=128*m},lc=cc;function cc(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}cc.Varint=0,cc.Fixed64=1,cc.Bytes=2,cc.Fixed32=5;var uc="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function hc(e){return e.type===cc.Bytes?e.readVarint()+e.pos:e.pos+1}function dc(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function pc(e,t,n){var i=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(i);for(var r=n.pos-1;r>=e;r--)n.buf[r+i]=n.buf[r]}function fc(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function mc(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function Ac(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function gc(e,t){for(var n=0;n<e.length;n++)t.writeDouble(e[n])}function yc(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function vc(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function _c(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function bc(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function wc(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function xc(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function Ec(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function Cc(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function Sc(e,t,n){1===e&&n.readMessage(Tc,t)}function Tc(e,t,n){if(3===e){const{id:e,bitmap:i,width:r,height:s,left:a,top:o,advance:l}=n.readMessage(Bc,{});t.push({id:e,bitmap:new xo({width:r+6,height:s+6},i),metrics:{width:r,height:s,left:a,top:o,advance:l}})}}function Bc(e,t,n){1===e?t.id=n.readVarint():2===e?t.bitmap=n.readBytes():3===e?t.width=n.readVarint():4===e?t.height=n.readVarint():5===e?t.left=n.readSVarint():6===e?t.top=n.readSVarint():7===e&&(t.advance=n.readVarint())}function kc(e){let t=0,n=0;for(const i of e)t+=i.w*i.h,n=Math.max(n,i.w);e.sort((e,t)=>t.h-e.h);const i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}];let r=0,s=0;for(const t of e)for(let e=i.length-1;e>=0;e--){const n=i[e];if(!(t.w>n.w||t.h>n.h)){if(t.x=n.x,t.y=n.y,s=Math.max(s,t.y+t.h),r=Math.max(r,t.x+t.w),t.w===n.w&&t.h===n.h){const t=i.pop();e<i.length&&(i[e]=t)}else t.h===n.h?(n.x+=t.w,n.w-=t.w):t.w===n.w?(n.y+=t.h,n.h-=t.h):(i.push({x:n.x+t.w,y:n.y,w:n.w-t.w,h:t.h}),n.y+=t.h,n.h-=t.h);break}}return{w:r,h:s,fill:t/(r*s)||0}}
vendor: 8,195 bytes, line 2
2cc.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var i=this.readVarint(),r=i>>3,s=this.pos;this.type=7&i,e(r,t,this),this.pos===s&&this.skip(i)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=xc(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=Cc(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=xc(this.buf,this.pos)+4294967296*xc(this.buf,this.pos+4);return this.pos+=8,e},readSFixed64:function(){var e=xc(this.buf,this.pos)+4294967296*Cc(this.buf,this.pos+4);return this.pos+=8,e},readFloat:function(){var e=ac(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=ac(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,i=this.buf;return t=127&(n=i[this.pos++]),n<128?t:(t|=(127&(n=i[this.pos++]))<<7,n<128?t:(t|=(127&(n=i[this.pos++]))<<14,n<128?t:(t|=(127&(n=i[this.pos++]))<<21,n<128?t:function(e,t,n){var i,r,s=n.buf;if(i=(112&(r=s[n.pos++]))>>4,r<128)return dc(e,i,t);if(i|=(127&(r=s[n.pos++]))<<3,r<128)return dc(e,i,t);if(i|=(127&(r=s[n.pos++]))<<10,r<128)return dc(e,i,t);if(i|=(127&(r=s[n.pos++]))<<17,r<128)return dc(e,i,t);if(i|=(127&(r=s[n.pos++]))<<24,r<128)return dc(e,i,t);if(i|=(1&(r=s[n.pos++]))<<31,r<128)return dc(e,i,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=i[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&uc?function(e,t,n){return uc.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){for(var i="",r=t;r<n;){var s,a,o,l=e[r],u=null,c=l>239?4:l>223?3:l>191?2:1;if(r+c>n)break;1===c?l<128&&(u=l):2===c?128==(192&(s=e[r+1]))&&(u=(31&l)<<6|63&s)<=127&&(u=null):3===c?(a=e[r+2],128==(192&(s=e[r+1]))&&128==(192&a)&&((u=(15&l)<<12|(63&s)<<6|63&a)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(a=e[r+2],o=e[r+3],128==(192&(s=e[r+1]))&&128==(192&a)&&128==(192&o)&&((u=(15&l)<<18|(63&s)<<12|(63&a)<<6|63&o)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,i+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),i+=String.fromCharCode(u),r+=c}return i}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==cc.Bytes)return e.push(this.readVarint(t));var n=hc(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==cc.Bytes)return e.push(this.readSVarint());var t=hc(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==cc.Bytes)return e.push(this.readBoolean());var t=hc(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==cc.Bytes)return e.push(this.readFloat());var t=hc(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==cc.Bytes)return e.push(this.readDouble());var t=hc(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==cc.Bytes)return e.push(this.readFixed32());var t=hc(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==cc.Bytes)return e.push(this.readSFixed32());var t=hc(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==cc.Bytes)return e.push(this.readFixed64());var t=hc(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==cc.Bytes)return e.push(this.readSFixed64());var t=hc(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===cc.Varint)for(;this.buf[this.pos++]>127;);else if(t===cc.Bytes)this.pos=this.readVarint()+this.pos;else if(t===cc.Fixed32)this.pos+=4;else{if(t!==cc.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var n=new Uint8Array(t);n.set(this.buf),this.buf=n,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),Ec(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),Ec(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),Ec(this.buf,-1&e,this.pos),Ec(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),Ec(this.buf,-1&e,this.pos),Ec(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var n,i;if(e>=0?(n=e%4294967296|0,i=e/4294967296|0):(i=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,i=i+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,n.buf[n.pos]=127&(e>>>=7)}(n,0,t),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(i,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var i,r,s=0;s<t.length;s++){if((i=t.charCodeAt(s))>55295&&i<57344){if(!r){i>56319||s+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):r=i;continue}if(i<56320){e[n++]=239,e[n++]=191,e[n++]=189,r=i;continue}i=r-55296<<10|i-56320|65536,r=null}else r&&(e[n++]=239,e[n++]=191,e[n++]=189,r=null);i<128?e[n++]=i:(i<2048?e[n++]=i>>6|192:(i<65536?e[n++]=i>>12|224:(e[n++]=i>>18|240,e[n++]=i>>12&63|128),e[n++]=i>>6&63|128),e[n++]=63&i|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&pc(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),oc(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),oc(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n<t;n++)this.buf[this.pos++]=e[n]},writeRawMessage:function(e,t){this.pos++;var n=this.pos;e(t,this);var i=this.pos-n;i>=128&&pc(n,i,this),this.pos=n-1,this.writeVarint(i),this.pos+=i},writeMessage:function(e,t,n){this.writeTag(e,cc.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,fc,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,mc,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,yc,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,Ac,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,gc,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,vc,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,_c,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,bc,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,wc,t)},writeBytesField:function(e,t){this.writeTag(e,cc.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,cc.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,cc.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,cc.Fixed64),this.writeFixed64
vendor: 6,015 bytes, line 2
2(t)},writeSFixed64Field:function(e,t){this.writeTag(e,cc.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,cc.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,cc.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,cc.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,cc.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,cc.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};class Ic{constructor(e,{pixelRatio:t,version:n,stretchX:i,stretchY:r,content:s}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=i,this.stretchY=r,this.content=s,this.version=n}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}}class Mc{constructor(e,t){const n={},i={};this.haveRenderCallbacks=[];const r=[];this.addImages(e,n,r),this.addImages(t,i,r);const{w:s,h:a}=kc(r),o=new Eo({width:s||1,height:a||1});for(const t in e){const i=e[t],r=n[t].paddedRect;Eo.copy(i.data,o,{x:0,y:0},{x:r.x+1,y:r.y+1},i.data)}for(const e in t){const n=t[e],r=i[e].paddedRect,s=r.x+1,a=r.y+1,l=n.data.width,u=n.data.height;Eo.copy(n.data,o,{x:0,y:0},{x:s,y:a},n.data),Eo.copy(n.data,o,{x:0,y:u-1},{x:s,y:a-1},{width:l,height:1}),Eo.copy(n.data,o,{x:0,y:0},{x:s,y:a+u},{width:l,height:1}),Eo.copy(n.data,o,{x:l-1,y:0},{x:s-1,y:a},{width:1,height:u}),Eo.copy(n.data,o,{x:0,y:0},{x:s+l,y:a},{width:1,height:u})}this.image=o,this.iconPositions=n,this.patternPositions=i}addImages(e,t,n){for(const i in e){const r=e[i],s={x:0,y:0,w:r.data.width+2,h:r.data.height+2};n.push(s),t[i]=new Ic(s,r),r.hasRenderCallback&&this.haveRenderCallbacks.push(i)}}patchUpdatedImages(e,t){e.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const n in e.updatedImages)this.patchUpdatedImage(this.iconPositions[n],e.getImage(n),t),this.patchUpdatedImage(this.patternPositions[n],e.getImage(n),t)}patchUpdatedImage(e,t,n){if(!e||!t)return;if(e.version===t.version)return;e.version=t.version;const[i,r]=e.tl;n.update(t.data,void 0,{x:i,y:r})}}Kr("ImagePosition",Ic),Kr("ImageAtlas",Mc);const Pc={horizontal:1,vertical:2,horizontalOnly:3};class Dc{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(e,t){const n=new Dc;return n.scale=e||1,n.fontStack=t,n}static forImage(e){const t=new Dc;return t.imageName=e,t}}class Uc{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,t){const n=new Uc;for(let i=0;i<e.sections.length;i++){const r=e.sections[i];r.image?n.addImageSection(r):n.addTextSection(r,t)}return n}length(){return this.text.length}getSection(e){return this.sections[this.sectionIndex[e]]}getSectionIndex(e){return this.sectionIndex[e]}getCharCode(e){return this.text.charCodeAt(e)}verticalizePunctuation(){this.text=function(e){let t="";for(let n=0;n<e.length;n++){const i=e.charCodeAt(n+1)||null,r=e.charCodeAt(n-1)||null;t+=i&&Ii(i)&&!sc[e[n+1]]||r&&Ii(r)&&!sc[e[n-1]]||!sc[e[n]]?e[n]:sc[e[n]]}return t}(this.text)}trim(){let e=0;for(let t=0;t<this.text.length&&Fc[this.text.charCodeAt(t)];t++)e++;let t=this.text.length;for(let n=this.text.length-1;n>=0&&n>=e&&Fc[this.text.charCodeAt(n)];n--)t--;this.text=this.text.substring(e,t),this.sectionIndex=this.sectionIndex.slice(e,t)}substring(e,t){const n=new Uc;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,t)=>Math.max(e,this.sections[t].scale),0)}addTextSection(e,t){this.text+=e.text,this.sections.push(Dc.forText(e.scale,e.fontStack||t));const n=this.sections.length-1;for(let t=0;t<e.text.length;++t)this.sectionIndex.push(n)}addImageSection(e){const t=e.image?e.image.name:"";if(0===t.length)return void I("Can't add FormattedSection with an empty image.");const n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCharCode(n),this.sections.push(Dc.forImage(t)),this.sectionIndex.push(this.sections.length-1)):I("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Oc(e,t,n,i,r,s,a,o,l,u,c,h,p,d,f,m){const A=Uc.fromFeature(e,r);let g;h===Pc.vertical&&A.verticalizePunctuation();const{processBidirectionalText:y,processStyledBidirectionalText:v}=Qi;if(y&&1===A.sections.length){g=[];const e=y(A.toString(),Qc(A,u,s,t,i,d,f));for(const t of e){const e=new Uc;e.text=t,e.sections=A.sections;for(let n=0;n<t.length;n++)e.sectionIndex.push(0);g.push(e)}}else if(v){g=[];const e=v(A.text,A.sectionIndex,Qc(A,u,s,t,i,d,f));for(const t of e){const e=new Uc;e.text=t[0],e.sectionIndex=t[1],e.sections=A.sections,g.push(e)}}else g=function(e,t){const n=[],i=e.text;let r=0;for(const i of t)n.push(e.substring(r,i)),r=i;return r<i.length&&n.push(e.substring(r,i.length)),n}(A,Qc(A,u,s,t,i,d,f));const b=[],_={positionedLines:b,text:A.toString(),top:c[1],bottom:c[1],left:c[0],right:c[0],writingMode:h,iconsInText:!1,verticalizable:!1};return function(e,t,n,i,r,s,a,o,l,u,c,h){let p=0,d=-17,f=0,m=0;const A="right"===o?1:"left"===o?0:.5;let g=0;for(const a of r){a.trim();const r=a.getMaxScale(),o=24*(r-1),v={positionedGlyphs:[],lineOffset:0};e.positionedLines[g]=v;const b=v.positionedGlyphs;let _=0;if(!a.length()){d+=s,++g;continue}for(let s=0;s<a.length();s++){const f=a.getSection(s),m=a.getSectionIndex(s),A=a.getCharCode(s);let g=0,v=null,w=null,x=null,E=24;const C=!(l===Pc.horizontal||!c&&!ki(A)||c&&(Fc[A]||(y=A,Jr(y)||Zr(y)||ei(y)||_i(y)||Ei(y))));if(f.imageName){const t=i[f.imageName];if(!t)continue;x=f.imageName,e.iconsInText=e.iconsInText||!0,w=t.paddedRect;const n=t.displaySize;
2f.scale=24*f.scale/h,v={width:n[0],height:n[1],left:1,top:-3,advance:C?n[1]:n[0],localGlyph:!1},g=o+(24-n[1]*f.scale),E=v.advance;const s=C?n[0]*f.scale-24*r:n[1]*f.scale-24*r;s>0&&s>_&&(_=s)}else{const e=n[f.fontStack],i=e&&e[A];if(i&&i.rect)w=i.rect,v=i.metrics;else{const e=t[f.fontStack],n=e&&e[A];if(!n)continue;v=n.metrics}g=24*(r-f.scale)}C?(e.verticalizable=!0,b.push({glyph:A,imageName:x,x:p,y:d+g,vertical:C,scale:f.scale,localGlyph:v.localGlyph,fontStack:f.fontStack,sectionIndex:m,metrics:v,rect:w}),p+=E*f.scale+u):(b.push({glyph:A,imageName:x,x:p,y:d+g,vertical:C,scale:f.scale,localGlyph:v.localGlyph,fontStack:f.fontStack,sectionIndex:m,metrics:v,rect:w}),p+=v.advance*f.scale+u)}0!==b.length&&(f=Math.max(p-u,f),jc(b,0,b.length-1,A,_)),p=0;const w=s*r+_;v.lineOffset=Math.max(_,o),d+=w,m=Math.max(w,m),++g}var y;const v=d- -17,{horizontalAlign:b,verticalAlign:_}=Vc(a);(function(e,t,n,i,r,s,a,o,l){const u=(t-n)*r;let c=0;c=s!==a?-o*i- -17:(-i*l+.5)*a;for(const t of e)for(const e of t.positionedGlyphs)e.x+=u,e.y+=c})(e.positionedLines,A,b,_,f,m,s,v,r.length),e.top+=-_*v,e.bottom=e.top+v,e.left+=-b*f,e.right=e.left+f}(_,t,n,i,g,a,o,l,h,u,p,m),!function(e){for(const t of e)if(0!==t.positionedGlyphs.length)return!1;return!0}(b)&&_}const Fc={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Rc={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function Nc(e,t,n,i,r,s){if(t.imageName){const e=i[t.imageName];return e?e.displaySize[0]*t.scale*24/s+r:0}{const i=n[t.fontStack],s=i&&i[e];return s?s.metrics.advance*t.scale+r:0}}function Lc(e,t,n,i){const r=Math.pow(e-t,2);return i?e<t?r/2:2*r:r+Math.abs(n)*n}
vendor: 5,414 bytes, line 2
2function zc(e,t,n){let i=0;return 10===e&&(i-=1e4),n&&(i+=150),40!==e&&65288!==e||(i+=50),41!==t&&65289!==t||(i+=50),i}function Hc(e,t,n,i,r,s){let a=null,o=Lc(t,n,r,s);for(const e of i){const i=Lc(t-e.x,n,r,s)+e.badness;i<=o&&(a=e,o=i)}return{index:e,x:t,priorBreak:a,badness:o}}function Qc(e,t,n,i,r,s,a){if("point"!==s)return[];if(!e)return[];const o=[],l=function(e,t,n,i,r,s){let a=0;for(let n=0;n<e.length();n++){const o=e.getSection(n);a+=Nc(e.getCharCode(n),o,i,r,t,s)}return a/Math.max(1,Math.ceil(a/n))}(e,t,n,i,r,a),u=e.text.indexOf("â")>=0;let c=0;for(let n=0;n<e.length();n++){const s=e.getSection(n),p=e.getCharCode(n);if(Fc[p]||(c+=Nc(p,s,i,r,t,a)),n<e.length()-1){const t=!((h=p)<11904||!(ci(h)||oi(h)||wi(h)||vi(h)||pi(h)||ti(h)||ui(h)||ii(h)||fi(h)||mi(h)||di(h)||Ci(h)||si(h)||ri(h)||ni(h)||hi(h)||ai(h)||bi(h)||gi(h)||Ai(h)));(Rc[p]||t||s.imageName)&&o.push(Hc(n+1,c,l,o,zc(p,e.getCharCode(n+1),t&&u),!1))}}var h;return function e(t){return t?e(t.priorBreak).concat(t.index):[]}(Hc(e.length(),c,l,o,0,!0))}function Vc(e){let t=.5,n=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:t,verticalAlign:n}}function jc(e,t,n,i,r){if(!i&&!r)return;const s=e[n],a=(e[n].x+s.metrics.advance*s.scale)*i;for(let i=t;i<=n;i++)e[i].x-=a,e[i].y+=r}function Gc(e,t,n){const{horizontalAlign:i,verticalAlign:r}=Vc(n),s=t[0]-e.displaySize[0]*i,a=t[1]-e.displaySize[1]*r;return{image:e,top:a,bottom:a+e.displaySize[1],left:s,right:s+e.displaySize[0]}}function Kc(e,t,n,i,r,s){const a=e.image;let o;if(a.content){const e=a.content,t=a.pixelRatio||1;o=[e[0]/t,e[1]/t,a.displaySize[0]-e[2]/t,a.displaySize[1]-e[3]/t]}const l=t.left*s,u=t.right*s;let c,h,p,d;"width"===n||"both"===n?(d=r[0]+l-i[3],h=r[0]+u+i[1]):(d=r[0]+(l+u-a.displaySize[0])/2,h=d+a.displaySize[0]);const f=t.top*s,m=t.bottom*s;return"height"===n||"both"===n?(c=r[1]+f-i[0],p=r[1]+m+i[2]):(c=r[1]+(f+m-a.displaySize[1])/2,p=c+a.displaySize[1]),{image:a,top:c,right:h,bottom:p,left:d,collisionPadding:o}}class qc extends i{constructor(e,t,n,i){super(e,t),this.angle=n,void 0!==i&&(this.segment=i)}clone(){return new qc(this.x,this.y,this.angle,this.segment)}}function $c(e,t,n,i,r){if(void 0===t.segment)return!0;let s=t,a=t.segment+1,o=0;for(;o>-n/2;){if(a--,a<0)return!1;o-=e[a].dist(s),s=e[a]}o+=e[a].dist(e[a+1]),a++;const l=[];let u=0;for(;o<n/2;){const t=e[a],n=e[a+1];if(!n)return!1;let s=e[a-1].angleTo(t)-t.angleTo(n);for(s=Math.abs((s+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:o,angleDelta:s}),u+=s;o-l[0].distance>i;)u-=l.shift().angleDelta;if(u>r)return!1;a++,o+=t.dist(n)}return!0}function Yc(e){let t=0;for(let n=0;n<e.length-1;n++)t+=e[n].dist(e[n+1]);return t}function Wc(e,t,n){return e?.6*t*n:0}function Xc(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function Jc(e,t,n,i,r,s){const a=Wc(n,r,s),o=Xc(n,i)*s;let l=0;const u=Yc(e)/2;for(let n=0;n<e.length-1;n++){const i=e[n],r=e[n+1],s=i.dist(r);if(l+s>u){const c=(u-l)/s,h=Zt(i.x,r.x,c),p=Zt(i.y,r.y,c),d=new qc(h,p,r.angleTo(i),n);return d._round(),!a||$c(e,d,o,a,t)?d:void 0}l+=s}}function Zc(e,t,n,i,r,s,a,o,l){const u=Wc(i,s,a),c=Xc(i,r),h=c*a,p=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-h<t/4&&(t=h+t/4),function e(t,n,i,r,s,a,o,l,u){const c=a/2,h=Yc(t);let p=0,d=n-i,f=[];for(let e=0;e<t.length-1;e++){const n=t[e],o=t[e+1],l=n.dist(o),m=o.angleTo(n);for(;d+i<p+l;){d+=i;const A=(d-p)/l,g=Zt(n.x,o.x,A),y=Zt(n.y,o.y,A);if(g>=0&&g<u&&y>=0&&y<u&&d-c>=0&&d+c<=h){const n=new qc(g,y,m,e);n._round(),r&&!$c(t,n,a,r,s)||f.push(n)}}p+=l}return l||f.length||o||(f=e(t,p/2,i,r,s,a,o,!0,u)),f}(e,p?t/2*o%t:(c/2+2*s)*a*o%t,t,u,n,h,p,!1,l)}function eu(e,t,n,r,s){const a=[];for(let o=0;o<e.length;o++){const l=e[o];let u;for(let e=0;e<l.length-1;e++){let o=l[e],c=l[e+1];o.x<t&&c.x<t||(o.x<t?o=new i(t,o.y+(t-o.x)/(c.x-o.x)*(c.y-o.y))._round():c.x<t&&(c=new i(t,o.y+(t-o.x)/(c.x-o.x)*(c.y-o.y))._round()),o.y<n&&c.y<n||(o.y<n?o=new i(o.x+(n-o.y)/(c.y-o.y)*(c.x-o.x),n)._round():c.y<n&&(c=new i(o.x+(n-o.y)/(c.y-o.y)*(c.x-o.x),n)._round()),o.x>=r&&c.x>=r||(o.x>=r?o=new i(r,o.y+(r-o.x)/(c.x-o.x)*(c.y-o.y))._round():c.x>=r&&(c=new i(r,o.y+(r-o.x)/(c.x-o.x)*(c.y-o.y))._round()),o.y>=s&&c.y>=s||(o.y>=s?o=new i(o.x+(s-o.y)/(c.y-o.y)*(c.x-o.x),s)._round():c.y>=s&&(c=new i(o.x+(s-o.y)/(c.y-o.y)*(c.x-o.x),s)._round()),u&&o.equals(u[u.length-1])||(u=[o],a.push(u)),u.push(c)))))}}return a}Kr("Anchor",qc);var tu=iu,nu=iu,ru=1e20;function iu(e,t,n,i,r,s){this.fontSize=e||24,this.buffer=void 0===t?3:t,this.cutoff=i||.25,this.fontFamily=r||"sans-serif",this.fontWeight=s||"normal",this.radius=n||8;var a=this.size=this.fontSize+2*this.buffer,o=a+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Uint16Array(o),this.middle=Math.round(a/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function su(e,t,n,i,r,s){for(var a=0;a<t;a++)au(e,a,t,n,i,r,s);for(var o=0;o<n;
2o++)au(e,o*t,1,t,i,r,s)}function au(e,t,n,i,r,s,a){var o,l,u,c;for(s[0]=0,a[0]=-ru,a[1]=ru,o=0;o<i;o++)r[o]=e[t+o*n];for(o=1,l=0,u=0;o<i;o++){do{u=(r[o]-r[c=s[l]]+o*o-c*c)/(o-c)/2}while(u<=a[l]&&--l>-1);s[++l]=o,a[l]=u,a[l+1]=ru}for(o=0,l=0;o<i;o++){for(;a[l+1]<o;)l++;e[t+o*n]=r[c=s[l]]+(o-c)*(o-c)}}iu.prototype._draw=function(e,t){var n,i,r,s,a,o,l,u,c=this.ctx.measureText(e),h=c.width,p=2*this.buffer;t&&void 0!==c.actualBoundingBoxLeft?(a=Math.floor(c.actualBoundingBoxAscent)-this.middle,o=Math.max(0,this.middle-Math.ceil(c.actualBoundingBoxAscent)),l=this.buffer,n=(i=Math.min(this.size,Math.ceil(c.actualBoundingBoxRight-c.actualBoundingBoxLeft)))+p,r=(s=Math.min(this.size-o,Math.ceil(c.actualBoundingBoxAscent+c.actualBoundingBoxDescent)))+p):(n=i=this.size,r=s=this.size,a=0,o=l=0),i&&s&&(this.ctx.clearRect(l,o,i,s),this.ctx.fillText(e,this.buffer,this.middle),u=this.ctx.getImageData(l,o,i,s));var d=new Uint8ClampedArray(n*r);return function(e,t,n,i,r,s,a){s.fill(ru,0,t*n),a.fill(0,0,t*n);for(var o=(t-i)/2,l=0;l<r;l++)for(var u=0;u<i;u++){var c=(l+o)*t+u+o,h=e.data[4*(l*i+u)+3]/255;if(1===h)s[c]=0,a[c]=ru;else if(0===h)s[c]=ru,a[c]=0;else{var p=Math.max(0,.5-h),d=Math.max(0,h-.5);s[c]=p*p,a[c]=d*d}}}(u,n,r,i,s,this.gridOuter,this.gridInner),su(this.gridOuter,n,r,this.f,this.v,this.z),su(this.gridInner,n,r,this.f,this.v,this.z),function(e,t,n,i,r,s,a){for(var o=0;o<t*n;o++){var l=Math.sqrt(i[o])-Math.sqrt(r[o]);e[o]=Math.round(255-255*(l/s+a))}}(d,n,r,this.gridOuter,this.gridInner,this.radius,this.cutoff),{data:d,metrics:{width:i,height:s,sdfWidth:n,sdfHeight:r,top:a,left:0,advance:h,fontAscent:c.fontBoundingBoxAscent}}},iu.prototype.draw=function(e){return this._draw(e,!1).data},iu.prototype.drawWithMetrics=function(e){return this._draw(e,!0)},tu.default=nu;const ou={none:0,ideographs:1,all:2};class lu{constructor(e,t,n){this.requestManager=e,this.localGlyphMode=t,this.localFontFamily=n,this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}}}setURL(e){this.url=e}getGlyphs(e,t){const n=[];for(const t in e)for(const i of e[t])n.push({stack:t,id:i});y(n,({stack:e,id:t},n)=>{let i=this.entries[e];i||(i=this.entries[e]={glyphs:{},requests:{},ranges:{}});let r=i.glyphs[t];if(void 0!==r)return void n(null,{stack:e,id:t,glyph:r});if(r=this._tinySDF(i,e,t),r)return i.glyphs[t]=r,void n(null,{stack:e,id:t,glyph:r});const s=Math.floor(t/256);if(256*s>65535)return void n(new Error("glyphs > 65535 not supported"));if(i.ranges[s])return void n(null,{stack:e,id:t,glyph:r});let a=i.requests[s];a||(a=i.requests[s]=[],lu.loadGlyphRange(e,s,this.url,this.requestManager,(e,t)=>{if(t){for(const e in t)this._doesCharSupportLocalGlyph(+e)||(i.glyphs[+e]=t[+e]);i.ranges[s]=!0}for(const n of a)n(e,t);delete i.requests[s]})),a.push((i,r)=>{i?n(i):r&&n(null,{stack:e,id:t,glyph:r[t]||null})})},(e,n)=>{if(e)t(e);else if(n){const e={};for(const{stack:t,id:i,glyph:r}of n)(e[t]||(e[t]={}))[i]=r&&{id:r.id,bitmap:r.bitmap.clone(),metrics:r.metrics};t(null,e)}})}_doesCharSupportLocalGlyph(e){return this.localGlyphMode!==ou.none&&(this.localGlyphMode===ou.all?!!this.localFontFamily:!!this.localFontFamily&&(mi(e)||yi(e)||si(e)||ai(e)))}_tinySDF(e,t,n){const i=this.localFontFamily;if(!i)return;if(!this._doesCharSupportLocalGlyph(n))return;let r=e.tinySDF;if(!r){let n="400";/bold/i.test(t)?n="900":/medium/i.test(t)?n="500":/light/i.test(t)&&(n="200"),r=e.tinySDF=new lu.TinySDF(48,6,16,.25,i,n)}if(this.localGlyphs[r.fontWeight][n])return this.localGlyphs[r.fontWeight][n];const{data:s,metrics:a}=r.drawWithMetrics(String.fromCharCode(n)),{fontAscent:o,sdfWidth:l,sdfHeight:u,width:c,height:h,left:p,top:d,advance:f}=a,m=(o?o/2:17)-9;return this.localGlyphs[r.fontWeight][n]={id:n,bitmap:new xo({width:l,height:u},s),metrics:{width:c/2,height:h/2,left:p/2,top:d/2-m,advance:f/2,localGlyph:!0}}}}function cu(e,t,n,r){const s=[],a=e.image,o=a.pixelRatio,l=a.paddedRect.w-2,u=a.paddedRect.h-2,c=e.right-e.left,h=e.bottom-e.top,p=a.stretchX||[[0,l]],d=a.stretchY||[[0,u]],f=(e,t)=>e+t[1]-t[0],m=p.reduce(f,0),A=d.reduce(f,0),g=l-m,y=u-A;let v=0,b=m,_=0,w=A,x=0,E=g,C=0,S=y;if(a.content&&r){const e=a.content;v=uu(p,0,e[0]),_=uu(d,0,e[1]),b=uu(p,e[0],e[2]),w=uu(d,e[1],e[3]),x=e[0]-v,C=e[1]-_,E=e[2]-e[0]-b,S=e[3]-e[1]-w}const T=(r,s,l,u)=>{const p=du(r.stretch-v,b,c,e.left),d=pu(r.fixed-x,E,r.stretch,m),f=du(s.stretch-_,w,h,e.top),g=pu(s.fixed-C,S,s.stretch,A),y=du(l.stretch-v,b,c,e.left),T=pu(l.fixed-x,E,l.stretch,m),B=du(u.stretch-_,w,h,e.top),k=pu(u.fixed-C,S,u.stretch,A),I=new i(p,f),M=new i(y,f),P=new i(y,B),D=new i(p,B),U=new i(d/o,g/o),O=new i(T/o,
vendor: 5,700 bytes, line 2
2k/o),F=t*Math.PI/180;if(F){const e=Math.sin(F),t=Math.cos(F),n=[t,-e,e,t];I._matMult(n),M._matMult(n),D._matMult(n),P._matMult(n)}const R=r.stretch+r.fixed,N=s.stretch+s.fixed;return{tl:I,tr:M,bl:D,br:P,tex:{x:a.paddedRect.x+1+R,y:a.paddedRect.y+1+N,w:l.stretch+l.fixed-R,h:u.stretch+u.fixed-N},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:U,pixelOffsetBR:O,minFontScaleX:E/o/c,minFontScaleY:S/o/h,isSDF:n}};if(r&&(a.stretchX||a.stretchY)){const e=hu(p,g,m),t=hu(d,y,A);for(let n=0;n<e.length-1;n++){const i=e[n],r=e[n+1];for(let e=0;e<t.length-1;e++)s.push(T(i,t[e],r,t[e+1]))}}else s.push(T({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:u+1}));return s}function uu(e,t,n){let i=0;for(const r of e)i+=Math.max(t,Math.min(n,r[1]))-Math.max(t,Math.min(n,r[0]));return i}function hu(e,t,n){const i=[{fixed:-1,stretch:0}];for(const[t,n]of e){const e=i[i.length-1];i.push({fixed:t-e.stretch,stretch:e.stretch}),i.push({fixed:t-e.stretch,stretch:e.stretch+(n-t)})}return i.push({fixed:t+1,stretch:n}),i}function du(e,t,n,i){return e/t*n+i}function pu(e,t,n,i){return e-t*n/i}lu.loadGlyphRange=function(e,t,n,i,r){const s=256*t,a=s+255,o=i.transformRequest(i.normalizeGlyphsURL(n).replace("{fontstack}",e).replace("{range}",`${s}-${a}`),ye.Glyphs);we(o,(e,t)=>{if(e)r(e);else if(t){const e={};for(const n of function(e){return new lc(e).readFields(Sc,[])}(t))e[n.id]=n;r(null,e)}})},lu.TinySDF=tu;class fu{constructor(e=[],t=mu){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:n}=this,i=t[e];for(;e>0;){const r=e-1>>1,s=t[r];if(n(i,s)>=0)break;t[e]=s,e=r}t[e]=i}_down(e){const{data:t,compare:n}=this,i=this.length>>1,r=t[e];for(;e<i;){let i=1+(e<<1),s=t[i];const a=i+1;if(a<this.length&&n(t[a],s)<0&&(i=a,s=t[a]),n(s,r)>=0)break;t[e]=s,e=i}t[e]=r}}function mu(e,t){return e<t?-1:e>t?1:0}function Au(e,t=1,n=!1){let r=1/0,s=1/0,a=-1/0,o=-1/0;const l=e[0];for(let e=0;e<l.length;e++){const t=l[e];(!e||t.x<r)&&(r=t.x),(!e||t.y<s)&&(s=t.y),(!e||t.x>a)&&(a=t.x),(!e||t.y>o)&&(o=t.y)}const u=Math.min(a-r,o-s);let c=u/2;const h=new fu([],gu);if(0===u)return new i(r,s);for(let t=r;t<a;t+=u)for(let n=s;n<o;n+=u)h.push(new yu(t+c,n+c,c,e));let p=function(e){let t=0,n=0,i=0;const r=e[0];for(let e=0,s=r.length,a=s-1;e<s;a=e++){const s=r[e],o=r[a],l=s.x*o.y-o.x*s.y;n+=(s.x+o.x)*l,i+=(s.y+o.y)*l,t+=3*l}return new yu(n/t,i/t,0,e)}(e),d=h.length;for(;h.length;){const i=h.pop();(i.d>p.d||!p.d)&&(p=i,n&&console.log("found best %d after %d probes",Math.round(1e4*i.d)/1e4,d)),i.max-p.d<=t||(c=i.h/2,h.push(new yu(i.p.x-c,i.p.y-c,c,e)),h.push(new yu(i.p.x+c,i.p.y-c,c,e)),h.push(new yu(i.p.x-c,i.p.y+c,c,e)),h.push(new yu(i.p.x+c,i.p.y+c,c,e)),d+=4)}return n&&(console.log("num probes: "+d),console.log("best distance: "+p.d)),p.p}function gu(e,t){return t.max-e.max}function yu(e,t,n,r){this.p=new i(e,t),this.h=n,this.d=function(e,t){let n=!1,i=1/0;for(let r=0;r<t.length;r++){const s=t[r];for(let t=0,r=s.length,a=r-1;t<r;a=t++){const r=s[t],o=s[a];r.y>e.y!=o.y>e.y&&e.x<(o.x-r.x)*(e.y-r.y)/(o.y-r.y)+r.x&&(n=!n),i=Math.min(i,Ia(e,r,o))}}return(n?1:-1)*Math.sqrt(i)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}const vu=Number.POSITIVE_INFINITY;function _u(e,t){return t[1]!==vu?function(e,t,n){let i=0,r=0;switch(t=Math.abs(t),n=Math.abs(n),e){case"top-right":case"top-left":case"top":r=n-7;break;case"bottom-right":case"bottom-left":case"bottom":r=7-n}switch(e){case"top-right":case"bottom-right":case"right":i=-t;break;case"top-left":case"bottom-left":case"left":i=t}return[i,r]}(e,t[0],t[1]):function(e,t){let n=0,i=0;t<0&&(t=0);const r=t/Math.sqrt(2);switch(e){case"top-right":case"top-left":i=r-7;break;case"bottom-right":case"bottom-left":i=7-r;break;case"bottom":i=7-t;break;case"top":i=t-7}switch(e){case"top-right":case"bottom-right":n=-r;break;case"top-left":case"bottom-left":n=r;break;case"left":n=t;break;case"right":n=-t}return[n,i]}(e,t[0])}function bu(e,t,n,i,r,s,a,o){e.createArrays(),e.tilePixelRatio=8192/(512*e.overscaling),e.compareText={},e.iconsNeedLinear=!1;const l=e.layers[0].layout,u=e.layers[0]._unevaluatedLayout._values,c={};if("composite"===e.textSizeData.kind){const{minZoom:t,maxZoom:n}=e.textSizeData;c.compositeTextSizes=[u["text-size"].possiblyEvaluate(new Vi(t),a),u["text-size"].possiblyEvaluate(new Vi(n),a)]}if("composite"===e.iconSizeData.kind){const{minZoom:t,maxZoom:n}=e.iconSizeData;c.compositeIconSizes=[u["icon-size"].possiblyEvaluate(new Vi(t),a),u["icon-size"].possiblyEvaluate(new Vi(n),a)]}c.layoutTextSize=u["text-size"].possiblyEvaluate(new Vi(o+1),a),c.layoutIconSize=u["icon-size"].possiblyEvaluate(new Vi(o+1),a),c.textMaxSize=u["text-size"].possiblyEvaluate(new Vi(18),a);const h=24*l.get("text-line-height"),p="map"===l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),d=l.get("text-keep-upright"),f=l.get("text-size");for(const s of e.features){const o=l.get("text-font").evaluate(s,{},a).join(","),u=f.evaluate(s,{},a),m=c.layoutTextSize.evaluate(s,{},a),A=(c.layoutIconSize.evaluate(s,{},a),{horizontal:{},vertical:void 0}),g=s.text;let y,v=[0,0];if(g){const i=g.toString(),c=24*l.get("text-letter-spacing").evaluate(s,{},a),f=Ti(i)?c:0,y=l.get("text-anchor").evaluate(s,{},a),b=l.get("text-variable-anchor");if(!b){const e=l.get("text-radial-offset").evaluate(s,{},a);v=e?_u(y,[24*e,vu]):l.get("text-offset").evaluate(s,{},a).map(e=>24*e)}
2let _=p?"center":l.get("text-justify").evaluate(s,{},a);const w=l.get("symbol-placement"),x="point"===w?24*l.get("text-max-width").evaluate(s,{},a):0,E=()=>{e.allowVerticalPlacement&&Si(i)&&(A.vertical=Oc(g,t,n,r,o,x,h,y,"left",f,v,Pc.vertical,!0,w,m,u))};if(!p&&b){const e="auto"===_?b.map(e=>wu(e)):[_];let i=!1;for(let s=0;s<e.length;s++){const a=e[s];if(!A.horizontal[a])if(i)A.horizontal[a]=A.horizontal[0];else{const e=Oc(g,t,n,r,o,x,h,"center",a,f,v,Pc.horizontal,!1,w,m,u);e&&(A.horizontal[a]=e,i=1===e.positionedLines.length)}}E()}else{"auto"===_&&(_=wu(y));const e=Oc(g,t,n,r,o,x,h,y,_,f,v,Pc.horizontal,!1,w,m,u);e&&(A.horizontal[_]=e),E(),Si(i)&&p&&d&&(A.vertical=Oc(g,t,n,r,o,x,h,y,_,f,v,Pc.vertical,!1,w,m,u))}}let b=!1;if(s.icon&&s.icon.name){const t=i[s.icon.name];t&&(y=Gc(r[s.icon.name],l.get("icon-offset").evaluate(s,{},a),l.get("icon-anchor").evaluate(s,{},a)),b=t.sdf,void 0===e.sdfIcons?e.sdfIcons=t.sdf:e.sdfIcons!==t.sdf&&I("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(t.pixelRatio!==e.pixelRatio||0!==l.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0))}const _=Cu(A.horizontal)||A.vertical;e.iconsInText=!!_&&_.iconsInText,(_||y)&&xu(e,s,A,y,i,c,m,0,v,b,a)}s&&e.generateCollisionDebugBuffers(o,e.collisionBoxArray)}function wu(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function xu(e,t,n,i,r,s,a,o,l,u,c){let p=s.textMaxSize.evaluate(t,{},c);void 0===p&&(p=a);const d=e.layers[0].layout,f=d.get("icon-offset").evaluate(t,{},c),m=Cu(n.horizontal),A=a/24,g=e.tilePixelRatio*A,y=e.tilePixelRatio*p/24,v=e.tilePixelRatio*d.get("symbol-spacing"),b=d.get("text-padding")*e.tilePixelRatio,_=d.get("icon-padding")*e.tilePixelRatio,w=h(d.get("text-max-angle")),x="map"===d.get("text-rotation-alignment")&&"point"!==d.get("symbol-placement"),E="map"===d.get("icon-rotation-alignment")&&"point"!==d.get("symbol-placement"),C=d.get("symbol-placement"),S=v/2,T=d.get("icon-text-fit");let B;i&&"none"!==T&&(e.allowVerticalPlacement&&n.vertical&&(B=Kc(i,n.vertical,T,d.get("icon-text-fit-padding"),f,A)),m&&(i=Kc(i,m,T,d.get("icon-text-fit-padding"),f,A)));const k=(o,h)=>{h.x<0||h.x>=8192||h.y<0||h.y>=8192||function(e,t,n,i,r,s,a,o,l,u,c,h,p,d,f,m,A,g,y,v,b,_,w,x,E){const C=e.addToLineVertexArray(t,n);let S,T,B,k,M,P,D,U=0,O=0,F=0,R=0,N=-1,L=-1;const z={};let H=Ks(""),q=0,Q=0;if(void 0===o._unevaluatedLayout.getValue("text-radial-offset")?[q,Q]=o.layout.get("text-offset").evaluate(b,{},x).map(e=>24*e):(q=24*o.layout.get("text-radial-offset").evaluate(b,{},x),Q=vu),e.allowVerticalPlacement&&i.vertical){const e=i.vertical;if(f)P=Tu(e),a&&(D=Tu(a));else{const n=o.layout.get("text-rotate").evaluate(b,{},x)+90;B=Su(l,t,u,c,h,e,0,d,n),a&&(k=Su(l,t,u,c,h,a,0,g,n))}}if(r){const n=o.layout.get("icon-rotate").evaluate(b,{},x),i="none"!==o.layout.get("icon-text-fit"),s=cu(r,n,w,i),p=a?cu(a,n,w,i):void 0;T=Su(l,t,u,c,h,r,0,g,n),U=4*s.length;const d=e.iconSizeData;let f=null;"source"===d.kind?(f=[128*o.layout.get("icon-size").evaluate(b,{},x)],f[0]>32640&&I(e.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".')):"composite"===d.kind&&(f=[128*_.compositeIconSizes[0].evaluate(b,{},x),128*_.compositeIconSizes[1].evaluate(b,{},x)],(f[0]>32640||f[1]>32640)&&I(e.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".')),e.addSymbols(e.icon,s,f,v,y,b,!1,t,C.lineStartIndex,C.lineLength,-1,x),N=e.icon.placedSymbolArray.length-1,p&&(O=4*p.length,e.addSymbols(e.icon,p,f,v,y,b,Pc.vertical,t,C.lineStartIndex,C.lineLength,-1,x),L=e.icon.placedSymbolArray.length-1)}for(const n in i.horizontal){const r=i.horizontal[n];S||(H=Ks(r.text),f?M=Tu(r):S=Su(l,t,u,c,h,r,0,d,o.layout.get("text-rotate").evaluate(b,{},x)));const a=1===r.positionedLines.length;if(F+=Eu(e,t,r,s,o,f,b,m,C,i.vertical?Pc.horizontal:Pc.horizontalOnly,a?Object.keys(i.horizontal):[n],z,N,_,x),a)break}i.vertical&&(R+=Eu(e,t,i.vertical,s,o,f,b,m,C,Pc.vertical,["vertical"],z,L,_,x));let V=-1;const j=(e,t)=>e?Math.max(e,t):t;V=j(M,V),V=j(P,V),V=j(D,V);const G=V>-1?1:0;G&&(V*=E/24),e.glyphOffsetArray.length>=Fu.MAX_GLYPHS&&I("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==b.sortKey&&e.addToSortKey
2Ranges(e.symbolInstances.length,b.sortKey),e.symbolInstances.emplaceBack(t.x,t.y,z.right>=0?z.right:-1,z.center>=0?z.center:-1,z.left>=0?z.left:-1,z.vertical||-1,N,L,H,void 0!==S?S:e.collisionBoxArray.length,void 0!==S?S+1:e.collisionBoxArray.length,void 0!==B?B:e.collisionBoxArray.length,void 0!==B?B+1:e.collisionBoxArray.length,void 0!==T?T:e.collisionBoxArray.length,void 0!==T?T+1:e.collisionBoxArray.length,k||e.collisionBoxArray.length,k?k+1:e.collisionBoxArray.length,u,F,R,U,O,G,0,p,q,Q,V)}(e,h,o,n,i,r,B,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,g,b,x,l,0,_,E,f,t,s,u,c,a)};if("line"===C)for(const r of eu(t.geometry,0,0,8192,8192)){const t=Zc(r,v,w,n.vertical||m,i,24,y,e.overscaling,8192);for(const n of t){const t=m;t&&Bu(e,t.text,S,n)||k(r,n)}}else if("line-center"===C){for(const e of t.geometry)if(e.length>1){const t=Jc(e,w,n.vertical||m,i,24,y);t&&k(e,t)}}else if("Polygon"===t.type)for(const e of ll(t.geometry,0)){const t=Au(e,16);k(e[0],new qc(t.x,t.y,0))}else if("LineString"===t.type)for(const e of t.geometry)k(e,new qc(e[0].x,e[0].y,0));else if("Point"===t.type)for(const e of t.geometry)for(const t of e)k([t],new qc(t.x,t.y,0))}function Eu(e,t,n,r,s,a,o,l,u,c,h,p,d,f,m){const A=function(e,t,n,r,s,a,o,l){const u=r.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,c=[];for(const e of t.positionedLines)for(const r of e.positionedGlyphs){if(!r.rect)continue;const a=r.rect||{};let h=4,p=!0,d=1,f=0;const m=(s||l)&&r.vertical,A=r.metrics.advance*r.scale/2;if(l&&t.verticalizable){const t=24*(r.scale-1),n=(24-r.metrics.width*r.scale)/2;f=e.lineOffset/2-(r.imageName?-n:t)}if(r.imageName){const e=o[r.imageName];p=e.sdf,d=e.pixelRatio,h=1/d}const g=s?[r.x+A,r.y]:[0,0];let y=s?[0,0]:[r.x+A+n[0],r.y+n[1]-f],v=[0,0];m&&(v=y,y=[0,0]);const b=(r.metrics.left-h)*r.scale-A+y[0],_=(-r.metrics.top-h)*r.scale+y[1],w=b+a.w*r.scale/(d*(r.localGlyph?2:1)),x=_+a.h*r.scale/(d*(r.localGlyph?2:1)),E=new i(b,_),C=new i(w,_),S=new i(b,x),T=new i(w,x);if(m){const e=new i(-A,A- -17),t=-Math.PI/2,n=12-A,s=new i(22-n,-(r.imageName?n:0)),a=new i(...v);E._rotateAround(t,e)._add(s)._add(a),C._rotateAround(t,e)._add(s)._add(a),S._rotateAround(t,e)._add(s)._add(a),T._rotateAround(t,e)._add(s)._add(a)}if(u){const e=Math.sin(u),t=Math.cos(u),n=[t,-e,e,t];E._matMult(n),C._matMult(n),S._matMult(n),T._matMult(n)}const B=new i(0,0),k=new i(0,0);c.push({tl:E,tr:C,bl:S,br:T,tex:a,writingMode:t.writingMode,glyphOffset:g,sectionIndex:r.sectionIndex,isSDF:p,pixelOffsetTL:B,pixelOffsetBR:k,minFontScaleX:0,minFontScaleY:0})}return c}(0,n,l,s,a,o,r,e.allowVerticalPlacement),g=e.textSizeData;let y=null;"source"===g.kind?(y=[128*s.layout.get("text-size").evaluate(o,{},m)],y[0]>32640&&I(e.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".')):"composite"===g.kind&&(y=[128*f.compositeTextSizes[0].evaluate(o,{},m),128*f.compositeTextSizes[1].evaluate(o,{},m)],(y[0]>32640||y[1]>32640)&&I(e.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".')),e.addSymbols(e.text,A,y,l,a,o,c,t,u.lineStartIndex,u.lineLength,d,m);for(const t of h)p[t]=e.text.placedSymbolArray.length-1;return 4*A.length}function Cu(e){for(const t in e)return e[t];return null}function Su(e,t,n,r,s,a,o,l,u){let c=a.top,p=a.bottom,d=a.left,f=a.right;const m=a.collisionPadding;if(m&&(d-=m[0],c-=m[1],f+=m[2],p+=m[3]),u){const e=new i(d,c),t=new i(f,c),n=new i(d,p),r=new i(f,p),s=h(u);e._rotate(s),t._rotate(s),n._rotate(s),r._rotate(s),d=Math.min(e.x,t.x,n.x,r.x),f=Math.max(e.x,t.x,n.x,r.x),c=Math.min(e.y,t.y,n.y,r.y),p=Math.max(e.y,t.y,n.y,r.y)}return e.emplaceBack(t.x,t.y,d,c,f,p,l,n,r,s),e.length-1}function Tu(e){e.collisionPadding&&(e.top-=e.collisionPadding[1],e.bottom+=e.collisionPadding[3]);const t=e.bottom-e.top;return t>0?Math.max(10,t):null}function Bu(e,t,n,i){const r=e.compareText;if(t in r){const e=r[t];for(let t=e.length-1;t>=0;t--)if(i.dist(e[t])<n)return!0}else r[t]=[];return r[t].push(i),!1}const ku=Cl.VectorTileFeature.types,Iu=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Mu(e,t,n,i,r,s,a,o,l,u,c,h,p){const d=o?Math.min(32640,Math.round(o[0])):0,f=o?Math.min(32640,Math.round(o[1])):0;e.emplaceBack(t,n,Math.round(32*i),Math.round(32*r),s,a,(d<<1)+(l?1:0),f,16*u,16*c,256*h,256*p)}function Pu(e,t,n){e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n)}function Du(e){for(const t of e.sections)if(Di(t.text))return!0;return!1}class Uu{constructor(e){this.layoutVertexArray=new ms,this.indexArray=new ws,this.programConfigurations=e,this.segments=new Aa,this.dynamicLayoutVertexArray=new As,this.opacityVertexArray=new gs,this.placedSymbolArray=new Us}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(e,t,n,i){this.isEmpty()||(n&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,$l.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,Yl.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,Iu,!0),this.opacityVertexBuffer.itemSize=1),(n||i)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}}Kr("SymbolBuffers",Uu);class Ou{constructor(e,t,n){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new n,this.segments=new Aa,this.collisionVertexArray=new bs,this.collisionVertexArrayExt=new As}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,Wl.members,!0),this.collisionVertexBufferExt=e.createVertexBuffer(this.collisionVertexArrayExt,Xl.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.de
vendor: 4,110 bytes, line 2
2stroy())}}Kr("CollisionBuffers",Ou);class Fu{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Va([]),this.placementViewportMatrix=Va([]);const t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=ec(this.zoom,t["text-size"]),this.iconSizeData=ec(this.zoom,t["icon-size"]);const n=this.layers[0].layout,i=n.get("symbol-sort-key"),r=n.get("symbol-z-order");this.canOverlap=n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==r&&void 0!==i.constantOr(1),this.sortFeaturesByY=("viewport-y"===r||"auto"===r&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map(e=>Pc[e])),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.sourceID=e.sourceID}createArrays(){this.text=new Uu(new ua(this.layers,this.zoom,e=>/^text/.test(e))),this.icon=new Uu(new ua(this.layers,this.zoom,e=>/^icon/.test(e))),this.glyphOffsetArray=new Rs,this.lineVertexArray=new Ns,this.symbolInstances=new Fs}calculateGlyphDependencies(e,t,n,i,r){for(let s=0;s<e.length;s++)if(t[e.charCodeAt(s)]=!0,(n||i)&&r){const n=sc[e.charAt(s)];n&&(t[n.charCodeAt(0)]=!0)}}populate(e,t,n){const i=this.layers[0],r=i.layout,s=r.get("text-font"),a=r.get("text-field"),o=r.get("icon-image"),l=("constant"!==a.value.kind||a.value.value instanceof ht&&!a.value.value.isEmpty()||a.value.value.toString().length>0)&&("constant"!==s.value.kind||s.value.value.length>0),u="constant"!==o.value.kind||!!o.value.value||Object.keys(o.parameters).length>0,c=r.get("symbol-sort-key");if(this.features=[],!l&&!u)return;const h=t.iconDependencies,p=t.glyphDependencies,d=t.availableImages,f=new Vi(this.zoom);for(const{feature:t,id:a,index:o,sourceLayerIndex:m}of e){const e=i._featureFilter.needGeometry,A=_a(t,e);if(!i._featureFilter.filter(f,A,n))continue;let g,y;if(e||(A.geometry=va(t)),l){const e=i.getValueAndResolveTokens("text-field",A,n,d),t=ht.factory(e);Du(t)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===zi()||this.hasRTLText&&Qi.isParsed())&&(g=ic(t,i,A))}if(u){const e=i.getValueAndResolveTokens("icon-image",A,n,d);y=e instanceof pt?e:pt.fromString(e)}if(!g&&!y)continue;const v=this.sortFeaturesByKey?c.evaluate(A,{},n):void 0;if(this.features.push({id:a,text:g,icon:y,index:o,sourceLayerIndex:m,geometry:A.geometry,properties:t.properties,type:ku[t.type],sortKey:v}),y&&(h[y.name]=!0),g){const e=s.evaluate(A,{},n).join(","),t="map"===r.get("text-rotation-alignment")&&"point"!==r.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(Pc.vertical)>=0;for(const n of g.sections)if(n.image)h[n.image.name]=!0;else{const i=Si(g.toString()),r=n.fontStack||e,s=p[r]=p[r]||{};this.calculateGlyphDependencies(n.text,s,t,this.allowVerticalPlacement,i)}}}"line"===r.get("symbol-placement")&&(this.features=function(e){const t={},n={},i=[];let r=0;function s(t){i.push(e[t]),r++}function a(e,t,r){const s=n[e];return delete n[e],n[t]=s,i[s].geometry[0].pop(),i[s].geometry[0]=i[s].geometry[0].concat(r[0]),s}function o(e,n,r){const s=t[n];return delete t[n],t[e]=s,i[s].geometry[0].shift(),i[s].geometry[0]=r[0].concat(i[s].geometry[0]),s}function l(e,t,n){const i=n?t[0][t[0].length-1]:t[0][0];return`${e}:${i.x}:${i.y}`}for(let u=0;u<e.length;u++){const c=e[u],h=c.geometry,p=c.text?c.text.toString():null;if(!p){s(u);continue}const d=l(p,h),f=l(p,h,!0);if(d in n&&f in t&&n[d]!==t[f]){const e=o(d,f,h),r=a(d,f,i[e].geometry);delete t[d],delete n[f],n[l(p,i[r].geometry,!0)]=r,i[e].geometry=null}else d in n?a(d,f,h):f in t?o(d,f,h):(s(u),t[d]=r-1,n[f]=r-1)}return i.filter(e=>e.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((e,t)=>
vendor: 19,402 bytes, line 2
2e.sortKey-t.sortKey)}update(e,t,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,n),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,n))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){const n=this.lineVertexArray.length;if(void 0!==e.segment){let n=e.dist(t[e.segment+1]),i=e.dist(t[e.segment]);const r={};for(let i=e.segment+1;i<t.length;i++)r[i]={x:t[i].x,y:t[i].y,tileUnitDistanceFromAnchor:n},i<t.length-1&&(n+=t[i+1].dist(t[i]));for(let n=e.segment||0;n>=0;n--)r[n]={x:t[n].x,y:t[n].y,tileUnitDistanceFromAnchor:i},n>0&&(i+=t[n-1].dist(t[n]));for(let e=0;e<t.length;e++){const t=r[e];this.lineVertexArray.emplaceBack(t.x,t.y,t.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}}addSymbols(e,t,n,i,r,s,a,o,l,u,c,h){const p=e.indexArray,d=e.layoutVertexArray,f=e.segments.prepareSegment(4*t.length,d,p,this.canOverlap?s.sortKey:void 0),m=this.glyphOffsetArray.length,A=f.vertexLength,g=this.allowVerticalPlacement&&a===Pc.vertical?Math.PI/2:0,y=s.text&&s.text.sections;for(let i=0;i<t.length;i++){const{tl:r,tr:a,bl:l,br:u,tex:c,pixelOffsetTL:m,pixelOffsetBR:A,minFontScaleX:v,minFontScaleY:b,glyphOffset:_,isSDF:w,sectionIndex:x}=t[i],E=f.vertexLength,C=_[1];Mu(d,o.x,o.y,r.x,C+r.y,c.x,c.y,n,w,m.x,m.y,v,b),Mu(d,o.x,o.y,a.x,C+a.y,c.x+c.w,c.y,n,w,A.x,m.y,v,b),Mu(d,o.x,o.y,l.x,C+l.y,c.x,c.y+c.h,n,w,m.x,A.y,v,b),Mu(d,o.x,o.y,u.x,C+u.y,c.x+c.w,c.y+c.h,n,w,A.x,A.y,v,b),Pu(e.dynamicLayoutVertexArray,o,g),p.emplaceBack(E,E+1,E+2),p.emplaceBack(E+1,E+2,E+3),f.vertexLength+=4,f.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(_[0]),i!==t.length-1&&x===t[i+1].sectionIndex||e.programConfigurations.populatePaintArrays(d.length,s,s.index,{},h,y&&y[x])}e.placedSymbolArray.emplaceBack(o.x,o.y,m,this.glyphOffsetArray.length-m,A,l,u,o.segment,n?n[0]:0,n?n[1]:0,i[0],i[1],a,0,!1,0,c)}_commitLayoutVertex(e,t,n,i,r){e.emplaceBack(t.x,t.y,n,i,Math.round(r.x),Math.round(r.y))}_addCollisionDebugVertices(e,t,n,r,s){const a=n.segments.prepareSegment(4,n.layoutVertexArray,n.indexArray),o=a.vertexLength,l=s.anchorX,u=s.anchorY;for(let e=0;e<4;e++)n.collisionVertexArray.emplaceBack(0,0,0,0);n.collisionVertexArrayExt.emplaceBack(t,-e.padding,-e.padding),n.collisionVertexArrayExt.emplaceBack(t,e.padding,-e.padding),n.collisionVertexArrayExt.emplaceBack(t,e.padding,e.padding),n.collisionVertexArrayExt.emplaceBack(t,-e.padding,e.padding),this._commitLayoutVertex(n.layoutVertexArray,r,l,u,new i(e.x1,e.y1)),this._commitLayoutVertex(n.layoutVertexArray,r,l,u,new i(e.x2,e.y1)),this._commitLayoutVertex(n.layoutVertexArray,r,l,u,new i(e.x2,e.y2)),this._commitLayoutVertex(n.layoutVertexArray,r,l,u,new i(e.x1,e.y2)),a.vertexLength+=4;const c=n.indexArray;c.emplaceBack(o,o+1),c.emplaceBack(o+1,o+2),c.emplaceBack(o+2,o+3),c.emplaceBack(o+3,o),a.primitiveLength+=4}_addTextDebugCollisionBoxes(e,t,n,i,r,s){for(let a=i;a<r;a++){const i=n.get(a),r=this.getSymbolInstanceTextSize(e,s,t,a);this._addCollisionDebugVertices(i,r,this.textCollisionBox,i.anchorPoint,s)}}_addIconDebugCollisionBoxes(e,t,n,i,r,s){for(let a=i;a<r;a++){const i=n.get(a),r=this.getSymbolInstanceIconSize(e,t,a);this._addCollisionDebugVertices(i,r,this.iconCollisionBox,i.anchorPoint,s)}}generateCollisionDebugBuffers(e,t){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Ou(vs,Jl.members,Bs),this.iconCollisionBox=new Ou(vs,Jl.members,Bs);const n=nc(this.iconSizeData,e),i=nc(this.textSizeData,e);for(let r=0;r<this.symbolInstances.length;r++){const s=this.symbolInstances.get(r);this._addTextDebugCollisionBoxes(i,e,t,s.textBoxStartIndex,s.textBoxEndIndex,s),this._addTextDebugCollisionBoxes(i,e,t,s.verticalTextBoxStartIndex,s.verticalTextBoxEndIndex,s),this._addIconDebugCollisionBoxes(n,e,t,s.iconBoxStartIndex,s.iconBoxEndIndex,s),this._addIconDebugCollisionBoxes(n,e,t,s.verticalIconBoxStartIndex,s.verticalIconBoxEndIndex,s)}}getSymbolInstanceTextSize(e,t,n,i){const r=this.text.placedSymbolArray.get(t.rightJustifiedTextSymbolIndex>=0?t.rightJustifiedTextSymbolIndex:t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.leftJustifiedTextSymbolIndex>=0?t.leftJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex>=0?t.verticalPlacedTextSymbolIndex:i),s=tc(this.textSizeData,e,r)/24;return this.tilePixelRatio*s}getSymbolInstanceIconSize(e,t,n){const i=this.icon.placedSymbolArray.get(n),r=tc(this.iconSizeData,e,i);return this.tilePixelRatio*r}_commitDebugCollisionVertexUpdate(e,t,n){e.emplaceBack(t,-n,-n),e.emplaceBack(t,n,-n),e.emplaceBack(t,n,n),e.emplaceBack(t,-n,n)}_updateTextDebugCollisionBoxes(e,t,n,i,r,s){for(let a=i;a<r;a++){const i=n.get(a),r=this.getSymbolInstanceTextSize(e,s,t,a);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,r,i.padding)}}_updateIconDebugCollisionBoxes(e,t,n,i,r){for(let s=i;s<r;s++){const i=n.get(s),r=this.getSymbolInstanceIconSize(e,t,s);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,r,i.padding)}}updateCollisionDebugBuffers(e,t){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const n=nc(this.iconSizeData,e),i=nc(this.textSizeData,e);for(let r=0;r<this.symbolInstances.length;r++){const s=this.symbolInstances.get(r);this._updateTextDebugCollisionBoxes(i,e,t,s.textBoxStartIndex,s.textBoxEndIndex,s),this._updateTextDebugCollisionBoxes(i,e,t,s.verticalTextBoxStartIndex,s.verticalTextBoxEndIndex,s),this._updateIconDebugCollisionBoxes(n,e,t,s.iconBoxStartIndex,s.iconBoxEndIndex),this._updateIconDebugCollisionBoxes(n,e,t,s.verticalIconBoxStartIndex,s.verticalIconBoxEndIndex)}this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexBufferExt&&this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexBufferExt&&this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt)}_deserializeCollisionBoxesForSymbol(e,t,n,i,r,s,a,o,l){const u={};for(let i=t;i<n;i++){const t=e.get(i);u.textBox={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,padding:t.padding,anchorPointX:t.anchorPointX,anchorPointY:t.anchorPointY},u.textFeatureIndex=t.featureIndex;break}for(let t=i;t<r;t++){const n=e.get(t);u.verticalTextBox={x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,padding:n.padding,anchorPointX:n.anchorPointX,anchorPointY:n.anchorPointY},u.verticalTextFeatureIndex=n.featureIndex;break}for(let t=s;t<a;t++){const n=e.get(t);u.iconBox={x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,padding:n.padding,anchorPointX:n.anchorPointX,anchorPointY:n.anchorPointY},u.iconFeatureIndex=n.featureIndex;break}for(let t=o;t<l;t++){const n=e.get(t);u.verticalIconBox={x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,padding:n.padding,anchorPointX:n.anchorPointX,anchorPointY:n.anchorPointY},u.verticalIconFeatureIndex=n.featureIndex;break}return u}deserializeCollisionBoxes(e){this.collisionArrays=[];for(let t=0;t<this.symbolInstances.length;t++){const n=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){const n=e.placedSymbolArray.get(t),i=n.vertexStartIndex+4*n.numGlyphs;for(let t=n.vertexStartIndex;t<i;t+=4)e.indexArray.emplaceBack(t,t+1,t+2),e.indexArray.emplaceBack(t+1,t+2,t+3)}getSortedSymbolIndexes(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const t=Math.sin(e),n=Math.cos(e),i=[],r=[],s=[];for(let e=0;e<this.symbolInstances.length;++e){s.push(e);const a=this.symbolInstances.get(e);i.push(0|Math.round(t*a.anchorX+n*a.anchorY)),r.push(a.featureIndex)}return s.sort((e,t)=>i[e]-i[t]||r[t]-r[e]),s}addToSortKeyRanges(e,t){const n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===t?n.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const e of this.symbolInstanceIndexes){const t=this.symbolInstances.get(e);this.featureSortOrder.push(t.featureIndex),[t.rightJustifiedTextSymbolIndex,t.centerJustifiedTextSymbolIndex,t.leftJustifiedTextSymbolIndex].forEach((e,t,n)=>{e>=0&&n.indexOf(e)===t&&this.addIndicesForPlacedSymbol(this.text,e)}),t.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,t.verticalPlacedTextSymbolIndex),t.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.placedIconSymbolIndex),t.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}Kr("SymbolBucket",Fu,{omit:["layers","collisionBoxArray","features","compareText"]}),Fu.MAX_GLYPHS=65535,Fu.addDynamicAttributes=Pu;const Ru=new rs({"symbol-placement":new Ji(Oe.layout_symbol["symbol-placement"]),"symbol-spacing":new Ji(Oe.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ji(Oe.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Zi(Oe.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ji(Oe.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ji(Oe.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ji(Oe.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ji(Oe.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ji(Oe.layout_symbol["icon-rotation-alignment"]),"icon-size":new Zi(Oe.layout_symbol["icon-size"]),"icon-text-fit":new Ji(Oe.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ji(Oe.layout_symbol["icon-text-fit-padding"]),"icon-image":new Zi(Oe.layout_symbol["icon-image"]),"icon-rotate":new Zi(Oe.layout_symbol["icon-rotate"]),"icon-padding":new Ji(Oe.layout_symbol["icon-padding"]),"icon-keep-upright":new Ji(Oe.layout_symbol["icon-keep-upright"]),"icon-offset":new Zi(Oe.layout_symbol["icon-offset"]),"icon-anchor":new Zi(Oe.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ji(Oe.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ji(Oe.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ji(Oe.layout_symbol["text-rotation-alignment"]),"text-field":new Zi(Oe.layout_symbol["text-field"]),"text-font":new Zi(Oe.layout_symbol["text-font"]),"text-size":new Zi(Oe.layout_symbol["text-size"]),"text-max-width":new Zi(Oe.layout_symbol["text-max-width"]),"text-line-height":new Ji(Oe.layout_symbol["text-line-height"]),"text-letter-spacing":new Zi(Oe.layout_symbol["text-letter-spacing"]),"text-justify":new Zi(Oe.layout_symbol["text-justify"]),"text-radial-offset":new Zi(Oe.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ji(Oe.layout_symbol["text-variable-anchor"]),"text-anchor":new Zi(Oe.layout_symbol["text-anchor"]),"text-max-angle":new Ji(Oe.layout_symbol["text-max-angle"]),"text-writing-mode":new Ji(Oe.layout_symbol["text-writing-mode"]),"text-rotate":new Zi(Oe.layout_symbol["text-rotate"]),"text-padding":new Ji(Oe.layout_symbol["text-padding"]),"text-keep-upright":new Ji(Oe.layout_symbol["text-keep-upright"]),"text-transform":new Zi(Oe.layout_symbol["text-transform"]),"text-offset":new Zi(Oe.layout_symbol["text-offset"]),"text-allow-overlap":new Ji(Oe.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ji(Oe.layout_symbol["text-ignore-placement"]),"text-optional":new Ji(Oe.layout_symbol["text-optional"])});var Nu={paint:new rs({"icon-opacity":new Zi(Oe.paint_symbol["icon-opacity"]),"icon-color":new Zi(Oe.paint_symbol["icon-color"]),"icon-halo-color":new Zi(Oe.paint_symbol["icon-halo-color"]),"icon-halo-width":new Zi(Oe.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Zi(Oe.paint_symbol["icon-halo-blur"]),"icon-translate":new Ji(Oe.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ji(Oe.paint_symbol["icon-translate-anchor"]),"text-opacity":new Zi(Oe.paint_symbol["text-opacity"]),"text-color":new Zi(Oe.paint_symbol["text-color"],{runtimeType:qe,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new Zi(Oe.paint_symbol["text-halo-color"]),"text-halo-width":new Zi(Oe.paint_symbol["text-halo-width"]),"text-halo-blur":new Zi(Oe.paint_symbol["text-halo-blur"]),"text-translate":new Ji(Oe.paint_symbol["text-translate"]),"text-translate-anchor":new Ji(Oe.paint_symbol["text-translate-anchor"])}),layout:Ru};class Lu{constructor(e){this.type=e.property.overrides?e.property.overrides.runtimeType:Ve,this.defaultValue=e}evaluate(e){if(e.formattedSection){const t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Kr("FormatSectionOverride",Lu,{omit:["defaultValue"]});class zu extends pa{constructor(e){super(e,Nu)}recalculate(e,t){if(super.recalculate(e,t),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){const e=this.layout.get("text-writing-mode");if(e){const t=[];for(const n of e)t.indexOf(n)<0&&t.push(n);this.layout._values["text-writing-mode"]=t}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,t,n,i){const r=this.layout.get(e).evaluate(t,{},n,i),s=this._unevaluatedLayout._values[e];return s.isDataDriven()||Xn(s.value)||!r?r:function(e,t){return t.replace(/{([^{}]+)}/g,(t,n)=>n in e?String(e[n]):"")}(t.properties,r)}createBucket(e){return new Fu(e)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const e of Nu.paint.overridableProperties){if(!zu.hasPaintOverride(this.layout,e))continue;const t=this.paint.get(e),n=new Lu(t),i=new Wn(n,t.property.specification);let r=null;r="constant"===t.value.kind||"source"===t.value.kind?new Zn("source",i):new er("composite",i,t.value.zoomStops,t.value._interpolationType),this.paint._values[e]=new Wi(t.property,r,t.parameters)}}_handleOverridablePaintPropertyUpdate(e,t,n){return!(!this.layout||t.isDataDriven()||n.isDataDriven())&&zu.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,t){const n=e.get("text-field"),i=Nu.paint.properties[t];let r=!1;const s=e=>{for(const t of e)if(i.overrides&&i.overrides.hasOverride(t))return void(r=!0)};if("constant"===n.value.kind&&n.value.value instanceof ht)s(n.value.value.sections);else if("source"===n.value.kind){const e=t=>{r||(t instanceof yt&&At(t.value)===Xe?s(t.value.sections):t instanceof wt?s(t.sections):t.eachChild(e))},t=n.value;t._styleExpression&&e(t._styleExpression.expression)}return r}getProgramConfiguration(e){return new ca(this,e)}}var Hu={paint:new rs({"background-color":new Ji(Oe.paint_background["background-color"]),"background-pattern":new ts(Oe.paint_background["background-pattern"]),"background-opacity":new Ji(Oe.paint_background["background-opacity"])})},Qu={paint:new rs({"raster-opacity":new Ji(Oe.paint_raster["raster-opacity"]),"raster-hue-rotate":new Ji(Oe.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Ji(Oe.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Ji(Oe.paint_raster["raster-brightness-max"]),"raster-saturation":new Ji(Oe.paint_raster["raster-saturation"]),"raster-contrast":new Ji(Oe.paint_raster["raster-contrast"]),"raster-resampling":new Ji(Oe.paint_raster["raster-resampling"]),"raster-fade-duration":new Ji(Oe.paint_raster["raster-fade-duration"])})};class Vu extends pa{constructor(e){super(e,{}),this.implementation=e}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){}serialize(){}onAdd(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)}onRemove(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)}}var ju={paint:new rs({"sky-type":new Ji(Oe.paint_sky["sky-type"]),"sky-atmosphere-sun":new Ji(Oe.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new Ji(Oe.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new Ji(Oe.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new Ji(Oe.paint_sky["sky-gradient-radius"]),"sky-gradient":new ns(Oe.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new Ji(Oe.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new Ji(Oe.paint_sky["sky-atmosphere-color"]),"sky-opacity":new Ji(Oe.paint_sky["sky-opacity"])})};function Gu(e,t,n){const i=Ya(0,0,1),r=uo(co());return function(e,t,n){n*=.5;var i=t[0],r=t[1],s=t[2],a=t[3],o=Math.sin(n),l=Math.cos(n);e[0]=i*l-s*o,e[1]=r*l+a*o,e[2]=s*l+i*o,e[3]=a*l-r*o}(r,r,n?-h(e)+Math.PI:h(e)),ho(r,r,-h(t)),io(i,i,r),eo(i,i)}const Ku={circle:class extends pa{constructor(e){super(e,za)}createBucket(e){return new wa(e)}queryRadius(e){const t=e;return Oa("circle-radius",this,t)+Oa("circle-stroke-width",this,t)+Fa(this.paint.get("circle-translate"))}queryIntersectsFeature(e,t,n,i,r,s,a,o){const l="map"===this.paint.get("circle-pitch-alignment");
2if(l&&e.queryGeometry.isAboveHorizon)return!1;const u=Na(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),s.angle,e.pixelToTileUnitsFactor),c=this.paint.get("circle-radius").evaluate(t,n)+this.paint.get("circle-stroke-width").evaluate(t,n),h=l?c*e.pixelToTileUnitsFactor:c;for(const t of i)for(const n of t){const t=n.add(u),i=o&&s.elevation?s.elevation.exaggeration()*o.getElevationAt(t.x,t.y,!0):0,r=l?t:mo(t,i,a),c=l?e.tilespaceRays.map(e=>yo(e,i)):e.queryGeometry.screenGeometry;let p=h;const d=lo([],[n.x,n.y,i,1],a);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?p*=d[3]/s.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(p*=s.cameraToCenterDistance/d[3]),Ea(c,r,p))return!0}return!1}getProgramIds(){return["circle"]}getProgramConfiguration(e){return new ca(this,e)}},heatmap:class extends pa{createBucket(e){return new vo(e)}constructor(e){super(e,Co),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"heatmap-color"===e&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=So({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(){return 0}queryIntersectsFeature(){return!1}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(e){return new ca(this,e)}},hillshade:class extends pa{constructor(e){super(e,To)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}getProgramConfiguration(e){return new ca(this,e)}},fill:class extends pa{constructor(e){super(e,fl)}getProgramIds(){const e=this.paint.get("fill-pattern"),t=e&&e.constantOr(1),n=[t?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&n.push(t&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),n}getProgramConfiguration(e){return new ca(this,e)}recalculate(e,t){super.recalculate(e,t);const n=this.paint._values["fill-outline-color"];"constant"===n.value.kind&&void 0===n.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new hl(e)}queryRadius(){return Fa(this.paint.get("fill-translate"))}queryIntersectsFeature(e,t,n,i,r,s){return!e.queryGeometry.isAboveHorizon&&Ca(Ra(e.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),s.angle,e.pixelToTileUnitsFactor),i)}isTileClipped(){return!0}},"fill-extrusion":class extends pa{constructor(e){super(e,Pl)}createBucket(e){return new Il(e)}queryRadius(){return Fa(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}getProgramConfiguration(e){return new ca(this,e)}queryIntersectsFeature(e,t,n,r,s,a,o,l,u){const c=Na(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),a.angle,e.pixelToTileUnitsFactor),h=this.paint.get("fill-extrusion-height").evaluate(t,n),p=this.paint.get("fill-extrusion-base").evaluate(t,n),d=[0,0],f=l&&a.elevation,m=a.elevation?a.elevation.exaggeration():1;if(f){const t=e.tile.getBucket(this).centroidVertexArray,n=u+1;if(n<t.length){const e=t.get(n);d[0]=e.a_centroid_pos0,d[1]=e.a_centroid_pos1}}if(0===d[0]&&1===d[1])return!1;const A=function(e,t,n,r,s,a,o,l,u){return a?function(e,t,n,i,r,s,a,o,l){const u=[],c=[],h=[0,0,0];for(const p of e){const e=[],d=[];for(const u of p){const c=u.x+i.x,p=u.y+i.y,f=Fl(c,p,t,n,s,a,o,l);h[0]=c,h[1]=p,h[2]=f.base;const m=Ol(ro(h,h,r));h[0]=c,h[1]=p,h[2]=f.top;const A=Ol(ro(h,h,r));e.push(m),d.push(A)}u.push(e),c.push(d)}return[u,c]}(e,t,n,r,s,a,o,l,u):function(e,t,n,r,s){const a=[],o=[],l=s[8]*t,u=s[9]*t,c=s[10]*t,h=s[11]*t,p=s[8]*n,d=s[9]*n,f=s[10]*n,m=s[11]*n;for(const t of e){const e=[],n=[];for(const a of t){const t=a.x+r.x,o=a.y+r.y,A=s[0]*t+s[4]*o+s[12],g=s[1]*t+s[5]*o+s[13],y=s[2]*t+s[6]*o+s[14],v=s[3]*t+s[7]*o+s[15],b=y+c,_=v+h,w=A+p,x=g+d,E=y+f,C=v+m,S=new i((A+l)/_,(g+u)/_);S.z=b/_,e.push(S);const T=new i(w/C,x/C);T.z=E/C,n.push(T)}a.push(e),o.push(n)}return[a,o]}
vendor: 10,834 bytes, line 2
2(e,t,n,r,s)}(r,p,h,c,o,f?l:null,d,m,a.center.lat),g=e.queryGeometry;return function(e,t,n){let i=1/0;Ca(n,t)&&(i=Ul(n,t[0]));for(let r=0;r<t.length;r++){const s=t[r],a=e[r];for(let e=0;e<s.length-1;e++){const t=s[e],r=[t,s[e+1],a[e+1],a[e],t];xa(n,r)&&(i=Math.min(i,Ul(n,r)))}}return i!==1/0&&i}(A[0],A[1],g.isPointQuery()?g.screenBounds:g.screenGeometry)}},line:class extends pa{constructor(e){super(e,Gl),this.gradientVersion=0}_handleSpecialPaintPropertyUpdate(e){"line-gradient"===e&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Jt,this.gradientVersion=(this.gradientVersion+1)%l)}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=Kl.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new Vl(e)}getProgramIds(){const e=this.paint.get("line-dasharray"),t=this.paint.get("line-pattern").constantOr(1),n=this.paint.get("line-gradient");return[t?"linePattern":e?"lineSDF":n?"lineGradient":"line"]}getProgramConfiguration(e){return new ca(this,e)}queryRadius(e){const t=e,n=ql(Oa("line-width",this,t),Oa("line-gap-width",this,t)),i=Oa("line-offset",this,t);return n/2+Math.abs(i)+Fa(this.paint.get("line-translate"))}queryIntersectsFeature(e,t,n,r,s,a){if(e.queryGeometry.isAboveHorizon)return!1;const o=Ra(e.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,e.pixelToTileUnitsFactor),l=e.pixelToTileUnitsFactor/2*ql(this.paint.get("line-width").evaluate(t,n),this.paint.get("line-gap-width").evaluate(t,n)),u=this.paint.get("line-offset").evaluate(t,n);return u&&(r=function(e,t){const n=[],r=new i(0,0);for(let i=0;i<e.length;i++){const s=e[i],a=[];for(let e=0;e<s.length;e++){const n=s[e-1],i=s[e],o=s[e+1],l=0===e?r:i.sub(n)._unit()._perp(),u=e===s.length-1?r:o.sub(i)._unit()._perp(),c=l._add(u)._unit();c._mult(1/(c.x*u.x+c.y*u.y)),a.push(c._mult(t)._add(i))}n.push(a)}return n}(r,u*e.pixelToTileUnitsFactor)),function(e,t,n){for(let i=0;i<t.length;i++){const r=t[i];if(e.length>=3)for(let t=0;t<r.length;t++)if(Pa(e,r[t]))return!0;if(Sa(e,r,n))return!0}return!1}(o,r,l)}isTileClipped(){return!0}},symbol:zu,background:class extends pa{constructor(e){super(e,Hu)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}},raster:class extends pa{constructor(e){super(e,Qu)}getProgramIds(){return["raster"]}},sky:class extends pa{constructor(e){super(e,ju),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"sky-gradient"===e?this._updateColorRamp():"sky-atmosphere-sun"!==e&&"sky-atmosphere-halo-color"!==e&&"sky-atmosphere-color"!==e&&"sky-atmosphere-sun-intensity"!==e||(this._skyboxInvalidated=!0)}_updateColorRamp(){this.colorRamp=So({expression:this._transitionablePaint._values["sky-gradient"].value.expression,evaluationKey:"skyRadialProgress"}),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}needsSkyboxCapture(e){if(this._skyboxInvalidated||!this.skyboxTexture||!this.skyboxGeometry)return!0;if(!this.paint.get("sky-atmosphere-sun")){const t=e.style.light.properties.get("position");return this._lightPosition.azimuthal!==t.azimuthal||this._lightPosition.polar!==t.polar}}getCenter(e,t){const n=this.paint.get("sky-type");if("atmosphere"===n){const n=this.paint.get("sky-atmosphere-sun"),i=!n,r=e.style.light,s=r.properties.get("position");return i&&"viewport"===r.properties.get("anchor")&&I("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),i?Gu(s.azimuthal,90-s.polar,t):Gu(n[0],90-n[1],t)}if("gradient"===n){const e=this.paint.get("sky-gradient-center");return Gu(e[0],90-e[1],t)}}is3D(){return!1}isSky(){return!0}markSkyboxValid(e){this._skyboxInvalidated=!1,this._lightPosition=e.style.light.properties.get("position")}hasOffscreenPass(){return!0}getProgramIds(){const e=this.paint.get("sky-type");return"atmosphere"===e?["skyboxCapture","skybox"]:"gradient"===e?["skyboxGradient"]:null}}},{HTMLImageElement:qu,HTMLCanvasElement:$u,HTMLVideoElement:Yu,ImageData:Wu,ImageBitmap:Xu}=s;class Ju{constructor(e,t,n,i){this.context=e,this.format=n,this.texture=e.gl.createTexture(),this.update(t,i)}update(e,t,n){const{width:i,height:r}=e,s=!(this.size&&this.size[0]===i&&this.size[1]===r||n),{context:a}=this,{gl:o}=a;if(this.useMipmap=Boolean(t&&t.useMipmap),o.bindTexture(o.TEXTURE_2D,this.texture),a.pixelStoreUnpackFlipY.set(!1),a.pixelStoreUnpack.set(1),a.pixelStoreUnpackPremultiplyAlpha.set(this.format===o.RGBA&&(!t||!1!==t.premultiply)),s)this.size=[i,r],e instanceof qu||e instanceof $u||e instanceof Yu||e instanceof Wu||Xu&&e instanceof Xu?o.texImage2D(o.TEXTURE_2D,0,this.format,this.format,o.UNSIGNED_BYTE,e):o.texImage2D(o.TEXTURE_2D,0,this.format,i,r,0,this.format,o.UNSIGNED_BYTE,e.data);else{const{x:t,y:s}=n||{x:0,y:0};e instanceof qu||e instanceof $u||e instanceof Yu||e instanceof Wu||Xu&&e instanceof Xu?o.texSubImage2D(o.TEXTURE_2D,0,t,s,o.RGBA,o.UNSIGNED_BYTE,e):o.texSubImage2D(o.TEXTURE_2D,0,t,s,i,r,o.RGBA,o.UNSIGNED_BYTE,e.data)}this.useMipmap&&this.isSizePowerOfTwo()&&o.generateMipmap(o.TEXTURE_2D)}bind(e,t,n){const{context:i}=this,{gl:r}=i;r.bindTexture(r.TEXTURE_2D,this.texture),n!==r.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(n=r.LINEAR),e!==this.filter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,n||e),this.filter=e),t!==this.wrap&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,t),this.wrap=t)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}}class Zu{constructor(e){this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){delete this._channel,this._callback=()=>{}}}const eh=s.performance;class th{constructor(e){this._marks={start:[e.url,"start"].join("#"),end:[e.url,"end"].join("#"),measure:e.url.toString()},eh.mark(this._marks.start)}finish(){eh.mark(this._marks.end);let e=eh.getEntriesByName(this._marks.measure);return 0===e.length&&(eh.measure(this._marks.measure,this._marks.start,this._marks.end),e=eh.getEntriesByName(this._marks.measure),eh.clearMarks(this._marks.start),eh.clearMarks(this._marks.end),eh.clearMeasures(this._marks.measure)),e}}class nh{constructor(){this.tasks={},this.taskQueue=[],E(["process"],this),this.invoker=new Zu(this.process),this.nextId=0}add(e,t){const n=this.nextId++;return this.tasks[n]={fn:e,metadata:t,priority:rh(t),id:n},this.taskQueue.push(n),this.invoker.trigger(),{cancel:()=>{delete this.tasks[n]}}}process(){D();try{if(this.taskQueue=this.taskQueue.filter(e=>!!this.tasks[e]),!this.taskQueue.length)return;const e=this.pick();if(null===e)return;const t=this.tasks[e];if(delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),!t)return;t.fn()}finally{}}pick(){let e=null,t=1/0;for(let n=0;n<this.taskQueue.length;n++){const i=this.tasks[this.taskQueue[n]];i.priority<t&&(t=i.priority,e=n)}if(null===e)return null;const n=this.taskQueue[e];return this.taskQueue.splice(e,1),n}remove(){this.invoker.remove()}}function rh({type:e,isSymbolTile:t,zoom:n}){return n=n||0,"message"===e?0:"maybePrepare"!==e||t?"parseTile"!==e||t?"parseTile"===e&&t?300-n:"maybePrepare"===e&&t?400-n:500:200-n:100-n}class ih{constructor(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))}setNorthEast(e){return this._ne=e instanceof sh?new sh(e.lng,e.lat):sh.convert(e),this}setSouthWest(e){return this._sw=e instanceof sh?new sh(e.lng,e.lat):sh.convert(e),this}extend(e){const t=this._sw,n=this._ne;let i,r;if(e instanceof sh)i=e,r=e;else{if(!(e instanceof ih))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(ih.convert(e)):this.extend(sh.convert(e)):this;if(i=e._sw,r=e._ne,!i||!r)return this}return t||n?(t.lng=Math.min(i.lng,t.lng),t.lat=Math.min(i.lat,t.lat),n.lng=Math.max(r.lng,n.lng),n.lat=Math.max(r.lat,n.lat)):(this._sw=new sh(i.lng,i.lat),this._ne=new sh(r.lng,r.lat)),this}getCenter(){return new sh((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new sh(this.getWest(),this.getNorth())}getSouthEast(){return new sh(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:t,lat:n}=sh.convert(e);let i=this._sw.lng<=t&&t<=this._ne.lng;return this._sw.lng>this._ne.lng&&(i=this._sw.lng>=t&&t>=this._ne.lng),this._sw.lat<=n&&n<=this._ne.lat&&i}static convert(e){return!e||e instanceof ih?e:new ih(e)}}class sh{constructor(e,t){if(isNaN(e)||isNaN(t))throw new Error(`Invalid LngLat object: (${e}, ${t})`);if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new sh(A(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const t=Math.PI/180,n=this.lat*t,i=e.lat*t,r=Math.sin(n)*Math.sin(i)+Math.cos(n)*Math.cos(i)*Math.cos((e.lng-this.lng)*t);return 6371008.8*Math.acos(Math.min(r,1))}toBounds(e=0){const t=360*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return new ih(new sh(this.lng-n,this.lat-t),new sh(this.lng+n,this.lat+t))}static convert(e){if(e instanceof sh)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new sh(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new sh(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}const ah=2*Math.PI*6371008.8;function oh(e){return ah*Math.cos(e*Math.PI/180)}function lh(e){return(180+e)/360}function ch(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function uh(e,t){return e/oh(t)}function hh(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180)
2)-90}function dh(e,t){return e*oh(hh(t))}class ph{constructor(e,t,n=0){this.x=+e,this.y=+t,this.z=+n}static fromLngLat(e,t=0){const n=sh.convert(e);return new ph(lh(n.lng),ch(n.lat),uh(t,n.lat))}toLngLat(){return new sh(360*this.x-180,hh(this.y))}toAltitude(){return dh(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/ah*(e=hh(this.y),1/Math.cos(e*Math.PI/180));var e}}function fh(e,t,n){var i=2*Math.PI*6378137/256/Math.pow(2,n);return[e*i-2*Math.PI*6378137/2,t*i-2*Math.PI*6378137/2]}class mh{constructor(e,t,n){this.z=e,this.x=t,this.y=n,this.key=yh(0,e,e,t,n)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t){const n=(r=this.y,s=this.z,a=fh(256*(i=this.x),256*(r=Math.pow(2,s)-r-1),s),o=fh(256*(i+1),256*(r+1),s),a[0]+","+a[1]+","+o[0]+","+o[1]);var i,r,s,a,o;const l=function(e,t,n){let i,r="";for(let s=e;s>0;s--)i=1<<s-1,r+=(t&i?1:0)+(n&i?2:0);return r}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",l).replace("{bbox-epsg-3857}",n)}getTilePoint(e){const t=Math.pow(2,this.z);return new i(8192*(e.x*t-this.x),8192*(e.y*t-this.y))}getTileVec3(e){const t=Math.pow(2,this.z);return Ya(8192*(e.x*t-this.x),8192*(e.y*t-this.y),dh(e.z,e.y))}toString(){return`${this.z}/${this.x}/${this.y}`}}class Ah{constructor(e,t){this.wrap=e,this.canonical=t,this.key=yh(e,t.z,t.z,t.x,t.y)}}class gh{constructor(e,t,n,i,r){this.overscaledZ=e,this.wrap=t,this.canonical=new mh(n,+i,+r),this.key=0===t&&e===n?this.canonical.key:yh(t,e,n,i,r)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){const t=this.canonical.z-e;return e>this.canonical.z?new gh(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new gh(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e,t=!0){if(this.overscaledZ===e&&t)return this.key;if(e>this.canonical.z)return yh(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y);{const n=this.canonical.z-e;return yh(this.wrap*+t,e,e,this.canonical.x>>n,this.canonical.y>>n)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new gh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const t=this.canonical.z+1,n=2*this.canonical.x,i=2*this.canonical.y;return[new gh(t,this.wrap,t,n,i),new gh(t,this.wrap,t,n+1,i),new gh(t,this.wrap,t,n,i+1),new gh(t,this.wrap,t,n+1,i+1)]}isLessThan(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))}wrapped(){return new gh(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new gh(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new Ah(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}getTilePoint(e){return this.canonical.getTilePoint(new ph(e.x-this.wrap,e.y))}getTileVec3(e){return this.canonical.getTileVec3(new ph(e.x-this.wrap,e.y,e.z))}}function yh(e,t,n,i,r){const s=1<<Math.min(n,22);let a=s*(r%s)+i%s;return e&&n<22&&(a+=s*s*((e<0?-2*e-1:2*e)%(1<<2*(22-n)))),16*(32*a+n)+(t-n)}Kr("CanonicalTileID",mh),Kr("OverscaledTileID",gh,{omit:["posMatrix"]});class vh{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t<e.length;t++){const n=e[t];this._stringToNumber[n]=t,this._numberToString[t]=n}}encode(e){return this._stringToNumber[e]}decode(e){return this._numberToString[e]}}class _h{constructor(e,t,n,i,r){this.type="Feature",this._vectorTileFeature=e,e._z=t,e._x=n,e._y=i,this.properties=e.properties,this.id=r}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){const e={geometry:this.geometry};for(const t in this)"_geometry"!==t&&"_vectorTileFeature"!==t&&(e[t]=this[t]);return e}}var bh=ls([{name:"a_pos",type:"Int16",components:2}]);class wh{constructor(e,t,n){this.tileID=e,this.uid=b(),this.uses=0,this.tileSize=t,this.tileZoom=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(e){const t=e+this.timeAdded;t<Q.now()||this.fadeEndTime&&t<this.fadeEndTime||(this.fadeEndTime=t)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}loadVectorData(e,t,n){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",e){e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestFeatureIndex.rawTileData=e.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=function(e,t){const n={};if(!t)return n;for(const i of e){const e=i.layerIds.map(e=>
vendor: 14,287 bytes, line 2
2t.getLayer(e)).filter(Boolean);if(0!==e.length){i.layers=e,i.stateDependentLayerIds&&(i.stateDependentLayers=i.stateDependentLayerIds.map(t=>e.filter(e=>e.id===t)[0]));for(const t of e)n[t.id]=i}}return n}(e.buckets,t.style),this.hasSymbolBuckets=!1;for(const e in this.buckets){const t=this.buckets[e];if(t instanceof Fu){if(this.hasSymbolBuckets=!0,!n)break;t.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const e in this.buckets){const t=this.buckets[e];if(t instanceof Fu&&t.hasRTLText){this.hasRTLText=!0,Qi.isLoading()||Qi.isLoaded()||"deferred"!==zi()||Hi();break}}this.queryPadding=0;for(const e in this.buckets){const n=this.buckets[e];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(e).queryRadius(n))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage)}else this.collisionBoxArray=new Ps}unloadVectorData(){for(const e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(e){return this.buckets[e.id]}upload(e){for(const t in this.buckets){const n=this.buckets[t];n.uploadPending()&&n.upload(e)}const t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Ju(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Ju(e,this.glyphAtlasImage,t.ALPHA),this.glyphAtlasImage=null)}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,n,i,r,s,a,o){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:i,pixelPosMatrix:a,transform:s,params:r},e,t,n):{}}querySourceFeatures(e,t){const n=this.latestFeatureIndex;if(!n||!n.rawTileData)return;const i=n.loadVTLayers(),r=t?t.sourceLayer:"",s=i._geojsonTileLayer||i[r];if(!s)return;const a=dr(t&&t.filter),{z:o,x:l,y:u}=this.tileID.canonical,c={z:o,x:l,y:u};for(let t=0;t<s.length;t++){const i=s.feature(t);if(a.needGeometry){const e=_a(i,!0);if(!a.filter(new Vi(this.tileID.overscaledZ),e,this.tileID.canonical))continue}else if(!a.filter(new Vi(this.tileID.overscaledZ),i))continue;const h=n.getId(i,r),p=new _h(i,o,l,u,h);p.tile=c,e.push(p)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(e){const t=this.expirationTime;if(e.cacheControl){const t=U(e.cacheControl);t["max-age"]&&(this.expirationTime=Date.now()+1e3*t["max-age"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){const e=Date.now();let n=!1;if(this.expirationTime>e)n=!1;else if(t)if(this.expirationTime<t)n=!0;else{const i=this.expirationTime-t;i?this.expirationTime=e+Math.max(i,3e4):n=!0}else n=!0;n?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)}setFeatureState(e,t){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||0===Object.keys(e).length)return;const n=this.latestFeatureIndex.loadVTLayers();for(const i in this.buckets){if(!t.style.hasLayer(i))continue;const r=this.buckets[i],s=r.layers[0].sourceLayer||"_geojsonTileLayer",a=n[s],o=e[s];if(!a||!o||0===Object.keys(o).length)continue;r.update(o,a,this.imageAtlas&&this.imageAtlas.patternPositions||{});const l=t&&t.style&&t.style.getLayer(i);l&&(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(r)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<Q.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(e){this.symbolFadeHoldUntil=Q.now()+e}setDependencies(e,t){const n={};for(const e of t)n[e]=!0;this.dependencies[e]=n}hasDependency(e,t){for(const n of e){const e=this.dependencies[n];if(e)for(const n of t)if(e[n])return!0}return!1}clearQueryDebugViz(){}}class xh{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(e,t,n){const i=String(t);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][i]=this.stateChanges[e][i]||{},v(this.stateChanges[e][i],n),null===this.deletedStates[e]){this.deletedStates[e]={};for(const t in this.state[e])t!==i&&(this.deletedStates[e][t]=null)}else if(this.deletedStates[e]&&null===this.deletedStates[e][i]){this.deletedStates[e][i]={};for(const t in this.state[e][i])n[t]||(this.deletedStates[e][i][t]=null)}else for(const t in n)this.deletedStates[e]&&this.deletedStates[e][i]&&null===this.deletedStates[e][i][t]&&delete this.deletedStates[e][i][t]}removeFeatureState(e,t,n){if(null===this.deletedStates[e])return;const i=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},n&&void 0!==t)null!==this.deletedStates[e][i]&&(this.deletedStates[e][i]=this.deletedStates[e][i]||{},this.deletedStates[e][i][n]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][i])for(n in this.deletedStates[e][i]={},this.stateChanges[e][i])this.deletedStates[e][i][n]=null;else this.deletedStates[e][i]=null;else this.deletedStates[e]=null}getState(e,t){const n=String(t),i=v({},(this.state[e]||{})[n],(this.stateChanges[e]||{})[n]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){const n=this.deletedStates[e][t];if(null===n)return{};for(const e in n)delete i[e]}return i}initializeTileState(e,t){e.setFeatureState(this.state,t)}coalesceChanges(e,t){const n={};for(const e in this.stateChanges){this.state[e]=this.state[e]||{};const t={};for(const n in this.stateChanges[e])this.state[e][n]||(this.state[e][n]={}),v(this.state[e][n],this.stateChanges[e][n]),t[n]=this.state[e][n];n[e]=t}for(const e in this.deletedStates){this.state[e]=this.state[e]||{};const t={};if(null===this.deletedStates[e])for(const n in this.state[e])t[n]={},this.state[e][n]={};else for(const n in this.deletedStates[e]){if(null===this.deletedStates[e][n])this.state[e][n]={};else for(const t of Object.keys(this.deletedStates[e][n]))delete this.state[e][n][t];t[n]=this.state[e][n]}n[e]=n[e]||{},v(n[e],t)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(const i in e)e[i].setFeatureState(n,t)}}class Eh{constructor(e){this.size=e,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(e,t){const n=this.toIdx(e,t);return{min:this.minimums[n],max:this.maximums[n]}}isLeaf(e,t){return this.leaves[this.toIdx(e,t)]}toIdx(e,t){return t*this.size+e}}function Ch(e,t,n,i){let r=0,s=Number.MAX_VALUE;for(let a=0;a<3;a++)if(Math.abs(i[a])<1e-15){if(n[a]<e[a]||n[a]>t[a])return null}else{const o=1/i[a];let l=(e[a]-n[a])*o,u=(t[a]-n[a])*o;if(l>u){const e=l;l=u,u=e}if(l>r&&(r=l),u<s&&(s=u),r>s)return null}return r}function Sh(e,t,n,i,r,s,a,o,l,u,c){const h=i-e,p=r-t,d=s-n,f=a-e,m=o-t,A=l-n,g=c[1]*A-c[2]*m,y=c[2]*f-c[0]*A,v=c[0]*m-c[1]*f,b=h*g+p*y+d*v;if(Math.abs(b)<1e-15)return null;const _=1/b,w=u[0]-e,x=u[1]-t,E=u[2]-n,C=(w*g+x*y+E*v)*_;if(C<0||C>1)return null;const S=x*d-E*p,T=E*h-w*d,B=w*p-x*h,k=(c[0]*S+c[1]*T+c[2]*B)*_;return k<0||C+k>1?null:(f*S+m*T+A*B)*_}function Th(e,t,n){return(e-t)/(n-t)}function Bh(e,t,n,i,r,s,a,o,l){const u=1<<n,c=s-i,h=a-r,p=(e+1)/u*c+i,d=(t+0)/u*h+r,f=(t+1)/u*h+r;o[0]=(e+0)/u*c+i,o[1]=d,l[0]=p,l[1]=f}class kh{constructor(e){if(this.maximums=[],this.minimums=[],this.leaves=[],this.childOffsets=[],this.nodeCount=0,this.dem=e,this._siblingOffset=[[0,0],[1,0],[0,1],[1,1]],!this.dem)return;const t=function(e){const t=Math.ceil(Math.log2(e.dim/8)),n=[];let i=Math.ceil(Math.pow(2,t));const r=1/i,s=(e,t,n,i,r)=>{const s=i?1:0,a=(e+1)*n-s,o=t*n,l=(t+1)*n-s;r[0]=e*n,r[1]=o,r[2]=a,r[3]=l};let a=new Eh(i);const o=[];for(let t=0;t<i*i;t++){s(t%i,Math.floor(t/i),r,!1,o);const n=Mh(o[0],o[1],e),l=Mh(o[2],o[1],e),u=Mh(o[2],o[3],e),c=Mh(o[0],o[3],e);a.minimums.push(Math.min(n,l,u,c)),a.maximums.push(Math.max(n,l,u,c)),a.leaves.push(1)}for(n.push(a),i/=2;i>=1;i/=2){const e=n[n.length-1];a=new Eh(i);for(let t=0;t<i*i;t++){s(t%i,Math.floor(t/i),2,!0,o);const n=e.getElevation(o[0],o[1]),r=e.getElevation(o[2],o[1]),l=e.getElevation(o[2],o[3]),u=e.getElevation(o[0],o[3]),c=e.isLeaf(o[0],o[1]),h=e.isLeaf(o[2],o[1]),p=e.isLeaf(o[2],o[3]),d=e.isLeaf(o[0],o[3]),f=Math.min(n.min,r.min,l.min,u.min),m=Math.max(n.max,r.max,l.max,u.max),A=c&&h&&p&&d;a.maximums.push(m),a.minimums.push(f),a.leaves.push(m-f<=5&&A?1:0)}n.push(a)}return n}(this.dem),n=t.length-1,i=t[n];this._addNode(i.minimums[0],i.maximums[0],i.leaves[0]),this._construct(t,0,0,n,0)}raycastRoot(e,t,n,i,r,s,a=1){return Ch([e,t,-100],[n,i,this.maximums[0]*a],r,s)}raycast(e,t,n,i,r,s,a=1){if(!this.nodeCount)return null;const o=this.raycastRoot(e,t,n,i,r,s,a);if(null==o)return null;const l=[],u=[],c=[],h=[],p=[{idx:0,t:o,nodex:0,nodey:0,depth:0}];for(;p.length>0;){const{idx:o,t:d,nodex:f,nodey:m,depth:A}=p.pop();if(this.leaves[o]){Bh(f,m,A,e,t,n,i,c,h);const o=1<<A,l=(f+0)/o,u=(f+1)/o,p=(m+0)/o,g=(m+1)/o,y=Mh(l,p,this.dem)*a,v=Mh(u,p,this.dem)*a,b=Mh(u,g,this.dem)*a,_=Mh(l,g,this.dem)*a,w=Sh(c[0],c[1],y,h[0],c[1],v,h[0],h[1],b,r,s),x=Sh(h[0],h[1],b,c[0],h[1],_,c[0],c[1],y,r,s),E=Math.min(null!==w?w:Number.MAX_VALUE,null!==x?x:Number.MAX_VALUE);if(E!==Number.MAX_VALUE)return E;{const e=Za([],r,s,d);if(Ih(y,v,_,b,Th(e[0],c[0],h[0]),Th(e[1],c[1],h[1]))>=e[2])return d}continue}let g=0;for(let p=0;p<this._siblingOffset.length;p++){Bh((f<<1)+this._siblingOffset[p][0],(m<<1)+this._siblingOffset[p][1],A+1,e,t,n,i,c,h),c[2]=-100,h[2]=this.maximums[this.childOffsets[o]+p]*a;const d=Ch(c,h,r,s);if(null!=d){const e=d;l[p]=e;let t=!1;for(let n=0;n<g&&!t;n++)e>=l[u[n]]&&(u.splice(n,0,p),t=!0);t||(u[g]=p),g++}}for(let e=0;e<g;e++){const t=u[e];p.push({idx:this.childOffsets[o]+t,t:l[t],nodex:(f<<1)+this._siblingOffset[t][0],nodey:(m<<1)+this._siblingOffset[t][1],depth:A+1})}}return null}_addNode(e,t,n){return this.minimums.push(e),this.maximums.push(t),this.leaves.push(n),this.childOffsets.push(0),this.nodeCount++}_construct(e,t,n,i,r){if(1===e[i].isLeaf(t,n))return;this.childOffsets[r]||(this.childOffsets[r]=this.nodeCount);const s=i-1,a=e[s];let o,l=0;for(let e=0;e<this._siblingOffset.length;e++){const i=2*t+this._siblingOffset[e][0],r=2*n+this._siblingOffset[e][1],s=a.getElevation(i,r),u=a.isLeaf(i,r),c=this._addNode(s.min,s.max,u);u&&(l|=1<<e),o||(o=c)}for(let i=0;i<this._siblingOffset.length;i++)l&1<<i||this._construct(e,2*t+this._siblingOffset[i][0],2*n+this._siblingOffset[i][1],s,o+i)}}function Ih(e,t,n,i,r,s){return Zt(Zt(e,n,s),Zt(t,i,s),r)}function Mh(e,t,n){const i=n.dim,r=m(e*i-.5,0,i-1),s=m(t*i-.5,0,i-1),a=Math.floor(r),o=Math.floor(s),l=Math.min(a+1,i-1),u=Math.min(o+1,i-1);return Ih(n.get(a,o),n.get(l,o),n.get(a,u),n.get(l,u),r-a,s-o)}const Ph={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768]};class Dh{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(e,t,n,i=!1,r=!1){if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return I(`"${n}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=t.height;const s=this.dim=t.height-2;if(this.data=new Uint32Array(t.data.buffer),this.encoding=n||"mapbox",this.borderReady=i,!i){for(let e=0;e<s;e++)this.data[this._idx(-1,e)]=this.data[this._idx(0,e)],this.data[this._idx(s,e)]=this.data[this._idx(s-1,e)],this.data[this._idx(e,-1)]=this.data[this._idx(e,0)],this.data[this._idx(e,s)]=this.data[this._idx(e,s-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(s,-1)]=this.data[this._idx(s-1,0)],this.data[this._idx(-1,s)]=this.data[this._idx(0,s-1)],this.data[this._idx(s,s)]=this.data[this._idx(s-1,s-1)],r&&this._buildQuadTree()}}_buildQuadTree(){this._tree=new kh(this)}get(e,t,n=!1){const i=new Uint8Array(this.data.buffer);n&&(e=m(e,-1,this.dim),t=m(t,-1,this.dim));const r=4*this._idx(e,t);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(i[r],i[r+1],i[r+2])}static getUnpackVector(e){return Ph[e]}get unpackVector(){return Ph[this.encoding]}_idx(e,t){if(e<-1||e>=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)}_unpackMapbox(e,t,n){return(256*e*256+256*t+n)/10-1e4}_unpackTerrarium(e,t,n){return 256*e+t+n/256-32768}static pack(e,t){const n=[0,0,0,0],i=Dh.getUnpackVector(t);let r=Math.floor((e+i[3])/i[2]);return n[2]=r%256,r=Math.floor(r/256),n[1]=r%256,r=Math.floor(r/256),n[0]=r,n}getPixels(){return new Eo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let i=t*this.dim,r=t*this.dim+this.dim,s=n*this.dim,a=n*this.dim+this.dim;switch(t){case-1:i=r-1;break;case 1:r=i+1}switch(n){case-1:s=a-1;break;case 1:a=s+1}const o=-t*this.dim,l=-n*this.dim;for(let t=s;t<a;t++)for(let n=i;n<r;n++)this.data[this._idx(n,t)]=e.data[this._idx(n+o,t+l)]}onDeserialize(){this._tree&&(this._tree.dem=this)}}Kr("DEMData",Dh),Kr("DemMinMaxQuadTree",kh,{omit:["dem"]});class Uh{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(const e in this.data)for(const t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,n){const i=e.wrapped().key;void 0===this.data[i]&&(this.data[i]=[]);const r={value:t,timeout:void 0};if(void 0!==n&&(r.timeout=setTimeout(()=>{this.remove(e,r)},n)),this.data[i].push(r),this.order.push(i),this.order.length>this.max){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){const t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){const t=this.data[e];return t?t[0].value:null}
vendor: 5,209 bytes, line 2
2get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;const n=e.wrapped().key,i=void 0===t?0:this.data[n].indexOf(t),r=this.data[n][i];return this.data[n].splice(i,1),r.timeout&&clearTimeout(r.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(r.value),this.order.splice(this.order.indexOf(n),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(e){const t=[];for(const n in this.data)for(const i of this.data[n])e(i.value)||t.push(i);for(const e of t)this.remove(e.value.tileID,e)}}class Oh{constructor(e,t,n){this.context=e;const i=e.gl;this.buffer=i.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const Fh={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class Rh{constructor(e,t,n,i){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=i,this.context=e;const r=e.gl;this.buffer=r.createBuffer(),e.bindVertexBuffer.set(this.buffer),r.bufferData(r.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let n=0;n<this.attributes.length;n++){const i=t.attributes[this.attributes[n].name];void 0!==i&&e.enableVertexAttribArray(i)}}setVertexAttribPointers(e,t,n){for(let i=0;i<this.attributes.length;i++){const r=this.attributes[i],s=t.attributes[r.name];void 0!==s&&e.vertexAttribPointer(s,r.components,e[Fh[r.type]],!1,this.itemSize,r.offset+this.itemSize*(n||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class Nh{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class Lh extends Nh{getDefault(){return lt.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class zh extends Nh{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}}class Hh extends Nh{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}}class Qh extends Nh{getDefault(){return[!0,!0,!0,!0]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class Vh extends Nh{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}}class jh extends Nh{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}}class Gh extends Nh{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){const t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}}class Kh extends Nh{getDefault(){const e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}}class qh extends Nh{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}}class $h extends Nh{getDefault(){return[0,1]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}}class Yh extends Nh{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}}class Wh extends Nh{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}}class Xh extends Nh{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}}class Jh extends Nh{getDefault(){const e=this.gl;return[e.ONE,e.ZERO]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)}}class Zh extends Nh{getDefault(){return lt.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor
vendor: 5,139 bytes, line 2
2(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class ed extends Nh{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}}class nd extends Nh{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}}class rd extends Nh{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}}class rp extends Nh{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}}class id extends Nh{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}}class sd extends Nh{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}}class ad extends Nh{getDefault(){const e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class od extends Nh{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}}class ld extends Nh{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class cd extends Nh{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}}class ud extends Nh{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class hd extends Nh{getDefault(){return null}set(e){const t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class pd extends Nh{constructor(e){super(e),this.vao=e.extVertexArrayObject}getDefault(){return null}set(e){this.vao&&(e!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(e),this.current=e,this.dirty=!1)}}class fd extends Nh{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}}class md extends Nh{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}}class Ad extends Nh{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}}class gd extends Nh{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}}class yd extends gd{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class vd extends gd{attachment(){return this.gl.DEPTH_ATTACHMENT}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,this.attachment(),t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class _d{constructor(e,t,n,i){this.context=e,this.width=t,this.height=n;const r=this.framebuffer=e.gl.createFramebuffer();this.colorAttachment=new yd(e,r),i&&(this.depthAttachment=new vd(e,r))}destroy(){const e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){const t=this.depthAttachment.get();t&&e.deleteRenderbuffer(t)}e.deleteFramebuffer(this.framebuffer)}}class bd{constructor(e,t,n){this.func=e,this.mask=t,this.range=n}}bd.ReadOnly=!1,bd.ReadWrite=!0,bd.disabled=new bd(519,bd.ReadOnly,[0,1]);class wd{constructor(e,t,n,i,r,s){this.test=e,this.ref=t,this.mask=n,this.fail=i,this.depthFail=r,this.pass=s}}wd.disabled=new wd({func:519,mask:0},0,0,7680,7680,7680);class xd{constructor(e,t,n){this.blendFunction=e,this.blendColor=t,this.mask=n}}xd.Replace=[1,0],xd.disabled=new xd(xd.Replace,lt.transparent,[!1,!1,!1,!1]),xd.unblended=new xd(xd.Replace,lt.transparent,[!0,!0,!0,!0]),xd.alphaBlended=new xd([1,771],lt.transparent,[!0,!0,!0,!0]);class Ed{constructor(e,t,n){this.enable=e,this.mode=t,this.frontFace=n}}Ed.disabled=new Ed(!1,1029,2305),Ed.backCCW=new Ed(!0,1029,2305),Ed.backCW=new Ed(!0,1029,2304),Ed.frontCW=new Ed(!0,1028,2304),Ed.frontCCW=new Ed(!0,1028,2305);class Cd extends Ue{constructor(e,t,n){super(),this.id=e,this._onlySymbols=n,t.on("data",e=>{"source"===e.dataType&&"metadata"===e.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))}),t.on("error",()=>{this._sourceErrored=!0}),this._source=t,this._tiles={},this._cache=new Uh(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={}
vendor: 4,309 bytes, line 2
2,this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new xh}onAdd(e){this.map=e,this._maxTileCacheSize=e?e._maxTileCacheSize:null}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(const e in this._tiles){const t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(e,t){return e.isSymbolTile=this._onlySymbols,this._source.loadTile(e,t)}_unloadTile(e){if(this._source.unloadTile)return this._source.unloadTile(e,()=>{})}_abortTile(e){if(this._source.abortTile)return this._source.abortTile(e,()=>{})}serialize(){return this._source.serialize()}prepare(e){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const t in this._tiles){const n=this._tiles[t];n.upload(e),n.prepare(this.map.style.imageManager)}}getIds(){return g(this._tiles).map(e=>e.tileID).sort(Sd).map(e=>e.key)}getRenderableIds(e){const t=[];for(const n in this._tiles)this._isIdRenderable(+n,e)&&t.push(this._tiles[n]);return e?t.sort((e,t)=>{const n=e.tileID,r=t.tileID,s=new i(n.canonical.x,n.canonical.y)._rotate(this.transform.angle),a=new i(r.canonical.x,r.canonical.y)._rotate(this.transform.angle);return n.overscaledZ-r.overscaledZ||a.y-s.y||a.x-s.x}).map(e=>e.tileID.key):t.map(e=>e.tileID).sort(Sd).map(e=>e.key)}hasRenderableParent(e){const t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)}_isIdRenderable(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const e in this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(+e,"reloading")}}_reloadTile(e,t){const n=this._tiles[e];n&&("loading"!==n.state&&(n.state=t),this._loadTile(n,this._tileLoaded.bind(this,n,e,t)))}_tileLoaded(e,t,n,i){if(i)return e.state="errored",void(404!==i.status?this._source.fire(new De(i,{tile:e})):this.update(this.transform));e.timeAdded=Q.now(),"expired"===n&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(t,e),"raster-dem"===this.getSource().type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new Pe("data",{dataType:"source",tile:e,coord:e.tileID,sourceCacheId:this.id}))}_backfillDEM(e){const t=this.getRenderableIds();for(let i=0;i<t.length;i++){const r=t[i];if(e.neighboringTiles&&e.neighboringTiles[r]){const t=this.getTileByID(r);n(e,t),n(t,e)}}function n(e,t){if(!e.dem||e.dem.borderReady)return;e.needsHillshadePrepare=!0,e.needsDEMTextureUpload=!0;let n=t.tileID.canonical.x-e.tileID.canonical.x;const i=t.tileID.canonical.y-e.tileID.canonical.y,r=Math.pow(2,e.tileID.canonical.z),s=t.tileID.key;0===n&&0===i||Math.abs(i)>1||(Math.abs(n)>1&&(1===Math.abs(n+r)?n+=r:1===Math.abs(n-r)&&(n-=r)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,i),e.neighboringTiles&&e.neighboringTiles[s]&&(e.neighboringTiles[s].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,t,n,i){for(const r in this._tiles){let s=this._tiles[r];if(i[r]||!s.hasData()||s.tileID.overscaledZ<=t||s.tileID.overscaledZ>n)continue;let a=s.tileID;for(;s&&s.tileID.overscaledZ>t+1;){const e=s.tileID.scaledTo(s.tileID.overscaledZ-1);s=this._tiles[e.key],s&&s.hasData()&&(a=e)}let o=a;for(;o.overscaledZ>t;)if(o=o.scaledTo(o.overscaledZ-1),e[o.key]){i[a.key]=a;break}}}findLoadedParent(e,t){if(e.key in this._loadedParentTiles){const n=this._loadedParentTiles[e.key];return n&&n.tileID.overscaledZ>=t?n:null}for(let n=e.overscaledZ-1;n>=t;n--){const t=e.scaledTo(n),i=this._getLoadedTile(t);if(i)return i}}_getLoadedTile(e){const t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(this._source.reparseOverscaled?e.wrapped().key:e.canonical.key)}updateCacheSize(e,t){t=t||this._source.tileSize;const n=Math.ceil(e.width/t)+1,i=Math.ceil(e.height/t)+1,r=Math.floor(n*i*5),s="number"==typeof this._maxTileC
vendor: 22,982 bytes, line 2
2acheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(s)}handleWrapJump(e){const t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){const e={};for(const n in this._tiles){const i=this._tiles[n];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+t),e[i.tileID.key]=i}this._tiles=e;for(const e in this._timers)clearTimeout(this._timers[e]),delete this._timers[e];for(const e in this._tiles)this._setTileReloadTimer(+e,this._tiles[e])}}update(e,t,n){if(this.transform=e,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage)return;if(this.usedForTerrain&&!n)return;let i;this.updateCacheSize(e,t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map(e=>new gh(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)):(i=e.coveringTiles({tileSize:t||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!n,reparseOverscaled:this._source.reparseOverscaled,useElevationData:!!this.transform.elevation&&!this.usedForTerrain}),this._source.hasTile&&(i=i.filter(e=>this._source.hasTile(e)))):i=[];const r=this._updateRetainedTiles(i);if(Td(this._source.type)&&0!==i.length){const e={},t={},n=Object.keys(r);for(const i of n){const n=r[i],s=this._tiles[i];if(!s||s.fadeEndTime&&s.fadeEndTime<=Q.now())continue;const a=this.findLoadedParent(n,Math.max(n.overscaledZ-Cd.maxOverzooming,this._source.minzoom));a&&(this._addTile(a.tileID),e[a.tileID.key]=a.tileID),t[i]=n}const s=i[i.length-1].overscaledZ;for(const e in this._tiles){const n=this._tiles[e];if(r[e]||!n.hasData())continue;let i=n.tileID;for(;i.overscaledZ>s;){i=i.scaledTo(i.overscaledZ-1);const s=this._tiles[i.key];if(s&&s.hasData()&&t[i.key]){r[e]=n.tileID;break}}}for(const t in e)r[t]||(this._coveredTiles[t]=!0,r[t]=e[t])}for(const e in r)this._tiles[e].clearFadeHold();const s=function(e,t){const n=[];for(const i in e)i in t||n.push(i);return n}(this._tiles,r);for(const e of s){const t=this._tiles[e];t.hasSymbolBuckets&&!t.holdingForFade()?t.setHoldDuration(this.map._fadeDuration):t.hasSymbolBuckets&&!t.symbolFadeFinished()||this._removeTile(+e)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(+e)}_updateRetainedTiles(e){const t={};if(0===e.length)return t;const n={},i=e[e.length-1].overscaledZ,r=e[0].overscaledZ,s=Math.max(r-Cd.maxOverzooming,this._source.minzoom),a=Math.max(r+Cd.maxUnderzooming,this._source.minzoom),o={};for(const n of e){const e=this._addTile(n);t[n.key]=n,e.hasData()||i<this._source.maxzoom&&(o[n.key]=n)}this._retainLoadedChildren(o,i,a,t);for(const i of e){let e=this._tiles[i.key];if(e.hasData())continue;if(i.canonical.z>=this._source.maxzoom){const e=i.children(this._source.maxzoom)[0],n=this.getTile(e);if(n&&n.hasData()){t[e.key]=e;continue}}else{const e=i.children(this._source.maxzoom);if(t[e[0].key]&&t[e[1].key]&&t[e[2].key]&&t[e[3].key])continue}let r=e.wasRequested();for(let a=i.overscaledZ-1;a>=s;--a){const s=i.scaledTo(a);if(n[s.key])break;if(n[s.key]=!0,e=this.getTile(s),!e&&r&&(e=this._addTile(s)),e&&(t[s.key]=s,r=e.wasRequested(),e.hasData()))break}}return t}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const e in this._tiles){const t=[];let n,i=this._tiles[e].tileID;for(;i.overscaledZ>0;){if(i.key in this._loadedParentTiles){n=this._loadedParentTiles[i.key];break}t.push(i.key);const e=i.scaledTo(i.overscaledZ-1);if(n=this._getLoadedTile(e),n)break;i=e}for(const e of t)this._loadedParentTiles[e]=n}}_addTile(e){let t=this._tiles[e.key];if(t)return t;t=this._cache.getAndRemove(e),t&&(this._setTileReloadTimer(e.key,t),t.tileID=e,this._state.initializeTileState(t,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,t)));const n=Boolean(t);return n||(t=new wh(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom),this._loadTile(t,this._tileLoaded.bind(this,t,e.key,t.state))),t?(t.uses++,this._tiles[e.key]=t,n||this._source.fire(new Pe("dataloading",{tile:t,coord:t.tileID,dataType:"source"})),t):null}_setTileReloadTimer(e,t){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);const n=t.getExpiryTimeout();n&&(this._timers[e]=setTimeout(()=>{this._reloadTile(e,"expired"),delete this._timers[e]},n))}_removeTile(e){const t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const e in this._tiles)this._removeTile(+e);this._cache.reset()}tilesIn(e,t,n){const i=[],r=this.transform;if(!r)return i;for(const s in this._tiles){const a=this._tiles[s];if(n&&a.clearQueryDebugViz(),a.holdingForFade())continue;const o=e.containsTile(a,r,t);o&&i.push(o)}return i}getVisibleCoordinates(e){const t=this.getRenderableIds(e).map(e=>this._tiles[e].tileID);for(const e of t)e.posMatrix=this.transform.calculatePosMatrix(e.toUnwrapped());return t}hasTransition(){if(this._source.hasTransition())return!0;if(Td(this._source.type))for(const e in this._tiles){const t=this._tiles[e];if(void 0!==t.fadeEndTime&&t.fadeEndTime>=Q.now())return!0}return!1}setFeatureState(e,t,n){this._state.updateState(e=e||"_geojsonTileLayer",t,n)}removeFeatureState(e,t,n){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,n)}getFeatureState(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)}setDependencies(e,t,n){const i=this._tiles[e];i&&i.setDependencies(t,n)}reloadTilesForDependencies(e,t){for(const n in this._tiles)this._tiles[n].hasDependency(e,t)&&this._reloadTile(+n,"reloading");this._cache.filter(n=>!n.hasDependency(e,t))}}function Sd(e,t){const n=Math.abs(2*e.wrap)-+(e.wrap<0),i=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||i-n||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function Td(e){return"raster"===e||"image"===e||"video"===e}Cd.maxOverzooming=10,Cd.maxUnderzooming=3;class Bd{constructor(e,t,n){this._demTile=e,this._dem=this._demTile.dem,this._scale=t,this._offset=n}static create(e,t,n){const i=n||e.findDEMTileFor(t);if(!i||!i.dem)return;const r=i.dem,s=i.tileID,a=1<<t.canonical.z-s.canonical.z;return new Bd(i,i.tileSize/8192/a,[(t.canonical.x/a-s.canonical.x)*r.dim,(t.canonical.y/a-s.canonical.y)*r.dim])}tileCoordToPixel(e,t){const n=t*this._scale+this._offset[1],r=Math.floor(e*this._scale+this._offset[0]),s=Math.floor(n);return new i(r,s)}getElevationAt(e,t,n,i){const r=e*this._scale+this._offset[0],s=t*this._scale+this._offset[1],a=Math.floor(r),o=Math.floor(s),l=this._dem;return i=!!i,n?Zt(Zt(l.get(a,o,i),l.get(a,o+1,i),s-o),Zt(l.get(a+1,o,i),l.get(a+1,o+1,i),s-o),r-a):l.get(a,o,i)}getElevationAtPixel(e,t,n){return this._dem.get(e,t,!!n)}getMeterToDEM(e){return(1<<this._demTile.tileID.canonical.z)*uh(1,e)*this._dem.stride}}class kd{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new Hr(8192,16,0),this.featureIndexArray=new zs,this.promoteId=t}insert(e,t,n,i,r,s=0){const a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,i,r,s);const o=this.grid;for(let e=0;e<t.length;e++){const n=t[e],i=[1/0,1/0,-1/0,-1/0];for(let e=0;e<n.length;e++){const t=n[e];i[0]=Math.min(i[0],t.x),i[1]=Math.min(i[1],t.y),i[2]=Math.max(i[2],t.x),i[3]=Math.max(i[3],t.y)}i[0]<8192&&i[1]<8192&&i[2]>=0&&i[3]>=0&&o.insert(a,i[0],i[1],i[2],i[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Cl.VectorTile(new lc(this.rawTileData)).layers,this.sourceLayerCoder=new vh(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(e,t,n,i){this.loadVTLayers();const r=e.params||{},s=dr(r.filter),a=e.tileResult,o=e.transform,l=a.bufferedTilespaceBounds,u=this.grid.query(l.min.x,l.min.y,l.max.x,l.max.y,(e,t,n,i)=>Da(a.bufferedTilespaceGeometry,e,t,n,i));u.sort(Md);let c=null;o.elevation&&u.length>0&&(c=Bd.create(o.elevation,this.tileID));const h={};let p;for(let o=0;o<u.length;o++){const l=u[o];if(l===p)continue;p=l;const d=this.featureIndexArray.get(l);let f=null;this.loadMatchingFeature(h,d,s,r.layers,r.availableImages,t,n,i,(t,n,i,r=0)=>(f||(f=va(t)),n.queryIntersectsFeature(a,t,i,f,this.z,e.transform,e.pixelPosMatrix,c,r)))}return h}loadMatchingFeature(e,t,n,i,r,s,a,o,l){const{featureIndex:u,bucketIndex:c,sourceLayerIndex:h,layoutVertexArrayOffset:p}=t,d=this.bucketLayerIDs[c];if(i&&!function(e,t){for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>=0)return!0;return!1}(i,d))return;const f=this.sourceLayerCoder.decode(h),m=this.vtLayers[f].feature(u);if(n.needGeometry){const e=_a(m,!0);if(!n.filter(new Vi(this.tileID.overscaledZ),e,this.tileID.canonical))return}else if(!n.filter(new Vi(this.tileID.overscaledZ),m))return;const A=this.getId(m,f);for(let t=0;t<d.length;t++){const n=d[t];if(i&&i.indexOf(n)<0)continue;const c=s[n];if(!c)continue;let h={};void 0!==A&&o&&(h=o.getState(c.sourceLayer||"_geojsonTileLayer",A));const f=v({},a[n]);f.paint=Id(f.paint,c.paint,m,h,r),f.layout=Id(f.layout,c.layout,m,h,r);const g=!l||l(m,c,h,p);if(!g)continue;const y=new _h(m,this.z,this.x,this.y,A);y.layer=f;let b=e[n];void 0===b&&(b=e[n]=[]),b.push({featureIndex:u,feature:y,intersectionZ:g})}}lookupSymbolFeatures(e,t,n,i,r,s,a,o){const l={};this.loadVTLayers();const u=dr(r);for(const r of e)this.loadMatchingFeature(l,{bucketIndex:n,sourceLayerIndex:i,featureIndex:r,layoutVertexArrayOffset:0},u,s,a,o,t);return l}hasLayer(e){for(const t of this.bucketLayerIDs)for(const n of t)if(e===n)return!0;return!1}getId(e,t){let n=e.id;return this.promoteId&&(n=e.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[t]],"boolean"==typeof n&&(n=Number(n))),n}}function Id(e,t,n,i,r){return S(e,(e,s)=>{const a=t instanceof Xi?t.get(s):null;return a&&a.evaluate?a.evaluate(n,i,r):a})}function Md(e,t){return t-e}Kr("FeatureIndex",kd,{omit:["rawTileData","sourceLayerCoder"]});class Pd{constructor(e){const t={},n=[];for(const i in e){const r=e[i],s=t[i]={};for(const e in r){const t=r[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;const i=t.metrics.localGlyph?2:1,a={x:0,y:0,w:t.bitmap.width+2*i,h:t.bitmap.height+2*i};n.push(a),s[e]={rect:a,metrics:t.metrics}}}const{w:i,h:r}=kc(n),s=new xo({width:i||1,height:r||1});for(const n in e){const i=e[n];for(const e in i){const r=i[+e];if(!r||0===r.bitmap.width||0===r.bitmap.height)continue;const a=t[n][e].rect,o=r.metrics.localGlyph?2:1;xo.copy(r.bitmap,s,{x:0,y:0},{x:a.x+o,y:a.y+o},r.bitmap)}}this.image=s,this.positions=t}}Kr("GlyphAtlas",Pd);class Dd{constructor(e){this.tileID=new gh(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.tileZoom=e.tileZoom,this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId,this.enableTerrain=!!e.enableTerrain,this.isSymbolTile=e.isSymbolTile}parse(e,t,n,i,r){this.status="parsing",this.data=e,this.collisionBoxArray=new Ps;const s=new vh(Object.keys(e.layers).sort()),a=new kd(this.tileID,this.promoteId);a.bucketLayerIDs=[];const o={},l={featureIndex:a,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:n},u=t.familiesBySource[this.source];for(const t in u){const i=e.layers[t];if(!i)continue;let r=!1,c=!1;for(const e of u[t])"symbol"===e[0].type?r=!0:c=!0;if(!0===this.isSymbolTile&&!r)continue;if(!1===this.isSymbolTile&&!c)continue;1===i.version&&I(`Vector tile source "${this.source}" layer "${t}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const h=s.encode(t),p=[];for(let e=0;e<i.length;e++){const n=i.feature(e),r=a.getId(n,t);p.push({feature:n,id:r,index:e,sourceLayerIndex:h})}for(const e of u[t]){const t=e[0];void 0!==this.isSymbolTile&&"symbol"===t.type!==this.isSymbolTile||t.minzoom&&this.zoom<Math.floor(t.minzoom)||t.maxzoom&&this.zoom>=t.maxzoom||"none"!==t.visibility&&(Ud(e,this.zoom,n),(o[t.id]=t.createBucket({index:a.bucketLayerIDs.length,layers:e,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:h,sourceID:this.source,enableTerrain:this.enableTerrain})).populate(p,l,this.tileID.canonical),a.bucketLayerIDs.push(e.map(e=>e.id)))}}let c,h,p,d;const f={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},m=S(l.glyphDependencies,e=>Object.keys(e).map(Number));Object.keys(m).length?i.send("getGlyphs",{uid:this.uid,stacks:m},(e,t)=>{c||(c=e,h=t,v.call(this))},void 0,void 0,f):h={};const A=Object.keys(l.iconDependencies);A.length?i.send("getImages",{icons:A,source:this.source,tileID:this.tileID,type:"icons"},(e,t)=>{c||(c=e,p=t,v.call(this))},void 0,void 0,f):p={};const y=Object.keys(l.patternDependencies);function v(){if(c)return r(c);if(h&&p&&d){const e=new Pd(h),t=new Mc(p,d);for(const i in o){const r=o[i];r instanceof Fu?(Ud(r.layers,this.zoom,n),bu(r,h,e.positions,p,t.iconPositions,this.showCollisionBoxes,this.tileID.canonical,this.tileZoom)):r.hasPattern&&(r instanceof Vl||r instanceof hl||r instanceof Il)&&(Ud(r.layers,this.zoom,n),r.addFeatures(l,this.tileID.canonical,t.patternPositions))}this.status="done",r(null,{buckets:g(o).filter(e=>!e.isEmpty()),featureIndex:a,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:t,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?e.positions:null})}}y.length?i.send("getImages",{icons:y,source:this.source,tileID:this.tileID,type:"patterns"},(e,t)=>{c||(c=e,d=t,v.call(this))},void 0,void 0,f):d={},v.call(this)}}function Ud(e,t,n){const i=new Vi(t);for(const t of e)t.recalculate(i,n)}class Od{constructor(e){this.entries={},this.scheduler=e}request(e,t,n,i){const r=this.entries[e]=this.entries[e]||{callbacks:[]};if(r.result){const[e,n]=r.result;return this.scheduler?this.scheduler.add(()=>{i(e,n)},t):i(e,n),()=>{}}return r.callbacks.push(i),r.cancel||(r.cancel=n((n,i)=>{r.result=[n,i];for(const e of r.callbacks)this.scheduler?this.scheduler.add(()=>{e(n,i)},t):e(n,i);setTimeout(()=>delete this.entries[e],3e3)})),()=>{r.result||(r.callbacks=r.callbacks.filter(e=>e!==i),r.callbacks.length||(r.cancel(),delete this.entries[e]))}}}function Fd(e,t,n){const i=JSON.stringify(e.request);return e.data&&(this.deduped.entries[i]={result:[null,e.data]}),this.deduped.request(i,{type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom},t=>{const i=we(e.request,(e,i,r,s)=>{e?t(e):i&&t(null,{vectorTile:n?void 0:new Cl.VectorTile(new lc(i)),rawData:i,cacheControl:r,expires:s})});return()=>{i.cancel(),t()}},t)}e.AUTH_ERR_MSG="NO_ACCESS_TOKEN",e.Aabb=fo,e.Actor=class{constructor(e,t,n){this.target=e,this.parent=t,this.mapId=n,this.callbacks={},this.cancelCallbacks={},E(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=D()?e:s,this.scheduler=new nh}send(e,t,n,i,r=!1,s){const a=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(n.metadata=s,this.callbacks[a]=n);const o=N(this.globalScope)?void 0:[];return this.target.postMessage({id:a,type:e,hasCallback:!!n,targetMapId:i,mustQueue:r,sourceMapId:this.mapId,data:Yr(t,o)},o),{cancel:()=>{n&&delete this.callbacks[a],this.target.postMessage({id:a,type:"<cancel>",targetMapId:i,sourceMapId:this.mapId})}}}receive(e){const t=e.data,n=t.id;if(n&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){const e=this.cancelCallbacks[n];delete this.cancelCallbacks[n],e&&e.cancel()}else if(D()||t.mustQueue){const e=this.callbacks[n];this.cancelCallbacks[n]=this.scheduler.add(()=>this.processTask(n,t),e&&e.metadata||{type:"message"})}else this.processTask(n,t)}processTask(e,t){if("<response>"===t.type){const n=this.callbacks[e];delete this.callbacks[e],n&&(t.error?n(Wr(t.error)):n(null,Wr(t.data)))}else{const n=N(this.globalScope)?void 0:[],i=t.hasCallback?(t,i)=>{delete this.cancelCallbacks[e],this.target.postMessage({id:e,type:"<response>",sourceMapId:this.mapId,error:t?Yr(t):null,data:Yr(i,n)},n)}:e=>{},r=Wr(t.data);if(this.parent[t.type])this.parent[t.type](t.sourceMapId,r,i);else if(this.parent.getWorkerSource){const e=t.type.split(".");this.parent.getWorkerSource(t.sourceMapId,e[0],r.source)[e[1]](r,i)}else i(new Error("Could not find function "+t.type))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},e.CanonicalTileID=mh,e.Color=lt,e.ColorMode=xd,e.Context=class{constructor(e){this.gl=e,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new Lh(this),this.clearDepth=new zh(this),this.clearStencil=new Hh(this),this.colorMask=new Qh(this),this.depthMask=new Vh(this),this.stencilMask=new jh(this),this.stencilFunc=new Gh(this),this.stencilOp=new Kh(this),this.stencilTest=new qh(this),this.depthRange=new $h(this),this.depthTest=new Yh(this),this.depthFunc=new Wh(this),this.blend=new Xh(this),this.blendFunc=new Jh(this),this.blendColor=new Zh(this),this.blendEquation=new ed(this),this.cullFace=new nd(this),this.cullFaceSide=new rd(this),this.frontFace=new rp(this),this.program=new id(this),this.activeTexture=new sd(this),this.viewport=new ad(this),this.bindFramebuffer=new od(this),this.bindRenderbuffer=new ld(this),this.bindTexture=new cd(this),this.bindVertexBuffer=new ud(this),this.bindElementBuffer=new hd(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new pd(this),this.pixelStoreUnpack=new fd(this),this.pixelStoreUnpackPremultiplyAlpha=new md(this),this.pixelStoreUnpackFlipY=new Ad(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureFilterAnisotropicForceOff=!1,this.extTextureHalfFloat=e.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(e.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=e.getExtension("EXT_color_buffer_half_float")),this.extTimerQuery=e.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(e,t){return new Oh(this,e,t)}createVertexBuffer(e,t,n){return new Rh(this,e,t,n)}createRenderbuffer(e,t,n){const i=this.gl,r=i.createRenderbuffer();return this.bindRenderbuffer.set(r),i.renderbufferStorage(i.RENDERBUFFER,e,t,n),this.bindRenderbuffer.set(null),r}createFramebuffer(e,t,n){return new _d(this,e,t,n)}clear({color:e,depth:t,stencil:n}){const i=this.gl;let r=0;e&&(r|=i.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==t&&(r|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),void 0!==n&&(r|=i.STENCIL_BUFFER_BIT,this.clearStencil.set(n),this.stencilMask.set(255)),i.clear(r)}setCullFace(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func!==this.gl.ALWAYS||e.mask?(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range)):this.depthTest.set(!1)}setStencilMode(e){e.test.func!==this.gl.ALWAYS||e.mask?(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask})):this.stencilTest.set(!1)}setColorMode(e){a(e.blendFunction,xd.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)}unbindVAO(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)}},e.CullFaceMode=Ed,e.DEMData=Dh,e.DataConstantProperty=Ji,e.DedupedRequest=Od,e.DepthMode=bd,e.DepthStencilAttachment=class extends vd{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}},e.EXTENT=8192,e.Elevation=class{getAtPoint(e,t=0){const n=this._source();if(!n)return t;if(e.y<0||e.y>1)return t;const i=n.getSource().maxzoom,r=1<<i,s=Math.floor(e.x),a=e.x-s,o=new gh(i,s,i,Math.floor(a*r),Math.floor(e.y*r)),l=this.findDEMTileFor(o);if(!l||!l.dem)return t;const u=l.dem,c=1<<l.tileID.canonical.z,h=(a*c-l.tileID.canonical.x)*u.dim,p=(e.y*c-l.tileID.canonical.y)*u.dim,d=Math.floor(h),f=Math.floor(p);return this.exaggeration()*Zt(Zt(u.get(d,f),u.get(d,f+1),p-f),Zt(u.get(d+1,f),u.get(d+1,f+1),p-f),h-d)}getAtTileOffset(e,t,n){const i=1<<e.canonical.z;return this.getAtPoint(new ph(e.wrap+(e.canonical.x+t/8192)/i,(e.canonical.y+n/8192)/i))}getForTilePoints(e,t,n,i){const r=Bd.create(this,e,i);
2return!!r&&(t.forEach(e=>{e[2]=this.exaggeration()*r.getElevationAt(e[0],e[1],n)}),!0)}getMinMaxForTile(e){const t=this.findDEMTileFor(e);if(!t||!t.dem)return null;const n=t.dem.tree,i=t.tileID,r=1<<e.canonical.z-i.canonical.z;let s=e.canonical.x/r-i.canonical.x,a=e.canonical.y/r-i.canonical.y,o=0;for(let t=0;t<e.canonical.z-i.canonical.z&&!n.leaves[o];t++){s*=2,a*=2;const e=2*Math.floor(a)+Math.floor(s);o=n.childOffsets[o]+e,s%=1,a%=1}return{min:this.exaggeration()*n.minimums[o],max:this.exaggeration()*n.maximums[o]}}raycast(e,t,n){throw new Error("Pure virtual method called.")}pointCoordinate(e){throw new Error("Pure virtual method called.")}_source(){throw new Error("Pure virtual method called.")}exaggeration(){throw new Error("Pure virtual method called.")}findDEMTileFor(e){throw new Error("Pure virtual method called.")}get visibleDemTiles(){throw new Error("Getter must be implemented in subclass.")}},e.ErrorEvent=De,e.EvaluationParameters=Vi,e.Event=Pe,e.Evented=Ue,e.Frustum=po,e.GlyphManager=lu,e.ImagePosition=Ic,e.LngLat=sh,e.LngLatBounds=ih,e.LocalGlyphMode=ou,e.MAX_SAFE_INTEGER=l,e.MercatorCoordinate=ph,e.ONE_EM=24,e.OverscaledTileID=gh,e.Point=i,e.Point$1=i,e.Properties=rs,e.RGBAImage=Eo,e.Ray=class{constructor(e,t){this.pos=e,this.dir=t}intersectsPlane(e,t,n){const i=to(t,this.dir);if(Math.abs(i)<1e-6)return!1;const r=to(ao(Ka(),e,this.pos),t)/i;return function(e,t){e[0]=t[0],e[1]=t[1],e[2]=t[2]}(n,Za(Ka(),this.pos,this.dir,r)),!0}},e.RequestManager=class{constructor(e,t){this._transformRequestFn=e,this._customAccessToken=t,this._createSkuToken()}_createSkuToken(){const e=function(){let e="";for(let t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",X,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}normalizeStyleURL(e,t){if(!J(e))return e;const n=te(e);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)}normalizeGlyphsURL(e,t){if(!J(e))return e;const n=te(e);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)}normalizeSourceURL(e,t){if(!J(e))return e;const n=te(e);return n.path=`/v4/${n.authority}.json`,n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||t)}normalizeSpriteURL(e,t,n,i){const r=te(e);return J(e)?(r.path=`/styles/v1${r.path}/sprite${t}${n}`,this._makeAPIURL(r,this._customAccessToken||i)):(r.path+=`${t}${n}`,ne(r))}normalizeTileURL(e,t,n){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!J(e))return e;const i=te(e);i.path=i.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${t||n&&"raster"!==i.authority&&512===n?"@2x":""}${j.supported?".webp":"$1"}`),"raster"===i.authority?i.path=`/${V.RASTER_URL_PREFIX}${i.path}`:(i.path=i.path.replace(/^.+\/v4\//,"/"),i.path=`/${V.TILE_URL_VERSION}${i.path}`);const r=this._customAccessToken||function(e){for(const t of e){const e=t.match(/^access_token=(.*)$/);if(e)return e[1]}return null}(i.params)||V.ACCESS_TOKEN;return V.REQUIRE_ACCESS_TOKEN&&r&&this._skuToken&&i.params.push("sku="+this._skuToken),this._makeAPIURL(i,r)}canonicalizeTileURL(e,t){const n=te(e);if(!n.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!n.path.match(/\.[\w]+$/))return e;let i="mapbox://";n.path.match(/^\/raster\/v1\//)?i+="raster/"+n.path.replace(`/${V.RASTER_URL_PREFIX}/`,""):i+="tiles/"+n.path.replace(`/${V.TILE_URL_VERSION}/`,"");let r=n.params;return t&&(r=r.filter(e=>!e.match(/^access_token=/))),r.length&&(i+="?"+r.join("&")),i}canonicalizeTileset(e,t){const n=!!t&&J(t),i=[];for(const t of e.tiles||[])Z(t)?i.push(this.canonicalizeTileURL(t,n)):i.push(t);return i}_makeAPIURL(e,t){const n="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",i=te(V.API_URL);if(e.protocol=i.protocol,e.authority=i.authority,"http"===e.protocol){const t=e.params.indexOf("secure");t>=0&&e.params.splice(t,1)}if("/"!==i.path&&(e.path=`${i.path}${e.path}`),!V.REQUIRE_ACCESS_TOKEN)return ne(e);if(!(t=t||V.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===t[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n);return e.params=e.params.filter(e=>-1===e.indexOf("access_token")),e.params.push("access_token="+t),ne(e)}},e.RequestPerformance=th,e.ResourceType=ye,e.SegmentVector=Aa,e.SourceCache=Cd,e.StencilMode=wd,e.StructArrayLayout1ui2=ks,e.StructArrayLayout2f1f2i16=_s,e.StructArrayLayout2i4=us,e.StructArrayLayout3f12=As,e.StructArrayLayout3ui6=ws,e.StructArrayLayout4i8=hs,e.Texture=Ju,e.Tile=wh,e.Transitionable=Ki,e.Uniform1f=Js,e.Uniform1i=class extends Xs{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))}},e.Uniform2f=class extends Xs{constructor(e,t){super(e,t),this.current=[0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]||(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))}},e.Uniform3f=class extends Xs{constructor(e,t){super(e,t),this.current=[0,0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]||(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))}},e.Uniform4f=Zs,e.UniformColor=ea,e.UniformMatrix3f=class extends Xs{constructor(e,t){super(e,t),this.current=na}set(e){for(let t=0;t<9;t++)if(e[t]!==this.current[t]){this.current=e,this.gl.uniformMatrix3fv(this.location,!1,e);break}}},e.UniformMatrix4f=class extends Xs{constructor(e,t){super(e,t),this.current=ta}set(e){if(e[12]!==this.current[12]||e[0]!==this.current[0])return this.current=e,void this.gl.uniformMatrix4fv(this.location,!1,e);for(let t=1;t<16;t++)if(e[t]!==this.current[t]){this.current=e,this.gl.uniformMatrix4fv(this.location,!1,e);break}}},e.UnwrappedTileID=Ah,e.ValidationError=Fe,e.VectorTileWorkerSource=class extends Ue{constructor(e,t,n,i,r){super(),this.actor=e,this.layerIndex=t,this.availableImages=n,this.loadVectorData=r||Fd,this.loading={},this.loaded={}
2,this.deduped=new Od(e.scheduler),this.isSpriteLoaded=i,this.scheduler=e.scheduler}loadTile(e,t){const n=e.uid,i=!!(e&&e.request&&e.request.collectResourceTiming)&&new th(e.request),r=this.loading[n]=new Dd(e);r.abort=this.loadVectorData(e,(s,a)=>{const o=!this.loading[n];if(delete this.loading[n],o||s||!a)return r.status="done",o||(this.loaded[n]=r),t(s);const l=a.rawData,u={};a.expires&&(u.expires=a.expires),a.cacheControl&&(u.cacheControl=a.cacheControl);const c={};if(i){const e=i.finish();e&&(c.resourceTiming=JSON.parse(JSON.stringify(e)))}r.vectorTile=a.vectorTile||new Cl.VectorTile(new lc(l));const h=()=>{r.parse(r.vectorTile,this.layerIndex,this.availableImages,this.actor,(e,n)=>{if(e||!n)return t(e);t(null,v({rawTileData:l.slice(0)},n,u,c))})};this.isSpriteLoaded?h():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(h,{type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom}):h()}),this.loaded=this.loaded||{},this.loaded[n]=r})}reloadTile(e,t){const n=this.loaded,i=e.uid,r=this;if(n&&n[i]){const s=n[i];s.showCollisionBoxes=e.showCollisionBoxes,s.enableTerrain=!!e.enableTerrain;const a=(e,n)=>{const i=s.reloadCallback;i&&(delete s.reloadCallback,s.parse(s.vectorTile,r.layerIndex,this.availableImages,r.actor,i)),t(e,n)};"parsing"===s.status?s.reloadCallback=a:"done"===s.status&&(s.vectorTile?s.parse(s.vectorTile,this.layerIndex,this.availableImages,this.actor,a):a())}}abortTile(e,t){const n=e.uid,i=this.loading[n];i&&(i.abort&&i.abort(),delete this.loading[n]),t()}removeTile(e,t){const n=this.loaded,i=e.uid;n&&n[i]&&delete n[i],t()}},e.WritingMode=Pc,e.ZoomHistory=Xr,e.add=Wa,e.addDynamicAttributes=Pu,e.altitudeFromMercatorZ=dh,e.asyncAll=y,e.bezier=p,e.bindAll=E,e.browser=Q,e.bufferConvexPolygon=function(e,t){const n=[];for(let i=0;i<e.length;i++){const r=A(i-1,-1,e.length-1),s=A(i+1,-1,e.length-1),a=e[i],o=e[s],l=e[r].sub(a).unit(),u=o.sub(a).unit(),c=u.angleWithSep(l.x,l.y),h=l.add(u).unit().mult(-1*t/Math.sin(c/2));n.push(a.add(h))}return n},e.cacheEntryPossiblyAdded=function(e){Ae++,Ae>dt&&(e.getActor().send("enforceCacheSizeLimit",de),Ae=0)},e.clamp=m,e.clearTileCache=function(e){const t=s.caches.delete("mapbox-tiles");e&&t.catch(e).then(()=>e())},e.clipLine=eu,e.clone=function(e){var t=new Ha(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.clone$1=B,e.collisionCircleLayout=Zl,e.config=V,e.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e},e.create=function(){var e=new Ha(16);return Ha!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},e.create$1=Qa,e.create$2=function(){var e=new Ha(4);return Ha!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e},e.createExpression=Jn,e.createLayout=ls,e.createStyleLayer=function(e){return"custom"===e.type?new Vu(e):new Ku[e.type](e)},e.cross=no,e.deepEqual=a,e.degToRad=h,e.div=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e},e.dot=to,e.ease=f,e.easeCubicInOut=d,e.emitValidationErrors=zr,e.endsWith=C,e.enforceCacheSizeLimit=function(e){pe(),ue&&ue.then(t=>{t.keys().then(n=>{for(let i=0;i<n.length-e;i++)t.delete(n[i])})})},e.evaluateSizeForFeature=tc,e.evaluateSizeForZoom=nc,e.evaluateVariableOffset=_u,e.evented=Li,e.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},e.exactEquals$1=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},e.extend=v,e.featureFilter=dr,e.filterObject=T,e.fromMat4=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e},e.fromQuat=function(e,t){var n=t[0],i=t[1],r=t[2],s=t[3],a=n+n,o=i+i,l=r+r,u=n*a,c=i*a,h=i*o,p=r*a,d=r*o,f=r*l,m=s*a,A=s*o,g=s*l;return e[0]=1-h-f,e[1]=c+g,e[2]=p-A,e[3]=0,e[4]=c-g,e[5]=1-u-f,e[6]=d+m,e[7]=0,e[8]=p+A,e[9]=d-m,e[10]=1-u-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},e.fromRotation=function(e,t){var n=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=n,e[2]=0,e[3]=-n,e[4]=i,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},e.getAnchorAlignment=Vc,e.getAnchorJustification=wu,e.getBounds=function(e){let t=1/0,n=1/0,r=-1/0,s=-1/0;
vendor: 4,571 bytes, line 2
2for(const i of e)t=Math.min(t,i.x),n=Math.min(n,i.y),r=Math.max(r,i.x),s=Math.max(s,i.y);return{min:new i(t,n),max:new i(r,s)}},e.getImage=ke,e.getJSON=function(e,t){return be(v(e,{type:"json"}),t)},e.getMapSessionAPI=ce,e.getRTLTextPluginStatus=zi,e.getReferrer=_e,e.getVideo=function(e,t){const n=s.document.createElement("video");n.muted=!0,n.onloadstart=function(){t(null,n)};for(let t=0;t<e.length;t++){const i=s.document.createElement("source");Ce(e[t])||(n.crossOrigin="Anonymous"),i.src=e[t],n.appendChild(i)}return{cancel:()=>{}}},e.identity=Va,e.identity$1=uo,e.invert=function(e,t){var n=t[0],i=t[1],r=t[2],s=t[3],a=t[4],o=t[5],l=t[6],u=t[7],c=t[8],h=t[9],p=t[10],d=t[11],f=t[12],m=t[13],A=t[14],g=t[15],y=n*o-i*a,v=n*l-r*a,b=n*u-s*a,_=i*l-r*o,w=i*u-s*o,x=r*u-s*l,E=c*m-h*f,C=c*A-p*f,S=c*g-d*f,T=h*A-p*m,B=h*g-d*m,k=p*g-d*A,I=y*k-v*B+b*T+_*S-w*C+x*E;return I?(e[0]=(o*k-l*B+u*T)*(I=1/I),e[1]=(r*B-i*k-s*T)*I,e[2]=(m*x-A*w+g*_)*I,e[3]=(p*w-h*x-d*_)*I,e[4]=(l*S-a*k-u*C)*I,e[5]=(n*k-r*S+s*C)*I,e[6]=(A*b-f*x-g*v)*I,e[7]=(c*x-p*b+d*v)*I,e[8]=(a*B-o*S+u*E)*I,e[9]=(i*S-n*B-s*E)*I,e[10]=(f*w-m*b+g*y)*I,e[11]=(h*b-c*w-d*y)*I,e[12]=(o*C-a*T-l*E)*I,e[13]=(n*T-i*C+r*E)*I,e[14]=(m*v-f*_-A*y)*I,e[15]=(c*_-h*v+p*y)*I,e):null},e.isMapboxURL=J,e.latFromMercatorY=hh,e.len=oo,e.length=$a,e.length$1=function(e){return Math.hypot(e[0],e[1],e[2],e[3])},e.loadVectorTile=Fd,e.makeRequest=be,e.mercatorXfromLng=lh,e.mercatorYfromLat=ch,e.mercatorZfromAltitude=uh,e.mul=Ga,e.mul$1=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e},e.multiply=ja,e.mvt=Cl,e.nextPowerOfTwo=function(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},e.normalize=eo,e.normalize$1=function(e,t){var n=t[0],i=t[1],r=t[2],s=t[3],a=n*n+i*i+r*r+s*s;return a>0&&(a=1/Math.sqrt(a)),e[0]=n*a,e[1]=i*a,e[2]=r*a,e[3]=s*a,e},e.number=Zt,e.offscreenCanvasSupported=ge,e.ortho=function(e,t,n,i,r,s,a){var o=1/(t-n),l=1/(i-r),u=1/(s-a);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+n)*o,e[13]=(r+i)*l,e[14]=(a+s)*u,e[15]=1,e},e.pbf=lc,e.perspective=function(e,t,n,i,r){var s,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=r&&r!==1/0?(e[10]=(r+i)*(s=1/(i-r)),e[14]=2*r*i*s):(e[10]=-1,e[14]=-2*i),e},e.pick=function(e,t){const n={};for(let i=0;i<t.length;i++){const r=t[i];r in e&&(n[r]=e[r])}return n},e.plugin=Qi,e.polygonIntersectsBox=Da,e.polygonIntersectsPolygon=xa,e.polygonizeBounds=function(e,t,n=0,r=!0){const s=new i(n,n),a=e.sub(s),o=t.add(s),l=[a,new i(o.x,a.y),o,new i(a.x,o.y)];return r&&l.push(a),l},e.posAttributes=bh,e.postMapLoadEvent=oe,e.postTurnstileEvent=se,e.potpack=kc,e.prevPowerOfTwo=function(e){return e<=1?1:Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},e.radToDeg=function(e){return e*u},e.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],e.registerForPluginStateChange=function(e){return e({pluginStatus:Oi,pluginURL:Fi}),Li.on("pluginStateChange",e),e},e.renderColorRamp=So,e.rotate=function(e,t,n){var i=t[0],r=t[1],s=t[2],a=t[3],o=Math.sin(n),l=Math.cos(n);return e[0]=i*l+s*o,e[1]=r*l+a*o,e[2]=i*-o+s*l,e[3]=r*-o+a*l,e},e.rotateX=function(e,t,n){var i=Math.sin(n),r=Math.cos(n),s=t[4],a=t[5],o=t[6],l=t[7],u=t[8],c=t[9],h=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*r+u*i,e[5]=a*r+c*i,e[6]=o*r+h*i,e[7]=l*r+p*i,e[8]=u*r-s*i,e[9]=c*r-a*i,e[10]=h*r-o*i,e[11]=p*r-l*i,e},e.rotateX$1=ho,e.rotateY=function(e,t,n){var i=Math.sin(n),r=Math.cos(n),s=t[0],a=t[1],o=t[2],l=t[3],u=t[8],c=t[9],h=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*r-u*i,e[1]=a*r-c*i,e[2]=o*r-h*i,e[3]=l*r-p*i,e[8]=s*i+u*r,e[9]=a*i+c*r,e[10]=o*i+h*r,e[11]=l*i+p*r,e},e.rotateZ=function(e,t,n){var i=Math.sin(n),r=Math.cos(n),s=t[0],a=t[1],o=t[2],l=t[3],u=t[4],c=t[5],h=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*r+u*i,e[1]=a*r+c*i,e[2]=o*r+h*i,e[3]=l*r+p*i,e[4]=u*r-s*i,e[5]=c*r-a*i,e[6]=h*r-o*i,e[7]=p*r-l*i,e},e.rotateZ$1=function(e,t,n){n*=.5;var i=t[0],r=t[1],s=t[2],a=t[3],o=Math.sin(n),l=Math.cos(n);return e[0]=i*l+r*o,e[1]=r*l-i*o,e[2]=s*l+a*o,e[3]=a*l-s*o,e},e.scale=function(e,t,n){var i=n[0],r=n[1],s=n[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*s,e[9]=t[9]*s,e[10
2]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.scale$1=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e},e.scale$2=Ja,e.scaleAndAdd=Za,e.setCacheLimits=function(e,t){de=e,dt=t},e.setRTLTextPlugin=function(e,t,n=!1){if("deferred"===Oi||"loading"===Oi||"loaded"===Oi)throw new Error("setRTLTextPlugin cannot be called multiple times.");Fi=Q.resolveURL(e),Oi="deferred",Ui=t,Ni(),n||Hi()},e.styleSpec=Oe,e.sub=ao,e.subtract=Xa,e.symbolSize=rc,e.transformMat3=function(e,t,n){var i=t[0],r=t[1],s=t[2];return e[0]=i*n[0]+r*n[3]+s*n[6],e[1]=i*n[1]+r*n[4]+s*n[7],e[2]=i*n[2]+r*n[5]+s*n[8],e},e.transformMat4=lo,e.transformQuat=io,e.translate=function(e,t,n){var i,r,s,a,o,l,u,c,h,p,d,f,m=n[0],A=n[1],g=n[2];return t===e?(e[12]=t[0]*m+t[4]*A+t[8]*g+t[12],e[13]=t[1]*m+t[5]*A+t[9]*g+t[13],e[14]=t[2]*m+t[6]*A+t[10]*g+t[14],e[15]=t[3]*m+t[7]*A+t[11]*g+t[15]):(r=t[1],s=t[2],a=t[3],o=t[4],l=t[5],u=t[6],c=t[7],h=t[8],p=t[9],d=t[10],f=t[11],e[0]=i=t[0],e[1]=r,e[2]=s,e[3]=a,e[4]=o,e[5]=l,e[6]=u,e[7]=c,e[8]=h,e[9]=p,e[10]=d,e[11]=f,e[12]=i*m+o*A+h*g+t[12],e[13]=r*m+l*A+p*g+t[13],e[14]=s*m+u*A+d*g+t[14],e[15]=a*m+c*A+f*g+t[15]),e},e.triggerPluginCompletionEvent=Ri,e.uniqueId=b,e.validateCustomStyleLayer=function(e){const t=[],n=e.id;return void 0===n&&t.push({message:`layers.${n}: missing required property "id"`}),void 0===e.render&&t.push({message:`layers.${n}: missing required method "render"`}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:`layers.${n}: property "renderingMode" must be either "2d" or "3d"`}),t},e.validateLight=Rr,e.validateStyle=Fr,e.values=g,e.vectorTile=Cl,e.version="2.1.1",e.warnOnce=I,e.webpSupported=j,e.window=s,e.wrap=A})),o(0,(function(e){function t(e){const n=typeof e;if("number"===n||"boolean"===n||"string"===n||null==e)return JSON.stringify(e);if(Array.isArray(e)){let n="[";for(const r of e)n+=t(r)+",";return n+"]"}const r=Object.keys(e).sort();let o="{";for(let n=0;n<r.length;n++)o+=`${JSON.stringify(r[n])}:${t(e[r[n]])},`;return o+"}"}function n(n){let r="";for(const o of e.refProperties)r+="/"+t(n[o]);return r}class r{constructor(e){this.keyCache={},e&&this.replace(e)}replace(e){this._layerConfigs={},this._layers={},this.update(e,[])}update(t,r){for(const n of t){this._layerConfigs[n.id]=n;const t=this._layers[n.id]=e.createStyleLayer(n);t._featureFilter=e.featureFilter(t.filter),this.keyCache[n.id]&&delete this.keyCache[n.id]}for(const e of r)delete this.keyCache[e],delete this._layerConfigs[e],delete this._layers[e];this.familiesBySource={};const o=function(e,t){const r={};for(let o=0;o<e.length;o++){const i=t&&t[e[o].id]||n(e[o]);t&&(t[e[o].id]=i);let s=r[i];s||(s=r[i]=[]),s.push(e[o])}const o=[];for(const e in r)o.push(r[e]);return o}(e.values(this._layerConfigs),this.keyCache);for(const e of o){const t=e.map(e=>this._layers[e.id]),n=t[0];if("none"===n.visibility)continue;const r=n.source||"";let o=this.familiesBySource[r];o||(o=this.familiesBySource[r]={});const i=n.sourceLayer||"_geojsonTileLayer";let s=o[i];s||(s=o[i]=[]),s.push(t)}}}const{ImageBitmap:o}=e.window;class i{loadTile(t,n){const{uid:r,encoding:i,rawImageData:s,padding:a,buildQuadTree:l}=t,u=o&&s instanceof o?this.getImageData(s,a):s;n(null,new e.DEMData(r,u,i,a<1,l))}getImageData(t,n){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(t.width,t.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=t.width,this.offscreenCanvas.height=t.height,this.offscreenCanvasContext.drawImage(t,0,0,t.width,t.height);const r=this.offscreenCanvasContext.getImageData(-n,-n,t.width+2*n,t.height+2*n);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new e.RGBAImage({width:r.width,height:r.height},r.data)}}function s(e,t){if(0!==e.length){a(e[0],t);for(var n=1;n<e.length;n++)a(e[n],!t)}}function a(e,t){for(var n=0,r=0,o=e.length,i=o-1;r<o;i=r++)n+=(e[r][0]-e[i][0])*(e[i][1]+e[r][1]);n>=0!=!!t&&e.reverse()}const l=e.vectorTile.VectorTileFeature.prototype.toGeoJSON;class u{constructor(t){this._feature=t,this.extent=e.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=p
vendor: 11,213 bytes, line 2
2arseInt(t.id,10))}loadGeometry(){if(1===this._feature.type){const t=[];for(const n of this._feature.geometry)t.push([new e.Point$1(n[0],n[1])]);return t}{const t=[];for(const n of this._feature.geometry){const r=[];for(const t of n)r.push(new e.Point$1(t[0],t[1]));t.push(r)}return t}}toGeoJSON(e,t,n){return l.call(this,e,t,n)}}class c{constructor(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.EXTENT,this.length=t.length,this._features=t}feature(e){return new u(this._features[e])}}var h=e.vectorTile.VectorTileFeature,d=p;function p(e,t){this.options=t||{},this.features=e,this.length=e.length}function f(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}p.prototype.feature=function(e){return new f(this.features[e],this.options.extent)},f.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var n=0;n<t.length;n++){for(var r=t[n],o=[],i=0;i<r.length;i++)o.push(new e.Point$1(r[i][0],r[i][1]));this.geometry.push(o)}return this.geometry},f.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,n=-1/0,r=1/0,o=-1/0,i=0;i<e.length;i++)for(var s=e[i],a=0;a<s.length;a++){var l=s[a];t=Math.min(t,l.x),n=Math.max(n,l.x),r=Math.min(r,l.y),o=Math.max(o,l.y)}return[t,r,n,o]},f.prototype.toGeoJSON=h.prototype.toGeoJSON;var g=A,m=d;function A(t){var n=new e.pbf;return function(e,t){for(var n in e.layers)t.writeMessage(3,y,e.layers[n])}(t,n),n.finish()}function y(e,t){var n;t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<e.length;n++)r.feature=e.feature(n),t.writeMessage(2,v,r);var o=r.keys;for(n=0;n<o.length;n++)t.writeStringField(3,o[n]);var i=r.values;for(n=0;n<i.length;n++)t.writeMessage(4,C,i[n])}function v(e,t){var n=e.feature;void 0!==n.id&&t.writeVarintField(1,n.id),t.writeMessage(2,_,e),t.writeVarintField(3,n.type),t.writeMessage(4,E,n)}function _(e,t){var n=e.feature,r=e.keys,o=e.values,i=e.keycache,s=e.valuecache;for(var a in n.properties){var l=i[a];void 0===l&&(r.push(a),i[a]=l=r.length-1),t.writeVarint(l);var u=n.properties[a],c=typeof u;"string"!==c&&"boolean"!==c&&"number"!==c&&(u=JSON.stringify(u));var h=c+":"+u,d=s[h];void 0===d&&(o.push(u),s[h]=d=o.length-1),t.writeVarint(d)}}function w(e,t){return(t<<3)+(7&e)}function x(e){return e<<1^e>>31}function E(e,t){for(var n=e.loadGeometry(),r=e.type,o=0,i=0,s=n.length,a=0;a<s;a++){var l=n[a],u=1;1===r&&(u=l.length),t.writeVarint(w(1,u));for(var c=3===r?l.length-1:l.length,h=0;h<c;h++){1===h&&1!==r&&t.writeVarint(w(2,c-1));var d=l[h].x-o,p=l[h].y-i;t.writeVarint(x(d)),t.writeVarint(x(p)),o+=d,i+=p}3===r&&t.writeVarint(w(7,1))}}function C(e,t){var n=typeof e;"string"===n?t.writeStringField(1,e):"boolean"===n?t.writeBooleanField(7,e):"number"===n&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}function b(e,t,n,r){S(e,n,r),S(t,2*n,2*r),S(t,2*n+1,2*r+1)}function S(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function T(e,t,n,r){const o=e-n,i=t-r;return o*o+i*i}g.fromVectorTileJs=A,g.fromGeojsonVt=function(e,t){t=t||{};var n={};for(var r in e)n[r]=new d(e[r].features,t),n[r].name=r,n[r].version=t.version,n[r].extent=t.extent;return A({layers:n})},g.GeoJSONWrapper=m;const B=e=>e[0],k=e=>e[1];class I{constructor(e,t=B,n=k,r=64,o=Float64Array){this.nodeSize=r,this.points=e;const i=e.length<65536?Uint16Array:Uint32Array,s=this.ids=new i(e.length),a=this.coords=new o(2*e.length);for(let r=0;r<e.length;r++)s[r]=r,a[2*r]=t(e[r]),a[2*r+1]=n(e[r]);!function e(t,n,r,o,i,s){if(i-o<=r)return;const a=o+i>>1;!function e(t,n,r,o,i,s){for(;i>o;){if(i-o>600){const a=i-o+1,l=r-o+1,u=Math.log(a),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1);e(t,n,r,Math.max(o,Math.floor(r-l*c/a+h)),Math.min(i,Math.floor(r+(a-l)*c/a+h)),s)}const a=n[2*r+s];let l=o,u=i;for(b(t,n,o,r),n[2*i+s]>a&&b(t,n,o,i);l<u;){for(b(t,n,l,u),l++,u--;n[2*l+s]<a;)l++;for(;n[2*u+s]>a;)u--}n[2*o+s]===a?b(t,n,o,u):(u++,b(t,n,u,i)),u<=r&&(o=u+1),r<=u&&(i=u-1)}}(t,n,a,o,i,s%2),e(t,n,r,o,a-1,s+1),e(t,n,r,a+1,i,s+1)}(s,a,r,0,s.length-1,0)}range(e,t,n,r){return function(e,t,n,r,o,i,s){const a=[0,e.length-1,0],l=[];let u,c;for(;a.length;){const h=a.pop(),d=a.pop(),p=a.pop();if(d-p<=s){for(let s=p;s<=d;s++)u=t[2*s],c=t[2*s+1],u>=n&&u<=o&&c>=r&&c<=i&&l.push(e[s]);continue}const f=Math.floor((p+d)/2);u=t[2*f],c=t[2*f+1],u>=n&&u<=o&&c>=r&&c<=i&&l.push(e[f]);const g=(h+1)%2;(0===h?n<=u:r<=c)&&(a.push(p),a.push(f-1),a.push(g)),(0===h?o>=u:i>=c)&&(a.push(f+1),a.push(d),a.push(g))}return l}(this.ids,this.coords,e,t,n,r,this.nodeSize)}within(e,t,n){return function(e,t,n,r,o,i){const s=[0,e.length-1,0],a=[],l=o*o;for(;s.length;){const u=s.pop(),c=s.pop(),h=s.pop();if(c-h<=i){for(let o=h;o<=c;o++)T(t[2*o],t[2*o+1],n,r)<=l&&a.push(e[o]);continue}const d=Math.floor((h+c)/2),p=t[2*d],f=t[2*d+1];T(p,f,n,r)<=l&&a.push(e[d]);const g=(u+1)%2;(0===u?n-o<=p:r-o<=f)&&(s.push(h),s.push(d-1),s.push(g)),(0===u?n+o>=p:r+o>=f)&&(s.push(d+1),s.push(c),s.push(g))}return a}(this.ids,this.coords,e,t,n,this.nodeSize)}}const M={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},P=Math.fround||(D=new Float32Array(1),e=>(D[0]=+e,D[0]));var D;class U{constructor(e){this.options=Q(Object.create(M),e),this.trees=new Array(this.options.maxZoom+1)}load(e){const{log:t,minZoom:n,maxZoom:r,nodeSize:o}=this.options;t&&console.time("total time");const i=`prepare ${e.length} points`;t&&console.time(i),this.points=e;let s=[];for(let t=0;t<e.length;t++)e[t].geometry&&s.push(F(e[t],t));this.trees[r+1]=new I(s,V,j,o,Float32Array),t&&console.timeEnd(i);for(let e=r;e>=n;e--){const n=+Date.now();s=this._cluster(s,e),this.trees[e]=new I(s,V,j,o,Float32Array),t&&console.log("z%d: %d clusters in %dms",e,s.length,+Date.now()-n)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,e[1]));let o=180===e[2]?180:((e[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,o=180;else if(n>o){const e=this.getClusters([n,r,180,i],t),s=this.getClusters([-180,r,o,i],t);return e.concat(s)}const s=this.trees[this._limitZoom(t)],a=s.range(L(n),z(i),L(o),z(r)),l=[];for(const e of a){const t=s.points[e];l.push(t.numPoints?R(t):this.points[t.index])}return l}getChildren(e){const t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);const i=o.points[t];if(!i)throw new Error(r);const s=this.options.radius/(this.options.extent*Math.pow(2,n-1)),a=o.within(i.x,i.y,s),l=[];for(const t of a){const n=o.points[t];n.parentId===e&&l.push(n.numPoints?R(n):this.points[n.index])}if(0===l.length)throw new Error(r);return l}getLeaves(e,t,n){const r=[];return this._appendLeaves(r,e,t=t||10,n=n||0,0),r}getTile(e,t,n){const r=this.trees[this._limitZoom(e)],o=Math.pow(2,e),{extent:i,radius:s}=this.options,a=s/i,l=(n-a)/o,u=(n+1+a)/o,c={features:[]};return this._addTileFeatures(r.range((t-a)/o,l,(t+1+a)/o,u),r.points,t,n,o,c),0===t&&this._addTileFeatures(r.range(1-a/o,l,1,u),r.points,o,n,o,c),t===o-1&&this._addTileFeatures(r.range(0,l,a/o,u),r.points,-1,n,o,c),c.features.length?c:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,r,o){const i=this.getChildren(t);for(const t of i){const i=t.properties;if(i&&i.cluster?o+i.point_count<=r?o+=i.point_count:o=this._appendLeaves(e,i.cluster_id,n,r,o):o<r?o++:e.push(t),e.length===n)break}return o}_addTileFeatures(e,t,n,r,o,i){for(const s of e){const e=t[s],a=e.numPoints,l={type:1,geometry:[[Math.round(this.options.extent*(e.x*o-n)),Math.round(this.options.extent*(e.y*o-r))]],tags:a?N(e):this.points[e.index].properties};let u;a?u=e.id:this.options.generateId?u=e.index:this.points[e.index].id&&(u=this.points[e.index].id),void 0!==u&&(l.id=u),i.features.push(l)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(+e,this.options.maxZoom+1))}_cluster(e,t){const n=[],{radius:r,extent:o,reduce:i,minPoints:s}=this.options,a=r/(o*Math.pow(2,t));for(let r=0;r<e.length;r++){const o=e[r];if(o.zoom<=t)continue;o.zoom=t;const l=this.trees[t+1],u=l.within(o.x,o.y,a),c=o.numPoints||1;let h=c;for(const e of u){const n=l.points[e];n.zoom>t&&(h+=n.numPoints||1)}if(h>=s){let e=o.x*c,s=o.y*c,a=i&&c>1?this._map(o,!0):null;const d=(r<<5)+(t+1)+this.points.length;for(const n of u){const r=l.points[n];if(r.zoom<=t)continue;r.zoom=t;const u=r.numPoints||1;e+=r.x*u,s+=r.y*u,r.parentId=d,i&&(a||(a=this._map(o,!0)),i(a,this._map(r)))}o.parentId=d,n.push(O(e/h,s/h,d,h,a))}else if(n.push(o),h>1)for(const e of u){const r=l.points[e];r.zoom<=t||(r.zoom=t,n.push(r))}}return n}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t){if(e.numPoints)return t?Q({},e.properties):e.properties;const n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?Q({},r):r}}function O(e,t,n,r,o){return{x:P(e),y:P(t),zoom:1/0,id:n,parentId:-1,numPoints:r,properties:o}}function F(e,t){const[n,r]=e.geometry.coordinates;return{x:P(L(n)),y:P(z(r)),zoom:1/0,index:t,parentId:-1}}function R(e){return{type:"Feature",id:e.id,properties:N(e),geometry:{type:"Point",coordinates:[(t=e.x,360*(t-.5)),H(e.y)]}};var t}function N(e){const t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return Q(Q({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function L(e){return e/360+.5}function z(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function H(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function Q(e,t){for(const n in t)e[n]=t[n];return e}function V(e){return e.x}function j(e){return e.y}function G(e,t,n,r,o,i){var s=o-n,a=i-r;if(0!==s||0!==a){var l=((e-n)*s+(t-r)*a)/(s*s+a*a);l>1?(n=o,r=i):l>0&&(n+=s*l,r+=a*l)}return(s=e-n)*s+(a=t-r)*a}function K(e,t,n,r){var o={id:void 0===e?null:e,type:t,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,n=e.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)$(e,t);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<t.length;r++)$(e,t[r]);else if("MultiPolygon"===n)for(r=0;r<t.length;r++)for(var o=0;o<t[r].length;o++)$(e,t[r][o])}(o),o}function $(e,t){for(var n=0;n<t.length;n+=3)e.minX=Math.min(e.minX,t[n]),e.minY=Math.min(e.minY,t[n+1]),e.maxX=Math.max(e.maxX,t[n]),e.maxY=Math.max(e.maxY,t[n+1])}function Y(e,t,n,r){if(t.geometry){var o=t.geometry.coordinates,i=t.geometry.type,s=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),a=[],l=t.id;if(n.promoteId?l=t.properties[n.promoteId]:n.generateId&&(l=r||0),"Point"===i)q(o,a);else if("MultiPoint"===i)for(var u=0;u<o.length;u++)q(o[u],a);else if("LineString"===i)W(o,a,s,!1);else if("MultiLineString"===i){if(n.lineMetrics){for(u=0;
vendor: 9,716 bytes, line 2
2u<o.length;u++)W(o[u],a=[],s,!1),e.push(K(l,"LineString",a,t.properties));return}X(o,a,s,!1)}else if("Polygon"===i)X(o,a,s,!0);else{if("MultiPolygon"!==i){if("GeometryCollection"===i){for(u=0;u<t.geometry.geometries.length;u++)Y(e,{id:l,geometry:t.geometry.geometries[u],properties:t.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(u=0;u<o.length;u++){var c=[];X(o[u],c,s,!0),a.push(c)}}e.push(K(l,i,a,t.properties))}}function q(e,t){t.push(J(e[0])),t.push(Z(e[1])),t.push(0)}function W(e,t,n,r){for(var o,i,s=0,a=0;a<e.length;a++){var l=J(e[a][0]),u=Z(e[a][1]);t.push(l),t.push(u),t.push(0),a>0&&(s+=r?(o*u-l*i)/2:Math.sqrt(Math.pow(l-o,2)+Math.pow(u-i,2))),o=l,i=u}var c=t.length-3;t[2]=1,function e(t,n,r,o){for(var i,s=o,a=r-n>>1,l=r-n,u=t[n],c=t[n+1],h=t[r],d=t[r+1],p=n+3;p<r;p+=3){var f=G(t[p],t[p+1],u,c,h,d);if(f>s)i=p,s=f;else if(f===s){var g=Math.abs(p-a);g<l&&(i=p,l=g)}}s>o&&(i-n>3&&e(t,n,i,o),t[i+2]=s,r-i>3&&e(t,i,r,o))}(t,0,c,n),t[c+2]=1,t.size=Math.abs(s),t.start=0,t.end=t.size}function X(e,t,n,r){for(var o=0;o<e.length;o++){var i=[];W(e[o],i,n,r),t.push(i)}}function J(e){return e/360+.5}function Z(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function ee(e,t,n,r,o,i,s,a){if(r/=t,i>=(n/=t)&&s<r)return e;if(s<n||i>=r)return null;for(var l=[],u=0;u<e.length;u++){var c=e[u],h=c.geometry,d=c.type,p=0===o?c.minX:c.minY,f=0===o?c.maxX:c.maxY;if(p>=n&&f<r)l.push(c);else if(!(f<n||p>=r)){var g=[];if("Point"===d||"MultiPoint"===d)te(h,g,n,r,o);else if("LineString"===d)ne(h,g,n,r,o,!1,a.lineMetrics);else if("MultiLineString"===d)ie(h,g,n,r,o,!1);else if("Polygon"===d)ie(h,g,n,r,o,!0);else if("MultiPolygon"===d)for(var m=0;m<h.length;m++){var A=[];ie(h[m],A,n,r,o,!0),A.length&&g.push(A)}if(g.length){if(a.lineMetrics&&"LineString"===d){for(m=0;m<g.length;m++)l.push(K(c.id,d,g[m],c.tags));continue}"LineString"!==d&&"MultiLineString"!==d||(1===g.length?(d="LineString",g=g[0]):d="MultiLineString"),"Point"!==d&&"MultiPoint"!==d||(d=3===g.length?"Point":"MultiPoint"),l.push(K(c.id,d,g,c.tags))}}}return l.length?l:null}function te(e,t,n,r,o){for(var i=0;i<e.length;i+=3){var s=e[i+o];s>=n&&s<=r&&(t.push(e[i]),t.push(e[i+1]),t.push(e[i+2]))}}function ne(e,t,n,r,o,i,s){for(var a,l,u=re(e),c=0===o?ae:oe,h=e.start,d=0;d<e.length-3;d+=3){var p=e[d],f=e[d+1],g=e[d+2],m=e[d+3],A=e[d+4],y=0===o?p:f,v=0===o?m:A,_=!1;s&&(a=Math.sqrt(Math.pow(p-m,2)+Math.pow(f-A,2))),y<n?v>n&&(l=c(u,p,f,m,A,n),s&&(u.start=h+a*l)):y>r?v<r&&(l=c(u,p,f,m,A,r),s&&(u.start=h+a*l)):se(u,p,f,g),v<n&&y>=n&&(l=c(u,p,f,m,A,n),_=!0),v>r&&y<=r&&(l=c(u,p,f,m,A,r),_=!0),!i&&_&&(s&&(u.end=h+a*l),t.push(u),u=re(e)),s&&(h+=a)}var w=e.length-3;p=e[w],f=e[w+1],g=e[w+2],(y=0===o?p:f)>=n&&y<=r&&se(u,p,f,g),w=u.length-3,i&&w>=3&&(u[w]!==u[0]||u[w+1]!==u[1])&&se(u,u[0],u[1],u[2]),u.length&&t.push(u)}function re(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function ie(e,t,n,r,o,i){for(var s=0;s<e.length;s++)ne(e[s],t,n,r,o,i,!1)}function se(e,t,n,r){e.push(t),e.push(n),e.push(r)}function ae(e,t,n,r,o,i){var s=(i-t)/(r-t);return e.push(i),e.push(n+(o-n)*s),e.push(1),s}function oe(e,t,n,r,o,i){var s=(i-n)/(o-n);return e.push(t+(r-t)*s),e.push(i),e.push(1),s}function le(e,t){for(var n=[],r=0;r<e.length;r++){var o,i=e[r],s=i.type;if("Point"===s||"MultiPoint"===s||"LineString"===s)o=ce(i.geometry,t);else if("MultiLineString"===s||"Polygon"===s){o=[];for(var a=0;a<i.geometry.length;a++)o.push(ce(i.geometry[a],t))}else if("MultiPolygon"===s)for(o=[],a=0;a<i.geometry.length;a++){for(var l=[],u=0;u<i.geometry[a].length;u++)l.push(ce(i.geometry[a][u],t));o.push(l)}n.push(K(i.id,s,o,i.tags))}return n}function ce(e,t){var n=[];n.size=e.size,void 0!==e.start&&(n.start=e.start,n.end=e.end);for(var r=0;r<e.length;r+=3)n.push(e[r]+t,e[r+1],e[r+2]);return n}function ue(e,t){if(e.transformed)return e;var n,r,o,i=1<<e.z,s=e.x,a=e.y;for(n=0;n<e.features.length;n++){var l=e.features[n],u=l.geometry,c=l.type;if(l.geometry=[],1===c)for(r=0;r<u.length;r+=2)l.geometry.push(he(u[r],u[r+1],t,i,s,a));else for(r=0;r<u.length;r++){var h=[];for(o=0;o<u[r].length;o+=2)h.push(he(u[r][o],u[r][o+1],t,i,s,a));l.geometry.push(h)}}return e.transformed=!0,e}function he(e,t,n,r,o,i){return[Math.round(n*(e*r-o)),Math.round(n*(t*r-i))]}function de(e,t,n,r,o){for(var i=t===o.maxZoom?0:o.tolerance/((1<<t)*o.extent),s={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:r,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},a=0;a<e.length;a++){s.numFeatures++,pe(s,e[a],i,o);var l=e[a].minX,u=e[a].minY,c=e[a].maxX,h=e[a].maxY;l<s.minX&&(s.minX=l),u<s.minY&&(s.minY=u),c>s.maxX&&(s.maxX=c),h>s.maxY&&(s.maxY=h)}return s}function pe(e,t,n,r){var o=t.geometry,i=t.type,s=[];if("Point"===i||"MultiPoint"===i)for(var a=0;a<o.length;a+=3)s.push(o[a]),s.push(o[a+1]),e.numPoints++,e.numSimplified++;else if("LineString"===i)fe(s,o,e,n,!1,!1);else if("MultiLineString"===i||"Polygon"===i)for(a=0;a<o.length;a++)fe(s,o[a],e,n,"Polygon"===i,0===a);else if("MultiPolygon"===i)for(var l=0;l<o.length;l++){var u=o[l];for(a=0;a<u.length;a++)fe(s,u[a],e,n,!0,0===a)}if(s.length){var c=t.tags||null;if("LineString"===i&&r.lineMetrics){for(var h in c={},t.tags)c[h]=t.tags[h];c.mapbox_clip_start=o.start/o.size,c.mapbox_clip_end=o.end/o.size}var d={geometry:s,type:"Polygon"===i||"MultiPolygon"===i?3:"LineString"===i||"MultiLineString"===i?2:1,tags:c};null!==t.id&&(d.id=t.id),e.features.push(d)}}function fe(e,t,n,r,o,i){var s=r*r;if(r>0&&t.size<(o?s:r))n.numPoints+=t.length/3;else{for(var a=[],l=0;l<t.length;l+=3)(0===r||t[l+2]>s)&&(n.numSimplified++,a.push(t[l]),a.push(t[l+1])),n.numPoints++;o&&function(e,t){for(var n=0,r=0,o=e.length,i=o-2;r<o;i=r,r+=2)n+=(e[r]-e[i])*(e[r+1]+e[i+1]);if(n>0===t)for(r=0,o=e.length;r<o/2;r+=2){var s=e[r],a=e[r+1];e[r]=e[o-2-r],e[r+1]=e[o-1-r],e[o-2-r]=s,e[o-1-r]=a}}(a,i),e.push(a)}}function me(e,t){var n=(t=this.options=function(e,t){for(var n in t)e[n]=t[n];return e}(Object.create(this.options),t)).debug;if(n&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(e,t){var n=[];if("FeatureCollection"===e.type)for(var r=0;r<e.features.length;r++)Y(n,e.features[r],t,r);else Y(n,"Feature"===e.type?e:{geometry:e},t);return n}(e,t);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(r=function(e,t){var n=t.buffer/t.extent,r=e,o=ee(e,1,-1-n,n,0,-1,2,t),i=ee(e,1,1-n,2+n,0,-1,2,t);return(o||i)&&(r=ee(e,1,-n,1+n,0,-1,2,t)||[],o&&(r=le(o,1).concat(r)),i&&(r=r.concat(le(i,-1)))),r}(r,t)).length&&this.splitTile(r,0,0,0),n&&(r.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function Ae(e,t,n){return 32*((1<<e)*n+t)+e}function ge(e,t){const n=e.tileID.canonical;if(!this._geoJSONIndex)return t(null,null);const r=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!r)return t(null,null);const o=new c(r.features);let i=g(o);0===i.byteOffset&&i.byteLength===i.buffer.byteLength||(i=new Uint8Array(i)),t(null,{vectorTile:o,rawData:i.buffer})}me.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},me.prototype.splitTile=function(e,t,n,r,o,i,s){for(var a=[e,t,n,r],l=this.options,u=l.debug;a.length;){r=a.pop(),n=a.pop(),t=a.pop(),e=a.pop();var c=1<<t,h=Ae(t,n,r),d=this.tiles[h];if(!d&&(u>1&&console.time("creation"),d=this.tiles[h]=de(e,t,n,r,l),this.tileCoords.push({z:t,x:n,y:r}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,n,r,d.numFeatures,d.numPoints,d.numSimplified),console.timeEnd("creation"));var p="z"+t;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(d.source=e,o){if(t===l.maxZoom||t===o)continue;var f=1<<o-t;if(n!==Math.floor(i/f)||r!==Math.floor(s/f))continue}else if(t===l.indexMaxZoom||d.numPoints<=l.indexMaxPoints)continue;if(d.source=null,0!==e.length){u>1&&console.time("clipping");var g,m,A,y,v,_,w=.5*l.buffer/l.extent,x=.5-w,E=.5+w,C=1+w;g=m=A=y=null,v=ee(e,c,n-w,n+E,0,d.minX,d.maxX,l),_=ee(e,c,n+x,n+C,0,d.minX,d.maxX,l),e=null,v&&(g=ee(v,c,r-w,r+E,1,d.minY,d.maxY,l),m=ee(v,c,r+x,r+C,1,d.minY,d.maxY,l),v=null),_&&(A=ee(_,c,r-w,r+E,1,d.minY,d.maxY,l),y=ee(_,c,r+x,r+C,1,d.minY,d.maxY,l),_=null),u>1&&console.timeEnd("clipping"),a.push(g||[],t+1,2*n,2*r),a.push(m||[],t+1,2*n,2*r+1),a.push(A||[],t+1,2*n+1,2*r),a.push(y||[],t+1,2*n+1,2*r+1)}}},me.prototype.getTile=function(e,t,n){var r=this.options,o=r.extent,i=r.debug;if(e<0||e>24)return null;var s=1<<e,a=Ae(e,t=(t%s+s)%s,n);if(this.tiles[a])return ue(this.tiles[a],o);i>1&&console.log("drilling down to z%d-%d-%d",e,t,n);for(var l,u=e,c=t,h=n;!l&&u>0;)u--,c=Math.floor(c/2),h=Math.floor(h/2),l=this.tiles[Ae(u,c,h)];return l&&l.source?(i>1&&console.log("found parent tile z%d-%d-%d",u,c,h),i>1&&console.time("drilling down"),this.splitTile(l.source,u,c,h,e,t,n),i>1&&console.timeEnd("drilling down"),this.tiles[a]?ue(this.tiles[a],o):null):null};class ye extends e.VectorTileWorkerSource{constructor(e,t,n,r,o){super(e,t,n,r,ge),o&&(this.loadGeoJSON=o)}loadData(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=t,this._pendingLoadDataParams=e,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())}
vendor: 8,051 bytes, line 2
2_loadData(){if(!this._pendingCallback||!this._pendingLoadDataParams)return;const t=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;const r=!!(n&&n.request&&n.request.collectResourceTiming)&&new e.RequestPerformance(n.request);this.loadGeoJSON(n,(o,i)=>{if(o||!i)return t(o);if("object"!=typeof i)return t(new Error(`Input data given to '${n.source}' is not a valid GeoJSON object.`));{!function e(t,n){var r,o=t&&t.type;if("FeatureCollection"===o)for(r=0;r<t.features.length;r++)e(t.features[r],n);else if("GeometryCollection"===o)for(r=0;r<t.geometries.length;r++)e(t.geometries[r],n);else if("Feature"===o)e(t.geometry,n);else if("Polygon"===o)s(t.coordinates,n);else if("MultiPolygon"===o)for(r=0;r<t.coordinates.length;r++)s(t.coordinates[r],n);return t}(i,!0);try{if(n.filter){const t=e.createExpression(n.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===t.result)throw new Error(t.value.map(e=>`${e.key}: ${e.message}`).join(", "));const r=i.features.filter(e=>t.value.evaluate({zoom:0},e));i={type:"FeatureCollection",features:r}}this._geoJSONIndex=n.cluster?new U(function({superclusterOptions:t,clusterProperties:n}){if(!n||!t)return t;const r={},o={},i={accumulated:null,zoom:0},s={properties:null},a=Object.keys(n);for(const t of a){const[i,s]=n[t],a=e.createExpression(s),l=e.createExpression("string"==typeof i?[i,["accumulated"],["get",t]]:i);r[t]=a.value,o[t]=l.value}return t.map=e=>{s.properties=e;const t={};for(const e of a)t[e]=r[e].evaluate(i,s);return t},t.reduce=(e,t)=>{s.properties=t;for(const t of a)i.accumulated=e[t],e[t]=o[t].evaluate(i,s)},t}(n)).load(i.features):function(e,t){return new me(e,t)}(i,n.geojsonVtOptions)}catch(o){return t(o)}this.loaded={};const a={};if(r){const e=r.finish();e&&(a.resourceTiming={},a.resourceTiming[n.source]=JSON.parse(JSON.stringify(e)))}t(null,a)}})}coalesce(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())}reloadTile(e,t){const n=this.loaded;return n&&n[e.uid]?super.reloadTile(e,t):this.loadTile(e,t)}loadGeoJSON(t,n){if(t.request)e.getJSON(t.request,n);else{if("string"!=typeof t.data)return n(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));try{return n(null,JSON.parse(t.data))}catch(e){return n(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`))}}}removeSource(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),t()}getClusterExpansionZoom(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}}getClusterChildren(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}}getClusterLeaves(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}}}class ve{constructor(t){this.self=t,this.actor=new e.Actor(t,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded=!1,this.workerSourceTypes={vector:e.VectorTileWorkerSource,geojson:ye},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(e,t)=>{if(this.workerSourceTypes[e])throw new Error(`Worker source with name "${e}" already registered.`);this.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=t=>{if(e.plugin.isParsed())throw new Error("RTL text plugin already registered.");e.plugin.applyArabicShaping=t.applyArabicShaping,e.plugin.processBidirectionalText=t.processBidirectionalText,e.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText}}checkIfReady(e,t,n){n()}setReferrer(e,t){this.referrer=t}spriteLoaded(t,n){this.isSpriteLoaded=n;for(const r in this.workerSources[t]){const o=this.workerSources[t][r];for(const t in o)o[t]instanceof e.VectorTileWorkerSource&&(o[t].isSpriteLoaded=n,o[t].fire(new e.Event("isSpriteLoaded")))}}setImages(e,t,n){this.availableImages[e]=t;for(const n in this.workerSources[e]){const r=this.workerSources[e][n];for(const e in r)r[e].availableImages=t}n()}enableTerrain(e,t,n){this.terrain=t,n()}setLayers(e,t,n){this.getLayerIndex(e).replace(t),n()}updateLayers(e,t,n){this.getLayerIndex(e).update(t.layers,t.removedIds),n()}loadTile(t,n,r){const o=this.enableTerrain?e.extend({enableTerrain:this.terrain},n):n;this.getWorkerSource(t,n.type,n.source).loadTile(o,r)}loadDEMTile(t,n,r){const o=this.enableTerrain?e.extend({buildQuadTree:this.terrain},n):n;this.getDEMWorkerSource(t,n.source).loadTile(o,r)}reloadTile(t,n,r){const o=this.enableTerrain?e.extend({enableTerrain:this.terrain},n):n;this.getWorkerSource(t,n.type,n.source).reloadTile(o,r)}abortTile(e,t,n){this.getWorkerSource(e,t.type,t.source).abortTile(t,n)}removeTile(e,t,n){this.getWorkerSource(e,t.type,t.source).removeTile(t,n)}removeSource(e,t,n){if(!this.workerSources[e]||!this.workerSources[e][t.type]||!this.workerSources[e][t.type][t.source])return;const r=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==r.removeSource?r.removeSource(t,n):n()}loadWorkerSource(e,t,n){try{this.self.importScripts(t.url),n()}catch(e){n(e.toString())}}syncRTLPluginState(t,n,r){try{e.plugin.setState(n);const t=e.plugin.getPluginURL();if(e.plugin.isLoaded()&&!e.plugin.isParsed()&&null!=t){this.self.importScripts(t);const n=e.plugin.isParsed();r(n?void 0:new Error("RTL Text Plugin failed to import scripts from "+t),n)}}catch(e){r(e.toString())}}getAvailableImages(e){let t=this.availableImages[e];return t||(t=[]),t}getLayerIndex(e){let t=this.layerIndexes[e];return t||(t=this.layerIndexes[e]=new r),t}getWorkerSource(e,t,n){return this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),this.workerSources[e][t][n]||(this.workerSources[e][t][n]=new this.workerSourceTypes[t]({send:(t,n,r,o,i,s)=>{this.actor.send(t,n,r,e,o,s)},scheduler:this.actor.scheduler},this.getLayerIndex(e),this.getAvailableImages(e),this.isSpriteLoaded)),this.workerSources[e][t][n]}getDEMWorkerSource(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new i),this.demWorkerSources[e][t]}enforceCacheSizeLimit(t,n){e.enforceCacheSizeLimit(n)}getWorkerPerformanceMetrics(e,t,n){n(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new ve(self)),ve})),o(0,(function(e){var t=i;function i(e){return!function(e){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var e,t,i=new Blob([""],{type:"text/javascript"}),n=URL.createObjectURL(i);try{t=new Worker(n),e=!0}catch(t){e=!1}return t&&t.terminate(),URL.revokeObjectURL(n),e}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var e=document.createElement("canvas");e.width=e.height=1;var t=e.getContext("2d");if(!t)return!1;var i=t.getImageData(0,0,1,1);return i&&i.width===e.width}()?(void 0===n[t=e&&e.failIfMajorPerformanceCaveat]&&(n[t]=function(e){var t,n=function(e){var t=document.createElement("canvas"),n=Object.create(i.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=e,t.getContext("webgl",n)||t.getContext("experimental-webgl",n)}(e);if(!n)return!1;try{t=n.createShader(n.VERTEX_SHADER)}catch(e){return!1}return!(!t||n.isContextLost())&&(n.shaderSource(t,"void main() {}
2"),n.compileShader(t),!0===n.getShaderParameter(t,n.COMPILE_STATUS))}(t)),n[t]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var t}(e)}var n={};i.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const a={create:function(t,i,n){const a=e.window.document.createElement(t);return void 0!==i&&(a.className=i),n&&n.appendChild(a),a},createNS:function(t,i){return e.window.document.createElementNS(t,i)}},r=e.window.document&&e.window.document.documentElement.style,o=r&&void 0!==r.userSelect?"userSelect":"WebkitUserSelect";let s;a.disableDrag=function(){r&&o&&(s=r[o],r[o]="none")},a.enableDrag=function(){r&&o&&(r[o]=s)},a.setTransform=function(e,t){e.style.transform=t};let l=!1;try{const t=Object.defineProperty({},"passive",{get(){l=!0}});e.window.addEventListener("test",t,t),e.window.removeEventListener("test",t,t)}catch(e){l=!1}a.addEventListener=function(e,t,i,n={}){e.addEventListener(t,i,"passive"in n&&l?n:n.capture)},a.removeEventListener=function(e,t,i,n={}){e.removeEventListener(t,i,"passive"in n&&l?n:n.capture)};const c=function(t){t.preventDefault(),t.stopPropagation(),e.window.removeEventListener("click",c,!0)};function h(e){const{userImage:t}=e;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}a.suppressClick=function(){e.window.addEventListener("click",c,!0),e.window.setTimeout(()=>{e.window.removeEventListener("click",c,!0)},0)},a.mousePos=function(t,i){const n=t.getBoundingClientRect();return new e.Point(i.clientX-n.left-t.clientLeft,i.clientY-n.top-t.clientTop)},a.touchPos=function(t,i){const n=t.getBoundingClientRect(),a=[];for(let r=0;r<i.length;r++)a.push(new e.Point(i[r].clientX-n.left-t.clientLeft,i[r].clientY-n.top-t.clientTop));return a},a.mouseButton=function(t){return void 0!==e.window.InstallTrigger&&2===t.button&&t.ctrlKey&&e.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button},a.remove=function(e){e.parentNode&&e.parentNode.removeChild(e)};class u extends e.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(const{ids:e,callback:t}of this.requestors)this._notify(e,t);this.requestors=[]}}getImage(e){return this.images[e]}addImage(e,t){this._validate(e,t)&&(this.images[e]=t)}_validate(t,i){let n=!0;return this._validateStretch(i.stretchX,i.data&&i.data.width)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "stretchX" value`))),n=!1),this._validateStretch(i.stretchY,i.data&&i.data.height)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "stretchY" value`))),n=!1),this._validateContent(i.content,i)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "content" value`))),n=!1),n}_validateStretch(e,t){if(!e)return!0;let i=0;for(const n of e){if(n[0]<i||n[1]<n[0]||t<n[1])return!1;i=n[1]}return!0}_validateContent(e,t){return!(e&&(4!==e.length||e[0]<0||t.data.width<e[0]||e[1]<0||t.data.height<e[1]||e[2]<0||t.data.width<e[2]||e[3]<0||t.data.height<e[3]||e[2]<e[0]||e[3]<e[1]))}updateImage(e,t){t.version=this.images[e].version+1,this.images[e]=t,this.updatedImages[e]=!0}removeImage(e){const t=this.images[e];delete this.images[e],delete this.patterns[e],t.userImage&&t.userImage.onRemove&&t.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(e,t){let i=!0;if(!this.isLoaded())for(const t of e)this.images[t]||(i=!1);this.isLoaded()||i?this._notify(e,t):this.requestors.push({ids:e,callback:t})}_notify(t,i){const n={};for(const i of t){this.images[i]||this.fire(new e.Event("styleimagemissing",{id:i}));const t=this.images[i];t?n[i]={data:t.data.clone(),pixelRatio:t.pixelRatio,sdf:t.sdf,version:t.version,stretchX:t.stretchX,stretchY:t.stretchY,content:t.content,hasRenderCallback:Boolean(t.userImage&&t.userImage.render)}:e.warnOnce(`Image "${i}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}i(null,n)}getPixelSize(){const{width:e,height:t}=this.atlasImage;return{width:e,height:t}}getPattern(t){const i=this.patterns[t],n=this.getImage(t);if(!n)return null;if(i&&i.position.version===n.version)return i.position;if(i)i.position.version=n.version;else{const i={w:n.data.width+2,h:n.data.height+2,x:0,y:0},a=new e.ImagePosition(i,n);
vendor: 4,382 bytes, line 2
2this.patterns[t]={bin:i,position:a}}return this._updatePatternAtlas(),this.patterns[t].position}bind(t){const i=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new e.Texture(t,this.atlasImage,i.RGBA),this.atlasTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}_updatePatternAtlas(){const t=[];for(const e in this.patterns)t.push(this.patterns[e].bin);const{w:i,h:n}=e.potpack(t),a=this.atlasImage;a.resize({width:i||1,height:n||1});for(const t in this.patterns){const{bin:i}=this.patterns[t],n=i.x+1,r=i.y+1,o=this.images[t].data,s=o.width,l=o.height;e.RGBAImage.copy(o,a,{x:0,y:0},{x:n,y:r},{width:s,height:l}),e.RGBAImage.copy(o,a,{x:0,y:l-1},{x:n,y:r-1},{width:s,height:1}),e.RGBAImage.copy(o,a,{x:0,y:0},{x:n,y:r+l},{width:s,height:1}),e.RGBAImage.copy(o,a,{x:s-1,y:0},{x:n-1,y:r},{width:1,height:l}),e.RGBAImage.copy(o,a,{x:0,y:0},{x:n+s,y:r},{width:1,height:l})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(e){for(const t of e){if(this.callbackDispatchedThisFrame[t])continue;this.callbackDispatchedThisFrame[t]=!0;const e=this.images[t];h(e)&&this.updateImage(t,e)}}}const d=new e.Properties({anchor:new e.DataConstantProperty(e.styleSpec.light.anchor),position:new class{constructor(){this.specification=e.styleSpec.light.position}possiblyEvaluate(t,i){return function([t,i,n]){const a=e.degToRad(i+90),r=e.degToRad(n);return{x:t*Math.cos(a)*Math.sin(r),y:t*Math.sin(a)*Math.sin(r),z:t*Math.cos(r),azimuthal:i,polar:n}}(t.expression.evaluate(i))}interpolate(t,i,n){return{x:e.number(t.x,i.x,n),y:e.number(t.y,i.y,n),z:e.number(t.z,i.z,n),azimuthal:e.number(t.azimuthal,i.azimuthal,n),polar:e.number(t.polar,i.polar,n)}}},color:new e.DataConstantProperty(e.styleSpec.light.color),intensity:new e.DataConstantProperty(e.styleSpec.light.intensity)});class f extends e.Evented{constructor(t){super(),this._transitionable=new e.Transitionable(d),this.setLight(t),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(t,i={}){if(!this._validate(e.validateLight,t,i))for(const i in t){const n=t[i];e.endsWith(i,"-transition")?this._transitionable.setTransition(i.slice(0,-"-transition".length),n):this._transitionable.setValue(i,n)}}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,i,n){return(!n||!1!==n.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:i,style:{glyphs:!0,sprite:!0},styleSpec:e.styleSpec})))}}const m=new e.Properties({source:new e.DataConstantProperty(e.styleSpec.terrain.source),exaggeration:new e.DataConstantProperty(e.styleSpec.terrain.exaggeration)});class p extends e.Evented{constructor(t){super(),this._transitionable=new e.Transitionable(m),this.set(t),this._transitioning=this._transitionable.untransitioned()}get(){return this._transitionable.serialize()}set(t){for(const i in t){const n=t[i];e.endsWith(i,"-transition")?this._transitionable.setTransition(i.slice(0,-"-transition".length),n):this._transitionable.setValue(i,n)}}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}}class A{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(e,t){const i=e.join(",")+String(t);return this.dashEntry[i]||(this.dashEntry[i]=this.addDash(e,t)),this.dashEntry[i]}getDashRanges(e,t,i){const n=[];let a=e.length%2==1?-e[e.length-1]*i:0,r=e[0]*i,o=!0;n.push({left:a,right:r,isDash:o,zeroLength:0===e[0]});let s=e[0];for(let t=1;t<e.length;t++){o=!o;const l=e[t];a=s*i,s+=l,r=s*i,n.push({left:a,right:r,isDash:o,zeroLength:0===l})}return n}addRoundDash(e,t,i){const n=t/2;for(let t=-i;t<=i;t++){const a=this.width*(this.nextRow+i+t);let r=0,o=e[r];for(let s=0;s<this.width;s++){s/o.right>1&&(o=e[++r]);const l=Math.abs(s-o.left),c=Math.abs(s-o.right),h=Math.min(l,c);let u;const d=t/i*(n+1);if(o.isDash){const e=n-Math.abs(d);u=Math.sqrt(h*h+e*e)}else u=n-Math.sqrt(h*h+d*d);this.data[a+s]=Math.max(0,Math.min(255,u+128))}}}
2addRegularDash(e){for(let t=e.length-1;t>=0;--t){const i=e[t],n=e[t+1];i.zeroLength?e.splice(t,1):n&&n.isDash===i.isDash&&(n.left=i.left,e.splice(t,1))}const t=e[0],i=e[e.length-1];t.isDash===i.isDash&&(t.left=i.left-this.width,i.right=t.right+this.width);const n=this.width*this.nextRow;let a=0,r=e[a];for(let t=0;t<this.width;t++){t/r.right>1&&(r=e[++a]);const i=Math.abs(t-r.left),o=Math.abs(t-r.right),s=Math.min(i,o);this.data[n+t]=Math.max(0,Math.min(255,(r.isDash?s:-s)+128))}}addDash(t,i){const n=i?7:0,a=2*n+1;if(this.nextRow+a>this.height)return e.warnOnce("LineAtlas out of space"),null;0===t.length&&t.push(1);let r=0;for(let i=0;i<t.length;i++)t[i]<0&&(e.warnOnce("Negative value is found in line dasharray, replacing values with 0"),t[i]=0),r+=t[i];if(0!==r){const e=this.width/r,a=this.getDashRanges(t,this.width,e);i?this.addRoundDash(a,e,n):this.addRegularDash(a)}const o={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:r};return this.nextRow+=a,this.dirty=!0,o}bind(e){const t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,this.data))}}class g{constructor(t,i){this.workerPool=t,this.actors=[],this.currentActor=0,this.id=e.uniqueId();const n=this.workerPool.acquire(this.id);for(let e=0;e<n.length;e++){const t=new g.Actor(n[e],i,this.id);t.name="Worker "+e,this.actors.push(t)}this.ready=!1,this.broadcast("checkIfReady",null,()=>{this.ready=!0})}broadcast(t,i,n){e.asyncAll(this.actors,(e,n)=>{e.send(t,i,n)},n=n||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(e=>{e.remove()}),this.actors=[],this.workerPool.release(this.id)}}function y(t,i,n){return i*(e.EXTENT/(t.tileSize*Math.pow(2,n-t.tileID.overscaledZ)))}g.Actor=e.Actor;class v{constructor(e,t,i,n){this.screenBounds=e,this.cameraPoint=t,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=i,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this.screenGeometry.map(e=>n.pointCoordinate3D(e)),this.cameraGeometry=this.bufferedCameraGeometry(0)}static createFromScreenPoints(t,i){let n,a;if(t instanceof e.Point||"number"==typeof t[0]){const r=e.Point.convert(t);n=[e.Point.convert(t)],a=i.isPointAboveHorizon(r)}else{const r=e.Point.convert(t[0]),o=e.Point.convert(t[1]);n=[r,o],a=e.polygonizeBounds(r,o).every(e=>i.isPointAboveHorizon(e))}return new v(n,i.getCameraPoint(),a,i)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(t){return e.polygonizeBounds(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],t)}bufferedCameraGeometry(t){const i=this.screenBounds[0],n=1===this.screenBounds.length?this.screenBounds[0].add(new e.Point(1,1)):this.screenBounds[1],a=e.polygonizeBounds(i,n,0,!1);return this.cameraPoint.y>n.y&&(this.cameraPoint.x>i.x&&this.cameraPoint.x<n.x?a.splice(3,0,this.cameraPoint):this.cameraPoint.x>=n.x?a[2]=this.cameraPoint:this.cameraPoint.x<=i.x&&(a[3]=this.cameraPoint)),e.bufferConvexPolygon(a,t)}containsTile(t,i,n){const a=t.queryPadding+1,r=n?this._bufferedCameraMercator(a,i).map(e=>t.tileID.getTilePoint(e)):this._bufferedScreenMercator(a,i).map(e=>t.tileID.getTilePoint(e)),o=this.screenGeometryMercator.map(e=>t.tileID.getTileVec3(e)),s=o.map(t=>new e.Point(t[0],t[1])),l=i.getFreeCameraOptions().position||new e.MercatorCoordinate(0,0,0),c=t.tileID.getTileVec3(l),h=o.map(t=>{const i=e.sub(t,t,c);return e.normalize(i,i),new e.Ray(c,i)}),u=y(t,1,i.zoom);if(e.polygonIntersectsBox(r,0,0,e.EXTENT,e.EXTENT))return{queryGeometry:this,tilespaceGeometry:s,tilespaceRays:h,bufferedTilespaceGeometry:r,bufferedTilespaceBounds:(d=e.getBounds(r),d.min.x=e.clamp(d.min.x,0,e.EXTENT),d.min.y=e.clamp(d.min.y,0,e.EXTENT),d.max.x=e.clamp(d.max.x,0,e.EXTENT),d.max.y=e.clamp(d.max.y,0,e.EXTENT),d),tile:t,t
2ileID:t.tileID,pixelToTileUnitsFactor:u};var d}_bufferedScreenMercator(e,t){const i=_(e);if(this._screenRaycastCache[i])return this._screenRaycastCache[i];{const n=this.bufferedScreenGeometry(e).map(e=>t.pointCoordinate3D(e));return this._screenRaycastCache[i]=n,n}}_bufferedCameraMercator(e,t){const i=_(e);if(this._cameraRaycastCache[i])return this._cameraRaycastCache[i];{const n=this.bufferedCameraGeometry(e).map(e=>t.pointCoordinate3D(e));return this._cameraRaycastCache[i]=n,n}}}function _(e){return 100*e|0}function b(t,i,n){const a=function(a,r){if(a)return n(a);if(r){const a=e.pick(e.extend(r,t),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);r.vector_layers&&(a.vectorLayers=r.vector_layers,a.vectorLayerIds=a.vectorLayers.map(e=>e.id)),a.tiles=i.canonicalizeTileset(a,t.url),n(null,a)}};return t.url?e.getJSON(i.transformRequest(i.normalizeSourceURL(t.url),e.ResourceType.Source),a):e.browser.frame(()=>a(null,t))}class w{constructor(t,i,n){this.bounds=e.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=i||0,this.maxzoom=n||24}validateBounds(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]}contains(t){const i=Math.pow(2,t.z),n=Math.floor(e.mercatorXfromLng(this.bounds.getWest())*i),a=Math.floor(e.mercatorYfromLat(this.bounds.getNorth())*i),r=Math.ceil(e.mercatorXfromLng(this.bounds.getEast())*i),o=Math.ceil(e.mercatorYfromLat(this.bounds.getSouth())*i);return t.x>=n&&t.x<r&&t.y>=a&&t.y<o}}class x extends e.Evented{constructor(t,i,n,a){super(),this.id=t,this.dispatcher=n,this.setEventedParent(a),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.extend({type:"raster"},i),e.extend(this,e.pick(i,["url","scheme","tileSize"]))}load(){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=b(this._options,this.map._requestManager,(t,i)=>{this._tileJSONRequest=null,this._loaded=!0,t?this.fire(new e.ErrorEvent(t)):i&&(e.extend(this,i),i.bounds&&(this.tileBounds=new w(i.bounds,this.minzoom,this.maxzoom)),e.postTurnstileEvent(i.tiles),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return e.extend({},this._options)}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(t,i){const n=e.browser.devicePixelRatio>=2,a=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),n,this.tileSize);t.request=e.getImage(this.map._requestManager.transformRequest(a,e.ResourceType.Tile),(n,a)=>{if(delete t.request,t.aborted)t.state="unloaded",i(null);else if(n)t.state="errored",i(n);else if(a){this.map._refreshExpiredTiles&&t.setExpiryData(a),delete a.cacheControl,delete a.expires;const n=this.map.painter.context,r=n.gl;t.texture=this.map.painter.getTileTexture(a.width),t.texture?t.texture.update(a,{useMipmap:!0}):(t.texture=new e.Texture(n,a,r.RGBA,{useMipmap:!0}),t.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_NEAREST),n.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,n.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,n.extTextureFilterAnisotropicMax)),t.state="loaded",e.cacheEntryPossiblyAdded(this.dispatcher),i(null)}})}abortTile(e,t){e.request&&(e.request.cancel(),delete e.request),t()}unloadTile(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()}hasTransition(){return!1}}var E=e.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class C extends e.Evented{constructor(e,t,i,n){super(),this.id=e,this.dispatcher=i,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(n),this.options=t}load(t,i){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),(n,a)=>{this._loaded=!0,n?this.fire(new e.ErrorEvent(n)):a&&(this.image=a,t&&(this.coordinates=t),i&&i(),this._finishLoading())})}loaded(){return this._loaded}updateImage(e){return this.image&&e.url?(this.options.url=e.url,this.load(e.coordinates,()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}setCoordinates(t){this.coordinates=t;const i=t.map(e.MercatorCoordinate.fromLngLat);this.tileID=function(t){let i=1/0,n=1/0,a=-1/0,r=-1/0;for(const e of t)i=Math.min(i,e.x),n=Math.min(n,e.y),a=Math.max(a,e.x),r=Math.max(r,e.y);const o=Math.max(a-i,r-n),s=Math.max(0,Math.floor(-Math.log(o)/M
2ath.LN2)),l=Math.pow(2,s);return new e.CanonicalTileID(s,Math.floor((i+a)/2*l),Math.floor((n+r)/2*l))}(i),this.minzoom=this.maxzoom=this.tileID.z;const n=i.map(e=>this.tileID.getTilePoint(e)._round());return this._boundsArray=new e.StructArrayLayout4i8,this._boundsArray.emplaceBack(n[0].x,n[0].y,0,0),this._boundsArray.emplaceBack(n[1].x,n[1].y,e.EXTENT,0),this._boundsArray.emplaceBack(n[3].x,n[3].y,0,e.EXTENT),this._boundsArray.emplaceBack(n[2].x,n[2].y,e.EXTENT,e.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const t=this.map.painter.context,i=t.gl;this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,E.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new e.Texture(t,this.image,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE));for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture)}}loadTile(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const S={vector:class extends e.Evented{constructor(t,i,n,a){if(super(),this.id=t,this.dispatcher=n,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.extend(this,e.pick(i,["url","scheme","tileSize","promoteId"])),this._options=e.extend({type:"vector"},i),this._collectResourceTiming=i.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(a),this._tileWorkers={},this._deduped=new e.DedupedRequest}load(){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=b(this._options,this.map._requestManager,(t,i)=>{this._tileJSONRequest=null,this._loaded=!0,t?this.fire(new e.ErrorEvent(t)):i&&(e.extend(this,i),i.bounds&&(this.tileBounds=new w(i.bounds,this.minzoom,this.maxzoom)),e.postTurnstileEvent(i.tiles,this.map._requestManager._customAccessToken),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}setSourceProperty(e){this._tileJSONRequest&&this._tileJSONRequest.cancel(),e();const t=this.map.style._getSourceCaches(this.id);for(const e of t)e.clearTiles();this.load()}setTiles(e){return this.setSourceProperty(()=>{this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return e.extend({},this._options)}loadTile(t,i){const n=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme)),a={request:this.map._requestManager.transformRequest(n,e.ResourceType.Tile),data:void 0,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.t
vendor: 1,230 bytes, line 2
2ype,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:t.isSymbolTile};if(a.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state)"loading"===t.state?t.reloadCallback=i:t.request=t.actor.send("reloadTile",a,r.bind(this));else if(t.actor=this._tileWorkers[n]=this._tileWorkers[n]||this.dispatcher.getActor(),this.dispatcher.ready)t.request=t.actor.send("loadTile",a,r.bind(this));else{const i=e.loadVectorTile.call({deduped:this._deduped},a,(e,i)=>{e||!i?r.call(this,e):(a.data={cacheControl:i.cacheControl,expires:i.expires,rawData:i.rawData.slice(0)},t.actor&&t.actor.send("loadTile",a,r.bind(this)))},!0);t.request={cancel:i}}function r(n,a){return delete t.request,t.aborted?i(null):n&&404!==n.status?i(n):(a&&a.resourceTiming&&(t.resourceTiming=a.resourceTiming),this.map._refreshExpiredTiles&&a&&t.setExpiryData(a),t.loadVectorData(a,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),i(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.t
2ype,source:this.id},void 0)}unloadTile(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id},void 0)}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}},raster:x,"raster-dem":class extends x{constructor(t,i,n,a){super(t,i,n,a),this.type="raster-dem",this.maxzoom=22,this._options=e.extend({type:"raster-dem"},i),this.encoding=i.encoding||"mapbox"}serialize(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}}loadTile(t,i){const n=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function a(e,n){e&&(t.state="errored",i(e)),n&&(t.dem=n,t.dem.onDeserialize(),t.needsHillshadePrepare=!0,t.needsDEMTextureUpload=!0,t.state="loaded",i(null))}t.request=e.getImage(this.map._requestManager.transformRequest(n,e.ResourceType.Tile),function(n,r){if(delete t.request,t.aborted)t.state="unloaded",i(null);else if(n)t.state="errored",i(n);else if(r){this.map._refreshExpiredTiles&&t.setExpiryData(r),delete r.cacheControl,delete r.expires;
2const i=e.window.ImageBitmap&&r instanceof e.window.ImageBitmap&&e.offscreenCanvasSupported(),n=1-(r.width-e.prevPowerOfTwo(r.width))/2;n<1||t.neighboringTiles||(t.neighboringTiles=this._getNeighboringTiles(t.tileID));const o=i?r:e.browser.getImageData(r,n),s={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:o,encoding:this.encoding,padding:n};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",s,a.bind(this)))}}.bind(this))}_getNeighboringTiles(t){const i=t.canonical,n=Math.pow(2,i.z),a=(i.x-1+n)%n,r=0===i.x?t.wrap-1:t.wrap,o=(i.x+1+n)%n,s=i.x+1===n?t.wrap+1:t.wrap,l={};return l[new e.OverscaledTileID(t.overscaledZ,r,i.z,a,i.y).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,i.z,o,i.y).key]={backfilled:!1},i.y>0&&(l[new e.OverscaledTileID(t.overscaledZ,r,i.z,a,i.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,i.z,i.x,i.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,i.z,o,i.y-1).key]={backfilled:!1}),i.y+1<n&&(l[new e.OverscaledTileID(t.overscaledZ,r,i.z,a,i.y+1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,i.z,i.x,i.y+1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,i.z,o,i.y+1).key]={backfilled:!1}),l}unloadTile(e){e.demTexture&&this.map.painter.saveTileTexture(e.demTexture),e.fbo&&(e.fbo.destroy(),delete e.fbo),e.dem&&delete e.dem,delete e.neighboringTiles,e.state="unloaded"}},geojson:class extends e.Evented{constructor(t,i,n,a){super(),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=n.getActor(),this.setEventedParent(a),this._data=i.data,this._options=e.extend({},i),this._collectResourceTiming=i.collectResourceTiming,this._resourceTiming=[],void 0!==i.maxzoom&&(this.maxzoom=i.maxzoom),i.type&&(this.type=i.type),i.attribution&&(this.attribution=i.attribution),this.promoteId=i.promoteId;const r=e.EXTENT/this.tileSize;this.workerOptions=e.extend({source:this.id,cluster:i.cluster||!1,geojsonVtOptions:{buffer:(void 0!==i.buffer?i.buffer:128)*r,tolerance:(void 0!==i.tolerance?i.tolerance:.375)*r,extent:e.EXTENT,maxZoom:this.maxzoom,lineMetrics:i.lineMetrics||!1,generateId:i.generateId||!1},superclusterOptions:{maxZoom:void 0!==i.clusterMaxZoom?i.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,i.clusterMinPoints||2),extent:e.EXTENT,radius:(i.clusterRadius||50)*r,log:!1,generateId:i.generateId||!1},clusterProperties:i.clusterProperties,filter:i.filter},i.workerOptions)}load(){this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData(t=>{if(t)return void this.fire(new e.ErrorEvent(t));const i={dataType:"source",sourceDataType:"metadata"};this._collectResourceTiming&&this._resourceTiming&&this._resourceTiming.length>0&&(i.resourceTiming=this._resourceTiming,this._resourceTiming=[]),this.fire(new e.Event("data",i))})}onAdd(e){this.map=e,this.load()}setData(t){return this._data=t,this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData(t=>{if(t)return void this.fire(new e.ErrorEvent(t));const i={dataType:"source",sourceDataType:"content"};this._collectResourceTiming&&this._resourceTiming&&this._resourceTiming.length>0&&(i.resourceTiming=this._resourceTiming,this._resourceTiming=[]),this.fire(new e.Event("data",i))}),this}getClusterExpansionZoom(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this}getClusterChildren(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this}getClusterLeaves(e,t,i,n){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:i},n),this}_updateWorkerData(t){this._loaded=!1;const i=e.extend({},this.workerOptions),n=this._data;"string"==typeof n?(i.request=this.map._requestManager.transformRequest(e.browser.resolveURL(n),e.ResourceType.Source),i.request.collectResourceTiming=this._collectResourceTiming):i.data=JSON.stringify(n),this.actor.send(this.type+".loadData",i,(e,n)=>{this._removed||n&&n.abandoned||(this._loaded=!0,n&&n.resourceTiming&&n.resourceTiming[this.id]&&(this._resourceTiming=n.resourceTiming[this.id].slice(0)),this.actor.send(this.type+".coalesce",{source:i.source},null),t(e))})}loaded(){return this._loaded}loadTile(t,i){const n=t.actor?"reloadTile":"loadTile";
2t.actor=this.actor,t.request=this.actor.send(n,{type:this.type,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(e,a)=>(delete t.request,t.unloadVectorData(),t.aborted?i(null):e?i(e):(t.loadVectorData(a,this.map.painter,"reloadTile"===n),i(null))))}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0}unloadTile(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})}onRemove(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})}serialize(){return e.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends C{constructor(e,t,i,n){super(e,t,i,n),this.roundZoom=!0,this.type="video",this.options=t}load(){this._loaded=!1;const t=this.options;this.urls=[];for(const i of t.urls)this.urls.push(this.map._requestManager.transformRequest(i,e.ResourceType.Source).url);e.getVideo(this.urls,(t,i)=>{this._loaded=!0,t?this.fire(new e.ErrorEvent(t)):i&&(this.video=i,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){const i=this.video.seekable;t<i.start(0)||t>i.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError("sources."+this.id,null,`Playback for this video can be set only between the ${i.start(0)} and ${i.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const t=this.map.painter.context,i=t.gl;this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,E.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture(t,this.video,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE));for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture)}}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:C,canvas:class extends C{constructor(t,i,n,a){super(t,i,n,a),i.coordinates?Array.isArray(i.coordinates)&&4===i.coordinates.length&&!i.coordinates.some(e=>!Array.isArray(e)||2!==e.length||e.some(e=>"number"!=typeof e))||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+t,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+t,null,'missing required property "coordinates"'))),i.animate&&"boolean"!=typeof i.animate&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+t,null,'optional "animate" property must be a boolean value'))),i.canvas?"string"==typeof i.canvas||i.canvas instanceof e.
vendor: 8,422 bytes, line 2
2window.HTMLCanvasElement||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+t,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+t,null,'missing required property "canvas"'))),this.options=i,this.animate=void 0===i.animate||i.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions())return;if(0===Object.keys(this.tiles).length)return;const i=this.map.painter.context,n=i.gl;this.boundsBuffer||(this.boundsBuffer=i.createVertexBuffer(this._boundsArray,E.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(i,this.canvas,n.RGBA,{premultiply:!0});for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture)}}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}}},T=function(t,i,n,a){const r=new S[i.type](t,i,n,a);if(r.id!==t)throw new Error(`Expected Source id to be ${t} instead of ${r.id}`);return e.bindAll(["load","abort","unload","serialize","prepare"],r),r};function B(t,i){const n=e.identity([]);return e.scale(n,n,[.5*t.width,.5*-t.height,1]),e.translate(n,n,[1,-1,0]),e.multiply(n,n,t.calculatePosMatrix(i.toUnwrapped()))}function k(e,t,i,n,a,r,o,s=!1){const l=e.tilesIn(n,o,s);l.sort(M);const c=[];for(const n of l)c.push({wrappedTileID:n.tile.tileID.wrapped().key,queryResults:n.tile.queryRenderedFeatures(t,i,e._state,n,a,r,B(e.transform,n.tile.tileID),s)});const h=function(e){const t={},i={};for(const n of e){const e=n.queryResults,a=n.wrappedTileID,r=i[a]=i[a]||{};for(const i in e){const n=e[i],a=r[i]=r[i]||{},o=t[i]=t[i]||[];for(const e of n)a[e.featureIndex]||(a[e.featureIndex]=!0,o.push(e))}}return t}(c);for(const t in h)h[t].forEach(t=>{const i=t.feature,n=e.getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=n});return h}function I(e,t){const i=e.getRenderableIds().map(t=>e.getTileByID(t)),n=[],a={};for(let e=0;e<i.length;e++){const r=i[e],o=r.tileID.canonical.key;a[o]||(a[o]=!0,r.querySourceFeatures(n,t))}return n}function M(e,t){const i=e.tileID,n=t.tileID;return i.overscaledZ-n.overscaledZ||i.canonical.y-n.canonical.y||i.wrap-n.wrap||i.canonical.x-n.canonical.x}function P(){return null!=vi.workerClass?new vi.workerClass:new e.window.Worker(vi.workerUrl)}const D="mapboxgl_preloaded_worker_pool";class U{constructor(){this.active={}}acquire(e){if(!this.workers)for(this.workers=[];this.workers.length<U.workerCount;)this.workers.push(new P);return this.active[e]=!0,this.workers.slice()}release(e){delete this.active[e],0===this.numActive()&&(this.workers.forEach(e=>{e.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[D]}numActive(){return Object.keys(this.active).length}}let O;function F(){return O||(O=new U),O}function R(t,i){const n={};for(const e in t)"ref"!==e&&(n[e]=t[e]);return e.refProperties.forEach(e=>{e in i&&(n[e]=i[e])}),n}function N(e){e=e.slice();const t=Object.create(null);for(let i=0;i<e.length;i++)t[e[i].id]=e[i];for(let i=0;i<e.length;i++)"ref"in e[i]&&(e[i]=R(e[i],t[e[i].ref]));return e}U.workerCount=2;const L={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight",setTerrain:"setTerrain"};function z(e,t,i){i.push({command:L.addSource,args:[e,t[e]]})}function H(e,t,i){t.push({command:L.removeSource,args:[e]}),i[e]=!0}function Q(e,t,i,n){H(e,i,n),z(e,t,i)}function V(t,i,n){let a;for(a in t[n])if(t[n].hasOwnProperty(a)&&"data"!==a&&!e.deepEqual(t[n][a],i[n][a]))return!1;for(a in i[n])if(i[n].hasOwnProperty(a)&&"data"!==a&&!e.deepEqual(t[n][a],i[n][a]))return!1;return!0}function q(t,i,n,a,r,o){let s;for(s in i=i||{},t=t||{})t.hasOwnProperty(s)&&(e.deepEqual(t[s],i[s])||n.push({command:o,args:[a,s,i[s],r]}));for(s in i)i.hasOwnProperty(s)&&!t.hasOwnProperty(s)&&(e.deepEqual(t[s],i[s])||n.push({command:o,args:[a,s,i[s],r]}))}function j(e){return e.id}function G(e,t){return e[t.id]=t,e}class K{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let e=1;e<this.points.length;e++)this._distances[e]=this._distances[e-1]+this.points[e].dist(this.points[e-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(t||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(t){if(1===this.points.length)return this.points[0];t=e.clamp(t,0,1);let i=1,n=this._distances[i];const a=t*this.paddedLength+this.padding;for(;n<a&&i<this._distances.length;)n=this._distances[++i];const r=i-1,o=this._distances[r],s=n-o,l=s>0?(a-o)/s:0;return this.points[r].mult(1-l).add(this.points[i].mult(l))}}class ${constructor(e,t,i){const n=this.boxCells=[],a=this.circleCells=[];this.xCellCount=Math.ceil(e/i),this.yCellCount=Math.ceil(t/i);for(let e=0;e<this.xCellCount*this.yCellCount;e++)n.push([]),a.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=e,this.height=t,this.xScale=this.xCellCount/e,this.yScale=this.yCellCount/t,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(e,t,i,n,a){this._forEachCell(t,i,n,a,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(i),this.bboxes.push(n),this.bboxes.push(a)}insertCircle(e,t,i,n){this._forEachCell(t-n,i-n,t+n,i+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(i),this.circles.push(n)}_insertBoxCell(e,t,i,n,a,r){this.boxCells[a].push(r)}_insertCircleCell(e,t,i,n,a,r){this.circleCells[a].push(r)}_query(e,t,i,n,a,r){if(i<0||e>this.width||n<0||t>this.height)return!a&&[];const o=[];if(e<=0&&t<=0&&this.width<=i&&this.height<=n){if(a)return!0;for(let e=0;e<this.boxKeys.length;e++)o.push({key:this.boxKeys[e],x1:this.bboxes[4*e],y1:this.bboxes[4*e+1],x2:this.bboxes[4*e+2],y2:this.bboxes[4*e+3]});for(let e=0;e<this.circleKeys.length;e++){const t=this.circles[3*e],i=this.circles[3*e+1],n=this.circles[3*e+2];o.push({key:this.circleKeys[e],x1:t-n,y1:i-n,x2:t+n,y2:i+n})}return r?o.filter(r):o}return this._forEachCell(e,t,i,n,this._queryCell,o,{hitTest:a,seenUids:{box:{},circle:{}}},r),a?o.length>0:o}_queryCircle(e,t,i,n,a){const r=e-i,o=e+i,s=t-i,l=t+i;if(o<0||r>this.width||l<0||s>this.height)return!n&&[];const c=[];return this._forEachCell(r,s,o,l,this._queryCellCircle,c,{hitTest:n,circle:{x:e,y:t,radius:i},seenUids:{box:{},circle:{}}},a),n?c.length>0:c}query(e,t,i,n,a){return this._query(e,t,i,n,!1,a)}hitTest(e,t,i,n,a){return this._query(e,t,i,n,!0,a)}hitTestCircle(e,t,i,n){return this._queryCircle(e,t,i,!0,n)}_queryCell(e,t,i,n,a,r,o,s){const l=o.seenUids,c=this.boxCells[a];if(null!==c){const a=this.bboxes;for(const h of c)if(!l.box[h]){l.box[h]=!0;const c=4*h;if(e<=a[c+2]&&t<=a[c+3]&&i>=a[c+0]&&n>=a[c+1]&&(!s||s(this.boxKeys[h]))){if(o.hitTest)return r.push(!0),!0;
2r.push({key:this.boxKeys[h],x1:a[c],y1:a[c+1],x2:a[c+2],y2:a[c+3]})}}}const h=this.circleCells[a];if(null!==h){const a=this.circles;for(const c of h)if(!l.circle[c]){l.circle[c]=!0;const h=3*c;if(this._circleAndRectCollide(a[h],a[h+1],a[h+2],e,t,i,n)&&(!s||s(this.circleKeys[c]))){if(o.hitTest)return r.push(!0),!0;{const e=a[h],t=a[h+1],i=a[h+2];r.push({key:this.circleKeys[c],x1:e-i,y1:t-i,x2:e+i,y2:t+i})}}}}}_queryCellCircle(e,t,i,n,a,r,o,s){const l=o.circle,c=o.seenUids,h=this.boxCells[a];if(null!==h){const e=this.bboxes;for(const t of h)if(!c.box[t]){c.box[t]=!0;const i=4*t;if(this._circleAndRectCollide(l.x,l.y,l.radius,e[i+0],e[i+1],e[i+2],e[i+3])&&(!s||s(this.boxKeys[t])))return r.push(!0),!0}}const u=this.circleCells[a];if(null!==u){const e=this.circles;for(const t of u)if(!c.circle[t]){c.circle[t]=!0;const i=3*t;if(this._circlesCollide(e[i],e[i+1],e[i+2],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[t])))return r.push(!0),!0}}}_forEachCell(e,t,i,n,a,r,o,s){const l=this._convertToXCellCoord(e),c=this._convertToYCellCoord(t),h=this._convertToXCellCoord(i),u=this._convertToYCellCoord(n);for(let d=l;d<=h;d++)for(let l=c;l<=u;l++)if(a.call(this,e,t,i,n,this.xCellCount*l+d,r,o,s))return}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,i,n,a,r){const o=n-e,s=a-t,l=i+r;return l*l>o*o+s*s}_circleAndRectCollide(e,t,i,n,a,r,o){const s=(r-n)/2,l=Math.abs(e-(n+s));if(l>s+i)return!1;const c=(o-a)/2,h=Math.abs(t-(a+c));if(h>c+i)return!1;if(l<=s||h<=c)return!0;const u=l-s,d=h-c;return u*u+d*d<=i*i}}function Y(t,i,n,a,r){const o=e.create();return i?(e.scale(o,o,[1/r,1/r,1]),n||e.rotateZ(o,o,a.angle)):e.multiply(o,a.labelPlaneMatrix,t),o}function W(t,i,n,a,r){if(i){const i=e.clone(t);return e.scale(i,i,[r,r,1]),n||e.rotateZ(i,i,-a.angle),i}return a.glCoordMatrix}function X(t,i,n=0){const a=[t.x,t.y,n,1];n?e.transformMat4(a,a,i):le(a,a,i);const r=a[3];return{point:new e.Point(a[0]/r,a[1]/r),signedDistanceFromCamera:r}}function J(e,t){return Math.min(.5+e/t*.5,1.5)}function Z(e,t){const i=e[0]/e[3],n=e[1]/e[3];return i>=-t[0]&&i<=t[0]&&n>=-t[1]&&n<=t[1]}function ee(t,i,n,a,r,o,s,l,c){const h=a?t.textSizeData:t.iconSizeData,u=e.evaluateSizeForZoom(h,n.transform.zoom),d=[256/n.width*2+1,256/n.height*2+1],f=a?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;f.clear();const m=t.lineVertexArray,p=a?t.text.placedSymbolArray:t.icon.placedSymbolArray,A=n.transform.width/n.transform.height;let g=!1;for(let a=0;a<p.length;a++){const y=p.get(a);if(y.hidden||y.writingMode===e.WritingMode.vertical&&!g){oe(y.numGlyphs,f);continue}g=!1;const v=c?c({x:y.anchorX,y:y.anchorY}):0,_=[y.anchorX,y.anchorY,v,1];if(e.transformMat4(_,_,i),!Z(_,d)){oe(y.numGlyphs,f);continue}const b=J(n.transform.cameraToCenterDistance,_[3]),w=e.evaluateSizeForFeature(h,u,y),x=s?w/b:w*b,E=new e.Point(y.anchorX,y.anchorY),C=X(E,r,v);if(C.signedDistanceFromCamera<=0){oe(y.numGlyphs,f);continue}const S=C.point;let T={};const B=s?null:c,k=re(y,x,!1,l,i,r,o,t.glyphOffsetArray,m,f,S,E,T,A,B);g=k.useVertical,B&&k.needsFlipping&&(T={}),(k.notEnoughRoom||g||k.needsFlipping&&re(y,x,!0,l,i,r,o,t.glyphOffsetArray,m,f,S,E,T,A,B).notEnoughRoom)&&oe(y.numGlyphs,f)}a?t.text.dynamicLayoutVertexBuffer.updateData(f):t.icon.dynamicLayoutVertexBuffer.updateData(f)}function te(e,t,i,n,a,r,o,s,l,c,h,u,d){const f=s.glyphStartIndex+s.numGlyphs,m=s.lineStartIndex,p=s.lineStartIndex+s.lineLength,A=t.getoffsetX(s.glyphStartIndex),g=t.getoffsetX(f-1),y=se(e*A,i,n,a,r,o,s.segment,m,p,l,c,h,u,d,!0);if(!y)return null;const v=se(e*g,i,n,a,r,o,s.segment,m,p,l,c,h,u,d,!0);return v?{first:y,last:v}:null}function ne(t,i,n,a){return t===e.WritingMode.horizontal&&Math.abs(n.y-i.y)>Math.abs(n.x-i.x)*a?{useVertical:!0}:(t===e.WritingMode.vertical?i.y<n.y:i.x>n.x)?{needsFlipping:!0}:null}function re(t,i,n,a,r,o,s,l,c,h,u,d,f,m,p){const A=i/24,g=t.lineOffsetX*A,y=t.lineOffsetY*A;let v;if(t.numGlyphs>1){const e=t.glyphStartIndex+t.numGlyphs,i=t.lineStartIndex,r=t.lineStartIndex+t.lineLength,h=te(A,l,g,y,n,u,d,t,c,o,f,p);if(!h)return{notEnoughRoom:!0};const _=X(h.first.point,s).point,b=X(h.last.point,s).point;if(a&&!n){const e=ne(t.writingMode,_,b,m);if(e)return e}v=[h.first];for(let a=t.glyphStartIndex+1;a<e-1;a++)v.push(se(A*l.getoffsetX(a),g,y,n,u,d,t.segment,i,r,c,o,f,p));v.push(h.last)}
2else{if(a&&!n){const i=X(d,r).point,n=t.lineStartIndex+t.segment+1,a=new e.Point(c.getx(n),c.gety(n)),o=X(a,r),s=o.signedDistanceFromCamera>0?o.point:ie(d,a,i,1,r),l=ne(t.writingMode,i,s,m);if(l)return l}const i=se(A*l.getoffsetX(t.glyphStartIndex),g,y,n,u,d,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,c,o,f,p);if(!i)return{notEnoughRoom:!0};v=[i]}for(const t of v)e.addDynamicAttributes(h,t.point,t.angle);return{}}function ie(e,t,i,n,a,r){const o=e.add(e.sub(t)._unit()),s=X(o,a,r?r(o):0).point,l=i.sub(s);return i.add(l._mult(n/l.mag()))}function se(t,i,n,a,r,o,s,l,c,h,u,d,f,m,p){const A=a?t-i:t+i;let g=A>0?1:-1,y=0;a&&(g*=-1,y=Math.PI),g<0&&(y+=Math.PI);let v=g>0?l+s:l+s+1,_=r,b=r,w=0,x=0;const E=Math.abs(A),C=[],S=[];let T=o;const B=()=>{const t=v-g;return 0===w?o:new e.Point(h.getx(t),h.gety(t))},k=()=>ie(B(),T,b,E-w+1,u,f);for(;w+x<=E;){if(v+=g,v<l||v>=c)return null;if(b=_,C.push(_),m&&S.push(T||B()),_=d[v],void 0===_){T=new e.Point(h.getx(v),h.gety(v));const t=X(T,u,f?f(T):0);_=t.signedDistanceFromCamera>0?d[v]=t.point:k()}else T=null;w+=x,x=b.dist(_)}p&&f&&(T=T||new e.Point(h.getx(v),h.gety(v)),d[v]=_=void 0===d[v]?_:k(),x=b.dist(_));const I=(E-w)/x,M=_.sub(b),P=M.mult(I)._add(b);n&&P._add(M._unit()._perp()._mult(n*g));const D=y+Math.atan2(_.y-b.y,_.x-b.x);return C.push(P),m&&(T=T||new e.Point(h.getx(v),h.gety(v)),S.push(function(t,i,n){const a=1-n;return new e.Point(t.x*a+i.x*n,t.y*a+i.y*n)}(S.length>0?S[S.length-1]:T,T,I))),{point:P,angle:D,path:C,tilePath:S}}const ae=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function oe(e,t){for(let i=0;i<e;i++){const e=t.length;t.resize(e+4),t.float32.set(ae,3*e)}}function le(e,t,i){const n=t[0],a=t[1];return e[0]=i[0]*n+i[4]*a+i[12],e[1]=i[1]*n+i[5]*a+i[13],e[3]=i[3]*n+i[7]*a+i[15],e}class ce{constructor(e,t=new $(e.width+200,e.height+200,25),i=new $(e.width+200,e.height+200,25)){this.transform=e,this.grid=t,this.ignoredGrid=i,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+100,this.screenBottomBoundary=e.height+100,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200}placeCollisionBox(e,t,i,n,a,r,o){const s=this.projectAndGetPerspectiveRatio(r,t.anchorPointX,t.anchorPointY,t.elevation),l=a*s.perspectiveRatio,c=(t.x1*e+i.x-t.padding)*l+s.point.x,h=(t.y1*e+i.y-t.padding)*l+s.point.y,u=(t.x2*e+i.x+t.padding)*l+s.point.x,d=(t.y2*e+i.y+t.padding)*l+s.point.y,f=s.perspectiveRatio<=.55||s.aboveHorizon;return!this.isInsideGrid(c,h,u,d)||!n&&this.grid.hitTest(c,h,u,d,o)||f?{box:[],offscreen:!1}:{box:[c,h,u,d],offscreen:this.isOffscreen(c,h,u,d)}}placeCollisionCircles(t,i,n,a,r,o,s,l,c,h,u,d,f,m){const p=[],A=this.transform.elevation,g=A?e=>A.getAtTileOffset(m,e.x,e.y):e=>0,y=new e.Point(i.anchorX,i.anchorY),v=g(y),_=this.projectAndGetPerspectiveRatio(o,y.x,y.y,v),{perspectiveRatio:b}=_,w=(h?r/b:r*b)/e.ONE_EM,x=X(y,s,v).point,E=_.signedDistanceFromCamera>0?te(w,a,i.lineOffsetX*w,i.lineOffsetY*w,!1,x,y,i,n,s,{},A&&!h?g:null,h&&!!A):null;let C=!1,S=!1,T=!0;if(E&&!_.aboveHorizon){const i=.5*d*b+f,n=new e.Point(-100,-100),a=new e.Point(this.screenRightBoundary,this.screenBottomBoundary),r=new K,o=E.first,s=E.last;let h=[];for(let e=o.path.length-1;e>=1;e--)h.push(o.path[e]);for(let e=1;e<s.path.length;e++)h.push(s.path[e]);const m=2.5*i;if(l){const e=h.map(A?(e,t)=>{const i=g(t<o.path.length-1?o.tilePath[o.path.length-1-t]:s.tilePath[t-o.path.length+2]);return X(e,l,i)}:e=>X(e,l));h=e.some(e=>e.signedDistanceFromCamera<=0)?[]:e.map(e=>e.point)}let y=[];if(h.length>0){const t=h[0].clone(),i=h[0].clone();for(let e=1;e<h.length;e++)t.x=Math.min(t.x,h[e].x),t.y=Math.min(t.y,h[e].y),i.x=Math.max(i.x,h[e].x),i.y=Math.max(i.y,h[e].y);y=t.x>=n.x&&i.x<=a.x&&t.y>=n.y&&i.y<=a.y?[h]:i.x<n.x||t.x>a.x||i.y<n.y||t.y>a.y?[]:e.clipLine([h],n.x,n.y,a.x,a.y)}for(const e of y){r.reset(e,.25*i);let n=0;n=r.length<=.5*i?1:Math.ceil(r.paddedLength/m)+1;for(let e=0;e<n;e++){const a=e/Math.max(n-1,1),o=r.lerp(a),s=o.x+100,l=o.y+100;p.push(s,l,i,0);const h=s-i,d=l-i,f=s+i,m=l+i;if(T=T&&this.isOffscreen(h,d,f,m),S=S||this.isInsideGrid(h,d,f,m),!t&&this.grid.hitTestCircle(s,l,i,u)&&(C=!0,!c))return{circles:[],offscreen:!1,collisionDetected:C}}}}return{circles:!c&&C||!S?[]:p,offscreen:T,collisionDetected:C}}queryRenderedSymbols(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};const i=[];let n=1/0,a=1/0,r=-1/0,o=-1/0;for(const s of t){const t=new e.Point(s.x+100,s.y+100);n=Math.min(n,t.x),a=Math.min(a,t.y),r=Math.max(r,t.x),o=Math.max(o,t.y),i.push(t)}const s=this.grid.query(n,a,r,o).concat(this.ignoredGrid.query(n,a,r,o)),l={},c={};for(const t of s){const n=t.key;if(void 0===l[n.bucketInstanceId]&&(l[n.bucketInstanceId]={}),l[n.bucketInstanceId][n.featureIndex])continue;const a=[new e.Point(t.x1,t.y1),new e.Point(t.x2,t.y1),new e.Point(t.x2,t.y2),new e.Point(t.x1,t.y2)];e.polygonIntersectsPolygon(i,a)&&(l[n.bucketInstanceId][n.featureIndex]=!0,void 0===c[n.bucketInstanceId]&&(c[n.bucketInstanceId]=[]),c[n.bucketInstanceId].push(n.featureIndex))}return c}insertCollisionBox(e,t,i,n,a){(t?this.ignoredGrid:this.grid).insert({bucketInstanceId:i,featureIndex:n,collisionGroupID:a},e[0],e[1],e[2],e[3])}insertCollisionCircles(e,t,i,n,a){const r=t?this.ignoredGrid:this.grid,o={bucketInstanceId:i,featureIndex:n,collisionGroupID:a};for(let t=0;t<e.length;
2t+=4)r.insertCircle(o,e[t],e[t+1],e[t+2])}projectAndGetPerspectiveRatio(t,i,n,a){const r=[i,n,a||0,1];let o=!1;return a||this.transform.pitch>0?(e.transformMat4(r,r,t),o=r[2]>r[3]):le(r,r,t),{point:new e.Point((r[0]/r[3]+1)/2*this.transform.width+100,(-r[1]/r[3]+1)/2*this.transform.height+100),perspectiveRatio:Math.min(.5+this.transform.cameraToCenterDistance/r[3]*.5,1.5),signedDistanceFromCamera:r[3],aboveHorizon:o}}isOffscreen(e,t,i,n){return i<100||e>=this.screenRightBoundary||n<100||t>this.screenBottomBoundary}isInsideGrid(e,t,i,n){return i>=0&&e<this.gridRightBoundary&&n>=0&&t<this.gridBottomBoundary}getViewportMatrix(){const t=e.identity([]);return e.translate(t,t,[-100,-100,0]),t}}class ue{constructor(e,t,i,n){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):n&&i?1:0,this.placed=i}isHidden(){return 0===this.opacity&&!this.placed}}class he{constructor(e,t,i,n,a){this.text=new ue(e?e.text:null,t,i,a),this.icon=new ue(e?e.icon:null,t,n,a)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class de{constructor(e,t,i){this.text=e,this.icon=t,this.skipFade=i}}class pe{constructor(){this.invProjMatrix=e.create(),this.viewportMatrix=e.create(),this.circles=[]}}class fe{constructor(e,t,i,n,a){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=i,this.bucketIndex=n,this.tileID=a}}class me{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){const t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:e=>e.collisionGroupID===t}}return this.collisionGroups[e]}}function Ae(t,i,n,a,r){const{horizontalAlign:o,verticalAlign:s}=e.getAnchorAlignment(t),l=-(o-.5)*i,c=-(s-.5)*n,h=e.evaluateVariableOffset(t,a);return new e.Point(l+h[0]*r,c+h[1]*r)}function ge(t,i,n,a,r){const o=new e.Point(t,i);return n&&o._rotate(a?r:-r),o}class ye{constructor(e,t,i,n){this.transform=e.clone(),this.collisionIndex=new ce(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new me(i),this.collisionCircleArrays={},this.prevPlacement=n,n&&(n.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(t,i,n,a){const r=n.getBucket(i),o=n.latestFeatureIndex;if(!r||!o||i.id!==r.layerIds[0])return;const s=n.collisionBoxArray,l=r.layers[0].layout,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),h=n.tileSize/e.EXTENT,u=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),d="map"===l.get("text-pitch-alignment"),f="map"===l.get("text-rotation-alignment"),m=y(n,1,this.transform.zoom),p=Y(u,d,f,this.transform,m);let A=null;if(d){const t=W(u,d,f,this.transform,m);A=e.multiply([],this.transform.labelPlaneMatrix,t)}this.retainedQueryData[r.bucketInstanceId]=new fe(r.bucketInstanceId,o,r.sourceLayerIndex,r.index,n.tileID);const g={bucket:r,layout:l,posMatrix:u,textLabelPlaneMatrix:p,labelToScreenMatrix:A,scale:c,textPixelRatio:h,holdingForFade:n.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:e.evaluateSizeForZoom(r.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:e.evaluateSizeForZoom(r.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(r.sourceID)};if(a)for(const e of r.sortKeyRanges){const{sortKey:i,symbolInstanceStart:n,symbolInstanceEnd:a}=e;t.push({sortKey:i,symbolInstanceStart:n,symbolInstanceEnd:a,parameters:g})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:r.symbolInstances.length,parameters:g})}attemptAnchorPlacement(e,t,i,n,a,r,o,s,l,c,h,u,d,f,m,p,A,g){const y=[u.textOffset0,u.textOffset1],v=f.getSymbolInstanceTextSize(A,u,this.transform.zoom,d),_=Ae(e,i,n,y,a),b=this.collisionIndex.placeCollisionBox(v,t,ge(_.x,_.y,r,o,this.transform.angle),h,s,l,c.predicate);if((!p||0!==this.collisionIndex.placeCollisionBox(f.getSymbolInstanceIconSize(g,this.transform.zoom,d),p,ge(_.x,_.y,r,o,this.transform.angle),h,s,l,c.predicate).box.length)&&b.box.length>0){let t;return this.prevPlacement&&this.prevPlacement.variableOffsets[u.crossTileID]&&this.prevPlacement.placements[u.crossTileID]&&this.prevPlacement.placements[u.crossTileID].text&&(t=this.prevPlacement.variableOffsets[u.crossTileID].anchor),this.variableOffsets[u.crossTileID]={textOffset:y,width:i,height:n,anchor:e,textBoxScale:a,prevAnchor:t},this.markUsedJustification(f,e,u,m),f.allowVerticalPlacement&&(this.markUsedOrientation(f,m,u),this.placedOrientations[u.crossTileID]=m),{shift:_,placedGlyphBoxes:b}}}placeLayerBucketPart(t,i,n){const{bucket:a,layout:r,posMatrix:o,textLabelPlaneMatr
vendor: 17,380 bytes, line 2
2ix:s,labelToScreenMatrix:l,textPixelRatio:c,holdingForFade:h,collisionBoxArray:u,partiallyEvaluatedTextSize:d,partiallyEvaluatedIconSize:f,collisionGroup:m}=t.parameters,p=r.get("text-optional"),A=r.get("icon-optional"),g=r.get("text-allow-overlap"),y=r.get("icon-allow-overlap"),v="map"===r.get("text-rotation-alignment"),_="map"===r.get("text-pitch-alignment"),b="none"!==r.get("icon-text-fit"),w="viewport-y"===r.get("symbol-z-order"),x=g&&(y||!a.hasIconData()||A),E=y&&(g||!a.hasTextData()||p);!a.collisionArrays&&u&&a.deserializeCollisionBoxes(u),n&&a.updateCollisionDebugBuffers(this.transform.zoom,u);const C=(t,u,w)=>{if(i[t.crossTileID])return;if(h)return void(this.placements[t.crossTileID]=new de(!1,!1,!1));let C=!1,S=!1,T=!0,B=null,k={box:null,offscreen:null},I={box:null,offscreen:null},M=null,P=null,D=null,U=0,O=0,F=0;w.textFeatureIndex?U=w.textFeatureIndex:t.useRuntimeCollisionCircles&&(U=t.featureIndex),w.verticalTextFeatureIndex&&(O=w.verticalTextFeatureIndex);const R=e=>{(this.transform.elevation||e.elevation)&&(e.elevation=this.transform.elevation?this.transform.elevation.getAtTileOffset(this.retainedQueryData[a.bucketInstanceId].tileID,e.anchorPointX,e.anchorPointY):0)},N=w.textBox;if(N){R(N);const i=i=>{let n=e.WritingMode.horizontal;if(a.allowVerticalPlacement&&!i&&this.prevPlacement){const e=this.prevPlacement.placedOrientations[t.crossTileID];e&&(this.placedOrientations[t.crossTileID]=e,n=e,this.markUsedOrientation(a,n,t))}return n},n=(i,n)=>{if(a.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&w.verticalTextBox){for(const t of a.writingModes)if(t===e.WritingMode.vertical?(k=n(),I=k):k=i(),k&&k.box&&k.box.length)break}else k=i()};if(r.get("text-variable-anchor")){let s=r.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[t.crossTileID]){const e=this.prevPlacement.variableOffsets[t.crossTileID];s.indexOf(e.anchor)>0&&(s=s.filter(t=>t!==e.anchor),s.unshift(e.anchor))}const l=(e,i,n)=>{const r=t.textBoxScale,l=(e.x2-e.x1)*r+2*e.padding,h=(e.y2-e.y1)*r+2*e.padding,p=b&&!y?i:null;p&&R(p);let A={box:[],offscreen:!1};const w=g?2*s.length:s.length;for(let i=0;i<w;++i){const g=this.attemptAnchorPlacement(s[i%s.length],e,l,h,r,v,_,c,o,m,i>=s.length,t,u,a,n,p,d,f);if(g&&(A=g.placedGlyphBoxes,A&&A.box&&A.box.length)){C=!0,B=g.shift;break}}return A};n(()=>l(N,w.iconBox,e.WritingMode.horizontal),()=>{const i=w.verticalTextBox;return i&&R(i),a.allowVerticalPlacement&&!(k&&k.box&&k.box.length)&&t.numVerticalGlyphVertices>0&&i?l(i,w.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null}}),k&&(C=k.box,T=k.offscreen);const h=i(k&&k.box);if(!C&&this.prevPlacement){const e=this.prevPlacement.variableOffsets[t.crossTileID];e&&(this.variableOffsets[t.crossTileID]=e,this.markUsedJustification(a,e.anchor,t,h))}}else{const r=(i,n)=>{const r=a.getSymbolInstanceTextSize(d,t,this.transform.zoom,u),s=this.collisionIndex.placeCollisionBox(r,i,new e.Point(0,0),g,c,o,m.predicate);return s&&s.box&&s.box.length&&(this.markUsedOrientation(a,n,t),this.placedOrientations[t.crossTileID]=n),s};n(()=>r(N,e.WritingMode.horizontal),()=>{const i=w.verticalTextBox;return a.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&i?(R(i),r(i,e.WritingMode.vertical)):{box:null,offscreen:null}}),i(k&&k.box&&k.box.length)}}if(M=k,C=M&&M.box&&M.box.length>0,T=M&&M.offscreen,t.useRuntimeCollisionCircles){const i=a.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),c=e.evaluateSizeForFeature(a.textSizeData,d,i),h=r.get("text-padding");P=this.collisionIndex.placeCollisionCircles(g,i,a.lineVertexArray,a.glyphOffsetArray,c,o,s,l,n,_,m.predicate,t.collisionCircleDiameter,h,this.retainedQueryData[a.bucketInstanceId].tileID),C=g||P.circles.length>0&&!P.collisionDetected,T=T&&P.offscreen}if(w.iconFeatureIndex&&(F=w.iconFeatureIndex),w.iconBox){const t=t=>{R(t);const i=b&&B?ge(B.x,B.y,v,_,this.transform.angle):new e.Point(0,0),n=a.getSymbolInstanceIconSize(f,this.transform.zoom,u);return this.collisionIndex.placeCollisionBox(n,t,i,y,c,o,m.predicate)};I&&I.box&&I.box.length&&w.verticalIconBox?(D=t(w.verticalIconBox),S=D.box.length>0):(D=t(w.iconBox),S=D.box.length>0),T=T&&D.offscreen}const L=p||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,z=A||0===t.numIconVertices;if(L||z?z?L||(S=S&&C):C=S&&C:S=C=S&&C,C&&M&&M.box&&this.collisionIndex.insertCollisionBox(M.box,r.get("text-ignore-placement"),a.bucketInstanceId,I&&I.box&&O?O:U,m.ID),S&&D&&this.collisionIndex.insertCollisionBox(D.box,r.get("icon-ignore-placement"),a.bucketInstanceId,F,m.ID),P&&(C&&this.collisionIndex.insertCollisionCircles(P.circles,r.get("text-ignore-placement"),a.bucketInstanceId,U,m.ID),n)){const e=a.bucketInstanceId;let t=this.collisionCircleArrays[e];void 0===t&&(t=this.collisionCircleArrays[e]=new pe);for(let e=0;e<P.circles.length;e+=4)t.circles.push(P.circles[e+0]),t.circles.push(P.circles[e+1]),t.circles.push(P.circles[e+2]),t.circles.push(P.collisionDetected?1:0)}this.placements[t.crossTileID]=new de(C||x,S||E,T||a.justReloaded),i[t.crossTileID]=!0};if(w){const e=a.getSortedSymbolIndexes(this.transform.angle);for(let t=e.length-1;t>=0;--t){const i=e[t];C(a.symbolInstances.get(i),i,a.collisionArrays[i])}}else for(let e=t.symbolInstanceStart;e<t.symbolInstanceEnd;e++)C(a.symbolInstances.get(e),e,a.collisionArrays[e]);if(n&&a.bucketInstanceId in this.collisionCircleArrays){const t=this.collisionCircleArrays[a.bucketInstanceId];e.invert(t.invProjMatrix,o),t.viewportMatrix=this.collisionIndex.getViewportMatrix()}a.justReloaded=!1}markUsedJustification(t,i,n,a){let r;r=a===e.WritingMode.vertical?n.verticalPlacedTextSymbolIndex:{left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex}[e.getAnchorJustification(i)];const o=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];for(const e of o)e>=0&&(t.text.placedSymbolArray.get(e).crossTileID=r>=0&&e!==r?0:n.crossTileID)}markUsedOrientation(t,i,n){const a=i===e.WritingMode.horizontal||i===e.WritingMode.horizontalOnly?i:0,r=i===e.WritingMode.vertical?i:0,o=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];for(const e of o)t.text.placedSymbolArray.get(e).placedOrientation=a;n.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=r)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;const t=this.prevPlacement;let i=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;const n=t?t.symbolFadeChange(e):1,a=t?t.opacities:{},r=t?t.variableOffsets:{},o=t?t.placedOrientations:{};for(const e in this.placements){const t=this.placements[e],r=a[e];r?(this.opacities[e]=new he(r,n,t.text,t.icon),i=i||t.text!==r.text.placed||t.icon!==r.icon.placed):(this.opacities[e]=new he(null,n,t.text,t.icon,t.skipFade),i=i||t.text||t.icon)}for(const e in a){const t=a[e];if(!this.opacities[e]){const a=new he(t,n,!1,!1);a.isHidden()||(this.opacities[e]=a,i=i||t.text.placed||t.icon.placed)}}for(const e in r)this.variableOffsets[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.variableOffsets[e]=r[e]);for(const e in o)this.placedOrientations[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.placedOrientations[e]=o[e]);i?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){const i={};for(const n of t){const t=n.getBucket(e);t&&n.latestFeatureIndex&&e.id===t.layerIds[0]&&this.updateBucketOpacities(t,i,n.collisionBoxArray)}}updateBucketOpacities(t,i,n){t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();const a=t.layers[0].layout,r=new he(null,0,!1,!1,!0),o=a.get("text-allow-overlap"),s=a.get("icon-allow-overlap"),l=a.get("text-variable-anchor"),c="map"===a.get("text-rotation-alignment"),h="map"===a.get("text-pitch-alignment"),u="none"!==a.get("icon-text-fit"),d=new he(null,0,o&&(s||!t.hasIconData()||a.get("icon-optional")),s&&(o||!t.hasTextData()||a.get("text-optional")),!0);!t.collisionArrays&&n&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(n);const f=(e,t,i)=>{for(let n=0;n<t/4;n++)e.opacityVertexArray.emplaceBack(i)};for(let n=0;n<t.symbolInstances.length;n++){const a=t.symbolInstances.get(n),{numHorizontalGlyphVertices:o,numVerticalGlyphVertices:s,crossTileID:m}=a;let p=this.opacities[m];i[m]?p=r:p||(p=d,this.opacities[m]=p),i[m]=!0;const A=a.numIconVertices>0,g=this.placedOrientations[a.crossTileID],y=g===e.WritingMode.vertical,v=g===e.WritingMode.horizontal||g===e.WritingMode.horizontalOnly;if(o>0||s>0){const e=Te(p.text);f(t.text,o,y?Be:e),f(t.text,s,v?Be:e);const i=p.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach(e=>{e>=0&&(t.text.placedSymbolArray.get(e).hidden=i||y?1:0)}),a.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=i||v?1:0);const n=this.variableOffsets[a.crossTileID];n&&this.markUsedJustification(t,n.anchor,a,g);const r=this.placedOrientations[a.crossTileID];r&&(this.markUsedJustification(t,"left",a,r),this.markUsedOrientation(t,r,a))}if(A){const e=Te(p.icon),i=!(u&&a.verticalPlacedIconSymbolIndex&&y);a.placedIconSymbolIndex>=0&&(f(t.icon,a.numIconVertices,i?e:Be),t.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=p.icon.isHidden()),a.verticalPlacedIconSymbolIndex>=0&&(f(t.icon,a.numVerticalIconVertices,i?Be:e),t.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=p.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){const i=t.collisionArrays[n];if(i){let n=new e.Point(0,0);if(i.textBox||i.verticalTextBox){let e=!0;if(l){const t=this.variableOffsets[m];t?(n=Ae(t.anchor,t.width,t.height,t.textOffset,t.textBoxScale),c&&n._rotate(h?this.transform.angle:-this.transform.angle)):e=!1}i.textBox&&ve(t.textCollisionBox.collisionVertexArray,p.text.placed,!e||y,n.x,n.y),i.verticalTextBox&&ve(t.textCollisionBox.collisionVertexArray,p.text.placed,!e||v,n.x,n.y)}const a=Boolean(!v&&i.verticalIconBox);i.iconBox&&ve(t.iconCollisionBox.collisionVertexArray,p.icon.placed,a,u?n.x:0,u?n.y:0),i.verticalIconBox&&ve(t.iconCollisionBox.collisionVertexArray,p.icon.placed,!a,u?n.x:0,u?n.y:0)}}}if(t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=e.invProjMatrix,t.placementViewportMatrix=e.viewportMatrix,t.collisionCircleArray=e.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(e,t){const i=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*i>e}setStale(){this.stale=!0}}function ve(e,t,i,n,a){e.emplaceBack(t?1:0,i?1:0,n||0,a||0),e.emplaceBack(t?1:0,i?1:0,n||0,a||0),e.emplaceBack(t?1:0,i?1:0,n||0,a||0),e.emplaceBack(t?1:0,i?1:0,n||0,a||0)}const _e=Math.pow(2,25),be=Math.pow(2,24),we=Math.pow(2,17),xe=Math.pow(2,16),Ee=Math.pow(2,9),Ce=Math.pow(2,8),Se=Math.pow(2,1);function Te(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;const t=e.placed?1:0,i=Math.floor(127*e.opacity);return i*_e+t*be+i*we+t*xe+i*Ee+t*Ce+i*Se+t}const Be=0;class ke{constructor(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&void 0!==e.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,i,n,a){const r=this._bucketParts;for(;this._currentTileIndex<e.length;)if(t.getBucketParts(r,n,e[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,a())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,r.sort((e,t)=>e.sortKey-t.sortKey));this._currentPartIndex<r.length;)if(t.placeLayerBucketPart(r[this._currentPartIndex],this._seenCrossTileIDs,i),this._currentPartIndex++,a())return!0;return!1}}class Ie{constructor(e,t,i,n,a,r,o){this.placement=new ye(e,a,r,o),this._currentPlacementIndex=t.length-1,this._forceFullPlacement=i,this._showCollisionBoxes=n,this._done=!1}isDone(){return this._done}continuePlacement(t,i,n){const a=e.browser.now(),r=()=>{const t=e.browser.now()-a;return!this._forceFullPlacement&&t>2};for(;this._currentPlacementIndex>=0;){const e=i[t[this._currentPlacementIndex]],a=this.placement.collisionIndex.transform.zoom;if("symbol"===e.type&&(!e.minzoom||e.minzoom<=a)&&(!e.maxzoom||e.maxzoom>a)){if(this._inProgressLayer||(this._inProgressLayer=new ke(e)),this._inProgressLayer.continuePlacement(n[e.source],this.placement,this._showCollisionBoxes,e,r))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}}const Me=512/e.EXTENT/2;class Pe{constructor(e,t,i){this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=i;for(let i=0;i<t.length;i++){const n=t.get(i),a=n.key;this.indexedSymbolInstances[a]||(this.indexedSymbolInstances[a]=[]),this.indexedSymbolInstances[a].push({crossTileID:n.crossTileID,coord:this.getScaledCoordinates(n,e)})}}getScaledCoordinates(t,i){const n=Me/Math.pow(2,i.canonical.z-this.tileID.canonical.z);return{x:Math.floor((i.canonical.x*e.EXTENT+t.anchorX)*n),y:Math.floor((i.canonical.y*e.EXTENT+t.anchorY)*n)}}findMatches(e,t,i){const n=this.tileID.canonical.z<t.canonical.z?1:Math.pow(2,this.tileID.canonical.z-t.canonical.z);for(let a=0;a<e.length;a++){const r=e.get(a);if(r.crossTileID)continue;const o=this.indexedSymbolInstances[r.key];if(!o)continue;const s=this.getScaledCoordinates(r,t);for(const e of o)if(Math.abs(e.coord.x-s.x)<=n&&Math.abs(e.coord.y-s.y)<=n&&!i[e.crossTileID]){i[e.crossTileID]=!0,r.crossTileID=e.crossTileID;break}}}}class De{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Ue{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){const t=Math.round((e-this.lng)/360);if(0!==t)for(const e in this.indexes){const i=this.indexes[e],n={};for(const e in i){const a=i[e];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+t),n[a.tileID.key]=a}this.indexes[e]=n}this.lng=e}addBucket(e,t,i){if(this.indexes[e.overscaledZ]&&this.indexes[e.overscaledZ][e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let e=0;e<t.symbolInstances.length;e++)t.symbolInstances.get(e).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]={});const n=this.usedCrossTileIDs[e.overscaledZ];for(const i in this.indexes){const a=this.indexes[i];if(Number(i)>e.overscaledZ)for(const i in a){const r=a[i];r.tileID.isChildOf(e)&&r.findMatches(t.symbolInstances,e,n)}else{const r=a[e.scaledTo(Number(i)).key];r&&r.findMatches(t.symbolInstances,e,n)}}for(let e=0;e<t.symbolInstances.length;e++){const a=t.symbolInstances.get(e);a.crossTileID||(a.crossTileID=i.generate(),n[a.crossTileID]=!0)}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new Pe(e,t.symbolInstances,t.bucketInstanceId),!0}removeBucketCrossTileIDs(e,t){for(const i in t.indexedSymbolInstances)for(const n of t.indexedSymbolInstances[i])delete this.usedCrossTileIDs[e][n.crossTileID]}removeStaleBuckets(e){let t=!1;for(const i in this.indexes){const n=this.indexes[i];for(const a in n)e[n[a].bucketInstanceId]||(this.removeBucketCrossTileIDs(i,n[a]),delete n[a],t=!0)}return t}}class Oe{constructor(){this.layerIndexes={},this.crossTileIDs=new De,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(e,t,i){let n=this.layerIndexes[e.id];void 0===n&&(n=this.layerIndexes[e.id]=new Ue);let a=!1;const r={};n.handleWrapJump(i);for(const i of t){const t=i.getBucket(e);t&&e.id===t.layerIds[0]&&(t.bucketInstanceId||(t.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(i.tileID,t,this.crossTileIDs)&&(a=!0),r[t.bucketInstanceId]=!0)}return n.removeStaleBuckets(r)&&(a=!0),a}pruneUnusedLayers(e){const t={};
2e.forEach(e=>{t[e]=!0});for(const e in this.layerIndexes)t[e]||delete this.layerIndexes[e]}}const Fe=(t,i)=>e.emitValidationErrors(t,i&&i.filter(e=>"source.canvas"!==e.identifier)),Re=e.pick(L,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain"]),Ne=e.pick(L,["setCenter","setZoom","setBearing","setPitch"]),Le=function(){const t={},i=e.styleSpec.$version;for(const n in e.styleSpec.$root){const a=e.styleSpec.$root[n];if(a.required){let e=null;e="version"===n?i:"array"===a.type?[]:{},null!=e&&(t[n]=e)}}return t}(),ze={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class He extends e.Evented{constructor(t,i={}){super(),this.map=t,this.dispatcher=new g(F(),this),this.imageManager=new u,this.imageManager.setEventedParent(this),this.glyphManager=new e.GlyphManager(t._requestManager,i.localFontFamily?e.LocalGlyphMode.all:i.localIdeographFontFamily?e.LocalGlyphMode.ideographs:e.LocalGlyphMode.none,i.localFontFamily||i.localIdeographFontFamily),this.lineAtlas=new A(256,512),this.crossTileSymbolIndex=new Oe,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this.zoomHistory=new e.ZoomHistory,this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",e.getReferrer());const n=this;this._rtlTextPluginCallback=He.registerForPluginStateChange(t=>{n.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},(t,i)=>{if(e.triggerPluginCompletionEvent(t),i&&i.every(e=>e))for(const e in n._sourceCaches){const t=n._sourceCaches[e],i=t.getSource().type;"vector"!==i&&"geojson"!==i||t.reload()}})}),this.on("data",e=>{if("source"!==e.dataType||"metadata"!==e.sourceDataType)return;const t=this.getSource(e.sourceId);if(t&&t.vectorLayerIds)for(const e in this._layers){const i=this._layers[e];i.source===t.id&&this._validateLayer(i)}})}loadURL(t,i={}){this.fire(new e.Event("dataloading",{dataType:"style"}));const n="boolean"==typeof i.validate?i.validate:!e.isMapboxURL(t);t=this.map._requestManager.normalizeStyleURL(t,i.accessToken);const a=this.map._requestManager.transformRequest(t,e.ResourceType.Style);this._request=e.getJSON(a,(t,i)=>{this._request=null,t?this.fire(new e.ErrorEvent(t)):i&&this._load(i,n)})}loadJSON(t,i={}){this.fire(new e.Event("dataloading",{dataType:"style"})),this._request=e.browser.frame(()=>{this._request=null,this._load(t,!1!==i.validate)})}loadEmpty(){this.fire(new e.Event("dataloading",{dataType:"style"})),this._load(Le,!1)}_updateLayerCount(e,t){const i=t?1:-1;e.is3D()&&(this._num3DLayers+=i),"circle"===e.type&&(this._numCircleLayers+=i),"symbol"===e.type&&(this._numSymbolLayers+=i)}_load(t,i){if(i&&Fe(this,e.validateStyle(t)))return;this._loaded=!0,this.stylesheet=t;for(const e in t.sources)this.addSource(e,t.sources[e],{validate:!1});this._changed=!1,t.sprite?this._loadSprite(t.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(t.glyphs);const n=N(this.stylesheet.layers);this._order=n.map(e=>e.id),this._layers={},this._serializedLayers={};for(let t of n)t=e.createStyleLayer(t),t.setEventedParent(this,{layer:{id:t.id}}),this._layers[t.id]=t,this._serializedLayers[t.id]=t.serialize(),this._updateLayerCount(t,!0);this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new f(this.stylesheet.light),this.stylesheet.terrain&&this._createTerrain(this.stylesheet.terrain),this._updateDrapeFirstLayers(),this.fire(new e.Event("data",{dataType:"style"})),this.fire(new e.Event("style.load"))}_loadSprite(t){this._spriteRequest=function(t,i,n){let a,r,o;const s=e.browser.devicePixelRatio>1?"@2x":"";let l=e.getJSON(i.transformRequest(i.normalizeSpriteURL(t,s,".json"),e.ResourceType.SpriteJSON),(e,t)=>{l=null,o||(o=e,a=t,h())}),c=e.getImage(i.transformRequest(i.normalizeSpriteURL(t,s,".png"),e.ResourceType.SpriteImage),(e,t)=>{c=null,o||(o=e,r=t,h())});function h(){if(o)n(o);else if(a&&r){const t=e.browser.getImageData(r),i={};for(const n in a){const{width:r,height:o,x:s,y:l,sdf:c,pixelRatio:h,stretchX:u,stretchY:d,content:f}=a[n],m=new e.RGBAImage({width:r,height:o});e.RGBAImage.copy(t,m,{x:s,y:l},{x:0,y:0},{width:r,height:o}),i[n]={data:m,pixelRatio:h,sdf:c,stretchX:u,stretchY:d,content:f}}n(null,i)}}return{cancel(){l&&(l.cancel(),l=null),c&&(c.cancel(),c=null)}}}(t,this.map._requestManager,(t,i)=>{if(this._spriteRequest=null,t)this.fire(new e.ErrorEvent(t));else if(i)for(const e in i)this.imageManager.addImage(e,i[e]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new e.Event("data",{dataType:"style"}))})}_validateLayer(t){const i=this.getSource(t.source);if(!i)return;const n=t.sourceLayer;
vendor: 4,885 bytes, line 2
2n&&("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(n))&&this.fire(new e.ErrorEvent(new Error(`Source layer "${n}" does not exist on source "${i.id}" as specified by style layer "${t.id}"`)))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(const e in this._sourceCaches)if(!this._sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(e){const t=[];for(const i of e){const e=this._layers[i];"custom"!==e.type&&t.push(e.serialize())}return t}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;for(const e in this._sourceCaches)if(this._sourceCaches[e].hasTransition())return!0;for(const e in this._layers)if(this._layers[e].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(e){return!!this.terrain&&ze[e.type]}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}update(t){if(!this._loaded)return;const i=this._changed;if(this._changed){const e=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);(e.length||i.length)&&this._updateWorkerLayers(e,i);for(const e in this._updatedSources){const t=this._updatedSources[e];"reload"===t?this._reloadSource(e):"clear"===t&&this._clearSource(e)}this._updateTilesForChangedImages();for(const e in this._updatedPaintProps)this._layers[e].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}const n={};for(const e in this._sourceCaches){const t=this._sourceCaches[e];n[e]=t.used,t.used=!1}for(const e of this._order){const i=this._layers[e];if(i.recalculate(t,this._availableImages),!i.isHidden(t.zoom)){const e=this._getLayerSourceCache(i);e&&(e.used=!0)}const n=this.map.painter;if(n){const e=i.getProgramIds();if(!e)continue;const a=i.getProgramConfiguration(t.zoom);for(const t of e)n.useProgram(t,a)}}for(const t in n){const i=this._sourceCaches[t];n[t]!==i.used&&i.getSource().fire(new e.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:i.getSource().id}))}this.light.recalculate(t),this.terrain&&this.terrain.recalculate(t),this.z=t.zoom,i&&this.fire(new e.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const e=Object.keys(this._changedImages);if(e.length){for(const t in this._sourceCaches)this._sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(e),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(t){if(this._checkLoaded(),Fe(this,e.validateStyle(t)))return!1;(t=e.clone$1(t)).layers=N(t.layers);const i=function(t,i){if(!t)return[{command:L.setStyle,args:[i]}];let n=[];try{if(!e.deepEqual(t.version,i.version))return[{command:L.setStyle,args:[i]}];e.deepEqual(t.center,i.center)||n.push({command:L.setCenter,args:[i.center]}),e.deepEqual(t.zoom,i.zoom)||n.push({command:L.setZoom,args:[i.zoom]}),e.deepEqual(t.bearing,i.bearing)||n.push({command:L.setBearing,args:[i.bearing]}),e.deepEqual(t.pitch,i.pitch)||n.push({command:L.setPitch,args:[i.pitch]}),e.deepEqual(t.sprite,i.sprite)||n.push({command:L.setSprite,args:[i.sprite]}),e.deepEqual(t.glyphs,i.glyphs)||n.push({command:L.setGlyphs,args:[i.glyphs]}),e.deepEqual(t.transition,i.transition)||n.push({command:L.setTransition,args:[i.transition]}),e.deepEqual(t.light,i.light)||n.push({command:L.setLight,args:[i.light]});const a={},r=[];!function(t,i,n,a){let r;for(r in i=i||{},t=t||{})t.hasOwnProperty(r)&&(i.hasOwnProperty(r)||H(r,n,a));for(r in i)i.hasOwnProperty(r)&&(t.hasOwnProperty(r)?e.deepEqual(t[r],i[r])||("geojson"===t[r].type&&"geojson"===i[r].type&&V(t,i,r)?n.push({command:L.setGeoJSONSourceData,args:[r,i[r].data]}):Q(r,i,n,a)):z(r,i,n))}(t.sources,i.sources,r,a);const o=[];t.layers&&t.layers.forEach(e=>{a[e.source]?n.push({command:L.removeLayer,args:[e.id]}):o.push(e)});let s=t.terrain;s&&a[s.source]&&(n.push({command:L.setTerrain,args:[void 0]}),s=void 0),n=n.concat(r),e.deepEqual(s,i.terrain)||n.push({command:L.setTerrain,args:[i.terrain]}),function(t,i,n){i=i||[];const a=(t=t||[]).map(j),r=i.map(j),o=t.reduce(G,{}),s=i.reduce(G,{}),l=a.slice(),c=Object.create(null);let h,u,d,f,m,p,A;for(h=0,u=0;h<a.length;h++)d=a[h],s.hasOwnProperty(d)?u++:(n.push({command:L.removeLayer,args:[d]}),l.splice(l.indexOf(d,u),1));for(h=0,u=0;h<r.length;h++)d=r[r.length-1-h],l[l.length-1-h]!==d&&(o.hasOwnProperty(d)?(n.push({command:L.removeLayer,args:[d]}),l.splice(l.lastIndexOf(d,l.length-u),1)):u++,p=l[l.length-h],n.push({command:L.addLayer,args:[s[d],p]}),l.splice(l.length-h,0,d),c[d]=!0);for(h=0;h<r.length;h++)if(d=r[h],f=o[d],m=s[d],!c[d]&&!e.deepEqual(f,m))if(e.deepEqual(f.source,m.
2source)&&e.deepEqual(f["source-layer"],m["source-layer"])&&e.deepEqual(f.type,m.type)){for(A in q(f.layout,m.layout,n,d,null,L.setLayoutProperty),q(f.paint,m.paint,n,d,null,L.setPaintProperty),e.deepEqual(f.filter,m.filter)||n.push({command:L.setFilter,args:[d,m.filter]}),e.deepEqual(f.minzoom,m.minzoom)&&e.deepEqual(f.maxzoom,m.maxzoom)||n.push({command:L.setLayerZoomRange,args:[d,m.minzoom,m.maxzoom]}),f)f.hasOwnProperty(A)&&"layout"!==A&&"paint"!==A&&"filter"!==A&&"metadata"!==A&&"minzoom"!==A&&"maxzoom"!==A&&(0===A.indexOf("paint.")?q(f[A],m[A],n,d,A.slice(6),L.setPaintProperty):e.deepEqual(f[A],m[A])||n.push({command:L.setLayerProperty,args:[d,A,m[A]]}));for(A in m)m.hasOwnProperty(A)&&!f.hasOwnProperty(A)&&"layout"!==A&&"paint"!==A&&"filter"!==A&&"metadata"!==A&&"minzoom"!==A&&"maxzoom"!==A&&(0===A.indexOf("paint.")?q(f[A],m[A],n,d,A.slice(6),L.setPaintProperty):e.deepEqual(f[A],m[A])||n.push({command:L.setLayerProperty,args:[d,A,m[A]]}))}else n.push({command:L.removeLayer,args:[d]}),p=l[l.lastIndexOf(d)+1],n.push({command:L.addLayer,args:[m,p]})}(o,i.layers,n)}catch(e){console.warn("Unable to compute style diff:",e),n=[{command:L.setStyle,args:[i]}]}return n}(this.serialize(),t).filter(e=>!(e.command in Ne));if(0===i.length)return!1;const n=i.filter(e=>!(e.command in Re));if(n.length>0)throw new Error(`Unimplemented: ${n.map(e=>e.command).join(", ")}.`);return i.forEach(e=>{"setTransition"!==e.command&&this[e.command].apply(this,e.args)}),this.stylesheet=t,!0}addImage(t,i){if(this.getImage(t))return this.fire(new e.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(t,i),this._afterImageUpdated(t)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}removeImage(t){if(!this.getImage(t))return this.fire(new e.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(t),this._afterImageUpdated(t)}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(t,i,n={}){if(this._checkLoaded(),void 0!==this.getSource(t))throw new Error("There is already a source with this ID");if(!i.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(i).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(i.type)>=0&&this._validate(e.validateStyle.source,"sources."+t,i,null,n))return;this.map&&this.map._collectResourceTiming&&(i.collectResourceTiming=!0);const a=T(t,i,this.dispatcher,this);a.setEventedParent(this,()=>({isSourceLoaded:this.loaded(),source:a.serialize(),sourceId:t}));const r=i=>{const n=(i?"symbol:":"other:")+t,r=this._sourceCaches[n]=new e.SourceCache(n,a,i);(i?this._symbolSourceCaches:this._otherSourceCaches)[t]=r,r.style=this,r.onAdd(this.map)};r(!1),"vector"!==i.type&&"geojson"!==i.type||r(!0),a.onAdd&&a.onAdd(this.map),this._changed=!0}removeSource(t){this._checkLoaded();const i=this.getSource(t);if(void 0===i)throw new Error("There is no source with this ID");for(const i in this._layers)if(this._layers[i].source===t)return this.fire(new e.ErrorEvent(new Error(`Source "${t}" cannot be removed while layer "${i}" is using it.`)));if(this.terrain&&this.terrain.get().source===t)return this.fire(new e.ErrorEvent(new Error(`Source "${t}" cannot be removed while terrain is using it.`)));const n=this._getSourceCaches(t);for(const t of n)delete this._sourceCaches[t.id],delete this._updatedSources[t.id],t.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t.getSource().id})),t.setEventedParent(null),t.clearTiles();delete this._otherSourceCaches[t],delete this._symbolSourceCaches[t],i.setEventedParent(null),i.onRemove&&i.onRemove(this.map),this._changed=!0}
vendor: 7,180 bytes, line 2
2setGeoJSONSourceData(e,t){this._checkLoaded(),this.getSource(e).setData(t),this._changed=!0}getSource(e){const t=this._getSourceCache(e);return t&&t.getSource()}addLayer(t,i,n={}){this._checkLoaded();const a=t.id;if(this.getLayer(a))return void this.fire(new e.ErrorEvent(new Error(`Layer with id "${a}" already exists on this map`)));let r;if("custom"===t.type){if(Fe(this,e.validateCustomStyleLayer(t)))return;r=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(a,t.source),t=e.clone$1(t),t=e.extend(t,{source:a})),this._validate(e.validateStyle.layer,"layers."+a,t,{arrayIndex:-1},n))return;r=e.createStyleLayer(t),this._validateLayer(r),r.setEventedParent(this,{layer:{id:a}}),this._serializedLayers[r.id]=r.serialize(),this._updateLayerCount(r,!0)}const o=i?this._order.indexOf(i):this._order.length;if(i&&-1===o)return void this.fire(new e.ErrorEvent(new Error(`Layer with id "${i}" does not exist on this map.`)));this._order.splice(o,0,a),this._layerOrderChanged=!0,this._layers[a]=r;const s=this._getLayerSourceCache(r);if(this._removedLayers[a]&&r.source&&s&&"custom"!==r.type){const e=this._removedLayers[a];delete this._removedLayers[a],e.type!==r.type?this._updatedSources[r.source]="clear":(this._updatedSources[r.source]="reload",s.pause())}this._updateLayer(r),r.onAdd&&r.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(t,i){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===i)return;const n=this._order.indexOf(t);this._order.splice(n,1);const a=i?this._order.indexOf(i):this._order.length;i&&-1===a?this.fire(new e.ErrorEvent(new Error(`Layer with id "${i}" does not exist on this map.`))):(this._order.splice(a,0,t),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(t){this._checkLoaded();const i=this._layers[t];if(!i)return void this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be removed.`)));i.setEventedParent(null),this._updateLayerCount(i,!1);const n=this._order.indexOf(t);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=i,delete this._layers[t],delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],i.onRemove&&i.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(e){return this._layers[e]}hasLayer(e){return e in this._layers}hasLayerType(e){for(const t in this._layers)if(this._layers[t].type===e)return!0;return!1}setLayerZoomRange(t,i,n){this._checkLoaded();const a=this.getLayer(t);a?a.minzoom===i&&a.maxzoom===n||(null!=i&&(a.minzoom=i),null!=n&&(a.maxzoom=n),this._updateLayer(a)):this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(t,i,n={}){this._checkLoaded();const a=this.getLayer(t);if(a){if(!e.deepEqual(a.filter,i))return null==i?(a.filter=void 0,void this._updateLayer(a)):void(this._validate(e.validateStyle.filter,`layers.${a.id}.filter`,i,null,n)||(a.filter=e.clone$1(i),this._updateLayer(a)))}else this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be filtered.`)))}getFilter(t){return e.clone$1(this.getLayer(t).filter)}setLayoutProperty(t,i,n,a={}){this._checkLoaded();const r=this.getLayer(t);r?e.deepEqual(r.getLayoutProperty(i),n)||(r.setLayoutProperty(i,n,a),this._updateLayer(r)):this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(t,i){const n=this.getLayer(t);if(n)return n.getLayoutProperty(i);this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style.`)))}setPaintProperty(t,i,n,a={}){this._checkLoaded();const r=this.getLayer(t);r?e.deepEqual(r.getPaintProperty(i),n)||(r.setPaintProperty(i,n,a)&&this._updateLayer(r),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(e,t){return this.getLayer(e).getPaintProperty(t)}setFeatureState(t,i){this._checkLoaded();const n=t.source,a=t.sourceLayer,r=this.getSource(n);if(void 0===r)return void this.fire(new e.ErrorEvent(new Error(`The source '${n}' does not exist in the map's style.`)));const o=r.type;if("geojson"===o&&a)return void this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===o&&!a)return void this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided.")));const s=this._getSourceCaches(n);for(const e of s)e.setFeatureState(a,t.id,i)}removeFeatureState(t,i){this._checkLoaded();const n=t.source,a=this.getSource(n);if(void 0===a)return void this.fire(new e.ErrorEvent(new Error(`The source '${n}' does not exist in the map's style.`)));const r=a.type,o="vector"===r?t.sourceLayer:void 0;if("vector"===r&&!o)return void this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));if(i&&"string"!=typeof t.id&&"number"!=typeof t.id)return void this.fire(new e.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));const s=this._getSourceCaches(n);for(const e of s)e.removeFeatureState(o,t.id,i)}getFeatureState(t){this._checkLoaded();const i=t.source,n=t.sourceLayer,a=this.getSource(i);if(void 0!==a){if("vector"!==a.type||n)return void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),this._getSourceCaches(i)[0].getFeatureState(n,t.id);this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error(`The source '${i}' does not exist in the map's style.`)))}getTransition(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const t={};for(const e in this._sourceCaches){const i=this._sourceCaches[e].getSource();t[i.id]||(t[i.id]=i.serialize())}return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.stylesheet.terrain,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t,layers:this._serializeLayers(this._order)},e=>void 0!==e)}_updateLayer(e){this._updatedLayers[e.id]=!0;const t=this._getLayerSourceCache(e);e.source&&!this._updatedSources[e.source]&&t&&"raster"!==t.getSource().type&&(this._updatedSources[e.source]="reload",t.pause()),this._changed=!0}_flattenAndSortRenderedFeatures(e){const t=e=>"fill-extrusion"===this._layers[e].type,i={},n=[];for(let a=this._order.length-1;a>=0;a--){const r=this._order[a];if(t(r)){i[r]=a;for(const t of e){const e=t[r];if(e)for(const t of e)n.push(t)}}}n.sort((e,t)=>
2t.intersectionZ-e.intersectionZ);const a=[];for(let r=this._order.length-1;r>=0;r--){const o=this._order[r];if(t(o))for(let e=n.length-1;e>=0;e--){const t=n[e].feature;if(i[t.layer.id]<r)break;a.push(t),n.pop()}else for(const t of e){const e=t[o];if(e)for(const t of e)a.push(t.feature)}}return a}queryRenderedFeatures(t,i,n){i&&i.filter&&this._validate(e.validateStyle.filter,"queryRenderedFeatures.filter",i.filter,null,i);const a={};if(i&&i.layers){if(!Array.isArray(i.layers))return this.fire(new e.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(const t of i.layers){const i=this._layers[t];if(!i)return this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be queried for features.`))),[];a[i.source]=!0}}const r=[];i.availableImages=this._availableImages;const o=i&&i.layers?i.layers.some(e=>{const t=this.getLayer(e);return t&&t.is3D()}):this.has3DLayers(),s=v.createFromScreenPoints(t,n);for(const e in this._sourceCaches){const t=this._sourceCaches[e].getSource().id;i.layers&&!a[t]||r.push(k(this._sourceCaches[e],this._layers,this._serializedLayers,s,i,n,o,!!this.map._showQueryGeometry))}return this.placement&&r.push(function(e,t,i,n,a,r,o){const s={},l=r.queryRenderedSymbols(n),c=[];for(const e of Object.keys(l).map(Number))c.push(o[e]);c.sort(M);for(const i of c){const n=i.featureIndex.lookupSymbolFeatures(l[i.bucketInstanceId],t,i.bucketIndex,i.sourceLayerIndex,a.filter,a.layers,a.availableImages,e);for(const e in n){const t=s[e]=s[e]||[],a=n[e];a.sort((e,t)=>{const n=i.featureSortOrder;if(n){const i=n.indexOf(e.featureIndex);return n.indexOf(t.featureIndex)-i}return t.featureIndex-e.featureIndex});for(const e of a)t.push(e)}}for(const t in s)s[t].forEach(n=>{const a=n.feature,r=i(e[t]).getFeatureState(a.layer["source-layer"],a.id);a.source=a.layer.source,a.layer["source-layer"]&&(a.sourceLayer=a.layer["source-layer"]),a.state=r});return s}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),s.screenGeometry,i,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(r)}querySourceFeatures(t,i){i&&i.filter&&this._validate(e.validateStyle.filter,"querySourceFeatures.filter",i.filter,null,i);const n=this._getSourceCaches(t);let a=[];for(const e of n)a=a.concat(I(e,i));return a}addSourceType(e,t,i){return He.getSourceType(e)?i(new Error(`A source type called "${e}" already exists.`)):(He.setSourceType(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},i):i(null,null))}getLight(){return this.light.getLight()}setLight(t,i={}){this._checkLoaded();const n=this.light.getLight();let a=!1;for(const i in t)if(!e.deepEqual(t[i],n[i])){a=!0;break}if(!a)return;const r={now:e.browser.now(),transition:e.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,i),this.light.updateTransitions(r)}setTerrain(t){if(this._checkLoaded(),!t)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),void this._force3DLayerUpdate();if("object"==typeof t.source){const i="terrain-dem-src";this.addSource(i,t.source),t=e.clone$1(t),t=e.extend(t,{source:i})}if(!this._validate(e.validateStyle.terrain,"terrain",t)){if(this.terrain){const i=this.terrain,n=i.get();for(const a in t)if(!e.deepEqual(t[a],n[a])){i.set(t),this.stylesheet.terrain=t;const n={now:e.browser.now(),transition:e.extend({duration:0},this.stylesheet.transition)};i.updateTransitions(n);break}}else this._createTerrain(t);this._updateDrapeFirstLayers()}}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const e=this._order.filter(e=>this.isLayerDraped(this._layers[e])),t=this._order.filter(e=>!this.isLayerDraped(this._layers[e]));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...e),this._drapedFirstOrder.push(...t)}_createTerrain(t){const i=this.terrain=new p(t);this.stylesheet.terrain=t,this.dispatcher.broadcast("enableTerrain",!0),this._force3DLayerUpdate();const n={now:e.browser.now(),transition:e.extend({duration:0},this.stylesheet.transition)};i.updateTransitions(n)}_force3DLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"fill-extrusion"===t.type&&this._updateLayer(t)}}_validate(t,i,n,a,r={}){return(!r||!1!==r.validate)&&Fe(this,t.call(e.validateStyle,e.extend({key:i,style:this.serialize(),value:n,styleSpec:e.styleSpec},a)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const e in this._layers)this._layers[e].setEventedParent(null);for(const e in this._sourceCaches)this._sourceCaches[e].clearTiles(),this._sourceCaches[e].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(e){const t=this._getSourceCaches(e);for(const e of t)e.clearTiles()}_reloadSource(e){const t=this._getSourceCaches(e);for(const e of t)e.resume(),e.reload()}_updateSources(e){for(const t in this._sourceCaches)this._sourceCaches[t].update(e)}_generateCollisionBoxes(){for(const e in this._sourceCaches){const t=this._sourceCaches[e];t.resume(),t.reload()}}_updatePlacement(t,i,n,a,r=!1){let o=!1,s=!1;const l={};for(const e of this._order){const i=this._layers[e];
vendor: 4,570 bytes, line 2
2if("symbol"!==i.type)continue;if(!l[i.source]){const e=this._getLayerSourceCache(i);if(!e)continue;l[i.source]=e.getRenderableIds(!0).map(t=>e.getTileByID(t)).sort((e,t)=>t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1))}const n=this.crossTileSymbolIndex.addLayer(i,l[i.source],t.center.lng);o=o||n}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),r=r||this._layerOrderChanged||0===n,this._layerOrderChanged&&this.fire(new e.Event("neworder")),(r||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.browser.now(),t.zoom))&&(this.pauseablePlacement=new Ie(t,this._order,r,i,n,a,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.browser.now()),s=!0),o&&this.pauseablePlacement.placement.setStale()),s||o)for(const e of this._order){const t=this._layers[e];"symbol"===t.type&&this.placement.updateLayerOpacities(t,l[t.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.browser.now())}_releaseSymbolFadeTiles(){for(const e in this._sourceCaches)this._sourceCaches[e].releaseSymbolFadeTiles()}getImages(e,t,i){this.imageManager.getImages(t.icons,i),this._updateTilesForChangedImages();const n=e=>{e&&e.setDependencies(t.tileID.key,t.type,t.icons)};n(this._otherSourceCaches[t.source]),n(this._symbolSourceCaches[t.source])}getGlyphs(e,t,i){this.glyphManager.getGlyphs(t.stacks,i)}getResource(t,i,n){return e.makeRequest(i,n)}_getSourceCache(e){return this._otherSourceCaches[e]}_getLayerSourceCache(e){return"symbol"===e.type?this._symbolSourceCaches[e.source]:this._otherSourceCaches[e.source]}_getSourceCaches(e){const t=[];return this._otherSourceCaches[e]&&t.push(this._otherSourceCaches[e]),this._symbolSourceCaches[e]&&t.push(this._symbolSourceCaches[e]),t}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}}He.getSourceType=function(e){return S[e]},He.setSourceType=function(e,t){S[e]=t},He.registerForPluginStateChange=e.registerForPluginStateChange;var Qe="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}";let Ve={};Ve=bt("","\n#define ELEVATION_SCALE 7.3\n#ifdef TERRAIN\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;uniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {float dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));float tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float prevElevation(vec2 apos) {float dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {float nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {return currentElevation(apos);}\n#endif\nfloat unpack_depth(vec4 rgba_depth)\n{const vec4 bit_shift=vec4(1.0/(256.0*256.0*256.0),1.0/(256.0*256.0),1.0/256.0,1.0
2);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {vec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);return vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;vec4 bounds=vec4(d,vec2(1.0)-d);h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*word/ELEVATION_SCALE;}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",!0);const je=bt("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nconst float PI=3.141592653589793;","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const float PI=3.141592653589793;const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),Ge=bt("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Ke=bt("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),qe=bt("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius
2/(radius+stroke_width)\n);gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float height=circle_elevation(circle_center);vec4 world_center=vec4(circle_center,height,1);vec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);vec4 occlusion_world_center=vec4(circle_center,cantilevered_height,1);vec4 occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nvec4 occlusion_world_center=world_center;vec4 occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),$e=bt("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Ye=bt("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,elevation(floor(a_pos*0.5)),1);gl_Position=u_matrix*pos;}"),We=bt("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),Xe=bt("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=u_matrix*vec4(a_pos,elevation(a_pos),1.0);gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Je=bt("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),Ze=bt("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);}"),et=bt("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),tt=bt("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),nt=bt("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),it=bt("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),st=bt("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;\n#ifdef TERRAIN\nvec2 centroid_pos=a_centroid_pos;bool flat_roof=centroid_pos.x !=0.0;float ele=elevation(pos_nx.xy);
2float hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);gl_Position=mix(u_matrix*vec4(pos_nx.xy,h,1),AWAY,hidden);\n#else\ngl_Position=u_matrix*vec4(pos_nx.xy,t > 0.0 ? height : base,1);\n#endif\nfloat colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),rt=bt("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;\n#ifdef TERRAIN\nvec2 centroid_pos=a_centroid_pos;bool flat_roof=centroid_pos.x !=0.0;float ele=elevation(pos_nx.xy);float hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);gl_Position=mix(u_matrix*vec4(pos_nx.xy,h,1),AWAY,hidden);\n#else\ngl_Position=u_matrix*vec4(pos_nx.xy,z,1);\n#endif\nvec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),at=bt("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),ot=bt("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;
2float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),lt=bt("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_width2=vec2(outset,inset);}"),ct=bt("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_width2=vec2(outset,inset);}"),ut=bt("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),ht=bt("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;
2uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),dt=bt("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),pt=bt("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float h=elevation(a_pos);vec4 projectedPoint=u_matrix*vec4(a_pos,h,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),h,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h,1.0);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projectedPoint);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projectedPoint.w <=0.0 || occlusion_fade==0.0));v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));}"),ft=bt("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float h=elevation(a_pos);vec4 projectedPoint=u_matrix*vec4(a_pos,h,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),h,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h,1.0);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projectedPoint);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projectedPoint.w <=0.0 || occlusion_fade==0.0));float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),mt=bt("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;
2gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float h=elevation(a_pos);vec4 projectedPoint=u_matrix*vec4(a_pos,h,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),h,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h,1.0);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projectedPoint);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projectedPoint.w <=0.0 || occlusion_fade==0.0));float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}"),At=bt("uniform sampler2D u_image0;varying vec2 v_pos0;void main() {gl_FragColor=texture2D(u_image0,v_pos0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;const float skirtOffset=24575.0;void main() {v_pos0=a_texture_pos/8192.0;float skirt=float(a_pos.x >=skirtOffset);float elevation=elevation(a_texture_pos)-skirt*u_skirt_height;vec2 decodedPos=a_pos-vec2(skirt*skirtOffset,0.0);gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);}"),gt=bt("#ifdef GL_ES\nprecision highp float;\n#endif\nvec4 pack_depth(float ndc_z) {float depth=ndc_z*0.5+0.5;const vec4 bit_shift=vec4(256.0*256.0*256.0,256.0*256.0,256.0,1.0
2);const vec4 bit_mask =vec4(0.0,1.0/256.0,1.0/256.0,1.0/256.0);vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}varying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying float v_depth;void main() {float elevation=elevation(a_texture_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),yt=bt("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;highp vec3 hash(highp vec2 p) {highp vec3 p3=fract(vec3(p.xyx)*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract(vec3((p3.x+p3.y)*p3.z,(p3.x+p3.z)*p3.y,(p3.y+p3.z)*p3.x));}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;color.rgb+=rnd/255.0;return color;}float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(e
2nd-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;sky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Qe),vt=bt("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform lowp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;highp vec3 hash(highp vec2 p) {highp vec3 p3=fract(vec3(p.xyx)*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract(vec3((p3.x+p3.y)*p3.z,(p3.x+p3.z)*p3.y,(p3.y+p3.z)*p3.x));}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;color.rgb+=rnd/255.0;return color;}void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5))*u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Qe),_t=bt
vendor: 3,838 bytes, line 2
2("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M vec3(21e-6,21e-6,21e-6)\n#define MIE_G 0.76\n#define DENSITY_HEIGHT_SCALE_R 8000.0\n#define DENSITY_HEIGHT_SCALE_M 1200.0\n#define PLANET_RADIUS 6360e3\n#define ATMOSPHERE_RADIUS 6420e3\n#define SAMPLE_STEPS 10\n#define DENSITY_STEPS 4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}")
vendor: 10,607 bytes, line 2
2;function bt(e,t,i){const n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,a=t.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),r=e.match(/uniform (highp |mediump |lowp )?([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=t.match(/uniform (highp |mediump |lowp )?([\w]+) ([\w]+)([\s]*)([\w]*)/g);let s=o?o.concat(r):r;i||(s=Ve.staticUniforms.concat(s));const l={};return{fragmentSource:e=e.replace(n,(e,t,i,n,a)=>(l[a]=!0,"define"===t?`\n#ifndef HAS_UNIFORM_u_${a}\nvarying ${i} ${n} ${a};\n#else\nuniform ${i} ${n} u_${a};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${a}\n ${i} ${n} ${a} = u_${a};\n#endif\n`)),vertexSource:t=t.replace(n,(e,t,i,n,a)=>{const r="float"===n?"vec2":"vec4",o=a.match(/color/)?"color":r;return l[a]?"define"===t?`\n#ifndef HAS_UNIFORM_u_${a}\nuniform lowp float u_${a}_t;\nattribute ${i} ${r} a_${a};\nvarying ${i} ${n} ${a};\n#else\nuniform ${i} ${n} u_${a};\n#endif\n`:"vec4"===o?`\n#ifndef HAS_UNIFORM_u_${a}\n ${a} = a_${a};\n#else\n ${i} ${n} ${a} = u_${a};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${a}\n ${a} = unpack_mix_${o}(a_${a}, u_${a}_t);\n#else\n ${i} ${n} ${a} = u_${a};\n#endif\n`:"define"===t?`\n#ifndef HAS_UNIFORM_u_${a}\nuniform lowp float u_${a}_t;\nattribute ${i} ${r} a_${a};\n#else\nuniform ${i} ${n} u_${a};\n#endif\n`:"vec4"===o?`\n#ifndef HAS_UNIFORM_u_${a}\n ${i} ${n} ${a} = a_${a};\n#else\n ${i} ${n} ${a} = u_${a};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${a}\n ${i} ${n} ${a} = unpack_mix_${o}(a_${a}, u_${a}_t);\n#else\n ${i} ${n} ${a} = u_${a};\n#endif\n`}),staticAttributes:a,staticUniforms:s}}var wt=Object.freeze({__proto__:null,get preludeTerrain(){return Ve},prelude:je,background:Ge,backgroundPattern:Ke,circle:qe,clippingMask:$e,heatmap:Ye,heatmapTexture:We,collisionBox:Xe,collisionCircle:Je,debug:Ze,fill:et,fillOutline:tt,fillOutlinePattern:nt,fillPattern:it,fillExtrusion:st,fillExtrusionPattern:rt,hillshadePrepare:at,hillshade:ot,line:lt,lineGradient:ct,linePattern:ut,lineSDF:ht,raster:dt,symbolIcon:pt,symbolSDF:ft,symbolTextAndIcon:mt,terrainRaster:At,terrainDepth:gt,skybox:yt,skyboxGradient:vt,skyboxCapture:_t});class xt{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(e,t,i,n,a,r,o,s){this.context=e;let l=this.boundPaintVertexBuffers.length!==n.length;for(let e=0;!l&&e<n.length;e++)this.boundPaintVertexBuffers[e]!==n[e]&&(l=!0);e.extVertexArrayObject&&this.vao&&this.boundProgram===t&&this.boundLayoutVertexBuffer===i&&!l&&this.boundIndexBuffer===a&&this.boundVertexOffset===r&&this.boundDynamicVertexBuffer===o&&this.boundDynamicVertexBuffer2===s?(e.bindVertexArrayOES.set(this.vao),o&&o.bind(),a&&a.dynamicDraw&&a.bind(),s&&s.bind()):this.freshBind(t,i,n,a,r,o,s)}freshBind(e,t,i,n,a,r,o){let s;const l=e.numAttributes,c=this.context,h=c.gl;if(c.extVertexArrayObject)this.vao&&this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=i,this.boundIndexBuffer=n,this.boundVertexOffset=a,this.boundDynamicVertexBuffer=r,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(let e=l;e<s;e++)h.disableVertexAttribArray(e)}t.enableAttributes(h,e);for(const t of i)t.enableAttributes(h,e);r&&r.enableAttributes(h,e),o&&o.enableAttributes(h,e),t.bind(),t.setVertexAttribPointers(h,e,a);for(const t of i)t.bind(),t.setVertexAttribPointers(h,e,a);r&&(r.bind(),r.setVertexAttribPointers(h,e,a)),n&&n.bind(),o&&(o.bind(),o.setVertexAttribPointers(h,e,a)),c.currentNumAttributes=l}destroy(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)}}function Et(t,i){const n=Math.pow(2,i.canonical.z),a=i.canonical.y;return[new e.MercatorCoordinate(0,a/n).toLngLat().lat,new e.MercatorCoordinate(0,(a+1)/n).toLngLat().lat]}function Ct(t,i,n,a,r,o,s){const l=t.context,c=l.gl,h=n.fbo;if(!h)return;t.prepareDrawTile(i);const u=t.useProgram("hillshade");l.activeTexture.set(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,h.colorAttachment.get());const d=((e,t,i,n)=>{const a=i.paint.get("hillshade-shadow-color"),r=i.paint.get("hillshade-highlight-color"),o=i.paint.get("hillshade-accent-color");let s=i.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===i.paint.get("hillshade-illumination-anchor")&&(s-=e.transform.angle);const l=!e.options.moving;return{u_matrix:n||e.transform.calculatePosMatrix(t.tileID.toUnwrapped(),l),u_image:0,u_latrange:Et(0,t.tileID),u_light:[i.paint.get("hillshade-exaggeration"),s],u_shadow:a,u_highlight:r,u_accent:o}})(t,n,a,t.terrain?i.posMatrix:null);u.draw(l,c.TRIANGLES,r,o,s,e.CullFaceMode.disabled,d,a.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}function St(t,i,n){if(!i.needsDEMTextureUpload)return;const a=t.context,r=a.gl;a.pixelStoreUnpackPremultiplyAlpha.set(!1),i.demTexture=i.demTexture||t.getTileTexture(n.stride);const o=n.getPixels();i.demTexture?i.demTexture.update(o,{premultiply:!1}):i.demTexture=new e.Texture(a,o,r.RGBA,{premultiply:!1}),i.needsDEMTextureUpload=!1}function Tt(t,i,n,a,r,o){const s=t.context,l=s.gl;if(!i.dem)return;const c=i.dem;if(s.activeTexture.set(l.TEXTURE1),St(t,i,c),!i.demTexture)return;i.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);const h=c.dim;s.activeTexture.set(l.TEXTURE0);let u=i.fbo;if(!u){const t=new e.Texture(s,{width:h,height:h,data:null},l.RGBA);t.bind(l.LINEAR,l.CLAMP_TO_EDGE),u=i.fbo=s.createFramebuffer(h,h,!0),u.colorAttachment.set(t.texture)}s.bindFramebuffer.set(u.framebuffer),s.viewport.set([0,0,h,h]),t.useProgram("hillshadePrepare").draw(s,l.TRIANGLES,a,r,o,e.CullFaceMode.disabled,((t,i)=>{const n=i.stride,a=e.create();return e.ortho(a,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate(a,a,[0,-e.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[n,n],u_zoom:t.overscaledZ,u_unpack:i.unpackVector}})(i.tileID,c),n.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),i.needsHillshadePrepare=!1}const Bt=(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_image0:new e.Uniform1i(t,i.u_image0),u_skirt_height:new e.Uniform1f(t,i.u_skirt_height)}),kt=(e,t)=>({u_matrix:e,u_image0:0,u_skirt_height:t}),It=new class{constructor(){this.operations={}}newMorphing(e,t,i,n,a){if(e in this.operations){const t=this.operations[e];t.to.tileID.key!==i.tileID.key&&(t.queued=i)}else this.operations[e]={startTime:n,phase:0,duration:a,from:t,to:i,queued:null}}getMorphValuesForProxy(e){if(!(e in this.operations))return null;const t=this.operations[e];return{from:t.from,to:t.to,phase:t.phase}}update(e){for(const t in this.operations){const i=this.operations[t];for(i.phase=(e-i.startTime)/i.duration;i.phase>=1||!this._validOp(i);)if(!this._nextOp(i,e)){delete this.operations[t];break}}}_nextOp(e,t){return!!e.queued&&(e.from=e.to,e.to=e.queued,e.queued=null,e.phase=0,e.startTime=t,!0)}_validOp(e){return e.from.hasData()&&e.to.hasData()}},Mt={0:null,1:"TERRAIN_VERTEX_MORPHING"};function Pt(t,i,n,a,r){const o=t.context,s=o.gl;let l=t.useProgram("terrainRaster"),c=0;const h=t.colorModeForRenderPass(),u=new e.DepthMode(s.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);It.update(r);const d=t.transform,f=6*Math.pow(1.5,22-d.zoom)*i.exaggeration();var m,p,A;for(const g of a){const a=n.getTile(g),y=e.StencilMode.disabled,v=i.prevTerrainTileForTile[g.key],_=i.terrainTileForTile[g.key];A=_,null!=(p=v)&&null!=A&&p.hasData()&&A.hasData()&&null!=p.demTexture&&null!=A.demTexture&&p.tileID.key!==A.tileID.key&&It.newMorphing(g.key,v,_,r,250),o.activeTexture.set(s.TEXTURE0),a.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST);const b=It.getMorphValuesForProxy(g.key),w=b?1:0;let x;b&&(x={morphing:{srcDemTile:b.from,dstDemTile:b.to,phase:e.easeCubicInOut(b.phase)}});const E=kt(g.posMatrix,Dt(g.canonical,d.renderWorldCopies)?f/10:f);c!==(m=w)&&(l=t.useProgram("terrainRaster",null,Mt[m]),c=m),i.setupElevationDraw(a,l,x),l.draw(o,s.TRIANGLES,u,y,h,e.CullFaceMode.backCCW,E,"terrain_raster",i.gridBuffer,i.gridIndexBuffer,i.gridSegments)}}function Dt(e,t){const i=1<<e.z;return!t&&(0===e.x||e.x===i-1)||0===e.y||e.y===i-1}const Ut=e=>({u_matrix:e});function Ot(t,i,n,a,r){if(r>0){const o=e.browser.now(),s=(o-t.timeAdded)/r,l=i?(o-i.timeAdded)/r:-1,c=n.getSource(),h=a.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),u=!i||Math.abs(i.tileID.overscaledZ-h)>Math.abs(t.tileID.overscaledZ-h),d=u&&t.refreshedUponExpiration?1:e.clamp(u?s:1-l,0,1);return t.refreshedUponExpiration&&s>=1&&(t.refreshedUponExpiration=!1),i?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}class Ft extends e.SourceCache{constructor(e){const t=T("proxy",{type:"geojson",maxzoom:e.transform.maxZoom},new g(F(),null),e.style);super("proxy",t,!1),t.setEventedParent(this),this.map=this.getSource().map=e,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(t,i,n){if(t.freezeTileCoverage)return;this.transform=t;const a=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,useElevationData:!0}).reduce((i,n)=>{if(i[n.key]="",!this._tiles[n.key]){const i=new e.Tile(n,this._source.tileSize*n.overscaleFactor(),t.tileZoom);i.state="loaded",this._tiles[n.key]=i}return i},{});for(const e in this._tiles)e in a||(this.freeFBO(e),this._tiles[e].state="unloaded",delete this._tiles[e])}freeFBO(e){const t=this.proxyCachedFBO[e];if(void 0!==t){const i=Object.values(t);this.renderCachePool.push(...i),delete this.proxyCachedFBO[e]}}deallocRenderCache(){this.renderCache.forEach(e=>e.fb.destroy()),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class Rt extends e.OverscaledTileID{constructor(e,t,i){super(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y),this.proxyTileKey=t,this.posMatrix=i}}class Nt extends e.Elevation{constructor(t,i){super(),this.painter=t,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[n,a,r]=function(t){const i=new e.StructArrayLayout4i8,n=new e.StructArrayLayout3ui6;i.reserve(17161),n.reserve(33800);const a=e.EXTENT/128,r=e.EXTENT+a/2,o=r+a;for(let t=-a;t<o;t+=a)for(let n=-a;n<o;n+=a){const a=n<0||n>r||t<0||t>r?24575:0,o=e.clamp(Math.round(n),0,e.EXTENT),s=e.clamp(Math.round(t),0,e.EXTENT);i.emplaceBack(o+a,s,o,s)}const s=(e,t)=>{const i=131*t+e;n.emplaceBack(i+1,i,i+131),n.emplaceBack(i+131,i+131+1,i+1)};for(let e=1;e<129;e++)for(let t=1;t<129;t++)s(t,e);
2return[0,129].forEach(e=>{for(let t=0;t<130;t++)s(t,e),s(e,t)}),[i,n,32768]}(),o=t.context;this.gridBuffer=o.createVertexBuffer(n,E.members),this.gridIndexBuffer=o.createIndexBuffer(a),this.gridSegments=e.SegmentVector.simpleSegment(0,0,n.length,a.length),this.gridNoSkirtSegments=e.SegmentVector.simpleSegment(0,0,n.length,r),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new Ft(i.map),this.orthoMatrix=e.create(),e.ortho(this.orthoMatrix,0,e.EXTENT,0,e.EXTENT,0,1);const s=o.gl;this._overlapStencilMode=new e.StencilMode({func:s.GEQUAL,mask:255},0,255,s.KEEP,s.KEEP,s.REPLACE),this._previousZoom=t.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=i,this._useVertexMorphing=!0}set style(e){e.on("data",this._onStyleDataEvent.bind(this)),e.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=e,this._checkRenderCacheEfficiency()}update(t,i,n){if(t&&t.terrain){this._style!==t&&(this.style=t),this.enabled=!0;const a=t.terrain.properties;this.sourceCache=t._getSourceCache(a.get("source")),this._exaggeration=a.get("exaggeration");const r=()=>{this.sourceCache.used&&e.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const t=this.sourceCache.getSource().tileSize/128,n=this.proxySourceCache.getSource().tileSize;this.sourceCache.update(i,t*n,!0),this._findCoveringTileCache[this.sourceCache.id]={}};this.sourceCache.usedForTerrain||(this._findCoveringTileCache[this.sourceCache.id]={},this.sourceCache.usedForTerrain=!0,r(),this._initializing=!0),r(),i.updateElevation(!n),this._findCoveringTileCache[this.proxySourceCache.id]={},this.proxySourceCache.update(i),this._emptyDEMTextureDirty=!0}else this._disable()}_checkRenderCacheEfficiency(){const t=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||100!==t.efficiency&&e.warnOnce(`Terrain render cache efficiency is not optimal (${t.efficiency}%) and performance\n may be affected negatively, consider placing all background, fill and line layers before layer\n with id '${t.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(e){e.coord&&"source"===e.dataType?this._clearRenderCacheForTile(e.sourceCacheId,e.coord):"style"===e.dataType&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this.proxySourceCache.deallocRenderCache(),this._style))for(const e in this._style._sourceCaches)this._style._sourceCaches[e].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this.pool.forEach(e=>e.fb.destroy()),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),delete this._depthFBO,delete this._depthTexture)}_source(){return this.enabled?this.sourceCache:null}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const e=2*this.proxySourceCache.getSource().tileSize;return[e,e]}set useVertexMorphing(e){this._useVertexMorphing=e}updateTileBinding(t){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const i=this.proxySourceCache,n=this.painter.transform;this._initializing&&(this._initializing=0===n._centerAltitude&&-1===this.getAtPoint(e.MercatorCoordinate.fromLngLat(n.center),-1),this._emptyDEMTextureDirty=!this._initializing);const a=this.painter.options;this.renderCached=(a.zooming||a.moving||a.rotating||!!this.forceRenderCached)&&!this._invalidateRenderCache,this._invalidateRenderCache=!1;const r=this.proxyCoords=i.getIds().map(e=>{const t=i.getTileByID(e).tileID;return t.posMatrix=n.calculatePosMatrix(t.toUnwrapped()),t});!function(t,i){const n=i.transform.pointCoordinate(i.transform.getCameraPoint()),a=new e.Point(n.x,n.y);t.sort((t,i)=>{if(i.overscaledZ-t.overscaledZ)return i.overscaledZ-t.overscaledZ;const n=new e.Point(t.canonical.x+(1<<t.canonical.z)*t.wrap,t.canonical.y),r=new e.Point(i.canonical.x+(1<<i.canonical.z)*i.wrap,i.canonical.y),o=a.mult(1<<t.canonical.z);return o.x-=.5,o.y-=.5,o.distSqr(n)-o.distSqr(r)})}(r,this.painter),this._previousZoom=n.zoom;const o=this.proxyToSource||{};this.proxyToSource={}
2,r.forEach(e=>{this.proxyToSource[e.key]={}}),this.terrainTileForTile={};const s=this._style._sourceCaches;for(const e in s){const i=s[e];if(!i.used)continue;if(i!==this.sourceCache&&(this._findCoveringTileCache[i.id]={}),this._setupProxiedCoordsForOrtho(i,t[e],o),i.usedForTerrain)continue;const n=t[e];i.getSource().reparseOverscaled&&this._assignTerrainTiles(n)}this.proxiedCoords[i.id]=r.map(e=>new Rt(e,e.key,this.orthoMatrix)),this._assignTerrainTiles(r),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._setupRenderCache(o),this.renderingToTexture=!1,this._initFBOPool(),this._updateTimestamp=e.browser.now();const l={};this._visibleDemTiles=[];for(const e of this.proxyCoords){const t=this.terrainTileForTile[e.key];if(!t)continue;const i=t.tileID.key;i in l||(this._visibleDemTiles.push(t),l[i]=i)}}_assignTerrainTiles(e){this._initializing||e.forEach(e=>{if(this.terrainTileForTile[e.key])return;const t=this._findTileCoveringTileID(e,this.sourceCache);t&&(this.terrainTileForTile[e.key]=t)})}_prepareDEMTextures(){const e=this.painter.context,t=e.gl;for(const i in this.terrainTileForTile){const n=this.terrainTileForTile[i],a=n.dem;!a||n.demTexture&&!n.needsDEMTextureUpload||(e.activeTexture.set(t.TEXTURE1),St(this.painter,n,a))}}_prepareDemTileUniforms(e,t,i,n){if(!t||null==t.demTexture)return!1;const a=e.tileID.canonical,r=Math.pow(2,t.tileID.canonical.z-a.z),o=n||"";return i["u_dem_tl"+o]=[a.x*r%1,a.y*r%1],i["u_dem_scale"+o]=r,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}_getLoadedAreaMinimum(){let e=0;const t=this._visibleDemTiles.reduce((t,i)=>{if(!i.dem)return t;const n=i.dem.tree.minimums[0];return n>0&&e++,t+n},0);return e?t/e:0}_updateEmptyDEMTexture(){const t=this.painter.context,i=t.gl;t.activeTexture.set(i.TEXTURE2);const n=this._getLoadedAreaMinimum(),a={width:1,height:1,data:new Uint8Array(e.DEMData.pack(n,this.sourceCache.getSource().encoding))};this._emptyDEMTextureDirty=!1;let r=this._emptyDEMTexture;return r?r.update(a,{premultiply:!1}):r=this._emptyDEMTexture=new e.Texture(t,a,i.RGBA,{premultiply:!1}),r}setupElevationDraw(t,i,n){const a=this.painter.context,r=a.gl,o=(s=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:e.DEMData.getUnpackVector(s),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0});var s;o.u_dem_size=this.sourceCache.getSource().tileSize,o.u_exaggeration=this.exaggeration();let l=null,c=null,h=1;if(n&&n.morphing&&this._useVertexMorphing){const e=n.morphing.srcDemTile,i=n.morphing.dstDemTile;h=n.morphing.phase,e&&i&&(this._prepareDemTileUniforms(t,e,o,"_prev")&&(c=e),this._prepareDemTileUniforms(t,i,o)&&(l=i))}if(c&&l?(a.activeTexture.set(r.TEXTURE2),l.demTexture.bind(r.NEAREST,r.CLAMP_TO_EDGE,r.NEAREST),a.activeTexture.set(r.TEXTURE4),c.demTexture.bind(r.NEAREST,r.CLAMP_TO_EDGE,r.NEAREST),o.u_dem_lerp=h):(l=this.terrainTileForTile[t.tileID.key],a.activeTexture.set(r.TEXTURE2),(this._prepareDemTileUniforms(t,l,o)?l.demTexture:this.emptyDEMTexture).bind(r.NEAREST,r.CLAMP_TO_EDGE,r.NEAREST)),n&&n.useDepthForOcclusion&&(a.activeTexture.set(r.TEXTURE3),this._depthTexture.bind(r.NEAREST,r.CLAMP_TO_EDGE,r.NEAREST),o.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height]),n&&n.useMeterToDem&&l){const t=(1<<l.tileID.canonical.z)*e.mercatorZfromAltitude(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;o.u_meter_to_dem=t}n&&n.labelPlaneMatrixInv&&(o.u_label_plane_matrix_inv=n.labelPlaneMatrixInv),i.setTerrainUniformValues(a,o)}renderBatch(t){if(0===this._drapedRenderBatches.length)return t+1;this.renderingToTexture=!0;const i=this.painter,n=this.painter.context,a=this.proxySourceCache,r=this.proxiedCoords[a.id],o=()=>{n.bindFramebuffer.set(null),n.viewport.set([0,0,i.width,i.height]),this.renderingToTexture=!1},s=this._drapedRenderBatches.shift();let l=[];const c=i.style.order;let h=0;for(let u=0;u<r.length;u++){const d=r[u],f=a.getTileByID(d.proxyTileKey),m=a.proxyCachedFBO[d.key]?a.proxyCachedFBO[d.key][t]:void 0;let p,A;if(p=this.currentFBO=void 0!==m?a.renderCache[m]:this.pool[h++],f.texture=p.tex,void 0===m||p.dirty){n.bindFramebuffer.set(p.fb.framebuffer),this.renderedToTile=!1,p.dirty&&(n.clear({color:e.Color.transparent}),p.dirty=!1);for(let e=s.start;e<=s.end;++e){const t=i.style._layers[c[e]];if(t.isHidden(i.transform.zoom))continue;const a=i.style._getLayerSourceCache(t),r=a?this.proxyToSource[d.key][a.id]:[d];if(!r)continue;const o=r;n.viewport.set([0,0,p.fb.width,p.fb.height]),A!==(a?a.id:null)&&(this._setupStencil(r,t,a),A=a?a.id:null),i.renderLayer(i,a,t,o)}p.dirty=this.renderedToTile,this.renderedToTile&&l.push(f.tileID),5===h&&(h=0,l.length>0&&(o(),Pt(i,this,a,l,this._updateTimestamp),this.renderingToTexture=!0,l=[]))}else l.push(f.tileID)}return o(),l.length>0&&Pt(i,this,a,l,this._updateTimestamp),s.end+1}postRender(){}renderCacheEfficiency(e){const t=e.order.length;
2if(0===t)return{efficiency:100};let i,n=0,a=0,r=!1;for(let o=0;o<t;++o){const t=e._layers[e.order[o]];this._style.isLayerDraped(t)?(r&&++n,++a):r||(r=!0,i=t.id)}return 0===a?{efficiency:100}:{efficiency:100*(1-n/a),firstUndrapedLayer:i}}raycast(e,t,i){if(!this._visibleDemTiles)return null;const n=this._visibleDemTiles.filter(e=>e.dem).map(n=>{const a=n.tileID,r=Math.pow(2,a.overscaledZ),{x:o,y:s}=a.canonical,l=o/r,c=(o+1)/r,h=s/r,u=(s+1)/r;return{minx:l,miny:h,maxx:c,maxy:u,t:n.dem.tree.raycastRoot(l,h,c,u,e,t,i),tile:n}});n.sort((e,t)=>(null!==e.t?e.t:Number.MAX_VALUE)-(null!==t.t?t.t:Number.MAX_VALUE));for(const a of n){if(null==a.t)return null;const n=a.tile.dem.tree.raycast(a.minx,a.miny,a.maxx,a.maxy,e,t,i);if(null!=n)return n}return null}_createFBO(){const t=this.painter.context,i=t.gl,n=this.drapeBufferSize;t.activeTexture.set(i.TEXTURE0);const a=new e.Texture(t,{width:n[0],height:n[1],data:null},i.RGBA);a.bind(i.LINEAR,i.CLAMP_TO_EDGE);const r=t.createFramebuffer(n[0],n[1],!1);return r.colorAttachment.set(a.texture),t.extTextureFilterAnisotropic&&!t.extTextureFilterAnisotropicForceOff&&i.texParameterf(i.TEXTURE_2D,t.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,t.extTextureFilterAnisotropicMax),{fb:r,tex:a,dirty:!1,ref:1}}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){return!this.renderCached||this._style.order.some(e=>{const t=this._style._layers[e],i=!t.isHidden(this.painter.transform.zoom),n=t.getCrossfadeParameters();return"custom"!==t.type&&!i&&!!n&&1!==n.t})}_clearRasterFadeFromRenderCache(){let e=!1;for(const t in this._style._sourceCaches)if(this._style._sourceCaches[t]._source instanceof x){e=!0;break}if(e)for(let e=0;e<this._style.order.length;++e){const t=this._style._layers[this._style.order[e]],i=t.isHidden(this.painter.transform.zoom),n=this._style._getLayerSourceCache(t);if("raster"!==t.type||i||!n)continue;const a=t.paint.get("raster-fade-duration");for(const e of this.proxyCoords){const t=this.proxyToSource[e.key][n.id];if(t)for(const e of t){const t=Ot(n.getTile(e),n.findLoadedParent(e,0),n,this.painter.transform,a);(1!==t.opacity||0!==t.mix)&&this._clearRenderCacheForTile(n.id,e)}}}}_setupDrapedRenderBatches(){const e=this._style.order,t=e.length;if(0===t)return;const i=[];let n,a=0,r=this._style._layers[e[a]];for(;!this._style.isLayerDraped(r)&&r.isHidden(this.painter.transform.zoom)&&++a<t;)r=this._style._layers[e[a]];for(;a<t;++a){const t=this._style._layers[e[a]];t.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(t)?void 0===n&&(n=a):void 0!==n&&(i.push({start:n,end:a-1}),n=void 0))}void 0!==n&&i.push({start:n,end:a-1}),this._drapedRenderBatches=i}_setupRenderCache(e){const t=this.proxySourceCache;if(this._shouldDisableRenderCache()){if(t.renderCache.length>t.renderCachePool.length){const e=Object.values(t.proxyCachedFBO);t.proxyCachedFBO={};for(let i=0;i<e.length;++i){const n=Object.values(e[i]);t.renderCachePool.push(...n)}}return}this._clearRasterFadeFromRenderCache();const i=this.proxyCoords,n=this._tilesDirty;for(let a=i.length-1;a>=0;a--){const r=i[a];if(t.getTileByID(r.key),void 0!==t.proxyCachedFBO[r.key]){const i=e[r.key],a=this.proxyToSource[r.key];let o=0;for(const e in a){const t=a[e],r=i[e];if(!r||r.length!==t.length||t.some((t,i)=>t!==r[i]||n[e]&&n[e].hasOwnProperty(t.key))){o=-1;break}++o}for(const e in t.proxyCachedFBO[r.key])t.renderCache[t.proxyCachedFBO[r.key][e]].dirty=o<0||o!==Object.values(i).length}else for(let e=0;e<this._drapedRenderBatches.length;++e){const i=this._drapedRenderBatches[e];let n=t.renderCachePool.pop();void 0===n&&t.renderCache.length<50&&(n=t.renderCache.length,t.renderCache.push(this._createFBO())),void 0!==n&&(void 0===t.proxyCachedFBO[r.key]&&(t.proxyCachedFBO[r.key]={}),t.proxyCachedFBO[r.key][i.start]=n,t.renderCache[n].dirty=!0)}}this._tilesDirty={}}_setupStencil(t,i,n){if(!n||!this._sourceTilesOverlap[n.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const a=this.painter.context,r=a.gl;if(t.length<=1)return void(this._overlapStencilType=!1);const o=this.currentFBO,s=o.fb;let l;if(i.isTileClipped())l=t.length,this._overlapStencilMode.test={func:r.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(t[0].overscaledZ>
vendor: 10,404 bytes, line 2
2t[t.length-1].overscaledZ))return void(this._overlapStencilType=!1);l=1,this._overlapStencilMode.test={func:r.GREATER,mask:255},this._overlapStencilType="Mask"}if(!s.depthAttachment){const t=a.createRenderbuffer(a.gl.DEPTH_STENCIL,s.width,s.height);s.depthAttachment=new e.DepthStencilAttachment(a,s.framebuffer),s.depthAttachment.set(t),a.clear({stencil:0})}o.ref+l>255&&(a.clear({stencil:0}),o.ref=0),o.ref+=l,this._overlapStencilMode.ref=o.ref,i.isTileClipped()&&this._renderTileClippingMasks(t,this._overlapStencilMode.ref)}stencilModeForRTTOverlap(t){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[t.key]),this._overlapStencilMode):e.StencilMode.disabled}_renderTileClippingMasks(t,i){const n=this.painter,a=this.painter.context,r=a.gl;n._tileClippingMaskIDs={},a.setColorMode(e.ColorMode.disabled),a.setDepthMode(e.DepthMode.disabled);const o=n.useProgram("clippingMask");for(const s of t){const t=n._tileClippingMaskIDs[s.key]=--i;o.draw(a,r.TRIANGLES,e.DepthMode.disabled,new e.StencilMode({func:r.ALWAYS,mask:0},t,255,r.KEEP,r.KEEP,r.REPLACE),e.ColorMode.disabled,e.CullFaceMode.disabled,Ut(s.posMatrix),"$clipping",n.tileExtentBuffer,n.quadTriangleIndexBuffer,n.tileExtentSegments)}}pointCoordinate(t){const i=this.painter.transform;if(t.x<0||t.x>i.width||t.y<0||t.y>i.height)return null;const n=[t.x,t.y,1,1];e.transformMat4(n,n,i.pixelMatrixInverse),e.scale$1(n,n,1/n[3]),n[0]/=i.worldSize,n[1]/=i.worldSize;const a=i._camera.position,r=e.mercatorZfromAltitude(1,i.center.lat),o=[a[0],a[1],a[2]/r,0],s=e.subtract([],n.slice(0,3),o);e.normalize(s,s);const l=this.raycast(o,s,this._exaggeration);return null!==l&&l?(e.scaleAndAdd(o,o,s,l),o[3]=o[2],o[2]*=r,o):null}drawDepth(){const t=this.painter,i=t.context,n=this.proxySourceCache,a=Math.ceil(t.width),r=Math.ceil(t.height);if(!this._depthFBO||this._depthFBO.width===a&&this._depthFBO.height===r||(this._depthFBO.destroy(),delete this._depthFBO,delete this._depthTexture),!this._depthFBO){const t=i.gl,n=i.createFramebuffer(a,r,!0);i.activeTexture.set(t.TEXTURE0);const o=new e.Texture(i,{width:a,height:r,data:null},t.RGBA);o.bind(t.NEAREST,t.CLAMP_TO_EDGE),n.colorAttachment.set(o.texture);const s=i.createRenderbuffer(i.gl.DEPTH_COMPONENT16,a,r);n.depthAttachment.set(s),this._depthFBO=n,this._depthTexture=o}i.bindFramebuffer.set(this._depthFBO.framebuffer),i.viewport.set([0,0,a,r]),function(t,i,n,a){const r=t.context,o=r.gl;r.clear({depth:1});const s=t.useProgram("terrainDepth"),l=new e.DepthMode(o.LESS,e.DepthMode.ReadWrite,t.depthRangeFor3D);for(const t of a){const a=n.getTile(t),c=kt(t.posMatrix,0);i.setupElevationDraw(a,s),s.draw(r,o.TRIANGLES,l,e.StencilMode.disabled,e.ColorMode.unblended,e.CullFaceMode.backCCW,c,"terrain_depth",i.gridBuffer,i.gridIndexBuffer,i.gridNoSkirtSegments)}}(t,this,n,this.proxyCoords)}_setupProxiedCoordsForOrtho(e,t,i){if(e.getSource()instanceof C)return this._setupProxiedCoordsForImageSource(e,t,i);this._findCoveringTileCache[e.id]=this._findCoveringTileCache[e.id]||{};const n=this.proxiedCoords[e.id]=[],a=this.proxyCoords;for(let t=0;t<a.length;t++){const r=a[t],o=this._findTileCoveringTileID(r,e);if(o){const t=this._createProxiedId(r,o,i[r.key]&&i[r.key][e.id]);n.push(t),this.proxyToSource[r.key][e.id]=[t]}}let r=!1;for(let a=0;a<t.length;a++){const o=e.getTile(t[a]);if(!o||!o.hasData())continue;const s=this._findTileCoveringTileID(o.tileID,this.proxySourceCache);if(s&&s.tileID.canonical.z!==o.tileID.canonical.z){const t=this.proxyToSource[s.tileID.key][e.id],a=this._createProxiedId(s.tileID,o,i[s.tileID.key]&&i[s.tileID.key][e.id]);t?t.splice(t.length-1,0,a):this.proxyToSource[s.tileID.key][e.id]=[a],n.push(a),r=!0}}this._sourceTilesOverlap[e.id]=r}_setupProxiedCoordsForImageSource(t,i,n){if(!t.getSource().loaded())return;const a=this.proxiedCoords[t.id]=[],r=this.proxyCoords,o=t.getSource(),s=new e.Point(o.tileID.x,o.tileID.y)._div(1<<o.tileID.z),l=o.coordinates.map(e.MercatorCoordinate.fromLngLat).reduce((e,t)=>(e.min.x=Math.min(e.min.x,t.x-s.x),e.min.y=Math.min(e.min.y,t.y-s.y),e.max.x=Math.max(e.max.x,t.x-s.x),e.max.y=Math.max(e.max.y,t.y-s.y),e),{min:new e.Point(Number.MAX_VALUE,Number.MAX_VALUE),max:new e.Point(-Number.MAX_VALUE,-Number.MAX_VALUE)}),c=(t,i)=>{const n=t.wrap+t.canonical.x/(1<<t.canonical.z),a=t.canonical.y/(1<<t.canonical.z),r=e.EXTENT/(1<<t.canonical.z),o=i.wrap+i.canonical.x/(1<<i.canonical.z),s=i.canonical.y/(1<<i.canonical.z);return n+r<o+l.min.x||n>o+l.max.x||a+r<s+l.min.y||a>s+l.max.y};for(let e=0;e<r.length;e++){const o=r[e];for(let e=0;e<i.length;e++){const r=t.getTile(i[e]);if(!r||!r.hasData())continue;if(c(o,r.tileID))continue;const s=this._createProxiedId(o,r,n[o.key]&&n[o.key][t.id]),l=this.proxyToSource[o.key][t.id];l?l.push(s):this.proxyToSource[o.key][t.id]=[s],a.push(s)}}}_createProxiedId(t,i,n){let a=this.orthoMatrix;if(n){const e=n.find(e=>e.key===i.tileID.key);if(e)return e}if(i.tileID.key!==t.key){const n=t.canonical.z-i.tileID.canonical.z;let r,o,s;a=e.create();const l=i.tileID.wrap-t.wrap<<t.overscaledZ;n>0?(r=e.EXTENT>>n,o=r*((i.tileID.canonical.x<<n)-t.canonical.x+l),s=r*((i.tileID.canonical.y<<n)-t.canonical.y)):(r=e.EXTENT<<-n,o=e.EXTENT*(i.tileID.canonical.x-(t.canonical.x+l<<-n)),s=e.EXTENT*(i.tileID.canonical.y-(t.canonical.y<<-n))),e.ortho(a,0,r,0,r,0,1),e.translate(a,a,[o,s,0])}return new Rt(i.tileID,t.key,a)}_findTileCoveringTileID(t,i){let n=i.getTile(t);if(n&&n.hasData())return n;const a=this._findCoveringTileCache[i.id],r=a[t.key];if(n=r?i.getTileByID(r):null,n&&n.hasData()||null===r)return n;let o=n?n.tileID:t,s=o.overscaledZ;const l=i.getSource().minzoom,c=[];if(!r){const a=i.getSource().maxzoom;if(t.canonical.z>=a){const n=t.canonical.z-a;i.getSource().reparseOverscaled?(s=Math.max(t.canonical.z+2,i.transform.tileZoom),o=new e.OverscaledTileID(s,t.wrap,a,t.canonical.x>>n,t.canonical.y>>n)):0!==n&&(s=a,o=new e.OverscaledTileID(s,t.wrap,a,t.canonical.x>>n,t.canonical.y>>n))}o.key!==t.key&&(c.push(o.key),n=i.getTile(o))}const h=e=>{c.forEach(t=>{a[t]=e}),c.length=0};for(s-=1;s>=l&&(!n||!n.hasData());s--){n&&h(n.tileID.key);const e=o.calculateScaledKey(s);if(n=i.getTileByID(e),n&&n.hasData())break;const t=a[e];if(null===t)break;void 0===t?c.push(e):n=i.getTileByID(t)}return h(n?n.tileID.key:null),n&&n.hasData()?n:null}findDEMTileFor(e){return this.enabled?this._findTileCoveringTileID(e,this.sourceCache):null}prepareDrawTile(e){this.renderedToTile||(this.renderedToTile=!0)}_clearRenderCacheForTile(e,t){let i=this._tilesDirty[e];i||(i=this._tilesDirty[e]={}),i[t.key]=!0}}function Lt(e){const t=[];for(let i=0;i<e.length;i++){if(null===e[i])continue;const n=e[i].split(" ");t.push(n.pop())}return t}class zt{static cacheKey(e,t,i){let n=`${e}${i?i.cacheKey:""}`;for(const e of t)n+="/"+e;return n}constructor(t,i,n,a,r,o){const s=t.gl;this.program=s.createProgram();const l=Lt(n.staticAttributes),c=a?a.getBinderAttributes():[],h=l.concat(c),u=n.staticUniforms?Lt(n.staticUniforms):[],d=a?a.getBinderUniforms():[],f=u.concat(d),m=[];for(const e of f)m.indexOf(e)<0&&m.push(e);let p=a?a.defines():[];p=p.concat(o.map(e=>"#define "+e));const A=p.concat(je.fragmentSource,n.fragmentSource).join("\n"),g=p.concat(je.vertexSource,Ve.vertexSource,n.vertexSource).join("\n"),y=s.createShader(s.FRAGMENT_SHADER);if(s.isContextLost())return void(this.failedToCreate=!0);s.shaderSource(y,A),s.compileShader(y),s.attachShader(this.program,y);const v=s.createShader(s.VERTEX_SHADER);if(s.isContextLost())return void(this.failedToCreate=!0);s.shaderSource(v,g),s.compileShader(v),s.attachShader(this.program,v),this.attributes={};const _={};this.numAttributes=h.length;for(let e=0;e<this.numAttributes;e++)h[e]&&(s.bindAttribLocation(this.program,e,h[e]),this.attributes[h[e]]=e);s.linkProgram(this.program),s.deleteShader(v),s.deleteShader(y);for(let e=0;e<m.length;e++){const t=m[e];if(t&&!_[t]){const e=s.getUniformLocation(this.program,t);e&&(_[t]=e)}}this.fixedUniforms=r(t,_),this.binderUniforms=a?a.getUniforms(t,_):[],-1!==o.indexOf("TERRAIN")&&(this.terrainUniforms=((t,i)=>({u_dem:new e.Uniform1i(t,i.u_dem),u_dem_prev:new e.Uniform1i(t,i.u_dem_prev),u_dem_unpack:new e.Uniform4f(t,i.u_dem_unpack),u_dem_tl:new e.Uniform2f(t,i.u_dem_tl),u_dem_scale:new e.Uniform1f(t,i.u_dem_scale),u_dem_tl_prev:new e.Uniform2f(t,i.u_dem_tl_prev),u_dem_scale_prev:new e.Uniform1f(t,i.u_dem_scale_prev),u_dem_size:new e.Uniform1f(t,i.u_dem_size),u_dem_lerp:new e.Uniform1f(t,i.u_dem_lerp),u_exaggeration:new e.Uniform1f(t,i.u_exaggeration),u_depth:new e.Uniform1i(t,i.u_depth),u_depth_size_inv:new e.Uniform2f(t,i.u_depth_size_inv),u_meter_to_dem:new e.Uniform1f(t,i.u_meter_to_dem),u_label_plane_matrix_inv:new e.UniformMatrix4f(t,i.u_label_plane_matrix_inv)}))(t,_))}setTerrainUniformValues(e,t){if(!this.terrainUniforms)return;const i=this.terrainUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)i[e].set(t[e])}}draw(e,t,i,n,a,r,o,s,l,c,h,u,d,f,m,p){const A=e.gl;if(this.failedToCreate)return;e.program.set(this.program),e.setDepthMode(i),e.setStencilMode(n),e.setColorMode(a),e.setCullFace(r);for(const e in this.fixedUniforms)this.fixedUniforms[e].set(o[e]);f&&f.setUniforms(e,this.binderUniforms,u,{zoom:d});const g={[A.LINES]:2,[A.TRIANGLES]:3,[A.LINE_STRIP]:1}[t];for(const i of h.get()){const n=i.vaos||(i.vaos={});(n[s]||(n[s]=new xt)).bind(e,this,l,f?f.getPaintVertexBuffers():[],c,i.vertexOffset,m,p),A.drawElements(t,i.primitiveLength*g,A.UNSIGNED_SHORT,i.primitiveOffset*g*2)}}}function Ht(e,t,i){const n=1/y(i,1,t.transform.tileZoom),a=Math.pow(2,i.tileID.overscaledZ),r=i.tileSize*Math.pow(2,t.transform.tileZoom)/a,o=r*(i.tileID.canonical.x+i.tileID.wrap*a),s=r*i.tileID.canonical.y;return{u_image:0,u_texsize:i.imageAtlasTexture.size,u_scale:[n,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[o>>16,s>>16],u_pixel_coord_lower:[65535&o,65535&s]}}const Qt=(t,i,n,a)=>{const r=i.style.light,o=r.properties.get("position"),s=[o.x,o.y,o.z],l=e.create$1();"viewport"===r.properties.get("anchor")&&(e.fromRotation(l,-i.transform.angle),e.transformMat3(s,s,l));const c=r.properties.get("color");return{u_matrix:t,u_lightpos:s,u_lightintensity:r.properties.get("intensity"),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:a}},Vt=(t,i,n,a,r,o,s)=>e.extend(Qt(t,i,n,a),Ht(o,i,s),{u_height_factor:-Math.pow(2,r.overscaledZ
vendor: 5,166 bytes, line 2
2)/s.tileSize/8}),jt=e=>({u_matrix:e}),Gt=(t,i,n,a)=>e.extend(jt(t),Ht(n,i,a)),Kt=(e,t)=>({u_matrix:e,u_world:t}),qt=(t,i,n,a,r)=>e.extend(Gt(t,i,n,a),{u_world:r}),$t=(t,i,n,a)=>{const r=t.transform;let o;if("map"===a.paint.get("circle-pitch-alignment")){const e=y(n,1,r.zoom);o=[e,e]}else o=r.pixelsToGLUnits;return{u_camera_to_center_distance:r.cameraToCenterDistance,u_matrix:t.translatePosMatrix(i.posMatrix,n,a.paint.get("circle-translate"),a.paint.get("circle-translate-anchor")),u_device_pixel_ratio:e.browser.devicePixelRatio,u_extrude_scale:o}},Yt=e=>{const t=[];return"map"===e.paint.get("circle-pitch-alignment")&&t.push("PITCH_WITH_MAP"),"map"===e.paint.get("circle-pitch-scale")&&t.push("SCALE_WITH_MAP"),t},Wt=(t,i,n)=>{const a=e.EXTENT/n.tileSize;return{u_matrix:t,u_camera_to_center_distance:i.cameraToCenterDistance,u_extrude_scale:[i.pixelsToGLUnits[0]/a,i.pixelsToGLUnits[1]/a]}},Xt=(e,t,i=1)=>({u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:i}),Jt=(e,t,i,n)=>({u_matrix:e,u_extrude_scale:y(t,1,i),u_intensity:n}),Zt=(t,i,n,a)=>{const r=t.transform;return{u_matrix:sn(t,i,n,a),u_ratio:1/y(i,1,r.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_units_to_pixels:[1/r.pixelsToGLUnits[0],1/r.pixelsToGLUnits[1]]}},en=(t,i,n,a,r)=>e.extend(Zt(t,i,n,a),{u_image:0,u_image_height:r}),tn=(t,i,n,a,r)=>{const o=t.transform,s=rn(i,o);return{u_matrix:sn(t,i,n,r),u_texsize:i.imageAtlasTexture.size,u_ratio:1/y(i,1,o.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_image:0,u_scale:[s,a.fromScale,a.toScale],u_fade:a.t,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},nn=(t,i,n,a,r,o)=>{const s=t.lineAtlas,l=rn(i,t.transform),c="round"===n.layout.get("line-cap"),h=s.getDash(a.from,c),u=s.getDash(a.to,c),d=h.width*r.fromScale,f=u.width*r.toScale;return e.extend(Zt(t,i,n,o),{u_patternscale_a:[l/d,-h.height/2],u_patternscale_b:[l/f,-u.height/2],u_sdfgamma:s.width/(256*Math.min(d,f)*e.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:h.y,u_tex_y_b:u.y,u_mix:r.t})};function rn(e,t){return 1/y(e,1,t.tileZoom)}function sn(e,t,i,n){return e.translatePosMatrix(n||t.tileID.posMatrix,t,i.paint.get("line-translate"),i.paint.get("line-translate-anchor"))}const an=(e,t,i,n,a)=>{return{u_matrix:e,u_tl_parent:t,u_scale_parent:i,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*a.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:a.paint.get("raster-brightness-min"),u_brightness_high:a.paint.get("raster-brightness-max"),u_saturation_factor:(o=a.paint.get("raster-saturation"),o>0?1-1/(1.001-o):-o),u_contrast_factor:(r=a.paint.get("raster-contrast"),r>0?1/(1-r):1+r),u_spin_weights:on(a.paint.get("raster-hue-rotate"))};var r,o};function on(e){e*=Math.PI/180;const t=Math.sin(e),i=Math.cos(e);return[(2*i+1)/3,(-Math.sqrt(3)*t-i+1)/3,(Math.sqrt(3)*t-i+1)/3]}const ln=(e,t,i,n,a,r,o,s,l,c)=>{const h=a.transform;return{u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:h.cameraToCenterDistance,u_pitch:h.pitch/360*2*Math.PI,u_rotate_symbol:+i,u_aspect_ratio:h.width/h.height,u_fade_change:a.options.fadeDuration?a.symbolFadeChange:1,u_matrix:r,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},li=(t,i,n,a,r,o,s,l,c,h,u)=>{const{cameraToCenterDistance:d,_pitch:f}=r.transform;return e.extend(ln(t,i,n,a,r,o,s,l,c,h),{u_gamma_scale:a?d*Math.cos(r.terrain?0:f):1,u_device_pixel_ratio:e.browser.devicePixelRatio,u_is_halo:+u})},cn=(t,i,n,a,r,o,s,l,c,h)=>e.extend(li(t,i,n,a,r,o,s,l,!0,c,!0),{u_texsize_icon:h,u_texture_icon:1}),un=(e,t,i)=>({u_matrix:e,u_opacity:t,u_color:i}),hn=(t,i,n,a,r,o)=>e.extend(function(e,t,i,n){const a=i.imageManager.getPattern(e.from.toString()),r=i.imageManager.getPattern(e.to.toString()),{width:o,height:s}=i.imageManager.getPixelSize(),l=Math.pow(2,n.tileID.overscaledZ),c=n.tileSize*Math.pow(2,i.transform.tileZoom)/l,h=c*(n.tileID.canonical.x+n.tileID.wrap*l),u=c*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:a.tl,u_pattern_br_a:a.br,u_pattern_tl_b:r.tl,u_pattern_br_b:r.br,u_texsize:[o,s],u_mix:t.t,u_pattern_size_a:a.displaySize,u_pattern_size_b:r.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/y(n,1,i.transform.tileZoom),u_pixel_coord_upper:[h>>16,u>>16],u_pixel_coord_lower:[65535&h,65535&u]}}(a,o,n,r),{u_matrix:t,u_opacity:i}),dn={fillExtrusion:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_lightpos:new e.Uniform3f(t,i.u_lightpos),u_lightintensity:new e.Uniform1f(t,i.u_lightintensity),u_lightcolor:new e.Uniform3f(t,i.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,i.u_vertical_gradient),u_opacity:new e.Uniform1f(t,i.u_opacity)}),fillExtrusionPattern:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_lightpos:new e.Uniform3f(t,i.u_lightpos),u_lightintensity:new e.Uniform1f(t,i.u_lightintensity),u_lightcolor:new e.Uniform3f(t,i.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,i.u_vertical_gradient),u_height_factor:new e.Uniform1f(t,i.u_height_factor),u_image:new e.Uniform1i(t,i.u_image),u_texsize:new e.Uniform2f(t,
2i.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,i.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,i.u_scale),u_fade:new e.Uniform1f(t,i.u_fade),u_opacity:new e.Uniform1f(t,i.u_opacity)}),fill:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix)}),fillPattern:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_image:new e.Uniform1i(t,i.u_image),u_texsize:new e.Uniform2f(t,i.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,i.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,i.u_scale),u_fade:new e.Uniform1f(t,i.u_fade)}),fillOutline:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_world:new e.Uniform2f(t,i.u_world)}),fillOutlinePattern:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_world:new e.Uniform2f(t,i.u_world),u_image:new e.Uniform1i(t,i.u_image),u_texsize:new e.Uniform2f(t,i.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,i.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,i.u_scale),u_fade:new e.Uniform1f(t,i.u_fade)}),circle:(t,i)=>({u_camera_to_center_distance:new e.Uniform1f(t,i.u_camera_to_center_distance),u_extrude_scale:new e.Uniform2f(t,i.u_extrude_scale),u_device_pixel_ratio:new e.Uniform1f(t,i.u_device_pixel_ratio),u_matrix:new e.UniformMatrix4f(t,i.u_matrix)}),collisionBox:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_camera_to_center_distance:new e.Uniform1f(t,i.u_camera_to_center_distance),u_extrude_scale:new e.Uniform2f(t,i.u_extrude_scale)}),collisionCircle:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_inv_matrix:new e.UniformMatrix4f(t,i.u_inv_matrix),u_camera_to_center_distance:new e.Uniform1f(t,i.u_camera_to_center_distance),u_viewport_size:new e.Uniform2f(t,i.u_viewport_size)}),debug:(t,i)=>({u_color:new e.UniformColor(t,i.u_color),u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_overlay:new e.Uniform1i(t,i.u_overlay),u_overlay_scale:new e.Uniform1f(t,i.u_overlay_scale)}),clippingMask:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix)}),heatmap:(t,i)=>({u_extrude_scale:new e.Uniform1f(t,i.u_extrude_scale),u_intensity:new e.Uniform1f(t,i.u_intensity),u_matrix:new e.UniformMatrix4f(t,i.u_matrix)}),heatmapTexture:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_world:new e.Uniform2f(t,i.u_world),u_image:new e.Uniform1i(t,i.u_image),u_color_ramp:new e.Uniform1i(t,i.u_color_ramp),u_opacity:new e.Uniform1f(t,i.u_opacity)}),hillshade:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_image:new e.Uniform1i(t,i.u_image),u_latrange:new e.Uniform2f(t,i.u_latrange),u_light:new e.Uniform2f(t,i.u_light),u_shadow:new e.UniformColor(t,i.u_shadow),u_highlight:new e.UniformColor(t,i.u_highlight),u_accent:new e.UniformColor(t,i.u_accent)}),hillshadePrepare:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_image:new e.Uniform1i(t,i.u_image),u_dimension:new e.Uniform2f(t,i.u_dimension),u_zoom:new e.Uniform1f(t,i.u_zoom),u_unpack:new e.Uniform4f(t,i.u_unpack)}),line:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_ratio:new e.Uniform1f(t,i.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,i.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,i.u_units_to_pixels)}),lineGradient:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_ratio:new e.Uniform1f(t,i.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,i.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,i.u_units_to_pixels),u_image:new e.Uniform1i(t,i.u_image),u_image_height:new e.Uniform1f(t,i.u_image_height)}),linePattern:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_texsize:new e.Uniform2f(t,i.u_texsize),u_ratio:new e.Uniform1f(t,i.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,i.u_device_pixel_ratio),u_image:new e.Uniform1i(t,i.u_image),u_units_to_pixels:new e.Uniform2f(t,i.u_units_to_pixels),u_scale:new e.Uniform3f(t,i.u_scale),u_fade:new e.Uniform1f(t,i.u_fade)}),lineSDF:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_ratio:new e.Uniform1f(t,i.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,i.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,
2i.u_units_to_pixels),u_patternscale_a:new e.Uniform2f(t,i.u_patternscale_a),u_patternscale_b:new e.Uniform2f(t,i.u_patternscale_b),u_sdfgamma:new e.Uniform1f(t,i.u_sdfgamma),u_image:new e.Uniform1i(t,i.u_image),u_tex_y_a:new e.Uniform1f(t,i.u_tex_y_a),u_tex_y_b:new e.Uniform1f(t,i.u_tex_y_b),u_mix:new e.Uniform1f(t,i.u_mix)}),raster:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_tl_parent:new e.Uniform2f(t,i.u_tl_parent),u_scale_parent:new e.Uniform1f(t,i.u_scale_parent),u_buffer_scale:new e.Uniform1f(t,i.u_buffer_scale),u_fade_t:new e.Uniform1f(t,i.u_fade_t),u_opacity:new e.Uniform1f(t,i.u_opacity),u_image0:new e.Uniform1i(t,i.u_image0),u_image1:new e.Uniform1i(t,i.u_image1),u_brightness_low:new e.Uniform1f(t,i.u_brightness_low),u_brightness_high:new e.Uniform1f(t,i.u_brightness_high),u_saturation_factor:new e.Uniform1f(t,i.u_saturation_factor),u_contrast_factor:new e.Uniform1f(t,i.u_contrast_factor),u_spin_weights:new e.Uniform3f(t,i.u_spin_weights)}),symbolIcon:(t,i)=>({u_is_size_zoom_constant:new e.Uniform1i(t,i.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,i.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,i.u_size_t),u_size:new e.Uniform1f(t,i.u_size),u_camera_to_center_distance:new e.Uniform1f(t,i.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,i.u_pitch),u_rotate_symbol:new e.Uniform1i(t,i.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,i.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,i.u_fade_change),u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,i.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,i.u_coord_matrix),u_is_text:new e.Uniform1i(t,i.u_is_text),u_pitch_with_map:new e.Uniform1i(t,i.u_pitch_with_map),u_texsize:new e.Uniform2f(t,i.u_texsize),u_texture:new e.Uniform1i(t,i.u_texture)}),symbolSDF:(t,i)=>({u_is_size_zoom_constant:new e.Uniform1i(t,i.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,i.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,i.u_size_t),u_size:new e.Uniform1f(t,i.u_size),u_camera_to_center_distance:new e.Uniform1f(t,i.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,i.u_pitch),u_rotate_symbol:new e.Uniform1i(t,i.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,i.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,i.u_fade_change),u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,i.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,i.u_coord_matrix),u_is_text:new e.Uniform1i(t,i.u_is_text),u_pitch_with_map:new e.Uniform1i(t,i.u_pitch_with_map),u_texsize:new e.Uniform2f(t,i.u_texsize),u_texture:new e.Uniform1i(t,i.u_texture),u_gamma_scale:new e.Uniform1f(t,i.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,i.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,i.u_is_halo)}),symbolTextAndIcon:(t,i)=>({u_is_size_zoom_constant:new e.Uniform1i(t,i.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,i.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,i.u_size_t),u_size:new e.Uniform1f(t,i.u_size),u_camera_to_center_distance:new e.Uniform1f(t,i.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,i.u_pitch),u_rotate_symbol:new e.Uniform1i(t,i.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,i.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,i.u_fade_change),u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,i.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,i.u_coord_matrix),u_is_text:new e.Uniform1i(t,i.u_is_text),u_pitch_with_map:new e.Uniform1i(t,i.u_pitch_with_map),u_texsize:new e.Uniform2f(t,i.u_texsize),u_texsize_icon:new e.Uniform2f(t,i.u_texsize_icon),u_texture:new e.Uniform1i(t,i.u_texture),u_texture_icon:new e.Uniform1i(t,i.u_texture_icon),u_gamma_scale:new e.Uniform1f(t,i.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,i.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,i.u_is_halo)}),background:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_opacity:new e.Uniform1f(t,i.u_opacity),u_color:new e.UniformColor(t,i.u_color)}),backgroundPattern:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_opacity:new e.Uniform1f(t,i.u_opacity),u_image:new e.Uniform1i(t,i.u_image),u_pattern_tl_a:new e.Uniform2f(t,
2i.u_pattern_tl_a),u_pattern_br_a:new e.Uniform2f(t,i.u_pattern_br_a),u_pattern_tl_b:new e.Uniform2f(t,i.u_pattern_tl_b),u_pattern_br_b:new e.Uniform2f(t,i.u_pattern_br_b),u_texsize:new e.Uniform2f(t,i.u_texsize),u_mix:new e.Uniform1f(t,i.u_mix),u_pattern_size_a:new e.Uniform2f(t,i.u_pattern_size_a),u_pattern_size_b:new e.Uniform2f(t,i.u_pattern_size_b),u_scale_a:new e.Uniform1f(t,i.u_scale_a),u_scale_b:new e.Uniform1f(t,i.u_scale_b),u_pixel_coord_upper:new e.Uniform2f(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,i.u_pixel_coord_lower),u_tile_units_to_pixels:new e.Uniform1f(t,i.u_tile_units_to_pixels)}),terrainRaster:Bt,terrainDepth:Bt,skybox:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_sun_direction:new e.Uniform3f(t,i.u_sun_direction),u_cubemap:new e.Uniform1i(t,i.u_cubemap),u_opacity:new e.Uniform1f(t,i.u_opacity),u_temporal_offset:new e.Uniform1f(t,i.u_temporal_offset)}),skyboxGradient:(t,i)=>({u_matrix:new e.UniformMatrix4f(t,i.u_matrix),u_color_ramp:new e.Uniform1i(t,i.u_color_ramp),u_center_direction:new e.Uniform3f(t,i.u_center_direction),u_radius:new e.Uniform1f(t,i.u_radius),u_opacity:new e.Uniform1f(t,i.u_opacity),u_temporal_offset:new e.Uniform1f(t,i.u_temporal_offset)}),skyboxCapture:(t,i)=>({u_matrix_3f:new e.UniformMatrix3f(t,i.u_matrix_3f),u_sun_direction:new e.Uniform3f(t,i.u_sun_direction),u_sun_intensity:new e.Uniform1f(t,i.u_sun_intensity),u_color_tint_r:new e.Uniform4f(t,i.u_color_tint_r),u_color_tint_m:new e.Uniform4f(t,i.u_color_tint_m),u_luminance:new e.Uniform1f(t,i.u_luminance)})};let pn;function fn(t,i,n,a,r,o,s){const l=t.context,c=l.gl,h=t.useProgram("collisionBox"),u=[];let d=0,f=0;for(let m=0;m<a.length;m++){const p=a[m],A=i.getTile(p),g=A.getBucket(n);if(!g)continue;let y=p.posMatrix;0===r[0]&&0===r[1]||(y=t.translatePosMatrix(p.posMatrix,A,r,o));const v=s?g.textCollisionBox:g.iconCollisionBox,_=g.collisionCircleArray;if(_.length>0){const i=e.create(),n=y;e.mul(i,g.placementInvProjMatrix,t.transform.glCoordMatrix),e.mul(i,i,g.placementViewportMatrix),u.push({circleArray:_,circleOffset:f,transform:n,invTransform:i}),d+=_.length/4,f=d}v&&(t.terrain&&t.terrain.setupElevationDraw(A,h),h.draw(l,c.LINES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,Wt(y,t.transform,A),n.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,null,t.transform.zoom,null,v.collisionVertexBuffer,v.collisionVertexBufferExt))}if(!s||!u.length)return;const m=t.useProgram("collisionCircle"),p=new e.StructArrayLayout2f1f2i16;p.resize(4*d),p._trim();let A=0;for(const e of u)for(let t=0;t<e.circleArray.length/4;t++){const i=4*t,n=e.circleArray[i+0],a=e.circleArray[i+1],r=e.circleArray[i+2],o=e.circleArray[i+3];p.emplace(A++,n,a,r,o,0),p.emplace(A++,n,a,r,o,1),p.emplace(A++,n,a,r,o,2),p.emplace(A++,n,a,r,o,3)}(!pn||pn.length<2*d)&&(pn=function(t){const i=2*t,n=new e.StructArrayLayout3ui6;n.resize(i),n._trim();for(let e=0;e<i;e++){const t=6*e;n.uint16[t+0]=4*e+0,n.uint16[t+1]=4*e+1,n.uint16[t+2]=4*e+2,n.uint16[t+3]=4*e+2,n.uint16[t+4]=4*e+3,n.uint16[t+5]=4*e+0}return n}(d));const g=l.createIndexBuffer(pn,!0),y=l.createVertexBuffer(p,e.collisionCircleLayout.members,!0);for(const i of u){const a={u_matrix:i.transform,u_inv_matrix:i.invTransform,u_camera_to_center_distance:(v=t.transform).cameraToCenterDistance,u_viewport_size:[v.width,v.height]};m.draw(l,c.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,a,n.id,y,g,e.SegmentVector.simpleSegment(0,2*i.circleOffset,i.circleArray.length,i.circleArray.length/2),null,t.transform.zoom,null,null,null)}var v;y.destroy(),g.destroy()}const mn=e.identity(new Float32Array(16));function An(t,i,n,a,r,o){const{horizontalAlign:s,verticalAlign:l}=e.getAnchorAlignment(t),c=-(s-.5)*i,h=-(l-.5)*n,u=e.evaluateVariableOffset(t,a);return new e.Point((c/r+u[0])*o,(h/r+u[1])*o)}function gn(t,i,n,a,r,o,s,l,c,h,u,d){const f=t.text.placedSymbolArray,m=t.text.dynamicLayoutVertexArray,p=t.icon.dynamicLayoutVertexArray,A={};m.clear();for(let p=0;p<f.length;p++){const g=f.get(p),y=t.allowVerticalPlacement&&!g.placedOrientation,v=g.hidden||!g.crossTileID||y?null:a[g.crossTileID];if(v){const a=new e.Point(g.anchorX,g.anchorY),f=d(a),p=X(a,n?l:s,f),y=J(o.cameraToCenterDistance,p.signedDistanceFromCamera);
2let _=r.evaluateSizeForFeature(t.textSizeData,h,g)*y/e.ONE_EM;n&&(_*=t.tilePixelRatio/c);const{width:b,height:w,anchor:x,textOffset:E,textBoxScale:C}=v,S=An(x,b,w,E,C,_),T=n?X(a.add(S),s,f).point:p.point.add(i?S.rotate(-o.angle):S),B=t.allowVerticalPlacement&&g.placedOrientation===e.WritingMode.vertical?Math.PI/2:0;for(let t=0;t<g.numGlyphs;t++)e.addDynamicAttributes(m,T,B);u&&g.associatedIconIndex>=0&&(A[g.associatedIconIndex]={shiftedAnchor:T,angle:B})}else oe(g.numGlyphs,m)}if(u){p.clear();const i=t.icon.placedSymbolArray;for(let t=0;t<i.length;t++){const n=i.get(t);if(n.hidden)oe(n.numGlyphs,p);else{const i=A[t];if(i)for(let t=0;t<n.numGlyphs;t++)e.addDynamicAttributes(p,i.shiftedAnchor,i.angle);else oe(n.numGlyphs,p)}}t.icon.dynamicLayoutVertexBuffer.updateData(p)}t.text.dynamicLayoutVertexBuffer.updateData(m)}function yn(e,t,i){return i.iconsInText&&t?"symbolTextAndIcon":e?"symbolSDF":"symbolIcon"}function vn(t,i,n,a,r,o,s,l,c,h,u,d){const f=t.context,m=f.gl,p=t.transform,A="map"===l,g="map"===c,v=A&&"point"!==n.layout.get("symbol-placement"),_=A&&!g&&!v,b=void 0!==n.layout.get("symbol-sort-key").constantOr(1);let w=!1;const x=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),E=n.layout.get("text-variable-anchor"),C=[],S=t.terrain&&g?["PITCH_WITH_MAP_TERRAIN"]:null;for(const l of a){const a=i.getTile(l),c=a.getBucket(n);if(!c)continue;const u=r?c.text:c.icon;if(!u||!u.segments.get().length)continue;const d=u.programConfigurations.get(n.id),f=r||c.sdfIcons,x=r?c.textSizeData:c.iconSizeData,T=g||0!==p.pitch,B=t.useProgram(yn(f,r,c),d,S),k=e.evaluateSizeForZoom(x,p.zoom);let I,M,P,D,U=[0,0],O=null;if(r){if(M=a.glyphAtlasTexture,P=m.LINEAR,I=a.glyphAtlasTexture.size,c.iconsInText){U=a.imageAtlasTexture.size,O=a.imageAtlasTexture;const e="composite"===x.kind||"camera"===x.kind;D=T||t.options.rotating||t.options.zooming||e?m.LINEAR:m.NEAREST}}else{const e=1!==n.layout.get("icon-size").constantOr(0)||c.iconsNeedLinear;M=a.imageAtlasTexture,P=f||t.options.rotating||t.options.zooming||e||T?m.LINEAR:m.NEAREST,I=a.imageAtlasTexture.size}const F=y(a,1,t.transform.zoom),R=Y(l.posMatrix,g,A,t.transform,F),N=t.terrain&&g&&v?e.invert(new Float32Array(16),R):mn,L=W(l.posMatrix,g,A,t.transform,F),z=E&&c.hasTextData(),H="none"!==n.layout.get("icon-text-fit")&&z&&c.hasIconData();if(v){const e=p.elevation;ee(c,l.posMatrix,t,r,R,L,g,h,e?t=>e.getAtTileOffset(l,t.x,t.y):null)}const Q=t.translatePosMatrix(l.posMatrix,a,o,s),V=v||r&&E||H?mn:R,q=t.translatePosMatrix(L,a,o,s,!0),j=f&&0!==n.paint.get(r?"text-halo-width":"icon-halo-width").constantOr(1);let G;G=f?c.iconsInText?cn(x.kind,k,_,g,t,Q,V,q,I,U):li(x.kind,k,_,g,t,Q,V,q,r,I,!0):ln(x.kind,k,_,g,t,Q,V,q,r,I);const K={program:B,buffers:u,uniformValues:G,atlasTexture:M,atlasTextureIcon:O,atlasInterpolation:P,atlasInterpolationIcon:D,isSDF:f,hasHalo:j,tile:a,labelPlaneMatrixInv:N};if(b&&c.canOverlap){w=!0;const t=u.segments.get();for(const i of t)C.push({segments:new e.SegmentVector([i]),sortKey:i.sortKey,state:K})}else C.push({segments:u.segments,sortKey:0,state:K})}w&&C.sort((e,t)=>
vendor: 11,920 bytes, line 2
2e.sortKey-t.sortKey);for(const e of C){const i=e.state;if(t.terrain&&t.terrain.setupElevationDraw(i.tile,i.program,{useDepthForOcclusion:!0,labelPlaneMatrixInv:i.labelPlaneMatrixInv}),f.activeTexture.set(m.TEXTURE0),i.atlasTexture.bind(i.atlasInterpolation,m.CLAMP_TO_EDGE),i.atlasTextureIcon&&(f.activeTexture.set(m.TEXTURE1),i.atlasTextureIcon&&i.atlasTextureIcon.bind(i.atlasInterpolationIcon,m.CLAMP_TO_EDGE)),i.isSDF){const a=i.uniformValues;i.hasHalo&&(a.u_is_halo=1,_n(i.buffers,e.segments,n,t,i.program,x,u,d,a)),a.u_is_halo=0}_n(i.buffers,e.segments,n,t,i.program,x,u,d,i.uniformValues)}}function _n(t,i,n,a,r,o,s,l,c){const h=a.context;r.draw(h,h.gl.TRIANGLES,o,s,l,e.CullFaceMode.disabled,c,n.id,t.layoutVertexBuffer,t.indexBuffer,i,n.paint,a.transform.zoom,t.programConfigurations.get(n.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function bn(t,i,n,a,r,o,s){const l=t.context.gl,c=n.paint.get("fill-pattern"),h=c&&c.constantOr(1),u=n.getCrossfadeParameters();let d,f,m,p,A;s?(f=h&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",d=l.LINES):(f=h?"fillPattern":"fill",d=l.TRIANGLES);for(const g of a){const a=i.getTile(g);if(h&&!a.patternsLoaded())continue;const y=a.getBucket(n);if(!y)continue;t.prepareDrawTile(g);const v=y.programConfigurations.get(n.id),_=t.useProgram(f,v);h&&(t.context.activeTexture.set(l.TEXTURE0),a.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),v.updatePaintBuffers(u));const b=c.constantOr(null);if(b&&a.imageAtlas){const e=a.imageAtlas,t=e.patternPositions[b.to.toString()],i=e.patternPositions[b.from.toString()];t&&i&&v.setConstantPatternPositions(t,i)}const w=t.translatePosMatrix(g.posMatrix,a,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(s){p=y.indexBuffer2,A=y.segments2;const e=t.terrain&&t.terrain.renderingToTexture?t.terrain.drapeBufferSize:[l.drawingBufferWidth,l.drawingBufferHeight];m="fillOutlinePattern"===f&&h?qt(w,t,u,a,e):Kt(w,e)}else p=y.indexBuffer,A=y.segments,m=h?Gt(w,t,u,a):jt(w);_.draw(t.context,d,r,t.stencilModeForClipping(g),o,e.CullFaceMode.disabled,m,n.id,y.layoutVertexBuffer,p,A,n.paint,t.transform.zoom,v)}}function wn(t,i,n,a,r,o,s){const l=t.context,c=l.gl,h=n.paint.get("fill-extrusion-pattern"),u=h.constantOr(1),d=n.getCrossfadeParameters(),f=n.paint.get("fill-extrusion-opacity");for(const m of a){const a=i.getTile(m),p=a.getBucket(n);if(!p)continue;const A=p.programConfigurations.get(n.id),g=t.useProgram(u?"fillExtrusionPattern":"fillExtrusion",A);if(t.terrain){const e=t.terrain;if(!p.enableTerrain)continue;if(e.setupElevationDraw(a,g,{useMeterToDem:!0}),xn(l,i,m,p,n,e),!p.centroidVertexBuffer){const e=g.attributes.a_centroid_pos;void 0!==e&&c.vertexAttrib2f(e,0,0)}}u&&(t.context.activeTexture.set(c.TEXTURE0),a.imageAtlasTexture.bind(c.LINEAR,c.CLAMP_TO_EDGE),A.updatePaintBuffers(d));const y=h.constantOr(null);if(y&&a.imageAtlas){const e=a.imageAtlas,t=e.patternPositions[y.to.toString()],i=e.patternPositions[y.from.toString()];t&&i&&A.setConstantPatternPositions(t,i)}const v=t.translatePosMatrix(m.posMatrix,a,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),_=n.paint.get("fill-extrusion-vertical-gradient"),b=u?Vt(v,t,_,f,m,d,a):Qt(v,t,_,f);g.draw(l,l.gl.TRIANGLES,r,o,s,e.CullFaceMode.backCCW,b,n.id,p.layoutVertexBuffer,p.indexBuffer,p.segments,n.paint,t.transform.zoom,A,t.terrain?p.centroidVertexBuffer:null)}}function xn(t,i,n,a,r,o){const s=[t=>{let i=t.canonical.x-1,n=t.wrap;return i<0&&(i=(1<<t.canonical.z)-1,n--),new e.OverscaledTileID(t.overscaledZ,n,t.canonical.z,i,t.canonical.y)},t=>{let i=t.canonical.x+1,n=t.wrap;return i===1<<t.canonical.z&&(i=0,n++),new e.OverscaledTileID(t.overscaledZ,n,t.canonical.z,i,t.canonical.y)},t=>new e.OverscaledTileID(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,(0===t.canonical.y?1<<t.canonical.z:t.canonical.y)-1),t=>new e.OverscaledTileID(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y===(1<<t.canonical.z)-1?0:t.canonical.y+1)],l=e=>{const t=i.getSource().maxzoom;for(const n of[0,-1,1]){if(e.overscaledZ+n<t)continue;if(n>0&&e.overscaledZ<t)continue;const a=i.getTileByID(e.calculateScaledKey(e.overscaledZ+n));if(a&&a.hasData()){const e=a.getBucket(r);if(e)return e}}},c=[0,0,0],h=(t,i)=>(c[0]=Math.min(t.min.y,i.min.y),c[1]=Math.max(t.max.y,i.max.y),c[2]=e.EXTENT-i.min.x>t.max.x?i.min.x-e.EXTENT:t.max.x,c),u=(t,i)=>(c[0]=Math.min(t.min.x,i.min.x),c[1]=Math.max(t.max.x,i.max.x),c[2]=e.EXTENT-i.min.y>t.max.y?i.min.y-e.EXTENT:t.max.y,c),d=[(e,t)=>h(e,t),(e,t)=>h(t,e),(e,t)=>u(e,t),(e,t)=>u(t,e)],f=new e.Point(0,0);let m,p,A;const g=(t,i,a,r,s)=>{const l=[[r?a:t,r?t:a,0],[r?a:i,r?i:a,0]],c=s<0?e.EXTENT+s:s,h=[r?c:(t+i)/2,r?(t+i)/2:c,0];return 0===a&&s<0||0!==a&&s>0?o.getForTilePoints(A,[h],!0,p):l.push(h),o.getForTilePoints(n,l,!0,m),Math.max(l[0][2],l[1][2],h[2])/o.exaggeration()};for(let t=0;t<4;t++){const i=a.borders[t];if(0===i.length&&(a.borderDone[t]=!0),a.borderDone[t])continue;const r=A=s[t](n),c=l(r);if(!c||!c.enableTerrain)continue;if(p=o.findDEMTileFor(r),!p||!p.dem)continue;if(!m){const e=o.findDEMTileFor(n);if(!e||!e.dem)return;m=e}const h=(t<2?1:5)-t,u=c.borders[h];let y=0;for(let n=0;n<i.length;n++){const r=a.featuresOnBorder[i[n]],o=r.borders[t];let s;for(;y<u.length&&(s=c.featuresOnBorder[u[y]],!(s.borders[h][1]>o[0]+3));)c.borderDone[h]||c.encodeCentroid(void 0,s,!1),y++;if(s&&y<u.length){const i=y;let n=0;for(;!(s.borders[h][0]>o[1]-3)&&(n++,++y!==u.length);)s=c.featuresOnBorder[u[y]];if(s=c.featuresOnBorder[u[i]],r.intersectsCount()>1||s.intersectsCount()>1||1!==n){1!==n&&(y=i),a.encodeCentroid(void 0,r,!1),c.borderDone[h]||c.encodeCentroid(void 0,s,!1);continue}const l=d[t](r,s),m=t%2?e.EXTENT-1:0;f.x=g(l[0],Math.min(e.EXTENT-1,l[1]),m,t<2,l[2]),f.y=0,a.encodeCentroid(f,r,!1),c.borderDone[h]||c.encodeCentroid(f,s,!1)}else a.encodeCentroid(void 0,r,!1)}a.borderDone[t]=a.needsCentroidUpdate=!0,c.borderDone[h]||(c.borderDone[h]=c.needsCentroidUpdate=!0)}(a.needsCentroidUpdate||!a.centroidVertexBuffer&&0!==a.centroidVertexArray.length)&&a.uploadCentroid(t)}const En=new e.Color(1,0,0,1),Cn=new e.Color(0,1,0,1),Sn=new e.Color(0,0,1,1),Tn=new e.Color(1,0,1,1),Bn=new e.Color(0,1,1,1);function kn(e,t,i,n){Mn(e,0,t+i/2,e.transform.width,i,n)}function In(e,t,i,n){Mn(e,t-i/2,0,i,e.transform.height,n)}function Mn(t,i,n,a,r,o){const s=t.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(i*e.browser.devicePixelRatio,n*e.browser.devicePixelRatio,a*e.browser.devicePixelRatio,r*e.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function Pn(t,i,n){const a=t.context,r=a.gl,o=n.posMatrix,s=t.useProgram("debug"),l=i.getTileByID(n.key);t.terrain&&t.terrain.setupElevationDraw(l,s);const c=e.DepthMode.disabled,h=e.StencilMode.disabled,u=t.colorModeForRenderPass();a.activeTexture.set(r.TEXTURE0),t.emptyTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE),s.draw(a,r.LINE_STRIP,c,h,u,e.CullFaceMode.disabled,Xt(o,e.Color.red),"$debug",t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments);const d=l.latestRawTileData,f=Math.floor((d&&d.byteLength||0)/1024),m=i.getTile(n).tileSize,p=512/Math.min(m,512)*(n.overscaledZ/t.transform.zoom)*.5;let A=n.canonical.toString();n.overscaledZ!==n.canonical.z&&(A+=" => "+n.overscaledZ),function(e,t){e.initDebugOverlayCanvas();const i=e.debugOverlayCanvas,n=e.context.gl,a=e.debugOverlayCanvas.getContext("2d");a.clearRect(0,0,i.width,i.height),a.shadowColor="white",a.shadowBlur=2,a.lineWidth=1.5,a.strokeStyle="white",a.textBaseline="top",a.font="bold 36px Open Sans, sans-serif",a.fillText(t,5,5),a.strokeText(t,5,5),e.debugOverlayTexture.update(i),e.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(t,`${A} ${f}kb`),s.draw(a,r.TRIANGLES,c,h,e.ColorMode.alphaBlended,e.CullFaceMode.disabled,Xt(o,e.Color.transparent,p),"$debug",t.debugBuffer,t.quadTriangleIndexBuffer,t.debugSegments)}const Dn=e.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:Un}=Dn;function On(e,t,i,n){e.emplaceBack(t,i,n)}class Fn{constructor(t){this.vertexArray=new e.StructArrayLayout3f12,this.indices=new e.StructArrayLayout3ui6,On(this.vertexArray,-1,-1,1),On(this.vertexArray,1,-1,1),On(this.vertexArray,-1,1,1),On(this.vertexArray,1,1,1),On(this.vertexArray,-1,-1,-1),On(this.vertexArray,1,-1,-1),On(this.vertexArray,-1,1,-1),On(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=t.createVertexBuffer(this.vertexArray,Un),this.indexBuffer=t.createIndexBuffer(this.indices),this.segment=e.SegmentVector.simpleSegment(0,0,36,12)}}function Rn(t,i,n,a,r,o){const s=t.gl,l=i.paint.get("sky-atmosphere-color"),c=i.paint.get("sky-atmosphere-halo-color"),h=i.paint.get("sky-atmosphere-sun-intensity"),u=((e,t,i,n,a)=>({u_matrix_3f:e,u_sun_direction:t,u_sun_intensity:i,u_color_tint_r:[n.r,n.g,n.b,n.a],u_color_tint_m:[a.r,a.g,a.b,a.a],u_luminance:5e-5}))(e.fromMat4([],a),r,h,l,c);s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_CUBE_MAP_POSITIVE_X+o,i.skyboxTexture,0),n.draw(t,s.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,e.ColorMode.unblended,e.CullFaceMode.frontCW,u,"skyboxCapture",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}const Nn={symbol:function(t,i,n,a,r){if("translucent"!==t.renderPass)return;const o=e.StencilMode.disabled,s=t.colorModeForRenderPass();n.layout.get("text-variable-anchor")&&function(t,i,n,a,r,o,s){const l=i.transform,c="map"===r,h="map"===o;for(const r of t){const t=a.getTile(r),o=t.getBucket(n);if(!o||!o.text||!o.text.segments.get().length)continue;const u=e.evaluateSizeForZoom(o.textSizeData,l.zoom),d=y(t,1,i.transform.zoom),f=Y(r.posMatrix,h,c,i.transform,d),m="none"!==n.layout.get("icon-text-fit")&&o.hasIconData();if(u){const i=Math.pow(2,l.zoom-t.tileID.overscaledZ),n=l.elevation;gn(o,c,h,s,e.symbolSize,l,f,r.posMatrix,i,u,m,n?e=>n.getAtTileOffset(r,e.x,e.y):e=>0)}}}(a,t,n,i,n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),r),0!==n.paint.get("icon-opacity").constantOr(1)&&vn(t,i,n,a,!1,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),n.layout.get("icon-rotation-alignment"),n.layout.get("icon-pitch-alignment"),n.layout.get("icon-keep-upright"),o,s),0!==n.paint.get("text-opacity").constantOr(1)&&vn(t,i,n,a,!0,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),n.layout.get("text-keep-upright"),o,s),i.map.showCollisionBoxes&&(fn(t,i,n,a,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),!0),fn(t,i,n,a,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),!1))},circle:function(t,i,n,a){if("translucent"!==t.renderPass)return;const r=n.paint.get("circle-opacity"),o=n.paint.get("circle-stroke-width"),s=n.paint.get("circle-stroke-opacity"),l=void 0!==n.layout.get("circle-sort-key").constantOr(1);if(0===r.constantOr(1)&&(0===o.constantOr(1)||0===s.constantOr(1)))return;const c=t.context,h=c.gl,u=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),d=e.StencilMode.disabled,f=t.colorModeForRenderPass(),m=[];for(let r=0;r<a.length;r++){const o=a[r],s=i.getTile(o),c=s.getBucket(n);if(!c)continue;const h=c.programConfigurations.get(n.id),u=Yt(n),d={programConfiguration:h,program:t.useProgram("circle",h,u),layoutVertexBuffer:c.layoutVertexBuffer,indexBuffer:c.indexBuffer,uniformValues:$t(t,o,s,n),tile:s};if(l){const t=c.segments.get();for(const i of t)m.push({segments:new e.SegmentVector([i]),sortKey:i.sortKey,state:d})}else m.push({segments:c.segments,sortKey:0,state:d})}l&&m.sort((e,t)=>
2e.sortKey-t.sortKey);for(const i of m){const{programConfiguration:a,program:r,layoutVertexBuffer:o,indexBuffer:s,uniformValues:l,tile:m}=i.state,p=i.segments;t.terrain&&t.terrain.setupElevationDraw(m,r,{useDepthForOcclusion:!0}),r.draw(c,h.TRIANGLES,u,d,f,e.CullFaceMode.disabled,l,n.id,o,s,p,n.paint,t.transform.zoom,a)}},heatmap:function(t,i,n,a){if(0!==n.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){const r=t.context,o=r.gl,s=e.StencilMode.disabled,l=new e.ColorMode([o.ONE,o.ONE],e.Color.transparent,[!0,!0,!0,!0]);!function(e,t,i){const n=e.gl;e.activeTexture.set(n.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);let a=i.heatmapFbo;if(a)n.bindTexture(n.TEXTURE_2D,a.colorAttachment.get()),e.bindFramebuffer.set(a.framebuffer);else{const r=n.createTexture();n.bindTexture(n.TEXTURE_2D,r),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),a=i.heatmapFbo=e.createFramebuffer(t.width/4,t.height/4,!1),function(e,t,i,n){const a=e.gl;a.texImage2D(a.TEXTURE_2D,0,a.RGBA,t.width/4,t.height/4,0,a.RGBA,e.extRenderToTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:a.UNSIGNED_BYTE,null),n.colorAttachment.set(i)}(e,t,r,a)}}(r,t,n),r.clear({color:e.Color.transparent});for(let c=0;c<a.length;c++){const h=a[c];if(i.hasRenderableParent(h))continue;const u=i.getTile(h),d=u.getBucket(n);if(!d)continue;const f=d.programConfigurations.get(n.id),m=t.useProgram("heatmap",f),{zoom:p}=t.transform;t.terrain&&t.terrain.setupElevationDraw(u,m),m.draw(r,o.TRIANGLES,e.DepthMode.disabled,s,l,e.CullFaceMode.disabled,Jt(h.posMatrix,u,p,n.paint.get("heatmap-intensity")),n.id,d.layoutVertexBuffer,d.indexBuffer,d.segments,n.paint,t.transform.zoom,f)}r.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,i){const n=t.context,a=n.gl,r=i.heatmapFbo;if(!r)return;n.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,r.colorAttachment.get()),n.activeTexture.set(a.TEXTURE1);let o=i.colorRampTexture;o||(o=i.colorRampTexture=new e.Texture(n,i.colorRamp,a.RGBA)),o.bind(a.LINEAR,a.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(n,a.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,((t,i,n,a)=>{const r=e.create();e.ortho(r,0,t.width,t.height,0,0,1);const o=t.context.gl;return{u_matrix:r,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:i.paint.get("heatmap-opacity")}})(t,i),i.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,i.paint,t.transform.zoom)}(t,n))},line:function(t,i,n,a){if("translucent"!==t.renderPass)return;const r=n.paint.get("line-opacity"),o=n.paint.get("line-width");if(0===r.constantOr(1)||0===o.constantOr(1))return;const s=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),l=t.colorModeForRenderPass(),c=n.paint.get("line-dasharray"),h=n.paint.get("line-pattern"),u=h.constantOr(1),d=n.paint.get("line-gradient"),f=n.getCrossfadeParameters(),m=u?"linePattern":c?"lineSDF":d?"lineGradient":"line",p=t.context,A=p.gl;let g=!0;for(const r of a){const a=i.getTile(r);if(u&&!a.patternsLoaded())continue;const o=a.getBucket(n);if(!o)continue;t.prepareDrawTile(r);const y=o.programConfigurations.get(n.id),v=t.context.program.get(),_=t.useProgram(m,y),b=g||_.program!==v,w=h.constantOr(null);if(w&&a.imageAtlas){const e=a.imageAtlas,t=e.patternPositions[w.to.toString()],i=e.patternPositions[w.from.toString()];t&&i&&y.setConstantPatternPositions(t,i)}const x=t.terrain?r.posMatrix:null,E=u?tn(t,a,n,f,x):c?nn(t,a,n,c,f,x):d?en(t,a,n,x,o.lineClipsArray.length):Zt(t,a,n,x);if(u)p.activeTexture.set(A.TEXTURE0),a.imageAtlasTexture.bind(A.LINEAR,A.CLAMP_TO_EDGE),y.updatePaintBuffers(f);else if(c&&(b||t.lineAtlas.dirty))p.activeTexture.set(A.TEXTURE0),t.lineAtlas.bind(p);else if(d){const a=o.gradients[n.id];let s=a.texture;if(n.gradientVersion!==a.version){let l=256;if(n.stepInterpolant){const n=i.getSource().maxzoom,a=r.canonical.z===n?Math.ceil(1<<t.transform.maxZoom-r.canonical.z):1;l=e.clamp(e.nextPowerOfTwo(o.maxLineLength/e.EXTENT*1024*a),256,p.maxTextureSize)}a.gradient=e.renderColorRamp({expression:n.gradientExpression(),evaluationKey:"lineProgress",resolution:l,image:a.gradient||void 0,clips:o.lineClipsArray}),a.texture?a.texture.update(a.gradient):a.texture=new e.Texture(p,a.gradient,A.RGBA),a.version=n.gradientVersion,s=a.texture}
vendor: 21,431 bytes, line 2
2p.activeTexture.set(A.TEXTURE0),s.bind(n.stepInterpolant?A.NEAREST:A.LINEAR,A.CLAMP_TO_EDGE)}_.draw(p,A.TRIANGLES,s,t.stencilModeForClipping(r),l,e.CullFaceMode.disabled,E,n.id,o.layoutVertexBuffer,o.indexBuffer,o.segments,n.paint,t.transform.zoom,y,o.layoutVertexBuffer2),g=!1}},fill:function(t,i,n,a){const r=n.paint.get("fill-color"),o=n.paint.get("fill-opacity");if(0===o.constantOr(1))return;const s=t.colorModeForRenderPass(),l=n.paint.get("fill-pattern"),c=t.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===r.constantOr(e.Color.transparent).a&&1===o.constantOr(0)?"opaque":"translucent";if(t.renderPass===c){const r=t.depthModeForSublayer(1,"opaque"===t.renderPass?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly);bn(t,i,n,a,r,s,!1)}if("translucent"===t.renderPass&&n.paint.get("fill-antialias")){const r=t.depthModeForSublayer(n.getPaintProperty("fill-outline-color")?2:0,e.DepthMode.ReadOnly);bn(t,i,n,a,r,s,!0)}},"fill-extrusion":function(t,i,n,a){const r=n.paint.get("fill-extrusion-opacity");if(0!==r&&"translucent"===t.renderPass){const o=new e.DepthMode(t.context.gl.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);if(1!==r||n.paint.get("fill-extrusion-pattern").constantOr(1))wn(t,i,n,a,o,e.StencilMode.disabled,e.ColorMode.disabled),wn(t,i,n,a,o,t.stencilModeFor3D(),t.colorModeForRenderPass());else{const r=t.colorModeForRenderPass();wn(t,i,n,a,o,e.StencilMode.disabled,r)}}},hillshade:function(t,i,n,a){if("offscreen"!==t.renderPass&&"translucent"!==t.renderPass)return;const r=t.context,o=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),s=t.colorModeForRenderPass(),l=t.terrain&&t.terrain.renderingToTexture,[c,h]="translucent"!==t.renderPass||l?[{},a]:t.stencilConfigForOverlap(a);for(const a of h){const r=i.getTile(a);if(r.needsHillshadePrepare&&"offscreen"===t.renderPass)Tt(t,r,n,o,e.StencilMode.disabled,s);else if("translucent"===t.renderPass){const e=l&&t.terrain?t.terrain.stencilModeForRTTOverlap(a):c[a.overscaledZ];Ct(t,a,r,n,o,e,s)}}r.viewport.set([0,0,t.width,t.height])},raster:function(t,i,n,a,r,o){if("translucent"!==t.renderPass)return;if(0===n.paint.get("raster-opacity"))return;if(!a.length)return;const s=t.context,l=s.gl,c=i.getSource(),h=t.useProgram("raster"),u=t.colorModeForRenderPass(),d=t.terrain&&t.terrain.renderingToTexture,[f,m]=c instanceof C||d?[{},a]:t.stencilConfigForOverlap(a),p=m[m.length-1].overscaledZ,A=!t.options.moving;for(const a of m){const r=d?e.DepthMode.disabled:t.depthModeForSublayer(a.overscaledZ-p,1===n.paint.get("raster-opacity")?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly,l.LESS),m=i.getTile(a);if(d&&(!m||!m.hasData()))continue;const g=d?a.posMatrix:t.transform.calculatePosMatrix(a.toUnwrapped(),A),y=t.terrain&&d?t.terrain.stencilModeForRTTOverlap(a):f[a.overscaledZ],v=o?0:n.paint.get("raster-fade-duration");m.registerFadeDuration(v);const _=i.findLoadedParent(a,0),b=Ot(m,_,i,t.transform,v);let w,x;t.terrain&&t.terrain.prepareDrawTile(a);const E="nearest"===n.paint.get("raster-resampling")?l.NEAREST:l.LINEAR;s.activeTexture.set(l.TEXTURE0),m.texture.bind(E,l.CLAMP_TO_EDGE,l.LINEAR_MIPMAP_NEAREST),s.activeTexture.set(l.TEXTURE1),_?(_.texture.bind(E,l.CLAMP_TO_EDGE,l.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,_.tileID.overscaledZ-m.tileID.overscaledZ),x=[m.tileID.canonical.x*w%1,m.tileID.canonical.y*w%1]):m.texture.bind(E,l.CLAMP_TO_EDGE,l.LINEAR_MIPMAP_NEAREST);const S=an(g,x||[0,0],w||1,b,n);c instanceof C?h.draw(s,l.TRIANGLES,r,e.StencilMode.disabled,u,e.CullFaceMode.disabled,S,n.id,c.boundsBuffer,t.quadTriangleIndexBuffer,c.boundsSegments):h.draw(s,l.TRIANGLES,r,y,u,e.CullFaceMode.disabled,S,n.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,i,n,a){const r=n.paint.get("background-color"),o=n.paint.get("background-opacity");if(0===o)return;const s=t.context,l=s.gl,c=t.transform,h=c.tileSize,u=n.paint.get("background-pattern");if(t.isPatternMissing(u))return;const d=!u&&1===r.a&&1===o&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass!==d)return;const f=e.StencilMode.disabled,m=t.depthModeForSublayer(0,"opaque"===d?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly),p=t.colorModeForRenderPass(),A=t.useProgram(u?"backgroundPattern":"background"),g=a||c.coveringTiles({tileSize:h});u&&(s.activeTexture.set(l.TEXTURE0),t.imageManager.bind(t.context));const y=n.getCrossfadeParameters();for(const i of g){const c=a?i.posMatrix:t.transform.calculatePosMatrix(i.toUnwrapped());t.prepareDrawTile(i);const d=u?hn(c,o,t,u,{tileID:i,tileSize:h},y):un(c,o,r);A.draw(s,l.TRIANGLES,m,f,p,e.CullFaceMode.disabled,d,n.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}},sky:function(t,i,n){const a=n.paint.get("sky-opacity");if(0===a)return;const r=t.context,o=n.paint.get("sky-type"),s=new e.DepthMode(r.gl.LEQUAL,e.DepthMode.ReadOnly,[0,1]),l=t.frameCounter/1e3%1;"atmosphere"===o?"offscreen"===t.renderPass?n.needsSkyboxCapture(t)&&(function(t,i,n,a){const r=t.context,o=r.gl;let s=i.skyboxFbo;if(!s){s=i.skyboxFbo=r.createFramebuffer(32,32,!1),i.skyboxGeometry=new Fn(r),i.skyboxTexture=r.gl.createTexture(),o.bindTexture(o.TEXTURE_CUBE_MAP,i.skyboxTexture),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_WRAP_S,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_WRAP_T,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_MIN_FILTER,o.LINEAR),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_MAG_FILTER,o.LINEAR);for(let e=0;e<6;++e)o.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,o.RGBA,32,32,0,o.RGBA,o.UNSIGNED_BYTE,null)}r.bindFramebuffer.set(s.framebuffer),r.viewport.set([0,0,32,32]);const l=i.getCenter(t,!0),c=t.useProgram("skyboxCapture"),h=new Float64Array(16);e.identity(h),e.rotateY(h,h,.5*-Math.PI),Rn(r,i,c,h,l,0),e.identity(h),e.rotateY(h,h,.5*Math.PI),Rn(r,i,c,h,l,1),e.identity(h),e.rotateX(h,h,.5*-Math.PI),Rn(r,i,c,h,l,2),e.identity(h),e.rotateX(h,h,.5*Math.PI),Rn(r,i,c,h,l,3),e.identity(h),Rn(r,i,c,h,l,4),e.identity(h),e.rotateY(h,h,Math.PI),Rn(r,i,c,h,l,5),r.viewport.set([0,0,t.width,t.height])}(t,n),n.markSkyboxValid(t)):"sky"===t.renderPass&&function(t,i,n,a,r){const o=t.context,s=o.gl,l=t.transform,c=t.useProgram("skybox");o.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_CUBE_MAP,i.skyboxTexture);const h=((e,t,i,n,a)=>({u_matrix:e,u_sun_direction:t,u_cubemap:0,u_opacity:n,u_temporal_offset:a}))(l.skyboxMatrix,i.getCenter(t,!1),0,a,r);c.draw(o,s.TRIANGLES,n,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.backCW,h,"skybox",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}(t,n,s,a,l):"gradient"===o&&"sky"===t.renderPass&&function(t,i,n,a,r){const o=t.context,s=o.gl,l=t.transform,c=t.useProgram("skyboxGradient");i.skyboxGeometry||(i.skyboxGeometry=new Fn(o)),o.activeTexture.set(s.TEXTURE0);let h=i.colorRampTexture;h||(h=i.colorRampTexture=new e.Texture(o,i.colorRamp,s.RGBA)),h.bind(s.LINEAR,s.CLAMP_TO_EDGE);const u=((t,i,n,a,r)=>({u_matrix:t,u_color_ramp:0,u_center_direction:i,u_radius:e.degToRad(n),u_opacity:a,u_temporal_offset:r}))(l.skyboxMatrix,i.getCenter(t,!1),i.paint.get("sky-gradient-radius"),a,r);c.draw(o,s.TRIANGLES,n,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.backCW,u,"skyboxGradient",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}(t,n,s,a,l)},debug:function(e,t,i){for(let n=0;n<i.length;n++)Pn(e,t,i[n])},custom:function(t,i,n){const a=t.context,r=n.implementation;if("offscreen"===t.renderPass){const e=r.prerender;e&&(t.setCustomLayerDefaults(),a.setColorMode(t.colorModeForRenderPass()),e.call(r,a.gl,t.transform.customLayerMatrix()),a.setDirty(),t.setBaseState())}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),a.setColorMode(t.colorModeForRenderPass()),a.setStencilMode(e.StencilMode.disabled);const i="3d"===r.renderingMode?new e.DepthMode(t.context.gl.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,e.DepthMode.ReadOnly);a.setDepthMode(i),r.render(a.gl,t.transform.customLayerMatrix()),a.setDirty(),t.setBaseState(),a.bindFramebuffer.set(null)}}};class Ln{constructor(t,i){this.context=new e.Context(t),this.transform=i,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.setup(),this.numSublayers=e.SourceCache.maxUnderzooming+e.SourceCache.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Oe,this.gpuTimers={},this.frameCounter=0}updateTerrain(e,t){const i=!!e&&!!e.terrain;if(!(i||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new Nt(this,e));const n=this._terrain;this.transform.elevation=i?n:null,n.update(e,this.transform,t)}get terrain(){return this._terrain&&this._terrain.enabled?this._terrain:null}resize(t,i){if(this.width=t*e.browser.devicePixelRatio,this.height=i*e.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const e of this.style.order)this.style._layers[e].resize()}setup(){const t=this.context,i=new e.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(e.EXTENT,0),i.emplaceBack(0,e.EXTENT),i.emplaceBack(e.EXTENT,e.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(i,e.posAttributes.members),this.tileExtentSegments=e.SegmentVector.simpleSegment(0,0,4,2);const n=new e.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(e.EXTENT,0),n.emplaceBack(0,e.EXTENT),n.emplaceBack(e.EXTENT,e.EXTENT),this.debugBuffer=t.createVertexBuffer(n,e.posAttributes.members),this.debugSegments=e.SegmentVector.simpleSegment(0,0,4,5);const a=new e.StructArrayLayout4i8;a.emplaceBack(0,0,0,0),a.emplaceBack(e.EXTENT,0,e.EXTENT,0),a.emplaceBack(0,e.EXTENT,0,e.EXTENT),a.emplaceBack(e.EXTENT,e.EXTENT,e.EXTENT,e.EXTENT),this.rasterBoundsBuffer=t.createVertexBuffer(a,E.members),this.rasterBoundsSegments=e.SegmentVector.simpleSegment(0,0,4,2);const r=new e.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(1,0),r.emplaceBack(0,1),r.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(r,e.posAttributes.members),this.viewportSegments=e.SegmentVector.simpleSegment(0,0,4,2);const o=new e.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(o);const s=new e.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(s),this.emptyTexture=new e.Texture(t,{width:1,height:1,data:new Uint8Array([0,0,0,0])},t.gl.RGBA);const l=this.context.gl;this.stencilClearMode=new e.StencilMode({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO),this.loadTimeStamps.push(e.window.performance.now())}clearStencil(){const t=this.context,i=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;const n=e.create();e.ortho(n,0,this.width,this.height,0,0,1),e.scale(n,n,[i.drawingBufferWidth,i.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(t,i.TRIANGLES,e.DepthMode.disabled,this.stencilClearMode,e.ColorMode.disabled,e.CullFaceMode.disabled,Ut(n),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(t,i,n){if(!(i&&this.currentStencilSource!==i.id&&t.isTileClipped()&&n&&n.length))return;this.currentStencilSource=i.id;const a=this.context,r=a.gl;this.nextStencilID+n.length>256&&this.clearStencil(),a.setColorMode(e.ColorMode.disabled),a.setDepthMode(e.DepthMode.disabled);const o=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const t of n){const i=this._tileClippingMaskIDs[t.key]=this.nextStencilID++;o.draw(a,r.TRIANGLES,e.DepthMode.disabled,new e.StencilMode({func:r.ALWAYS,mask:0},i,255,r.KEEP,r.KEEP,r.REPLACE),e.ColorMode.disabled,e.CullFaceMode.disabled,Ut(t.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const t=this.nextStencilID++,i=this.context.gl;return new e.StencilMode({func:i.NOTEQUAL,mask:255},t,255,i.KEEP,i.KEEP,i.REPLACE)}stencilModeForClipping(t){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(t);const i=this.context.gl;return new e.StencilMode({func:i.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,i.KEEP,i.KEEP,i.REPLACE)}stencilConfigForOverlap(t){const i=this.context.gl,n=t.sort((e,t)=>t.overscaledZ-e.overscaledZ),a=n[n.length-1].overscaledZ,r=n[0].overscaledZ-a+1;if(r>1){this.currentStencilSource=void 0,this.nextStencilID+r>256&&this.clearStencil();const t={};for(let n=0;n<r;n++)t[n+a]=new e.StencilMode({func:i.GEQUAL,mask:255},n+this.nextStencilID,255,i.KEEP,i.KEEP,i.REPLACE);return this.nextStencilID+=r,[t,n]}return[{[a]:e.StencilMode.disabled},n]}colorModeForRenderPass(){const t=this.context.gl;if(this._showOverdrawInspector){const i=1/8;return new e.ColorMode([t.CONSTANT_COLOR,t.ONE],new e.Color(i,i,i,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?e.ColorMode.unblended:e.ColorMode.alphaBlended}depthModeForSublayer(t,i,n){if(!this.opaquePassEnabledForLayer())return e.DepthMode.disabled;const a=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new e.DepthMode(n||this.context.gl.LEQUAL,i,[a,a])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(t,i){this.style=t,this.options=i,this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.browser.now()),this.imageManager.beginFrame();const n=this.style.order,a=this.style._sourceCaches;for(const e in a){const t=a[e];t.used&&t.prepare(this.context)}const r={},o={},s={};for(const e in a){const t=a[e];r[e]=t.getVisibleCoordinates(),o[e]=r[e].slice().reverse(),s[e]=t.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let e=0;e<n.length;e++)if(this.style._layers[n[e]].is3D()){this.opaquePassCutoff=e;break}this.terrain&&(this.terrain.updateTileBinding(s),this.opaquePassCutoff=0),this.renderPass="offscreen";for(const e of n){const i=this.style._layers[e],n=t._getLayerSourceCache(i);if(!i.hasOffscreenPass()||i.isHidden(this.transform.zoom))continue;const a=n?o[n.id]:void 0;("custom"===i.type||i.isSky()||a&&a.length)&&this.renderLayer(this,n,i,a)}if(this.depthRangeFor3D=[0,1-(t.order.length+2)*this.numSublayers*this.depthEpsilon],this.terrain&&(this.style.hasSymbolLayers()||this.style.hasCircleLayers())&&this.terrain.drawDepth(),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]),this.context.clear({color:i.showOverdrawInspector?e.Color.black:e.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=i.showOverdrawInspector,this.renderPass="opaque",!this.terrain)for(this.currentLayer=n.length-1;this.currentLayer>=0;this.currentLayer--){const e=this.style._layers[n[this.currentLayer]],i=t._getLayerSourceCache(e);if(e.isSky())continue;const a=i?o[i.id]:void 0;this._renderTileClippingMasks(e,i,a),this.renderLayer(this,i,e,a)}if(this.renderPass="sky",this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer<n.length;this.currentLayer++){const e=this.style._layers[n[this.currentLayer]],i=t._getLayerSourceCache(e);e.isSky()&&this.renderLayer(this,i,e,i?o[i.id]:void 0)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<n.length;){const e=this.style._layers[n[this.currentLayer]],i=t._getLayerSourceCache(e);if(e.isSky()){++this.currentLayer;continue}if(this.terrain&&this.style.isLayerDraped(e)){if(e.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=this.terrain.renderBatch(this.currentLayer);continue}const a=i?("symbol"===e.type?s:o)[i.id]:void 0;this._renderTileClippingMasks(e,i,i?r[i.id]:void 0),this.renderLayer(this,i,e,a),++this.currentLayer}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry){let i=null;e.values(this.style._layers).forEach(e=>{const n=t._getLayerSourceCache(e);n&&!e.isHidden(this.transform.zoom)&&(!i||i.getSource().maxzoom<n.getSource().maxzoom)&&(i=n)}),i&&this.options.showTileBoundaries&&Nn.debug(this,i,i.getVisibleCoordinates())}this.options.showPadding&&function(e){const t=e.transform.padding;kn(e,e.transform.height-(t.top||0),3,En),kn(e,t.bottom||0,3,Cn),In(e,t.left||0,3,Sn),In(e,e.transform.width-(t.right||0),3,Tn);const i=e.transform.centerPoint;!function(e,t,i,n){Mn(e,t-1,i-10,2,20,n),Mn(e,t-10,i-1,20,2,n)}(e,i.x,e.transform.height-i.y,Bn)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%e.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(e.window.performance.now()),this.saveCanvasCopy())}renderLayer(e,t,i,n){i.isHidden(this.transform.zoom)||("background"===i.type||"sky"===i.type||"custom"===i.type||n&&n.length)&&(this.id=i.id,this.gpuTimingStart(i),Nn[i.type](e,t,i,n,this.style.placement.variableOffsets,this.options.isInitialLoad),this.gpuTimingEnd())}gpuTimingStart(e){if(!this.options.gpuTiming)return;const t=this.context.extTimerQuery;let i=this.gpuTimers[e.id];i||(i=this.gpuTimers[e.id]={calls:0,cpuTime:0,query:t.createQueryEXT()}),i.calls++,t.beginQueryEXT(t.TIME_ELAPSED_EXT,i.query)}gpuTimingEnd(){if(!this.options.gpuTiming)return;const e=this.context.extTimerQuery;e.endQueryEXT(e.TIME_ELAPSED_EXT)}collectGpuTimers(){const e=this.gpuTimers;return this.gpuTimers={},e}queryGpuTimers(e){const t={};for(const i in e){const n=e[i],a=this.context.extTimerQuery,r=a.getQueryObjectEXT(n.query,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(n.query),t[i]=r}return t}translatePosMatrix(t,i,n,a,r){if(!n[0]&&!n[1])return t;const o=r?"map"===a?this.transform.angle:0:"viewport"===a?-this.transform.angle:0;if(o){const e=Math.sin(o),t=Math.cos(o);n=[n[0]*t-n[1]*e,n[0]*e+n[1]*t]}const s=[r?n[0]:y(i,n[0],this.transform.zoom),r?n[1]:y(i,n[1],this.transform.zoom),0],l=new Float32Array(16);return e.translate(l,t,s),l}saveTileTexture(e){const t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]}getTileTexture(e){const t=this._tileTextures[e];return t&&t.length>0?t.pop():null}isPatternMissing(e){if(!e)return!1;if(!e.from||!e.to)return!0;const t=this.imageManager.getPattern(e.from.toString()),i=this.imageManager.getPattern(e.to.toString());return!t||!i}currentGlobalDefines(){const e=this.terrain&&this.terrain.renderingToTexture,t=[];return this.terrain&&!this.terrain.renderingToTexture&&t.push("TERRAIN"),e&&t.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&t.push("OVERDRAW_INSPECTOR"),t}useProgram(e,t,i){this.cache=this.cache||{};const n=i||[],a=this.currentGlobalDefines().concat(n),r=zt.cacheKey(e,a,t);return this.cache[r]||(this.cache[r]=new zt(this.context,e,wt[e],t,dn[e],a)),this.cache[r]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=e.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new e.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}prepareDrawTile(e){this.terrain&&this.terrain.prepareDrawTile(e)}setTileLoadedFlag(e){this.tileLoaded=e}saveCanvasCopy(){this.frameCopies.push(this.canvasCopy()),this.tileLoaded=!1}canvasCopy(){const e=this.context.gl,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.copyTexImage2D(e.TEXTURE_2D,0,e.RGBA,0,0,e.drawingBufferWidth,e.drawingBufferHeight,0),t}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}}class zn{constructor(e=0,t=0,i=0,n=0){if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(i)||i<0||isNaN(n)||n<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=i,this.right=n}interpolate(t,i,n){return null!=i.top&&null!=t.top&&(this.top=e.number(t.top,i.top,n)),null!=i.bottom&&null!=t.bottom&&(this.bottom=e.number(t.bottom,i.bottom,n)),null!=i.left&&null!=t.left&&(this.left=e.number(t.left,i.left,n)),null!=i.right&&null!=t.right&&(this.right=e.number(t.right,i.right,n)),this}getCenter(t,i){const n=e.clamp((this.left+t-this.right)/2,0,t),a=e.clamp((this.top+i-this.bottom)/2,0,i);return new e.Point(n,a)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new zn(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Hn(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]}function Qn(e,t,i){e[4*t+0]=i[0],e[4*t+1]=i[1],e[4*t+2]=i[2],e[4*t+3]=i[3]}function Vn(t,i){const n=Hn(t,3);e.fromQuat(t,i),Qn(t,3,n)}function jn(e,t){Qn(e,3,[t[0],t[1],t[2],1])}function Gn(t,i){const n=e.identity$1([]);return e.rotateZ$1(n,n,-i),e.rotateX$1(n,n,-t),n}function Kn(t,i){const n=[t[0],t[1],0],a=[i[0],i[1],0];if(e.length(n)>=1e-15){const t=e.normalize([],n);e.scale$2(a,t,e.dot(a,t)),i[0]=a[0],i[1]=a[1]}const r=e.cross([],i,t);
2if(e.len(r)<1e-15)return null;const o=Math.atan2(-r[1],r[0]);return Gn(Math.atan2(Math.sqrt(t[0]*t[0]+t[1]*t[1]),-t[2]),o)}class qn{constructor(e,t){this.position=e,this.orientation=t}get position(){return this._position}set position(t){this._position=this._renderWorldCopies?function(t){if(!t)return;const i=Array.isArray(t)?new e.MercatorCoordinate(t[0],t[1],t[2]):t;return i.x=e.wrap(i.x,0,1),i}(t):t}lookAtPoint(t,i){if(this.orientation=null,!this.position)return;const n=this._elevation?this._elevation.getAtPoint(e.MercatorCoordinate.fromLngLat(t)):0,a=this.position,r=e.MercatorCoordinate.fromLngLat(t,n),o=[r.x-a.x,r.y-a.y,r.z-a.z];i||(i=[0,0,1]),i[2]=Math.abs(i[2]),this.orientation=Kn(o,i)}setPitchBearing(t,i){this.orientation=Gn(e.degToRad(t),e.degToRad(-i))}}class $n{constructor(t,i){this._transform=e.identity([]),this._orientation=e.identity$1([]),i&&(this._orientation=i,Vn(this._transform,this._orientation)),t&&jn(this._transform,t)}get mercatorPosition(){const t=this.position;return new e.MercatorCoordinate(t[0],t[1],t[2])}get position(){const e=Hn(this._transform,3);return[e[0],e[1],e[2]]}set position(e){jn(this._transform,e)}get orientation(){return this._orientation}set orientation(e){this._orientation=e,Vn(this._transform,this._orientation)}getPitchBearing(){const e=this.forward(),t=this.right();return{bearing:Math.atan2(-t[1],t[0]),pitch:Math.atan2(Math.sqrt(e[0]*e[0]+e[1]*e[1]),-e[2])}}setPitchBearing(e,t){this._orientation=Gn(e,t),Vn(this._transform,this._orientation)}forward(){const e=Hn(this._transform,2);return[-e[0],-e[1],-e[2]]}up(){const e=Hn(this._transform,1);return[-e[0],-e[1],-e[2]]}right(){const e=Hn(this._transform,0);return[e[0],e[1],e[2]]}getCameraToWorld(t,i){const n=new Float64Array(16);return e.invert(n,this.getWorldToCamera(t,i)),n}getWorldToCamera(t,i){const n=new Float64Array(16),a=new Float64Array(4),r=this.position;return e.conjugate(a,this._orientation),e.scale$2(r,r,-t),e.fromQuat(n,a),e.translate(n,n,r),n[1]*=-1,n[5]*=-1,n[9]*=-1,n[13]*=-1,n[8]*=i,n[9]*=i,n[10]*=i,n[11]*=i,n}getCameraToClipPerspective(t,i,n,a){const r=new Float64Array(16);return e.perspective(r,t,i,n,a),r}clone(){return new $n([...this.position],[...this.orientation])}}class Yn{constructor(t,i,n,a,r){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===r||r,this._minZoom=t||0,this._maxZoom=i||22,this._minPitch=null==n?0:n,this._maxPitch=null==a?60:a,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new zn,this._posMatrixCache={},this._alignedPosMatrixCache={},this._camera=new $n,this._centerAltitude=0,this.cameraElevationReference="ground",this._horizonShift=.1}clone(){const e=new Yn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return e._elevation=this._elevation,e._centerAltitude=this._centerAltitude,e.tileSize=this.tileSize,e.latRange=this.latRange,e.width=this.width,e.height=this.height,e.cameraElevationReference=this.cameraElevationReference,e._center=this._center,e._setZoom(this.zoom),e._cameraZoom=this._cameraZoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._camera=this._camera.clone(),e._calcMatrices(),e.freezeTileCoverage=this.freezeTileCoverage,e}get elevation(){return this._elevation}set elevation(e){this._elevation!==e&&(this._elevation=e,e?this._updateCenterElevation()&&this._updateCameraOnTerrain():(this._cameraZoom=null,this._centerAltitude=0),this._calcMatrices())}updateElevation(e){this._terrainEnabled()&&null==this._cameraZoom&&this._updateCenterElevation()&&this._updateCameraOnTerrain(),e&&this._constrainCameraAltitude(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new e.Point(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(t){const i=-e.wrap(t,-180,180)*Math.PI/180;this.angle!==i&&(this._unmodified=!1,this.angle=i,this._calcMatrices(),this.rotationMatrix=e.create$2(),e.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(t){const i=e.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==i&&(this._unmodified=!1,this._pitch=i,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(e){const t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._setZoom(t),this._terrainEnabled()&&this._updateCameraOnTerrain(),this._constrain(),this._calcMatrices())}_setZoom(e){this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom}_updateCenterElevation(){if(!this._elevation)return!1;const t=this._elevation.getAtPoint(e.MercatorCoordinate.fromLngLat(this.center),-1);return-1===t?(this._cameraZoom=null,!1):(this._centerAltitude=t,!0)}_updateCameraOnTerrain(){const t=this.cameraToCenterDistance/this.worldSize,i=e.mercatorZfromAltitude(this._centerAltitude,this.center.lat);this._cameraZoom=this._zoomFromMercatorZ(i+t)}get center(){return this._center}set center(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._terrainEnabled()&&("ground"===this.cameraElevationReference?this._updateCenterElevation()?this._updateCameraOnTerrain():this._cameraZoom=null:this._updateZoomFromElevation()),this._constrain(),this._calcMatrices())}_updateZoomFromElevation(){if(null==this._cameraZoom||!this._elevation)return;const t=this._cameraZoom,i=this._elevation.getAtPoint(e.MercatorCoordinate.fromLngLat(this.center)),n=e.mercatorZfromAltitude(i,this.center.lat),a=this._mercatorZfromZoom(t),r=this._mercatorZfromZoom(this._maxZoom),o=Math.max(a-n,r);this._setZoom(this._zoomFromMercatorZ(o))}get padding(){return this._edgeInsets.toJSON()}set padding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}computeZoomRelativeTo(t){const i=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,t.toAltitude()));let n;n=t.z<this._camera.position[2]?[i.x,i.y,i.z]:[t.x,t.y,t.z];const a=e.length(e.sub([],this._camera.position,n));return e.clamp(this._zoomFromMercatorZ(a),this._minZoom,this._maxZoom)}setFreeCameraOptions(t){if(!this.height)return;if(!t.position&&!t.orientation)return;this._updateCameraState();let i=!1;if(t.orientation&&!e.exactEquals(t.orientation,this._camera.orientation)&&(i=this._setCameraOrientation(t.orientation)),t.position){const n=[t.position.x,t.position.y,t.position.z];e.exactEquals$1(n,this._camera.position)||(this._setCameraPosition(n),i=!0)}i&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();const t=this._camera.position,i=new qn;return i.position=new e.MercatorCoordinate(t[0],t[1],t[2]),i.orientation=this._camera.orientation,i._elevation=this.elevation,i._renderWorldCopies=this._renderWorldCopies,i}_setCameraOrientation(t){if(!e.length$1(t))return!1;e.normalize$1(t,t);const i=e.transformQuat([],[0,0,-1],t),n=e.transformQuat([],[0,-1,0],t);
2if(n[2]<0)return!1;const a=Kn(i,n);return!!a&&(this._camera.orientation=a,!0)}_setCameraPosition(t){const i=this.zoomScale(this.minZoom)*this.tileSize,n=this.zoomScale(this.maxZoom)*this.tileSize,a=this.cameraToCenterDistance;t[2]=e.clamp(t[2],a/n,a/i),this._camera.position=t}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}get fovAboveCenter(){return this._fov*(.5+this.centerOffset.y/this.height)}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,i){this._unmodified=!1,this._edgeInsets.interpolate(e,t,i),this._constrain(),this._calcMatrices()}coveringZoomLevel(e){const t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)}getVisibleUnwrappedCoordinates(t){const i=[new e.UnwrappedTileID(0,t)];if(this._renderWorldCopies){const n=this.pointCoordinate(new e.Point(0,0)),a=this.pointCoordinate(new e.Point(this.width,0)),r=this.pointCoordinate(new e.Point(this.width,this.height)),o=this.pointCoordinate(new e.Point(0,this.height)),s=Math.floor(Math.min(n.x,a.x,r.x,o.x)),l=Math.floor(Math.max(n.x,a.x,r.x,o.x)),c=1;for(let n=s-c;n<=l+c;n++)0!==n&&i.push(new e.UnwrappedTileID(n,t))}return i}coveringTiles(t){let i=this.coveringZoomLevel(t);const n=i,a=!!t.useElevationData;if(void 0!==t.minzoom&&i<t.minzoom)return[];void 0!==t.maxzoom&&i>t.maxzoom&&(i=t.maxzoom);const r=e.MercatorCoordinate.fromLngLat(this.center),o=1<<i,s=[o*r.x,o*r.y,0],l=e.Frustum.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,i),c=this.pointCoordinate(this.getCameraPoint()),h=o*e.mercatorZfromAltitude(1,this.center.lat),u=this._camera.position[2]/e.mercatorZfromAltitude(1,this.center.lat),d=[o*c.x,o*c.y,u],f=this.cameraToCenterDistance/t.tileSize*(t.roundZoom?1:.502),m=this.pitch<=60&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation?i:0,p=this.elevation?1e4*this.elevation.exaggeration():0,A=t=>({aabb:new e.Aabb([t*o,0,-p],[(t+1)*o,o,p]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}),g=[],y=[],v=i,_=t.reparseOverscaled?n:i,b=(e,t)=>{if(!this._elevation)return;const i=this._elevation.getMinMaxForTile(t);i&&(e.min[2]=i.min,e.max[2]=i.max,e.center[2]=(e.min[2]+e.max[2])/2)},w=e=>e*e,x=w((u-this._centerAltitude)*h),E=(e,t)=>{if(t*w(.707)<e)return 1;const i=Math.sqrt(t/e);return i/(1/.707+(Math.pow(1.1,i-1/.707+1)-1)/(1.1-1)-1)};if(this._renderWorldCopies)for(let e=1;e<=3;e++)g.push(A(-e)),g.push(A(e));for(g.push(A(0));g.length>0;){const n=g.pop(),r=n.x,o=n.y;let c=n.fullyVisible;if(!c){const e=n.aabb.intersects(l);if(0===e)continue;c=2===e}let u=!0;if(m<=n.zoom&&n.zoom<v){const e=n.aabb.distanceX(d),t=n.aabb.distanceY(d);let i=x;a&&(i=w(n.aabb.distanceZ(d)*h));const r=e*e+t*t+i;u=r<w((1<<v-n.zoom)*f*E(Math.max(i,x),r))}if(n.zoom!==v&&u)for(let t=0;t<4;t++){const i=(r<<1)+t%2,s=(o<<1)+(t>>1),l=n.aabb.quadrant(t);let h=null;a&&n.zoom>v-6&&(h=new e.OverscaledTileID(n.zoom+1===v?_:n.zoom+1,n.wrap,n.zoom+1,i,s),b(l,h)),g.push({aabb:l,zoom:n.zoom+1,x:i,y:s,wrap:n.wrap,fullyVisible:c,tileID:h})}else{const a=n.zoom===v?_:n.zoom;if(t.minzoom&&t.minzoom>a)continue;const l=s[0]-(.5+r+(n.wrap<<n.zoom))*(1<<i-n.zoom),c=s[1]-.5-o,h=n.tileID?n.tileID:new e.OverscaledTileID(a,n.wrap,n.zoom,r,o);y.push({tileID:h,distanceSq:l*l+c*c})}}return y.sort((e,t)=>e.distanceSq-t.distanceSq).map(e=>e.tileID)}resize(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(t){const i=e.clamp(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new e.Point(e.mercatorXfromLng(t.lng)*this.worldSize,e.mercatorYfromLat(i)*this.worldSize)}unproject(t){return new e.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}setLocationAtPoint(t,i){const n=this.pointCoordinate(i),a=this.pointCoordinate(this.centerPoint),r=this.locationCoordinate(t),o=new e.MercatorCoordinate(r.x-(n.x-a.x),r.y-(n.y-a.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&
2(this.center=this.center.wrap())}setLocation(e){this.center=this.coordinateLocation(e),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(e){return this._coordinatePoint(this.locationCoordinate(e),!1)}locationPoint3D(e){return this._coordinatePoint(this.locationCoordinate(e),!0)}pointLocation(e){return this.coordinateLocation(this.pointCoordinate(e))}pointLocation3D(e){return this.coordinateLocation(this.pointCoordinate3D(e))}locationCoordinate(t){return e.MercatorCoordinate.fromLngLat(t)}coordinateLocation(e){return e.toLngLat()}pointRayIntersection(t,i){const n=null!=i?i:this._centerAltitude,a=[t.x,t.y,0,1],r=[t.x,t.y,1,1];e.transformMat4(a,a,this.pixelMatrixInverse),e.transformMat4(r,r,this.pixelMatrixInverse);const o=r[3];e.scale$1(a,a,1/a[3]),e.scale$1(r,r,1/o);const s=a[2],l=r[2];return{p0:a,p1:r,t:s===l?0:(n-s)/(l-s)}}screenPointToMercatorRay(t){const i=[t.x,t.y,0,1],n=[t.x,t.y,1,1];return e.transformMat4(i,i,this.pixelMatrixInverse),e.transformMat4(n,n,this.pixelMatrixInverse),e.scale$1(i,i,1/i[3]),e.scale$1(n,n,1/n[3]),i[2]=e.mercatorZfromAltitude(i[2],this._center.lat)*this.worldSize,n[2]=e.mercatorZfromAltitude(n[2],this._center.lat)*this.worldSize,e.scale$1(i,i,1/this.worldSize),e.scale$1(n,n,1/this.worldSize),new e.Ray([i[0],i[1],i[2]],e.normalize([],e.sub([],n,i)))}rayIntersectionCoordinate(t){const{p0:i,p1:n,t:a}=t,r=e.mercatorZfromAltitude(i[2],this._center.lat),o=e.mercatorZfromAltitude(n[2],this._center.lat);return new e.MercatorCoordinate(e.number(i[0],n[0],a)/this.worldSize,e.number(i[1],n[1],a)/this.worldSize,e.number(r,o,a))}pointCoordinate(t){const i=this.horizonLineFromTop(!1),n=new e.Point(t.x,Math.max(i,t.y));return this.rayIntersectionCoordinate(this.pointRayIntersection(n))}pointCoordinate3D(t){if(!this.elevation)return this.pointCoordinate(t);const i=this.elevation;let n=this.elevation.pointCoordinate(t);if(n)return new e.MercatorCoordinate(n[0],n[1],n[2]);let a=0,r=this.horizonLineFromTop();if(t.y>r)return this.pointCoordinate(t);const o=.02*r,s=t.clone();for(let t=0;t<10&&r-a>o;t++){s.y=e.number(a,r,.66);const t=i.pointCoordinate(s);t?(r=s.y,n=t):a=s.y}return n?new e.MercatorCoordinate(n[0],n[1],n[2]):this.pointCoordinate(t)}isPointAboveHorizon(e){if(this.elevation)return!this.elevation.pointCoordinate(e);{const t=this.horizonLineFromTop();return e.y<t}}_coordinatePoint(t,i){const n=i&&this.elevation?this.elevation.getAtPoint(t,this._centerAltitude):this._centerAltitude,a=[t.x*this.worldSize,t.y*this.worldSize,n+t.toAltitude(),1];return e.transformMat4(a,a,this.pixelMatrix),a[3]>0?new e.Point(a[0]/a[3],a[1]/a[3]):new e.Point(Number.MAX_VALUE,Number.MAX_VALUE)}getBounds(){return this._terrainEnabled()?this._getBounds3D():(new e.LngLatBounds).extend(this.pointLocation(new e.Point(0,0))).extend(this.pointLocation(new e.Point(this.width,0))).extend(this.pointLocation(new e.Point(this.width,this.height))).extend(this.pointLocation(new e.Point(0,this.height)))}_getBounds3D(){const t=this.elevation,i=t.visibleDemTiles.reduce((e,t)=>{if(t.dem){const i=t.dem.tree;e.min=Math.min(e.min,i.minimums[0]),e.max=Math.max(e.max,i.maximums[0])}return e},{min:Number.MAX_VALUE,max:0});i.min*=t.exaggeration(),i.max*=t.exaggeration();const n=this.horizonLineFromTop();return[new e.Point(0,n),new e.Point(this.width,n),new e.Point(this.width,this.height),new e.Point(0,this.height)].reduce((e,t)=>e.extend(this.coordinateLocation(this.rayIntersectionCoordinate(this.pointRayIntersection(t,i.min)))).extend(this.coordinateLocation(this.rayIntersectionCoordinate(this.pointRayIntersection(t,i.max)))),new e.LngLatBounds)}horizonLineFromTop(e=!0){const t=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,i=this.height/2-.97*t;return e?Math.max(0,i):i}getMaxBounds(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new e.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}setMaxBounds(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])}calculatePosMatrix(t,i=!1){const n=t.key,a=i?this._alignedPosMatrixCache:this._posMatrixCache;if(a[n])return a[n];const r=t.canonical,o=this.worldSize/this.zoomScale(r.z),s=r.x+Math.pow(2,r.z)*t.wrap,l=e.identity(new Float64Array(16));return e.translate(l,l,[s*o,r.y*o,0]),e.scale(l,l,[o/e.EXTENT,o/e.EXTENT,1]),e.multiply(l,i?this.alignedProjMatrix:this.projMatrix,l),a[n]=new Float32Array(l),a[n]}customLayerMatrix(){return this.mercatorMatrix.slice()}recenterOnTerrain(){if(!this._elevation)return;const t=this._elevation;this._updateCameraState();const i=this._camera.position,n=this._camera.forward();if(i.z<=0||n[2]>=0)return;const a=e.mercatorZfromAltitude(1,this._center.lat);
2i[2]/=a,n[2]/=a,e.normalize(n,n);const r=t.raycast(i,n,t.exaggeration());if(r){const t=e.scaleAndAdd([],i,n,r),a=new e.MercatorCoordinate(t[0],t[1],e.mercatorZfromAltitude(t[2],e.latFromMercatorY(t[1]))),o=this._camera.position,s=a.z+e.length([a.x-o[0],a.y-o[1],a.z-o[2]]);this._cameraZoom=this._zoomFromMercatorZ(s),this._centerAltitude=a.toAltitude(),this._center=a.toLngLat(),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCameraAltitude(){if(!this._elevation)return;const t=this._elevation;this._updateCameraState();const i=t.getAtPoint(this._camera.mercatorPosition),n=this._minimumHeightOverTerrain()*Math.cos(e.degToRad(this._maxPitch)),a=e.mercatorZfromAltitude(i,this._center.lat),r=this._camera.position[2]-a;if(r<n){const t=e.MercatorCoordinate.fromLngLat(this._center,this._centerAltitude),i=this._camera.mercatorPosition,a=[t.x-i.x,t.y-i.y,t.z-i.z],o=e.length(a);a[2]-=n-r;const s=e.length(a);if(0===s)return;e.scale$2(a,a,o/s),this._camera.position=[t.x-a[0],t.y-a[1],t.z-a[2]],this._camera.orientation=Kn(a,this._camera.up()),this._updateStateFromCamera()}}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let t,i,n,a,r=-90,o=90,s=-180,l=180;const c=this.size,h=this._unmodified;if(this.latRange){const i=this.latRange;r=e.mercatorYfromLat(i[1])*this.worldSize,o=e.mercatorYfromLat(i[0])*this.worldSize,t=o-r<c.y?c.y/(o-r):0}if(this.lngRange){const t=this.lngRange;s=e.mercatorXfromLng(t[0])*this.worldSize,l=e.mercatorXfromLng(t[1])*this.worldSize,i=l-s<c.x?c.x/(l-s):0}const u=this.point,d=Math.max(i||0,t||0);if(d)return this.center=this.unproject(new e.Point(i?(l+s)/2:u.x,t?(o+r)/2:u.y)),this.zoom+=this.scaleZoom(d),this._unmodified=h,void(this._constraining=!1);if(this.latRange){const e=u.y,t=c.y/2;e-t<r&&(a=r+t),e+t>o&&(a=o-t)}if(this.lngRange){const e=u.x,t=c.x/2;e-t<s&&(n=s+t),e+t>l&&(n=l-t)}void 0===n&&void 0===a||(this.center=this.unproject(new e.Point(void 0!==n?n:u.x,void 0!==a?a:u.y))),this._constrainCameraAltitude(),this._unmodified=h,this._constraining=!1}_minZoomForBounds(){const t=(e,t)=>Math.log2(e/(this.tileSize*Math.abs(t[1]-t[0])));let i=0;if(this.latRange){const n=this.latRange;i=t(this.height,[e.mercatorYfromLat(n[0]),e.mercatorYfromLat(n[1])])}let n=0;if(this.lngRange){const i=this.lngRange;n=t(this.width,[e.mercatorXfromLng(i[0]),e.mercatorXfromLng(i[1])])}return Math.max(i,n)}_maxCameraBoundsDistance(){return this._mercatorZfromZoom(this._minZoomForBounds())}_calcMatrices(){if(!this.height)return;const t=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;const i=e.mercatorZfromAltitude(1,this.center.lat)*this.worldSize;this._updateCameraState();const n=Math.PI/2+this._pitch,a=this.fovAboveCenter,r=this._camera.position[2]*this.worldSize/Math.cos(this._pitch),o=Math.sin(a)*r/Math.sin(e.clamp(Math.PI-n-a,.01,Math.PI-.01)),s=this.point,l=s.x,c=s.y,h=Math.cos(Math.PI/2-this._pitch)*o+r,u=Math.min(1.01*h,r*(1/this._horizonShift)),d=this.height/50,f=this._camera.getWorldToCamera(this.worldSize,i),m=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,d,u);m[8]=2*-t.x/this.width,m[9]=2*t.y/this.height;let p=e.mul([],m,f);this.mercatorMatrix=e.scale([],p,[this.worldSize,this.worldSize,this.worldSize/i]),this.projMatrix=p,this.invProjMatrix=e.invert(new Float64Array(16),this.projMatrix);const A=new Float32Array(16);e.identity(A),e.scale(A,A,[1,-1,1]),e.rotateX(A,A,this._pitch),e.rotateZ(A,A,this.angle);const g=e.perspective(new Float32Array(16),this._fov,this.width/this.height,d,u),y=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;g[8]=2*-t.x/this.width,g[9]=2*(t.y+y)/this.height,this.skyboxMatrix=e.multiply(A,g,A);const v=this.width%2/2,_=this.height%2/2,b=Math.cos(this.angle),w=Math.sin(this.angle),x=l-Math.round(l)+b*v+w*_,E=c-Math.round(c)+b*_+w*v,C=new Float64Array(p);if(e.translate(C,C,[x>.5?x-1:x,E>.5?E-1:E,0]),this.alignedProjMatrix=C,p=e.create(),e.scale(p,p,[this.width/2,-this.height/2,1]),e.translate(p,p,[1,-1,0]),this.labelPlaneMatrix=p,p=e.create(),e.scale(p,p,[1,-1,1]),e.translate(p,p,[-1,-1,0]),e.scale(p,p,[2/this.width,2/this.height,1]),this.glCoordMatrix=p,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatr
2ix,this.projMatrix),p=e.invert(new Float64Array(16),this.pixelMatrix),!p)throw new Error("failed to invert matrix");this.pixelMatrixInverse=p,this._posMatrixCache={},this._alignedPosMatrixCache={}}_updateCameraState(){if(!this.height)return;this._camera.setPitchBearing(this._pitch,this.angle);const t=this._camera.forward(),i=this.cameraToCenterDistance,n=this.point,a=this._mercatorZfromZoom(this._cameraZoom?this._cameraZoom:this._zoom)-e.mercatorZfromAltitude(this._centerAltitude,this.center.lat),r=this.cameraToCenterDistance/a;this._camera.position=[n.x/this.worldSize-t[0]*i/r,n.y/this.worldSize-t[1]*i/r,e.mercatorZfromAltitude(this._centerAltitude,this._center.lat)+-t[2]*i/r]}_translateCameraConstrained(t){const i=this._maxCameraBoundsDistance()*Math.cos(this._pitch),n=t[2];let a=1;n>0&&(a=Math.min((i-this._camera.position[2])/n,1)),this._camera.position=e.scaleAndAdd([],this._camera.position,t,a),this._updateStateFromCamera()}_updateStateFromCamera(){const t=this._camera.position,i=this._camera.forward(),{pitch:n,bearing:a}=this._camera.getPitchBearing(),r=e.mercatorZfromAltitude(this._centerAltitude,this.center.lat),o=this._mercatorZfromZoom(this._maxZoom)*Math.cos(e.degToRad(this._maxPitch)),s=Math.max((t[2]-r)/Math.cos(n),o),l=this._zoomFromMercatorZ(s);e.scaleAndAdd(t,t,i,s),this._pitch=e.clamp(n,e.degToRad(this.minPitch),e.degToRad(this.maxPitch)),this.angle=e.wrap(a,-Math.PI,Math.PI),this._setZoom(e.clamp(l,this._minZoom,this._maxZoom)),this._terrainEnabled()&&this._updateCameraOnTerrain(),this._center=new e.MercatorCoordinate(t[0],t[1],t[2]).toLngLat(),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(e){return Math.pow(2,e)*this.tileSize}_mercatorZfromZoom(e){return this.cameraToCenterDistance/this._worldSizeFromZoom(e)}_minimumHeightOverTerrain(){const e=Math.min((null!=this._cameraZoom?this._cameraZoom:this._zoom)+2,this._maxZoom);return this._mercatorZfromZoom(e)}_zoomFromMercatorZ(e){return this.scaleZoom(this.cameraToCenterDistance/(e*this.tileSize))}_terrainEnabled(){return!!this._elevation}isHorizonVisibleForPoints(t,i){const n=Math.min(t.x,i.x),a=Math.max(t.x,i.x),r=Math.min(t.y,i.y),o=Math.max(t.y,i.y),s=[new e.Point(n,r),new e.Point(a,o),new e.Point(n,o),new e.Point(a,r)],l=this._renderWorldCopies?-3:0,c=this._renderWorldCopies?4:1;for(const e of s){const t=this.pointRayIntersection(e);if(t.t<0)return!0;const i=this.rayIntersectionCoordinate(t);if(i.x<l||i.y<0||i.x>c||i.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+e.radToDeg(this.fovAboveCenter)>88||this.isHorizonVisibleForPoints(new e.Point(0,0),new e.Point(this.width,this.height))}zoomDeltaToMovement(t,i){const n=e.length(e.sub([],this._camera.position,t)),a=this._zoomFromMercatorZ(n)+i;return n-this._mercatorZfromZoom(a)}getCameraPoint(){const t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.Point(0,t))}}class Wn{constructor(t){this._hashName=t&&encodeURIComponent(t),e.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=function(e,t){let i=!1,n=null;const a=()=>{n=null,i&&(e(),n=setTimeout(a,300),i=!1)};return()=>(i=!0,n||a(),n)}(this._updateHashUnthrottled.bind(this))}addTo(t){return this._map=t,e.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return e.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this}getHashString(t){const i=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,a=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),r=Math.pow(10,a),o=Math.round(i.lng*r)/r,s=Math.round(i.lat*r)/r,l=this._map.getBearing(),c=this._map.getPitch();let h="";if(h+=t?`/${o}/${s}/${n}`:`${n}/${s}/${o}`,(l||c)&&(h+="/"+Math.round(10*l)/10),c&&(h+="/"+Math.round(c)),this._hashName){const t=this._hashName;let i=!1;const n=e.window.location.hash.slice(1).split("&").map(e=>{const n=e.split("=")[0];return n===t?(i=!0,`${n}=${h}`):e}).filter(e=>e);return i||n.push(`${t}=${h}`),"#"+n.join("&")}return"#"+h}_getCurrentHash(){const t=e.window.location.hash.replace("#","");if(this._hashName){let e;return t.split("&").map(e=>
vendor: 6,274 bytes, line 2
2e.split("=")).forEach(t=>{t[0]===this._hashName&&(e=t)}),(e&&e[1]||"").split("/")}return t.split("/")}_onHashChange(){const e=this._getCurrentHash();if(e.length>=3&&!e.some(e=>isNaN(e))){const t=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(e[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:t,pitch:+(e[4]||0)}),!0}return!1}_updateHashUnthrottled(){const t=e.window.location.href.replace(/(#.+)?$/,this.getHashString());e.window.history.replaceState(e.window.history.state,null,t)}}const Xn={linearity:.3,easing:e.bezier(0,0,.3,1)},Jn=e.extend({deceleration:2500,maxSpeed:1400},Xn),Zn=e.extend({deceleration:20,maxSpeed:1400},Xn),er=e.extend({deceleration:1e3,maxSpeed:360},Xn),nr=e.extend({deceleration:1e3,maxSpeed:90},Xn);class rr{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.browser.now(),settings:t})}_drainInertiaBuffer(){const t=this._inertiaBuffer,i=e.browser.now();for(;t.length>0&&i-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const i={zoom:0,bearing:0,pitch:0,pan:new e.Point(0,0),pinchAround:void 0,around:void 0};for(const{settings:e}of this._inertiaBuffer)i.zoom+=e.zoomDelta||0,i.bearing+=e.bearingDelta||0,i.pitch+=e.pitchDelta||0,e.panDelta&&i.pan._add(e.panDelta),e.around&&(i.around=e.around),e.pinchAround&&(i.pinchAround=e.pinchAround);const n=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,a={};if(i.pan.mag()){const r=sr(i.pan.mag(),n,e.extend({},Jn,t||{}));a.offset=i.pan.mult(r.amount/i.pan.mag()),a.center=this._map.transform.center,ir(a,r)}if(i.zoom){const e=sr(i.zoom,n,Zn);a.zoom=this._map.transform.zoom+e.amount,ir(a,e)}if(i.bearing){const t=sr(i.bearing,n,er);a.bearing=this._map.transform.bearing+e.clamp(t.amount,-179,179),ir(a,t)}if(i.pitch){const e=sr(i.pitch,n,nr);a.pitch=this._map.transform.pitch+e.amount,ir(a,e)}if(a.zoom||a.bearing){const e=void 0===i.pinchAround?i.around:i.pinchAround;a.around=e?this._map.unproject(e):this._map.getCenter()}return this.clear(),e.extend(a,{noMoveStart:!0})}}function ir(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function sr(t,i,n){const{maxSpeed:a,linearity:r,deceleration:o}=n,s=e.clamp(t*r/(i/1e3),-a,a),l=Math.abs(s)/(o*r);return{easing:n.easing,duration:1e3*l,amount:s*(l/2)}}class ar extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i,n,r={}){const o=a.mousePos(i.getCanvasContainer(),n),s=i.unproject(o);super(t,e.extend({point:o,lngLat:s,originalEvent:n},r)),this._defaultPrevented=!1,this.target=i}}class or extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i,n){const r="touchend"===t?n.changedTouches:n.touches,o=a.touchPos(i.getCanvasContainer(),r),s=o.map(e=>i.unproject(e)),l=o.reduce((e,t,i,n)=>e.add(t.div(n.length)),new e.Point(0,0));super(t,{points:o,point:l,lngLats:s,lngLat:i.unproject(l),originalEvent:n}),this._defaultPrevented=!1}}class lr extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,i){super(e,{originalEvent:i}),this._defaultPrevented=!1}}class cr{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new lr(e.type,this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new ar(e.type,this._map,e))}mouseup(e){this._map.fire(new ar(e.type,this._map,e))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new ar(e.type,this._map,e))}dblclick(e){return this._firePreventable(new ar(e.type,this._map,e))}mouseover(e){this._map.fire(new ar(e.type,this._map,e))}mouseout(e){this._map.fire(new ar(e.type,this._map,e))}touchstart(e){return this._firePreventable(new or(e.type,this._map,e))}touchmove(e){this._map.fire(new or(e.type,this._map,e))}touchend(e){this._map.fire(new or(e.type,this._map,e))}touchcancel(e){this._map.fire(new or(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class ur{constructor(e){this._map=e}reset(){this._delayContextMenu=!1,delete this._contextMenuEvent}mousemove(e){this._map.fire(new ar(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ar("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new ar(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class dr{constructor(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(a.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;const i=t;if(this._lastPos.equals(i)||!this._box&&i.dist(this._startPos)<this._clickTolerance)return;const n=this._startPos;this._lastPos=i,this._box||(this._box=a.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));const r=Math.min(n.x,i.x),o=Math.max(n.x,i.x),s=Math.min(n.y,i.y),l=Math.max(n.y,i.y);a.setTransform(this._box,`translate(${r}px,${s}px)`),this._box.style.width=o-r+"px",this._box.style.height=l-s+"px"}mouseupWindow(t,i){if(!this._active)return;if(0!==t.button)return;const n=this._startPos,r=i;if(this.reset(),a.suppressClick(),n.x!==r.x||n.y!==r.y)return this._map.fire(new e.Event("boxzoomend",{originalEvent:t})),{cameraAnimation:e=>e.fitScreenCoordinates(n,r,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",t)}
vendor: 32,837 bytes, line 2
2keydown(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(a.remove(this._box),this._box=null),a.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(t,i){return this._map.fire(new e.Event(t,{originalEvent:i}))}}function pr(e,t){const i={};for(let n=0;n<e.length;n++)i[e[n].identifier]=t[n];return i}class fr{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(t,i,n){(this.centroid||n.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),n.length===this.numTouches&&(this.centroid=function(t){const i=new e.Point(0,0);for(const e of t)i._add(e);return i.div(t.length)}(i),this.touches=pr(n,i)))}touchmove(e,t,i){if(this.aborted||!this.centroid)return;const n=pr(i,t);for(const e in this.touches){const t=this.touches[e],i=n[e];(!i||i.dist(t)>30)&&(this.aborted=!0)}}touchend(e,t,i){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===i.length){const e=!this.aborted&&this.centroid;if(this.reset(),e)return e}}}class mr{constructor(e){this.singleTap=new fr(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,t,i){this.singleTap.touchstart(e,t,i)}touchmove(e,t,i){this.singleTap.touchmove(e,t,i)}touchend(e,t,i){const n=this.singleTap.touchend(e,t,i);if(n){const t=e.timeStamp-this.lastTime<500,i=!this.lastTap||this.lastTap.dist(n)<30;if(t&&i||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}}}class Ar{constructor(){this._zoomIn=new mr({numTouches:1,numTaps:2}),this._zoomOut=new mr({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,i){this._zoomIn.touchstart(e,t,i),this._zoomOut.touchstart(e,t,i)}touchmove(e,t,i){this._zoomIn.touchmove(e,t,i),this._zoomOut.touchmove(e,t,i)}touchend(e,t,i){const n=this._zoomIn.touchend(e,t,i),a=this._zoomOut.touchend(e,t,i);return n?(this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(n)},{originalEvent:e})}):a?(this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(a)},{originalEvent:e})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const gr={0:1,2:2};class yr{constructor(e){this.reset(),this._clickTolerance=e.clickTolerance||1}reset(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton}_correctButton(e,t){return!1}_move(e,t){return{}}mousedown(e,t){if(this._lastPoint)return;const i=a.mouseButton(e);this._correctButton(e,i)&&(this._lastPoint=t,this._eventButton=i)}mousemoveWindow(e,t){const i=this._lastPoint;if(i)if(e.preventDefault(),function(e,t){const i=gr[t];return void 0===e.buttons||(e.buttons&i)!==i}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(i)<this._clickTolerance))return this._moved=!0,this._lastPoint=t,this._move(i,t)}mouseupWindow(e){this._lastPoint&&a.mouseButton(e)===this._eventButton&&(this._moved&&a.suppressClick(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class vr extends yr{mousedown(e,t){super.mousedown(e,t),this._lastPoint&&(this._active=!0)}_correctButton(e,t){return 0===t&&!e.ctrlKey}_move(e,t){return{around:t,panDelta:t.sub(e)}}}class _r extends yr{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const i=.8*(t.x-e.x);if(i)return this._active=!0,{bearingDelta:i}}contextmenu(e){e.preventDefault()}}class wr extends yr{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const i=-.5*(t.y-e.y);if(i)return this._active=!0,{pitchDelta:i}}contextmenu(e){e.preventDefault()}}class xr{constructor(e){this._minTouches=1,this._clickTolerance=e.clickTolerance||1,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new e.Point(0,0)}touchstart(e,t,i){return this._calculateTransform(e,t,i)}touchmove(e,t,i){if(this._active&&!(i.length<this._minTouches))return e.preventDefault(),this._calculateTransform(e,t,i)}touchend(e,t,i){this._calculateTransform(e,t,i),this._active&&i.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(t,i,n){n.length>0&&(this._active=!0);const a=pr(n,i),r=new e.Point(0,0),o=new e.Point(0,0);let s=0;for(const e in a){const t=a[e],i=this._touches[e];i&&(r._add(t),o._add(t.sub(i)),s++,a[e]=t)}if(this._touches=a,s<this._minTouches||!o.mag())return;const l=o.div(s);return this._sum._add(l),this._sum.mag()<this._clickTolerance?void 0:{around:r.div(s),panDelta:l}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Er{constructor(){this.reset()}reset(){this._active=!1,delete this._firstTwoTouches}_start(e){}_move(e,t,i){return{}}touchstart(e,t,i){this._firstTwoTouches||i.length<2||(this._firstTwoTouches=[i[0].identifier,i[1].identifier],this._start([t[0],t[1]]))}touchmove(e,t,i){if(!this._firstTwoTouches)return;e.preventDefault();const[n,a]=this._firstTwoTouches,r=Cr(i,t,n),o=Cr(i,t,a);if(!r||!o)return;const s=this._aroundCenter?null:r.add(o).div(2);return this._move([r,o],s,e)}touchend(e,t,i){if(!this._firstTwoTouches)return;const[n,r]=this._firstTwoTouches,o=Cr(i,t,n),s=Cr(i,t,r);o&&s||(this._active&&a.suppressClick(),this.reset())}touchcancel(){this.reset()}enable(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function Cr(e,t,i){for(let n=0;n<e.length;n++)if(e[n].identifier===i)return t[n]}function Sr(e,t){return Math.log(e/t)/Math.LN2}class Tr extends Er{reset(){super.reset(),delete this._distance,delete this._startDistance}_start(e){this._startDistance=this._distance=e[0].dist(e[1])}_move(e,t){const i=this._distance;if(this._distance=e[0].dist(e[1]),this._active||!(Math.abs(Sr(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Sr(this._distance,i),pinchAround:t}}}function Br(e,t){return 180*e.angleWith(t)/Math.PI}class kr extends Er{reset(){super.reset(),delete this._minDiameter,delete this._startVector,delete this._vector}_start(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])}_move(e,t){const i=this._vector;if(this._vector=e[0].sub(e[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Br(this._vector,i),pinchAround:t}}_isBelowThreshold(e){this._minDiameter=Math.min(this._minDiameter,e.mag());const t=25/(Math.PI*this._minDiameter)*360,i=Br(e,this._startVector);return Math.abs(i)<t}}function Ir(e){return Math.abs(e.y)>Math.abs(e.x)}class Mr extends Er{reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}_start(e){this._lastPoints=e,Ir(e[0].sub(e[1]))&&(this._valid=!1)}_move(e,t,i){const n=e[0].sub(this._lastPoints[0]),a=e[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,a,i.timeStamp),this._valid)return this._lastPoints=e,this._active=!0,{pitchDelta:(n.y+a.y)/2*-.5}}gestureBeginsVertically(e,t,i){if(void 0!==this._valid)return this._valid;const n=e.mag()>=2,a=t.mag()>=2;if(!n&&!a)return;if(!n||!a)return void 0===this._firstMove&&(this._firstMove=i),i-this._firstMove<100&&void 0;const r=e.y>0==t.y>0;return Ir(e)&&Ir(t)&&r}}const Pr={panStep:100,bearingStep:15,pitchStep:10};class Dr{constructor(){const e=Pr;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,i=0,n=0,a=0,r=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?i=-1:(e.preventDefault(),a=-1);break;case 39:e.shiftKey?i=1:(e.preventDefault(),a=1);break;case 38:e.shiftKey?n=1:(e.preventDefault(),r=-1);break;case 40:e.shiftKey?n=-1:(e.preventDefault(),r=1);break;default:return}return this._rotationDisabled&&(i=0,n=0),{cameraAnimation:o=>{const s=o.getZoom();o.easeTo({duration:300,easeId:"keyboardHandler",easing:Ur,zoom:t?Math.round(s)+t*(e.shiftKey?2:1):s,bearing:o.getBearing()+i*this._bearingStep,pitch:o.getPitch()+n*this._pitchStep,offset:[-a*this._panStep,-r*this._panStep],center:o.getCenter()},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Ur(e){return e*(2-e)}class Or{constructor(t,i){this._map=t,this._el=t.getCanvasContainer(),this._handler=i,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,e.bindAll(["_onTimeout"],this)}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=e&&"center"===e.around)}disable(){this.isEnabled()&&(this._enabled=!1)}wheel(t){if(!this.isEnabled())return;let i=t.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY;const n=e.browser.now(),a=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==i&&i%4.000244140625==0?this._type="wheel":0!==i&&Math.abs(i)<4?this._type="trackpad":a>400?(this._type=null,this._lastValue=i,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(a*i)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,i+=this._lastValue)),t.shiftKey&&i&&(i/=4),this._type&&(this._lastWheelEvent=t,this._delta-=i,this._active||this._start(t)),t.preventDefault()}_onTimeout(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)}_start(e){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const t=a.mousePos(this._el,e);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:t,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const t=this._map.transform,i=()=>t._terrainEnabled()?t.computeZoomRelativeTo(this._aroundCoord):t.zoom;if(0!==this._delta){const e="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate;let n=2/(1+Math.exp(-Math.abs(this._delta*e)));this._delta<0&&0!==n&&(n=1/n);const a=i(),r=Math.pow(2,a),o="number"==typeof this._targetZoom?t.zoomScale(this._targetZoom):r;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(o*n))),"wheel"===this._type&&(this._startZoom=i(),this._easing=this._smoothOutEasing(200)),this._delta=0}const n="number"==typeof this._targetZoom?this._targetZoom:i(),a=this._startZoom,r=this._easing;let o,s=!1;if("wheel"===this._type&&a&&r){const t=Math.min((e.browser.now()-this._lastWheelEventTime)/200,1),i=r(t);o=e.number(a,n,i),t<1?this._frameId||(this._frameId=!0):s=!0}else o=n,s=!0;return this._active=!0,s&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!s,zoomDelta:o-i(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let i=e.ease;if(this._prevEase){const t=this._prevEase,n=(e.browser.now()-t.start)/t.duration,a=t.easing(n+.01)-t.easing(n),r=.27/Math.sqrt(a*a+1e-4)*.01,o=Math.sqrt(.0729-r*r);i=e.bezier(r,o,.25,1)}return this._prevEase={start:e.browser.now(),duration:t,easing:i},i}reset(){this._active=!1}}class Fr{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Rr{constructor(){this.reset()}reset(){this._active=!1}dblclick(e,t){return e.preventDefault(),{cameraAnimation:i=>{i.easeTo({duration:300,zoom:i.getZoom()+(e.shiftKey?-1:1),around:i.unproject(t)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Nr{constructor(){this._tap=new mr({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()}touchstart(e,t,i){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?i.length>0&&(this._swipePoint=t[0],this._swipeTouch=i[0].identifier):this._tap.touchstart(e,t,i))}touchmove(e,t,i){if(this._tapTime){if(this._swipePoint){if(i[0].identifier!==this._swipeTouch)return;const n=t[0],a=n.y-this._swipePoint.y;return this._swipePoint=n,e.preventDefault(),this._active=!0,{zoomDelta:a/128}}}else this._tap.touchmove(e,t,i)}touchend(e,t,i){this._tapTime?this._swipePoint&&0===i.length&&this.reset():this._tap.touchend(e,t,i)&&(this._tapTime=e.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Lr{constructor(e,t,i){this._el=e,this._mousePan=t,this._touchPan=i}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class zr{constructor(e,t,i){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=i}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Hr{constructor(e,t,i,n){this._el=e,this._touchZoom=t,this._touchRotate=i,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const Qr=e=>e.zoom||e.drag||e.pitch||e.rotate;class Vr extends e.Event{}class jr{constructor(){this.constants=[1,1,.01],this.radius=0}setup(t,i){const n=e.sub([],i,t);this.radius=e.length(n[2]<0?e.div([],n,this.constants):[n[0],n[1],0])}projectRay(t){e.div(t,t,this.constants),e.normalize(t,t),e.mul$1(t,t,this.constants);const i=e.scale$2([],t,this.radius);if(i[2]>0){const t=e.scale$2([],[0,0,1],e.dot(i,[0,0,1])),n=e.scale$2([],e.normalize([],[i[0],i[1],0]),this.radius),a=e.add([],i,e.scale$2([],e.sub([],e.add([],n,t),i),2));i[0]=a[0],i[1]=a[1]}return i}}function Gr(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}class Kr{constructor(t,i){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new rr(t),this._bearingSnap=i.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new jr,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(i),e.bindAll(["handleEvent","handleWindowEvent"],this);const n=this._el;this._listeners=[[n,"touchstart",{passive:!0}],[n,"touchmove",{passive:!1}],[n,"touchend",void 0],[n,"touchcancel",void 0],[n,"mousedown",void 0],[n,"mousemove",void 0],[n,"mouseup",void 0],[e.window.document,"mousemove",{capture:!0}],[e.window.document,"mouseup",void 0],[n,"mouseover",void 0],[n,"mouseout",void 0],[n,"dblclick",void 0],[n,"click",void 0],[n,"keydown",{capture:!1}],[n,"keyup",void 0],[n,"wheel",{passive:!1}],[n,"contextmenu",void 0],[e.window,"blur",void 0]];for(const[t,i,n]of this._listeners)a.addEventListener(t,i,t===e.window.document?this.handleWindowEvent:this.handleEvent,n)}destroy(){for(const[t,i,n]of this._listeners)a.removeEventListener(t,i,t===e.window.document?this.handleWindowEvent:this.handleEvent,n)}_addDefaultHandlers(e){const t=this._map,i=t.getCanvasContainer();this._add("mapEvent",new cr(t,e));const n=t.boxZoom=new dr(t,e);this._add("boxZoom",n);const a=new Ar,r=new Rr;t.doubleClickZoom=new Fr(r,a),this._add("tapZoom",a),this._add("clickZoom",r);const o=new Nr;this._add("tapDragZoom",o);const s=t.touchPitch=new Mr;this._add("touchPitch",s);const l=new _r(e),c=new wr(e);t.dragRotate=new zr(e,l,c),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);const h=new vr(e),u=new xr(e);t.dragPan=new Lr(i,h,u),this._add("mousePan",h),this._add("touchPan",u,["touchZoom","touchRotate"]);const d=new kr,f=new Tr;t.touchZoomRotate=new Hr(i,f,d,o),this._add("touchRotate",d,["touchPan","touchZoom"]),this._add("touchZoom",f,["touchPan","touchRotate"]),this._add("blockableMapEvent",new ur(t));const m=t.scrollZoom=new Or(t,this);this._add("scrollZoom",m,["mousePan"]);const p=t.keyboard=new Dr;this._add("keyboard",p);for(const i of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])e.interactive&&e[i]&&t[i].enable(e[i])}_add(e,t,i){this._handlers.push({handlerName:e,handler:t,allowed:i}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(const{handler:e}of this._handlers)e.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(const{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return Boolean(Qr(this._eventsInProgress))||this.isZooming()}_blockedByActive(e,t,i){for(const n in e)if(n!==i&&(!t||t.indexOf(n)<0))return!0;return!1}handleWindowEvent(e){this.handleEvent(e,e.type+"Window")}_getMapTouches(e){const t=[];for(const i of e)this._el.contains(i.target)&&t.push(i);return t}handleEvent(e,t){if("blur"===e.type)return void this.stop(!0);this._updatingCamera=!0;const i="renderFrame"===e.type?void 0:e,n={needsRenderFrame:!1},r={},o={},s=e.touches?this._getMapTouches(e.touches):void 0,l=s?a.touchPos(this._el,s):a.mousePos(this._el,e);for(const{handlerName:a,handler:c,allowed:h}of this._handlers){if(!c.isEnabled())continue;let u;this._blockedByActive(o,h,a)?c.reset():c[t||e.type]&&(u=c[t||e.type](e,l,s),this.mergeHandlerResult(n,r,u,a,i),u&&u.needsRenderFrame&&this._triggerRenderFrame()),(u||c.isActive())&&(o[a]=c)}const c={};for(const e in this._previousActiveHandlers)o[e]||(c[e]=i);this._previousActiveHandlers=o,(Object.keys(c).length||Gr(n))&&(this._changes.push([n,r,c]),this._triggerRenderFrame()),(Object.keys(o).length||Gr(n))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:h}=n;h&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],h(this._map))}mergeHandlerResult(t,i,n,a,r){if(!n)return;e.extend(t,n);const o={handlerName:a,originalEvent:n.originalEvent||r};void 0!==n.zoomDelta&&(i.zoom=o),void 0!==n.panDelta&&(i.drag=o),void 0!==n.pitchDelta&&(i.pitch=o),void 0!==n.bearingDelta&&(i.rotate=o)}_applyChanges(){const t={},i={},n={};for(const[a,r,o]of this._changes)a.panDelta&&(t.panDelta=(t.panDelta||new e.Point(0,0))._add(a.panDelta)),a.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+a.zoomDelta),a.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+a.bearingDelta),a.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+a.pitchDelta),void 0!==a.around&&(t.around=a.around),void 0!==a.aroundCoord&&(t.aroundCoord=a.aroundCoord),void 0!==a.pinchAround&&(t.pinchAround=a.pinchAround),a.noInertia&&(t.noInertia=a.noInertia),e.extend(i,r),e.extend(n,o);this._updateMapTransform(t,i,n),this._changes=[]}_updateMapTransform(t,i,n){const a=this._map,r=a.transform,o=e=>[e.x,e.y,e.z];if((e=>{const t=this._eventsInProgress.drag;return t&&!this._handlersById[t.handlerName].isActive()})()&&!Gr(t)){const e=r.zoom;r.cameraElevationReference="sea",r.recenterOnTerrain(),r.cameraElevationReference="ground",e!==r.zoom&&this._map._update(!0)}if(!Gr(t))return this._fireEvents(i,n,!0);let{panDelta:s,zoomDelta:l,bearingDelta:c,pitchDelta:h,around:u,aroundCoord:d,pinchAround:f}=t;void 0!==f&&(u=f),(e=>i.drag&&!this._eventsInProgress.drag)()&&u&&(this._dragOrigin=o(r.pointCoordinate3D(u)),this._trackingEllipsoid.setup(r._camera.position,this._dragOrigin)),r.cameraElevationReference="sea",a._stop(!0),u=u||a.transform.centerPoint,c&&(r.bearing+=c),h&&(r.pitch+=h),r._updateCameraState();const m=[0,0,0];if(s){const e=r.screenPointToMercatorRay(u),t=r.screenPointToMercatorRay(u.sub(s)),i=this._trackingEllipsoid.projectRay(e.dir),n=this._trackingEllipsoid.projectRay(t.dir);m[0]=n[0]-i[0],m[1]=n[1]-i[1]}const p=r.zoom,A=[0,0,0];if(l){const t=o(d||r.pointCoordinate3D(u)),i={dir:e.normalize([],e.sub([],t,r._camera.position))},n=r.screenPointToMercatorRay(r.centerPoint);if(i.dir[2]<0){const a=e.altitudeFromMercatorZ(t[2],t[1]),s=r.rayIntersectionCoordinate(r.pointRayIntersection(r.centerPoint,a)),c=r.zoomDeltaToMovement(o(s),l)*(n.dir[2]/i.dir[2]);e.scale$2(A,i.dir,c)}else if(r._terrainEnabled()){const n=r.zoomDeltaToMovement(t,l);e.scale$2(A,i.dir,n)}}const g=e.add(m,m,A);r._translateCameraConstrained(g),l&&Math.abs(r.zoom-p)>1e-4&&r.recenterOnTerrain(),r.cameraElevationReference="ground",this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(i,n,!0)}_fireEvents(t,i,n){const a=Qr(this._eventsInProgress),r=Qr(t),o={};for(const e in t){const{originalEvent:i}=t[e];this._eventsInProgress[e]||(o[e+"start"]=i),this._eventsInProgress[e]=t[e]}!a&&r&&this._fireEvent("movestart",r.originalEvent);for(const e in o)this._fireEvent(e,o[e]);r&&this._fireEvent("move",r.originalEvent);for(const e in t){const{originalEvent:i}=t[e];this._fireEvent(e,i)}const s={};let l;for(const e in this._eventsInProgress){const{handlerName:t,originalEvent:n}=this._eventsInProgress[e];this._handlersById[t].isActive()||(delete this._eventsInProgress[e],l=i[t]||n,s[e+"end"]=l)}for(const e in s)this._fireEvent(e,s[e]);const c=Qr(this._eventsInProgress);if(n&&(a||r)&&!c){this._updatingCamera=!0;const t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),i=e=>0!==e&&-this._bearingSnap<e&&e<this._bearingSnap;t?(i(t.bearing||this._map.getBearing())&&(t.bearing=0),this._map.easeTo(t,{originalEvent:l})):(this._map.fire(new e.Event("moveend",{originalEvent:l})),i(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(t,i){this._map.fire(new e.Event(t,i?{originalEvent:i}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(e=>{delete this._frameId,this.handleEvent(new Vr("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}class qr extends e.Evented{constructor(t,i){super(),this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=i.bearingSnap,e.bindAll(["_renderFrameCallback"],this)}getCenter(){return new e.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}panBy(t,i,n){return t=e.Point.convert(t).mult(-1),this.panTo(this.transform.center,e.extend({offset:t},i),n)}panTo(t,i,n){return this.easeTo(e.extend({center:t},i),n)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(t,i,n){return this.easeTo(e.extend({zoom:t},i),n)}zoomIn(e,t){return this.zoomTo(this.getZoom()+1,e,t),this}zoomOut(e,t){return this.zoomTo(this.getZoom()-1,e,t),this}getBearing(){return this.transform.bearing}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(t,i,n){return this.easeTo(e.extend({bearing:t},i),n)}resetNorth(t,i){return this.rotateTo(0,e.extend({duration:1e3},t),i),this}resetNorthPitch(t,i){return this.easeTo(e.extend({bearing:0,pitch:0,duration:1e3},t),i),this}snapToNorth(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this}getPitch(){return this.transform.pitch}setPitch(e,t){return this.jumpTo({pitch:e},t),this}cameraForBounds(t,i){t=e.LngLatBounds.convert(t);const n=i&&i.bearing||0;return this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),n,i)}_extendCameraOptions(t){const i={top:0,bottom:0,right:0,left:0};if("number"==typeof(t=e.extend({padding:i,offset:[0,0],maxZoom:this.transform.maxZoom},t)).padding){const e=t.padding;t.padding={top:e,bottom:e,right:e,left:e}}return t.padding=e.extend(i,t.padding),t}_cameraForBoxAndBearing(t,i,n,a){const r=this._extendCameraOptions(a),o=this.transform,s=o.padding,l=o.project(e.LngLat.convert(t)),c=o.project(e.LngLat.convert(i)),h=l.rotate(-e.degToRad(n)),u=c.rotate(-e.degToRad(n)),d=new e.Point(Math.max(h.x,u.x),Math.max(h.y,u.y)),f=new e.Point(Math.min(h.x,u.x),Math.min(h.y,u.y)),m=d.sub(f),p=(o.width-(s.left+s.right+r.padding.left+r.padding.right))/m.x,A=(o.height-(s.top+s.bottom+r.padding.top+r.padding.bottom))/m.y;if(A<0||p<0)return void e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");const g=Math.min(o.scaleZoom(o.scale*Math.min(p,A)),r.maxZoom),y="number"==typeof r.offset.x?new e.Point(r.offset.x,r.offset.y):e.Point.convert(r.offset),v=new e.Point((r.padding.left-r.padding.right)/2,(r.padding.top-r.padding.bottom)/2).rotate(n*Math.PI/180),_=y.add(v).mult(o.scale/o.zoomScale(g));return{center:o.unproject(l.add(c).div(2).sub(_)),zoom:g,bearing:n}}_cameraForBox(t,i,n,a,r){const o=this._extendCameraOptions(r);n=n||0,a=a||0,t=e.LngLat.convert(t),i=e.LngLat.convert(i);const s=this.transform.clone();s.padding=o.padding;const l=this.getFreeCameraOptions(),c=new e.LngLat(.5*(t.lng+i.lng),.5*(t.lat+i.lat)),h=.5*(n+a);if(s._camera.position[2]<e.mercatorZfromAltitude(h,c.lat))return void e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");l.lookAtPoint(c),s.setFreeCameraOptions(l);const u=e.MercatorCoordinate.fromLngLat(t),d=e.MercatorCoordinate.fromLngLat(i),f=s.pointRayIntersection(s.centerPoint,h),m=[(p=s.rayIntersectionCoordinate(f)).x,p.y,p.z];var p;const A=s.screenPointToMercatorRay(s.centerPoint);let g,y=0;do{const r=Math.floor(s.zoom),i=1<<r,o=Math.min(i*u.x,i*d.x),l=Math.min(i*u.y,i*d.y),c=Math.max(i*u.x,i*d.x),h=Math.max(i*u.y,i*d.y),f=new e.Aabb([o,l,n],[c,h,a]),y=e.Frustum.fromInvProjectionMatrix(s.invProjMatrix,s.worldSize,r);if(2!==f.intersects(y)){g&&(s._camera.position=e.scaleAndAdd([],s._camera.position,A.dir,-g),s._updateStateFromCamera());break}const p=e.sub([],s._camera.position,m);g=.5*e.length(p),s._camera.position=e.scaleAndAdd([],s._camera.position,A.dir,g);try{s._updateStateFromCamera()}catch(t){return void e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}}while(++y<10);return{center:s.center,zoom:s.zoom,bearing:s.bearing,pitch:s.pitch}}fitBounds(e,t,i){return this._fitInternal(this.cameraForBounds(e,t),t,i)}_raycastElevationBox(t,i){const n=this.transform.elevation;if(!n)return;const a=new e.Point(t.x,i.y),r=new e.Point(i.x,t.y),o=n.pointCoordinate(t);if(!o)return;const s=n.pointCoordinate(i);if(!s)return;const l=n.pointCoordinate(a);if(!l)return;const c=n.pointCoordinate(r);if(!c)return;const h=new e.MercatorCoordinate(o[0],o[1]).toLngLat(),u=new e.MercatorCoordinate(s[0],s[1]).toLngLat(),d=new e.MercatorCoordinate(l[0],l[1]).toLngLat(),f=new e.MercatorCoordinate(c[0],c[1]).toLngLat(),m=Math.min(h.lng,Math.min(u.lng,Math.min(d.lng,f.lng))),p=Math.min(h.lat,Math.min(u.lat,Math.min(d.lat,f.lat))),A=Math.max(h.lng,Math.max(u.lng,Math.max(d.lng,f.lng))),g=Math.max(h.lat,Math.max(u.lat,Math.max(d.lat,f.lat))),y=Math.min(o[3],Math.min(s[3],Math.min(l[3],c[3]))),v=Math.max(o[3],Math.max(s[3],Math.max(l[3],c[3])));return{minLngLat:new e.LngLat(m,p),maxLngLat:new e.LngLat(A,g),minAltitude:y,maxAltitude:v}}fitScreenCoordinates(t,i,n,a,r){let o,s,l,c;const h=e.Point.convert(t),u=e.Point.convert(i),d=this._raycastElevationBox(h,u);if(d)o=d.minLngLat,s=d.maxLngLat,l=d.minAltitude,c=d.maxAltitude;else{if(this.transform.isHorizonVisibleForPoints(h,u))return this;o=this.transform.pointLocation(h),s=this.transform.pointLocation(u)}return this._fitInternal(0===this.transform.pitch?this._cameraForBoxAndBearing(this.transform.pointLocation(e.Point.convert(t)),this.transform.pointLocation(e.Point.convert(i)),n,a):this._cameraForBox(o,s,l,c,a),a,r)}_fitInternal(t,i,n){return t?(delete(i=e.extend(t,i)).padding,i.linear?this.easeTo(i,n):this.flyTo(i,n)):this}jumpTo(t,i){this.stop();const n=this.transform;let a=!1,r=!1,o=!1;return"zoom"in t&&n.zoom!==+t.zoom&&(a=!0,n.zoom=+t.zoom),void 0!==t.center&&(n.center=e.LngLat.convert(t.center)),"bearing"in t&&n.bearing!==+t.bearing&&(r=!0,n.bearing=+t.bearing),"pitch"in t&&n.pitch!==+t.pitch&&(o=!0,n.pitch=+t.pitch),null==t.padding||n.isPaddingEqual(t.padding)||(n.padding=t.padding),this.fire(new e.Event("movestart",i)).fire(new e.Event("move",i)),a&&this.fire(new e.Event("zoomstart",i)).fire(new e.Event("zoom",i)).fire(new e.Event("zoomend",i)),r&&this.fire(new e.Event("rotatestart",i)).fire(new e.Event("rotate",i)).fire(new e.Event("rotateend",i)),o&&this.fire(new e.Event("pitchstart",i)).fire(new e.Event("pitch",i)).fire(new e.Event("pitchend",i)),this.fire(new e.Event("moveend",i))}getFreeCameraOptions(){return this.transform.getFreeCameraOptions()}setFreeCameraOptions(t,i){this.stop();const n=this.transform,a=n.zoom,r=n.pitch,o=n.bearing;n.setFreeCameraOptions(t);const s=a!==n.zoom,l=r!==n.pitch,c=o!==n.bearing;return this.fire(new e.Event("movestart",i)).fire(new e.Event("move",i)),s&&this.fire(new e.Event("zoomstart",i)).fire(new e.Event("zoom",i)).fire(new e.Event("zoomend",i)),c&&this.fire(new e.Event("rotatestart",i)).fire(new e.Event("rotate",i)).fire(new e.Event("rotateend",i)),l&&this.fire(new e.Event("pitchstart",i)).fire(new e.Event("pitch",i)).fire(new e.Event("pitchend",i)),this.fire(new e.Event("moveend",i)),this}easeTo(t,i){this._stop(!1,t.easeId),(!1===(t=e.extend({offset:[0,0],duration:500,easing:e.ease},t)).animate||!t.essential&&e.browser.prefersReducedMotion)&&(t.duration=0);const n=this.transform,a=this.getZoom(),r=this.getBearing(),o=this.getPitch(),s=this.getPadding(),l="zoom"in t?+t.zoom:a,c="bearing"in t?this._normalizeBearing(t.bearing,r):r,h="pitch"in t?+t.pitch:o,u="padding"in t?t.padding:n.padding,d=e.Point.convert(t.offset);let f=n.centerPoint.add(d);const m=n.pointLocation(f),p=e.LngLat.convert(t.center||m);this._normalizeCenter(p);const A=n.project(m),g=n.project(p).sub(A),y=n.zoomScale(l-a);let v,_;t.around&&(v=e.LngLat.convert(t.around),_=n.locationPoint(v));const b={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||l!==a,this._rotating=this._rotating||r!==c,this._pitching=this._pitching||h!==o,this._padding=!n.isPaddingEqual(u),this._easeId=t.easeId,this._prepareEase(i,t.noMoveStart,b),this._ease(t=>{if(this._zooming&&(n.zoom=e.number(a,l,t)),this._rotating&&(n.bearing=e.number(r,c,t)),this._pitching&&(n.pitch=e.number(o,h,t)),this._padding&&(n.interpolatePadding(s,u,t),f=n.centerPoint.add(d)),v)n.setLocationAtPoint(v,_);else{const e=n.zoomScale(n.zoom-a),i=l>a?Math.min(2,y):Math.max(.5,y),r=Math.pow(i,1-t),o=n.unproject(A.add(g.mult(t*r)).mult(e));
2n.setLocationAtPoint(n.renderWorldCopies?o.wrap():o,f)}this._fireMoveEvents(i)},e=>{n.recenterOnTerrain(),this._afterEase(i,e)},t),this}_prepareEase(t,i,n={}){this._moving=!0,this.transform.cameraElevationReference="sea",i||n.moving||this.fire(new e.Event("movestart",t)),this._zooming&&!n.zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&!n.rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&!n.pitching&&this.fire(new e.Event("pitchstart",t))}_fireMoveEvents(t){this.fire(new e.Event("move",t)),this._zooming&&this.fire(new e.Event("zoom",t)),this._rotating&&this.fire(new e.Event("rotate",t)),this._pitching&&this.fire(new e.Event("pitch",t))}_afterEase(t,i){if(this._easeId&&i&&this._easeId===i)return;delete this._easeId,this.transform.cameraElevationReference="ground";const n=this._zooming,a=this._rotating,r=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&&this.fire(new e.Event("zoomend",t)),a&&this.fire(new e.Event("rotateend",t)),r&&this.fire(new e.Event("pitchend",t)),this.fire(new e.Event("moveend",t))}flyTo(t,i){if(!t.essential&&e.browser.prefersReducedMotion){const n=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(n,i)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);const n=this.transform,a=this.getZoom(),r=this.getBearing(),o=this.getPitch(),s=this.getPadding(),l="zoom"in t?e.clamp(+t.zoom,n.minZoom,n.maxZoom):a,c="bearing"in t?this._normalizeBearing(t.bearing,r):r,h="pitch"in t?+t.pitch:o,u="padding"in t?t.padding:n.padding,d=n.zoomScale(l-a),f=e.Point.convert(t.offset);let m=n.centerPoint.add(f);const p=n.pointLocation(m),A=e.LngLat.convert(t.center||p);this._normalizeCenter(A);const g=n.project(p),y=n.project(A).sub(g);let v=t.curve;const _=Math.max(n.width,n.height),b=_/d,w=y.mag();if("minZoom"in t){const i=e.clamp(Math.min(t.minZoom,a,l),n.minZoom,n.maxZoom),r=_/n.zoomScale(i-a);v=Math.sqrt(r/w*2)}const x=v*v;function E(e){const t=(b*b-_*_+(e?-1:1)*x*x*w*w)/(2*(e?b:_)*x*w);return Math.log(Math.sqrt(t*t+1)-t)}function C(e){return(Math.exp(e)-Math.exp(-e))/2}function S(e){return(Math.exp(e)+Math.exp(-e))/2}const T=E(0);let B=function(e){return S(T)/S(T+v*e)},k=function(e){return _*((S(T)*(C(t=T+v*e)/S(t))-C(T))/x)/w;var t},I=(E(1)-T)/v;if(Math.abs(w)<1e-6||!isFinite(I)){if(Math.abs(_-b)<1e-6)return this.easeTo(t,i);const e=b<_?-1:1;I=Math.abs(Math.log(b/_))/v,k=function(){return 0},B=function(t){return Math.exp(e*v*t)}}return t.duration="duration"in t?+t.duration:1e3*I/("screenSpeed"in t?+t.screenSpeed/v:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=r!==c,this._pitching=h!==o,this._padding=!n.isPaddingEqual(u),this._prepareEase(i,!1),this._ease(t=>{const d=t*I,p=1/B(d);n.zoom=1===t?l:a+n.scaleZoom(p),this._rotating&&(n.bearing=e.number(r,c,t)),this._pitching&&(n.pitch=e.number(o,h,t)),this._padding&&(n.interpolatePadding(s,u,t),m=n.centerPoint.add(f));const v=1===t?A:n.unproject(g.add(y.mult(k(d))).mult(p));n.setLocationAtPoint(n.renderWorldCopies?v.wrap():v,m),n._updateCenterElevation(),this._fireMoveEvents(i)},()=>this._afterEase(i),t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const e=this._onEaseEnd;delete this._onEaseEnd,e.call(this,t)}if(!e){const e=this.handlers;e&&e.stop(!1)}return this}_ease(t,i,n){!1===n.animate||0===n.duration?(t(1),i()):(this._easeStart=e.browser.now(),this._easeOptions=n,this._onEaseFrame=t,this._onEaseEnd=i,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const t=Math.min((e.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(t,i){t=e.wrap(t,-180,180);const n=Math.abs(t-i);return Math.abs(t-360-i)<n&&(t-=360),Math.abs(t+360-i)<n&&(t+=360),t}_normalizeCenter(e){const t=this.transform;if(!t.renderWorldCopies||t.lngRange)return;const i=e.lng-t.center.lng;e.lng+=i>180?-360:i<-180?360:0}}class $r{constructor(t={}){this.options=t,e.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(e){const t=this.options&&this.options.compact;return this._map=e,this._container=a.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=a.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=a.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){a.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(e,t){const i=this._map._getUIString("AttributionControl."+t);e.title=i,e.setAttribute("aria-label",i)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","fal
2se")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))}_updateEditLink(){let t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));const i=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(t){const n=i.reduce((e,t,n)=>(t.value&&(e+=`${t.key}=${t.value}${n<i.length-1?"&":""}`),e),"?");t.href=`${e.config.FEEDBACK_URL}/${n}${this._map._hash?this._map._hash.getHashString(!0):""}`,t.rel="noopener nofollow",this._setElementTitle(t,"MapFeedback")}}_updateData(e){!e||"metadata"!==e.sourceDataType&&"visibility"!==e.sourceDataType&&"style"!==e.dataType||(this._updateAttributions(),this._updateEditLink())}_updateAttributions(){if(!this._map.style)return;let e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map(e=>"string"!=typeof e?"":e)):"string"==typeof this.options.customAttribution&&e.push(this.options.customAttribution)),this._map.style.stylesheet){const e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}const t=this._map.style._sourceCaches;for(const i in t){const n=t[i];if(n.used){const t=n.getSource();t.attribution&&e.indexOf(t.attribution)<0&&e.push(t.attribution)}}e.sort((e,t)=>e.length-t.length),e=e.filter((t,i)=>{for(let n=i+1;n<e.length;n++)if(e[n].indexOf(t)>=0)return!1;return!0});const i=e.join(" | ");i!==this._attribHTML&&(this._attribHTML=i,e.length?(this._innerContainer.innerHTML=i,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class Yr{constructor(){e.bindAll(["_updateLogo"],this),e.bindAll(["_updateCompact"],this)}onAdd(e){this._map=e,this._container=a.create("div","mapboxgl-ctrl");const t=a.create("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){a.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return;const e=this._map.style._sourceCaches;if(0===Object.entries(e).length)return!0;for(const t in e){const i=e[t].getSource();if(i.hasOwnProperty("mapbox_logo")&&!i.mapbox_logo)return!1}return!0}_updateCompact(){const e=this._container.children;if(e.length){const t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}}}class Wr{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){const t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){const t=this._currentlyRunning,i=t?this._queue.concat(t):this._queue;for(const t of i)if(t.id===e)return void(t.cancelled=!0)}run(e=0){const t=this._currentlyRunning=this._queue;this._queue=[];for(const i of t)if(!i.cancelled&&(i.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}const Xr={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},{HTMLImageElement:Jr,HTMLElement:Zr,ImageBitmap:ei}=e.window,ti={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileC
2acheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0};function ni(e){e.parentNode&&e.parentNode.removeChild(e)}const ri={showCompass:!0,showZoom:!0,visualizePitch:!1};class ii{constructor(t,i,n=!1){this._clickTolerance=10,this.element=i,this.mouseRotate=new _r({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,n&&(this.mousePitch=new wr({clickTolerance:t.dragRotate._mousePitch._clickTolerance})),e.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),a.addEventListener(i,"mousedown",this.mousedown),a.addEventListener(i,"touchstart",this.touchstart,{passive:!1}),a.addEventListener(i,"touchmove",this.touchmove),a.addEventListener(i,"touchend",this.touchend),a.addEventListener(i,"touchcancel",this.reset)}down(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),a.disableDrag()}move(e,t){const i=this.map,n=this.mouseRotate.mousemoveWindow(e,t);if(n&&n.bearingDelta&&i.setBearing(i.getBearing()+n.bearingDelta),this.mousePitch){const n=this.mousePitch.mousemoveWindow(e,t);n&&n.pitchDelta&&i.setPitch(i.getPitch()+n.pitchDelta)}}off(){const e=this.element;a.removeEventListener(e,"mousedown",this.mousedown),a.removeEventListener(e,"touchstart",this.touchstart,{passive:!1}),a.removeEventListener(e,"touchmove",this.touchmove),a.removeEventListener(e,"touchend",this.touchend),a.removeEventListener(e,"touchcancel",this.reset),this.offTemp()}offTemp(){a.enableDrag(),a.removeEventListener(e.window,"mousemove",this.mousemove),a.removeEventListener(e.window,"mouseup",this.mouseup)}mousedown(t){this.down(e.extend({},t,{ctrlKey:!0,preventDefault:()=>t.preventDefault()}),a.mousePos(this.element,t)),a.addEventListener(e.window,"mousemove",this.mousemove),a.addEventListener(e.window,"mouseup",this.mouseup)}mousemove(e){this.move(e,a.mousePos(this.element,e))}mouseup(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()}touchstart(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=a.touchPos(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>e.preventDefault()},this._startPos))}touchmove(e){1!==e.targetTouches.length?this.reset():(this._lastPos=a.touchPos(this.element,e.targetTouches)[0],this.move({preventDefault:()=>e.preventDefault()},this._lastPos))}touchend(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}function si(t,i,n){if(t=new e.LngLat(t.lng,t.lat),i){const a=new e.LngLat(t.lng-360,t.lat),r=new e.LngLat(t.lng+360,t.lat),o=360*Math.ceil(Math.abs(t.lng-n.center.lng)/360),s=n.locationPoint(t).distSqr(i),l=i.x<0||i.y<0||i.x>n.width||i.y>n.height;n.locationPoint(a).distSqr(i)<s&&(l||Math.abs(a.lng-n.center.lng)<o)?t=a:n.locationPoint(r).distSqr(i)<s&&(l||Math.abs(r.lng-n.center.lng)<o)&&(t=r)}for(;Math.abs(t.lng-n.center.lng)>180;){const e=n.locationPoint(t);if(e.x>=0&&e.y>=0&&e.x<=n.width&&e.y<=n.height)break;t.lng>n.center.lng?t.lng-=360:t.lng+=360}return t}const ai={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function oi(e,t,i){const n=e.classList;for(const e in ai)n.remove(`mapboxgl-${i}-anchor-${e}`);n.add(`mapboxgl-${i}-anchor-${t}`)}class ci extends e.Evented{constructor(t,i){if(super(),(t instanceof e.
2window.HTMLElement||i)&&(t=e.extend({element:t},i)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._scale=t&&t.scale||1,this._draggable=t&&t.draggable||!1,this._clickTolerance=t&&t.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&"auto"!==t.pitchAlignment?t.pitchAlignment:this._rotationAlignment,t&&t.element)this._element=t.element,this._offset=e.Point.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=a.create("div"),this._element.setAttribute("aria-label","Map marker");const i=a.createNS("http://www.w3.org/2000/svg","svg"),n=41,r=27;i.setAttributeNS(null,"display","block"),i.setAttributeNS(null,"height",n+"px"),i.setAttributeNS(null,"width",r+"px"),i.setAttributeNS(null,"viewBox",`0 0 ${r} ${n}`);const o=a.createNS("http://www.w3.org/2000/svg","g");o.setAttributeNS(null,"stroke","none"),o.setAttributeNS(null,"stroke-width","1"),o.setAttributeNS(null,"fill","none"),o.setAttributeNS(null,"fill-rule","evenodd");const s=a.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"fill-rule","nonzero");const l=a.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"transform","translate(3.0, 29.0)"),l.setAttributeNS(null,"fill","#000000");const c=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(const e of c){const t=a.createNS("http://www.w3.org/2000/svg","ellipse");t.setAttributeNS(null,"opacity","0.04"),t.setAttributeNS(null,"cx","10.5"),t.setAttributeNS(null,"cy","5.80029008"),t.setAttributeNS(null,"rx",e.rx),t.setAttributeNS(null,"ry",e.ry),l.appendChild(t)}const h=a.createNS("http://www.w3.org/2000/svg","g");h.setAttributeNS(null,"fill",this._color);const u=a.createNS("http://www.w3.org/2000/svg","path");u.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),h.appendChild(u);const d=a.createNS("http://www.w3.org/2000/svg","g");d.setAttributeNS(null,"opacity","0.25"),d.setAttributeNS(null,"fill","#000000");const f=a.createNS("http://www.w3.org/2000/svg","path");f.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),d.appendChild(f);const m=a.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"transform","translate(6.0, 7.0)"),m.setAttributeNS(null,"fill","#FFFFFF");const p=a.createNS("http://www.w3.org/2000/svg","g");p.setAttributeNS(null,"transform","translate(8.0, 8.0)");const A=a.createNS("http://www.w3.org/2000/svg","circle");A.setAttributeNS(null,"fill","#000000"),A.setAttributeNS(null,"opacity","0.25"),A.setAttributeNS(null,"cx","5.5"),A.setAttributeNS(null,"cy","5.5"),A.setAttributeNS(null,"r","5.4999962");const g=a.createNS("http://www.w3.org/2000/svg","circle");g.setAttributeNS(null,"fill","#FFFFFF"),g.setAttributeNS(null,"cx","5.5"),g.setAttributeNS(null,"cy","5.5"),g.setAttributeNS(null,"r","5.4999962"),p.appendChild(A),p.appendChild(g),s.appendChild(l),s.appendChild(h),s.appendChild(d),s.appendChild(m),s.appendChild(p),i.appendChild(s),i.setAttributeNS(null,"height",n*this._scale+"px"),i.setAttributeNS(null,"width",r*this._scale+"px"),this._element.appendChild(i),this._offset=e.Point.convert(t&&t.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",e=>{e.preventDefault()}),this._element.addEventListener("mousedown",e=>{e.preventDefault()}),oi(this._element,this._anchor,"marker"),this._popup=null}addTo(e){return this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),a.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){const t=38.1,i=13.5,n=Math.sqrt(Math.pow(i,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[
20,-t],"bottom-left":[n,-1*(t-i+n)],"bottom-right":[-n,-1*(t-i+n)],left:[i,-1*(t-i)],right:[-i,-1*(t-i)]}:this._offset}this._popup=e,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}_onKeyPress(e){const t=e.code,i=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==i&&13!==i||this.togglePopup()}_onMapClick(e){const t=e.originalEvent.target,i=this._element;this._popup&&(t===i||i.contains(t))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const e=this._popup;return e?(e.isOpen()?e.remove():e.addTo(this._map),this):this}_updateOcclusion(){this._occlusionTimer||(this._occlusionTimer=setTimeout(this._onOcclusionTimer.bind(this),60))}_onOcclusionTimer(){const e=this._map.transform,t=this._pos?this._pos.sub(this._transformedOffset()):null;if(t&&t.x>=0&&t.x<e.width&&t.y>=0&&t.y<e.height){const e=this._map.unproject(t),i=this._map.getFreeCameraOptions();if(i.position){const t=i.position.toLngLat(),n=t.distanceTo(e),a=t.distanceTo(this._lngLat);this._element.classList.toggle("mapboxgl-marker-occluded",n<.9*a)}}this._occlusionTimer=null}_update(e){if(!this._map)return;
2this._map.transform.renderWorldCopies&&(this._lngLat=si(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._transformedOffset()),this._map.transform.elevation&&this._updateOcclusion();let t="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?t=`rotateZ(${this._rotation}deg)`:"map"===this._rotationAlignment&&(t=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let i="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?i="rotateX(0deg)":"map"===this._pitchAlignment&&(i=`rotateX(${this._map.getPitch()}deg)`),e&&"moveend"!==e.type||(this._pos=this._pos.round()),a.setTransform(this._element,`${ai[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${i} ${t}`)}_transformedOffset(){if(!this._defaultMarker)return this._offset;const e=this._map.transform,t=this._offset.mult(this._scale);return"map"===this._rotationAlignment&&t._rotate(e.angle),"map"===this._pitchAlignment&&(t.y*=Math.cos(e._pitch)),t}getOffset(){return this._offset}setOffset(t){return this._offset=e.Point.convert(t),this._update(),this}_onMove(t){if(!this._isDragging){const e=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=e}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.Event("dragstart"))),this.fire(new e.Event("drag")))}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new e.Event("dragend")),this._state="inactive"}_addDragHandler(e){this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos).add(this._transformedOffset()),this._pointerdownPos=e.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))}setDraggable(e){return this._draggable=!!e,this._map&&(e?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e&&"auto"!==e?e:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}const ui={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let hi,di=0,pi=!1;const fi={maxWidth:100,unit:"metric"};function mi(e,t,i){const n=i&&i.maxWidth||100,a=e._container.clientHeight/2,r=e.unproject([0,a]),o=e.unproject([n,a]),s=r.distanceTo(o);if(i&&"imperial"===i.unit){const i=3.2808*s;i>5280?Ai(t,n,i/5280,e._getUIString("ScaleControl.Miles")):Ai(t,n,i,e._getUIString("ScaleControl.Feet"))}else i&&"nautical"===i.unit?Ai(t,n,s/1852,e._getUIString("ScaleControl.NauticalMiles")):s>=1e3?Ai(t,n,s/1e3,e._getUIString("ScaleControl.Kilometers")):Ai(t,n,s,e._getUIString("ScaleControl.Meters"))}function Ai(e,t,i,n){const a=function(e){const t=Math.pow(10,(""+Math.floor(e)).length-1);let i=e/t;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:i>=1?1:function(e){const t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(i),t*i}(i);e.style.width=t*(a/i)+"px",e.innerHTML=`${a} ${n}`}const gi={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},yi=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),vi={version:e.version,supported:t,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:class extends qr{constructor(t){if(null!=(t=e.extend({},ti,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Yn(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies),t),this._interactive=t.interactive,this._maxTileC
2acheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._optimizeForTerrain=t.optimizeForTerrain,this._renderTaskQueue=new Wr,this._controls=[],this._mapId=e.uniqueId(),this._locale=e.extend({},Xr,t.locale),this._clickTolerance=t.clickTolerance,this._requestManager=new e.RequestManager(t.transformRequest,t.accessToken),"string"==typeof t.container){if(this._container=e.window.document.getElementById(t.container),!this._container)throw new Error(`Container '${t.container}' not found.`)}else{if(!(t.container instanceof Zr))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(t.maxBounds&&this.setMaxBounds(t.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),void 0!==e.window&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1),e.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Kr(this,t),this._hash=t.hash&&new Wn("string"==typeof t.hash&&t.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.extend({},t.fitBoundsOptions,{duration:0})))),this.resize(),this._localFontFamily=t.localFontFamily,this._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&this.setStyle(t.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),t.attributionControl&&this.addControl(new $r({customAttribution:t.customAttribution})),this._logoControl=new Yr,this.addControl(this._logoControl,t.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",t=>{this._update("style"===t.dataType),this.fire(new e.Event(t.dataType+"data",t))}),this.on("dataloading",t=>{this.fire(new e.Event(t.dataType+"dataloading",t))})}_getMapId(){return this._mapId}addControl(t,i){if(void 0===i&&(i=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const n=t.onAdd(this);this._controls.push(t);const a=this._controlPositions[i];return-1!==i.indexOf("bottom")?a.insertBefore(n,a.firstChild):a.appendChild(n),this}removeControl(t){if(!t||!t.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const i=this._controls.indexOf(t);return i>-1&&this._controls.splice(i,1),t.onRemove(this),this}hasControl(e){return this._controls.indexOf(e)>-1}resize(t){const i=this._containerDimensions(),n=i[0],a=i[1];this._resizeCanvas(n,a),this.transform.resize(n,a),this.painter.resize(n,a);const r=!this._moving;return r&&(this.stop(),this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t))),this.fire(new e.Event("resize",t)),r&&this.fire(new e.Event("moveend",t)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()}setMinZoom(e){if((e=null==e?-2:e)>=-2&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()<e&&this.setZoom(e),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(e){if((e=null==e?22:e)>=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e&&this.setZoom(e),this;
2throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(e){if((e=null==e?0:e)<0)throw new Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this._update(),this.getPitch()<e&&this.setPitch(e),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(e){if((e=null==e?85:e)>85)throw new Error("maxPitch must be less than or equal to 85");if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this._update(),this.getPitch()>e&&this.setPitch(e),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){return this.transform.renderWorldCopies=e,this._update()}project(t){return this.transform.locationPoint3D(e.LngLat.convert(t))}unproject(t){return this.transform.pointLocation3D(e.Point.convert(t))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()}_createDelegatedListener(e,t,i){if("mouseenter"===e||"mouseover"===e){let n=!1;const a=a=>{const r=this.getLayer(t)?this.queryRenderedFeatures(a.point,{layers:[t]}):[];r.length?n||(n=!0,i.call(this,new ar(e,this,a.originalEvent,{features:r}))):n=!1};return{layer:t,listener:i,delegates:{mousemove:a,mouseout:()=>{n=!1}}}}if("mouseleave"===e||"mouseout"===e){let n=!1;const a=a=>{(this.getLayer(t)?this.queryRenderedFeatures(a.point,{layers:[t]}):[]).length?n=!0:n&&(n=!1,i.call(this,new ar(e,this,a.originalEvent)))},r=t=>{n&&(n=!1,i.call(this,new ar(e,this,t.originalEvent)))};return{layer:t,listener:i,delegates:{mousemove:a,mouseout:r}}}{const n=e=>{const n=this.getLayer(t)?this.queryRenderedFeatures(e.point,{layers:[t]}):[];n.length&&(e.features=n,i.call(this,e),delete e.features)};return{layer:t,listener:i,delegates:{[e]:n}}}}on(e,t,i){if(void 0===i)return super.on(e,t);const n=this._createDelegatedListener(e,t,i);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(n);for(const e in n.delegates)this.on(e,n.delegates[e]);return this}once(e,t,i){if(void 0===i)return super.once(e,t);const n=this._createDelegatedListener(e,t,i);for(const e in n.delegates)this.once(e,n.delegates[e]);return this}off(e,t,i){return void 0===i?super.off(e,t):(this._delegatedListeners&&this._delegatedListeners[e]&&(n=>{const a=this._delegatedListeners[e];for(let e=0;e<a.length;e++){const n=a[e];if(n.layer===t&&n.listener===i){for(const e in n.delegates)this.off(e,n.delegates[e]);return a.splice(e,1),this}}})(),this)}queryRenderedFeatures(t,i){return this.style?(void 0!==i||void 0===t||t instanceof e.Point||Array.isArray(t)||(i=t,t=void 0),this.style.queryRenderedFeatures(t=t||[[0,0],[this.transform.width,this.transform.height]],i=i||{},this.transform)):[]}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}setStyle(t,i){return!1!==(i=e.extend({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},i)).diff&&i.localIdeographFontFamily===this._localIdeographFontFamily&&i.localFontFamily===this._localFontFamily&&this.style&&t?(this._diffStyle(t,i),this):(this._localIdeographFontFamily=i.localIdeographFontFamily,this._localFontFamily=i.localFontFamily,this._updateStyle(t,i))}_getUIString(e){const t=this._locale[e];if(null==t)throw new Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){return this.style&&(this.style.setEventedParent(null),this.style._remove(),delete this.style),e&&(this.style=new He(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e):this.style.loadJSON(e)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new He(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(t,i){if("string"==typeof t){const n=this._requestManager.normalizeStyleURL(t),a=this._requestManager.transformRequest(n,e.ResourceType.Style);e.getJSON(a,(t,n)=>{t?this.fire(new e.ErrorEvent(t)):n&&this._updateDiff(n,i)})}else"object"==typeof t&&this._updateDiff(t,i)}_updateDiff(t,i){try{this.style.setState(t)&&this._update(!0)}catch(n){e.warnOnce(`Unable to perform style diff: ${n.message||n.error||n}. Rebuilding the style from scratch.`),this._updateStyle(t,i)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():e.warnOnce("There is no style added to the map.")}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(t){const i=this.style&&this.style._getSourceCaches(t);if(0!==i.length)return i.every(e=>e.loaded());this.fire(new e.ErrorEvent(new Error(`There is no source with ID '${t}'`)))}areTilesLoaded(){const e=this.style&&this.style._sourceCaches;for(const t in e){const i=e[t]._tiles;for(const e in i){const t=i[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}}return!0}addSourceType(e,t,i){return this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,i)}removeSource(e){return this.style.removeSource(e),this._updateTerrain(),this._update(!0)}getSource(e){return this.style.getSource(e)}addImage(t,i,{pixelRatio:n=1,sdf:a=!1,stretchX:r,stretchY:o,content:s}={}){if(this._lazyInitEmptyStyle(),i instanceof Jr||ei&&i instanceof ei){const{width:l,height:c,data:h}=e.browser.getImageData(i);this.style.addImage(t,{data:new e.RGBAImage({width:l,height:c},h),pixelRatio:n,stretchX:r,stretchY:o,content:s,sdf:a,version:0})}else{if(void 0===i.width||void 0===i.height)return this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{const{width:l,height:c,data:h}=i,u=i;this.style.addImage(t,{data:new e.RGBAImage({width:l,height:c},new Uint8Array(h)),pixelRatio:n,stretchX:r,stretchY:o,content:s,sdf:a,version:0,userImage:u}),u.onAdd&&u.onAdd(this,t)}}}updateImage(t,i){const n=this.style.getImage(t);if(!n)return this.fire(new e.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const a=i instanceof Jr||ei&&i instanceof ei?e.browser.getImageData(i):i,{width:r,height:o,data:s}=a;return void 0===r||void 0===o?this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))):r!==n.data.width||o!==n.data.height?this.fire(new e.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image"))):(n.data.replace(s,!(i instanceof Jr||ei&&i instanceof ei)),void this.style.updateImage(t,n))}hasImage(t){return t?!!this.style.getImage(t):(this.fire(new e.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(t,i){e.getImage(this._requestManager.transformRequest(t,e.ResourceType.Image),i)}listImages(){return this.style.listImages()}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){return this.style.getLayer(e)}setLayerZoomRange(e,t,i){return this.style.setLayerZoomRange(e,t,i),this._update(!0)}setFilter(e,t,i={}){return this.style.setFilter(e,t,i),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,i,n={}){return this.style.setPaintProperty(e,t,i,n),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,i,n={}){return this.style.setLayoutProperty(e,t,i,n),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(e){return this._lazyInitEmptyStyle(),this.style.setTerrain(e),this._update(!0)}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let e=0,t=0;return this._container&&(e=this._container.clientWidth||400,t=this._container.clientHeight||300),[e,t]}_detectMissingCSS(){"rgb(250, 128, 114)"!==e.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&e.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described
2in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=a.create("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();const t=this._canvasContainer=a.create("div","mapboxgl-canvas-container",e);this._interactive&&t.classList.add("mapboxgl-interactive"),this._canvas=a.create("canvas","mapboxgl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");const i=this._containerDimensions();this._resizeCanvas(i[0],i[1]);const n=this._controlContainer=a.create("div","mapboxgl-control-container",e),r=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(e=>{r[e]=a.create("div","mapboxgl-ctrl-"+e,n)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(t,i){const n=e.browser.devicePixelRatio||1;this._canvas.width=n*t,this._canvas.height=n*i,this._canvas.style.width=t+"px",this._canvas.style.height=i+"px"}_setupPainter(){const i=e.extend({},t.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._canvas.getContext("webgl",i)||this._canvas.getContext("experimental-webgl",i);n?(this.painter=new Ln(n,this.transform),this.on("data",e=>{"source"===e.dataType&&this.painter.setTileLoadedFlag(!0)}),e.webpSupported.testSupport(n)):this.fire(new e.ErrorEvent(new Error("Failed to initialize WebGL")))}_contextLost(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.Event("webglcontextlost",{originalEvent:t}))}_contextRestored(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.Event("webglcontextrestored",{originalEvent:t}))}_onMapScroll(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(t){let i,n=0;const a=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(i=a.createQueryEXT(),a.beginQueryEXT(a.TIME_ELAPSED_EXT,i),n=e.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),this._removed)return;let r=!1;const o=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const t=this.transform.zoom,i=e.browser.now();this.style.zoomHistory.update(t,i);const n=new e.EvaluationParameters(t,{now:i,fadeDuration:o,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),a=n.crossFadingFactor();1===a&&a===this._crossFadingFactor||(r=!0,this._crossFadingFactor=a),this.style.update(n)}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this._updateTerrain(),this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,o,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:o,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),speedIndexTiming:this.speedIndexTiming}),this.fire(new e.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new e.Event("load"))),this.style&&(this.style.hasTransitions()||r)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){const t=e.browser.now()-n;a.endQueryEXT(a.TIME_ELAPSED_EXT,i),setTimeout(()=>{const n=a.getQueryObjectEXT(i,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(i),this.fire(new e.Event("gpu-timing-frame",{cpuTime:t,gpuTime:n}))},50)}if(this.listens("gpu-timing-layer")){const t=this.painter.collectGpuTimers();setTimeout(()=>{const i=this.painter.queryGpuTimers(t);this.fire(new e.Event("gpu-timing-layer",{layerTimes:i}))},50)}const s=this._sourcesDirty||this._styleDirty||this._placementDirty;if(s||this._repaint)this.triggerRepaint();else if(this._triggerFrame(!1),!this.isMoving()&&this.loaded()&&(this.fire(new e.Event("idle")),this._isInitialLoad&&this._authenticate(),this._isInitialLoad=!1,this.speedIndexTiming)){const t=this._calculateSpeedIndex();this.fire(new e.Event("speedindexcompleted",{speedIndex:t})),this.speedIndexTiming=!1}return!this._loaded||this._fullyLoaded||s||(this._fullyLoaded=!0),this}_authenticate(){e.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,t=>{if(t&&(t.message===e.AUTH_ERR_MSG||401===t.status)){console.error("Error: A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/"),e.browser.setErrorState();const t=this.painter.context.gl;this._logoControl instanceof Yr&&this._logoControl._updateLogo(),t&&t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT|t.STENCIL_BUFFER_BIT)}}),e.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){this.painter.updateTerrain(this.style,this.isMoving()||this.isRotating()||this.isZooming())}_calculateSpeedIndex(){const e=this.painter.canvasCopy(),t=this.painter.getCanvasCopiesAndTimestamps();t.timeStamps.push(performance.now());const i=this.painter.context.gl,n=i.createFramebuffer();function a(e){i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,e,0);const t=new Uint8Array(i.drawingBufferWidth*i.drawingBufferHeight*4);return i.readPixels(0,0,i.drawingBufferWidth,i.drawingBufferHeight,i.RGBA,i.UNSIGNED_BYTE,t),t}return i.bindFramebuffer(i.FRAMEBUFFER,n),this._canvasPixelComparison(a(e),t.canvasCopies.map(a),t.timeStamps)}_canvasPixelComparison(e,t,i){let n=i[1]-i[0];const a=e.length/4;for(let r=0;r<t.length;r++){const o=t[r];let s=0;for(let t=0;t<o.length;t+=4)o[t]===e[t]&&o[t+1]===e[t+1]&&o[t+2]===e[t+2]&&o[t+3]===e[t+3]&&(s+=1);n+=(i[r+2]-i[r+1])*(1-s/a)}return n}remove(){this._hash&&this._hash.remove();for(const e of this._controls)e.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==e.window&&(e.window.removeEventListener("resize",this._onWindowResize,!1),e.window.removeEventListener("orientationchange",this._onWindowResize,!1),e.window.removeEventListener("online",this._onWindowOnline,!1));const t=this.painter.context.gl.getExtension("WEBGL_lose_context");t&&t.loseContext(),ni(this._canvasContainer),ni(this._controlContainer),ni(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),this._removed=!0,this.fire(new e.Event("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(t){this._renderNextFrame=this._renderNextFrame||t,this.style&&!this._frame&&(this._frame=e.browser.frame(e=>{const t=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,t&&this._render(e)}))}_onWindowOnline(){this._update()}_onWindowResize(e){this._trackResize&&this.resize({originalEvent:e})._update()}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(e){this._speedIndexTiming!==e&&(this._speedIndexTiming=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}
2_setCacheLimits(t,i){e.setCacheLimits(t,i)}get version(){return e.version}},NavigationControl:class{constructor(t){this.options=e.extend({},ri,t),this._container=a.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",e=>e.preventDefault()),this.options.showZoom&&(e.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",e=>this._map.zoomIn({},{originalEvent:e})),a.create("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",e=>this._map.zoomOut({},{originalEvent:e})),a.create("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(e.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",e=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:e}):this._map.resetNorth({},{originalEvent:e})}),this._compassIcon=a.create("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))}_updateZoomButtons(){const e=this._map.getZoom(),t=e===this._map.getMaxZoom(),i=e===this._map.getMinZoom();this._zoomInButton.disabled=t,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",t.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())}_rotateCompassArrow(){const e=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=e}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new ii(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){a.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(e,t){const i=a.create("button",e,this._container);return i.type="button",i.addEventListener("click",t),i}_setButtonTitle(e,t){const i=this._map._getUIString("NavigationControl."+t);e.title=i,e.setAttribute("aria-label",i)}},GeolocateControl:class extends e.Evented{constructor(t){super(),this.options=e.extend({},ui,t),e.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}onAdd(t){var i;return this._map=t,this._container=a.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),i=this._setupUI,void 0!==hi?i(hi):void 0!==e.window.navigator.permissions?e.window.navigator.permissions.query({name:"geolocation"}).then(e=>{hi="denied"!==e.state,i(hi)}):(hi=!!e.window.navigator.geolocation,i(hi)),this._container}onRemove(){void 0!==this._geolocationWatchID&&(e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),a.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,di=0,pi=!1}_isOutOfMapMaxBounds(e){const t=this._map.getMaxBounds(),i=e.coords;return t&&(i.longitude<t.getWest()||i.longitude>t.getEast()||i.latitude<t.getSouth()||i.latitude>t.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;
2case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()}}_updateCamera(t){const i=new e.LngLat(t.coords.longitude,t.coords.latitude),n=t.coords.accuracy,a=this._map.getBearing(),r=e.extend({bearing:a},this.options.fitBoundsOptions);this._map.fitBounds(i.toBounds(n),r,{geolocateSource:!0})}_updateMarker(t){if(t){const i=new e.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(i).addTo(this._map),this._userLocationDotMarker.setLngLat(i).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const e=this._map._container.clientHeight/2,t=this._map.unproject([0,e]),i=this._map.unproject([1,e]),n=t.distanceTo(i),a=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=a+"px",this._circleElement.style.height=a+"px"}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_onError(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&pi)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(t){if(this._container.addEventListener("contextmenu",e=>e.preventDefault()),this._geolocateButton=a.create("button","mapboxgl-ctrl-geolocate",this._container),a.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===t){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t)}else{const e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
2se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=a.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new ci(this._dotElement),this._circleElement=a.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ci({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",t=>{t.geolocateSource||"ACTIVE_LOCK"!==this._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new e.Event("trackuserlocationend")))})}trigger(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":di--,pi=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),di++,di>1?(t={maximumAge:6e5,timeout:0},pi=!0):(t=this.options.positionOptions,pi=!1),this._geolocationWatchID=e.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,t)}}else e.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:$r,ScaleControl:class{constructor(t){this.options=e.extend({},fi,t),e.bindAll(["_onMove","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_onMove(){mi(this._map,this._container,this.options)}onAdd(e){return this._map=e,this._container=a.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){a.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}setUnit(e){this.options.unit=e,mi(this._map,this._container,this.options)}},FullscreenControl:class{constructor(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof e.
2window.HTMLElement?this._container=t.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in e.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=a.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){a.remove(this._controlContainer),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!e.window.document.fullscreenEnabled&&!e.window.document.webkitFullscreenEnabled)}_setupUI(){const t=this._fullscreenButton=a.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);a.create("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden",!0),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(e.window.document.fullscreenElement||e.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends e.Evented{constructor(t){super(),this.options=e.extend(Object.create(gi),t),e.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}addTo(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new e.Event("open")),this}isOpen(){return!!this._map}remove(){return this._content&&a.remove(this._content),this._container&&(a.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new e.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(t){return this.setDOMContent(e.window.document.createTextNode(t))}setHTML(t){const i=e.window.document.createDocumentFragment(),n=e.window.document.createElement("body");let a;for(n.innerHTML=t;a=n.firstChild,a;)i.appendChild(a);return this.setDOMContent(i)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=a.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(e){this._container&&this._container.classList.add(e)}removeClassName(e){this._container&&this._container.classList.remove(e)}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){if(this._container)return this._container.classList.toggle(e)}_createCloseButton(){this.options.closeButton&&(this._closeButton=a.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_onMouseUp(e){this._update(e.point)}_onMouseMove(e){this._update(e.point)}_onDrag(e){this._update(e.point)}_update(t){if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(this._container||(this._container=a.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=a.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(e
2=>this._container.classList.add(e)),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=si(this._lngLat,this._pos,this._map.transform)),this._trackPointer&&!t)return;const i=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat);let n=this.options.anchor;const r=function t(i){if(i){if("number"==typeof i){const t=Math.round(Math.sqrt(.5*Math.pow(i,2)));return{center:new e.Point(0,0),top:new e.Point(0,i),"top-left":new e.Point(t,t),"top-right":new e.Point(-t,t),bottom:new e.Point(0,-i),"bottom-left":new e.Point(t,-t),"bottom-right":new e.Point(-t,-t),left:new e.Point(i,0),right:new e.Point(-i,0)}}if(i instanceof e.Point||Array.isArray(i)){const t=e.Point.convert(i);return{center:t,top:t,"top-left":t,"top-right":t,bottom:t,"bottom-left":t,"bottom-right":t,left:t,right:t}}return{center:e.Point.convert(i.center||[0,0]),top:e.Point.convert(i.top||[0,0]),"top-left":e.Point.convert(i["top-left"]||[0,0]),"top-right":e.Point.convert(i["top-right"]||[0,0]),bottom:e.Point.convert(i.bottom||[0,0]),"bottom-left":e.Point.convert(i["bottom-left"]||[0,0]),"bottom-right":e.Point.convert(i["bottom-right"]||[0,0]),left:e.Point.convert(i.left||[0,0]),right:e.Point.convert(i.right||[0,0])}}return t(new e.Point(0,0))}(this.options.offset);if(!n){const e=this._container.offsetWidth,t=this._container.offsetHeight;let a;a=i.y+r.bottom.y<t?["top"]:i.y>this._map.transform.height-t?["bottom"]:[],i.x<e/2?a.push("left"):i.x>this._map.transform.width-e/2&&a.push("right"),n=0===a.length?"bottom":a.join("-")}const o=i.add(r[n]).round();a.setTransform(this._container,`${ai[n]} translate(${o.x}px,${o.y}px)`),oi(this._container,n,"popup")}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const e=this._container.querySelector(yi);e&&e.focus()}_onClose(){this.remove()}},Marker:ci,Style:He,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.Point,MercatorCoordinate:e.MercatorCoordinate,FreeCameraOptions:qn,Evented:e.Evented,config:e.config,prewarm:function(){F().acquire(D)},clearPrewarmedResources:function(){const e=O;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(D),O=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return e.config.ACCESS_TOKEN},set accessToken(t){e.config.ACCESS_TOKEN=t},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(t){e.config.API_URL=t},get workerCount(){return U.workerCount},set workerCount(e){U.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage(t){e.clearTileCache(t)},workerUrl:"",workerClass:null,setNow:e.browser.setNow,restoreNow:e.browser.restoreNow};return vi})),r}()}).call(this,n(45))},2422:function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return t=t||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(JSON.parse(s.responseText))},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var l in s.open(t.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),u.push([t,n]),i[t]=i[t]?i[t]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==t.credentials,t.headers)s.setRequestHeader(l,t.headers[l]);s.send(t.body||null)}))}},2463:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(2464),o=[];function l(e,element){var area=o.find((function(a){return a.Element===element}));area||(area=new r.ScrollableArea(element),o.push(area)),area.SetEventListeners(e),e||(o=o.filter((function(a){return area})))}t.PreventOverScrolling=function(e){l(!0,e)},t.ReEnableOverScrolling=function(e){l(!1,e)}},2464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2465),o=n(2185),l=window,c=function(){function e(e){this.Element=e,this.hasFocus=!1}return e.prototype.SetEventListeners=function(e){var t=this;r.USER_SCROLL_EVENTS.forEach((function(n){e?t.Element.addEventListener(n,t.handleOverScroll.bind(t)):t.Element.removeEventListener(n,t.handleOverScroll.bind(t))})),e?(this.Element.addEventListener("touchstart",this.handleTouchStart.bind(this)),l.addEventListener("keydown",this.handleOverScroll.bind(this)),l.addEventListener("click",this.handleClick.bind(this))):(this.Element.removeEventListener("touchstart",this.handleTouchStart.bind(this)),l.removeEventListener("keydown",this.handleOverScroll.bind(this)),l.removeEventListener("click",this.handleClick.bind(this)))},e.prototype.handleTouchStart=function(e){var t=e.touches[0];this.touchStart={x:t.clientX,y:t.clientY}},e.prototype.handleClick=function(e){var source=e.srcElement;source===this.Element||this.Element.contains(source)?this.hasFocus=!0:this.hasFocus=!1},e.prototype.handleOverScroll=function(e){var t=e.type;if("mousedown"!==t){var n=this.Element.scrollTop,l=void 0;if("keydown"===t){var c=e.srcElement.tagName.toLowerCase(),h=e.keyCode;if(this.hasFocus&&"input"!==c&&"textarea"!==c&&r.USER_SCROLL_KEYBOARD_EVENTS.includes(h))switch(h){case o.EKeyCodes.Up:case o.EKeyCodes.PageUp:case o.EKeyCodes.Home:l=-1;break;default:l=1}}else l="touchmove"===t?this.touchStart.y-e.touches[0].clientY:e.deltaY;l&&(l.toString().includes("-")?0===n&&e.preventDefault():n+this.Element.offsetHeight===this.Element.scrollHeight&&e.preventDefault())}},e}();t.ScrollableArea=c},2465:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2185);t.USER_SCROLL_EVENTS=["mousedown","wheel","DOMMouseScroll","mousewheel","touchmove"],t.USER_SCROLL_KEYBOARD_EVENTS=[r.EKeyCodes.SpaceBar,r.EKeyCodes.PageUp,r.EKeyCodes.PageDown,r.EKeyCodes.End,r.EKeyCodes.Home,r.EKeyCodes.Left,r.EKeyCodes.Up,r.EKeyCodes.Right,r.EKeyCodes.Down]},2466:function(e,t,n){var r;!function(o,l){"use strict";var c="model",h="name",d="type",f="vendor",m="version",A="mobile",y="tablet",v="smarttv",_={extend:function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2==0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},w={rgx:function(e,t){for(var n,r,p,q,o,l,i=0;i<t.length&&!o;){var c=t[i],h=t[i+1];for(n=r=0;n<c.length&&!o;)if(o=c[n++].exec(e))for(p=0;p<h.length;p++)l=o[++r],"object"==typeof(q=h[p])&&q.length>0?2==q.length?"function"==typeof q[1]?this[q[0]]=q[1].call(this,l):this[q[0]]=q[1]:3==q.length?"function"!=typeof q[1]||q[1].exec&&q[1].test?this[q[0]]=l?l.replace(q[1],q[2]):void 0:this[q[0]]=l?q[1].call(this,l,q[2]):void 0:4==q.length&&(this[q[0]]=l?q[3].call(this,l.replace(q[1],q[2])):void 0):this[q]=l||void 0;i+=2}},str:function(e,map){for(var i in map)if("object"==typeof map[i]&&map[i].length>0){for(var t=0;t<map[i].length;t++)if(_.has(map[i][t],e))return"?"===i?void 0:i}else if(_.has(map[i],e))return"?"===i?void 0:i;return e}},x={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},E={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[h,m],[/(opios)[\/\s]+([\w\.]+)/i],[[h,"Opera Mini"],m],[/\s(opr)\/([\w\.]+)/i],[[h,"Opera"],m],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[h,m],[/(konqueror)\/([\w\.]+)/i],[[h,"
2Konqueror"],m],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[h,"IE"],m],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[h,"Edge"],m],[/(yabrowser)\/([\w\.]+)/i],[[h,"Yandex"],m],[/(Avast)\/([\w\.]+)/i],[[h,"Avast Secure Browser"],m],[/(AVG)\/([\w\.]+)/i],[[h,"AVG Secure Browser"],m],[/(puffin)\/([\w\.]+)/i],[[h,"Puffin"],m],[/(focus)\/([\w\.]+)/i],[[h,"Firefox Focus"],m],[/(opt)\/([\w\.]+)/i],[[h,"Opera Touch"],m],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[h,"UCBrowser"],m],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],m],[/(windowswechat qbcore)\/([\w\.]+)/i],[[h,"WeChat(Win) Desktop"],m],[/(micromessenger)\/([\w\.]+)/i],[[h,"WeChat"],m],[/(brave)\/([\w\.]+)/i],[[h,"Brave"],m],[/(qqbrowserlite)\/([\w\.]+)/i],[h,m],[/(QQ)\/([\d\.]+)/i],[h,m],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[h,m],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[h,m],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[h,m],[/(MetaSr)[\/\s]?([\w\.]+)/i],[h],[/(LBBROWSER)/i],[h],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[m,[h,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[m,[h,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[h,m],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[m,[h,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[h,/(.+)/,"$1 WebView"],m],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[h,/(.+(?:g|us))(.+)/,"$1 $2"],m],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[m,[h,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[h,"Sailfish Browser"],m],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[h,m],[/(dolfin)\/([\w\.]+)/i],[[h,"Dolphin"],m],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[h,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[h,"Chrome"],m],[/(coast)\/([\w\.]+)/i],[[h,"Opera Coast"],m],[/fxios\/([\w\.-]+)/i],[m,[h,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[m,[h,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[m,h],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[h,"GSA"],m],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[h,[m,w.str,x.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[h,m],[/(navigator|netscape)\/([\w\.-]+)/i],[[h,"Netscape"],m],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.
vendor: 4,456 bytes, line 2
2+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[h,m]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",_.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",_.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",_.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[c,f,[d,y]],[/applecoremedia\/[\w\.]+ \((ipad)/],[c,[f,"Apple"],[d,y]],[/(apple\s{0,1}tv)/i],[[c,"Apple TV"],[f,"Apple"],[d,v]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[f,c,[d,y]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[c,[f,"Amazon"],[d,y]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[c,w.str,x.device.amazon.model],[f,"Amazon"],[d,A]],[/android.+aft([bms])\sbuild/i],[c,[f,"Amazon"],[d,v]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[c,f,[d,A]],[/\((ip[honed|\s\w*]+);/i],[c,[f,"Apple"],[d,A]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[f,c,[d,A]],[/\(bb10;\s(\w+)/i],[c,[f,"BlackBerry"],[d,A]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[c,[f,"Asus"],[d,y]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[f,"Sony"],[c,"Xperia Tablet"],[d,y]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,"Sony"],[d,A]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[f,c,[d,"console"]],[/android.+;\s(shield)\sbuild/i],[c,[f,"Nvidia"],[d,"console"]],[/(playstation\s[34portablevi]+)/i],[c,[f,"Sony"],[d,"console"]],[/(sprint\s(\w+))/i],[[f,w.str,x.device.sprint.vendor],[c,w.str,x.device.sprint.model],[d,A]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[f,[c,/_/g," "],[d,A]],[/(nexus\s9)/i],[c,[f,"HTC"],[d,y]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[c,[f,"Huawei"],[d,A]],[/android.+(bah2?-a?[lw]\d{2})/i],[c,[f,"Huawei"],[d,y]],[/(microsoft);\s(lumia[\s\w]+)/i],[f,c,[d,A]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[c,[f,"Microsoft"],[d,"console"]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,"Microsoft"],[d,A]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[c,[f,"Motorola"],[d,A]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[c,[f,"Motorola"],[d,y]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[f,_.trim],[c,_.trim],[d,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,"Samsung"],[d,v]],[/\(dtv[\);].+(aquos)/i],[c,[f,"Sharp"],[d,v]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[f,"Samsung"],c,[d,y]],[/smart-tv.+(samsung)/i],[f,[d,v],c],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[f,"Samsung"],c,[d,A]],[/sie-(\w*)/i],[c,[f,"Siemens"],[d,A]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[f,"Nokia"],c,[d,A]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[c,[f,"Acer"],[d,y]],[/android.+([vl]k\-?\d{3})\s+build/i],[c,[f,"LG"],[d,y]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[f,"LG"],c,[d,y]],[/(lg) netcast\.tv/i],[f,c,[d,v]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[c,[f,"LG"],[d,A]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[f,c,[d,y]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[c,[f,"Lenovo"],[d,y]],[/(lenovo)[_\s-]?([\w-]+)/i],[f,c,[d,A]],[/linux;.+((jolla));/i],[f,c,[d,A]],[/((pebble))app\/[\d\.]+\s/i],[f,c,[d,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[f,c,[d,A]],[/crkey/i],[[c,"Chromecast"],[f,"Google"],[d,v]],[/android.+;\s(glass)\s\d/i],[c,[f,"Google"],[d,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[c,[f,"Google"],[d,y]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[c,[f,"Google"],[d,A]],[/android.+;
vendor: 2,977 bytes, line 2
2\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[c,/_/g," "],[f,"Xiaomi"],[d,A]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[c,/_/g," "],[f,"Xiaomi"],[d,y]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[c,[f,"Meizu"],[d,A]],[/(mz)-([\w-]{2,})/i],[[f,"Meizu"],c,[d,A]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[c,[f,"OnePlus"],[d,A]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[c,[f,"RCA"],[d,y]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[c,[f,"Dell"],[d,y]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[c,[f,"Verizon"],[d,y]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[f,"Barnes & Noble"],c,[d,y]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[c,[f,"NuVision"],[d,y]],[/android.+;\s(k88)\sbuild/i],[c,[f,"ZTE"],[d,y]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[c,[f,"Swiss"],[d,A]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[c,[f,"Swiss"],[d,y]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[c,[f,"Zeki"],[d,y]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[f,"Dragon Touch"],c,[d,y]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[c,[f,"Insignia"],[d,y]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[c,[f,"NextBook"],[d,y]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[f,"Voice"],c,[d,A]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[f,"LvTel"],c,[d,A]],[/android.+;\s(PH-1)\s/i],[c,[f,"Essential"],[d,A]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[c,[f,"Envizen"],[d,y]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[f,c,[d,y]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[c,[f,"MachSpeed"],[d,y]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[f,c,[d,y]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[c,[f,"Rotor"],[d,y]],[/android.+(KS(.+))\s+build/i],[c,[f,"Amazon"],[d,y]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[f,c,[d,y]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[d,_.lowerize],f,c],[/[\s\/\(](smart-?tv)[;\)]/i],[[d,v]],[/(android[\w\.\s\-]{0,9});.+build/i],[c,[f,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[m,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[h,m],[/rv\:([\w\.]{1,9}).+(gecko)/i],[m,h]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[h,m],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[h,[m,w.str,x.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[h,"Windows"],[m,w.str,x.os.windows.version]],[/\((bb)(10);
2/i],[[h,"BlackBerry"],m],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[h,m],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[h,"Symbian"],m],[/\((series40);/i],[h],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[h,"Firefox OS"],m],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[h,m],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[h,"Chromium OS"],m],[/(sunos)\s?([\w\.\d]*)/i],[[h,"Solaris"],m],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[h,m],[/(haiku)\s(\w+)/i],[h,m],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[m,/_/g,"."],[h,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[h,"Mac OS"],[m,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[h,m]]},C=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof C))return new C(e,t).getResult();var n=e||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),r=t?_.extend(E,t):E;return this.getBrowser=function(){var e={name:void 0,version:void 0};return w.rgx.call(e,n,r.browser),e.major=_.major(e.version),e},this.getCPU=function(){var e={architecture:void 0};return w.rgx.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return w.rgx.call(e,n,r.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return w.rgx.call(e,n,r.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return w.rgx.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};C.VERSION="0.7.21",C.BROWSER={NAME:h,MAJOR:"major",VERSION:m},C.CPU={ARCHITECTURE:"architecture"},C.DEVICE={MODEL:c,VENDOR:f,TYPE:d,CONSOLE:"console",MOBILE:A,SMARTTV:v,TABLET:y,WEARABLE:"wearable",EMBEDDED:"embedded"},C.ENGINE={NAME:h,VERSION:m},C.OS={NAME:h,VERSION:m},void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=C),t.UAParser=C):void 0===(r=function(){return C}.call(t,n,t,e))||(e.exports=r);var S=o&&(o.jQuery||o.Zepto);if(S&&!S.ua){var T=new C;S.ua=T.getResult(),S.ua.get=function(){return T.getUA()},S.ua.set=function(e){T.setUA(e);var t=T.getResult();for(var n in t)S.ua[n]=t[n]}}}("object"==typeof window?window:this)},2469:function(e,t,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,l=r(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?e(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return e(!1)})):e(!1))}};e.exports=r},2470:function(e,t,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,l=r(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return e(!1)})):e(!1))}};e.exports=r},2490:function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},2491:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQgAAABYCAQAAACjBqE3AAAB6klEQVR4Ae3bsWpUQRTG8YkkanwCa7GzVotsI/gEgk9h4Vu4ySLYmMYgbJrc3lrwZbJwC0FMt4
2j7F6Y4oIZrsXtgxvx/1c0ufEX4cnbmLCmSJEmSJEmSJEmSJP3XCBPvbJU+8doWmDFwyZpLBmYlNJebz0KwzykwsuSYJSNwykEJreV2BaBMaLIQZ2xYcFgqDlmw4ayE/FwL0dDk4Qh4W37DAjgqIT+3HRbigjH+iikVdxgZStgyN0Su2sXIeTwTT+esdpcbIlfNAuZ/TxresG4zV8kYWSZNiKUTokMMSWeIwTNEn4fK2TW3gRNgVkJLuVksROA9G+bEvoATNlBCa7nZXEwdxEZxzpKRKFh+bsv8LmPFmhX1OwfIz81jIRJQ5eeqG9B+riRJkiRJkiRJkiRJkiRJkiRJUkvA/8RQoEpKlJWINFkJ62AlrEP/mNBibnv2yz/A3t7Uq3LcpoxP8COjC1T5vxoAD5VdoEqdDrd5QuW1swtUSaueh3zkiuBiqgtA2OlkeMcP/uDqugsJdbjHF65VdPMKwS0+WQc/MgKvrIOHysB9vgPwk8+85hmPbnQdvHZyDMAFD7L3EOpgMcVdvnHFS0/vlatrXvCVx0U9gt3fxvnA0/hB4nmRJEmSJEmSJEmSJGmHfgFLaDPoMu5xWwAAAABJRU5ErkJggg=="},2492:function(e,t,n){e.exports=n.p+"img/b257fa9.svg"},2493:function(e,t){e.exports="data:image/gif;base64,R0lGODlhFAAUAPMIAIeHhz8/P1dXVycnJ8/Pz7e3t5+fn29vb////wAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBwAIACwAAAAAFAAUAEAEUxDJSatFxtwaggWAdIyHJAhXoRYSQUhDPGx0TbmujahbXGWZWqdDAYEsp5NupLPkdDwE7oXwWVasimzWrAE1tKFHErQRK8eL8mMUlRBJVI307uoiACH5BAUHAAgALAEAAQASABIAAAROEMkpS6E4W5upMdUmEQT2feFIltMJYivbvhnZ3R0A4NMwIDodz+cL7nDEn5CH8DGZh8MtEMBEoxkqlXKVIgQCibbK9YLBYvLtHH5K0J0IACH5BAUHAAgALAEAAQASABIAAAROEMkpjaE4W5spANUmFQX2feFIltMJYivbvhnZ3d1x4BNBIDodz+cL7nDEn5CH8DGZAsFtMMBEoxkqlXKVIgIBibbK9YLBYvLtHH5K0J0IACH5BAUHAAgALAEAAQASABIAAAROEMkpAaA4W5vpOdUmGQb2feFIltMJYivbvhnZ3Z0g4FNRIDodz+cL7nDEn5CH8DGZgcCNQMBEoxkqlXKVIgYDibbK9YLBYvLtHH5K0J0IACH5BAUHAAgALAEAAQASABIAAAROEMkpz6E4W5upENUmAQD2feFIltMJYivbvhnZ3V0Q4JNhIDodz+cL7nDEn5CH8DGZg8GtUMBEoxkqlXKVIggEibbK9YLBYvLtHH5K0J0IACH5BAUHAAgALAEAAQASABIAAAROEMkphaA4W5tpCNUmHQf2feFIltMJYivbvhnZ3d0w4BMAIDodz+cL7nDEn5CH8DGZBMLNYMBEoxkqlXKVIgoFibbK9YLBYvLtHH5K0J0IACH5BAUHAAgALAEAAQASABIAAAROEMkpQ6A4W5vpGNUmCQL2feFIltMJYivbvhnZ3R1B4NNxIDodz+cL7nDEn5CH8DGZhcINAMBEoxkqlXKVIgwGibbK9YLBYvLtHH5K0J0IACH5BAUHAAcALAEAAQASABIAAANCeLo6wzA6FxkhbaoQ4L3ZxnXLh0EjWZ4RV71VUcCLIByyTNt2PsO8m452sBGJBsNxkUwuD03lAQBASqnUJ7aq5UYSADs="},2494:function(e,t,n){e.exports=n.p+"fonts/eb5a32f.eot"},2495:function(e,t,n){e.exports=n.p+"fonts/4b2ea5c.woff2"},2496:function(e,t,n){e.exports=n.p+"fonts/2295342.woff"},2497:function(e,t,n){e.exports=n.p+"fonts/1dc94b2.ttf"},2498:function(e,t,n){e.exports=n.p+"img/93730ec.svg"},2499:function(e,t,n){e.exports=n.p+"fonts/58bb2ae.eot"},2500:function(e,t,n){e.exports=n.p+"fonts/f849cc8.woff2"},2501:function(e,t,n){e.exports=n.p+"fonts/bc22bac.woff"},2502:function(e,t,n){e.exports=n.p+"fonts/6c98094.ttf"},2503:function(e,t,n){e.exports=n.p+"img/8d9ea4e.svg"},2504:function(e,t,n){e.exports=n.p+"fonts/2fb6ee0.eot"},2505:function(e,t,n){e.exports=n.p+"fonts/e748e23.woff2"},2506:function(e,t,n){e.exports=n.p+"fonts/dc5f9ba.woff"},2507:function(e,t,n){e.exports=n.p+"fonts/394a3b3.ttf"},2508:function(e,t,n){e.exports=n.p+"img/ea724b8.svg"},2509:function(e,t,n){e.exports=n.p+"fonts/a0e38ac.eot"},2510:function(e,t,n){e.exports=n.p+"fonts/4654799.woff2"},2511:function(e,t,n){e.exports=n.p+"fonts/8855e23.woff"},2512:function(e,t,n){e.exports=n.p+"fonts/87b4e0d.ttf"},2513:function(e,t,n){e.exports=n.p+"img/e903c17.svg"},2514:function(e,t,n){e.exports=n.p+"fonts/68c09b7.eot"},2515:function(e,t,n){e.exports=n.p+"fonts/5e779c2.woff2"},2516:function(e,t,n){e.exports=n.p+"fonts/91d9717.ttf"},2517:function(e,t,n){e.exports=n.p+"fonts/60c6b4b.woff"},2518:function(e,t,n){e.exports=n.p+"img/f2ac177.svg"},2519:function(e,t,n){e.exports=n.p+"fonts/eb5a32f.eot"},2520:function(e,t,n){e.exports=n.p+"fonts/4b2ea5c.woff2"},2521:function(e,t,n){e.exports=n.p+"fonts/2295342.woff"},2522:function(e,t,n){e.exports=n.p+"fonts/1dc94b2.ttf"},2523:function(e,t,n){e.exports=n.p+"img/93730ec.svg"},2524:function(e,t,n){e.exports=n.p+"fonts/58bb2ae.eot"},2525:function(e,t,n){e.exports=n.p+"fonts/f849cc8.woff2"},2526:function(e,t,n){e.exports=n.p+"fonts/bc22bac.woff"},2527:function(e,t,n){e.exports=n.p+"fonts/6c98094.ttf"},2528:function(e,t,n){e.exports=n.p+"img/8d9ea4e.svg"},2529:function(e,t,n){e.exports=n.p+"fonts/2fb6ee0.eot"},2530:function(e,t,n){e.exports=n.p+"fonts/e748e23.woff2"},2531:function(e,t,n){e.exports=n.p+"fonts/dc5f9ba.woff"},2532:function(e,t,n){e.exports=n.p+"fonts/394a3b3.ttf"},2533:function(e,t,n){e.exports=n.p+"img/ea724b8.svg"},2534:function(e,t,n){e.exports=n.p+"fonts/a0e38ac.eot"},2535:function(e,t,n){e.exports=n.p+"fonts/4654799.woff2"},2536:function(e,t,n){e.exports=n.p+"fonts/8855e23.woff"},2537:function(e,t,n){e.exports=n.p+"fonts/87b4e0d.ttf"},2538:function(e,t,n){e.exports=n.p+"img/e903c17.svg"},2539:function(e,t,n){e.exports=n.p+"fonts/68c09b7.eot"},2540:function(e,t,n){e.exports=n.p+"fonts/5e779c2.woff2"},2541:function(e,t,n){e.exports=n.p+"fonts/91d9717.ttf"},2542:function(e,t,n){e.exports=n.p+"fonts/60c6b4b.woff"},2543:function(e,t,n){e.exports=n.p+"img/f2ac177.svg"},26:function(e,t,n){"use strict";var r,o,l,c,h,d,f,m=n(2854),A=n(2247),y=n(2855),v=n(41),_=Array.prototype.every,w=Array.prototype.push,x=Object.getPrototypeOf,E=0;
2c=function(e){h._names.forEach((function(t){e[t]=function(){return x(e)[t].apply(e,arguments)}})),e.returnsPromise=!0,e.resolved=x(e).resolved},d=function(e,t){var n=function(e,t){return n.then(e,t)};return n.value=e,n.failed=t,y?y(n,h._resolved):c(n),o._profile&&o._profile(!0),n},(r=function(){var e=function(t,n){return e.then(t,n)};E||(l=setTimeout(A,1e9)),++E,o._monitor&&(e.monitor=o._monitor()),y?y(e,h._unresolved):c(e),o._profile&&o._profile(),this.promise=e,this.resolve=this.resolve.bind(this),this.reject=this.reject.bind(this)}).prototype={resolved:!1,_settle:function(e){var i,t,data,n,r,o;for(this.promise.value=e,y?y(this.promise,h._resolved):this.promise.resolved=!0,n=this.promise.dependencies,delete this.promise.dependencies;n;){for(i=0;r=n[i];++i)r.value=e,r.failed=this.failed,y?y(r,h._resolved):r.resolved=!0,delete r.pending,r.dependencies&&(o?w.apply(o,r.dependencies):o=r.dependencies,delete r.dependencies);n=o,o=null}if(data=this.promise.pending){for(i=0;t=data[i];++i)h._onresolve[t].apply(this.promise,data[++i]);delete this.promise.pending}return this.promise},resolve:function(e){if(this.resolved)return this.promise;if(this.resolved=!0,--E||clearTimeout(l),this.promise.monitor&&clearTimeout(this.promise.monitor),e=f(e),v(e)){if(!e.resolved)return e.dependencies||(e.dependencies=[]),e.dependencies.push(this.promise),this.promise.pending?e.pending?(this.promise.pending.forEach((function(t){e.pending.push(t)})),this.promise.pending=e.pending,this.promise.dependencies&&this.promise.dependencies.forEach((function t(n){n.pending=e.pending,n.dependencies&&n.dependencies.forEach(t)}))):e.pending=this.promise.pending:e.pending?this.promise.pending=e.pending:this.promise.pending=e.pending=[],this.promise;this.promise.failed=e.failed,e=e.value}return this._settle(e)},reject:function(e){return this.resolved?this.promise:(this.resolved=!0,--E||clearTimeout(l),this.promise.monitor&&clearTimeout(this.promise.monitor),this.promise.failed=!0,this._settle(e))}},e.exports=o=function(e){var t,n,o,l,c=arguments.length;return c?c>1?(t=new r,n=0,l=new Array(c),_.call(arguments,(function(e,r){return e=f(e),v(e)?e.resolved?e.failed?(t.reject(e.value),!1):(l[r]=e.value,!0):(++n,e.done((function(e){l[r]=e,!--n&&o&&t.resolve(l)}),t.reject),!0):(l[r]=e,!0)})),o=!0,n||t.resolve(l),t.promise):(e=f(e),v(e)?e:d(e,m(e))):new r},o.Deferred=r,o.reject=function(e){return d(e,!0)},o.resolve=function(e){return e=f(e),v(e)?e:d(e,!1)},h=n(2857),f=n(91)},2665:function(e,t,n){"use strict";n(19),n(5),n(22),n(51),n(34),n(12),n(14),n(52),n(6),Object.defineProperty(t,"__esModule",{value:!0}),t.$=l,t.addClass=function(e){if(void 0===e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.add(t[i]);return this},t.removeClass=function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.remove(t[i]);return this},t.hasClass=function(e){return!!this[0]&&this[0].classList.contains(e)},t.toggleClass=function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.toggle(t[i]);return this},t.attr=function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(e,t);else for(var n in e)this[i][n]=e[n],this[i].setAttribute(n,e[n]);return this},t.removeAttr=function(e){for(var i=0;i<this.length;i+=1)this[i].removeAttribute(e);return this},t.prop=function(e,t){if(1!==arguments.length||"string"!=typeof e){for(var i=0;i<this.length;i+=1)if(2===arguments.length)this[i][e]=t;else for(var n in e)this[i][n]=e[n];return this}if(this[0])return this[0][e]},t.data=function(e,t){var n;if(void 0===t){if(n=this[0]){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];var r=n.getAttribute("data-".concat(e));return r||void 0}return}for(var i=0;i<this.length;i+=1)(n=this[i]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this},t.removeData=function(e){for(var i=0;i<this.length;i+=1){var t=this[i];t.dom7ElementDataStorage&&t.dom7ElementDataStorage[e]&&(t.dom7ElementDataStorage[e]=null,delete t.dom7ElementDataStorage[e])}},t.dataset=function(){var e=this[0];if(!e)return;var t={};if(e.dataset)for(var n in e.dataset)t[n]=e.dataset[n];else for(var i=0;i<e.attributes.length;i+=1){var r=e.attributes[i];r.name.indexOf("data-")>=0&&(t[(o=r.name.split("data-")[1],o.toLowerCase().replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=r.value)}var o;for(var l in t)"false"===t[l]?t[l]=!1:"true"===t[l]?t[l]=!0:parseFloat(t[l])===1*t[l]&&(t[l]*=1);return t},t.val=function(e){if(void 0===e){if(this[0]){if(this[0].multiple&&"select"===this[0].nodeName.toLowerCase()){for(var t=[],i=0;i<this[0].selectedOptions.length;i+=1)t.push(this[0].selectedOptions[i].value);return t}return this[0].value}return}for(var n=0;n<this.length;n+=1){var r=this[n];if(Array.isArray(e)&&r.multiple&&"select"===r.nodeName.toLowerCase())for(var o=0;o<r.options.length;
2o+=1)r.options[o].selected=e.indexOf(r.options[o].value)>=0;else r.value=e}return this},t.transform=function(e){for(var i=0;i<this.length;i+=1){var t=this[i].style;t.webkitTransform=e,t.transform=e}return this},t.transition=function(e){"string"!=typeof e&&(e="".concat(e,"ms"));for(var i=0;i<this.length;i+=1){var t=this[i].style;t.webkitTransitionDuration=e,t.transitionDuration=e}return this},t.on=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var[r,o,c,h]=t;"function"==typeof t[1]&&([r,c,h]=t,o=void 0);h||(h=!1);function d(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),l(t).is(o))c.apply(t,n);else for(var r=l(t).parents(),h=0;h<r.length;h+=1)l(r[h]).is(o)&&c.apply(r[h],n)}}function f(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),c.apply(this,t)}for(var m,A=r.split(" "),i=0;i<this.length;i+=1){var y=this[i];if(o)for(m=0;m<A.length;m+=1){var v=A[m];y.dom7LiveListeners||(y.dom7LiveListeners={}),y.dom7LiveListeners[v]||(y.dom7LiveListeners[v]=[]),y.dom7LiveListeners[v].push({listener:c,proxyListener:d}),y.addEventListener(v,d,h)}else for(m=0;m<A.length;m+=1){var _=A[m];y.dom7Listeners||(y.dom7Listeners={}),y.dom7Listeners[_]||(y.dom7Listeners[_]=[]),y.dom7Listeners[_].push({listener:c,proxyListener:f}),y.addEventListener(_,f,h)}}return this},t.off=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var[r,o,l,c]=t;"function"==typeof t[1]&&([r,l,c]=t,o=void 0);c||(c=!1);for(var h=r.split(" "),i=0;i<h.length;i+=1)for(var d=h[i],f=0;f<this.length;f+=1){var m=this[f],A=void 0;if(!o&&m.dom7Listeners?A=m.dom7Listeners[d]:o&&m.dom7LiveListeners&&(A=m.dom7LiveListeners[d]),A&&A.length)for(var y=A.length-1;y>=0;y-=1){var v=A[y];l&&v.listener===l||l&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===l?(m.removeEventListener(d,v.proxyListener,c),A.splice(y,1)):l||(m.removeEventListener(d,v.proxyListener,c),A.splice(y,1))}}return this},t.once=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var[o,l,c,h]=n;"function"==typeof n[1]&&([o,c,h]=n,l=void 0);function d(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];c.apply(this,n),e.off(o,l,d,h),d.dom7proxy&&delete d.dom7proxy}return d.dom7proxy=c,e.on(o,l,d,h)},t.trigger=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var o=t[0].split(" "),l=t[1],i=0;i<o.length;i+=1)for(var c=o[i],h=0;h<this.length;h+=1){var d=this[h],f=void 0;try{f=new r.window.CustomEvent(c,{detail:l,bubbles:!0,cancelable:!0})}catch(e){(f=r.document.createEvent("Event")).initEvent(c,!0,!0),f.detail=l}d.dom7EventData=t.filter((data,e)=>e>0),d.dispatchEvent(f),d.dom7EventData=[],delete d.dom7EventData}return this},t.transitionEnd=function(e){var i,t=["webkitTransitionEnd","transitionend"],n=this;function r(o){if(o.target===this)for(e.call(this,o),i=0;i<t.length;i+=1)n.off(t[i],r)}if(e)for(i=0;i<t.length;i+=1)n.on(t[i],r);return this},t.animationEnd=function(e){var i,t=["webkitAnimationEnd","animationend"],n=this;function r(o){if(o.target===this)for(e.call(this,o),i=0;i<t.length;i+=1)n.off(t[i],r)}if(e)for(i=0;i<t.length;i+=1)n.on(t[i],r);return this},t.width=function(){if(this[0]===r.window)return r.window.innerWidth;if(this.length>0)return parseFloat(this.css("width"));return null},t.outerWidth=function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},t.height=function(){if(this[0]===r.window)return r.window.innerHeight;if(this.length>0)return parseFloat(this.css("height"));return null},t.outerHeight=function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},t.offset=function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),body=r.document.body,n=e.clientTop||body.clientTop||0,o=e.clientLeft||body.clientLeft||0,l=e===r.window?r.window.scrollY:e.scrollTop,c=e===r.window?r.window.scrollX:e.scrollLeft;return{top:t.top+l-n,left:t.left+c-o}}return null},t.hide=function(){for(var i=0;i<this.length;i+=1)this[i].style.display="none";return this},t.show=function(){for(var i=0;i<this.length;i+=1){var e=this[i];"none"===e.style.display&&(e.style.display=""),"none"===r.window.getComputedStyle(e,null).getPropertyValue("display")&&(e.style.display="block")}return this},t.styles=function(){return this[0]?r.window.getComputedStyle(this[0],null):{}},t.css=function(e,t){var i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(var n in e)this[i].style[n]=e[n];return this}if(this[0])return r.window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(i=0;i<this.length;i+=1)this[i].style[e]=t;return this}return this},t.toArray=function(){for(var e=[],i=0;i<this.length;
2i+=1)e.push(this[i]);return e},t.each=function(e){if(!e)return this;for(var i=0;i<this.length;i+=1)if(!1===e.call(this[i],i,this[i]))return this;return this},t.forEach=function(e){if(!e)return this;for(var i=0;i<this.length;i+=1)if(!1===e.call(this[i],this[i],i))return this;return this},t.filter=function(e){for(var t=[],i=0;i<this.length;i+=1)e.call(this[i],i,this[i])&&t.push(this[i]);return new o(t)},t.map=function(e){for(var t=[],i=0;i<this.length;i+=1)t.push(e.call(this[i],i,this[i]));return new o(t)},t.html=function(html){if(void 0===html)return this[0]?this[0].innerHTML:void 0;for(var i=0;i<this.length;i+=1)this[i].innerHTML=html;return this},t.text=function(text){if(void 0===text)return this[0]?this[0].textContent.trim():null;for(var i=0;i<this.length;i+=1)this[i].textContent=text;return this},t.is=function(e){var t,i,n=this[0];if(!n||void 0===e)return!1;if("string"==typeof e){if(n.matches)return n.matches(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);for(t=l(e),i=0;i<t.length;i+=1)if(t[i]===n)return!0;return!1}if(e===r.document)return n===r.document;if(e===r.window)return n===r.window;if(e.nodeType||e instanceof o){for(t=e.nodeType?[e]:e,i=0;i<t.length;i+=1)if(t[i]===n)return!0;return!1}return!1},t.indexOf=function(e){for(var i=0;i<this.length;i+=1)if(this[i]===e)return i;return-1},t.index=function(){var i,e=this[0];if(e){for(i=0;null!==(e=e.previousSibling);)1===e.nodeType&&(i+=1);return i}return},t.eq=function(e){if(void 0===e)return this;var t,n=this.length;if(e>n-1)return new o([]);if(e<0)return new o((t=n+e)<0?[]:[this[t]]);return new o([this[e]])},t.append=function(){for(var e,t=0;t<arguments.length;t+=1){e=t<0||arguments.length<=t?void 0:arguments[t];for(var i=0;i<this.length;i+=1)if("string"==typeof e){var n=r.document.createElement("div");for(n.innerHTML=e;n.firstChild;)this[i].appendChild(n.firstChild)}else if(e instanceof o)for(var l=0;l<e.length;l+=1)this[i].appendChild(e[l]);else this[i].appendChild(e)}return this},t.appendTo=function(e){return l(e).append(this),this},t.prepend=function(e){var i,t;for(i=0;i<this.length;i+=1)if("string"==typeof e){var n=r.document.createElement("div");for(n.innerHTML=e,t=n.childNodes.length-1;t>=0;t-=1)this[i].insertBefore(n.childNodes[t],this[i].childNodes[0])}else if(e instanceof o)for(t=0;t<e.length;t+=1)this[i].insertBefore(e[t],this[i].childNodes[0]);else this[i].insertBefore(e,this[i].childNodes[0]);return this},t.prependTo=function(e){return l(e).prepend(this),this},t.insertBefore=function(e){for(var t=l(e),i=0;i<this.length;i+=1)if(1===t.length)t[0].parentNode.insertBefore(this[i],t[0]);else if(t.length>1)for(var n=0;n<t.length;n+=1)t[n].parentNode.insertBefore(this[i].cloneNode(!0),t[n])},t.insertAfter=function(e){for(var t=l(e),i=0;i<this.length;i+=1)if(1===t.length)t[0].parentNode.insertBefore(this[i],t[0].nextSibling);else if(t.length>1)for(var n=0;n<t.length;n+=1)t[n].parentNode.insertBefore(this[i].cloneNode(!0),t[n].nextSibling)},t.next=function(e){if(this.length>0)return e?this[0].nextElementSibling&&l(this[0].nextElementSibling).is(e)?new o([this[0].nextElementSibling]):new o([]):this[0].nextElementSibling?new o([this[0].nextElementSibling]):new o([]);return new o([])},t.nextAll=function(e){var t=[],n=this[0];if(!n)return new o([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?l(r).is(e)&&t.push(r):t.push(r),n=r}return new o(t)},t.prev=function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&l(t.previousElementSibling).is(e)?new o([t.previousElementSibling]):new o([]):t.previousElementSibling?new o([t.previousElementSibling]):new o([])}return new o([])},t.prevAll=function(e){var t=[],n=this[0];if(!n)return new o([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?l(r).is(e)&&t.push(r):t.push(r),n=r}return new o(t)},t.siblings=function(e){return this.nextAll(e).add(this.prevAll(e))},t.parent=function(e){for(var t=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?l(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return l(c(t))},t.parents=function(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].parentNode;n;)e?l(n).is(e)&&t.push(n):t.push(n),n=n.parentNode;return l(c(t))},t.closest=function(e){var t=this;if(void 0===e)return new o([]);t.is(e)||(t=t.parents(e).eq(0));return t},t.find=function(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].querySelectorAll(e),r=0;r<n.length;r+=1)t.push(n[r]);return new o(t)},t.children=function(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].childNodes,r=0;r<n.length;r+=1)e?1===n[r].nodeType&&l(n[r]).is(e)&&t.push(n[r]):1===n[r].nodeType&&t.push(n[r]);return new o(c(t))},t.remove=function(){for(var i=0;i<this.length;i+=1)this[i].parentNode&&this[i].parentNode.removeChild(this[i]);return this},t.detach=function(){return this.remove()},t.add=function(){for(var i,e,t=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(i=0;i<r.length;i+=1){var c=l(r[i]);for(e=0;e<c.length;e+=1)t[t.length]=c[e],t.length+=1}return t},t.empty=function(){for(var i=0;i<this.length;i+=1){var e=this[i];if(1===e.nodeType){for(var t=0;t<e.childNodes.length;t+=1)e.childNodes[t].parentNode&&e.childNodes[t].parentNode.removeChild(e.childNodes[t]);e.textContent=""}}return this},t.scrollTo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var[r,o,l,c,d]=t;4===t.length&&"function"==typeof c&&(d=c,[r,o,l,d,c]=t);void 0===c&&(c="swing");return this.each((function(){var e,t,n,f,m,A,y,v,_=this,w=o>0||0===o,x=r>0||0===r;if(void 0===c&&(c="swing"),w&&(e=_.scrollTop,l||(_.scrollTop=o)),x&&(t=_.scrollLeft,l||(_.scrollLeft=r)),l){w&&(n=_.scrollHeight-_.offsetHeight,m=Math.max(Math.min(o,n),0)),x&&(f=_.scrollWidth-_.offsetWidth,A=Math.max(Math.min(r,f),0));var E=null;w&&m===e&&(w=!1),x&&A===t&&(x=!1),h((function n(){var time=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getTime();null===E&&(E=time);var r,progress=Math.max(Math.min((time-E)/l,1),0),o="linear"===c?progress:.5-Math.cos(progress*Math.PI)/2;w&&(y=e+o*(m-e)),x&&(v=t+o*(A-t)),w&&m>e&&y>=m&&(_.scrollTop=m,r=!0),w&&m<e&&y<=m&&(_.scrollTop=m,r=!0),x&&A>t&&v>=A&&(_.scrollLeft=A,r=!0),x&&A<t&&v<=A&&(_.scrollLeft=A,r=!0),r?d&&d():(w&&(_.scrollTop=y),x&&(_.scrollLeft=v),h(n))}))}}))},t.scrollTop=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var[r,o,l,c]=t;3===t.length&&"function"==typeof l&&([r,o,c,l]=t);var h=this;if(void 0===r)return h.length>0?h[0].scrollTop:null;return h.scrollTo(void 0,r,o,l,c)},t.scrollLeft=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var[r,o,l,c]=t;3===t.length&&"function"==typeof l&&([r,o,c,l]=t);var h=this;if(void 0===r)return h.length>0?h[0].scrollLeft:null;return h.scrollTo(r,void 0,o,l,c)},t.animate=function(e,t){var n,o=this,a={props:Object.assign({},e),params:Object.assign({duration:300,easing:"swing"},t),elements:o,animating:!1,que:[],easingProgress:(e,progress)=>"swing"===e?.5-Math.cos(progress*Math.PI)/2:"function"==typeof e?e(progress):progress,stop(){a.frameId&&function(e){if(r.window.cancelAnimationFrame)return r.window.cancelAnimationFrame(e);
2if(r.window.webkitCancelAnimationFrame)return r.window.webkitCancelAnimationFrame(e);r.window.clearTimeout(e)}(a.frameId),a.animating=!1,a.elements.each((e,t)=>{delete t.dom7AnimateInstance}),a.que=[]},done(e){if(a.animating=!1,a.elements.each((e,t)=>{delete t.dom7AnimateInstance}),e&&e(o),a.que.length>0){var t=a.que.shift();a.animate(t[0],t[1])}},animate(e,t){if(a.animating)return a.que.push([e,t]),a;var n=[];a.elements.each((t,o)=>{var l,c,h,d,f;o.dom7AnimateInstance||(a.elements[t].dom7AnimateInstance=a),n[t]={container:o},Object.keys(e).forEach(m=>{l=r.window.getComputedStyle(o,null).getPropertyValue(m).replace(",","."),c=parseFloat(l),h=l.replace(c,""),d=parseFloat(e[m]),f=e[m]+h,n[t][m]={initialFullValue:l,initialValue:c,unit:h,finalValue:d,finalFullValue:f,currentValue:c}})});var time,l,c=null,d=0,f=0,m=!1;return a.animating=!0,a.frameId=h((function r(){var progress,A;time=(new Date).getTime(),m||(m=!0,t.begin&&t.begin(o)),null===c&&(c=time),t.progress&&t.progress(o,Math.max(Math.min((time-c)/t.duration,1),0),c+t.duration-time<0?0:c+t.duration-time,c),n.forEach(element=>{var r=element;l||r.done||Object.keys(e).forEach(o=>{if(!l&&!r.done){progress=Math.max(Math.min((time-c)/t.duration,1),0),A=a.easingProgress(t.easing,progress);var{initialValue:h,finalValue:m,unit:y}=r[o];r[o].currentValue=h+A*(m-h);var v=r[o].currentValue;(m>h&&v>=m||m<h&&v<=m)&&(r.container.style[o]=m+y,(f+=1)===Object.keys(e).length&&(r.done=!0,d+=1),d===n.length&&(l=!0)),l?a.done(t.complete):r.container.style[o]=v+y}})}),l||(a.frameId=h(r))})),a}};if(0===a.elements.length)return o;for(var i=0;i<a.elements.length;i+=1)a.elements[i].dom7AnimateInstance?n=a.elements[i].dom7AnimateInstance:a.elements[i].dom7AnimateInstance=a;n||(n=a);"stop"===e?n.stop():n.animate(a.props,a.params);return o},t.stop=function(){for(var i=0;i<this.length;i+=1)this[i].dom7AnimateInstance&&this[i].dom7AnimateInstance.stop()},t.click=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("click",...t)},t.blur=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("blur",...t)},t.focus=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("focus",...t)},t.focusin=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("focusin",...t)},t.focusout=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("focusout",...t)},t.keyup=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("keyup",...t)},t.keydown=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("keydown",...t)},t.keypress=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("keypress",...t)},t.submit=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("submit",...t)},t.change=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("change",...t)},t.mousedown=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("mousedown",...t)},t.mousemove=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("mousemove",...t)},t.mouseup=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("mouseup",...t)},t.mouseenter=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("mouseenter",...t)},t.mouseleave=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("mouseleave",...t)},t.mouseout=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("mouseout",...t)},t.mouseover=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("mouseover",...t)},t.touchstart=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("touchstart",...t)},t.touchend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("touchend",...t)},t.touchmove=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("touchmove",...t)},t.resize=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("resize",...t)},t.scroll=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.bind(this)("scroll",...t)};var r=n(2208);class o{constructor(e){for(var i=0;i<e.length;i+=1)this[i]=e[i];return this.length=e.length,this}}function l(e,t){var n=[],i=0;if(e&&!t&&e instanceof o)return e;if(e)if("string"==typeof e){var l,c,h=e.trim();if(h.indexOf("<")>=0&&h.indexOf(">")>=0){var d="div";for(0===h.indexOf("<li")&&(d="ul"),0===h.indexOf("<tr")&&(d="tbody"),0!==h.indexOf("<td")&&0!==h.indexOf("<th")||(d="tr"),0===h.indexOf("<tbody")&&(d="table"),0===h.indexOf("<option")&&(d="select"),(c=r.document.createElement(d)).innerHTML=h,i=0;i<c.childNodes.length;i+=1)n.push(c.childNodes[i])}else for(l=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||r.document).querySelectorAll(e.trim()):[r.document.getElementById(e.trim().split("#")[1])],i=0;i<l.length;i+=1)l[i]&&n.push(l[i])}else if(e.nodeType||e===r.window||e===r.document)n.push(e);else if(e.length>0&&e[0].nodeType)for(i=0;i<e.length;i+=1)n.push(e[i]);return new o(n)}function c(e){for(var t=[],i=0;i<e.length;
2i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}function h(e){return r.window.requestAnimationFrame?r.window.requestAnimationFrame(e):r.window.webkitRequestAnimationFrame?r.window.webkitRequestAnimationFrame(e):r.window.setTimeout(e,1e3/60)}l.fn=o.prototype,l.Class=o,l.Dom7=o;var d="resize scroll".split(" ");function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(void 0===n[0]){for(var i=0;i<this.length;i+=1)d.indexOf(e)<0&&(e in this[i]?this[i][e]():l(this[i]).trigger(e));return this}return this.on(e,...n)}},2849:function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},2850:function(e,t,n){"use strict";var r=n(2851),o=n(49),l=Math.max;e.exports=function(e,t){var n,i,c,h=l(arguments.length,2);for(e=Object(o(e)),c=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},i=1;i<h;++i)t=arguments[i],r(t).forEach(c);if(void 0!==n)throw n;return e}},2851:function(e,t,n){"use strict";e.exports=n(2852)()?Object.keys:n(2853)},2852:function(e,t,n){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},2853:function(e,t,n){"use strict";var r=n(23),o=Object.keys;e.exports=function(object){return o(r(object)?Object(object):object)}},2854:function(e,t,n){"use strict";var r=Object.prototype.toString,o=r.call(new Error);e.exports=function(e){return e&&(e instanceof Error||r.call(e)===o)||!1}},2855:function(e,t,n){"use strict";e.exports=n(2248)()?Object.setPrototypeOf:n(2249)},2856:function(e,t,n){"use strict";var r,o,l,desc,c=Object.create;n(2248)()||(r=n(2249)),e.exports=r?1!==r.level?c:(o={},l={},desc={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(e){l[e]="__proto__"!==e?desc:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(o,l),Object.defineProperty(r,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:o}),function(e,t){return c(null===e?o:e,t)}):c},2857:function(e,t,n){"use strict";var r,o,l,c=n(32),h=n(100),d=n(23),f=n(113),m=n(2866),A=n(41),y=Object.create,v=Object.defineProperty;e.exports=t=function(e,n,r,o){e=String(e),c(o),d(r)&&c(r),c(n),v(t._unresolved,e,f(n)),t._onresolve[e]=r,v(t._resolved,e,f(o)),t._names.push(e)},t._names=["done","then","valueOf"],t._unresolved=m(y(Function.prototype,{then:f((function(e,t){var n;return this.pending||(this.pending=[]),n=r(),this.pending.push("then",[e,t,n.resolve,n.reject]),n.promise}
2)),done:f((function(e,t){d(e)&&c(e),d(t)&&c(t),this.pending||(this.pending=[]),this.pending.push("done",arguments)})),resolved:f(!1),returnsPromise:f(!0),valueOf:f((function(){return this}))})),t._onresolve={then:function(e,t,n,r){var o,l=this.failed?t:e;if(d(l))if(h(l)){if(A(l))return l.resolved?void(l.failed?r(l.value):n(l.value)):void l.done(n,r);try{o=l(this.value)}catch(e){return void r(e)}n(o)}else n(l);else this.failed?r(this.value):n(this.value)},done:function(e,t){if(this.failed){if(t)return void t(this.value);throw this.value}e&&e(this.value)}},t._resolved=m(y(Function.prototype,{then:f((function(e,t){var n,r=this.failed?t:e;if(!d(r))return this;if(h(r)){if(A(r))return r;try{n=r(this.value)}catch(e){return l(e)}return o(n)}return o(r)})),done:f((function(e,t){if(d(e)&&c(e),d(t)&&c(t),this.failed){if(t)return void t(this.value);throw this.value}e&&e(this.value)})),resolved:f(!0),returnsPromise:f(!0),valueOf:f((function(){return this.value}))})),r=n(26),o=r.resolve,l=r.reject,r.extend=t},2858:function(e,t,n){"use strict";var r=n(2859),o=/^\s*class[\s{/}]/,l=Function.prototype.toString;e.exports=function(e){return!!r(e)&&!o.test(l.call(e))}},2859:function(e,t,n){"use strict";var r=n(2860);e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!r(e)}},2860:function(e,t,n){"use strict";var r=n(2861);e.exports=function(e){if(!r(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},2861:function(e,t,n){"use strict";var r=n(2250),o={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!r(e)&&hasOwnProperty.call(o,typeof e)}},2862:function(e,t,n){"use strict";var r=n(23),o=Array.prototype.forEach,l=Object.create,c=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=l(null);return o.call(arguments,(function(e){r(e)&&c(Object(e),t)})),t}},2863:function(e,t,n){"use strict";e.exports=n(2864)()?String.prototype.contains:n(2865)},2864:function(e,t,n){"use strict";var r="razdwatrzy";e.exports=function(){return"function"==typeof r.contains&&(!0===r.contains("dwa")&&!1===r.contains("foo"))}},2865:function(e,t,n){"use strict";var r=String.prototype.indexOf;e.exports=function(e){return r.call(this,e,arguments[1])>-1}},2866:function(e,t,n){"use strict";var r,o,l,c,h,d,base,f=n(113),m=n(32),A=Function.prototype.apply,y=Function.prototype.call,v=Object.create,_=Object.defineProperty,w=Object.defineProperties,x=Object.prototype.hasOwnProperty,E={configurable:!0,enumerable:!1,writable:!0};o=function(e,t){var n,o;return m(t),o=this,r.call(this,e,n=function(){l.call(o,e,n),A.call(t,this,arguments)}),n.__eeOnceListener__=t,this},h={on:r=function(e,t){var data;return m(t),x.call(this,"__ee__")?data=this.__ee__:(data=E.value=v(null),_(this,"__ee__",E),E.value=null),data[e]?"object"==typeof data[e]?data[e].push(t):data[e]=[data[e],t]:data[e]=t,this},once:o,off:l=function(e,t){var data,n,r,i;if(m(t),!x.call(this,"__ee__"))return this;if(!(data=this.__ee__)[e])return this;if("object"==typeof(n=data[e]))for(i=0;r=n[i];++i)r!==t&&r.__eeOnceListener__!==t||(2===n.length?data[e]=n[i?0:1]:n.splice(i,1));else n!==t&&n.__eeOnceListener__!==t||delete data[e];return this},emit:c=function(e){var i,t,n,r,o;if(x.call(this,"__ee__")&&(r=this.__ee__[e]))if("object"==typeof r){for(t=arguments.length,o=new Array(t-1),i=1;i<t;++i)o[i-1]=arguments[i];for(r=r.slice(),i=0;n=r[i];++i)A.call(n,this,o)}else switch(arguments.length){case 1:y.call(r,this);break;case 2:y.call(r,this,arguments[1]);break;case 3:y.call(r,this,arguments[1],arguments[2]);break;default:for(t=arguments.length,o=new Array(t-1),i=1;i<t;++i)o[i-1]=arguments[i];A.call(r,this,o)}}},d={on:f(r),once:f(o),off:f(l),emit:f(c)},base=w({},d),e.exports=t=function(e){return null==e?v(base):w(Object(e),d)},t.methods=h},2867:function(e,t,n){"use strict";var r=n(100),o=n(32),l=n(49),c=n(1627)._base,h=Array.prototype.slice;e.exports=function(e,t){return l(e),r(t)||(t=o(e[t])),c(t,null,e,h.call(arguments,2))}},2868:function(e,t,n){"use strict";e.exports=function(){var e,t,n=Array.from;return"function"==typeof n&&(t=n(e=["raz","dwa"]),Boolean(t&&t!==e&&"dwa"===t[1]))}},2869:function(e,t,n){"use strict";var r=n(2252).iterator,o=n(2878),l=n(1629),c=n(65),h=n(32),d=n(49),f=n(23),m=n(2882),A=Array.isArray,y=Function.prototype.call,desc={configurable:!0,enumerable:!0,writable:!0,value:null},v=Object.defineProperty;e.exports=function(e){var t,i,n,_,w,code,x,E,C,S,T=arguments[1],B=arguments[2];if(e=Object(d(e)),f(T)&&h(T),this&&this!==Array&&l(this))t=this;else{if(!T){if(o(e))return 1!==(w=e.length)?Array.apply(null,e):((_=new Array(1))[0]=e[0],_);if(A(e)){for(_=new Array(w=e.length),i=0;i<w;++i)_[i]=e[i];return _}}_=[]}if(!A(e))if(void 0!==(C=e[r])){for(x=h(C).call(e),t&&(_=new t),E=x.next(),i=0;!E.done;)S=T?y.call(T,B,E.value,i):E.value,t?(desc.value=S,v(_,i,desc)):_[i]=S,E=x.next(),++i;w=i}else if(m(e)){for(w=e.length,t&&(_=new t),i=0,n=0;i<w;++i)S=e[i],i+1<w&&(code=S.charCodeAt(0))>=55296&&code<=56319&&(S+=e[++i]),S=T?y.call(T,B,S,n):S,t?(desc.value=S,v(_,n,desc)):_[n]=S,++n;w=n}if(void 0===w)for(w=c(e.length),t&&(_=new t(w)),i=0;i<w;++i)S=T?y.call(T,B,e[i],i):e[i],t?(desc.value=S,v(_,i,desc)):_[i]=S;return t&&(desc.value=null,_.length=w),_}},2870:function(e,t,n){"use strict";var r=n(165),o={object:!0,symbol:!0};e.exports=function(){var symbol,e=r.Symbol;if("function"!=typeof e)return!1;symbol=e("test symbol");try{String(symbol)}catch(e){return!1}return!!o[typeof e.iterator]&&(!!o[typeof e.toPrimitive]&&!!o[typeof e.toStringTag])}},2871:function(e,t,n){"use strict";e.exports=function(){return"object"==typeof globalThis&&(!!globalThis&&globalThis.Array===Array)}},2872:function(e,t){var n=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},2873:function(e,t,n){"use strict";
2var r,o,l,c=n(113),h=n(2253),d=n(165).Symbol,f=n(2875),m=n(2876),A=n(2877),y=Object.create,v=Object.defineProperties,_=Object.defineProperty;if("function"==typeof d)try{String(d()),l=!0}catch(e){}else d=null;o=function(e){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return r(e)},e.exports=r=function e(t){var symbol;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return l?d(t):(symbol=y(o.prototype),t=void 0===t?"":String(t),v(symbol,{__description__:c("",t),__name__:c("",f(t))}))},m(r),A(r),v(o.prototype,{constructor:c(r),toString:c("",(function(){return this.__name__}))}),v(r.prototype,{toString:c((function(){return"Symbol ("+h(this).__description__+")"})),valueOf:c((function(){return h(this)}))}),_(r.prototype,r.toPrimitive,c("",(function(){var symbol=h(this);return"symbol"==typeof symbol?symbol:symbol.toString()}))),_(r.prototype,r.toStringTag,c("c","Symbol")),_(o.prototype,r.toStringTag,c("c",r.prototype[r.toStringTag])),_(o.prototype,r.toPrimitive,c("c",r.prototype[r.toPrimitive]))},2874:function(e,t,n){"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&("Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag]))}},2875:function(e,t,n){"use strict";var r=n(113),o=Object.create,l=Object.defineProperty,c=Object.prototype,h=o(null);e.exports=function(desc){for(var e,t,n=0;h[desc+(n||"")];)++n;return h[desc+=n||""]=!0,l(c,e="@@"+desc,r.gs(null,(function(n){t||(t=!0,l(this,e,r(n)),t=!1)}))),e}},2876:function(e,t,n){"use strict";var r=n(113),o=n(165).Symbol;e.exports=function(e){return Object.defineProperties(e,{hasInstance:r("",o&&o.hasInstance||e("hasInstance")),isConcatSpreadable:r("",o&&o.isConcatSpreadable||e("isConcatSpreadable")),iterator:r("",o&&o.iterator||e("iterator")),match:r("",o&&o.match||e("match")),replace:r("",o&&o.replace||e("replace")),search:r("",o&&o.search||e("search")),species:r("",o&&o.species||e("species")),split:r("",o&&o.split||e("split")),toPrimitive:r("",o&&o.toPrimitive||e("toPrimitive")),toStringTag:r("",o&&o.toStringTag||e("toStringTag")),unscopables:r("",o&&o.unscopables||e("unscopables"))})}},2877:function(e,t,n){"use strict";var r=n(113),o=n(2253),l=Object.create(null);e.exports=function(e){return Object.defineProperties(e,{for:r((function(t){return l[t]?l[t]:l[t]=e(String(t))})),keyFor:r((function(symbol){var e;for(e in o(symbol),l)if(l[e]===symbol)return e}))})}},2878:function(e,t,n){"use strict";var r=Object.prototype.toString,o=r.call(function(){return arguments}());e.exports=function(e){return r.call(e)===o}},2879:function(e,t,n){"use strict";e.exports=n(2880)()?Math.sign:n(2881)},2880:function(e,t,n){"use strict";e.exports=function(){var e=Math.sign;return"function"==typeof e&&(1===e(10)&&-1===e(-20))}},2881:function(e,t,n){"use strict";e.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1}},2882:function(e,t,n){"use strict";var r=Object.prototype.toString,o=r.call("");e.exports=function(e){return"string"==typeof e||e&&"object"==typeof e&&(e instanceof String||r.call(e)===o)||!1}},2883:function(e,t,n){"use strict";e.exports=n(2884)()?Array.of:n(2885)},2884:function(e,t,n){"use strict";e.exports=function(){var e,t=Array.of;return"function"==typeof t&&(e=t("foo","bar"),Boolean(e&&"bar"===e[1]))}},2885:function(e,t,n){"use strict";var r=n(1629),o=Array.prototype.slice,l=Object.defineProperty,desc={configurable:!0,enumerable:!0,writable:!0,value:null};e.exports=function(){var e,i,t;if(!this||this===Array||!r(this))return o.call(arguments);for(e=new this(t=arguments.length),i=0;i<t;++i)desc.value=arguments[i],l(e,i,desc);return desc.value=null,e.length=t,e}},2886:function(e,t,n){"use strict";var r,o=n(1628),l=n(2887),c=n(90),h=n(26),d=n(41),f=n(91);e.exports=r=function(e){return this instanceof r?(e=o(l(e)),c(this,h()),e.every(this.add,this),this.waiting?(this.initialized=!0,null):(this.resolve(),null)):new r(e)},r.prototype={waiting:0,initialized:!1,add:function(e){if(this.promise.resolved)throw new Error("Queue was already resolved");if(++this.waiting,e=f(e),d(e)){if(!e.resolved)return e.done(this._processValue.bind(this),this.reject),!0;if(e.failed)return this.reject(e.value),!1}return this._processValue()},_processValue:function(){return this.promise.resolved?null:(!--this.waiting&&this.initialized&&this.resolve(),!0)}}},2887:function(e,t,n){"use strict";var r=n(112),o=n(2888);e.exports=function(e){if(o(e)&&r(e))return e;throw new TypeError(e+" is not an iterable or array-like object")}},2888:function(e,t,n){"use strict";var r=n(2252).iterator,o=n(23),l=n(2889);e.exports=function(e){return!!o(e)&&("function"==typeof e[r]||l(e))}},2889:function(e,t,n){"use strict";var r=n(1629),o=n(112),l=n(23);e.exports=function(e){return l(e)&&"number"==typeof e.length&&(o(e)&&!r(e)||"string"==typeof e)||!1}},2890:function(e,t,n){"use strict";var r=n(41);e.exports=function(e){if(!r(e))throw new TypeError(e+" is not a promise object");return e}},2891:function(e,t,n){"use strict";var r,o=n(23),l=n(32),c=n(164),h=n(2254),d=n(26),f=Function.prototype.apply;r=function(e,t,n,r){var o;try{o=f.call(e,this,t)}catch(e){return void r(e)}n(o)},e.exports=function(e){var t,n,f;return t=l(this),o(e)?(e=h(e),f=setTimeout):f=c,(n=function(){var n=d();return f(r.bind(this,t,arguments,n.resolve,n.reject),e),n.promise}).returnsPromise=!0,n}},2892:function(e,t,n){"use strict";e.exports=2147483647},2893:function(e,t,n){"use strict";var r,o=n(65),l=n(32),c=n(23),h=n(2894),d=n(26),f=n(41),m=n(91),A=d.resolve,y=d.reject,v=Function.prototype.apply,_=Math.max;n(2256),r=function(){var e=new Error("Too many calls at the gate");return e.code="DEFERRED_REJECTED_AT_GATE",e.type="deferred-gate-rejected",y(e)},e.exports=function(e,t){var n,w,x,E,C,S,T;return n=l(this),e=_(o(e),1),t=!c(t)||isNaN(t)?1/0:o(t),w=0,C=[],S=function(e,t,r){var o;try{o=v.call(n,e,t)}catch(e){return r?(r.reject(e),E()):y(e)}if(o=m(o),f(o)){if(r&&h(r.promise,o),!o.resolved)return++w,r&&r.resolve(o),o.finally(x);o.failed||(o=o.value)}return r?(r.resolve(o),E()):A(o)},x=function(){--w,E()},E=function(){var data;(data=C.shift())&&S.apply(null,data)},(T=function(){var n;return w>=e?C.length<t?(n=d(),C.push([this,arguments,n]),n.promise):r():S(this,arguments)}).returnsPromise=!0,T}}
2,2894:function(e,t,n){"use strict";var r=n(2255),o=n(2896),l=Array.prototype.apply,c=Object.defineProperty,h=Object.create,d=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0};e.exports=function(e,t){var data;return o(e)&&o(t),d.call(e,"__ee__")?(data=f.value=e.__ee__,d.call(t,"__ee__")?void(data!==t.__ee__&&(r(t.__ee__,(function(e,t){data[t]?"object"==typeof data[t]?"object"==typeof e?l.apply(data[t],e):data[t].push(e):"object"==typeof e?(e.unshift(data[t]),data[t]=e):data[t]=[data[t],e]:data[t]=e})),c(t,"__ee__",f),f.value=null)):(c(t,"__ee__",f),void(f.value=null))):d.call(t,"__ee__")?(f.value=t.__ee__,c(e,"__ee__",f),void(f.value=null)):(f.value=h(null),c(e,"__ee__",f),c(t,"__ee__",f),void(f.value=null))}},2895:function(e,t,n){"use strict";var r=n(32),o=n(49),l=Function.prototype.bind,c=Function.prototype.call,h=Object.keys,d=Object.prototype.propertyIsEnumerable;e.exports=function(e,t){return function(n,f){var m,A=arguments[2],y=arguments[3];return n=Object(o(n)),r(f),m=h(n),y&&m.sort("function"==typeof y?l.call(y,n):void 0),"function"!=typeof e&&(e=m[e]),c.call(e,m,(function(e,r){return d.call(n,e)?c.call(f,A,n[e],e,n,r):t}))}}},2896:function(e,t,n){"use strict";var r=n(112);e.exports=function(e){if(!r(e))throw new TypeError(e+" is not an Object");return e}},2897:function(e,t,n){"use strict";var r=Math.max,o=n(23),l=n(32),c=n(100),h=n(65),d=n(26);t=e.exports=function(e,n){if(!1===e)return delete d._monitor,delete t.timeout,void delete t.callback;t.timeout=e=r(h(e)||5e3,50),o(n)?l(n):"undefined"!=typeof console&&console&&c(console.error)&&(n=function(e){console.error(e.stack&&e.stack.toString()||"Unresolved promise: no stack available")}),t.callback=n,d._monitor=function(){var t=new Error("Unresolved promise");return setTimeout((function(){n&&n(t)}),e)}}},2898:function(e,t,n){"use strict";var r=n(23),o=n(32),l=n(65),c=n(1627)._base;e.exports=function(e){var t,n;return(t=o(this)).returnsPromise?t:(r(e)&&(e=l(e)),(n=function(){return c(t,e,this,arguments)}).returnsPromise=!0,n)}},2899:function(e,t,n){"use strict";var r,o=n(23),l=n(32),c=n(65),h=n(26),d=n(41),f=n(166),m=Function.prototype.apply;r=function(e,t,n,r){var o;try{o=m.call(e,this,t)}catch(e){return void r(e)}n(o)},e.exports=function(e){var t,n;return(t=l(this)).returnsPromise?t:(o(e)&&(e=c(e)),(n=function(){var n,o;if(n=f(arguments,e),d(n)){if(n.failed)return n;o=h(),n.done(function(e){r.call(this,t,e,o.resolve,o.reject)}.bind(this),o.reject)}else o=h(),r.call(this,t,n,o.resolve,o.reject);return o.promise}).returnsPromise=!0,n)}},2900:function(e,t,n){"use strict";e.exports=n(2257)(!1)},2901:function(e,t,n){"use strict";var r,o=n(90),l=n(23),c=n(49),h=n(32),d=n(65),f=n(26),m=n(41),A=n(91),y=Function.prototype.call,v=f.resolve;(r=function(e,t,n){for(this.list=e,this.cb=t,this.context=n,this.length=d(e.length);this.current<this.length;){if(this.current in e)return o(this,f()),this.processCb=this.processCb.bind(this),this.process(),this.promise;++this.current}return v(void 0)}).prototype={current:0,process:function(){var e=A(this.list[this.current]);if(m(e)){if(!e.resolved)return void e.done(this.processCb,this.reject);if(e.failed)return void this.reject(e.value);e=e.value}this.processCb(e)},processCb:function(e){var t;if(this.cb){try{t=y.call(this.cb,this.context,e,this.current,this.list)}catch(e){return void this.reject(e)}if(t=A(t),m(t)){if(!t.resolved)return void t.done(this.processValue.bind(this,e),this.reject);if(t.failed)return void this.reject(t.value);t=t.value}}else t=e;this.processValue(e,t)},processValue:function(e,t){if(t)this.resolve(e);else{for(;++this.current<this.length;)if(this.current in this.list)return void this.process();this.resolve(void 0)}}},e.exports=function(e){return c(this),l(e)&&h(e),new r(this,e,arguments[1])}},2902:function(e,t,n){"use strict";var r,o,l,c,h,d=n(2903),f=n(2255),m=n(2906),A=n(26);t.profile=function(){r=0,o={},l=0,c={},A._profile=h},h=function(e){var t,data;e?(++r,data=o):(++l,data=c),(t=(new Error).stack).split("\n").slice(3).some((function(line){return-1===line.search(/[/\\]deferred[/\\]/)&&-1===line.search(/[/\\]es5-ext[/\\]/)&&-1===line.indexOf(" (native)")&&(line=line.replace(/\n/g,"\\n").trim(),data[line]||(data[line]={count:0}),++data[line].count,!0)}))||(data.unknown||(data.unknown={count:0,stack:t}),++data.unknown.count)},t.profileEnd=function(){var e,t,n="";if(!A._profile)throw new Error("Deferred profiler was not initialized");return delete A._profile,n+="------------------------------------------------------------\n",n+="Deferred usage statistics:\n\n",e=String(r+l),t=d.c
2all(m," ",e.length),n+=e+" Total promises initialized\n",n+=t.call(l)+" Initialized as Unresolved\n",n+=t.call(r)+" Initialized as Resolved\n",l&&(n+="\nUnresolved promises were initialized at:\n",f(c,(function(data,e){n+=t.call(data.count)+" "+e+"\n"}),null,(function(e,t){return this[t].count-this[e].count}))),r&&(n+="\nResolved promises were initialized at:\n",f(o,(function(data,e){n+=t.call(data.count)+" "+e+"\n"}),null,(function(e,t){return this[t].count-this[e].count}))),{log:n+="------------------------------------------------------------\n",resolved:{count:r,stats:o},unresolved:{count:l,stats:c}}}},2903:function(e,t,n){"use strict";var r=n(32),o=n(1628),l=n(2904),c=Function.prototype.apply;e.exports=function(){var e=r(this),t=o(arguments);return l((function(){return c.call(e,this,t.concat(o(arguments)))}),e.length-t.length)}},2904:function(e,t,n){"use strict";var desc,r,o,l,c,h=n(65),d=function(e,t){return t};try{Object.defineProperty(d,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch(e){}1===d.length?(desc={configurable:!0,writable:!1,enumerable:!1},r=Object.defineProperty,e.exports=function(e,t){return t=h(t),e.length===t?e:(desc.value=t,r(e,"length",desc))}):(l=n(2905),c=[],o=function(e){var t,i=0;if(c[e])return c[e];for(t=[];e--;)t.push("a"+(++i).toString(36));return new Function("fn","return function ("+t.join(", ")+") { return fn.apply(this, arguments); };")},e.exports=function(e,t){var n;if(t=h(t),e.length===t)return e;n=o(t)(e);try{l(n,e)}catch(e){}return n})},2905:function(e,t,n){"use strict";var r=n(49),o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols;e.exports=function(e,source){var t,n=Object(r(source));if(e=Object(r(e)),c(n).forEach((function(n){try{o(e,n,l(source,n))}catch(e){t=e}}
2)),"function"==typeof h&&h(n).forEach((function(symbol){try{o(e,symbol,l(source,symbol))}catch(e){t=e}})),void 0!==t)throw t;return e}},2906:function(e,t,n){"use strict";var r=n(1630),o=n(49),l=n(2907),c=Math.abs,h=Math.max;e.exports=function(e){var t=String(o(this)),n=t.length,d=arguments[1];return d=isNaN(d)?1:r(d),e=l.call(String(e),c(d)),d>=0?e.slice(0,h(0,d-n))+t:t+(n+d>=0?"":e.slice(d+n))}},2907:function(e,t,n){"use strict";e.exports=n(2908)()?String.prototype.repeat:n(2909)},2908:function(e,t,n){"use strict";e.exports=function(){return"function"==typeof"foo".repeat&&"foofoo"==="foo".repeat(2)}},2909:function(e,t,n){"use strict";var r=n(49),o=n(1630);e.exports=function(e){var t,n=String(r(this));if((e=o(e))<0)throw new RangeError("Count must be >= 0");if(!isFinite(e))throw new RangeError("Count must be < â");for(t="";e;)e%2&&(t+=n),e>1&&(n+=n),e>>=1;return t}},2910:function(e,t,n){"use strict";var r=n(23),o=n(32);n(26).extend("aside",(function(e,t){return r(e)&&o(e),r(t)&&o(t),(e||t)&&(this.pending||(this.pending=[]),this.pending.push("aside",arguments)),this}),(function(e,t){var n=this.failed?t:e;n&&n(this.value)}),(function(e,t){var n;return r(e)&&o(e),r(t)&&o(t),(n=this.failed?t:e)&&n(this.value),this}))},2911:function(e,t,n){"use strict";var r=n(100),o=n(49),l=n(26),c=n(41),h=l.resolve,d=l.reject;l.extend("catch",(function(e){var t;return o(e),this.pending||(this.pending=[]),t=l(),this.pending.push("catch",[e,t.resolve,t.reject]),t.promise}),(function(e,t,n){var o;if(this.failed)if(r(e)){if(c(e))return void(e.resolved?e.failed?n(e.value):t(e.value):e.done(t,n));try{o=e(this.value)}catch(e){return void n(e)}t(o)}else t(e);else t(this.value)}),(function(e){var t;if(o(e),!this.failed)return this;if(r(e)){if(c(e))return e;try{t=e(this.value)}catch(e){return d(e)}return h(t)}return h(e)}))},2912:function(e,t,n){"use strict";var r=n(23),o=n(32),l=n(164);n(26).extend("cb",(function(e){return r(e)?(o(e),l(function(){this.resolved?this.failed?e(this.value):e(null,this.value):(this.pending||(this.pending=[]),this.pending.push("cb",[e]))}.bind(this)),this):this}),(function(e){this.failed?e(this.value):e(null,this.value)}),(function(e){return r(e)?(o(e),l(function(){this.failed?e(this.value):e(null,this.value)}.bind(this)),this):this}))},2913:function(e,t,n){"use strict";var r=n(49),o=n(26),l=Array.prototype.reduce,c=o.resolve,h=o.reject;o.extend("get",(function(){var e;return this.pending||(this.pending=[]),e=o(),this.pending.push("get",[arguments,e.resolve,e.reject]),e.promise}),(function(e,t,n){var o;this.failed&&n(this.value);try{o=l.call(e,(function(e,t){return r(e)[String(t)]}),this.value)}catch(e){return void n(e)}t(o)}),(function(){var e;if(this.failed)return this;try{e=l.call(arguments,(function(e,t){return r(e)[String(t)]}),this.value)}catch(e){return h(e)}return c(e)}))},2914:function(e,t,n){"use strict";var r,o=n(23),l=n(100),c=n(26),h=n(41),d=n(166),f=Array.prototype.slice,m=Function.prototype.apply,A=c.reject;r=function(e,t,n,r){var o;try{o=m.call(e,this,t)}catch(e){return r(e)}return n(o)},c.extend("invoke",(function(e){var t;return this.pending||(this.pending=[]),t=c(),this.pending.push("invoke",[arguments,t.resolve,t.reject]),t.promise}),(function(e,t,n){var c;if(this.failed)n(this.value);else if(o(this.value)){if(c=e[0],!l(c)){if(c=String(c),!l(this.value[c]))return void n(new TypeError(c+" is not a function"));c=this.value[c]}if(e=d(f.call(e,1)),h(e)){if(e.failed)return void n(e.value);e.done(function(e){r.call(this,c,e,t,n)}.bind(this.value),n)}else r.call(this.value,c,e,t,n)}else n(new TypeError("Cannot use null or undefined"))}),(function(e){var t,n;if(this.failed)return this;if(!o(this.value))return A(new TypeError("Cannot use null or undefined"));if(!l(e)){if(e=String(e),!l(this.value[e]))return A(new TypeError(e+" is not a function"));e=this.value[e]}return t=d(f.call(arguments,1)),h(t)?t.failed?t:(n=c(),t.done(function(t){r.call(this,e,t,n.resolve,n.reject)}.bind(this.value),n.reject),n.promise):r.call(this.value,e,t,c,A)}))},2915:function(e,t,n){"use strict";var r,o=n(2251),l=n(23),c=n(100),h=n(26),d=n(41),f=n(166),m=Array.prototype.slice,A=Function.prototype.apply,y=h.reject;r=function(e,t,n,r){var c;if(e.returnsPromise){try{c=A.call(e,this,t)}catch(e){return void r(e)}n(c)}else{t=o(t).concat((function(e,t){l(e)?r(e):n(arguments.length>
22?m.call(arguments,1):t)}));try{A.call(e,this,t)}catch(e){r(e)}}},h.extend("invokeAsync",(function(e){var t;return this.pending||(this.pending=[]),t=h(),this.pending.push("invokeAsync",[arguments,t.resolve,t.reject]),t.promise}),(function(e,t,n){var o;if(this.failed)n(this.value);else if(l(this.value)){if(o=e[0],!c(o)){if(o=String(o),!c(this.value[o]))return void n(new TypeError(o+" is not a function"));o=this.value[o]}if(e=f(m.call(e,1)),d(e)){if(e.failed)return void n(e.value);e.done(function(e){r.call(this,o,e,t,n)}.bind(this.value),n)}else r.call(this.value,o,e,t,n)}else n(new TypeError("Cannot use null or undefined"))}),(function(e){var t,n;if(this.failed)return this;if(!l(this.value))return y(new TypeError("Cannot use null or undefined"));if(!c(e)){if(e=String(e),!c(this.value[e]))return y(new TypeError(e+" is not a function"));e=this.value[e]}if(t=f(m.call(arguments,1)),d(t)){if(t.failed)return t;n=h(),t.done(function(t){r.call(this,e,t,n.resolve,n.reject)}.bind(this.value),n.reject)}else{if(e.returnsPromise)return r.call(this.value,e,t,h,y);n=h(),r.call(this.value,e,t,n.resolve,n.reject)}return n.promise}))},2916:function(e,t,n){"use strict";n(1631)("map",n(2258))},2917:function(e,t,n){"use strict";n(1631)("reduce",n(2259))},2918:function(e,t,n){"use strict";var r=n(2919),o=n(23),l=n(32),c=n(100),h=n(41),d=n(26),f=d.resolve,m=d.reject;d.extend("spread",(function(e,t){var n;return o(e)&&l(e),e||o(t)?(this.pending||(this.pending=[]),n=d(),this.pending.push("spread",[e,t,n.resolve,n.reject]),n.promise):this}),(function(e,t,n,l){var d,f;if(d=this.failed?t:e,o(d)||(this.failed?l(this.value):n(this.value)),c(d)){if(h(d))return void(d.resolved?d.failed?l(d.value):n(d.value):d.done(n,l));this.failed||(d=r.call(d));try{f=d(this.value)}catch(e){return void l(e)}n(f)}else n(d)}),(function(e,t){var n,l;if(n=this.failed?t:e,!o(n))return this;if(c(n)){if(h(n))return n;this.failed||(n=r.call(n));try{l=n(this.value)}catch(e){return m(e)}return f(l)}return f(n)}))},2919:function(e,t,n){"use strict";var r=n(32),o=Function.prototype.apply;e.exports=function(){var e=r(this);return function(t){return o.call(e,this,t)}}},2920:function(e,t,n){"use strict";n(1631)("some",n(2260))},2921:function(e,t,n){"use strict";var r=n(2922),o=n(23),l=n(164),c=n(2254),h=n(26);h.extend("timeout",(function(e){var t,n=function(){this.resolved||t.reject(r("Operation timeout","DEFERRED_TIMEOUT"))}.bind(this);return o(e)?setTimeout(n,c(e)):l(n),this.pending||(this.pending=[]),t=h(),this.pending.push("timeout",[t.promise,t.resolve]),t.promise}),(function(e,t){e.resolved||t(this)}),(function(e){return o(e)&&c(e),this}))},2922:function(e,t,n){"use strict";var r=n(90),o=n(112),l=n(23),c=Error.captureStackTrace;e.exports=function(t){var n=new Error(t),code=arguments[1],h=arguments[2];return l(h)||o(code)&&(h=code,code=null),l(h)&&r(n,h),l(code)&&(n.code=code),c&&c(n,e.exports),n}},2940:function(e,t,n){(function(t,r){e.exports=function(e,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function p(e,t,n){return(p=m()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&f(i,n.prototype),i}).apply(null,arguments)}function A(e){var t="function"==typeof Map?new Map:void 0;return(A=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return p(e,arguments,d(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)})(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return function(){var t,n=d(e);if(m()){var r=d(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?y(e):t}(this,t)}}function v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(r=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(i)throw a}}return n}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var C=function(){function e(){l(this,e)}return s(e,null,[{key:"OS_VERSION",get:function(){return"undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent.replace(/,/g,"."):"undefined"}},{key:"SDK_VERSION",get:function(){return"3.0.120"}},{key:"SDK_MAJOR_VERSION",get:function(){return e.SDK_VERSION.split(".")[0]}},{key:"COMMAND_ACK_TIMEOUT",get:function(){return 1e4}},{key:"DEFAULT_MAX_UNREAD_COUNT_OF_SUPER_GROUP_CHANNEL",get:function(){return 100}}]),e}(),S={},T=new WeakMap,B=function(){function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,e),T.set(this,"object"===o(t)&&t?t:{})}return s(e,[{key:"get",value:function(e){return T.get(this)[e]}},{key:"set",value:function(e,t){T.get(this)[e]=t}},{key:"remove",value:function(e){var t=T.get(this);t.hasOwnProperty(e)&&delete t[e]}},{key:"container",get:function(){return T.get(this)}}],[{key:"create",value:function(t,n){return S[t]=new e(n),S[t]}},{key:"get",value:function(e){return e=e||ot.getInstance()._iid,S[e]}}]),e}(),k=function(){h(i,A(Error));var e=g(i);function i(t,n){var r;return l(this,i),(r=e.call(this,n)).name="SendBirdException",r.code=n||0,r.message=t,r}return s(i,null,[{key:"INVALID_INITIALIZATION",get:function(){return 800100}},{key:"CONNECTION_REQUIRED",get:function(){return 800101}},{key:"CONNECTION_CANCELED",get:function(){return 800102}},{key:"INVALID_PARAMETER",get:function(){return 800110}}
2,{key:"NETWORK_ERROR",get:function(){return 800120}},{key:"NETWORK_ROUTING_ERROR",get:function(){return 800121}},{key:"MALFORMED_DATA",get:function(){return 800130}},{key:"MALFORMED_ERROR_DATA",get:function(){return 800140}},{key:"WRONG_CHANNEL_TYPE",get:function(){return 800150}},{key:"MARK_AS_READ_RATE_LIMIT_EXCEEDED",get:function(){return 800160}},{key:"QUERY_IN_PROGRESS",get:function(){return 800170}},{key:"ACK_TIMEOUT",get:function(){return 800180}},{key:"LOGIN_TIMEOUT",get:function(){return 800190}},{key:"WEBSOCKET_CONNECTION_CLOSED",get:function(){return 800200}},{key:"WEBSOCKET_CONNECTION_FAILED",get:function(){return 800210}},{key:"REQUEST_FAILED",get:function(){return 800220}},{key:"FILE_UPLOAD_CANCEL_FAILED",get:function(){return 800230}},{key:"REQUEST_CANCELED",get:function(){return 800240}},{key:"REQUEST_DUPLICATED",get:function(){return 800250}}]),i}(),b=function(){function e(){l(this,e),this.sessionKey=null,this.eKey=null}return s(e,[{key:"hasSession",value:function(){return!!this.sessionKey}}]),e}(),I={DEBUG:"debug",PRODUCTION:"production"},M=I.PRODUCTION,P=function(){function e(){l(this,e)}return s(e,null,[{key:"log",value:function(){var e;(e=console).log.apply(e,arguments)}},{key:"debug",value:function(){M===e.Mode.DEBUG&&e.log.apply(e,arguments)}},{key:"Mode",get:function(){return I}},{key:"mode",get:function(){return M},set:function(t){-1<Object.keys(e.Mode).map((function(t){return e.Mode[t]})).indexOf(t)&&(M=t)}}]),e}(),D={},U=function(){function i(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};for(var n in l(this,i),this._iid=e,t){var r=t[n];"function"==typeof r&&(this[n]=this.getClonedClass(r))}D[e]=this}return s(i,[{key:"getClonedClass",value:function(e){var t=this._iid;return function(){h(r,e);var n=g(r);function r(){return l(this,r),n.apply(this,arguments)}return s(r,[{key:"_iid",get:function(){return t}}],[{key:"_iid",get:function(){return t}},{key:"_name",get:function(){return e.name}}]),r}()}}],[{key:"get",value:function(e){return e?D[e]:{}}}]),i}(),O=function(){function e(t){l(this,e),this.sb=t,this.pingTimer=null,this.pingTimeoutTimer=null}return s(e,[{key:"ping",value:function(){var e=this,t=U.get(this.sb._iid).Command.bPing(),n=B.get(this.sb._iid).container,r=n.wsAdapter,i=n.pongTimeout;r.ws.send(t),P.debug("PING"),this.pingTimeoutTimer=setTimeout((function(){P.debug("PING timeout"),e.stop(),r.ws.handler&&r.ws.handler.onError()}),i)}},{key:"pong",value:function(){clearTimeout(this.pingTimeoutTimer),this.pingTimeoutTimer=null}},{key:"start",value:function(){var e=this,t=B.get(this.sb._iid).container.pingInterval;this.stop(),this.ping(),this.pingTimer=setInterval((function(){e.ping()}),t)}},{key:"stop",value:function(){clearInterval(this.pingTimer),this.pingTimer=null,clearTimeout(this.pingTimeoutTimer),this.pingTimeoutTimer=null}}]),e}();function F(){return"undefined"==typeof window&&void 0!==t}var R=[k.CONNECTION_REQUIRED,k.NETWORK_ERROR,k.ACK_TIMEOUT,k.WEBSOCKET_CONNECTION_CLOSED,k.WEBSOCKET_CONNECTION_FAILED,k.FILE_UPLOAD_CANCEL_FAILED,k.REQUEST_CANCELED,500901,500910,900200],N=function(){function e(){l(this,e)}return s(e,null,[{key:"deepEqual",value:function(e,t){if(e===t)return!0;var n=c({},e),r=c({},t);return!(n.messageId&&r.messageId&&n.messageId!==r.messageId||n.reqId&&r.reqId&&n.reqId!==r.reqId||(n.hasOwnProperty("messageId")&&delete n.messageId,n.hasOwnProperty("reqId")&&delete n.reqId,r.hasOwnProperty("messageId")&&delete r.messageId,r.hasOwnProperty("reqId")&&delete r.reqId,JSON.stringify(n)!==JSON.stringify(r)))}},{key:"isVideoChatSignalingMessage",value:function(e){try{return!(!e.isUserMessage()||"string"!=typeof e.customType||0!==e.customType.indexOf("SB_VIDEOCHAT")||"SGNL"!==e.data.substring(0,4))}catch(e){return!1}}},{key:"isResendableError",value:function(e){return 0<e&&0<=R.indexOf(e)}},{key:"isFile",value:function(e){var t="object"===o(e)&&null!==e&&"string"==typeof e.name&&"string"==typeof e.uri&&"string"==typeof e.type;if(!t)if(F()){if(void 0!==r)return e instanceof r}else{if("undefined"!=typeof Blob)return e instanceof Blob;if("undefined"!=typeof File)return e instanceof File}return t}}]),e}(),L=function(){function t(e){if(l(this,t),this.fields={},e)for(var n in e)this.fields[n]={value:e[n]},N.isFile(e[n])&&(this.fields[n].filename=e[n].name);this.upload={requestId:null,deleteRequest:null,progressHandler:null}}return s(t,[{key:"add",value:function(e,t,n){var r=2<arguments.length&&void 0!==n?n:null;this.fields[e]={value:t,filename:r}}},{key:"remove",value:function(e){this.fields.hasOwnProperty(e)&&delete this.fields[e]}},{key:"yield",value:function(){var t=!1;for(var n in this.fields)if(N.isFile(this.fields[n].value)){t=!0;break}if(t){var r=new e;for(var o in this.fields){var i=this.fields[o];N.isFile(i.value)?r.append(o,i.value,i.filename):r.append(o,i.value)}return r}var a={};for(var s in this.fields)a[s]=this.fields[s].value;return a}}]),t}(),z=function(){function b(e){l(this,b),this.sb=e,this.cls=U.get(this.sb._iid)}return s(b,[{key:"checkRouting",value:function(e){if(this.sb.customApiHost&&this.sb.customWsHost)"function"==typeof e&&e(null,{apiHost:this.sb.customApiHost,wsHost:this.sb.customWsHost});else{var t=this.sb.getApplicationId();e(null,{apiHost:"https://api-".concat(t,".sendbird.com"),wsHost:"wss://ws-".concat(t,".sendbird.com")})}}},{key:"_parseError",value:function(e){try{var t=JSON.parse(e.response),n=t?t.message:"Request failed.",r=t?t.code:k.REQUEST_FAILED;return new k(n,r)}catch(t){return e instanceof k?e:new k("Request failed.",k.REQUEST_FAILED)}}},{key:"_setDefaultHeader",value:function(e,t){try{var n=B.get(this.sb._iid).container,r=n.appI
2d,i=n.auth;e.setRequestHeader("SendBird","JS,".concat(C.OS_VERSION,",").concat(C.SDK_VERSION,",").concat(r)),t&&e.setRequestHeader("Session-Key",i.sessionKey),e.setRequestHeader("Request-Sent-Timestamp",(new Date).getTime().toString())}catch(e){P.debug("setting default header is failed. - ",e)}}},{key:"_setRequestEvent",value:function(i,a,e){var s=this;try{a&&"function"==typeof a&&i.upload&&(i.upload.onprogress=function(t){e&&"function"==typeof e&&e(t),t.lengthComputable&&t.loaded>=t.total&&a()}),i.onreadystatechange=function(){if(i&&i.readyState===i.DONE){var e=i.status,t=null;if(200<=e&&e<400){var n=!0;try{t=JSON.parse(i.responseText)}catch(e){n=!1,t=null}n?i.callback(null,t):i.callback(new k("Request failed.",k.REQUEST_FAILED),null),a&&"function"==typeof a&&a(),i=null}else{var r={status:e,statusText:i.statusText,response:i.responseText};P.debug(r),i&&i.isAbort?i.onabort():(i.callback(s._parseError(r),null),i=null)}}},i.onabort=function(){i&&(i.callback(new k("Request has been canceled.",k.REQUEST_CANCELED),null),a&&"function"==typeof a&&a()),i=null},i.onerror=function(){i&&(i.callback(new k("There was a network error.",k.NETWORK_ERROR),null),a&&"function"==typeof a&&a()),i=null},i.ontimeout=function(){i&&(i.callback(new k("Request is timeout.",k.REQUEST_FAILED),null),a&&"function"==typeof a&&a()),i=null}}catch(e){P.debug("setting request event is failed. - ",e)}}},{key:"_createWithEncodedGetParams",value:function(e){try{var t="";for(var n in e.data)if(e.data.hasOwnProperty(n)){var r=e.data[n];null!=r&&(t+=n+"="+("object"===o(r)?Array.isArray(r)?r.map((function(e){return encodeURIComponent(e)})).join(","):encodeURIComponent(JSON.stringify(r)):encodeURIComponent(r))+"&")}t&&(e.url=e.url+"?"+t.substring(0,t.length-1))}catch(e){P.debug("createWithEncodedGetParams is failed. - ",e)}}},{key:"_sendRequest",value:function(t,n){try{switch(t){case"GET":n.send();break;default:if(void 0!==e&&e&&n.data instanceof e)if(F()){var r=n.data.getHeaders();n.setRequestHeader("Content-Type",r["content-type"]);var o=[];n.data.on("data",(function(e){return o.push(e)})),n.data.on("end",(function(){return n.send(o)})),n.data.resume()}else n.send(n.data);else n.setRequestHeader("Content-Type","application/json; charset=utf-8"),n.send(JSON.stringify(n.data))}}catch(t){P.debug("sending a request is failed. - ",t)}}},{key:"get",value:function(e,u,t){var n=this;this.checkRouting((function(r,o){if(r)t(new k("Request failed.",k.REQUEST_FAILED),null);else{var l=B.get(n.sb._iid).container,c=l.auth,i=l.nodeJs,a=i?i.XMLHttpRequest:XMLHttpRequest;if(a){var s=new a;s.url="".concat(o.apiHost,"/v").concat(C.SDK_MAJOR_VERSION).concat(e),s.data=u?u.yield():{},s.callback=t,n._createWithEncodedGetParams(s),s.open("GET",s.url,!0),n._setRequestEvent(s),n._setDefaultHeader(s,c.sessionKey),n._sendRequest("GET",s)}else t(new k("Request failed. XMLHttpRequest not found.",k.REQUEST_FAILED),null)}}))}},{key:"dummyCall",value:function(e){var u=this;this.checkRouting((function(t,n){if(t)e(new k("Request failed.",k.REQUEST_FAILED),null);else{var r=B.get(u.sb._iid).container,o=r.auth,i=r.nodeJs,a=i?i.XMLHttpRequest:XMLHttpRequest;if(a){var s=new a;s.url="".concat(n.apiHost),s.data={},s.callback=e,u._createWithEncodedGetParams(s),s.open("GET",s.url,!0),u._setRequestEvent(s),u._setDefaultHeader(s,o.sessionKey),u._sendRequest("GET",s)}else e(new k("Request failed. XMLHttpRequest not found.",k.REQUEST_FAILED),null)}}))}},{key:"post",value:function(e,t,n){var r=this;this.checkRouting((function(o,l){if(o)n(new k("Request failed.",k.REQUEST_FAILED),null);else{var c=B.get(r.sb._iid).container,h=c.auth,i=c.nodeJs,a=i?i.XMLHttpRequest:XMLHttpRequest;if(a){var s=new a;s.url="".concat(l.apiHost,"/v").concat(C.SDK_MAJOR_VERSION).concat(e),s.data=t?t.yield():{},s.callback=n,s.open("POST",s.url,!0),t.upload||(t.upload={});var d=r.cls.FileMessageQueue,u=t.upload.reqId;u&&(d.uploadRequest[u]=s),r._setRequestEvent(s,t.upload.deleteRequest,t.upload.progressHandler),r._setDefaultHeader(s,h.sessionKey),r._sendRequest("POST",s)}else n(new k("Request failed. XMLHttpRequest not found.",k.REQUEST_FAILED),null)}}))}},{key:"put",value:function(e,u,t){var n=this;this.checkRouting((function(r,o){if(r)t(new k("Request failed.",k.REQUEST_FAILED),null);else{var l=B.get(n.sb._iid).container,c=l.auth,i=l.nodeJs,a=i?i.XMLHttpRequest:XMLHttpRequest;if(a){var s=new a;s.url="".concat(o.apiHost,"/v").concat(C.SDK_MAJOR_VERSION).concat(e),s.data=u?u.yield():{},s.callback=t,s.open("PUT",s.url,!0),n._setRequestEvent(s),n._setDefaultHeader(s,c.sessionKey),n._sendRequest("PUT",s)}else t(new k("Request failed. XMLHttpRequest not found.",k.REQUEST_FAILED),null)}}))}},{key:"delete",value:function(e,u,t){var n=this;this.checkRouting((function(r,o){if(r)t(new k("Request failed.",k.REQUEST_FAILED),null);else{var l=B.get(n.sb._iid).container,c=l.auth,i=l.nodeJs,a=i?i.XMLHttpRequest:XMLHttpRequest;if(a){var s=new a;s.url="".concat(o.apiHost,"/v").concat(C.SDK_MAJOR_VERSION).concat(e),s.data=u?u.yield():{},s.callback=t,n._createWithEncodedGetParams(s),s.open("DELETE",s.url,!0),n._setRequestEvent(s),n._setDefaultHeader(s,c.sessionKey),n._sendRequest("DELETE",s)}else t(new k("Request failed. XMLHttpRequest not found.",k.REQUEST_FAILED),null)}}))}},{key:"updateCurrentUserInfo",value:function(e,i){var a=this,s=e.nickname,t=e.profileUrl,u=e.profileImage,n=e.preferredLanguages;this.sb.ConnectionManager.ready((function(e,r){if(e)i(e,null);else{var o=b.Path.USERS_USERID.replace("%s",encodeURIComponent(a.sb.currentUser.userId)
2),l=new L;s&&l.add("nickname",s),t&&l.add("profile_url",t),u&&l.add("profile_file",u,u.name),n&&l.add("preferred_languages",n),a.put(o,l,i)}}))}},{key:"getMyGroupChannelChangeLogs",value:function(e,i){var a=this,s=e.ts,t=e.token,u=e.customTypes,n=e.includeEmpty;this.sb.ConnectionManager.ready((function(e,r){if(e)i(e,null);else{var o=b.Path.USERS_USERID_MY_GROUP_CHANNEL_CHANGELOGS.replace("%s",encodeURIComponent(r.userId)),l=new L({show_read_receipt:!0,show_member:!0});t&&l.add("token",t),s&&l.add("change_ts",s),u&&0<u.length&&l.add("custom_types",u),"boolean"==typeof n&&l.add("show_empty",n),a.get(o,l,i)}}))}},{key:"getChannelInvitationPreference",value:function(e,t){var i=this;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_GROUP_CHANNEL_INVITATION_PREFERENCE.replace("%s",encodeURIComponent(n.userId));i.get(r,null,t)}}))}},{key:"getGroupChannelCount",value:function(e,s){var t=this,u=e.memberStateFilter;this.sb.ConnectionManager.ready((function(e,n){if(e)s(e,null);else{var r=t.cls.GroupChannel,o=b.Path.USERS_USERID_GROUP_CHANNEL_COUNT.replace("%s",encodeURIComponent(t.sb.currentUser.userId)),i="";switch(u){case r.MemberStateFilter.JOINED:i="joined";break;case r.MemberStateFilter.INVITED:i="invited";break;case r.MemberStateFilter.INVITED_BY_FRIEND:i="invited_by_friend";break;case r.MemberStateFilter.INVITED_BY_NON_FRIEND:i="invited_by_non_friend";break;default:i="all"}var a=new L({state:i});t.get(o,a,s)}}))}},{key:"getUnreadItemCount",value:function(e,i){var a=this,s=e.keys;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.USERS_USERID_UNREAD_ITEM_COUNT.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),r=new L({item_keys:s});a.get(n,r,i)}}))}},{key:"getTotalUnreadMessageCount",value:function(e,i){var a=this,s=e.customTypesFilter,t=e.superChannelFilter;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.USERS_USERID_UNREAD_MESSAGE_COUNT.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),o=new L({super_mode:t});null!==s&&0<s.length&&o.add("custom_types",s),a.get(r,o,i)}}))}},{key:"getTotalUnreadChannelCount",value:function(e,t){var i=this;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_UNREAD_CHANNEL_COUNT.replace("%s",encodeURIComponent(i.sb.currentUser.userId));i.get(r,null,t)}}))}},{key:"searchMessages",value:function(e,i){var a=this,s=e.keyword,t=e.limit,u=e.reverse,n=e.exactMatch,r=e.channelUrl,o=e.channelCustomType,l=e.messageTimestampFrom,p=e.messageTimestampTo,c=e.order,h=e.nextToken;this.sb.ConnectionManager.ready((function(e,d){if(e)i(e,null);else{var f=b.Path.SEARCH_MESSAGE,m=new L({limit:t,reverse:u,query:s,custom_type:o});l&&m.add("message_ts_from",l),p&&m.add("message_ts_to",p),r&&m.add("channel_url",r),c&&m.add("sort_field",c),"boolean"==typeof n&&m.add("exact_match",n),null!==h&&0<h.length&&m.add("after",h),a.get(f,m,i)}}))}},{key:"markAsReadAll",value:function(e,i){var a=this,s=e.channelUrls;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.USERS_USERID_MARKASREADALL.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),r=new L;s&&r.add("channel_urls",s),a.put(n,r,i)}}))}},{key:"markAsDelivered",value:function(e,i){var a=this,s=e.channelUrl,t=e.userId;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.GROUPCHANNELS_CHANNELURL_MESSAGES_MARKASDELIVERED.replace("%s",encodeURIComponent(s)),o=new L;t&&o.add("user_id",t),a.put(r,o,i)}}))}},{key:"setChannelInvitationPreference",value:function(e,i){var a=this,s=e.isAutoAccept;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.USERS_USERID_GROUP_CHANNEL_INVITATION_PREFERENCE.replace("%s",encodeURIComponent(t.userId)),r=new L({auto_accept:s});a.put(n,r,i)}}))}},{key:"blockUser",value:function(e,i){var a=this,s=e.blockedUserId;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.USERS_USERID_BLOCK.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),r=new L({target_id:s});a.post(n,r,i)}}))}},{key:"unblockUser",value:function(e,t){var i=this,a=e.unblockedUserId;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_BLOCK_TARGETID.replace("%s",encodeURIComponent(i.sb.currentUser.userId)
vendor: 20,665 bytes, line 2
2).replace("%s",encodeURIComponent(a));i.delete(r,null,t)}}))}},{key:"getPushTriggerOption",value:function(e,t){var i=this;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_PUSHPREFERENCE.replace("%s",encodeURIComponent(n.userId));i.get(r,null,t)}}))}},{key:"setPushTriggerOption",value:function(e,i){var a=this,s=e.pushTriggerOption;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.USERS_USERID_PUSHPREFERENCE.replace("%s",encodeURIComponent(t.userId)),r=new L({push_trigger_option:s});a.put(n,r,i)}}))}},{key:"getPushTokens",value:function(e,i){var a=this,s=e.ts,t=e.token,u=e.type;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.USERS_USERID_PUSH_DEVICE_TOKENS.replace("%s",encodeURIComponent(n.userId)).replace("%s",encodeURIComponent(u)),o=new L;t&&o.add("token",t),s&&o.add("created_ts",s),a.get(r,o,i)}}))}},{key:"getPushTemplate",value:function(e,t){var i=this;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_PUSH_TEMPLATE.replace("%s",encodeURIComponent(n.userId));i.get(r,null,t)}}))}},{key:"setPushTemplate",value:function(e,i){var a=this,s=e.templateName;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.USERS_USERID_PUSH_TEMPLATE.replace("%s",encodeURIComponent(t.userId)),r=new L({name:s});a.put(n,r,i)}}))}},{key:"getDoNotDisturb",value:function(e,t){var i=this;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_PUSHPREFERENCE.replace("%s",encodeURIComponent(i.sb.currentUser.userId));i.get(r,null,t)}}))}},{key:"setDoNotDisturb",value:function(e,i){var a=this,s=e.doNotDisturbOn,t=e.startHour,u=e.startMin,n=e.endHour,r=e.endMin,o=e.timezone;this.sb.ConnectionManager.ready((function(e,l){if(e)i(e,null);else{var c=b.Path.USERS_USERID_PUSHPREFERENCE.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),h=new L({do_not_disturb:s,start_hour:t,start_min:u,end_hour:n,end_min:r,timezone:o});a.put(c,h,i)}}))}},{key:"getSnoozePeriod",value:function(e,t){var i=this;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_PUSHPREFERENCE.replace("%s",encodeURIComponent(i.sb.currentUser.userId));i.get(r,null,t)}}))}},{key:"setSnoozePeriod",value:function(e,i){var a=this,s=e.snoozeOn,t=e.startTs,u=e.endTs;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.USERS_USERID_PUSHPREFERENCE.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),o=new L({snooze_enabled:s,snooze_start_ts:t,snooze_end_ts:u});a.put(r,o,i)}}))}},{key:"registerGCMPushToken",value:function(e,i){var a=this,s=e.token;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.USERS_USERID_PUSH_GCM.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),r=new L({gcm_reg_token:s,always_push:!0});a.post(n,r,i)}}))}},{key:"unregisterGCMPushToken",value:function(e,t){var i=this,a=e.token;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_PUSH_GCM_TOKEN.replace("%s",encodeURIComponent(i.sb.currentUser.userId)).replace("%s",encodeURIComponent(a));i.delete(r,null,t)}}))}},{key:"unregisterAllGCMPushTokens",value:function(e,t){var i=this;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_PUSH_GCM.replace("%s",encodeURIComponent(i.sb.currentUser.userId));i.delete(r,null,t)}}))}},{key:"registerAPNSPushToken",value:function(e,i){var a=this,s=e.token;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.USERS_USERID_PUSH_APNS.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),r=new L({apns_device_token:s,always_push:!0});a.post(n,r,i)}}))}},{key:"unregisterAPNSPushToken",value:function(e,t){var i=this,a=e.token;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_PUSH_APNS_TOKEN.replace("%s",encodeURIComponent(i.sb.currentUser.userId)).replace("%s",encodeURIComponent(a));i.delete(r,null,t)}}))}},{key:"unregisterAllAPNSPushTokens",value:function(e,t){var i=this;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_PUSH_APNS.replace("%s",encodeURIComponent(i.sb.currentUser.userId));i.delete(r,null,t)}}))}},{key:"unregisterAllPushTokens",value:function(e,t){var i=this;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_PUSH.replace("%s",encodeURIComponent(i.sb.currentUser.userId));i.delete(r,null,t)}}))}},{key:"loadFriendList",value:function(e,i){var a=this,s=e.token,t=e.limit;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.FRIENDS.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),o=new L({limit:t,token:s});a.get(r,o,i)}}))}},{key:"getFriendChangeLogsByToken",value:function(e,i){var a=this,s=e.token;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.FRIENDS_CHANGE_LOGS.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),r=new L;s&&r.add("token",s),a.get(n,r,i)}}))}},{key:"addFriends",value:function(e,i){var a=this,s=e.userIds;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.FRIENDS.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),r=new L({user_ids:s});a.post(n,r,i)}}))}},{key:"deleteFriends",value:function(e,i){var a=this,s=e.userIds;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.FRIENDS.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),r=new L({user_ids:s});a.delete(n,r,i)}}))}},{key:"uploadFriendDiscoveries",value:function(e,a){var s=this,t=e.discoveries;this.sb.ConnectionManager.ready((function(e,n){if(e)a(e,null);else{var r=b.Path.FRIENDS_DISCOVERIES.replace("%s",encodeURIComponent(s.sb.currentUser.userId)),o=[];t.forEach((function(e){o.push({friend_discovery_key:e.friendDiscoveryKey,friend_name:"string"==typeof e.friendName||e.friendName?e.friendName:null})}));var i=new L({friend_discoveries:o});s.put(r,i,a)}}))}},{key:"deleteFriendDiscoveries",value:function(e,i){var a=this,s=e.discoveryKeys;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.FRIENDS_DISCOVERIES.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),r=new L({friend_discovery_keys:s});a.delete(n,r,i)}}))}},{key:"loadUserList",value:function(e,i){var a=this,s=e.token,t=e.limit,u=e.userIdsFilter,n=e.metaDataKeyFilter,r=e.metaDataValuesFilter;this.sb.ConnectionManager.ready((function(e,o){if(e)i(e,null);else{var l=b.Path.USERS,c=new L({token:s,limit:t});u&&0<u.length&&c.add("user_ids",u),n&&r&&0<r.length&&(c.add("metadatakey",n),c.add("metadatavalues_in",r)),a.get(l,c,i)}}))}},{key:"loadBlockedUserList",value:function(e,i){var a=this,s=e.token,t=e.limit,u=e.userIdsFilter;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.USERS_USERID_BLOCK.replace("%s",encodeURIComponent(a.sb.currentUser.userId)),o=new L({token:s,limit:t});u&&0<u.length&&o.add("user_ids",u),a.get(r,o,i)}}))}},{key:"createUserMetaData",value:function(e,i){var a=this,s=e.metaData;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.USERS_USERID_METADATA.replace("%s",encodeURIComponent(t.userId)),r=new L({metadata:s});a.post(n,r,i)}}))}},{key:"updateUserMetaData",value:function(e,i){var a=this,s=e.metaData,t=e.upsert;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.USERS_USERID_METADATA.replace("%s",encodeURIComponent(n.userId)),o=new L({metadata:s,upsert:t});a.put(r,o,i)}}))}},{key:"deleteUserMetaData",value:function(e,t){var i=this,a=e.metaDataKey;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_METADATA_KEY.replace("%s",encodeURIComponent(n.userId)).replace("%s",encodeURIComponent(a));i.delete(r,null,t)}}))}},{key:"deleteAllUserMetaData",value:function(e,t){var i=this;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_METADATA.replace("%s",encodeURIComponent(n.userId));i.delete(r,null,t)}}))}},{key:"getMessageChangeLogs",value:function(e,i){var a=this,s=e.channelUrl,t=e.ts,u=e.token,n=e.isOpenChannel,r=e.includeMetaArray,o=e.includeReaction;this.sb.ConnectionManager.ready((function(e,l){if(e)i(e,null);else{var c=n?b.Path.OPENCHANNELS_CHANNELURL_MESSAGES_CHANGELOGS.replace("%s",encodeURIComponent(s)):b.Path.GROUPCHANNELS_CHANNELURL_MESSAGES_CHANGELOGS.replace("%s",encodeURIComponent(s)),h=new L;u&&h.add("token",u),t&&h.add("change_ts",t),"boolean"==typeof r&&h.add("with_sorted_meta_array",r),"boolean"==typeof o&&h.add("include_reactions",o),a.get(c,h,i)}}))}},{key:"getMyMutedInfo",value:function(e,t){var i=this,a=e.channelUrl,s=e.userId,n=e.isGroupChannel;this.sb.ConnectionManager.ready((function(e,r){if(e)t(e,null);else{var o=n?b.Path.GROUPCHANNELS_CHANNELURL_MUTE_USERID.replace("%s",encodeURIComponent(a)).replace("%s",encodeURIComponent(s)):b.Path.OPENCHANNELS_CHANNELURL_MUTE_USERID.replace("%s",encodeURIComponent(a)).replace("%s",encodeURIComponent(s));i.get(o,null,t)}}))}},{key:"loadBannedUserList",value:function(e,i){var a=this,s=e.token,t=e.limit,u=e.channelUrl,n=e.isOpenChannel;this.sb.ConnectionManager.ready((function(e,r){if(e)i(e,null);else{var o=n?b.Path.OPENCHANNELS_CHANNELURL_BAN.replace("%s",encodeURIComponent(u)):b.Path.GROUPCHANNELS_CHANNELURL_BAN.replace("%s",encodeURIComponent(u)),l=new L({token:s,limit:t});a.get(o,l,i)}}))}},{key:"loadMutedUserList",value:function(e,i){var a=this,s=e.token,t=e.limit,u=e.channelUrl,n=e.isOpenChannel;this.sb.ConnectionManager.ready((function(e,r){if(e)i(e,null);else{var o=n?b.Path.OPENCHANNELS_CHANNELURL_MUTE.replace("%s",encodeURIComponent(u)):b.Path.GROUPCHANNELS_CHANNELURL_MUTE.replace("%s",encodeURIComponent(u)),l=new L({token:s,limit:t});a.get(o,l,i)}}))}},{key:"getMessageList",value:function(e,i){var a=this,s=e.channel,t=e.token,u=e.tokenType,n=e.isInclusive,r=e.prevResultSize,o=void 0===r?0:r,l=e.nextResultSize,c=void 0===l?0:l,h=e.shouldReverse,p=e.messageType,d=e.customType,f=e.senderUserIds,g=e.includeMetaArray,m=e.includeReaction;this.sb.ConnectionManager.ready((function(e,r){if(e)i(e,null);else{var l=s.isOpenChannel()?b.Path.OPENCHANNELS_CHANNELURL_MESSAGES.replace("%s",s.url):b.Path.GROUPCHANNELS_CHANNELURL_MESSAGES.replace("%s",s.url),A=new L({is_sdk:String(!0),prev_limit:String(o),next_limit:String(c),include:String(n),reverse:String(h)});"timestamp"===u?A.add("message_ts",t):"messageId"===u&&A.add("message_id",String(t)),p&&A.add("message_type",String(p)),d&&A.add("custom_type",String(d)),Array.isArray(f)&&0<f.length&&A.add("sender_ids",f),"boolean"==typeof g&&A.add("with_sorted_meta_array",g),"boolean"==typeof m&&A.add("include_reactions",m),a.get(l,A,i)}}))}},{key:"translateUserMessage",value:function(e,i){var a=this,s=e.channelUrl,t=e.isOpenChannel,u=e.messageId,n=e.translationTargetLanguages;this.sb.ConnectionManager.ready((function(e,r){if(e)i(e,null);else{var o=t?b.Path.OPENCHANNELS_CHANNELURL_MESSAGES_MESSAGEID_TRANSLATION.replace("%s",encodeURIComponent(s)).replace("%s",u):b.Path.GROUPCHANNELS_CHANNELURL_MESSAGES_MESSAGEID_TRANSLATION.replace("%s",encodeURIComponent(s)).replace("%s",u),l=new L({target_langs:n});a.post(o,l,i)}}))}},{key:"deleteMessage",value:function(e,t){var i=this,a=e.channelUrl,s=e.isOpenChannel,n=e.messageId;this.sb.ConnectionManager.ready((function(e,r){if(e)t(e,null);else{var o=s?b.Path.OPENCHANNELS_CHANNELURL_MESSAGES_MESSAGEID.replace("%s",encodeURIComponent(a)).replace("%s",encodeURIComponent(n)):b.Path.GROUPCHANNELS_CHANNELURL_MESSAGES_MESSAGEID.replace("%s",encodeURIComponent(a)).replace("%s",encodeURIComponent(n));i.delete(o,null,t)}}))}},{key:"muteUser",value:function(e,i){var a=this,s=e.channelUrl,t=e.userId,u=e.description,n=e.seconds,r=e.isGroupChannel;this.sb.ConnectionManager.ready((function(e,o){if(e)i(e,null);else{var l=r?b.Path.GROUPCHANNELS_CHANNELURL_MUTE.replace("%s",encodeURIComponent(s)):b.Path.OPENCHANNELS_CHANNELURL_MUTE.replace("%s",encodeURIComponent(s)),c=new L({user_id:t});n&&(0<n||-1!==n)&&c.add("seconds",n),u&&c.add("description",u),a.post(l,c,i)}}))}},{key:"unmuteUser",value:function(e,t){var i=this,a=e.channelUrl,s=e.userId,n=e.isGroupChannel;this.sb.ConnectionManager.ready((function(e,r){if(e)t(e,null);else{var o=n?b.Path.GROUPCHANNELS_CHANNELURL_MUTE_USERID.replace("%s",encodeURIComponent(a)).replace("%s",encodeURIComponent(s)):b.Path.OPENCHANNELS_CHANNELURL_MUTE_USERID.replace("%s",encodeURIComponent(a)).replace("%s",encodeURIComponent(s));i.delete(o,null,t)}}))}},{key:"banUser",value:function(e,i){var a=this,s=e.channelUrl,t=e.userId,u=e.description,n=e.seconds,r=e.isGroupChannel;this.sb.ConnectionManager.ready((function(e,o){if(e)i(e,null);else{var l=r?b.Path.GROUPCHANNELS_CHANNELURL_BAN.replace("%s",encodeURIComponent(s)):b.Path.OPENCHANNELS_CHANNELURL_BAN.replace("%s",encodeURIComponent(s)),c=new L({user_id:t});u&&c.add("description",u),c.add("seconds",String(n)),a.post(l,c,i)}}))}},{key:"unbanUser",value:function(e,t){var i=this,a=e.channelUrl,s=e.userId,n=e.isGroupChannel;this.sb.ConnectionManager.ready((function(e,r){if(e)t(e,null);else{var o=n?b.Path.GROUPCHANNELS_CHANNELURL_BAN_USERID.replace("%s",encodeURIComponent(a)).replace("%s",encodeURIComponent(s)):b.Path.OPENCHANNELS_CHANNELURL_BAN_USERID.replace("%s",encodeURIComponent(a)).replace("%s",encodeURIComponent(s));i.delete(o,null,t)}}))}},{key:"getMetaCounters",value:function(e,i){var a=this,s=e.channelUrl,t=e.isOpenChannel,u=e.keys;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=t?b.Path.OPENCHANNELS_CHANNELURL_METACOUNTER.replace("%s",encodeURIComponent(s)):b.Path.GROUPCHANNELS_CHANNELURL_METACOUNTER.replace("%s",encodeURIComponent(s)),o=new L({keys:u});a.get(r,o,i)}}))}},{key:"createMetaCounters",value:function(e,i){var a=this,s=e.channelUrl,t=e.isOpenChannel,u=e.metaCounter;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=t?b.Path.OPENCHANNELS_CHANNELURL_METACOUNTER.replace("%s",encodeURIComponent(s)):b.Path.GROUPCHANNELS_CHANNELURL_METACOUNTER.replace("%s",encodeURIComponent(s)),o=new L({metacounter:u});a.post(r,o,i)}}))}},{key:"updateMetaCounters",value:function(e,i){var a=this,s=e.channelUrl,t=e.isOpenChannel,u=e.metaCounter,n=e.upsert,r=e.mode;this.sb.ConnectionManager.ready((function(e,o){if(e)i(e,null);else{var l=t?b.Path.OPENCHANNELS_CHANNELURL_METACOUNTER.replace("%s",encodeURIComponent(s)):b.Path.GROUPCHANNELS_CHANNELURL_METACOUNTER.replace("%s",encodeURIComponent(s)),c=new L({metacounter:u,upsert:n,mode:r});a.put(l,c,i)}}))}},{key:"deleteMetaCounter",value:function(e,t){var i=this,a=e.channelUrl,s=e.isOpenChannel,n=e.key;this.sb.ConnectionManager.ready((function(e,r){if(e)t(e,null);else{var o=s?b.Path.OPENCHANNELS_CHANNELURL_METACOUNTER_KEY.replace("%s",encodeURIComponent(a)).replace("%s",n):b.Path.GROUPCHANNELS_CHANNELURL_METACOUNTER_KEY.replace("%s",encodeURIComponent(a)).replace("%s",n);i.delete(o,null,t)}}))}},{key:"deleteAllMetaCounters",value:function(e,t){var i=this,a=e.channelUrl,s=e.isOpenChannel;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=s?b.Path.OPENCHANNELS_CHANNELURL_METACOUNTER.replace("%s",encodeURIComponent(a)):b.Path.GROUPCHANNELS_CHANNELURL_METACOUNTER.replace("%s",encodeURIComponent(a));i.delete(r,null,t)}}))}},{key:"getMetaData",value:function(e,i){var a=this,s=e.channelUrl,t=e.isOpenChannel,u=e.keys;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=t?b.Path.OPENCHANNELS_CHANNELURL_METADATA.replace("%s",encodeURIComponent(s)):b.Path.GROUPCHANNELS_CHANNELURL_METADATA.replace("%s",encodeURIComponent(s)),o=new L({keys:u});a.get(r,o,i)}}))}},{key:"createMetaData",value:function(e,i){var a=this,s=e.channelUrl,t=e.isOpenChannel,u=e.metaData;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=t?b.Path.OPENCHANNELS_CHANNELURL_METADATA.replace("%s",encodeURIComponent(s)):b.Path.GROUPCHANNELS_CHANNELURL_METADATA.replace("%s",encodeURIComponent(s)),o=new L({metadata:u});a.post(r,o,i)}}))}},{key:"updateMetaData",value:function(e,i){var a=this,s=e.channelUrl,t=e.isOpenChannel,u=e.metaData,n=e.upsert;this.sb.ConnectionManager.ready((function(e,r){if(e)i(e,null);else{var o=t?b.Path.OPENCHANNELS_CHANNELURL_METADATA.replace("%s",encodeURIComponent(s)):b.Path.GROUPCHANNELS_CHANNELURL_METADATA.replace("%s",encodeURIComponent(s)),l=new L({metadata:u,upsert:n});a.put(o,l,i)}}))}},{key:"deleteMetaData",value:function(e,t){var i=this,a=e.channelUrl,s=e.isOpenChannel,n=e.key;this.sb.ConnectionManager.ready((function(e,r){if(e)t(e,null);else{var o=s?b.Path.OPENCHANNELS_CHANNELURL_METADATA_KEY.replace("%s",encodeURIComponent(a)).replace("%s",n):b.Path.GROUPCHANNELS_CHANNELURL_METADATA_KEY.replace("%s",encodeURIComponent(a)).replace("%s",n);i.delete(o,null,t)}}))}},{key:"deleteAllMetaData",value:function(e,t){var i=this,a=e.channelUrl,s=e.isOpenChannel;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=s?b.Path.OPENCHANNELS_CHANNELURL_METADATA.replace("%s",encodeURIComponent(a)):b.Path.GROUPCHANNELS_CHANNELURL_METADATA.replace("%s",encodeURIComponent(a));i.delete(r,null,t)}}))}},{key:"loadOperatorList",value:function(e,i){var a=this,s=e.channelUrl,t=e.isOpenChannel,u=e.token,n=e.limit;this.sb.ConnectionManager.ready((function(e,r){if(e)i(e,null);else{var o=t?b.Path.OPENCHANNELS_OPERATORS.replace("%s",encodeURIComponent(s)):b.Path.GROUPCHANNELS_OPERATORS.replace("%s",encodeURIComponent(s)),l=new L({token:u,limit:n});a.get(o,l,i)}}))}},{key:"getOpenChannel",value:function(e,t){var i=this,a=e.channelUrl;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.OPENCHANNELS_CHANNELURL.replace("%s",encodeURIComponent(a));i.get(r,null,t)}}))}},{key:"loadOpenChannelList",value:function(e,i){var a=this,s=e.token,t=e.limit,u=e.nameKeyword,n=e.urlKeyword,r=e.customTypes;this.sb.ConnectionManager.ready((function(e,o){if(e)i(e,null);else{var l=b.Path.OPENCHANNELS,c=new L({token:s,limit:t});u&&c.add("name_contains",u),n&&c.add("url_contains",n),r&&0<r.length&&c.add("custom_types",r),a.get(l,c,i)}}))}},{key:"loadParticipantList",value:function(e,i){var a=this,s=e.token,t=e.limit,u=e.channelUrl;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.OPENCHANNELS_CHANNELURL_PARTICIPANTS.replace("%s",encodeURIComponent(u)),o=new L({token:s,limit:t});a.get(r,o,i)}}))}},{key:"createOpenChannel",value:function(e,i){var a=this,s=e.name,t=e.coverUrlOrImage,u=e.data,n=e.operatorUserIds,r=e.customType;this.sb.ConnectionManager.ready((function(e,o){if(e)i(e,null);else{var l=b.Path.OPENCHANNELS,c=new L;"string"==typeof t&&c.add("cover_url",t),N.isFile(t)&&c.add("cover_file",t),null!==s&&"string"==typeof s&&c.add("name",s),u&&c.add("data",u),n&&(Array.isArray(n)?c.add("operators",n):c.add("operators",[n])),r&&c.add("custom_type",r),a.post(l,c,i)}}))}},{key:"updateOpenChannel",value:function(e,i){var a=this,s=e.channelUrl,t=e.name,u=e.coverUrlOrImage,n=e.data,r=e.operatorUserIds,o=e.customType;this.sb.ConnectionManager.ready((function(e,l){if(e)i(e,null);else{var c=b.Path.OPENCHANNELS_CHANNELURL.replace("%s",encodeURIComponent(s)),h=new L;"string"==typeof u&&h.add("cover_url",u),N.isFile(u)&&h.add("cover_file",u,u.name),null!==t&&"string"==typeof t&&h.add("name",t),null!==n&&"string"==typeof n&&h.add("data",n),null!==r&&(Array.isArray(r)?h.add("operator_ids",r):h.add("operator_ids",[r])),null!==o&&"string"==typeof o&&h.add("custom_type",o),a.put(c,h,i)}}))}},{key:"deleteOpenChannel",value:function(e,t){var i=this,a=e.channelUrl;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.OPENCHANNELS_CHANNELURL.replace("%s",encodeURIComponent(a));i.delete(r,null,t)}}))}},{key:"getGroupChannel",value:function(e,i){var a=this,s=e.channelUrl,t=e.showMember,u=e.showReadReceipt;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.GROUPCHANNELS_CHANNELURL.replace("%s",encodeURIComponent(s)),o=new L({show_member:t,show_read_receipt:u});a.get(r,o,i)}}))}},{key:"loadGroupChannelList",value:function(e,i){var a=this,s=e.token,t=e.limit,u=e.includeEmpty,n=e.order,r=e.userIdsFilter,o=e.nicknameContainsFilter,l=e.channelNameContainsFilter,p=e.channelUrlsFilter,c=e.customTypesFilter,h=e.customTypeStartsWithFilter,g=e.memberStateFilter,d=e.superChannelFilter,f=e.publicChannelFilter,m=e.unreadChannelFilter,A=e.metadataOrderKeyFilter,y=e.hiddenChannelFilter,v=e.searchFilter;this.sb.ConnectionManager.ready((function(e,_){if(e)i(e,null);else{var w=b.Path.MYGROUPCHANNELS.replace("%s",encodeURIComponent(a.sb.currentUser.userId)
2),x=new L({token:s,limit:t,order:n,show_member:!0,show_read_receipt:!0,show_empty:String(u),member_state_filter:g});c&&0<c.length&&x.add("custom_types",c),o&&x.add("members_nickname_contains",o),l&&x.add("name_contains",l),v.hasOwnProperty("search_query")&&v.hasOwnProperty("search_fields")&&(x.add("search_query",v.search_query),x.add("search_fields",v.search_fields)),r.userIds&&0<r.userIds.length&&(r.includeMode?(x.add("members_include_in",r.userIds),x.add("query_type",r.queryType.toUpperCase())):x.add("members_exactly_in",r.userIds)),p&&0<p.length&&x.add("channel_urls",p),x.add("super_mode",d),x.add("public_mode",f),x.add("unread_filter",m),A&&x.add("metadata_order_key",A),h&&x.add("custom_type_startswith",h),y&&x.add("hidden_mode",y),a.get(w,x,i)}}))}},{key:"loadPublicGroupChannelList",value:function(e,a){var s=this,t=e.token,u=e.limit,n=e.includeEmpty,r=e.order,o=e.channelNameContainsFilter,l=e.channelUrlsFilter,p=e.customTypesFilter,c=e.customTypeStartsWithFilter,h=e.superChannelFilter,g=e.membershipFilter,d=e.metadataOrderKeyFilter;this.sb.ConnectionManager.ready((function(e,f){if(e)a(e,null);else{var m=s.cls.GroupChannel,A=b.Path.GROUPCHANNELS,i=new L({token:t,limit:u,order:r,show_member:!0,show_read_receipt:!0,show_empty:String(n),public_mode:m.PublicChannelFilter.PUBLIC,public_membership_mode:g});p&&0<p.length&&i.add("custom_types",p),o&&i.add("name_contains",o),l&&0<l.length&&i.add("channel_urls",l),i.add("super_mode",h),d&&i.add("metadata_order_key",d),c&&i.add("custom_type_startswith",c),s.get(A,i,a)}}))}},{key:"createGroupChannel",value:function(e,i){var a=this,s=e.isDistinct,t=e.isSuper,u=e.isBroadcast,n=e.isPublic,r=e.channelUrl,o=e.isDiscoverable,l=e.isStrict,p=e.name,c=e.data,h=e.customType,g=e.coverUrl,d=e.coverImage,f=e.accessCode,m=e.isEphemeral,A=e._invitedUserIds,y=void 0===A?[]:A,v=e.operatorUserIds,_=e.messageSurvivalSeconds;this.sb.ConnectionManager.ready((function(e,A){if(e)i(e,null);else{var x=b.Path.GROUPCHANNELS,E=new L({user_ids:[A.userId].concat(w(y)).filter((function(e,t,n){return t===n.indexOf(e)}))});null!==g&&"string"==typeof g&&E.add("cover_url",g),N.isFile(d)&&E.add("cover_file",d,d.name),null!==r&&E.add("channel_url",r),null!==s&&E.add("is_distinct",s),null!==t&&E.add("is_super",t),null!==u&&E.add("is_broadcast",u),null!==n&&E.add("is_public",n),null!==o&&E.add("is_discoverable",o),null!==l&&E.add("strict",l),null!==m&&E.add("is_ephemeral",m),f&&E.add("access_code",f),null!==p&&"string"==typeof p&&E.add("name",p),c&&E.add("data",c),h&&E.add("custom_type",h),Array.isArray(v)&&0<v.length&&E.add("operator_ids",v),null!==_&&-1<_&&E.add("message_survival_seconds",_),a.post(x,E,i)}}))}},{key:"updateGroupChannel",value:function(e,i){var a=this,s=e.isDistinct,t=e.isPublic,u=e.channelUrl,n=e.isDiscoverable,r=e.name,o=e.data,l=e.customType,p=e.coverUrl,c=e.coverImage,h=e.accessCode,g=e.operatorUserIds,d=e.messageSurvivalSeconds;this.sb.ConnectionManager.ready((function(e,f){if(e)i(e,null);else{var m=b.Path.GROUPCHANNELS_CHANNELURL.replace("%s",encodeURIComponent(u)),A=new L;null!==s&&A.add("is_distinct",s),null!==t&&A.add("is_public",t),null!==n&&A.add("is_discoverable",n),null!==h&&A.add("access_code",h),null!==p&&"string"==typeof p&&A.add("cover_url",p),N.isFile(c)&&A.add("cover_file",c,c.name),null!==r&&"string"==typeof r&&A.add("name",r),null!==o&&"string"==typeof o&&A.add("data",o),null!==l&&"string"==typeof l&&A.add("custom_type",l),null!==g&&(Array.isArray(g)?A.add("operator_ids",g):g&&A.add("operator_ids",[g])),null!==d&&-1<d&&A.add("message_survival_seconds",d),a.put(m,A,i)}}))}},{key:"inviteToGroupChannel",value:function(e,i){var a=this,s=e.channelUrl,t=e.userIds;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.GROUPCHANNELS_CHANNELURL_INVITE.replace("%s",encodeURIComponent(s)),o=new L({user_ids:t});a.post(r,o,i)}}))}},{key:"acceptInvitation",value:function(e,i){var a=this,s=e.channelUrl,t=e.accessCode;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.GROUPCHANNELS_CHANNELURL_ACCEPT_INVITATION.replace("%s",encodeURIComponent(s)),o=new L({user_id:a.sb.currentUser.userId});t&&o.add("access_code",t),a.put(r,o,i)}}))}},{key:"declineInvitation",value:function(e,i){var a=this,s=e.channelUrl;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.GROUPCHANNELS_CHANNELURL_DECLINE_INVITATION.replace("%s",encodeURIComponent(s)),r=new L({user_id:a.sb.currentUser.userId});a.put(n,r,i)}}))}},{key:"joinGroupChannel",value:function(e,i){var a=this,s=e.channelUrl,t=e.accessCode;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.GROUPCHANNELS_CHANNELURL_JOIN.replace("%s",encodeURIComponent(s)),o=new L({user_id:a.sb.currentUser.userId});t&&o.add("access_code",t),a.put(r,o,i)}}))}},{key:"leaveGroupChannel",value:function(e,i){var a=this,s=e.channelUrl;this.sb.ConnectionManager.ready((function(e,t){if(e)i(e,null);else{var n=b.Path.GROUPCHANNELS_CHANNELURL_LEAVE.replace("%s",encodeURIComponent(s)),r=new L({user_id:a.sb.currentUser.userId});a.put(n,r,i)}}))}},{key:"hideGroupChannel",value:function(e,i){var a=this,s=e.channelUrl,t=e.hidePreviousMessages,u=e.allowAutoUnhide;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.GROUPCHANNELS_CHANNELURL_HIDE.replace("%s",encodeURIComponent(s)),o=new L({user_id:a.sb.currentUser.userId,hide_previous_messages:t,allow_auto_unhide:u});a.put(r,o,i)}}))}},{key:"unhideGroupChannel",value:function(e,t){var i=this,a=e.channelUrl;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.GROUPCHANNELS_CHANNELURL_HIDE.replace("%s",encodeURIComponent(a));i.delete(r,null,t)}}))}},{key:"freeze",value:function(e,i){var a=this,s=e.channelUrl,t=e.isGroupChannel,u=e.freezing;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=t?b.Path.GROUPCHANNELS_CHANNELURL_FREEZE.replace("%s",encodeURIComponent(s)):b.Path.OPENCHANNELS_CHANNELURL_FREEZE.replace("%s",encodeURIComponent(s)),o=new L({freeze:u});a.put(r,o,i)}}))}},{key:"deleteGroupChannel",value:function(e,t){var i=this,a=e.channelUrl;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.GROUPCHANNELS_CHANNELURL.replace("%s",encodeURIComponent(a));i.delete(r,null,t)}}))}},{key:"loadMemberList",value:function(e,i){var a=this,s=e.channelUrl,t=e.token,u=e.limit,n=e.mutedMemberFilter,r=e.order,o=e.memberStateFilter,l=e.nicknameStartsWithFilter;
vendor: 4,670 bytes, line 2
2this.sb.ConnectionManager.ready((function(e,c){if(e)i(e,null);else{var h=b.Path.GROUPCHANNELS_MEMBERS.replace("%s",encodeURIComponent(s)),d=new L({token:t,limit:u,order:r.toLowerCase(),muted_member_filter:n.toLowerCase(),member_state_filter:o});l&&d.add("nickname_startswith",l),a.get(h,d,i)}}))}},{key:"report",value:function(e,i){var a=this,s=e.channelUrl,t=e.isOpenChannel,u=e.reportCategory,n=e.reportingUserId,r=e.reportDescription;this.sb.ConnectionManager.ready((function(e,o){if(e)i(e,null);else{var l=b.Path.REPORT_CHANNELS.replace("%s",encodeURIComponent(t?"open_channels":"group_channels")).replace("%s",encodeURIComponent(s)),c=new L({report_category:u});null!=n&&c.add("reporting_user_id",n),null!=r&&c.add("report_description",r),a.post(l,c,i)}}))}},{key:"reportUser",value:function(e,i){var a=this,s=e.offendingUserId,t=e.channelUrl,u=e.isOpenChannel,n=e.reportCategory,r=e.reportingUserId,o=e.reportDescription;this.sb.ConnectionManager.ready((function(e,l){if(e)i(e,null);else{var c=b.Path.REPORT_USERS.replace("%s",encodeURIComponent(s)),h=new L({channel_url:t,channel_type:u?"open_channels":"group_channels",report_category:n});null!=r&&h.add("reporting_user_id",r),null!=o&&h.add("report_description",o),a.post(c,h,i)}}))}},{key:"reportMessage",value:function(e,i){var a=this,s=e.channelUrl,t=e.isOpenChannel,u=e.messageId,n=e.reportCategory,r=e.reportingUserId,o=e.reportDescription,l=e.offendingUserId;this.sb.ConnectionManager.ready((function(e,c){if(e)i(e,null);else{var h=b.Path.REPORT_MESSAGES.replace("%s",encodeURIComponent(t?"open_channels":"group_channels")).replace("%s",encodeURIComponent(s)).replace("%s",encodeURIComponent(u)),d=new L({report_category:n,offending_user_id:l});null!=r&&d.add("reporting_user_id",r),null!=o&&d.add("report_description",o),a.post(h,d,i)}}))}},{key:"sendUserMessage",value:function(e,a){var s=this,t=e.channelUrl,u=e.isOpenChannel,n=e.message,r=e.data,o=e.customType,l=e.translationTargetLanguages,p=e.metaArrays,c=e.mentionType,h=e.mentionedUserIds,g=e.pushNotificationDeliveryOption;this.sb.ConnectionManager.ready((function(e,d){if(e)a(e,null);else{var f=s.cls.FileMessageParams,m=u?b.Path.OPENCHANNELS_CHANNELURL_MESSAGES.replace("%s",encodeURIComponent(t)):b.Path.GROUPCHANNELS_CHANNELURL_MESSAGES.replace("%s",encodeURIComponent(t)),i=new L({message_type:"MESG",user_id:s.sb.currentUser.userId,message:n,mention_type:c,mentioned_user_ids:[]});null!=r&&i.add("data",r),null!=o&&i.add("custom_type",o),l&&i.add("translation_target_langs",l),p&&0<p.length&&i.add("sorted_metaarray",p.map((function(e){return e.encode()}))),c===s.cls.BaseMessageParams.MentionType.CHANNEL?i.add("mentioned_user_ids",[]):Array.isArray(h)&&0<h.length&&i.add("mentioned_user_ids",h),g&&g!==f.PushNotificationDeliveryOption.DEFAULT&&i.add("push_option",g),s.post(m,i,a)}}))}},{key:"sendFileMessage",value:function(e,a){var s=this,t=e.channelUrl,u=e.isOpenChannel,n=e.fileUrl,r=e.fileName,o=e.fileSize,l=e.fileType,p=e.data,c=e.customType,h=e.thumbnailSizes,g=e.requireAuth,d=e.metaArrays,f=e.mentionType,m=e.mentionedUserIds,A=e.pushNotificationDeliveryOption;this.sb.ConnectionManager.ready((function(e,y){if(e)a(e,null);else{var v=s.cls.FileMessageParams,_=u?b.Path.OPENCHANNELS_CHANNELURL_MESSAGES.replace("%s",encodeURIComponent(t)):b.Path.GROUPCHANNELS_CHANNELURL_MESSAGES.replace("%s",encodeURIComponent(t)),i=new L({message_type:"FILE",user_id:s.sb.currentUser.userId,url:n,mention_type:f,mentioned_user_ids:[]});null!=r&&i.add("file_name",r),null!=o&&i.add("file_size",o),null!=l&&i.add("file_type",l),null!=p&&i.add("custom_field",p),null!=c&&i.add("custom_type",c),h&&i.add("thumbnails",h),g&&i.add("require_auth",g),d&&0<d.length&&i.add("sorted_metaarray",d.map((function(e){return e.encode()}))),f===s.cls.BaseMessageParams.MentionType.CHANNEL?i.add("mentioned_user_ids",[]):Array.isArray(m)&&0<m.length&&i.add("mentioned_user_ids",m),A&&A!==v.PushNotificationDeliveryOption.DEFAULT&&i.add("push_option",A),s.post(_,i,a)}}))}},{key:"uploadFile",value:function(e,a){var s=this,t=e.file,u=e.thumbnailSizes,n=e.channelUrl,r=e.progressHandler,o=e.reqId;this.sb.ConnectionManager.ready((function(e,l){if(e)a(e,null);else{var c=b.Path.STORAGE_FILE,h=new L;if(h.add("file",t,t.name),n&&"string"==typeof n&&h.add("channel_url",n),u)for(var i=0;i<u.length;i++)h.add("thumbnail"+(i+1),u[i].maxWidth+","+u[i].maxHeight);h.upload.reqId=o,h.upload.deleteRequest=function(){var e=s.cls.FileMessageQueue;e.uploadRequest[o]&&delete e.uploadRequest[o]},h.upload.progressHandler=function(e){r&&"function"==typeof r&&r(e,o)},s.post(c,h,a)}}))}},{key:"registerScheduledUserMessage",value:function(e,i){var a=this,s=e.groupChannelParam
2s,t=e.channelUrl,u=e.isOpenChannel;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=u?b.Path.OPENCHANNELS_CHANNELURL_SCHEDULED_MESSAGES.replace("%s",encodeURIComponent(t)):b.Path.GROUPCHANNELS_CHANNELURL_SCHEDULED_MESSAGES.replace("%s",encodeURIComponent(t)),o=new L({scheduled_dt:s._getScheduleString(),user_id:a.sb.currentUser.userId,message:s.message,data:s.data});s.customType&&o.add("custom_type",s.customType),s.metaArrayKeys&&0<Object.keys(s.metaArrayKeys).length&&o.add("metaarray",s.metaArrayKeys),s.mentionType&&o.add("mention_type",s._mentionType),s._mentionType===a.cls.BaseMessageParams.MentionType.CHANNEL?o.add("mentioned_user_ids",[]):Array.isArray(s._mentionedUserIds)&&0<s._mentionedUserIds.length&&o.add("mentioned_user_ids",s._mentionedUserIds),s.translationTargetLanguages&&0<s.translationTargetLanguages.length&&o.add("translation_target_langs",s.translationTargetLanguages),s.pushNotificationDeliveryOption&&s.pushNotificationDeliveryOption!==a.cls.BaseMessageParams.PushNotificationDeliveryOption.DEFAULT&&o.add("push_option",s.pushNotificationDeliveryOption),a.post(r,o,i)}}))}},{key:"getMyPushTriggerOption",value:function(e,t){var i=this,a=e.channelUrl;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.USERS_USERID_PUSHPREFERENCE_CHANNELURL.replace("%s",encodeURIComponent(i.sb.currentUser.userId)).replace("%s",encodeURIComponent(a));i.get(r,null,t)}}))}},{key:"setMyPushTriggerOption",value:function(e,i){var a=this,s=e.channelUrl,t=e.pushTriggerOption,u=e.enable;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.USERS_USERID_PUSHPREFERENCE_CHANNELURL.replace("%s",encodeURIComponent(a.sb.currentUser.userId)).replace("%s",encodeURIComponent(s)),o=new L;t&&o.add("push_trigger_option",t),"boolean"==typeof u&&o.add("enable",u),a.put(r,o,i)}}))}},{key:"setMyCountPreference",value:function(e,i){var a=this,s=e.channelUrl,t=e.countPreference;this.sb.ConnectionManager.ready((function(e,n){if(e)i(e,null);else{var r=b.Path.USERS_COUNT_PREFERENCE.replace("%s",encodeURIComponent(a.sb.currentUser.userId)).replace("%s",encodeURIComponent(s)),o=new L({count_preference:t});a.put(r,o,i)}}))}},{key:"resetMyHistory",value:function(e,t){var i=this,a=e.channelUrl;this.sb.ConnectionManager.ready((function(e,n){if(e)t(e,null);else{var r=b.Path.GROUPCHANNELS_RESET_USER_HISTORY.replace("%s",encodeURIComponent(a));i.put(r,null,t)}}))}},{key:"addReaction",value:function(e,i){var a=this,s=e.isGroupChannel,t=e.channelUrl,u=e.messageId,n=e.key;this.sb.ConnectionManager.ready((function(e,r){if(e)i(e,null);else{var o=s?b.Path.GROUPCHANNELS_CHANNELURL_MESSAGES_MESSAGEID_REACTION.replace("%s",encodeURIComponent(t)).replace("%s",encodeURIComponent(u)):b.Path.OPENCHANNELS_CHANNELURL_MESSAGES_MESSAGEID_REACTION.replace("%s",encodeURIComponent(t)).replace("%s",encodeURIComponent(u)),l=new L({reaction:n});a.post(o,l,i)}}))}},{key:"deleteReaction",value:function(e,i){var a=this,s=e.isGroupChannel,t=e.channelUrl,u=e.messageId,n=e.key;this.sb.ConnectionManager.ready((function(e,r){if(e)i(e,null);else{var o=s?b.Path.GROUPCHANNELS_CHANNELURL_MESSAGES_MESSAGEID_REACTION.replace("%s",encodeURIComponent(t)).replace("%s",encodeURIComponent(u)):b.Path.OPENCHANNELS_CHANNELURL_MESSAGES_MESSAGEID_REACTION.replace("%s",encodeURIComponent(t)).replace("%s",encodeURIComponent(u)),l=new L({reaction:n});a.delete(o,l,i)}}))}}],[{key:"Path",get:function(){var e;return a(e={USERS:"/users",USERS_USERID:"/users/%s",USERS_USERID_LOGIN:"/users/%s/login",USERS_USERID_METADATA:"/users/%s/metadata",USERS_USERID_METADATA_KEY:"/users/%s/metadata/%s",USERS_USERID_MARKASREADALL:"/users/%s/mark_as_read_all",USERS_USERID_MY_GROUP_CHANNEL_CHANGELOGS:"/users/%s/my_group_channels/changelogs",USERS_USERID_UNREAD_ITEM_COUNT:"/users/%s/unread_item_count",USERS_USERID_UNREAD_MESSAGE_COUNT:"/users/%s/unread_message_count",USERS_USERID_UNREAD_CHANNEL_COUNT:"/users/%s/unread_channel_count",USERS_USERID_PUSH_GCM_TOKEN:"/users/%s/push/gcm/%s",USERS_USERID_PUSH_GCM:"/users/%s/push/gcm",USERS_USERID_PUSH_DEVICE_TOKENS:"/users/%s/push/%s/device_tokens",USERS_USERID_PUSHPREFERENCE_CHANNELURL:"/users/%s/push_preference/%s",USERS_USERID_PUSHPREFERENCE:"/users/%s/push_preference/",USERS_USERID_PUSH_TEMPLATE:"/users/%s/push/template",USERS_USERID_BLOCK:"/users/%s/block",USERS_USERID_BLOCK_TARGETID:"/users/%s/block/%s",USERS_USERID_PUSH_APNS_TOKEN:"/users/%s/push/
2apns/%s",USERS_USERID_PUSH_APNS:"/users/%s/push/apns",USERS_USERID_PUSH:"/users/%s/push",USERS_USERID_GROUP_CHANNEL_INVITATION_PREFERENCE:"/users/%s/channel_invitation_preference",USERS_USERID_GROUP_CHANNEL_COUNT:"/users/%s/group_channel_count",USERS_COUNT_PREFERENCE:"/users/%s/count_preference/%s",OPENCHANNELS:"/open_channels",OPENCHANNELS_CHANNELURL:"/open_channels/%s",OPENCHANNELS_CHANNELURL_MESSAGES:"/open_channels/%s/messages",OPENCHANNELS_CHANNELURL_MESSAGES_MESSAGEID:"/open_channels/%s/messages/%s",OPENCHANNELS_CHANNELURL_MESSAGES_MESSAGEID_TRANSLATION:"/open_channels/%s/messages/%s/translation",OPENCHANNELS_CHANNELURL_MESSAGES_CHANGELOGS:"/open_channels/%s/messages/changelogs",OPENCHANNELS_CHANNELURL_SCHEDULED_MESSAGES:"/open_channels/%s/scheduled_messages",OPENCHANNELS_CHANNELURL_PARTICIPANTS:"/open_channels/%s/participants",OPENCHANNELS_CHANNELURL_METADATA:"/open_channels/%s/metadata",OPENCHANNELS_CHANNELURL_METADATA_KEY:"/open_channels/%s/metadata/%s",OPENCHANNELS_CHANNELURL_METACOUNTER:"/open_channels/%s/metacounter",OPENCHANNELS_CHANNELURL_METACOUNTER_KEY:"/open_channels/%s/metacounter/%s",OPENCHANNELS_CHANNELURL_BAN:"/open_channels/%s/ban",OPENCHANNELS_CHANNELURL_BAN_USERID:"/open_channels/%s/ban/%s",OPENCHANNELS_CHANNELURL_MUTE:"/open_channels/%s/mute",OPENCHANNELS_CHANNELURL_MUTE_USERID:"/open_channels/%s/mute/%s",OPENCHANNELS_CHANNELURL_FREEZE:"/open_channels/%s/freeze",OPENCHANNELS_OPERATORS:"/open_channels/%s/operators",OPENCHANNELS_CHANNELURL_MESSAGES_MESSAGEID_REACTION:"/open_channels/%s/messages/%s/reactions",GROUPCHANNELS:"/group_channels",MYGROUPCHANNELS:"/users/%s/my_group_channels",GROUPCHANNELS_CHANNELURL:"/group_channels/%s",GROUPCHANNELS_CHANNELURL_INVITE:"/group_channels/%s/invite",GROUPCHANNELS_CHANNELURL_ACCEPT_INVITATION:"/group_channels/%s/accept",GROUPCHANNELS_CHANNELURL_DECLINE_INVITATION:"/group_channels/%s/decline",GROUPCHANNELS_CHANNELURL_HIDE:"/group_channels/%s/hide",GROUPCHANNELS_CHANNELURL_LEAVE:"/group_channels/%s/leave",GROUPCHANNELS_CHANNELURL_JOIN:"/group_channels/%s/join",GROUPCHANNELS_CHANNELURL_MESSAGES:"/group_channels/%s/messages",GROUPCHANNELS_CHANNELURL_MESSAGES_MARKASREAD:"/group_channels/%s/messages/mark_as_read",GROUPCHANNELS_CHANNELURL_MESSAGES_MARKASDELIVERED:"/group_channels/%s/messages/mark_as_delivered",GROUPCHANNELS_CHANNELURL_MESSAGES_TOTALCOUNT:"/group_channels/%s/messages/total_count",GROUPCHANNELS_CHANNELURL_MESSAGES_UNREADCOUNT:"/group_channels/%s/messages/unread_count",GROUPCHANNELS_CHANNELURL_MESSAGES_MESSAGEID:"/group_channels/%s/messages/%s",GROUPCHANNELS_CHANNELURL_MESSAGES_MESSAGEID_TRANSLATION:"/group_channels/%s/messages/%s/translation",GROUPCHANNELS_CHANNELURL_MESSAGES_CHANGELOGS:"/group_channels/%s/messages/changelogs",GROUPCHANNELS_CHANNELURL_SCHEDULED_MESSAGES:"/group_channels/%s/scheduled_messages",GROUPCHANNELS_CHANNELURL_MEMBERS:"/group_channels/%s/members",GROUPCHANNELS_CHANNELURL_METADATA:"/group_channels/%s/metadata",GROUPCHANNELS_CHANNELURL_METADATA_KEY:"/group_channels/%s/metadata/%s",GROUPCHANNELS_CHANNELURL_METACOUNTER:"/group_channels/%s/metacounter",GROUPCHANNELS_CHANNELURL_METACOUNTER_KEY:"/group_channels/%s/metacounter/%s",GROUPCHANNELS_RESET_USER_HISTORY:"/group_channels/%s/reset_user_history",GROUPCHANNELS_OPERATORS:"/group_channels/%s/operators",GROUPCHANNELS_MEMBERS:"/group_channels/%s/members",GROUPCHANNELS_CHANNELURL_BAN:"/group_channels/%s/ban",GROUPCHANNELS_CHANNELURL_BAN_USERID:"/group_channels/%s/ban/%s",GROUPCHANNELS_CHANNELURL_MUTE:"/group_channels/%s/mute",GROUPCHANNELS_CHANNELURL_MUTE_USERID:"/group_channels/%s/mute/%s",GROUPCHANNELS_CHANNELURL_FREEZE:"/group_channels/%s/freeze",GROUPCHANNELS_CHANNELURL_MESSAGES_MESSAGEID_REACTION:"/group_channels/%s/messages/%s/reactions",STORAGE_FILE:"/storage/file",STORAGE_PROFILE:"/storage/profile_image",FRIENDS:"/users/%s/friends",FRIENDS_CHANGE_LOGS:"/users/%s/friends/changelogs",FRIENDS_DISCOVERIES:"/users/%s/friend_discoveries",SEARCH_MESSAGE:"/search/messages"},"GROUPCHANNELS_OPERATORS","/group_channels/%s/operators"),a(e,"OPENCHANNELS_OPERATORS","/open_channels/%s/operators"),a(e,"REPORT_USERS","/report/users/%s"),a(e,"REPORT_CHANNELS","/report/%s/%s"),a(e,"REPORT_MESSAGES","/report/%s/%s/messages/%s"),e}}]),b}(),H=function(){function e(t,r){l(this,e),this.sb=t,this.ws=null,this.wsHost=null,this.WebSocket=null,this.handler=r||new e.ConnectionHandler,this.explicitDisconnect=!1,this.lastActiveMillis=0;try{this.WebSocket="undefined"==typeof WebSocket?n:WebSocket}catch(t){this.WebSocket=WebSocket}}
2return s(e,[{key:"connect",value:function(e,t,n){var i=this;P.debug("WSClient connect called");var r=B.get(this.sb._iid).container,a=r.pinger,s=r.auth;this.wsHost=n;try{var o="/?p=JS&pv="+encodeURIComponent(C.OS_VERSION)+"&sv="+encodeURIComponent(C.SDK_VERSION)+"&ai="+encodeURIComponent(this.sb.getApplicationId());if(s.sessionKey?o+="&key="+encodeURIComponent(s.sessionKey):o+="&user_id="+encodeURIComponent(e)+"&access_token="+encodeURIComponent(t),o+="&active=1",o+="&Request-Sent-Timestamp="+(new Date).getTime().toString(),this.ws=new this.WebSocket(this.wsHost+o),!this.ws)return this.sb.isReconnectingOnError=!0,void this.handler.onError("ws does not exist.")}catch(e){return this.sb.isReconnectingOnError=!0,void this.handler.onError(e)}try{this.sb.getDebugMode()&&"undefined"!=typeof window&&(window.ws=this.ws)}catch(e){P.debug("window object does not exist.")}var u=!1;this.ws.onopen=function(e){P.debug("WSClient onopen called"),i.handler.onOpen(e)},this.ws.onmessage=function(e){i.active();var t=e.data.split("\n");for(var n in t){var r=t[n];if(r&&"string"==typeof r){try{if("PONG"===r.substring(0,4)){a.pong();continue}}catch(e){P.debug("ws.onmessage-command check error: ",e)}i.handler.onMessage(r)}}},this.ws.onerror=function(e){P.debug("WSClient ws.onerror called: ",e),a&&a.stop(),u=!0,i.sb.isReconnectingOnError=!0,i.handler.onError(e)},this.ws.onclose=function(e){P.debug("WSClient ws.onclose called - e, explicitDisconnect: ",e,i.explicitDisconnect),a&&a.stop(),i.explicitDisconnect?i.handler.onClose(e):u||i.handler.onError(e),i.explicitDisconnect=!1}}},{key:"disconnect",value:function(e,t){P.debug("WSClient disconnect called [explicit]: ",e);var n=B.get(this.sb._iid).container.pinger;n&&n.stop(),this.explicitDisconnect=!0===e,this.ws&&(this.ws.onopen=function(){},this.ws.onmessage=function(){},this.ws.onclose=function(){t&&t()},this.ws.onerror=function(){},this.ws.close(),this.ws=null),this.explicitDisconnect?this.handler.onClose():this.handler.onError(),this.explicitDisconnect=!1}},{key:"send",value:function(e,t){1!==this.ws.readyState?t&&t(new k("Connection is not valid. Please reconnect.",k.WEBSOCKET_CONNECTION_CLOSED),null):(this.ws.send(e.encode()),t&&t(null,null))}},{key:"active",value:function(){this.lastActiveMillis=(new Date).getTime()}},{key:"getConnectionState",value:function(){try{return 1===this.ws.readyState?this.sb.ConnectionState.OPEN:0===this.ws.readyState?this.sb.ConnectionState.CONNECTING:this.sb.ConnectionState.CLOSED}catch(e){return this.sb.ConnectionState.CLOSED}}}]),e}();H.ConnectionHandler=function e(){l(this,e),this.onReady=function(){},this.onOpen=function(){},this.onClose=function(){},this.onMessage=function(){},this.onError=function(){}};var Q=function(){function e(t){l(this,e),this.sb=t,this.cls=U.get(this.sb._iid),this.ws=new H(this.sb),this.reconnectParams={interval:3,retryCount:3,multiplier:2,maxInterval:24},this.reconnectCount=0,this.reconnectDelay=0}return s(e,[{key:"connect",value:function(e,t){var i=this,n=B.get(this.sb._iid).container,r=n.auth,a=n.apiClient,s=n.commandHandler,o=this.cls.GroupChannel,u=new H.ConnectionHandler;this.ws=new H(this.sb,u),u.onMessage=function(e){s.onRawCommandReceived(e)},this.sb.loginHandler=function(e,t){if(i.sb.connecting=!1,e)i.disconnect({clearSession:!0,err:e},null);else{clearInterval(i.sb.globalTimer);var n=function(){if(o.cachedChannels)for(var e in o.cachedChannels){var t=o.cachedChannels[e];if(t.invalidateTypingStatus())for(var n in i.sb.channelHandlers)i.sb.channelHandlers[n].onTypingStatusUpdated(t)}};n(),i.sb.globalTimer=setInterval((function(){return n()}),1e3),i.flushConnectionCallbacks(null,t),i.sb.connecting=!1,i.sb.reconnecting=!1,i.sb.ConnectionManager.processAllReadyHandler(null)}},u.onOpen=function(){i.sb.loginTimer=setTimeout((function(){i.sb.loginTimer=null,i.sb.onLoginTimerCancel=null,i.flushConnectionCallbacks(new k("Connection timeout.",k.LOGIN_TIMEOUT),null),i.sb.disconnect(null)}),C.COMMAND_ACK_TIMEOUT),i.sb.onLoginTimerCancel=function(){i.flushConnectionCallbacks(new k("Connection has been canceled.",k.REQUEST_FAILED),null)},i.sb.connecting=!1},u.onError=function(t){P.debug("WebSocketClient.ConnectionHandler.onError",t),r.sessionKey?(i.sb.isReconnectingOnError=!0,i.sb.ConnectionManager.errorAllReadyHandler(),i.reconnect(e,!0)):i.flushConnectionCallbacks(new k("Websocket connection failed.",k.WEBSOCKET_CONNECTION_FAILED),null),i.sb.connecting=!1},u.onClose=function(){P.debug("WebSocketClient.ConnectionHandler.onClose"),i.sb.connecting=!1},a.checkRouting((function(n,r){if(n)return i.sb.connecting=!1,void i.flushConnectionCallbacks(new k("Connection routing failed.",k.REQUEST_FAILED),null);a.dummyCall((function(e){e&&P.log("API dummy call failed",e)})),i.ws.connect(e,t,r.wsHost)}))}},{key:"reconnect",value:function(e,t){var i=this,n=!(1<arguments.length&&void 0!==t)||t,r=B.get(this.sb._iid).container,a=r.auth,s=r.apiClient,o=r.commandHandler,u=this.cls.OpenChannel;if(this.sb.reconnecting=!0,this.sb.reconnectTimer)P.debug("still reconnecting");else{if(this.reconnectCount+=1,this.reconnectCount<=1){if(n)for(var l in this.sb.connectionHandlers)this.sb.connectionHandlers[l].onReconnectStarted();this.reconnectDelay=0}
2else this.reconnectDelay=Math.min(1e3*this.reconnectParams.interval*Math.pow(this.reconnectParams.multiplier,this.reconnectCount-2),0<this.reconnectParams.maxInterval?1e3*this.reconnectParams.maxInterval:Number.MAX_SAFE_INTEGER);if(!e||!a.sessionKey||0<this.reconnectParams.retryCount&&this.reconnectCount>this.reconnectParams.retryCount){for(var c in this.disconnect({clearSession:!1,err:new k("Websocket connection failed.",k.WEBSOCKET_CONNECTION_FAILED)},null),this.reconnectCount=0,this.sb.connectionHandlers)this.sb.connectionHandlers[c].onReconnectFailed();return this.sb.connecting=!1,this.sb.reconnecting=!1,this.sb.isReconnectingOnError=!1,void this.sb.ConnectionManager.errorAllReadyHandler()}this.sb.onReconnectTimerCancel=function(){i.reconnectCount=0},this.sb.reconnectTimer=setTimeout((function(){i.sb.reconnectTimer=null,i.sb.onReconnectTimerCancel=null,i.ws&&i.ws.disconnect(!0);var t=new H.ConnectionHandler;i.ws=new H(i.sb,t),i.sb.loginHandler=function(){for(var e in i.reconnectCount=0,i.sb.connecting=!1,i.sb.reconnecting=!1,i.sb.isReconnectingOnError=!1,i.sb.connectionHandlers)i.sb.connectionHandlers[e].onReconnectSucceeded();if(i.sb.ConnectionManager.processAllReadyHandler(null),i.sb.isReconnectingOnError)for(var t in i.sb.ConnectionManager.networkHandlers)i.sb.ConnectionManager.networkHandlers[t].onReconnected();Object.keys(u.enteredChannels).forEach((function(e){u.enteredChannels[e].enter((function(t,n){if(t){var r=i.cls.FileMessageQueue;delete u.enteredChannels[e],r.delete(e)}}))}))},t.onOpen=function(){P.debug("reconnect onOpen"),i.sb.loginTimer=setTimeout((function(){P.debug("reconnect loginTimer timeout"),i.sb.loginTimer=null,i.reconnect(e,!0)}),C.COMMAND_ACK_TIMEOUT),i.sb.onLoginTimerCancel=null,i.sb.reconnecting=!1},t.onMessage=function(e){o.onRawCommandReceived(e)},t.onError=function(t){P.debug("reconnect onError",t),i.sb.isReconnectingOnError=!0,i.sb.ConnectionManager.errorAllReadyHandler(),i.reconnect(e,!0)},t.onClose=function(){P.debug("reconnect onClose"),i.sb.reconnecting=!1},s.checkRouting((function(t,n){t?i.reconnect(e,!0):(i.sb.getCurrentApiHost()!==n.apiHost&&s.get("/",null,(function(){})),i.ws.connect(e,null,n.wsHost))}))}),this.reconnectDelay)}}},{key:"disconnect",value:function(e,t){var n=B.get(this.sb._iid),r=n.container.ackStateMap,i=this.cls,a=i.GroupChannel,s=i.OpenChannel,o=e.clearSession,u=e.err;if(this.sb.loginTimer&&(clearTimeout(this.sb.loginTimer),this.sb.onLoginTimerCancel&&(this.sb.onLoginTimerCancel(),this.sb.onLoginTimerCancel=null),this.sb.loginTimer=null),this.sb.reconnectTimer&&(clearTimeout(this.sb.reconnectTimer),this.sb.onReconnectTimerCancel&&(this.sb.onReconnectTimerCancel(),this.sb.onReconnectTimerCancel=null),this.sb.reconnectTimer=null),this.ws&&(this.reconnectCount=0,this.ws.disconnect(!0),this.ws=null),o){for(var l in s.clearEnteredChannels(),s.clearCache(),a.clearCache(),this.sb.globalTimer&&(clearInterval(this.sb.globalTimer),this.sb.globalTimer=null),r)clearTimeout(r[l].timer);this.sb.currentUser=null,n.set("ackStateMap",{}),n.set("subscribedUnreadMessageCount",{all:0,custom_types:{},ts:0}),n.set("auth",new b)}u&&(this.flushConnectionCallbacks(u,null),this.sb.connecting=!1,this.sb.reconnecting=!1,this.sb.isReconnectingOnError=!1),t&&t(null,null)}},{key:"flushConnectionCallbacks",value:function(e,t){var n=this.sb.connectionCallbacks;this.sb.connectionCallbacks=[],n.forEach((function(n){return n(e,t)}))}}]),e}(),V=function(){function e(t){var n=t.type,r=t.nullable,o=void 0!==r&&r,i=t.optional,a=void 0!==i&&i,s=t.o
2ptionalIf,c=void 0===s?null:s,u=t.ignoreIf,h=void 0===u?null:u,d=t.defaultValue,f=void 0===d?null:d,m=t.constraint,p=void 0===m?null:m;l(this,e),this.type=n,this.nullable=o,this.optional=a,this.optionalIf=c,this.ignoreIf=h,this.defaultValue=f,this.constraint=p}return s(e,[{key:"isMatchingType",value:function(e){function t(t,n){return"string"==typeof n?o(t)===n||"array"===n&&Array.isArray(t)||"file"===n&&N.isFile(t)||"null"===n&&null===t||"date"===n&&t instanceof Date:"function"==typeof n?t instanceof n:"object"===o(n)&&-1<Object.keys(n).map((function(e){return n[e]})).indexOf(e)}return t(e,this.type)||Array.isArray(this.type)&&this.type.some((function(n){return t(e,n)}))||this.nullable&&null===e}}],[{key:"parse",value:function(t,n){for(t=e.toArray(t);void 0===t[t.length-1];)t.pop();var r=!1,o=null;"callback"===n[n.length-1].type&&("function"==typeof t[t.length-1]&&(o=t.pop()),n.pop(),r=!0);var i=[],a=null,s=0;for(var l in n){var u=n[l];"function"==typeof u.ignoreIf&&u.ignoreIf(t)?i.push(u.hasOwnProperty("defaultValue")?u.defaultValue:null):u.isMatchingType(t[s])?(u.nullable&&null===t[s]||!u.constraint||u.constraint(t[s])||(a=e.error),i.push(t[s]),s++):u.optional||"function"==typeof u.optionalIf&&u.optionalIf(t)?i.push(u.hasOwnProperty("defaultValue")?u.defaultValue:null):(a=e.error,i.push(t[s]),s++)}return r&&o&&i.push(o),t.length!==s&&(a=e.error),[a].concat(i)}},{key:"toArray",value:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}},{key:"error",get:function(){return new k("Invalid parameter.",k.INVALID_PARAMETER)}}]),e}(),j=function(){function e(t){l(this,e),this.sb=t,this.authCount=0,this.readyHandlers=[],this.networkHandlers={},this.authenticateTimer=1e4,this.authInfoRequester=null}return s(e,[{key:"addReadyHandler",value:function(e){e&&"function"==typeof e&&this.readyHandlers.push(e)}},{key:"ready",value:function(e,t){var n=!(1<arguments.length&&void 0!==t)||t,r=B.get(this.sb._iid).container,i=r.auth,a=r.isInBackground;n&&i.hasSession()?e&&(e(null,this.sb.currentUser),this.sb.getConnectionState()!==this.sb.ConnectionState.CLOSED||a||this.sb.reconnect()):(this.addReadyHandler(e),this.sb.isReconnectingOnError?this.errorAllReadyHandler():this.sb.getConnectionState()===this.sb.ConnectionState.OPEN?this.processAllReadyHandler(null):this.sb.getConnectionState()===this.sb.ConnectionState.CONNECTING||this.errorAllReadyHandler())}},{key:"processAllReadyHandler",value:function(e){var t=this;if(0<this.readyHandlers.length){var n=this.readyHandlers;this.readyHandlers=[],n.forEach((function(n){n&&"function"==typeof n&&n(e,t.sb.currentUser)}))}}},{key:"errorAllReadyHandler",value:function(){this.processAllReadyHandler(new k("Connection should be made first.",k.CONNECTION_REQUIRED))}},{key:"NetworkHandler",value:function(){this.onReconnected=function(){}}},{key:"addNetworkHandler",value:function(e,t){this.networkHandlers[e]=t}},{key:"removeNetworkHandler",value:function(e){delete this.networkHandlers[e]}},{key:"removeAllNetworkHandler",value:function(){this.networkHandlers={}}},{key:"authenticate",value:function(e){var t=this;if(this.sb.getConnectionState()===this.sb.ConnectionState.OPEN||this.sb.reconnecting)this.sb.connecting=!1,e(null,this.sb.currentUser);else if(this.authInfoRequester&&"function"==typeof this.authInfoRequester){this.sb.connecting=!0,this.authCount++;var i=setTimeout((function(){i=null,t.authCount--,0===t.authCount&&0===t.sb.connectionCallbacks.length&&(t.sb.connecting=!1),t.errorAllReadyHandler(),e(new k("Connection should be made first.",k.CONNECTION_REQUIRED),null)}),this.authenticateTimer);this.authInfoRequester((function(n){if(i){clearTimeout(i),i=null,t.authCount--;var r=function(n,r){t.sb.connecting=!1,e(n,null)};n&&n.hasOwnProperty("userId")?n.accessToken?n.apiHost&&n.wsHost?t.sb.connect(n.userId,n.accessToken,n.apiHost,n.wsHost,r):t.sb.connect(n.userId,n.accessToken,r):n.apiHost&&n.wsHost?t.sb.connect(n.userId,n.apiHost,n.wsHost,r):t.sb.connect(n.userId,r):e(V.error,null)}}))}else e(V.error,null)}}]),e}(),G=function(){function e(t){l(this,e),this.sb=t}return s(e,[{key:"onlineWorker",value:function(){try{if("undefined"!=typeof navigator&&navigator.onLine){var e=B.get(this.sb._iid).container.auth;this.sb.reconnecting||this.sb.connecting||!e.sessionKey||this.sb.getConnectionState()===this.sb.ConnectionState.OPEN||this.sb.reconnect()}}catch(e){P.debug("There is no window.addEventListener.ononline or navigator.onLine")}}},{key:"offlineWorker",value:function(){try{if("undefined"!=typeof navigator&&!navigator.onLine){var e=B.get(this.sb._iid).container,t=e.auth,n=e.pinger;this.sb.reconnecting||this.sb.connecting||!t.sessionKey||(n&&n.stop(),this.sb.reconnect())}}catch(e){P.debug("There is no window.addEventListener.ononline or navigator.onLine")}}},{key:"start",value:function(){try{"undefined"!=typeof window&&window.addEventListener&&"ononline"in window&&"onoffline"in window&&"undefined"!=typeof navigator&&"boolean"==typeof navigator.onLine&&(window.addEventListener("online",this.onlineWorker),window.addEventListener("offline",this.offlineWorker))}catch(e){P.debug("There is no window.addEventListener.ononline or navigator.onLine")}}},{key:"stop",value:function(){try{window.removeEventListener("online",this.onlineWorker,!1),window.removeEventListener("offline",this.offlineWorker,!1)}catch(e){P.debug("There is no window.addEventListener.ononline or navigator.onLine")}}}]),e}(),K=(new Date).getTime(),$=function(){function i(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;switch(l(this,i),this.command=e,this.requestId=n,arguments.length){case 1:if(!e||e.length<=4)this.command="NOOP",this.payload="{}";else if(this.decode(e),this.isRequestIdCommand){var r=this.getJsonElement();r&&(this.requestId=r.req_id||"")}break;case 2:case 3:!this.requestId&&this.isRequestIdCommand&&(this.requestId=i.generateRequestId()),t.req_id=this.requestId||"",this.payload=JSON.stringify(t)}}return s(i,[{key:"encode",value:function(){return this.command+this.payload+"\n"}},{key:"decode",value:function(e){e=e.trim(),this.command=e.substring(0,4),this.payload=e.substring(4)}},{key:"getJsonElement",value:function(){return JSON.parse(this.payload)}},{key:"isRequestIdCommand",get:function(){return this.isAckRequired||"EROR"===this.command}},{key:"isAckRequired",get:function(){return"MESG"===this.command||"FILE"===this.command||"ENTR"===this.command||"EXIT"===this.command||"READ"===this.command||"MEDI"===this.command||"FEDI"===this.command}}],[{key:"bPing",value:function(){return new this("PING",{id:(new Date).getTime(),active:1})}},{key:"bMessage",value:function(e){var t=e.channelUrl,n=e.message,r=e.data,i=e.customType,a=e.metaArrays,s=e.mentionType,o=e.mentionedUserIds,u=e.translationTargetLanguages,l=e.pushNotificationDeliveryOption,c=e.requestId,h=void 0===c?null:c,d=U.get(this._iid),p=d.UserMessageParams,f=d.BaseMessageParams,m={};return m.channel_url=t,m.message=n,m.data=r,a&&0<a.length&&(m.metaarray=a.map((function(e){return e.encode()}))),s&&(m.mention_type=s),m.mentioned_user_ids=[],s===f.MentionType.CHANNEL?m.mentioned_user_ids=[]:Array.isArray(o)&&0<o.length&&(m.mentioned_user_ids=o),i&&(m.custom_type=i),u&&0<u.length&&(m.target_langs=u),l&&l!==p.PushNotificationDeliveryOption.DEFAULT&&(m.pu
2sh_option=l),new this("MESG",m,h)}},{key:"bFile",value:function(e){var t=e.channelUrl,n=e.url,r=e.name,i=e.type,a=e.size,s=e.data,o=e.customType,u=e.thumbnailSizes,l=e.requireAuth,c=e.metaArrays,h=e.mentionType,d=e.mentionedUserIds,p=e.pushNotificationDeliveryOption,f=e.requestId,m=void 0===f?null:f,g=U.get(this._iid),A=g.BaseMessageParams,y=g.FileMessageParams,v={};return v.channel_url=t,v.url=n,v.name=r||"",v.type=i||"",v.size=a||0,v.custom=s,o&&(v.custom_type=o),u&&(v.thumbnails=u),l&&(v.require_auth=l),c&&0<c.length&&(v.metaarray=c.map((function(e){return e.encode()}))),h&&(v.mention_type=h),v.mentioned_user_ids=[],h===A.MentionType.CHANNEL?v.mentioned_user_ids=[]:Array.isArray(d)&&0<d.length&&(v.mentioned_user_ids=d),p&&p!==y.PushNotificationDeliveryOption.DEFAULT&&(v.push_option=p),new this("FILE",v,m)}},{key:"bUpdateUserMessage",value:function(e){var t=e.channelUrl,n=e.messageId,r=e.message,i=void 0===r?null:r,a=e.data,s=void 0===a?null:a,o=e.customType,u=void 0===o?null:o,l=e.mentionType,c=void 0===l?null:l,h=e.mentionedUserIds,d=void 0===h?null:h,p=e.metaArrayParams,f=void 0===p?null:p,m=U.get(this._iid).BaseMessageParams,g={};return g.channel_url=t,g.msg_id=n,null!=i&&void 0!==i&&(g.message=i),null!=s&&void 0!==s&&(g.data=s),null!=u&&void 0!==u&&(g.custom_type=u),c&&(g.mention_type=c),c===m.MentionType.CHANNEL?g.mentioned_user_ids=[]:Array.isArray(d)&&0<d.length&&(g.mentioned_user_ids=d),f&&(g.metaarray=f),new this("MEDI",g)}},{key:"bUpdateFileMessage",value:function(e){var t=e.channelUrl,n=e.messageId,r=e.data,i=void 0===r?null:r,a=e.customType,s=void 0===a?null:a,o=e.mentionType,u=void 0===o?null:o,l=e.mentionedUserIds,c=void 0===l?null:l,h=e.metaArrayParams,d=void 0===h?null:h,p=U.get(this._iid).BaseMessageParams,f={};return f.channel_url=t,f.msg_id=n,null!=i&&void 0!==i&&(f.data=i),null!=s&&void 0!==s&&(f.custom_type=s),u&&(f.mention_type=u),u===p.MentionType.CHANNEL?f.mentioned_user_ids=[]:Array.isArray(c)&&0<c.length&&(f.mentioned_user_ids=c),d&&(f.metaarray=d),new this("FEDI",f)}},{key:"bRead",value:function(e){var t=e.channelUrl,n={};return n.channel_url=t,new this("READ",n)}},{key:"bMessageAck",value:function(e){var t=e.channelUrl,n=e.messageId,r={};return r.channel_url=t,r.msg_id=n,new this("MACK",r)}},{key:"bTypeStart",value:function(e){var t=e.channelUrl,n=e.time,r={};return r.channel_url=t,r.time=n,new this("TPST",r)}},{key:"bTypeEnd",value:function(e){var t=e.channelUrl,n=e.time,r={};return r.channel_url=t,r.time=n,new this("TPEN",r)}},{key:"bEnter",value:function(e){var t=e.channelUrl,n={};return n.channel_url=t,new this("ENTR",n)}},{key:"bExit",value:function(e){var t=e.channelUrl,n={};return n.channel_url=t,new this("EXIT",n)}},{key:"generateRequestId",value:function(){return String(++K)}}]),i}(),q=function(){function e(){l(this,e),this.messageId=null,this.userId=null,this.key=null,this.operation="",this.updatedAt=null}return s(e,null,[{key:"createFromJson",value:function(e){var t=e.msg_id,n=e.user_id,r=e.operation,i=e.reaction,a=e.updated_at;if(("string"==typeof t||"number"==typeof t)&&t&&"string"==typeof n&&"string"==typeof r&&0<=["add","delete"].indexOf(r.toLowerCase())&&"string"==typeof i&&i&&"number"==typeof a){var s=new this;return s.messageId=parseInt(t),s.userId=n,s.key=i,s.operation=r.toLowerCase(),s.updatedAt=a,s}return null}}]),e}(),Y=function(){function e(){l(this,e)}return s(e,null,[{key:"serialize",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:null,r=JSON.parse(JSON.stringify(e));return n&&n(r),function e(t){return Object.keys(t).forEach((function(n){t[n]&&"object"===o(t[n])&&e(t[n])})),Object.freeze(t)}(r)}},{key:"deserialize",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:null,r=JSON.parse(JSON.stringify(e));return n&&n(r),r}}]),e}(),W=function(){function e(t){l(this,e),this.messageId=0,this.messageType=e.MESSAGE_TYPE_BASE,this.channelUrl="",this.data=null,this.customType=null,this.createdAt=0,this.updatedAt=0,this.channelType=null,this.metaArrays=[],this.reactions=[],this.mentionType=null,this.mentionedUsers=[],t&&this.__update(t)}return s(e,[{key:"serialize",value:function(){return Y.serialize(this,(function(e){e.hasOwnProperty("_sender")&&(e.sender=e._sender,delete e._sender)}))}},{key:"isIdentical",value:function(e){return!("object"!==o(e)||!e.hasOwnProperty("messageId"))&&(0!==this.messageId&&0!==e.messageId?this.messageId===e.messageId:this.reqId===e.reqId)}},{key:"isEqual",value:function(e){return N.deepEqual(this,e)}},{key:"isOpenChannel",value:function(){var e=U.get(this._iid).BaseChannel;return this.channelType===e.CHANNEL_TYPE_OPEN}},{key:"isGroupChannel",value:function(){var e=U.get(this._iid).BaseChannel;return this.channelType===e.CHANNEL_TYPE_GROUP}},{key:"isUserMessage",value:function(){return this.messageType===e.MESSAGE_TYPE_USER}},{key:"isAdminMessage",value:function(){return this.messageType===e.MESSAGE_TYPE_ADMIN}},{key:"isFileMessage",value:function(){return this.messageType===e.MESSAGE_TYPE_FILE}},{key:"__update",value:function(e){var t=this,n=U.get(this._iid),r=n.User,i=n.BaseChannel,a=n.BaseMessageParams,s=n.Reaction,o=n.MessageMetaArray;e.hasOwnProperty("msg_id")&&(this.messageId=parseInt(e.msg_id)),e.hasOwnProperty("message_id")&&(this.messageId=parseInt(e.message_id)),this.channelUrl=e.hasOwnProperty("channel_url")?String(e.channel_url):"",this.data=e.hasOwnProperty("data")?String(e.data):"",this.customType=e.hasOwnProperty("custom_type")?String(e.custom_type):"",this.createdAt=e.hasOwnProperty("ts")?parseInt(e.ts):0,e.hasOwnProperty("created_at")&&(this.createdAt=parseInt(e.created_at)),this.updatedAt=e.hasOwnProperty("updated_at")?parseInt(e.updated_at):0,this.channelType=e.hasOwnProperty("channel_type")?String(e.channel_type):i.CHANNEL_TYPE_GROUP;var u=e.hasOwnProperty("metaarray")?e.metaarray:{},l=e.hasOwnProperty("metaarray_key_order")?e.metaarray_key_order:Object.keys(u).sort((function(e,t){return e.localeCompare(t)}));this.metaArrays=[];for(var c=0;c<l.length;c++){var h=l[c];this.metaArrays.push(new o(h,u[h]||[]))}if(e.hasOwnProperty("sorted_metaarray")){var d=e.sorted_metaarray;Array.isArray(d)&&(this.metaArrays=d.map((function(e){return new o(e.key,e.value)})))}if(this.reactions=[],e.hasOwnProperty("reactions")&&Array.isArray(e.reactions))for(var p in e.reactions){var f=s.createFromJson(e.reactions[p]);f&&this.reactions.push(f)}this.mentionType=e.hasOwnProperty("mention_type")?e.mention_type:a.MentionType.USERS,this.mentionedUsers=[],e.hasOwnProperty("mentioned_users")&&e.mentioned_users.forEac
2h((function(e){var n=new r(e);t.mentionedUsers.push(n)}))}},{key:"getMetaArraysByKeys",value:function(e){return Array.isArray(e)?this.metaArrays.filter((function(t){return-1<e.indexOf(t.key)})):[]}},{key:"getMetaArrayByKeys",value:function(e){var t={};return this.getMetaArraysByKeys(e).forEach((function(e){t[e.key]=e.value})),t}},{key:"applyReactionEvent",value:function(e){var t,n=this,r=U.get(this._iid).Reaction,i=_(V.parse(arguments,[new V({type:q,constraint:function(e){return parseInt(e.messageId)===parseInt(n.messageId)}})]),2);if(t=i[0],e=i[1],!t){var a=!1;for(var s in this.reactions)if(this.reactions[s].key===e.key){this.reactions[s]._applyEvent(e),this.reactions[s].isEmpty&&this.reactions.splice(s,1),a=!0;break}a||"add"!==e.operation||this.reactions.push(new r(e.key,[e.userId],e.updatedAt))}}},{key:"metaArray",get:function(){var e={};return this.metaArrays.forEach((function(t){e[t.key]=t.value})),e},set:function(e){if("object"===o(e)&&e){var t=U.get(this._iid).MessageMetaArray,n=[];for(var r in e)n.push(new t(r,e[r]));this.metaArrays=n}}}],[{key:"MESSAGE_TYPE_BASE",get:function(){return"base"}},{key:"MESSAGE_TYPE_ADMIN",get:function(){return"admin"}},{key:"MESSAGE_TYPE_USER",get:function(){return"user"}},{key:"MESSAGE_TYPE_FILE",get:function(){return"file"}},{key:"SendingStatus",get:function(){return{NONE:"none",PENDING:"pending",FAILED:"failed",CANCELED:"canceled",SUCCEEDED:"succeeded"}}}]),e}();function X(e,t,n){return void 0===n?new Promise((function(e,n){t((function(t,r){return t?n(t):e(r)}))})):t((function(t,r){n&&(B.get(e).container.isErrorFirstInCallback?n(t,r):n(r,t))}))}"undefined"==typeof Promise&&(Promise=function(){function u(e){var t=this;if(l(this,u),this.state=0,this._value=null,this._reason=null,"function"!=typeof e)throw"Promise resolver ".concat(e," is not a function");e((function(e){0===t.state&&(t.state=1,t._value=e)}),(function(e){0===t.state&&(t.state=2,t._reason=e)}))}return s(u,[{key:"then",value:function(e,t){var n=this,r=this;switch(this.state){case 0:setTimeout((function(){return n.then(e,t)}),100);break;case 1:e&&"function"==typeof e&&(r=e(this._value));break;case 2:t&&"function"==typeof t&&(r=t(this._reason))}return r instanceof u?r:this}},{key:"catch",value:function(e){var t=this,n=this;switch(this.state){case 0:setTimeout((function(){return t.catch(e)}),100);break;case 1:break;case 2:n=e(this._reason)}return n instanceof u?n:this}},{key:"finally",value:function(e){var t=this,n=this;switch(this.state){case 0:setTimeout((function(){return t.finally(e)}),100);break;case 1:case 2:n=e()}return n instanceof u?n:this}},{key:"length",get:function(){return 1}}],[{key:"all",value:function(e){return new u((function(t,i){if(Array.isArray(e)||"string"==typeof e)if(0<e.length){var n=[];for(var r in e)e[r]instanceof u?n.push(e[r]):n.push(u.resolve(e[r]));var a=new Array(n.length).fill(null),s=n.length,l=function(e,n,r){n?i(n):(s--,a[e]=r,s<=0&&t(a))};n.forEach((function(e,t){e.then((function(e){l(t,null,e)}
2)).catch((function(e){l(t,e,null)}))}))}else t([]);else i(new Error("Uncaught (in promise) TypeError: ".concat(o(e)," ").concat(e," is not iterable")))}))}},{key:"resolve",value:function(e){return new u((function(t){t(e)}))}},{key:"reject",value:function(e){return new u((function(t,n){n(e)}))}}]),u}());var J=function(){function e(t){l(this,e),this.nickname="",this.profileUrl="",this.userId="",this.connectionStatus="",this.lastSeenAt=null,this.metaData={},this.isActive=!0,this.friendDiscoveryKey=null,this.friendName=null,this._preferredLanguages=null,t&&this.__update(t)}return s(e,[{key:"__update",value:function(t){t.hasOwnProperty("guest_id")&&(this.userId=String(t.guest_id)),t.hasOwnProperty("user_id")&&(this.userId=String(t.user_id)),t.hasOwnProperty("name")&&(this.nickname=String(t.name)),t.hasOwnProperty("nickname")&&(this.nickname=String(t.nickname)),t.hasOwnProperty("image")&&(this.profileUrl=String(t.image)),t.hasOwnProperty("profile_url")&&(this.profileUrl=String(t.profile_url)),t.hasOwnProperty("is_online")?t.is_online===e.NON_AVAILABLE?this.connectionStatus=e.NON_AVAILABLE:this.connectionStatus=t.is_online?e.ONLINE:e.OFFLINE:this.connectionStatus=e.NON_AVAILABLE,t.hasOwnProperty("last_seen_at")?this.lastSeenAt=parseInt(t.last_seen_at):this.lastSeenAt=0,t.hasOwnProperty("metadata")?this.metaData=t.metadata:this.metaData={},t.hasOwnProperty("is_active")?this.isActive=void 0===t.is_active||t.is_active:this.isActive=!0,t.hasOwnProperty("friend_discovery_key")?this.friendDiscoveryKey=t.friend_discovery_key:this.friendDiscoveryKey=null,t.hasOwnProperty("friend_name")?this.friendName=t.friend_name:this.friendName=null,t.hasOwnProperty("preferred_languages")?this._preferredLanguages=t.preferred_languages||null:this._preferredLanguages=null}},{key:"_updateMetaData",value:function(e,t){var n=1<arguments.length&&void 0!==t&&t,r=U.get(this._iid).GroupChannel;for(var i in e)n?delete this.metaData[i]:this.metaData[i]=e[i];
2for(var a in r.cachedChannels)if(r.cachedChannels.hasOwnProperty(a)){var s=r.cachedChannels[a];s.memberMap.hasOwnProperty(this.userId)&&(s.memberMap[this.userId].metaData=this.metaData)}}},{key:"serialize",value:function(){return Y.serialize(this,(function(e){e.hasOwnProperty("_preferredLanguages")&&(e.preferredLanguages=e._preferredLanguages,delete e._preferredLanguages)}))}},{key:"getOriginalProfileUrl",value:function(){var e="";if((-1<(e=(e=-1<this.profileUrl.indexOf("://")?this.profileUrl.split("/")[2]:this.profileUrl.split("/")[0]).split("?")[0]).indexOf("sendbird.com")||-1<e.indexOf("intoz.com"))&&-1<this.profileUrl.indexOf(e+"/profile_images/")){var t=this.profileUrl.replace("profile_images/","");return t===this.profileUrl?"":t}return""}},{key:"createMetaData",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"object",constraint:function(e){return 0<Object.keys(e).length&&!Array.isArray(e)}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.createUserMetaData({metaData:e},(function(e,n){e||i._updateMetaData(n),t(e,n)}))}),t)}},{key:"updateMetaData",value:function(e,t,n){var r,i=this,a=_(V.parse(arguments,[new V({type:"object",constraint:function(e){return!Array.isArray(e)&&0<Object.keys(e).length&&Object.keys(e).map((function(t){return e[t]})).every((function(e){return"string"==typeof e}))}}),new V({type:"boolean",optional:!0,defaultValue:!1}),new V({type:"callback"})]),4);return r=a[0],e=a[1],t=a[2],n=a[3],X(this._iid,(function(n){r?n(r,null):B.get(i._iid).container.apiClient.updateUserMetaData({metaData:e,upsert:t},(function(e,t){e||i._updateMetaData(t),n(e,t)}))}),n)}},{key:"deleteMetaData",value:function(e,t){var i,a=this,n=_(V.parse(arguments,[new V({type:"string",constraint:function(e){return 0<e.length}}),new V({type:"callback"})]),3);return i=n[0],e=n[1],t=n[2],X(this._iid,(function(t){if(i)t(i,null);else{var n={};n[e]="",B.get(a._iid).container.apiClient.deleteUserMetaData({metaDataKey:e},(function(e,r){e||a._updateMetaData(n,!0),t(e,r)}))}}),t)}},{key:"deleteAllMetaData",value:function(e){var i=this;return X(this._iid,(function(e){var t=i.metaData;B.get(i._iid).container.apiClient.deleteAllUserMetaData({},(function(n,r){n||i._updateMetaData(t,!0),e(n,r)}))}),e)}},{key:"preferredLanguages",get:function(){return this._preferredLanguages}}],[{key:"build",value:function(e,t,n,r,i,a,s,o,u,l){return{user_id:e,nickname:t,profile_url:n,is_online:r,last_seen_at:i,metadata:a,is_active:s,friend_discovery_key:o,friend_name:u,preferred_languages:l}}},{key:"buildFromSerializedData",value:function(e){var t=U.get(this._iid).User,n=Y.deserialize(e);return new t(t.build.apply(t,w(["userId","nickname","profileUrl","connectionStatus","lastSeenAt","metaData","isActive","friendDiscoveryKey","friendName","preferredLanguages"].map((function(e){return n[e]})))))}},{key:"NON_AVAILABLE",get:function(){return"nonavailable"}},{key:"ONLINE",get:function(){return"online"}},{key:"OFFLINE",get:function(){return"offline"}}]),e}(),Z={TIMESTAMP:"timestamp",MESSAGE_ID:"messageId"},ee=function(){function e(t){l(this,e),this.url="",this.channelType=e.CHANNEL_TYPE_BASE,this.name="",this.coverUrl="",this.createdAt=0,this.data=null,this.customType=null,this.isFrozen=!1,this.isEphemeral=!1,t&&(this.__update(t),t.__wk&&(this.__wk=t.__wk))}return s(e,[{key:"__update",value:function(e){this.url=e.hasOwnProperty("channel_url")?String(e.channel_url):"",this.name=e.hasOwnProperty("name")?String(e.name):"",this.coverUrl=e.hasOwnProperty("cover_url")?String(e.cover_url):"",this.createdAt=e.hasOwnProperty("created_at")?1e3*e.created_at:0,this.data=e.hasOwnProperty("data")?String(e.data):"",this.customType=e.hasOwnProperty("custom_type")?e.custom_type:"",this.isFrozen=!!e.hasOwnProperty("freeze")&&e.freeze,this.isEphemeral=!!e.hasOwnProperty("is_ephemeral")&&e.is_ephemeral}},{key:"_getMessageList",value:function(e,t,n,r,a,s,o,u,l,c,h,d,i){var p,f=this,m=_(V.parse(arguments,[new V({type:"object"}),new V({type:"number"}),new V({type:Z}),new V({type:"boolean"}),new V({type:"number"}),new V({type:"number"}),new V({type:"boolean"}),new V({type:"string",nullable:!0,constraint:function(e){return-1<["","MESG","FILE","ADMM"].indexOf(e)}}),new V({type:"string"}),new V({type:"array",optional:!0,defaultValue:[],constraint:function(e){return e.reduce((function(e,t){return e&&"string"==typeof t}),!0)}}),new V({type:"boolean",optional:!0,defaultValue:!1}),new V({type:"boolean",optional:!0,defaultValue:!1}),new V({type:"callback"})]),14);return p=m[0],e=m[1],t=m[2],n=m[3],r=m[4],a=m[5],s=m[6],o=m[7],u=m[8],l=m[9],c=m[10],h=m[11],d=m[12],i=m[13],X(this._iid,(function(i){p?i(p,null):B.get(f._iid).container.apiClient.getMessageList({channel:e,token:t,tokenType:n,isInclusive:r,prevResultSize:a,nextResultSize:s,shouldReverse:o,messageType:u,customType:l,senderUserIds:c,includeMetaArray:h,includeReaction:d},(function(e,t){var n=null;if(!e){var r=U.get(f._iid).BaseChannel;n=t.messages.map((function(e){return r.buildMessage(e,f)})).filter((function(e){return null!==e}))}i(e,n)}))}),i)}},{key:"isGroupChannel",value:function(){var e=U.get(this._iid).BaseChannel;return this.channelType===e.CHANNEL_TYPE_GROUP}},{key:"isOpenChannel",value:function(){var e=U.get(this._iid).BaseChannel;return this.channelType===e.CHANNEL_TYPE_OPEN}},{key:"createOperatorListQuery",value:function(){return new(U.get(this._iid).OperatorListQuery)(this)}},{key:"createMessageListQuery",value:function(){return new(U.get(this._iid).MessageListQuery)(this)}},{key:"createPreviousMessageListQuery",value:function(){return new(U.get(this._iid).PreviousMessageListQuery)(this)}},{key:"serialize",value:function(){return Y.serialize(this,(function(e){if(null!==e.lastMessage&&"object"===o(e.lastMessage)){var t=e.lastMessage;t.hasOwnProperty("_sender")&&(t.sender=t._sender,delete t._sender,e.lastMessage=t)}e.hasOwnProperty("_messageOffsetTimestamp")&&(e.messageOffsetTimestamp=e._messageOffsetTimestamp,delete e._messageOffsetTimestamp)}))}},{key:"getMessageChangeLogsByTimestamp",value:function(e,t,n,r){var a,s=this,i=_(V.parse(arguments,[new V({type:"number",constraint:function(e){return 0<=e}}),new V({type:"boolean",optional:!0,defaultValue:!1}),new V({type:"boolean",optional:!0,defaultValue:!1}),new V({type:"callback"})]),5);return a=i[0],e=i[1],t=i[2],n=i[3],r=i[4],X(this._iid,(function(i){a?i(a,null):B.get(s._iid).container.apiClient.getMessageChangeLogs({channelUrl:s.url,ts:e,token:null,isOpenChannel:s.isOpenChannel(),includeMetaArray:t,includeReaction:n},(function(e,t){var n=null;if(!e){var r=U.get(s._iid).BaseChannel;n={updatedMessages:t.updated.map((function(e){return r.buildMessage(e,s)})),deletedMessageIds:t.deleted.map((function(e){return e.message_id})),hasMore:t.has_more,token:t.next}}i(e,n)}))}),r)}},{key:"getMessageChangeLogsByToken",value:function(e,t,n,r){var a,s=this,i=_(V.parse(arguments,[new V({type:"string",nullable:!0}),new V({type:"boolean",optional:!0,defaultValue:!1}),new V({type:"boolean",optional:!0,defaultValue:!1}),new V({type:"callback"})]),5);return a=i[0],e=i[1],t=i[2],n=i[3],r=i[4],X(this._iid,(function(i){a?i(a,null):B.get(s._iid).container.apiClient.getMessageChangeLogs({channelUrl:s.url,ts:null,token:e,isOpenChannel:s.isOpenChannel(),includeMetaArray:t,includeReaction:n},(function(e,t){var n=null;if(!e){var r=U.get(s._iid).BaseChannel;n={updatedMessages:t.updated.map((function(e){return r.buildMessage(e,s)})),deletedMessageIds:t.deleted.map((function(e){return e.message_id})),hasMore:t.has_more,token:t.next}}i(e,n)}))}),r)}},{key:"getMyMutedInfo",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.getMyMutedInfo({channelUrl:t.url,userId:ot.getInstance(t._iid).currentUser.userId,isGroupChannel:t.isGroupChannel
2()},(function(t,n){var r=null;t||(r={isMuted:n.is_muted,startAt:n.start_at,endAt:n.end_at,remainingDuration:n.remaining_duration,description:n.description}),e(t,r)}))}),e)}},{key:"getPreviousMessagesByTimestamp",value:function(e,t,n,r,i,a,s,o,u,l){return this._getMessageList(this,e,Z.TIMESTAMP,t,n,0,r,i,a,s,o,u,l)}},{key:"getNextMessagesByTimestamp",value:function(e,t,n,r,i,a,s,o,u,l){return this._getMessageList(this,e,Z.TIMESTAMP,t,0,n,r,i,a,s,o,u,l)}},{key:"getPreviousAndNextMessagesByTimestamp",value:function(e,t,n,r,i,a,s,o,u,l){return this._getMessageList(this,e,Z.TIMESTAMP,!0,t,n,r,i,a,s,o,u,l)}},{key:"getPreviousMessagesByID",value:function(e,t,n,r,i,a,s,o,u,l){return this._getMessageList(this,e,Z.MESSAGE_ID,t,n,0,r,i,a,s,o,u,l)}},{key:"getNextMessagesByID",value:function(e,t,n,r,i,a,s,o,u,l){return this._getMessageList(this,e,Z.MESSAGE_ID,t,0,n,r,i,a,s,o,u,l)}},{key:"getPreviousAndNextMessagesByID",value:function(e,t,n,r,i,a,s,o,u,l){return this._getMessageList(this,e,Z.MESSAGE_ID,!0,t,n,r,i,a,s,o,u,l)}},{key:"_sendUserMessage",value:function(e){var s=this,t=e.message,n=e.data,r=e.customType,i=e.metaArrays,a=e.mentionType,o=e.mentionedUserIds,u=e.translationTargetLanguages,l=e.pushNotificationDeliveryOption,c=e.reqId,h=e.callback,d=U.get(this._iid),p=d.Command,f=d.GroupChannel,m=d.UserMessage;c=c||p.generateRequestId();var g=ot.getInstance(this._iid),A=m.build(c,0,g.currentUser,this,t,n,r,u,!1,(new Date).getTime(),0,i,a,null,o),y=new m(A);if(y.requestState=g.MessageRequestState.PENDING,y.sendingStatus=g.MessageSendingStatus.PENDING,y.requestedMentionUserIds=o,!g.currentUser){var v=new k("Connection should be made first.",k.CONNECTION_REQUIRED),_=new m(A);return _.requestState=g.MessageRequestState.FAILED,_.sendingStatus=g.MessageSendingStatus.FAILED,_.requestedMentionUserIds=o,_.errorCode=v.code,h(v,_),y}var w=p.bMessage({channelUrl:this.url,message:t,data:n,customType:r,metaArrays:i,mentionType:a,mentionedUserIds:o,translationTargetLanguages:u,pushNotificationDeliveryOption:l,requestId:c});return y.reqId=w.requestId,this.isGroupChannel()&&g.getConnectionState()!==g.ConnectionState.OPEN&&g.currentUser&&!g.connecting&&!g.reconnecting&&"string"==typeof r&&0===r.indexOf("SB_VIDEOCHAT")?B.get(g._iid).container.apiClient.sendUserMessage({channelUrl:this.url,isOpenChannel:this.isOpenChannel(),message:t,data:n,customType:r,translationTargetLanguages:u,metaArrays:i,mentionType:a,mentionedUserIds:o,pushNotificationDeliveryOption:l},(function(e,t){var n=null;e?((n=new m(A)).requestState=g.MessageRequestState.FAILED,n.sendingStatus=g.MessageSendingStatus.FAILED,e.code===k.REQUEST_CANCELED&&(n.sendingStatus=g.MessageSendingStatus.CANCELED),n.requestedMentionUserIds=o,n.errorCode=e.code):((n=new m(t)).requestState=g.MessageRequestState.SUCCEEDED,n.sendingStatus=g.MessageSendingStatus.SUCCEEDED),h(e,n)})):g.sendCommand(w,(function(e,t){if(g.getErrorFirstCallback()){var n=[e,t];t=n[0],e=n[1]}if(t){var r=new m(A);r.reqId=w.requestId,r.requestState=g.MessageRequestState.FAILED,r.sendingStatus=g.MessageSendingStatus.FAILED,t.code===k.REQUEST_CANCELED&&(r.sendingStatus=g.MessageSendingStatus.CANCELED),r.requestedMentionUserIds=o,r.errorCode=t.code,h(new k(t.message,t.code),r)}else{var i=new m(e.getJsonElement()),a=g.currentUser;a&&i._sender&&a.userId===i._sender.userId&&(a.nickname!==i._sender.nickname&&(a.nickname=i._sender.nickname),a.profileUrl!==i._sender.profileUrl&&(a.profileUrl=i._sender.profileUrl),N.deepEqual(a.metaData,i._sender.metaData)||(a.metaData=i._sender.metaData)),s.isGroupChannel()?f.getChannel(s.url,(function(e,t){if(g.getErrorFirstCallback()){var n=[e,t];t=n[0],e=n[1]}if(t)i.requestState=g.MessageRequestState.SUCCEEDED,i.sendingStatus=g.MessageSendingStatus.SUCCEEDED,h(t,i);else{if(!N.isVideoChatSignalingMessage(i))for(var r in e.lastMessage=i,g.channelHandlers)g.channelHandlers[r].onChannelChanged(e);i.requestState=g.MessageRequestState.SUCCEEDED,i.sendingStatus=g.MessageSendingStatus.SUCCEEDED,h(null,i)}})):(i.requestState=g.MessageRequestState.SUCCEEDED,i.sendingStatus=g.MessageSendingStatus.SUCCEEDED,h(null,i))}})),y}},{key:"sendUserMessage",value:function(){var e=V.toArray(arguments),t=e.pop(),n=null,r=null,i=U.get(this._iid),a=i.UserMessageParams,s=i.MessageMetaArray;if("function"==typeof t)if(e[0]instanceof a)null===(r=e[0]).data&&(r.data=""),null===r.customType&&(r.customType="");else if("string"==typeof e[0])switch((r=new a).message=e[0],e.length){case 1:break;case 2:r.data=e[1]||"";break;case 3:r.data=e[1]||"",r.customType=e[2]||"";break;case 4:r.data=e[1]||"",r.customType=e[2]||"",r.translationTargetLanguages=Array.isArray(e[3])?e[3]:[e[3]];break;default:n=V.error}else n=V.error;else n=V.error;var o=B.get(this._iid).container.isErrorFirstInCallback;if(!n&&r._validate()&&r.message){for(var u=[],l=0;l<r.metaArrayKeys.length;l++){var h=r.metaArrayKeys[l];u.push(new s(h,[]))}return this._sendUserMessage(c({},r,{metaArrays:u,mentionType:r.mentionType,mentionedUserIds:r._mentionedUserIds,translationTargetLanguages:r._translationTargetLanguages,callback:function(e,n){o?t(e,n):t(n,e)}}))}return o?t(V.error,null):t(null,V.error),null}},{key:"resendUserMessage",value:function(e,t){var n=this,r=U.get(this._iid),i=r.UserMessage,a=r.UserMessageParams,s=null,o=_(V.parse(arguments,[new V({type:i,constraint:function(e){return 0===e.messageId&&e.isResendable()&&e.reqId&&e.channelUrl===n.url&&"string"==typeof e.message&&"string"==typeof e.data&&"string"==typeof e.customType&&Array.isArray(e.translations)}}),new V({type:"callback"})]),3);return s=o[0],e=o[1],t=o[2],X(this._iid,(function(t){if(s)s.message+=" Please check if the failed message is resend-able with `message.isResendable().`",t(s,null);else{var r=a.PushNotificationDeliveryOption.DEFAULT;n._sendUserMessage(c({},e,{mentionedUserIds:e.requestedMentionUserIds,translationTargetLanguages:e.translations,pushNotificationDeliveryOption:r,reqId:e.reqId,callback:t}))}}),t)}},{key:"updateUserMessage",value:function(e,t,n,r,i){var s=this,a=U.get(this._iid),o=a.Command,u=a.UserMessage,l=a.UserMessageParams,h=arguments,d=null,f=null;if("number"==typeof e)switch(h.length){case 3:var p=_(V.parse(h,[new V({type:"number"}),new V({type:l}),new V({type:"callback"})]),4);d=p[0],e=p[1],f=p[2],i=p[3];break;case 5:f=new l;var m=_(V.parse(h,[new V({type:"number"}),new V({type:"string",nullable:!0}),new V({type:"string",nullable:!0}),new V({type:"string",nullable:!0}),new V({type:"callback"})]),6);d=m[0],e=m[1],t=m[2],n=m[3],r=m[4],i=m[5],f.message=t,f.data=n,f.customType=r}return X(this._iid,(function(i){if(!d&&f&&f._validate()){var t=o.bUpdateUserMessage(c({channelUrl:s.url,messageId:e},f,{mentionType:f._mentionType,mentionedUserIds:f._mentionedUserIds})),a=ot.getInstance(s._iid);a.sendCommand(t,(function(e,t){if(a.getErrorFirstCallback()){var n=[e,t];t=n[0],e=n[1]}
vendor: 1,371 bytes, line 2
2var r=null;t||(r=new u(e.getJsonElement())),i(t,r)}))}else i(V.error,null)}),i)}},{key:"translateUserMessage",value:function(e,t,n){var i,a=this,r=ot.getInstance(this._iid),s=U.get(this._iid).UserMessage,o=_(V.parse(arguments,[new V({type:s,constraint:function(e){return e.channelUrl===a.url&&e.sendingStatus===r.MessageSendingStatus.SUCCEEDED}}),new V({type:"array",constraint:function(e){return e.every((function(e){return"string"==typeof e}))}}),new V({type:"callback"})]),4);return i=o[0],e=o[1],t=o[2],n=o[3],X(this._iid,(function(n){i?n(i,null):B.get(a._iid).container.apiClient.translateUserMessage({channelUrl:a.url,isOpenChannel:a.isOpenChannel(),messageId:e.messageId,translationTargetLanguages:t},(function(e,t){var r=null;e||(r=new s(t)),n(e,r)}))}),n)}},{key:"_parseFileMessageArguments",value:function(e){var t=U.get(this._iid),n=t.BaseMessageParams,r=t.FileMessageParams,i=t.MessageMetaArray,a={error:null,file:null,name:null,type:null,size:null,data:"",customType:"",thumbnailSizes:[],metaArrays:[],mentionType:n.MentionType.USERS,mentionedUserIds:[],pushNotificationDeliveryOption:r.PushNotificationDeliveryOption.DEFAULT,progressHandler:null,callback:null};if("function"==typeof e[e.length-1]&&(a.callback=e.pop()),"function"==typeof e[e.length-1]&&(a.progressHandler=e.pop()),e[0]instanceof r){if(a.file=e[0].file||e[0].fileUrl,a.name=e[0].fileName,a.t
2ype=e[0].mimeType,a.size=e[0].fileSize,a.data=e[0].data,a.customType=e[0].customType,a.thumbnailSizes=e[0].thumbnailSizes,Array.isArray(e[0].metaArrayKeys))for(var s=0;s<e[0].metaArrayKeys.length;s++){var o=e[0].metaArrayKeys[s];"string"==typeof o&&a.metaArrays.push(new i(o,[]))}a.mentionType=e[0]._mentionType,a.mentionedUserIds=e[0]._mentionedUserIds,a.pushNotificationDeliveryOption=e[0].pushNotificationDeliveryOption?e[0].pushNotificationDeliveryOption:r.PushNotificationDeliveryOption.DEFAULT,e[0]._validate()||(a.error=V.error)}else if(N.isFile(e[0])||"string"==typeof e[0]){switch(a.file=e[0],e.length){case 1:break;case 2:a.data=e[1];break;case 3:a.data=e[1],a.customType=e[2];break;case 4:a.data=e[1],a.customType=e[2],a.thumbnailSizes=e[3];break;case 5:a.name=e[1],a.type=e[2],a.size=e[3],a.data=e[4];break;case 6:a.name=e[1],a.type=e[2],a.size=e[3],a.data=e[4],a.customType=e[5];break;case 7:a.name=e[1],a.type=e[2],a.size=e[3],a.data=e[4],a.customType=e[5],a.thumbnailSizes=e[6]}var u=_(V.parse([a.file,a.name,a.type,a.size,a.data,a.customType,a.thumbnailSizes],[new V({type:["file","string"]}),new V({type:"string",nullable:!0}),new V({type:"string",nullable:!0}),new V({type:"number",nullable:!0,constraint:function(e){return 0<=e}}),new V({type:"string",nullable:!0}),new V({type:"string",nullable:!0}),new V({type:"array"})]),8);a.error=u[0],a.file=u[1],a.name=u[2],a.type=u[3],a.size=u[4],a.data=u[5],a.customType=u[6],a.thumbnailSizes=u[7]}else a.error=V.error;return N.isFile(a.file)&&(a.name=a.name||a.file.name,a.type=a.type||a.file.type,a.size=a.size||a.file.size),a}},{key:"_createTempFileMessage",value:function(e){try{var t=ot.getInstance(this._iid),n=U.get(this._iid),r=n.Command,i=(n.BaseMessage,n.FileMessage);return new i(i.build(r.generateRequestId(),0,t.currentUser,this,"string"==typeof e.file?e.file:"",e.name,e.type,e.size,e.data,e.customType,!1,(new Date).getTime(),e.thumbnailSizes.map((function(e){return{url:"",width:e.maxWidth,height:e.maxHeight,real_width:0,real_height:0}})),e.requireAuth,null,e.metaArrays,e.mentionType,null,e.mentionedUserIds,t.MessageSendingStatus.PENDING))}catch(e){return null}}},{key:"sendFileMessage",value:function(){var e=this._parseFileMessageArguments(V.toArray(arguments)),t=null,n=U.get(this._iid).Command.generateRequestId();e.error||((t=this._createTempFileMessage(e)).requestedMentionUserIds=e.mentionedUserIds,n=t.reqId);var r=ot.getInstance(this._iid);r&&r.currentUser||(e.error=new k("Connection should be made first.",k.CONNECTION_REQUIRED));var i=U.get(this._iid).FileMessageQueue;return i.create(this).addJob(new i.Job({fileInfo:e,pendingMessage:t,requestId:n,error:e.error,response:null})),t}},{key:"sendFileMessages",value:function(e,t){var n=this,r=1<arguments.length&&void 0!==t?t:{},i=r.progress?r.progress:function(){},a=r.sent?r.sent:function(){},s=r.complete?r.complete:function(){};if(Array.isArray(e)&&0<e.length&&e.length<=20){var o=[];return e.forEach((function(t,r){o.push(n.sendFileMessage(t,i,(function(t,n){a(t,n),r===e.length-1&&s(null)})))})),o}return s(V.error),null}},{key:"resendFileMessage",value:function(e,t,n){var i=this,r=U.get(this._iid),a=r.FileMessage,s=r.FileMessageParams,o=null,u=_(V.parse(arguments,[new V({type:a,constraint:function(e){return 0===e.messageId&&e.isResendable()&&e.reqId&&e.channelUrl===i.url&&"string"==typeof e.data&&"string"==typeof e.customType&&Array.isArray(e.thumbnails)}}),new V({type:"file",optionalIf:function(e){return!!e[0].url},defaultValue:null}),new V({type:"callback"})]),4);return o=u[0],e=u[1],t=u[2],n=u[3],X(this._iid,(function(n){if(o)o.message+=" Please check if the failed message is resend-able with `message.isResendable().`",n(o,null);else{var r=new s;e.url?r.fileUrl=e.url:r.file=t,r.fileName=e.name,r.fileSize=e.size,r.mimeType=e.type,r.data=e.data,r.customType=e.customType,r.mentionType=e.mentionType,r.mentionedUserIds=e.requestedMentionUserIds,r.metaArrayKeys=e.metaArrays.map((function(e){return e.key})),r.thumbnailSizes=e.thumbnails.map((function(e){return{maxWidth:e.width,maxHeight:e.height}})),i.sendFileMessage(r,n)}}),n)}},{key:"updateFileMessage",value:function(e,t,n,r){var s=this,i=U.get(this._iid),o=i.Command,u=i.FileMessage,a=i.FileMessageParams,l=arguments,h=null,d=null;if("number"==typeof e)switch(l.length){case 3:var f=_(V.parse(l,[new V({type:"number"}),new V({type:a}),new V({type:"callback"})]),4);h=f[0],e=f[1],d=f[2],r=f[3],d&&(d._isUpdate=!0);break;case 4:d=new a;var p=_(V.parse(l,[new V({type:"number"}),new V({type:"string",nullable:!0}),new V({type:"string",nullable:!0}),new V({type:"callback"})]),5);h=p[0],e=p[1],t=p[2],n=p[3],r=p[4],d.data=t,d.customType=n,d._isUpdate=!0}
2return X(this._iid,(function(i){if(!h&&d&&d._validate()){var t=o.bUpdateFileMessage(c({channelUrl:s.url,messageId:e},d,{mentionType:d._mentionType,mentionedUserIds:d._mentionedUserIds})),a=ot.getInstance(s._iid);a.sendCommand(t,(function(e,t){if(a.getErrorFirstCallback()){var n=[e,t];t=n[0],e=n[1]}var r=null;t||(r=new u(e.getJsonElement())),i(t,r)}))}else i(V.error,null)}),r)}},{key:"cancelUploadingFileMessage",value:function(e,t){var n,r=_(V.parse(arguments,[new V({type:["number","string"]}),new V({type:"callback"})]),3);n=r[0],e=r[1],t=r[2];var i=B.get(this._iid).container.isErrorFirstInCallback;return n?(i?t(n,null):t(null,n),!1):U.get(this._iid).FileMessageQueue.create(this).cancelUploadItemByRequestId(e,(function(e,n){return i?t(e,n):t(n,e)}))}},{key:"addReaction",value:function(i,e,t){var n,a=this,s=ot.getInstance(this._iid),r=U.get(this._iid).ReactionEvent,o=_(V.parse(arguments,[new V({type:W}),new V({type:"string",constraint:function(e){return 0<e.length}}),new V({type:"callback"})]),4);return n=o[0],i=o[1],e=o[2],t=o[3],X(this._iid,(function(t){n?t(n,null):i.sendingStatus===s.MessageSendingStatus.SUCCEEDED?B.get(a._iid).container.apiClient.addReaction({isGroupChannel:i.isGroupChannel(),channelUrl:i.channelUrl,messageId:i.messageId,key:e},(function(e,n){var o=null;e||(o=r.createFromJson(c({},n,{msg_id:i.messageId}))),t(e,o)})):t(new k("Cannot add reaction to a non-succeeded message.",k.REQUEST_FAILED),null)}),t)}},{key:"deleteReaction",value:function(i,e,t){var n,a=this,s=ot.getInstance(this._iid),r=U.get(this._iid).ReactionEvent,o=_(V.parse(arguments,[new V({type:W}),new V({type:"string",constraint:function(e){return 0<e.length}}),new V({type:"callback"})]),4);return n=o[0],i=o[1],e=o[2],t=o[3],X(this._iid,(function(t){n?t(n,null):i.sendingStatus===s.MessageSendingStatus.SUCCEEDED?B.get(a._iid).container.apiClient.deleteReaction({isGroupChannel:i.isGroupChannel(),channelUrl:i.channelUrl,messageId:i.messageId,key:e},(function(e,n){var o=null;e||(o=r.createFromJson(c({},n,{msg_id:i.messageId}))),t(e,o)})):t(new k("Cannot remove reaction to a non-succeeded message.",k.REQUEST_FAILED),null)}),t)}},{key:"deleteMessage",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"object",constraint:function(e){return!Array.isArray(e)&&null!==e&&e.hasOwnProperty("messageId")}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.deleteMessage({channelUrl:i.url,isOpenChannel:i.isOpenChannel(),messageId:e.messageId},(function(e,n){return t(e,null)}))}),t)}},{key:"getMetaCounters",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"array",constraint:function(e){return Object.keys(e).map((function(t){return e[t]})).every((function(e){return"string"==typeof e}))}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.getMetaCounters({channelUrl:i.url,isOpenChannel:i.isOpenChannel(),keys:e},(function(e,n){return t(e,n)}))}),t)}},{key:"getAllMetaCounters",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.getMetaCounters({channelUrl:t.url,isOpenChannel:t.isOpenChannel(),keys:[]},(function(t,n){return e(t,n)}))}),e)}},{key:"createMetaCounters",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"object",constraint:function(e){return e&&!Array.isArray(e)&&0<Object.keys(e).length&&Object.keys(e).map((function(t){return e[t]})).every((function(e){return"number"==typeof e}))}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.createMetaCounters({channelUrl:i.url,isOpenChannel:i.isOpenChannel(),metaCounter:e},(function(e,n){return t(e,n)}))}),t)}},{key:"updateMetaCounters",value:function(e,t,n){var r,i=this,a=_(V.parse(arguments,[new V({type:"object",constraint:function(e){return e&&!Array.isArray(e)&&0<Object.keys(e).length&&Object.keys(e).map((function(t){return e[t]})).every((function(e){return"number"==typeof e}))}}),new V({type:"boolean",optional:!0,defaultValue:!1}),new V({type:"callback"})]),4);return r=a[0],e=a[1],t=a[2],n=a[3],X(this._iid,(function(n){r?n(r,null):B.get(i._iid).container.apiClient.updateMetaCounters({channelUrl:i.url,isOpenChannel:i.isOpenChannel(),metaCounter:e,upsert:t,mode:"set"},(function(e,t){return n(e,t)}))}),n)}},{key:"increaseMetaCounters",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"object",constraint:function(e){return e&&!Array.isArray(e)&&0<Object.keys(e).length&&Object.keys(e).map((function(t){return e[t]})).every((function(e){return"number"==typeof e}))}}),new V({type:"callback"})]),3);
vendor: 7,732 bytes, line 2
2return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.updateMetaCounters({channelUrl:i.url,isOpenChannel:i.isOpenChannel(),metaCounter:e,upsert:!1,mode:"increase"},(function(e,n){return t(e,n)}))}),t)}},{key:"decreaseMetaCounters",value:function(e,t){var n,r=this,i=_(V.parse(arguments,[new V({type:"object",constraint:function(e){return e&&!Array.isArray(e)&&0<Object.keys(e).length&&Object.keys(e).map((function(t){return e[t]})).every((function(e){return"number"==typeof e}))}}),new V({type:"callback"})]),3);return n=i[0],e=i[1],t=i[2],X(this._iid,(function(i){n?i(n,null):B.get(r._iid).container.apiClient.updateMetaCounters({channelUrl:r.url,isOpenChannel:r.isOpenChannel(),metaCounter:e,upsert:!1,mode:"decrease"},(function(e,t){var n=null;if(!e)for(var r in n={},t)n[r]=t[r];i(e,n)}))}),t)}},{key:"deleteMetaCounter",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string"}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.deleteMetaCounter({channelUrl:i.url,isOpenChannel:i.isOpenChannel(),key:e},(function(e,n){return t(e,n)}))}),t)}},{key:"deleteAllMetaCounters",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.deleteAllMetaCounters({channelUrl:t.url,isOpenChannel:t.isOpenChannel()},(function(t,n){return e(t,n)}))}),e)}},{key:"getMetaData",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"array",constraint:function(e){return Object.keys(e).map((function(t){return e[t]})).every((function(e){return"string"==typeof e}))}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.getMetaData({channelUrl:i.url,isOpenChannel:i.isOpenChannel(),keys:e},(function(e,n){return t(e,n)}))}),t)}},{key:"getAllMetaData",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.getMetaData({channelUrl:t.url,isOpenChannel:t.isOpenChannel(),keys:[]},(function(t,n){return e(t,n)}))}),e)}},{key:"createMetaData",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"object",constraint:function(e){return e&&!Array.isArray(e)&&0<Object.keys(e).length&&Object.keys(e).map((function(t){return e[t]})).every((function(e){return"string"==typeof e}))}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.createMetaData({channelUrl:i.url,isOpenChannel:i.isOpenChannel(),metaData:e},(function(e,n){return t(e,n)}))}),t)}},{key:"updateMetaData",value:function(e,t,n){var r,i=this,a=_(V.parse(arguments,[new V({type:"object",constraint:function(e){return e&&!Array.isArray(e)&&0<Object.keys(e).length&&Object.keys(e).map((function(t){return e[t]})).every((function(e){return"string"==typeof e}))}}),new V({type:"boolean",optional:!0,defaultValue:!1}),new V({type:"callback"})]),4);return r=a[0],e=a[1],t=a[2],n=a[3],X(this._iid,(function(n){r?n(r,null):B.get(i._iid).container.apiClient.updateMetaData({channelUrl:i.url,isOpenChannel:i.isOpenChannel(),metaData:e,upsert:t},(function(e,t){return n(e,t)}))}),n)}},{key:"deleteMetaData",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string"}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.deleteMetaData({channelUrl:i.url,isOpenChannel:i.isOpenChannel(),key:e},(function(e,n){return t(e,n)}))}),t)}},{key:"deleteAllMetaData",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.deleteAllMetaData({channelUrl:t.url,isOpenChannel:t.isOpenChannel()},(function(t,n){return e(t,n)}))}),e)}},{key:"_updateMessageMetaArray",value:function(e,t,n,r){var o=this;return X(this._iid,(function(i){var r=U.get(o._iid),l=r.Command,a=r.UserMessage,s=r.FileMessage,c=r.AdminMessage,h=null;if(t.isUserMessage()?h=l.bUpdateUserMessage({channelUrl:e,messageId:t.messageId,metaArrayParams:n}):t.isFileMessage()&&(h=l.bUpdateFileMessage({channelUrl:e,messageId:t.messageId,metaArrayParams:n})),h){var u=ot.getInstance(o._iid);u.sendCommand(h,(function(e,n){if(u.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}var o=null;n||(t.isUserMessage()?o=new a(e.getJsonElement()):t.isFileMessage()?o=new s(e.getJsonElement()):t.isAdminMessage()&&(o=new c(e.getJsonElement()))),i(n,o)}))}else i(V.error,null)}),r)}},{key:"createMessageMetaArrayKeys",value:function(e,t,n){var r,i=U.get(this._iid).MessageMetaArray,a=_(V.parse(arguments,[new V({type:W}),new V({type:"array",constraint:function(e){return e.every((function(e){return"string"==typeof e&&""!==e}))}}),new V({type:"callback"})]),4);if(r=a[0],e=a[1],t=a[2],n=a[3],r)return X(this._iid,(function(e){e(r,null)}),n);var s=[];if(Array.isArray(t))for(var o=0;o<t.length;o++){var u=t[o];s.push(new i(u,[]))}return this._updateMessageMetaArray(this.url,e,{array:s.map((function(e){return e.encode()})),mode:"add",upsert:!0},n)}},{key:"deleteMessageMetaArrayKeys",value:function(e,t,n){var r,i=U.get(this._iid).MessageMetaArray,a=_(V.parse(arguments,[new V({type:W}),new V({type:"array",constraint:function(e){return e.every((function(e){return"string"==typeof e&&""!==e}))}}),new V({type:"callback"})]),4);if(r=a[0],e=a[1],t=a[2],n=a[3],r)return X(this._iid,(function(e){e(r,null)}),n);var s=[];if(Array.isArray(t))for(var o=0;o<t.length;o++){var u=t[o];s.push(new i(u,[]))}return this._updateMessageMetaArray(this.url,e,{array:s.map((function(e){return e.encode()})),mode:"remove",upsert:!0},n)}},{key:"addMessageMetaArrayValues",value:function(e,t,n){var r,i=U.get(this._iid).MessageMetaArray,a=_(V.parse(arguments,[new V({type:W}),new V({type:"object",constraint:function(e){return e&&(Array.isArray(e)&&e.every((function(e){return e instanceof i}))||Object.keys(e).every((function(t){return Array.isArray(e[t])&&e[t].every((function(e){return"string"==typeof e&&0<e.length}))})))}}),new V({type:"callback"})]),4);if(r=a[0],e=a[1],t=a[2],n=a[3],r)return X(this._iid,(function(e){e(r,null)}),n);var s=Array.isArray(t)?t.map((function(e){return e.encode()})):Object.keys(t).map((function(e){return{key:e,value:t[e]}}));return this._updateMessageMetaArray(this.url,e,{array:s,mode:"add",upsert:!0},n)}},{key:"removeMessageMetaArrayValues",value:function(e,t,n){var r,i=U.get(this._iid).MessageMetaArray,a=_(V.parse(arguments,[new V({type:W}),new V({type:"object",constraint:function(e){return e&&(Array.isArray(e)&&e.every((function(e){return e instanceof i}))||Object.keys(e).every((function(t){return Array.isArray(e[t])&&e[t].every((function(e){return"string"==typeof e&&0<e.length}))})))}}),new V({type:"callback"})]),4);if(r=a[0],e=a[1],t=a[2],n=a[3],r)return X(this._iid,(function(e){e(r,null)}),n);var s=Array.isArray(t)?t.map((function(e){return e.encode()})):Object.keys(t).map((function(e){return{key:e,value:t[e]}}));return this._updateMessageMetaArray(this.url,e,{array:s,mode:"remove",upsert:!0},n)}},{key:"report",value:function(e,t,n){var r,i=this,a=U.get(this._iid).BaseChannel,s=_(V.parse(arguments,[new V({type:a.ReportCategory}),new V({type:"string"}),new V({type:"callback"})]),4);return r=s[0],e=s[1],t=s[2],n=s[3],X(this._iid,(function(n){r?n(r,null):B.get(i._iid).container.apiClient.report({channelUrl:i.url,isOpenChannel:i.isOpenChannel(),reportCategory:e,reportingUserId:ot.getInstance(i._iid).currentUser.userId,reportDescription:t},(function(e,t){n(e,null)}))}),n)}},{key:"reportUser",value:function(e,t,n,r){var i,a=this,s=U.get(this._iid).BaseChannel,o=_(V.parse(arguments,[new V({type:J}),new V({type:s.ReportCategory}),new V({type:"string"}),new V({type:"callback"})]),5);
2return i=o[0],e=o[1],t=o[2],n=o[3],r=o[4],X(this._iid,(function(r){i?r(i,null):B.get(a._iid).container.apiClient.reportUser({channelUrl:a.url,isOpenChannel:a.isOpenChannel(),reportCategory:t,offendingUserId:e.userId,reportingUserId:ot.getInstance(a._iid).currentUser.userId,reportDescription:n},(function(e,t){r(e,null)}))}),r)}},{key:"reportMessage",value:function(e,t,n,r){var i,a=this,s=U.get(this._iid).BaseChannel,o=_(V.parse(arguments,[new V({type:W}),new V({type:s.ReportCategory}),new V({type:"string"}),new V({type:"callback"})]),5);return i=o[0],e=o[1],t=o[2],n=o[3],r=o[4],X(this._iid,(function(r){i?r(i,null):B.get(a._iid).container.apiClient.reportMessage({messageId:e.messageId,channelUrl:a.url,isOpenChannel:a.isOpenChannel(),reportCategory:t,offendingUserId:e.sender.userId,reportingUserId:ot.getInstance(a._iid).currentUser.userId,reportDescription:n},(function(e,t){r(e,null)}))}),r)}}],[{key:"buildMessage",value:function(e,t){var n=U.get(this._iid),r=n.Sender,i=n.UserMessage,a=n.FileMessage,s=n.AdminMessage,o=n.BaseMessageParams,u=n.MessageMetaArray;if(e)switch(e.type){case"MESG":return new i(i.build(e.req_id,parseInt(e.message_id),new r(e.user),t,e.message,e.data||"",e.custom_type||"",e.translations||{},e.is_global_block||!1,parseInt(e.created_at),parseInt(e.updated_at),e.sorted_metaarray?e.sorted_metaarray.map((function(e){return new u(e.key,e.value||[])})):[],e.reactions,e.mention_type||o.MentionType.USERS,e.mentioned_users||[]));case"FILE":var l=e.file;return new a(a.build(e.req_id,parseInt(e.message_id),new r(e.user),t,String(l.url),String(l.name),String(l.type),parseInt(l.size)||0,l.data||"",e.custom_type||"",e.is_global_block||!1,parseInt(e.created_at),e.thumbnails||[],e.require_auth||!1,parseInt(e.updated_at),e.sorted_metaarray?e.sorted_metaarray.map((function(e){return new u(e.key,e.value||[])})):[],e.reactions,e.mention_type||o.MentionType.USERS,e.mentioned_users||[]));case"BRDM":case"ADMM":return new s(s.build(parseInt(e.message_id),t,e.message,e.data||"",e.custom_type||"",e.translations||{},parseInt(e.created_at),parseInt(e.updated_at),e.sorted_metaarray?e.sorted_metaarray.map((function(e){return new u(e.key,e.value||[])})):[],e.reactions,e.mention_type||o.MentionType.USERS,e.mentioned_users||[]))}return null}},{key:"CHANNEL_TYPE_OPEN",get:function(){return"open"}},{key:"CHANNEL_TYPE_GROUP",get:function(){return"group"}},{key:"CHANNEL_TYPE_BASE",get:function(){return"base"}},{key:"MessageTypeFilter",get:function(){return{ALL:"",USER:"MESG",FILE:"FILE",ADMIN:"ADMM"}}},{key:"ReportCategory",get:function(){return{SPAM:"spam",HARASSING:"harassing",SUSPICIOUS:"suspicious",INAPPROPRIATE:"inappropriate"}}}]),e}(),te=function(){function e(t){l(this,e),t&&(this.category=t.hasOwnProperty("cat")?parseInt(t.cat):0,this.data=t.hasOwnProperty("data")?t.data:null,this.channelUrl=t.hasOwnProperty("channel_url")?String(t.channel_url):"",this.channelType=t.hasOwnProperty("channel_type")?String(t.channel_type):ee.CHANNEL_TYPE_GROUP)}return s(e,[{key:"isGroupChannel",value:function(){return this.channelType===ee.CHANNEL_TYPE_GROUP}},{key:"isOpenChannel",value:function(){return this.channelType===ee.CHANNEL_TYPE_OPEN}}]),e}();function ne(e){l(this,ne),e&&(this.category=e.hasOwnProperty("cat")?parseInt(e.cat):0)}te.CATEGORY_NONE=0,te.CATEGORY_CHANNEL_ENTER=10102,te.CATEGORY_CHANNEL_EXIT=10103,te.CATEGORY_USER_CHANNEL_MUTE=10201,te.CATEGORY_USER_CHANNEL_UNMUTE=10200,te.CATEGORY_USER_CHANNEL_BAN=10601,te.CATEGORY_USER_CHANNEL_UNBAN=10600,te.CATEGORY_CHANNEL_FREEZE=10701,te.CATEGORY_CHANNEL_UNFREEZE=10700,te.CATEGORY_TYPING_START=10900,te.CATEGORY_TYPING_END=10901,te.CATEGORY_CHANNEL_JOIN=1e4,te.CATEGORY_CHANNEL_LEAVE=10001,te.CATEGORY_CHANNEL_OPERATOR_UPDATE=10002,te.CATEGORY_CHANNEL_INVITE=10020,te.CATEGORY_CHANNEL_DECLINE_INVITE=10022,te.CATEGORY_CHANNEL_PROP_CHANGED=11e3,te.CATEGORY_CHANNEL_DELETED=12e3,te.CATEGORY_CHANNEL_META_DATA_CHANGED=11100,te.CATEGORY_CHANNEL_META_COUNTERS_CHANGED=11200,te.CATEGORY_CHANNEL_HIDE=13e3,te.CATEGORY_CHANNEL_UNHIDE=13001,ne.CATEGORY_USER_BLOCK=20001,ne.CATEGORY_USER_UNBLOCK=2e4,ne.CATEGORY_FRIEND_DISCOVERED=20900;var re=function(){function e(t){l(this,e),this.sb=t,this.cls=U.get(this.sb._iid)}return s(e,[{key:"onRawCommandReceived",value:function(e){var t=this,n=this.cls,r=n.Command,l=n.User,c=n.Member,h=n.BaseChannel,p=n.GroupChannel,d=n.OpenChannel,i=n.UserMessage,a=n.FileMessage,s=n.AdminMessage,f=n.BaseMessageParams,u=n.ReactionEvent,m=n.ReadStatus,A=B.get(this.sb._iid),y=A.container,v=y.pinger,g=y.auth,_=y.subscribedUnreadMessageCount,w=y.ackStateMap,x=new r(e),E=x.getJsonElement();if(E.hasOwnProperty("unread_cnt")&&"object"===o(E.unread_cnt)){var b=!1,S=E.unread_cnt.ts;if("number"==typeof S&&S>_.ts){if(_.all!==E.unread_cnt.all&&(b=!0),_.all=0<=E.unread_cnt.all?E.unread_cnt.all:0,E.unread_cnt.custom_types)for(var T in E.unread_cnt.custom_types)_.custom_types[T]!==E.unread_cnt.custom_types[T]&&(b=!0),_.custom_types[T]=E.unread_cnt.custom_types[T];b=b&&0<_.ts,_.ts=S}if(b)for(var I in this.sb.userEventHandlers)this.sb.userEventHandlers[I].onTotalUnreadMessageCountUpdated(_.all,_.custom_types)}var M=x.requestId;if(M){var D=w[M];if(D){clearTimeout(D.timer);var U=D.handler;U&&("EROR"===x.command?U(new k(E.message,E.code),null):U(null,x)),w.hasOwnProperty(M)&&delete w[M]}}
2else switch(v&&"LOGI"!==x.command&&v.start(),x.command){case"LOGI":this.sb.loginTimer&&(clearTimeout(this.sb.loginTimer),this.sb.loginTimer=null,this.sb.onLoginTimerCancel=null,E.hasOwnProperty("error")?(this.sb.isSessionOpened=!1,this.sb.loginHandler(new k(E.message,E.code),null)):(this.sb.isSessionOpened=!0,E.hasOwnProperty("key")&&(g.sessionKey=E.key),E.hasOwnProperty("ekey")&&(g.eKey=E.ekey),E.hasOwnProperty("user_id")&&(this.sb.currentUser=new l(E)),"number"==typeof E.ping_interval&&0<E.ping_interval&&A.set("pingInterval",1e3*E.ping_interval),"number"==typeof E.pong_timeout&&0<E.pong_timeout&&A.set("pongTimeout",1e3*E.pong_timeout),"number"==typeof E.login_ts&&A.set("connectedAt",1e3*E.login_ts),"number"==typeof E.max_unread_cnt_on_super_group?A.set("maxUnreadCountOfSuperGroupChannel",E.max_unread_cnt_on_super_group):A.set("maxUnreadCountOfSuperGroupChannel",C.DEFAULT_MAX_UNREAD_COUNT_OF_SUPER_GROUP_CHANNEL),v&&v.start(),this.sb.loginHandler(null,this.sb.currentUser)),this.sb.connecting=!1,this.sb.reconnecting=!1);break;case"MESG":case"FILE":case"BRDM":case"ADMM":var O=null,F=!1,R=!1;if("MESG"===x.command?O=new i(E):"FILE"===x.command?O=new a(E):(O=new s(E),E.hasOwnProperty("silent")&&(R=E.silent)),E.hasOwnProperty("force_update_last_message")&&(F=E.force_update_last_message),O){var L=this.sb.currentUser.userId;if(O.isGroupChannel()){if("MESG"===x.command||"FILE"===x.command||"BRDM"===x.command){var z=r.bMessageAck({channelUrl:O.channelUrl,messageId:O.messageId});this.sb.sendCommand(z)}var H=p.cachedChannels.hasOwnProperty(O.channelUrl);p.getChannel(O.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(!n){if(e.isHidden=!1,e.hiddenState=p.HiddenState.UNHIDDEN,p.cachedChannels[e.url]=e,O._sender&&e.memberMap.hasOwnProperty(O._sender.userId)){var o=e.memberMap[O._sender.userId];o.nickname!==O._sender.nickname&&(o.nickname=O._sender.nickname),o.profileUrl!==O._sender.profileUrl&&(o.profileUrl=O._sender.profileUrl),N.deepEqual(o.metaData,O._sender.metaData)||(o.metaData=O._sender.metaData),o.isBlockedByMe!==O._sender.isBlockedByMe&&(o.isBlockedByMe=O._sender.isBlockedByMe)}var i=t.sb.currentUser;i&&O._sender&&L===O._sender.userId&&(i.nickname!==O._sender.nickname&&(i.nickname=O._sender.nickname),i.profileUrl!==O._sender.profileUrl&&(i.profileUrl=O._sender.profileUrl),N.deepEqual(i.metaData,O._sender.metaData)||(i.metaData=O._sender.metaData));var a=!1;if(O.mentionType===f.MentionType.CHANNEL)O.sender&&O.sender.userId===L||(a=!0);else if(O.mentionType===f.MentionType.USERS)for(var s=0;s<O.mentionedUsers.length;s++)if((!O.sender||O.sender.userId!==L)&&O.mentionedUsers[s].userId===L){a=!0;break}if(!N.isVideoChatSignalingMessage(O)&&(R||(e.isEphemeral||H)&&((!e.lastMessage||e.lastMessage.createdAt<O.createdAt)&&(e.lastMessage=O),O.sender&&O.sender.userId===L||e._setGroupChannelUnreadCount(e.unreadMessageCount+1,e.unreadMentionCount+(a?1:0))),F&&(!e.lastMessage||e.lastMessage.createdAt<O.createdAt)&&(e.lastMessage=O),!R))for(var l in t.sb.channelHandlers)t.sb.channelHandlers[l].onChannelChanged(e);for(var u in t.sb.channelHandlers){var c=t.sb.channelHandlers[u];c.onMessageReceived(e,O),a&&c.onMentionReceived(e,O)}}}))}else O.isOpenChannel()&&d.getChannel(O.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(!n){var o=!1;if(O.mentionType===f.MentionType.CHANNEL)o=!0;else if(O.mentionType===f.MentionType.USERS)for(var i=0;i<O.mentionedUsers.length;i++)if(O.mentionedUsers[i].userId===L){o=!0;break}for(var a in t.sb.channelHandlers){var s=t.sb.channelHandlers[a];d.enteredChannels[e.url]&&s.onMessageReceived(e,O),o&&s.onMentionReceived(e,O)}}}))}break;case"MEDI":case"FEDI":case"AEDI":var Q=null,V=!1;if("MEDI"===x.command?Q=new i(E):"FEDI"===x.command?Q=new a(E):(Q=new s(E),E.hasOwnProperty("silent")&&(V=E.silent)),Q){var j=this.sb.currentUser.userId;if(Q.isGroupChannel()){var G=p.cachedChannels.hasOwnProperty(Q.channelUrl);p.getChannel(Q.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(!n){var o=e.cachedReadReceiptStatus[j],i=o&&o>=Q.createAt,a=t.sb.currentUser;a&&Q._sender&&a.userId===Q._sender.userId&&(a.nickname!==Q._sender.nickname&&(a.nickname=Q._sender.nickname),a.profileUrl!==Q._sender.profileUrl&&(a.profileUrl=Q._sender.profileUrl),N.deepEqual(a.metaData,Q._sender.metaData)||(a.metaData=Q._sender.metaData));var s=!1;if((!Q.sender||Q.sender.userId!==j)&&!i&&E&&E.hasOwnProperty("old_values")){var l=E.old_values.mention_type||Q.mentionType,u=E.old_values.mentioned_user_ids||Q.mentionedUsers.map((function(e){return e.userId}));if(l===f.MentionType.USERS&&Q.mentionType===f.MentionType.USERS){for(var c=!1,h=!1,d=0;d<u.length;d++)if(u[d]===j){c=!0;break}for(var m=0;m<Q.mentionedUsers.length;m++)if(Q.mentionedUsers[m].userId===j){h=!0;break}!c&&h&&(s=!0,G&&e._setGroupChannelUnreadCount(e.unreadMessageCount,e.unreadMentionCount+1))}else if(l===f.MentionType.USERS&&Q.mentionType===f.MentionType.CHANNEL){for(var p=!1,A=0;A<u.length;A++)if(u[A]===j){p=!0;break}p||(s=!0,G&&e._setGroupChannelUnreadCount(e.unreadMessageCount,e.unreadMentionCount+1))}}var y=!1;if(e.lastMessage&&e.lastMessage.messageId===Q.messageId&&(G?e.lastMessage.updatedAt<Q.updatedAt&&(e.lastMessage=Q,y=!0):y=!0),!V&&(y||s))for(var g in t.sb.channelHandlers)t.sb.channelHandlers[g].onChannelChanged(e);for(var v in t.sb.channelHandlers){var _=t.sb.channelHandlers[v];_.onMessageUpdated(e,Q),s&&_.onMentionReceived(e,Q)}}}))}else Q.isOpenChannel()&&d.getChannel(Q.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(!n)for(var o in t.sb.channelHandlers)t.sb.channelHandlers[o].onMessageUpdated(e,Q)}))}break;case"DELM":var q=String(E.channel_type),K=String(E.channel_url),$=String(E.msg_id);switch(q){case h.CHANNEL_TYPE_GROUP:p.getChannel(K,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command);else for(var o in t.sb.channelHandlers)t.sb.channelHandlers[o].onMessageDeleted(e,$)}));break;case h.CHANNEL_TYPE_OPEN:d.getChannel(K,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command);else for(var o in t.sb.channelHandlers)t.sb.channelHandlers[o].onMessageDeleted(e,$)}))}break;case"READ":var Y=new m(E),W=p.cachedChannels.hasOwnProperty(Y.channelUrl);p.getChannel(Y.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(!n)if(W&&e.updateReadReceipt(Y.reader.userId,Y.timestamp),Y.reader.userId===t.sb.currentUser.userId){if(W){if(0<e.unreadMessageCount||0<e.unreadMentionCount)for(var o in e._setGroupChannelUnreadCount(0,0),t.sb.channelHandlers)t.sb.channelHandlers[o].onChannelChanged(e)}else if(0===e.unreadMessageCount||0===e.unreadMentionCount)for(var i in t.sb.channelHandlers)t.sb.channelHandlers[i].onChannelChanged(e)}else for(var a in t.sb.channelHandlers)t.sb.channelHandlers[a].onReadReceiptUpdated(e)}));break;case"MRCT":var X=String(E.channel_type),J=String(E.channel_url),Z=u.createFromJson(E);switch(X){case h.CHANNEL_TYPE_GROUP:p.getChannel(J,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command);else for(var o in t.sb.channelHandlers)t.sb.channelHandlers[o].onReactionUpdated(e,Z)}));break;case h.CHANNEL_TYPE_OPEN:d.getChannel(J,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command);else for(var o in t.sb.channelHandlers)t.sb.channelHandlers[o].onReactionUpdated(e,Z)}))}break;case"DLVR":var ee=String(E.channel_url),re=E.hasOwnProperty("updated")?E.updated:null,ie=p.cachedChannels.hasOwnProperty(ee);p.getChannel(ee,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(!n){var o=!1;for(var i in re)t.sb.currentUser&&i===t.sb.currentUser.userId&&(o=!0),ie&&e.updateDeliveryReceipt(i,parseInt(re[i]));if(p.cachedChannels[e.url]=e,!o||1!==Object.keys(re).length)for(var a in t.sb.channelHandlers)t.sb.channelHandlers[a].onDeliveryReceiptUpdated(e)}}));break;case"SYEV":var se=new te(E);switch(se.category){case te.CATEGORY_CHANNEL_JOIN:case te.CATEGORY_CHANNEL_LEAVE:p.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else{var i=se.data.hasOwnProperty("member_count")?se.data.member_count:null,a=se.data.hasOwnProperty("joined_member_count")?se.data.joined_member_count:null;if(se.category===te.CATEGORY_CHANNEL_JOIN)(se.data.hasOwnProperty("users")?se.data.users:[se.data]).forEac
2h((function(n){e.isSuper||e.isBroadcast?e.setLatestMemberCount(i,a,E.ts):(n.state=c.JOINED,e.addMember(new c(n)),e.updateJoinedMemberCount());var r=new l(n);for(var o in t.sb.currentUser&&r.userId===t.sb.currentUser.userId&&(e.myMemberState="joined",p.cachedChannels[e.url]=e),t.sb.channelHandlers)t.sb.channelHandlers[o].onUserJoined(e,r)}));else{var o=new l(se.data);for(var s in t.sb.currentUser&&o.userId===t.sb.currentUser.userId?(e.isPublic||p.removeCachedChannel(se.channelUrl),e.myMemberState="none",e.invitedAt=0,e._setGroupChannelUnreadCount(0,0)):p.cachedChannels[e.url]=e,e.isSuper||e.isBroadcast?e.setLatestMemberCount(i,a,E.ts):(e.removeMember(o),e.updateJoinedMemberCount()),t.sb.channelHandlers)t.sb.channelHandlers[s].onUserLeft(e,o)}}}));break;case te.CATEGORY_CHANNEL_OPERATOR_UPDATE:se.isGroupChannel()?p.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else{var o=se.data.operators.map((function(e){return new l(e)})),i=o.map((function(e){return e.userId}));for(var a in e.members)e.members[a].role=0<=i.indexOf(e.members[a].userId)?p.Role.OPERATOR:p.Role.NONE;for(var s in e.myRole=0<=i.indexOf(t.sb.currentUser.userId)?p.Role.OPERATOR:p.Role.NONE,t.sb.channelHandlers)t.sb.channelHandlers[s].onOperatorUpdated(e,o)}})):se.isOpenChannel()&&d.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else for(var o in e.operators=se.data.operators.map((function(e){return new l(e)})),t.sb.channelHandlers)t.sb.channelHandlers[o].onOperatorUpdated(e,e.operators)}));break;case te.CATEGORY_CHANNEL_INVITE:p.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else{var o=null;se.data&&se.data.inviter&&0<Object.keys(se.data.inviter).length&&(o=new l(se.data.inviter));for(var i=[],a=0;a<se.data.invitees.length;a++){var s=new l(se.data.invitees[a]);i.push(s),se.data.invitees[a].state=c.INVITED;var h=new c(se.data.invitees[a]);if(e.isSuper||e.isBroadcast){var u=se.data.hasOwnProperty("member_count")?se.data.member_count:null,d=se.data.hasOwnProperty("joined_member_count")?se.data.joined_member_count:null;e.setLatestMemberCount(u,d,E.ts)}else e.addMember(h);t.sb.currentUser&&h.userId===t.sb.currentUser.userId&&(e.isHidden=!1,"joined"!==e.myMemberState&&(e.myMemberState="invited"),e.invitedAt=E.ts,p.cachedChannels[e.url]=e)}for(var f in t.sb.channelHandlers)t.sb.channelHandlers[f].onUserReceivedInvitation(e,o,i)}}));break;case te.CATEGORY_CHANNEL_DECLINE_INVITE:p.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else{var o=null;se.data&&se.data.inviter&&0<Object.keys(se.data.inviter).length&&(o=new l(se.data.inviter));var i=new l(se.data.invitee);if(t.sb.currentUser&&i.userId===t.sb.currentUser.userId&&(e.invitedAt=0,e.myMemberState="none",e.isPublic||p.removeCachedChannel(se.channelUrl)),e.isSuper||e.isBroadcast){var a=se.data.hasOwnProperty("member_count")?se.data.member_count:null,s=se.data.hasOwnProperty("joined_member_count")?se.data.joined_member_count:null;e.setLatestMemberCount(a,s,E.ts)}else e.removeMember(i);for(var c in t.sb.currentUser&&i.userId!==t.sb.currentUser.userId&&(p.cachedChannels[e.url]=e),t.sb.channelHandlers)t.sb.channelHandlers[c].onUserDeclinedInvitation(e,o,i)}}));break;case te.CATEGORY_TYPING_START:case te.CATEGORY_TYPING_END:p.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else{var o=new l(se.data);for(var i in se.category===te.CATEGORY_TYPING_START?e.updateTypingStatus(o,!0):e.updateTypingStatus(o,!1),t.sb.channelHandlers)t.sb.channelHandlers[i].onTypingStatusUpdated(e)}}));break;case te.CATEGORY_CHANNEL_ENTER:case te.CATEGORY_CHANNEL_EXIT:d.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else{se.data.hasOwnProperty("participant_count")&&(e.participantCount=se.data.participant_count);var o=new l(se.data);if(se.category===te.CATEGORY_CHANNEL_ENTER)for(var i in t.sb.channelHandlers)t.sb.channelHandlers[i].onUserEntered(e,o);else for(var a in t.sb.channelHandlers)t.sb.channelHandlers[a].onUserExited(e,o)}}));break;case te.CATEGORY_USER_CHANNEL_MUTE:case te.CATEGORY_USER_CHANNEL_UNMUTE:se.isOpenChannel()?d.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else{var o=new l(se.data);if(se.category===te.CATEGORY_USER_CHANNEL_MUTE)for(var i in t.sb.channelHandlers)t.sb.channelHandlers[i].onUserMuted(e,o);else for(var a in t.sb.channelHandlers)t.sb.channelHandlers[a].onUserUnmuted(e,o)}})):p.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else{var o=new l(se.data);
2if(t.sb.currentUser&&o.userId===t.sb.currentUser.userId&&(e.myMutedState=se.category===te.CATEGORY_USER_CHANNEL_MUTE?"muted":"unmuted"),se.category===te.CATEGORY_USER_CHANNEL_MUTE)for(var i in t.sb.channelHandlers)t.sb.channelHandlers[i].onUserMuted(e,o);else for(var a in t.sb.channelHandlers)t.sb.channelHandlers[a].onUserUnmuted(e,o)}}));break;case te.CATEGORY_USER_CHANNEL_BAN:case te.CATEGORY_USER_CHANNEL_UNBAN:se.isOpenChannel()?d.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else{var o=new l(se.data);if(se.category===te.CATEGORY_USER_CHANNEL_BAN)for(var i in t.sb.currentUser&&o.userId===t.sb.currentUser.userId&&(delete d.enteredChannels[se.channelUrl],t.cls.FileMessageQueue.delete(se.channelUrl)),t.sb.channelHandlers)t.sb.channelHandlers[i].onUserBanned(e,o);else for(var a in t.sb.channelHandlers)t.sb.channelHandlers[a].onUserUnbanned(e,o)}})):p.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else{var o=new l(se.data);if(se.category===te.CATEGORY_USER_CHANNEL_BAN){if(t.sb.currentUser&&o.userId===t.sb.currentUser.userId&&(e.isPublic||p.removeCachedChannel(se.channelUrl),e.myMemberState="none",e.invitedAt=0,e._setGroupChannelUnreadCount(0,0)),e.isSuper||e.isBroadcast){var i=se.data.hasOwnProperty("member_count")?se.data.member_count:null,a=se.data.hasOwnProperty("joined_member_count")?se.data.joined_member_count:null;e.setLatestMemberCount(i,a,E.ts)}else e.removeMember(o),e.updateJoinedMemberCount();for(var s in t.sb.channelHandlers)t.sb.channelHandlers[s].onUserBanned(e,o)}else for(var c in t.sb.channelHandlers)t.sb.channelHandlers[c].onUserUnbanned(e,o)}}));break;case te.CATEGORY_CHANNEL_FREEZE:case te.CATEGORY_CHANNEL_UNFREEZE:se.isOpenChannel()?d.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else if(e.isFrozen=se.data.freeze,d.cachedChannels[e.url]=e,se.category===te.CATEGORY_CHANNEL_FREEZE)for(var o in t.sb.channelHandlers)t.sb.channelHandlers[o].onChannelFrozen(e);else for(var i in t.sb.channelHandlers)t.sb.channelHandlers[i].onChannelUnfrozen(e)})):p.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else if(e.isFrozen=se.data.freeze,p.cachedChannels[e.url]=e,se.category===te.CATEGORY_CHANNEL_FREEZE)for(var o in t.sb.channelHandlers)t.sb.channelHandlers[o].onChannelFrozen(e);else for(var i in t.sb.channelHandlers)t.sb.channelHandlers[i].onChannelUnfrozen(e)}));break;case te.CATEGORY_CHANNEL_DELETED:for(var ae in se.isGroupChannel()?p.removeCachedChannel(se.channelUrl):d.removeCachedChannel(se.channelUrl),this.sb.channelHandlers)this.sb.channelHandlers[ae].onChannelDeleted(se.channelUrl,se.isGroupChannel()?"group":"open");break;case te.CATEGORY_CHANNEL_PROP_CHANGED:se.isOpenChannel()?d.getChannelWithoutCache(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else for(var o in t.sb.channelHandlers)t.sb.channelHandlers[o].onChannelChanged(e)})):p.getChannelWithoutCache(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else{var o=e.unreadMessageCount,i=e.unreadMentionCount;for(var a in e.myCountPreference!==p.CountPreference.ALL&&(e.myCountPreference===p.CountPreference.UNREAD_MESSAGE_COUNT_ONLY?i=0:e.myCountPreference===p.CountPreference.UNREAD_MENTION_COUNT_ONLY?o=0:i=o=0),e._setGroupChannelUnreadCount(o,i),t.sb.channelHandlers)t.sb.channelHandlers[a].onChannelChanged(e)}}));break;case te.CATEGORY_CHANNEL_META_DATA_CHANGED:case te.CATEGORY_CHANNEL_META_COUNTERS_CHANGED:var oe=se.data.hasOwnProperty("created"),le=se.data.hasOwnProperty("updated"),ce=se.data.hasOwnProperty("deleted");se.isOpenChannel()?d.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else for(var o in t.sb.channelHandlers){var i=t.sb.channelHandlers[o];se.category===te.CATEGORY_CHANNEL_META_DATA_CHANGED?(oe&&i.onMetaDataCreated(e,se.data.created),le&&i.onMetaDataUpdated(e,se.data.updated),ce&&i.onMetaDataDeleted(e,se.data.deleted)):(oe&&i.onMetaCountersCreated(e,se.data.created),le&&i.onMetaCountersUpdated(e,se.data.updated),ce&&i.onMetaCountersDeleted(e,se.data.deleted))}})):p.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else for(var o in t.sb.channelHandlers){var i=t.sb.channelHandlers[o];se.category===te.CATEGORY_CHANNEL_META_DATA_CHANGED?(oe&&i.onMetaDataCreated(e,se.data.created),le&&i.onMetaDataUpdated(e,se.data.updated),ce&&i.onMetaDataDeleted(e,se.data.deleted)):(oe&&i.onMetaCountersCreated(e,se.data.created),le&&i.onMetaCountersUpdated(e,se.data.updated),ce&&i.onMetaCountersDeleted(e,se.data.deleted))}}));break;case te.CATEGORY_CHANNEL_HIDE:case te.CATEGORY_CHANNEL_UNHIDE:p.getChannel(se.channelUrl,(function(e,n){if(t.sb.getErrorFirstCallback()){var r=[e,n];n=r[0],e=r[1]}if(n)P.debug("Discard command",x.command,se.category);else if(se.category===te.CATEGORY_CHANNEL_HIDE)for(var o in e.isHidden=!0,se.data&&(se.data.hasOwnProperty("allow_auto_unhide")&&(e.hiddenState=se.data.allow_auto_unhide?p.HiddenState.HIDDEN_ALLOW_AUTO_UNHIDE:p.HiddenState.HIDDEN_PREVENT_AUTO_UNHIDE),se.data.hasOwnProperty("hide_previous_messages")&&se.data.hide_previous_messages&&e._setGroupChannelUnreadCount(0,0)),E.hasOwnProperty("ts_message_offset")&&(e._messageOffsetTimestamp=E.ts_message_offset),p.cachedChannels[e.url]=e,t.sb.channelHandlers)t.sb.channelHandlers[o].onChannelHidden(e);else for(var i in e.isHidden=!1,e.hiddenState=p.HiddenState.UNHIDDEN,p.cachedChannels[e.url]=e,t.sb.channelHandlers)t.sb.channelHandlers[i].onChannelChanged(e)}))}break;case"USEV":var ue=new te(E);switch(ue.category){case ne.CATEGORY_USER_BLOCK:case ne.CATEGORY_USER_UNBLOCK:var he=ue.data.blocker.user_id,de=ue.data.blockee.user_id;
2Object.keys(p.cachedChannels).forEach((function(e){var n=p.cachedChannels[e];try{t.sb.currentUser&&(t.sb.currentUser.userId===he?n.memberMap[de].isBlockedByMe=ue.category===ne.CATEGORY_USER_BLOCK:t.sb.currentUser.userId===de&&(n.memberMap[he].isBlockingMe=ue.category===ne.CATEGORY_USER_BLOCK))}catch(e){}}));break;case ne.CATEGORY_FRIEND_DISCOVERED:var pe=ue.data.friend_discoveries.map((function(e){return new l(e)}));for(var fe in this.sb.userEventHandlers)this.sb.userEventHandlers[fe].onFriendsDiscovered(pe)}break;case"LEAV":case"JOIN":case"PONG":case"MTIO":case"TPST":case"TPEN":break;default:P.debug("Discard command",x.command)}}}]),e}(),ie={},se={},ae=function(){function e(t){l(this,e),this.channel=t,this.uploadQueue=[],this.messageQueue=[],this.latestTimestampToSendMessage=0,U.get(this._iid).FileMessageQueue.queueMap[t.url]=this}return s(e,[{key:"_handleMessageQueueUpdated",value:function(e){var t=this;switch(P.debug("fileMessageQueue message queue updated: ",this.messageQueue),e){case"add":this.uploadQueue.length<6&&this._moveFirstPendingMessageToUploadQueue();break;case"update":case"remove":if(0<this.messageQueue.length){var n=U.get(this._iid).FileMessageQueue,i=this.messageQueue[0];if(i)if(i.state===n.State.UPLOADED){if(i&&i.state===n.State.UPLOADED){for(i.state=n.State.SENDING,0===this.latestTimestampToSendMessage&&(this.latestTimestampToSendMessage=(new Date).getTime()-200);(new Date).getTime()-this.latestTimestampToSendMessage<200;);this.latestTimestampToSendMessage=(new Date).getTime(),this._sendUploadedMessage(i,(function(e,r){i.state=n.State.SENT,i.error=e||null,i.response=r||null,t._handleMessageQueueUpdated("update")}))}}else i.state===n.State.SENT&&this._finalizeMessage()}}}},{key:"_handleUploadQueueUpdated",value:function(e,t){var n=this;switch(P.debug("fileMessageQueue upload queue updated: ",this.uploadQueue),e){case"add":var r=U.get(this._iid).FileMessageQueue;t.state=r.State.UPLOADING,t.error?(-1<this.messageQueue.map((function(e){return e.requestId})).indexOf(t.requestId)&&(t.state=r.State.SENT,this._handleMessageQueueUpdated("update")),this._finalizeUpload(t.requestId)):this._uploadFile(t,(function(e){t.error&&t.state===r.State.SENT||(t.state=r.State.UPLOADED),t.fileInfo=e,n._handleMessageQueueUpdated("update"),n._finalizeUpload(t.requestId)}));break;case"update":break;case"remove":this.uploadQueue.length<6&&this._moveFirstPendingMessageToUploadQueue()}}},{key:"_moveFirstPendingMessageToUploadQueue",value:function(){var e=U.get(this._iid).FileMessageQueue,t=this.messageQueue.filter((function(t){return t.state===e.State.PENDING}));if(0<t.length){var n=t[0];this.uploadQueue.push(n),this._handleUploadQueueUpdated("add",n)}}},{key:"_sendUploadedMessage",value:function(e,a){var t=U.get(this._iid),n=t.Command,s=t.FileMessage,r=e.fileInfo,u=n.bFile(c({},r,{requestId:e.requestId,channelUrl:this.channel.url,url:r.file,metaArrays:r.metaArrays})),o=ot.getInstance(this._iid),l=B.get(this._iid);o.getConnectionState()!==o.ConnectionState.OPEN&&o.currentUser&&!o.connecting?l.container.apiClient.sendFileMessage(c({channelUrl:this.channel.url,isOpenChannel:this.channel.isOpenChannel()},r,{fileUrl:r.file,fileName:r.name,fileSize:r.size,fileType:r.type,metaArrays:r.metaArrays}),(function(e,t){var n=new s(e?u.getJsonElement():t);e&&(n.requestedMentionUserIds=r.mentionedUserIds),a(e,n)})):o.sendCommand(u,(function(e,t){if(o.getErrorFirstCallback()){var n=[e,t];t=n[0],e=n[1]}if(t){var l=new s(u.getJsonElement());l.requestedMentionUserIds=r.mentionedUserIds,a(t,l)}else{var i=new s(e.getJsonElement());a(null,i)}}))}},{key:"_uploadFile",value:function(e,i){var a=e.fileInfo,t=e.pendingMessage;if("string"!=typeof a.file&&a.file){var s=U.get(this._iid).FileMessageQueue;B.get(this._iid).container.apiClient.uploadFile(c({},a,{fileType:a.type,channelUrl:this.channel.url,reqId:t?t.reqId:null}),(function(t,n){if(t)e.state=s.State.SENT,e.error=t,e.response=null,i(a);else{var r="object"===o(n)?n:JSON.parse(n);a.file=r.url,a.thumbnailSizes=r.hasOwnProperty("thumbnails")?r.thumbnails:[],a.requireAuth=!!r.hasOwnProperty("require_auth")&&r.require_auth,i(a)}}))}else a.thumbnailSizes=[],a.requireAuth=!1,i(a)}},{key:"_finalizeUpload",value:function(e){var t=this.uploadQueue.map((function(e){return e.requestId})).indexOf(e);if(-1<t){var n=this.uploadQueue.splice(t,1);0<n.length&&this._handleUploadQueueUpdated("remove",n[0])}}},{key:"_finalizeMessage",value:function(){var i=this,a=B.get(this._iid).container.isErrorFirstInCallback,s=ot.getInstance(this._iid),e=U.get(this._iid),t=e.GroupChannel,n=(e.BaseMessage,e.FileMessageQueue),r=this.messageQueue[0];if(r&&r.state===n.State.SENT){r.state=n.State.DONE;var o=r.response,u=r.error,l=r.fileInfo.callback;if(o&&!u){var c=s.currentUser;if(c&&o._sender&&c.userId===o._sender.userId&&(c.nickname!==o._sender.nickname&&(c.nickname=o._sender.nickname),c.profileUrl!==o._sender.profileUrl&&(c.profileUrl=o._sender.profileUrl)),this.channel.isGroupChannel
2())return void t.getChannel(this.channel.url,(function(e,t){if(s.getErrorFirstCallback()){var n=[e,t];t=n[0],e=n[1]}if(t)a?l(null,o):l(o,null),i.messageQueue.shift(),i._handleMessageQueueUpdated("remove");else{for(var r in e.lastMessage=o,s.channelHandlers)s.channelHandlers[r].onChannelChanged(e);a?l(t,o):l(o,t),i.messageQueue.shift(),i._handleMessageQueueUpdated("remove")}}))}u&&(o=r.pendingMessage)&&(u.code!==k.INVALID_PARAMETER?(o.requestState=s.MessageRequestState.FAILED,o.sendingStatus=s.MessageSendingStatus.FAILED,u.code!==k.FILE_UPLOAD_CANCEL_FAILED&&u.code!==k.REQUEST_CANCELED||(o.sendingStatus=s.MessageSendingStatus.CANCELED),o.requestedMentionUserIds=r.fileInfo.mentionedUserIds,o.errorCode=u.code):o=null),a?l(u,o):l(o,u),this.messageQueue.shift(),this._handleMessageQueueUpdated("remove")}}},{key:"addJob",value:function(e){this.messageQueue.push(e),this._handleMessageQueueUpdated("add")}},{key:"cancelUploadItemByRequestId",value:function(e,t){this._finalizeUpload(e);var n=this.messageQueue.map((function(e){return e.requestId})).indexOf(e);if(-1<n){var r=U.get(this._iid).FileMessageQueue,i=this.messageQueue[n];!i||i.state!==r.State.UPLOADING&&i.state!==r.State.PENDING||(i.state=r.State.SENT,i.response=null,i.error=new k("Uploading has been completed or canceled.",k.FILE_UPLOAD_CANCEL_FAILED),this._handleMessageQueueUpdated("update"));var a=r.uploadRequest[e];if(a)return a.upload?a.upload.onabort=function(){t(null,!0)}:t(null,!0),a.isAbort=!0,a.abort(),!0;t(new k("Uploading has been completed or canceled.",k.FILE_UPLOAD_CANCEL_FAILED),!1)}else t(new k("Uploading has been completed or canceled.",k.FILE_UPLOAD_CANCEL_FAILED),!1);return!1}}],[{key:"getByChannelUrl",value:function(e){return U.get(this._iid).FileMessageQueue.queueMap[e]}},{key:"create",value:function(e){var t=U.get(this._iid).FileMessageQueue;return t.queueMap.hasOwnProperty(e.url)||(t.queueMap[e.url]=new t(e)),t.queueMap[e.url]}},{key:"delete",value:function(e){var t=U.get(this._iid).FileMessageQueue;t.queueMap.hasOwnProperty(e)&&delete t.queueMap[e]}},{key:"clear",value:function(){se[this._iid]={}}},{key:"State",get:function(){return{PENDING:"pending",UPLOADING:"uploading",UPLOADED:"uploaded",SENDING:"sending",SENT:"sent",DONE:"done"}}},{key:"queueMap",get:function(){return se[this._iid]||(se[this._iid]={}),se[this._iid]}},{key:"uploadRequest",get:function(){return ie[this._iid]||(ie[this._iid]={}),ie[this._iid]}}]),e}();function oe(){l(this,oe),this.channelCustomTypesFilter=[],this.superChannelFilter=ye.SuperChannelFilter.ALL}function le(){l(this,le),this.onReconnectStarted=function(){},this.onReconnectSucceeded=function(){},this.onReconnectFailed=function(){}}function ce(){l(this,ce),this.onFriendsDiscovered=function(e){},this.onTotalUnreadMessageCountUpdated=function(e,t){}}function ue(){l(this,ue),this.onMessageReceived=function(e,t){},this.onMessageUpdated=function(e,t){},this.onMessageDeleted=function(e,t){},this.onReadReceiptUpdated=function(e){},this.onReactionUpdated=function(e,t){},this.onDeliveryReceiptUpdated=function(e){},this.onTypingStatusUpdated=function(e){},this.onUserJoined=function(e,t){},this.onUserLeft=function(e,t){},this.onOperatorUpdated=function(e,t){},this.onUserEntered=function(e,t){},this.onUserExited=function(e,t){},this.onUserMuted=function(e,t){},this.onUserUnmuted=function(e,t){},this.onUserBanned=function(e,t){},this.onUserUnbanned=function(e,t){},this.onChannelFrozen=function(e){},this.onChannelUnfrozen=function(e){},this.onChannelChanged=function(e){},this.onChannelDeleted=function(e,t){},this.onUserReceivedInvitation=function(e,t,n){},this.onUserDeclinedInvitation=function(e,t,n){},this.onMetaDataCreated=function(e,t){},this.onMetaDataUpdated=function(e,t){},this.onMetaDataDeleted=function(e,t){},this.onMetaCountersCreated=function(e,t){},this.onMetaCountersUpdated=function(e,t){},this.onMetaCountersDeleted=function(e,t){},this.onChannelHidden=function(e){},this.onMentionReceived=function(e,t){}}function he(e){if(l(this,he),e){var t=U.get(this._iid),n=t.User,r=t.BaseChannel;this.reader=new n(e.user),this.timestamp=parseInt(e.ts),this.channelUrl=e.hasOwnProperty("channel_url")?String(e.channel_url):"",this.channelType=e.hasOwnProperty("channel_type")?String(e.channel_type):r.CHANNEL_TYPE_GROUP}}ae.Job=function e(t){var n=t.fileInfo,r=t.requestId,i=t.pendingMessage,a=t.state,s=t.error,o=void 0===s?null:s,u=t.response,c=void 0===u?null:u;l(this,e),this.fileInfo=n,this.requestId=r,this.pendingMessage=i,this.state=a||ae.State.PENDING,this.error=o,this.response=c};var de=function(){function e(){l(this,e)}return s(e,null,[{key:"create",value:function(){return"".concat(parseInt(1e5*Math.random()),"-").concat((new Date).getTime())}}]),e}
2(),pe={},fe={},me=new WeakMap,Ae=new WeakMap,ge=new WeakMap,ye=function(){h(a,ee);var e=g(a);function a(t){var n;return l(this,a),(n=e.call(this,t)).channelType=ee.CHANNEL_TYPE_GROUP,n.isDistinct=!1,n.isSuper=!1,n.isBroadcast=!1,n.isPublic=!1,n.unreadMessageCount=0,n.inviter=null,n.members=[],n.memberMap={},n.lastMessage=null,n.memberCount=0,n.joinedMemberCount=0,n.cachedReadReceiptStatus={},n.cachedDeliveryReceiptStatus=null,n.myPushTriggerOption=a.PushTriggerOption.DEFAULT,n.isPushEnabled,n.isHidden=!1,n.hiddenState=a.HiddenState.UNHIDDEN,n.isDiscoverable=!0,n.myLastRead=0,n.messageSurvivalSeconds=-1,n._messageOffsetTimestamp=0,n._cachedLastDeliveredReceipt={sentAt:0,timeout:null},me.set(y(n),{}),Ae.set(y(n),{start:0,end:0}),ge.set(y(n),0),t&&n._update(t),n}return s(a,[{key:"_setGroupChannelUnreadCount",value:function(e,t){try{if("number"==typeof e&&0<=e)if("all"===this.myCountPreference||"unread_message_count_only"===this.myCountPreference)if(this.isSuper||this.isBroadcast){var n=B.get(this._iid).container.maxUnreadCountOfSuperGroupChannel;this.unreadMessageCount=n<=e?n:e}else this.unreadMessageCount=e;else this.unreadMessageCount=0;"number"==typeof t&&0<=t&&("all"===this.myCountPreference||"unread_mention_count_only"===this.myCountPreference?this.unreadMentionCount=t:this.unreadMentionCount=0)}catch(e){}}},{key:"_update",value:function(e){var t=U.get(this._iid),n=t.BaseChannel,r=t.GroupChannel,i=t.User,a=t.Member;if(this.isAccessCodeRequired=!!e.is_access_code_required&&e.is_access_code_required,this.isDistinct=!!e.is_distinct&&e.is_distinct,this.isPushEnabled=!!e.is_push_enabled&&e.is_push_enabled,this.isHidden=!!e.hasOwnProperty("is_hidden")&&e.is_hidden,this.myPushTriggerOption=e.push_trigger_option?e.push_trigger_option:r.PushTriggerOption.DEFAULT,this.myCountPreference=e.hasOwnProperty("count_preference")?e.count_preference:r.CountPreference.ALL,this.unreadMessageCount=0,this.unreadMentionCount=0,this._setGroupChannelUnreadCount(parseInt(e.unread_message_count),parseInt(e.unread_mention_count)),e.hasOwnProperty("read_receipt"))for(var s in this.cachedReadReceiptStatus={},e.read_receipt){var l=e.read_receipt[s];this.updateReadReceipt(s,parseInt(l))}if(e.hasOwnProperty("delivery_receipt")&&"object"===o(e.delivery_receipt))for(var u in this.cachedDeliveryReceiptStatus||(this.cachedDeliveryReceiptStatus={}),e.delivery_receipt){var c=e.delivery_receipt[u];this.updateDeliveryReceipt(u,parseInt(c))}if(e.hasOwnProperty("user_last_read")&&"number"==typeof e.user_last_read?this.myLastRead=e.user_last_read:this.myLastRead=0,e.hasOwnProperty("members")){this.members=[],this.memberMap={};for(var h=0;h<e.members.length;h++){var d=new a(e.members[h]);this.members.push(d),this.memberMap[d.userId]=d}}this.myMemberState=e.member_state||"none",this.myRole=e.my_role||r.Role.NONE,e.hasOwnProperty("is_muted")?"string"==typeof e.is_muted?this.myMutedState=e.is_muted:"boolean"==typeof e.is_muted?this.myMutedState=e.is_muted?"muted":"unmuted":this.myMutedState="unmuted":this.myMutedState="unmuted",e.hasOwnProperty("member_count")&&(this.memberCount=parseInt(e.member_count)),e.hasOwnProperty("joined_member_count")&&(this.joinedMemberCount=parseInt(e.joined_member_count)),e.hasOwnProperty("last_message")&&"object"===o(e.last_message)&&e.last_message?e.last_message instanceof W?this.lastMessage=e.last_message:this.lastMessage=n.buildMessage(e.last_message,this):this.lastMessage=null,e.hasOwnProperty("inviter")&&null!==e.inviter&&"object"===o(e.inviter)&&0<Object.keys(e.inviter).length?this.inviter=new i(e.inviter):this.inviter=null,this.invitedAt=e.invited_at||0,e.hasOwnProperty("is_super")&&"boolean"==typeof e.is_super?this.isSuper=e.is_super:this.isSuper=!1,e.hasOwnProperty("is_broadcast")&&"boolean"==typeof e.is_broadcast?this.isBroadcast=e.is_broadcast:this.isBroadcast=!1,e.hasOwnProperty("is_public")&&"boolean"==typeof e.is_public?this.isPublic=e.is_public:this.isPublic=!1,e.hasOwnProperty("hidden_state")?this.hiddenState=e.hidden_state:this.hiddenState=r.HiddenState.UNHIDDEN,e.hasOwnProperty("is_discoverable")&&"boolean"==typeof e.is_discoverable?this.isDiscoverable=e.is_discoverable:this.isDiscoverable=this.isPublic,e.hasOwnProperty("ts_message_offset")&&(this._messageOffsetTimestamp=e.ts_message_offset),e.hasOwnProperty("message_survival_seconds")&&"number"==typeof e.message_survival_seconds&&(this.messageSurvivalSeconds=e.message_survival_seconds)}},{key:"addMember",value:function(e){if(!this.isSuper&&!this.isBroadcast){var t=U.get(this._iid).Member,n=this.removeMember(e);n&&n.state===t.JOINED&&(e.state=t.JOINED),this.memberMap[e.userId]=e,this.members.push(e),this.memberCount++,this.updateReadReceipt(e.userId,0),this.updateDeliveryReceipt(e.userId,0)}}},{key:"removeMember",value:function(e){var t=null;if(!this.isSuper&&!this.isBroadcast&&this.memberMap.hasOwnProperty(e.userId)
vendor: 4,828 bytes, line 2
2){delete this.memberMap[e.userId];for(var n=0;n<this.members.length;n++){var r=this.members[n];if(r.userId===e.userId){t=r,this.members.splice(n,1);break}}this.memberCount--}return t}},{key:"parse",value:function(e){this._update(e)}},{key:"update",value:function(e){this.__update(e),this._update(e)}},{key:"isIdentical",value:function(e){return e&&this.url===e.url}},{key:"isEqual",value:function(e){return N.deepEqual(this,e)}},{key:"createMemberListQuery",value:function(){return new(U.get(this._iid).MemberListQuery)(this.url)}},{key:"createBannedUserListQuery",value:function(){return new(U.get(this._iid).BannedUserListQuery)({channelUrl:this.url,isOpenChannel:this.isOpenChannel()})}},{key:"refresh",value:function(e){return U.get(this._iid).GroupChannel.getChannelWithoutCache(this.url,e)}},{key:"updateChannel",value:function(){var e=this,t=V.toArray(arguments),n=void 0;"function"==typeof t[t.length-1]&&(n=t.pop());var r=U.get(this._iid),i=r.GroupChannel,a=r.GroupChannelParams;if(t[0]instanceof a&&1===t.length)return X(this._iid,(function(n){var r=t[0];r.channelUrl=e.url,r._validate()?B.get(e._iid).container.apiClient.updateGroupChannel(c({},r),(function(e,t){var r=null;e||(r=i.upsert(t)),n(e,r)})):n(V.error,null)}),n);if(3===t.length){var s=new a;return s.channelUrl=this.url,s.name=t[0],"string"==typeof t[1]?s.coverUrl=t[1]:s.coverImage=t[1],s.data=t[2],this.updateChannel(s,n)}if(4===t.length){var o=new a;return o.channelUrl=this.url,o.isDistinct=t[0],o.name=t[1],"string"==typeof t[1]?o.coverUrl=t[2]:o.coverImage=t[2],o.data=t[3],this.updateChannel(o,n)}if(5!==t.length)return X(this._iid,(function(e){return e(V.error,null)}),n);var u=new a;return u.channelUrl=this.url,u.isDistinct=t[0],u.name=t[1],"string"==typeof t[2]?u.coverUrl=t[2]:u.coverImage=t[2],u.data=t[3],u.customType=t[4],this.updateChannel(u,n)}},{key:"invite",value:function(e,t){var n,r=_(V.parse(arguments,[new V({type:"array",constraint:function(e){return 0<e.length&&e.every((function(e){return!!e.userId&&"string"==typeof e.userId}))}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],n?X(this._iid,(function(e){return e(V.error,null)}),t):this.inviteWithUserIds(e.map((function(e){return e.userId})),t)}},{key:"inviteWithUserIds",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"array",constraint:function(e){return e.every((function(e){return"string"==typeof e}))}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.inviteToGroupChannel({channelUrl:i.url,userIds:e},(function(e,n){var r=null;e||(r=U.get(i._iid).GroupChannel.upsert(n)),t(e,r)}))}),t)}},{key:"acceptInvitation",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string",optional:!0,defaultValue:null}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.acceptInvitation({channelUrl:i.url,accessCode:e},(function(e,n){var r=null;e||((r=U.get(i._iid).GroupChannel.upsert(n)).myMemberState="joined"),t(e,r)}))}),t)}},{key:"declineInvitation",value:function(e){var a=this;return X(this._iid,(function(i){B.get(a._iid).container.apiClient.declineInvitation({channelUrl:a.url},(function(e,t){var n=null;if(!e){var r=U.get(a._iid).GroupChannel;(n=r.upsert(t)).myMemberState="none",a.isPublic||r.removeCachedChannel(a.url)}i(e,n)}))}),e)}},{key:"join",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string",optional:!0,defaultValue:null}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.joinGroupChannel({channelUrl:i.url,accessCode:e},(function(e,n){var r=null;e||((r=U.get(i._iid).GroupChannel.upsert(n)).myMemberState="joined"),t(e,r)}))}),t)}},{key:"leave",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.leaveGroupChannel({channelUrl:t.url},(function(t,n){return e(t,null)}))}),e)}},{key:"muteUser",value:function(e,t,n,r){return this.muteUserWithUserId(e?e.userId:null,t,n,r)}},{key:"muteUserWithUserId",value:function(e,t,n,r){var i,a=this,s=_(V.parse(arguments,[new V({type:"string"}),new V({type:"number",optional:!0,defaultValue:-1,constraint:function(e){return-1<=e}}),new V({type:"string",optional:!0,defaultValue:""}),new V({type:"callback"})]),5);return i=s[0],e=s[1],t=s[2],n=s[3],r=s[4],X(this._iid,(function(r){i?r(i,null):B.get(a._iid).container.apiClient.muteUser({channelUrl:a.url,userId:e,description:n,seconds:t,isGroupChannel:!0},(function(e,t){r(e,null)}))}),r)}},{key:"unmuteUser",value:function(e,t){return this.unmuteUserWithUserId(e?e.userId:null,t)}},{key:"unmuteUserWithUserId",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string"}),new V({type:"callback"})]),3);
2return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.unmuteUser({channelUrl:i.url,userId:e,isGroupChannel:!0},(function(e,n){t(e,null)}))}),t)}},{key:"banUser",value:function(e,t,n,r){return this.banUserWithUserId(e?e.userId:null,t,n,r)}},{key:"banUserWithUserId",value:function(e,t,n,r){var i,a=this,s=_(V.parse(arguments,[new V({type:"string"}),new V({type:"number",optional:!0,defaultValue:-1,constraint:function(e){return-1<=e}}),new V({type:"string"}),new V({type:"callback"})]),5);return i=s[0],e=s[1],t=s[2],n=s[3],r=s[4],X(this._iid,(function(r){i?r(i,null):B.get(a._iid).container.apiClient.banUser({channelUrl:a.url,userId:e,description:n,seconds:t,isGroupChannel:!0},(function(e,t){r(e,null)}))}),r)}},{key:"unbanUser",value:function(e,t){return this.unbanUserWithUserId(e?e.userId:null,t)}},{key:"unbanUserWithUserId",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string"}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.unbanUser({channelUrl:i.url,userId:e,isGroupChannel:!0},(function(e,n){t(e,null)}))}),t)}},{key:"updateJoinedMemberCount",value:function(){if(!this.isSuper&&!this.isBroadcast){var e=U.get(this._iid).Member;this.joinedMemberCount=this.members.filter((function(t){return t.state===e.JOINED})).length}}},{key:"setLatestMemberCount",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"number"==typeof n&&n>=ge.get(this)&&(ge.set(this,n),this.memberCount=e,this.joinedMemberCount=t)}},{key:"hide",value:function(i,a,e){var t,s=this,n=_(V.parse(arguments,[new V({type:"boolean",optional:!0,defaultValue:!1}),new V({type:"boolean",optional:!0,defaultValue:!0}),new V({type:"callback"})]),4);return t=n[0],i=n[1],a=n[2],e=n[3],X(this._iid,(function(e){t?e(t,null):B.get(s._iid).container.apiClient.hideGroupChannel({channelUrl:s.url,hidePreviousMessages:i,allowAutoUnhide:a},(function(t,n){if(!t){var r=U.get(s._iid).GroupChannel;s.isHidden=!0,s.hiddenState=a?r.HiddenState.HIDDEN_ALLOW_AUTO_UNHIDE:r.HiddenState.HIDDEN_PREVENT_AUTO_UNHIDE,i&&s._setGroupChannelUnreadCount(0,0),n.hasOwnProperty("ts_message_offset")&&(s._messageOffsetTimestamp=n.ts_message_offset),r.cachedChannels[s.url]=s}e(t,n)}))}),e)}},{key:"unhide",value:function(e){var i=this;return X(this._iid,(function(e){B.get(i._iid).container.apiClient.unhideGroupChannel({channelUrl:i.url},(function(t,n){if(!t){var r=U.get(i._iid).GroupChannel;i.isHidden=!1,i.hiddenState=r.HiddenState.UNHIDDEN,r.cachedChannels[i.url]=i}e(t,n)}))}),e)}},{key:"freeze",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.freeze({channelUrl:t.url,isGroupChannel:!0,freezing:!0},(function(n,r){n||U.get(t._iid).GroupChannel.upsert(r),e(n,null)}))}),e)}},{key:"unfreeze",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.freeze({channelUrl:t.url,isGroupChannel:!0,freezing:!1},(function(n,r){n||U.get(t._iid).GroupChannel.upsert(r),e(n,null)}))}),e)}},{key:"delete",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.deleteGroupChannel({channelUrl:t.url},(function(n,r){n||U.get(t._iid).GroupChannel.removeCachedChannel(t.url),e(n,r)}))}),e)}},{key:"markAsRead",value:function(){var i=this,e=U.get(this._iid).Command,a=ot.getInstance(this._iid),t=e.bRead({channelUrl:this.url});a.sendCommand(t,(function(e,t){if(a.getErrorFirstCallback()){var n=[e,t];t=n[0],e=n[1]}if(!t&&(i.updateReadReceipt(a.currentUser.userId,e.getJsonElement().ts),0<i.unreadMessageCount||0<i.unreadMentionCount))for(var r in i._setGroupChannelUnreadCount(0,0),a.channelHandlers)a.channelHandlers[r].onChannelChanged(i)}))}},{key:"getReadReceipt",value:function(e){var t=ot.getInstance(this._iid);if(e instanceof W&&!e.isAdminMessage()&&t.currentUser&&!this.isSuper&&!this.isBroadcast){for(var n=0,r=e.createdAt,i=this.members,a=0;a<i.length;a++){var s=i[a];t.currentUser.userId===s.userId||e.sender&&e.sender.userId===s.userId||(this.cachedReadReceiptStatus[s.userId]||0)<r&&n++}return n}return 0}},{key:"markAsDelivered",value:function(){function e(){var e=ot.getInstance(i._iid).currentUser.userId;B.get(i._iid).container.apiClient.markAsDelivered({channelUrl:i.url,userId:e},(function(t,n){if(t)P.debug(t);else{var r=n.hasOwnProperty("ts")?n.ts:0;i.updateDeliveryReceipt(e,r)}}))}var i=this,t=this._cachedLastDeliveredReceipt;t&&Date.now()-t.sentAt<1e3?(t.timeout&&clearTimeout(t.timeout),t.timeout=setTimeout((function(){t.sentAt=Date.now(),e()}),t.sentAt+1e3-Date.now())):(t.sentAt=Date.now(),e())}},{key:"getDeliveryReceipt",value:function(e){var t=ot.getInstance(this._iid);if(this.cachedDeliveryReceiptStatus&&e instanceof W&&!e.isAdminMessage()&&t.currentUser&&!this.isSuper&&!this.isBroadcast){for(var n=e.createdAt,r=0,i=0;i<this.members.length;i++){var a=this.members[i];t.currentUser.userId===a.userId||e.sender&&e.sender.userId===a.userId||this.cachedDeliveryReceiptStatus[a.userId]<n&&r++}return r}return 0}},{key:"getReadMembers",value:function(e,t){var n=1<arguments.length&&void 0!==t&&t,r=ot.getInstance(this._iid);if(r.currentUser&&!this.isSuper&&!this.isBroadcast&&e instanceof W&&!e.isAdminMessage()){for(var i=[],a=0;a<this.members.length;a++){var s=this.members[a];(n||s.userId!==r.currentUser.userId&&s.userId!==e.sender.userId)&&(this.cachedReadReceiptStatus[s.userId]||0)>=e.createdAt&&i.push(s)}return i}return[]}},{key:"getUnreadMembers",value:function(e,t){var n=1<arguments.length&&void 0!==t&&t,r=ot.getInstance(this._iid);if(r.currentUser&&!this.isSuper&&!this.isBroadcast&&e instanceof W&&!e.isAdminMessage()){for(var i=[],a=0;a<this.members.length;a++){var s=this.members[a];(n||s.userId!==r.currentUser.userId&&s.userId!==e.sender.userId)&&(this.cachedReadReceiptStatus[s.userId]||0)<e.createdAt&&i.push(s)}return i}return[]}},{key:"getReadStatus",value:function(e){var t=this,i=0<arguments.length&&void 0!==e&&e,a=ot.getInstance(this._iid);if(!a.currentUser||this.isSuper||this.isBroadcast)return{};function n(e){if(!i&&e===a.currentUser.userId)return"continue";var n=t.cachedReadReceiptStatus[e],r=t.members.filter((function(t){return t.userId===e}));s[e]={user:0<r.length?r[0]:null,last_seen_at:parseInt(n)}}var s={};for(var r in this.cachedReadReceiptStatus)n(r);return s}},{key:"updateReadReceipt",value:function(e,t){var n=this.cachedReadReceiptStatus[e];if(!n||n<t){this.cachedReadReceiptStatus[e]=t;var r=ot.getInstance(this._iid);r.currentUser&&e===r.currentUser.userId&&(this.myLastRead=t)}}},{key:"updateDeliveryReceipt",value:function(e,t){if(this.cachedDeliveryReceiptStatus)if(this.cachedDeliveryReceiptStatus.hasOwnProperty(e)){var n=this.cachedDeliveryReceiptStatus[e];(!n||n<t)&&(this.cachedDeliveryReceiptStatus[e]=t)}else this.cachedDeliveryReceiptStatus[e]=t}},{key:"startTyping",value:function(){var e=ot.getInstance(this._iid),t=(new Date).getTime(),n=e.Options.typingIndicatorThrottle;("number"!=typeof n||n<1e3||9e3<n)&&(n=1e3);var r=Ae.get(this);if(t-r.start>=n){r.end=0,r.start=t;var i=U.get(this._iid).Command.bTypeStart({channelUrl:this.url,time:r.start});e.sendCommand(i,null)}}},{key:"endTyping",value:function(){var e=ot.getInstance(this._iid),t=(new Date).getTime(),n=e.Options.typingIndicatorThrottle;("number"!=typeof n||n<1e3||9e3<n)&&(n=1e3);var r=Ae.get(this);if(t-r.end>=n){r.start=0,r.end=t;var i=U.get(this._iid).Command.bTypeEnd({channelUrl:this.url,time:r.end});e.sendCommand(i,null)}}},{key:"invalidateTypingStatus",value:function(){var e=me.get(this),t=(new Date).getTime(),n=!1;for(var r in e)1e4<=t-e[r]&&(delete e[r],n=!0);return n}},{key:"getTypingMembers",value:function(){var e=me.get(this),t=[];for(var n in e){var r=this.memberMap[n];r&&t.push(r)}return t}},{key:"updateTypingStatus",value:function(e,t){var n=me.get(this);t?n[e.userId]=(new Date).getTime():delete n[e.userId]}},{key:"isTyping",value:function(){var e=me.get(this);return 0!==Object.keys(e).length}},{key:"registerScheduledUserMessage",value:function(e,t){var n,a=this,r=U.get(this._iid),s=r.ScheduledUserMessage,i=r.ScheduledUserMessageParams,o=_(V.parse(arguments,[new V({type:i,constraint:function(e){return"string"==typeof e.message&&"string"==typeof e._getScheduleString()}}),new V({type:"callback"})]),3);return n=o[0],e=o[1],t=o[2],X(this._iid,(function(i){n?i(n,null):B.get(a._iid).container.apiClient.registerScheduledUserMessage({groupChannelParam
vendor: 8,364 bytes, line 2
2s:e,channelUrl:a.url,isOpenChannel:!1},(function(e,t){var n=null;if(!e){n=new s(t);var r=ot.getInstance(a._iid).currentUser;r&&n._sender&&r.userId===n._sender.userId&&(r.nickname=n._sender.nickname,r.profileUrl=n._sender.profileUrl,r.metaData=n._sender.metaData)}i(e,n)}))}),t)}},{key:"getPushPreference",value:function(e){var i=this;return X(this._iid,(function(e){B.get(i._iid).container.apiClient.getMyPushTriggerOption({channelUrl:i.url},(function(t,n){var r=null;if(!t){try{r=n.enable}catch(t){r=!1}i.isPushEnabled=r}e&&e(t,r)}))}),e)}},{key:"setPushPreference",value:function(e,t){var i=this;return X(this._iid,(function(t){var n=U.get(i._iid).GroupChannel;B.get(i._iid).container.apiClient.setMyPushTriggerOption({channelUrl:i.url,enable:e},(function(e,r){e||(i.isPushEnabled=r.enable,i.isPushEnabled||(i.myPushTriggerOption=n.PushTriggerOption.OFF)),t(e,r)}))}),t)}},{key:"getMyPushTriggerOption",value:function(e){var i=this;return X(this._iid,(function(e){B.get(i._iid).container.apiClient.getMyPushTriggerOption({channelUrl:i.url},(function(t,n){var r=null;if(!t){try{r=n.push_trigger_option||a.PushTriggerOption.DEFAULT}catch(t){P.debug(t)}i.myPushTriggerOption=r}e(t,r)}))}),e)}},{key:"setMyPushTriggerOption",value:function(e,t){var n,i=this,r=U.get(this._iid).GroupChannel,a=_(V.parse(arguments,[new V({type:r.PushTriggerOption}),new V({type:"callback"})]),3);return n=a[0],e=a[1],t=a[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.setMyPushTriggerOption({channelUrl:i.url,pushTriggerOption:e},(function(e,n){var r=null;if(!e){try{r=n.push_trigger_option}catch(e){P.debug(e)}i.myPushTriggerOption=r}t(e,r)}))}),t)}},{key:"setMyCountPreference",value:function(e,t){var n,i=this,a=U.get(this._iid).GroupChannel,r=_(V.parse(arguments,[new V({type:a.CountPreference}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.setMyCountPreference({channelUrl:i.url,countPreference:e},(function(e,n){var r=null;e||(r=i.myCountPreference=n.count_preference,i._setGroupChannelUnreadCount(i.unreadMessageCount,i.unreadMentionCount),a.cachedChannels[i.url]=i),t(e,r)}))}),t)}},{key:"resetMyHistory",value:function(e){var i=this;return X(this._iid,(function(e){B.get(i._iid).container.apiClient.resetMyHistory({channelUrl:i.url},(function(t,n){if(!t&&n.hasOwnProperty("ts_message_offset")){var r=U.get(i._iid).GroupChannel;i._messageOffsetTimestamp=n.ts_message_offset,r.cachedChannels[i.url]=i}e(t,n)}))}),e)}},{key:"messageOffsetTimestamp",get:function(){return this._messageOffsetTimestamp}}],[{key:"buildFromSerializedData",value:function(e){var t,n=U.get(this._iid),r=n.User,i=n.Member,a=n.GroupChannel,s=n.BaseMessage,l=n.UserMessage,u=n.FileMessage,c=n.AdminMessage,h=Y.deserialize(e);return new a({channel_url:h.url,name:h.name,cover_url:h.coverUrl,data:h.data,custom_type:h.customType,invited_at:h.invitedAt,created_at:h.createdAt/1e3,is_access_code_required:h.isAccessCodeRequired,is_distinct:h.isDistinct,is_super:h.isSuper,is_broadcast:h.isBroadcast,is_public:h.isPublic,is_discoverable:h.isDiscoverable,freeze:h.isFrozen,is_ephemeral:h.isEphemeral,unread_message_count:h.unreadMessageCount,unread_mention_count:h.unreadMentionCount,is_push_enabled:h.isPushEnabled,push_trigger_option:h.myPushTriggerOption,count_preference:h.myCountPreference,is_hidden:h.isHidden,hidden_state:h.hiddenState,member_count:h.memberCount,joined_member_count:h.joinedMemberCount,member_state:h.myMemberState,my_role:h.myRole,is_muted:h.myMutedState,user_last_read:h.myLastRead,ts_message_offset:h.messageOffsetTimestamp,message_survival_seconds:h.messageSurvivalSeconds,read_receipt:h.cachedReadReceiptStatus,delivery_receipt:h.cachedDeliveryReceiptStatus,members:h.members.map((function(e){return i.build(r.build(e.userId,e.nickname,e.profileUrl,e.connectionStatus,e.lastSeenAt,e.metaData,e.isActive,e.friendDiscoveryKey,e.friendName),e.state,e.role,e.isBlockedByMe,e.isBlockingMe)})),last_message:(t=h.lastMessage,null!=t&&"object"===o(t)?t.messageType===s.MESSAGE_TYPE_USER?new l(l.build(t.reqId,t.messageId,t.user,{url:t.channelUrl,channelType:t.channelType},t.message,t.data,t.customType,t.translations,t.isGlobalBlocked,t.createdAt,t.updatedAt,t.metaArrays,t.mentionType,t.mentionedUsers,t.mentionedUserIds,t.sendingStatus,t.requestedMentionUserIds)):t.messageType===s.MESSAGE_TYPE_FILE?new u(u.build(t.reqId,t.messageId,t.user,{url:t.channelUrl,channelType:t.channelType},t.url,t.name,t.type,t.size,t.data,t.customType,t.isGlobalBlocked,t.createdAt,t.thumbnails,t.requireAuth,t.updatedAt,t.metaArrays,t.mentionType,t.mentionedUsers,t.mentionedUserIds,t.sendingStatus,t.requestedMentionUserIds)):new c(c.build(t.messageId,{url:t.channelUrl,channelType:t.channelType},t.message,t.data,t.customType,t.translations,t.createdAt,t.updatedAt,t.metaArrays,t.mentionType,t.mentionedUsers)):null),inviter:null!==h.inviter&&void 0!==h.inviter&&"object"===o(h.inviter)?r.build.apply(r,w(["userId","nickname","profileUrl","connectionStatus","lastSeenAt","metaData","isActive","friendDiscoveryKey","friendName"].map((function(e){return h.inviter[e]})))):null,__wk:h.__wk})}},{key:"upsert",value:function(e){var t=U.get(this._iid).GroupChannel,n=new t(e);if(t.cachedChannels.hasOwnProperty(n.url)){if(n.isEphemeral){var r=t.cachedChannels[n.url];e.last_message=r.lastMessage,e.unread_message_count=r.unreadMessageCount}t.cachedChannels[n.url].update(e)}else t.cachedChannels[n.url]=n;return t.cachedChannels[n.url]}},{key:"removeCachedChannel",value:function(e){var t=U.get(this._iid),n=t.GroupChannel,r=t.FileMessageQueue;n.cachedChannels[e]&&delete n.cachedChannels[e],r.delete(e)}},{key:"clearCache",value:function(){pe[this._iid]={},U.get(this._iid).FileMessageQueue.clear()}},{key:"getChannel",value:function(e,t){var n,r=_(V.parse(arguments,[new V({type:"string"}),new V({type:"callback"})]),3);if(n=r[0],e=r[1],t=r[2],n)return X(this._iid,(function(e){e(n,null)}),t);var i=U.get(this._iid).GroupChannel;return i.cachedChannels[e]?X(this._iid,(function(t){t(null,i.cachedChannels[e])}),t):i.getChannelWithoutCache(e,t)}},{key:"getChannelWithoutCache",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string"}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.getGroupChannel({channelUrl:e,showMember:!0,showReadReceipt:!0},(function(e,n){var r=null;e||(r=U.get(i._iid).GroupChannel.upsert(n)),t(e,r)}))}),t)}},{key:"createDistinctChannelIfNotExist",value:function(e,t){var n,a=this,r=U.get(this._iid).GroupChannelParams,i=_(V.parse(arguments,[new V({type:r,constraint:function(e){return e._validate()}}),new V({type:"callback"})]),3);return n=i[0],e=i[1],t=i[2],X(this._iid,(function(i){n?i(n,null):(e.isPublic||(e.accessCode=null),B.get(a._iid).container.apiClient.createGroupChannel(c({},e,{isDistinct:!0}),(function(e,t){var n=null;if(!e){var r=U.get(a._iid).GroupChannel;n={channel:new r(t),isCreated:t.is_created},r.cachedChannels[n.channel.url]=n.channel}i(e,n)})))}),t)}},{key:"createChannel",value:function(){var e=this,t=V.toArray(arguments),n=void 0;"function"==typeof t[t.length-1]&&(n=t.pop());var r=U.get(this._iid),i=r.GroupChannel,a=r.GroupChannelParams;if(t[0]instanceof a&&1===t.length)return X(this._iid,(function(n){var r=t[0];r.isPublic||(r.accessCode=null),r._validate()?B.get(e._iid).container.apiClient.createGroupChannel(r,(function(e,t){var r=null;e||(r=new i(t),i.cachedChannels[r.url]=r),n(e,r)})):n(V.error,null)}),n);if(Array.isArray(t[0])){var s=new a;switch(t.length){case 1:s.addUsers(t[0]);break;case 2:s.addUsers(t[0]),s.isDistinct=t[1];break;case 3:s.addUsers(t[0]),s.isDistinct=t[1],s.customType=t[2];break;case 5:s.addUsers(t[0]),s.isDistinct=t[1],s.name=t[2],"string"==typeof t[3]?s.coverUrl=t[3]:s.coverImage=t[3],s.data=t[4];break;case 6:s.addUsers(t[0]),s.isDistinct=t[1],s.name=t[2],"string"==typeof t[3]?s.coverUrl=t[3]:s.coverImage=t[3],s.data=t[4],s.customType=t[5];break;default:return X(this._iid,(function(e){return e(V.error,null)}),n)}return i.createChannel(s,n)}return X(this._iid,(function(e){return e(V.error,null)}),n)}},{key:"createChannelWithUserIds",value:function(){var e=V.toArray(arguments),t=void 0;"function"==typeof e[e.length-1]&&(t=e.pop());var n=U.get(this._iid),r=n.GroupChannel,i=new n.GroupChannelParam
2s;switch(e.length){case 1:i.addUserIds(e[0]);break;case 2:i.addUserIds(e[0]),i.isDistinct=e[1];break;case 3:i.addUserIds(e[0]),i.isDistinct=e[1],i.customType=e[2];break;case 5:i.addUserIds(e[0]),i.isDistinct=e[1],i.name=e[2],"string"==typeof e[3]?i.coverUrl=e[3]:i.coverImage=e[3],i.data=e[4];break;case 6:i.addUserIds(e[0]),i.isDistinct=e[1],i.name=e[2],"string"==typeof e[3]?i.coverUrl=e[3]:i.coverImage=e[3],i.data=e[4],i.customType=e[5];break;default:return X(this._iid,(function(e){return e(V.error,null)}),t)}return r.createChannel(i,t)}},{key:"createMyGroupChannelListQuery",value:function(){return new(U.get(this._iid).GroupChannelListQuery)}},{key:"createPublicGroupChannelListQuery",value:function(){return new(U.get(this._iid).PublicGroupChannelListQuery)}},{key:"getChannelCount",value:function(e,t){return ot.getInstance(this._iid).getGroupChannelCount(e,t)}},{key:"getUnreadItemCount",value:function(e,t){return ot.getInstance(this._iid).getUnreadItemCount(e,t)}},{key:"getTotalUnreadMessageCount",value:function(){var e=V.toArray(arguments),t="function"==typeof e[e.length-1]?e.pop():null,n=ot.getInstance(this._iid);return n.getTotalUnreadMessageCount.apply(n,w(e).concat([t]))}},{key:"getTotalUnreadChannelCount",value:function(e){return ot.getInstance(this._iid).getTotalUnreadChannelCount(e)}},{key:"MemberStateFilter",get:function(){return{ALL:"all",JOINED:"joined_only",INVITED:"invited_only",INVITED_BY_FRIEND:"invited_by_friend",INVITED_BY_NON_FRIEND:"invited_by_non_friend"}}},{key:"PushTriggerOption",get:function(){return{DEFAULT:"default",ALL:"all",MENTION_ONLY:"mention_only",OFF:"off"}}},{key:"CountPreference",get:function(){return{ALL:"all",UNREAD_MESSAGE_COUNT_ONLY:"unread_message_count_only",UNREAD_MENTION_COUNT_ONLY:"unread_mention_count_only",OFF:"off"}}},{key:"HiddenState",get:function(){return{UNHIDDEN:"unhidden",HIDDEN_ALLOW_AUTO_UNHIDE:"hidden_allow_auto_unhide",HIDDEN_PREVENT_AUTO_UNHIDE:"hidden_prevent_auto_unhide"}}},{key:"PublicChannelFilter",get:function(){return{ALL:"all",PUBLIC:"public",PRIVATE:"private"}}},{key:"SuperChannelFilter",get:function(){return{ALL:"all",SUPER:"super",NON_SUPER:"nonsuper"}}},{key:"UnreadChannelFilter",get:function(){return{ALL:"all",UNREAD_MESSAGE:"unread_message"}}},{key:"HiddenChannelFilter",get:function(){return{UNHIDDEN:"unhidden_only",HIDDEN:"hidden_only",HIDDEN_ALLOW_AUTO_UNHIDE:"hidden_allow_auto_unhide",HIDDEN_PREVENT_AUTO_UNHIDE:"hidden_prevent_auto_unhide"}}},{key:"Role",get:function(){return{OPERATOR:"operator",NONE:"none"}}},{key:"UnreadItemKey",get:function(){return{GROUP_CHANNEL_UNREAD_MENTION_COUNT:"group_channel_unread_mention_count",NONSUPER_UNREAD_MENTION_COUNT:"non_super_group_channel_unread_mention_count",SUPER_UNREAD_MENTION_COUNT:"super_group_channel_unread_mention_count",GROUP_CHANNEL_UNREAD_MESSAGE_COUNT:"group_channel_unread_message_count",NONSUPER_UNREAD_MESSAGE_COUNT:"non_super_group_channel_unread_message_count",SUPER_UNREAD_MESSAGE_COUNT:"super_group_channel_unread_message_count",GROUP_CHANNEL_INVITATION_COUNT:"group_channel_invitation_count",NONSUPER_INVITATION_COUNT:"non_super_group_channel_invitation_count",SUPER_INVITATION_COUNT:"super_group_channel_invitation_count"}}},{key:"cachedChannels",get:function(){return pe[this._iid]||(pe[this._iid]={}),pe[this._iid]}},{key:"markAsReadAllLastSentAt",get:function(){return fe[this._iid]||0},set:function(e){fe[this._iid]=e}}]),a}(),ve=function(){h(t,J);var e=g(t);function t(n){var r;return l(this,t),(r=e.call(this,n)).state="",r.role="",r.isBlockedByMe=!1,r.isBlockingMe=!1,n&&r._update(n),r}return s(t,[{key:"_update",value:function(e){this.state=e.state,this.role=e.role||ye.Role.NONE,e.hasOwnProperty("is_blocked_by_me")&&(this.isBlockedByMe=e.is_blocked_by_me),e.hasOwnProperty("is_blocking_me")&&(this.isBlockingMe=e.is_blocking_me)}},{key:"parse",value:function(e){this._update(e)}}],[{key:"build",value:function(e,t,n,r,i){var a=e;return a.state=t,a.role=n||"",a.is_blocked_by_me=r||!1,a.is_blocking_me=i||!1,a}},{key:"buildFromSerializedData",value:function(e){var t=U.get(this._iid),n=t.User,r=t.Member,i=Y.deserialize(e);return new r(r.build(n.build(i.userId,i.nickname,i.profileUrl,i.connectionStatus,i.lastSeenAt,i.metaData,i.isActive,i.friendDiscoveryKey,i.friendName),i.state,i.role,i.isBlockedByMe,i.isBlockingMe))}},{key:"JOINED",get:function(){return"joined"}},{key:"INVITED",get:function(){return"invited"}}]),t}(),_e=function(){h(t,J);var e=g(t);function t(n){var r;return l(this,t),(r=e.call(this,n)).isBlockedByMe=!1,n&&r._update(n),r}return s(t,[{key:"parse",value:function(e){this._update(e)}},{key:"_update",value:function(e){e.hasOwnProperty("is_blocked_by_me")&&(this.isBlockedByMe=e.is_blocked_by_me)}}],[{key:"build",value:function(e,t){var n=e;return n.is_blocked_by_me=t||!1,n}},{key:"buildFromSerializedData",value:function(e){var t=U.get(this._iid),n=t.User,r=t.Sender,i=Y.deserialize(e);return new r(r.build(n.build.apply(n,w(["userId","nickname","profileUrl","connectionStatus","lastSeenAt","metaData","isActive","friendDiscoveryKey","friendName"].map((function(e){return i[e]})))),i.isBlockedByMe))}}]),t}(),be={},we={},xe=function(){h(t,ee);var e=g(t);function t(n){var r;return l(this,t),(r=e.call(this,n)).channelType=ee.CHANNEL_TYPE_OPEN,r.participantCount=0,r.operators=[],n&&r._update(n),r}return s(t,[{key:"_update",value:function(e){var t=U.get(this._iid).User;if(e.hasOwnProperty("participant_count")&&(this.participantCount=parseInt(e.participant_count)),e.hasOwnProperty("operators")&&e.operators){this.operators=[];for(var n=0;n<e.operators.length;n++){var r=new t(e.operators[n]);this.operators.push(r)}}}},{key:"parse",value:function(e){this._update(e)}},{key:"update",value:function(e){this.__update(e),this._update(e)}},{key:"createParticipantListQuery",value:function(){return new(U.get(this._iid).ParticipantListQuery)({channelUrl:this.url})}},{key:"createMutedUserListQuery",value:function(){return new(U.get(this._iid).MutedUserListQuery)({channelUrl:this.url,isOpenChannel:!0})}},{key:"createBannedUserListQuery",value:function(){return new(U.get(this._iid).BannedUserListQuery)({channelUrl:this.url,isOpenChannel:!0})}},{key:"isOperator",value:function(e){return!!e&&this.isOperatorWithUserId(e.userId)}},{key:"isOperatorWithUserId",value:function(e){return-1<this.operators.map((function(e){return e.userId})).indexOf(e)}},{key:"refresh",value:function(e){return U.get(this._iid).OpenChannel.getChannelWithoutCac
vendor: 9,106 bytes, line 2
2he(this.url,e)}},{key:"enter",value:function(e){var a=this;return X(this._iid,(function(e){var t=U.get(a._iid).Command.bEnter({channelUrl:a.url}),i=ot.getInstance(a._iid);i.sendCommand(t,(function(t,n){if(i.getErrorFirstCallback()){var r=[t,n];n=r[0],t=r[1]}n?(n=n?new k(n.message,n.code):null,e(n,null)):(U.get(a._iid).OpenChannel.enteredChannels[a.url]=a).refresh((function(){return e(null,null)}))}))}),e)}},{key:"exit",value:function(e){var s=this;return X(this._iid,(function(e){var t=U.get(s._iid),n=t.Command,i=t.FileMessageQueue,r=n.bExit({channelUrl:s.url}),a=ot.getInstance(s._iid);a.sendCommand(r,(function(t,n){if(a.getErrorFirstCallback()){var r=[t,n];n=r[0],t=r[1]}n?(n=n?new k(n.message,n.code):null,e(n,null)):(delete U.get(s._iid).OpenChannel.enteredChannels[s.url],i.delete(s.url),e(null,null))}))}),e)}},{key:"updateChannel",value:function(e,t,n,i,a,r){var s,o=this,u=_(V.parse(arguments,[new V({type:"string",nullable:!0}),new V({type:["string","file"],nullable:!0}),new V({type:"string",nullable:!0}),new V({type:"array",nullable:!0,optional:!0,defaultValue:[],constraint:function(e){return e.map((function(e){return"string"==typeof e}))}}),new V({type:"string",nullable:!0,optional:!0}),new V({type:"callback"})]),7);return s=u[0],e=u[1],t=u[2],n=u[3],i=u[4],a=u[5],r=u[6],X(this._iid,(function(r){s?r(s,null):B.get(o._iid).container.apiClient.updateOpenChannel({channelUrl:o.url,name:e,coverUrlOrImage:t,data:n,operatorUserIds:i,customType:a},(function(e,t){var n=null;e||(n=U.get(o._iid).OpenChannel.upsert(t)),r(e,n)}))}),r)}},{key:"updateChannelWithOperatorUserIds",value:function(){var e=V.toArray(arguments),t=void 0;switch("function"==typeof e[e.length-1]&&(t=e.pop()),e.length){case 4:case 5:return this.updateChannel.apply(this,w(e).concat([t]));default:return X(this._iid,(function(e){return e(V.error,null)}),t)}}},{key:"muteUser",value:function(e,t,n,r){return this.muteUserWithUserId(e?e.userId:null,t,n,r)}},{key:"muteUserWithUserId",value:function(e,t,n,r){var i,a=this,s=_(V.parse(arguments,[new V({type:"string"}),new V({type:"number",optional:!0,defaultValue:-1,constraint:function(e){return-1<=e}}),new V({type:"string",optional:!0,defaultValue:""}),new V({type:"callback"})]),5);return i=s[0],e=s[1],t=s[2],n=s[3],r=s[4],X(this._iid,(function(r){i?r(i,null):B.get(a._iid).container.apiClient.muteUser({channelUrl:a.url,userId:e,description:n,seconds:t,isGroupChannel:!1},(function(e,t){r(e,null)}))}),r)}},{key:"unmuteUser",value:function(e,t){return this.unmuteUserWithUserId(e?e.userId:null,t)}},{key:"unmuteUserWithUserId",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string"}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.unmuteUser({channelUrl:i.url,userId:e,isGroupChannel:!1},(function(e,n){t(e,null)}))}),t)}},{key:"banUser",value:function(e,t,n){return this.banUserWithUserId(e?e.userId:null,t,n)}},{key:"banUserWithUserId",value:function(e,t,n){var r,i=this,a=_(V.parse(arguments,[new V({type:"string"}),new V({type:"number",optional:!0,defaultValue:-1,constraint:function(e){return-1<=e}}),new V({type:"callback"})]),4);return r=a[0],e=a[1],t=a[2],n=a[3],X(this._iid,(function(n){r?n(r,null):B.get(i._iid).container.apiClient.banUser({channelUrl:i.url,userId:e,description:null,seconds:t,isGroupChannel:!1},(function(e,t){n(e,null)}))}),n)}},{key:"unbanUser",value:function(e,t){return this.unbanUserWithUserId(e?e.userId:null,t)}},{key:"unbanUserWithUserId",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string"}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.unbanUser({channelUrl:i.url,userId:e,isGroupChannel:!1},(function(e,n){t(e,null)}))}),t)}},{key:"delete",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.deleteOpenChannel({channelUrl:t.url},(function(n,r){n||(delete U.get(t._iid).OpenChannel.cachedChannels[t.url],U.get(t._iid).FileMessageQueue.delete(t.url)),e(n,r)}))}),e)}}],[{key:"buildFromSerializedData",value:function(e){var t=U.get(this._iid),n=t.User,r=t.OpenChannel,i=Y.deserialize(e);return new r({channel_url:i.url,name:i.name,cover_url:i.coverUrl,data:i.data,custom_type:i.customType,created_at:i.createdAt/1e3,freeze:i.isFrozen,is_ephemeral:i.isEphemeral,participant_count:i.participantCount,operators:i.operators.map((function(e){return n.build.apply(n,w(["userId","nickname","profileUrl","connectionStatus","lastSeenAt","metaData","isActive","friendDiscoveryKey","friendName"].map((function(t){return e[t]}))))})),__wk:i.__wk})}},{key:"getChannel",value:function(e,t){var n,r=_(V.parse(arguments,[new V({type:"string",constraint:function(e){return 0<e.length}}),new V({type:"callback"})]),3);if(n=r[0],e=r[1],t=r[2],n)return X(this._iid,(function(e){e(n,null)}),t);var i=U.get(this._iid).OpenChannel;return i.cachedChannels[e]?X(this._iid,(function(t){t(null,i.cachedChannels[e])}),t):i.getChannelWithoutCache(e,t)}},{key:"getChannelWithoutCache",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string",constraint:function(e){return 0<e.length}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.getOpenChannel({channelUrl:e},(function(e,n){var r=null;e||(r=U.get(i._iid).OpenChannel.upsert(n)),t(e,r)}))}),t)}},{key:"createChannel",value:function(e,t,n,i,a,r){var s,o=this,u=_(V.parse(arguments,[new V({type:"string",nullable:!0,ignoreIf:function(e){return 0===e.length}}),new V({type:["string","file"],nullable:!0,ignoreIf:function(e){return 0===e.length}}),new V({type:"string",nullable:!0,ignoreIf:function(e){return 0===e.length}}),new V({type:"array",nullable:!0,ignoreIf:function(e){return e.length<4},constraint:function(e){return e.map((function(e){return"string"==typeof e}))}}),new V({type:"string",nullable:!0,ignoreIf:function(e){return e.length<5}}),new V({type:"callback"})]),7);return s=u[0],e=u[1],t=u[2],n=u[3],i=u[4],a=u[5],r=u[6],X(this._iid,(function(r){s?r(s,null):B.get(o._iid).container.apiClient.createOpenChannel({name:e,coverUrlOrImage:t,data:n,operatorUserIds:i,customType:a},(function(e,t){var n=null;e||(n=U.get(o._iid).OpenChannel.upsert(t)),r(e,n)}))}),r)}},{key:"createChannelWithOperatorUserIds",value:function(){var e=V.toArray(arguments),t=void 0;switch("function"==typeof e[e.length-1]&&(t=e.pop()),e.length){case 4:case 5:return this.createChannel.apply(this,w(e).concat([t]));default:return X(this._iid,(function(e){return e(V.error,null)}),t)}}},{key:"upsert",value:function(e){var t=new(U.get(this._iid).OpenChannel)(e);return this.cachedChannels.hasOwnProperty(t.url)?this.cachedChannels[t.url].update(e):this.cachedChannels[t.url]=t,this.cachedChannels[t.url]}},{key:"removeCachedChannel",value:function(e){this.cachedChannels[e]&&delete this.cachedChannels[e],U.get(this._iid).FileMessageQueue.delete(e)}},{key:"clearCache",value:function(){be[this._iid]={},U.get(this._iid).FileMessageQueue.clear()}},{key:"clearEnteredChannels",value:function(){we[this._iid]={}}},{key:"createOpenChannelListQuery",value:function(){return new(U.get(this._iid).OpenChannelListQuery)}},{key:"cachedChannels",get:function(){return be[this._iid]||(be[this._iid]={}),be[this._iid]}},{key:"enteredChannels",get:function(){return we[this._iid]||(we[this._iid]={}),we[this._iid]}}]),t}(),Ee=function(){h(t,W);var e=g(t);function t(n){var r;return l(this,t),(r=e.call(this,n)).messageType=W.MESSAGE_TYPE_USER,r.message=null,r._sender=null,r.reqId="",r.translations={},r.requestState=null,r.sendingStatus=null,r.requestedMentionUserIds=[],r.errorCode=0,r.messageSurvivalSeconds=-1,n&&r._update(n),r}return s(t,[{key:"_update",value:function(e){var t=ot.getInstance(this._iid),n=U.get(this._iid).Sender;this.message=String(e.message),this._sender=new n(e.user),this.reqId=e.hasOwnProperty("req_id")?String(e.req_id):"",this.translations=e.hasOwnProperty("translations")?e.translations:{},this.sendingStatus=0<this.messageId?t.MessageSendingStatus.SUCCEEDED:t.MessageSendingStatus.FAILED,e.hasOwnProperty("sending_status")&&(this.sendingStatus=e.sending_status),this.requestState=0<this.messageId?t.MessageRequestState.SUCCEEDED:t.MessageRequestState.FAILED,e.hasOwnProperty("sending_status")&&(this.requestState=e.sending_status,this.requestState===t.MessageSendingStatus.CANCELED&&(this.requestState=t.MessageRequestState.FAILED)),this.requestedMentionUserIds=[],e.hasOwnProperty("requested_mention_user_ids")&&(this.requestedMentionUserIds=e.requested_mention_user_ids),this.errorCode=0,e.hasOwnProperty("error_code")&&(this.errorCode=e.error_code),this.messageSurvivalSeconds=-1,e.hasOwnProperty("message_survival_seconds")&&(this.messageSurvivalSeconds=e.message_survival_seconds)}},{key:"isResendable",value:function(){var e=ot.getInstance(this._iid);return this.sendingStatus===e.MessageSendingStatus.FAILED&&N.isResendableError(this.errorCode)}},{key:"sender",get:function(){var e=ot.getInstance(this._iid),t=U.get(this._iid).GroupChannel;
2if(e.Options.useMemberAsMessageSender&&this.isGroupChannel()){var n=t.cachedChannels[this.channelUrl];if(n){var r=n.memberMap[this._sender.userId];r&&(this._sender.nickname!==r.nickname&&(this._sender.nickname=r.nickname),this._sender.profileUrl!==r.profileUrl&&(this._sender.profileUrl=r.profileUrl),N.deepEqual(this._sender.metaData,r.metaData)||(this._sender.metaData=r.metaData))}}return this._sender},set:function(e){this._sender=e}}],[{key:"build",value:function(e,t,n,r,i,a,s,o,u,l,c,h,d,p,f,m,g,A,y,v){var _=ot.getInstance(this._iid),w=U.get(this._iid),x=w.BaseChannel,b=w.BaseMessageParams,E={};e&&(E.req_id=e),E.msg_id=t,E.channel_url=r.url,E.channel_type=r.channelType===x.CHANNEL_TYPE_OPEN?x.CHANNEL_TYPE_OPEN:x.CHANNEL_TYPE_GROUP,E.ts=l,E.updated_at=c,E.message=i,a&&(E.data=a),s&&(E.custom_type=s),o&&(E.translations=o);var C={user_id:"",nickname:"",profile_url:"",metadata:{},is_blocked_by_me:!1};if(n){C.user_id=n.userId,C.nickname=n.nickname,C.profile_url=n.profileUrl;try{C.metadata="string"==typeof n.metaData?JSON.parse(n.metaData):n.metaData}catch(e){C.metadata={}}C.is_blocked_by_me=n.isBlockedByMe}if(E.user=C,E.is_global_block=!!u,h){E.metaarray={};for(var S=0;S<h.length;S++){var T=h[S].key;E.metaarray[T]=h[S].value}E.metaarray_key_order=h.map((function(e){return e.key}))}return E.reactions=d||[],E.mention_type=b.MentionType.USERS,p&&(E.mention_type=p),E.mentioned_users=[],f&&(E.mentioned_users=f),E.sending_status=0<t?_.MessageSendingStatus.SUCCEEDED:_.MessageSendingStatus.FAILED,g&&(E.sending_status=g),m&&(E.mentioned_user_ids=m),E.requested_mention_user_ids=[],A&&(E.requested_mention_user_ids=A),E.error_code=y||0,E.message_survival_seconds=v||-1,E}},{key:"buildFromSerializedData",value:function(e){var t=U.get(this._iid),n=t.User,r=t.UserMessage,i=[],a=Y.deserialize(e,(function(e){e.mentionedUsers.forEach((function(e){i.push(n.build.apply(n,w(["userId","nickname","profileUrl","connectionStatus","lastSeenAt","metaData","isActive","friendDiscoveryKey","friendName"].map((function(t){return e[t]})))))}))}));return new r(r.build(a.reqId,a.messageId,a.sender,{url:a.channelUrl,channelType:a.channelType},a.message,a.data,a.customType,a.translations,a.isGlobalBlocked,a.createdAt,a.updatedAt,a.metaArrays,a.reactions,a.mentionType,i,a.mentionedUserIds,a.sendingStatus,a.requestedMentionUserIds,a.errorCode,a.messageSurvivalSeconds))}}]),t}(),Ce=function(){h(t,W);var e=g(t);function t(n){var r;return l(this,t),(r=e.call(this,n)).messageType=W.MESSAGE_TYPE_FILE,r.url=null,r.name="File",r.size=0,r.type=null,r.data=null,r.thumbnails=[],r._sender=null,r.reqId="",r.requireAuth=null,r.requestState=null,r.sendingStatus=null,r.requestedMentionUserIds=[],r.errorCode=0,r.messageSurvivalSeconds=-1,n&&r._update(n),r}return s(t,[{key:"_update",value:function(e){var t=ot.getInstance(this._iid),n=B.get(this._iid).container.auth,r=U.get(this._iid).Sender;if(this._sender=new r(e.user),this.requireAuth=!!e.hasOwnProperty("require_auth")&&e.require_auth,this.url=this.requireAuth?String(e.url).split("?auth=")[0]+"?auth="+n.eKey:String(e.url).split("?auth=")[0],this.name=e.hasOwnProperty("name")?e.name:"File",this.size=parseInt(e.size)||0,this.type=String(e.type),this.data=e.hasOwnProperty("custom")?String(e.custom):"",this.reqId=e.hasOwnProperty("req_id")?String(e.req_id):"",this.thumbnails=e.hasOwnProperty("thumbnails")?e.thumbnails:[],this.requireAuth)for(var i in this.thumbnails)this.thumbnails[i].url=String(this.thumbnails[i].url).split("?auth=")[0]+"?auth="+n.eKey;this.sendingStatus=0<this.messageId?t.MessageSendingStatus.SUCCEEDED:t.MessageSendingStatus.FAILED,e.hasOwnProperty("sending_status")&&(this.sendingStatus=e.sending_status),this.requestState=0<this.messageId?t.MessageRequestState.SUCCEEDED:t.MessageRequestState.FAILED,e.hasOwnProperty("sending_status")&&(this.requestState=e.sending_status,this.requestState===t.MessageSendingStatus.CANCELED&&(this.requestState=t.MessageRequestState.FAILED)),this.requestedMentionUserIds=[],e.hasOwnProperty("requested_mention_user_ids")&&(this.requestedMentionUserIds=e.requested_mention_user_ids),this.errorCode=0,e.hasOwnProperty("error_code")&&(this.errorCode=e.error_code),this.messageSurvivalSeconds=-1,e.hasOwnProperty("message_survival_seconds")&&(this.messageSurvivalSeconds=e.message_survival_seconds)}},{key:"isResendable",value:function(){var e=ot.getInstance(this._iid);return this.sendingStatus===e.MessageSendingStatus.FAILED&&N.isResendableError(this.errorCode)}},{key:"sender",get:function(){var e=ot.getInstance(this._iid),t=U.get(this._iid).GroupChannel;
2if(e.Options.useMemberAsMessageSender&&this.isGroupChannel()){var n=t.cachedChannels[this.channelUrl];if(n){var r=n.memberMap[this._sender.userId];r&&(this._sender.nickname!==r.nickname&&(this._sender.nickname=r.nickname),this._sender.profileUrl!==r.profileUrl&&(this._sender.profileUrl=r.profileUrl),N.deepEqual(this._sender.metaData,r.metaData)||(this._sender.metaData=r.metaData))}}return this._sender},set:function(e){this._sender=e}}],[{key:"build",value:function(e,t,n,r,i,a,s,o,u,l,c,h,d,p,f,m,g,A,y,v,_,w,x,b){var E=ot.getInstance(this._iid),C=U.get(this._iid),S=C.BaseChannel,T=C.BaseMessageParams,B={};B.req_id=e,B.msg_id=t,B.channel_url=r.url,B.channel_type=r.channelType===S.CHANNEL_TYPE_OPEN?S.CHANNEL_TYPE_OPEN:S.CHANNEL_TYPE_GROUP,B.ts=h,B.updated_at=f,B.url=i,B.name=a,B.type=s,B.size=o,B.custom=u;var k={user_id:"",nickname:"",profile_url:"",metadata:{},is_global_block:!1};if(n){k.user_id=n.userId,k.nickname=n.nickname,k.profile_url=n.profileUrl;try{k.metadata=JSON.parse(n.metaData)}catch(e){k.metadata={}}k.is_blocked_by_me=n.isBlockedByMe}if(B.user=k,l&&(B.custom_type=l),p&&(B.require_auth=p),d&&(B.thumbnails=d),B.is_global_block=c,m){B.metaarray={};for(var I=0;I<m.length;I++){var M=m[I].key;B.metaarray[M]=m[I].value}B.metaarray_key_order=m.map((function(e){return e.key}))}return B.reactions=g||[],B.mention_type=T.MentionType.USERS,A&&(B.mention_type=A),B.mentioned_users=[],y&&(B.mentioned_users=y),v&&(B.mentioned_user_ids=v),B.sending_status=0<t?E.MessageSendingStatus.SUCCEEDED:E.MessageSendingStatus.FAILED,_&&(B.sending_status=_),B.requested_mention_user_ids=[],w&&(B.requested_mention_user_ids=w),B.error_code=x||0,B.message_survival_seconds=b||-1,B}},{key:"buildFromSerializedData",value:function(e){var t=U.get(this._iid),n=t.User,r=t.FileMessage,i=[],a=Y.deserialize(e,(function(e){e.mentionedUsers.forEach((function(e){i.push(n.build.apply(n,w(["userId","nickname","profileUrl","connectionStatus","lastSeenAt","metaData","isActive","friendDiscoveryKey","friendName"].map((function(t){return e[t]})))))}))}));return new r(r.build(a.reqId,a.messageId,a.sender,{url:a.channelUrl,channelType:a.channelType},a.url,a.name,a.type,a.size,a.data,a.customType,a.isGlobalBlocked,a.createdAt,a.thumbnails,a.requireAuth,a.updatedAt,a.metaArrays,a.reactions,a.mentionType,i,a.mentionedUserIds,a.sendingStatus,a.requestedMentionUserIds,a.errorCode,a.messageSurvivalSeconds))}}]),t}(),Se=function(){h(t,W);var e=g(t);function t(n){var r;return l(this,t),(r=e.call(this,n)).messageType=W.MESSAGE_TYPE_ADMIN,r.message="",r.translations={},n&&r._update(n),r}return s(t,[{key:"_update",value:function(e){this.message=String(e.message),this.translations=e.hasOwnProperty("translations")?e.translations:{}}}],[{key:"build",value:function(e,t,n,r,i,a,s,o,u,l,c,h){var d=U.get(this._iid).BaseChannel,p={msg_id:e,channel_url:t.url,channel_type:t.channelType===d.CHA
2NNEL_TYPE_OPEN?d.CHANNEL_TYPE_OPEN:d.CHANNEL_TYPE_GROUP,ts:s,updated_at:o,message:n,data:r};if(i&&(p.custom_type=i),a&&(p.translations=a),u){p.metaarray={};for(var f=0;f<u.length;f++){var m=u[f].key;p.metaarray[m]=u[f].value}p.metaarray_key_order=u.map((function(e){return e.key}))}return p.reactions=l||[],c&&(p.mention_type=c),p.mentioned_users=[],h&&(p.mentioned_users=h),p}},{key:"buildFromSerializedData",value:function(e){var t=U.get(this._iid),n=t.AdminMessage,r=t.User,i=[],a=Y.deserialize(e,(function(e){e.mentionedUsers.forEach((function(e){i.push(r.build.apply(r,w(["userId","nickname","profileUrl","connectionStatus","lastSeenAt","metaData","isActive","friendDiscoveryKey","friendName"].map((function(t){return e[t]})))))}))}));return new n(n.build(a.messageId,{url:a.channelUrl,channelType:a.channelType},a.message,a.data,a.customType,a.translations,a.createdAt,a.updatedAt,a.metaArrays,a.reactions,a.mentionType,i))}}]),t}(),Te=function(){function e(t){l(this,e);var n=U.get(this._iid),r=n.BaseMessage,o=n.BaseMessageParams;this.scheduledId=0,this.scheduledDateTimeString="",this.scheduledTimezone="",this.status=e.Status.SCHEDULED,this.createdAt=0,this.updatedAt=0,this._messageType=r.MESSAGE_TYPE_BASE,this._sender=null,this._channelType="",this.channelUrl="",this.message="",this.customType="",this.data="",this.metaArrays=[],this.mentionType=o.MentionType.USERS,this.mentionedUsers=[],this.pushNotificationDeliveryOption=o.PushNotificationDeliveryOption.DEFAULT,this.translationTargetLanguages=[],this.errorMessage="",this.errorCode=0,t&&this._update(t)}return s(e,[{key:"_update",value:function(t){var n=this,r=U.get(this._iid),o=r.User,i=r.Sender,a=r.BaseMessageParams,s=r.MessageMetaArray;this.scheduledId=t.hasOwnProperty("scheduled_id")?parseInt(t.scheduled_id):0,this.scheduledDateTimeString=t.hasOwnProperty("scheduled_dt")?String(t.scheduled_dt):"",this.scheduledTimezone=t.hasOwnProperty("scheduled_timezone")?String(t.scheduled_timezone):"",this.status=t.hasOwnProperty("status")?String(t.status):"",this.createdAt=t.hasOwnProperty("created_at")?parseInt(t.created_at):0,this.updatedAt=t.hasOwnProperty("updated_at")?parseInt(t.updated_at):0,this.channelUrl=t.hasOwnProperty("channel_url")?String(t.channel_url):"",this._channelType=t.hasOwnProperty("channel_type")?String(t.channel_type):"",this._messageType=t.hasOwnProperty("type")?String(t.type):"",this._sender=t.hasOwnProperty("user")?new i(t.user):"",this.message=t.hasOwnProperty("message")?String(t.message):"",this.customType=t.hasOwnProperty("custom_type")?String(t.custom_type):"",this.data=t.hasOwnProperty("data")?String(t.data):"";var l=t.hasOwnProperty("metaarray")?t.metaarray:{},u=t.hasOwnProperty("metaarray_key_order")?t.metaarray_key_order:Object.keys(l).sort((function(e,t){return e.localeCompare(t)}));this.metaArrays=[];for(var c=0;c<u.length;c++){var h=u[c];this.metaArrays.push(new s(h,l[h]||[]))}this.mentionType=t.hasOwnProperty("mention_type")?t.mention_type:a.MentionType.USERS,this.mentionedUsers=[],t.hasOwnProperty("mentioned_users")&&t.mentioned_users.forEach((function(e){var t=new o(e);n.mentionedUsers.push(t)})),this.pushNotificationDeliveryOption=t.hasOwnProperty("push_option")?t.push_option:a.PushNotificationDeliveryOption.DEFAULT,this.translationTargetLanguages=t.hasOwnProperty("translation_target_langs")?t.translation_target_langs:[],this.status===e.Status.FAILED&&(t.hasOwnProperty("error")&&t.error.hasOwnProperty("message")&&(this.errorMessage=String(t.error.message)),t.hasOwnProperty("error")&&t.error.hasOwnProperty("code")&&(this.errorCode=parseInt(t.error.code)))}},{key:"isOpenChannel",value:function(){var e=U.get(this._iid).BaseChannel;return this._channelType===e.CHANNEL_TYPE_OPEN}},{key:"isGroupChannel",value:function(){var e=U.get(this._iid).BaseChannel;return this._channelType===e.CHANNEL_TYPE_GROUP}},{key:"sender",get:function(){var e=ot.getInstance(this._iid),t=U.get(this._iid).GroupChannel;if(e.Options.useMemberAsMessageSender&&this.isGroupChannel()){var n=t.cachedChannels[this.channelUrl];if(n){var r=n.memberMap[this._sender.userId];r&&(this._sender.nickname!==r.nickname&&(this._sender.nickname=r.nickname),this._sender.profileUrl!==r.profileUrl&&(this._sender.profileUrl=r.profileUrl),N.deepEqual(this._sender.metaData,r.metaData)||(this._sender.metaData=r.metaData))}}return this._sender},set:function(e){this._sender=e}}
2,{key:"metaArray",get:function(){var e={};return this.metaArrays.forEach((function(t){e[t.key]=t.value})),e},set:function(e){if("object"===o(e)&&e){var t=U.get(this._iid).MessageMetaArray,n=[];for(var r in e)n.push(new t(r,e[r]));this.metaArrays=n}}}],[{key:"Status",get:function(){return{SCHEDULED:"scheduled",SENT:"sent",CANCELED:"canceled",FAILED:"failed"}}}]),e}(),Be=function(){function e(){l(this,e),this.isLoading=!1,this.hasNext=!0,this.limit=20,this.userIdsFilter=[],this.metaDataKeyFilter="",this.metaDataValuesFilter=[],this._token=""}return s(e,[{key:"next",value:function(e){var s=this;return X(this._iid,(function(a){"number"==typeof s.limit&&0<s.limit&&Array.isArray(s.userIdsFilter)&&"string"==typeof s.metaDataKeyFilter&&Array.isArray(s.metaDataValuesFilter)&&!!s.metaDataKeyFilter==0<s.metaDataValuesFilter.length?s.isLoading?a(new k("Query in progress.",k.QUERY_IN_PROGRESS),null):s.hasNext?(s.isLoading=!0,B.get(s._iid).container.apiClient.loadUserList(c({},s,{token:s._token}),(function(e,t){var n=null;if(!e){var r=U.get(s._iid).User,i=String(t.next);s._token=i,s.hasNext=!!i,n=t.users.map((function(e){return new r(e)}))}s.isLoading=!1,a(e,n)}))):a(null,[]):a(V.error,null)}),e)}}]),e}(),ke=function(){function e(t){l(this,e),this.isLoading=!1,this.hasNext=!0,this.limit=20,this._isOpenChannel=!1,this._channelUrl=null,this._token="",t.channelUrl&&(this._channelUrl=t.channelUrl),t.isOpenChannel&&(this._isOpenChannel=t.isOpenChannel)}return s(e,[{key:"next",value:function(e){var s=this;return X(this._iid,(function(a){"number"==typeof s.limit&&0<s.limit?s.isLoading?a(new k("Query in progress.",k.QUERY_IN_PROGRESS),null):s.hasNext?(s.isLoading=!0,B.get(s._iid).container.apiClient.loadBannedUserList(c({},s,{channelUrl:s._channelUrl,isOpenChannel:s._isOpenChannel,token:s._token}),(function(e,t){var n=null;if(!e){var r=U.get(s._iid).User,i=String(t.next);s._token=i,s.hasNext=!!i,n=t.banned_list.map((function(e){return new r(e.user)}))}s.isLoading=!1,a(e,n)}))):a(null,[]):a(V.error,null)}),e)}}]),e}(),Ie=function(){function e(){l(this,e),this.isLoading=!1,this.hasNext=!0,this.limit=20,this.userIdsFilter=[],this._token=""}return s(e,[{key:"next",value:function(e){var s=this;return X(this._iid,(function(a){"number"==typeof s.limit&&0<s.limit&&Array.isArray(s.userIdsFilter)?s.isLoading?a(new k("Query in progress.",k.QUERY_IN_PROGRESS),null):s.hasNext?(s.isLoading=!0,B.get(s._iid).container.apiClient.loadBlockedUserList(c({},s,{token:s._token}),(function(e,t){var n=null;if(!e){var r=U.get(s._iid).User,i=String(t.next);s._token=i,s.hasNext=!!i,n=t.users.map((function(e){return new r(e)}))}s.isLoading=!1,a(e,n)}))):a(null,[]):a(V.error,null)}),e)}}]),e}(),Me=function(){function e(){l(this,e),this.isLoading=!1,this.hasMore=!0,this.limit=20,this._token=""}return s(e,[{key:"next",value:function(e){var s=this;return X(this._iid,(function(a){"number"==typeof s.limit&&0<s.limit?s.isLoading?a(new k("Query in progress.",k.QUERY_IN_PROGRESS),null):s.hasMore?(s.isLoading=!0,B.get(s._iid).container.apiClient.loadFriendList(c({},s,{token:s._token}),(function(e,t){var n=null;if(!e){var r=U.get(s._iid).User,i=String(t.next);s._token=i,s.hasMore=!!i,n=t.users.map((function(e){return new r(e)}))}s.isLoading=!1,a(e,n)}))):a(null,[]):a(V.error,null)}),e)}}]),e}(),Pe=function(){function e(){l(this,e),this.isLoading=!1,this.hasNext=!0,this.limit=20,this.includeEmpty=!1,this.order=e.ORDER_LATEST_LAST_MESSAGE,this._token="",this._searchFilter={},this._userIdsFilter={userIds:[],includeMode:!0,queryType:e.QueryType.AND},this._userIdsExactFilter=[],this._userIdsIncludeFilter=[],this._userIdsIncludeFilterQueryType=e.QueryType.AND,this.nicknameContainsFilter="",this.channelNameContainsFilter="",this.memberStateFilter=ye.MemberStateFilter.ALL,this.customTypesFilter=[],this.channelUrlsFilter=[],this.superChannelFilter=ye.SuperChannelFilter.ALL,this.publicChannelFilter=ye.PublicChannelFilter.ALL,this.customTypeStartsWithFilter=null,this.unreadChannelFilter=ye.UnreadChannelFilter.ALL,this.metadataOrderKeyFilter=null,this.hiddenChannelFilter=ye.HiddenChannelFilter.UNHIDDEN}return s(e,[{key:"setSearchFilter",value:function(e,t){Array.isArray(e)&&0!==e.length&&"string"==typeof t&&t&&(this._searchFilter={search_query:t,search_fields:e.join(",").toLocaleLowerCase()})}},{key:"serialize",value:function(){return Y.serialize(this,(function(e){e.isLoading=!1}))}},{key:"next",value:function(e){var t=this;return X(this._iid,(function(e){var n=U.get(t._iid),u=n.GroupChannel,r=n.GroupChannelListQuery;!("number"==typeof t.limit&&0<t.limit&&"boolean"==typeof t.includeEmpty&&"string"==typeof t.order&&-1<[r.ORDER_CHRONOLOGICAL,r.ORDER_LATEST_LAST_MESSAGE,r.CHANNEL_NAME_ALPHABETICAL,r.METADATA_VALUE_ALPHABETICAL].indexOf(t.order.toLowerCase())&&Array.isArray(t._userIdsExactFilter)&&Array.isArray(t._userIdsIncludeFilter)&&Array.isArray(t.customTypesFilter)&&Array.isArray(t.channelUrlsFilter)&&-1<Object.keys(r.QueryType).map((function(e){return r.QueryType[e]})).indexOf(t._userIdsIncludeFilterQueryType.toUpperCase())&&-1<Object.keys(u.MemberStateFilter).map((function(e){return u.MemberStateFilter[e]})).indexOf(t.memberStateFilter)&&-1<Object.keys(u.SuperChannelFilter).map((function(e){return u.SuperChannelFilter[e]})).indexOf(t.superChannelFilter)&&-1<Object.keys(u.PublicChannelFilter).map((function(e){return u.PublicChannelFilter[e]})).indexOf(t.publicChannelFilter)&&-1<Object.keys(u.UnreadChannelFilter).map((function(e){return u.UnreadChannelFilter[e]})).indexOf(t.unreadChannelFilter)&&-1<Object.keys(u.HiddenChannelFilter).map((function(e){return u.HiddenChannelFilter[e]})).indexOf(t.hiddenChannelFilter))||"string"!=typeof t.customTypeStartsWithFilter&&null!==t.customTypeStartsWithFilter||"string"!=typeof t.nicknameContainsFilter||"string"!=typeof t.channelNameContainsFilter||"string"!=typeof t.metadataOrderKeyFilter&&null!==t.metadataOrderKeyFilter?e(V.error,null):t.isLoading?e(new k("Query in progress.",k.QUERY_IN_PROGRESS),null):t.hasNext?(t.isLoading=!0,B.get(t._iid).container.apiClient.loadGroupChannelList(c({},t,{token:t._token,userIdsFilter:t._userIdsFilter,searchFilter:t._searchFilter}),(function(n,r){if(n)return t.isLoading=!1,void e(n,null);var o=[],l=String(r.next);t._token=l,t.hasNext=!!l;for(var i=r.channels,a=0;a<i.length;a++){var s=u.upsert(i[a]);o.push(s)}t.isLoading=!1,e(n,o)}))):e(null,[])}),e)}},{key:"userIdsExactFilter",get:function(){return this._userIdsExactFilter},set:function(e){Array.isArray(e)&&(this._userIdsExactFilter=e,this._userIdsIncludeFilter=[],this._userIdsFilter.userIds=this._userIdsExactFilter,this._userIdsFilter.includeMode=!1)}},{key:"userIdsIncludeFilter",get:function(){return this._userIdsIncludeFilter},set:function(e){Array.isArray(e)&&(this._userIdsIncludeFilter=e,this._userIdsExactFilter=[],this._userIdsFilter.userIds=this._userIdsIncludeFilter,this._userIdsFilter.includeMode=!0)}},{key:"userIdsIncludeFilterQueryType",get:function(){return this._userIdsIncludeFilterQueryType},set:function(t){-1<Object.keys(e.QueryType).map((function(t){return e.QueryType[t]})).indexOf(t)&&(this._userIdsIncludeFilterQueryType=t.toUpperCase(),this._userIdsFilter.queryType=this._userIdsIncludeFilterQueryType)}}],[{key:"buildFromSerializedData",value:function(e){var t=U.get(this._iid).GroupChannel,n=Y.deserialize(e),r=t.createMyGroupChannelListQuery();for(var i in n)r.hasOwnProperty(i)&&(r[i]=n[i]);return r}},{key:"ORDER_LATEST_LAST_MESSAGE",get:function(){return"latest_last_message"}},{key:"ORDER_CHRONOLOGICAL",get:function(){return"chronological"}},{key:"CHANNEL_NAME_ALPHABETICAL",get:function(){return"channel_name_alphabetical"}},{key:"METADATA_VALUE_ALPHABETICAL",get:function(){return"metadata_value_alph
2abetical"}},{key:"QueryType",get:function(){return{AND:"AND",OR:"OR"}}},{key:"SearchField",get:function(){return{MEMBER_NICKNAME:"member_nickname",CHANNEL_NAME:"channel_name"}}}]),e}(),De=function(){function e(t){l(this,e),this.isLoading=!1,this.hasNext=!0,this.limit=20,this.mutedMemberFilter=e.MutedMemberFilter.ALL,this.memberStateFilter=ye.MemberStateFilter.ALL,this.nicknameStartsWithFilter=null,this._token="",this._channelUrl=t}return s(e,[{key:"next",value:function(e){var s=this;return X(this._iid,(function(i){var e=U.get(s._iid),t=e.GroupChannel,a=e.Member,n=e.MemberListQuery;if("number"==typeof s.limit&&0<s.limit&&-1<Object.keys(n.MutedMemberFilter).map((function(e){return n.MutedMemberFilter[e]})).indexOf(s.mutedMemberFilter)&&-1<Object.keys(t.MemberStateFilter).map((function(e){return t.MemberStateFilter[e]})).indexOf(s.memberStateFilter)&&("string"==typeof s.nicknameStartsWithFilter||null===s.nicknameStartsWithFilter))if(s.isLoading)i(new k("Query in progress.",k.QUERY_IN_PROGRESS),null);else if(s.hasNext){s.isLoading=!0;var r=n.Order.MEMBER_NICKNAME_ALPHABETICAL;B.get(s._iid).container.apiClient.loadMemberList(c({},s,{channelUrl:s._channelUrl,order:r,token:s._token}),(function(e,t){var n=null;if(!e){var r=String(t.next);s._token=r,s.hasNext=!!r,n=t.members.map((function(e){return new a(e)}))}s.isLoading=!1,i(e,n)}))}else i(null,[]);else i(V.error,null)}),e)}}],[{key:"MutedMemberFilter",get:function(){return{ALL:"all",MUTED:"muted",UNMUTED:"unmuted"}}},{key:"Order",get:function(){return{MEMBER_NICKNAME_ALPHABETICAL:"member_nickname_alphabetical"}}}]),e}(),Ue=function(){function e(t){l(this,e),this.isLoading=!1,this.hasNext=!0,this.limit=20,this._token="",t.channelUrl&&(this._channelUrl=t.channelUrl),t.isOpenChannel&&(this._isOpenChannel=t.isOpenChannel)}return s(e,[{key:"next",value:function(e){var s=this;return X(this._iid,(function(a){"number"==typeof s.limit&&0<s.limit?s.isLoading?a(new k("Query in progress.",k.QUERY_IN_PROGRESS),null):s.hasNext?(s.isLoading=!0,B.get(s._iid).container.apiClient.loadMutedUserList(c({},s,{channelUrl:s._channelUrl,isOpenChannel:s._isOpenChannel,token:s._token}),(function(e,t){var n=null;if(!e){var r=U.get(s._iid).User,i=String(t.next);s._token=i,s.hasNext=!!i,n=t.muted_list.map((function(e){return new r(e)}))}s.isLoading=!1,a(e,n)}))):a(null,[]):a(V.error,null)}),e)}}]),e}(),Oe=function(){function e(){l(this,e),this.limit=20,this.isLoading=!1,this.hasNext=!0,this.nameKeyword=null,this.urlKeyword=null,this.customTypes=[]}return s(e,[{key:"next",value:function(e){var s=this;return X(this._iid,(function(a){!("number"==typeof s.limit&&0<s.limit&&Array.isArray(s.customTypes))||"string"!=typeof s.nameKeyword&&null!==s.nameKeyword||"string"!=typeof s.urlKeyword&&null!==s.urlKeyword?a(V.error,null):s.isLoading?a(new k("Query in progress.",k.QUERY_IN_PROGRESS),null):s.hasNext?(s.isLoading=!0,B.get(s._iid).container.apiClient.loadOpenChannelList(c({},s,{token:s._token}),(function(e,t){var n=null;if(!e){var r=U.get(s._iid).OpenChannel,i=String(t.next);s._token=i,s.hasNext=!!i,n=t.channels.map((function(e){return r.upsert(e)}))}s.isLoading=!1,a(e,n)}))):a(null,[])}),e)}}]),e}(),Fe=new WeakMap,Re=function(){function e(t){l(this,e),this.isLoading=!1,this.hasNext=!0,this.limit=20,this._token="",Fe.set(this,t)}return s(e,[{key:"next",value:function(e){var s=this;return X(this._iid,(function(a){if("number"==typeof s.limit&&0<s.limit)if(s.isLoading)a(new k("Query in progress.",k.QUERY_IN_PROGRESS),null);else if(s.hasNext){s.isLoading=!0;var e=Fe.get(s);B.get(s._iid).container.apiClient.loadOperatorList(c({},s,{token:s._token,channelUrl:e.url,isOpenChannel:e.isOpenChannel()}),(function(e,t){var n=null;if(!e){var r=U.get(s._iid).User,i=String(t.next);s._token=i,s.hasNext=!!i,n=t.operators.map((function(e){return new r(e)}))}s.isLoading=!1,a(e,n)}))}else a(null,[]);else a(V.error,null)}),e)}}]),e}(),Ne=new WeakMap,Le=function(){function e(t){l(this,e),this.isLoading=!1,this.hasNext=!0,this.limit=20,this._token="",t&&Ne.set(this,t.channelUrl)}return s(e,[{key:"next",value:function(e){var s=this;return X(this._iid,(function(a){"number"==typeof s.limit&&0<s.limit?s.isLoading?a(new k("Query in progress.",k.QUERY_IN_PROGRESS),null):s.hasNext?(s.isLoading=!0,B.get(s._iid).container.apiClient.loadParticipantList(c({},s,{channelUrl:Ne.get(s),token:s._token}),(function(e,t){var n=null;if(!e){var r=U.get(s._iid).User,i=String(t.next);s._token=i,s.hasNext=!!i,n=t.participants.map((function(e){return new r(e)}))}s.isLoading=!1,a(e,n)}))):a(null,[]):a(V.error,null)}),e)}}]),e}(),ze=new WeakMap,He=function(){function e(t,n){var r=n.limit,o=void 0===r?20:r,i=n.reverse,a=void 0!==i&&i,s=n.exactMatch,c=void 0!==s&&s,u=n.channelUrl,h=void 0===u?"":u,d=n.channelCustomType,f=void 0===d?"":d,m=n.messageTimestampFrom,p=void 0===m?null:m,A=n.messageTimestampTo,y=void 0===A?null:A,g=n.order,v=void 0===g?"score":g;l(this,e),this.isLoading=!1,this.hasNext=!0,ze.set(this,{keyword:t,limit:o,reverse:a,exactMatch:c,channelUrl:h,channelCustomType:f,messageTimestampFrom:p,messageTimestampTo:y,order:v,previousToken:"",nextToken:""})}return s(e,[{key:"next",value:function(e){var t=this,n=U.get(this._iid),p=n.BaseChannel,r=n.GroupChannel,o=n.OpenChannel;return X(this._iid,(function(s){var e=ze.get(t),n=e.keyword,l=e.limit,c=e.reverse,i=e.exactMatch,a=e.channelUrl,h=e.channelCustomType,u=e.messageTimestampFrom,d=e.messageTimestampTo,f=e.order,m=e.nextToken;!("number"==typeof l&&0<l&&l<=1e3&&"boolean"==typeof c&&"boolean"==typeof i)||"string"!=typeof a&&null!==a||"string"!=typeof h&&null!==h||"number"!=typeof u&&null!==u||"number"!=typeof d&&null!==d||!(0<=["score","ts"].indexOf(f))?s(V.error,null):t.isLoading?s(new k("Query in progress.",k.QUERY_IN_PROGRESS),null):t.hasNext?(t.isLoading=!0,B.get(t._iid).container.apiClient.searchMessages({keyword:n,limit:l,reverse:c,exactMatch:i,channelUrl:a,channelCustomType:h,messageTimestampFrom:u,messageTimestampTo:d,order:f,nextToken:m},(function(e,n){var l=null;if(!e){for(var c in l=[],n.results){var i=n.results[c],a=null;i.channel.hasOwnProperty("members")?(a=new r(i.channel),r.cachedChannels[a.url]=a):(a=new o(i.channel),o.cachedChannels[a.url]=a),l.push(p.buildMessage(i,a))}t.hasNext=n.has_next,ze.get(t).nextToken=n.end_cursor}t.isLoading=!1,s(e,l)}))):s(null,[])}),e)}},{key:"key",get:function(){return ze.get(this).keyword}},{key:"limit",get:function(){return ze.get(this).limit}},{key:"reverse",get:function(){return ze.get(this).reverse}},{key:"exactMatch",get:function(){return ze.get(this).exactMatch}},{key:"channelUrl",get:function(){return ze.get(this).channelUrl}},{key:"channelCustomType",get:function(){return ze.get(this).channelCustomType}},{key:"messageTimestampFrom",get:function(){return ze.get(this).messageTimestampFrom}},{key:"messageTimestampTo",get:function(){return ze.get(this).messageTimestampTo}},{key:"order",get:function(){return ze.get(this).order}}]),e}(),Qe=new WeakMap,Ve=new WeakMap,je=function(){function e(t){l(this,e),this.isLoading=!1,this.hasMore=!0,this.limit=20,Ve.set(this,Number.MAX_SAFE_INTEGER),Qe.set(this,t),this.reverse=!1,this.messageTypeFilter=null,this.customTypeFilter=null,this.senderUserIdsFilter=[],this.includeMetaArray=!1,this.includeReaction=!1}return s(e,[{key:"load",value:function(s,e,t,n){var r=this,u=U.get(this._iid).BaseChannel,o=null,i=_(V.parse(arguments,[new V({type:"number",optional:!0,defaultValue:this.limit}),new V({type:"boolean",optional:!0,defaultValue:this.reverse}),new V({type:["string","number"],optional:!0,defaultValue:this.messageTypeFilter,constraint:function(e){return-1<Object.keys(u.MessageTypeFilter).map((function(e){return u.MessageTypeFilter[e]})).indexOf(e)||-1<[0,1,2,3].indexOf(e)}}),new V({type:"callback"})]),5);return o=i[0],s=i[1],e=i[2],t=i[3],n=i[4],X(this._iid,(function(i){if(Array.isArray(r.senderUserIdsFilter)&&!r.senderUserIdsFilter.some((function(e){return"string"!=typeof e}))||(o=V.error),o)i(o,null);else{if(r.limit=s,r.reverse=e,r.messageTypeFilter=t,"number"==typeof r.messageTypeFilter)switch(r.messageTypeFilter){case 0:r.messageTypeFilter=u.MessageTypeFilter.ALL;break;case 1:r.messageTypeFilter=u.MessageTypeFilter.USER;break;case 2:r.messageTypeFilter=u.MessageTypeFilter.FILE;break;case 3:r.messageTypeFilter=u.MessageTypeFilter.ADMIN}if(r.isLoading)i(new k("Query in progress.",k.QUERY_IN_PROGRESS),null);else if(r.hasMore){r.isLoading=!0;var a=Qe.get(r);B.get(r._iid).container.apiClient.getMessageList({channel:a,token:Ve.get(r)||(new Date).getTime()+1e4,tokenType:"timestamp",isInclusive:!1,prevResultSize:s,nextResultSize:0,shouldReverse:e,messageType:t,customType:r.customTypeFilter,senderUserIds:r.senderUserIdsFilter,includeMetaArray:r.includeMetaArray,includeReaction:r.includeReaction},(function(e,t){var n=null;if(!e){(0===(n=t.messages.map((function(e){return u.buildMessage(e,a)}))).length||n.length<s)&&(r.hasMore=!1);var o=Ve.get(r);Ve.set(r,Math.min.apply(Math,w(n.map((function(e){return e.createdAt}))).concat([o])))}r.isLoading=!1,i(e,n)}))}else i(null,[])}}),n)}}]),e}(),Ge=function(){function e(){l(this,e),this.isLoading=!1,this.hasNext=!0,this.limit=20,this.includeEmpty=!1,this.order=Pe.ORDER_LATEST_LAST_MESSAGE,this._token="",this.channelNameContainsFilter="",this.channelUrlsFilter=[],this.customTypesFilter=[],this.customTypeStartsWithFilter=null,this.superChannelFilter=ye.SuperChannelFilter.ALL,this.membershipFilter=e.MembershipType.JOINED,this.metadataOrderKeyFilter=null}return s(e,[{key:"next",value:function(t){var s=this;return X(this._iid,(function(i){var a=U.get(s._iid).GroupChannel;!("number"==typeof s.limit&&0<s.limit&&"boolean"==typeof s.includeEmpty&&"string"==typeof s.order&&-1<[e.ORDER_CHRONOLOGICAL,e.CHANNEL_NAME_ALPHABETICAL,e.METADATA_VALUE_ALPHABETICAL,e.ORDER_LATEST_LAST_MESSAGE].indexOf(s.order.toLowerCase())&&Array.isArray(s.customTypesFilter)&&Array.isArray(s.channelUrlsFilter)&&-1<Object.keys(e.MembershipType).map((function(t){return e.MembershipType[t]})).indexOf(s.membershipFilter)&&-1<Object.keys(a.SuperChannelFilter).map((function(e){return a.SuperChannelFilter[e]})).indexOf(s.superChannelFilter))||"string"!=typeof s.customTypeStartsWithFilter&&null!==s.customTypeStartsWithFilter||"string"!=typeof s.channelNameContainsFilter||"string"!=typeof s.metadataOrderKeyFilter&&null!==s.metadataOrderKeyFilter?i(V.error,null):s.isLoading?i(new k("Query in progress.",k.QUERY_IN_PROGRESS),null):s.hasNext?(s.isLoading=!0,B.get(s._iid).container.apiClient.loadPublicGroupChannelList(c({},s,{token:s._token}),(function(e,t){var n=null;if(!e){var r=String(t.next);s._token=r,s.hasNext=!!r,n=t.channels.map((function(e){return a.upsert(e)}))}s.isLoading=!1,i(e,n)}))):i(null,[])}),t)}}],[{key:"MembershipType",get:function(){return{ALL:"all",JOINED:"joined"}}},{key:"ORDER_LATEST_LAST_MESSAGE",get:function(){return"latest_last_message"}},{key:"ORDER_CHRONOLOGICAL",get:function(){return"chronological"}},{key:"CHANNEL_NAME_ALPHABETICAL",get:function(){return"channel_name_alphabetical"}},{key:"METADATA_VALUE_ALPHABETICAL",get:function(){return"metadata_value_alph
2abetical"}}]),e}(),Ke=function(){function e(){l(this,e),this.isDistinct=null,this.isSuper=null,this.isBroadcast=null,this.isPublic=null,this.channelUrl=null,this.isEphemeral=null,this.isDiscoverable=null,this.isStrict=null,this.name=null,this.data=null,this.customType=null,this.channelCover=null,this.coverUrl=null,this.coverImage=null,this.accessCode=null,this.messageSurvivalSeconds=null,this._invitedUserIds=[];var t=null;Object.defineProperty(this,"operators",{set:function(e){Array.isArray(e)&&e.filter((function(e){return e.hasOwnProperty("userId")})).length===e.length&&(t=e.map((function(e){return e.userId})))}}),Object.defineProperty(this,"operatorUserIds",{get:function(){return t},set:function(e){Array.isArray(e)&&e.filter((function(e){return"string"==typeof e})).length===e.length&&(t=e)}})}return s(e,[{key:"_validate",value:function(){return Array.isArray(this._invitedUserIds)&&this._invitedUserIds.every((function(e){return"string"==typeof e}))&&("string"==typeof this.channelUrl||null===this.channelUrl)&&("string"==typeof this.coverUrl||null===this.coverUrl)&&(N.isFile(this.coverImage)||null===this.coverImage)&&("string"==typeof this.name||null===this.name)&&("string"==typeof this.data||null===this.data)&&("string"==typeof this.customType||null===this.customType)&&("boolean"==typeof this.isDistinct||null===this.isDistinct)&&("boolean"==typeof this.isSuper||null===this.isSuper)&&("boolean"==typeof this.isBroadcast||null===this.isBroadcast)&&("boolean"==typeof this.isPublic||null===this.isPublic)&&("boolean"==typeof this.isEphemeral||null===this.isEphemeral)&&("boolean"==typeof this.isDiscoverable||null===this.isDiscoverable)&&("boolean"==typeof this.isStrict||null===this.isStrict)&&(Array.isArray(this.operatorUserIds)&&this.operatorUserIds.every((function(e){return"string"==typeof e}))||null===this.operatorUserIds)&&("string"==typeof this.accessCode||null===this.accessCode)&&("number"==typeof this.messageSurvivalSeconds||null===this.messageSurvivalSeconds)}},{key:"addUsers",value:function(e){if(Array.isArray(e)){var t,n=e.filter((function(e){return e.hasOwnProperty("userId")&&"string"==typeof e.userId})).map((function(e){return e.userId}));(t=this._invitedUserIds).push.apply(t,w(n))}}},{key:"addUser",value:function(e){e.hasOwnProperty("userId")&&"string"==typeof e.userId&&this._invitedUserIds.push(e.userId)}},{key:"addUserIds",value:function(e){if(Array.isArray(e)){var t,n=e.filter((function(e){return"string"==typeof e}));(t=this._invitedUserIds).push.apply(t,w(n))}}},{key:"addUserId",value:function(e){"string"==typeof e&&this._invitedUserIds.push(e)}}]),e}(),qe=function(){function e(){l(this,e),this._mentionType=e.MentionType.USERS,this._mentionedUserIds=[],this._cachedMentionedUsers=[],this._cachedMentionedUserIds=[]}return s(e,[{key:"_validate",value:function(){var e=U.get(this._iid).BaseMessageParams;return-1<Object.keys(e.MentionType).map((function(t){return e.MentionType[t]})).indexOf(this.mentionType)&&this._mentionedUserIds.every((function(e){return"string"==typeof e}))}},{key:"mentionType",get:function(){return this._mentionType},set:function(e){var t=U.get(this._iid).BaseMessageParams;-1<Object.keys(t.MentionType).map((function(e){return t.MentionType[e]})).indexOf(e)&&(this._mentionType=e)}},{key:"mentionedUserIds",get:function(){return this._cachedMentionedUserIds},set:function(e){if(Array.isArray(e))for(var t=ot.getInstance(this._iid),n=0;n<e.length;n++){var r=e[n];if("string"!=typeof r){this._cachedMentionedUserIds=[],this._mentionedUserIds=[];break}this._mentionedUserIds.indexOf(r)<0&&t.currentUser&&t.currentUser.userId!==r&&(this._cachedMentionedUserIds.push(r),this._mentionedUserIds.push(r))}}},{key:"mentionedUsers",get:function(){return this._cachedMentionedUsers},set:function(e){if(Array.isArray(e))for(var t=ot.getInstance(this._iid),n=0;n<e.length;n++){var r=e[n];if(!r.hasOwnProperty("userId")){this._cachedMentionedUsers=[],this._mentionedUserIds=[];break}this._mentionedUserIds.indexOf(r.userId)<0&&t.currentUser&&t.currentUser.userId!==r.userId&&(this._cachedMentionedUsers.push(r),this._mentionedUserIds.push(r.userId)
2)}}}],[{key:"MentionType",get:function(){return{USERS:"users",CHANNEL:"channel"}}},{key:"PushNotificationDeliveryOption",get:function(){return{DEFAULT:"default",SUPPRESS:"suppress"}}}]),e}(),$e=function(){h(t,qe);var e=g(t);function t(){var n;return l(this,t),(n=e.call(this)).message=null,n.data=null,n.customType=null,n.pushNotificationDeliveryOption=null,n._metaArrayKeys=[],n._translationTargetLanguages=[],n}return s(t,[{key:"_validate",value:function(){var e=U.get(this._iid).BaseMessageParams;return v(d(t.prototype),"_validate",this).call(this)&&("string"==typeof this.message||null===this.message)&&("string"==typeof this.data||null===this.data)&&("string"==typeof this.customType||null===this.customType)&&Array.isArray(this.translationTargetLanguages)&&this.translationTargetLanguages.every((function(e){return"string"==typeof e}))&&Array.isArray(this.metaArrayKeys)&&this.metaArrayKeys.every((function(e){return"string"==typeof e}))&&(null===this.pushNotificationDeliveryOption||-1<Object.keys(e.PushNotificationDeliveryOption).map((function(t){return e.PushNotificationDeliveryOption[t]})).indexOf(this.pushNotificationDeliveryOption))}},{key:"metaArrayKeys",get:function(){return this._metaArrayKeys},set:function(e){var t=[];if(Array.isArray(e))for(var n=0;n<e.length;n++)"string"==typeof e[n]&&t.indexOf(e[n])<0&&t.push(e[n]);this._metaArrayKeys=t}},{key:"targetLanguages",get:function(){return this.translationTargetLanguages},set:function(e){this.translationTargetLanguages=e}},{key:"translationTargetLanguages",get:function(){return this._translationTargetLanguages},set:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if("string"!=typeof e[t])return void(this._translationTargetLanguages=[]);this._translationTargetLanguages=e}}}]),t}(),Ye=function(){h(t,qe);var e=g(t);function t(){var n;return l(this,t),(n=e.call(this)).fileName=null,n.mimeType=null,n.fileSize=null,n.data=null,n.customType=null,n.pushNotificationDeliveryOption=null,n._isUpdate=!1,n._file=null,n._fileUrl=null,n._metaArrayKeys=[],n._thumbnailSizes=[],n}return s(t,[{key:"_validate",value:function(){var e=U.get(this._iid).BaseMessageParams;return v(d(t.prototype),"_validate",this).call(this)&&(this._isUpdate||N.isFile(this.file)||"string"==typeof this.fileUrl)&&("string"==typeof this.fileName||null===this.fileName)&&("string"==typeof this.mimeType||null===this.mimeType)&&("number"==typeof this.fileSize||null===this.fileSize)&&("string"==typeof this.data||null===this.data)&&("string"==typeof this.customType||null===this.customType)&&Array.isArray(this._metaArrayKeys)&&this._metaArrayKeys.every((function(e){return"string"==typeof e}))&&(null===this._thumbnailSizes||this._thumbnailSizes.every((function(e){return"object"===o(e)&&0<e.maxWidth&&0<e.maxHeight})))&&(null===this.pushNotificationDeliveryOption||-1<Object.keys(e.PushNotificationDeliveryOption).map((function(t){return e.PushNotificationDeliveryOption[t]})).indexOf(this.pushNotificationDeliveryOption))}},{key:"file",get:function(){return this._file},set:function(e){N.isFile(e)&&(this._fileUrl=null,this._file=e)}},{key:"fileUrl",get:function(){return this._fileUrl},set:function(e){"string"==typeof e&&(this._fileUrl=e,this._file=null)}},{key:"metaArrayKeys",get:function(){return this._metaArrayKeys},set:function(e){var t=[];if(Array.isArray(e))for(var n=0;n<e.length;n++)"string"==typeof e[n]&&t.indexOf(e[n])<0&&t.push(e[n]);this._metaArrayKeys=t}},{key:"thumbnailSizes",get:function(){return this._thumbnailSizes},set:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if("object"!==o(e[t])||"number"!=typeof e[t].maxWidth||"number"!=typeof e[t].maxHeight)return void(this._thumbnailSizes=[]);this._thumbnailSizes=e}}}]),t}(),We=function(){h(t,$e);var e=g(t);function t(n){var r;return l(this,t),(r=e.call(this)).year=null,r.month=null,r.day=null,r.hour=null,r.min=null,r.timezone=null,r._scheduledDateTimeString=null,n&&r._update(n),r}return s(t,[{key:"_update",value:function(e){e.hasOwnProperty("message")&&(this.message=e.message),e.hasOwnProperty("year")&&(this.year=e.year),e.hasOwnProperty("month")&&(this.month=e.month),e.hasOwnProperty("day")&&(this.day=e.day),e.hasOwnProperty("hour")&&(this.hour=e.hour),e.hasOwnProperty("min")&&(this.min=e.min),e.hasOwnProperty("timezone")&&(this.timezone=e.timezone)}},{key:"_getScheduleString",value:function(){return this.scheduledDateTimeString?this.scheduledDateTimeString+" "+this.timezone:"number"==typeof this.year&&4===this.year.toString().length&&"number"==typeof this.month&&1<=this.month&&this.month<=12&&"number"==typeof this.day&&1<=this.day&&this.day<=31&&"number"==typeof this.hour&&0<=this.hour&&this.hour<=24&&"number"==typeof this.min&&0<=this.min&&this.min<=60&&"string"==typeof this.timezone&&0<this.timezone.length?this.year.toString()+"-"+("0"+this.month.toString()).substr(-2)+"-"+("0"+this.day.toString()).substr(-2)+" "+("0"+this.hour.toString()).substr(-2)+":"+("0"+this.min.toString()).substr(-2)+" "+this.timezone:null}},{key:"setSchedule",value:function(e,t,n,r,i,a){"number"==typeof e&&4===e.toString().length&&"number"==typeof t&&1<=t&&t<=12&&"number"==typeof n&&1<=n&&n<=31&&"number"==typeof r&&0<=r&&r<=24&&"number"==typeof i&&0<=i&&i<=60&&"string"==typeof a&&0<a.length&&(this.scheduledDateTimeString=e.toString()+"-"+("0"+t.toString()).substr(-2)+"-"+("0"+n.toString()).substr(-2)+" "+("0"+r.toString()).substr(-2)+":"+("0"+i.toString()).substr(-2),this.timezone=a)}},{key:"scheduledDateTimeString",get:function(){return this._scheduledDateTimeString?this._scheduledDateTimeString:"number"==typeof this.year&&4===this.year.toString().length&&"number"==typeof this.month&&1<=this.month&&this.month<=12&&"number"==typeof this.day&&1<=this.day&&this.day<=31&&"number"==typeof this.hour&&0<=this.hour&&this.hour<=24&&"number"==typeof this.min&&0<=this.min&&this.min<=60&&"string"==typeof this.timezone&&0<this.timezone.length?this.year.toString()+"-"+("0"+this.month.toString()).substr(-2)+"-"+("0"+this.day.toString()).substr(-2)+" "+("0"+this.hour.toString()).substr(-2)+":"+("0"+this.min.toString()).substr(-2):null},set:function(e){e&&"string"==typeof e&&(this._scheduledDateTimeString=e)}}]),t}(),Xe=function(){function e(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];l(this,e),this.key=t,this.value=Array.isArray(n)&&n.every((function(e){return"string"==typeof e}))?n:[]}return s(e,[{key:"encode",value:function(){return{key:this.key,value:this.value||[]}}}]),e}
2(),Je=new WeakMap,Ze=function(){function a(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;l(this,a),this.key=e,this.userIds=t,this.updatedAt=n;var r={};for(var i in this.userIds)r[this.userIds[i]]=this.updatedAt;Je.set(this,r)}return s(a,[{key:"_applyEvent",value:function(e){if(e instanceof q){var t=Je.get(this);if(e.key===this.key&&t[e.userId]<e.updatedAt){var n=this.userIds.indexOf(e.userId);switch(e.operation){case"add":n<0&&this.userIds.push(e.userId);break;case"delete":0<=n&&this.userIds.splice(n,1)}t[e.userId]=e.updatedAt}}}},{key:"isEmpty",get:function(){return 0===this.userIds.length}}],[{key:"createFromJson",value:function(e){var t=e.key,n=e.user_ids,r=e.updated_at;return"string"==typeof t&&t&&Array.isArray(n)&&0<n.length&&"number"==typeof r?new this(t,n,r):null}}]),a}(),et=function(){function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];l(this,e),this.isLoading=!1,this.hasNext=!0,this.limit=20,this.userIds=t,this.metaDataKey="",this.metaDataValues=[],this._token=""}return s(e,[{key:"next",value:function(e){var s=this;return X(this._iid,(function(a){"number"==typeof s.limit&&0<s.limit&&Array.isArray(s.userIds)&&"string"==typeof s.metaDataKey&&Array.isArray(s.metaDataValues)&&!!s.metaDataKey==0<s.metaDataValues.length?s.isLoading?a(new k("Query in progress.",k.QUERY_IN_PROGRESS),null):s.hasNext?(s.isLoading=!0,B.get(s._iid).container.apiClient.loadUserList(c({},s,{userIdsFilter:s.userIds,metaDataKeyFilter:s.metaDataKey,metaDataValuesFilter:s.metaDataValues,token:s._token}),(function(e,t){var n=null;if(!e){var r=U.get(s._iid).User,i=String(t.next);s._token=i,s.hasNext=!!i,n=t.users.map((function(e){return new r(e)}))}s.isLoading=!1,a(e,n)}))):a(null,[]):a(V.error,null)}),e)}}]),e}(),tt=new WeakMap,nt=function(){function e(t){l(this,e),this.isLoading=!1,tt.set(this,t)}return s(e,[{key:"prev",value:function(e,s,t,n){var u=arguments,r=this;return X(this._iid,(function(n){var o,i=U.get(r._iid).BaseChannel,l=_(V.parse(u,[new V({type:"number"}),new V({type:"number"}),new V({type:"boolean"}),new V({type:"function"})]),5);if(o=l[0],e=l[1],s=l[2],t=l[3],n=l[4],o)n(o,null);else if(r.isLoading)n(new k("Query in progress.",k.QUERY_IN_PROGRESS),null);else{r.isLoading=!0;var a=tt.get(r);B.get(r._iid).container.apiClient.getMessageList({channel:a,token:e,tokenType:"timestamp",isInclusive:!1,prevResultSize:s,nextResultSize:0,shouldReverse:t,messageType:"",customType:""},(function(e,t){var o=null;e||(o=t.messages.map((function(e){return i.buildMessage(e,a)}))),r.isLoading=!1,n(e,o)}))}}),n)}},{key:"next",value:function(e,s,t,n){var u=arguments,r=this;return X(this._iid,(function(n){var o,i=U.get(r._iid).BaseChannel,l=_(V.parse(u,[new V({type:"number"}),new V({type:"number"}),new V({type:"boolean"}),new V({type:"function"})]),5);if(o=l[0],e=l[1],s=l[2],t=l[3],n=l[4],o)n(o,null);else if(r.isLoading)n(new k("Query in progress.",k.QUERY_IN_PROGRESS),null);else{r.isLoading=!0;var a=tt.get(r);B.get(r._iid).container.apiClient.getMessageList({channel:a,token:e,tokenType:"timestamp",isInclusive:!1,prevResultSize:0,nextResultSize:s,shouldReverse:t,messageType:"",customType:""},(function(e,t){var o=null;e||(o=t.messages.map((function(e){return i.buildMessage(e,a)}))),r.isLoading=!1,n(e,o)}))}}),n)}},{key:"load",value:function(e,s,t,u,n){var r=arguments,o=this;return X(this._iid,(function(n){var l,i=U.get(o._iid).BaseChannel,c=_(V.parse(r,[new V({type:"number"}),new V({type:"number"}),new V({type:"number"}),new V({type:"boolean"}),new V({type:"callback"})]),6);if(l=c[0],e=c[1],s=c[2],t=c[3],u=c[4],n=c[5],l)n(l,null);else if(o.isLoading)n(new k("Query in progress.",k.QUERY_IN_PROGRESS),null);else{o.isLoading=!0;var a=tt.get(o);B.get(o._iid).container.apiClient.getMessageList({channel:a,token:e,tokenType:"timestamp",isInclusive:!1,prevResultSize:s,nextResultSize:t,shouldReverse:u,messageType:"",customType:""},(function(e,t){var r=null;e||(r=t.messages.map((function(e){return i.buildMessage(e,a)}))),o.isLoading=!1,n(e,r)}))}}),n)}}]),e}(),it=null,st={},at=!1,ot=function(){function u(e){if(l(this,u),F()){var t=null;
2if(e.nodeJs&&"object"===o(e.nodeJs)&&(t=e.nodeJs.XMLHttpRequest),!t||"function"!=typeof t)return P.debug("XMLHttpRequest factory class should be provided in NodeJS environment."),null}else e.nodeJs=null;var n=!1;if((e.newInstance||!it||it&&e.appId!==it.getApplicationId()&&it.getConnectionState()===it.ConnectionState.CLOSED)&&(n=!0,it=this),n){try{if(!e.hasOwnProperty("appId"))return P.debug("Must be set appId"),null}catch(e){return P.debug("Must be set appId"),null}var r=de.create();Object.defineProperty(this,"_iid",{get:function(){return r}}),(st[r]=this).customApiHost=null,this.customWsHost=null,this.connecting=!1,this.reconnecting=!1,this.isReconnectingOnError=!1,this.connectionCallbacks=[],this.ConnectionManager=new j(this),this.GCMPushToken="",this.APNSPushToken="",this.PUSH_TEMPLATE_DEFAULT="default",this.PUSH_TEMPLATE_ALTERNATIVE="alternative",this.currentUser=null,this.isSessionOpened=!1,this.globalTimer,this.loginTimer,this.reconnectTimer,this.loginHandler=null,this.onLoginTimerCancel,this.onReconnectTimerCancel,this.BaseChannel={MessageTypeFilter:ee.MessageTypeFilter};var i={User:J,Member:ve,GroupChannel:ye,OpenChannel:xe,UserMessage:Ee,FileMessage:Ce,AdminMessage:Se,GroupChannelListQuery:Pe,GroupChannelParam
2s:Ke,BaseMessageParams:qe,UserMessageParams:$e,FileMessageParams:Ye,ScheduledUserMessageParams:We,GroupChannelTotalUnreadMessageCountParams:oe,MessageMetaArray:Xe,UserEventHandler:ce,ChannelHandler:ue,ConnectionHandler:le},a={BaseChannel:ee,BaseMessage:W,UserListQuery:et,ApplicationUserListQuery:Be,BannedUserListQuery:ke,BlockedUserListQuery:Ie,FriendListQuery:Me,MemberListQuery:De,MutedUserListQuery:Ue,OpenChannelListQuery:Oe,OperatorListQuery:Re,ParticipantListQuery:Le,MessageListQuery:nt,PreviousMessageListQuery:je,MessageSearchQuery:He,PublicGroupChannelListQuery:Ge,ScheduledUserMessage:Te,Command:$,Sender:_e,ReadStatus:he,Reaction:Ze,ReactionEvent:q,FileMessageQueue:ae},s=new U(this._iid,c({},i,{},a));for(var h in s)i[h]&&(this[h]=s[h]);B.create(r,{appId:e.appId,pinger:new O(this),apiClient:new z(this),wsAdapter:new Q(this),commandHandler:new re(this),onlineDetector:new G(this),ackStateMap:{},subscribedUnreadMessageCount:{all:0,custom_types:{},ts:0},maxUnreadCountOfSuperGroupChannel:C.DEFAULT_MAX_UNREAD_COUNT_OF_SUPER_GROUP_CHANNEL,auth:new b,pingInterval:15e3,pongTimeout:5e3,connectedAt:0,stateChangeEnabled:!0,isInBackground:!1,closedByGoingBackground:!1,nodeJs:e.nodeJs||null,isErrorFirstInCallback:!1}),this.userEventHandlers={},this.channelHandlers={},this.connectionHandlers={},this.Options={_useMemberAsMessageSender:!0,get UseMemberAsMessageSender(){return this._useMemberAsMessageSender},set UseMemberAsMessageSender(e){"boolean"==typeof e&&(this._useMemberAsMessageSender=e)},get useMemberAsMessageSender(){return this._useMemberAsMessageSender},set useMemberAsMessageSender(e){"boolean"==typeof e&&(this._useMemberAsMessageSender=e)},_typingIndicatorThrottle:1e3,get typingIndicatorThrottle(){return this._typingIndicatorThrottle},set typingIndicatorThrottle(e){"number"==typeof e&&1e3<=e&&e<=9e3&&(this._typingIndicatorThrottle=e)}}}return it}return s(u,[{key:"getApplicationId",value:function(){return B.get(this._iid).get("appId")}},{key:"getCurrentUserId",value:function(){return this.currentUser?this.currentUser.userId:null}},{key:"getDebugMode",value:function(){return at}},{key:"setDebugMode",value:function(e){at=e,P.mode=e?P.Mode.DEBUG:P.Mode.PRODUCTION}},{key:"getErrorFirstCallback",value:function(){return B.get(this._iid).container.isErrorFirstInCallback}},{key:"setErrorFirstCallback",value:function(e){"boolean"==typeof e&&B.get(this._iid).set("isErrorFirstInCallback",e)}},{key:"getCurrentApiHost",value:function(){return this.customApiHost?this.customApiHost:"https://api.sendbird.com"}},{key:"clearCurrentApiHost",value:function(){this.customApiHost=null}},{key:"getCurrentWsHost",value:function(){return this.customWsHost?this.customWsHost:"wss://ws.sendbird.com"}},{key:"clearCurrentWsHost",value:function(){this.customWsHost=null}},{key:"getConnectionState",value:function(){try{var e=B.get(this._iid).container.wsAdapter;return this.connecting||this.reconnecting?this.ConnectionState.CONNECTING:e.ws?this.connecting||this.reconnecting?this.ConnectionState.CONNECTING:this.isSessionOpened?e.ws.getConnectionState():this.ConnectionState.CLOSED:this.ConnectionState.CLOSED}catch(e){return this.ConnectionState.CLOSED}}},{key:"getPendingGCMToken",value:function(){return this.GCMPushToken}},{key:"getPendingAPNSToken",value:function(){return this.APNSPushToken}},{key:"hasLoggedIn",value:function(){var e=B.get(this._iid);return this.currentUser&&e.get("auth").hasSession()}},{key:"getLastConnectedAt",value:function(){var e=B.get(this._iid);return this.getConnectionState()===this.ConnectionState.OPEN&&this.currentUser?e.get("connectedAt"):0}},{key:"connect",value:function(e,t,n,i,r){var a=this,s=B.get(this._iid).container,o=s.wsAdapter,u=s.onlineDetector;u&&u.start();var l,c=_(V.parse(arguments,[new V({type:"string",constraint:function(e){return 0<e.length}}),new V({type:"string",nullable:!0,ignoreIf:function(e){return 1===e.length||3===e.length}}),new V({type:"string",nullable:!0,ignoreIf:function(e){return 1===e.length||2===e.length}}),new V({type:"string",nullable:!0,ignoreIf:function(e){return 1===e.length||2===e.length}}),new V({type:"callback"})]),6);return l=c[0],e=c[1],t=c[2],n=c[3],i=c[4],r=c[5],X(this._iid,(function(r){l?r(l,null):(a.customApiHost=n,a.customWsHost=i,a.connecting=!0,a.reconnecting=!1,a.isReconnectingOnError=!1,a.reconnectTimer&&(clearTimeout(a.reconnectTimer),a.reconnectTimer=null,a.onReconnectTimerCancel=null),a.getConnectionState()===a.ConnectionState.OPEN&&a.currentUser&&a.currentUser.userId===e?(a.connecting=!1,r(null,a.currentUser)):(a.connectionCallbacks.push(r),1===a.connectionCallbacks.length&&(o.disconnect({clearSession:!0,err:null},null),o.connect(e,t))))}),r)}},{key:"reconnect",value:function(){var e=B.get(this._iid).container,t=e.wsAdapter;if(e.auth.sessionKey&&this.currentUser){var n=!0;return 0<t.reconnectCount&&(n=!1),t.disconnect({clearSession:!1,err:new k("Connection has been canceled.",k.CONNECTION_CANCELED)},null),t.reconnectCount=0,t.reconnect(this.currentUser.userId,n),!0}return!1}},{key:"disconnect",value:function(e){var i=this;return X(this._iid,(function(e){var t=B.get(i._iid).container,n=t.wsAdapter,r=t.onlineDetector;r&&r.stop(),n.disconnect({clearSession:!0,err:new k("Connection has been canceled.",k.CONNECTION_CANCELED)},e)}),e)}}
vendor: 13,411 bytes, line 2
2,{key:"setBackgroundState",value:function(){var e=B.get(this._iid),t=e.container,n=t.wsAdapter,r=t.stateChangeEnabled;!t.isInBackground&&r&&(e.set("isInBackground",!0),this.getConnectionState()!==this.ConnectionState.CLOSED?(e.set("closedByGoingBackground",!0),n.disconnect({clearSession:!1,err:new k("Websocket connection failed.",k.WEBSOCKET_CONNECTION_FAILED)},null)):e.set("closedByGoingBackground",!1))}},{key:"setForegroundState",value:function(){var e=B.get(this._iid),t=e.container,n=t.wsAdapter,r=t.stateChangeEnabled,i=t.isInBackground,a=t.closedByGoingBackground;i&&r&&(e.set("isInBackground",!1),a&&this.currentUser&&n.reconnect(this.currentUser.userId,!0))}},{key:"enableStateChange",value:function(){B.get(this._iid).set("enableStateChange",!0)}},{key:"disableStateChange",value:function(){B.get(this._iid).set("enableStateChange",!1)}},{key:"createUserListQuery",value:function(e){return new(U.get(this._iid).UserListQuery)(e)}},{key:"createApplicationUserListQuery",value:function(){return new(U.get(this._iid).ApplicationUserListQuery)}},{key:"createBlockedUserListQuery",value:function(){return new(U.get(this._iid).BlockedUserListQuery)}},{key:"createFriendListQuery",value:function(){return new(U.get(this._iid).FriendListQuery)}},{key:"createMessageSearchQuery",value:function(e,t){return new(U.get(this._iid).MessageSearchQuery)(e,t)}},{key:"sendCommand",value:function(u,e){var t=this;return X(this._iid,(function(e){t.ConnectionManager.ready((function(n,r){if(n)e(n,null);else{var o=B.get(t._iid).container,l=o.wsAdapter,i=o.ackStateMap;if(null==l||null==l.ws||l.ws.getConnectionState()!==t.ConnectionState.OPEN||t.getConnectionState()!==t.ConnectionState.OPEN)return void e(new k("Connection is not valid. Please reconnect.",k.WEBSOCKET_CONNECTION_CLOSED),null);if(u.isAckRequired){var a=u.requestId,s={handler:e,timer:setTimeout((function(){e(new k("Command received no ack.",k.ACK_TIMEOUT),null),delete i[a]}),C.COMMAND_ACK_TIMEOUT)};i[a]=s,l.ws.send(u,(function(t){t&&(clearTimeout(s.timer),e(t,null))}))}else l.ws.send(u,e)}}),!1)}),e)}},{key:"addUserEventHandler",value:function(e,t){t instanceof U.get(this._iid).UserEventHandler&&(this.userEventHandlers[e]=t)}},{key:"removeUserEventHandler",value:function(e){delete this.userEventHandlers[e]}},{key:"removeAllUserEventHandler",value:function(){this.userEventHandlers={}}},{key:"addChannelHandler",value:function(e,t){t instanceof U.get(this._iid).ChannelHandler&&(this.channelHandlers[e]=t)}},{key:"removeChannelHandler",value:function(e){delete this.channelHandlers[e]}},{key:"removeAllChannelHandlers",value:function(){this.channelHandlers={}}},{key:"addConnectionHandler",value:function(e,t){t instanceof U.get(this._iid).ConnectionHandler&&(this.connectionHandlers[e]=t)}},{key:"removeConnectionHandler",value:function(e){delete this.connectionHandlers[e]}},{key:"removeAllConnectionHandlers",value:function(){this.connectionHandlers={}}},{key:"updateCurrentUserInfo",value:function(i,a,e){var t,s=this,n=_(V.parse(arguments,[new V({type:"string",nullable:!0}),new V({type:"string",nullable:!0}),new V({type:"callback"})]),4);return t=n[0],i=n[1],a=n[2],e=n[3],X(this._iid,(function(e){t?e(t,null):B.get(s._iid).container.apiClient.updateCurrentUserInfo({nickname:i,profileUrl:a},(function(t,n){var r=null;t||(s.currentUser&&(i&&(s.currentUser.nickname=i),a&&(s.currentUser.profileUrl=a)),r=s.currentUser),e(t,r)}))}),e)}},{key:"updateCurrentUserInfoWithProfileImage",value:function(i,e,t){var n,a=this,r=_(V.parse(arguments,[new V({type:"string",nullable:!0}),new V({type:"file",nullable:!0}),new V({type:"callback"})]),4);return n=r[0],i=r[1],e=r[2],t=r[3],X(this._iid,(function(t){n?t(n,null):B.get(a._iid).container.apiClient.updateCurrentUserInfo({nickname:i,profileImage:e},(function(e,n){var r=null;e||(a.currentUser&&(i&&(a.currentUser.nickname=i),n.profile_url&&(a.currentUser.profileUrl=n.profile_url)),r=a.currentUser),t(e,r)}))}),t)}},{key:"updateCurrentUserInfoWithPreferredLanguages",value:function(i,e){var t,a=this,n=_(V.parse(arguments,[new V({type:"array",constraint:function(e){return e.every((function(e){return"string"==typeof e}))}}),new V({type:"callback"})]),3);return t=n[0],i=n[1],e=n[2],X(this._iid,(function(e){t?e(t,null):B.get(a._iid).container.apiClient.updateCurrentUserInfo({preferredLanguages:i},(function(t,n){var r=null;t||(a.currentUser&&i&&(a.currentUser._preferredLanguages=i),r=a.currentUser),e(t,r)}))}),e)}},{key:"registerGCMPushTokenForCurrentUser",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string",constraint:function(e){return 0<e.length}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,i.pushTokenRegistrationState.ERROR):i.currentUser?B.get(i._iid).container.apiClient.registerGCMPushToken({token:e},(function(e,n){var r=i.pushTokenRegistrationState.ERROR;e||(i.GCMPushToken="",r=i.pushTokenRegistrationState.SUCCESS),t(e,r)})):(i.GCMPushToken=e,t(null,i.pushTokenRegistrationState.PENDING))}),t)}},{key:"unregisterGCMPushTokenForCurrentUser",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string",constraint:function(e){return 0<e.length}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):i.currentUser?B.get(i._iid).container.apiClient.unregisterGCMPushToken({token:e},(function(e,n){t(e,null)})):(i.GCMPushToken=e,t(null,i.pushTokenRegistrationState.PENDING))}),t)}},{key:"unregisterGCMPushTokenAllForCurrentUser",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.unregisterAllGCMPushTokens({},(function(t,n){e(t,null)}))}),e)}},{key:"registerAPNSPushTokenForCurrentUser",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string",constraint:function(e){return 0<e.length}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,i.pushTokenRegistrationState.ERROR):i.currentUser?B.get(i._iid).container.apiClient.registerAPNSPushToken({token:e},(function(e,n){var r=i.pushTokenRegistrationState.ERROR;e||(i.APNSPushToken="",r=i.pushTokenRegistrationState.SUCCESS),t(e,r)})):(i.APNSPushToken=e,t(null,i.pushTokenRegistrationState.PENDING))}),t)}},{key:"unregisterAPNSPushTokenForCurrentUser",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string",constraint:function(e){return 0<e.length}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):i.currentUser?B.get(i._iid).container.apiClient.unregisterAPNSPushToken({token:e},(function(e,n){t(e,null)})):(i.APNSPushToken=e,t(null,i.pushTokenRegistrationState.PENDING))}),t)}},{key:"unregisterAPNSPushTokenAllForCurrentUser",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.unregisterAllAPNSPushTokens({},(function(t,n){e(t,null)}))}),e)}},{key:"unregisterPushTokenAllForCurrentUser",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.unregisterAllPushTokens({},(function(t,n){e(t,null)}))}),e)}},{key:"getMyGroupChannelChangeLogsByToken",value:function(e,t,n,r){var i,u=this,a=_(V.parse(arguments,[new V({type:"string",nullable:!0}),new V({type:"array",optional:!0,nullable:!0,defaultValue:null}),new V({type:"boolean",nullable:!0,optional:!0,defaultValue:null}),new V({type:"callback"})]),5);return i=a[0],e=a[1],t=a[2],n=a[3],r=a[4],X(this._iid,(function(r){i?r(i,null):B.get(u._iid).container.apiClient.getMyGroupChannelChangeLogs({ts:null,token:e,customTypes:t,includeEmpty:n},(function(e,t){if(e)r(e,null);else{var n=U.get(u._iid).GroupChannel,o=t.updated.map((function(e){return new n(e)})),i=t.deleted,a=t.has_more,s=t.next;r(null,{updatedChannels:o,deletedChannelUrls:i,hasMore:a,token:s})}}))}),r)}},{key:"getMyGroupChannelChangeLogsByTimestamp",value:function(e,t,n,r){var i,u=this,a=_(V.parse(arguments,[new V({type:"number",constraint:function(e){return 0<=e}}),new V({type:"array",optional:!0,nullable:!0,defaultValue:null}),new V({type:"boolean",nullable:!0,optional:!0,defaultValue:null}),new V({type:"callback"})]),5);return i=a[0],e=a[1],t=a[2],n=a[3],r=a[4],X(this._iid,(function(r){i?r(i,null):B.get(u._iid).container.apiClient.getMyGroupChannelChangeLogs({ts:e,token:null,customTypes:t,includeEmpty:n},(function(e,t){if(e)r(e,null);else{var n=U.get(u._iid).GroupChannel,o=t.updated.map((function(e){return new n(e)})),i=t.deleted,a=t.has_more,s=t.next;r(null,{updatedChannels:o,deletedChannelUrls:i,hasMore:a,token:s})}}))}),r)}},{key:"getChannelInvitationPreference",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.getChannelInvitationPreference({},(function(t,n){var r=null;t||(r={autoAccept:n.auto_accept}),e(t,r)}))}),e)}},{key:"setChannelInvitationPreference",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"boolean"}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.setChannelInvitationPreference({isAutoAccept:e},(function(e,n){var r=null;e||(r={autoAccept:n.auto_accept}),t(e,r)}))}),t)}},{key:"getDoNotDisturb",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.getDoNotDisturb({},(function(t,n){var r=null;t||(r={doNotDisturbOn:n.do_not_disturb,startHour:n.start_hour,startMin:n.start_min,endHour:n.end_hour,endMin:n.end_min,timezone:n.timezone}),e(t,r)}))}),e)}},{key:"setDoNotDisturb",value:function(e,t,n,i,a,s,r){var o,u=this,l=_(V.parse(arguments,[new V({type:"boolean"}),new V({type:"number",constraint:function(e){return 0<=e&&e<=23}}),new V({type:"number",constraint:function(e){return 0<=e&&e<=59}}),new V({type:"number",constraint:function(e){return 0<=e&&e<=23}}),new V({type:"number",constraint:function(e){return 0<=e&&e<=59}}),new V({type:"string"}),new V({type:"callback"})]),8);return o=l[0],e=l[1],t=l[2],n=l[3],i=l[4],a=l[5],s=l[6],r=l[7],X(this._iid,(function(r){o?r(o,null):B.get(u._iid).container.apiClient.setDoNotDisturb({doNotDisturbOn:e,startHour:t,startMin:n,endHour:i,endMin:a,timezone:s},(function(e,t){var n=null;e||(n={doNotDisturbOn:t.do_not_disturb,startHour:t.start_hour,startMin:t.start_min,endHour:t.end_hour,endMin:t.end_min,timezone:t.timezone}),r(e,n)}))}),r)}},{key:"getSnoozePeriod",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.getSnoozePeriod({},(function(t,n){var r=null;t||(r={isSnoozeOn:n.snooze_enabled,startTs:n.snooze_start_ts,endTs:n.snooze_end_ts}),e(t,r)}))}),e)}},{key:"setSnoozePeriod",value:function(e,t,n,r){var i,a=this,s=_(V.parse(arguments,[new V({type:"boolean"}),new V({type:"number",constraint:function(e){return 0<e}}),new V({type:"number",constraint:function(e){return 0<e}}),new V({type:"callback"})]),5);return i=s[0],e=s[1],t=s[2],n=s[3],r=s[4],X(this._iid,(function(r){i?r(i,null):B.get(a._iid).container.apiClient.setSnoozePeriod({snoozeOn:e,startTs:t,endTs:n},(function(e,t){var n=null;e||(n={isSnoozeOn:t.snooze_enabled,startTs:t.snooze_start_ts,endTs:t.snooze_end_ts}),r(e,n)}))}),r)}},{key:"blockUser",value:function(e,t){var n,r=_(V.parse(arguments,[new V({type:"object",constraint:function(e){return e&&e.hasOwnProperty("userId")}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],n?X(this._iid,(function(e){e(n,null)}),t):this.blockUserWithUserId(e.userId,t)}},{key:"blockUserWithUserId",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string",constraint:function(e){return e&&(!i.currentUser||e!==i.currentUser.userId)}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.blockUser({blockedUserId:e},(function(e,n){var r=null;e||(r=new J(n)),t(e,r)}))}),t)}},{key:"unblockUser",value:function(e,t){var n,r=_(V.parse(arguments,[new V({type:"object",constraint:function(e){return e&&e.hasOwnProperty("userId")}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],n?X(this._iid,(function(e){e(n,null)}),t):this.unblockUserWithUserId(e.userId,t)}},{key:"unblockUserWithUserId",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"string",constraint:function(e){return e&&(!i.currentUser||e!==i.currentUser.userId)}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.unblockUser({unblockedUserId:e},(function(e,n){t(e,null)}))}),t)}},{key:"getPushTriggerOption",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.getPushTriggerOption({},(function(t,n){e(t,n?n.push_trigger_option:null)}))}),e)}},{key:"setPushTriggerOption",value:function(e,t){var n=this;return X(this._iid,(function(t){-1<Object.keys(n.PushTriggerOption).map((function(e){return n.PushTriggerOption[e]})).indexOf(e)?B.get(n._iid).container.apiClient.setPushTriggerOption({pushTriggerOption:e},(function(e,n){t(e,n?n.push_trigger_option:null)})):t(V.error,null)}),t)}},{key:"getGroupChannelCount",value:function(e,t){var n,i=this,r=U.get(this._iid).GroupChannel,a=_(V.parse(arguments,[new V({type:r.MemberStateFilter,optional:!0,defaultValue:r.MemberStateFilter.ALL}),new V({type:"callback"})]),3);return n=a[0],e=a[1],t=a[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.getGroupChannelCount({memberStateFilter:e},(function(e,n){var r=null;
2e||(r=parseInt(n.group_channel_count)),t(e,r)}))}),t)}},{key:"getTotalUnreadChannelCount",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.getTotalUnreadChannelCount({},(function(t,n){var r=null;t||(r=parseInt(n.unread_count)),e(t,r)}))}),e)}},{key:"getTotalUnreadMessageCount",value:function(e,t){var i,a=this,n=U.get(this._iid),s=n.GroupChannel,r=n.GroupChannelTotalUnreadMessageCountParams,o=_(V.parse(arguments,[new V({type:"object",optional:!0,defaultValue:null,constraint:function(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))||e instanceof r}}),new V({type:"callback"})]),3);return i=o[0],e=o[1],t=o[2],X(this._iid,(function(t){if(i)t(i,null);else{var n=s.SuperChannelFilter.ALL;if(e instanceof r){var o=e;e=o.channelCustomTypesFilter,n=o.superChannelFilter}B.get(a._iid).container.apiClient.getTotalUnreadMessageCount({customTypesFilter:e,superChannelFilter:n},(function(e,n){var r=null;e||(r=parseInt(n.unread_count)),t(e,r)}))}}),t)}},{key:"getUnreadItemCount",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"array",constraint:function(e){return 0<e.length&&e.every((function(e){return-1<Object.keys(ye.UnreadItemKey).map((function(e){return ye.UnreadItemKey[e]})).indexOf(e)}))}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){if(n)t(n,null);else{var r=e.filter((function(t,n){return e.indexOf(t)===n}));B.get(i._iid).container.apiClient.getUnreadItemCount({keys:r},(function(e,n){t(e,n)}))}}),t)}},{key:"getSubscribedTotalUnreadMessageCount",value:function(){var e=B.get(this._iid).container.subscribedUnreadMessageCount;return 0<=e.all?e.all:0}}
2,{key:"getSubscribedCustomTypeTotalUnreadMessageCount",value:function(){var e=B.get(this._iid).container.subscribedUnreadMessageCount;if(0<Object.keys(e.custom_types).length){var t=0;for(var n in e.custom_types)t+=e.custom_types[n];return t}return 0}},{key:"getSubscribedCustomTypeUnreadMessageCount",value:function(e){if(e&&"string"==typeof e){var t=B.get(this._iid).container.subscribedUnreadMessageCount;return t.custom_types.hasOwnProperty(e)?t.custom_types[e]:0}return 0}},{key:"getMyPushTokensByToken",value:function(e,t,n){var i,a=this,r=_(V.parse(arguments,[new V({type:"string"}),new V({type:"string",constraint:function(e){return-1<["gcm","apns","apns_voip"].indexOf(e)}}),new V({type:"callback"})]),4);return i=r[0],e=r[1],t=r[2],n=r[3],X(this._iid,(function(n){i?n(i,null):B.get(a._iid).container.apiClient.getPushTokens({ts:null,token:e,type:t},(function(e,t){if(e)n(e,null);else{var r=t.type;n(null,{deviceTokens:t.device_tokens,type:r?r.toLowerCase():"unknown",hasMore:t.has_more,token:t.token})}}))}),n)}},{key:"getPushTemplate",value:function(e){var t=this;return X(this._iid,(function(e){B.get(t._iid).container.apiClient.getPushTemplate({},(function(t,n){var r=null;t||(r=n.name.toString()),e(t,r)}))}),e)}},{key:"setPushTemplate",value:function(e,t){var n=this;return X(this._iid,(function(t){-1<[n.PUSH_TEMPLATE_DEFAULT,n.PUSH_TEMPLATE_ALTERNATIVE].indexOf(e)?B.get(n._iid).container.apiClient.setPushTemplate({templateName:e},(function(e,n){var r=null;e||(r=n.name.toString()),t(e,r)})):t(V.error,null)}),t)}},{key:"markAsReadAll",value:function(e){var s=this;return X(this._iid,(function(e){var i=U.get(s._iid).GroupChannel,a=(new Date).getTime();a-i.markAsReadAllLastSentAt<1e3?e(new k("MarkAsRead rate limit exceeded.",k.MARK_AS_READ_RATE_LIMIT_EXCEEDED),null):(i.markAsReadAllLastSentAt=a,B.get(s._iid).container.apiClient.markAsReadAll({channelUrls:null},(function(t,n){if(!t)for(var r in i.cachedChannels)s.currentUser&&i.cachedChannels[r].updateReadReceipt(s.currentUser.userId,a),i.cachedChannels[r]._setGroupChannelUnreadCount(0,0);e(t,null)})))}),e)}},{key:"markAsReadWithChannelUrls",value:function(s,e){var t,n=this,r=_(V.parse(arguments,[new V({type:"array",constraint:function(e){return e.every((function(e){return"string"==typeof e}))}}),new V({type:"callback"})]),3);return t=r[0],s=r[1],e=r[2],X(this._iid,(function(i){if(t)i(t,null);else{var a=(new Date).getTime();B.get(n._iid).container.apiClient.markAsReadAll({channelUrls:s},(function(e,t){if(!e)for(var r in s){var o=s[r];ye.cachedChannels[o]&&(n.currentUser&&ye.cachedChannels[o].updateReadReceipt(n.currentUser.userId,a),ye.cachedChannels[o]._setGroupChannelUnreadCount(0,0))}i(e,null)}))}}),e)}},{key:"markAsDelivered",value:function(e){"string"==typeof e&&U.get(this._iid).GroupChannel.getChannel(e,(function(e,t){e||t.markAsDelivered()}))}},{key:"getFriendChangeLogsByToken",value:function(e,t){var n,a=this,r=_(V.parse(arguments,[new V({type:"string",optional:!0,defaultValue:null}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(i){n?i(n,null):B.get(a._iid).container.apiClient.getFriendChangeLogsByToken({token:e},(function(e,t){var n=null;if(!e){var r=U.get(a._iid).User;n={updatedUsers:t.updated.map((function(e){return new r(e)})),deletedUserIds:t.deleted,hasMore:t.has_more,token:t.next}}i(e,n)}))}),t)}},{key:"uploadFriendDiscoveries",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"array",constraint:function(e){return e.every((function(e){return e.hasOwnProperty("friendDiscoveryKey")}))}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.uploadFriendDiscoveries({discoveries:e},(function(e,n){t(e,n)}))}),t)}},{key:"deleteFriendDiscovery",value:function(e,t){var n,r=_(V.parse(arguments,[new V({type:"string"}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],n?X(this._iid,(function(e){e(n,null)}),t):this.deleteFriendDiscoveries([e],t)}},{key:"deleteFriendDiscoveries",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"array",constraint:function(e){return e.every((function(e){return"string"==typeof e}))}}),new V({type:"callback"})]),3);
2return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.deleteFriendDiscoveries({discoveryKeys:e},(function(e,n){t(e,n)}))}),t)}},{key:"addFriends",value:function(e,t){var n,a=this,r=_(V.parse(arguments,[new V({type:"array",constraint:function(e){return e.every((function(e){return"string"==typeof e}))}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(i){n?i(n,null):B.get(a._iid).container.apiClient.addFriends({userIds:e},(function(e,t){var n=null;if(!e){var r=U.get(a._iid).User;n=t.users.map((function(e){return new r(e)}))}i(e,n)}))}),t)}},{key:"deleteFriend",value:function(e,t){var n,r=_(V.parse(arguments,[new V({type:"string"}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],n?X(this._iid,(function(e){e(n,null)}),t):this.deleteFriends([e],t)}},{key:"deleteFriends",value:function(e,t){var n,i=this,r=_(V.parse(arguments,[new V({type:"array",constraint:function(e){return e.every((function(e){return"string"==typeof e}))}}),new V({type:"callback"})]),3);return n=r[0],e=r[1],t=r[2],X(this._iid,(function(t){n?t(n,null):B.get(i._iid).container.apiClient.deleteFriends({userIds:e},(function(e,n){t(e,n)}))}),t)}},{key:"ConnectionState",get:function(){return{CONNECTING:"CONNECTING",OPEN:"OPEN",CLOSED:"CLOSED"}}},{key:"MessageRequestState",get:function(){return{NONE:"none",PENDING:"pending",FAILED:"failed",SUCCEEDED:"succeeded"}}},{key:"MessageSendingStatus",get:function(){return{NONE:"none",PENDING:"pending",FAILED:"failed",CANCELED:"canceled",SUCCEEDED:"succeeded"}}},{key:"pushTokenRegistrationState",get:function(){return{SUCCESS:"success",PENDING:"pending",ERROR:"error"}}},{key:"PushTriggerOption",get:function(){return{ALL:"all",MENTION_ONLY:"mention_only",OFF:"off"}}}],[{key:"getInstance",value:function(e){return e?st[e]:it}},{key:"version",get:function(){return C.SDK_VERSION}}]),u}();return ot}(n(2944),n(2945))}).call(this,n(45),n(2261).Buffer)},2941:function(e,t,n){"use strict";t.byteLength=function(e){var t=h(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,i,n=h(e),r=n[0],c=n[1],d=new l(function(e,t,n){return 3*(t+n)/4-n}(0,r,c)),f=0,m=c>0?r-4:r;for(i=0;i<m;i+=4)t=o[e.charCodeAt(i)]<<18|o[e.charCodeAt(i+1)]<<12|o[e.charCodeAt(i+2)]<<6|o[e.charCodeAt(i+3)],d[f++]=t>>16&255,d[f++]=t>>8&255,d[f++]=255&t;2===c&&(t=o[e.charCodeAt(i)]<<2|o[e.charCodeAt(i+1)]>>4,d[f++]=255&t);1===c&&(t=o[e.charCodeAt(i)]<<10|o[e.charCodeAt(i+1)]<<4|o[e.charCodeAt(i+2)]>>2,d[f++]=t>>8&255,d[f++]=255&t);return d},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,l=[],i=0,c=n-o;i<c;i+=16383)l.push(d(e,i,i+16383>c?c:i+16383));1===o?(t=e[n-1],l.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],l.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return l.join("")};for(var r=[],o=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,c=code.length;i<c;++i)r[i]=code[i],o[code.charCodeAt(i)]=i;function h(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function d(e,t,n){for(var o,l,output=[],i=t;i<n;i+=3)o=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),output.push(r[(l=o)>>18&63]+r[l>>12&63]+r[l>>6&63]+r[63&l]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},2942:function(e,t){t.read=function(e,t,n,r,o){var l,c,h=8*o-r-1,d=(1<<h)-1,f=d>>1,m=-7,i=n?o-1:0,A=n?-1:1,s=e[t+i];for(i+=A,l=s&(1<<-m)-1,s>>=-m,m+=h;m>0;l=256*l+e[t+i],i+=A,m-=8);for(c=l&(1<<-m)-1,l>>=-m,m+=r;m>0;c=256*c+e[t+i],i+=A,m-=8);if(0===l)l=1-f;else{if(l===d)return c?NaN:1/0*(s?-1:1);c+=Math.pow(2,r),l-=f}return(s?-1:1)*c*Math.pow(2,l-r)},t.write=function(e,t,n,r,o,l){var c,h,d,f=8*l-o-1,m=(1<<f)-1,A=m>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=r?0:l-1,y=r?1:-1,s=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(h=isNaN(t)?1:0,c=m):(c=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-c))<1&&(c--,d*=2),(t+=c+A>=1?rt/d:rt*Math.pow(2,1-A))*d>=2&&(c++,d/=2),c+A>=m?(h=0,c=m):c+A>=1?(h=(t*d-1)*Math.pow(2,o),c+=A):(h=t*Math.pow(2,A-1)*Math.pow(2,o),c=0));o>=8;e[n+i]=255&h,i+=y,h/=256,o-=8);for(c=c<<o|h,f+=o;f>0;e[n+i]=255&c,i+=y,c/=256,f-=8);e[n+i-y]|=128*s}},2943:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},2944:function(e,t){e.exports="object"==typeof self?self.FormData:window.FormData},2945:function(e,t,n){"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},2948:function(e,t,n){var r=n(2949),o=n(2954),l=n(3029),c=n(3037),h=n(3046),d=n(3047),f=l((function(e){var t=d(e);return h(t)&&(t=void 0),c(r(e,1,h,!0),o(t,2))}));e.exports=f},2949:function(e,t,n){var r=n(2262),o=n(2950);e.exports=function e(t,n,l,c,h){var d=-1,f=t.length;for(l||(l=o),h||(h=[]);++d<f;){var m=t[d];n>0&&l(m)?n>1?e(m,n-1,l,c,h):r(h,m):c||(h[h.length]=m)}return h}},2950:function(e,t,n){var r=n(131),o=n(1633),l=n(83),c=r?r.isConcatSpreadable:void 0;e.exports=function(e){return l(e)||o(e)||!!(c&&e&&e[c])}},2951:function(e,t,n){var r=n(132),o=n(115);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},2952:function(e,t,n){n(13);var r=n(131),o=Object.prototype,l=o.hasOwnProperty,c=o.toString,h=r?r.toStringTag:void 0;e.exports=function(e){var t=l.call(e,h),n=e[h];try{e[h]=void 0;var r=!0}catch(e){}var o=c.call(e);return r&&(t?e[h]=n:delete e[h]),o}},2953:function(e,t,n){n(13);var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},2954:function(e,t,n){var r=n(2955),o=n(3015),l=n(1641),c=n(83),h=n(3026);e.exports=function(e){return"function"==typeof e?e:null==e?l:"object"==typeof e?c(e)?o(e[0],e[1]):r(e):h(e)}},2955:function(e,t,n){var r=n(2956),o=n(3014),l=n(2282);e.exports=function(source){var e=o(source);return 1==e.length&&e[0][2]?l(e[0][0],e[0][1]):function(object){return object===source||r(object,source,e)}}},2956:function(e,t,n){var r=n(2264),o=n(2268);e.exports=function(object,source,e,t){var n=e.length,l=n,c=!t;if(null==object)return!l;for(object=Object(object);n--;){var data=e[n];if(c&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++n<l;){var h=(data=e[n])[0],d=object[h],f=data[1];if(c&&data[2]){if(void 0===d&&!(h in object))return!1}else{var m=new r;if(t)var A=t(d,f,h,object,source,m);if(!(void 0===A?o(f,d,3,t,m):A))return!1}}return!0}},2957:function(e,t){e.exports=function(){this.__data__=[],this.size=0}},2958:function(e,t,n){n(22);var r=n(170),o=Array.prototype.splice;e.exports=function(e){var data=this.__data__,t=r(data,e);return!(t<0)&&(t==data.length-1?data.pop():o.call(data,t,1),--this.size,!0)}},2959:function(e,t,n){var r=n(170);e.exports=function(e){var data=this.__data__,t=r(data,e);return t<0?void 0:data[t][1]}},2960:function(e,t,n){var r=n(170);e.exports=function(e){return r(this.__data__,e)>-1}},2961:function(e,t,n){var r=n(170);e.exports=function(e,t){var data=this.__data__,n=r(data,e);return n<0?(++this.size,data.push([e,t])):data[n][1]=t,this}},2962:function(e,t,n){var r=n(169);e.exports=function(){this.__data__=new r,this.size=0}},2963:function(e,t){e.exports=function(e){var data=this.__data__,t=data.delete(e);return this.size=data.size,t}},2964:function(e,t){e.exports=function(e){return this.__data__.get(e)}},2965:function(e,t){e.exports=function(e){return this.__data__.has(e)}},2966:function(e,t,n){var r=n(169),o=n(1634),l=n(1636);e.exports=function(e,t){var data=this.__data__;if(data instanceof r){var n=data.__data__;if(!o||n.length<199)return n.push([e,t]),this.size=++data.size,this;data=this.__data__=new l(n)}return data.set(e,t),this.size=data.size,this}},2967:function(e,t,n){n(59),n(13),n(12);var r=n(2266),o=n(2968),l=n(1635),c=n(2267),h=/^\[object .+?Constructor\]$/,d=Function.prototype,f=Object.prototype,m=d.toString,A=f.hasOwnProperty,y=RegExp("^"+m.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!l(e)||o(e))&&(r(e)?y:h).test(c(e))}},2968:function(e,t,n){n(5),n(6);var r,o=n(2969),l=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+r:"";e.exports=function(e){return!!l&&l in e}},2969:function(e,t,n){var r=n(82)["__core-js_shared__"];e.exports=r},2970:function(e,t){e.exports=function(object,e){return null==object?void 0:object[e]}},2971:function(e,t,n){var r=n(2972),o=n(169),l=n(1634);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(l||o),string:new r}}},2972:function(e,t,n){var r=n(2973),o=n(2974),l=n(2975),c=n(2976),h=n(2977);function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=r,d.prototype.delete=o,d.prototype.get=l,d.prototype.has=c,d.prototype.set=h,e.exports=d},2973:function(e,t,n){var r=n(171);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2974:function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},2975:function(e,t,n){var r=n(171),o=Object.prototype.hasOwnProperty;e.exports=function(e){var data=this.__data__;if(r){var t=data[e];return"__lodash_hash_undefined__"===t?void 0:t}return o.call(data,e)?data[e]:void 0}},2976:function(e,t,n){var r=n(171),o=Object.prototype.hasOwnProperty;e.exports=function(e){var data=this.__data__;return r?void 0!==data[e]:o.call(data,e)}},2977:function(e,t,n){var r=n(171);e.exports=function(e,t){var data=this.__data__;return this.size+=this.has(e)?0:1,data[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},2978:function(e,t,n){var r=n(172);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},2979:function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},2980:function(e,t,n){var r=n(172);e.exports=function(e){return r(this,e).get(e)}},2981:function(e,t,n){var r=n(172);e.exports=function(e){return r(this,e).has(e)}},2982:function(e,t,n){var r=n(172);e.exports=function(e,t){var data=r(this,e),n=data.size;return data.set(e,t),this.size+=data.size==n?0:1,this}},2983:function(e,t,n){var r=n(2264),o=n(2269),l=n(2987),c=n(2990),h=n(3006),d=n(83),f=n(2273),m=n(2275),A="[object Object]",y=Object.prototype.hasOwnProperty;e.exports=function(object,e,t,n,v,_){var w=d(object),x=d(e),E=w?"[object Array]":h(object),C=x?"[object Array]":h(e),S=(E="[object Arguments]"==E?A:E)==A,T=(C="[object Arguments]"==C?A:C)==A,B=E==C;if(B&&f(object)){if(!f(e))return!1;w=!0,S=!1}if(B&&!S)return _||(_=new r),w||m(object)?o(object,e,t,n,v,_):l(object,e,E,t,n,v,_);if(!(1&t)){var k=S&&y.call(object,"__wrapped__"),I=T&&y.call(e,"__wrapped__");
vendor: 4,462 bytes, line 2
2if(k||I){var M=k?object.value():object,P=I?e.value():e;return _||(_=new r),v(M,P,t,n,_)}}return!!B&&(_||(_=new r),c(object,e,t,n,v,_))}},2984:function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2985:function(e,t){e.exports=function(e){return this.__data__.has(e)}},2986:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},2987:function(e,t,n){var r=n(131),o=n(2988),l=n(2265),c=n(2269),h=n(2989),d=n(1637),f=r?r.prototype:void 0,m=f?f.valueOf:void 0;e.exports=function(object,e,t,n,r,f,A){switch(t){case"[object DataView]":if(object.byteLength!=e.byteLength||object.byteOffset!=e.byteOffset)return!1;object=object.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(object.byteLength!=e.byteLength||!f(new o(object),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return l(+object,+e);case"[object Error]":return object.name==e.name&&object.message==e.message;case"[object RegExp]":case"[object String]":return object==e+"";case"[object Map]":var y=h;case"[object Set]":var v=1&n;if(y||(y=d),object.size!=e.size&&!v)return!1;var _=A.get(object);if(_)return _==e;n|=2,A.set(object,e);var w=c(y(object),y(e),n,r,f,A);return A.delete(object),w;case"[object Symbol]":if(m)return m.call(object)==m.call(e)}return!1}},2988:function(e,t,n){var r=n(82).Uint8Array;e.exports=r},2989:function(e,t){e.exports=function(map){var e=-1,t=Array(map.size);return map.forEach((function(n,r){t[++e]=[r,n]})),t}},2990:function(e,t,n){var r=n(2991),o=Object.prototype.hasOwnProperty;e.exports=function(object,e,t,n,l,c){var h=1&t,d=r(object),f=d.length;if(f!=r(e).length&&!h)return!1;for(var m=f;m--;){var A=d[m];if(!(h?A in e:o.call(e,A)))return!1}var y=c.get(object),v=c.get(e);if(y&&v)return y==e&&v==object;var _=!0;c.set(object,e),c.set(e,object);for(var w=h;++m<f;){var x=object[A=d[m]],E=e[A];if(n)var C=h?n(E,x,A,e,object,c):n(x,E,A,object,e,c);if(!(void 0===C?x===E||l(x,E,t,n,c):C)){_=!1;break}w||(w="constructor"==A)}if(_&&!w){var S=object.constructor,T=e.constructor;S==T||!("constructor"in object)||!("constructor"in e)||"function"==typeof S&&S instanceof S&&"function"==typeof T&&T instanceof T||(_=!1)}return c.delete(object),c.delete(e),_}},2991:function(e,t,n){var r=n(2992),o=n(2993),l=n(2272);e.exports=function(object){return r(object,l,o)}},2992:function(e,t,n){var r=n(2262),o=n(83);e.exports=function(object,e,t){var n=e(object);return o(object)?n:r(n,t(object))}},2993:function(e,t,n){var r=n(2994),o=n(2995),l=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols,h=c?function(object){return null==object?[]:(object=Object(object),r(c(object),(function(symbol){return l.call(object,symbol)})))}:o;e.exports=h},2994:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,l=[];++n<r;){var c=e[n];t(c,n,e)&&(l[o++]=c)}return l}},2995:function(e,t){e.exports=function(){return[]}},2996:function(e,t,n){var r=n(2997),o=n(1633),l=n(83),c=n(2273),h=n(2274),d=n(2275),f=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=l(e),m=!n&&o(e),A=!n&&!m&&c(e),y=!n&&!m&&!A&&d(e),v=n||m||A||y,_=v?r(e.length,String):[],w=_.length;for(var x in e)!t&&!f.call(e,x)||v&&("length"==x||A&&("offset"==x||"parent"==x)||y&&("buffer"==x||"byteLength"==x||"byteOffset"==x)||h(x,w))||_.push(x);return _}},2997:function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},2998:function(e,t){e.exports=function(){return!1}},2999:function(e,t,n){var r=n(132),o=n(1638),l=n(115),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,e.exports=function(e){return l(e)&&o(e.length)&&!!c[r(e)]}},3e3:function(e,t){e.exports=function(e){return function(t){return e(t)}}},3001:function(e,t,n){(function(e){var r=n(2263),o=t&&!t.nodeType&&t,l=o&&"object"==typeof e&&e&&!e.nodeType&&e,c=l&&l.exports===o&&r.process,h=function(){try{var e=l&&l.require&&l.require("util").t
vendor: 7,750 bytes, line 2
2ypes;return e||c&&c.binding&&c.binding("util")}catch(e){}}();e.exports=h}).call(this,n(2127)(e))},3002:function(e,t,n){var r=n(3003),o=n(3004),l=Object.prototype.hasOwnProperty;e.exports=function(object){if(!r(object))return o(object);var e=[];for(var t in Object(object))l.call(object,t)&&"constructor"!=t&&e.push(t);return e}},3003:function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},3004:function(e,t,n){var r=n(3005)(Object.keys,Object);e.exports=r},3005:function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},3006:function(e,t,n){n(2277),n(2279);var r=n(3011),o=n(1634),l=n(3012),c=n(2280),h=n(3013),d=n(132),f=n(2267),m=f(r),A=f(o),y=f(l),v=f(c),_=f(h),w=d;(r&&"[object DataView]"!=w(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=w(new o)||l&&"[object Promise]"!=w(l.resolve())||c&&"[object Set]"!=w(new c)||h&&"[object WeakMap]"!=w(new h))&&(w=function(e){var t=d(e),n="[object Object]"==t?e.constructor:void 0,r=n?f(n):"";if(r)switch(r){case m:return"[object DataView]";case A:return"[object Map]";case y:return"[object Promise]";case v:return"[object Set]";case _:return"[object WeakMap]"}return t}),e.exports=w},3011:function(e,t,n){var r=n(101)(n(82),"DataView");e.exports=r},3012:function(e,t,n){var r=n(101)(n(82),"Promise");e.exports=r},3013:function(e,t,n){var r=n(101)(n(82),"WeakMap");e.exports=r},3014:function(e,t,n){var r=n(2281),o=n(2272);e.exports=function(object){for(var e=o(object),t=e.length;t--;){var n=e[t],l=object[n];e[t]=[n,l,r(l)]}return e}},3015:function(e,t,n){var r=n(2268),o=n(3016),l=n(3023),c=n(1639),h=n(2281),d=n(2282),f=n(173);e.exports=function(path,e){return c(path)&&h(e)?d(f(path),e):function(object){var t=o(object,path);return void 0===t&&t===e?l(object,path):r(e,t,3)}}},3016:function(e,t,n){var r=n(2283);e.exports=function(object,path,e){var t=null==object?void 0:r(object,path);return void 0===t?e:t}},3017:function(e,t,n){n(12);var r=n(3018),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,c=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(l,"$1"):n||e)})),t}));e.exports=c},3018:function(e,t,n){var r=n(3019);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},3019:function(e,t,n){var r=n(1636);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],l=n.cache;if(l.has(o))return l.get(o);var c=e.apply(this,r);return n.cache=l.set(o,c)||l,c};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},3020:function(e,t,n){var r=n(3021);e.exports=function(e){return null==e?"":r(e)}},3021:function(e,t,n){n(13);var r=n(131),o=n(3022),l=n(83),c=n(1640),h=r?r.prototype:void 0,d=h?h.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(l(t))return o(t,e)+"";if(c(t))return d?d.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},3022:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},3023:function(e,t,n){var r=n(3024),o=n(3025);e.exports=function(object,path){return null!=object&&o(object,path,r)}},3024:function(e,t){e.exports=function(object,e){return null!=object&&e in Object(object)}},3025:function(e,t,n){var r=n(2284),o=n(1633),l=n(83),c=n(2274),h=n(1638),d=n(173);e.exports=function(object,path,e){for(var t=-1,n=(path=r(path,object)).length,f=!1;++t<n;){var m=d(path[t]);if(!(f=null!=object&&e(object,m)))break;object=object[m]}return f||++t!=n?f:!!(n=null==object?0:object.length)&&h(n)&&c(m,n)&&(l(object)||o(object))}},3026:function(e,t,n){var r=n(3027),o=n(3028),l=n(1639),c=n(173);e.exports=function(path){return l(path)?r(c(path)):o(path)}},3027:function(e,t){e.exports=function(e){return function(object){return null==object?void 0:object[e]}}},3028:function(e,t,n){var r=n(2283);e.exports=function(path){return function(object){return r(object,path)}}},3029:function(e,t,n){var r=n(1641),o=n(3030),l=n(3032);e.exports=function(e,t){return l(o(e,t,r),e+"")}},3030:function(e,t,n){var r=n(3031),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var l=arguments,c=-1,h=o(l.length-t,0),d=Array(h);++c<h;)d[c]=l[t+c];c=-1;for(var f=Array(t+1);++c<t;)f[c]=l[c];return f[t]=n(d),r(e,this,f)}}},3031:function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},3032:function(e,t,n){var r=n(3033),o=n(3036)(r);e.exports=o},3033:function(e,t,n){var r=n(3034),o=n(3035),l=n(1641),c=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:l;e.exports=c},3034:function(e,t){e.exports=function(e){return function(){return e}}},3035:function(e,t,n){var r=n(101),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},3036:function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),l=16-(o-r);if(r=o,l>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},3037:function(e,t,n){var r=n(2270),o=n(3038),l=n(3043),c=n(2271),h=n(3044),d=n(1637);e.exports=function(e,t,n){var f=-1,m=o,A=e.length,y=!0,v=[],_=v;if(n)y=!1,m=l;else if(A>=200){var w=t?null:h(e);if(w)return d(w);y=!1,m=c,_=new r}else _=t?[]:v;e:for(;++f<A;){var x=e[f],E=t?t(x):x;if(x=n||0!==x?x:0,y&&E==E){for(var C=_.length;C--;)if(_[C]===E)continue e;t&&_.push(E),v.push(x)}else m(_,E,n)||(_!==v&&_.push(E),v.push(x))}return v}},3038:function(e,t,n){var r=n(3039);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},3039:function(e,t,n){var r=n(3040),o=n(3041),l=n(3042);e.exports=function(e,t,n){return t==t?l(e,t,n):r(e,o,n)}},3040:function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,l=n+(r?1:-1);r?l--:++l<o;)if(t(e[l],l,e))return l;return-1}},3041:function(e,t){e.exports=function(e){return e!=e}},3042:function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},3043:function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},3044:function(e,t,n){var r=n(2280),o=n(3045),l=n(1637),c=r&&1/l(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=c},3045:function(e,t){e.exports=function(){}},3046:function(e,t,n){var r=n(2276),o=n(115);e.exports=function(e){return o(e)&&r(e)}},3047:function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},3048:function(e,t,n){e.exports=n(3049)},3049:function(e,t,n){var r=n(3050);t.operation=function(e){var n=t.timeouts(e);return new r(n,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var r=[],i=0;i<t.retries;i++)r.push(this.createTimeout(i,t));return e&&e.forever&&!r.length&&r.push(this.createTimeout(i,t)),r.sort((function(a,b){return a-b})),r},t.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,r=Math.round(n*t.minTimeout*Math.pow(t.factor,e));return r=Math.min(r,t.maxTimeout)},t.wrap=function(e,n,r){if(n instanceof Array&&(r=n,n=null),!r)for(var o in r=[],e)"function"==typeof e[o]&&r.push(o);for(var i=0;i<r.length;i++){var l=r[i],c=e[l];e[l]=function(r){var o=t.operation(n),l=Array.prototype.slice.call(arguments,1
2),c=l.pop();l.push((function(e){o.retry(e)||(e&&(arguments[0]=o.mainError()),c.apply(this,arguments))})),o.attempt((function(){r.apply(e,l)}))}.bind(e,c),e[l].options=n}}},3050:function(e,t){function n(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(void 0===n){if(!this._cachedTimeouts)return!1;this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),n=this._timeouts.shift()}var r=this,o=setTimeout((function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout((function(){r._operationTimeoutCb(r._attempts)}),r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)}),n);return this._options.unref&&o.unref(),!0},n.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){n._operationTimeoutCb()}),n._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},n.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},n.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,n=0,i=0;i<this._errors.length;i++){var r=this._errors[i],o=r.message,l=(e[o]||0)+1;e[o]=l,l>=n&&(t=r,n=l)}return t}},3051:function(e,t,n){(function(t,n){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t,n){return(s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&i(a,n.prototype),a}).apply(null,arguments)}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return s(e,arguments,a(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i(r,e)})(e)}function c(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var h=null,u=function(){function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return g(this,e),h=h||this,this.batchSize=64,this.batchInterval=200,this.cachedBlockLimit=128,this.cachedBlockFlush=32,this.encryption={encrypt:function(e,t){return t(null,e)},decrypt:function(e,t){return t(null,e)}},"number"==typeof t.batchSize&&1<t.batchSize&&(this.batchSize=t.batchSize),"number"==typeof t.batchInterval&&10<t.batchInterval&&(this.batchInterval=t.batchInterval),"number"==typeof t.cac
2hedBlockLimit&&0<t.cachedBlockLimit&&(this.cachedBlockLimit=t.cachedBlockLimit),"number"==typeof t.cachedBlockFlush&&t.cachedBlockFlush<this.cachedBlockLimit&&(this.cachedBlockFlush=t.cachedBlockFlush),t.encryption&&t.encryption.hasOwnProperty("encrypt")&&t.encryption.hasOwnProperty("decrypt")&&"function"==typeof t.encryption.encrypt&&"function"==typeof t.encryption.decrypt&&(this.encryption=t.encryption),h}return o(e,null,[{key:"getInstance",value:function(){return h}}]),e}(),d=function(){function u(e){var t=this;if(g(this,u),this.state=0,this._value=null,this._reason=null,"function"!=typeof e)throw"Promise resolver ".concat(e," is not a function");e((function(e){0===t.state&&(t.state=1,t._value=e)}),(function(e){0===t.state&&(t.state=2,t._reason=e)}))}return o(u,[{key:"then",value:function(e,t){var n=this,r=this;switch(this.state){case 0:setTimeout((function(){return n.then(e,t)}),100);break;case 1:e&&"function"==typeof e&&(r=e(this._value));break;case 2:t&&"function"==typeof t&&(r=t(this._reason))}return r instanceof u?r:this}},{key:"catch",value:function(e){var t=this,n=this;switch(this.state){case 0:setTimeout((function(){return t.catch(e)}),100);break;case 1:break;case 2:n=e(this._reason)}return n instanceof u?n:this}},{key:"finally",value:function(e){var t=this,n=this;switch(this.state){case 0:setTimeout((function(){return t.finally(e)}),100);break;case 1:case 2:n=e()}return n instanceof u?n:this}},{key:"length",get:function(){return 1}}],[{key:"all",value:function(t){return new u((function(n,a){if(Array.isArray(t)||"string"==typeof t)if(0<t.length){var r=[];for(var o in t)t[o]instanceof u?r.push(t[o]):r.push(u.resolve(t[o]));var i=new Array(r.length).fill(null),s=r.length,l=function(e,t,r){t?a(t):(s--,i[e]=r,s<=0&&n(i))};r.forEach((function(e,t){e.then((function(e){l(t,null,e)}
2)).catch((function(e){l(t,e,null)}))}))}else n([]);else a(new Error("Uncaught (in promise) TypeError: ".concat(e(t)," ").concat(t," is not iterable")))}))}},{key:"resolve",value:function(e){return new u((function(t){t(e)}))}},{key:"reject",value:function(e){return new u((function(t,n){n(e)}))}}]),u}();function f(t,n){var r=e(t),o=e(n);return!t||!n||"object"!==r||r!==o||t instanceof Date?t instanceof Date?t.getTime()===n.getTime():"function"===r&&"function"===o||t===n:Object.keys(t).length===Object.keys(n).length&&Object.keys(t).every((function(e){return f(t[e],n[e])}))}function m(e){return null!=e}function A(t,n,r){var o=2<arguments.length&&void 0!==r&&r;if(m(t)){if(!m(n))return o?-1:1;if(e(t)===e(n)&&t!==n){var a=e(t);if("boolean"===a)return t?1:-1;if("number"===a)return n<t?1:-1;if("string"===a)return t.localeCompare(n);if(t instanceof Date&&n instanceof Date&&t.getTime()!==n.getTime())return t.getTime()>n.getTime()?1:-1}}else if(m(n))return o?1:-1;return 0}function p(e,t,a){if(!t)return new Promise((function(t,n){e((function(e,r){a&&"function"==typeof a&&a(),e?n(e):t(r)}))}));e((function(e,n){a&&"function"==typeof a&&a(),t(e,n)}))}"undefined"==typeof Promise&&(Promise=d);var y=function(){function t(e){g(this,t),this.condition=e,this.offset=0,this.limit=1/0,this.index=null,this.desc=!1}return o(t,null,[{key:"and",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0<n.length?new t({"/and":n}):new t({})}},{key:"or",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0<n.length?new t({"/or":n}):new t({})}},{key:"Order",get:function(){return{ASC:1,DESC:-1}}}]),o(t,[{key:"match",value:function(t){return function t(n,r){var o=!0;if(n)for(var a in r){switch(a){case"/and":o=o&&r[a].reduce((function(e,r){return e&&t(n,r)}),!0);break;case"/or":o=o&&r[a].reduce((function(e,r){return e||t(n,r)}),!1);break;default:var i=r[a];if("object"===e(i))for(var s in i)switch(s){case">":o="number"==typeof n[a]&&"number"==typeof i[s]?o&&n[a]>i[s]:"string"==typeof n[a]&&"string"==typeof i[s]&&o&&0<n[a].localeCompare(i[s]);break;case">=":o="number"==typeof n[a]&&"number"==typeof i[s]?o&&n[a]>=i[s]:"string"==typeof n[a]&&"string"==typeof i[s]&&o&&0<=n[a].localeCompare(i[s]);break;case"<":o="number"==typeof n[a]&&"number"==typeof i[s]?o&&n[a]<i[s]:"string"==typeof n[a]&&"string"==typeof i[s]&&o&&n[a].localeCompare(i[s])<0;break;case"<=":o="number"==typeof n[a]&&"number"==typeof i[s]?o&&n[a]<=i[s]:"string"==typeof n[a]&&"string"==typeof i[s]&&o&&n[a].localeCompare(i[s])<=0;break;case"=":o=o&&n[a]===i[s];break;case"!=":o=o&&n[a]!==i[s];break;case"/in":o=o&&Array.isArray(i[s])&&0<=i[s].indexOf(n[a]);break;case"/nin":o=o&&Array.isArray(i[s])&&i[s].indexOf(n[a])<0;break;case"/like":o=o&&"string"==typeof i[s]&&"string"==typeof n[a]&&0<=n[a].indexOf(i[s]);break;case"/nlike":o=o&&"string"==typeof i[s]&&"string"==typeof n[a]&&n[a].indexOf(i[s])<0;break;case"/regex":o=o&&i[s]instanceof RegExp&&i[s].test(n[a]);break;case"/where":o=o&&i[s](n[a]);break;default:o=o&&f(n[a],i)}else o=o&&n[a]===i}if(!o)break}else o=!1;return o}(t,this.condition)}}]),t}(),v=function(){function e(t){g(this,e),this.blockKey=t,this.data=[]}return o(e,[{key:"get",value:function(e){var t=this.indexOf(e);return 0<=t?this.data[t].value:null}},{key:"indexOf",value:function(e){for(var t in this.data)if(this.data[t].key===e)return parseInt(t);return-1}},{key:"add",value:function(e,t){var n=this.indexOf(e);n<0?this.data.push({key:e,value:t}):this.data[n]={key:e,value:t}}},{key:"remove",value:function(e){var t=this.indexOf(e);return 0<=t&&(this.data.splice(t,1),!0)}},{key:"getSerializedData",value:function(){return JSON.stringify(this.data)}},{key:"count",get:function(){return this.data.length}}],[{key:"createKey",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:0;return"".concat(e.toLowerCase(),"-blk-").concat(n)}},{key:"buildFromSerializedData",value:function(t,n){var r=new e(t);try{return r.data=JSON.parse(n),r}catch(t){return null}}}]),e}(),b=function(){function e(){g(this,e),this.locked=!1,this.lockedAt=0}return o(e,[{key:"lock",value:function(e){var t=this;this.locked?setTimeout((function(){1e4<(new Date).getTime()-t.lockedAt&&t.unlock(),t.lock(e)}),200):(this.locked=!0,this.lockedAt=(new Date).getTime(),e((function(){return t.unlock()})))}},{key:"unlock",value:function(){this.locked=!1,this.lockedAt=0}}]),e}();"undefined"==typeof Promise&&(Promise=d);var _="adb-trns-",w=function(){function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};g(this,s);var n=u.getInstance();this.name=e,this.initialized=!1,this.queue={},this.batchInterval=t.batchInterval||n.batchInterval,this.batchUpdateTimer=null,this.transactionMutex=new b,this.transactionState=s.State.IDLE,this.transactionCount=0,this.encryption=n.encryption,t.encryption&&t.encryption.hasOwnProperty("encrypt")&&t.encryption.hasOwnProperty("decrypt")&&"function"==typeof t.encryption.encrypt&&"function"==typeof t.encryption.decrypt&&(this.encryption=t.encryption)}return o(s,[{key:"init",value:function(e){var t=this,n=0<arguments.length&&void 0!==e?e:function(){};this.initialized?n(null):(this.initialized=!0,0===Object.keys(this.queue).length?R.Storage.getItem(_+this.name,(function(e,r){r?t.encryption.decrypt(r,(function(e,r){e||(t.queue=JSON.parse(r)),n(e)})):n(null)})):n(null))}},{key:"flush",value:function(){var i=this;this.transactionMutex.lock((function(a){R.Storage.setItem(_+i.name,JSON.stringify(i.queue),(function(e){if(e)throw a(),e;function t(a){var e=i.queue[a];switch(e.action){case s.Action.SET:n.push(new Promise((function(t,n){i.encryption.encrypt
2(JSON.stringify(e.data),(function(e,r){e?n(e):R.Storage.setItem(a,r).then(t).catch(n)}))})));break;case s.Action.REMOVE:n.push(R.Storage.removeItem(a))}}var n=[];for(var r in i.queue)t(r);i.batchUpdateTimer=null,Promise.all(n).then((function(){i.queue={},R.Storage.removeItem(_+i.name,(function(){a()}))})).catch((function(e){throw a(),e}))}))}))}},{key:"startTransaction",value:function(){this.transactionState=s.State.RUNNING,this.transactionCount++}},{key:"endTransaction",value:function(){this.transactionState===s.State.RUNNING&&(this.transactionCount--,0===this.transactionCount&&(this.flush(),this.transactionState=s.State.IDLE))}},{key:"addJob",value:function(e,t,n){var r=this;this.queue[t]={action:e,data:n},this.transactionState===s.State.IDLE&&(this.batchUpdateTimer||(this.batchUpdateTimer=setTimeout((function(){r.transactionState===s.State.IDLE&&r.flush(),r.batchUpdateTimer=null}),this.batchInterval)))}}],[{key:"Action",get:function(){return{SET:"set",REMOVE:"remove"}}},{key:"State",get:function(){return{IDLE:"idle",RUNNING:"running"}}}]),s}(),x="adb-info-",E=function(){function e(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};g(this,e);var r=u.getInstance();this.cachedBlockLimit=n.cachedBlockLimit||r.cachedBlockLimit,this.cachedBlockFlush=n.cachedBlockFlush||r.cachedBlockFlush,this.cacheMutex=new b,this.encryption=r.encryption,n.encryption&&n.encryption.hasOwnProperty("encrypt")&&n.encryption.hasOwnProperty("decrypt")&&"function"==typeof n.encryption.encrypt&&"function"==typeof n.encryption.decrypt&&(this.encryption=n.encryption),this.batchSize=n.batchSize||r.batchSize,this.batchQueue=n.sharedBatchQueue||new w(t,n),this.transaction=null,this.name=t,this.info={},this.blockCache={},this.blockCacheCursor=0,this.currentBlock=null}return o(e,[{key:"_findBlockKey",value:function(e){return this.info.blockMap[e]}},{key:"_getBlockFromCache",value:function(e){return this.blockCache[e]?this.blockCache[e].block:null}},{key:"_putBlockToCache",value:function(e){var t=this;this.blockCache[e.blockKey]={seq:this.blockCacheCursor++,block:e};var n=Object.keys(this.blockCache);if(n.length>=this.cachedBlockLimit)for(var r in n.sort((function(e,n){return t.blockCache[e].seq-t.blockCache[n].seq})),n)this._removeBlockFromCache(n[r])}},{key:"_removeBlockFromCache",value:function(e){this.blockCache.hasOwnProperty(e)&&delete this.blockCache[e]}},{key:"_getBlock",value:function(e,a){var i=this,t=this._getBlockFromCache(e);t?a(null,t):R.Storage.getItem(e).then((function(t){t?i.encryption.decrypt(t,(function(t,n){if(t)a(t);else{var r=v.buildFromSerializedData(e,n);i._putBlockToCache(r),a(null,r)}})):a(null)})).catch((function(e){return a(e)}))}},{key:"_assignNewBlock",value:function(e){this.info.cursor++;var t=v.createKey(this.name,this.info.cursor),n=new v(t);this._putBlockToCache(n),this.currentBlock=n,e&&e.key&&(n.add(e.key,e.value),this.info.blockMap[e.key]=t,this.info.count++),this.batchQueue.addJob(w.Action.SET,n.blockKey,n.data),this.batchQueue.addJob(w.Action.SET,x+this.name,this.info)}},{key:"init",value:function(e){var t=this,a=0<arguments.length&&void 0!==e?e:function(){};this.batchQueue.init((function(e){e?a(e):R.Storage.getItem(x+t.name,(function(e,n){e?a(e):n?t.encryption.decrypt(n,(function(e,n){if(e)a(e);else{t.info=JSON.parse(n);var r=v.createKey(t.name,t.info.cursor);t._getBlock(r,(function(e,n){e||(t.currentBlock=n||new v(r)),a(e,t.info,!1)}))}})):(t.info={blockMap:{},cursor:0,count:0},t.info.cursor=-1,t._assignNewBlock(),a(null,t.info,!0))}))}))}},{key:"startTransaction",value:function(){this.batchQueue.startTransaction()}},{key:"endTransaction",value:function(){this.batchQueue.endTransaction()}},{key:"getItem",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:function(){},r=this._findBlockKey(e);r?this._getBlock(r,(function(t,r){!t&&r?n(null,r.get(e)):n(t||new Error("Broken integrity - data not found."))})):n(null,null)}},{key:"setItem",value:function(e,t,n){var a=this,i=2<arguments.length&&void 0!==n?n:function(){},r=this._findBlockKey(e);if(r)this._getBlock(r,(function(n,r){!n&&r?(r.add(e,t),a.batchQueue.addJob(w.Action.SET,r.blockKey,r.data),i(null)):i(n||new Error("Broken integrity - data not found."))}));else{var s=this.currentBlock;s&&s.count<this.batchSize?(s.add(e,t),this.batchQueue.addJob(w.Action.SET,s.blockKey,s.data),this.info.count++,this.info.blockMap[e]=s.blockKey,this.batchQueue.addJob(w.Action.SET,x+this.name,this.info)):this._assignNewBlock({key:e,value:t}),i(null)}}},{key:"removeItem",value:function(e,t){var n=this,a=1<arguments.length&&void 0!==t?t:function(){},i=this._findBlockKey(e);i?this._getBlock(i,(function(t,r){t?a(t):r?(r.remove(e)&&(n.info.blockMap.hasOwnProperty(e)&&delete n.info.blockMap[e],n.info.count--),0<r.data.length?n.batchQueue.addJob(w.Action.SET,i,r.data):(n._removeBlockFromCac
2he(i),n.batchQueue.addJob(w.Action.REMOVE,i)),n.batchQueue.addJob(w.Action.SET,x+n.name,n.info),a(null)):a(new Error("Failed to remove item - data not found."))})):a(new Error("Failed to remove item - data not found."))}},{key:"clear",value:function(e){for(var t=0<arguments.length&&void 0!==e?e:function(){},n=0;n<=this.info.cursor;n++)this.batchQueue.addJob(w.Action.REMOVE,v.createKey(this.name,n));this.blockCacheCursor=0,this.blockCache={},this.info={blockMap:{},cursor:-1,count:0},this._assignNewBlock(),t(null)}},{key:"drop",value:function(e){var t=this,n=0<arguments.length&&void 0!==e?e:function(){};this.clear((function(){t.batchQueue.addJob(w.Action.REMOVE,x+t.name),n(null)}))}},{key:"keys",get:function(){return Object.keys(this.info.blockMap)}},{key:"count",get:function(){return this.info.count}}]),e}();function C(e,n,r){var o=e.offset,a=e.condition,i=e.progress,s=1<arguments.length&&void 0!==n?n:function(e,t){return t(null,!0)},l=2<arguments.length&&void 0!==r?r:function(){},u=o;!function e(){a(u)?t((function(){s(u,(function(t,n){t?l(t):n?(u=i(u),e()):l(null)}))})):l(null)}()}var S="idx-",T=function(){function e(t){var n=t.collection,r=t.columns,o=void 0===r?{}:r,a=t.options,i=void 0===a?{}:a;for(var s in g(this,e),this.collection=n,this.columns=o,this.key=e.createKey(this.columns),this.columns)this.columns[s]=1;this.store=new E(n.name+"-index-"+this.key,i),this.table=[]}return o(e,[{key:"columnValues",value:function(e){return this.columnNames.map((function(t){return e?e[t]:null}))}},{key:"compareColumnValues",value:function(e,t,n){for(var r=!(2<arguments.length&&void 0!==n)||n,a=this.columnNames,i=0;i<a.length;i++){var s=a[i],o=this.columns[s],u=A(e[i],t[i],r);if(0!==u)return o*u}return 0}},{key:"init",value:function(e){var t=this,a=0<arguments.length&&void 0!==e?e:function(){};this.store.init((function(e,n,r){e?a(e):r?t.save(a):t.store.getItem("".concat(S).concat(t.key),(function(e,n){
2n&&(t.table=n),a(e)}))}))}},{key:"each",value:function(i,e,t){var s=this,n=1<arguments.length&&void 0!==e?e:null,r=0<(2<arguments.length&&void 0!==t?t:1),o=r?0:this.table.length-1;if(n&&0<this.table.length){for(var a={start:0,end:this.table.length},u=o;a.start<a.end;){var l=this.compareColumnValues(this.table[u].key,n,r);if(0===l)break;0<l?a.end=u-1:a.start=u+1,u=parseInt((a.start+a.end)/2)}o=u}var c=!0;C({offset:o,condition:function(e){return r?e<s.table.length:0<=e},progress:function(e){return r?e+1:e-1}},(function(e,t){var n=s.table[e];if(n){var o=n.key,a=n.value;C({offset:r?0:a.length-1,condition:function(e){return r?e<a.length:0<=e},progress:function(e){return r?e+1:e-1}},(function(e,t){i({key:o,value:a[e]},(function(e,n){t(e,c=e||n)}))}),(function(e){return t(e,c)}))}else t(null,!1)}),(function(){i(null,(function(){}))}))}},{key:"put",value:function(a,e){var i=this,s=!1,t=this.columnValues(e);C({offset:0,condition:function(e){return e<i.table.length},progress:function(e){return e+1}},(function(e,n){var r=i.table[e];if(r){var o=i.compareColumnValues(r.key,t);0<o?(i.table.splice(e,0,{key:t,value:[a]}),s=!0,i.save((function(e){return n(e,!1)}))):0===o?r.value.indexOf(a)<0?(r.value.push(a),s=!0,i.save((function(e){return n(e,!1)}))):n(null,!1):n(null,!0)}else n(null,!1)}),(function(){s||(i.table.push({key:t,value:[a]}),i.save())}))}},{key:"update",value:function(e,t,n){var r=this.columnValues(t),a=this.columnValues(n);0!==this.compareColumnValues(r,a)&&(this.remove(e,t),this.put(e,n))}},{key:"remove",value:function(a,e){var i=this,s=this.columnValues(e);C({offset:0,condition:function(e){return e<i.table.length},progress:function(e){return e+1}},(function(e,t){var n=i.table[e];if(n)if(0===i.compareColumnValues(n.key,s)){var r=n.value.indexOf(a);0<=r?(n.value.splice(r,1),0===n.value.length&&i.table.splice(e,1),i.save((function(e){return t(e,!1)}))):t(null,!1)}else t(null,!0);else t(null,!1)}),(function(){}))}},{key:"save",value:function(e){var t=0<arguments.length&&void 0!==e?e:function(){};this.store.setItem("".concat(S).concat(this.key),this.table,t)}},{key:"clear",value:function(){this.table=[],this.store.clear()}},{key:"drop",value:function(){this.table=[],this.store.drop()}},{key:"columnNames",get:function(){return Object.keys(this.columns)}}],[{key:"createKey",value:function(e){return Object.keys(e).map((function(t){return"".concat(t,"_").concat(e[t])})).join("__")}}]),e}();function B(){if("undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"==navigator.product)return Promise.resolve(!1);var e=window?window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.msIndexedDB:null,a="undefined"!=typeof InstallTrigger||window._isTestingFirefox,i=!document.documentMode&&!!window.StyleMedia;return new Promise((function(t,n){try{if(a){if(!e)return void t(!0);var r=e.open("_testMozilla");r.onerror=function(){t(!0)},r.onsuccess=function(){t(!1)}}else i?window.indexedDB||!window.PointerEvent&&!window.MSPointerEvent?t(!1):t(!0):t(!1)}catch(t){n(t)}}))}function k(t){return"object"===e(t)&&!!t}var I=function(){function e(){g(this,e),this._field={}}return o(e,[{key:"has",value:function(e){if(k(e))return e.__wk&&"string"==typeof e.__wk&&this._field.hasOwnProperty(e.__wk);throw new Error("Invalid value used as weak map key")}},{key:"get",value:function(e){if(k(e))return e.__wk&&"string"==typeof e.__wk?this._field[e.__wk]:null;throw new Error("Invalid value used as weak map key")}},{key:"set",value:function(e,t){if(!k(e))throw new Error("Invalid value used as weak map key");e.__wk&&"string"==typeof e.__wk||(e.__wk="__".concat((new Date).getTime(),"-").concat(parseInt(1e8*Math.random()))),this._field[e.__wk]=t}},{key:"delete",value:function(e){if(!k(e))throw new Error("Invalid value used as weak map key");this.has(e)&&delete this._field[e.__wk]}},{key:"length",get:function(){return 0}}]),e}(),M=function(){try{return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&-1<navigator.userAgent.indexOf("MSIE 10")}catch(e){return!1}}()||function(){try{return document&&9===document.documentMode}catch(e){return!1}}()||function(){try{return document&&document.documentMode<=8}catch(e){return!1}}()||"undefined"==typeof window&&void 0!==n?I:WeakMap;"undefined"==typeof Promise&&(Promise=d);var P=new M,D=new M,U=function(){function n(e,t){g(this,n),this.name=e,this.pk=t,P.set(this,new E(e)),D.set(this,[])}return o(n,[{key:"init",value:function(e){var t=P.get(this);return p((function(e){t.init((function(t){e(t)}))}),e)}},{key:"_findProperIndexer",value:function(e){if(e.index)for(var t=D.get(this),n=0;n<t.length;n++)if(f(t[n].columns,e.index))return t[n];return null}},{key:"_addItemToIndex",value:function(e,t){for(var n=D.get(this),r=0;r<n.length;r++)n[r].put(e,t)}},{key:"_updateItemToIndex",value:function(e,t,n){for(var r=D.get(this),a=0;a<r.length;a++)r[a].update(e,t,n)}},{key:"_removeItemFromIndex",value:function(e,t){for(var n=D.get(this),r=0;r<n.length;r++)n[r].remove(e,t)}},{key:"ensureIndex",value:function(e,t){var n=this,r=P.get(this),o=D.get(this),a=T.createKey(e);return p((function(i){for(var t=0;t<o.length;t++)if(a===o[t].key)return void i(null);var s=new T({collection:n,columns:e,options:{sharedBatchQueue:r.batchQueue}});s.init((function(e,t,n){e?i(e):(o.push(s),n?function(){for(var e=r.keys,a=0,t=function(t){var n=e[t];r.getItem(n,(function(t,r){!t&&r?s.put(n,r,(function(){++a===e.length&&i(null)})):++a===e.length&&i(null)}))},n=0;n<e.length;n++)t(n)}():i(null))}))}),t)}},{key:"removeIndex",value:function(t,n){var a=D.get(this),i=T.createKey(t);return p((function(t){for(var n=function(e){if(i===a[e].key)return a[e].drop((function(n){n||a.splice(e,1),t(n)})),{v:void 0}},r=0;r<a.length;r++){var o=n(r);if("object"===e(o))return o.v}t(null)}),n)}},{key:"findById",value:function(e,t){var n=P.get(this);return p((function(t){e?("string"!=typeof e&&(e=JSON.stringify(e)),n.getItem(e,(function(e,n){t(e,n)}))):t(new Error("Invalid type: 'id' should not be empty."))}),t)}},{key:"findOne",value:function(e,t){return e.limit=1,this.find(e,(function(e,n){t(e,0<n.length?n[0]:null)}))}},{key:"find",value:function(n,r){var o=this,l=P.get(this);return p((function(r){if(n instanceof y){var c=[],h=o._findProperIndexer(n);if(h){for(var a=[],d=0;d<h.columnNames.length;d++){var i=h.columnNames[d];if(!n.condition[i])break;if("object"===e(n.condition[i])){if("break"===function(){var e=Object.keys(n.condition[i]),t=["="],r=e.filter((function(e){return t.includes(e)}));if(!(0<r.length))return"break";var o=e.indexOf(r[0]);a.push(n.condition[i][e[o]])}())break}else{if("function"==typeof n.condition[i]||void 0===n.condition[i]||Array.isArray(n.condition[i]))break;a.push(n.condition[i])}}var s=n.offset||0;h.each((function(e,t){e?l.getItem(e.value,(function(e,r){e?t(e):(n.match(r)&&(s<=0?c.push(r):s--),t(null,c.length<n.limit))})):r(null,c)}),0<a.length?a:null,n.desc?y.Order.DESC:y.Order.ASC)}else{var f=!n.desc,u=l.keys;C({offset:n.offset<u.length?f?n.offset:u.length-n.offset-1:f?u.length:-1,condition:function(e){return f?c.length<n.limit&&e<u.length:c.length<n.limit&&0<=e},progress:function(e){return f?e+1:e-1}},(function(e,r){l.getItem(u[e],(function(e,o){e?r(e):(n.match(o)&&c.push(o),t((function(){return r(null,!0)})))}))}),(function(e){r(e,c)}))}}else r(new Error("Invalid type: 'query' should be Query type."))}),r)}},{key:"count",value:function(i,e){var s=P.get(this);return p((function(e){if(!i||i instanceof y)if(i){var n=s.keys,a=0;C({offset:0,condition:function(e){return e<n.length},progress:function(e){return e+1}},(function(e,r){s.getItem(n[e],(function(e,n){e?r(e):(i.match(n)&&a++,t((function(){return r(null,!0)})))}))}),(function(t){e(t,a)}))}else e(null,s.count);else e(new Error("Invalid type: 'query' should be Query type."))}),e)}},{key:"insert",value:function(a,t){var i=this,s=P.get(this);return s.startTransaction(),p((function(t){if(Array.isArray(a)){for(var n=[],r=0;r<a.length;r++)a[r]&&"object"===e(a[r])&&n.push(i.insert(a[r]));a.length===n.length?Promise.all(n).then((function(){return t(null,a)})).catch((function(e){return t(e)})):t(new Error("Invalid type: 'item' should hold objects if it's an array."))}
2else if(a&&"object"===e(a))if(a[i.pk]){var o="".concat(a[i.pk]);s.getItem(o,(function(e,n){e?t(e):n?t(new Error("Duplicated item: item already exists.")):(i._addItemToIndex(o,a),s.setItem(o,a,(function(e){t(e,a)})))}))}else t(new Error("Invalid key: item should have key."));else t(new Error("Invalid type: 'item' should be an object or an object array."))}),t,(function(){return s.endTransaction()}))}},{key:"upsert",value:function(a,t){var i=this,s=P.get(this);return s.startTransaction(),p((function(t){if(Array.isArray(a)){for(var n=[],r=0;r<a.length;r++)a[r]&&"object"===e(a[r])&&n.push(i.upsert(a[r]));a.length===n.length?Promise.all(n).then((function(){return t(null,a)})).catch((function(e){return t(e)})):t(new Error("Invalid type: 'item' should hold objects if it's an array."))}else if(a&&"object"===e(a))if(a[i.pk]){var o="".concat(a[i.pk]);s.getItem(o,(function(e,n){e?t(e):(n?i._updateItemToIndex(o,n,a):i._addItemToIndex(o,a),s.setItem(o,a,(function(e){t(e,a)})))}))}else t(new Error("Invalid key: item should have key."));else t(new Error("Invalid type: 'item' should be an object or an object array."))}),t,(function(){return s.endTransaction()}))}},{key:"update",value:function(a,t){var i=this,s=P.get(this);return s.startTransaction(),p((function(t){if(Array.isArray(a)){for(var n=[],r=0;r<a.length;r++)a[r]&&"object"===e(a[r])&&n.push(i.update(a[r]));a.length===n.length?Promise.all(n).then((function(){return t(null,a)})).catch((function(e){return t(e)})):t(new Error("Invalid type: 'item' should hold objects if it's an array."))}else if(a&&"object"===e(a))if(a[i.pk]){var o="".concat(a[i.pk]);s.getItem(o,(function(e,n){e?t(e):n?(i._updateItemToIndex(o,n,a),s.setItem(o,a,(function(e){t(e,a)}))):t(null)}))}else t(new Error("Invalid key: item should have key."));else t(new Error("Invalid type: 'item' should be an object or an object array."))}),t,(function(){return s.endTransaction()}))}},{key:"updateIf",value:function(e,n,r){var o=this,l=P.get(this);return l.startTransaction(),p((function(r){if(e instanceof y){var u=[],c=l.keys;C({offset:0,condition:function(e){return e<c.length},progress:function(e){return e+1}},(function(r,h){l.getItem(c[r],(function(r,c){if(r)h(r);else if(c&&e.match(c)){var d=JSON.parse(JSON.stringify(c)),m=!1;for(var a in n){var i=n[a];f(c[a],i)||(m=!0,c[a]=i)}if(m){var s="".concat(c[o.pk]);o._updateItemToIndex(s,d,c),l.setItem(s,c,(function(e){e?h(e):(u.push(c),t((function(){return h(null,!0)})))}))}else t((function(){return h(null,!0)}))}else t((function(){return h(null,!0)}))}))}),(function(e){r(e,u)}))}else r(new Error("Invalid type: 'query' should be Query type."))}),r,(function(){return l.endTransaction()}))}},{key:"remove",value:function(e,t){var a=this,i=P.get(this);return i.startTransaction(),p((function(t){e?(e="".concat(e),i.getItem(e,(function(n,r){n?t(n):r?(a._removeItemFromIndex(e,r),i.removeItem(e,(function(e){t(e)}))):t(null)}))):t(new Error("Invalid type: 'id' should be string type."))}),t,(function(){return i.endTransaction()}))}},{key:"removeIf",value:function(i,e){var s=this,n=P.get(this);return n.startTransaction(),p((function(e){if(i instanceof y){var a=[],r=n.keys;C({offset:0,condition:function(e){return e<r.length},progress:function(e){return e+1}},(function(e,o){n.getItem(r[e],(function(e,r){if(e)o(e);else if(r&&i.match(r)){var l="".concat(r[s.pk]);s._removeItemFromIndex(l,r),n.removeItem(l,(function(e){e?o(e):(a.push(r),t((function(){return o(null,!0)})))}))}else t((function(){return o(null,!0)}))}))}),(function(t){e(t,a)}))}else e(new Error("Invalid type: 'query' should be Query type."))}),e,(function(){return n.endTransaction()}))}},{key:"clear",value:function(e){var t=D.get(this),n=P.get(this);return n.startTransaction(),p((function(e){for(var r=0;r<t.length;r++)t[r].clear();n.clear((function(t){e(t)}))}),e,(function(){return n.endTransaction()}))}}]),n}();"undefined"==typeof Promise&&(Promise=d);var O=null,q=new M,F=new M,R=function(){function e(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};g(this,e),this.name=t,this.config=new u(n),q.set(this,{}),F.set(this,{})}return o(e,null,[{key:"Query",get:function(){return y}},{key:"Storage",get:function(){return O},set:function(e){O=e}}
2]),o(e,[{key:"schema",value:function(e,t){return q.get(this)[e]=t,this}},{key:"build",value:function(){var s=q.get(this),e=F.get(this);return new Promise((function(a,i){var t=[];for(var n in s)if(!e[n]){var r=s[n].key||"_id",o=e[n]=new U(n,r);t.push(o.init())}Promise.all(t).then((function(){var t=[];for(var n in e)if(s[n].index&&0<s[n].index.length){var r=e[n];for(var o in s[n].index)t.push(r.ensureIndex(s[n].index[o]))}0<t.length?Promise.all(t).then((function(){a()})).catch((function(e){return i(e)})):a()})).catch((function(e){return i(e)}))}))}},{key:"close",value:function(){}},{key:"drop",value:function(){q.set(this,{}),_db.set(this,null),F.set(this,{}),O.clear()}},{key:"collection",value:function(e){var t=F.get(this);return t[e]&&t[e]instanceof U?t[e]:null}}]),e}();function N(){var e=!!document.documentMode,t=!e&&!!window.StyleMedia;return!e&&!t}function L(t,n){var r=e(t),o=e(n);return!t||!n||"object"!==r||r!==o||t instanceof Date?t instanceof Date?t.getTime()===n.getTime():"function"===r&&"function"===o||t===n:Object.keys(t).length===Object.keys(n).length&&Object.keys(t).every((function(e){return L(t[e],n[e])}))}function z(t){var n=null;return t&&(Array.isArray(t)?n=N()?t.join("_"):t[t.length-1]:"object"===e(t)?n=z(Object.keys(t)):"string"==typeof t&&(n=t)),n}function H(e,t,a){if(!t)return new Promise((function(t,n){e((function(e,r){a&&"function"==typeof a&&a(),e?n(e):t(r)}))}));e(t)}"undefined"==typeof Promise&&(Promise=d);var Q=new M,V=function(){function t(e,n,r){g(this,t),this.name=n,this.keyPath=r,Q.set(this,e)}return o(t,[{key:"findById",value:function(e,t){var n=this,a=Q.get(this);return H((function(t){var r=a.transaction(n.name,"readonly").objectStore(n.name).get(e);r.onsuccess=function(){return t(null,r.result||null)},r.onerror=function(){return t(r.error)}}),t)}},{key:"find",value:function(s,e){var t=this,u=Q.get(this);return H((function(e){if(s instanceof W.Query){var n=z(s.index),a=[],r=u.transaction(t.name,"readonly").objectStore(t.name),o=n?r.index(n).openCursor(null,s.desc?"prev":"next"):r.openCursor(),i=s.offset;o.onsuccess=function(t){var n=t.target.result;if(n){var r=n.value;s.match(r)?!i||i<0?(a.push(r),a.length<s.limit?n.continue():e(null,a)):(i--,n.continue()):n.continue()}else e(null,a)},o.onerror=function(){e(o.error)}}else e(new Error("Invalid type: 'query' should be LocalDB.Query type."))}),e)}},{key:"count",value:function(i,e){var s=this,t=Q.get(this);return H((function(e){if(!i||i instanceof W.Query){var n=t.transaction(s.name,"readonly").objectStore(s.name);if(i){var r=0,o=n.openCursor();o.onsuccess=function(){var t=event.target.result;t?(i.match(t.value)&&r++,t.continue()):e(null,r)},o.onerror=function(){e(o.error)}}else{var a=n.count();a.onsuccess=function(){return e(null,a.result)},a.onerror=function(){return e(a.error)}}}else e(new Error("Invalid type: 'query' should be LocalDB.Query type."))}),e)}},{key:"insert",value:function(s,t){var n=this,r=Q.get(this);return H((function(a){var i=r.transaction(n.name,"readwrite").objectStore(n.name);if(Array.isArray(s))!function(){function e(e){var n=s[e],r=i.add(n);r.onsuccess=function(){t.push(n),t.length===s.length&&a(null,t)},r.onerror=function(){a(r.error)}}var t=[];for(var n in s)e(n)}();else if(s&&"object"===e(s)){var t=i.add(s);t.onsuccess=function(){return a(null,s)},t.onerror=function(){return a(t.error)}}else a(new Error("Invalid type: 'item' should be an object or an object array."))}),t)}},{key:"upsert",value:function(i,t){var n=this,s=Q.get(this);return H((function(t){var r=s.transaction(n.name,"readwrite").objectStore(n.name);if(i&&"object"===e(i)){var a=r.get(i[n.keyPath]);a.onsuccess=function(){if(a.result){var e=r.put(i);e.onsuccess=function(){return t(null,i)},e.onerror=function(){return t(e.error)}}else{var n=r.add(i);n.onsuccess=function(){return t(null,i)},n.onerror=function(){return t(n.error)}}},a.onerror=function(){t(a.error)}}else t(new Error("Invalid type: 'item' should be an object or an object array."))}),t)}},{key:"update",value:function(e,t){var n=this,a=Q.get(this);return H((function(t){var r=a.transaction(n.name,"readwrite").objectStore(n.name).put(e);r.onsuccess=function(){return t(null,e)},r.onerror=function(){return t(r.error)}}),t)}},{key:"updateIf",value:function(e,t,n){var r=this,o=Q.get(this);return H((function(n){if(e instanceof W.Query){var u=[],l=o.transaction(r.name,"readwrite").objectStore(r.name),c=l.openCursor();c.onsuccess=function(r){var o=r.target.result;if(o){var c=o.value;if(e.match(c)){var h=!1;for(var a in t){var i=t[a];L(c[a],i)||(h=!0,c[a]=i)}if(h){var s=l.put(c);s.onsuccess=function(){u.push(c),o.continue()},s.onerror=function(){n(s.error)}}else o.continue()}else o.continue()}else n(null,u)},c.onerror=function(){n(c.error)}}else n(new Error("Invalid type: 'query' should be LocalDB.Query type."))}),n)}},{key:"remove",value:function(e,t){var n=this,a=Q.get(this);return H((function(t){var r=a.transaction(n.name,"readwrite").objectStore(n.name).delete(e);r.onsuccess=function(){return t(null)},r.onerror=function(){return t(r.error)}}),t)}},{key:"removeIf",value:function(e,t){var u=this,n=Q.get(this);
2return H((function(a){if(e instanceof W.Query){var i=[],s=n.transaction(u.name,"readwrite").objectStore(u.name),t=s.openCursor();t.onsuccess=function(t){var n=t.target.result;if(n){var r=n.value;if(e.match(r)){var o=s.delete(r[u.keyPath]);o.onsuccess=function(){i.push(r),n.continue()},o.onerror=function(){a(o.error)}}else n.continue()}else a(null,i)},t.onerror=function(){a(t.error)}}else a(new Error("Invalid type: 'query' should be LocalDB.Query type."))}),t)}},{key:"clear",value:function(e){var t=this,n=Q.get(this);return H((function(e){var r=n.transaction(t.name,"readwrite").objectStore(t.name).clear();r.onsuccess=function(){return e(null)},r.onerror=function(){return e(r.error)}}),e)}}]),t}(),j=function(){function t(e){g(this,t),this.condition=e,this.offset=0,this.limit=1/0,this.index=null,this.desc=!1}return o(t,null,[{key:"and",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0<n.length?new t({"/and":n}):new t({})}},{key:"or",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0<n.length?new t({"/or":n}):new t({})}},{key:"Order",get:function(){return{ASC:1,DESC:-1}}}]),o(t,[{key:"match",value:function(t){return function t(n,r){var o=!0;for(var a in r){switch(a){case"/and":o=o&&r[a].reduce((function(e,r){return e&&t(n,r)}),!0);break;case"/or":o=o&&r[a].reduce((function(e,r){return e||t(n,r)}),!1);break;default:var i=r[a];if("object"===e(i))for(var s in i)switch(s){case">":o="number"==typeof n[a]&&"number"==typeof i[s]?o&&n[a]>i[s]:"string"==typeof n[a]&&"string"==typeof i[s]&&o&&0<n[a].localeCompare(i[s]);break;case">=":o="number"==typeof n[a]&&"number"==typeof i[s]?o&&n[a]>=i[s]:"string"==typeof n[a]&&"string"==typeof i[s]&&o&&0<=n[a].localeCompare(i[s]);break;case"<":o="number"==typeof n[a]&&"number"==typeof i[s]?o&&n[a]<i[s]:"string"==typeof n[a]&&"string"==typeof i[s]&&o&&n[a].localeCompare(i[s])<0;break;case"<=":o="number"==typeof n[a]&&"number"==typeof i[s]?o&&n[a]<=i[s]:"string"==typeof n[a]&&"string"==typeof i[s]&&o&&n[a].localeCompare(i[s])<=0;break;case"=":o=o&&n[a]===i[s];break;case"!=":o=o&&n[a]!==i[s];break;case"/in":o=o&&Array.isArray(i[s])&&0<=i[s].indexOf(n[a]);break;case"/nin":o=o&&Array.isArray(i[s])&&i[s].indexOf(n[a])<0;break;case"/like":o=o&&"string"==typeof i[s]&&"string"==typeof n[a]&&0<=n[a].indexOf(i[s]);break;case"/nlike":o=o&&"string"==typeof i[s]&&"string"==typeof n[a]&&n[a].indexOf(i[s])<0;break;case"/regex":o=o&&i[s]instanceof RegExp&&i[s].test(n[a]);break;case"/where":o=o&&i[s](n[a]);break;default:o=o&&L(n[a],i)}else o=o&&n[a]===i}if(!o)break}return o}(t,this.condition)}}]),t}();"undefined"==typeof Promise&&(Promise=d);var G=new M,K=new M,$=new M,Y=window?window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.msIndexedDB:null,W=function(){function e(t,n){if(g(this,e),!Y)throw new Error("IndexedDB is not supported in this environment. Check if you're in web browser which supports IndexedDB.");this.name=t,this.version=n,G.set(this,{}),K.set(this,null),$.set(this,{})}return o(e,null,[{key:"Query",get:function(){return j}}]),o(e,[{key:"schema",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=G.get(this);return n[e]=t,this}},{key:"build",value:function(){var e=this,b=G.get(this),t=$.get(this);return new Promise((function(a,n){var r=Y.open(e.name,e.version);r.onerror=function(e){n(new Error("IndexedDB is not available: ".concat(e.target.errorCode)))},r.onupgradeneeded=function(n){var r=n.target.result,o=n.target.transaction,l=r.objectStoreNames;for(var a in b){var i=b[a].key||"id",s=null;try{s=o.objectStore(a)}catch(n){"NotFoundError"===n.name&&(s=r.createObjectStore(a,{keyPath:i}))}if(s){for(var c=[],u=0;u<s.indexNames.length;u++)c.push(s.indexNames[u]);var h=new V(r,a,i);if(b[a].index&&0<b[a].index.length)for(var d in b[a].index){var f=z(b[a].index[d]);if(f){var m=!1;for(var A in c)if(c[A]===f){m=!0;break}if(!m){var g=Object.keys(b[a].index[d]);s.createIndex(f,N()?g:g[g.length-1],{unique:!1}),c.push(f)}}}var y=[];if(b[a].index)for(var v in b[a].index){var _=z(b[a].index[v]);_&&y.push(_)}for(var p=0;p<c.length;p++)y.indexOf(c[p])<0&&s.deleteIndex(c[p]);t[a]=h}}for(var w=0;w<l.length;w++)Object.keys(b).indexOf(l.item(w))<0&&r.deleteObjectStore(l.item(w));K.set(e,r)},r.onsuccess=function(n){var r=n.target.result;for(var o in b)if(!t[o]){var l=b[o].key||"id";t[o]=new V(r,o,l)}K.set(e,r),a()}}))}},{key:"close",value:function(){var e=K.get(this);e&&(e.close(),K.set(this,null))}},{key:"drop",value:function(){Y.deleteDatabase(this.name)}},{key:"collection",value:function(e){var t=$.get(this);return t[e]&&t[e]instanceof V?t[e]:null}}]),e}();function X(t,n){var r=e(t),o=e(n);return!t||!n||"object"!==r||r!==o||t instanceof Date?t instanceof Date?t.getTime()===n.getTime():"function"===r&&"function"===o||t===n:Object.keys(t).length===Object.keys(n).length&&Object.keys(t).every((function(e){return X(t[e],n[e])}))}function J(e,t,a){if(!t)return new Promise((function(t,n){e((function(e,r){a&&"function"==typeof a&&a(),e?n(e):t(r)}))}));e((function(e,n){a&&"function"==typeof a&&a(),t(e,n)}))}"undefined"==typeof Promise&&(Promise=d);var Z=function(){function t(e){g(this,t),this.condition=e,this.offset=0,this.limit=1/0,this.index=null,this.desc=!1}return o(t,null,[{key:"and",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0<n.length?new t({"/and":n}):new t({})}},{key:"or",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0<n.length?new t({"/or":n}):new t({})}},{key:"Order",get:function(){return{ASC:1,DESC:-1}}}]),o(t,[{key:"match",value:function(t){return function t(n,r){var o=!0;for(var a in r){switch(a){case"/and":o=o&&r[a].reduce((function(e,r){return e&&t(n,r)}),!0);break;case"/or":o=o&&r[a].reduce((function(e,r){return e||t(n,r)}),!1);break;default:var i=r[a];if("object"===e(i))for(var s in i)switch(s){case">":o="number"==typeof n[a]&&"number"==typeof i[s]?o&&n[a]>i[s]:"string"==typeof n[a]&&"string"==typeof i[s]&&o&&0<n[a].localeCompare(i[s]);break;case">=":o="number"==typeof n[a]&&"number"==typeof i[s]?o&&n[a]>=i[s]:"string"==typeof n[a]&&"string"==typeof i[s]&&o&&0<=n[a].localeCompare(i[s]);break;case"<":o="number"==typeof n[a]&&"number"==typeof i[s]?o&&n[a]<i[s]:"string"==typeof n[a]&&"string"==typeof i[s]&&o&&n[a].localeCompare(i[s])<0;break;case"<=":o="number"==typeof n[a]&&"number"==typeof i[s]?o&&n[a]<=i[s]:"string"==typeof n[a]&&"string"==typeof i[s]&&o&&n[a].localeCompare(i[s])<=0;break;case"=":o=o&&n[a]===i[s];break;case"!=":o=o&&n[a]!==i[s];break;case"/in":o=o&&Array.isArray(i[s])&&0<=i[s].indexOf(n[a]);break;case"/nin":o=o&&Array.isArray(i[s])&&i[s].indexOf(n[a])<0;break;case"/like":o=o&&"string"==typeof i[s]&&"string"==typeof n[a]&&0<=n[a].indexOf(i[s]);break;case"/nlike":o=o&&"string"==typeof i[s]&&"string"==typeof n[a]&&n[a].indexOf(i[s])<0;break;case"/regex":o=o&&i[s]instanceof RegExp&&i[s].test(n[a]);break;case"/where":o=o&&i[s](n[a]);break;default:o=o&&X(n[a],i)}else o=o&&n[a]===i}if(!o)break}return o}(t,this.condition)}}]),t}();"undefined"==typeof Promise&&(Promise=d);var ee=null,te=function(){function e(){if(g(this,e),ee)return ee;(ee=this).queries=[],this.executing=!1,this.intervalID=null}return o(e,[{key:"addTask",value:function(e,t){var a=this;return new Promise((function(n,r){a.queries.push({task:e,cb:t,resolve:n,reject:r}),a._delay(),a.executeTask()}))}},{key:"executeTask",value:function(){var e=this;if(0<this.queries.length&&!this.executing){this.executing=!0;var t=this.queries[0].task,n=this.queries[0].cb,r=this.queries[0];return new Promise((function(e,n){t((function(t,r){t?n(t):e(r)}))})).then((function(e){r.resolve(e),n&&n(null,e)}
2)).catch((function(e){r.reject(e),n&&n(e)})).finally((function(){e._executeNext()}))}return Promise.resolve(!0)}},{key:"_delay",value:function(){}},{key:"_executeNext",value:function(){var e=this;if(this.executing=!1,0<this.queries.length)return this.queries=this.queries.slice(1),new Promise((function(t,n){e._delay(),t(e.executeTask())}))}},{key:"start",value:function(){}},{key:"stop",value:function(){}}],[{key:"getInstance",value:function(){return new e}}]),e}();"undefined"==typeof Promise&&(Promise=d);var ne=function(){function t(e,n){g(this,t),this.name=e,this.pk=n,this.store={},this.columns=[],this.queue=te.getInstance(),this.queue.start()}return o(t,[{key:"findById",value:function(e,t){var n=this;return this.queue.addTask((function(t){e?("string"!=typeof e&&(e=JSON.stringify(e)),n.store.hasOwnProperty(e)?t(null,n.store[e]):t(null,null)):t(new Error("Invalid type: 'id' should not be empty."))}),t)}},{key:"findOne",value:function(e,t){return e.limit=1,this.find(e,t)}},{key:"find",value:function(s,e){var t=this;return this.queue.addTask((function(e){if(s instanceof Z){var n=[],r=Object.keys(t.store).map((function(e){return t.store[e]}));for(var o in r){var a=r[o];s.match(a)&&n.push(a)}s.index&&"Message"!==t.name&&n.sort((function(e,t){for(var n in s.index){if(e[n]>t[n])return s.index[n];if(e[n]<t[n])return-1*s.index[n]}return 0})),s.desc&&n.reverse();var i=s.offset||0;e(null,0<=s.limit&&n.length>=s.limit?n.slice(i,s.limit+i):n.slice(i))}else e(new Error("Invalid type: 'query' should be Query type."))}),e)}},{key:"count",value:function(i,e){var s=this;return this.queue.addTask((function(e){if(!i||i instanceof Z)if(i){var t=0,n=i.offset||0;for(var r in s.store){if(t>=i.limit)break;var a=s.store[r];i.match(a)&&(n<=0?t+=1:n--)}e(null,t)}else e(null,Object.keys(s.store).length);else e(new Error("Invalid type: 'query' should be Query type."))}),e)}},{key:"_insertSingle",value:function(e,t){var n=this;return J((function(t){if(e[n.pk]){var r="".concat(e[n.pk]);n.store.hasOwnProperty(r)?t(new Error("Duplicated item: item already exists.")):t(null,n.store[r]=e)}else t(new Error("Invalid key: item should have key."))}),t)}},{key:"insert",value:function(t,n){var a=this;return this.queue.addTask((function(n){if(Array.isArray(t)){for(var r=[],o=0;o<t.length;o++)t[o]&&"object"===e(t[o])&&r.push(a._insertSingle(t[o]));t.length===r.length?Promise.all(r).then((function(){n(null,t)})).catch((function(e){n(e)})):n(new Error("Invalid type: 'item' should hold objects if it's an array."))}else t&&"object"===e(t)?a._insertSingle(t,(function(e,t){n(e,t)})):n(new Error("Invalid type: 'item' should be an object or an object array."))}),n)}},{key:"_upsertSingle",value:function(e,t){var n=this;return J((function(t){if(e[n.pk]){var r="".concat(e[n.pk]);t(null,n.store[r]=e)}else t(new Error("Invalid key: item should have key."))}),t)}},{key:"upsert",value:function(t,n){var a=this;return this.queue.addTask((function(n){if(Array.isArray(t)){for(var r=[],o=0;o<t.length;o++)t[o]&&"object"===e(t[o])&&r.push(a._upsertSingle(t[o]));t.length===r.length?Promise.all(r).then((function(){n(null,t)})).catch((function(e){n(e)})):n(new Error("Invalid type: 'item' should hold objects if it's an array."))}else t&&"object"===e(t)?a._upsertSingle(t,(function(e,t){n(e,t)})):n(new Error("Invalid type: 'item' should be an object or an object array."))}),n)}},{key:"_updateSingle",value:function(e,t){var n=this;return J((function(t){if(e[n.pk]){var r="".concat(e[n.pk]);n.store.hasOwnProperty(r)?t(null,n.store[r]=e):t(new Error("Invalid key: no item with such key was found"))}else t(new Error("Invalid key: item should have key."))}),t)}},{key:"update",value:function(t,n){var a=this;return this.queue.addTask((function(n){if(Array.isArray(t)){for(var r=[],o=0;o<t.length;o++)t[o]&&"object"===e(t[o])&&r.push(a._updateSingle(t[o]));t.length===r.length?Promise.all(r).then((function(){n(null,t)})).catch((function(e){n(e)})):n(new Error("Invalid type: 'item' should hold objects if it's an array."))}else t&&"object"===e(t)?a._updateSingle(t,(function(e,t){n(e,t)})):n(new Error("Invalid type: 'item' should be an object or an object array."))}),n)}},{key:"updateIf",value:function(s,e,t){var u=this;return this.queue.addTask((function(t){if(s instanceof Z){var n=[];for(var r in u.store){var o=u.store[r];
2if(s.match(o))for(var a in e){var i=e[a];X(o[a],i)||(o[a]=i,n.push(o))}}t(null,n)}else t(new Error("Invalid type: 'query' should be Query type."))}),t)}},{key:"remove",value:function(e,t){var n=this;return this.queue.addTask((function(t){e?(e="".concat(e),n.store.hasOwnProperty(e)?(delete n.store[e],t(null)):t(new Error("Invalid key: no item with such key was found"))):t(new Error("Invalid type: 'id' should be string type."))}),t)}},{key:"removeIf",value:function(a,e){var i=this;return this.queue.addTask((function(e){if(a instanceof Z){var t=[];for(var n in i.store){var r=i.store[n];a.match(r)&&(t.push(r),delete i.store[n])}e(null,t)}else e(new Error("Invalid type: 'query' should be Query type."))}),e)}},{key:"clear",value:function(e){var t=this;return this.queue.addTask((function(e){t.store={},e(null)}),e)}}]),t}();"undefined"==typeof Promise&&(Promise=d);var re=new M,ie=new M,se=function(){function e(t,n){g(this,e),this.name=t,this.version=n,re.set(this,{}),ie.set(this,{}),te.getInstance().start()}return o(e,null,[{key:"Query",get:function(){return Z}}]),o(e,[{key:"schema",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=re.get(this);return n[e]=t,this}},{key:"build",value:function(){var a=re.get(this),i=ie.get(this);return new Promise((function(e,t){for(var n in a)if(!i[n]){var r=a[n].key||"_id";i[n]=new ne(n,r)}e()}))}},{key:"close",value:function(){}},{key:"drop",value:function(){re.set(this,{});var e=ie.get(this);for(var t in e)e[t].clear();ie.set(this,{})}},{key:"collection",value:function(e){var t=ie.get(this);return t[e]&&t[e]instanceof ne?t[e]:null}}]),e}();function ae(s,e){function a(e,t){var n=Ct.getInstance();n.currentUserId?(e.ownerUserId=n.currentUserId,e.lastMessageUpdatedAt=e.lastMessage?e.lastMessage.createdAt:e.createdAt,me.cache("upsert channel","url="+e.url,"name="+e.name,"createdAt="+e.createdAt,"lastMessageUpdatedAt="+e.lastMessageUpdatedAt),u.upsert(e.serialize(),t)):t(Ae.create(Ae.Type.ERROR_SETUP_MISSING))}function t(t){if(t){var n=e.GroupChannel.buildFromSerializedData(t);return n.lastMessageUpdatedAt=n.lastMessage?n.lastMessage.createdAt:n.createdAt,n}return null}var n=this,u=s.collection("GroupChannel");return this.query=function(e,n,i){var r=Ct.getInstance();if(r.currentUserId){e.ownerUserId=r.currentUserId;var o=new Ct.LocalDB.Query(e);n&&(o.offset=n.offset||0,o.limit=n.limit||20,o.index=n.index,o.desc=n.desc),u.find(o,(function(e,n){if(e)i(e);else{for(var r=[],o=0;o<n.length;o++){var a=t(n[o]);r.push(a)}i(null,r)}}))}else i(Ae.create(Ae.Type.ERROR_SETUP_MISSING))},this.insert=function(e,t){n.getItem(e.url,(function(n,r){n?t(n):r?t(null,e):a(e,(function(n){n?t(n):t(null,e)}))}))},this.upsert=function(e,n){a(e,(function(e,r){e?n(e):n(null,t(r))}))},this.remove=function(e,n){var r,a,i;r=e,a=function(e,r){e?n(e):n(null,t(r))},(i=Ct.getInstance()).currentUserId?(me.cache("remove channel",r.url),u.remove(r.url,(function(e,t){if(e)a(e);else{var n=new Ct.LocalDB.Query({ownerUserId:i.currentUserId,channelUrl:r.url});s.collection("MessageChunk").removeIf(n,(function(e){e?a(e):s.collection("Message").removeIf(n,(function(e){e?a(e):a(null,t)}))}))}}))):a(Ae.create(Ae.Type.ERROR_SETUP_MISSING))},this.getItem=function(e,n){u.findById(e,(function(e,r){e?n(e):n(null,t(r))}))},this.clear=function(e){return t=e,me.cache("clear channel"),void u.clear((function(e){e?t(e):s.collection("MessageChunk").clear((function(e){e?t(e):s.collection("Message").clear(t)}))}));var t},this}function oe(e,t){var i=this,s=e.collection("GroupChannelListQuery"),n=function(e){if(e){var n=t.GroupChannelListQuery.buildFromSerializedData(e);return n.filterKey=e.filterKey,n.ownerUserId=e.currentUserId,n.updatedAt=e.updatedAt,n.savepoint=e.savepoint,
2n}return null};return this.createFilterKey=function(e){var t=[];return t.push("order=".concat(e.order)),t.push("includeEmpty=".concat(e.includeEmpty)),t.push("customTypesFilter=".concat(e.customTypesFilter.sort().join(","))),t.join("&")},this.upsert=function(e,t){!function(e,a){e.filterKey=i.createFilterKey(e);var t=Ct.getInstance();if(t.currentUserId){me.cache("upsert channel list query",e.filterKey),e.ownerUserId=t.currentUserId,e.updatedAt=(new Date).getTime(),e.savepoint||(e.savepoint="");var r=e.serialize();s.upsert(r,(function(t,r){if(t)a(t);else{if(ge[e.filterKey])for(var o in e)ge[e.filterKey].hasOwnProperty(o)&&(ge[e.filterKey][o]=e[o]);else ge[e.filterKey]=e;a(null,n(r))}}))}else a(Ae.create(Ae.Type.ERROR_SETUP_MISSING))}(e,(function(e,r){e?t(e):t(null,n(r))}))},this.remove=function(e,t){var r,a;r=e,a=function(e,r){e?t(e):t(null,n(r))},Ct.getInstance().currentUserId?(me.cache("remove channel list query",r.filterKey),s.remove(r.filterKey,(function(e,t){e?a(e):(ge[r.filterKey]&&delete ge[r.filterKey],a(null,t))}))):a(Ae.create(Ae.Type.ERROR_SETUP_MISSING))},this.getItem=function(e,t){ge[e]?t(null,ge[e]):s.findById(e,(function(e,r){e?t(e):t(null,n(r))}))},this.clear=function(e){return t=e,me.cache("clear channel list query"),ge={},void s.clear((function(e){return t(e)}));var t},this}"undefined"==typeof Promise&&(Promise=d);var le=null,ce=!1,ue=function(){function e(){g(this,e)}return o(e,null,[{key:"init",value:function(){le=le||(window?window.localStorage:null)}},{key:"useReactNative",value:function(e){le=e,ce=!0}},{key:"getKeys",value:function(){return ce?le.getAllKeys():new Promise((function(e){var t=[];for(var n in le)t.push(n);e(t)}))}},{key:"get",value:function(e){return ce?le.getItem(e):new Promise((function(t){var n=le.getItem(e);t(void 0!==n?n:null)}))}},{key:"set",value:function(e,t){return ce?le.setItem(e,t):new Promise((function(n){le.setItem(e,t),n()}))}},{key:"remove",value:function(e){return ce?le.removeItem(e):new Promise((function(t){le.removeItem(e),t()}))}},{key:"clear",value:function(){return ce?le.clear():new Promise((function(e){le.clear(),e()}))}}]),e}(),he=98765,de={NONE:0,ERROR:1,WARNING:2,INFO:3},pe=de.NONE,fe="",me=function(){function e(){g(this,e)}return o(e,null,[{key:"isValidLevel",value:function(e){return-1<Object.keys(de).map((function(e){return de[e]})).indexOf(e)}},{key:"_permit",value:function(e,t){if(e<=pe){var n="";switch(e){case de.ERROR:n="error";break;case de.WARNING:n="warning";break;case de.INFO:case he:n="log";break;default:n=""}if(console&&console[n]){for(var r,a,i="".concat(fe," ").concat(t||""," "),s=arguments.length,o=new Array(2<s?s-2:0),u=2;u<s;u++)o[u-2]=arguments[u];
2"string"==typeof o[0]?(o[0]=i+o[0],(r=console)[n].apply(r,o)):(a=console)[n].apply(a,[i].concat(o))}}}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._permit.apply(e,[de.ERROR,"[ERROR]"].concat(n))}},{key:"warning",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._permit.apply(e,[de.WARNING,"[WARNING]"].concat(n))}},{key:"info",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._permit.apply(e,[de.INFO,"[INFO]"].concat(n))}},{key:"call",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._permit.apply(e,[he,"[CALL]"].concat(n))}},{key:"event",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._permit.apply(e,[he,"[EVENT]"].concat(n))}},{key:"view",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._permit.apply(e,[he,"[VIEW]"].concat(n))}},{key:"message",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._permit.apply(e,[he,"[MESSAGE]"].concat(n))}},{key:"cache",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._permit.apply(e,[he,"[CACHE]"].concat(n))}},{key:"sync",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._permit.apply(e,[he,"[SYNC]"].concat(n))}},{key:"level",set:function(e){var t=Object.keys(de).map((function(e){return de[e]}));t.push(he),-1<t.indexOf(e)&&(pe=e)},get:function(){return pe}},{key:"prefix",set:function(e){"string"==typeof e&&(fe=e)}}]),e}(),Ae=function(){function e(t,n){var r;return g(this,e),(r=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,a(e).call(this,t))).name="SyncManagerException",r.code=n||0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(e,l(Error)),o(e,null,[{key:"create",value:function(t){var n=0<arguments.length&&void 0!==t?t:e.Type.ERROR_UNKNOWN;return new e(n.message,n.code)}},{key:"throw",value:function(e){me.error(e)}},{key:"Type",get:function(){return{ERROR_UNKNOWN:{code:81e4,message:"Unknown error occurred."},ERROR_DATABASE_IO:{code:810001,message:"Database I/O operation failed."},ERROR_SETUP_MISSING:{code:810100,message:"SendBirdSyncManager.setup() is not called."},ERROR_SENDBIRD_MISSING:{code:810101,message:"SendBird instance should be set before init()."},ERROR_DUPLICATED_FETCH:{code:810200,message:"Fetch is in progress."},ERROR_DUPLICATED_CHANGELOG_SYNC:{code:810210,message:"Sync is in progress."},ERROR_INVALID_PARAMETER:{code:810300,message:"Invalid parameter."}}}}]),e}(),ge={};function ye(e,t){return(1<arguments.length&&void 0!==t?t:[]).map((function(e){return e.url})).indexOf(e.url)}function ve(e,t,n){var r=2<arguments.length&&void 0!==n?n:[],a=null,i=function(e,t){return t<e};switch(t.order){case"latest_last_message":a="lastMessageUpdatedAt";break;case"chronological":a="createdAt";break;case"channel_name_alphabetical":a="name",i=function(e,t){return e.localeCompare(t)<0};break;default:a="lastMessageUpdatedAt"}var s=ye(e,r);s<0&&(s=r.length);for(var o=0;o<r.length;o++){var u=r[o];if(e[a]===u[a]&&e.url===u.url){s=o;break}if(i(e[a],u[a])){s=o;break}}return s}function _e(e,t){for(var n=1<arguments.length&&void 0!==t?t:[],r=0;r<n.length;r++)if(e.isIdentical(n[r]))return r;return-1}function be(e,t){for(var n=1<arguments.length&&void 0!==t?t:[],r=n.length,a=0;a<n.length;a++)if(n[a].createdAt>=e.createdAt){r=a;break}return r}function we(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}function xe(e,t){if(!t)return new Promise((function(t,n){e((function(e){return e?n(e):t()}))}));e(t)}function Ee(e){return"".concat("unsent","-").concat(e)}function Ce(e){if(e)if(e.requestState&&"succeeded"!==e.requestState){if(!e.reqId)throw Ae.throw(Ae.create(Ae.Type.ERROR_INVALID_PARAMETER));e.messageId=Ee(e.reqId)}else e.messageId="".concat(e.messageId)}function Se(e,t){function s(e,t){var n=Ct.getInstance(),l=e.isDeleted?e:o(e.serialize());Ce(l),l.messageId?n.currentUserId?(l.hasOwnProperty("isVisible")||(l.isVisible=!0),l.hasOwnProperty("isDeleted")||(l.isDeleted=!1),l.ownerUserId=n.currentUserId,me.cache("upsert message",l.messageId,l.createdAt,l.reqId,"owner="+l.ownerUserId,"visible="+l.isVisible,"deleted="+l.isDeleted),r.findById(l.messageId,(function(e,n){e?t(e):n?n.isDeleted?t(null,n):(l.isVisible=l.isVisible||n.isVisible,r.upsert(l.serialize(),(function(e,n){e?t(e):t(null,n)}))):r.upsert(l.serialize(),(function(e,n){e?t(e):t(null,n)}))}))):t(Ae.create(Ae.Type.ERROR_SETUP_MISSING)):t(null,e)}function n(e,t){return t.messageType&&(e.messageType=t.messageType),t.customType&&(e.customType=t.customType),t.senderUserIdsFilter&&0<t.senderUserIdsFilter.length&&(e["
2sender.userId"]={"/in":t.senderUserIdsFilter}),e}var u=this,r=e.collection("Message"),o=function(e){var n,r=null;return e&&("user"===e.messageType?r=t.UserMessage.buildFromSerializedData(e):"file"===e.messageType?r=t.FileMessage.buildFromSerializedData(e):"admin"===e.messageType&&(r=t.AdminMessage.buildFromSerializedData(e))),r&&(n=r)&&(n.requestState&&"succeeded"!==n.requestState?n.messageId=0:n.messageId=parseInt(n.messageId)),r};return this.query=function(e,t,i){e.isVisible=!0,e.isDeleted=!1;var n=Ct.getInstance();if(n.currentUserId){e.ownerUserId=n.currentUserId;var l=new Ct.LocalDB.Query(e);t&&(l.offset=t.offset||0,l.limit=t.limit||50,l.desc=t.desc),l.index={ownerUserId:Ct.LocalDB.Query.Order.ASC,channelUrl:Ct.LocalDB.Query.Order.ASC,createdAt:Ct.LocalDB.Query.Order.DESC},r.find(l,(function(e,t){if(e)i(e);else{for(var n=[],r=0;r<t.length;r++){var a=o(t[r]);n.push(a)}i(null,n)}}))}else i(Ae.create(Ae.Type.ERROR_SETUP_MISSING))},this.find=function(e,t){r.find(e,t)},this.count=function(e,t){r.count(e,t)},this.upsert=function(e,t){e?s(e,(function(e,n){e?t(e):t(null,o(n))})):t(null)},this.remove=function(a,i){u.getItem(a,(function(e,t){var n=Ct.getInstance();s({messageId:a,isDeleted:!0,serialize:function(){return{messageId:"".concat(a),ownerUserId:t?t.ownerUserId:n.currentUserId,channelUrl:t?t.channelUrl:"",createdAt:t?t.createdAt:0,requestState:t?t.requestState:"succeeded",isVisible:!1,isDeleted:!0}}},(function(e){e?i(e):i(null,a)}))}))},this.removeUnsent=function(e,a){var t=Ee(e);u.getItem(t,(function(e,t){var n,o;e?a(e):t?(n=t,o=a,Ct.getInstance().currentUserId?(me.cache("remove message",n.messageId),Ce(n),r.remove(n.messageId,o)):o(Ae.create(Ae.Type.ERROR_SETUP_MISSING))):a(null)}))},this.removeExpiredMessages=function(e,t){var n=(new Date).getTime()-864e5*e,o=new Ct.LocalDB.Query({ownerUserId:Ct.getInstance().currentUserId,requestState:"failed",createdAt:{"<":n}});o.limit=Number.MAX_SAFE_INTEGER,o.index={ownerUserId:Ct.LocalDB.Query.Order.ASC,createdAt:Ct.LocalDB.Query.Order.ASC},r.removeIf(o,t)},this.loadMessagesByHistoryOffset=function(e,t,n){var r={channelUrl:t,createdAt:{"<":e},ownerUserId:Ct.getInstance().currentUserId},a={};a.limit=Number.MAX_SAFE_INTEGER,a.desc=!0,u.query(r,a,n)},this.clearMessagesByHistoryOffset=function(e,t,n){var o=new Ct.LocalDB.Query({channelUrl:t,ownerUserId:Ct.getInstance().currentUserId,createdAt:{"<":e}});o.limit=Number.MAX_SAFE_INTEGER,o.index={ownerUserId:Ct.LocalDB.Query.Order.ASC,channelUrl:Ct.LocalDB.Query.Order.ASC,createdAt:Ct.LocalDB.Query.Order.DESC},r.removeIf(o,n)},this.getItemWithVisibility=function(e,t){r.findById(e,(function(e,n){e?t(e):t(null,{item:o(n),isVisible:!!n&&n.isVisible})}))},this.getItem=function(e,t){r.findById(e,(function(e,n){e?t(e):t(null,o(n))}))},this.clear=function(e){return t=e,me.cache("clear messages"),void r.clear((function(e){return t(e)}));var t},this.loadPreviousSucceededMessages=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:(new Date).getTime(),o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},a=4<arguments.length?arguments[4]:void 0,i={channelUrl:e,requestState:{"!=":"failed"},createdAt:{"<=":r}};n(i,t),o.desc=!0,u.query(i,o,a)},this.loadNextSucceededMessages=function(e){var t=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},r=4<arguments.length?arguments[4]:void 0,o={channelUrl:e,requestState:{"!=":"failed"},createdAt:{">=":2<arguments.length&&void 0!==arguments[2]?arguments[2]:0}};n(o,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),t.desc=!1,u.query(o,t,r)},this.loadFailedMessages=function(e){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=3<arguments.length?arguments[3]:void 0,o={channelUrl:e,requestState:"failed"};n(o,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),t.limit=Number.MAX_SAFE_INTEGER,t.desc=!0,u.query(o,t,r)},this.loadOldestFailedMessages=function(e){var t={requestState:"failed"};n(t,{});var r={limit:Number.MAX_SAFE_INTEGER,desc:!1};u.query(t,r,e)},this}function Te(e){var t=[];for(var n in e)t.push("".concat(n,"=").concat(e[n]));return t.join("&")}function Be(e){var t=this,u=e.collection("MessageChunk");return this.reload=function(e,t){return u.findById(e.chunkId,t)},this.upsert=function(e,t){var n,r,a;n=e,r=function(e,n){e?t(e):t(null,Ie.createFromJson(n))},(a=Ct.getInstance()).currentUserId?(n.ownerUserId=a.currentUserId,ke[n.chunkId]=n,u.upsert(ke[n.chunkId].serialize(),(function(e,t){e?r(e):r(null,t)}))):r(Ae.create(Ae.Type.ERROR_SETUP_MISSING))},this.remove=function(e,t){var n,r;n=e,r=function(n){n?t(n):t(null,e)},Ct.getInstance().currentUserId?(ke[n]&&delete ke[n],u.remove(n,(function(e,t){r(e||null)}))):r(Ae.create(Ae.Type.ERROR_SETUP_MISSING))},this.clear=function(e){return t=e,ke={},void u.clear((function(e){return t(e)}));var t},this.getChunksByHistoryOffset=function(e,t,n){var r=Ct.getInstance(),a=Ie.getDefaultFilter();if(r.currentUserId){var i=new Ct.LocalDB.Query({ownerUserId:r.currentUserId,channelUrl:t,filterKey:Te(a),endAt:{"<=":e}});i.limit=Number.MAX_SAFE_INTEGER,i.index={ownerUserId:Ct.LocalDB.Query.Order.ASC,channelUrl:Ct.LocalDB.Query.Order.ASC,filterKey:Ct.LocalDB.Query.Order.ASC,endAt:Ct.LocalDB.Query.Order.DESC},u.find(i,n)}},this.clearChunkByHistoryOffset=function(a,e,n){var i=Ct.getInstance(),s=Ie.getDefaultFilter();if(i.currentUserId){var r=new Promise((function(t,n){var r=new Ct.LocalDB.Query({ownerUserId:i.currentUserId,channelUrl:e,filterKey:Te(s),endAt:{"<=":a}});r.limit=Number.MAX_SAFE_INTEGER,r.index={ownerUserId:Ct.LocalDB.Query.Order.ASC,channelUrl:Ct.LocalDB.Query.Order.ASC,filterKey:Ct.LocalDB.Query.Order.ASC,endAt:Ct.LocalDB.Query.Order.DESC},u.removeIf(r,(function(e,r){return e?n(e):t(r)}))})),o=new Promise((function(n,r){t.getChunkByTimestamp(e,s,a,(function(e,o){if(e)return r(e);o&&(o.extendBackward(a),t.upsert(o,(function(e,t){if(e)return r(e);n(t)}))),n(o)}))}));Promise.all([r,o]).then((function(e){n(null)})).catch((function(e){n(e)}))}},this.getChunkByTimestamp=function(e,n,i,s){var r=Ct.getInstance();if(r.currentUserId){var o=new Ct.LocalDB.Query({ownerUserId:r.currentUserId,channelUrl:e,filterKey:Te(n),startAt:{"<=":i},endAt:{">=":i}});o.limit=1,o.index={ownerUserId:Ct.LocalDB.Query.Order.ASC,channelUrl:Ct.LocalDB.Query.Order.ASC,filterKey:Ct.LocalDB.Query.Order.ASC,endAt:Ct.LocalDB.Query.Order.DESC},u.find(o,(function(n,r){if(n)s(n);else{var a=0<r.length?Ie.createFromJson(r[0]):null;if(a)if(a.hasDefaultFilter())s(null,a);else{var o=new Ct.LocalDB.Query({channelUrl:e,filterKey:Te(Ie.getDefaultFilter()),startAt:{"<=":i}});o.limit=1,o.index={ownerUserId:Ct.LocalDB.Query.Order.ASC,channelUrl:Ct.LocalDB.Query.Order.ASC,filterKey:Ct.LocalDB.Query.Order.ASC,endAt:Ct.LocalDB.Query.Order.DESC},u.find(o,(function(e,n){if(e)s(e);else{var r=0<n.length?Ie.createFromJson(n[0]):null;if(r)if(r.endAt>a.endAt)if(r.isOverlap(a))a.extendWithChunk(r),t.upsert(a,s);else{var o=new Ie(a.channelUrl,a.filter);o.startAt=r.startAt,o.endAt=r.endAt,t.upsert(o,s)}else s(null,a);else s(null,a)}}))}else s(null)}}))}else s(Ae.create(Ae.Type.ERROR_SETUP_MISSING))},this.mergePreviousChunkOverlap=function(e,a){var n=Ct.getInstance();if(n.currentUserId){var r=new Ct.LocalDB.Query({ownerUserId:n.currentUserId,chunkId:{"!=":e.chunkId},channelUrl:e.channelUrl,filterKey:e.filterKey,endAt:{">=":e.startAt}});r.limit=1/0,u.find(r,(function(n,r){if(n)a(n);else if(0<r.length){var o=new Ct.LocalDB.Query({chunkId:{"/in":r.map((function(e){return e.chunkId}))}});u.removeIf(o,(function(n){if(n)a(n);else{for(var o=0;o<r.length;o++)e.extendWithChunk(r[o]);t.upsert(e,a)}}))}else t.upsert(e,a)}))}else a(Ae.create(Ae.Type.ERROR_SETUP_MISSING))},this}"undefined"==typeof Promise&&(Promise=d);var ke={},Ie=function(){function t(e,n){g(this,t),this.chunkId=we(),this.channelUrl=e,this.filterKey=Te(n),this.filter=n,this.startAt=(new Date).getTime(),this.endAt=0}return o(t,[{key:"hasDefaultFilter",value:function(){var n=t.getDefaultFilter();return function t(n,r){var o=e(n),a=e(r);return!n||!r||"object"!==o||o!==a||n instanceof Date?n instanceof Date?n.getTime()===r.getTime():"function"===o&&"function"===a||n===r:Object.keys(n).length===Object.keys(r).length&&Object.keys(n).every((function(e){return t(n[e],r[e])}))}(this.filter,n)}},{key:"isOverlap",value:function(e){return e.startAt<=this.startAt&&this.startAt<=e.endAt||e.startAt<=this.endAt&&this.endAt<=e.endAt}},{key:"isSame",value:function(e){return!!e&&e.startAt===this.startAt&&this.endAt===e.endAt}},{key:"contains",value:function(e){return this.startAt<=e&&e<=this.endAt}},{key:"containsMessage",value:function(e){return this.contains(e.createdAt)}},{key:"serialize",value:function(){var e=JSON.parse(JSON.stringify(this));return Object.freeze(e)}},{key:"extendForward",value:function(e){this.endAt=Math.max(this.endAt,e)}},{key:"extendBackward",value:function(e){this.startAt=Math.min(this.startAt,e)}},{key:"extendWithChunk",value:function(e){return this.extendForwardWithChunk(e),this.extendBackwardWithChunk(e),this}},{key:"extendForwardWithChunk",value:function(e){return this.extendForward(e.endAt),this}},{key:"extendBackwardWithChunk",value:function(e){return this.extendBackward(e.startAt),this}},{key:"extendWithMessage",value:function(e){return this.extendForwardWithMessage(e),this.extendBackwardWithMessage(e),this}},{key:"extendForwardWithMessage",value:function(e){return this.extendForward(e.createdAt),this}},{key:"extendBackwardWithMessage",value:function(e){return this.extendBackward(e.createdAt),this}}],[{key:"createFromJson",value:function(e){var n=new t(e.channelUrl,e.filter);return n.chunkId=e.chunkId,n.startAt=e.startAt,n.endAt=e.endAt,n}},{key:"getDefaultFilter",value:function(){return{messageTypeFilter:null,customTypeFilter:null,senderUserIdsFilter:[],includeMetaArray:!0}}},{key:"MessageTypeFilterRealValue",get:function(){return["","user","file","admin"]}}]),t}();function Me(e,t,n){return n?!(t.channelUrl!==e.url||n.messageType&&n.messageType!==t.messageType||n.customType&&n.customType!==t.customType||Array.isArray(n.senderUserIdsFilter)&&0<n.senderUserIdsFilter.length&&t.sender&&n.senderUserIdsFilter.indexOf(t.sender.userId)<0):t.channelUrl===e.url}function Pe(){var e={},t=[];return this.removeChannel=function(e){for(var n in t){var r=t[n];r.controller.channel.url===e.url&&r.view.channelWasRemoved(e)}},this.updateChannel=function(s){for(var n in t){var r=t[n];r.controller.channel.url===s.url&&r.view.channelWasUpdated(s)}(!e.hasOwnProperty(s.url)||s.messageOffsetTimestamp>e[s.url])&&(e[s.url]=s.messageOffsetTimestamp,e[s.url]&&(Ge.getInstance().chunkContainer.clearChunkByHistoryOffset(s.messageOffsetTimestamp,s.url,(function(e){e&&me.error("Error while clearing message chunk history",e)})),Ge.getInstance().messageContainer.loadMessagesByHistoryOffset(s.messageOffsetTimestamp,s.url,(function(e,n){if(!e){Ge.getInstance().messageContainer.clearMessagesByHistoryOffset(s.messageOffsetTimestamp,s.url,(function(e,t){e&&me.error("Error while clearing chat history",e)}));var r=n.filter((function(e){return e.hasOwnProperty("requestState")&&"failed"===e.requestState})).map((function(e){return e.reqId})),o=n.filter((function(e){return e.hasOwnProperty("requestState")&&"succeeded"===e.requestState})).map((function(e){return e.messageId}));if(0<o.length||0<r.length)for(var a in t){var i=t[a];i.controller.channel.url===s.url&&(0<o.length&&i.view.removeViewItems(o),0<r.length&&i.view.removeViewItems(r,{isRequestId:!0}))}}}))))},this.addCollection=function(n,r){t.push({controller:n,view:r}),n.hasOwnProperty("channel")&&n.channel.hasOwnProperty("url")&&(!e.hasOwnProperty(n.channel.url)||n.channel.messageOffsetTimestamp>
2e[n.channel.url])&&(e[n.channel.url]=n.channel.messageOffsetTimestamp)},this.removeCollection=function(e){var n=t.map((function(e){return e.controller})).indexOf(e);0<=n&&(t[n].controller._pause(),t.splice(n,1))},this.clearCollection=function(){for(var e in t)t[e].controller._pause();t=[]},this.pause=function(){for(var e in t)t[e].controller._pause()},this.resume=function(e){var n=t.length,r=null;for(var o in t)t[o].controller._resume((function(t){r=t||r,--n<=0&&e(r)}))},this.upsert=function(e,n){if(0<e.length)for(var r in t){var o=t[r];if(o.controller!==n){var a=[];for(var i in e){var s=e[i];Me(o.controller.channel,s,o.controller.filter)&&a.push(s)}0<a.length&&o.view.addViewItems(a,{isEventMessage:!0,direction:"next"})}}},this.update=function(e,n){if(0<e.length)for(var r in t){var o=t[r];if(o.controller!==n){var a=[];for(var i in e){var s=e[i];Me(o.controller.channel,s,o.controller.filter)&&0<=o.view.messages.map((function(e){return e.messageId})).indexOf(s.messageId)&&a.push(s)}0<a.length&&o.view.addViewItems(a,{isEventMessage:!0,direction:"next"})}}},this.read=function(e,n){for(var r in t){var o=t[r];o.controller!==n&&o.controller.channel.url===e.url&&(o.controller.channel=e,o.view.addViewItems(o.view.messages))}},this.remove=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(0<e.length)for(var o in t){var a=t[o];a.controller!==n&&a.view.removeViewItems(e,r)}},this.clear=function(){for(var n in e={},t)t[n].view.clearViewItem()},this.updateCurrentChunk=function(e){for(var n in t)t[n].view.updateCurrentChunk(e)},this}function De(){this.onChannelEvent=function(e,t){}}function Ue(){this.onPendingMessageEvent=function(e,t){},this.onFailedMessageEvent=function(e,t,n){},this.onSucceededMessageEvent=function(e,t){},this.onNewMessage=function(e){},this.onMessageEvent=function(e,t){},this.onChannelRemoved=function(e){},this.onChannelUpdated=function(e){}}var Oe={INSERT:"insert",UPDATE:"update",MOVE:"move",REMOVE:"remove",CLEAR:"clear"},Fe={INSERT:"insert",UPDATE:"update",REMOVE:"remove",CLEAR:"clear"},Re={NONE:"none",UPDATE_RESEND_FAILED:"update_resend_failed",REMOVE_RESEND_SUCCEEDED:"remove_resend_succeeded",REMOVE_RETENTION_EXPIRED:"remove_retention_expired",REMOVE_EXCEEDED_MAX_COUNT:"remove_exceeded_max_count",REMOVE_MANUAL_ACTION:"remove_manual_action",REMOVE_UNKNOWN:"remove_unknown"},Ne=function(){function a(e){var t=this,n=e.channelUrl;g(this,a),this._resendingTimer=null;var r=!1;Object.defineProperty(this,"_isRunning",{get:function(){return r},set:function(e){r!==(r=e)&&t._toggleResendingInterval()}}),this._clear(),this.collectionReferenceCount=1,this._channelUrl=n}return o(a,[{key:"_clear",value:function(e){var t=0<arguments.length&&void 0!==e?e:{noManualMessages:!1};this._retryCount=0,this._delayTime=0,this._isRunning=!1,t.noManualMessages||(this.manualMessages=[]),this.automaticMessages=[],clearTimeout(this._resendingTimer),this._resendingTimer=null}},{key:"_appendMessagesWithOrder",value:function(e,t){var i=this,n=1<arguments.length&&void 0!==t?t:{},s=n.hasOwnProperty("isAutomatic")?n.isAutomatic:Ct.syncManagerOptions.messageResendPolicy===Ct.Options.MessageResendPolicy.AUTOMATIC;e.forEach((function(e){for(var t=s?i.automaticMessages.length:i.manualMessages.length,n=t,r=0;r<t;r++){var a=s?i.automaticMessages[r]:i.manualMessages[r];if(e.createdAt<a.createdAt){n=r;break}}s?i.automaticMessages.splice(n,0,e):i.manualMessages.splice(n,0,e)}))}},{key:"appendMessages",value:function(e){for(var a=this,t=0===this.automaticMessages.length,i=Ct.syncManagerOptions.messageResendPolicy===Ct.Options.MessageResendPolicy.AUTOMATIC,n=e.length,s=[],r=function(t){var n=e[t],r=[];i&&(r=a.automaticMessages),0<[].concat(c(r),c(a.manualMessages)).filter((function(e){return e.reqId===n.reqId})).length||s.push(n)},o=0;o<n;o++)r(o);this._appendMessagesWithOrder(s),t&&0<this.automaticMessages.length&&this._resendUserMessage()}},{key:"removeMessages",value:function(e){for(var t=this,a=Ct.syncManagerOptions.messageResendPolicy===Ct.Options.MessageResendPolicy.AUTOMATIC,n=e.length,i=!1,r=function(n){var r=e[n];i=!1,a&&(t.automaticMessages=t.automaticMessages.filter((function(e){return e.reqId!==r.reqId||!(i=!0)}))),i||(t.manualMessages=t.manualMessages.filter((function(e){return e.reqId!==r.reqId})))},s=0;s<n;s++)r(s)}},{key:"_resendUserMessage",value:function(){var u=this;if(this._retryCount++,Ct.syncManagerOptions.automaticMessageResendRetryCount!==Ct.Options.INFINITY&&this._retryCount>Ct.syncManagerOptions.automaticMessageResendRetryCount)return this._appendMessagesWithOrder(this.automaticMessages,{isAutomatic:!1}),this.automaticMessages=[],He.getInstance().upsertMessages(this._channelUrl,this.manualMessages),void this._clear({noManualMessages:!0});this._resendingTimer=setTimeout((function(){var i=u.automaticMessages[0];if(i&&u._isRunning){var s=Ge.getInstance(),e=s.sb,t=e.getErrorFirstCallback();
2e.GroupChannel.getChannel(u._channelUrl,(function(e,n){if(t){var r=n;n=e,e=r}n?(u._increaseDelayTime(),u._resendUserMessage()):e.resendUserMessage(i,(function(e,n){if(t){var r=n;n=e,e=r}if(n){if(800110===n.code){var o={reason:Re.REMOVE_UNKNOWN};He.getInstance().removeMessages(u._channelUrl,[i],o),u.removeMessages([i])}else u._increaseDelayTime();u._resendUserMessage()}else{u.removeMessages([i]),u._retryCount=0,u._delayTime=0;var a={reason:Re.REMOVE_RESEND_SUCCEEDED};He.getInstance().removeMessages(u._channelUrl,[i],a),s.messageContainer.upsert(e,(function(e,t){e||s.broadcast.upsert([t]),u._resendUserMessage()}))}}))}))}else u._retryCount=0,u._delayTime=0}),this._delayTime)}},{key:"_increaseDelayTime",value:function(){this._delayTime=1e4===this._delayTime?this._delayTime:this._delayTime+2e3}},{key:"_toggleResendingInterval",value:function(){this._isRunning?this._resendUserMessage():(clearTimeout(this._resendingTimer),this._resendingTimer=null,this._retryCount=0,this._delayTime=0)}},{key:"resumeResending",value:function(){me.call("FailedMessageQueue resumeResending()"),this._retryCount=0,this._delayTime=0,this._isRunning=!0}},{key:"pauseResending",value:function(){me.call("FailedMessageQueue pauseResending()"),this._isRunning=!1}},{key:"increaseCount",value:function(){++this.collectionReferenceCount}},{key:"decreaseCount",value:function(){--this.collectionReferenceCount,0===this.collectionReferenceCount&&this._clear()}}]),a}(),Le=function(){function e(t){var n=t.msec,r=void 0===n?0:n,o=t.isEternal,a=void 0===o||o,i=t.timeoutFn,s=void 0===i?function(){}:i;g(this,e),this.time=r,this.isEternal=a,this.timeoutFn=s,this.checker=null}return o(e,[{key:"reset",value:function(){this.stop(),this.time=0,this.timeoutFn=function(){}}},{key:"start",value:function(){var e=this;if(null===this.checker){var t=(new Date).getTime();this.checker=setTimeout((function(){(new Date).getTime()-t>=e.time&&(e.isEternal?e.start():e.stop(),e.timeoutFn&&"function"==typeof e.timeoutFn&&e.timeoutFn())}),432e5)}}},{key:"stop",value:function(){clearTimeout(this.checker),this.checker=null}}]),e}(),ze=null,He=function(){function e(){if(g(this,e),ze)return ze;this.queueMap={},this.expirationTimer=new Le({msec:864e5*Ct.syncManagerOptions.failedMessageRetentionDays,isEternal:!0,timeoutFn:this.removeExpiredMessages}),this.oldestFailedMessageTs=0,ze=this}return o(e,[{key:"getMessages",value:function(e){return this.queueMap[e]?this.queueMap[e].messages:[]}},{key:"loadFailedMessages",value:function(a,i,s){var e=this;Ge.getInstance().messageContainer.loadFailedMessages(a,{},{},(function(t,n){var r=n;if(!t){me.cache("fetch failed message",n.map((function(e){return e.reqId})));var o=e.queueMap[a];o&&(o.appendMessages(n),o.resumeResending()),r=n.filter((function(e){var t=!0,n=!0,r=!0;if(i.messageTypeFilter&&(t=e.messageType===Ie.MessageTypeFilterRealValue[i.messageTypeFilter]),i.customTypeFilter&&(n=e.customType===i.customTypeFilter),i.senderUserIdsFilter&&Array.isArray(i.senderUserIdsFilter)&&0<i.senderUserIdsFilter.length&&(r=e.sender&&-1<i.senderUserIdsFilter.indexOf(e.sender.userId)),t&&n&&r)return e}))}s(t,r)}))}},{key:"removeExpiredMessages",value:function(e){var a=this;this.expirationTimer.stop();var t=Math.floor(((new Date).getTime()-this.oldestFailedMessageTs)/864e5);if(0!==this.oldestFailedMessageTs&&t<Ct.syncManagerOptions.failedMessageRetentionDays)return this.expirationTimer.start(),void(e&&e());var i=Ge.getInstance(),n=Ct.syncManagerOptions.failedMessageRetentionDays;i.messageContainer.removeExpiredMessages(n,(function(t,n){if(t)return me.error("Fail remove expired failedMessage by failedMessageRetentionDays:",t),a.expirationTimer.start(),void(e&&e());var r={};n.forEach((function(e){var t=e.channelUrl;r[t]&&Array.isArray(r[t])||(r[t]=[]),r[t].push(e)})),Object.keys(r).forEach((function(e){var t=r[e].map((function(e){return e.reqId})),n={isRequestId:!0,reason:Re.REMOVE_RETENTION_EXPIRED};i.broadcast.remove(t,{},n),a.queueMap.hasOwnProperty(e)&&a.queueMap[e].removeMessages(r[e])})),i.messageContainer.loadOldestFailedMessages((function(t,n){t?(me.error("Fail get oldestFailedMessage from DB: ",t),a.oldestFailedMessageTs=0):a.oldestFailedMessageTs=0<n.length?n[0].createdAt:(new Date).getTime(),a.expirationTimer.start(),e&&e()}))}))}},{key:"removeExceedingMaxCount",value:function(e){var a=this,i=Ge.getInstance(),t=new Ct.LocalDB.Query({ownerUserId:Ct.getInstance().currentUserId,channelUrl:e,requestState:"failed"});t.limit=Number.MAX_SAFE_INTEGER,t.index={ownerUserId:Ct.LocalDB.Query.Order.ASC,createdAt:Ct.LocalDB.Query.Order.ASC},i.messageContainer.count(t,(function(e,n){if(e)me.error("Get count about failedMessage by maxFailedMessageCountPerChannel:",e);else{var r=Ct.syncManagerOptions.maxFailedMessageCountPerChannel;r<n&&(t.limit=n-r,i.messageContainer.find(t,(function(e,t){var n={isRequestId:!0,reason:Re.REMOVE_
2EXCEEDED_MAX_COUNT};t.forEach((function(e){var t=e.reqId;i.messageContainer.removeUnsent(t,(function(r){r&&me.error("Fail remove count failedMessage by maxFailedMessageCountPerChannel:",r),i.broadcast.remove([t],{},n),a.queueMap[e.channelUrl].removeMessages([e])}))}))})))}}))}},{key:"upsertMessages",value:function(e,t){var a=this,i=Ge.getInstance(),s=this.queueMap[e];t.forEach((function(t){i.messageContainer.upsert(t,(function(n,r){n||i.broadcast.upsert([r]),s&&s.appendMessages([t]),a.removeExceedingMaxCount(e)}))}))}},{key:"removeMessages",value:function(e,t,n){var r=Ge.getInstance(),a=this.queueMap[e];t.forEach((function(e){e.reqId&&r.messageContainer.removeUnsent(e.reqId,(function(t){t?me.error("deleteMessage()","Failed to delete message from cache: ".concat(e)):(n.isRequestId=!0,r.broadcast.remove([e.reqId],{},n),a&&a.removeMessages([e]))}))}))}},{key:"resume",value:function(){var e=this;me.call("FailedMessageDispatcher resume()"),this.removeExpiredMessages((function(){e.resumeAllQueues()}))}},{key:"pause",value:function(){me.call("FailedMessageDispatcher pause()"),this.pauseAllQueues(),this.expirationTimer.stop()}},{key:"resumeAllQueues",value:function(){var e=this;Object.keys(this.queueMap).forEach((function(t){var n=e.queueMap[t];n&&n.resumeResending()}))}},{key:"pauseAllQueues",value:function(){var e=this;Object.keys(this.queueMap).forEach((function(t){var n=e.queueMap[t];n&&n.pauseResending()}))}},{key:"createQueue",value:function(e){var t=this.queueMap[e];t?t.increaseCount():this.queueMap[e]=new Ne({channelUrl:e}),this.queueMap[e].resumeResending()}},{key:"removeQueue",value:function(e){var t=this.queueMap[e];t&&(t.decreaseCount(),0===t.collectionReferenceCount&&delete this.queueMap[e])}}],[{key:"getInstance",value:function(){return new e}}]),e}();"undefined"==typeof Promise&&(Promise=d);var Qe="last-changeLog-token-",Ve="syncManager_messageManager_channelHandler_"+(new Date).getTime(),je=null,Ge=function(){function i(e){var t=e.sendBird,n=e.db;if(g(this,i),!je){me.call("MessageManager()"),(je=this).sb=t;var r=this.sb;this.messageContainer=new Se(n,r),this.chunkContainer=new Be(n),this.broadcast=new Pe,this.isFetchingChangeLogByChannelUrl={};var a=new r.ChannelHandler;Object.keys(a).forEach((function(s){a[s]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];switch(s){case"onMessageReceived":me.event(s,t[0].url,t[1].messageId,t[1].createdAt,t[1].message),t[1].isVisible=!0,je.messageContainer.upsert(t[1],(function(e,t){e?Ae.throw(e):je.broadcast.upsert([t])}));break;case"onReadReceiptUpdated":me.event(s,t[0].url);var r=t[0];je.broadcast.read(r);break;case"onMessageUpdated":me.event(s,t[0].url,t[1].messageId,t[1].createdAt,t[1].message),t[1].isVisible=!1,je.messageContainer.upsert(t[1],(function(e,t){e?Ae.throw(e):je.broadcast.update([t])}));break;case"onMessageDeleted":var a=t[0],i=t[1];je.messageContainer.getItem(i,(function(e,t){e?Ae.throw(e):(me.event(s,a.url,t.messageId,t.createdAt),je.messageContainer.remove(i,(function(e,n){if(e)Ae.throw(e);else{var r=Ie.getDefaultFilter();je.chunkContainer.getChunkByTimestamp(a.url,r,t.createdAt,(function(e,n){if(!e&&n){var r=new Ct.LocalDB.Query({ownerUserId:Ct.getInstance().currentUserId,channelUrl:a.url,requestState:"succeeded",createdAt:{"<":t.createdAt}});r.index={ownerUserId:Ct.LocalDB.Query.Order.ASC,createdAt:Ct.LocalDB.Query.Order.ASC},r.desc=!0,r.limit=1,je.messageContainer.find(r,(function(e,t){e||(t&&0!==t.length?(n.endAt=t[0].createdAt,je.chunkContainer.upsert(n,(function(e,t){e||je.broadcast.updateCurrentChunk(t)}))):je.chunkContainer.remove(n.chunkId,(function(e){e||je.broadcast.updateCurrentChunk(null)})))}))}})),je.broadcast.remove([parseInt(n)])}})))}))}}})),r.addChannelHandler(Ve,a)}return je}return o(i,[{key:"syncChangeLog",value:function(e,t){var a=this,i=1<arguments.length&&void 0!==t?t:function(){};if(this.isFetchingChangeLogByChannelUrl[e.url])i(Ae.create(Ae.Type.ERROR_DUPLICATED_CHANGELOG_SYNC));else{this.isFetchingChangeLogByChannelUrl[e.url]=!0,me.call("message syncChangeLog()",e.url);var s="".concat(Qe).concat(e.url);ue.get(s).then((function(t){var n="getMessageChangeLogsByToken",r=[];t?(n="getMessageChangeLogsByToken",r.unshift(t)):(n="getMessageChangeLogsByTimestamp",r.unshift((new Date).getTime()-100)),me.call(n),e[n].apply(e,r.concat([function(t,n){if(a.sb.getErrorFirstCallback()){var r=t;t=n,n=r}n?a.isFetchingChangeLogByChannelUrl[e.url]=!1:(me.sync("updated",t.updatedMessages.map((function(e){return e.messageId}))),me.sync("deleted",t.deletedMessageIds),t.updatedMessages.forEac
2h((function(e){je.messageContainer.getItemWithVisibility(e.messageId,(function(t,n){if(!t){var r=n.item;e.isVisible=n.isVisible||!1,je.messageContainer.upsert(e,(function(e,t){e?Ae.throw(e):r&&r.isEqual(t)||je.broadcast.update([t])}))}}))})),t.deletedMessageIds.forEach((function(e){je.messageContainer.remove(e,(function(t){t?Ae.throw(t):je.broadcast.remove([e])}))})),ue.set(s,t.token).then((function(){t.hasMore?a.syncChangeLog(e,i):(a.isFetchingChangeLogByChannelUrl[e.url]=!1,i())})).catch((function(t){a.isFetchingChangeLogByChannelUrl[e.url]=!1,i(t)})))}]))})).catch((function(t){a.isFetchingChangeLogByChannelUrl[e.url]=!1,i(t)}))}}},{key:"start",value:function(){je.broadcast.resume((function(e){e||He.getInstance().resume()}))}},{key:"stop",value:function(){je.broadcast.pause(),He.getInstance().pause()}},{key:"clearCache",value:function(e){je.messageContainer.clear((function(){je.chunkContainer.clear((function(){ue.getKeys().then((function(t){var n=[];t.forEach((function(e){e.startsWith(Qe)&&n.push(ue.remove(e))})),Promise.all(n).then((function(){return e()})).catch((function(t){me.error(t),e(t)}))})).catch((function(t){return e(t)}))}))}))}},{key:"reset",value:function(e){je?(je.broadcast.clear(),je.clearCache(e)):e(null)}}],[{key:"getInstance",value:function(){return je}},{key:"clear",value:function(){je&&je.sb&&(me.message("MessageManager is cleared"),je.broadcast.clearCollection(),je.sb.removeChannelHandler(Ve),je=null)}}]),i}();function Ke(e,t){var n=Ze.getInstance().sb,r=!0;if(e.isGroupChannel()&&!e.isSuper){if(!t.includeEmpty&&!e.lastMessage)return!1;if(t.nicknameContainsFilter){var a=!1;for(var i in e.members)if(0<=e.members[i].nickname.indexOf(t.nicknameContainsFilter)){a=!0;break}if(!a)return!1}if(t.userIdsFilter&&Array.isArray(t.userIdsFilter)&&0<t.userIdsFilter.length){var s=!1,o=e.members.map((function(e){return e.userId})),u=t.userIdsFilterExactMatch,l=t.queryType;if(u?s=o.length===t.userIdsFilter.length&&t.userIdsFilter.every((function(e){return 0<=o.indexOf(e)})):"AND"===l?s=t.userIdsFilter.every((function(e){return 0<=o.indexOf(e)})):"OR"===l&&(s=t.userIdsFilter.reduce((function(e,t){return e||0<=o.indexOf(t)}),!1)),!s)return!1}}if(t.channelNameContainsFilter&&(r=r&&0<=e.name.indexOf(t.channelNameContainsFilter)),0<t.channelUrlsFilter.length&&(r=r&&0<=t.channelUrlsFilter.indexOf(e.url)),t.memberStateFilter!==n.GroupChannel.MemberStateFilter.ALL)switch(t.memberStateFilter){case n.GroupChannel.MemberStateFilter.JOINED:r=r&&"joined"===e.myMemberState&&"joined_only"===n.GroupChannel.MemberStateFilter.JOINED;break;case n.GroupChannel.MemberStateFilter.INVITED:case n.GroupChannel.MemberStateFilter.INVITED_BY_FRIEND:case n.GroupChannel.MemberStateFilter.INVITED_BY_NON_FRIEND:r=r&&"invited"===e.myMemberState&&("invited_only"===n.GroupChannel.MemberStateFilter.INVITED||"invited_by_friend"===n.GroupChannel.MemberStateFilter.INVITED||"invited_by_non_friend"===n.GroupChannel.MemberStateFilter.INVITED)}if(0<t.customTypesFilter.length&&(r=r&&0<=t.customTypesFilter.indexOf(e.customType)),t.customTypeStartsWithFilter&&(r=r&&e.customType.startsWith(t.customTypeStartsWithFilter)),t.superChannelFilter!==n.GroupChannel.SuperChannelFilter.ALL)switch(t.superChannelFilter){case n.GroupChannel.SuperChannelFilter.SUPER:r=r&&e.isSuper;break;case n.GroupChannel.SuperChannelFilter.NONSUPER:r=r&&!e.isSuper}if(t.publicChannelFilter!==n.GroupChannel.PublicChannelFilter.ALL)switch(t.publicChannelFilter){case n.GroupChannel.PublicChannelFilter.PUBLIC:r=r&&e.isPublic;break;case n.GroupChannel.PublicChannelFilter.PRIVATE:r=r&&!e.isPublic}if(t.unreadChannelFilter!=n.GroupChannel.UnreadChannelFilter.ALL)switch(t.unreadChannelFilter){case n.GroupChannel.UnreadChannelFilter.UNREAD_MESSAGE:r=r&&0<e.unreadMessageCount}return r}function qe(){var e=[];return this.addCollection=function(t,n){e.indexOf(t)<0&&e.push({controller:t,view:n})},this.removeCollection=function(t){var n=e.map((function(e){return e.controller})).indexOf(t);0<=n&&(e[n].controller._pause(),e.splice(n,1))},this.clearCollection=function(){for(var t in e)e[t].controller._pause();e=[]},this.pause=function(){for(var t in e)e[t].controller._pause()},this.resume=function(){for(var t in e)e[t].controller._resume()},this.upsert=function(t,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(0<t.length)for(var o in e){var a=e[o];if(a.controller!==n){var i=[];for(var s in t){var l=t[s];Ke(l,a.controller.query)&&i.push(l)}0<i.length&&(r.isEventChannel=!0,a.view.addViewItems(i,r))}}},this.update=function(t,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(0<t.length){for(var o in t){var a=t[o];Ge.getInstance().broadcast.updateChannel(a)}for(var i in e){var s=e[i];if(s.controller!==n){var l=[];for(var u in t){var c=t[u];Ke(c,s.controller.query)&&0<=s.view.channels.map((function(e){return e.url})).indexOf(c.url)&&l.push(c)}0<l.length&&(r.isEventChannel=!0,s.view.addViewItems(l,r))}}}},this.remove=function(t,n){if(0<t.length){for(var r in t){var o=t[r];Ge.getInstance().broadcast.removeChannel(o)}for(var a in e){var i=e[a];if(i.controller!==n){var s=[];for(var l in t){var u=t[l];0<=i.view.channels.map((function(e){return e.url})).indexOf(u.url)&&s.push(u)}0<s.length&&i.view.removeViewItems(s)}}}},this.hide=function(t,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};for(var o in t){var a=t[o];Ge.getInstance().broadcast.updateChannel(a)}if(0<t.length){var i=Ze.getInstance().sb;for(var s in e){var l=e[s];if(l.controller!==n){var u=[];for(var c in t){var h=t[c];Ke(h,l.controller.query)&&u.push(h)}if(0<u.length)switch(l.controller.query.hiddenChannelFilter){case i.GroupChannel.HiddenChannelFilter.UNHIDDEN:l.view.removeViewItems(u);break;case i.GroupChannel.HiddenChannelFilter.HIDDEN:case i.GroupChannel.HiddenChannelFilter.HIDDEN_ALLOW_AUTO_UNHIDE:case i.GroupChannel.HiddenChannelFilter.HIDDEN_PREVENT_AUTO_UNHIDE:r.isEventChannel=!0,l.view.addViewItems(u,r)}}}}},this.unhide=function(t,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};for(var o in t){var a=t[o];Ge.getInstance().broadcast.updateChannel(a)}if(0<t.length){var i=Ze.getInstance().sb;for(var s in e){var l=e[s];if(l.controller!==n){var u=[];for(var c in t){var h=t[c];Ke(h,l.controller.query)&&u.push(h)}if(0<u.length)switch(l.controller.query.hiddenChannelFilter){case i.GroupChannel.HiddenChannelFilter.UNHIDDEN:r.isEventChannel=!0,l.view.addViewItems(u,r);break;case i.GroupChannel.HiddenChannelFilter.HIDDEN:case i.GroupChannel.HiddenChannelFilter.HIDDEN_ALLOW_AUTO_UNHIDE:case i.GroupChannel.HiddenChannelFilter.HIDDEN_PREVENT_AUTO_UNHIDE:l.view.removeViewItems(u)}}}}},this.clear=function(){for(var t in e)e[t].view.clearViewItem()},this}function $e(e){var u=Ze.getInstance();if(u){var t=e.query,n=t.filterKey;return u.channelSyncByFilter[n]||(u.channelSyncByFilter[n]=new tt((function(n,s){me.call("channel syncChannel
2()",t.filterKey,t.hasNext,t._token),t.hasNext?(t.limit=100,t.next((function(i,n){if(u.sb.getErrorFirstCallback()){var r=[i,n];n=r[0],i=r[1]}me.sync("channel",n,i&&0<i.length?"\n"+i.map((function(e){return"\turl="+e.url+" name="+e.name+" createdAt="+e.createdAt+" lastMessageUpdatedAt="+e.lastMessageUpdatedAt})).join("\n"):""),n?s(n):function(){for(var n=it.get(e),r=0,a=null,o=0;o<i.length;o++)u.channelContainer.insert(i[o],(function(e){if(a=a||e,++r===i.length)if(a)s(a);else{var o=n.findChannelEdges(i);o.end&&(t.savepoint=o.end+""),u.queryContainer.upsert(t,(function(e){e?s(e):s(null,{count:i.length,nextTs:0,hasMore:t.hasNext})}))}}));0===i.length&&s(null,{count:0,nextTs:0,hasMore:!1})}()}))):s(null,{count:0,nextTs:0,hasMore:!1})}))),u.channelSyncByFilter[n]}return null}function Ye(e){var t=Ze.getInstance();if(t){if(!t.changeLogSync){var n=e.query;t.changeLogSync=new tt((function(e,r){t.syncChangeLog(n,(function(e){r(e,{count:0,nextTs:0,hasMore:!1})}))}))}return t.changeLogSync}return null}"undefined"==typeof Promise&&(Promise=d);var We="channel-changeLog-token",Xe="syncManager_channelManager_channelHandler_"+(new Date).getTime(),Je=null,Ze=function(){function a(e){var t=e.sendBird,n=e.db;if(g(this,a),!Je){me.call("ChannelManager()");var u=(Je=this).sb=t,r=Ct.getInstance();this.channelContainer=new ae(n,u),this.queryContainer=new oe(n,u),this.broadcast=new qe,this.isFetchingChangeLog=!1,this.channelSyncByFilter={},this.changeLogSync=null;var o=new u.ChannelHandler;Object.keys(o).forEach((function(e){o[e]=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];switch(e){case"onChannelChanged":var l=n[0];me.event(e,l.url),Je.channelContainer.getItem(l.url,(function(e,t){e?Ae.throw(e):Je.channelContainer.upsert(l,(function(e,n){e?Ae.throw(e):t?t.hiddenState!==u.GroupChannel.HiddenState.UNHIDDEN&&l.hiddenState===u.GroupChannel.HiddenState.UNHIDDEN?Je.broadcast.unhide([n]):Je.broadcast.update([n]):Je.broadcast.upsert([n])}))}));break;case"onUserMuted":case"onUserUnmuted":case"onUserUnbanned":case"onChannelFrozen":case"onChannelUnfrozen":case"onMetaDataCreated":case"onMetaDataUpdated":case"onMetaDataDeleted":case"onMetaCountersCreated":case"onMetaCountersUpdated":case"onMetaCountersDeleted":me.event(e,n[0].url),Je.channelContainer.upsert(n[0],(function(e,t){e?Ae.throw(e):Je.broadcast.update([t])}));break;case"onUserReceivedInvitation":case"onUserJoined":me.event(e,n[0].url),Je.channelContainer.upsert(n[0],(function(e,t){e?Ae.throw(e):n[1].userId===r.currentUserId?Je.broadcast.upsert([t]):Je.broadcast.update([t])}));break;case"onReadReceiptUpdated":Je.channelContainer.upsert(n[0],(function(e){e&&Ae.throw(e)}));break;case"onMessageReceived":n[0].lastMessage&&n[0].lastMessage.messageId!==n[1].messageId||Je.channelContainer.upsert(n[0],(function(e,t){e?Ae.throw(e):Je.broadcast.upsert([t])}));break;case"onChannelHidden":me.event(e,n[0].url);var a=n[0];Je.channelContainer.upsert(a,(function(e){e?Ae.throw(e):Je.broadcast.hide([a])}));break;case"onUserLeft":case"onUserBanned":me.event(e,n[0].url);var i=n[0];n[1].userId===r.currentUserId?Je.channelContainer.remove(i,(function(e){e?Ae.throw(e):Je.broadcast.remove([i])})):Je.channelContainer.upsert(i,(function(e,t){e?Ae.throw(e):Je.broadcast.update([t])}));break;case"onUserDeclinedInvitation":me.event(e,n[0].url);var s=n[0];n[2].userId===r.currentUserId?Je.channelContainer.remove(s,(function(e){e?Ae.throw(e):Je.broadcast.remove([s])})):Je.channelContainer.upsert(s,(function(e,t){e?Ae.throw(e):Je.broadcast.update([t])}));break;case"onChannelDeleted":me.event(e,n[0]),Je.channelContainer.getItem(n[0],(function(e,t){e?Ae.throw(e):t&&Je.channelContainer.remove(t,(function(e){e?Ae.throw(e):Je.broadcast.remove([t])}))}))}}})),u.addChannelHandler(Xe,o)}return Je}return o(a,[{key:"syncChangeLog",value:function(e,u){var t=this;if(this.isFetchingChangeLog)u(Ae.create(Ae.Type.ERROR_DUPLICATED_CHANGELOG_SYNC));else{this.isFetchingChangeLog=!0,me.call("channel syncChangeLog()");var n="".concat(We);ue.get(n).then((function(r){var o,l="getMyGroupChannelChangeLogsByToken",c=[];c.push([]),c.push(!0),r?(l="getMyGroupChannelChangeLogsByToken",c.unshift(r)):(l="getMyGroupChannelChangeLogsByTimestamp",c.unshift((new Date).getTime()-100)),me.call(l),(o=t.sb)[l].apply(o,c.concat([function(s,r){if(t.sb.getErrorFirstCallback()){var o=s;
2s=r,r=o}if(r)t.isFetchingChangeLog=!1;else{me.sync("updated",s.updatedChannels&&0<s.updatedChannels.length?"\n"+s.updatedChannels.map((function(e){return"\turl="+e.url+" name="+e.name+" createdAt="+e.createdAt+" lastMessageUpdatedAt="+e.lastMessageUpdatedAt})).join("\n"):[]),me.sync("deleted",s.deletedChannelUrls);var l=[];s.updatedChannels.forEach((function(e){l.push(new Promise((function(n,u){Je.channelContainer.getItem(e.url,(function(r,s){r?u(r):Je.channelContainer.upsert(e,(function(e,r){if(e)u(e);else{var o=!s||!s.isEqual(r),l=(!s||s.hiddenState===t.sb.GroupChannel.HiddenState.UNHIDDEN)&&r.hiddenState!==t.sb.GroupChannel.HiddenState.UNHIDDEN,a=(!s||s.hiddenState!==t.sb.GroupChannel.HiddenState.UNHIDDEN)&&r.hiddenState===t.sb.GroupChannel.HiddenState.UNHIDDEN,i=o?"update":"noop";l?i="hide":a&&(i="unhide"),n({action:i,channel:r})}}))}))})))})),s.deletedChannelUrls.forEach((function(e){l.push(new Promise((function(t,n){Je.channelContainer.getItem(e,(function(e,r){e?n(e):r&&Je.channelContainer.remove(r,(function(e){e?n(e):t({action:"remove",channel:r})}))}))})))})),Promise.all(l).then((function(r){for(var o=[],l=[],c=[],a=[],i=0;i<r.length;i++)switch(r[i].action){case"update":o.push(r[i].channel);break;case"remove":l.push(r[i].channel);break;case"hide":c.push(r[i].channel);break;case"unhide":a.push(r[i].channel)}0<o.length&&Je.broadcast.upsert(o,null,{isChangeLogChannel:!0}),0<l.length&&Je.broadcast.remove(l),0<c.length&&Je.broadcast.hide(c,null,{isChangeLogChannel:!0}),0<a.length&&Je.broadcast.unhide(a,null,{isChangeLogChannel:!0}),ue.set(n,s.token).then((function(){s.hasMore?t.syncChangeLog(e,u):(t.isFetchingChangeLog=!1,u())})).catch((function(e){t.isFetchingChangeLog=!1,u(e)}))})).catch((function(e){return u(e)}))}}]))})).catch((function(e){t.isFetchingChangeLog=!1,u(e)}))}}},{key:"start",value:function(){Je.broadcast.resume()}},{key:"stop",value:function(){Je.broadcast.pause()}},{key:"clearCache",value:function(e){Je.channelSyncByFilter={},Je.changeLogSync=null,Je.channelContainer.clear((function(){Je.queryContainer.clear((function(){ue.getKeys().then((function(t){var n=[];t.forEach((function(e){e.startsWith(We)&&n.push(ue.remove(e))})),Promise.all(n).then((function(){return e()})).catch((function(t){me.error(t),e(t)}))})).catch((function(t){return e(t)}))}))}))}},{key:"reset",value:function(e){Je?(Je.broadcast.clear(),Je.clearCache(e)):e(null)}}],[{key:"getInstance",value:function(){return Je}},{key:"clear",value:function(){Je&&Je.sb&&(me.message("ChannelManager is cleared"),Je.channelSyncByFilter={},Je.changeLogSync=null,Je.broadcast.clearCollection(),Je.sb.removeChannelHandler(Xe),Je=null)}}]),a}(),et=function(){function e(){g(this,e),this._queue=[],this.locked=!1}return o(e,[{key:"lock",value:function(e){var t=this;this.locked?this._queue.push(e):(this.locked=!0,e((function(){return t.unlock()})))}},{key:"unlock",value:function(){if(this.locked=!1,0<this._queue.length){var e=this._queue.shift();this.lock(e)}}}]),e}(),tt=function(){function a(e){g(this,a),this.worker=e,this.state=a.State.PAUSED,this.isLoading=!1,this.shared=0,this.retry=0,this.retryLimit=3,this.subscribes={}}return o(a,[{key:"start",value:function(e,t){var n=this;!(1<arguments.length&&void 0!==t&&t)&&this.state===a.State.END||this.isLoading||(this.isLoading=!0,this.state=a.State.RUNNING,this.worker(e,(function(t,r){me.sync("background sync result: err=",t,"res=",r),n.isRunning&&(t?n.retry<n.retryLimit?(n.retry++,setTimeout((function(){return n.start(e)}),500)):n.state=a.State.PAUSED:(n.retry=0,n.flush(t,r),r.hasMore?setTimeout((function(){n.isRunning&&n.start(r.nextTs)}),100):n.state=a.State.END)),n.isLoading=!1})))}},{key:"pause",value:function(){this.isLoading=!1,this.state=a.State.PAUSED}},{key:"end",value:function(){this.isLoading=!1,this.state=a.State.END}},{key:"flush",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:null,r=1<arguments.length?t:void 0;for(var a in me.sync("background sync flush: ".concat(Object.keys(this.subscribes).length," subscribes")),this.subscribes)this.subscribes[a](n,r);this.subscribes={}}},{key:"subscribe",value:function(e,t){return!this.subscribes[e]&&(this.subscribes[e]=t,!0)}},{key:"unsubscribeAll",value:function(){this.subscribes={}}},{key:"isRunning",get:function(){return this.state===a.State.RUNNING}}],[{key:"State",get:function(){return{RUNNING:"running",PAUSED:"paused",END:"end"}}}]),a}(),nt="channel-collection-handler",it=new M,st=new M,at=function(){function e(){g(this,e),this.collection=null,this.channels=[],this.mutex=new et,this.viewOffset=null}return o(e,[{key:"attachCollection",value:function(e){this.collection=e}},{key:"compareWithChannel",value:function(e,t){var n="lastMessageUpdatedAt";switch(this.collection.query.order){case"chronological":n="createdAt";break;case"channel_name_alphabetical":n="name"}return this.compareWithOffset(e,t[n])}},{key:"compareWithOffset",value:function(e,t){switch(this.collection.query.order){case"latest_last_message":return e.lastMessageUpdatedAt-t;case"chronological":return e.createdAt-t;case"channel_name_alphabetical":return t.localeCompare(e.name);default:return e.lastMessageUpdatedAt-t}}},{key:"isAbove",value:function(e,t){return 0<this.compareWithOffset(e,t)}},{key:"isBelow",value:function(e,t){return this.compareWithOffset(e,t)<0}}
2,{key:"findChannelEdges",value:function(e){var t="lastMessageUpdatedAt";switch(this.collection.query.order){case"chronological":t="createdAt";break;case"channel_name_alphabetical":t="name"}var n={start:null,end:null};for(var r in e)n.start&&!this.isAbove(e[r],n.start)||(n.start=e[r][t]),n.end&&!this.isBelow(e[r],n.end)||(n.end=e[r][t]);return n}},{key:"refreshViewOffset",value:function(){var e=this.findChannelEdges(this.channels);this.viewOffset=e.end}},{key:"addViewItems",value:function(e,t){var g=this,n=1<arguments.length&&void 0!==t?t:{},r=[],o=[],p=[],l=[],c=st.get(this.collection);this.mutex.lock((function(t){for(var h in e){var d=e[h],f=ye(d,g.channels),a=ve(d,g.collection.query,g.channels),i=!1;if(n.isEventChannel)if(g.viewOffset)g.isBelow(d,g.viewOffset)&&(i=!0);else{var s=$e(g.collection),m=Ye(g.collection);s.state!==tt.State.RUNNING&&m.state!==tt.State.RUNNING||!g.collection.query.hasNext||(i=!0)}var u=f<0?Oe.INSERT:Oe.UPDATE;switch(f<0?i||(a<g.channels.length?g.channels.splice(a,0,d):g.channels.push(d)):f!==a?a<g.channels.length?(u=Oe.MOVE,g.channels.splice(f,1),f<a?g.channels.splice(a-1,0,d):g.channels.splice(a,0,d)):(u=Oe.REMOVE,g.channels.splice(f,1)):g.channels[f]=d,u){case Oe.INSERT:i||r.push(d);break;case Oe.UPDATE:o.push(d);break;case Oe.MOVE:p.push(d);break;case Oe.REMOVE:l.push(d)}}if(g.refreshViewOffset(),0<r.length)for(var A in me.view("channel",Oe.INSERT,"\n"+r.map((function(e){return"\turl=".concat(e.url," name=").concat(e.name," createdAt=").concat(e.createdAt," lastMessageUpdatedAt=").concat(e.lastMessageUpdatedAt)})).join("\n")),c)c[A].onChannelEvent(Oe.INSERT,r);if(0<o.length)for(var y in me.view("channel",Oe.UPDATE,"\n"+o.map((function(e){return"\turl=".concat(e.url," name=").concat(e.name," createdAt=").concat(e.createdAt," lastMessageUpdatedAt=").concat(e.lastMessageUpdatedAt)})).join("\n")),c)c[y].onChannelEvent(Oe.UPDATE,o);if(0<p.length)for(var v in me.view("channel",Oe.MOVE,"\n"+p.map((function(e){return"\turl=".concat(e.url," name=").concat(e.name," createdAt=").concat(e.createdAt," lastMessageUpdatedAt=").concat(e.lastMessageUpdatedAt)})).join("\n")),c)c[v].onChannelEvent(Oe.MOVE,p);if(0<l.length)for(var _ in me.view("channel",Oe.REMOVE,"\n"+l.map((function(e){return"\turl=".concat(e.url," name=").concat(e.name," createdAt=").concat(e.createdAt," lastMessageUpdatedAt=").concat(e.lastMessageUpdatedAt)})).join("\n")),c)c[_].onChannelEvent(Oe.REMOVE,l);t()}))}},{key:"removeViewItems",value:function(s){var e=this,u=st.get(this.collection);this.mutex.lock((function(t){var n=[];for(var r in s){var o=s[r],a=e.channels.map((function(e){return e.url})).indexOf(o.url);0<=a&&(e.channels.splice(a,1),n.push(o))}if(0<n.length)for(var i in me.view("channel",Oe.REMOVE,"\n"+n.map((function(e){return"\turl=".concat(e.url," name=").concat(e.name," createdAt=").concat(e.createdAt," lastMessageUpdatedAt=").concat(e.lastMessageUpdatedAt)})).join("\n")),u)u[i].onChannelEvent(Oe.REMOVE,n);t()}))}},{key:"clearViewItem",value:function(){this.channels=[];var e=st.get(this.collection);this.mutex.lock((function(t){var n=Oe.CLEAR;for(var r in me.view("channel",n),e)e[r].onChannelEvent(n);t()}))}}]),e}(),ot=function(){function e(t){var n=this;g(this,e);var r=new at,a=Ze.getInstance();if(!a)return null;this.collectionId=we(),this.sendBird=a.sb,this.type="MyGroupChannelListQuery",this.limit=t.limit,this.query=t,this.query.filterKey=a.queryContainer.createFilterKey(this.query),this._isLoading=!1,r.attachCollection(this),a.broadcast.addCollection(this,r),it.set(this,r),st.set(this,{}),$e(this).shared++,Ye(this).shared++,a.queryContainer.getItem(this.query.filterKey,(function(e,r){e?Ae.throw(e):(r&&(n.query._token=r._token,n.query.hasNext=r.hasNext,n.query.savepoint=r.savepoint,n.query.updatedAt=r.updatedAt),a.queryContainer.upsert(t,(function(e,t){e?Ae.throw(e):(n.query=t,n._resume(),me.message("channel collection ".concat(n.collectionId," is created.")))})))}))}return o(e,[{key:"_pause",value:function(){me.call("channel sync pause",this.collectionId);var e=$e(this),t=Ye(this);e&&e.pause(),t&&t.pause()}},{key:"_resume",value:function(){me.call("channel sync resume",this.collectionId);var e=$e(this),t=Ye(this);e&&e.start(),t&&t.start()}},{key:"fetch",value:function(e){var t=this;if(!this._isLoading)return this._isLoading=!0,xe((function(e){me.call("fetch()");var a=it.get(t),n=t.sendBird,r=Ct.getInstance(),i=Ze.getInstance(),s={ownerUserId:r.currentUserId};if(t.query.includeEmpty||(s.lastMessage={"!=":null}),t.query.nicknameContainsFilter&&(s.members={"/where":function(e){for(var n in e)if(0<=e[n].nickname.indexOf(t.query.nicknameContainsFilter))return!0;return!1}}),t.query.userIdsFilter&&Array.isArray(t.query.userIdsFilter)&&0<t.query.userIdsFilter.length&&(s.members={"/where":function(e){var n=e.map((function(e){return e.userId}));return t.query.userIdsFilterExactMatch?n.length===t.query.userIdsFilter.length&&t.query.userIdsFilter.every((function(e){return 0<=n.indexOf(e)})):"AND"===t.query.queryType?t.query.userIdsFilter.every((function(e){return 0<=n.indexOf(e)})):"OR"===t.query.queryType&&t.query.userIdsFilter.reduce((function(e,t){return e||0<=n.indexOf(t)}),!1)}}),t.query.channelNameContainsFilter&&(s.name={"/regex":new RegExp(t.query.channelNameContainsFilter)}),0<t.query.channelUrlsFilter.length&&(s.url={"/in":t.query.channelUrlsFilter}),t.query.memberStateFilter!==n.GroupChannel.MemberStateFilter.ALL)switch(t.query.memberStateFilter){case n.GroupChannel.MemberStateFilter.JOINED:s.myMemberState="joined";break;case n.GroupChannel.MemberStateFilter.INVITED:case n.GroupChannel.MemberStateFilter.INVITED_BY_FRIEND:case n.GroupChannel.MemberStateFilter.INVITED_BY_NON_FRIEND:s.myMemberState="invited"}if("string"==typeof t.query.customTypeFilter&&t.query.customTypeFilter&&(s.customType=t.query.customTypeFilter),Array.isArray(t.query.customTypesFilter)&&0<t.query.customTypesFilter.length&&(s.customType={"/in":t.query.customTypesFilter}),"string"==typeof t.query.customTypeStartsWithFilter&&t.query.customTypeStartsWithFilter&&(s.customType={"/regex":new RegExp("^".concat(t.query.customTypeStartsWithFilter))}),t.query.superChannelFilter!==n.GroupChannel.SuperChannelFilter.ALL)switch(t.query.superChannelFilter){case n.GroupChannel.SuperChannelFilter.SUPER:s.isSuper=!0;break;case n.GroupChannel.SuperChannelFilter.NONSUPER:s.isSuper=!1}if(t.query.publicChannelFilter!==n.GroupChannel.PublicChannelFilter.ALL)switch(t.query.publicChannelFilter){case n.GroupChannel.PublicChannelFilter.PUBLIC:s.isPublic=!0;break;case n.GroupChannel.PublicChannelFilter.PRIVATE:s.isPublic=!1}if(t.query.unreadChannelFilter!==n.GroupChannel.UnreadChannelFilter.ALL)switch(t.query.unreadChannelFilter){case n.GroupChannel.UnreadChannelFilter.UNREAD_MESSAGE:s.unreadMessageCount={">":0}}if("all"!=t.query.hiddenChannelFilter)switch(t.query.hiddenChannelFilter){case n.GroupChannel.HiddenChannelFilter.UNHIDDEN:s.hiddenState=n.GroupChannel.HiddenState.UNHIDDEN;break;case n.GroupChannel.HiddenChannelFilter.HIDDEN:s.hiddenState={"/in":[n.GroupChannel.HiddenState.HIDDEN_ALLOW_AUTO_UNHIDE,n.GroupChannel.HiddenState.HIDDEN_PREVENT_AUTO_UNHIDE]};break;case n.GroupChannel.HiddenChannelFilter.HIDDEN_ALLOW_AUTO_UNHIDE:s.hiddenState=n.GroupChannel.HiddenState.HIDDEN_ALLOW_AUTO_UNHIDE;break;case n.GroupChannel.HiddenChannelFilter.HIDDEN_PREVENT_AUTO_UNHIDE:s.hiddenState=n.GroupChannel.HiddenState.HIDDEN_PREVENT_AUTO_UNHIDE}var o=null,u=!0;switch(t.query.order){case"latest_last_message":!t.query.hasNext&&t.query.savepoint&&(s.lastMessageUpdatedAt={">=":parseInt(t.query.savepoint)}),o={ownerUserId:1,lastMessageUpdatedAt:-1};break;case"chronological":!t.query.hasNext&&t.query.savepoint&&(s.createdAt={">=":parseInt(t.query.savepoint)}),o={ownerUserId:1,createdAt:-1};break;case"channel_name_alphabetical":!t.query.hasNext&&t.query.savepoint&&(s.name={"<=":t.query.savepoint}),u=!(o={ownerUserId:1,name:1});break;default:!t.query.hasNext&&t.query.savepoint&&(s.lastMessageUpdatedAt={">=":parseInt(t.query.savepoint)}),o={ownerUserId:1,lastMessageUpdatedAt:-1}}function l(e,n){i.channelContainer.query(s,{offset:a.channels.length,limit:e,index:o,desc:u},(function(r,o){r?(t._isLoading=!1,n(r)):(t._isLoading=!1,o.sort((function(e,t){return 0<a.compareWithChannel
2(e,t)})),0<o.length&&a.addViewItems(o),o.length<e&&h(e-o.length),n(null,o))}))}var c=$e(t),h=function(e){c.state!==tt.State.END&&(me.sync("subscribe channel",t.collectionId),c.subscribe(t.collectionId,(function(t){t?me.error(t):(me.sync("flush channel"),l(e,(function(e){e&&me.error(e)})))})))};l(t.limit,(function(t,n){me.cache("fetch channel",t,n.map((function(e){return e.url}))),e(t)})),c.state===tt.State.PAUSED&&t._resume()}),e);me.error("fetch() is loading"),e(Ae.create(Ae.Type.ERROR_DUPLICATED_FETCH))}},{key:"remove",value:function(){Ze.getInstance().broadcast.removeCollection(this);var e=$e(this),t=Ye(this);e&&(e.shared--,0===e.shared&&e.pause()),t&&(t.shared--,0===t.shared&&t.pause())}},{key:"setCollectionHandler",value:function(e){var t=st.get(this);e instanceof De&&(t[nt]=e)}},{key:"removeCollectionHandler",value:function(){var e=st.get(this);e[nt]&&delete e[nt]}},{key:"channels",get:function(){return it.get(this).channels}}],[{key:"CollectionHandler",get:function(){return De}},{key:"Action",get:function(){return Oe}}]),e}();"undefined"==typeof Promise&&(Promise=d);var lt=new M,ct=new M,ut=new M,ht=new M,pt=new M,ft="message-collection-handler",mt=function(){function e(){g(this,e),this.collection=null,this.messages=[],this.prevTempMessages=[],this.nextTempMessages=[],this.unsentMessages=[],lt.set(this,{}),this.currentChunk=null,this.viewRange={start:0,end:0}}return o(e,[{key:"attachCollection",value:function(e){this.collection=e}},{key:"channelWasRemoved",value:function(e){var t=pt.get(this.collection);for(var n in t)t[n].onChannelRemoved(e)}},{key:"channelWasUpdated",value:function(e){var t=pt.get(this.collection);for(var n in t)t[n].onChannelUpdated(e)}},{key:"addViewItems",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{},r=pt.get(this.collection),a=lt.get(this),i=ht.get(this.collection),s=[],o=[],u=[],l=[],h=[],d=[],f=[],m=[],g=[];for(var A in e){var y=e[A];if(y.messageId){var v=!0,p=!1;if(n.isEventMessage){var _=i.state===tt.State.END,w=!this.currentChunk||this.currentChunk.endAt<=this.viewRange.end,b=0===this.viewRange.end;p=!0,v=_&&w||!this.currentChunk||b}var x=this.collection.sendBird.currentUser?this.collection.channel.getReadReceipt(y):a[y.messageId]||0;if(a[y.messageId]||(a[y.messageId]=x),v){var E=_e(y,this.messages),C=be(y,this.messages);if(0<=E&&this.messages[E].isEqual(y)&&a[y.messageId]===x)continue;if(a[y.messageId]=x,this.viewRange.start=0<this.viewRange.start?Math.min(this.viewRange.start,y.createdAt):y.createdAt,this.viewRange.end=0<this.viewRange.end?Math.max(this.viewRange.end,y.createdAt):y.createdAt,E<0){var S=_e(y,this.unsentMessages);if(0<=S){var T=this.unsentMessages[S],B=!T.isUserMessage()||"pending"===T.requestState;this.unsentMessages.splice(S,1),B?d.push(T):g.push(T)}this.messages.splice(C,0,y),p&&this.nextTempMessages.push(y),s.push(y)}else this.messages[E]=y,o.push(y)}n.isEventMessage&&y.sender&&y.sender.userId!==Ct.getInstance().currentUserId&&l.push(y);var k=this.messages.length,I=[];if(k>Ct.syncManagerOptions.messageCollectionCapacity){if("next"===n.direction){var M=k-Ct.syncManagerOptions.messageCollectionCapacity;I=this.messages.splice(0,M)}else I=this.messages.splice(Ct.syncManagerOptions.messageCollectionCapacity);u.push.apply(u,c(I))}}else{var P=!y.isUserMessage()||"pending"===y.requestState,D=_e(y,this.unsentMessages);if(D<0)_e(y,this.messages)<0&&(P?h.push(y):f.push(y),this.unsentMessages.push(y));else{var U=this.unsentMessages[D];U.isUserMessage()?"pending"===U.requestState?P||(d.push(U),f.push(y),this.unsentMessages[D]=y):(m.push(y),this.unsentMessages[D]=y):this.unsentMessages[D]=y}}}if(0<u.length)for(var O in me.view("message",Fe.REMOVE,u.map((function(e){return e.reqId+" "+e.messageId+" "+e.createdAt}))),r)r[O].onSucceededMessageEvent(u,Fe.REMOVE),r[O].onMessageEvent(Fe.REMOVE,u);if(0<s.length)for(var F in me.view("message",Fe.INSERT,s.map((function(e){return e.reqId+" "+e.messageId+" "+e.createdAt}))),r)r[F].onSucceededMessageEvent(s,Fe.INSERT),r[F].onMessageEvent(Fe.INSERT,s);if(0<o.length)for(var R in me.view("message",Fe.UPDATE,o.map((function(e){return e.reqId+" "+e.messageId+" "+e.createdAt}))),r)r[R].onSucceededMessageEvent(o,Fe.UPDATE),r[R].onMessageEvent(Fe.UPDATE,o);if(0<d.length)for(var q in me.view("pending message",Fe.REMOVE,d.map((function(e){return e.reqId+" "+e.messageId+" "+e.createdAt}))),r)r[q].onPendingMessageEvent(d,Fe.REMOVE),r[q].onMessageEvent(Fe.REMOVE,d);if(0<h.length)for(var N in me.view("pending message",Fe.INSERT,h.map((function(e){return e.reqId+" "+e.messageId+" "+e.createdAt}))),r)r[N].onPendingMessageEvent(h,Fe.INSERT),r[N].onMessageEvent(Fe.INSERT,h);if(0<g.length){me.view("failed message",Fe.REMOVE,g.map((function(e){return e.reqId+" "+e.messageId+" "+e.createdAt})));var L=Re.REMOVE_RESEND_SUCCEEDED;for(var z in r)r[z].onFailedMessageEvent(g,Fe.REMOVE,L)}if(0<m.length){me.view("failed message",Fe.UPDATE,m.map((function(e){return e.reqId+" "+e.messageId+" "+e.createdAt})));var H=Re.UPDATE_RESEND_FAILED;for(var Q in r)r[Q].onFailedMessageEvent(m,Fe.UPDATE,H)}if(0<f.length){me.view("failed message",Fe.INSERT,f.map((function(e){return e.reqId+" "+e.messageId+" "+e.createdAt})));var V=Re.NONE;for(var j in r)r[j].onFailedMessageEvent(f,Fe.INSERT,V)}if(0<l.length)for(var G=0;G<l.length;G++){var K=l[G];for(var $ in me.view("new message",K.reqId,K.messageId,K.createdAt),r)r[$].onNewMessage(K)}}},{key:"removeViewItems",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{isRequestId:!1},r=!!n.hasOwnProperty("isRequestId")&&n.isRequestId,a=pt.get(this.collection);if(r){for(var i=[],s=[],o=0;o<e.length;o++)for(var u=e[o],l=0;l<this.unsentMessages.length;l++)if(u===this.unsentMessages[l].reqId){var h=this.unsentMessages[l];
2if(h.isUserMessage())switch(h.requestState){case"pending":i.push(h);break;case"failed":s.push(h)}else h.isFileMessage()&&i.push(h);this.unsentMessages.splice(l,1);break}if(0<i.length)for(var d in me.view("pending message",Fe.REMOVE,i.map((function(e){return e.reqId}))),a)a[d].onPendingMessageEvent(i,Fe.REMOVE),a[d].onMessageEvent(Fe.REMOVE,i);if(0<s.length){me.view("failed message",Fe.REMOVE,s.map((function(e){return e.reqId})));var f=n.hasOwnProperty("reason")?n.reason:Re.REMOVE_UNKNOWN;for(var m in a)a[m].onFailedMessageEvent(s,Fe.REMOVE,f)}}else{for(var g=lt.get(this),A=[],y=0;y<e.length;y++)for(var v=e[y],p=0;p<this.messages.length;p++)if(v===this.messages[p].messageId){"number"==typeof g[v]&&delete g[v];var _=this.messages.splice(p,1);A.push.apply(A,c(_));break}if(this.viewRange.start=0<this.messages.length?this.messages[0].createdAt:0,this.viewRange.end=0<this.messages.length?this.messages[this.messages.length-1].createdAt:0,0<A.length)for(var w in me.view("message",Fe.REMOVE,A.map((function(e){return e.messageId}))),a)a[w].onSucceededMessageEvent(A,Fe.REMOVE),a[w].onMessageEvent(Fe.REMOVE,A)}}},{key:"clearUnsentMessages",value:function(){var e=this.unsentMessages,t=pt.get(this.collection);for(var n in this.unsentMessages=[],me.view("message",Fe.REMOVE,"unsent messages"),t){t[n].onPendingMessageEvent([],Fe.CLEAR);var r=Re.NONE;t[n].onFailedMessageEvent([],Fe.CLEAR,r),t[n].onMessageEvent(Fe.REMOVE,e)}}},{key:"clearViewItem",value:function(){this.currentChunk=null,this.messages=[],lt.set(this,{}),this.viewRange.start=0,this.viewRange.end=0;var e=pt.get(this.collection);for(var t in me.view("message",Fe.CLEAR),e)e[t].onSucceededMessageEvent([],Fe.CLEAR),e[t].onMessageEvent(Fe.CLEAR)}},{key:"updateCurrentChunk",value:function(e){e?this.currentChunk&&this.currentChunk.isSame(e)||(this.currentChunk=Ie.createFromJson(e)):this.currentChunk=e}}]),e}(),At=function(){function u(t){var n=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:(new Date).getTime();g(this,u);var l=Ge.getInstance();if(!l)return null;if(this.collectionId=we(),this.sendBird=l.sb,this.channel=t,this.limit=50,this.filter=Ie.getDefaultFilter(),r&&"object"===e(r)&&0<Object.keys(r).length)for(var c in r)this.filter.hasOwnProperty(c)&&(this.filter[c]=r[c]);this.viewpoint=o,this._isLoading={prev:!1,next:!1},He.getInstance().createQueue(this.channel.url);var h=new mt;function a(e,r,u){me.sync("message synchronize() begin",e,r);var o=null,c=0,d=[r];switch(e){case"prev":o="getPreviousMessagesByTimestamp",c=100,d.push(!0),d.push(100);break;case"next":o="getNextMessagesByTimestamp",c=100,d.push(!0),d.push(100);break;case"prevnext":o="getPreviousAndNextMessagesByTimestamp",c=100,d.push(50),d.push(50)}d.push(!1),d.push(n.filter.messageType||""),d.push(n.filter.customType||""),d.push(n.filter.senderUserIdsFilter||[]),d.push(n.filter.includeMetaArray||!0),t[o].apply(t,d.concat([function(s,t){if(l.sb.getErrorFirstCallback()){var o=[s,t];t=o[0],s=o[1]}t?(n._pause(),u(t)):(me.sync("message synchronize() end",e,r,s.map((function(e){return e.messageId}))),i.lock((function(t){var r=[],o={startAt:1/0,endAt:0};if(0<s.length){var d=function(e){s[e].isVisible=!0,r.push(new Promise((function(t,n){l.messageContainer.upsert(s[e],(function(e){return e?n(e):t()}))}))),o.startAt=Math.min(o.startAt,s[e].createdAt),o.endAt=Math.max(o.endAt,s[e].createdAt)};for(var a in s)d(a);h.currentChunk&&h.currentChunk.isOverlap(o)||(h.currentChunk=new Ie(n.channel.url,n.filter),me.message("chunk is created",h.currentChunk.startAt,h.currentChunk.endAt));var i=h.currentChunk;i.extendWithChunk(o),me.message("currentChunk is extended",i.startAt,i.endAt),l.chunkContainer.mergePreviousChunkOverlap(i,(function(n){n?(t(),u(n)):(me.message("currentChunk merged previous chunks",i.startAt,i.endAt),Promise.all(r).then((function(){t(),u(null,{count:s.length,nextTs:"prev"===e?i.startAt:i.endAt,hasMore:s.length>=c})})).catch((function(e){t(),u(e)})))}))}else t(),u(null,{count:0,nextTs:0,hasMore:!1})})))}]))}h.attachCollection(this),ct.set(this,h),ut.set(this,null),ht.set(this,null),pt.set(this,{}),l.broadcast.addCollection(this,h);var i=new et,s=new tt((function(e,t){return a("prev",e,t)}));s.shared++,ut.set(this,s);var d=new tt((function(e,t){return a("next",e,t)}));d.shared++,ht.set(this,d),l.chunkContainer.getChunkByTimestamp(this.channel.url,this.filter,this.viewpoint,(function(e,t){e||(t&&(h.currentChunk=t),h.currentChunk?n._resume():a("prevnext",n.viewpoint,(function(e,t){e||setTimeout((function(){s.flush(e,t),d.flush(e,t),t.count<50?(s.end(),d.end()):n._resume()}),300)})),me.message("message collection ".concat(n.collectionId," is created.")))})),Object.defineProperty(this,"messageCount",{get:function(){try{return h.messages.length}catch(e){return 0}}})}return o(u,[{key:"_pause",value:function(){me.call("message sync pause",this.collectionId);var e=ct.get(this),t=ut.get(this),n=ht.get(this);t&&t.pause(),n&&n.pause(),e.currentChunk=null}},{key:"_resume",value:function(e){var a=this;me.call("message sync resume",this.collectionId);var t=Ge.getInstance(),i=ut.get(this),s=ht.get(this);i&&i.isRunning&&(i.pause(),i.unsubscribeAll()),s&&s.isRunning&&(s.pause(),s.unsubscribeAll()),t.syncChangeLog(this.channel,(function(){var t=ct.get(a);if(i){var n=t.currentChunk?t.currentChunk.startAt:a.viewpoint;i.start(n)}
2if(s){var r=t.currentChunk?t.currentChunk.endAt:a.viewpoint;s.start(r,!0),e&&s.subscribe(a.collectionId+"_autoresendqueue",e)}}))}},{key:"fetch",value:function(e,t){return this.fetchSucceededMessages(e,t)}},{key:"fetchSucceededMessages",value:function(g,e){var t=this,i=Ge.getInstance(),n=ct.get(this);return this._isLoading[g]?xe((function(e){return e(Ae.create(Ae.Type.ERROR_DUPLICATED_FETCH))}),e):(this._isLoading[g]=!0,xe((function(e){me.call("fetchSucceededMessages()",g);var r=null,o=t.viewpoint,l=t.limit,h=!1,d=o,f=null,a=null;switch(g){case"prev":r=ut.get(t),0<n.viewRange.start&&(o=n.viewRange.start),n.currentChunk&&(d=Math.max(n.currentChunk.startAt,o)),f=n.prevTempMessages,a=i.messageContainer.loadPreviousSucceededMessages,h=!0;break;case"next":r=ht.get(t),0<n.viewRange.end&&(o=n.viewRange.end),n.currentChunk&&(d=Math.min(n.currentChunk.endAt,o)),f=n.nextTempMessages,a=i.messageContainer.loadNextSucceededMessages;break;default:return void e(Ae.create(Ae.Type.ERROR_INVALID_PARAMETER))}function m(e,u){me.message("waiting for synchronization...");var o=!1;a(t.channel.url,t.filter,e,{limit:l,desc:h},(function(e,l){e?(o=!0,t._isLoading[g]=!1,u(e)):(me.cache("temp message",g,l.map((function(e){return e.messageId}))),(0<l.length||r.state===tt.State.END)&&(o=!0,f.push.apply(f,c(l)),n.addViewItems(l,{direction:g}),t._isLoading[g]=!1,u(null)))}));var m=d;me.sync("subscribe message",t.collectionId,g,e),r.subscribe(t.collectionId,(function(r){r?(me.error(r),o||(t._isLoading[g]=!1,u(r))):(me.sync("flush message",g,e),i.chunkContainer.getChunkByTimestamp(t.channel.url,t.filter,e,(function(e,r){if(e)me.error(e),o||(t._isLoading[g]=!1,u(e));else if(r&&(n.currentChunk=r),n.currentChunk){var c=n.currentChunk;a(t.channel.url,t.filter,m,{limit:l,desc:h},(function(e,r){if(e)me.error(e),o||(t._isLoading[g]=!1,u(e));else{me.cache("flush message",g,m,r.map((function(e){return e.messageId})));var l=[],h=[];for(var a in r)if(c.containsMessage(r[a])){var i=n.messages.map((function(e){return e.messageId})).indexOf(r[a].messageId);(i<0||!n.messages[i].isEqual(r[a]))&&l.push(r[a])}for(var s in f)n.messages.map((function(e){return e.messageId})).indexOf(f[s].messageId)<0&&h.push(f[s]);for(;0<f.length;)f.pop();0<h.length&&n.removeViewItems(h.map((function(e){return e.messageId}))),0<l.length&&n.addViewItems(l,{direction:g}),o||(t._isLoading[g]=!1,u(null))}}))}else me.error(e),o||(t._isLoading[g]=!1,u(e))})))}))}i.chunkContainer.getChunkByTimestamp(t.channel.url,t.filter,o,(function(r,c){if(r)t._isLoading[g]=!1,e(r);else if(c&&(n.currentChunk=c),n.currentChunk){var u=n.currentChunk;me.message("chunk is selected",u),a(t.channel.url,t.filter,o,{limit:l,desc:h},(function(r,c){if(r)t._isLoading[g]=!1,e(r);else{var h=[],d=[];me.cache("fetch message",g,o,c.map((function(e){return e.messageId})));var a=!1;for(var i in c)if(u.containsMessage(c[i])){a=!0;var s=n.messages.map((function(e){return e.messageId})).indexOf(c[i].messageId);(s<0||!n.messages[s].isEqual(c[i]))&&h.push(c[i])}if(!a){for(var A in f)n.messages.map((function(e){return e.messageId})).indexOf(f[A].messageId)<0&&d.push(f[A]);for(;0<f.length;)f.pop()}0<h.length&&n.addViewItems(h,{direction:g}),0<d.length&&n.removeViewItems(d.map((function(e){return e.messageId}))),c.length<l?(l-=c.length,m(o,e)):(t._isLoading[g]=!1,e(null))}}))}else m(o,e)})),r.state===tt.State.PAUSED&&t._resume()}),e))}},{key:"fetchFailedMessages",value:function(e){var t=this;return xe((function(e){me.call("fetchFailedMessages()"),He.getInstance().loadFailedMessages(t.channel.url,t.filter,(function(n,r){n||(me.cache("fetch failed message",r.map((function(e){return e.reqId}))),ct.get(t).addViewItems(r)),e(n)}))}),e)}},{key:"resetViewpointTimestamp",value:function(e){var t=0<arguments.length&&void 0!==e?e:(new Date).getTime();if("number"==typeof t&&0<=t){me.call("resetViewpointTimestamp()",t);var n=ct.get(this);n.viewRange.start<=t&&t<=n.viewRange.end?n.currentChunk&&!n.currentChunk.contains(t)&&(n.currentChunk=null):(n.currentChunk=null,n.clearViewItem()),this.viewpoint=t,this._resume()}else me.error("resetViewpointTimestamp()","ts should be number type and greater than or equal to 0."),Ae.throw(Ae.create(Ae.Type.ERROR_INVALID_PARAMETER))}},{key:"remove",value:function(){He.getInstance().removeQueue(this.channel.url),Ge.getInstance().broadcast.removeCollection(this),ct.get(this).currentChunk=null;var e=ut.get(this),t=ht.get(this);e&&(e.shared--,0===e.shared&&e.pause()),t&&(t.shared--,0===t.shared&&t.pause())}},{key:"handleSendMessageResponse",value:function(e,t){if(me.call("handleSendMessageResponse()",e,t),e)if(t)switch(Ct.syncManagerOptions.messageResendPolicy){case Ct.Options.MessageResendPolicy.NONE:this.deleteMessage(t);break;case Ct.Options.MessageResendPolicy.MANUAL:case Ct.Options.MessageResendPolicy.AUTOMATIC:if(t.isUserMessage()&&800110!==e.code)this.appendMessage(t);else{var n={reason:Re.REMOVE_UNKNOWN};this.deleteMessage(t,n)}break;default:this.deleteMessage(t)}else this.deleteMessage(t),me.error(e);else{var r=ct.get(this),a={reason:Re.REMOVE_RESEND_SUCCEEDED};for(var i in r.unsentMessages)if(r.unsentMessages[i].isIdentical(t)){this.deleteMessage(r.unsentMessages[i],a);break}this.appendMessage(t)}}},{key:"hasMessage",value:function(e){if(e)for(var t=ct.get(this),n=0;n<t.succeededMessages.length;n++)if(t.succeededMessages[n].isIdentical(e))return!0;return!1}},{key:"appendMessage",value:function(e){if(e){me.call("appendMessage()",e.messageId);var t=Ct.getInstance(),n=Ge.getInstance(),r=ct.get(this);if(e.messageId)if(e.sender&&e.sender.userId===t.currentUserId){e.isVisible=!0,n.messageContainer.upsert(e,(function(e,t){e||n.broadcast.upsert([t])}));var a=Ze.getInstance();a.channelContainer.getItem(e.channelUrl,(function(t,n){t?Ae.throw(t):n&&(!n.lastMessage||n.lastMessage.createdAt<=e.createdAt)&&(n.lastMessage=e,a.
2channelContainer.upsert(n,(function(e,t){e?Ae.throw(e):a.broadcast.upsert([t])})))}))}else me.warning("Cannot append message sent by other member.");else{var i=Ct.syncManagerOptions;"failed"===e.requestState&&i.messageResendPolicy!==Ct.Options.MessageResendPolicy.NONE?He.getInstance().upsertMessages(this.channel.url,[e]):r.addViewItems([e])}}else me.error("appendMessage()","Message is expected but ".concat(e," is given.")),Ae.throw(Ae.create(Ae.Type.ERROR_INVALID_PARAMETER))}},{key:"updateMessage",value:function(e){if(e){me.call("updateMessage()",e.messageId);var t=Ct.getInstance(),n=Ge.getInstance(),r=ct.get(this);if(e.sender&&e.sender.userId===t.currentUserId)if(e.messageId){e.isVisible=!0,n.messageContainer.upsert(e,(function(e,t){e||n.broadcast.update([t])}));var a=Ze.getInstance();a.channelContainer.getItem(e.channelUrl,(function(t,n){t?Ae.throw(t):n&&n.lastMessage&&n.lastMessage.messageId===e.messageId&&(n.lastMessage=e,a.channelContainer.upsert(n,(function(e,t){e?Ae.throw(e):a.broadcast.update([t])})))}))}else r.addViewItems([e])}else me.error("updateMessage()","Message is expected but ".concat(e," is given.")),Ae.throw(Ae.create(Ae.Type.ERROR_INVALID_PARAMETER))}},{key:"deleteMessage",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};if(e){me.call("deleteMessage()",e.messageId);var r=Ct.getInstance(),a=ct.get(this);if(e.sender&&e.sender.userId===r.currentUserId&&!e.messageId)if(e.isUserMessage()){for(var i=0;i<a.unsentMessages.length;i++)if(a.unsentMessages[i].isIdentical(e)){switch(e.requestState){case"pending":a.removeViewItems([e.reqId],!0);break;case"failed":He.getInstance().removeMessages(this.channel.url,[e],n)}break}}else a.removeViewItems([e.reqId],!0)}else me.error("deleteMessage()","Message is expected but ".concat(e," is given.")),Ae.throw(Ae.create(Ae.Type.ERROR_INVALID_PARAMETER))}},{key:"setCollectionHandler",value:function(e){var t=pt.get(this);e instanceof Ue&&(t[ft]=e)}},{key:"removeCollectionHandler",value:function(){var e=pt.get(this);e[ft]&&delete e[ft]}},{key:"messages",get:function(){return this.succeededMessages}},{key:"succeededMessages",get:function(){return ct.get(this).messages}},{key:"unsentMessages",get:function(){return ct.get(this).unsentMessages}}],[{key:"create",value:function(e,i,s,t){"function"==typeof s&&(t=s,s=(new Date).getTime());var n=Ze.getInstance();return xe((function(a){n.channelContainer.getItem(e,(function(t,n){if(t)a(t);else if(n)a(null,new u(n,i,s));else{var r=Ze.getInstance();r.sb.GroupChannel.getChannel(e,(function(e,t){if(r.sb.getErrorFirstCallback()){var n=[e,t];t=n[0],e=n[1]}t?a(t):a(null,new u(e,i,s))}))}}))}),t)}},{key:"CollectionHandler",get:function(){return Ue}},{key:"Action",get:function(){return Fe}},{key:"FailedMessageEventActionReason",get:function(){return Re}}]),u}();"undefined"==typeof Promise&&(Promise=d);var gt=null,yt=null,vt=null,_t=W,bt=null,wt=null,xt=null,Et=null,Ct=function(){function i(){return g(this,i),yt=yt||this}return o(i,[{key:"resumeSync",value:function(){me.call("resumeSync()"),wt&&wt.start(),xt&&xt.start()}},{key:"pauseSync",value:function(){me.call("pauseSync()"),wt&&wt.stop(),xt&&xt.stop()}},{key:"clearCache",value:function(e){return me.call("clearCache()"),xe((function(e){var t=[];wt&&t.push(new Promise((function(e,t){wt.reset((function(n){return n?t(n):e()}))}))),xt&&t.push(new Promise((function(e,t){xt.reset((function(n){return n?t(n):e()}))}))),0<t.length?Promise.all(t).then((function(){return e(null)})).catch((function(t){return e(t)})):e(null)}),e)}},{key:"reset",value:function(e){var t=this;return me.call("reset()"),xe((function(e){t.clearCache((function(t){t||(Ze.clear((function(){wt=null})),Ge.clear((function(){xt=null}))),e(t)}))}),e)}},{key:"currentUserId",get:function(){return gt&>.currentUser?gt.currentUser.userId:vt}}],[{key:"setup",value:function(e,t,n){me.call("init()"),Et=new i.Options;var a=arguments.length<=0?void 0:e,r=arguments.length<=1?void 0:t;return r&&"function"!=typeof r&&(r instanceof i.Options?(Et=r,r=arguments.length<=2?void 0:n):me.error("Type of the second parameter is not valid: ",arguments.length<=1?void 0:t)),me.prefix="[SyncManager]",xe((function(e){ue.init(
2),gt?(yt=new i,ue.get("lastUserId").then((function(t){vt=a,Ze.clear(),wt=null,Ge.clear(),xt=null,bt?(me.cache("Database is open"),ue.set("lastUserId",a).then((function(){wt=new Ze({sendBird:gt,db:bt}),xt=new Ge({sendBird:gt,db:bt}),i.ChannelCollection=ot,i.MessageCollection=At,t&&t!==a&&(me.warning("Different user ID: clear cache"),yt.clearCache((function(){}))),He.getInstance().removeExpiredMessages((function(){e(null)}))})).catch((function(t){e(t)}))):B().then((function(n){n&&(me.info("IndexedDB is not supported in private browsing mode in Edge/Firefox. Using in-memory database."),_t=se);var r=new _t("sbsync.db",5);r.schema("GroupChannel",{key:"url",index:[{ownerUserId:_t.Query.Order.ASC,lastMessageUpdatedAt:_t.Query.Order.DESC},{ownerUserId:_t.Query.Order.ASC,createdAt:_t.Query.Order.DESC},{ownerUserId:_t.Query.Order.ASC,name:_t.Query.Order.ASC}]}).schema("GroupChannelListQuery",{key:"filterKey",index:[{ownerUserId:_t.Query.Order.ASC,updatedAt:_t.Query.Order.DESC}]}).schema("MessageChunk",{key:"chunkId",index:[{ownerUserId:_t.Query.Order.ASC,channelUrl:_t.Query.Order.ASC,filterKey:_t.Query.Order.ASC,endAt:_t.Query.Order.DESC}]}).schema("Message",{key:"messageId",index:[{ownerUserId:_t.Query.Order.ASC,channelUrl:_t.Query.Order.ASC,createdAt:_t.Query.Order.DESC},{ownerUserId:_t.Query.Order.ASC,createdAt:_t.Query.Order.ASC}]}).build().then((function(){me.cache("Database is open"),bt=r,ue.set("lastUserId",a).then((function(){wt=new Ze({sendBird:gt,db:bt}),xt=new Ge({sendBird:gt,db:bt}),i.ChannelCollection=ot,i.MessageCollection=At,t&&t!==a&&(me.warning("Different user ID: clear cache"),yt.clearCache((function(){}))),He.getInstance().removeExpiredMessages((function(){e(null)}))})).catch((function(t){e(t)}))})).catch((function(t){return e(t)}))}))})).catch((function(t){e(t)}))):e(Ae.create(Ae.Type.ERROR_SETUP_MISSING))}),r)}},{key:"useReactNative",value:function(e){ue.useReactNative(e),R.Storage=e,_t=R}},{key:"getInstance",value:function(){return yt}},{key:"sendBird",get:function(){return gt},set:function(e){gt=e}},{key:"LocalDB",get:function(){return _t}},{key:"_messageContainer",get:function(){return Ge.getInstance().messageContainer}},{key:"_chunkContainer",get:function(){return Ge.getInstance().chunkContainer}},{key:"syncManagerOptions",get:function(){return Et||new i.Options}},{key:"LogLevel",get:function(){return de}},{key:"loggerLevel",set:function(e){me.level=e},get:function(){return me.level}}]),i}();return Ct.Options=function e(){g(this,e);var t=1e3;Object.defineProperty(this,"messageCollectionCapacity",{get:function(){return t},set:function(e){"number"==typeof e&&e>=(me.isValidLevel(me.level)?200:0)&&e<=Number.MAX_SAFE_INTEGER&&(t=e)}});var n=Ct.Options.MessageResendPolicy.NONE;Object.defineProperty(this,"messageResendPolicy",{get:function(){return n},set:function(e){-1<Object.keys(Ct.Options.MessageResendPolicy).map((function(e){return Ct.Options.MessageResendPolicy[e]})).indexOf(e)&&(n=e)}});var r=Ct.Options.INFINITY;Object.defineProperty(this,"automaticMessageResendRetryCount",{get:function(){return r},set:function(e){"number"==typeof e&&(0<e&&e<=Number.MAX_SAFE_INTEGER||e===Ct.Options.INFINITY)&&(r=e)}});var a=20;Object.defineProperty(this,"maxFailedMessageCountPerChannel",{get:function(){return a}
2,set:function(e){"number"==typeof e&&0<e&&e<=Number.MAX_SAFE_INTEGER&&(a=e)}});var i=7;Object.defineProperty(this,"failedMessageRetentionDays",{get:function(){return i},set:function(e){"number"==typeof e&&(e>(me.isValidLevel(me.level)?0:-2)&&e<=Number.MAX_SAFE_INTEGER||e===Ct.Options.INFINITY)&&(i=e)}})},Ct.Options.MessageResendPolicy={NONE:"none",MANUAL:"manual",AUTOMATIC:"automatic"},Ct.Options.INFINITY=Number.MAX_SAFE_INTEGER,Ct}()}).call(this,n(1601).setImmediate,n(45))},32:function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},33:function(e,t,n){"use strict";function r(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return w(e,Error)}}function o(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function l(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function c(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function h(e){return"[object String]"===Object.prototype.toString.call(e)}function d(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function f(e){return"[object Object]"===Object.prototype.toString.call(e)}function m(e){return"undefined"!=typeof Event&&w(e,Event)}function A(e){return"undefined"!=typeof Element&&w(e,Element)}function y(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function v(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function _(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function w(e,base){try{return e instanceof base}catch(e){return!1}}n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"k",(function(){return h})),n.d(t,"i",(function(){return d})),n.d(t,"h",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"c",(function(){return A})),n.d(t,"j",(function(){return y})),n.d(t,"m",(function(){return v})),n.d(t,"l",(function(){return _})),n.d(t,"g",(function(){return w}))},3354:function(e,t,n){"use strict";function r(e,t,n,r){var o,l=!1,c=0;function h(){o&&clearTimeout(o)}function d(){var d=this,f=Date.now()-c,m=arguments;function A(){c=Date.now(),n.apply(d,m)}function y(){o=void 0}l||(r&&!o&&A(),h(),void 0===r&&f>e?A():!0!==t&&(o=setTimeout(r?y:A,void 0===r?e-f:e)))}return"boolean"!=typeof t&&(r=n,n=t,t=void 0),d.cancel=function(){h(),l=!0},d}function o(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}n.r(t),n.d(t,"throttle",(function(){return r})),n.d(t,"debounce",(function(){return o}))},3367:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"VClosePopover",(function(){return _r})),n.d(t,"VPopover",(function(){return wr})),n.d(t,"VTooltip",(function(){return vr})),n.d(t,"createTooltip",(function(){return un})),n.d(t,"destroyTooltip",(function(){return hn})),n.d(t,"install",(function(){return yr}));var r=n(1660),o=n(2357);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function f(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(t){h(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var m=function(){};function A(e){return"string"==typeof e&&(e=e.split(" ")),e}function y(e,t){var n,r=A(t);n=e.className instanceof m?A(e.className.baseVal):A(e.className),r.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}function v(e,t){var n,r=A(t);n=e.className instanceof m?A(e.className.baseVal):A(e.className),r.forEach((function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}"undefined"!=typeof window&&(m=window.SVGAnimatedString);var _=!1;if("undefined"!=typeof window){_=!1;try{var w=Object.defineProperty({},"passive",{get:function(){_=!0}});window.addEventListener("test",null,w)}catch(e){}}var x=function(){this.__data__=[],this.size=0};var E=function(e,t){return e===t||e!=e&&t!=t};var C=function(e,t){for(var n=e.length;n--;)if(E(e[n][0],t))return n;return-1},S=Array.prototype.splice;var T=function(e){var data=this.__data__,t=C(data,e);return!(t<0)&&(t==data.length-1?data.pop():S.call(data,t,1),--this.size,!0)};var B=function(e){var data=this.__data__,t=C(data,e);return t<0?void 0:data[t][1]};var k=function(e){return C(this.__data__,e)>-1};var I=function(e,t){var data=this.__data__,n=C(data,e);return n<0?(++this.size,data.push([e,t])):data[n][1]=t,this};function M(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}M.prototype.clear=x,M.prototype.delete=T,M.prototype.get=B,M.prototype.has=k,M.prototype.set=I;var P=M;var D=function(){this.__data__=new P,this.size=0};var U=function(e){var data=this.__data__,t=data.delete(e);return this.size=data.size,t};var O=function(e){return this.__data__.get(e)};var F=function(e){return this.__data__.has(e)},R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function N(e,t){return e(t={exports:{}},t.exports),t.exports}var L="object"==typeof R&&R&&R.Object===Object&&R,z="object"==typeof self&&self&&self.Object===Object&&self,H=L||z||Function("return this")(),Q=H.Symbol,V=Object.prototype,j=V.hasOwnProperty,G=V.toString,K=Q?Q.toStringTag:void 0;var $=function(e){var t=j.call(e,K),n=e[K];try{e[K]=void 0;var r=!0}catch(e){}var o=G.call(e);return r&&(t?e[K]=n:delete e[K]),o},Y=Object.prototype.toString;var W=function(e){return Y.call(e)},X=Q?Q.toStringTag:void 0;
vendor: 9,047 bytes, line 2
2var J=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?$(e):W(e)};var Z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var ee,te=function(e){if(!Z(e))return!1;var t=J(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ne=H["__core-js_shared__"],re=(ee=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"";var ie=function(e){return!!re&&re in e},se=Function.prototype.toString;var ae=function(e){if(null!=e){try{return se.call(e)}catch(e){}try{return e+""}catch(e){}}return""},oe=/^\[object .+?Constructor\]$/,le=Function.prototype,ce=Object.prototype,ue=le.toString,he=ce.hasOwnProperty,de=RegExp("^"+ue.call(he).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var pe=function(e){return!(!Z(e)||ie(e))&&(te(e)?de:oe).test(ae(e))};var fe=function(object,e){return null==object?void 0:object[e]};var me=function(object,e){var t=fe(object,e);return pe(t)?t:void 0},Ae=me(H,"Map"),ge=me(Object,"create");var ye=function(){this.__data__=ge?ge(null):{},this.size=0};var ve=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},_e=Object.prototype.hasOwnProperty;var be=function(e){var data=this.__data__;if(ge){var t=data[e];return"__lodash_hash_undefined__"===t?void 0:t}return _e.call(data,e)?data[e]:void 0},we=Object.prototype.hasOwnProperty;var xe=function(e){var data=this.__data__;return ge?void 0!==data[e]:we.call(data,e)};var Ee=function(e,t){var data=this.__data__;return this.size+=this.has(e)?0:1,data[e]=ge&&void 0===t?"__lodash_hash_undefined__":t,this};function Ce(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ce.prototype.clear=ye,Ce.prototype.delete=ve,Ce.prototype.get=be,Ce.prototype.has=xe,Ce.prototype.set=Ee;var Se=Ce;var Te=function(){this.size=0,this.__data__={hash:new Se,map:new(Ae||P),string:new Se}};var Be=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ke=function(map,e){var data=map.__data__;return Be(e)?data["string"==typeof e?"string":"hash"]:data.map};var Ie=function(e){var t=ke(this,e).delete(e);return this.size-=t?1:0,t};var Me=function(e){return ke(this,e).get(e)};var Pe=function(e){return ke(this,e).has(e)};var De=function(e,t){var data=ke(this,e),n=data.size;return data.set(e,t),this.size+=data.size==n?0:1,this};function Ue(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ue.prototype.clear=Te,Ue.prototype.delete=Ie,Ue.prototype.get=Me,Ue.prototype.has=Pe,Ue.prototype.set=De;var Oe=Ue;var Fe=function(e,t){var data=this.__data__;if(data instanceof P){var n=data.__data__;if(!Ae||n.length<199)return n.push([e,t]),this.size=++data.size,this;data=this.__data__=new Oe(n)}return data.set(e,t),this.size=data.size,this};function Re(e){var data=this.__data__=new P(e);this.size=data.size}Re.prototype.clear=D,Re.prototype.delete=U,Re.prototype.get=O,Re.prototype.has=F,Re.prototype.set=Fe;var Ne=Re;var Le=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var ze=function(e){return this.__data__.has(e)};function He(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Oe;++t<n;)this.add(e[t])}He.prototype.add=He.prototype.push=Le,He.prototype.has=ze;var Qe=He;var Ve=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var je=function(e,t){return e.has(t)};var Ge=function(e,t,n,r,o,l){var c=1&n,h=e.length,d=t.length;if(h!=d&&!(c&&d>h))return!1;var f=l.get(e);if(f&&l.get(t))return f==t;var m=-1,A=!0,y=2&n?new Qe:void 0;for(l.set(e,t),l.set(t,e);++m<h;){var v=e[m],_=t[m];if(r)var w=c?r(_,v,m,t,e,l):r(v,_,m,e,t,l);if(void 0!==w){if(w)continue;A=!1;break}if(y){if(!Ve(t,(function(e,t){if(!je(y,t)&&(v===e||o(v,e,n,r,l)))return y.push(t)}))){A=!1;break}}else if(v!==_&&!o(v,_,n,r,l)){A=!1;break}}return l.delete(e),l.delete(t),A},Ke=H.Uint8Array;var qe=function(map){var e=-1,t=Array(map.size);return map.forEach((function(n,r){t[++e]=[r,n]})),t};var $e=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Ye=Q?Q.prototype:void 0,We=Ye?Ye.valueOf:void 0;var Xe=function(object,e,t,n,r,o,l){switch(t){case"[object DataView]":if(object.byteLength!=e.byteLength||object.byteOffset!=e.byteOffset)return!1;object=object.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(object.byteLength!=e.byteLength||!o(new Ke(object),new Ke(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return E(+object,+e);case"[object Error]":return object.name==e.name&&object.message==e.message;case"[object RegExp]":case"[object String]":return object==e+"";case"[object Map]":var c=qe;case"[object Set]":var h=1&n;if(c||(c=$e),object.size!=e.size&&!h)return!1;var d=l.get(object);if(d)return d==e;n|=2,l.set(object,e);var f=Ge(c(object),c(e),n,r,o,l);return l.delete(object),f;case"[object Symbol]":if(We)return We.call(object)==We.call(e)}return!1};var Je=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},Ze=Array.isArray;var et=function(object,e,t){var n=e(object);return Ze(object)?n:Je(n,t(object))};var tt=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,l=[];++n<r;){var c=e[n];t(c,n,e)&&(l[o++]=c)}return l};var nt=function(){return[]},it=Object.prototype.propertyIsEnumerable,st=Object.getOwnPropertySymbols,at=st?function(object){return null==object?[]:(object=Object(object),tt(st(object),(function(symbol){return it.call(object,symbol)})))}:nt;var ot=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var lt=function(e){return null!=e&&"object"==typeof e};var ct=function(e){return lt(e)&&"[object Arguments]"==J(e)},ut=Object.prototype,ht=ut.hasOwnProperty,pt=ut.propertyIsEnumerable,ft=ct(function(){return arguments}())?ct:function(e){return lt(e)&&ht.call(e,"callee")&&!pt.call(e,"callee")};var mt=function(){return!1},At=N((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n?H.Buffer:void 0,l=(o?o.isBuffer:void 0)||mt;e.exports=l})),gt=/^(?:0|[1-9]\d*)$/;var yt=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&>.test(e))&&e>-1&&e%1==0&&e<t};var vt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},_t={};_t["[object Float32Array]"]=_t["[object Float64Array]"]=_t["[object Int8Array]"]=_t["[object Int16Array]"]=_t["[object Int32Array]"]=_t["[object Uint8Array]"]=_t["[object Uint8ClampedArray]"]=_t["[object Uint16Array]"]=_t["[object Uint32Array]"]=!0,_t["[object Arguments]"]=_t["[object Array]"]=_t["[object ArrayBuffer]"]=_t["[object Boolean]"]=_t["[object DataView]"]=_t["[object Date]"]=_t["[object Error]"]=_t["[object Function]"]=_t["[object Map]"]=_t["[object Number]"]=_t["[object Object]"]=_t["[object RegExp]"]=_t["[object Set]"]=_t["[object String]"]=_t["[object WeakMap]"]=!1;var bt=function(e){return lt(e)&&vt(e.length)&&!!_t[J(e)]};var wt=function(e){return function(t){return e(t)}},xt=N((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&L.process,l=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=l})),Et=xt&&xt.isTypedArray,Ct=Et?wt(Et):bt,St=Object.prototype.hasOwnProperty;var Tt=function(e,t){var n=Ze(e),r=!n&&ft(e),o=!n&&!r&&At(e),l=!n&&!r&&!o&&Ct(e),c=n||r||o||l,h=c?ot(e.length,String):[],d=h.length;for(var f in e)!t&&!St.call(e,f)||c&&("length"==f||o&&("offset"==f||"parent"==f)||l&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||yt(f,d))||h.push(f);return h},Bt=Object.prototype;var kt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Bt)};var It=function(e,t){return function(n){return e(t(n))}},Mt=It(Object.keys,Object),Pt=Object.prototype.hasOwnProperty;var Dt=function(object){if(!kt(object))return Mt(object);var e=[];for(var t in Object(object))Pt.call(object,t)&&"constructor"!=t&&e.push(t);return e};var Ut=function(e){return null!=e&&vt(e.length)&&!te(e)};var Ot=function(object){return Ut(object)?Tt(object):Dt(object)};var Ft=function(object){return et(object,Ot,at)},Rt=Object.prototype.hasOwnProperty;var Nt=function(object,e,t,n,r,o){var l=1&t,c=Ft(object),h=c.length;if(h!=Ft(e).length&&!l)return!1;for(var d=h;d--;){var f=c[d];if(!(l?f in e:Rt.call(e,f)))return!1}var m=o.get(object);if(m&&o.get(e))return m==e;var A=!0;o.set(object,e),o.set(e,object);for(var y=l;++d<h;){var v=object[f=c[d]],_=e[f];if(n)var w=l?n(_,v,f,e,object,o):n(v,_,f,object,e,o);if(!(void 0===w?v===_||r(v,_,t,n,o):w)){A=!1;break}y||(y="constructor"==f)}if(A&&!y){var x=object.constructor,E=e.constructor;x==E||!("constructor"in object)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(A=!1)}return o.delete(object),o.delete(e),A},Lt=me(H,"DataView"),zt=me(H,"Promise"),Ht=me(H,"Set"),Qt=me(H,"WeakMap"),Vt=ae(Lt),jt=ae(Ae),Gt
2=ae(zt),Kt=ae(Ht),qt=ae(Qt),$t=J;(Lt&&"[object DataView]"!=$t(new Lt(new ArrayBuffer(1)))||Ae&&"[object Map]"!=$t(new Ae)||zt&&"[object Promise]"!=$t(zt.resolve())||Ht&&"[object Set]"!=$t(new Ht)||Qt&&"[object WeakMap]"!=$t(new Qt))&&($t=function(e){var t=J(e),n="[object Object]"==t?e.constructor:void 0,r=n?ae(n):"";if(r)switch(r){case Vt:return"[object DataView]";case jt:return"[object Map]";case Gt:return"[object Promise]";case Kt:return"[object Set]";case qt:return"[object WeakMap]"}return t});var Yt=$t,Wt=Object.prototype.hasOwnProperty;var Xt=function(object,e,t,n,r,o){var l=Ze(object),c=Ze(e),h=l?"[object Array]":Yt(object),d=c?"[object Array]":Yt(e),f="[object Object]"==(h="[object Arguments]"==h?"[object Object]":h),m="[object Object]"==(d="[object Arguments]"==d?"[object Object]":d),A=h==d;if(A&&At(object)){if(!At(e))return!1;l=!0,f=!1}if(A&&!f)return o||(o=new Ne),l||Ct(object)?Ge(object,e,t,n,r,o):Xe(object,e,h,t,n,r,o);if(!(1&t)){var y=f&&Wt.call(object,"__wrapped__"),v=m&&Wt.call(e,"__wrapped__");if(y||v){var _=y?object.value():object,w=v?e.value():e;return o||(o=new Ne),r(_,w,t,n,o)}}return!!A&&(o||(o=new Ne),Nt(object,e,t,n,r,o))};var Jt=function e(t,n,r,o,l){return t===n||(null==t||null==n||!lt(t)&&!lt(n)?t!=t&&n!=n:Xt(t,n,r,o,e,l))};var Zt=function(e,t){return Jt(e,t)},en={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0},tn=[],nn=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"_events",[]),h(this,"_setTooltipNodeEvent",(function(e,t,n,o){var l=e.relatedreference||e.toElement||e.relatedTarget;return!!r._tooltipNode.contains(l)&&(r._tooltipNode.addEventListener(e.type,(function n(l){var c=l.relatedreference||l.toElement||l.relatedTarget;r._tooltipNode.removeEventListener(e.type,n),t.contains(c)||r._scheduleHide(t,o.delay,o,l)})),!0)})),n=f({},en,{},n),t.jquery&&(t=t[0]),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.reference=t,this.options=n,this._isOpen=!1,this._init()}var t,n,o;return t=e,(n=[{key:"show",value:function(){this._show(this.reference,this.options)}},{key:"hide",value:function(){this._hide()}},{key:"dispose",value:function(){this._dispose()}},{key:"toggle",value:function(){return this._isOpen?this.hide():this.show()}},{key:"setClasses",value:function(e){this._classes=e}},{key:"setContent",value:function(content){this.options.title=content,this._tooltipNode&&this._setContent(content,this.options)}},{key:"setOptions",value:function(e){var t=!1,n=e&&e.classes||pn.options.defaultClass;Zt(this._classes,n)||(this.setClasses(n),t=!0),e=on(e);var r=!1,o=!1;for(var l in this.options.offset===e.offset&&this.options.placement===e.placement||(r=!0),(this.options.template!==e.template||this.options.trigger!==e.trigger||this.options.container!==e.container||t)&&(o=!0),e)this.options[l]=e[l];if(this._tooltipNode)if(o){var c=this._isOpen;this.dispose(),this._init(),c&&this.show()}else r&&this.popperInstance.update()}},{key:"_init",value:function(){var e="string"==typeof this.options.trigger?this.options.trigger.split(" "):[];this._isDisposed=!1,this._enableDocumentTouch=-1===e.indexOf("manual"),e=e.filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})),this._setEventListeners(this.reference,e,this.options),this.$_originalTitle=this.reference.getAttribute("title"),this.reference.removeAttribute("title"),this.reference.setAttribute("data-original-title",this.$_originalTitle)}},{key:"_create",value:function(e,template){var t=window.document.createElement("div");t.innerHTML=template.trim();var n=t.childNodes[0];return n.id="tooltip_".concat(Math.random().toString(36).substr(2,10)),n.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(n.addEventListener("mouseenter",this.hide),n.addEventListener("click",this.hide)),n}},{key:"_setContent",value:function(content,e){var t=this;this.asyncContent=!1,this._applyContent(content,e).then((function(){t.popperInstance.update(
vendor: 24,753 bytes, line 2
2)}))}},{key:"_applyContent",value:function(title,e){var t=this;return new Promise((function(n,r){var o=e.html,l=t._tooltipNode;if(l){var c=l.querySelector(t.options.innerSelector);if(1===title.nodeType){if(o){for(;c.firstChild;)c.removeChild(c.firstChild);c.appendChild(title)}}else{if("function"==typeof title){var h=title();return void(h&&"function"==typeof h.then?(t.asyncContent=!0,e.loadingClass&&y(l,e.loadingClass),e.loadingContent&&t._applyContent(e.loadingContent,e),h.then((function(n){return e.loadingClass&&v(l,e.loadingClass),t._applyContent(n,e)})).then(n).catch(r)):t._applyContent(h,e).then(n).catch(r))}o?c.innerHTML=title:c.innerText=title}n()}}))}},{key:"_show",value:function(e,t){if(!t||"string"!=typeof t.container||document.querySelector(t.container)){clearTimeout(this._disposeTimer),delete(t=Object.assign({},t)).offset;var n=!0;this._tooltipNode&&(y(this._tooltipNode,this._classes),n=!1);var r=this._ensureShown(e,t);return n&&this._tooltipNode&&y(this._tooltipNode,this._classes),y(e,["v-tooltip-open"]),r}}},{key:"_ensureShown",value:function(e,t){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,tn.push(this),this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(t.title,t),this;var title=e.getAttribute("title")||t.title;if(!title)return this;var o=this._create(e,t.template);this._tooltipNode=o,e.setAttribute("aria-describedby",o.id);var l=this._findContainer(t.container,e);this._append(o,l);var c=f({},t.popperOptions,{placement:t.placement});return c.modifiers=f({},c.modifiers,{arrow:{element:this.options.arrowSelector}}),t.boundariesElement&&(c.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new r.a(e,o,c),this._setContent(title,t),requestAnimationFrame((function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame((function(){n._isDisposed?n.dispose():n._isOpen&&o.setAttribute("aria-hidden","false")}))):n.dispose()})),this}},{key:"_noLongerOpen",value:function(){var e=tn.indexOf(this);-1!==e&&tn.splice(e,1)}},{key:"_hide",value:function(){var e=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var t=pn.options.disposeTimeout;return null!==t&&(this._disposeTimer=setTimeout((function(){e._tooltipNode&&(e._tooltipNode.removeEventListener("mouseenter",e.hide),e._tooltipNode.removeEventListener("click",e.hide),e._removeTooltipNode())}),t)),v(this.reference,["v-tooltip-open"]),this}},{key:"_removeTooltipNode",value:function(){if(this._tooltipNode){var e=this._tooltipNode.parentNode;e&&(e.removeChild(this._tooltipNode),this.reference.removeAttribute("aria-describedby")),this._tooltipNode=null}}},{key:"_dispose",value:function(){var e=this;return this._isDisposed=!0,this.reference.removeAttribute("data-original-title"),this.$_originalTitle&&this.reference.setAttribute("title",this.$_originalTitle),this._events.forEach((function(t){var n=t.func,r=t.event;e.reference.removeEventListener(r,n)})),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener("mouseenter",this.hide),this._tooltipNode.removeEventListener("click",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||this._removeTooltipNode()):this._noLongerOpen(),this}},{key:"_findContainer",value:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:"_append",value:function(e,t){t.appendChild(e)}},{key:"_setEventListeners",value:function(e,t,n){var r=this,o=[],l=[];t.forEach((function(e){switch(e){case"hover":o.push("mouseenter"),l.push("mouseleave"),r.options.hideOnTargetClick&&l.push("click");break;case"focus":o.push("focus"),l.push("blur"),r.options.hideOnTargetClick&&l.push("click");break;case"click":o.push("click"),l.push("click")}})),o.forEach((function(t){var o=function(t){!0!==r._isOpen&&(t.usedByTooltip=!0,r._scheduleShow(e,n.delay,n,t))};r._events.push({event:t,func:o}),e.addEventListener(t,o)})),l.forEach((function(t){var o=function(t){!0!==t.usedByTooltip&&r._scheduleHide(e,n.delay,n,t)};r._events.push({event:t,func:o}),e.addEventListener(t,o)}))}},{key:"_onDocumentTouch",value:function(e){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,e)}},{key:"_scheduleShow",value:function(e,t,n){var r=this,o=t&&t.show||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){return r._show(e,n)}),o)}},{key:"_scheduleHide",value:function(e,t,n,r){var o=this,l=t&&t.hide||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){if(!1!==o._isOpen&&o._tooltipNode.ownerDocument.body.contains(o._tooltipNode)){if("mouseleave"===r.type&&o._setTooltipNodeEvent(r,e,t,n))return;o._hide(e,n)}}),l)}}])&&c(t.prototype,n),o&&c(t,o),e}();"undefined"!=typeof document&&document.addEventListener("touchstart",(function(e){for(var i=0;i<tn.length;i++)tn[i]._onDocumentTouch(e)}),!_||{passive:!0,capture:!0});var rn={enabled:!0},sn=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],an={defaultPlacement:"top",defaultClass:"vue-tooltip-theme",defaultTargetClass:"has-tooltip",defaultHtml:!0,defaultTemplate:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',defaultArrowSelector:".tooltip-arrow, .tooltip__arrow",defaultInnerSelector:".tooltip-inner, .tooltip__inner",defaultDelay:0,defaultTrigger:"hover focus",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:"tooltip-loading",defaultLoadingContent:"...",autoHide:!0,defaultHideOnTargetClick:!0,disposeTimeout:5e3,popover:{defaultPlacement:"bottom",defaultClass:"vue-popover-theme",defaultBaseClass:"tooltip popover",defaultWrapperClass:"wrapper",defaultInnerClass:"tooltip-inner popover-inner",defaultArrowClass:"tooltip-arrow popover-arrow",defaultOpenClass:"open",defaultDelay:0,defaultTrigger:"click",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}};function on(e){var t={placement:void 0!==e.placement?e.placement:pn.options.defaultPlacement,delay:void 0!==e.delay?e.delay:pn.options.defaultDelay,html:void 0!==e.html?e.html:pn.options.defaultHtml,template:void 0!==e.template?e.template:pn.options.defaultTemplate,arrowSelector:void 0!==e.arrowSelector?e.arrowSelector:pn.options.defaultArrowSelector,innerSelector:void 0!==e.innerSelector?e.innerSelector:pn.options.defaultInnerSelector,trigger:void 0!==e.trigger?e.trigger:pn.options.defaultTrigger,offset:void 0!==e.offset?e.offset:pn.options.defaultOffset,container:void 0!==e.container?e.container:pn.options.defaultContainer,boundariesElement:void 0!==e.boundariesElement?e.boundariesElement:pn.options.defaultBoundariesElement,autoHide:void 0!==e.autoHide?e.autoHide:pn.options.autoHide,hideOnTargetClick:void 0!==e.hideOnTargetClick?e.hideOnTargetClick:pn.options.defaultHideOnTargetClick,loadingClass:void 0!==e.loadingClass?e.loadingClass:pn.options.defaultLoadingClass,loadingContent:void 0!==e.loadingContent?e.loadingContent:pn.options.defaultLoadingContent,popperOptions:f({},void 0!==e.popperOptions?e.popperOptions:pn.options.defaultPopperOptions)};if(t.offset){var n=l(t.offset),r=t.offset;("number"===n||"string"===n&&-1===r.indexOf(","))&&(r="0, ".concat(r)),t.popperOptions.modifiers||(t.popperOptions.modifiers={}),t.popperOptions.modifiers.offset={offset:r}}return t.trigger&&-1!==t.trigger.indexOf("click")&&(t.hideOnTargetClick=!1),t}function ln(e,t){for(var n=e.placement,i=0;i<sn.length;i++){var r=sn[i];t[r]&&(n=r)}return n}function cn(e){var t=l(e);return"string"===t?e:!(!e||"object"!==t)&&e.content}function un(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},content=cn(t),r=void 0!==t.classes?t.classes:pn.options.defaultClass,o=f({title:content},on(f({},t,{placement:ln(t,n)}))),l=e._tooltip=new nn(e,o);l.setClasses(r),l._vueEl=e;var c=void 0!==t.targetClasses?t.targetClasses:pn.options.defaultTargetClass;return e._tooltipTargetClasses=c,y(e,c),l}function hn(e){e._tooltip&&(e._tooltip.dispose(),delete e._tooltip,delete e._tooltipOldShow),e._tooltipTargetClasses&&(v(e,e._tooltipTargetClasses),delete e._tooltipTargetClasses)}function dn(e,t){var n,r=t.value,o=(t.oldValue,t.modifiers),content=cn(r);content&&rn.enabled?(e._tooltip?((n=e._tooltip).setContent(content),n.setOptions(f({},r,{placement:ln(r,o)}))):n=un(e,r,o),void 0!==r.show&&r.show!==e._tooltipOldShow&&(e._tooltipOldShow=r.show,r.show?n.show():n.hide())):hn(e)}var pn={options:an,bind:dn,update:dn,unbind:function(e){hn(e)}};function fn(e){e.addEventListener("click",An),e.addEventListener("touchstart",gn,!!_&&{passive:!0})}function mn(e){e.removeEventListener("click",An),e.removeEventListener("touchstart",gn),e.removeEventListener("touchend",yn),e.removeEventListener("touchcancel",vn)}function An(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function gn(e){if(1===e.changedTouches.length){var t=e.currentTarget;t.$_vclosepopover_touch=!0;var n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",yn),t.addEventListener("touchcancel",vn)}}function yn(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function vn(e){e.currentTarget.$_vclosepopover_touch=!1}var _n={bind:function(e,t){var n=t.value,r=t.modifiers;e.$_closePopoverModifiers=r,(void 0===n||n)&&fn(e)},update:function(e,t){var n=t.value,r=t.oldValue,o=t.modifiers;e.$_closePopoverModifiers=o,n!==r&&(void 0===n||n?fn(e):mn(e))},unbind:function(e){mn(e)}};function bn(e){var t=pn.options.popover[e];return void 0===t?pn.options[e]:t}var wn=!1;"undefined"!=typeof window&&"undefined"!=typeof navigator&&(wn=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var xn=[],En=function(){};"undefined"!=typeof window&&(En=window.Element);var script={name:"VPopover",components:{ResizeObserver:o.a},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return bn("defaultPlacement")}},delay:{type:[String,Number,Object],default:function(){return bn("defaultDelay")}},offset:{type:[String,Number],default:function(){return bn("defaultOffset")}},trigger:{type:String,default:function(){return bn("defaultTrigger")}},container:{type:[String,Object,En,Boolean],default:function(){return bn("defaultContainer")}},boundariesElement:{type:[String,En],default:function(){return bn("defaultBoundariesElement")}},popperOptions:{type:Object,default:function(){return bn("defaultPopperOptions")}},popoverClass:{type:[String,Array],default:function(){return bn("defaultClass")}},popoverBaseClass:{type:[String,Array],default:function(){return pn.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return pn.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return pn.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return pn.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return pn.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return pn.options.popover.defaultHandleResize}},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:function(){return pn.options.popover.defaultOpenClass}}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return h({},this.openClass,this.isOpen)},popoverId:function(){return"popover_".concat(this.id)}},watch:{open:function(e){e?this.show():this.hide()},disabled:function(e,t){e!==t&&(e?this.hide():this.open&&this.show())},container:function(e){if(this.isOpen&&this.popperInstance){var t=this.$refs.popover,n=this.$refs.trigger,r=this.$_findContainer(this.container,n);if(!r)return void console.warn("No container for popover",this);r.appendChild(t),this.popperInstance.scheduleUpdate()}},trigger:function(e){this.$_removeEventListeners(),this.$_addEventListeners()},placement:function(e){var t=this;this.$_updatePopper((function(){t.popperInstance.options.placement=e}))},offset:"$_restartPopper",boundariesElement:"$_restartPopper",popperOptions:{handler:"$_restartPopper",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e),this.$_init(),this.open&&this.show()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.event,r=(t.skipDelay,t.force),o=void 0!==r&&r;!o&&this.disabled||(this.$_scheduleShow(n),this.$emit("show")),this.$emit("update:open",!0),this.$_beingShowed=!0,requestAnimationFrame((function(){e.$_beingShowed=!1}))},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event;e.skipDelay;this.$_scheduleHide(t),this.$emit("hide"),this.$emit("update:open",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit("dispose")},$_init:function(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show:function(){var e=this,t=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var o=this.$_findContainer(this.container,t);if(!o)return void console.warn("No container for popover",this);o.appendChild(n),this.$_mounted=!0}if(!this.popperInstance){var l=f({},this.popperOptions,{placement:this.placement});if(l.modifiers=f({},l.modifiers,{arrow:f({},l.modifiers&&l.modifiers.arrow,{element:this.$refs.arrow})}),this.offset){var c=this.$_getOffset();l.modifiers.offset=f({},l.modifiers&&l.modifiers.offset,{offset:c})}this.boundariesElement&&(l.modifiers.preventOverflow=f({},l.modifiers&&l.modifiers.preventOverflow,{boundariesElement:this.boundariesElement})),this.popperInstance=new r.a(t,n,l),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();!e.$_isDisposed&&e.popperInstance?(e.popperInstance.scheduleUpdate(),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();e.$_isDisposed?e.dispose():e.isOpen=!0}))):e.dispose()}))}var h=this.openGroup;if(h)for(var d,i=0;i<xn.length;i++)(d=xn[i]).openGroup!==h&&(d.hide(),d.$emit("close-group"));xn.push(this),this.$emit("apply-show")}},$_hide:function(){var e=this;if(this.isOpen){var t=xn.indexOf(this);-1!==t&&xn.splice(t,1),this.isOpen=!1,this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this.$_disposeTimer);var n=pn.options.popover.disposeTimeout||pn.options.disposeTimeout;null!==n&&(this.$_disposeTimer=setTimeout((function(){var t=e.$refs.popover;t&&(t.parentNode&&t.parentNode.removeChild(t),e.$_mounted=!1)}),n)),this.$emit("apply-hide")}},$_findContainer:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e},$_getOffset:function(){var e=l(this.offset),t=this.offset;return("number"===e||"string"===e&&-1===t.indexOf(","))&&(t="0, ".concat(t)),t},$_addEventListeners:function(){var e=this,t=this.$refs.trigger,n=[],r=[];("string"==typeof this.trigger?this.trigger.split(" ").filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})):[]).forEach((function(e){switch(e){case"hover":n.push("mouseenter"),r.push("mouseleave");break;case"focus":n.push("focus"),r.push("blur");break;case"click":n.push("click"),r.push("click")}})),n.forEach((function(n){var r=function(t){e.isOpen||(t.usedByTooltip=!0,!e.$_preventOpen&&e.show({event:t}),e.hidden=!1)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)})),r.forEach((function(n){var r=function(t){t.usedByTooltip||(e.hide({event:t}),e.hidden=!0)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)}))},$_scheduleShow:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),e)this.$_show();else{var t=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),t)}},$_scheduleHide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var r=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout((function(){if(e.isOpen){if(t&&"mouseleave"===t.type)if(e.$_setTooltipNodeEvent(t))return;e.$_hide()}}),r)}},$_setTooltipNodeEvent:function(e){var t=this,n=this.$refs.trigger,r=this.$refs.popover,o=e.relatedreference||e.toElement||e.relatedTarget;return!!r.contains(o)&&(r.addEventListener(e.type,(function o(l){var c=l.relatedreference||l.toElement||l.relatedTarget;r.removeEventListener(e.type,o),n.contains(c)||t.hide({event:l})})),!0)},$_removeEventListeners:function(){var e=this.$refs.trigger;this.$_events.forEach((function(t){var n=t.func,r=t.event;e.removeEventListener(r,n)})),this.$_events=[]},$_updatePopper:function(e){this.popperInstance&&(e(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var e=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),e&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventOpen=!0,setTimeout((function(){t.$_preventOpen=!1}),300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit("resize"))}}};function Cn(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(i){var n=xn[i];if(n.$refs.popover){var r=n.$refs.popover.contains(e.target);requestAnimationFrame((function(){(e.closeAllPopover||e.closePopover&&r||n.autoHide&&!r)&&n.$_handleGlobalClose(e,t)}))}},i=0;i<xn.length;i++)n(i)}"undefined"!=typeof document&&"undefined"!=typeof window&&(wn?document.addEventListener("touchend",(function(e){Cn(e,!0)}),!_||{passive:!0,capture:!0}):window.addEventListener("click",(function(e){Cn(e)}),!0));var Sn=script,Tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-popover",class:e.cssClass},[n("div",{ref:"trigger",staticClass:"trigger",staticStyle:{display:"inline-block"},attrs:{"aria-describedby":e.popoverId,tabindex:-1!==e.trigger.indexOf("focus")?0:void 0}},[e._t("default")],2),e._v(" "),n("div",{ref:"popover",class:[e.popoverBaseClass,e.popoverClass,e.cssClass],style:{visibility:e.isOpen?"visible":"hidden"},attrs:{id:e.popoverId,"aria-hidden":e.isOpen?"false":"true",tabindex:e.autoHide?0:void 0},on:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.autoHide&&e.hide()}}},[n("div",{class:e.popoverWrapperClass},[n("div",{ref:"inner",class:e.popoverInnerClass,staticStyle:{position:"relative"}},[n("div",[e._t("popover")],2),e._v(" "),e.handleResize?n("ResizeObserver",{on:{notify:e.$_handleResize}}):e._e()],1),e._v(" "),n("div",{ref:"arrow",class:e.popoverArrowClass})])])])};Tn._withStripped=!0;var Bn=function(template,style,script,e,t,n,r,o,l,c){"boolean"!=typeof r&&(l=o,o=r,r=!1);const h="function"==typeof script?script.options:script;let d;if(template&&template.render&&(h.render=template.render,h.staticRenderFns=template.staticRenderFns,h._compiled=!0,t&&(h.functional=!0)),e&&(h._scopeId=e),n?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),style&&style.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(n)},h._ssrRegister=d):style&&(d=r?function(e){style.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){style.call(this,o(e))}),d)if(h.functional){const e=h.render;h.render=function(t,n){return d.call(n),e(t,n)}}else{const e=h.beforeCreate;h.beforeCreate=e?[].concat(e,d):[d]}return script}({render:Tn,staticRenderFns:[]},void 0,Sn,void 0,!1,void 0,!1,void 0,void 0,void 0),kn=function(){try{var e=me(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var In=function(object,e,t){"__proto__"==e&&kn?kn(object,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):object[e]=t};var Mn=function(object,e,t){(void 0!==t&&!E(object[e],t)||void 0===t&&!(e in object))&&In(object,e,t)};var Pn=function(e){return function(object,t,n){for(var r=-1,o=Object(object),l=n(object),c=l.length;c--;){var h=l[e?c:++r];if(!1===t(o[h],h,o))break}return object}}(),Dn=N((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n?H.Buffer:void 0,l=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}}));var Un=function(e){var t=new e.constructor(e.byteLength);return new Ke(t).set(new Ke(e)),t};var On=function(e,t){var n=t?Un(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Fn=function(source,e){var t=-1,n=source.length;for(e||(e=Array(n));++t<n;)e[t]=source[t];return e},Rn=Object.create,Nn=function(){function object(){}return function(e){if(!Z(e))return{};if(Rn)return Rn(e);object.prototype=e;var t=new object;return object.prototype=void 0,t}}(),Ln=It(Object.getPrototypeOf,Object);var zn=function(object){return"function"!=typeof object.constructor||kt(object)?{}:Nn(Ln(object))};var Hn=function(e){return lt(e)&&Ut(e)},Qn=Function.prototype,Vn=Object.prototype,jn=Qn.toString,Gn=Vn.hasOwnProperty,Kn=jn.call(Object);var qn=function(e){if(!lt(e)||"[object Object]"!=J(e))return!1;var t=Ln(e);if(null===t)return!0;var n=Gn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&jn.call(n)==Kn};var $n=function(object,e){if(("constructor"!==e||"function"!=typeof object[e])&&"__proto__"!=e)return object[e]},Yn=Object.prototype.hasOwnProperty;var Wn=function(object,e,t){var n=object[e];Yn.call(object,e)&&E(n,t)&&(void 0!==t||e in object)||In(object,e,t)};var Xn=function(source,e,object,t){var n=!object;object||(object={});for(var r=-1,o=e.length;++r<o;){var l=e[r],c=t?t(object[l],source[l],l,object,source):void 0;void 0===c&&(c=source[l]),n?In(object,l,c):Wn(object,l,c)}return object};var Jn=function(object){var e=[];if(null!=object)for(var t in Object(object))e.push(t);return e},Zn=Object.prototype.hasOwnProperty;var er=function(object){if(!Z(object))return Jn(object);var e=kt(object),t=[];for(var n in object)("constructor"!=n||!e&&Zn.call(object,n))&&t.push(n);return t};var nr=function(object){return Ut(object)?Tt(object,!0):er(object)};var rr=function(e){return Xn(e,nr(e))};var ir=function(object,source,e,t,n,r,o){var l=$n(object,e),c=$n(source,e),h=o.get(c);if(h)Mn(object,e,h);else{var d=r?r(l,c,e+"",object,source,o):void 0,f=void 0===d;if(f){var m=Ze(c),A=!m&&At(c),y=!m&&!A&&Ct(c);d=c,m||A||y?Ze(l)?d=l:Hn(l)?d=Fn(l):A?(f=!1,d=Dn(c,!0)):y?(f=!1,d=On(c,!0)):d=[]:qn(c)||ft(c)?(d=l,ft(l)?d=rr(l):Z(l)&&!te(l)||(d=zn(c))):f=!1}f&&(o.set(c,d),n(d,c,t,r,o),o.delete(c)),Mn(object,e,d)}};var sr=function e(object,source,t,n,r){object!==source&&Pn(source,(function(o,l){if(r||(r=new Ne),Z(o))ir(object,source,l,t,e,n,r);else{var c=n?n($n(object,l),o,l+"",object,source,r):void 0;void 0===c&&(c=o),Mn(object,l,c)}}),nr)};var ar=function(e){return e};var or=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}
2,lr=Math.max;var cr=function(e,t,n){return t=lr(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,l=lr(r.length-t,0),c=Array(l);++o<l;)c[o]=r[t+o];o=-1;for(var h=Array(t+1);++o<t;)h[o]=r[o];return h[t]=n(c),or(e,this,h)}};var ur=function(e){return function(){return e}},dr=kn?function(e,t){return kn(e,"toString",{configurable:!0,enumerable:!1,value:ur(t),writable:!0})}:ar,pr=Date.now;var fr=function(e){var t=0,n=0;return function(){var r=pr(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(dr);var mr=function(e,t){return fr(cr(e,t,ar),e+"")};var Ar=function(e,t,object){if(!Z(object))return!1;var n=typeof t;return!!("number"==n?Ut(object)&&yt(t,object.length):"string"==n&&t in object)&&E(object[t],e)};var gr=function(e){return mr((function(object,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,l=r>2?t[2]:void 0;for(o=e.length>3&&"function"==typeof o?(r--,o):void 0,l&&Ar(t[0],t[1],l)&&(o=r<3?void 0:o,r=1),object=Object(object);++n<r;){var source=t[n];source&&e(object,source,n,o)}return object}))}((function(object,source,e){sr(object,source,e)}));function yr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!yr.installed){yr.installed=!0;var n={};gr(n,an,t),xr.options=n,pn.options=n,e.directive("tooltip",pn),e.directive("close-popover",_n),e.component("v-popover",Bn)}}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var head=document.head||document.getElementsByTagName("head")[0],style=document.createElement("style");style.type="text/css","top"===n&&head.firstChild?head.insertBefore(style,head.firstChild):head.appendChild(style),style.styleSheet?style.styleSheet.cssText=e:style.appendChild(document.createTextNode(e))}}(".resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}");var vr=pn,_r=_n,wr=Bn,xr={install:yr,get enabled(){return rn.enabled},set enabled(e){rn.enabled=e}},Er=null;"undefined"!=typeof window?Er=window.Vue:void 0!==e&&(Er=e.Vue),Er&&Er.use(xr),t.default=xr}.call(this,n(31))},3372:function(e,t){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(1);e.exports=function(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a="object"===("undefined"==typeof document?"undefined":r(document))&&"string"==typeof document.cookie,s="object"===(void 0===t?"undefined":r(t))&&"object"===(void 0===n?"undefined":r(n))&&void 0!==e,u=!a&&!s||a&&s,l=function(e){if(s){var r=t.headers.cookie||"";return e&&(r=(r=n.getHeaders())["set-cookie"]?r["set-cookie"].map((function(e){return e.split(";")[0]})).join(";"):""),r}if(a)return document.cookie||""},c=function(){var e=n.getHeader("Set-Cookie");return(e="string"==typeof e?[e]:e)||[]},p=function(e){return n.setHeader("Set-Cookie",e)},h=function(e,t){if(!t)return e;try{return JSON.parse(e)}catch(t){return e}},d={parseJSON:i,set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};if(!u)if(t="object"===(void 0===t?"undefined":r(t))?JSON.stringify(t):t,s){var i=c();i.push(o.serialize(e,t,n)),p(i)}else document.cookie=o.serialize(e,t,n)},setAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u||Array.isArray(e)&&e.forEach((function(e){var t=e.name,n=void 0===t?"":t,r=e.value,o=void 0===r?"":r,i=e.opts,a=void 0===i?{path:"/"}:i;d.set(n,o,a)}))},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fromRes:!1,parseJSON:d.parseJSON};if(u)return"";var n=o.parse(l(t.fromRes)),r=n[e];return h(r,t.parseJSON)},getAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromRes:!1,parseJSON:d.parseJSON};if(u)return{};var t=o.parse(l(e.fromRes));for(var n in t)t[n]=h(t[n],e.parseJSON);return t},remove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{path:"/"};if(!u){var n=d.get(e);t.expires=new Date(0),void 0!==n&&d.set(e,"",t)}},removeAll:function(){if(!u){var e=o.parse(l());for(var t in e)d.remove(t)}},nodeCookie:o};return d}},function(e,t,n){"use strict";function i(e,t){try{return t(e)}catch(t){return e}}t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},r=t||{},o=e.split(u),s=r.decode||a,l=0;l<o.length;l++){var c=o[l],p=c.indexOf("=");if(!(p<0)){var h=c.substr(0,p).trim(),d=c.substr(++p,c.length).trim();
2'"'==d[0]&&(d=d.slice(1,-1)),null==n[h]&&(n[h]=i(d,s))}}return n},t.serialize=function(e,t,n){var o=n||{},l=o.encode||s;if("function"!=typeof l)throw new TypeError("option encode is invalid");if(!r.test(e))throw new TypeError("argument name is invalid");var i=l(t);if(i&&!r.test(i))throw new TypeError("argument val is invalid");var a=e+"="+i;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u))throw new Error("maxAge should be a Number");a+="; Max-Age="+Math.floor(u)}if(o.domain){if(!r.test(o.domain))throw new TypeError("option domain is invalid");a+="; Domain="+o.domain}if(o.path){if(!r.test(o.path))throw new TypeError("option path is invalid");a+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");a+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(a+="; HttpOnly"),o.secure&&(a+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a};var a=decodeURIComponent,s=encodeURIComponent,u=/; */,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/}])},3463:function(e,t,n){e.exports=function(){"use strict";var e=function(t,b){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])})(t,b)};function t(t,b){function n(){this.constructor=t}e(t,b),t.prototype=null===b?Object.create(b):(n.prototype=b.prototype,new n)}var n=function(){return(n=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e}).apply(this,arguments)};function r(e,t,n,r){return new(n||(n=Promise))((function(o,l){function c(e){try{d(r.next(e))}catch(e){l(e)}}function h(e){try{d(r.throw(e))}catch(e){l(e)}}function d(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(c,h)}d((r=r.apply(e,t||[])).next())}))}function o(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function l(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&l[0]?n.return:l[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;switch(n=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,n=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(6===l[0]&&o.label<r[1]){o.label=r[1],r=l;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(l);break}r[2]&&o.ops.pop(),o.trys.pop();continue}l=body.call(e,o)}catch(e){l=[6,e],n=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}for(var l=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,o){return new e(this.left+t,this.top+n,this.width+r,this.height+o)},e.fromClientRect=function(t){return new e(t.left,t.top,t.width,t.height)},e}(),c=function(e){return l.fromClientRect(e.getBoundingClientRect())},h=function(e){for(var t=[],i=0,n=e.length;i<n;){var r=e.charCodeAt(i++);if(r>=55296&&r<=56319&&i<n){var o=e.charCodeAt(i++);56320==(64512&o)?t.push(((1023&r)<<10)+(1023&o)+65536):(t.push(r),i--)}else t.push(r)}return t},d=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],o=-1,l="";++o<n;){var c=e[o];c<=65535?r.push(c):(c-=65536,r.push(55296+(c>>10),c%1024+56320)),(o+1===n||r.length>16384)&&(l+=String.fromCharCode.apply(String,r),r.length=0)}return l},f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/",m="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i=0;i<f.length;i++)m[f.charCodeAt(i)]=i;var A,y=function(view,e,t){return view.slice?view.slice(e,t):new Uint16Array(Array.prototype.slice.call(view,e,t))},v=function(){function e(e,t,n,r,o,data){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=o,this.data=data}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),_=10,w=13,x=15,E=17,C=18,S=19,T=20,B=21,k=22,I=24,M=25,P=26,D=27,U=28,O=30,F=32,R=33,N=34,L=35,z=37,H=38,Q=39,V=40,j=42,G=function(e){var view,t,n,r=function(e){var i,t,n,r,o,l=.75*e.length,c=e.length,p=0;"="===e[e.length-1]&&(l--,"="===e[e.length-2]&&l--);var h="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(l):new Array(l),d=Array.isArray(h)?h:new Uint8Array(h);for(i=0;i<c;i+=4)t=m[e.charCodeAt(i)],n=m[e.charCodeAt(i+1)],r=m[e.charCodeAt(i+2)],o=m[e.charCodeAt(i+3)],d[p++]=t<<2|n>>4,d[p++]=(15&n)<<4|r>>2,d[p++]=(3&r)<<6|63&o;return h}(e),o=Array.isArray(r)?function(e){for(var t=e.length,n=[],i=0;i<t;i+=4)n.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return n}(r):new Uint32Array(r),l=Array.isArray(r)?function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n.push(e[i+1]<<8|e[i]);return n}(r):new Uint16Array(r),c=y(l,12,o[4]/2),data=2===o[5]?y(l,(24+o[4])/2):(view=o,t=Math.ceil((24+o[4])/4),view.slice?view.slice(t,n):new Uint32Array(Array.prototype.slice.call(view,t,n)));return new v(o[0],o[1],o[2],o[3],c,data)}(
vendor: 50,626 bytes, line 2
2"KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"
2),K=[O,36],$=[1,2,3,5],Y=[_,8],W=[D,P],X=$.concat(Y),J=[H,Q,V,N,L],Z=[x,w],ee=function(a,b,e,t){var n=t[e];if(Array.isArray(a)?-1!==a.indexOf(n):a===n)for(var i=e;i<=t.length;){if((l=t[++i])===b)return!0;if(l!==_)break}if(n===_)for(i=e;i>0;){var r=t[--i];if(Array.isArray(a)?-1!==a.indexOf(r):a===r)for(var o=e;o<=t.length;){var l;if((l=t[++o])===b)return!0;if(l!==_)break}if(r!==_)break}return!1},te=function(e,t){for(var i=e;i>=0;){var n=t[i];if(n!==_)return n;i--}return 0},ne=function(e,t,n,r,o){if(0===n[r])return"Ã";var l=r-1;if(Array.isArray(o)&&!0===o[l])return"Ã";var c=l-1,h=l+1,d=t[l],f=c>=0?t[c]:0,m=t[h];if(2===d&&3===m)return"Ã";if(-1!==$.indexOf(d))return"!";if(-1!==$.indexOf(m))return"Ã";if(-1!==Y.indexOf(m))return"Ã";if(8===te(l,t))return"÷";if(11===G.get(e[l])&&(m===z||m===F||m===R))return"Ã";if(7===d||7===m)return"Ã";if(9===d)return"Ã";if(-1===[_,w,x].indexOf(d)&&9===m)return"Ã";if(-1!==[E,C,S,I,U].indexOf(m))return"Ã";if(te(l,t)===k)return"Ã";if(ee(23,k,l,t))return"Ã";if(ee([E,C],B,l,t))return"Ã";if(ee(12,12,l,t))return"Ã";if(d===_)return"÷";if(23===d||23===m)return"Ã";if(16===m||16===d)return"÷";if(-1!==[w,x,B].indexOf(m)||14===d)return"Ã";if(36===f&&-1!==Z.indexOf(d))return"Ã";if(d===U&&36===m)return"Ã";if(m===T&&-1!==K.concat(T,S,M,z,F,R).indexOf(d))return"Ã";if(-1!==K.indexOf(m)&&d===M||-1!==K.indexOf(d)&&m===M)return"Ã";if(d===D&&-1!==[z,F,R].indexOf(m)||-1!==[z,F,R].indexOf(d)&&m===P)return"Ã";if(-1!==K.indexOf(d)&&-1!==W.indexOf(m)||-1!==W.indexOf(d)&&-1!==K.indexOf(m))return"Ã";if(-1!==[D,P].indexOf(d)&&(m===M||-1!==[k,x].indexOf(m)&&t[h+1]===M)||-1!==[k,x].indexOf(d)&&m===M||d===M&&-1!==[M,U,I].indexOf(m))return"Ã";if(-1!==[M,U,I,E,C].indexOf(m))for(var A=l;A>=0;){if((y=t[A])===M)return"Ã";if(-1===[U,I].indexOf(y))break;A--}if(-1!==[D,P].indexOf(m))for(A=-1!==[E,C].indexOf(d)?c:l;A>=0;){var y;if((y=t[A])===M)return"Ã";if(-1===[U,I].indexOf(y))break;A--}if(H===d&&-1!==[H,Q,N,L].indexOf(m)||-1!==[Q,N].indexOf(d)&&-1!==[Q,V].indexOf(m)||-1!==[V,L].indexOf(d)&&m===V)return"Ã";if(-1!==J.indexOf(d)&&-1!==[T,P].indexOf(m)||-1!==J.indexOf(m)&&d===D)return"Ã";if(-1!==K.indexOf(d)&&-1!==K.indexOf(m))return"Ã";if(d===I&&-1!==K.indexOf(m))return"Ã";if(-1!==K.concat(M).indexOf(d)&&m===k||-1!==K.concat(M).indexOf(m)&&d===C)return"Ã";if(41===d&&41===m){for(var i=n[l],v=1;i>0&&41===t[--i];)v++;if(v%2!=0)return"Ã"}return d===F&&m===R?"Ã":"÷"},re=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],r=[],o=[];return e.forEach((function(e,l){var c=G.get(e);if(c>50?(o.push(!0),c-=50):o.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(l),n.push(16);if(4===c||11===c){if(0===l)return r.push(l),n.push(O);var h=n[l-1];return-1===X.indexOf(h)?(r.push(r[l-1]),n.push(h)):(r.push(l),n.push(O))}return r.push(l),31===c?n.push("strict"===t?B:z):c===j||29===c?n.push(O):43===c?e>=131072&&e<=196605||e>
2=196608&&e<=262141?n.push(z):n.push(O):void n.push(c)})),[r,n,o]}(e,t.lineBreak),r=n[0],o=n[1],l=n[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(o=o.map((function(e){return-1!==[M,O,j].indexOf(e)?z:e}))),[r,o,"keep-all"===t.wordBreak?l.map((function(t,i){return t&&e[i]>=19968&&e[i]<=40959})):void 0]},ie=function(){function e(e,t,n,r){this.codePoints=e,this.required="!"===t,this.start=n,this.end=r}return e.prototype.slice=function(){return d.apply(void 0,this.codePoints.slice(this.start,this.end))},e}();!function(e){e[e.STRING_TOKEN=0]="STRING_TOKEN",e[e.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",e[e.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",e[e.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",e[e.COMMA_TOKEN=4]="COMMA_TOKEN",e[e.HASH_TOKEN=5]="HASH_TOKEN",e[e.DELIM_TOKEN=6]="DELIM_TOKEN",e[e.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",e[e.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",e[e.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",e[e.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",e[e.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",e[e.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",e[e.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",e[e.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",e[e.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",e[e.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",e[e.NUMBER_TOKEN=17]="NUMBER_TOKEN",e[e.FUNCTION=18]="FUNCTION",e[e.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",e[e.IDENT_TOKEN=20]="IDENT_TOKEN",e[e.COLUMN_TOKEN=21]="COLUMN_TOKEN",e[e.URL_TOKEN=22]="URL_TOKEN",e[e.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",e[e.CDC_TOKEN=24]="CDC_TOKEN",e[e.CDO_TOKEN=25]="CDO_TOKEN",e[e.COLON_TOKEN=26]="COLON_TOKEN",e[e.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",e[e.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",e[e.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",e[e.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",e[e.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",e[e.EOF_TOKEN=32]="EOF_TOKEN"}(A||(A={}));var se=function(e){return e>=48&&e<=57},ae=function(e){return se(e)||e>=65&&e<=70||e>=97&&e<=102},oe=function(e){return 10===e||9===e||32===e},le=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},ce=function(e){return le(e)||se(e)||45===e},ue=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},he=function(e,t){return 92===e&&10!==t},de=function(e,t,n){return 45===e?le(t)||he(t,n):!!le(e)||!(92!==e||!he(e,t))},pe=function(e,t,n){return 43===e||45===e?!!se(t)||46===t&&se(n):se(46===e?t:e)},fe=function(e){var t=0,n=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(n=-1),t++);for(var r=[];se(e[t]);)r.push(e[t++]);var o=r.length?parseInt(d.apply(void 0,r),10):0;46===e[t]&&t++;for(var l=[];se(e[t]);)l.push(e[t++]);var c=l.length,h=c?parseInt(d.apply(void 0,l),10):0;69!==e[t]&&101!==e[t]||t++;var f=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(f=-1),t++);for(var m=[];se(e[t]);)m.push(e[t++]);var A=m.length?parseInt(d.apply(void 0,m),10):0;return n*(o+h*Math.pow(10,-c))*Math.pow(10,f*A)},me={type:A.LEFT_PARENTHESIS_TOKEN},Ae={type:A.RIGHT_PARENTHESIS_TOKEN},ge={type:A.COMMA_TOKEN},ye={type:A.SUFFIX_MATCH_TOKEN},ve={type:A.PREFIX_MATCH_TOKEN},_e={type:A.COLUMN_TOKEN},be={type:A.DASH_MATCH_TOKEN},we={type:A.INCLUDE_MATCH_TOKEN},xe={type:A.LEFT_CURLY_BRACKET_TOKEN},Ee={type:A.RIGHT_CURLY_BRACKET_TOKEN},Ce={type:A.SUBSTRING_MATCH_TOKEN},Se={type:A.BAD_URL_TOKEN},Te={type:A.BAD_STRING_TOKEN},Be={type:A.CDO_TOKEN},ke={type:A.CDC_TOKEN},Ie={type:A.COLON_TOKEN},Me={type:A.SEMICOLON_TOKEN},Pe={type:A.LEFT_SQUARE_BRACKET_TOKEN},De={type:A.RIGHT_SQUARE_BRACKET_TOKEN},Ue={type:A.WHITESPACE_TOKEN},Oe={type:A.EOF_TOKEN},Fe=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(h(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Oe;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(ce(t)||he(n,r)){var o=de(t,n,r)?2:1,l=this.consumeName();return{type:A.HASH_TOKEN,value:l,flags:o}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ye;break;case 39:return this.consumeStringToken(39);case 40:return me;case 41:return Ae;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ce;break;case 43:if(pe(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return ge;case 45:var c=e,h=this.peekCodePoint(0),f=this.peekCodePoint(1);if(pe(c,h,f))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(de(c,h,f))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(45===h&&62===f)return this.consumeCodePoint(),this.consumeCodePoint(),ke;break;case 46:if(pe(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var m=this.consumeCodePoint();if(42===m&&47===(m=this.consumeCodePoint()))return this.consumeToken();if(-1===m)return this.consumeToken()}break;case 58:return Ie;case 59:return Me;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),Be;break;case 64:var y=this.peekCodePoint(0),v=this.peekCodePoint(1),_=this.peekCodePoint(2);if(de(y,v,_))return l=this.consumeName(),{type:A.AT_KEYWORD_TOKEN,value:l};break;case 91:return Pe;case 92:if(he(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return De;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ve;break;case 123:return xe;case 125:return Ee;case 117:case 85:var w=this.peekCodePoint(0),x=this.peekCodePoint(1);return 43!==w||!ae(x)&&63!==x||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),be;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),_e;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),we;break;case-1:return Oe}return oe(e)?(this.consumeWhiteSpace(),Ue):se(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):le(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:A.DELIM_TOKEN,value:d(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();ae(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(d.apply(void 0,e.map((function(e){return 63===e?48:e}))),16),o=parseInt(d.apply(void 0,e.map((function(e){return 63===e?70:e}))),16);return{type:A.UNICODE_RANGE_TOKEN,start:r,end:o}}var l=parseInt(d.apply(void 0,e),16);if(45===this.peekCodePoint(0)&&ae(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var c=[];ae(t)&&c.length<6;)c.push(t),t=this.consumeCodePoint();return o=parseInt(d.apply(void 0,c),16),{type:A.UNICODE_RANGE_TOKEN,start:l,end:o}}return{type:A.UNICODE_RANGE_TOKEN,start:l,end:l}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:A.FUNCTION_TOKEN,value:e}):{type:A.IDENT_TOKEN,value:e}},e.prototype.consumeUrlToken=function(){var e=[];
vendor: 7,114 bytes, line 2
2if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:A.URL_TOKEN,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===A.STRING_TOKEN&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:A.URL_TOKEN,value:n.value}):(this.consumeBadUrlRemnants(),Se)}for(;;){var r=this.consumeCodePoint();if(-1===r||41===r)return{type:A.URL_TOKEN,value:d.apply(void 0,e)};if(oe(r))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:A.URL_TOKEN,value:d.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Se);if(34===r||39===r||40===r||ue(r))return this.consumeBadUrlRemnants(),Se;if(92===r){if(!he(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Se;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;oe(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||-1===e)return;he(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(6e4,e);t+=d.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",i=0;;){var n=this._value[i];if(-1===n||void 0===n||n===e)return t+=this.consumeStringSlice(i),{type:A.STRING_TOKEN,value:t};if(10===n)return this._value.splice(0,i),Te;if(92===n){var r=this._value[i+1];-1!==r&&void 0!==r&&(10===r?(t+=this.consumeStringSlice(i),i=-1,this._value.shift()):he(n,r)&&(t+=this.consumeStringSlice(i),t+=d(this.consumeEscapedCodePoint()),i=-1))}i++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(43!==n&&45!==n||e.push(this.consumeCodePoint());se(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&se(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;se(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var o=this.peekCodePoint(2);if((69===n||101===n)&&((43===r||45===r)&&se(o)||se(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;se(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[fe(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),o=this.peekCodePoint(1),l=this.peekCodePoint(2);if(de(r,o,l)){var c=this.consumeName();return{type:A.DIMENSION_TOKEN,number:t,flags:n,unit:c}}return 37===r?(this.consumeCodePoint(),{type:A.PERCENTAGE_TOKEN,number:t,flags:n}):{type:A.NUMBER_TOKEN,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ae(e)){for(var t=d(e);ae(this.peekCodePoint(0))&&t.length<6;)t+=d(this.consumeCodePoint());oe(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return-1===e?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(ce(t))e+=d(t);else{if(!he(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=d(this.consumeEscapedCodePoint())}}},e}(),Re=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Fe;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===A.WHITESPACE_TOKEN;)e=this.consumeToken();if(e.type===A.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(e.type===A.WHITESPACE_TOKEN);if(e.type===A.EOF_TOKEN)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===A.EOF_TOKEN)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case A.LEFT_CURLY_BRACKET_TOKEN:case A.LEFT_SQUARE_BRACKET_TOKEN:case A.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(e.type);case A.FUNCTION_TOKEN:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===A.EOF_TOKEN||Ke(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:A.FUNCTION};;){var n=this.consumeToken();if(n.type===A.EOF_TOKEN||n.type===A.RIGHT_PARENTHESIS_TOKEN)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Oe:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Ne=function(e){return e.type===A.DIMENSION_TOKEN},Le=function(e){return e.type===A.NUMBER_TOKEN},ze=function(e){return e.type===A.IDENT_TOKEN},He=function(e){return e.type===A.STRING_TOKEN},Qe=function(e,t){return ze(e)&&e.value===t},Ve=function(e){return e.type!==A.WHITESPACE_TOKEN},je=function(e){return e.type!==A.WHITESPACE_TOKEN&&e.type!==A.COMMA_TOKEN},Ge=function(e){var t=[],n=[];return e.forEach((function(e){if(e.type===A.COMMA_TOKEN){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}e.type!==A.WHITESPACE_TOKEN&&n.push(e)})),n.length&&t.push(n),t},Ke=function(e,t){return t===A.LEFT_CURLY_BRACKET_TOKEN&&e.type===A.RIGHT_CURLY_BRACKET_TOKEN||t===A.LEFT_SQUARE_BRACKET_TOKEN&&e.type===A.RIGHT_SQUARE_BRACKET_TOKEN||t===A.LEFT_PARENTHESIS_TOKEN&&e.type===A.RIGHT_PARENTHESIS_TOKEN},qe=function(e){return e.type===A.NUMBER_TOKEN||e.type===A.DIMENSION_TOKEN},$e=function(e){return e.type===A.PERCENTAGE_TOKEN||qe(e)},Ye=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},We={type:A.NUMBER_TOKEN,number:0,flags:4},Xe={type:A.PERCENTAGE_TOKEN,number:50,flags:4},Je={type:A.PERCENTAGE_TOKEN,number:100,flags:4},Ze=function(e,t,n){var r=e[0],o=e[1];return[et(r,t),et(void 0!==o?o:r,n)]},et=function(e,t){if(e.type===A.PERCENTAGE_TOKEN)return e.number/100*t;if(Ne(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},tt=function(e){if(e.type===A.DIMENSION_TOKEN)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},nt=function(e){return e.type===A.DIMENSION_TOKEN&&("deg"===e.unit||"grad"===e.unit||"rad"===e.unit||"turn"===e.unit)},it=function(e){switch(e.filter(ze).map((function(e){return e.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left"
vendor: 3,887 bytes, line 2
2:return[We,We];case"to top":case"bottom":return st(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[We,Je];case"to right":case"left":return st(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Je,Je];case"to bottom":case"top":return st(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Je,We];case"to left":case"right":return st(270)}return 0},st=function(e){return Math.PI*e/180},at=function(e){if(e.type===A.FUNCTION){var t=gt[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(e.values)}if(e.type===A.HASH_TOKEN){if(3===e.value.length){var n=e.value.substring(0,1),g=e.value.substring(1,2),b=e.value.substring(2,3);return ct(parseInt(n+n,16),parseInt(g+g,16),parseInt(b+b,16),1)}if(4===e.value.length){n=e.value.substring(0,1),g=e.value.substring(1,2),b=e.value.substring(2,3);var a=e.value.substring(3,4);return ct(parseInt(n+n,16),parseInt(g+g,16),parseInt(b+b,16),parseInt(a+a,16)/255)}if(6===e.value.length)return n=e.value.substring(0,2),g=e.value.substring(2,4),b=e.value.substring(4,6),ct(parseInt(n,16),parseInt(g,16),parseInt(b,16),1);if(8===e.value.length)return n=e.value.substring(0,2),g=e.value.substring(2,4),b=e.value.substring(4,6),a=e.value.substring(6,8),ct(parseInt(n,16),parseInt(g,16),parseInt(b,16),parseInt(a,16)/255)}if(e.type===A.IDENT_TOKEN){var r=yt[e.value.toUpperCase()];if(void 0!==r)return r}return yt.TRANSPARENT},ot=function(e){return 0==(255&e)},lt=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,o=255&e>>24;return t<255?"rgba("+o+","+r+","+n+","+t/255+")":"rgb("+o+","+r+","+n+")"},ct=function(e,g,b,a){return(e<<24|g<<16|b<<8|Math.round(255*a)<<0)>>>0},ut=function(e,i){if(e.type===A.NUMBER_TOKEN)return e.number;if(e.type===A.PERCENTAGE_TOKEN){var t=3===i?1:255;return 3===i?e.number/100*t:Math.round(e.number/100*t)}return 0},ht=function(e){var t=e.filter(je);if(3===t.length){var n=t.map(ut),r=n[0],g=n[1],b=n[2];return ct(r,g,b,1)}if(4===t.length){var o=t.map(ut),a=(r=o[0],g=o[1],b=o[2],o[3]);return ct(r,g,b,a)}return 0};function pt(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var ft,mt,At=function(e){var t=e.filter(je),n=t[0],r=t[1],o=t[2],l=t[3],c=(n.type===A.NUMBER_TOKEN?st(n.number):tt(n))/(2*Math.PI),s=$e(r)?r.number/100:0,h=$e(o)?o.number/100:0,a=void 0!==l&&$e(l)?et(l,1):1;if(0===s)return ct(255*h,255*h,255*h,1);var d=h<=.5?h*(s+1):h+s-h*s,f=2*h-d,m=pt(f,d,c+1/3),g=pt(f,d,c),b=pt(f,d,c-1/3);return ct(255*m,255*g,255*b,a)},gt={hsl:At,hsla:At,rgb:ht,rgba:ht},yt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:404164
21215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(e){e[e.VALUE=0]="VALUE",e[e.LIST=1]="LIST",e[e.IDENT_VALUE=2]="IDENT_VALUE",e[e.TYPE_VALUE=3]="TYPE_VALUE",e[e.TOKEN_VALUE=4]="TOKEN_VALUE"})(ft||(ft={})),function(e){e[e.BORDER_BOX=0]="BORDER_BOX",e[e.PADDING_BOX=1]="PADDING_BOX",e[e.CONTENT_BOX=2]="CONTENT_BOX"}(mt||(mt={}));var vt,_t,bt,wt={name:"background-clip",initialValue:"border-box",prefix:!1,type:ft.LIST,parse:function(e){return e.map((function(e){if(ze(e))switch(e.value){case"padding-box":return mt.PADDING_BOX;case"content-box":return mt.CONTENT_BOX}return mt.BORDER_BOX}))}},xt={name:"background-color",initialValue:"transparent",prefix:!1,type:ft.TYPE_VALUE,format:"color"},Et=function(e){var t=at(e[0]),n=e[1];return n&&$e(n)?{color:t,stop:n}:{color:t,stop:null}},Ct=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=We),null===r.stop&&(r.stop=Je);for(var o=[],l=0,i=0;i<e.length;i++){var c=e[i].stop;if(null!==c){var h=et(c,t);h>l?o.push(h):o.push(l),l=h}else o.push(null)}var d=null;for(i=0;i<o.length;i++){var f=o[i];if(null===f)null===d&&(d=i);else if(null!==d){for(var m=i-d,A=(f-o[d-1])/(m+1),g=1;g<=m;g++)o[d+g-1]=A*g;d=null}}return e.map((function(e,i){return{color:e.color,stop:Math.max(Math.min(1,o[i]/t),0)}}))},St=function(e,t,n){var r="number"==typeof e?e:function(e,t,n){var r=t/2,o=n/2,l=et(e[0],t)-r,c=o-et(e[1],n);return(Math.atan2(c,l)+2*Math.PI)%(2*Math.PI)}(e,t,n),o=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),l=t/2,c=n/2,h=o/2,d=Math.sin(r-Math.PI/2)*h,f=Math.cos(r-Math.PI/2)*h;return[o,l-f,l+f,c-d,c+d]},Tt=function(a,b){return Math.sqrt(a*a+b*b)},Bt=function(e,t,n,r,o){return[[0,0],[0,t],[e,0],[e,t]].reduce((function(e,t){var l=t[0],c=t[1],h=Tt(n-l,r-c);return(o?h<e.optimumDistance:h>e.optimumDistance)?{optimumCorner:t,optimumDistance:h}:e}),{optimumDistance:o?1/0:-1/0,optimumCorner:null}).optimumCorner},kt=function(e){var t=st(180),n=[];return Ge(e).forEach((function(e,i){if(0===i){var r=e[0];if(r.type===A.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(t=it(e));if(nt(r))return void(t=(tt(r)+st(270))%st(360))}var o=Et(e);n.push(o)})),{angle:t,stops:n,type:vt.LINEAR_GRADIENT}},It=function(data){return 0===data[0]&&255===data[1]&&0===data[2]&&255===data[3]},Mt=function(e,t,n,r,o){var l="http://www.w3.org/2000/svg",svg=document.createElementNS(l,"svg"),foreignObject=document.createElementNS(l,"foreignObject");return svg.setAttributeNS(null,"width",e.toString()),svg.setAttributeNS(null,"height",t.toString()),foreignObject.setAttributeNS(null,"width","100%"),foreignObject.setAttributeNS(null,"height","100%"),foreignObject.setAttributeNS(null,"x",n.toString()),foreignObject.setAttributeNS(null,"y",r.toString()),foreignObject.setAttributeNS(null,"externalResourcesRequired","true"),svg.appendChild(foreignObject),foreignObject.appendChild(o),svg},Pt=function(svg){return new Promise((function(e,t){var img=new Image;img.onload=function(){return e(img)},img.onerror=t,img.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(svg))}))},Dt={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var r=t.getBoundingClientRect(),o=Math.round(r.height);if(e.body.removeChild(n),123===o)return!0}}return!1}(document);return Object.defineProperty(Dt,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var img=new Image,canvas=e.createElement("canvas"),t=canvas.getContext("2d");if(!t)return!1;img.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(img,0,0),canvas.toDataURL()}catch(e){return!1}return!0}(document);return Object.defineProperty(Dt,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var canvas=e.createElement("canvas");canvas.width=100,canvas.height=100;var t=canvas.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,100,100);var img=new Image,n=canvas.toDataURL();img.src=n;var svg=Mt(100,100,0,0,img);return t.fillStyle="red",t.fillRect(0,0,100,100),Pt(svg).then((function(img){t.drawImage(img,0,0);var data=t.getImageData(0,0,100,100).data;t.fillStyle="red",t.fillRect(0,0,100,100);var r=e.createElement("div");return r.style.backgroundImage="url("+n+")",r.style.height="100px",It(data)?Pt(
2Mt(100,100,0,0,r)):Promise.reject(!1)})).then((function(img){return t.drawImage(img,0,0),It(t.getImageData(0,0,100,100).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Dt,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(Dt,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Dt,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Dt,"SUPPORT_CORS_XHR",{value:e}),e}},Ut=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.create=function(t){e.instances[t.id]=new e(t)},e.destroy=function(t){delete e.instances[t]},e.getInstance=function(t){var n=e.instances[t];if(void 0===n)throw new Error("No logger instance found with id "+t);return n},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.instances={},e}(),Ot=function(){function e(){}return e.create=function(t,n){return e._caches[t]=new Ft(t,n)},e.destroy=function(t){delete e._caches[t]},e.open=function(t){var n=e._caches[t];if(void 0!==n)return n;throw new Error('Cache with key "'+t+'" not found')},e.getOrigin=function(t){var link=e._link;return link?(link.href=t,link.href=link.href,link.protocol+link.hostname+link.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e.getInstance=function(){var t=e._current;if(null===t)throw new Error("No cache instance attached");return t},e.attachInstance=function(t){e._current=t},e.detachInstance=function(){e._current=null},e._caches={},e._origin="about:blank",e._current=null,e}(),Ft=function(){function e(e,t){this.id=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Vt(e)||zt(e)?(this._cache[e]=this.loadImage(e),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,(function(){var t,n,r,l,c=this;return o(this,(function(o){switch(o.label){case 0:return t=Ot.isSameOrigin(e),n=!Ht(e)&&!0===this._options.useCORS&&Dt.SUPPORT_CORS_IMAGES&&!t,r=!Ht(e)&&!t&&"string"==typeof this._options.proxy&&Dt.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||Ht(e)||r||n?(l=e,r?[4,this.proxy(l)]:[3,2]):[2];case 1:l=o.sent(),o.label=2;case 2:return Ut.getInstance(this.id).debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var img=new Image;img.onload=function(){return e(img)},img.onerror=t,(Qt(l)||n)&&(img.crossOrigin="anonymous"),img.src=l,!0===img.complete&&setTimeout((function(){return e(img)}),500),c._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+c._options.imageTimeout+"ms) loading image")}),c._options.imageTimeout)}))];case 3:return[2,o.sent()]}}))}))},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise((function(o,l){var c=Dt.SUPPORT_RESPONSE_TYPE?"blob":"text",h=new XMLHttpRequest;if(h.onload=function(){if(200===h.status)if("text"===c)o(h.response);else{var e=new FileReader;e.addEventListener("load",(function(){return o(e.result)}),!1),e.addEventListener("error",(function(e){return l(e)}
2),!1),e.readAsDataURL(h.response)}else l("Failed to proxy resource "+r+" with status code "+h.status)},h.onerror=l,h.open("GET",n+"?url="+encodeURIComponent(e)+"&responseType="+c),"text"!==c&&h instanceof XMLHttpRequest&&(h.responseType=c),t._options.imageTimeout){var d=t._options.imageTimeout;h.timeout=d,h.ontimeout=function(){return l("Timed out ("+d+"ms) proxying "+r)}}h.send()}))},e}(),Rt=/^data:image\/svg\+xml/i,Nt=/^data:image\/.*;base64,/i,Lt=/^data:image\/.*/i,zt=function(e){return Dt.SUPPORT_SVG_DRAWING||!jt(e)},Ht=function(e){return Lt.test(e)},Qt=function(e){return Nt.test(e)},Vt=function(e){return"blob"===e.substr(0,4)},jt=function(e){return"svg"===e.substr(-3).toLowerCase()||Rt.test(e)},Gt=function(e){var t=_t.CIRCLE,n=bt.FARTHEST_CORNER,r=[],o=[];return Ge(e).forEach((function(e,i){var l=!0;if(0===i?l=e.reduce((function(e,t){if(ze(t))switch(t.value){case"center":return o.push(Xe),!1;case"top":case"left":return o.push(We),!1;case"right":case"bottom":return o.push(Je),!1}else if($e(t)||qe(t))return o.push(t),!1;return e}),l):1===i&&(l=e.reduce((function(e,r){if(ze(r))switch(r.value){case"circle":return t=_t.CIRCLE,!1;case"ellipse":return t=_t.ELLIPSE,!1;case"contain":case"closest-side":return n=bt.CLOSEST_SIDE,!1;case"farthest-side":return n=bt.FARTHEST_SIDE,!1;case"closest-corner":return n=bt.CLOSEST_CORNER,!1;case"cover":case"farthest-corner":return n=bt.FARTHEST_CORNER,!1}else if(qe(r)||$e(r))return Array.isArray(n)||(n=[]),n.push(r),!1;return e}),l)),l){var c=Et(e);r.push(c)}})),{size:n,shape:t,stops:r,position:o,type:vt.RADIAL_GRADIENT}};!function(e){e[e.URL=0]="URL",e[e.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",e[e.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(vt||(vt={})),function(e){e[e.CIRCLE=0]="CIRCLE",e[e.ELLIPSE=1]="ELLIPSE"}(_t||(_t={})),function(e){e[e.CLOSEST_SIDE=0]="CLOSEST_SIDE",e[e.FARTHEST_SIDE=1]="FARTHEST_SIDE",e[e.CLOSEST_CORNER=2]="CLOSEST_CORNER",e[e.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(bt||(bt={}));var Kt,qt=function(e){if(e.type===A.URL_TOKEN){var t={url:e.value,type:vt.URL};return Ot.getInstance().addImage(e.value),t}if(e.type===A.FUNCTION){var n=$t[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(e.values)}throw new Error("Unsupported image type")},$t={"linear-gradient":function(e){var t=st(180),n=[];return Ge(e).forEach((function(e,i){if(0===i){var r=e[0];if(r.type===A.IDENT_TOKEN&&"to"===r.value)return void(t=it(e));if(nt(r))return void(t=tt(r))}var o=Et(e);n.push(o)})),{angle:t,stops:n,type:vt.LINEAR_GRADIENT}},"-moz-linear-gradient":kt,"-ms-linear-gradient":kt,"-o-linear-gradient":kt,"-webkit-linear-gradient":kt,"radial-gradient":function(e){var t=_t.CIRCLE,n=bt.FARTHEST_CORNER,r=[],o=[];return Ge(e).forEach((function(e,i){var l=!0;if(0===i){var c=!1;l=e.reduce((function(e,r){if(c)if(ze(r))switch(r.value){case"center":return o.push(Xe),e;case"top":case"left":return o.push(We),e;case"right":case"bottom":return o.push(Je),e}else($e(r)||qe(r))&&o.push(r);else if(ze(r))switch(r.value){case"circle":return t=_t.CIRCLE,!1;case"ellipse":return t=_t.ELLIPSE,!1;case"at":return c=!0,!1;case"closest-side":return n=bt.CLOSEST_SIDE,!1;case"cover":case"farthest-side":return n=bt.FARTHEST_SIDE,!1;case"contain":case"closest-corner":return n=bt.CLOSEST_CORNER,!1;case"farthest-corner":return n=bt.FARTHEST_CORNER,!1}else if(qe(r)||$e(r))return Array.isArray(n)||(n=[]),n.push(r),!1;return e}),l)}if(l){var h=Et(e);r.push(h)}})),{size:n,shape:t,stops:r,position:o,type:vt.RADIAL_GRADIENT}},"-moz-radial-gradient":Gt,"-ms-radial-gradient":Gt,"-o-radial-gradient":Gt,"-webkit-radial-gradient":Gt,"-webkit-gradient":function(e){var t=st(180),n=[],r=vt.LINEAR_GRADIENT,o=_t.CIRCLE,l=bt.FARTHEST_CORNER;return Ge(e).forEach((function(e,i){var t=e[0];if(0===i){if(ze(t)&&"linear"===t.value)return void(r=vt.LINEAR_GRADIENT);if(ze(t)&&"radial"===t.value)return void(r=vt.RADIAL_GRADIENT)}if(t.type===A.FUNCTION)if("from"===t.name){var o=at(t.values[0]);n.push({stop:We,color:o})}else if("to"===t.name)o=at(t.values[0]),n.push({stop:Je,color:o});else if("color-stop"===t.name){var l=t.values.filter(je);if(2===l.length){o=at(l[1]);var c=l[0];Le(c)&&n.push({stop:{type:A.PERCENTAGE_TOKEN,number:100*c.number,flags:c.flags},color:o})}}})),r===vt.LINEAR_GRADIENT?{angle:(t+st(180))%st(360),stops:n,type:r}:{size:l,shape:o,stops:n,position:[],type:r}}},Yt={name:"background-image",initialValue:"none",type:ft.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===A.IDENT_TOKEN&&"none"===t.value?[]:e.filter((function(e){return je(e)&&function(e){return e.type!==A.FUNCTION||$t[e.name]}(e)})).map(qt)}},Wt={name:"background-origin",initialValue:"border-box",prefix:!1,type:ft.LIST,parse:function(e){return e.map((function(e){if(ze(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Xt={name:"background-position",initialValue:"0% 0%",type:ft.LIST,prefix:!1,parse:function(e){return Ge(e).map((function(e){return e.filter($e)})).map(Ye)}};!function(e){e[e.REPEAT=0]="REPEAT",e[e.NO_REPEAT=1]="NO_REPEAT",e[e.REPEAT_X=2]="REPEAT_X",e[e.REPEAT_Y=3]="REPEAT_Y"}(Kt||(Kt={}));var Jt,Zt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:ft.LIST,parse:function(e){return Ge(e).map((function(e){return e.filter(ze).map((function(e){return e.value})).join(" ")})).map(en)}},en=function(e){switch(e){case"no-repeat":return Kt.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Kt.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Kt.REPEAT_Y;case"repeat":default:return Kt.REPEAT}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(Jt||(Jt={}));var tn,nn={name:"background-size",initialValue:"0",prefix:!1,type:ft.LIST,parse:function(e){return Ge(e).map((function(e){return e.filter(rn)}))}},rn=function(e){return ze(e)||$e(e)},sn=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:ft.TYPE_VALUE,format:"color"}},an=sn("top"),on=sn("right"),ln=sn("bottom"),cn=sn("left"),un=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:ft.LIST,parse:function(e){return Ye(e.filter($e))}}},hn=un("top-left"),dn=un("top-right"),pn=un("bottom-right"),fn=un("bottom-left");!function(e){e[e.NONE=0]="NONE",e[e.SOLID=1]="SOLID"}(tn||(tn={}));var mn,An=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:ft.IDENT_VALUE,parse:function(style){switch(style){case"none":return tn.NONE}return tn.SOLID}}}
2,gn=An("top"),yn=An("right"),vn=An("bottom"),_n=An("left"),bn=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:ft.VALUE,prefix:!1,parse:function(e){return Ne(e)?e.number:0}}},wn=bn("top"),xn=bn("right"),En=bn("bottom"),Cn=bn("left"),Sn={name:"color",initialValue:"transparent",prefix:!1,type:ft.TYPE_VALUE,format:"color"},Tn={name:"display",initialValue:"inline-block",prefix:!1,type:ft.LIST,parse:function(e){return e.filter(ze).reduce((function(e,t){return e|Bn(t.value)}),0)}},Bn=function(e){switch(e){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};!function(e){e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.INLINE_START=3]="INLINE_START",e[e.INLINE_END=4]="INLINE_END"}(mn||(mn={}));var kn,In={name:"float",initialValue:"none",prefix:!1,type:ft.IDENT_VALUE,parse:function(e){switch(e){case"left":return mn.LEFT;case"right":return mn.RIGHT;case"inline-start":return mn.INLINE_START;case"inline-end":return mn.INLINE_END}return mn.NONE}},Mn={name:"letter-spacing",initialValue:"0",prefix:!1,type:ft.VALUE,parse:function(e){return e.type===A.IDENT_TOKEN&&"normal"===e.value?0:e.type===A.NUMBER_TOKEN||e.type===A.DIMENSION_TOKEN?e.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(kn||(kn={}));var Pn,Dn={name:"line-break",initialValue:"normal",prefix:!1,type:ft.IDENT_VALUE,parse:function(e){switch(e){case"strict":return kn.STRICT;case"normal":default:return kn.NORMAL}}},Un={name:"line-height",initialValue:"normal",prefix:!1,type:ft.TOKEN_VALUE},On={name:"list-style-image",initialValue:"none",type:ft.VALUE,prefix:!1,parse:function(e){return e.type===A.IDENT_TOKEN&&"none"===e.value?null:qt(e)}};!function(e){e[e.INSIDE=0]="INSIDE",e[e.OUTSIDE=1]="OUTSIDE"}(Pn||(Pn={}));var Fn,Rn={name:"list-style-position",initialValue:"outside",prefix:!1,type:ft.IDENT_VALUE,parse:function(e){switch(e){case"inside":return Pn.INSIDE;case"outside":default:return Pn.OUTSIDE}}};!function(e){e[e.NONE=-1]="NONE",e[e.DISC=0]="DISC",e[e.CIRCLE=1]="CIRCLE",e[e.SQUARE=2]="SQUARE",e[e.DECIMAL=3]="DECIMAL",e[e.CJK_DECIMAL=4]="CJK_DECIMAL",e[e.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",e[e.LOWER_ROMAN=6]="LOWER_ROMAN",e[e.UPPER_ROMAN=7]="UPPER_ROMAN",e[e.LOWER_GREEK=8]="LOWER_GREEK",e[e.LOWER_ALPHA=9]="LOWER_ALPHA",e[e.UPPER_ALPHA=10]="UPPER_ALPHA",e[e.ARABIC_INDIC=11]="ARABIC_INDIC",e[e.ARMENIAN=12]="ARMENIAN",e[e.BENGALI=13]="BENGALI",e[e.CAMBODIAN=14]="CAMBODIAN",e[e.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",e[e.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",e[e.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",e[e.DEVANAGARI=18]="DEVANAGARI",e[e.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",e[e.GEORGIAN=20]="GEORGIAN",e[e.GUJARATI=21]="GUJARATI",e[e.GURMUKHI=22]="GURMUKHI",e[e.HEBREW=22]="HEBREW",e[e.HIRAGANA=23]="HIRAGANA",e[e.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",e[e.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",e[e.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",e[e.KANNADA=27]="KANNADA",e[e.KATAKANA=28]="KATAKANA",e[e.KATAKANA_IROHA=29]="KATAKA
2NA_IROHA",e[e.KHMER=30]="KHMER",e[e.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",e[e.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",e[e.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",e[e.LAO=34]="LAO",e[e.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",e[e.MALAYALAM=36]="MALAYALAM",e[e.MONGOLIAN=37]="MONGOLIAN",e[e.MYANMAR=38]="MYANMAR",e[e.ORIYA=39]="ORIYA",e[e.PERSIAN=40]="PERSIAN",e[e.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",e[e.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",e[e.TAMIL=43]="TAMIL",e[e.TELUGU=44]="TELUGU",e[e.THAI=45]="THAI",e[e.TIBETAN=46]="TIBETAN",e[e.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",e[e.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",e[e.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",e[e.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",e[e.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Fn||(Fn={}));var Nn,Ln={name:"list-style-type",initialValue:"none",prefix:!1,type:ft.IDENT_VALUE,parse:function(e){switch(e){case"disc":return Fn.DISC;case"circle":return Fn.CIRCLE;case"square":return Fn.SQUARE;case"decimal":return Fn.DECIMAL;case"cjk-decimal":return Fn.CJK_DECIMAL;case"decimal-leading-zero":return Fn.DECIMAL_LEADING_ZERO;case"lower-roman":return Fn.LOWER_ROMAN;case"upper-roman":return Fn.UPPER_ROMAN;case"lower-greek":return Fn.LOWER_GREEK;case"lower-alpha":return Fn.LOWER_ALPHA;case"upper-alpha":return Fn.UPPER_ALPHA;case"arabic-indic":return Fn.ARABIC_INDIC;case"armenian":return Fn.ARMENIAN;case"bengali":return Fn.BENGALI;case"cambodian":return Fn.CAMBODIAN;case"cjk-earthly-branch":return Fn.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Fn.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Fn.CJK_IDEOGRAPHIC;case"devanagari":return Fn.DEVANAGARI;case"ethiopic-numeric":return Fn.ETHIOPIC_NUMERIC;case"georgian":return Fn.GEORGIAN;case"gujarati":return Fn.GUJARATI;case"gurmukhi":return Fn.GURMUKHI;case"hebrew":return Fn.HEBREW;case"hiragana":return Fn.HIRAGANA;case"hiragana-iroha":return Fn.HIRAGANA_IROHA;case"japanese-formal":return Fn.JAPANESE_FORMAL;case"japanese-informal":return Fn.JAPANESE_INFORMAL;case"kannada":return Fn.KANNADA;case"katakana":return Fn.KATAKANA;case"katakana-iroha":return Fn.KATAKANA_IROHA;case"khmer":return Fn.KHMER;case"korean-hangul-formal":return Fn.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Fn.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Fn.KOREAN_HANJA_INFORMAL;case"lao":return Fn.LAO;case"lower-armenian":return Fn.LOWER_ARMENIAN;case"malayalam":return Fn.MALAYALAM;case"mongolian":return Fn.MONGOLIAN;case"myanmar":return Fn.MYANMAR;case"oriya":return Fn.ORIYA;case"persian":return Fn.PERSIAN;case"simp-chinese-formal":return Fn.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Fn.SIMP_CHINESE_INFORMAL;case"tamil":return Fn.TAMIL;case"telugu":return Fn.TELUGU;case"thai":return Fn.THAI;case"tibetan":return Fn.TIBETAN;case"trad-chinese-formal":return Fn.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Fn.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Fn.UPPER_ARMENIAN;case"disclosure-open":return Fn.DISCLOSURE_OPEN;case"disclosure-closed":return Fn.DISCLOSURE_CLOSED;case"none":default:return Fn.NONE}}},zn=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:ft.TOKEN_VALUE}},Hn=zn("top"),Qn=zn("right"),Vn=zn("bottom"),jn=zn("left");!function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.SCROLL=2]="SCROLL",e[e.AUTO=3]="AUTO"}(Nn||(Nn={}));var Gn,Kn={name:"overflow",initialValue:"visible",prefix:!1,type:ft.LIST,parse:function(e){return e.filter(ze).map((function(e){switch(e.value){case"hidden":return Nn.HIDDEN;case"scroll":return Nn.SCROLL;case"auto":return Nn.AUTO;case"visible":default:return Nn.VISIBLE}}))}};!function(e){e.NORMAL="normal",e.BREAK_WORD="break-word"}(Gn||(Gn={}));var qn,$n={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:ft.IDENT_VALUE,parse:function(e){switch(e){case"break-word":return Gn.BREAK_WORD;case"normal":default:return Gn.NORMAL}}},Yn=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:ft.TYPE_VALUE,format:"length-percentage"}},Wn=Yn("top"),Xn=Yn("right"),Jn=Yn("bottom"),Zn=Yn("left");!function(e){e[e.LEFT=0]="LEFT",e[e.CENTER=1]="CENTER",e[e.RIGHT=2]="RIGHT"}(qn||(qn={}));var er,nr={name:"text-align",initialValue:"left",prefix:!1,type:ft.IDENT_VALUE,parse:function(e){switch(e){case"right":return qn.RIGHT;case"center":case"justify":return qn.CENTER;case"left":default:return qn.LEFT}}};!function(e){e[e.STATIC=0]="STATIC",e[e.RELATIVE=1]="RELATIVE",e[e.ABSOLUTE=2]="ABSOLUTE",e[e.FIXED=3]="FIXED",e[e.STICKY=4]="STICKY"}(er||(er={}));var rr,ir={name:"position",initialValue:"static",prefix:!1,type:ft.IDENT_VALUE,parse:function(e){switch(e){case"relative":return er.RELATIVE;case"absolute":return er.ABSOLUTE;case"fixed":return er.FIXED;case"sticky":return er.STICKY}return er.STATIC}},sr={name:"text-shadow",initialValue:"none",type:ft.LIST,prefix:!1,parse:function(e){return 1===e.length&&Qe(e[0],"none")?[]:Ge(e).map((function(e){for(var shadow={color:yt.TRANSPARENT,offsetX:We,offsetY:We,blur:We},t=0,i=0;i<e.length;i++){var n=e[i];qe(n)?(0===t?shadow.offsetX=n:1===t?shadow.offsetY=n:shadow.blur=n,t++):shadow.color=at(n)}return shadow}))}};!function(e){e[e.NONE=0]="NONE",e[e.LOWERCASE=1]="LOWERCASE",e[e.UPPERCASE=2]="UPPERCASE",e[e.CAPITALIZE=3]="CAPITALIZE"}(rr||(rr={}));var ar,or={name:"text-transform",initialValue:"none",prefix:!1,type:ft.IDENT_VALUE,parse:function(e){switch(e){case"uppercase":return rr.UPPERCASE;case"lowercase":return rr.LOWERCASE;case"capitalize":return rr.CAPITALIZE}return rr.NONE}},lr={name:"transform",initialValue:"none",prefix:!0,type:ft.VALUE,parse:function(e){if(e.type===A.IDENT_TOKEN&&"none"===e.value)return null;if(e.type===A.FUNCTION){var t=cr[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},cr={matrix:function(e){var t=e.filter((function(e){return e.type===A.NUMBER_TOKEN})).map((function(e){return e.number}));return 6===t.length?t:null},matrix3d:function(e){var t=e.filter((function(e){return e.type===A.NUMBER_TOKEN})).map((function(e){return e.number})),n=t[0],r=t[1],o=(t[2],t[3],t[4]),l=t[5],c=(t[6],t[7],t[8],t[9],t[10],t[11],t[12]),h=t[13];return t[14],t[15],16===t.length?[n,r,o,l,c,h]:null}},ur={type:A.PERCENTAGE_TOKEN,number:50,flags:4},dr=[ur,ur],pr={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:ft.LIST,parse:function(e){var t=e.filter($e);return 2!==t.length?dr:[t[0],t[1]]}};!function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.COLLAPSE=2]="COLLAPSE"}(ar||(ar={}));var fr,mr={name:"visible",initialValue:"none",prefix:!1,type:ft.IDENT_VALUE,parse:function(e){switch(e){case"hidden":return ar.HIDDEN;case"collapse":return ar.COLLAPSE;case"visible":default:return ar.VISIBLE}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(fr||(fr={}));var Ar,gr={name:"word-break",initialValue:"normal",prefix:!1,type:ft.IDENT_VALUE,parse:function(e){switch(e){case"break-all":return fr.BREAK_ALL;case"keep-all":return fr.KEEP_ALL;case"normal":default:return fr.NORMAL}}},yr={name:"z-index",initialValue:"auto",prefix:!1,type:ft.VALUE,parse:function(e){if(e.type===A.IDENT_TOKEN)return{auto:!0,order:0};if(Le(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},vr={name:"opacity",initialValue:"1",type:ft.VALUE,prefix:!1,parse:function(e){return Le(e)?e.number:1}},_r={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:ft.TYPE_VALUE,format:"color"},wr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:ft.LIST,parse:function(e){return e.filter(ze).map((function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(line){return 0!==line}))}}
vendor: 7,199 bytes, line 2
2,xr={name:"font-family",initialValue:"",prefix:!1,type:ft.LIST,parse:function(e){return e.filter(Er).map((function(e){return e.value}))}},Er=function(e){return e.type===A.STRING_TOKEN||e.type===A.IDENT_TOKEN},Cr={name:"font-size",initialValue:"0",prefix:!1,type:ft.TYPE_VALUE,format:"length"},Sr={name:"font-weight",initialValue:"normal",type:ft.VALUE,prefix:!1,parse:function(e){if(Le(e))return e.number;if(ze(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},Tr={name:"font-variant",initialValue:"none",type:ft.LIST,prefix:!1,parse:function(e){return e.filter(ze).map((function(e){return e.value}))}};!function(e){e.NORMAL="normal",e.ITALIC="italic",e.OBLIQUE="oblique"}(Ar||(Ar={}));var Br,kr={name:"font-style",initialValue:"normal",prefix:!1,type:ft.IDENT_VALUE,parse:function(e){switch(e){case"oblique":return Ar.OBLIQUE;case"italic":return Ar.ITALIC;case"normal":default:return Ar.NORMAL}}},Ir=function(e,t){return 0!=(e&t)},content={name:"content",initialValue:"none",type:ft.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===A.IDENT_TOKEN&&"none"===t.value?[]:e}},Mr={name:"counter-increment",initialValue:"none",prefix:!0,type:ft.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===A.IDENT_TOKEN&&"none"===t.value)return null;for(var n=[],r=e.filter(Ve),i=0;i<r.length;i++){var o=r[i],l=r[i+1];if(o.type===A.IDENT_TOKEN){var c=l&&Le(l)?l.number:1;n.push({counter:o.value,increment:c})}}return n}},Pr={name:"counter-reset",initialValue:"none",prefix:!0,type:ft.LIST,parse:function(e){if(0===e.length)return[];for(var t=[],n=e.filter(Ve),i=0;i<n.length;i++){var r=n[i],o=n[i+1];if(ze(r)&&"none"!==r.value){var l=o&&Le(o)?o.number:0;t.push({counter:r.value,reset:l})}}return t}},Dr={name:"quotes",initialValue:"none",prefix:!0,type:ft.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===A.IDENT_TOKEN&&"none"===t.value)return null;var n=[],r=e.filter(He);if(r.length%2!=0)return null;for(var i=0;i<r.length;i+=2){var o=r[i].value,l=r[i+1].value;n.push({open:o,close:l})}return n}},Ur=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},Or={name:"box-shadow",initialValue:"none",type:ft.LIST,prefix:!1,parse:function(e){return 1===e.length&&Qe(e[0],"none")?[]:Ge(e).map((function(e){for(var shadow={color:255,offsetX:We,offsetY:We,blur:We,spread:We,inset:!1},t=0,i=0;i<e.length;i++){var n=e[i];Qe(n,"inset")?shadow.inset=!0:qe(n)?(0===t?shadow.offsetX=n:1===t?shadow.offsetY=n:2===t?shadow.blur=n:shadow.spread=n,t++):shadow.color=at(n)}return shadow}))}},Fr=function(){function e(e){this.backgroundClip=Lr(wt,e.backgroundClip),this.backgroundColor=Lr(xt,e.backgroundColor),this.backgroundImage=Lr(Yt,e.backgroundImage),this.backgroundOrigin=Lr(Wt,e.backgroundOrigin),this.backgroundPosition=Lr(Xt,e.backgroundPosition),this.backgroundRepeat=Lr(Zt,e.backgroundRepeat),this.backgroundSize=Lr(nn,e.backgroundSize),this.borderTopColor=Lr(an,e.borderTopColor),this.borderRightColor=Lr(on,e.borderRightColor),this.borderBottomColor=Lr(ln,e.borderBottomColor),this.borderLeftColor=Lr(cn,e.borderLeftColor),this.borderTopLeftRadius=Lr(hn,e.borderTopLeftRadius),this.borderTopRightRadius=Lr(dn,e.borderTopRightRadius),this.borderBottomRightRadius=Lr(pn,e.borderBottomRightRadius),this.borderBottomLeftRadius=Lr(fn,e.borderBottomLeftRadius),this.borderTopStyle=Lr(gn,e.borderTopStyle),this.borderRightStyle=Lr(yn,e.borderRightStyle),this.borderBottomStyle=Lr(vn,e.borderBottomStyle),this.borderLeftStyle=Lr(_n,e.borderLeftStyle),this.borderTopWidth=Lr(wn,e.borderTopWidth),this.borderRightWidth=Lr(xn,e.borderRightWidth),this.borderBottomWidth=Lr(En,e.borderBottomWidth),this.borderLeftWidth=Lr(Cn,e.borderLeftWidth),this.boxShadow=Lr(Or,e.boxShadow),this.color=Lr(Sn,e.color),this.display=Lr(Tn,e.display),this.float=Lr(In,e.cssFloat),this.fontFamily=Lr(xr,e.fontFamily),this.fontSize=Lr(Cr,e.fontSize),this.fontStyle=Lr(kr,e.fontStyle),this.fontVariant=Lr(Tr,e.fontVariant),this.fontWeight=Lr(Sr,e.fontWeight),this.letterSpacing=Lr(Mn,e.letterSpacing),this.lineBreak=Lr(Dn,e.lineBreak),this.lineHeight=Lr(Un,e.lineHeight),this.listStyleImage=Lr(On,e.listStyleImage),this.listStylePosition=Lr(Rn,e.listStylePosition),this.listStyleType=Lr(Ln,e.listStyleType),this.marginTop=Lr(Hn,e.marginTop),this.marginRight=Lr(Qn,e.marginRight),this.marginBottom=Lr(Vn,e.marginBottom),this.marginLeft=Lr(jn,e.marginLeft),this.opacity=Lr(vr,e.opacity);var t=Lr(Kn,e.overflow);this.overflowX=t[0],this.overflowY=t[t.length>1?1:0],this.overflowWrap=Lr($n,e.overflowWrap),this.paddingTop=Lr(Wn,e.paddingTop),this.paddingRight=Lr(Xn,e.paddingRight),this.paddingBottom=Lr(Jn,e.paddingBottom),this.paddingLeft=Lr(Zn,e.paddingLeft),this.position=Lr(ir,e.position),this.textAlign=Lr(nr,e.textAlign),this.textDecorationColor=Lr(_r,e.textDecorationColor||e.color),this.textDecorationLine=Lr(wr,e.textDecorationLine),this.textShadow=Lr(sr,e.textShadow),this.textTransform=Lr(or,e.textTransform),this.transform=Lr(lr,e.transform),this.transformOrigin=Lr(pr,e.transformOrigin),this.visibility=Lr(mr,e.visibility),this.wordBreak=Lr(gr,e.wordBreak),this.zIndex=Lr(yr,e.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===ar.VISIBLE},e.prototype.isTransparent=function(){return ot(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return this.position!==er.STATIC},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==mn.NONE},e.prototype.isInlineLevel=function(){return Ir(this.display,4)||Ir(this.display,33554432)||Ir(this.display,268435456)||Ir(this.display,536870912)||Ir(this.display,67108864)||Ir(this.display,134217728)},e}(),Rr=function(e){this.content=Lr(content,e.content),this.quotes=Lr(Dr,e.quotes)},Nr=function(e){this.counterIncrement=Lr(Mr,e.counterIncrement),this.counterReset=Lr(Pr,e.counterReset)},Lr=function(e,style){var t=new Fe,n=null!=style?style.toString():e.initialValue;t.write(n);var r=new Re(t.read());switch(e.type){case ft.IDENT_VALUE:var o=r.parseComponentValue();return e.parse(ze(o)?o.value:e.initialValue);case ft.VALUE:return e.parse(r.parseComponentValue());case ft.LIST:return e.parse(r.parseComponentValues());case ft.TOKEN_VALUE:return r.parseComponentValue();case ft.TYPE_VALUE:switch(e.format){case"angle":return tt(r.parseComponentValue());case"color":return at(r.parseComponentValue());case"image":return qt(r.parseComponentValue());case"length":var l=r.parseComponentValue();return qe(l)?l:We;case"length-percentage":var c=r.parseComponentValue();return $e(c)?c:We}}throw new Error("Attempting to parse unsupported css format type "+e.format)},zr=function(element){this.styles=new Fr(window.getComputedStyle(element,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&yi(element)&&(element.style.transform="none"),this.bounds=c(element),this.flags=0},Hr=function(text,e){this.text=text,this.bounds=e},Qr=function(e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");
2n.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(n,e);var o=c(n);return n.firstChild&&r.replaceChild(n.firstChild,n),o}}return new l(0,0,0,0)},Vr=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var o=r.createRange();return o.setStart(e,t),o.setEnd(e,t+n),l.fromClientRect(o.getBoundingClientRect())},jr=function(e,t){return 0!==t.letterSpacing?h(e).map((function(i){return d(i)})):Gr(e,t)},Gr=function(e,t){for(var n,r=function(e,t){var n=h(e),r=re(n,t),o=r[0],l=r[1],c=r[2],d=n.length,f=0,m=0;return{next:function(){if(m>=d)return{done:!0,value:null};for(var e="Ã";m<d&&"Ã"===(e=ne(n,l,o,++m,c)););if("Ã"!==e||m===d){var t=new ie(n,e,f,m);return f=m,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap===Gn.BREAK_WORD?"break-word":t.wordBreak}),o=[];!(n=r.next()).done;)n.value&&o.push(n.value.slice());return o},Kr=function(e,t){this.text=qr(e.data,t.textTransform),this.textBounds=function(e,t,n){var r=jr(e,t),o=[],l=0;return r.forEach((function(text){if(t.textDecorationLine.length||text.trim().length>0)if(Dt.SUPPORT_RANGE_BOUNDS)o.push(new Hr(text,Vr(n,l,text.length)));else{var e=n.splitText(text.length);o.push(new Hr(text,Qr(n))),n=e}else Dt.SUPPORT_RANGE_BOUNDS||(n=n.splitText(text.length));l+=text.length})),o}(this.text,t,e)},qr=function(text,e){switch(e){case rr.LOWERCASE:return text.toLowerCase();case rr.CAPITALIZE:return text.replace($r,Yr);case rr.UPPERCASE:return text.toUpperCase();default:return text}},$r=/(^|\s|:|-|\(|\))([a-z])/g,Yr=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Wr=function(e){function n(img){var t=e.call(this,img)||this;return t.src=img.currentSrc||img.src,t.intrinsicWidth=img.naturalWidth,t.intrinsicHeight=img.naturalHeight,Ot.getInstance().addImage(t.src),t}return t(n,e),n}(zr),Xr=function(e){function n(canvas){var t=e.call(this,canvas)||this;return t.canvas=canvas,t.intrinsicWidth=canvas.width,t.intrinsicHeight=canvas.height,t}return t(n,e),n}(zr),Jr=function(e){function n(img){var t=e.call(this,img)||this,s=new XMLSerializer;return t.svg="data:image/svg+xml,"+encodeURIComponent(s.serializeToString(img)),t.intrinsicWidth=img.width.baseVal.value,t.intrinsicHeight=img.height.baseVal.value,Ot.getInstance().addImage(t.svg),t}return t(n,e),n}(zr),Zr=function(e){function n(element){var t=e.call(this,element)||this;return t.value=element.value,t}return t(n,e),n}(zr),ei=function(e){function n(element){var t=e.call(this,element)||this;return t.start=element.start,t.reversed="boolean"==typeof element.reversed&&!0===element.reversed,t}return t(n,e),n}(zr),ti=[{type:A.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],ni=[{type:A.PERCENTAGE_TOKEN,flags:0,number:50}],ri="password",ii=function(e){function n(input){var t,n,r,o=e.call(this,input)||this;switch(o.type=input.type.toLowerCase(),o.checked=input.checked,o.value=0===(n=(t=input).type===ri?new Array(t.value.length+1).join("â¢"):t.value).length?t.placeholder||"":n,"checkbox"!==o.type&&"radio"!==o.type||(o.styles.backgroundColor=3739148031,o.styles.borderTopColor=o.styles.borderRightColor=o.styles.borderBottomColor=o.styles.borderLeftColor=2779096575,o.styles.borderTopWidth=o.styles.borderRightWidth=o.styles.borderBottomWidth=o.styles.borderLeftWidth=1,o.styles.borderTopStyle=o.styles.borderRightStyle=o.styles.borderBottomStyle=o.styles.borderLeftStyle=tn.SOLID,o.styles.backgroundClip=[mt.BORDER_BOX],o.styles.backgroundOrigin=[0],o.bounds=(r=o.bounds).width>r.height?new l(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new l(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r),o.type){case"checkbox":o.styles.borderTopRightRadius=o.styles.borderTopLeftRadius=o.styles.borderBottomRightRadius=o.styles.borderBottomLeftRadius=ti;break;case"radio":o.styles.borderTopRightRadius=o.styles.borderTopLeftRadius=o.styles.borderBottomRightRadius=o.styles.borderBottomLeftRadius=ni}return o}return t(n,e),n}(zr),si=function(e){function n(element){var t=e.call(this,element)||this,option=element.options[element.selectedIndex||0];return t.value=option&&option.text||"",t}return t(n,e),n}(zr),ai=function(e){function n(element){var t=e.call(this,element)||this;return t.value=element.value,t}return t(n,e),n}(zr),oi=function(e){return at(Re.create(e).parseComponentValue())},ci=function(e){function n(iframe){var t=e.call(this,iframe)||this;t.src=iframe.src,t.width=parseInt(iframe.width,10)||0,t.height=parseInt(iframe.height,10)||0,t.backgroundColor=t.styles.backgroundColor;try{if(iframe.contentWindow&&iframe.contentWindow.document&&iframe.contentWindow.document.documentElement){t.tree=pi(iframe.contentWindow.document.documentElement);var n=iframe.contentWindow.document.documentElement?oi(getComputedStyle(iframe.contentWindow.document.documentElement).backgroundColor):yt.TRANSPARENT,r=iframe.contentWindow.document.body?oi(getComputedStyle(iframe.contentWindow.document.body).backgroundColor):yt.TRANSPARENT;t.backgroundColor=ot(n)?ot(r)?t.styles.backgroundColor:r:n}}catch(e){}return t}return t(n,e),n}(zr),ui=["OL","UL","MENU"],hi=function(e,t,n){for(var r=e.firstChild,o=void 0;r;r=o)if(o=r.nextSibling,Ai(r)&&r.data.trim().length>0)t.textNodes.push(new Kr(r,t.styles));else if(gi(r)){var l=di(r);l.styles.isVisible()&&(fi(r,l,n)?l.flags|=4:mi(l.styles)&&(l.flags|=2),-1!==ui.indexOf(r.tagName)&&(l.flags|=8),t.elements.push(l),ki(r)||wi(r)||Ii(r)||hi(r,l,n))}},di=function(element){return Ci(element)?new Wr(element):Ei(element)?new Xr(element):wi(element)?new Jr(element):vi(element)?new Zr(element):_i(element)?new ei(element):bi(element)?new ii(element):Ii(element)?new si(element):ki(element)?new ai(element):Si(element)?new ci(element):new zr(element)},pi=function(element){var e=di(element);return e.flags|=4,hi(element,e,e),e},fi=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||xi(e)&&n.styles.isTransparent
2()},mi=function(e){return e.isPositioned()||e.isFloating()},Ai=function(e){return e.nodeType===Node.TEXT_NODE},gi=function(e){return e.nodeType===Node.ELEMENT_NODE},yi=function(e){return void 0!==e.style},vi=function(e){return"LI"===e.tagName},_i=function(e){return"OL"===e.tagName},bi=function(e){return"INPUT"===e.tagName},wi=function(e){return"svg"===e.tagName},xi=function(e){return"BODY"===e.tagName},Ei=function(e){return"CANVAS"===e.tagName},Ci=function(e){return"IMG"===e.tagName},Si=function(e){return"IFRAME"===e.tagName},Ti=function(e){return"STYLE"===e.tagName},Bi=function(e){return"SCRIPT"===e.tagName},ki=function(e){return"TEXTAREA"===e.tagName},Ii=function(e){return"SELECT"===e.tagName},Mi=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(style){var e=this,t=style.counterIncrement,n=style.counterReset,r=!0;null!==t&&t.forEach((function(t){var n=e.counters[t.counter];n&&0!==t.increment&&(r=!1,n[Math.max(0,n.length-1)]+=t.increment)}));var o=[];
2return r&&n.forEach((function(t){var n=e.counters[t.counter];o.push(t.counter),n||(n=e.counters[t.counter]=[]),n.push(t.reset)})),o},e}(),Pi={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Di={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ","Õ
","Õ","Õ","Õ","Õ","Õ","Ô¿","Ô¾","Ô½","Ô¼","Ô»","Ôº","Ô¹","Ô¸","Ô·","Ô¶","Ôµ","Ô´","Ô³","Ô²","Ô±"]},Ui={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["×׳","×׳","×׳","×׳","×׳","×׳","×׳","×׳","×׳","×׳","ת","ש","ר","×§","צ","פ","×¢","ס","× ","×","×","×","××","××","××","××","××","×","×","×","×","×","×","×","×","×","×"]},Oi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["áµ","á°","á¯","á´","á®","á","á¬","á«","áª","á©","á¨","á§","á¦","á¥","á¤","á³","á¢","á¡","á ","á","á","á","á²","á","á","á","á","á","á","á±","á","á","á","á","á","á","á"]},Fi=function(e,t,n,r,o,l){return e<t||e>n?Hi(e,o,l.length>0):r.integers.reduce((function(t,n,o){for(;e>=n;)e-=n,t+=r.values[o];return t}),"")+l},Ri=function(e,t,n,r){var o="";do{n||e--,o=r(e)+o,e/=t}while(e*t>=t);return o},Ni=function(e,t,n,r,o){var l=n-t+1;return(e<0?"-":"")+(Ri(Math.abs(e),l,r,(function(e){return d(Math.floor(e%l)+t)}))+o)},Li=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return Ri(Math.abs(e),r,!1,(function(e){return t[Math.floor(e%r)]}))+n},zi=function(e,t,n,r,o,l){if(e<-9999||e>9999)return Hi(e,Fn.CJK_DECIMAL,o.length>0);var c=Math.abs(e),h=o;if(0===c)return t[0]+h;for(var d=0;c>0&&d<=4;d++){var f=c%10;0===f&&Ir(l,1)&&""!==h?h=t[f]+h:f>1||1===f&&0===d||1===f&&1===d&&Ir(l,2)||1===f&&1===d&&Ir(l,4)&&e>100||1===f&&d>1&&Ir(l,8)?h=t[f]+(d>0?n[d-1]:"")+h:1===f&&d>0&&(h=n[d-1]+h),c=Math.floor(c/10)}return(e<0?r:"")+h},Hi=function(e,t,n){var r=n?". ":"",o=n?"ã":"",l=n?", ":"",c=n?" ":"";switch(t){case Fn.DISC:return"â¢"+c;case Fn.CIRCLE:return"â¦"+c;case Fn.SQUARE:return"â¾"+c;case Fn.DECIMAL_LEADING_ZERO:var h=Ni(e,48,57,!0,r);return h.length<4?"0"+h:h;case Fn.CJK_DECIMAL:return Li(e,"ãä¸äºä¸åäºå
ä¸å
«ä¹",o);case Fn.LOWER_ROMAN:return Fi(e,1,3999,Pi,Fn.DECIMAL,r).toLowerCase();case Fn.UPPER_ROMAN:return Fi(e,1,3999,Pi,Fn.DECIMAL,r);case Fn.LOWER_GREEK:return Ni(e,945,969,!1,r);case Fn.LOWER_ALPHA:return Ni(e,97,122,!1,r);case Fn.UPPER_ALPHA:return Ni(e,65,90,!1,r);case Fn.ARABIC_INDIC:return Ni(e,1632,1641,!0,r);case Fn.ARMENIAN:case Fn.UPPER_ARMENIAN:return Fi(e,1,9999,Di,Fn.DECIMAL,r);case Fn.LOWER_ARMENIAN:return Fi(e,1,9999,Di,Fn.DECIMAL,r).toLowerCase();case Fn.BENGALI:return Ni(e,2534,2543,!0,r);case Fn.CAMBODIAN:case Fn.KHMER:return Ni(e,6112,6121,!0,r);case Fn.CJK_EARTHLY_BRANCH:return Li(e,"åä¸å¯
å¯è¾°å·³åæªç³é
æäº¥",o);case Fn.CJK_HEAVENLY_STEM:return Li(e,"ç²ä¹ä¸ä¸æå·±åºè¾å£¬ç¸",o);case Fn.CJK_IDEOGRAPHIC:case Fn.TRAD_CHINESE_INFORMAL:return zi(e,"é¶ä¸äºä¸åäºå
ä¸å
«ä¹","åç¾åè¬","è² ",o,14);case Fn.TRAD_CHINESE_FORMAL:return zi(e,"é¶å£¹è²³åèä¼é¸ææç","æ¾ä½°ä»è¬","è² ",o,15);case Fn.SIMP_CHINESE_INFORMAL:return zi(e,"é¶ä¸äºä¸åäºå
ä¸å
«ä¹","åç¾åè¬","è´",o,14);case Fn.SIMP_CHINESE_FORMAL:return zi(e,"é¶å£¹è´°åèä¼éææç","æ¾ä½°ä»è¬","è´",o,15);case Fn.JAPANESE_INFORMAL:return zi(e,"ãä¸äºä¸åäºå
ä¸å
«ä¹","åç¾åä¸","ãã¤ãã¹",o,0);case Fn.JAPANESE_FORMAL:return zi(e,"é¶å£±å¼ååä¼å
ä¸å
«ä¹","æ¾ç¾åä¸","ãã¤ãã¹",o,7);case Fn.KOREAN_HANGUL_FORMAL:return zi(e,"ìì¼ì´ì¼ì¬ì¤ì¡ì¹ í구","ìë°±ì²ë§","ë§ì´ëì¤",l,7);case Fn.KOREAN_HANJA_INFORMAL:return zi(e,"é¶ä¸äºä¸åäºå
ä¸å
«ä¹","åç¾åè¬","ë§ì´ëì¤",l,0);case Fn.KOREAN_HANJA_FORMAL:return zi(e,"é¶å£¹è²³ååäºå
ä¸å
«ä¹","æ¾ç¾å","ë§ì´ëì¤",l,7);case Fn.DEVANAGARI:return Ni(e,2406,2415,!0,r);case Fn.GEORGIAN:return Fi(e,1,19999,Oi,Fn.DECIMAL,r);case Fn.GUJARATI:return Ni(e,2790,2799,!0,r);case Fn.GURMUKHI:return Ni(e,2662,2671,!0,r);case Fn.HEBREW:return Fi(e,1,10999,Ui,Fn.DECIMAL,r);case Fn.HIRAGANA:return Li(e,"ããããããããããããããããã¡ã¤ã¦ã¨ãªã«ã¬ãã®ã¯ã²ãµã¸ã»ã¾ã¿ãããããããããããããããã");case Fn.HIRAGANA_IROHA:return Li(e,"ããã¯ã«ã»ã¸ã¨ã¡ãã¬ããããããããã¤ããªããããã®ãããã¾ããµããã¦ãããããã¿ããã²ããã");case Fn.KANNADA:return Ni(e,3302,3311,!0,r);case Fn.KATAKANA:return Li(e,"ã¢ã¤ã¦ã¨ãªã«ãã¯ã±ã³ãµã·ã¹ã»ã½ã¿ããããããããããããããããã ã¡ã¢ã¤ã¦ã¨ã©ãªã«ã¬ãã¯ã°ã±ã²ã³",o);case Fn.KATAKANA_IROHA:return Li(e,"ã¤ããããããããªãã«ã²ã¯ã«ã¨ã¿ã¬ã½ãããã©ã ã¦ã°ããªã¯ã¤ãã±ãã³ã¨ãã¢ãµãã¦ã¡ãã·ã±ãã¢ã»ã¹",o);case Fn.LAO:return Ni(e,3792,3801,!0,r);case Fn.MONGOLIAN:return Ni(e,6160,6169,!0,r);case Fn.MYANMAR:return Ni(e,4160,4169,!0,r);case Fn.ORIYA:return Ni(e,2918,2927,!0,r);case Fn.PERSIAN:return Ni(e,1776,1785,!0,r);case Fn.TAMIL:return Ni(e,3046,3055,!0,r);
2case Fn.TELUGU:return Ni(e,3174,3183,!0,r);case Fn.THAI:return Ni(e,3664,3673,!0,r);case Fn.TIBETAN:return Ni(e,3872,3881,!0,r);case Fn.DECIMAL:default:return Ni(e,48,57,!0,r)}},Qi=function(){function e(element,e){if(this.options=e,this.scrolledElements=[],this.referenceElement=element,this.counters=new Mi,this.quoteDepth=0,!element.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(element.ownerDocument.documentElement)}return e.prototype.toIFrame=function(e,t){var n=this,iframe=ji(e,t);if(!iframe.contentWindow)return Promise.reject("Unable to find iframe window");var l=e.defaultView.pageXOffset,c=e.defaultView.pageYOffset,h=iframe.contentWindow,d=h.document,f=Gi(iframe).then((function(){return r(n,void 0,void 0,(function(){var e;return o(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(Yi),h&&(h.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||h.scrollY===t.top&&h.scrollX===t.left||(d.documentElement.style.top=-t.top+"px",d.documentElement.style.left=-t.left+"px",d.documentElement.style.position="absolute")),e=this.options.onclone,void 0===this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:d.fonts&&d.fonts.ready?[4,d.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return"function"==typeof e?[2,Promise.resolve().then((function(){return e(d)})).then((function(){return iframe}))]:[2,iframe]}}))}))}));return d.open(),d.write(qi(document.doctype)+"<html></html>"),$i(this.referenceElement.ownerDocument,l,c),d.replaceChild(d.adoptNode(this.documentElement),d.documentElement),d.close(),f},e.prototype.createElementClone=function(e){return Ei(e)?this.createCanvasClone(e):Ti(e)?this.createStyleClone(e):e.cloneNode(!1)},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e}),""),style=e.cloneNode(!1);return style.textContent=n,style}}catch(e){if(Ut.getInstance(this.options.id).error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)}
vendor: 16,760 bytes, line 2
2,e.prototype.createCanvasClone=function(canvas){if(this.options.inlineImages&&canvas.ownerDocument){var img=canvas.ownerDocument.createElement("img");try{return img.src=canvas.toDataURL(),img}catch(e){Ut.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var e=canvas.cloneNode(!1);try{e.width=canvas.width,e.height=canvas.height;var t=canvas.getContext("2d"),n=e.getContext("2d");return n&&(t?n.putImageData(t.getImageData(0,0,canvas.width,canvas.height),0,0):n.drawImage(canvas,0,0)),e}catch(e){}return e},e.prototype.cloneNode=function(e){if(Ai(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(yi(e)&&t){var n=this.createElementClone(e),style=t.getComputedStyle(e),r=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&(this.clonedReferenceElement=n),xi(n)&&Ji(n);for(var l=this.counters.parse(new Nr(style)),c=this.resolvePseudoContent(e,n,r,Br.BEFORE),h=e.firstChild;h;h=h.nextSibling)gi(h)&&(Bi(h)||h.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(h))||this.options.copyStyles&&gi(h)&&Ti(h)||n.appendChild(this.cloneNode(h));c&&n.insertBefore(c,n.firstChild);var d=this.resolvePseudoContent(e,n,o,Br.AFTER);return d&&n.appendChild(d),this.counters.pop(l),style&&this.options.copyStyles&&!Si(e)&&Ki(style,n),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(ki(e)||Ii(e))&&(ki(n)||Ii(n))&&(n.value=e.value),n}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,style,n){var r=this;if(style){var o=style.content,l=t.ownerDocument;if(l&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==style.display){this.counters.parse(new Nr(style));var c=new Rr(style),h=l.createElement("html2canvaspseudoelement");return Ki(style,h),c.content.forEach((function(t){if(t.type===A.STRING_TOKEN)h.appendChild(l.createTextNode(t.value));else if(t.type===A.URL_TOKEN){var img=l.createElement("img");img.src=t.value,img.style.opacity="1",h.appendChild(img)}else if(t.type===A.FUNCTION){if("attr"===t.name){var n=t.values.filter(ze);n.length&&h.appendChild(l.createTextNode(e.getAttribute(n[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(je),d=o[0],f=o[1];if(d&&ze(d)){var m=r.counters.getCounterValue(d.value),y=f&&ze(f)?Ln.parse(f.value):Fn.DECIMAL;h.appendChild(l.createTextNode(Hi(m,y,!1)))}}else if("counters"===t.name){var v=t.values.filter(je),_=(d=v[0],v[1]);if(f=v[2],d&&ze(d)){var w=r.counters.getCounterValues(d.value),x=f&&ze(f)?Ln.parse(f.value):Fn.DECIMAL,E=_&&_.type===A.STRING_TOKEN?_.value:"",text=w.map((function(e){return Hi(e,x,!1)})).join(E);h.appendChild(l.createTextNode(text))}}}else if(t.type===A.IDENT_TOKEN)switch(t.value){case"open-quote":h.appendChild(l.createTextNode(Ur(c.quotes,r.quoteDepth++,!0)));break;case"close-quote":h.appendChild(l.createTextNode(Ur(c.quotes,--r.quoteDepth,!1)));break;default:h.appendChild(l.createTextNode(t.value))}})),h.className=Wi+" "+Xi,t.className+=n===Br.BEFORE?" "+Wi:" "+Xi,h}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Br||(Br={}));var Vi,ji=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute("data-html2canvas-ignore","true"),e.body.appendChild(n),n},Gi=function(iframe){return new Promise((function(e,t){var n=iframe.contentWindow;if(!n)return t("No window assigned for iframe");var r=n.document;n.onload=iframe.onload=r.onreadystatechange=function(){n.onload=iframe.onload=r.onreadystatechange=null;var t=setInterval((function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(t),e(iframe))}),50)}}))},Ki=function(style,e){for(var i=style.length-1;i>=0;i--){var t=style.item(i);"content"!==t&&e.style.setProperty(t,style.getPropertyValue(t))}return e},qi=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},$i=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},Yi=function(e){var element=e[0],t=e[1],n=e[2];element.scrollLeft=t,element.scrollTop=n},Wi="___html2canvas___pseudoelement_before",Xi="___html2canvas___pseudoelement_after",Ji=function(body){Zi(body,"."+Wi+':before{\n content: "" !important;\n display: none !important;\n}\n .'+Xi+':after{\n content: "" !important;\n display: none !important;\n}')},Zi=function(body,e){var t=body.ownerDocument;if(t){var style=t.createElement("style");style.textContent=e,body.appendChild(style)}};!function(e){e[e.VECTOR=0]="VECTOR",e[e.BEZIER_CURVE=1]="BEZIER_CURVE"}(Vi||(Vi={}));var es,ts=function(a,b){return a.length===b.length&&a.some((function(e,i){return e===b[i]}))},ns=function(){function e(e,t){this.type=Vi.VECTOR,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),rs=function(a,b,e){return new ns(a.x+(b.x-a.x)*e,a.y+(b.y-a.y)*e)},is=function(){function e(e,t,n,r){this.type=Vi.BEZIER_CURVE,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=rs(this.start,this.startControl,t),o=rs(this.startControl,this.endControl,t),l=rs(this.endControl,this.end,t),c=rs(r,o,t),h=rs(o,l,t),d=rs(c,h,t);return n?new e(this.start,r,c,d):new e(d,h,l,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),ss=function(path){return path.type===Vi.BEZIER_CURVE},as=function(element){var e=element.styles,t=element.bounds,n=Ze(e.borderTopLeftRadius,t.width,t.height),r=n[0],o=n[1],l=Ze(e.borderTopRightRadius,t.width,t.height),c=l[0],h=l[1],d=Ze(e.borderBottomRightRadius,t.width,t.height),f=d[0],m=d[1],A=Ze(e.borderBottomLeftRadius,t.width,t.height),y=A[0],v=A[1],_=[];_.push((r+c)/t.width),_.push((y+f)/t.width),_.push((o+v)/t.height),_.push((h+m)/t.height);var w=Math.max.apply(Math,_);w>1&&(r/=w,o/=w,c/=w,h/=w,f/=w,m/=w,y/=w,v/=w);var x=t.width-c,E=t.height-m,C=t.width-f,S=t.height-v,T=e.borderTopWidth,B=e.borderRightWidth,k=e.borderBottomWidth,I=e.borderLeftWidth,M=et(e.paddingTop,element.bounds.width),P=et(e.paddingRight,element.bounds.width),D=et(e.paddingBottom,element.bounds.width),U=et(e.paddingLeft,element.bounds.width);this.topLeftBorderBox=r>0||o>0?os(t.left,t.top,r,o,es.TOP_LEFT):new ns(t.left,t.top),this.topRightBorderBox=c>0||h>0?os(t.left+x,t.top,c,h,es.TOP_RIGHT):new ns(t.left+t.width,t.top),this.bottomRightBorderBox=f>0||m>0?os(t.left+C,t.top+E,f,m,es.BOTTOM_RIGHT):new ns(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=y>0||v>0?os(t.left,t.top+S,y,v,es.BOTTOM_LEFT):new ns(t.left,t.top+t.height),this.topLeftPaddingBox=r>0||o>0?os(t.left+I,t.top+T,Math.max(0,r-I),Math.max(0,o-T),es.TOP_LEFT):new ns(t.left+I,t.top+T),this.topRightPaddingBox=c>0||h>0?os(t.left+Math.min(x,t.width+I),t.top+T,x>t.width+I?0:c-I,h-T,es.TOP_RIGHT):new ns(t.left+t.width-B,t.top+T),this.bottomRightPaddingBox=f>0||m>0?os(t.left+Math.min(C,t.width-I),t.top+Math.min(E,t.height+T),Math.max(0,f-B),m-k,es.BOTTOM_RIGHT):new ns(t.left+t.width-B,t.top+t.height-k),this.bottomLeftPaddingBox=y>0||v>0?os(t.left+I,t.top+S,Math.max(0,y-I),v-k,es.BOTTOM_LEFT):new ns(t.left+I,t.top+t.height-k),this.topLeftContentBox=r>0||o>0?os(t.left+I+U,t.top+T+M,Math.max(0,r-(I+U)),Math.max(0,o-(T+M)),es.TOP_LEFT):new ns(t.left+I+U,t.top+T+M),this.topRightContentBox=c>0||h>0?os(t.left+Math.min(x,t.width+I+U),t.top+T+M,x>t.width+I+U?0:c-I+U,h-(T+M),es.TOP_RIGHT):new ns(t.left+t.width-(B+P),t.top+T+M),this.bottomRightContentBox=f>0||m>0?os(t.left+Math.min(C,t.width-(I+U)),t.top+Math.min(E,t.height+T+M),Math.max(0,f-(B+P)),m-(k+D),es.BOTTOM_RIGHT):new ns(t.left+t.width-(B+P),t.top+t.height-(k+D)),this.bottomLeftContentBox=y>0||v>0?os(t.left+I+U,t.top+S,Math.max(0,y-(I+U)),v-(k+D),es.BOTTOM_LEFT):new ns(t.left+I+U,t.top+t.height-(k+D))};!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(es||(es={}));var os=function(e,t,n,r,o){var l=(Math.sqrt(2)-1)/3*4,c=n*l,h=r*l,d=e+n,f=t+r;switch(o){case es.TOP_LEFT:return new is(new ns(e,f),new ns(e,f-h),new ns(d-c,t),new ns(d,t));case es.TOP_RIGHT:return new is(new ns(e,t),new ns(e+c,t),new ns(d,f-h),new ns(d,f));case es.BOTTOM_RIGHT:return new is(new ns(d,t),new ns(d,t+h),new ns(e+c,f),new ns(e,f));case es.BOTTOM_LEFT:default:return new is(new ns(d,f),new ns(d-c,f),new ns(e,t+h),new ns(e,t))}},ls=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},cs=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},us=function(e,t,n){this.type=0,this.offsetX=e,this.offsetY=t,this.matrix=n,this.target=6},hs=function(path,e){this.type=1,this.target=e,this.path=path},ds=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},ps=function(){function e(element,e){if(this.container=element,this.effects=e.slice(0),this.curves=new as(element),null!==element.styles.transform){var t=element.bounds.left+element.styles.transformOrigin[0].number,n=element.bounds.top+element.styles.transformOrigin[1].number,r=element.styles.transform;this.effects.push(new us(t,n,r))}if(element.styles.overflowX!==Nn.VISIBLE){var o=ls(this.curves),l=cs(this.curves);ts(o,l)?this.effects.push(new hs(o,6)):(this.effects.push(new hs(o,2)),this.effects.push(new hs(l,4)))}}return e.prototype.getParentEffects=function(){var e=this.effects.slice(0);if(this.container.styles.overflowX!==Nn.VISIBLE){var t=ls(this.curves),n=cs(this.curves);ts(t,n)||e.push(new hs(n,6))}return e},e}(),fs=function(e,t,n,r){e.container.elements.forEach((function(o){var l=Ir(o.flags,4),c=Ir(o.flags,2),h=new ps(o,e.getParentEffects());Ir(o.styles.display,2048)&&r.push(h);var d=Ir(o.flags,8)?[]:r;if(l||c){var f=l||o.styles.isPositioned()?n:t,m=new ds(h);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var A=o.styles.zIndex.order;if(A<0){var y=0;f.negativeZIndex.some((function(e,i){return A>e.element.container.styles.zIndex.order?(y=i,!1):y>0})),f.negativeZIndex.splice(y,0,m)}else if(A>0){var v=0;f.positiveZIndex.some((function(e,i){return A>e.element.container.styles.zIndex.order?(v=i+1,!1):v>0})),f.positiveZIndex.splice(v,0,m)}else f.zeroOrAutoZIndexOrTransformedOrOpacity.push(m)}else o.styles.isFloating()?f.nonPositionedFloats.push(m):f.nonPositionedInlineLevel.push(m);fs(h,m,l?m:n,d)}else o.styles.isInlineLevel()?t.inlineLevel.push(h):t.nonInlineLevel.push(h),fs(h,t,n,d);Ir(o.flags,8)&&ms(o,d)}))},ms=function(e,t){for(var n=e instanceof ei?e.start:1,r=e instanceof ei&&e.reversed,i=0;i<t.length;i++){var o=t[i];o.container instanceof Zr&&"number"==typeof o.container.value&&0!==o.container.value&&(n=o.container.value),o.listValue=Hi(n,o.container.styles.listStyleType,!0),n+=r?-1:1}},As=function(e,t,n,r){var path=[];return ss(e)?path.push(e.subdivide(.5,!1)):path.push(e),ss(n)?path.push(n.subdivide(.5,!0)):path.push(n),ss(r)?path.push(r.subdivide(.5,!0).reverse()):path.push(r),ss(t)?path.push(t.subdivide(.5,!1).reverse()):path.push(t),path},gs=function(element){var e=element.bounds,t=element.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},ys=function(element){var e=element.styles,t=element.bounds,n=et(e.paddingLeft,t.width),r=et(e.paddingRight,t.width),o=et(e.paddingTop,t.width),l=et(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,o+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+o+l))},vs=function(e,t,n){var r=function(e,element){return 0===e?element.bounds:2===e?ys(element):gs(element)}(xs(e.styles.backgroundOrigin,t),e),o=function(e,element){return e===mt.BORDER_BOX?element.bounds:e===mt.CONTENT_BOX?ys(element):gs(element)}(xs(e.styles.backgroundClip,t),e),l=ws(xs(e.styles.backgroundSize,t),n,r),c=l[0],h=l[1],d=Ze(xs(e.styles.backgroundPosition,t),r.width-c,r.height-h);return[Es(xs(e.styles.backgroundRepeat,t),d,l,r,o),Math.round(r.left+d[0]),Math.round(r.top+d[1]),c,h]},_s=function(e){return ze(e)&&e.value===Jt.AUTO},bs=function(e){return"number"==typeof e},ws=function(e,t,n){var r=t[0],o=t[1],l=t[2],c=e[0],h=e[1];if($e(c)&&h&&$e(h))return[et(c,n.width),et(h,n.height)];var d=bs(l);if(ze(c)&&(c.value===Jt.CONTAIN||c.value===Jt.COVER))return bs(l)?n.width/n.height<l!=(c.value===Jt.COVER)?[n.width,n.width/l]:[n.height*l,n.height]:[n.width,n.height];var f=bs(r),m=bs(o),A=f||m;if(_s(c)&&(!h||_s(h)))return f&&m?[r,o]:d||A?A&&d?[f?r:o*l,m?o:r/l]:[f?r:n.width,m?o:n.height]:[n.width,n.height];if(d){var y=0,v=0;return $e(c)?y=et(c,n.width):$e(h)&&(v=et(h,n.height)),_s(c)?y=v*l:h&&!_s(h)||(v=y/l),[y,v]}var _=null,w=null;if($e(c)?_=et(c,n.width):h&&$e(h)&&(w=et(h,n.height)),null===_||h&&!_s(h)||(w=f&&m?_/r*o:n.height),null!==w&&_s(c)&&(_=f&&m?w/o*r:n.width),null!==_&&null!==w)return[_,w];throw new Error("Unable to calculate background-size for element")},xs=function(e,t){var n=e[t];return void 0===n?e[0]:n},Es=function(e,t,n,r,o){var l=t[0],c=t[1],h=n[0],d=n[1];switch(e){case Kt.REPEAT_X:return[new ns(Math.round(r.left),Math.round(r.top+c)),new ns(Math.round(r.left+r.width),Math.round(r.top+c)),new ns(Math.round(r.left+r.width),Math.round(d+r.top+c)),new ns(Math.round(r.left),Math.round(d+r.top+c))];case Kt.REPEAT_Y:return[new ns(Math.round(r.left+l),Math.round(r.top)),new ns(Math.round(r.left+l+h),Math.round(r.top)),new ns(Math.round(r.left+l+h),Math.round(r.height+r.top)),new ns(Math.round(r.left+l),Math.round(r.height+r.top))];case Kt.NO_REPEAT:return[new ns(Math.round(r.left+l),Math.round(r.top+c)),new ns(Math.round(r.left+l+h),Math.round(r.top+c)),new ns(Math.round(r.left+l+h),Math.round(r.top+c+d)),new ns(Math.round(r.left+l),Math.round(r.top+c+d))];default:return[new ns(Math.round(o.left),Math.round(o.top)),new ns(Math.round(o.left+o.width),Math.round(o.top)),new ns(Math.round(o.left+o.width),Math.round(o.height+o.top)),new ns(Math.round(o.left),Math.round(o.height+o.top))]}},Cs=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),img=this._document.createElement("img"),span=this._document.createElement("span"),body=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",body.appendChild(n),img.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",img.width=1,img.height=1,img.style.margin="0",img.style.padding="0",img.style.verticalAlign="baseline",span.style.fontFamily=e,span.style.fontSize=t,span.style.margin="0",span.style.padding="0",span.appendChild(this._document.createTextNode("Hidden Text")),n.appendChild(span),n.appendChild(img);var r=img.offsetTop-span.offsetTop+2;n.removeChild(span),n.appendChild(this._document.createTextNode("Hidden Text")),n.style.lineHeight="normal",img.style.verticalAlign="super";var o=img.offsetTop-n.offsetTop+2;return body.removeChild(n),{baseline:r,middle:o}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),Ss=function(){function e(e){this._activeEffects=[],this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,e.canvas||(this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px"),this.fontMetrics=new Cs(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],Ut.getInstance(e.id).debug("Canvas renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.applyEffects=function(e,t){for(var n=this;this._activeEffects.length;)this.popEffect();e.filter((function(e){return Ir(e.target,t)}
2)).forEach((function(e){return n.applyEffect(e)}))},e.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),function(e){return 1===e.type}(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return(t=e.element.container.styles).isVisible()?(this.ctx.globalAlpha=t.opacity,[4,this.renderStackContent(e)]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},e.prototype.renderNode=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}}
2))}))},e.prototype.renderTextWithLetterSpacing=function(text,e){var t=this;0===e?this.ctx.fillText(text.text,text.bounds.left,text.bounds.top+text.bounds.height):h(text.text).map((function(i){return d(i)})).reduce((function(e,n){return t.ctx.fillText(n,e,text.bounds.top+text.bounds.height),e+t.ctx.measureText(n).width}),text.bounds.left)},e.prototype.createFontStyle=function(e){var t=e.fontVariant.filter((function(e){return"normal"===e||"small-caps"===e})).join(""),n=e.fontFamily.join(", "),r=Ne(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},e.prototype.renderTextNode=function(text,e){return r(this,void 0,void 0,(function(){var t,n,r,l,c=this;return o(this,(function(o){return t=this.createFontStyle(e),n=t[0],r=t[1],l=t[2],this.ctx.font=n,text.textBounds.forEach((function(text){c.ctx.fillStyle=lt(e.color),c.renderTextWithLetterSpacing(text,e.letterSpacing);var t=e.textShadow;t.length&&text.text.trim().length&&(t.slice(0).reverse().forEach((function(e){c.ctx.shadowColor=lt(e.color),c.ctx.shadowOffsetX=e.offsetX.number*c.options.scale,c.ctx.shadowOffsetY=e.offsetY.number*c.options.scale,c.ctx.shadowBlur=e.blur.number,c.ctx.fillText(text.text,text.bounds.left,text.bounds.top+text.bounds.height)})),c.ctx.shadowColor="",c.ctx.shadowOffsetX=0,c.ctx.shadowOffsetY=0,c.ctx.shadowBlur=0),e.textDecorationLine.length&&(c.ctx.fillStyle=lt(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:var t=c.fontMetrics.getMetrics(r,l).baseline;c.ctx.fillRect(text.bounds.left,Math.round(text.bounds.top+t),text.bounds.width,1);break;case 2:c.ctx.fillRect(text.bounds.left,Math.round(text.bounds.top),text.bounds.width,1);break;case 3:var n=c.fontMetrics.getMetrics(r,l).middle;c.ctx.fillRect(text.bounds.left,Math.ceil(text.bounds.top+n),text.bounds.width,1)}})))})),[2]}))}))},e.prototype.renderReplacedElement=function(e,t,image){if(image&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var n=ys(e),path=cs(t);this.path(path),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(image,0,0,e.intrinsicWidth,e.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return r(this,void 0,void 0,(function(){var n,r,c,h,d,f,canvas,m,y,v,img,image,_,w;return o(this,(function(o){switch(o.label){case 0:this.applyEffects(t.effects,4),n=t.container,r=t.curves,c=n.styles,h=0,d=n.textNodes,o.label=1;case 1:return h<d.length?(f=d[h],[4,this.renderTextNode(f,c)]):[3,4];case 2:o.sent(),o.label=3;case 3:return h++,[3,1];case 4:if(!(n instanceof Wr))return[3,8];o.label=5;case 5:return o.trys.push([5,7,,8]),[4,this.options.cache.match(n.src)];case 6:return image=o.sent(),this.renderReplacedElement(n,r,image),[3,8];case 7:return o.sent(),Ut.getInstance(this.options.id).error("Error loading image "+n.src),[3,8];case 8:if(n instanceof Xr&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof Jr))return[3,12];o.label=9;case 9:return o.trys.push([9,11,,12]),[4,this.options.cache.match(n.svg)];case 10:return image=o.sent(),this.renderReplacedElement(n,r,image),[3,12];case 11:return o.sent(),Ut.getInstance(this.options.id).error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof ci&&n.tree?[4,new e({id:this.options.id,scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:n.width,height:n.height,cache:this.options.cache,windowWidth:n.width,windowHeight:n.height}).render(n.tree)]:[3,14];case 13:canvas=o.sent(),n.width&&n.height&&this.ctx.drawImage(canvas,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),o.label=14;case 14:if(n instanceof ii&&(m=Math.min(n.bounds.width,n.bounds.height),"checkbox"===n.type?n.checked&&(this.ctx.save(),this.path([new ns(n.bounds.left+.39363*m,n.bounds.top+.79*m),new ns(n.bounds.left+.16*m,n.bounds.top+.5549*m),new ns(n.bounds.left+.27347*m,n.bounds.top+.44071*m),new ns(n.bounds.left+.39694*m,n.bounds.top+.5649*m),new ns(n.bounds.left+.72983*m,n.bounds.top+.23*m),new ns(n.bounds.left+.84*m,n.bounds.top+.34085*m),new ns(n.bounds.left+.39363*m,n.bounds.top+.79*m)]),this.ctx.fillStyle=lt(707406591),this.ctx.fill(),this.ctx.restore(
vendor: 1,877 bytes, line 2
2)):"radio"===n.type&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+m/2,n.bounds.top+m/2,m/4,0,2*Math.PI,!0),this.ctx.fillStyle=lt(707406591),this.ctx.fill(),this.ctx.restore())),Ts(n)&&n.value.length){switch(this.ctx.font=this.createFontStyle(c)[0],this.ctx.fillStyle=lt(c.color),this.ctx.textBaseline="middle",this.ctx.textAlign=ks(n.styles.textAlign),w=ys(n),y=0,n.styles.textAlign){case qn.CENTER:y+=w.width/2;break;case qn.RIGHT:y+=w.width}v=w.add(y,0,0,-w.height/2+1),this.ctx.save(),this.path([new ns(w.left,w.top),new ns(w.left+w.width,w.top),new ns(w.left+w.width,w.top+w.height),new ns(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Hr(n.value,v),c.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!Ir(n.styles.display,2048))return[3,20];if(null===n.styles.listStyleImage)return[3,19];if((img=n.styles.listStyleImage).type!==vt.URL)return[3,18];image=void 0,_=img.url,o.label=15;case 15:return o.trys.push([15,17,,18]),[4,this.options.cache.match(_)];case 16:return image=o.sent(),this.ctx.drawImage(image,n.bounds.left-(image.width+10),n.bounds.top),[3,18];case 17:return o.sent(),Ut.getInstance(this.options.id).error("Error loading list-style-image "+_),[3,18];case 18:return[3,20];case 19:t.listValue&&n.styles.listStyleType!==Fn.NONE&&(this.ctx.font=this.createFontStyle(c)[0],this.ctx.fillStyle=lt(c.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new l(n.bounds.left,n.bounds.top+et(n.styles.paddingTop,n.bounds.width),n.bounds.width,function(e,t){return ze(e)&&"normal"===e.value?1.2*t:e.type===A.NUMBER_TOKEN?t*e.number:$e(e)?et(e,t):t}(c.lineHeight,c.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Hr(t.listValue,w),c.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),o.label=20;case 20:return[2]}}
vendor: 1,472 bytes, line 2
2))}))},e.prototype.renderStackContent=function(e){return r(this,void 0,void 0,(function(){var t,n,r,l,c,h,d,f,m,A,y,v,_,w,x;return o(this,(function(o){switch(o.label){case 0:return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:o.sent(),t=0,n=e.negativeZIndex,o.label=2;case 2:return t<n.length?(x=n[t],[4,this.renderStack(x)]):[3,5];case 3:o.sent(),o.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:o.sent(),r=0,l=e.nonInlineLevel,o.label=7;case 7:return r<l.length?(x=l[r],[4,this.renderNode(x)]):[3,10];case 8:o.sent(),o.label=9;case 9:return r++,[3,7];case 10:c=0,h=e.nonPositionedFloats,o.label=11;case 11:return c<h.length?(x=h[c],[4,this.renderStack(x)]):[3,14];case 12:o.sent(),o.label=13;case 13:return c++,[3,11];case 14:d=0,f=e.nonPositionedInlineLevel,o.label=15;case 15:return d<f.length?(x=f[d],[4,this.renderStack(x)]):[3,18];case 16:o.sent(),o.label=17;case 17:return d++,[3,15];case 18:m=0,A=e.inlineLevel,o.label=19;case 19:return m<A.length?(x=A[m],[4,this.renderNode(x)]):[3,22];case 20:o.sent(),o.label=21;case 21:return m++,[3,19];case 22:y=0,v=e.zeroOrAutoZIndexOrTransformedOrOpacity,o.label=23;case 23:return y<v.length?(x=v[y],[4,this.renderStack(x)]):[3,26];case 24:o.sent(),o.label=25;case 25:return y++,[3,23];case 26:_=0,w=e.positiveZIndex,o.label=27;case 27:return _<w.length?(x=w[_],[4,this.renderStack(x)]):[3,30];case 28:o.sent(),o.label=29;case 29:return _++,[3,27];case 30:return[2]}}
vendor: 4,102 bytes, line 2
2))}))},e.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},e.prototype.formatPath=function(e){var t=this;e.forEach((function(e,n){var r=ss(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),ss(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)}))},e.prototype.renderRepeat=function(path,pattern,e,t){this.path(path),this.ctx.fillStyle=pattern,this.ctx.translate(e,t),this.ctx.fill(),this.ctx.translate(-e,-t)},e.prototype.resizeImage=function(image,e,t){if(image.width===e&&image.height===t)return image;var canvas=this.canvas.ownerDocument.createElement("canvas");return canvas.width=e,canvas.height=t,canvas.getContext("2d").drawImage(image,0,0,image.width,image.height,0,0,e,t),canvas},e.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,(function(){var t,n,r,l,c,h;return o(this,(function(d){switch(d.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var image,l,c,h,d,f,m,A,y,v,canvas,_,w,pattern,x,path,E,C,S,T,B,k,I,M,P,D,U,O,F,R,N;return o(this,(function(o){switch(o.label){case 0:if(n.type!==vt.URL)return[3,5];image=void 0,l=n.url,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,r.options.cache.match(l)];case 2:return image=o.sent(),[3,4];case 3:return o.sent(),Ut.getInstance(r.options.id).error("Error loading background-image "+l),[3,4];case 4:return image&&(c=vs(e,t,[image.width,image.height,image.width/image.height]),path=c[0],k=c[1],I=c[2],S=c[3],T=c[4],pattern=r.ctx.createPattern(r.resizeImage(image,S,T),"repeat"),r.renderRepeat(path,pattern,k,I)),[3,6];case 5:n.type===vt.LINEAR_GRADIENT?(h=vs(e,t,[null,null,null]),path=h[0],k=h[1],I=h[2],S=h[3],T=h[4],d=St(n.angle,S,T),f=d[0],m=d[1],A=d[2],y=d[3],v=d[4],(canvas=document.createElement("canvas")).width=S,canvas.height=T,_=canvas.getContext("2d"),w=_.createLinearGradient(m,y,A,v),Ct(n.stops,f).forEach((function(e){return w.addColorStop(e.stop,lt(e.color))})),_.fillStyle=w,_.fillRect(0,0,S,T),S>0&&T>0&&(pattern=r.ctx.createPattern(canvas,"repeat"),r.renderRepeat(path,pattern,k,I))):function(e){return e.type===vt.RADIAL_GRADIENT}(n)&&(x=vs(e,t,[null,null,null]),path=x[0],E=x[1],C=x[2],S=x[3],T=x[4],B=0===n.position.length?[Xe]:n.position,k=et(B[0],S),I=et(B[B.length-1],T),M=function(e,t,n,r,o){var l=0,c=0;switch(e.size){case bt.CLOSEST_SIDE:e.shape===_t.CIRCLE?l=c=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-o)):e.shape===_t.ELLIPSE&&(l=Math.min(Math.abs(t),Math.abs(t-r)),c=Math.min(Math.abs(n),Math.abs(n-o)));break;case bt.CLOSEST_CORNER:if(e.shape===_t.CIRCLE)l=c=Math.min(Tt(t,n),Tt(t,n-o),Tt(t-r,n),Tt(t-r,n-o));else if(e.shape===_t.ELLIPSE){var h=Math.min(Math.abs(n),Math.abs(n-o))/Math.min(Math.abs(t),Math.abs(t-r)),d=Bt(r,o,t,n,!0),f=d[0],m=d[1];c=h*(l=Tt(f-t,(m-n)/h))}break;case bt.FARTHEST_SIDE:e.shape===_t.CIRCLE?l=c=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-o)):e.shape===_t.ELLIPSE&&(l=Math.max(Math.abs(t),Math.abs(t-r)),c=Math.max(Math.abs(n),Math.abs(n-o)));break;case bt.FARTHEST_CORNER:if(e.shape===_t.CIRCLE)l=c=Math.max(Tt(t,n),Tt(t,n-o),Tt(t-r,n),Tt(t-r,n-o));else if(e.shape===_t.ELLIPSE){h=Math.max(Math.abs(n),Math.abs(n-o))/Math.max(Math.abs(t),Math.abs(t-r));var A=Bt(r,o,t,n,!1);f=A[0],m=A[1],c=h*(l=Tt(f-t,(m-n)/h))}}return Array.isArray(e.size)&&(l=et(e.size[0],r),c=2===e.size.length?et(e.size[1],o):l),[l,c]}(n,k,I,S,T),P=M[0],D=M[1],P>0&&P>0&&(U=r.ctx.createRadialGradient(E+k,C+I,0,E+k,C+I,P),Ct(n.stops,2*P).forEach((function(e){return U.addColorStop(e.stop,lt(e.color))})),r.path(path),r.ctx.fillStyle=U,P!==D?(O=e.bounds.left+.5*e.bounds.width,F=e.bounds.top+.5*e.bounds.height,N=1/(R=D/P),r.ctx.save(),r.ctx.translate(O,F),r.ctx.transform(1,0,0,R,0,0),r.ctx.translate(-O,-F),r.ctx.fillRect(E,N*(C-F)+F,S,T*N),r.ctx.restore(
2)):r.ctx.fill())),o.label=6;case 6:return t--,[2]}}))},r=this,l=0,c=e.styles.backgroundImage.slice(0).reverse(),d.label=1;case 1:return l<c.length?(h=c[l],[5,n(h)]):[3,4];case 2:d.sent(),d.label=3;case 3:return l++,[3,1];case 4:return[2]}}))}))},e.prototype.renderBorder=function(e,t,n){return r(this,void 0,void 0,(function(){return o(this,(function(r){return this.path(function(e,t){switch(t){case 0:return As(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return As(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return As(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return As(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}}(n,t)),this.ctx.fillStyle=lt(e),this.ctx.fill(),[2]}))}))},e.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,(function(){var t,n,r,l,c,h,d,f,m=this;return o(this,(function(o){switch(o.label){case 0:return this.applyEffects(e.effects,2),t=e.container.styles,n=!ot(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor},{style:t.borderRightStyle,color:t.borderRightColor},{style:t.borderBottomStyle,color:t.borderBottomColor},{style:t.borderLeftStyle,color:t.borderLeftColor}],l=Bs(xs(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(l),this.ctx.clip(),ot(t.backgroundColor)||(this.ctx.fillStyle=lt(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:o.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(shadow){m.ctx.save();var path,t,n,r,o,l=ls(e.curves),c=shadow.inset?0:1e4,h=(path=l,t=-c+(shadow.inset?1:-1)*shadow.spread.number,n=(shadow.inset?1:-1)*shadow.spread.number,r=shadow.spread.number*(shadow.inset?-2:2),o=shadow.spread.number*(shadow.inset?-2:2),path.map((function(e,l){switch(l){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+o);case 3:return e.add(t,n+o)}return e})));shadow.inset?(m.path(l),m.ctx.clip(),m.mask(h)):(m.mask(l),m.ctx.clip(),m.path(h)),m.ctx.shadowOffsetX=shadow.offsetX.number+c,m.ctx.shadowOffsetY=shadow.offsetY.number,m.ctx.shadowColor=lt(shadow.color),m.ctx.shadowBlur=shadow.blur.number,m.ctx.fillStyle=shadow.inset?lt(shadow.color):"rgba(0,0,0,1)",m.ctx.fill(),m.ctx.restore()})),o.label=2;case 2:c=0,h=0,d=r,o.label=3;case 3:return h<d.length?(f=d[h]).style===tn.NONE||ot(f.color)?[3,5]:[4,this.renderBorder(f.color,c,e.curves)]:[3,7];case 4:o.sent(),o.label=5;case 5:c++,o.label=6;case 6:return h++,[3,3];case 7:return[2]}}
2))}))},e.prototype.render=function(element){return r(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=lt(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),n=new ps(element,[]),r=new ds(n),fs(n,r,r,o=[]),ms(n.container,o),e=r,[4,this.renderStack(e)];case 1:return t.sent(),this.applyEffects([],2),[2,this.canvas]}var n,r,o}))}))},e}(),Ts=function(e){return e instanceof ai||e instanceof si||e instanceof ii&&"radio"!==e.type&&"checkbox"!==e.type},Bs=function(e,t){switch(e){case mt.BORDER_BOX:return ls(t);case mt.CONTENT_BOX:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);case mt.PADDING_BOX:default:return cs(t)}},ks=function(e){switch(e){case qn.CENTER:return"center";case qn.RIGHT:return"right";case qn.LEFT:default:return"left"}},Is=function(){function e(e){this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),Ut.getInstance(e.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.render=function(element){return r(this,void 0,void 0,(function(){var svg,img;return o(this,(function(e){switch(e.label){case 0:return svg=Mt(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,element),[4,Ms(svg)];case 1:return img=e.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=lt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(img,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},e}(),Ms=function(svg){return new Promise((function(e,t){var img=new Image;img.onload=function(){e(img)},img.onerror=t,img.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(svg))}))},Ps=function(e){return at(Re.create(e).parseComponentValue())};Ot.setContext(window);var Ds=function(element,e){return r(void 0,void 0,void 0,(function(){var t,r,h,d,f,m,A,y,v,_,w,x,E,C,S,T,B,k,I,M,P,canvas,D;return o(this,(function(o){switch(o.label){case 0:if(!(t=element.ownerDocument))throw new Error("Element is not attached to a Document");if(!(r=t.defaultView))throw new Error("Document is not attached to a Window");return h=(Math.round(1e3*Math.random())+Date.now()).toString(16),d=xi(element)||"HTML"===element.tagName?function(e){var body=e.body,t=e.documentElement;if(!body||!t)throw new Error("Unable to get document size");var n=Math.max(Math.max(body.scrollWidth,t.scrollWidth),Math.max(body.offsetWidth,t.offsetWidth),Math.max(body.clientWidth,t.clientWidth)),r=Math.max(Math.max(body.scrollHeight,t.scrollHeight),Math.max(body.offsetHeight,t.offsetHeight),Math.max(body.clientHeight,t.clientHeight));return new l(0,0,n,r)}(t):c(element),f=d.width,m=d.height,A=d.left,y=d.top,v=n({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},e),_={backgroundColor:"#ffffff",cache:e.cache?e.cache:Ot.create(h,v),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:r.devicePixelRatio||1,windowWidth:r.innerWidth,windowHeight:r.innerHeight,scrollX:r.pageXOffset,scrollY:r.pageYOffset,x:A,y:y,width:Math.ceil(f),height:Math.ceil(m),id:h},w=n({},_,v,e),x=new l(w.scrollX,w.scrollY,w.windowWidth,w.windowHeight),Ut.create({id:h,enabled:w.logging}),Ut.getInstance(h).debug("Starting document clone"),E=new Qi(element,{id:h,onclone:w.onclone,ignoreElements:w.ignoreElements,inlineImages:w.foreignObjectRendering,copyStyles:w.foreignObjectRendering}),(C=E.clonedReferenceElement)?[4,E.toIFrame(t,x)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return S=o.sent(),T=t.documentElement?Ps(getComputedStyle(t.documentElement).backgroundColor):yt.TRANSPARENT,B=t.body?Ps(getComputedStyle(t.body).backgroundColor):yt.TRANSPARENT,k=e.backgroundColor,I="str
2ing"==typeof k?Ps(k):null===k?yt.TRANSPARENT:4294967295,M=element===t.documentElement?ot(T)?ot(B)?I:B:T:I,P={id:h,cache:w.cache,canvas:w.canvas,backgroundColor:M,scale:w.scale,x:w.x,y:w.y,scrollX:w.scrollX,scrollY:w.scrollY,width:w.width,height:w.height,windowWidth:w.windowWidth,windowHeight:w.windowHeight},w.foreignObjectRendering?(Ut.getInstance(h).debug("Document cloned, using foreign object rendering"),[4,new Is(P).render(C)]):[3,3];case 2:return canvas=o.sent(),[3,5];case 3:return Ut.getInstance(h).debug("Document cloned, using computed rendering"),Ot.attachInstance(w.cache),Ut.getInstance(h).debug("Starting DOM parsing"),D=pi(C),Ot.detachInstance(),M===D.styles.backgroundColor&&(D.styles.backgroundColor=yt.TRANSPARENT),Ut.getInstance(h).debug("Starting renderer"),[4,new Ss(P).render(D)];case 4:canvas=o.sent(),o.label=5;case 5:return!0===w.removeContainer&&(Qi.destroy(S)||Ut.getInstance(h).error("Cannot detach cloned iframe as it is not in the DOM anymore")),Ut.getInstance(h).debug("Finished rendering"),Ut.destroy(h),Ot.destroy(h),[2,canvas]}}))}))};return function(element,e){return void 0===e&&(e={}),Ds(element,e)}}()},3635:function(e,t,n){var r,o;!function(l,c){if(null===(typeof window!=="undefined"?window:null))throw new Error("Google-maps package can be used only in browser");void 0===(o="function"==typeof(r=function(){"use strict";var script=null,e=null,t=!1,n=[],r=[],o=null,l={URL:"https://maps.googleapis.com/maps/api/js",KEY:null,LIBRARIES:[],CLIENT:null,CHANNEL:null,LANGUAGE:null,REGION:null};l.VERSION="3.31",l.WINDOW_CALLBACK_NAME="__google_maps_api_provider_initializator__",l._googleMockApiObject={},l.load=function(r){null===e?!0===t?r&&n.push(r):(t=!0,window[l.WINDOW_CALLBACK_NAME]=function(){c(r)},l.createLoader()):r&&r(e)},l.createLoader=function(){(script=document.createElement("script")).type="text/javascript",script.src=l.createUrl(),document.body.appendChild(script)},l.isLoaded=function(){return null!==e},l.createUrl=function(){var e=l.URL;return e+="?callback="+l.WINDOW_CALLBACK_NAME,l.KEY&&(e+="&key="+l.KEY),l.LIBRARIES.length>0&&(e+="&libraries="+l.LIBRARIES.join(",")),l.CLIENT&&(e+="&client="+l.CLIENT),l.CHANNEL&&(e+="&channel="+l.CHANNEL),l.LANGUAGE&&(e+="&language="+l.LANGUAGE),l.REGION&&(e+="®ion="+l.REGION),l.VERSION&&(e+="&v="+l.VERSION),e},l.release=function(c){var h=function(){l.KEY=null,l.LIBRARIES=[],l.CLIENT=null,l.CHANNEL=null,l.LANGUAGE=null,l.REGION=null,l.VERSION="3.31",e=null,t=!1,n=[],r=[],void 0!==window.google&&delete window.google,void 0!==window[l.WINDOW_CALLBACK_NAME]&&delete window[l.WINDOW_CALLBACK_NAME],null!==o&&(l.createLoader=o,o=null),null!==script&&(script.parentElement.removeChild(script),script=null),c&&c()};t?l.load((function(){h()})):h()},l.onLoad=function(e){r.push(e)},l.makeMock=function(){o=l.createLoader,l.createLoader=function(){window.google=l._googleMockApiObject,window[l.WINDOW_CALLBACK_NAME]()}};var c=function(o){var i;for(t=!1,null===e&&(e=window.google),i=0;i<r.length;i++)r[i](e);for(o&&o(e),i=0;i<n.length;i++)n[i](e);n=[]};return l})?r.call(t,n,t,e):r)||(e.exports=o)}()},3901:function(e,t,n){!function(t,n){var r,o,l=t.html5||{},c=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,h=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,d=0,f={};function m(){var e=_.elements;return"string"==typeof e?e.split(" "):e}function A(e){var data=f[e._html5shiv];return data||(data={},d++,e._html5shiv=d,f[d]=data),data}function y(e,t,data){return t||(t=n),o?t.createElement(e):(data||(data=A(t)),!(r=data.cache[e]?data.cache[e].cloneNode():h.test(e)?(data.cache[e]=data.createElem(e)).cloneNode():data.createElem(e)).canHaveChildren||c.test(e)||r.tagUrn?r:data.frag.appendChild(r));var r}function v(e){e||(e=n);var data=A(e);return!_.shivCSS||r||data.hasCSS||(data.hasCSS=!!function(e,t){var p=e.createElement("p"),n=e.getElementsByTagName("head")[0]||e.documentElement;return p.innerHTML="x<style>"+t+"</style>",n.insertBefore(p.lastChild,n.firstChild)}(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{dis
vendor: 30,895 bytes, line 2
2play:block}mark{background:#FF0;color:#000}template{display:none}")),o||function(e,data){data.cache||(data.cache={},data.createElem=e.createElement,data.createFrag=e.createDocumentFragment,data.frag=data.createFrag()),e.createElement=function(t){return _.shivMethods?y(t,e,data):data.createElem(t)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-:]+/g,(function(e){return data.createElem(e),data.frag.createElement(e),'c("'+e+'")'}))+");return n}")(_,data.frag)}(e,data),e}!function(){try{var a=n.createElement("a");a.innerHTML="<xyz></xyz>",r="hidden"in a,o=1==a.childNodes.length||function(){n.createElement("a");var e=n.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){r=!0,o=!0}}();var _={elements:l.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3-pre",shivCSS:!1!==l.shivCSS,supportsUnknownElements:o,shivMethods:!1!==l.shivMethods,type:"default",shivDocument:v,createElement:y,createDocumentFragment:function(e,data){if(e||(e=n),o)return e.createDocumentFragment();for(var t=(data=data||A(e)).frag.cloneNode(),i=0,r=m(),l=r.length;i<l;i++)t.createElement(r[i]);return t},addElements:function(e,t){var n=_.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),_.elements=n+" "+e,v(t)}};t.html5=_,v(n),e.exports&&(e.exports=_)}("undefined"!=typeof window?window:this,document)},3903:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},t=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(source).filter((function(e){return Object.getOwnPropertyDescriptor(source,e).enumerable})))),t.forEach((function(t){l(e,t,source[t])}))}return e}n.r(t);var h=new(function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.language=t,this.months=n,this.monthsAbbr=r,this.days=o,this.rtl=!1,this.ymd=!1,this.yearSuffix=""}var t,n,r;return t=e,(n=[{key:"language",get:function(){return this._language},set:function(e){if("string"!=typeof e)throw new TypeError("Language must be a string");this._language=e}},{key:"months",get:function(){return this._months},set:function(e){if(12!==e.length)throw new RangeError("There must be 12 months for ".concat(this.language," language"));this._months=e}},{key:"monthsAbbr",get:function(){return this._monthsAbbr},set:function(e){if(12!==e.length)throw new RangeError("There must be 12 abbreviated months for ".concat(this.language," language"));this._monthsAbbr=e}},{key:"days",get:function(){return this._days},set:function(e){if(7!==e.length)throw new RangeError("There must be 7 days for ".concat(this.language," language"));this._days=e}}])&&o(t.prototype,n),r&&o(t,r),e}())("English",["January","February","March","April","May","June","July","August","September","October","November","December"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),d={useUtc:!1,getFullYear:function(e){return this.useUtc?e.getUTCFullYear():e.getFullYear()},getMonth:function(e){return this.useUtc?e.getUTCMonth():e.getMonth()},getDate:function(e){return this.useUtc?e.getUTCDate():e.getDate()},getDay:function(e){return this.useUtc?e.getUTCDay():e.getDay()},getHours:function(e){return this.useUtc?e.getUTCHours():e.getHours()},getMinutes:function(e){return this.useUtc?e.getUTCMinutes():e.getMinutes()},setFullYear:function(e,t,n){return this.useUtc?e.setUTCFullYear(t):e.setFullYear(t)},setMonth:function(e,t,n){return this.useUtc?e.setUTCMonth(t):e.setMonth(t)},setDate:function(e,t,n){return this.useUtc?e.setUTCDate(t):e.setDate(t)},compareDates:function(e,t){var n=new Date(e.getTime()),r=new Date(t.getTime());return this.useUtc?(n.setUTCHours(0,0,0,0),r.setUTCHours(0,0,0,0)):(n.setHours(0,0,0,0),r.setHours(0,0,0,0)),n.getTime()===r.getTime()},isValidDate:function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},getDayNameAbbr:function(e,t){if("object"!==r(e))throw TypeError("Invalid Type");return t[this.getDay(e)]},getMonthName:function(e,t){if(!t)throw Error("missing 2nd parameter Months array");if("object"===r(e))return t[this.getMonth(e)];if("number"==typeof e)return t[e];throw TypeError("Invalid type")},getMonthNameAbbr:function(e,t){if(!t)throw Error("missing 2nd paramter Months array");if("object"===r(e))return t[this.getMonth(e)];if("number"==typeof e)return t[e];throw TypeError("Invalid type")},daysInMonth:function(e,t){return/8|3|5|10/.test(t)?30:1===t?(e%4||!(e%100))&&e%400?28:29:31},getNthSuffix:function(e){switch(e){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},formatDate:function(e,t,n){n=n||h;var r=this.getFullYear(e),o=this.getMonth(e)+1,l=this.getDate(e);return t.replace(/dd/,("0"+l).slice(-2)).replace(/d/,l).replace(/yyyy/,r).replace(/yy/,String(r).slice(2)).replace(/MMMM/,this.getMonthName(this.getMonth(e),n.months)).replace(/MMM/,this.getMonthNameAbbr(this.getMonth(e),n.monthsAbbr)).replace(/MM/,("0"+o).slice(-2)).replace(/M(?!a|ä|e)/,o).replace(/su/,this.getNthSuffix(this.getDate(e))).replace(/D(?!e|é|i)/,this.getDayNameAbbr(e,n.days))},createDateArray:function(e,t){for(var n=[];e<=t;)n.push(new Date(e)),e=this.setDate(new Date(e),this.getDate(new Date(e))+1);return n},validateDateInput:function(e){return null===e||e instanceof Date||"string"==typeof e||"number"==typeof e}},f=function(e){return c({},d,{useUtc:e})},m=c({},d);var A=function(template,style,script,e,t,n,r,o,l,c){"boolean"!=typeof r&&(l=o,o=r,r=!1);var h,d="function"==typeof script?script.options:script;if(template&&template.render&&(d.render=template.render,d.staticRenderFns=template.staticRenderFns,d._compiled=!0,t&&(d.functional=!0)),e&&(d._scopeId=e),n?(h=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),style&&style.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(n)},d._ssrRegister=h):style&&(h=r?function(){style.call(this,c(this.$root.$options.shadowRoot))}:function(e){style.call(this,o(e))}),h)if(d.functional){var f=d.render;d.render=function(e,t){return h.call(t),f(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,h):[h]}return script};const y={props:{selectedDate:Date,resetTypedDate:[Date],format:[String,Function],translation:Object,inline:Boolean,id:String,name:String,refName:String,openDate:Date,placeholder:String,inputClass:[String,Object,Array],clearButton:Boolean,clearButtonIcon:String,calendarButton:Boolean,calendarButtonIcon:String,calendarButtonIconContent:String,disabled:Boolean,required:Boolean,typeable:Boolean,bootstrapStyling:Boolean,useUtc:Boolean},data:function(){return{input:null,typedDate:!1,utils:f(this.useUtc)}},computed:{formattedValue:function(){return this.selectedDate?this.typedDate?this.typedDate:"function"==typeof this.format?this.format(this.selectedDate):this.utils.formatDate(new Date(this.selectedDate),this.format,this.translation):null},computedInputClass:function(){return this.bootstrapStyling?"string"==typeof this.inputClass?[this.inputClass,"form-control"].join(" "):c({"form-control":!0},this.inputClass):this.inputClass}},watch:{resetTypedDate:function(){this.typedDate=!1}},methods:{showCalendar:function(){this.$emit("showCalendar")},parseTypedDate:function(e){if([27,13].includes(e.keyCode)&&this.input.blur(),this.typeable){var t=Date.parse(this.input.value);isNaN(t)||(this.typedDate=this.input.value,this.$emit("typedDate",new Date(this.typedDate)))}},inputBlurred:function(){this.typeable&&isNaN(Date.parse(this.input.value))&&(this.clearDate(),this.input.value=null,this.typedDate=null),this.$emit("closeCalendar")},clearDate:function(){this.$emit("clearDate")}},mounted:function(){this.input=this.$el.querySelector("input")}};var v=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"input-group":e.bootstrapStyling}},[e.calendarButton?n("span",{staticClass:"vdp-datepicker__calendar-button",class:{"input-group-prepend":e.bootstrapStyling},style:{"cursor:not-allowed;":e.disabled},on:{click:e.showCalendar}},[n("span",{class:{"input-group-text":e.bootstrapStyling}},[n("i",{class:e.calendarButtonIcon},[e._v("\n "+e._s(e.calendarButtonIconContent)+"\n "),e.calendarButtonIcon?e._e():n("span",[e._v("â¦")])])])]):e._e(),e._v(" "),n("input",{ref:e.refName,class:e.computedInputClass,attrs:{type:e.inline?"hidden":"text",name:e.name,id:e.id,"open-date":e.openDate,placeholder:e.placeholder,"clear-button":e.clearButton,disabled:e.disabled,required:e.required,readonly:!e.typeable,autocomplete:"off"},domProps:{value:e.formattedValue},on:{click:e.showCalendar,keyup:e.parseTypedDate,blur:e.inputBlurred}}),e._v(" "),e.clearButton&&e.selectedDate?n("span",{staticClass:"vdp-datepicker__clear-button",class:{"input-group-append":e.bootstrapStyling},on:{click:function(t){return e.clearDate()}}},[n("span",{class:{"input-group-text":e.bootstrapStyling}},[n("i",{class:e.clearButtonIcon},[e.clearButtonIcon?e._e():n("span",[e._v("Ã")])])])]):e._e(),e._v(" "),e._t("afterDateInput")],2)};v._withStripped=!0;var _=A({render:v,staticRenderFns:[]},void 0,y,void 0,!1,void 0,void 0,void 0);const w={props:{showDayView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,fullMonthName:Boolean,allowedToShowView:Function,dayCellContent:{type:Function,default:function(e){return e.date}},disabledDates:Object,highlighted:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,mondayFirst:Boolean,useUtc:Boolean},data:function(){return{utils:f(this.useUtc)}},computed:{daysOfWeek:function(){if(this.mondayFirst){var e=this.translation.days.slice();return e.push(e.shift()),e}return this.translation.days},blankDays:function(){var e=this.pageDate,t=this.useUtc?new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)):new Date(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes());return this.mondayFirst?this.utils.getDay(t)>0?this.utils.getDay(t)-1:6:this.utils.getDay(t)},days:function(){for(var e=this.pageDate,t=[],n=this.useUtc?new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)):new Date(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes()),r=this.utils.daysInMonth(this.utils.getFullYear(n),this.utils.getMonth(n)),i=0;i<r;i++)t.push({date:this.utils.getDate(n),timestamp:n.getTime(),isSelected:this.isSelectedDate(n),isDisabled:this.isDisabledDate(n),isHighlighted:this.isHighlightedDate(n),isHighlightStart:this.isHighlightStart(n),isHighlightEnd:this.isHighlightEnd(n),isToday:this.utils.compareDates(n,new Date),isWeekend:0===this.utils.getDay(n)||6===this.utils.getDay(n),isSaturday:6===this.utils.getDay(n),isSunday:0===this.utils.getDay(n)}),this.utils.setDate(n,this.utils.getDate(n)+1);return t},currMonthName:function(){var e=this.fullMonthName?this.translation.months:this.translation.monthsAbbr;return this.utils.getMonthNameAbbr(this.utils.getMonth(this.pageDate),e)},currYearName:function(){var e=this.translation.yearSuffix;return"".concat(this.utils.getFullYear(this.pageDate)).concat(e)},isYmd:function(){return this.translation.ymd&&!0===this.translation.ymd},isLeftNavDisabled:function(){return this.isRtl?this.isNextMonthDisabled(this.pageTimestamp):this.isPreviousMonthDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousMonthDisabled(this.pageTimestamp):this.isNextMonthDisabled(this.pageTimestamp)}},methods:{selectDate:function(e){if(e.isDisabled)return this.$emit("selectedDisabled",e),!1;this.$emit("selectDate",e)},getPageMonth:function(){return this.utils.getMonth(this.pageDate)},showMonthCalendar:function(){this.$emit("showMonthCalendar")},changeMonth:function(e){var t=this.pageDate;this.utils.setMonth(t,this.utils.getMonth(t)+e),this.$emit("changedMonth",t)},previousMonth:function(){this.isPreviousMonthDisabled()||this.changeMonth(-1)},isPreviousMonthDisabled:function(){if(!this.disabledDates||!this.disabledDates.to)return!1;var e=this.pageDate;return this.utils.getMonth(this.disabledDates.to)>=this.utils.getMonth(e)&&this.utils.getFullYear(this.disabledDates.to)>=this.utils.getFullYear(e)},nextMonth:function(){this.isNextMonthDisabled()||this.changeMonth(1)},isNextMonthDisabled:function(){if(!this.disabledDates||!this.disabledDates.from)return!1;var e=this.pageDate;return this.utils.getMonth(this.disabledDates.from)<=this.utils.getMonth(e)&&this.utils.getFullYear(this.disabledDates.from)<=this.utils.getFullYear(e)},isSelectedDate:function(e){return this.selectedDate&&this.utils.compareDates(this.selectedDate,e)},isDisabledDate:function(e){var t=this,n=!1;return void 0!==this.disabledDates&&(void 0!==this.disabledDates.dates&&this.disabledDates.dates.forEach((function(r){if(t.utils.compareDates(e,r))return n=!0,!0})),void 0!==this.disabledDates.to&&this.disabledDates.to&&e<this.disabledDates.to&&(n=!0),void 0!==this.disabledDates.from&&this.disabledDates.from&&e>this.disabledDates.from&&(n=!0),void 0!==this.disabledDates.ranges&&this.disabledDates.ranges.forEach((function(t){if(void 0!==t.from&&t.from&&void 0!==t.to&&t.to&&e<t.to&&e>t.from)return n=!0,!0})),void 0!==this.disabledDates.days&&-1!==this.disabledDates.days.indexOf(this.utils.getDay(e))&&(n=!0),void 0!==this.disabledDates.daysOfMonth&&-1!==this.disabledDates.daysOfMonth.indexOf(this.utils.getDate(e))&&(n=!0),"function"==typeof this.disabledDates.customPredictor&&this.disabledDates.customPredictor(e)&&(n=!0),n)},isHighlightedDate:function(e){var t=this;if((!this.highlighted||!this.highlighted.includeDisabled)&&this.isDisabledDate(e))return!1;var n=!1;return void 0!==this.highlighted&&(void 0!==this.highlighted.dates&&this.highlighted.dates.forEach((function(r){if(t.utils.compareDates(e,r))return n=!0,!0})),this.isDefined(this.highlighted.from)&&this.isDefined(this.highlighted.to)&&(n=e>=this.highlighted.from&&e<=this.highlighted.to),void 0!==this.highlighted.days&&-1!==this.highlighted.days.indexOf(this.utils.getDay(e))&&(n=!0),void 0!==this.highlighted.daysOfMonth&&-1!==this.highlighted.daysOfMonth.indexOf(this.utils.getDate(e))&&(n=!0),"function"==typeof this.highlighted.customPredictor&&this.highlighted.customPredictor(e)&&(n=!0),n)},dayClasses:function(e){return{selected:e.isSelected,disabled:e.isDisabled,highlighted:e.isHighlighted,today:e.isToday,weekend:e.isWeekend,sat:e.isSaturday,sun:e.isSunday,"highlight-start":e.isHighlightStart,"highlight-end":e.isHighlightEnd}},isHighlightStart:function(e){return this.isHighlightedDate(e)&&this.highlighted.from instanceof Date&&this.utils.getFullYear(this.highlighted.from)===this.utils.getFullYear(e)&&this.utils.getMonth(this.highlighted.from)===this.utils.getMonth(e)&&this.utils.getDate(this.highlighted.from)===this.utils.getDate(e)},isHighlightEnd:function(e){return this.isHighlightedDate(e)&&this.highlighted.to instanceof Date&&this.utils.getFullYear(this.highlighted.to)===this.utils.getFullYear(e)&&this.utils.getMonth(this.highlighted.to)===this.utils.getMonth(e)&&this.utils.getDate(this.highlighted.to)===this.utils.getDate(e)},isDefined:function(e){return void 0!==e&&e}}};var x=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showDayView,expression:"showDayView"}],class:[e.calendarClass,"vdp-datepicker__calendar"],style:e.calendarStyle,on:{mousedown:function(e){e.preventDefault()}}},[e._t("beforeCalendarHeader"),e._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:e.isLeftNavDisabled},on:{click:function(t){e.isRtl?e.nextMonth():e.previousMonth()}}},[e._v("<")]),e._v(" "),n("span",{staticClass:"day__month_btn",class:e.allowedToShowView("month")?"up":"",on:{click:e.showMonthCalendar}},[e._v(e._s(e.isYmd?e.currYearName:e.currMonthName)+" "+e._s(e.isYmd?e.currMonthName:e.currYearName))]),e._v(" "),n("span",{staticClass:"next",class:{disabled:e.isRightNavDisabled},on:{click:function(t){e.isRtl?e.previousMonth():e.nextMonth()}}},[e._v(">")])]),e._v(" "),n("div",{class:e.isRtl?"flex-rtl":""},[e._l(e.daysOfWeek,(function(t){return n("span",{key:t.timestamp,staticClass:"cell day-header"},[e._v(e._s(t))])})),e._v(" "),e.blankDays>0?e._l(e.blankDays,(function(e){return n("span",{key:e.timestamp,staticClass:"cell day blank"})})):e._e(),e._l(e.days,(function(t){return n("span",{key:t.timestamp,staticClass:"cell day",class:e.dayClasses(t),domProps:{innerHTML:e._s(e.dayCellContent(t))},on:{click:function(n){return e.selectDate(t)}}})}))],2)],2)};x._withStripped=!0;var E=A({render:x,staticRenderFns:[]},void 0,w,void 0,!1,void 0,void 0,void 0);const C={props:{showMonthView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,disabledDates:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,allowedToShowView:Function,useUtc:Boolean},data:function(){return{utils:f(this.useUtc)}},computed:{months:function(){for(var e=this.pageDate,t=[],n=this.useUtc?new Date(Date.UTC(e.getUTCFullYear(),0,e.getUTCDate())):new Date(e.getFullYear(),0,e.getDate(),e.getHours(),e.getMinutes()),i=0;i<12;i++)t.push({month:this.utils.getMonthName(i,this.translation.months),timestamp:n.getTime(),isSelected:this.isSelectedMonth(n),isDisabled:this.isDisabledMonth(n)}),this.utils.setMonth(n,this.utils.getMonth(n)+1);return t},pageYearName:function(){var e=this.translation.yearSuffix;return"".concat(this.utils.getFullYear(this.pageDate)).concat(e)},isLeftNavDisabled:function(){return this.isRtl?this.isNextYearDisabled(this.pageTimestamp):this.isPreviousYearDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousYearDisabled(this.pageTimestamp):this.isNextYearDisabled(this.pageTimestamp)}},methods:{selectMonth:function(e){if(e.isDisabled)return!1;this.$emit("selectMonth",e)},changeYear:function(e){var t=this.pageDate;this.utils.setFullYear(t,this.utils.getFullYear(t)+e),this.$emit("changedYear",t)},previousYear:function(){this.isPreviousYearDisabled()||this.changeYear(-1)},isPreviousYearDisabled:function(){return!(!this.disabledDates||!this.disabledDates.to)&&this.utils.getFullYear(this.disabledDates.to)>=this.utils.getFullYear(this.pageDate)},nextYear:function(){this.isNextYearDisabled()||this.changeYear(1)},isNextYearDisabled:function(){return!(!this.disabledDates||!this.disabledDates.from)&&this.utils.getFullYear(this.disabledDates.from)<=this.utils.getFullYear(this.pageDate)},showYearCalendar:function(){this.$emit("showYearCalendar")},isSelectedMonth:function(e){return this.selectedDate&&this.utils.getFullYear(this.selectedDate)===this.utils.getFullYear(e)&&this.utils.getMonth(this.selectedDate)===this.utils.getMonth(e)},isDisabledMonth:function(e){var t=!1;return void 0!==this.disabledDates&&(void 0!==this.disabledDates.to&&this.disabledDates.to&&(this.utils.getMonth(e)<this.utils.getMonth(this.disabledDates.to)&&this.utils.getFullYear(e)<=this.utils.getFullYear(this.disabledDates.to)||this.utils.getFullYear(e)<this.utils.getFullYear(this.disabledDates.to))&&(t=!0),void 0!==this.disabledDates.from&&this.disabledDates.from&&(this.utils.getMonth(e)>this.utils.getMonth(this.disabledDates.from)&&this.utils.getFullYear(e)>=this.utils.getFullYear(this.disabledDates.from)||this.utils.getFullYear(e)>this.utils.getFullYear(this.disabledDates.from))&&(t=!0),"function"==typeof this.disabledDates.customPredictor&&this.disabledDates.customPredictor(e)&&(t=!0),t)}}};var S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showMonthView,expression:"showMonthView"}],class:[e.calendarClass,"vdp-datepicker__calendar"],style:e.calendarStyle,on:{mousedown:function(e){e.preventDefault()}}},[e._t("beforeCalendarHeader"),e._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:e.isLeftNavDisabled},on:{click:function(t){e.isRtl?e.nextYear():e.previousYear()}}},[e._v("<")]),e._v(" "),n("span",{staticClass:"month__year_btn",class:e.allowedToShowView("year")?"up":"",on:{click:e.showYearCalendar}},[e._v(e._s(e.pageYearName))]),e._v(" "),n("span",{staticClass:"next",class:{disabled:e.isRightNavDisabled},on:{click:function(t){e.isRtl?e.previousYear():e.nextYear()}}},[e._v(">")])]),e._v(" "),e._l(e.months,(function(t){return n("span",{key:t.timestamp,staticClass:"cell month",class:{selected:t.isSelected,disabled:t.isDisabled},on:{click:function(n){return n.stopPropagation(),e.selectMonth(t)}}},[e._v(e._s(t.month))])}))],2)};S._withStripped=!0;var T=A({render:S,staticRenderFns:[]},void 0,C,void 0,!1,void 0,void 0,void 0);const B={props:{showYearView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,disabledDates:Object,highlighted:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,allowedToShowView:Function,useUtc:Boolean},computed:{years:function(){for(var e=this.pageDate,t=[],n=this.useUtc?new Date(Date.UTC(10*Math.floor(e.getUTCFullYear()/10),e.getUTCMonth(),e.getUTCDate())):new Date(10*Math.floor(e.getFullYear()/10),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes()),i=0;i<10;i++)t.push({year:this.utils.getFullYear(n),timestamp:n.getTime(),isSelected:this.isSelectedYear(n),isDisabled:this.isDisabledYear(n)}),this.utils.setFullYear(n,this.utils.getFullYear(n)+1);return t},getPageDecade:function(){var e=10*Math.floor(this.utils.getFullYear(this.pageDate)/10),t=e+9,n=this.translation.yearSuffix;return"".concat(e," - ").concat(t).concat(n)},isLeftNavDisabled:function(){return this.isRtl?this.isNextDecadeDisabled(this.pageTimestamp):this.isPreviousDecadeDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousDecadeDisabled(this.pageTimestamp):this.isNextDecadeDisabled(this.pageTimestamp)}},data:function(){return{utils:f(this.useUtc)}},methods:{selectYear:function(e){if(e.isDisabled)return!1;this.$emit("selectYear",e)},changeYear:function(e){var t=this.pageDate;this.utils.setFullYear(t,this.utils.getFullYear(t)+e),this.$emit("changedDecade",t)},previousDecade:function(){if(this.isPreviousDecadeDisabled())return!1;this.changeYear(-10)},isPreviousDecadeDisabled:function(){return!(!this.disabledDates||!this.disabledDates.to)&&this.utils.getFullYear(this.disabledDates.to)>10*Math.floor(this.utils.getFullYear(this.pageDate)/10)-1},nextDecade:function(){if(this.isNextDecadeDisabled())return!1;this.changeYear(10)},isNextDecadeDisabled:function(){return!(!this.disabledDates||!this.disabledDates.from)&&this.utils.getFullYear(this.disabledDates.from)<10*Math.ceil(this.utils.getFullYear(this.pageDate)/10)},isSelectedYear:function(e){return this.selectedDate&&this.utils.getFullYear(this.selectedDate)===this.utils.getFullYear(e)},isDisabledYear:function(e){var t=!1;return!(void 0===this.disabledDates||!this.disabledDates)&&(void 0!==this.disabledDates.to&&this.disabledDates.to&&this.utils.getFullYear(e)<this.utils.getFullYear(this.disabledDates.to)&&(t=!0),void 0!==this.disabledDates.from&&this.disabledDates.from&&this.utils.getFullYear(e)>this.utils.getFullYear(this.disabledDates.from)&&(t=!0),"function"==typeof this.disabledDates.customPredictor&&this.disabledDates.customPredictor(e)&&(t=!0),t)}}};var k=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showYearView,expression:"showYearView"}],class:[e.calendarClass,"vdp-datepicker__calendar"],style:e.calendarStyle,on:{mousedown:function(e){e.preventDefault()}}},[e._t("beforeCalendarHeader"),e._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:e.isLeftNavDisabled},on:{click:function(t){e.isRtl?e.nextDecade():e.previousDecade()}}},[e._v("<")]),e._v(" "),n("span",[e._v(e._s(e.getPageDecade))]),e._v(" "),n("span",{staticClass:"next",class:{disabled:e.isRightNavDisabled},on:{click:function(t){e.isRtl?e.previousDecade():e.nextDecade()}}},[e._v(">")])]),e._v(" "),e._l(e.years,(function(t){return n("span",{key:t.timestamp,staticClass:"cell year",class:{selected:t.isSelected,disabled:t.isDisabled},on:{click:function(n){return n.stopPropagation(),e.selectYear(t)}}},[e._v(e._s(t.year))])}))],2)};k._withStripped=!0;var I={components:{DateInput:_,PickerDay:E,PickerMonth:T,PickerYear:A({render:k,staticRenderFns:[]},void 0,B,void 0,!1,void 0,void 0,void 0)},props:{value:{validator:function(e){return m.validateDateInput(e)}},name:String,refName:String,id:String,format:{type:[String,Function],default:"dd MMM yyyy"},language:{type:Object,default:function(){return h}},openDate:{validator:function(e){return m.validateDateInput(e)}},dayCellContent:Function,fullMonthName:Boolean,disabledDates:Object,highlighted:Object,placeholder:String,inline:Boolean,calendarClass:[String,Object,Array],inputClass:[String,Object,Array],wrapperClass:[String,Object,Array],mondayFirst:Boolean,clearButton:Boolean,clearButtonIcon:String,calendarButton:Boolean,calendarButtonIcon:String,calendarButtonIconContent:String,bootstrapStyling:Boolean,initialView:String,disabled:Boolean,required:Boolean,typeable:Boolean,useUtc:Boolean,minimumView:{type:String,default:"day"},maximumView:{type:String,default:"year"}},data:function(){var e=this.openDate?new Date(this.openDate):new Date,t=f(this.useUtc);return{pageTimestamp:t.setDate(e,1),selectedDate:null,showDayView:!1,showMonthView:!1,showYearView:!1,calendarHeight:0,resetTypedDate:new Date,utils:t}},watch:{value:function(e){this.setValue(e)},openDate:function(){this.setPageDate()},initialView:function(){this.setInitialView()}},computed:{computedInitialView:function(){return this.initialView?this.initialView:this.minimumView},pageDate:function(){return new Date(this.pageTimestamp)},translation:function(){return this.language},calendarStyle:function(){return{position:this.isInline?"static":void 0}},isOpen:function(){return this.showDayView||this.showMonthView||this.showYearView},isInline:function(){return!!this.inline},isRtl:function(){return!0===this.translation.rtl}},methods:{resetDefaultPageDate:function(){null!==this.selectedDate?this.setPageDate(this.selectedDate):this.setPageDate()},showCalendar:function(){return!this.disabled&&!this.isInline&&(this.isOpen?this.close(!0):void this.setInitialView())},setInitialView:function(){var e=this.computedInitialView;if(!this.allowedToShowView(e))throw new Error("initialView '".concat(this.initialView,"' cannot be rendered based on minimum '").concat(this.minimumView,"' and maximum '").concat(this.maximumView,"'"));switch(e){case"year":this.showYearCalendar();break;case"month":this.showMonthCalendar();break;default:this.showDayCalendar()}},allowedToShowView:function(view){var e=["day","month","year"],t=e.indexOf(this.minimumView),n=e.indexOf(this.maximumView),r=e.indexOf(view);return r>=t&&r<=n},showDayCalendar:function(){return!!this.allowedToShowView("day")&&(this.close(),this.showDayView=!0,!0)},showMonthCalendar:function(){return!!this.allowedToShowView("month")&&(this.close(),this.showMonthView=!0,!0)},showYearCalendar:function(){return!!this.allowedToShowView("year")&&(this.close(),this.showYearView=!0,!0)},setDate:function(e){var t=new Date(e);this.selectedDate=t,this.setPageDate(t),this.$emit("selected",t),this.$emit("input",t)},clearDate:function(){this.selectedDate=null,this.setPageDate(),this.$emit("selected",null),this.$emit("input",null),this.$emit("cleared")},selectDate:function(e){this.setDate(e.timestamp),this.isInline||this.close(!0),this.resetTypedDate=new Date},selectDisabledDate:function(e){this.$emit("selectedDisabled",e)},selectMonth:function(e){var t=new Date(e.timestamp);this.allowedToShowView("day")?(this.setPageDate(t),this.$emit("changedMonth",e),this.showDayCalendar()):this.selectDate(e)},selectYear:function(e){var t=new Date(e.timestamp);this.allowedToShowView("month")?(this.setPageDate(t),this.$emit("changedYear",e),this.showMonthCalendar()):this.selectDate(e)},setValue:function(e){if("string"==typeof e||"number"==typeof e){var t=new Date(e);e=isNaN(t.valueOf())?null:t}if(!e)return this.setPageDate(),void(this.selectedDate=null);this.selectedDate=e,this.setPageDate(e)},setPageDate:function(e){e||(e=this.openDate?new Date(this.openDate):new Date),this.pageTimestamp=this.utils.setDate(new Date(e),1)},handleChangedMonthFromDayPicker:function(e){this.setPageDate(e),this.$emit("changedMonth",e)},setTypedDate:function(e){this.setDate(e.getTime())},close:function(e){this.showDayView=this.showMonthView=this.showYearView=!1,this.isInline||(e&&this.$emit("closed"),document.removeEventListener("click",this.clickOutside,!1))},init:function(){this.value&&this.setValue(this.value),this.isInline&&this.setInitialView()}},mounted:function(){this.init()}},M="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var P=document.head||document.getElementsByTagName("head")[0],D={};var U=function(e){return function(e,style){return function(e,t){var n=M?t.media||"default":e,style=D[n]||(D[n]={ids:new Set,styles:[]});if(!style.ids.has(e)){style.ids.add(e);var code=t.source;if(t.map&&(code+="\n/*# sourceURL="+t.map.sources[0]+" */",code+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),style.element||(style.element=document.createElement("style"),style.element.type="text/css",t.media&&style.element.setAttribute("media",t.media),P.appendChild(style.element)),"styleSheet"in style.element)style.styles.push(code),style.element.styleSheet.cssText=style.styles.filter(Boolean).join("\n");else{var r=style.ids.size-1,o=document.createTextNode(code),l=style.element.childNodes;l[r]&&style.element.removeChild(l[r]),l.length?style.element.insertBefore(o,l[r]):style.element.appendChild(o)}}}(e,style)}};const O=I;var F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vdp-datepicker",class:[e.wrapperClass,e.isRtl?"rtl":""]},[n("date-input",{attrs:{selectedDate:e.selectedDate,resetTypedDate:e.resetTypedDate,format:e.format,translation:e.translation,inl
2ine:e.inline,id:e.id,name:e.name,refName:e.refName,openDate:e.openDate,placeholder:e.placeholder,inputClass:e.inputClass,typeable:e.typeable,clearButton:e.clearButton,clearButtonIcon:e.clearButtonIcon,calendarButton:e.calendarButton,calendarButtonIcon:e.calendarButtonIcon,calendarButtonIconContent:e.calendarButtonIconContent,disabled:e.disabled,required:e.required,bootstrapStyling:e.bootstrapStyling,"use-utc":e.useUtc},on:{showCalendar:e.showCalendar,closeCalendar:e.close,typedDate:e.setTypedDate,clearDate:e.clearDate}},[e._t("afterDateInput",null,{slot:"afterDateInput"})],2),e._v(" "),e.allowedToShowView("day")?n("picker-day",{attrs:{pageDate:e.pageDate,selectedDate:e.selectedDate,showDayView:e.showDayView,fullMonthName:e.fullMonthName,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,highlighted:e.highlighted,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,pageTimestamp:e.pageTimestamp,isRtl:e.isRtl,mondayFirst:e.mondayFirst,dayCellContent:e.dayCellContent,"use-utc":e.useUtc},on:{changedMonth:e.handleChangedMonthFromDayPicker,selectDate:e.selectDate,showMonthCalendar:e.showMonthCalendar,selectedDisabled:e.selectDisabledDate}},[e._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):e._e(),e._v(" "),e.allowedToShowView("month")?n("picker-month",{attrs:{pageDate:e.pageDate,selectedDate:e.selectedDate,showMonthView:e.showMonthView,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,isRtl:e.isRtl,"use-utc":e.useUtc},on:{selectMonth:e.selectMonth,showYearCalendar:e.showYearCalendar,changedYear:e.setPageDate}},[e._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):e._e(),e._v(" "),e.allowedToShowView("year")?n("picker-year",{attrs:{pageDate:e.pageDate,selectedDate:e.selectedDate,showYearView:e.showYearView,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,isRtl:e.isRtl,"use-utc":e.useUtc},on:{selectYear:e.selectYear,changedDecade:e.setPageDate}},[e._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):e._e()],1)};F._withStripped=!0;var R=A({render:F,staticRenderFns:[]},(function(e){e&&e("data-v-64ca2bb5_0",{source:".rtl {\n direction: rtl;\n}\n.vdp-datepicker {\n position: relative;\n text-align: left;\n}\n.vdp-datepicker * {\n box-sizing: border-box;\n}\n.vdp-datepicker__calendar {\n position: absolute;\n z-index: 100;\n background: #fff;\n width: 300px;\n border: 1px solid #ccc;\n}\n.vdp-datepicker__calendar header {\n display: block;\n line-height: 40px;\n}\n.vdp-datepicker__calendar header span {\n display: inline-block;\n text-align: center;\n width: 71.42857142857143%;\n float: left;\n}\n.vdp-datepicker__calendar header .prev,\n.vdp-datepicker__calendar header .next {\n width: 14.285714285714286%;\n float: left;\n text-indent: -10000px;\n position: relative;\n}\n.vdp-datepicker__calendar header .prev:after,\n.vdp-datepicker__calendar header .next:after {\n
2content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n border: 6px solid transparent;\n}\n.vdp-datepicker__calendar header .prev:after {\n border-right: 10px solid #000;\n margin-left: -5px;\n}\n.vdp-datepicker__calendar header .prev.disabled:after {\n border-right: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .next:after {\n border-left: 10px solid #000;\n margin-left: 5px;\n}\n.vdp-datepicker__calendar header .next.disabled:after {\n border-left: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled),\n.vdp-datepicker__calendar header .next:not(.disabled),\n.vdp-datepicker__calendar header .up:not(.disabled) {\n cursor: pointer;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled):hover,\n.vdp-datepicker__calendar header .next:not(.disabled):hover,\n.vdp-datepicker__calendar header .up:not(.disabled):hover {\n background: #eee;\n}\n.vdp-datepicker__calendar .disabled {\n color: #ddd;\n cursor: default;\n}\n.vdp-datepicker__calendar .flex-rtl {\n display: flex;\n width: inherit;\n flex-wrap: wrap;\n}\n.vdp-datepicker__calendar .cell {\n display: inline-block;\n padding: 0 5px;\n width: 14.285714285714286%;\n height: 40px;\n line-height: 40px;\n text-align: center;\n vertical-align: middle;\n border: 1px solid transparent;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year {\n cursor: pointer;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover {\n border: 1px solid #4bd;\n}\n.vdp-datepicker__calendar .cell.selected {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected:hover {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected.highlighted {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.highlighted {\n background: #cae5ed;\n}\n.vdp-datepicker__calendar .cell.highlighted.disabled {\n color: #a3a3a3;\n}\n.vdp-datepicker__calendar .cell.grey {\n color: #888;\n}\n.vdp-datepicker__calendar .cell.grey:hover {\n background: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header {\n font-size: 75%;\n white-space: nowrap;\n cursor: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header:hover {\n background: inherit;\n}\n.vdp-datepicker__calendar .month,\n.vdp-datepicker__calendar .year {\n width: 33.333%;\n}\n.vdp-datepicker__clear-button,\n.vdp-datepicker__calendar-button {\n cursor: pointer;\n font-style: normal;\n}\n.vdp-datepicker__clear-button.disabled,\n.vdp-datepicker__calendar-button.disabled {\n color: #999;\n cursor: default;\n}\n",map:{version:3,sources:["Datepicker.vue"],names:[],mappings:"AAAA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,gBAAgB;EAChB,YAAY;EACZ,sBAAsB;AACxB;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,yBAAyB;EACzB,WAAW;AACb;AACA;;EAEE,0BAA0B;EAC1B,WAAW;EACX,qBAAqB;EACrB,kBAAkB;AACpB;AACA;;EAEE,WAAW;EACX,kBAAkB;EAClB,SAAS;EACT,QAAQ;EACR,4CAA4C;EAC5C,6BAA6B;AAC/B;AACA;EACE,6BAA6B;EAC7B,iBAAiB;AACnB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,4BAA4B;EAC5B,gBAAgB;AAClB;AACA;EACE,4BAA4B;AAC9B;AACA;;;EAGE,eAAe;AACjB;AACA;;;EAGE,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,eAAe;AACjB;AACA;EACE,aAAa;EACb,cAAc;EACd,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,cAAc;EACd,0BAA0B;EAC1B,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,sBAAsB;EACtB,6BAA6B;AAC/B;AACA;;;EAGE,eAAe;AACjB;AACA;;;EAGE,sBAAsB;AACxB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,cAAc;AAChB;AACA;;EAEE,eAAe;EACf,kBAAkB;AACpB;AACA;;EAEE,WAAW;EACX,eAAe;AACjB",file:"Datepicker.vue",sourcesContent:[".rtl {\n direction: rtl;\n}\n.vdp-datepicker {\n position: relative;\n text-align: left;\n}\n.vdp-datepicker * {\n box-sizing: border-box;\n}\n.vdp-datepicker__calendar {\n position: absolute;\n z-index: 100;\n background: #fff;\n width: 300px;\n border: 1px solid #ccc;\n}\n.vdp-datepicker__calendar header {\n display: block;\n line-height: 40px;\n}\n.vdp-datepicker__calendar header span {\n display: inline-block;\n text-align: center;\n width: 71.42857142857143%;\n float: left;\n}\n.vdp-datepicker__calendar header .prev,\n.vdp-datepicker__calendar header .next {\n width: 14.28571428571428
26%;\n float: left;\n text-indent: -10000px;\n position: relative;\n}\n.vdp-datepicker__calendar header .prev:after,\n.vdp-datepicker__calendar header .next:after {\n content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n border: 6px solid transparent;\n}\n.vdp-datepicker__calendar header .prev:after {\n border-right: 10px solid #000;\n margin-left: -5px;\n}\n.vdp-datepicker__calendar header .prev.disabled:after {\n border-right: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .next:after {\n border-left: 10px solid #000;\n margin-left: 5px;\n}\n.vdp-datepicker__calendar header .next.disabled:after {\n border-left: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled),\n.vdp-datepicker__calendar header .next:not(.disabled),\n.vdp-datepicker__calendar header .up:not(.disabled) {\n cursor: pointer;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled):hover,\n.vdp-datepicker__calendar header .next:not(.disabled):hover,\n.vdp-datepicker__calendar header .up:not(.disabled):hover {\n background: #eee;\n}\n.vdp-datepicker__calendar .disabled {\n color: #ddd;\n cursor: default;\n}\n.vdp-datepicker__calendar .flex-rtl {\n display: flex;\n width: inherit;\n flex-wrap: wrap;\n}\n.vdp-datepicker__calendar .cell {\n display: inline-block;\n padding: 0 5px;\n width: 14.285714285714286%;\n height: 40px;\n line-height: 40px;\n text-align: center;\n vertical-align: middle;\n border: 1px solid transparent;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year {\n cursor: pointer;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover {\n border: 1px solid #4bd;\n}\n.vdp-datepicker__calendar .cell.selected {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected:hover {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected.highlighted {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.highlighted {\n background: #cae5ed;\n}\n.vdp-datepicker__calendar .cell.highlighted.disabled {\n color: #a3a3a3;\n}\n.vdp-datepicker__calendar .cell.grey {\n color: #888;\n}\n.vdp-datepicker__calendar .cell.grey:hover {\n background: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header {\n font-size: 75%;\n white-space: nowrap;\n cursor: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header:hover {\n background: inherit;\n}\n.vdp-datepicker__calendar .month,\n.vdp-datepicker__calendar .year {\n width: 33.333%;\n}\n.vdp-datepicker__clear-button,\n.vdp-datepicker__calendar-button {\n cursor: pointer;\n font-style: normal;\n}\n.vdp-datepicker__clear-button.disabled,\n.vdp-datepicker__calendar-button.disabled {\n color: #999;\n cursor: default;\n}\n"]},media:void 0})}),O,void 0,!1,void 0,U,void 0);t.default=R},3904:function(e,t,n){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var t=new(function(){function t(e,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.language=e,this.months=n,this.monthsAbbr=r,this.days=o,this.rtl=!1,this.ymd=!1,this.yearSuffix=""}var n,r;return n=t,(r=[{key:"language",get:function(){return this._language},set:function(e){if("string"!=typeof e)throw new TypeError("Language must be a string");this._language=e}},{key:"months",get:function(){return this._months},set:function(e){if(12!==e.length)throw new RangeError("There must be 12 months for ".concat(this.language," language"));this._months=e}},{key:"monthsAbbr",get:function(){return this._monthsAbbr},set:function(e){if(12!==e.length)throw new RangeError("There must be 12 abbreviated months for ".concat(this.language," language"));this._monthsAbbr=e}},{key:"days",get:function(){return this._days}
2,set:function(e){if(7!==e.length)throw new RangeError("There must be 7 days for ".concat(this.language," language"));this._days=e}}])&&e(n.prototype,r),t}())("Hebrew",["×× ××ר","פ×ר××ר","×רץ","×פר××","×××","××× ×","××××","××××ס×","ספ×××ר","×××§×××ר","× ××××ר","×צ××ר"],["×× ×","פ×ר","×רץ","×פר","×××","××× ","×××","×××","ספ×","×××§","× ××","×צ×"],["×","×","×","×","×","×","ש"]);return t.rtl=!0,t}()},3906:function(e,t,n){e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={name:"he",weekdays:"ר×ש××_×©× ×_ש××ש×_ר×××¢×_×××ש×_ש×ש×_ש×ת".split("_"),weekdaysShort:"×׳_×׳_×׳_×׳_×׳_×׳_ש׳".split("_"),weekdaysMin:"×׳_×׳_×׳_×׳_×׳_×_ש׳".split("_"),months:"×× ××ר_פ×ר××ר_×רץ_×פר××_×××_××× ×_××××_××××ס×_ספ×××ר_×××§×××ר_× ××××ר_×צ××ר".split("_"),monthsShort:"×× ×_פ×ר_×רץ_×פר_×××_××× _×××_×××_ספ×_×××§_× ××_×צ×".split("_"),relativeTime:{future:"××¢×× %s",past:"××¤× × %s",s:"××× ×©× ××ת",m:"××§×",mm:"%d ××§×ת",h:"שע×",hh:"%d שע×ת",d:"×××",dd:"%d ××××",M:"×××ש",MM:"%d ×××ש××",y:"×©× ×",yy:"%d ×©× ××"},ordinal:function(e){return e},format:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [×]MMMM YYYY",LLL:"D [×]MMMM YYYY HH:mm",LLLL:"dddd, D [×]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [×]MMMM YYYY",LLL:"D [×]MMMM YYYY HH:mm",LLLL:"dddd, D [×]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"}};return e.locale(t,null,!0),t}(n(1626))},3908:function(e,t,n){e.exports=function(){"use strict";function e(e,t,s){return e<t?t:e>s?s:e}var t=function(){function e(){var s=t.shift();s&&s(e)}var t=[];return function(s){t.push(s),1===t.length&&e()}}(),s={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("transition",{attrs:{css:!1},on:{"before-enter":e.beforeEnter,enter:e.enter,"after-enter":e.afterEnter}},[e.show?s("div",{staticClass:"top-progress",style:e.barStyle},[s("div",{staticClass:"peg",style:e.pegStyle})]):e._e()])},staticRenderFns:[],name:"vueTopprogress",data:function(){return{error:!1,show:!1,progress:0,opacity:1,status:null,isPaused:!1}},props:{speed:{type:Number,default:350},color:{type:String,default:"#29d"},colorShadow:String,errorColor:{type:String,default:"#f44336"},trickle:{type:Boolean,default:!0},trickleSpeed:{type:Number,default:250},easing:{type:String,default:"linear"},height:{type:Number,default:3},minimum:{type:Number,default:.8},maximum:{type:Number,default:97.5},zIndex:{type:Number,default:9999}},computed:{progressColor:function(){return this.error?this.errorColor:this.color},isStarted:function(){return"number"==typeof this.status},boxShadow:function(){return this.colorShadow||this.progressColor},barStyle:function(){return{position:"fixed",top:"0",left:"0",right:"0",width:this.progress+"%",height:this.height+"px",backgroundColor:this.progressColor,transition:"all "+this.speed+"ms "+this.easing,opacity:""+this.opacity,zIndex:""+this.zIndex}},pegStyle:function(){return{display:"block",position:"absolute",right:"0",width:"100px",height:"100%",opacity:this.progress?"1":"0",boxShadow:"0 0 10px "+this.boxShadow+", 0 0 5px "+this.boxShadow,transform:"rotate(3deg) translate(0px, -4px)"}}},methods:{beforeEnter:function(e){this.opacity=0,this.progress=0,this.width=0},enter:function(e,t){this.opacity=1,t()},afterEnter:function(e){this._runStart()},_work:function(){var e=this;setTimeout((function(){e.isStarted&&!e.isPaused&&(e.increase(),e._work())}),this.trickleSpeed)},_runStart:function(){this.status=100===this.progress?null:this.progress,this.trickle&&this._work()},start:function(){this.isPaused=!1,this.show?this._runStart():this.show=!0},set:function(s){var i,n=this;this.isPaused=!1,i=this.isStarted?s<this.progress?e(s,0,100):e(s,this.minimum,100):0,this.status=100===i?null:i,t((function(e){n.progress=i,100===i?setTimeout((function(){n.opacity=0,setTimeout((function(){n.show=!1,n.error=!1,e()}),n.speed)}),n.speed):setTimeout(e,n.speed)}))},increase:function(t){var s=this.progress;s<100&&"number"!=typeof t&&(t=s>=0&&s<25?3*Math.random()+3:s>=25&&s<50?3*Math.random():s>=50&&s<85?2*Math.random():s>=85&&s<99?.5:0),this.set(e(s+t,0,this.maximum))},decrease:function(e){0!==this.progress&&this.increase(-e)},done:function(){this.set(100)},getProgress:function(){return this.status?this.progress:0},pause:function(){this.isPaused=!0},fail:function(){this.error=!0,this.done()}}},n=function e(t){e.installed||t.component(s.name,s)};return"undefined"!=typeof window&&window.Vue&&n(window.Vue),{vueTopprogress:s,install:n}}()},3910:function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n(18),function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"091b":function(e,t,n){(t=n("24fb")(!1)).push([e.i,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""]),e.exports=t},"24fb":function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}(r),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=r(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},2638:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}var o=["attrs","props","domProps"],i=["class","style","directives"],a=["on","nativeOn"],u=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};e.exports=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==o.indexOf(n))e[n]=r({},e[n],t[n]);else if(-1!==i.indexOf(n)){var s=e[n]instanceof Array?e[n]:[e[n]],l=t[n]instanceof Array?t[n]:[t[n]];e[n]=s.concat(l)}else if(-1!==a.indexOf(n))for(var c in t[n])if(e[n][c]){var h=e[n][c]instanceof Array?e[n][c]:[e[n][c]],d=t[n][c]instanceof Array?t[n][c]:[t[n][c]];e[n][c]=h.concat(d)}else e[n][c]=t[n][c];else if("hook"==n)for(var f in t[n])e[n][f]=e[n][f]?u(e[n][f],t[n][f]):t[n][f];else e[n]=t[n];else e[n]=t[n];return e}),{})}},"499e":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=i[0],l={id:e+":"+o,css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}n.r(t),n.d(t,"default",(function(){return p}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,u=0,l=!1,c=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,n,o){l=n,h=o||{};var a=r(e,t);return m(a),function(t){for(var n=[],o=0;o<a.length;o++){var s=a[o],u=i[s.id];u.refs--,n.push(u)}for(t?m(a=r(e,t)):a=[],o=0;o<n.length;o++)if(0===(u=n[o]).refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();
2delete i[u.id]}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(y(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(y(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:a}}}}function A(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function y(e){var t,n,r=document.querySelector("style["+d+'~="'+e.id+'"]');if(r){if(l)return c;r.parentNode.removeChild(r)}if(f){var o=u++;r=s||(s=A()),t=g.bind(null,r,o,!1),n=g.bind(null,r,o,!0)}else r=A(),t=v.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function g(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function v(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),h.ssrId&&e.setAttribute(d,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},"4abb":function(e,t,n){var r=n("7a57");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n("499e").default)("b2af7572",r,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(e,t,n){var r=n("091b");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n("499e").default)("2f6bee1a",r,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(e,t,n){var r=n("eef2");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n("499e").default)("1209fd47",r,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&"object"==typeof e&&"default"in e?e.default:e}(n("8bbf")),i="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function a(e,t){s(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(n){s(e.prototype,t.prototype,n)})),Object.getOwnPropertyNames(t).forEach((function(n){s(e,t,n)}))}function s(e,t,n){(n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t)).forEach((function(r){var o=n?Reflect.getOwnMetadata(r,t,n):Reflect.getOwnMetadata(r,t);n?Reflect.defineMetadata(r,o,e,n):Reflect.defineMetadata(r,o,e)}))}var o={__proto__:[]}instanceof Array,p=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function l(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach((function(e){if("constructor"!==e)if(p.indexOf(e)>-1)t[e]=n[e];else{var r=Object.getOwnPropertyDescriptor(n,e);void 0!==r.value?"function"==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(t.mixins||(t.mixins=[])).push({data:function(){var t;return(t={})[e]=r.value,t}}):(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return function(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||n.push(r);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var r=new t;t.prototype._init=n;var o={};return Object.keys(r).forEach((function(e){void 0!==r[e]&&(o[e]=r[e])})),o}(this,e)}});var o=e.__decorators__;o&&(o.forEach((function(e){return e(t)})),delete e.__decorators__);var s=Object.getPrototypeOf(e.prototype),u=s instanceof r?s.constructor:r,l=u.extend(t);return c(l,e,u),i&&a(l,e),l}
2function c(e,t,n){Object.getOwnPropertyNames(t).forEach((function(r){if("prototype"!==r){var l=Object.getOwnPropertyDescriptor(e,r);if(!l||l.configurable){var i=Object.getOwnPropertyDescriptor(t,r);if(!o){if("cid"===r)return;var a=Object.getOwnPropertyDescriptor(n,r);if(!function(e){var t=typeof e;return null==e||"object"!==t&&"function"!==t}(i.value)&&a&&a.value===i.value)return}Object.defineProperty(e,r,i)}}}))}function h(e){return"function"==typeof e?l(e):function(t){return l(t,e)}}h.registerHooks=function(e){p.push.apply(p,e)},t.default=h,t.createDecorator=function(e){return function(t,n,r){var o="function"==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof r&&(r=void 0),o.__decorators__.push((function(t){return e(t,n,r)}))}},t.mixins=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.extend({mixins:e})}},"7a57":function(e,t,n){(t=n("24fb")(!1)).push([e.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""]),e.exports=t},8875:function(e,t,n){var r,o,i;"undefined"!=typeof self&&self,o=[],void 0===(i="function"==typeof(r=function(){return 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(e){var n,r,o,s=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(e.stack),u=s&&s[1]||!1,l=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),h=document.getElementsByTagName("script");u===c&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var d=0;d<h.length;d++){if("interactive"===h[d].readyState)return h[d];if(h[d].src===u)return h[d];if(u===c&&h[d].innerHTML&&h[d].innerHTML.trim()===o)return h[d]}return null}}})?r.apply(t,o):r)||(e.exports=i)},"8bbf":function(e,t){e.exports=r},eef2:function(e,t,n){(t=n("24fb")(!1)).push([e.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""]),e.exports=t},fb15:function(e,t,n){"use strict";if(n.r(t),n.d(t,"ERROR_TYPE",(function(){return R})),n.d(t,"VueSliderMark",(function(){return D})),n.d(t,"VueSliderDot",(function(){return E})),"undefined"!=typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=n("2638"),s=n.n(a);function u(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var l=n("8bbf"),c=n.n(l),h=n("65d9"),d=n.n(h);function f(e,t){return void 0===t&&(t={}),Object(h.createDecorator)((function(n,r){(n.props||(n.props={}))[r]=t,n.model={prop:r,event:e||r}}))}function p(e){return void 0===e&&(e={}),Object(h.createDecorator)((function(t,n){(t.props||(t.props={}))[n]=e}))}function m(e,t){void 0===t&&(t={});var n=t.deep,r=void 0!==n&&n,o=t.immediate,i=void 0!==o&&o;return Object(h.createDecorator)((function(t,n){"object"!=typeof t.watch&&(t.watch=Object.create(null));var o=t.watch;"object"!=typeof o[e]||Array.isArray(o[e])?void 0===o[e]&&(o[e]=[]):o[e]=[o[e]],o[e].push({handler:n,deep:r,immediate:i})}))}function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x(e);if(t){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==A(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}
2function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n("4ed8");var E=function(){var e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(n,e);var t=_(n);function n(){return y(this,n),t.apply(this,arguments)}return function(e,t,n){t&&b(e.prototype,t),n&&b(e,n)}(n,[{key:"dragStart",value:function(e){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var e=arguments[0];return e("div",{ref:"dot",class:this.dotClasses,attrs:{"aria-valuetext":this.tooltipValue},on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||e("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?e("div",{class:this.tooltipClasses},[this.$slots.tooltip||e("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[e("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-hover":"hover"===this.tooltip||"active"===this.tooltip,"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":case"active":return!!this.focus;default:return!1}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}]),n}(c.a);return u([p({default:0})],e.prototype,"value",void 0),u([p()],e.prototype,"tooltip",void 0),u([p()],e.prototype,"dotStyle",void 0),u([p()],e.prototype,"tooltipStyle",void 0),u([p({type:String,validator:function(e){return["top","right","bottom","left"].indexOf(e)>-1},required:!0})],e.prototype,"tooltipPlacement",void 0),u([p({type:[String,Function]})],e.prototype,"tooltipFormatter",void 0),u([p({type:Boolean,default:!1})],e.prototype,"focus",void 0),u([p({default:!1})],e.prototype,"disabled",void 0),e=u([d.a],e)}();function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M(e);if(t){var o=M(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n("556c");var P,D=function(){var e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(n,e);var t=k(n);function n(){return S(this,n),t.apply(this,arguments)}return function(e,t,n){t&&T(e.prototype,t),n&&T(e,n)}(n,[{key:"labelClickHandle",value:function(e){e.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var e=arguments[0],t=this.mark;return e("div",{class:this.marksClasses}
2,[this.$slots.step||e("div",{class:this.stepClasses,style:[this.stepStyle,t.style,t.active?this.stepActiveStyle:null,t.active?t.activeStyle:null]}),this.hideLabel?null:this.$slots.label||e("div",{class:this.labelClasses,style:[this.labelStyle,t.labelStyle,t.active?this.labelActiveStyle:null,t.active?t.labelActiveStyle:null],on:{click:this.labelClickHandle}},[t.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),n}(c.a);return u([p({required:!0})],e.prototype,"mark",void 0),u([p(Boolean)],e.prototype,"hideLabel",void 0),u([p()],e.prototype,"stepStyle",void 0),u([p()],e.prototype,"stepActiveStyle",void 0),u([p()],e.prototype,"labelStyle",void 0),u([p()],e.prototype,"labelActiveStyle",void 0),e=u([d.a],e)}(),U=function(e){return"number"==typeof e?"".concat(e,"px"):e},O=function(e,t,n){var r="targetTouches"in e?e.targetTouches[0]:e,o=function(e){var t=document.documentElement,n=document.body,r=e.getBoundingClientRect();return{y:r.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||n.clientTop||0),x:r.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||n.clientLeft||0)}}(t),i={x:r.pageX-o.x,y:r.pageY-o.y};return{x:n?t.offsetWidth-i.x:i.x,y:n?t.offsetHeight-i.y:i.y}};function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}!function(e){e[e.PAGE_UP=33]="PAGE_UP",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN"}(P||(P={}));var F,R,N=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.num=t}return function(e,t,n){t&&q(e.prototype,t),n&&q(e,n)}(e,[{key:"decimal",value:function(e,t){var n=this.num,r=this.getDecimalLen(n),o=this.getDecimalLen(e),i=0;switch(t){case"+":i=this.getExponent(r,o),this.num=(this.safeRoundUp(n,i)+this.safeRoundUp(e,i))/i;break;case"-":i=this.getExponent(r,o),this.num=(this.safeRoundUp(n,i)-this.safeRoundUp(e,i))/i;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(r)),this.safeRoundUp(e,this.getExponent(o)))/this.getExponent(r+o);break;case"/":i=this.getExponent(r,o),this.num=this.safeRoundUp(n,i)/this.safeRoundUp(e,i);break;case"%":i=this.getExponent(r,o),this.num=this.safeRoundUp(n,i)%this.safeRoundUp(e,i)/i}return this}},{key:"plus",value:function(e){return this.decimal(e,"+")}},{key:"minus",value:function(e){return this.decimal(e,"-")}},{key:"multiply",value:function(e){return this.decimal(e,"*")}},{key:"divide",value:function(e){return this.decimal(e,"/")}},{key:"remainder",value:function(e){return this.decimal(e,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(e){var t="".concat(e).split("e");return("".concat(t[0]).split(".")[1]||"").length-(t[1]?+t[1]:0)}},{key:"getExponent",value:function(e,t){return Math.pow(10,void 0!==t?Math.max(e,t):e)}},{key:"safeRoundUp",value:function(e,t){return Math.round(e*t)}}]),e}();function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||Q(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e){return function(e){if(Array.isArray(e))return V(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){if(e){if("string"==typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.VALUE=1]="VALUE",e[e.INTERVAL=2]="INTERVAL",e[e.MIN=3]="MIN",e[e.MAX=4]="MAX",e[e.ORDER=5]="ORDER"}(R||(R={}));var K=(G(F={},R.VALUE,'The type of the "value" is illegal'),G(F,R.INTERVAL,'The prop "interval" is invali
2d, "(max - min)" must be divisible by "interval"'),G(F,R.MIN,'The "value" must be greater than or equal to the "min".'),G(F,R.MAX,'The "value" must be less than or equal to the "max".'),G(F,R.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),F),$=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.dotsPos=[],this.dotsValue=[],this.cacheRangeDir={},this.data=t.data,this.max=t.max,this.min=t.min,this.interval=t.interval,this.order=t.order,this.marks=t.marks,this.included=t.included,this.process=t.process,this.adsorb=t.adsorb,this.dotOptions=t.dotOptions,this.onError=t.onError,this.order?(this.minRange=t.minRange||0,this.maxRange=t.maxRange||0,this.enableCross=t.enableCross,this.fixed=t.fixed):((t.minRange||t.maxRange||!t.enableCross||t.fixed)&&this.emitError(R.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(t.value)}return function(e,t,n){t&&j(e.prototype,t),n&&j(e,n)}(e,[{key:"setValue",value:function(e){this.setDotsValue(Array.isArray(e)?H(e):[e],!0)}},{key:"setDotsValue",value:function(e,t){this.dotsValue=e,t&&this.syncDotsPos()}},{key:"setDotsPos",value:function(e){var t=this,n=this.order?H(e).sort((function(e,t){return e-t})):e;this.dotsPos=n,this.setDotsValue(n.map((function(e){return t.getValueByPos(e)})),this.adsorb)}},{key:"getValueByPos",value:function(e){var t=this.parsePos(e);if(this.included){var n=100;this.markList.forEach((function(r){var o=Math.abs(r.pos-e);o<n&&(n=o,t=r.value)}))}return t}},{key:"syncDotsPos",value:function(){var e=this;this.dotsPos=this.dotsValue.map((function(t){return e.parseValue(t)}))}},{key:"getRecentDot",value:function(e){var t=this.dotsPos.map((function(t){return Math.abs(t-e)}));return t.indexOf(Math.min.apply(Math,H(t)))}},{key:"getIndexByValue",value:function(e){return this.data?this.data.indexOf(e):new N(+e).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(e){return e<0?e=0:e>this.total&&(e=this.total),this.data?this.data[e]:new N(e).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(e,t){var n=(e=this.getValidPos(e,t).pos)-this.dotsPos[t];if(n){var r=new Array(this.dotsPos.length);this.fixed?r=this.getFixedChangePosArr(n,t):this.minRange||this.maxRange?r=this.getLimitRangeChangePosArr(e,n,t):r[t]=n,this.setDotsPos(this.dotsPos.map((function(e,t){return e+(r[t]||0)})))}}},{key:"getFixedChangePosArr",value:function(e,t){var n=this;return this.dotsPos.forEach((function(r,o){if(o!==t){var i=n.getValidPos(r+e,o),a=i.pos;i.inRange||(e=Math.min(Math.abs(a-r),Math.abs(e))*(e<0?-1:1))}})),this.dotsPos.map((function(t){return e}))}},{key:"getLimitRangeChangePosArr",value:function(e,t,n){var r=this,o=[{index:n,changePos:t}],i=t;return[this.minRange,this.maxRange].forEach((function(a,s){if(!a)return!1;for(var l,u=0===s,c=t>0,h=function(e,t){var n=Math.abs(e-t);return u?n<r.minRangeDir:n>r.maxRangeDir},d=n+(l=u?c?1:-1:c?-1:1),f=r.dotsPos[d],p=e;r.isPos(f)&&h(f,p);){var m=r.getValidPos(f+i,d).pos;o.push({index:d,changePos:m-f}),d+=l,p=m,f=r.dotsPos[d]}})),this.dotsPos.map((function(e,t){var n=o.filter((function(e){return e.index===t}));return n.length?n[0].changePos:0}))}},{key:"isPos",value:function(e){return"number"==typeof e}},{key:"getValidPos",value:function(e,t){var n=this.valuePosRange[t],r=!0;return e<n[0]?(e=n[0],r=!1):e>n[1]&&(e=n[1],r=!1),{pos:e,inRange:r}}},{key:"parseValue",value:function(e){if(this.data)e=this.data.indexOf(e);else if("number"==typeof e||"string"==typeof e){if((e=+e)<this.min)return this.emitError(R.MIN),0;if(e>this.max)return this.emitError(R.MAX),0;if("number"!=typeof e||e!=e)return this.emitError(R.VALUE),0;e=new N(e).minus(this.min).divide(this.interval).toNumber()}var t=new N(e).multiply(this.gap).toNumber();return t<0?0:t>100?100:t}},{key:"parsePos",value:function(e){var t=Math.round(e/this.gap);return this.getValueByIndex(t)}},{key:"isActiveByPos",value:function(e){return this.processArray.some((function(t){var n=z(t,2),r=n[0],o=n[1];return e>=r&&e<=o}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var e=[],t=0;t<=this.total;t++)e.push(new N(t).multiply(this.interval).plus(this.min).toNumber());return e}},{key:"getRangeDir",value:function(e){return e?new N(e).divide(new N(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(e){this.onError&&this.onError(e,K[e])}},{key:"getDotRange",value:function(e,t,n){if(!this.dotOptions)return n;var r=Array.isArray(this.dotOptions)?this.dotOptions[e]:this.dotOptions;return r&&void 0!==r[t]?this.parseValue(r[t]):n}},{key:"markList",get:function(){var e=this;if(!this.marks)return[];var t=function(t,n){var r=e.parseValue(t);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?L(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({pos:r,value:t,label:t,active:e.isActiveByPos(r)},n)};return!0===this.marks?this.getValues().map((function(e){return t(e)})):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort((function(e,t){return+e-+t})).map((function(n){var r=e.marks[n];return t(n,"string"!=typeof r?r:{label:r})})):Array.isArray(this.marks)?this.marks.map((function(e){return t(e)})):"function"==typeof this.marks?this.getValues().map((function(t){return{value:t,result:e.marks(t)}})).filter((function(e){return!!e.result})).map((function(e){var n=e.value,r=e.result;return t(n,r)})):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,H(this.dotsPos)),Math.max.apply(Math,H(this.dotsPos))]]}return[]}},{key:"total",get:function(){var e;return(e=this.data?this.data.length-1:new N(this.max).minus(this.min).divide(this.interval).toNumber())-Math.floor(e)!=0?(this.emitError(R.INTERVAL),0):e}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"valuePosRange",get:function(){var e=this,t=this.dotsPos,n=[];return t.forEach((function(r,o){n.push([Math.max(e.minRange?e.minRangeDir*o:0,e.enableCross?0:t[o-1]||0,e.getDotRange(o,"min",0)),Math.min(e.minRange?100-e.minRangeDir*(t.length-1-o):100,e.enableCross?100:t[o+1]||100,e.getDotRange(o,"max",100))])})),n}},{key:"dotsIndex",get:function(){var e=this;return this.dotsValue.map((function(t){return e.getIndexByValue(t)}))}}]),e}();function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var W=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.states=0,this.map=t}return function(e,t,n){t&&Y(e.prototype,t),n&&Y(e,n)}(e,[{key:"add",value:function(e){this.states|=e}},{key:"delete",value:function(e){this.states&=~e}},{key:"toggle",value:function(e){this.has(e)?this.delete(e):this.add(e)}},{key:"has",value:function(e){return!!(this.states&e)}}]),e}();function X(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||ne(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(e){return function(e){if(Array.isArray(e))return re(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ne(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e,t){if(e){if("string"==typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(e,t):void 0}}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t){return(oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ue(e);
vendor: 15,787 bytes, line 2
2if(t){var o=ue(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ce(this,n)}}function ce(e,t){return!t||"object"!==ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n("4abb");var he={None:0,Drag:2,Focus:4},de=function(){var e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oe(e,t)}(n,e);var t=le(n);function n(){var e;return se(this,n),(e=t.apply(this,arguments)).states=new W(he),e.scale=1,e.focusDotIndex=0,e}return function(e,t,n){t&&ae(e.prototype,t),n&&ae(e,n)}(n,[{key:"isObjectData",value:function(e){return!!e&&"[object Object]"===Object.prototype.toString.call(e)}},{key:"isObjectArrayData",value:function(e){return!!e&&Array.isArray(e)&&e.length>0&&"object"===ie(e[0])}},{key:"onValueChanged",value:function(){this.control&&!this.states.has(he.Drag)&&this.isNotSync&&this.control.setValue(this.value)}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){var e=new N(Math.floor(this.isHorizontal?this.$refs.rail.offsetWidth:this.$refs.rail.offsetHeight));void 0!==this.zoom&&e.multiply(this.zoom),e.divide(100),this.scale=e.toNumber()}},{key:"initControl",value:function(){var e=this;this.control=new $({value:this.value,data:this.sliderData,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.sliderMarks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(t){e.$watch(t,(function(n){if("data"===t&&Array.isArray(e.control.data)&&Array.isArray(n)&&e.control.data.length===n.length&&n.every((function(t,n){return t===e.control.data[n]})))return!1;switch(t){case"data":case"dataLabel":case"dataValue":e.control.data=e.sliderData;break;case"mark":e.control.marks=e.sliderMarks;break;default:e.control[t]=n}["data","max","min","interval"].indexOf(t)>-1&&e.control.syncDotsPos()}))}))}},{key:"syncValueByPos",value:function(){var e=this.control.dotsValue;this.isDiff(e,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===e.length?e[0]:te(e),this.focusDotIndex)}},{key:"isDiff",value:function(e,t){return e.length!==t.length||e.some((function(e,n){return e!==t[n]}))}},{key:"emitError",value:function(e,t){this.silent||console.error("[VueSlider error]: ".concat(t)),this.$emit("error",e,t)}},{key:"dragStartOnProcess",value:function(e){if(this.dragOnClick){this.setScale();var t=this.getPosByEvent(e),n=this.control.getRecentDot(t);if(this.dots[n].disabled)return;this.dragStart(n),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos()}}},{key:"dragStart",value:function(e){this.focusDotIndex=e,this.setScale(),this.states.add(he.Drag),this.states.add(he.Focus),this.$emit("drag-start",this.focusDotIndex)}},{key:"dragMove",value:function(e){if(!this.states.has(he.Drag))return!1;e.preventDefault();var t=this.getPosByEvent(e);this.isCrossDot(t),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:te(n),this.focusDotIndex)}},{key:"isCrossDot",value:function(e){if(this.canSort){var t=this.focusDotIndex,n=e;if(n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),t!==this.focusDotIndex){var r=this.$refs["dot-".concat(this.focusDotIndex)];r&&r.$el&&r.$el.focus(),this.control.setDotPos(n,t)}}}},{key:"dragEnd",value:function(e){var t=this;if(!this.states.has(he.Drag))return!1;setTimeout((function(){t.lazy&&t.syncValueByPos(),t.included&&t.isNotSync?t.control.setValue(t.value):t.control.syncDotsPos(),t.states.delete(he.Drag),t.useKeyboard&&!("targetTouches"in e)||t.states.delete(he.Focus),t.$emit("drag-end",t.focusDotIndex)}))}},{key:"blurHandle",value:function(e){if(!this.states.has(he.Focus)||!this.$refs.container||this.$refs.container.contains(e.target))return!1;this.states.delete(he.Focus)}},{key:"clickHandle",value:function(e){if(!this.clickable||this.disabled)return!1;if(!this.states.has(he.Drag)){this.setScale();var t=this.getPosByEvent(e);this.setValueByPos(t)}}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(he.Focus),this.focusDotIndex=e}},{key:"blur",value:function(){this.states.delete(he.Focus)}},{key:"getValue",value:function(){var e=this.control.dotsValue;return 1===e.length?e[0]:e}},{key:"getIndex",value:function(){var e=this.control.dotsIndex;return 1===e.length?e[0]:e}},{key:"setValue",value:function(e){this.control.setValue(Array.isArray(e)?te(e):[e]),this.syncValueByPos()}},{key:"setIndex",value:function(e){var t=this,n=Array.isArray(e)?e.map((function(e){return t.control.getValueByIndex(e)})):this.control.getValueByIndex(e);this.setValue(n)}},{key:"setValueByPos",value:function(e){var t=this,n=this.control.getRecentDot(e);if(this.disabled||this.dots[n].disabled)return!1;this.focusDotIndex=n,this.control.setDotPos(e,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(he.Focus),setTimeout((function(){t.included&&t.isNotSync?t.control.setValue(t.value):t.control.syncDotsPos()}))}},{key:"keydownHandle",value:function(e){var t=this;if(!this.useKeyboard||!this.states.has(he.Focus))return!1;var n=this.included&&this.marks,r=function(e,t){if(t.hook){var n=t.hook(e);if("function"==typeof n)return n;if(!n)return null}switch(e.keyCode){case P.UP:return function(e){return"ttb"===t.direction?e-1:e+1};case P.RIGHT:return function(e){return"rtl"===t.direction?e-1:e+1};case P.DOWN:return function(e){return"ttb"===t.direction?e+1:e-1};case P.LEFT:return function(e){return"rtl"===t.direction?e+1:e-1};case P.END:return function(){return t.max};case P.HOME:return function(){return t.min};case P.PAGE_UP:return function(e){return e+10};case P.PAGE_DOWN:return function(e){return e-10};default:return null}}(e,{direction:this.direction,max:n?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(r){e.preventDefault();var o=-1,i=0;n?(this.control.markList.some((function(e,n){return e.value===t.control.dotsValue[t.focusDotIndex]&&(o=r(n),!0)})),o<0?o=0:o>this.control.markList.length-1&&(o=this.control.markList.length-1),i=this.control.markList[o].pos):(o=r(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),i=this.control.parseValue(this.control.getValueByIndex(o))),this.isCrossDot(i),this.control.setDotPos(i,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(e){return O(e,this.$refs.rail,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(e,t,n,r){var o=this.$createElement,i=this.$scopedSlots[e];return i?r?i(t):o("template",{slot:e},[i(t)]):n}},{key:"render",value:function(){var e=this,t=arguments[0];return t("div",s()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[t("div",{ref:"rail",class:"vue-slider-rail",style:this.railStyle},[this.processArray.map((function(n,r){return e.renderSlot("process",n,t("div",{class:"vue-slider-process",key:"process-".concat(r),style:n.style}),!0)})),this.sliderMarks?t("div",{class:"vue-slider-marks"},[this.control.markList.map((function(n,r){var o;return e.renderSlot("mark",n,t("vue-slider-mark",{key:"mark-".concat(r),attrs:{mark:n,hideLabel:e.hideLabel,stepStyle:e.stepStyle,stepActiveStyle:e.stepActiveStyle,labelStyle:e.labelStyle,labelActiveStyle:e.labelActiveStyle},style:(o={},ee(o,e.isHorizontal?"height":"width","100%"),ee(o,e.isHorizontal?"width":"height",e.tailSize),ee(o,e.mainDirection,"".concat(n.pos,"%")),o),on:{pressLabel:function(t){return e.clickable&&e.setValueByPos(t)}}},[e.renderSlot("step",n,null),e.renderSlot("label",n,null)]),!0)}))]):null,this.dots.map((function(n,r){var o;return t("vue-slider-dot",{ref:"dot-".concat(r),key:"dot-".concat(r),attrs:Z({value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||e.tooltip,"tooltip-style":[e.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(e.sliderTooltipFormatter)?e.sliderTooltipFormatter[r]:e.sliderTooltipFormatter,"tooltip-placement":e.tooltipDirections[r],role:"slider","aria-valuenow":n.value,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.isHorizontal?"horizontal":"vertical",tabindex:"0"},e.dotAttrs),style:[e.dotBaseStyle,(o={},ee(o,e.mainDirection,"".concat(n.pos,"%")),ee(o,"transition","".concat(e.mainDirection," ").concat(e.animateTime,"s")),o)],on:{"drag-start":function(){return e.dragStart(r)}},nativeOn:{focus:function(){return!n.disabled&&e.focus(r)},blur:function(){return e.blur()}}},[e.renderSlot("dot",n,null),e.renderSlot("tooltip",n,null)])})),this.renderSlot("default",{value:this.getValue()},null,!0)])])}},{key:"tailSize",get:function(){return U((this.isHorizontal?this.height:this.width)||4)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var e=X(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),t=e[0],n=e[1],r=this.width?U(this.width):this.isHorizontal?"auto":U(4),i=this.height?U(this.height):this.isHorizontal?U(4):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(t/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(t/2,"px"),width:r,height:i}}},{key:"processArray",get:function(){var e=this;return this.control.processArray.map((function(t,n){var r,o=X(t,3),i=o[0],a=o[1],s=o[2];if(i>a){var u=[a,i];i=u[0],a=u[1]}var l=e.isHorizontal?"width":"height";return{start:i,end:a,index:n,style:Z(Z((r={},ee(r,e.isHorizontal?"height":"width","100%"),ee(r,e.isHorizontal?"top":"left",0),ee(r,e.mainDirection,"".concat(i,"%")),ee(r,l,"".concat(a-i,"%")),ee(r,"transitionProperty","".concat(l,",").concat(e.mainDirection)),ee(r,"transitionDuration","".concat(e.animateTime,"s")),r),e.processStyle),s)}}))}},{key:"dotBaseStyle",get:function(){var e,t=X(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),n=t[0],r=t[1];return e=this.isHorizontal?ee({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):ee({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),Z({width:"".concat(n,"px"),height:"".concat(r,"px")},e)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var e=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(e)?e:this.dots.map((function(){return e}))}},{key:"dots",get:function(){var e=this;return this.control.dotsPos.map((function(t,n){return Z({pos:t,index:n,value:e.control.dotsValue[n],focus:e.states.has(he.Focus)&&e.focusDotIndex===n,disabled:e.disabled,style:e.dotStyle},(Array.isArray(e.dotOptions)?e.dotOptions[n]:e.dotOptions)||{})}))}},{key:"animateTime",get:function(){return this.states.has(he.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"sliderData",get:function(){var e=this;return this.isObjectArrayData(this.data)?this.data.map((function(t){return t[e.dataValue]})):this.isObjectData(this.data)?Object.keys(this.data):this.data}},{key:"sliderMarks",get:function(){var e=this;return this.marks?this.marks:this.isObjectArrayData(this.data)?function(t){var n={label:t};return e.data.some((function(r){return r[e.dataValue]===t&&(n.label=r[e.dataLabel],!0)})),n}:this.isObjectData(this.data)?this.data:void 0}},{key:"sliderTooltipFormatter",get:function(){var e=this;if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return function(t){var n=""+t;return e.data.some((function(r){return r[e.dataValue]===t&&(n=r[e.dataLabel],!0)})),n};if(this.isObjectData(this.data)){var t=this.data;return function(e){return t[e]}}}},{key:"isNotSync",get:function(){var e=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==e.length||this.value.some((function(t,n){return t!==e[n]})):this.value!==e[0]}},{key:"dragRange",get:function(){var e=this.dots[this.focusDotIndex-1],t=this.dots[this.focusDotIndex+1];return[e?e.pos:-1/0,t?t.pos:1/0]}}]),n}(c.a);return u([f("change",{default:0})],e.prototype,"value",void 0),u([p({type:Boolean,default:!1})],e.prototype,"silent",void 0),u([p({default:"ltr",validator:function(e){return["ltr","rtl","ttb","btt"].indexOf(e)>-1}})],e.prototype,"direction",void 0),u([p({type:[Number,String]})],e.prototype,"width",void 0),u([p({type:[Number,String]})],e.prototype,"height",void 0),u([p({default:14})],e.prototype,"dotSize",void 0),u([p({default:!1})],e.prototype,"contained",void 0),u([p({type:Number,default:0})],e.prototype,"min",void 0),u([p({type:Number,default:100})],e.prototype,"max",void 0),u([p({type:Number,default:1})],e.prototype,"interval",void 0),u([p({type:Boolean,default:!1})],e.prototype,"disabled",void 0),u([p({type:Boolean,default:!0})],e.prototype,"clickable",void 0),u([p({type:Boolean,default:!1})],e.prototype,"dragOnClick",void 0),u([p({type:Number,default:.5})],e.prototype,"duration",void 0),u([p({type:[Object,Array]})],e.prototype,"data",void 0),u([p({type:String,default:"value"})],e.prototype,"dataValue",void 0),u([p({type:String,default:"label"})],e.prototype,"dataLabel",void 0),u([p({type:Boolean,default:!1})],e.prototype,"lazy",void 0),u([p({type:String,validator:function(e){return["none","always","focus","hover","active"].indexOf(e)>-1},default:"active"}
2)],e.prototype,"tooltip",void 0),u([p({type:[String,Array],validator:function(e){return(Array.isArray(e)?e:[e]).every((function(e){return["top","right","bottom","left"].indexOf(e)>-1}))}})],e.prototype,"tooltipPlacement",void 0),u([p({type:[String,Array,Function]})],e.prototype,"tooltipFormatter",void 0),u([p({type:Boolean,default:!0})],e.prototype,"useKeyboard",void 0),u([p(Function)],e.prototype,"keydownHook",void 0),u([p({type:Boolean,default:!0})],e.prototype,"enableCross",void 0),u([p({type:Boolean,default:!1})],e.prototype,"fixed",void 0),u([p({type:Boolean,default:!0})],e.prototype,"order",void 0),u([p(Number)],e.prototype,"minRange",void 0),u([p(Number)],e.prototype,"maxRange",void 0),u([p({type:[Boolean,Object,Array,Function],default:!1})],e.prototype,"marks",void 0),u([p({type:[Boolean,Function],default:!0})],e.prototype,"process",void 0),u([p({type:[Number]})],e.prototype,"zoom",void 0),u([p(Boolean)],e.prototype,"included",void 0),u([p(Boolean)],e.prototype,"adsorb",void 0),u([p(Boolean)],e.prototype,"hideLabel",void 0),u([p()],e.prototype,"dotOptions",void 0),u([p()],e.prototype,"dotAttrs",void 0),u([p()],e.prototype,"railStyle",void 0),u([p()],e.prototype,"processStyle",void 0),u([p()],e.prototype,"dotStyle",void 0),u([p()],e.prototype,"tooltipStyle",void 0),u([p()],e.prototype,"stepStyle",void 0),u([p()],e.prototype,"stepActiveStyle",void 0),u([p()],e.prototype,"labelStyle",void 0),u([p()],e.prototype,"labelActiveStyle",void 0),u([m("value")],e.prototype,"onValueChanged",null),e=u([d()({data:function(){return{control:null}},components:{VueSliderDot:E,VueSliderMark:D}})],e)}();de.VueSliderMark=D,de.VueSliderDot=E;var pe=de;t.default=pe}}).default)},3912:function(e,t,n){(function(t){var n;n=function(){"use strict";var n=0,r=["ms","moz","webkit","o"];"undefined"==typeof window&&(t.window={});for(var o=0;o<r.length&&!window.requestAnimationFrame;++o)window.requestAnimationFrame=window[r[o]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[r[o]+"CancelAnimationFrame"]||window[r[o]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,element){var t=(new Date).getTime(),r=Math.max(0,16-(t-n)),o=window.setTimeout((function(){e(t+r)}),r);return n=t+r,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)});var l=window.requestAnimationFrame,c=window.cancelAnimationFrame;function h(e){e.__currentTarget__=this.__container__,this.__resize__handler__.call(this,{width:this.offsetWidth,height:this.offsetHeight},e)}function d(e){var t=e.currentTarget||e.srcElement;t.__requestAnimationFrameID__&&c(t.__requestAnimationFrameID__),t.__requestAnimationFrameID__=l(h.bind(this,e))}function f(){document.attachEvent?this.__container__.attachEvent("onresize",h.bind(this)):this.contentDocument.defaultView.addEventListener("resize",d.bind(this))}var m={bind:function(e,t,n,r){var object;e.__resizeTrigger__=((object=document.createElement("object")).setAttribute("aria-hidden","true"),object.setAttribute("tabindex",-1),object.setAttribute("style","\n display: block !important; \n position: absolute !important; \n top: 0 !important; \n left: 0 !important; \n width: 100% !important; \n height: 100% !important; \n overflow: hidden !important; \n pointer-events: none !important; \n z-index: -1 !important; \n opacity: 0 !important;\n "),object.type="text/html",object),e.__resizeTrigger__.__container__=e,e.__resizeTrigger__.__resize__handler__=t.value,e.__resizeTrigger__.onload=f;var o=function(){var e=!1;return"undefined"!=typeof navigator&&(e=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/)),e}();o&&e.appendChild(e.__resizeTrigger__),e.__resizeTrigger__.data="about:blank",!o&&e.appendChild(e.__resizeTrigger__)},inserted:function(e){"static"===getComputedStyle(e).position&&e.style.setProperty("position","relative","important")},unbind:function(e){document.attachEvent?e.detachEvent("onresize",h):e.__resizeTrigger__&&e.__resizeTrigger__.contentDocument&&(e.__resizeTrigger__.contentDocument.defaultView.removeEventListener("resize",d),e.__resizeTrigger__=!e.removeChild(e.__resizeTrigger__))}},A={install:function(e){e.directive("resize",m)}};return e.exports=A,A},e.exports=n()}).call(this,n(31))},3915:function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function c(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,source){for(var t,n,h=c(e),s=1;s<arguments.length;
2s++){for(var d in t=Object(arguments[s]))o.call(t,d)&&(h[d]=t[d]);if(r){n=r(t);for(var i=0;i<n.length;i++)l.call(t,n[i])&&(h[n[i]]=t[n[i]])}}return h}},4025:function(e,t,n){n(85),n(4026),n(19),n(5),n(74),n(15),n(76),n(22),n(2277),n(2279),n(51),n(21),n(1623),n(59),n(2405),n(13),n(10),n(34),n(12),n(35),n(14),n(52),n(6),n(4029),n(50),n(4030),e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="",n(n.s="1c25")}({"032e":function(e,t,n){"use strict";var r=n("3f48"),o=n("4a86"),l=n("ca6e"),c=n("4367"),h=n("aafc"),d=n("7868"),f=n("d335"),m=n("a505");e.exports=function(e){return new Promise((function(t,n){var A=e.data,y=e.headers;r.isFormData(A)&&delete y["Content-Type"],(r.isBlob(A)||r.isFile(A))&&A.type&&delete y["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",w=unescape(encodeURIComponent(e.auth.password))||"";y.Authorization="Basic "+btoa(_+":"+w)}var x=h(e.baseURL,e.url);if(v.open(e.method.toUpperCase(),c(x,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,v.onreadystatechange=function(){if(v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in v?d(v.getAllResponseHeaders()):null,l={data:e.responseType&&"text"!==e.responseType?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v};o(t,n,l),v=null}},v.onabort=function(){v&&(n(m("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(m("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(m(t,e,"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||f(x))&&e.xsrfCookieName?l.read(e.xsrfCookieName):void 0;E&&(y[e.xsrfHeaderName]=E)}if("setRequestHeader"in v&&r.forEach(y,(function(e,t){void 0===A&&"content-type"===t.toLowerCase()?delete y[t]:v.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),e.responseType)try{v.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){v&&(v.abort(),n(e),v=null)})),A||(A=null),v.send(A)}))}},"037c":function(e,t,n){"use strict";var r=n("be69");n.n(r).a},"03a5":function(e,t,n){"use strict";var r=n("7d23");n.n(r).a},"0446":function(e,t,n){var r=n("da06"),o=n("5bb7"),l=n("7d53")("iterator");e.exports=function(e){if(null!=e)return e[l]||e["@@iterator"]||o[r(e)]}},"04ff":function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},"06d4":function(e,t,n){"use strict";var r=n("3f48"),o=n("e067"),l=n("5816"),c=n("7723");function h(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return h(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||c.adapter)(e).then((function(t){return h(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return l(t)||(h(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"07d9":function(e,t,n){var path,r;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)")},r="/",t.cwd=function(){return r},t.chdir=function(e){path||(path=n("a0d5")),r=path.resolve(e,r)},t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"083f":function(e,t,n){var r=n("7526");e.exports=function(input,e){if(!r(input))return input;var t,n;if(e&&"function"==typeof(t=input.toString)&&!r(n=t.call(input)))return n;if("function"==typeof(t=input.valueOf)&&!r(n=t.call(input)))return n;if(!e&&"function"==typeof(t=input.toString)&&!r(n=t.call(input)))return n;throw TypeError("Can't convert object to primitive value")}},"0a1e":function(e,t,n){"use strict";var r=n("5428"),o=n("abdf"),l=n("7d53"),c=n("d4cb"),h=l("species");e.exports=function(e){var t=r(e),n=o.f;c&&t&&!t[h]&&n(t,h,{configurable:!0,get:function(){return this}})}},"0a6e":function(e,t,n){"use strict";n("f3b8");var r,o=n("6b1d"),l=n("d4cb"),c=n("5e39"),h=n("f498"),d=n("b99b"),f=n("b8ba"),m=n("4cce"),A=n("f1a7"),y=n("174d"),v=n("ccae"),_=n("b7fb").codeAt,w=n("2dd8"),x=n("fa46"),E=n("2abb"),C=n("cdcd"),S=h.URL,T=E.URLSearchParams,B=E.getState,k=C.set,I=C.getterFor("URL"),M=Math.floor,P=Math.pow,D=/[A-Za-z]/,U=/[\d+-.A-Za-z]/,O=/\d/,F=/^(0x|0X)/,R=/^[0-7]+$/,N=/^\d+$/,L=/^[\dA-Fa-f]+$/,z=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,H=/[\u
vendor: 6,060 bytes, line 2
20000\u0009\u000A\u000D #/:?@[\\]]/,Q=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,V=/[\u0009\u000A\u000D]/g,j=function(e,input){var t,n,r;if("["==input.charAt(0)){if("]"!=input.charAt(input.length-1))return"Invalid host";if(!(t=K(input.slice(1,-1))))return"Invalid host";e.host=t}else if(te(e)){if(input=w(input),z.test(input))return"Invalid host";if(null===(t=G(input)))return"Invalid host";e.host=t}else{if(H.test(input))return"Invalid host";for(t="",n=v(input),r=0;r<n.length;r++)t+=Z(n[r],Y);e.host=t}},G=function(input){var e,t,n,r,o,l,c,h=input.split(".");if(h.length&&""==h[h.length-1]&&h.pop(),(e=h.length)>4)return input;for(t=[],n=0;n<e;n++){if(""==(r=h[n]))return input;if(o=10,r.length>1&&"0"==r.charAt(0)&&(o=F.test(r)?16:8,r=r.slice(8==o?1:2)),""===r)l=0;else{if(!(10==o?N:8==o?R:L).test(r))return input;l=parseInt(r,o)}t.push(l)}for(n=0;n<e;n++)if(l=t[n],n==e-1){if(l>=P(256,5-e))return null}else if(l>255)return null;for(c=t.pop(),n=0;n<t.length;n++)c+=t[n]*P(256,3-n);return c},K=function(input){var e,t,n,r,o,l,c,address=[0,0,0,0,0,0,0,0],h=0,d=null,f=0,m=function(){return input.charAt(f)};if(":"==m()){if(":"!=input.charAt(1))return;f+=2,d=++h}for(;m();){if(8==h)return;if(":"!=m()){for(e=t=0;t<4&&L.test(m());)e=16*e+parseInt(m(),16),f++,t++;if("."==m()){if(0==t)return;if(f-=t,h>6)return;for(n=0;m();){if(r=null,n>0){if(!("."==m()&&n<4))return;f++}if(!O.test(m()))return;for(;O.test(m());){if(o=parseInt(m(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;f++}address[h]=256*address[h]+r,2!=++n&&4!=n||h++}if(4!=n)return;break}if(":"==m()){if(f++,!m())return}else if(m())return;address[h++]=e}else{if(null!==d)return;f++,d=++h}}if(null!==d)for(l=h-d,h=7;0!=h&&l>0;)c=address[h],address[h--]=address[d+l-1],address[d+--l]=c;else if(8!=h)return;return address},$=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=M(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,l=0;l<8;l++)0!==e[l]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=l),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},Y={},W=y({},Y,{" ":1,'"':1,"<":1,">":1,"`":1}),X=y({},W,{"#":1,"?":1,"{":1,"}":1}),J=y({},X,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(e,t){var code=_(e,0);return code>32&&code<127&&!A(t,e)?e:encodeURIComponent(e)},ee={ftp:21,file:null,http:80,https:443,ws:80,wss:443},te=function(e){return A(ee,e.scheme)},ne=function(e){return""!=e.username||""!=e.password},re=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},ie=function(e,t){var n;return 2==e.length&&D.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},se=function(e){var t;return e.length>1&&ie(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ae=function(e){var path=e.path,t=path.length;!t||"file"==e.scheme&&1==t&&ie(path[0],!0)||path.pop()},oe=function(e){return"."===e||"%2e"===e.toLowerCase()},le={},ce={},ue={},he={},de={},pe={},fe={},me={},Ae={},ge={},ye={},ve={},_e={},be={},we={},xe={},Ee={},Ce={},Se={},Te={},Be={},ke=function(e,input,t,base){var n,o,l,c,h,d=t||le,f=0,m="",y=!1,_=!1,w=!1;for(t||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,input=input.replace(Q,"")),input=input.replace(V,""),n=v(input);f<=n.length;){switch(o=n[f],d){case le:if(!o||!D.test(o)){if(t)return"Invalid scheme";d=ue;continue}m+=o.toLowerCase(),d=ce;break;case ce:if(o&&(U.test(o)||"+"==o||"-"==o||"."==o))m+=o.toLowerCase();else{if(":"!=o){if(t)return"Invalid scheme";m="",d=ue,f=0;continue}if(t&&(te(e)!=A(ee,m)||"file"==m&&(ne(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=m,t)return void(te(e)&&ee[e.scheme]==e.port&&(e.port=null));m="","file"==e.scheme?d=be:te(e)&&base&&base.scheme==e.scheme?d=he:te(e)?d=me:"/"==n[f+1]?(d=de,f++):(e.cannotBeABaseURL=!0,e.path.push(""),d=Se)}break;case ue:if(!base||base.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(base.cannotBeABaseURL&&"#"==o){e.scheme=base.scheme,e.path=base.path.slice(),e.query=base.query,e.fragment="",e.cannotBeABaseURL=!0,d=Be;break}d="file"==base.scheme?be:pe;continue;case he:if("/"!=o||"/"!=n[f+1]){d=pe;continue}d=Ae,f++;break;case de:if("/"==o){d=ge;break}d=Ce;continue;case pe:if(e.scheme=base.scheme,o==r)e.username=base.username,e.password=base.password,e.host=base.host,e.port=base.port,e.path=base.path.slice(),e.query=base.query;else if("/"==o||"\\"==o&&te(e))d=fe;else if("?"==o)e.username=base.username,e.password=base.password,e.host=base.host,e.port=base.port,e.path=base.path.slice(),e.query="",d=Te;else{if("#"!=o){e.username=base.username,e.password=base.password,e.host=base.host,e.port=base.port,e.path=base.path.slice(),e.path.pop(),d=Ce;continue}e.username=base.username,e.password=base.password,e.host=base.host,e.port=base.port,e.path=base.path.slice(),e.query=base.query,e.fragment="",d=Be}break;case fe:if(!te(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=base.username,e.password=base.password,e.host=base.host,e.port=base.port,d=Ce;continue}d=ge}else d=Ae;break;case me:if(d=Ae,"/"!=o||"/"!=m.charAt(f+1))continue;f++;break;case Ae:if("/"!=o&&"\\"!=o){d=ge;continue}break;case ge:if("@"==o){y&&(m="%40"+m),y=!0,l=v(m);for(var i=0;i<l.length;i++){var x=l[i];if(":"!=x||w){var E=Z(x,J);w?e.password+=E:e.username+=E}else w=!0}m=""}else if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&te(e)){if(y&&""==m)return"Invalid authority";f-=v(m).length+1,m="",d=ye}else m+=o;break;case ye:case ve:if(t&&"file"==e.scheme){d=xe;continue}if(":"!=o||_){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&te(e)){if(te(e)&&""==m)return"Invalid host";if(t&&""==m&&(ne(e)||null!==e.port))return;if(c=j(e,m))return c;if(m="",d=Ee,t)return;continue}"["==o?_=!0:"]"==o&&(_=!1),m+=o}else{if(""==m)return"Invalid host";if(c=j(e,m))return c;if(m="",d=_e,t==ve)return}break;case _e:if(!O.test(o)){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&te(e)||t){if(""!=m){var
vendor: 5,637 bytes, line 2
2C=parseInt(m,10);if(C>65535)return"Invalid port";e.port=te(e)&&C===ee[e.scheme]?null:C,m=""}if(t)return;d=Ee;continue}return"Invalid port"}m+=o;break;case be:if(e.scheme="file","/"==o||"\\"==o)d=we;else{if(!base||"file"!=base.scheme){d=Ce;continue}if(o==r)e.host=base.host,e.path=base.path.slice(),e.query=base.query;else if("?"==o)e.host=base.host,e.path=base.path.slice(),e.query="",d=Te;else{if("#"!=o){se(n.slice(f).join(""))||(e.host=base.host,e.path=base.path.slice(),ae(e)),d=Ce;continue}e.host=base.host,e.path=base.path.slice(),e.query=base.query,e.fragment="",d=Be}}break;case we:if("/"==o||"\\"==o){d=xe;break}base&&"file"==base.scheme&&!se(n.slice(f).join(""))&&(ie(base.path[0],!0)?e.path.push(base.path[0]):e.host=base.host),d=Ce;continue;case xe:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&ie(m))d=Ce;else if(""==m){if(e.host="",t)return;d=Ee}else{if(c=j(e,m))return c;if("localhost"==e.host&&(e.host=""),t)return;m="",d=Ee}continue}m+=o;break;case Ee:if(te(e)){if(d=Ce,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=r&&(d=Ce,"/"!=o))continue}else e.fragment="",d=Be;else e.query="",d=Te;break;case Ce:if(o==r||"/"==o||"\\"==o&&te(e)||!t&&("?"==o||"#"==o)){if(".."===(h=(h=m).toLowerCase())||"%2e."===h||".%2e"===h||"%2e%2e"===h?(ae(e),"/"==o||"\\"==o&&te(e)||e.path.push("")):oe(m)?"/"==o||"\\"==o&&te(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&ie(m)&&(e.host&&(e.host=""),m=m.charAt(0)+":"),e.path.push(m)),m="","file"==e.scheme&&(o==r||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",d=Te):"#"==o&&(e.fragment="",d=Be)}else m+=Z(o,X);break;case Se:"?"==o?(e.query="",d=Te):"#"==o?(e.fragment="",d=Be):o!=r&&(e.path[0]+=Z(o,Y));break;case Te:t||"#"!=o?o!=r&&("'"==o&&te(e)?e.query+="%27":e.query+="#"==o?"%23":Z(o,Y)):(e.fragment="",d=Be);break;case Be:o!=r&&(e.fragment+=Z(o,W))}f++}},Ie=function(e){var t,n,r=m(this,Ie,"URL"),base=arguments.length>1?arguments[1]:void 0,o=String(e),c=k(r,{type:"URL"});if(void 0!==base)if(base instanceof Ie)t=I(base);else if(n=ke(t={},String(base)))throw TypeError(n);if(n=ke(c,o,null,t))throw TypeError(n);var h=c.searchParams=new T,d=B(h);d.updateSearchParams(c.query),d.updateURL=function(){c.query=String(h)||null},l||(r.href=Pe.call(r),r.origin=De.call(r),r.protocol=Ue.call(r),r.username=Oe.call(r),r.password=Fe.call(r),r.host=Re.call(r),r.hostname=Ne.call(r),r.port=Le.call(r),r.pathname=ze.call(r),r.search=He.call(r),r.searchParams=Qe.call(r),r.hash=Ve.call(r))},Me=Ie.prototype,Pe=function(){var e=I(this),t=e.scheme,n=e.username,r=e.password,o=e.host,l=e.port,path=e.path,c=e.query,h=e.fragment,output=t+":";return null!==o?(output+="//",ne(e)&&(output+=n+(r?":"+r:"")+"@"),output+=$(o),null!==l&&(output+=":"+l)):"file"==t&&(output+="//"),output+=e.cannotBeABaseURL?path[0]:path.length?"/"+path.join("/"):"",null!==c&&(output+="?"+c),null!==h&&(output+="#"+h),output},De=function(){var e=I(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&te(e)?t+"://"+$(e.host)+(null!==n?":"+n:""):"null"},Ue=function(){return I(this).scheme+":"},Oe=function(){return I(this).username},Fe=function(){return I(this).password},Re=function(){var e=I(this),t=e.host,n=e.port;return null===t?"":null===n?$(t):$(t)+":"+n},Ne=function(){var e=I(this).host;return null===e?"":$(e)},Le=function(){var e=I(this).port;return null===e?"":String(e)},ze=function(){var e=I(this),path=e.path;return e.cannotBeABaseURL?path[0]:path.length?"/"+path.join("/"):""},He=function(){var e=I(this).query;return e?"?"+e:""},Qe=function(){return I(this).searchParams},Ve=function(){var e=I(this).fragment;return e?"#"+e:""},je=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(l&&d(Me,{href:je(Pe,(function(e){var t=I(this),n=String(e),r=ke(t,n);if(r)throw TypeError(r);B(t.searchParams).updateSearchParams(t.query)})),origin:je(De),protocol:je(Ue,(function(e){var t=I(this);ke(t,String(e)+":",le)})),username:je(Oe,(function(e){var t=I(this),n=v(String(e));if(!re(t)){t.username="";for(var i=0;i<n.length;i++)t.username+=Z(n[i],J)}})),password:je(Fe,(function(e){var t=I(this),n=v(String(e));if(!re(t)){t.password="";for(var i=0;i<n.length;i++)t.password+=Z(n[i],J)}})),host:je(Re,(function(e){var t=I(this);t.cannotBeABaseURL||ke(t,String(e),ye)})),hostname:je(Ne,(function(e){var t=I(this);t.cannotBeABaseURL||ke(t,String(e),ve)})),port:je(Le,(function(e){var t=I(this);re(t)||(""==(e=String(e))?t.port=null:ke(t,e,_e))})),pathname:je(ze,(function(e){var t=I(this);t.cannotBeABaseURL||(t.path=[],ke(t,e+"",Ee))})),search:je(He,(function(e){var t=I(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",ke(t,e,Te)),B(t.searchParams).updateSearchParams(t.query)})),searchParams:je(Qe),hash:je(Ve,(function(e){var t=I(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",ke(t,e,Be)):t.fragment=null}))}),f(Me,"toJSON",(function(){return Pe.call(this)}),{enumerable:!0}),f(Me,"toString",(function(){return Pe.call(this)}),{enumerable:!0}),S){var Ge=S.createObjectURL,Ke=S.revokeObjectURL;Ge&&f(Ie,"createObjectURL",(function(e){return Ge.apply(S,arguments)})),Ke&&f(Ie,"revokeObjectURL",(function(e){return Ke.apply(S,arguments)}))}x(Ie,"URL"),o({global:!0,forced:!c,sham:!l},{URL:Ie})},"0b4e":function(e,t,n){"use strict";var r=n("5779");n.n(r).a},"0c47":function(e,t,n){var r=n("c91c"),o=n("b17e");e.exports=Object.keys||function(e){return r(e,o)}},"0d9f":function(e,t,n){"use strict";var r=n("b8ba"),o=n("157c"),l=n("72df"),c=n("abfd"),h=RegExp.prototype,d=h.toString,f=l((function(){return"/a/b"!=d.call({
2source:"a",flags:"b"})})),m="toString"!=d.name;(f||m)&&r(RegExp.prototype,"toString",(function(){var e=o(this),p=String(e.source),t=e.flags;return"/"+p+"/"+String(void 0===t&&e instanceof RegExp&&!("flags"in h)?c.call(e):t)}),{unsafe:!0})},"0df8":function(e,t,n){"use strict";var r=n("6b1d"),o=n("d054").every,l=n("7f8a"),c=n("ce71"),h=l("every"),d=c("every");r({target:"Array",proto:!0,forced:!h||!d},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"0e39":function(e,t,n){var r=n("f1a7"),o=n("37d1"),l=n("332c"),c=n("802e"),h=l("IE_PROTO"),d=Object.prototype;e.exports=c?Object.getPrototypeOf:function(e){return e=o(e),r(e,h)?e[h]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?d:null}},"0e93":function(e,t){e.exports=!1},"11ed":function(e,t,n){"use strict";var r=n("6b1d"),o=n("9a0f"),l=n("8bb2"),c=n("b495"),h=n("37d1"),d=n("6a86"),f=n("dac6"),m=n("189b"),A=n("ce71"),y=m("splice"),v=A("splice",{ACCESSORS:!0,0:0,1:2}),_=Math.max,w=Math.min;r({target:"Array",proto:!0,forced:!y||!v},{splice:function(e,t){var n,r,m,A,y,v,x=h(this),E=c(x.length),C=o(e,E),S=arguments.length;if(0===S?n=r=0:1===S?(n=0,r=E-C):(n=S-2,r=w(_(l(t),0),E-C)),E+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(m=d(x,r),A=0;A<r;A++)(y=C+A)in x&&f(m,A,x[y]);if(m.length=r,n<r){for(A=C;A<E-r;A++)v=A+n,(y=A+r)in x?x[v]=x[y]:delete x[v];for(A=E;A>E-r+n;A--)delete x[A-1]}else if(n>r)for(A=E-r;A>C;A--)v=A+n-1,(y=A+r-1)in x?x[v]=x[y]:delete x[v];for(A=0;A<n;A++)x[A+C]=arguments[A+2];return x.length=E-r+n,m}})},"130d":function(e,t){e.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}},"13b8":function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"14d0":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},"157c":function(e,t,n){var r=n("7526");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},1586:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"16d1":function(e,t,n){var r=n("6b1d"),o=n("d4cb"),l=n("a03e"),c=n("378c"),h=n("185a"),d=n("dac6");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(object){for(var e,t,n=c(object),r=h.f,o=l(n),f={},m=0;o.length>m;)void 0!==(t=r(n,e=o[m++]))&&d(f,e,t);return f}})},"16d15":function(e,t,n){var r=n("d4cb"),o=n("abdf"),l=n("abfd"),c=n("2f6a").UNSUPPORTED_Y;r&&("g"!=/./g.flags||c)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:l})},"174d":function(e,t,n){"use strict";var r=n("d4cb"),o=n("72df"),l=n("0c47"),c=n("2402"),h=n("e129"),d=n("37d1"),f=n("83a6"),m=Object.assign,A=Object.defineProperty;e.exports=!m||o((function(){if(r&&1!==m({b:1},m(A({},"a",{enumerable:!0,get:function(){A(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},symbol=Symbol();return e[symbol]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=m({},e)[symbol]||"abcdefghijklmnopqrst"!=l(m({},t)).join("")}))?function(e,source){for(var t=d(e),n=arguments.length,o=1,m=c.f,A=h.f;n>o;)for(var y,v=f(arguments[o++]),_=m?l(v).concat(m(v)):l(v),w=_.length,x=0;w>x;)y=_[x++],r&&!A.call(v,y)||(t[y]=v[y]);return t}:m},"185a":function(e,t,n){var r=n("d4cb"),o=n("e129"),l=n("9618"),c=n("378c"),h=n("083f"),d=n("f1a7"),f=n("7c3f"),m=Object.getOwnPropertyDescriptor;t.f=r?m:function(e,t){if(e=c(e),t=h(t,!0),f)try{return m(e,t)}catch(e){}if(d(e,t))return l(!o.f.call(e,t),e[t])}},"189b":function(e,t,n){var r=n("72df"),o=n("7d53"),l=n("4fed"),c=o("species");e.exports=function(e){return l>=51||!r((function(){var t=[];return(t.constructor={})[c]=function(){return{foo:1}
2},1!==t[e](Boolean).foo}))}},"1c25":function(e,t,n){"use strict";if(n.r(t),"undefined"!=typeof window){var r=window.document.currentScript,o=n("405b");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var l=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);l&&(n.p=l[1])}n("d6de"),n("2d6d"),n("8f0b"),n("75a4"),n("16d1"),n("f8a5"),n("fa8c");function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(t){c(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}n("d86f"),n("841a"),n("d48b"),n("88a1"),n("2aa5"),n("0d9f"),n("b55a"),n("df26"),n("ef1f"),n("26d3");function f(e,t,n,r,o,l,c){try{var h=e[l](c),d=h.value}catch(e){return void n(e)}h.done?t(d):Promise.resolve(d).then(r,o)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var l=e.apply(t,n);function c(e){f(l,r,o,c,h,"next",e)}function h(e){f(l,r,o,c,h,"throw",e)}c(void 0)}))}}n("2c93");var A=n("d4d1"),y=n.n(A),v=n("cda8"),_=n.n(v),w=function(){var code=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"000",data=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{code:code,data:data,errors:e}},x="/user/password/forgot",E="/user/password/reset",C="/validate/email/code",S="/validate/email/password",T="/user",B="/user/verify/token",k="/user/verify/email",I=["yad2.co.il","yad2.io","localhost"],M={"000":"ש×××× ××××ת ××רע×","001":"×××× ×× ×¡×ס×× ××× × ×ª×§×× ××","002":"××שת×ש × ××¡× ×¢×§× 10 × ×¡××× ×ת ××ש×××","003":"ש×××× ××××ת ××רע×","004":"×§×× ×××××× ×× ×ª×§××","005":"×ת××ת ××××× ××ר ×§×××ת ×רש×××ת","006":"×ספר ××פ×× ××× × ×ª×§××","007":"×× ×§××× ×§×× ×××","008":"×§×× ××× × ×ª×§××","009":"×× × ××¦× ×שת×ש","010":"× ×©××× ×ספר ××××¢×ת ס×ס ××ספר, ×× × ×¤× × ××××§× ×ש×ר×ת","011":"×× ×× ×× ×©×©××ר ×צ×× ×, × ×¡× ×©× ×ת","012":"×§×× ×××××× ××× × ×§××× ×× ×¤× ×ª××§×£","013":"×ספר ×××פ×× ××ר ×§××× ××ער×ת ×××× × × ××ª× ×ר×ש××","014":"×ספר ××פ×× ××× × ×ª×§××","015":"×××× ××× × ×ª×§××","016":"×××ת ×ת ××ש××× ×©××","017":"××תר ××× × ×¡××× ×ת ××פ×ס, × ×¡× ×©×× ××××ר ××תר","018":"×§×ש×ר ×××××ת ×× ×ª×§×× ×× ×¤× ×ª××§×£","019":"××ש××× ×©×× ×××2 ×××ת"},P=new RegExp(/^[0-9]{3}[-\s.]?[0-9]{4}$/,"m"),D=["050","051","052","053","054","055","058"],U=y.a.FormGroup,O={name:"register-details",props:{form:U,elementInitiator:String}
2,data:function(){return{registerForm:U,terms:null,phone:"",phoneMaxLength:7,isValid:!1,isLoading:!1}},created:function(){window.dataLayer.push({event:"GTM event to GA",GA_event_category:"registration",GA_event_action:"personal details",GA_event_label:"reached",element_Initiator:this.elementInitiator||""}),this.registerForm=this.createForm(),this.terms='קר××ª× ×××שר ×ת <a href="https://www.yad2.co.il/eula" target="_blank">×ª×§× ××</a> ××תר'},computed:{openDate:function(){var e=new Date;return e.setFullYear((new Date).getFullYear()-18),e},disabledDates:function(){return{customPredictor:function(e){if(e.getTime()>=(new Date).setFullYear((new Date).getFullYear()-18))return!0}}},charOnlyValidator:function(){return{type:"stringOnly",message:"××ת××ת ××××",cb:function(e){return!(!e||!/^[a-zA-Z×-ת ]{1,}$/.test(null==e?void 0:e.trim()))}}},validPhone:function(){return!(!this.phone||!this.registerForm.getValues.phonePrefix)&&P.test(this.phone)},phonePrefixes:function(){return D}},methods:{validateForm:function(){var e=!0;Object.values(this.registerForm.controls).forEach((function(t){var n=t.comp;e=e&&(n.valid||!n.validValidators.length)})),this.isValid=e},createForm:function(){return new U({firstName:{validators:[{type:"required",message:"ש×× ××××"},{type:"max",message:"×קס×××× 30 ת××××",value:30},{type:"stringOnly",message:"××ת××ת ××××",cb:function(e){return!(!e||!/^[a-zA-Z×-ת ]{1,}$/.test(null==e?void 0:e.trim()))}},{type:"name",message:"×©× ×× ×××§×",cb:function(e,t,n){if(!e)return!0;var r,o=function(e){return-1!==(null==e?void 0:e.search(/yad|××/i))},l=function(e){return-1!==(null==e?void 0:e.search(/2|שת×××|שת××/i))};return-1===(null==(r=e)?void 0:r.search(/yad2|××2|××שת×××|×× ×©×ª×××|שת×××××|×× 2|××שת××|×× ×©×ª××/i))&&!(o(e)&&l(n.lastName)||l(e)&&o(n.lastName))}}]},lastName:{validators:[{type:"required",message:"ש×× ××××"},{type:"max",message:"×קס×××× 20 ת××××",value:20},{type:"stringOnly",message:"××ת××ת ××××",cb:function(e){return!(!e||!/^[a-zA-Z×-ת ]{1,}$/.test(null==e?void 0:e.trim()))}},{type:"name",message:"×©× ×× ×××§×",cb:function(e,t,n){if(!e)return!0;var r=function(e){return-1!==(null==e?void 0:e.search(/yad|××/i))},o=function(e){return-1!==(null==e?void 0:e.search(/2|שת×××|שת××/i))};return!(-1!==e.search(/yad2|××2|××שת×××|×× ×©×ª×××|שת×××××|×× 2|××שת××|×× ×©×ª××/i))&&!(r(e)&&o(n.firstName)||o(e)&&r(n.firstName))}}]},phonePrefix:{validators:[{type:"required",message:"ש×× ××××"}]},mobile:{validators:[{type:"required",message:"ש×× ××××"},{type:"phone",message:"×ספר פ××פ×× ×× ×ª×§××",cb:function(e){return P.test(e)}}]},birthday:{},mailingList:{},confirm:{validators:[{type:"required",message:"ש×× ××××"}]}})},sendForm:function(e){var t=this;return m(regeneratorRuntime.mark((function n(){var r,o,l,data,c,h,f,m;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.preventDefault(),t.registerForm.isValid){n.next=3;break}return n.abrupt("return");case 3:return r=t.registerForm.controlValue("birthday"),(o=d(d({},t.registerForm.getValues),{},{email:t.form.controlValue("email").trim(),password:t.form.controlValue("password")})).phonePrefix&&(o.mobile="".concat(o.phonePrefix,"-").concat(o.mobile),delete o.phonePrefix),r&&(o.birthday=r.getTime()),n.prev=7,t.isLoading=!0,n.next=11,_.a.post(T,o);case 11:l=n.sent,data=l.data.data,t.notification.success("× ×רש×ת ××צ×××"),t.$emit("close",w("004",{user:data.user})),window.dataLayer.push({event:"GTM event to GA",GA_event_category:"registration",GA_event_action:"registration success",GA_event_label:"registration success",element_Initiator:t.elementInitiator||""}),n.next=23;break;case 18:n.prev=18,n.t0=n.catch(7),m=M[null===n.t0||void 0===n.t0||null===(c=n.t0.response)||void 0===c||null===(h=c.data)||void 0===h||null===(f=h.data)||void 0===f?void 0:f.code]||M["000"],t.notification.error(m),window.dataLayer.push({event:"GTM event to GA",GA_event_category:"registration",GA_event_action:"registration error",GA_event_label:m,element_Initiator:t.elementInitiator||""});case 23:return n.prev=23,t.isLoading=!1,n.finish(23);case 26:case"end":return n.stop()}}),n,null,[[7,18,23,26]])})))()}}};n("0b4e");
2function F(e,t,n,r,o,l,c,h){var d,f="function"==typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),l&&(f._scopeId="data-v-"+l),c?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},f._ssrRegister=d):o&&(d=h?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),d)if(f.functional){f._injectStyles=d;var m=f.render;f.render=function(e,t){return d.call(t),m(e,t)}}else{var A=f.beforeCreate;f.beforeCreate=A?[].concat(A,d):[d]}return{exports:e,options:f}}var R,N,L=F(O,(function(){var e=this,t=this,n=t.$createElement,r=t._self._c||n;return r("form",{staticClass:"reg-details",on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.sendForm(e)}}},[r("div",[r("m-container",[r("m-input",{attrs:{form:t.registerForm,control:"firstName",type:"text",label:"×©× ×¤×¨××",placeholder:"××§×× ×©× ×¤×¨××"},on:{change:t.validateForm}})],1),r("m-container",[r("m-input",{attrs:{form:t.registerForm,control:"lastName",type:"text",label:"×©× ×שפ××",placeholder:"××§×× ×©× ×שפ××"},on:{change:t.validateForm}})],1),r("div",{staticClass:"phone-container"},[r("div",{staticClass:"input-title"},[r("label",[t.validPhone?r("i",{staticClass:"mangoi_check"}):t._e(),t._v(" ×ספר ××פ×× ")])]),r("div",{staticClass:"phone-inputs-container"},[r("m-container",{staticClass:"mobile-input"},[r("m-input",{attrs:{label:"",form:t.registerForm,control:"mobile",maxlength:t.phoneMaxLength,type:"tel",placeholder:"××פ××"},on:{change:function(t){e.phone=t,e.validateForm()}}})],1),r("m-container",{staticClass:"prefix-input"},[r("m-select",{attrs:{label:"",form:t.registerForm,placeholder:"×§××××ת",control:"phonePrefix"},on:{change:t.validateForm}},t._l(t.phonePrefixes,(function(e){return r("m-option",{key:""+e,attrs:{value:e}},[t._v(t._s(e))])})),1)],1)],1)]),r("m-container",[r("m-datepicker",{attrs:{form:t.registerForm,control:"birthday",label:"ת×ר×× ××××",placeholder:"××ר ת×ר×× ××××",disabledDates:t.disabledDates,openDate:t.openDate},on:{change:t.validateForm}})],1),r("m-checkbox",{attrs:{label:t.terms,form:t.registerForm,control:"confirm"},on:{change:t.validateForm}}),r("m-checkbox",{attrs:{label:"××שר ×§××ת ××××ר פרס××× ×××× ×××2",form:t.registerForm,control:"mailingList"},on:{change:t.validateForm}})],1),r("m-button",{staticClass:"btn-continue primary",attrs:{type:"submit",isLoading:t.isLoading,disabled:t.isValid?"false":"true"},on:{click:t.sendForm}},[t._v("ש××")])],1)}),[],!1,null,null,null).exports,z={name:"wrapper",props:{title:String,subTitle:String,innerTitle:String,innerSubTitle:String,showHelpFooter:Boolean,mobileMinimizeHeader:Boolean},computed:{getImgSrc:function(){return this.mobileMinimizeHeader?this.minimizeHeaderImg:this.couch}},data:function(){return{couch:"https://y2-address-master-dev.s3-eu-west-1.amazonaws.com/auth/couch_lamp.svg",logo:"https://y2-address-master-dev.s3-eu-west-1.amazonaws.com/auth/New_logo_negative.svg",minimizeHeaderImg:"https://y2-address-master-dev.s3-eu-west-1.amazonaws.com/auth/[email protected]"}},methods:{openHelper:function(){window.open("https://www.yad2.co.il/contactus","_blank")}}},H=(n("03a5"),n("037c"),F(z,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"outer-wrapper"},[n("div",{class:{welcome:!0,"mobile-minimize-header":e.mobileMinimizeHeader}},[n("div",[n("img",{attrs:{src:e.logo}}),n("h1",[e._v(e._s(e.title))]),n("h4",[e._v(e._s(e.subTitle))])]),n("img",{class:{couch:!e.mobileMinimizeHeader,"minimize-header":e.mobileMinimizeHeader},attrs:{src:e.getImgSrc}})]),n("div",{staticClass:"inner-wrapper"},[n("div",{staticClass:"header-login"},[n("h3",[e._v(e._s(e.innerTitle))]),n("p",[e._v(e._s(e.innerSubTitle))])]),n("div",{staticClass:"content-wrapper"},[e._t("default")],2),e.showHelpFooter?n("div",{staticClass:"help-footer"},[n("span",[n("m-icon",{attrs:{icon:"mangoi_question_mark",size:"20px"}}),n("span",[e._v("× ×ª×§×ת ×××¢××? × ×©×× ××¢××ר ××!")])],1),n("a",{staticClass:"clickable underline",on:{click:e.openHelper}}
2,[e._v("××, תע××¨× ××")])]):e._e()])])}),[],!1,null,"43c22490",null).exports),Q=y.a.FormGroup,V={name:"y2-register",components:{registerDetails:L,wrapper:H},props:{mail:String,elementInitiator:String},data:function(){return{form:Q,step:"email",show:!1,isValid:!1,isLoading:!1}},beforeCreate:function(){var e;null===(e=window.ReactNativeWebView)||void 0===e||e.postMessage("onRegister")},created:function(){!function(e,t,s,n,i){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var r=t.getElementsByTagName(s)[0],o=t.createElement(s);o.async=!0,o.src="https://www.googletagmanager.com/gtm.js?id=GTM-T22875",r.parentNode.insertBefore(o,r)}(window,document,"script","dataLayer"),window.dataLayer.push({event:"GTM event to GA",GA_event_category:"registration",GA_event_action:"registration details",GA_event_label:"reached",element_Initiator:this.elementInitiator||""}),this.form=this.createForm()},methods:{changeStep:function(e){this.step=e},moveToForgotPass:function(){var e=this.form.controls.email.comp,t=e.validValidators.find((function(e){return"email"===e.type})),n=null;e.touched&&t.valid&&(n=this.form.getValues.email),this.$emit("close",w("001",n))},moveToLogin:function(){this.$emit("close",w("005"))},createForm:function(){return new Q({email:{validators:[{type:"required",message:"ש×× ××××"},{type:"email",message:"×××××× ×× ×ª×§××"}],value:"string"==typeof this.mail?this.mail:""},password:{validators:[{type:"required",message:"ש×× ××××"},{type:"letter",message:"ת×××× ×× ×ª×§×× ×× ×××× ×",cb:function(e){return!new RegExp("[×-ת]","g").test(e)}},{type:"min",message:"××× ×××× 6 ת××××",value:6},{type:"max",message:"×קס×××× 20 ת××××",value:20},{type:"letter",message:"×פ××ת ××ת ×§×× × ××ת ",cb:function(e){return new RegExp("[a-z]","g").test(e)}},{type:"letter",message:"×פ××ת ××ת ××××× ××ת ",cb:function(e){return new RegExp("[A-Z]","g").test(e)}},{type:"number",message:"×פ××ת ×¡×¤×¨× ××ת",cb:function(e){return new RegExp(/\d/,"g").test(e)}}]},passwordConfirm:{validators:[{type:"required",message:"ש×× ××××"},{type:"match",message:"ס×ס×× ×× ×ª×××ת",cb:function(e,t,n){return e===n.password}}]}})},closeEvent:function(e){this.$emit("close",e)}
2,validateForm:function(e){var t=e.sendGTM,n=!0,r="";Object.values(this.form.controls).forEach((function(e){var t,o=e.comp;o.value&&o.validate(),n=n&&o.valid;var l=null==o||null===(t=o.invalid)||void 0===t?void 0:t.message;l&&(r=r?"".concat(r,"; ").concat(l):l)})),this.isValid=n,r&&t&&window.dataLayer.push({event:"GTM event to GA",GA_event_category:"registration",GA_event_action:"error",GA_event_label:r,element_Initiator:this.elementInitiator||""})},validateMailAndPassword:function(e){var t=this;return m(regeneratorRuntime.mark((function n(){var r,o,l,c,h,d,f,m,A,y;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.preventDefault(),t.form.isValid){n.next=3;break}return n.abrupt("return");case 3:return r=t.form.getValues,o=r.password,l=r.email,n.prev=4,t.isLoading=!0,n.next=8,_.a.post(S,{password:o,email:l.trim()});case 8:t.changeStep("register"),window.dataLayer.push({event:"GTM event to GA",GA_event_category:"registration",GA_event_action:"registration details",GA_event_label:"completed",element_Initiator:t.elementInitiator||""}),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(4),"005"===(null===n.t0||void 0===n.t0||null===(c=n.t0.response)||void 0===c||null===(h=c.data)||void 0===h||null===(d=h.data)||void 0===d?void 0:d.code)?(t.changeStep("already-registered"),window.dataLayer.push({event:"GTM event to GA",GA_event_category:"registration",GA_event_action:"registration helper - login",GA_event_label:"presented",element_Initiator:t.elementInitiator||""})):(y=M[null===n.t0||void 0===n.t0||null===(f=n.t0.response)||void 0===f||null===(m=f.data)||void 0===m||null===(A=m.data)||void 0===A?void 0:A.code]||M["000"],t.notification.error(y),window.dataLayer.push({event:"GTM event to GA",GA_event_category:"registration",GA_event_action:"error",GA_event_label:y,element_Initiator:t.elementInitiator||""}));case 15:return n.prev=15,t.isLoading=!1,n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[4,12,15,18]])})))()}}},j=(n("9681"),F(V,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return"already-registered"===e.step?n("wrapper",{attrs:{title:"×ר×××× ××××× ××תר ××2",subTitle:"××× ×ר××ת ×××ª× ×©××!",innerTitle:"×רש××",innerSubTitle:"ר××× × ×©× ×תק×ת ×××¢×× ××רש×× ××תר.",showHelpFooter:!0,mobileMinimizeHeader:!0}},[n("div",{staticClass:"already-registered-msg"},[e._v(" ××ª× ××ר רש××××, "),n("a",{staticClass:"clickable",on:{click:e.moveToForgotPass}},[e._v("×××פ×ס ס×ס××")])]),n("div",[n("m-button",{staticClass:"btn-continue primary",on:{click:e.moveToLogin}},[e._v(" ××ת××ר×ת ")]),n("div",{staticClass:"already-registered-msg text-center"},[n("a",{staticClass:"clickable",on:{click:function(t){return e.changeStep("email")}}},[e._v("×××ר ××רש××")])])],1)]):n("wrapper",{attrs:{title:"×ר×××× ××××× ××תר ××2",subTitle:"×צ××¨×¤× ××§×××× ×©×× ×!",innerTitle:"×רש××",innerSubTitle:"××× ×ת ×פר××× ××× ×××רש×"}},["email"==e.step?n("form",[n("div",{on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.validateMailAndPassword(t)}}},[n("m-container",[n("m-input",{ref:"emailInput",attrs:{type:"text",label:"×ת××ת ××××",placeholder:"[email protected]",form:e.form,control:"email"},on:{change:function(t){return e.validateForm({sendGTM:!1})},blur:function(t){return e.validateForm({sendGTM:!0})}}})],1),n("br"),n("m-container",[n("m-input",{attrs:{type:e.show?"text":"password",label:"ס×ס××",placeholder:"6 ת××××, ××ת××ת ××× ×××ת ×ספר×",form:e.form,control:"password",suffix:e.show?"mangoi_Show pointer":"mangoi_Hide pointer"},on:{suffixClick:function(t){e.show=!e.show},change:function(t){return e.validateForm({sendGTM:!1})},blur:function(t){return e.validateForm({sendGTM:!0})}}})],1),n("m-container",[n("m-input",{attrs:{type:e.show?"text":"password",placeholder:"×××ר ×¢× ×ס×ס×× ×©××§××ת",label:"",form:e.form,control:"passwordConfirm",suffix:e.show?"mangoi_Show pointer":"mangoi_Hide pointer"},on:{suffixClick:function(t){e.show=!e.show},change:function(t){return e.validateForm({sendGTM:!1})},blur:function(t){return e.validateForm({sendGTM:!0})}}}
2)],1)],1),n("div",[n("m-button",{staticClass:"btn-continue primary register-btn",attrs:{type:"submit",disabled:e.isValid?"false":"true",isLoading:e.isLoading},on:{click:e.validateMailAndPassword}},[e._v(" ×××©× ")]),n("p",{staticClass:"center-text"},[e._v("××ר רש××? "),n("a",{staticClass:"clickable",on:{click:e.moveToLogin}},[e._v("××ת××ר×ת")])])],1)]):n("register-details",{attrs:{form:e.form,elementInitiator:e.elementInitiator},on:{close:e.closeEvent}})],1)}),[],!1,null,"65b6ad6a",null).exports),G=y.a.FormGroup,K={name:"y2-forgot-password",components:{wrapper:H},props:{mail:String,elementInitiator:String},data:function(){return{form:G,step:"mail",showPass:!1,formReset:G,resendCountdown:0,isValid:!1,isLoading:{sendingEmail:!1,validatingCode:!1,resetingPassword:!1}}},created:function(){!function(e,t,s,n,i){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var r=t.getElementsByTagName(s)[0],o=t.createElement(s);o.async=!0,o.src="https://www.googletagmanager.com/gtm.js?id=GTM-T22875",r.parentNode.insertBefore(o,r)}(window,document,"script","dataLayer"),this.form=this.createForm()},computed:{innerSubTitle:function(){switch(this.step){case"reset":return"×××××ש ס×ס××, ××× ×¡×ס×× ××¢×ת 6 ת××××, ×פ××ת ××ת ××ת ×××××, ××ת ××ת ×§×× × ××ספר ×××";case"mail":return"×¢× ×× ×ª ×××ש ס×ס××, ××× ×××× ××§××ת ××× ×§ ×××××ש";default:return""}},resendCountdownText:function(){return this.resendCountdown>0?"(".concat(this.resendCountdown/1e3,")"):""}},methods:{changeStep:function(e){this.step=e.toLowerCase()},moveToRegistration:function(){this.$emit("close",w("006"))},validateForm:function(){var e=!0,form="reset"===this.step?this.formReset:this.form;this.formReset.isValid,Object.values(form.controls).forEach((function(t){var n=t.comp;e=e&&n.valid})),this.isValid=e},createForm:function(){return this.isValid=!1,new G({email:{validators:[{type:"email",message:"×××× ×× ×ª×§××"},{type:"required",message:"ש×× ××××"}],value:"string"==typeof this.mail?this.mail:""}})},startResendCountdown:function(){this.resendCountdown=6e4,this.countdown()},countdown:function(){var e=this;this.resendCountdown>0&&(this.resendCountdown-=1e3,setTimeout((function(){e.countdown()}),1e3))},sendMail:function(){var e=this;return m(regeneratorRuntime.mark((function t(){var n,r,o,l,c,h;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.dataLayer.push({event:"GTM event to GA",GA_event_category:"login",GA_event_action:"password reset",GA_event_label:"send validation code - clicked"}),e.form.isValid&&!(e.resendCountdown>0)){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,e.startResendCountdown(),e.isLoading.sendingEmail=!0,t.next=8,_.a.post(x,e.form.getValues);case 8:e.step="code",e.setCodeValidator(),t.next=17;break;case 12:t.prev=12,t.t0=t.catch(3),"009"==(null===t.t0||void 0===t.t0||null===(n=t.t0.response)||void 0===n||null===(r=n.data)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.code)&&(e.step="non-existing-email"),e.resendCountdown=0,e.notification.error(M[null===t.t0||void 0===t.t0||null===(l=t.t0.response)||void 0===l||null===(c=l.data)||void 0===c||null===(h=c.data)||void 0===h?void 0:h.code]||M["000"]);case 17:return t.prev=17,e.isLoading.sendingEmail=!1,t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[3,12,17,20]])})))()},resendMail:function(){var e=this;return m(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.dataLayer.push({event:"GTM event to GA",GA_event_category:"login",GA_event_action:"password reset",GA_event_label:"send validation code - clicked"}),!(e.resendCountdown>0)){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,e.startResendCountdown(),e.isLoading.sendingEmail=!0,t.next=8,_.a.post(x,e.form.getValues);case 8:t.next=14;break;case 10:t.prev=10,t.t0=t.catch(3),e.resendCountdown=0,e.notification.error(M[null===t.t0||void 0===t.t0||null===(n=t.t0.response)||void 0===n||null===(r=n.data)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.code]||M["000"]);case 14:return t.prev=14,e.isLoading.sendingEmail=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[3,10,14,17]])})))()}
2,setCodeValidator:function(){this.form.addControl("code",{validators:[{type:"required",message:"ש×× ××××"}]}),this.isValid=!1},validateCode:function(){var e=this;return m(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.form.isValid){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,e.isLoading.validatingCode=!0,t.next=6,_.a.post(C,e.form.getValues);case 6:e.step="reset",window.dataLayer.push({event:"GTM event to GA",GA_event_category:"login",GA_event_action:"password reset",GA_event_label:"new password popup - presented"}),e.setPasswordValidators(),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(2),e.notification.error(M[null===t.t0||void 0===t.t0||null===(n=t.t0.response)||void 0===n||null===(r=n.data)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.code]||M["000"]);case 14:return t.prev=14,e.isLoading.validatingCode=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[2,11,14,17]])})))()},setPasswordValidators:function(){this.formReset=new G({password:{validators:[{type:"required",message:"ש×× ××××"},{type:"letter",message:"ת×××× ×× ×ª×§×× ×× ×××× ×",cb:function(e){return!new RegExp("[×-ת]","g").test(e)}},{type:"min",message:"××× ×××× 6 ת××××",value:6},{type:"max",message:"×קס×××× 20 ת××××",value:20},{type:"letter",message:"×פ××ת ××ת ×§×× × ××ת ",cb:function(e){return new RegExp("[a-z]","g").test(e)}},{type:"letter",message:"×פ××ת ××ת ××××× ××ת ",cb:function(e){return new RegExp("[A-Z]","g").test(e)}},{type:"number",message:"×פ××ת ×¡×¤×¨× ××ת",cb:function(e){return new RegExp(/\d/,"g").test(e)}}]},passwordValidate:{validators:[{type:"required",message:"ש×× ××××"},{type:"match",message:"ס×ס×× ×× ×ª×××ת",cb:function(e,t,n){return e===n.password}}]}}),this.isValid=!1},resetPassword:function(){var e=this;return m(regeneratorRuntime.mark((function t(){var n,r,data,o,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.formReset.isValid){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,n={password:e.formReset.getValues.password,code:e.form.getValues.code,email:e.form.getValues.email},e.isLoading.resetingPassword=!0,t.next=7,_.a.post(E,n);case 7:r=t.sent,data=r.data.data,e.step="done",window.dataLayer.push({event:"GTM event to GA",GA_event_category:"login",GA_event_action:"password reset",GA_event_label:"success"}),e.setPasswordValidators(),e.notification.success("ס×ס××ª× ×©×× ×ª× ××צ×××"),e.$emit("close",w("003",{user:data.user})),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(2),e.notification.error(M[null===t.t0||void 0===t.t0||null===(o=t.t0.response)||void 0===o||null===(l=o.data)||void 0===l||null===(c=l.data)||void 0===c?void 0:c.code]||M["000"]);case 19:return t.prev=19,e.isLoading.resetingPassword=!1,t.finish(19);case 22:case"end":return t.stop()}}),t,null,[[2,16,19,22]])})))()}}},$=(n("babb"),F(K,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("wrapper",{attrs:{title:"×ר×××× ××××× ××תר ××2",subTitle:"××× ×ר××ת ×××ª× ×©××!",innerTitle:"××××ש ס×ס××",innerSubTitle:e.innerSubTitle,showHelpFooter:!1,mobileMinimizeHeader:!0}},["non-existing-email"==e.step?[n("div",{staticClass:"not-registered-msg"},[e._v(" ×××× ××ª× ×¢×××× ×× ×¨×©××××? "),n("a",{staticClass:"clickable",on:{click:e.moveToRegistration}},[e._v("××רש××")])]),n("div",[n("m-button",{staticClass:"btn-continue primary",on:{click:function(t){return e.changeStep("mail")}}},[e._v(" × ×¡× ×©×× ")])],1)]:"mail"==e.step?[n("div",{on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.sendMail(t)}}},[n("m-container",[n("m-input",{key:"email",attrs:{type:"email",label:"×ת××ת ××××",placeholder:"[email protected]",form:e.form,control:"email"},on:{change:e.validateForm,isValid:e.validateForm}})],1)],1),n("m-button",{staticClass:"primary",attrs:{disabled:e.isValid?"false":"true",isLoading:e.isLoading.sendingEmail},on:{click:e.sendMail}},[e._v(" ש×× ×§×× ××××ת ××××× ")])]:e._e(),"code"==e.step?[n("div",[n("h5",{staticClass:"action-title"},[e._v(" ××××× ×ש×××ר ס×ס×× × ×©×× ××צ××× ×××××:"),n("br"),n("span",[e._v(e._s(e.form.controls.email.comp.value))]),n("br"),n("a",{class:["cp",e.resendCountdown>0?"resend-disabled":""],on:{click:e.resendMail}},[n("i",{staticClass:"mangoi_rotate_editpicture"}),e._v(" ש×× ×××××× ××××ת ××©× ×ת "+e._s(e.resendCountdownText)+" ")]),n("br")]),n("div",{staticClass:"code-input-wrapper",on:{ke
2yup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.validateCode(t)}}},[n("m-container",[n("m-input",{key:"code",attrs:{type:"text",label:"××× ×¡ ×§×× ×©×××ר",placeholder:"×§×× ×©×××ר",control:"code",form:e.form},on:{change:e.validateForm}})],1)],1)]),n("m-button",{staticClass:"primary",attrs:{disabled:e.isValid?"false":"true",isLoading:e.isLoading.validatingCode},on:{click:e.validateCode}},[e._v(" ש×× ×××××§× ")])]:e._e(),"reset"==e.step?[n("div",{on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.resetPassword(t)}}},[n("m-container",[n("m-input",{key:"password",attrs:{type:e.showPass?"text":"password",label:"ס×ס××",placeholder:"6 ת××××, ××ת××ת ××× ×××ת ××¡×¤×¨× ××ת",form:e.formReset,control:"password",suffix:e.showPass?"mangoi_Show pointer":"mangoi_Hide pointer"},on:{suffixClick:function(t){e.showPass=!e.showPass},change:e.validateForm}})],1),n("m-container",[n("m-input",{key:"passwordValidate",attrs:{type:e.showPass?"text":"password",label:"",placeholder:"××§×× ×ת ×ס×ס×× ×©××רת ש××",form:e.formReset,control:"passwordValidate",suffix:e.showPass?"mangoi_Show pointer":"mangoi_Hide pointer"},on:{suffixClick:function(t){e.showPass=!e.showPass},change:e.validateForm}})],1)],1),n("m-button",{staticClass:"primary btn-continue",attrs:{disabled:e.isValid?"false":"true",isLoading:e.isLoading.resetingPassword},on:{click:e.resetPassword}},[e._v(" ×××©× ")])]:e._e()],2)}),[],!1,null,"828f597e",null).exports),Y=(n("8d0d"),n("ef14"),n("cfce"),n("28eb"),y.a.FormGroup),W={name:"y2-login",components:{wrapper:H},props:{elementInitiator:String},data:function(){return{form:Y,show:!1,step:"login",isValid:!1,isLoading:!1,tryCount:0}},beforeCreate:function(){var e;null===(e=window.ReactNativeWebView)||void 0===e||e.postMessage("onLogin")},created:(N=m(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!function(e,t,s,n,i){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var r=t.getElementsByTagName(s)[0],o=t.createElement(s);o.async=!0,o.src="https://www.googletagmanager.com/gtm.js?id=GTM-T22875",r.parentNode.insertBefore(o,r)}(window,document,"script","dataLayer"),window.dataLayer.push({event:"GTM event to GA",GA_event_category:"login",GA_event_action:"details",GA_event_label:"reached",element_Initiator:this.elementInitiator||""}),this.form=this.createForm();case 3:case"end":return e.stop()}}),e,this)}))),function(){return N.apply(this,arguments)}),methods:{validateForm:function(e){var t=e.sendGTM,n=!0,r="";Object.values(this.form.controls).forEach((function(e){var t,o=e.comp;n=n&&o.valid;var l=null==o||null===(t=o.invalid)||void 0===t?void 0:t.message;l&&(r=r?"".concat(r,"; ").concat(l):l)})),this.isValid=n,r&&t&&window.dataLayer.push({event:"GTM event to GA",GA_event_category:"login",GA_event_action:"error",GA_event_label:r,element_Initiator:this.elementInitiator||""})},moveToRegistration:function(){this.$emit("close",w("006",this.getFilledEmail()))},moveToForgotPassword:function(){this.$emit("close",w("001",this.getFilledEmail()))},changeStep:function(e){this.step=e.toLowerCase()},createForm:function(){return new Y({email:{validators:[{type:"required",message:"ש×× ××××"},{type:"email",message:"××× × ××××××× ×©×××× ××× × ×ª×§××"}]},password:{validators:[{type:"required",message:"ש×× ××××"}]}})},login:(R=m(regeneratorRuntime.mark((function e(t){var n,r,o,l,data,c,h,f,m,A,y,v=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),window.dataLayer.push({event:"GTM event to GA",GA_event_category:"login",GA_event_action:"details",GA_event_label:"completed",element_Initiator:this.elementInitiator||""}),this.form.isValid){e.next=6;break}return n=Object.keys(this.form.errors).reduce((function(e,t){return v.form.errors[t].length&&(e+="".concat(v.form.errors[t].map((function(e){return e.message})).join(",")," ")),e}),""),window.dataLayer.push({event:"GTM event to GA",GA_event_category:"login",GA_event_action:"error",GA_event_label:n,element_Initiator:this.elementInitiator||""}),e.abrupt("return");case 6:return e.prev=6,o=this.form.getValues,this.isLoading=!0,e.next=11,_.a.post("/login",d(d({},o),{},{email:null===(r=o.email)||void 0===r?void 0:r.trim()}));case 11:l=e.sent,data=l.data.data,window.dataLayer.push({event:"GTM event to GA",GA_event_category:"login",GA_event_action:"login success",GA_event_label:"login success",element_Initiator:this.elementInitiator||""}),this.notification.success("×ת××רת ××צ×××"),this.$emit("close",w("002",{user:data.user})),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(6),["011","001"].includes(null===e.t0||void 0===e.t0||null===(c=e.t0.response)||void 0===c||null===(h=c.data)||void 0===h||null===(f=h.data)||void 0===f?void 0:f.code)&&(this.tryCount++,this.tryCount>3&&this.changeStep("failed-login"),window.dataLayer.push({event:"GTM event to GA",GA_event_category:"login",GA_event_action:"login helper - ".concat("001"===e.t0.response.data.data.code?"registration":"password"),GA_event_label:"presented",element_Initiator:this.elementInitiator||""})),this.notification.error(M[null===e.t0||void 0===e.t0||null===(m=e.t0.response)||void 0===m||null===(A=m.data)||void 0===A||null===(y=A.data)||void 0===y?void 0:y.code]||M["000"]);case 22:return e.prev=22,this.isLoading=!1,e.finish(22);case 25:case"end":return e.stop()}}),e,this,[[6,18,22,25]])}))),function(e){return R.apply(this,arguments)}),forgotPassword:function(){this.$emit("close",w("001",this.getFilledEmail()))},getFilledEmail:function(){var e=this.form.controls.email.comp,t=e.validValidators.find((function(e){return"email"===e.type})),n=null;return e.touched&&t.valid&&(n=this.form.getValues.email),n}}},X=(n("d572"),F(W,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{height:"100%"}},["failed-login"===e.step?n("wrapper",{attrs:{title:"×ר×××× ××××× ××תר ××2",subTitle:"××× ×ר××ת ×××ª× ×©××!",innerTitle:"×ת××ר×ת",innerSubTitle:"ר××× × ×©× ×תק×ת ×××¢×× ××ת××ר×ת ××תר.",showHelpFooter:!0,mobileMinimizeHeader:!0}},[n("div",[n("div",{staticClass:"helper-msg"},[e._v(" ×× ×××ר×× ×ת ×ס×ס××? "),n("a",{staticClass:"clickable",on:{click:e.moveToForgotPassword}},[e._v("×××פ×ס ס×ס××")])]),n("div",{staticClass:"helper-msg"},[e._v(" ×××× ××ª× ×¢×××× ×× ×¨×©××××? "),n("a",{staticClass:"clickable",on:{click:e.moveToRegistration}},[e._v("××רש××")])])]),n("div",[n("m-button",{staticClass:"btn-continue primary",on:{click:function(t){return e.changeStep("login")}}}
2,[e._v(" × ×¡× ××ת××ר ש×× ")])],1)]):e._e(),"login"===e.step?n("wrapper",{attrs:{title:"×ר×××× ××××× ××תר ××2",subTitle:"××× ×ר××ת ×××ª× ×©××!",innerTitle:"×ת××ר×ת",innerSubTitle:"××× ×ת ×פר××× ××× ××ת××ר"}},[n("form",[n("div",{staticClass:"input-wrapper"},[n("m-container",[n("m-input",{attrs:{type:"email",label:"×ת××ת ××××",placeholder:"[email protected]",form:e.form,control:"email"},on:{change:function(t){return e.validateForm({sendGTM:!1})},blur:function(t){return e.validateForm({sendGTM:!0})}}})],1),n("m-container",[n("m-input",{attrs:{type:e.show?"text":"password",label:"ס×ס××",placeholder:"××§×× ×¡×ס××",form:e.form,control:"password",suffix:e.show?"mangoi_Show pointer":"mangoi_Hide pointer"},on:{suffixClick:function(t){e.show=!e.show},change:function(t){return e.validateForm({sendGTM:!1})},blur:function(t){return e.validateForm({sendGTM:!0})}}})],1),n("div",{staticClass:"forgot-password-container"},[n("a",{staticClass:"btn-forgot-pass clickable",on:{click:e.forgotPassword}},[e._v("ש×××ª× ×¡×ס××")])])],1),n("div",[n("m-button",{staticClass:"btn-continue primary login-btn",attrs:{type:"submit",disabled:e.isValid?"false":"true",isLoading:e.isLoading},on:{click:e.login}},[e._v("×ת××ר")]),n("div",{staticClass:"center-text"},[e._v("×× ×¨×©××? "),n("a",{staticClass:"clickable",on:{click:e.moveToRegistration}},[e._v("××רש××")])])],1)])]):e._e()],1)}),[],!1,null,"090dd09f",null).exports),J=(n("41ab"),y.a.FormGroup),Z={name:"y2-verify-email-by-code",components:{wrapper:H},props:{elementInitiator:String},data:function(){return{form:J,step:"send",show:!1,loadingUser:!0,email:"",cooldown:{isSendEmail:!1,isVerifyCode:!1}}},created:function(){var e=this;window.dataLayer.push({event:"GTM event to GA",GA_event_category:"login",GA_event_action:"email validation",GA_event_label:"validation popup presented",element_Initiator:this.elementInitiator||""}),this.form=this.createForm(),_.a.connectedUser().then((function(t){if(!t||!t.Email)throw new Error("No user data was received");e.email=t.Email})).catch((function(){return e.$emit("close",w("008"))})).finally((function(){return e.loadingUser=!e.loadingUser}))},methods:{setCooldown:function(e){var t=this,n="";"email"===e?n="isSendEmail":"code"===e&&(n="isVerifyCode"),n&&(this.cooldown=d(d({},this.cooldown),{},c({},n,!0)),setTimeout((function(){t.cooldown=d(d({},t.cooldown),{},c({},n,!1))}),3e3))},createForm:function(){return new J({code:{validators:[{type:"required",message:"ש×× ××××"}]}})},changeStep:function(e){this.step=e},sendCodeToEmail:function(){var e=this;return m(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.dataLayer.push({event:"GTM event to GA",GA_event_category:"login",GA_event_action:"email validation",GA_event_label:"validation popup clicked",element_Initiator:e.elementInitiator||""}),!e.cooldown.isSendEmail){t.next=3;break}return t.abrupt("return");case 3:return e.setCooldown("email"),t.prev=4,t.next=7,_.a.post(k,{email:e.email});case 7:e.changeStep("code"),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(4),e.notification.error(M[null===t.t0||void 0===t.t0||null===(n=t.t0.response)||void 0===n||null===(r=n.data)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.code]||M["000"]);case 13:case"end":return t.stop()}}),t,null,[[4,10]])})))()},validateCode:function(){var e=this;return m(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.form.isValid&&!e.cooldown.isVerifyCode){t.next=2;break}return t.abrupt("return");case 2:return e.setCooldown("code"),t.prev=3,t.next=6,_.a.post(C,d(d({},e.form.getValues),{},{email:e.email}));case 6:e.changeStep("verified"),window.dataLayer.push({event:"GTM event to GA",GA_event_category:"login",GA_event_action:"email validation",GA_event_label:"success",element_Initiator:e.elementInitiator||""}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),e.notification.error(M[null===t.t0||void 0===t.t0||null===(n=t.t0.response)||void 0===n||null===(r=n.data)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.code]||M["000"]);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})))()},close:function(){this.$emit("close",w("007"))}}},ee=(n("afac"),F(Z,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.loadingUser?n("div",[n("div",{staticClass:"center-content"},[n("m-loader")],1)]):"verified"===e.step?n("div",{staticClass:"center-content user-verified"},[n("i",{staticClass:"mangoi_CheckSmall"}),n("div",[e._v("×ש××× × ×××2 ×××ת ××צ×××")]),n("a",{attrs:{href:"/"}},[n("m-button",[e._v(" ×××¨× ××תר ××2 ")])],1)]):n("div",[n("wrapper",{attrs:{title:"ש×××× ×ר××ת ×××ª× ××תר ××2!",subTitle:"×צ××¨×¤× ××§×××× ×©×× ×!",innerTitle:"××××ת ×ש×××",showHelpFooter:"code"===e.step}},["send"===e.step?[n("div",{staticClass:"verify-msg"},[e._v(" ×¢× ×× ×ª ×ש××ר ×¢× ×¤×¨××××ª× ×××××ת ××ש××× ×××2 ×ש ××צע ××××ת. ")]),n("m-button",{staticClass:"btn-continue primary",on:{click:e.sendCodeToEmail}},[e._v(" ××ת ×ש××× ")]),n("div",{staticClass:"verify-msg clickable spanish-grey center-text",on:{click:e.close}},[e._v(" ×× ×ª×××, ××¤×¢× ××רת ")])]:"code"===e.step?[n("div",{on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.validateCode(t)}}}
2,[n("m-container",[n("m-input",{key:"code",attrs:{type:"text",label:"×§×× ××××ת",placeholder:"××× ×¡ ×ת ×§×× ×××××ת",control:"code",form:e.form}})],1)],1),n("p",[e._v("××§×× × ×©×× × "),n("b",[e._v(e._s(e.email))])]),n("p",[e._v("×× ×§×××ת ×§×× ××××ת? "),n("a",{staticClass:"clickable",on:{click:e.sendCodeToEmail}},[e._v("ש×× ×§×× ××©× ×ת")])]),n("m-button",{staticClass:"primary",on:{click:e.validateCode}},[e._v(" ××ת ×ש××× ")])]:e._e()],2)],1)}),[],!1,null,"460cf4c4",null).exports);n("9531"),n("c78b"),n("f3b8"),n("62c8"),n("918c"),n("0a6e");n("8d0f"),n("68b8");n("8423"),n("33ef"),n("868d");function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function ne(e,t){if(e){if("string"==typeof e)return te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}function re(e,i){return function(e){if(Array.isArray(e))return e}(e)||function(e,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,o=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done)&&(t.push(l.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return t}}(e,i)||ne(e,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=ne(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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,l=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw o}}}}var se={name:"y2-verify-email-by-token",data:function(){return{step:"validating",logoURL:"//assets.yad2.co.il/yad2site/y2assets/images/header/yad2Logo.png"}},props:{elementInitiator:String},computed:{title:function(){switch(this.step){case"validating":return M["016"];case"validated":return M["019"];case"invalid":return M["018"];default:return M["000"]}}},methods:{setStep:function(e){switch(e){case 200:this.step="validated";break;case 400:this.step="invalid";break;default:this.step="unknown"}},redirect:function(e){var t=e.split("://")[1].split("/")[0];I.includes(t)&&setTimeout((function(){window.location=e}),5e3)}},created:function(){var e=this;return m(regeneratorRuntime.mark((function t(){var n,r,o,l,c,h,d,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=new URLSearchParams(location.search),r={},o=ie(n);try{for(o.s();!(l=o.n()).done;)c=re(l.value,2),h=c[0],d=c[1],r[h]=d}catch(e){o.e(e)}finally{o.f()}return t.prev=4,t.next=7,_.a.post(B,{token:r.token});case 7:f=t.sent,e.setStep(null==f?void 0:f.status),200==(null==f?void 0:f.status)&&window.dataLayer.push({event:"GTM event to GA",GA_event_category:"registration",GA_event_action:"email validation",GA_event_label:"success",element_Initiator:e.elementInitiator||""}),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(4),e.setStep(null===t.t0||void 0===t.t0?void 0:t.t0.status);case 15:e.redirect(r.callbackURL||"https://yad2.co.il");case 16:case"end":return t.stop()}}),t,null,[[4,12]])})))()}},ae=(n("fe6c"),F(se,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{staticClass:"header"},[t("a",{attrs:{href:"/"}},[t("img",{attrs:{src:this.logoURL,alt:"Yad2"}})])]),t("div",{staticClass:"content"},[t("div",{staticClass:"card"},[t("div",[t("h3",[this._v(this._s(this.title)+", ×¢×× ×¨××¢ × ×¢××ר ×××ª× ××תר")]),t("m-loader")],1),this._m(0)])])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("hr"),t("div",[this._v("×× ××× ×× ×××¢×ר×× ××¢××× ×××ת ××¢×× ×ספר ר××¢×× "),t("a",{attrs:{href:"/"}},[this._v("×××¦× ×××")])])])}
vendor: 4,792 bytes, line 2
2],!1,null,"2cba25d3",null).exports),oe=(n("aa62"),{Y2Register:j,Y2ForgotPassword:$,Y2Login:X,Y2VerifyEmailByCode:ee,Y2VerifyEmailByToken:ae}),main=d({installed:!1,install:function(e){if(!this.installed){for(var t in this.installed=!0,oe)e.component(t,oe[t]);e.use(y.a)}}},oe);t.default=main},"1d8a":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},"1f5e":function(e,t,n){var r=n("378c"),o=n("b495"),l=n("9a0f"),c=function(e){return function(t,n,c){var h,d=r(t),f=o(d.length),m=l(c,f);if(e&&n!=n){for(;f>m;)if((h=d[m++])!=h)return!0}else for(;f>m;m++)if((e||m in d)&&d[m]===n)return e||m||0;return!e&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},"20e0":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},2117:function(e,t,n){var r=n("8697");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(a){return e.call(t,a)};case 2:return function(a,b){return e.call(t,a,b)};case 3:return function(a,b,n){return e.call(t,a,b,n)}}return function(){return e.apply(t,arguments)}}},"238e":function(e,t,n){n("fa46")(Math,"Math",!0)},2402:function(e,t){t.f=Object.getOwnPropertySymbols},2435:function(e,t,n){var r,o,l,c=n("f498"),h=n("72df"),d=n("6a61"),f=n("2117"),html=n("9324"),m=n("f2bf"),A=n("e03e"),y=c.location,v=c.setImmediate,_=c.clearImmediate,w=c.process,x=c.MessageChannel,E=c.Dispatch,C=0,S={},T=function(e){if(S.hasOwnProperty(e)){var t=S[e];delete S[e],t()}},B=function(e){return function(){T(e)}},k=function(e){T(e.data)},I=function(e){c.postMessage(e+"",y.protocol+"//"+y.host)};v&&_||(v=function(e){for(var t=[],i=1;arguments.length>i;)t.push(arguments[i++]);return S[++C]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(C),C},_=function(e){delete S[e]},"process"==d(w)?r=function(e){w.nextTick(B(e))}:E&&E.now?r=function(e){E.now(B(e))}:x&&!A?(l=(o=new x).port2,o.port1.onmessage=k,r=f(l.postMessage,l,1)):!c.addEventListener||"function"!=typeof postMessage||c.importScripts||h(I)||"file:"===y.protocol?r="onreadystatechange"in m("script")?function(e){html.appendChild(m("script")).onreadystatechange=function(){html.removeChild(this),T(e)}}:function(e){setTimeout(B(e),0)}:(r=I,c.addEventListener("message",k,!1))),e.exports={set:v,clear:_}},2514:function(e,t,n){var r=n("157c");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var l=e.return;throw void 0!==l&&r(l.call(e)),t}}},"26d3":function(e,t,n){"use strict";var r,o,l,c,h=n("6b1d"),d=n("0e93"),f=n("f498"),m=n("5428"),A=n("2903"),y=n("b8ba"),v=n("b203"),_=n("fa46"),w=n("0a1e"),x=n("7526"),E=n("8697"),C=n("4cce"),S=n("6a61"),T=n("df6f"),B=n("b578"),k=n("3211"),I=n("433a"),M=n("2435").set,P=n("8573"),D=n("9c36"),U=n("422d"),O=n("881c"),F=n("42ba"),R=n("cdcd"),N=n("ebac"),L=n("7d53"),z=n("4fed"),H=L("species"),Q="Promise",V=R.get,j=R.set,G=R.getterFor(Q),K=A,$=f.TypeError,Y=f.document,W=f.process,X=m("fetch"),J=O.f,Z=J,ee="process"==S(W),te=!!(Y&&Y.createEvent&&f.dispatchEvent),ne=N(Q,(function(){if(!(T(K)!==String(K))){if(66===z)return!0;if(!ee&&"function"!=typeof PromiseRejectionEvent)return!0}if(d&&!K.prototype.finally)return!0;if(z>=51&&/native code/.test(K))return!1;var e=K.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[H]=t,!(e.then((function(){}))instanceof t)})),re=ne||!k((function(e){K.all(e).catch((function(){}))})),ie=function(e){var t;return!(!x(e)||"function"!=typeof(t=e.then))&&t},se=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;P((function(){for(var o=t.value,l=1==t.state,c=0;r.length>c;){var h,d,f,m=r[c++],A=l?m.ok:m.fail,y=m.resolve,v=m.reject,_=m.domain;try{A?(l||(2===t.rejection&&ce(e,t),t.rejection=1),!0===A?h=o:(_&&_.enter(),h=A(o),_&&(_.exit(),f=!0)),h===m.promise?v($("Promise-chain cycle")):(d=ie(h))?d.call(h,y,v):y(h)):v(o)}catch(e){_&&!f&&_.exit(),v(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&oe(e,t)}))}},ae=function(e,t,n){var r,o;te?((r=Y.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),f.dispatchEvent(r)):r={promise:t,reason:n},(o=f["on"+e])?o(r):"unhandledrejection"===e&&U("Unhandled promise rejection",n)},oe=function(e,t){M.call(f,(function(){var n,r=t.value;if(le(t)&&(n=F((function(){ee?W.emit("unhandledRejection",r,e):ae("unhandledrejection",e,r)})),t.rejection=ee||le(t)?2:1,n.error))throw n.value}))},le=function(e){return 1!==e.rejection&&!e.parent},ce=function(e,t){M.call(f,(function(){ee?W.emit("rejectionHandled",e):ae("rejectionhandled",e,t.value)}))},ue=function(e,t,n,r){return function(o){e(t,n,o,r)}},he=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,se(e,t,!0))},de=function e(t,n,r,o){if(!n.done){n.done=!0,o&&(n=o);
vendor: 4,298 bytes, line 2
2try{if(t===r)throw $("Promise can't be resolved itself");var l=ie(r);l?P((function(){var o={done:!1};try{l.call(r,ue(e,t,o,n),ue(he,t,o,n))}catch(e){he(t,o,e,n)}})):(n.value=r,n.state=1,se(t,n,!1))}catch(e){he(t,{done:!1},e,n)}}};ne&&(K=function(e){C(this,K,Q),E(e),r.call(this);var t=V(this);try{e(ue(de,this,t),ue(he,this,t))}catch(e){he(this,t,e)}},(r=function(e){j(this,{type:Q,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=v(K.prototype,{then:function(e,t){var n=G(this),r=J(I(this,K));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=ee?W.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&se(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=V(e);this.promise=e,this.resolve=ue(de,e,t),this.reject=ue(he,e,t)},O.f=J=function(e){return e===K||e===l?new o(e):Z(e)},d||"function"!=typeof A||(c=A.prototype.then,y(A.prototype,"then",(function(e,t){var n=this;return new K((function(e,t){c.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof X&&h({global:!0,enumerable:!0,forced:!0},{fetch:function(input){return D(K,X.apply(f,arguments))}}))),h({global:!0,wrap:!0,forced:ne},{Promise:K}),_(K,Q,!1,!0),w(Q),l=m(Q),h({target:Q,stat:!0,forced:ne},{reject:function(e){var t=J(this);return t.reject.call(void 0,e),t.promise}}),h({target:Q,stat:!0,forced:d||ne},{resolve:function(e){return D(d&&this===l?K:this,e)}}),h({target:Q,stat:!0,forced:re},{all:function(e){var t=this,n=J(t),r=n.resolve,o=n.reject,l=F((function(){var n=E(t.resolve),l=[],c=0,h=1;B(e,(function(e){var d=c++,f=!1;l.push(void 0),h++,n.call(t,e).then((function(e){f||(f=!0,l[d]=e,--h||r(l))}),o)})),--h||r(l)}));return l.error&&o(l.value),n.promise},race:function(e){var t=this,n=J(t),r=n.reject,o=F((function(){var o=E(t.resolve);B(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},"275a":function(e,t,n){"use strict";var r=n("1586");function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},"28eb":function(e,t,n){"use strict";var r=n("6b1d"),o=n("98f3").left,l=n("7f8a"),c=n("ce71"),h=l("reduce"),d=c("reduce",{1:0});r({target:"Array",proto:!0,forced:!h||!d},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},2903:function(e,t,n){var r=n("f498");e.exports=r.Promise},"2aa5":function(e,t,n){"use strict";var r=n("6b1d"),o=n("42c5");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},"2abb":function(e,t,n){"use strict";n("9531");var r=n("6b1d"),o=n("5428"),l=n("5e39"),c=n("b8ba"),h=n("b203"),d=n("fa46"),f=n("2e3f"),m=n("cdcd"),A=n("4cce"),y=n("f1a7"),v=n("2117"),_=n("da06"),w=n("157c"),x=n("7526"),E=n("82e8"),C=n("9618"),S=n("3f5a"),T=n("0446"),B=n("7d53"),k=o("fetch"),I=o("Headers"),M=B("iterator"),P=m.set,D=m.getterFor("URLSearchParams"),U=m.getterFor("URLSearchParamsIterator"),O=/\+/g,F=Array(4),R=function(e){return F[e-1]||(F[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},N=function(e){try{return decodeURIComponent(e)}catch(t){return e}},L=function(e){var t=e.replace(O," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(R(n--),N);return t}},z=/[!'()~]|%20/g,H={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Q=function(e){return H[e]},V=function(e){return encodeURIComponent(e).replace(z,Q)},j=function(e,t){if(t)for(var n,r,o=t.split("&"),l=0;l<o.length;)(n=o[l++]).length&&(r=n.split("="),e.push({key:L(r.shift()),value:L(r.join("="))}))},G=function(e){this.entries.length=0,j(this.entries,e)},K=function(e,t){if(e<t)throw TypeError("Not enough arguments")},$=f((function(e,t){P(this,{type:"URLSearchParamsIterator",iterator:S(D(e).entries),kind:t})}),"Iterator",(function(){var e=U(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),Y=function(){A(this,Y,"URLSearchParams");var e,t,n,r,o,l,c,h,d,f=arguments.length>0?arguments[0]:void 0,m=this,v=[];
vendor: 4,226 bytes, line 2
2if(P(m,{type:"URLSearchParams",entries:v,updateURL:function(){},updateSearchParams:G}),void 0!==f)if(x(f))if("function"==typeof(e=T(f)))for(n=(t=e.call(f)).next;!(r=n.call(t)).done;){if((c=(l=(o=S(w(r.value))).next).call(o)).done||(h=l.call(o)).done||!l.call(o).done)throw TypeError("Expected sequence with length 2");v.push({key:c.value+"",value:h.value+""})}else for(d in f)y(f,d)&&v.push({key:d,value:f[d]+""});else j(v,"string"==typeof f?"?"===f.charAt(0)?f.slice(1):f:f+"")},W=Y.prototype;h(W,{append:function(e,t){K(arguments.length,2);var n=D(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){K(arguments.length,1);for(var t=D(this),n=t.entries,r=e+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){K(arguments.length,1);for(var t=D(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){K(arguments.length,1);for(var t=D(this).entries,n=e+"",r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){K(arguments.length,1);for(var t=D(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){K(arguments.length,1);for(var n,r=D(this),o=r.entries,l=!1,c=e+"",h=t+"",d=0;d<o.length;d++)(n=o[d]).key===c&&(l?o.splice(d--,1):(l=!0,n.value=h));l||o.push({key:c,value:h}),r.updateURL()},sort:function(){var e,t,n,r=D(this),o=r.entries,l=o.slice();for(o.length=0,n=0;n<l.length;n++){for(e=l[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=D(this).entries,r=v(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new $(this,"keys")},values:function(){return new $(this,"values")},entries:function(){return new $(this,"entries")}},{enumerable:!0}),c(W,M,W.entries),c(W,"toString",(function(){for(var e,t=D(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(V(e.key)+"="+V(e.value));return n.join("&")}),{enumerable:!0}),d(Y,"URLSearchParams"),r({global:!0,forced:!l},{URLSearchParams:Y}),l||"function"!=typeof k||"function"!=typeof I||r({global:!0,enumerable:!0,forced:!0},{fetch:function(input){var e,body,t,n=[input];return arguments.length>1&&(e=arguments[1],x(e)&&(body=e.body,"URLSearchParams"===_(body)&&((t=e.headers?new I(e.headers):new I).has("content-type")||t.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=E(e,{body:C(0,String(body)),headers:C(0,t)}))),n.push(e)),k.apply(this,n)}}),e.exports={URLSearchParams:Y,getState:D}},"2c93":function(e,t,n){"use strict";var r=n("95b2"),o=n("157c"),l=n("730c"),c=n("14d0"),h=n("df8c");r("search",1,(function(e,t,n){return[function(t){var n=l(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var l=o(e),d=String(this),f=l.lastIndex;c(f,0)||(l.lastIndex=0);var m=h(l,d);return c(l.lastIndex,f)||(l.lastIndex=f),null===m?-1:m.index}]}))},"2d6d":function(e,t,n){"use strict";var r=n("6b1d"),o=n("d054").filter,l=n("189b"),c=n("ce71"),h=l("filter"),d=c("filter");r({target:"Array",proto:!0,forced:!h||!d},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"2dd8":function(e,t,n){"use strict";var r=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,l="Overflow: input needs wider integers to process",c=Math.floor,h=String.fromCharCode,d=function(e){return e+22+75*(e<26)},f=function(e,t,n){var r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;r+=36)e=c(e/35);return c(r+36*e/(e+38))},m=function(input){var i,e,output=[],t=(input=function(e){for(var output=[],t=0,n=e.length;t<n;){var r=e.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var o=e.charCodeAt(t++);56320==(64512&o)?output.push(((1023&r)<<10)+(1023&o)+65536):(output.push(r),t--)}else output.push(r)}return output}(input)).length,n=128,r=0,o=72;for(i=0;i<input.length;i++)(e=input[i])<128&&output.push(h(e));var m=output.length,A=m;for(m&&output.push("-");A<t;){var y=2147483647;for(i=0;i<input.length;i++)(e=input[i])>=n&&e<y&&(y=e);var v=A+1;if(y-n>c((2147483647-r)/v))throw RangeError(l);for(r+=(y-n)*v,n=y,i=0;i<input.length;i++){if((e=input[i])<n&&++r>2147483647)throw RangeError(l);
vendor: 4,610 bytes, line 2
2if(e==n){for(var q=r,_=36;;_+=36){var w=_<=o?1:_>=o+26?26:_-o;if(q<w)break;var x=q-w,E=36-w;output.push(h(d(w+x%E))),q=c(x/E)}output.push(h(d(q))),o=f(r,v,A==m),r=0,++A}}++r,++n}return output.join("")};e.exports=function(input){var i,label,e=[],t=input.toLowerCase().replace(o,".").split(".");for(i=0;i<t.length;i++)label=t[i],e.push(r.test(label)?"xn--"+m(label):label);return e.join(".")}},"2df4":function(e,t,n){"use strict";var r=n("6b1d"),o=n("2e3f"),l=n("0e39"),c=n("c1a2"),h=n("fa46"),d=n("5b12"),f=n("b8ba"),m=n("7d53"),A=n("0e93"),y=n("5bb7"),v=n("ff89"),_=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,x=m("iterator"),E=function(){return this};e.exports=function(e,t,n,m,v,C,S){o(n,t,m);var T,B,k,I=function(e){if(e===v&&O)return O;if(!w&&e in D)return D[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",P=!1,D=e.prototype,U=D[x]||D["@@iterator"]||v&&D[v],O=!w&&U||I(v),F="Array"==t&&D.entries||U;if(F&&(T=l(F.call(new e)),_!==Object.prototype&&T.next&&(A||l(T)===_||(c?c(T,_):"function"!=typeof T[x]&&d(T,x,E)),h(T,M,!0,!0),A&&(y[M]=E))),"values"==v&&U&&"values"!==U.name&&(P=!0,O=function(){return U.call(this)}),A&&!S||D[x]===O||d(D,x,O),y[t]=O,v)if(B={values:I("values"),keys:C?O:I("keys"),entries:I("entries")},S)for(k in B)(w||P||!(k in D))&&f(D,k,B[k]);else r({target:t,proto:!0,forced:w||P},B);return B}},"2e3f":function(e,t,n){"use strict";var r=n("ff89").IteratorPrototype,o=n("82e8"),l=n("9618"),c=n("fa46"),h=n("5bb7"),d=function(){return this};e.exports=function(e,t,n){var f=t+" Iterator";return e.prototype=o(r,{next:l(1,n)}),c(e,f,!1,!0),h[f]=d,e}},"2ea2":function(e,t,n){"use strict";var r=n("8aef"),o=n("3ad5");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"2f6a":function(e,t,n){"use strict";var r=n("72df");function o(s,e){return RegExp(s,e)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},3211:function(e,t,n){var r=n("7d53")("iterator"),o=!1;try{var l=0,c={next:function(){return{done:!!l++}},return:function(){o=!0}};c[r]=function(){return this},Array.from(c,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var object={};object[r]=function(){return{next:function(){return{done:n=!0}}}},e(object)}catch(e){}return n}},"32f5":function(e,t,n){"use strict";var r=n("95b2"),o=n("157c"),l=n("37d1"),c=n("b495"),h=n("8bb2"),d=n("730c"),f=n("e3f6"),m=n("df8c"),A=Math.max,y=Math.min,v=Math.floor,_=/\$([$&'`]|\d\d?|<[^>]*>)/g,w=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var x=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,E=r.REPLACE_KEEPS_$0,C=x?"$":"$0";return[function(n,r){var o=d(this),l=null==n?void 0:n[e];return void 0!==l?l.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!x&&E||"string"==typeof r&&-1===r.indexOf(C)){var l=n(t,e,this,r);if(l.done)return l.value}var d=o(e),v=String(this),_="function"==typeof r;_||(r=String(r));var w=d.global;if(w){var T=d.unicode;d.lastIndex=0}for(var B=[];;){var k=m(d,v);if(null===k)break;if(B.push(k),!w)break;""===String(k[0])&&(d.lastIndex=f(v,c(d.lastIndex),T))}for(var I,M="",P=0,i=0;i<B.length;i++){k=B[i];for(var D=String(k[0]),U=A(y(h(k.index),v.length),0),O=[],F=1;F<k.length;F++)O.push(void 0===(I=k[F])?I:String(I));var R=k.groups;if(_){var N=[D].concat(O,U,v);void 0!==R&&N.push(R);var L=String(r.apply(void 0,N))}else L=S(D,v,U,O,R,r);U>=P&&(M+=v.slice(P,U)+L,P=U+D.length)}return M+v.slice(P)}];function S(e,n,r,o,c,h){var d=r+e.length,f=o.length,m=w;return void 0!==c&&(c=l(c),m=_),t.call(h,m,(function(t,l){var h;switch(l.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(d);case"<":h=c[l.slice(1,-1)];break;default:var m=+l;if(0===m)return t;if(m>f){var A=v(m/10);return 0===A?t:A<=f?void 0===o[A-1]?l.charAt(1):o[A-1]+l.charAt(1):t}h=o[m-1]}return void 0===h?"":h}))}}))},"332c":function(e,t,n){var r=n("4cdd"),o=n("1d8a"),l=r("keys");e.exports=function(e){return l[e]||(l[e]=o(e))}},"338e":function(e,t,n){"use strict";e.exports=function(e,t,code,n,r){return e.config=t,code&&(e.code=code),e.request=n,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},"33ef":function(e,t,n){"use strict";
2var r=n("6b1d"),o=n("7526"),l=n("c6de"),c=n("9a0f"),h=n("b495"),d=n("378c"),f=n("dac6"),m=n("7d53"),A=n("189b"),y=n("ce71"),v=A("slice"),_=y("slice",{ACCESSORS:!0,0:0,1:2}),w=m("species"),x=[].slice,E=Math.max;r({target:"Array",proto:!0,forced:!v||!_},{slice:function(e,t){var n,r,m,A=d(this),y=h(A.length),v=c(e,y),_=c(void 0===t?y:t,y);if(l(A)&&("function"!=typeof(n=A.constructor)||n!==Array&&!l(n.prototype)?o(n)&&null===(n=n[w])&&(n=void 0):n=void 0,n===Array||void 0===n))return x.call(A,v,_);for(r=new(void 0===n?Array:n)(E(_-v,0)),m=0;v<_;v++,m++)v in A&&f(r,m,A[v]);return r.length=m,r}})},"378c":function(e,t,n){var r=n("83a6"),o=n("730c");e.exports=function(e){return r(o(e))}},"37d1":function(e,t,n){var r=n("730c");e.exports=function(e){return Object(r(e))}},"37fe":function(e,t,n){"use strict";var r=n("3f48");e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],l=["headers","auth","proxy","params"],c=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],h=["validateStatus"];function d(e,source){return r.isPlainObject(e)&&r.isPlainObject(source)?r.merge(e,source):r.isPlainObject(source)?r.merge({},source):r.isArray(source)?source.slice():source}function f(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=d(void 0,e[o])):n[o]=d(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=d(void 0,t[e]))})),r.forEach(l,f),r.forEach(c,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=d(void 0,e[o])):n[o]=d(void 0,t[o])})),r.forEach(h,(function(r){r in t?n[r]=d(e[r],t[r]):r in e&&(n[r]=d(void 0,e[r]))}));var m=o.concat(l).concat(c).concat(h),A=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===m.indexOf(e)}));return r.forEach(A,f),n}},"3ad5":function(e,t,n){"use strict";var r=n("abdf").f,o=n("82e8"),l=n("b203"),c=n("2117"),h=n("4cce"),d=n("b578"),f=n("2df4"),m=n("0a1e"),A=n("d4cb"),y=n("e023").fastKey,v=n("cdcd"),_=v.set,w=v.getterFor;e.exports={getConstructor:function(e,t,n,f){var m=e((function(e,r){h(e,m,t),_(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),A||(e.size=0),null!=r&&d(r,e[f],e,n)})),v=w(t),x=function(e,t,n){var r,o,l=v(e),c=E(e,t);return c?c.value=n:(l.last=c={index:o=y(t,!0),key:t,value:n,previous:r=l.last,next:void 0,removed:!1},l.first||(l.first=c),r&&(r.next=c),A?l.size++:e.size++,"F"!==o&&(l.index[o]=c)),e},E=function(e,t){var n,r=v(e),o=y(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return l(m.prototype,{clear:function(){for(var e=v(this),data=e.index,t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),delete data[t.index],t=t.next;e.first=e.last=void 0,A?e.size=0:this.size=0},delete:function(e){var t=v(this),n=E(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),A?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=v(this),r=c(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!E(this,e)}}),l(m.prototype,n?{get:function(e){var t=E(this,e);return t&&t.value},set:function(e,t){return x(this,0===e?0:e,t)}}:{add:function(e){return x(this,e=0===e?0:e,e)}}),A&&r(m.prototype,"size",{get:function(){return v(this).size}}),m},setStrong:function(e,t,n){var r=t+" Iterator",o=w(t),l=w(r);f(e,t,(function(e,t){_(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=l(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),m(t)}}},"3b70":function(e,t,n){"use strict";var r=n("3f48");function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},"3cec":function(e,t,n){var r={};r[n("7d53")("toStringTag")]="z",e.exports="[object z]"===String(r)},"3e32":function(e,t,n){var r=n("7d53")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},"3e34":function(e,t,n){var r=n("f498"),o=n("5b12");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},"3e36":function(e,t,n){var r=n("f498");e.exports=r},"3f48":function(e,t,n){"use strict";var r=n("bdf1"),o=Object.prototype.toString;function l(e){return"[object Array]"===o.call(e)}function c(e){return void 0===e}function h(e){return null!==e&&"object"==typeof e}function d(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function f(e){return"[object Function]"===o.call(e)}function m(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:l,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:h,isPlainObject:d,isUndefined:c,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:f,isStream:function(e){return h(e)&&f(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}
2,forEach:m,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var i=0,r=arguments.length;i<r;i++)m(arguments[i],n);return t},extend:function(a,b,e){return m(b,(function(t,n){a[n]=e&&"function"==typeof t?r(t,e):t})),a},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(content){return 65279===content.charCodeAt(0)&&(content=content.slice(1)),content}}},"3f5a":function(e,t,n){var r=n("157c"),o=n("0446");e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},"405b":function(e,t,n){var r,o,l;"undefined"!=typeof self&&self,o=[],void 0===(l="function"==typeof(r=function(){return 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(e){var n,r,o,l=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(e.stack),c=l&&l[1]||!1,line=l&&l[2]||!1,h=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");c===h&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(line-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var i=0;i<d.length;i++){if("interactive"===d[i].readyState)return d[i];if(d[i].src===c)return d[i];if(c===h&&d[i].innerHTML&&d[i].innerHTML.trim()===o)return d[i]}return null}}})?r.apply(t,o):r)||(e.exports=l)},"41ab":function(e,t,n){"use strict";var r=n("6b1d"),o=n("0e93"),l=n("2903"),c=n("72df"),h=n("5428"),d=n("433a"),f=n("9c36"),m=n("b8ba");r({target:"Promise",proto:!0,real:!0,forced:!!l&&c((function(){l.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=d(this,h("Promise")),n="function"==typeof e;return this.then(n?function(n){return f(t,e()).then((function(){return n}))}:e,n?function(n){return f(t,e()).then((function(){throw n}))}:e)}}),o||"function"!=typeof l||l.prototype.finally||m(l.prototype,"finally",h("Promise").prototype.finally)},"422d":function(e,t,n){var r=n("f498");e.exports=function(a,b){var e=r.console;e&&e.error&&(1===arguments.length?e.error(a):e.error(a,b))}},"42ba":function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},"42c5":function(e,t,n){"use strict";var r,o,l=n("abfd"),c=n("2f6a"),h=RegExp.prototype.exec,d=String.prototype.replace,f=h,m=(r=/a/,o=/b*/g,h.call(r,"a"),h.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),A=c.UNSUPPORTED_Y||c.BROKEN_CARET,y=void 0!==/()??/.exec("")[1];(m||y||A)&&(f=function(e){var t,n,r,i,o=this,c=A&&o.sticky,f=l.call(o),source=o.source,v=0,_=e;return c&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),_=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(source="(?: "+source+")",_=" "+_,v++),n=new RegExp("^(?:"+source+")",f)),y&&(n=new RegExp("^"+source+"$(?!\\s)",f)),m&&(t=o.lastIndex),r=h.call(c?n:o,_),c?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:m&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),y&&r&&r.length>1&&d.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=f},"433a":function(e,t,n){var r=n("157c"),o=n("8697"),l=n("7d53")("species");e.exports=function(e,t){var n,c=r(e).constructor;return void 0===c||null==(n=r(c)[l])?t:o(n)}},4367:function(e,t,n){"use strict";var r=n("3f48");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var l;if(n)l=n(t);else if(r.isURLSearchParams(t))l=t.toString();else{var c=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),c.push(o(t)+"="+o(e))})))})),l=c.join("&")}if(l){var h=e.indexOf("#");-1!==h&&(e=e.slice(0,h)),e+=(-1===e.indexOf("?")?"?":"&")+l}return e}},"4a86":function(e,t,n){"use strict";var r=n("a505");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"4cce":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"4cdd":function(e,t,n){var r=n("0e93"),o=n("c607");
2(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"4db4":function(e,t,n){var r=n("e7a0");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"4e41":function(e,t,n){var r=n("7d53");t.f=r},"4f46":function(e,t,n){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}n("d6de"),n("8d0f"),n("68b8"),n("9531"),n("ef1f"),n("f3b8"),n("918c"),e.exports=r},"4fed":function(e,t,n){var r,o,l=n("f498"),c=n("64e4"),h=l.process,d=h&&h.versions,f=d&&d.v8;f?o=(r=f.split("."))[0]+r[1]:c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},5268:function(e,t,n){"use strict";var r=n("3cec"),o=n("da06");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},5428:function(e,t,n){var path=n("3e36"),r=n("f498"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(path[e])||o(r[e]):path[e]&&path[e][t]||r[e]&&r[e][t]}},5779:function(e,t,n){},5816:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"58d3":function(e,t,n){"use strict";var r=n("95b2"),o=n("157c"),l=n("b495"),c=n("730c"),h=n("e3f6"),d=n("df8c");r("match",1,(function(e,t,n){return[function(t){var n=c(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var c=o(e),f=String(this);if(!c.global)return d(c,f);var m=c.unicode;c.lastIndex=0;for(var A,y=[],v=0;null!==(A=d(c,f));){var _=String(A[0]);y[v]=_,""===_&&(c.lastIndex=h(f,l(c.lastIndex),m)),v++}return 0===v?null:y}]}))},"5b12":function(e,t,n){var r=n("d4cb"),o=n("abdf"),l=n("9618");e.exports=r?function(object,e,t){return o.f(object,e,l(1,t))}:function(object,e,t){return object[e]=t,object}},"5bb7":function(e,t){e.exports={}},"5d23":function(e,t,n){n("6a89")("toStringTag")},"5e39":function(e,t,n){var r=n("72df"),o=n("7d53"),l=n("0e93"),c=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),l&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[c]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://ÑеÑÑ").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},6009:function(e,t,n){var r=n("d4cb"),o=n("0c47"),l=n("378c"),c=n("e129").f,h=function(e){return function(t){for(var n,h=l(t),d=o(h),f=d.length,i=0,m=[];f>i;)n=d[i++],r&&!c.call(h,n)||m.push(e?[n,h[n]]:h[n]);return m}};e.exports={entries:h(!0),values:h(!1)}},"608d":function(e,t,n){},"60eb":function(e,t,n){},"61ad":function(e,t,n){var r=n("730c"),o="["+n("fbf7")+"]",l=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),h=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(l,"")),2&e&&(n=n.replace(c,"")),n}};e.exports={start:h(1),end:h(2),trim:h(3)}},"62c0":function(e,t,n){"use strict";var r=n("3f48"),o=n("4367"),l=n("3b70"),c=n("06d4"),h=n("37fe");function d(e){this.defaults=e,this.interceptors={request:new l,response:new l}}d.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=h(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[c,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},d.prototype.getUri=function(e){return e=h(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(h(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){d.prototype[e]=function(t,data,n){return this.request(h(n||{},{method:e,url:t,data:data}))}})),e.exports=d},"62c8":function(e,t,n){"use strict";var r=n("95b2"),o=n("8e5d"),l=n("157c"),c=n("730c"),h=n("433a"),d=n("e3f6"),f=n("b495"),m=n("df8c"),A=n("42c5"),y=n("72df"),v=[].push,_=Math.min,w=!y((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(e,t,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(e,n){var r=String(c(this)),l=void 0===n?4294967295:n>>>0;if(0===l)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,l);for(var h,d,f,output=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),y=0,_=new RegExp(e.source,m+"g");(h=A.call(_,r))&&!((d=_.lastIndex)>y&&(output.push(r.slice(y,h.index)),h.length>
vendor: 4,097 bytes, line 2
21&&h.index<r.length&&v.apply(output,h.slice(1)),f=h[0].length,y=d,output.length>=l));)_.lastIndex===h.index&&_.lastIndex++;return y===r.length?!f&&_.test("")||output.push(""):output.push(r.slice(y)),output.length>l?output.slice(0,l):output}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=c(this),l=null==t?void 0:t[e];return void 0!==l?l.call(t,o,n):r.call(String(o),t,n)},function(e,o){var c=n(r,e,this,o,r!==t);if(c.done)return c.value;var A=l(e),y=String(this),v=h(A,RegExp),x=A.unicode,E=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(w?"y":"g"),C=new v(w?A:"^(?:"+A.source+")",E),S=void 0===o?4294967295:o>>>0;if(0===S)return[];if(0===y.length)return null===m(C,y)?[y]:[];for(var p=0,q=0,T=[];q<y.length;){C.lastIndex=w?q:0;var B,k=m(C,w?y:y.slice(q));if(null===k||(B=_(f(C.lastIndex+(w?0:q)),y.length))===p)q=d(y,q,x);else{if(T.push(y.slice(p,q)),T.length===S)return T;for(var i=1;i<=k.length-1;i++)if(T.push(k[i]),T.length===S)return T;q=p=B}}return T.push(y.slice(p)),T}]}),!w)},"64e4":function(e,t,n){var r=n("5428");e.exports=r("navigator","userAgent")||""},6547:function(e,t,n){"use strict";var r,o=n("f498"),l=n("b203"),c=n("e023"),h=n("8aef"),d=n("b533"),f=n("7526"),m=n("cdcd").enforce,A=n("7297"),y=!o.ActiveXObject&&"ActiveXObject"in o,v=Object.isExtensible,_=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},w=e.exports=h("WeakMap",_,d);if(A&&y){r=d.getConstructor(_,"WeakMap",!0),c.REQUIRED=!0;var x=w.prototype,E=x.delete,C=x.has,S=x.get,T=x.set;l(x,{delete:function(e){if(f(e)&&!v(e)){var t=m(this);return t.frozen||(t.frozen=new r),E.call(this,e)||t.frozen.delete(e)}return E.call(this,e)},has:function(e){if(f(e)&&!v(e)){var t=m(this);return t.frozen||(t.frozen=new r),C.call(this,e)||t.frozen.has(e)}return C.call(this,e)},get:function(e){if(f(e)&&!v(e)){var t=m(this);return t.frozen||(t.frozen=new r),C.call(this,e)?S.call(this,e):t.frozen.get(e)}return S.call(this,e)},set:function(e,t){if(f(e)&&!v(e)){var n=m(this);n.frozen||(n.frozen=new r),C.call(this,e)?T.call(this,e,t):n.frozen.set(e,t)}else T.call(this,e,t);return this}})}},"65d0":function(e,t,n){var r=n("c91c"),o=n("b17e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"68b8":function(e,t,n){n("6a89")("iterator")},"6a61":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6a86":function(e,t,n){var r=n("7526"),o=n("c6de"),l=n("7d53")("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[l])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"6a89":function(e,t,n){var path=n("3e36"),r=n("f1a7"),o=n("4e41"),l=n("abdf").f;e.exports=function(e){var t=path.Symbol||(path.Symbol={});r(t,e)||l(t,e,{value:o.f(e)})}},"6b1d":function(e,t,n){var r=n("f498"),o=n("185a").f,l=n("5b12"),c=n("b8ba"),h=n("3e34"),d=n("b634"),f=n("ebac");e.exports=function(e,source){var t,n,m,A,y,v=e.target,_=e.global,w=e.stat;if(t=_?r:w?r[v]||h(v,{}):(r[v]||{}).prototype)for(n in source){if(A=source[n],m=e.noTargetGet?(y=o(t,n))&&y.value:t[n],!f(_?n:v+(w?".":"#")+n,e.forced)&&void 0!==m){if(typeof A==typeof m)continue;d(A,m)}(e.sham||m&&m.sham)&&l(A,"sham",!0),c(t,n,A,e)}}},"71b8":function(e,t,n){function r(e,t,n,r,o,l,c){try{var h=e[l](c),d=h.value}catch(e){return void n(e)}h.done?t(d):Promise.resolve(d).then(r,o)}n("ef1f"),n("26d3"),e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(o,l){var c=e.apply(t,n);function h(e){r(c,o,l,h,d,"next",e)}function d(e){r(c,o,l,h,d,"throw",e)}h(void 0)}))}}},7297:function(e,t,n){var r=n("f498"),o=n("df6f"),l=r.WeakMap;e.exports="function"==typeof l&&/native code/.test(o(l))},"72df":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"730c":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},7526:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}}
2,"75a4":function(e,t,n){var r=n("6b1d"),o=n("72df"),l=n("378c"),c=n("185a").f,h=n("d4cb"),d=o((function(){c(1)}));r({target:"Object",stat:!0,forced:!h||d,sham:!h},{getOwnPropertyDescriptor:function(e,t){return c(l(e),t)}})},7723:function(e,t,n){"use strict";(function(t){var r=n("3f48"),o=n("ac54"),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var h,d={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(h=n("032e")),h),transformRequest:[function(data,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(data)||r.isArrayBuffer(data)||r.isBuffer(data)||r.isStream(data)||r.isFile(data)||r.isBlob(data)?data:r.isArrayBufferView(data)?data.buffer:r.isURLSearchParams(data)?(c(e,"application/x-www-form-urlencoded;charset=utf-8"),data.toString()):r.isObject(data)?(c(e,"application/json;charset=utf-8"),JSON.stringify(data)):data}],transformResponse:[function(data){if("string"==typeof data)try{data=JSON.parse(data)}catch(e){}return data}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};d.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){d.headers[e]=r.merge(l)})),e.exports=d}).call(this,n("07d9"))},7868:function(e,t,n){"use strict";var r=n("3f48"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,l={};return e?(r.forEach(e.split("\n"),(function(line){if(i=line.indexOf(":"),t=r.trim(line.substr(0,i)).toLowerCase(),n=r.trim(line.substr(i+1)),t){if(l[t]&&o.indexOf(t)>=0)return;l[t]="set-cookie"===t?(l[t]?l[t]:[]).concat([n]):l[t]?l[t]+", "+n:n}})),l):l}},"7c3f":function(e,t,n){var r=n("d4cb"),o=n("72df"),l=n("f2bf");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a}))},"7d15":function(e,t){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}e.exports=g},"7d23":function(e,t,n){},"7d53":function(e,t,n){var r=n("f498"),o=n("4cdd"),l=n("f1a7"),c=n("1d8a"),h=n("e7a0"),d=n("4db4"),f=o("wks"),m=r.Symbol,A=d?m:m&&m.withoutSetter||c;e.exports=function(e){return l(f,e)||(h&&l(m,e)?f[e]=m[e]:f[e]=A("Symbol."+e)),f[e]}},"7f8a":function(e,t,n){"use strict";var r=n("72df");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},"802e":function(e,t,n){var r=n("72df");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},8206:function(e,t,n){e.exports=n("f1d8")},"82e8":function(e,t,n){var r,o=n("157c"),l=n("b99b"),c=n("b17e"),h=n("d687"),html=n("9324"),d=n("f2bf"),f=n("332c"),m=f("IE_PROTO"),A=function(){},y=function(content){return"<script>"+content+"<\/script>"},v=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,iframe;v=r?function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((iframe=d("iframe")).style.display="none",html.appendChild(iframe),iframe.src=String("javascript:"),(e=iframe.contentWindow.document).open(),e.write(y("document.F=Object")),e.close(),e.F);for(var t=c.length;t--;)delete v.prototype[c[t]];return v()};h[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(A.prototype=o(e),n=new A,A.prototype=null,n[m]=e):n=v(),void 0===t?n:l(n,t)}},"83a6":function(e,t,n){var r=n("72df"),o=n("6a61"),l="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?l.call(e,""):Object(e)}:Object},"841a":function(e,t,n){"use strict";var r=n("6b1d"),o=n("d054").find,l=n("ed2b"),c=n("ce71"),h=!0,d=c("find");"find"in[]&&Array(1).find((function(){h=!1})),r({target:"Array",proto:!0,forced:h||!d},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),l("find")}
vendor: 7,185 bytes, line 2
2,8423:function(e,t,n){var r=n("6b1d"),o=n("ccae");r({target:"Array",stat:!0,forced:!n("3211")((function(e){Array.from(e)}))},{from:o})},8573:function(e,t,n){var r,head,o,l,c,h,d,f,m=n("f498"),A=n("185a").f,y=n("6a61"),v=n("2435").set,_=n("e03e"),w=m.MutationObserver||m.WebKitMutationObserver,x=m.process,E=m.Promise,C="process"==y(x),S=A(m,"queueMicrotask"),T=S&&S.value;T||(r=function(){var e,t;for(C&&(e=x.domain)&&e.exit();head;){t=head.fn,head=head.next;try{t()}catch(e){throw head?l():o=void 0,e}}o=void 0,e&&e.enter()},C?l=function(){x.nextTick(r)}:w&&!_?(c=!0,h=document.createTextNode(""),new w(r).observe(h,{characterData:!0}),l=function(){h.data=c=!c}):E&&E.resolve?(d=E.resolve(void 0),f=d.then,l=function(){f.call(d,r)}):l=function(){v.call(m,r)}),e.exports=T||function(e){var t={fn:e,next:void 0};o&&(o.next=t),head||(head=t,l()),o=t}},"868d":function(e,t,n){var r=n("d4cb"),o=n("abdf").f,l=Function.prototype,c=l.toString,h=/^\s*function ([^ (]*)/;r&&!("name"in l)&&o(l,"name",{configurable:!0,get:function(){try{return c.call(this).match(h)[1]}catch(e){return""}}})},8697:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"881c":function(e,t,n){"use strict";var r=n("8697"),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},"88a1":function(e,t,n){var r=n("d4cb"),o=n("f498"),l=n("ebac"),c=n("8fa9"),h=n("abdf").f,d=n("65d0").f,f=n("8e5d"),m=n("abfd"),A=n("2f6a"),y=n("b8ba"),v=n("72df"),_=n("cdcd").set,w=n("0a1e"),x=n("7d53")("match"),E=o.RegExp,C=E.prototype,S=/a/g,T=/a/g,B=new E(S)!==S,k=A.UNSUPPORTED_Y;if(r&&l("RegExp",!B||k||v((function(){return T[x]=!1,E(S)!=S||E(T)==T||"/a/i"!=E(S,"i")})))){for(var I=function(pattern,e){var t,n=this instanceof I,r=f(pattern),o=void 0===e;if(!n&&r&&pattern.constructor===I&&o)return pattern;B?r&&!o&&(pattern=pattern.source):pattern instanceof I&&(o&&(e=m.call(pattern)),pattern=pattern.source),k&&(t=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var l=c(B?new E(pattern,e):E(pattern,e),n?this:C,I);return k&&t&&_(l,{sticky:t}),l},M=function(e){e in I||h(I,e,{configurable:!0,get:function(){return E[e]},set:function(t){E[e]=t}})},P=d(E),D=0;P.length>D;)M(P[D++]);C.constructor=I,I.prototype=C,y(o,"RegExp",I)}w("RegExp")},"8aef":function(e,t,n){"use strict";var r=n("6b1d"),o=n("f498"),l=n("ebac"),c=n("b8ba"),h=n("e023"),d=n("b578"),f=n("4cce"),m=n("7526"),A=n("72df"),y=n("3211"),v=n("fa46"),_=n("8fa9");e.exports=function(e,t,n){var w=-1!==e.indexOf("Map"),x=-1!==e.indexOf("Weak"),E=w?"set":"add",C=o[e],S=C&&C.prototype,T=C,B={},k=function(e){var t=S[e];c(S,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(x&&!m(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return x&&!m(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(x&&!m(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(l(e,"function"!=typeof C||!(x||S.forEach&&!A((function(){(new C).entries().next()})))))T=n.getConstructor(t,e,w,E),h.REQUIRED=!0;else if(l(e,!0)){var I=new T,M=I[E](x?{}:-0,1)!=I,P=A((function(){I.has(1)})),D=y((function(e){new C(e)})),U=!x&&A((function(){for(var e=new C,t=5;t--;)e[E](t,t);return!e.has(-0)}));D||((T=t((function(t,n){f(t,T,e);var r=_(new C,t,T);return null!=n&&d(n,r[E],r,w),r}))).prototype=S,S.constructor=T),(P||U)&&(k("delete"),k("has"),w&&k("get")),(U||M)&&k(E),x&&S.clear&&delete S.clear}return B[e]=T,r({global:!0,forced:T!=C},B),v(T,e),x||n.setStrong(T,e,w),T}},"8bb2":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"8bbf":function(e,t){e.exports=n(18)},"8d0d":function(e,t,n){"use strict";var r=n("6b1d"),o=n("1f5e").includes,l=n("ed2b");r({target:"Array",proto:!0,forced:!n("ce71")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),l("includes")},"8d0f":function(e,t,n){"use strict";var r=n("6b1d"),o=n("d4cb"),l=n("f498"),c=n("f1a7"),h=n("7526"),d=n("abdf").f,f=n("b634"),m=l.Symbol;if(o&&"function"==typeof m&&(!("description"in m.prototype)||void 0!==m().description)){var A={},y=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof y?new m(e):void 0===e?m():m(e);return""===e&&(A[t]=!0),t};f(y,m);var v=y.prototype=m.prototype;v.constructor=y;var _=v.toString,w="Symbol(test)"==String(m("test")),x=/^Symbol\((.*)\)[^)]+$/;d(v,"description",{configurable:!0,get:function(){var symbol=h(this)?this.valueOf():this,e=_.call(symbol);if(c(A,symbol))return"";var desc=w?e.slice(7,-1):e.replace(x,"$1");return""===desc?void 0:desc}}),r({global:!0,forced:!0},{Symbol:y})}},"8e5d":function(e,t,n){var r=n("7526"),o=n("6a61"),l=n("7d53")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[l])?!!t:"RegExp"==o(e))}},"8f0b":function(e,t,n){"use strict";var r=n("6b1d"),o=n("e8e5");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"8fa9":function(e,t,n){var r=n("7526"),o=n("c1a2");e.exports=function(e,t,n){var l,c;return o&&"function"==typeof(l=t.constructor)&&l!==n&&r(c=l.prototype)&&c!==n.prototype&&o(e,c),e}},"918c":function(e,t,n){var r=n("f498"),o=n("130d"),l=n("9531"),c=n("5b12"),h=n("7d53"),d=h("iterator"),f=h("toStringTag"),m=l.values;for(var A in o){var y=r[A],v=y&&y.prototype;if(v){if(v[d]!==m)try{c(v,d,m)}catch(e){v[d]=m}if(v[f]||c(v,f,A),o[A])for(var _ in l)if(v[_]!==l[_])try{c(v,_,l[_])}catch(e){v[_]=l[_]}}}},9324:function(e,t,n){var r=n("5428");e.exports=r("document","documentElement")},9396:function(e,t,n){var r=n("6b1d"),o=n("72df"),l=n("ee58").f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:l})},9531:function(e,t,n){"use strict";var r=n("378c"),o=n("ed2b"),l=n("5bb7"),c=n("cdcd"),h=n("2df4"),d=c.set,f=c.getterFor("Array Iterator");e.exports=h(Array,"Array",(function(e,t){d(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),l.Arguments=l.Array,o("keys"),o("values"),o("entries")},"95ad":function(e,t,n){var r=n("72df");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},"95b2":function(e,t,n){"use strict";n("2aa5");var r=n("b8ba"),o=n("72df"),l=n("7d53"),c=n("42c5"),h=n("5b12"),d=l("species"),f=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),m="$0"==="a".replace(/./,"$0"),A=l("replace"),y=!!/./[A]&&""===/./[A]("a","$0"),v=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,A){var _=l(e),w=!o((function(){var t={};return t[_]=function(){return 7},7!=""[e](t)})),x=w&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={}
2,n.constructor[d]=function(){return n},n.flags="",n[_]=/./[_]),n.exec=function(){return t=!0,null},n[_](""),!t}));if(!w||!x||"replace"===e&&(!f||!m||y)||"split"===e&&!v){var E=/./[_],C=n(_,""[e],(function(e,t,n,r,o){return t.exec===c?w&&!o?{done:!0,value:E.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:y}),S=C[0],T=C[1];r(String.prototype,e,S),r(RegExp.prototype,_,2==t?function(e,t){return T.call(e,this,t)}:function(e){return T.call(e,this)})}A&&h(RegExp.prototype[_],"sham",!0)}},9618:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9681:function(e,t,n){"use strict";var r=n("e918");n.n(r).a},"98f3":function(e,t,n){var r=n("8697"),o=n("37d1"),l=n("83a6"),c=n("b495"),h=function(e){return function(t,n,h,d){r(n);var f=o(t),m=l(f),A=c(f.length),y=e?A-1:0,i=e?-1:1;if(h<2)for(;;){if(y in m){d=m[y],y+=i;break}if(y+=i,e?y<0:A<=y)throw TypeError("Reduce of empty array with no initial value")}for(;e?y>=0:A>y;y+=i)y in m&&(d=n(d,m[y],y,f));return d}};e.exports={left:h(!1),right:h(!0)}},9951:function(e,t,n){var r=n("72df"),o=n("fbf7");e.exports=function(e){return r((function(){return!!o[e]()||"âÂ
á "!="âÂ
á "[e]()||o[e].name!==e}))}},"9a0f":function(e,t,n){var r=n("8bb2"),o=Math.max,l=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):l(n,t)}},"9c36":function(e,t,n){var r=n("157c"),o=n("7526"),l=n("881c");e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=l.f(e);return(0,n.resolve)(t),n.promise}},"9eea":function(e,t,n){var r=n("8e5d");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},a03e:function(e,t,n){var r=n("5428"),o=n("65d0"),l=n("2402"),c=n("157c");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(c(e)),n=l.f;return n?t.concat(n(e)):t}},a0d5:function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function filter(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var path=i>=0?arguments[i]:e.cwd();if("string"!=typeof path)throw new TypeError("Arguments to path.resolve must be strings");path&&(t=path+"/"+t,r="/"===path.charAt(0))}return(r?"/":"")+(t=n(filter(t.split("/"),(function(p){return!!p})),!r).join("/"))||"."},t.normalize=function(path){var e=t.isAbsolute(path),o="/"===r(path,-1);return(path=n(filter(path.split("/"),(function(p){return!!p})),!e).join("/"))||e||(path="."),path&&o&&(path+="/"),(e?"/":"")+path},t.isAbsolute=function(path){return"/"===path.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(filter(e,(function(p,e){if("string"!=typeof p)throw new TypeError("Arguments to path.join must be strings");return p})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),l=r(n.split("/")),c=Math.min(o.length,l.length),h=c,i=0;i<c;i++)if(o[i]!==l[i]){h=i;break}var d=[];for(i=h;i<o.length;i++)d.push("..");return(d=d.concat(l.slice(h))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(path){if("string"!=typeof path&&(path+=""),0===path.length)return".";for(var code=path.charCodeAt(0),e=47===code,t=-1,n=!0,i=path.length-1;i>=1;--i)if(47===(code=path.charCodeAt(i))){if(!n){t=i;break}}else n=!1;return-1===t?e?"/":".":e&&1===t?"/":path.slice(0,t)},t.basename=function(path,e){var t=function(path){"string"!=typeof path&&(path+="");var i,e=0,t=-1,n=!0;for(i=path.length-1;i>=0;--i)if(47===path.charCodeAt(i)){if(!n){e=i+1;break}}else-1===t&&(n=!1,t=i+1);return-1===t?"":path.slice(e,t)}(path);return e&&t.substr(-1*e.length)===e&&(t=t.substr(0,t.length-e.length)),t},t.extname=function(path){"string"!=typeof path&&(path+="");for(var e=-1,t=0,n=-1,r=!0,o=0,i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(47!==code)-1===n&&(r=!1,n=i+1),46===code?-1===e?e=i:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){t=i+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===t+1?"":path.slice(e,n)};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("07d9"))},a505:function(e,t,n){"use strict";var r=n("338e");e.exports=function(e,t,code,n,o){var l=new Error(e);return r(l,t,code,n,o)}},aa62:function(e,t,n){},aafc:function(e,t,n){"use strict";var r=n("04ff"),o=n("13b8");e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},abdf:function(e,t,n){var r=n("d4cb"),o=n("7c3f"),l=n("157c"),c=n("083f"),h=Object.defineProperty;t.f=r?h:function(e,t,n){if(l(e),t=c(t,!0),l(n),o)try{return h(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},abfd:function(e,t,n){"use strict";var r=n("157c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ac54:function(e,t,n){"use strict";var r=n("3f48");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},afac:function(e,t,n){"use strict";var r=n("60eb");n.n(r).a},b17e:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
2ing","toString","valueOf"]},b203:function(e,t,n){var r=n("b8ba");e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},b495:function(e,t,n){var r=n("8bb2"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},b533:function(e,t,n){"use strict";var r=n("b203"),o=n("e023").getWeakData,l=n("157c"),c=n("7526"),h=n("4cce"),d=n("b578"),f=n("d054"),m=n("f1a7"),A=n("cdcd"),y=A.set,v=A.getterFor,_=f.find,w=f.findIndex,x=0,E=function(e){return e.frozen||(e.frozen=new C)},C=function(){this.entries=[]},S=function(e,t){return _(e.entries,(function(e){return e[0]===t}))};C.prototype={get:function(e){var t=S(this,e);if(t)return t[1]},has:function(e){return!!S(this,e)},set:function(e,t){var n=S(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=w(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,f){var A=e((function(e,r){h(e,A,t),y(e,{type:t,id:x++,frozen:void 0}),null!=r&&d(r,e[f],e,n)})),_=v(t),w=function(e,t,n){var r=_(e),data=o(l(t),!0);return!0===data?E(r).set(t,n):data[r.id]=n,e};return r(A.prototype,{delete:function(e){var t=_(this);if(!c(e))return!1;var data=o(e);return!0===data?E(t).delete(e):data&&m(data,t.id)&&delete data[t.id]},has:function(e){var t=_(this);if(!c(e))return!1;var data=o(e);return!0===data?E(t).has(e):data&&m(data,t.id)}}),r(A.prototype,n?{get:function(e){var t=_(this);if(c(e)){var data=o(e);return!0===data?E(t).get(e):data?data[t.id]:void 0}},set:function(e,t){return w(this,e,t)}}:{add:function(e){return w(this,e,!0)}}),A}}},b55a:function(e,t,n){"use strict";var r=n("6b1d"),o=n("61ad").trim;r({target:"String",proto:!0,forced:n("9951")("trim")},{trim:function(){return o(this)}})},b578:function(e,t,n){var r=n("157c"),o=n("c965"),l=n("b495"),c=n("2117"),h=n("0446"),d=n("2514"),f=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,m,A){var y,v,_,w,x,E,C,S=c(t,n,m?2:1);if(A)y=e;else{if("function"!=typeof(v=h(e)))throw TypeError("Target is not iterable");if(o(v)){for(_=0,w=l(e.length);w>_;_++)if((x=m?S(r(C=e[_])[0],C[1]):S(e[_]))&&x instanceof f)return x;return new f(!1)}y=v.call(e)}for(E=y.next;!(C=E.call(y)).done;)if("object"==typeof(x=d(y,S,C.value,m))&&x&&x instanceof f)return x;return new f(!1)}).stop=function(e){return new f(!0,e)}},b634:function(e,t,n){var r=n("f1a7"),o=n("a03e"),l=n("185a"),c=n("abdf");e.exports=function(e,source){for(var t=o(source),n=c.f,h=l.f,i=0;i<t.length;i++){var d=t[i];r(e,d)||n(e,d,h(source,d))}}},b770:function(e,t,n){},b7fb:function(e,t,n){var r=n("8bb2"),o=n("730c"),l=function(e){return function(t,n){var l,c,h=String(o(t)),d=r(n),f=h.length;return d<0||d>=f?e?"":void 0:(l=h.charCodeAt(d))<55296||l>56319||d+1===f||(c=h.charCodeAt(d+1))<56320||c>57343?e?h.charAt(d):l:e?h.slice(d,d+2):c-56320+(l-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},b8ba:function(e,t,n){var r=n("f498"),o=n("5b12"),l=n("f1a7"),c=n("3e34"),h=n("df6f"),d=n("cdcd"),f=d.get,m=d.enforce,A=String(String).split("String");(e.exports=function(e,t,n,h){var d=!!h&&!!h.unsafe,f=!!h&&!!h.enumerable,y=!!h&&!!h.noTargetGet;"function"==typeof n&&("string"!=typeof t||l(n,"name")||o(n,"name",t),m(n).source=A.join("string"==typeof t?t:"")),e!==r?(d?!y&&e[t]&&(f=!0):delete e[t],f?e[t]=n:o(e,t,n)):f?e[t]=n:c(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||h(this)}))},b99b:function(e,t,n){var r=n("d4cb"),o=n("abdf"),l=n("157c"),c=n("0c47");e.exports=r?Object.defineProperties:function(e,t){l(e);for(var n,r=c(t),h=r.length,d=0;h>d;)o.f(e,n=r[d++],t[n]);return e}},babb:function(e,t,n){"use strict";var r=n("fe0b");n.n(r).a},bde6:function(e,t,n){var r=n("f498");n("fa46")(r.JSON,"JSON",!0)},bdf1:function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},bdf7:function(e,t,n){"use strict";var r=n("6b1d"),o=n("d054").findIndex,l=n("ed2b"),c=n("ce71"),h=!0,d=c("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){h=!1})),r({target:"Array",proto:!0,forced:h||!d},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),l("findIndex")},be69:function(e,t,n){},beb4:function(e,t,n){"use strict";
2var r=n("6b1d"),o=n("1f5e").indexOf,l=n("7f8a"),c=n("ce71"),h=[].indexOf,d=!!h&&1/[1].indexOf(1,-0)<0,f=l("indexOf"),m=c("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:d||!f||!m},{indexOf:function(e){return d?h.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},c1a2:function(e,t,n){var r=n("157c"),o=n("f3e4");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,l){return r(n),o(l),t?e.call(n,l):n.__proto__=l,n}}():void 0)},c607:function(e,t,n){var r=n("f498"),o=n("3e34"),l=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=l},c6de:function(e,t,n){var r=n("6a61");e.exports=Array.isArray||function(e){return"Array"==r(e)}},c78b:function(e,t,n){"use strict";var r=n("6b1d"),o=n("9eea"),l=n("730c");r({target:"String",proto:!0,forced:!n("3e32")("includes")},{includes:function(e){return!!~String(l(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},c91c:function(e,t,n){var r=n("f1a7"),o=n("378c"),l=n("1f5e").indexOf,c=n("d687");e.exports=function(object,e){var t,n=o(object),i=0,h=[];for(t in n)!r(c,t)&&r(n,t)&&h.push(t);for(;e.length>i;)r(n,t=e[i++])&&(~l(h,t)||h.push(t));return h}},c965:function(e,t,n){var r=n("7d53"),o=n("5bb7"),l=r("iterator"),c=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||c[l]===e)}},ca6e:function(e,t,n){"use strict";var r=n("3f48");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,path,o,l){var c=[];c.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(path)&&c.push("path="+path),r.isString(o)&&c.push("domain="+o),!0===l&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},ccae:function(e,t,n){"use strict";var r=n("2117"),o=n("37d1"),l=n("2514"),c=n("c965"),h=n("b495"),d=n("dac6"),f=n("0446");e.exports=function(e){var t,n,m,A,y,v,_=o(e),w="function"==typeof this?this:Array,x=arguments.length,E=x>1?arguments[1]:void 0,C=void 0!==E,S=f(_),T=0;if(C&&(E=r(E,x>2?arguments[2]:void 0,2)),null==S||w==Array&&c(S))for(n=new w(t=h(_.length));t>T;T++)v=C?E(_[T],T):_[T],d(n,T,v);else for(y=(A=S.call(_)).next,n=new w;!(m=y.call(A)).done;T++)v=C?l(A,E,[m.value,T],!0):m.value,d(n,T,v);return n.length=T,n}},cda8:function(e,t,n){n("8d0d"),n("c78b"),n("df26");var r=n("71b8"),o=n("8206").default;o.defaults.baseURL=location.host.includes("co.il")?"https://gw.yad2.co.il/auth":"https://gw.yad2.io/auth",o.defaults.withCredentials=!0,o.connectedUser=r(regeneratorRuntime.mark((function e(){var data,t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.get("/user/details");case 3:return data=e.sent,e.abrupt("return",data.data.data.user);case 7:return e.prev=7,e.t0=e.catch(0),e.prev=9,e.next=12,o.post("/token/refresh");case 12:return t=e.sent,e.abrupt("return",t.data.data.user);case 16:return e.prev=16,e.t1=e.catch(9),e.abrupt("return",!1);case 19:case"end":return e.stop()}}),e,null,[[0,7],[9,16]])}))),e.exports=o},cdcd:function(e,t,n){var r,o,l,c=n("7297"),h=n("f498"),d=n("7526"),f=n("5b12"),m=n("f1a7"),A=n("332c"),y=n("d687"),v=h.WeakMap;if(c){var _=new v,w=_.get,x=_.has,E=_.set;r=function(e,t){return E.call(_,e,t),t},o=function(e){return w.call(_,e)||{}},l=function(e){return x.call(_,e)}}else{var C=A("state");y[C]=!0,r=function(e,t){return f(e,C,t),t},o=function(e){return m(e,C)?e[C]:{}},l=function(e){return m(e,C)}}e.exports={set:r,get:o,has:l,enforce:function(e){return l(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!d(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},ce71:function(e,t,n){var r=n("d4cb"),o=n("72df"),l=n("f1a7"),c=Object.defineProperty,h={},d=function(e){throw e};e.exports=function(e,t){if(l(h,e))return h[e];t||(t={});var n=[][e],f=!!l(t,"ACCESSORS")&&t.ACCESSORS,m=l(t,0)?t[0]:d,A=l(t,1)?t[1]:void 0;return h[e]=!!n&&!o((function(){if(f&&!r)return!0;var e={length:-1};f?c(e,1,{enumerable:!0,get:d}):e[1]=1,n.call(e,m,A)}))}},cfce:function(e,t,n){"use strict";
2var r=n("6b1d"),o=n("d054").map,l=n("189b"),c=n("ce71"),h=l("map"),d=c("map");r({target:"Array",proto:!0,forced:!h||!d},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},d054:function(e,t,n){var r=n("2117"),o=n("83a6"),l=n("37d1"),c=n("b495"),h=n("6a86"),d=[].push,f=function(e){var t=1==e,n=2==e,f=3==e,m=4==e,A=6==e,y=5==e||A;return function(v,_,w,x){for(var E,C,S=l(v),T=o(S),B=r(_,w,3),k=c(T.length),I=0,M=x||h,P=t?M(v,k):n?M(v,0):void 0;k>I;I++)if((y||I in T)&&(C=B(E=T[I],I,S),e))if(t)P[I]=C;else if(C)switch(e){case 3:return!0;case 5:return E;case 6:return I;case 2:d.call(P,E)}else if(m)return!1;return A?-1:f||m?m:P}};e.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},d335:function(e,t,n){"use strict";var r=n("3f48");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},d48b:function(e,t,n){var r=n("6b1d"),o=n("6009").values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},d4cb:function(e,t,n){var r=n("72df");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},d4d1:function(e,t,n){n("d6de"),n("8d0f"),n("68b8"),n("5d23"),n("d86f"),n("0df8"),n("2d6d"),n("841a"),n("bdf7"),n("8f0b"),n("8423"),n("8d0d"),n("beb4"),n("9531"),n("ef14"),n("cfce"),n("28eb"),n("33ef"),n("e416"),n("11ed"),n("868d"),n("f7d3"),n("bde6"),n("238e"),n("e94e"),n("75a4"),n("16d1"),n("9396"),n("e68e"),n("f8a5"),n("ef1f"),n("d48b"),n("88a1"),n("2aa5"),n("16d15"),n("0d9f"),n("2ea2"),n("c78b"),n("f3b8"),n("58d3"),n("32f5"),n("62c8"),n("b55a"),n("6547"),n("fa8c"),n("918c");var r=n("4f46");e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===r(e)&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)n.d(o,l,function(t){return e[t]}.bind(null,l));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="",n(n.s="1c25")}({"005c":function(e,t,n){},"0139":function(e,t,n){"use strict";n("d86f"),n("bdf7"),n("11ed"),n("e94e");var r=n("7c6c"),o={name:"m-option",props:{value:[String,Object,Array,Number,Boolean],multiple:{type:[Boolean,String],default:!1},index:Number,indexSelected:Boolean},data:function(){return{selected:null}},mounted:function(){this.selected=this.indexSelected},methods:{emitClicked:function(){var text=this.$slots.default[0].text;this.selected=!this.selected,this.multiple?(this.selected?this.$parent.selected=[].concat(Object(r.a)(this.$parent.selected),[{value:this.value,text:text,index:this.index}]):this.$parent.selected.splice(this.$parent.selected.findIndex((function(e){return e.text===text&&e.value==e.value})),1),this.$parent.setValue(this.$parent.selected,null)):(this.$parent.listOpen=!1,this.$parent.setValue(this.value,text))}}},l=(n("bc48"),n("2be6")),component=Object(l.a)(o,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"m-option",on:{click:this.emitClicked}},[t("div",{staticClass:"m-check"},[this.multiple?t("input",{attrs:{type:"checkbox"},domProps:{checked:this.selected}}):this._e(),t("h6",[this._t("default")],2)]),this.selected?t("i",{staticClass:"mangoi_check"}):this._e()])}),[],!1,null,"231803d6",null);t.a=component.exports},"0270":function(e,t,n){"use strict";n("8d0d"),n("c78b");
2var r={name:"container",data:function(){return{valid:!1,validy2Components:["m-input","minput","m-select","mselect","m-datepicker","mdatepicker"]}},created:function(){if(!this.$slots.default)throw Error("Must conatin m component");if(this.$slots.default.length>1)throw Error("Cant have more then one element");if(!this.$slots.default[0].tag.toLowerCase().includes("vue-component"))throw Error("Must contain m- component");var e=this.$slots.default[0].componentOptions.tag.toLowerCase();if(!this.validy2Components.includes(e))throw Error("Must contain m component");this.valid=!0}},o=(n("526e"),n("2be6")),component=Object(o.a)(r,(function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"m-container"},[this.valid?this._t("default"):this._e()],2)}),[],!1,null,"1b071144",null);t.a=component.exports},"0446":function(e,t,n){var r=n("da06"),o=n("5bb7"),l=n("7d53")("iterator");e.exports=function(e){if(null!=e)return e[l]||e["@@iterator"]||o[r(e)]}},"06dd":function(e,t,n){"use strict";var r=n("2304");n.n(r).a},"083f":function(e,t,n){var r=n("7526");e.exports=function(input,e){if(!r(input))return input;var t,n;if(e&&"function"==typeof(t=input.toString)&&!r(n=t.call(input)))return n;if("function"==typeof(t=input.valueOf)&&!r(n=t.call(input)))return n;if(!e&&"function"==typeof(t=input.toString)&&!r(n=t.call(input)))return n;throw TypeError("Can't convert object to primitive value")}},"0b38":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("d6de"),n("2d6d"),n("8f0b"),n("75a4"),n("16d1"),n("f8a5"),n("fa8c");function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?o(Object(source),!0).forEach((function(t){r(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):o(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}},"0c47":function(e,t,n){var r=n("c91c"),o=n("b17e");e.exports=Object.keys||function(e){return r(e,o)}},"0d9f":function(e,t,n){"use strict";var r=n("b8ba"),o=n("157c"),l=n("72df"),c=n("abfd"),h=RegExp.prototype,d=h.toString,f=l((function(){return"/a/b"!=d.call({source:"a",flags:"b"})})),m="toString"!=d.name;(f||m)&&r(RegExp.prototype,"toString",(function(){var e=o(this),p=String(e.source),t=e.flags;return"/"+p+"/"+String(void 0===t&&e instanceof RegExp&&!("flags"in h)?c.call(e):t)}),{unsafe:!0})},"0df8":function(e,t,n){"use strict";var r=n("6b1d"),o=n("d054").every,l=n("7f8a"),c=n("ce71"),h=l("every"),d=c("every");r({target:"Array",proto:!0,forced:!h||!d},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"0e39":function(e,t,n){var r=n("f1a7"),o=n("37d1"),l=n("332c"),c=n("802e"),h=l("IE_PROTO"),d=Object.prototype;e.exports=c?Object.getPrototypeOf:function(e){return e=o(e),r(e,h)?e[h]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?d:null}},"0e93":function(e,t){e.exports=!1},"11ed":function(e,t,n){"use strict";var r=n("6b1d"),o=n("9a0f"),l=n("8bb2"),c=n("b495"),h=n("37d1"),d=n("6a86"),f=n("dac6"),m=n("189b"),A=n("ce71"),y=m("splice"),v=A("splice",{ACCESSORS:!0,0:0,1:2}),_=Math.max,w=Math.min;r({target:"Array",proto:!0,forced:!y||!v},{splice:function(e,t){var n,r,m,A,y,v,x=h(this),E=c(x.length),C=o(e,E),S=arguments.length;if(0===S?n=r=0:1===S?(n=0,r=E-C):(n=S-2,r=w(_(l(t),0),E-C)),E+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(m=d(x,r),A=0;A<r;A++)(y=C+A)in x&&f(m,A,x[y]);if(m.length=r,n<r){for(A=C;A<E-r;A++)v=A+n,(y=A+r)in x?x[v]=x[y]:delete x[v];for(A=E;A>E-r+n;A--)delete x[A-1]}else if(n>r)for(A=E-r;A>C;A--)v=A+n-1,(y=A+r-1)in x?x[v]=x[y]:delete x[v];for(A=0;A<n;A++)x[A+C]=arguments[A+2];return x.length=E-r+n,m}})},"130d":function(e,t){e.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}},"157c":function(e,t,n){var r=n("7526");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}}
2,"16d1":function(e,t,n){var r=n("6b1d"),o=n("d4cb"),l=n("a03e"),c=n("378c"),h=n("185a"),d=n("dac6");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(object){for(var e,t,n=c(object),r=h.f,o=l(n),f={},m=0;o.length>m;)void 0!==(t=r(n,e=o[m++]))&&d(f,e,t);return f}})},"185a":function(e,t,n){var r=n("d4cb"),o=n("e129"),l=n("9618"),c=n("378c"),h=n("083f"),d=n("f1a7"),f=n("7c3f"),m=Object.getOwnPropertyDescriptor;t.f=r?m:function(e,t){if(e=c(e),t=h(t,!0),f)try{return m(e,t)}catch(e){}if(d(e,t))return l(!o.f.call(e,t),e[t])}},"189b":function(e,t,n){var r=n("72df"),o=n("7d53"),l=n("4fed"),c=o("species");e.exports=function(e){return l>=51||!r((function(){var t=[];return(t.constructor={})[c]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"197e":function(e,t,n){"use strict";var r=n("1ec6"),o={props:{dropdownContentNav:{type:Array}},components:{MButton:r.a},data:function(){return{open:!1,propStopped:!1}},beforeDestroy:function(){this.closeDropdown()},computed:{hasDropdownContentHeaderSlot:function(){return!!this.$slots.dropdownContentHeader},hasDropdownContentFooterSlot:function(){return!!this.$slots.dropdownContentFooter}},methods:{stopProp:function(){this.propStopped=!0},openDropdown:function(){var e=this;this.open=!0,this.$nextTick((function(){e.$refs.container.addEventListener("click",e.stopProp),document.body.addEventListener("click",e.closeDropdown)}))},closeDropdown:function(){this.propStopped?this.propStopped=!this.propStopped:(this.$refs.container.removeEventListener("click",this.stopProp),document.body.removeEventListener("click",this.closeDropdown),this.open=!1)},toggle:function(){return this.open?this.closeDropdown():this.openDropdown()},dropdownNavItemHref:function(e){return e.href||"javascript:void(0)"},dropdownNavItemOnClick:function(e){e.onClick&&e.onClick(),this.closeDropdown()}}},l=(n("33efa"),n("2be6")),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dropdown"},[n("div",{ref:"container",staticClass:"dropdown-container"},[n("div",{staticClass:"dropdown-title",on:{click:e.toggle}},[e._t("default",[n("m-button",{staticClass:"success rounded",attrs:{btnStyle:"primary"}},[e._v("פת×")])])],2),e.open?n("div",{ref:"dropdownContent",staticClass:"dropdown-content"},[e.hasDropdownContentHeaderSlot?n("div",{staticClass:"dropdown-content-header"},[e._t("dropdownContentHeader")],2):e._e(),n("div",{staticClass:"dropdown-content-body"},[e._t("dropdownContentBody",[e.dropdownContentNav?n("ul",{staticClass:"dropdown-content-nav"},e._l(e.dropdownContentNav,(function(t,r){var o,l;return n("li",{key:"dropdown-content-nav-"+r,class:{"nav-item":!0,divider:t.divider}},[t.divider?e._e():n("a",{attrs:{href:e.dropdownNavItemHref(t)},on:{click:function(n){return e.dropdownNavItemOnClick(t)}}},[t.icon?n("span",{class:(o={"item-icon":!0},o[t.icon+"_icon"]=!0,o)},[n("i",{class:(l={},l[t.icon]=!0,l)})]):e._e(),n("span",{staticClass:"item-title"},[e._v(e._s(t.title))])])])})),0):e._e()])],2),e.hasDropdownContentFooterSlot?n("div",{staticClass:"dropdown-content-footer"},[e._t("dropdownContentFooter")],2):e._e()]):e._e()])])}),[],!1,null,"7ef3e488",null);t.a=component.exports},"1c25":function(e,t,n){"use strict";if(n.r(t),"undefined"!=typeof window){var r=window.document.currentScript,o=n("405b");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var l=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);l&&(n.p=l[1])}var main=n("56d7");t.default=main.a},"1c6d":function(e,t,n){},"1d8a":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},"1ec6":function(e,t,n){"use strict";var r={name:"m-button",components:{Loader:n("edde").a},props:{size:{type:String,default:"medium"},type:{type:String,default:"button"},disabled:{type:[String,Boolean],default:"false"},btnStyle:{type:String,default:"common"},icon:String,prefix:String,suffix:String,isLoading:Boolean},data:function(){return{classes:[],disable:!1}},created:function(){this.classes=[this.size,this.btnStyle],this.disable="true"===this.disabled},watch:{disabled:function(){this.disable="true"===this.disabled}},methods:{cb:function(e){this.$emit("click",e)}}},o=(n("d0cb"),n("2be6")),component=Object(o.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{class:e.classes.concat([e.isLoading?"loading":""]),attrs:{type:e.type,disabled:e.disable||e.isLoading},on:{click:function(t){return e.cb(t)}}},[e.isLoading?[n("Loader",{attrs:{color:"common",animate:"size"}})]:[e.prefix?n("i",{staticClass:"prefix",class:e.prefix}
2):e._e(),e._t("default"),e.icon?n("i",{staticClass:"icon",class:e.icon}):e._e(),e.suffix?n("i",{staticClass:"suffix",class:e.suffix}):e._e()]],2)}),[],!1,null,"61dc993a",null);t.a=component.exports},"1f5e":function(e,t,n){var r=n("378c"),o=n("b495"),l=n("9a0f"),c=function(e){return function(t,n,c){var h,d=r(t),f=o(d.length),m=l(c,f);if(e&&n!=n){for(;f>m;)if((h=d[m++])!=h)return!0}else for(;f>m;m++)if((e||m in d)&&d[m]===n)return e||m||0;return!e&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},"1fba":function(e,t,n){"use strict";var r={name:"TextLink",props:{size:{type:String,default:"medium"},color:{type:String,default:"black"},href:{type:String,required:!0}}},o=(n("8998"),n("2be6")),component=Object(o.a)(r,(function(){var e=this.$createElement;return(this._self._c||e)("a",{class:[this.size,this.color],attrs:{href:this.href}},[this._t("default")],2)}),[],!1,null,"4059ed94",null);t.a=component.exports},"209c":function(e,t,n){},2117:function(e,t,n){var r=n("8697");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(a){return e.call(t,a)};case 2:return function(a,b){return e.call(t,a,b)};case 3:return function(a,b,n){return e.call(t,a,b,n)}}return function(){return e.apply(t,arguments)}}},2304:function(e,t,n){},2402:function(e,t){t.f=Object.getOwnPropertySymbols},2514:function(e,t,n){var r=n("157c");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var l=e.return;throw void 0!==l&&r(l.call(e)),t}}},2843:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},"286c":function(e,t,n){},"28eb":function(e,t,n){"use strict";var r=n("6b1d"),o=n("98f3").left,l=n("7f8a"),c=n("ce71"),h=l("reduce"),d=c("reduce",{1:0});r({target:"Array",proto:!0,forced:!h||!d},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"2aa5":function(e,t,n){"use strict";var r=n("6b1d"),o=n("42c5");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},"2be6":function(e,t,n){"use strict";function r(e,t,n,r,o,l,c,h){var d,f="function"==typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),l&&(f._scopeId="data-v-"+l),c?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},f._ssrRegister=d):o&&(d=h?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),d)if(f.functional){f._injectStyles=d;var m=f.render;f.render=function(e,t){return d.call(t),m(e,t)}}else{var A=f.beforeCreate;f.beforeCreate=A?[].concat(A,d):[d]}return{exports:e,options:f}}n.d(t,"a",(function(){return r}))},"2d6d":function(e,t,n){"use strict";var r=n("6b1d"),o=n("d054").filter,l=n("189b"),c=n("ce71"),h=l("filter"),d=c("filter");r({target:"Array",proto:!0,forced:!h||!d},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"2df4":function(e,t,n){"use strict";var r=n("6b1d"),o=n("2e3f"),l=n("0e39"),c=n("c1a2"),h=n("fa46"),d=n("5b12"),f=n("b8ba"),m=n("7d53"),A=n("0e93"),y=n("5bb7"),v=n("ff89"),_=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,x=m("iterator"),E=function(){return this};e.exports=function(e,t,n,m,v,C,S){o(n,t,m);var T,B,k,I=function(e){if(e===v&&O)return O;if(!w&&e in D)return D[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",P=!1,D=e.prototype,U=D[x]||D["@@iterator"]||v&&D[v],O=!w&&U||I(v),F="Array"==t&&D.entries||U;if(F&&(T=l(F.call(new e)),_!==Object.prototype&&T.next&&(A||l(T)===_||(c?c(T,_):"function"!=typeof T[x]&&d(T,x,E)),h(T,M,!0,!0),A&&(y[M]=E))),"values"==v&&U&&"values"!==U.name&&(P=!0,O=function(){return U.call(this)}),A&&!S||D[x]===O||d(D,x,O),y[t]=O,v)if(B={values:I("values"),keys:C?O:I("keys"),entries:I("entries")},S)for(k in B)(w||P||!(k in D))&&f(D,k,B[k]);else r({target:t,proto:!0,forced:w||P},B);return B}},"2e2d":function(e,t,n){},"2e3f":function(e,t,n){"use strict";var r=n("ff89").IteratorPrototype,o=n("82e8"),l=n("9618"),c=n("fa46"),h=n("5bb7"),d=function(){return this};e.exports=function(e,t,n){var f=t+" Iterator";return e.prototype=o(r,{next:l(1,n)}),c(e,f,!1,!0),h[f]=d,e}},"2e45":function(e,t,n){},"2f6a":function(e,t,n){"use strict";var r=n("72df");function o(s,e){return RegExp(s,e)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},3211:function(e,t,n){var r=n("7d53")("iterator"),o=!1;try{var l=0,c={next:function(){return{done:!!l++}},return:function(){o=!0}};c[r]=function(){return this},Array.from(c,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var object={};object[r]=function(){return{next:function(){return{done:n=!0}}}},e(object)}catch(e){}return n}},3217:function(e,t,n){"use strict";var r=n("63a2");n.n(r).a},"332c":function(e,t,n){var r=n("4cdd"),o=n("1d8a"),l=r("keys");e.exports=function(e){return l[e]||(l[e]=o(e))}},"33ef":function(e,t,n){"use strict";
2var r=n("6b1d"),o=n("7526"),l=n("c6de"),c=n("9a0f"),h=n("b495"),d=n("378c"),f=n("dac6"),m=n("7d53"),A=n("189b"),y=n("ce71"),v=A("slice"),_=y("slice",{ACCESSORS:!0,0:0,1:2}),w=m("species"),x=[].slice,E=Math.max;r({target:"Array",proto:!0,forced:!v||!_},{slice:function(e,t){var n,r,m,A=d(this),y=h(A.length),v=c(e,y),_=c(void 0===t?y:t,y);if(l(A)&&("function"!=typeof(n=A.constructor)||n!==Array&&!l(n.prototype)?o(n)&&null===(n=n[w])&&(n=void 0):n=void 0,n===Array||void 0===n))return x.call(A,v,_);for(r=new(void 0===n?Array:n)(E(_-v,0)),m=0;v<_;v++,m++)v in A&&f(r,m,A[v]);return r.length=m,r}})},"33efa":function(e,t,n){"use strict";var r=n("e696");n.n(r).a},3500:function(e,t,n){"use strict";var r=n("3533"),o={name:"mSwitch",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},onChange:{type:Function,default:function(){}},leftSlot:String,rightSlot:String,control:{type:String},form:{type:[r.FormGroup,Object]}},data:function(){var e=this;return{check:this.checked,onCheck:function(t){e.value=!1,r.METHODS.onInput.call(e,t),e.check=!e.check,e.onChange(e.check)},value:!1,isFocused:!1,validValidators:[],valid:!1,touched:!1,validation:this.form?"validate":""}},methods:{validate:function(){r.METHODS.validate.call(this),this.$emit("isValid",this.valid)}},created:function(){r.METHODS.created.call(this)},beforeMount:function(){r.METHODS.beforeMount.call(this)}},l=(n("7fc8"),n("2be6")),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",[e.leftSlot?n("div",[e._v(e._s(e.leftSlot))]):e._e(),n("div",[n("div",{staticClass:"switch"},[n("input",{attrs:{type:"checkbox",disabled:e.disabled},domProps:{checked:e.check},on:{input:e.onCheck}}),n("span",{class:["slider",e.validation]})])]),e.rightSlot?n("div",[e._v(e._s(e.rightSlot))]):e._e()])}),[],!1,null,"054593ee",null);t.a=component.exports},3533:function(e,t,n){var r=n("8581").FormGroup,o=n("a5a9"),l=o.METHODS,c=o.setValidators,h=o.validate;e.exports={FormGroup:r,validate:h,setValidators:c,METHODS:l}},"36e5":function(e,t,n){"use strict";var r={name:"SegmentedControl",components:{y2Button:n("1ec6").a},props:{size:{type:String,default:"medium"},buttons:{type:Array,default:function(){return[]}},cb:{type:Function,default:function(){}}}},o=(n("c593"),n("2be6")),component=Object(o.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"segment"},e._l(e.buttons,(function(t,r){return n("y2-button",{key:r,class:[!0===t.selected?"selected":"",!0===t.disabled?"disabled":""],attrs:{size:e.size,disabled:String(t.disabled)},on:{click:function(t){return e.cb(t,r)}}},[e._v(" "+e._s(t.btnSlot)+" ")])})),1)}),[],!1,null,"2c1958c0",null);t.a=component.exports},"378c":function(e,t,n){var r=n("83a6"),o=n("730c");e.exports=function(e){return r(o(e))}},"37d1":function(e,t,n){var r=n("730c");e.exports=function(e){return Object(r(e))}},"3cec":function(e,t,n){var r={};r[n("7d53")("toStringTag")]="z",e.exports="[object z]"===String(r)},"3e2d":function(e,t,n){"use strict";var r=n("4e0e");n.n(r).a},"3e32":function(e,t,n){var r=n("7d53")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},"3e34":function(e,t,n){var r=n("f498"),o=n("5b12");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},"3e36":function(e,t,n){var r=n("f498");e.exports=r},"405b":function(e,t,n){var r,o,l;"undefined"!=typeof self&&self,o=[],void 0===(l="function"==typeof(r=function(){return 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(e){var n,r,o,l=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(e.stack),c=l&&l[1]||!1,line=l&&l[2]||!1,h=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");c===h&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(line-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var i=0;i<d.length;i++){if("interactive"===d[i].readyState)return d[i];if(d[i].src===c)return d[i];if(c===h&&d[i].innerHTML&&d[i].innerHTML.trim()===o)return d[i]}return null}}})?r.apply(t,o):r)||(e.exports=l)},4177:function(e,t,n){"use strict";n("841a"),n("e94e");var r=n("3533"),o={name:"m-checkbox",props:{label:{type:String,required:!0},forlabel:String,name:{type:[String,Number]},required:{type:[String,Number,Boolean]},disabled:{type:[String,Boolean],default:!1},control:{type:String},form:{type:[r.FormGroup,Object]}},data:function(){return{check:!1,value:!1,isFocused:!1,validValidators:[],valid:!1,touched:!1}},computed:{invalid:function(){return this.validValidators.find((function(e){return!e.valid}))}},methods:{onInput:function(e){this.value=e.target.checked,this.check=this.value,r.METHODS.onInput.call(this,e)},validate:function(){r.METHODS.validate.call(this),this.$emit("isValid",this.valid)}},created:function(){r.METHODS.created.call(this)},beforeMount:function(){r.METHODS.beforeMount.call(this)}},l=(n("ff55"),n("2be6")),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("label",{staticClass:"m-checkbox",class:{disabled:e.disabled}},[n("input",{attrs:{type:"checkbox",disabled:e.disabled},domProps:{checked:e.check},on:{input:e.onInput}}),n("span",{staticClass:"checkmark"}),n("span",{domProps:{innerHTML:e._s(e.label)}})]),[n("div",{staticClass:"m-error-wrapper"},[n("transition",{attrs:{name:"fade"}}
2,[e.invalid&&e.touched?n("div",{staticClass:"m-error"},[e._v(" "+e._s(e.invalid.message)+" ")]):e._e()])],1)]],2)}),[],!1,null,"a9fb83c0",null);t.a=component.exports},"42c5":function(e,t,n){"use strict";var r,o,l=n("abfd"),c=n("2f6a"),h=RegExp.prototype.exec,d=String.prototype.replace,f=h,m=(r=/a/,o=/b*/g,h.call(r,"a"),h.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),A=c.UNSUPPORTED_Y||c.BROKEN_CARET,y=void 0!==/()??/.exec("")[1];(m||y||A)&&(f=function(e){var t,n,r,i,o=this,c=A&&o.sticky,f=l.call(o),source=o.source,v=0,_=e;return c&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),_=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(source="(?: "+source+")",_=" "+_,v++),n=new RegExp("^(?:"+source+")",f)),y&&(n=new RegExp("^"+source+"$(?!\\s)",f)),m&&(t=o.lastIndex),r=h.call(c?n:o,_),c?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:m&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),y&&r&&r.length>1&&d.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=f},"433a":function(e,t,n){var r=n("157c"),o=n("8697"),l=n("7d53")("species");e.exports=function(e,t){var n,c=r(e).constructor;return void 0===c||null==(n=r(c)[l])?t:o(n)}},4581:function(e,t,n){"use strict";var r={name:"m-badge",props:{size:{type:String,default:"large"},colorStyle:{type:String,default:"primary"},color:{type:String,default:"orange"}}},o=(n("f034"),n("2be6")),component=Object(o.a)(r,(function(){var e=this.$createElement;return(this._self._c||e)("div",{class:[this.size,this.colorStyle,this.color]},[this._t("default")],2)}),[],!1,null,"a8c2c348",null);t.a=component.exports},4615:function(e,t,n){var r=n("b466"),o=n("b706"),l=n("a5e3"),c=n("77c5");e.exports=function(e){return r(e)||o(e)||l(e)||c()}},"4cdd":function(e,t,n){var r=n("0e93"),o=n("c607");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"4db4":function(e,t,n){var o=n("e7a0");e.exports=o&&!Symbol.sham&&"symbol"==r(Symbol.iterator)},"4e0e":function(e,t,n){},"4e41":function(e,t,n){var r=n("7d53");t.f=r},"4f91":function(e,t,n){"use strict";n("841a"),n("e94e");var r=n("3533"),o={name:"m-input",model:{prop:"value",event:"change"},props:{label:{type:String,required:!0},forlabel:String,type:{type:String,required:!0,default:"text"},name:{type:[String,Number]},required:{type:[String,Number,Boolean]},min:{type:[String,Number]},max:{type:[String,Number]},placeholder:{type:[String,Number]},autocomplete:{type:String,default:"on"},validators:{type:Array},prefix:{type:String},suffix:{type:String},delete:{type:[String,Boolean],default:!1},disabled:{type:[String,Boolean],default:!1},editable:{type:[String,Boolean],default:!1},counter:{type:[String,Number]},control:{type:String},form:{type:[r.FormGroup,Object]},maxlength:[String,Number]},data:function(){return{value:void 0,isFocused:!1,validValidators:[],valid:!1,touched:!1}},computed:{invalid:function(){return this.validValidators.find((function(e){return!e.valid}))}},methods:{prefixClick:function(){this.$emit("prefixClick")},suffixClick:function(){this.$emit("suffixClick")},onFocus:function(){r.METHODS.onFocus.call(this)},onBlur:function(){r.METHODS.onBlur.call(this)},onInput:function(e){r.METHODS.onInput.call(this,e)},validate:function(){r.METHODS.validate.call(this),this.$emit("isValid",this.valid)},clearValue:function(){this.value=null,this.validate()}},created:function(){r.METHODS.created.call(this)},beforeMount:function(){r.METHODS.beforeMount.call(this)},mounted:function(){this.value&&this.validate()}},l=(n("f043"),n("2be6")),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-input",class:{"m-input-error":!e.valid&&e.touched,"m-input-success":e.valid&&e.validValidators.length&&e.touched,"m-disabled":JSON.parse(this.disabled),"m-editable":JSON.parse(this.editable)}},[n("div",{staticClass:"input-title"},[n("label",{attrs:{for:e.forlabel}},[e.valid&&e.validValidators.length&&e.touched?n("i",{staticClass:"mangoi_check"}):e._e(),e._v(" "+e._s(e.label)+" ")]),e.counter?n("h5",[e._v(e._s(e.counter)+" / "+e._s(e.value&&e.value.length||0))]):e._e(
2)]),n("div",{staticClass:"input-container"},[e.prefix?n("i",{class:e.prefix,on:{click:e.prefixClick}}):e._e(),n("input",{attrs:{type:e.type,id:e.forlabel,name:e.name,disabled:JSON.parse(this.disabled),placeholder:e.placeholder,autocomplete:e.autocomplete,maxlength:e.maxlength},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}),e.suffix?n("i",{class:e.suffix,on:{click:e.suffixClick}}):e._e(),this.delete?n("i",{staticClass:"delete",on:{click:e.clearValue}}):e._e()]),[n("div",{staticClass:"m-error-wrapper"},[n("transition",{attrs:{name:"fade"}},[e.invalid&&e.touched?n("div",{staticClass:"m-error"},[e._v(" "+e._s(e.invalid.message)+" ")]):e._e()])],1)]],2)}),[],!1,null,"1e2ef385",null);t.a=component.exports},"4fed":function(e,t,n){var r,o,l=n("f498"),c=n("64e4"),h=l.process,d=h&&h.versions,f=d&&d.v8;f?o=(r=f.split("."))[0]+r[1]:c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},5268:function(e,t,n){"use strict";var r=n("3cec"),o=n("da06");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},"526e":function(e,t,n){"use strict";var r=n("f3d0");n.n(r).a},5428:function(e,t,n){var path=n("3e36"),r=n("f498"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(path[e])||o(r[e]):path[e]&&path[e][t]||r[e]&&r[e][t]}},"56b1":function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},"56d7":function(e,t,n){"use strict";(function(e){var r=n("0b38"),o=n("edde"),l=n("c9cb"),c=n("aa64"),h=n("61e6"),d=n("4177"),f=n("a2c2"),m=n("3500"),A=n("d8fd"),y=n("0139"),v=n("ccb8"),_=n("e8be"),w=n("36e5"),x=n("1fba"),E=n("ef6e"),C=n("4f91"),S=n("0270"),T=n("4581"),B=n("1ec6"),k=n("61d8"),I=n("197e"),M=n("3533"),P={MLoader:o.a,MModal:l.a,MDatepicker:k.a,MIcon:h.a,MCheckbox:d.a,MSwitch:m.a,MCounter:A.a,MOption:y.a,MSelect:v.a,MRibbon:_.a,MSegmentedControl:w.a,MTextLink:x.a,MTabNavigation:E.a,MInput:C.a,MContainer:S.a,MBadge:T.a,MButton:B.a,MDropdown:I.a},D=Object(r.a)(Object(r.a)({installed:!1,install:function(e){if(!this.installed){for(var t in this.installed=!0,P)e.component(t,P[t]);var n=new(e.extend(f.a));n.$mount(),document.body.appendChild(n.$el),e.prototype.notification=n}}},P),{},{FormGroup:M.FormGroup,modalService:c.a}),U=null;"undefined"!=typeof window?U=window.Vue:void 0!==e&&(U=e.vue),U&&U.use(D),t.a=D}).call(this,n("7d15"))},"5b12":function(e,t,n){var r=n("d4cb"),o=n("abdf"),l=n("9618");e.exports=r?function(object,e,t){return o.f(object,e,l(1,t))}:function(object,e,t){return object[e]=t,object}},"5bb7":function(e,t){e.exports={}},"5cf9":function(e,t,n){"use strict";var r=n("209c");n.n(r).a},"5dd6":function(e,t,n){},6009:function(e,t,n){var r=n("d4cb"),o=n("0c47"),l=n("378c"),c=n("e129").f,h=function(e){return function(t){for(var n,h=l(t),d=o(h),f=d.length,i=0,m=[];f>i;)n=d[i++],r&&!c.call(h,n)||m.push(e?[n,h[n]]:h[n]);return m}};e.exports={entries:h(!0),values:h(!1)}},"61ad":function(e,t,n){var r=n("730c"),o="["+n("fbf7")+"]",l=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),h=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(l,"")),2&e&&(n=n.replace(c,"")),n}};e.exports={start:h(1),end:h(2),trim:h(3)}},"61d8":function(e,t,n){"use strict";n("841a"),n("e94e"),n("2aa5"),n("62c8");function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function l(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},t=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(source).filter((function(e){return Object.getOwnPropertyDescriptor(source,e).enumerable})))),t.forEach((function(t){c(e,t,source[t])}))}return e}var d=new(function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.language=t,this.months=n,this.monthsAbbr=r,this.days=o,this.rtl=!1,this.ymd=!1,this.yearSuffix=""}var t,n,r;return t=e,(n=[{key:"language",get:function(){return this._language},set:function(e){if("string"!=typeof e)throw new TypeError("Language must be a string");this._language=e}},{key:"months",get:function(){return this._months},set:function(e){if(12!==e.length)throw new RangeError("There must be 12 months for ".concat(this.language," language"));this._months=e}},{key:"monthsAbbr",get:function(){return this._monthsAbbr},set:function(e){if(12!==e.length)throw new RangeError("There must be 12 abbreviated months for ".concat(this.language," language"));this._monthsAbbr=e}},{key:"days",get:function(){return this._days}
vendor: 27,420 bytes, line 2
2,set:function(e){if(7!==e.length)throw new RangeError("There must be 7 days for ".concat(this.language," language"));this._days=e}}])&&l(t.prototype,n),r&&l(t,r),e}())("English",["January","February","March","April","May","June","July","August","September","October","November","December"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),f={useUtc:!1,getFullYear:function(e){return this.useUtc?e.getUTCFullYear():e.getFullYear()},getMonth:function(e){return this.useUtc?e.getUTCMonth():e.getMonth()},getDate:function(e){return this.useUtc?e.getUTCDate():e.getDate()},getDay:function(e){return this.useUtc?e.getUTCDay():e.getDay()},getHours:function(e){return this.useUtc?e.getUTCHours():e.getHours()},getMinutes:function(e){return this.useUtc?e.getUTCMinutes():e.getMinutes()},setFullYear:function(e,t,n){return this.useUtc?e.setUTCFullYear(t):e.setFullYear(t)},setMonth:function(e,t,n){return this.useUtc?e.setUTCMonth(t):e.setMonth(t)},setDate:function(e,t,n){return this.useUtc?e.setUTCDate(t):e.setDate(t)},compareDates:function(e,t){var n=new Date(e.getTime()),r=new Date(t.getTime());return this.useUtc?(n.setUTCHours(0,0,0,0),r.setUTCHours(0,0,0,0)):(n.setHours(0,0,0,0),r.setHours(0,0,0,0)),n.getTime()===r.getTime()},isValidDate:function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},getDayNameAbbr:function(e,t){if("object"!==o(e))throw TypeError("Invalid Type");return t[this.getDay(e)]},getMonthName:function(e,t){if(!t)throw Error("missing 2nd parameter Months array");if("object"===o(e))return t[this.getMonth(e)];if("number"==typeof e)return t[e];throw TypeError("Invalid type")},getMonthNameAbbr:function(e,t){if(!t)throw Error("missing 2nd paramter Months array");if("object"===o(e))return t[this.getMonth(e)];if("number"==typeof e)return t[e];throw TypeError("Invalid type")},daysInMonth:function(e,t){return/8|3|5|10/.test(t)?30:1===t?(e%4||!(e%100))&&e%400?28:29:31},getNthSuffix:function(e){switch(e){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},formatDate:function(e,t,n){n=n||d;var r=this.getFullYear(e),o=this.getMonth(e)+1,l=this.getDate(e);return t.replace(/dd/,("0"+l).slice(-2)).replace(/d/,l).replace(/yyyy/,r).replace(/yy/,String(r).slice(2)).replace(/MMMM/,this.getMonthName(this.getMonth(e),n.months)).replace(/MMM/,this.getMonthNameAbbr(this.getMonth(e),n.monthsAbbr)).replace(/MM/,("0"+o).slice(-2)).replace(/M(?!a|ä|e)/,o).replace(/su/,this.getNthSuffix(this.getDate(e))).replace(/D(?!e|é|i)/,this.getDayNameAbbr(e,n.days))},createDateArray:function(e,t){for(var n=[];e<=t;)n.push(new Date(e)),e=this.setDate(new Date(e),this.getDate(new Date(e))+1);return n},validateDateInput:function(e){return null===e||e instanceof Date||"string"==typeof e||"number"==typeof e}},m=function(e){return h({},f,{useUtc:e})},A=h({},f);var y=function(template,style,script,e,t,n,r,o,l,c){"boolean"!=typeof r&&(l=o,o=r,r=!1);var h,d="function"==typeof script?script.options:script;if(template&&template.render&&(d.render=template.render,d.staticRenderFns=template.staticRenderFns,d._compiled=!0,t&&(d.functional=!0)),e&&(d._scopeId=e),n?(h=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),style&&style.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(n)},d._ssrRegister=h):style&&(h=r?function(){style.call(this,c(this.$root.$options.shadowRoot))}:function(e){style.call(this,o(e))}),h)if(d.functional){var f=d.render;d.render=function(e,t){return h.call(t),f(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,h):[h]}return script},v={props:{selectedDate:Date,resetTypedDate:[Date],format:[String,Function],translation:Object,inline:Boolean,id:String,name:String,refName:String,openDate:Date,placeholder:String,inputClass:[String,Object,Array],clearButton:Boolean,clearButtonIcon:String,calendarButton:Boolean,calendarButtonIcon:String,calendarButtonIconContent:String,disabled:Boolean,required:Boolean,typeable:Boolean,bootstrapStyling:Boolean,useUtc:Boolean},data:function(){return{input:null,typedDate:!1,utils:m(this.useUtc)}},computed:{formattedValue:function(){return this.selectedDate?this.typedDate?this.typedDate:"function"==typeof this.format?this.format(this.selectedDate):this.utils.formatDate(new Date(this.selectedDate),this.format,this.translation):null},computedInputClass:function(){return this.bootstrapStyling?"string"==typeof this.inputClass?[this.inputClass,"form-control"].join(" "):h({"form-control":!0},this.inputClass):this.inputClass}},watch:{resetTypedDate:function(){this.typedDate=!1}},methods:{showCalendar:function(){this.$emit("showCalendar")},parseTypedDate:function(e){if([27,13].includes(e.keyCode)&&this.input.blur(),this.typeable){var t=Date.parse(this.input.value);isNaN(t)||(this.typedDate=this.input.value,this.$emit("typedDate",new Date(this.typedDate)))}},inputBlurred:function(){this.typeable&&isNaN(Date.parse(this.input.value))&&(this.clearDate(),this.input.value=null,this.typedDate=null),this.$emit("closeCalendar")},clearDate:function(){this.$emit("clearDate")}},mounted:function(){this.input=this.$el.querySelector("input")}},_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"input-group":e.bootstrapStyling}},[e.calendarButton?n("span",{staticClass:"vdp-datepicker__calendar-button",class:{"input-group-prepend":e.bootstrapStyling},style:{"cursor:not-allowed;":e.disabled},on:{click:e.showCalendar}},[n("span",{class:{"input-group-text":e.bootstrapStyling}},[n("i",{class:e.calendarButtonIcon},[e._v("\n "+e._s(e.calendarButtonIconContent)+"\n "),e.calendarButtonIcon?e._e():n("span",[e._v("â¦")])])])]):e._e(),e._v(" "),n("input",{ref:e.refName,class:e.computedInputClass,attrs:{type:e.inline?"hidden":"text",name:e.name,id:e.id,"open-date":e.openDate,placeholder:e.placeholder,"clear-button":e.clearButton,disabled:e.disabled,required:e.required,readonly:!e.typeable,autocomplete:"off"},domProps:{value:e.formattedValue},on:{click:e.showCalendar,keyup:e.parseTypedDate,blur:e.inputBlurred}}),e._v(" "),e.clearButton&&e.selectedDate?n("span",{staticClass:"vdp-datepicker__clear-button",class:{"input-group-append":e.bootstrapStyling},on:{click:function(t){return e.clearDate()}}},[n("span",{class:{"input-group-text":e.bootstrapStyling}},[n("i",{class:e.clearButtonIcon},[e.clearButtonIcon?e._e():n("span",[e._v("Ã")])])])]):e._e(),e._v(" "),e._t("afterDateInput")],2)};_._withStripped=!0;var w=y({render:_,staticRenderFns:[]},void 0,v,void 0,!1,void 0,void 0,void 0),x={props:{showDayView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,fullMonthName:Boolean,allowedToShowView:Function,dayCellContent:{type:Function,default:function(e){return e.date}},disabledDates:Object,highlighted:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,mondayFirst:Boolean,useUtc:Boolean},data:function(){return{utils:m(this.useUtc)}},computed:{daysOfWeek:function(){if(this.mondayFirst){var e=this.translation.days.slice();return e.push(e.shift()),e}return this.translation.days},blankDays:function(){var e=this.pageDate,t=this.useUtc?new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)):new Date(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes());return this.mondayFirst?this.utils.getDay(t)>0?this.utils.getDay(t)-1:6:this.utils.getDay(t)},days:function(){for(var e=this.pageDate,t=[],n=this.useUtc?new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)):new Date(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes()),r=this.utils.daysInMonth(this.utils.getFullYear(n),this.utils.getMonth(n)),i=0;i<r;i++)t.push({date:this.utils.getDate(n),timestamp:n.getTime(),isSelected:this.isSelectedDate(n),isDisabled:this.isDisabledDate(n),isHighlighted:this.isHighlightedDate(n),isHighlightStart:this.isHighlightStart(n),isHighlightEnd:this.isHighlightEnd(n),isToday:this.utils.compareDates(n,new Date),isWeekend:0===this.utils.getDay(n)||6===this.utils.getDay(n),isSaturday:6===this.utils.getDay(n),isSunday:0===this.utils.getDay(n)}),this.utils.setDate(n,this.utils.getDate(n)+1);return t},currMonthName:function(){var e=this.fullMonthName?this.translation.months:this.translation.monthsAbbr;return this.utils.getMonthNameAbbr(this.utils.getMonth(this.pageDate),e)},currYearName:function(){var e=this.translation.yearSuffix;return"".concat(this.utils.getFullYear(this.pageDate)).concat(e)},isYmd:function(){return this.translation.ymd&&!0===this.translation.ymd},isLeftNavDisabled:function(){return this.isRtl?this.isNextMonthDisabled(this.pageTimestamp):this.isPreviousMonthDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousMonthDisabled(this.pageTimestamp):this.isNextMonthDisabled(this.pageTimestamp)}},methods:{selectDate:function(e){if(e.isDisabled)return this.$emit("selectedDisabled",e),!1;this.$emit("selectDate",e)},getPageMonth:function(){return this.utils.getMonth(this.pageDate)},showMonthCalendar:function(){this.$emit("showMonthCalendar")},changeMonth:function(e){var t=this.pageDate;this.utils.setMonth(t,this.utils.getMonth(t)+e),this.$emit("changedMonth",t)},previousMonth:function(){this.isPreviousMonthDisabled()||this.changeMonth(-1)},isPreviousMonthDisabled:function(){if(!this.disabledDates||!this.disabledDates.to)return!1;var e=this.pageDate;return this.utils.getMonth(this.disabledDates.to)>=this.utils.getMonth(e)&&this.utils.getFullYear(this.disabledDates.to)>=this.utils.getFullYear(e)},nextMonth:function(){this.isNextMonthDisabled()||this.changeMonth(1)},isNextMonthDisabled:function(){if(!this.disabledDates||!this.disabledDates.from)return!1;var e=this.pageDate;return this.utils.getMonth(this.disabledDates.from)<=this.utils.getMonth(e)&&this.utils.getFullYear(this.disabledDates.from)<=this.utils.getFullYear(e)},isSelectedDate:function(e){return this.selectedDate&&this.utils.compareDates(this.selectedDate,e)},isDisabledDate:function(e){var t=this,n=!1;return void 0!==this.disabledDates&&(void 0!==this.disabledDates.dates&&this.disabledDates.dates.forEach((function(r){if(t.utils.compareDates(e,r))return n=!0,!0})),void 0!==this.disabledDates.to&&this.disabledDates.to&&e<this.disabledDates.to&&(n=!0),void 0!==this.disabledDates.from&&this.disabledDates.from&&e>this.disabledDates.from&&(n=!0),void 0!==this.disabledDates.ranges&&this.disabledDates.ranges.forEach((function(t){if(void 0!==t.from&&t.from&&void 0!==t.to&&t.to&&e<t.to&&e>t.from)return n=!0,!0})),void 0!==this.disabledDates.days&&-1!==this.disabledDates.days.indexOf(this.utils.getDay(e))&&(n=!0),void 0!==this.disabledDates.daysOfMonth&&-1!==this.disabledDates.daysOfMonth.indexOf(this.utils.getDate(e))&&(n=!0),"function"==typeof this.disabledDates.customPredictor&&this.disabledDates.customPredictor(e)&&(n=!0),n)},isHighlightedDate:function(e){var t=this;if((!this.highlighted||!this.highlighted.includeDisabled)&&this.isDisabledDate(e))return!1;var n=!1;return void 0!==this.highlighted&&(void 0!==this.highlighted.dates&&this.highlighted.dates.forEach((function(r){if(t.utils.compareDates(e,r))return n=!0,!0})),this.isDefined(this.highlighted.from)&&this.isDefined(this.highlighted.to)&&(n=e>=this.highlighted.from&&e<=this.highlighted.to),void 0!==this.highlighted.days&&-1!==this.highlighted.days.indexOf(this.utils.getDay(e))&&(n=!0),void 0!==this.highlighted.daysOfMonth&&-1!==this.highlighted.daysOfMonth.indexOf(this.utils.getDate(e))&&(n=!0),"function"==typeof this.highlighted.customPredictor&&this.highlighted.customPredictor(e)&&(n=!0),n)},dayClasses:function(e){return{selected:e.isSelected,disabled:e.isDisabled,highlighted:e.isHighlighted,today:e.isToday,weekend:e.isWeekend,sat:e.isSaturday,sun:e.isSunday,"highlight-start":e.isHighlightStart,"highlight-end":e.isHighlightEnd}},isHighlightStart:function(e){return this.isHighlightedDate(e)&&this.highlighted.from instanceof Date&&this.utils.getFullYear(this.highlighted.from)===this.utils.getFullYear(e)&&this.utils.getMonth(this.highlighted.from)===this.utils.getMonth(e)&&this.utils.getDate(this.highlighted.from)===this.utils.getDate(e)},isHighlightEnd:function(e){return this.isHighlightedDate(e)&&this.highlighted.to instanceof Date&&this.utils.getFullYear(this.highlighted.to)===this.utils.getFullYear(e)&&this.utils.getMonth(this.highlighted.to)===this.utils.getMonth(e)&&this.utils.getDate(this.highlighted.to)===this.utils.getDate(e)},isDefined:function(e){return void 0!==e&&e}}},E=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showDayView,expression:"showDayView"}],class:[e.calendarClass,"vdp-datepicker__calendar"],style:e.calendarStyle,on:{mousedown:function(e){e.preventDefault()}}},[e._t("beforeCalendarHeader"),e._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:e.isLeftNavDisabled},on:{click:function(t){e.isRtl?e.nextMonth():e.previousMonth()}}},[e._v("<")]),e._v(" "),n("span",{staticClass:"day__month_btn",class:e.allowedToShowView("month")?"up":"",on:{click:e.showMonthCalendar}},[e._v(e._s(e.isYmd?e.currYearName:e.currMonthName)+" "+e._s(e.isYmd?e.currMonthName:e.currYearName))]),e._v(" "),n("span",{staticClass:"next",class:{disabled:e.isRightNavDisabled},on:{click:function(t){e.isRtl?e.previousMonth():e.nextMonth()}}},[e._v(">")])]),e._v(" "),n("div",{class:e.isRtl?"flex-rtl":""},[e._l(e.daysOfWeek,(function(t){return n("span",{key:t.timestamp,staticClass:"cell day-header"},[e._v(e._s(t))])})),e._v(" "),e.blankDays>0?e._l(e.blankDays,(function(e){return n("span",{key:e.timestamp,staticClass:"cell day blank"})})):e._e(),e._l(e.days,(function(t){return n("span",{key:t.timestamp,staticClass:"cell day",class:e.dayClasses(t),domProps:{innerHTML:e._s(e.dayCellContent(t))},on:{click:function(n){return e.selectDate(t)}}})}))],2)],2)};E._withStripped=!0;var C=y({render:E,staticRenderFns:[]},void 0,x,void 0,!1,void 0,void 0,void 0),S={props:{showMonthView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,disabledDates:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,allowedToShowView:Function,useUtc:Boolean},data:function(){return{utils:m(this.useUtc)}},computed:{months:function(){for(var e=this.pageDate,t=[],n=this.useUtc?new Date(Date.UTC(e.getUTCFullYear(),0,e.getUTCDate())):new Date(e.getFullYear(),0,e.getDate(),e.getHours(),e.getMinutes()),i=0;i<12;i++)t.push({month:this.utils.getMonthName(i,this.translation.months),timestamp:n.getTime(),isSelected:this.isSelectedMonth(n),isDisabled:this.isDisabledMonth(n)}),this.utils.setMonth(n,this.utils.getMonth(n)+1);return t},pageYearName:function(){var e=this.translation.yearSuffix;return"".concat(this.utils.getFullYear(this.pageDate)).concat(e)},isLeftNavDisabled:function(){return this.isRtl?this.isNextYearDisabled(this.pageTimestamp):this.isPreviousYearDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousYearDisabled(this.pageTimestamp):this.isNextYearDisabled(this.pageTimestamp)}},methods:{selectMonth:function(e){if(e.isDisabled)return!1;this.$emit("selectMonth",e)},changeYear:function(e){var t=this.pageDate;this.utils.setFullYear(t,this.utils.getFullYear(t)+e),this.$emit("changedYear",t)},previousYear:function(){this.isPreviousYearDisabled()||this.changeYear(-1)},isPreviousYearDisabled:function(){return!(!this.disabledDates||!this.disabledDates.to)&&this.utils.getFullYear(this.disabledDates.to)>=this.utils.getFullYear(this.pageDate)},nextYear:function(){this.isNextYearDisabled()||this.changeYear(1)},isNextYearDisabled:function(){return!(!this.disabledDates||!this.disabledDates.from)&&this.utils.getFullYear(this.disabledDates.from)<=this.utils.getFullYear(this.pageDate)},showYearCalendar:function(){this.$emit("showYearCalendar")},isSelectedMonth:function(e){return this.selectedDate&&this.utils.getFullYear(this.selectedDate)===this.utils.getFullYear(e)&&this.utils.getMonth(this.selectedDate)===this.utils.getMonth(e)},isDisabledMonth:function(e){var t=!1;return void 0!==this.disabledDates&&(void 0!==this.disabledDates.to&&this.disabledDates.to&&(this.utils.getMonth(e)<this.utils.getMonth(this.disabledDates.to)&&this.utils.getFullYear(e)<=this.utils.getFullYear(this.disabledDates.to)||this.utils.getFullYear(e)<this.utils.getFullYear(this.disabledDates.to))&&(t=!0),void 0!==this.disabledDates.from&&this.disabledDates.from&&(this.utils.getMonth(e)>this.utils.getMonth(this.disabledDates.from)&&this.utils.getFullYear(e)>=this.utils.getFullYear(this.disabledDates.from)||this.utils.getFullYear(e)>this.utils.getFullYear(this.disabledDates.from))&&(t=!0),"function"==typeof this.disabledDates.customPredictor&&this.disabledDates.customPredictor(e)&&(t=!0),t)}}},T=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showMonthView,expression:"showMonthView"}],class:[e.calendarClass,"vdp-datepicker__calendar"],style:e.calendarStyle,on:{mousedown:function(e){e.preventDefault()}}},[e._t("beforeCalendarHeader"),e._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:e.isLeftNavDisabled},on:{click:function(t){e.isRtl?e.nextYear():e.previousYear()}}},[e._v("<")]),e._v(" "),n("span",{staticClass:"month__year_btn",class:e.allowedToShowView("year")?"up":"",on:{click:e.showYearCalendar}},[e._v(e._s(e.pageYearName))]),e._v(" "),n("span",{staticClass:"next",class:{disabled:e.isRightNavDisabled},on:{click:function(t){e.isRtl?e.previousYear():e.nextYear()}}},[e._v(">")])]),e._v(" "),e._l(e.months,(function(t){return n("span",{key:t.timestamp,staticClass:"cell month",class:{selected:t.isSelected,disabled:t.isDisabled},on:{click:function(n){return n.stopPropagation(),e.selectMonth(t)}}},[e._v(e._s(t.month))])}))],2)};T._withStripped=!0;var B=y({render:T,staticRenderFns:[]},void 0,S,void 0,!1,void 0,void 0,void 0),k={props:{showYearView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,disabledDates:Object,highlighted:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,allowedToShowView:Function,useUtc:Boolean},computed:{years:function(){for(var e=this.pageDate,t=[],n=this.useUtc?new Date(Date.UTC(10*Math.floor(e.getUTCFullYear()/10),e.getUTCMonth(),e.getUTCDate())):new Date(10*Math.floor(e.getFullYear()/10),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes()),i=0;i<10;i++)t.push({year:this.utils.getFullYear(n),timestamp:n.getTime(),isSelected:this.isSelectedYear(n),isDisabled:this.isDisabledYear(n)}),this.utils.setFullYear(n,this.utils.getFullYear(n)+1);return t},getPageDecade:function(){var e=10*Math.floor(this.utils.getFullYear(this.pageDate)/10),t=e+9,n=this.translation.yearSuffix;return"".concat(e," - ").concat(t).concat(n)},isLeftNavDisabled:function(){return this.isRtl?this.isNextDecadeDisabled(this.pageTimestamp):this.isPreviousDecadeDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousDecadeDisabled(this.pageTimestamp):this.isNextDecadeDisabled(this.pageTimestamp)}},data:function(){return{utils:m(this.useUtc)}},methods:{selectYear:function(e){if(e.isDisabled)return!1;this.$emit("selectYear",e)},changeYear:function(e){var t=this.pageDate;this.utils.setFullYear(t,this.utils.getFullYear(t)+e),this.$emit("changedDecade",t)},previousDecade:function(){if(this.isPreviousDecadeDisabled())return!1;this.changeYear(-10)},isPreviousDecadeDisabled:function(){return!(!this.disabledDates||!this.disabledDates.to)&&this.utils.getFullYear(this.disabledDates.to)>10*Math.floor(this.utils.getFullYear(this.pageDate)/10)-1},nextDecade:function(){if(this.isNextDecadeDisabled())return!1;this.changeYear(10)},isNextDecadeDisabled:function(){return!(!this.disabledDates||!this.disabledDates.from)&&this.utils.getFullYear(this.disabledDates.from)<10*Math.ceil(this.utils.getFullYear(this.pageDate)/10)},isSelectedYear:function(e){return this.selectedDate&&this.utils.getFullYear(this.selectedDate)===this.utils.getFullYear(e)},isDisabledYear:function(e){var t=!1;return!(void 0===this.disabledDates||!this.disabledDates)&&(void 0!==this.disabledDates.to&&this.disabledDates.to&&this.utils.getFullYear(e)<this.utils.getFullYear(this.disabledDates.to)&&(t=!0),void 0!==this.disabledDates.from&&this.disabledDates.from&&this.utils.getFullYear(e)>this.utils.getFullYear(this.disabledDates.from)&&(t=!0),"function"==typeof this.disabledDates.customPredictor&&this.disabledDates.customPredictor(e)&&(t=!0),t)}}},I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showYearView,expression:"showYearView"}],class:[e.calendarClass,"vdp-datepicker__calendar"],style:e.calendarStyle,on:{mousedown:function(e){e.preventDefault()}}},[e._t("beforeCalendarHeader"),e._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:e.isLeftNavDisabled},on:{click:function(t){e.isRtl?e.nextDecade():e.previousDecade()}}},[e._v("<")]),e._v(" "),n("span",[e._v(e._s(e.getPageDecade))]),e._v(" "),n("span",{staticClass:"next",class:{disabled:e.isRightNavDisabled},on:{click:function(t){e.isRtl?e.previousDecade():e.nextDecade()}}},[e._v(">")])]),e._v(" "),e._l(e.years,(function(t){return n("span",{key:t.timestamp,staticClass:"cell year",class:{selected:t.isSelected,disabled:t.isDisabled},on:{click:function(n){return n.stopPropagation(),e.selectYear(t)}}},[e._v(e._s(t.year))])}))],2)};I._withStripped=!0;var M={components:{DateInput:w,PickerDay:C,PickerMonth:B,PickerYear:y({render:I,staticRenderFns:[]},void 0,k,void 0,!1,void 0,void 0,void 0)},props:{value:{validator:function(e){return A.validateDateInput(e)}},name:String,refName:String,id:String,format:{type:[String,Function],default:"dd MMM yyyy"},language:{type:Object,default:function(){return d}},openDate:{validator:function(e){return A.validateDateInput(e)}},dayCellContent:Function,fullMonthName:Boolean,disabledDates:Object,highlighted:Object,placeholder:String,inline:Boolean,calendarClass:[String,Object,Array],inputClass:[String,Object,Array],wrapperClass:[String,Object,Array],mondayFirst:Boolean,clearButton:Boolean,clearButtonIcon:String,calendarButton:Boolean,calendarButtonIcon:String,calendarButtonIconContent:String,bootstrapStyling:Boolean,initialView:String,disabled:Boolean,required:Boolean,typeable:Boolean,useUtc:Boolean,minimumView:{type:String,default:"day"},maximumView:{type:String,default:"year"}},data:function(){var e=this.openDate?new Date(this.openDate):new Date,t=m(this.useUtc);return{pageTimestamp:t.setDate(e,1),selectedDate:null,showDayView:!1,showMonthView:!1,showYearView:!1,calendarHeight:0,resetTypedDate:new Date,utils:t}},watch:{value:function(e){this.setValue(e)},openDate:function(){this.setPageDate()},initialView:function(){this.setInitialView()}},computed:{computedInitialView:function(){return this.initialView?this.initialView:this.minimumView},pageDate:function(){return new Date(this.pageTimestamp)},translation:function(){return this.language},calendarStyle:function(){return{position:this.isInline?"static":void 0}},isOpen:function(){return this.showDayView||this.showMonthView||this.showYearView},isInline:function(){return!!this.inline},isRtl:function(){return!0===this.translation.rtl}},methods:{resetDefaultPageDate:function(){null!==this.selectedDate?this.setPageDate(this.selectedDate):this.setPageDate()},showCalendar:function(){return!this.disabled&&!this.isInline&&(this.isOpen?this.close(!0):void this.setInitialView())},setInitialView:function(){var e=this.computedInitialView;if(!this.allowedToShowView(e))throw new Error("initialView '".concat(this.initialView,"' cannot be rendered based on minimum '").concat(this.minimumView,"' and maximum '").concat(this.maximumView,"'"));switch(e){case"year":this.showYearCalendar();break;case"month":this.showMonthCalendar();break;default:this.showDayCalendar()}},allowedToShowView:function(view){var e=["day","month","year"],t=e.indexOf(this.minimumView),n=e.indexOf(this.maximumView),r=e.indexOf(view);return r>=t&&r<=n},showDayCalendar:function(){return!!this.allowedToShowView("day")&&(this.close(),this.showDayView=!0,!0)},showMonthCalendar:function(){return!!this.allowedToShowView("month")&&(this.close(),this.showMonthView=!0,!0)},showYearCalendar:function(){return!!this.allowedToShowView("year")&&(this.close(),this.showYearView=!0,!0)},setDate:function(e){var t=new Date(e);this.selectedDate=t,this.setPageDate(t),this.$emit("selected",t),this.$emit("input",t)},clearDate:function(){this.selectedDate=null,this.setPageDate(),this.$emit("selected",null),this.$emit("input",null),this.$emit("cleared")},selectDate:function(e){this.setDate(e.timestamp),this.isInline||this.close(!0),this.resetTypedDate=new Date},selectDisabledDate:function(e){this.$emit("selectedDisabled",e)},selectMonth:function(e){var t=new Date(e.timestamp);this.allowedToShowView("day")?(this.setPageDate(t),this.$emit("changedMonth",e),this.showDayCalendar()):this.selectDate(e)},selectYear:function(e){var t=new Date(e.timestamp);this.allowedToShowView("month")?(this.setPageDate(t),this.$emit("changedYear",e),this.showMonthCalendar()):this.selectDate(e)},setValue:function(e){if("string"==typeof e||"number"==typeof e){var t=new Date(e);e=isNaN(t.valueOf())?null:t}if(!e)return this.setPageDate(),void(this.selectedDate=null);this.selectedDate=e,this.setPageDate(e)},setPageDate:function(e){e||(e=this.openDate?new Date(this.openDate):new Date),this.pageTimestamp=this.utils.setDate(new Date(e),1)},handleChangedMonthFromDayPicker:function(e){this.setPageDate(e),this.$emit("changedMonth",e)},setTypedDate:function(e){this.setDate(e.getTime())},close:function(e){this.showDayView=this.showMonthView=this.showYearView=!1,this.isInline||(e&&this.$emit("closed"),document.removeEventListener("click",this.clickOutside,!1))},init:function(){this.value&&this.setValue(this.value),this.isInline&&this.setInitialView()}},mounted:function(){this.init()}},P="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var D=document.head||document.getElementsByTagName("head")[0],U={};var O=function(e){return function(e,style){return function(e,t){var n=P?t.media||"default":e,style=U[n]||(U[n]={ids:new Set,styles:[]});if(!style.ids.has(e)){style.ids.add(e);var code=t.source;if(t.map&&(code+="\n/*# sourceURL="+t.map.sources[0]+" */",code+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),style.element||(style.element=document.createElement("style"),style.element.type="text/css",t.media&&style.element.setAttribute("media",t.media),D.appendChild(style.element)),"styleSheet"in style.element)style.styles.push(code),style.element.styleSheet.cssText=style.styles.filter(Boolean).join("\n");else{var r=style.ids.size-1,o=document.createTextNode(code),l=style.element.childNodes;l[r]&&style.element.removeChild(l[r]),l.length?style.element.insertBefore(o,l[r]):style.element.appendChild(o)}}}(e,style)}},F=M,R=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vdp-datepicker",class:[e.wrapperClass,e.isRtl?"rtl":""]},[n("date-input",{attrs:{selectedDate:e.selectedDate,resetTypedDate:e.resetTypedDate,format:e.format,translation:e.translation,inl
2ine:e.inline,id:e.id,name:e.name,refName:e.refName,openDate:e.openDate,placeholder:e.placeholder,inputClass:e.inputClass,typeable:e.typeable,clearButton:e.clearButton,clearButtonIcon:e.clearButtonIcon,calendarButton:e.calendarButton,calendarButtonIcon:e.calendarButtonIcon,calendarButtonIconContent:e.calendarButtonIconContent,disabled:e.disabled,required:e.required,bootstrapStyling:e.bootstrapStyling,"use-utc":e.useUtc},on:{showCalendar:e.showCalendar,closeCalendar:e.close,typedDate:e.setTypedDate,clearDate:e.clearDate}},[e._t("afterDateInput",null,{slot:"afterDateInput"})],2),e._v(" "),e.allowedToShowView("day")?n("picker-day",{attrs:{pageDate:e.pageDate,selectedDate:e.selectedDate,showDayView:e.showDayView,fullMonthName:e.fullMonthName,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,highlighted:e.highlighted,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,pageTimestamp:e.pageTimestamp,isRtl:e.isRtl,mondayFirst:e.mondayFirst,dayCellContent:e.dayCellContent,"use-utc":e.useUtc},on:{changedMonth:e.handleChangedMonthFromDayPicker,selectDate:e.selectDate,showMonthCalendar:e.showMonthCalendar,selectedDisabled:e.selectDisabledDate}},[e._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):e._e(),e._v(" "),e.allowedToShowView("month")?n("picker-month",{attrs:{pageDate:e.pageDate,selectedDate:e.selectedDate,showMonthView:e.showMonthView,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,isRtl:e.isRtl,"use-utc":e.useUtc},on:{selectMonth:e.selectMonth,showYearCalendar:e.showYearCalendar,changedYear:e.setPageDate}},[e._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):e._e(),e._v(" "),e.allowedToShowView("year")?n("picker-year",{attrs:{pageDate:e.pageDate,selectedDate:e.selectedDate,showYearView:e.showYearView,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,isRtl:e.isRtl,"use-utc":e.useUtc},on:{selectYear:e.selectYear,changedDecade:e.setPageDate}},[e._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):e._e()],1)};R._withStripped=!0;var N=y({render:R,staticRenderFns:[]},(function(e){e&&e("data-v-64ca2bb5_0",{source:".rtl {\n direction: rtl;\n}\n.vdp-datepicker {\n position: relative;\n text-align: left;\n}\n.vdp-datepicker * {\n box-sizing: border-box;\n}\n.vdp-datepicker__calendar {\n position: absolute;\n z-index: 100;\n background: #fff;\n width: 300px;\n border: 1px solid #ccc;\n}\n.vdp-datepicker__calendar header {\n display: block;\n line-height: 40px;\n}\n.vdp-datepicker__calendar header span {\n display: inline-block;\n text-align: center;\n width: 71.42857142857143%;\n float: left;\n}\n.vdp-datepicker__calendar header .prev,\n.vdp-datepicker__calendar header .next {\n width: 14.285714285714286%;\n float: left;\n text-indent: -10000px;\n position: relative;\n}\n.vdp-datepicker__calendar header .prev:after,\n.vdp-datepicker__calendar header .next:after {\n
2content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n border: 6px solid transparent;\n}\n.vdp-datepicker__calendar header .prev:after {\n border-right: 10px solid #000;\n margin-left: -5px;\n}\n.vdp-datepicker__calendar header .prev.disabled:after {\n border-right: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .next:after {\n border-left: 10px solid #000;\n margin-left: 5px;\n}\n.vdp-datepicker__calendar header .next.disabled:after {\n border-left: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled),\n.vdp-datepicker__calendar header .next:not(.disabled),\n.vdp-datepicker__calendar header .up:not(.disabled) {\n cursor: pointer;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled):hover,\n.vdp-datepicker__calendar header .next:not(.disabled):hover,\n.vdp-datepicker__calendar header .up:not(.disabled):hover {\n background: #eee;\n}\n.vdp-datepicker__calendar .disabled {\n color: #ddd;\n cursor: default;\n}\n.vdp-datepicker__calendar .flex-rtl {\n display: flex;\n width: inherit;\n flex-wrap: wrap;\n}\n.vdp-datepicker__calendar .cell {\n display: inline-block;\n padding: 0 5px;\n width: 14.285714285714286%;\n height: 40px;\n line-height: 40px;\n text-align: center;\n vertical-align: middle;\n border: 1px solid transparent;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year {\n cursor: pointer;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover {\n border: 1px solid #4bd;\n}\n.vdp-datepicker__calendar .cell.selected {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected:hover {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected.highlighted {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.highlighted {\n background: #cae5ed;\n}\n.vdp-datepicker__calendar .cell.highlighted.disabled {\n color: #a3a3a3;\n}\n.vdp-datepicker__calendar .cell.grey {\n color: #888;\n}\n.vdp-datepicker__calendar .cell.grey:hover {\n background: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header {\n font-size: 75%;\n white-space: nowrap;\n cursor: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header:hover {\n background: inherit;\n}\n.vdp-datepicker__calendar .month,\n.vdp-datepicker__calendar .year {\n width: 33.333%;\n}\n.vdp-datepicker__clear-button,\n.vdp-datepicker__calendar-button {\n cursor: pointer;\n font-style: normal;\n}\n.vdp-datepicker__clear-button.disabled,\n.vdp-datepicker__calendar-button.disabled {\n color: #999;\n cursor: default;\n}\n",map:{version:3,sources:["Datepicker.vue"],names:[],mappings:"AAAA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,gBAAgB;EAChB,YAAY;EACZ,sBAAsB;AACxB;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,yBAAyB;EACzB,WAAW;AACb;AACA;;EAEE,0BAA0B;EAC1B,WAAW;EACX,qBAAqB;EACrB,kBAAkB;AACpB;AACA;;EAEE,WAAW;EACX,kBAAkB;EAClB,SAAS;EACT,QAAQ;EACR,4CAA4C;EAC5C,6BAA6B;AAC/B;AACA;EACE,6BAA6B;EAC7B,iBAAiB;AACnB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,4BAA4B;EAC5B,gBAAgB;AAClB;AACA;EACE,4BAA4B;AAC9B;AACA;;;EAGE,eAAe;AACjB;AACA;;;EAGE,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,eAAe;AACjB;AACA;EACE,aAAa;EACb,cAAc;EACd,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,cAAc;EACd,0BAA0B;EAC1B,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,sBAAsB;EACtB,6BAA6B;AAC/B;AACA;;;EAGE,eAAe;AACjB;AACA;;;EAGE,sBAAsB;AACxB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,cAAc;AAChB;AACA;;EAEE,eAAe;EACf,kBAAkB;AACpB;AACA;;EAEE,WAAW;EACX,eAAe;AACjB",file:"Datepicker.vue",sourcesContent:[".rtl {\n direction: rtl;\n}\n.vdp-datepicker {\n position: relative;\n text-align: left;\n}\n.vdp-datepicker * {\n box-sizing: border-box;\n}\n.vdp-datepicker__calendar {\n position: absolute;\n z-index: 100;\n background: #fff;\n width: 300px;\n border: 1px solid #ccc;\n}\n.vdp-datepicker__calendar header {\n display: block;\n line-height: 40px;\n}\n.vdp-datepicker__calendar header span {\n display: inline-block;\n text-align: center;\n width: 71.42857142857143%;\n float: left;\n}\n.vdp-datepicker__calendar header .prev,\n.vdp-datepicker__calendar header .next {\n width: 14.28571428571428
26%;\n float: left;\n text-indent: -10000px;\n position: relative;\n}\n.vdp-datepicker__calendar header .prev:after,\n.vdp-datepicker__calendar header .next:after {\n content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n border: 6px solid transparent;\n}\n.vdp-datepicker__calendar header .prev:after {\n border-right: 10px solid #000;\n margin-left: -5px;\n}\n.vdp-datepicker__calendar header .prev.disabled:after {\n border-right: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .next:after {\n border-left: 10px solid #000;\n margin-left: 5px;\n}\n.vdp-datepicker__calendar header .next.disabled:after {\n border-left: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled),\n.vdp-datepicker__calendar header .next:not(.disabled),\n.vdp-datepicker__calendar header .up:not(.disabled) {\n cursor: pointer;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled):hover,\n.vdp-datepicker__calendar header .next:not(.disabled):hover,\n.vdp-datepicker__calendar header .up:not(.disabled):hover {\n background: #eee;\n}\n.vdp-datepicker__calendar .disabled {\n color: #ddd;\n cursor: default;\n}\n.vdp-datepicker__calendar .flex-rtl {\n display: flex;\n width: inherit;\n flex-wrap: wrap;\n}\n.vdp-datepicker__calendar .cell {\n display: inline-block;\n padding: 0 5px;\n width: 14.285714285714286%;\n height: 40px;\n line-height: 40px;\n text-align: center;\n vertical-align: middle;\n border: 1px solid transparent;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year {\n cursor: pointer;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover {\n border: 1px solid #4bd;\n}\n.vdp-datepicker__calendar .cell.selected {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected:hover {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected.highlighted {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.highlighted {\n background: #cae5ed;\n}\n.vdp-datepicker__calendar .cell.highlighted.disabled {\n color: #a3a3a3;\n}\n.vdp-datepicker__calendar .cell.grey {\n color: #888;\n}\n.vdp-datepicker__calendar .cell.grey:hover {\n background: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header {\n font-size: 75%;\n white-space: nowrap;\n cursor: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header:hover {\n background: inherit;\n}\n.vdp-datepicker__calendar .month,\n.vdp-datepicker__calendar .year {\n width: 33.333%;\n}\n.vdp-datepicker__clear-button,\n.vdp-datepicker__calendar-button {\n cursor: pointer;\n font-style: normal;\n}\n.vdp-datepicker__clear-button.disabled,\n.vdp-datepicker__calendar-button.disabled {\n color: #999;\n cursor: default;\n}\n"]},media:void 0})}),F,void 0,!1,void 0,O,void 0),L=n("e1e7"),z=n.n(L),H=n("3533"),Q={name:"m-datepicker",components:{Datepicker:N},props:{disabled:{default:!1},placeholder:String,required:{type:[String,Number,Boolean]},format:{type:[String,Function],default:"dd.MM.yyyy"},label:{type:String,default:""},validators:{type:Array},control:{type:String},form:{type:[H.FormGroup,Object]},disabledDates:{type:Object},openDate:{type:[Date,String]},initialView:{type:[String],default:"year"}},data:function(){return{urlDate:null,language:z.a,value:void 0,isFocused:!1,validValidators:[],valid:!1,touched:!1}},computed:{date:function(){if(this.value&&this.value.split){var e=this.value.split("-");return new Date(e[2],e[1]-1,e[0])}return null},invalid:function(){return this.validValidators.find((function(e){return!e.valid}))}},methods:{selectDate:function(e){this.$emit("selectedDate",e)},clearData:function(){this.$emit("selectedDate",null),((this.$refs.datepicker&&this.$refs.datepicker[0]||this.$refs.datepicker||{}).clearDate||Function)(),this.value=null,this.validate()},onBlur:function(){H.METHODS.onBlur.call(this)},onInput:function(e){var data={target:{value:e}};H.METHODS.onInput.call(this,data)},validate:function(){H.METHODS.validate.call(this),this.$emit("isValid",this.valid)}},created:function(){H.METHODS.created.call(this)},beforeMount:function(){H.METHODS.beforeMount.call(this)}},V=(n("3e2d"),n("2be6")),component=Object(V.a)(Q,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"input-title"},[e.label?n("label",{staticClass:"date-picker-label"}
2,[e._v(e._s(e.label))]):e._e()]),n("datepicker",{ref:"datepicker",staticClass:"y2_calendar",class:{disabled:e.disabled,"m-date-error":!e.valid&&e.touched,"m-date-success":e.valid&&e.validValidators.length&&e.touched},attrs:{"disabled-dates":e.disabledDates,"open-date":e.openDate,value:e.date,placeholder:e.placeholder,format:e.format,language:e.language,"initial-view":e.initialView},on:{selected:e.selectDate,input:e.onInput}}),[n("div",{staticClass:"m-error-wrapper"},[n("transition",{attrs:{name:"fade"}},[e.invalid&&e.touched?n("div",{staticClass:"m-error"},[e._v(" "+e._s(e.invalid.message)+" ")]):e._e()])],1)]],2)}),[],!1,null,"42e6fa50",null);t.a=component.exports},"61e6":function(e,t,n){"use strict";var r={name:"Icon",props:{icon:{type:[String,Array],required:!0},color:{type:String,default:"inherit"},size:{type:String,default:"inherit"}},data:function(){return{styles:{color:this.color,fontSize:this.size}}}},o=n("2be6"),component=Object(o.a)(r,(function(){var e=this.$createElement;return(this._self._c||e)("i",{class:this.icon,style:this.styles})}),[],!1,null,null,null);t.a=component.exports},"62c8":function(e,t,n){"use strict";var r=n("95b2"),o=n("8e5d"),l=n("157c"),c=n("730c"),h=n("433a"),d=n("e3f6"),f=n("b495"),m=n("df8c"),A=n("42c5"),y=n("72df"),v=[].push,_=Math.min,w=!y((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(e,t,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(e,n){var r=String(c(this)),l=void 0===n?4294967295:n>>>0;if(0===l)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,l);for(var h,d,f,output=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),y=0,_=new RegExp(e.source,m+"g");(h=A.call(_,r))&&!((d=_.lastIndex)>y&&(output.push(r.slice(y,h.index)),h.length>
21&&h.index<r.length&&v.apply(output,h.slice(1)),f=h[0].length,y=d,output.length>=l));)_.lastIndex===h.index&&_.lastIndex++;return y===r.length?!f&&_.test("")||output.push(""):output.push(r.slice(y)),output.length>l?output.slice(0,l):output}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=c(this),l=null==t?void 0:t[e];return void 0!==l?l.call(t,o,n):r.call(String(o),t,n)},function(e,o){var c=n(r,e,this,o,r!==t);if(c.done)return c.value;var A=l(e),y=String(this),v=h(A,RegExp),x=A.unicode,E=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(w?"y":"g"),C=new v(w?A:"^(?:"+A.source+")",E),S=void 0===o?4294967295:o>>>0;if(0===S)return[];if(0===y.length)return null===m(C,y)?[y]:[];for(var p=0,q=0,T=[];q<y.length;){C.lastIndex=w?q:0;var B,k=m(C,w?y:y.slice(q));if(null===k||(B=_(f(C.lastIndex+(w?0:q)),y.length))===p)q=d(y,q,x);else{if(T.push(y.slice(p,q)),T.length===S)return T;for(var i=1;i<=k.length-1;i++)if(T.push(k[i]),T.length===S)return T;q=p=B}}return T.push(y.slice(p)),T}]}),!w)},"63a2":function(e,t,n){},"63d2":function(e,t){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},6433:function(e,t,n){"use strict";var r=n("dc78");n.n(r).a},"64e4":function(e,t,n){var r=n("5428");e.exports=r("navigator","userAgent")||""},"65d0":function(e,t,n){var r=n("c91c"),o=n("b17e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"68b8":function(e,t,n){n("6a89")("iterator")},"6a61":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6a86":function(e,t,n){var r=n("7526"),o=n("c6de"),l=n("7d53")("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[l])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"6a89":function(e,t,n){var path=n("3e36"),r=n("f1a7"),o=n("4e41"),l=n("abdf").f;e.exports=function(e){var t=path.Symbol||(path.Symbol={});r(t,e)||l(t,e,{value:o.f(e)})}},"6a92":function(e,t,n){"use strict";var r=n("d1ed");n.n(r).a},"6b1d":function(e,t,n){var o=n("f498"),l=n("185a").f,c=n("5b12"),h=n("b8ba"),d=n("3e34"),f=n("b634"),m=n("ebac");e.exports=function(e,source){var t,n,A,y,v,_=e.target,w=e.global,x=e.stat;if(t=w?o:x?o[_]||d(_,{}):(o[_]||{}).prototype)for(n in source){if(y=source[n],A=e.noTargetGet?(v=l(t,n))&&v.value:t[n],!m(w?n:_+(x?".":"#")+n,e.forced)&&void 0!==A){if(r(y)===r(A))continue;f(y,A)}(e.sham||A&&A.sham)&&c(y,"sham",!0),h(t,n,y,e)}}},7297:function(e,t,n){var r=n("f498"),o=n("df6f"),l=r.WeakMap;e.exports="function"==typeof l&&/native code/.test(o(l))},"72df":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"730c":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},7526:function(e,t){e.exports=function(e){return"object"===r(e)?null!==e:"function"==typeof e}},"75a4":function(e,t,n){var r=n("6b1d"),o=n("72df"),l=n("378c"),c=n("185a").f,h=n("d4cb"),d=o((function(){c(1)}));r({target:"Object",stat:!0,forced:!h||d,sham:!h},{getOwnPropertyDescriptor:function(e,t){return c(l(e),t)}})},"77c5":function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},"7c3f":function(e,t,n){var r=n("d4cb"),o=n("72df"),l=n("f2bf");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a}))},"7c6c":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}n.d(t,"a",(function(){return o}));n("d6de"),n("8d0f"),n("68b8"),n("8423"),n("9531"),n("ef1f"),n("f3b8"),n("918c");n("33ef"),n("868d"),n("0d9f");function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},"7d15":function(e,t){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":r(window))&&(g=window)}e.exports=g},"7d53":function(e,t,n){var r=n("f498"),o=n("4cdd"),l=n("f1a7"),c=n("1d8a"),h=n("e7a0"),d=n("4db4"),f=o("wks"),m=r.Symbol,A=d?m:m&&m.withoutSetter||c;e.exports=function(e){return l(f,e)||(h&&l(m,e)?f[e]=m[e]:f[e]=A("Symbol."+e)),f[e]}},"7f8a":function(e,t,n){"use strict";var r=n("72df");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},"7fc8":function(e,t,n){"use strict";var r=n("b825");n.n(r).a},"802e":function(e,t,n){var r=n("72df");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"82e8":function(e,t,n){var r,o=n("157c"),l=n("b99b"),c=n("b17e"),h=n("d687"),html=n("9324"),d=n("f2bf"),f=n("332c"),m=f("IE_PROTO"),A=function(){},y=function(content){return"<script>"+content+"<\/script>"},v=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,iframe;v=r?function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((iframe=d("iframe")).style.display="none",html.appendChild(iframe),iframe.src=String("javascript:"),(e=iframe.contentWindow.document).open(),e.write(y("document.F=Object")),e.close(),e.F);for(var t=c.length;t--;)delete v.prototype[c[t]];return v()};h[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(A.prototype=o(e),n=new A,A.prototype=null,n[m]=e):n=v(),void 0===t?n:l(n,t)}},"83a6":function(e,t,n){var r=n("72df"),o=n("6a61"),l="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?l.call(e,""):Object(e)}:Object},"841a":function(e,t,n){"use strict";
2var r=n("6b1d"),o=n("d054").find,l=n("ed2b"),c=n("ce71"),h=!0,d=c("find");"find"in[]&&Array(1).find((function(){h=!1})),r({target:"Array",proto:!0,forced:h||!d},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),l("find")},8423:function(e,t,n){var r=n("6b1d"),o=n("ccae");r({target:"Array",stat:!0,forced:!n("3211")((function(e){Array.from(e)}))},{from:o})},8581:function(e,t,n){n("d86f"),n("2d6d"),n("bdf7"),n("8f0b"),n("28eb"),n("e416"),n("f8a5"),n("d48b"),n("fa8c");var r=n("ca22"),o=n("56b1"),l=n("63d2"),c=n("2843"),h=n("4615"),d=n("a5a9").setValidators,f=function(){"use strict";function e(t){var n=this;o(this,e),c(this,"errors",{}),c(this,"values",{}),this.controls=t,Object.keys(t).forEach((function(e){n.errors[e]=[]}))}return l(e,[{key:"createValidators",value:function(e){var t=this.controls[e];!function(e){var t;if(e.validators&&e.comp){var n=d([].concat(h(e.validators),h(null===(t=e.comp)||void 0===t?void 0:t.validValidators)));e.comp.validValidators=n}}(t),t.value&&t.comp&&(t.comp.hasOwnProperty("check")?t.comp.check=t.value:t.comp.value=t.value)}},{key:"removeControl",value:function(e){if(!this.controls[e])throw Error("No such control");this.controls[e].comp.validValidators=[],delete this.controls[e],delete this.errors[e]}},{key:"clearValidators",value:function(e){if(!this.controls[e])throw Error("No such control");this.controls[e].comp.validValidators=[]}},{key:"reset",value:function(){var e=this;Object.keys(this.controls).forEach((function(t){e.controls[t].comp.validValidators.forEach((function(e){return e.valid=void 0})),e.controls[t].comp.touched=!1,e.controls[t].comp.value=void 0}))}},{key:"setValue",value:function(e,t){if(!this.controls[e])throw Error("No such control");control.comp.hasOwnProperty("check")?this.controls[e].comp.check=control.value:this.controls[e].comp.value=t}},{key:"newValidators",value:function(e,t){if(!this.controls[e])throw Error("No such control");var n,r=this.controls[e].comp.validValidators,o=t;Array.isArray(t)||(o=[t]),o=o.filter((function(e){return-1===r.findIndex((function(t){return t.type.toLowerCase()==e.type.toLowerCase()}))})),n=d(o),r.push.apply(r,h(n))}},{key:"addControl",value:function(e,t){if(this.controls[e])throw Error("Control name already exists");this.errors[e]=[],this.controls[e]=t,this.createValidators(e)}},{key:"controlValue",value:function(e){return this.controls[e]?this.controls[e].comp.hasOwnProperty("check")?this.controls[e].comp.check:this.controls[e].comp.value:null}},{key:"isValid",get:function(){var e=this,t=!0;return Object.values(this.controls).forEach((function(n){var r=n.comp;if(r.validate(),!r.valid){var o=r.validValidators.filter((function(e){return!e.valid}));e.errors[r.control]=o,t=!1}})),t}},{key:"isDirty",get:function(){return Object.values(this.controls).some((function(e){return e.comp.touched}))}},{key:"values",get:function(){var e=this;return Object.keys(this.controls).reduce((function(t,n){return r(r({},t),{},c({},n,e.controls[n].comp.hasOwnProperty("check")?e.controls[n].comp.check:e.controls[n].comp.value))}),{})},set:function(object){}},{key:"getValues",get:function(){var e=this;return Object.keys(this.controls).reduce((function(t,n){return r(r({},t),{},c({},n,e.controls[n].comp.hasOwnProperty("check")?e.controls[n].comp.check:e.controls[n].comp.value))}),{})}}]),e}();t.FormGroup=f},8671:function(e,t,n){},"868d":function(e,t,n){var r=n("d4cb"),o=n("abdf").f,l=Function.prototype,c=l.toString,h=/^\s*function ([^ (]*)/;r&&!("name"in l)&&o(l,"name",{configurable:!0,get:function(){try{return c.call(this).match(h)[1]}catch(e){return""}}})},8697:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"890e":function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}},8998:function(e,t,n){"use strict";var r=n("2e2d");n.n(r).a},"8b21":function(e,t,n){"use strict";var r=n("2e45");n.n(r).a},"8bb2":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"8bbf":function(e,t){e.exports=n("8bbf")},"8d0d":function(e,t,n){"use strict";
vendor: 3,064 bytes, line 2
2var r=n("6b1d"),o=n("1f5e").includes,l=n("ed2b");r({target:"Array",proto:!0,forced:!n("ce71")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),l("includes")},"8d0f":function(e,t,n){"use strict";var r=n("6b1d"),o=n("d4cb"),l=n("f498"),c=n("f1a7"),h=n("7526"),d=n("abdf").f,f=n("b634"),m=l.Symbol;if(o&&"function"==typeof m&&(!("description"in m.prototype)||void 0!==m().description)){var A={},y=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof y?new m(e):void 0===e?m():m(e);return""===e&&(A[t]=!0),t};f(y,m);var v=y.prototype=m.prototype;v.constructor=y;var _=v.toString,w="Symbol(test)"==String(m("test")),x=/^Symbol\((.*)\)[^)]+$/;d(v,"description",{configurable:!0,get:function(){var symbol=h(this)?this.valueOf():this,e=_.call(symbol);if(c(A,symbol))return"";var desc=w?e.slice(7,-1):e.replace(x,"$1");return""===desc?void 0:desc}}),r({global:!0,forced:!0},{Symbol:y})}},"8e5d":function(e,t,n){var r=n("7526"),o=n("6a61"),l=n("7d53")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[l])?!!t:"RegExp"==o(e))}},"8f0b":function(e,t,n){"use strict";var r=n("6b1d"),o=n("e8e5");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"8fa9":function(e,t,n){var r=n("7526"),o=n("c1a2");e.exports=function(e,t,n){var l,c;return o&&"function"==typeof(l=t.constructor)&&l!==n&&r(c=l.prototype)&&c!==n.prototype&&o(e,c),e}},"918c":function(e,t,n){var r=n("f498"),o=n("130d"),l=n("9531"),c=n("5b12"),h=n("7d53"),d=h("iterator"),f=h("toStringTag"),m=l.values;for(var A in o){var y=r[A],v=y&&y.prototype;if(v){if(v[d]!==m)try{c(v,d,m)}catch(e){v[d]=m}if(v[f]||c(v,f,A),o[A])for(var _ in l)if(v[_]!==l[_])try{c(v,_,l[_])}catch(e){v[_]=l[_]}}}},"91db":function(e,t,n){},9324:function(e,t,n){var r=n("5428");e.exports=r("document","documentElement")},9531:function(e,t,n){"use strict";var r=n("378c"),o=n("ed2b"),l=n("5bb7"),c=n("cdcd"),h=n("2df4"),d=c.set,f=c.getterFor("Array Iterator");e.exports=h(Array,"Array",(function(e,t){d(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),l.Arguments=l.Array,o("keys"),o("values"),o("entries")},"95b2":function(e,t,n){"use strict";n("2aa5");var r=n("b8ba"),o=n("72df"),l=n("7d53"),c=n("42c5"),h=n("5b12"),d=l("species"),f=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),m="$0"==="a".replace(/./,"$0"),A=l("replace"),y=!!/./[A]&&""===/./[A]("a","$0"),v=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,A){var _=l(e),w=!o((function(){var t={};return t[_]=function(){return 7},7!=""[e](t)})),x=w&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={}
2,n.constructor[d]=function(){return n},n.flags="",n[_]=/./[_]),n.exec=function(){return t=!0,null},n[_](""),!t}));if(!w||!x||"replace"===e&&(!f||!m||y)||"split"===e&&!v){var E=/./[_],C=n(_,""[e],(function(e,t,n,r,o){return t.exec===c?w&&!o?{done:!0,value:E.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:y}),S=C[0],T=C[1];r(String.prototype,e,S),r(RegExp.prototype,_,2==t?function(e,t){return T.call(e,this,t)}:function(e){return T.call(e,this)})}A&&h(RegExp.prototype[_],"sham",!0)}},9618:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"98f3":function(e,t,n){var r=n("8697"),o=n("37d1"),l=n("83a6"),c=n("b495"),h=function(e){return function(t,n,h,d){r(n);var f=o(t),m=l(f),A=c(f.length),y=e?A-1:0,i=e?-1:1;if(h<2)for(;;){if(y in m){d=m[y],y+=i;break}if(y+=i,e?y<0:A<=y)throw TypeError("Reduce of empty array with no initial value")}for(;e?y>=0:A>y;y+=i)y in m&&(d=n(d,m[y],y,f));return d}};e.exports={left:h(!1),right:h(!0)}},9951:function(e,t,n){var r=n("72df"),o=n("fbf7");e.exports=function(e){return r((function(){return!!o[e]()||"âÂ
á "!="âÂ
á "[e]()||o[e].name!==e}))}},"9a0f":function(e,t,n){var r=n("8bb2"),o=Math.max,l=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):l(n,t)}},"9eea":function(e,t,n){var r=n("8e5d");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},a03e:function(e,t,n){var r=n("5428"),o=n("65d0"),l=n("2402"),c=n("157c");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(c(e)),n=l.f;return n?t.concat(n(e)):t}},a065:function(e,t,n){},a2c2:function(e,t,n){"use strict";n("d86f"),n("2d6d"),n("b55a");var r=n("0b38"),o=n("7c6c"),l=(n("e94e"),{name:"Notification",props:{intent:{type:String,default:"success"},text:{type:String,required:!0},duration:{type:Number,default:3500},onDismiss:{type:Function,default:function(){}},onAnimationFinish:{type:Function,default:function(){}},id:{type:Number,required:!0}},data:function(){var e=this.intent.toLowerCase();return{display:!1,render:!0,iconClass:function(){switch(e){case"danger":return"mangoi_close";default:return"mangoi_check"}}(),dismiss:function(e){var t=this;this.display=!1,this.onDismiss(this.id,e),this.render&&setTimeout((function(){t.render=!1,t.onAnimationFinish(t.id,e)}),250)}}},mounted:function(){var e=this;this.display=!0,this.duration>0&&setTimeout((function(){e.display&&e.dismiss(!1)}),this.duration)}}),c=(n("8b21"),n("2be6")),h={name:"NotificationGroup",components:{Notification:Object(c.a)(l,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.render?n("div",{class:["notif-wrapper",e.display?"fade-in":"fade-out"]},[n("div",{staticClass:"notification",attrs:{dir:"rtl"}},[n("div",[n("i",{class:e.iconClass}),n("span",[e._v(e._s(e.text))])]),n("i",{staticClass:"mangoi_close",on:{click:function(t){return e.dismiss(!0)}}})])]):e._e()}),[],!1,null,"8705e874",null).exports},methods:{remove:function(e){this.notifications=this.notifications.filter((function(t){return t.id!=e}))},show:function(text,e){var t,n,l,c=this.notifications[0];return((null==c||null===(t=c.text)||void 0===t?void 0:t.trim())!=text.trim()||(null==c||null===(n=c.intent)||void 0===n?void 0:n.toUpperCase())!=(null==e||null===(l=e.intent)||void 0===l?void 0:l.toUpperCase()))&&(this.idCount++,this.notifications=[Object(r.a)(Object(r.a)({},e),{},{text:text,id:this.idCount})].concat(Object(o.a)(this.notifications)),!0)},success:function(text,e){return this.show(text,Object(r.a)(Object(r.a)({},e),{},{intent:"success"}))},error:function(text,e){return this.show(text,Object(r.a)(Object(r.a)({},e),{},{intent:"danger"}))}},data:function(){return{notifications:[],idCount:0}}},d=(n("aec9"),Object(c.a)(h,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.notifications.length>0?n("div",{staticClass:"notif-group"},e._l(e.notifications,(function(t){return n("notification",e._b({key:t.id,attrs:{onAnimationFinish:e.remove}},"notification",t,!1))})),1):e._e()}),[],!1,null,"77e3131d",null));t.a=d.exports},a5a9:function(e,t,n){n("0df8"),n("2d6d"),n("bdf7"),n("8d0d"),n("cfce"),n("28eb"),n("33ef"),n("f8a5"),n("b55a");var r=n("2843"),o=n("ca22"),l=["required","email","min","max"],c=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text",form=arguments.length>3?arguments[3]:void 0,l={};form&&(l=Object.keys(form.controls).reduce((function(e,t){return o(o({},e),{},r({},t,form.controls[t].comp.value))}),{}));var c=t.map((function(t){var r;switch(t.type){case"required":r=f(e);break;case"email":r=m(e);break;case"min":r=A(e,n,t.value);break;case"max":r=y(e,n,t.value);break;default:r=t.cb(e,n,l)}return o(o({},t),{},{valid:r})})),h=c.every((function(e){return e.valid}));return{valid:h,validators:c}},d=function(e){return!e||!Array.isArray(e)||Array.isArray(e)&&!e.length?[]:e.filter((function(e){if(!e.message)throw Error("Validator must contain message");var t=l.includes(e.type.toLowerCase());if(t){if("min"===e.type||"max"===e.type){if("number"==typeof e.value||parseInt(e.value))return!0;throw Error("Missing currect value for ".concat(e.type))}return!0}if(!t)try{if("boolean"!=typeof e.cb(null,null,{}))throw Error("Validator ".concat(e.type," callback must return boolean"));return!0}catch(t){throw Error("Validator ".concat(e.type," callback must return boolean"))}})).map((function(e){return o(o({},e),{},{valid:!0})}))},f=function(e){return!!e},m=function(e){return c.test(null==e?void 0:e.trim())},A=function(e,t,n){return"number"===t?e>=+n:(e&&e.length||0)>=+n},y=function(e,t,n){return"number"===t?e<=+n:(e&&e.length||0)<=+n},v={onFocus:function(){this.isFocused=!0,this.$emit("focus")},onBlur:function(){this.isFocused=!1,this.touched=!0,this.validate(),this.$emit("blur")},onInput:function(e){this.value=e.target.value,this.validate(),this.counter&&this.value&&this.counter<this.value.length&&(this.value=this.value.slice(0,+this.counter)),this.$emit("change",this.value),this.$emit("valid",this.valid)},validate:function(){var e=this.hasOwnProperty("check")?this.check:this.value,t=h(e,this.validValidators,this.type,this.form),n=t.valid,r=t.validators;this.valid=n,this.touched=!0,this.validValidators=r},created:function(){var e=!!this.required,t=this.validators||[];this.min&&-1===t.findIndex((function(e){return"min"===e.type}
2))&&t.push({type:"min",message:"××× ××× × ×רש ".concat(this.min),value:this.min}),this.max&&-1===t.findIndex((function(e){return"max"===e.type}))&&t.push({type:"max",message:"×קס×××× × ×רש ".concat(this.max),value:this.max}),e&&-1===t.findIndex((function(e){return"required"===e.type}))&&t.push({type:"required",message:"ש×× ××××"}),this.validValidators=d(t),this.valid=!!this.validValidators.length,this.control&&(this.form.controls[this.control].comp=this),this.$emit("valid",!this.valid)},beforeMount:function(){try{this.form&&this.form.createValidators(this.control)}catch(e){console.error(e)}}};e.exports={validate:h,setValidators:d,METHODS:v}},a5e3:function(e,t,n){n("8423"),n("33ef"),n("868d"),n("ef1f"),n("0d9f"),n("f3b8");var r=n("890e");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},aa64:function(e,t,n){"use strict";var r=n("0b38"),o=n("c9cb"),l=n("8bbf"),c=n.n(l);t.a={pop:function(component,e){var t=!1,n=new(c.a.extend(o.a))({propsData:Object(r.a)({compName:component},e)});return n.$on("close",(function(){t||(t=!0,document.body.removeChild(n.$el))})),n.$mount(),document.body.appendChild(n.$el),function(){t||document.body.removeChild(n.$el),t=!0}}}},abdf:function(e,t,n){var r=n("d4cb"),o=n("7c3f"),l=n("157c"),c=n("083f"),h=Object.defineProperty;t.f=r?h:function(e,t,n){if(l(e),t=c(t,!0),l(n),o)try{return h(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},abfd:function(e,t,n){"use strict";var r=n("157c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ac25:function(e,t,n){"use strict";var r=n("be5a");n.n(r).a},aec9:function(e,t,n){"use strict";var r=n("8671");n.n(r).a},b17e:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},b466:function(e,t,n){var r=n("890e");e.exports=function(e){if(Array.isArray(e))return r(e)}},b495:function(e,t,n){var r=n("8bb2"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},b55a:function(e,t,n){"use strict";var r=n("6b1d"),o=n("61ad").trim;r({target:"String",proto:!0,forced:n("9951")("trim")},{trim:function(){return o(this)}})},b634:function(e,t,n){var r=n("f1a7"),o=n("a03e"),l=n("185a"),c=n("abdf");e.exports=function(e,source){for(var t=o(source),n=c.f,h=l.f,i=0;i<t.length;i++){var d=t[i];r(e,d)||n(e,d,h(source,d))}}},b706:function(e,t,n){n("d6de"),n("8d0f"),n("68b8"),n("8423"),n("9531"),n("ef1f"),n("f3b8"),n("918c"),e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},b7fb:function(e,t,n){var r=n("8bb2"),o=n("730c"),l=function(e){return function(t,n){var l,c,h=String(o(t)),d=r(n),f=h.length;return d<0||d>=f?e?"":void 0:(l=h.charCodeAt(d))<55296||l>56319||d+1===f||(c=h.charCodeAt(d+1))<56320||c>57343?e?h.charAt(d):l:e?h.slice(d,d+2):c-56320+(l-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},b825:function(e,t,n){},b8ba:function(e,t,n){var r=n("f498"),o=n("5b12"),l=n("f1a7"),c=n("3e34"),h=n("df6f"),d=n("cdcd"),f=d.get,m=d.enforce,A=String(String).split("String");(e.exports=function(e,t,n,h){var d=!!h&&!!h.unsafe,f=!!h&&!!h.enumerable,y=!!h&&!!h.noTargetGet;"function"==typeof n&&("string"!=typeof t||l(n,"name")||o(n,"name",t),m(n).source=A.join("string"==typeof t?t:"")),e!==r?(d?!y&&e[t]&&(f=!0):delete e[t],f?e[t]=n:o(e,t,n)):f?e[t]=n:c(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||h(this)}))},b99b:function(e,t,n){var r=n("d4cb"),o=n("abdf"),l=n("157c"),c=n("0c47");e.exports=r?Object.defineProperties:function(e,t){l(e);for(var n,r=c(t),h=r.length,d=0;h>d;)o.f(e,n=r[d++],t[n]);return e}},bc48:function(e,t,n){"use strict";var r=n("91db");n.n(r).a},bdf7:function(e,t,n){"use strict";
2var r=n("6b1d"),o=n("d054").findIndex,l=n("ed2b"),c=n("ce71"),h=!0,d=c("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){h=!1})),r({target:"Array",proto:!0,forced:h||!d},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),l("findIndex")},be5a:function(e,t,n){},c1a2:function(e,t,n){var r=n("157c"),o=n("f3e4");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,l){return r(n),o(l),t?e.call(n,l):n.__proto__=l,n}}():void 0)},c593:function(e,t,n){"use strict";var r=n("005c");n.n(r).a},c607:function(e,t,n){var r=n("f498"),o=n("3e34"),l=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=l},c6de:function(e,t,n){var r=n("6a61");e.exports=Array.isArray||function(e){return"Array"==r(e)}},c78b:function(e,t,n){"use strict";var r=n("6b1d"),o=n("9eea"),l=n("730c");r({target:"String",proto:!0,forced:!n("3e32")("includes")},{includes:function(e){return!!~String(l(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},c91c:function(e,t,n){var r=n("f1a7"),o=n("378c"),l=n("1f5e").indexOf,c=n("d687");e.exports=function(object,e){var t,n=o(object),i=0,h=[];for(t in n)!r(c,t)&&r(n,t)&&h.push(t);for(;e.length>i;)r(n,t=e[i++])&&(~l(h,t)||h.push(t));return h}},c965:function(e,t,n){var r=n("7d53"),o=n("5bb7"),l=r("iterator"),c=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||c[l]===e)}},c9cb:function(e,t,n){"use strict";n("8d0d"),n("c78b");var r={name:"Modal",props:{compName:Object,events:Object,properties:Object,modalClasses:String,backgroundClasses:String,backgroundClose:{type:Boolean,default:!0}},methods:{close:function(e){this.backgroundClose&&e.target.className.includes("background-modal")&&this.$emit("close")}}},o=(n("06dd"),n("2be6")),component=Object(o.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"background-modal",class:e.$props.backgroundClasses,on:{click:e.close}},[n("div",{staticClass:"modal",class:e.$props.modalClasses},[n("div",{staticClass:"close-btn-wrapper",on:{click:function(t){return e.$emit("close")}}},[e._t("closeBtn",[n("i",{staticClass:"mangoi_close"})])],2),n(e.compName,e._g(e._b({tag:"component"},"component",e.$props.properties,!1),e.$props.events),[e._v("close")])],1)])}),[],!1,null,"5b3996e2",null);t.a=component.exports},ca22:function(e,t,n){n("d6de"),n("2d6d"),n("8f0b"),n("75a4"),n("16d1"),n("f8a5"),n("fa8c");var r=n("2843");function o(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}e.exports=function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?o(Object(source),!0).forEach((function(t){r(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):o(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}},ccae:function(e,t,n){"use strict";var r=n("2117"),o=n("37d1"),l=n("2514"),c=n("c965"),h=n("b495"),d=n("dac6"),f=n("0446");e.exports=function(e){var t,n,m,A,y,v,_=o(e),w="function"==typeof this?this:Array,x=arguments.length,E=x>1?arguments[1]:void 0,C=void 0!==E,S=f(_),T=0;if(C&&(E=r(E,x>2?arguments[2]:void 0,2)),null==S||w==Array&&c(S))for(n=new w(t=h(_.length));t>T;T++)v=C?E(_[T],T):_[T],d(n,T,v);else for(y=(A=S.call(_)).next,n=new w;!(m=y.call(A)).done;T++)v=C?l(A,E,[m.value,T],!0):m.value,d(n,T,v);return n.length=T,n}},ccb8:function(e,t,n){"use strict";n("0df8"),n("2d6d"),n("841a"),n("bdf7"),n("8f0b"),n("8d0d"),n("ef14"),n("cfce"),n("e94e"),n("c78b"),n("fa8c");var r=n("3533"),o={name:"mselect",props:{placeholder:String,label:String,control:{type:String},form:{type:[r.FormGroup,Object]},disabled:{type:[Boolean,String],default:!1},required:[Boolean,String,Number],multiple:{type:[Boolean,String],default:!1}},data:function(){return{view:"top",listOpen:!1,value:null,index:null,isFocused:!1,validValidators:[],valid:!1,touched:!1,slotsNumber:0,selected:[]}},computed:{invalid:function(){return this.validValidators.find((function(e){return!e.valid}))}},created:function(){if(!this.$slots.default||!this.$slots.default.length)throw Error("Mu
2st conatin moption components");if(!this.$slots.default.every((function(e){return void 0===e.tag||e.tag.includes("m-option")||e.tag.includes("moption")})))throw Error("Must conatin moption components");r.METHODS.created.call(this),this.slotsNumber=this.$slots.default.filter((function(e){var t,n;return(null===(t=e.tag)||void 0===t?void 0:t.includes("m-option"))||(null===(n=e.tag)||void 0===n?void 0:n.includes("moption"))})).length,this.setMultiple()},methods:{onBlur:function(){r.METHODS.onBlur.call(this)},validate:function(){r.METHODS.validate.call(this),this.$emit("isValid",this.valid)},clearValue:function(){this.value=null,this.index=this.placeholder,this.selected=[],this.validate()},setValue:function(e,t){this.value=e,this.index=t,this.validate(),this.$emit("change",this.value)},selectStatus:function(e){var t=this;-1===e.composedPath().findIndex((function(e){var t;return null===(t=e.classList)||void 0===t?void 0:t.contains("m-options")}))&&(this.listOpen=!this.listOpen),this.listOpen?this.view=this.getViewport():this.touched=!0,!this.touched||this.value||this.listOpen||this.onBlur(),this.$slots.default.forEach((function(e){var n=e.componentOptions,r=!1;r=t.multiple?t.selected.find((function(data){return data.index==(null==n?void 0:n.propsData.index)})):t.index===(null==n?void 0:n.children[0].text),n&&r?n.propsData.indexSelected=!0:n&&(n.propsData.indexSelected=!1)}))},setMultiple:function(){var e=this;this.$slots.default.forEach((function(t,i){t.componentOptions&&(t.componentOptions.propsData.multiple=JSON.parse(e.multiple),t.componentOptions.propsData.index=i)}))},selectedList:function(){return this.selected.length>4?"".concat(this.selected.length," פר×××× × ××ר×"):this.selected.map((function(data){return data.text})).join(", ")},getValue:function(){return this.multiple?this.value?this.value.map((function(data){return{value:data.value,text:data.text}})):[]:this.value},getViewport:function(){var e=this.$refs.selectContainer.getBoundingClientRect();return console.log(window.innerHeight,e.top,this.$refs.selectContainer.offsetHeight),window.innerHeight<e.top+this.$refs.selectContainer.offsetHeight+240?"bottom":"top"}},beforeMount:function(){r.METHODS.beforeMount.call(this)}},l=(n("6a92"),n("2be6")),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"selectContainer",staticClass:"m-select-container"},[n("div",{staticClass:"input-title"},[n("label",{attrs:{if:e.label}},[e.valid&&e.validValidators.length&&e.touched?n("i",{staticClass:"mangoi_check"}):e._e(),e._v(" "+e._s(e.label)+" ")])]),n("div",{staticClass:"m-select",class:{open:e.listOpen,"m-select-error":!e.valid&&e.touched,"m-select-success":e.valid&&e.validValidators.length&&e.touched,"m-disabled":JSON.parse(this.disabled),"m-selected":e.selected.length||e.value},on:{click:e.selectStatus}},[e.multiple?e._e():n("span",{class:{"m-value":e.index}},[e._v(e._s(e.index?e.index:e.placeholder))]),e.multiple?n("span",{class:{"m-value":e.selected.length}},[e._v(e._s(e.selected.length?e.selectedList():e.placeholder))]):e._e(),e.listOpen?n("div",{staticClass:"m-back"}):e._e(),e.listOpen?n("div",{ref:"optionsContainer",staticClass:"m-option-container",class:{bottom:"bottom"===e.view}},[n("div",{staticClass:"m-options",class:{"with-scroll":e.slotsNumber>5}},[e._t("default",null,{multiple:e.multiple})],2),n("div",{staticClass:"m-clean",on:{click:e.clearValue}},[e._v("× ×§×")])]):e._e(),n("span",{staticClass:"arrow"})]),[n("div",{staticClass:"m-error-wrapper"},[n("transition",{attrs:{name:"fade"}},[e.invalid&&e.touched?n("div",{staticClass:"m-error"},[e._v(" "+e._s(e.invalid.message)+" ")]):e._e()])],1)]],2)}),[],!1,null,"03cad57b",null);t.a=component.exports},cdcd:function(e,t,n){var r,o,l,c=n("7297"),h=n("f498"),d=n("7526"),f=n("5b12"),m=n("f1a7"),A=n("332c"),y=n("d687"),v=h.WeakMap;if(c){var _=new v,w=_.get,x=_.has,E=_.set;r=function(e,t){return E.call(_,e,t),t},o=function(e){return w.call(_,e)||{}},l=function(e){return x.call(_,e)}}else{var C=A("state");y[C]=!0,r=function(e,t){return f(e,C,t),t},o=function(e){return m(e,C)?e[C]:{}},l=function(e){return m(e,C)}}e.exports={set:r,get:o,has:l,enforce:function(e){return l(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!d(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},ce71:function(e,t,n){var r=n("d4cb"),o=n("72df"),l=n("f1a7"),c=Object.defineProperty,h={},d=function(e){throw e};e.exports=function(e,t){if(l(h,e))return h[e];t||(t={});var n=[][e],f=!!l(t,"ACCESSORS")&&t.ACCESSORS,m=l(t,0)?t[0]:d,A=l(t,1)?t[1]:void 0;return h[e]=!!n&&!o((function(){if(f&&!r)return!0;var e={length:-1};f?c(e,1,{enumerable:!0,get:d}):e[1]=1,n.call(e,m,A)}))}},cfce:function(e,t,n){"use strict";
vendor: 4,099 bytes, line 2
2var r=n("6b1d"),o=n("d054").map,l=n("189b"),c=n("ce71"),h=l("map"),d=c("map");r({target:"Array",proto:!0,forced:!h||!d},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},d054:function(e,t,n){var r=n("2117"),o=n("83a6"),l=n("37d1"),c=n("b495"),h=n("6a86"),d=[].push,f=function(e){var t=1==e,n=2==e,f=3==e,m=4==e,A=6==e,y=5==e||A;return function(v,_,w,x){for(var E,C,S=l(v),T=o(S),B=r(_,w,3),k=c(T.length),I=0,M=x||h,P=t?M(v,k):n?M(v,0):void 0;k>I;I++)if((y||I in T)&&(C=B(E=T[I],I,S),e))if(t)P[I]=C;else if(C)switch(e){case 3:return!0;case 5:return E;case 6:return I;case 2:d.call(P,E)}else if(m)return!1;return A?-1:f||m?m:P}};e.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},d0cb:function(e,t,n){"use strict";var r=n("a065");n.n(r).a},d1ed:function(e,t,n){},d48b:function(e,t,n){var r=n("6b1d"),o=n("6009").values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},d4cb:function(e,t,n){var r=n("72df");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},d687:function(e,t){e.exports={}},d6de:function(e,t,n){"use strict";var o=n("6b1d"),l=n("f498"),c=n("5428"),h=n("0e93"),d=n("d4cb"),f=n("e7a0"),m=n("4db4"),A=n("72df"),y=n("f1a7"),v=n("c6de"),_=n("7526"),w=n("157c"),x=n("37d1"),E=n("378c"),C=n("083f"),S=n("9618"),T=n("82e8"),B=n("0c47"),k=n("65d0"),I=n("ee58"),M=n("2402"),P=n("185a"),D=n("abdf"),U=n("e129"),O=n("5b12"),F=n("b8ba"),R=n("4cdd"),N=n("332c"),L=n("d687"),z=n("1d8a"),H=n("7d53"),Q=n("4e41"),V=n("6a89"),j=n("fa46"),G=n("cdcd"),K=n("d054").forEach,$=N("hidden"),Y=H("toPrimitive"),W=G.set,X=G.getterFor("Symbol"),J=Object.prototype,Z=l.Symbol,ee=c("JSON","stringify"),te=P.f,ne=D.f,re=I.f,ie=U.f,se=R("symbols"),ae=R("op-symbols"),oe=R("string-to-symbol-registry"),le=R("symbol-to-string-registry"),ce=R("wks"),ue=l.QObject,he=!ue||!ue.prototype||!ue.prototype.findChild,de=d&&A((function(){return 7!=T(ne({},"a",{get:function(){return ne(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=te(J,t);r&&delete J[t],ne(e,t,n),r&&e!==J&&ne(J,t,r)}:ne,pe=function(e,t){var symbol=se[e]=T(Z.prototype);return W(symbol,{type:"Symbol",tag:e,description:t}),d||(symbol.description=t),symbol},fe=m?function(e){return"symbol"==r(e)}:function(e){return Object(e)instanceof Z},me=function(e,t,n){e===J&&me(ae,t,n),w(e);var r=C(t,!0);return w(n),y(se,r)?(n.enumerable?(y(e,$)&&e[$][r]&&(e[$][r]=!1),n=T(n,{enumerable:S(0,!1)})):(y(e,$)||ne(e,$,S(1,{})),e[$][r]=!0),de(e,r,n)):ne(e,r,n)},Ae=function(e,t){w(e);var n=E(t),r=B(n).concat(_e(n));return K(r,(function(t){d&&!ge.call(n,t)||me(e,t,n[t])})),e},ge=function(e){var t=C(e,!0),n=ie.call(this,t);return!(this===J&&y(se,t)&&!y(ae,t))&&(!(n||!y(this,t)||!y(se,t)||y(this,$)&&this[$][t])||n)},ye=function(e,t){var n=E(e),r=C(t,!0);if(n!==J||!y(se,r)||y(ae,r)){var o=te(n,r);return!o||!y(se,r)||y(n,$)&&n[$][r]||(o.enumerable=!0),o}},ve=function(e){var t=re(E(e)),n=[];return K(t,(function(e){y(se,e)||y(L,e)||n.push(e)})),n},_e=function(e){var t=e===J,n=re(t?ae:E(e)),r=[];return K(n,(function(e){!y(se,e)||t&&!y(J,e)||r.push(se[e])})),r};(f||(F((Z=function(){if(this instanceof Z)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=z(e),n=function e(n){this===J&&e.call(ae,n),y(this,$)&&y(this[$],t)&&(this[$][t]=!1),de(this,t,S(1,n))};return d&&he&&de(J,t,{configurable:!0,set:n}),pe(t,e)}).prototype,"toString",(function(){return X(this).tag})),F(Z,"withoutSetter",(function(e){return pe(z(e),e)})),U.f=ge,D.f=me,P.f=ye,k.f=I.f=ve,M.f=_e,Q.f=function(e){return pe(H(e),e)},d&&(ne(Z.prototype,"description",{configurable:!0,get:function(){return X(this).description}}),h||F(J,"propertyIsEnumerable",ge,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:Z}),K(B(ce),(function(e){V(e)})),o({target:"Symbol",stat:!0,forced:!f},{for:function(e){var t=String(e);if(y(oe,t))return oe[t];var symbol=Z(t);return oe[t]=symbol,le[symbol]=t,symbol},keyFor:function(e){if(!fe(e))throw TypeError(e+" is not a symbol");if(y(le,e))return le[e]}
2,useSetter:function(){he=!0},useSimple:function(){he=!1}}),o({target:"Object",stat:!0,forced:!f,sham:!d},{create:function(e,t){return void 0===t?T(e):Ae(T(e),t)},defineProperty:me,defineProperties:Ae,getOwnPropertyDescriptor:ye}),o({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:ve,getOwnPropertySymbols:_e}),o({target:"Object",stat:!0,forced:A((function(){M.f(1)}))},{getOwnPropertySymbols:function(e){return M.f(x(e))}}),ee)&&o({target:"JSON",stat:!0,forced:!f||A((function(){var symbol=Z();return"[null]"!=ee([symbol])||"{}"!=ee({a:symbol})||"{}"!=ee(Object(symbol))}))},{stringify:function(e,t,n){for(var r,o=[e],l=1;arguments.length>l;)o.push(arguments[l++]);if(r=t,(_(t)||void 0!==e)&&!fe(e))return v(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!fe(t))return t}),o[1]=t,ee.apply(null,o)}});Z.prototype[Y]||O(Z.prototype,Y,Z.prototype.valueOf),j(Z,"Symbol"),L[$]=!0},d86f:function(e,t,n){"use strict";var r=n("6b1d"),o=n("72df"),l=n("c6de"),c=n("7526"),h=n("37d1"),d=n("b495"),f=n("dac6"),m=n("6a86"),A=n("189b"),y=n("7d53"),v=n("4fed"),_=y("isConcatSpreadable"),w=v>=51||!o((function(){var e=[];return e[_]=!1,e.concat()[0]!==e})),x=A("concat"),E=function(e){if(!c(e))return!1;var t=e[_];return void 0!==t?!!t:l(e)};r({target:"Array",proto:!0,forced:!w||!x},{concat:function(e){var i,t,n,r,o,l=h(this),c=m(l,0),A=0;for(i=-1,n=arguments.length;i<n;i++)if(o=-1===i?l:arguments[i],E(o)){if(A+(r=d(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(t=0;t<r;t++,A++)t in o&&f(c,A,o[t])}else{if(A>=9007199254740991)throw TypeError("Maximum allowed index exceeded");f(c,A++,o)}return c.length=A,c}})},d8fd:function(e,t,n){"use strict";n("e94e"),n("d6de"),n("8d0f"),n("68b8"),n("9531"),n("ef1f"),n("f3b8"),n("918c");function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o={name:"Counter",components:{MButton:n("1ec6").a},props:{min:{type:Number},max:{type:Number},onChange:{type:Function,default:function(){}}},data:function(){var e=this;return{count:0,setCount:function(t,n){var o=t>e.max?e.max:t<e.min?e.min:t;"object"===r(n)&&(n.target.innerText=o),e.count=o,e.onChange(o)},onBlur:function(t){Number(t.target.innerText)?e.setCount(Number(t.target.innerText)):e.setCount(0)}}}},l=(n("ac25"),n("2be6")),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("m-button",{attrs:{disabled:String(e.count<=e.min)},on:{click:function(t){return e.setCount(e.count-1)}}},[e._v("â")]),n("div",{attrs:{contenteditable:"true"},domProps:{innerHTML:e._s(e.count)},on:{blur:e.onBlur}}),n("m-button",{attrs:{disabled:String(e.count>=e.max)},on:{click:function(t){return e.setCount(e.count+1)}}},[e._v("+")])],1)}),[],!1,null,"4f9ca02b",null);t.a=component.exports},da06:function(e,t,n){var r=n("3cec"),o=n("6a61"),l=n("7d53")("toStringTag"),c="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),l))?n:c?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},dac6:function(e,t,n){"use strict";var r=n("083f"),o=n("abdf"),l=n("9618");e.exports=function(object,e,t){var n=r(e);n in object?o.f(object,n,l(0,t)):object[n]=t}},dc78:function(e,t,n){},df6f:function(e,t,n){var r=n("c607"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},df8c:function(e,t,n){var o=n("6a61"),l=n("42c5");e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var c=n.call(e,t);if("object"!==r(c))throw TypeError("RegExp exec method returned something other than an Object or null");return c}if("RegExp"!==o(e))throw TypeError("RegExp#exec called on incompatible receiver");return l.call(e,t)}},e129:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,l=o&&!r.call({1:2},1);t.f=l?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},e1e7:function(e,t,n){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var t=new(function(){function t(e,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.language=e,this.months=n,this.monthsAbbr=r,this.days=o,this.rtl=!1,this.ymd=!1,this.yearSuffix=""}var n,r;return n=t,(r=[{key:"language",get:function(){return this._language},set:function(e){if("string"!=typeof e)throw new TypeError("Language must be a string");this._language=e}},{key:"months",get:function(){return this._months},set:function(e){if(12!==e.length)throw new RangeError("There must be 12 months for ".concat(this.language," language"));this._months=e}},{key:"monthsAbbr",get:function(){return this._monthsAbbr},set:function(e){if(12!==e.length)throw new RangeError("There must be 12 abbreviated months for ".concat(this.language," language"));this._monthsAbbr=e}},{key:"days",get:function(){return this._days}
2,set:function(e){if(7!==e.length)throw new RangeError("There must be 7 days for ".concat(this.language," language"));this._days=e}}])&&e(n.prototype,r),t}())("Hebrew",["×× ××ר","פ×ר××ר","×רץ","×פר××","×××","××× ×","××××","××××ס×","ספ×××ר","×××§×××ר","× ××××ר","×צ××ר"],["×× ×","פ×ר","×רץ","×פר","×××","××× ","×××","×××","ספ×","×××§","× ××","×צ×"],["×","×","×","×","×","×","ש"]);return t.rtl=!0,t}()},e3f6:function(e,t,n){"use strict";var r=n("b7fb").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},e416:function(e,t,n){"use strict";var r=n("6b1d"),o=n("d054").some,l=n("7f8a"),c=n("ce71"),h=l("some"),d=c("some");r({target:"Array",proto:!0,forced:!h||!d},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},e696:function(e,t,n){},e7a0:function(e,t,n){var r=n("72df");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},e8be:function(e,t,n){"use strict";var r={name:"y2-ribbon",props:{color:String,prefix:String}},o=(n("6433"),n("2be6")),component=Object(o.a)(r,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"y2-ribbon-container"},[t("div",{staticClass:"y2-ribbon",class:this.color},[this._t("default"),this.prefix?t("i",{class:this.prefix}):this._e()],2)])}),[],!1,null,"6e295530",null);t.a=component.exports},e8e5:function(e,t,n){"use strict";var r=n("d054").forEach,o=n("7f8a"),l=n("ce71"),c=o("forEach"),h=l("forEach");e.exports=c&&h?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},e94e:function(e,t,n){"use strict";var r=n("d4cb"),o=n("f498"),l=n("ebac"),c=n("b8ba"),h=n("f1a7"),d=n("6a61"),f=n("8fa9"),m=n("083f"),A=n("72df"),y=n("82e8"),v=n("65d0").f,_=n("185a").f,w=n("abdf").f,x=n("61ad").trim,E=o.Number,C=E.prototype,S="Number"==d(y(C)),T=function(e){var t,n,r,o,l,c,h,code,d=m(e,!1);if("string"==typeof d&&d.length>2)if(43===(t=(d=x(d)).charCodeAt(0))||45===t){if(88===(n=d.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(d.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+d}for(c=(l=d.slice(2)).length,h=0;h<c;h++)if((code=l.charCodeAt(h))<48||code>o)return NaN;return parseInt(l,r)}return+d};if(l("Number",!E(" 0o1")||!E("0b1")||E("+0x1"))){for(var B,k=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof k&&(S?A((function(){C.valueOf.call(n)})):"Number"!=d(n))?f(new E(T(t)),n,k):T(t)},I=r?v(E):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),M=0;I.length>M;M++)h(E,B=I[M])&&!h(k,B)&&w(k,B,_(E,B));k.prototype=C,C.constructor=k,c(o,"Number",k)}},ebac:function(e,t,n){var r=n("72df"),o=/#|\.prototype\./,l=function(e,t){var n=data[c(e)];return n==d||n!=h&&("function"==typeof t?r(t):!!t)},c=l.normalize=function(e){return String(e).replace(o,".").toLowerCase()},data=l.data={},h=l.NATIVE="N",d=l.POLYFILL="P";e.exports=l},ed2b:function(e,t,n){var r=n("7d53"),o=n("82e8"),l=n("abdf"),c=r("unscopables"),h=Array.prototype;null==h[c]&&l.f(h,c,{configurable:!0,value:o(null)}),e.exports=function(e){h[c][e]=!0}},edde:function(e,t,n){"use strict";var r={name:"m-loader",props:{color:{type:String,default:"primary"},animate:{type:String,default:"opacity"}}},o=(n("5cf9"),n("2be6")),component=Object(o.a)(r,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.animate},[t("span",{class:this.color}),t("span",{class:this.color}),t("span",{class:this.color})])}),[],!1,null,"00aa1f9a",null);t.a=component.exports},ee58:function(e,t,n){var o=n("378c"),l=n("65d0").f,c={}.toString,h="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return h&&"[object Window]"==c.call(e)?function(e){try{return l(e)}catch(e){return h.slice()}}(e):l(o(e))}},ef14:function(e,t,n){"use strict";var r=n("6b1d"),o=n("83a6"),l=n("378c"),c=n("7f8a"),h=[].join,d=o!=Object,f=c("join",",");r({target:"Array",proto:!0,forced:d||!f},{join:function(e){return h.call(l(this),void 0===e?",":e)}})},ef1f:function(e,t,n){var r=n("3cec"),o=n("b8ba"),l=n("5268");r||o(Object.prototype,"toString",l,{unsafe:!0})},ef6e:function(e,t,n){"use strict";n("e94e");
2var r={name:"TabNavigation",components:{MButton:n("1ec6").a},props:{initialTabIndex:{type:Number,default:0},tabs:{type:Array,required:!0},size:{type:String,default:"medium"}},data:function(){return{currentTabIndex:this.initialTabIndex}}},o=(n("3217"),n("2be6")),component=Object(o.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{staticClass:"tab-btn-holder"},e._l(e.tabs,(function(t,r){return n("m-button",{key:r,class:e.currentTabIndex===r?"selected":"",attrs:{size:e.size,disabled:t.disabled},on:{click:function(t){e.currentTabIndex=r}}},[e._v(" "+e._s(t.btnSlot)+" ")])})),1),e._l(e.tabs,(function(t,r){return n("div",{key:r},[e.currentTabIndex!==r||t.disabled?e._e():n("div",{staticClass:"container"},[e._v(" "+e._s(t.contentSlot)+" ")])])}))],2)}),[],!1,null,"436ed5b4",null);t.a=component.exports},f034:function(e,t,n){"use strict";var r=n("1c6d");n.n(r).a},f043:function(e,t,n){"use strict";var r=n("286c");n.n(r).a},f1a7:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},f2bf:function(e,t,n){var r=n("f498"),o=n("7526"),l=r.document,c=o(l)&&o(l.createElement);e.exports=function(e){return c?l.createElement(e):{}}},f3b8:function(e,t,n){"use strict";var r=n("b7fb").charAt,o=n("cdcd"),l=n("2df4"),c=o.set,h=o.getterFor("String Iterator");l(String,"String",(function(e){c(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=h(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},f3d0:function(e,t,n){},f3e4:function(e,t,n){var r=n("7526");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},f498:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==("undefined"==typeof globalThis?"undefined":r(globalThis))&&globalThis)||n("object"==("undefined"==typeof window?"undefined":r(window))&&window)||n("object"==("undefined"==typeof self?"undefined":r(self))&&self)||n("object"==r(t)&&t)||Function("return this")()}).call(this,n("7d15"))},f8a5:function(e,t,n){var r=n("6b1d"),o=n("37d1"),l=n("0c47");r({target:"Object",stat:!0,forced:n("72df")((function(){l(1)}))},{keys:function(e){return l(o(e))}})},fa46:function(e,t,n){var r=n("abdf").f,o=n("f1a7"),l=n("7d53")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,l)&&r(e,l,{configurable:!0,value:t})}},fa8c:function(e,t,n){var r=n("f498"),o=n("130d"),l=n("e8e5"),c=n("5b12");for(var h in o){var d=r[h],f=d&&d.prototype;if(f&&f.forEach!==l)try{c(f,"forEach",l)}catch(e){f.forEach=l}}},fbf7:function(e,t){e.exports="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff"},ff55:function(e,t,n){"use strict";var r=n("5dd6");n.n(r).a},ff89:function(e,t,n){"use strict";var r,o,l,c=n("0e39"),h=n("5b12"),d=n("f1a7"),f=n("7d53"),m=n("0e93"),A=f("iterator"),y=!1;[].keys&&("next"in(l=[].keys())?(o=c(c(l)))!==Object.prototype&&(r=o):y=!0),null==r&&(r={}),m||d(r,A)||h(r,A,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:y}}})},d572:function(e,t,n){"use strict";var r=n("b770");n.n(r).a},d687:function(e,t){e.exports={}},d6de:function(e,t,n){"use strict";var r=n("6b1d"),o=n("f498"),l=n("5428"),c=n("0e93"),h=n("d4cb"),d=n("e7a0"),f=n("4db4"),m=n("72df"),A=n("f1a7"),y=n("c6de"),v=n("7526"),_=n("157c"),w=n("37d1"),x=n("378c"),E=n("083f"),C=n("9618"),S=n("82e8"),T=n("0c47"),B=n("65d0"),k=n("ee58"),I=n("2402"),M=n("185a"),P=n("abdf"),D=n("e129"),U=n("5b12"),O=n("b8ba"),F=n("4cdd"),R=n("332c"),N=n("d687"),L=n("1d8a"),z=n("7d53"),H=n("4e41"),Q=n("6a89"),V=n("fa46"),j=n("cdcd"),G=n("d054").forEach,K=R("hidden"),$=z("toPrimitive"),Y=j.set,W=j.getterFor("Symbol"),X=Object.prototype,J=o.Symbol,Z=l("JSON","stringify"),ee=M.f,te=P.f,ne=k.f,re=D.f,ie=F("symbols"),se=F("op-symbols"),ae=F("string-to-symbol-registry"),oe=F("symbol-to-string-registry"),le=F("wks"),ce=o.QObject,ue=!ce||!ce.prototype||!ce.prototype.findChild,he=h&&m((function(){return 7!=S(te({},"a",{get:function(){return te(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ee(X,t);r&&delete X[t],te(e,t,n),r&&e!==X&&te(X,t,r)}:te,de=function(e,t){var symbol=ie[e]=S(J.prototype);return Y(symbol,{type:"Symbol",tag:e,description:t}),h||(symbol.description=t),symbol},pe=f?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof J},fe=function(e,t,n){e===X&&fe(se,t,n),_(e);var r=E(t,!0);return _(n),A(ie,r)?(n.enumerable?(A(e,K)&&e[K][r]&&(e[K][r]=!1),n=S(n,{enumerable:C(0,!1)})):(A(e,K)||te(e,K,C(1,{})),e[K][r]=!0),he(e,r,n)):te(e,r,n)},me=function(e,t){_(e);var n=x(t),r=T(n).concat(ve(n));return G(r,(function(t){h&&!Ae.call(n,t)||fe(e,t,n[t])})),e},Ae=function(e){var t=E(e,!0),n=re.call(this,t);return!(this===X&&A(ie,t)&&!A(se,t))&&(!(n||!A(this,t)||!A(ie,t)||A(this,K)&&this[K][t])||n)},ge=function(e,t){var n=x(e),r=E(t,!0);if(n!==X||!A(ie,r)||A(se,r)){var o=ee(n,r);return!o||!A(ie,r)||A(n,K)&&n[K][r]||(o.enumerable=!0),o}},ye=function(e){var t=ne(x(e)),n=[];return G(t,(function(e){A(ie,e)||A(N,e)||n.push(e)})),n},ve=function(e){var t=e===X,n=ne(t?se:x(e)),r=[];return G(n,(function(e){!A(ie,e)||t&&!A(X,e)||r.push(ie[e])})),r};(d||(O((J=function(){if(this instanceof J)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=L(e),n=function e(n){this===X&&e.call(se,n),A(this,K)&&A(this[K],t)&&(this[K][t]=!1),he(this,t,C(1,n))};return h&&ue&&he(X,t,{configurable:!0,set:n}),de(t,e)}).prototype,"toString",(function(){return W(this).tag})),O(J,"withoutSetter",(function(e){return de(L(e),e)})),D.f=Ae,P.f=fe,M.f=ge,B.f=k.f=ye,I.f=ve,H.f=function(e){return de(z(e),e)},h&&(te(J.prototype,"description",{configurable:!0,get:function(){return W(this).description}}),c||O(X,"propertyIsEnumerable",Ae,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:J}),G(T(le),(function(e){Q(e)})),r({target:"Symbol",stat:!0,forced:!d},{for:function(e){var t=String(e);if(A(ae,t))return ae[t];var symbol=J(t);return ae[t]=symbol,oe[symbol]=t,symbol},keyFor:function(e){if(!pe(e))throw TypeError(e+" is not a symbol");if(A(oe,e))return oe[e]}
vendor: 14,898 bytes, line 2
2,useSetter:function(){ue=!0},useSimple:function(){ue=!1}}),r({target:"Object",stat:!0,forced:!d,sham:!h},{create:function(e,t){return void 0===t?S(e):me(S(e),t)},defineProperty:fe,defineProperties:me,getOwnPropertyDescriptor:ge}),r({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:ye,getOwnPropertySymbols:ve}),r({target:"Object",stat:!0,forced:m((function(){I.f(1)}))},{getOwnPropertySymbols:function(e){return I.f(w(e))}}),Z)&&r({target:"JSON",stat:!0,forced:!d||m((function(){var symbol=J();return"[null]"!=Z([symbol])||"{}"!=Z({a:symbol})||"{}"!=Z(Object(symbol))}))},{stringify:function(e,t,n){for(var r,o=[e],l=1;arguments.length>l;)o.push(arguments[l++]);if(r=t,(v(t)||void 0!==e)&&!pe(e))return y(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!pe(t))return t}),o[1]=t,Z.apply(null,o)}});J.prototype[$]||U(J.prototype,$,J.prototype.valueOf),V(J,"Symbol"),N[K]=!0},d86f:function(e,t,n){"use strict";var r=n("6b1d"),o=n("72df"),l=n("c6de"),c=n("7526"),h=n("37d1"),d=n("b495"),f=n("dac6"),m=n("6a86"),A=n("189b"),y=n("7d53"),v=n("4fed"),_=y("isConcatSpreadable"),w=v>=51||!o((function(){var e=[];return e[_]=!1,e.concat()[0]!==e})),x=A("concat"),E=function(e){if(!c(e))return!1;var t=e[_];return void 0!==t?!!t:l(e)};r({target:"Array",proto:!0,forced:!w||!x},{concat:function(e){var i,t,n,r,o,l=h(this),c=m(l,0),A=0;for(i=-1,n=arguments.length;i<n;i++)if(o=-1===i?l:arguments[i],E(o)){if(A+(r=d(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(t=0;t<r;t++,A++)t in o&&f(c,A,o[t])}else{if(A>=9007199254740991)throw TypeError("Maximum allowed index exceeded");f(c,A++,o)}return c.length=A,c}})},da06:function(e,t,n){var r=n("3cec"),o=n("6a61"),l=n("7d53")("toStringTag"),c="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),l))?n:c?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},dac6:function(e,t,n){"use strict";var r=n("083f"),o=n("abdf"),l=n("9618");e.exports=function(object,e,t){var n=r(e);n in object?o.f(object,n,l(0,t)):object[n]=t}},df26:function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function h(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof A?t:A,l=Object.create(o.prototype),c=new I(r||[]);return l._invoke=function(e,t,n){var r="suspendedStart";return function(o,l){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw l;return P()}for(n.method=o,n.arg=l;;){var c=n.delegate;if(c){var h=T(c,n);if(h){if(h===m)continue;return h}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var d=f(e,t,n);if("normal"===d.type){if(r=n.done?"completed":"suspendedYield",d.arg===m)continue;return{value:d.arg,done:n.done}}"throw"===d.type&&(r="completed",n.method="throw",n.arg=d.arg)}}}(e,n,c),l}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var m={};function A(){}function y(){}function v(){}var _={};_[o]=function(){return this};var w=Object.getPrototypeOf,x=w&&w(w(M([])));x&&x!==t&&n.call(x,o)&&(_=x);var E=v.prototype=A.prototype=Object.create(_);function C(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var r;this._invoke=function(o,l){function c(){return new t((function(r,c){!function r(o,l,c,h){var d=f(e[o],e,l);if("throw"!==d.type){var m=d.arg,A=m.value;return A&&"object"==typeof A&&n.call(A,"__await")?t.resolve(A.__await).then((function(e){r("next",e,c,h)}),(function(e){r("throw",e,c,h)})):t.resolve(A).then((function(e){m.value=e,c(m)}),(function(e){return r("throw",e,c,h)}))}h(d.arg)}(o,l,r,c)}))}return r=r?r.then(c,c):c()}}function T(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,m;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function B(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function M(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return y.prototype=E.constructor=v,v.constructor=y,y.displayName=h(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,h(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},C(S.prototype),S.prototype[l]=function(){return this},e.AsyncIterator=S,e.async=function(t,n,r,o,l){void 0===l&&(l=Promise);var c=new S(d(t,n,r,o),l);return e.isGeneratorFunction(n)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},C(E),h(E,c,"Generator"),E[o]=function(){return this},E.toString=function(){return"[object Generator]"},e.keys=function(object){var e=[];for(var t in object)e.push(t);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in object)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return l.type="throw",l.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),h=n.call(o,"finallyLoc");if(c&&h){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var l=o?o.completion:{};return l.type=e,l.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var i=this.tryEntries.length-1;i>=0;--i){var t=this.tryEntries[i];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),k(t),m}},catch:function(e){for(var i=this.tryEntries.length-1;i>=0;--i){var t=this.tryEntries[i];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var r=n.arg;k(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},df6f:function(e,t,n){var r=n("c607"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},df8c:function(e,t,n){var r=n("6a61"),o=n("42c5");e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var l=n.call(e,t);if("object"!=typeof l)throw TypeError("RegExp exec method returned something other than an Object or null");return l}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},e023:function(e,t,n){var r=n("d687"),o=n("7526"),l=n("f1a7"),c=n("abdf").f,h=n("1d8a"),d=n("95ad"),f=h("meta"),m=0,A=Object.isExtensible||function(){return!0},y=function(e){c(e,f,{value:{objectID:"O"+ ++m,weakData:{}}})},meta=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!l(e,f)){if(!A(e))return"F";if(!t)return"E";y(e)}return e[f].objectID},getWeakData:function(e,t){if(!l(e,f)){if(!A(e))return!0;if(!t)return!1;y(e)}return e[f].weakData},onFreeze:function(e){return d&&meta.REQUIRED&&A(e)&&!l(e,f)&&y(e),e}};r[f]=!0},e03e:function(e,t,n){var r=n("64e4");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},e067:function(e,t,n){"use strict";var r=n("3f48");e.exports=function(data,e,t){return r.forEach(t,(function(t){data=t(data,e)})),data}},e129:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,l=o&&!r.call({1:2},1);t.f=l?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},e3f6:function(e,t,n){"use strict";var r=n("b7fb").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},e416:function(e,t,n){"use strict";var r=n("6b1d"),o=n("d054").some,l=n("7f8a"),c=n("ce71"),h=l("some"),d=c("some");r({target:"Array",proto:!0,forced:!h||!d},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},e68e:function(e,t,n){var r=n("6b1d"),o=n("72df"),l=n("37d1"),c=n("0e39"),h=n("802e");r({target:"Object",stat:!0,forced:o((function(){c(1)})),sham:!h},{getPrototypeOf:function(e){return c(l(e))}})},e7a0:function(e,t,n){var r=n("72df");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},e8e5:function(e,t,n){"use strict";var r=n("d054").forEach,o=n("7f8a"),l=n("ce71"),c=o("forEach"),h=l("forEach");e.exports=c&&h?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},e918:function(e,t,n){},e94e:function(e,t,n){"use strict";var r=n("d4cb"),o=n("f498"),l=n("ebac"),c=n("b8ba"),h=n("f1a7"),d=n("6a61"),f=n("8fa9"),m=n("083f"),A=n("72df"),y=n("82e8"),v=n("65d0").f,_=n("185a").f,w=n("abdf").f,x=n("61ad").trim,E=o.Number,C=E.prototype,S="Number"==d(y(C)),T=function(e){var t,n,r,o,l,c,h,code,d=m(e,!1);if("string"==typeof d&&d.length>2)if(43===(t=(d=x(d)).charCodeAt(0))||45===t){if(88===(n=d.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(d.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+d}for(c=(l=d.slice(2)).length,h=0;h<c;h++)if((code=l.charCodeAt(h))<48||code>o)return NaN;return parseInt(l,r)}return+d};if(l("Number",!E(" 0o1")||!E("0b1")||E("+0x1"))){for(var B,k=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof k&&(S?A((function(){C.valueOf.call(n)})):"Number"!=d(n))?f(new E(T(t)),n,k):T(t)},I=r?v(E):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),M=0;I.length>M;M++)h(E,B=I[M])&&!h(k,B)&&w(k,B,_(E,B));k.prototype=C,C.constructor=k,c(o,"Number",k)}},ebac:function(e,t,n){var r=n("72df"),o=/#|\.prototype\./,l=function(e,t){var n=data[c(e)];return n==d||n!=h&&("function"==typeof t?r(t):!!t)},c=l.normalize=function(e){return String(e).replace(o,".").toLowerCase()},data=l.data={},h=l.NATIVE="N",d=l.POLYFILL="P";e.exports=l},ed2b:function(e,t,n){var r=n("7d53"),o=n("82e8"),l=n("abdf"),c=r("unscopables"),h=Array.prototype;null==h[c]&&l.f(h,c,{configurable:!0,value:o(null)}),e.exports=function(e){h[c][e]=!0}},ee58:function(e,t,n){var r=n("378c"),o=n("65d0").f,l={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return c&&"[object Window]"==l.call(e)?function(e){try{return o(e)}catch(e){return c.slice()}}(e):o(r(e))}},ef14:function(e,t,n){"use strict";var r=n("6b1d"),o=n("83a6"),l=n("378c"),c=n("7f8a"),h=[].join,d=o!=Object,f=c("join",",");r({target:"Array",proto:!0,forced:d||!f},{join:function(e){return h.call(l(this),void 0===e?",":e)}})},ef1f:function(e,t,n){var r=n("3cec"),o=n("b8ba"),l=n("5268");r||o(Object.prototype,"toString",l,{unsafe:!0})},f1a7:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},f1d8:function(e,t,n){"use strict";var r=n("3f48"),o=n("bdf1"),l=n("62c0"),c=n("37fe");function h(e){var t=new l(e),n=o(l.prototype.request,t);return r.extend(n,l.prototype,t),r.extend(n,t),n}var d=h(n("7723"));d.Axios=l,d.create=function(e){return h(c(d.defaults,e))},d.Cancel=n("1586"),d.CancelToken=n("275a"),d.isCancel=n("5816"),d.all=function(e){return Promise.all(e)},d.spread=n("20e0"),e.exports=d,e.exports.default=d},f2bf:function(e,t,n){var r=n("f498"),o=n("7526"),l=r.document,c=o(l)&&o(l.createElement);e.exports=function(e){return c?l.createElement(e):{}}},f3b8:function(e,t,n){"use strict";var r=n("b7fb").charAt,o=n("cdcd"),l=n("2df4"),c=o.set,h=o.getterFor("String Iterator");l(String,"String",(function(e){c(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=h(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},f3e4:function(e,t,n){var r=n("7526");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},f498:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("7d15"))},f7d3:function(e,t,n){n("6b1d")({global:!0},{globalThis:n("f498")})}
2,f8a5:function(e,t,n){var r=n("6b1d"),o=n("37d1"),l=n("0c47");r({target:"Object",stat:!0,forced:n("72df")((function(){l(1)}))},{keys:function(e){return l(o(e))}})},fa46:function(e,t,n){var r=n("abdf").f,o=n("f1a7"),l=n("7d53")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,l)&&r(e,l,{configurable:!0,value:t})}},fa8c:function(e,t,n){var r=n("f498"),o=n("130d"),l=n("e8e5"),c=n("5b12");for(var h in o){var d=r[h],f=d&&d.prototype;if(f&&f.forEach!==l)try{c(f,"forEach",l)}catch(e){f.forEach=l}}},fbf7:function(e,t){e.exports="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff"},fe0b:function(e,t,n){},fe6c:function(e,t,n){"use strict";var r=n("608d");n.n(r).a},ff89:function(e,t,n){"use strict";var r,o,l,c=n("0e39"),h=n("5b12"),d=n("f1a7"),f=n("7d53"),m=n("0e93"),A=f("iterator"),y=!1;[].keys&&("next"in(l=[].keys())?(o=c(c(l)))!==Object.prototype&&(r=o):y=!0),null==r&&(r={}),m||d(r,A)||h(r,A,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:y}}})},4032:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(global){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var REACT_ELEMENT_TYPE;function _jsx(e,t,n,i){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={children:void 0}),1===s)t.children=i;else if(s>1){for(var r=new Array(s),o=0;o<s;o++)r[o]=arguments[o+3];t.children=r}if(t&&a)for(var l in a)void 0===t[l]&&(t[l]=a[l]);else t||(t=a||{});return{$$typeof:REACT_ELEMENT_TYPE,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function _asyncIterator(e){var t;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(t=e[Symbol.asyncIterator]))return t.call(e);if(Symbol.iterator&&null!=(t=e[Symbol.iterator]))return t.call(e)}throw new TypeError("Object is not async iterable")}function _AwaitValue(e){this.wrapped=e}function _AsyncGenerator(e){var t,n;function i(t,n){try{var s=e[t](n),r=s.value,o=r instanceof _AwaitValue;Promise.resolve(o?r.wrapped:r).then((function(e){o?i("return"===t?"return":"next",e):a(s.done?"return":"normal",e)}),(function(e){i("throw",e)}))}catch(e){a("throw",e)}}function a(e,a){switch(e){case"return":t.resolve({value:a,done:!0});break;case"throw":t.reject(a);break;default:t.resolve({value:a,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,a){return new Promise((function(s,r){var o={key:e,arg:a,resolve:s,reject:r,next:null};n?n=n.next=o:(t=n=o,i(e,a))}))},"function"!=typeof e.return&&(this.return=void 0)}function _wrapAsyncGenerator(e){return function(){return new _AsyncGenerator(e.apply(this,arguments))}}function _awaitAsyncGenerator(e){return new _AwaitValue(e)}function _asyncGeneratorDelegate(e,t){var n={},i=!1;function a(n,a){return i=!0,a=new Promise((function(t){t(e[n](a))})),{done:!1,value:t(a)}}return"function"==typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(e){return i?(i=!1,e):a("next",e)},"function"==typeof e.throw&&(n.throw=function(e){if(i)throw i=!1,e;return a("throw",e)}),"function"==typeof e.return&&(n.return=function(e){return i?(i=!1,e):a("return",e)}),n}function asyncGeneratorStep(e,t,n,i,a,s,r){try{var o=e[s](r),l=o.value}catch(e){return void n(e)}o.done?t(l):Promise.resolve(l).then(i,a)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var s=e.apply(t,n);function r(e){asyncGeneratorStep(s,i,a,r,o,"next",e)}function o(e){asyncGeneratorStep(s,i,a,r,o,"throw",e)}r(void 0)}))}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _defineEnumerableProperties(e,t){for(var n in t)(s=t[n]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,n,s);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(t),a=0;a<i.length;a++){var s,r=i[a];(s=t[r]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,r,s)}return e}function _defaults(e,t){for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i],s=Object.getOwnPropertyDescriptor(t,a);s&&s.configurable&&void 0===e[a]&&Object.defineProperty(e,a,s)}return e}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}
2)))),i.forEach((function(t){_defineProperty(e,t,n[t])}))}return e}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&_setPrototypeOf(a,n.prototype),a}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function _newArrowCheck(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}function _objectDestructuringEmpty(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,i,a={},s=Object.keys(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}function _objectWithoutProperties(e,t){if(null==e)return{};var n,i,a=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(e);if(t){var a=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _get(e,t,n){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=_superPropBase(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function set(e,t,n,i){return(set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,i){var a,s=_superPropBase(e,t);if(s){if((a=Object.getOwnPropertyDescriptor(s,t)).set)return a.set.call(i,n),!0;if(!a.writable)return!1}if(a=Object.getOwnPropertyDescriptor(i,t)){if(!a.writable)return!1;a.value=n,Object.defineProperty(i,t,a)}else _defineProperty(i,t,n);return!0})(e,t,n,i)}function _set(e,t,n,i,a){if(!set(e,t,n,i||e)&&a)throw new Error("failed to set property");return n}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}function _readOnlyError(e){throw new TypeError('"'+e+'" is read-only')}function _writeOnlyError(e){throw new TypeError('"'+e+'" is write-only')}function _classNameTDZError(e){throw new Error('Class "'+e+'" cannot be referenced in computed property keys.')}function _temporalUndefined(){}function _tdz(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}function _temporalRef(e,t){return e===_temporalUndefined?_tdz(t):e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _slicedToArrayLoose(e,t){return _arrayWithHoles(e)||_iterableToArrayLimitLoose(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _maybeArrayLike(e,t,n){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var i=t.length;return _arrayLikeToArray(t,void 0!==n&&n<i?n:i)}return e(t,n)}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,a=!1,s=void 0;try{for(var r,o=e[Symbol.iterator]();!(i=(r=o.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){a=!0,s=e}finally{try{i||null==o.return||o.return()}finally{if(a)throw s}}return n}}function _iterableToArrayLimitLoose(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){for(var n,i=[],a=e[Symbol.iterator]();!(n=a.next()).done&&(i.push(n.value),!t||i.length!==t););return i}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _nonIterableRest(){throw new TypeError("Invalid attempt to de
2structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _createForOfIteratorHelper(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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 s,r=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return r=e.done,e},e:function(e){o=!0,s=e},f:function(){try{r||null==n.return||n.return()}finally{if(o)throw s}}}}function _createForOfIteratorHelperLoose(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function _skipFirstGeneratorNext(e){return function(){var t=e.apply(this,arguments);return t.next(),t}}function _toPrimitive(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:String(t)}function _initializerWarningHelper(e,t){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}function _initializerDefineProperty(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function _applyDecoratedDescriptor(e,t,n,i,a){var s={};
vendor: 6,663 bytes, line 2
2return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),s),a&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(a):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}__webpack_require__.d(__webpack_exports__,"LottiePlayer",(function(){return LottiePlayer})),__webpack_require__.d(__webpack_exports__,"PlayMode",(function(){return PlayMode})),__webpack_require__.d(__webpack_exports__,"PlayerEvents",(function(){return PlayerEvents})),__webpack_require__.d(__webpack_exports__,"PlayerState",(function(){return PlayerState})),__webpack_require__.d(__webpack_exports__,"parseSrc",(function(){return parseSrc})),"function"==typeof Symbol&&Symbol.asyncIterator&&(_AsyncGenerator.prototype[Symbol.asyncIterator]=function(){return this}),_AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},_AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},_AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};var id=0;function _classPrivateFieldLooseKey(e){return"__private_"+id+++"_"+e}function _classPrivateFieldLooseBase(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}function _classPrivateFieldGet(e,t){return _classApplyDescriptorGet(e,_classExtractFieldDescriptor(e,t,"get"))}function _classPrivateFieldSet(e,t,n){return _classApplyDescriptorSet(e,_classExtractFieldDescriptor(e,t,"set"),n),n}function _classPrivateFieldDestructureSet(e,t){return _classApplyDescriptorDestructureSet(e,_classExtractFieldDescriptor(e,t,"set"))}function _classExtractFieldDescriptor(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function _classStaticPrivateFieldSpecGet(e,t,n){return _classCheckPrivateStaticAccess(e,t),_classCheckPrivateStaticFieldDescriptor(n,"get"),_classApplyDescriptorGet(e,n)}function _classStaticPrivateFieldSpecSet(e,t,n,i){return _classCheckPrivateStaticAccess(e,t),_classCheckPrivateStaticFieldDescriptor(n,"set"),_classApplyDescriptorSet(e,n,i),i}function _classStaticPrivateMethodGet(e,t,n){return _classCheckPrivateStaticAccess(e,t),n}function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}function _classApplyDescriptorSet(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(n){t.set.call(e,n)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}function _classStaticPrivateFieldDestructureSet(e,t,n){return _classCheckPrivateStaticAccess(e,t),_classCheckPrivateStaticFieldDescriptor(n,"set"),_classApplyDescriptorDestructureSet(e,n)}function _classCheckPrivateStaticAccess(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}function _classCheckPrivateStaticFieldDescriptor(e,t){if(void 0===e)throw new TypeError("attempted to "+t+" private static field before its declaration")}function _decorate(e,t,n,i){var a=_getDecoratorsApi();if(i)for(var s=0;s<i.length;s++)a=i[s](a);var r=t((function(e){a.initializeInstanceElements(e,o.elements)}),n),o=a.decorateClass(_coalesceClassElements(r.d.map(_createElementDescriptor)),e);return a.initializeClassElements(r.F,o.elements),a.runClassFinishers(r.F,o.finishers)}function _getDecoratorsApi(){_getDecoratorsApi=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(i){t.forEach((function(t){var a=t.placement;if(t.kind===i&&("static"===a||"prototype"===a)){var s="static"===a?e:n;this.defineClassElement(s,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var i=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],i=[],a={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,a)}),this),e.forEach((function(e){if(!_hasDecorators(e))return n.push(e);var t=this.decorateElement(e,a);n.push(t.element),n.push.apply(n,t.extras),i.push.apply(i,t.finishers)}),this),!t)return{elements:n,finishers:i};var s=this.decorateConstructor(n,t);return i.push.apply(i,s.finishers),s.finishers=i,s},addElementPlacement:function(e,t,n){var i=t[e.placement];if(!n&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,t){for(var n=[],i=[],a=e.decorators,s=a.length-1;s>=0;s--){var r=t[e.placement];r.splice(r.indexOf(e.key),1);var o=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,a[s])(o)||o);e=l.element,this.addElementPlacement(e,t),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p<c.length;p++)this.addElementPlacement(c[p],t);n.push.apply(n,c)}}return{element:e,finishers:i,extras:n}},decorateConstructor:function(e,t){for(var n=[],i=t.length-1;i>=0;i--){var a=this.fromClassDescriptor(e),s=this.toClassDescriptor((0,t[i])(a)||a);if(void 0!==s.finisher&&n.push(s.finisher),void 0!==s.elements){e=s.elements;for(var r=0;r<e.length-1;r++)for(var o=r+1;o<e.length;o++)if(e[r].key===e[o].key&&e[r].placement===e[o].placement)throw new TypeError("Duplicated element ("+e[r].key+")")}}return{elements:e,finishers:n}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){if(void 0!==e)return _toArray(e).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this)},toElementDescriptor:function(e){var t=String(e.kind);if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "f
2ield", but a decorator created an element descriptor with .kind "'+t+'"');var n=_toPropertyKey(e.key),i=String(e.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var a=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var s={kind:t,key:n,placement:i,descriptor:Object.assign({},a)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(a,"get","The property descriptor of a field descriptor"),this.disallowProperty(a,"set","The property descriptor of a field descriptor"),this.disallowProperty(a,"value","The property descriptor of a field descriptor"),s.initializer=e.initializer),s},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:_optionalCallableProperty(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=String(e.kind);if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var n=_optionalCallableProperty(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:n}},runClassFinishers:function(e,t){for(var n=0;n<t.length;n++){var i=(0,t[n])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,t,n){if(void 0!==e[t])throw new TypeError(n+" can't have a ."+t+" property.")}};return e}function _createElementDescriptor(e){var t,n=_toPropertyKey(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:n,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function _coalesceGetterSetter(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function _coalesceClassElements(e){for(var t=[],n=function(e){return"method"===e.kind&&e.key===s.key&&e.placement===s.placement},i=0;i<e.length;i++){var a,s=e[i];if("method"===s.kind&&(a=t.find(n)))if(_isDataDescriptor(s.descriptor)||_isDataDescriptor(a.descriptor)){if(_hasDecorators(s)||_hasDecorators(a))throw new ReferenceError("Duplicated methods ("+s.key+") can't be decorated.");a.descriptor=s.descriptor}else{if(_hasDecorators(s)){if(_hasDecorators(a))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+s.key+").");a.decorators=s.decorators}_coalesceGetterSetter(s,a)}else t.push(s)}return t}function _hasDecorators(e){return e.decorators&&e.decorators.length}function _isDataDescriptor(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function _optionalCallableProperty(e,t){var n=e[t];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+t+"' to be a function");return n}function _classPrivateMethodGet(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}function _wrapRegExp(e,t){_wrapRegExp=function(e,t){return new s(e,void 0,t)};var n=_wrapNativeSuper(RegExp),i=RegExp.prototype,a=new WeakMap;function s(e,t,i){var s=n.call(this,e,t);return a.set(s,i||a.get(e)),s}function r(e,t){var n=a.get(t);return Object.keys(n).reduce((function(t,i){return t[i]=e[n[i]],t}),Object.create(null))}return _inherits(s,n),s.prototype.exec=function(e){var t=i.exec.call(this,e);return t&&(t.groups=r(t,this)),t},s.prototype[Symbol.replace]=function(e,t){if("string"==typeof t){var n=a.get(this);return i[Symbol.replace].call(this,e,t.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+n[t]})))}if("function"==typeof t){var s=this;return i[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!=typeof e[e.length-1]&&e.push(r(e,s)),t.apply(this,e)}))}return i[Symbol.replace].call(this,e,t)},_wrapRegExp.apply(this,arguments)}
2var _extendStatics=function(e,t){return(_extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var _assign=function(){return(_assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function __rest(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n}function __decorate(e,t,n,i){var a,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(s<3?a(r):s>
vendor: 4,460 bytes, line 2
23?a(t,n,r):a(t,n))||r);return s>3&&r&&Object.defineProperty(t,n,r),r}function __param(e,t){return function(n,i){t(n,i,e)}}function __metadata(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,n,i){return new(n||(n=Promise))((function(a,s){function r(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,o)}l((i=i.apply(e,t||[])).next())}))}function __generator(e,t){var n,i,a,s,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=2&s[0]?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,i=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((a=(a=r.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(6===s[0]&&r.label<a[1]){r.label=a[1],a=s;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(s);break}a[2]&&r.ops.pop(),r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e],i=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}}var __createBinding=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]};function __exportStar(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||__createBinding(t,e,n)}function __values(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,s=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)r.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return r}function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}function __spreadArrays(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),a=0;for(t=0;t<n;t++)for(var s=arguments[t],r=0,o=s.length;r<o;r++,a++)i[a]=s[r];return i}function __spreadArray(e,t,n){if(n||2===arguments.length)for(var i,a=0,s=t.length;a<s;a++)!i&&a in t||(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}function __asyncGenerator(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,a=n.apply(e,t||[]),s=[];return i={},r("next"),r("throw"),r("return"),i[Symbol.asyncIterator]=function(){return this},i;function r(e){a[e]&&(i[e]=function(t){return new Promise((function(n,i){s.push([e,t,n,i])>1||o(e,t)}))})}function o(e,t){try{(n=a[e](t)).value instanceof __await?Promise.resolve(n.value.v).then(l,c):p(s[0][2],n)}catch(e){p(s[0][3],e)}var n}function l(e){o("next",e)}function c(e){o("throw",e)}function p(e,t){e(t),s.shift(),s.length&&o(s[0][0],s[0][1])}}function __asyncDelegator(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,a){t[i]=e[i]?function(t){return(n=!n)?{value:__await(e[i](t)),done:"return"===i}:a?a(t):t}:a}}function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,a){!function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}(i,a,(t=e[n](t)).done,t.value)}))}}}
2function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var __setModuleDefault=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function __importStar(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&__createBinding(t,e,n);return __setModuleDefault(t,e),t}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function __classPrivateFieldSet(e,t,n,i,a){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?a.call(e,n):a?a.value=n:t.set(e,n),n}var isCEPolyfill="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,reparentNodes=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t!==n;){var a=t.nextSibling;e.insertBefore(t,i),t=a}},removeNodes=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t!==n;){var i=t.nextSibling;e.removeChild(t),t=i}},marker="{{lit-".concat(String(Math.random()).slice(2),"}}"),nodeMarker="\x3c!--".concat(marker,"--\x3e"),markerRegex=new RegExp("".concat(marker,"|").concat(nodeMarker)),boundAttributeSuffix="$lit$";class Template{constructor(e,t){this.parts=[],this.element=t;for(var n=[],i=[],a=document.createTreeWalker(t.content,133,null,!1),s=0,r=-1,o=0,{strings:l,values:{length:c}}=e;o<c;){var p=a.nextNode();if(null!==p){if(r++,1===p.nodeType){if(p.hasAttributes()){for(var h=p.attributes,{length:d}=h,f=0,m=0;m<d;m++)endsWith(h[m].name,boundAttributeSuffix)&&f++;for(;f-- >0;){var u=l[o],A=lastAttributeNameRegex.exec(u)[2],g=A.toLowerCase()+boundAttributeSuffix,y=p.getAttribute(g);p.removeAttribute(g);var b=y.split(markerRegex);this.parts.push({type:"attribute",index:r,name:A,strings:b}),o+=b.length-1}}"TEMPLATE"===p.tagName&&(i.push(p),a.currentNode=p.content)}else if(3===p.nodeType){var v=p.data;if(v.indexOf(marker)>=0){for(var _=p.parentNode,w=v.split(markerRegex),x=w.length-1,E=0;E<x;E++){var C=void 0,S=w[E];if(""===S)C=createMarker();else{var T=lastAttributeNameRegex.exec(S);null!==T&&endsWith(T[2],boundAttributeSuffix)&&(S=S.slice(0,T.index)+T[1]+T[2].slice(0,-boundAttributeSuffix.length)+T[3]),C=document.createTextNode(S)}_.insertBefore(C,p),this.parts.push({type:"node",index:++r})}""===w[x]?(_.insertBefore(createMarker(),p),n.push(p)):p.data=w[x],o+=x}}else if(8===p.nodeType)if(p.data===marker){var B=p.parentNode;null!==p.previousSibling&&r!==s||(r++,B.insertBefore(createMarker(),p)),s=r,this.parts.push({type:"node",index:r}),null===p.nextSibling?p.data="":(n.push(p),r--),o++}else for(var k=-1;-1!==(k=p.data.indexOf(marker,k+1));)this.parts.push({type:"node",index:-1}),o++}else a.currentNode=i.pop()}for(var I of n)I.parentNode.removeChild(I)}}var endsWith=(e,t)=>{var n=e.length-t.length;return n>=0&&e.slice(n)===t},isTemplatePartActive=e=>-1!==e.index,createMarker=()=>document.createComment(""),lastAttributeNameRegex=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,walkerNodeFilter=133;function removeNodesFromTemplate(e,t){for(var{element:{content:n},parts:i}=e,a=document.createTreeWalker(n,walkerNodeFilter,null,!1),s=nextActiveIndexInTemplateParts(i),r=i[s],o=-1,l=0,c=[],p=null;a.nextNode();){o++;var h=a.currentNode;for(h.previousSibling===p&&(p=null),t.has(h)&&(c.push(h),null===p&&(p=h)),null!==p&&l++;void 0!==r&&r.index===o;)r.index=null!==p?-1:r.index-l,r=i[s=nextActiveIndexInTemplateParts(i,s)]}
2c.forEach(e=>e.parentNode.removeChild(e))}var countNodes=e=>{for(var t=11===e.nodeType?0:1,n=document.createTreeWalker(e,walkerNodeFilter,null,!1);n.nextNode();)t++;return t},nextActiveIndexInTemplateParts=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=t+1;n<e.length;n++){var i=e[n];if(isTemplatePartActive(i))return n}return-1};function insertNodeIntoTemplate(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,{element:{content:i},parts:a}=e;if(null!=n)for(var s=document.createTreeWalker(i,walkerNodeFilter,null,!1),r=nextActiveIndexInTemplateParts(a),o=0,l=-1;s.nextNode();){l++;var c=s.currentNode;for(c===n&&(o=countNodes(t),n.parentNode.insertBefore(t,n));-1!==r&&a[r].index===l;){if(o>0){for(;-1!==r;)a[r].index+=o,r=nextActiveIndexInTemplateParts(a,r);return}r=nextActiveIndexInTemplateParts(a,r)}}else i.appendChild(t)}var directives=new WeakMap,directive=e=>function(){var t=e(...arguments);return directives.set(t,!0),t},isDirective=e=>"function"==typeof e&&directives.has(e),noChange={},nothing={};class TemplateInstance{constructor(e,t,n){this.__parts=[],this.template=e,this.processor=t,this.options=n}update(e){var t=0;for(var n of this.__parts)void 0!==n&&n.setValue(e[t]),t++;for(var i of this.__parts)void 0!==i&&i.commit()}_clone(){for(var e,t=isCEPolyfill?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],i=this.template.parts,a=document.createTreeWalker(t,133,null,!1),s=0,r=0,o=a.nextNode();s<i.length;)if(e=i[s],isTemplatePartActive(e)){for(;r<e.index;)r++,"TEMPLATE"===o.nodeName&&(n.push(o),a.currentNode=o.content),null===(o=a.nextNode())&&(a.currentNode=n.pop(),o=a.nextNode());if("node"===e.type){var l=this.processor.handleTextExpression(this.options);l.insertAfterNode(o.previousSibling),this.__parts.push(l)}else this.__parts.push(...this.processor.handleAttributeExpressions(o,e.name,e.strings,this.options));s++}else this.__parts.push(void 0),s++;return isCEPolyfill&&(document.adoptNode(t),customElements.upgrade(t)),t}}var policy=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),commentMarker=" ".concat(marker," ");class TemplateResult{constructor(e,t,n,i){this.strings=e,this.values=t,this.type=n,this.processor=i}getHTML(){for(var e=this.strings.length-1,t="",n=!1,i=0;i<e;i++){var a=this.strings[i],s=a.lastIndexOf("\x3c!--");n=(s>-1||n)&&-1===a.indexOf("--\x3e",s+1);var r=lastAttributeNameRegex.exec(a);t+=null===r?a+(n?commentMarker:nodeMarker):a.substr(0,r.index)+r[1]+r[2]+boundAttributeSuffix+r[3]+marker}return t+this.strings[e]}getTemplateElement(){var e=document.createElement("template"),t=this.getHTML();return void 0!==policy&&(t=policy.createHTML(t)),e.innerHTML=t,e}}class SVGTemplateResult extends TemplateResult{getHTML(){return"<svg>".concat(super.getHTML(),"</svg>")}getTemplateElement(){var e=super.getTemplateElement(),t=e.content,n=t.firstChild;return t.removeChild(n),reparentNodes(t,n.firstChild),e}}var isPrimitive=e=>null===e||!("object"==typeof e||"function"==typeof e),isIterable=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class AttributeCommitter{constructor(e,t,n){this.dirty=!0,this.element=e,this.name=t,this.strings=n,this.parts=[];for(var i=0;i<n.length-1;i++)this.parts[i]=this._createPart()}_createPart(){return new AttributePart(this)}_getValue(){var e=this.strings,t=e.length-1,n=this.parts;if(1===t&&""===e[0]&&""===e[1]){var i=n[0].value;if("symbol"==typeof i)return String(i);if("string"==typeof i||!isIterable(i))return i}for(var a="",s=0;s<t;s++){a+=e[s];var r=n[s];if(void 0!==r){var o=r.value;if(isPrimitive(o)||!isIterable(o))a+="string"==typeof o?o:String(o);else for(var l of o)a+="string"==typeof l?l:String(l)}}return a+e[t]}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class AttributePart{constructor(e){this.value=void 0,this.committer=e}setValue(e){e===noChange||isPrimitive(e)&&e===this.value||(this.value=e,isDirective(e)||(this.committer.dirty=!0))}commit(){for(;isDirective(this.value);){var e=this.value;this.value=noChange,e(this)}this.value!==noChange&&this.committer.commit()}}class NodePart{constructor(e){this.value=void 0,this.__pendingValue=void 0,this.options=e}appendInto(e){this.startNode=e.appendChild(createMarker()),this.endNode=e.appendChild(createMarker())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=createMarker()),e.__insert(this.endNode=createMarker())}insertAfterPart(e){e.__insert(this.startNode=createMarker()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){if(null!==this.startNode.parentNode){for(;isDirective(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=noChange,e(this)}var t=this.__pendingValue;t!==noChange&&(isPrimitive(t)?t!==this.value&&this.__commitText(t):t instanceof TemplateResult?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):isIterable(t)?this.__commitIterable(t):t===nothing?(this.value=nothing,this.clear()):this.__commitText(t))}}__insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}__commitNode(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}__commitText(e){var t=this.startNode.nextSibling,n="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=n:this.__commitNode(document.createTextNode(n)),this.value=e}__commitTemplateResult(e){var t=this.options.templateFactory(e);if(this.value instanceof TemplateInstance&&this.value.template===t)this.value.update(e.values);else{var n=new TemplateInstance(t,e.processor,this.options),i=n._clone();n.update(e.values),this.__commitNode(i),this.value=n}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());var t,n=this.value,i=0;for(var a of e)void 0===(t=n[i])&&(t=new NodePart(this.options),n.push(t),0===i?t.appendIntoPart(this):t.insertAfterPart(n[i-1])),t.setValue(a),t.commit(),i++;i<n.length&&(n.length=i,this.clear(t&&t.endNode))}clear(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.startNode;removeNodes(this.startNode.parentNode,e.nextSibling,this.endNode)}}class BooleanAttributePart{constructor(e,t,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=e,this.name=t,this.strings=n}setValue(e){this.__pendingValue=e}commit(){for(;isDirective(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=noChange,e(this)}if(this.__pendingValue!==noChange){var t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=noChange}}}class PropertyCommitter extends AttributeCommitter{constructor(e,t,n){super(e,t,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new PropertyPart(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class PropertyPart extends AttributePart{}var eventOptionsSupported=!1;(()=>{try{var e={get capture(){return eventOptionsSupported=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class EventPart{constructor(e,t,n){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=n,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;isDirective(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=noChange,e(this)}if(this.__pendingValue!==noChange){var t=this.__pendingValue,n=this.value,i=null==t||null!=n&&(t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive),a=null!=t&&(null==n||i);i&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),a&&(this.__options=getOptions(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=noChange}}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}var getOptions=e=>e&&(eventOptionsSupported?{capture:e.capture,passive:e.passive,once:e.once}:e.capture);function templateFactory(e){var t=templateCaches.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},templateCaches.set(e.type,t));var n=t.stringsArray.get(e.strings);if(void 0!==n)return n;var i=e.strings.join(marker);return void 0===(n=t.keyString.get(i))&&(n=new Template(e,e.getTemplateElement()),t.keyString.set(i,n)),t.stringsArray.set(e.strings,n),n}var templateCaches=new Map,parts=new WeakMap,render$1=(e,t,n)=>{var i=parts.get(t);void 0===i&&(removeNodes(t,t.firstChild),parts.set(t,i=new NodePart(Object.assign({templateFactory:templateFactory}
2,n))),i.appendInto(t)),i.setValue(e),i.commit()};class DefaultTemplateProcessor{handleAttributeExpressions(e,t,n,i){var a=t[0];return"."===a?new PropertyCommitter(e,t.slice(1),n).parts:"@"===a?[new EventPart(e,t.slice(1),i.eventContext)]:"?"===a?[new BooleanAttributePart(e,t.slice(1),n)]:new AttributeCommitter(e,t,n).parts}handleTextExpression(e){return new NodePart(e)}}var defaultTemplateProcessor=new DefaultTemplateProcessor;"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.3.0");var html=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new TemplateResult(e,n,"html",defaultTemplateProcessor)},svg=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new SVGTemplateResult(e,n,"svg",defaultTemplateProcessor)},getTemplateCacheKey=(e,t)=>"".concat(e,"--").concat(t),compatibleShadyCSSVersion=!0;void 0===window.ShadyCSS?compatibleShadyCSSVersion=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/[email protected] and @webcomponents/[email protected]."),compatibleShadyCSSVersion=!1);var shadyTemplateFactory=e=>t=>{var n=getTemplateCacheKey(t.type,e),i=templateCaches.get(n);void 0===i&&(i={stringsArray:new WeakMap,keyString:new Map},templateCaches.set(n,i));var a=i.stringsArray.get(t.strings);if(void 0!==a)return a;var s=t.strings.join(marker);if(void 0===(a=i.keyString.get(s))){var r=t.getTemplateElement();compatibleShadyCSSVersion&&window.ShadyCSS.prepareTemplateDom(r,e),a=new Template(t,r),i.keyString.set(s,a)}return i.stringsArray.set(t.strings,a),a},TEMPLATE_TYPES=["html","svg"],removeStylesFromLitTemplates=e=>{TEMPLATE_TYPES.forEach(t=>{var n=templateCaches.get(getTemplateCacheKey(t,e));void 0!==n&&n.keyString.forEach(e=>{var{element:{content:t}}=e,n=new Set;
2Array.from(t.querySelectorAll("style")).forEach(e=>{n.add(e)}),removeNodesFromTemplate(e,n)})})},shadyRenderSet=new Set,prepareTemplateStyles=(e,t,n)=>{shadyRenderSet.add(e);var i=n?n.element:document.createElement("template"),a=t.querySelectorAll("style"),{length:s}=a;if(0!==s){for(var r=document.createElement("style"),o=0;o<s;o++){var l=a[o];l.parentNode.removeChild(l),r.textContent+=l.textContent}removeStylesFromLitTemplates(e);var c=i.content;n?insertNodeIntoTemplate(n,r,c.firstChild):c.insertBefore(r,c.firstChild),window.ShadyCSS.prepareTemplateStyles(i,e);var p=c.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==p)t.insertBefore(p.cloneNode(!0),t.firstChild);else if(n){c.insertBefore(r,c.firstChild);var h=new Set;h.add(r),removeNodesFromTemplate(n,h)}}else window.ShadyCSS.prepareTemplateStyles(i,e)},render=(e,t,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");var i=n.scopeName,a=parts.has(t),s=compatibleShadyCSSVersion&&11===t.nodeType&&!!t.host,r=s&&!shadyRenderSet.has(i),o=r?document.createDocumentFragment():t;if(render$1(e,o,Object.assign({templateFactory:shadyTemplateFactory(i)},n)),r){var l=parts.get(o);parts.delete(o);var c=l.value instanceof TemplateInstance?l.value.template:void 0;prepareTemplateStyles(i,o,c),removeNodes(t,t.firstChild),t.appendChild(o),parts.set(t,l)}!a&&s&&window.ShadyCSS.styleElement(t.host)},_a;window.JSCompiler_renameProperty=(e,t)=>e;var defaultConverter={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},notEqual=(e,t)=>t!==e&&(t==t||e==e),defaultPropertyDeclaration={attribute:!0,type:String,converter:defaultConverter,reflect:!1,hasChanged:notEqual},STATE_HAS_UPDATED=1,STATE_UPDATE_REQUESTED=4,STATE_IS_REFLECTING_TO_ATTRIBUTE=8,STATE_IS_REFLECTING_TO_PROPERTY=16,finalized="finalized";class UpdatingElement extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();var e=[];return this._classProperties.forEach((t,n)=>{var i=this._attributeNameForProperty(n,t);void 0!==i&&(this._attributeToPropertyMap.set(i,n),e.push(i))}),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;var e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((e,t)=>this._classProperties.set(t,e))}}static createProperty(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:defaultPropertyDeclaration;if(this._ensureClassProperties(),this._classProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"==typeof e?Symbol():"__".concat(e),i=this.getPropertyDescriptor(e,n,t);void 0!==i&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(i){var a=this[e];this[t]=i,this.requestUpdateInternal(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this._classProperties&&this._classProperties.get(e)||defaultPropertyDeclaration}static finalize(){var e=Object.getPrototypeOf(this);if(e.hasOwnProperty(finalized)||e.finalize(),this[finalized]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){var t=this.properties,n=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(var i of n)this.createProperty(i,t[i])}}static _attributeNameForProperty(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:notEqual)(e,t)}static _propertyValueFromAttribute(e,t){var n=t.type,i=t.converter||defaultConverter,a="function"==typeof i?i:i.fromAttribute;return a?a(e,n):e}static _propertyValueToAttribute(e,t){if(void 0!==t.reflect){var n=t.type,i=t.converter;return(i&&i.toAttribute||defaultConverter.toAttribute)(e,n)}}initialize(){this._updateState=0,this._updatePromise=new Promise(e=>this._enableUpdatingResolver=e),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEac
2h((e,t)=>{if(this.hasOwnProperty(t)){var n=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,n)}})}_applyInstanceProperties(){this._instanceProperties.forEach((e,t)=>this[t]=e),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,n){t!==n&&this._attributeToProperty(e,n)}_propertyToAttribute(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:defaultPropertyDeclaration,i=this.constructor,a=i._attributeNameForProperty(e,n);if(void 0!==a){var s=i._propertyValueToAttribute(t,n);if(void 0===s)return;this._updateState=this._updateState|STATE_IS_REFLECTING_TO_ATTRIBUTE,null==s?this.removeAttribute(a):this.setAttribute(a,s),this._updateState=this._updateState&~STATE_IS_REFLECTING_TO_ATTRIBUTE}}_attributeToProperty(e,t){if(!(this._updateState&STATE_IS_REFLECTING_TO_ATTRIBUTE)){var n=this.constructor,i=n._attributeToPropertyMap.get(e);if(void 0!==i){var a=n.getPropertyOptions(i);this._updateState=this._updateState|STATE_IS_REFLECTING_TO_PROPERTY,this[i]=n._propertyValueFromAttribute(t,a),this._updateState=this._updateState&~STATE_IS_REFLECTING_TO_PROPERTY}}}requestUpdateInternal(e,t,n){var i=!0;if(void 0!==e){var a=this.constructor;n=n||a.getPropertyOptions(e),a._valueHasChanged(this[e],t,n.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==n.reflect||this._updateState&STATE_IS_REFLECTING_TO_PROPERTY||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,n))):i=!1}!this._hasRequestedUpdate&&i&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(e,t){return this.requestUpdateInternal(e,t),this.updateComplete}_enqueueUpdate(){var e=this;return _asyncToGenerator((function*(){e._updateState=e._updateState|STATE_UPDATE_REQUESTED;try{yield e._updatePromise}catch(e){}var t=e.performUpdate();return null!=t&&(yield t),!e._hasRequestedUpdate}))()}get _hasRequestedUpdate(){return this._updateState&STATE_UPDATE_REQUESTED}get hasUpdated(){return this._updateState&STATE_HAS_UPDATED}performUpdate(){if(this._hasRequestedUpdate){this._instanceProperties&&this._applyInstanceProperties();var e=!1,t=this._changedProperties;try{(e=this.shouldUpdate(t))?this.update(t):this._markUpdated()}catch(t){throw e=!1,this._markUpdated(),t}e&&(this._updateState&STATE_HAS_UPDATED||(this._updateState=this._updateState|STATE_HAS_UPDATED,this.firstUpdated(t)),this.updated(t))}}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~STATE_UPDATE_REQUESTED}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((e,t)=>this._propertyToAttribute(t,this[t],e)),this._reflectingProperties=void 0),this._markUpdated()}updated(e){}firstUpdated(e){}}_a=finalized,UpdatingElement[_a]=!0;var legacyCustomElement=(e,t)=>(window.customElements.define(e,t),t),standardCustomElement=(e,t)=>{var{kind:n,elements:i}=t;return{kind:n,elements:i,finisher(t){window.customElements.define(e,t)}}},customElement=e=>t=>"function"==typeof t?legacyCustomElement(e,t):standardCustomElement(e,t),standardProperty=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?Object.assign(Object.assign({},t),{finisher(n){n.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}},legacyProperty=(e,t,n)=>{t.constructor.createProperty(n,e)};function property(e){return(t,n)=>void 0!==n?legacyProperty(e,t,n):standardProperty(e,t)}function internalProperty(e){return property({attribute:!1,hasChanged:null==e?void 0:e.hasChanged})}function query(e,t){return(n,i)=>{var a={get(){return this.renderRoot.querySelector(e)},enumerable:!0,configurable:!0};if(t){var s="symbol"==typeof i?Symbol():"__".concat(i);a.get=function(){return void 0===this[s]&&(this[s]=this.renderRoot.querySelector(e)),this[s]}}return void 0!==i?legacyQuery(a,n,i):standardQuery(a,n)}}function queryAsync(e){return(t,n)=>{var i={get(){var t=this;return _asyncToGenerator((function*(){return yield t.updateComplete,t.renderRoot.querySelector(e)}))()},enumerable:!0,configurable:!0};return void 0!==n?legacyQuery(i,t,n):standardQuery(i,t)}}function queryAll(e){return(t,n)=>{var i={get(){return this.renderRoot.querySelectorAll(e)},enumerable:!0,configurable:!0};return void 0!==n?legacyQuery(i,t,n):standardQuery(i,t)}}var legacyQuery=(e,t,n)=>{Object.defineProperty(t,n,e)},standardQuery=(e,t)=>({kind:"method",placement:"prototype",key:t.key,descriptor:e}),standardEventOptions=(e,t)=>Object.assign(Object.assign({},t),{finisher(n){Object.assign(n.prototype[t.key],e)}}),legacyEventOptions=(e,t,n)=>{Object.assign(t[n],e)};function eventOptions(e){return(t,n)=>void 0!==n?legacyEventOptions(e,t,n):standardEventOptions(e,t)}var ElementProto=Element.prototype,legacyMatches=ElementProto.msMatchesSelector||ElementProto.webkitMatchesSelector;function queryAssignedNodes(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(i,a)=>
2{var s={get(){var i="slot".concat(e?"[name=".concat(e,"]"):":not([name])"),a=this.renderRoot.querySelector(i),s=a&&a.assignedNodes({flatten:t});return s&&n&&(s=s.filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.matches?e.matches(n):legacyMatches.call(e,n))),s},enumerable:!0,configurable:!0};return void 0!==a?legacyQuery(s,i,a):standardQuery(s,i)}}var supportsAdoptingStyleSheets=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,constructionToken=Symbol();class CSSResult{constructor(e,t){if(t!==constructionToken)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(supportsAdoptingStyleSheets?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}var unsafeCSS=e=>new CSSResult(String(e),constructionToken),textFromCSSResult=e=>{if(e instanceof CSSResult)return e.cssText;if("number"==typeof e)return e;throw new Error("Value passed to 'css' function must be a 'css' function result: ".concat(e,". Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security."))},css=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var a=n.reduce((t,n,i)=>t+textFromCSSResult(n)+e[i+1],e[0]);return new CSSResult(a,constructionToken)};(window.litElementVersions||(window.litElementVersions=[])).push("2.4.0");var renderNotImplemented={};class LitElement extends UpdatingElement{static getStyles(){return this.styles}static _getUniqueStyles(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_styles",this))){var e=this.getStyles();if(Array.isArray(e)){var t=(e,n)=>e.reduceRight((e,n)=>Array.isArray(n)?t(n,e):(e.add(n),e),n),n=t(e,new Set),i=[];n.forEach(e=>i.unshift(e)),this._styles=i}else this._styles=void 0===e?[]:[e];this._styles=this._styles.map(e=>{if(e instanceof CSSStyleSheet&&!supportsAdoptingStyleSheets){var t=Array.prototype.slice.call(e.cssRules).reduce((e,t)=>e+t.cssText,"");return unsafeCSS(t)}return e})}}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){var e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?supportsAdoptingStyleSheets?this.renderRoot.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){var t=this.render();super.update(e),t!==renderNotImplemented&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{var t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){return renderNotImplemented}}LitElement.finalized=!0,LitElement.render=render;var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return commonjsRequire(e,null==t?n.path:t)}},n.exports),n.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var lottie=createCommonjsModule((function(module){"undefined"!=typeof navigator&&function(e,t){module.exports?module.exports=t(e):(e.lottie=t(e),e.bodymovin=e.lottie)}(window||{},(function(window){var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,_useWebWorker=!1,subframeEnabled=!0,idPrefix="",expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={},bmRnd,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=t.length;for(e=0;e<n;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"==typeof e&&e.length){var t,n=createSizedArray(e.length),i=e.length;for(t=0;t<i;t+=1)n[t]=Math.abs(e[t]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){bmRnd=e?Math.round:function(e){return e}}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,i){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,i){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}roundValues(!1);var createElementID=(_count=0,function(){return idPrefix+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,n){var i,a,s,r,o,l,c,p;switch(l=n*(1-t),c=n*(1-(o=6*e-(r=Math.floor(6*e)))*t),p=n*(1-(1-o)*t),r%6){case 0:i=n,a=p,s=l;break;case 1:i=c,a=n,s=l;break;case 2:i=l,a=n,s=p;break;case 3:i=l,a=c,s=n;break;case 4:i=p,a=l,s=n;break;case 5:i=n,a=l,s=c}return[i,a,s]}
vendor: 4,573 bytes, line 2
2function RGBtoHSV(e,t,n){var i,a=Math.max(e,t,n),s=Math.min(e,t,n),r=a-s,o=0===a?0:r/a,l=a/255;switch(a){case s:i=0;break;case e:i=t-n+r*(t<n?6:0),i/=6*r;break;case t:i=n-e+2*r,i/=6*r;break;case n:i=e-t+4*r,i/=6*r}return[i,o,l]}function addSaturationToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,i){return e<0&&(e=0),t<0&&(t=0),i<0&&(i=0),"#"+n[e]+n[t]+n[i]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],i=0;i<n.length;i+=1)n[i](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,i=this._cbs[e].length;n<i;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,i-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var createTypedArray=function(){function e(e,t){var n,i=0,a=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(i=0;i<t;i+=1)a.push(n);return a}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function createNS(e){return document.createElementNS(svgNS,e)}function createTag(e){return document.createElement(e)}function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums,lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"},Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,i=Math.round;function a(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(n){if(0===n)return this;var i=e(n),a=t(n);return this._t(i,-a,0,0,a,i,0,0,0,0,1,0,0,0,0,1)}function r(n){if(0===n)return this;var i=e(n),a=t(n);return this._t(1,0,0,0,0,i,-a,0,0,a,i,0,0,0,0,1)}function o(n){if(0===n)return this;var i=e(n),a=t(n);return this._t(i,0,a,0,0,1,0,0,-a,0,i,0,0,0,0,1)}function l(n){if(0===n)return this;var i=e(n),a=t(n);return this._t(i,-a,0,0,a,i,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function p(e,t){return this.shear(n(e),n(t))}function h(i,a){var s=e(a),r=t(a);return this._t(s,r,0,0,-r,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(i),1,0,0,0,0,1,0,0,0,0,1)._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function d(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function f(e,t,n,i,a,s,r,o,l,c,p,h,d,f,m,u){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=i,this.props[4]=a,this.props[5]=s,this.props[6]=r,this.props[7]=o,this.props[8]=l,this.props[9]=c,this.props[10]=p,this.props[11]=h,this.props[12]=d,this.props[13]=f,this.props[14]=m,this.props[15]=u,this}function m(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function u(e,t,n,i,a,s,r,o,l,c,p,h,d,f,m,u){var A=this.props;if(1===e&&0===t&&0===n&&0===i&&0===a&&1===s&&0===r&&0===o&&0===l&&0===c&&1===p&&0===h)return A[12]=A[12]*e+A[15]*
vendor: 4,811 bytes, line 2
2d,A[13]=A[13]*s+A[15]*f,A[14]=A[14]*p+A[15]*m,A[15]*=u,this._identityCalculated=!1,this;var g=A[0],y=A[1],b=A[2],v=A[3],_=A[4],w=A[5],x=A[6],E=A[7],C=A[8],S=A[9],T=A[10],B=A[11],k=A[12],I=A[13],M=A[14],P=A[15];return A[0]=g*e+y*a+b*l+v*d,A[1]=g*t+y*s+b*c+v*f,A[2]=g*n+y*r+b*p+v*m,A[3]=g*i+y*o+b*h+v*u,A[4]=_*e+w*a+x*l+E*d,A[5]=_*t+w*s+x*c+E*f,A[6]=_*n+w*r+x*p+E*m,A[7]=_*i+w*o+x*h+E*u,A[8]=C*e+S*a+T*l+B*d,A[9]=C*t+S*s+T*c+B*f,A[10]=C*n+S*r+T*p+B*m,A[11]=C*i+S*o+T*h+B*u,A[12]=k*e+I*a+M*l+P*d,A[13]=k*t+I*s+M*c+P*f,A[14]=k*n+I*r+M*p+P*m,A[15]=k*i+I*o+M*h+P*u,this._identityCalculated=!1,this}function A(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function g(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function y(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function b(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function v(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function _(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function w(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function x(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function E(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,i=-this.props[4]/e,a=this.props[0]/e,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,r=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,o=new Matrix;return o.props[0]=t,o.props[1]=n,o.props[4]=i,o.props[5]=a,o.props[12]=s,o.props[13]=r,o}function C(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function S(e){var t,n=e.length,i=[];for(t=0;t<n;t+=1)i[t]=C(e[t]);return i}function T(e,t,n){var i=createTypedArray("float32",6);if(this.isIdentity())i[0]=e[0],i[1]=e[1],i[2]=t[0],i[3]=t[1],i[4]=n[0],i[5]=n[1];else{var a=this.props[0],s=this.props[1],r=this.props[4],o=this.props[5],l=this.props[12],c=this.props[13];i[0]=e[0]*a+e[1]*r+l,i[1]=e[0]*s+e[1]*o+c,i[2]=t[0]*a+t[1]*r+l,i[3]=t[0]*s+t[1]*o+c,i[4]=n[0]*a+n[1]*r+l,i[5]=n[0]*s+n[1]*o+c}return i}function B(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function k(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function I(){for(var e=0,t=this.props,n="matrix3d(";e<16;)n+=i(1e4*t[e])/1e4,n+=15===e?")":",",e+=1;return n}function M(e){return e<1e-6&&e>0||e>-1e-6&&e<0?i(1e4*e)/1e4:e}function P(){var e=this.props;return"matrix("+M(e[0])+","+M(e[1])+","+M(e[4])+","+M(e[5])+","+M(e[12])+","+M(e[13])+")"}return function(){this.reset=a,this.rotate=s,this.rotateX=r,this.rotateY=o,this.rotateZ=l,this.skew=p,this.skewFromAxis=h,this.shear=c,this.scale=d,this.setTransform=f,this.translate=m,this.transform=u,this.applyToPoint=v,this.applyToX=_,this.applyToY=w,this.applyToZ=x,this.applyToPointArray=B,this.applyToTriplePoints=T,this.applyToPointStringified=k,this.toCSS=I,this.to2dCSS=P,this.clone=y,this.cloneFromProps=b,this.equals=g,this.inversePoints=S,this.inversePoint=C,this.getInverseMatrix=E,this._t=this.transform,this.isIdentity=A,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();!function(e,t){var n=this,i=t.pow(256,6),a=t.pow(2,52),s=2*a;function r(e){var t,n=e.length,i=this,a=0,s=i.i=i.j=0,r=i.S=[];for(n||(e=[n++]);a<256;)r[a]=a++;for(a=0;a<256;a++)r[a]=r[s=255&s+e[a%n]+(t=r[a])],r[s]=t;i.g=function(e){for(var t,n=0,a=i.i,s=i.j,r=i.S;e--;)t=r[a=255&a+1],n=256*n+r[255&(r[a]=r[s=255&s+t])+(r[s]=t)];return i.i=a,i.j=s,n}}function o(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function l(e,t){for(var n,i=e+"",a=0;a<i.length;)t[255&a]=255&(n^=19*t[255&a])+i.charCodeAt(a++);return c(t)}function c(e){return String.fromCharCode.apply(0,e)}t.seedrandom=function(p,h,d){var f=[],m=l(function e(t,n){var i,a=[],s=typeof t;if(n&&"object"==s)for(i in t)try{a.push(e(t[i],n-1))}catch(e){}return a.length?a:"string"==s?t:t+"\0"}((h=!0===h?{entropy:!0}:h||{}).entropy?[p,c(e)]:null===p?function(){try{var t=new Uint8Array(256);
vendor: 4,400 bytes, line 2
2return(n.crypto||n.msCrypto).getRandomValues(t),c(t)}catch(t){var i=n.navigator,a=i&&i.plugins;return[+new Date,n,a,n.screen,c(e)]}}():p,3),f),u=new r(f),A=function(){for(var e=u.g(6),t=i,n=0;e<a;)e=256*(e+n),t*=256,n=u.g(1);for(;e>=s;)e/=2,t/=2,n>>>=1;return(e+n)/t};return A.int32=function(){return 0|u.g(4)},A.quick=function(){return u.g(4)/4294967296},A.double=A,l(c(u.S),e),(h.pass||d||function(e,n,i,a){return a&&(a.S&&o(a,u),e.state=function(){return o(u,{})}),i?(t.random=e,n):e})(A,m,"global"in h?h.global:this==t,h.state)},l(t.random(),e)}([],BMMath);var BezierFactory=function(){var e={getBezierEasing:function(e,n,i,a,s){var r=s||("bez_"+e+"_"+n+"_"+i+"_"+a).replace(/\./g,"p");if(t[r])return t[r];var o=new l([e,n,i,a]);return t[r]=o,o}},t={},n="function"==typeof Float32Array;function i(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function s(e){return 3*e}function r(e,t,n){return((i(t,n)*e+a(t,n))*e+s(t))*e}function o(e,t,n){return 3*i(t,n)*e*e+2*a(t,n)*e+s(t)}function l(e){this._p=e,this._mSampleValues=n?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return l.prototype={get:function(e){var t=this._p[0],n=this._p[1],i=this._p[2],a=this._p[3];return this._precomputed||this._precompute(),t===n&&i===a?e:0===e?0:1===e?1:r(this._getTForX(e),n,a)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],i=this._p[3];this._precomputed=!0,e===t&&n===i||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<11;++n)this._mSampleValues[n]=r(.1*n,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],i=this._mSampleValues,a=0,s=1;10!==s&&i[s]<=e;++s)a+=.1;var l=a+(e-i[--s])/(i[s+1]-i[s])*.1,c=o(l,t,n);return c>=.001?function(e,t,n,i){for(var a=0;a<4;++a){var s=o(t,n,i);if(0===s)return t;t-=(r(t,n,i)-e)/s}return t}(e,l,t,n):0===c?l:function(e,t,n,i,a){var s,o,l=0;do{(s=r(o=t+(n-t)/2,i,a)-e)>0?n=o:t=o}while(Math.abs(s)>1e-7&&++l<10);return o}(e,a,a+.1,t,n)}},e}();function extendPrototype(e,t){var n,i,a=e.length;for(n=0;n<a;n+=1)for(var s in i=e[n].prototype)Object.prototype.hasOwnProperty.call(i,s)&&(t.prototype[s]=i[s])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}function bezFunction(){var e=Math;function t(e,t,n,i,a,s){var r=e*i+t*a+n*s-a*i-s*e-n*t;return r>-.001&&r<.001}var n=function(e,t,n,i){var a,s,r,o,l,c,p=defaultCurveSegments,h=0,d=[],f=[],m=bezierLengthPool.newElement();for(r=n.length,a=0;a<p;a+=1){for(l=a/(p-1),c=0,s=0;s<r;s+=1)o=bmPow(1-l,3)*e[s]+3*bmPow(1-l,2)*l*n[s]+3*(1-l)*bmPow(l,2)*i[s]+bmPow(l,3)*t[s],d[s]=o,null!==f[s]&&(c+=bmPow(d[s]-f[s],2)),f[s]=d[s];c&&(h+=c=bmSqrt(c)),m.percents[a]=l,m.lengths[a]=h}return m.addedLength=h,m};function i(e){this.segmentLength=0,this.points=new Array(e)}function a(e,t){this.partialLength=e,this.point=t}var s,r=(s={},function(e,n,r,o){var l=(e[0]+"_"+e[1]+"_"+n[0]+"_"+n[1]+"_"+r[0]+"_"+r[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!s[l]){var c,p,h,d,f,m,u,A=defaultCurveSegments,g=0,y=null;2===e.length&&(e[0]!==n[0]||e[1]!==n[1])&&t(e[0],e[1],n[0],n[1],e[0]+r[0],e[1]+r[1])&&t(e[0],e[1],n[0],n[1],n[0]+o[0],n[1]+o[1])&&(A=2);var b=new i(A);for(h=r.length,c=0;c<A;c+=1){for(u=createSizedArray(h),f=c/(A-1),m=0,p=0;p<h;p+=1)d=bmPow(1-f,3)*e[p]+3*bmPow(1-f,2)*f*(e[p]+r[p])+3*(1-f)*bmPow(f,2)*(n[p]+o[p])+bmPow(f,3)*n[p],u[p]=d,null!==y&&(m+=bmPow(u[p]-y[p],2));g+=m=bmSqrt(m),b.points[c]=new a(m,u),y=u}b.segmentLength=g,s[l]=b}return s[l]});function o(e,t){var n=t.percents,i=t.lengths,a=n.length,s=bmFloor((a-1)*e),r=e*t.addedLength,o=0;if(s===a-1||0===s||r===i[s])return n[s];for(var l=i[s]>r?-1:1,c=!0;c;)if(i[s]<=r&&i[s+1]>r?(o=(r-i[s])/(i[s+1]-i[s]),c=!1):s+=l,s<0||s>=a-1){if(s===a-1)return n[s];c=!1}return n[s]+(n[s+1]-n[s])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,i=segmentsLengthPool.newElement(),a=e.c,s=e.v,r=e.o,o=e.i,l=e._length,c=i.lengths,p=0;for(t=0;t<l-1;t+=1)c[t]=n(s[t],s[t+1],r[t],o[t+1]),p+=c[t].addedLength;return a&&l&&(c[t]=n(s[t],s[0],r[t],o[0]),p+=c[t].addedLength),i.totalLength=p,i},getNewSegment:function(t,n,i,a,s,r,c){s<0?s=0:s>1&&(s=1);var p,h=o(s,c),d=o(r=r>1?1:r,c),f=t.length,m=1-h,u=1-d,A=m*m*m,g=h*m*m*3,y=h*h*m*3,b=h*h*h,v=m*m*u,_=h*m*u+m*h*u+m*m*d,w=h*h*u+m*h*d+h*m*d,x=h*h*d,E=m*u*u,C=h*u*u+m*d*u+m*u*d,S=h*d*u+m*d*d+h*u*d,T=h*
vendor: 14,176 bytes, line 2
2d*d,B=u*u*u,k=d*u*u+u*d*u+u*u*d,I=d*d*u+u*d*d+d*u*d,M=d*d*d;for(p=0;p<f;p+=1)l[4*p]=e.round(1e3*(A*t[p]+g*i[p]+y*a[p]+b*n[p]))/1e3,l[4*p+1]=e.round(1e3*(v*t[p]+_*i[p]+w*a[p]+x*n[p]))/1e3,l[4*p+2]=e.round(1e3*(E*t[p]+C*i[p]+S*a[p]+T*n[p]))/1e3,l[4*p+3]=e.round(1e3*(B*t[p]+k*i[p]+I*a[p]+M*n[p]))/1e3;return l},getPointInSegment:function(t,n,i,a,s,r){var l=o(s,r),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*i[0]+(l*l*c+c*l*l+l*c*l)*a[0]+l*l*l*n[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*i[1]+(l*l*c+c*l*l+l*c*l)*a[1]+l*l*l*n[1]))/1e3]},buildBezierData:r,pointOnLine2D:t,pointOnLine3D:function(n,i,a,s,r,o,l,c,p){if(0===a&&0===o&&0===p)return t(n,i,s,r,l,c);var h,d=e.sqrt(e.pow(s-n,2)+e.pow(r-i,2)+e.pow(o-a,2)),f=e.sqrt(e.pow(l-n,2)+e.pow(c-i,2)+e.pow(p-a,2)),m=e.sqrt(e.pow(l-s,2)+e.pow(c-r,2)+e.pow(p-o,2));return(h=d>f?d>m?d-f-m:m-f-d:m>f?m-f-d:f-d-m)>-1e-4&&h<1e-4}}}!function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t){var n=(new Date).getTime(),i=Math.max(0,16-(n-e)),a=setTimeout((function(){t(n+i)}),i);return e=n+i,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}();var bez=bezFunction(),dataManager=function(){var e,t,n=1,i=[],a={onmessage:function(){},postMessage:function(t){e({data:t})}},r={postMessage:function(e){a.onmessage({data:e})}};function s(){t||((t=function(t){if(window.Worker&&window.Blob&&_useWebWorker){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),i=URL.createObjectURL(n);return new Worker(i)}return e=t,a}((function(e){if(r.dataManager||(r.dataManager=function(){function e(a,s){var r,o,l,c,p,d,f=a.length;for(o=0;o<f;o+=1)if("ks"in(r=a[o])&&!r.completed){if(r.completed=!0,r.tt&&(a[o-1].td=r.tt),r.hasMask){var m=r.masksProperties;for(c=m.length,l=0;l<c;l+=1)if(m[l].pt.k.i)i(m[l].pt.k);else for(d=m[l].pt.k.length,p=0;p<d;p+=1)m[l].pt.k[p].s&&i(m[l].pt.k[p].s[0]),m[l].pt.k[p].e&&i(m[l].pt.k[p].e[0])}0===r.ty?(r.layers=t(r.refId,s),e(r.layers,s)):4===r.ty?n(r.shapes):5===r.ty&&h(r)}}function t(e,t){for(var n=0,i=t.length;n<i;){if(t[n].id===e)return t[n].layers.__used?JSON.parse(JSON.stringify(t[n].layers)):(t[n].layers.__used=!0,t[n].layers);n+=1}return null}function n(e){var t,a,s;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)i(e[t].ks.k);else for(s=e[t].ks.k.length,a=0;a<s;a+=1)e[t].ks.k[a].s&&i(e[t].ks.k[a].s[0]),e[t].ks.k[a].e&&i(e[t].ks.k[a].e[0]);else"gr"===e[t].ty&&n(e[t].it)}function i(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function a(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var s,r=function(){var e=[4,4,14];function t(e){var t,n,i,a=e.length;for(t=0;t<a;t+=1)5===e[t].ty&&(void 0,i=(n=e[t]).t.d,n.t.d={k:[{s:i,t:0}]})}return function(n){if(a(e,n.v)&&(t(n.layers),n.assets)){var i,s=n.assets.length;for(i=0;i<s;i+=1)n.assets[i].layers&&t(n.assets[i].layers)}}}(),o=(s=[4,7,99],function(e){if(e.chars&&!a(s,e.v)){var t,n,r,o,l,c=e.chars.length;for(t=0;t<c;t+=1)if(e.chars[t].data&&e.chars[t].data.shapes)for(r=(l=e.chars[t].data.shapes[0].it).length,n=0;n<r;n+=1)(o=l[n].ks.k).__converted||(i(l[n].ks.k),o.__converted=!0)}}),l=function(){var e=[5,7,15];function t(e){var t,i,a=e.length;for(t=0;t<a;t+=1)5===e[t].ty&&(i=void 0,"number"==typeof(i=e[t].t.p).a&&(i.a={a:0,k:i.a}),"number"==typeof i.p&&(i.p={a:0,k:i.p}),"number"==typeof i.r&&(i.r={a:0,k:i.r}))}return function(n){if(a(e,n.v)&&(t(n.layers),n.assets)){var i,s=n.assets.length;for(i=0;i<s;i+=1)n.assets[i].layers&&t(n.assets[i].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var n,i,a,s=e.length;for(n=0;n<s;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(a=e[n].c.k.length,i=0;i<a;i+=1)e[n].c.k[i].s&&(e[n].c.k[i].s[0]/=255,e[n].c.k[i].s[1]/=255,e[n].c.k[i].s[2]/=255,e[n].c.k[i].s[3]/=255),e[n].c.k[i].e&&(e[n].c.k[i].e[0]/=255,e[n].c.k[i].e[1]/=255,e[n].c.k[i].e[2]/=255,e[n].c.k[i].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,i=e.length;for(n=0;n<i;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var i,s=t.assets.length;for(i=0;i<s;i+=1)t.assets[i].layers&&n(t.assets[i].layers)}}}(),p=function(){var e=[4,4,18];function t(e){var n,i,a;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(a=e[n].ks.k.length,i=0;i<a;i+=1)e[n].ks.k[i].s&&(e[n].ks.k[i].s[0].c=e[n].closed),e[n].ks.k[i].e&&(e[n].ks.k[i].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,i,a,s,r,o,l=e.length;for(i=0;i<l;i+=1){if((n=e[i]).hasMask){var c=n.masksProperties;for(s=c.length,a=0;a<s;a+=1)if(c[a].pt.k.i)c[a].pt.k.c=c[a].cl;else for(o=c[a].pt.k.length,r=0;r<o;r+=1)c[a].pt.k[r].s&&(c[a].pt.k[r].s[0].c=c[a].cl),c[a].pt.k[r].e&&(c[a].pt.k[r].e[0].c=c[a].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var i,s=t.assets.length;for(i=0;i<s;i+=1)t.assets[i].layers&&n(t.assets[i].layers)}}}();function h(e){0!==e.t.a.length||"m"in e.t.p||(e.singleShape=!0)}var d={completeData:function(t){t.__complete||(c(t),r(t),o(t),l(t),p(t),e(t.layers,t.assets),t.__complete=!0)}};return d.checkColors=c,d.checkChars=o,d.checkPathProperties=l,d.checkShapes=p,d.completeLayers=e,d}()),r.assetLoader||(r.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"==typeof e.response?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,n,i,a){var s,r=new XMLHttpRequest;try{r.responseType="json"}catch(e){}r.onreadystatechange=function(){if(4===r.readyState)if(200===r.status)s=e(r),i(s);else try{s=e(r),i(s)}catch(e){a&&a(e)}};try{r.open("GET",t,!0)}catch(e){r.open("GET",n+"/"+t,!0)}r.send()}}}()),"loadAnimation"===e.data.type)r.assetLoader.load(e.data.path,e.data.fullPath,(function(t){r.dataManager.completeData(t),r.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){r.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;r.dataManager.completeData(t),r.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&r.assetLoader.load(e.data.path,e.data.fullPath,(function(t){r.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){r.postMessage({id:e.data.id,status:"error"})}))}))).onmessage=function(e){var t=e.data,n=t.id,a=i[n];i[n]=null,"success"===t.status?a.onComplete(t.payload):a.onError&&a.onError()})}function o(e,t){var a="processId_"+(n+=1);return i[a]={onComplete:e,onError:t},a}return{loadAnimation:function(e,n,i){s();var a=o(n,i);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:a})},loadData:function(e,n,i){s();var a=o(n,i);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:a})},completeAnimation:function(e,n,i){s();var a=o(n,i);t.postMessage({type:"complete",animation:e,id:a})}}}();function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",i="normal",a=t.length,s=0;s<a;s+=1)switch(t[s].toLowerCase()){case"italic":i="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:i,weight:e.fWeight||n}}var FontManager=function(){var e={w:0,size:0,shapes:[]},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function a(e,t){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var i=createTag("span");i.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(i),document.body.appendChild(n);var a=i.offsetWidth;return i.style.fontFamily=function(e){var t,n=e.split(","),i=n.length,a=[];for(t=0;t<i;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&a.push(n[t]);return a.join(",")}(e)+", "+t,{node:i,w:a,parent:n}}function s(e,t){var n=createNS("text");n.style.fontSize="100px";var i=getFontProperties(t);return n.setAttribute("font-family",t.fFamily),n.setAttribute("font-style",i.style),n.setAttribute("font-weight",i.weight),n.textContent="1",t.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",t.fClass)):n.style.fontFamily=t.fFamily,e.appendChild(n),createTag("canvas").getContext("2d").font=t.fWeight+" "+t.fStyle+" 100px "+t.fFamily,n}var r=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return r.isModifier=function(e,t){var i=e.toString(16)+t.toString(16);return-1!==n.indexOf(i)},r.isZeroWidthJoiner=function(e,t){return t?e===i[0]&&t===i[1]:e===i[1]},r.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},r.prototype={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var n,i,a=e.length,s=this.chars.length;for(t=0;t<a;t+=1){for(n=0,i=!1;n<s;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(i=!0),n+=1;i||(this.chars.push(e[t]),s+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);var n,i=e.list,r=i.length,o=r;for(n=0;n<r;n+=1){var l,c,p=!0;if(i[n].loaded=!1,i[n].monoCase=a(i[n].fFamily,"monospace"),i[n].sansCase=a(i[n].fFamily,"sans-serif"),i[n].fPath){if("p"===i[n].fOrigin||3===i[n].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[n].fFamily+'"], style[f-origin="3"][f-family="'+i[n].fFamily+'"]')).length>0&&(p=!1),p){var h=createTag("style");h.setAttribute("f-forigin",i[n].fOrigin),h.setAttribute("f-origin",i[n].origin),h.setAttribute("f-family",i[n].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+i[n].fFamily+"; font-style: normal; src: url('"+i[n].fPath+"');}",t.appendChild(h)}}else if("g"===i[n].fOrigin||1===i[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(i[n].fPath)&&(p=!1);if(p){var d=createTag("link");d.setAttribute("f-forigin",i[n].fOrigin),d.setAttribute("f-origin",i[n].origin),d.type="text/css",d.rel="stylesheet",d.href=i[n].fPath,document.body.appendChild(d)}}else if("t"===i[n].fOrigin||2===i[n].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)i[n].fPath===l[c].src&&(p=!1);if(p){var f=createTag("link");f.setAttribute("f-forigin",i[n].fOrigin),f.setAttribute("f-origin",i[n].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",i[n].fPath),t.appendChild(f)}}}else i[n].loaded=!0,o-=1;i[n].helper=s(t,i[n]),i[n].cache={},this.fonts.push(i[n])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,n,i){for(var a=0,s=this.chars.length;a<s;){if(this.chars[a].ch===t&&this.chars[a].style===n&&this.chars[a].fFamily===i)return this.chars[a];a+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,n,i)),e},getFontByName:function(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,n){var i=this.getFontByName(t),a=e.charCodeAt(0);if(!i.cache[a+1]){var s=i.helper;if(" "===e){s.textContent="|"+e+"|";var r=s.getComputedTextLength();s.textContent="||";var o=s.getComputedTextLength();i.cache[a+1]=(r-o)/100}else s.textContent=e,i.cache[a+1]=s.getComputedTextLength()/100}return i.cache[a+1]*n},checkLoadedFonts:function(){var e,t,n,i=this.fonts.length,a=i;for(e=0;e<i;e+=1)this.fonts[e].loaded?a-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,n=this.fonts[e].monoCase.w,t.offsetWidth!==n?(a-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,n=this.fonts[e].sansCase.w,t.offsetWidth!==n&&(a-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==a&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},r}(),PropertyFactory=function(){var e=initialDefaultFrame,t=Math.abs;function n(e,t){var n,a=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var s,r,o,l,c,p,h,d,f,m=t.lastIndex,u=m,A=this.keyframes.length-1,g=!0;g;){if(s=this.keyframes[u],r=this.keyframes[u+1],u===A-1&&e>=r.t-a){s.h&&(s=r),m=0;break}if(r.t-a>e){m=u;break}u<A-1?u+=1:(m=0,g=!1)}o=this.keyframesMetadata[u]||{};var y,b=r.t-a,v=s.t-a;if(s.to){o.bezierData||(o.bezierData=bez.buildBezierData(s.s,r.s||s.e,s.to,s.ti));var _=o.bezierData;if(e>=b||e<v){var w=e>=b?_.points.length-1:0;for(c=_.points[w].point.length,l=0;l<c;l+=1)n[l]=_.points[w].point[l]}else{o.__fnct?f=o.__fnct:(f=BezierFactory.getBezierEasing(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,o.__fnct=f),p=f((e-v)/(b-v));var x,E=_.segmentLength*p,C=t.lastFrame<e&&t._lastKeyframeIndex===u?t._lastAddedLe
vendor: 6,418 bytes, line 2
2ngth:0;for(d=t.lastFrame<e&&t._lastKeyframeIndex===u?t._lastPoint:0,g=!0,h=_.points.length;g;){if(C+=_.points[d].partialLength,0===E||0===p||d===_.points.length-1){for(c=_.points[d].point.length,l=0;l<c;l+=1)n[l]=_.points[d].point[l];break}if(E>=C&&E<C+_.points[d+1].partialLength){for(x=(E-C)/_.points[d+1].partialLength,c=_.points[d].point.length,l=0;l<c;l+=1)n[l]=_.points[d].point[l]+(_.points[d+1].point[l]-_.points[d].point[l])*x;break}d<h-1?d+=1:g=!1}t._lastPoint=d,t._lastAddedLength=C-_.points[d].partialLength,t._lastKeyframeIndex=u}}else{var S,T,B,k,I;if(A=s.s.length,y=r.s||s.e,this.sh&&1!==s.h)e>=b?(n[0]=y[0],n[1]=y[1],n[2]=y[2]):e<=v?(n[0]=s.s[0],n[1]=s.s[1],n[2]=s.s[2]):function(e,t){var n=t[0],i=t[1],a=t[2],s=t[3],r=Math.atan2(2*i*s-2*n*a,1-2*i*i-2*a*a),o=Math.asin(2*n*i+2*a*s),l=Math.atan2(2*n*s-2*i*a,1-2*n*n-2*a*a);e[0]=r/degToRads,e[1]=o/degToRads,e[2]=l/degToRads}(n,function(e,t,n){var i,a,s,r,o,l=[],c=e[0],p=e[1],h=e[2],d=e[3],f=t[0],m=t[1],u=t[2],A=t[3];return(a=c*f+p*m+h*u+d*A)<0&&(a=-a,f=-f,m=-m,u=-u,A=-A),1-a>1e-6?(i=Math.acos(a),s=Math.sin(i),r=Math.sin((1-n)*i)/s,o=Math.sin(n*i)/s):(r=1-n,o=n),l[0]=r*c+o*f,l[1]=r*p+o*m,l[2]=r*h+o*u,l[3]=r*d+o*A,l}(i(s.s),i(y),(e-v)/(b-v)));else for(u=0;u<A;u+=1)1!==s.h&&(e>=b?p=1:e<v?p=0:(s.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[u]?f=o.__fnct[u]:(S=void 0===s.o.x[u]?s.o.x[0]:s.o.x[u],T=void 0===s.o.y[u]?s.o.y[0]:s.o.y[u],B=void 0===s.i.x[u]?s.i.x[0]:s.i.x[u],k=void 0===s.i.y[u]?s.i.y[0]:s.i.y[u],f=BezierFactory.getBezierEasing(S,T,B,k).get,o.__fnct[u]=f)):o.__fnct?f=o.__fnct:(S=s.o.x,T=s.o.y,B=s.i.x,k=s.i.y,f=BezierFactory.getBezierEasing(S,T,B,k).get,s.keyframeMetadata=f),p=f((e-v)/(b-v)))),y=r.s||s.e,I=1===s.h?s.s[u]:s.s[u]+(y[u]-s.s[u])*p,"multidimensional"===this.propType?n[u]=I:n=I}return t.lastIndex=m,n}function i(e){var t=e[0]*degToRads,n=e[1]*degToRads,i=e[2]*degToRads,a=Math.cos(t/2),s=Math.cos(n/2),r=Math.cos(i/2),o=Math.sin(t/2),l=Math.sin(n/2),c=Math.sin(i/2);return[o*l*r+a*s*c,o*s*r+a*l*c,a*l*r-o*s*c,a*s*r-o*l*c]}function a(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==e&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<n&&t<n))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(t,this._caching);this.pv=a}return this._caching.lastFrame=t,this.pv}function s(e){var n;if("unidimensional"===this.propType)n=e*this.mult,t(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var i=0,a=this.v.length;i<a;)n=e[i]*this.mult,t(this.v[i]-n)>1e-5&&(this.v[i]=n,this._mdf=!0),i+=1}function r(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(e,t,n,i){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=r,this.setVValue=s,this.addEffect=o}function c(e,t,n,i){var a;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var l=t.k.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),this.vel=createTypedArray("float32",l),a=0;a<l;a+=1)this.v[a]=t.k[a]*this.mult,this.pv[a]=t.k[a];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=r,this.setVValue=s,this.addEffect=o}function p(t,i,l,c){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=l||1,this.elem=t,this.container=c,this.comp=t.comp,this.v=e,this.pv=e,this._isFirstFrame=!0,this.getValue=r,this.setVValue=s,this.interpolateValue=n,this.effectsSequence=[a.bind(this)],this.addEffect=o}function h(t,i,l,c){var p;this.propType="multidimensional";var h,d,f,m,u=i.k.length;for(p=0;p<u-1;p+=1)i.k[p].to&&i.k[p].s&&i.k[p+1]&&i.k[p+1].s&&(h=i.k[p].s,d=i.k[p+1].s,f=i.k[p].to,m=i.k[p].ti,(2===h.length&&(h[0]!==d[0]||h[1]!==d[1])&&bez.pointOnLine2D(h[0],h[1],d[0],d[1],h[0]+f[0],h[1]+f[1])&&bez.pointOnLine2D(h[0],h[1],d[0],d[1],d[0]+m[0],d[1]+m[1])||3===h.length&&(h[0]!==d[0]||h[1]!==d[1]||h[2]!==d[2])&&bez.pointOnLine3D(h[0],h[1],h[2],d[0],d[1],d[2],h[0]+f[0],h[1]+f[1],h[2]+f[2])&&bez.pointOnLine3D(h[0],h[1],h[2],d[0],d[1],d[2],d[0]+m[0],d[1]+m[1],d[2]+m[2]))&&(i.k[p].to=null,i.k[p].ti=null),h[0]===d[0]&&h[1]===d[1]&&0===f[0]&&0===f[1]&&0===m[0]&&0===m[1]&&(2===h.length||h[2]===d[2]&&0===f[2]&&0===m[2])&&(i.k[p].to=null,i.k[p].ti=null));this.effectsSequence=[a.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=t,this.container=c,this.comp=t.comp,this.getValue=r,this.setVValue=s,this.interpolateValue=n,this.frameId=-1;var A=i.k[0].s.length;for(this.v=createTypedArray("float32",A),this.pv=createTypedArray("float32",A),p=0;p<A;p+=1)this.v[p]=e,this.pv[p]=e;this._caching={lastFrame:e,lastIndex:0,value:createTypedArray("float32",A)},this.addEffect=o}return{getProp:function(e,t,n,i,a){var s;if(t.k.length)if("number"==typeof t.k[0])s=new c(e,t,i,a);else switch(n){case 0:s=new p(e,t,i,a);break;case 1:s=new h(e,t,i,a)}else s=new l(e,t,i,a);return s.effectsSequence.length&&a.addDynamicProperty(s),s}}}(),TransformPropertyFactory=function(){var e=[0,0];function t(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]}
vendor: 5,512 bytes, line 2
2,1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var i,a=t.or.k.length;for(i=0;i<a;i+=1)t.or.k[i].to=null,t.or.k[i].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var i,a;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),a=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),a=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(i=this.p.pv,a=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],a=[];var s=this.px,r=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(i[0]=s.getValueAtTime((s.keyframes[0].t+.01)/n,0),i[1]=r.getValueAtTime((r.keyframes[0].t+.01)/n,0),a[0]=s.getValueAtTime(s.keyframes[0].t/n,0),a[1]=r.getValueAtTime(r.keyframes[0].t/n,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(i[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/n,0),i[1]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/n,0),a[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/n,0),a[1]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/n,0)):(i=[s.pv,r.pv],a[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/n,s.offsetTime),a[1]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/n,r.offsetTime))}else i=a=e;this.v.rotate(-Math.atan2(i[1]-a[1],i[0]-a[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,n,i){return new t(e,n,i)}}}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;
vendor: 5,552 bytes, line 2
2)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,i,a){var s;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[i]||s[i]&&!a)&&(s[i]=pointPool.newElement()),s[i][0]=e,s[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,i,a,s,r,o){this.setXYAt(e,t,"v",r,o),this.setXYAt(n,i,"o",r,o),this.setXYAt(a,s,"i",r,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,i=this.i,a=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),a=1);var s,r=this._length-1,o=this._length;for(s=a;s<o;s+=1)e.setTripleAt(t[r][0],t[r][1],i[r][0],i[r][1],n[r][0],n[r][1],s,!1),r-=1;return e};var ShapePropertyFactory=function(){function e(e,t,n){var i,a,s,r,o,l,c,p,h,d=n.lastIndex,f=this.keyframes;if(e<f[0].t-this.offsetTime)i=f[0].s[0],s=!0,d=0;else if(e>=f[f.length-1].t-this.offsetTime)i=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],s=!0;else{for(var m,u,A,g=d,y=f.length-1,b=!0;b&&(m=f[g],!((u=f[g+1]).t-this.offsetTime>e));)g<y-1?g+=1:b=!1;if(A=this.keyframesMetadata[g]||{},d=g,!(s=1===m.h)){if(e>=u.t-this.offsetTime)p=1;else if(e<m.t-this.offsetTime)p=0;else{var v;A.__fnct?v=A.__fnct:(v=BezierFactory.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,A.__fnct=v),p=v((e-(m.t-this.offsetTime))/(u.t-this.offsetTime-(m.t-this.offsetTime)))}a=u.s?u.s[0]:m.e[0]}i=m.s[0]}for(l=t._length,c=i.i[0].length,n.lastIndex=d,r=0;r<l;r+=1)for(o=0;o<c;o+=1)h=s?i.i[r][o]:i.i[r][o]+(a.i[r][o]-i.i[r][o])*p,t.i[r][o]=h,h=s?i.o[r][o]:i.o[r][o]+(a.o[r][o]-i.o[r][o])*p,t.o[r][o]=h,h=s?i.v[r][o]:i.v[r][o]+(a.v[r][o]-i.v[r][o])*p,t.v[r][o]=h}function t(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return-999999!==i&&(i<t&&e<t||i>n&&e>n)||(this._caching.lastIndex=i<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function n(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,i=e._length;for(n=0;n<i;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(e,t,i){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var a=3===i?t.pt.k:t.ks.k;this.v=shapePool.clone(a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function r(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function o(e,i,a){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===a?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=n,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[t.bind(this)]}s.prototype.interpolateShape=e,s.prototype.getValue=a,s.prototype.setVValue=i,s.prototype.addEffect=r,o.prototype.getValue=a,o.prototype.interpolateShape=e,o.prototype.setVValue=i,o.prototype.addEffect=r;var l=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],i=this.s.v[0]/2,a=this.s.v[1]/2,s=3!==this.d,r=this.v;r.v[0][0]=t,r.v[0][1]=n-a,r.v[1][0]=s?t+i:t-i,r.v[1][1]=n,r.v[2][0]=t,r.v[2][1]=n+a,r.v[3][0]=s?t-i:t+i,r.v[3][1]=n,r.i[0][0]=s?t-i*e:t+i*e,r.i[0][1]=n-a,r.i[1][0]=s?t+i:t-i,r.i[
vendor: 7,157 bytes, line 2
21][1]=n-a*e,r.i[2][0]=s?t+i*e:t-i*e,r.i[2][1]=n+a,r.i[3][0]=s?t-i:t+i,r.i[3][1]=n+a*e,r.o[0][0]=s?t+i*e:t-i*e,r.o[0][1]=n-a,r.o[1][0]=s?t+i:t-i,r.o[1][1]=n+a*e,r.o[2][0]=s?t-i*e:t+i*e,r.o[2][1]=n+a,r.o[3][0]=s?t-i:t+i,r.o[3][1]=n-a*e}},extendPrototype([DynamicPropertyContainer],t),t}(),c=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,i,a=2*Math.floor(this.pt.v),s=2*Math.PI/a,r=!0,o=this.or.v,l=this.ir.v,c=this.os.v,p=this.is.v,h=2*Math.PI*o/(2*a),d=2*Math.PI*l/(2*a),f=-Math.PI/2;f+=this.r.v;var m=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<a;e+=1){n=r?c:p,i=r?h:d;var u=(t=r?o:l)*Math.cos(f),A=t*Math.sin(f),g=0===u&&0===A?0:A/Math.sqrt(u*u+A*A),y=0===u&&0===A?0:-u/Math.sqrt(u*u+A*A);u+=+this.p.v[0],A+=+this.p.v[1],this.v.setTripleAt(u,A,u-g*i*n*m,A-y*i*n*m,u+g*i*n*m,A+y*i*n*m,e,!0),r=!r,f+=s*m}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,i=this.or.v,a=this.os.v,s=2*Math.PI*i/(4*t),r=.5*-Math.PI,o=3===this.data.d?-1:1;for(r+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=i*Math.cos(r),c=i*Math.sin(r),p=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),h=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-p*s*a*o,c-h*s*a*o,l+p*s*a*o,c+h*s*a*o,e,!0),r+=n*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),p=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,a=bmMin(n,i,this.r.v),s=a*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-i+a,e+n,t-i+a,e+n,t-i+s,0,!0),this.v.setTripleAt(e+n,t+i-a,e+n,t+i-s,e+n,t+i-a,1,!0),0!==a?(this.v.setTripleAt(e+n-a,t+i,e+n-a,t+i,e+n-s,t+i,2,!0),this.v.setTripleAt(e-n+a,t+i,e-n+s,t+i,e-n+a,t+i,3,!0),this.v.setTripleAt(e-n,t+i-a,e-n,t+i-a,e-n,t+i-s,4,!0),this.v.setTripleAt(e-n,t-i+a,e-n,t-i+s,e-n,t-i+a,5,!0),this.v.setTripleAt(e-n+a,t-i,e-n+a,t-i,e-n+s,t-i,6,!0),this.v.setTripleAt(e+n-a,t-i,e+n-s,t-i,e+n-a,t-i,7,!0)):(this.v.setTripleAt(e-n,t+i,e-n+s,t+i,e-n,t+i,2),this.v.setTripleAt(e-n,t-i,e-n,t-i+s,e-n,t-i,3))):(this.v.setTripleAt(e+n,t-i+a,e+n,t-i+s,e+n,t-i+a,0,!0),0!==a?(this.v.setTripleAt(e+n-a,t-i,e+n-a,t-i,e+n-s,t-i,1,!0),this.v.setTripleAt(e-n+a,t-i,e-n+s,t-i,e-n+a,t-i,2,!0),this.v.setTripleAt(e-n,t-i+a,e-n,t-i+a,e-n,t-i+s,3,!0),this.v.setTripleAt(e-n,t+i-a,e-n,t+i-s,e-n,t+i-a,4,!0),this.v.setTripleAt(e-n+a,t+i,e-n+a,t+i,e-n+s,t+i,5,!0),this.v.setTripleAt(e+n-a,t+i,e+n-s,t+i,e+n-a,t+i,6,!0),this.v.setTripleAt(e+n,t+i-a,e+n,t+i-a,e+n,t+i-s,7,!0)):(this.v.setTripleAt(e-n,t-i,e-n+s,t-i,e-n,t-i,1,!0),this.v.setTripleAt(e-n,t+i,e-n,t+i-s,e-n,t+i,2,!0),this.v.setTripleAt(e+n,t+i,e+n-s,t+i,e+n,t+i,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],e),e}();return{getShapeProp:function(e,t,n){var i;return 3===n||4===n?i=(3===n?t.pt:t.ks).k.length?new o(e,t,n):new s(e,t,n):5===n?i=new p(e,t):6===n?i=new l(e,t):7===n&&(i=new c(e,t)),i.k&&e.addDynamicProperty(i),i},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return o}}}(),ShapeModifiers=(ob={},modifiers={},ob.registerModifier=function(e,t){modifiers[e]||(modifiers[e]=t)},ob.getModifier=function(e,t,n){return new modifiers[e](t,n)},ob),ob,modifiers;function ShapeModifier(){}function TrimModifier(){}function RoundCornersModifier(){}function PuckerAndBloatModifier(){}function RepeaterModifier(){}function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}function DashProperty(e,t,n,i){var a;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,r=t.length||0;for(a=0;a<r;a+=1)s=PropertyFactory.getProp(e,t[a].v,0,0,this),this.k=s.k||this.k,this.dataProps[a]={n:t[a].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var i=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=Pro
vendor: 4,178 bytes, line 2
2pertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,i,a){var s=[];t<=1?s.push({s:e,e:t}):e>=1?s.push({s:e-1,e:t-1}):(s.push({s:e,e:1}),s.push({s:0,e:t-1}));var r,o,l=[],c=s.length;for(r=0;r<c;r+=1){var p,h;(o=s[r]).e*a<i||o.s*a>i+n||(p=o.s*a<=i?0:(o.s*a-i)/n,h=o.e*a>=i+n?1:(o.e*a-i)/n,l.push([p,h]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n,i,a;if(this._mdf||e){var s=this.o.v%360/360;if(s<0&&(s+=1),(t=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(n=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var r=t;t=n,n=r}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var o,l,c,p,h,d=this.shapes.length,f=0;if(n===t)for(a=0;a<d;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection,this._mdf&&(this.shapes[a].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(a=0;a<d;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var m,u,A=[];for(a=0;a<d;a+=1)if((m=this.shapes[a]).shape._mdf||this._mdf||e||2===this.m){if(l=(i=m.shape.paths)._length,h=0,!m.shape._mdf&&m.pathsData.length)h=m.totalShapeLength;else{for(c=this.releasePathsData(m.pathsData),o=0;o<l;o+=1)p=bez.getSegmentsLength(i.shapes[o]),c.push(p),h+=p.totalLength;m.totalShapeLength=h,m.pathsData=c}f+=h,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var g,y=t,b=n,v=0;for(a=d-1;a>=0;a-=1)if((m=this.shapes[a]).shape._mdf){for((u=m.localShapeCollection).releaseShapes(),2===this.m&&d>1?(g=this.calculateShapeEdges(t,n,m.totalShapeLength,v,f),v+=m.totalShapeLength):g=[[y,b]],l=g.length,o=0;o<l;o+=1){y=g[o][0],b=g[o][1],A.length=0,b<=1?A.push({s:m.totalShapeLength*y,e:m.totalShapeLength*b}):y>=1?A.push({s:m.totalShapeLength*(y-1),e:m.totalShapeLength*(b-1)}):(A.push({s:m.totalShapeLength*y,e:m.totalShapeLength}),A.push({s:0,e:m.totalShapeLength*(b-1)}));var _=this.addShapes(m,A[0]);if(A[0].s!==A[0].e){if(A.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var w=_.pop();this.addPaths(_,u),_=this.addShapes(m,A[1],w)}else this.addPaths(_,u),_=this.addShapes(m,A[1]);this.addPaths(_,u)}}m.shape.paths=u}}},TrimModifier.prototype.addPaths=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,i,a,s,r){a.setXYAt(t[0],t[1],"o",s),a.setXYAt(n[0],n[1],"i",s+1),r&&a.setXYAt(e[0],e[1],"v",s),a.setXYAt(i[0],i[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,i){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),i&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var i,a,s,r,o,l,c,p,h=e.pathsData,d=e.shape.paths.shapes,f=e.shape.paths._length,m=0,u=[],A=!0;for(n?(o=n._length,p=n._length):(n=shapePool.newElement(),o=0,p=0),u.push(n),i=0;i<f;i+=1){for(l=h[i].lengths,n.c=d[i].c,s=d[i].c?l.length:l.length+1,a=1;a<s;a+=1)if(m+(r=l[a-1]).addedLength<t.s)m+=r.addedLength,n.c=!1;else{if(m>t.e){n.c=!1;break}t.s<=m&&t.e>=m+r.addedLength?(this.addSegment(d[i].v[a-1],d[i].o[a-1],d[i].i[a],d[i].v[a],n,o,A),A=!1):(c=bez.getNewSegment(d[i].v[a-1],d[i].v[a],d[i].o[a-1],d[i].i[a],(t.s-m)/r.addedLength,(t.e-m)/r.addedLength,l[a-1]),this.addSegmentFromArray(c,n,o,A),A=!1,n.c=!1),m+=r.addedLength,o+=1}if(d[i].c&&l.length){if(r=l[a-1],m<=t.e){var g=l[a-1].addedLength;t.s<=m&&t.e>=m+g?(this.addSegment(d[i].v[a-1],d[i].o[a-1],d[i].i[0],d[i].v[0],n,o,A),A=!1):(c=bez.getNewSegment(d[i].v[a-1],d[i].v[0],d[i].o[a-1],d[i].i[0],(t.s-m)/g,(t.e-m)/g,l[a-1]),this.addSegmentFromArray(c,n,o,A),A=!1,n.c=!1)}else n.c=!1;m+=r.addedLength,o+=1}
vendor: 11,834 bytes, line 2
2if(n._length&&(n.setXYAt(n.v[p][0],n.v[p][1],"i",p),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),m>t.e)break;i<f-1&&(n=shapePool.newElement(),A=!0,u.push(n),o=0)}return u},ShapeModifiers.registerModifier("tm",TrimModifier),extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n,i=shapePool.newElement();i.c=e.c;var a,s,r,o,l,c,p,h,d,f,m,u,A=e._length,g=0;for(n=0;n<A;n+=1)a=e.v[n],r=e.o[n],s=e.i[n],a[0]===r[0]&&a[1]===r[1]&&a[0]===s[0]&&a[1]===s[1]?0!==n&&n!==A-1||e.c?(o=0===n?e.v[A-1]:e.v[n-1],c=(l=Math.sqrt(Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)))?Math.min(l/2,t)/l:0,p=m=a[0]+(o[0]-a[0])*c,h=u=a[1]-(a[1]-o[1])*c,d=p-(p-a[0])*roundCorner,f=h-(h-a[1])*roundCorner,i.setTripleAt(p,h,d,f,m,u,g),g+=1,o=n===A-1?e.v[0]:e.v[n+1],c=(l=Math.sqrt(Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)))?Math.min(l/2,t)/l:0,p=d=a[0]+(o[0]-a[0])*c,h=f=a[1]+(o[1]-a[1])*c,m=p-(p-a[0])*roundCorner,u=h-(h-a[1])*roundCorner,i.setTripleAt(p,h,d,f,m,u,g),g+=1):(i.setTripleAt(a[0],a[1],r[0],r[1],s[0],s[1],g),g+=1):(i.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],g),g+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var t,n,i,a,s,r,o=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<o;n+=1){if(r=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||e)for(r.releaseShapes(),s.shape._mdf=!0,t=s.shape.paths.shapes,a=s.shape.paths._length,i=0;i<a;i+=1)r.addShape(this.processPath(t[i],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("rd",RoundCornersModifier),extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,i=[0,0],a=e._length,s=0;for(s=0;s<a;s+=1)i[0]+=e.v[s][0],i[1]+=e.v[s][1];i[0]/=a,i[1]/=a;var r,o,l,c,p,h,d=shapePool.newElement();for(d.c=e.c,s=0;s<a;s+=1)r=e.v[s][0]+(i[0]-e.v[s][0])*n,o=e.v[s][1]+(i[1]-e.v[s][1])*n,l=e.o[s][0]+(i[0]-e.o[s][0])*-n,c=e.o[s][1]+(i[1]-e.o[s][1])*-n,p=e.i[s][0]+(i[0]-e.i[s][0])*-n,h=e.i[s][1]+(i[1]-e.i[s][1])*-n,d.setTripleAt(r,o,l,c,p,h,s);return d},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,i,a,s,r,o=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<o;n+=1){if(r=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||e)for(r.releaseShapes(),s.shape._mdf=!0,t=s.shape.paths.shapes,a=s.shape.paths._length,i=0;i<a;i+=1)r.addShape(this.processPath(t[i],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,i,a,s){var r=s?-1:1,o=i.s.v[0]+(1-i.s.v[0])*(1-a),l=i.s.v[1]+(1-i.s.v[1])*(1-a);e.translate(i.p.v[0]*r*a,i.p.v[1]*r*a,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*r*a),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.scale(s?1/o:o,s?1/l:l),n.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,i){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,i,a,s,r=!1;if(this._mdf||e){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),r=!0}for(s=0,i=0;i<=this._groups.length-1;i+=1){if(o=s<l,this._groups[i]._render=o,this.changeGroupRender(this._groups[i].it,o),!o){var p=this.elemsData[i].it,h=p[p.length-1];0!==h.transform.op.v?(h.transform.op._mdf=!0,h.transform.op.v=0):h.transform.op._mdf=!1}s+=1}this._currentCopies=l;var d=this.o.v,f=d%1,m=d>0?Math.floor(d):Math.ceil(d),u=this.pMatrix.props,A=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,v=0;if(d>0){for(;v<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),v+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),v+=f)}else if(d<0){for(;v>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),v-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),v-=f)}for(i=1===this.data.m?0:this._currentCopies-1,a=1===this.data.m?1:-1,s=this._currentCopies;s;){if(b=(n=(t=this.elemsData[i].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==v){for((0!==i&&1===a||i!==this._currentCopies-1&&-1===a)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(A[0],A[1],A[2],A[3],A[4],A[5],A[6],A[7],A[8],A[9],A[10],A[11],A[12],A[13],A[14],A[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),y=0;y<b;y+=1)n[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)n[y]=this.matrix.props[y];v+=1,s-=1,i+=a}}else for(s=this._currentCopies,i=0,a=1;s;)n=(t=this.elemsData[i].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,s-=1,i+=a;return r},RepeaterModifier.prototype.addShape=function(){},ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,i=this.o.length/2;n<i;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,i,a=4*this.data.p;for(t=0;t<a;t+=1)n=t%4==0?100:255,i=Math.round(this.prop.v[t]*n),this.c[t]!==i&&(this.c[t]=i,this._cmdf=!e);if(this.o.length)for(a=this.prop.v.length,t=4*this.data.p;t<a;t+=1)n=t%2==0?100:1,i=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==i&&(this.o[t-4*this.data.p]=i,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);var buildShapeString=function(e,t,n,i){if(0===t)return"";var a,s=e.o,r=e.i,o=e.v,l=" M"+i.applyToPointStringified(o[0][0],o[0][1]);for(a=1;a<t;a+=1)l+=" C"+i.applyToPointStringified(s[a-1][0],s[a-1][1])+" "+i.applyToPointStringified(r[a][0],r[a][1])+" "+i.applyToPointStringified(o[a][0],o[a][1]);return n&&t&&(l+=" C"+i.applyToPointStringified(s[a-1][0],s[a-1][1])+" "+i.applyToPointStringified(r[0][0],r[0][1])+" "+i.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):Howl?new Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(e,t,n){var i="";if(e.e)i=e.p;else if(t){var a=e.p;-1!==a.indexOf("images/")&&(a=a.split("/")[1]),i=t+a}else i=n,i+=e.u?e.u:"",i+=e.p;return i}function a(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}
vendor: 4,847 bytes, line 2
2.bind(this),50)}function s(e){var t={assetData:e},n=i(e,this.assetsPath,this.path);return dataManager.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function r(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=a.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return r.prototype={loadAssets:function(e,t){var n;this.imagesLoadedCb=t;var i=e.length;for(n=0;n<i;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var n=i(t,this.assetsPath,this.path),a=createTag("img");a.crossOrigin="anonymous",a.addEventListener("load",this._imageLoaded,!1),a.addEventListener("error",function(){s.img=e,this._imageLoaded()}.bind(this),!1),a.src=n;var s={img:a,assetData:t};return s},createImageData:function(t){var n=i(t,this.assetsPath,this.path),a=createNS("image");isSafari?this.testImageLoaded(a):a.addEventListener("load",this._imageLoaded,!1),a.addEventListener("error",function(){s.img=e,this._imageLoaded()}.bind(this),!1),a.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(a):this._elementHelper.appendChild(a);var s={img:a,assetData:t};return s},imageLoaded:t,footageLoaded:n,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},r}(),featureSupport=(t={maskType:!0},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t),filtersFactory=function(){var e={createFilter:function(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),t;function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function TextAnimatorDataProperty(e,t,n){var i={propType:!1},a=PropertyFactory.getProp,s=t.a;this.a={r:s.r?a(e,s.r,0,degToRads,n):i,rx:s.rx?a(e,s.rx,0,degToRads,n):i,ry:s.ry?a(e,s.ry,0,degToRads,n):i,sk:s.sk?a(e,s.sk,0,degToRads,n):i,sa:s.sa?a(e,s.sa,0,degToRads,n):i,s:s.s?a(e,s.s,1,.01,n):i,a:s.a?a(e,s.a,1,0,n):i,o:s.o?a(e,s.o,0,.01,n):i,p:s.p?a(e,s.p,1,0,n):i,sw:s.sw?a(e,s.sw,0,0,n):i,sc:s.sc?a(e,s.sc,1,0,n):i,fc:s.fc?a(e,s.fc,1,0,n):i,fh:s.fh?a(e,s.fh,0,0,n):i,fs:s.fs?a(e,s.fs,0,.01,n):i,fb:s.fb?a(e,s.fb,0,.01,n):i,t:s.t?a(e,s.t,0,0,n):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function LetterProps(e,t,n,i,a,s){this.o=e,this.sw=t,this.sc=n,this.fc=i,this.m=a,this.p=s,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!i,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,i=PropertyFactory.getProp;for(e=0;e<n;
vendor: 10,171 bytes, line 2
2e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,i,a,s,r,o,l,c,p,h,d,f,m,u,A,g,y,b,v,_=this._moreOptions.alignment.v,w=this._animatorsData,x=this._textData,E=this.mHelper,C=this._renderType,S=this.renderedLetters.length,T=e.l;if(this._hasMaskedPath){if(v=this._pathData.m,!this._pathData.n||this._pathData._mdf){var B,k=v.v;for(this._pathData.r.v&&(k=k.reverse()),r={tLength:0,segments:[]},s=k._length-1,g=0,a=0;a<s;a+=1)B=bez.buildBezierData(k.v[a],k.v[a+1],[k.o[a][0]-k.v[a][0],k.o[a][1]-k.v[a][1]],[k.i[a+1][0]-k.v[a+1][0],k.i[a+1][1]-k.v[a+1][1]]),r.tLength+=B.segmentLength,r.segments.push(B),g+=B.segmentLength;a=s,v.v.c&&(B=bez.buildBezierData(k.v[a],k.v[0],[k.o[a][0]-k.v[a][0],k.o[a][1]-k.v[a][1]],[k.i[0][0]-k.v[0][0],k.i[0][1]-k.v[0][1]]),r.tLength+=B.segmentLength,r.segments.push(B),g+=B.segmentLength),this._pathData.pi=r}if(r=this._pathData.pi,o=this._pathData.f.v,d=0,h=1,c=0,p=!0,u=r.segments,o<0&&v.v.c)for(r.tLength<Math.abs(o)&&(o=-Math.abs(o)%r.tLength),h=(m=u[d=u.length-1].points).length-1;o<0;)o+=m[h].partialLength,(h-=1)<0&&(h=(m=u[d-=1].points).length-1);f=(m=u[d].points)[h-1],A=(l=m[h]).partialLength}s=T.length,n=0,i=0;var I,M,P,D,U,O=1.2*e.finalSize*.714,F=!0;P=w.length;var R,N,L,z,H,Q,V,q,j,G,K,$,Y=-1,W=o,X=d,J=h,Z=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var rt=0,ne=0,re=2===e.j?-.5:-1,ie=0,se=!0;for(a=0;a<s;a+=1)if(T[a].n){for(rt&&(rt+=ne);ie<a;)T[ie].animatorJustifyOffset=rt,ie+=1;rt=0,se=!0}else{for(M=0;M<P;M+=1)(I=w[M].a).t.propType&&(se&&2===e.j&&(ne+=I.t.v*re),(U=w[M].s.getMult(T[a].anIndexes[M],x.a[M].s.totalChars)).length?rt+=I.t.v*U[0]*re:rt+=I.t.v*U*re);se=!1}for(rt&&(rt+=ne);ie<a;)T[ie].animatorJustifyOffset=rt,ie+=1}for(a=0;a<s;a+=1){if(E.reset(),z=1,T[a].n)n=0,i+=e.yOffset,i+=F?1:0,o=W,F=!1,this._hasMaskedPath&&(h=J,f=(m=u[d=X].points)[h-1],A=(l=m[h]).partialLength,c=0),ee="",K="",j="",$="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==T[a].line){switch(e.j){case 1:o+=g-e.lineWidths[T[a].line];break;case 2:o+=(g-e.lineWidths[T[a].line])/2}Z=T[a].line}Y!==T[a].ind&&(T[Y]&&(o+=T[Y].extra),o+=T[a].an/2,Y=T[a].ind),o+=_[0]*T[a].an*.005;var ae=0;for(M=0;M<P;M+=1)(I=w[M].a).p.propType&&((U=w[M].s.getMult(T[a].anIndexes[M],x.a[M].s.totalChars)).length?ae+=I.p.v[0]*U[0]:ae+=I.p.v[0]*U),I.a.propType&&((U=w[M].s.getMult(T[a].anIndexes[M],x.a[M].s.totalChars)).length?ae+=I.a.v[0]*U[0]:ae+=I.a.v[0]*U);for(p=!0,this._pathData.a.v&&(o=.5*T[0].an+(g-this._pathData.f.v-.5*T[0].an-.5*T[T.length-1].an)*Y/(s-1),o+=this._pathData.f.v);p;)c+A>=o+ae||!m?(y=(o+ae-c)/l.partialLength,N=f.point[0]+(l.point[0]-f.point[0])*y,L=f.point[1]+(l.point[1]-f.point[1])*y,E.translate(-_[0]*T[a].an*.005,-_[1]*O*.01),p=!1):m&&(c+=l.partialLength,(h+=1)>=m.length&&(h=0,u[d+=1]?m=u[d].points:v.v.c?(h=0,m=u[d=0].points):(c-=l.partialLength,m=null)),m&&(f=l,A=(l=m[h]).partialLength));R=T[a].an/2-T[a].add,E.translate(-R,0,0)}else R=T[a].an/2-T[a].add,E.translate(-R,0,0),E.translate(-_[0]*T[a].an*.005,-_[1]*O*.01,0);for(M=0;M<P;M+=1)(I=w[M].a).t.propType&&(U=w[M].s.getMult(T[a].anIndexes[M],x.a[M].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?U.length?o+=I.t.v*U[0]:o+=I.t.v*U:U.length?n+=I.t.v*U[0]:n+=I.t.v*U));for(e.strokeWidthAnim&&(Q=e.sw||0),e.strokeColorAnim&&(H=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(V=[e.fc[0],e.fc[1],e.fc[2]]),M=0;M<P;M+=1)(I=w[M].a).a.propType&&((U=w[M].s.getMult(T[a].anIndexes[M],x.a[M].s.totalChars)).length?E.translate(-I.a.v[0]*U[0],-I.a.v[1]*U[1],I.a.v[2]*U[2]):E.translate(-I.a.v[0]*U,-I.a.v[1]*U,I.a.v[2]*U));for(M=0;M<P;M+=1)(I=w[M].a).s.propType&&((U=w[M].s.getMult(T[a].anIndexes[M],x.a[M].s.totalChars)).length?E.scale(1+(I.s.v[0]-1)*U[0],1+(I.s.v[1]-1)*U[1],1):E.scale(1+(I.s.v[0]-1)*U,1+(I.s.v[1]-1)*U,1));for(M=0;M<P;M+=1){if(I=w[M].a,U=w[M].s.getMult(T[a].anIndexes[M],x.a[M].s.totalChars),I.sk.propType&&(U.length?E.skewFromAxis(-I.sk.v*U[0],I.sa.v*U[1]):E.skewFromAxis(-I.sk.v*U,I.sa.v*U)),I.r.propType&&(U.length?E.rotateZ(-I.r.v*U[2]):E.rotateZ(-I.r.v*U)),I.ry.propType&&(U.length?E.rotateY(I.ry.v*U[1]):E.rotateY(I.ry.v*U)),I.rx.propType&&(U.length?E.rotateX(I.rx.v*U[0]):E.rotateX(I.rx.v*U)),I.o.propType&&(U.length?z+=(I.o.v*U[0]-z)*U[0]:z+=(I.o.v*U-z)*U),e.strokeWidthAnim&&I.sw.propType&&(U.length?Q+=I.sw.v*U[0]:Q+=I.sw.v*U),e.strokeColorAnim&&I.sc.propType)for(q=0;q<3;q+=1)U.length?H[q]+=(I.sc.v[q]-H[q])*U[0]:H[q]+=(I.sc.v[q]-H[q])*U;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(q=0;q<3;q+=1)U.length?V[q]+=(I.fc.v[q]-V[q])*U[0]:V[q]+=(I.fc.v[q]-V[q])*U;I.fh.propType&&(V=U.length?addHueToRGB(V,I.fh.v*U[0]):addHueToRGB(V,I.fh.v*U)),I.fs.propType&&(V=U.length?addSaturationToRGB(V,I.fs.v*U[0]):addSaturationToRGB(V,I.fs.v*U)),I.fb.propType&&(V=U.length?addBrightnessToRGB(V,I.fb.v*U[0]):addBrightnessToRGB(V,I.fb.v*U))}}for(M=0;M<P;M+=1)(I=w[M].a).p.propType&&(U=w[M].s.getMult(T[a].anIndexes[M],x.a[M].s.totalChars),this._hasMaskedPath?U.length?E.translate(0,I.p.v[1]*U[0],-I.p.v[2]*U[1]):E.translate(0,I.p.v[1]*U,-I.p.v[2]*U):U.length?E.translate(I.p.v[0]*U[0],I.p.v[1]*U[1],-I.p.v[2]*U[2]):E.translate(I.p.v[0]*U,I.p.v[1]*U,-I.p.v[2]*U));if(e.strokeWidthAnim&&(j=Q<0?0:Q),e.strokeColorAnim&&(G="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),e.fillColorAnim&&e.fc&&(K="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),this._hasMaskedPath){if(E.translate(0,-e.ls),E.translate(0,_[1]*O*.01+i,0),this._pathData.p.v){b=(l.point[1]-f.point[1])/(l.point[0]-f.point[0]);var oe=180*Math.atan(b)/Math.PI;l.point[0]<f.point[0]&&(oe+=180),E.rotate(-oe*Math.PI/180)}E.translate(N,L,0),o-=_[0]*T[a].an*.005,T[a+1]&&Y!==T[a+1].ind&&(o+=T[a].an/2,o+=.001*e.tr*e.finalSize)}else{switch(E.translate(n,i,0),e.ps&&E.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:E.translate(T[a].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[a].line]),0,0);break;case 2:E.translate(T[a].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[a].line])/2,0,0)}E.translate(0,-e.ls),E.translate(R,0,0),E.translate(_[0]*T[a].an*.005,_[1]*O*.01,0),n+=T[a].l+.001*e.tr*e.finalSize}"html"===C?ee=E.toCSS():"svg"===C?ee=E.to2dCSS():te=[E.props[0],E.props[1],E.props[2],E.props[3],E.props[4],E.props[5],E.props[6],E.props[7],E.props[8],E.props[9],E.props[10],E.props[11],E.props[12],E.props[13],E.props[14],E.props[15]],$=z}S<=a?(D=new LetterProps($,j,G,K,ee,te),this.renderedLetters.push(D),S+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[a],this.lettersChangedFlag=D.update($,j,G,K,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),LetterProps.prototype.update=function(e,t,n,i,a,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var r=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,r=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,r=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,r=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,r=!0),this.m!==a&&(this.m=a,this._mdf.m=!0,r=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,r=!0),r},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var a=this.effectsSequence.length,s=e||this.data.d.k[this.keysIndex].s;for(i=0;i<a;i+=1)s=n!==this.keysIndex?this.effectsSequence[i](s,s.t):this.effectsSequence[i](this.currentData,s.t);t!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,i=e.length;n<=i-1&&!(n===i-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,i=[],a=0,s=e.length,r=!1;a<s;)t=e.charCodeAt(a),FontManager.isCombinedCharacter(t)?i[i.length-1]+=e.charAt(a):t>=55296&&t<=56319?(n=e.charCodeAt(a+1))>=56320&&n<=57343?(r||FontManager.isModifier(t,n)?(i[i.length-1]+=e.substr(a,2),r=!1):i.push(e.substr(a,2)),a+=1):i.push(e.charAt(a)):t>56319?(n=e.charCodeAt(a+1),FontManager.isZeroWidthJoiner(t,n)?(r=!0,i[i.length-1]+=e.substr(a,2),a+=1):i.push(e.charAt(a))):
vendor: 9,472 bytes, line 2
2FontManager.isZeroWidthJoiner(t)?(i[i.length-1]+=e.charAt(a),r=!0):i.push(e.charAt(a)),a+=1;return i},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,i,a,s,r,o,l=this.elem.globalData.fontManager,c=this.data,p=[],h=0,d=c.m.g,f=0,m=0,u=0,A=[],g=0,y=0,b=l.getFontByName(e.f),v=0,_=getFontProperties(b);e.fWeight=_.weight,e.fStyle=_.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var w,x=e.tr/1e3*e.finalSize;if(e.sz)for(var E,C,S=!0,T=e.sz[0],B=e.sz[1];S;){E=0,g=0,n=(C=this.buildFinalText(e.t)).length,x=e.tr/1e3*e.finalSize;var k=-1;for(t=0;t<n;t+=1)w=C[t].charCodeAt(0),i=!1," "===C[t]?k=t:13!==w&&3!==w||(g=0,i=!0,E+=e.finalLineHeight||1.2*e.finalSize),l.chars?(o=l.getCharData(C[t],b.fStyle,b.fFamily),v=i?0:o.w*e.finalSize/100):v=l.measureText(C[t],e.f,e.finalSize),g+v>T&&" "!==C[t]?(-1===k?n+=1:t=k,E+=e.finalLineHeight||1.2*e.finalSize,C.splice(t,k===t?1:0,"\r"),k=-1,g=0):(g+=v,g+=x);E+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&B<E?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=C,n=e.finalText.length,S=!1)}g=-x,v=0;var I,M=0;for(t=0;t<n;t+=1)if(i=!1,13===(w=(I=e.finalText[t]).charCodeAt(0))||3===w?(M=0,A.push(g),y=g>y?g:y,g=-2*x,a="",i=!0,u+=1):a=I,l.chars?(o=l.getCharData(I,b.fStyle,l.getFontByName(e.f).fFamily),v=i?0:o.w*e.finalSize/100):v=l.measureText(a,e.f,e.finalSize)," "===I?M+=v+x:(g+=v+x+M,M=0),p.push({l:v,an:v,add:f,n:i,anIndexes:[],val:a,line:u,animatorJustifyOffset:0}),2==d){if(f+=v,""===a||" "===a||t===n-1){for(""!==a&&" "!==a||(f-=v);m<=t;)p[m].an=f,p[m].ind=h,p[m].extra=v,m+=1;h+=1,f=0}}else if(3==d){if(f+=v,""===a||t===n-1){for(""===a&&(f-=v);m<=t;)p[m].an=f,p[m].ind=h,p[m].extra=v,m+=1;f=0,h+=1}}else p[h].ind=h,p[h].extra=0,h+=1;if(e.l=p,y=g>y?g:y,A.push(g),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=y,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=A;var P,D,U,O,F=c.a;r=F.length;var R=[];for(s=0;s<r;s+=1){for((P=F[s]).a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),O=0,U=P.s.b,t=0;t<n;t+=1)(D=p[t]).anIndexes[s]=O,(1==U&&""!==D.val||2==U&&""!==D.val&&" "!==D.val||3==U&&(D.n||" "==D.val||t==n-1)||4==U&&(D.n||t==n-1))&&(1===P.s.rn&&R.push(O),O+=1);c.a[s].s.totalChars=O;var N,L=-1;if(1===P.s.rn)for(t=0;t<n;t+=1)L!=(D=p[t]).anIndexes[s]&&(L=D.anIndexes[s],N=R.splice(Math.floor(Math.random()*R.length),1)[0]),D.anIndexes[s]=N}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function i(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var a=0,s=0,r=1,o=1;this.ne.v>0?a=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?r=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(a,s,r,o).get,c=0,p=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)c=l(c=h===p?i>=h?1:0:e(0,t(.5/(h-p)+(i-p)/(h-p),1)));else if(3===d)c=l(c=h===p?i>=h?0:1:1-e(0,t(.5/(h-p)+(i-p)/(h-p),1)));else if(4===d)h===p?c=0:(c=e(0,t(.5/(h-p)+(i-p)/(h-p),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===d){if(h===p)c=0;else{var f=h-p,m=-f/2+(i=t(e(0,i+.5-p),h-p)),u=f/2;c=Math.sqrt(1-m*m/(u*u))}c=l(c)}else 6===d?(h===p?c=0:(i=t(e(0,i+.5-p),h-p),c=(1+Math.cos(Math.PI+2*Math.PI*i/(h-p)))/2),c=l(c)):(i>=n(p)&&(c=e(0,t(i-p<0?t(h,1)-(p-i):h-i,1))),c=l(c));if(100!==this.sm.v){var A=.01*this.sm.v;0===A&&(A=1e-8);var g=.5-.5*A;c<g?c=0:(c=(c-g)/A)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,i=this.s.v/t+n,a=this.e.v/t+n;if(i>a){var s=i;i=a,a=s}this.finalS=i,this.finalE=a}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(e,t,n){return new i(e,t,n)}}}(),poolFactory=function(e,t,n){var i=0,a=e,s=createSizedArray(a);return{newElement:function(){return i?s[i-=1]:t()},release:function(e){i===a&&(s=pooling.double(s),a*=2),n&&n(e),s[i]=e,i+=1}}},pooling={double:function(e){return e.concat(createSizedArray(e.length))}},pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)})),shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,n=e._length;for(t=0;t<n;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,n=factory.newElement(),i=void 0===e._length?e.v.length:e._length;for(n.setLength(i),n.c=e.c,t=0;t<i;t+=1)n.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return n},factory),factory,shapeCollectionPool=function(){var e={newShapeCollection:function(){return t?i[t-=1]:new ShapeCollection},release:function(e){var a,s=e._length;for(a=0;a<s;a+=1)shapePool.release(e.shapes[a]);e._length=0,t===n&&(i=pooling.double(i),n*=2),i[t]=e,t+=1}},t=0,n=4,i=createSizedArray(n);return e}(),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0})),bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",defaultCurveSegments),lengths:createTypedArray("float32",defaultCurveSegments)}})),markerParser=function(){function e(e){for(var t,n=e.split("\r\n"),i={},a=0,s=0;s<n.length;s+=1)2===(t=n[s].split(":")).length&&(i[t[0]]=t[1].trim(),a+=1);if(0===a)throw new Error;return i}return function(t){for(var n=[],i=0;i<t.length;i+=1){var a=t[i],s={time:a.tm,duration:a.dr};try{s.payload=JSON.parse(t[i].cm)}catch(n){try{s.payload=e(t[i].cm)}catch(e){s.payload={name:t[i]}}}n.push(s)}return n}}();function BaseRenderer(){}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var i=createNS("title"),a=createElementID();i.setAttribute("id",a),i.textContent=t.title,this.svgElement.appendChild(i),n+=a}if(t&&t.description){var s=createNS("desc"),r=createElementID();s.setAttribute("id",r),s.textContent=t.description,this.svgElement.appendChild(s),n+=" "+r}n&&this.svgElement.setAttribute("aria-labelledby",n);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"}},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||""},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=ne
vendor: 9,061 bytes, line 2
2w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,a,s=this.globalData.defs,r=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(r),this.solidPath="";var o,l,c,p,h,d,f=this.masksProperties,m=0,u=[],A=createElementID(),g="clipPath",y="clip-path";for(i=0;i<r;i+=1)if(("a"!==f[i].mode&&"n"!==f[i].mode||f[i].inv||100!==f[i].o.k||f[i].o.x)&&(g="mask",y="mask"),"s"!==f[i].mode&&"i"!==f[i].mode||0!==m?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),u.push(c)),a=createNS("path"),"n"===f[i].mode)this.viewData[i]={op:PropertyFactory.getProp(this.element,f[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[i],3),elem:a,lastPath:""},s.appendChild(a);else{var b;if(m+=1,a.setAttribute("fill","s"===f[i].mode?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero"),0!==f[i].x.k?(g="mask",y="mask",d=PropertyFactory.getProp(this.element,f[i].x,0,null,this.element),b=createElementID(),(p=createNS("filter")).setAttribute("id",b),(h=createNS("feMorphology")).setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),p.appendChild(h),s.appendChild(p),a.setAttribute("stroke","s"===f[i].mode?"#000000":"#ffffff")):(h=null,d=null),this.storedData[i]={elem:a,x:d,expan:h,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===f[i].mode){l=u.length;var v=createNS("g");for(o=0;o<l;o+=1)v.appendChild(u[o]);var _=createNS("mask");_.setAttribute("mask-type","alpha"),_.setAttribute("id",A+"_"+m),_.appendChild(a),s.appendChild(_),v.setAttribute("mask","url("+locationHref+"#"+A+"_"+m+")"),u.length=0,u.push(v)}else u.push(a);f[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,f[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[i],3),invRect:c},this.viewData[i].prop.k||this.drawPath(f[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(g),r=u.length,i=0;i<r;i+=1)this.maskElement.appendChild(u[i]);m>0&&(this.maskElement.setAttribute("id",A),this.element.maskedElement.setAttribute(y,"url("+locationHref+"#"+A+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(e,t){this.elem=e,this.pos=t}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var i=0,a=e.length;i<a;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}BaseRenderer.prototype.checkLayers=function(e){var t,n,i=this.layers.length;for(this.completeLayers=!0,t=i-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,i=e.length,a=this.layers.length;for(t=0;t<i;t+=1)for(n=0;n<a;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var i=this.elements,a=this.layers,s=0,r=a.length;s<r;)a[s].ind==t&&(i[s]&&!0!==i[s]?(n.push(i[s]),i[s].setAsParent(),void 0!==a[s].parent?this.buildElementParenting(e,a[s].parent,n):e.setHierarchy(n)):(this.buildItem(s),this.addPendingElement(e))),s+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}},extendPrototype([BaseRenderer],SVGRenderer),SVGRenderer.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRenderer.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRenderer.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRenderer.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},SVGRenderer.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRenderer.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,
20,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var a=createElementID();n.setAttribute("id",a),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+a+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRenderer.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRenderer.prototype.updateContainerSize=function(){},SVGRenderer.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);t[e]=n,expressionsPlugin&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt&&(this.elements[e-1]&&!0!==this.elements[e-1]?n.setMatte(t[e-1].layerId):(this.buildItem(e-1),this.addPendingElement(n)))}},SVGRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){e.setMatte(this.elements[t-1].layerId);break}t+=1}}},SVGRenderer.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRenderer.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var i,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement()&&(i=this.elements[a].getBaseElement()),a+=1;i?this.layerElement.insertBefore(n,i):this.layerElement.appendChild(n)}},SVGRenderer.prototype.hide=function(){this.layerElement.style.display="none"},SVGRenderer.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseRenderer],CanvasRenderer),CanvasRenderer.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRenderer.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRenderer.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},CanvasRenderer.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRenderer.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRenderer.prototype.ctxTransform=function(e){if(1!==e[0]||0!==e[1]||0!==e[4]||1!==e[5]||0!==e[12]||0!==e[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(e);var t=this.contextData.cTr.props;this.transformMat.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var n=this.contextData.cTr.props;this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])}else this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRenderer.prototype.ctxOpacity=function(e){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=e<0?0:e,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=e<0?0:e,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRenderer.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore(
2)},CanvasRenderer.prototype.save=function(e){if(this.renderConfig.clearCanvas){e&&this.canvasContext.save();var t,n=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var i=this.contextData.saved[this.contextData.cArrPos];for(t=0;t<16;t+=1)i[t]=n[t];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRenderer.prototype.restore=function(e){if(this.renderConfig.clearCanvas){e&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var t,n=this.contextData.saved[this.contextData.cArrPos],i=this.contextData.cTr.props;for(t=0;t<16;t+=1)i[t]=n[t];this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),n=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=n,this.globalData.currentGlobalAlpha!==n&&(this.canvasContext.globalAlpha=n,this.globalData.currentGlobalAlpha=n)}else this.canvasContext.restore()},CanvasRenderer.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRenderer.prototype.updateContainerSize=function(){var e,t,n,i;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",e*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",t*this.renderConfig.dpr)):(e=this.canvasContext.canvas.width*this.renderConfig.dpr,t=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",r=a[0]||"xMidYMid",o=r.substr(0,4),l=r.substr(4);n=e/t,(i=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===s||i<n&&"slice"===s?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===o&&(i<n&&"meet"===s||i>n&&"slice"===s)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(i<n&&"meet"===s||i>n&&"slice"===s)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(i>n&&"meet"===s||i<n&&"slice"===s)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===l&&(i>n&&"meet"===s||i<n&&"slice"===s)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.t
vendor: 13,572 bytes, line 2
2y=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRenderer.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRenderer.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var n;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var i=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=0;n<i;n+=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRenderer.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRenderer.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRenderer.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([BaseRenderer],HybridRenderer),HybridRenderer.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRenderer.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var i=this.layers[t];if(i.ddd&&this.supports3d)this.addTo3dContainer(n,t);else if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var a,s,r=0;r<t;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement&&(s=this.elements[r],a=(this.layers[r].ddd?this.getThreeDContainerByPos(r):s.getBaseElement())||a),r+=1;a?i.ddd&&this.supports3d||this.layerElement.insertBefore(n,a):i.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRenderer.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRenderer.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRenderer.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRenderer.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},HybridRenderer.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRenderer.prototype.createNull=SVGRenderer.prototype.createNull,HybridRenderer.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRenderer.prototype.createThreeDContainer=function(e,t){var n,i,a=createTag("div");styleDiv(a);var s=createTag("div");if(styleDiv(s),"3d"===t){(n=a.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px",n.webkitTransformOrigin="50% 50%",n.mozTransformOrigin="50% 50%",n.transformOrigin="50% 50%";var r="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=s.style).transform=r,i.webkitTransform=r}a.appendChild(s);var o={container:s,perspectiveElem:a,startPos:e,endPos:e,type:t};return this.threeDElements.push(o),o},HybridRenderer.prototype.build3dContainers=function(){var e,t,n=this.layers.length,i="";for(e=0;e<n;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==i&&(i="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==i&&(i="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(n=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRenderer.prototype.addTo3dContainer=function(e,t){for(var n=0,i=this.threeDElements.length;n<i;){if(t<=this.threeDElements[n].endPos){for(var a,s=this.threeDElements[n].startPos;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(a=this.elements[s].getBaseElement()),s+=1;a?this.threeDElements[n].container.insertBefore(e,a):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRenderer.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),i.overflow="hidden";var a=createNS("svg");a.setAttribute("width","1"),a.setAttribute("height","1"),styleDiv(a),this.resizerElem.appendChild(a);var s=createNS("defs");a.appendChild(s),this.data=e,this.setupGlobalData(e,a),this.globalData.defs=s,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRenderer.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRenderer.prototype.updateContainerSize=function(){var e,t,n,i,a=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,r=a/s;this.globalData.compSize.w/this.globalData.compSize.h>r?(e=a/this.globalData.compSize.w,t=a/this.globalData.compSize.w,n=0,i=(s-this.globalData.compSize.h*(a/this.globalData.compSize.w))/2):(e=s/this.globalData.compSize.h,t=s/this.globalData.compSize.h,n=(a-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,i=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+i+",0,1)",o.transform=o.webkitTransform},HybridRenderer.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRenderer.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRenderer.prototype.show=function(){this.resizerElem.style.display="block"},HybridRenderer.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,i=this.threeDElements.length;for(e=0;e<i;e+=1){var a=this.threeDElements[e].perspectiveElem.style;a.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(n,2))+"px",a.perspective=a.webkitPerspective}}},HybridRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length,i=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var a=this.createComp(e[t],i,this.globalData.comp,null);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,i=this.masksProperties.length;for(t=0;t<i;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var a=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+locationHref+"#"+this.storedData[t].filterId+")")),a.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,(e+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,n){var i,a,s=" M"+t.v[0][0]+","+t.v[0][1];for(a=t._length,i=1;i<a;i+=1)s+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[i][0]+","+t.i[i][1]+" "+t.v[i][0]+","+t.v[i][1];if(t.c&&a>1&&(s+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==s){var r="";n.elem&&(t.c&&(r=e.inv?this.solidPath+s:s),n.elem.setAttribute("d",r)),n.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,i=this.dynamicProperties.length;for(n=0;n<i;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<i;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<i;n+=1)e=this.hierarchy[n].finalTransform.mProp.v.props,t.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,i=!0,a=this.comp;i;)a.finalTransform?(a.data.hasMask&&t.splice(0,0,a.finalTransform),a=a.comp):i=!1;var s,r=t.length;for(n=0;n<r;n+=1)s=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-s[0],e[1]-s[1],0];return e},mHelper:new Matrix},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}}
vendor: 9,890 bytes, line 2
2,extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),i=createNS(1===t.t?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var a,s,r,o=[];for(r=4*t.g.p,s=0;s<r;s+=4)a=createNS("stop"),i.appendChild(a),o.push(a);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+locationHref+"#"+n+")"),this.gf=i,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,i,a,s=createNS("mask"),r=createNS("path");s.appendChild(r);var o=createElementID(),l=createElementID();s.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",o),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),a=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var p=this.stops;for(i=4*e.g.p;i<a;i+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(n),p.push(n);r.setAttribute("gf"===e.ty?"fill":"stroke","url("+locationHref+"#"+o+")"),"gs"===e.ty&&(r.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&r.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=s,this.ost=p,this.maskId=l,t.msElem=r}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function n(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function i(n,i,a){var s,r,o,l,c,p,h,d,f,m,u,A=i.styles.length,g=i.lvl;for(p=0;p<A;p+=1){if(l=i.sh._mdf||a,i.styles[p].lvl<g){for(d=t.reset(),m=g-i.styles[p].lvl,u=i.transformers.length-1;!l&&m>0;)l=i.transformers[u].mProps._mdf||l,m-=1,u-=1;if(l)for(m=g-i.styles[p].lvl,u=i.transformers.length-1;m>0;)f=i.transformers[u].mProps.v.props,d.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),m-=1,u-=1}else d=e;if(r=(h=i.sh.paths)._length,l){for(o="",s=0;s<r;s+=1)(c=h.shapes[s])&&c._length&&(o+=buildShapeString(c,c._length,c.c,d));i.caches[p]=o}else o=i.caches[p];i.styles[p].d+=!0===n.hd?"":o,i.styles[p]._mdf=l||i.styles[p]._mdf}}function a(e,t,n){var i=t.style;(t.c._mdf||n)&&i.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&i.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,n){r(e,t,n),o(e,t,n)}function r(e,t,n){var i,a,s,r,o,l=t.gf,c=t.g._hasOpacity,p=t.s.v,h=t.e.v;if(t.o._mdf||n){var d="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(d,t.o.v)}if(t.s._mdf||n){var f=1===e.t?"x1":"cx",m="x1"===f?"y1":"cy";l.setAttribute(f,p[0]),l.setAttribute(m,p[1]),c&&!t.g._collapsable&&(t.of.setAttribute(f,p[0]),t.of.setAttribute(m,p[1]))}if(t.g._cmdf||n){i=t.cst;var u=t.g.c;for(s=i.length,a=0;a<s;a+=1)(r=i[a]).setAttribute("offset",u[4*a]+"%"),r.setAttribute("stop-color","rgb("+u[4*a+1]+","+u[4*a+2]+","+u[4*a+3]+")")}if(c&&(t.g._omdf||n)){var A=t.g.o;for(s=(i=t.g._collapsable?t.cst:t.ost).length,a=0;a<s;a+=1)r=i[a],t.g._collapsable||r.setAttribute("offset",A[2*a]+"%"),r.setAttribute("stop-opacity",A[2*a+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",h[0]),l.setAttribute("y2",h[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",h[0]),t.of.setAttribute("y2",h[1])));else if((t.s._mdf||t.e._mdf||n)&&(o=Math.sqrt(Math.pow(p[0]-h[0],2)+Math.pow(p[1]-h[1],2)),l.setAttribute("r",o),c&&!t.g._collapsable&&t.of.setAttribute("r",o)),t.e._mdf||t.h._mdf||t.a._mdf||n){o||(o=Math.sqrt(Math.pow(p[0]-h[0],2)+Math.pow(p[1]-h[1],2)));var g=Math.atan2(h[1]-p[1],h[0]-p[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=o*y,v=Math.cos(g+t.a.v)*b+p[0],_=Math.sin(g+t.a.v)*b+p[1];l.setAttribute("fx",v),l.setAttribute("fy",_),c&&!t.g._collapsable&&(t.of.setAttribute("fx",v),t.of.setAttribute("fy",_))}}function o(e,t,n){var i=t.style,a=t.d;a&&(a._mdf||n)&&a.dashStr&&(i.pElem.setAttribute("stroke-dasharray",a.dashStr),i.pElem.setAttribute("stroke-dashoffset",a.dashoffset[0])),t.c&&(t.c._mdf||n)&&i.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&i.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(i.pElem.setAttribute("stroke-width",t.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return a;case"gf":return r;case"gs":return s;case"st":return o;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;default:return null}}}}();function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVShapeData(e,t,n,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var a,s=4;"rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var r,o=n.length;for(a=0;a<o;a+=1)n[a].closed||(r={transforms:i.addTransformSequence(n[a].transforms),trNodes:[]},this.styledShapes.push(r),n[a].elements.push(r))}function BaseElement(){}function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function SVGBaseElement(){}function IShapeElement(){}function ITextElement(){}function ICompElement(){}function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ISolidElement(e,t,n){this.initElement(e,t,n)}function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function SVGTintFilter(e,t){this.filterManager=t;var n=createNS("feColorMatrix");if(n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),n.setAttribute("result","f1"),e.appendChild(n),(n=createNS("feColorMatrix")).setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result","f2"),e.appendChild(n),this.matrixFilter=n,100!==t.effectElements[2].p.v||t.effectElements[2].p.k){var i,a=createNS("feMerge");e.appendChild(a),(i=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),a.appendChild(i),(i=createNS("feMergeNode")).setAttribute("in","f2"),a.appendChild(i)}}function SVGFillFilter(e,t){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.a
2ppendChild(n),this.matrixFilter=n}function SVGGaussianBlurEffect(e,t){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var n=createNS("feGaussianBlur");e.appendChild(n),this.feGaussianBlur=n}function SVGStrokeEffect(e,t){this.initialized=!1,this.filterManager=t,this.elem=e,this.paths=[]}function SVGTritoneFilter(e,t){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),n.setAttribute("result","f1"),e.appendChild(n);var i=createNS("feComponentTransfer");i.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(i),this.matrixFilter=i;var a=createNS("feFuncR");a.setAttribute("type","table"),i.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),i.appendChild(s),this.feFuncG=s;var r=createNS("feFuncB");r.setAttribute("type","table"),i.appendChild(r),this.feFuncB=r}function SVGProLevelsFilter(e,t){this.filterManager=t;var n=this.filterManager.effectElements,i=createNS("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(i),i=createNS("feComponentTransfer")),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&(i.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(e,t){var n=t.container.globalData.renderConfig.filterSize;e.setAttribute("x",n.x),e.setAttribute("y",n.y),e.setAttribute("width",n.width),e.setAttribute("height",n.height),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("in","SourceAlpha"),i.setAttribute("result","drop_shadow_1"),i.setAttribute("stdDeviation","0"),this.feGaussianBlur=i,e.appendChild(i);var a=createNS("feOffset");a.setAttribute("dx","25"),a.setAttribute("dy","0"),a.setAttribute("in","drop_shadow_1"),a.setAttribute("result","drop_shadow_2"),this.feOffset=a,e.appendChild(a);var s=createNS("feFlood");s.setAttribute("flood-color","#00ff00"),s.setAttribute("flood-opacity","1"),s.setAttribute("result","drop_shadow_3"),this.feFlood=s,e.appendChild(s);var r=createNS("feComposite");r.setAttribute("in","drop_shadow_3"),r.setAttribute("in2","drop_shadow_2"),r.setAttribute("operator","in"),r.setAttribute("result","drop_shadow_4"),e.appendChild(r);var o,l=createNS("feMerge");e.appendChild(l),o=createNS("feMergeNode"),l.appendChild(o),(o=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=o,this.feMerge=l,this.originalNodeAdded=!1,l.appendChild(o)}ShapeTransformManager.prototype={addTransformSequence:function(e){var t,n=e.length,i="_";for(t=0;t<n;t+=1)i+=e[t].transform.key+"_";var a=this.sequences[i];return a||(a={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=a,this.sequenceList.push(a)),a},processSequence:function(e,t){for(var n,i=0,a=e.transforms.length,s=t;i<a&&!t;){if(e.transforms[i].transform.mProps._mdf){s=!0;break}i+=1}if(s)for(e.finalTransform.reset(),i=a-1;i>=0;i-=1)n=e.transforms[i].transform.mProps.v.props,e.finalTransform.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]);e._mdf=s},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t<n;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);
vendor: 4,405 bytes, line 2
2var e=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(e),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e,t,n,i=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var a=createNS("mask");a.setAttribute("id",this.layerId),a.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),a.appendChild(this.layerElement),i=a,this.globalData.defs.appendChild(a),featureSupport.maskType||1!=this.data.td||(a.setAttribute("mask-type","luminance"),e=createElementID(),t=filtersFactory.createFilter(e),this.globalData.defs.appendChild(t),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(this.layerElement),i=n,a.appendChild(n),n.setAttribute("filter","url("+locationHref+"#"+e+")"))}else if(2==this.data.td){var s=createNS("mask");s.setAttribute("id",this.layerId),s.setAttribute("mask-type","alpha");var r=createNS("g");s.appendChild(r),e=createElementID(),t=filtersFactory.createFilter(e);var o=createNS("feComponentTransfer");o.setAttribute("in","SourceGraphic"),t.appendChild(o);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),o.appendChild(l),this.globalData.defs.appendChild(t);var c=createNS("rect");c.setAttribute("width",this.comp.data.w),c.setAttribute("height",this.comp.data.h),c.setAttribute("x","0"),c.setAttribute("y","0"),c.setAttribute("fill","#ffffff"),c.setAttribute("opacity","0"),r.setAttribute("filter","url("+locationHref+"#"+e+")"),r.appendChild(c),r.appendChild(this.layerElement),i=r,featureSupport.maskType||(s.setAttribute("mask-type","luminance"),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),r.appendChild(c),n.appendChild(this.layerElement),i=n,r.appendChild(n)),this.globalData.defs.appendChild(s)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var p=createNS("clipPath"),h=createNS("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var d=createElementID();if(p.setAttribute("id",d),p.appendChild(h),this.globalData.defs.appendChild(p),this.checkMasks()){var f=createNS("g");f.setAttribute("clip-path","url("+locationHref+"#"+d+")"),f.appendChild(this.layerElement),this.transformedElement=f,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+d+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("op
2acity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+locationHref+"#"+e+")")}},IShapeElement.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,i=t.length;n<i;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,i=n.length;i;)if(n[i-=1].elem===e)return void(n[i].pos=t);n.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}},ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(e,t){var n,i,a=t.length,s="";for(n=0;n<a;n+=1)i=t[n].ks.k,s+=buildShapeString(i,i.i.length,!0,e);return s},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,i,a){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(i,a,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}}
vendor: 11,309 bytes, line 2
2,extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this.audio.volume(e)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,i=[],a="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(i.push(a),a=""):a+=e[t],t+=1;return i.push(a),i},SVGTextLottieElement.prototype.buildNewText=function(){var e,t,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var i=this.globalData.fontManager.getFontByName(n.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var a=n.fWeight,s=n.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",n.t);var r,o=n.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var c,p=this.mHelper,h="",d=this.data.singleShape,f=0,m=0,u=!0,A=.001*n.tr*n.finalSize;if(!d||l||n.sz){var g,y,b=this.textSpans.length;for(e=0;e<t;e+=1)l&&d&&0!==e||(r=b>e?this.textSpans[e]:createNS(l?"path":"text"),b<=e&&(r.setAttribute("stroke-linecap","butt"),r.setAttribute("stroke-linejoin","round"),r.setAttribute("stroke-miterlimit","4"),this.textSpans[e]=r,this.layerElement.appendChild(r)),r.style.display="inherit"),p.reset(),p.scale(n.finalSize/100,n.finalSize/100),d&&(o[e].n&&(f=-A,m+=n.yOffset,m+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(n,p,o[e].line,f,m),f+=o[e].l||0,f+=A),l?(c=(g=(y=this.globalData.fontManager.getCharData(n.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily))&&y.data||{}).shapes?g.shapes[0].it:[],d?h+=this.createPathShape(p,c):r.setAttribute("d",this.createPathShape(p,c))):(d&&r.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),r.textContent=o[e].val,r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));d&&r&&r.setAttribute("d",h)}else{var v=this.textContainer,_="start";switch(n.j){case 1:_="end";break;case 2:_="middle";break;default:_="start"}v.setAttribute("text-anchor",_),v.setAttribute("letter-spacing",A);var w=this.buildTextContents(n.finalText);for(t=w.length,m=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(r=this.textSpans[e]||createNS("tspan")).textContent=w[e],r.setAttribute("x",0),r.setAttribute("y",m),r.style.display="inherit",v.appendChild(r),this.textSpans[e]=r,m+=n.finalLineHeight;this.layerElement.appendChild(v)}for(;e<this.textSpans.length;)this.textSpans[e].style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,i,a=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(t=s.length,e=0;e<t;e+=1)s[e].n||(n=a[e],i=this.textSpans[e],n._mdf.m&&i.setAttribute("transform",n.m),n._mdf.o&&i.setAttribute("opacity",n.o),n._mdf.sw&&i.setAttribute("stroke-width",n.sw),n._mdf.sc&&i.setAttribute("stroke",n.sc),n._mdf.fc&&i.setAttribute("fill",n.fc))}},extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,i,a=this.shapes.length,s=this.stylesList.length,r=[],o=!1;for(n=0;n<s;n+=1){for(i=this.stylesList[n],o=!1,r.length=0,e=0;e<a;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(i)&&(r.push(t),o=t._isAnimated||o);r.length>1&&o&&this.setShapesAsAnimated(r)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,i=new SVGStyleData(e,t),a=i.pElem;return"st"===e.ty?n=new SVGStrokeStyleData(this,e,i):"fl"===e.ty?n=new SVGFillStyleData(this,e,i):"gf"!==e.ty&&"gs"!==e.ty||(n=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),a.setAttribute("mask","url("+locationHref+"#"+n.maskId+")"))),"st"!==e.ty&&"gs"!==e.ty||(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),a.setAttribute("fill-opacity","0"),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&a.setAttribute("fill-rule","evenodd"),e.ln&&a.setAttribute("id",e.ln),e.cl&&a.setAttribute("class",e.cl),e.bm&&(a.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var i=4;"rc"===e.ty?i=5:"el"===e.ty?i=6:"sr"===e.ty&&(i=7);var a=new SVGShapeData(t,n,ShapePropertyFactory.getShapeProp(this,e,i,this));return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,i=this.animatedContents.length;n<i;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,n=e.styles,i=this.stylesList.length;for(t=0;t<i;t+=1)this.stylesList[t].closed||n.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,i,a,s,r){var o,l,c,p,h,d,f=[].concat(s),m=e.length-1,u=[],A=[];for(o=m;o>=0;o-=1){if((d=this.searchProcessedElement(e[o]))?t[o]=n[d-1]:e[o]._render=r,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty)d?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],a),e[o]._render&&t[o].style.pElem.parentNode!==i&&i.appendChild(t[o].style.pElem),u.push(t[o].style);else if("gr"===e[o].ty){if(d)for(c=t[o].it.length,l=0;l<c;l+=1)t[o].prevViewData[l]=t[o].it[l];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,t[o].gr,a+1,f,r),e[o]._render&&t[o].gr.parentNode!==i&&i.appendChild(t[o].gr)}else"tr"===e[o].ty?(d||(t[o]=this.createTransformElement(e[o],i)),p=t[o].transform,f.push(p)):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?(d||(t[o]=this.createShapeElement(e[o],f,a)),this.setElementStyles(t[o])):"tm"===e[o].ty||"rd"===e[o].ty||"ms"===e[o].ty||"pb"===e[o].ty?(d?(h=t[o]).closed=!1:((h=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=h,this.shapeModifiers.push(h)),A.push(h)):"rp"===e[o].ty&&(d?(h=t[o]).closed=!0:(h=ShapeModifiers.getModifier(e[o].ty),t[o]=h,h.init(this,e,o,t),this.shapeModifiers.push(h),r=!1),A.push(h));this.addProcessedElement(e[o],o+1)}for(m=u.length,o=0;o<m;o+=1)u[o].closed=!0;for(m=A.length,o=0;o<m;o+=1)A[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;
vendor: 11,581 bytes, line 2
2this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 "+i+" 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=3==n?0:t,a=2==n?0:t;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+a);var s=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},SVGStrokeEffect.prototype.initialize=function(){var e,t,n,i,a=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,n=0):i=1+(n=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<i;n+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(3===this.filterManager.effectElements[10].p.v){var s=createNS("mask"),r=createElementID();s.setAttribute("id",r),s.setAttribute("mask-type","alpha"),s.appendChild(t),this.elem.globalData.defs.appendChild(s);var o=createNS("g");for(o.setAttribute("mask","url("+locationHref+"#"+r+")");a[0];)o.appendChild(a[0]);this.elem.layerElement.appendChild(o),this.masker=s,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(a=this.elem.layerElement.children||this.elem.layerElement.childNodes;a.length;)this.elem.layerElement.removeChild(a[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var n,i,a=this.paths.length;for(t=0;t<a;t+=1)if(-1!==this.paths[t].m&&(n=this.elem.maskManager.viewData[this.paths[t].m],i=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&i.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var s;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var r=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=i.getTotalLength();s="0 0 0 "+l*r+" ";var c,p=l*(o-r),h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(p/h);for(c=0;c<d;c+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*l+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",s)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*f[0])+","+bmFloor(255*f[1])+","+bmFloor(255*f[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,a=i[0]+" "+n[0]+" "+t[0],s=i[1]+" "+n[1]+" "+t[1],r=i[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",a),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",r)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,i,a){for(var s,r,o=0,l=Math.min(e,t),c=Math.max(e,t),p=Array.call(null,{length:256}),h=0,d=a-i,f=t-e;o<=256;)r=(s=o/256)<=l?f<0?a:i:s>=c?f<0?i:a:i+d*Math.pow((s-e)/f,1/n),p[h]=r,h+=1,o+=256/255;return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,a=n*Math.cos(i),s=n*Math.sin(i);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGEffects(e){var t,n,i=e.data.ef?e.data.ef.length:0,a=createElementID(),s=filtersFactory.createFilter(a,!0),r=0;for(this.filters=[],t=0;t<i;t+=1)n=null,20===e.data.ef[t].ty?(r+=1,n=new SVGTintFilter(s,e.effectsManager.effectElements[t])):21===e.data.ef[t].ty?(r+=1,n=new SVGFillFilter(s,e.effectsManager.effectElements[t])):22===e.data.ef[t].ty?n=new SVGStrokeEffect(e,e.effectsManager.effectElements[t]):23===e.data.ef[t].ty?(r+=1,n=new SVGTritoneFilter(s,e.effectsManager.effectElements[t])):24===e.data.ef[t].ty?(r+=1,n=new SVGProLevelsFilter(s,e.effectsManager.effectElements[t])):25===e.data.ef[t].ty?(r+=1,n=new SVGDropShadowEffect(s,e.effectsManager.effectElements[t])):28===e.data.ef[t].ty?n=new SVGMatte3Effect(s,e.effectsManager.effectElements[t],e):29===e.data.ef[t].ty&&(r+=1,n=new SVGGaussianBlurEffect(s,e.effectsManager.effectElements[t])),n&&this.filters.push(n);r&&(e.globalData.defs.appendChild(s),e.layerElement.setAttribute("filter","url("+locationHref+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}function CVContextData(){var e;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),e=0;e<15;e+=1)this.saved[e]=createTypedArray("float32",16);this._length=15}function CVBaseElement(){}function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CVMaskElement(e,t){var n;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,a=!1;for(n=0;n<i;n+=1)"n"!==this.masksProperties[n].mode&&(a=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=a,a&&this.element.addRenderableComponent(this)}function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}function CVSolidElement(e,t,n){this.initElement(e,t,n)}function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}function CVEffects(){}function HBaseElement(){}function HSolidElement(e,t,n){this.initElement(e,t,n)}function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var a,s=e.ks.or.k.length;for(a=0;a<s;a+=1)e.ks.or.k[a].to=null,e.ks.or.k[a].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=ne
vendor: 4,425 bytes, line 2
2w Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HEffects(){}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var i,a=n.children,s=0,r=a.length;s<r&&a[s]!==e.layerElement;)s+=1;s<=r-2&&(i=a[s+1]);var o=createNS("use");o.setAttribute("href","#"+t),i?n.insertBefore(o,i):n.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var a=e.globalData.defs;a.appendChild(i);var s=createNS("symbol");s.setAttribute("id",n),this.replaceInParent(t,n),s.appendChild(t.layerElement),a.appendChild(s);var r=createNS("use");r.setAttribute("href","#"+n),i.appendChild(r),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,i=t.length;n<i;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=this.savedOp;this.savedOp=createTypedArray("float32",e),this.savedOp.set(t);var n=0;for(n=this._length;n<e;n+=1)this.saved[n]=createTypedArray("float32",16);this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var e=0===this.data.ty;this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(e),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,n,i=e.getContext("2d"),a=this.img.width,s=this.img.height,r=a/s,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;r>o&&"xMidYMid slice"===l||r<o&&"xMidYMid slice"!==l?t=(n=s)*o:n=(t=a)/o,i.drawImage(this.img,(a-t)/2,(s-n)/2,t,n,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([CanvasRenderer,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;
vendor: 12,408 bytes, line 2
2for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,n,i,a=this.element.finalTransform.mat,s=this.element.canvasContext,r=this.masksProperties.length;for(s.beginPath(),e=0;e<r;e+=1)if("n"!==this.masksProperties[e].mode){var o;this.masksProperties[e].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),i=this.viewData[e].v,t=a.applyToPointArray(i.v[0][0],i.v[0][1],0),s.moveTo(t[0],t[1]);var l=i._length;for(o=1;o<l;o+=1)n=a.applyToTriplePoints(i.o[o-1],i.i[o],i.v[o]),s.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=a.applyToTriplePoints(i.o[o-1],i.i[0],i.v[0]),s.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},i={};if("fl"===e.ty||"st"===e.ty?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(n.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],1==e.lj&&(n.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(n.wi=i.w.v),e.d){var a=new DashProperty(this,e.d,"canvas",this);i.d=a,i.d.k||(n.da=i.d.dashArray,n.do=i.d.dashoffset[0])}}else n.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(n),i.style=n,i},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,i,a){var s,r,o,l,c,p,h=e.length-1,d=[],f=[],m=[].concat(a);for(s=h;s>=0;s-=1){if((l=this.searchProcessedElement(e[s]))?t[s]=n[l-1]:e[s]._shouldRender=i,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty)l?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],m),d.push(t[s].style);else if("gr"===e[s].ty){if(l)for(o=t[s].it.length,r=0;r<o;r+=1)t[s].prevViewData[r]=t[s].it[r];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,i,m)}else"tr"===e[s].ty?(l||(p=this.createTransformElement(e[s]),t[s]=p),m.push(t[s]),this.addTransformToStyleList(t[s])):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?l||(t[s]=this.createShapeElement(e[s])):"tm"===e[s].ty||"rd"===e[s].ty||"pb"===e[s].ty?(l?(c=t[s]).closed=!1:((c=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=c,this.shapeModifiers.push(c)),f.push(c)):"rp"===e[s].ty&&(l?(c=t[s]).closed=!0:(c=ShapeModifiers.getModifier(e[s].ty),t[s]=c,c.init(this,e,s,t),this.shapeModifiers.push(c),i=!1),f.push(c));this.addProcessedElement(e[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),h=f.length,s=0;s<h;s+=1)f[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,n,i,a,s,r,o,l,c=this.stylesList.length,p=this.globalData.renderer,h=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(o=(l=this.stylesList[e]).type)&&"gs"!==o||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(p.save(),s=l.elements,"st"===o||"gs"===o?(h.strokeStyle="st"===o?l.co:l.grd,h.lineWidth=l.wi,h.lineCap=l.lc,h.lineJoin=l.lj,h.miterLimit=l.ml||0):h.fillStyle="fl"===o?l.co:l.grd,p.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&h.beginPath(),p.ctxTransform(l.preTransforms.finalTransform.props),n=s.length,t=0;t<n;t+=1){for("st"!==o&&"gs"!==o||(h.beginPath(),l.da&&(h.setLineDash(l.da),h.lineDashOffset=l.do)),a=(r=s[t].trNodes).length,i=0;i<a;i+=1)"m"===r[i].t?h.moveTo(r[i].p[0],r[i].p[1]):"c"===r[i].t?h.bezierCurveTo(r[i].pts[0],r[i].pts[1],r[i].pts[2],r[i].pts[3],r[i].pts[4],r[i].pts[5]):h.closePath();"st"!==o&&"gs"!==o||(h.stroke(),l.da&&h.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&h.fill(l.r),p.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,i){var a,s;for(s=e,a=t.length-1;a>=0;a-=1)"tr"===t[a].ty?(s=n[a].transform,this.renderShapeTransform(e,s)):"sh"===t[a].ty||"el"===t[a].ty||"rc"===t[a].ty||"sr"===t[a].ty?this.renderPath(t[a],n[a]):"fl"===t[a].ty?this.renderFill(t[a],n[a],s):"st"===t[a].ty?this.renderStroke(t[a],n[a],s):"gf"===t[a].ty||"gs"===t[a].ty?this.renderGradientFill(t[a],n[a],s):"gr"===t[a].ty?this.renderShape(s,t[a].it,n[a].it):t[a].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,i,a,s=e.trNodes,r=t.paths,o=r._length;s.length=0;var l=e.transforms.finalTransform;for(a=0;a<o;a+=1){var c=r.shapes[a];if(c&&c.v){for(i=c._length,n=1;n<i;n+=1)1===n&&s.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),s.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[n],c.v[n])});1===i&&s.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&i&&(s.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[0],c.v[0])}),s.push({t:"z"}))}}e.trNodes=s}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var n,i=t.styledShapes.length;for(n=0;n<i;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var i,a=t.style;if(!a.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var s,r=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(1===e.t)i=r.createLinearGradient(o[0],o[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),p=Math.atan2(l[1]-o[1],l[0]-o[0]),h=t.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var d=c*h,f=Math.cos(p+t.a.v)*d+o[0],m=Math.sin(p+t.a.v)*d+o[1];i=r.createRadialGradient(f,m,0,o[0],o[1],c)}var u=e.g.p,A=t.g.c,g=1;for(s=0;s<u;s+=1)t.g._hasOpacity&&t.g._collapsable&&(g=t.g.o[2*s+1]),i.addColorStop(A[4*s]/100,"rgba("+A[4*s+1]+","+A[4*s+2]+","+A[4*s+3]+","+g+")");a.grd=i}a.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var i=t.style,a=t.d;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.fillStyle=this.data.sc,e.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i,a,s,r,o,l,c,p,h,d,f,m,u=this.globalData.fontManager.getFontByName(e.f),A=e.l,g=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,a=e.finalText.length;var y=this.data.singleShape,b=.001*e.tr*e.finalSize,v=0,_=0,w=!0,x=0;for(i=0;i<a;i+=1){for(r=(s=this.globalData.fontManager.getCharData(e.finalText[i],u.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&s.data||{},g.reset(),y&&A[i].n&&(v=-b,_+=e.yOffset,_+=w?1:0,w=!1),h=(c=r.shapes?r.shapes[0].it:[]).length,g.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,g,A[i].line,v,_),f=createSizedArray(h),p=0;p<h;p+=1){for(l=c[p].ks.k.i.length,d=c[p].ks.k,m=[],o=1;o<l;o+=1)1===o&&m.push(g.applyToX(d.v[0][0],d.v[0][1],0),g.applyToY(d.v[0][0],d.v[0][1],0)),m.push(g.applyToX(d.o[o-1][0],d.o[o-1][1],0),g.applyToY(d.o[o-1][0],d.o[o-1][1],0),g.applyToX(d.i[o][0],d.i[o][1],0),g.applyToY(d.i[o][0],d.i[o][1],0),g.applyToX(d.v[o][0],d.v[o][1],0),g.applyToY(d.v[o][0],d.v[o][1],0));m.push(g.applyToX(d.o[o-1][0],d.o[o-1][1],0),g.applyToY(d.o[o-1][0],d.o[o-1][1],0),g.applyToX(d.i[0][0],d.i[0][1],0),g.applyToY(d.i[0][0],d.i[0][1],0),g.applyToX(d.v[0][0],d.v[0][1],0),g.applyToY(d.v[0][0],d.v[0][1],0)),f[p]=m}y&&(v+=A[i].l,v+=b),this.textSpans[x]?this.textSpans[x].elem=f:this.textSpans[x]={elem:f},x+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,n,i,a,s,r=this.canvasContext;r.font=this.values.fValue,r.lineCap="butt",r.lineJoin="miter",r.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;t=c.length;var p,h,d=null,f=null,m=null;for(e=0;e<t;
vendor: 18,797 bytes, line 2
2e+=1)if(!c[e].n){if((o=l[e])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(o.p),this.globalData.renderer.ctxOpacity(o.o)),this.fill){for(o&&o.fc?d!==o.fc&&(d=o.fc,r.fillStyle=o.fc):d!==this.values.fill&&(d=this.values.fill,r.fillStyle=this.values.fill),i=(p=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<i;n+=1)for(s=(h=p[n]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),a=2;a<s;a+=6)this.globalData.canvasContext.bezierCurveTo(h[a],h[a+1],h[a+2],h[a+3],h[a+4],h[a+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(o&&o.sw?m!==o.sw&&(m=o.sw,r.lineWidth=o.sw):m!==this.values.sWidth&&(m=this.values.sWidth,r.lineWidth=this.values.sWidth),o&&o.sc?f!==o.sc&&(f=o.sc,r.strokeStyle=o.sc):f!==this.values.stroke&&(f=this.values.stroke,r.strokeStyle=this.values.stroke),i=(p=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<i;n+=1)for(s=(h=p[n]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),a=2;a<s;a+=6)this.globalData.canvasContext.bezierCurveTo(h[a],h[a+1],h[a+2],h[a+3],h[a+4],h[a+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}o&&this.globalData.renderer.restore()}},CVEffects.prototype.renderFrame=function(){},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=HybridRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([HybridRenderer,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n,i=0;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n,i,a,s,r,o=e.sh.v,l=e.transformers,c=o._length;if(!(c<=1)){for(n=0;n<c-1;n+=1)i=this.getTransformedPoint(l,o.v[n]),a=this.getTransformedPoint(l,o.o[n]),s=this.getTransformedPoint(l,o.i[n+1]),r=this.getTransformedPoint(l,o.v[n+1]),this.checkBounds(i,a,s,r,t);o.c&&(i=this.getTransformedPoint(l,o.v[n]),a=this.getTransformedPoint(l,o.o[n]),s=this.getTransformedPoint(l,o.i[0]),r=this.getTransformedPoint(l,o.v[0]),this.checkBounds(i,a,s,r,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,i,a){this.getBoundsOfCurve(e,t,n,i);var s=this.shapeBoundingBox;a.x=bmMin(s.left,a.x),a.xMax=bmMax(s.right,a.xMax),a.y=bmMin(s.top,a.y),a.yMax=bmMax(s.bottom,a.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,i){for(var a,s,r,o,l,c,p,h=[[e[0],i[0]],[e[1],i[1]]],d=0;d<2;++d)s=6*e[d]-12*t[d]+6*n[d],a=-3*e[d]+9*t[d]-9*n[d]+3*i[d],r=3*t[d]-3*e[d],s|=0,r|=0,0==(a|=0)&&0===s||(0===a?(o=-r/s)>0&&o<1&&h[d].push(this.calculateF(o,e,t,n,i,d)):(l=s*s-4*r*a)>=0&&((c=(-s+bmSqrt(l))/(2*a))>0&&c<1&&h[d].push(this.calculateF(c,e,t,n,i,d)),(p=(-s-bmSqrt(l))/(2*a))>0&&p<1&&h[d].push(this.calculateF(p,e,t,n,i,d))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(e,t,n,i,a,s){return bmPow(1-e,3)*t[s]+3*bmPow(1-e,2)*e*n[s]+3*(1-e)*bmPow(e,2)*i[s]+bmPow(e,3)*a[s]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it&&this.calculateBoundingBox(e[n].it,t)},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,a="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=a,i.webkitTransform=a}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i,a,s=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",s.fClass)this.innerElem.className=s.fClass;else{t.fontFamily=s.fFamily;var r=e.fWeight,o=e.fStyle;t.fontStyle=o,t.fontWeight=r}var l,c,p,h=e.l;a=h.length;var d,f=this.mHelper,m="",u=0;for(i=0;i<a;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[u]?l=this.textPaths[u]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[u]?p=(c=this.textSpans[u]).children[0]:((c=createTag("div")).style.lineHeight=0,(p=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[u]?this.textPaths[u]:createNS("text"):this.textSpans[u]?(c=this.textSpans[u],l=this.textPaths[u]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var A,g=this.globalData.fontManager.getCharData(e.finalText[i],s.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(A=g?g.data:null,f.reset(),A&&A.shapes&&(d=A.shapes[0].it,f.scale(e.finalSize/100,e.finalSize/100),m=this.createPathShape(f,d),l.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),A&&A.shapes){document.body.appendChild(p);var y=p.getBBox();p.setAttribute("width",y.width+2),p.setAttribute("height",y.height+2),p.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=p.style,v="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=v,b.webkitTransform=v,h[i].yOffset=y.y-1}else p.setAttribute("width",1),p.setAttribute("height",1);c.appendChild(p)}}else if(l.textContent=h[i].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var _=l.style,w="translate3d(0,"+-e.finalSize/1.2+"px,0)";_.transform=w,_.webkitTransform=w}this.isMasked?this.textSpans[u]=l:this.textSpans[u]=c,this.textSpans[u].style.display="block",this.textPaths[u]=l,u+=1}for(;u<this.textSpans.length;)this.textSpans[u].style.display="none",u+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var n,i,a,s,r,o=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(i=c.length,n=0;n<i;n+=1)c[n].n?o+=1:(s=this.textSpans[n],r=this.textPaths[n],a=l[o],o+=1,a._mdf.m&&(this.isMasked?s.setAttribute("transform",a.m):(s.style.webkitTransform=a.m,s.style.transform=a.m)),s.style.opacity=a.o,a.sw&&a._mdf.sw&&r.setAttribute("stroke-width",a.sw),a.sc&&a._mdf.sc&&r.setAttribute("stroke",a.sc),a.fc&&a._mdf.fc&&(r.setAttribute("fill",a.fc),r.style.color=a.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var p=this.innerElem.getBBox();if(this.currentBBox.w!==p.width&&(this.currentBBox.w=p.width,this.svgElement.setAttribute("width",p.width)),this.currentBBox.h!==p.height&&(this.currentBBox.h=p.height,this.svgElement.setAttribute("height",p.height)),this.currentBBox.w!==p.width+2||this.currentBBox.h!==p.height+2||this.currentBBox.x!==p.x-1||this.currentBBox.y!==p.y-1){this.currentBBox.w=p.width+2,this.currentBBox.h=p.height+2,this.currentBBox.x=p.x-1,this.currentBBox.y=p.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=h,e.webkitTransform=h}}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,n,i,a=this.comp.threeDElements.length;for(e=0;e<a;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){n=t.perspectiveElem.style,i=t.container.style;var s=this.pe.v+"px",r="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=s,n.webkitPerspective=s,i.transformOrigin="0px 0px 0px",i.mozTransformOrigin="0px 0px 0px",i.webkitTransformOrigin="0px 0px 0px",n.transform=r,n.webkitTransform=r}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,n=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)n=this.hierarchy[e].finalTransform.mProp._mdf||n;if(n||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var i=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var a;a=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)),r=[a[0]/s,a[1]/s,a[2]/s],o=Math.sqrt(r[2]*r[2]+r[0]*r[0]),l=Math.atan2(r[1],o),c=Math.atan2(r[0],-r[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){var h,d,f;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(h=this.comp.threeDElements[e]).type){if(p){var m=this.mat.toCSS();(f=h.container.style).transform=m,f.webkitTransform=m}this.pe._mdf&&((d=h.perspectiveElem.style).perspective=this.pe.v+"px",d.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},HEffects.prototype.renderFrame=function(){};var animationManager=function(){var e={},t=[],n=0,i=0,a=0,s=!0,r=!1;function o(e){for(var n=0,a=e.target;n<i;)t[n].animation===a&&(t.splice(n,1),n-=1,i-=1,a.isPaused||p()),n+=1}function l(e,n){if(!e)return null;for(var a=0;a<i;){if(t[a].elem===e&&null!==t[a].elem)return t[a].animation;a+=1}var s=new AnimationItem;return h(s,e),s.setData(e,n),s}function c(){a+=1,m()}function p(){a-=1}function h(e,n){e.addEventListener("destroy",o),e.addEventListener("_active",c),e.addEventListener("_idle",p),t.push({elem:n,animation:e}),i+=1}function d(e){var o,l=e-n;for(o=0;o<i;o+=1)t[o].animation.advanceTime(l);n=e,a&&!r?window.requestAnimationFrame(d):s=!0}function f(e){n=e,window.requestAnimationFrame(d)}function m(){!r&&a&&s&&(window.requestAnimationFrame(f),s=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return h(t,null),t.setParams(e),t},e.setSpeed=function(e,n){var a;for(a=0;a<i;a+=1)t[a].animation.setSpeed(e,n)},e.setDirection=function(e,n){var a;for(a=0;a<i;a+=1)t[a].animation.setDirection(e,n)},e.play=function(e){var n;for(n=0;n<i;n+=1)t[n].animation.play(e)},e.pause=function(e){var n;for(n=0;n<i;n+=1)t[n].animation.pause(e)},e.stop=function(e){var n;for(n=0;n<i;n+=1)t[n].animation.stop(e)},e.togglePause=function(e){var n;for(n=0;n<i;n+=1)t[n].animation.togglePause(e)},e.searchAnimations=function(e,t,n){var i,a=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=a.length;for(i=0;i<s;i+=1)n&&a[i].setAttribute("data-bm-type",n),l(a[i],e);if(t&&0===s){n||(n="svg");var r=document.getElementsByTagName("body")[0];r.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",n),r.appendChild(o),l(o,e)}},e.resize=function(){var e;
vendor: 14,636 bytes, line 2
2for(e=0;e<i;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,n,a){var s;for(s=0;s<i;s+=1)t[s].animation.goToAndStop(e,n,a)},e.destroy=function(e){var n;for(n=i-1;n>=0;n-=1)t[n].animation.destroy(e)},e.freeze=function(){r=!0},e.unfreeze=function(){r=!1,m()},e.setVolume=function(e,n){var a;for(a=0;a<i;a+=1)t[a].animation.setVolume(e,n)},e.mute=function(e){var n;for(n=0;n<i;n+=1)t[n].animation.mute(e)},e.unmute=function(e){var n;for(n=0;n<i;n+=1)t[n].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,n=t.length,i=[];for(e=0;e<n;e+=1)i.push(t[e].animation);return i},e}(),AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=subframeEnabled,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";switch(e.animType?t=e.animType:e.renderer&&(t=e.renderer),t){case"canvas":this.renderer=new CanvasRenderer(this,e.rendererSettings);break;case"svg":this.renderer=new SVGRenderer(this,e.rendererSettings);break;default:this.renderer=new HybridRenderer(this,e.rendererSettings)}this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!=typeof t&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},i=e.attributes;n.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",n.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:"canvas";var a=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";"false"===a?n.loop=!1:"true"===a?n.loop=!0:""!==a&&(n.loop=parseInt(a,10));var s=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;n.autoplay="false"!==s,n.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,i=this.animationData.layers,a=i.length,s=e.layers,r=s.length;for(n=0;n<r;n+=1)for(t=0;t<a;){if(i[t].id===s[n].id){i[t]=s[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(a=e.assets.length,t=0;t<a;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e,expressionsPlugin&&expressionsPlugin.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()&&(this.isLoaded=!0,expressionsPlugin&&expressionsPlugin.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var i=Number(e);if(isNaN(i)){var a=this.getMarkerData(e);a&&this.goToAndStop(a.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var i=Number(e);if(isNaN(i)){var a=this.getMarkerData(e);a&&(a.duration?this.playSegments([a.time,a.time+a.duration],!0):this.goToAndStop(a.time,!0))}else this.goToAndStop(i,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"==typeof e[0]){var n,i=e.length;for(n=0;n<i;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":case"drawnFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;
vendor: 4,504 bytes, line 2
2case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var Expressions=function(){var e={initExpressions:function(e){var t=0,n=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=n.length;for(e=0;e<t;e+=1)n[e].release();n.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===n.indexOf(e)&&n.push(e)}}};return e}();expressionsPlugin=Expressions;var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||"boolean"===e||"string"===e||t instanceof Number}function $bm_neg(e){var t=typeof e;if("number"===t||"boolean"===t||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var n,i=e.length,a=[];for(n=0;n<i;n+=1)a[n]=-e[n];return a}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=typeof e,i=typeof t;if("string"===n||"string"===i)return e+t;if(isNumerable(n,e)&&isNumerable(i,t))return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var a=0,s=e.length,r=t.length,o=[];a<s||a<r;)("number"==typeof e[a]||e[a]instanceof Number)&&("number"==typeof t[a]||t[a]instanceof Number)?o[a]=e[a]+t[a]:o[a]=void 0===t[a]?e[a]:e[a]||t[a],a+=1;return o}return 0}var add=sum;function sub(e,t){var n=typeof e,i=typeof t;if(isNumerable(n,e)&&isNumerable(i,t))return"string"===n&&(e=parseInt(e,10)),"string"===i&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var a=0,s=e.length,r=t.length,o=[];a<s||a<r;)("number"==typeof e[a]||e[a]instanceof Number)&&("number"==typeof t[a]||t[a]instanceof Number)?o[a]=e[a]-t[a]:o[a]=void 0===t[a]?e[a]:e[a]||t[a],a+=1;return o}return 0}function mul(e,t){var n,i,a,s=typeof e,r=typeof t;if(isNumerable(s,e)&&isNumerable(r,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t)){for(a=e.length,n=createTypedArray("float32",a),i=0;i<a;i+=1)n[i]=e[i]*t;return n}if(isNumerable(s,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,n=createTypedArray("float32",a),i=0;i<a;i+=1)n[i]=e*t[i];return n}return 0}function div(e,t){var n,i,a,s=typeof e,r=typeof t;if(isNumerable(s,e)&&isNumerable(r,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t)){for(a=e.length,n=createTypedArray("float32",a),i=0;i<a;i+=1)n[i]=e[i]/t;return n}if(isNumerable(s,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,n=createTypedArray("float32",a),i=0;i<a;i+=1)n[i]=e/t[i];return n}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var i=n;n=t,t=i}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}
vendor: 8,788 bytes, line 2
2var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var n;t||(t=helperLengthArray);var i=Math.min(e.length,t.length),a=0;for(n=0;n<i;n+=1)a+=Math.pow(t[n]-e[n],2);return Math.sqrt(a)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,n,i=e[0],a=e[1],s=e[2],r=Math.max(i,a,s),o=Math.min(i,a,s),l=(r+o)/2;if(r===o)t=0,n=0;else{var c=r-o;switch(n=l>.5?c/(2-r-o):c/(r+o),r){case i:t=(a-s)/c+(a<s?6:0);break;case a:t=(s-i)/c+2;break;case s:t=(i-a)/c+4}t/=6}return[t,n,l,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,i,a=e[0],s=e[1],r=e[2];if(0===s)t=r,i=r,n=r;else{var o=r<.5?r*(1+s):r+s-r*s,l=2*r-o;t=hue2rgb(l,o,a+1/3),n=hue2rgb(l,o,a),i=hue2rgb(l,o,a-1/3)}return[t,n,i,e[3]]}function linear(e,t,n,i,a){if(void 0!==i&&void 0!==a||(i=t,a=n,t=0,n=1),n<t){var s=n;n=t,t=s}if(e<=t)return i;if(e>=n)return a;var r,o=n===t?0:(e-t)/(n-t);if(!i.length)return i+(a-i)*o;var l=i.length,c=createTypedArray("float32",l);for(r=0;r<l;r+=1)c[r]=i[r]+(a[r]-i[r])*o;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var n,i=t.length;e||(e=createTypedArray("float32",i));var a=createTypedArray("float32",i),s=BMMath.random();for(n=0;n<i;n+=1)a[n]=e[n]+s*(t[n]-e[n]);return a}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,n,i){var a,s=e.length,r=shapePool.newElement();r.setPathData(!!i,s);var o,l,c=[0,0];for(a=0;a<s;a+=1)o=t&&t[a]?t[a]:c,l=n&&n[a]?n[a]:c,r.setTripleAt(e[a][0],e[a][1],l[0]+e[a][0],l[1]+e[a][1],o[0]+e[a][0],o[1]+e[a][1],a,!0);return r}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var n,i,a=this.pv.length?this.pv.length:1,s=createTypedArray("float32",a),r=Math.floor(5*time);for(n=0,i=0;n<r;){for(i=0;i<a;i+=1)s[i]+=-t+2*t*BMMath.random();n+=1}var o=5*time,l=o-Math.floor(o),c=createTypedArray("float32",a);if(a>1){for(i=0;i<a;i+=1)c[i]=this.pv[i]+s[i]+(-t+2*t*BMMath.random())*l;return c}return this.pv+s[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,i,0]}function easeOut(e,t,n,i,a){return applyEase(easeOutBez,e,t,n,i,a)}function easeIn(e,t,n,i,a){return applyEase(easeInBez,e,t,n,i,a)}function ease(e,t,n,i,a){return applyEase(easeInOutBez,e,t,n,i,a)}function applyEase(e,t,n,i,a,s){void 0===a?(a=n,s=i):t=(t-n)/(i-n),t>1?t=1:t<0&&(t=0);var r=e(t);if($bm_isInstanceOfArray(a)){var o,l=a.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=(s[o]-a[o])*r+a[o];return c}return(s-a)*r+a}function nearestKey(e){var t,n,i,a=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(n=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,i=data.k[0].t;else{for(t=0;t<a-1;t+=1){if(e===data.k[t].t){n=t+1,i=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,i=data.k[t+1].t):(n=t+1,i=data.k[t].t);break}}-1===n&&(n=t+1,i=data.k[t].t)}else n=0,i=0;var s={};return s.index=n,s.time=i/elem.comp.globalData.frameRate,s}function key(e){var t,n,i;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var a=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=a.length,n=0;n<i;n+=1)t[n]=a[n],t.value[n]=a[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,"shape"===scoped_bm_rt.propType&&(scoped_bm_rt=scoped_bm_rt.v),scoped_bm_rt)}return executeExpression}return ob.initiateExpression=initiateExpression,ob}(),expressionHelpers={searchExpressions:function(e,t,n){t.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(e,t,n).bind(n)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),n=this.getValueAtTime(e+-.01),i=0;if(t.length){var a;for(a=0;a<t.length;a+=1)i+=Math.pow(n[a]-t[a],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,n,i=this.getValueAtTime(e),a=this.getValueAtTime(e+-.001);if(i.length)for(t=createTypedArray("float32",i.length),n=0;n<i.length;n+=1)t[n]=(a[n]-i[n])/-.001;else t=(a-i)/-.001;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};!function(){function e(e,t,n){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var i,a,s,r,o,l=this.comp.renderedFrame,c=this.keyframes,p=c[c.length-1].t;if(l<=p)return this.pv;if(n?a=p-(i=t?Math.abs(p-this.elem.comp.globalData.frameRate*t):Math.max(0,p-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),i=p-(a=c[c.length-1-t].t)),"pingpong"===e){if(M
vendor: 2,502 bytes, line 2
2ath.floor((l-a)/i)%2!=0)return this.getValueAtTime((i-(l-a)%i+a)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var h=this.getValueAtTime(a/this.comp.globalData.frameRate,0),d=this.getValueAtTime(p/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-a)%i+a)/this.comp.globalData.frameRate,0),m=Math.floor((l-a)/i);if(this.pv.length){for(r=(o=new Array(h.length)).length,s=0;s<r;s+=1)o[s]=(d[s]-h[s])*m+f[s];return o}return(d-h)*m+f}if("continue"===e){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),A=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(r=(o=new Array(u.length)).length,s=0;s<r;s+=1)o[s]=u[s]+(u[s]-A[s])*((l-p)/this.comp.globalData.frameRate)/5e-4;return o}return u+(l-p)/.001*(u-A)}}return this.getValueAtTime(((l-a)%i+a)/this.comp.globalData.frameRate,0)}function t(e,t,n){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var i,a,s,r,o,l=this.comp.renderedFrame,c=this.keyframes,p=c[0].t;if(l>=p)return this.pv;if(n?a=p+(i=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-p)):((!t||t>c.length-1)&&(t=c.length-1),i=(a=c[t].t)-p),"pingpong"===e){if(Math.floor((p-l)/i)%2==0)return this.getValueAtTime(((p-l)%i+p)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var h=this.getValueAtTime(p/this.comp.globalData.frameRate,0),d=this.getValueAtTime(a/this.comp.globalData.frameRate,0),f=this.getValueAtTime((i-(p-l)%i+p)/this.comp.globalData.frameRate,0),m=Math.floor((p-l)/i)+1;if(this.pv.length){for(r=(o=new Array(h.length)).length,s=0;s<r;s+=1)o[s]=f[s]-(d[s]-h[s])*m;return o}return f-(d-h)*m}if("continue"===e){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),A=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(r=(o=new Array(u.length)).length,s=0;s<r;s+=1)o[s]=u[s]+(u[s]-A[s])*(p-l)/.001;return o}return u+(u-A)*(p-l)/.001}}return this.getValueAtTime((i-((p-l)%i+p))/this.comp.globalData.frameRate,0)}function n(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var n,i,a=this.comp.renderedFrame/this.comp.globalData.frameRate,s=a-e,r=t>1?(a+e-s)/(t-1):1,o=0,l=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;o<t;){if(i=this.getValueAtTime(s+o*r),this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]+=i[l];else n+=i;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]/=t;else n/=t;return n}function i(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:ne
vendor: 7,191 bytes, line 2
2w Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(e);t.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var i=this.s.getValueAtTime(e);t.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var a=this.sk.getValueAtTime(e),s=this.sa.getValueAtTime(e);t.skewFromAxis(-a*this.sk.mult,s*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var r=this.r.getValueAtTime(e);t.rotate(-r*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),p=this.or.getValueAtTime(e);t.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-p[2]*this.or.mult).rotateY(p[1]*this.or.mult).rotateX(p[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var h=this.px.getValueAtTime(e),d=this.py.getValueAtTime(e);if(this.data.p.z){var f=this.pz.getValueAtTime(e);t.translate(h*this.px.mult,d*this.py.mult,-f*this.pz.mult)}else t.translate(h*this.px.mult,d*this.py.mult,0)}else{var m=this.p.getValueAtTime(e);t.translate(m[0]*this.p.mult,m[1]*this.p.mult,-m[2]*this.p.mult)}return t}function a(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,n){var r=s(e,t,n);return r.dynamicProperties.length?r.getValueAtTime=i.bind(r):r.getValueAtTime=a.bind(r),r.setGroupProperty=expressionHelpers.setGroupProperty,r};var r=PropertyFactory.getProp;PropertyFactory.getProp=function(i,a,s,o,l){var c=r(i,a,s,o,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=n,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===a.a?a.k.length:0,c.propertyIndex=a.ix;var p=0;return 0!==s&&(p=createTypedArray("float32",1===a.a?a.k[0].s.length:a.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:p},expressionHelpers.searchExpressions(i,a,c),c.k&&l.addDynamicProperty(c),c};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var n,i=this.v;void 0!==t&&(i=this.getValueAtTime(t,0));var a=i._length,s=i[e],r=i.v,o=createSizedArray(a);for(n=0;n<a;n+=1)o[n]="i"===e||"o"===e?[s[n][0]-r[n][0],s[n][1]-r[n][1]]:[s[n][0],s[n][1]];return o},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var i,a=this._segmentsLength,s=a.lengths,r=a.totalLength*e,o=0,l=s.length,c=0;o<l;){if(c+s[o].addedLength>r){var p=o,h=n.c&&o===l-1?0:o+1,d=(r-c)/s[o].addedLength;i=bez.getPointInSegment(n.v[p],n.v[h],n.o[p],n.i[h],d,s[o]);break}c+=s[o].addedLength,o+=1}return i||(i=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),i},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var i=this.pointOnPath(e,t),a=this.pointOnPath(e+.001,t),s=a[0]-i[0],r=a[1]-i[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(r,2));return 0===o?[0,0]:"tangent"===n?[s/o,r/o]:[-r/o,s/o]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],o),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var p=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,n,i,a){var s=p(e,t,n,i,a);return s.propertyIndex=t.ix,s.lock=!1,3===n?expressionHelpers.searchExpressions(e,t.pt,s):4===n&&expressionHelpers.searchExpressions(e,t.ks,s),s.k&&e.addDynamicProperty(s),s}}(),TextProperty.prototype.getExpressionValue=function(e,t){var n=this.calculateExpression(t);if(e.t!==n){var i={};return this.copyData(i,e),i.t=n.toString(),i.__complete=!1,i}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null};var ShapePathInterface=function(e,t,n){var i=t.sh;function a(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?a.path:null}var s=propertyGroupFactory(a,n);return i.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(a,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),a},propertyGroupFactory=function(e,t){return function(n){return(n=void 0===n?1:n)<=0?e:t(n-1)}},PropertyInterface=function(e,t){var n={_name:e};return function(e){return(e=void 0===e?1:e)<=0?n:t(e-1)}},ShapeExpressionInterface=function(){function e(e,o,f){var m,u=[],A=e?e.length:0;for(m=0;m<A;m+=1)"gr"===e[m].ty?u.push(t(e[m],o[m],f)):"fl"===e[m].ty?u.push(n(e[m],o[m],f)):"st"===e[m].ty?u.push(s(e[m],o[m],f)):"tm"===e[m].ty?u.push(r(e[m],o[m],f)):"tr"===e[m].ty||("el"===e[m].ty?u.push(l(e[m],o[m],f)):"sr"===e[m].ty?u.push(c(e[m],o[m],f)):"sh"===e[m].ty?u.push(ShapePathInterface(e[m],o[m],f)):"rc"===e[m].ty?u.push(p(e[m],o[m],f)):"rd"===e[m].ty?u.push(h(e[m],o[m],f)):"rp"===e[m].ty?u.push(d(e[m],o[m],f)):"gf"===e[m].ty?u.push(i(e[m],o[m],f)):u.push((e[m],o[m],function(){return null})));return u}function t(t,n,i){var a=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return a.content;default:return a.transform}};a.propertyGroup=propertyGroupFactory(a,i);var s=function(t,n,i){var a,s=function(e){for(var t=0,n=a.length;t<n;){if(a[t]._name===e||a[t].mn===e||a[t].propertyIndex===e||a[t].ix===e||a[t].ind===e)return a[t];t+=1}return"number"==typeof e?a[e-1]:null};s.propertyGroup=propertyGroupFactory(s,i),a=e(t.it,n.it,s.propertyGroup),s.numProperties=a.length;var r=o(t.it[t.it.length-1],n.it[n.it.length-1],s.propertyGroup);return s.transform=r,s.propertyIndex=t.cix,s._name=t.nm,s}
vendor: 4,563 bytes, line 2
2(t,n,a.propertyGroup),r=o(t.it[t.it.length-1],n.it[n.it.length-1],a.propertyGroup);return a.content=s,a.transform=r,Object.defineProperty(a,"_name",{get:function(){return t.nm}}),a.numProperties=t.np,a.propertyIndex=t.ix,a.nm=t.nm,a.mn=t.mn,a}function n(e,t,n){function i(e){return"Color"===e||"color"===e?i.color:"Opacity"===e||"opacity"===e?i.opacity:null}return Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),i}function i(e,t,n){function i(e){return"Start Point"===e||"start point"===e?i.startPoint:"End Point"===e||"end point"===e?i.endPoint:"Opacity"===e||"opacity"===e?i.opacity:null}return Object.defineProperties(i,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",n)),t.e.setGroupProperty(PropertyInterface("End Point",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),i}function s(e,t,n){var i,a=propertyGroupFactory(c,n),s=propertyGroupFactory(l,a);function r(n){Object.defineProperty(l,e.d[n].nm,{get:ExpressionPropertyInterface(t.d.dataProps[n].p)})}var o=e.d?e.d.length:0,l={};for(i=0;i<o;i+=1)r(i),t.d.dataProps[i].p.setGroupProperty(s);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",a)),t.o.setGroupProperty(PropertyInterface("Opacity",a)),t.w.setGroupProperty(PropertyInterface("Stroke Width",a)),c}function r(e,t,n){function i(t){return t===e.e.ix||"End"===t||"end"===t?i.end:t===e.s.ix?i.start:t===e.o.ix?i.offset:null}var a=propertyGroupFactory(i,n);return i.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",a)),t.e.setGroupProperty(PropertyInterface("End",a)),t.o.setGroupProperty(PropertyInterface("Offset",a)),i.propertyIndex=e.ix,i.propertyGroup=n,Object.defineProperties(i,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),i.mn=e.mn,i}function o(e,t,n){function i(t){return e.a.ix===t||"Anchor Point"===t?i.anchorPoint:e.o.ix===t||"Opacity"===t?i.opacity:e.p.ix===t||"Position"===t?i.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?i.rotation:e.s.ix===t||"Scale"===t?i.scale:e.sk&&e.sk.ix===t||"Skew"===t?i.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?i.skewAxis:null}var a=propertyGroupFactory(i,n);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",a)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",a)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",a)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",a)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",a)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",a)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",a))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",a)),Object.defineProperties(i,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),i.ty="tr",i.mn=e.mn,i.propertyGroup=n,i}function l(e,t,n){function i(t){return e.p.ix===t?i.position:e.s.ix===t?i.size:null}var a=propertyGroupFactory(i,n);i.propertyIndex=e.ix;var s="tm"===t.sh.ty?t.sh.prop:t.sh;return s.s.setGroupProperty(PropertyInterface("Size",a)),s.p.setGroupProperty(PropertyInterface("Position",a)),Object.defineProperties(i,{size:{get:ExpressionPropertyInterface(s.s)},position:{get:ExpressionPropertyInterface(s.p)},_name:{value:e.nm}}),i.mn=e.mn,i}
vendor: 14,233 bytes, line 2
2function c(e,t,n){function i(t){return e.p.ix===t?i.position:e.r.ix===t?i.rotation:e.pt.ix===t?i.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?i.outerRadius:e.os.ix===t?i.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?i.innerRoundness:null:i.innerRadius}var a=propertyGroupFactory(i,n),s="tm"===t.sh.ty?t.sh.prop:t.sh;return i.propertyIndex=e.ix,s.or.setGroupProperty(PropertyInterface("Outer Radius",a)),s.os.setGroupProperty(PropertyInterface("Outer Roundness",a)),s.pt.setGroupProperty(PropertyInterface("Points",a)),s.p.setGroupProperty(PropertyInterface("Position",a)),s.r.setGroupProperty(PropertyInterface("Rotation",a)),e.ir&&(s.ir.setGroupProperty(PropertyInterface("Inner Radius",a)),s.is.setGroupProperty(PropertyInterface("Inner Roundness",a))),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(s.p)},rotation:{get:ExpressionPropertyInterface(s.r)},points:{get:ExpressionPropertyInterface(s.pt)},outerRadius:{get:ExpressionPropertyInterface(s.or)},outerRoundness:{get:ExpressionPropertyInterface(s.os)},innerRadius:{get:ExpressionPropertyInterface(s.ir)},innerRoundness:{get:ExpressionPropertyInterface(s.is)},_name:{value:e.nm}}),i.mn=e.mn,i}function p(e,t,n){function i(t){return e.p.ix===t?i.position:e.r.ix===t?i.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?i.size:null}var a=propertyGroupFactory(i,n),s="tm"===t.sh.ty?t.sh.prop:t.sh;return i.propertyIndex=e.ix,s.p.setGroupProperty(PropertyInterface("Position",a)),s.s.setGroupProperty(PropertyInterface("Size",a)),s.r.setGroupProperty(PropertyInterface("Rotation",a)),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(s.p)},roundness:{get:ExpressionPropertyInterface(s.r)},size:{get:ExpressionPropertyInterface(s.s)},_name:{value:e.nm}}),i.mn=e.mn,i}function h(e,t,n){function i(t){return e.r.ix===t||"Round Corners 1"===t?i.radius:null}var a=propertyGroupFactory(i,n),s=t;return i.propertyIndex=e.ix,s.rd.setGroupProperty(PropertyInterface("Radius",a)),Object.defineProperties(i,{radius:{get:ExpressionPropertyInterface(s.rd)},_name:{value:e.nm}}),i.mn=e.mn,i}function d(e,t,n){function i(t){return e.c.ix===t||"Copies"===t?i.copies:e.o.ix===t||"Offset"===t?i.offset:null}var a=propertyGroupFactory(i,n),s=t;return i.propertyIndex=e.ix,s.c.setGroupProperty(PropertyInterface("Copies",a)),s.o.setGroupProperty(PropertyInterface("Offset",a)),Object.defineProperties(i,{copies:{get:ExpressionPropertyInterface(s.c)},offset:{get:ExpressionPropertyInterface(s.o)},_name:{value:e.nm}}),i.mn=e.mn,i}return function(t,n,i){var a;function s(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?i:a[e-1];for(var t=0,n=a.length;t<n;){if(a[t]._name===e)return a[t];t+=1}return null}return s.propertyGroup=propertyGroupFactory(s,(function(){return i})),a=e(t,n,s.propertyGroup),s.numProperties=a.length,s._name="Contents",s}}(),TextExpressionInterface=function(e){var t;function n(e){switch(e){case"ADBE Text Document":return n.sourceText;default:return null}}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var n=e.textProperty.currentData.t;return void 0!==n&&(e.textProperty.currentData.t=void 0,(t=new String(n)).value=n||new String(n)),t}}),n},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,e)}function n(e,t){var n=this.getMatrix(t);return this.applyPoint(n,e)}function i(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,e)}function a(e,t){var n=this.getMatrix(t);return this.invertPoint(n,e)}function s(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,i=this._elem.hierarchy.length;for(n=0;n<i;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function r(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,i=this._elem.hierarchy.length;for(n=0;n<i;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function o(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var n,i=this._elem.hierarchy.length;for(n=0;n<i;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var p;function h(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return p;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=e,h.invertPoint=r,h.applyPoint=s,h.toWorld=n,h.toWorldVec=t,h.fromWorld=a,h.fromWorldVec=i,h.toComp=n,h.fromComp=o,h.sampleImage=l,h.sourceRectAtTime=c.sourceRectAtTime.bind(c),h._elem=c;var d=getDescriptor(p=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(p,"rotation"),scale:getDescriptor(p,"scale"),position:getDescriptor(p,"position"),opacity:getDescriptor(p,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return p}},active:{get:function(){return c.isInRange}}}),h.startTime=c.data.st,h.index=c.data.ind,h.source=c.data.refId,h.height=0===c.data.ty?c.data.h:100,h.width=0===c.data.ty?c.data.w:100,h.inPoint=c.data.ip/c.comp.globalData.frameRate,h.outPoint=c.data.op/c.comp.globalData.frameRate,h._name=c.data.nm,h.registerMaskInterface=function(e){h.mask=new MaskManagerInterface(e,c)},h.registerEffectsInterface=function(e){h.effect=e},h}}(),FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",n=e.getFootageData();function i(e){if(n[e])return t=e,"object"==typeof(n=n[e])?i:n;var a=e.indexOf(t);if(-1!==a){var s=parseInt(e.substr(a+t.length),10);return"object"==typeof(n=n[s])?i:n}return""}return function(){return t="",n=e.getFootageData(),i}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,CompExpressionInterface=function(e){function t(t){for(var n=0,i=e.layers.length;n<i;){if(e.layers[n].nm===t||e.layers[n].ind===t)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t},TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var n,i,a,s;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?s=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(a=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?s():[n(),i(),a?a():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),EffectsExpressionInterface=function(){function e(n,i,a,s){function r(e){for(var t=n.ef,i=0,a=t.length;i<a;){if(e===t[i].nm||e===t[i].mn||e===t[i].ix)return 5===t[i].ty?c[i]:c[i]();i+=1}throw new Error}var o,l=propertyGroupFactory(r,a),c=[],p=n.ef.length;for(o=0;o<p;o+=1)5===n.ef[o].ty?c.push(e(n.ef[o],i.effectElements[o],i.effectElements[o].propertyGroup,s)):c.push(t(i.effectElements[o],n.ef[o].ty,s,l));return"ADBE Color Control"===n.mn&&Object.defineProperty(r,"color",{get:function(){return c[0]()}}),Object.defineProperties(r,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:l}}),r.enabled=0!==n.en,r.active=r.enabled,r}function t(e,t,n,i){var a=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",i)),function(){return 10===t?n.comp.compInterface(e.p.v):a()}}return{createEffectsInterface:function(t,n){if(t.effectsManager){var i,a=[],s=t.data.ef,r=t.effectsManager.effectElements.length;for(i=0;i<r;i+=1)a.push(e(s[i],t.effectsManager.effectElements[i],n,t));var o=t.data.ef||[],l=function(e){for(i=0,r=o.length;i<r;){if(e===o[i].nm||e===o[i].mn||e===o[i].ix)return a[i];i+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}}}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var n,i=createSizedArray(t.viewData.length),a=t.viewData.length;for(n=0;n<a;n+=1)i[n]=new e(t.viewData[n],t.masksProperties[n]);return function(e){for(n=0;n<a;){if(t.masksProperties[n].nm===e)return i[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(e,t,n){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(i){if(!e.numKeys)return 0;var a;a="s"in t.keyframes[i-1]?t.keyframes[i-1].s:"e"in t.keyframes[i-2]?t.keyframes[i-2].e:t.keyframes[i-2].s;var s="unidimensional"===n?new Number(a):Object.assign({},a);return s.time=t.keyframes[i-1].t/t.elem.comp.globalData.frameRate,s.value="unidimensional"===n?a[0]:a,s},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function i(){return e}return function(a){return a?"unidimensional"===a.propType?function(t){t&&"pv"in t||(t=e);var i=1/t.mult,a=t.pv*i,s=new Number(a);return s.value=a,n(s,t,"unidimensional"),function(){return t.k&&t.getValue(),a=t.v*i,s.value!==a&&((s=new Number(a)).value=a,n(s,t,"unidimensional")),s}}(a):function(e){e&&"pv"in e||(e=t);var i=1/e.mult,a=e.data&&e.data.l||e.pv.length,s=createTypedArray("float32",a),r=createTypedArray("float32",a);return s.value=r,n(s,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<a;t+=1)r[t]=e.v[t]*i,s[t]=r[t];return s}}(a):i}}(),TextExpressionSelectorPropFactory=function(){function e(e,t){return this.textIndex=e+1,this.textTotal=t,this.v=this.getValue()*this.mult,this.v}return function(t,n){this.pv=1,this.comp=t.comp,this.elem=t,this.mult=.01,this.propType="textSelector",this.textTotal=n.totalChars,this.selectorValue=100,this.lastValue=[1,1,1],this.k=!0,this.x=!0,this.getValue=ExpressionManager.initiateExpression.bind(this)(t,n,this),this.getMult=e,this.getVelocityAtTime=expressionHelpers.getVelocityAtTime,this.kf?this.getValueAtTime=expressionHelpers.getValueAtTime.bind(this):this.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(this),this.setGroupProperty=expressionHelpers.setGroupProperty}}(),propertyGetTextProp=TextSelectorProp.getTextSelectorProp;function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n,i=e.ef||[];this.effectElements=[];var a,s=i.length;for(n=0;n<s;n+=1)a=new GroupEffect(i[n],t),this.effectElements.push(a)}function GroupEffect(e,t){this.init(e,t)}TextSelectorProp.getTextSelectorProp=function(e,t,n){return 1===t.t?new TextExpressionSelectorPropFactory(e,t,n
2):propertyGetTextProp(e,t,n)},extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var i,a=this.data.ef.length,s=this.data.ef;for(n=0;n<a;n+=1){switch(i=null,s[n].ty){case 0:i=new SliderEffect(s[n],t,this);break;case 1:i=new AngleEffect(s[n],t,this);break;case 2:i=new ColorEffect(s[n],t,this);break;case 3:i=new PointEffect(s[n],t,this);break;case 4:case 7:i=new CheckboxEffect(s[n],t,this);break;case 10:i=new LayerIndexEffect(s[n],t,this);break;case 11:i=new MaskIndexEffect(s[n],t,this);break;case 5:i=new EffectsManager(s[n],t,this);break;default:i=new NoValueEffect(s[n],t,this)}i&&this.effectElements.push(i)}};var lottie={};function setLocationHref(e){locationHref=e}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){subframeEnabled=e}function setIDPrefix(e){idPrefix=e}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":defaultCurveSegments=200;break;default:case"medium":defaultCurveSegments=50;break;case"low":defaultCurveSegments=10}else!isNaN(e)&&e>1&&(defaultCurveSegments=e);roundValues(!(defaultCurveSegments>=50))}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&(expressionsPlugin=t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var i=t[n].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocationHref,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=function(e){_useWebWorker=e},lottie.setIDPrefix=setIDPrefix,lottie.__getFactory=getFactory,lottie.version="5.8.1";var standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="",queryString;if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src.replace(/^[^\?]+\??/,""),renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);return lottie}))})),_templateObject$1,styles=css(_templateObject$1||(_templateObject$1=_taggedTemplateLiteral(["\n * {\n box-sizing: border-box;\n }\n\n :host {\n --lottie-player-toolbar-height: 35px;\n --lottie-player-toolbar-background-color: transparent;\n --lottie-player-toolbar-icon-color: #999;\n --lottie-player-toolbar-icon-hover-color: #222;\n --lottie-player-toolbar-icon-active-color: #555;\n --lottie-player-seeker-track-color: #ccc;\n --lottie-player-seeker-thumb-color: rgba(0, 107, 120, 0.8);\n\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .main {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n }\n\n .animation {\n width: 100%;\n height: 100%;\n display: flex;\n }\n .animation.controls {\n height: calc(100% - 35px);\n }\n\n .toolbar {\n display: flex;
2\n align-items: center;\n justify-items: center;\n background-color: var(--lottie-player-toolbar-background-color);\n margin: 0 5px;\n height: 35px;\n }\n\n .toolbar button {\n cursor: pointer;\n fill: var(--lottie-player-toolbar-icon-color);\n display: flex;\n background: none;\n border: 0;\n padding: 0;\n outline: none;\n height: 100%;\n }\n\n .toolbar button:hover {\n fill: var(--lottie-player-toolbar-icon-hover-color);\n }\n\n .toolbar button.active {\n fill: var(--lottie-player-toolbar-icon-active-color);\n }\n\n .toolbar button svg {\n }\n\n .toolbar button.disabled svg {\n display: none;\n }\n\n .seeker {\n -webkit-appearance: none;\n width: 95%;\n outline: none;\n background-color: var(--lottie-player-toolbar-background-color);\n }\n\n .seeker::-webkit-slider-runnable-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-webkit-slider-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -webkit-appearance: none;\n margin-top: -5px;\n }\n .seeker:focus::-webkit-slider-runnable-track {\n background: #999;\n }\n .seeker::-moz-range-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-moz-range-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n }\n .seeker::-ms-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n color: transparent;\n }\n .seeker::-ms-fill-lower {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-ms-thumb {\n border: 0;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n }\n .seeker:focus::-ms-fill-lower {\n background: var(--lottie-player-seeker-track-color);\n }\n .seeker:focus::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n }\n\n .error {\n display: flex;\n justify-content: center;\n height: 100%;\n align-items: center;\n }\n"]))),_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,PlayerState,PlayMode,PlayerEvents,t;function parseSrc(e){if("object"==typeof e)return e;try{return JSON.parse(e)}catch(t){return new URL(e,window.location.href).toString()}}function isLottie(e){return["v","ip","op","layers","fr","w","h"].every(t=>Object.prototype.hasOwnProperty.call(e,t))}function fromURL(e){return _fromURL.apply(this,arguments)}function _fromURL(){return(_fromURL=_asyncToGenerator((function*(e){if("string"!=typeof e)throw new Error("The url value must be a string");var t;try{var n=new URL(e),i=yield fetch(n.toString());t=yield i.json()}catch(e){throw new Error("An error occurred while trying to load the Lottie file from URL")}return t}))).apply(this,arguments)}t=PlayerState||(PlayerState={}),t.Destroyed="destroyed",t.Error="error",t.Frozen="frozen",t.Loading="loading",t.Paused="paused",t.Playing="playing",t.Stopped="stopped",function(e){e.Bounce="bounce",e.Normal="normal"}(PlayMode||(PlayMode={})),function(e){e.Complete="complete",e.Destroyed="destroyed",e.Error="error",e.Frame="frame",e.Freeze="freeze",e.Load="load",e.Loop="loop",e.Pause="pause",e.Play="play",e.Ready="ready",e.Rendered="rendered",e.Stop="stop"}(PlayerEvents||(PlayerEvents={}));var LottiePlayer=class extends LitElement{constructor(){super(...arguments),this.autoplay=!1,this.background="transparent",this.controls=!1,this.currentState=PlayerState.Loading,this.description="Lottie animation",this.direction=1,this.hover=!1,this.intermission=1,this.loop=!1,this.mode=PlayMode.Normal,this.preserveAspectRatio="xMidYMid meet",this.renderer="svg",this.speed=1,this._io=void 0,this._counter=1}load(e){var t=this;return _asyncToGenerator((function*(){if(t.shadowRoot){var n={container:t.container,loop:!1,autoplay:!1,renderer:t.renderer,rendererSettings:{preserveAspectRatio:t.preserveAspectRatio,clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0}};try{var i=parseSrc(e),a={},s="string"==typeof i?"path":"animationData";t._lottie&&t._lottie.destroy(),t.webworkers&&lottie.useWebWorker(!0),t._lottie=lottie.loadAnimation(Object.assign(Object.assign({},n),{[s]:i})),t._attachEventListeners(),"path"===s?(a=yield fromURL(i),s="animationData"):a=i,isLottie(a)||(t.currentState=PlayerState.Error,t.dispatchEvent(new CustomEvent(PlayerEvents.Error)))}catch(e){t.currentState=PlayerState.Error,t.dispatchEvent(new CustomEvent(PlayerEvents.Error))}}}))()}getLottie(){return this._lottie}play(){this._lottie&&(this._lottie.play(),this.currentState=PlayerState.Playing,this.dispatchEvent(new CustomEvent(PlayerEvents.Play)))}pause(){this._lottie&&(this._lottie.pause(),this.currentState=PlayerState.Paused,this.dispatchEvent(new CustomEvent(PlayerEvents.Pause)))}stop(){this._lottie&&(this._counter=1,this._lottie.stop(),this.currentState=PlayerState.Stopped,this.dispatchEvent(new CustomEvent(PlayerEvents.Stop)))}destroy(){this._lottie&&(this._lottie.destroy(),this.currentState=PlayerState.Destroyed,this.dispatchEvent(new CustomEvent(PlayerEvents.Destroyed)),this.remove())}seek(e){if(this._lottie){var t=/^(\d+)(%?)$/.exec(e.toString());if(t){var n="%"===t[2]?this._lottie.totalFrames*Number(t[1])/100:Number(t[1]);this.seeker=n,this.currentState===PlayerState.Playing?this._lottie.goToAndPlay(n,!0):(this._lottie.goToAndStop(n,!0),this._lottie.pause())}}}
vendor: 4,125 bytes, line 2
2snapshot(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.shadowRoot){var t=this.shadowRoot.querySelector(".animation svg"),n=(new XMLSerializer).serializeToString(t);if(e){var i=document.createElement("a");i.href="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(n)),i.download="download_".concat(this.seeker,".svg"),document.body.appendChild(i),i.click(),document.body.removeChild(i)}return n}}setSpeed(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this._lottie&&this._lottie.setSpeed(e)}setDirection(e){this._lottie&&this._lottie.setDirection(e)}setLooping(e){this._lottie&&(this.loop=e,this._lottie.loop=e)}togglePlay(){return this.currentState===PlayerState.Playing?this.pause():this.play()}toggleLooping(){this.setLooping(!this.loop)}resize(){this._lottie&&this._lottie.resize()}static get styles(){return styles}disconnectedCallback(){this._io&&(this._io.disconnect(),this._io=void 0),document.removeEventListener("visibilitychange",()=>this._onVisibilityChange()),this.destroy()}render(){var e=this.controls?"main controls":"main",t=this.controls?"animation controls":"animation";return html(_templateObject||(_templateObject=_taggedTemplateLiteral([' <div\n id="animation-container"\n class=','\n lang="en"\n aria-label=','\n >\n <div\n id="animation"\n class=','\n style="background:',';"\n >\n ',"\n </div>\n ","\n </div>"])),e,this.description,t,this.background,this.currentState===PlayerState.Error?html(_templateObject2||(_templateObject2=_taggedTemplateLiteral(['<div class="error">â ï¸</div>']))):void 0,this.controls?this.renderControls():void 0)}firstUpdated(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver(e=>{e[0].isIntersecting?this.currentState===PlayerState.Frozen&&this.play():this.currentState===PlayerState.Playing&&this.freeze()}),this._io.observe(this.container)),void 0!==document.hidden&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange()),this.src&&this.load(this.src),this.dispatchEvent(new CustomEvent(PlayerEvents.Rendered))}renderControls(){var e=this.currentState===PlayerState.Playing,t=this.currentState===PlayerState.Paused,n=this.currentState===PlayerState.Stopped;return html(_templateObject3||(_templateObject3=_taggedTemplateLiteral(['\n <div\n id="lottie-controls"\n lang="en"\n aria-label="lottie-animation-controls"\n class="toolbar"\n >\n <button\n id="lottie-play-button"\n @click=',"\n class=",'\n style="align-items:center;"\n role="button"\n tabindex="0"\n lang="en"\n aria-label="play-pause"\n >\n ','\n </button>\n <button\n id="lottie-stop-button"\n @click=',"\n class=",'\n style="align-items:center;"\n role="button"\n tabindex="1"\n lang="en"\n aria-label="stop"\n >\n <svg width="24" height="24"><path d="M6 6h12v12H6V6z" /></svg>\n </button>\n <input\n id="lottie-seeker-input"\n class="seeker"\n type="range"\n min="0"\n step="1"\n max="100"\n .value=',"\n @input=","\n @mousedown=","\n @mouseup=",'\n aria-valuemin="1"\n aria-valuemax="100"\n role="slider"\n aria-valuenow=','\n tabindex="2"\n lang="en"\n aria-label="lottie-seek-input"\n />\n <button\n id="lottie-loop-toggle"\n @click=',"\n class=",'\n style="align-items:center;"\n role="button"\n tabindex="3"\n lang="en"\n aria-label="loop-toggle"\n >\n <svg width="24" height="24">\n <path\n d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"\n />\n </svg>\n </button>\n </div>
2\n '])),this.togglePlay,e||t?"active":"",html(e?_templateObject4||(_templateObject4=_taggedTemplateLiteral(['<svg width="24" height="24">\n <path\n d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z"\n />\n </svg>'])):_templateObject5||(_templateObject5=_taggedTemplateLiteral(['<svg width="24" height="24">\n <path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z" />\n </svg>']))),this.stop,n?"active":"",this.seeker,this._handleSeekChange,()=>{this._prevState=this.currentState,this.freeze()},()=>{this._prevState===PlayerState.Playing&&this.play()},this.seeker,this.toggleLooping,this.loop?"active":"")}_onVisibilityChange(){!0===document.hidden&&this.currentState===PlayerState.Playing?this.freeze():this.currentState===PlayerState.Frozen&&this.play()}_handleSeekChange(e){if(this._lottie&&!isNaN(e.target.value)){var t=e.target.value/100*this._lottie.totalFrames;this.seek(t)}}_attachEventListeners(){this._lottie.addEventListener("enterFrame",()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.dispatchEvent(new CustomEvent(PlayerEvents.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))}),this._lottie.addEventListener("complete",()=>{this.currentState===PlayerState.Playing?!this.loop||this.count&&this._counter>=this.count?this.dispatchEvent(new CustomEvent(PlayerEvents.Complete)):this.mode===PlayMode.Bounce?(this.count&&(this._counter+=.5),setTimeout(()=>{this.dispatchEvent(new CustomEvent(PlayerEvents.Loop)),this.currentState===PlayerState.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())},this.intermission)):(this.count&&(this._counter+=1),window.setTimeout(()=>{this.dispatchEvent(new CustomEvent(PlayerEvents.Loop)),this.currentState===PlayerState.Playing&&(this._lottie.stop(),this._lottie.play())},this.intermission)):this.dispatchEvent(new CustomEvent(PlayerEvents.Complete))}),this._lottie.addEventListener("DOMLoaded",()=>{this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&this.play(),this.dispatchEvent(new CustomEvent(PlayerEvents.Ready))}),this._lottie.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(PlayerEvents.Load))}),this._lottie.addEventListener("data_failed",()=>{this.currentState=PlayerState.Error,this.dispatchEvent(new CustomEvent(PlayerEvents.Error))}),this.container.addEventListener("mouseenter",()=>{this.hover&&this.currentState!==PlayerState.Playing&&this.play()}),this.container.addEventListener("mouseleave",()=>{this.hover&&this.currentState===PlayerState.Playing&&this.stop()})}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=PlayerState.Frozen,this.dispatchEvent(new CustomEvent(PlayerEvents.Freeze)))}};__decorate([property({type:Boolean})],LottiePlayer.prototype,"autoplay",void 0),__decorate([property({type:String,reflect:!0})],LottiePlayer.prototype,"background",void 0),__decorate([property({type:Boolean})],LottiePlayer.prototype,"controls",void 0),__decorate([property({type:Number})],LottiePlayer.prototype,"count",void 0),__decorate([property({type:String})],LottiePlayer.prototype,"currentState",void 0),__decorate([property({type:String})],LottiePlayer.prototype,"description",void 0),__decorate([property({type:Number})],LottiePlayer.prototype,"direction",void 0),__decorate([property({type:Boolean})],LottiePlayer.prototype,"hover",void 0),__decorate([property()],LottiePlayer.prototype,"intermission",void 0),__decorate([property({type:Boolean,reflect:!0})],LottiePlayer.prototype,"loop",void 0),__decorate([property()],LottiePlayer.prototype,"mode",void 0),__decorate([property({type:String})],LottiePlayer.prototype,"preserveAspectRatio",void 0),__decorate([property({type:String})],LottiePlayer.prototype,"renderer",void 0),__decorate([property()],LottiePlayer.prototype,"seeker",void 0),__decorate([property({type:Number})],LottiePlayer.prototype,"speed",void 0),__decorate([property({type:String})],LottiePlayer.prototype,"src",void 0),__decorate([property({type:Boolean})],LottiePlayer.prototype,"webworkers",void 0),__decorate([query(".animation")],LottiePlayer.prototype,"container",void 0),LottiePlayer=__decorate([
vendor: 11,860 bytes, line 2
2customElement("lottie-player")],LottiePlayer)}.call(this,__webpack_require__(31))},4035:function(e,t,n){"use strict";n.r(t),n.d(t,"protocol",(function(){return L})),n.d(t,"Manager",(function(){return W})),n.d(t,"Socket",(function(){return K})),n.d(t,"io",(function(){return J})),n.d(t,"connect",(function(){return J})),n.d(t,"default",(function(){return J}));var r={};n.r(r),n.d(r,"protocol",(function(){return L})),n.d(r,"PacketType",(function(){return z})),n.d(r,"Encoder",(function(){return H})),n.d(r,"Decoder",(function(){return Q}));var o=n(136),l=n.n(o);var c=n(2358),h=n.n(c),d=n(61),f=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||h.a))return new XMLHttpRequest}catch(e){}if(!t)try{return new(d.a[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}},m=n(66),A=n(60),y=n(118),v=n(1561),_=n.n(v),w=n(119),x=n.n(w),E=n(75);class C extends y.a{constructor(){super(...arguments),this.polling=!1}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emit("poll")}onData(data){Object(E.b)(data,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose(),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,Object(E.d)(e,data=>{this.doWrite(data,()=>{this.writable=!0,this.emit("drain")})})}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let n="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=_()()),this.supportsBinary||e.sid||(e.b64=1),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port);const r=x.a.encode(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}}function S(){}const T=null!=new f({xdomain:!1}).responseType;class B extends A.Emitter{constructor(e,t){super(),Object(m.a)(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.create()}create(){const e=Object(m.b)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new f(e);try{t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&t.setRequestHeader(i,this.opts.extraHeaders[i])}}catch(e){}if("POST"===this.method)try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),t.onreadystatechange=()=>{4===t.readyState&&(200===t.status||1223===t.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof t.status?t.status:0)},0))},t.send(this.data)}catch(e){return void this.setTimeoutFn(()=>{this.onError(e)},0)}"undefined"!=typeof document&&(this.index=B.requestsCount++,B.requests[this.index]=this)}onSuccess(){this.emit("success"),this.cleanup()}onData(data){this.emit("data",data),this.onSuccess()}onError(e){this.emit("error",e),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=S,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete B.requests[this.index],this.xhr=null}}onLoad(){const data=this.xhr.responseText;null!==data&&this.onData(data)}abort(){this.cleanup()}}if(B.requestsCount=0,B.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",k);else if("function"==typeof addEventListener){const e="onpagehide"in d.a?"pagehide":"unload";addEventListener(e,k,!1)}function k(){for(let i in B.requests)B.requests.hasOwnProperty(i)&&B.requests[i].abort()}const I={websocket:n(2359).a,polling:class extends C{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=T&&!t}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new B(this.uri(),e)}doWrite(data,e){const t=this.request({method:"POST",data:data});t.on("success",e),t.on("error",e=>{this.onError("xhr post error",e)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",e=>{this.onError("xhr poll error",e)}),this.pollXhr=e}}};class M extends A.Emitter{constructor(e,t={}){super(),e&&"object"==typeof e&&(t=e,e=null),e?(e=l()(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=l()(t.host).host),Object(m.a)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/","string"==typeof this.opts.query&&(this.opts.query=x.a.decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close")},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=function(e){const t={};for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}(this.opts.query);t.EIO=E.e,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new I[e](n)}open(){let e;if(this.opts.rememberUpgrade&&M.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",()=>{this.onClose("transport close")})}probe(e){let t=this.createTransport(e),n=!1;M.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;M.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{n||"closed"!==this.readyState&&(f(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function o(){n||(n=!0,f(),t.close(),t=null)}const l=e=>{const n=new Error("probe error: "+e);n.transport=t.name,o(),this.emitReserved("upgradeError",n)};function c(){l("transport closed")}function h(){l("socket closed")}function d(e){t&&e.name!==t.name&&o()}const f=()=>{t.removeListener("open",r),t.removeListener("error",l),t.removeListener("close",c),this.off("close",h),this.off("upgrading",d)};t.once("open",r),t.once("error",l),t.once("close",c),this.once("close",h),this.once("upgrading",d),t.open()}onOpen(){if(this.readyState="open",M.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause){let i=0;const e=this.upgrades.length;for(;i<e;i++)this.probe(this.upgrades[i])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(data){this.emitReserved("handshake",data),this.id=data.sid,this.transport.query.sid=data.sid,this.upgrades=this.filterUpgrades(data.upgrades),this.pingInterval=data.pingInterval,this.pingTimeout=data.pingTimeout,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emitReserved("flush"))}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,data,t,n){if("function"==typeof data&&(n=data,data=void 0),"function"==typeof t&&(n=t,t=null),"closing"===this.readyState||"closed"===this.readyState)return;(t=t||{}).compress=!1!==t.compress;const r={type:e,data:data,options:t};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}onError(e){M.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,desc){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",e,desc),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let i=0;const n=e.length;for(;i<n;
2i++)~this.transports.indexOf(e[i])&&t.push(e[i]);return t}}M.protocol=E.e;M.protocol;const P="function"==typeof ArrayBuffer,D=Object.prototype.toString,U="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===D.call(Blob),O="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===D.call(File);function F(e){return P&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||U&&e instanceof Blob||O&&e instanceof File}function R(e){const t=[],n=e.data,r=e;return r.data=function e(data,t){if(!data)return data;if(F(data)){const e={_placeholder:!0,num:t.length};return t.push(data),e}if(Array.isArray(data)){const n=new Array(data.length);for(let i=0;i<data.length;i++)n[i]=e(data[i],t);return n}if("object"==typeof data&&!(data instanceof Date)){const n={};for(const r in data)data.hasOwnProperty(r)&&(n[r]=e(data[r],t));return n}return data}(n,t),r.attachments=t.length,{packet:r,buffers:t}}function N(e,t){return e.data=function e(data,t){if(!data)return data;if(data&&data._placeholder)return t[data.num];if(Array.isArray(data))for(let i=0;i<data.length;i++)data[i]=e(data[i],t);else if("object"==typeof data)for(const n in data)data.hasOwnProperty(n)&&(data[n]=e(data[n],t));return data}(e.data,t),e.attachments=void 0,e}const L=5;var z;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(z||(z={}));class H{encode(e){return e.type!==z.EVENT&&e.type!==z.ACK||!function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let i=0,n=t.length;i<n;i++)if(e(t[i]))return!0;return!1}if(F(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return!0;return!1}(e)?[this.encodeAsString(e)]:(e.type=e.type===z.EVENT?z.BINARY_EVENT:z.BINARY_ACK,this.encodeAsBinary(e))}encodeAsString(e){let t=""+e.type;return e.type!==z.BINARY_EVENT&&e.type!==z.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data)),t}encodeAsBinary(e){const t=R(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}class Q extends A.Emitter{constructor(){super()}add(e){let t;if("string"==typeof e)t=this.decodeString(e),t.type===z.BINARY_EVENT||t.type===z.BINARY_ACK?(this.reconstructor=new V(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t);else{if(!F(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let i=0;const p={type:Number(e.charAt(0))};if(void 0===z[p.type])throw new Error("unknown packet type "+p.type);if(p.type===z.BINARY_EVENT||p.type===z.BINARY_ACK){const t=i+1;for(;"-"!==e.charAt(++i)&&i!=e.length;);const n=e.substring(t,i);if(n!=Number(n)||"-"!==e.charAt(i))throw new Error("Illegal attachments");p.attachments=Number(n)}if("/"===e.charAt(i+1)){const t=i+1;for(;++i;){if(","===e.charAt(i))break;if(i===e.length)break}p.nsp=e.substring(t,i)}else p.nsp="/";const t=e.charAt(i+1);if(""!==t&&Number(t)==t){const t=i+1;for(;++i;){const t=e.charAt(i);if(null==t||Number(t)!=t){--i;break}if(i===e.length)break}p.id=Number(e.substring(t,i+1))}if(e.charAt(++i)){const t=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(i));if(!Q.isPayloadValid(p.type,t))throw new Error("invalid payload");p.data=t}return p}static isPayloadValid(e,t){switch(e){case z.CONNECT:return"object"==typeof t;case z.DISCONNECT:return void 0===t;case z.CONNECT_ERROR:return"string"==typeof t||"object"==typeof t;case z.EVENT:case z.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case z.ACK:case z.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class V{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=N(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function j(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const G=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class K extends A.Emitter{constructor(e,t,n){super(),this.connected=!1,this.disconnected=!0,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this.io._autoConnect&&this.open()}subEvents(){if(this.subs)return;const e=this.io;this.subs=[j(e,"open",this.onopen.bind(this)),j(e,"packet",this.onpacket.b
vendor: 6,876 bytes, line 2
2ind(this)),j(e,"error",this.onerror.bind(this)),j(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(G.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const n={type:z.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?this.packet(n):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){const n=this.flags.timeout;if(void 0===n)return void(this.acks[e]=t);const r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let i=0;i<this.sendBuffer.length;i++)this.sendBuffer[i].id===e&&this.sendBuffer.splice(i,1);t.call(this,new Error("operation has timed out"))},n);this.acks[e]=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,[null,...e])}}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(data=>{this.packet({type:z.CONNECT,data:data})}):this.packet({type:z.CONNECT,data:this.auth})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e){this.connected=!1,this.disconnected=!0,delete this.id,this.emitReserved("disconnect",e)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case z.CONNECT:if(e.data&&e.data.sid){const t=e.data.sid;this.onconnect(t)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case z.EVENT:case z.BINARY_EVENT:this.onevent(e);break;case z.ACK:case z.BINARY_ACK:this.onack(e);break;case z.DISCONNECT:this.ondisconnect();break;case z.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:z.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e){this.id=e,this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>this.packet(e)),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:z.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let i=0;i<t.length;i++)if(e===t[i])return t.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}}var $=n(2360),Y=n.n($);class W extends A.Emitter{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,Object(m.a)(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new Y.a({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const o=t.parser||r;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new M(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=j(t,"open",(function(){n.onopen(),e&&e()})),o=j(t,"error",t=>{n.cleanup(),n._readyState="closed",this.emitReserved("error",t),e?e(t):n.maybeReconnectOnOpen()});if(!1!==this._timeout){const e=this._timeout;0===e&&r();const n=this.setTimeoutFn(()=>{r(),t.close(),t.emit("error",new Error("timeout"))},e);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(j(e,"ping",this.onping.bind(this)),j(e,"data",this.ondata.bind(this)),j(e,"error",this.onerror.bind(this)),j(e,"close",this.onclose.bind(this)),j(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(data){this.decoder.add(data)}ondecoded(e){this.emitReserved("packet",e)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n||(n=new K(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let i=0;i<t.length;
2i++)this.engine.write(t[i],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const X={};function J(e,t){"object"==typeof e&&(t=e,e=void 0);const n=function(e,path="",t){let n=e;t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==t?t.protocol+"//"+e:"https://"+e),n=l()(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const r=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+r+":"+n.port+path,n.href=n.protocol+"://"+r+(t&&t.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),source=n.source,r=n.id,path=n.path,o=X[r]&&path in X[r].nsps;let c;return t.forceNew||t["force new connection"]||!1===t.multiplex||o?c=new W(source,t):(X[r]||(X[r]=new W(source,t)),c=X[r]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(J,{Manager:W,Socket:K,io:J,connect:J})},4036:function(e,t,n){"use strict";n.r(t),n.d(t,"Angular",(function(){return d})),n.d(t,"CaptureConsole",(function(){return y})),n.d(t,"Debug",(function(){return v})),n.d(t,"Dedupe",(function(){return _})),n.d(t,"Ember",(function(){return x})),n.d(t,"ExtraErrorData",(function(){return E})),n.d(t,"ReportingObserver",(function(){return S})),n.d(t,"RewriteFrames",(function(){return P})),n.d(t,"SessionTiming",(function(){return D})),n.d(t,"Transaction",(function(){return U})),n.d(t,"Vue",(function(){return O}));var r,o=n(9),l=n(43),c=n(135),h=/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/,d=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._angular=t.angular||Object(l.f)().angular}return e.prototype.setupOnce=function(t,n){var r=this;this._angular?(this._getCurrentHub=n,this._angular.module(e.moduleName,[]).config(["$provide",function(e){e.decorator("$exceptionHandler",["$delegate",r._$exceptionHandlerDecorator.bind(r)])}])):c.a.error("AngularIntegration is missing an Angular instance")},e.prototype._$exceptionHandlerDecorator=function(t){var n=this;return function(r,l){var c=n._getCurrentHub&&n._getCurrentHub();c&&c.getIntegration(e)&&c.withScope((function(e){l&&e.setExtra("cause",l),e.addEventProcessor((function(e){var t=e.exception&&e.exception.values&&e.exception.values[0];if(t){var n=h.exec(t.value||"");n&&(t.type=n[1],t.value=n[2],e.message=t.type+": "+t.value,e.extra=o.a({},e.extra,{angularDocs:n[3].substr(0,250)}))}return e})),c.captureException(r)})),t(r,l)}},e.id="AngularJS",e.moduleName="ngSentry",e}(),f=n(4123),object=n(67),m=n(102),A=Object(l.f)(),y=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._levels=["log","info","warn","error","debug","assert"],t.levels&&(this._levels=t.levels)}return e.prototype.setupOnce=function(t,n){"console"in A&&this._levels.forEach((function(t){t in A.console&&Object(object.b)(A.console,t,(function(r){return function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];var c=n();c.getIntegration(e)&&c.withScope((function(e){e.setLevel(f.a.fromString(t)),e.setExtra("arguments",o),e.addEventProcessor((function(e){return e.logger="console",e}));var n=Object(m.b)(o," ");"assert"===t?!1===o[0]&&(n="Assertion failed: "+(Object(m.b)(o.slice(1)," ")||"console.assert"),e.setExtra("arguments",o.slice(1)),c.captureMessage(n)):c.captureMessage(n)})),r&&Function.prototype.apply.call(r,A.console,o)}}))}))},e.id="CaptureConsole",e}(),v=function(){function e(t){this.name=e.id,this._options=o.a({debugger:!1,stringify:!1},t)}return e.prototype.setupOnce=function(t,n){t((function(t,r){var o=n().getIntegration(e);return o&&(o._options.debugger,Object(l.c)((function(){o._options.stringify?(console.log(JSON.stringify(t,null,2)),r&&console.log(JSON.stringify(r,null,2))):(console.log(t),r&&console.log(r))}))),t}))},e.id="Debug",e}(),_=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);if(r){try{if(r._shouldDropEvent(t,r._previousEvent))return null}catch(e){return r._previousEvent=t}return r._previousEvent=t}return t}))},e.prototype._shouldDropEvent=function(e,t){return!!t&&(!!this._isSameMessageEvent(e,t)||!!this._isSameExceptionEvent(e,t))},e.prototype._isSameMessageEvent=function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!this._isSameFingerprint(e,t)&&!!this._isSameStacktrace(e,t))))},e.prototype._getFramesFromEvent=function(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}else if(e.stacktrace)return e.stacktrace.frames},e.prototype._isSameStacktrace=function(e,t){var n=this._getFramesFromEvent(e),r=this._getFramesFromEvent(t);if(!n&&!r)return!0;
2if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i],l=n[i];if(o.filename!==l.filename||o.lineno!==l.lineno||o.colno!==l.colno||o.function!==l.function)return!1}return!0},e.prototype._getExceptionFromEvent=function(e){return e.exception&&e.exception.values&&e.exception.values[0]},e.prototype._isSameExceptionEvent=function(e,t){var n=this._getExceptionFromEvent(t),r=this._getExceptionFromEvent(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!this._isSameFingerprint(e,t)&&!!this._isSameStacktrace(e,t)))},e.prototype._isSameFingerprint=function(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}},e.id="Dedupe",e}(),w=n(33),x=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._Ember=t.Ember||Object(l.f)().Ember}return e.prototype.setupOnce=function(t,n){var r=this;if(this._Ember){var o=this._Ember.onerror;this._Ember.onerror=function(t){if(n().getIntegration(e)&&n().captureException(t,{originalException:t}),"function"==typeof o)o.call(r._Ember,t);else if(r._Ember.testing)throw t},this._Ember.RSVP.on("error",(function(t){n().getIntegration(e)&&n().withScope((function(e){Object(w.g)(t,Error)?(e.setExtra("context","Unhandled Promise error detected"),n().captureException(t,{originalException:t})):(e.setExtra("reason",t),n().captureMessage("Unhandled Promise error detected"))}))}))}else c.a.error("EmberIntegration is missing an Ember instance")},e.id="Ember",e}(),E=function(){function e(t){void 0===t&&(t={depth:3}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t,r){var o=n().getIntegration(e);return o?o.enhanceEventWithErrorData(t,r):t}))},e.prototype.enhanceEventWithErrorData=function(e,t){var n;if(!t||!t.originalException||!Object(w.d)(t.originalException))return e;var r=t.originalException.name||t.originalException.constructor.name,l=this._extractErrorData(t.originalException);if(l){var c=o.a({},e.contexts),h=Object(object.c)(l,this._options.depth);return Object(w.h)(h)&&(c=o.a({},e.contexts,((n={})[r]=o.a({},h),n))),o.a({},e,{contexts:c})}return e},e.prototype._extractErrorData=function(e){var t,n,r=null;try{var l=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],h=Object.getOwnPropertyNames(e).filter((function(e){return-1===l.indexOf(e)}));if(h.length){var d={};try{for(var f=o.e(h),m=f.next();!m.done;m=f.next()){var A=m.value,y=e[A];Object(w.d)(y)&&(y=y.toString()),d[A]=y}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}r=d}}catch(e){c.a.error("Unable to extract extra data from the Error object:",e)}return r},e.id="ExtraErrorData",e}(),C=n(1659);!function(e){e.Crash="crash",e.Deprecation="deprecation",e.Intervention="intervention"}(r||(r={}));var S=function(){function e(t){void 0===t&&(t={types:[r.Crash,r.Deprecation,r.Intervention]}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(e,t){Object(C.e)()&&(this._getCurrentHub=t,new(Object(l.f)().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this._options.types}).observe())},e.prototype.handler=function(t){var n,l,c=this._getCurrentHub&&this._getCurrentHub();if(c&&c.getIntegration(e)){var h=function(e){c.withScope((function(t){t.setExtra("url",e.url);var label="ReportingObserver ["+e.type+"]",details="No details available";if(e.body){var body,n={};for(var o in e.body)n[o]=e.body[o];if(t.setExtra("body",n),e.type===r.Crash)details=[(body=e.body).crashId||"",body.reason||""].join(" ").trim()||details;else details=(body=e.body).message||details}c.captureMessage(label+": "+details)}))};try{for(var d=o.e(t),f=d.next();!f.done;f=d.next()){h(f.value)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(n)throw n.error}}}},e.id="ReportingObserver",e}();function T(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var B=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function k(e){var t=B.exec(e);return t?t.slice(1):[]}function I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=!1,i=e.length-1;i>=-1&&!r;i--){var path=i>=0?e[i]:"/";path&&(n=path+"/"+n,r="/"===path.charAt(0))}return(r?"/":"")+(n=T(n.split("/").filter((function(p){return!!p})),!r).join("/"))||"."}function M(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}var P=function(){function e(t){var n=this;void 0===t&&(t={}),this.name=e.id,this._iteratee=function(e){if(!e.filename)return e;var t,r,o=/^[A-Z]:\\/.test(e.filename),l=/^\//.test(e.filename);if(e.filename&&(o||l)){var c=o?e.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):e.filename,base=n._root?function(e,t){e=I(e).substr(1),t=I(t).substr(1);for(var n=M(e.split("/")),r=M(t.split("/")),o=Math.min(n.length,r.length),l=o,i=0;i<o;i++)if(n[i]!==r[i]){l=i;break}var c=[];for(i=l;i<n.length;i++)c.push("..");return(c=c.concat(r.slice(l))).join("/")}(n._root,c):(r=k(c)[2],t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r);e.filename="app:///"+base}return e},t.root&&(this._root=t.root),t.iteratee&&(this._iteratee=t.iteratee)}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);return r?r.process(t):t}))},e.prototype.process=function(e){return e.exception&&Array.isArray(e.exception.values)?this._processExceptionsEvent(e):e.stacktrace?this._processStacktraceEvent(e):e},e.prototype._processExceptionsEvent=function(e){var t=this;try{return o.a({},e,{exception:o.a({},e.exception,{values:e.exception.values.map((function(e){return o.a({},e,{stacktrace:t._processStacktrace(e.stacktrace)})}))})})}catch(t){return e}},e.prototype._processStacktraceEvent=function(e){try{return o.a({},e,{stacktrace:this._processStacktrace(e.stacktrace)})}catch(t){return e}},e.prototype._processStacktrace=function(e){var t=this;return o.a({},e,{frames:e&&e.frames&&e.frames.map((function(e){return t._iteratee(e)}))})},e.id="RewriteFrames",e}(),D=function(){function e(){this.name=e.id,this._startTime=Date.now()}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);return r?r.process(t):t}))},e.prototype.process=function(e){var t,n=Date.now();return o.a({},e,{extra:o.a({},e.extra,(t={},t["session:start"]=this._startTime,t["session:duration"]=n-this._startTime,t["session:end"]=n,t))})},e.id="SessionTiming",e}(),U=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);return r?r.process(t):t}))},e.prototype.process=function(e){for(var t=this._getFramesFromEvent(e),i=t.length-1;i>=0;i--){var n=t[i];if(!0===n.in_app){e.transaction=this._getTransaction(n);break}}return e},e.prototype._getFramesFromEvent=function(e){var t=e.exception&&e.exception.values&&e.exception.values[0];return t&&t.stacktrace&&t.stacktrace.frames||[]},e.prototype._getTransaction=function(e){return e.module||e.function?(e.module||"?")+"/"+(e.function||"?"):"<unknown>"},e.id="Transaction",e}(),O=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._attachProps=!0,this._logErrors=!1,this._Vue=t.Vue||Object(l.f)().Vue,void 0!==t.logErrors&&(this._logErrors=t.logErrors),!1===t.attachProps&&(this._attachProps=!1)}return e.prototype._formatComponentName=function(e){if(e.$root===e)return"root instance";var t=e._isVue?e.$options.name||e.$options._componentTag:e.name;return(t?"component <"+t+">":"anonymous component")+(e._isVue&&e.$options.__file?" at "+e.$options.__file:"")},e.prototype.setupOnce=function(t,n){var r=this;if(this._Vue&&this._Vue.config){var o=this._Vue.config.errorHandler;this._Vue.config.errorHandler=function(t,l,c){var h={};Object(w.h)(l)&&(h.componentName=r._formatComponentName(l),r._attachProps&&(h.propsData=l.$options.propsData)),void 0!==c&&(h.lifecycleHook=c),n().getIntegration(e)&&setTimeout((function(){n().withScope((function(e){e.setContext("vue",h),n().captureException(t)}))})),"function"==typeof o&&o.call(r._Vue,t,l,c),r._logErrors&&(r._Vue.util.warn("Error in "+c+': "'+t.toString()+'"',l),console.error(t))}}else c.a.error("VueIntegration is missing a Vue instance")},e.id="Vue",e}()},41:function(e,t,n){"use strict";e.exports=function(e){return"function"==typeof e&&"function"==typeof e.then&&e.end!==e.done}},4123:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(r||(r={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(r||(r={}))},43:function(e,t,n){"use strict";(function(e,r,o){n.d(t,"i",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"m",(function(){return f})),n.d(t,"k",(function(){return m})),n.d(t,"d",(function(){return A})),n.d(t,"c",(function(){return y}
2)),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return _})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return x})),n.d(t,"l",(function(){return k})),n.d(t,"j",(function(){return I})),n.d(t,"e",(function(){return M}));var l=n(33);n(102);function c(){return"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}var h={};function d(){return c()?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:h}function f(){var e=d(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function m(e){if(!e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function A(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function y(e){var t=d();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}function v(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function _(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function w(){try{return document.location.href}catch(e){return""}}function x(e){try{for(var t=e,n=[],r=0,o=0,l=" > ".length,c=void 0;t&&r++<5&&!("html"===(c=E(t))||r>1&&o+n.length*l+c.length>=80);)n.push(c),o+=c.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function E(e){var t,n,r,o,i,c=e,h=[];if(!c||!c.tagName)return"";if(h.push(c.tagName.toLowerCase()),c.id&&h.push("#"+c.id),(t=c.className)&&Object(l.k)(t))for(n=t.split(/\s+/),i=0;i<n.length;i++)h.push("."+n[i]);var d=["type","name","title","alt"];for(i=0;i<d.length;i++)r=d[i],(o=c.getAttribute(r))&&h.push("["+r+'="'+o+'"]');return h.join("")}var C=Date.now(),S=0,T={now:function(){var e=Date.now()-C;return e<S&&(e=S),S=e,e},timeOrigin:C},B=function(){if(c())try{return(e="perf_hooks",o.require(e)).performance}catch(e){return T}var e;return d().performance&&void 0===performance.timeOrigin&&(performance.timeOrigin=performance.timing&&performance.timing.navigationStart||C),d().performance||T}();function k(){return(B.timeOrigin+B.now())/1e3}function I(e,header){if(!header)return 6e4;var t=parseInt(""+header,10);if(!isNaN(t))return 1e3*t;var n=Date.parse(""+header);return isNaN(n)?6e4:n-e}function M(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}}).call(this,n(45),n(31),n(2947)(e))},46:function(e,t,n){"use strict";n(19),n(5),n(15),n(76),n(22),n(13),n(10),n(34),n(12),n(14),n(6),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(2665),o=n(2208),l={addClass:r.addClass,removeClass:r.removeClass,hasClass:r.hasClass,toggleClass:r.toggleClass,attr:r.attr,removeAttr:r.removeAttr,data:r.data,transform:r.transform,transition:r.transition,on:r.on,off:r.off,trigger:r.trigger,transitionEnd:r.transitionEnd,outerWidth:r.outerWidth,outerHeight:r.outerHeight,offset:r.offset,css:r.css,each:r.each,html:r.html,text:r.text,is:r.is,index:r.index,eq:r.eq,append:r.append,prepend:r.prepend,next:r.next,nextAll:r.nextAll,prev:r.prev,prevAll:r.prevAll,parent:r.parent,parents:r.parents,closest:r.closest,find:r.find,children:r.children,remove:r.remove,add:r.add,styles:r.styles};
2Object.keys(l).forEach(e=>{r.$.fn[e]=r.$.fn[e]||l[e]});var style,c,h,d={deleteProps(e){var object=e;Object.keys(object).forEach(e=>{try{object[e]=null}catch(e){}try{delete object[e]}catch(e){}})},nextTick(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(e,t)},now:()=>Date.now(),getTranslate(e){var t,n,r,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",c=o.window.getComputedStyle(e,null);return o.window.WebKitCSSMatrix?((n=c.transform||c.webkitTransform).split(",").length>6&&(n=n.split(", ").map(a=>a.replace(",",".")).join(", ")),r=new o.window.WebKitCSSMatrix("none"===n?"":n)):t=(r=c.MozTransform||c.OTransform||c.MsTransform||c.msTransform||c.transform||c.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===l&&(n=o.window.WebKitCSSMatrix?r.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===l&&(n=o.window.WebKitCSSMatrix?r.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),n||0},parseUrlQuery(e){var i,t,param,n,r={},l=e||o.window.location.href;if("string"==typeof l&&l.length)for(n=(t=(l=l.indexOf("?")>-1?l.replace(/\S*\?/,""):"").split("&").filter(e=>""!==e)).length,i=0;i<n;i+=1)param=t[i].replace(/#\S+/g,"").split("="),r[decodeURIComponent(param[0])]=void 0===param[1]?void 0:decodeURIComponent(param[1])||"";return r},isObject:e=>"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object,extend(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),i=1;i<arguments.length;i+=1){var t=i<0||arguments.length<=i?void 0:arguments[i];if(null!=t)for(var n=Object.keys(Object(t)),r=0,o=n.length;r<o;r+=1){var l=n[r],desc=Object.getOwnPropertyDescriptor(t,l);void 0!==desc&&desc.enumerable&&(d.isObject(e[l])&&d.isObject(t[l])?d.extend(e[l],t[l]):!d.isObject(e[l])&&d.isObject(t[l])?(e[l]={},d.extend(e[l],t[l])):e[l]=t[l])}}return e}},f=(c=o.document.createElement("div"),{touch:o.window.Modernizr&&!0===o.window.Modernizr.touch||!!(o.window.navigator.maxTouchPoints>0||"ontouchstart"in o.window||o.window.DocumentTouch&&o.document instanceof o.window.DocumentTouch),pointerEvents:!!(o.window.navigator.pointerEnabled||o.window.PointerEvent||"maxTouchPoints"in o.window.navigator&&o.window.navigator.maxTouchPoints>0),prefixedPointerEvents:!!o.window.navigator.msPointerEnabled,transition:(style=c.style,"transition"in style||"webkitTransition"in style||"MozTransition"in style),transforms3d:o.window.Modernizr&&!0===o.window.Modernizr.csstransforms3d||function(){var style=c.style;return"webkitPerspective"in style||"MozPerspective"in style||"OPerspective"in style||"MsPerspective"in style||"perspective"in style}(),flexbox:function(){for(var style=c.style,e="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<e.length;i+=1)if(e[i]in style)return!0;return!1}(),observer:"MutationObserver"in o.window||"WebkitMutationObserver"in o.window,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get(){e=!0}});o.window.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:"ongesturestart"in o.window}),m={isIE:!!o.window.navigator.userAgent.match(/Trident/g)||!!o.window.navigator.userAgent.match(/MSIE/g),isEdge:!!o.window.navigator.userAgent.match(/Edge/g),isSafari:(h=o.window.navigator.userAgent.toLowerCase(),h.indexOf("safari")>=0&&h.indexOf("chrome")<0&&h.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(o.window.navigator.userAgent)};class A{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this;t.params=e,t.eventsListeners={}
2,t.params&&t.params.on&&Object.keys(t.params.on).forEach(e=>{t.on(e,t.params.on[e])})}on(e,t,n){var r=this;if("function"!=typeof t)return r;var o=n?"unshift":"push";return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][o](t)}),r}once(e,t,n){var r=this;if("function"!=typeof t)return r;function o(){for(var n=arguments.length,l=new Array(n),c=0;c<n;c++)l[c]=arguments[c];t.apply(r,l),r.off(e,o),o.f7proxy&&delete o.f7proxy}return o.f7proxy=t,r.on(e,o,n)}off(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].length&&n.eventsListeners[e].forEach((r,o)=>{(r===t||r.f7proxy&&r.f7proxy===t)&&n.eventsListeners[e].splice(o,1)})}),n):n}emit(){var e,data,t,n=this;if(!n.eventsListeners)return n;for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return"string"==typeof o[0]||Array.isArray(o[0])?(e=o[0],data=o.slice(1,o.length),t=n):(e=o[0].events,data=o[0].data,t=o[0].context||n),(Array.isArray(e)?e:e.split(" ")).forEach(e=>{if(n.eventsListeners&&n.eventsListeners[e]){var r=[];n.eventsListeners[e].forEach(e=>{r.push(e)}),r.forEach(e=>{e.apply(t,data)})}}),n}useModulesParams(e){var t=this;t.modules&&Object.keys(t.modules).forEach(n=>{var r=t.modules[n];r.params&&d.extend(e,r.params)})}useModules(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this;t.modules&&Object.keys(t.modules).forEach(n=>{var r=t.modules[n],o=e[n]||{};r.instance&&Object.keys(r.instance).forEach(e=>{var n=r.instance[e];t[e]="function"==typeof n?n.bind(t):n}),r.on&&t.on&&Object.keys(r.on).forEach(e=>{t.on(e,r.on[e])}),r.create&&r.create.bind(t)(o)})}static set components(e){this.use&&this.use(e)}static installModule(e){var t=this;t.prototype.modules||(t.prototype.modules={});var n=e.name||"".concat(Object.keys(t.prototype.modules).length,"_").concat(d.now());if(t.prototype.modules[n]=e,e.proto&&Object.keys(e.proto).forEach(n=>{t.prototype[n]=e.proto[n]}),e.static&&Object.keys(e.static).forEach(n=>{t[n]=e.static[n]}),e.install){for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];e.install.apply(t,o)}return t}static use(e){var t=this;if(Array.isArray(e))return e.forEach(e=>t.installModule(e)),t;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.installModule(e,...r)}}var y={updateSize:function(){var e,t,n=this.$el;e=void 0!==this.params.width?this.params.width:n[0].clientWidth,t=void 0!==this.params.height?this.params.height:n[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),t=t-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),d.extend(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e=this.params,{$wrapperEl:t,size:n,rtlTranslate:r,wrongRTL:l}=this,c=this.virtual&&e.virtual.enabled,h=c?this.virtual.slides.length:this.slides.length,A=t.children(".".concat(this.params.slideClass)),y=c?this.virtual.slides.length:A.length,v=[],_=[],w=[],x=e.slidesOffsetBefore;"function"==typeof x&&(x=e.slidesOffsetBefore.call(this));var E=e.slidesOffsetAfter;"function"==typeof E&&(E=e.slidesOffsetAfter.call(this));var C=this.snapGrid.length,S=this.snapGrid.length,T=e.spaceBetween,B=-x,k=0,I=0;if(void 0!==n){var M,P;"string"==typeof T&&T.indexOf("%")>=0&&(T=parseFloat(T.replace("%",""))/100*n),this.virtualSize=-T,r?A.css({marginLeft:"",marginTop:""}):A.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(M=Math.floor(y/e.slidesPerColumn)===y/this.params.slidesPerColumn?y:Math.ceil(y/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(M=Math.max(M,e.slidesPerView*e.slidesPerColumn)));for(var D,U=e.slidesPerColumn,O=M/U,F=Math.floor(y/e.slidesPerColumn),i=0;i<y;i+=1){P=0;var R=A.eq(i);if(e.slidesPerColumn>1){var N=void 0,L=void 0,z=void 0;if("column"===e.slidesPerColumnFill||"row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){if("column"===e.slidesPerColumnFill)z=i-(L=Math.floor(i/U))*U,(L>F||L===F&&z===U-1)&&(z+=1)>=U&&(z=0,L+=1);else{var H=Math.floor(i/e.slidesPerGroup);L=i-(z=Math.floor(i/e.slidesPerView)-H*e.slidesPerColumn)*e.slidesPerView-H*e.slidesPerView}N=L+z*M/U,R.css({"-webkit-box-ordinal-group":N,"-moz-box-ordinal-group":N,"-ms-flex-order":N,"-webkit-order":N,order:N})}else L=i-(z=Math.floor(i/O))*O;R.css("margin-".concat(this.isHorizontal()?"top":"left"),0!==z&&e.spaceBetween&&"".concat(e.spaceBetween,"px")).attr("data-swiper-column",L).attr("data-swiper-row",z)}if("none"!==R.css("display")){if("auto"===e.slidesPerView){var Q=o.window.getComputedStyle(R[0],null),V=R[0].style.transform,j=R[0].style.webkitTransform;if(V&&(R[0].style.transform="none"),j&&(R[0].style.webkitTransform="none"),e.roundLengths)P=this.isHorizontal()?R.outerWidth(!0):R.outerHeight(!0);else if(this.isHorizontal()){var G=parseFloat(Q.getPropertyValue("width")),K=parseFloat(Q.getPropertyValue("padding-left")),$=parseFloat(Q.getPropertyValue("padding-right")),Y=parseFloat(Q.getPropertyValue("margin-left")),W=parseFloat(Q.getPropertyValue("margin-right")),X=
2Q.getPropertyValue("box-sizing");P=X&&"border-box"===X&&!m.isIE?G+Y+W:G+K+$+Y+W}else{var J=parseFloat(Q.getPropertyValue("height")),Z=parseFloat(Q.getPropertyValue("padding-top")),ee=parseFloat(Q.getPropertyValue("padding-bottom")),te=parseFloat(Q.getPropertyValue("margin-top")),ne=parseFloat(Q.getPropertyValue("margin-bottom")),re=Q.getPropertyValue("box-sizing");P=re&&"border-box"===re&&!m.isIE?J+te+ne:J+Z+ee+te+ne}V&&(R[0].style.transform=V),j&&(R[0].style.webkitTransform=j),e.roundLengths&&(P=Math.floor(P))}else P=(n-(e.slidesPerView-1)*T)/e.slidesPerView,e.roundLengths&&(P=Math.floor(P)),A[i]&&(this.isHorizontal()?A[i].style.width="".concat(P,"px"):A[i].style.height="".concat(P,"px"));A[i]&&(A[i].swiperSlideSize=P),w.push(P),e.centeredSlides?(B=B+P/2+k/2+T,0===k&&0!==i&&(B=B-n/2-T),0===i&&(B=B-n/2-T),Math.abs(B)<.001&&(B=0),e.roundLengths&&(B=Math.floor(B)),I%e.slidesPerGroup==0&&v.push(B),_.push(B)):(e.roundLengths&&(B=Math.floor(B)),I%e.slidesPerGroup==0&&v.push(B),_.push(B),B=B+P+T),this.virtualSize+=P+T,k=P,I+=1}}if(this.virtualSize=Math.max(this.virtualSize,n)+E,r&&l&&("slide"===e.effect||"coverflow"===e.effect)&&t.css({width:"".concat(this.virtualSize+e.spaceBetween,"px")}),f.flexbox&&!e.setWrapperSize||(this.isHorizontal()?t.css({width:"".concat(this.virtualSize+e.spaceBetween,"px")}):t.css({height:"".concat(this.virtualSize+e.spaceBetween,"px")})),e.slidesPerColumn>1&&(this.virtualSize=(P+e.spaceBetween)*M,this.virtualSize=Math.ceil(this.virtualSize/e.slidesPerColumn)-e.spaceBetween,this.isHorizontal()?t.css({width:"".concat(this.virtualSize+e.spaceBetween,"px")}):t.css({height:"".concat(this.virtualSize+e.spaceBetween,"px")}),e.centeredSlides)){D=[];for(var ie=0;ie<v.length;ie+=1){var se=v[ie];e.roundLengths&&(se=Math.floor(se)),v[ie]<this.virtualSize+v[0]&&D.push(se)}v=D}if(!e.centeredSlides){D=[];for(var ae=0;ae<v.length;ae+=1){var oe=v[ae];e.roundLengths&&(oe=Math.floor(oe)),v[ae]<=this.virtualSize-n&&D.push(oe)}v=D,Math.floor(this.virtualSize-n)-Math.floor(v[v.length-1])>1&&v.push(this.virtualSize-n)}if(0===v.length&&(v=[0]),0!==e.spaceBetween&&(this.isHorizontal()?r?A.css({marginLeft:"".concat(T,"px")}):A.css({marginRight:"".concat(T,"px")}):A.css({marginBottom:"".concat(T,"px")})),e.centerInsufficientSlides){var le=0;if(w.forEach(t=>{le+=t+(e.spaceBetween?e.spaceBetween:0)}),(le-=e.spaceBetween)<n){var ce=(n-le)/2;v.forEach((e,t)=>{v[t]=e-ce}),_.forEach((e,t)=>{_[t]=e+ce})}}d.extend(this,{slides:A,snapGrid:v,slidesGrid:_,slidesSizesGrid:w}),y!==h&&this.emit("slidesLengthChange"),v.length!==C&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),_.length!==S&&this.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(e){var i,t=[],n=0;if("number"==typeof e?this.setTransition(e):!0===e&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)for(i=0;i<Math.ceil(this.params.slidesPerView);i+=1){var r=this.activeIndex+i;if(r>this.slides.length)break;t.push(this.slides.eq(r)[0])}else t.push(this.slides.eq(this.activeIndex)[0]);for(i=0;i<t.length;i+=1)if(void 0!==t[i]){var o=t[i].offsetHeight;n=o>n?o:n}n&&this.$wrapperEl.css("height","".concat(n,"px"))},updateSlidesOffset:function(){for(var e=this.slides,i=0;i<e.length;i+=1)e[i].swiperSlideOffset=this.isHorizontal()?e[i].offsetLeft:e[i].offsetTop},updateSlidesProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,n=t.params,{slides:o,rtlTranslate:l}=t;if(0!==o.length){void 0===o[0].swiperSlideOffset&&t.updateSlidesOffset();var c=-e;l&&(c=e),o.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var i=0;i<o.length;i+=1){var h=o[i],d=(c+(n.centeredSlides?t.minTranslate():0)-h.swiperSlideOffset)/(h.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){var f=-(c-h.swiperSlideOffset),m=f+t.slidesSizesGrid[i],A=f>=0&&f<t.size-1||m>1&&m<=t.size||f<=0&&m>=t.size;A&&(t.visibleSlides.push(h),t.visibleSlidesIndexes.push(i),o.eq(i).addClass(n.slideVisibleClass))}h.progress=l?-d:d}t.visibleSlides=(0,r.$)(t.visibleSlides)}},updateProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,n=t.params,r=t.maxTranslate()-t.minTranslate(),{progress:progress,isBeg
2inning:o,isEnd:l}=t,c=o,h=l;0===r?(progress=0,o=!0,l=!0):(o=(progress=(e-t.minTranslate())/r)<=0,l=progress>=1),d.extend(t,{progress:progress,isBeginning:o,isEnd:l}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesProgress(e),o&&!c&&t.emit("reachBeginning toEdge"),l&&!h&&t.emit("reachEnd toEdge"),(c&&!o||h&&!l)&&t.emit("fromEdge"),t.emit("progress",progress)},updateSlidesClasses:function(){var e,{slides:t,params:n,$wrapperEl:r,activeIndex:o,realIndex:l}=this,c=this.virtual&&n.virtual.enabled;t.removeClass("".concat(n.slideActiveClass," ").concat(n.slideNextClass," ").concat(n.slidePrevClass," ").concat(n.slideDuplicateActiveClass," ").concat(n.slideDuplicateNextClass," ").concat(n.slideDuplicatePrevClass)),(e=c?this.$wrapperEl.find(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(o,'"]')):t.eq(o)).addClass(n.slideActiveClass),n.loop&&(e.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(l,'"]')).addClass(n.slideDuplicateActiveClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(l,'"]')).addClass(n.slideDuplicateActiveClass));var h=e.nextAll(".".concat(n.slideClass)).eq(0).addClass(n.slideNextClass);n.loop&&0===h.length&&(h=t.eq(0)).addClass(n.slideNextClass);var d=e.prevAll(".".concat(n.slideClass)).eq(0).addClass(n.slidePrevClass);n.loop&&0===d.length&&(d=t.eq(-1)).addClass(n.slidePrevClass),n.loop&&(h.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(h.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicateNextClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(h.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicateNextClass),d.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(d.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicatePrevClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(d.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,n=this.rtlTranslate?this.translate:-this.translate,{slidesGrid:r,snapGrid:o,params:l,activeIndex:c,realIndex:h,snapIndex:f}=this,m=e;if(void 0===m){for(var i=0;i<r.length;i+=1)void 0!==r[i+1]?n>=r[i]&&n<r[i+1]-(r[i+1]-r[i])/2?m=i:n>=r[i]&&n<r[i+1]&&(m=i+1):n>=r[i]&&(m=i);l.normalizeSlideIndex&&(m<0||void 0===m)&&(m=0)}if((t=o.indexOf(n)>=0?o.indexOf(n):Math.floor(m/l.slidesPerGroup))>=o.length&&(t=o.length-1),m!==c){var A=parseInt(this.slides.eq(m).attr("data-swiper-slide-index")||m,10);d.extend(this,{snapIndex:t,realIndex:A,previousIndex:c,activeIndex:m}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),h!==A&&this.emit("realIndexChange"),(this.initialized||this.runCallbacksOnInit)&&this.emit("slideChange")}else t!==f&&(this.snapIndex=t,this.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this.params,n=(0,r.$)(e.target).closest(".".concat(t.slideClass))[0],o=!1;if(n)for(var i=0;i<this.slides.length;i+=1)this.slides[i]===n&&(o=!0);if(!n||!o)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=n,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt((0,r.$)(n).attr("data-swiper-slide-index"),10):this.clickedIndex=(0,r.$)(n).index(),t.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}};var v={getTranslate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",t=this,{params:n,rtlTranslate:r,translate:o,$wrapperEl:l}=t;if(n.virtualTranslate)return r?-o:o;var c=d.getTranslate(l[0],e);return r&&(c=-c),c||0},setTranslate:function(e,t){var{rtlTranslate:n,params:r,$wrapperEl:o,progress:progress}=this,l=0,c=0;this.isHorizontal()?l=n?-e:e:c=e,r.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),r.virtualTranslate||(f.transforms3d?o.transform("translate3d(".concat(l,"px, ").concat(c,"px, ").concat(0,"px)")):o.transform("translate(".concat(l,"px, ").concat(c,"px)"))),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?l:c;var h=this.maxTranslate()-this.minTranslate();(0===h?0:(e-this.minTranslate())/h)!==progress&&this.updateProgress(e),this.emit
2("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var _={setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,{activeIndex:r,params:o,previousIndex:l}=n;o.autoHeight&&n.updateAutoHeight();var c=t;if(c||(c=r>l?"next":r<l?"prev":"reset"),n.emit("transitionStart"),e&&r!==l){if("reset"===c)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===c?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}},transitionEnd:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,{activeIndex:r,previousIndex:o}=n;n.animating=!1,n.setTransition(0);var l=t;if(l||(l=r>o?"next":r<o?"prev":"reset"),n.emit("transitionEnd"),e&&r!==o){if("reset"===l)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===l?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}};var w={slideTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0,o=this,l=e;l<0&&(l=0);var{params:c,snapGrid:h,slidesGrid:d,previousIndex:m,activeIndex:A,rtlTranslate:y}=o;if(o.animating&&c.preventInteractionOnTransition)return!1;var v=Math.floor(l/c.slidesPerGroup);v>=h.length&&(v=h.length-1),(A||c.initialSlide||0)===(m||0)&&n&&o.emit("beforeSlideChangeStart");var _,w=-h[v];if(o.updateProgress(w),c.normalizeSlideIndex)for(var i=0;i<d.length;i+=1)-Math.floor(100*w)>=Math.floor(100*d[i])&&(l=i);if(o.initialized&&l!==A){if(!o.allowSlideNext&&w<o.translate&&w<o.minTranslate())return!1;if(!o.allowSlidePrev&&w>o.translate&&w>o.maxTranslate()&&(A||0)!==l)return!1}return _=l>A?"next":l<A?"prev":"reset",y&&-w===o.translate||!y&&w===o.translate?(o.updateActiveIndex(l),c.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==c.effect&&o.setTranslate(w),"reset"!==_&&(o.transitionStart(n,_),o.transitionEnd(n,_)),!1):(0!==t&&f.transition?(o.setTransition(t),o.setTranslate(w),o.updateActiveIndex(l),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,_),o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,_))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd))):(o.setTransition(0),o.setTranslate(w),o.updateActiveIndex(l),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,_),o.transitionEnd(n,_)),!0)},slideToLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0,o=this,l=e;return o.params.loop&&(l+=o.loopedSlides),o.slideTo(l,t,n,r)},slideNext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this,{params:o,animating:l}=r;return o.loop?!l&&(r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft,r.slideTo(r.activeIndex+o.slidesPerGroup,e,t,n)):r.slideTo(r.activeIndex+o.slidesPerGroup,e,t,n)},slidePrev:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this,{params:o,animating:l,snapGrid:c,slidesGrid:h,rtlTranslate:d}=r;if(o.loop){if(l)return!1;
2r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}var f=d?r.translate:-r.translate;function m(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var A,y=m(f),v=c.map(e=>m(e)),_=(h.map(e=>m(e)),c[v.indexOf(y)],c[v.indexOf(y)-1]);return void 0!==_&&(A=h.indexOf(_))<0&&(A=r.activeIndex-1),r.slideTo(A,e,t,n)},slideReset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this;return r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this,o=r.activeIndex,l=Math.floor(o/r.params.slidesPerGroup);if(l<r.snapGrid.length-1){var c=r.rtlTranslate?r.translate:-r.translate,h=r.snapGrid[l],d=r.snapGrid[l+1];c-h>(d-h)/2&&(o=r.params.slidesPerGroup)}return r.slideTo(o,e,t,n)},slideToClickedSlide:function(){var e,t=this,{params:n,$wrapperEl:o}=t,l="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,c=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt((0,r.$)(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?c<t.loopedSlides-l/2||c>t.slides.length-t.loopedSlides+l/2?(t.loopFix(),c=o.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),d.nextTick(()=>{t.slideTo(c)})):t.slideTo(c):c>t.slides.length-l?(t.loopFix(),c=o.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),d.nextTick(()=>{t.slideTo(c)})):t.slideTo(c)}else t.slideTo(c)}};var x={loopCreate:function(){var e=this,{params:t,$wrapperEl:n}=e;n.children(".".concat(t.slideClass,".").concat(t.slideDuplicateClass)).remove();var l=n.children(".".concat(t.slideClass));if(t.loopFillGroupWithBlank){var c=t.slidesPerGroup-l.length%t.slidesPerGroup;if(c!==t.slidesPerGroup){for(var i=0;i<c;i+=1){var h=(0,r.$)(o.document.createElement("div")).addClass("".concat(t.slideClass," ").concat(t.slideBlankClass));n.append(h)}l=n.children(".".concat(t.slideClass))}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=l.length),e.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>l.length&&(e.loopedSlides=l.length);var d=[],f=[];l.each((t,n)=>{var o=(0,r.$)(n);t<e.loopedSlides&&f.push(n),t<l.length&&t>=l.length-e.loopedSlides&&d.push(n),o.attr("data-swiper-slide-index",t)});for(var m=0;m<f.length;m+=1)n.append((0,r.$)(f[m].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var A=d.length-1;A>=0;A-=1)n.prepend((0,r.$)(d[A].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){var e,{params:t,activeIndex:n,slides:r,loopedSlides:o,allowSlidePrev:l,allowSlideNext:c,snapGrid:h,rtlTranslate:d}=this;this.allowSlidePrev=!0,this.allowSlideNext=!0;var f=-h[n]-this.getTranslate();if(n<o)e=r.length-3*o+n,e+=o,this.slideTo(e,0,!1,!0)&&0!==f&&this.setTranslate((d?-this.translate:this.translate)-f);else if("auto"===t.slidesPerView&&n>=2*o||n>=r.length-o){e=-r.length+n+o,e+=o,this.slideTo(e,0,!1,!0)&&0!==f&&this.setTranslate((d?-this.translate:this.translate)-f)}this.allowSlidePrev=l,this.allowSlideNext=c},loopDestroy:function(){var{$wrapperEl:e,params:t,slides:n}=this;e.children(".".concat(t.slideClass,".").concat(t.slideDuplicateClass,",.").concat(t.slideClass,".").concat(t.slideBlankClass)).remove(),n.removeAttr("data-swiper-slide-index")}};var E={setGrabCursor:function(e){if(!(f.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){f.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}};var C={appendSlide:function(e){var{$wrapperEl:t,params:n}=this;if(n.loop&&this.loopDestroy(),"object"==typeof e&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&t.append(e[i]);else t.append(e);n.loop&&this.loopCreate(),n.observer&&f.observer||this.update()},prependSlide:function(e){var{params:t,$wrapperEl:n,activeIndex:r}=this;t.loop&&this.loopDestroy();var o=r+1;if("object"==typeof e&&"length"in e){for(var i=0;i<e.length;i+=1)e[i]&&n.prepend(e[i]);o=r+e.length}else n.prepend(e);t.loop&&this.loopCreate(),t.observer&&f.observer||this.update(),this.slideTo(o,0,!1)},addSlide:function(e,t){var{$wrapperEl:n,params:r,activeIndex:o}=this,l=o;r.loop&&(l-=this.loopedSlides,this.loopDestroy(),this.slides=n.children(".".concat(r.slideClass)));var c=this.slides.length;if(e<=0)this.prependSlide(t);else if(e>=c)this.appendSlide(t);else{for(var h=l>e?l+1:l,d=[],i=c-1;i>=e;i-=1){var m=this.slides.eq(i);m.remove(),d.unshift(m)}if("object"==typeof t&&"length"in t){for(var A=0;A<t.length;A+=1)t[A]&&n.append(t[A]);h=l>e?l+t.length:l}else n.append(t);for(var y=0;y<d.length;y+=1)n.append(d[y]);r.loop&&this.loopCreate(),r.observer&&f.observer||this.update(),r.loop?this.slideTo(h+this.loopedSlides,0,!1):this.slideTo(h,0,!1)}},removeSlide:function(e){var{params:t,$wrapperEl:n,activeIndex:r}=this,o=r;t.loop&&(o-=this.loopedSlides,this.loopDestroy(),this.slides=n.children(".".concat(t.slideClass)));var l,c=o;if("object"==typeof e&&"length"in e){for(var i=0;i<e.length;i+=1)l=e[i],this.slides[l]&&this.slides.eq(l).remove(),l<c&&(c-=1);c=Math.max(c,0)}else l=e,this.slides[l]&&this.slides.eq(l).remove(),l<c&&(c-=1),c=Math.max(c,0);t.loop&&this.loopCreate(),t.observer&&f.observer||this.update(),t.loop?this.slideTo(c+this.loopedSlides,0,!1):this.slideTo(c,0,!1)},removeAllSlides:function(){for(var e=[],i=0;i<this.slides.length;
2i+=1)e.push(i);this.removeSlide(e)}},S=function(){var e=o.window.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:o.window.cordova||o.window.phonegap,phonegap:o.window.cordova||o.window.phonegap},n=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),r=e.match(/(Android);?[\s\/]+([\d.]+)?/),l=e.match(/(iPad).*OS\s([\d_]+)/),c=e.match(/(iPod)(.*OS\s([\d_]+))?/),h=!l&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(n&&(t.os="windows",t.osVersion=n[2],t.windows=!0),r&&!n&&(t.os="android",t.osVersion=r[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(l||h||c)&&(t.os="ios",t.ios=!0),h&&!c&&(t.osVersion=h[2].replace(/_/g,"."),t.iphone=!0),l&&(t.osVersion=l[2].replace(/_/g,"."),t.ipad=!0),c&&(t.osVersion=c[3]?c[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(h||l||c)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){var d=t.osVersion.split("."),f=o.document.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(c||h)&&(1*d[0]==7?1*d[1]>=1:1*d[0]>7)&&f&&f.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=o.window.devicePixelRatio||1,t}();function T(e){var data=this.touchEventsData,{params:t,touches:n}=this;if(!this.animating||!t.preventInteractionOnTransition){var l=e;if(l.originalEvent&&(l=l.originalEvent),data.isTouchEvent="touchstart"===l.type,(data.isTouchEvent||!("which"in l)||3!==l.which)&&!(!data.isTouchEvent&&"button"in l&&l.button>0||data.isTouched&&data.isMoved))if(t.noSwiping&&(0,r.$)(l.target).closest(t.noSwipingSelector?t.noSwipingSelector:".".concat(t.noSwipingClass))[0])this.allowClick=!0;else if(!t.swipeHandler||(0,r.$)(l).closest(t.swipeHandler)[0]){n.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,n.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;var c=n.currentX,h=n.currentY,f=t.edgeSwipeDetection||t.iOSEdgeSwipeDetection,m=t.edgeSwipeThreshold||t.iOSEdgeSwipeThreshold;if(!f||!(c<=m||c>=o.window.screen.width-m)){if(d.extend(data,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),n.startX=c,n.startY=h,data.touchStartTime=d.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,t.threshold>0&&(data.allowThresholdMove=!1),"touchstart"!==l.type){var A=!0;(0,r.$)(l.target).is(data.formElements)&&(A=!1),o.document.activeElement&&(0,r.$)(o.document.activeElement).is(data.formElements)&&o.document.activeElement!==l.target&&o.document.activeElement.blur();var y=A&&this.allowTouchMove&&t.touchStartPreventDefault;(t.touchStartForcePreventDefault||y)&&l.preventDefault()}this.emit("touchStart",l)}}}}function B(e){var data=this.touchEventsData,{params:t,touches:n,rtlTranslate:l}=this,c=e;if(c.originalEvent&&(c=c.originalEvent),data.isTouched){if(!data.isTouchEvent||"mousemove"!==c.type){var h="touchmove"===c.type?c.targetTouches[0].pageX:c.pageX,f="touchmove"===c.type?c.targetTouches[0].pageY:c.pageY;if(c.preventedByNestedSwiper)return n.startX=h,void(n.startY=f);if(!this.allowTouchMove)return this.allowClick=!1,void(data.isTouched&&(d.extend(n,{startX:h,startY:f,currentX:h,currentY:f}),data.touchStartTime=d.now()));if(data.isTouchEvent&&t.touchReleaseOnEdges&&!t.loop)if(this.isVertical()){if(f<n.startY&&this.translate<=this.maxTranslate()||f>n.startY&&this.translate>=this.minTranslate())return data.isTouched=!1,void(data.isMoved=!1)}else if(h<n.startX&&this.translate<=this.maxTranslate()||h>n.startX&&this.translate>=this.minTranslate())return;if(data.isTouchEvent&&o.document.activeElement&&c.target===o.document.activeElement&&(0,r.$)(c.target).is(data.formElements))return data.isMoved=!0,void(this.allowClick=!1);if(data.allowTouchCallbacks&&this.emit("touchMove",c),!(c.targetTouches&&c.targetTouches.length>1)){n.currentX=h,n.currentY=f;var m=n.currentX-n.startX,A=n.currentY-n.startY;if(!(this.params.threshold&&Math.sqrt(m**2+A**2)<this.params.threshold)){var y;if(void 0===data.isScrolling)this.isHorizontal()&&n.currentY===n.startY||this.isVertical()&&n.currentX===n.startX?data.isScrolling=!1:m*m+A*A>=25&&(y=180*Math.atan2(Math.abs(A),Math.abs(m))/Math.PI,data.isScrolling=this.isHorizontal()?y>t.touchAngle:90-y>t.touchAngle);
2if(data.isScrolling&&this.emit("touchMoveOpposite",c),void 0===data.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(data.startMoving=!0)),data.isScrolling)data.isTouched=!1;else if(data.startMoving){this.allowClick=!1,c.preventDefault(),t.touchMoveStopPropagation&&!t.nested&&c.stopPropagation(),data.isMoved||(t.loop&&this.loopFix(),data.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),data.allowMomentumBounce=!1,!t.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",c)),this.emit("sliderMove",c),data.isMoved=!0;var v=this.isHorizontal()?m:A;n.diff=v,v*=t.touchRatio,l&&(v=-v),this.swipeDirection=v>0?"prev":"next",data.currentTranslate=v+data.startTranslate;var _=!0,w=t.resistanceRatio;if(t.touchReleaseOnEdges&&(w=0),v>0&&data.currentTranslate>this.minTranslate()?(_=!1,t.resistance&&(data.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+data.startTranslate+v)**w)):v<0&&data.currentTranslate<this.maxTranslate()&&(_=!1,t.resistance&&(data.currentTranslate=this.maxTranslate()+1-(this.maxTranslate()-data.startTranslate-v)**w)),_&&(c.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&data.currentTranslate<data.startTranslate&&(data.currentTranslate=data.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&data.currentTranslate>data.startTranslate&&(data.currentTranslate=data.startTranslate),t.threshold>0){if(!(Math.abs(v)>t.threshold||data.allowThresholdMove))return void(data.currentTranslate=data.startTranslate);
2if(!data.allowThresholdMove)return data.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,data.currentTranslate=data.startTranslate,void(n.diff=this.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}t.followFinger&&((t.freeMode||t.watchSlidesProgress||t.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),t.freeMode&&(0===data.velocities.length&&data.velocities.push({position:n[this.isHorizontal()?"startX":"startY"],time:data.touchStartTime}),data.velocities.push({position:n[this.isHorizontal()?"currentX":"currentY"],time:d.now()})),this.updateProgress(data.currentTranslate),this.setTranslate(data.currentTranslate))}}}}}else data.startMoving&&data.isScrolling&&this.emit("touchMoveOpposite",c)}function k(e){var t=this,data=t.touchEventsData,{params:n,touches:r,rtlTranslate:o,$wrapperEl:l,slidesGrid:c,snapGrid:h}=t,f=e;if(f.originalEvent&&(f=f.originalEvent),data.allowTouchCallbacks&&t.emit("touchEnd",f),data.allowTouchCallbacks=!1,!data.isTouched)return data.isMoved&&n.grabCursor&&t.setGrabCursor(!1),data.isMoved=!1,void(data.startMoving=!1);n.grabCursor&&data.isMoved&&data.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var m,A=d.now(),y=A-data.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(f),t.emit("tap",f),y<300&&A-data.lastClickTime>300&&(data.clickTimeout&&clearTimeout(data.clickTimeout),data.clickTimeout=d.nextTick(()=>{t&&!t.destroyed&&t.emit("click",f)},300)),y<300&&A-data.lastClickTime<300&&(data.clickTimeout&&clearTimeout(data.clickTimeout),t.emit("doubleTap",f))),data.lastClickTime=d.now(),d.nextTick(()=>{t.destroyed||(t.allowClick=!0)}),!data.isTouched||!data.isMoved||!t.swipeDirection||0===r.diff||data.currentTranslate===data.startTranslate)return data.isTouched=!1,data.isMoved=!1,void(data.startMoving=!1);if(data.isTouched=!1,data.isMoved=!1,data.startMoving=!1,m=n.followFinger?o?t.translate:-t.translate:-data.currentTranslate,n.freeMode){if(m<-t.minTranslate())return void t.slideTo(t.activeIndex);if(m>-t.maxTranslate())return void(t.slides.length<h.length?t.slideTo(h.length-1):t.slideTo(t.slides.length-1));if(n.freeModeMomentum){if(data.velocities.length>1){var v=data.velocities.pop(),_=data.velocities.pop(),w=v.position-_.position,time=v.time-_.time;t.velocity=w/time,t.velocity/=2,Math.abs(t.velocity)<n.freeModeMinimumVelocity&&(t.velocity=0),(time>150||d.now()-v.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=n.freeModeMomentumVelocityRatio,data.velocities.length=0;var x=1e3*n.freeModeMomentumRatio,E=t.velocity*x,C=t.translate+E;o&&(C=-C);var S,T,B=!1,k=20*Math.abs(t.velocity)*n.freeModeMomentumBounceRatio;if(C<t.maxTranslate())n.freeModeMomentumBounce?(C+t.maxTranslate()<-k&&(C=t.maxTranslate()-k),S=t.maxTranslate(),B=!0,data.allowMomentumBounce=!0):C=t.maxTranslate(),n.loop&&n.centeredSlides&&(T=!0);else if(C>t.minTranslate())n.freeModeMomentumBounce?(C-t.minTranslate()>k&&(C=t.minTranslate()+k),S=t.minTranslate(),B=!0,data.allowMomentumBounce=!0):C=t.minTranslate(),n.loop&&n.centeredSlides&&(T=!0);else if(n.freeModeSticky){for(var I,M=0;M<h.length;M+=1)if(h[M]>-C){I=M;break}C=-(C=Math.abs(h[I]-C)<Math.abs(h[I-1]-C)||"next"===t.swipeDirection?h[I]:h[I-1])}if(T&&t.once("transitionEnd",()=>{t.loopFix()}),0!==t.velocity)x=o?Math.abs((-C-t.translate)/t.velocity):Math.abs((C-t.translate)/t.velocity);else if(n.freeModeSticky)return void t.slideToClosest();n.freeModeMomentumBounce&&B?(t.updateProgress(S),t.setTransition(x),t.setTranslate(C),t.transitionStart(!0,t.swipeDirection),t.animating=!0,l.transitionEnd(()=>{t&&!t.destroyed&&data.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(n.speed),t.setTranslate(S),l.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(C),t.setTransition(x),t.setTranslate(C),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,l.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(C),t.updateActiveIndex(),t.updateSlidesClasses()}else if(n.freeModeSticky)return void t.slideToClosest();(!n.freeModeMomentum||y>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var P=0,D=t.slidesSizesGrid[0],i=0;i<c.length;i+=n.slidesPerGroup)void 0!==c[i+n.slidesPerGroup]?m>=c[i]&&m<c[i+n.slidesPerGroup]&&(P=i,D=c[i+n.slidesPerGroup]-c[i]):m>=c[i]&&(P=i,D=c[c.length-1]-c[c.length-2]);var U=(m-c[P])/D;if(y>n.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(U>=n.longSwipesRatio?t.slideTo(P+n.slidesPerGroup):t.slideTo(P)),"prev"===t.swipeDirection&&(U>1-n.longSwipesRatio?t.slideTo(P+n.slidesPerGroup):t.slideTo(P))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(P+n.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(P)}}}function I(){var{params:e,el:t}=this;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var{allowSlideNext:n,allowSlidePrev:r,snapGrid:o}=this;if(this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),e.freeMode){var l=Math.min(Math.max(this.translate,this.maxTranslate()),this.minTranslate());this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses(),e.autoHeight&&this.updateAutoHeight()}else this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0);this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=r,this.allowSlideNext=n,this.params.watchOverflow&&o!==this.snapGrid&&this.checkOverflow()}}function M(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}var P={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},D={update:y,translate:v,transition:_,slide:w,loop:x,grabCursor:E,manipulation:C,events:{attachEvents:function(){var{params:e,touchEvents:t,el:n,wrapperEl:r}=this;this.onTouchStart=T.bind(this),this.onTouchMove=B.bind(this),this.onTouchEnd=k.bind(this),this.onClick=M.bind(this);var l="container"===e.touchEventsTarget?n:r,c=!!e.nested;
2if(f.touch||!f.pointerEvents&&!f.prefixedPointerEvents){if(f.touch){var h=!("touchstart"!==t.start||!f.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};l.addEventListener(t.start,this.onTouchStart,h),l.addEventListener(t.move,this.onTouchMove,f.passiveListener?{passive:!1,capture:c}:c),l.addEventListener(t.end,this.onTouchEnd,h)}(e.simulateTouch&&!S.ios&&!S.android||e.simulateTouch&&!f.touch&&S.ios)&&(l.addEventListener("mousedown",this.onTouchStart,!1),o.document.addEventListener("mousemove",this.onTouchMove,c),o.document.addEventListener("mouseup",this.onTouchEnd,!1))}else l.addEventListener(t.start,this.onTouchStart,!1),o.document.addEventListener(t.move,this.onTouchMove,c),o.document.addEventListener(t.end,this.onTouchEnd,!1);(e.preventClicks||e.preventClicksPropagation)&&l.addEventListener("click",this.onClick,!0),this.on(S.ios||S.android?"resize orientationchange observerUpdate":"resize observerUpdate",I,!0)},detachEvents:function(){var{params:e,touchEvents:t,el:n,wrapperEl:r}=this,l="container"===e.touchEventsTarget?n:r,c=!!e.nested;if(f.touch||!f.pointerEvents&&!f.prefixedPointerEvents){if(f.touch){var h=!("onTouchStart"!==t.start||!f.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};l.removeEventListener(t.start,this.onTouchStart,h),l.removeEventListener(t.move,this.onTouchMove,c),l.removeEventListener(t.end,this.onTouchEnd,h)}(e.simulateTouch&&!S.ios&&!S.android||e.simulateTouch&&!f.touch&&S.ios)&&(l.removeEventListener("mousedown",this.onTouchStart,!1),o.document.removeEventListener("mousemove",this.onTouchMove,c),o.document.removeEventListener("mouseup",this.onTouchEnd,!1))}else l.removeEventListener(t.start,this.onTouchStart,!1),o.document.removeEventListener(t.move,this.onTouchMove,c),o.document.removeEventListener(t.end,this.onTouchEnd,!1);(e.preventClicks||e.preventClicksPropagation)&&l.removeEventListener("click",this.onClick,!0),this.off(S.ios||S.android?"resize orientationchange observerUpdate":"resize observerUpdate",I)}},breakpoints:{setBreakpoint:function(){var{activeIndex:e,initialized:t,loopedSlides:n=0,params:r}=this,o=r.breakpoints;if(o&&(!o||0!==Object.keys(o).length)){var l=this.getBreakpoint(o);if(l&&this.currentBreakpoint!==l){var c=l in o?o[l]:void 0;c&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(param=>{var e=c[param];void 0!==e&&(c[param]="slidesPerView"!==param||"AUTO"!==e&&"auto"!==e?"slidesPerView"===param?parseFloat(e):parseInt(e,10):"auto")});var h=c||this.originalParams,f=h.direction&&h.direction!==r.direction,m=r.loop&&(h.slidesPerView!==r.slidesPerView||f);f&&t&&this.changeDirection(),d.extend(this.params,h),d.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=l,m&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-n+this.loopedSlides,0,!1)),this.emit("breakpoint",h)}}},getBreakpoint:function(e){if(e){var t=!1,n=[];Object.keys(e).forEach(e=>{n.push(e)}),n.sort((a,b)=>parseInt(a,10)-parseInt(b,10));for(var i=0;i<n.length;i+=1){var r=n[i];this.params.breakpointsInverse?r<=o.window.innerWidth&&(t=r):r>=o.window.innerWidth&&!t&&(t=r)}return t||"max"}}},checkOverflow:{checkOverflow:function(){var e=this.isLocked;this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,e!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),e&&e!==this.isLocked&&(this.isEnd=!1,this.navigation.update())}},classes:{addClasses:function(){var{classNames:e,params:t,rtl:n,$el:r}=this,o=[];o.push("initialized"),o.push(t.direction),t.freeMode&&o.push("free-mode"),f.flexbox||o.push("no-flexbox"),t.autoHeight&&o.push("autoheight"),n&&o.push("rtl"),t.slidesPerColumn>1&&o.push("multirow"),S.android&&o.push("android"),S.ios&&o.push("ios"),(m.isIE||m.isEdge)&&(f.pointerEvents||f.prefixedPointerEvents)&&o.push("wp8-".concat(t.direction)),o.forEach(n=>{e.push(t.containerModifierClass+n)}),r.addClass(e.join(" "))},removeClasses:function(){var{$el:e,classNames:t}=this;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,n,r,l,c){var image;function h(){c&&c()}e.complete&&l?h():t?((image=new o.window.Image).onload=h,image.onerror=h,r&&(image.sizes=r),n&&(image.srcset=n),t&&(image.src=t)):h()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(
2),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var i=0;i<e.imagesToLoad.length;i+=1){var n=e.imagesToLoad[i];e.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,t)}}}},U={};class O extends A{constructor(){for(var e,t,n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];1===o.length&&o[0].constructor&&o[0].constructor===Object?t=o[0]:[e,t]=o,t||(t={}),t=d.extend({},t),e&&!t.el&&(t.el=e),super(t),Object.keys(D).forEach(e=>{Object.keys(D[e]).forEach(t=>{O.prototype[t]||(O.prototype[t]=D[e][t])})});var c=this;void 0===c.modules&&(c.modules={}),Object.keys(c.modules).forEach(e=>{var n=c.modules[e];if(n.params){var r=Object.keys(n.params)[0],o=n.params[r];if("object"!=typeof o||null===o)return;if(!(r in t)||!("enabled"in o))return;!0===t[r]&&(t[r]={enabled:!0}),"object"!=typeof t[r]||"enabled"in t[r]||(t[r].enabled=!0),t[r]||(t[r]={enabled:!1})}});var h=d.extend({},P);c.useModulesParams(h),c.params=d.extend({},h,U,t),c.originalParams=d.extend({},c.params),c.passedParams=d.extend({},t),c.$=r.$;var m=(0,r.$)(c.params.el);if(e=m[0]){if(m.length>1){var A=[];return m.each((e,n)=>{var r=d.extend({},t,{el:n});A.push(new O(r))}),A}e.swiper=c,m.data("swiper",c);var y,v,_=m.children(".".concat(c.params.wrapperClass));return d.extend(c,{$el:m,el:e,$wrapperEl:_,wrapperEl:_[0],classNames:[],slides:(0,r.$)(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===c.params.direction,isVertical:()=>"vertical"===c.params.direction,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===m.css("direction"),rtlTranslate:"horizontal"===c.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===m.css("direction")),wrongRTL:"-webkit-box"===_.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.params.allowSlidePrev,touchEvents:(y=["touchstart","touchmove","touchend"],v=["mousedown","mousemove","mouseup"],f.pointerEvents?v=["pointerdown","pointermove","pointerup"]:f.prefixedPointerEvents&&(v=["MSPointerDown","MSPointerMove","MSPointerUp"]),c.touchEventsTouch={start:y[0],move:y[1],end:y[2]},c.touchEventsDesktop={start:v[0],move:v[1],end:v[2]},f.touch||!c.params.simulateTouch?c.touchEventsTouch:c.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:d.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.useModules(),c.params.init&&c.init(),c}}slidesPerViewDynamic(){var{params:e,slides:t,slidesGrid:n,size:r,activeIndex:o}=this,l=1;if(e.centeredSlides){for(var c,h=t[o].swiperSlideSize,i=o+1;i<t.length;i+=1)t[i]&&!c&&(l+=1,(h+=t[i].swiperSlideSize)>r&&(c=!0));for(var d=o-1;d>=0;d-=1)t[d]&&!c&&(l+=1,(h+=t[d].swiperSlideSize)>r&&(c=!0))}else for(var f=o+1;f<t.length;f+=1)n[f]-n[o]<r&&(l+=1);return l}update(){var e=this;if(e&&!e.destroyed){var{snapGrid:t,params:n}=e;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(r(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}}changeDirection(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(this.$el.removeClass("".concat(this.params.containerModifierClass).concat(n," wp8-").concat(n)).addClass("".concat(this.params.containerModifierClass).concat(e)),(m.isIE||m.isEdge)&&(f.pointerEvents||f.prefixedPointerEvents)&&this.$el.addClass("".concat(this.params.containerModifierClass,"wp8-").concat(e)),this.params.direction=e,this.slides.each((t,n)=>{"vertical"===e?n.style.width="":n.style.height=""}
2),this.emit("changeDirection"),t&&this.update()),this}init(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))}destroy(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,{params:r,$el:o,$wrapperEl:l,slides:c}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),o.removeAttr("style"),l.removeAttr("style"),c&&c.length&&c.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.$el[0].swiper=null,n.$el.data("swiper",null),d.deleteProps(n)),n.destroyed=!0),null}static extendDefaults(e){d.extend(U,e)}static get extendedDefaults(){return U}static get defaults(){return P}static get Class(){return A}static get $(){return r.$}}var F={name:"device",proto:{device:S},static:{device:S}},R={name:"support",proto:{support:f},static:{support:f}},N={name:"browser",proto:{browser:m},static:{browser:m}},L={name:"resize",create(){var e=this;d.extend(e,{resize:{resizeHandler(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init(){o.window.addEventListener("resize",this.resize.resizeHandler),o.window.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy(){o.window.removeEventListener("resize",this.resize.resizeHandler),o.window.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},z={func:o.window.MutationObserver||o.window.WebkitMutationObserver,attach(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=new(0,z.func)(e=>{if(1!==e.length){var t=function(){n.emit("observerUpdate",e[0])};o.window.requestAnimationFrame?o.window.requestAnimationFrame(t):o.window.setTimeout(t,0)}else n.emit("observerUpdate",e[0])});r.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),n.observer.observers.push(r)},init(){if(f.observer&&this.params.observer){if(this.params.observeParents)for(var e=this.$el.parents(),i=0;i<e.length;i+=1)this.observer.attach(e[i]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy(){this.observer.observers.forEach(e=>{e.disconnect()}),this.observer.observers=[]}},H={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){d.extend(this,{observer:{init:z.init.bind(this),attach:z.attach.bind(this),destroy:z.destroy.bind(this),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}},Q={update(e){var t=this,{slidesPerView:n,slidesPerGroup:r,centeredSlides:o}=t.params,{addSlidesBefore:l,addSlidesAfter:c}=t.params.virtual,{from:h,to:f,slides:m,slidesGrid:A,renderSlide:y,offset:v}=t.virtual;t.updateActiveIndex();var _,w,x,E=t.activeIndex||0;_=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",o?(w=Math.floor(n/2)+r+l,x=Math.floor(n/2)+r+c):(w=n+(r-1)+l,x=r+c);var C=Math.max((E||0)-x,0),S=Math.min((E||0)+w,m.length-1),T=(t.slidesGrid[C]||0)-(t.slidesGrid[0]||0);function B(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(d.extend(t.virtual,{from:C,to:S,offset:T,slidesGrid:t.slidesGrid}),h===C&&f===S&&!e)return t.slidesGrid!==A&&T!==v&&t.slides.css(_,"".concat(T,"px")),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:T,from:C,to:S,slides:function(){for(var e=[],i=C;i<=S;
2i+=1)e.push(m[i]);return e}()}),void B();var k=[],I=[];if(e)t.$wrapperEl.find(".".concat(t.params.slideClass)).remove();else for(var i=h;i<=f;i+=1)(i<C||i>S)&&t.$wrapperEl.find(".".concat(t.params.slideClass,'[data-swiper-slide-index="').concat(i,'"]')).remove();for(var M=0;M<m.length;M+=1)M>=C&&M<=S&&(void 0===f||e?I.push(M):(M>f&&I.push(M),M<h&&k.push(M)));I.forEach(e=>{t.$wrapperEl.append(y(m[e],e))}),k.sort((a,b)=>b-a).forEach(e=>{t.$wrapperEl.prepend(y(m[e],e))}),t.$wrapperEl.children(".swiper-slide").css(_,"".concat(T,"px")),B()},renderSlide(e,t){var n=this.params.virtual;if(n.cache&&this.virtual.cache[t])return this.virtual.cache[t];var o=n.renderSlide?(0,r.$)(n.renderSlide.call(this,e,t)):(0,r.$)('<div class="'.concat(this.params.slideClass,'" data-swiper-slide-index="').concat(t,'">').concat(e,"</div>"));return o.attr("data-swiper-slide-index")||o.attr("data-swiper-slide-index",t),n.cache&&(this.virtual.cache[t]=o),o},appendSlide(e){if("object"==typeof e&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&this.virtual.slides.push(e[i]);else this.virtual.slides.push(e);this.virtual.update(!0)},prependSlide(e){var t=this.activeIndex,n=t+1,r=1;if(Array.isArray(e)){for(var i=0;i<e.length;i+=1)e[i]&&this.virtual.slides.unshift(e[i]);n=t+e.length,r=e.length}else this.virtual.slides.unshift(e);if(this.params.virtual.cache){var o=this.virtual.cache,l={};Object.keys(o).forEach(e=>{l[parseInt(e,10)+r]=o[e]}),this.virtual.cache=l}this.virtual.update(!0),this.slideTo(n,0)},removeSlide(e){if(null!=e){var t=this.activeIndex;if(Array.isArray(e))for(var i=e.length-1;i>=0;i-=1)this.virtual.slides.splice(e[i],1),this.params.virtual.cache&&delete this.virtual.cache[e[i]],e[i]<t&&(t-=1),t=Math.max(t,0);else this.virtual.slides.splice(e,1),this.params.virtual.cache&&delete this.virtual.cache[e],e<t&&(t-=1),t=Math.max(t,0);this.virtual.update(!0),this.slideTo(t,0)}},removeAllSlides(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},V={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){d.extend(this,{virtual:{update:Q.update.bind(this),appendSlide:Q.appendSlide.bind(this),prependSlide:Q.prependSlide.bind(this),removeSlide:Q.removeSlide.bind(this),removeAllSlides:Q.removeAllSlides.bind(this),renderSlide:Q.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit(){if(this.params.virtual.enabled){this.classNames.push("".concat(this.params.containerModifierClass,"virtual"));var e={watchSlidesProgress:!0};d.extend(this.params,e),d.extend(this.originalParams,e),this.params.initialSlide||this.virtual.update(
2)}},setTranslate(){this.params.virtual.enabled&&this.virtual.update()}}},j={handle(e){var{rtlTranslate:t}=this,n=e;n.originalEvent&&(n=n.originalEvent);var r=n.keyCode||n.charCode;if(!this.allowSlideNext&&(this.isHorizontal()&&39===r||this.isVertical()&&40===r||34===r))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&37===r||this.isVertical()&&38===r||33===r))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||o.document.activeElement&&o.document.activeElement.nodeName&&("input"===o.document.activeElement.nodeName.toLowerCase()||"textarea"===o.document.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(33===r||34===r||37===r||39===r||38===r||40===r)){var l=!1;if(this.$el.parents(".".concat(this.params.slideClass)).length>0&&0===this.$el.parents(".".concat(this.params.slideActiveClass)).length)return;var c=o.window.innerWidth,h=o.window.innerHeight,d=this.$el.offset();t&&(d.left-=this.$el[0].scrollLeft);for(var f=[[d.left,d.top],[d.left+this.width,d.top],[d.left,d.top+this.height],[d.left+this.width,d.top+this.height]],i=0;i<f.length;i+=1){var m=f[i];m[0]>=0&&m[0]<=c&&m[1]>=0&&m[1]<=h&&(l=!0)}if(!l)return}this.isHorizontal()?(33!==r&&34!==r&&37!==r&&39!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),(34!==r&&39!==r||t)&&(33!==r&&37!==r||!t)||this.slideNext(),(33!==r&&37!==r||t)&&(34!==r&&39!==r||!t)||this.slidePrev()):(33!==r&&34!==r&&38!==r&&40!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),34!==r&&40!==r||this.slideNext(),33!==r&&38!==r||this.slidePrev()),this.emit("keyPress",r)}},enable(){this.keyboard.enabled||((0,r.$)(o.document).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable(){this.keyboard.enabled&&((0,r.$)(o.document).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},G={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create(){d.extend(this,{keyboard:{enabled:!1,enable:j.enable.bind(this),disable:j.disable.bind(this),handle:j.handle.bind(this)}})},on:{init(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy(){this.keyboard.enabled&&this.keyboard.disable()}}};var K={lastScrollTime:d.now(),event:o.window.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e="onwheel"in o.document;if(!e){var element=o.document.createElement("div");element.setAttribute("onwheel","return;"),e="function"==typeof element.onwheel}return!e&&o.document.implementation&&o.document.implementation.hasFeature&&!0!==o.document.implementation.hasFeature("","")&&(e=o.document.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel",normalize(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1===e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}},handleMouseEnter(){this.mouseEntered=!0},handleMouseLeave(){this.mouseEntered=!1},handle(e){var t=e,n=this,r=n.params.mousewheel;if(!n.mouseEntered&&!r.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var l=0,c=n.rtlTranslate?-1:1,data=K.normalize(t);if(r.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(data.pixelX)>Math.abs(data.pixelY)))return!0;l=data.pixelX*c}else{if(!(Math.abs(data.pixelY)>Math.abs(data.pixelX)))return!0;l=data.pixelY}else l=Math.abs(data.pixelX)>Math.abs(data.pixelY)?-data.pixelX*c:-data.pixelY;if(0===l)return!0;if(r.invert&&(l=-l),n.params.freeMode){n.params.loop&&n.loopFix();var h=n.getTranslate()+l*r.sensitivity,f=n.isBeginning,m=n.isEnd;if(h>=n.minTranslate()&&(h=n.minTranslate()),h<=n.maxTranslate()&&(h=n.maxTranslate()),n.setTransition(0),n.setTranslate(h),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!f&&n.isBeginning||!m&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=d.nextTick(()=>{n.slideToClosest()},300)),n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),h===n.minTranslate()||h===n.maxTranslate())return!0}else{if(d.now()-n.mousewheel.lastScrollTime>60)if(l<0)if(n.isEnd&&!n.params.loop||n.animating){if(r.releaseOnEdges)return!0}else n.slideNext(),n.emit("scroll",t);else if(n.isBeginning&&!n.params.loop||n.animating){if(r.releaseOnEdges)return!0}else n.slidePrev(),n.emit("scroll",t);n.mousewheel.lastScrollTime=(new o.window.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable(){if(!K.event)return!1;if(this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(e=(0,r.$)(this.params.mousewheel.eventsTarged)),e.on("mouseenter",this.mousewheel.handleMouseEnter),e.on("mouseleave",this.mousewheel.handleMouseLeave),e.on(K.event,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable(){if(!K.event)return!1;if(!this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(e=(0,r.$)(this.params.mousewheel.eventsTarged)),e.off(K.event,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}}
2,$={update(){var e=this.params.navigation;if(!this.params.loop){var{$nextEl:t,$prevEl:n}=this.navigation;n&&n.length>0&&(this.isBeginning?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)),t&&t.length>0&&(this.isEnd?t.addClass(e.disabledClass):t.removeClass(e.disabledClass),t[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init(){var e,t,n=this.params.navigation;(n.nextEl||n.prevEl)&&(n.nextEl&&(e=(0,r.$)(n.nextEl),this.params.uniqueNavElements&&"string"==typeof n.nextEl&&e.length>1&&1===this.$el.find(n.nextEl).length&&(e=this.$el.find(n.nextEl))),n.prevEl&&(t=(0,r.$)(n.prevEl),this.params.uniqueNavElements&&"string"==typeof n.prevEl&&t.length>1&&1===this.$el.find(n.prevEl).length&&(t=this.$el.find(n.prevEl))),e&&e.length>0&&e.on("click",this.navigation.onNextClick),t&&t.length>0&&t.on("click",this.navigation.onPrevClick),d.extend(this.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy(){var{$nextEl:e,$prevEl:t}=this.navigation;e&&e.length&&(e.off("click",this.navigation.onNextClick),e.removeClass(this.params.navigation.disabledClass)),t&&t.length&&(t.off("click",this.navigation.onPrevClick),t.removeClass(this.params.navigation.disabledClass))}},Y={update(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var n,o=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,l=this.pagination.$el,c=this.params.loop?Math.ceil((o-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((n=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>o-1-2*this.loopedSlides&&(n-=o-2*this.loopedSlides),n>c-1&&(n-=c),n<0&&"bullets"!==this.params.paginationType&&(n=c+n)):n=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var h,d,f,m=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=m.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),l.css(this.isHorizontal()?"width":"height","".concat(this.pagination.bulletSize*(t.dynamicMainBullets+4),"px")),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=n-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),h=n-this.pagination.dynamicBulletIndex,f=((d=h+(Math.min(m.length,t.dynamicMainBullets)-1))+h)/2),m.removeClass("".concat(t.bulletActiveClass," ").concat(t.bulletActiveClass,"-next ").concat(t.bulletActiveClass,"-next-next ").concat(t.bulletActiveClass,"-prev ").concat(t.bulletActiveClass,"-prev-prev ").concat(t.bulletActiveClass,"-main")),l.length>1)m.each((e,o)=>{var l=(0,r.$)(o),c=l.index();c===n&&l.addClass(t.bulletActiveClass),t.dynamicBullets&&(c>=h&&c<=d&&l.addClass("".concat(t.bulletActiveClass,"-main")),c===h&&l.prev().addClass("".concat(t.bulletActiveClass,"-prev")).prev().addClass("".concat(t.bulletActiveClass,"-prev-prev")),c===d&&l.next().addClass("".concat(t.bulletActiveClass,"-next")).next().addClass("".concat(t.bulletActiveClass,"-next-next")))});else if(m.eq(n).addClass(t.bulletActiveClass),t.dynamicBullets){for(var A=m.eq(h),y=m.eq(d),i=h;i<=d;i+=1)m.eq(i).addClass("".concat(t.bulletActiveClass,"-main"));A.prev().addClass("".concat(t.bulletActiveClass,"-prev")).prev().addClass("".concat(t.bulletActiveClass,"-prev-prev")),y.next().addClass("".concat(t.bulletActiveClass,"-next")).next().addClass("".concat(t.bulletActiveClass,"-next-next"))}if(t.dynamicBullets){var v=Math.min(m.length,t.dynamicMainBullets+4),_=(this.pagination.bulletSize*v-this.pagination.bulletSize)/2-f*this.pagination.bulletSize,w=e?"right":"left";m.css(this.isHorizontal()?w:"top","".concat(_,"px"))}}if("fraction"===t.type&&(l.find(".".concat(t.currentClass)).text(t.formatFractionCurrent(n+1)),l.find(".".concat(t.totalClass)).text(t.formatFractionTotal(c))),"progressbar"===t.type){var x;x=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var E=(n+1)/c,C=1,S=1;"horizontal"===x?C=E:S=E,l.find(".".concat(t.progressbarFillClass)).transform("translate3d(0,
20,0) scaleX(".concat(C,") scaleY(").concat(S,")")).transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(l.html(t.renderCustom(this,n+1,c)),this.emit("paginationRender",this,l[0])):this.emit("paginationUpdate",this,l[0]),l[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)}},render(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,n=this.pagination.$el,r="";if("bullets"===e.type){for(var o=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,i=0;i<o;i+=1)e.renderBullet?r+=e.renderBullet.call(this,i,e.bulletClass):r+="<".concat(e.bulletElement,' class="').concat(e.bulletClass,'"></').concat(e.bulletElement,">");n.html(r),this.pagination.bullets=n.find(".".concat(e.bulletClass))}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):'<span class="'.concat(e.currentClass,'"></span>')+" / "+'<span class="'.concat(e.totalClass,'"></span>'),n.html(r)),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'<span class="'.concat(e.progressbarFillClass,'"></span>'),n.html(r)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init(){var e=this,t=e.params.pagination;if(t.el){var n=(0,r.$)(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&1===e.$el.find(t.el).length&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass("".concat(t.modifierClass).concat(t.type,"-dynamic")),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",".".concat(t.bulletClass),(function(t){t.preventDefault();var n=(0,r.$)(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),d.extend(e.pagination,{$el:n,el:n[0]}))}},destroy(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click",".".concat(e.bulletClass))}}},W={setTranslate(){if(this.params.scrollbar.el&&this.scrollbar.el){var{scrollbar:e,rtlTranslate:t,progress:progress}=this,{dragSize:n,trackSize:r,$dragEl:o,$el:l}=e,c=this.params.scrollbar,h=n,d=(r-n)*progress;t?(d=-d)>0?(h=n-d,d=0):-d+n>r&&(h=r+d):d<0?(h=n+d,d=0):d+n>r&&(h=r-d),this.isHorizontal()?(f.transforms3d?o.transform("translate3d(".concat(d,"px, 0, 0)")):o.transform("translateX(".concat(d,"px)")),o[0].style.width="".concat(h,"px")):(f.transforms3d?o.transform("translate3d(0px, ".concat(d,"px, 0)")):o.transform("translateY(".concat(d,"px)")),o[0].style.height="".concat(h,"px")),c.hide&&(clearTimeout(this.scrollbar.timeout),l[0].style.opacity=1,this.scrollbar.timeout=setTimeout(()=>{l[0].style.opacity=0,l.transition(400)},1e3))}},setTransition(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize(){if(this.params.scrollbar.el&&this.scrollbar.el){var{scrollbar:e}=this,{$dragEl:t,$el:n}=e;t[0].style.width="",t[0].style.height="";var r,o=this.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,l=this.size/this.virtualSize,c=l*(o/this.size);r="auto"===this.params.scrollbar.dragSize?o*l:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?t[0].style.width="".concat(r,"px"):t[0].style.height="".concat(r,"px"),n[0].style.display=l>=1?"none":"",this.params.scrollbar.hide&&(n[0].style.opacity=0),d.extend(e,{trackSize:o,divider:l,moveDivider:c,dragSize:r}),e.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition(e){var t,{scrollbar:n,rtlTranslate:r}=this,{$el:o,dragSize:l,trackSize:c,dragStartPos:h}=n;t=(n.getPointerPosition(e)-o.offset()[this.isHorizontal()?"left":"top"]-(null!==h?h:l/2))/(c-l),t=Math.max(Math.min(t,1),0),r&&(t=1-t);var d=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*t;this.updateProgress(d),this.setTranslate(d),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart(e){var t=this.params.scrollbar,{scrollbar:n,$wrapperEl:r}=this,{$el:o,$dragEl:l}=n;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=e.target===l[0]||e.target===l?n.getPointerPosition(e)-e.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),l.transition(100),n.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),o.transition(0),t.hide&&o.css("opacity",1),this.emit
2("scrollbarDragStart",e)},onDragMove(e){var{scrollbar:t,$wrapperEl:n}=this,{$el:r,$dragEl:o}=t;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),n.transition(0),r.transition(0),o.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd(e){var t=this.params.scrollbar,{scrollbar:n}=this,{$el:r}=n;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,t.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=d.nextTick(()=>{r.css("opacity",0),r.transition(400)},1e3)),this.emit("scrollbarDragEnd",e),t.snapOnRelease&&this.slideToClosest())},enableDraggable(){if(this.params.scrollbar.el){var{scrollbar:e,touchEventsTouch:t,touchEventsDesktop:n,params:r}=this,l=e.$el[0],c=!(!f.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},h=!(!f.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};f.touch?(l.addEventListener(t.start,this.scrollbar.onDragStart,c),l.addEventListener(t.move,this.scrollbar.onDragMove,c),l.addEventListener(t.end,this.scrollbar.onDragEnd,h)):(l.addEventListener(n.start,this.scrollbar.onDragStart,c),o.document.addEventListener(n.move,this.scrollbar.onDragMove,c),o.document.addEventListener(n.end,this.scrollbar.onDragEnd,h))}},disableDraggable(){if(this.params.scrollbar.el){var{scrollbar:e,touchEventsTouch:t,touchEventsDesktop:n,params:r}=this,l=e.$el[0],c=!(!f.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},h=!(!f.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};f.touch?(l.removeEventListener(t.start,this.scrollbar.onDragStart,c),l.removeEventListener(t.move,this.scrollbar.onDragMove,c),l.removeEventListener(t.end,this.scrollbar.onDragEnd,h)):(l.removeEventListener(n.start,this.scrollbar.onDragStart,c),o.document.removeEventListener(n.move,this.scrollbar.onDragMove,c),o.document.removeEventListener(n.end,this.scrollbar.onDragEnd,h))}},init(){if(this.params.scrollbar.el){var{scrollbar:e,$el:t}=this,n=this.params.scrollbar,o=(0,r.$)(n.el);this.params.uniqueNavElements&&"string"==typeof n.el&&o.length>1&&1===t.find(n.el).length&&(o=t.find(n.el));var l=o.find(".".concat(this.params.scrollbar.dragClass));0===l.length&&(l=(0,r.$)('<div class="'.concat(this.params.scrollbar.dragClass,'"></div>')),o.append(l)),d.extend(e,{$el:o,el:o[0],$dragEl:l,dragEl:l[0]}),n.draggable&&e.enableDraggable()}},destroy(){this.scrollbar.disableDraggable()}},X={setTransform(e,progress){var{rtl:t}=this,n=(0,r.$)(e),o=t?-1:1,p=n.attr("data-swiper-parallax")||"0",l=n.attr("data-swiper-parallax-x"),c=n.attr("data-swiper-parallax-y"),h=n.attr("data-swiper-parallax-scale"),d=n.attr("data-swiper-parallax-opacity");if(l||c?(l=l||"0",c=c||"0"):this.isHorizontal()?(l=p,c="0"):(c=p,l="0"),l=l.indexOf("%")>=0?"".concat(parseInt(l,10)*progress*o,"%"):"".concat(l*progress*o,"px"),c=c.indexOf("%")>=0?"".concat(parseInt(c,10)*progress,"%"):"".concat(c*progress,"px"),null!=d){var f=d-(d-1)*(1-Math.abs(progress));n[0].style.opacity=f}if(null==h)n.transform("translate3d(".concat(l,", ").concat(c,", 0px)"));else{var m=h-(h-1)*(1-Math.abs(progress));n.transform("translate3d(".concat(l,", ").concat(c,", 0px) scale(").concat(m,")"))}},setTranslate(){var e=this,{$el:t,slides:n,progress:progress,snapGrid:o}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t,n)=>{e.parallax.setTransform(n,progress)}),n.each((t,n)=>{var l=n.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(l+=Math.ceil(t/2)-progress*(o.length-1)),l=Math.min(Math.max(l,-1),1),(0,r.$)(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t,n)=>{e.parallax.setTransform(n,l)})})},setTransition(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,{$el:t}=this;t.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t,n)=>{var o=(0,r.$)(n),l=parseInt(o.attr("data-swiper-parallax-duration"),10)||e;0===e&&(l=0),o.transition(l)})}},J={getDistanceBetweenTouches(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,r=e.targetTouches[1].pageX,o=e.targetTouches[1].pageY;return Math.sqrt((r-t)**2+(o-n)**2)},onGestureStart(e){var t=this.params.zoom,n=this.zoom,{gesture:o}=n;
2if(n.fakeGestureTouched=!1,n.fakeGestureMoved=!1,!f.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;n.fakeGestureTouched=!0,o.scaleStart=J.getDistanceBetweenTouches(e)}o.$slideEl&&o.$slideEl.length||(o.$slideEl=(0,r.$)(e.target).closest(".swiper-slide"),0===o.$slideEl.length&&(o.$slideEl=this.slides.eq(this.activeIndex)),o.$imageEl=o.$slideEl.find("img, svg, canvas"),o.$imageWrapEl=o.$imageEl.parent(".".concat(t.containerClass)),o.maxRatio=o.$imageWrapEl.attr("data-swiper-zoom")||t.maxRatio,0!==o.$imageWrapEl.length)?(o.$imageEl.transition(0),this.zoom.isScaling=!0):o.$imageEl=void 0},onGestureChange(e){var t=this.params.zoom,n=this.zoom,{gesture:r}=n;if(!f.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,r.scaleMove=J.getDistanceBetweenTouches(e)}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=f.gestures?e.scale*n.currentScale:r.scaleMove/r.scaleStart*n.currentScale,n.scale>r.maxRatio&&(n.scale=r.maxRatio-1+(n.scale-r.maxRatio+1)**.5),n.scale<t.minRatio&&(n.scale=t.minRatio+1-(t.minRatio-n.scale+1)**.5),r.$imageEl.transform("translate3d(0,0,0) scale(".concat(n.scale,")")))},onGestureEnd(e){var t=this.params.zoom,n=this.zoom,{gesture:r}=n;if(!f.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!S.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,r.maxRatio),t.minRatio),r.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale(".concat(n.scale,")")),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(r.$slideEl=void 0))},onTouchStart(e){var t=this.zoom,{gesture:n,image:image}=t;n.$imageEl&&0!==n.$imageEl.length&&(image.isTouched||(S.android&&e.preventDefault(),image.isTouched=!0,image.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,image.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove(e){var t=this.zoom,{gesture:n,image:image,velocity:r}=t;if(n.$imageEl&&0!==n.$imageEl.length&&(this.allowClick=!1,image.isTouched&&n.$slideEl)){image.isMoved||(image.width=n.$imageEl[0].offsetWidth,image.height=n.$imageEl[0].offsetHeight,image.startX=d.getTranslate(n.$imageWrapEl[0],"x")||0,image.startY=d.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),this.rtl&&(image.startX=-image.startX,image.startY=-image.startY));var o=image.width*t.scale,l=image.height*t.scale;if(!(o<n.slideWidth&&l<n.slideHeight)){if(image.minX=Math.min(n.slideWidth/2-o/2,0),image.maxX=-image.minX,image.minY=Math.min(n.slideHeight/2-l/2,0),image.maxY=-image.minY,image.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,image.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!image.isMoved&&!t.isScaling){if(this.isHorizontal()&&(Math.floor(image.minX)===Math.floor(image.startX)&&image.touchesCurrent.x<image.touchesStart.x||Math.floor(image.maxX)===Math.floor(image.startX)&&image.touchesCurrent.x>image.touchesStart.x))return void(image.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(image.minY)===Math.floor(image.startY)&&image.touchesCurrent.y<image.touchesStart.y||Math.floor(image.maxY)===Math.floor(image.startY)&&image.touchesCurrent.y>image.touchesStart.y))return void(image.isTouched=!1)}e.preventDefault(),e.stopPropagation(),image.isMoved=!0,image.currentX=image.touchesCurrent.x-image.touchesStart.x+image.startX,image.currentY=image.touchesCurrent.y-image.touchesStart.y+image.startY,image.currentX<image.minX&&(image.currentX=image.minX+1-(image.minX-image.currentX+1)**.8),image.currentX>image.maxX&&(image.currentX=image.maxX-1+(image.currentX-image.maxX+1)**.8),image.currentY<image.minY&&(image.currentY=image.minY+1-(image.minY-image.currentY+1)**.8),image.currentY>image.maxY&&(image.currentY=image.maxY-1+(image.currentY-image.maxY+1)**.8),r.prevPositionX||(r.prevPositionX=image.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=image.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(image.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(image.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(image.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(image.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=image.touchesCurrent.x,r.prevPositionY=image.touchesCurrent.y,r.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d(".concat(image.currentX,"px, ").concat(image.currentY,"px,0)"))}}},onTouchEnd(){var e=this.zoom,{gesture:t,image:image,velocity:n}=e;if(t.$imageEl&&0!==t.$imageEl.length){if(!image.isTouched||!image.isMoved)return image.isTouched=!1,void(image.isMoved=!1);image.isTouched=!1,image.isMoved=!1;var r=300,o=300,l=n.x*r,c=image.currentX+l,h=n.y*o,d=image.currentY+h;0!==n.x&&(r=Math.abs((c-image.currentX)/n.x)),0!==n.y&&(o=Math.abs((d-image.currentY)/n.y));var f=Math.max(r,o);image.currentX=c,image.currentY=d;
2var m=image.width*e.scale,A=image.height*e.scale;image.minX=Math.min(t.slideWidth/2-m/2,0),image.maxX=-image.minX,image.minY=Math.min(t.slideHeight/2-A/2,0),image.maxY=-image.minY,image.currentX=Math.max(Math.min(image.currentX,image.maxX),image.minX),image.currentY=Math.max(Math.min(image.currentY,image.maxY),image.minY),t.$imageWrapEl.transition(f).transform("translate3d(".concat(image.currentX,"px, ").concat(image.currentY,"px,0)"))}},onTransitionEnd(){var e=this.zoom,{gesture:t}=e;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in(e){var t,n,o,l,c,h,d,f,m,A,y,v,_,w,x,E,C=this.zoom,S=this.params.zoom,{gesture:T,image:image}=C;(T.$slideEl||(T.$slideEl=this.clickedSlide?(0,r.$)(this.clickedSlide):this.slides.eq(this.activeIndex),T.$imageEl=T.$slideEl.find("img, svg, canvas"),T.$imageWrapEl=T.$imageEl.parent(".".concat(S.containerClass))),T.$imageEl&&0!==T.$imageEl.length)&&(T.$slideEl.addClass("".concat(S.zoomedSlideClass)),void 0===image.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,n="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=image.touchesStart.x,n=image.touchesStart.y),C.scale=T.$imageWrapEl.attr("data-swiper-zoom")||S.maxRatio,C.currentScale=T.$imageWrapEl.attr("data-swiper-zoom")||S.maxRatio,e?(x=T.$slideEl[0].offsetWidth,E=T.$slideEl[0].offsetHeight,o=T.$slideEl.offset().left+x/2-t,l=T.$slideEl.offset().top+E/2-n,d=T.$imageEl[0].offsetWidth,f=T.$imageEl[0].offsetHeight,m=d*C.scale,A=f*C.scale,_=-(y=Math.min(x/2-m/2,0)),w=-(v=Math.min(E/2-A/2,0)),(c=o*C.scale)<y&&(c=y),c>_&&(c=_),(h=l*C.scale)<v&&(h=v),h>w&&(h=w)):(c=0,h=0),T.$imageWrapEl.transition(300).transform("translate3d(".concat(c,"px, ").concat(h,"px,0)")),T.$imageEl.transition(300).transform("translate3d(0,0,0) scale(".concat(C.scale,")")))},out(){var e=this.zoom,t=this.params.zoom,{gesture:n}=e;n.$slideEl||(n.$slideEl=this.clickedSlide?(0,r.$)(this.clickedSlide):this.slides.eq(this.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent(".".concat(t.containerClass))),n.$imageEl&&0!==n.$imageEl.length&&(e.scale=1,e.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass("".concat(t.zoomedSlideClass)),n.$slideEl=void 0)},enable(){var e=this.zoom;if(!e.enabled){e.enabled=!0;var t=!("touchstart"!==this.touchEvents.start||!f.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};f.gestures?(this.$wrapperEl.on("gesturestart",".swiper-slide",e.onGestureStart,t),this.$wrapperEl.on("gesturechange",".swiper-slide",e.onGestureChange,t),this.$wrapperEl.on("gestureend",".swiper-slide",e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,".swiper-slide",e.onGestureStart,t),this.$wrapperEl.on(this.touchEvents.move,".swiper-slide",e.onGestureChange,t),this.$wrapperEl.on(this.touchEvents.end,".swiper-slide",e.onGestureEnd,t)),this.$wrapperEl.on(this.touchEvents.move,".".concat(this.params.zoom.containerClass),e.onTouchMove)}},disable(){var e=this.zoom;if(e.enabled){this.zoom.enabled=!1;var t=!("touchstart"!==this.touchEvents.start||!f.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};f.gestures?(this.$wrapperEl.off("gesturestart",".swiper-slide",e.onGestureStart,t),this.$wrapperEl.off("gesturechange",".swiper-slide",e.onGestureChange,t),this.$wrapperEl.off("gestureend",".swiper-slide",e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,".swiper-slide",e.onGestureStart,t),this.$wrapperEl.off(this.touchEvents.move,".swiper-slide",e.onGestureChange,t),this.$wrapperEl.off(this.touchEvents.end,".swiper-slide",e.onGestureEnd,t)),this.$wrapperEl.off(this.touchEvents.move,".".concat(this.params.zoom.containerClass),e.onTouchMove)}}},Z={loadInSlide(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,o=n.params.lazy;if(void 0!==e&&0!==n.slides.length){var l=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children(".".concat(n.params.slideClass,'[data-swiper-slide-index="').concat(e,'"]')):n.slides.eq(e),c=l.find(".".concat(o.elementClass,":not(.").concat(o.loadedClass,"):not(.").concat(o.loadingClass,")"));!l.hasClass(o.elementClass)||l.hasClass(o.loadedClass)||l.hasClass(o.loadingClass)||(c=c.add(l[0])),0!==c.length&&c.each((e,c)=>{var h=(0,r.$)(c);h.addClass(o.loadingClass);var d=h.attr("data-background"),f=h.attr("data-src"),m=h.attr("data-srcset"),A=h.attr("data-sizes");n.loadImage(h[0],f||d,m,A,!1,()=>
2{if(null!=n&&n&&(!n||n.params)&&!n.destroyed){if(d?(h.css("background-image",'url("'.concat(d,'")')),h.removeAttr("data-background")):(m&&(h.attr("srcset",m),h.removeAttr("data-srcset")),A&&(h.attr("sizes",A),h.removeAttr("data-sizes")),f&&(h.attr("src",f),h.removeAttr("data-src"))),h.addClass(o.loadedClass).removeClass(o.loadingClass),l.find(".".concat(o.preloaderClass)).remove(),n.params.loop&&t){var e=l.attr("data-swiper-slide-index");if(l.hasClass(n.params.slideDuplicateClass)){var r=n.$wrapperEl.children('[data-swiper-slide-index="'.concat(e,'"]:not(.').concat(n.params.slideDuplicateClass,")"));n.lazy.loadInSlide(r.index(),!1)}else{var c=n.$wrapperEl.children(".".concat(n.params.slideDuplicateClass,'[data-swiper-slide-index="').concat(e,'"]'));n.lazy.loadInSlide(c.index(),!1)}}n.emit("lazyImageReady",l[0],h[0])}}),n.emit("lazyImageLoad",l[0],h[0])})}},load(){var e=this,{$wrapperEl:t,params:n,slides:o,activeIndex:l}=e,c=e.virtual&&n.virtual.enabled,h=n.lazy,d=n.slidesPerView;function f(e){if(c){if(t.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]')).length)return!0}else if(o[e])return!0;return!1}function m(e){return c?(0,r.$)(e).attr("data-swiper-slide-index"):(0,r.$)(e).index()}if("auto"===d&&(d=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(".".concat(n.slideVisibleClass)).each((t,n)=>{var o=c?(0,r.$)(n).attr("data-swiper-slide-index"):(0,r.$)(n).index();e.lazy.loadInSlide(o)});else if(d>1)for(var i=l;i<l+d;i+=1)f(i)&&e.lazy.loadInSlide(i);else e.lazy.loadInSlide(l);if(h.loadPrevNext)if(d>1||h.loadPrevNextAmount&&h.loadPrevNextAmount>1){for(var A=h.loadPrevNextAmount,y=d,v=Math.min(l+y+Math.max(A,y),o.length),_=Math.max(l-Math.max(y,A),0),w=l+d;w<v;w+=1)f(w)&&e.lazy.loadInSlide(w);for(var x=_;x<l;x+=1)f(x)&&e.lazy.loadInSlide(x)}else{var E=t.children(".".concat(n.slideNextClass));E.length>0&&e.lazy.loadInSlide(m(E));var C=t.children(".".concat(n.slidePrevClass));C.length>0&&e.lazy.loadInSlide(m(C))}}},ee={LinearSpline:function(e,t){var n,r,o,l,c,h=(e,t)=>{for(r=-1,n=e.length;n-r>1;)e[o=n+r>>1]<=t?r=o:n=o;return n};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(c=h(this.x,e),l=c-1,(e-this.x[l])*(this.y[c]-this.y[l])/(this.x[c]-this.x[l])+this.y[l]):0},this},getInterpolateFunction(e){this.controller.spline||(this.controller.spline=this.params.loop?new ee.LinearSpline(this.slidesGrid,e.slidesGrid):new ee.LinearSpline(this.snapGrid,e.snapGrid))},setTranslate(e,t){var n,r,o=this,l=o.controller.control;function c(e){var t=o.rtlTranslate?-o.translate:o.translate;"slide"===o.params.controller.by&&(o.controller.getInterpolateFunction(e),r=-o.controller.spline.interpolate(-t)),r&&"container"!==o.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(o.maxTranslate()-o.minTranslate()),r=(t-o.minTranslate())*n+e.minTranslate()),o.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,o),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(l))for(var i=0;i<l.length;i+=1)l[i]!==t&&l[i]instanceof O&&c(l[i]);else l instanceof O&&t!==l&&c(l)},setTransition(e,t){var i,n=this,r=n.controller.control;function o(t){t.setTransition(e,n),0!==e&&(t.transitionStart(),t.params.autoHeight&&d.nextTick(()=>{t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(()=>{r&&(t.params.loop&&"slide"===n.params.controller.by&&t.loopFix(),t.transitionEnd())}))}if(Array.isArray(r))for(i=0;i<r.length;i+=1)r[i]!==t&&r[i]instanceof O&&o(r[i]);else r instanceof O&&t!==r&&o(r)}},te={makeElFocusable:e=>(e.attr("tabIndex","0"),e),addElRole:(e,t)=>(e.attr("role",t),e),addElLabel:(e,label)=>(e.attr("aria-label",label),e),disableEl:e=>(e.attr("aria-disabled",!0),e),enableEl:e=>(e.attr("aria-disabled",!1),e),onEnterKey(e){var t=this.params.a11y;if(13===e.keyCode){var n=(0,r.$)(e.target);this.navigation&&this.navigation.$nextEl&&n.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(t.lastSlideMessage):this.a11y.notify(t.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&n.is(this.navigation.$prevEl)&&(this.isBeg
2inning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(t.firstSlideMessage):this.a11y.notify(t.prevSlideMessage)),this.pagination&&n.is(".".concat(this.params.pagination.bulletClass))&&n[0].click()}},notify(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation(){if(!this.params.loop){var{$nextEl:e,$prevEl:t}=this.navigation;t&&t.length>0&&(this.isBeginning?this.a11y.disableEl(t):this.a11y.enableEl(t)),e&&e.length>0&&(this.isEnd?this.a11y.disableEl(e):this.a11y.enableEl(e))}},updatePagination(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((n,o)=>{var l=(0,r.$)(o);e.a11y.makeElFocusable(l),e.a11y.addElRole(l,"button"),e.a11y.addElLabel(l,t.paginationBulletMessage.replace(/{{index}}/,l.index()+1))})},init(){this.$el.append(this.a11y.liveRegion);var e,t,n=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,n.nextSlideMessage),e.on("keydown",this.a11y.onEnterKey)),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,n.prevSlideMessage),t.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown",".".concat(this.params.pagination.bulletClass),this.a11y.onEnterKey)},destroy(){var e,t;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&e.off("keydown",this.a11y.onEnterKey),t&&t.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown",".".concat(this.params.pagination.bulletClass),this.a11y.onEnterKey)}},ne={init(){if(this.params.history){if(!o.window.history||!o.window.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var e=this.history;e.initialized=!0,e.paths=ne.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||o.window.addEventListener("popstate",this.history.setHistoryPopState))}},destroy(){this.params.history.replaceState||o.window.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState(){this.history.paths=ne.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues(){var e=o.window.location.pathname.slice(1).split("/").filter(e=>""!==e),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory(e,t){if(this.history.initialized&&this.params.history.enabled){var n=this.slides.eq(t),r=ne.slugify(n.attr("data-history"));o.window.location.pathname.includes(e)||(r="".concat(e,"/").concat(r));var l=o.window.history.state;l&&l.value===r||(this.params.history.replaceState?o.window.history.replaceState({value:r},null,r):o.window.history.pushState({value:r},null,r))}},slugify:text=>text.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),scrollToSlide(e,t,n){if(t)for(var i=0,r=this.slides.length;i<r;i+=1){var o=this.slides.eq(i);if(ne.slugify(o.attr("data-history"))===t&&!o.hasClass(this.params.slideDuplicateClass)){var l=o.index();this.slideTo(l,e,n)}}else this.slideTo(0,e,n)}},re={onHashCange(){var e=o.document.location.hash.replace("#","");if(e!==this.slides.eq(this.activeIndex).attr("data-hash")){var t=this.$wrapperEl.children(".".concat(this.params.slideClass,'[data-hash="').concat(e,'"]')).index();if(void 0===t)return;this.slideTo(t)}},setHash(){if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled)if(this.params.hashNavigation.replaceState&&o.window.history&&o.window.history.replaceState)o.window.history.replaceState(null,null,"#".concat(this.slides.eq(this.activeIndex).attr("data-hash"))||!1);else{var e=this.slides.eq(this.activeIndex),t=e.attr("data-hash")||e.attr("data-history");o.document.location.hash=t||""}},init(){if(!(!this.params.hashNavigation.enabled||this.params.history&&this.params.history.enabled)){this.hashNavigation.initialized=!0;var e=o.document.location.hash.replace("#","");if(e)for(var i=0,t=this.slides.length;i<t;i+=1){var n=this.slides.eq(i);if((n.attr("data-hash")||n.attr("data-history"))===e&&!n.hasClass(this.params.slideDuplicateClass)){var l=n.index();this.slideTo(l,0,this.params.runCallbacksOnInit,!0)}}this.params.hashNavigation.watchState&&(0,r.$)(o.window).on("hashchange",this.hashNavigation.onHashCange)}},destroy(){this.params.hashNavigation.watchState&&(0,r.$)(o.window).off("hashchange",this.hashNavigation.onHashCange)}},ie={run(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=
2d.nextTick(()=>{e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))},n)},start(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop(){return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause(e){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==e&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},se={setTranslate(){for(var{slides:e}=this,i=0;i<e.length;i+=1){var t=this.slides.eq(i),n=-t[0].swiperSlideOffset;this.params.virtualTranslate||(n-=this.translate);var r=0;this.isHorizontal()||(r=n,n=0);var o=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);t.css({opacity:o}).transform("translate3d(".concat(n,"px, ").concat(r,"px, 0px)"))}},setTransition(e){var t=this,{slides:n,$wrapperEl:r}=t;if(n.transition(e),t.params.virtualTranslate&&0!==e){var o=!1;n.transitionEnd(()=>{if(!o&&t&&!t.destroyed){o=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)r.trigger(e[i])}})}}},ae={setTranslate(){var e,{$el:t,$wrapperEl:n,slides:o,width:l,height:c,rtlTranslate:h,size:d}=this,f=this.params.cubeEffect,A=this.isHorizontal(),y=this.virtual&&this.params.virtual.enabled,v=0;f.shadow&&(A?(0===(e=n.find(".swiper-cube-shadow")).length&&(e=(0,r.$)('<div class="swiper-cube-shadow"></div>'),n.append(e)),e.css({height:"".concat(l,"px")})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=(0,r.$)('<div class="swiper-cube-shadow"></div>'),t.append(e)));for(var i=0;i<o.length;i+=1){var _=o.eq(i),w=i;y&&(w=parseInt(_.attr("data-swiper-slide-index"),10));var x=90*w,E=Math.floor(x/360);h&&(x=-x,E=Math.floor(-x/360));var progress=Math.max(Math.min(_[0].progress,1),-1),C=0,S=0,T=0;w%4==0?(C=4*-E*d,T=0):(w-1)%4==0?(C=0,T=4*-E*d):(w-2)%4==0?(C=d+4*E*d,T=d):(w-3)%4==0&&(C=-d,T=3*d+4*d*E),h&&(C=-C),A||(S=C,C=0);var B="rotateX(".concat(A?0:-x,"deg) rotateY(").concat(A?x:0,"deg) translate3d(").concat(C,"px, ").concat(S,"px, ").concat(T,"px)");if(progress<=1&&progress>-1&&(v=90*w+90*progress,h&&(v=90*-w-90*progress)),_.transform(B),f.slideShadows){var k=A?_.find(".swiper-slide-shadow-left"):_.find(".swiper-slide-shadow-top"),I=A?_.find(".swiper-slide-shadow-right"):_.find(".swiper-slide-shadow-bottom");0===k.length&&(k=(0,r.$)('<div class="swiper-slide-shadow-'.concat(A?"left":"top",'"></div>')),_.append(k)),0===I.length&&(I=(0,r.$)('<div class="swiper-slide-shadow-'.concat(A?"right":"bottom",'"></div>')),_.append(I)),k.length&&(k[0].style.opacity=Math.max(-progress,0)),I.length&&(I[0].style.opacity=Math.max(progress,0))}}if(n.css({"-webkit-transform-origin":"50% 50% -".concat(d/2,"px"),"-moz-transform-origin":"50% 50% -".concat(d/2,"px"),"-ms-transform-origin":"50% 50% -".concat(d/2,"px"),"transform-origin":"50% 50% -".concat(d/2,"px")}),f.shadow)if(A)e.transform("translate3d(0px, ".concat(l/2+f.shadowOffset,"px, ").concat(-l/2,"px) rotateX(90deg) rotateZ(0deg) scale(").concat(f.shadowScale,")"));else{var M=Math.abs(v)-90*Math.floor(Math.abs(v)/90),P=1.5-(Math.sin(2*M*Math.PI/360)/2+Math.cos(2*M*Math.PI/360)/2),D=f.shadowScale,U=f.shadowScale/P,O=f.shadowOffset;e.transform("scale3d(".concat(D,", 1, ").concat(U,") translate3d(0px, ").concat(c/2+O,"px, ").concat(-c/2/U,"px) rotateX(-90deg)"))}var F=m.isSafari||m.isUiWebView?-d/2:0;n.transform("translate3d(0px,0,".concat(F,"px) rotateX(").concat(this.isHorizontal()?0:v,"deg) rotateY(").concat(this.isHorizontal()?-v:0,"deg)"))},setTransition(e){var{$el:t,slides:n}=this;n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},oe={setTranslate(){for(var{slides:e,rtlTranslate:t}=this,i=0;i<e.length;i+=1){var n=e.eq(i),progress=n[0].progress;this.params.flipEffect.limitRotation&&(progress=Math.max(Math.min(n[0].progress,
21),-1));var o=-180*progress,l=0,c=-n[0].swiperSlideOffset,h=0;if(this.isHorizontal()?t&&(o=-o):(h=c,c=0,l=-o,o=0),n[0].style.zIndex=-Math.abs(Math.round(progress))+e.length,this.params.flipEffect.slideShadows){var d=this.isHorizontal()?n.find(".swiper-slide-shadow-left"):n.find(".swiper-slide-shadow-top"),f=this.isHorizontal()?n.find(".swiper-slide-shadow-right"):n.find(".swiper-slide-shadow-bottom");0===d.length&&(d=(0,r.$)('<div class="swiper-slide-shadow-'.concat(this.isHorizontal()?"left":"top",'"></div>')),n.append(d)),0===f.length&&(f=(0,r.$)('<div class="swiper-slide-shadow-'.concat(this.isHorizontal()?"right":"bottom",'"></div>')),n.append(f)),d.length&&(d[0].style.opacity=Math.max(-progress,0)),f.length&&(f[0].style.opacity=Math.max(progress,0))}n.transform("translate3d(".concat(c,"px, ").concat(h,"px, 0px) rotateX(").concat(l,"deg) rotateY(").concat(o,"deg)"))}},setTransition(e){var t=this,{slides:n,activeIndex:r,$wrapperEl:o}=t;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var l=!1;n.eq(r).transitionEnd((function(){if(!l&&t&&!t.destroyed){l=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)o.trigger(e[i])}}))}}},le={setTranslate(){for(var{width:e,height:t,slides:n,$wrapperEl:o,slidesSizesGrid:l}=this,c=this.params.coverflowEffect,h=this.isHorizontal(),d=this.translate,m=h?e/2-d:t/2-d,A=h?c.rotate:-c.rotate,y=c.depth,i=0,v=n.length;i<v;i+=1){var _=n.eq(i),w=l[i],x=(m-_[0].swiperSlideOffset-w/2)/w*c.modifier,E=h?A*x:0,C=h?0:A*x,S=-y*Math.abs(x),T=h?0:c.stretch*x,B=h?c.stretch*x:0;Math.abs(B)<.001&&(B=0),Math.abs(T)<.001&&(T=0),Math.abs(S)<.001&&(S=0),Math.abs(E)<.001&&(E=0),Math.abs(C)<.001&&(C=0);var k="translate3d(".concat(B,"px,").concat(T,"px,").concat(S,"px) rotateX(").concat(C,"deg) rotateY(").concat(E,"deg)");if(_.transform(k),_[0].style.zIndex=1-Math.abs(Math.round(x)),c.slideShadows){var I=h?_.find(".swiper-slide-shadow-left"):_.find(".swiper-slide-shadow-top"),M=h?_.find(".swiper-slide-shadow-right"):_.find(".swiper-slide-shadow-bottom");0===I.length&&(I=(0,r.$)('<div class="swiper-slide-shadow-'.concat(h?"left":"top",'"></div>')),_.append(I)),0===M.length&&(M=(0,r.$)('<div class="swiper-slide-shadow-'.concat(h?"right":"bottom",'"></div>')),_.append(M)),I.length&&(I[0].style.opacity=x>0?x:0),M.length&&(M[0].style.opacity=-x>0?-x:0)}}(f.pointerEvents||f.prefixedPointerEvents)&&(o[0].style.perspectiveOrigin="".concat(m,"px 50%"))},setTransition(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},ce={init(){var{thumbs:e}=this.params,t=this.constructor;e.swiper instanceof t?(this.thumbs.swiper=e.swiper,d.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),d.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):d.isObject(e.swiper)&&(this.thumbs.swiper=new t(d.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick(){var e=this.thumbs.swiper;if(e){var t=e.clickedIndex,n=e.clickedSlide;if(!(n&&(0,r.$)(n).hasClass(this.params.thumbs.slideThumbActiveClass)||null==t)){var o;if(o=e.params.loop?parseInt((0,r.$)(e.clickedSlide).attr("data-swiper-slide-index"),10):t,this.params.loop){var l=this.activeIndex;this.slides.eq(l).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,l=this.activeIndex);var c=this.slides.eq(l).prevAll('[data-swiper-slide-index="'.concat(o,'"]')).eq(0).index(),h=this.slides.eq(l).nextAll('[data-swiper-slide-index="'.concat(o,'"]')).eq(0).index();o=void 0===c?h:void 0===h?c:h-l<l-c?h:c}this.slideTo(o)}}},update(e){var t=this.thumbs.swiper;if(t){var n="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView;if(this.realIndex!==t.realIndex){var r,o=t.activeIndex;if(t.params.loop){t.slides.eq(o).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,o=t.activeIndex);var l=t.slides.eq(o).prevAll('[data-swiper-slide-index="'.concat(this.realIndex,'"]')).eq(0).index(),c=t.slides.eq(o).nextAll('[data-swiper-slide-index="'.concat(this.realIndex,'"]')).eq(0).index();r=void 0===l?c:void 0===c?l:c-o==o-l?o:c-o<o-l?c:l}else r=this.realIndex;t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(r)<0&&(t.params.centeredSlides?r=r>o?r-Math.floor(n/2)+1:r+Math.floor(n/2)-1:r>o&&(r=r-n+1),t.slideTo(r,e?0:void 0))}var h=1,d=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(h=this.params.slidesPerView),t.slides.removeClass(d),t.params.loop||t.params.virtual)for(var i=0;i<h;i+=1)t.$wrapperEl.children('[data-swiper-slide-index="'.concat(this.realIndex+i,'"]')).addClass(d);else for(var f=0;f<h;f+=1)t.slides.eq(this.realIndex+f).addClass(d)}}},ue=[F,R,N,L,H,V,G,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){d.extend(this,{mousewheel:{enabled:!1,enable:K.enable.bind(this),disable:K.disable.bind(this),handle:K.handle.bind(this),handleMouseEnter:K.handleMouseEnter.bind(this),handleMouseLeave:K.handleMouseLeave.bind(this),lastScrollTime:d.now()}})},on:{init(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){d.extend(this,{navigation:{init:$.init.bind(this),update:$.update.bind(this),destroy:$.destroy.bind(this),onNextClick:$.onNextClick.bind(this),onPrevClick:$.onPrevClick.bind(this)}})},on:{init(){this.navigation.init(),this.navigation.update()},toEdge(){this.navigation.update()},fromEdge(){this.navigation.update()},destroy(){this.navigation.destroy()},click(e){var t,{$nextEl:n,$prevEl:o}=this.navigation;
2!this.params.navigation.hideOnClick||(0,r.$)(e.target).is(o)||(0,r.$)(e.target).is(n)||(n?t=n.hasClass(this.params.navigation.hiddenClass):o&&(t=o.hasClass(this.params.navigation.hiddenClass)),!0===t?this.emit("navigationShow",this):this.emit("navigationHide",this),n&&n.toggleClass(this.params.navigation.hiddenClass),o&&o.toggleClass(this.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){d.extend(this,{pagination:{init:Y.init.bind(this),render:Y.render.bind(this),update:Y.update.bind(this),destroy:Y.destroy.bind(this),dynamicBulletIndex:0}})},on:{init(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange(){(this.params.loop||void 0===this.snapIndex)&&this.pagination.update()},snapIndexChange(){this.params.loop||this.pagination.update()},slidesLengthChange(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy(){this.pagination.destroy()},click(e){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!(0,r.$)(e.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){d.extend(this,{scrollbar:{init:W.init.bind(this),destroy:W.destroy.bind(this),updateSize:W.updateSize.bind(this),setTranslate:W.setTranslate.bind(this),setTransition:W.setTransition.bind(this),enableDraggable:W.enableDraggable.bind(this),disableDraggable:W.disableDraggable.bind(this),setDragPosition:W.setDragPosition.bind(this),getPointerPosition:W.getPointerPosition.bind(this),onDragStart:W.onDragStart.bind(this),onDragMove:W.onDragMove.bind(this),onDragEnd:W.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update(){this.scrollbar.updateSize()},resize(){this.scrollbar.updateSize()},observerUpdate(){this.scrollbar.updateSize()},setTranslate(){this.scrollbar.setTranslate()},setTransition(e){this.scrollbar.setTransition(e)},destroy(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create(){d.extend(this,{parallax:{setTransform:X.setTransform.bind(this),setTranslate:X.setTranslate.bind(this),setTransition:X.setTransition.bind(this)}})},on:{beforeInit(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(n=>{t[n]=J[n].bind(e)}),d.extend(e,{zoom:t});var n=1;Object.defineProperty(e.zoom,"scale",{get:()=>n,set(t){if(n!==t){var r=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,o=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,r,o)}n=t}})},on:{init(){this.params.zoom.enabled&&this.zoom.enable()},destroy(){this.zoom.disable()},touchStart(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionEnd(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){d.extend(this,{lazy:{initialImageLoaded:!1,load:Z.load.bind(this),loadInSlide:Z.loadInSlide.bind(this)}})},on:{beforeInit(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove(){this.params.lazy.enabled&&this.lazy.load()},transitionStart(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){d.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:ee.getInterpolateFunction.bind(this),setTranslate:ee.setTranslate.bind(this),setTransition:ee.setTransition.bind(this)}})}
2,on:{update(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create(){var e=this;d.extend(e,{a11y:{liveRegion:(0,r.$)('<span class="'.concat(e.params.a11y.notificationClass,'" aria-live="assertive" aria-atomic="true"></span>'))}}),Object.keys(te).forEach(t=>{e.a11y[t]=te[t].bind(e)})},on:{init(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){d.extend(this,{history:{init:ne.init.bind(this),setHistory:ne.setHistory.bind(this),setHistoryPopState:ne.setHistoryPopState.bind(this),scrollToSlide:ne.scrollToSlide.bind(this),destroy:ne.destroy.bind(this)}})},on:{init(){this.params.history.enabled&&this.history.init()},destroy(){this.params.history.enabled&&this.history.destroy()},transitionEnd(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){d.extend(this,{hashNavigation:{initialized:!1,init:re.init.bind(this),destroy:re.destroy.bind(this),setHash:re.setHash.bind(this),onHashCange:re.onHashCange.bind(this)}})},on:{init(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){var e=this;d.extend(e,{autoplay:{running:!1,paused:!1,run:ie.run.bind(e),start:ie.start.bind(e),stop:ie.stop.bind(e),pause:ie.pause.bind(e),onTransitionEnd(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){d.extend(this,{fadeEffect:{setTranslate:se.setTranslate.bind(this),setTransition:se.setTransition.bind(this)}})},on:{beforeInit(){if("fade"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"fade"));var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};d.extend(this.params,e),d.extend(this.originalParams,e)}},setTranslate(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){d.extend(this,{cubeEffect:{setTranslate:ae.setTranslate.bind(this),setTransition:ae.setTransition.bind(this)}})},on:{beforeInit(){if("cube"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"cube")),this.classNames.push("".concat(this.params.containerModifierClass,"3d"));var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};d.extend(this.params,e),d.extend(this.originalParams,e)}},setTranslate(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){d.extend(this,{flipEffect:{setTranslate:oe.setTranslate.bind(this),setTransition:oe.setTransition.bind(this)}})},on:{beforeInit(){if("flip"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"flip")),this.classNames.push("".concat(this.params.containerModifierClass,"3d"));var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};d.extend(this.params,e),d.extend(this.originalParams,e)}},setTranslate(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create(){d.extend(this,{coverflowEffect:{setTranslate:le.setTranslate.bind(this),setTransition:le.setTransition.bind(this)}})},on:{beforeInit(){"coverflow"===this.params.effect&&(this.classNames.push("".concat(this.params.containerModifierClass,"coverflow")),this.classNames.push("".concat(this.params.containerModifierClass,"3d")),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){d.extend(this,{thumbs:{swiper:null,init:ce.init.bind(this),update:ce.update.bind(this),onThumbClick:ce.onThumbClick.bind(this)}})},on:{beforeInit(){var{thumbs:e}=this.params;e&&e.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange(){this.thumbs.swiper&&this.thumbs.update()},update(){this.thumbs.swiper&&this.thumbs.update()},resize(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate(){this.thumbs.swiper&&this.thumbs.update()},setTransition(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];void 0===O.use&&(O.use=O.Class.use,O.installModule=O.Class.installModule),O.use(ue);var he=O;t.default=he},49:function(e,t,n){"use strict";var r=n(23);e.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},60:function(e,t){function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}t.Emitter=n,n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){i=0;for(var r=(n=n.slice(0)).length;i<r;++i)n[i].apply(this,t)}return this},n.prototype.emitReserved=n.prototype.emit,n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},61:function(e,t,n){"use strict";t.a="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},65:function(e,t,n){"use strict";var r=n(1630),o=Math.max;e.exports=function(e){return o(0,r(e))}},66:function(e,t,n){"use strict";n.d(t,"b",(function(){return o}
2)),n.d(t,"a",(function(){return h}));var r=n(61);function o(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}const l=setTimeout,c=clearTimeout;function h(e,t){t.useNativeTimers?(e.setTimeoutFn=l.bind(r.a),e.clearTimeoutFn=c.bind(r.a)):(e.setTimeoutFn=setTimeout.bind(r.a),e.clearTimeoutFn=clearTimeout.bind(r.a))}},67:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return A})),n.d(t,"c",(function(){return _})),n.d(t,"a",(function(){return w}));n(9);var r=n(33),o=n(2356),l=n(43),c=n(102);function h(source,e,t){if(e in source){var n=source[e],r=t(n);if("function"==typeof r)try{r.prototype=r.prototype||{},Object.defineProperties(r,{__sentry_original__:{enumerable:!1,value:n}})}catch(e){}source[e]=r}}function d(object){return Object.keys(object).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(object[e])})).join("&")}function f(e){if(Object(r.d)(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}if(Object(r.f)(e)){var o=e,source={};source.type=o.type;try{source.target=Object(r.c)(o.target)?Object(l.h)(o.target):Object.prototype.toString.call(o.target)}catch(e){source.target="<unknown>"}try{source.currentTarget=Object(r.c)(o.currentTarget)?Object(l.h)(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(e){source.currentTarget="<unknown>"}for(var i in"undefined"!=typeof CustomEvent&&Object(r.g)(e,CustomEvent)&&(source.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,i)&&(source[i]=o);return source}return e}function m(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function A(object,e,t){void 0===e&&(e=3),void 0===t&&(t=102400);var n=_(object,e);return m(n)>t?A(object,e-1,t):n}function y(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==e&&t===e?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":Object(r.l)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+Object(l.e)(t)+"]":t}function v(e,t,n,l){if(void 0===n&&(n=1/0),void 0===l&&(l=new o.a),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=y(e);return Object(r.i)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var c=y(t,e);if(Object(r.i)(c))return c;var source=f(t),h=Array.isArray(t)?[]:{};if(l.memoize(t))return"[Circular ~]";for(var d in source)Object.prototype.hasOwnProperty.call(source,d)&&(h[d]=v(d,source[d],n-1,l));return l.unmemoize(t),h}function _(input,e){try{return JSON.parse(JSON.stringify(input,(function(t,n){return v(t,n,e)})))}catch(e){return"**non-serializable**"}}function w(e,t){void 0===t&&(t=40);var n=Object.keys(f(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(c.d)(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:Object(c.d)(o,t)}return""}}).call(this,n(31))},68:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return h}));var r=n(61);const o="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),l=r.a.WebSocket||r.a.MozWebSocket,c=!0,h="arraybuffer"},75:function(e,t,n){"use strict";n.d(t,"e",(function(){return T})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return C})),n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return S}));const r=Object.create(null);r.open="0",r.close="1",r.ping="2",r.pong="3",r.message="4",r.upgrade="5",r.noop="6";const o=Object.create(null);Object.keys(r).forEach(e=>{o[r[e]]=e});const l={type:"error",data:"parser error"},c="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),h="function"==typeof ArrayBuffer,d=(data,e)=>{const t=new FileReader;return t.onload=function(){const content=t.result.split(",")[1];e("b"+content)}
2,t.readAsDataURL(data)};for(var f=({type:e,data:data},t,n)=>{return c&&data instanceof Blob?t?n(data):d(data,n):h&&(data instanceof ArrayBuffer||(o=data,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(o):o&&o.buffer instanceof ArrayBuffer))?t?n(data):d(new Blob([data]),n):n(r[e]+(data||""));var o},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A="undefined"==typeof Uint8Array?[]:new Uint8Array(256),y=0;y<m.length;y++)A[m.charCodeAt(y)]=y;const v="function"==typeof ArrayBuffer,_=(data,e)=>{if(v){const t=function(e){var i,t,n,r,o,l=.75*e.length,c=e.length,p=0;"="===e[e.length-1]&&(l--,"="===e[e.length-2]&&l--);var h=new ArrayBuffer(l),d=new Uint8Array(h);for(i=0;i<c;i+=4)t=A[e.charCodeAt(i)],n=A[e.charCodeAt(i+1)],r=A[e.charCodeAt(i+2)],o=A[e.charCodeAt(i+3)],d[p++]=t<<2|n>>4,d[p++]=(15&n)<<4|r>>2,d[p++]=(3&r)<<6|63&o;return h}(data);return w(t,e)}return{base64:!0,data:data}},w=(data,e)=>{switch(e){case"blob":return data instanceof ArrayBuffer?new Blob([data]):data;case"arraybuffer":default:return data}};var x=(e,t)=>{if("string"!=typeof e)return{type:"message",data:w(e,t)};const n=e.charAt(0);return"b"===n?{type:"message",data:_(e.substring(1),t)}:o[n]?e.length>1?{type:o[n],data:e.substring(1)}:{type:o[n]}:l};const E=String.fromCharCode(30),C=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((e,i)=>{f(e,!1,e=>{r[i]=e,++o===n&&t(r.join(E))})})},S=(e,t)=>{const n=e.split(E),r=[];for(let i=0;i<n.length;i++){const e=x(n[i],t);if(r.push(e),"error"===e.type)break}return r},T=4},82:function(e,t,n){var r=n(2263),o="object"==typeof self&&self&&self.Object===Object&&self,l=r||o||Function("return this")();e.exports=l},83:function(e,t){var n=Array.isArray;e.exports=n},9:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return d}));var r=function(e,b){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])})(e,b)};function o(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)}var l=function(){return(l=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e}).apply(this,arguments)};function c(e){var s="function"==typeof Symbol&&Symbol.iterator,t=s&&e[s],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function d(){for(var e=[],i=0;i<arguments.length;i++)e=e.concat(h(arguments[i]));return e}},90:function(e,t,n){"use strict";e.exports=n(2849)()?Object.assign:n(2850)},91:function(e,t,n){"use strict";var r=n(112),o=n(41),l=n(26),c=n(164),h=Object.getPrototypeOf;e.exports=function e(t){var n,d,f,m,A;if(!t)return t;try{n=t.then}catch(e){return t}if("function"!=typeof n)return t;if(o(t))return t;if(!r(t))return t;if(!h(t))return t;try{d=t.done}catch(e){}if(f=l(),m=function(t){f.resolve(e(t))},A=function(e){f.reject(e)},"function"==typeof d){try{d.call(t,m,A)}catch(e){return f.reject(e)}return f.promise}try{n.call(t,(function(e){c((function(){m(e)}))}),(function(e){c((function(){A(e)}))}))}catch(e){return f.reject(e)}return f.promise}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.