// ==UserScript== // @author jaiperdu // @name Glify layer // @category Map Tiles // @version 0.1.1 // @description GL layer // @id glify-layer@jaiperdu // @namespace https://github.com/IITC-CE/ingress-intel-total-conversion // @updateURL https://raw.githubusercontent.com/IITC-CE/Community-plugins/master/dist/jaiperdu/glify-layer.meta.js // @downloadURL https://raw.githubusercontent.com/IITC-CE/Community-plugins/master/dist/jaiperdu/glify-layer.user.js // @match https://intel.ingress.com/* // @grant none // ==/UserScript== function wrapper(plugin_info) { // ensure plugin framework is there, even if iitc is not yet loaded if(typeof window.plugin !== 'function') window.plugin = function() {}; //PLUGIN AUTHORS: writing a plugin outside of the IITC build environment? if so, delete these lines!! //(leaving them in place might break the 'About IITC' page or break update checks) plugin_info.buildName = 'lejeu'; plugin_info.dateTimeVersion = '2023-05-04-122411'; plugin_info.pluginId = 'glify-layer'; //END PLUGIN AUTHORS NOTE var glLayers = {}; var toClicks = {}; function onPortalSelected(data) { var guid = data.selectedPortalGuid; if (guid && toClicks[guid]) { delete toClicks[guid]; window.portals[guid].fire('click'); } } var colors = { E: {r: 0, g: 1, b: 0, a: .5}, R: {r: 0, g: 0, b: 1, a: .5}, M: {r: 1, g: 0, b: 0, a: .5}, N: {r: 1, g: .4, b: 0, a: .5}, }; glLayers.layer = null; function showCache() { if (window.plugin.offle) { var portals = Object.values(window.plugin.offle.portalDb); var colorsOffle = { // not visited 0: { r: 0, g: 0, b: 0, a: .2 }, // visited not captured 1: { r: 1, g: 0, b: 0, a: .5 }, // not visited but captured (unlikely) 2: { r: .8, g: .8, b: 0, a: .5 }, // visited and captured 3: { r: 0, g: .8, b: .8, a: .5 }, }; if (portals.length > 0) { glLayers.layer = L.glify.points({ map: map, pane: "cache", data: portals.map((p) => [p.lat, p.lng, p.guid]), size: 10, color: (i) => colorsOffle[portals[i].flags & 3], click: (e, feature) => { var guid = feature[2]; if (guid in window.portals) { window.portals[guid].fire('click'); return; } toClicks[guid] = true; window.renderPortalDetails(guid); }, }); } } else if (window.plugin.cachePortals && window.plugin.cachePortals.db) { var tx = window.plugin.cachePortals.db.transaction("portals", "readonly"); tx.objectStore("portals").getAll().onsuccess = function (event) { var portals = event.target.result; if (portals.length > 0) { glLayers.layer = L.glify.points({ map: map, pane: "cache", data: portals.map((p) => [p.latE6/1e6, p.lngE6/1e6, p.guid]), size: 10, color: (i) => colors[portals[i].team] || colors['N'], click: (e, feature) => { var guid = feature[2]; if (guid in window.portals) { window.portals[guid].fire('click'); return; } toClicks[guid] = true; window.renderPortalDetails(guid); }, }); } }; } else { setTimeout(showCache, 2000); } } function setup() { try { // *** included: external/glify-browser.js *** !function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("leaflet"));else if("function"==typeof define&&define.amd)define(["leaflet"],n);else{var e="object"==typeof exports?n(require("leaflet")):n(t.L);for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(window,(function(t){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=10)}([function(n,e){n.exports=t},function(t,n,e){"use strict";function r(t,n,e){e=e||2;var r,a,s,c,f,v,d,g=n&&n.length,y=g?n[0]*e:t.length,_=i(t,0,y,e,!0),m=[];if(!_||_.next===_.prev)return m;if(g&&(_=function(t,n,e,r){var u,a,s,c,f,v=[];for(u=0,a=n.length;u80*e){r=s=t[0],a=c=t[1];for(var x=e;xs&&(s=f),v>c&&(c=v);d=0!==(d=Math.max(s-r,c-a))?1/d:0}return u(_,m,e,r,a,d),m}function i(t,n,e,r,i){var o,u;if(i===L(t,n,e,r)>0)for(o=n;o=n;o-=r)u=b(o,t[o],t[o+1],u);return u&&_(u,u.next)&&(S(u),u=u.next),u}function o(t,n){if(!t)return t;n||(n=t);var e,r=t;do{if(e=!1,r.steiner||!_(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{if(S(r),(r=n=r.prev)===r.next)break;e=!0}}while(e||r!==n);return n}function u(t,n,e,r,i,l,h){if(t){!h&&l&&function(t,n,e,r){var i=t;do{null===i.z&&(i.z=v(i.x,i.y,n,e,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var n,e,r,i,o,u,a,s,c=1;do{for(e=t,t=null,o=null,u=0;e;){for(u++,r=e,a=0,n=0;n0||s>0&&r;)0!==a&&(0===s||!r||e.z<=r.z)?(i=e,e=e.nextZ,a--):(i=r,r=r.nextZ,s--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;e=r}o.nextZ=null,c*=2}while(u>1)}(i)}(t,r,i,l);for(var p,d,g=t;t.prev!==t.next;)if(p=t.prev,d=t.next,l?s(t,r,i,l):a(t))n.push(p.i/e),n.push(t.i/e),n.push(d.i/e),S(t),t=d.next,g=d.next;else if((t=d)===g){h?1===h?u(t=c(t,n,e),n,e,r,i,l,2):2===h&&f(t,n,e,r,i,l):u(o(t),n,e,r,i,l,1);break}}}function a(t){var n=t.prev,e=t,r=t.next;if(y(n,e,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(d(n.x,n.y,e.x,e.y,r.x,r.y,i.x,i.y)&&y(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function s(t,n,e,r){var i=t.prev,o=t,u=t.next;if(y(i,o,u)>=0)return!1;for(var a=i.xo.x?i.x>u.x?i.x:u.x:o.x>u.x?o.x:u.x,f=i.y>o.y?i.y>u.y?i.y:u.y:o.y>u.y?o.y:u.y,l=v(a,s,n,e,r),h=v(c,f,n,e,r),p=t.prevZ,g=t.nextZ;p&&p.z>=l&&g&&g.z<=h;){if(p!==t.prev&&p!==t.next&&d(i.x,i.y,o.x,o.y,u.x,u.y,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,g!==t.prev&&g!==t.next&&d(i.x,i.y,o.x,o.y,u.x,u.y,g.x,g.y)&&y(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(;p&&p.z>=l;){if(p!==t.prev&&p!==t.next&&d(i.x,i.y,o.x,o.y,u.x,u.y,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;g&&g.z<=h;){if(g!==t.prev&&g!==t.next&&d(i.x,i.y,o.x,o.y,u.x,u.y,g.x,g.y)&&y(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function c(t,n,e){var r=t;do{var i=r.prev,o=r.next.next;!_(i,o)&&m(i,r,r.next,o)&&x(i,o)&&x(o,i)&&(n.push(i.i/e),n.push(r.i/e),n.push(o.i/e),S(r),S(r.next),r=t=o),r=r.next}while(r!==t);return r}function f(t,n,e,r,i,a){var s=t;do{for(var c=s.next.next;c!==s.prev;){if(s.i!==c.i&&g(s,c)){var f=w(s,c);return s=o(s,s.next),f=o(f,f.next),u(s,n,e,r,i,a),void u(f,n,e,r,i,a)}c=c.next}s=s.next}while(s!==t)}function l(t,n){return t.x-n.x}function h(t,n){if(n=function(t,n){var e,r=n,i=t.x,o=t.y,u=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&a>u){if(u=a,a===i){if(o===r.y)return r;if(o===r.next.y)return r.next}e=r.x=r.x&&r.x>=f&&i!==r.x&&d(oe.x)&&x(r,t)&&(e=r,h=s),r=r.next;return e}(t,n)){var e=w(n,t);o(e,e.next)}}function v(t,n,e,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-e)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(n=1431655765&((n=858993459&((n=252645135&((n=16711935&((n=32767*(n-r)*i)|n<<8))|n<<4))|n<<2))|n<<1))<<1}function p(t){var n=t,e=t;do{(n.x=0&&(t-u)*(r-a)-(e-u)*(n-a)>=0&&(e-u)*(o-a)-(i-u)*(r-a)>=0}function g(t,n){return t.next.i!==n.i&&t.prev.i!==n.i&&!function(t,n){var e=t;do{if(e.i!==t.i&&e.next.i!==t.i&&e.i!==n.i&&e.next.i!==n.i&&m(e,e.next,t,n))return!0;e=e.next}while(e!==t);return!1}(t,n)&&x(t,n)&&x(n,t)&&function(t,n){var e=t,r=!1,i=(t.x+n.x)/2,o=(t.y+n.y)/2;do{e.y>o!=e.next.y>o&&e.next.y!==e.y&&i<(e.next.x-e.x)*(o-e.y)/(e.next.y-e.y)+e.x&&(r=!r),e=e.next}while(e!==t);return r}(t,n)}function y(t,n,e){return(n.y-t.y)*(e.x-n.x)-(n.x-t.x)*(e.y-n.y)}function _(t,n){return t.x===n.x&&t.y===n.y}function m(t,n,e,r){return!!(_(t,n)&&_(e,r)||_(t,r)&&_(e,n))||y(t,n,e)>0!=y(t,n,r)>0&&y(e,r,t)>0!=y(e,r,n)>0}function x(t,n){return y(t.prev,t,t.next)<0?y(t,n,t.next)>=0&&y(t,t.prev,n)>=0:y(t,n,t.prev)<0||y(t,t.next,n)<0}function w(t,n){var e=new A(t.i,t.x,t.y),r=new A(n.i,n.x,n.y),i=t.next,o=n.prev;return t.next=n,n.prev=t,e.next=i,i.prev=e,r.next=e,e.prev=r,o.next=r,r.prev=o,r}function b(t,n,e,r){var i=new A(t,n,e);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function S(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function A(t,n,e){this.i=t,this.x=n,this.y=e,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function L(t,n,e,r){for(var i=0,o=n,u=e-r;o0&&(r+=t[i-1].length,e.holes.push(r))}return e}},function(t,n,e){"use strict";var r=e(3),i=e(5),o=e(6),u=e(7);function a(t){void 0!==t&&this.loadFeatureCollection(t)}function s(t,n){var e=n.geometry.coordinates[0];if(i(t,e)){for(var r=1;r=e)&&(!!s(r,t)&&(u++,!0))}))}},a.prototype.search=function(t,n,e){return void 0===e?this.searchForOnePolygon(t,n):this.searchForMultiplePolygons(t,n,e)},a.prototype.loadFeatureCollection=function(t){var n=[],e=[],i=0;function u(t){e.push(t);var r=o.getBoundingBox(t.geometry.coordinates[0]);r.polyId=i++,n.push(r)}t.features.forEach((function(t){if(t.geometry&&void 0!==t.geometry.coordinates[0]&&t.geometry.coordinates[0].length>0)switch(t.geometry.type){case"Polygon":u(t);break;case"MultiPolygon":for(var n=t.geometry.coordinates,e=0;e=t.minX&&n.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(t,n,e,i,o){for(var u,a=[n,e];a.length;)(e=a.pop())-(n=a.pop())<=i||(u=n+Math.ceil((e-n)/i/2)*i,r(t,u,n,e,o),a.push(n,u,u,e))}i.prototype={all:function(){return this._all(this.data,[])},search:function(t){var n=this.data,e=[],r=this.toBBox;if(!p(t,n))return e;for(var i,o,u,a,s=[];n;){for(i=0,o=n.children.length;i=0&&o[n].children.length>this._maxEntries;)this._split(o,n),n--;this._adjustParentBBoxes(i,o,n)},_split:function(t,n){var e=t[n],r=e.children.length,i=this._minEntries;this._chooseSplitAxis(e,i,r);var o=this._chooseSplitIndex(e,i,r),a=d(e.children.splice(o,e.children.length-o));a.height=e.height,a.leaf=e.leaf,u(e,this.toBBox),u(a,this.toBBox),n?t[n-1].children.push(a):this._splitRoot(e,a)},_splitRoot:function(t,n){this.data=d([t,n]),this.data.height=t.height+1,this.data.leaf=!1,u(this.data,this.toBBox)},_chooseSplitIndex:function(t,n,e){var r,i,o,u,s,c,f,h,v,p,d,g,y,_;for(c=f=1/0,r=n;r<=e-n;r++)i=a(t,0,r,this.toBBox),o=a(t,r,e,this.toBBox),v=i,p=o,d=void 0,g=void 0,y=void 0,_=void 0,d=Math.max(v.minX,p.minX),g=Math.max(v.minY,p.minY),y=Math.min(v.maxX,p.maxX),_=Math.min(v.maxY,p.maxY),u=Math.max(0,y-d)*Math.max(0,_-g),s=l(i)+l(o),u=n;i--)o=t.children[i],s(f,t.leaf?u(o):o),l+=h(f);return l},_adjustParentBBoxes:function(t,n,e){for(var r=e;r>=0;r--)s(n[r],t)},_condense:function(t){for(var n,e=t.length-1;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():u(t[e],this.toBBox)},_initFormat:function(t){var n=["return a"," - b",";"];this.compareMinX=new Function("a","b",n.join(t[0])),this.compareMinY=new Function("a","b",n.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},function(t,n,e){t.exports=function(){"use strict";function t(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function n(t,n){return tn?1:0}return function(e,r,i,o,u){!function n(e,r,i,o,u){for(;o>i;){if(o-i>600){var a=o-i+1,s=r-i+1,c=Math.log(a),f=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*f*(a-f)/a)*(s-a/2<0?-1:1),h=Math.max(i,Math.floor(r-s*f/a+l)),v=Math.min(o,Math.floor(r+(a-s)*f/a+l));n(e,r,h,v,u)}var p=e[r],d=i,g=o;for(t(e,i,r),u(e[o],p)>0&&t(e,i,o);d0;)g--}0===u(e[i],p)?t(e,i,g):(g++,t(e,g,o)),g<=r&&(i=g+1),r<=g&&(o=g-1)}}(e,r,i||0,o||e.length-1,u||n)}}()},function(t,n){t.exports=function(t,n){for(var e=t[0],r=t[1],i=!1,o=0,u=n.length-1;or!=f>r&&e<(c-a)*(r-s)/(f-s)+a&&(i=!i)}return i}},function(t,n,e){"use strict";t.exports={getBoundingBox:function(t){for(var n=t[0],e={minX:n[0],minY:n[1],maxX:n[0],maxY:n[1]},r=1;re.maxX&&(e.maxX=o);var u=i[1];ue.maxY&&(e.maxY=u)}return e}}},function(t,n,e){(function(t,r){var i; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var o="Expected a function",u="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",c="[object Array]",f="[object Boolean]",l="[object Date]",h="[object Error]",v="[object Function]",p="[object GeneratorFunction]",d="[object Map]",g="[object Number]",y="[object Object]",_="[object RegExp]",m="[object Set]",x="[object String]",w="[object Symbol]",b="[object WeakMap]",S="[object ArrayBuffer]",A="[object DataView]",L="[object Float32Array]",E="[object Float64Array]",k="[object Int8Array]",M="[object Int16Array]",F="[object Int32Array]",B="[object Uint8Array]",j="[object Uint16Array]",C="[object Uint32Array]",z=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,O=/(__e\(.*?\)|\b__t\)) \+\n'';/g,P=/&(?:amp|lt|gt|quot|#39);/g,T=/[&<>"']/g,I=RegExp(P.source),N=RegExp(T.source),Y=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,D=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,V=RegExp(K.source),H=/^\s+|\s+$/g,$=/^\s+/,q=/\s+$/,G=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/\\(\\)?/g,et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,st=/^(?:0|[1-9]\d*)$/,ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ft=/($^)/,lt=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",vt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",dt="["+vt+"]",gt="["+ht+"]",yt="\\d+",_t="[\\u2700-\\u27bf]",mt="[a-z\\xdf-\\xf6\\xf8-\\xff]",xt="[^\\ud800-\\udfff"+vt+yt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",wt="\\ud83c[\\udffb-\\udfff]",bt="[^\\ud800-\\udfff]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Et="(?:"+mt+"|"+xt+")",kt="(?:"+Lt+"|"+xt+")",Mt="(?:"+gt+"|"+wt+")"+"?",Ft="[\\ufe0e\\ufe0f]?"+Mt+("(?:\\u200d(?:"+[bt,St,At].join("|")+")[\\ufe0e\\ufe0f]?"+Mt+")*"),Bt="(?:"+[_t,St,At].join("|")+")"+Ft,jt="(?:"+[bt+gt+"?",gt,St,At,pt].join("|")+")",Ct=RegExp("['’]","g"),zt=RegExp(gt,"g"),Rt=RegExp(wt+"(?="+wt+")|"+jt+Ft,"g"),Ot=RegExp([Lt+"?"+mt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[dt,Lt,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[dt,Lt+Et,"$"].join("|")+")",Lt+"?"+Et+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yt,Bt].join("|"),"g"),Pt=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),Tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,It=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Nt=-1,Yt={};Yt[L]=Yt[E]=Yt[k]=Yt[M]=Yt[F]=Yt[B]=Yt["[object Uint8ClampedArray]"]=Yt[j]=Yt[C]=!0,Yt[s]=Yt[c]=Yt[S]=Yt[f]=Yt[A]=Yt[l]=Yt[h]=Yt[v]=Yt[d]=Yt[g]=Yt[y]=Yt[_]=Yt[m]=Yt[x]=Yt[b]=!1;var Ut={};Ut[s]=Ut[c]=Ut[S]=Ut[A]=Ut[f]=Ut[l]=Ut[L]=Ut[E]=Ut[k]=Ut[M]=Ut[F]=Ut[d]=Ut[g]=Ut[y]=Ut[_]=Ut[m]=Ut[x]=Ut[w]=Ut[B]=Ut["[object Uint8ClampedArray]"]=Ut[j]=Ut[C]=!0,Ut[h]=Ut[v]=Ut[b]=!1;var Dt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wt=parseFloat,Zt=parseInt,Xt="object"==typeof t&&t&&t.Object===Object&&t,Kt="object"==typeof self&&self&&self.Object===Object&&self,Vt=Xt||Kt||Function("return this")(),Ht=n&&!n.nodeType&&n,$t=Ht&&"object"==typeof r&&r&&!r.nodeType&&r,qt=$t&&$t.exports===Ht,Gt=qt&&Xt.process,Jt=function(){try{var t=$t&&$t.require&&$t.require("util").types;return t||Gt&&Gt.binding&&Gt.binding("util")}catch(t){}}(),Qt=Jt&&Jt.isArrayBuffer,tn=Jt&&Jt.isDate,nn=Jt&&Jt.isMap,en=Jt&&Jt.isRegExp,rn=Jt&&Jt.isSet,on=Jt&&Jt.isTypedArray;function un(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function an(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i-1}function vn(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function On(t,n){for(var e=t.length;e--&&bn(n,t[e],0)>-1;);return e}function Pn(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}var Tn=kn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),In=kn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nn(t){return"\\"+Dt[t]}function Yn(t){return Pt.test(t)}function Un(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function Dn(t,n){return function(e){return t(n(e))}}function Wn(t,n){for(var e=-1,r=t.length,i=0,o=[];++e",""":'"',"'":"'"});var $n=function t(n){var e,r=(n=null==n?Vt:$n.defaults(Vt.Object(),n,$n.pick(Vt,It))).Array,i=n.Date,ht=n.Error,vt=n.Function,pt=n.Math,dt=n.Object,gt=n.RegExp,yt=n.String,_t=n.TypeError,mt=r.prototype,xt=vt.prototype,wt=dt.prototype,bt=n["__core-js_shared__"],St=xt.toString,At=wt.hasOwnProperty,Lt=0,Et=(e=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",kt=wt.toString,Mt=St.call(dt),Ft=Vt._,Bt=gt("^"+St.call(At).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jt=qt?n.Buffer:void 0,Rt=n.Symbol,Pt=n.Uint8Array,Dt=jt?jt.allocUnsafe:void 0,Xt=Dn(dt.getPrototypeOf,dt),Kt=dt.create,Ht=wt.propertyIsEnumerable,$t=mt.splice,Gt=Rt?Rt.isConcatSpreadable:void 0,Jt=Rt?Rt.iterator:void 0,mn=Rt?Rt.toStringTag:void 0,kn=function(){try{var t=Qi(dt,"defineProperty");return t({},"",{}),t}catch(t){}}(),qn=n.clearTimeout!==Vt.clearTimeout&&n.clearTimeout,Gn=i&&i.now!==Vt.Date.now&&i.now,Jn=n.setTimeout!==Vt.setTimeout&&n.setTimeout,Qn=pt.ceil,te=pt.floor,ne=dt.getOwnPropertySymbols,ee=jt?jt.isBuffer:void 0,re=n.isFinite,ie=mt.join,oe=Dn(dt.keys,dt),ue=pt.max,ae=pt.min,se=i.now,ce=n.parseInt,fe=pt.random,le=mt.reverse,he=Qi(n,"DataView"),ve=Qi(n,"Map"),pe=Qi(n,"Promise"),de=Qi(n,"Set"),ge=Qi(n,"WeakMap"),ye=Qi(dt,"create"),_e=ge&&new ge,me={},xe=ko(he),we=ko(ve),be=ko(pe),Se=ko(de),Ae=ko(ge),Le=Rt?Rt.prototype:void 0,Ee=Le?Le.valueOf:void 0,ke=Le?Le.toString:void 0;function Me(t){if(Zu(t)&&!zu(t)&&!(t instanceof Ce)){if(t instanceof je)return t;if(At.call(t,"__wrapped__"))return Mo(t)}return new je(t)}var Fe=function(){function t(){}return function(n){if(!Wu(n))return{};if(Kt)return Kt(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();function Be(){}function je(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=void 0}function Ce(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function ze(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function qe(t,n,e,r,i,o){var u,a=1&n,c=2&n,h=4&n;if(e&&(u=i?e(t,r,i,o):e(t)),void 0!==u)return u;if(!Wu(t))return t;var b=zu(t);if(b){if(u=function(t){var n=t.length,e=new t.constructor(n);n&&"string"==typeof t[0]&&At.call(t,"index")&&(e.index=t.index,e.input=t.input);return e}(t),!a)return yi(t,u)}else{var z=eo(t),R=z==v||z==p;if(Tu(t))return li(t,a);if(z==y||z==s||R&&!i){if(u=c||R?{}:io(t),!a)return c?function(t,n){return _i(t,no(t),n)}(t,function(t,n){return t&&_i(n,wa(n),t)}(u,t)):function(t,n){return _i(t,to(t),n)}(t,Ke(u,t))}else{if(!Ut[z])return i?t:{};u=function(t,n,e){var r=t.constructor;switch(n){case S:return hi(t);case f:case l:return new r(+t);case A:return function(t,n){var e=n?hi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case L:case E:case k:case M:case F:case B:case"[object Uint8ClampedArray]":case j:case C:return vi(t,e);case d:return new r;case g:case x:return new r(t);case _:return function(t){var n=new t.constructor(t.source,rt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case m:return new r;case w:return i=t,Ee?dt(Ee.call(i)):{}}var i}(t,z,a)}}o||(o=new Te);var O=o.get(t);if(O)return O;o.set(t,u),$u(t)?t.forEach((function(r){u.add(qe(r,n,e,r,t,o))})):Xu(t)&&t.forEach((function(r,i){u.set(i,qe(r,n,e,i,t,o))}));var P=b?void 0:(h?c?Ki:Xi:c?wa:xa)(t);return sn(P||t,(function(r,i){P&&(r=t[i=r]),We(u,i,qe(r,n,e,i,t,o))})),u}function Ge(t,n,e){var r=e.length;if(null==t)return!r;for(t=dt(t);r--;){var i=e[r],o=n[i],u=t[i];if(void 0===u&&!(i in t)||!o(u))return!1}return!0}function Je(t,n,e){if("function"!=typeof t)throw new _t(o);return xo((function(){t.apply(void 0,e)}),n)}function Qe(t,n,e,r){var i=-1,o=hn,u=!0,a=t.length,s=[],c=n.length;if(!a)return s;e&&(n=pn(n,jn(e))),r?(o=vn,u=!1):n.length>=200&&(o=zn,u=!1,n=new Pe(n));t:for(;++i-1},Re.prototype.set=function(t,n){var e=this.__data__,r=Ze(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},Oe.prototype.clear=function(){this.size=0,this.__data__={hash:new ze,map:new(ve||Re),string:new ze}},Oe.prototype.delete=function(t){var n=Gi(this,t).delete(t);return this.size-=n?1:0,n},Oe.prototype.get=function(t){return Gi(this,t).get(t)},Oe.prototype.has=function(t){return Gi(this,t).has(t)},Oe.prototype.set=function(t,n){var e=Gi(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Pe.prototype.add=Pe.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Pe.prototype.has=function(t){return this.__data__.has(t)},Te.prototype.clear=function(){this.__data__=new Re,this.size=0},Te.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Te.prototype.get=function(t){return this.__data__.get(t)},Te.prototype.has=function(t){return this.__data__.has(t)},Te.prototype.set=function(t,n){var e=this.__data__;if(e instanceof Re){var r=e.__data__;if(!ve||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Oe(r)}return e.set(t,n),this.size=e.size,this};var tr=wi(sr),nr=wi(cr,!0);function er(t,n){var e=!0;return tr(t,(function(t,r,i){return e=!!n(t,r,i)})),e}function rr(t,n,e){for(var r=-1,i=t.length;++r0&&e(a)?n>1?or(a,n-1,e,r,i):dn(i,a):r||(i[i.length]=a)}return i}var ur=bi(),ar=bi(!0);function sr(t,n){return t&&ur(t,n,xa)}function cr(t,n){return t&&ar(t,n,xa)}function fr(t,n){return ln(n,(function(n){return Yu(t[n])}))}function lr(t,n){for(var e=0,r=(n=ai(n,t)).length;null!=t&&en}function dr(t,n){return null!=t&&At.call(t,n)}function gr(t,n){return null!=t&&n in dt(t)}function yr(t,n,e){for(var i=e?vn:hn,o=t[0].length,u=t.length,a=u,s=r(u),c=1/0,f=[];a--;){var l=t[a];a&&n&&(l=pn(l,jn(n))),c=ae(l.length,c),s[a]=!e&&(n||o>=120&&l.length>=120)?new Pe(a&&l):void 0}l=t[0];var h=-1,v=s[0];t:for(;++h=a)return s;var c=e[r];return s*("desc"==c?-1:1)}}return t.index-n.index}(t,n,e)}))}function zr(t,n,e){for(var r=-1,i=n.length,o={};++r-1;)a!==t&&$t.call(a,s,1),$t.call(t,s,1);return t}function Or(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==o){var o=i;uo(i)?$t.call(t,i,1):Qr(t,i)}}return t}function Pr(t,n){return t+te(fe()*(n-t+1))}function Tr(t,n){var e="";if(!t||n<1||n>9007199254740991)return e;do{n%2&&(e+=t),(n=te(n/2))&&(t+=t)}while(n);return e}function Ir(t,n){return wo(po(t,n,Ka),t+"")}function Nr(t){return Ne(Fa(t))}function Yr(t,n){var e=Fa(t);return Ao(e,$e(n,0,e.length))}function Ur(t,n,e,r){if(!Wu(t))return t;for(var i=-1,o=(n=ai(n,t)).length,u=o-1,a=t;null!=a&&++io?0:o+n),(e=e>o?o:e)<0&&(e+=o),o=n>e?0:e-n>>>0,n>>>=0;for(var u=r(o);++i>>1,u=t[o];null!==u&&!Gu(u)&&(e?u<=n:u=200){var c=n?null:Ti(t);if(c)return Zn(c);u=!1,i=zn,s=new Pe}else s=n?[]:a;t:for(;++r=r?t:Xr(t,n,e)}var fi=qn||function(t){return Vt.clearTimeout(t)};function li(t,n){if(n)return t.slice();var e=t.length,r=Dt?Dt(e):new t.constructor(e);return t.copy(r),r}function hi(t){var n=new t.constructor(t.byteLength);return new Pt(n).set(new Pt(t)),n}function vi(t,n){var e=n?hi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function pi(t,n){if(t!==n){var e=void 0!==t,r=null===t,i=t==t,o=Gu(t),u=void 0!==n,a=null===n,s=n==n,c=Gu(n);if(!a&&!c&&!o&&t>n||o&&u&&s&&!a&&!c||r&&u&&s||!e&&s||!i)return 1;if(!r&&!o&&!c&&t1?e[i-1]:void 0,u=i>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,u&&ao(e[0],e[1],u)&&(o=i<3?void 0:o,i=1),n=dt(n);++r-1?i[o?n[u]:u]:void 0}}function ki(t){return Zi((function(n){var e=n.length,r=e,i=je.prototype.thru;for(t&&n.reverse();r--;){var u=n[r];if("function"!=typeof u)throw new _t(o);if(i&&!a&&"wrapper"==Hi(u))var a=new je([],!0)}for(r=a?r:e;++r1&&m.reverse(),l&&c<_&&(m.length=c),this&&this!==Vt&&this instanceof y&&(L=g||Li(L)),L.apply(A,m)}}function Fi(t,n){return function(e,r){return function(t,n,e,r){return sr(t,(function(t,i,o){n(r,e(t),i,o)})),r}(e,t,n(r),{})}}function Bi(t,n){return function(e,r){var i;if(void 0===e&&void 0===r)return n;if(void 0!==e&&(i=e),void 0!==r){if(void 0===i)return r;"string"==typeof e||"string"==typeof r?(e=Gr(e),r=Gr(r)):(e=qr(e),r=qr(r)),i=t(e,r)}return i}}function ji(t){return Zi((function(n){return n=pn(n,jn(qi())),Ir((function(e){var r=this;return t(n,(function(t){return un(t,r,e)}))}))}))}function Ci(t,n){var e=(n=void 0===n?" ":Gr(n)).length;if(e<2)return e?Tr(n,t):n;var r=Tr(n,Qn(t/Kn(n)));return Yn(n)?ci(Vn(r),0,t).join(""):r.slice(0,t)}function zi(t){return function(n,e,i){return i&&"number"!=typeof i&&ao(n,e,i)&&(e=i=void 0),n=ea(n),void 0===e?(e=n,n=0):e=ea(e),function(t,n,e,i){for(var o=-1,u=ue(Qn((n-t)/(e||1)),0),a=r(u);u--;)a[i?u:++o]=t,t+=e;return a}(n,e,i=void 0===i?na))return!1;var c=o.get(t),f=o.get(n);if(c&&f)return c==n&&f==t;var l=-1,h=!0,v=2&e?new Pe:void 0;for(o.set(t,n),o.set(n,t);++l-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(G,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return sn(a,(function(e){var r="_."+e[0];n&e[1]&&!hn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(J);return n?n[1].split(Q):[]}(r),e)))}function So(t){var n=0,e=0;return function(){var r=se(),i=16-(r-e);if(e=r,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}function Ao(t,n){var e=-1,r=t.length,i=r-1;for(n=void 0===n?r:n;++e1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,Ho(t,e)}));function nu(t){var n=Me(t);return n.__chain__=!0,n}function eu(t,n){return n(t)}var ru=Zi((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return He(n,t)};return!(n>1||this.__actions__.length)&&r instanceof Ce&&uo(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:eu,args:[i],thisArg:void 0}),new je(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var iu=mi((function(t,n,e){At.call(t,e)?++t[e]:Ve(t,e,1)}));var ou=Ei(Co),uu=Ei(zo);function au(t,n){return(zu(t)?sn:tr)(t,qi(n,3))}function su(t,n){return(zu(t)?cn:nr)(t,qi(n,3))}var cu=mi((function(t,n,e){At.call(t,e)?t[e].push(n):Ve(t,e,[n])}));var fu=Ir((function(t,n,e){var i=-1,o="function"==typeof n,u=Ou(t)?r(t.length):[];return tr(t,(function(t){u[++i]=o?un(n,t,e):_r(t,n,e)})),u})),lu=mi((function(t,n,e){Ve(t,e,n)}));function hu(t,n){return(zu(t)?pn:kr)(t,qi(n,3))}var vu=mi((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]}));var pu=Ir((function(t,n){if(null==t)return[];var e=n.length;return e>1&&ao(t,n[0],n[1])?n=[]:e>2&&ao(n[0],n[1],n[2])&&(n=[n[0]]),Cr(t,or(n,1),[])})),du=Gn||function(){return Vt.Date.now()};function gu(t,n,e){return n=e?void 0:n,Ni(t,128,void 0,void 0,void 0,void 0,n=t&&null==n?t.length:n)}function yu(t,n){var e;if("function"!=typeof n)throw new _t(o);return t=ra(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var _u=Ir((function(t,n,e){var r=1;if(e.length){var i=Wn(e,$i(_u));r|=32}return Ni(t,r,n,e,i)})),mu=Ir((function(t,n,e){var r=3;if(e.length){var i=Wn(e,$i(mu));r|=32}return Ni(n,r,t,e,i)}));function xu(t,n,e){var r,i,u,a,s,c,f=0,l=!1,h=!1,v=!0;if("function"!=typeof t)throw new _t(o);function p(n){var e=r,o=i;return r=i=void 0,f=n,a=t.apply(o,e)}function d(t){return f=t,s=xo(y,n),l?p(t):a}function g(t){var e=t-c;return void 0===c||e>=n||e<0||h&&t-f>=u}function y(){var t=du();if(g(t))return _(t);s=xo(y,function(t){var e=n-(t-c);return h?ae(e,u-(t-f)):e}(t))}function _(t){return s=void 0,v&&r?p(t):(r=i=void 0,a)}function m(){var t=du(),e=g(t);if(r=arguments,i=this,c=t,e){if(void 0===s)return d(c);if(h)return fi(s),s=xo(y,n),p(c)}return void 0===s&&(s=xo(y,n)),a}return n=oa(n)||0,Wu(e)&&(l=!!e.leading,u=(h="maxWait"in e)?ue(oa(e.maxWait)||0,n):u,v="trailing"in e?!!e.trailing:v),m.cancel=function(){void 0!==s&&fi(s),f=0,r=c=i=s=void 0},m.flush=function(){return void 0===s?a:_(du())},m}var wu=Ir((function(t,n){return Je(t,1,n)})),bu=Ir((function(t,n,e){return Je(t,oa(n)||0,e)}));function Su(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new _t(o);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return e.cache=o.set(i,u)||o,u};return e.cache=new(Su.Cache||Oe),e}function Au(t){if("function"!=typeof t)throw new _t(o);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Su.Cache=Oe;var Lu=si((function(t,n){var e=(n=1==n.length&&zu(n[0])?pn(n[0],jn(qi())):pn(or(n,1),jn(qi()))).length;return Ir((function(r){for(var i=-1,o=ae(r.length,e);++i=n})),Cu=mr(function(){return arguments}())?mr:function(t){return Zu(t)&&At.call(t,"callee")&&!Ht.call(t,"callee")},zu=r.isArray,Ru=Qt?jn(Qt):function(t){return Zu(t)&&vr(t)==S};function Ou(t){return null!=t&&Du(t.length)&&!Yu(t)}function Pu(t){return Zu(t)&&Ou(t)}var Tu=ee||os,Iu=tn?jn(tn):function(t){return Zu(t)&&vr(t)==l};function Nu(t){if(!Zu(t))return!1;var n=vr(t);return n==h||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!Vu(t)}function Yu(t){if(!Wu(t))return!1;var n=vr(t);return n==v||n==p||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Uu(t){return"number"==typeof t&&t==ra(t)}function Du(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Wu(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Zu(t){return null!=t&&"object"==typeof t}var Xu=nn?jn(nn):function(t){return Zu(t)&&eo(t)==d};function Ku(t){return"number"==typeof t||Zu(t)&&vr(t)==g}function Vu(t){if(!Zu(t)||vr(t)!=y)return!1;var n=Xt(t);if(null===n)return!0;var e=At.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&St.call(e)==Mt}var Hu=en?jn(en):function(t){return Zu(t)&&vr(t)==_};var $u=rn?jn(rn):function(t){return Zu(t)&&eo(t)==m};function qu(t){return"string"==typeof t||!zu(t)&&Zu(t)&&vr(t)==x}function Gu(t){return"symbol"==typeof t||Zu(t)&&vr(t)==w}var Ju=on?jn(on):function(t){return Zu(t)&&Du(t.length)&&!!Yt[vr(t)]};var Qu=Ri(Er),ta=Ri((function(t,n){return t<=n}));function na(t){if(!t)return[];if(Ou(t))return qu(t)?Vn(t):yi(t);if(Jt&&t[Jt])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[Jt]());var n=eo(t);return(n==d?Un:n==m?Zn:Fa)(t)}function ea(t){return t?(t=oa(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ra(t){var n=ea(t),e=n%1;return n==n?e?n-e:n:0}function ia(t){return t?$e(ra(t),0,4294967295):0}function oa(t){if("number"==typeof t)return t;if(Gu(t))return NaN;if(Wu(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Wu(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(H,"");var e=ot.test(t);return e||at.test(t)?Zt(t.slice(2),e?2:8):it.test(t)?NaN:+t}function ua(t){return _i(t,wa(t))}function aa(t){return null==t?"":Gr(t)}var sa=xi((function(t,n){if(lo(n)||Ou(n))_i(n,xa(n),t);else for(var e in n)At.call(n,e)&&We(t,e,n[e])})),ca=xi((function(t,n){_i(n,wa(n),t)})),fa=xi((function(t,n,e,r){_i(n,wa(n),t,r)})),la=xi((function(t,n,e,r){_i(n,xa(n),t,r)})),ha=Zi(He);var va=Ir((function(t,n){t=dt(t);var e=-1,r=n.length,i=r>2?n[2]:void 0;for(i&&ao(n[0],n[1],i)&&(r=1);++e1),n})),_i(t,Ki(t),e),r&&(e=qe(e,7,Di));for(var i=n.length;i--;)Qr(e,n[i]);return e}));var La=Zi((function(t,n){return null==t?{}:function(t,n){return zr(t,n,(function(n,e){return ga(t,e)}))}(t,n)}));function Ea(t,n){if(null==t)return{};var e=pn(Ki(t),(function(t){return[t]}));return n=qi(n),zr(t,e,(function(t,e){return n(t,e[0])}))}var ka=Ii(xa),Ma=Ii(wa);function Fa(t){return null==t?[]:Cn(t,xa(t))}var Ba=Ai((function(t,n,e){return n=n.toLowerCase(),t+(e?ja(n):n)}));function ja(t){return Na(aa(t).toLowerCase())}function Ca(t){return(t=aa(t))&&t.replace(ct,Tn).replace(zt,"")}var za=Ai((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),Ra=Ai((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Oa=Si("toLowerCase");var Pa=Ai((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()}));var Ta=Ai((function(t,n,e){return t+(e?" ":"")+Na(n)}));var Ia=Ai((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Na=Si("toUpperCase");function Ya(t,n,e){return t=aa(t),void 0===(n=e?void 0:n)?function(t){return Tt.test(t)}(t)?function(t){return t.match(Ot)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(n)||[]}var Ua=Ir((function(t,n){try{return un(t,void 0,n)}catch(t){return Nu(t)?t:new ht(t)}})),Da=Zi((function(t,n){return sn(n,(function(n){n=Eo(n),Ve(t,n,_u(t[n],t))})),t}));function Wa(t){return function(){return t}}var Za=ki(),Xa=ki(!0);function Ka(t){return t}function Va(t){return Sr("function"==typeof t?t:qe(t,1))}var Ha=Ir((function(t,n){return function(e){return _r(e,t,n)}})),$a=Ir((function(t,n){return function(e){return _r(t,e,n)}}));function qa(t,n,e){var r=xa(n),i=fr(n,r);null!=e||Wu(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=fr(n,xa(n)));var o=!(Wu(e)&&"chain"in e&&!e.chain),u=Yu(t);return sn(i,(function(e){var r=n[e];t[e]=r,u&&(t.prototype[e]=function(){var n=this.__chain__;if(o||n){var e=t(this.__wrapped__),i=e.__actions__=yi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,dn([this.value()],arguments))})})),t}function Ga(){}var Ja=ji(pn),Qa=ji(fn),ts=ji(_n);function ns(t){return so(t)?En(Eo(t)):function(t){return function(n){return lr(n,t)}}(t)}var es=zi(),rs=zi(!0);function is(){return[]}function os(){return!1}var us=Bi((function(t,n){return t+n}),0),as=Pi("ceil"),ss=Bi((function(t,n){return t/n}),1),cs=Pi("floor");var fs,ls=Bi((function(t,n){return t*n}),1),hs=Pi("round"),vs=Bi((function(t,n){return t-n}),0);return Me.after=function(t,n){if("function"!=typeof n)throw new _t(o);return t=ra(t),function(){if(--t<1)return n.apply(this,arguments)}},Me.ary=gu,Me.assign=sa,Me.assignIn=ca,Me.assignInWith=fa,Me.assignWith=la,Me.at=ha,Me.before=yu,Me.bind=_u,Me.bindAll=Da,Me.bindKey=mu,Me.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return zu(t)?t:[t]},Me.chain=nu,Me.chunk=function(t,n,e){n=(e?ao(t,n,e):void 0===n)?1:ue(ra(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var o=0,u=0,a=r(Qn(i/n));oi?0:i+e),(r=void 0===r||r>i?i:ra(r))<0&&(r+=i),r=e>r?0:ia(r);e>>0)?(t=aa(t))&&("string"==typeof n||null!=n&&!Hu(n))&&!(n=Gr(n))&&Yn(t)?ci(Vn(t),0,e):t.split(n,e):[]},Me.spread=function(t,n){if("function"!=typeof t)throw new _t(o);return n=null==n?0:ue(ra(n),0),Ir((function(e){var r=e[n],i=ci(e,0,n);return r&&dn(i,r),un(t,this,i)}))},Me.tail=function(t){var n=null==t?0:t.length;return n?Xr(t,1,n):[]},Me.take=function(t,n,e){return t&&t.length?Xr(t,0,(n=e||void 0===n?1:ra(n))<0?0:n):[]},Me.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?Xr(t,(n=r-(n=e||void 0===n?1:ra(n)))<0?0:n,r):[]},Me.takeRightWhile=function(t,n){return t&&t.length?ni(t,qi(n,3),!1,!0):[]},Me.takeWhile=function(t,n){return t&&t.length?ni(t,qi(n,3)):[]},Me.tap=function(t,n){return n(t),t},Me.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new _t(o);return Wu(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),xu(t,n,{leading:r,maxWait:n,trailing:i})},Me.thru=eu,Me.toArray=na,Me.toPairs=ka,Me.toPairsIn=Ma,Me.toPath=function(t){return zu(t)?pn(t,Eo):Gu(t)?[t]:yi(Lo(aa(t)))},Me.toPlainObject=ua,Me.transform=function(t,n,e){var r=zu(t),i=r||Tu(t)||Ju(t);if(n=qi(n,4),null==e){var o=t&&t.constructor;e=i?r?new o:[]:Wu(t)&&Yu(o)?Fe(Xt(t)):{}}return(i?sn:sr)(t,(function(t,r,i){return n(e,t,r,i)})),e},Me.unary=function(t){return gu(t,1)},Me.union=Zo,Me.unionBy=Xo,Me.unionWith=Ko,Me.uniq=function(t){return t&&t.length?Jr(t):[]},Me.uniqBy=function(t,n){return t&&t.length?Jr(t,qi(n,2)):[]},Me.uniqWith=function(t,n){return n="function"==typeof n?n:void 0,t&&t.length?Jr(t,void 0,n):[]},Me.unset=function(t,n){return null==t||Qr(t,n)},Me.unzip=Vo,Me.unzipWith=Ho,Me.update=function(t,n,e){return null==t?t:ti(t,n,ui(e))},Me.updateWith=function(t,n,e,r){return r="function"==typeof r?r:void 0,null==t?t:ti(t,n,ui(e),r)},Me.values=Fa,Me.valuesIn=function(t){return null==t?[]:Cn(t,wa(t))},Me.without=$o,Me.words=Ya,Me.wrap=function(t,n){return Eu(ui(n),t)},Me.xor=qo,Me.xorBy=Go,Me.xorWith=Jo,Me.zip=Qo,Me.zipObject=function(t,n){return ii(t||[],n||[],We)},Me.zipObjectDeep=function(t,n){return ii(t||[],n||[],Ur)},Me.zipWith=tu,Me.entries=ka,Me.entriesIn=Ma,Me.extend=ca,Me.extendWith=fa,qa(Me,Me),Me.add=us,Me.attempt=Ua,Me.camelCase=Ba,Me.capitalize=ja,Me.ceil=as,Me.clamp=function(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=oa(e))==e?e:0),void 0!==n&&(n=(n=oa(n))==n?n:0),$e(oa(t),n,e)},Me.clone=function(t){return qe(t,4)},Me.cloneDeep=function(t){return qe(t,5)},Me.cloneDeepWith=function(t,n){return qe(t,5,n="function"==typeof n?n:void 0)},Me.cloneWith=function(t,n){return qe(t,4,n="function"==typeof n?n:void 0)},Me.conformsTo=function(t,n){return null==n||Ge(t,n,xa(n))},Me.deburr=Ca,Me.defaultTo=function(t,n){return null==t||t!=t?n:t},Me.divide=ss,Me.endsWith=function(t,n,e){t=aa(t),n=Gr(n);var r=t.length,i=e=void 0===e?r:$e(ra(e),0,r);return(e-=n.length)>=0&&t.slice(e,i)==n},Me.eq=Fu,Me.escape=function(t){return(t=aa(t))&&N.test(t)?t.replace(T,In):t},Me.escapeRegExp=function(t){return(t=aa(t))&&V.test(t)?t.replace(K,"\\$&"):t},Me.every=function(t,n,e){var r=zu(t)?fn:er;return e&&ao(t,n,e)&&(n=void 0),r(t,qi(n,3))},Me.find=ou,Me.findIndex=Co,Me.findKey=function(t,n){return xn(t,qi(n,3),sr)},Me.findLast=uu,Me.findLastIndex=zo,Me.findLastKey=function(t,n){return xn(t,qi(n,3),cr)},Me.floor=cs,Me.forEach=au,Me.forEachRight=su,Me.forIn=function(t,n){return null==t?t:ur(t,qi(n,3),wa)},Me.forInRight=function(t,n){return null==t?t:ar(t,qi(n,3),wa)},Me.forOwn=function(t,n){return t&&sr(t,qi(n,3))},Me.forOwnRight=function(t,n){return t&&cr(t,qi(n,3))},Me.get=da,Me.gt=Bu,Me.gte=ju,Me.has=function(t,n){return null!=t&&ro(t,n,dr)},Me.hasIn=ga,Me.head=Oo,Me.identity=Ka,Me.includes=function(t,n,e,r){t=Ou(t)?t:Fa(t),e=e&&!r?ra(e):0;var i=t.length;return e<0&&(e=ue(i+e,0)),qu(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&bn(t,n,e)>-1},Me.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:ra(e);return i<0&&(i=ue(r+i,0)),bn(t,n,i)},Me.inRange=function(t,n,e){return n=ea(n),void 0===e?(e=n,n=0):e=ea(e),function(t,n,e){return t>=ae(n,e)&&t=-9007199254740991&&t<=9007199254740991},Me.isSet=$u,Me.isString=qu,Me.isSymbol=Gu,Me.isTypedArray=Ju,Me.isUndefined=function(t){return void 0===t},Me.isWeakMap=function(t){return Zu(t)&&eo(t)==b},Me.isWeakSet=function(t){return Zu(t)&&"[object WeakSet]"==vr(t)},Me.join=function(t,n){return null==t?"":ie.call(t,n)},Me.kebabCase=za,Me.last=No,Me.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==e&&(i=(i=ra(e))<0?ue(r+i,0):ae(i,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,i):wn(t,An,i,!0)},Me.lowerCase=Ra,Me.lowerFirst=Oa,Me.lt=Qu,Me.lte=ta,Me.max=function(t){return t&&t.length?rr(t,Ka,pr):void 0},Me.maxBy=function(t,n){return t&&t.length?rr(t,qi(n,2),pr):void 0},Me.mean=function(t){return Ln(t,Ka)},Me.meanBy=function(t,n){return Ln(t,qi(n,2))},Me.min=function(t){return t&&t.length?rr(t,Ka,Er):void 0},Me.minBy=function(t,n){return t&&t.length?rr(t,qi(n,2),Er):void 0},Me.stubArray=is,Me.stubFalse=os,Me.stubObject=function(){return{}},Me.stubString=function(){return""},Me.stubTrue=function(){return!0},Me.multiply=ls,Me.nth=function(t,n){return t&&t.length?jr(t,ra(n)):void 0},Me.noConflict=function(){return Vt._===this&&(Vt._=Ft),this},Me.noop=Ga,Me.now=du,Me.pad=function(t,n,e){t=aa(t);var r=(n=ra(n))?Kn(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return Ci(te(i),e)+t+Ci(Qn(i),e)},Me.padEnd=function(t,n,e){t=aa(t);var r=(n=ra(n))?Kn(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var i=fe();return ae(t+i*(n-t+Wt("1e-"+((i+"").length-1))),n)}return Pr(t,n)},Me.reduce=function(t,n,e){var r=zu(t)?gn:Mn,i=arguments.length<3;return r(t,qi(n,4),e,i,tr)},Me.reduceRight=function(t,n,e){var r=zu(t)?yn:Mn,i=arguments.length<3;return r(t,qi(n,4),e,i,nr)},Me.repeat=function(t,n,e){return n=(e?ao(t,n,e):void 0===n)?1:ra(n),Tr(aa(t),n)},Me.replace=function(){var t=arguments,n=aa(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Me.result=function(t,n,e){var r=-1,i=(n=ai(n,t)).length;for(i||(i=1,t=void 0);++r9007199254740991)return[];var e=4294967295,r=ae(t,4294967295);t-=4294967295;for(var i=Bn(r,n=qi(n));++e=o)return t;var a=e-Kn(r);if(a<1)return r;var s=u?ci(u,0,a).join(""):t.slice(0,a);if(void 0===i)return s+r;if(u&&(a+=s.length-a),Hu(i)){if(t.slice(a).search(i)){var c,f=s;for(i.global||(i=gt(i.source,aa(rt.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var l=c.index;s=s.slice(0,void 0===l?a:l)}}else if(t.indexOf(Gr(i),a)!=a){var h=s.lastIndexOf(i);h>-1&&(s=s.slice(0,h))}return s+r},Me.unescape=function(t){return(t=aa(t))&&I.test(t)?t.replace(P,Hn):t},Me.uniqueId=function(t){var n=++Lt;return aa(t)+n},Me.upperCase=Ia,Me.upperFirst=Na,Me.each=au,Me.eachRight=su,Me.first=Oo,qa(Me,(fs={},sr(Me,(function(t,n){At.call(Me.prototype,n)||(fs[n]=t)})),fs),{chain:!1}),Me.VERSION="4.17.19",sn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Me[t].placeholder=Me})),sn(["drop","take"],(function(t,n){Ce.prototype[t]=function(e){e=void 0===e?1:ue(ra(e),0);var r=this.__filtered__&&!n?new Ce(this):this.clone();return r.__filtered__?r.__takeCount__=ae(e,r.__takeCount__):r.__views__.push({size:ae(e,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Ce.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),sn(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;Ce.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:qi(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),sn(["head","last"],(function(t,n){var e="take"+(n?"Right":"");Ce.prototype[t]=function(){return this[e](1).value()[0]}})),sn(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");Ce.prototype[t]=function(){return this.__filtered__?new Ce(this):this[e](1)}})),Ce.prototype.compact=function(){return this.filter(Ka)},Ce.prototype.find=function(t){return this.filter(t).head()},Ce.prototype.findLast=function(t){return this.reverse().find(t)},Ce.prototype.invokeMap=Ir((function(t,n){return"function"==typeof t?new Ce(this):this.map((function(e){return _r(e,t,n)}))})),Ce.prototype.reject=function(t){return this.filter(Au(qi(t)))},Ce.prototype.slice=function(t,n){t=ra(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Ce(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=ra(n))<0?e.dropRight(-n):e.take(n-t)),e)},Ce.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ce.prototype.toArray=function(){return this.take(4294967295)},sr(Ce.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),i=Me[r?"take"+("last"==n?"Right":""):n],o=r||/^find/.test(n);i&&(Me.prototype[n]=function(){var n=this.__wrapped__,u=r?[1]:arguments,a=n instanceof Ce,s=u[0],c=a||zu(n),f=function(t){var n=i.apply(Me,dn([t],u));return r&&l?n[0]:n};c&&e&&"function"==typeof s&&1!=s.length&&(a=c=!1);var l=this.__chain__,h=!!this.__actions__.length,v=o&&!l,p=a&&!h;if(!o&&c){n=p?n:new Ce(this);var d=t.apply(n,u);return d.__actions__.push({func:eu,args:[f],thisArg:void 0}),new je(d,l)}return v&&p?t.apply(this,u):(d=this.thru(f),v?r?d.value()[0]:d.value():d)})})),sn(["pop","push","shift","sort","splice","unshift"],(function(t){var n=mt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Me.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(zu(i)?i:[],t)}return this[e]((function(e){return n.apply(zu(e)?e:[],t)}))}})),sr(Ce.prototype,(function(t,n){var e=Me[n];if(e){var r=e.name+"";At.call(me,r)||(me[r]=[]),me[r].push({name:n,func:e})}})),me[Mi(void 0,2).name]=[{name:"wrapper",func:void 0}],Ce.prototype.clone=function(){var t=new Ce(this.__wrapped__);return t.__actions__=yi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=yi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=yi(this.__views__),t},Ce.prototype.reverse=function(){if(this.__filtered__){var t=new Ce(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ce.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=zu(t),r=n<0,i=e?t.length:0,o=function(t,n,e){var r=-1,i=e.length;for(;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Me.prototype.plant=function(t){for(var n,e=this;e instanceof Be;){var r=Mo(e);r.__index__=0,r.__values__=void 0,n?i.__wrapped__=r:n=r;var i=r;e=e.__wrapped__}return i.__wrapped__=t,n},Me.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Ce){var n=t;return this.__actions__.length&&(n=new Ce(this)),(n=n.reverse()).__actions__.push({func:eu,args:[Wo],thisArg:void 0}),new je(n,this.__chain__)}return this.thru(Wo)},Me.prototype.toJSON=Me.prototype.valueOf=Me.prototype.value=function(){return ei(this.__wrapped__,this.__actions__)},Me.prototype.first=Me.prototype.head,Jt&&(Me.prototype[Jt]=function(){return this}),Me}();Vt._=$n,void 0===(i=function(){return $n}.call(n,e,n,r))||(r.exports=i)}).call(this)}).call(this,e(8),e(9)(t))},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n,e){"use strict";e.r(n),e.d(n,"Glify",(function(){return E})),e.d(n,"glify",(function(){return k}));var r=e(0);class i{constructor(){this.array=new Float32Array(16)}setSize(t,n){return this.array.set([2/t,0,0,0,0,-2/n,0,0,0,0,0,0,-1,1,0,1]),this}translateTo(t,n){const{array:e}=this;return e[12]=e[0]*t-1,e[13]=e[5]*n+1,this}scaleTo(t){const{array:n}=this;return n[0]*=t,n[5]*=t,this}}class o extends r.Layer{constructor(t,n){super(),this._userDrawFunc=t,this._frame=null,this._redrawCallbacks=[],this._pane=n}drawing(t){return this._userDrawFunc=t,this}params(t){return r.Util.setOptions(this,t),this}redraw(t){return"function"==typeof t&&this._redrawCallbacks.push(t),null===this._frame&&(this._frame=r.Util.requestAnimFrame(this._redraw,this)),this}isAnimated(){return Boolean(this._map.options.zoomAnimation&&r.Browser.any3d)}onAdd(t){var n;this._map=t;const e=this.canvas=null!==(n=this.canvas)&&void 0!==n?n:document.createElement("canvas"),i=t.getSize(),o=this.isAnimated();e.width=i.x,e.height=i.y,e.className="leaflet-zoom-"+(o?"animated":"hide");const u=t.getPane(this._pane);if(!u)throw new Error("unable to find pane");return u.appendChild(this.canvas),t.on("moveend",this._reset,this),t.on("resize",this._resize,this),o&&t.on("zoomanim",r.Layer?this._animateZoom:this._animateZoomNoLayer,this),this._reset(),this}onRemove(t){if(this.canvas){const n=t.getPane(this._pane);if(!n)throw new Error("unable to find pane");n.removeChild(this.canvas)}return t.off("moveend",this._reset,this),t.off("resize",this._resize,this),this.isAnimated()&&t.off("zoomanim",r.Layer?this._animateZoom:this._animateZoomNoLayer,this),this}addTo(t){return t.addLayer(this),this}get map(){return this._map}set map(t){this._map=t}_resize(t){this.canvas&&(this.canvas.width=t.newSize.x,this.canvas.height=t.newSize.y)}_reset(){if(this.canvas){const t=this._map.containerPointToLayerPoint([0,0]);r.DomUtil.setPosition(this.canvas,t)}this._redraw()}_redraw(){const{_map:t,canvas:n}=this,e=t.getSize(),i=t.getBounds(),o=180*e.x/(20037508.34*(i.getEast()-i.getWest())),u=t.getZoom(),a=new r.LatLng(i.getNorth(),i.getWest()),s=this._unclampedProject(a,0);for(n&&this._userDrawFunc({bounds:i,canvas:n,offset:s,scale:Math.pow(2,u),size:e,zoomScale:o,zoom:u});this._redrawCallbacks.length>0;){const t=this._redrawCallbacks.shift();t&&t(this)}this._frame=null}_animateZoom(t){const{_map:n,canvas:e}=this,i=n.getZoomScale(t.zoom,n.getZoom()),o=this._unclampedLatLngBoundsToNewLayerBounds(n.getBounds(),t.zoom,t.center).min;e&&o&&r.DomUtil.setTransform(e,o,i)}_animateZoomNoLayer(t){const{_map:n,canvas:e}=this;if(e){const i=n.getZoomScale(t.zoom,n.getZoom()),o=n._getCenterOffset(t.center)._multiplyBy(-i).subtract(n._getMapPanePos());r.DomUtil.setTransform(e,o,i)}}_unclampedProject(t,n){var e;const{crs:i}=this._map.options,{R:o}=i.projection,u=Math.PI/180,a=t.lat,s=Math.sin(a*u),c=new r.Point(o*t.lng*u,o*Math.log((1+s)/(1-s))/2),f=null!==(e=null==i?void 0:i.scale(n))&&void 0!==e?e:0;return i.transformation._transform(c,f)}_unclampedLatLngBoundsToNewLayerBounds(t,n,e){const i=this._map._getNewPixelOrigin(e,n);return new r.Bounds([this._unclampedProject(t.getSouthWest(),n).subtract(i),this._unclampedProject(t.getNorthWest(),n).subtract(i),this._unclampedProject(t.getSouthEast(),n).subtract(i),this._unclampedProject(t.getNorthEast(),n).subtract(i)])}}const u={pane:"overlayPane"};class a{constructor(t){var n,e;this.bytes=0,this.buffers={},this.attributeLocations={},this.uniformLocations={},this.settings={...u,...t},this.mapMatrix=new i,this.active=!0,this.vertexShader=null,this.fragmentShader=null,this.program=null,this.matrix=null,this.vertices=null,this.vertexLines=null;const r=Boolean(t.preserveDrawingBuffer),a=Boolean(t.premultipliedAlpha),s=this.layer=new o(t=>this.drawOnCanvas(t),this.pane).addTo(this.map);if(!s.canvas)throw new Error("layer.canvas not correctly defined");const c=this.canvas=s.canvas;c.width=c.clientWidth,c.height=c.clientHeight,c.style.position="absolute",this.className&&(c.className+=" "+this.className),this.gl=null!==(e=null!==(n=c.getContext("webgl2",{preserveDrawingBuffer:r,premultipliedAlpha:a}))&&void 0!==n?n:c.getContext("webgl",{preserveDrawingBuffer:r,premultipliedAlpha:a}))&&void 0!==e?e:c.getContext("experimental-webgl",{preserveDrawingBuffer:r,premultipliedAlpha:a})}get data(){if(!this.settings.data)throw new Error("data not defined");return this.settings.data}get pane(){var t;return null!==(t=this.settings.pane)&&void 0!==t?t:"overlayPane"}get className(){var t;return null!==(t=this.settings.className)&&void 0!==t?t:""}get map(){if(!this.settings.map)throw new Error("settings.map not defined");return this.settings.map}get sensitivity(){if("number"!=typeof this.settings.sensitivity)throw new Error("settings.sensitivity not correctly defined");return this.settings.sensitivity}get sensitivityHover(){if("number"!=typeof this.settings.sensitivityHover)throw new Error("settings.sensitivityHover not correctly defined");return this.settings.sensitivityHover}get hoverWait(){var t;return null!==(t=this.settings.hoverWait)&&void 0!==t?t:250}get longitudeKey(){if("number"!=typeof this.settings.longitudeKey)throw new Error("settings.longitudeKey not correctly defined");return this.settings.longitudeKey}get latitudeKey(){if("number"!=typeof this.settings.latitudeKey)throw new Error("settings.latitudeKey not correctly defined");return this.settings.latitudeKey}get opacity(){if("number"!=typeof this.settings.opacity)throw new Error("settings.opacity not correctly defined");return this.settings.opacity}get color(){var t;return null!==(t=this.settings.color)&&void 0!==t?t:null}attachShaderVariables(t){if(0===this.getShaderVariableCount())return this;const{gl:n,settings:e}=this,{shaderVariables:r}=e;let i=0;for(const e in r){if(!r.hasOwnProperty(e))continue;const o=r[e],u=this.getAttributeLocation(e);if(u<0)throw new Error("shader variable "+e+" not found");n.vertexAttribPointer(u,o.size,n[o.type],!!o.normalize,this.bytes*t,i*t),i+=o.size,n.enableVertexAttribArray(u)}return this}getShaderVariableCount(){var t;return Object.keys(null!==(t=this.settings.shaderVariables)&&void 0!==t?t:{}).length}setData(t){return this.settings={...this.settings,data:t},this.render()}setup(){const t=this.settings;return t.click&&t.setupClick&&t.setupClick(this.map),t.hover&&t.setupHover&&t.setupHover(this.map,this.hoverWait),this.setupVertexShader().setupFragmentShader().setupProgram()}setupVertexShader(){const{gl:t,settings:n}=this,e="function"==typeof n.vertexShaderSource?n.vertexShaderSource():n.vertexShaderSource,r=t.createShader(t.VERTEX_SHADER);if(!r)throw new Error("Not able to create vertex");if(!e)throw new Error("vertexShaderSource not set");return t.shaderSource(r,e),t.compileShader(r),this.vertexShader=r,this}setupFragmentShader(){const t=this.gl,n=this.settings,e="function"==typeof n.fragmentShaderSource?n.fragmentShaderSource():n.fragmentShaderSource,r=t.createShader(t.FRAGMENT_SHADER);if(!r)throw new Error("Not able to create fragment");if(!e)throw new Error("fragmentShaderSource not set");return t.shaderSource(r,e),t.compileShader(r),this.fragmentShader=r,this}setupProgram(){const{gl:t,vertexShader:n,fragmentShader:e}=this,r=t.createProgram();if(!r)throw new Error("Not able to create program");if(!n)throw new Error("this.vertexShader not correctly set");if(!e)throw new Error("this.fragmentShader not correctly set");return t.attachShader(r,n),t.attachShader(r,e),t.linkProgram(r),t.useProgram(r),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),t.enable(t.BLEND),this.program=r,this}addTo(t){return this.layer.addTo(null!=t?t:this.map),this.active=!0,this.render()}remove(t){if(void 0===t)this.map.removeLayer(this.layer),this.active=!1;else{const n=this.settings.data.features||this.settings.data;"number"==typeof(t=t instanceof Array?t:[t])&&(t=[t]),t.sort((t,n)=>t-n).reverse().forEach(t=>{n.splice(t,1)}),this.render()}return this}insert(t,n){return(this.settings.data.features||this.settings.data).splice(n,0,t),this.render()}update(t,n){return(this.settings.data.features||this.settings.data)[n]=t,this.render()}getBuffer(t){if(!this.buffers[t]){const n=this.gl.createBuffer();if(!n)throw new Error("Not able to create buffer");this.buffers[t]=n}return this.buffers[t]}getAttributeLocation(t){if(!this.program)throw new Error("Program is missing");return void 0!==this.attributeLocations[t]?this.attributeLocations[t]:this.attributeLocations[t]=this.gl.getAttribLocation(this.program,t)}getUniformLocation(t){if(!this.program)throw new Error("Program is missing");if(void 0!==this.uniformLocations[t])return this.uniformLocations[t];const n=this.gl.getUniformLocation(this.program,t);if(!n)throw new Error("Cannot find location");return this.uniformLocations[t]=n}click(t,n){if(!this.settings.click)return;const e=this.settings.click(t,n);return void 0!==e?e:void 0}hover(t,n){if(!this.settings.hover)return;const e=this.settings.hover(t,n);return void 0!==e?e:void 0}hoverOff(t,n){this.settings.hoverOff&&this.settings.hoverOff(t,n)}}a.defaults=u;function s(){return{r:Math.random(),g:Math.random(),b:Math.random(),a:Math.random()}}class c{constructor(t){this.pixels=[],this.latLngs=[],this.settings=t,this.vertexCount=0,this.array=[]}get length(){return this.array.length}fillFromCoordinates(t){var n;const{color:e,opacity:i,project:o,latitudeKey:u,longitudeKey:a}=this.settings;for(let s=0;s1?(c=i,f=o):(c=e+l*u,f=r+l*a);const h=t-c,v=n-f;return Math.sqrt(h*h+v*v)}function v(t,n,e){const r=e.latLngToLayerPoint(t),i=e.latLngToLayerPoint(n);return function(t,n){return Math.sqrt(t*t+n*n)}(r.x-i.x,r.y-i.y)}const p={data:{type:"FeatureCollection",features:[]},color:s,className:"",opacity:.5,weight:2,sensitivity:.1,sensitivityHover:.03,shaderVariables:{vertex:{type:"FLOAT",start:0,size:2},color:{type:"FLOAT",start:2,size:4}}};class d extends a{constructor(t){if(super(t),this.scale=1/0,this.bytes=6,this.allVertices=[],this.allVerticesTyped=new Float32Array(0),this.vertices=[],this.aPointSize=-1,this.hoveringFeatures=[],this.settings={...d.defaults,...t},!t.data)throw new Error('"data" is missing');this.active=!0,this.setup().render()}get weight(){if(!this.settings.weight)throw new Error("settings.weight not correctly defined");return this.settings.weight}render(){this.resetVertices();const{canvas:t,gl:n,layer:e,mapMatrix:r}=this,i=this.getBuffer("vertex");n.bindBuffer(n.ARRAY_BUFFER,i);const o=this.allVerticesTyped.BYTES_PER_ELEMENT;n.bufferData(n.ARRAY_BUFFER,this.allVerticesTyped,n.STATIC_DRAW);const u=this.getAttributeLocation("vertex");return n.vertexAttribPointer(u,2,n.FLOAT,!1,o*this.bytes,0),n.enableVertexAttribArray(u),this.matrix=this.getUniformLocation("matrix"),this.aPointSize=this.getAttributeLocation("pointSize"),r.setSize(t.width,t.height),n.viewport(0,0,t.width,t.height),n.uniformMatrix4fv(this.matrix,!1,r.array),this.attachShaderVariables(o),e.redraw(),this}resetVertices(){const{map:t,opacity:n,color:e,weight:r,latitudeKey:i,longitudeKey:o,data:u,bytes:a,settings:s}=this,{eachVertex:f}=s,{features:l}=u,h=l.length;let v,p,d=null,g=null,y=0;"function"==typeof e&&(d=e),"function"==typeof r&&(g=r);const _=t.project.bind(t),m=[];for(;y18)i.translateTo(-h.x,-h.y),n.uniformMatrix4fv(o,!1,i.array),n.drawArrays(n.LINES,0,u.length/f);else if("number"==typeof s)for(let t=-s;t<=s;t+=.5)for(let e=-s;e<=s;e+=.5)i.translateTo(-h.x+e/l,-h.y+t/l),n.uniformMatrix4fv(o,!1,i.array),n.drawArrays(n.LINES,0,u.length/f);else if("function"==typeof s){let t=0;const{features:r}=e;for(let e=0;e{const{latitudeKey:o,longitudeKey:u,sensitivity:a,weight:s,scale:c,active:f}=e;function l(n,s,f,l){h(t.latlng.lng,t.latlng.lat,s[u],s[o],n[u],n[o])<=a+l/c&&(r=f,i=e)}f&&e.map===n&&e.data.features.forEach((t,n)=>{const e="function"==typeof s?s(n,t):s,{coordinates:r,type:i}=t.geometry;if("LineString"===i)for(let n=1;n0){const i=r[n-1];l(i[i.length-1],r[n][o],t,e)}else o>0&&l(r[n][o],r[n][o-1],t,e)}})}),i&&r){const n=i.click(t,r);return void 0!==n?n:void 0}}static tryHover(t,n,e){const i=[];return e.forEach(e=>{const{sensitivityHover:o,latitudeKey:u,longitudeKey:a,data:s,hoveringFeatures:c,weight:f,scale:l}=e;function v(n,e,r,i){return h(t.latlng.lng,t.latlng.lat,e[a],e[u],n[a],n[u])<=o+i/l&&(d.includes(r)||d.push(r),!p.includes(r))}if(!e.active)return;if(n!==e.map)return;const p=c,d=[];e.hoveringFeatures=d;const g=Object(r.geoJSON)(s.features).getBounds();(function(t,n){const e=n.getNorthEast(),r=n.getSouthWest();return e.lat>t.lat&&t.lat>r.lat&&e.lng>t.lng&&t.lng>r.lng})(t.latlng,g)&&s.features.forEach((n,r)=>{const o="function"==typeof f?f(r,n):f,{coordinates:u,type:a}=n.geometry;let s=!1;if("LineString"===a)for(let t=1;t0){const e=u[t-1];if(s=v(e[e.length-1],u[t][r],n,o),s)break}else if(r>0&&(s=v(u[t][r],u[t][r-1],n,o),s))break}if(s){const r=e.hover(t,n);void 0!==r&&i.push(r)}});for(let n=0;n0?r:this.allLatLngLookup,f)}static closest(t,n,e){return n.length<1?null:n.reduce((n,r)=>v(t,n.latLng,e){a=e.settings,e.active&&e.map===n&&(u=e.lookup(t.latlng),null!==u&&(i[u.key]=e,r.push(u)))}),r.length<1)return;if(!a)return;const s=this.closest(t.latlng,r,n);if(!s)return;const c=i[s.key];if(!c)return;const{sensitivity:f}=c,h=s.latLng;return l(n.latLngToLayerPoint(h),t.layerPoint,s.chosenSize*(null!=f?f:1))?(o=c.click(t,s.feature||s.latLng),void 0===o||o):void 0}static tryHover(t,n,e){const r=[];return e.forEach(e=>{if(!e.active)return;if(e.map!==n)return;const i=e.lookup(t.latlng);if(i&&l(n.latLngToLayerPoint(i.latLng),t.layerPoint,i.chosenSize*e.sensitivityHover*30)){const n=e.hover(t,i.feature||i.latLng);void 0!==n&&r.push(n)}}),r}}y.defaults=g,y.maps=[];var _=e(1),m=e.n(_),x=e(2),w=e.n(x);function b(t){switch(t&&t.type||null){case"FeatureCollection":return t.features=t.features.reduce((function(t,n){return t.concat(b(n))}),[]),t;case"Feature":return t.geometry?b(t.geometry).map((function(n){var e={type:"Feature",properties:JSON.parse(JSON.stringify(t.properties)),geometry:n};return void 0!==t.id&&(e.id=t.id),e})):[t];case"MultiPoint":return t.coordinates.map((function(t){return{type:"Point",coordinates:t}}));case"MultiPolygon":return t.coordinates.map((function(t){return{type:"Polygon",coordinates:t}}));case"MultiLineString":return t.coordinates.map((function(t){return{type:"LineString",coordinates:t}}));case"GeometryCollection":return t.geometries.map(b).reduce((function(t,n){return t.concat(n)}),[]);case"Point":case"Polygon":case"LineString":return[t]}}const S={data:[],color:s,className:"",opacity:.5,shaderVariables:{vertex:{type:"FLOAT",start:0,size:2},color:{type:"FLOAT",start:2,size:4}},border:!1};class A extends a{constructor(t){if(super(t),this.bytes=6,this.polygonLookup=null,this.settings={...A.defaults,...t},!t.data)throw new Error('no "data" array setting defined');if(!t.map)throw new Error('no leaflet "map" object setting defined');this.setup().render()}get border(){if("boolean"!=typeof this.settings.border)throw new Error("settings.boarder not defined");return this.settings.border}render(){this.resetVertices();const{canvas:t,gl:n,layer:e,vertices:r,mapMatrix:i}=this,o=this.getBuffer("vertex"),u=new Float32Array(r),a=u.BYTES_PER_ELEMENT,s=this.getAttributeLocation("vertex");return n.bindBuffer(n.ARRAY_BUFFER,o),n.bufferData(n.ARRAY_BUFFER,u,n.STATIC_DRAW),n.vertexAttribPointer(s,2,n.FLOAT,!1,a*this.bytes,0),n.enableVertexAttribArray(s),this.matrix=this.getUniformLocation("matrix"),n.viewport(0,0,t.width,t.height),i.setSize(t.width,t.height),n.uniformMatrix4fv(this.matrix,!1,i.array),this.attachShaderVariables(a),e.redraw(),this}resetVertices(){var t,n;this.vertices=[],this.vertexLines=[],this.polygonLookup=new w.a;const{vertices:e,vertexLines:i,polygonLookup:o,settings:u,map:a,border:s,opacity:c,color:l}=this,h=u.data;let v,p,d,g,y,_,x,S,A,L,E=null,k=0;switch(h.type){case"Feature":o.loadFeatureCollection({type:"FeatureCollection",features:[h]}),d=b(h);break;case"MultiPolygon":{const t={type:"MultiPolygon",coordinates:h.coordinates};o.loadFeatureCollection({type:"FeatureCollection",features:[{type:"Feature",properties:{id:"bar"},geometry:t}]}),d=b(h);break}default:o.loadFeatureCollection(h),d=h.features}const M=d.length;if(!l)throw new Error("color is not properly defined");for("function"==typeof l&&(E=l);k{if(e.active&&e.map===n&&e.polygonLookup&&(i=e.polygonLookup.search(t.latlng.lng,t.latlng.lat),i)){const n=e.hover(t,i);void 0!==n&&r.push(n)}}),r}}A.defaults=S;const L={vertex:"uniform mat4 matrix;\nattribute vec4 vertex;\nattribute vec4 color;\nattribute float pointSize;\nvarying vec4 _color;\n\nvoid main() {\n //set the size of the point\n gl_PointSize = pointSize;\n\n //multiply each vertex by a matrix.\n gl_Position = matrix * vertex;\n\n //pass the color to the fragment shader\n _color = color;\n}\n",fragment:{dot:"precision mediump float;\nuniform vec4 color;\n\nvoid main() {\n float border = 0.05;\n float radius = 0.5;\n vec2 center = vec2(0.5);\n\n vec4 color0 = vec4(0.0);\n vec4 color1 = vec4(color[0], color[1], color[2], color[3]);\n\n vec2 m = gl_PointCoord.xy - center;\n float dist = radius - sqrt(m.x * m.x + m.y * m.y);\n\n float t = 0.0;\n if (dist > border) {\n t = 1.0;\n } else if (dist > 0.0) {\n t = dist / border;\n }\n\n //works for overlapping circles if blending is enabled\n gl_FragColor = mix(color0, color1, t);\n}\n",point:"precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n float border = 0.1;\n float radius = 0.5;\n vec2 center = vec2(0.5, 0.5);\n\n vec4 pointColor = vec4(\n _color[0],\n _color[1],\n _color[2],\n _color[3]\n );\n\n vec2 m = gl_PointCoord.xy - center;\n float dist1 = radius - sqrt(m.x * m.x + m.y * m.y);\n\n float t1 = 0.0;\n if (dist1 > border) {\n t1 = 1.0;\n } else if (dist1 > 0.0) {\n t1 = dist1 / border;\n }\n\n //works for overlapping circles if blending is enabled\n //gl_FragColor = mix(color0, color1, t);\n\n //border\n float outerBorder = 0.05;\n float innerBorder = 0.8;\n vec4 borderColor = vec4(0, 0, 0, 0.4);\n vec2 uv = gl_PointCoord.xy;\n vec4 clearColor = vec4(0, 0, 0, 0);\n\n // Offset uv with the center of the circle.\n uv -= center;\n\n float dist2 = sqrt(dot(uv, uv));\n\n float t2 = 1.0 + smoothstep(radius, radius + outerBorder, dist2)\n - smoothstep(radius - innerBorder, radius, dist2);\n\n gl_FragColor = mix(mix(borderColor, clearColor, t2), pointColor, t1);\n}\n",puck:"precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n vec2 center = vec2(0.5);\n vec2 uv = gl_PointCoord.xy - center;\n float smoothing = 0.005;\n vec4 _color1 = vec4(_color[0], _color[1], _color[2], _color[3]);\n float radius1 = 0.3;\n vec4 _color2 = vec4(_color[0], _color[1], _color[2], _color[3]);\n float radius2 = 0.5;\n float dist = length(uv);\n\n //SMOOTH\n float gamma = 2.2;\n color1.rgb = pow(_color1.rgb, vec3(gamma));\n color2.rgb = pow(_color2.rgb, vec3(gamma));\n\n vec4 puck = mix(\n mix(\n _color1,\n _color2,\n smoothstep(\n radius1 - smoothing,\n radius1 + smoothing,\n dist\n )\n ),\n vec4(0,0,0,0),\n smoothstep(\n radius2 - smoothing,\n radius2 + smoothing,\n dist\n )\n );\n\n //Gamma correction (prevents color fringes)\n puck.rgb = pow(puck.rgb, vec3(1.0 / gamma));\n gl_FragColor = puck;\n}\n",simpleCircle:"precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n vec4 color1 = vec4(_color[0], _color[1], _color[2], _color[3]);\n\n //simple circles\n float d = distance (gl_PointCoord, vec2(0.5, 0.5));\n if (d < 0.5 ){\n gl_FragColor = color1;\n } else {\n discard;\n }\n}\n",square:"precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n //squares\n gl_FragColor = vec4(_color[0], _color[1], _color[2], _color[3]);\n}\n",polygon:"precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n gl_FragColor = vec4(\n _color[0],\n _color[1],\n _color[2],\n _color[3]\n );\n}\n"}};class E{constructor(){this.longitudeKey=1,this.latitudeKey=0,this.clickSetupMaps=[],this.hoverSetupMaps=[],this.shader=L,this.Points=y,this.Shapes=A,this.Lines=d,this.pointsInstances=[],this.shapesInstances=[],this.linesInstances=[]}longitudeFirst(){return this.longitudeKey=0,this.latitudeKey=1,this}latitudeFirst(){return this.latitudeKey=0,this.longitudeKey=1,this}get instances(){return[...this.pointsInstances,...this.linesInstances,...this.shapesInstances]}points(t){const n=new this.Points({setupClick:this.setupClick.bind(this),setupHover:this.setupHover.bind(this),latitudeKey:k.latitudeKey,longitudeKey:k.longitudeKey,vertexShaderSource:()=>this.shader.vertex,fragmentShaderSource:()=>this.shader.fragment.point,...t});return this.pointsInstances.push(n),n}lines(t){const n=new this.Lines({setupClick:this.setupClick.bind(this),setupHover:this.setupHover.bind(this),latitudeKey:this.latitudeKey,longitudeKey:this.longitudeKey,vertexShaderSource:()=>this.shader.vertex,fragmentShaderSource:()=>this.shader.fragment.polygon,...t});return this.linesInstances.push(n),n}shapes(t){const n=new this.Shapes({setupClick:this.setupClick.bind(this),setupHover:this.setupHover.bind(this),latitudeKey:this.latitudeKey,longitudeKey:this.longitudeKey,vertexShaderSource:()=>this.shader.vertex,fragmentShaderSource:()=>this.shader.fragment.polygon,...t});return this.shapesInstances.push(n),n}setupClick(t){this.clickSetupMaps.includes(t)||(this.clickSetupMaps.push(t),t.on("click",n=>{let e;return e=this.Points.tryClick(n,t,this.pointsInstances),void 0!==e?e:(e=this.Lines.tryClick(n,t,this.linesInstances),void 0!==e?e:(e=this.Shapes.tryClick(n,t,this.shapesInstances),void 0!==e?e:void 0))}))}setupHover(t,n,e){this.hoverSetupMaps.includes(t)||(this.hoverSetupMaps.push(t),t.on("mousemove",function(t,n,e){let r=null;return function(i){const o=e&&!r;null!==r&&clearTimeout(r),r=setTimeout((function(){r=null,e||t(i)}),n),o&&t(i)}}(n=>{this.Points.tryHover(n,t,this.pointsInstances),this.Lines.tryHover(n,t,this.linesInstances),this.Shapes.tryHover(n,t,this.shapesInstances)},null!=n?n:0,e)))}}const k=new E;n.default=k;"undefined"!=typeof window&&window.L&&(window.L.glify=k,window.L.Glify=E)}])})); ; } catch (e) { console.error(e); return; } $('