1
Surpriseplus
2022-09-16 a7e5110ef3f5fe3c9205f7d1a526b9fbbb55d826
1
!function(t,e){"use strict";"function"==typeof define&&define.amd&&define([],e),Geoworld.viewerGeoworldNavigationMixin=e()}("undefined"!=typeof window?window:"undefined"!=typeof self&&self,function(){var c,d,e,VIa,WIa,XIa,YIa,ZIa;return function(f){var r,s,m,g,_={},v={},y={},b={},n=Object.prototype.hasOwnProperty,i=[].slice,w=/\.js$/;function k(t,e){return n.call(t,e)}function a(t,e){var n,i,o,r,s,a,l,c,u,h,p,d=e&&e.split("/"),f=y.map,m=f&&f["*"]||{};if(t){for(s=(t=t.split("/")).length-1,y.nodeIdCompat&&w.test(t[s])&&(t[s]=t[s].replace(w,"")),"."===t[0].charAt(0)&&d&&(t=d.slice(0,d.length-1).concat(t)),u=0;u<t.length;u++)if("."===(p=t[u]))t.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===t[2]||".."===t[u-1])continue;0<u&&(t.splice(u-1,2),u-=2)}t=t.join("/")}if((d||m)&&f){for(u=(n=t.split("/")).length;0<u;u-=1){if(i=n.slice(0,u).join("/"),d)for(h=d.length;0<h;h-=1)if((o=f[d.slice(0,h).join("/")])&&(o=o[i])){r=o,a=u;break}if(r)break;!l&&m&&m[i]&&(l=m[i],c=u)}!r&&l&&(r=l,a=c),r&&(n.splice(0,a,r),t=n.join("/"))}return t}function x(e,n){return function(){var t=i.call(arguments,0);return"string"!=typeof t[0]&&1===t.length&&t.push(null),s.apply(f,t.concat([e,n]))}}function C(e){return function(t){_[e]=t}}function L(t){if(k(v,t)){var e=v[t];delete v[t],b[t]=!0,r.apply(f,e)}if(!k(_,t)&&!k(b,t))throw new Error("No "+t);return _[t]}function l(t){var e,n=t?t.indexOf("!"):-1;return-1<n&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function E(t){return t?l(t):[]}m=function(t,e){var n,i,o=l(t),r=o[0],s=e[1];return t=o[1],r&&(n=L(r=a(r,s))),r?t=n&&n.normalize?n.normalize(t,(i=s,function(t){return a(t,i)})):a(t,s):(r=(o=l(t=a(t,s)))[0],t=o[1],r&&(n=L(r))),{f:r?r+"!"+t:t,n:t,pr:r,p:n}},g={require:function(t){return x(t)},exports:function(t){var e=_[t];return void 0!==e?e:_[t]={}},module:function(t){return{id:t,uri:"",exports:_[t],config:(e=t,function(){return y&&y.config&&y.config[e]||{}})};var e}},r=function(t,e,n,i){var o,r,s,a,l,c,u,h=[],p=typeof n;if(c=E(i=i||t),"undefined"===p||"function"===p){for(e=!e.length&&n.length?["require","exports","module"]:e,l=0;l<e.length;l+=1)if("require"===(r=(a=m(e[l],c)).f))h[l]=g.require(t);else if("exports"===r)h[l]=g.exports(t),u=!0;else if("module"===r)o=h[l]=g.module(t);else if(k(_,r)||k(v,r)||k(b,r))h[l]=L(r);else{if(!a.p)throw new Error(t+" missing "+r);a.p.load(a.n,x(i,!0),C(r),{}),h[l]=_[r]}s=n?n.apply(_[t],h):void 0,t&&(o&&o.exports!==f&&o.exports!==_[t]?_[t]=o.exports:s===f&&u||(_[t]=s))}else t&&(_[t]=n)},c=d=s=function(t,e,n,i,o){if("string"==typeof t)return g[t]?g[t](e):L(m(t,E(e)).f);if(!t.splice){if((y=t).deps&&s(y.deps,y.callback),!e)return;e.splice?(t=e,e=n,n=null):t=f}return e=e||function(){},"function"==typeof n&&(n=i,i=o),i?r(f,t,e,n):setTimeout(function(){r(f,t,e,n)},4),s},s.config=function(t){return s(t)},c._defined=_,(e=function(t,e,n){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(n=e,e=[]),k(_,t)||k(v,t)||(v[t]=[t,e,n])}).amd={jQuery:!0}}(),e("almond",function(){}),function(La){var Ra,Ma=this||eval("this"),Na=Ma.document,Oa=Ma.navigator,Pa=Ma.jQuery,Qa=Ma.JSON;Ra=function(t,i){function n(t,e){return(null===t||typeof t in g)&&t===e}function r(t,e){var n;return function(){n||(n=L.a.setTimeout(function(){n=La,t()},e))}}function s(t,e){var n;return function(){clearTimeout(n),n=L.a.setTimeout(t,e)}}function l(t,e){e&&e!==_?"beforeChange"===e?this.Ob(t):this.Ja(t,e):this.Pb(t)}function o(t,e){null!==e&&e.k&&e.k()}function a(t,e){var n=this.Mc,i=n[k];i.T||(this.ob&&this.Oa[e]?(n.Sb(e,t,this.Oa[e]),this.Oa[e]=null,--this.ob):i.s[e]||n.Sb(e,t,i.t?{$:t}:n.yc(t)),t.Ha&&t.Hc())}function e(t,l,c,u){L.d[t]={init:function(i,o,t,e,r){var s,a;return L.m(function(){var t=o(),e=L.a.c(t),n=(e=!c!=!e,!a);(n||l||e!==s)&&(n&&L.xa.Ca()&&(a=L.a.wa(L.f.childNodes(i),!0)),e?(n||L.f.fa(i,L.a.wa(a)),L.hb(u?u(r,t):r,i)):L.f.za(i),s=e)},null,{i:i}),{controlsDescendantBindings:!0}}},L.h.va[t]=!1,L.f.aa[t]=!0}var c,u,h,p,d,f,m,L=void 0!==t?t:{};L.b=function(t,e){for(var n=t.split("."),i=L,o=0;o<n.length-1;o++)i=i[n[o]];i[n[n.length-1]]=e},L.H=function(t,e,n){t[e]=n},L.version="3.4.2",L.b("version",L.version),L.options={deferUpdates:!1,useOnlyNativeEvents:!1},L.a=function(){function h(t,e){for(var n in t)t.hasOwnProperty(n)&&e(n,t[n])}function t(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function e(t,e){return t.__proto__=e,t}function o(t,e,n,i){var o=t[e].match(c)||[];L.a.r(n.match(c),function(t){L.a.ra(o,t,i)}),t[e]=o.join(" ")}var n={__proto__:[]}instanceof Array,i="function"==typeof Symbol,r={},s={};r[Oa&&/Firefox\/2/i.test(Oa.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],r.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),h(r,function(t,e){if(e.length)for(var n=0,i=e.length;n<i;n++)s[e[n]]=t});var a={propertychange:!0},l=Na&&function(){for(var t=3,e=Na.createElement("div"),n=e.getElementsByTagName("i");e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e",n[0];);return 4<t?t:La}(),c=/\S+/g;return{gc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],r:function(t,e){for(var n=0,i=t.length;n<i;n++)e(t[n],n)},o:function(t,e){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(t,e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},Vb:function(t,e,n){for(var i=0,o=t.length;i<o;i++)if(e.call(n,t[i],i))return t[i];return null},Na:function(t,e){var n=L.a.o(t,e);0<n?t.splice(n,1):0===n&&t.shift()},Wb:function(t){for(var e=[],n=0,i=(t=t||[]).length;n<i;n++)L.a.o(e,t[n])<0&&e.push(t[n]);return e},ib:function(t,e){for(var n=[],i=0,o=(t=t||[]).length;i<o;i++)n.push(e(t[i],i));return n},Ma:function(t,e){for(var n=[],i=0,o=(t=t||[]).length;i<o;i++)e(t[i],i)&&n.push(t[i]);return n},ta:function(t,e){if(e instanceof Array)t.push.apply(t,e);else for(var n=0,i=e.length;n<i;n++)t.push(e[n]);return t},ra:function(t,e,n){var i=L.a.o(L.a.Bb(t),e);i<0?n&&t.push(e):n||t.splice(i,1)},la:n,extend:t,$a:e,ab:n?e:t,D:h,Ea:function(t,e){if(!t)return t;var n,i={};for(n in t)t.hasOwnProperty(n)&&(i[n]=e(t[n],n,t));return i},rb:function(t){for(;t.firstChild;)L.removeNode(t.firstChild)},nc:function(t){for(var e=((t=L.a.W(t))[0]&&t[0].ownerDocument||Na).createElement("div"),n=0,i=t.length;n<i;n++)e.appendChild(L.ba(t[n]));return e},wa:function(t,e){for(var n=0,i=t.length,o=[];n<i;n++){var r=t[n].cloneNode(!0);o.push(e?L.ba(r):r)}return o},fa:function(t,e){if(L.a.rb(t),e)for(var n=0,i=e.length;n<i;n++)t.appendChild(e[n])},uc:function(t,e){var n=t.nodeType?[t]:t;if(0<n.length){for(var i=n[0],o=i.parentNode,r=0,s=e.length;r<s;r++)o.insertBefore(e[r],i);for(r=0,s=n.length;r<s;r++)L.removeNode(n[r])}},Ba:function(t,e){if(t.length){for(e=8===e.nodeType&&e.parentNode||e;t.length&&t[0].parentNode!==e;)t.splice(0,1);for(;1<t.length&&t[t.length-1].parentNode!==e;)t.length--;if(1<t.length){var n=t[0],i=t[t.length-1];for(t.length=0;n!==i;)t.push(n),n=n.nextSibling;t.push(i)}}return t},wc:function(t,e){l<7?t.setAttribute("selected",e):t.selected=e},cb:function(t){return null===t||t===La?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},sd:function(t,e){return t=t||"",!(e.length>t.length)&&t.substring(0,e.length)===e},Rc:function(t,e){if(t===e)return!0;if(11===t.nodeType)return!1;if(e.contains)return e.contains(3===t.nodeType?t.parentNode:t);if(e.compareDocumentPosition)return 16==(16&e.compareDocumentPosition(t));for(;t&&t!=e;)t=t.parentNode;return!!t},qb:function(t){return L.a.Rc(t,t.ownerDocument.documentElement)},Tb:function(t){return!!L.a.Vb(t,L.a.qb)},A:function(t){return t&&t.tagName&&t.tagName.toLowerCase()},Zb:function(t){return L.onError?function(){try{return t.apply(this,arguments)}catch(t){throw L.onError&&L.onError(t),t}}:t},setTimeout:function(t,e){return setTimeout(L.a.Zb(t),e)},dc:function(t){setTimeout(function(){throw L.onError&&L.onError(t),t},0)},q:function(e,t,n){var i=L.a.Zb(n);if(n=l&&a[t],L.options.useOnlyNativeEvents||n||!Pa)if(n||"function"!=typeof e.addEventListener){if(void 0===e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var o=function(t){i.call(e,t)},r="on"+t;e.attachEvent(r,o),L.a.G.qa(e,function(){e.detachEvent(r,o)})}else e.addEventListener(t,i,!1);else Pa(e).bind(t,i)},Fa:function(t,e){if(!t||!t.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var n;if(n=!("input"!==L.a.A(t)||!t.type||"click"!=e.toLowerCase()||"checkbox"!=(n=t.type)&&"radio"!=n),L.options.useOnlyNativeEvents||!Pa||n)if("function"==typeof Na.createEvent){if("function"!=typeof t.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(n=Na.createEvent(s[e]||"HTMLEvents")).initEvent(e,!0,!0,Ma,0,0,0,0,0,!1,!1,!1,!1,0,t),t.dispatchEvent(n)}else if(n&&t.click)t.click();else{if(void 0===t.fireEvent)throw Error("Browser doesn't support triggering events");t.fireEvent("on"+e)}else Pa(t).trigger(e)},c:function(t){return L.I(t)?t():t},Bb:function(t){return L.I(t)?t.p():t},fb:function(e,t,n){var i;t&&("object"==typeof e.classList?(i=e.classList[n?"add":"remove"],L.a.r(t.match(c),function(t){i.call(e.classList,t)})):"string"==typeof e.className.baseVal?o(e.className,"baseVal",t,n):o(e,"className",t,n))},bb:function(t,e){var n=L.a.c(e);null!==n&&n!==La||(n="");var i=L.f.firstChild(t);!i||3!=i.nodeType||L.f.nextSibling(i)?L.f.fa(t,[t.ownerDocument.createTextNode(n)]):i.data=n,L.a.Wc(t)},vc:function(t,e){if(t.name=e,l<=7)try{t.mergeAttributes(Na.createElement("<input name='"+t.name+"'/>"),!1)}catch(t){}},Wc:function(t){9<=l&&(t=1==t.nodeType?t:t.parentNode).style&&(t.style.zoom=t.style.zoom)},Sc:function(t){if(l){var e=t.style.width;t.style.width=0,t.style.width=e}},nd:function(t,e){t=L.a.c(t),e=L.a.c(e);for(var n=[],i=t;i<=e;i++)n.push(i);return n},W:function(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(t[n]);return e},bc:function(t){return i?Symbol(t):t},xd:6===l,yd:7===l,C:l,ic:function(t,e){for(var n=L.a.W(t.getElementsByTagName("input")).concat(L.a.W(t.getElementsByTagName("textarea"))),i="string"==typeof e?function(t){return t.name===e}:function(t){return e.test(t.name)},o=[],r=n.length-1;0<=r;r--)i(n[r])&&o.push(n[r]);return o},kd:function(t){return"string"==typeof t&&(t=L.a.cb(t))?Qa&&Qa.parse?Qa.parse(t):new Function("return "+t)():null},Gb:function(t,e,n){if(!Qa||!Qa.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return Qa.stringify(L.a.c(t),e,n)},ld:function(t,e,n){var i=(n=n||{}).params||{},o=n.includeFields||this.gc,r=t;if("object"==typeof t&&"form"===L.a.A(t)){r=t.action;for(var s=o.length-1;0<=s;s--)for(var a=L.a.ic(t,o[s]),l=a.length-1;0<=l;l--)i[a[l].name]=a[l].value}e=L.a.c(e);var c=Na.createElement("form");for(var u in c.style.display="none",c.action=r,c.method="post",e)(t=Na.createElement("input")).type="hidden",t.name=u,t.value=L.a.Gb(L.a.c(e[u])),c.appendChild(t);h(i,function(t,e){var n=Na.createElement("input");n.type="hidden",n.name=t,n.value=e,c.appendChild(n)}),Na.body.appendChild(c),n.submitter?n.submitter(c):c.submit(),setTimeout(function(){c.parentNode.removeChild(c)},0)}}}(),L.b("utils",L.a),L.b("utils.arrayForEach",L.a.r),L.b("utils.arrayFirst",L.a.Vb),L.b("utils.arrayFilter",L.a.Ma),L.b("utils.arrayGetDistinctValues",L.a.Wb),L.b("utils.arrayIndexOf",L.a.o),L.b("utils.arrayMap",L.a.ib),L.b("utils.arrayPushAll",L.a.ta),L.b("utils.arrayRemoveItem",L.a.Na),L.b("utils.extend",L.a.extend),L.b("utils.fieldsIncludedWithJsonPost",L.a.gc),L.b("utils.getFormFields",L.a.ic),L.b("utils.peekObservable",L.a.Bb),L.b("utils.postJson",L.a.ld),L.b("utils.parseJson",L.a.kd),L.b("utils.registerEventHandler",L.a.q),L.b("utils.stringifyJson",L.a.Gb),L.b("utils.range",L.a.nd),L.b("utils.toggleDomNodeCssClass",L.a.fb),L.b("utils.triggerEvent",L.a.Fa),L.b("utils.unwrapObservable",L.a.c),L.b("utils.objectForEach",L.a.D),L.b("utils.addOrRemoveItem",L.a.ra),L.b("utils.setTextContent",L.a.bb),L.b("unwrap",L.a.c),Function.prototype.bind||(Function.prototype.bind=function(e){var n=this;if(1===arguments.length)return function(){return n.apply(e,arguments)};var i=Array.prototype.slice.call(arguments,1);return function(){var t=i.slice(0);return t.push.apply(t,arguments),n.apply(e,t)}}),L.a.e=new function(){function i(t,e){var n=t[r];if(!n||"null"===n||!s[n]){if(!e)return La;n=t[r]="ko"+o++,s[n]={}}return s[n]}var o=0,r="__ko__"+(new Date).getTime(),s={};return{get:function(t,e){var n=i(t,!1);return n===La?La:n[e]},set:function(t,e,n){n===La&&i(t,!1)===La||(i(t,!0)[e]=n)},clear:function(t){var e=t[r];return!(!e||(delete s[e],t[r]=null))},J:function(){return o+++r}}},L.b("utils.domData",L.a.e),L.b("utils.domData.clear",L.a.e.clear),L.a.G=new function(){function i(t,e){var n=L.a.e.get(t,r);return n===La&&e&&(n=[],L.a.e.set(t,r,n)),n}function o(t){if(e=i(t,!1))for(var e=e.slice(0),n=0;n<e.length;n++)e[n](t);if(L.a.e.clear(t),L.a.G.cleanExternalData(t),a[t.nodeType])for(e=t.firstChild;t=e;)e=t.nextSibling,8===t.nodeType&&o(t)}var r=L.a.e.J(),s={1:!0,8:!0,9:!0},a={1:!0,9:!0};return{qa:function(t,e){if("function"!=typeof e)throw Error("Callback must be a function");i(t,!0).push(e)},tc:function(t,e){var n=i(t,!1);n&&(L.a.Na(n,e),0==n.length&&L.a.e.set(t,r,La))},ba:function(t){if(s[t.nodeType]&&(o(t),a[t.nodeType])){var e=[];L.a.ta(e,t.getElementsByTagName("*"));for(var n=0,i=e.length;n<i;n++)o(e[n])}return t},removeNode:function(t){L.ba(t),t.parentNode&&t.parentNode.removeChild(t)},cleanExternalData:function(t){Pa&&"function"==typeof Pa.cleanData&&Pa.cleanData([t])}}},L.ba=L.a.G.ba,L.removeNode=L.a.G.removeNode,L.b("cleanNode",L.ba),L.b("removeNode",L.removeNode),L.b("utils.domNodeDisposal",L.a.G),L.b("utils.domNodeDisposal.addDisposeCallback",L.a.G.qa),L.b("utils.domNodeDisposal.removeDisposeCallback",L.a.G.tc),c=[0,"",""],d={thead:u=[1,"<table>","</table>"],tbody:u,tfoot:u,tr:[2,"<table><tbody>","</tbody></table>"],td:h=[3,"<table><tbody><tr>","</tr></tbody></table>"],th:h,option:p=[1,"<select multiple='multiple'>","</select>"],optgroup:p},f=L.a.C<=8,L.a.na=function(t,e){var n;if(Pa){if(Pa.parseHTML)n=Pa.parseHTML(t,e)||[];else if((n=Pa.clean([t],e))&&n[0]){for(var i=n[0];i.parentNode&&11!==i.parentNode.nodeType;)i=i.parentNode;i.parentNode&&i.parentNode.removeChild(i)}}else{(n=e)||(n=Na),i=n.parentWindow||n.defaultView||Ma;var o,r=L.a.cb(t).toLowerCase(),s=n.createElement("div");for(r=(o=(r=r.match(/^<([a-z]+)[ >]/))&&d[r[1]]||c)[0],o="ignored<div>"+o[1]+t+o[2]+"</div>","function"==typeof i.innerShiv?s.appendChild(i.innerShiv(o)):(f&&n.appendChild(s),s.innerHTML=o,f&&s.parentNode.removeChild(s));r--;)s=s.lastChild;n=L.a.W(s.lastChild.childNodes)}return n},L.a.Eb=function(t,e){if(L.a.rb(t),null!==(e=L.a.c(e))&&e!==La)if("string"!=typeof e&&(e=e.toString()),Pa)Pa(t).html(e);else for(var n=L.a.na(e,t.ownerDocument),i=0;i<n.length;i++)t.appendChild(n[i])},L.b("utils.parseHtmlFragment",L.a.na),L.b("utils.setHtml",L.a.Eb),L.N=(m={},{yb:function(t){if("function"!=typeof t)throw Error("You can only pass a function to ko.memoization.memoize()");var e=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return m[e]=t,"\x3c!--[ko_memo:"+e+"]--\x3e"},Bc:function(t,e){var n=m[t];if(n===La)throw Error("Couldn't find any memo with ID "+t+". Perhaps it's already been unmemoized.");try{return n.apply(null,e||[]),!0}finally{delete m[t]}},Cc:function(t,e){var n=[];!function t(e,n){if(e)if(8==e.nodeType)null!=(i=L.N.pc(e.nodeValue))&&n.push({Qc:e,hd:i});else if(1==e.nodeType)for(var i=0,o=e.childNodes,r=o.length;i<r;i++)t(o[i],n)}(t,n);for(var i=0,o=n.length;i<o;i++){var r=n[i].Qc,s=[r];e&&L.a.ta(s,e),L.N.Bc(n[i].hd,s),r.nodeValue="",r.parentNode&&r.parentNode.removeChild(r)}},pc:function(t){return(t=t.match(/^\[ko_memo\:(.*?)\]$/))?t[1]:null}}),L.b("memoization",L.N),L.b("memoization.memoize",L.N.yb),L.b("memoization.unmemoize",L.N.Bc),L.b("memoization.parseMemoText",L.N.pc),L.b("memoization.unmemoizeDomNodeAndDescendants",L.N.Cc),L.Z=function(){function t(){if(r)for(var t,e=r,n=0;a<r;)if(t=o[a++]){if(e<a){if(5e3<=++n){a=r,L.a.dc(Error("'Too much recursion' after processing "+n+" task groups."));break}e=r}try{t()}catch(t){L.a.dc(t)}}}function e(){t(),a=r=o.length=0}var n,i,o=[],r=0,s=1,a=0;return{scheduler:Ma.MutationObserver?(n=e,i=Na.createElement("div"),new MutationObserver(n).observe(i,{attributes:!0}),function(){i.classList.toggle("foo")}):Na&&"onreadystatechange"in Na.createElement("script")?function(t){var e=Na.createElement("script");e.onreadystatechange=function(){e.onreadystatechange=null,Na.documentElement.removeChild(e),e=null,t()},Na.documentElement.appendChild(e)}:function(t){setTimeout(t,0)},Za:function(t){return r||L.Z.scheduler(e),o[r++]=t,s++},cancel:function(t){a<=(t-=s-r)&&t<r&&(o[t]=null)},resetForTesting:function(){var t=r-a;return a=r=o.length=0,t},rd:t}}(),L.b("tasks",L.Z),L.b("tasks.schedule",L.Z.Za),L.b("tasks.runEarly",L.Z.rd),L.Aa={throttle:function(e,n){e.throttleEvaluation=n;var i=null;return L.B({read:e,write:function(t){clearTimeout(i),i=L.a.setTimeout(function(){e(t)},n)}})},rateLimit:function(t,e){var n,i,o;"number"==typeof e?n=e:(n=e.timeout,i=e.method),t.gb=!1,o="notifyWhenChangesStop"==i?s:r,t.Wa(function(t){return o(t,n)})},deferred:function(i,t){if(!0!==t)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");i.gb||(i.gb=!0,i.Wa(function(t){var e,n=!1;return function(){if(!n){L.Z.cancel(e),e=L.Z.Za(t);try{n=!0,i.notifySubscribers(La,"dirty")}finally{n=!1}}}}))},notify:function(t,e){t.equalityComparer="always"==e?null:n}};var g={undefined:1,boolean:1,number:1,string:1};L.b("extenders",L.Aa),L.zc=function(t,e,n){this.$=t,this.jb=e,this.Pc=n,this.T=!1,L.H(this,"dispose",this.k)},L.zc.prototype.k=function(){this.T=!0,this.Pc()},L.K=function(){L.a.ab(this,v),v.ub(this)};var _="change",v={ub:function(t){t.F={change:[]},t.Qb=1},Y:function(t,e,n){var i=this;n=n||_;var o=new L.zc(i,e?t.bind(e):t,function(){L.a.Na(i.F[n],o),i.Ka&&i.Ka(n)});return i.ua&&i.ua(n),i.F[n]||(i.F[n]=[]),i.F[n].push(o),o},notifySubscribers:function(t,e){if((e=e||_)===_&&this.Kb(),this.Ra(e)){var n=e===_&&this.Fc||this.F[e].slice(0);try{L.l.Xb();for(var i,o=0;i=n[o];++o)i.T||i.jb(t)}finally{L.l.end()}}},Pa:function(){return this.Qb},Zc:function(t){return this.Pa()!==t},Kb:function(){++this.Qb},Wa:function(t){var e,n,i,o,r=this,s=L.I(r);r.Ja||(r.Ja=r.notifySubscribers,r.notifySubscribers=l);var a=t(function(){r.Ha=!1,s&&o===r&&(o=r.Mb?r.Mb():r());var t=n||r.Ua(i,o);n=e=!1,t&&r.Ja(i=o)});r.Pb=function(t){r.Fc=r.F[_].slice(0),r.Ha=e=!0,o=t,a()},r.Ob=function(t){e||(i=t,r.Ja(t,"beforeChange"))},r.Hc=function(){r.Ua(i,r.p(!0))&&(n=!0)}},Ra:function(t){return this.F[t]&&this.F[t].length},Xc:function(t){if(t)return this.F[t]&&this.F[t].length||0;var n=0;return L.a.D(this.F,function(t,e){"dirty"!==t&&(n+=e.length)}),n},Ua:function(t,e){return!this.equalityComparer||!this.equalityComparer(t,e)},extend:function(t){var i=this;return t&&L.a.D(t,function(t,e){var n=L.Aa[t];"function"==typeof n&&(i=n(i,e)||i)}),i}};L.H(v,"subscribe",v.Y),L.H(v,"extend",v.extend),L.H(v,"getSubscriptionsCount",v.Xc),L.a.la&&L.a.$a(v,Function.prototype),L.K.fn=v,L.lc=function(t){return null!=t&&"function"==typeof t.Y&&"function"==typeof t.notifySubscribers},L.b("subscribable",L.K),L.b("isSubscribable",L.lc),L.xa=L.l=function(){function i(t){n.push(e),e=t}function o(){e=n.pop()}var e,n=[],r=0;return{Xb:i,end:o,sc:function(t){if(e){if(!L.lc(t))throw Error("Only subscribable things can act as dependencies");e.jb.call(e.Lc,t,t.Gc||(t.Gc=++r))}},w:function(t,e,n){try{return i(),t.apply(e,n||[])}finally{o()}},Ca:function(){if(e)return e.m.Ca()},Va:function(){if(e)return e.Va}}}(),L.b("computedContext",L.xa),L.b("computedContext.getDependenciesCount",L.xa.Ca),L.b("computedContext.isInitial",L.xa.Va),L.b("ignoreDependencies",L.wd=L.l.w);var y=L.a.bc("_latestValue");L.O=function(t){function e(){return 0<arguments.length?(e.Ua(e[y],arguments[0])&&(e.ia(),e[y]=arguments[0],e.ha()),this):(L.l.sc(e),e[y])}return e[y]=t,L.a.la||L.a.extend(e,L.K.fn),L.K.fn.ub(e),L.a.ab(e,b),L.options.deferUpdates&&L.Aa.deferred(e,!0),e};var b={equalityComparer:n,p:function(){return this[y]},ha:function(){this.notifySubscribers(this[y])},ia:function(){this.notifySubscribers(this[y],"beforeChange")}};L.a.la&&L.a.$a(b,L.K.fn);var w=L.O.md="__ko_proto__";b[w]=L.O,L.Qa=function(t,e){return null!==t&&t!==La&&t[w]!==La&&(t[w]===e||L.Qa(t[w],e))},L.I=function(t){return L.Qa(t,L.O)},L.Da=function(t){return!!("function"==typeof t&&t[w]===L.O||"function"==typeof t&&t[w]===L.B&&t.$c)},L.b("observable",L.O),L.b("isObservable",L.I),L.b("isWriteableObservable",L.Da),L.b("isWritableObservable",L.Da),L.b("observable.fn",b),L.H(b,"peek",b.p),L.H(b,"valueHasMutated",b.ha),L.H(b,"valueWillMutate",b.ia),L.ma=function(t){if("object"!=typeof(t=t||[])||!("length"in t))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return t=L.O(t),L.a.ab(t,L.ma.fn),t.extend({trackArrayChanges:!0})},L.ma.fn={remove:function(e){for(var t=this.p(),n=[],i="function"!=typeof e||L.I(e)?function(t){return t===e}:e,o=0;o<t.length;o++){var r=t[o];i(r)&&(0===n.length&&this.ia(),n.push(r),t.splice(o,1),o--)}return n.length&&this.ha(),n},removeAll:function(e){if(e!==La)return e?this.remove(function(t){return 0<=L.a.o(e,t)}):[];var t=this.p(),n=t.slice(0);return this.ia(),t.splice(0,t.length),this.ha(),n},destroy:function(e){var t=this.p(),n="function"!=typeof e||L.I(e)?function(t){return t===e}:e;this.ia();for(var i=t.length-1;0<=i;i--)n(t[i])&&(t[i]._destroy=!0);this.ha()},destroyAll:function(e){return e===La?this.destroy(function(){return!0}):e?this.destroy(function(t){return 0<=L.a.o(e,t)}):[]},indexOf:function(t){var e=this();return L.a.o(e,t)},replace:function(t,e){var n=this.indexOf(t);0<=n&&(this.ia(),this.p()[n]=e,this.ha())}},L.a.la&&L.a.$a(L.ma.fn,L.O.fn),L.a.r("pop push reverse shift sort splice unshift".split(" "),function(n){L.ma.fn[n]=function(){var t=this.p();this.ia(),this.Yb(t,n,arguments);var e=t[n].apply(t,arguments);return this.ha(),e===t?this:e}}),L.a.r(["slice"],function(e){L.ma.fn[e]=function(){var t=this();return t[e].apply(t,arguments)}}),L.b("observableArray",L.ma),L.Aa.trackArrayChanges=function(i,t){if(i.kb={},t&&"object"==typeof t&&L.a.extend(i.kb,t),i.kb.sparse=!0,!i.Yb){var e,o,h=!1,p=null,d=0,n=i.ua,r=i.Ka;i.ua=function(t){n&&n.call(i,t),"arrayChange"===t&&function(){if(!h){h=!0,o=i.notifySubscribers,i.notifySubscribers=function(t,e){return e&&e!==_||++d,o.apply(this,arguments)};var n=[].concat(i.p()||[]);p=null,e=i.Y(function(t){var e;t=[].concat(t||[]),i.Ra("arrayChange")&&((!p||1<d)&&(p=L.a.lb(n,t,i.kb)),e=p),n=t,p=null,d=0,e&&e.length&&i.notifySubscribers(e,"arrayChange")})}}()},i.Ka=function(t){r&&r.call(i,t),"arrayChange"!==t||i.Ra("arrayChange")||(o&&(i.notifySubscribers=o,o=La),e.k(),h=!1)},i.Yb=function(t,e,n){function i(t,e,n){return o[o.length]={status:t,value:e,index:n}}if(h&&!d){var o=[],r=t.length,s=n.length,a=0;switch(e){case"push":a=r;case"unshift":for(e=0;e<s;e++)i("added",n[e],a+e);break;case"pop":a=r-1;case"shift":r&&i("deleted",t[a],a);break;case"splice":e=Math.min(Math.max(0,n[0]<0?r+n[0]:n[0]),r),r=1===s?r:Math.min(e+(n[1]||0),r),s=e+s-2,a=Math.max(r,s);for(var l=[],c=[],u=2;e<a;++e,++u)e<r&&c.push(i("deleted",t[e],e)),e<s&&l.push(i("added",n[u],e));L.a.hc(c,l);break;default:return}p=o}}}};var k=L.a.bc("_state");L.m=L.B=function(t,e,n){function i(){if(0<arguments.length){if("function"!=typeof o)throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return o.apply(r.sb,arguments),this}return L.l.sc(i),(r.V||r.t&&i.Sa())&&i.U(),r.M}if("object"==typeof t?n=t:(n=n||{},t&&(n.read=t)),"function"!=typeof n.read)throw Error("Pass a function that returns the value of the ko.computed");var o=n.write,r={M:La,da:!0,V:!0,Ta:!1,Hb:!1,T:!1,Ya:!1,t:!1,od:n.read,sb:e||n.owner,i:n.disposeWhenNodeIsRemoved||n.i||null,ya:n.disposeWhen||n.ya,pb:null,s:{},L:0,fc:null};return i[k]=r,i.$c="function"==typeof o,L.a.la||L.a.extend(i,L.K.fn),L.K.fn.ub(i),L.a.ab(i,x),n.pure?(r.Ya=!0,r.t=!0,L.a.extend(i,C)):n.deferEvaluation&&L.a.extend(i,E),L.options.deferUpdates&&L.Aa.deferred(i,!0),r.i&&(r.Hb=!0,r.i.nodeType||(r.i=null)),r.t||n.deferEvaluation||i.U(),r.i&&i.ca()&&L.a.G.qa(r.i,r.pb=function(){i.k()}),i};var x={equalityComparer:n,Ca:function(){return this[k].L},Sb:function(t,e,n){if(this[k].Ya&&e===this)throw Error("A 'pure' computed must not be called recursively");(this[k].s[t]=n).Ia=this[k].L++,n.pa=e.Pa()},Sa:function(){var t,e,n=this[k].s;for(t in n)if(n.hasOwnProperty(t)&&(e=n[t],this.oa&&e.$.Ha||e.$.Zc(e.pa)))return!0},gd:function(){this.oa&&!this[k].Ta&&this.oa(!1)},ca:function(){var t=this[k];return t.V||0<t.L},qd:function(){this.Ha?this[k].V&&(this[k].da=!0):this.ec()},yc:function(t){if(!t.gb||this[k].i)return t.Y(this.ec,this);var e=t.Y(this.gd,this,"dirty"),n=t.Y(this.qd,this);return{$:t,k:function(){e.k(),n.k()}}},ec:function(){var t=this,e=t.throttleEvaluation;e&&0<=e?(clearTimeout(this[k].fc),this[k].fc=L.a.setTimeout(function(){t.U(!0)},e)):t.oa?t.oa(!0):t.U(!0)},U:function(t){var e=this[k],n=e.ya,i=!1;if(!e.Ta&&!e.T){if(e.i&&!L.a.qb(e.i)||n&&n()){if(!e.Hb)return void this.k()}else e.Hb=!1;e.Ta=!0;try{i=this.Vc(t)}finally{e.Ta=!1}return e.L||this.k(),i}},Vc:function(t){var e=this[k],n=!1,i=e.Ya?La:!e.L,o={Mc:this,Oa:e.s,ob:e.L};return L.l.Xb({Lc:o,jb:a,m:this,Va:i}),e.s={},e.L=0,o=this.Uc(e,o),this.Ua(e.M,o)&&(e.t||this.notifySubscribers(e.M,"beforeChange"),e.M=o,e.t?this.Kb():t&&this.notifySubscribers(e.M),n=!0),i&&this.notifySubscribers(e.M,"awake"),n},Uc:function(t,e){try{var n=t.od;return t.sb?n.call(t.sb):n()}finally{L.l.end(),e.ob&&!t.t&&L.a.D(e.Oa,o),t.da=t.V=!1}},p:function(t){var e=this[k];return(e.V&&(t||!e.L)||e.t&&this.Sa())&&this.U(),e.M},Wa:function(t){L.K.fn.Wa.call(this,t),this.Mb=function(){return this[k].da?this.U():this[k].V=!1,this[k].M},this.oa=function(t){this.Ob(this[k].M),this[k].V=!0,t&&(this[k].da=!0),this.Pb(this)}},k:function(){var t=this[k];!t.t&&t.s&&L.a.D(t.s,function(t,e){e.k&&e.k()}),t.i&&t.pb&&L.a.G.tc(t.i,t.pb),t.s=null,t.L=0,t.T=!0,t.da=!1,t.V=!1,t.t=!1,t.i=null}},C={ua:function(t){var o=this,r=o[k];if(!r.T&&r.t&&"change"==t){if(r.t=!1,r.da||o.Sa())r.s=null,r.L=0,o.U()&&o.Kb();else{var n=[];L.a.D(r.s,function(t,e){n[e.Ia]=t}),L.a.r(n,function(t,e){var n=r.s[t],i=o.yc(n.$);i.Ia=e,i.pa=n.pa,r.s[t]=i})}r.T||o.notifySubscribers(r.M,"awake")}},Ka:function(t){var n=this[k];n.T||"change"!=t||this.Ra("change")||(L.a.D(n.s,function(t,e){e.k&&(n.s[t]={$:e.$,Ia:e.Ia,pa:e.pa},e.k())}),n.t=!0,this.notifySubscribers(La,"asleep"))},Pa:function(){var t=this[k];return t.t&&(t.da||this.Sa())&&this.U(),L.K.fn.Pa.call(this)}},E={ua:function(t){"change"!=t&&"beforeChange"!=t||this.p()}};L.a.la&&L.a.$a(x,L.K.fn);var T,D=L.O.md;L.m[D]=L.O,x[D]=L.m,L.bd=function(t){return L.Qa(t,L.m)},L.cd=function(t){return L.Qa(t,L.m)&&t[k]&&t[k].Ya},L.b("computed",L.m),L.b("dependentObservable",L.m),L.b("isComputed",L.bd),L.b("isPureComputed",L.cd),L.b("computed.fn",x),L.H(x,"peek",x.p),L.H(x,"dispose",x.k),L.H(x,"isActive",x.ca),L.H(x,"getDependenciesCount",x.Ca),L.rc=function(t,e){return"function"==typeof t?L.m(t,e,{pure:!0}):((t=L.a.extend({},t)).pure=!0,L.m(t,e))},L.b("pureComputed",L.rc),function(){function a(i,o,r){if(r=r||new t,"object"!=typeof(i=o(i))||null===i||i===La||i instanceof RegExp||i instanceof Date||i instanceof String||i instanceof Number||i instanceof Boolean)return i;var s=i instanceof Array?[]:{};return r.save(i,s),function(t,e){if(t instanceof Array){for(var n=0;n<t.length;n++)e(n);"function"==typeof t.toJSON&&e("toJSON")}else for(n in t)e(n)}(i,function(t){var e=o(i[t]);switch(typeof e){case"boolean":case"number":case"string":case"function":s[t]=e;break;case"object":case"undefined":var n=r.get(e);s[t]=n!==La?n:a(e,o,r)}}),s}function t(){this.keys=[],this.Lb=[]}L.Ac=function(t){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return a(t,function(t){for(var e=0;L.I(t)&&e<10;e++)t=t();return t})},L.toJSON=function(t,e,n){return t=L.Ac(t),L.a.Gb(t,e,n)},t.prototype={save:function(t,e){var n=L.a.o(this.keys,t);0<=n?this.Lb[n]=e:(this.keys.push(t),this.Lb.push(e))},get:function(t){return 0<=(t=L.a.o(this.keys,t))?this.Lb[t]:La}}}(),L.b("toJS",L.Ac),L.b("toJSON",L.toJSON),L.j={u:function(t){switch(L.a.A(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?L.a.e.get(t,L.d.options.zb):L.a.C<=7?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?L.j.u(t.options[t.selectedIndex]):La;default:return t.value}},ja:function(t,e,n){switch(L.a.A(t)){case"option":switch(typeof e){case"string":L.a.e.set(t,L.d.options.zb,La),"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__,t.value=e;break;default:L.a.e.set(t,L.d.options.zb,e),t.__ko__hasDomDataOptionValue__=!0,t.value="number"==typeof e?e:""}break;case"select":""!==e&&null!==e||(e=La);for(var i,o=-1,r=0,s=t.options.length;r<s;++r)if((i=L.j.u(t.options[r]))==e||""==i&&e===La){o=r;break}(n||0<=o||e===La&&1<t.size)&&(t.selectedIndex=o);break;default:null!==e&&e!==La||(e=""),t.value=e}}},L.b("selectExtensions",L.j),L.b("selectExtensions.readValue",L.j.u),L.b("selectExtensions.writeValue",L.j.ja),L.h=function(){function i(t){123===(t=L.a.cb(t)).charCodeAt(0)&&(t=t.slice(1,-1));var e,n=[],i=t.match(h),o=[],r=0;if(i){i.push(",");for(var s,a=0;s=i[a];++a){var l=s.charCodeAt(0);if(44===l){if(r<=0){n.push(e&&o.length?{key:e,value:o.join("")}:{unknown:e||o.join("")}),e=r=0,o=[];continue}}else if(58===l){if(!r&&!e&&1===o.length){e=o.pop();continue}}else 47===l&&a&&1<s.length?(l=i[a-1].match(p))&&!d[l[0]]&&((i=(t=t.substr(t.indexOf(s)+1)).match(h)).push(","),a=-1,s="/"):40===l||123===l||91===l?++r:41===l||125===l||93===l?--r:e||o.length||34!==l&&39!==l||(s=s.slice(1,-1));o.push(s)}}return n}var c=["true","false","null","undefined"],u=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,h=RegExp("\"(?:[^\"\\\\]|\\\\.)*\"|'(?:[^'\\\\]|\\\\.)*'|/(?:[^/\\\\]|\\\\.)*/w*|[^\\s:,/][^,\"'{}()/:[\\]]*[^\\s,\"'{}()/:[\\]]|[^\\s]","g"),p=/[\])"'A-Za-z0-9_$]+$/,d={in:1,return:1,typeof:1},f={};return{va:[],ga:f,Ab:i,Xa:function(t,e){function o(t,e){var n;if(!l){var i=L.getBindingHandler(t);if(i&&i.preprocess&&!(e=i.preprocess(e,t,o)))return;(i=f[t])&&(n=e,i=n=!(0<=L.a.o(c,n))&&null!==(i=n.match(u))&&(i[1]?"Object("+i[1]+")"+i[2]:n)),i&&s.push("'"+t+"':function(_z){"+n+"=_z}")}a&&(e="function(){return "+e+" }"),r.push("'"+t+"':"+e)}var r=[],s=[],a=(e=e||{}).valueAccessors,l=e.bindingParams,n="string"==typeof t?i(t):t;return L.a.r(n,function(t){o(t.key||t.unknown,t.value)}),s.length&&o("_ko_property_writers","{"+s.join(",")+" }"),r.join(",")},fd:function(t,e){for(var n=0;n<t.length;n++)if(t[n].key==e)return!0;return!1},Ga:function(t,e,n,i,o){t&&L.I(t)?!L.Da(t)||o&&t.p()===i||t(i):(t=e.get("_ko_property_writers"))&&t[n]&&t[n](i)}}}(),L.b("expressionRewriting",L.h),L.b("expressionRewriting.bindingRewriteValidators",L.h.va),L.b("expressionRewriting.parseObjectLiteral",L.h.Ab),L.b("expressionRewriting.preProcessBindings",L.h.Xa),L.b("expressionRewriting._twoWayBindings",L.h.ga),L.b("jsonExpressionRewriting",L.h),L.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",L.h.Xa),function(){function r(t){return 8==t.nodeType&&n.test(e?t.text:t.nodeValue)}function s(t){return 8==t.nodeType&&o.test(e?t.text:t.nodeValue)}function i(t,e){for(var n=t,i=1,o=[];n=n.nextSibling;){if(s(n)&&0==--i)return o;o.push(n),r(n)&&i++}if(!e)throw Error("Cannot find closing comment tag to match: "+t.nodeValue);return null}function a(t,e){var n=i(t,e);return n?0<n.length?n[n.length-1].nextSibling:t.nextSibling:null}var e=Na&&"\x3c!--test--\x3e"===Na.createComment("test").text,n=e?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,o=e?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,l={ul:!0,ol:!0};L.f={aa:{},childNodes:function(t){return r(t)?i(t):t.childNodes},za:function(t){if(r(t))for(var e=0,n=(t=L.f.childNodes(t)).length;e<n;e++)L.removeNode(t[e]);else L.a.rb(t)},fa:function(t,e){if(r(t)){L.f.za(t);for(var n=t.nextSibling,i=0,o=e.length;i<o;i++)n.parentNode.insertBefore(e[i],n)}else L.a.fa(t,e)},qc:function(t,e){r(t)?t.parentNode.insertBefore(e,t.nextSibling):t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},kc:function(t,e,n){n?r(t)?t.parentNode.insertBefore(e,n.nextSibling):n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):L.f.qc(t,e)},firstChild:function(t){return r(t)?!t.nextSibling||s(t.nextSibling)?null:t.nextSibling:t.firstChild},nextSibling:function(t){return r(t)&&(t=a(t)),t.nextSibling&&s(t.nextSibling)?null:t.nextSibling},Yc:r,vd:function(t){return(t=(e?t.text:t.nodeValue).match(n))?t[1]:null},oc:function(t){if(l[L.a.A(t)]){var e=t.firstChild;if(e)do{if(1===e.nodeType){var n,i=null;if(n=e.firstChild)do{if(i)i.push(n);else if(r(n)){var o=a(n,!0);o?n=o:i=[n]}else s(n)&&(i=[n])}while(n=n.nextSibling);if(n=i)for(i=e.nextSibling,o=0;o<n.length;o++)i?t.insertBefore(n[o],i):t.appendChild(n[o])}}while(e=e.nextSibling)}}}}(),L.b("virtualElements",L.f),L.b("virtualElements.allowedBindings",L.f.aa),L.b("virtualElements.emptyNode",L.f.za),L.b("virtualElements.insertAfter",L.f.kc),L.b("virtualElements.prepend",L.f.qc),L.b("virtualElements.setDomNodeChildren",L.f.fa),L.S=function(){this.Kc={}},L.a.extend(L.S.prototype,{nodeHasBindings:function(t){switch(t.nodeType){case 1:return null!=t.getAttribute("data-bind")||L.g.getComponentNameForNode(t);case 8:return L.f.Yc(t);default:return!1}},getBindings:function(t,e){var n=(n=this.getBindingsString(t,e))?this.parseBindingsString(n,e,t):null;return L.g.Rb(n,t,e,!1)},getBindingAccessors:function(t,e){var n=(n=this.getBindingsString(t,e))?this.parseBindingsString(n,e,t,{valueAccessors:!0}):null;return L.g.Rb(n,t,e,!0)},getBindingsString:function(t){switch(t.nodeType){case 1:return t.getAttribute("data-bind");case 8:return L.f.vd(t);default:return null}},parseBindingsString:function(e,t,n,i){try{var o,r=this.Kc,s=e+(i&&i.valueAccessors||"");if(!(o=r[s])){var a,l="with($context){with($data||{}){return{"+L.h.Xa(e,i)+"}}}";a=new Function("$context","$element",l),o=r[s]=a}return o(t,n)}catch(t){throw t.message="Unable to parse bindings.\nBindings value: "+e+"\nMessage: "+t.message,t}}}),L.S.instance=new L.S,L.b("bindingProvider",L.S),function(){function s(t){return function(){return t}}function g(t){return t()}function a(n){return L.a.Ea(L.l.w(n),function(t,e){return function(){return n()[e]}})}function _(t,e){return a(this.getBindings.bind(this,t,e))}function r(t,e,n){var i,o=L.f.firstChild(e),r=L.S.instance,s=r.preprocessNode;if(s){for(;i=o;)o=L.f.nextSibling(i),s.call(r,i);o=L.f.firstChild(e)}for(;i=o;)o=L.f.nextSibling(i),l(t,i,n)}function l(t,e,n){var i=!0,o=1===e.nodeType;o&&L.f.oc(e),(o&&n||L.S.instance.nodeHasBindings(e))&&(i=c(e,null,t,n).shouldBindDescendants),i&&!h[L.a.A(e)]&&r(t,e,!o)}function c(o,t,r,e){var s,a,i,l,c,u,n=L.a.e.get(o,v);if(!t){if(n)throw Error("You cannot apply bindings multiple times to the same element.");L.a.e.set(o,v,!0)}if(!n&&e&&L.xc(o,r),t&&"function"!=typeof t)s=t;else{var h=L.S.instance,p=h.getBindingAccessors||_,d=L.B(function(){return(s=t?t(r,o):p.call(h,o,r))&&r.Q&&r.Q(),s},null,{i:o});s&&d.ca()||(d=null)}if(s){var f=d?function(t){return function(){return g(d()[t])}}:function(t){return s[t]},m=function(){return L.a.Ea(d?d():s,g)};m.get=function(t){return s[t]&&g(f(t))},m.has=function(t){return t in s},i=s,l=[],c={},u=[],L.a.D(i,function e(t){if(!c[t]){var n=L.getBindingHandler(t);n&&(n.after&&(u.push(t),L.a.r(n.after,function(t){if(i[t]){if(-1!==L.a.o(u,t))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+u.join(", "));e(t)}}),u.length--),l.push({key:t,jc:n})),c[t]=!0}}),e=l,L.a.r(e,function(t){var e=t.jc.init,n=t.jc.update,i=t.key;if(8===o.nodeType&&!L.f.aa[i])throw Error("The binding '"+i+"' cannot be used with virtual elements");try{"function"==typeof e&&L.l.w(function(){var t=e(o,f(i),m,r.$data,r);if(t&&t.controlsDescendantBindings){if(a!==La)throw Error("Multiple bindings ("+a+" and "+i+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");a=i}}),"function"==typeof n&&L.B(function(){n(o,f(i),m,r.$data,r)},null,{i:o})}catch(t){throw t.message='Unable to process binding "'+i+": "+s[i]+'"\nMessage: '+t.message,t}})}return{shouldBindDescendants:a===La}}function u(t){return t&&t instanceof L.R?t:new L.R(t)}L.d={};var h={script:!0,textarea:!0,template:!0};L.getBindingHandler=function(t){return L.d[t]},L.R=function(n,i,o,r,t){function e(){var t=c?n():n,e=L.a.c(t);return i?(i.Q&&i.Q(),L.a.extend(l,i),l.Q=a):(l.$parents=[],l.$root=e,l.ko=L),l.$rawData=t,l.$data=e,o&&(l[o]=e),r&&r(l,i,e),l.$data}var s,a,l=this,c="function"==typeof n&&!L.I(n);t&&t.exportDependencies?e():(a=L.B(e,null,{ya:function(){return s&&!L.a.Tb(s)},i:!0})).ca()&&((l.Q=a).equalityComparer=null,s=[],a.Dc=function(t){s.push(t),L.a.G.qa(t,function(t){L.a.Na(s,t),s.length||(a.k(),l.Q=a=La)})})},L.R.prototype.createChildContext=function(t,e,n,i){return new L.R(t,this,e,function(t,e){t.$parentContext=e,t.$parent=e.$data,t.$parents=(e.$parents||[]).slice(0),t.$parents.unshift(t.$parent),n&&n(t)},i)},L.R.prototype.extend=function(n){return new L.R(this.Q||this.$data,this,null,function(t,e){t.$rawData=e.$rawData,L.a.extend(t,"function"==typeof n?n():n)})},L.R.prototype.ac=function(t,e){return this.createChildContext(t,e,null,{exportDependencies:!0})};var v=L.a.e.J(),n=L.a.e.J();L.xc=function(t,e){if(2!=arguments.length)return L.a.e.get(t,n);L.a.e.set(t,n,e),e.Q&&e.Q.Dc(t)},L.La=function(t,e,n){return 1===t.nodeType&&L.f.oc(t),c(t,e,u(n),!0)},L.Ic=function(t,e,n){return n=u(n),L.La(t,(o=n,r=t,"function"==typeof(i=e)?a(i.bind(null,o,r)):L.a.Ea(i,s)),n);var i,o,r},L.hb=function(t,e){1!==e.nodeType&&8!==e.nodeType||r(u(t),e,!0)},L.Ub=function(t,e){if(!Pa&&Ma.jQuery&&(Pa=Ma.jQuery),e&&1!==e.nodeType&&8!==e.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");e=e||Ma.document.body,l(u(t),e,!0)},L.nb=function(t){switch(t.nodeType){case 1:case 8:var e=L.xc(t);if(e)return e;if(t.parentNode)return L.nb(t.parentNode)}return La},L.Oc=function(t){return(t=L.nb(t))?t.$data:La},L.b("bindingHandlers",L.d),L.b("applyBindings",L.Ub),L.b("applyBindingsToDescendants",L.hb),L.b("applyBindingAccessorsToNode",L.La),L.b("applyBindingsToNode",L.Ic),L.b("contextFor",L.nb),L.b("dataFor",L.Oc)}(),function(a){function i(i,t){var o,n,r,s=c.hasOwnProperty(i)?c[i]:a;s?s.Y(t):((s=c[i]=new L.K).Y(t),r=function(t,e){var n=!(!e||!e.synchronous);u[i]={definition:t,dd:n},delete c[i],o||n?s.notifySubscribers(t):L.Z.Za(function(){s.notifySubscribers(t)})},l("getConfig",[n=i],function(e){e?l("loadComponent",[n,e],function(t){r(t,e)}):r(null,null)}),o=!0)}function l(e,n,i,o){o||(o=L.g.loaders.slice(0));var t=o.shift();if(t){var r=t[e];if(r){var s=!1;if(r.apply(t,n.concat(function(t){s?i(null):null!==t?i(t):l(e,n,i,o)}))!==a&&(s=!0,!t.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else l(e,n,i,o)}else i(null)}var c={},u={};L.g={get:function(t,e){var n=u.hasOwnProperty(t)?u[t]:a;n?n.dd?L.l.w(function(){e(n.definition)}):L.Z.Za(function(){e(n.definition)}):i(t,e)},$b:function(t){delete u[t]},Nb:l},L.g.loaders=[],L.b("components",L.g),L.b("components.get",L.g.get),L.b("components.clearCachedDefinition",L.g.$b)}(),function(){function o(t){switch(L.a.A(t)){case"script":return L.a.na(t.text);case"textarea":return L.a.na(t.value);case"template":if(r(t.content))return L.a.wa(t.content.childNodes)}return L.a.wa(t.childNodes)}function r(t){return Ma.DocumentFragment?t instanceof DocumentFragment:t&&11===t.nodeType}function l(t,e,n){"string"==typeof e.require?i||Ma.require?(i||Ma.require)([e.require],n):t("Uses require, but no AMD loader is present"):n(e)}function s(e){return function(t){throw Error("Component '"+e+"': "+t)}}var n={};L.g.register=function(t,e){if(!e)throw Error("Invalid configuration for "+t);if(L.g.wb(t))throw Error("Component "+t+" is already registered");n[t]=e},L.g.wb=function(t){return n.hasOwnProperty(t)},L.g.ud=function(t){delete n[t],L.g.$b(t)},L.g.cc={getConfig:function(t,e){e(n.hasOwnProperty(t)?n[t]:null)},loadComponent:function(e,t,n){var i=s(e);l(i,t,function(t){!function(e,t,n,i){function o(){0==--s&&i(r)}var r={},s=2,a=n.template;n=n.viewModel,a?l(t,a,function(t){L.g.Nb("loadTemplate",[e,t],function(t){r.template=t,o()})}):o(),n?l(t,n,function(t){L.g.Nb("loadViewModel",[e,t],function(t){r[c]=t,o()})}):o()}(e,i,t,n)})},loadTemplate:function(t,e,n){if(t=s(t),"string"==typeof e)n(L.a.na(e));else if(e instanceof Array)n(e);else if(r(e))n(L.a.W(e.childNodes));else if(e.element)if(e=e.element,Ma.HTMLElement?e instanceof HTMLElement:e&&e.tagName&&1===e.nodeType)n(o(e));else if("string"==typeof e){var i=Na.getElementById(e);i?n(o(i)):t("Cannot find element with ID "+e)}else t("Unknown element type: "+e);else t("Unknown template value: "+e)},loadViewModel:function(t,e,n){!function t(e,n,i){if("function"==typeof n)i(function(t){return new n(t)});else if("function"==typeof n[c])i(n[c]);else if("instance"in n){var o=n.instance;i(function(){return o})}else"viewModel"in n?t(e,n.viewModel,i):e("Unknown viewModel value: "+n)}(s(t),e,n)}};var c="createViewModel";L.b("components.register",L.g.register),L.b("components.isRegistered",L.g.wb),L.b("components.unregister",L.g.ud),L.b("components.defaultLoader",L.g.cc),L.g.loaders.push(L.g.cc),L.g.Ec=n}(),function(){L.g.getComponentNameForNode=function(t){var e=L.a.A(t);if(L.g.wb(e)&&(-1!=e.indexOf("-")||"[object HTMLUnknownElement]"==""+t||L.a.C<=8&&t.tagName===e))return e},L.g.Rb=function(t,e,n,i){if(1===e.nodeType){var o=L.g.getComponentNameForNode(e);if(o){if((t=t||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var r={name:o,params:function(n,t){if(e=n.getAttribute("params")){var e=s.parseBindingsString(e,t,n,{valueAccessors:!0,bindingParams:!0}),i=(e=L.a.Ea(e,function(t){return L.m(t,null,{i:n})}),L.a.Ea(e,function(e){var t=e.p();return e.ca()?L.m({read:function(){return L.a.c(e())},write:L.Da(t)&&function(t){e()(t)},i:n}):t}));return i.hasOwnProperty("$raw")||(i.$raw=e),i}return{$raw:{}}}(e,n)};t.component=i?function(){return r}:r}}return t};var i,e,s=new L.S;L.a.C<9&&(L.g.register=(e=L.g.register,function(t){return Na.createElement(t),e.apply(this,arguments)}),Na.createDocumentFragment=(i=Na.createDocumentFragment,function(){var t,e=i(),n=L.g.Ec;for(t in n)n.hasOwnProperty(t)&&e.createElement(t);return e}))}(),T=0,L.d.component={init:function(u,e,t,n,h){function p(){var t=d&&d.dispose;"function"==typeof t&&t.call(d),f=d=null}var d,f,m=L.a.W(L.f.childNodes(u));return L.a.G.qa(u,p),L.m(function(){var a,l,t=L.a.c(e());if("string"==typeof t?a=t:(a=L.a.c(t.name),l=L.a.c(t.params)),!a)throw Error("No component name specified");var c=f=++T;L.g.get(a,function(t){if(f===c){if(p(),!t)throw Error("Unknown component '"+a+"'");!function(t,e,n){if(!(e=e.template))throw Error("Component '"+t+"' has no template");t=L.a.wa(e),L.f.fa(n,t)}(a,t,u);var e=(i=u,o=m,r=l,(s=(n=t).createViewModel)?s.call(n,r,{element:i,templateNodes:o}):r);t=h.createChildContext(e,void 0,function(t){t.$component=e,t.$componentTemplateNodes=m}),d=e,L.hb(t,u)}var n,i,o,r,s})},null,{i:u}),{controlsDescendantBindings:!0}}},L.f.aa.component=!0;var P={class:"className",for:"htmlFor"};L.d.attr={update:function(i,t){var e=L.a.c(t())||{};L.a.D(e,function(t,e){var n=!1===(e=L.a.c(e))||null===e||e===La;n&&i.removeAttribute(t),L.a.C<=8&&t in P?(t=P[t],n?i.removeAttribute(t):i[t]=e):n||i.setAttribute(t,e.toString()),"name"===t&&L.a.vc(i,n?"":e.toString())})}},L.d.checked={after:["value","attr"],init:function(o,r,s){function t(){var t=o.checked,e=p?a():t;if(!L.xa.Va()&&(!l||t)){var n=L.l.w(r);if(c){var i=u?n.p():n;h!==e?(t&&(L.a.ra(i,e,!0),L.a.ra(i,h,!1)),h=e):L.a.ra(i,e,t),u&&L.Da(n)&&n(i)}else L.h.Ga(n,s,"checked",e,!0)}}var a=L.rc(function(){return s.has("checkedValue")?L.a.c(s.get("checkedValue")):s.has("value")?L.a.c(s.get("value")):o.value}),e="checkbox"==o.type,l="radio"==o.type;if(e||l){var n=r(),c=e&&L.a.c(n)instanceof Array,u=!(c&&n.push&&n.splice),h=c?a():La,p=l||c;l&&!o.name&&L.d.uniqueName.init(o,function(){return!0}),L.m(t,null,{i:o}),L.a.q(o,"click",t),L.m(function(){var t=L.a.c(r());o.checked=c?0<=L.a.o(t,a()):e?t:a()===t},null,{i:o}),n=La}}},L.h.ga.checked=!0,L.d.checkedValue={update:function(t,e){t.value=L.a.c(e())}},L.d.css={update:function(n,t){var e=L.a.c(t());null!==e&&"object"==typeof e?L.a.D(e,function(t,e){e=L.a.c(e),L.a.fb(n,t,e)}):(e=L.a.cb(String(e||"")),L.a.fb(n,n.__ko__cssValue,!1),n.__ko__cssValue=e,L.a.fb(n,e,!0))}},L.d.enable={update:function(t,e){var n=L.a.c(e());n&&t.disabled?t.removeAttribute("disabled"):n||t.disabled||(t.disabled=!0)}},L.d.disable={update:function(t,e){L.d.enable.update(t,function(){return!L.a.c(e())})}},L.d.event={init:function(t,r,s,a,l){var e=r()||{};L.a.D(e,function(o){"string"==typeof o&&L.a.q(t,o,function(t){var e,n=r()[o];if(n){try{var i=L.a.W(arguments);a=l.$data,i.unshift(a),e=n.apply(a,i)}finally{!0!==e&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}!1===s.get(o+"Bubble")&&(t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation())}})})}},L.d.foreach={mc:function(n){return function(){var t=n(),e=L.a.Bb(t);return e&&"number"!=typeof e.length?(L.a.c(t),{foreach:e.data,as:e.as,includeDestroyed:e.includeDestroyed,afterAdd:e.afterAdd,beforeRemove:e.beforeRemove,afterRender:e.afterRender,beforeMove:e.beforeMove,afterMove:e.afterMove,templateEngine:L.X.vb}):{foreach:t,templateEngine:L.X.vb}}},init:function(t,e){return L.d.template.init(t,L.d.foreach.mc(e))},update:function(t,e,n,i,o){return L.d.template.update(t,L.d.foreach.mc(e),n,i,o)}},L.h.va.foreach=!1,L.f.aa.foreach=!0,L.d.hasfocus={init:function(i,o,r){function t(t){i.__ko_hasfocusUpdating=!0;var e=i.ownerDocument;if("activeElement"in e){var n;try{n=e.activeElement}catch(t){n=e.body}t=n===i}e=o(),L.h.Ga(e,r,"hasfocus",t,!0),i.__ko_hasfocusLastValue=t,i.__ko_hasfocusUpdating=!1}var e=t.bind(null,!0),n=t.bind(null,!1);L.a.q(i,"focus",e),L.a.q(i,"focusin",e),L.a.q(i,"blur",n),L.a.q(i,"focusout",n)},update:function(t,e){var n=!!L.a.c(e());t.__ko_hasfocusUpdating||t.__ko_hasfocusLastValue===n||(n?t.focus():t.blur(),!n&&t.__ko_hasfocusLastValue&&t.ownerDocument.body.focus(),L.l.w(L.a.Fa,null,[t,n?"focusin":"focusout"]))}},L.h.ga.hasfocus=!0,L.d.hasFocus=L.d.hasfocus,L.h.ga.hasFocus=!0,L.d.html={init:function(){return{controlsDescendantBindings:!0}},update:function(t,e){L.a.Eb(t,e())}},e("if"),e("ifnot",!1,!0),e("with",!0,!1,function(t,e){return t.ac(e)});var A={};L.d.options={init:function(t){if("select"!==L.a.A(t))throw Error("options binding applies only to SELECT elements");for(;0<t.length;)t.remove(0);return{controlsDescendantBindings:!0}},update:function(i,t,o){function e(){return L.a.Ma(i.options,function(t){return t.selected})}function r(t,e,n){var i=typeof e;return"function"==i?e(t):"string"==i?t[e]:n}function n(t,e){if(d&&c)L.j.ja(i,L.a.c(o.get("value")),!0);else if(p.length){var n=0<=L.a.o(p,L.j.u(e[0]));L.a.wc(e[0],n),d&&!n&&L.l.w(L.a.Fa,null,[i,"change"])}}var s=i.multiple,a=0!=i.length&&s?i.scrollTop:null,l=L.a.c(t()),c=o.get("valueAllowUnset")&&o.has("value"),u=o.get("optionsIncludeDestroyed");t={};var h,p=[];c||(s?p=L.a.ib(e(),L.j.u):0<=i.selectedIndex&&p.push(L.j.u(i.options[i.selectedIndex]))),l&&(void 0===l.length&&(l=[l]),h=L.a.Ma(l,function(t){return u||t===La||null===t||!L.a.c(t._destroy)}),o.has("optionsCaption")&&null!==(l=L.a.c(o.get("optionsCaption")))&&l!==La&&h.unshift(A));var d=!1;t.beforeRemove=function(t){i.removeChild(t)},l=n,o.has("optionsAfterRender")&&"function"==typeof o.get("optionsAfterRender")&&(l=function(t,e){n(0,e),L.l.w(o.get("optionsAfterRender"),null,[e[0],t!==A?t:La])}),L.a.Db(i,h,function(t,e,n){return n.length&&(p=!c&&n[0].selected?[L.j.u(n[0])]:[],d=!0),e=i.ownerDocument.createElement("option"),t===A?(L.a.bb(e,o.get("optionsCaption")),L.j.ja(e,La)):(n=r(t,o.get("optionsValue"),t),L.j.ja(e,L.a.c(n)),t=r(t,o.get("optionsText"),n),L.a.bb(e,t)),[e]},t,l),L.l.w(function(){c?L.j.ja(i,L.a.c(o.get("value")),!0):(s?p.length&&e().length<p.length:p.length&&0<=i.selectedIndex?L.j.u(i.options[i.selectedIndex])!==p[0]:p.length||0<=i.selectedIndex)&&L.a.Fa(i,"change")}),L.a.Sc(i),a&&20<Math.abs(a-i.scrollTop)&&(i.scrollTop=a)}},L.d.options.zb=L.a.e.J(),L.d.selectedOptions={after:["options","foreach"],init:function(n,i,o){L.a.q(n,"change",function(){var t=i(),e=[];L.a.r(n.getElementsByTagName("option"),function(t){t.selected&&e.push(L.j.u(t))}),L.h.Ga(t,o,"selectedOptions",e)})},update:function(t,e){if("select"!=L.a.A(t))throw Error("values binding applies only to SELECT elements");var n=L.a.c(e()),i=t.scrollTop;n&&"number"==typeof n.length&&L.a.r(t.getElementsByTagName("option"),function(t){var e=0<=L.a.o(n,L.j.u(t));t.selected!=e&&L.a.wc(t,e)}),t.scrollTop=i}},L.h.ga.selectedOptions=!0,L.d.style={update:function(n,t){var e=L.a.c(t()||{});L.a.D(e,function(t,e){null!==(e=L.a.c(e))&&e!==La&&!1!==e||(e=""),n.style[t]=e})}},L.d.submit={init:function(i,o,t,e,r){if("function"!=typeof o())throw Error("The value for a submit binding must be a function");L.a.q(i,"submit",function(t){var e,n=o();try{e=n.call(r.$data,i)}finally{!0!==e&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}})}},L.d.text={init:function(){return{controlsDescendantBindings:!0}},update:function(t,e){L.a.bb(t,e())}},L.f.aa.text=!0,function(){if(Ma&&Ma.navigator)var t=function(t){if(t)return parseFloat(t[1])},u=Ma.opera&&Ma.opera.version&&parseInt(Ma.opera.version()),e=Ma.navigator.userAgent,h=t(e.match(/^(?:(?!chrome).)*version\/([^ ]*) safari/i)),p=t(e.match(/Firefox\/([^ ]*)/));if(L.a.C<10)var i=L.a.e.J(),o=L.a.e.J(),r=function(t){var e=this.activeElement;(e=e&&L.a.e.get(e,o))&&e(t)},d=function(t,e){var n=t.ownerDocument;L.a.e.get(n,i)||(L.a.e.set(n,i,!0),L.a.q(n,"selectionchange",r)),L.a.e.set(t,o,e)};L.d.textInput={init:function(n,i,e){function t(t,e){L.a.q(n,t,e)}function o(){s||(a=n.value,s=L.a.setTimeout(r,4))}function r(){clearTimeout(s),a=s=La;var t=n.value;l!==t&&(l=t,L.h.Ga(i(),e,"textInput",t))}var s,a,l=n.value,c=9==L.a.C?o:r;L.a.C<10?(t("propertychange",function(t){"value"===t.propertyName&&c(t)}),8==L.a.C&&(t("keyup",r),t("keydown",r)),8<=L.a.C&&(d(n,c),t("dragend",o))):(t("input",r),h<5&&"textarea"===L.a.A(n)?(t("keydown",o),t("paste",o),t("cut",o)):u<11?t("keydown",o):p<4&&(t("DOMAutoComplete",r),t("dragdrop",r),t("drop",r))),t("change",r),L.m(function t(){var e=L.a.c(i());null!==e&&e!==La||(e=""),a!==La&&e===a?L.a.setTimeout(t,4):n.value!==e&&(l=e,n.value=e)},null,{i:n})}},L.h.ga.textInput=!0,L.d.textinput={preprocess:function(t,e,n){n("textInput",t)}}}(),L.d.uniqueName={init:function(t,e){if(e()){var n="ko_unique_"+ ++L.d.uniqueName.Nc;L.a.vc(t,n)}}},L.d.uniqueName.Nc=0,L.d.value={after:["options","foreach"],init:function(i,o,r){if("input"!=i.tagName.toLowerCase()||"checkbox"!=i.type&&"radio"!=i.type){var t=["change"],e=r.get("valueUpdate"),n=!1,s=null;e&&("string"==typeof e&&(e=[e]),L.a.ta(t,e),t=L.a.Wb(t));var a=function(){s=null,n=!1;var t=o(),e=L.j.u(i);L.h.Ga(t,r,"value",e)};!L.a.C||"input"!=i.tagName.toLowerCase()||"text"!=i.type||"off"==i.autocomplete||i.form&&"off"==i.form.autocomplete||-1!=L.a.o(t,"propertychange")||(L.a.q(i,"propertychange",function(){n=!0}),L.a.q(i,"focus",function(){n=!1}),L.a.q(i,"blur",function(){n&&a()})),L.a.r(t,function(t){var e=a;L.a.sd(t,"after")&&(e=function(){s=L.j.u(i),L.a.setTimeout(a,0)},t=t.substring(5)),L.a.q(i,t,e)});var l=function(){var t=L.a.c(o()),e=L.j.u(i);if(null!==s&&t===s)L.a.setTimeout(l,0);else if(t!==e)if("select"===L.a.A(i)){var n=r.get("valueAllowUnset");(e=function(){L.j.ja(i,t,n)})(),n||t===L.j.u(i)?L.a.setTimeout(e,0):L.l.w(L.a.Fa,null,[i,"change"])}else L.j.ja(i,t)};L.m(l,null,{i:i})}else L.La(i,{checkedValue:o})},update:function(){}},L.h.ga.value=!0,L.d.visible={update:function(t,e){var n=L.a.c(e()),i="none"!=t.style.display;n&&!i?t.style.display="":!n&&i&&(t.style.display="none")}},L.d.click={init:function(t,e,n,i,o){return L.d.event.init.call(this,t,function(){var t={};return t.click=e(),t},n,i,o)}},L.P=function(){},L.P.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},L.P.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},L.P.prototype.makeTemplateSource=function(t,e){if("string"==typeof t){var n=(e=e||Na).getElementById(t);if(!n)throw Error("Cannot find template with ID "+t);return new L.v.n(n)}if(1==t.nodeType||8==t.nodeType)return new L.v.sa(t);throw Error("Unknown template type: "+t)},L.P.prototype.renderTemplate=function(t,e,n,i){return t=this.makeTemplateSource(t,i),this.renderTemplateSource(t,e,n,i)},L.P.prototype.isTemplateRewritten=function(t,e){return!1===this.allowTemplateRewriting||this.makeTemplateSource(t,e).data("isRewritten")},L.P.prototype.rewriteTemplate=function(t,e,n){e=e((t=this.makeTemplateSource(t,n)).text()),t.text(e),t.data("isRewritten",!0)},L.b("templateEngine",L.P),L.Ib=function(){function s(t,e,n,i){t=L.h.Ab(t);for(var o=L.h.va,r=0;r<t.length;r++){var s=t[r].key;if(o.hasOwnProperty(s)){var a=o[s];if("function"==typeof a){if(s=a(t[r].value))throw Error(s)}else if(!a)throw Error("This template engine does not support the '"+s+"' binding within its templates")}}return n="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+L.h.Xa(t,{valueAccessors:!0})+" } })()},'"+n.toLowerCase()+"')",i.createJavaScriptEvaluatorBlock(n)+e}var e=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{Tc:function(t,e,n){e.isTemplateRewritten(t,n)||e.rewriteTemplate(t,function(t){return L.Ib.jd(t,e)},n)},jd:function(t,r){return t.replace(e,function(t,e,n,i,o){return s(o,e,n,r)}).replace(n,function(t,e){return s(e,"\x3c!-- ko --\x3e","#comment",r)})},Jc:function(i,o){return L.N.yb(function(t,e){var n=t.nextSibling;n&&n.nodeName.toLowerCase()===o&&L.La(n,i,e)})}}}(),L.b("__tr_ambtns",L.Ib.Jc),function(){L.v={},L.v.n=function(t){if(this.n=t){var e=L.a.A(t);this.eb="script"===e?1:"textarea"===e?2:"template"==e&&t.content&&11===t.content.nodeType?3:4}},L.v.n.prototype.text=function(){var t=1===this.eb?"text":2===this.eb?"value":"innerHTML";if(0==arguments.length)return this.n[t];var e=arguments[0];"innerHTML"===t?L.a.Eb(this.n,e):this.n[t]=e};var e=L.a.e.J()+"_";L.v.n.prototype.data=function(t){if(1===arguments.length)return L.a.e.get(this.n,e+t);L.a.e.set(this.n,e+t,arguments[1])};var n=L.a.e.J();L.v.n.prototype.nodes=function(){var t=this.n;if(0==arguments.length)return(L.a.e.get(t,n)||{}).mb||(3===this.eb?t.content:4===this.eb?t:La);L.a.e.set(t,n,{mb:arguments[0]})},L.v.sa=function(t){this.n=t},L.v.sa.prototype=new L.v.n,L.v.sa.prototype.text=function(){if(0==arguments.length){var t=L.a.e.get(this.n,n)||{};return t.Jb===La&&t.mb&&(t.Jb=t.mb.innerHTML),t.Jb}L.a.e.set(this.n,n,{Jb:arguments[0]})},L.b("templateSources",L.v),L.b("templateSources.domElement",L.v.n),L.b("templateSources.anonymousTemplate",L.v.sa)}(),function(){function i(t,e,n){var i;for(e=L.f.nextSibling(e);t&&(i=t)!==e;)n(i,t=L.f.nextSibling(i))}function c(t,e){if(t.length){var o=t[0],r=t[t.length-1],n=o.parentNode,s=L.S.instance,a=s.preprocessNode;if(a){if(i(o,r,function(t,e){var n=t.previousSibling,i=a.call(s,t);i&&(t===o&&(o=i[0]||e),t===r&&(r=i[i.length-1]||n))}),t.length=0,!o)return;o===r?t.push(o):(t.push(o,r),L.a.Ba(t,n))}i(o,r,function(t){1!==t.nodeType&&8!==t.nodeType||L.Ub(e,t)}),i(o,r,function(t){1!==t.nodeType&&8!==t.nodeType||L.N.Cc(t,[e])}),L.a.Ba(t,n)}}function l(t){return t.nodeType?t:0<t.length?t[0]:null}function u(t,e,n,i,o){o=o||{};var r=(t&&l(t)||n||{}).ownerDocument,s=o.templateEngine||p;if(L.Ib.Tc(n,s,r),"number"!=typeof(n=s.renderTemplate(n,i,o,r)).length||0<n.length&&"number"!=typeof n[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(r=!1,e){case"replaceChildren":L.f.fa(t,n),r=!0;break;case"replaceNode":L.a.uc(t,n),r=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+e)}return r&&(c(n,i),o.afterRender&&L.l.w(o.afterRender,null,[n,i.$data])),n}function h(t,e,n){return L.I(t)?t():"function"==typeof t?t(e,n):t}var p;L.Fb=function(t){if(t!=La&&!(t instanceof L.P))throw Error("templateEngine must inherit from ko.templateEngine");p=t},L.Cb=function(n,i,o,r,s){if(((o=o||{}).templateEngine||p)==La)throw Error("Set a template engine before calling renderTemplate");if(s=s||"replaceChildren",r){var a=l(r);return L.B(function(){var t=i&&i instanceof L.R?i:new L.R(i,null,null,null,{exportDependencies:!0}),e=h(n,t.$data,t);t=u(r,s,e,t,o),"replaceNode"==s&&(a=l(r=t))},null,{ya:function(){return!a||!L.a.qb(a)},i:a&&"replaceNode"==s?a.parentNode:a})}return L.N.yb(function(t){L.Cb(n,i,o,t,"replaceNode")})},L.pd=function(n,e,i,o,r){function s(t,e){c(e,l),i.afterRender&&i.afterRender(e,t),l=null}function a(t,e){return l=r.createChildContext(t,i.as,function(t){t.$index=e}),u(null,"ignoreTargetNode",h(n,t,l),l,i)}var l;return L.B(function(){var t=L.a.c(e)||[];void 0===t.length&&(t=[t]),t=L.a.Ma(t,function(t){return i.includeDestroyed||t===La||null===t||!L.a.c(t._destroy)}),L.l.w(L.a.Db,null,[o,t,a,i,s])},null,{i:o})};var s=L.a.e.J();L.d.template={init:function(t,e){var n=L.a.c(e());if("string"==typeof n||n.name)L.f.za(t);else{if("nodes"in n){if(n=n.nodes||[],L.I(n))throw Error('The "nodes" option must be a plain, non-observable array.')}else n=L.f.childNodes(t);n=L.a.nc(n),new L.v.sa(t).nodes(n)}return{controlsDescendantBindings:!0}},update:function(t,e,n,i,o){var r=e();n=!0,i=null,"string"==typeof(e=L.a.c(r))?e={}:(r=e.name,"if"in e&&(n=L.a.c(e.if)),n&&"ifnot"in e&&(n=!L.a.c(e.ifnot))),"foreach"in e?i=L.pd(r||t,n&&e.foreach||[],e,t,o):n?(o="data"in e?o.ac(e.data,e.as):o,i=L.Cb(r||t,o,e,t)):L.f.za(t),o=i,(e=L.a.e.get(t,s))&&"function"==typeof e.k&&e.k(),L.a.e.set(t,s,o&&o.ca()?o:La)}},L.h.va.template=function(t){return 1==(t=L.h.Ab(t)).length&&t[0].unknown||L.h.fd(t,"name")?null:"This template engine does not support anonymous templates nested within its templates"},L.f.aa.template=!0}(),L.b("setTemplateEngine",L.Fb),L.b("renderTemplate",L.Cb),L.a.hc=function(t,e,n){var i,o,r,s,a;if(t.length&&e.length)for(i=o=0;(!n||i<n)&&(s=t[o]);++o){for(r=0;a=e[r];++r)if(s.value===a.value){s.moved=a.index,a.moved=s.index,e.splice(r,1),i=r=0;break}i+=r}},L.a.lb=function(){function i(t,e,n,i,o){var r,s,a,l,c,u=Math.min,h=Math.max,p=[],d=t.length,f=e.length,m=f-d||1,g=d+f+1;for(r=0;r<=d;r++)for(l=a,p.push(a=[]),c=u(f,r+m),s=h(0,r-1);s<=c;s++)a[s]=s?r?t[r-1]===e[s-1]?l[s-1]:u(l[s]||g,a[s-1]||g)+1:s+1:r+1;for(u=[],h=[],m=[],r=d,s=f;r||s;)f=p[r][s]-1,s&&f===p[r][s-1]?h.push(u[u.length]={status:n,value:e[--s],index:s}):r&&f===p[r-1][s]?m.push(u[u.length]={status:i,value:t[--r],index:r}):(--s,--r,o.sparse||u.push({status:"retained",value:e[s]}));return L.a.hc(m,h,!o.dontLimitMoves&&10*d),u.reverse()}return function(t,e,n){return n="boolean"==typeof n?{dontLimitMoves:n}:n||{},e=e||[],(t=t||[]).length<e.length?i(t,e,"added","deleted",n):i(e,t,"deleted","added",n)}}(),L.b("utils.compareArrays",L.a.lb),function(){function k(e,n,i,o,r){var s=[],t=L.B(function(){var t=n(i,r,L.a.Ba(s,e))||[];0<s.length&&(L.a.uc(s,t),o&&L.l.w(o,null,[i,t,r])),s.length=0,L.a.ta(s,t)},null,{i:e,ya:function(){return!L.a.Tb(s)}});return{ea:s,B:t.ca()?t:La}}var x=L.a.e.J(),C=L.a.e.J();L.a.Db=function(n,t,e,i,o){function r(t,e){_=c[e],f!==e&&(b[t]=_),_.tb(f++),L.a.Ba(_.ea,n),p.push(_),g.push(_)}function s(e,n){if(e)for(var i=0,t=n.length;i<t;i++)n[i]&&L.a.r(n[i].ea,function(t){e(t,i,n[i].ka)})}t=t||[],i=i||{};var a,l=L.a.e.get(n,x)===La,c=L.a.e.get(n,x)||[],u=L.a.ib(c,function(t){return t.ka}),h=L.a.lb(u,t,i.dontLimitMoves),p=[],d=0,f=0,m=[],g=[];t=[];for(var _,v,y,b=[],w=(u=[],0);v=h[w];w++)switch(y=v.moved,v.status){case"deleted":y===La&&((_=c[d]).B&&(_.B.k(),_.B=La),L.a.Ba(_.ea,n).length&&(i.beforeRemove&&(p.push(_),g.push(_),_.ka===C?_=null:t[w]=_),_&&m.push.apply(m,_.ea))),d++;break;case"retained":r(w,d++);break;case"added":y!==La?r(w,y):(_={ka:v.value,tb:L.O(f++)},p.push(_),g.push(_),l||(u[w]=_))}for(L.a.e.set(n,x,p),s(i.beforeMove,b),L.a.r(m,i.beforeRemove?L.ba:L.removeNode),w=0,l=L.f.firstChild(n);_=g[w];w++){for(_.ea||L.a.extend(_,k(n,e,_.ka,o,_.tb)),d=0;h=_.ea[d];l=h.nextSibling,a=h,d++)h!==l&&L.f.kc(n,h,a);!_.ad&&o&&(o(_.ka,_.ea,_.tb),_.ad=!0)}for(s(i.beforeRemove,t),w=0;w<t.length;++w)t[w]&&(t[w].ka=C);s(i.afterMove,b),s(i.afterAdd,u)}}(),L.b("utils.setDomNodeChildrenFromArrayMapping",L.a.Db),L.X=function(){this.allowTemplateRewriting=!1},L.X.prototype=new L.P,L.X.prototype.renderTemplateSource=function(t,e,n,i){return(e=L.a.C<9||!t.nodes?null:t.nodes())?L.a.W(e.cloneNode(!0).childNodes):(t=t.text(),L.a.na(t,i))},L.X.vb=new L.X,L.Fb(L.X.vb),L.b("nativeTemplateEngine",L.X),function(){L.xb=function(){var r=this.ed=function(){if(!Pa||!Pa.tmpl)return 0;try{if(0<=Pa.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(t){}return 1}();this.renderTemplateSource=function(t,e,n,i){if(i=i||Na,n=n||{},r<2)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=t.data("precompiled");return o||(o=t.text()||"",o=Pa.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),t.data("precompiled",o)),t=[e.$data],e=Pa.extend({koBindingContext:e},n.templateOptions),(e=Pa.tmpl(o,t,e)).appendTo(i.createElement("div")),Pa.fragments={},e},this.createJavaScriptEvaluatorBlock=function(t){return"{{ko_code ((function() { return "+t+" })()) }}"},this.addTemplate=function(t,e){Na.write("<script type='text/html' id='"+t+"'>"+e+"<\/script>")},0<r&&(Pa.tmpl.tag.ko_code={open:"__.push($1 || '');"},Pa.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},L.xb.prototype=new L.P;var t=new L.xb;0<t.ed&&L.Fb(t),L.b("jqueryTmplTemplateEngine",L.xb)}()},"function"==typeof e&&e.amd?e("knockout",["exports","require"],Ra):"object"==typeof exports&&"object"==typeof module?Ra(module.exports||exports):Ra(Ma.ko={})}(),function(d,t,f){function m(t,e,n){return"function"==typeof e&&(e=g(n=e).replace(/_$/,"")),a(t,e,{configurable:!0,writable:!0,value:n})}function g(t){return"function"!=typeof t?"":"_name"in t?t._name:"name"in t?t.name:n.call(t).match(r)[1]}function _(t,e){return e._name=t,e}function e(n){var i=new s;return n||(n=u),function(t,e){return e||2===arguments.length?i.set(t,e):(e=i.get(t))===f&&(e=n(t),i.set(t,e)),e}}var i=Object.getOwnPropertyNames,o="object"==typeof window?Object.getOwnPropertyNames(window):[],a=Object.defineProperty,n=Function.prototype.toString,l=Object.create,c=Object.prototype.hasOwnProperty,r=/^\n?function\s?(\w*)?_?\(/,v=function(){function t(){var i=n(),o={};this.unlock=function(t){var e=function(t){if(c.call(t,s))return t[s];if(!Object.isExtensible(t))throw new TypeError("Object must be extensible");var e=l(null);return a(t,s,{value:e}),e}(t);if(c.call(e,i))return e[i](o);var n=l(null,r);return a(e,i,{value:function(t){if(t===o)return n}}),n}}var r={value:{writable:!0,value:f}},e=l(null),n=function(){var t=Math.random().toString(36).slice(2);return t in e?n():e[t]=t},s=n();return m(Object,_("getOwnPropertyNames",function(t){var e,n=Object(t);if(n!==Window.prototype&&"toString"in n&&"[object Window]"===n.toString())try{e=i(t)}catch(t){e=o}else e=i(t);return c.call(t,s)&&e.splice(e.indexOf(s),1),e})),m(t.prototype,_("get",function(t){return this.unlock(t).value})),m(t.prototype,_("set",function(t,e){this.unlock(t).value=e})),t}(),s=function(i){function e(t){return this===d||null==this||this===e.prototype?new e(t):(a(this,new v),void c(this,t))}function t(t){s(t);var e=l(this).get(t);return void 0===e?f:e}function o(t,e){s(t),l(this).set(t,e===f?void 0:e)}function n(t){return s(t),l(this).get(t)!==f}function r(){return l(this),"[object WeakMap]"}var s=function(t){if(null==t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Invalid WeakMap key")},a=function(t,e){var n=i.unlock(t);if(n.value)throw new TypeError("Object is already a WeakMap");n.value=e},l=function(t){var e=i.unlock(t).value;if(!e)throw new TypeError("WeakMap is not generic");return e},c=function(n,i){null!==i&&"object"==typeof i&&"function"==typeof i.forEach&&i.forEach(function(t,e){t instanceof Array&&2===t.length&&o.call(n,i[e][0],i[e][1])})};t._name="get",o._name="set",n._name="has",r._name="toString";var u=(""+Object).split("Object"),h=_("toString",function(){return u[0]+g(this)+u[1]});m(h,h);var p={__proto__:[]}instanceof Array?function(t){t.__proto__=h}:function(t){m(t,h)};return p(e),[r,t,o,n,function(t){s(t);var e=l(this),n=e.get(t)!==f;return e.set(t,f),n}].forEach(function(t){m(e.prototype,t),p(t)}),e}(new v),u=Object.create?function(){return Object.create(null)}:function(){return{}};"undefined"!=typeof module?module.exports=s:"undefined"!=typeof exports?exports.WeakMap=s:"WeakMap"in d||(d.WeakMap=s),s.createStorage=e,d.WeakMap&&(d.WeakMap.createStorage=e)}(function(){return this}()),function(n,s){"use strict";function o(t,e){if(!t||"object"!=typeof t)throw new Error("When calling ko.track, you must pass an object as the first parameter.");var n;return(n=e)&&"object"==typeof n&&n.constructor===Object?(e.deep=e.deep||!1,e.fields=e.fields||Object.getOwnPropertyNames(t),e.lazy=e.lazy||!1,c(t,e.fields,e)):c(t,e||Object.getOwnPropertyNames(t),{}),t}function a(t){return t&&"object"==typeof t&&"Object"===((e=t.constructor).name?e.name:(e.toString().trim().match(w)||[])[1]);var e}function l(t,e,n){var i=_.isObservable(t),o=!i&&Array.isArray(t),r=i?t:o?_.observableArray(t):_.observable(t);return n[e]=function(){return r},(o||i&&"push"in r)&&h(_,r),{configurable:!0,enumerable:!0,get:r,set:_.isWriteableObservable(r)?r:s}}function c(n,t,i){if(t.length){var o=u(n,!0),r={};t.forEach(function(t){if(!(t in o)&&!1!==Object.getOwnPropertyDescriptor(n,t).configurable){var e=n[t];r[t]=(i.lazy?function(t,e,n){function i(t,e){return o?e?o(t):o:Array.isArray(t)?(o=_.observableArray(t),h(_,o),o):o=_.observable(t)}return _.isObservable(t)?l(t,e,n):(n[e]=function(){return i(t)},{configurable:!0,enumerable:!0,get:function(){return i(t)()},set:function(t){i(t,!0)}});var o}:l)(e,t,o),i.deep&&a(e)&&c(e,Object.keys(e),i)}}),Object.defineProperties(n,r)}}function u(t,e){y||(y=v());var n=y.get(t);return!n&&e&&(n={},y.set(t,n)),n}function i(t,e){if(y)if(1===arguments.length)y.delete(t);else{var n=u(t,!1);n&&e.forEach(function(t){delete n[t]})}}function r(t,e,n){var i={owner:t,deferEvaluation:!0};if("function"==typeof n)i.read=n;else{if("value"in n)throw new Error('For ko.defineProperty, you must not specify a "value" for the property. You must provide a "get" function.');if("function"!=typeof n.get)throw new Error('For ko.defineProperty, the third parameter must be either an evaluator function, or an options object containing a function called "get".');i.read=n.get,i.write=n.set}return t[e]=this.computed(i),o.call(this,t,[e]),t}function h(n,i){var o=null;n.computed(function(){o&&(o.dispose(),o=null);var t,e=i();e instanceof Array&&(t=i,o=function(t,e){b||(b=v());var n,i,o,r,s,a,l,c=b.get(e);if(!c){c=new t.subscribable,b.set(e,c);var u={};s=e,a=c,l=u,["pop","push","reverse","shift","sort","splice","unshift"].forEach(function(t){var e=s[t];s[t]=function(){var t=e.apply(this,arguments);return!0!==l.pause&&a.notifySubscribers(this),t}}),n=t,i=e,o=c,r=u,["remove","removeAll","destroy","destroyAll","replace"].forEach(function(e){Object.defineProperty(i,e,{enumerable:!1,value:function(){var t;r.pause=!0;try{t=n.observableArray.fn[e].apply(n.observableArray(i),arguments)}finally{r.pause=!1}return o.notifySubscribers(i),t}})})}return c}(n,e).subscribe(t))})}function p(t,e){if(!t||"object"!=typeof t)return null;var n=u(t,!1);if(n&&e in n)return n[e]();var i=t[e];return _.isObservable(i)?i:null}function f(t,e){if(!t||"object"!=typeof t)return!1;var n=u(t,!1);return!!n&&e in n}function m(t,e){var n=p(t,e);n&&n.valueHasMutated()}function g(t){t.track=o,t.untrack=i,t.getObservable=p,t.valueHasMutated=m,t.defineProperty=r,t.es5={getAllObservablesForObject:u,notifyWhenPresentOrFutureArrayValuesMutate:h,isTracked:f}}var _,v,y,b,w=/^function\s*([^\s(]+)/;!function(){if("object"==typeof exports&&"object"==typeof module){_=d("knockout");var t=n.WeakMap||d("../lib/weakmap");g(_),v=function(){return new t},module.exports=_}else"function"==typeof e&&e.amd?e("KnockoutES5",["knockout"],function(t){return g(_=t),v=function(){return new n.WeakMap},t}):"ko"in n&&(_=n.ko,g(n.ko),v=function(){return new n.WeakMap})}()}("undefined"!=typeof window?window:"undefined"!=typeof global?global:this),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof e&&e.amd)e("markdown-it-sanitizer",[],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).markdownitSanitizer=t()}}(function(){return function r(s,a,l){function c(n,t){if(!a[n]){if(!s[n]){var e="function"==typeof d&&d;if(!t&&e)return e(n,!0);if(u)return u(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var o=a[n]={exports:{}};s[n][0].call(o.exports,function(t){var e=s[n][1][t];return c(e||t)},o,o.exports,r,s,a,l)}return a[n].exports}for(var u="function"==typeof d&&d,t=0;t<l.length;t++)c(l[t]);return c}({1:[function(t,e,n){"use strict";e.exports=function(t,e){function a(t){var e=n.match(t);return e&&1===e.length&&0===e[0].index&&e[0].lastIndex===t.length?e[0].url:null}function o(t){return t.replace(/<[^<>]*>?/gi,function(t){var e,n,i,o,r,s;return/(^<->|^<-\s|^<3\s)/.test(t)?t:(e=t.match(u))&&(i=a((n=e[1]).match(/src="([^"<>]*)"/i)[1]),o=(o=n.match(/alt="([^"<>]*)"/i))&&void 0!==o[1]?o[1]:"",r=(r=n.match(/title="([^"<>]*)"/i))&&void 0!==r[1]?r[1]:"",i&&h.test(i))?""!==f?'<img src="'+i+'" alt="'+o+'" title="'+r+'" class="'+f+'">':'<img src="'+i+'" alt="'+o+'" title="'+r+'">':(s=g.indexOf("a"),(e=t.match(c))&&(i=a((n=e[1]).match(/href="([^"<>]*)"/i)[1]),r=(r=n.match(/title="([^"<>]*)"/i))&&void 0!==r[1]?r[1]:"",i&&p.test(i))?(m=!0,_[s]+=1,'<a href="'+i+'" title="'+r+'" target="_blank">'):(e=/<\/a>/i.test(t))?(m=!0,_[s]-=1,_[s]<0&&(v[s]=!0),"</a>"):(e=t.match(/<(br|hr)\s?\/?>/i))?"<"+e[1].toLowerCase()+">":(e=t.match(/<(\/?)(b|blockquote|code|em|h[1-6]|li|ol(?: start="\d+")?|p|pre|s|sub|sup|strong|ul)>/i))&&!/<\/ol start="\d+"/i.test(t)?(m=!0,s=g.indexOf(e[2].toLowerCase().split(" ")[0]),"/"===e[1]?_[s]-=1:_[s]+=1,_[s]<0&&(v[s]=!0),"<"+e[1]+e[2].toLowerCase()+">"):!0===d?"":l(t))})}var r,n=t.linkify,l=t.utils.escapeHtml,c=RegExp('<a\\s([^<>]*href="[^"<>]*"[^<>]*)\\s?>',"i"),u=RegExp('<img\\s([^<>]*src="[^"<>]*"[^<>]*)\\s?\\/?>',"i"),h=/^(?:https?:)?\/\//i,p=/^(?:https?:\/\/|ftp:\/\/|\/\/|mailto:|xmpp:)/i,d=void 0!==(e=e||{}).removeUnknown&&e.removeUnknown,s=void 0!==e.removeUnbalanced&&e.removeUnbalanced,f=void 0!==e.imageClass?e.imageClass:"",m=!1,g=["a","b","blockquote","code","em","h1","h2","h3","h4","h5","h6","li","ol","p","pre","s","sub","sup","strong","ul"],_=new Array(g.length),v=new Array(g.length);for(r=0;r<g.length;r++)_[r]=0;for(r=0;r<g.length;r++)v[r]=!1;t.core.ruler.after("linkify","sanitize_inline",function(t){var e,n,i;for(r=0;r<g.length;r++)_[r]=0;for(r=0;r<g.length;r++)v[r]=!1;for(m=!1,n=0;n<t.tokens.length;n++)if("html_block"===t.tokens[n].type&&(t.tokens[n].content=o(t.tokens[n].content)),"inline"===t.tokens[n].type)for(i=t.tokens[n].children,e=0;e<i.length;e++)"html_inline"===i[e].type&&(i[e].content=o(i[e].content))}),t.core.ruler.after("sanitize_inline","sanitize_balance",function(t){function e(t){var e,n,i,o,r;for(e=0;e<g.length;e++)!0===v[e]&&(n=t,i=g[e],r=o=void 0,o="a"===i?RegExp('<a href="[^"<>]*" title="[^"<>]*" target="_blank">',"g"):"ol"===i?/<ol(?: start="\d+")?>/g:RegExp("<"+i+">","g"),r=RegExp("</"+i+">","g"),t=n=!0===s?(n=n.replace(o,"")).replace(r,""):(n=n.replace(o,function(t){return l(t)})).replace(r,function(t){return l(t)}));return t}if(!1!==m){var n,i;for(r=0;r<g.length;r++)0!==_[r]&&(v[r]=!0);for(n=0;n<t.tokens.length;n++)if("html_block"!==t.tokens[n].type){if("inline"===t.tokens[n].type)for(i=t.tokens[n].children,r=0;r<i.length;r++)"html_inline"===i[r].type&&(i[r].content=e(i[r].content))}else t.tokens[n].content=e(t.tokens[n].content)}})}},{}]},{},[1])(1)}),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof e&&e.amd)e("markdown-it",[],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).markdownit=t()}}(function(){return function r(s,a,l){function c(n,t){if(!a[n]){if(!s[n]){var e="function"==typeof d&&d;if(!t&&e)return e(n,!0);if(u)return u(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var o=a[n]={exports:{}};s[n][0].call(o.exports,function(t){var e=s[n][1][t];return c(e||t)},o,o.exports,r,s,a,l)}return a[n].exports}for(var u="function"==typeof d&&d,t=0;t<l.length;t++)c(l[t]);return c}({1:[function(t,e,n){"use strict";e.exports=t("entities/maps/entities.json")},{"entities/maps/entities.json":52}],2:[function(t,e,n){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},{}],3:[function(t,e,n){"use strict";var i="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",o="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+i+"|"+o+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),s=new RegExp("^(?:"+i+"|"+o+")");e.exports.HTML_TAG_RE=r,e.exports.HTML_OPEN_CLOSE_TAG_RE=s},{}],4:[function(t,e,n){"use strict";function s(t,e){return o.call(t,e)}function a(t){return!(55296<=t&&t<=57343||64976<=t&&t<=65007||65535==(65535&t)||65534==(65535&t)||0<=t&&t<=8||11===t||14<=t&&t<=31||127<=t&&t<=159||1114111<t)}function l(t){if(65535<t){var e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}function i(t){return f[t]}var o=Object.prototype.hasOwnProperty,r=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=new RegExp(r.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),u=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,h=t("./entities"),p=/[&<>"]/,d=/[&<>"]/g,f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},m=/[.?*+^$[\]\\(){}|-]/g,g=t("uc.micro/categories/P/regex");n.lib={},n.lib.mdurl=t("mdurl"),n.lib.ucmicro=t("uc.micro"),n.assign=function(n){return Array.prototype.slice.call(arguments,1).forEach(function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach(function(t){n[t]=e[t]})}}),n},n.isString=function(t){return"[object String]"===(e=t,Object.prototype.toString.call(e));var e},n.has=s,n.unescapeMd=function(t){return t.indexOf("\\")<0?t:t.replace(r,"$1")},n.unescapeAll=function(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(c,function(t,e,n){return e||(i=t,r=0,s(h,o=n)?h[o]:35===o.charCodeAt(0)&&u.test(o)&&a(r="x"===o[1].toLowerCase()?parseInt(o.slice(2),16):parseInt(o.slice(1),10))?l(r):i);var i,o,r})},n.isValidEntityCode=a,n.fromCodePoint=l,n.escapeHtml=function(t){return p.test(t)?t.replace(d,i):t},n.arrayReplaceAt=function(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))},n.isSpace=function(t){switch(t){case 9:case 32:return!0}return!1},n.isWhiteSpace=function(t){if(8192<=t&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},n.isMdAsciiPunct=function(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},n.isPunctChar=function(t){return g.test(t)},n.escapeRE=function(t){return t.replace(m,"\\$&")},n.normalizeReference=function(t){return t.trim().replace(/\s+/g," ").toUpperCase()}},{"./entities":1,mdurl:58,"uc.micro":65,"uc.micro/categories/P/regex":63}],5:[function(t,e,n){"use strict";n.parseLinkLabel=t("./parse_link_label"),n.parseLinkDestination=t("./parse_link_destination"),n.parseLinkTitle=t("./parse_link_title")},{"./parse_link_destination":6,"./parse_link_label":7,"./parse_link_title":8}],6:[function(t,e,n){"use strict";var a=t("../common/utils").isSpace,l=t("../common/utils").unescapeAll;e.exports=function(t,e,n){var i,o,r=e,s={ok:!1,pos:0,lines:0,str:""};if(60===t.charCodeAt(e)){for(e++;e<n;){if(10===(i=t.charCodeAt(e))||a(i))return s;if(62===i)return s.pos=e+1,s.str=l(t.slice(r+1,e)),s.ok=!0,s;92===i&&e+1<n?e+=2:e++}return s}for(o=0;e<n&&32!==(i=t.charCodeAt(e))&&!(i<32||127===i);)if(92===i&&e+1<n)e+=2;else{if(40===i&&1<++o)break;if(41===i&&--o<0)break;e++}return r===e||(s.str=l(t.slice(r,e)),s.lines=0,s.pos=e,s.ok=!0),s}},{"../common/utils":4}],7:[function(t,e,n){"use strict";e.exports=function(t,e,n){var i,o,r,s,a=-1,l=t.posMax,c=t.pos;for(t.pos=e+1,i=1;t.pos<l;){if(93===(r=t.src.charCodeAt(t.pos))&&0===--i){o=!0;break}if(s=t.pos,t.md.inline.skipToken(t),91===r)if(s===t.pos-1)i++;else if(n)return t.pos=c,-1}return o&&(a=t.pos),t.pos=c,a}},{}],8:[function(t,e,n){"use strict";var l=t("../common/utils").unescapeAll;e.exports=function(t,e,n){var i,o,r=0,s=e,a={ok:!1,pos:0,lines:0,str:""};if(n<=e)return a;if(34!==(o=t.charCodeAt(e))&&39!==o&&40!==o)return a;for(e++,40===o&&(o=41);e<n;){if((i=t.charCodeAt(e))===o)return a.pos=e+1,a.lines=r,a.str=l(t.slice(s+1,e)),a.ok=!0,a;10===i?r++:92===i&&e+1<n&&(e++,10===t.charCodeAt(e)&&r++),e++}return a}},{"../common/utils":4}],9:[function(t,e,n){"use strict";function i(t){var e=t.trim().toLowerCase();return!_.test(e)||!!v.test(e)}function o(t){var e=f.parse(t,!0);if(e.hostname&&(!e.protocol||0<=y.indexOf(e.protocol)))try{e.hostname=m.toASCII(e.hostname)}catch(t){}return f.encode(f.format(e))}function r(t){var e=f.parse(t,!0);if(e.hostname&&(!e.protocol||0<=y.indexOf(e.protocol)))try{e.hostname=m.toUnicode(e.hostname)}catch(t){}return f.decode(f.format(e))}function s(t,e){return this instanceof s?(e||a.isString(t)||(e=t||{},t="default"),this.inline=new p,this.block=new h,this.core=new u,this.renderer=new c,this.linkify=new d,this.validateLink=i,this.normalizeLink=o,this.normalizeLinkText=r,this.utils=a,this.helpers=l,this.options={},this.configure(t),void(e&&this.set(e))):new s(t,e)}var a=t("./common/utils"),l=t("./helpers"),c=t("./renderer"),u=t("./parser_core"),h=t("./parser_block"),p=t("./parser_inline"),d=t("linkify-it"),f=t("mdurl"),m=t("punycode"),g={default:t("./presets/default"),zero:t("./presets/zero"),commonmark:t("./presets/commonmark")},_=/^(vbscript|javascript|file|data):/,v=/^data:image\/(gif|png|jpeg|webp);/,y=["http:","https:","mailto:"];s.prototype.set=function(t){return a.assign(this.options,t),this},s.prototype.configure=function(e){var t,n=this;if(a.isString(e)&&!(e=g[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},s.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var i=e.filter(function(t){return n.indexOf(t)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},s.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var i=e.filter(function(t){return n.indexOf(t)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},s.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},s.prototype.parse=function(t,e){var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},s.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},s.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},s.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)},e.exports=s},{"./common/utils":4,"./helpers":5,"./parser_block":10,"./parser_core":11,"./parser_inline":12,"./presets/commonmark":13,"./presets/default":14,"./presets/zero":15,"./renderer":16,"linkify-it":53,mdurl:58,punycode:60}],10:[function(t,e,n){"use strict";function i(){this.ruler=new o;for(var t=0;t<r.length;t++)this.ruler.push(r[t][0],r[t][1],{alt:(r[t][2]||[]).slice()})}var o=t("./ruler"),r=[["table",t("./rules_block/table"),["paragraph","reference"]],["code",t("./rules_block/code")],["fence",t("./rules_block/fence"),["paragraph","reference","blockquote","list"]],["blockquote",t("./rules_block/blockquote"),["paragraph","reference","list"]],["hr",t("./rules_block/hr"),["paragraph","reference","blockquote","list"]],["list",t("./rules_block/list"),["paragraph","reference","blockquote"]],["reference",t("./rules_block/reference")],["heading",t("./rules_block/heading"),["paragraph","reference","blockquote"]],["lheading",t("./rules_block/lheading")],["html_block",t("./rules_block/html_block"),["paragraph","reference","blockquote"]],["paragraph",t("./rules_block/paragraph")]];i.prototype.tokenize=function(t,e,n){for(var i,o=this.ruler.getRules(""),r=o.length,s=e,a=!1,l=t.md.options.maxNesting;s<n&&(t.line=s=t.skipEmptyLines(s),!(n<=s))&&!(t.sCount[s]<t.blkIndent);){if(t.level>=l){t.line=n;break}for(i=0;i<r&&!o[i](t,s,n,!1);i++);if(t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),(s=t.line)<n&&t.isEmpty(s)){if(a=!0,++s<n&&"list"===t.parentType&&t.isEmpty(s))break;t.line=s}}},i.prototype.parse=function(t,e,n,i){var o;t&&(o=new this.State(t,e,n,i),this.tokenize(o,o.line,o.lineMax))},i.prototype.State=t("./rules_block/state_block"),e.exports=i},{"./ruler":17,"./rules_block/blockquote":18,"./rules_block/code":19,"./rules_block/fence":20,"./rules_block/heading":21,"./rules_block/hr":22,"./rules_block/html_block":23,"./rules_block/lheading":24,"./rules_block/list":25,"./rules_block/paragraph":26,"./rules_block/reference":27,"./rules_block/state_block":28,"./rules_block/table":29}],11:[function(t,e,n){"use strict";function i(){this.ruler=new o;for(var t=0;t<r.length;t++)this.ruler.push(r[t][0],r[t][1])}var o=t("./ruler"),r=[["normalize",t("./rules_core/normalize")],["block",t("./rules_core/block")],["inline",t("./rules_core/inline")],["linkify",t("./rules_core/linkify")],["replacements",t("./rules_core/replacements")],["smartquotes",t("./rules_core/smartquotes")]];i.prototype.process=function(t){var e,n,i;for(e=0,n=(i=this.ruler.getRules("")).length;e<n;e++)i[e](t)},i.prototype.State=t("./rules_core/state_core"),e.exports=i},{"./ruler":17,"./rules_core/block":30,"./rules_core/inline":31,"./rules_core/linkify":32,"./rules_core/normalize":33,"./rules_core/replacements":34,"./rules_core/smartquotes":35,"./rules_core/state_core":36}],12:[function(t,e,n){"use strict";function i(){var t;for(this.ruler=new o,t=0;t<r.length;t++)this.ruler.push(r[t][0],r[t][1]);for(this.ruler2=new o,t=0;t<s.length;t++)this.ruler2.push(s[t][0],s[t][1])}var o=t("./ruler"),r=[["text",t("./rules_inline/text")],["newline",t("./rules_inline/newline")],["escape",t("./rules_inline/escape")],["backticks",t("./rules_inline/backticks")],["strikethrough",t("./rules_inline/strikethrough").tokenize],["emphasis",t("./rules_inline/emphasis").tokenize],["link",t("./rules_inline/link")],["image",t("./rules_inline/image")],["autolink",t("./rules_inline/autolink")],["html_inline",t("./rules_inline/html_inline")],["entity",t("./rules_inline/entity")]],s=[["balance_pairs",t("./rules_inline/balance_pairs")],["strikethrough",t("./rules_inline/strikethrough").postProcess],["emphasis",t("./rules_inline/emphasis").postProcess],["text_collapse",t("./rules_inline/text_collapse")]];i.prototype.skipToken=function(t){var e,n,i=t.pos,o=this.ruler.getRules(""),r=o.length,s=t.md.options.maxNesting,a=t.cache;if(void 0===a[i]){if(t.level<s)for(n=0;n<r&&(t.level++,e=o[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,a[i]=t.pos}else t.pos=a[i]},i.prototype.tokenize=function(t){for(var e,n,i=this.ruler.getRules(""),o=i.length,r=t.posMax,s=t.md.options.maxNesting;t.pos<r;){if(t.level<s)for(n=0;n<o&&!(e=i[n](t,!1));n++);if(e){if(t.pos>=r)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},i.prototype.parse=function(t,e,n,i){var o,r,s,a=new this.State(t,e,n,i);for(this.tokenize(a),s=(r=this.ruler2.getRules("")).length,o=0;o<s;o++)r[o](a)},i.prototype.State=t("./rules_inline/state_inline"),e.exports=i},{"./ruler":17,"./rules_inline/autolink":37,"./rules_inline/backticks":38,"./rules_inline/balance_pairs":39,"./rules_inline/emphasis":40,"./rules_inline/entity":41,"./rules_inline/escape":42,"./rules_inline/html_inline":43,"./rules_inline/image":44,"./rules_inline/link":45,"./rules_inline/newline":46,"./rules_inline/state_inline":47,"./rules_inline/strikethrough":48,"./rules_inline/text":49,"./rules_inline/text_collapse":50}],13:[function(t,e,n){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},{}],14:[function(t,e,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},{}],15:[function(t,e,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},{}],16:[function(t,e,n){"use strict";function i(){this.rules=o({},r)}var o=t("./common/utils").assign,p=t("./common/utils").unescapeAll,d=t("./common/utils").escapeHtml,r={code_inline:function(t,e,n,i,o){var r=t[e];return"<code"+o.renderAttrs(r)+">"+d(t[e].content)+"</code>"},code_block:function(t,e,n,i,o){var r=t[e];return"<pre"+o.renderAttrs(r)+"><code>"+d(t[e].content)+"</code></pre>\n"},fence:function(t,e,n,i,o){var r,s,a,l,c=t[e],u=c.info?p(c.info).trim():"",h="";return u&&(h=u.split(/\s+/g)[0]),0===(r=n.highlight&&n.highlight(c.content,h)||d(c.content)).indexOf("<pre")?r+"\n":u?(s=c.attrIndex("class"),a=c.attrs?c.attrs.slice():[],s<0?a.push(["class",n.langPrefix+h]):a[s][1]+=" "+n.langPrefix+h,l={attrs:a},"<pre><code"+o.renderAttrs(l)+">"+r+"</code></pre>\n"):"<pre><code"+o.renderAttrs(c)+">"+r+"</code></pre>\n"},image:function(t,e,n,i,o){var r=t[e];return r.attrs[r.attrIndex("alt")][1]=o.renderInlineAsText(r.children,n,i),o.renderToken(t,e,n)},hardbreak:function(t,e,n){return n.xhtmlOut?"<br />\n":"<br>\n"},softbreak:function(t,e,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},text:function(t,e){return d(t[e].content)},html_block:function(t,e){return t[e].content},html_inline:function(t,e){return t[e].content}};i.prototype.renderAttrs=function(t){var e,n,i;if(!t.attrs)return"";for(i="",e=0,n=t.attrs.length;e<n;e++)i+=" "+d(t.attrs[e][0])+'="'+d(t.attrs[e][1])+'"';return i},i.prototype.renderToken=function(t,e,n){var i,o="",r=!1,s=t[e];return s.hidden?"":(s.block&&-1!==s.nesting&&e&&t[e-1].hidden&&(o+="\n"),o+=(-1===s.nesting?"</":"<")+s.tag,o+=this.renderAttrs(s),0===s.nesting&&n.xhtmlOut&&(o+=" /"),s.block&&(r=!0,1===s.nesting&&e+1<t.length&&("inline"===(i=t[e+1]).type||i.hidden?r=!1:-1===i.nesting&&i.tag===s.tag&&(r=!1))),o+=r?">\n":">")},i.prototype.renderInline=function(t,e,n){for(var i,o="",r=this.rules,s=0,a=t.length;s<a;s++)o+=void 0!==r[i=t[s].type]?r[i](t,s,e,n,this):this.renderToken(t,s,e);return o},i.prototype.renderInlineAsText=function(t,e,n){for(var i="",o=0,r=t.length;o<r;o++)"text"===t[o].type?i+=t[o].content:"image"===t[o].type&&(i+=this.renderInlineAsText(t[o].children,e,n));return i},i.prototype.render=function(t,e,n){var i,o,r,s="",a=this.rules;for(i=0,o=t.length;i<o;i++)s+="inline"===(r=t[i].type)?this.renderInline(t[i].children,e,n):void 0!==a[r]?a[t[i].type](t,i,e,n,this):this.renderToken(t,i,e,n);return s},e.exports=i},{"./common/utils":4}],17:[function(t,e,n){"use strict";function i(){this.__rules__=[],this.__cache__=null}i.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},i.prototype.__compile__=function(){var n=this,e=[""];n.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(t){e.indexOf(t)<0&&e.push(t)})}),n.__cache__={},e.forEach(function(e){n.__cache__[e]=[],n.__rules__.forEach(function(t){t.enabled&&(e&&t.alt.indexOf(e)<0||n.__cache__[e].push(t.fn))})})},i.prototype.at=function(t,e,n){var i=this.__find__(t),o=n||{};if(-1===i)throw new Error("Parser rule not found: "+t);this.__rules__[i].fn=e,this.__rules__[i].alt=o.alt||[],this.__cache__=null},i.prototype.before=function(t,e,n,i){var o=this.__find__(t),r=i||{};if(-1===o)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},i.prototype.after=function(t,e,n,i){var o=this.__find__(t),r=i||{};if(-1===o)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},i.prototype.push=function(t,e,n){var i=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:i.alt||[]}),this.__cache__=null},i.prototype.enable=function(t,n){Array.isArray(t)||(t=[t]);var i=[];return t.forEach(function(t){var e=this.__find__(t);if(e<0){if(n)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[e].enabled=!0,i.push(t)},this),this.__cache__=null,i},i.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(t,e)},i.prototype.disable=function(t,n){Array.isArray(t)||(t=[t]);var i=[];return t.forEach(function(t){var e=this.__find__(t);if(e<0){if(n)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[e].enabled=!1,i.push(t)},this),this.__cache__=null,i},i.prototype.getRules=function(t){return null===this.__cache__&&this.__compile__(),this.__cache__[t]||[]},e.exports=i},{}],18:[function(t,e,n){"use strict";var k=t("../common/utils").isSpace;e.exports=function(t,e,n,i){var o,r,s,a,l,c,u,h,p,d,f,m,g,_,v,y,b=t.bMarks[e]+t.tShift[e],w=t.eMarks[e];if(62!==t.src.charCodeAt(b++))return!1;if(i)return!0;for(32===t.src.charCodeAt(b)&&b++,c=t.blkIndent,t.blkIndent=0,p=d=t.sCount[e]+b-(t.bMarks[e]+t.tShift[e]),l=[t.bMarks[e]],t.bMarks[e]=b;b<w&&(f=t.src.charCodeAt(b),k(f));)9===f?d+=4-d%4:d++,b++;for(r=w<=b,a=[t.sCount[e]],t.sCount[e]=d-p,s=[t.tShift[e]],t.tShift[e]=b-t.bMarks[e],m=t.md.block.ruler.getRules("blockquote"),o=e+1;o<n&&!(t.sCount[o]<c)&&(b=t.bMarks[o]+t.tShift[o],!((w=t.eMarks[o])<=b));o++)if(62!==t.src.charCodeAt(b++)){if(r)break;for(y=!1,_=0,v=m.length;_<v;_++)if(m[_](t,o,n,!0)){y=!0;break}if(y)break;l.push(t.bMarks[o]),s.push(t.tShift[o]),a.push(t.sCount[o]),t.sCount[o]=-1}else{for(32===t.src.charCodeAt(b)&&b++,p=d=t.sCount[o]+b-(t.bMarks[o]+t.tShift[o]),l.push(t.bMarks[o]),t.bMarks[o]=b;b<w&&(f=t.src.charCodeAt(b),k(f));)9===f?d+=4-d%4:d++,b++;r=w<=b,a.push(t.sCount[o]),t.sCount[o]=d-p,s.push(t.tShift[o]),t.tShift[o]=b-t.bMarks[o]}for(u=t.parentType,t.parentType="blockquote",(g=t.push("blockquote_open","blockquote",1)).markup=">",g.map=h=[e,0],t.md.block.tokenize(t,e,o),(g=t.push("blockquote_close","blockquote",-1)).markup=">",t.parentType=u,h[1]=t.line,_=0;_<s.length;_++)t.bMarks[_+e]=l[_],t.tShift[_+e]=s[_],t.sCount[_+e]=a[_];return t.blkIndent=c,!0}},{"../common/utils":4}],19:[function(t,e,n){"use strict";e.exports=function(t,e,n){var i,o,r,s=0;if(t.sCount[e]-t.blkIndent<4)return!1;for(o=i=e+1;i<n;)if(t.isEmpty(i)){if(2<=++s&&"list"===t.parentType)break;i++}else{if(s=0,!(4<=t.sCount[i]-t.blkIndent))break;o=++i}return t.line=o,(r=t.push("code_block","code",0)).content=t.getLines(e,o,4+t.blkIndent,!0),r.map=[e,t.line],!0}},{}],20:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){var o,r,s,a,l,c,u,h=!1,p=t.bMarks[e]+t.tShift[e],d=t.eMarks[e];if(d<p+3)return!1;if(126!==(o=t.src.charCodeAt(p))&&96!==o)return!1;if(l=p,(r=(p=t.skipChars(p,o))-l)<3)return!1;if(u=t.src.slice(l,p),0<=(s=t.src.slice(p,d)).indexOf("`"))return!1;if(i)return!0;for(a=e;!(n<=++a||(p=l=t.bMarks[a]+t.tShift[a])<(d=t.eMarks[a])&&t.sCount[a]<t.blkIndent);)if(t.src.charCodeAt(p)===o&&!(4<=t.sCount[a]-t.blkIndent||((p=t.skipChars(p,o))-l<r||(p=t.skipSpaces(p))<d))){h=!0;break}return r=t.sCount[e],t.line=a+(h?1:0),(c=t.push("fence","code",0)).info=s,c.content=t.getLines(e+1,a,r,!0),c.markup=u,c.map=[e,t.line],!0}},{}],21:[function(t,e,n){"use strict";var u=t("../common/utils").isSpace;e.exports=function(t,e,n,i){var o,r,s,a,l=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(35!==(o=t.src.charCodeAt(l))||c<=l)return!1;for(r=1,o=t.src.charCodeAt(++l);35===o&&l<c&&r<=6;)r++,o=t.src.charCodeAt(++l);return!(6<r||l<c&&32!==o||!i&&(c=t.skipSpacesBack(c,l),l<(s=t.skipCharsBack(c,35,l))&&u(t.src.charCodeAt(s-1))&&(c=s),t.line=e+1,(a=t.push("heading_open","h"+String(r),1)).markup="########".slice(0,r),a.map=[e,t.line],(a=t.push("inline","",0)).content=t.src.slice(l,c).trim(),a.map=[e,t.line],a.children=[],(a=t.push("heading_close","h"+String(r),-1)).markup="########".slice(0,r),0))}},{"../common/utils":4}],22:[function(t,e,n){"use strict";var u=t("../common/utils").isSpace;e.exports=function(t,e,n,i){var o,r,s,a,l=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(42!==(o=t.src.charCodeAt(l++))&&45!==o&&95!==o)return!1;for(r=1;l<c;){if((s=t.src.charCodeAt(l++))!==o&&!u(s))return!1;s===o&&r++}return!(r<3||!i&&(t.line=e+1,(a=t.push("hr","hr",0)).map=[e,t.line],a.markup=Array(r+1).join(String.fromCharCode(o)),0))}},{"../common/utils":4}],23:[function(t,e,n){"use strict";var i=t("../common/html_blocks"),o=t("../common/html_re").HTML_OPEN_CLOSE_TAG_RE,u=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+i.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(o.source+"\\s*$"),/^$/,!1]];e.exports=function(t,e,n,i){var o,r,s,a,l=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(!t.md.options.html)return!1;if(60!==t.src.charCodeAt(l))return!1;for(a=t.src.slice(l,c),o=0;o<u.length&&!u[o][0].test(a);o++);if(o===u.length)return!1;if(i)return u[o][2];if(r=e+1,!u[o][1].test(a))for(;r<n&&!(t.sCount[r]<t.blkIndent);r++)if(l=t.bMarks[r]+t.tShift[r],c=t.eMarks[r],a=t.src.slice(l,c),u[o][1].test(a)){0!==a.length&&r++;break}return t.line=r,(s=t.push("html_block","",0)).map=[e,r],s.content=t.getLines(e,r,t.blkIndent,!0),!0}},{"../common/html_blocks":2,"../common/html_re":3}],24:[function(t,e,n){"use strict";e.exports=function(t,e,n){for(var i,o,r,s,a,l,c,u,h,p=e+1,d=t.md.block.ruler.getRules("paragraph");p<n&&!t.isEmpty(p);p++)if(!(3<t.sCount[p]-t.blkIndent)){if(t.sCount[p]>=t.blkIndent&&((l=t.bMarks[p]+t.tShift[p])<(c=t.eMarks[p])&&((45===(h=t.src.charCodeAt(l))||61===h)&&(l=t.skipChars(l,h),c<=(l=t.skipSpaces(l)))))){u=61===h?1:2;break}if(!(t.sCount[p]<0)){for(o=!1,r=0,s=d.length;r<s;r++)if(d[r](t,p,n,!0)){o=!0;break}if(o)break}}return!!u&&(i=t.getLines(e,p,t.blkIndent,!1).trim(),t.line=p+1,(a=t.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(h),a.map=[e,t.line],(a=t.push("inline","",0)).content=i,a.map=[e,t.line-1],a.children=[],(a=t.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(h),!0)}},{}],25:[function(t,e,n){"use strict";function O(t,e){var n,i,o,r;return i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],42!==(n=t.src.charCodeAt(i++))&&45!==n&&43!==n?-1:i<o&&(r=t.src.charCodeAt(i),!N(r))?-1:i}function z(t,e){var n,i=t.bMarks[e]+t.tShift[e],o=i,r=t.eMarks[e];if(r<=o+1)return-1;if((n=t.src.charCodeAt(o++))<48||57<n)return-1;for(;;){if(r<=o)return-1;if(!(48<=(n=t.src.charCodeAt(o++))&&n<=57)){if(41===n||46===n)break;return-1}if(10<=o-i)return-1}return o<r&&(n=t.src.charCodeAt(o),!N(n))?-1:o}var N=t("../common/utils").isSpace;e.exports=function(t,e,n,i){var o,r,s,a,l,c,u,h,p,d,f,m,g,_,v,y,b,w,k,x,C,L,E,T,D,P,A,S,M=!0;if(0<=(f=z(t,e)))w=!0;else{if(!(0<=(f=O(t,e))))return!1;w=!1}if(b=t.src.charCodeAt(f-1),i)return!0;for(x=t.tokens.length,w?(d=t.bMarks[e]+t.tShift[e],y=Number(t.src.substr(d,f-d-1)),D=t.push("ordered_list_open","ol",1),1!==y&&(D.attrs=[["start",y]])):D=t.push("bullet_list_open","ul",1),D.map=L=[e,0],D.markup=String.fromCharCode(b),o=e,C=!1,T=t.md.block.ruler.getRules("list");o<n;){for(g=f,_=t.eMarks[o],r=s=t.sCount[o]+f-(t.bMarks[e]+t.tShift[e]);g<_&&(m=t.src.charCodeAt(g),N(m));)9===m?s+=4-s%4:s++,g++;if(4<(v=_<=(k=g)?1:s-r)&&(v=1),a=r+v,(D=t.push("list_item_open","li",1)).markup=String.fromCharCode(b),D.map=E=[e,0],c=t.blkIndent,h=t.tight,l=t.tShift[e],u=t.sCount[e],p=t.parentType,t.blkIndent=a,t.tight=!0,t.parentType="list",t.tShift[e]=k-t.bMarks[e],t.sCount[e]=s,_<=k&&t.isEmpty(e+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,e,n,!0),t.tight&&!C||(M=!1),C=1<t.line-e&&t.isEmpty(t.line-1),t.blkIndent=c,t.tShift[e]=l,t.sCount[e]=u,t.tight=h,t.parentType=p,(D=t.push("list_item_close","li",-1)).markup=String.fromCharCode(b),o=e=t.line,E[1]=o,k=t.bMarks[e],n<=o)break;if(t.isEmpty(o))break;if(t.sCount[o]<t.blkIndent)break;for(S=!1,P=0,A=T.length;P<A;P++)if(T[P](t,o,n,!0)){S=!0;break}if(S)break;if(w){if((f=z(t,o))<0)break}else if((f=O(t,o))<0)break;if(b!==t.src.charCodeAt(f-1))break}return(D=w?t.push("ordered_list_close","ol",-1):t.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(b),L[1]=o,t.line=o,M&&function(t,e){var n,i,o=t.level+2;for(n=e+2,i=t.tokens.length-2;n<i;n++)t.tokens[n].level===o&&"paragraph_open"===t.tokens[n].type&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}(t,x),!0}},{"../common/utils":4}],26:[function(t,e,n){"use strict";e.exports=function(t,e){for(var n,i,o,r,s,a=e+1,l=t.md.block.ruler.getRules("paragraph"),c=t.lineMax;a<c&&!t.isEmpty(a);a++)if(!(3<t.sCount[a]-t.blkIndent||t.sCount[a]<0)){for(i=!1,o=0,r=l.length;o<r;o++)if(l[o](t,a,c,!0)){i=!0;break}if(i)break}return n=t.getLines(e,a,t.blkIndent,!1).trim(),t.line=a,(s=t.push("paragraph_open","p",1)).map=[e,t.line],(s=t.push("inline","",0)).content=n,s.map=[e,t.line],s.children=[],s=t.push("paragraph_close","p",-1),!0}},{}],27:[function(t,e,n){"use strict";var x=t("../helpers/parse_link_destination"),C=t("../helpers/parse_link_title"),L=t("../common/utils").normalizeReference,E=t("../common/utils").isSpace;e.exports=function(t,e,n,i){var o,r,s,a,l,c,u,h,p,d,f,m,g,_,v,y=0,b=t.bMarks[e]+t.tShift[e],w=t.eMarks[e],k=e+1;if(91!==t.src.charCodeAt(b))return!1;for(;++b<w;)if(93===t.src.charCodeAt(b)&&92!==t.src.charCodeAt(b-1)){if(b+1===w)return!1;if(58!==t.src.charCodeAt(b+1))return!1;break}for(a=t.lineMax,_=t.md.block.ruler.getRules("reference");k<a&&!t.isEmpty(k);k++)if(!(3<t.sCount[k]-t.blkIndent||t.sCount[k]<0)){for(g=!1,c=0,u=_.length;c<u;c++)if(_[c](t,k,a,!0)){g=!0;break}if(g)break}for(w=(m=t.getLines(e,k,t.blkIndent,!1).trim()).length,b=1;b<w;b++){if(91===(o=m.charCodeAt(b)))return!1;if(93===o){p=b;break}10===o?y++:92===o&&(++b<w&&10===m.charCodeAt(b)&&y++)}if(p<0||58!==m.charCodeAt(p+1))return!1;for(b=p+2;b<w;b++)if(10===(o=m.charCodeAt(b)))y++;else if(!E(o))break;if(!(d=x(m,b,w)).ok)return!1;if(l=t.md.normalizeLink(d.str),!t.md.validateLink(l))return!1;for(b=d.pos,s=y+=d.lines,f=r=b;b<w;b++)if(10===(o=m.charCodeAt(b)))y++;else if(!E(o))break;for(d=C(m,b,w),b<w&&f!==b&&d.ok?(v=d.str,b=d.pos,y+=d.lines):(v="",b=r,y=s);b<w&&(o=m.charCodeAt(b),E(o));)b++;if(b<w&&10!==m.charCodeAt(b)&&v)for(v="",b=r,y=s;b<w&&(o=m.charCodeAt(b),E(o));)b++;return!(b<w&&10!==m.charCodeAt(b)||!(h=L(m.slice(1,p)))||!i&&(void 0===t.env.references&&(t.env.references={}),void 0===t.env.references[h]&&(t.env.references[h]={title:v,href:l}),t.line=e+y+1,0))}},{"../common/utils":4,"../helpers/parse_link_destination":6,"../helpers/parse_link_title":8}],28:[function(t,e,n){"use strict";function i(t,e,n,i){var o,r,s,a,l,c,u,h;for(this.src=t,this.md=e,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",h=!1,s=a=c=u=0,l=(r=this.src).length;a<l;a++){if(o=r.charCodeAt(a),!h){if(p(o)){c++,9===o?u+=4-u%4:u++;continue}h=!0}10!==o&&a!==l-1||(10!==o&&a++,this.bMarks.push(s),this.eMarks.push(a),this.tShift.push(c),this.sCount.push(u),h=!1,u=c=0,s=a+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.lineMax=this.bMarks.length-1}var o=t("../token"),p=t("../common/utils").isSpace;i.prototype.push=function(t,e,n){var i=new o(t,e,n);return i.block=!0,n<0&&this.level--,i.level=this.level,0<n&&this.level++,this.tokens.push(i),i},i.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},i.prototype.skipEmptyLines=function(t){for(var e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},i.prototype.skipSpaces=function(t){for(var e,n=this.src.length;t<n&&(e=this.src.charCodeAt(t),p(e));t++);return t},i.prototype.skipSpacesBack=function(t,e){if(t<=e)return t;for(;e<t;)if(!p(this.src.charCodeAt(--t)))return t+1;return t},i.prototype.skipChars=function(t,e){for(var n=this.src.length;t<n&&this.src.charCodeAt(t)===e;t++);return t},i.prototype.skipCharsBack=function(t,e,n){if(t<=n)return t;for(;n<t;)if(e!==this.src.charCodeAt(--t))return t+1;return t},i.prototype.getLines=function(t,e,n,i){var o,r,s,a,l,c,u,h=t;if(e<=t)return"";for(c=new Array(e-t),o=0;h<e;h++,o++){for(r=0,u=a=this.bMarks[h],l=h+1<e||i?this.eMarks[h]+1:this.eMarks[h];a<l&&r<n;){if(s=this.src.charCodeAt(a),p(s))9===s?r+=4-r%4:r++;else{if(!(a-u<this.tShift[h]))break;r++}a++}c[o]=this.src.slice(a,l)}return c.join("")},i.prototype.Token=o,e.exports=i},{"../common/utils":4,"../token":51}],29:[function(t,e,n){"use strict";function g(t,e){var n=t.bMarks[e]+t.blkIndent,i=t.eMarks[e];return t.src.substr(n,i-n)}function _(t){var e,n=[],i=0,o=t.length,r=0,s=0,a=!1,l=0;for(e=t.charCodeAt(i);i<o;)96===e&&r%2==0?(a=!a,l=i):124!==e||r%2!=0||a?92===e?r++:r=0:(n.push(t.substring(s,i)),s=i+1),++i===o&&a&&(a=!1,i=l+1),e=t.charCodeAt(i);return n.push(t.substring(s)),n}e.exports=function(t,e,n,i){var o,r,s,a,l,c,u,h,p,d,f,m;if(n<e+2)return!1;if(l=e+1,t.sCount[l]<t.blkIndent)return!1;if((s=t.bMarks[l]+t.tShift[l])>=t.eMarks[l])return!1;if(124!==(o=t.src.charCodeAt(s))&&45!==o&&58!==o)return!1;if(r=g(t,e+1),!/^[-:| ]+$/.test(r))return!1;for(c=r.split("|"),p=[],a=0;a<c.length;a++){if(!(d=c[a].trim())){if(0===a||a===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(d))return!1;58===d.charCodeAt(d.length-1)?p.push(58===d.charCodeAt(0)?"center":"right"):58===d.charCodeAt(0)?p.push("left"):p.push("")}if(-1===(r=g(t,e).trim()).indexOf("|"))return!1;if((u=(c=_(r.replace(/^\||\|$/g,""))).length)>p.length)return!1;if(i)return!0;for((h=t.push("table_open","table",1)).map=f=[e,0],(h=t.push("thead_open","thead",1)).map=[e,e+1],(h=t.push("tr_open","tr",1)).map=[e,e+1],a=0;a<c.length;a++)(h=t.push("th_open","th",1)).map=[e,e+1],p[a]&&(h.attrs=[["style","text-align:"+p[a]]]),(h=t.push("inline","",0)).content=c[a].trim(),h.map=[e,e+1],h.children=[],h=t.push("th_close","th",-1);for(h=t.push("tr_close","tr",-1),h=t.push("thead_close","thead",-1),(h=t.push("tbody_open","tbody",1)).map=m=[e+2,0],l=e+2;l<n&&!(t.sCount[l]<t.blkIndent)&&-1!==(r=g(t,l)).indexOf("|");l++){for(c=_(r.replace(/^\||\|\s*$/g,"")),h=t.push("tr_open","tr",1),a=0;a<u;a++)h=t.push("td_open","td",1),p[a]&&(h.attrs=[["style","text-align:"+p[a]]]),(h=t.push("inline","",0)).content=c[a]?c[a].trim():"",h.children=[],h=t.push("td_close","td",-1);h=t.push("tr_close","tr",-1)}return h=t.push("tbody_close","tbody",-1),h=t.push("table_close","table",-1),f[1]=m[1]=l,t.line=l,!0}},{}],30:[function(t,e,n){"use strict";e.exports=function(t){var e;t.inlineMode?((e=new t.Token("inline","",0)).content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}},{}],31:[function(t,e,n){"use strict";e.exports=function(t){var e,n,i,o=t.tokens;for(n=0,i=o.length;n<i;n++)"inline"===(e=o[n]).type&&t.md.inline.parse(e.content,t.md,t.env,e.children)}},{}],32:[function(t,e,n){"use strict";var w=t("../common/utils").arrayReplaceAt;e.exports=function(t){var e,n,i,o,r,s,a,l,c,u,h,p,d,f,m,g,_,v,y,b=t.tokens;if(t.md.options.linkify)for(n=0,i=b.length;n<i;n++)if("inline"===b[n].type&&t.md.linkify.pretest(b[n].content))for(d=0,e=(o=b[n].children).length-1;0<=e;e--)if("link_close"!==(s=o[e]).type){if("html_inline"===s.type&&(y=s.content,/^<a[>\s]/i.test(y)&&0<d&&d--,v=s.content,/^<\/a\s*>/i.test(v)&&d++),!(0<d)&&"text"===s.type&&t.md.linkify.test(s.content)){for(c=s.content,_=t.md.linkify.match(c),a=[],p=s.level,l=h=0;l<_.length;l++)f=_[l].url,m=t.md.normalizeLink(f),t.md.validateLink(m)&&(g=_[l].text,g=_[l].schema?"mailto:"!==_[l].schema||/^mailto:/i.test(g)?t.md.normalizeLinkText(g):t.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):t.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,""),h<(u=_[l].index)&&((r=new t.Token("text","",0)).content=c.slice(h,u),r.level=p,a.push(r)),(r=new t.Token("link_open","a",1)).attrs=[["href",m]],r.level=p++,r.markup="linkify",r.info="auto",a.push(r),(r=new t.Token("text","",0)).content=g,r.level=p,a.push(r),(r=new t.Token("link_close","a",-1)).level=--p,r.markup="linkify",r.info="auto",a.push(r),h=_[l].lastIndex);h<c.length&&((r=new t.Token("text","",0)).content=c.slice(h),r.level=p,a.push(r)),b[n].children=o=w(o,e,a)}}else for(e--;o[e].level!==s.level&&"link_open"!==o[e].type;)e--}},{"../common/utils":4}],33:[function(t,e,n){"use strict";var i=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,o=/\u0000/g;e.exports=function(t){var e;e=(e=t.src.replace(i,"\n")).replace(o,"�"),t.src=e}},{}],34:[function(t,e,n){"use strict";function o(t,e){return c[e.toLowerCase()]}function i(t){var e,n,i=0;for(e=t.length-1;0<=e;e--)"text"!==(n=t[e]).type||i||(n.content=n.content.replace(l,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function r(t){var e,n,i=0;for(e=t.length-1;0<=e;e--)"text"!==(n=t[e]).type||i||s.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}var s=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,a=/\((c|tm|r|p)\)/i,l=/\((c|tm|r|p)\)/gi,c={c:"©",r:"®",p:"§",tm:"™"};e.exports=function(t){var e;if(t.md.options.typographer)for(e=t.tokens.length-1;0<=e;e--)"inline"===t.tokens[e].type&&(a.test(t.tokens[e].content)&&i(t.tokens[e].children),s.test(t.tokens[e].content)&&r(t.tokens[e].children))}},{}],35:[function(t,e,n){"use strict";function x(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function i(t,e){var n,i,o,r,s,a,l,c,u,h,p,d,f,m,g,_,v,y,b,w,k;for(b=[],n=0;n<t.length;n++){for(i=t[n],l=t[n].level,v=b.length-1;0<=v&&!(b[v].level<=l);v--);if(b.length=v+1,"text"===i.type){s=0,a=(o=i.content).length;t:for(;s<a&&(T.lastIndex=s,r=T.exec(o));){if(g=_=!0,s=r.index+1,y="'"===r[0],u=32,0<=r.index-1)u=o.charCodeAt(r.index-1);else for(v=n-1;0<=v;v--)if("text"===t[v].type){u=t[v].content.charCodeAt(t[v].content.length-1);break}if(h=32,s<a)h=o.charCodeAt(s);else for(v=n+1;v<t.length;v++)if("text"===t[v].type){h=t[v].content.charCodeAt(0);break}if(p=E(u)||L(String.fromCharCode(u)),d=E(h)||L(String.fromCharCode(h)),f=C(u),(m=C(h))?g=!1:d&&(f||p||(g=!1)),f?_=!1:p&&(m||d||(_=!1)),34===h&&'"'===r[0]&&48<=u&&u<=57&&(_=g=!1),g&&_&&(g=!1,_=d),g||_){if(_)for(v=b.length-1;0<=v&&(c=b[v],!(b[v].level<l));v--)if(c.single===y&&b[v].level===l){c=b[v],k=y?(w=e.md.options.quotes[2],e.md.options.quotes[3]):(w=e.md.options.quotes[0],e.md.options.quotes[1]),i.content=x(i.content,r.index,k),t[c.token].content=x(t[c.token].content,c.pos,w),s+=k.length-1,c.token===n&&(s+=w.length-1),a=(o=i.content).length,b.length=v;continue t}g?b.push({token:n,pos:r.index,single:y,level:l}):_&&y&&(i.content=x(i.content,r.index,D))}else y&&(i.content=x(i.content,r.index,D))}}}}var C=t("../common/utils").isWhiteSpace,L=t("../common/utils").isPunctChar,E=t("../common/utils").isMdAsciiPunct,o=/['"]/,T=/['"]/g,D="’";e.exports=function(t){var e;if(t.md.options.typographer)for(e=t.tokens.length-1;0<=e;e--)"inline"===t.tokens[e].type&&o.test(t.tokens[e].content)&&i(t.tokens[e].children,t)}},{"../common/utils":4}],36:[function(t,e,n){"use strict";function i(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}var o=t("../token");i.prototype.Token=o,e.exports=i},{"../token":51}],37:[function(t,e,n){"use strict";var c=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,u=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(t,e){var n,i,o,r,s,a,l=t.pos;return 60===t.src.charCodeAt(l)&&!((n=t.src.slice(l)).indexOf(">")<0||(u.test(n)?(r=(i=n.match(u))[0].slice(1,-1),s=t.md.normalizeLink(r),!t.md.validateLink(s)||(e||((a=t.push("link_open","a",1)).attrs=[["href",s]],a.markup="autolink",a.info="auto",(a=t.push("text","",0)).content=t.md.normalizeLinkText(r),(a=t.push("link_close","a",-1)).markup="autolink",a.info="auto"),t.pos+=i[0].length,0)):!c.test(n)||(r=(o=n.match(c))[0].slice(1,-1),s=t.md.normalizeLink("mailto:"+r),!t.md.validateLink(s)||(e||((a=t.push("link_open","a",1)).attrs=[["href",s]],a.markup="autolink",a.info="auto",(a=t.push("text","",0)).content=t.md.normalizeLinkText(r),(a=t.push("link_close","a",-1)).markup="autolink",a.info="auto"),t.pos+=o[0].length,0))))}},{}],38:[function(t,e,n){"use strict";e.exports=function(t,e){var n,i,o,r,s,a,l=t.pos;if(96!==t.src.charCodeAt(l))return!1;for(n=l,l++,i=t.posMax;l<i&&96===t.src.charCodeAt(l);)l++;for(o=t.src.slice(n,l),r=s=l;-1!==(r=t.src.indexOf("`",s));){for(s=r+1;s<i&&96===t.src.charCodeAt(s);)s++;if(s-r===o.length)return e||((a=t.push("code_inline","code",0)).markup=o,a.content=t.src.slice(l,r).replace(/[ \n]+/g," ").trim()),t.pos=s,!0}return e||(t.pending+=o),t.pos+=o.length,!0}},{}],39:[function(t,e,n){"use strict";e.exports=function(t){var e,n,i,o,r=t.delimiters,s=t.delimiters.length;for(e=0;e<s;e++)if((i=r[e]).close)for(n=e-i.jump-1;0<=n;){if((o=r[n]).open&&o.marker===i.marker&&o.end<0&&o.level===i.level){i.jump=e-n,i.open=!1,o.end=e,o.jump=0;break}n-=o.jump+1}}},{}],40:[function(t,e,n){"use strict";e.exports.tokenize=function(t,e){var n,i,o=t.pos,r=t.src.charCodeAt(o);if(e)return!1;if(95!==r&&42!==r)return!1;for(i=t.scanDelims(t.pos,42===r),n=0;n<i.length;n++)t.push("text","",0).content=String.fromCharCode(r),t.delimiters.push({marker:r,jump:n,token:t.tokens.length-1,level:t.level,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0},e.exports.postProcess=function(t){var e,n,i,o,r,s,a=t.delimiters,l=t.delimiters.length;for(e=0;e<l;e++)95!==(n=a[e]).marker&&42!==n.marker||-1!==n.end&&(i=a[n.end],s=e+1<l&&a[e+1].end===n.end-1&&a[e+1].token===n.token+1&&a[n.end-1].token===i.token-1&&a[e+1].marker===n.marker,r=String.fromCharCode(n.marker),(o=t.tokens[n.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?r+r:r,o.content="",(o=t.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?r+r:r,o.content="",s&&(t.tokens[a[e+1].token].content="",t.tokens[a[n.end-1].token].content="",e++))}},{}],41:[function(t,e,n){"use strict";var s=t("../common/entities"),a=t("../common/utils").has,l=t("../common/utils").isValidEntityCode,c=t("../common/utils").fromCodePoint,u=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,h=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(t,e){var n,i,o=t.pos,r=t.posMax;if(38!==t.src.charCodeAt(o))return!1;if(o+1<r)if(35===t.src.charCodeAt(o+1)){if(i=t.src.slice(o).match(u))return e||(n="x"===i[1][0].toLowerCase()?parseInt(i[1].slice(1),16):parseInt(i[1],10),t.pending+=c(l(n)?n:65533)),t.pos+=i[0].length,!0}else if((i=t.src.slice(o).match(h))&&a(s,i[1]))return e||(t.pending+=s[i[1]]),t.pos+=i[0].length,!0;return e||(t.pending+="&"),t.pos++,!0}},{"../common/entities":1,"../common/utils":4}],42:[function(t,e,n){"use strict";for(var r=t("../common/utils").isSpace,s=[],i=0;i<256;i++)s.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){s[t.charCodeAt(0)]=1}),e.exports=function(t,e){var n,i=t.pos,o=t.posMax;if(92!==t.src.charCodeAt(i))return!1;if(++i<o){if((n=t.src.charCodeAt(i))<256&&0!==s[n])return e||(t.pending+=t.src[i]),t.pos+=2,!0;if(10===n){for(e||t.push("hardbreak","br",0),i++;i<o&&(n=t.src.charCodeAt(i),r(n));)i++;return t.pos=i,!0}}return e||(t.pending+="\\"),t.pos++,!0}},{"../common/utils":4}],43:[function(t,e,n){"use strict";var a=t("../common/html_re").HTML_TAG_RE;e.exports=function(t,e){var n,i,o,r,s=t.pos;return!(!t.md.options.html||(o=t.posMax,60!==t.src.charCodeAt(s)||o<=s+2||(33!==(n=t.src.charCodeAt(s+1))&&63!==n&&47!==n&&!(97<=(r=32|n)&&r<=122)||!(i=t.src.slice(s).match(a))||(e||(t.push("html_inline","",0).content=t.src.slice(s,s+i[0].length)),t.pos+=i[0].length,0))))}},{"../common/html_re":3}],44:[function(t,e,n){"use strict";var v=t("../helpers/parse_link_label"),y=t("../helpers/parse_link_destination"),b=t("../helpers/parse_link_title"),w=t("../common/utils").normalizeReference,k=t("../common/utils").isSpace;e.exports=function(t,e){var n,i,o,r,s,a,l,c,u,h,p,d,f,m="",g=t.pos,_=t.posMax;if(33!==t.src.charCodeAt(t.pos))return!1;if(91!==t.src.charCodeAt(t.pos+1))return!1;if(a=t.pos+2,(s=v(t,t.pos+1,!1))<0)return!1;if((l=s+1)<_&&40===t.src.charCodeAt(l)){for(l++;l<_&&(i=t.src.charCodeAt(l),k(i)||10===i);l++);if(_<=l)return!1;for(f=l,(u=y(t.src,l,t.posMax)).ok&&(m=t.md.normalizeLink(u.str),t.md.validateLink(m)?l=u.pos:m=""),f=l;l<_&&(i=t.src.charCodeAt(l),k(i)||10===i);l++);if(u=b(t.src,l,t.posMax),l<_&&f!==l&&u.ok)for(h=u.str,l=u.pos;l<_&&(i=t.src.charCodeAt(l),k(i)||10===i);l++);else h="";if(_<=l||41!==t.src.charCodeAt(l))return t.pos=g,!1;l++}else{if(void 0===t.env.references)return!1;if(l<_&&91===t.src.charCodeAt(l)?(f=l+1,0<=(l=v(t,l))?r=t.src.slice(f,l++):l=s+1):l=s+1,r||(r=t.src.slice(a,s)),!(c=t.env.references[w(r)]))return t.pos=g,!1;m=c.href,h=c.title}return e||(o=t.src.slice(a,s),t.md.inline.parse(o,t.md,t.env,d=[]),(p=t.push("image","img",0)).attrs=n=[["src",m],["alt",""]],p.children=d,p.content=o,h&&n.push(["title",h])),t.pos=l,t.posMax=_,!0}},{"../common/utils":4,"../helpers/parse_link_destination":6,"../helpers/parse_link_label":7,"../helpers/parse_link_title":8}],45:[function(t,e,n){"use strict";var m=t("../helpers/parse_link_label"),g=t("../helpers/parse_link_destination"),_=t("../helpers/parse_link_title"),v=t("../common/utils").normalizeReference,y=t("../common/utils").isSpace;e.exports=function(t,e){var n,i,o,r,s,a,l,c,u,h="",p=t.pos,d=t.posMax,f=t.pos;if(91!==t.src.charCodeAt(t.pos))return!1;if(s=t.pos+1,(r=m(t,t.pos,!0))<0)return!1;if((a=r+1)<d&&40===t.src.charCodeAt(a)){for(a++;a<d&&(i=t.src.charCodeAt(a),y(i)||10===i);a++);if(d<=a)return!1;for(f=a,(l=g(t.src,a,t.posMax)).ok&&(h=t.md.normalizeLink(l.str),t.md.validateLink(h)?a=l.pos:h=""),f=a;a<d&&(i=t.src.charCodeAt(a),y(i)||10===i);a++);if(l=_(t.src,a,t.posMax),a<d&&f!==a&&l.ok)for(u=l.str,a=l.pos;a<d&&(i=t.src.charCodeAt(a),y(i)||10===i);a++);else u="";if(d<=a||41!==t.src.charCodeAt(a))return t.pos=p,!1;a++}else{if(void 0===t.env.references)return!1;if(a<d&&91===t.src.charCodeAt(a)?(f=a+1,0<=(a=m(t,a))?o=t.src.slice(f,a++):a=r+1):a=r+1,o||(o=t.src.slice(s,r)),!(c=t.env.references[v(o)]))return t.pos=p,!1;h=c.href,u=c.title}return e||(t.pos=s,t.posMax=r,t.push("link_open","a",1).attrs=n=[["href",h]],u&&n.push(["title",u]),t.md.inline.tokenize(t),t.push("link_close","a",-1)),t.pos=a,t.posMax=d,!0}},{"../common/utils":4,"../helpers/parse_link_destination":6,"../helpers/parse_link_label":7,"../helpers/parse_link_title":8}],46:[function(t,e,n){"use strict";e.exports=function(t,e){var n,i,o=t.pos;if(10!==t.src.charCodeAt(o))return!1;for(n=t.pending.length-1,i=t.posMax,e||(0<=n&&32===t.pending.charCodeAt(n)?1<=n&&32===t.pending.charCodeAt(n-1)?(t.pending=t.pending.replace(/ +$/,""),t.push("hardbreak","br",0)):(t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0)):t.push("softbreak","br",0)),o++;o<i&&32===t.src.charCodeAt(o);)o++;return t.pos=o,!0}},{}],47:[function(t,e,n){"use strict";function i(t,e,n,i){this.src=t,this.env=n,this.md=e,this.tokens=i,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[]}var o=t("../token"),g=t("../common/utils").isWhiteSpace,_=t("../common/utils").isPunctChar,v=t("../common/utils").isMdAsciiPunct;i.prototype.pushPending=function(){var t=new o("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},i.prototype.push=function(t,e,n){this.pending&&this.pushPending();var i=new o(t,e,n);return n<0&&this.level--,i.level=this.level,0<n&&this.level++,this.pendingLevel=this.level,this.tokens.push(i),i},i.prototype.scanDelims=function(t,e){var n,i,o,r,s,a,l,c,u,h=t,p=!0,d=!0,f=this.posMax,m=this.src.charCodeAt(t);for(n=0<t?this.src.charCodeAt(t-1):32;h<f&&this.src.charCodeAt(h)===m;)h++;return o=h-t,i=h<f?this.src.charCodeAt(h):32,l=v(n)||_(String.fromCharCode(n)),u=v(i)||_(String.fromCharCode(i)),a=g(n),(c=g(i))?p=!1:u&&(a||l||(p=!1)),a?d=!1:l&&(c||u||(d=!1)),s=e?(r=p,d):(r=p&&(!d||l),d&&(!p||u)),{can_open:r,can_close:s,length:o}},i.prototype.Token=o,e.exports=i},{"../common/utils":4,"../token":51}],48:[function(t,e,n){"use strict";e.exports.tokenize=function(t,e){var n,i,o,r,s=t.pos,a=t.src.charCodeAt(s);if(e)return!1;if(126!==a)return!1;if(o=(i=t.scanDelims(t.pos,!0)).length,r=String.fromCharCode(a),o<2)return!1;for(o%2&&(t.push("text","",0).content=r,o--),n=0;n<o;n+=2)t.push("text","",0).content=r+r,t.delimiters.push({marker:a,jump:n,token:t.tokens.length-1,level:t.level,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0},e.exports.postProcess=function(t){var e,n,i,o,r,s=[],a=t.delimiters,l=t.delimiters.length;for(e=0;e<l;e++)126===(i=a[e]).marker&&-1!==i.end&&(o=a[i.end],(r=t.tokens[i.token]).type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",(r=t.tokens[o.token]).type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===t.tokens[o.token-1].type&&"~"===t.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(n=(e=s.pop())+1;n<t.tokens.length&&"s_close"===t.tokens[n].type;)n++;e!==--n&&(r=t.tokens[n],t.tokens[n]=t.tokens[e],t.tokens[e]=r)}}},{}],49:[function(t,e,n){"use strict";function i(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(t,e){for(var n=t.pos;n<t.posMax&&!i(t.src.charCodeAt(n));)n++;return n!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}},{}],50:[function(t,e,n){"use strict";e.exports=function(t){var e,n,i=0,o=t.tokens,r=t.tokens.length;for(e=n=0;e<r;e++)i+=o[e].nesting,o[e].level=i,"text"===o[e].type&&e+1<r&&"text"===o[e+1].type?o[e+1].content=o[e].content+o[e+1].content:(e!==n&&(o[n]=o[e]),n++);e!==n&&(o.length=n)}},{}],51:[function(t,e,n){"use strict";function i(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}i.prototype.attrIndex=function(t){var e,n,i;if(!this.attrs)return-1;for(n=0,i=(e=this.attrs).length;n<i;n++)if(e[n][0]===t)return n;return-1},i.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},i.prototype.attrSet=function(t,e){var n=this.attrIndex(t),i=[t,e];n<0?this.attrPush(i):this.attrs[n]=i},i.prototype.attrGet=function(t){var e=this.attrIndex(t),n=null;return 0<=e&&(n=this.attrs[e][1]),n},i.prototype.attrJoin=function(t,e){var n=this.attrIndex(t);n<0?this.attrPush([t,e]):this.attrs[n][1]=this.attrs[n][1]+" "+e},e.exports=i},{}],52:[function(t,e,n){e.exports={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:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",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:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",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:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",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:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",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:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",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:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",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:"▫",emsp13:" ",emsp14:" ",emsp:" ",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:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",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",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",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:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",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:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",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:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",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:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",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:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",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:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",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:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",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:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",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:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",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:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",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:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",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:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",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:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",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:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",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:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",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:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",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:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",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:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",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:"‌"}},{}],53:[function(l,t,e){"use strict";function i(n){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(t){n[t]=e[t]})}),n}function c(t){return Object.prototype.toString.call(t)}function u(t){return"[object Function]"===c(t)}function h(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function o(o){function t(t){return t.replace("%TLDS%",e.src_tlds)}function r(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}var e=o.re=l("./lib/re")(o.__opts__),n=o.__tlds__.slice();o.onCompile(),o.__tlds_replaced__||n.push(f),n.push(e.src_xn),e.src_tlds=n.join("|"),e.email_fuzzy=RegExp(t(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(t(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(t(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(t(e.tpl_host_fuzzy_test),"i");var s=[];o.__compiled__={},Object.keys(o.__schemas__).forEach(function(t){var i,e=o.__schemas__[t];if(null!==e){var n={validate:null,link:null};return o.__compiled__[t]=n,"[object Object]"===c(e)?("[object RegExp]"===c(e.validate)?n.validate=(i=e.validate,function(t,e){var n=t.slice(e);return i.test(n)?n.match(i)[0].length:0}):u(e.validate)?n.validate=e.validate:r(t,e),void(u(e.normalize)?n.normalize=e.normalize:e.normalize?r(t,e):n.normalize=function(t,e){e.normalize(t)})):"[object String]"===c(e)?void s.push(t):void r(t,e)}}),s.forEach(function(t){o.__compiled__[o.__schemas__[t]]&&(o.__compiled__[t].validate=o.__compiled__[o.__schemas__[t]].validate,o.__compiled__[t].normalize=o.__compiled__[o.__schemas__[t]].normalize)}),o.__compiled__[""]={validate:null,normalize:function(t,e){e.normalize(t)}};var i,a=Object.keys(o.__compiled__).filter(function(t){return 0<t.length&&o.__compiled__[t]}).map(h).join("|");o.re.schema_test=RegExp("(^|(?!_)(?:[><]|"+e.src_ZPCc+"))("+a+")","i"),o.re.schema_search=RegExp("(^|(?!_)(?:[><]|"+e.src_ZPCc+"))("+a+")","ig"),o.re.pretest=RegExp("("+o.re.schema_test.source+")|("+o.re.host_fuzzy_test.source+")|@","i"),(i=o).__index__=-1,i.__text_cache__=""}function r(t,e){var n=t.__index__,i=t.__last_index__,o=t.__text_cache__.slice(n,i);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=i+e,this.raw=o,this.text=o,this.url=o}function s(t,e){var n=new r(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function a(t,e){return this instanceof a?(e||(n=t,Object.keys(n||{}).reduce(function(t,e){return t||p.hasOwnProperty(e)},!1)&&(e=t,t={})),this.__opts__=i({},p,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=i({},d,t),this.__compiled__={},this.__tlds__=m,this.__tlds_replaced__=!1,this.re={},void o(this)):new a(t,e);var n}var p={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},d={"http:":{validate:function(t,e,n){var i=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var i=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(i)?3<=e&&":"===t[e-3]?0:3<=e&&"/"===t[e-3]?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var i=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},f="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",m="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");a.prototype.add=function(t,e){return this.__schemas__[t]=e,o(this),this},a.prototype.set=function(t){return this.__opts__=i(this.__opts__,t),this},a.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,n,i,o,r,s,a,l;if(this.re.schema_test.test(t))for((a=this.re.schema_search).lastIndex=0;null!==(e=a.exec(t));)if(o=this.testSchemaAt(t,e[2],a.lastIndex)){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(0<=(l=t.search(this.re.host_fuzzy_test))&&(this.__index__<0||l<this.__index__)&&null!==(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(r=n.index+n[1].length,(this.__index__<0||r<this.__index__)&&(this.__schema__="",this.__index__=r,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(0<=t.indexOf("@")&&null!==(i=t.match(this.re.email_fuzzy))&&(r=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||r<this.__index__||r===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=r,this.__last_index__=s))),0<=this.__index__},a.prototype.pretest=function(t){return this.re.pretest.test(t)},a.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},a.prototype.match=function(t){var e=0,n=[];0<=this.__index__&&this.__text_cache__===t&&(n.push(s(this,e)),e=this.__last_index__);for(var i=e?t.slice(e):t;this.test(i);)n.push(s(this,e)),i=i.slice(this.__last_index__),e+=this.__last_index__;return n.length?n:null},a.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?this.__tlds__=this.__tlds__.concat(t).sort().filter(function(t,e,n){return t!==n[e-1]}).reverse():(this.__tlds__=t.slice(),this.__tlds_replaced__=!0),o(this),this},a.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},a.prototype.onCompile=function(){},t.exports=a},{"./lib/re":54}],54:[function(n,t,e){"use strict";t.exports=function(t){var e={};return e.src_Any=n("uc.micro/properties/Any/regex").source,e.src_Cc=n("uc.micro/categories/Cc/regex").source,e.src_Z=n("uc.micro/categories/Z/regex").source,e.src_P=n("uc.micro/categories/P/regex").source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|"),e.src_pseudo_letter="(?:(?!>|<|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|>|<|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|[()[\\]{}.,\"'?!\\-<>]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+e.src_ZCc+").|\\!(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-(?!-)|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain_root+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|<|>|\\(|"+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+e.src_ZPCc+"))((?![$+<=>^`|])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+e.src_ZPCc+"))((?![$+<=>^`|])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}},{"uc.micro/categories/Cc/regex":61,"uc.micro/categories/P/regex":63,"uc.micro/categories/Z/regex":64,"uc.micro/properties/Any/regex":66}],55:[function(t,e,n){"use strict";function i(t,e){var c;return"string"!=typeof e&&(e=i.defaultChars),c=function(t){var e,n,i=o[t];if(i)return i;for(i=o[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),i.push(n);for(e=0;e<t.length;e++)i[n=t.charCodeAt(e)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return i}(e),t.replace(/(%[a-f0-9]{2})+/gi,function(t){var e,n,i,o,r,s,a,l="";for(e=0,n=t.length;e<n;e+=3)(i=parseInt(t.slice(e+1,e+3),16))<128?l+=c[i]:192==(224&i)&&e+3<n&&128==(192&(o=parseInt(t.slice(e+4,e+6),16)))?(l+=(a=i<<6&1984|63&o)<128?"��":String.fromCharCode(a),e+=3):224==(240&i)&&e+6<n&&(o=parseInt(t.slice(e+4,e+6),16),r=parseInt(t.slice(e+7,e+9),16),128==(192&o)&&128==(192&r))?(l+=(a=i<<12&61440|o<<6&4032|63&r)<2048||55296<=a&&a<=57343?"���":String.fromCharCode(a),e+=6):240==(248&i)&&e+9<n&&(o=parseInt(t.slice(e+4,e+6),16),r=parseInt(t.slice(e+7,e+9),16),s=parseInt(t.slice(e+10,e+12),16),128==(192&o)&&128==(192&r)&&128==(192&s))?((a=i<<18&1835008|o<<12&258048|r<<6&4032|63&s)<65536||1114111<a?l+="����":(a-=65536,l+=String.fromCharCode(55296+(a>>10),56320+(1023&a))),e+=9):l+="�";return l})}var o={};i.defaultChars=";/?:@&=+$,#",i.componentChars="",e.exports=i},{}],56:[function(t,e,n){"use strict";function c(t,e,n){var i,o,r,s,a,l="";for("string"!=typeof e&&(n=e,e=c.defaultChars),void 0===n&&(n=!0),a=function(t){var e,n,i=u[t];if(i)return i;for(i=u[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)i[t.charCodeAt(e)]=t[e];return i}(e),i=0,o=t.length;i<o;i++)if(r=t.charCodeAt(i),n&&37===r&&i+2<o&&/^[0-9a-f]{2}$/i.test(t.slice(i+1,i+3)))l+=t.slice(i,i+3),i+=2;else if(r<128)l+=a[r];else if(55296<=r&&r<=57343){if(55296<=r&&r<=56319&&i+1<o&&(56320<=(s=t.charCodeAt(i+1))&&s<=57343)){l+=encodeURIComponent(t[i]+t[i+1]),i++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(t[i]);return l}var u={};c.defaultChars=";/?:@&=+$,-_.!~*'()#",c.componentChars="-_.!~*'()",e.exports=c},{}],57:[function(t,e,n){"use strict";e.exports=function(t){var e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",e+=t.hostname&&-1!==t.hostname.indexOf(":")?"["+t.hostname+"]":t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",(e+=t.search||"")+(t.hash||"")}},{}],58:[function(t,e,n){"use strict";e.exports.encode=t("./encode"),e.exports.decode=t("./decode"),e.exports.format=t("./format"),e.exports.parse=t("./parse")},{"./decode":55,"./encode":56,"./format":57,"./parse":59}],59:[function(t,e,n){"use strict";function i(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var L=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,E=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,r=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(r),T=["%","/","?",";","#"].concat(s),D=["/","?","#"],P=/^[+a-z0-9A-Z_-]{0,63}$/,A=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,S={javascript:!0,"javascript:":!0},M={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};i.prototype.parse=function(t,e){var n,i,o,r,s,a=t;if(a=a.trim(),!e&&1===t.split("#").length){var l=E.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=L.exec(a);if(c&&(o=(c=c[0]).toLowerCase(),this.protocol=c,a=a.substr(c.length)),(e||c||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(s="//"===a.substr(0,2))||c&&S[c]||(a=a.substr(2),this.slashes=!0)),!S[c]&&(s||c&&!M[c])){var u,h,p=-1;for(n=0;n<D.length;n++)-1!==(r=a.indexOf(D[n]))&&(-1===p||r<p)&&(p=r);for(-1!==(h=-1===p?a.lastIndexOf("@"):a.lastIndexOf("@",p))&&(u=a.slice(0,h),a=a.slice(h+1),this.auth=u),p=-1,n=0;n<T.length;n++)-1!==(r=a.indexOf(T[n]))&&(-1===p||r<p)&&(p=r);-1===p&&(p=a.length),":"===a[p-1]&&p--;var d=a.slice(0,p);a=a.slice(p),this.parseHost(d),this.hostname=this.hostname||"";var f="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!f){var m=this.hostname.split(/\./);for(n=0,i=m.length;n<i;n++){var g=m[n];if(g&&!g.match(P)){for(var _="",v=0,y=g.length;v<y;v++)_+=127<g.charCodeAt(v)?"x":g[v];if(!_.match(P)){var b=m.slice(0,n),w=m.slice(n+1),k=g.match(A);k&&(b.push(k[1]),w.unshift(k[2])),w.length&&(a=w.join(".")+a),this.hostname=b.join(".");break}}}}255<this.hostname.length&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var x=a.indexOf("#");-1!==x&&(this.hash=a.substr(x),a=a.slice(0,x));var C=a.indexOf("?");return-1!==C&&(this.search=a.substr(C),a=a.slice(0,C)),a&&(this.pathname=a),M[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},i.prototype.parseHost=function(t){var e=o.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},e.exports=function(t,e){if(t&&t instanceof i)return t;var n=new i;return n.parse(t,e),n}},{}],60:[function(t,M,O){(function(S){!function(t){function _(t){throw new RangeError(m[t])}function o(t,e){for(var n=t.length,i=[];n--;)i[n]=e(t[n]);return i}function e(t,e){var n=t.split("@"),i="";return 1<n.length&&(i=n[0]+"@",t=n[1]),i+o((t=t.replace(f,".")).split("."),e).join(".")}function v(t){for(var e,n,i=[],o=0,r=t.length;o<r;)55296<=(e=t.charCodeAt(o++))&&e<=56319&&o<r?56320==(64512&(n=t.charCodeAt(o++)))?i.push(((1023&e)<<10)+(1023&n)+65536):(i.push(e),o--):i.push(e);return i}function y(t){return o(t,function(t){var e="";return 65535<t&&(e+=A((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+A(t)}).join("")}function b(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function w(t,e,n){var i=0;for(t=n?P(t/h):t>>1,t+=P(t/e);g*L>>1<t;i+=x)t=P(t/g);return P(i+(g+1)*t/(t+u))}function n(t){var e,n,i,o,r,s,a,l,c,u,h,p=[],d=t.length,f=0,m=T,g=E;for((n=t.lastIndexOf(D))<0&&(n=0),i=0;i<n;++i)128<=t.charCodeAt(i)&&_("not-basic"),p.push(t.charCodeAt(i));for(o=0<n?n+1:0;o<d;){for(r=f,s=1,a=x;d<=o&&_("invalid-input"),h=t.charCodeAt(o++),(x<=(l=h-48<10?h-22:h-65<26?h-65:h-97<26?h-97:x)||l>P((k-f)/s))&&_("overflow"),f+=l*s,!(l<(c=a<=g?C:g+L<=a?L:a-g));a+=x)s>P(k/(u=x-c))&&_("overflow"),s*=u;g=w(f-r,e=p.length+1,0==r),P(f/e)>k-m&&_("overflow"),m+=P(f/e),f%=e,p.splice(f++,0,m)}return y(p)}function i(t){var e,n,i,o,r,s,a,l,c,u,h,p,d,f,m,g=[];for(p=(t=v(t)).length,e=T,r=E,s=n=0;s<p;++s)(h=t[s])<128&&g.push(A(h));for(i=o=g.length,o&&g.push(D);i<p;){for(a=k,s=0;s<p;++s)e<=(h=t[s])&&h<a&&(a=h);for(a-e>P((k-n)/(d=i+1))&&_("overflow"),n+=(a-e)*d,e=a,s=0;s<p;++s)if((h=t[s])<e&&++n>k&&_("overflow"),h==e){for(l=n,c=x;!(l<(u=c<=r?C:r+L<=c?L:c-r));c+=x)m=l-u,f=x-u,g.push(A(b(u+m%f,0))),l=P(m/f);g.push(A(b(l,0))),r=w(n,d,i==o),n=0,++i}++n,++e}return g.join("")}var r="object"==typeof O&&O&&!O.nodeType&&O,s="object"==typeof M&&M&&!M.nodeType&&M,a="object"==typeof S&&S;a.global!==a&&a.window!==a&&a.self!==a||(t=a);var l,c,k=2147483647,x=36,C=1,L=26,u=38,h=700,E=72,T=128,D="-",p=/^xn--/,d=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=x-C,P=Math.floor,A=String.fromCharCode;if(l={version:"1.4.1",ucs2:{decode:v,encode:y},decode:n,encode:i,toASCII:function(t){return e(t,function(t){return d.test(t)?"xn--"+i(t):t})},toUnicode:function(t){return e(t,function(t){return p.test(t)?n(t.slice(4).toLowerCase()):t})}},r&&s)if(M.exports==r)s.exports=l;else for(c in l)l.hasOwnProperty(c)&&(r[c]=l[c]);else t.punycode=l}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],61:[function(t,e,n){e.exports=/[\0-\x1F\x7F-\x9F]/},{}],62:[function(t,e,n){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804\uDCBD|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},{}],63:[function(t,e,n){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/},{}],64:[function(t,e,n){e.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},{}],65:[function(t,e,n){e.exports.Any=t("./properties/Any/regex"),e.exports.Cc=t("./categories/Cc/regex"),e.exports.Cf=t("./categories/Cf/regex"),e.exports.P=t("./categories/P/regex"),e.exports.Z=t("./categories/Z/regex")},{"./categories/Cc/regex":61,"./categories/Cf/regex":62,"./categories/P/regex":63,"./categories/Z/regex":64,"./properties/Any/regex":66}],66:[function(t,e,n){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},{}],67:[function(t,e,n){"use strict";e.exports=t("./lib/")},{"./lib/":9}]},{},[67])(67)}),e("Core/KnockoutMarkdownBinding",["markdown-it-sanitizer","markdown-it"],function(t,e){"use strict";var l=/<html(.|\s)*>(.|\s)*<\/html>/im,c=new e({html:!0,linkify:!0});function u(t){if(t instanceof HTMLAnchorElement&&(t.target="_blank"),t.childNodes&&0<t.childNodes.length)for(var e=0;e<t.childNodes.length;++e)u(t.childNodes[e])}return c.use(t,{imageClass:"",removeUnbalanced:!1,removeUnknown:!1}),{register:function(a){a.bindingHandlers.markdown={init:function(){return{controlsDescendantBindings:!0}},update:function(t,e){for(;t.firstChild;)a.removeNode(t.firstChild);var n,i=a.unwrap(e());n=l.test(i)?i:c.render(i);var o=a.utils.parseHtmlFragment(n,t);t.className=t.className+" markdown";for(var r=0;r<o.length;++r){var s=o[r];u(s),t.appendChild(s)}}}}}}),function(r,a,t,w){"use strict";function l(t,e,n){return setTimeout(c(t,n),e)}function i(t,e,n){return!!Array.isArray(t)&&(s(t,n[e],n),!0)}function s(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==w)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function n(i,t,e){var o="DEPRECATED METHOD: "+t+"\n"+e+" AT \n";return function(){var t=new Error("get-stack-trace"),e=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",n=r.console&&(r.console.warn||r.console.log);return n&&n.call(r.console,o,e),i.apply(this,arguments)}}function o(t,e,n){var i,o=e.prototype;(i=t.prototype=Object.create(o)).constructor=t,i._super=o,n&&K(i,n)}function c(t,e){return function(){return t.apply(e,arguments)}}function u(t,e){return typeof t==et?t.apply(e&&e[0]||w,e):t}function h(t,e){return t===w?e:t}function p(e,t,n){s(m(t),function(t){e.addEventListener(t,n,!1)})}function d(e,t,n){s(m(t),function(t){e.removeEventListener(t,n,!1)})}function k(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function f(t,e){return-1<t.indexOf(e)}function m(t){return t.trim().split(/\s+/g)}function g(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function _(t){return Array.prototype.slice.call(t,0)}function v(t,n,e){for(var i=[],o=[],r=0;r<t.length;){var s=n?t[r][n]:t[r];g(o,s)<0&&i.push(t[r]),o[r]=s,r++}return e&&(i=n?i.sort(function(t,e){return t[n]>e[n]}):i.sort()),i}function y(t,e){for(var n,i,o=e[0].toUpperCase()+e.slice(1),r=0;r<Q.length;){if((i=(n=Q[r])?n+o:e)in t)return i;r++}return w}function b(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}function x(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){u(e.options.enable,[e])&&n.handler(t)},this.init()}function C(t,e,n){var i=n.pointers.length,o=n.changedPointers.length,r=e&ft&&i-o==0,s=e&(mt|gt)&&i-o==0;n.isFirst=!!r,n.isFinal=!!s,r&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,o=i.length;n.firstInput||(n.firstInput=L(e)),1<o&&!n.firstMultiple?n.firstMultiple=L(e):1===o&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,l=e.center=E(i);e.timeStamp=ot(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=A(a,l),e.distance=P(a,l),c=n,u=e,h=u.center,p=c.offsetDelta||{},d=c.prevDelta||{},f=c.prevInput||{},u.eventType!==ft&&f.eventType!==mt||(d=c.prevDelta={x:f.deltaX||0,y:f.deltaY||0},p=c.offsetDelta={x:h.x,y:h.y}),u.deltaX=d.x+(h.x-p.x),u.deltaY=d.y+(h.y-p.y),e.offsetDirection=D(e.deltaX,e.deltaY);var c,u,h,p,d,f;var m=T(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=m.x,e.overallVelocityY=m.y,e.overallVelocity=it(m.x)>it(m.y)?m.x:m.y,e.scale=s?(v=s.pointers,y=i,P(y[0],y[1],Et)/P(v[0],v[1],Et)):1,e.rotation=s?(g=s.pointers,_=i,A(_[1],_[0],Et)+A(g[1],g[0],Et)):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,o,r,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!=gt&&(dt<a||s.velocity===w)){var l=e.deltaX-s.deltaX,c=e.deltaY-s.deltaY,u=T(a,l,c);i=u.x,o=u.y,n=it(u.x)>it(u.y)?u.x:u.y,r=D(l,c),t.lastInterval=e}else n=s.velocity,i=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=o,e.direction=r}(n,e);var g,_;var v,y;var b=t.element;k(e.srcEvent.target,b)&&(b=e.srcEvent.target),e.target=b}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function L(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:nt(t.pointers[n].clientX),clientY:nt(t.pointers[n].clientY)},n++;return{timeStamp:ot(),pointers:e,center:E(e),deltaX:t.deltaX,deltaY:t.deltaY}}function E(t){var e=t.length;if(1===e)return{x:nt(t[0].clientX),y:nt(t[0].clientY)};for(var n=0,i=0,o=0;o<e;)n+=t[o].clientX,i+=t[o].clientY,o++;return{x:nt(n/e),y:nt(i/e)}}function T(t,e,n){return{x:e/t||0,y:n/t||0}}function D(t,e){return t===e?_t:it(t)>=it(e)?t<0?vt:yt:e<0?bt:wt}function P(t,e,n){n||(n=Lt);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function A(t,e,n){n||(n=Lt);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return 180*Math.atan2(o,i)/Math.PI}function S(){this.evEl=Dt,this.evWin=Pt,this.pressed=!1,x.apply(this,arguments)}function M(){this.evEl=Mt,this.evWin=Ot,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function O(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,x.apply(this,arguments)}function z(){this.evTarget=It,this.targetIds={},x.apply(this,arguments)}function N(){x.apply(this,arguments);var t=c(this.handler,this);this.touch=new z(this.manager,t),this.mouse=new S(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function I(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var t=i.indexOf(n);-1<t&&i.splice(t,1)},Bt)}}function B(t,e){this.manager=t,this.set(e)}function R(t){this.options=K({},this.defaults,t||{}),this.id=at++,this.manager=null,this.options.enable=h(this.options.enable,!0),this.state=Wt,this.simultaneous={},this.requireFail=[]}function U(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function F(t){return t==wt?"down":t==bt?"up":t==vt?"left":t==yt?"right":""}function q(t,e){var n=e.manager;return n?n.get(t):t}function Z(){R.apply(this,arguments)}function j(){Z.apply(this,arguments),this.pX=null,this.pY=null}function V(){Z.apply(this,arguments)}function H(){R.apply(this,arguments),this._timer=null,this._input=null}function W(){Z.apply(this,arguments)}function G(){Z.apply(this,arguments)}function $(){R.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function J(t,e){return(e=e||{}).recognizers=h(e.recognizers,J.defaults.preset),new Y(t,e)}function Y(t,e){var n;this.options=K({},J.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(ct?M:ut?z:lt?N:S))(n,C),this.touchAction=new B(this,this.options.touchAction),X(this,!0),s(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function X(n,i){var o,r=n.element;r.style&&(s(n.options.cssProps,function(t,e){o=y(r.style,e),r.style[o]=i?(n.oldCssProps[o]=r.style[o],t):n.oldCssProps[o]||""}),i||(n.oldCssProps={}))}var K,Q=["","webkit","Moz","MS","ms","o"],tt=a.createElement("div"),et="function",nt=Math.round,it=Math.abs,ot=Date.now;K="function"!=typeof Object.assign?function(t){if(t===w||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==w&&null!==i)for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])}return e}:Object.assign;var rt=n(function(t,e,n){for(var i=Object.keys(e),o=0;o<i.length;)(!n||n&&t[i[o]]===w)&&(t[i[o]]=e[i[o]]),o++;return t},"extend","Use `assign`."),st=n(function(t,e){return rt(t,e,!0)},"merge","Use `assign`."),at=1,lt="ontouchstart"in r,ct=y(r,"PointerEvent")!==w,ut=lt&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ht="touch",pt="mouse",dt=25,ft=1,mt=4,gt=8,_t=1,vt=2,yt=4,bt=8,wt=16,kt=vt|yt,xt=bt|wt,Ct=kt|xt,Lt=["x","y"],Et=["clientX","clientY"];x.prototype={handler:function(){},init:function(){this.evEl&&p(this.element,this.evEl,this.domHandler),this.evTarget&&p(this.target,this.evTarget,this.domHandler),this.evWin&&p(b(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&d(this.element,this.evEl,this.domHandler),this.evTarget&&d(this.target,this.evTarget,this.domHandler),this.evWin&&d(b(this.element),this.evWin,this.domHandler)}};var Tt={mousedown:ft,mousemove:2,mouseup:mt},Dt="mousedown",Pt="mousemove mouseup";o(S,x,{handler:function(t){var e=Tt[t.type];e&ft&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=mt),this.pressed&&(e&mt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:pt,srcEvent:t}))}});var At={pointerdown:ft,pointermove:2,pointerup:mt,pointercancel:gt,pointerout:gt},St={2:ht,3:"pen",4:pt,5:"kinect"},Mt="pointerdown",Ot="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Mt="MSPointerDown",Ot="MSPointerMove MSPointerUp MSPointerCancel"),o(M,x,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),o=At[i],r=St[t.pointerType]||t.pointerType,s=r==ht,a=g(e,t.pointerId,"pointerId");o&ft&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):o&(mt|gt)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(a,1))}});var zt={touchstart:ft,touchmove:2,touchend:mt,touchcancel:gt};o(O,x,{handler:function(t){var e=zt[t.type];if(e===ft&&(this.started=!0),this.started){var n=function(t,e){var n=_(t.touches),i=_(t.changedTouches);return e&(mt|gt)&&(n=v(n.concat(i),"identifier",!0)),[n,i]}.call(this,t,e);e&(mt|gt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ht,srcEvent:t})}}});var Nt={touchstart:ft,touchmove:2,touchend:mt,touchcancel:gt},It="touchstart touchmove touchend touchcancel";o(z,x,{handler:function(t){var e=Nt[t.type],n=function(t,e){var n=_(t.touches),i=this.targetIds;if(e&(2|ft)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,s=_(t.changedTouches),a=[],l=this.target;if(r=n.filter(function(t){return k(t.target,l)}),e===ft)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;for(o=0;o<s.length;)i[s[o].identifier]&&a.push(s[o]),e&(mt|gt)&&delete i[s[o].identifier],o++;return a.length?[v(r.concat(a),"identifier",!0),a]:void 0}.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ht,srcEvent:t})}});var Bt=2500;o(N,x,{handler:function(t,e,n){var i=n.pointerType==ht,o=n.pointerType==pt;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)(function(t,e){t&ft?(this.primaryTouch=e.changedPointers[0].identifier,I.call(this,e)):t&(mt|gt)&&I.call(this,e)}).call(this,e,n);else if(o&&function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],r=Math.abs(e-o.x),s=Math.abs(n-o.y);if(r<=25&&s<=25)return!0}return!1}.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Rt=y(tt.style,"touchAction"),Ut=Rt!==w,Ft="compute",qt="manipulation",Zt="none",jt="pan-x",Vt="pan-y",Ht=function(){if(!Ut)return!1;var e={},n=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){e[t]=!n||r.CSS.supports("touch-action",t)}),e}();B.prototype={set:function(t){t==Ft&&(t=this.compute()),Ut&&this.manager.element.style&&Ht[t]&&(this.manager.element.style[Rt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return s(this.manager.recognizers,function(t){u(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(t){if(f(t,Zt))return Zt;var e=f(t,jt),n=f(t,Vt);return e&&n?Zt:e||n?e?jt:Vt:f(t,qt)?qt:"auto"}(e.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(!this.manager.session.prevented){var i=this.actions,o=f(i,Zt)&&!Ht[Zt],r=f(i,Vt)&&!Ht[Vt],s=f(i,jt)&&!Ht[jt];if(o){var a=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(a&&l&&c)return}return s&&r?void 0:o||r&&n&kt||s&&n&xt?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Wt=1;R.prototype={defaults:{},set:function(t){return K(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(i(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=q(t,this)).id]||(e[t.id]=t).recognizeWith(this),this},dropRecognizeWith:function(t){return i(t,"dropRecognizeWith",this)||(t=q(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(i(t,"requireFailure",this))return this;var e=this.requireFail;return-1===g(e,t=q(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(i(t,"dropRequireFailure",this))return this;t=q(t,this);var e=g(this.requireFail,t);return-1<e&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,i=this.state;i<8&&t(n.options.event+U(i)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),8<=i&&t(n.options.event+U(i))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Wt)))return!1;t++}return!0},recognize:function(t){var e=K({},t);return u(this.options.enable,[this,e])?(56&this.state&&(this.state=Wt),this.state=this.process(e),void(30&this.state&&this.tryEmit(e))):(this.reset(),void(this.state=32))},process:function(t){},getTouchAction:function(){},reset:function(){}},o(Z,R,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,o=this.attrTest(t);return i&&(n&gt||!o)?16|e:i||o?n&mt?8|e:2&e?4|e:2:32}}),o(j,Z,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ct},getTouchAction:function(){var t=this.options.direction,e=[];return t&kt&&e.push(Vt),t&xt&&e.push(jt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(i=e.direction&kt?(o=0===r?_t:r<0?vt:yt,n=r!=this.pX,Math.abs(t.deltaX)):(o=0===s?_t:s<0?bt:wt,n=s!=this.pY,Math.abs(t.deltaY))),t.direction=o,n&&i>e.threshold&&o&e.direction},attrTest:function(t){return Z.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=F(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),o(V,Z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Zt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),o(H,R,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(mt|gt)&&!o)this.reset();else if(t.eventType&ft)this.reset(),this._timer=l(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&mt)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&mt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=ot(),this.manager.emit(this.options.event,this._input)))}}),o(W,Z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Zt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),o(G,Z,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:kt|xt,pointers:1},getTouchAction:function(){return j.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(kt|xt)?e=t.overallVelocity:n&kt?e=t.overallVelocityX:n&xt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&it(e)>this.options.velocity&&t.eventType&mt},emit:function(t){var e=F(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),o($,R,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[qt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),t.eventType&ft&&0===this.count)return this.failTimeout();if(i&&o&&n){if(t.eventType!=mt)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||P(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&r?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=l(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=l(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),J.VERSION="2.0.7",J.defaults={domEvents:!1,touchAction:Ft,enable:!0,inputTarget:null,inputClass:null,preset:[[W,{enable:!1}],[V,{enable:!1},["rotate"]],[G,{direction:kt}],[j,{direction:kt},["swipe"]],[$],[$,{event:"doubletap",taps:2},["tap"]],[H]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Y.prototype={set:function(t){return K(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,o=e.curRecognizer;(!o||o&&8&o.state)&&(o=e.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===e.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(t),!o&&14&n.state&&(o=e.curRecognizer=n),r++}},get:function(t){if(t instanceof R)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(i(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),(t.manager=this).touchAction.update(),t},remove:function(t){if(i(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=g(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==w&&e!==w){var n=this.handlers;return s(m(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==w){var n=this.handlers;return s(m(t),function(t){e?n[t]&&n[t].splice(g(n[t],e),1):delete n[t]}),this}},emit:function(t,e){var n,i,o;this.options.domEvents&&(n=t,i=e,(o=a.createEvent("Event")).initEvent(n,!0,!0),(o.gesture=i).target.dispatchEvent(o));var r=this.handlers[t]&&this.handlers[t].slice();if(r&&r.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var s=0;s<r.length;)r[s](e),s++}},destroy:function(){this.element&&X(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},K(J,{INPUT_START:ft,INPUT_MOVE:2,INPUT_END:mt,INPUT_CANCEL:gt,STATE_POSSIBLE:Wt,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:_t,DIRECTION_LEFT:vt,DIRECTION_RIGHT:yt,DIRECTION_UP:bt,DIRECTION_DOWN:wt,DIRECTION_HORIZONTAL:kt,DIRECTION_VERTICAL:xt,DIRECTION_ALL:Ct,Manager:Y,Input:x,TouchAction:B,TouchInput:z,MouseInput:S,PointerEventInput:M,TouchMouseInput:N,SingleTouchInput:O,Recognizer:R,AttrRecognizer:Z,Tap:$,Pan:j,Swipe:G,Pinch:V,Rotate:W,Press:H,on:p,off:d,each:s,merge:st,extend:rt,assign:K,inherit:o,bindFn:c,prefixed:y}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=J,"function"==typeof e&&e.amd?e("Hammer",[],function(){return J}):"undefined"!=typeof module&&module.exports?module.exports=J:r.Hammer=J}(window,document),e("Core/KnockoutHammerBinding",["KnockoutES5","Hammer"],function(t,a){"use strict";return{register:function(s){s.bindingHandlers.swipeLeft={init:function(t,e,n,i,o){var r=s.unwrap(e());new a(t).on("swipeleft",function(t){var e=o.$data;r.apply(e,arguments)})}},s.bindingHandlers.swipeRight={init:function(t,e,n,i,o){var r=s.unwrap(e());new a(t).on("swiperight",function(t){var e=o.$data;r.apply(e,arguments)})}}}}}),e("Core/registerKnockoutBindings",["KnockoutES5","Core/KnockoutMarkdownBinding","Core/KnockoutHammerBinding"],function(r,t,e){"use strict";var n=Geoworld.SvgPathBindingHandler;return function(){n.register(r),t.register(r),e.register(r),r.bindingHandlers.embeddedComponent={init:function(t,e,n,i,o){return r.unwrap(e()).show(t),{controlsDescendantBindings:!0}},update:function(t,e,n,i,o){}}}}),e("Core/createFragmentFromTemplate",[],function(){"use strict";return function(t){var e=document.createElement("div");e.innerHTML=t;for(var n=document.createDocumentFragment();e.firstChild;)n.appendChild(e.firstChild);return n}}),e("Core/loadView",["KnockoutES5","../Core/createFragmentFromTemplate"],function(a,l){"use strict";var c=Geoworld.getElement;return function(t,e,n){e=c(e);var i,o=l(t),r=[];for(i=0;i<o.childNodes.length;++i)r.push(o.childNodes[i]);for(e.appendChild(o),i=0;i<r.length;++i){var s=r[i];1!==s.nodeType&&8!==s.nodeType||a.applyBindings(n,s)}return r}}),function(s,p,a){var n,i,t=s.L,f={};f.version="0.7.7","object"==typeof module&&"object"==typeof module.exports?module.exports=f:"function"==typeof e&&e.amd&&e("leaflet",f),f.noConflict=function(){return s.L=t,this},(s.L=f).Util={extend:function(t){var e,n,i,o,r=Array.prototype.slice.call(arguments,1);for(n=0,i=r.length;n<i;n++)for(e in o=r[n]||{})o.hasOwnProperty(e)&&(t[e]=o[e]);return t},bind:function(t,e){var n=2<arguments.length?Array.prototype.slice.call(arguments,2):null;return function(){return t.apply(e,n||arguments)}},stamp:(n=0,i="_leaflet_id",function(t){return t[i]=t[i]||++n,t[i]}),invokeEach:function(t,e,n){var i,o;if("object"!=typeof t)return!1;for(i in o=Array.prototype.slice.call(arguments,3),t)e.apply(n,[i,t[i]].concat(o));return!0},limitExecByInterval:function(n,i,o){var r,s;return function t(){var e=arguments;return r?void(s=!0):(r=!0,setTimeout(function(){r=!1,s&&(t.apply(o,e),s=!1)},i),void n.apply(o,e))}},falseFn:function(){return!1},formatNum:function(t,e){var n=Math.pow(10,e||5);return Math.round(t*n)/n},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},splitWords:function(t){return f.Util.trim(t).split(/\s+/)},setOptions:function(t,e){return t.options=f.extend({},t.options,e),t.options},getParamString:function(t,e,n){var i=[];for(var o in t)i.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")},template:function(t,i){return t.replace(/\{ *([\w_]+) *\}/g,function(t,e){var n=i[e];if(n===a)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(i)),n})},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},function(){function t(t){var e,n,i=["webkit","moz","o","ms"];for(e=0;e<i.length&&!n;e++)n=s[i[e]+t];return n}function o(t){var e=+new Date,n=Math.max(0,16-(e-i));return i=e+n,s.setTimeout(t,n)}var i=0,r=s.requestAnimationFrame||t("RequestAnimationFrame")||o,e=s.cancelAnimationFrame||t("CancelAnimationFrame")||t("CancelRequestAnimationFrame")||function(t){s.clearTimeout(t)};f.Util.requestAnimFrame=function(t,e,n,i){return t=f.bind(t,e),n&&r===o?void t():r.call(s,t,i)},f.Util.cancelAnimFrame=function(t){t&&e.call(s,t)}}(),f.extend=f.Util.extend,f.bind=f.Util.bind,f.stamp=f.Util.stamp,f.setOptions=f.Util.setOptions,f.Class=function(){},f.Class.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this._initHooks&&this.callInitHooks()},n=function(){};n.prototype=this.prototype;var i=new n;for(var o in(i.constructor=e).prototype=i,this)this.hasOwnProperty(o)&&"prototype"!==o&&(e[o]=this[o]);t.statics&&(f.extend(e,t.statics),delete t.statics),t.includes&&(f.Util.extend.apply(null,[i].concat(t.includes)),delete t.includes),t.options&&i.options&&(t.options=f.extend({},i.options,t.options)),f.extend(i,t),i._initHooks=[];var r=this;return e.__super__=r.prototype,i.callInitHooks=function(){if(!this._initHooksCalled){r.prototype.callInitHooks&&r.prototype.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=i._initHooks.length;t<e;t++)i._initHooks[t].call(this)}},e},f.Class.include=function(t){f.extend(this.prototype,t)},f.Class.mergeOptions=function(t){f.extend(this.prototype.options,t)},f.Class.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n)};var o,r,l,c,u,h,d,m,g,_,v,y,b,w,k,x,C,L,E,T,D,P,A,S="_leaflet_events";f.Mixin={},f.Mixin.Events={addEventListener:function(t,e,n){if(f.Util.invokeEach(t,this.addEventListener,this,e,n))return this;var i,o,r,s,a,l,c,u=this[S]=this[S]||{},h=n&&n!==this&&f.stamp(n);for(i=0,o=(t=f.Util.splitWords(t)).length;i<o;i++)r={action:e,context:n||this},s=t[i],h?(l=(a=s+"_idx")+"_len",(c=u[a]=u[a]||{})[h]||(c[h]=[],u[l]=(u[l]||0)+1),c[h].push(r)):(u[s]=u[s]||[],u[s].push(r));return this},hasEventListeners:function(t){var e=this[S];return!!e&&(t in e&&0<e[t].length||t+"_idx"in e&&0<e[t+"_idx_len"])},removeEventListener:function(t,e,n){if(!this[S])return this;if(!t)return this.clearAllEventListeners();if(f.Util.invokeEach(t,this.removeEventListener,this,e,n))return this;var i,o,r,s,a,l,c,u,h=this[S],p=n&&n!==this&&f.stamp(n);for(i=0,o=(t=f.Util.splitWords(t)).length;i<o;i++)if(c=(l=(r=t[i])+"_idx")+"_len",u=h[l],e){if(s=p&&u?u[p]:h[r]){for(a=s.length-1;0<=a;a--)s[a].action!==e||n&&s[a].context!==n||(s.splice(a,1)[0].action=f.Util.falseFn);n&&u&&0===s.length&&(delete u[p],h[c]--)}}else delete h[r],delete h[l],delete h[c];return this},clearAllEventListeners:function(){return delete this[S],this},fireEvent:function(t,e){if(!this.hasEventListeners(t))return this;var n,i,o,r,s,a=f.Util.extend({},e,{type:t,target:this}),l=this[S];if(l[t])for(i=0,o=(n=l[t].slice()).length;i<o;i++)n[i].action.call(n[i].context,a);for(s in r=l[t+"_idx"])if(n=r[s].slice())for(i=0,o=n.length;i<o;i++)n[i].action.call(n[i].context,a);return this},addOneTimeEventListener:function(t,e,n){if(f.Util.invokeEach(t,this.addOneTimeEventListener,this,e,n))return this;var i=f.bind(function(){this.removeEventListener(t,e,n).removeEventListener(t,i,n)},this);return this.addEventListener(t,e,n).addEventListener(t,i,n)}},f.Mixin.Events.on=f.Mixin.Events.addEventListener,f.Mixin.Events.off=f.Mixin.Events.removeEventListener,f.Mixin.Events.once=f.Mixin.Events.addOneTimeEventListener,f.Mixin.Events.fire=f.Mixin.Events.fireEvent,u=(c="ActiveXObject"in s)&&!p.addEventListener,h=navigator.userAgent.toLowerCase(),d=-1!==h.indexOf("webkit"),m=-1!==h.indexOf("chrome"),g=-1!==h.indexOf("phantom"),_=-1!==h.indexOf("android"),v=-1!==h.search("android [23]"),y=-1!==h.indexOf("gecko"),b=typeof orientation!=a+"",w=!s.PointerEvent&&s.MSPointerEvent,k=s.PointerEvent&&s.navigator.pointerEnabled||w,x="devicePixelRatio"in s&&1<s.devicePixelRatio||"matchMedia"in s&&s.matchMedia("(min-resolution:144dpi)")&&s.matchMedia("(min-resolution:144dpi)").matches,C=p.documentElement,L=c&&"transition"in C.style,E="WebKitCSSMatrix"in s&&"m11"in new s.WebKitCSSMatrix&&!v,T="MozPerspective"in C.style,D="OTransition"in C.style,P=!s.L_DISABLE_3D&&(L||E||T||D)&&!g,A=!s.L_NO_TOUCH&&!g&&(k||"ontouchstart"in s||s.DocumentTouch&&p instanceof s.DocumentTouch),f.Browser={ie:c,ielt9:u,webkit:d,gecko:y&&!d&&!s.opera&&!c,android:_,android23:v,chrome:m,ie3d:L,webkit3d:E,gecko3d:T,opera3d:D,any3d:P,mobile:b,mobileWebkit:b&&d,mobileWebkit3d:b&&E,mobileOpera:b&&s.opera,touch:A,msPointer:w,pointer:k,retina:x},f.Point=function(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e},f.Point.prototype={clone:function(){return new f.Point(this.x,this.y)},add:function(t){return this.clone()._add(f.point(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(f.point(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},distanceTo:function(t){var e=(t=f.point(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=f.point(t)).x===this.x&&t.y===this.y},contains:function(t){return t=f.point(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+f.Util.formatNum(this.x)+", "+f.Util.formatNum(this.y)+")"}},f.point=function(t,e,n){return t instanceof f.Point?t:f.Util.isArray(t)?new f.Point(t[0],t[1]):t===a||null===t?t:new f.Point(t,e,n)},f.Bounds=function(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])},f.Bounds.prototype={extend:function(t){return t=f.point(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new f.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new f.Point(this.min.x,this.max.y)},getTopRight:function(){return new f.Point(this.max.x,this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof f.Point?f.point(t):f.bounds(t))instanceof f.Bounds?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=f.bounds(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>=e.x&&i.x<=n.x,s=o.y>=e.y&&i.y<=n.y;return r&&s},isValid:function(){return!(!this.min||!this.max)}},f.bounds=function(t,e){return!t||t instanceof f.Bounds?t:new f.Bounds(t,e)},f.Transformation=function(t,e,n,i){this._a=t,this._b=e,this._c=n,this._d=i},f.Transformation.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new f.Point((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}},f.DomUtil={get:function(t){return"string"==typeof t?p.getElementById(t):t},getStyle:function(t,e){var n=t.style[e];if(!n&&t.currentStyle&&(n=t.currentStyle[e]),(!n||"auto"===n)&&p.defaultView){var i=p.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n},getViewportOffset:function(t){var e,n=0,i=0,o=t,r=p.body,s=p.documentElement;do{if(n+=o.offsetTop||0,i+=o.offsetLeft||0,n+=parseInt(f.DomUtil.getStyle(o,"borderTopWidth"),10)||0,i+=parseInt(f.DomUtil.getStyle(o,"borderLeftWidth"),10)||0,e=f.DomUtil.getStyle(o,"position"),o.offsetParent===r&&"absolute"===e)break;if("fixed"===e){n+=r.scrollTop||s.scrollTop||0,i+=r.scrollLeft||s.scrollLeft||0;break}if("relative"===e&&!o.offsetLeft){var a=f.DomUtil.getStyle(o,"width"),l=f.DomUtil.getStyle(o,"max-width"),c=o.getBoundingClientRect();("none"!==a||"none"!==l)&&(i+=c.left+o.clientLeft),n+=c.top+(r.scrollTop||s.scrollTop||0);break}o=o.offsetParent}while(o);o=t;do{if(o===r)break;n-=o.scrollTop||0,i-=o.scrollLeft||0,o=o.parentNode}while(o);return new f.Point(i,n)},documentIsLtr:function(){return f.DomUtil._docIsLtrCached||(f.DomUtil._docIsLtrCached=!0,f.DomUtil._docIsLtr="ltr"===f.DomUtil.getStyle(p.body,"direction")),f.DomUtil._docIsLtr},create:function(t,e,n){var i=p.createElement(t);return i.className=e,n&&n.appendChild(i),i},hasClass:function(t,e){if(t.classList!==a)return t.classList.contains(e);var n=f.DomUtil._getClass(t);return 0<n.length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)},addClass:function(t,e){if(t.classList!==a)for(var n=f.Util.splitWords(e),i=0,o=n.length;i<o;i++)t.classList.add(n[i]);else if(!f.DomUtil.hasClass(t,e)){var r=f.DomUtil._getClass(t);f.DomUtil._setClass(t,(r?r+" ":"")+e)}},removeClass:function(t,e){t.classList!==a?t.classList.remove(e):f.DomUtil._setClass(t,f.Util.trim((" "+f.DomUtil._getClass(t)+" ").replace(" "+e+" "," ")))},_setClass:function(t,e){t.className.baseVal===a?t.className=e:t.className.baseVal=e},_getClass:function(t){return t.className.baseVal===a?t.className:t.className.baseVal},setOpacity:function(t,e){if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}},testProp:function(t){for(var e=p.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1},getTranslateString:function(t){var e=f.Browser.webkit3d,n=(e?",0":"")+")";return"translate"+(e?"3d":"")+"("+t.x+"px,"+t.y+"px"+n},getScaleString:function(t,e){return f.DomUtil.getTranslateString(e.add(e.multiplyBy(-1*t)))+(" scale("+t+") ")},setPosition:function(t,e,n){t._leaflet_pos=e,!n&&f.Browser.any3d?t.style[f.DomUtil.TRANSFORM]=f.DomUtil.getTranslateString(e):(t.style.left=e.x+"px",t.style.top=e.y+"px")},getPosition:function(t){return t._leaflet_pos}},f.DomUtil.TRANSFORM=f.DomUtil.testProp(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),f.DomUtil.TRANSITION=f.DomUtil.testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),f.DomUtil.TRANSITION_END="webkitTransition"===f.DomUtil.TRANSITION||"OTransition"===f.DomUtil.TRANSITION?f.DomUtil.TRANSITION+"End":"transitionend",function(){if("onselectstart"in p)f.extend(f.DomUtil,{disableTextSelection:function(){f.DomEvent.on(s,"selectstart",f.DomEvent.preventDefault)},enableTextSelection:function(){f.DomEvent.off(s,"selectstart",f.DomEvent.preventDefault)}});else{var e=f.DomUtil.testProp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);f.extend(f.DomUtil,{disableTextSelection:function(){if(e){var t=p.documentElement.style;this._userSelect=t[e],t[e]="none"}},enableTextSelection:function(){e&&(p.documentElement.style[e]=this._userSelect,delete this._userSelect)}})}f.extend(f.DomUtil,{disableImageDrag:function(){f.DomEvent.on(s,"dragstart",f.DomEvent.preventDefault)},enableImageDrag:function(){f.DomEvent.off(s,"dragstart",f.DomEvent.preventDefault)}})}(),f.LatLng=function(t,e,n){if(t=parseFloat(t),e=parseFloat(e),isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=t,this.lng=e,n!==a&&(this.alt=parseFloat(n))},f.extend(f.LatLng,{DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,MAX_MARGIN:1e-9}),f.LatLng.prototype={equals:function(t){return!!t&&(t=f.latLng(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=f.LatLng.MAX_MARGIN)},toString:function(t){return"LatLng("+f.Util.formatNum(this.lat,t)+", "+f.Util.formatNum(this.lng,t)+")"},distanceTo:function(t){t=f.latLng(t);var e=f.LatLng.DEG_TO_RAD,n=(t.lat-this.lat)*e,i=(t.lng-this.lng)*e,o=this.lat*e,r=t.lat*e,s=Math.sin(n/2),a=Math.sin(i/2),l=s*s+a*a*Math.cos(o)*Math.cos(r);return 12756274*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))},wrap:function(t,e){var n=this.lng;return n=(n+(e=e||180))%(e-(t=t||-180))+(n<t||n===e?e:t),new f.LatLng(this.lat,n)}},f.latLng=function(t,e){return t instanceof f.LatLng?t:f.Util.isArray(t)?"number"==typeof t[0]||"string"==typeof t[0]?new f.LatLng(t[0],t[1],t[2]):null:t===a||null===t?t:"object"==typeof t&&"lat"in t?new f.LatLng(t.lat,"lng"in t?t.lng:t.lon):e===a?null:new f.LatLng(t,e)},f.LatLngBounds=function(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])},f.LatLngBounds.prototype={extend:function(t){if(!t)return this;var e=f.latLng(t);return(t=null!==e?e:f.latLngBounds(t))instanceof f.LatLng?this._southWest||this._northEast?(this._southWest.lat=Math.min(t.lat,this._southWest.lat),this._southWest.lng=Math.min(t.lng,this._southWest.lng),this._northEast.lat=Math.max(t.lat,this._northEast.lat),this._northEast.lng=Math.max(t.lng,this._northEast.lng)):(this._southWest=new f.LatLng(t.lat,t.lng),this._northEast=new f.LatLng(t.lat,t.lng)):t instanceof f.LatLngBounds&&(this.extend(t._southWest),this.extend(t._northEast)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,o=Math.abs(e.lng-n.lng)*t;return new f.LatLngBounds(new f.LatLng(e.lat-i,e.lng-o),new f.LatLng(n.lat+i,n.lng+o))},getCenter:function(){return new f.LatLng((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new f.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new f.LatLng(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof f.LatLng?f.latLng(t):f.latLngBounds(t);var e,n,i=this._southWest,o=this._northEast;return t instanceof f.LatLngBounds?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=o.lat&&e.lng>=i.lng&&n.lng<=o.lng},intersects:function(t){t=f.latLngBounds(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&i.lat<=n.lat,s=o.lng>=e.lng&&i.lng<=n.lng;return r&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t){return!!t&&(t=f.latLngBounds(t),this._southWest.equals(t.getSouthWest())&&this._northEast.equals(t.getNorthEast()))},isValid:function(){return!(!this._southWest||!this._northEast)}},f.latLngBounds=function(t,e){return!t||t instanceof f.LatLngBounds?t:new f.LatLngBounds(t,e)},f.Projection={},f.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(t){var e=f.LatLng.DEG_TO_RAD,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),o=t.lng*e,r=i*e;return r=Math.log(Math.tan(Math.PI/4+r/2)),new f.Point(o,r)},unproject:function(t){var e=f.LatLng.RAD_TO_DEG,n=t.x*e,i=(2*Math.atan(Math.exp(t.y))-Math.PI/2)*e;return new f.LatLng(i,n)}},f.Projection.LonLat={project:function(t){return new f.Point(t.lng,t.lat)},unproject:function(t){return new f.LatLng(t.y,t.x)}},f.CRS={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},project:function(t){return this.projection.project(t)},scale:function(t){return 256*Math.pow(2,t)},getSize:function(t){var e=this.scale(t);return f.point(e,e)}},f.CRS.Simple=f.extend({},f.CRS,{projection:f.Projection.LonLat,transformation:new f.Transformation(1,0,-1,0),scale:function(t){return Math.pow(2,t)}}),f.CRS.EPSG3857=f.extend({},f.CRS,{code:"EPSG:3857",projection:f.Projection.SphericalMercator,transformation:new f.Transformation(.5/Math.PI,.5,-.5/Math.PI,.5),project:function(t){return this.projection.project(t).multiplyBy(6378137)}}),f.CRS.EPSG900913=f.extend({},f.CRS.EPSG3857,{code:"EPSG:900913"}),f.CRS.EPSG4326=f.extend({},f.CRS,{code:"EPSG:4326",projection:f.Projection.LonLat,transformation:new f.Transformation(1/360,.5,-1/360,.5)}),f.Map=f.Class.extend({includes:f.Mixin.Events,options:{crs:f.CRS.EPSG3857,fadeAnimation:f.DomUtil.TRANSITION&&!f.Browser.android23,trackResize:!0,markerZoomAnimation:f.DomUtil.TRANSITION&&f.Browser.any3d},initialize:function(t,e){e=f.setOptions(this,e),this._initContainer(t),this._initLayout(),this._onResize=f.bind(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.center&&e.zoom!==a&&this.setView(f.latLng(e.center),e.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._tileLayersNum=0,this.callInitHooks(),this._addLayers(e.layers)},setView:function(t,e){return e=e===a?this.getZoom():e,this._resetView(f.latLng(t),this._limitZoom(e)),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=this._limitZoom(t),this)},zoomIn:function(t,e){return this.setZoom(this._zoom+(t||1),e)},zoomOut:function(t,e){return this.setZoom(this._zoom-(t||1),e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),o=this.getSize().divideBy(2),r=(t instanceof f.Point?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/i),s=this.containerPointToLatLng(o.add(r));return this.setView(s,e,{zoom:n})},fitBounds:function(t,e){e=e||{},t=t.getBounds?t.getBounds():f.latLngBounds(t);var n=f.point(e.paddingTopLeft||e.padding||[0,0]),i=f.point(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,n.add(i));o=e.maxZoom?Math.min(e.maxZoom,o):o;var r=i.subtract(n).divideBy(2),s=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o),l=this.unproject(s.add(a).divideBy(2).add(r),o);return this.setView(l,o,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t){return this.fire("movestart"),this._rawPanBy(f.point(t)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(t){return t=f.latLngBounds(t),(this.options.maxBounds=t)?(this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds,this)):this.off("moveend",this._panInsideMaxBounds,this)},panInsideBounds:function(t,e){var n=this.getCenter(),i=this._limitCenter(n,this._zoom,t);return n.equals(i)?this:this.panTo(i,e)},addLayer:function(t){var e=f.stamp(t);return this._layers[e]||(!(this._layers[e]=t).options||isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[e]=t,this._updateZoomLevels()),this.options.zoomAnimation&&f.TileLayer&&t instanceof f.TileLayer&&(this._tileLayersNum++,this._tileLayersToLoad++,t.on("load",this._onTileLayerLoad,this)),this._loaded&&this._layerAdd(t)),this},removeLayer:function(t){var e=f.stamp(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&this.fire("layerremove",{layer:t}),this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels()),this.options.zoomAnimation&&f.TileLayer&&t instanceof f.TileLayer&&(this._tileLayersNum--,this._tileLayersToLoad--,t.off("load",this._onTileLayerLoad,this))),this},hasLayer:function(t){return!!t&&f.stamp(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},invalidateSize:function(t){if(!this._loaded)return this;t=f.extend({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._initialCenter=null;var n=this.getSize(),i=e.divideBy(2).round(),o=n.divideBy(2).round(),r=i.subtract(o);return r.x||r.y?(t.animate&&t.pan?this.panBy(r):(t.pan&&this._rawPanBy(r),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(f.bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){this._loaded&&this.fire("unload"),this._initEvents("off");try{delete this._container._leaflet}catch(t){this._container._leaflet=a}return this._clearPanes(),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this},getCenter:function(){return this._checkIfLoaded(),this._initialCenter&&!this._moved()?this._initialCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),n=this.unproject(t.getTopRight());return new f.LatLngBounds(e,n)},getMinZoom:function(){return this.options.minZoom===a?this._layersMinZoom===a?0:this._layersMinZoom:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===a?this._layersMaxZoom===a?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=f.latLngBounds(t);var i,o=this.getMinZoom()-(e?1:0),r=this.getMaxZoom(),s=this.getSize(),a=t.getNorthWest(),l=t.getSouthEast(),c=!0;for(n=f.point(n||[0,0]);o++,i=this.project(l,o).subtract(this.project(a,o)).add(n),(c=e?i.x<s.x||i.y<s.y:s.contains(i))&&o<=r;);return c&&e?null:e?o:o-1},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new f.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(){var t=this._getTopLeftPoint();return new f.Bounds(t,t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._initialTopLeftPoint},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t){var e=this.options.crs;return e.scale(t)/e.scale(this._zoom)},getScaleZoom:function(t){return this._zoom+Math.log(t)/Math.LN2},project:function(t,e){return e=e===a?this._zoom:e,this.options.crs.latLngToPoint(f.latLng(t),e)},unproject:function(t,e){return e=e===a?this._zoom:e,this.options.crs.pointToLatLng(f.point(t),e)},layerPointToLatLng:function(t){var e=f.point(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(f.latLng(t))._round()._subtract(this.getPixelOrigin())},containerPointToLayerPoint:function(t){return f.point(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return f.point(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(f.point(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(f.latLng(t)))},mouseEventToContainerPoint:function(t){return f.DomEvent.getMousePosition(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=f.DomUtil.get(t);if(!e)throw new Error("Map container not found.");if(e._leaflet)throw new Error("Map container is already initialized.");e._leaflet=!0},_initLayout:function(){var t=this._container;f.DomUtil.addClass(t,"leaflet-container"+(f.Browser.touch?" leaflet-touch":"")+(f.Browser.retina?" leaflet-retina":"")+(f.Browser.ielt9?" leaflet-oldie":"")+(this.options.fadeAnimation?" leaflet-fade-anim":""));var e=f.DomUtil.getStyle(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._mapPane=t.mapPane=this._createPane("leaflet-map-pane",this._container),this._tilePane=t.tilePane=this._createPane("leaflet-tile-pane",this._mapPane),t.objectsPane=this._createPane("leaflet-objects-pane",this._mapPane),t.shadowPane=this._createPane("leaflet-shadow-pane"),t.overlayPane=this._createPane("leaflet-overlay-pane"),t.markerPane=this._createPane("leaflet-marker-pane"),t.popupPane=this._createPane("leaflet-popup-pane");var e=" leaflet-zoom-hide";this.options.markerZoomAnimation||(f.DomUtil.addClass(t.markerPane,e),f.DomUtil.addClass(t.shadowPane,e),f.DomUtil.addClass(t.popupPane,e))},_createPane:function(t,e){return f.DomUtil.create("div",t,e||this._panes.objectsPane)},_clearPanes:function(){this._container.removeChild(this._mapPane)},_addLayers:function(t){for(var e=0,n=(t=t?f.Util.isArray(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_resetView:function(t,e,n,i){var o=this._zoom!==e;i||(this.fire("movestart"),o&&this.fire("zoomstart")),this._zoom=e,this._initialCenter=t,this._initialTopLeftPoint=this._getNewTopLeftPoint(t),n?this._initialTopLeftPoint._add(this._getMapPanePos()):f.DomUtil.setPosition(this._mapPane,new f.Point(0,0)),this._tileLayersToLoad=this._tileLayersNum;var r=!this._loaded;this._loaded=!0,this.fire("viewreset",{hard:!n}),r&&(this.fire("load"),this.eachLayer(this._layerAdd,this)),this.fire("move"),(o||i)&&this.fire("zoomend"),this.fire("moveend",{hard:!n})},_rawPanBy:function(t){f.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_updateZoomLevels:function(){var t,e=1/0,n=-1/0,i=this._getZoomSpan();for(t in this._zoomBoundLayers){var o=this._zoomBoundLayers[t];isNaN(o.options.minZoom)||(e=Math.min(e,o.options.minZoom)),isNaN(o.options.maxZoom)||(n=Math.max(n,o.options.maxZoom))}t===a?this._layersMaxZoom=this._layersMinZoom=a:(this._layersMaxZoom=n,this._layersMinZoom=e),i!==this._getZoomSpan()&&this.fire("zoomlevelschange")},_panInsideMaxBounds:function(){this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){if(f.DomEvent){t=t||"on",f.DomEvent[t](this._container,"click",this._onMouseClick,this);var e,n,i=["dblclick","mousedown","mouseup","mouseenter","mouseleave","mousemove","contextmenu"];for(e=0,n=i.length;e<n;e++)f.DomEvent[t](this._container,i[e],this._fireMouseEvent,this);this.options.trackResize&&f.DomEvent[t](s,"resize",this._onResize,this)}},_onResize:function(){f.Util.cancelAnimFrame(this._resizeRequest),this._resizeRequest=f.Util.requestAnimFrame(function(){this.invalidateSize({debounceMoveend:!0})},this,!1,this._container)},_onMouseClick:function(t){!this._loaded||!t._simulated&&(this.dragging&&this.dragging.moved()||this.boxZoom&&this.boxZoom.moved())||f.DomEvent._skipped(t)||(this.fire("preclick"),this._fireMouseEvent(t))},_fireMouseEvent:function(t){if(this._loaded&&!f.DomEvent._skipped(t)){var e=t.type;if(e="mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,this.hasEventListeners(e)){"contextmenu"===e&&f.DomEvent.preventDefault(t);var n=this.mouseEventToContainerPoint(t),i=this.containerPointToLayerPoint(n),o=this.layerPointToLatLng(i);this.fire(e,{latlng:o,layerPoint:i,containerPoint:n,originalEvent:t})}}},_onTileLayerLoad:function(){this._tileLayersToLoad--,this._tileLayersNum&&!this._tileLayersToLoad&&this.fire("tilelayersload")},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,this):this.on("load",t,e),this},_layerAdd:function(t){t.onAdd(this),this.fire("layeradd",{layer:t})},_getMapPanePos:function(){return f.DomUtil.getPosition(this._mapPane)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(){return this.getPixelOrigin().subtract(this._getMapPanePos())},_getNewTopLeftPoint:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewTopLeftPoint(n,e).add(this._getMapPanePos());return this.project(t,e)._subtract(i)},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),o=this.getSize().divideBy(2),r=new f.Bounds(i.subtract(o),i.add(o)),s=this._getBoundsOffset(r,n,e);return this.unproject(i.add(s),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new f.Bounds(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=this.project(e.getNorthWest(),n).subtract(t.min),o=this.project(e.getSouthEast(),n).subtract(t.max),r=this._rebound(i.x,-o.x),s=this._rebound(i.y,-o.y);return new f.Point(r,s)},_rebound:function(t,e){return 0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom();return Math.max(e,Math.min(n,t))}}),f.map=function(t,e){return new f.Map(t,e)},f.Projection.Mercator={MAX_LATITUDE:85.0840591556,R_MINOR:6356752.314245179,R_MAJOR:6378137,project:function(t){var e=f.LatLng.DEG_TO_RAD,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),o=this.R_MAJOR,r=this.R_MINOR,s=t.lng*e*o,a=i*e,l=r/o,c=Math.sqrt(1-l*l),u=c*Math.sin(a);u=Math.pow((1-u)/(1+u),.5*c);var h=Math.tan(.5*(.5*Math.PI-a))/u;return a=-o*Math.log(h),new f.Point(s,a)},unproject:function(t){for(var e,n=f.LatLng.RAD_TO_DEG,i=this.R_MAJOR,o=this.R_MINOR,r=t.x*n/i,s=o/i,a=Math.sqrt(1-s*s),l=Math.exp(-t.y/i),c=Math.PI/2-2*Math.atan(l),u=15,h=.1;1e-7<Math.abs(h)&&0<--u;)e=a*Math.sin(c),c+=h=Math.PI/2-2*Math.atan(l*Math.pow((1-e)/(1+e),.5*a))-c;return new f.LatLng(c*n,r)}},f.CRS.EPSG3395=f.extend({},f.CRS,{code:"EPSG:3395",projection:f.Projection.Mercator,transformation:(r=f.Projection.Mercator.R_MAJOR,l=.5/(Math.PI*r),new f.Transformation(l,.5,-l,.5))}),f.TileLayer=f.Class.extend({includes:f.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:f.Browser.mobile,updateWhenIdle:f.Browser.mobile},initialize:function(t,e){(e=f.setOptions(this,e)).detectRetina&&f.Browser.retina&&0<e.maxZoom&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomOffset++,0<e.minZoom&&e.minZoom--,this.options.maxZoom--),e.bounds&&(e.bounds=f.latLngBounds(e.bounds)),this._url=t;var n=this.options.subdomains;"string"==typeof n&&(this.options.subdomains=n.split(""))},onAdd:function(t){this._map=t,this._animated=t._zoomAnimated,this._initContainer(),t.on({viewreset:this._reset,moveend:this._update},this),this._animated&&t.on({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||(this._limitedUpdate=f.Util.limitExecByInterval(this._update,150,this),t.on("move",this._limitedUpdate,this)),this._reset(),this._update()},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this._container.parentNode.removeChild(this._container),t.off({viewreset:this._reset,moveend:this._update},this),this._animated&&t.off({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||t.off("move",this._limitedUpdate,this),this._container=null,this._map=null},bringToFront:function(){var t=this._map._panes.tilePane;return this._container&&(t.appendChild(this._container),this._setAutoZIndex(t,Math.max)),this},bringToBack:function(){var t=this._map._panes.tilePane;return this._container&&(t.insertBefore(this._container,t.firstChild),this._setAutoZIndex(t,Math.min)),this},getAttribution:function(){return this.options.attribution},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},setUrl:function(t,e){return this._url=t,e||this.redraw(),this},redraw:function(){return this._map&&(this._reset({hard:!0}),this._update()),this},_updateZIndex:function(){this._container&&this.options.zIndex!==a&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t,e){var n,i,o,r=t.children,s=-e(1/0,-1/0);for(i=0,o=r.length;i<o;i++)r[i]!==this._container&&(n=parseInt(r[i].style.zIndex,10),isNaN(n)||(s=e(s,n)));this.options.zIndex=this._container.style.zIndex=(isFinite(s)?s:0)+e(1,-1)},_updateOpacity:function(){var t,e=this._tiles;if(f.Browser.ielt9)for(t in e)f.DomUtil.setOpacity(e[t],this.options.opacity);else f.DomUtil.setOpacity(this._container,this.options.opacity)},_initContainer:function(){var t=this._map._panes.tilePane;if(!this._container){if(this._container=f.DomUtil.create("div","leaflet-layer"),this._updateZIndex(),this._animated){var e="leaflet-tile-container";this._bgBuffer=f.DomUtil.create("div",e,this._container),this._tileContainer=f.DomUtil.create("div",e,this._container)}else this._tileContainer=this._container;t.appendChild(this._container),this.options.opacity<1&&this._updateOpacity()}},_reset:function(t){for(var e in this._tiles)this.fire("tileunload",{tile:this._tiles[e]});this._tiles={},this._tilesToLoad=0,this.options.reuseTiles&&(this._unusedTiles=[]),this._tileContainer.innerHTML="",this._animated&&t&&t.hard&&this._clearBgBuffer(),this._initContainer()},_getTileSize:function(){var t=this._map,e=t.getZoom()+this.options.zoomOffset,n=this.options.maxNativeZoom,i=this.options.tileSize;return n&&n<e&&(i=Math.round(t.getZoomScale(e)/t.getZoomScale(n)*i)),i},_update:function(){if(this._map){var t=this._map,e=t.getPixelBounds(),n=t.getZoom(),i=this._getTileSize();if(!(n>this.options.maxZoom||n<this.options.minZoom)){var o=f.bounds(e.min.divideBy(i)._floor(),e.max.divideBy(i)._floor());this._addTilesFromCenterOut(o),(this.options.unloadInvisibleTiles||this.options.reuseTiles)&&this._removeOtherTiles(o)}}},_addTilesFromCenterOut:function(t){var e,n,i,o=[],r=t.getCenter();for(e=t.min.y;e<=t.max.y;e++)for(n=t.min.x;n<=t.max.x;n++)i=new f.Point(n,e),this._tileShouldBeLoaded(i)&&o.push(i);var s=o.length;if(0!==s){o.sort(function(t,e){return t.distanceTo(r)-e.distanceTo(r)});var a=p.createDocumentFragment();for(this._tilesToLoad||this.fire("loading"),this._tilesToLoad+=s,n=0;n<s;n++)this._addTile(o[n],a);this._tileContainer.appendChild(a)}},_tileShouldBeLoaded:function(t){if(t.x+":"+t.y in this._tiles)return!1;var e=this.options;if(!e.continuousWorld){var n=this._getWrapTileNum();if(e.noWrap&&(t.x<0||t.x>=n.x)||t.y<0||t.y>=n.y)return!1}if(e.bounds){var i=this._getTileSize(),o=t.multiplyBy(i),r=o.add([i,i]),s=this._map.unproject(o),a=this._map.unproject(r);if(e.continuousWorld||e.noWrap||(s=s.wrap(),a=a.wrap()),!e.bounds.intersects([s,a]))return!1}return!0},_removeOtherTiles:function(t){var e,n,i,o;for(o in this._tiles)e=o.split(":"),n=parseInt(e[0],10),i=parseInt(e[1],10),(n<t.min.x||n>t.max.x||i<t.min.y||i>t.max.y)&&this._removeTile(o)},_removeTile:function(t){var e=this._tiles[t];this.fire("tileunload",{tile:e,url:e.src}),this.options.reuseTiles?(f.DomUtil.removeClass(e,"leaflet-tile-loaded"),this._unusedTiles.push(e)):e.parentNode===this._tileContainer&&this._tileContainer.removeChild(e),f.Browser.android||(e.onload=null,e.src=f.Util.emptyImageUrl),delete this._tiles[t]},_addTile:function(t,e){var n=this._getTilePos(t),i=this._getTile();f.DomUtil.setPosition(i,n,f.Browser.chrome),this._tiles[t.x+":"+t.y]=i,this._loadTile(i,t),i.parentNode!==this._tileContainer&&e.appendChild(i)},_getZoomForUrl:function(){var t=this.options,e=this._map.getZoom();return t.zoomReverse&&(e=t.maxZoom-e),e+=t.zoomOffset,t.maxNativeZoom?Math.min(e,t.maxNativeZoom):e},_getTilePos:function(t){var e=this._map.getPixelOrigin(),n=this._getTileSize();return t.multiplyBy(n).subtract(e)},getTileUrl:function(t){return f.Util.template(this._url,f.extend({s:this._getSubdomain(t),z:t.z,x:t.x,y:t.y},this.options))},_getWrapTileNum:function(){return this._map.options.crs.getSize(this._map.getZoom()).divideBy(this._getTileSize())._floor()},_adjustTilePoint:function(t){var e=this._getWrapTileNum();this.options.continuousWorld||this.options.noWrap||(t.x=(t.x%e.x+e.x)%e.x),this.options.tms&&(t.y=e.y-t.y-1),t.z=this._getZoomForUrl()},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_getTile:function(){if(this.options.reuseTiles&&0<this._unusedTiles.length){var t=this._unusedTiles.pop();return this._resetTile(t),t}return this._createTile()},_resetTile:function(){},_createTile:function(){var t=f.DomUtil.create("img","leaflet-tile");return t.style.width=t.style.height=this._getTileSize()+"px",t.galleryimg="no",t.onselectstart=t.onmousemove=f.Util.falseFn,f.Browser.ielt9&&this.options.opacity!==a&&f.DomUtil.setOpacity(t,this.options.opacity),f.Browser.mobileWebkit3d&&(t.style.WebkitBackfaceVisibility="hidden"),t},_loadTile:function(t,e){t._layer=this,t.onload=this._tileOnLoad,t.onerror=this._tileOnError,this._adjustTilePoint(e),t.src=this.getTileUrl(e),this.fire("tileloadstart",{tile:t,url:t.src})},_tileLoaded:function(){this._tilesToLoad--,this._animated&&f.DomUtil.addClass(this._tileContainer,"leaflet-zoom-animated"),this._tilesToLoad||(this.fire("load"),this._animated&&(clearTimeout(this._clearBgBufferTimer),this._clearBgBufferTimer=setTimeout(f.bind(this._clearBgBuffer,this),500)))},_tileOnLoad:function(){var t=this._layer;this.src!==f.Util.emptyImageUrl&&(f.DomUtil.addClass(this,"leaflet-tile-loaded"),t.fire("tileload",{tile:this,url:this.src})),t._tileLoaded()},_tileOnError:function(){var t=this._layer;t.fire("tileerror",{tile:this,url:this.src});var e=t.options.errorTileUrl;e&&(this.src=e),t._tileLoaded()}}),f.tileLayer=function(t,e){return new f.TileLayer(t,e)},f.TileLayer.WMS=f.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",version:"1.1.1",layers:"",styles:"",format:"image/jpeg",transparent:!1},initialize:function(t,e){this._url=t;var n=f.extend({},this.defaultWmsParams),i=e.tileSize||this.options.tileSize;for(var o in e.detectRetina&&f.Browser.retina?n.width=n.height=2*i:n.width=n.height=i,e)this.options.hasOwnProperty(o)||"crs"===o||(n[o]=e[o]);this.wmsParams=n,f.setOptions(this,e)},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,f.TileLayer.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._map,n=this.options.tileSize,i=t.multiplyBy(n),o=i.add([n,n]),r=this._crs.project(e.unproject(i,t.z)),s=this._crs.project(e.unproject(o,t.z)),a=1.3<=this._wmsVersion&&this._crs===f.CRS.EPSG4326?[s.y,r.x,r.y,s.x].join(","):[r.x,s.y,s.x,r.y].join(","),l=f.Util.template(this._url,{s:this._getSubdomain(t)});return l+f.Util.getParamString(this.wmsParams,l,!0)+"&BBOX="+a},setParams:function(t,e){return f.extend(this.wmsParams,t),e||this.redraw(),this}}),f.tileLayer.wms=function(t,e){return new f.TileLayer.WMS(t,e)},f.TileLayer.Canvas=f.TileLayer.extend({options:{async:!1},initialize:function(t){f.setOptions(this,t)},redraw:function(){for(var t in this._map&&(this._reset({hard:!0}),this._update()),this._tiles)this._redrawTile(this._tiles[t]);return this},_redrawTile:function(t){this.drawTile(t,t._tilePoint,this._map._zoom)},_createTile:function(){var t=f.DomUtil.create("canvas","leaflet-tile");return t.width=t.height=this.options.tileSize,t.onselectstart=t.onmousemove=f.Util.falseFn,t},_loadTile:function(t,e){t._layer=this,t._tilePoint=e,this._redrawTile(t),this.options.async||this.tileDrawn(t)},drawTile:function(){},tileDrawn:function(t){this._tileOnLoad.call(t)}}),f.tileLayer.canvas=function(t){return new f.TileLayer.Canvas(t)},f.ImageOverlay=f.Class.extend({includes:f.Mixin.Events,options:{opacity:1},initialize:function(t,e,n){this._url=t,this._bounds=f.latLngBounds(e),f.setOptions(this,n)},onAdd:function(t){this._map=t,this._image||this._initImage(),t._panes.overlayPane.appendChild(this._image),t.on("viewreset",this._reset,this),t.options.zoomAnimation&&f.Browser.any3d&&t.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(t){t.getPanes().overlayPane.removeChild(this._image),t.off("viewreset",this._reset,this),t.options.zoomAnimation&&t.off("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},bringToFront:function(){return this._image&&this._map._panes.overlayPane.appendChild(this._image),this},bringToBack:function(){var t=this._map._panes.overlayPane;return this._image&&t.insertBefore(this._image,t.firstChild),this},setUrl:function(t){this._url=t,this._image.src=this._url},getAttribution:function(){return this.options.attribution},_initImage:function(){this._image=f.DomUtil.create("img","leaflet-image-layer"),this._map.options.zoomAnimation&&f.Browser.any3d?f.DomUtil.addClass(this._image,"leaflet-zoom-animated"):f.DomUtil.addClass(this._image,"leaflet-zoom-hide"),this._updateOpacity(),f.extend(this._image,{galleryimg:"no",onselectstart:f.Util.falseFn,onmousemove:f.Util.falseFn,onload:f.bind(this._onImageLoad,this),src:this._url})},_animateZoom:function(t){var e=this._map,n=this._image,i=e.getZoomScale(t.zoom),o=this._bounds.getNorthWest(),r=this._bounds.getSouthEast(),s=e._latLngToNewLayerPoint(o,t.zoom,t.center),a=e._latLngToNewLayerPoint(r,t.zoom,t.center)._subtract(s),l=s._add(a._multiplyBy(.5*(1-1/i)));n.style[f.DomUtil.TRANSFORM]=f.DomUtil.getTranslateString(l)+" scale("+i+") "},_reset:function(){var t=this._image,e=this._map.latLngToLayerPoint(this._bounds.getNorthWest()),n=this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(e);f.DomUtil.setPosition(t,e),t.style.width=n.x+"px",t.style.height=n.y+"px"},_onImageLoad:function(){this.fire("load")},_updateOpacity:function(){f.DomUtil.setOpacity(this._image,this.options.opacity)}}),f.imageOverlay=function(t,e,n){return new f.ImageOverlay(t,e,n)},f.Icon=f.Class.extend({options:{className:""},initialize:function(t){f.setOptions(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n,i=this._getIconUrl(t);if(i)return n=e&&"IMG"===e.tagName?this._createImg(i,e):this._createImg(i),this._setIconStyles(n,t),n;if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null},_setIconStyles:function(t,e){var n,i=this.options,o=f.point(i[e+"Size"]);!(n="shadow"===e?f.point(i.shadowAnchor||i.iconAnchor):f.point(i.iconAnchor))&&o&&(n=o.divideBy(2,!0)),t.className="leaflet-marker-"+e+" "+i.className,n&&(t.style.marginLeft=-n.x+"px",t.style.marginTop=-n.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||p.createElement("img")).src=t,e},_getIconUrl:function(t){return f.Browser.retina&&this.options[t+"RetinaUrl"]?this.options[t+"RetinaUrl"]:this.options[t+"Url"]}}),f.icon=function(t){return new f.Icon(t)},f.Icon.Default=f.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},_getIconUrl:function(t){var e=t+"Url";if(this.options[e])return this.options[e];f.Browser.retina&&"icon"===t&&(t+="-2x");var n=f.Icon.Default.imagePath;if(!n)throw new Error("Couldn't autodetect L.Icon.Default.imagePath, set it manually.");return n+"/marker-"+t+".png"}}),f.Icon.Default.imagePath=function(){var t,e,n,i,o=p.getElementsByTagName("script"),r=/[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/;for(t=0,e=o.length;t<e;t++)if((n=o[t].src).match(r))return((i=n.split(r)[0])?i+"/":"")+"images"}(),f.Marker=f.Class.extend({includes:f.Mixin.Events,options:{icon:new f.Icon.Default,title:"",alt:"",clickable:!0,draggable:!1,keyboard:!0,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250},initialize:function(t,e){f.setOptions(this,e),this._latlng=f.latLng(t)},onAdd:function(t){(this._map=t).on("viewreset",this.update,this),this._initIcon(),this.update(),this.fire("add"),t.options.zoomAnimation&&t.options.markerZoomAnimation&&t.on("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this.dragging&&this.dragging.disable(),this._removeIcon(),this._removeShadow(),this.fire("remove"),t.off({viewreset:this.update,zoomanim:this._animateZoom},this),this._map=null},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=f.latLng(t),this.update(),this.fire("move",{latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update(),this},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup),this},update:function(){return this._icon&&this._setPos(this._map.latLngToLayerPoint(this._latlng).round()),this},_initIcon:function(){var t=this.options,e=this._map,n=e.options.zoomAnimation&&e.options.markerZoomAnimation?"leaflet-zoom-animated":"leaflet-zoom-hide",i=t.icon.createIcon(this._icon),o=!1;i!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(i.title=t.title),t.alt&&(i.alt=t.alt)),f.DomUtil.addClass(i,n),t.keyboard&&(i.tabIndex="0"),this._icon=i,this._initInteraction(),t.riseOnHover&&f.DomEvent.on(i,"mouseover",this._bringToFront,this).on(i,"mouseout",this._resetZIndex,this);var r=t.icon.createShadow(this._shadow),s=!1;r!==this._shadow&&(this._removeShadow(),s=!0),r&&f.DomUtil.addClass(r,n),this._shadow=r,t.opacity<1&&this._updateOpacity();var a=this._map._panes;o&&a.markerPane.appendChild(this._icon),r&&s&&a.shadowPane.appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&f.DomEvent.off(this._icon,"mouseover",this._bringToFront).off(this._icon,"mouseout",this._resetZIndex),this._map._panes.markerPane.removeChild(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&this._map._panes.shadowPane.removeChild(this._shadow),this._shadow=null},_setPos:function(t){f.DomUtil.setPosition(this._icon,t),this._shadow&&f.DomUtil.setPosition(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.clickable){var t=this._icon,e=["dblclick","mousedown","mouseover","mouseout","contextmenu"];f.DomUtil.addClass(t,"leaflet-clickable"),f.DomEvent.on(t,"click",this._onMouseClick,this),f.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var n=0;n<e.length;n++)f.DomEvent.on(t,e[n],this._fireMouseEvent,this);f.Handler.MarkerDrag&&(this.dragging=new f.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_onMouseClick:function(t){var e=this.dragging&&this.dragging.moved();(this.hasEventListeners(t.type)||e)&&f.DomEvent.stopPropagation(t),e||(this.dragging&&this.dragging._enabled||!this._map.dragging||!this._map.dragging.moved())&&this.fire(t.type,{originalEvent:t,latlng:this._latlng})},_onKeyPress:function(t){13===t.keyCode&&this.fire("click",{originalEvent:t,latlng:this._latlng})},_fireMouseEvent:function(t){this.fire(t.type,{originalEvent:t,latlng:this._latlng}),"contextmenu"===t.type&&this.hasEventListeners(t.type)&&f.DomEvent.preventDefault(t),"mousedown"!==t.type?f.DomEvent.stopPropagation(t):f.DomEvent.preventDefault(t)},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){f.DomUtil.setOpacity(this._icon,this.options.opacity),this._shadow&&f.DomUtil.setOpacity(this._shadow,this.options.opacity)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)}}),f.marker=function(t,e){return new f.Marker(t,e)},f.DivIcon=f.Icon.extend({options:{iconSize:[12,12],className:"leaflet-div-icon",html:!1},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:p.createElement("div"),n=this.options;return!1!==n.html?e.innerHTML=n.html:e.innerHTML="",n.bgPos&&(e.style.backgroundPosition=-n.bgPos.x+"px "+-n.bgPos.y+"px"),this._setIconStyles(e,"icon"),e},createShadow:function(){return null}}),f.divIcon=function(t){return new f.DivIcon(t)},f.Map.mergeOptions({closePopupOnClick:!0}),f.Popup=f.Class.extend({includes:f.Mixin.Events,options:{minWidth:50,maxWidth:300,autoPan:!0,closeButton:!0,offset:[0,7],autoPanPadding:[5,5],keepInView:!1,className:"",zoomAnimation:!0},initialize:function(t,e){f.setOptions(this,t),this._source=e,this._animated=f.Browser.any3d&&this.options.zoomAnimation,this._isOpen=!1},onAdd:function(t){this._map=t,this._container||this._initLayout();var e=t.options.fadeAnimation;e&&f.DomUtil.setOpacity(this._container,0),t._panes.popupPane.appendChild(this._container),t.on(this._getEvents(),this),this.update(),e&&f.DomUtil.setOpacity(this._container,1),this.fire("open"),t.fire("popupopen",{popup:this}),this._source&&this._source.fire("popupopen",{popup:this})},addTo:function(t){return t.addLayer(this),this},openOn:function(t){return t.openPopup(this),this},onRemove:function(t){t._panes.popupPane.removeChild(this._container),f.Util.falseFn(this._container.offsetWidth),t.off(this._getEvents(),this),t.options.fadeAnimation&&f.DomUtil.setOpacity(this._container,0),this._map=null,this.fire("close"),t.fire("popupclose",{popup:this}),this._source&&this._source.fire("popupclose",{popup:this})},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=f.latLng(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},_getEvents:function(){var t={viewreset:this._updatePosition};return this._animated&&(t.zoomanim=this._zoomAnimation),("closeOnClick"in this.options?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t,e="leaflet-popup",n=e+" "+this.options.className+" leaflet-zoom-"+(this._animated?"animated":"hide"),i=this._container=f.DomUtil.create("div",n);this.options.closeButton&&((t=this._closeButton=f.DomUtil.create("a",e+"-close-button",i)).href="#close",t.innerHTML="&#215;",f.DomEvent.disableClickPropagation(t),f.DomEvent.on(t,"click",this._onCloseButtonClick,this));var o=this._wrapper=f.DomUtil.create("div",e+"-content-wrapper",i);f.DomEvent.disableClickPropagation(o),this._contentNode=f.DomUtil.create("div",e+"-content",o),f.DomEvent.disableScrollPropagation(this._contentNode),f.DomEvent.on(o,"contextmenu",f.DomEvent.stopPropagation),this._tipContainer=f.DomUtil.create("div",e+"-tip-container",i),this._tip=f.DomUtil.create("div",e+"-tip",this._tipContainer)},_updateContent:function(){if(this._content){if("string"==typeof this._content)this._contentNode.innerHTML=this._content;else{for(;this._contentNode.hasChildNodes();)this._contentNode.removeChild(this._contentNode.firstChild);this._contentNode.appendChild(this._content)}this.fire("contentupdate")}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";o&&o<i?(e.height=o+"px",f.DomUtil.addClass(t,r)):f.DomUtil.removeClass(t,r),this._containerWidth=this._container.offsetWidth},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=this._animated,n=f.point(this.options.offset);e&&f.DomUtil.setPosition(this._container,t),this._containerBottom=-n.y-(e?0:t.y),this._containerLeft=-Math.round(this._containerWidth/2)+n.x+(e?0:t.x),this._container.style.bottom=this._containerBottom+"px",this._container.style.left=this._containerLeft+"px"}},_zoomAnimation:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);f.DomUtil.setPosition(this._container,e)},_adjustPan:function(){if(this.options.autoPan){var t=this._map,e=this._container.offsetHeight,n=this._containerWidth,i=new f.Point(this._containerLeft,-e-this._containerBottom);this._animated&&i._add(f.DomUtil.getPosition(this._container));var o=t.layerPointToContainerPoint(i),r=f.point(this.options.autoPanPadding),s=f.point(this.options.autoPanPaddingTopLeft||r),a=f.point(this.options.autoPanPaddingBottomRight||r),l=t.getSize(),c=0,u=0;o.x+n+a.x>l.x&&(c=o.x+n-l.x+a.x),o.x-c-s.x<0&&(c=o.x-s.x),o.y+e+a.y>l.y&&(u=o.y+e-l.y+a.y),o.y-u-s.y<0&&(u=o.y-s.y),(c||u)&&t.fire("autopanstart").panBy([c,u])}},_onCloseButtonClick:function(t){this._close(),f.DomEvent.stop(t)}}),f.popup=function(t,e){return new f.Popup(t,e)},f.Map.include({openPopup:function(t,e,n){if(this.closePopup(),!(t instanceof f.Popup)){var i=t;t=new f.Popup(n).setLatLng(e).setContent(i)}return t._isOpen=!0,this._popup=t,this.addLayer(t)},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&(this.removeLayer(t),t._isOpen=!1),this}}),f.Marker.include({openPopup:function(){return this._popup&&this._map&&!this._map.hasLayer(this._popup)&&(this._popup.setLatLng(this._latlng),this._map.openPopup(this._popup)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(){return this._popup&&(this._popup._isOpen?this.closePopup():this.openPopup()),this},bindPopup:function(t,e){var n=f.point(this.options.icon.options.popupAnchor||[0,0]);return n=n.add(f.Popup.prototype.options.offset),e&&e.offset&&(n=n.add(e.offset)),e=f.extend({offset:n},e),this._popupHandlersAdded||(this.on("click",this.togglePopup,this).on("remove",this.closePopup,this).on("move",this._movePopup,this),this._popupHandlersAdded=!0),t instanceof f.Popup?(f.setOptions(t,e),(this._popup=t)._source=this):this._popup=new f.Popup(e,this).setContent(t),this},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this.togglePopup,this).off("remove",this.closePopup,this).off("move",this._movePopup,this),this._popupHandlersAdded=!1),this},getPopup:function(){return this._popup},_movePopup:function(t){this._popup.setLatLng(t.latlng)}}),f.LayerGroup=f.Class.extend({initialize:function(t){var e,n;if(this._layers={},t)for(e=0,n=t.length;e<n;e++)this.addLayer(t[e])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this),this},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,i);return this},onAdd:function(t){this._map=t,this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t),this._map=null},addTo:function(t){return t.addLayer(this),this},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];for(var e in this._layers)t.push(this._layers[e]);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return f.stamp(t)}}),f.layerGroup=function(t){return new f.LayerGroup(t)},f.FeatureGroup=f.LayerGroup.extend({includes:f.Mixin.Events,statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose"},addLayer:function(t){return this.hasLayer(t)?this:("on"in t&&t.on(f.FeatureGroup.EVENTS,this._propagateEvent,this),f.LayerGroup.prototype.addLayer.call(this,t),this._popupContent&&t.bindPopup&&t.bindPopup(this._popupContent,this._popupOptions),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),"off"in t&&t.off(f.FeatureGroup.EVENTS,this._propagateEvent,this),f.LayerGroup.prototype.removeLayer.call(this,t),this._popupContent&&this.invoke("unbindPopup"),this.fire("layerremove",{layer:t})):this},bindPopup:function(t,e){return this._popupContent=t,this._popupOptions=e,this.invoke("bindPopup",t,e)},openPopup:function(t){for(var e in this._layers){this._layers[e].openPopup(t);break}return this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new f.LatLngBounds;return this.eachLayer(function(t){e.extend(t instanceof f.Marker?t.getLatLng():t.getBounds())}),e},_propagateEvent:function(t){t=f.extend({layer:t.target,target:this},t),this.fire(t.type,t)}}),f.featureGroup=function(t){return new f.FeatureGroup(t)},f.Path=f.Class.extend({includes:[f.Mixin.Events],statics:{CLIP_PADDING:(o=((f.Browser.mobile?1280:2e3)/Math.max(s.outerWidth,s.outerHeight)-1)/2,Math.max(0,Math.min(.5,o)))},options:{stroke:!0,color:"#0033ff",dashArray:null,lineCap:null,lineJoin:null,weight:5,opacity:.5,fill:!1,fillColor:null,fillOpacity:.2,clickable:!0},initialize:function(t){f.setOptions(this,t)},onAdd:function(t){this._map=t,this._container||(this._initElements(),this._initEvents()),this.projectLatlngs(),this._updatePath(),this._container&&this._map._pathRoot.appendChild(this._container),this.fire("add"),t.on({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){t._pathRoot.removeChild(this._container),this.fire("remove"),this._map=null,f.Browser.vml&&(this._container=null,this._stroke=null,this._fill=null),t.off({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},projectLatlngs:function(){},setStyle:function(t){return f.setOptions(this,t),this._container&&this._updateStyle(),this},redraw:function(){return this._map&&(this.projectLatlngs(),this._updatePath()),this}}),f.Map.include({_updatePathViewport:function(){var t=f.Path.CLIP_PADDING,e=this.getSize(),n=f.DomUtil.getPosition(this._mapPane).multiplyBy(-1)._subtract(e.multiplyBy(t)._round()),i=n.add(e.multiplyBy(1+2*t)._round());this._pathViewport=new f.Bounds(n,i)}}),f.Path.SVG_NS="http://www.w3.org/2000/svg",f.Browser.svg=!(!p.createElementNS||!p.createElementNS(f.Path.SVG_NS,"svg").createSVGRect),f.Path=f.Path.extend({statics:{SVG:f.Browser.svg},bringToFront:function(){var t=this._map._pathRoot,e=this._container;return e&&t.lastChild!==e&&t.appendChild(e),this},bringToBack:function(){var t=this._map._pathRoot,e=this._container,n=t.firstChild;return e&&n!==e&&t.insertBefore(e,n),this},getPathString:function(){},_createElement:function(t){return p.createElementNS(f.Path.SVG_NS,t)},_initElements:function(){this._map._initPathRoot(),this._initPath(),this._initStyle()},_initPath:function(){this._container=this._createElement("g"),this._path=this._createElement("path"),this.options.className&&f.DomUtil.addClass(this._path,this.options.className),this._container.appendChild(this._path)},_initStyle:function(){this.options.stroke&&(this._path.setAttribute("stroke-linejoin","round"),this._path.setAttribute("stroke-linecap","round")),this.options.fill&&this._path.setAttribute("fill-rule","evenodd"),this.options.pointerEvents&&this._path.setAttribute("pointer-events",this.options.pointerEvents),this.options.clickable||this.options.pointerEvents||this._path.setAttribute("pointer-events","none"),this._updateStyle()},_updateStyle:function(){this.options.stroke?(this._path.setAttribute("stroke",this.options.color),this._path.setAttribute("stroke-opacity",this.options.opacity),this._path.setAttribute("stroke-width",this.options.weight),this.options.dashArray?this._path.setAttribute("stroke-dasharray",this.options.dashArray):this._path.removeAttribute("stroke-dasharray"),this.options.lineCap&&this._path.setAttribute("stroke-linecap",this.options.lineCap),this.options.lineJoin&&this._path.setAttribute("stroke-linejoin",this.options.lineJoin)):this._path.setAttribute("stroke","none"),this.options.fill?(this._path.setAttribute("fill",this.options.fillColor||this.options.color),this._path.setAttribute("fill-opacity",this.options.fillOpacity)):this._path.setAttribute("fill","none")},_updatePath:function(){var t=this.getPathString();t||(t="M0 0"),this._path.setAttribute("d",t)},_initEvents:function(){if(this.options.clickable){(f.Browser.svg||!f.Browser.vml)&&f.DomUtil.addClass(this._path,"leaflet-clickable"),f.DomEvent.on(this._container,"click",this._onMouseClick,this);for(var t=["dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],e=0;e<t.length;e++)f.DomEvent.on(this._container,t[e],this._fireMouseEvent,this)}},_onMouseClick:function(t){this._map.dragging&&this._map.dragging.moved()||this._fireMouseEvent(t)},_fireMouseEvent:function(t){if(this._map&&this.hasEventListeners(t.type)){var e=this._map,n=e.mouseEventToContainerPoint(t),i=e.containerPointToLayerPoint(n),o=e.layerPointToLatLng(i);this.fire(t.type,{latlng:o,layerPoint:i,containerPoint:n,originalEvent:t}),"contextmenu"===t.type&&f.DomEvent.preventDefault(t),"mousemove"!==t.type&&f.DomEvent.stopPropagation(t)}}}),f.Map.include({_initPathRoot:function(){this._pathRoot||(this._pathRoot=f.Path.prototype._createElement("svg"),this._panes.overlayPane.appendChild(this._pathRoot),this.options.zoomAnimation&&f.Browser.any3d?(f.DomUtil.addClass(this._pathRoot,"leaflet-zoom-animated"),this.on({zoomanim:this._animatePathZoom,zoomend:this._endPathZoom})):f.DomUtil.addClass(this._pathRoot,"leaflet-zoom-hide"),this.on("moveend",this._updateSvgViewport),this._updateSvgViewport())},_animatePathZoom:function(t){var e=this.getZoomScale(t.zoom),n=this._getCenterOffset(t.center)._multiplyBy(-e)._add(this._pathViewport.min);this._pathRoot.style[f.DomUtil.TRANSFORM]=f.DomUtil.getTranslateString(n)+" scale("+e+") ",this._pathZooming=!0},_endPathZoom:function(){this._pathZooming=!1},_updateSvgViewport:function(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,n=t.max,i=n.x-e.x,o=n.y-e.y,r=this._pathRoot,s=this._panes.overlayPane;f.Browser.mobileWebkit&&s.removeChild(r),f.DomUtil.setPosition(r,e),r.setAttribute("width",i),r.setAttribute("height",o),r.setAttribute("viewBox",[e.x,e.y,i,o].join(" ")),f.Browser.mobileWebkit&&s.appendChild(r)}}}),f.Path.include({bindPopup:function(t,e){return t instanceof f.Popup?this._popup=t:((!this._popup||e)&&(this._popup=new f.Popup(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on("click",this._openPopup,this).on("remove",this.closePopup,this),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this._openPopup).off("remove",this.closePopup),this._popupHandlersAdded=!1),this},openPopup:function(t){return this._popup&&(t=t||this._latlng||this._latlngs[Math.floor(this._latlngs.length/2)],this._openPopup({latlng:t})),this},closePopup:function(){return this._popup&&this._popup._close(),this},_openPopup:function(t){this._popup.setLatLng(t.latlng),this._map.openPopup(this._popup)}}),f.Browser.vml=!f.Browser.svg&&function(){try{var t=p.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),f.Path=f.Browser.svg||!f.Browser.vml?f.Path:f.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:function(){try{return p.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return p.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return p.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_initPath:function(){var t=this._container=this._createElement("shape");f.DomUtil.addClass(t,"leaflet-vml-shape"+(this.options.className?" "+this.options.className:"")),this.options.clickable&&f.DomUtil.addClass(t,"leaflet-clickable"),t.coordsize="1 1",this._path=this._createElement("path"),t.appendChild(this._path),this._map._pathRoot.appendChild(t)},_initStyle:function(){this._updateStyle()},_updateStyle:function(){var t=this._stroke,e=this._fill,n=this.options,i=this._container;i.stroked=n.stroke,i.filled=n.fill,n.stroke?(t||((t=this._stroke=this._createElement("stroke")).endcap="round",i.appendChild(t)),t.weight=n.weight+"px",t.color=n.color,t.opacity=n.opacity,n.dashArray?t.dashStyle=f.Util.isArray(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):t.dashStyle="",n.lineCap&&(t.endcap=n.lineCap.replace("butt","flat")),n.lineJoin&&(t.joinstyle=n.lineJoin)):t&&(i.removeChild(t),this._stroke=null),n.fill?(e||(e=this._fill=this._createElement("fill"),i.appendChild(e)),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(i.removeChild(e),this._fill=null)},_updatePath:function(){var t=this._container.style;t.display="none",this._path.v=this.getPathString()+" ",t.display=""}}),f.Map.include(f.Browser.svg||!f.Browser.vml?{}:{_initPathRoot:function(){if(!this._pathRoot){var t=this._pathRoot=p.createElement("div");t.className="leaflet-vml-container",this._panes.overlayPane.appendChild(t),this.on("moveend",this._updatePathViewport),this._updatePathViewport()}}}),f.Browser.canvas=!!p.createElement("canvas").getContext,f.Path=f.Path.SVG&&!s.L_PREFER_CANVAS||!f.Browser.canvas?f.Path:f.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function(){return this._map&&(this.projectLatlngs(),this._requestUpdate()),this},setStyle:function(t){return f.setOptions(this,t),this._map&&(this._updateStyle(),this._requestUpdate()),this},onRemove:function(t){t.off("viewreset",this.projectLatlngs,this).off("moveend",this._updatePath,this),this.options.clickable&&(this._map.off("click",this._onClick,this),this._map.off("mousemove",this._onMouseMove,this)),this._requestUpdate(),this.fire("remove"),this._map=null},_requestUpdate:function(){this._map&&!f.Path._updateRequest&&(f.Path._updateRequest=f.Util.requestAnimFrame(this._fireMapMoveEnd,this._map))},_fireMapMoveEnd:function(){f.Path._updateRequest=null,this.fire("moveend")},_initElements:function(){this._map._initPathRoot(),this._ctx=this._map._canvasCtx},_updateStyle:function(){var t=this.options;t.stroke&&(this._ctx.lineWidth=t.weight,this._ctx.strokeStyle=t.color),t.fill&&(this._ctx.fillStyle=t.fillColor||t.color),t.lineCap&&(this._ctx.lineCap=t.lineCap),t.lineJoin&&(this._ctx.lineJoin=t.lineJoin)},_drawPath:function(){var t,e,n,i,o,r;for(this._ctx.beginPath(),t=0,n=this._parts.length;t<n;t++){for(e=0,i=this._parts[t].length;e<i;e++)o=this._parts[t][e],r=(0===e?"move":"line")+"To",this._ctx[r](o.x,o.y);this instanceof f.Polygon&&this._ctx.closePath()}},_checkIfEmpty:function(){return!this._parts.length},_updatePath:function(){if(!this._checkIfEmpty()){var t=this._ctx,e=this.options;this._drawPath(),t.save(),this._updateStyle(),e.fill&&(t.globalAlpha=e.fillOpacity,t.fill(e.fillRule||"evenodd")),e.stroke&&(t.globalAlpha=e.opacity,t.stroke()),t.restore()}},_initEvents:function(){this.options.clickable&&(this._map.on("mousemove",this._onMouseMove,this),this._map.on("click dblclick contextmenu",this._fireMouseEvent,this))},_fireMouseEvent:function(t){this._containsPoint(t.layerPoint)&&this.fire(t.type,t)},_onMouseMove:function(t){this._map&&!this._map._animatingZoom&&(this._containsPoint(t.layerPoint)?(this._ctx.canvas.style.cursor="pointer",this._mouseInside=!0,this.fire("mouseover",t)):this._mouseInside&&(this._ctx.canvas.style.cursor="",this._mouseInside=!1,this.fire("mouseout",t)))}}),f.Map.include(f.Path.SVG&&!s.L_PREFER_CANVAS||!f.Browser.canvas?{}:{_initPathRoot:function(){var t,e=this._pathRoot;e||((e=this._pathRoot=p.createElement("canvas")).style.position="absolute",(t=this._canvasCtx=e.getContext("2d")).lineCap="round",t.lineJoin="round",this._panes.overlayPane.appendChild(e),this.options.zoomAnimation&&(this._pathRoot.className="leaflet-zoom-animated",this.on("zoomanim",this._animatePathZoom),this.on("zoomend",this._endPathZoom)),this.on("moveend",this._updateCanvasViewport),this._updateCanvasViewport())},_updateCanvasViewport:function(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,n=t.max.subtract(e),i=this._pathRoot;f.DomUtil.setPosition(i,e),i.width=n.x,i.height=n.y,i.getContext("2d").translate(-e.x,-e.y)}}}),f.LineUtil={simplify:function(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=this._reducePoints(t,n),this._simplifyDP(t,n)},pointToSegmentDistance:function(t,e,n){return Math.sqrt(this._sqClosestPointOnSegment(t,e,n,!0))},closestPointOnSegment:function(t,e,n){return this._sqClosestPointOnSegment(t,e,n)},_simplifyDP:function(t,e){var n=t.length,i=new(typeof Uint8Array!=a+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,this._simplifyDPStep(t,i,e,0,n-1);var o,r=[];for(o=0;o<n;o++)i[o]&&r.push(t[o]);return r},_simplifyDPStep:function(t,e,n,i,o){var r,s,a,l=0;for(s=i+1;s<=o-1;s++)l<(a=this._sqClosestPointOnSegment(t[s],t[i],t[o],!0))&&(r=s,l=a);n<l&&(e[r]=1,this._simplifyDPStep(t,e,n,i,r),this._simplifyDPStep(t,e,n,r,o))},_reducePoints:function(t,e){for(var n=[t[0]],i=1,o=0,r=t.length;i<r;i++)this._sqDist(t[i],t[o])>e&&(n.push(t[i]),o=i);return o<r-1&&n.push(t[r-1]),n},clipSegment:function(t,e,n,i){var o,r,s,a=i?this._lastCode:this._getBitCode(t,n),l=this._getBitCode(e,n);for(this._lastCode=l;;){if(!(a|l))return[t,e];if(a&l)return!1;o=a||l,r=this._getEdgeIntersection(t,e,o,n),s=this._getBitCode(r,n),o===a?(t=r,a=s):(e=r,l=s)}},_getEdgeIntersection:function(t,e,n,i){var o=e.x-t.x,r=e.y-t.y,s=i.min,a=i.max;return 8&n?new f.Point(t.x+o*(a.y-t.y)/r,a.y):4&n?new f.Point(t.x+o*(s.y-t.y)/r,s.y):2&n?new f.Point(a.x,t.y+r*(a.x-t.x)/o):1&n?new f.Point(s.x,t.y+r*(s.x-t.x)/o):void 0},_getBitCode:function(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n},_sqDist:function(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i},_sqClosestPointOnSegment:function(t,e,n,i){var o,r=e.x,s=e.y,a=n.x-r,l=n.y-s,c=a*a+l*l;return 0<c&&(1<(o=((t.x-r)*a+(t.y-s)*l)/c)?(r=n.x,s=n.y):0<o&&(r+=a*o,s+=l*o)),a=t.x-r,l=t.y-s,i?a*a+l*l:new f.Point(r,s)}},f.Polyline=f.Path.extend({initialize:function(t,e){f.Path.prototype.initialize.call(this,e),this._latlngs=this._convertLatLngs(t)},options:{smoothFactor:1,noClip:!1},projectLatlngs:function(){this._originalPoints=[];for(var t=0,e=this._latlngs.length;t<e;t++)this._originalPoints[t]=this._map.latLngToLayerPoint(this._latlngs[t])},getPathString:function(){for(var t=0,e=this._parts.length,n="";t<e;t++)n+=this._getPathPartStr(this._parts[t]);return n},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._latlngs=this._convertLatLngs(t),this.redraw()},addLatLng:function(t){return this._latlngs.push(f.latLng(t)),this.redraw()},spliceLatLngs:function(){var t=[].splice.apply(this._latlngs,arguments);return this._convertLatLngs(this._latlngs,!0),this.redraw(),t},closestLayerPoint:function(t){for(var e,n,i=1/0,o=this._parts,r=null,s=0,a=o.length;s<a;s++)for(var l=o[s],c=1,u=l.length;c<u;c++){e=l[c-1],n=l[c];var h=f.LineUtil._sqClosestPointOnSegment(t,e,n,!0);h<i&&(i=h,r=f.LineUtil._sqClosestPointOnSegment(t,e,n))}return r&&(r.distance=Math.sqrt(i)),r},getBounds:function(){return new f.LatLngBounds(this.getLatLngs())},_convertLatLngs:function(t,e){var n,i,o=e?t:[];for(n=0,i=t.length;n<i;n++){if(f.Util.isArray(t[n])&&"number"!=typeof t[n][0])return;o[n]=f.latLng(t[n])}return o},_initEvents:function(){f.Path.prototype._initEvents.call(this)},_getPathPartStr:function(t){for(var e,n=f.Path.VML,i=0,o=t.length,r="";i<o;i++)e=t[i],n&&e._round(),r+=(i?"L":"M")+e.x+" "+e.y;return r},_clipPoints:function(){var t,e,n,i=this._originalPoints,o=i.length;if(this.options.noClip)this._parts=[i];else{this._parts=[];var r=this._parts,s=this._map._pathViewport,a=f.LineUtil;for(e=t=0;t<o-1;t++)(n=a.clipSegment(i[t],i[t+1],s,t))&&(r[e]=r[e]||[],r[e].push(n[0]),(n[1]!==i[t+1]||t===o-2)&&(r[e].push(n[1]),e++))}},_simplifyPoints:function(){for(var t=this._parts,e=f.LineUtil,n=0,i=t.length;n<i;n++)t[n]=e.simplify(t[n],this.options.smoothFactor)},_updatePath:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),f.Path.prototype._updatePath.call(this))}}),f.polyline=function(t,e){return new f.Polyline(t,e)},f.PolyUtil={},f.PolyUtil.clipPolygon=function(t,e){var n,i,o,r,s,a,l,c,u,h=[1,4,2,8],p=f.LineUtil;for(i=0,l=t.length;i<l;i++)t[i]._code=p._getBitCode(t[i],e);for(r=0;r<4;r++){for(c=h[r],n=[],i=0,o=(l=t.length)-1;i<l;o=i++)s=t[i],a=t[o],s._code&c?a._code&c||((u=p._getEdgeIntersection(a,s,c,e))._code=p._getBitCode(u,e),n.push(u)):(a._code&c&&((u=p._getEdgeIntersection(a,s,c,e))._code=p._getBitCode(u,e),n.push(u)),n.push(s));t=n}return t},f.Polygon=f.Polyline.extend({options:{fill:!0},initialize:function(t,e){f.Polyline.prototype.initialize.call(this,t,e),this._initWithHoles(t)},_initWithHoles:function(t){var e,n,i;if(t&&f.Util.isArray(t[0])&&"number"!=typeof t[0][0])for(this._latlngs=this._convertLatLngs(t[0]),this._holes=t.slice(1),e=0,n=this._holes.length;e<n;e++)(i=this._holes[e]=this._convertLatLngs(this._holes[e]))[0].equals(i[i.length-1])&&i.pop();2<=(t=this._latlngs).length&&t[0].equals(t[t.length-1])&&t.pop()},projectLatlngs:function(){var t,e,n,i;if(f.Polyline.prototype.projectLatlngs.call(this),this._holePoints=[],this._holes)for(t=0,n=this._holes.length;t<n;t++)for(this._holePoints[t]=[],e=0,i=this._holes[t].length;e<i;e++)this._holePoints[t][e]=this._map.latLngToLayerPoint(this._holes[t][e])},setLatLngs:function(t){return t&&f.Util.isArray(t[0])&&"number"!=typeof t[0][0]?(this._initWithHoles(t),this.redraw()):f.Polyline.prototype.setLatLngs.call(this,t)},_clipPoints:function(){var t=this._originalPoints,e=[];if(this._parts=[t].concat(this._holePoints),!this.options.noClip){for(var n=0,i=this._parts.length;n<i;n++){var o=f.PolyUtil.clipPolygon(this._parts[n],this._map._pathViewport);o.length&&e.push(o)}this._parts=e}},_getPathPartStr:function(t){return f.Polyline.prototype._getPathPartStr.call(this,t)+(f.Browser.svg?"z":"x")}}),f.polygon=function(t,e){return new f.Polygon(t,e)},function(){function t(t){return f.FeatureGroup.extend({initialize:function(t,e){this._layers={},this._options=e,this.setLatLngs(t)},setLatLngs:function(e){var n=0,i=e.length;for(this.eachLayer(function(t){n<i?t.setLatLngs(e[n++]):this.removeLayer(t)},this);n<i;)this.addLayer(new t(e[n++],this._options));return this},getLatLngs:function(){var e=[];return this.eachLayer(function(t){e.push(t.getLatLngs())}),e}})}f.MultiPolyline=t(f.Polyline),f.MultiPolygon=t(f.Polygon),f.multiPolyline=function(t,e){return new f.MultiPolyline(t,e)},f.multiPolygon=function(t,e){return new f.MultiPolygon(t,e)}}(),f.Rectangle=f.Polygon.extend({initialize:function(t,e){f.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=f.latLngBounds(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}}),f.rectangle=function(t,e){return new f.Rectangle(t,e)},f.Circle=f.Path.extend({initialize:function(t,e,n){f.Path.prototype.initialize.call(this,n),this._latlng=f.latLng(t),this._mRadius=e},options:{fill:!0},setLatLng:function(t){return this._latlng=f.latLng(t),this.redraw()},setRadius:function(t){return this._mRadius=t,this.redraw()},projectLatlngs:function(){var t=this._getLngRadius(),e=this._latlng,n=this._map.latLngToLayerPoint([e.lat,e.lng-t]);this._point=this._map.latLngToLayerPoint(e),this._radius=Math.max(this._point.x-n.x,1)},getBounds:function(){var t=this._getLngRadius(),e=this._mRadius/40075017*360,n=this._latlng;return new f.LatLngBounds([n.lat-e,n.lng-t],[n.lat+e,n.lng+t])},getLatLng:function(){return this._latlng},getPathString:function(){var t=this._point,e=this._radius;return this._checkIfEmpty()?"":f.Browser.svg?"M"+t.x+","+(t.y-e)+"A"+e+","+e+",0,1,1,"+(t.x-.1)+","+(t.y-e)+" z":(t._round(),e=Math.round(e),"AL "+t.x+","+t.y+" "+e+","+e+" 0,23592600")},getRadius:function(){return this._mRadius},_getLatRadius:function(){return this._mRadius/40075017*360},_getLngRadius:function(){return this._getLatRadius()/Math.cos(f.LatLng.DEG_TO_RAD*this._latlng.lat)},_checkIfEmpty:function(){if(!this._map)return!1;var t=this._map._pathViewport,e=this._radius,n=this._point;return n.x-e>t.max.x||n.y-e>t.max.y||n.x+e<t.min.x||n.y+e<t.min.y}}),f.circle=function(t,e,n){return new f.Circle(t,e,n)},f.CircleMarker=f.Circle.extend({options:{radius:10,weight:2},initialize:function(t,e){f.Circle.prototype.initialize.call(this,t,null,e),this._radius=this.options.radius},projectLatlngs:function(){this._point=this._map.latLngToLayerPoint(this._latlng)},_updateStyle:function(){f.Circle.prototype._updateStyle.call(this),this.setRadius(this.options.radius)},setLatLng:function(t){return f.Circle.prototype.setLatLng.call(this,t),this._popup&&this._popup._isOpen&&this._popup.setLatLng(t),this},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius}}),f.circleMarker=function(t,e){return new f.CircleMarker(t,e)},f.Polyline.include(f.Path.CANVAS?{_containsPoint:function(t,e){var n,i,o,r,s,a,l=this.options.weight/2;for(f.Browser.touch&&(l+=10),n=0,r=this._parts.length;n<r;n++)for(i=0,o=(s=(a=this._parts[n]).length)-1;i<s;o=i++)if((e||0!==i)&&f.LineUtil.pointToSegmentDistance(t,a[o],a[i])<=l)return!0;return!1}}:{}),f.Polygon.include(f.Path.CANVAS?{_containsPoint:function(t){var e,n,i,o,r,s,a,l,c=!1;if(f.Polyline.prototype._containsPoint.call(this,t,!0))return!0;for(o=0,a=this._parts.length;o<a;o++)for(r=0,s=(l=(e=this._parts[o]).length)-1;r<l;s=r++)n=e[r],i=e[s],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(c=!c);return c}}:{}),f.Circle.include(f.Path.CANVAS?{_drawPath:function(){var t=this._point;this._ctx.beginPath(),this._ctx.arc(t.x,t.y,this._radius,0,2*Math.PI,!1)},_containsPoint:function(t){var e=this._point,n=this.options.stroke?this.options.weight/2:0;return t.distanceTo(e)<=this._radius+n}}:{}),f.CircleMarker.include(f.Path.CANVAS?{_updateStyle:function(){f.Path.prototype._updateStyle.call(this)}}:{}),f.GeoJSON=f.FeatureGroup.extend({initialize:function(t,e){f.setOptions(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=f.Util.isArray(t)?t:t.features;if(o){for(e=0,n=o.length;e<n;e++)((i=o[e]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(o[e]);return this}var r=this.options;if(!r.filter||r.filter(t)){var s=f.GeoJSON.geometryToLayer(t,r.pointToLayer,r.coordsToLatLng,r);return s.feature=f.GeoJSON.asFeature(t),s.defaultOptions=s.options,this.resetStyle(s),r.onEachFeature&&r.onEachFeature(t,s),this.addLayer(s)}},resetStyle:function(t){var e=this.options.style;e&&(f.Util.extend(t.options,t.defaultOptions),this._setLayerStyle(t,e))},setStyle:function(e){this.eachLayer(function(t){this._setLayerStyle(t,e)},this)},_setLayerStyle:function(t,e){"function"==typeof e&&(e=e(t.feature)),t.setStyle&&t.setStyle(e)}}),f.extend(f.GeoJSON,{geometryToLayer:function(t,e,n,i){var o,r,s,a,l="Feature"===t.type?t.geometry:t,c=l.coordinates,u=[];switch(n=n||this.coordsToLatLng,l.type){case"Point":return o=n(c),e?e(t,o):new f.Marker(o);case"MultiPoint":for(s=0,a=c.length;s<a;s++)o=n(c[s]),u.push(e?e(t,o):new f.Marker(o));return new f.FeatureGroup(u);case"LineString":return r=this.coordsToLatLngs(c,0,n),new f.Polyline(r,i);case"Polygon":if(2===c.length&&!c[1].length)throw new Error("Invalid GeoJSON object.");return r=this.coordsToLatLngs(c,1,n),new f.Polygon(r,i);case"MultiLineString":return r=this.coordsToLatLngs(c,1,n),new f.MultiPolyline(r,i);case"MultiPolygon":return r=this.coordsToLatLngs(c,2,n),new f.MultiPolygon(r,i);case"GeometryCollection":for(s=0,a=l.geometries.length;s<a;s++)u.push(this.geometryToLayer({geometry:l.geometries[s],type:"Feature",properties:t.properties},e,n,i));return new f.FeatureGroup(u);default:throw new Error("Invalid GeoJSON object.")}},coordsToLatLng:function(t){return new f.LatLng(t[1],t[0],t[2])},coordsToLatLngs:function(t,e,n){var i,o,r,s=[];for(o=0,r=t.length;o<r;o++)i=e?this.coordsToLatLngs(t[o],e-1,n):(n||this.coordsToLatLng)(t[o]),s.push(i);return s},latLngToCoords:function(t){var e=[t.lng,t.lat];return t.alt!==a&&e.push(t.alt),e},latLngsToCoords:function(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(f.GeoJSON.latLngToCoords(t[n]));return e},getFeature:function(t,e){return t.feature?f.extend({},t.feature,{geometry:e}):f.GeoJSON.asFeature(e)},asFeature:function(t){return"Feature"===t.type?t:{type:"Feature",properties:{},geometry:t}}});var M={toGeoJSON:function(){return f.GeoJSON.getFeature(this,{type:"Point",coordinates:f.GeoJSON.latLngToCoords(this.getLatLng())})}};f.Marker.include(M),f.Circle.include(M),f.CircleMarker.include(M),f.Polyline.include({toGeoJSON:function(){return f.GeoJSON.getFeature(this,{type:"LineString",coordinates:f.GeoJSON.latLngsToCoords(this.getLatLngs())})}}),f.Polygon.include({toGeoJSON:function(){var t,e,n,i=[f.GeoJSON.latLngsToCoords(this.getLatLngs())];if(i[0].push(i[0][0]),this._holes)for(t=0,e=this._holes.length;t<e;t++)(n=f.GeoJSON.latLngsToCoords(this._holes[t])).push(n[0]),i.push(n);return f.GeoJSON.getFeature(this,{type:"Polygon",coordinates:i})}}),function(){function o(t){return function(){var e=[];return this.eachLayer(function(t){e.push(t.toGeoJSON().geometry.coordinates)}),f.GeoJSON.getFeature(this,{type:t,coordinates:e})}}f.MultiPolyline.include({toGeoJSON:o("MultiLineString")}),f.MultiPolygon.include({toGeoJSON:o("MultiPolygon")}),f.LayerGroup.include({toGeoJSON:function(){var e,t=this.feature&&this.feature.geometry,n=[];if(t&&"MultiPoint"===t.type)return o("MultiPoint").call(this);var i=t&&"GeometryCollection"===t.type;return this.eachLayer(function(t){t.toGeoJSON&&(e=t.toGeoJSON(),n.push(i?e.geometry:f.GeoJSON.asFeature(e)))}),i?f.GeoJSON.getFeature(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}})}(),f.geoJson=function(t,e){return new f.GeoJSON(t,e)},f.DomEvent={addListener:function(e,t,n,i){var o,r,s,a=f.stamp(n),l="_leaflet_"+t+a;return e[l]?this:(o=function(t){return n.call(i||e,t||f.DomEvent._getEvent())},f.Browser.pointer&&0===t.indexOf("touch")?this.addPointerListener(e,t,o,a):(f.Browser.touch&&"dblclick"===t&&this.addDoubleTapListener&&this.addDoubleTapListener(e,o,a),"addEventListener"in e?"mousewheel"===t?(e.addEventListener("DOMMouseScroll",o,!1),e.addEventListener(t,o,!1)):"mouseenter"===t||"mouseleave"===t?(r=o,s="mouseenter"===t?"mouseover":"mouseout",o=function(t){return f.DomEvent._checkMouse(e,t)?r(t):void 0},e.addEventListener(s,o,!1)):("click"===t&&f.Browser.android&&(r=o,o=function(t){return f.DomEvent._filterClick(t,r)}),e.addEventListener(t,o,!1)):"attachEvent"in e&&e.attachEvent("on"+t,o),e[l]=o,this))},removeListener:function(t,e,n){var i=f.stamp(n),o="_leaflet_"+e+i,r=t[o];return r&&(f.Browser.pointer&&0===e.indexOf("touch")?this.removePointerListener(t,e,i):f.Browser.touch&&"dblclick"===e&&this.removeDoubleTapListener?this.removeDoubleTapListener(t,i):"removeEventListener"in t?"mousewheel"===e?(t.removeEventListener("DOMMouseScroll",r,!1),t.removeEventListener(e,r,!1)):"mouseenter"===e||"mouseleave"===e?t.removeEventListener("mouseenter"===e?"mouseover":"mouseout",r,!1):t.removeEventListener(e,r,!1):"detachEvent"in t&&t.detachEvent("on"+e,r),t[o]=null),this},stopPropagation:function(t){return t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,f.DomEvent._skipped(t),this},disableScrollPropagation:function(t){var e=f.DomEvent.stopPropagation;return f.DomEvent.on(t,"mousewheel",e).on(t,"MozMousePixelScroll",e)},disableClickPropagation:function(t){for(var e=f.DomEvent.stopPropagation,n=f.Draggable.START.length-1;0<=n;n--)f.DomEvent.on(t,f.Draggable.START[n],e);return f.DomEvent.on(t,"click",f.DomEvent._fakeStop).on(t,"dblclick",e)},preventDefault:function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this},stop:function(t){return f.DomEvent.preventDefault(t).stopPropagation(t)},getMousePosition:function(t,e){if(!e)return new f.Point(t.clientX,t.clientY);var n=e.getBoundingClientRect();return new f.Point(t.clientX-n.left-e.clientLeft,t.clientY-n.top-e.clientTop)},getWheelDelta:function(t){var e=0;return t.wheelDelta&&(e=t.wheelDelta/120),t.detail&&(e=-t.detail/3),e},_skipEvents:{},_fakeStop:function(t){f.DomEvent._skipEvents[t.type]=!0},_skipped:function(t){var e=this._skipEvents[t.type];return this._skipEvents[t.type]=!1,e},_checkMouse:function(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t},_getEvent:function(){var t=s.event;if(!t)for(var e=arguments.callee.caller;e&&(!(t=e.arguments[0])||s.Event!==t.constructor);)e=e.caller;return t},_filterClick:function(t,e){var n=t.timeStamp||t.originalEvent.timeStamp,i=f.DomEvent._lastClick&&n-f.DomEvent._lastClick;return i&&100<i&&i<500||t.target._simulatedClick&&!t._simulated?void f.DomEvent.stop(t):(f.DomEvent._lastClick=n,e(t))}},f.DomEvent.on=f.DomEvent.addListener,f.DomEvent.off=f.DomEvent.removeListener,f.Draggable=f.Class.extend({includes:f.Mixin.Events,statics:{START:f.Browser.touch?["touchstart","mousedown"]:["mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},initialize:function(t,e){this._element=t,this._dragStartTarget=e||t},enable:function(){if(!this._enabled){for(var t=f.Draggable.START.length-1;0<=t;t--)f.DomEvent.on(this._dragStartTarget,f.Draggable.START[t],this._onDown,this);this._enabled=!0}},disable:function(){if(this._enabled){for(var t=f.Draggable.START.length-1;0<=t;t--)f.DomEvent.off(this._dragStartTarget,f.Draggable.START[t],this._onDown,this);this._enabled=!1,this._moved=!1}},_onDown:function(t){if(this._moved=!1,!t.shiftKey&&(1===t.which||1===t.button||t.touches)&&(f.DomEvent.stopPropagation(t),!f.Draggable._disabled&&(f.DomUtil.disableImageDrag(),f.DomUtil.disableTextSelection(),!this._moving))){var e=t.touches?t.touches[0]:t;this._startPoint=new f.Point(e.clientX,e.clientY),this._startPos=this._newPos=f.DomUtil.getPosition(this._element),f.DomEvent.on(p,f.Draggable.MOVE[t.type],this._onMove,this).on(p,f.Draggable.END[t.type],this._onUp,this)}},_onMove:function(t){if(t.touches&&1<t.touches.length)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new f.Point(e.clientX,e.clientY).subtract(this._startPoint);(n.x||n.y)&&(f.Browser.touch&&Math.abs(n.x)+Math.abs(n.y)<3||(f.DomEvent.preventDefault(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=f.DomUtil.getPosition(this._element).subtract(n),f.DomUtil.addClass(p.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,f.DomUtil.addClass(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,f.Util.cancelAnimFrame(this._animRequest),this._animRequest=f.Util.requestAnimFrame(this._updatePosition,this,!0,this._dragStartTarget)))}},_updatePosition:function(){this.fire("predrag"),f.DomUtil.setPosition(this._element,this._newPos),this.fire("drag")},_onUp:function(){for(var t in f.DomUtil.removeClass(p.body,"leaflet-dragging"),this._lastTarget&&(f.DomUtil.removeClass(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),f.Draggable.MOVE)f.DomEvent.off(p,f.Draggable.MOVE[t],this._onMove).off(p,f.Draggable.END[t],this._onUp);f.DomUtil.enableImageDrag(),f.DomUtil.enableTextSelection(),this._moved&&this._moving&&(f.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1}}),f.Handler=f.Class.extend({initialize:function(t){this._map=t},enable:function(){this._enabled||(this._enabled=!0,this.addHooks())},disable:function(){this._enabled&&(this._enabled=!1,this.removeHooks())},enabled:function(){return!!this._enabled}}),f.Map.mergeOptions({dragging:!0,inertia:!f.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,inertiaThreshold:f.Browser.touch?32:18,easeLinearity:.25,worldCopyJump:!1}),f.Map.Drag=f.Handler.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new f.Draggable(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDrag,this),t.on("viewreset",this._onViewReset,this),t.whenReady(this._onViewReset,this))}this._draggable.enable()},removeHooks:function(){this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){var t=this._map;t._panAnim&&t._panAnim.stop(),t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(){if(this._map.options.inertia){var t=this._lastTime=+new Date,e=this._lastPos=this._draggable._newPos;this._positions.push(e),this._times.push(t),200<t-this._times[0]&&(this._positions.shift(),this._times.shift())}this._map.fire("move").fire("drag")},_onViewReset:function(){var t=this._map.getSize()._divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.project([0,180]).x},_onPreDrag:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,r=(i+e+n)%t-e-n,s=Math.abs(o+n)<Math.abs(r+n)?o:r;this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,n=e.options,i=+new Date-this._lastTime,o=!n.inertia||i>n.inertiaThreshold||!this._positions[0];if(e.fire("dragend",t),o)e.fire("moveend");else{var r=this._lastPos.subtract(this._positions[0]),s=(this._lastTime+i-this._times[0])/1e3,a=n.easeLinearity,l=r.multiplyBy(a/s),c=l.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,c),h=l.multiplyBy(u/c),p=u/(n.inertiaDeceleration*a),d=h.multiplyBy(-p/2).round();d.x&&d.y?(d=e._limitOffset(d,e.options.maxBounds),f.Util.requestAnimFrame(function(){e.panBy(d,{duration:p,easeLinearity:a,noMoveStart:!0})})):e.fire("moveend")}}}),f.Map.addInitHook("addHandler","dragging",f.Map.Drag),f.Map.mergeOptions({doubleClickZoom:!0}),f.Map.DoubleClickZoom=f.Handler.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom()+(t.originalEvent.shiftKey?-1:1);"center"===e.options.doubleClickZoom?e.setZoom(n):e.setZoomAround(t.containerPoint,n)}}),f.Map.addInitHook("addHandler","doubleClickZoom",f.Map.DoubleClickZoom),f.Map.mergeOptions({scrollWheelZoom:!0}),f.Map.ScrollWheelZoom=f.Handler.extend({addHooks:function(){f.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this),f.DomEvent.on(this._map._container,"MozMousePixelScroll",f.DomEvent.preventDefault),this._delta=0},removeHooks:function(){f.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll),f.DomEvent.off(this._map._container,"MozMousePixelScroll",f.DomEvent.preventDefault)},_onWheelScroll:function(t){var e=f.DomEvent.getWheelDelta(t);this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(40-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(f.bind(this._performZoom,this),n),f.DomEvent.preventDefault(t),f.DomEvent.stopPropagation(t)},_performZoom:function(){var t=this._map,e=this._delta,n=t.getZoom();e=0<e?Math.ceil(e):Math.floor(e),e=Math.max(Math.min(e,4),-4),e=t._limitZoom(n+e)-n,this._delta=0,this._startTime=null,e&&("center"===t.options.scrollWheelZoom?t.setZoom(n+e):t.setZoomAround(this._lastMousePos,n+e))}}),f.Map.addInitHook("addHandler","scrollWheelZoom",f.Map.ScrollWheelZoom),f.extend(f.DomEvent,{_touchstart:f.Browser.msPointer?"MSPointerDown":f.Browser.pointer?"pointerdown":"touchstart",_touchend:f.Browser.msPointer?"MSPointerUp":f.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(t,r,e){function n(t){if(!(1<(f.Browser.pointer?(u.push(t.pointerId),u.length):t.touches.length))){var e=Date.now(),n=e-(s||e);a=t.touches?t.touches[0]:t,l=0<n&&n<=250,s=e}}function i(t){if(f.Browser.pointer){var e=u.indexOf(t.pointerId);if(-1===e)return;u.splice(e,1)}if(l){if(f.Browser.pointer){var n,i={};for(var o in a)n=a[o],i[o]="function"==typeof n?n.bind(a):n;a=i}a.type="dblclick",r(a),s=null}}var s,a,l=!1,o=this._touchstart,c=this._touchend,u=[];t["_leaflet_"+o+e]=n,t["_leaflet_"+c+e]=i;var h=f.Browser.pointer?p.documentElement:t;return t.addEventListener(o,n,!1),h.addEventListener(c,i,!1),f.Browser.pointer&&h.addEventListener(f.DomEvent.POINTER_CANCEL,i,!1),this},removeDoubleTapListener:function(t,e){var n="_leaflet_";return t.removeEventListener(this._touchstart,t[n+this._touchstart+e],!1),(f.Browser.pointer?p.documentElement:t).removeEventListener(this._touchend,t[n+this._touchend+e],!1),f.Browser.pointer&&p.documentElement.removeEventListener(f.DomEvent.POINTER_CANCEL,t[n+this._touchend+e],!1),this}}),f.extend(f.DomEvent,{POINTER_DOWN:f.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:f.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:f.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:f.Browser.msPointer?"MSPointerCancel":"pointercancel",_pointers:[],_pointerDocumentListener:!1,addPointerListener:function(t,e,n,i){switch(e){case"touchstart":return this.addPointerListenerStart(t,e,n,i);case"touchend":return this.addPointerListenerEnd(t,e,n,i);case"touchmove":return this.addPointerListenerMove(t,e,n,i);default:throw"Unknown touch event type"}},addPointerListenerStart:function(t,e,i,n){var o=this._pointers,r=function(t){"mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&f.DomEvent.preventDefault(t);for(var e=!1,n=0;n<o.length;n++)if(o[n].pointerId===t.pointerId){e=!0;break}e||o.push(t),t.touches=o.slice(),t.changedTouches=[t],i(t)};if(t["_leaflet_touchstart"+n]=r,t.addEventListener(this.POINTER_DOWN,r,!1),!this._pointerDocumentListener){var s=function(t){for(var e=0;e<o.length;e++)if(o[e].pointerId===t.pointerId){o.splice(e,1);break}};p.documentElement.addEventListener(this.POINTER_UP,s,!1),p.documentElement.addEventListener(this.POINTER_CANCEL,s,!1),this._pointerDocumentListener=!0}return this},addPointerListenerMove:function(t,e,n,i){function o(t){if(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons){for(var e=0;e<r.length;e++)if(r[e].pointerId===t.pointerId){r[e]=t;break}t.touches=r.slice(),t.changedTouches=[t],n(t)}}var r=this._pointers;return t["_leaflet_touchmove"+i]=o,t.addEventListener(this.POINTER_MOVE,o,!1),this},addPointerListenerEnd:function(t,e,n,i){var o=this._pointers,r=function(t){for(var e=0;e<o.length;e++)if(o[e].pointerId===t.pointerId){o.splice(e,1);break}t.touches=o.slice(),t.changedTouches=[t],n(t)};return t["_leaflet_touchend"+i]=r,t.addEventListener(this.POINTER_UP,r,!1),t.addEventListener(this.POINTER_CANCEL,r,!1),this},removePointerListener:function(t,e,n){var i=t["_leaflet_"+e+n];switch(e){case"touchstart":t.removeEventListener(this.POINTER_DOWN,i,!1);break;case"touchmove":t.removeEventListener(this.POINTER_MOVE,i,!1);break;case"touchend":t.removeEventListener(this.POINTER_UP,i,!1),t.removeEventListener(this.POINTER_CANCEL,i,!1)}return this}}),f.Map.mergeOptions({touchZoom:f.Browser.touch&&!f.Browser.android23,bounceAtZoomLimits:!0}),f.Map.TouchZoom=f.Handler.extend({addHooks:function(){f.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){f.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToLayerPoint(t.touches[0]),i=e.mouseEventToLayerPoint(t.touches[1]),o=e._getCenterLayerPoint();this._startCenter=n.add(i)._divideBy(2),this._startDist=n.distanceTo(i),this._moved=!1,this._zooming=!0,this._centerOffset=o.subtract(this._startCenter),e._panAnim&&e._panAnim.stop(),f.DomEvent.on(p,"touchmove",this._onTouchMove,this).on(p,"touchend",this._onTouchEnd,this),f.DomEvent.preventDefault(t)}},_onTouchMove:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&this._zooming){var n=e.mouseEventToLayerPoint(t.touches[0]),i=e.mouseEventToLayerPoint(t.touches[1]);this._scale=n.distanceTo(i)/this._startDist,this._delta=n._add(i)._divideBy(2)._subtract(this._startCenter),1!==this._scale&&(e.options.bounceAtZoomLimits||!(e.getZoom()===e.getMinZoom()&&this._scale<1||e.getZoom()===e.getMaxZoom()&&1<this._scale))&&(this._moved||(f.DomUtil.addClass(e._mapPane,"leaflet-touching"),e.fire("movestart").fire("zoomstart"),this._moved=!0),f.Util.cancelAnimFrame(this._animRequest),this._animRequest=f.Util.requestAnimFrame(this._updateOnMove,this,!0,this._map._container),f.DomEvent.preventDefault(t))}},_updateOnMove:function(){var t=this._map,e=this._getScaleOrigin(),n=t.layerPointToLatLng(e),i=t.getScaleZoom(this._scale);t._animateZoom(n,i,this._startCenter,this._scale,this._delta,!1,!0)},_onTouchEnd:function(){if(this._moved&&this._zooming){var t=this._map;this._zooming=!1,f.DomUtil.removeClass(t._mapPane,"leaflet-touching"),f.Util.cancelAnimFrame(this._animRequest),f.DomEvent.off(p,"touchmove",this._onTouchMove).off(p,"touchend",this._onTouchEnd);var e=this._getScaleOrigin(),n=t.layerPointToLatLng(e),i=t.getZoom(),o=t.getScaleZoom(this._scale)-i,r=0<o?Math.ceil(o):Math.floor(o),s=t._limitZoom(i+r),a=t.getZoomScale(s)/this._scale;t._animateZoom(n,s,e,a)}else this._zooming=!1},_getScaleOrigin:function(){var t=this._centerOffset.subtract(this._delta).divideBy(this._scale);return this._startCenter.add(t)}}),f.Map.addInitHook("addHandler","touchZoom",f.Map.TouchZoom),f.Map.mergeOptions({tap:!0,tapTolerance:15}),f.Map.Tap=f.Handler.extend({addHooks:function(){f.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){f.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(f.DomEvent.preventDefault(t),this._fireClick=!0,1<t.touches.length)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new f.Point(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&f.DomUtil.addClass(n,"leaflet-active"),this._holdTimeout=setTimeout(f.bind(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))},this),1e3),f.DomEvent.on(p,"touchmove",this._onMove,this).on(p,"touchend",this._onUp,this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),f.DomEvent.off(p,"touchmove",this._onMove,this).off(p,"touchend",this._onUp,this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&f.DomUtil.removeClass(n,"leaflet-active"),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new f.Point(e.clientX,e.clientY)},_simulateEvent:function(t,e){var n=p.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,s,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}}),f.Browser.touch&&!f.Browser.pointer&&f.Map.addInitHook("addHandler","tap",f.Map.Tap),f.Map.mergeOptions({boxZoom:!0}),f.Map.BoxZoom=f.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._moved=!1},addHooks:function(){f.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){f.DomEvent.off(this._container,"mousedown",this._onMouseDown),this._moved=!1},moved:function(){return this._moved},_onMouseDown:function(t){return this._moved=!1,!(!t.shiftKey||1!==t.which&&1!==t.button)&&(f.DomUtil.disableTextSelection(),f.DomUtil.disableImageDrag(),this._startLayerPoint=this._map.mouseEventToLayerPoint(t),void f.DomEvent.on(p,"mousemove",this._onMouseMove,this).on(p,"mouseup",this._onMouseUp,this).on(p,"keydown",this._onKeyDown,this))},_onMouseMove:function(t){this._moved||(this._box=f.DomUtil.create("div","leaflet-zoom-box",this._pane),f.DomUtil.setPosition(this._box,this._startLayerPoint),this._container.style.cursor="crosshair",this._map.fire("boxzoomstart"));var e=this._startLayerPoint,n=this._box,i=this._map.mouseEventToLayerPoint(t),o=i.subtract(e),r=new f.Point(Math.min(i.x,e.x),Math.min(i.y,e.y));f.DomUtil.setPosition(n,r),this._moved=!0,n.style.width=Math.max(0,Math.abs(o.x)-4)+"px",n.style.height=Math.max(0,Math.abs(o.y)-4)+"px"},_finish:function(){this._moved&&(this._pane.removeChild(this._box),this._container.style.cursor=""),f.DomUtil.enableTextSelection(),f.DomUtil.enableImageDrag(),f.DomEvent.off(p,"mousemove",this._onMouseMove).off(p,"mouseup",this._onMouseUp).off(p,"keydown",this._onKeyDown)},_onMouseUp:function(t){this._finish();var e=this._map,n=e.mouseEventToLayerPoint(t);if(!this._startLayerPoint.equals(n)){var i=new f.LatLngBounds(e.layerPointToLatLng(this._startLayerPoint),e.layerPointToLatLng(n));e.fitBounds(i),e.fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}}),f.Map.addInitHook("addHandler","boxZoom",f.Map.BoxZoom),f.Map.mergeOptions({keyboard:!0,keyboardPanOffset:80,keyboardZoomOffset:1}),f.Map.Keyboard=f.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,173]},initialize:function(t){this._map=t,this._setPanOffset(t.options.keyboardPanOffset),this._setZoomOffset(t.options.keyboardZoomOffset)},addHooks:function(){var t=this._map._container;-1===t.tabIndex&&(t.tabIndex="0"),f.DomEvent.on(t,"focus",this._onFocus,this).on(t,"blur",this._onBlur,this).on(t,"mousedown",this._onMouseDown,this),this._map.on("focus",this._addHooks,this).on("blur",this._removeHooks,this)},removeHooks:function(){this._removeHooks();var t=this._map._container;f.DomEvent.off(t,"focus",this._onFocus,this).off(t,"blur",this._onBlur,this).off(t,"mousedown",this._onMouseDown,this),this._map.off("focus",this._addHooks,this).off("blur",this._removeHooks,this)},_onMouseDown:function(){if(!this._focused){var t=p.body,e=p.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus(),s.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanOffset:function(t){var e,n,i=this._panKeys={},o=this.keyCodes;for(e=0,n=o.left.length;e<n;e++)i[o.left[e]]=[-1*t,0];for(e=0,n=o.right.length;e<n;e++)i[o.right[e]]=[t,0];for(e=0,n=o.down.length;e<n;e++)i[o.down[e]]=[0,t];for(e=0,n=o.up.length;e<n;e++)i[o.up[e]]=[0,-1*t]},_setZoomOffset:function(t){var e,n,i=this._zoomKeys={},o=this.keyCodes;for(e=0,n=o.zoomIn.length;e<n;e++)i[o.zoomIn[e]]=t;for(e=0,n=o.zoomOut.length;e<n;e++)i[o.zoomOut[e]]=-t},_addHooks:function(){f.DomEvent.on(p,"keydown",this._onKeyDown,this)},_removeHooks:function(){f.DomEvent.off(p,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){var e=t.keyCode,n=this._map;if(e in this._panKeys){if(n._panAnim&&n._panAnim._inProgress)return;n.panBy(this._panKeys[e]),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds)}else{if(!(e in this._zoomKeys))return;n.setZoom(n.getZoom()+this._zoomKeys[e])}f.DomEvent.stop(t)}}),f.Map.addInitHook("addHandler","keyboard",f.Map.Keyboard),f.Handler.MarkerDrag=f.Handler.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new f.Draggable(t,t)),this._draggable.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._draggable.enable(),f.DomUtil.addClass(this._marker._icon,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this),this._draggable.disable(),f.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(){var t=this._marker,e=t._shadow,n=f.DomUtil.getPosition(t._icon),i=t._map.layerPointToLatLng(n);e&&f.DomUtil.setPosition(e,n),t._latlng=i,t.fire("move",{latlng:i}).fire("drag")},_onDragEnd:function(t){this._marker.fire("moveend").fire("dragend",t)}}),f.Control=f.Class.extend({options:{position:"topright"},initialize:function(t){f.setOptions(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return f.DomUtil.addClass(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this},removeFrom:function(t){var e=this.getPosition();return t._controlCorners[e].removeChild(this._container),this._map=null,this.onRemove&&this.onRemove(t),this},_refocusOnMap:function(){this._map&&this._map.getContainer().focus()}}),f.control=function(t){return new f.Control(t)},f.Map.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.removeFrom(this),this},_initControlPos:function(){function t(t,e){var n=o+t+" "+o+e;i[t+e]=f.DomUtil.create("div",n,r)}var i=this._controlCorners={},o="leaflet-",r=this._controlContainer=f.DomUtil.create("div",o+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){this._container.removeChild(this._controlContainer)}}),f.Control.Zoom=f.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=f.DomUtil.create("div",e+" leaflet-bar");return this._map=t,this._zoomInButton=this._createButton(this.options.zoomInText,this.options.zoomInTitle,e+"-in",n,this._zoomIn,this),this._zoomOutButton=this._createButton(this.options.zoomOutText,this.options.zoomOutTitle,e+"-out",n,this._zoomOut,this),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},_zoomIn:function(t){this._map.zoomIn(t.shiftKey?3:1)},_zoomOut:function(t){this._map.zoomOut(t.shiftKey?3:1)},_createButton:function(t,e,n,i,o,r){var s=f.DomUtil.create("a",n,i);s.innerHTML=t,s.href="#",s.title=e;var a=f.DomEvent.stopPropagation;return f.DomEvent.on(s,"click",a).on(s,"mousedown",a).on(s,"dblclick",a).on(s,"click",f.DomEvent.preventDefault).on(s,"click",o,r).on(s,"click",this._refocusOnMap,r),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";f.DomUtil.removeClass(this._zoomInButton,e),f.DomUtil.removeClass(this._zoomOutButton,e),t._zoom===t.getMinZoom()&&f.DomUtil.addClass(this._zoomOutButton,e),t._zoom===t.getMaxZoom()&&f.DomUtil.addClass(this._zoomInButton,e)}}),f.Map.mergeOptions({zoomControl:!0}),f.Map.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new f.Control.Zoom,this.addControl(this.zoomControl))}),f.control.zoom=function(t){return new f.Control.Zoom(t)},f.Control.Attribution=f.Control.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){f.setOptions(this,t),this._attributions={}},onAdd:function(t){for(var e in this._container=f.DomUtil.create("div","leaflet-control-attribution"),f.DomEvent.disableClickPropagation(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return t.on("layeradd",this._onLayerAdd,this).on("layerremove",this._onLayerRemove,this),this._update(),this._container},onRemove:function(t){t.off("layeradd",this._onLayerAdd).off("layerremove",this._onLayerRemove)},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):void 0},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):void 0},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}},_onLayerAdd:function(t){t.layer.getAttribution&&this.addAttribution(t.layer.getAttribution())},_onLayerRemove:function(t){t.layer.getAttribution&&this.removeAttribution(t.layer.getAttribution())}}),f.Map.mergeOptions({attributionControl:!0}),f.Map.addInitHook(function(){this.options.attributionControl&&(this.attributionControl=(new f.Control.Attribution).addTo(this))}),f.control.attribution=function(t){return new f.Control.Attribution(t)},f.Control.Scale=f.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1},onAdd:function(t){this._map=t;var e="leaflet-control-scale",n=f.DomUtil.create("div",e),i=this.options;return this._addScales(i,e,n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=f.DomUtil.create("div",e+"-line",n)),t.imperial&&(this._iScale=f.DomUtil.create("div",e+"-line",n))},_update:function(){var t=this._map.getBounds(),e=t.getCenter().lat,n=6378137*Math.PI*Math.cos(e*Math.PI/180)*(t.getNorthEast().lng-t.getSouthWest().lng)/180,i=this._map.getSize(),o=this.options,r=0;0<i.x&&(r=n*(o.maxWidth/i.x)),this._updateScales(o,r)},_updateScales:function(t,e){t.metric&&e&&this._updateMetric(e),t.imperial&&e&&this._updateImperial(e)},_updateMetric:function(t){var e=this._getRoundNum(t);this._mScale.style.width=this._getScaleWidth(e/t)+"px",this._mScale.innerHTML=e<1e3?e+" m":e/1e3+" km"},_updateImperial:function(t){var e,n,i,o=3.2808399*t,r=this._iScale;r.innerHTML=5280<o?(e=o/5280,n=this._getRoundNum(e),r.style.width=this._getScaleWidth(n/e)+"px",n+" mi"):(i=this._getRoundNum(o),r.style.width=this._getScaleWidth(i/o)+"px",i+" ft")},_getScaleWidth:function(t){return Math.round(this.options.maxWidth*t)-10},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=10<=n?10:5<=n?5:3<=n?3:2<=n?2:1)}}),f.control.scale=function(t){return new f.Control.Scale(t)},f.Control.Layers=f.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0},initialize:function(t,e,n){for(var i in f.setOptions(this,n),this._layers={},this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){return this._initLayout(),this._update(),t.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container},onRemove:function(t){t.off("layeradd",this._onLayerChange,this).off("layerremove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._update(),this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._update(),this},removeLayer:function(t){var e=f.stamp(t);return delete this._layers[e],this._update(),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=f.DomUtil.create("div",t);e.setAttribute("aria-haspopup",!0),f.Browser.touch?f.DomEvent.on(e,"click",f.DomEvent.stopPropagation):f.DomEvent.disableClickPropagation(e).disableScrollPropagation(e);var n=this._form=f.DomUtil.create("form",t+"-list");if(this.options.collapsed){f.Browser.android||f.DomEvent.on(e,"mouseover",this._expand,this).on(e,"mouseout",this._collapse,this);var i=this._layersLink=f.DomUtil.create("a",t+"-toggle",e);i.href="#",i.title="Layers",f.Browser.touch?f.DomEvent.on(i,"click",f.DomEvent.stop).on(i,"click",this._expand,this):f.DomEvent.on(i,"focus",this._expand,this),f.DomEvent.on(n,"click",function(){setTimeout(f.bind(this._onInputClick,this),0)},this),this._map.on("click",this._collapse,this)}else this._expand();this._baseLayersList=f.DomUtil.create("div",t+"-base",n),this._separator=f.DomUtil.create("div",t+"-separator",n),this._overlaysList=f.DomUtil.create("div",t+"-overlays",n),e.appendChild(n)},_addLayer:function(t,e,n){var i=f.stamp(t);this._layers[i]={layer:t,name:e,overlay:n},this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex))},_update:function(){if(this._container){this._baseLayersList.innerHTML="",this._overlaysList.innerHTML="";var t,e,n=!1,i=!1;for(t in this._layers)e=this._layers[t],this._addItem(e),i=i||e.overlay,n=n||!e.overlay;this._separator.style.display=i&&n?"":"none"}},_onLayerChange:function(t){var e=this._layers[f.stamp(t.layer)];if(e){this._handlingClick||this._update();var n=e.overlay?"layeradd"===t.type?"overlayadd":"overlayremove":"layeradd"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)}},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"';e&&(n+=' checked="checked"'),n+="/>";var i=p.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=p.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=p.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers",i),e.layerId=f.stamp(t.layer),f.DomEvent.on(e,"click",this._onInputClick,this);var o=p.createElement("span");return o.innerHTML=" "+t.name,n.appendChild(e),n.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),n},_onInputClick:function(){var t,e,n,i=this._form.getElementsByTagName("input"),o=i.length;for(this._handlingClick=!0,t=0;t<o;t++)e=i[t],n=this._layers[e.layerId],e.checked&&!this._map.hasLayer(n.layer)?this._map.addLayer(n.layer):!e.checked&&this._map.hasLayer(n.layer)&&this._map.removeLayer(n.layer);this._handlingClick=!1,this._refocusOnMap()},_expand:function(){f.DomUtil.addClass(this._container,"leaflet-control-layers-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-layers-expanded","")}}),f.control.layers=function(t,e,n){return new f.Control.Layers(t,e,n)},f.PosAnimation=f.Class.extend({includes:f.Mixin.Events,run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._newPos=e,this.fire("start"),t.style[f.DomUtil.TRANSITION]="all "+(n||.25)+"s cubic-bezier(0,0,"+(i||.5)+",1)",f.DomEvent.on(t,f.DomUtil.TRANSITION_END,this._onTransitionEnd,this),f.DomUtil.setPosition(t,e),f.Util.falseFn(t.offsetWidth),this._stepTimer=setInterval(f.bind(this._onStep,this),50)},stop:function(){this._inProgress&&(f.DomUtil.setPosition(this._el,this._getPos()),this._onTransitionEnd(),f.Util.falseFn(this._el.offsetWidth))},_onStep:function(){var t=this._getPos();return t?(this._el._leaflet_pos=t,void this.fire("step")):void this._onTransitionEnd()},_transformRe:/([-+]?(?:\d*\.)?\d+)\D*, ([-+]?(?:\d*\.)?\d+)\D*\)/,_getPos:function(){var t,e,n,i=this._el,o=s.getComputedStyle(i);if(f.Browser.any3d){if(!(n=o[f.DomUtil.TRANSFORM].match(this._transformRe)))return;t=parseFloat(n[1]),e=parseFloat(n[2])}else t=parseFloat(o.left),e=parseFloat(o.top);return new f.Point(t,e,!0)},_onTransitionEnd:function(){f.DomEvent.off(this._el,f.DomUtil.TRANSITION_END,this._onTransitionEnd,this),this._inProgress&&(this._inProgress=!1,this._el.style[f.DomUtil.TRANSITION]="",this._el._leaflet_pos=this._newPos,clearInterval(this._stepTimer),this.fire("step").fire("end"))}}),f.Map.include({setView:function(t,e,n){if((e=e===a?this._zoom:this._limitZoom(e),t=this._limitCenter(f.latLng(t),e,this.options.maxBounds),n=n||{},this._panAnim&&this._panAnim.stop(),this._loaded&&!n.reset&&!0!==n)&&(n.animate!==a&&(n.zoom=f.extend({animate:n.animate},n.zoom),n.pan=f.extend({animate:n.animate},n.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan)))return clearTimeout(this._sizeTimer),this;return this._resetView(t,e),this},panBy:function(t,e){if(e=e||{},!(t=f.point(t).round()).x&&!t.y)return this;if(this._panAnim||(this._panAnim=new f.PosAnimation,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){f.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t);this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){f.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._floor();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n))&&(this.panBy(n,e),!0)}}),f.PosAnimation=f.DomUtil.TRANSITION?f.PosAnimation:f.PosAnimation.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=f.DomUtil.getPosition(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(),this._complete())},_animate:function(){this._animId=f.Util.requestAnimFrame(this._animate,this),this._step()},_step:function(){var t=+new Date-this._startTime,e=1e3*this._duration;t<e?this._runFrame(this._easeOut(t/e)):(this._runFrame(1),this._complete())},_runFrame:function(t){var e=this._startPos.add(this._offset.multiplyBy(t));f.DomUtil.setPosition(this._el,e),this.fire("step")},_complete:function(){f.Util.cancelAnimFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),f.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4}),f.DomUtil.TRANSITION&&f.Map.addInitHook(function(){this._zoomAnimated=this.options.zoomAnimation&&f.DomUtil.TRANSITION&&f.Browser.any3d&&!f.Browser.android23&&!f.Browser.mobileOpera,this._zoomAnimated&&f.DomEvent.on(this._mapPane,f.DomUtil.TRANSITION_END,this._catchTransitionEnd,this)}),f.Map.include(f.DomUtil.TRANSITION?{_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/i),r=this._getCenterLayerPoint()._add(o);return!(!0!==n.animate&&!this.getSize().contains(o))&&(this.fire("movestart").fire("zoomstart"),this._animateZoom(t,e,r,i,null,!0),!0)},_animateZoom:function(t,e,n,i,o,r,s){s||(this._animatingZoom=!0),f.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"),this._animateToCenter=t,this._animateToZoom=e,f.Draggable&&(f.Draggable._disabled=!0),f.Util.requestAnimFrame(function(){this.fire("zoomanim",{center:t,zoom:e,origin:n,scale:i,delta:o,backwards:r}),setTimeout(f.bind(this._onZoomTransitionEnd,this),250)},this)},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._animatingZoom=!1,f.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),f.Util.requestAnimFrame(function(){this._resetView(this._animateToCenter,this._animateToZoom,!0,!0),f.Draggable&&(f.Draggable._disabled=!1)},this))}}:{}),f.TileLayer.include({_animateZoom:function(t){this._animating||(this._animating=!0,this._prepareBgBuffer());var e=this._bgBuffer,n=f.DomUtil.TRANSFORM,i=t.delta?f.DomUtil.getTranslateString(t.delta):e.style[n],o=f.DomUtil.getScaleString(t.scale,t.origin);e.style[n]=t.backwards?o+" "+i:i+" "+o},_endZoomAnim:function(){var t=this._tileContainer,e=this._bgBuffer;t.style.visibility="",t.parentNode.appendChild(t),f.Util.falseFn(e.offsetWidth);var n=this._map.getZoom();(n>this.options.maxZoom||n<this.options.minZoom)&&this._clearBgBuffer(),this._animating=!1},_clearBgBuffer:function(){var t=this._map;!t||t._animatingZoom||t.touchZoom._zooming||(this._bgBuffer.innerHTML="",this._bgBuffer.style[f.DomUtil.TRANSFORM]="")},_prepareBgBuffer:function(){var t=this._tileContainer,e=this._bgBuffer,n=this._getLoadedTilesPercentage(e),i=this._getLoadedTilesPercentage(t);return e&&.5<n&&i<.5?(t.style.visibility="hidden",void this._stopLoadingImages(t)):(e.style.visibility="hidden",e.style[f.DomUtil.TRANSFORM]="",this._tileContainer=e,e=this._bgBuffer=t,this._stopLoadingImages(e),void clearTimeout(this._clearBgBufferTimer))},_getLoadedTilesPercentage:function(t){var e,n,i=t.getElementsByTagName("img"),o=0;for(e=0,n=i.length;e<n;e++)i[e].complete&&o++;return o/n},_stopLoadingImages:function(t){var e,n,i,o=Array.prototype.slice.call(t.getElementsByTagName("img"));for(e=0,n=o.length;e<n;e++)(i=o[e]).complete||(i.onload=f.Util.falseFn,i.onerror=f.Util.falseFn,i.src=f.Util.emptyImageUrl,i.parentNode.removeChild(i))}}),f.Map.include({_defaultLocateOptions:{watch:!1,setView:!1,maxZoom:1/0,timeout:1e4,maximumAge:0,enableHighAccuracy:!1},locate:function(t){if(t=this._locateOptions=f.extend(this._defaultLocateOptions,t),!navigator.geolocation)return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=f.bind(this._handleGeolocationResponse,this),n=f.bind(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,n=t.coords.longitude,i=new f.LatLng(e,n),o=180*t.coords.accuracy/40075017,r=o/Math.cos(f.LatLng.DEG_TO_RAD*e),s=f.latLngBounds([e-o,n-r],[e+o,n+r]),a=this._locateOptions;if(a.setView){var l=Math.min(this.getBoundsZoom(s),a.maxZoom);this.setView(i,l)}var c={latlng:i,bounds:s,timestamp:t.timestamp};for(var u in t.coords)"number"==typeof t.coords[u]&&(c[u]=t.coords[u]);this.fire("locationfound",c)}})}(window,document),e("ViewModels/DistanceLegendViewModel",["KnockoutES5","Core/loadView","leaflet"],function(n,i,s){"use strict";var g=Geoworld.defined,o=Geoworld.DeveloperError,t=Geoworld.EllipsoidGeodesic,_=Geoworld.Cartesian2,v=Geoworld.getTimestamp,r=Geoworld.EventHelper,a=function(t){if(!g(t)||!g(t.terria))throw new o("options.terria is required.");this.terria=t.terria,this._removeSubscription=void 0,this._lastLegendUpdate=void 0,this.eventHelper=new r,this.distanceLabel=void 0,this.barWidth=void 0,this.enableDistanceLegend=!g(t.enableDistanceLegend)||t.enableDistanceLegend,n.track(this,["distanceLabel","barWidth"]),this.eventHelper.add(this.terria.afterWidgetChanged,function(){g(this._removeSubscription)&&(this._removeSubscription(),this._removeSubscription=void 0)},this);var i=this;function e(){if(g(i.terria)){var t=i.terria.scene;i._removeSubscription=t.postRender.addEventListener(function(){!function(t,e){if(!t.enableDistanceLegend)return t.barWidth=void 0,t.distanceLabel=void 0;var n=v();if(n<t._lastLegendUpdate+250)return;t._lastLegendUpdate=n;var i=e.canvas.clientWidth,o=e.canvas.clientHeight,r=e.camera.getPickRay(new _(i/2|0,o-1)),s=e.camera.getPickRay(new _(1+i/2|0,o-1)),a=e.globe,l=a.pick(r,e),c=a.pick(s,e);if(!g(l)||!g(c))return t.barWidth=void 0,t.distanceLabel=void 0;var u=a.ellipsoid.cartesianToCartographic(l),h=a.ellipsoid.cartesianToCartographic(c);y.setEndPoints(u,h);for(var p,d=y.surfaceDistance,f=b.length-1;!g(p)&&0<=f;--f)b[f]/d<100&&(p=b[f]);if(g(p)){var m;m=1e3<=p?(p/1e3).toString()+" km":p.toString()+" m",t.barWidth=p/d|0,t.distanceLabel=m}else t.barWidth=void 0,t.distanceLabel=void 0}(this,t)},i)}else if(g(i.terria.leaflet)){var e=i.terria.leaflet.map,n=function(){l(i,e)};i._removeSubscription=function(){e.off("zoomend",n),e.off("moveend",n)},e.on("zoomend",n),e.on("moveend",n),l(i,e)}}e(),this.eventHelper.add(this.terria.afterWidgetChanged,function(){e()},this)};a.prototype.destroy=function(){this.eventHelper.removeAll()},a.prototype.show=function(t){var e;e=this.enableDistanceLegend?'<div class="distance-legend" data-bind="visible: distanceLabel && barWidth"><div class="distance-legend-label" data-bind="text: distanceLabel"></div><div class="distance-legend-scale-bar" data-bind="style: { width: barWidth + \'px\', left: (5 + (125 - barWidth) / 2) + \'px\' }"></div></div>':'<div class="distance-legend"  style="display: none;" data-bind="visible: distanceLabel && barWidth"><div class="distance-legend-label"  data-bind="text: distanceLabel"></div><div class="distance-legend-scale-bar"  data-bind="style: { width: barWidth + \'px\', left: (5 + (125 - barWidth) / 2) + \'px\' }"></div></div>',i(e,t,this)},a.create=function(t){var e=new a(t);return e.show(t.container),e};var y=new t,b=[1,2,3,5,10,20,30,50,100,200,300,500,1e3,2e3,3e3,5e3,1e4,2e4,3e4,5e4,1e5,2e5,3e5,5e5,1e6,2e6,3e6,5e6,1e7,2e7,3e7,5e7];function l(t,e){var n=e.getSize().y/2,i=e.containerPointToLatLng([0,n]).distanceTo(e.containerPointToLatLng([100,n])),o=s.control.scale()._getRoundNum(i),r=o<1e3?o+" m":o/1e3+" km";t.barWidth=o/i*100,t.distanceLabel=r}return a}),e("ViewModels/UserInterfaceControl",["KnockoutES5"],function(e){"use strict";var n=Geoworld.defined,t=Object.defineProperties,i=Geoworld.DeveloperError,o=function(t){if(!n(t))throw new i("terria is required");this._terria=t,this.name="Unnamed Control",this.text=void 0,this.svgIcon=void 0,this.svgHeight=void 0,this.svgWidth=void 0,this.cssClass=void 0,this.isActive=!1,e.track(this,["name","svgIcon","svgHeight","svgWidth","cssClass","isActive"])};return t(o.prototype,{terria:{get:function(){return this._terria}},hasText:{get:function(){return n(this.text)&&"string"==typeof this.text}}}),o.prototype.activate=function(){throw new i("activate must be implemented in the derived class.")},o}),e("ViewModels/NavigationControl",["ViewModels/UserInterfaceControl"],function(e){"use strict";var t=function(t){e.apply(this,arguments)};return t.prototype=Object.create(e.prototype),t}),e("SvgPaths/svgReset",[],function(){"use strict";return"M 7.5,0 C 3.375,0 0,3.375 0,7.5 0,11.625 3.375,15 7.5,15 c 3.46875,0 6.375,-2.4375 7.21875,-5.625 l -1.96875,0 C 12,11.53125 9.9375,13.125 7.5,13.125 4.40625,13.125 1.875,10.59375 1.875,7.5 1.875,4.40625 4.40625,1.875 7.5,1.875 c 1.59375,0 2.90625,0.65625 3.9375,1.6875 l -3,3 6.5625,0 L 15,0 12.75,2.25 C 11.4375,0.84375 9.5625,0 7.5,0 z"}),e("ViewModels/ResetViewNavigationControl",["ViewModels/NavigationControl","SvgPaths/svgReset"],function(e,n){"use strict";var i=Geoworld.defined,o=Geoworld.Camera,r=Geoworld.Rectangle,s=Geoworld.Cartographic,t=function(t){e.apply(this,arguments),this.name="Reset View",this.svgIcon=n,this.svgHeight=15,this.svgWidth=15,this.cssClass="navigation-control-icon-reset"};return(t.prototype=Object.create(e.prototype)).resetView=function(){var t=this.terria.scene;if(t.screenSpaceCameraController.enableInputs){this.isActive=!0;var e=t.camera;if(i(this.terria.trackedEntity)){var n=this.terria.trackedEntity;this.terria.trackedEntity=void 0,this.terria.trackedEntity=n}else if(this.terria.options.defaultResetView){if(this.terria.options.defaultResetView&&this.terria.options.defaultResetView instanceof s)e.flyTo({destination:t.globe.ellipsoid.cartographicToCartesian(this.terria.options.defaultResetView)});else if(this.terria.options.defaultResetView&&this.terria.options.defaultResetView instanceof r)try{r.validate(this.terria.options.defaultResetView),e.flyTo({destination:this.terria.options.defaultResetView})}catch(t){console.log("Cesium-navigation/ResetViewNavigationControl:   options.defaultResetView Cesium rectangle is  invalid!")}}else"function"==typeof e.flyHome?e.flyHome(1):e.flyTo({destination:o.DEFAULT_VIEW_RECTANGLE,duration:1});this.isActive=!1}},t.prototype.activate=function(){this.resetView()},t}),e("Core/Utils",[],function(){"use strict";var r=Geoworld.defined,t=Geoworld.Ray,s=Geoworld.Cartesian3,e=Geoworld.Cartographic,a=(Geoworld.ReferenceFrame,Geoworld.SceneMode),n={},l=new e,c=new t;return n.getCameraFocus=function(t,e,n){var i=t.scene,o=i.camera;if(i.mode!=a.MORPHING&&(r(n)||(n=new s),n=r(t.trackedEntity)?t.trackedEntity.position.getValue(t.clock.currentTime,n):(c.origin=o.positionWC,c.direction=o.directionWC,i.globe.pick(c,i,n)),r(n)))return i.mode==a.SCENE2D||i.mode==a.COLUMBUS_VIEW?(n=o.worldToCameraCoordinatesPoint(n,n),e&&(n=i.globe.ellipsoid.cartographicToCartesian(i.mapProjection.unproject(n,l),n))):e||(n=o.worldToCameraCoordinatesPoint(n,n)),n},n}),e("ViewModels/ZoomNavigationControl",["../ViewModels/NavigationControl","../Core/Utils"],function(n,u){"use strict";var h=Geoworld.defined,p=Geoworld.Ray,d=Geoworld.IntersectionTests,f=Geoworld.Cartesian3,m=Geoworld.SceneMode,t=function(t,e){n.apply(this,arguments),this.name="Zoom "+(e?"In":"Out"),this.text=e?"+":"-",this.cssClass="navigation-control-icon-zoom-"+(e?"in":"out"),this.relativeAmount=2,e&&(this.relativeAmount=1/this.relativeAmount)};t.prototype.relativeAmount=1,(t.prototype=Object.create(n.prototype)).activate=function(){this.zoom(this.relativeAmount)};var g=new f;return t.prototype.zoom=function(t){if(this.isActive=!0,h(this.terria)){var e=this.terria.scene,n=e.screenSpaceCameraController;if(!n.enableInputs||!n.enableZoom)return;var i,o=e.camera;switch(e.mode){case m.MORPHING:break;case m.SCENE2D:o.zoomIn(o.positionCartographic.height*(1-this.relativeAmount));break;default:var r;if(r=h(this.terria.trackedEntity)?new f:u.getCameraFocus(this.terria,!1),h(r))i={direction:o.direction,up:o.up};else{var s=new p(o.worldToCameraCoordinatesPoint(e.globe.ellipsoid.cartographicToCartesian(o.positionCartographic)),o.directionWC);r=d.grazingAltitudeLocation(s,e.globe.ellipsoid),i={heading:o.heading,pitch:o.pitch,roll:o.roll}}var a=f.subtract(o.position,r,g),l=f.multiplyByScalar(a,t,a),c=f.add(r,l,r);h(this.terria.trackedEntity)||e.mode==m.COLUMBUS_VIEW?o.position=c:o.flyTo({destination:c,orientation:i,duration:.5,convert:!1})}}this.isActive=!1},t}),e("SvgPaths/svgCompassOuterRing",[],function(){"use strict";return"m 66.5625,0 0,15.15625 3.71875,0 0,-10.40625 5.5,10.40625 4.375,0 0,-15.15625 -3.71875,0 0,10.40625 L 70.9375,0 66.5625,0 z M 72.5,20.21875 c -28.867432,0 -52.28125,23.407738 -52.28125,52.28125 0,28.87351 23.413818,52.3125 52.28125,52.3125 28.86743,0 52.28125,-23.43899 52.28125,-52.3125 0,-28.873512 -23.41382,-52.28125 -52.28125,-52.28125 z m 0,1.75 c 13.842515,0 26.368948,5.558092 35.5,14.5625 l -11.03125,11 0.625,0.625 11.03125,-11 c 8.9199,9.108762 14.4375,21.579143 14.4375,35.34375 0,13.764606 -5.5176,26.22729 -14.4375,35.34375 l -11.03125,-11 -0.625,0.625 11.03125,11 c -9.130866,9.01087 -21.658601,14.59375 -35.5,14.59375 -13.801622,0 -26.321058,-5.53481 -35.4375,-14.5 l 11.125,-11.09375 c 6.277989,6.12179 14.857796,9.90625 24.3125,9.90625 19.241896,0 34.875,-15.629154 34.875,-34.875 0,-19.245847 -15.633104,-34.84375 -34.875,-34.84375 -9.454704,0 -18.034511,3.760884 -24.3125,9.875 L 37.0625,36.4375 C 46.179178,27.478444 58.696991,21.96875 72.5,21.96875 z m -0.875,0.84375 0,13.9375 1.75,0 0,-13.9375 -1.75,0 z M 36.46875,37.0625 47.5625,48.15625 C 41.429794,54.436565 37.65625,63.027539 37.65625,72.5 c 0,9.472461 3.773544,18.055746 9.90625,24.34375 L 36.46875,107.9375 c -8.96721,-9.1247 -14.5,-21.624886 -14.5,-35.4375 0,-13.812615 5.53279,-26.320526 14.5,-35.4375 z M 72.5,39.40625 c 18.297686,0 33.125,14.791695 33.125,33.09375 0,18.302054 -14.827314,33.125 -33.125,33.125 -18.297687,0 -33.09375,-14.822946 -33.09375,-33.125 0,-18.302056 14.796063,-33.09375 33.09375,-33.09375 z M 22.84375,71.625 l 0,1.75 13.96875,0 0,-1.75 -13.96875,0 z m 85.5625,0 0,1.75 14,0 0,-1.75 -14,0 z M 71.75,108.25 l 0,13.9375 1.71875,0 0,-13.9375 -1.71875,0 z"}),e("SvgPaths/svgCompassGyro",[],function(){"use strict";return"m 72.71875,54.375 c -0.476702,0 -0.908208,0.245402 -1.21875,0.5625 -0.310542,0.317098 -0.551189,0.701933 -0.78125,1.1875 -0.172018,0.363062 -0.319101,0.791709 -0.46875,1.25 -6.91615,1.075544 -12.313231,6.656514 -13,13.625 -0.327516,0.117495 -0.661877,0.244642 -0.9375,0.375 -0.485434,0.22959 -0.901634,0.471239 -1.21875,0.78125 -0.317116,0.310011 -0.5625,0.742111 -0.5625,1.21875 l 0.03125,0 c 0,0.476639 0.245384,0.877489 0.5625,1.1875 0.317116,0.310011 0.702066,0.58291 1.1875,0.8125 0.35554,0.168155 0.771616,0.32165 1.21875,0.46875 1.370803,6.10004 6.420817,10.834127 12.71875,11.8125 0.146999,0.447079 0.30025,0.863113 0.46875,1.21875 0.230061,0.485567 0.470708,0.870402 0.78125,1.1875 0.310542,0.317098 0.742048,0.5625 1.21875,0.5625 0.476702,0 0.876958,-0.245402 1.1875,-0.5625 0.310542,-0.317098 0.582439,-0.701933 0.8125,-1.1875 0.172018,-0.363062 0.319101,-0.791709 0.46875,-1.25 6.249045,-1.017063 11.256351,-5.7184 12.625,-11.78125 0.447134,-0.1471 0.86321,-0.300595 1.21875,-0.46875 0.485434,-0.22959 0.901633,-0.502489 1.21875,-0.8125 0.317117,-0.310011 0.5625,-0.710861 0.5625,-1.1875 l -0.03125,0 c 0,-0.476639 -0.245383,-0.908739 -0.5625,-1.21875 C 89.901633,71.846239 89.516684,71.60459 89.03125,71.375 88.755626,71.244642 88.456123,71.117495 88.125,71 87.439949,64.078341 82.072807,58.503735 75.21875,57.375 c -0.15044,-0.461669 -0.326927,-0.884711 -0.5,-1.25 -0.230061,-0.485567 -0.501958,-0.870402 -0.8125,-1.1875 -0.310542,-0.317098 -0.710798,-0.5625 -1.1875,-0.5625 z m -0.0625,1.40625 c 0.03595,-0.01283 0.05968,0 0.0625,0 0.0056,0 0.04321,-0.02233 0.1875,0.125 0.144288,0.147334 0.34336,0.447188 0.53125,0.84375 0.06385,0.134761 0.123901,0.309578 0.1875,0.46875 -0.320353,-0.01957 -0.643524,-0.0625 -0.96875,-0.0625 -0.289073,0 -0.558569,0.04702 -0.84375,0.0625 C 71.8761,57.059578 71.936151,56.884761 72,56.75 c 0.18789,-0.396562 0.355712,-0.696416 0.5,-0.84375 0.07214,-0.07367 0.120304,-0.112167 0.15625,-0.125 z m 0,2.40625 c 0.448007,0 0.906196,0.05436 1.34375,0.09375 0.177011,0.592256 0.347655,1.271044 0.5,2.03125 0.475097,2.370753 0.807525,5.463852 0.9375,8.9375 -0.906869,-0.02852 -1.834463,-0.0625 -2.78125,-0.0625 -0.92298,0 -1.802327,0.03537 -2.6875,0.0625 0.138529,-3.473648 0.493653,-6.566747 0.96875,-8.9375 0.154684,-0.771878 0.320019,-1.463985 0.5,-2.0625 0.405568,-0.03377 0.804291,-0.0625 1.21875,-0.0625 z m -2.71875,0.28125 c -0.129732,0.498888 -0.259782,0.987558 -0.375,1.5625 -0.498513,2.487595 -0.838088,5.693299 -0.96875,9.25 -3.21363,0.15162 -6.119596,0.480068 -8.40625,0.9375 -0.682394,0.136509 -1.275579,0.279657 -1.84375,0.4375 0.799068,-6.135482 5.504716,-11.036454 11.59375,-12.1875 z M 75.5,58.5 c 6.043169,1.18408 10.705093,6.052712 11.5,12.15625 -0.569435,-0.155806 -1.200273,-0.302525 -1.875,-0.4375 -2.262525,-0.452605 -5.108535,-0.783809 -8.28125,-0.9375 -0.130662,-3.556701 -0.470237,-6.762405 -0.96875,-9.25 C 75.761959,59.467174 75.626981,58.990925 75.5,58.5 z m -2.84375,12.09375 c 0.959338,0 1.895843,0.03282 2.8125,0.0625 C 75.48165,71.267751 75.5,71.871028 75.5,72.5 c 0,1.228616 -0.01449,2.438313 -0.0625,3.59375 -0.897358,0.0284 -1.811972,0.0625 -2.75,0.0625 -0.927373,0 -1.831062,-0.03473 -2.71875,-0.0625 -0.05109,-1.155437 -0.0625,-2.365134 -0.0625,-3.59375 0,-0.628972 0.01741,-1.232249 0.03125,-1.84375 0.895269,-0.02827 1.783025,-0.0625 2.71875,-0.0625 z M 68.5625,70.6875 c -0.01243,0.60601 -0.03125,1.189946 -0.03125,1.8125 0,1.22431 0.01541,2.407837 0.0625,3.5625 -3.125243,-0.150329 -5.92077,-0.471558 -8.09375,-0.90625 -0.784983,-0.157031 -1.511491,-0.316471 -2.125,-0.5 -0.107878,-0.704096 -0.1875,-1.422089 -0.1875,-2.15625 0,-0.115714 0.02849,-0.228688 0.03125,-0.34375 0.643106,-0.20284 1.389577,-0.390377 2.25,-0.5625 2.166953,-0.433487 4.97905,-0.75541 8.09375,-0.90625 z m 8.3125,0.03125 c 3.075121,0.15271 5.824455,0.446046 7.96875,0.875 0.857478,0.171534 1.630962,0.360416 2.28125,0.5625 0.0027,0.114659 0,0.228443 0,0.34375 0,0.735827 -0.07914,1.450633 -0.1875,2.15625 -0.598568,0.180148 -1.29077,0.34562 -2.0625,0.5 -2.158064,0.431708 -4.932088,0.754666 -8.03125,0.90625 0.04709,-1.154663 0.0625,-2.33819 0.0625,-3.5625 0,-0.611824 -0.01924,-1.185379 -0.03125,-1.78125 z M 57.15625,72.5625 c 0.0023,0.572772 0.06082,1.131112 0.125,1.6875 -0.125327,-0.05123 -0.266577,-0.10497 -0.375,-0.15625 -0.396499,-0.187528 -0.665288,-0.387337 -0.8125,-0.53125 -0.147212,-0.143913 -0.15625,-0.182756 -0.15625,-0.1875 0,-0.0047 -0.02221,-0.07484 0.125,-0.21875 0.147212,-0.143913 0.447251,-0.312472 0.84375,-0.5 0.07123,-0.03369 0.171867,-0.06006 0.25,-0.09375 z m 31.03125,0 c 0.08201,0.03503 0.175941,0.05872 0.25,0.09375 0.396499,0.187528 0.665288,0.356087 0.8125,0.5 0.14725,0.14391 0.15625,0.21405 0.15625,0.21875 0,0.0047 -0.009,0.04359 -0.15625,0.1875 -0.147212,0.143913 -0.416001,0.343722 -0.8125,0.53125 -0.09755,0.04613 -0.233314,0.07889 -0.34375,0.125 0.06214,-0.546289 0.09144,-1.094215 0.09375,-1.65625 z m -29.5,3.625 c 0.479308,0.123125 0.983064,0.234089 1.53125,0.34375 2.301781,0.460458 5.229421,0.787224 8.46875,0.9375 0.167006,2.84339 0.46081,5.433176 0.875,7.5 0.115218,0.574942 0.245268,1.063612 0.375,1.5625 -5.463677,-1.028179 -9.833074,-5.091831 -11.25,-10.34375 z m 27.96875,0 C 85.247546,81.408945 80.919274,85.442932 75.5,86.5 c 0.126981,-0.490925 0.261959,-0.967174 0.375,-1.53125 0.41419,-2.066824 0.707994,-4.65661 0.875,-7.5 3.204493,-0.15162 6.088346,-0.480068 8.375,-0.9375 0.548186,-0.109661 1.051942,-0.220625 1.53125,-0.34375 z M 70.0625,77.53125 c 0.865391,0.02589 1.723666,0.03125 2.625,0.03125 0.912062,0 1.782843,-0.0048 2.65625,-0.03125 -0.165173,2.736408 -0.453252,5.207651 -0.84375,7.15625 -0.152345,0.760206 -0.322989,1.438994 -0.5,2.03125 -0.437447,0.03919 -0.895856,0.0625 -1.34375,0.0625 -0.414943,0 -0.812719,-0.02881 -1.21875,-0.0625 -0.177011,-0.592256 -0.347655,-1.271044 -0.5,-2.03125 -0.390498,-1.948599 -0.700644,-4.419842 -0.875,-7.15625 z m 1.75,10.28125 c 0.284911,0.01545 0.554954,0.03125 0.84375,0.03125 0.325029,0 0.648588,-0.01171 0.96875,-0.03125 -0.05999,0.148763 -0.127309,0.31046 -0.1875,0.4375 -0.18789,0.396562 -0.386962,0.696416 -0.53125,0.84375 -0.144288,0.147334 -0.181857,0.125 -0.1875,0.125 -0.0056,0 -0.07446,0.02233 -0.21875,-0.125 C 72.355712,88.946416 72.18789,88.646562 72,88.25 71.939809,88.12296 71.872486,87.961263 71.8125,87.8125 z"}),e("SvgPaths/svgCompassRotationMarker",[],function(){"use strict";return"M 72.46875,22.03125 C 59.505873,22.050338 46.521615,27.004287 36.6875,36.875 L 47.84375,47.96875 C 61.521556,34.240041 83.442603,34.227389 97.125,47.90625 l 11.125,-11.125 C 98.401629,26.935424 85.431627,22.012162 72.46875,22.03125 z"}),e("ViewModels/NavigationViewModel",["KnockoutES5","Core/loadView","ViewModels/ResetViewNavigationControl","ViewModels/ZoomNavigationControl","SvgPaths/svgCompassOuterRing","SvgPaths/svgCompassGyro","SvgPaths/svgCompassRotationMarker","Core/Utils"],function(i,n,o,r,s,a,l,d){"use strict";var f=Geoworld.defined,m=Geoworld.Math,p=Geoworld.getTimestamp,c=Geoworld.EventHelper,g=Geoworld.Transforms,_=Geoworld.SceneMode,v=Geoworld.Cartesian2,y=Geoworld.Cartesian3,b=Geoworld.Matrix4,u=Geoworld.BoundingSphere,h=Geoworld.HeadingPitchRange,w=function(t){this.terria=t.terria,this.eventHelper=new c,this.enableZoomControls=!f(t.enableZoomControls)||t.enableZoomControls,this.enableCompass=!f(t.enableCompass)||t.enableCompass,this.controls=t.controls,f(this.controls)||(this.controls=[new r(this.terria,!0),new o(this.terria),new r(this.terria,!1)]),this.svgCompassOuterRing=s,this.svgCompassGyro=a,this.svgCompassRotationMarker=l,this.showCompass=f(this.terria)&&this.enableCompass,this.heading=this.showCompass?this.terria.scene.camera.heading:0,this.isOrbiting=!1,this.orbitCursorAngle=0,this.orbitCursorOpacity=0,this.orbitLastTimestamp=0,this.orbitFrame=void 0,this.orbitIsLook=!1,this.orbitMouseMoveFunction=void 0,this.orbitMouseUpFunction=void 0,this.isRotating=!1,this.rotateInitialCursorAngle=void 0,this.rotateFrame=void 0,this.rotateIsLook=!1,this.rotateMouseMoveFunction=void 0,this.rotateMouseUpFunction=void 0,this._unsubcribeFromPostRender=void 0,i.track(this,["controls","showCompass","heading","isOrbiting","orbitCursorAngle","isRotating"]);var e=this;function n(){f(e.terria)?(e._unsubcribeFromPostRender&&(e._unsubcribeFromPostRender(),e._unsubcribeFromPostRender=void 0),e.showCompass=e.enableCompass,e._unsubcribeFromPostRender=e.terria.scene.postRender.addEventListener(function(){e.heading=e.terria.scene.camera.heading})):(e._unsubcribeFromPostRender&&(e._unsubcribeFromPostRender(),e._unsubcribeFromPostRender=void 0),e.showCompass=!1)}this.eventHelper.add(this.terria.afterWidgetChanged,n,this),n()};w.prototype.destroy=function(){this.eventHelper.removeAll()},w.prototype.show=function(t){var e;this.enableZoomControls&&this.enableCompass?e='<div class="compass" title="Drag outer ring: rotate view. Drag inner gyroscope: free orbit.Double-click: reset view.TIP: You can also free orbit by holding the CTRL key and dragging the map." data-bind="visible: showCompass, event: { mousedown: handleMouseDown, dblclick: handleDoubleClick }"><div class="compass-outer-ring-background"></div>'+" <div class=\"compass-rotation-marker\" data-bind=\"visible: isOrbiting, style: { transform: 'rotate(-' + orbitCursorAngle + 'rad)', '-webkit-transform': 'rotate(-' + orbitCursorAngle + 'rad)', opacity: orbitCursorOpacity }, geoworldSvgPath: { path: svgCompassRotationMarker, width: 145, height: 145 }\"></div> <div class=\"compass-outer-ring\" title=\"Click and drag to rotate the camera\" data-bind=\"style: { transform: 'rotate(-' + heading + 'rad)', '-webkit-transform': 'rotate(-' + heading + 'rad)' }, geoworldSvgPath: { path: svgCompassOuterRing, width: 145, height: 145 }\"></div> <div class=\"compass-gyro-background\"></div> <div class=\"compass-gyro\" data-bind=\"geoworldSvgPath: { path: svgCompassGyro, width: 145, height: 145 }, css: { 'compass-gyro-active': isOrbiting }\"></div></div><div class=\"navigation-controls\">\x3c!-- ko foreach: controls --\x3e<div data-bind=\"click: activate, attr: { title: $data.name }, css: $root.isLastControl($data) ? 'navigation-control-last' : 'navigation-control' \">   \x3c!-- ko if: $data.hasText --\x3e   <div data-bind=\"text: $data.text, css: $data.isActive ?  'navigation-control-icon-active ' + $data.cssClass : $data.cssClass\"></div>   \x3c!-- /ko --\x3e  \x3c!-- ko ifnot: $data.hasText --\x3e  <div data-bind=\"geoworldSvgPath: { path: $data.svgIcon, width: $data.svgWidth, height: $data.svgHeight }, css: $data.isActive ?  'navigation-control-icon-active ' + $data.cssClass : $data.cssClass\"></div>  \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e</div>":!this.enableZoomControls&&this.enableCompass?e='<div class="compass" title="Drag outer ring: rotate view. Drag inner gyroscope: free orbit.Double-click: reset view.TIP: You can also free orbit by holding the CTRL key and dragging the map." data-bind="visible: showCompass, event: { mousedown: handleMouseDown, dblclick: handleDoubleClick }"><div class="compass-outer-ring-background"></div> <div class="compass-rotation-marker" data-bind="visible: isOrbiting, style: { transform: \'rotate(-\' + orbitCursorAngle + \'rad)\', \'-webkit-transform\': \'rotate(-\' + orbitCursorAngle + \'rad)\', opacity: orbitCursorOpacity }, geoworldSvgPath: { path: svgCompassRotationMarker, width: 145, height: 145 }"></div> <div class="compass-outer-ring" title="Click and drag to rotate the camera" data-bind="style: { transform: \'rotate(-\' + heading + \'rad)\', \'-webkit-transform\': \'rotate(-\' + heading + \'rad)\' }, geoworldSvgPath: { path: svgCompassOuterRing, width: 145, height: 145 }"></div> <div class="compass-gyro-background"></div> <div class="compass-gyro" data-bind="geoworldSvgPath: { path: svgCompassGyro, width: 145, height: 145 }, css: { \'compass-gyro-active\': isOrbiting }"></div></div><div class="navigation-controls"  style="display: none;" >\x3c!-- ko foreach: controls --\x3e<div data-bind="click: activate, attr: { title: $data.name }, css: $root.isLastControl($data) ? \'navigation-control-last\' : \'navigation-control\' ">   \x3c!-- ko if: $data.hasText --\x3e   <div data-bind="text: $data.text, css: $data.isActive ?  \'navigation-control-icon-active \' + $data.cssClass : $data.cssClass"></div>   \x3c!-- /ko --\x3e  \x3c!-- ko ifnot: $data.hasText --\x3e  <div data-bind="geoworldSvgPath: { path: $data.svgIcon, width: $data.svgWidth, height: $data.svgHeight }, css: $data.isActive ?  \'navigation-control-icon-active \' + $data.cssClass : $data.cssClass"></div>  \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e</div>':this.enableZoomControls&&!this.enableCompass?e='<div class="compass"  style="display: none;" title="Drag outer ring: rotate view. Drag inner gyroscope: free orbit.Double-click: reset view.TIP: You can also free orbit by holding the CTRL key and dragging the map." data-bind="visible: showCompass, event: { mousedown: handleMouseDown, dblclick: handleDoubleClick }"><div class="compass-outer-ring-background"></div>'+" <div class=\"compass-rotation-marker\" data-bind=\"visible: isOrbiting, style: { transform: 'rotate(-' + orbitCursorAngle + 'rad)', '-webkit-transform': 'rotate(-' + orbitCursorAngle + 'rad)', opacity: orbitCursorOpacity }, geoworldSvgPath: { path: svgCompassRotationMarker, width: 145, height: 145 }\"></div> <div class=\"compass-outer-ring\" title=\"Click and drag to rotate the camera\" data-bind=\"style: { transform: 'rotate(-' + heading + 'rad)', '-webkit-transform': 'rotate(-' + heading + 'rad)' }, geoworldSvgPath: { path: svgCompassOuterRing, width: 145, height: 145 }\"></div> <div class=\"compass-gyro-background\"></div> <div class=\"compass-gyro\" data-bind=\"geoworldSvgPath: { path: svgCompassGyro, width: 145, height: 145 }, css: { 'compass-gyro-active': isOrbiting }\"></div></div><div class=\"navigation-controls\"    >\x3c!-- ko foreach: controls --\x3e<div data-bind=\"click: activate, attr: { title: $data.name }, css: $root.isLastControl($data) ? 'navigation-control-last' : 'navigation-control' \">   \x3c!-- ko if: $data.hasText --\x3e   <div data-bind=\"text: $data.text, css: $data.isActive ?  'navigation-control-icon-active ' + $data.cssClass : $data.cssClass\"></div>   \x3c!-- /ko --\x3e  \x3c!-- ko ifnot: $data.hasText --\x3e  <div data-bind=\"geoworldSvgPath: { path: $data.svgIcon, width: $data.svgWidth, height: $data.svgHeight }, css: $data.isActive ?  'navigation-control-icon-active ' + $data.cssClass : $data.cssClass\"></div>  \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e</div>":this.enableZoomControls||this.enableCompass||(e='<div class="compass"  style="display: none;" title="Drag outer ring: rotate view. Drag inner gyroscope: free orbit.Double-click: reset view.TIP: You can also free orbit by holding the CTRL key and dragging the map." data-bind="visible: showCompass, event: { mousedown: handleMouseDown, dblclick: handleDoubleClick }"><div class="compass-outer-ring-background"></div> <div class="compass-rotation-marker" data-bind="visible: isOrbiting, style: { transform: \'rotate(-\' + orbitCursorAngle + \'rad)\', \'-webkit-transform\': \'rotate(-\' + orbitCursorAngle + \'rad)\', opacity: orbitCursorOpacity }, geoworldSvgPath: { path: svgCompassRotationMarker, width: 145, height: 145 }"></div> <div class="compass-outer-ring" title="Click and drag to rotate the camera" data-bind="style: { transform: \'rotate(-\' + heading + \'rad)\', \'-webkit-transform\': \'rotate(-\' + heading + \'rad)\' }, geoworldSvgPath: { path: svgCompassOuterRing, width: 145, height: 145 }"></div> <div class="compass-gyro-background"></div> <div class="compass-gyro" data-bind="geoworldSvgPath: { path: svgCompassGyro, width: 145, height: 145 }, css: { \'compass-gyro-active\': isOrbiting }"></div></div><div class="navigation-controls"   style="display: none;" >\x3c!-- ko foreach: controls --\x3e<div data-bind="click: activate, attr: { title: $data.name }, css: $root.isLastControl($data) ? \'navigation-control-last\' : \'navigation-control\' ">   \x3c!-- ko if: $data.hasText --\x3e   <div data-bind="text: $data.text, css: $data.isActive ?  \'navigation-control-icon-active \' + $data.cssClass : $data.cssClass"></div>   \x3c!-- /ko --\x3e  \x3c!-- ko ifnot: $data.hasText --\x3e  <div data-bind="geoworldSvgPath: { path: $data.svgIcon, width: $data.svgWidth, height: $data.svgHeight }, css: $data.isActive ?  \'navigation-control-icon-active \' + $data.cssClass : $data.cssClass"></div>  \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e</div>'),n(e,t,this)},w.prototype.add=function(t){this.controls.push(t)},w.prototype.remove=function(t){this.controls.remove(t)},w.prototype.isLastControl=function(t){return t===this.controls[this.controls.length-1]};var k=new v;w.prototype.handleMouseDown=function(t,e){if(this.terria.scene.mode===_.MORPHING)return!0;var n=e.currentTarget,i=e.currentTarget.getBoundingClientRect(),o=i.width/2,r=new v((i.right-i.left)/2,(i.bottom-i.top)/2),s=new v(e.clientX-i.left,e.clientY-i.top),a=v.subtract(s,r,k),l=v.magnitude(a)/o;if(l<50/145)!function(c,r,t){var u=c.terria.scene,e=u.screenSpaceCameraController;if(u.mode==_.MORPHING||!e.enableInputs)return;switch(u.mode){case _.COLUMBUS_VIEW:if(e.enableLook)break;if(!e.enableTranslate||!e.enableTilt)return;break;case _.SCENE3D:if(e.enableLook)break;if(!e.enableTilt||!e.enableRotate)return;break;case _.SCENE2D:if(!e.enableTranslate)return}document.removeEventListener("mousemove",c.orbitMouseMoveFunction,!1),document.removeEventListener("mouseup",c.orbitMouseUpFunction,!1),f(c.orbitTickFunction)&&c.terria.clock.onTick.removeEventListener(c.orbitTickFunction);c.orbitMouseMoveFunction=void 0,c.orbitMouseUpFunction=void 0,c.orbitTickFunction=void 0,c.isOrbiting=!0,c.orbitLastTimestamp=p();var h=u.camera;if(f(c.terria.trackedEntity))c.orbitFrame=void 0,c.orbitIsLook=!1;else{var n=d.getCameraFocus(c.terria,!0,L);f(n)?(c.orbitFrame=g.eastNorthUpToFixedFrame(n,u.globe.ellipsoid,C),c.orbitIsLook=!1):(c.orbitFrame=g.eastNorthUpToFixedFrame(h.positionWC,u.globe.ellipsoid,C),c.orbitIsLook=!0)}function s(t,e){var n=Math.atan2(-t.y,t.x);c.orbitCursorAngle=m.zeroToTwoPi(n-m.PI_OVER_TWO);var i=v.magnitude(t),o=e/2,r=Math.min(i/o,1),s=.5*r*r+.5;c.orbitCursorOpacity=s}c.orbitTickFunction=function(t){var e,n=p(),i=n-c.orbitLastTimestamp,o=2.5*(c.orbitCursorOpacity-.5)/1e3,r=i*o,s=c.orbitCursorAngle+m.PI_OVER_TWO,a=Math.cos(s)*r,l=Math.sin(s)*r;f(c.orbitFrame)&&(e=b.clone(h.transform,x),h.lookAtTransform(c.orbitFrame)),u.mode==_.SCENE2D?h.move(new y(a,l,0),Math.max(u.canvas.clientWidth,u.canvas.clientHeight)/100*h.positionCartographic.height*r):c.orbitIsLook?(h.look(y.UNIT_Z,-a),h.look(h.right,-l)):(h.rotateLeft(a),h.rotateUp(l)),f(c.orbitFrame)&&h.lookAtTransform(e),c.orbitLastTimestamp=n},c.orbitMouseMoveFunction=function(t){var e=r.getBoundingClientRect(),n=new v((e.right-e.left)/2,(e.bottom-e.top)/2),i=new v(t.clientX-e.left,t.clientY-e.top),o=v.subtract(i,n,k);s(o,e.width)},c.orbitMouseUpFunction=function(t){c.isOrbiting=!1,document.removeEventListener("mousemove",c.orbitMouseMoveFunction,!1),document.removeEventListener("mouseup",c.orbitMouseUpFunction,!1),f(c.orbitTickFunction)&&c.terria.clock.onTick.removeEventListener(c.orbitTickFunction),c.orbitMouseMoveFunction=void 0,c.orbitMouseUpFunction=void 0,c.orbitTickFunction=void 0},document.addEventListener("mousemove",c.orbitMouseMoveFunction,!1),document.addEventListener("mouseup",c.orbitMouseUpFunction,!1),c.terria.clock.onTick.addEventListener(c.orbitTickFunction),s(t,r.getBoundingClientRect().width)}(this,n,a);else{if(!(l<1))return!0;!function(h,p,t){if(h.terria.options.enableCompassOuterRing=!f(h.terria.options.enableCompassOuterRing)||h.terria.options.enableCompassOuterRing,h.terria.options.enableCompassOuterRing){var e,n=h.terria.scene,i=n.camera,o=n.screenSpaceCameraController;if(n.mode==_.MORPHING||n.mode==_.SCENE2D||!o.enableInputs)return;if(!o.enableLook&&(n.mode==_.COLUMBUS_VIEW||n.mode==_.SCENE3D&&!o.enableRotate))return;if(document.removeEventListener("mousemove",h.rotateMouseMoveFunction,!1),document.removeEventListener("mouseup",h.rotateMouseUpFunction,!1),h.rotateMouseMoveFunction=void 0,h.rotateMouseUpFunction=void 0,h.isRotating=!0,h.rotateInitialCursorAngle=Math.atan2(-t.y,t.x),f(h.terria.trackedEntity))h.rotateFrame=void 0,h.rotateIsLook=!1;else{var r=d.getCameraFocus(h.terria,!0,L);f(r)&&(n.mode!=_.COLUMBUS_VIEW||o.enableLook||o.enableTranslate)?(h.rotateFrame=g.eastNorthUpToFixedFrame(r,n.globe.ellipsoid,C),h.rotateIsLook=!1):(h.rotateFrame=g.eastNorthUpToFixedFrame(i.positionWC,n.globe.ellipsoid,C),h.rotateIsLook=!0)}f(h.rotateFrame)&&(e=b.clone(i.transform,x),i.lookAtTransform(h.rotateFrame)),h.rotateInitialCameraAngle=-i.heading,f(h.rotateFrame)&&i.lookAtTransform(e),h.rotateMouseMoveFunction=function(t){var e,n=p.getBoundingClientRect(),i=new v((n.right-n.left)/2,(n.bottom-n.top)/2),o=new v(t.clientX-n.left,t.clientY-n.top),r=v.subtract(o,i,k),s=Math.atan2(-r.y,r.x),a=s-h.rotateInitialCursorAngle,l=m.zeroToTwoPi(h.rotateInitialCameraAngle-a),c=h.terria.scene.camera;f(h.rotateFrame)&&(e=b.clone(c.transform,x),c.lookAtTransform(h.rotateFrame));var u=-c.heading;c.rotateRight(l-u),f(h.rotateFrame)&&c.lookAtTransform(e)},h.rotateMouseUpFunction=function(t){h.isRotating=!1,document.removeEventListener("mousemove",h.rotateMouseMoveFunction,!1),document.removeEventListener("mouseup",h.rotateMouseUpFunction,!1),h.rotateMouseMoveFunction=void 0,h.rotateMouseUpFunction=void 0},document.addEventListener("mousemove",h.rotateMouseMoveFunction,!1),document.addEventListener("mouseup",h.rotateMouseUpFunction,!1)}}(this,n,a)}};var x=new b,C=new b,L=new y;return w.prototype.handleDoubleClick=function(t,e){var n=t.terria.scene,i=n.camera,o=n.screenSpaceCameraController;if(n.mode==_.MORPHING||!o.enableInputs)return!0;if(n.mode!=_.COLUMBUS_VIEW||o.enableTranslate){if(n.mode==_.SCENE3D||n.mode==_.COLUMBUS_VIEW){if(!o.enableLook)return;if(n.mode==_.SCENE3D&&!o.enableRotate)return}var r=d.getCameraFocus(t.terria,!0,L);if(f(r)){var s=n.globe.ellipsoid.cartographicToCartesian(i.positionCartographic,new y),a=n.globe.ellipsoid.geodeticSurfaceNormal(r),l=new u(r,0);i.flyToBoundingSphere(l,{offset:new h(0,m.PI_OVER_TWO-y.angleBetween(a,i.directionWC),y.distance(s,r)),duration:1.5})}else this.controls[1].resetView()}},w.create=function(t){var e=new w(t);return e.show(t.container),e},w}),e("GeoworldNavigation",["KnockoutES5","Core/registerKnockoutBindings","ViewModels/DistanceLegendViewModel","ViewModels/NavigationViewModel"],function(t,o,r,s){"use strict";var a=Geoworld.defined,l=(Object.defineProperties,Geoworld.Event),e=function(t){(function(t,e){if(!a(t))throw new DeveloperError("MapWidget or Viewer is required.");var n=a(t.mapWidget)?t.mapWidget:t,i=document.createElement("div");i.className="map-widget-GeoworldNavigationContainer",n.container.appendChild(i),this.terria=t,this.terria.options=a(e)?e:{},this.terria.afterWidgetChanged=new l,this.terria.beforeWidgetChanged=new l,this.container=i,o(),(!a(this.terria.options.enableDistanceLegend)||this.terria.options.enableDistanceLegend)&&(this.distanceLegendDiv=document.createElement("div"),i.appendChild(this.distanceLegendDiv),this.distanceLegendDiv.setAttribute("id","distanceLegendDiv"),this.distanceLegendViewModel=r.create({container:this.distanceLegendDiv,terria:this.terria,mapElement:i,enableDistanceLegend:!0}));a(this.terria.options.enableZoomControls)&&!this.terria.options.enableZoomControls||a(this.terria.options.enableCompass)&&!this.terria.options.enableCompass?!a(this.terria.options.enableZoomControls)||this.terria.options.enableZoomControls||a(this.terria.options.enableCompass)&&!this.terria.options.enableCompass?a(this.terria.options.enableZoomControls)&&!this.terria.options.enableZoomControls||!a(this.terria.options.enableCompass)||this.terria.options.enableCompass?a(this.terria.options.enableZoomControls)&&!this.terria.options.enableZoomControls&&a(this.terria.options.enableCompass)&&this.terria.options.enableCompass:(this.navigationDiv=document.createElement("div"),this.navigationDiv.setAttribute("id","navigationDiv"),i.appendChild(this.navigationDiv),this.navigationViewModel=s.create({container:this.navigationDiv,terria:this.terria,enableZoomControls:!0,enableCompass:!1})):(this.navigationDiv=document.createElement("div"),this.navigationDiv.setAttribute("id","navigationDiv"),i.appendChild(this.navigationDiv),this.navigationViewModel=s.create({container:this.navigationDiv,terria:this.terria,enableZoomControls:!1,enableCompass:!0})):(this.navigationDiv=document.createElement("div"),this.navigationDiv.setAttribute("id","navigationDiv"),i.appendChild(this.navigationDiv),this.navigationViewModel=s.create({container:this.navigationDiv,terria:this.terria,enableZoomControls:!0,enableCompass:!0}))}).apply(this,arguments),this._onDestroyListeners=[]};return e.prototype.distanceLegendViewModel=void 0,e.prototype.navigationViewModel=void 0,e.prototype.navigationDiv=void 0,e.prototype.distanceLegendDiv=void 0,e.prototype.terria=void 0,e.prototype.container=void 0,e.prototype._onDestroyListeners=void 0,e.prototype.destroy=function(){a(this.navigationViewModel)&&this.navigationViewModel.destroy(),a(this.distanceLegendViewModel)&&this.distanceLegendViewModel.destroy(),a(this.navigationDiv)&&this.navigationDiv.parentNode.removeChild(this.navigationDiv),delete this.navigationDiv,a(this.distanceLegendDiv)&&this.distanceLegendDiv.parentNode.removeChild(this.distanceLegendDiv),delete this.distanceLegendDiv,a(this.container)&&this.container.parentNode.removeChild(this.container),delete this.container;for(var t=0;t<this._onDestroyListeners.length;t++)this._onDestroyListeners[t]()},e.prototype.addOnDestroyListener=function(t){"function"==typeof t&&this._onDestroyListeners.push(t)},e}),e("dummy/require-less/less/dummy",[],function(){}),e("viewerGeoworldNavigationMixin",["GeoworldNavigation","dummy/require-less/less/dummy"],function(r){"use strict";var s=Geoworld.defined,a=Object.defineProperties,i=Geoworld.DeveloperError;function t(t,e){if(!s(t))throw new i("viewer is required.");var n;o(t,e).addOnDestroyListener((n=t,function(){delete n.geoworldNavigation})),a(t,{geoworldNavigation:{configurable:!0,get:function(){return t.mapWidget.geoworldNavigation}}})}t.mixinWidget=function(t,e){return o.apply(void 0,arguments)};var o=function(t,e){var n,i=new r(t,e),o=s(t.mapWidget)?t.mapWidget:t;return a(o,{geoworldNavigation:{configurable:!0,get:function(){return i}}}),i.addOnDestroyListener((n=o,function(){delete n.geoworldNavigation})),i};return t}),VIa=".full-window{position:absolute;top:0;left:0;right:0;bottom:0;margin:0;overflow:hidden;padding:0;-webkit-transition:left .25s ease-out;-moz-transition:left .25s ease-out;-ms-transition:left .25s ease-out;-o-transition:left .25s ease-out;transition:left .25s ease-out}.transparent-to-input{pointer-events:none}.opaque-to-input{pointer-events:auto}.clickable{cursor:pointer}.markdown a:hover,.markdown u,a:hover{text-decoration:underline}.modal,.modal-background{top:0;left:0;bottom:0;right:0}.modal-background{pointer-events:auto;background-color:rgba(0,0,0,.5);z-index:1000;position:fixed}.modal{position:absolute;margin:auto;background-color:#2f353c;max-height:100%;max-width:100%;font-family:'Roboto',sans-serif;color:#fff}.modal-header{background-color:rgba(0,0,0,.2);border-bottom:1px solid rgba(100,100,100,.6);font-size:15px;line-height:40px;margin:0}.modal-header h1{font-size:15px;color:#fff;margin-left:15px}.modal-content{margin-left:15px;margin-right:15px;margin-bottom:15px;padding-top:15px;overflow:auto}.modal-close-button{position:absolute;right:15px;cursor:pointer;font-size:18px;color:#fff}#ui{z-index:2100}@media print{.full-window{position:initial}}.markdown img{max-width:100%}.markdown svg{max-height:100%}.markdown fieldset,.markdown input,.markdown select,.markdown textarea{font-family:inherit;font-size:1rem;box-sizing:border-box;margin-top:0;margin-bottom:0}.markdown label{vertical-align:middle}.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6{font-family:inherit;font-weight:700;line-height:1.25;margin-top:1em;margin-bottom:.5em}.markdown h1{font-size:2rem}.markdown h2{font-size:1.5rem}.markdown h3{font-size:1.25rem}.markdown h4{font-size:1rem}.markdown h5{font-size:.875rem}.markdown h6{font-size:.75rem}.markdown dl,.markdown ol,.markdown p,.markdown ul{margin-top:0;margin-bottom:1rem}.markdown strong{font-weight:700}.markdown em{font-style:italic}.markdown small{font-size:80%}.markdown mark{color:#000;background:#ff0}.markdown s{text-decoration:line-through}.markdown ol{list-style:decimal inside}.markdown ul{list-style:disc inside}.markdown code,.markdown pre,.markdown samp{font-family:monospace;font-size:inherit}.markdown pre{margin-top:0;margin-bottom:1rem;overflow-x:scroll}.markdown a{color:#68adfe;text-decoration:none}.markdown code,.markdown pre{background-color:transparent;border-radius:3px}.markdown hr{border:0;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:rgba(0,0,0,.125)}.markdown .left-align{text-align:left}.markdown .center{text-align:center}.markdown .right-align{text-align:right}.markdown .justify{text-align:justify}.markdown .truncate{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.markdown ol.upper-roman{list-style-type:upper-roman}.markdown ol.lower-alpha{list-style-type:lower-alpha}.markdown ul.circle{list-style-type:circle}.markdown ul.square{list-style-type:square}.markdown .list-reset{list-style:none;padding-left:0}.floating,.floating-horizontal,.floating-vertical{pointer-events:auto;position:absolute;border-radius:15px;background-color:rgba(47,53,60,.8)}.floating-horizontal{padding-left:5px;padding-right:5px}.floating-vertical{padding-top:5px;padding-bottom:5px}@media print{.floating{display:none}}.distance-legend{pointer-events:auto;position:absolute;border-radius:15px;background-color:rgba(47,53,60,.8);padding-left:5px;padding-right:5px;right:25px;bottom:30px;height:30px;width:125px;border:1px solid rgba(255,255,255,.1);box-sizing:content-box}.distance-legend-label{display:inline-block;font-family:'Roboto',sans-serif;font-size:14px;font-weight:lighter;line-height:30px;color:#fff;width:125px;text-align:center}.distance-legend-scale-bar{border-left:1px solid #fff;border-right:1px solid #fff;border-bottom:1px solid #fff;position:absolute;height:10px;top:15px}@media print{.distance-legend{display:none}}@media screen and (max-width:700px),screen and (max-height:420px){.distance-legend{display:none}}.navigation-controls{position:absolute;right:30px;top:210px;width:30px;border:1px solid rgba(255,255,255,.1);font-weight:300;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.navigation-control{cursor:pointer;border-bottom:1px solid #555}.naviagation-control:active{color:#fff}.navigation-control-last{cursor:pointer;border-bottom:0}.navigation-control-icon-zoom-in{padding-bottom:4px}.navigation-control-icon-zoom-in,.navigation-control-icon-zoom-out{position:relative;text-align:center;font-size:20px;color:#fff}.navigation-control-icon-reset{position:relative;left:10px;width:10px;height:10px;fill:rgba(255,255,255,.8);padding-top:6px;padding-bottom:6px;box-sizing:content-box}.compass,.compass-outer-ring{position:absolute;width:95px;height:95px}.compass{pointer-events:auto;right:0;overflow:hidden;top:100px}.compass-outer-ring{top:0;fill:rgba(255,255,255,.5)}.compass-outer-ring-background{position:absolute;top:14px;left:14px;width:44px;height:44px;border-radius:44px;border:12px solid rgba(47,53,60,.8);box-sizing:content-box}.compass-gyro{pointer-events:none;position:absolute;top:0;width:95px;height:95px;fill:#ccc}.compass-gyro-active,.compass-gyro-background:hover+.compass-gyro{fill:#68adfe}.compass-gyro-background{position:absolute;top:30px;left:30px;width:33px;height:33px;border-radius:33px;background-color:rgba(47,53,60,.8);border:1px solid rgba(255,255,255,.2);box-sizing:content-box}.compass-rotation-marker{position:absolute;top:0;width:95px;height:95px;fill:#68adfe}@media screen and (max-width:700px),screen and (max-height:420px){.compass,.navigation-controls{display:none}}@media print{.compass,.navigation-controls{display:none}}",WIa=document,XIa="appendChild",YIa="styleSheet",(ZIa=WIa.createElement("style")).type="text/css",WIa.getElementsByTagName("head")[0][XIa](ZIa),ZIa[YIa]?ZIa[YIa].cssText=VIa:ZIa[XIa](WIa.createTextNode(VIa)),d("viewerGeoworldNavigationMixin")});