@wemap/routers 12.12.2 → 12.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* Released under MIT license <https://lodash.com/license>
|
|
8
8
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
9
9
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
10
|
-
*/!function(e,t){(function(){var r,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object GeneratorFunction]",p="[object Map]",h="[object Number]",m="[object Object]",f="[object Promise]",g="[object RegExp]",v="[object Set]",b="[object String]",y="[object Symbol]",w="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",N="[object Float32Array]",_="[object Float64Array]",x="[object Int8Array]",A="[object Int16Array]",O="[object Int32Array]",R="[object Uint8Array]",I="[object Uint8ClampedArray]",C="[object Uint16Array]",D="[object Uint32Array]",L=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M=/^\w*$/,k=/^\./,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/\\(\\)?/g,q=/\w*$/,B=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,j={};j[N]=j[_]=j[x]=j[A]=j[O]=j[R]=j[I]=j[C]=j[D]=!0,j[i]=j[s]=j[E]=j[a]=j[T]=j[l]=j[c]=j[u]=j[p]=j[h]=j[m]=j[g]=j[v]=j[b]=j[w]=!1;var G={};G[i]=G[s]=G[E]=G[T]=G[a]=G[l]=G[N]=G[_]=G[x]=G[A]=G[O]=G[p]=G[h]=G[m]=G[g]=G[v]=G[b]=G[y]=G[R]=G[I]=G[C]=G[D]=!0,G[c]=G[u]=G[w]=!1;var H="object"==typeof S&&S&&S.Object===Object&&S,V="object"==typeof self&&self&&self.Object===Object&&self,W=H||V||Function("return this")(),$=t&&!t.nodeType&&t,z=$&&e&&!e.nodeType&&e,Y=z&&z.exports===$,K=Y&&H.process,J=function(){try{return K&&K.binding("util")}catch(e){}}(),X=J&&J.isTypedArray;function Q(e,t){return e.set(t[0],t[1]),e}function Z(e,t){return e.add(t),e}function ee(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););return e}function te(e,t,r,n){var o=-1,i=e?e.length:0;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function re(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function ne(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}function oe(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function ie(e,t){return function(r){return e(t(r))}}function se(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var ae,le=Array.prototype,ce=Function.prototype,ue=Object.prototype,de=W["__core-js_shared__"],pe=(ae=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||""))?"Symbol(src)_1."+ae:"",he=ce.toString,me=ue.hasOwnProperty,fe=he.call(Object),ge=ue.toString,ve=RegExp("^"+he.call(me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),be=Y?W.Buffer:r,ye=W.Symbol,we=W.Uint8Array,Ee=ie(Object.getPrototypeOf,Object),Te=Object.create,Ne=ue.propertyIsEnumerable,_e=le.splice,Se=Object.getOwnPropertySymbols,xe=be?be.isBuffer:r,Ae=ie(Object.keys,Object),Oe=Math.max,Re=bt(W,"DataView"),Ie=bt(W,"Map"),Ce=bt(W,"Promise"),De=bt(W,"Set"),Le=bt(W,"WeakMap"),Me=bt(Object,"create"),ke=!Ne.call({valueOf:1},"valueOf"),Ue=Ot(Re),Pe=Ot(Ie),qe=Ot(Ce),Be=Ot(De),Fe=Ot(Le),je=ye?ye.prototype:r,Ge=je?je.valueOf:r,He=je?je.toString:r;function Ve(){}function We(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $e(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ze(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ye(e){var t=-1,r=e?e.length:0;for(this.__data__=new ze;++t<r;)this.add(e[t])}function Ke(e){this.__data__=new $e(e)}function Je(e,t){var r=Lt(e)||Dt(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var i in e)!t&&!me.call(e,i)||o&&("length"==i||Et(i,n))||r.push(i);return r}function Xe(e,t,n){(n!==r&&!Ct(e[t],n)||"number"==typeof t&&n===r&&!(t in e))&&(e[t]=n)}function Qe(e,t,n){var o=e[t];me.call(e,t)&&Ct(o,n)&&(n!==r||t in e)||(e[t]=n)}function Ze(e,t){for(var r=e.length;r--;)if(Ct(e[r][0],t))return r;return-1}function et(e,t,n,o,s,c,f){var w;if(o&&(w=c?o(e,s,c,f):o(e)),w!==r)return w;if(!Bt(e))return e;var S=Lt(e);if(S){if(w=function(e){var t=e.length,r=e.constructor(t);t&&"string"==typeof e[0]&&me.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!t)return mt(e,w)}else{var L=wt(e),M=L==u||L==d;if(Ut(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(L==m||L==i||M&&!c){if(ne(e))return c?e:{};if(w=function(e){return"function"!=typeof e.constructor||Nt(e)?{}:(t=Ee(e),Bt(t)?Te(t):{});var t}(M?{}:e),!t)return function(e,t){return ft(e,yt(e),t)}(e,function(e,t){return e&&ft(t,Kt(t),e)}(w,e))}else{if(!G[L])return c?e:{};w=function(e,t,r,n){var o=e.constructor;switch(t){case E:return ht(e);case a:case l:return new o(+e);case T:return function(e,t){var r=t?ht(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case N:case _:case x:case A:case O:case R:case I:case C:case D:return function(e,t){var r=t?ht(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,n);case p:return function(e,t,r){var n=t?r(oe(e),!0):oe(e);return te(n,Q,new e.constructor)}(e,n,r);case h:case b:return new o(e);case g:return function(e){var t=new e.constructor(e.source,q.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return function(e,t,r){var n=t?r(se(e),!0):se(e);return te(n,Z,new e.constructor)}(e,n,r);case y:return i=e,Ge?Object(Ge.call(i)):{}}var i}(e,L,et,t)}}f||(f=new Ke);var k=f.get(e);if(k)return k;if(f.set(e,w),!S)var U=n?function(e){return function(e,t,r){var n=t(e);return Lt(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,Kt,yt)}(e):Kt(e);return ee(U||e,(function(r,i){U&&(r=e[i=r]),Qe(w,i,et(r,t,n,o,i,e,f))})),w}We.prototype.clear=function(){this.__data__=Me?Me(null):{}},We.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},We.prototype.get=function(e){var t=this.__data__;if(Me){var o=t[e];return o===n?r:o}return me.call(t,e)?t[e]:r},We.prototype.has=function(e){var t=this.__data__;return Me?t[e]!==r:me.call(t,e)},We.prototype.set=function(e,t){return this.__data__[e]=Me&&t===r?n:t,this},$e.prototype.clear=function(){this.__data__=[]},$e.prototype.delete=function(e){var t=this.__data__,r=Ze(t,e);return!(r<0)&&(r==t.length-1?t.pop():_e.call(t,r,1),!0)},$e.prototype.get=function(e){var t=this.__data__,n=Ze(t,e);return n<0?r:t[n][1]},$e.prototype.has=function(e){return Ze(this.__data__,e)>-1},$e.prototype.set=function(e,t){var r=this.__data__,n=Ze(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},ze.prototype.clear=function(){this.__data__={hash:new We,map:new(Ie||$e),string:new We}},ze.prototype.delete=function(e){return vt(this,e).delete(e)},ze.prototype.get=function(e){return vt(this,e).get(e)},ze.prototype.has=function(e){return vt(this,e).has(e)},ze.prototype.set=function(e,t){return vt(this,e).set(e,t),this},Ye.prototype.add=Ye.prototype.push=function(e){return this.__data__.set(e,n),this},Ye.prototype.has=function(e){return this.__data__.has(e)},Ke.prototype.clear=function(){this.__data__=new $e},Ke.prototype.delete=function(e){return this.__data__.delete(e)},Ke.prototype.get=function(e){return this.__data__.get(e)},Ke.prototype.has=function(e){return this.__data__.has(e)},Ke.prototype.set=function(e,t){var r=this.__data__;if(r instanceof $e){var n=r.__data__;if(!Ie||n.length<199)return n.push([e,t]),this;r=this.__data__=new ze(n)}return r.set(e,t),this};var tt,rt,nt=(tt=function(e,t){return e&&ot(e,t,Kt)},function(e,t){if(null==e)return e;if(!Mt(e))return tt(e,t);for(var r=e.length,n=rt?r:-1,o=Object(e);(rt?n--:++n<r)&&!1!==t(o[n],n,o););return e}),ot=function(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),a=s.length;a--;){var l=s[e?a:++o];if(!1===r(i[l],l,i))break}return t}}();function it(e,t){for(var n=0,o=(t=Tt(t,e)?[t]:pt(t)).length;null!=e&&n<o;)e=e[At(t[n++])];return n&&n==o?e:r}function st(e,t){return null!=e&&t in Object(e)}function at(e,t,n,o,u){return e===t||(null==e||null==t||!Bt(e)&&!Ft(t)?e!=e&&t!=t:function(e,t,n,o,u,d){var f=Lt(e),w=Lt(t),N=s,_=s;f||(N=(N=wt(e))==i?m:N);w||(_=(_=wt(t))==i?m:_);var S=N==m&&!ne(e),x=_==m&&!ne(t),A=N==_;if(A&&!S)return d||(d=new Ke),f||Vt(e)?gt(e,t,n,o,u,d):function(e,t,r,n,o,i,s){switch(r){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!n(new we(e),new we(t)));case a:case l:case h:return Ct(+e,+t);case c:return e.name==t.name&&e.message==t.message;case g:case b:return e==t+"";case p:var u=oe;case v:var d=2&i;if(u||(u=se),e.size!=t.size&&!d)return!1;var m=s.get(e);if(m)return m==t;i|=1,s.set(e,t);var f=gt(u(e),u(t),n,o,i,s);return s.delete(e),f;case y:if(Ge)return Ge.call(e)==Ge.call(t)}return!1}(e,t,N,n,o,u,d);if(!(2&u)){var O=S&&me.call(e,"__wrapped__"),R=x&&me.call(t,"__wrapped__");if(O||R){var I=O?e.value():e,C=R?t.value():t;return d||(d=new Ke),n(I,C,o,u,d)}}if(!A)return!1;return d||(d=new Ke),function(e,t,n,o,i,s){var a=2&i,l=Kt(e),c=l.length,u=Kt(t),d=u.length;if(c!=d&&!a)return!1;var p=c;for(;p--;){var h=l[p];if(!(a?h in t:me.call(t,h)))return!1}var m=s.get(e);if(m&&s.get(t))return m==t;var f=!0;s.set(e,t),s.set(t,e);var g=a;for(;++p<c;){var v=e[h=l[p]],b=t[h];if(o)var y=a?o(b,v,h,t,e,s):o(v,b,h,e,t,s);if(!(y===r?v===b||n(v,b,o,i,s):y)){f=!1;break}g||(g="constructor"==h)}if(f&&!g){var w=e.constructor,E=t.constructor;w==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E||(f=!1)}return s.delete(e),s.delete(t),f}(e,t,n,o,u,d)}(e,t,at,n,o,u))}function lt(e){return!(!Bt(e)||(t=e,pe&&pe in t))&&(Pt(e)||ne(e)?ve:B).test(Ot(e));var t}function ct(e){return"function"==typeof e?e:null==e?Qt:"object"==typeof e?Lt(e)?function(e,t){if(Tt(e)&&_t(t))return St(At(e),t);return function(n){var o=zt(n,e);return o===r&&o===t?Yt(n,e):at(t,o,r,3)}}(e[0],e[1]):function(e){var t=function(e){var t=Kt(e),r=t.length;for(;r--;){var n=t[r],o=e[n];t[r]=[n,o,_t(o)]}return t}(e);if(1==t.length&&t[0][2])return St(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,o){var i=n.length,s=i,a=!o;if(null==e)return!s;for(e=Object(e);i--;){var l=n[i];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){var c=(l=n[i])[0],u=e[c],d=l[1];if(a&&l[2]){if(u===r&&!(c in e))return!1}else{var p=new Ke;if(o)var h=o(u,d,c,e,t,p);if(!(h===r?at(d,u,o,3,p):h))return!1}}return!0}(n,e,t)}}(e):er(e)}function ut(e){if(!Bt(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Nt(e),r=[];for(var n in e)("constructor"!=n||!t&&me.call(e,n))&&r.push(n);return r}function dt(e,t,n,o,i){if(e!==t){if(!Lt(t)&&!Vt(t))var s=ut(t);ee(s||t,(function(a,l){if(s&&(a=t[l=a]),Bt(a))i||(i=new Ke),function(e,t,n,o,i,s,a){var l=e[n],c=t[n],u=a.get(c);if(u)return void Xe(e,n,u);var d=s?s(l,c,n+"",e,t,a):r,p=d===r;p&&(d=c,Lt(c)||Vt(c)?Lt(l)?d=l:kt(l)?d=mt(l):(p=!1,d=et(c,!0)):jt(c)||Dt(c)?Dt(l)?d=Wt(l):!Bt(l)||o&&Pt(l)?(p=!1,d=et(c,!0)):d=l:p=!1);p&&(a.set(c,d),i(d,c,o,s,a),a.delete(c));Xe(e,n,d)}(e,t,l,n,dt,o,i);else{var c=o?o(e[l],a,l+"",e,t,i):r;c===r&&(c=a),Xe(e,l,c)}}))}}function pt(e){return Lt(e)?e:xt(e)}function ht(e){var t=new e.constructor(e.byteLength);return new we(t).set(new we(e)),t}function mt(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function ft(e,t,n,o){n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=o?o(n[a],e[a],a,n,e):r;Qe(n,a,l===r?e[a]:l)}return n}function gt(e,t,n,o,i,s){var a=2&i,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e);if(u&&s.get(t))return u==t;var d=-1,p=!0,h=1&i?new Ye:r;for(s.set(e,t),s.set(t,e);++d<l;){var m=e[d],f=t[d];if(o)var g=a?o(f,m,d,t,e,s):o(m,f,d,e,t,s);if(g!==r){if(g)continue;p=!1;break}if(h){if(!re(t,(function(e,t){if(!h.has(t)&&(m===e||n(m,e,o,i,s)))return h.add(t)}))){p=!1;break}}else if(m!==f&&!n(m,f,o,i,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function vt(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function bt(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return lt(n)?n:r}var yt=Se?ie(Se,Object):tr,wt=function(e){return ge.call(e)};function Et(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||F.test(e))&&e>-1&&e%1==0&&e<t}function Tt(e,t){if(Lt(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Gt(e))||(M.test(e)||!L.test(e)||null!=t&&e in Object(t))}function Nt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ue)}function _t(e){return e==e&&!Bt(e)}function St(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in Object(n)))}}(Re&&wt(new Re(new ArrayBuffer(1)))!=T||Ie&&wt(new Ie)!=p||Ce&&wt(Ce.resolve())!=f||De&&wt(new De)!=v||Le&&wt(new Le)!=w)&&(wt=function(e){var t=ge.call(e),n=t==m?e.constructor:r,o=n?Ot(n):r;if(o)switch(o){case Ue:return T;case Pe:return p;case qe:return f;case Be:return v;case Fe:return w}return t});var xt=It((function(e){e=$t(e);var t=[];return k.test(e)&&t.push(""),e.replace(U,(function(e,r,n,o){t.push(n?o.replace(P,"$1"):r||e)})),t}));function At(e){if("string"==typeof e||Gt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ot(e){if(null!=e){try{return he.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Rt(e,t){return(Lt(e)?ee:nt)(e,function(){var e=Ve.iteratee||Zt;return e=e===Zt?ct:e,arguments.length?e(arguments[0],arguments[1]):e}(t,3))}function It(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s),s};return r.cache=new(It.Cache||ze),r}function Ct(e,t){return e===t||e!=e&&t!=t}function Dt(e){return kt(e)&&me.call(e,"callee")&&(!Ne.call(e,"callee")||ge.call(e)==i)}It.Cache=ze;var Lt=Array.isArray;function Mt(e){return null!=e&&qt(e.length)&&!Pt(e)}function kt(e){return Ft(e)&&Mt(e)}var Ut=xe||rr;function Pt(e){var t=Bt(e)?ge.call(e):"";return t==u||t==d}function qt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Bt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ft(e){return!!e&&"object"==typeof e}function jt(e){if(!Ft(e)||ge.call(e)!=m||ne(e))return!1;var t=Ee(e);if(null===t)return!0;var r=me.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&he.call(r)==fe}function Gt(e){return"symbol"==typeof e||Ft(e)&&ge.call(e)==y}var Ht,Vt=X?(Ht=X,function(e){return Ht(e)}):function(e){return Ft(e)&&qt(e.length)&&!!j[ge.call(e)]};function Wt(e){return ft(e,Jt(e))}function $t(e){return null==e?"":function(e){if("string"==typeof e)return e;if(Gt(e))return He?He.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}function zt(e,t,n){var o=null==e?r:it(e,t);return o===r?n:o}function Yt(e,t){return null!=e&&function(e,t,r){for(var n,o=-1,i=(t=Tt(t,e)?[t]:pt(t)).length;++o<i;){var s=At(t[o]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}return n||!!(i=e?e.length:0)&&qt(i)&&Et(s,i)&&(Lt(e)||Dt(e))}(e,t,st)}function Kt(e){return Mt(e)?Je(e):function(e){if(!Nt(e))return Ae(e);var t=[];for(var r in Object(e))me.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}function Jt(e){return Mt(e)?Je(e,!0):ut(e)}var Xt=function(e){return t=function(t,n){var o=-1,i=n.length,s=i>1?n[i-1]:r,a=i>2?n[2]:r;for(s=e.length>3&&"function"==typeof s?(i--,s):r,a&&function(e,t,r){if(!Bt(r))return!1;var n=typeof t;return!!("number"==n?Mt(r)&&Et(t,r.length):"string"==n&&t in r)&&Ct(r[t],e)}(n[0],n[1],a)&&(s=i<3?r:s,i=1),t=Object(t);++o<i;){var l=n[o];l&&e(t,l,o,s)}return t},n=Oe(n===r?t.length-1:n,0),function(){for(var e=arguments,r=-1,o=Oe(e.length-n,0),i=Array(o);++r<o;)i[r]=e[n+r];r=-1;for(var s=Array(n+1);++r<n;)s[r]=e[r];return s[n]=i,function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(t,this,s)};var t,n}((function(e,t,r){dt(e,t,r)}));function Qt(e){return e}function Zt(e){return ct("function"==typeof e?e:et(e,!0))}function er(e){return Tt(e)?function(e){return function(t){return null==t?r:t[e]}}(At(e)):function(e){return function(t){return it(t,e)}}(e)}function tr(){return[]}function rr(){return!1}Ve.compact=function(e){for(var t=-1,r=e?e.length:0,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},Ve.iteratee=Zt,Ve.keys=Kt,Ve.keysIn=Jt,Ve.memoize=It,Ve.merge=Xt,Ve.property=er,Ve.toPlainObject=Wt,Ve.clone=function(e){return et(e,!1,!0)},Ve.eq=Ct,Ve.forEach=Rt,Ve.get=zt,Ve.hasIn=Yt,Ve.identity=Qt,Ve.isArguments=Dt,Ve.isArray=Lt,Ve.isArrayLike=Mt,Ve.isArrayLikeObject=kt,Ve.isBuffer=Ut,Ve.isEmpty=function(e){if(Mt(e)&&(Lt(e)||"string"==typeof e||"function"==typeof e.splice||Ut(e)||Dt(e)))return!e.length;var t=wt(e);if(t==p||t==v)return!e.size;if(ke||Nt(e))return!Ae(e).length;for(var r in e)if(me.call(e,r))return!1;return!0},Ve.isFunction=Pt,Ve.isLength=qt,Ve.isObject=Bt,Ve.isObjectLike=Ft,Ve.isPlainObject=jt,Ve.isSymbol=Gt,Ve.isTypedArray=Vt,Ve.stubArray=tr,Ve.stubFalse=rr,Ve.toString=$t,Ve.each=Rt,Ve.VERSION="4.15.0",z&&((z.exports=Ve)._=Ve,$._=Ve)}).call(S)}(Be,Be.exports);var Fe=function e(t,r){var n,o=t&&t.type;if("FeatureCollection"===o)for(n=0;n<t.features.length;n++)e(t.features[n],r);else if("GeometryCollection"===o)for(n=0;n<t.geometries.length;n++)e(t.geometries[n],r);else if("Feature"===o)e(t.geometry,r);else if("Polygon"===o)je(t.coordinates,r);else if("MultiPolygon"===o)for(n=0;n<t.coordinates.length;n++)je(t.coordinates[n],r);return t};function je(e,t){if(0!==e.length){Ge(e[0],t);for(var r=1;r<e.length;r++)Ge(e[r],!t)}}function Ge(e,t){for(var r=0,n=0,o=0,i=e.length,s=i-1;o<i;s=o++){var a=(e[o][0]-e[s][0])*(e[s][1]+e[o][1]),l=r+a;n+=Math.abs(r)>=Math.abs(a)?r-l+a:a-l+r,r=l}r+n>=0!=!!t&&e.reverse()}var He=Be.exports,Ve=Fe,We={};function $e(e,t){return(e.version||t.version)&&e.version!==t.version?(+e.version||0)>(+t.version||0)?e:t:He.merge(e,t)}[{key:"building",polygon:"all"},{key:"highway",polygon:"whitelist",values:["services","rest_area","escape","elevator"]},{key:"natural",polygon:"blacklist",values:["coastline","cliff","ridge","arete","tree_row"]},{key:"landuse",polygon:"all"},{key:"waterway",polygon:"whitelist",values:["riverbank","dock","boatyard","dam"]},{key:"amenity",polygon:"all"},{key:"leisure",polygon:"all"},{key:"barrier",polygon:"whitelist",values:["city_wall","ditch","hedge","retaining_wall","wall","spikes"]},{key:"railway",polygon:"whitelist",values:["station","turntable","roundhouse","platform"]},{key:"area",polygon:"all"},{key:"boundary",polygon:"all"},{key:"man_made",polygon:"blacklist",values:["cutline","embankment","pipeline"]},{key:"power",polygon:"whitelist",values:["plant","substation","generator","transformer"]},{key:"place",polygon:"all"},{key:"shop",polygon:"all"},{key:"aeroway",polygon:"blacklist",values:["taxiway"]},{key:"tourism",polygon:"all"},{key:"historic",polygon:"all"},{key:"public_transport",polygon:"all"},{key:"office",polygon:"all"},{key:"building:part",polygon:"all"},{key:"military",polygon:"all"},{key:"ruins",polygon:"all"},{key:"area:highway",polygon:"all"},{key:"craft",polygon:"all"},{key:"golf",polygon:"all"},{key:"indoor",polygon:"all"}].forEach((function(e){if("all"===e.polygon)We[e.key]=!0;else{var t="whitelist"===e.polygon?"included_values":"excluded_values",r={};e.values.forEach((function(e){r[e]=!0})),We[e.key]={},We[e.key][t]=r}}));var ze;function Ye(e){for(var t,r,n,o,i,s,a=function(e){return e[0]},l=function(e){return e[e.length-1]},c=function(e,t){return void 0!==e&&void 0!==t&&e.id===t.id},u=[];e.length;)for(t=e.pop().nodes.slice(),u.push(t);e.length&&!c(a(t),l(t));){for(r=a(t),n=l(t),o=0;o<e.length;o++){if(c(n,a(s=e[o].nodes))){i=t.push,s=s.slice(1);break}if(c(n,l(s))){i=t.push,s=s.slice(0,-1).reverse();break}if(c(r,l(s))){i=t.unshift,s=s.slice(0,-1);break}if(c(r,a(s))){i=t.unshift,s=s.slice(1).reverse();break}s=i=null}if(!s)break;e.splice(o,1),i.apply(t,s)}return u}ze=function(e,t,r){var n;return t=He.merge({verbose:!1,flatProperties:!0,uninterestingTags:{source:!0,source_ref:!0,"source:ref":!0,history:!0,attribution:!0,created_by:!0,"tiger:county":!0,"tiger:tlid":!0,"tiger:upload_uuid":!0},polygonFeatures:We,deduplicator:$e},t),n="undefined"!=typeof XMLDocument&&e instanceof XMLDocument||"undefined"==typeof XMLDocument&&e.childNodes?function(e){var t,r,n=new Array,i=new Array,s=new Array;function a(e,t,r){e.hasAttribute(r)&&(t[r]=e.getAttribute(r))}function l(e,t){var r=He.clone(e);a(t,r,"lat"),a(t,r,"lon"),r.__is_center_placeholder=!0,n.push(r)}function c(e,t){var r=He.clone(e);function o(e,t,o){var i={type:"node",id:"_"+r.type+"/"+r.id+"bounds"+o,lat:e,lon:t};r.nodes.push(i.id),n.push(i)}r.nodes=[],o(t.getAttribute("minlat"),t.getAttribute("minlon"),1),o(t.getAttribute("maxlat"),t.getAttribute("minlon"),2),o(t.getAttribute("maxlat"),t.getAttribute("maxlon"),3),o(t.getAttribute("minlat"),t.getAttribute("maxlon"),4),r.nodes.push(r.nodes[0]),r.__is_bounds_placeholder=!0,i.push(r)}return He.each(e.getElementsByTagName("node"),(function(e,t){var r={};He.each(e.getElementsByTagName("tag"),(function(e){r[e.getAttribute("k")]=e.getAttribute("v")}));var o={type:"node"};a(e,o,"id"),a(e,o,"lat"),a(e,o,"lon"),a(e,o,"version"),a(e,o,"timestamp"),a(e,o,"changeset"),a(e,o,"uid"),a(e,o,"user"),He.isEmpty(r)||(o.tags=r),n.push(o)})),He.each(e.getElementsByTagName("way"),(function(e,o){var s={},u=[];He.each(e.getElementsByTagName("tag"),(function(e){s[e.getAttribute("k")]=e.getAttribute("v")}));var d=!1;He.each(e.getElementsByTagName("nd"),(function(e,t){var r;(r=e.getAttribute("ref"))&&(u[t]=r),!d&&e.getAttribute("lat")&&(d=!0)}));var p={type:"way"};a(e,p,"id"),a(e,p,"version"),a(e,p,"timestamp"),a(e,p,"changeset"),a(e,p,"uid"),a(e,p,"user"),u.length>0&&(p.nodes=u),He.isEmpty(s)||(p.tags=s),(t=e.getElementsByTagName("center")[0])&&l(p,t),d?function(e,t){function r(e,t,r){var o={type:"node",id:r,lat:e,lon:t};return n.push(o),o.id}He.isArray(e.nodes)||(e.nodes=[],He.each(t,(function(t,r){e.nodes.push("_anonymous@"+t.getAttribute("lat")+"/"+t.getAttribute("lon"))})));He.each(t,(function(t,n){t.getAttribute("lat")&&r(t.getAttribute("lat"),t.getAttribute("lon"),e.nodes[n])}))}(p,e.getElementsByTagName("nd")):(r=e.getElementsByTagName("bounds")[0])&&c(p,r),i.push(p)})),He.each(e.getElementsByTagName("relation"),(function(e,o){var u={},d=[];He.each(e.getElementsByTagName("tag"),(function(e){u[e.getAttribute("k")]=e.getAttribute("v")}));var p=!1;He.each(e.getElementsByTagName("member"),(function(e,t){d[t]={},a(e,d[t],"ref"),a(e,d[t],"role"),a(e,d[t],"type"),(!p&&"node"==d[t].type&&e.getAttribute("lat")||"way"==d[t].type&&e.getElementsByTagName("nd").length>0)&&(p=!0)}));var h={type:"relation"};a(e,h,"id"),a(e,h,"version"),a(e,h,"timestamp"),a(e,h,"changeset"),a(e,h,"uid"),a(e,h,"user"),d.length>0&&(h.members=d),He.isEmpty(u)||(h.tags=u),(t=e.getElementsByTagName("center")[0])&&l(h,t),p?function(e,t){function r(e,t,r){var o={type:"node",id:r,lat:e,lon:t};n.push(o)}function o(e,t){if(!i.some((function(e){return"way"==e.type&&e.id==t}))){var r={type:"way",id:t,nodes:[]};He.each(e,(function(e){e.getAttribute("lat")?o(e.getAttribute("lat"),e.getAttribute("lon")):r.nodes.push(void 0)})),i.push(r)}function o(e,t){var o={type:"node",id:"_anonymous@"+e+"/"+t,lat:e,lon:t};r.nodes.push(o.id),n.push(o)}}He.each(t,(function(t,n){"node"==e.members[n].type?t.getAttribute("lat")&&r(t.getAttribute("lat"),t.getAttribute("lon"),e.members[n].ref):"way"==e.members[n].type&&t.getElementsByTagName("nd").length>0&&(e.members[n].ref="_fullGeom"+e.members[n].ref,o(t.getElementsByTagName("nd"),e.members[n].ref))}))}(h,e.getElementsByTagName("member")):(r=e.getElementsByTagName("bounds")[0])&&c(h,r),s.push(h)})),o(n,i,s)}(e):function(e){var t=new Array,r=new Array,n=new Array;function i(e){var r=He.clone(e);r.lat=e.center.lat,r.lon=e.center.lon,r.__is_center_placeholder=!0,t.push(r)}function s(e){var n=He.clone(e);function o(e,r,o){var i={type:"node",id:"_"+n.type+"/"+n.id+"bounds"+o,lat:e,lon:r};n.nodes.push(i.id),t.push(i)}n.nodes=[],o(n.bounds.minlat,n.bounds.minlon,1),o(n.bounds.maxlat,n.bounds.minlon,2),o(n.bounds.maxlat,n.bounds.maxlon,3),o(n.bounds.minlat,n.bounds.maxlon,4),n.nodes.push(n.nodes[0]),n.__is_bounds_placeholder=!0,r.push(n)}function a(e){He.isArray(e.nodes)||(e.nodes=e.geometry.map((function(e){return null!==e?"_anonymous@"+e.lat+"/"+e.lon:"_anonymous@unknown_location"}))),e.geometry.forEach((function(r,n){var o,i,s,a;r&&(o=r.lat,i=r.lon,s=e.nodes[n],a={type:"node",id:s,lat:o,lon:i},t.push(a))}))}function l(e){function n(e,n){if(!r.some((function(e){return"way"==e.type&&e.id==n}))){var o={type:"way",id:n,nodes:[]};e.forEach((function(e){var r,n,i;e?(r=e.lat,n=e.lon,i={type:"node",id:"_anonymous@"+r+"/"+n,lat:r,lon:n},o.nodes.push(i.id),t.push(i)):o.nodes.push(void 0)})),r.push(o)}}e.members.forEach((function(e,r){var o,i,s,a;"node"==e.type?e.lat&&(o=e.lat,i=e.lon,s=e.ref,a={type:"node",id:s,lat:o,lon:i},t.push(a)):"way"==e.type&&e.geometry&&(e.ref="_fullGeom"+e.ref,n(e.geometry,e.ref))}))}for(var c=0;c<e.elements.length;c++)switch(e.elements[c].type){case"node":var u=e.elements[c];t.push(u);break;case"way":var d=He.clone(e.elements[c]);d.nodes=He.clone(d.nodes),r.push(d),d.center&&i(d),d.geometry?a(d):d.bounds&&s(d);break;case"relation":var p=He.clone(e.elements[c]);p.members=He.clone(p.members),n.push(p);var h=p.members&&p.members.some((function(e){return"node"==e.type&&e.lat||"way"==e.type&&e.geometry&&e.geometry.length>0}));p.center&&i(p),h?l(p):p.bounds&&s(p)}return o(t,r,n)}(e),n;function o(e,n,o){function s(e,r){if("object"!=typeof r&&(r={}),"function"==typeof t.uninterestingTags)return!t.uninterestingTags(e,r);for(var n in e)if(!0!==t.uninterestingTags[n]&&!0!==r[n]&&r[n]!==e[n])return!0;return!1}function a(e){var t={timestamp:e.timestamp,version:e.version,changeset:e.changeset,user:e.user,uid:e.uid};for(var r in t)void 0===t[r]&&delete t[r];return t}for(var l=new Object,c=new Object,u=0;u<e.length;u++){void 0!==l[(v=e[u]).id]&&(v=t.deduplicator(v,l[v.id])),l[v.id]=v,void 0!==v.tags&&s(v.tags)&&(c[v.id]=!0)}for(u=0;u<o.length;u++)if(He.isArray(o[u].members))for(var d=0;d<o[u].members.length;d++)"node"==o[u].members[d].type&&(c[o[u].members[d].ref]=!0);var p=new Object,h=new Object;for(u=0;u<n.length;u++){var m=n[u];if(p[m.id]&&(m=t.deduplicator(m,p[m.id])),p[m.id]=m,He.isArray(m.nodes))for(d=0;d<m.nodes.length;d++)"object"!=typeof m.nodes[d]&&(h[m.nodes[d]]=!0,m.nodes[d]=l[m.nodes[d]])}var f=new Array;for(var g in l){var v=l[g];h[g]&&!c[g]||f.push(v)}var b=new Array;for(u=0;u<o.length;u++){b[(E=o[u]).id]&&(E=t.deduplicator(E,b[E.id])),b[E.id]=E}var y,w={node:{},way:{},relation:{}};for(var g in b){var E=b[g];if(He.isArray(E.members))for(d=0;d<E.members.length;d++){var T=E.members[d].type,N=E.members[d].ref;"number"!=typeof N&&(N=N.replace("_fullGeom","")),w[T]?(void 0===w[T][N]&&(w[T][N]=[]),w[T][N].push({role:E.members[d].role,rel:E.id,reltags:E.tags})):t.verbose&&console.warn("Relation",E.type+"/"+E.id,"member",T+"/"+N,"ignored because it has an invalid type")}else t.verbose&&console.warn("Relation",E.type+"/"+E.id,"ignored because it has no members")}var _=[];for(u=0;u<f.length;u++)if(void 0!==f[u].lon&&void 0!==f[u].lat){var S={type:"Feature",id:f[u].type+"/"+f[u].id,properties:{type:f[u].type,id:f[u].id,tags:f[u].tags||{},relations:w.node[f[u].id]||[],meta:a(f[u])},geometry:{type:"Point",coordinates:[+f[u].lon,+f[u].lat]}};f[u].__is_center_placeholder&&(S.properties.geometry="center"),r?r(S):_.push(S)}else t.verbose&&console.warn("POI",f[u].type+"/"+f[u].id,"ignored because it lacks coordinates");var x=[],A=[];for(u=0;u<o.length;u++)if(b[o[u].id]===o[u]){if(void 0!==o[u].tags&&("route"==o[u].tags.type||"waterway"==o[u].tags.type)){let e=function(e){var r,n,o=!1;r=(r=e.members.filter((function(e){return"way"===e.type}))).map((function(r){var n=p[r.ref];return void 0===n||void 0===n.nodes?(t.verbose&&console.warn("Route "+e.type+"/"+e.id,"tainted by a missing or incomplete way",r.type+"/"+r.ref),void(o=!0)):{id:r.ref,role:r.role,way:n,nodes:n.nodes.filter((function(n){return void 0!==n||(o=!0,t.verbose&&console.warn("Route",e.type+"/"+e.id,"tainted by a way",r.type+"/"+r.ref,"with a missing node"),!1)}))}})),n=Ye(r=He.compact(r));var i;if(0==(i=He.compact(n.map((function(e){return He.compact(e.map((function(e){return[+e.lon,+e.lat]})))})))).length)return t.verbose&&console.warn("Route",e.type+"/"+e.id,"contains no coordinates"),!1;var s={type:"Feature",id:e.type+"/"+e.id,properties:{type:e.type,id:e.id,tags:e.tags||{},relations:w[e.type][e.id]||[],meta:a(e)},geometry:{type:1===i.length?"LineString":"MultiLineString",coordinates:1===i.length?i[0]:i}};return o&&(t.verbose&&console.warn("Route",e.type+"/"+e.id,"is tainted"),s.properties.tainted=!0),s};if(!He.isArray(o[u].members)){t.verbose&&console.warn("Route",o[u].type+"/"+o[u].id,"ignored because it has no members");continue}if(o[u].members.forEach((function(e){p[e.ref]&&!s(p[e.ref].tags)&&(p[e.ref].is_skippablerelationmember=!0)})),!1===(S=e(o[u]))){t.verbose&&console.warn("Route relation",o[u].type+"/"+o[u].id,"ignored because it has invalid geometry");continue}r?r(Ve(S)):A.push(S)}if(void 0!==o[u].tags&&("multipolygon"==o[u].tags.type||"boundary"==o[u].tags.type)){let e=function(e,r){var n,o,i,s,l=!1,c=R?"way":"relation",u="number"==typeof e.id?e.id:+e.id.replace("_fullGeom","");function d(e){var t,r=function(e,t){for(var r=0;r<t.length;r++)if(i(t[r],e))return!0;return!1},n=function(e){return e.map((function(e){return[+e.lat,+e.lon]}))},i=function(e,t){for(var r=e[0],n=e[1],o=!1,i=0,s=t.length-1;i<t.length;s=i++){var a=t[i][0],l=t[i][1],c=t[s][0],u=t[s][1];l>n!=u>n&&r<(c-a)*(n-l)/(u-l)+a&&(o=!o)}return o};for(e=n(e),t=0;t<o.length;t++)if(r(n(o[t]),e))return t}n=(n=r.members.filter((function(e){return"way"===e.type}))).map((function(e){var r=p[e.ref];return void 0===r||void 0===r.nodes?(t.verbose&&console.warn("Multipolygon",c+"/"+u,"tainted by a missing or incomplete way",e.type+"/"+e.ref),void(l=!0)):{id:e.ref,role:e.role||"outer",way:r,nodes:r.nodes.filter((function(r){return void 0!==r||(l=!0,t.verbose&&console.warn("Multipolygon",c+"/"+u,"tainted by a way",e.type+"/"+e.ref,"with a missing node"),!1)}))}})),n=He.compact(n),o=Ye(n.filter((function(e){return"outer"===e.role}))),i=Ye(n.filter((function(e){return"inner"===e.role}))),s=o.map((function(e){return[e]}));for(var h=0;h<i.length;h++){var m=d(i[h]);void 0!==m?s[m].push(i[h]):t.verbose&&console.warn("Multipolygon",c+"/"+u,"contains an inner ring with no containing outer")}var f=[];if(0==(f=He.compact(s.map((function(e){var r=He.compact(e.map((function(e){if(!(e.length<4))return He.compact(e.map((function(e){return[+e.lon,+e.lat]})));t.verbose&&console.warn("Multipolygon",c+"/"+u,"contains a ring with less than four nodes")})));if(0!=r.length)return r;t.verbose&&console.warn("Multipolygon",c+"/"+u,"contains an empty ring cluster")})))).length)return t.verbose&&console.warn("Multipolygon",c+"/"+u,"contains no coordinates"),!1;var g="MultiPolygon";1===f.length&&(g="Polygon",f=f[0]);var v={type:"Feature",id:e.type+"/"+u,properties:{type:e.type,id:u,tags:e.tags||{},relations:w[e.type][e.id]||[],meta:a(e)},geometry:{type:g,coordinates:f}};return l&&(t.verbose&&console.warn("Multipolygon",c+"/"+u,"is tainted"),v.properties.tainted=!0),v};if(!He.isArray(o[u].members)){t.verbose&&console.warn("Multipolygon",o[u].type+"/"+o[u].id,"ignored because it has no members");continue}var O=0;for(d=0;d<o[u].members.length;d++)"outer"==o[u].members[d].role?O++:t.verbose&&"inner"!=o[u].members[d].role&&console.warn("Multipolygon",o[u].type+"/"+o[u].id,"member",o[u].members[d].type+"/"+o[u].members[d].ref,'ignored because it has an invalid role: "'+o[u].members[d].role+'"');if(o[u].members.forEach((function(e){p[e.ref]&&("outer"!==e.role||s(p[e.ref].tags,o[u].tags)||(p[e.ref].is_skippablerelationmember=!0),"inner"!==e.role||s(p[e.ref].tags)||(p[e.ref].is_skippablerelationmember=!0))})),0==O){t.verbose&&console.warn("Multipolygon relation",o[u].type+"/"+o[u].id,"ignored because it has no outer ways");continue}var R=!1;1!=O||s(o[u].tags,{type:!0})||(R=!0);S=null;if(R){var I=o[u].members.filter((function(e){return"outer"===e.role}))[0];if(void 0===(I=p[I.ref])){t.verbose&&console.warn("Multipolygon relation",o[u].type+"/"+o[u].id,"ignored because outer way",I.type+"/"+I.ref,"is missing");continue}I.is_skippablerelationmember=!0,S=e(I,o[u])}else S=e(o[u],o[u]);if(!1===S){t.verbose&&console.warn("Multipolygon relation",o[u].type+"/"+o[u].id,"ignored because it has invalid geometry");continue}r?r(Ve(S)):A.push(S)}}for(u=0;u<n.length;u++)if(p[n[u].id]===n[u])if(He.isArray(n[u].nodes)){if(!n[u].is_skippablerelationmember){"number"!=typeof n[u].id&&(n[u].id=+n[u].id.replace("_fullGeom","")),n[u].tainted=!1,n[u].hidden=!1;var C=new Array;for(d=0;d<n[u].nodes.length;d++)"object"==typeof n[u].nodes[d]?C.push([+n[u].nodes[d].lon,+n[u].nodes[d].lat]):(t.verbose&&console.warn("Way",n[u].type+"/"+n[u].id,"is tainted by an invalid node"),n[u].tainted=!0);if(C.length<=1)t.verbose&&console.warn("Way",n[u].type+"/"+n[u].id,"ignored because it contains too few nodes");else{var D="LineString";void 0!==n[u].nodes[0]&&void 0!==n[u].nodes[n[u].nodes.length-1]&&n[u].nodes[0].id===n[u].nodes[n[u].nodes.length-1].id&&(void 0!==n[u].tags&&i(n[u].tags)||n[u].__is_bounds_placeholder)&&(D="Polygon",C=[C]);S={type:"Feature",id:n[u].type+"/"+n[u].id,properties:{type:n[u].type,id:n[u].id,tags:n[u].tags||{},relations:w.way[n[u].id]||[],meta:a(n[u])},geometry:{type:D,coordinates:C}};n[u].tainted&&(t.verbose&&console.warn("Way",n[u].type+"/"+n[u].id,"is tainted"),S.properties.tainted=!0),n[u].__is_bounds_placeholder&&(S.properties.geometry="bounds"),r?r(Ve(S)):"LineString"==D?x.push(S):A.push(S)}}}else t.verbose&&console.warn("Way",n[u].type+"/"+n[u].id,"ignored because it has no nodes");return!!r||((y={type:"FeatureCollection",features:[]}).features=y.features.concat(A),y.features=y.features.concat(x),y.features=y.features.concat(_),t.flatProperties&&y.features.forEach((function(e){e.properties=He.merge(e.properties.meta,e.properties.tags,{id:e.properties.type+"/"+e.properties.id})})),y=Ve(y))}function i(e){var r=t.polygonFeatures;if("function"==typeof r)return r(e);if("no"===e.area)return!1;for(var n in e){var o=e[n],i=r[n];if(void 0!==i&&"no"!==o){if(!0===i)return!0;if(i.included_values&&!0===i.included_values[o])return!0;if(i.excluded_values&&!0!==i.excluded_values[o])return!0}}return!1}},ze.toGeojson=ze;const Ke=x(ze);var Je={};function Xe(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.getOwnPropertyDescriptors&&(e=t.create(null,t.getOwnPropertyDescriptors(e))),t&&"function"==typeof t.freeze?t.freeze(e):e}function Qe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Ze=Xe({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});var et=Xe({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});var tt=Xe({script:!1,style:!1,textarea:!0,title:!0});function rt(e){return e===nt.HTML}var nt=Xe({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),ot=Object.keys(nt).map((function(e){return nt[e]}));var it=Xe({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});Je.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var r in t)Qe(t,r)&&(e[r]=t[r]);return e},Je.find=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var n=0;n<e.length;n++)if(Qe(e,n)){var o=e[n];if(t.call(void 0,o,n,e))return o}},Je.freeze=Xe,Je.HTML_BOOLEAN_ATTRIBUTES=Ze,Je.HTML_RAW_TEXT_ELEMENTS=tt,Je.HTML_VOID_ELEMENTS=et,Je.hasDefaultHTMLNamespace=function(e){return rt(e)||e===nt.XML_XHTML_APPLICATION},Je.hasOwn=Qe,Je.isHTMLBooleanAttribute=function(e){return Qe(Ze,e.toLowerCase())},Je.isHTMLRawTextElement=function(e){var t=e.toLowerCase();return Qe(tt,t)&&!tt[t]},Je.isHTMLEscapableRawTextElement=function(e){var t=e.toLowerCase();return Qe(tt,t)&&tt[t]},Je.isHTMLMimeType=rt,Je.isHTMLVoidElement=function(e){return Qe(et,e.toLowerCase())},Je.isValidMimeType=function(e){return ot.indexOf(e)>-1},Je.MIME_TYPE=nt,Je.NAMESPACE=it;var st={};function at(e,t){e.prototype=Object.create(Error.prototype,{constructor:{value:e},name:{value:e.name,enumerable:!0,writable:t}})}var lt=Je.freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),ct=Object.keys(lt);function ut(e){return"number"==typeof e&&e>=1&&e<=25}function dt(e,t){var r;ut(e)?(this.name=ct[e],this.message=t||""):(this.message=e,this.name="string"==typeof(r=t)&&r.substring(r.length-lt.Error.length)===lt.Error?t:lt.Error),Error.captureStackTrace&&Error.captureStackTrace(this,dt)}at(dt,!0),Object.defineProperties(dt.prototype,{code:{enumerable:!0,get:function(){var e=ct.indexOf(this.name);return ut(e)?e:0}}});for(var pt={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},ht=Object.entries(pt),mt=0;mt<ht.length;mt++){dt[ht[mt][0]]=ht[mt][1]}function ft(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,ft)}at(ft),st.DOMException=dt,st.DOMExceptionName=lt,st.ExceptionCode=pt,st.ParseError=ft;var gt={},vt={};function bt(e){try{"function"!=typeof e&&(e=RegExp);var t=new e("𝌆","u").exec("𝌆");return!!t&&2===t[0].length}catch(r){}return!1}var yt=bt();function wt(e){if("["!==e.source[0])throw new Error(e+" can not be used with chars");return e.source.slice(1,e.source.lastIndexOf("]"))}function Et(e,t){if("["!==e.source[0])throw new Error("/"+e.source+"/ can not be used with chars_without");if(!t||"string"!=typeof t)throw new Error(JSON.stringify(t)+" is not a valid search");if(-1===e.source.indexOf(t))throw new Error('"'+t+'" is not is /'+e.source+"/");if("-"===t&&1!==e.source.indexOf(t))throw new Error('"'+t+'" is not at the first postion of /'+e.source+"/");return new RegExp(e.source.replace(t,""),yt?"u":"")}function Tt(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map((function(e){var r="string"==typeof e;if(r&&void 0===t&&"|"===e)throw new Error("use regg instead of reg to wrap expressions with `|`!");return r?e:e.source})).join(""),yt?"mu":"m")}function Nt(e){if(0===arguments.length)throw new Error("no parameters provided");return Tt.apply(Nt,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var _t=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;yt&&(_t=Tt("[",wt(_t),"\\u{10000}-\\u{10FFFF}","]"));var St=/[\x20\x09\x0D\x0A]/,xt=wt(St),At=Tt(St,"+"),Ot=Tt(St,"*"),Rt=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;yt&&(Rt=Tt("[",wt(Rt),"\\u{10000}-\\u{10FFFF}","]"));var It=Tt("[",wt(Rt),wt(/[-.0-9\xB7]/),wt(/[\u0300-\u036F\u203F-\u2040]/),"]"),Ct=Tt(Rt,It,"*"),Dt=Tt(It,"+"),Lt=Tt("&",Ct,";"),Mt=Nt(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),kt=Nt(Lt,"|",Mt),Ut=Tt("%",Ct,";"),Pt=Nt(Tt('"',Nt(/[^%&"]/,"|",Ut,"|",kt),"*",'"'),"|",Tt("'",Nt(/[^%&']/,"|",Ut,"|",kt),"*","'")),qt=Nt('"',Nt(/[^<&"]/,"|",kt),"*",'"',"|","'",Nt(/[^<&']/,"|",kt),"*","'"),Bt=Tt(Et(Rt,":"),Et(It,":"),"*"),Ft=Tt(Bt,Nt(":",Bt),"?"),jt=Tt("^",Ft,"$"),Gt=Tt("(",Ft,")"),Ht=Nt(/"[^"]*"|'[^']*'/),Vt=Tt(/^<\?/,"(",Ct,")",Nt(At,"(",_t,"*?)"),"?",/\?>/),Wt=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,$t=Nt('"',Wt,'*"',"|","'",Et(Wt,"'"),"*'"),zt="\x3c!--",Yt=Tt(zt,Nt(Et(_t,"-"),"|",Tt("-",Et(_t,"-"))),"*","--\x3e"),Kt="#PCDATA",Jt=Nt(Tt(/\(/,Ot,Kt,Nt(Ot,/\|/,Ot,Ft),"*",Ot,/\)\*/),"|",Tt(/\(/,Ot,Kt,Ot,/\)/)),Xt=Nt("EMPTY","|","ANY","|",Jt,"|",Tt(/\([^>]+\)/,/[?*+]?/)),Qt=Tt("<!ELEMENT",At,Nt(Ft,"|",Ut),At,Nt(Xt,"|",Ut),Ot,">"),Zt=Tt("NOTATION",At,/\(/,Ot,Ct,Nt(Ot,/\|/,Ot,Ct),"*",Ot,/\)/),er=Tt(/\(/,Ot,Dt,Nt(Ot,/\|/,Ot,Dt),"*",Ot,/\)/),tr=Nt(Zt,"|",er),rr=Nt(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",tr),nr=Nt(/#REQUIRED|#IMPLIED/,"|",Nt(Nt("#FIXED",At),"?",qt)),or=Tt("<!ATTLIST",At,Ct,Nt(At,Ct,At,rr,At,nr),"*",Ot,">"),ir="about:legacy-compat",sr=Nt('"'+ir+'"',"|","'"+ir+"'"),ar="SYSTEM",lr="PUBLIC",cr=Nt(Nt(ar,At,Ht),"|",Nt(lr,At,$t,At,Ht)),ur=Tt("^",Nt(Nt(ar,At,"(?<SystemLiteralOnly>",Ht,")"),"|",Nt(lr,At,"(?<PubidLiteral>",$t,")",At,"(?<SystemLiteral>",Ht,")"))),dr=Nt(At,"NDATA",At,Ct),pr="<!ENTITY",hr=Tt(pr,At,Ct,At,Nt(Pt,"|",Nt(cr,dr,"?")),Ot,">"),mr=Nt(Pt,"|",cr),fr=Nt(hr,"|",Tt(pr,At,"%",At,Ct,At,mr,Ot,">")),gr=Tt(lr,At,$t),vr=Tt("<!NOTATION",At,Ct,At,Nt(cr,"|",gr),Ot,">"),br=Tt(Ot,"=",Ot),yr=/1[.]\d+/,wr=Tt(At,"version",br,Nt("'",yr,"'","|",'"',yr,'"')),Er=/[A-Za-z][-A-Za-z0-9._]*/,Tr=Tt(/^<\?xml/,wr,Nt(At,"encoding",br,Nt('"',Er,'"',"|","'",Er,"'")),"?",Nt(At,"standalone",br,Nt("'",Nt("yes","|","no"),"'","|",'"',Nt("yes","|","no"),'"')),"?",Ot,/\?>/),Nr=Tt(_t,"*?",/\]\]>/),_r=Tt(/<!\[CDATA\[/,Nr);vt.chars=wt,vt.chars_without=Et,vt.detectUnicodeSupport=bt,vt.reg=Tt,vt.regg=Nt,vt.ABOUT_LEGACY_COMPAT=ir,vt.ABOUT_LEGACY_COMPAT_SystemLiteral=sr,vt.AttlistDecl=or,vt.CDATA_START="<![CDATA[",vt.CDATA_END="]]>",vt.CDSect=_r,vt.Char=_t,vt.Comment=Yt,vt.COMMENT_START=zt,vt.COMMENT_END="--\x3e",vt.DOCTYPE_DECL_START="<!DOCTYPE",vt.elementdecl=Qt,vt.EntityDecl=fr,vt.EntityValue=Pt,vt.ExternalID=cr,vt.ExternalID_match=ur,vt.Name=Ct,vt.NotationDecl=vr,vt.Reference=kt,vt.PEReference=Ut,vt.PI=Vt,vt.PUBLIC=lr,vt.PubidLiteral=$t,vt.QName=Ft,vt.QName_exact=jt,vt.QName_group=Gt,vt.S=At,vt.SChar_s=xt,vt.S_OPT=Ot,vt.SYSTEM=ar,vt.SystemLiteral=Ht,vt.UNICODE_REPLACEMENT_CHARACTER="�",vt.UNICODE_SUPPORT=yt,vt.XMLDecl=Tr;var Sr=Je,xr=Sr.find,Ar=Sr.hasDefaultHTMLNamespace,Or=Sr.hasOwn,Rr=Sr.isHTMLMimeType,Ir=Sr.isHTMLRawTextElement,Cr=Sr.isHTMLVoidElement,Dr=Sr.MIME_TYPE,Lr=Sr.NAMESPACE,Mr=Symbol(),kr=st,Ur=kr.DOMException,Pr=kr.DOMExceptionName,qr=vt;function Br(e){if(e!==Mr)throw new TypeError("Illegal constructor")}function Fr(e){return""!==e}function jr(e,t){return Or(e,t)||(e[t]=!0),e}function Gr(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(Fr):[]}(e);return Object.keys(t.reduce(jr,{}))}function Hr(e){if(!qr.QName_exact.test(e))throw new Ur(Ur.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+e+'"')}function Vr(e,t){Hr(t),e=e||null;var r=null,n=t;if(t.indexOf(":")>=0){var o=t.split(":");r=o[0],n=o[1]}if(null!==r&&null===e)throw new Ur(Ur.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===r&&e!==Sr.NAMESPACE.XML)throw new Ur(Ur.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===r||"xmlns"===t)&&e!==Sr.NAMESPACE.XMLNS)throw new Ur(Ur.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(e===Sr.NAMESPACE.XMLNS&&"xmlns"!==r&&"xmlns"!==t)throw new Ur(Ur.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[e,r,n]}function Wr(e,t){for(var r in e)Or(e,r)&&(t[r]=e[r])}function $r(e,t){var r=e.prototype;if(!(r instanceof t)){let n=function(){};n.prototype=t.prototype,n=new n,Wr(r,n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var zr={},Yr=zr.ELEMENT_NODE=1,Kr=zr.ATTRIBUTE_NODE=2,Jr=zr.TEXT_NODE=3,Xr=zr.CDATA_SECTION_NODE=4,Qr=zr.ENTITY_REFERENCE_NODE=5,Zr=zr.ENTITY_NODE=6,en=zr.PROCESSING_INSTRUCTION_NODE=7,tn=zr.COMMENT_NODE=8,rn=zr.DOCUMENT_NODE=9,nn=zr.DOCUMENT_TYPE_NODE=10,on=zr.DOCUMENT_FRAGMENT_NODE=11,sn=zr.NOTATION_NODE=12,an=Sr.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function ln(e,t){if(t.length<e.length)return ln(t,e);var r=null;for(var n in e){if(e[n]!==t[n])return r;r=e[n]}return r}function cn(e){return e.guid||(e.guid=Math.random()),e.guid}function un(){}function dn(e,t){this._node=e,this._refresh=t,pn(this)}function pn(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(Zn(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;n in e;n++)Or(e,n)&&delete e[n];Wr(r,e),e._inc=t}}function hn(){}function mn(e,t){for(var r=0;r<e.length;){if(e[r]===t)return r;r++}}function fn(e,t,r,n){if(n?t[mn(t,n)]=r:(t[t.length]=r,t.length++),e){r.ownerElement=e;var o=e.ownerDocument;o&&(n&&Tn(o,e,n),function(e,t,r){e&&e._inc++;var n=r.namespaceURI;n===Lr.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}(o,e,r))}}function gn(e,t,r){var n=mn(t,r);if(n>=0){for(var o=t.length-1;n<=o;)t[n]=t[++n];if(t.length=o,e){var i=e.ownerDocument;i&&Tn(i,e,r),r.ownerElement=null}}}function vn(){}function bn(e){Br(e)}function yn(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function wn(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(wn(e,t))return!0}while(e=e.nextSibling)}function En(e,t){Br(e);var r=t||{};this.ownerDocument=this,this.contentType=r.contentType||Dr.XML_APPLICATION,this.type=Rr(this.contentType)?"html":"xml"}function Tn(e,t,r,n){e&&e._inc++,r.namespaceURI===Lr.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function Nn(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r&&!r.nextSibling)n[n.length++]=r;else{for(var o=t.firstChild,i=0;o;)n[i++]=o,o=o.nextSibling;n.length=i,delete n[n.length]}}}function _n(e,t){if(e!==t.parentNode)throw new Ur(Ur.NOT_FOUND_ERR,"child's parent is not parent");var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,Nn(e.ownerDocument,e),t.parentNode=null,t.previousSibling=null,t.nextSibling=null,t}function Sn(e){return e&&e.nodeType===bn.DOCUMENT_TYPE_NODE}function xn(e){return e&&e.nodeType===bn.ELEMENT_NODE}function An(e){return e&&e.nodeType===bn.TEXT_NODE}function On(e,t){var r=e.childNodes||[];if(xr(r,xn)||Sn(t))return!1;var n=xr(r,Sn);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function Rn(e,t){var r=e.childNodes||[];if(xr(r,(function(e){return xn(e)&&e!==t})))return!1;var n=xr(r,Sn);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function In(e,t,r){if(!function(e){return e&&(e.nodeType===bn.DOCUMENT_NODE||e.nodeType===bn.DOCUMENT_FRAGMENT_NODE||e.nodeType===bn.ELEMENT_NODE)}(e))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new Ur(Ur.NOT_FOUND_ERR,"child not in parent");if(!function(e){return e&&(e.nodeType===bn.CDATA_SECTION_NODE||e.nodeType===bn.COMMENT_NODE||e.nodeType===bn.DOCUMENT_FRAGMENT_NODE||e.nodeType===bn.DOCUMENT_TYPE_NODE||e.nodeType===bn.ELEMENT_NODE||e.nodeType===bn.PROCESSING_INSTRUCTION_NODE||e.nodeType===bn.TEXT_NODE)}(t)||Sn(t)&&e.nodeType!==bn.DOCUMENT_NODE)throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function Cn(e,t,r){var n=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===bn.DOCUMENT_FRAGMENT_NODE){var i=o.filter(xn);if(i.length>1||xr(o,An))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!On(e,r))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(xn(t)&&!On(e,r))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Sn(t)){if(xr(n,Sn))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var s=xr(n,xn);if(r&&n.indexOf(s)<n.indexOf(r))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!r&&s)throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function Dn(e,t,r){var n=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===bn.DOCUMENT_FRAGMENT_NODE){var i=o.filter(xn);if(i.length>1||xr(o,An))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!Rn(e,r))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(xn(t)&&!Rn(e,r))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Sn(t)){if(xr(n,(function(e){return Sn(e)&&e!==r})))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var s=xr(n,xn);if(r&&n.indexOf(s)<n.indexOf(r))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function Ln(e,t,r,n){In(e,t,r),e.nodeType===bn.DOCUMENT_NODE&&(n||Cn)(e,t,r);var o=t.parentNode;if(o&&o.removeChild(t),t.nodeType===on){var i=t.firstChild;if(null==i)return t;var s=t.lastChild}else i=s=t;var a=r?r.previousSibling:e.lastChild;i.previousSibling=a,s.nextSibling=r,a?a.nextSibling=i:e.firstChild=i,null==r?e.lastChild=s:r.previousSibling=s;do{i.parentNode=e}while(i!==s&&(i=i.nextSibling));return Nn(e.ownerDocument||e,e,t),t.nodeType==on&&(t.firstChild=t.lastChild=null),t}function Mn(e){Br(e),this._nsMap=Object.create(null)}function kn(e){Br(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function Un(e){Br(e)}function Pn(e){Br(e)}function qn(e){Br(e)}function Bn(e){Br(e)}function Fn(e){Br(e)}function jn(e){Br(e)}function Gn(e){Br(e)}function Hn(e){Br(e)}function Vn(e){Br(e)}function Wn(e){Br(e)}function $n(){}function zn(e){var t=[],r=this.nodeType===rn&&this.documentElement||this,n=r.prefix,o=r.namespaceURI;if(o&&null==n&&null==(n=r.lookupPrefix(o)))var i=[{namespace:o,prefix:null}];return Jn(this,t,e,i),t.join("")}function Yn(e,t,r){var n=e.prefix||"",o=e.namespaceURI;if(!o)return!1;if("xml"===n&&o===Lr.XML||o===Lr.XMLNS)return!1;for(var i=r.length;i--;){var s=r[i];if(s.prefix===n)return s.namespace!==o}return!0}function Kn(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,yn),'"')}function Jn(e,t,r,n){n||(n=[]);var o="html"===(e.nodeType===rn?e:e.ownerDocument).type;if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case Yr:var i=e.attributes,s=i.length,a=e.firstChild,l=e.tagName,c=l;if(!o&&!e.prefix&&e.namespaceURI){for(var u,d=0;d<i.length;d++)if("xmlns"===i.item(d).name){u=i.item(d).value;break}if(!u)for(var p=n.length-1;p>=0;p--){if(""===(h=n[p]).prefix&&h.namespace===e.namespaceURI){u=h.namespace;break}}if(u!==e.namespaceURI)for(p=n.length-1;p>=0;p--){var h;if((h=n[p]).namespace===e.namespaceURI){h.prefix&&(c=h.prefix+":"+l);break}}}t.push("<",c);for(var m=0;m<s;m++){"xmlns"==(f=i.item(m)).prefix?n.push({prefix:f.localName,namespace:f.value}):"xmlns"==f.nodeName&&n.push({prefix:"",namespace:f.value})}for(m=0;m<s;m++){var f,g,v;if(Yn(f=i.item(m),0,n))Kn(t,(g=f.prefix||"")?"xmlns:"+g:"xmlns",v=f.namespaceURI),n.push({prefix:g,namespace:v});Jn(f,t,r,n)}if(l===c&&Yn(e,0,n))Kn(t,(g=e.prefix||"")?"xmlns:"+g:"xmlns",v=e.namespaceURI),n.push({prefix:g,namespace:v});var b=!a;if(b&&(o||e.namespaceURI===Lr.HTML)&&(b=Cr(l)),b)t.push("/>");else{if(t.push(">"),o&&Ir(l))for(;a;)a.data?t.push(a.data):Jn(a,t,r,n.slice()),a=a.nextSibling;else for(;a;)Jn(a,t,r,n.slice()),a=a.nextSibling;t.push("</",c,">")}return;case rn:case on:for(a=e.firstChild;a;)Jn(a,t,r,n.slice()),a=a.nextSibling;return;case Kr:return Kn(t,e.name,e.value);case Jr:return t.push(e.data.replace(/[<&>]/g,yn));case Xr:return t.push(qr.CDATA_START,e.data,qr.CDATA_END);case tn:return t.push(qr.COMMENT_START,e.data,qr.COMMENT_END);case nn:var y=e.publicId,w=e.systemId;return t.push(qr.DOCTYPE_DECL_START," ",e.name),y?(t.push(" ",qr.PUBLIC," ",y),w&&"."!==w&&t.push(" ",w)):w&&"."!==w&&t.push(" ",qr.SYSTEM," ",w),e.internalSubset&&t.push(" [",e.internalSubset,"]"),void t.push(">");case en:return t.push("<?",e.target," ",e.data,"?>");case Qr:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function Xn(e,t,r){var n;switch(t.nodeType){case Yr:(n=t.cloneNode(!1)).ownerDocument=e;case on:break;case Kr:r=!0}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,r)for(var o=t.firstChild;o;)n.appendChild(Xn(e,o,r)),o=o.nextSibling;return n}function Qn(e,t,r){var n=new t.constructor(Mr);for(var o in t)if(Or(t,o)){var i=t[o];"object"!=typeof i&&i!=n[o]&&(n[o]=i)}switch(t.childNodes&&(n.childNodes=new un),n.ownerDocument=e,n.nodeType){case Yr:var s=t.attributes,a=n.attributes=new hn,l=s.length;a._ownerElement=n;for(var c=0;c<l;c++)n.setAttributeNode(Qn(e,s.item(c),!0));break;case Kr:r=!0}if(r)for(var u=t.firstChild;u;)n.appendChild(Qn(e,u,r)),u=u.nextSibling;return n}function Zn(e,t,r){e[t]=r}un.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e){for(var t=[],r=0;r<this.length;r++)Jn(this[r],t,e);return t.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},un.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},dn.prototype.item=function(e){return pn(this),this[e]||null},$r(dn,un),hn.prototype={length:0,item:un.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var t=0;t<this.length;){var r=this[t];if(r.nodeName===e)return r;t++}return null},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!==this._ownerElement)throw new Ur(Ur.INUSE_ATTRIBUTE_ERR);var r=this.getNamedItemNS(e.namespaceURI,e.localName);return r===e?e:(fn(this._ownerElement,this,e,r),r)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var t=this.getNamedItem(e);if(!t)throw new Ur(Ur.NOT_FOUND_ERR,e);return gn(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);if(!r)throw new Ur(Ur.NOT_FOUND_ERR,e?e+" : "+t:t);return gn(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){e||(e=null);for(var r=0;r<this.length;){var n=this[r];if(n.localName===t&&n.namespaceURI===e)return n;r++}return null}},hn.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},vn.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var n=Dr.XML_APPLICATION;e===Lr.HTML?n=Dr.XML_XHTML_APPLICATION:e===Lr.SVG&&(n=Dr.XML_SVG_IMAGE);var o=new En(Mr,{contentType:n});if(o.implementation=this,o.childNodes=new un,o.doctype=r||null,r&&o.appendChild(r),t){var i=o.createElementNS(e,t);o.appendChild(i)}return o},createDocumentType:function(e,t,r,n){Hr(e);var o=new Fn(Mr);return o.name=e,o.nodeName=e,o.publicId=t||"",o.systemId=r||"",o.internalSubset=n||"",o.childNodes=new un,o},createHTMLDocument:function(e){var t=new En(Mr,{contentType:Dr.HTML});if(t.implementation=this,t.childNodes=new un,!1!==e){t.doctype=this.createDocumentType("html"),t.doctype.ownerDocument=t,t.appendChild(t.doctype);var r=t.createElement("html");t.appendChild(r);var n=t.createElement("head");if(r.appendChild(n),"string"==typeof e){var o=t.createElement("title");o.appendChild(t.createTextNode(e)),n.appendChild(o)}r.appendChild(t.createElement("body"))}return t}},bn.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var e=this.getRootNode();return e&&e.nodeType===e.DOCUMENT_NODE},contains:function(e){if(!e)return!1;var t=e;do{if(this===t)return!0;t=e.parentNode}while(t);return!1},getRootNode:function(e){var t=this;do{if(!t.parentNode)return t;t=t.parentNode}while(t)},isEqualNode:function(e){if(!e)return!1;if(this.nodeType!==e.nodeType)return!1;switch(this.nodeType){case this.DOCUMENT_TYPE_NODE:if(this.name!==e.name)return!1;if(this.publicId!==e.publicId)return!1;if(this.systemId!==e.systemId)return!1;break;case this.ELEMENT_NODE:if(this.namespaceURI!==e.namespaceURI)return!1;if(this.prefix!==e.prefix)return!1;if(this.localName!==e.localName)return!1;if(this.attributes.length!==e.attributes.length)return!1;for(var t=0;t<this.attributes.length;t++){var r=this.attributes.item(t);if(!r.isEqualNode(e.getAttributeNodeNS(r.namespaceURI,r.localName)))return!1}break;case this.ATTRIBUTE_NODE:if(this.namespaceURI!==e.namespaceURI)return!1;if(this.localName!==e.localName)return!1;if(this.value!==e.value)return!1;break;case this.PROCESSING_INSTRUCTION_NODE:if(this.target!==e.target||this.data!==e.data)return!1;break;case this.TEXT_NODE:case this.COMMENT_NODE:if(this.data!==e.data)return!1}if(this.childNodes.length!==e.childNodes.length)return!1;for(t=0;t<this.childNodes.length;t++)if(!this.childNodes[t].isEqualNode(e.childNodes[t]))return!1;return!0},isSameNode:function(e){return this===e},insertBefore:function(e,t){return Ln(this,e,t)},replaceChild:function(e,t){Ln(this,e,t,Dn),t&&this.removeChild(t)},removeChild:function(e){return _n(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Qn(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==Jr&&e.nodeType==Jr?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r)for(var n in r)if(Or(r,n)&&r[n]===e)return n;t=t.nodeType==Kr?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Or(r,e))return r[e];t=t.nodeType==Kr?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)},compareDocumentPosition:function(e){if(this===e)return 0;var t=e,r=this,n=null,o=null;if(t instanceof kn&&(t=(n=t).ownerElement),r instanceof kn&&(r=(o=r).ownerElement,n&&t&&r===t))for(var i,s=0;i=r.attributes[s];s++){if(i===n)return an.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+an.DOCUMENT_POSITION_PRECEDING;if(i===o)return an.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+an.DOCUMENT_POSITION_FOLLOWING}if(!t||!r||r.ownerDocument!==t.ownerDocument)return an.DOCUMENT_POSITION_DISCONNECTED+an.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(cn(r.ownerDocument)>cn(t.ownerDocument)?an.DOCUMENT_POSITION_FOLLOWING:an.DOCUMENT_POSITION_PRECEDING);if(o&&t===r)return an.DOCUMENT_POSITION_CONTAINS+an.DOCUMENT_POSITION_PRECEDING;if(n&&t===r)return an.DOCUMENT_POSITION_CONTAINED_BY+an.DOCUMENT_POSITION_FOLLOWING;for(var a=[],l=t.parentNode;l;){if(!o&&l===r)return an.DOCUMENT_POSITION_CONTAINED_BY+an.DOCUMENT_POSITION_FOLLOWING;a.push(l),l=l.parentNode}a.reverse();for(var c=[],u=r.parentNode;u;){if(!n&&u===t)return an.DOCUMENT_POSITION_CONTAINS+an.DOCUMENT_POSITION_PRECEDING;c.push(u),u=u.parentNode}c.reverse();var d=ln(a,c);for(var p in d.childNodes){var h=d.childNodes[p];if(h===r)return an.DOCUMENT_POSITION_FOLLOWING;if(h===t)return an.DOCUMENT_POSITION_PRECEDING;if(c.indexOf(h)>=0)return an.DOCUMENT_POSITION_FOLLOWING;if(a.indexOf(h)>=0)return an.DOCUMENT_POSITION_PRECEDING}return 0}},Wr(zr,bn),Wr(zr,bn.prototype),Wr(an,bn),Wr(an,bn.prototype),En.prototype={implementation:null,nodeName:"#document",nodeType:rn,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType===on){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return Ln(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===Yr&&(this.documentElement=e),e},removeChild:function(e){var t=_n(this,e);return t===this.documentElement&&(this.documentElement=null),t},replaceChild:function(e,t){Ln(this,e,t,Dn),e.ownerDocument=this,t&&this.removeChild(t),xn(e)&&(this.documentElement=e)},importNode:function(e,t){return Xn(this,e,t)},getElementById:function(e){var t=null;return wn(this.documentElement,(function(r){if(r.nodeType==Yr&&r.getAttribute("id")==e)return t=r,!0})),t},createElement:function(e){var t=new Mn(Mr);return t.ownerDocument=this,"html"===this.type&&(e=e.toLowerCase()),Ar(this.contentType)&&(t.namespaceURI=Lr.HTML),t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new un,(t.attributes=new hn)._ownerElement=t,t},createDocumentFragment:function(){var e=new Vn(Mr);return e.ownerDocument=this,e.childNodes=new un,e},createTextNode:function(e){var t=new Pn(Mr);return t.ownerDocument=this,t.childNodes=new un,t.appendData(e),t},createComment:function(e){var t=new qn(Mr);return t.ownerDocument=this,t.childNodes=new un,t.appendData(e),t},createCDATASection:function(e){var t=new Bn(Mr);return t.ownerDocument=this,t.childNodes=new un,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new Wn(Mr);return r.ownerDocument=this,r.childNodes=new un,r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){if(!qr.QName_exact.test(e))throw new Ur(Ur.INVALID_CHARACTER_ERR,'invalid character in name "'+e+'"');return"html"===this.type&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var t=new kn(Mr);return t.ownerDocument=this,t.childNodes=new un,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!qr.Name.test(e))throw new Ur(Ur.INVALID_CHARACTER_ERR,'not a valid xml name "'+e+'"');if("html"===this.type)throw new Ur("document is an html document",Pr.NotSupportedError);var t=new Hn(Mr);return t.ownerDocument=this,t.childNodes=new un,t.nodeName=e,t},createElementNS:function(e,t){var r=Vr(e,t),n=new Mn(Mr),o=n.attributes=new hn;return n.childNodes=new un,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],o._ownerElement=n,n},createAttributeNS:function(e,t){var r=Vr(e,t),n=new kn(Mr);return n.ownerDocument=this,n.childNodes=new un,n.nodeName=t,n.name=t,n.specified=!0,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],n}},$r(En,bn),Mn.prototype={nodeType:Yr,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return"html"===this.ownerDocument.type&&this.namespaceURI===Lr.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(e){return!!this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t?t.value:null},getAttributeNode:function(e){return this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase()),this.attributes.getNamedItem(e)},setAttribute:function(e,t){this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());var r=this.getAttributeNode(e);r?r.value=r.nodeValue=""+t:((r=this.ownerDocument._createAttribute(e)).value=r.nodeValue=""+t,this.setAttributeNode(r))},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r?r.value:null},setAttributeNS:function(e,t,r){var n=Vr(e,t)[2],o=this.getAttributeNodeNS(e,n);o?o.value=o.nodeValue=""+r:((o=this.ownerDocument.createAttributeNS(e,t)).value=o.nodeValue=""+r,this.setAttributeNode(o))},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByClassName:function(e){var t=Gr(e);return new dn(this,(function(r){var n=[];return t.length>0&&wn(r,(function(o){if(o!==r&&o.nodeType===Yr){var i=o.getAttribute("class");if(i){var s=e===i;if(!s){var a=Gr(i);s=t.every((l=a,function(e){return l&&-1!==l.indexOf(e)}))}s&&n.push(o)}}var l})),n}))},getElementsByTagName:function(e){var t="html"===(this.nodeType===rn?this:this.ownerDocument).type,r=e.toLowerCase();return new dn(this,(function(n){var o=[];return wn(n,(function(i){i!==n&&i.nodeType===Yr&&(("*"===e||i.getQualifiedName()===(t&&i.namespaceURI===Lr.HTML?r:e))&&o.push(i))})),o}))},getElementsByTagNameNS:function(e,t){return new dn(this,(function(r){var n=[];return wn(r,(function(o){o===r||o.nodeType!==Yr||"*"!==e&&o.namespaceURI!==e||"*"!==t&&o.localName!=t||n.push(o)})),n}))}},En.prototype.getElementsByClassName=Mn.prototype.getElementsByClassName,En.prototype.getElementsByTagName=Mn.prototype.getElementsByTagName,En.prototype.getElementsByTagNameNS=Mn.prototype.getElementsByTagNameNS,$r(Mn,bn),kn.prototype.nodeType=Kr,$r(kn,bn),Un.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},$r(Un,bn),Pn.prototype={nodeName:"#text",nodeType:Jr,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},$r(Pn,Un),qn.prototype={nodeName:"#comment",nodeType:tn},$r(qn,Un),Bn.prototype={nodeName:"#cdata-section",nodeType:Xr},$r(Bn,Pn),Fn.prototype.nodeType=nn,$r(Fn,bn),jn.prototype.nodeType=sn,$r(jn,bn),Gn.prototype.nodeType=Zr,$r(Gn,bn),Hn.prototype.nodeType=Qr,$r(Hn,bn),Vn.prototype.nodeName="#document-fragment",Vn.prototype.nodeType=on,$r(Vn,bn),Wn.prototype.nodeType=en,$r(Wn,Un),$n.prototype.serializeToString=function(e,t){return zn.call(e,t)},bn.prototype.toString=zn;try{if(Object.defineProperty){let e=function(t){switch(t.nodeType){case Yr:case on:var r=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&r.push(e(t)),t=t.nextSibling;return r.join("");default:return t.nodeValue}};Object.defineProperty(dn.prototype,"length",{get:function(){return pn(this),this.$$length}}),Object.defineProperty(bn.prototype,"textContent",{get:function(){return e(this)},set:function(e){switch(this.nodeType){case Yr:case on:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Zn=function(e,t,r){e["$$"+t]=r}}}catch(Xo){}gt._updateLiveList=pn,gt.Attr=kn,gt.CDATASection=Bn,gt.CharacterData=Un,gt.Comment=qn,gt.Document=En,gt.DocumentFragment=Vn,gt.DocumentType=Fn,gt.DOMImplementation=vn,gt.Element=Mn,gt.Entity=Gn,gt.EntityReference=Hn,gt.LiveNodeList=dn,gt.NamedNodeMap=hn,gt.Node=bn,gt.NodeList=un,gt.Notation=jn,gt.Text=Pn,gt.ProcessingInstruction=Wn,gt.XMLSerializer=$n;var eo={},to={};!function(e){var t=Je.freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES}(to);var ro={},no=Je,oo=vt,io=st,so=no.isHTMLEscapableRawTextElement,ao=no.isHTMLMimeType,lo=no.isHTMLRawTextElement,co=no.hasOwn,uo=no.NAMESPACE,po=io.ParseError,ho=io.DOMException;function mo(){}mo.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),wo(t,t=Object.create(null)),function(e,t,r,n,o){var i=ao(n.mimeType);e.indexOf(oo.UNICODE_REPLACEMENT_CHARACTER)>=0&&o.warning("Unicode replacement character detected, source encoding issues?");function s(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}function a(e){var t=";"===e[e.length-1]?e:e+";";if(!i&&t!==e)return o.error("EntityRef: expecting ;"),e;var n=oo.Reference.exec(t);if(!n||n[0].length!==t.length)return o.error("entity not matching Reference production: "+e),e;var a=t.slice(1,-1);return co(r,a)?r[a]:"#"===a.charAt(0)?s(parseInt(a.substring(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function l(t){if(t>g){var r=e.substring(g,t).replace(fo,a);p&&h(g),n.characters(r,0,t-g),g=t}}var c=0,u=0,d=/\r\n?|\n|$/g,p=n.locator;function h(t,r){for(;t>=u&&(r=d.exec(e));)c=u,u=r.index+r[0].length,p.lineNumber++;p.columnNumber=t-c+1}var m=[{currentNSMap:t}],f=[],g=0;for(;;){try{var v=e.indexOf("<",g);if(v<0){if(!i&&f.length>0)return o.fatalError("unclosed xml tag(s): "+f.join(", "));if(!e.substring(g).match(/^\s*$/)){var b=n.doc,y=b.createTextNode(e.substring(g));if(b.documentElement)return o.error("Extra content at the end of the document");b.appendChild(y),n.currentElement=y}return}if(v>g){var w=e.substring(g,v);i||0!==f.length||(w=w.replace(new RegExp(oo.S_OPT.source,"g"),""))&&o.error("Unexpected content outside root element: '"+w+"'"),l(v)}switch(e.charAt(v+1)){case"/":var E=e.indexOf(">",v+2),T=e.substring(v+2,E>0?E:void 0);if(!T)return o.fatalError("end tag name missing");var N=E>0&&oo.reg("^",oo.QName_group,oo.S_OPT,"$").exec(T);if(!N)return o.fatalError('end tag name contains invalid characters: "'+T+'"');if(!n.currentElement&&!n.doc.documentElement)return;var _=f[f.length-1]||n.currentElement.tagName||n.doc.documentElement.tagName||"";if(_!==N[1]){var S=N[1].toLowerCase();if(!i||_.toLowerCase()!==S)return o.fatalError('Opening and ending tag mismatch: "'+_+'" != "'+T+'"')}var x=m.pop();f.pop();var A=x.localNSMap;if(n.endElement(x.uri,x.localName,_),A)for(var O in A)co(A,O)&&n.endPrefixMapping(O);E++;break;case"?":p&&h(v),E=No(e,v,n,o);break;case"!":p&&h(v),E=To(e,v,n,o,i);break;default:p&&h(v);var R=new _o,I=m[m.length-1].currentNSMap,C=(E=vo(e,v,R,I,a,o,i),R.length);if(R.closed||(i&&no.isHTMLVoidElement(R.tagName)?R.closed=!0:f.push(R.tagName)),p&&C){for(var D=go(p,{}),L=0;L<C;L++){var M=R[L];h(M.offset),M.locator=go(p,{})}n.locator=D,bo(R,n,I)&&m.push(R),n.locator=p}else bo(R,n,I)&&m.push(R);i&&!R.closed?E=yo(e,E,R.tagName,a,n):E++}}catch(Xo){if(Xo instanceof po)throw Xo;if(Xo instanceof ho)throw new po(Xo.name+": "+Xo.message,n.locator,Xo);o.error("element parse error: "+Xo),E=-1}E>g?g=E:l(Math.max(v,g)+1)}}(e,t,r,n,this.errorHandler),n.endDocument()}};var fo=/&#?\w+;?/g;function go(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function vo(e,t,r,n,o,i,s){function a(e,t,n){return co(r.attributeNames,e)?i.fatalError("Attribute "+e+" redefined"):!s&&t.indexOf("<")>=0?i.fatalError("Unescaped '<' not allowed in attributes values"):void r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(fo,o),n)}for(var l,c=++t,u=0;;){var d=e.charAt(c);switch(d){case"=":if(1===u)l=e.slice(t,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(i.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,!((c=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");a(l,p=e.slice(t,c),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');a(l,p=e.slice(t,c),t),i.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),0==u&&r.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(p=e.slice(t,c)).slice(-1)&&(r.closed=!0,p=p.slice(0,-1));case 2:2===u&&(p=l),4==u?(i.warning('attribute "'+p+'" missed quot(")!'),a(l,p,t)):(s||i.warning('attribute "'+p+'" missed value!! "'+p+'" instead!!'),a(p,p,t));break;case 3:if(!s)return i.fatalError("AttValue: ' or \" expected")}return c;case"":d=" ";default:if(d<=" ")switch(u){case 0:r.setTagName(e.slice(t,c)),u=6;break;case 1:l=e.slice(t,c),u=2;break;case 4:var p=e.slice(t,c);i.warning('attribute "'+p+'" missed quot(")!!'),a(l,p,t);case 5:u=6}else switch(u){case 2:s||i.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),a(l,l,t),t=c,u=1;break;case 5:i.warning('attribute space is required"'+l+'"!!');case 6:u=1,t=c;break;case 3:u=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function bo(e,t,r){for(var n=e.tagName,o=null,i=e.length;i--;){var s=e[i],a=s.qName,l=s.value;if((p=a.indexOf(":"))>0)var c=s.prefix=a.slice(0,p),u=a.slice(p+1),d="xmlns"===c&&u;else u=a,c=null,d="xmlns"===a&&"";s.localName=u,!1!==d&&(null==o&&(o=Object.create(null),wo(r,r=Object.create(null))),r[d]=o[d]=l,s.uri=uo.XMLNS,t.startPrefixMapping(d,l))}for(i=e.length;i--;)(s=e[i]).prefix&&("xml"===s.prefix&&(s.uri=uo.XML),"xmlns"!==s.prefix&&(s.uri=r[s.prefix]));var p;(p=n.indexOf(":"))>0?(c=e.prefix=n.slice(0,p),u=e.localName=n.slice(p+1)):(c=null,u=e.localName=n);var h=e.uri=r[c||""];if(t.startElement(h,u,n,e),!e.closed)return e.currentNSMap=r,e.localNSMap=o,!0;if(t.endElement(h,u,n),o)for(c in o)co(o,c)&&t.endPrefixMapping(c)}function yo(e,t,r,n,o){var i=so(r);if(i||lo(r)){var s=e.indexOf("</"+r+">",t),a=e.substring(t+1,s);return i&&(a=a.replace(fo,n)),o.characters(a,0,a.length),s}return t+1}function wo(e,t){for(var r in e)co(e,r)&&(t[r]=e[r])}function Eo(e,t){var r=t;function n(t){return t=t||0,e.charAt(r+t)}function o(e){r+=e=e||1}function i(){return e.substring(r)}return{char:n,getIndex:function(){return r},getMatch:function(e){var t=oo.reg("^",e).exec(i());return t?(o(t[0].length),t[0]):null},getSource:function(){return e},skip:o,skipBlanks:function(){for(var t=0;r<e.length;){var i=n();if(" "!==i&&"\n"!==i&&"\t"!==i&&"\r"!==i)return t;t++,o()}return-1},substringFromIndex:i,substringStartsWith:function(t){return e.substring(r,r+t.length)===t},substringStartsWithCaseInsensitive:function(t){return e.substring(r,r+t.length).toUpperCase()===t.toUpperCase()}}}function To(e,t,r,n,o){var i=Eo(e,t);switch(o?i.char(2).toUpperCase():i.char(2)){case"-":var s=i.getMatch(oo.Comment);return s?(r.comment(s,oo.COMMENT_START.length,s.length-oo.COMMENT_START.length-oo.COMMENT_END.length),i.getIndex()):n.fatalError("comment is not well-formed at position "+i.getIndex());case"[":var a=i.getMatch(oo.CDSect);return a?o||r.currentElement?(r.startCDATA(),r.characters(a,oo.CDATA_START.length,a.length-oo.CDATA_START.length-oo.CDATA_END.length),r.endCDATA(),i.getIndex()):n.fatalError("CDATA outside of element"):n.fatalError("Invalid CDATA starting at position "+t);case"D":if(r.doc&&r.doc.documentElement)return n.fatalError("Doctype not allowed inside or after documentElement at position "+i.getIndex());if(o?!i.substringStartsWithCaseInsensitive(oo.DOCTYPE_DECL_START):!i.substringStartsWith(oo.DOCTYPE_DECL_START))return n.fatalError("Expected "+oo.DOCTYPE_DECL_START+" at position "+i.getIndex());if(i.skip(oo.DOCTYPE_DECL_START.length),i.skipBlanks()<1)return n.fatalError("Expected whitespace after "+oo.DOCTYPE_DECL_START+" at position "+i.getIndex());var l={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(l.name=i.getMatch(oo.Name),!l.name)return n.fatalError("doctype name missing or contains unexpected characters at position "+i.getIndex());if(o&&"html"!==l.name.toLowerCase()&&n.warning("Unexpected DOCTYPE in HTML document at position "+i.getIndex()),i.skipBlanks(),i.substringStartsWith(oo.PUBLIC)||i.substringStartsWith(oo.SYSTEM)){var c=oo.ExternalID_match.exec(i.substringFromIndex());if(!c)return n.fatalError("doctype external id is not well-formed at position "+i.getIndex());void 0!==c.groups.SystemLiteralOnly?l.systemId=c.groups.SystemLiteralOnly:(l.systemId=c.groups.SystemLiteral,l.publicId=c.groups.PubidLiteral),i.skip(c[0].length)}else if(o&&i.substringStartsWithCaseInsensitive(oo.SYSTEM)){if(i.skip(oo.SYSTEM.length),i.skipBlanks()<1)return n.fatalError("Expected whitespace after "+oo.SYSTEM+" at position "+i.getIndex());if(l.systemId=i.getMatch(oo.ABOUT_LEGACY_COMPAT_SystemLiteral),!l.systemId)return n.fatalError("Expected "+oo.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+oo.SYSTEM+" at position "+i.getIndex())}return o&&l.systemId&&!oo.ABOUT_LEGACY_COMPAT_SystemLiteral.test(l.systemId)&&n.warning("Unexpected doctype.systemId in HTML document at position "+i.getIndex()),o||(i.skipBlanks(),l.internalSubset=function(e,t){var r,n,o,i=e.getSource();if("["===e.char()){e.skip(1);for(var s=e.getIndex();e.getIndex()<i.length;){if(e.skipBlanks(),"]"===e.char()){var a=i.substring(s,e.getIndex());return e.skip(1),a}var l=null;if("<"===e.char()&&"!"===e.char(1))switch(e.char(2)){case"E":"L"===e.char(3)?l=e.getMatch(oo.elementdecl):"N"===e.char(3)&&(l=e.getMatch(oo.EntityDecl));break;case"A":l=e.getMatch(oo.AttlistDecl);break;case"N":l=e.getMatch(oo.NotationDecl);break;case"-":l=e.getMatch(oo.Comment)}else if("<"===e.char()&&"?"===e.char(1))r=e,n=t,o=void 0,l=(o=oo.PI.exec(r.substringFromIndex()))?"xml"===o[1].toLowerCase()?n.fatalError("xml declaration is only allowed at the start of the document, but found at position "+r.getIndex()):(r.skip(o[0].length),o[0]):n.fatalError("processing instruction is not well-formed at position "+r.getIndex());else{if("%"!==e.char())return t.fatalError("Error detected in Markup declaration");l=e.getMatch(oo.PEReference)}if(!l)return t.fatalError("Error in internal subset at position "+e.getIndex())}return t.fatalError("doctype internal subset is not well-formed, missing ]")}}(i,n)),i.skipBlanks(),">"!==i.char()?n.fatalError("doctype not terminated with > at position "+i.getIndex()):(i.skip(1),r.startDTD(l.name,l.publicId,l.systemId,l.internalSubset),r.endDTD(),i.getIndex());default:return n.fatalError('Not well-formed XML starting with "<!" at position '+t)}}function No(e,t,r,n){var o=e.substring(t).match(oo.PI);if(!o)return n.fatalError("Invalid processing instruction starting at position "+t);if("xml"===o[1].toLowerCase()){if(t>0)return n.fatalError("processing instruction at position "+t+" is an xml declaration which is only at the start of the document");if(!oo.XMLDecl.test(e.substring(t)))return n.fatalError("xml declaration is not well-formed")}return r.processingInstruction(o[1],o[2]),t+o[0].length}function _o(){this.attributeNames=Object.create(null)}_o.prototype={setTagName:function(e){if(!oo.QName_exact.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!oo.QName_exact.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},ro.XMLReader=mo,ro.parseUtils=Eo,ro.parseDoctypeCommentOrCData=To;var So=Je,xo=st,Ao=to,Oo=ro,Ro=gt.DOMImplementation,Io=So.hasDefaultHTMLNamespace,Co=So.isHTMLMimeType,Do=So.isValidMimeType,Lo=So.MIME_TYPE,Mo=So.NAMESPACE,ko=xo.ParseError,Uo=Oo.XMLReader;function Po(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028\u2029]/g,"\n")}function qo(e){if(void 0===(e=e||{}).locator&&(e.locator=!0),this.assign=e.assign||So.assign,this.domHandler=e.domHandler||Bo,this.onError=e.onError||e.errorHandler,e.errorHandler&&"function"!=typeof e.errorHandler)throw new TypeError("errorHandler object is no longer supported, switch to onError!");e.errorHandler&&e.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=e.normalizeLineEndings||Po,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}function Bo(e){var t=e||{};this.mimeType=t.mimeType||Lo.XML_APPLICATION,this.defaultNamespace=t.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=t.onError}function Fo(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function jo(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function Go(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}qo.prototype.parseFromString=function(e,t){if(!Do(t))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+t+'" is not valid.');var r=this.assign(Object.create(null),this.xmlns),n=Ao.XML_ENTITIES,o=r[""]||null;Io(t)?(n=Ao.HTML_ENTITIES,o=Mo.HTML):t===Lo.XML_SVG_IMAGE&&(o=Mo.SVG),r[""]=o,r.xml=r.xml||Mo.XML;var i=new this.domHandler({mimeType:t,defaultNamespace:o,onError:this.onError}),s=this.locator?{}:void 0;this.locator&&i.setDocumentLocator(s);var a=new Uo;return a.errorHandler=i,a.domBuilder=i,!So.isHTMLMimeType(t)&&"string"!=typeof e&&a.errorHandler.fatalError("source is not a string"),a.parse(this.normalizeLineEndings(String(e)),r,n),i.doc.documentElement||a.errorHandler.fatalError("missing root element"),i.doc},Bo.prototype={startDocument:function(){var e=new Ro;this.doc=Co(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,"")},startElement:function(e,t,r,n){var o=this.doc,i=o.createElementNS(e,r||t),s=n.length;Go(this,i),this.currentElement=i,this.locator&&Fo(this.locator,i);for(var a=0;a<s;a++){e=n.getURI(a);var l=n.getValue(a),c=(r=n.getQName(a),o.createAttributeNS(e,r));this.locator&&Fo(n.getLocator(a),c),c.value=c.nodeValue=l,i.setAttributeNode(c)}},endElement:function(e,t,r){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&Fo(this.locator,r),Go(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=jo.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&Fo(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,r){e=jo.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&Fo(this.locator,n),Go(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r,n){var o=this.doc.implementation;if(o&&o.createDocumentType){var i=o.createDocumentType(e,t,r,n);this.locator&&Fo(this.locator,i),Go(this,i),this.doc.doctype=i}},reportError:function(e,t){if("function"==typeof this.onError)try{this.onError(e,t,this)}catch(Xo){throw new ko("Reporting "+e+' "'+t+'" caused '+Xo,this.locator)}else console.error("[xmldom "+e+"]\t"+t,function(e){if(e)return"\n@#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}(this.locator))},warning:function(e){this.reportError("warning",e)},error:function(e){this.reportError("error",e)},fatalError:function(e){throw this.reportError("fatalError",e),new ko(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){Bo.prototype[e]=function(){return null}})),eo.__DOMHandler=Bo,eo.DOMParser=qo,eo.normalizeLineEndings=Po,eo.onErrorStopParsing=function(e){if("error"===e)throw"onErrorStopParsing"},eo.onWarningStopParsing=function(){throw"onWarningStopParsing"};var Ho=Je;Ho.assign,Ho.hasDefaultHTMLNamespace,Ho.isHTMLMimeType,Ho.isValidMimeType,Ho.MIME_TYPE,Ho.NAMESPACE;var Vo=eo.DOMParser;function Wo(e){const t=e.coordinates,r=t[0],n=t[t.length-1];return{type:"Polygon",coordinates:[r[0]===n[0]&&r[1]===n[1]?t:[...t,r]]}}const $o=Object.freeze(Object.defineProperty({__proto__:null,lineStringToPolygon:Wo,osmStringToGeojson:function(e){const t=(new Vo).parseFromString(e,"text/xml");return Ke(t)}},Symbol.toStringTag,{value:"Module"}));const zo=class e{static parsePointProperties(e){return e.properties?{...e.id&&{externalId:e.id},...l.OsmTagsUtils.elementName(e.properties)&&{name:l.OsmTagsUtils.elementName(e.properties)},...l.OsmTagsUtils.isGate(e.properties)&&{isGate:!0},...l.OsmTagsUtils.isSubwayEntrance(e.properties)&&{isSubwayEntrance:!0},...l.OsmTagsUtils.getRef(e.properties)&&{subwayEntrsanceRef:l.OsmTagsUtils.getRef(e.properties)},...l.OsmTagsUtils.isElevator(e.properties)&&{isElevator:!0},...l.OsmTagsUtils.isTurnstile(e.properties)&&{isTurnstile:!0}}:{...e.id&&{externalId:e.id}}}static parseLineStringProperties(e){return e.properties?{...e.properties.id&&{externalId:e.properties.id},...e.id&&{externalId:e.id},...l.OsmTagsUtils.elementName(e.properties)&&{name:l.OsmTagsUtils.elementName(e.properties)},...l.OsmTagsUtils.isOneway(e.properties)&&{isOneway:!0},...l.OsmTagsUtils.areStairs(e.properties)&&{areStairs:!0},...l.OsmTagsUtils.isElevator(e.properties)&&{isElevator:!0},...l.OsmTagsUtils.isEscalator(e.properties)&&{areEscalators:!0},...l.OsmTagsUtils.isMovingWalkway(e.properties)&&{isMovingWalkway:!0},...l.OsmTagsUtils.needTicket(e.properties)&&{needTicket:!0},...l.OsmTagsUtils.getIncline(e.properties)&&{incline:l.OsmTagsUtils.getIncline(e.properties)},...l.OsmTagsUtils.getWheelchair(e.properties)&&{wheelchair:l.OsmTagsUtils.getWheelchair(e.properties)},...l.OsmTagsUtils.getSmoothness(e.properties)&&{smoothness:l.OsmTagsUtils.getSmoothness(e.properties)},...l.OsmTagsUtils.getSurface(e.properties)&&{surface:l.OsmTagsUtils.getSurface(e.properties)}}:{...e.id&&{externalId:e.id}}}static createGraphFromGeojsonString(e){const t=JSON.parse(e);return this.createGraphFromGeojson(t)}static createGraphFromGeojson(t,n=e.DEFAULT_FEATURE_SELECTOR){const o=function(e){return"FeatureCollection"===e.type?e.features:"Feature"===e.type?[e]:[{type:"Feature",geometry:e,properties:{}}]}(t),i=o.filter(n),s=[],a=[];let c=0;const d=(e,t)=>{const n=new r.Coordinates(e[1],e[0],null,t);let o=a.find((e=>!!e.coords.equalsWithoutLevel(n)&&(!!r.Level.intersect(e.coords.level,t)||(null===e.coords.level||null===t))))||null;return o?(r.Level.equals(o.coords.level,t)||(o.coords.level=r.Level.intersection(o.coords.level,t),null===o.coords.level&&(o.coords.level=t)),o):(o=new p(n),o.id=c++,a.push(o),o)};i.filter((e=>"LineString"===e.geometry.type)).forEach((e=>{const t=e.geometry,n=e.properties||{},o=this.parseLineStringProperties(e),i="level"in n?n.level:null,a=e=>{for(let r=1;r<t.coordinates.length;r++){let i=d(t.coordinates[r-1],e),a=d(t.coordinates[r],e);if(l.OsmTagsUtils.isOnewayBackward(n)){const e=a;a=i,i=e}const c=new u(i,a,o);s.push(c)}};a(r.Level.fromString(i)),"repeat_on"in n&&n.repeat_on.split(";").map(r.Level.fromString).forEach(a)}));const m=[],f=[];o.filter((e=>"Point"===e.geometry.type)).forEach((e=>{const t=e.properties||{},n=e.geometry,o="level"in t?t.level:null,i=r.Level.fromString(o),s=new r.Coordinates(n.coordinates[1],n.coordinates[0],null,i),c=a.filter((e=>!!r.Coordinates.equalsWithoutLevel(e.coords,s)&&(!!r.Level.intersect(e.coords.level,i)||(null===e.coords.level||null===i))));if(c.forEach((t=>{t.properties=this.parsePointProperties(e),null!==i&&(t.coords.level=r.Level.union(t.coords.level,i))})),l.OsmTagsUtils.isElevator(t)){const e=((e,t)=>{const n=new r.Coordinates(e[1],e[0],null,t),o=[];return a.forEach((e=>{r.Coordinates.equalsWithoutLevel(e.coords,n)&&r.Level.intersect(e.coords.level,t)&&o.push(e)})),o})(n.coordinates,i);e.length>0&&m.push({vertices:e,props:{name:t.name,isElevator:!0,externalId:t.id}})}l.OsmTagsUtils.isRoutingBoundsEntryPoint(t)&&c.forEach((e=>{f.push(e)}))})),o.filter((e=>"Polygon"===e.geometry.type&&e.properties&&l.OsmTagsUtils.isElevator(e.properties))).forEach((e=>{var t,n;const o=e,i=o.geometry.coordinates[0].map((e=>a.filter((t=>t.coords.equalsWithoutLevel(new r.Coordinates(e[1],e[0],null,t.coords.level)))))).flat(),l=o.geometry.coordinates[0].slice(0,-1),c=l.reduce(((e,t)=>[e[0]+t[0],e[1]+t[1]]),[0,0]).map((e=>e/l.length)),p=i.reduce(((e,t)=>r.Level.union(e,t.coords.level)),null),h=new r.Coordinates(c[1],c[0],null,p),f=[];i.forEach((t=>{var r;const n=d([h.lng,h.lat],t.coords.level);s.push(new u(n,t,{externalId:null==(r=e.properties)?void 0:r.id})),f.push(n)})),m.push({vertices:f,props:{name:null==(t=e.properties)?void 0:t.name,isElevator:!0,externalId:null==(n=e.properties)?void 0:n.id}})})),m.forEach((({vertices:e,props:t})=>{for(let r=0;r<e.length;r++)for(let n=r+1;n<e.length;n++)s.push(new u(e[r],e[n],t));if(1===e.length&&null===e[0].coords.level){const r=e[0],n=s.filter((e=>e.vertex1===r||e.vertex2===r));if(n.length>1){const e=[r];for(let t=1;t<n.length;t++){const o=new p(r.coords,r.properties);o.id=c++,a.push(o),n[t].vertex1===r?n[t].vertex1=o:n[t].vertex2=o,e.push(o)}for(let r=0;r<e.length;r++)for(let n=r+1;n<e.length;n++)s.push(new u(e[r],e[n],t))}}}));let g={type:"MultiPolygon",coordinates:[]};return o.filter((e=>e.properties&&l.OsmTagsUtils.isRoutingBounds(e.properties))).forEach((e=>{if("LineString"===e.geometry.type){const t=Wo(e.geometry);g.coordinates.push(t.coordinates)}else"Polygon"===e.geometry.type?g.coordinates.push(e.geometry.coordinates):"MultiPolygon"===e.geometry.type&&g.coordinates.push(...e.geometry.coordinates)})),new h(a,s,g.coordinates.length>0?g:void 0,f)}};t(zo,"RESTRICTED_PEDESTRIANS_HIGHWAYS",["motorway","motorway_link"]),t(zo,"DEFAULT_FEATURE_SELECTOR",(e=>{if(!e.properties)return!1;if("LineString"===e.geometry.type){if("yes"===e.properties.foot)return!0;if(["no","private"].includes(e.properties.access))return!1;if("highway"in e.properties)return!zo.RESTRICTED_PEDESTRIANS_HIGHWAYS.includes(e.properties.highway);if("sidewalk"===e.properties.footway)return!0}return!("elevator"!==e.properties.highway||!["Point","Polygon"].includes(e.type))}));let Yo=zo;const Ko=class e{static parseNodeProperties(e){return{...e.id&&{externalId:e.id},...l.OsmTagsUtils.elementName(e.tags)&&{name:l.OsmTagsUtils.elementName(e.tags)},...l.OsmTagsUtils.isGate(e.tags)&&{isGate:!0},...l.OsmTagsUtils.isSubwayEntrance(e.tags)&&{isSubwayEntrance:!0},...l.OsmTagsUtils.getRef(e.tags)&&{subwayEntrsanceRef:l.OsmTagsUtils.getRef(e.tags)},...l.OsmTagsUtils.isTurnstile(e.tags)&&{isTurnstile:!0}}}static parseWayProperties(e){return{...e.id&&{externalId:e.id},...l.OsmTagsUtils.elementName(e.tags)&&{name:l.OsmTagsUtils.elementName(e.tags)},...l.OsmTagsUtils.isOneway(e.tags)&&{isOneway:l.OsmTagsUtils.isOneway(e.tags)},...l.OsmTagsUtils.areStairs(e.tags)&&{areStairs:l.OsmTagsUtils.areStairs(e.tags)},...l.OsmTagsUtils.isElevator(e.tags)&&{isElevator:l.OsmTagsUtils.isElevator(e.tags)},...l.OsmTagsUtils.isEscalator(e.tags)&&{areEscalators:l.OsmTagsUtils.isEscalator(e.tags)},...l.OsmTagsUtils.isMovingWalkway(e.tags)&&{isMovingWalkway:l.OsmTagsUtils.isMovingWalkway(e.tags)},...l.OsmTagsUtils.needTicket(e.tags)&&{needTicket:l.OsmTagsUtils.needTicket(e.tags)},...l.OsmTagsUtils.getIncline(e.tags)&&{incline:l.OsmTagsUtils.getIncline(e.tags)},...l.OsmTagsUtils.getWheelchair(e.tags)&&{wheelchair:l.OsmTagsUtils.getWheelchair(e.tags)},...l.OsmTagsUtils.getSmoothness(e.tags)&&{smoothness:l.OsmTagsUtils.getSmoothness(e.tags)},...l.OsmTagsUtils.getSurface(e.tags)&&{surface:l.OsmTagsUtils.getSurface(e.tags)}}}static createGraphFromOsmXmlString(e){const t=l.OsmParser.parseOsmXmlString(e);return this.createGraphFromOsmModel(t)}static createGraphFromOsmModel(t,n=e.DEFAULT_WAY_SELECTOR,o){const i=[],s=[],a=[],c=new Set,d=(e,t)=>{var n;let o=(null==(n=s.find((([n,o])=>n===e.id&&(!!r.Level.intersect(o.coords.level,t)||(null===o.coords.level||null===t)))))?void 0:n[1])||null;if(o)return r.Level.equals(o.coords.level,t)||(o.coords.level=r.Level.intersection(o.coords.level,t),null===o.coords.level&&(o.coords.level=t)),o;const i=new r.Coordinates(e.coords.lat,e.coords.lng,null,t);if(o=new p(i,this.parseNodeProperties(e)),s.push([e.id,o]),l.OsmTagsUtils.isElevator(e.tags)){let t=a.find((([t])=>e.id===t));t||(t=[e.id,e.name,[]],a.push(t)),t[2].push(o)}return l.OsmTagsUtils.isRoutingBoundsEntryPoint(e.tags)&&c.add(o),o};t.ways.forEach((e=>{if(!n(e))return;const t=this.parseWayProperties(e),o=r=>{for(let n=1;n<e.nodes.length;n++){let o=d(e.nodes[n-1],r),s=d(e.nodes[n],r);if(l.OsmTagsUtils.isOnewayBackward(e.tags)){const e=s;s=o,o=e}const a=new u(o,s,t);i.push(a)}};o(e.level),e.tags.repeat_on&&e.tags.repeat_on.split(";").map(r.Level.fromString).forEach(o)}));let m=-1;t.ways.filter((e=>l.OsmTagsUtils.isElevator(e.tags)&&e.isGeometryClosed)).forEach((e=>{const t=e.nodes.map((e=>s.filter((([t])=>t===e.id)).map((e=>e[1])))).flat(),n=e.nodes.reduce(((e,t)=>[e[0]+t.coords.lat,e[1]+t.coords.lng]),[0,0]).map((t=>t/e.nodes.length)),o=t.reduce(((e,t)=>r.Level.union(e,t.coords.level)),null),a=new r.Coordinates(n[0],n[1],null,o),c=new l.OsmNode(m--,a,{highway:"elevator"});t.forEach((t=>{const r=d(c,t.coords.level);i.push(new u(r,t,{externalId:e.id}))}))})),a.forEach((([e,t,r])=>{const n={name:t,isElevator:!0,externalId:e};for(let o=0;o<r.length;o++)for(let e=o+1;e<r.length;e++)i.push(new u(r[o],r[e],n));if(1===r.length&&null===r[0].coords.level){const e=r[0],t=i.filter((t=>t.vertex1===e||t.vertex2===e));if(t.length>1){const r=[e];for(let n=1;n<t.length;n++){const o=new p(e.coords,e.properties);s.push([e.id,o]),t[n].vertex1===e?t[n].vertex1=o:t[n].vertex2=o,r.push(o)}for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)i.push(new u(r[e],r[t],n))}}}));let f={type:"MultiPolygon",coordinates:[]};return t.ways.filter((e=>l.OsmTagsUtils.isRoutingBounds(e.tags))).map((e=>e.getGeoJsonPolygon())).forEach((e=>e&&f.coordinates.push(e.coordinates))),t.relations.filter((e=>l.OsmTagsUtils.isRoutingBounds(e.tags))).map((e=>e.getGeoJsonPolygon())).forEach((e=>e&&f.coordinates.push(e.coordinates))),null==o||o(s),new h(s.map((e=>e[1])),i,f.coordinates.length>0?f:void 0,Array.from(c))}};t(Ko,"RESTRICTED_PEDESTRIANS_HIGHWAYS",["motorway","motorway_link"]),t(Ko,"DEFAULT_WAY_SELECTOR",(e=>{if("yes"===e.tags.area)return!1;if("yes"===e.tags.foot)return!0;if(e.tags.access&&["no","private"].includes(e.tags.access))return!1;const t="elevator"===e.tags.highway&&e.isGeometryClosed;return e.tags.highway&&!Ko.RESTRICTED_PEDESTRIANS_HIGHWAYS.includes(e.tags.highway)&&!t||"sidewalk"===e.tags.footway||"platform"===e.tags.public_transport||"platform"===e.tags.railway}));let Jo=Ko;exports.CitywayRemoteRouter=ue,exports.CustomGraphMap=qe,exports.CustomGraphMapTester=class{static createReportFromOsmXmlString(e){let t;try{t=l.OsmParser.parseOsmXmlString(e)}catch(Xo){return{errors:[{type:"could-not-parse-file",details:Xo instanceof Error?Xo.message:"Unknown error"}]}}const r=new qe(Jo.createGraphFromOsmModel(t));return this.createReportFromCustomGraphMap(r)}static createReportFromGeoJsonString(e){let t;try{t=JSON.parse(e)}catch(Xo){return{errors:[{type:"could-not-parse-file",details:Xo instanceof Error?Xo.message:"Unknown error"}]}}return this.createReportFromGeoJson(t)}static createReportFromGeoJson(e){const t=new qe(Yo.createGraphFromGeojson(e));return this.createReportFromCustomGraphMap(t)}static createReportFromCustomGraphMap(e){const t=e.graph,r=[];t.routingBounds||r.push({type:"routing-bounds-not-found"}),0===t.routingBoundsEntryPoints.length&&r.push({type:"routing-bounds-entry-points-not-found"});const n=e.router.calculateComponents();return n.length>1&&r.push({type:"multiple-graph-components",data:n}),{customGraphMap:e,errors:r}}static reportToJson(e){var t,r;return{graph:null==(r=null==(t=e.customGraphMap)?void 0:t.graph)?void 0:r.toJson(),errors:e.errors.map((e=>"multiple-graph-components"===e.type?{type:e.type,data:e.data.map((e=>e.map((e=>e.id))))}:("routing-bounds-entry-points-not-found"===e.type||e.type,{type:e.type})))}}},exports.DeutscheBahnRemoteRouter=ve,exports.Edge=u,exports.GeoJsonGraphUtils=Yo,exports.GeoJsonUtils=$o,exports.GeoveloRemoteRouter=Te,exports.Graph=h,exports.GraphProjection=d,exports.GraphRoute=w,exports.GraphRouter=J,exports.GraphRouterOptionsBuilder=$,exports.IdfmRemoteRouter=Oe,exports.Itinerary=_,exports.ItineraryInfoManager=class{constructor(e=null){t(this,"_itinerary",null),t(this,"_graph",null),t(this,"_steps",[]),t(this,"_coordsNextStep",[]),t(this,"_coordsPreviousStep",[]),t(this,"_coordsDistanceTraveled",[]),t(this,"_coordsLeg",[]),t(this,"_itineraryDistanceWithoutProjections",0),this.itinerary=e}get itinerary(){return this._itinerary}set itinerary(e){if(null===e)return void(this._itinerary=null);this._itinerary=e,this._steps=e.steps,this._graph=e.toGraph(),this._coordsNextStep=new Array(e.coords.length),this._coordsPreviousStep=new Array(e.coords.length),this._coordsDistanceTraveled=new Array(e.coords.length),this._coordsLeg=new Array(e.coords.length),this._itineraryDistanceWithoutProjections=e.distance;let t=0,r=null,n=this._steps[0],o=0;e.coords.forEach(((i,s,a)=>{0!==s&&(o+=a[s-1].distanceTo(i)),this._coordsNextStep[s]=n,this._coordsPreviousStep[s]=r,this._coordsDistanceTraveled[s]=o,this._coordsLeg[s]=e.legs.find((e=>e.coords.includes(i))),t<this._steps.length&&this._steps[t].coords.equals(i)&&(r=this._steps[t],n=t===this._steps.length-1?null:this._steps[t+1],t++)}))}getInfo(e){if(!this._itinerary||!this._graph)return null;const t=this._graph.getProjection(e);if(!t)return null;let r=null;if(t.nearestElement instanceof p){const e=this._itinerary.coords.findIndex((e=>t.nearestElement.coords===e));if(-1===e)throw new Error("ItineraryInfoManager: could not find projection in itinerary (Node)");const n=this._coordsDistanceTraveled[e],o=n,i=this._itineraryDistanceWithoutProjections-n,s=t.distanceFromNearestElement+i,a=o/(o+s),l=1-a;r={nextStep:this._coordsNextStep[e],previousStep:this._coordsPreviousStep[e],projection:t,leg:this._coordsLeg[e],traveledDistance:n,remainingDistance:s,traveledPercentage:a,remainingPercentage:l}}else if(t.nearestElement instanceof u){let e=t.nearestElement.vertex1.coords,n=this._itinerary.coords.findIndex((t=>e===t));if(-1===n)throw new Error("ItineraryInfoManager: could not find projection in itinerary (Edge)");n!==this._itinerary.coords.length-1&&this._itinerary.coords[n+1]===t.nearestElement.vertex2.coords||(e=t.nearestElement.vertex2.coords,n--);const o=this._coordsDistanceTraveled[n]+t.coords.distanceTo(e),i=o,s=this._itineraryDistanceWithoutProjections-o,a=t.distanceFromNearestElement+s,l=i/(i+a),c=1-l;r={nextStep:this._coordsNextStep[n+1],previousStep:this._coordsPreviousStep[n+1],projection:t,leg:this._coordsLeg[n+1],traveledDistance:i,remainingDistance:a,traveledPercentage:l,remainingPercentage:c}}return r}},exports.Leg=N,exports.NavitiaRemoteRouter=ge,exports.NoRouteFoundError=X,exports.OsmGraphUtils=Jo,exports.OsrmRemoteRouter=Ie,exports.OtpRemoteRouter=Me,exports.RemoteRouterManager=Pe,exports.RemoteRoutingError=re,exports.RoutingError=ee,exports.StatusCode=Z,exports.Vertex=p,exports.WemapMultiRemoteRouter=ke,exports.WemapMultiRouter=class{constructor(){t(this,"maps",[])}get rname(){return"wemap-multi"}addIOMap(e){this.maps.push(e)}removeIOMap(e){this.maps=this.maps.filter((t=>t!==e))}removeAllMaps(){this.maps=[]}getMapByName(e){return this.maps.find((t=>t.name===e))}async getItineraries(e,t=[],r=this.maps){const{origin:n,destination:o}=e;t=t.filter((({name:e})=>e!==ke.rname))||[];const i=r;if(!i.length)return await Pe.getItinerariesWithFallback(e,t);let s,a;const l=i.find((e=>e.isPointInside(n))),c=$.fromJson(e.itineraryModifiers||{});if(l&&l.isPointInside(o)){if(s=l.getRouteInsideMap(n,o,c),!s)throw te.notFound(l.name||"");return[_.fromGraphRoute(s)]}const u=i.find((e=>e.isPointInside(o)));let d;if(!l&&!u)return await Pe.getItinerariesWithFallback(e,t);if(l&&!u){if(!l.entryPoints.length)throw te.notFound(l.name||"",`A map including the "origin" but the "destination" has been \n found (${l.name}), however, no "entrypoints" have been found to go out`);const r=e=>`Tried to calculate an itinerary from "origin" to "entrypoints" using wemap router on local map "${l.name}" and an itinerary from "entrypoints" to "destination" using remote routers (${t.map((e=>e.name)).join(", ")}), but failed. Details: ${e}.`;if(s=l.getBestRouteFromOriginToEntryPoints(n,o,c),!s){const e=`No route found from ${n.toString()} to entry points in map: ${l.name}`;throw te.notFound(l.name||"",r(e))}const i={...e,origin:s.end,destination:o,waypoints:[]};try{d=await Pe.getItinerariesWithFallback(i,t)}catch(Xo){throw Xo instanceof re&&(Xo.message=r(Xo.message)),Xo}return a=_.fromGraphRoute(s),d.map((e=>_.fromItineraries(a,e)))}if(!l&&u){if(!u.entryPoints.length)throw te.notFound(u.name||"",`A map including the "destination" but the "origin" has been \n found (${u.name}), however, no "entrypoints" have been found to go in`);const r=e=>`Tried to calculate an itinerary from "origin" to "entrypoints" using remote routers (${t.map((e=>e.name)).join(", ")}) and an itinerary from "entrypoints" to "destination" using wemap router on local map "${u.name}", but failed. Details: ${e}.`;if(s=u.getBestRouteFromEntryPointsToDestination(n,o,c),!s){const e=`No route found from entry points to ${o.toString()} in map: ${u.name}`;throw te.notFound(u.name||"",r(e))}const i={...e,origin:n,destination:s.start,waypoints:[]};try{d=await Pe.getItinerariesWithFallback(i,t)}catch(Xo){throw Xo instanceof re&&(Xo.message=r(Xo.message)),Xo}return a=_.fromGraphRoute(s),d.map((e=>_.fromItineraries(e,a)))}if(l&&u){if(!l.entryPoints.length)throw te.notFound(l.name||"",`One map including the "origin" (${l.name}) and another \n including the "destination" (${u.name}) has been found, however, no "entrypoints" have \n been found to go out of the origin map`);if(!u.entryPoints.length)throw te.notFound(u.name||"",`One map including the "origin" (${l.name}) and another \n including the "destination" (${u.name}) has been found, however, no "entrypoints" have \n been found to go in the second map`);const r=e=>`Tried to calculate an itinerary from "origin" to "entrypoints1" using wemap router on local map "${l.name}", an itinerary from "entrypoints1" to "entrypoints2" using remote routers (${t.map((e=>e.name)).join(", ")}) and an itinerary from "entrypoints2" to "destination" using wemap router on local map "${u.name}", but failed. Details: ${e}.`,i=l.getBestRouteFromOriginToEntryPoints(n,o,c);if(!i){const e=`No route found from ${n.toString()} to entry points in map: ${l.name}`;throw te.notFound(l.name||"",r(e))}const s=u.getBestRouteFromEntryPointsToDestination(n,o,c);if(!s){const e=`No route found from entry points to ${o.toString()} in map: ${u.name}`;throw te.notFound(u.name||"",r(e))}const a={...e,origin:i.end,destination:s.start,waypoints:[]};try{d=await Pe.getItinerariesWithFallback(a,t)}catch(Xo){throw Xo instanceof re&&(Xo.message=r(Xo.message)),Xo}return d.map((e=>_.fromItineraries(_.fromGraphRoute(i),e,_.fromGraphRoute(s))))}throw new Error("Should never happen")}},exports.WemapMultiRoutingError=te,exports.areTransitAndTravelModeConsistent=g,exports.getDurationFromLength=m,exports.routerRequestToJson=function(e){const{origin:t,destination:r,waypoints:n,...o}=e;return{origin:t.toJson(),destination:r.toJson(),...n&&{waypoints:n.map((e=>e.toJson()))},...o}};
|
|
10
|
+
*/!function(e,t){(function(){var r,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object GeneratorFunction]",p="[object Map]",h="[object Number]",m="[object Object]",f="[object Promise]",g="[object RegExp]",v="[object Set]",b="[object String]",y="[object Symbol]",w="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",N="[object Float32Array]",_="[object Float64Array]",x="[object Int8Array]",A="[object Int16Array]",O="[object Int32Array]",R="[object Uint8Array]",I="[object Uint8ClampedArray]",C="[object Uint16Array]",D="[object Uint32Array]",L=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M=/^\w*$/,k=/^\./,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/\\(\\)?/g,q=/\w*$/,B=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,j={};j[N]=j[_]=j[x]=j[A]=j[O]=j[R]=j[I]=j[C]=j[D]=!0,j[i]=j[s]=j[E]=j[a]=j[T]=j[l]=j[c]=j[u]=j[p]=j[h]=j[m]=j[g]=j[v]=j[b]=j[w]=!1;var G={};G[i]=G[s]=G[E]=G[T]=G[a]=G[l]=G[N]=G[_]=G[x]=G[A]=G[O]=G[p]=G[h]=G[m]=G[g]=G[v]=G[b]=G[y]=G[R]=G[I]=G[C]=G[D]=!0,G[c]=G[u]=G[w]=!1;var H="object"==typeof S&&S&&S.Object===Object&&S,V="object"==typeof self&&self&&self.Object===Object&&self,W=H||V||Function("return this")(),$=t&&!t.nodeType&&t,z=$&&e&&!e.nodeType&&e,Y=z&&z.exports===$,K=Y&&H.process,J=function(){try{return K&&K.binding("util")}catch(e){}}(),X=J&&J.isTypedArray;function Q(e,t){return e.set(t[0],t[1]),e}function Z(e,t){return e.add(t),e}function ee(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););return e}function te(e,t,r,n){var o=-1,i=e?e.length:0;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function re(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function ne(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}function oe(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function ie(e,t){return function(r){return e(t(r))}}function se(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var ae,le=Array.prototype,ce=Function.prototype,ue=Object.prototype,de=W["__core-js_shared__"],pe=(ae=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||""))?"Symbol(src)_1."+ae:"",he=ce.toString,me=ue.hasOwnProperty,fe=he.call(Object),ge=ue.toString,ve=RegExp("^"+he.call(me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),be=Y?W.Buffer:r,ye=W.Symbol,we=W.Uint8Array,Ee=ie(Object.getPrototypeOf,Object),Te=Object.create,Ne=ue.propertyIsEnumerable,_e=le.splice,Se=Object.getOwnPropertySymbols,xe=be?be.isBuffer:r,Ae=ie(Object.keys,Object),Oe=Math.max,Re=bt(W,"DataView"),Ie=bt(W,"Map"),Ce=bt(W,"Promise"),De=bt(W,"Set"),Le=bt(W,"WeakMap"),Me=bt(Object,"create"),ke=!Ne.call({valueOf:1},"valueOf"),Ue=Ot(Re),Pe=Ot(Ie),qe=Ot(Ce),Be=Ot(De),Fe=Ot(Le),je=ye?ye.prototype:r,Ge=je?je.valueOf:r,He=je?je.toString:r;function Ve(){}function We(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $e(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ze(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ye(e){var t=-1,r=e?e.length:0;for(this.__data__=new ze;++t<r;)this.add(e[t])}function Ke(e){this.__data__=new $e(e)}function Je(e,t){var r=Lt(e)||Dt(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var i in e)!t&&!me.call(e,i)||o&&("length"==i||Et(i,n))||r.push(i);return r}function Xe(e,t,n){(n!==r&&!Ct(e[t],n)||"number"==typeof t&&n===r&&!(t in e))&&(e[t]=n)}function Qe(e,t,n){var o=e[t];me.call(e,t)&&Ct(o,n)&&(n!==r||t in e)||(e[t]=n)}function Ze(e,t){for(var r=e.length;r--;)if(Ct(e[r][0],t))return r;return-1}function et(e,t,n,o,s,c,f){var w;if(o&&(w=c?o(e,s,c,f):o(e)),w!==r)return w;if(!Bt(e))return e;var S=Lt(e);if(S){if(w=function(e){var t=e.length,r=e.constructor(t);t&&"string"==typeof e[0]&&me.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!t)return mt(e,w)}else{var L=wt(e),M=L==u||L==d;if(Ut(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(L==m||L==i||M&&!c){if(ne(e))return c?e:{};if(w=function(e){return"function"!=typeof e.constructor||Nt(e)?{}:(t=Ee(e),Bt(t)?Te(t):{});var t}(M?{}:e),!t)return function(e,t){return ft(e,yt(e),t)}(e,function(e,t){return e&&ft(t,Kt(t),e)}(w,e))}else{if(!G[L])return c?e:{};w=function(e,t,r,n){var o=e.constructor;switch(t){case E:return ht(e);case a:case l:return new o(+e);case T:return function(e,t){var r=t?ht(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case N:case _:case x:case A:case O:case R:case I:case C:case D:return function(e,t){var r=t?ht(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,n);case p:return function(e,t,r){var n=t?r(oe(e),!0):oe(e);return te(n,Q,new e.constructor)}(e,n,r);case h:case b:return new o(e);case g:return function(e){var t=new e.constructor(e.source,q.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return function(e,t,r){var n=t?r(se(e),!0):se(e);return te(n,Z,new e.constructor)}(e,n,r);case y:return i=e,Ge?Object(Ge.call(i)):{}}var i}(e,L,et,t)}}f||(f=new Ke);var k=f.get(e);if(k)return k;if(f.set(e,w),!S)var U=n?function(e){return function(e,t,r){var n=t(e);return Lt(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,Kt,yt)}(e):Kt(e);return ee(U||e,(function(r,i){U&&(r=e[i=r]),Qe(w,i,et(r,t,n,o,i,e,f))})),w}We.prototype.clear=function(){this.__data__=Me?Me(null):{}},We.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},We.prototype.get=function(e){var t=this.__data__;if(Me){var o=t[e];return o===n?r:o}return me.call(t,e)?t[e]:r},We.prototype.has=function(e){var t=this.__data__;return Me?t[e]!==r:me.call(t,e)},We.prototype.set=function(e,t){return this.__data__[e]=Me&&t===r?n:t,this},$e.prototype.clear=function(){this.__data__=[]},$e.prototype.delete=function(e){var t=this.__data__,r=Ze(t,e);return!(r<0)&&(r==t.length-1?t.pop():_e.call(t,r,1),!0)},$e.prototype.get=function(e){var t=this.__data__,n=Ze(t,e);return n<0?r:t[n][1]},$e.prototype.has=function(e){return Ze(this.__data__,e)>-1},$e.prototype.set=function(e,t){var r=this.__data__,n=Ze(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},ze.prototype.clear=function(){this.__data__={hash:new We,map:new(Ie||$e),string:new We}},ze.prototype.delete=function(e){return vt(this,e).delete(e)},ze.prototype.get=function(e){return vt(this,e).get(e)},ze.prototype.has=function(e){return vt(this,e).has(e)},ze.prototype.set=function(e,t){return vt(this,e).set(e,t),this},Ye.prototype.add=Ye.prototype.push=function(e){return this.__data__.set(e,n),this},Ye.prototype.has=function(e){return this.__data__.has(e)},Ke.prototype.clear=function(){this.__data__=new $e},Ke.prototype.delete=function(e){return this.__data__.delete(e)},Ke.prototype.get=function(e){return this.__data__.get(e)},Ke.prototype.has=function(e){return this.__data__.has(e)},Ke.prototype.set=function(e,t){var r=this.__data__;if(r instanceof $e){var n=r.__data__;if(!Ie||n.length<199)return n.push([e,t]),this;r=this.__data__=new ze(n)}return r.set(e,t),this};var tt,rt,nt=(tt=function(e,t){return e&&ot(e,t,Kt)},function(e,t){if(null==e)return e;if(!Mt(e))return tt(e,t);for(var r=e.length,n=rt?r:-1,o=Object(e);(rt?n--:++n<r)&&!1!==t(o[n],n,o););return e}),ot=function(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),a=s.length;a--;){var l=s[e?a:++o];if(!1===r(i[l],l,i))break}return t}}();function it(e,t){for(var n=0,o=(t=Tt(t,e)?[t]:pt(t)).length;null!=e&&n<o;)e=e[At(t[n++])];return n&&n==o?e:r}function st(e,t){return null!=e&&t in Object(e)}function at(e,t,n,o,u){return e===t||(null==e||null==t||!Bt(e)&&!Ft(t)?e!=e&&t!=t:function(e,t,n,o,u,d){var f=Lt(e),w=Lt(t),N=s,_=s;f||(N=(N=wt(e))==i?m:N);w||(_=(_=wt(t))==i?m:_);var S=N==m&&!ne(e),x=_==m&&!ne(t),A=N==_;if(A&&!S)return d||(d=new Ke),f||Vt(e)?gt(e,t,n,o,u,d):function(e,t,r,n,o,i,s){switch(r){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!n(new we(e),new we(t)));case a:case l:case h:return Ct(+e,+t);case c:return e.name==t.name&&e.message==t.message;case g:case b:return e==t+"";case p:var u=oe;case v:var d=2&i;if(u||(u=se),e.size!=t.size&&!d)return!1;var m=s.get(e);if(m)return m==t;i|=1,s.set(e,t);var f=gt(u(e),u(t),n,o,i,s);return s.delete(e),f;case y:if(Ge)return Ge.call(e)==Ge.call(t)}return!1}(e,t,N,n,o,u,d);if(!(2&u)){var O=S&&me.call(e,"__wrapped__"),R=x&&me.call(t,"__wrapped__");if(O||R){var I=O?e.value():e,C=R?t.value():t;return d||(d=new Ke),n(I,C,o,u,d)}}if(!A)return!1;return d||(d=new Ke),function(e,t,n,o,i,s){var a=2&i,l=Kt(e),c=l.length,u=Kt(t),d=u.length;if(c!=d&&!a)return!1;var p=c;for(;p--;){var h=l[p];if(!(a?h in t:me.call(t,h)))return!1}var m=s.get(e);if(m&&s.get(t))return m==t;var f=!0;s.set(e,t),s.set(t,e);var g=a;for(;++p<c;){var v=e[h=l[p]],b=t[h];if(o)var y=a?o(b,v,h,t,e,s):o(v,b,h,e,t,s);if(!(y===r?v===b||n(v,b,o,i,s):y)){f=!1;break}g||(g="constructor"==h)}if(f&&!g){var w=e.constructor,E=t.constructor;w==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E||(f=!1)}return s.delete(e),s.delete(t),f}(e,t,n,o,u,d)}(e,t,at,n,o,u))}function lt(e){return!(!Bt(e)||(t=e,pe&&pe in t))&&(Pt(e)||ne(e)?ve:B).test(Ot(e));var t}function ct(e){return"function"==typeof e?e:null==e?Qt:"object"==typeof e?Lt(e)?function(e,t){if(Tt(e)&&_t(t))return St(At(e),t);return function(n){var o=zt(n,e);return o===r&&o===t?Yt(n,e):at(t,o,r,3)}}(e[0],e[1]):function(e){var t=function(e){var t=Kt(e),r=t.length;for(;r--;){var n=t[r],o=e[n];t[r]=[n,o,_t(o)]}return t}(e);if(1==t.length&&t[0][2])return St(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,o){var i=n.length,s=i,a=!o;if(null==e)return!s;for(e=Object(e);i--;){var l=n[i];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){var c=(l=n[i])[0],u=e[c],d=l[1];if(a&&l[2]){if(u===r&&!(c in e))return!1}else{var p=new Ke;if(o)var h=o(u,d,c,e,t,p);if(!(h===r?at(d,u,o,3,p):h))return!1}}return!0}(n,e,t)}}(e):er(e)}function ut(e){if(!Bt(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Nt(e),r=[];for(var n in e)("constructor"!=n||!t&&me.call(e,n))&&r.push(n);return r}function dt(e,t,n,o,i){if(e!==t){if(!Lt(t)&&!Vt(t))var s=ut(t);ee(s||t,(function(a,l){if(s&&(a=t[l=a]),Bt(a))i||(i=new Ke),function(e,t,n,o,i,s,a){var l=e[n],c=t[n],u=a.get(c);if(u)return void Xe(e,n,u);var d=s?s(l,c,n+"",e,t,a):r,p=d===r;p&&(d=c,Lt(c)||Vt(c)?Lt(l)?d=l:kt(l)?d=mt(l):(p=!1,d=et(c,!0)):jt(c)||Dt(c)?Dt(l)?d=Wt(l):!Bt(l)||o&&Pt(l)?(p=!1,d=et(c,!0)):d=l:p=!1);p&&(a.set(c,d),i(d,c,o,s,a),a.delete(c));Xe(e,n,d)}(e,t,l,n,dt,o,i);else{var c=o?o(e[l],a,l+"",e,t,i):r;c===r&&(c=a),Xe(e,l,c)}}))}}function pt(e){return Lt(e)?e:xt(e)}function ht(e){var t=new e.constructor(e.byteLength);return new we(t).set(new we(e)),t}function mt(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function ft(e,t,n,o){n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=o?o(n[a],e[a],a,n,e):r;Qe(n,a,l===r?e[a]:l)}return n}function gt(e,t,n,o,i,s){var a=2&i,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e);if(u&&s.get(t))return u==t;var d=-1,p=!0,h=1&i?new Ye:r;for(s.set(e,t),s.set(t,e);++d<l;){var m=e[d],f=t[d];if(o)var g=a?o(f,m,d,t,e,s):o(m,f,d,e,t,s);if(g!==r){if(g)continue;p=!1;break}if(h){if(!re(t,(function(e,t){if(!h.has(t)&&(m===e||n(m,e,o,i,s)))return h.add(t)}))){p=!1;break}}else if(m!==f&&!n(m,f,o,i,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function vt(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function bt(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return lt(n)?n:r}var yt=Se?ie(Se,Object):tr,wt=function(e){return ge.call(e)};function Et(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||F.test(e))&&e>-1&&e%1==0&&e<t}function Tt(e,t){if(Lt(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Gt(e))||(M.test(e)||!L.test(e)||null!=t&&e in Object(t))}function Nt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ue)}function _t(e){return e==e&&!Bt(e)}function St(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in Object(n)))}}(Re&&wt(new Re(new ArrayBuffer(1)))!=T||Ie&&wt(new Ie)!=p||Ce&&wt(Ce.resolve())!=f||De&&wt(new De)!=v||Le&&wt(new Le)!=w)&&(wt=function(e){var t=ge.call(e),n=t==m?e.constructor:r,o=n?Ot(n):r;if(o)switch(o){case Ue:return T;case Pe:return p;case qe:return f;case Be:return v;case Fe:return w}return t});var xt=It((function(e){e=$t(e);var t=[];return k.test(e)&&t.push(""),e.replace(U,(function(e,r,n,o){t.push(n?o.replace(P,"$1"):r||e)})),t}));function At(e){if("string"==typeof e||Gt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ot(e){if(null!=e){try{return he.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Rt(e,t){return(Lt(e)?ee:nt)(e,function(){var e=Ve.iteratee||Zt;return e=e===Zt?ct:e,arguments.length?e(arguments[0],arguments[1]):e}(t,3))}function It(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s),s};return r.cache=new(It.Cache||ze),r}function Ct(e,t){return e===t||e!=e&&t!=t}function Dt(e){return kt(e)&&me.call(e,"callee")&&(!Ne.call(e,"callee")||ge.call(e)==i)}It.Cache=ze;var Lt=Array.isArray;function Mt(e){return null!=e&&qt(e.length)&&!Pt(e)}function kt(e){return Ft(e)&&Mt(e)}var Ut=xe||rr;function Pt(e){var t=Bt(e)?ge.call(e):"";return t==u||t==d}function qt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Bt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ft(e){return!!e&&"object"==typeof e}function jt(e){if(!Ft(e)||ge.call(e)!=m||ne(e))return!1;var t=Ee(e);if(null===t)return!0;var r=me.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&he.call(r)==fe}function Gt(e){return"symbol"==typeof e||Ft(e)&&ge.call(e)==y}var Ht,Vt=X?(Ht=X,function(e){return Ht(e)}):function(e){return Ft(e)&&qt(e.length)&&!!j[ge.call(e)]};function Wt(e){return ft(e,Jt(e))}function $t(e){return null==e?"":function(e){if("string"==typeof e)return e;if(Gt(e))return He?He.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}function zt(e,t,n){var o=null==e?r:it(e,t);return o===r?n:o}function Yt(e,t){return null!=e&&function(e,t,r){for(var n,o=-1,i=(t=Tt(t,e)?[t]:pt(t)).length;++o<i;){var s=At(t[o]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}return n||!!(i=e?e.length:0)&&qt(i)&&Et(s,i)&&(Lt(e)||Dt(e))}(e,t,st)}function Kt(e){return Mt(e)?Je(e):function(e){if(!Nt(e))return Ae(e);var t=[];for(var r in Object(e))me.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}function Jt(e){return Mt(e)?Je(e,!0):ut(e)}var Xt=function(e){return t=function(t,n){var o=-1,i=n.length,s=i>1?n[i-1]:r,a=i>2?n[2]:r;for(s=e.length>3&&"function"==typeof s?(i--,s):r,a&&function(e,t,r){if(!Bt(r))return!1;var n=typeof t;return!!("number"==n?Mt(r)&&Et(t,r.length):"string"==n&&t in r)&&Ct(r[t],e)}(n[0],n[1],a)&&(s=i<3?r:s,i=1),t=Object(t);++o<i;){var l=n[o];l&&e(t,l,o,s)}return t},n=Oe(n===r?t.length-1:n,0),function(){for(var e=arguments,r=-1,o=Oe(e.length-n,0),i=Array(o);++r<o;)i[r]=e[n+r];r=-1;for(var s=Array(n+1);++r<n;)s[r]=e[r];return s[n]=i,function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(t,this,s)};var t,n}((function(e,t,r){dt(e,t,r)}));function Qt(e){return e}function Zt(e){return ct("function"==typeof e?e:et(e,!0))}function er(e){return Tt(e)?function(e){return function(t){return null==t?r:t[e]}}(At(e)):function(e){return function(t){return it(t,e)}}(e)}function tr(){return[]}function rr(){return!1}Ve.compact=function(e){for(var t=-1,r=e?e.length:0,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},Ve.iteratee=Zt,Ve.keys=Kt,Ve.keysIn=Jt,Ve.memoize=It,Ve.merge=Xt,Ve.property=er,Ve.toPlainObject=Wt,Ve.clone=function(e){return et(e,!1,!0)},Ve.eq=Ct,Ve.forEach=Rt,Ve.get=zt,Ve.hasIn=Yt,Ve.identity=Qt,Ve.isArguments=Dt,Ve.isArray=Lt,Ve.isArrayLike=Mt,Ve.isArrayLikeObject=kt,Ve.isBuffer=Ut,Ve.isEmpty=function(e){if(Mt(e)&&(Lt(e)||"string"==typeof e||"function"==typeof e.splice||Ut(e)||Dt(e)))return!e.length;var t=wt(e);if(t==p||t==v)return!e.size;if(ke||Nt(e))return!Ae(e).length;for(var r in e)if(me.call(e,r))return!1;return!0},Ve.isFunction=Pt,Ve.isLength=qt,Ve.isObject=Bt,Ve.isObjectLike=Ft,Ve.isPlainObject=jt,Ve.isSymbol=Gt,Ve.isTypedArray=Vt,Ve.stubArray=tr,Ve.stubFalse=rr,Ve.toString=$t,Ve.each=Rt,Ve.VERSION="4.15.0",z&&((z.exports=Ve)._=Ve,$._=Ve)}).call(S)}(Be,Be.exports);var Fe=function e(t,r){var n,o=t&&t.type;if("FeatureCollection"===o)for(n=0;n<t.features.length;n++)e(t.features[n],r);else if("GeometryCollection"===o)for(n=0;n<t.geometries.length;n++)e(t.geometries[n],r);else if("Feature"===o)e(t.geometry,r);else if("Polygon"===o)je(t.coordinates,r);else if("MultiPolygon"===o)for(n=0;n<t.coordinates.length;n++)je(t.coordinates[n],r);return t};function je(e,t){if(0!==e.length){Ge(e[0],t);for(var r=1;r<e.length;r++)Ge(e[r],!t)}}function Ge(e,t){for(var r=0,n=0,o=0,i=e.length,s=i-1;o<i;s=o++){var a=(e[o][0]-e[s][0])*(e[s][1]+e[o][1]),l=r+a;n+=Math.abs(r)>=Math.abs(a)?r-l+a:a-l+r,r=l}r+n>=0!=!!t&&e.reverse()}var He=Be.exports,Ve=Fe,We={};function $e(e,t){return(e.version||t.version)&&e.version!==t.version?(+e.version||0)>(+t.version||0)?e:t:He.merge(e,t)}[{key:"building",polygon:"all"},{key:"highway",polygon:"whitelist",values:["services","rest_area","escape","elevator"]},{key:"natural",polygon:"blacklist",values:["coastline","cliff","ridge","arete","tree_row"]},{key:"landuse",polygon:"all"},{key:"waterway",polygon:"whitelist",values:["riverbank","dock","boatyard","dam"]},{key:"amenity",polygon:"all"},{key:"leisure",polygon:"all"},{key:"barrier",polygon:"whitelist",values:["city_wall","ditch","hedge","retaining_wall","wall","spikes"]},{key:"railway",polygon:"whitelist",values:["station","turntable","roundhouse","platform"]},{key:"area",polygon:"all"},{key:"boundary",polygon:"all"},{key:"man_made",polygon:"blacklist",values:["cutline","embankment","pipeline"]},{key:"power",polygon:"whitelist",values:["plant","substation","generator","transformer"]},{key:"place",polygon:"all"},{key:"shop",polygon:"all"},{key:"aeroway",polygon:"blacklist",values:["taxiway"]},{key:"tourism",polygon:"all"},{key:"historic",polygon:"all"},{key:"public_transport",polygon:"all"},{key:"office",polygon:"all"},{key:"building:part",polygon:"all"},{key:"military",polygon:"all"},{key:"ruins",polygon:"all"},{key:"area:highway",polygon:"all"},{key:"craft",polygon:"all"},{key:"golf",polygon:"all"},{key:"indoor",polygon:"all"}].forEach((function(e){if("all"===e.polygon)We[e.key]=!0;else{var t="whitelist"===e.polygon?"included_values":"excluded_values",r={};e.values.forEach((function(e){r[e]=!0})),We[e.key]={},We[e.key][t]=r}}));var ze;function Ye(e){for(var t,r,n,o,i,s,a=function(e){return e[0]},l=function(e){return e[e.length-1]},c=function(e,t){return void 0!==e&&void 0!==t&&e.id===t.id},u=[];e.length;)for(t=e.pop().nodes.slice(),u.push(t);e.length&&!c(a(t),l(t));){for(r=a(t),n=l(t),o=0;o<e.length;o++){if(c(n,a(s=e[o].nodes))){i=t.push,s=s.slice(1);break}if(c(n,l(s))){i=t.push,s=s.slice(0,-1).reverse();break}if(c(r,l(s))){i=t.unshift,s=s.slice(0,-1);break}if(c(r,a(s))){i=t.unshift,s=s.slice(1).reverse();break}s=i=null}if(!s)break;e.splice(o,1),i.apply(t,s)}return u}ze=function(e,t,r){var n;return t=He.merge({verbose:!1,flatProperties:!0,uninterestingTags:{source:!0,source_ref:!0,"source:ref":!0,history:!0,attribution:!0,created_by:!0,"tiger:county":!0,"tiger:tlid":!0,"tiger:upload_uuid":!0},polygonFeatures:We,deduplicator:$e},t),n="undefined"!=typeof XMLDocument&&e instanceof XMLDocument||"undefined"==typeof XMLDocument&&e.childNodes?function(e){var t,r,n=new Array,i=new Array,s=new Array;function a(e,t,r){e.hasAttribute(r)&&(t[r]=e.getAttribute(r))}function l(e,t){var r=He.clone(e);a(t,r,"lat"),a(t,r,"lon"),r.__is_center_placeholder=!0,n.push(r)}function c(e,t){var r=He.clone(e);function o(e,t,o){var i={type:"node",id:"_"+r.type+"/"+r.id+"bounds"+o,lat:e,lon:t};r.nodes.push(i.id),n.push(i)}r.nodes=[],o(t.getAttribute("minlat"),t.getAttribute("minlon"),1),o(t.getAttribute("maxlat"),t.getAttribute("minlon"),2),o(t.getAttribute("maxlat"),t.getAttribute("maxlon"),3),o(t.getAttribute("minlat"),t.getAttribute("maxlon"),4),r.nodes.push(r.nodes[0]),r.__is_bounds_placeholder=!0,i.push(r)}return He.each(e.getElementsByTagName("node"),(function(e,t){var r={};He.each(e.getElementsByTagName("tag"),(function(e){r[e.getAttribute("k")]=e.getAttribute("v")}));var o={type:"node"};a(e,o,"id"),a(e,o,"lat"),a(e,o,"lon"),a(e,o,"version"),a(e,o,"timestamp"),a(e,o,"changeset"),a(e,o,"uid"),a(e,o,"user"),He.isEmpty(r)||(o.tags=r),n.push(o)})),He.each(e.getElementsByTagName("way"),(function(e,o){var s={},u=[];He.each(e.getElementsByTagName("tag"),(function(e){s[e.getAttribute("k")]=e.getAttribute("v")}));var d=!1;He.each(e.getElementsByTagName("nd"),(function(e,t){var r;(r=e.getAttribute("ref"))&&(u[t]=r),!d&&e.getAttribute("lat")&&(d=!0)}));var p={type:"way"};a(e,p,"id"),a(e,p,"version"),a(e,p,"timestamp"),a(e,p,"changeset"),a(e,p,"uid"),a(e,p,"user"),u.length>0&&(p.nodes=u),He.isEmpty(s)||(p.tags=s),(t=e.getElementsByTagName("center")[0])&&l(p,t),d?function(e,t){function r(e,t,r){var o={type:"node",id:r,lat:e,lon:t};return n.push(o),o.id}He.isArray(e.nodes)||(e.nodes=[],He.each(t,(function(t,r){e.nodes.push("_anonymous@"+t.getAttribute("lat")+"/"+t.getAttribute("lon"))})));He.each(t,(function(t,n){t.getAttribute("lat")&&r(t.getAttribute("lat"),t.getAttribute("lon"),e.nodes[n])}))}(p,e.getElementsByTagName("nd")):(r=e.getElementsByTagName("bounds")[0])&&c(p,r),i.push(p)})),He.each(e.getElementsByTagName("relation"),(function(e,o){var u={},d=[];He.each(e.getElementsByTagName("tag"),(function(e){u[e.getAttribute("k")]=e.getAttribute("v")}));var p=!1;He.each(e.getElementsByTagName("member"),(function(e,t){d[t]={},a(e,d[t],"ref"),a(e,d[t],"role"),a(e,d[t],"type"),(!p&&"node"==d[t].type&&e.getAttribute("lat")||"way"==d[t].type&&e.getElementsByTagName("nd").length>0)&&(p=!0)}));var h={type:"relation"};a(e,h,"id"),a(e,h,"version"),a(e,h,"timestamp"),a(e,h,"changeset"),a(e,h,"uid"),a(e,h,"user"),d.length>0&&(h.members=d),He.isEmpty(u)||(h.tags=u),(t=e.getElementsByTagName("center")[0])&&l(h,t),p?function(e,t){function r(e,t,r){var o={type:"node",id:r,lat:e,lon:t};n.push(o)}function o(e,t){if(!i.some((function(e){return"way"==e.type&&e.id==t}))){var r={type:"way",id:t,nodes:[]};He.each(e,(function(e){e.getAttribute("lat")?o(e.getAttribute("lat"),e.getAttribute("lon")):r.nodes.push(void 0)})),i.push(r)}function o(e,t){var o={type:"node",id:"_anonymous@"+e+"/"+t,lat:e,lon:t};r.nodes.push(o.id),n.push(o)}}He.each(t,(function(t,n){"node"==e.members[n].type?t.getAttribute("lat")&&r(t.getAttribute("lat"),t.getAttribute("lon"),e.members[n].ref):"way"==e.members[n].type&&t.getElementsByTagName("nd").length>0&&(e.members[n].ref="_fullGeom"+e.members[n].ref,o(t.getElementsByTagName("nd"),e.members[n].ref))}))}(h,e.getElementsByTagName("member")):(r=e.getElementsByTagName("bounds")[0])&&c(h,r),s.push(h)})),o(n,i,s)}(e):function(e){var t=new Array,r=new Array,n=new Array;function i(e){var r=He.clone(e);r.lat=e.center.lat,r.lon=e.center.lon,r.__is_center_placeholder=!0,t.push(r)}function s(e){var n=He.clone(e);function o(e,r,o){var i={type:"node",id:"_"+n.type+"/"+n.id+"bounds"+o,lat:e,lon:r};n.nodes.push(i.id),t.push(i)}n.nodes=[],o(n.bounds.minlat,n.bounds.minlon,1),o(n.bounds.maxlat,n.bounds.minlon,2),o(n.bounds.maxlat,n.bounds.maxlon,3),o(n.bounds.minlat,n.bounds.maxlon,4),n.nodes.push(n.nodes[0]),n.__is_bounds_placeholder=!0,r.push(n)}function a(e){He.isArray(e.nodes)||(e.nodes=e.geometry.map((function(e){return null!==e?"_anonymous@"+e.lat+"/"+e.lon:"_anonymous@unknown_location"}))),e.geometry.forEach((function(r,n){var o,i,s,a;r&&(o=r.lat,i=r.lon,s=e.nodes[n],a={type:"node",id:s,lat:o,lon:i},t.push(a))}))}function l(e){function n(e,n){if(!r.some((function(e){return"way"==e.type&&e.id==n}))){var o={type:"way",id:n,nodes:[]};e.forEach((function(e){var r,n,i;e?(r=e.lat,n=e.lon,i={type:"node",id:"_anonymous@"+r+"/"+n,lat:r,lon:n},o.nodes.push(i.id),t.push(i)):o.nodes.push(void 0)})),r.push(o)}}e.members.forEach((function(e,r){var o,i,s,a;"node"==e.type?e.lat&&(o=e.lat,i=e.lon,s=e.ref,a={type:"node",id:s,lat:o,lon:i},t.push(a)):"way"==e.type&&e.geometry&&(e.ref="_fullGeom"+e.ref,n(e.geometry,e.ref))}))}for(var c=0;c<e.elements.length;c++)switch(e.elements[c].type){case"node":var u=e.elements[c];t.push(u);break;case"way":var d=He.clone(e.elements[c]);d.nodes=He.clone(d.nodes),r.push(d),d.center&&i(d),d.geometry?a(d):d.bounds&&s(d);break;case"relation":var p=He.clone(e.elements[c]);p.members=He.clone(p.members),n.push(p);var h=p.members&&p.members.some((function(e){return"node"==e.type&&e.lat||"way"==e.type&&e.geometry&&e.geometry.length>0}));p.center&&i(p),h?l(p):p.bounds&&s(p)}return o(t,r,n)}(e),n;function o(e,n,o){function s(e,r){if("object"!=typeof r&&(r={}),"function"==typeof t.uninterestingTags)return!t.uninterestingTags(e,r);for(var n in e)if(!0!==t.uninterestingTags[n]&&!0!==r[n]&&r[n]!==e[n])return!0;return!1}function a(e){var t={timestamp:e.timestamp,version:e.version,changeset:e.changeset,user:e.user,uid:e.uid};for(var r in t)void 0===t[r]&&delete t[r];return t}for(var l=new Object,c=new Object,u=0;u<e.length;u++){void 0!==l[(v=e[u]).id]&&(v=t.deduplicator(v,l[v.id])),l[v.id]=v,void 0!==v.tags&&s(v.tags)&&(c[v.id]=!0)}for(u=0;u<o.length;u++)if(He.isArray(o[u].members))for(var d=0;d<o[u].members.length;d++)"node"==o[u].members[d].type&&(c[o[u].members[d].ref]=!0);var p=new Object,h=new Object;for(u=0;u<n.length;u++){var m=n[u];if(p[m.id]&&(m=t.deduplicator(m,p[m.id])),p[m.id]=m,He.isArray(m.nodes))for(d=0;d<m.nodes.length;d++)"object"!=typeof m.nodes[d]&&(h[m.nodes[d]]=!0,m.nodes[d]=l[m.nodes[d]])}var f=new Array;for(var g in l){var v=l[g];h[g]&&!c[g]||f.push(v)}var b=new Array;for(u=0;u<o.length;u++){b[(E=o[u]).id]&&(E=t.deduplicator(E,b[E.id])),b[E.id]=E}var y,w={node:{},way:{},relation:{}};for(var g in b){var E=b[g];if(He.isArray(E.members))for(d=0;d<E.members.length;d++){var T=E.members[d].type,N=E.members[d].ref;"number"!=typeof N&&(N=N.replace("_fullGeom","")),w[T]?(void 0===w[T][N]&&(w[T][N]=[]),w[T][N].push({role:E.members[d].role,rel:E.id,reltags:E.tags})):t.verbose&&console.warn("Relation",E.type+"/"+E.id,"member",T+"/"+N,"ignored because it has an invalid type")}else t.verbose&&console.warn("Relation",E.type+"/"+E.id,"ignored because it has no members")}var _=[];for(u=0;u<f.length;u++)if(void 0!==f[u].lon&&void 0!==f[u].lat){var S={type:"Feature",id:f[u].type+"/"+f[u].id,properties:{type:f[u].type,id:f[u].id,tags:f[u].tags||{},relations:w.node[f[u].id]||[],meta:a(f[u])},geometry:{type:"Point",coordinates:[+f[u].lon,+f[u].lat]}};f[u].__is_center_placeholder&&(S.properties.geometry="center"),r?r(S):_.push(S)}else t.verbose&&console.warn("POI",f[u].type+"/"+f[u].id,"ignored because it lacks coordinates");var x=[],A=[];for(u=0;u<o.length;u++)if(b[o[u].id]===o[u]){if(void 0!==o[u].tags&&("route"==o[u].tags.type||"waterway"==o[u].tags.type)){let e=function(e){var r,n,o=!1;r=(r=e.members.filter((function(e){return"way"===e.type}))).map((function(r){var n=p[r.ref];return void 0===n||void 0===n.nodes?(t.verbose&&console.warn("Route "+e.type+"/"+e.id,"tainted by a missing or incomplete way",r.type+"/"+r.ref),void(o=!0)):{id:r.ref,role:r.role,way:n,nodes:n.nodes.filter((function(n){return void 0!==n||(o=!0,t.verbose&&console.warn("Route",e.type+"/"+e.id,"tainted by a way",r.type+"/"+r.ref,"with a missing node"),!1)}))}})),n=Ye(r=He.compact(r));var i;if(0==(i=He.compact(n.map((function(e){return He.compact(e.map((function(e){return[+e.lon,+e.lat]})))})))).length)return t.verbose&&console.warn("Route",e.type+"/"+e.id,"contains no coordinates"),!1;var s={type:"Feature",id:e.type+"/"+e.id,properties:{type:e.type,id:e.id,tags:e.tags||{},relations:w[e.type][e.id]||[],meta:a(e)},geometry:{type:1===i.length?"LineString":"MultiLineString",coordinates:1===i.length?i[0]:i}};return o&&(t.verbose&&console.warn("Route",e.type+"/"+e.id,"is tainted"),s.properties.tainted=!0),s};if(!He.isArray(o[u].members)){t.verbose&&console.warn("Route",o[u].type+"/"+o[u].id,"ignored because it has no members");continue}if(o[u].members.forEach((function(e){p[e.ref]&&!s(p[e.ref].tags)&&(p[e.ref].is_skippablerelationmember=!0)})),!1===(S=e(o[u]))){t.verbose&&console.warn("Route relation",o[u].type+"/"+o[u].id,"ignored because it has invalid geometry");continue}r?r(Ve(S)):A.push(S)}if(void 0!==o[u].tags&&("multipolygon"==o[u].tags.type||"boundary"==o[u].tags.type)){let e=function(e,r){var n,o,i,s,l=!1,c=R?"way":"relation",u="number"==typeof e.id?e.id:+e.id.replace("_fullGeom","");function d(e){var t,r=function(e,t){for(var r=0;r<t.length;r++)if(i(t[r],e))return!0;return!1},n=function(e){return e.map((function(e){return[+e.lat,+e.lon]}))},i=function(e,t){for(var r=e[0],n=e[1],o=!1,i=0,s=t.length-1;i<t.length;s=i++){var a=t[i][0],l=t[i][1],c=t[s][0],u=t[s][1];l>n!=u>n&&r<(c-a)*(n-l)/(u-l)+a&&(o=!o)}return o};for(e=n(e),t=0;t<o.length;t++)if(r(n(o[t]),e))return t}n=(n=r.members.filter((function(e){return"way"===e.type}))).map((function(e){var r=p[e.ref];return void 0===r||void 0===r.nodes?(t.verbose&&console.warn("Multipolygon",c+"/"+u,"tainted by a missing or incomplete way",e.type+"/"+e.ref),void(l=!0)):{id:e.ref,role:e.role||"outer",way:r,nodes:r.nodes.filter((function(r){return void 0!==r||(l=!0,t.verbose&&console.warn("Multipolygon",c+"/"+u,"tainted by a way",e.type+"/"+e.ref,"with a missing node"),!1)}))}})),n=He.compact(n),o=Ye(n.filter((function(e){return"outer"===e.role}))),i=Ye(n.filter((function(e){return"inner"===e.role}))),s=o.map((function(e){return[e]}));for(var h=0;h<i.length;h++){var m=d(i[h]);void 0!==m?s[m].push(i[h]):t.verbose&&console.warn("Multipolygon",c+"/"+u,"contains an inner ring with no containing outer")}var f=[];if(0==(f=He.compact(s.map((function(e){var r=He.compact(e.map((function(e){if(!(e.length<4))return He.compact(e.map((function(e){return[+e.lon,+e.lat]})));t.verbose&&console.warn("Multipolygon",c+"/"+u,"contains a ring with less than four nodes")})));if(0!=r.length)return r;t.verbose&&console.warn("Multipolygon",c+"/"+u,"contains an empty ring cluster")})))).length)return t.verbose&&console.warn("Multipolygon",c+"/"+u,"contains no coordinates"),!1;var g="MultiPolygon";1===f.length&&(g="Polygon",f=f[0]);var v={type:"Feature",id:e.type+"/"+u,properties:{type:e.type,id:u,tags:e.tags||{},relations:w[e.type][e.id]||[],meta:a(e)},geometry:{type:g,coordinates:f}};return l&&(t.verbose&&console.warn("Multipolygon",c+"/"+u,"is tainted"),v.properties.tainted=!0),v};if(!He.isArray(o[u].members)){t.verbose&&console.warn("Multipolygon",o[u].type+"/"+o[u].id,"ignored because it has no members");continue}var O=0;for(d=0;d<o[u].members.length;d++)"outer"==o[u].members[d].role?O++:t.verbose&&"inner"!=o[u].members[d].role&&console.warn("Multipolygon",o[u].type+"/"+o[u].id,"member",o[u].members[d].type+"/"+o[u].members[d].ref,'ignored because it has an invalid role: "'+o[u].members[d].role+'"');if(o[u].members.forEach((function(e){p[e.ref]&&("outer"!==e.role||s(p[e.ref].tags,o[u].tags)||(p[e.ref].is_skippablerelationmember=!0),"inner"!==e.role||s(p[e.ref].tags)||(p[e.ref].is_skippablerelationmember=!0))})),0==O){t.verbose&&console.warn("Multipolygon relation",o[u].type+"/"+o[u].id,"ignored because it has no outer ways");continue}var R=!1;1!=O||s(o[u].tags,{type:!0})||(R=!0);S=null;if(R){var I=o[u].members.filter((function(e){return"outer"===e.role}))[0];if(void 0===(I=p[I.ref])){t.verbose&&console.warn("Multipolygon relation",o[u].type+"/"+o[u].id,"ignored because outer way",I.type+"/"+I.ref,"is missing");continue}I.is_skippablerelationmember=!0,S=e(I,o[u])}else S=e(o[u],o[u]);if(!1===S){t.verbose&&console.warn("Multipolygon relation",o[u].type+"/"+o[u].id,"ignored because it has invalid geometry");continue}r?r(Ve(S)):A.push(S)}}for(u=0;u<n.length;u++)if(p[n[u].id]===n[u])if(He.isArray(n[u].nodes)){if(!n[u].is_skippablerelationmember){"number"!=typeof n[u].id&&(n[u].id=+n[u].id.replace("_fullGeom","")),n[u].tainted=!1,n[u].hidden=!1;var C=new Array;for(d=0;d<n[u].nodes.length;d++)"object"==typeof n[u].nodes[d]?C.push([+n[u].nodes[d].lon,+n[u].nodes[d].lat]):(t.verbose&&console.warn("Way",n[u].type+"/"+n[u].id,"is tainted by an invalid node"),n[u].tainted=!0);if(C.length<=1)t.verbose&&console.warn("Way",n[u].type+"/"+n[u].id,"ignored because it contains too few nodes");else{var D="LineString";void 0!==n[u].nodes[0]&&void 0!==n[u].nodes[n[u].nodes.length-1]&&n[u].nodes[0].id===n[u].nodes[n[u].nodes.length-1].id&&(void 0!==n[u].tags&&i(n[u].tags)||n[u].__is_bounds_placeholder)&&(D="Polygon",C=[C]);S={type:"Feature",id:n[u].type+"/"+n[u].id,properties:{type:n[u].type,id:n[u].id,tags:n[u].tags||{},relations:w.way[n[u].id]||[],meta:a(n[u])},geometry:{type:D,coordinates:C}};n[u].tainted&&(t.verbose&&console.warn("Way",n[u].type+"/"+n[u].id,"is tainted"),S.properties.tainted=!0),n[u].__is_bounds_placeholder&&(S.properties.geometry="bounds"),r?r(Ve(S)):"LineString"==D?x.push(S):A.push(S)}}}else t.verbose&&console.warn("Way",n[u].type+"/"+n[u].id,"ignored because it has no nodes");return!!r||((y={type:"FeatureCollection",features:[]}).features=y.features.concat(A),y.features=y.features.concat(x),y.features=y.features.concat(_),t.flatProperties&&y.features.forEach((function(e){e.properties=He.merge(e.properties.meta,e.properties.tags,{id:e.properties.type+"/"+e.properties.id})})),y=Ve(y))}function i(e){var r=t.polygonFeatures;if("function"==typeof r)return r(e);if("no"===e.area)return!1;for(var n in e){var o=e[n],i=r[n];if(void 0!==i&&"no"!==o){if(!0===i)return!0;if(i.included_values&&!0===i.included_values[o])return!0;if(i.excluded_values&&!0!==i.excluded_values[o])return!0}}return!1}},ze.toGeojson=ze;const Ke=x(ze);var Je={};function Xe(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.getOwnPropertyDescriptors&&(e=t.create(null,t.getOwnPropertyDescriptors(e))),t&&"function"==typeof t.freeze?t.freeze(e):e}function Qe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Ze=Xe({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});var et=Xe({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});var tt=Xe({script:!1,style:!1,textarea:!0,title:!0});function rt(e){return e===nt.HTML}var nt=Xe({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),ot=Object.keys(nt).map((function(e){return nt[e]}));var it=Xe({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});Je.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var r in t)Qe(t,r)&&(e[r]=t[r]);return e},Je.find=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var n=0;n<e.length;n++)if(Qe(e,n)){var o=e[n];if(t.call(void 0,o,n,e))return o}},Je.freeze=Xe,Je.HTML_BOOLEAN_ATTRIBUTES=Ze,Je.HTML_RAW_TEXT_ELEMENTS=tt,Je.HTML_VOID_ELEMENTS=et,Je.hasDefaultHTMLNamespace=function(e){return rt(e)||e===nt.XML_XHTML_APPLICATION},Je.hasOwn=Qe,Je.isHTMLBooleanAttribute=function(e){return Qe(Ze,e.toLowerCase())},Je.isHTMLRawTextElement=function(e){var t=e.toLowerCase();return Qe(tt,t)&&!tt[t]},Je.isHTMLEscapableRawTextElement=function(e){var t=e.toLowerCase();return Qe(tt,t)&&tt[t]},Je.isHTMLMimeType=rt,Je.isHTMLVoidElement=function(e){return Qe(et,e.toLowerCase())},Je.isValidMimeType=function(e){return ot.indexOf(e)>-1},Je.MIME_TYPE=nt,Je.NAMESPACE=it;var st={};function at(e,t){e.prototype=Object.create(Error.prototype,{constructor:{value:e},name:{value:e.name,enumerable:!0,writable:t}})}var lt=Je.freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),ct=Object.keys(lt);function ut(e){return"number"==typeof e&&e>=1&&e<=25}function dt(e,t){var r;ut(e)?(this.name=ct[e],this.message=t||""):(this.message=e,this.name="string"==typeof(r=t)&&r.substring(r.length-lt.Error.length)===lt.Error?t:lt.Error),Error.captureStackTrace&&Error.captureStackTrace(this,dt)}at(dt,!0),Object.defineProperties(dt.prototype,{code:{enumerable:!0,get:function(){var e=ct.indexOf(this.name);return ut(e)?e:0}}});for(var pt={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},ht=Object.entries(pt),mt=0;mt<ht.length;mt++){dt[ht[mt][0]]=ht[mt][1]}function ft(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,ft)}at(ft),st.DOMException=dt,st.DOMExceptionName=lt,st.ExceptionCode=pt,st.ParseError=ft;var gt={},vt={};function bt(e){try{"function"!=typeof e&&(e=RegExp);var t=new e("𝌆","u").exec("𝌆");return!!t&&2===t[0].length}catch(r){}return!1}var yt=bt();function wt(e){if("["!==e.source[0])throw new Error(e+" can not be used with chars");return e.source.slice(1,e.source.lastIndexOf("]"))}function Et(e,t){if("["!==e.source[0])throw new Error("/"+e.source+"/ can not be used with chars_without");if(!t||"string"!=typeof t)throw new Error(JSON.stringify(t)+" is not a valid search");if(-1===e.source.indexOf(t))throw new Error('"'+t+'" is not is /'+e.source+"/");if("-"===t&&1!==e.source.indexOf(t))throw new Error('"'+t+'" is not at the first postion of /'+e.source+"/");return new RegExp(e.source.replace(t,""),yt?"u":"")}function Tt(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map((function(e){var r="string"==typeof e;if(r&&void 0===t&&"|"===e)throw new Error("use regg instead of reg to wrap expressions with `|`!");return r?e:e.source})).join(""),yt?"mu":"m")}function Nt(e){if(0===arguments.length)throw new Error("no parameters provided");return Tt.apply(Nt,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var _t=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;yt&&(_t=Tt("[",wt(_t),"\\u{10000}-\\u{10FFFF}","]"));var St=/[\x20\x09\x0D\x0A]/,xt=wt(St),At=Tt(St,"+"),Ot=Tt(St,"*"),Rt=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;yt&&(Rt=Tt("[",wt(Rt),"\\u{10000}-\\u{10FFFF}","]"));var It=Tt("[",wt(Rt),wt(/[-.0-9\xB7]/),wt(/[\u0300-\u036F\u203F-\u2040]/),"]"),Ct=Tt(Rt,It,"*"),Dt=Tt(It,"+"),Lt=Tt("&",Ct,";"),Mt=Nt(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),kt=Nt(Lt,"|",Mt),Ut=Tt("%",Ct,";"),Pt=Nt(Tt('"',Nt(/[^%&"]/,"|",Ut,"|",kt),"*",'"'),"|",Tt("'",Nt(/[^%&']/,"|",Ut,"|",kt),"*","'")),qt=Nt('"',Nt(/[^<&"]/,"|",kt),"*",'"',"|","'",Nt(/[^<&']/,"|",kt),"*","'"),Bt=Tt(Et(Rt,":"),Et(It,":"),"*"),Ft=Tt(Bt,Nt(":",Bt),"?"),jt=Tt("^",Ft,"$"),Gt=Tt("(",Ft,")"),Ht=Nt(/"[^"]*"|'[^']*'/),Vt=Tt(/^<\?/,"(",Ct,")",Nt(At,"(",_t,"*?)"),"?",/\?>/),Wt=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,$t=Nt('"',Wt,'*"',"|","'",Et(Wt,"'"),"*'"),zt="\x3c!--",Yt=Tt(zt,Nt(Et(_t,"-"),"|",Tt("-",Et(_t,"-"))),"*","--\x3e"),Kt="#PCDATA",Jt=Nt(Tt(/\(/,Ot,Kt,Nt(Ot,/\|/,Ot,Ft),"*",Ot,/\)\*/),"|",Tt(/\(/,Ot,Kt,Ot,/\)/)),Xt=Nt("EMPTY","|","ANY","|",Jt,"|",Tt(/\([^>]+\)/,/[?*+]?/)),Qt=Tt("<!ELEMENT",At,Nt(Ft,"|",Ut),At,Nt(Xt,"|",Ut),Ot,">"),Zt=Tt("NOTATION",At,/\(/,Ot,Ct,Nt(Ot,/\|/,Ot,Ct),"*",Ot,/\)/),er=Tt(/\(/,Ot,Dt,Nt(Ot,/\|/,Ot,Dt),"*",Ot,/\)/),tr=Nt(Zt,"|",er),rr=Nt(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",tr),nr=Nt(/#REQUIRED|#IMPLIED/,"|",Nt(Nt("#FIXED",At),"?",qt)),or=Tt("<!ATTLIST",At,Ct,Nt(At,Ct,At,rr,At,nr),"*",Ot,">"),ir="about:legacy-compat",sr=Nt('"'+ir+'"',"|","'"+ir+"'"),ar="SYSTEM",lr="PUBLIC",cr=Nt(Nt(ar,At,Ht),"|",Nt(lr,At,$t,At,Ht)),ur=Tt("^",Nt(Nt(ar,At,"(?<SystemLiteralOnly>",Ht,")"),"|",Nt(lr,At,"(?<PubidLiteral>",$t,")",At,"(?<SystemLiteral>",Ht,")"))),dr=Nt(At,"NDATA",At,Ct),pr="<!ENTITY",hr=Tt(pr,At,Ct,At,Nt(Pt,"|",Nt(cr,dr,"?")),Ot,">"),mr=Nt(Pt,"|",cr),fr=Nt(hr,"|",Tt(pr,At,"%",At,Ct,At,mr,Ot,">")),gr=Tt(lr,At,$t),vr=Tt("<!NOTATION",At,Ct,At,Nt(cr,"|",gr),Ot,">"),br=Tt(Ot,"=",Ot),yr=/1[.]\d+/,wr=Tt(At,"version",br,Nt("'",yr,"'","|",'"',yr,'"')),Er=/[A-Za-z][-A-Za-z0-9._]*/,Tr=Tt(/^<\?xml/,wr,Nt(At,"encoding",br,Nt('"',Er,'"',"|","'",Er,"'")),"?",Nt(At,"standalone",br,Nt("'",Nt("yes","|","no"),"'","|",'"',Nt("yes","|","no"),'"')),"?",Ot,/\?>/),Nr=Tt(_t,"*?",/\]\]>/),_r=Tt(/<!\[CDATA\[/,Nr);vt.chars=wt,vt.chars_without=Et,vt.detectUnicodeSupport=bt,vt.reg=Tt,vt.regg=Nt,vt.ABOUT_LEGACY_COMPAT=ir,vt.ABOUT_LEGACY_COMPAT_SystemLiteral=sr,vt.AttlistDecl=or,vt.CDATA_START="<![CDATA[",vt.CDATA_END="]]>",vt.CDSect=_r,vt.Char=_t,vt.Comment=Yt,vt.COMMENT_START=zt,vt.COMMENT_END="--\x3e",vt.DOCTYPE_DECL_START="<!DOCTYPE",vt.elementdecl=Qt,vt.EntityDecl=fr,vt.EntityValue=Pt,vt.ExternalID=cr,vt.ExternalID_match=ur,vt.Name=Ct,vt.NotationDecl=vr,vt.Reference=kt,vt.PEReference=Ut,vt.PI=Vt,vt.PUBLIC=lr,vt.PubidLiteral=$t,vt.QName=Ft,vt.QName_exact=jt,vt.QName_group=Gt,vt.S=At,vt.SChar_s=xt,vt.S_OPT=Ot,vt.SYSTEM=ar,vt.SystemLiteral=Ht,vt.UNICODE_REPLACEMENT_CHARACTER="�",vt.UNICODE_SUPPORT=yt,vt.XMLDecl=Tr;var Sr=Je,xr=Sr.find,Ar=Sr.hasDefaultHTMLNamespace,Or=Sr.hasOwn,Rr=Sr.isHTMLMimeType,Ir=Sr.isHTMLRawTextElement,Cr=Sr.isHTMLVoidElement,Dr=Sr.MIME_TYPE,Lr=Sr.NAMESPACE,Mr=Symbol(),kr=st,Ur=kr.DOMException,Pr=kr.DOMExceptionName,qr=vt;function Br(e){if(e!==Mr)throw new TypeError("Illegal constructor")}function Fr(e){return""!==e}function jr(e,t){return Or(e,t)||(e[t]=!0),e}function Gr(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(Fr):[]}(e);return Object.keys(t.reduce(jr,{}))}function Hr(e){if(!qr.QName_exact.test(e))throw new Ur(Ur.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+e+'"')}function Vr(e,t){Hr(t),e=e||null;var r=null,n=t;if(t.indexOf(":")>=0){var o=t.split(":");r=o[0],n=o[1]}if(null!==r&&null===e)throw new Ur(Ur.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===r&&e!==Sr.NAMESPACE.XML)throw new Ur(Ur.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===r||"xmlns"===t)&&e!==Sr.NAMESPACE.XMLNS)throw new Ur(Ur.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(e===Sr.NAMESPACE.XMLNS&&"xmlns"!==r&&"xmlns"!==t)throw new Ur(Ur.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[e,r,n]}function Wr(e,t){for(var r in e)Or(e,r)&&(t[r]=e[r])}function $r(e,t){var r=e.prototype;if(!(r instanceof t)){let n=function(){};n.prototype=t.prototype,n=new n,Wr(r,n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var zr={},Yr=zr.ELEMENT_NODE=1,Kr=zr.ATTRIBUTE_NODE=2,Jr=zr.TEXT_NODE=3,Xr=zr.CDATA_SECTION_NODE=4,Qr=zr.ENTITY_REFERENCE_NODE=5,Zr=zr.ENTITY_NODE=6,en=zr.PROCESSING_INSTRUCTION_NODE=7,tn=zr.COMMENT_NODE=8,rn=zr.DOCUMENT_NODE=9,nn=zr.DOCUMENT_TYPE_NODE=10,on=zr.DOCUMENT_FRAGMENT_NODE=11,sn=zr.NOTATION_NODE=12,an=Sr.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function ln(e,t){if(t.length<e.length)return ln(t,e);var r=null;for(var n in e){if(e[n]!==t[n])return r;r=e[n]}return r}function cn(e){return e.guid||(e.guid=Math.random()),e.guid}function un(){}function dn(e,t){this._node=e,this._refresh=t,pn(this)}function pn(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(Zn(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;n in e;n++)Or(e,n)&&delete e[n];Wr(r,e),e._inc=t}}function hn(){}function mn(e,t){for(var r=0;r<e.length;){if(e[r]===t)return r;r++}}function fn(e,t,r,n){if(n?t[mn(t,n)]=r:(t[t.length]=r,t.length++),e){r.ownerElement=e;var o=e.ownerDocument;o&&(n&&Tn(o,e,n),function(e,t,r){e&&e._inc++;var n=r.namespaceURI;n===Lr.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}(o,e,r))}}function gn(e,t,r){var n=mn(t,r);if(n>=0){for(var o=t.length-1;n<=o;)t[n]=t[++n];if(t.length=o,e){var i=e.ownerDocument;i&&Tn(i,e,r),r.ownerElement=null}}}function vn(){}function bn(e){Br(e)}function yn(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function wn(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(wn(e,t))return!0}while(e=e.nextSibling)}function En(e,t){Br(e);var r=t||{};this.ownerDocument=this,this.contentType=r.contentType||Dr.XML_APPLICATION,this.type=Rr(this.contentType)?"html":"xml"}function Tn(e,t,r,n){e&&e._inc++,r.namespaceURI===Lr.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function Nn(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r&&!r.nextSibling)n[n.length++]=r;else{for(var o=t.firstChild,i=0;o;)n[i++]=o,o=o.nextSibling;n.length=i,delete n[n.length]}}}function _n(e,t){if(e!==t.parentNode)throw new Ur(Ur.NOT_FOUND_ERR,"child's parent is not parent");var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,Nn(e.ownerDocument,e),t.parentNode=null,t.previousSibling=null,t.nextSibling=null,t}function Sn(e){return e&&e.nodeType===bn.DOCUMENT_TYPE_NODE}function xn(e){return e&&e.nodeType===bn.ELEMENT_NODE}function An(e){return e&&e.nodeType===bn.TEXT_NODE}function On(e,t){var r=e.childNodes||[];if(xr(r,xn)||Sn(t))return!1;var n=xr(r,Sn);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function Rn(e,t){var r=e.childNodes||[];if(xr(r,(function(e){return xn(e)&&e!==t})))return!1;var n=xr(r,Sn);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function In(e,t,r){if(!function(e){return e&&(e.nodeType===bn.DOCUMENT_NODE||e.nodeType===bn.DOCUMENT_FRAGMENT_NODE||e.nodeType===bn.ELEMENT_NODE)}(e))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new Ur(Ur.NOT_FOUND_ERR,"child not in parent");if(!function(e){return e&&(e.nodeType===bn.CDATA_SECTION_NODE||e.nodeType===bn.COMMENT_NODE||e.nodeType===bn.DOCUMENT_FRAGMENT_NODE||e.nodeType===bn.DOCUMENT_TYPE_NODE||e.nodeType===bn.ELEMENT_NODE||e.nodeType===bn.PROCESSING_INSTRUCTION_NODE||e.nodeType===bn.TEXT_NODE)}(t)||Sn(t)&&e.nodeType!==bn.DOCUMENT_NODE)throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function Cn(e,t,r){var n=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===bn.DOCUMENT_FRAGMENT_NODE){var i=o.filter(xn);if(i.length>1||xr(o,An))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!On(e,r))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(xn(t)&&!On(e,r))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Sn(t)){if(xr(n,Sn))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var s=xr(n,xn);if(r&&n.indexOf(s)<n.indexOf(r))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!r&&s)throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function Dn(e,t,r){var n=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===bn.DOCUMENT_FRAGMENT_NODE){var i=o.filter(xn);if(i.length>1||xr(o,An))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!Rn(e,r))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(xn(t)&&!Rn(e,r))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Sn(t)){if(xr(n,(function(e){return Sn(e)&&e!==r})))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var s=xr(n,xn);if(r&&n.indexOf(s)<n.indexOf(r))throw new Ur(Ur.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function Ln(e,t,r,n){In(e,t,r),e.nodeType===bn.DOCUMENT_NODE&&(n||Cn)(e,t,r);var o=t.parentNode;if(o&&o.removeChild(t),t.nodeType===on){var i=t.firstChild;if(null==i)return t;var s=t.lastChild}else i=s=t;var a=r?r.previousSibling:e.lastChild;i.previousSibling=a,s.nextSibling=r,a?a.nextSibling=i:e.firstChild=i,null==r?e.lastChild=s:r.previousSibling=s;do{i.parentNode=e}while(i!==s&&(i=i.nextSibling));return Nn(e.ownerDocument||e,e,t),t.nodeType==on&&(t.firstChild=t.lastChild=null),t}function Mn(e){Br(e),this._nsMap=Object.create(null)}function kn(e){Br(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function Un(e){Br(e)}function Pn(e){Br(e)}function qn(e){Br(e)}function Bn(e){Br(e)}function Fn(e){Br(e)}function jn(e){Br(e)}function Gn(e){Br(e)}function Hn(e){Br(e)}function Vn(e){Br(e)}function Wn(e){Br(e)}function $n(){}function zn(e){var t=[],r=this.nodeType===rn&&this.documentElement||this,n=r.prefix,o=r.namespaceURI;if(o&&null==n&&null==(n=r.lookupPrefix(o)))var i=[{namespace:o,prefix:null}];return Jn(this,t,e,i),t.join("")}function Yn(e,t,r){var n=e.prefix||"",o=e.namespaceURI;if(!o)return!1;if("xml"===n&&o===Lr.XML||o===Lr.XMLNS)return!1;for(var i=r.length;i--;){var s=r[i];if(s.prefix===n)return s.namespace!==o}return!0}function Kn(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,yn),'"')}function Jn(e,t,r,n){n||(n=[]);var o="html"===(e.nodeType===rn?e:e.ownerDocument).type;if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case Yr:var i=e.attributes,s=i.length,a=e.firstChild,l=e.tagName,c=l;if(!o&&!e.prefix&&e.namespaceURI){for(var u,d=0;d<i.length;d++)if("xmlns"===i.item(d).name){u=i.item(d).value;break}if(!u)for(var p=n.length-1;p>=0;p--){if(""===(h=n[p]).prefix&&h.namespace===e.namespaceURI){u=h.namespace;break}}if(u!==e.namespaceURI)for(p=n.length-1;p>=0;p--){var h;if((h=n[p]).namespace===e.namespaceURI){h.prefix&&(c=h.prefix+":"+l);break}}}t.push("<",c);for(var m=0;m<s;m++){"xmlns"==(f=i.item(m)).prefix?n.push({prefix:f.localName,namespace:f.value}):"xmlns"==f.nodeName&&n.push({prefix:"",namespace:f.value})}for(m=0;m<s;m++){var f,g,v;if(Yn(f=i.item(m),0,n))Kn(t,(g=f.prefix||"")?"xmlns:"+g:"xmlns",v=f.namespaceURI),n.push({prefix:g,namespace:v});Jn(f,t,r,n)}if(l===c&&Yn(e,0,n))Kn(t,(g=e.prefix||"")?"xmlns:"+g:"xmlns",v=e.namespaceURI),n.push({prefix:g,namespace:v});var b=!a;if(b&&(o||e.namespaceURI===Lr.HTML)&&(b=Cr(l)),b)t.push("/>");else{if(t.push(">"),o&&Ir(l))for(;a;)a.data?t.push(a.data):Jn(a,t,r,n.slice()),a=a.nextSibling;else for(;a;)Jn(a,t,r,n.slice()),a=a.nextSibling;t.push("</",c,">")}return;case rn:case on:for(a=e.firstChild;a;)Jn(a,t,r,n.slice()),a=a.nextSibling;return;case Kr:return Kn(t,e.name,e.value);case Jr:return t.push(e.data.replace(/[<&>]/g,yn));case Xr:return t.push(qr.CDATA_START,e.data,qr.CDATA_END);case tn:return t.push(qr.COMMENT_START,e.data,qr.COMMENT_END);case nn:var y=e.publicId,w=e.systemId;return t.push(qr.DOCTYPE_DECL_START," ",e.name),y?(t.push(" ",qr.PUBLIC," ",y),w&&"."!==w&&t.push(" ",w)):w&&"."!==w&&t.push(" ",qr.SYSTEM," ",w),e.internalSubset&&t.push(" [",e.internalSubset,"]"),void t.push(">");case en:return t.push("<?",e.target," ",e.data,"?>");case Qr:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function Xn(e,t,r){var n;switch(t.nodeType){case Yr:(n=t.cloneNode(!1)).ownerDocument=e;case on:break;case Kr:r=!0}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,r)for(var o=t.firstChild;o;)n.appendChild(Xn(e,o,r)),o=o.nextSibling;return n}function Qn(e,t,r){var n=new t.constructor(Mr);for(var o in t)if(Or(t,o)){var i=t[o];"object"!=typeof i&&i!=n[o]&&(n[o]=i)}switch(t.childNodes&&(n.childNodes=new un),n.ownerDocument=e,n.nodeType){case Yr:var s=t.attributes,a=n.attributes=new hn,l=s.length;a._ownerElement=n;for(var c=0;c<l;c++)n.setAttributeNode(Qn(e,s.item(c),!0));break;case Kr:r=!0}if(r)for(var u=t.firstChild;u;)n.appendChild(Qn(e,u,r)),u=u.nextSibling;return n}function Zn(e,t,r){e[t]=r}un.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e){for(var t=[],r=0;r<this.length;r++)Jn(this[r],t,e);return t.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},un.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},dn.prototype.item=function(e){return pn(this),this[e]||null},$r(dn,un),hn.prototype={length:0,item:un.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var t=0;t<this.length;){var r=this[t];if(r.nodeName===e)return r;t++}return null},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!==this._ownerElement)throw new Ur(Ur.INUSE_ATTRIBUTE_ERR);var r=this.getNamedItemNS(e.namespaceURI,e.localName);return r===e?e:(fn(this._ownerElement,this,e,r),r)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var t=this.getNamedItem(e);if(!t)throw new Ur(Ur.NOT_FOUND_ERR,e);return gn(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);if(!r)throw new Ur(Ur.NOT_FOUND_ERR,e?e+" : "+t:t);return gn(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){e||(e=null);for(var r=0;r<this.length;){var n=this[r];if(n.localName===t&&n.namespaceURI===e)return n;r++}return null}},hn.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},vn.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var n=Dr.XML_APPLICATION;e===Lr.HTML?n=Dr.XML_XHTML_APPLICATION:e===Lr.SVG&&(n=Dr.XML_SVG_IMAGE);var o=new En(Mr,{contentType:n});if(o.implementation=this,o.childNodes=new un,o.doctype=r||null,r&&o.appendChild(r),t){var i=o.createElementNS(e,t);o.appendChild(i)}return o},createDocumentType:function(e,t,r,n){Hr(e);var o=new Fn(Mr);return o.name=e,o.nodeName=e,o.publicId=t||"",o.systemId=r||"",o.internalSubset=n||"",o.childNodes=new un,o},createHTMLDocument:function(e){var t=new En(Mr,{contentType:Dr.HTML});if(t.implementation=this,t.childNodes=new un,!1!==e){t.doctype=this.createDocumentType("html"),t.doctype.ownerDocument=t,t.appendChild(t.doctype);var r=t.createElement("html");t.appendChild(r);var n=t.createElement("head");if(r.appendChild(n),"string"==typeof e){var o=t.createElement("title");o.appendChild(t.createTextNode(e)),n.appendChild(o)}r.appendChild(t.createElement("body"))}return t}},bn.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var e=this.getRootNode();return e&&e.nodeType===e.DOCUMENT_NODE},contains:function(e){if(!e)return!1;var t=e;do{if(this===t)return!0;t=e.parentNode}while(t);return!1},getRootNode:function(e){var t=this;do{if(!t.parentNode)return t;t=t.parentNode}while(t)},isEqualNode:function(e){if(!e)return!1;if(this.nodeType!==e.nodeType)return!1;switch(this.nodeType){case this.DOCUMENT_TYPE_NODE:if(this.name!==e.name)return!1;if(this.publicId!==e.publicId)return!1;if(this.systemId!==e.systemId)return!1;break;case this.ELEMENT_NODE:if(this.namespaceURI!==e.namespaceURI)return!1;if(this.prefix!==e.prefix)return!1;if(this.localName!==e.localName)return!1;if(this.attributes.length!==e.attributes.length)return!1;for(var t=0;t<this.attributes.length;t++){var r=this.attributes.item(t);if(!r.isEqualNode(e.getAttributeNodeNS(r.namespaceURI,r.localName)))return!1}break;case this.ATTRIBUTE_NODE:if(this.namespaceURI!==e.namespaceURI)return!1;if(this.localName!==e.localName)return!1;if(this.value!==e.value)return!1;break;case this.PROCESSING_INSTRUCTION_NODE:if(this.target!==e.target||this.data!==e.data)return!1;break;case this.TEXT_NODE:case this.COMMENT_NODE:if(this.data!==e.data)return!1}if(this.childNodes.length!==e.childNodes.length)return!1;for(t=0;t<this.childNodes.length;t++)if(!this.childNodes[t].isEqualNode(e.childNodes[t]))return!1;return!0},isSameNode:function(e){return this===e},insertBefore:function(e,t){return Ln(this,e,t)},replaceChild:function(e,t){Ln(this,e,t,Dn),t&&this.removeChild(t)},removeChild:function(e){return _n(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Qn(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==Jr&&e.nodeType==Jr?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r)for(var n in r)if(Or(r,n)&&r[n]===e)return n;t=t.nodeType==Kr?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Or(r,e))return r[e];t=t.nodeType==Kr?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)},compareDocumentPosition:function(e){if(this===e)return 0;var t=e,r=this,n=null,o=null;if(t instanceof kn&&(t=(n=t).ownerElement),r instanceof kn&&(r=(o=r).ownerElement,n&&t&&r===t))for(var i,s=0;i=r.attributes[s];s++){if(i===n)return an.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+an.DOCUMENT_POSITION_PRECEDING;if(i===o)return an.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+an.DOCUMENT_POSITION_FOLLOWING}if(!t||!r||r.ownerDocument!==t.ownerDocument)return an.DOCUMENT_POSITION_DISCONNECTED+an.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(cn(r.ownerDocument)>cn(t.ownerDocument)?an.DOCUMENT_POSITION_FOLLOWING:an.DOCUMENT_POSITION_PRECEDING);if(o&&t===r)return an.DOCUMENT_POSITION_CONTAINS+an.DOCUMENT_POSITION_PRECEDING;if(n&&t===r)return an.DOCUMENT_POSITION_CONTAINED_BY+an.DOCUMENT_POSITION_FOLLOWING;for(var a=[],l=t.parentNode;l;){if(!o&&l===r)return an.DOCUMENT_POSITION_CONTAINED_BY+an.DOCUMENT_POSITION_FOLLOWING;a.push(l),l=l.parentNode}a.reverse();for(var c=[],u=r.parentNode;u;){if(!n&&u===t)return an.DOCUMENT_POSITION_CONTAINS+an.DOCUMENT_POSITION_PRECEDING;c.push(u),u=u.parentNode}c.reverse();var d=ln(a,c);for(var p in d.childNodes){var h=d.childNodes[p];if(h===r)return an.DOCUMENT_POSITION_FOLLOWING;if(h===t)return an.DOCUMENT_POSITION_PRECEDING;if(c.indexOf(h)>=0)return an.DOCUMENT_POSITION_FOLLOWING;if(a.indexOf(h)>=0)return an.DOCUMENT_POSITION_PRECEDING}return 0}},Wr(zr,bn),Wr(zr,bn.prototype),Wr(an,bn),Wr(an,bn.prototype),En.prototype={implementation:null,nodeName:"#document",nodeType:rn,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType===on){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return Ln(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===Yr&&(this.documentElement=e),e},removeChild:function(e){var t=_n(this,e);return t===this.documentElement&&(this.documentElement=null),t},replaceChild:function(e,t){Ln(this,e,t,Dn),e.ownerDocument=this,t&&this.removeChild(t),xn(e)&&(this.documentElement=e)},importNode:function(e,t){return Xn(this,e,t)},getElementById:function(e){var t=null;return wn(this.documentElement,(function(r){if(r.nodeType==Yr&&r.getAttribute("id")==e)return t=r,!0})),t},createElement:function(e){var t=new Mn(Mr);return t.ownerDocument=this,"html"===this.type&&(e=e.toLowerCase()),Ar(this.contentType)&&(t.namespaceURI=Lr.HTML),t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new un,(t.attributes=new hn)._ownerElement=t,t},createDocumentFragment:function(){var e=new Vn(Mr);return e.ownerDocument=this,e.childNodes=new un,e},createTextNode:function(e){var t=new Pn(Mr);return t.ownerDocument=this,t.childNodes=new un,t.appendData(e),t},createComment:function(e){var t=new qn(Mr);return t.ownerDocument=this,t.childNodes=new un,t.appendData(e),t},createCDATASection:function(e){var t=new Bn(Mr);return t.ownerDocument=this,t.childNodes=new un,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new Wn(Mr);return r.ownerDocument=this,r.childNodes=new un,r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){if(!qr.QName_exact.test(e))throw new Ur(Ur.INVALID_CHARACTER_ERR,'invalid character in name "'+e+'"');return"html"===this.type&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var t=new kn(Mr);return t.ownerDocument=this,t.childNodes=new un,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!qr.Name.test(e))throw new Ur(Ur.INVALID_CHARACTER_ERR,'not a valid xml name "'+e+'"');if("html"===this.type)throw new Ur("document is an html document",Pr.NotSupportedError);var t=new Hn(Mr);return t.ownerDocument=this,t.childNodes=new un,t.nodeName=e,t},createElementNS:function(e,t){var r=Vr(e,t),n=new Mn(Mr),o=n.attributes=new hn;return n.childNodes=new un,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],o._ownerElement=n,n},createAttributeNS:function(e,t){var r=Vr(e,t),n=new kn(Mr);return n.ownerDocument=this,n.childNodes=new un,n.nodeName=t,n.name=t,n.specified=!0,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],n}},$r(En,bn),Mn.prototype={nodeType:Yr,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return"html"===this.ownerDocument.type&&this.namespaceURI===Lr.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(e){return!!this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t?t.value:null},getAttributeNode:function(e){return this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase()),this.attributes.getNamedItem(e)},setAttribute:function(e,t){this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());var r=this.getAttributeNode(e);r?r.value=r.nodeValue=""+t:((r=this.ownerDocument._createAttribute(e)).value=r.nodeValue=""+t,this.setAttributeNode(r))},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r?r.value:null},setAttributeNS:function(e,t,r){var n=Vr(e,t)[2],o=this.getAttributeNodeNS(e,n);o?o.value=o.nodeValue=""+r:((o=this.ownerDocument.createAttributeNS(e,t)).value=o.nodeValue=""+r,this.setAttributeNode(o))},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByClassName:function(e){var t=Gr(e);return new dn(this,(function(r){var n=[];return t.length>0&&wn(r,(function(o){if(o!==r&&o.nodeType===Yr){var i=o.getAttribute("class");if(i){var s=e===i;if(!s){var a=Gr(i);s=t.every((l=a,function(e){return l&&-1!==l.indexOf(e)}))}s&&n.push(o)}}var l})),n}))},getElementsByTagName:function(e){var t="html"===(this.nodeType===rn?this:this.ownerDocument).type,r=e.toLowerCase();return new dn(this,(function(n){var o=[];return wn(n,(function(i){i!==n&&i.nodeType===Yr&&(("*"===e||i.getQualifiedName()===(t&&i.namespaceURI===Lr.HTML?r:e))&&o.push(i))})),o}))},getElementsByTagNameNS:function(e,t){return new dn(this,(function(r){var n=[];return wn(r,(function(o){o===r||o.nodeType!==Yr||"*"!==e&&o.namespaceURI!==e||"*"!==t&&o.localName!=t||n.push(o)})),n}))}},En.prototype.getElementsByClassName=Mn.prototype.getElementsByClassName,En.prototype.getElementsByTagName=Mn.prototype.getElementsByTagName,En.prototype.getElementsByTagNameNS=Mn.prototype.getElementsByTagNameNS,$r(Mn,bn),kn.prototype.nodeType=Kr,$r(kn,bn),Un.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},$r(Un,bn),Pn.prototype={nodeName:"#text",nodeType:Jr,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},$r(Pn,Un),qn.prototype={nodeName:"#comment",nodeType:tn},$r(qn,Un),Bn.prototype={nodeName:"#cdata-section",nodeType:Xr},$r(Bn,Pn),Fn.prototype.nodeType=nn,$r(Fn,bn),jn.prototype.nodeType=sn,$r(jn,bn),Gn.prototype.nodeType=Zr,$r(Gn,bn),Hn.prototype.nodeType=Qr,$r(Hn,bn),Vn.prototype.nodeName="#document-fragment",Vn.prototype.nodeType=on,$r(Vn,bn),Wn.prototype.nodeType=en,$r(Wn,Un),$n.prototype.serializeToString=function(e,t){return zn.call(e,t)},bn.prototype.toString=zn;try{if(Object.defineProperty){let e=function(t){switch(t.nodeType){case Yr:case on:var r=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&r.push(e(t)),t=t.nextSibling;return r.join("");default:return t.nodeValue}};Object.defineProperty(dn.prototype,"length",{get:function(){return pn(this),this.$$length}}),Object.defineProperty(bn.prototype,"textContent",{get:function(){return e(this)},set:function(e){switch(this.nodeType){case Yr:case on:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Zn=function(e,t,r){e["$$"+t]=r}}}catch(Xo){}gt._updateLiveList=pn,gt.Attr=kn,gt.CDATASection=Bn,gt.CharacterData=Un,gt.Comment=qn,gt.Document=En,gt.DocumentFragment=Vn,gt.DocumentType=Fn,gt.DOMImplementation=vn,gt.Element=Mn,gt.Entity=Gn,gt.EntityReference=Hn,gt.LiveNodeList=dn,gt.NamedNodeMap=hn,gt.Node=bn,gt.NodeList=un,gt.Notation=jn,gt.Text=Pn,gt.ProcessingInstruction=Wn,gt.XMLSerializer=$n;var eo={},to={};!function(e){var t=Je.freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES}(to);var ro={},no=Je,oo=vt,io=st,so=no.isHTMLEscapableRawTextElement,ao=no.isHTMLMimeType,lo=no.isHTMLRawTextElement,co=no.hasOwn,uo=no.NAMESPACE,po=io.ParseError,ho=io.DOMException;function mo(){}mo.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),wo(t,t=Object.create(null)),function(e,t,r,n,o){var i=ao(n.mimeType);e.indexOf(oo.UNICODE_REPLACEMENT_CHARACTER)>=0&&o.warning("Unicode replacement character detected, source encoding issues?");function s(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}function a(e){var t=";"===e[e.length-1]?e:e+";";if(!i&&t!==e)return o.error("EntityRef: expecting ;"),e;var n=oo.Reference.exec(t);if(!n||n[0].length!==t.length)return o.error("entity not matching Reference production: "+e),e;var a=t.slice(1,-1);return co(r,a)?r[a]:"#"===a.charAt(0)?s(parseInt(a.substring(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function l(t){if(t>g){var r=e.substring(g,t).replace(fo,a);p&&h(g),n.characters(r,0,t-g),g=t}}var c=0,u=0,d=/\r\n?|\n|$/g,p=n.locator;function h(t,r){for(;t>=u&&(r=d.exec(e));)c=u,u=r.index+r[0].length,p.lineNumber++;p.columnNumber=t-c+1}var m=[{currentNSMap:t}],f=[],g=0;for(;;){try{var v=e.indexOf("<",g);if(v<0){if(!i&&f.length>0)return o.fatalError("unclosed xml tag(s): "+f.join(", "));if(!e.substring(g).match(/^\s*$/)){var b=n.doc,y=b.createTextNode(e.substring(g));if(b.documentElement)return o.error("Extra content at the end of the document");b.appendChild(y),n.currentElement=y}return}if(v>g){var w=e.substring(g,v);i||0!==f.length||(w=w.replace(new RegExp(oo.S_OPT.source,"g"),""))&&o.error("Unexpected content outside root element: '"+w+"'"),l(v)}switch(e.charAt(v+1)){case"/":var E=e.indexOf(">",v+2),T=e.substring(v+2,E>0?E:void 0);if(!T)return o.fatalError("end tag name missing");var N=E>0&&oo.reg("^",oo.QName_group,oo.S_OPT,"$").exec(T);if(!N)return o.fatalError('end tag name contains invalid characters: "'+T+'"');if(!n.currentElement&&!n.doc.documentElement)return;var _=f[f.length-1]||n.currentElement.tagName||n.doc.documentElement.tagName||"";if(_!==N[1]){var S=N[1].toLowerCase();if(!i||_.toLowerCase()!==S)return o.fatalError('Opening and ending tag mismatch: "'+_+'" != "'+T+'"')}var x=m.pop();f.pop();var A=x.localNSMap;if(n.endElement(x.uri,x.localName,_),A)for(var O in A)co(A,O)&&n.endPrefixMapping(O);E++;break;case"?":p&&h(v),E=No(e,v,n,o);break;case"!":p&&h(v),E=To(e,v,n,o,i);break;default:p&&h(v);var R=new _o,I=m[m.length-1].currentNSMap,C=(E=vo(e,v,R,I,a,o,i),R.length);if(R.closed||(i&&no.isHTMLVoidElement(R.tagName)?R.closed=!0:f.push(R.tagName)),p&&C){for(var D=go(p,{}),L=0;L<C;L++){var M=R[L];h(M.offset),M.locator=go(p,{})}n.locator=D,bo(R,n,I)&&m.push(R),n.locator=p}else bo(R,n,I)&&m.push(R);i&&!R.closed?E=yo(e,E,R.tagName,a,n):E++}}catch(Xo){if(Xo instanceof po)throw Xo;if(Xo instanceof ho)throw new po(Xo.name+": "+Xo.message,n.locator,Xo);o.error("element parse error: "+Xo),E=-1}E>g?g=E:l(Math.max(v,g)+1)}}(e,t,r,n,this.errorHandler),n.endDocument()}};var fo=/&#?\w+;?/g;function go(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function vo(e,t,r,n,o,i,s){function a(e,t,n){return co(r.attributeNames,e)?i.fatalError("Attribute "+e+" redefined"):!s&&t.indexOf("<")>=0?i.fatalError("Unescaped '<' not allowed in attributes values"):void r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(fo,o),n)}for(var l,c=++t,u=0;;){var d=e.charAt(c);switch(d){case"=":if(1===u)l=e.slice(t,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(i.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,!((c=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");a(l,p=e.slice(t,c),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');a(l,p=e.slice(t,c),t),i.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),0==u&&r.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(p=e.slice(t,c)).slice(-1)&&(r.closed=!0,p=p.slice(0,-1));case 2:2===u&&(p=l),4==u?(i.warning('attribute "'+p+'" missed quot(")!'),a(l,p,t)):(s||i.warning('attribute "'+p+'" missed value!! "'+p+'" instead!!'),a(p,p,t));break;case 3:if(!s)return i.fatalError("AttValue: ' or \" expected")}return c;case"":d=" ";default:if(d<=" ")switch(u){case 0:r.setTagName(e.slice(t,c)),u=6;break;case 1:l=e.slice(t,c),u=2;break;case 4:var p=e.slice(t,c);i.warning('attribute "'+p+'" missed quot(")!!'),a(l,p,t);case 5:u=6}else switch(u){case 2:s||i.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),a(l,l,t),t=c,u=1;break;case 5:i.warning('attribute space is required"'+l+'"!!');case 6:u=1,t=c;break;case 3:u=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function bo(e,t,r){for(var n=e.tagName,o=null,i=e.length;i--;){var s=e[i],a=s.qName,l=s.value;if((p=a.indexOf(":"))>0)var c=s.prefix=a.slice(0,p),u=a.slice(p+1),d="xmlns"===c&&u;else u=a,c=null,d="xmlns"===a&&"";s.localName=u,!1!==d&&(null==o&&(o=Object.create(null),wo(r,r=Object.create(null))),r[d]=o[d]=l,s.uri=uo.XMLNS,t.startPrefixMapping(d,l))}for(i=e.length;i--;)(s=e[i]).prefix&&("xml"===s.prefix&&(s.uri=uo.XML),"xmlns"!==s.prefix&&(s.uri=r[s.prefix]));var p;(p=n.indexOf(":"))>0?(c=e.prefix=n.slice(0,p),u=e.localName=n.slice(p+1)):(c=null,u=e.localName=n);var h=e.uri=r[c||""];if(t.startElement(h,u,n,e),!e.closed)return e.currentNSMap=r,e.localNSMap=o,!0;if(t.endElement(h,u,n),o)for(c in o)co(o,c)&&t.endPrefixMapping(c)}function yo(e,t,r,n,o){var i=so(r);if(i||lo(r)){var s=e.indexOf("</"+r+">",t),a=e.substring(t+1,s);return i&&(a=a.replace(fo,n)),o.characters(a,0,a.length),s}return t+1}function wo(e,t){for(var r in e)co(e,r)&&(t[r]=e[r])}function Eo(e,t){var r=t;function n(t){return t=t||0,e.charAt(r+t)}function o(e){r+=e=e||1}function i(){return e.substring(r)}return{char:n,getIndex:function(){return r},getMatch:function(e){var t=oo.reg("^",e).exec(i());return t?(o(t[0].length),t[0]):null},getSource:function(){return e},skip:o,skipBlanks:function(){for(var t=0;r<e.length;){var i=n();if(" "!==i&&"\n"!==i&&"\t"!==i&&"\r"!==i)return t;t++,o()}return-1},substringFromIndex:i,substringStartsWith:function(t){return e.substring(r,r+t.length)===t},substringStartsWithCaseInsensitive:function(t){return e.substring(r,r+t.length).toUpperCase()===t.toUpperCase()}}}function To(e,t,r,n,o){var i=Eo(e,t);switch(o?i.char(2).toUpperCase():i.char(2)){case"-":var s=i.getMatch(oo.Comment);return s?(r.comment(s,oo.COMMENT_START.length,s.length-oo.COMMENT_START.length-oo.COMMENT_END.length),i.getIndex()):n.fatalError("comment is not well-formed at position "+i.getIndex());case"[":var a=i.getMatch(oo.CDSect);return a?o||r.currentElement?(r.startCDATA(),r.characters(a,oo.CDATA_START.length,a.length-oo.CDATA_START.length-oo.CDATA_END.length),r.endCDATA(),i.getIndex()):n.fatalError("CDATA outside of element"):n.fatalError("Invalid CDATA starting at position "+t);case"D":if(r.doc&&r.doc.documentElement)return n.fatalError("Doctype not allowed inside or after documentElement at position "+i.getIndex());if(o?!i.substringStartsWithCaseInsensitive(oo.DOCTYPE_DECL_START):!i.substringStartsWith(oo.DOCTYPE_DECL_START))return n.fatalError("Expected "+oo.DOCTYPE_DECL_START+" at position "+i.getIndex());if(i.skip(oo.DOCTYPE_DECL_START.length),i.skipBlanks()<1)return n.fatalError("Expected whitespace after "+oo.DOCTYPE_DECL_START+" at position "+i.getIndex());var l={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(l.name=i.getMatch(oo.Name),!l.name)return n.fatalError("doctype name missing or contains unexpected characters at position "+i.getIndex());if(o&&"html"!==l.name.toLowerCase()&&n.warning("Unexpected DOCTYPE in HTML document at position "+i.getIndex()),i.skipBlanks(),i.substringStartsWith(oo.PUBLIC)||i.substringStartsWith(oo.SYSTEM)){var c=oo.ExternalID_match.exec(i.substringFromIndex());if(!c)return n.fatalError("doctype external id is not well-formed at position "+i.getIndex());void 0!==c.groups.SystemLiteralOnly?l.systemId=c.groups.SystemLiteralOnly:(l.systemId=c.groups.SystemLiteral,l.publicId=c.groups.PubidLiteral),i.skip(c[0].length)}else if(o&&i.substringStartsWithCaseInsensitive(oo.SYSTEM)){if(i.skip(oo.SYSTEM.length),i.skipBlanks()<1)return n.fatalError("Expected whitespace after "+oo.SYSTEM+" at position "+i.getIndex());if(l.systemId=i.getMatch(oo.ABOUT_LEGACY_COMPAT_SystemLiteral),!l.systemId)return n.fatalError("Expected "+oo.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+oo.SYSTEM+" at position "+i.getIndex())}return o&&l.systemId&&!oo.ABOUT_LEGACY_COMPAT_SystemLiteral.test(l.systemId)&&n.warning("Unexpected doctype.systemId in HTML document at position "+i.getIndex()),o||(i.skipBlanks(),l.internalSubset=function(e,t){var r,n,o,i=e.getSource();if("["===e.char()){e.skip(1);for(var s=e.getIndex();e.getIndex()<i.length;){if(e.skipBlanks(),"]"===e.char()){var a=i.substring(s,e.getIndex());return e.skip(1),a}var l=null;if("<"===e.char()&&"!"===e.char(1))switch(e.char(2)){case"E":"L"===e.char(3)?l=e.getMatch(oo.elementdecl):"N"===e.char(3)&&(l=e.getMatch(oo.EntityDecl));break;case"A":l=e.getMatch(oo.AttlistDecl);break;case"N":l=e.getMatch(oo.NotationDecl);break;case"-":l=e.getMatch(oo.Comment)}else if("<"===e.char()&&"?"===e.char(1))r=e,n=t,o=void 0,l=(o=oo.PI.exec(r.substringFromIndex()))?"xml"===o[1].toLowerCase()?n.fatalError("xml declaration is only allowed at the start of the document, but found at position "+r.getIndex()):(r.skip(o[0].length),o[0]):n.fatalError("processing instruction is not well-formed at position "+r.getIndex());else{if("%"!==e.char())return t.fatalError("Error detected in Markup declaration");l=e.getMatch(oo.PEReference)}if(!l)return t.fatalError("Error in internal subset at position "+e.getIndex())}return t.fatalError("doctype internal subset is not well-formed, missing ]")}}(i,n)),i.skipBlanks(),">"!==i.char()?n.fatalError("doctype not terminated with > at position "+i.getIndex()):(i.skip(1),r.startDTD(l.name,l.publicId,l.systemId,l.internalSubset),r.endDTD(),i.getIndex());default:return n.fatalError('Not well-formed XML starting with "<!" at position '+t)}}function No(e,t,r,n){var o=e.substring(t).match(oo.PI);if(!o)return n.fatalError("Invalid processing instruction starting at position "+t);if("xml"===o[1].toLowerCase()){if(t>0)return n.fatalError("processing instruction at position "+t+" is an xml declaration which is only at the start of the document");if(!oo.XMLDecl.test(e.substring(t)))return n.fatalError("xml declaration is not well-formed")}return r.processingInstruction(o[1],o[2]),t+o[0].length}function _o(){this.attributeNames=Object.create(null)}_o.prototype={setTagName:function(e){if(!oo.QName_exact.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!oo.QName_exact.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},ro.XMLReader=mo,ro.parseUtils=Eo,ro.parseDoctypeCommentOrCData=To;var So=Je,xo=st,Ao=to,Oo=ro,Ro=gt.DOMImplementation,Io=So.hasDefaultHTMLNamespace,Co=So.isHTMLMimeType,Do=So.isValidMimeType,Lo=So.MIME_TYPE,Mo=So.NAMESPACE,ko=xo.ParseError,Uo=Oo.XMLReader;function Po(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028\u2029]/g,"\n")}function qo(e){if(void 0===(e=e||{}).locator&&(e.locator=!0),this.assign=e.assign||So.assign,this.domHandler=e.domHandler||Bo,this.onError=e.onError||e.errorHandler,e.errorHandler&&"function"!=typeof e.errorHandler)throw new TypeError("errorHandler object is no longer supported, switch to onError!");e.errorHandler&&e.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=e.normalizeLineEndings||Po,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}function Bo(e){var t=e||{};this.mimeType=t.mimeType||Lo.XML_APPLICATION,this.defaultNamespace=t.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=t.onError}function Fo(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function jo(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function Go(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}qo.prototype.parseFromString=function(e,t){if(!Do(t))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+t+'" is not valid.');var r=this.assign(Object.create(null),this.xmlns),n=Ao.XML_ENTITIES,o=r[""]||null;Io(t)?(n=Ao.HTML_ENTITIES,o=Mo.HTML):t===Lo.XML_SVG_IMAGE&&(o=Mo.SVG),r[""]=o,r.xml=r.xml||Mo.XML;var i=new this.domHandler({mimeType:t,defaultNamespace:o,onError:this.onError}),s=this.locator?{}:void 0;this.locator&&i.setDocumentLocator(s);var a=new Uo;return a.errorHandler=i,a.domBuilder=i,!So.isHTMLMimeType(t)&&"string"!=typeof e&&a.errorHandler.fatalError("source is not a string"),a.parse(this.normalizeLineEndings(String(e)),r,n),i.doc.documentElement||a.errorHandler.fatalError("missing root element"),i.doc},Bo.prototype={startDocument:function(){var e=new Ro;this.doc=Co(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,"")},startElement:function(e,t,r,n){var o=this.doc,i=o.createElementNS(e,r||t),s=n.length;Go(this,i),this.currentElement=i,this.locator&&Fo(this.locator,i);for(var a=0;a<s;a++){e=n.getURI(a);var l=n.getValue(a),c=(r=n.getQName(a),o.createAttributeNS(e,r));this.locator&&Fo(n.getLocator(a),c),c.value=c.nodeValue=l,i.setAttributeNode(c)}},endElement:function(e,t,r){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&Fo(this.locator,r),Go(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=jo.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&Fo(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,r){e=jo.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&Fo(this.locator,n),Go(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r,n){var o=this.doc.implementation;if(o&&o.createDocumentType){var i=o.createDocumentType(e,t,r,n);this.locator&&Fo(this.locator,i),Go(this,i),this.doc.doctype=i}},reportError:function(e,t){if("function"==typeof this.onError)try{this.onError(e,t,this)}catch(Xo){throw new ko("Reporting "+e+' "'+t+'" caused '+Xo,this.locator)}else console.error("[xmldom "+e+"]\t"+t,function(e){if(e)return"\n@#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}(this.locator))},warning:function(e){this.reportError("warning",e)},error:function(e){this.reportError("error",e)},fatalError:function(e){throw this.reportError("fatalError",e),new ko(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){Bo.prototype[e]=function(){return null}})),eo.__DOMHandler=Bo,eo.DOMParser=qo,eo.normalizeLineEndings=Po,eo.onErrorStopParsing=function(e){if("error"===e)throw"onErrorStopParsing"},eo.onWarningStopParsing=function(){throw"onWarningStopParsing"};var Ho=Je;Ho.assign,Ho.hasDefaultHTMLNamespace,Ho.isHTMLMimeType,Ho.isValidMimeType,Ho.MIME_TYPE,Ho.NAMESPACE;var Vo=eo.DOMParser;function Wo(e){const t=e.coordinates,r=t[0],n=t[t.length-1];return{type:"Polygon",coordinates:[r[0]===n[0]&&r[1]===n[1]?t:[...t,r]]}}const $o=Object.freeze(Object.defineProperty({__proto__:null,lineStringToPolygon:Wo,osmStringToGeojson:function(e){const t=(new Vo).parseFromString(e,"text/xml");return Ke(t)}},Symbol.toStringTag,{value:"Module"}));const zo=class e{static parsePointProperties(e){return e.properties?{...e.id&&{externalId:e.id},...l.OsmTagsUtils.elementName(e.properties)&&{name:l.OsmTagsUtils.elementName(e.properties)},...l.OsmTagsUtils.isGate(e.properties)&&{isGate:!0},...l.OsmTagsUtils.isSubwayEntrance(e.properties)&&{isSubwayEntrance:!0},...l.OsmTagsUtils.getRef(e.properties)&&{subwayEntrsanceRef:l.OsmTagsUtils.getRef(e.properties)},...l.OsmTagsUtils.isElevator(e.properties)&&{isElevator:!0},...l.OsmTagsUtils.isTurnstile(e.properties)&&{isTurnstile:!0}}:{...e.id&&{externalId:e.id}}}static parseLineStringProperties(e){if(!e.properties)return{...e.id&&{externalId:e.id}};let t=l.OsmTagsUtils.getWheelchair(e.properties);return"limited"===t&&(t=void 0),{...e.properties.id&&{externalId:e.properties.id},...e.id&&{externalId:e.id},...l.OsmTagsUtils.elementName(e.properties)&&{name:l.OsmTagsUtils.elementName(e.properties)},...l.OsmTagsUtils.isOneway(e.properties)&&{isOneway:!0},...l.OsmTagsUtils.areStairs(e.properties)&&{areStairs:!0},...l.OsmTagsUtils.isElevator(e.properties)&&{isElevator:!0},...l.OsmTagsUtils.isEscalator(e.properties)&&{areEscalators:!0},...l.OsmTagsUtils.isMovingWalkway(e.properties)&&{isMovingWalkway:!0},...l.OsmTagsUtils.needTicket(e.properties)&&{needTicket:!0},...l.OsmTagsUtils.getIncline(e.properties)&&{incline:l.OsmTagsUtils.getIncline(e.properties)},...t&&{wheelchair:t},...l.OsmTagsUtils.getSmoothness(e.properties)&&{smoothness:l.OsmTagsUtils.getSmoothness(e.properties)},...l.OsmTagsUtils.getSurface(e.properties)&&{surface:l.OsmTagsUtils.getSurface(e.properties)}}}static createGraphFromGeojsonString(e){const t=JSON.parse(e);return this.createGraphFromGeojson(t)}static createGraphFromGeojson(t,n=e.DEFAULT_FEATURE_SELECTOR){const o=function(e){return"FeatureCollection"===e.type?e.features:"Feature"===e.type?[e]:[{type:"Feature",geometry:e,properties:{}}]}(t),i=o.filter(n),s=[],a=[];let c=0;const d=(e,t)=>{const n=new r.Coordinates(e[1],e[0],null,t);let o=a.find((e=>!!e.coords.equalsWithoutLevel(n)&&(!!r.Level.intersect(e.coords.level,t)||(null===e.coords.level||null===t))))||null;return o?(r.Level.equals(o.coords.level,t)||(o.coords.level=r.Level.intersection(o.coords.level,t),null===o.coords.level&&(o.coords.level=t)),o):(o=new p(n),o.id=c++,a.push(o),o)};i.filter((e=>"LineString"===e.geometry.type)).forEach((e=>{const t=e.geometry,n=e.properties||{},o=this.parseLineStringProperties(e),i="level"in n?n.level:null,a=e=>{for(let r=1;r<t.coordinates.length;r++){let i=d(t.coordinates[r-1],e),a=d(t.coordinates[r],e);if(l.OsmTagsUtils.isOnewayBackward(n)){const e=a;a=i,i=e}const c=new u(i,a,o);s.push(c)}};a(r.Level.fromString(i)),"repeat_on"in n&&n.repeat_on.split(";").map(r.Level.fromString).forEach(a)}));const m=[],f=[];o.filter((e=>"Point"===e.geometry.type)).forEach((e=>{const t=e.properties||{},n=e.geometry,o="level"in t?t.level:null,i=r.Level.fromString(o),s=new r.Coordinates(n.coordinates[1],n.coordinates[0],null,i),c=a.filter((e=>!!r.Coordinates.equalsWithoutLevel(e.coords,s)&&(!!r.Level.intersect(e.coords.level,i)||(null===e.coords.level||null===i))));if(c.forEach((t=>{t.properties=this.parsePointProperties(e),null!==i&&(t.coords.level=r.Level.union(t.coords.level,i))})),l.OsmTagsUtils.isElevator(t)){const e=((e,t)=>{const n=new r.Coordinates(e[1],e[0],null,t),o=[];return a.forEach((e=>{r.Coordinates.equalsWithoutLevel(e.coords,n)&&r.Level.intersect(e.coords.level,t)&&o.push(e)})),o})(n.coordinates,i);e.length>0&&m.push({vertices:e,props:{name:t.name,isElevator:!0,externalId:t.id}})}l.OsmTagsUtils.isRoutingBoundsEntryPoint(t)&&c.forEach((e=>{f.push(e)}))})),o.filter((e=>"Polygon"===e.geometry.type&&e.properties&&l.OsmTagsUtils.isElevator(e.properties))).forEach((e=>{var t,n;const o=e,i=o.geometry.coordinates[0].map((e=>a.filter((t=>t.coords.equalsWithoutLevel(new r.Coordinates(e[1],e[0],null,t.coords.level)))))).flat(),l=o.geometry.coordinates[0].slice(0,-1),c=l.reduce(((e,t)=>[e[0]+t[0],e[1]+t[1]]),[0,0]).map((e=>e/l.length)),p=i.reduce(((e,t)=>r.Level.union(e,t.coords.level)),null),h=new r.Coordinates(c[1],c[0],null,p),f=[];i.forEach((t=>{var r;const n=d([h.lng,h.lat],t.coords.level);s.push(new u(n,t,{externalId:null==(r=e.properties)?void 0:r.id})),f.push(n)})),m.push({vertices:f,props:{name:null==(t=e.properties)?void 0:t.name,isElevator:!0,externalId:null==(n=e.properties)?void 0:n.id}})})),m.forEach((({vertices:e,props:t})=>{for(let r=0;r<e.length;r++)for(let n=r+1;n<e.length;n++)s.push(new u(e[r],e[n],t));if(1===e.length&&null===e[0].coords.level){const r=e[0],n=s.filter((e=>e.vertex1===r||e.vertex2===r));if(n.length>1){const e=[r];for(let t=1;t<n.length;t++){const o=new p(r.coords,r.properties);o.id=c++,a.push(o),n[t].vertex1===r?n[t].vertex1=o:n[t].vertex2=o,e.push(o)}for(let r=0;r<e.length;r++)for(let n=r+1;n<e.length;n++)s.push(new u(e[r],e[n],t))}}}));const g={type:"MultiPolygon",coordinates:[]};return o.filter((e=>e.properties&&l.OsmTagsUtils.isRoutingBounds(e.properties))).forEach((e=>{if("LineString"===e.geometry.type){const t=Wo(e.geometry);g.coordinates.push(t.coordinates)}else"Polygon"===e.geometry.type?g.coordinates.push(e.geometry.coordinates):"MultiPolygon"===e.geometry.type&&g.coordinates.push(...e.geometry.coordinates)})),new h(a,s,g.coordinates.length>0?g:void 0,f)}};t(zo,"RESTRICTED_PEDESTRIANS_HIGHWAYS",["motorway","motorway_link"]),t(zo,"DEFAULT_FEATURE_SELECTOR",(e=>{if(!e.properties)return!1;if("LineString"===e.geometry.type){if("yes"===e.properties.foot)return!0;if(["no","private"].includes(e.properties.access))return!1;if("highway"in e.properties)return!zo.RESTRICTED_PEDESTRIANS_HIGHWAYS.includes(e.properties.highway);if("sidewalk"===e.properties.footway)return!0}return!("elevator"!==e.properties.highway||!["Point","Polygon"].includes(e.type))}));let Yo=zo;const Ko=class e{static parseNodeProperties(e){return{...e.id&&{externalId:e.id},...l.OsmTagsUtils.elementName(e.tags)&&{name:l.OsmTagsUtils.elementName(e.tags)},...l.OsmTagsUtils.isGate(e.tags)&&{isGate:!0},...l.OsmTagsUtils.isSubwayEntrance(e.tags)&&{isSubwayEntrance:!0},...l.OsmTagsUtils.getRef(e.tags)&&{subwayEntrsanceRef:l.OsmTagsUtils.getRef(e.tags)},...l.OsmTagsUtils.isTurnstile(e.tags)&&{isTurnstile:!0}}}static parseWayProperties(e){let t=l.OsmTagsUtils.getWheelchair(e.tags);return"limited"===t&&(t=void 0),{...e.id&&{externalId:e.id},...l.OsmTagsUtils.elementName(e.tags)&&{name:l.OsmTagsUtils.elementName(e.tags)},...l.OsmTagsUtils.isOneway(e.tags)&&{isOneway:l.OsmTagsUtils.isOneway(e.tags)},...l.OsmTagsUtils.areStairs(e.tags)&&{areStairs:l.OsmTagsUtils.areStairs(e.tags)},...l.OsmTagsUtils.isElevator(e.tags)&&{isElevator:l.OsmTagsUtils.isElevator(e.tags)},...l.OsmTagsUtils.isEscalator(e.tags)&&{areEscalators:l.OsmTagsUtils.isEscalator(e.tags)},...l.OsmTagsUtils.isMovingWalkway(e.tags)&&{isMovingWalkway:l.OsmTagsUtils.isMovingWalkway(e.tags)},...l.OsmTagsUtils.needTicket(e.tags)&&{needTicket:l.OsmTagsUtils.needTicket(e.tags)},...l.OsmTagsUtils.getIncline(e.tags)&&{incline:l.OsmTagsUtils.getIncline(e.tags)},...t&&{wheelchair:t},...l.OsmTagsUtils.getSmoothness(e.tags)&&{smoothness:l.OsmTagsUtils.getSmoothness(e.tags)},...l.OsmTagsUtils.getSurface(e.tags)&&{surface:l.OsmTagsUtils.getSurface(e.tags)}}}static createGraphFromOsmXmlString(e){const t=l.OsmParser.parseOsmXmlString(e);return this.createGraphFromOsmModel(t)}static createGraphFromOsmModel(t,n=e.DEFAULT_WAY_SELECTOR,o){const i=[],s=[],a=[],c=new Set,d=(e,t)=>{var n;let o=(null==(n=s.find((([n,o])=>n===e.id&&(!!r.Level.intersect(o.coords.level,t)||(null===o.coords.level||null===t)))))?void 0:n[1])||null;if(o)return r.Level.equals(o.coords.level,t)||(o.coords.level=r.Level.intersection(o.coords.level,t),null===o.coords.level&&(o.coords.level=t)),o;const i=new r.Coordinates(e.coords.lat,e.coords.lng,null,t);if(o=new p(i,this.parseNodeProperties(e)),s.push([e.id,o]),l.OsmTagsUtils.isElevator(e.tags)){let t=a.find((([t])=>e.id===t));t||(t=[e.id,e.name,[]],a.push(t)),t[2].push(o)}return l.OsmTagsUtils.isRoutingBoundsEntryPoint(e.tags)&&c.add(o),o};t.ways.forEach((e=>{if(!n(e))return;const t=this.parseWayProperties(e),o=r=>{for(let n=1;n<e.nodes.length;n++){let o=d(e.nodes[n-1],r),s=d(e.nodes[n],r);if(l.OsmTagsUtils.isOnewayBackward(e.tags)){const e=s;s=o,o=e}const a=new u(o,s,t);i.push(a)}};o(e.level),e.tags.repeat_on&&e.tags.repeat_on.split(";").map(r.Level.fromString).forEach(o)}));let m=-1;t.ways.filter((e=>l.OsmTagsUtils.isElevator(e.tags)&&e.isGeometryClosed)).forEach((e=>{const t=e.nodes.map((e=>s.filter((([t])=>t===e.id)).map((e=>e[1])))).flat(),n=e.nodes.reduce(((e,t)=>[e[0]+t.coords.lat,e[1]+t.coords.lng]),[0,0]).map((t=>t/e.nodes.length)),o=t.reduce(((e,t)=>r.Level.union(e,t.coords.level)),null),a=new r.Coordinates(n[0],n[1],null,o),c=new l.OsmNode(m--,a,{highway:"elevator"});t.forEach((t=>{const r=d(c,t.coords.level);i.push(new u(r,t,{externalId:e.id}))}))})),a.forEach((([e,t,r])=>{const n={name:t,isElevator:!0,externalId:e};for(let o=0;o<r.length;o++)for(let e=o+1;e<r.length;e++)i.push(new u(r[o],r[e],n));if(1===r.length&&null===r[0].coords.level){const e=r[0],t=i.filter((t=>t.vertex1===e||t.vertex2===e));if(t.length>1){const r=[e];for(let n=1;n<t.length;n++){const o=new p(e.coords,e.properties);s.push([e.id,o]),t[n].vertex1===e?t[n].vertex1=o:t[n].vertex2=o,r.push(o)}for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)i.push(new u(r[e],r[t],n))}}}));const f={type:"MultiPolygon",coordinates:[]};return t.ways.filter((e=>l.OsmTagsUtils.isRoutingBounds(e.tags))).map((e=>e.getGeoJsonPolygon())).forEach((e=>e&&f.coordinates.push(e.coordinates))),t.relations.filter((e=>l.OsmTagsUtils.isRoutingBounds(e.tags))).map((e=>e.getGeoJsonPolygon())).forEach((e=>e&&f.coordinates.push(e.coordinates))),null==o||o(s),new h(s.map((e=>e[1])),i,f.coordinates.length>0?f:void 0,Array.from(c))}};t(Ko,"RESTRICTED_PEDESTRIANS_HIGHWAYS",["motorway","motorway_link"]),t(Ko,"DEFAULT_WAY_SELECTOR",(e=>{if("yes"===e.tags.area)return!1;if("yes"===e.tags.foot)return!0;if(e.tags.access&&["no","private"].includes(e.tags.access))return!1;const t="elevator"===e.tags.highway&&e.isGeometryClosed;return e.tags.highway&&!Ko.RESTRICTED_PEDESTRIANS_HIGHWAYS.includes(e.tags.highway)&&!t||"sidewalk"===e.tags.footway||"platform"===e.tags.public_transport||"platform"===e.tags.railway}));let Jo=Ko;exports.CitywayRemoteRouter=ue,exports.CustomGraphMap=qe,exports.CustomGraphMapTester=class{static createReportFromOsmXmlString(e){let t;try{t=l.OsmParser.parseOsmXmlString(e)}catch(Xo){return{errors:[{type:"could-not-parse-file",details:Xo instanceof Error?Xo.message:"Unknown error"}]}}const r=new qe(Jo.createGraphFromOsmModel(t));return this.createReportFromCustomGraphMap(r)}static createReportFromGeoJsonString(e){let t;try{t=JSON.parse(e)}catch(Xo){return{errors:[{type:"could-not-parse-file",details:Xo instanceof Error?Xo.message:"Unknown error"}]}}return this.createReportFromGeoJson(t)}static createReportFromGeoJson(e){const t=new qe(Yo.createGraphFromGeojson(e));return this.createReportFromCustomGraphMap(t)}static createReportFromCustomGraphMap(e){const t=e.graph,r=[];t.routingBounds||r.push({type:"routing-bounds-not-found"}),0===t.routingBoundsEntryPoints.length&&r.push({type:"routing-bounds-entry-points-not-found"});const n=e.router.calculateComponents();return n.length>1&&r.push({type:"multiple-graph-components",data:n}),{customGraphMap:e,errors:r}}static reportToJson(e){var t,r;return{graph:null==(r=null==(t=e.customGraphMap)?void 0:t.graph)?void 0:r.toJson(),errors:e.errors.map((e=>"multiple-graph-components"===e.type?{type:e.type,data:e.data.map((e=>e.map((e=>e.id))))}:("routing-bounds-entry-points-not-found"===e.type||e.type,{type:e.type})))}}},exports.DeutscheBahnRemoteRouter=ve,exports.Edge=u,exports.GeoJsonGraphUtils=Yo,exports.GeoJsonUtils=$o,exports.GeoveloRemoteRouter=Te,exports.Graph=h,exports.GraphProjection=d,exports.GraphRoute=w,exports.GraphRouter=J,exports.GraphRouterOptionsBuilder=$,exports.IdfmRemoteRouter=Oe,exports.Itinerary=_,exports.ItineraryInfoManager=class{constructor(e=null){t(this,"_itinerary",null),t(this,"_graph",null),t(this,"_steps",[]),t(this,"_coordsNextStep",[]),t(this,"_coordsPreviousStep",[]),t(this,"_coordsDistanceTraveled",[]),t(this,"_coordsLeg",[]),t(this,"_itineraryDistanceWithoutProjections",0),this.itinerary=e}get itinerary(){return this._itinerary}set itinerary(e){if(null===e)return void(this._itinerary=null);this._itinerary=e,this._steps=e.steps,this._graph=e.toGraph(),this._coordsNextStep=new Array(e.coords.length),this._coordsPreviousStep=new Array(e.coords.length),this._coordsDistanceTraveled=new Array(e.coords.length),this._coordsLeg=new Array(e.coords.length),this._itineraryDistanceWithoutProjections=e.distance;let t=0,r=null,n=this._steps[0],o=0;e.coords.forEach(((i,s,a)=>{0!==s&&(o+=a[s-1].distanceTo(i)),this._coordsNextStep[s]=n,this._coordsPreviousStep[s]=r,this._coordsDistanceTraveled[s]=o,this._coordsLeg[s]=e.legs.find((e=>e.coords.includes(i))),t<this._steps.length&&this._steps[t].coords.equals(i)&&(r=this._steps[t],n=t===this._steps.length-1?null:this._steps[t+1],t++)}))}getInfo(e){if(!this._itinerary||!this._graph)return null;const t=this._graph.getProjection(e);if(!t)return null;let r=null;if(t.nearestElement instanceof p){const e=this._itinerary.coords.findIndex((e=>t.nearestElement.coords===e));if(-1===e)throw new Error("ItineraryInfoManager: could not find projection in itinerary (Node)");const n=this._coordsDistanceTraveled[e],o=n,i=this._itineraryDistanceWithoutProjections-n,s=t.distanceFromNearestElement+i,a=o/(o+s),l=1-a;r={nextStep:this._coordsNextStep[e],previousStep:this._coordsPreviousStep[e],projection:t,leg:this._coordsLeg[e],traveledDistance:n,remainingDistance:s,traveledPercentage:a,remainingPercentage:l}}else if(t.nearestElement instanceof u){let e=t.nearestElement.vertex1.coords,n=this._itinerary.coords.findIndex((t=>e===t));if(-1===n)throw new Error("ItineraryInfoManager: could not find projection in itinerary (Edge)");n!==this._itinerary.coords.length-1&&this._itinerary.coords[n+1]===t.nearestElement.vertex2.coords||(e=t.nearestElement.vertex2.coords,n--);const o=this._coordsDistanceTraveled[n]+t.coords.distanceTo(e),i=o,s=this._itineraryDistanceWithoutProjections-o,a=t.distanceFromNearestElement+s,l=i/(i+a),c=1-l;r={nextStep:this._coordsNextStep[n+1],previousStep:this._coordsPreviousStep[n+1],projection:t,leg:this._coordsLeg[n+1],traveledDistance:i,remainingDistance:a,traveledPercentage:l,remainingPercentage:c}}return r}},exports.Leg=N,exports.NavitiaRemoteRouter=ge,exports.NoRouteFoundError=X,exports.OsmGraphUtils=Jo,exports.OsrmRemoteRouter=Ie,exports.OtpRemoteRouter=Me,exports.RemoteRouterManager=Pe,exports.RemoteRoutingError=re,exports.RoutingError=ee,exports.StatusCode=Z,exports.Vertex=p,exports.WemapMultiRemoteRouter=ke,exports.WemapMultiRouter=class{constructor(){t(this,"maps",[])}get rname(){return"wemap-multi"}addIOMap(e){this.maps.push(e)}removeIOMap(e){this.maps=this.maps.filter((t=>t!==e))}removeAllMaps(){this.maps=[]}getMapByName(e){return this.maps.find((t=>t.name===e))}async getItineraries(e,t=[],r=this.maps){const{origin:n,destination:o}=e;t=t.filter((({name:e})=>e!==ke.rname))||[];const i=r;if(!i.length)return await Pe.getItinerariesWithFallback(e,t);let s,a;const l=i.find((e=>e.isPointInside(n))),c=$.fromJson(e.itineraryModifiers||{});if(l&&l.isPointInside(o)){if(s=l.getRouteInsideMap(n,o,c),!s)throw te.notFound(l.name||"");return[_.fromGraphRoute(s)]}const u=i.find((e=>e.isPointInside(o)));let d;if(!l&&!u)return await Pe.getItinerariesWithFallback(e,t);if(l&&!u){if(!l.entryPoints.length)throw te.notFound(l.name||"",`A map including the "origin" but the "destination" has been \n found (${l.name}), however, no "entrypoints" have been found to go out`);const r=e=>`Tried to calculate an itinerary from "origin" to "entrypoints" using wemap router on local map "${l.name}" and an itinerary from "entrypoints" to "destination" using remote routers (${t.map((e=>e.name)).join(", ")}), but failed. Details: ${e}.`;if(s=l.getBestRouteFromOriginToEntryPoints(n,o,c),!s){const e=`No route found from ${n.toString()} to entry points in map: ${l.name}`;throw te.notFound(l.name||"",r(e))}const i={...e,origin:s.end,destination:o,waypoints:[]};try{d=await Pe.getItinerariesWithFallback(i,t)}catch(Xo){throw Xo instanceof re&&(Xo.message=r(Xo.message)),Xo}return a=_.fromGraphRoute(s),d.map((e=>_.fromItineraries(a,e)))}if(!l&&u){if(!u.entryPoints.length)throw te.notFound(u.name||"",`A map including the "destination" but the "origin" has been \n found (${u.name}), however, no "entrypoints" have been found to go in`);const r=e=>`Tried to calculate an itinerary from "origin" to "entrypoints" using remote routers (${t.map((e=>e.name)).join(", ")}) and an itinerary from "entrypoints" to "destination" using wemap router on local map "${u.name}", but failed. Details: ${e}.`;if(s=u.getBestRouteFromEntryPointsToDestination(n,o,c),!s){const e=`No route found from entry points to ${o.toString()} in map: ${u.name}`;throw te.notFound(u.name||"",r(e))}const i={...e,origin:n,destination:s.start,waypoints:[]};try{d=await Pe.getItinerariesWithFallback(i,t)}catch(Xo){throw Xo instanceof re&&(Xo.message=r(Xo.message)),Xo}return a=_.fromGraphRoute(s),d.map((e=>_.fromItineraries(e,a)))}if(l&&u){if(!l.entryPoints.length)throw te.notFound(l.name||"",`One map including the "origin" (${l.name}) and another \n including the "destination" (${u.name}) has been found, however, no "entrypoints" have \n been found to go out of the origin map`);if(!u.entryPoints.length)throw te.notFound(u.name||"",`One map including the "origin" (${l.name}) and another \n including the "destination" (${u.name}) has been found, however, no "entrypoints" have \n been found to go in the second map`);const r=e=>`Tried to calculate an itinerary from "origin" to "entrypoints1" using wemap router on local map "${l.name}", an itinerary from "entrypoints1" to "entrypoints2" using remote routers (${t.map((e=>e.name)).join(", ")}) and an itinerary from "entrypoints2" to "destination" using wemap router on local map "${u.name}", but failed. Details: ${e}.`,i=l.getBestRouteFromOriginToEntryPoints(n,o,c);if(!i){const e=`No route found from ${n.toString()} to entry points in map: ${l.name}`;throw te.notFound(l.name||"",r(e))}const s=u.getBestRouteFromEntryPointsToDestination(n,o,c);if(!s){const e=`No route found from entry points to ${o.toString()} in map: ${u.name}`;throw te.notFound(u.name||"",r(e))}const a={...e,origin:i.end,destination:s.start,waypoints:[]};try{d=await Pe.getItinerariesWithFallback(a,t)}catch(Xo){throw Xo instanceof re&&(Xo.message=r(Xo.message)),Xo}return d.map((e=>_.fromItineraries(_.fromGraphRoute(i),e,_.fromGraphRoute(s))))}throw new Error("Should never happen")}},exports.WemapMultiRoutingError=te,exports.areTransitAndTravelModeConsistent=g,exports.getDurationFromLength=m,exports.routerRequestToJson=function(e){const{origin:t,destination:r,waypoints:n,...o}=e;return{origin:t.toJson(),destination:r.toJson(),...n&&{waypoints:n.map((e=>e.toJson()))},...o}};
|
|
11
11
|
//# sourceMappingURL=index.js.map
|