PageSourceSearch

https://nlp-compromise.github.io/build/bundle.js

js nlp-compromise.github.io collected 2026-10-03 09:41:21 UTC 378,985 bytes, 1 lines download raw bytes

1var app=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function o(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let a,s,l;function c(e,t,n,r){if(e){const o=u(e,t,n,r);return e[0](o)}}function u(e,t,n,r){return e[1]&&r?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](r(t))):n.ctx}function d(e,t,n,r){if(e[2]&&r){const o=e[2](r(n));if(void 0===t.dirty)return o;if("object"==typeof o){const e=[],n=Math.max(t.dirty.length,o.length);for(let r=0;r<n;r+=1)e[r]=t.dirty[r]|o[r];return e}return t.dirty|o}return t.dirty}function f(e,t,n,r,o,i){if(o){const a=u(t,n,r,i);e.p(a,o)}}function h(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}function p(e,t){e.appendChild(t)}function m(e,t,n){e.insertBefore(t,n||null)}function g(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function y(e){return document.createElement(e)}function b(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function w(e){return document.createTextNode(e)}function k(){return w(" ")}function x(){return w("")}function $(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function C(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function S(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function M(e,t){e.value=null==t?"":t}function L(e,t,n,r){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function T(){if(void 0===s){s=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){s=!0}}return s}function O(e,t,n){e.classList[n?"add":"remove"](t)}function z(e){l=e}function A(e){(function(){if(!l)throw new Error("Function called outside component initialization");return l})().$$.on_mount.push(e)}const D=[],N=[],E=[],j=[],_=Promise.resolve();let H=!1;function P(e){E.push(e)}const I=new Set;let B=0;function W(){const e=l;do{for(;B<D.length;){const e=D[B];B++,z(e),F(e.$$)}for(z(null),D.length=0,B=0;N.length;)N.pop()();for(let e=0;e<E.length;e+=1){const t=E[e];I.has(t)||(I.add(t),t())}E.length=0}while(D.length);for(;j.length;)j.pop()();H=!1,I.clear(),z(e)}function F(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(P)}}const R=new Set;let q;function G(){q={r:0,c:[],p:q}}function U(){q.r||r(q.c),q=q.p}function Y(e,t){e&&e.i&&(R.delete(e),e.i(t))}function K(e,t,n,r){if(e&&e.o){if(R.has(e))return;R.add(e),q.c.push((()=>{R.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}else r&&r()}function V(e){e&&e.c()}function Z(e,n,i,a){const{fragment:s,after_update:l}=e.$$;s&&s.m(n,i),a||P((()=>{const n=e.$$.on_mount.map(t).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(...n):r(n),e.$$.on_mount=[]})),l.forEach(P)}function X(e,t){const n=e.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Q(e,t){-1===e.$$.dirty[0]&&(D.push(e),H||(H=!0,_.then(W)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function J(t,o,i,a,s,c,u,d=[-1]){const f=l;z(t);const h=t.$$={fragment:null,ctx:[],props:c,update:e,not_equal:s,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(o.context||(f?f.$$.context:[])),callbacks:n(),dirty:d,skip_bound:!1,root:o.target||f.$$.root};u&&u(h.root);let p=!1;if(h.ctx=i?i(t,o.props||{},((e,n,...r)=>{const o=r.length?r[0]:n;return h.ctx&&s(h.ctx[e],h.ctx[e]=o)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](o),p&&Q(t,e)),n})):[],h.update(),p=!0,r(h.before_update),h.fragment=!!a&&a(h.ctx),o.target){if(o.hydrate){const e=function(e){return Array.from(e.childNodes)}(o.target);h.fragment&&h.fragment.l(e),e.forEach(g)}else h.fragment&&h.fragment.c();o.intro&&Y(t.$$.fragment),Z(t,o.target,o.anchor,o.customElement),W()}z(f)}class ee{$destroy(){X(this,1),this.$destroy=e}$on(t,n){if(!o(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}var te={blue:"#6699cc",green:"#6accb2",yellow:"#e1e6b3",red:"#cc7066",pink:"#F2C0BB",brown:"#705E5C",orange:"#cc8a66",purple:"#d8b3e6",navy:"#335799",olive:"#7f9c6c",fuscia:"#735873",beige:"#e6d7b3",slate:"#8C8C88",suede:"#9c896c",burnt:"#603a39",sea:"#50617A",sky:"#2D85A8",night:"#303b50",rouge:"#914045",grey:"#838B91",mud:"#C4ABAB",royal:"#275291",cherry:"#cc6966",tulip:"#e6b3bc",rose:"#D68881",fire:"#AB5850",greyblue:"#72697D",greygreen:"#8BA3A2",greypurple:"#978BA3",burn:"#6D5685",slategrey:"#bfb0b3",light:"#a3a5a5",lighter:"#d7d5d2",fudge:"#4d4d4d",lightgrey:"#949a9e",white:"#fbfbfb",dimgrey:"#606c74",softblack:"#463D4F",dark:"#443d3d",black:"#333333"};function ne(e){let t,n,r,o,i,a,s;const l=e[3].default,u=c(l,e,e[2],null);return{c(){t=y("div"),n=y("div"),r=k(),o=y("div"),u&&u.c(),i=k(),a=y("div"),C(n,"class","side svelte-1qs1965"),C(o,"class","container svelte-1qs1965"),L(o,"margin-bottom",e[0]),C(a,"class","side svelte-1qs1965"),C(t,"class","row svelte-1qs1965")},m(e,l){m(e,t,l),p(t,n),p(t,r),p(t,o),u&&u.m(o,null),p(t,i),p(t,a),s=!0},p(e,[t]){u&&u.p&&(!s||4&t)&&f(u,l,e,e[2],s?d(l,e[2],t,null):h(e[2]),null),(!s||1&t)&&L(o,"margin-bottom",e[0])},i(e){s||(Y(u,e),s=!0)},o(e){K(u,e),s=!1},d(e){e&&g(t),u&&u.d(e)}}}function re(e,t,n){let{$$slots:r={},$$scope:o}=t,{color:i=null}=t;i=te[i]||i;let{bottom:a="140px"}=t;return e.$$set=e=>{"color"in e&&n(1,i=e.color),"bottom"in e&&n(0,a=e.bottom),"$$scope"in e&&n(2,o=e.$$scope)},[a,i,o,r]}class oe extends ee{constructor(e){super(),J(this,e,re,ne,i,{color:1,bottom:0})}}function ie(e){let t;return{c(){t=y("div"),C(t,"class","line svelte-1ah7rcb"),L(t,"background-color",e[0])},m(e,n){m(e,t,n)},p(e,n){1&n&&L(t,"background-color",e[0])},d(e){e&&g(t)}}}function ae(e){let t,n,r,o,i,a,s=e[0]&&ie(e);const l=e[3].default,u=c(l,e,e[2],null);return{c(){t=y("div"),n=y("div"),s&&s.c(),r=k(),u&&u.c(),o=k(),i=y("div"),C(n,"class","body svelte-1ah7rcb"),L(n,"border-left","3px solid "+e[1]),C(t,"class","column svelte-1ah7rcb")},m(e,l){m(e,t,l),p(t,n),s&&s.m(n,null),p(n,r),u&&u.m(n,null),p(n,o),p(n,i),a=!0},p(e,[t]){e[0]?s?s.p(e,t):(s=ie(e),s.c(),s.m(n,r)):s&&(s.d(1),s=null),u&&u.p&&(!a||4&t)&&f(u,l,e,e[2],a?d(l,e[2],t,null):h(e[2]),null),(!a||2&t)&&L(n,"border-left","3px solid "+e[1])},i(e){a||(Y(u,e),a=!0)},o(e){K(u,e),a=!1},d(e){e&&g(t),s&&s.d(),u&&u.d(e)}}}function se(e,t,n){let{$$slots:r={},$$scope:o}=t,{accent:i=""}=t,{left:a="none"}=t;return a=te[a]||a,i=te[i]||i,e.$$set=e=>{"accent"in e&&n(0,i=e.accent),"left"in e&&n(1,a=e.left),"$$scope"in e&&n(2,o=e.$$scope)},[i,a,o,r]}class le extends ee{constructor(e){super(),J(this,e,se,ae,i,{accent:0,left:1})}}function ce(e){let t;return{c(){t=y("div"),C(t,"class","line svelte-1b6kzjj"),L(t,"background-color",e[0])},m(e,n){m(e,t,n)},p(e,n){1&n&&L(t,"background-color",e[0])},d(e){e&&g(t)}}}function ue(e){let t,n,r,o,i,a,s,l=e[0]&&ce(e);const u=e[3].default,v=c(u,e,e[2],null);return{c(){t=y("div"),n=y("div"),r=k(),o=y("div"),i=y("div"),l&&l.c(),a=k(),v&&v.c(),C(i,"class","body svelte-1b6kzjj"),L(i,"border-left","3px solid "+e[1]),C(o,"class","box svelte-1b6kzjj"),C(t,"class","column svelte-1b6kzjj")},m(e,c){m(e,t,c),p(t,n),p(t,r),p(t,o),p(o,i),l&&l.m(i,null),p(i,a),v&&v.m(i,null),s=!0},p(e,[t]){e[0]?l?l.p(e,t):(l=ce(e),l.c(),l.m(i,a)):l&&(l.d(1),l=null),v&&v.p&&(!s||4&t)&&f(v,u,e,e[2],s?d(u,e[2],t,null):h(e[2]),null),(!s||2&t)&&L(i,"border-left","3px solid "+e[1])},i(e){s||(Y(v,e),s=!0)},o(e){K(v,e),s=!1},d(e){e&&g(t),l&&l.d(),v&&v.d(e)}}}function de(e,t,n){let{$$slots:r={},$$scope:o}=t,{accent:i=""}=t,{left:a="none"}=t;return a=te[a]||a,i=te[i]||i,e.$$set=e=>{"accent"in e&&n(0,i=e.accent),"left"in e&&n(1,a=e.left),"$$scope"in e&&n(2,o=e.$$scope)},[i,a,o,r]}class fe extends ee{constructor(e){super(),J(this,e,de,ue,i,{accent:0,left:1})}}function he(e){let t;return{c(){t=y("div"),C(t,"class","line svelte-1nervpm"),L(t,"background-color",e[0])},m(e,n){m(e,t,n)},p(e,n){1&n&&L(t,"background-color",e[0])},d(e){e&&g(t)}}}function pe(e){let t,n,r,o,i,a,s=e[0]&&he(e);const l=e[3].default,u=c(l,e,e[2],null);return{c(){t=y("div"),n=y("div"),r=k(),o=y("div"),s&&s.c(),i=k(),u&&u.c(),C(o,"class","body svelte-1nervpm"),L(o,"border-left","3px solid "+e[1]),C(t,"class","column svelte-1nervpm")},m(e,l){m(e,t,l),p(t,n),p(t,r),p(t,o),s&&s.m(o,null),p(o,i),u&&u.m(o,null),a=!0},p(e,[t]){e[0]?s?s.p(e,t):(s=he(e),s.c(),s.m(o,i)):s&&(s.d(1),s=null),u&&u.p&&(!a||4&t)&&f(u,l,e,e[2],a?d(l,e[2],t,null):h(e[2]),null),(!a||2&t)&&L(o,"border-left","3px solid "+e[1])},i(e){a||(Y(u,e),a=!0)},o(e){K(u,e),a=!1},d(e){e&&g(t),s&&s.d(),u&&u.d(e)}}}function me(e,t,n){let{$$slots:r={},$$scope:o}=t,{accent:i}=t,{left:a="none"}=t;return a=te[a]||a,i=te[i]||i,e.$$set=e=>{"accent"in e&&n(0,i=e.accent),"left"in e&&n(1,a=e.left),"$$scope"in e&&n(2,o=e.$$scope)},[i,a,o,r]}class ge extends ee{constructor(e){super(),J(this,e,me,pe,i,{accent:0,left:1})}}function ve(e){let t;return{c(){t=y("div"),C(t,"class","line svelte-4ky4u7"),L(t,"background-color",e[0])},m(e,n){m(e,t,n)},p(e,n){1&n&&L(t,"background-color",e[0])},d(e){e&&g(t)}}}function ye(e){let t,n,r,o,i,a,s=e[0]&&ve(e);const l=e[3].default,u=c(l,e,e[2],null);return{c(){t=y("div"),n=y("div"),s&&s.c(),r=k(),u&&u.c(),o=k(),i=y("div"),C(n,"class","body svelte-4ky4u7"),L(n,"border-left","3px solid "+e[1]),C(t,"class","column svelte-4ky4u7")},m(e,l){m(e,t,l),p(t,n),s&&s.m(n,null),p(n,r),u&&u.m(n,null),p(t,o),p(t,i),a=!0},p(e,[t]){e[0]?s?s.p(e,t):(s=ve(e),s.c(),s.m(n,r)):s&&(s.d(1),s=null),u&&u.p&&(!a||4&t)&&f(u,l,e,e[2],a?d(l,e[2],t,null):h(e[2]),null),(!a||2&t)&&L(n,"border-left","3px solid "+e[1])},i(e){a||(Y(u,e),a=!0)},o(e){K(u,e),a=!1},d(e){e&&g(t),s&&s.d(),u&&u.d(e)}}}function be(e,t,n){let{$$slots:r={},$$scope:o}=t,{accent:i=""}=t,{left:a="none"}=t;return a=te[a]||a,i=te[i]||i,e.$$set=e=>{"accent"in e&&n(0,i=e.accent),"left"in e&&n(1,a=e.left),"$$scope"in e&&n(2,o=e.$$scope)},[i,a,o,r]}class we extends ee{constructor(e){super(),J(this,e,be,ye,i,{accent:0,left:1})}}function ke(e){let t,n,r;const o=e[4].default,i=c(o,e,e[3],null);return{c(){t=y("div"),i&&i.c(),C(t,"class","container svelte-qzc69a"),L(t,"height",e[1]+"px"),P((()=>e[5].call(t)))},m(o,a){m(o,t,a),i&&i.m(t,null),n=function(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const n=y("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const r=T();let o;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=$(window,"message",(e=>{e.source===n.contentWindow&&t()}))):(n.src="about:blank",n.onload=()=>{o=$(n.contentWindow,"resize",t)}),p(e,n),()=>{(r||o&&n.contentWindow)&&o(),g(n)}}(t,e[5].bind(t)),r=!0},p(e,[n]){i&&i.p&&(!r||8&n)&&f(i,o,e,e[3],r?d(o,e[3],n,null):h(e[3]),null),(!r||2&n)&&L(t,"height",e[1]+"px")},i(e){r||(Y(i,e),r=!0)},o(e){K(i,e),r=!1},d(e){e&&g(t),i&&i.d(e),n()}}}function xe(e,t,n){let r,{$$slots:o={},$$scope:i}=t,{ratio:a=.5}=t,s=100;return e.$$set=e=>{"ratio"in e&&n(2,a=e.ratio),"$$scope"in e&&n(3,i=e.$$scope)},e.$$.update=()=>{5&e.$$.dirty&&n(1,r=s/a)},[s,r,a,i,o,function(){s=this.clientWidth,n(0,s)}]}class $e extends ee{constructor(e){super(),J(this,e,xe,ke,i,{ratio:2})}}var Ce=[["#6699cc","#C4ABAB","#335799","#8C8C88","#F2C0BB","#6D5685"],["#914045","#cc7066","#cc8a66","#603a39","#705E5C","#8BA3A2"],["#8a849a","#b5b0bf","#D68881","#d7d5d2","#8BA3A2","#C4ABAB"],["#cc7066","#335799","#7f9c6c","#F2C0BB","#9c896c","#2D85A8"],["#848f9a","#9aa4ac","#8C8C88","#b0b8bf","#C4ABAB","#838B91"],["#2D85A8","#50617A","#735873","#8C8C88","#C4ABAB","#4d4d4d"],["#6accb2","#705E5C","#cc8a66","#cc7066","#7f9c6c","#6699cc"],["#303b50","#335799","#e6d7b3","#914045","#C4ABAB","#838B91"],["#C4ABAB","#8C8C88","#705E5C","#2D85A8","#e6d7b3","#cc7066"],["#6699cc","#6accb2","#e1e6b3","#cc7066","#F2C0BB","#a3a5
1a5"],["#C4ABAB","#cc6966","#275291","#914045","#8BA3A2","#978BA3"],["#cc7066","#2D85A8","#c67a53","#8BA3A2","#dfb59f","#C4ABAB"]];function Se(e,t){return e[Math.floor(t*e.length)]}function Me(e,t,n){const r=e.slice();return r[10]=t[n],r}function Le(t){let n;return{c(){n=y("div"),C(n,"class","img "+t[10].size+" svelte-5bq61u"),L(n,"background-image","url("+t[10].image+")")},m(e,t){m(e,n,t)},p:e,d(e){e&&g(n)}}}function Te(t){let n;return{c(){n=y("div"),C(n,"class","color "+t[10].size+" svelte-5bq61u"),L(n,"background-color",t[10].color)},m(e,t){m(e,n,t)},p:e,d(e){e&&g(n)}}}function Oe(t){let n;return{c(){n=y("div")},m(e,t){m(e,n,t)},p:e,d(e){e&&g(n)}}}function ze(e){let t;let n=function(e,t){return"empty"===e[10].type?Oe:"color"===e[10].type?Te:"image"===e[10].type?Le:void 0}(e),r=n&&n(e);return{c(){r&&r.c(),t=x()},m(e,n){r&&r.m(e,n),m(e,t,n)},p(e,t){r&&r.p(e,t)},d(e){r&&r.d(e),e&&g(t)}}}function Ae(e){let t,n=e[5],r=[];for(let t=0;t<n.length;t+=1)r[t]=ze(Me(e,n,t));return{c(){t=y("div");for(let e=0;e<r.length;e+=1)r[e].c();C(t,"class","goldGrid svelte-5bq61u"),L(t,"grid-template-columns","repeat("+e[3]+", 1fr)"),L(t,"grid-template-rows","repeat("+e[2]+", 1fr)")},m(e,n){m(e,t,n);for(let e=0;e<r.length;e+=1)r[e].m(t,null)},p(e,o){if(32&o){let i;for(n=e[5],i=0;i<n.length;i+=1){const a=Me(e,n,i);r[i]?r[i].p(a,o):(r[i]=ze(a),r[i].c(),r[i].m(t,null))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}8&o&&L(t,"grid-template-columns","repeat("+e[3]+", 1fr)"),4&o&&L(t,"grid-template-rows","repeat("+e[2]+", 1fr)")},d(e){e&&g(t),v(r,e)}}}function De(e){let t,n;return{c(){t=y("div"),n=w(e[0]),C(t,"class","f1")},m(e,r){m(e,t,r),p(t,n)},p(e,t){1&t&&S(n,e[0])},d(e){e&&g(t)}}}function Ne(e){let t,n,r,o;t=new $e({props:{ratio:e[1],$$slots:{default:[Ae]},$$scope:{ctx:e}}});let i=e[4]&&De(e);return{c(){V(t.$$.fragment),n=k(),i&&i.c(),r=x()},m(e,a){Z(t,e,a),m(e,n,a),i&&i.m(e,a),m(e,r,a),o=!0},p(e,[n]){const o={};2&n&&(o.ratio=e[1]),8204&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o),e[4]?i?i.p(e,n):(i=De(e),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null)},i(e){o||(Y(t.$$.fragment,e),o=!0)},o(e){K(t.$$.fragment,e),o=!1},d(e){X(t,e),e&&g(n),i&&i.d(e),e&&g(r)}}}function Ee(e,t,n){let{images:r=[]}=t,{image:o=null}=t,{ratio:i=1.618}=t,{rows:a=3}=t,{cols:s=3}=t,{seed:l=null}=t,c=!1;null===l&&(l="xxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),c=!0);let u=function(e){let t=[];for(let n=0;n<e.length;n+=1){let r=parseInt(e[n],16);t.push(r/16)}return t}(l);o&&0===r.length&&r.push(o);let d=Se(Ce,u.pop()),f=[];for(let e=0;e<a*s;e+=1){let e=Se(["empty","empty","empty","color","image"],u.pop());0===r.length&&"image"===e&&(e="color");let t={type:e};"color"===e&&(t.color=Se(d,u.pop()),t.size=Se(["one","one","row2","col2","four"],u.pop())),"image"===e&&(t.image=Se(r,u.pop()),t.size=Se(["one","row2","col2","four"],u.pop())),f.push(t)}return e.$$set=e=>{"images"in e&&n(6,r=e.images),"image"in e&&n(7,o=e.image),"ratio"in e&&n(1,i=e.ratio),"rows"in e&&n(2,a=e.rows),"cols"in e&&n(3,s=e.cols),"seed"in e&&n(0,l=e.seed)},[l,i,a,s,c,f,r,o]}class je extends ee{constructor(e){super(),J(this,e,Ee,Ne,i,{images:6,image:7,ratio:1,rows:2,cols:3,seed:0})}}function _e(t){let n,r,o;return{c(){n=y("a"),r=b("svg"),o=b("path"),C(o,"fill",t[1]),C(o,"d","M1299 1088q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"),C(r,"width",t[2]),C(r,"viewBox","0 0 2048 2048"),C(r,"xmlns","http://www.w3.org/2000/svg"),C(n,"href",t[0]),C(n,"class","container svelte-1j6qmmb"),L(n,"position","relative"),L(n,"top",t[3])},m(e,t){m(e,n,t),p(n,r),p(r,o)},p(e,[t]){2&t&&C(o,"fill",e[1]),4&t&&C(r,"width",e[2]),1&t&&C(n,"href",e[0]),8&t&&L(n,"top",e[3])},i:e,o:e,d(e){e&&g(n)}}}function He(e,t,n){let{href:r="#"}=t,{color:o="#50617A"}=t,{width:i="65px"}=t,{top:a="0px"}=t;return e.$$set=e=>{"href"in e&&n(0,r=e.href),"color"in e&&n(1,o=e.color),"width"in e&&n(2,i=e.width),"top"in e&&n(3,a=e.top)},[r,o,i,a]}class Pe extends ee{constructor(e){super(),J(this,e,He,_e,i,{href:0,color:1,width:2,top:3})}}function Ie(t){let n,o,i;return{c(){n=y("textarea"),C(n,"class","input svelte-19ejfsy"),n.readOnly=t[2],L(n,"width",t[1]),L(n,"height",t[3]),L(n,"font-size",t[4]),L(n,"line-height","1.5rem"),C(n,"spellcheck","fal
1se"),C(n,"type","text")},m(e,r){m(e,n,r),M(n,t[0]),t[9](n),o||(i=[$(n,"input",t[6]),$(n,"input",t[8])],o=!0)},p(e,[t]){4&t&&(n.readOnly=e[2]),2&t&&L(n,"width",e[1]),8&t&&L(n,"height",e[3]),16&t&&L(n,"font-size",e[4]),1&t&&M(n,e[0])},i:e,o:e,d(e){e&&g(n),t[9](null),o=!1,r(i)}}}function Be(e,t,n){let r,{value:o=""}=t,{cb:i=(()=>{})}=t,{width:a="60%"}=t,{readonly:s}=t,{height:l=""}=t,{size:c="1.2rem"}=t;return e.$$set=e=>{"value"in e&&n(0,o=e.value),"cb"in e&&n(7,i=e.cb),"width"in e&&n(1,a=e.width),"readonly"in e&&n(2,s=e.readonly),"height"in e&&n(3,l=e.height),"size"in e&&n(4,c=e.size)},[o,a,s,l,c,r,function(e){i(e.target.value)},i,function(){o=this.value,n(0,o)},function(e){N[e?"unshift":"push"]((()=>{r=e,n(5,r)}))}]}class We extends ee{constructor(e){super(),J(this,e,Be,Ie,i,{value:0,cb:7,width:1,readonly:2,height:3,size:4})}}function Fe(t){let n;return{c(){n=y("div"),C(n,"class","block container svelte-owkcqy"),L(n,"background-color",t[0])},m(e,t){m(e,n,t)},p(e,[t]){1&t&&L(n,"background-color",e[0])},i:e,o:e,d(e){e&&g(n)}}}function Re(e,t,n){let{color:r="steelblue"}=t;return e.$$set=e=>{"color"in e&&n(0,r=e.color)},[r]}class qe extends ee{constructor(e){super(),J(this,e,Re,Fe,i,{color:0})}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var Ge={exports:{}};Ge.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),a=r||o||i,s=a&&(r?document.documentMode||6:+(i||o)[1]),l=!i&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!i&&/Chrome\//.test(e),d=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),m=!i&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),w=/win/i.test(t),k=d&&e.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(d=!1,l=!0);var x=y&&(c||d&&(null==k||k<12.11)),$=n||a&&s>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,M=function(e,t){var n=e.className,r=C(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}};function L(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return L(e).appendChild(t)}function O(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i<t.length;++i)o.appendChild(t[i]);return o}function z(e,t,n,r){var o=O(e,t,n,r);return o.setAttribute("role","presentation"),o}function A(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function D(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function N(e,t){var n=e.className;C(t).test(n)||(e.className+=(n?" ":"")+t)}function E(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(t)&&(t+=" "+n[r]);return t}S=document.createRange?function(e,t,n,r){var o=document.createRange();return o.setEnd(r||e,n),o.setStart(e,t),o}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var j=function(e){e.select()};function _(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function H(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function P(e,t,n,r,o){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var i=r||0,a=o||0;;){var s=e.indexOf("\t",i);if(s<0||s>=t)return a+(t-i);a+=s-i,a+=n-a%n,i=s+1}}m?j=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(j=function(e){try{e.select()}catch(e){}});var I=function(){this.id=null,this.f=null,this.time=0,this.handler=_(this.onTimeout,this)};function B(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}I.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},I.prototype.set=function(e,t){this.f=t;var n=+new Date+e;
vendor: 25,827 bytes, line 1
1(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var W=30,F={toString:function(){return"CodeMirror.Pass"}},R={scroll:!1},q={origin:"*mouse"},G={origin:"+move"};function U(e,t,n){for(var r=0,o=0;;){var i=e.indexOf("\t",r);-1==i&&(i=e.length);var a=i-r;if(i==e.length||o+a>=t)return r+Math.min(a,t-o);if(o+=i-r,r=i+1,(o+=n-o%n)>=t)return r}}var Y=[""];function K(e){for(;Y.length<=e;)Y.push(V(Y)+" ");return Y[e]}function V(e){return e[e.length-1]}function Z(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function X(e,t,n){for(var r=0,o=n(t);r<e.length&&n(e[r])<=o;)r++;e.splice(r,0,t)}function Q(){}function J(e,t){var n;return Object.create?n=Object.create(e):(Q.prototype=e,n=new Q),t&&H(t,n),n}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var oe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&oe.test(e)}function ae(e,t,n){for(;(n<0?t>0:t<e.length)&&ie(e.charAt(t));)t+=n;return t}function se(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var o=(t+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}function le(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var o=!1,i=0;i<e.length;++i){var a=e[i];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(t,n,"ltr")}var ce=null;function ue(e,t,n){var r;ce=null;for(var o=0;o<e.length;++o){var i=e[o];if(i.from<t&&i.to>t)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:ce=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:ce=o)}return null!=r?r:ce}var de=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,i=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var h=0,p=c;h<u;++h){var m=d[h];"m"==m?d[h]=p:p=m}for(var g=0,v=c;g<u;++g){var y=d[g];"1"==y&&"r"==v?d[g]="n":i.test(y)&&(v=y,"r"==y&&(d[g]="R"))}for(var b=1,w=d[0];b<u-1;++b){var k=d[b];"+"==k&&"1"==w&&"1"==d[b+1]?d[b]="1":","!=k||w!=d[b+1]||"1"!=w&&"n"!=w||(d[b]=w),w=k}for(var x=0;x<u;++x){var $=d[x];if(","==$)d[x]="N";else if("%"==$){var C=void 0;for(C=x+1;C<u&&"%"==d[C];++C);for(var S=x&&"!"==d[x-1]||C<u&&"1"==d[C]?"1":"N",M=x;M<C;++M)d[M]=S;x=C-1}}for(var L=0,T=c;L<u;++L){var O=d[L];"L"==T&&"1"==O?d[L]="L":i.test(O)&&(T=O)}for(var z=0;z<u;++z)if(o.test(d[z])){var A=void 0;for(A=z+1;A<u&&o.test(d[A]);++A);for(var D="L"==(z?d[z-1]:c),N=D==("L"==(A<u?d[A]:c))?D?"L":"R":c,E=z;E<A;++E)d[E]=N;z=A-1}for(var j,_=[],H=0;H<u;)if(a.test(d[H])){var P=H;for(++H;H<u&&a.test(d[H]);++H);_.push(new l(0,P,H))}else{var I=H,B=_.length;for(++H;H<u&&"L"!=d[H];++H);for(var W=I;W<H;)if(s.test(d[W])){I<W&&_.splice(B,0,new l(1,I,W));var F=W;for(++W;W<H&&s.test(d[W]);++W);_.splice(B,0,new l(2,F,W)),I=W}else++W;I<H&&_.splice(B,0,new l(1,I,H))}return"ltr"==t&&(1==_[0].level&&(j=e.match(/^\s+/))&&(_[0].from=j[0].length,_.unshift(new l(0,0,j[0].length))),1==V(_).level&&(j=e.match(/\s+$/))&&(V(_).to-=j[0].length,_.push(new l(0,u-j[0].length,u)))),"rtl"==t?_.reverse():_}}();function fe(e,t){var n=e.order;return null==n&&(n=e.order=de(e.text,t)),n}var he=[],pe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||he).concat(n)}};function me(e,t){return e._handlers&&e._handlers[t]||he}function ge(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,o=r&&r[t];if(o){var i=B(o,n);i>-1&&(r[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function ve(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o<n.length;++o)n[o].apply(null,r)}function ye(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ve(e,n||t.type,e,t),Ce(t)||t.codemirrorIgnore}function be(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==B(n,t[r])&&n.push(t[r])}function we(e,t){return me(e,t).length>0}function ke(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function $e(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Se(e){xe(e),$e(e)}function Me(e){return e.target||e.srcElement}function Le(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Te,Oe,ze=function(){if(a&&s<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function Ae(e){if(null==Te){var t=O("span","​");T(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Te=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Te?O("span","​"):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function De(e){if(null!=Oe)return Oe;var t=T(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return L(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}var Ne,Ee=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},_e="oncopy"in(Ne=O("div"))||(Ne.setAttribute("oncopy","return;"),"function"==typeof Ne.oncopy),He=null;function Pe(e){if(null!=He)return He;var t=T(e,O("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return He=Math.abs(n.left-r.left)>1}var Ie={},Be={};function We(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ie[e]=t}function Fe(e,t){Be[e]=t}function Re(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Re("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Re("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function qe(e,t){t=Re(t);var n=Ie[t.name];if(!n)return qe(e,"text/plain");var r=n(e,t);if(Ge.hasOwnProperty(t.name)){var o=Ge[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ge={};function Ue(e,t){H(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function Ye(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function Ke(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ve(e,t,n){return!e.startState||e.startState(t,n)}var Ze=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t<i){n=o;break}t-=i}return n.lines[t]}function Qe(e,t,n){var r=[],o=t.line;return e.iter(t.line,n.line+1,(function(e){var i=e.text;o==n.line&&(i=i.slice(0,n.ch)),o==t.line&&(i=i.slice(t.ch)),r.push(i),++o})),r}function Je(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function et(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function tt(e){if(null==e.parent)return null;for(var t=e.parent,n=B(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var o=0;r.children[o]!=t;++o)n+=r.children[o].chunkSize();return n+t.first}function nt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var o=e.children[r],i=o.height;if(t<i){e=o;continue e}t-=i,n+=o.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function rt(e,t){return t>=e.first&&t<e.first+e.size}function ot(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function it(e,t,n){if(void 0===n&&(n=null),!(this instanceof it))return new it(e,t,n);this.line=e,this.ch=t,this.sticky=n}function at(e,t){return e.line-t.line||e.ch-t.ch}function st(e,t){return e.sticky==t.sticky&&0==at(e,t)}function lt(e){return it(e.line,e.ch)}function ct(e,t){return at(e,t)<0?t:e}function ut(e,t){return at(e,t)<0?e:t}function dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ft(e,t){if(t.line<e.first)return it(e.first,0);var n=e.first+e.size-1;return t.line>n?it(n,Xe(e,n).text.length):ht(t,Xe(e,t.line).text.length)}function ht(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}function pt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ft(e,t[r]);return n}Ze.prototype.eol=function(){return this.pos>=this.string.length},Ze.prototype.sol=function(){return this.pos==this.lineStart},Ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ze.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ze.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ze.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ze.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},Ze.prototype.skipToEnd=function(){this.pos=this.string.length},Ze.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ze.prototype.backUp=function(e){this.pos-=e},Ze.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=P(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?P(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.indentation=function(){return P(this.string,null,this.tabSize)-(this.lineStart?P(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},Ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ze.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ze.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ze.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var mt=function(e,t){this.state=e,this.lookAhead=t},gt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function vt(e,t,n,r){var o=[e.state.modeGen],i={};Mt(e,t.text,e.doc.mode,n,(function(e,t){return o.push(e,t)}),i,r);for(var a=n.state,s=function(r){n.baseTokens=o;var s=e.state.overlays[r],l=1,c=0;n.state=!0,Mt(e,t.text,s.mode,n,(function(e,t){for(var n=l;c<e;){var r=o[l];r>e&&o.splice(l,1,e,o[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)o.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var i=o[n+1];o[n+1]=(i?i+" ":"")+"overlay "+t}}),i),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:o,classes:i.bgClass||i.textClass?i:null}}function yt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=bt(e,tt(t)),o=t.text.length>e.options.maxHighlightLength&&Ye(e.doc.mode,r.state),i=vt(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function bt(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new gt(r,!0,t);var i=Lt(e,t,n),a=i>r.first&&Xe(r,i-1).stateAfter,s=a?gt.fromSaved(r,a,i):new gt(r,Ve(r.mode),i);return r.iter(i,t,(function(n){wt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&r<o.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function wt(e,t,n,r){var o=e.doc.mode,i=new Ze(t,e.options.tabSize,n);for(i.start=i.pos=r||0,""==t&&kt(o,n.state);!i.eol();)xt(o,i,n.state),i.start=i.pos}function kt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ke(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function xt(e,t,n,r){for(var o=0;o<10;o++){r&&(r[0]=Ke(e,n).mode);var i=e.token(t,n);if(t.pos>t.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}gt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},gt.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)t.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(e,t,n){return t instanceof mt?new gt(e,Ye(e.mode,t.state),n,t.lookAhead):new gt(e,Ye(e.mode,t),n)},gt.prototype.save=function(e){var t=!1!==e?Ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new mt(t,this.maxLookAhead):t};var $t=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ct(e,t,n,r){var o,i,a=e.doc,s=a.mode,l=Xe(a,(t=ft(a,t)).line),c=bt(e,t.line,n),u=new Ze(l.text,e.options.tabSize,c);for(r&&(i=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,o=xt(s,u,c.state),r&&i.push(new $t(u,o,Ye(a.mode,c.state)));return r?i:new $t(u,o,c.state)}function St(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Mt(e,t,n,r,o,i,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new Ze(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&St(kt(n,r.state),i);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&wt(e,t,r,d.pos),d.pos=t.length,l=null):l=St(xt(n,d,r.state,f),i),f){var h=f[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){for(;c<d.start;)o(c=Math.min(d.start,c+5e3),u);u=l}d.start=d.pos}for(;c<d.pos;){var p=Math.min(d.pos,c+5e3);o(p,u),c=p}}function Lt(e,t,n){for(var r,o,i=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=i.first)return i.first;var l=Xe(i,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof mt?c.lookAhead:0)<=i.modeFrontier))return s;var u=P(l.text,null,e.options.tabSize);(null==o||r>u)&&(o=s-1,r=u)}return o}function Tt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var o=Xe(e,r).stateAfter;if(o&&(!(o instanceof mt)||r+o.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Ot=!1,zt=!1;function At(){Ot=!0}function Dt(){zt=!0}function Nt(e,t,n){this.marker=e,this.from=t,this.to=n}function Et(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function jt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function _t(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Ht(e,t,n){var r;if(e)for(var o=0;o<e.length;++o){var i=e[o],a=i.marker;if(null==i.from||(a.inclusiveLeft?i.from<=t:i.from<t)||i.from==t&&"bookmark"==a.type&&(!n||!i.marker.insertLeft)){var s=null==i.to||(a.inclusiveRight?i.to>=t:i.to>t);(r||(r=[])).push(new Nt(a,i.from,s?null:i.to))}}return r}function Pt(e,t,n){var r;if(e)for(var o=0;o<e.length;++o){var i=e[o],a=i.marker;if(null==i.to||(a.inclusiveRight?i.to>=t:i.to>t)||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var s=null==i.from||(a.inclusiveLeft?i.from<=t:i.from<t);(r||(r=[])).push(new Nt(a,s?null:i.from-t,null==i.to?null:i.to-t))}}return r}function It(e,t){if(t.full)return null;var n=rt(e,t.from.line)&&Xe(e,t.from.line).markedSpans,r=rt(e,t.to.line)&&Xe(e,t.to.line).markedSpans;if(!n&&!r)return null;var o=t.from.ch,i=t.to.ch,a=0==at(t.from,t.to),s=Ht(n,o,a),l=Pt(r,i,a),c=1==t.text.length,u=V(t.text).length+(c?o:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var h=Et(l,f.marker);h?c&&(f.to=null==h.to?null:h.to+u):f.to=o}}if(l)for(var p=0;p<l.length;++p){var m=l[p];null!=m.to&&(m.to+=u),null==m.from?Et(s,m.marker)||(m.from=u,c&&(s||(s=[])).push(m)):(m.from+=u,c&&(s||(s=[])).push(m))}s&&(s=Bt(s)),l&&l!=s&&(l=Bt(l));var g=[s];if(!c){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new Nt(s[b].marker,null,null));for(var w=0;w<y;++w)g.push(v);g.push(l)}return g}function Bt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Wt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=B(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var o=[{from:t,to:n}],i=0;i<r.length;++i)for(var a=r[i],s=a.find(0),l=0;l<o.length;++l){var c=o[l];if(!(at(c.to,s.from)<0||at(c.from,s.to)>0)){var u=[l,1],d=at(c.from,s.from),f=at(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:c.to}),o.splice.apply(o,u),l+=u.length-3}}return o}function Ft(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Rt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function qt(e){return e.inclusiveLeft?-1:0}function Gt(e){return e.inclusiveRight?1:0}function Ut(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),o=t.find(),i=at(r.from,o.from)||qt(e)-qt(t);if(i)return-i;var a=at(r.to,o.to)||Gt(e)-Gt(t);return a||t.id-e.id}function Yt(e,t){var n,r=zt&&e.markedSpans;if(r)for(var o=void 0,i=0;i<r.length;++i)(o=r[i]).marker.collapsed&&null==(t?o.from:o.to)&&(!n||Ut(n,o.marker)<0)&&(n=o.marker);return n}function Kt(e){return Yt(e,!0)}function Vt(e){return Yt(e,!1)}function Zt(e,t){var n,r=zt&&e.markedSpans;if(r)for(var o=0;o<r.length;++o){var i=r[o];i.marker.collapsed&&(null==i.from||i.from<t)&&(null==i.to||i.to>t)&&(!n||Ut(n,i.marker)<0)&&(n=i.marker)}return n}function Xt(e,t,n,r,o){var i=Xe(e,t),a=zt&&i.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=at(c.from,n)||qt(l.marker)-qt(o),d=at(c.to,r)||Gt(l.marker)-Gt(o);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?at(c.to,n)>=0:at(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?at(c.from,r)<=0:at(c.from,r)<0)))return!0}}}function Qt(e){for(var t;t=Kt(e);)e=t.find(-1,!0).line;return e}function Jt(e){for(var t;t=Vt(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=Vt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function tn(e,t){var n=Xe(e,t),r=Qt(n);return n==r?t:tt(r)}function nn(e,t){if(t>e.lastLine())return t;var n,r=Xe(e,t);if(!rn(e,r))return t;for(;n=Vt(r);)r=n.find(1,!0).line;return tt(r)+1}function rn(e,t){var n=zt&&t.markedSpans;if(n)for(var r=void 0,o=0;o<n.length;++o)if((r=n[o]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&on(e,t,r))return!0}}function on(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return on(e,r.line,Et(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var o=void 0,i=0;i<t.markedSpans.length;++i)if((o=t.markedSpans[i]).marker.collapsed&&!o.marker.widgetNode&&o.from==n.to&&(null==o.to||o.to!=n.from)&&(o.marker.inclusiveLeft||n.marker.inclusiveRight)&&on(e,t,o))return!0}function an(e){for(var t=0,n=(e=Qt(e)).parent,r=0;r<n.lines.length;++r){var o=n.lines[r];if(o==e)break;t+=o.height}for(var i=n.parent;i;i=(n=i).parent)for(var a=0;a<i.children.length;++a){var s=i.children[a];if(s==n)break;t+=s.height}return t}function sn(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Kt(r);){var o=t.find(0,!0);r=o.from.line,n+=o.from.ch-o.to.ch}for(r=e;t=Vt(r);){var i=t.find(0,!0);n-=r.text.length-i.from.ch,n+=(r=i.to.line).text.length-i.to.ch}return n}function ln(e){var t=e.display,n=e.doc;t.maxLine=Xe(n,n.first),t.maxLineLength=sn(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=sn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var cn=function(e,t,n){this.text=e,Rt(this,t),this.height=n?n(this):1};function un(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ft(e),Rt(e,n);var o=r?r(e):1;o!=e.height&&et(e,o)}function dn(e){e.parent=null,Ft(e)}cn.prototype.lineNo=function(){return tt(this)},ke(cn);var fn={},hn={};function pn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?hn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function mn(e,t){var n=z("span",null,null,l?"padding-right: .1px":null),r={pre:z("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i=o?t.rest[o-1]:t.line,a=void 0;r.pos=0,r.addToken=vn,De(e.display.measure)&&(a=fe(i,e.doc.direction))&&(r.addToken=bn(r.addToken,a)),r.map=[],kn(i,r,yt(e,i,t!=e.display.externalMeasured&&tt(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=E(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=E(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ae(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="
1cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=E(r.pre.className,r.textClass||"")),r}function gn(e){var t=O("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,n,r,o,i,l){if(t){var c,u=e.splitSpaces?yn(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){c=document.createDocumentFragment();for(var h=0;;){d.lastIndex=h;var p=d.exec(t),m=p?p.index-h:t.length-h;if(m){var g=document.createTextNode(u.slice(h,h+m));a&&s<9?c.appendChild(O("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!p)break;h+=m+1;var v=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(O("span",K(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?((v=c.appendChild(O("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),a&&s<9?c.appendChild(O("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||o||f||i){var w=n||"";r&&(w+=r),o&&(w+=o);var k=O("span",[c],w,i);if(l)for(var x in l)l.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&k.setAttribute(x,l[x]);return e.content.appendChild(k)}e.content.appendChild(c)}}function yn(e,t){if(e.length>1&&!/  /.test(e))return e;for(var n=t,r="",o=0;o<e.length;o++){var i=e.charAt(o);" "!=i||!n||o!=e.length-1&&32!=e.charCodeAt(o+1)||(i=" "),r+=i,n=" "==i}return r}function bn(e,t){return function(n,r,o,i,a,s,l){o=o?o+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,f=0;f<t.length&&!((d=t[f]).to>c&&d.from<=c);f++);if(d.to>=u)return e(n,r,o,i,a,s,l);e(n,r.slice(0,d.to-c),o,i,null,s,l),i=null,r=r.slice(d.to-c),c=d.to}}}function wn(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function kn(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,s,l,c,u,d,f,h=o.length,p=0,m=1,g="",v=0;;){if(v==p){l=c=u=s="",f=null,d=null,v=1/0;for(var y=[],b=void 0,w=0;w<r.length;++w){var k=r[w],x=k.marker;if("bookmark"==x.type&&k.from==p&&x.widgetNode)y.push(x);else if(k.from<=p&&(null==k.to||k.to>p||x.collapsed&&k.to==p&&k.from==p)){if(null!=k.to&&k.to!=p&&v>k.to&&(v=k.to,c=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";
1":"")+x.css),x.startStyle&&k.from==p&&(u+=" "+x.startStyle),x.endStyle&&k.to==v&&(b||(b=[])).push(x.endStyle,k.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var $ in x.attributes)(f||(f={}))[$]=x.attributes[$];x.collapsed&&(!d||Ut(d.marker,x)<0)&&(d=k)}else k.from>p&&v>k.from&&(v=k.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==v&&(c+=" "+b[C]);if(!d||d.from==p)for(var S=0;S<y.length;++S)wn(t,0,y[S]);if(d&&(d.from||0)==p){if(wn(t,(null==d.to?h+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=h)break;for(var M=Math.min(h,v);;){if(g){var L=p+g.length;if(!d){var T=L>M?g.slice(0,M-p):g;t.addToken(t,T,a?a+l:l,u,p+T.length==v?c:"",s,f)}if(L>=M){g=g.slice(M-p),p=M;break}p=L,u=""}g=o.slice(i,i=n[m++]),a=pn(n[m++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,o.slice(i,i=n[O]),pn(n[O+1],t.cm.options))}function xn(e,t,n){this.line=t,this.rest=en(t),this.size=this.rest?tt(V(this.rest))-n+1:1,this.node=this.text=null,this.hidden=rn(e,t)}function $n(e,t,n){for(var r,o=[],i=t;i<n;i=r){var a=new xn(e.doc,Xe(e.doc,i),i);r=i+a.size,o.push(a)}return o}var Cn=null;function Sn(e){Cn?Cn.ops.push(e):e.ownsGroup=Cn={ops:[e],delayedCallbacks:[]}}function Mn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var o=e.ops[r];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,o.cm)}}while(n<t.length)}function Ln(e,t){var n=e.ownsGroup;if(n)try{Mn(n)}finally{Cn=null,t(n)}}var Tn=null;function On(e,t){var n=me(e,t);if(n.length){var r,o=Array.prototype.slice.call(arguments,2);Cn?r=Cn.delayedCallbacks:Tn?r=Tn:(r=Tn=[],setTimeout(zn,0));for(var i=function(e){r.push((function(){return n[e].apply(null,o)}))},a=0;a<n.length;++a)i(a)}}function zn(){var e=Tn;Tn=null;for(var t=0;t<e.length;++t)e[t]()}function An(e,t,n,r){for(var o=0;o<t.changes.length;o++){var i=t.changes[o];"text"==i?jn(e,t):"gutter"==i?Hn(e,t,n,r):"class"==i?_n(e,t):"widget"==i&&Pn(e,t,r)}t.changes=null}function Dn(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function Nn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Dn(t);t.background=r.insertBefore(O("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function En(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):mn(e,t)}function jn(e,t){var n=t.text.className,r=En(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,_n(e,t)):n&&(t.text.className=n)}function _n(e,t){Nn(e,t),t.line.wrapClass?Dn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Hn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=Dn(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var a=Dn(t),s=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(O("div",ot(e.options,n),"CodeMirror-linenumber C
1odeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=i.hasOwnProperty(c)&&i[c];u&&s.appendChild(O("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function Pn(e,t,n){t.alignable&&(t.alignable=null);for(var r=C("CodeMirror-linewidget"),o=t.node.firstChild,i=void 0;o;o=i)i=o.nextSibling,r.test(o.className)&&t.node.removeChild(o);Bn(e,t,n)}function In(e,t,n,r){var o=En(e,t);return t.text=t.node=o.pre,o.bgClass&&(t.bgClass=o.bgClass),o.textClass&&(t.textClass=o.textClass),_n(e,t),Hn(e,t,n,r),Bn(e,t,r),t.node}function Bn(e,t,n){if(Wn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Wn(e,t.rest[r],t,n,!1)}function Wn(e,t,n,r,o){if(t.widgets)for(var i=Dn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=O("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Fn(l,c,n,r),e.display.input.setUneditable(c),o&&l.above?i.insertBefore(c,n.gutter||n.text):i.appendChild(c),On(l,"redraw")}}function Fn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);
vendor: 4,457 bytes, line 1
1var o=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(o-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=o+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Rn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!A(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),T(t.display.measure,O("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function qn(e,t){for(var n=Me(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Gn(e){return e.lineSpace.offsetTop}function Un(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Yn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,O("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Kn(e){return W-e.display.nativeBarWidth}function Vn(e){return e.display.scroller.clientWidth-Kn(e)-e.display.barWidth}function Zn(e){return e.display.scroller.clientHeight-Kn(e)-e.display.barHeight}function Xn(e,t,n){var r=e.options.lineWrapping,o=r&&Vn(e);if(!t.measure.heights||r&&t.measure.width!=o){var i=t.measure.heights=[];if(r){t.measure.width=o;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&i.push((l.bottom+c.top)/2-n.top)}}i.push(n.bottom-n.top)}}function Qn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var o=0;o<e.rest.length;o++)if(tt(e.rest[o])>n)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function Jn(e,t){var n=tt(t=Qt(t)),r=e.display.externalMeasured=new xn(e.doc,t,n);r.lineN=n;var o=r.built=mn(e,r);return r.text=o.pre,T(e.display.lineMeasure,o.pre),r}function er(e,t,n,r){return rr(e,nr(e,t),n,r)}function tr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[_r(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function nr(e,t){var n=tt(t),r=tr(e,n);r&&!r.text?r=null:r&&r.changes&&(An(e,r,n,Ar(e)),e.curOp.forceUpdate=!0),r||(r=Jn(e,t));var o=Qn(r,t,n);return{line:t,view:r,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function rr(e,t,n,r,o){t.before&&(n=-1);var i,a=n+(r||"");return t.cache.hasOwnProperty(a)?i=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Xn(e,t.view,t.rect),t.hasHeights=!0),(i=lr(e,t,n,r)).bogus||(t.cache[a]=i)),{left:i.left,right:i.right,top:o?i.rtop:i.top,bottom:o?i.rbottom:i.bottom}}var or,ir={left:0,right:0,top:0,bottom:0};function ar(e,t,n){for(var r,o,i,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(o=0,i=1,a="left"):t<l?i=1+(o=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(o=(i=l-s)-1,t>=l&&(a="right")),null!=o){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&o==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:o,end:i,collapse:a,coverStart:s,coverEnd:l}}function sr(e,t){var n=ir;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var o=e.length-1;o>=0&&(n=e[o]).left==n.right;o--);return n}function lr(e,t,n,r){var o,i=ar(t.map,n,r),l=i.node,c=i.start,u=i.end,d=i.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){for(;c&&ie(t.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+u<i.coverEnd&&ie(t.line.text.charAt(i.coverStart+u));)++u;if((o=a&&s<9&&0==c&&u==i.coverEnd-i.coverStart?l.parentNode.getBoundingClientRect():sr(S(l,c,u).getClientRects(),r)).left||o.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(o=cr(e.display.measure,o))}else{var h;c>0&&(d=r="right"),o=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==r?h.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!o||!o.left&&!o.right)){var p=l.parentNode.getClientRects()[0];o=p?{left:p.left,right:p.left+zr(e.display),top:p.top,bottom:p.bottom}:ir}
vendor: 5,653 bytes, line 1
1for(var m=o.top-t.rect.top,g=o.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var w=b?y[b-1]:0,k=y[b],x={left:("right"==d?o.right:o.left)-t.rect.left,right:("left"==d?o.left:o.right)-t.rect.left,top:w,bottom:k};return o.left||o.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=m,x.rbottom=g),x}function cr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Pe(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function ur(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function dr(e){e.display.externalMeasure=null,L(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)ur(e.display.view[t])}function fr(e){dr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function hr(){return u&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function pr(){return u&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function mr(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Rn(e.widgets[n]));return t}function gr(e,t,n,r,o){if(!o){var i=mr(t);n.top+=i,n.bottom+=i}if("line"==r)return n;r||(r="local");var a=an(t);if("local"==r?a+=Gn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:pr());var l=s.left+("window"==r?0:hr());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function vr(e,t,n){if("div"==n)return t;var r=t.left,o=t.top;if("page"==n)r-=hr(),o-=pr();else if("local"==n||!n){var i=e.display.sizer.getBoundingClientRect();r+=i.left,o+=i.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:o-a.top}}function yr(e,t,n,r,o){return r||(r=Xe(e.doc,t.line)),gr(e,r,er(e,r,t.ch,o),n)}function br(e,t,n,r,o,i){function a(t,a){var s=rr(e,o,t,a?"right":"left",i);return a?s.left=s.right:s.right=s.left,gr(e,r,s,n)}r=r||Xe(e.doc,t.line),o||(o=nr(e,r));var s=fe(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=ue(s,l,c),f=ce,h=u(l,d,"before"==c);return null!=f&&(h.other=u(l,f,"before"!=c)),h}function wr(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=zr(e.display)*t.ch);var r=Xe(e.doc,t.line),o=an(r)+Gn(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function kr(e,t,n,r,o){var i=it(e,t,n);return i.xRel=o,r&&(i.outside=r),i}function xr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return kr(r.first,0,null,-1,-1);var o=nt(r,n),i=r.first+r.size-1;if(o>i)return kr(r.first+r.size-1,Xe(r,i).text.length,null,1,1);t<0&&(t=0);for(var a=Xe(r,o);;){var s=Mr(e,a,o,t,n),l=Zt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==o)return c;a=Xe(r,o=c.line)}}function $r(e,t,n,r){r-=mr(t);var o=t.text.length,i=se((function(t){return rr(e,n,t-1).bottom<=r}),o,0);return{begin:i,end:o=se((function(t){return rr(e,n,t).top>r}),i,o)}}function Cr(e,t,n,r){return n||(n=nr(e,t)),$r(e,t,n,gr(e,t,rr(e,n,r),"line").top)}function Sr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Mr(e,t,n,r,o){o-=an(t);var i=nr(e,t),a=mr(t),s=0,l=t.text.length,c=!0,u=fe(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Tr:Lr)(e,t,n,i,u,r,o);s=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var f,h,p=null,m=null,g=se((function(t){var n=rr(e,i,t);return n.top+=a,n.bottom+=a,!!Sr(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(p=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==c;g=p+(b?0:1),h=b?"after":"before",f=y?m.left:m.right}else{c||g!=l&&g!=s||g++,h=0==g?"after":g==t.text.length?"before":rr(e,i,g-(c?1:0)).bottom+a<=o==c?"after":"before";var w=br(e,it(n,g,h),"line",t,i);f=w.left,v=o<w.top?-1:o>=w.bottom?1:0}return kr(n,g=ae(t.text,g,1),h,v,r-f)}function Lr(e,t,n,r,o,i,a){var s=se((function(s){var l=o[s],c=1!=l.level;return Sr(br(e,it(n,c?l.to:l.from,c?"before":"after"),"line",t,r),i,a,!0)}),0,o.length-1),l=o[s];if(s>0){var c=1!=l.level,u=br(e,it(n,c?l.from:l.to,c?"after":"before"),"line",t,r);Sr(u,i,a,!0)&&u.top>a&&(l=o[s-1])}return l}function Tr(e,t,n,r,o,i,a){var s=$r(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,f=0;f<o.length;f++){var h=o[f];if(!(h.from>=c||h.to<=l)){var p=rr(e,r,1!=h.level?Math.min(c,h.to)-1:Math.max(l,h.from)).right,m=p<i?i-p+1e9:p-i;(!u||d>m)&&(u=h,d=m)}}return u||(u=o[o.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Or(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==or){or=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)or.appendChild(document.createTextNode("x")),or.appendChild(O("br"));or.appendChild(document.createTextNode("x"))}T(e.measure,or);var n=or.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),L(e.measure),n||1}function zr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t],"CodeMirror-line-like");T(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}
vendor: 11,352 bytes, line 1
1function Ar(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=i.offsetLeft+i.clientLeft+o,r[s]=i.clientWidth}return{fixedPos:Dr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Dr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Nr(e){var t=Or(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/zr(e.display)-3);return function(o){if(rn(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a<o.widgets.length;a++)o.widgets[a].height&&(i+=o.widgets[a].height);return n?i+(Math.ceil(o.text.length/r)||1)*t:i+t}}function Er(e){var t=e.doc,n=Nr(e);t.iter((function(e){var t=n(e);t!=e.height&&et(e,t)}))}function jr(e,t,n,r){var o=e.display;if(!n&&"true"==Me(t).getAttribute("cm-not-content"))return null;var i,a,s=o.lineSpace.getBoundingClientRect();try{i=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var l,c=xr(e,i,a);if(r&&c.xRel>0&&(l=Xe(e.doc,c.line).text).length==c.ch){var u=P(l,l.length,e.options.tabSize)-l.length;c=it(c.line,Math.max(0,Math.round((i-Yn(e.display).left)/zr(e.display))-u))}return c}function _r(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function Hr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var o=e.display;if(r&&n<o.viewTo&&(null==o.updateLineNumbers||o.updateLineNumbers>t)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)zt&&tn(e.doc,t)<o.viewTo&&Ir(e);else if(n<=o.viewFrom)zt&&nn(e.doc,n+r)>o.viewFrom?Ir(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)Ir(e);else if(t<=o.viewFrom){var i=Br(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):Ir(e)}else if(n>=o.viewTo){var a=Br(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):Ir(e)}else{var s=Br(e,t,t,-1),l=Br(e,n,n+r,1);s&&l?(o.view=o.view.slice(0,s.index).concat($n(e,s.lineN,l.lineN)).concat(o.view.slice(l.index)),o.viewTo+=r):Ir(e)}var c=o.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(o.externalMeasured=null))}function Pr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var i=r.view[_r(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==B(a,n)&&a.push(n)}}}function Ir(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Br(e,t,n,r){var o,i=_r(e,t),a=e.display.view;if(!zt||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,l=0;l<i;l++)s+=a[l].size;if(s!=t){if(r>0){if(i==a.length-1)return null;o=s+a[i].size-t,i++}else o=s-t;t+=o,n+=o}for(;tn(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Wr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=$n(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=$n(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(_r(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat($n(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,_r(e,n)))),r.viewTo=n}function Fr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var o=t[r];o.hidden||o.node&&!o.changes||++n}return n}function Rr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function qr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},o=r.cursors=document.createDocumentFragment(),i=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var l=s.empty();(l||e.options.showCursorWhenSelecting)&&Gr(e,s.head,o),l||Yr(e,s,i)}}return r}function Gr(e,t,n){var r=br(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=n.appendChild(O("div"," ","CodeMirror-cursor"));if(o.style.left=r.left+"px",o.style.top=r.top+"px",o.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var i=n.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));i.style.display="",i.style.left=r.other.left+"px",i.style.top=r.other.top+"px",i.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Ur(e,t){return e.top-t.top||e.left-t.left}function Yr(e,t,n){var r=e.display,o=e.doc,i=document.createDocumentFragment(),a=Yn(e.display),s=a.left,l=Math.max(r.sizerWidth,Vn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==o.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),i.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n                             height: "+(r-t)+"px"))}function d(t,n,r){var i,a,d=Xe(o,t),f=d.text.length;function h(n,r){return yr(e,it(t,n),"div",d,r)}function p(t,n,r){var o=Cr(e,d,null,t),i="ltr"==n==("after"==r)?"left":"right";return h("after"==r?o.begin:o.end-(/\s/.test(d.text.charAt(o.end-1))?2:1),i)[i]}var m=fe(d,o.direction);return le(m,n||0,null==r?f:r,(function(e,t,o,d){var g="ltr"==o,v=h(e,g?"left":"right"),y=h(t-1,g?"right":"left"),b=null==n&&0==e,w=null==r&&t==f,k=0==d,x=!m||d==m.length-1;if(y.top-v.top<=3){var $=(c?w:b)&&x,C=(c?b:w)&&k?s:(g?v:y).left,S=$?l:(g?y:v).right;u(C,v.top,S-C,v.bottom)}else{var M,L,T,O;g?(M=c&&b&&k?s:v.left,L=c?l:p(e,o,"before"),T=c?s:p(t,o,"after"),O=c&&w&&x?l:y.right):(M=c?p(e,o,"before"):s,L=!c&&b&&k?l:v.right,T=!c&&w&&x?s:y.left,O=c?p(t,o,"after"):l),u(M,v.top,L-M,v.bottom),v.bottom<y.top&&u(s,v.bottom,null,y.top),u(T,y.top,O-T,y.bottom)}(!i||Ur(v,i)<0)&&(i=v),Ur(y,i)<0&&(i=y),(!a||Ur(v,a)<0)&&(a=v),Ur(y,a)<0&&(a=y)})),{start:i,end:a}}var f=t.from(),h=t.to();if(f.line==h.line)d(f.line,f.ch,h.ch);else{var p=Xe(o,f.line),m=Xe(o,h.line),g=Qt(p)==Qt(m),v=d(f.line,f.ch,g?p.text.length+1:null).end,y=d(h.line,g?0:null,h.ch).start;g&&(v.top<y.top-2?(u(v.right,v.top,null,v.bottom),u(s,y.top,y.left,y.bottom)):u(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&u(s,v.bottom,null,y.top)}n.appendChild(i)}function Kr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Vr(e){e.state.focused||(e.display.input.focus(),Xr(e))}function Zr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Qr(e))}),100)}function Xr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Kr(e))}function Qr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,M(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Jr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var o=t.view[r],i=e.options.lineWrapping,l=void 0,c=0;if(!o.hidden){if(a&&s<8){var u=o.node.offsetTop+o.node.offsetHeight;l=u-n,n=u}else{var d=o.node.getBoundingClientRect();l=d.bottom-d.top,!i&&o.text.firstChild&&(c=o.text.firstChild.getBoundingClientRect().right-d.left-1)}var f=o.line.height-l;if((f>.005||f<-.005)&&(et(o.line,l),eo(o.line),o.rest))for(var h=0;h<o.rest.length;h++)eo(o.rest[h]);if(c>e.display.sizerWidth){var p=Math.ceil(c/zr(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=o.line,e.display.maxLineChanged=!0)}}}}function eo(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function to(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Gn(e));var o=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,i=nt(t,r),a=nt(t,o);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<i?(i=s,a=nt(t,an(Xe(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(i=nt(t,an(Xe(t,l))-e.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}function no(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),o=null;if(t.top+r.top<0?o=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!p){var i=O("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-Gn(e.display))+"px;\n                         height: "+(t.bottom-t.top+Kn(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(o),e.display.lineSpace.removeChild(i)}}}function ro(e,t,n,r){var o;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?it(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var a=!1,s=br(e,t),l=n&&n!=t?br(e,n):s,c=io(e,o={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(ho(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(mo(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return o}function oo(e,t){var n=io(e,t);null!=n.scrollTop&&ho(e,n.scrollTop),null!=n.scrollLeft&&mo(e,n.scrollLeft)}function io(e,t){var n=e.display,r=Or(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=Zn(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var s=e.doc.height+Un(n),l=t.top<r,c=t.bottom>s-r;if(t.top<o)a.scrollTop=l?0:t.top;else if(t.bottom>o+i){var u=Math.min(t.top,(c?s:t.bottom)-i);u!=o&&(a.scrollTop=u)}var d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,f=Vn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<d?a.scrollLeft=Math.max(0,t.left-(h?0:10)):t.right>f+d-3&&(a.scrollLeft=t.right+(h?0:10)-f),a}function ao(e,t){null!=t&&(uo(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function so(e){uo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function lo(e,t,n){null==t&&null==n||uo(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function co(e,t){uo(e),e.curOp.scrollToPos=t}function uo(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,fo(e,wr(e,t.from),wr(e,t.to),t.margin))}function fo(e,t,n,r){var o=io(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});lo(e,o.scrollLeft,o.scrollTop)}function ho(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||qo(e,{top:t}),po(e,t,!0),n&&qo(e),_o(e,100))}
vendor: 59,240 bytes, line 1
1function po(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function mo(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Ko(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function go(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Un(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Kn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var vo=function(e,t,n){this.cm=n;var r=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,e(r),e(o),pe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),pe(o,"scroll",(function(){o.clientWidth&&t(o.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};vo.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},vo.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},vo.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},vo.prototype.zeroWidthHack=function(){var e=y&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new I,this.disableVert=new I},vo.prototype.enableZeroWidthBar=function(e,t,n){function r(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},vo.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var yo=function(){};function bo(e,t){t||(t=go(e));var n=e.display.barWidth,r=e.display.barHeight;wo(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&Jr(e),wo(e,go(e)),n=e.display.barWidth,r=e.display.barHeight}function wo(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}yo.prototype.update=function(){return{bottom:0,right:0}},yo.prototype.setScrollLeft=function(){},yo.prototype.setScrollTop=function(){},yo.prototype.clear=function(){};var ko={native:vo,null:yo};function xo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ko[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?mo(e,t):ho(e,t)}),e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var $o=0;function Co(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++$o},Sn(e.curOp)}function So(e){var t=e.curOp;t&&Ln(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Mo(e)}))}function Mo(e){for(var t=e.ops,n=0;n<t.length;n++)Lo(t[n]);for(var r=0;r<t.length;r++)To(t[r]);for(var o=0;o<t.length;o++)Oo(t[o]);for(var i=0;i<t.length;i++)zo(t[i]);for(var a=0;a<t.length;a++)Ao(t[a])}function Lo(e){var t=e.cm,n=t.display;Io(t),e.updateMaxLine&&ln(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Po(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function To(e){e.updatedDisplay=e.mustUpdate&&Fo(e.cm,e.update)}function Oo(e){var t=e.cm,n=t.display;e.updatedDisplay&&Jr(t),e.barMeasure=go(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Kn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Vn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function zo(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&mo(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==D();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&bo(t,e.barMeasure),e.updatedDisplay&&Yo(t,e.barMeasure),e.selectionChanged&&Kr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Vr(e.cm)}function Ao(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&Ro(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&po(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&mo(t,e.scrollLeft,!0,!0),e.scrollToPos&&no(t,ro(t,ft(r,e.scrollToPos.from),ft(r,e.scrollToPos.to),e.scrollToPos.margin));var o=e.maybeHiddenMarkers,i=e.maybeUnhiddenMarkers;if(o)for(var a=0;a<o.length;++a)o[a].lines.length||ve(o[a],"hide");if(i)for(var s=0;s<i.length;++s)i[s].lines.length&&ve(i[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ve(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Do(e,t){if(e.curOp)return t();Co(e);try{return t()}finally{So(e)}}function No(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Co(e);try{return t.apply(e,arguments)}finally{So(e)}}}function Eo(e){return function(){if(this.curOp)return e.apply(this,arguments);Co(this);try{return e.apply(this,arguments)}finally{So(this)}}}function jo(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Co(t);try{return e.apply(this,arguments)}finally{So(t)}}}function _o(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,_(Ho,e))}function Ho(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=bt(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(r.line>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength?Ye(t.mode,r.state):null,l=vt(e,i,r,!0);s&&(r.state=s),i.styles=l.styles;var c=i.styleClasses,u=l.classes;u?i.styleClasses=u:c&&(i.styleClasses=null);for(var d=!a||a.length!=i.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=i.styles[f];d&&o.push(r.line),i.stateAfter=r.save(),r.nextLine()}else i.text.length<=e.options.maxHighlightLength&&wt(e,i.text,r),i.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return _o(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&Do(e,(function(){for(var t=0;t<o.length;t++)Pr(e,o[t],"text")}))}}var Po=function(e,t,n){var r=e.display;this.viewport=t,this.visible=to(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Vn(e),this.force=n,this.dims=Ar(e),this.events=[]};function Io(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Kn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Kn(e)+"px",t.scrollbarsClipped=!0)}function Bo(e){if(e.hasFocus())return null;var t=D();if(!t||!A(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&A(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Wo(e){if(e&&e.activeElt&&e.activeElt!=D()&&(e.activeElt.focus(),e.anchorNode&&A(document.body,e.anchorNode)&&A(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Fo(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Ir(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Fr(e))return!1;Vo(e)&&(Ir(e),t.dims=Ar(e));var o=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFrom<i&&i-n.viewFrom<20&&(i=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),zt&&(i=tn(e.doc,i),a=nn(e.doc,a));var s=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Wr(e,i,a),n.viewOffset=an(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Fr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Bo(e);return l>4&&(n.lineDiv.style.display="none"),Go(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Wo(c),L(n.cursorDiv),L(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,_o(e,400)),n.updateLineNumbers=null,!0}function Ro(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Vn(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Un(e.display)-Zn(e),n.top)}),t.visible=to(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Fo(e,t);r=!1){Jr(e);var o=go(e);Rr(e),bo(e,o),Yo(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function qo(e,t){var n=new Po(e,t);if(Fo(e,n)){Jr(e),Ro(e,n);var r=go(e);Rr(e),bo(e,r),Yo(e,r),n.finish()}}function Go(e,t,n){var r=e.display,o=e.options.lineNumbers,i=r.lineDiv,a=i.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var f=c[d];if(f.hidden);else if(f.node&&f.node.parentNode==i){for(;a!=f.node;)a=s(a);var h=o&&null!=t&&t<=u&&f.lineNumber;f.changes&&(B(f.changes,"gutter")>-1&&(h=!1),An(e,f,u,n)),h&&(L(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(ot(e.options,u)))),a=f.node.nextSibling}else{var p=In(e,f,u,n);i.insertBefore(p,a)}u+=f.size}for(;a;)a=s(a)}function Uo(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Yo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Kn(e)+"px"}function Ko(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Dr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=i),n[a].gutterBackground&&(n[a].gutterBackground.style.left=i));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=i}e.options.fixedGutter&&(t.gutters.style.left=r+o+"px")}}function Vo(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=ot(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var o=r.measure.appendChild(O("div",[O("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),i=o.firstChild.offsetWidth,a=o.offsetWidth-i;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(i,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Uo(e.display),!0}return!1}function Zo(e,t){for(var n=[],r=!1,o=0;o<e.length;o++){var i=e[o],a=null;if("string"!=typeof i&&(a=i.style,i=i.className),"CodeMirror-linenumbers"==i){if(!t)continue;r=!0}n.push({className:i,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Xo(e){var t=e.gutters,n=e.gutterSpecs;L(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var o=n[r],i=o.className,a=o.style,s=t.appendChild(O("div",null,"CodeMirror-gutter "+i));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==i&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Uo(e)}function Qo(e){Xo(e.display),Hr(e),Ko(e)}function Jo(e,t,r,o){var i=this;this.input=r,i.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=z("div",null,"CodeMirror-code"),i.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=O("div",null,"CodeMirror-cursors"),i.measure=O("div",null,"CodeMirror-measure"),i.lineMeasure=O("div",null,"CodeMirror-measure"),i.lineSpace=z("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var c=z("div",[i.lineSpace],"CodeMirror-lines");i.mover=O("div",[c],null,"position: relative"),i.sizer=O("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=O("div",null,null,"position: absolute; height: "+W+"px; width: 1px;"),i.gutters=O("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=O("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=O("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),a&&s<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),l||n&&v||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=Zo(o.gutters,o.lineNumbers),Xo(i),r.init(i)}Po.prototype.signal=function(e,t){we(e,t)&&this.events.push(arguments)},Po.prototype.finish=function(){for(var e=this,t=0;t<this.events.length;t++)ve.apply(null,e.events[t])};var ei=0,ti=null;function ni(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function ri(e){var t=ni(e);return t.x*=ti,t.y*=ti,t}function oi(e,t){var r=ni(t),o=r.x,i=r.y,a=e.display,s=a.scroller,c=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(o&&c||i&&u){if(i&&y&&l)e:for(var f=t.target,h=a.view;f!=s;f=f.parentNode)for(var p=0;p<h.length;p++)if(h[p].node==f){e.display.currentWheelTarget=f;break e}if(o&&!n&&!d&&null!=ti)return i&&u&&ho(e,Math.max(0,s.scrollTop+i*ti)),mo(e,Math.max(0,s.scrollLeft+o*ti)),(!i||i&&u)&&xe(t),void(a.wheelStartX=null);if(i&&null!=ti){var m=i*ti,g=e.doc.scrollTop,v=g+a.wrapper.clientHeight;m<0?g=Math.max(0,g+m-50):v=Math.min(e.doc.height,v+m+50),qo(e,{top:g,bottom:v})}ei<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=o,a.wheelDY=i,setTimeout((function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(ti=(ti*ei+n)/(ei+1),++ei)}}),200)):(a.wheelDX+=o,a.wheelDY+=i))}}a?ti=-.53:n?ti=15:u?ti=-.7:f&&(ti=-1/3);var ii=function(e,t){this.ranges=e,this.primIndex=t};ii.prototype.primary=function(){return this.ranges[this.primIndex]},ii.prototype.equals=function(e){var t=this;if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var r=t.ranges[n],o=e.ranges[n];if(!st(r.anchor,o.anchor)||!st(r.head,o.head))return!1}return!0},ii.prototype.deepCopy=function(){for(var e=this,t=[],n=0;n<this.ranges.length;n++)t[n]=new ai(lt(e.ranges[n].anchor),lt(e.ranges[n].head));return new ii(t,this.primIndex)},ii.prototype.somethingSelected=function(){for(var e=this,t=0;t<this.ranges.length;t++)if(!e.ranges[t].empty())return!0;return!1},ii.prototype.contains=function(e,t){var n=this;t||(t=e);for(var r=0;r<this.ranges.length;r++){var o=n.ranges[r];if(at(t,o.from())>=0&&at(e,o.to())<=0)return r}return-1};var ai=function(e,t){this.anchor=e,this.head=t};function si(e,t,n){var r=e&&e.options.selectionsMayTouch,o=t[n];t.sort((function(e,t){return at(e.from(),t.from())})),n=B(t,o);for(var i=1;i<t.length;i++){var a=t[i],s=t[i-1],l=at(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=ut(s.from(),a.from()),u=ct(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;i<=n&&--n,t.splice(--i,2,new ai(d?u:c,d?c:u))}}return new ii(t,n)}function li(e,t){return new ii([new ai(e,t||e)],0)}function ci(e){return e.text?it(e.from.line+e.text.length-1,V(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function ui(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return ci(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ci(t).ch-t.to.ch),it(n,r)}function di(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var o=e.sel.ranges[r];n.push(new ai(ui(o.anchor,t),ui(o.head,t)))}return si(e.cm,n,e.sel.primIndex)}function fi(e,t,n){return e.line==t.line?it(n.line,e.ch-t.ch+n.ch):it(n.line+(e.line-t.line),e.ch)}function hi(e,t,n){for(var r=[],o=it(e.first,0),i=o,a=0;a<t.length;a++){var s=t[a],l=fi(s.from,o,i),c=fi(ci(s),o,i);if(o=s.to,i=c,"around"==n){var u=e.sel.ranges[a],d=at(u.head,u.anchor)<0;r[a]=new ai(d?c:l,d?l:c)}else r[a]=new ai(l,l)}return new ii(r,e.sel.primIndex)}function pi(e){e.doc.mode=qe(e.options,e.doc.modeOption),mi(e)}function mi(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,_o(e,100),e.state.modeGen++,e.curOp&&Hr(e)}function gi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==V(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function vi(e,t,n,r){function o(e){return n?n[e]:null}function i(e,n,o){un(e,n,o,r),On(e,"change",e,t)}function a(e,t){for(var n=[],i=e;i<t;++i)n.push(new cn(c[i],o(i),r));return n}var s=t.from,l=t.to,c=t.text,u=Xe(e,s.line),d=Xe(e,l.line),f=V(c),h=o(c.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(gi(e,t)){var m=a(0,c.length-1);i(d,d.text,h),p&&e.remove(s.line,p),m.length&&e.insert(s.line,m)}else if(u==d)if(1==c.length)i(u,u.text.slice(0,s.ch)+f+u.text.slice(l.ch),h);else{var g=a(1,c.length-1);g.push(new cn(f+u.text.slice(l.ch),h,r)),i(u,u.text.slice(0,s.ch)+c[0],o(0)),e.insert(s.line+1,g)}else if(1==c.length)i(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),o(0)),e.remove(s.line+1,p);else{i(u,u.text.slice(0,s.ch)+c[0],o(0)),i(d,f+d.text.slice(l.ch),h);var v=a(1,c.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}On(e,"change",e,t)}function yi(e,t,n){function r(e,o,i){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=o){var l=i&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}function bi(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Er(e),pi(e),wi(e),e.options.lineWrapping||ln(e),e.options.mode=t.modeOption,Hr(e)}function wi(e){("rtl"==e.doc.direction?N:M)(e.display.lineDiv,"CodeMirror-rtl")}function ki(e){Do(e,(function(){wi(e),Hr(e)}))}function xi(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function $i(e,t){var n={from:lt(t.from),to:ci(t),text:Qe(e,t.from,t.to)};return zi(e,n,t.from.line,t.to.line+1),yi(e,(function(e){return zi(e,n,t.from.line,t.to.line+1)}),!0),n}function Ci(e){for(;e.length&&V(e).ranges;)e.pop()}function Si(e,t){return t?(Ci(e.done),V(e.done)):e.done.length&&!V(e.done).ranges?V(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),V(e.done)):void 0}function Mi(e,t,n,r){var o=e.history;o.undone.length=0;var i,a,s=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=Si(o,o.lastOp==r)))a=V(i.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=ci(t):i.changes.push($i(e,t));else{var l=V(o.done);for(l&&l.ranges||Oi(e.sel,o.done),i={changes:[$i(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,a||ve(e,"historyAdded")}function Li(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ti(e,t,n,r){var o=e.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||Li(e,i,V(o.done),t))?o.done[o.done.length-1]=t:Oi(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&Ci(o.undone)}function Oi(e,t){var n=V(t);n&&n.ranges&&n.equals(e)||t.push(e)}function zi(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i}))}function Ai(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Di(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],o=0;o<t.text.length;++o)r.push(Ai(n[o]));return r}function Ni(e,t){var n=Di(e,t),r=It(e,t);if(!n)return r;if(!r)return n;for(var o=0;o<n.length;++o){var i=n[o],a=r[o];if(i&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<i.length;++c)if(i[c].marker==l.marker)continue e;i.push(l)}else a&&(n[o]=a)}return n}function Ei(e,t,n){for(var r=[],o=0;o<e.length;++o){var i=e[o];if(i.ranges)r.push(n?ii.prototype.deepCopy.call(i):i);else{var a=i.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&B(t,Number(u[1]))>-1&&(V(s)[d]=c[d],delete c[d])}}}return r}function ji(e,t,n,r){if(r){var o=e.anchor;if(n){var i=at(t,o)<0;i!=at(n,o)<0?(o=t,t=n):i!=at(t,n)<0&&(t=n)}return new ai(o,t)}return new ai(n||t,t)}function _i(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),Fi(e,new ii([ji(e.sel.primary(),t,n,o)],0),r)}function Hi(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i<e.sel.ranges.length;i++)r[i]=ji(e.sel.ranges[i],t[i],null,o);Fi(e,si(e.cm,r,e.sel.primIndex),n)}function Pi(e,t,n,r){var o=e.sel.ranges.slice(0);o[t]=n,Fi(e,si(e.cm,o,e.sel.primIndex),r)}function Ii(e,t,n,r){Fi(e,li(t,n),r)}function Bi(e,t,n){var r={ranges:t.ranges,update:function(t){var n=this;this.ranges=[];for(var r=0;r<t.length;r++)n.ranges[r]=new ai(ft(e,t[r].anchor),ft(e,t[r].head))},origin:n&&n.origin};return ve(e,"beforeSelectionChange",e,r),e.cm&&ve(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?si(e.cm,r.ranges,r.ranges.length-1):t}function Wi(e,t,n){var r=e.history.done,o=V(r);o&&o.ranges?(r[r.length-1]=t,Ri(e,t,n)):Fi(e,t,n)}function Fi(e,t,n){Ri(e,t,n),Ti(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Ri(e,t,n){(we(e,"beforeSelectionChange")||e.cm&&we(e.cm,"beforeSelectionChange"))&&(t=Bi(e,t,n));var r=n&&n.bias||(at(t.primary().head,e.sel.primary().head)<0?-1:1);qi(e,Ui(e,t,r,!0)),n&&!1===n.scroll||!e.cm||so(e.cm)}function qi(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,be(e.cm)),On(e,"cursorActivity",e))}function Gi(e){qi(e,Ui(e,e.sel,null,!1))}function Ui(e,t,n,r){for(var o,i=0;i<t.ranges.length;i++){var a=t.ranges[i],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[i],l=Ki(e,a.anchor,s&&s.anchor,n,r),c=Ki(e,a.head,s&&s.head,n,r);(o||l!=a.anchor||c!=a.head)&&(o||(o=t.ranges.slice(0,i)),o[i]=new ai(l,c))}return o?si(e.cm,o,t.primIndex):t}function Yi(e,t,n,r,o){var i=Xe(e,t.line);if(i.markedSpans)for(var a=0;a<i.markedSpans.length;++a){var s=i.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(o&&(ve(l,"beforeCursorEnter"),l.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?u:c)&&(d=Vi(e,d,-r,d&&d.line==t.line?i:null)),d&&d.line==t.line&&(f=at(d,n))&&(r<0?f<0:f>0))return Yi(e,d,t,r,o)}var h=l.find(r<0?-1:1);return(r<0?c:u)&&(h=Vi(e,h,r,h.line==t.line?i:null)),h?Yi(e,h,t,r,o):null}}return t}function Ki(e,t,n,r,o){var i=r||1,a=Yi(e,t,n,i,o)||!o&&Yi(e,t,n,i,!0)||Yi(e,t,n,-i,o)||!o&&Yi(e,t,n,-i,!0);return a||(e.cantEdit=!0,it(e.first,0))}function Vi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,it(t.line-1)):null:n>0&&t.ch==(r||Xe(e,t.line)).text.length?t.line<e.first+e.size-1?it(t.line+1,0):null:new it(t.line,t.ch+n)}function Zi(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),R)}function Xi(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,o,i){t&&(r.from=ft(e,t)),n&&(r.to=ft(e,n)),o&&(r.text=o),void 0!==i&&(r.origin=i)}),ve(e,"beforeChange",e,r),e.cm&&ve(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Qi(e,t,n){if(e.cm){if(!e.cm.curOp)return No(e.cm,Qi)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(we(e,"beforeChange")||e.cm&&we(e.cm,"beforeChange"))||(t=Xi(e,t,!0))){var r=Ot&&!n&&Wt(e,t.from,t.to);if(r)for(var o=r.length-1;o>=0;--o)Ji(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else Ji(e,t)}}function Ji(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=di(e,t);Mi(e,t,n,e.cm?e.cm.curOp.id:NaN),na(e,t,n,It(e,t));var r=[];yi(e,(function(e,n){n||-1!=B(r,e.history)||(sa(e.history,t),r.push(e.history)),na(e,t,null,It(e,t))}))}}function ea(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var o,i=e.history,a=e.sel,s="undo"==t?i.done:i.undone,l="undo"==t?i.undone:i.done,c=0;c<s.length&&(o=s[c],n?!o.ranges||o.equals(e.sel):o.ranges);c++);if(c!=s.length){for(i.lastOrigin=i.lastSelOrigin=null;;){if(!(o=s.pop()).ranges){if(r)return void s.push(o);break}if(Oi(o,l),n&&!o.equals(e.sel))return void Fi(e,o,{clearRedo:!1});a=o}var u=[];Oi(a,l),l.push({changes:u,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var d=we(e,"beforeChange")||e.cm&&we(e.cm,"beforeChange"),f=function(n){var r=o.changes[n];if(r.origin=t,d&&!Xi(e,r,!1))return s.length=0,{};u.push($i(e,r));var i=n?di(e,r):V(s);na(e,r,i,Ni(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:ci(r)});var a=[];yi(e,(function(e,t){t||-1!=B(a,e.history)||(sa(e.history,r),a.push(e.history)),na(e,r,null,Ni(e,r))}))},h=o.changes.length-1;h>=0;--h){var p=f(h);if(p)return p.v}}}}function ta(e,t){if(0!=t&&(e.first+=t,e.sel=new ii(Z(e.sel.ranges,(function(e){return new ai(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Hr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Pr(e.cm,r,"gutter")}}function na(e,t,n,r){if(e.cm&&!e.cm.curOp)return No(e.cm,na)(e,t,n,r);if(t.to.line<e.first)ta(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var o=t.text.length-1-(e.first-t.from.line);ta(e,o),t={from:it(e.first,0),to:it(t.to.line+o,t.to.ch),text:[V(t.text)],origin:t.origin}}var i=e.lastLine();t.to.line>i&&(t={from:t.from,to:it(i,Xe(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qe(e,t.from,t.to),n||(n=di(e,t)),e.cm?ra(e.cm,t,r):vi(e,t,r),Ri(e,n,R),e.cantEdit&&Ki(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function ra(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,s=!1,l=i.line;e.options.lineWrapping||(l=tt(Qt(Xe(r,i.line))),r.iter(l,a.line+1,(function(e){if(e==o.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&be(e),vi(r,t,n,Nr(e)),e.options.lineWrapping||(r.iter(l,i.line+t.text.length,(function(e){var t=sn(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Tt(r,i.line),_o(e,400);var c=t.text.length-(a.line-i.line)-1;t.full?Hr(e):i.line!=a.line||1!=t.text.length||gi(e.doc,t)?Hr(e,i.line,a.line+1,c):Pr(e,i.line,"text");var u=we(e,"changes"),d=we(e,"change");if(d||u){var f={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&On(e,"change",e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function oa(e,t,n,r,o){var i;r||(r=n),at(r,n)<0&&(n=(i=[r,n])[0],r=i[1]),"string"==typeof t&&(t=e.splitLines(t)),Qi(e,{from:n,to:r,text:t,origin:o})}function ia(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function aa(e,t,n,r){for(var o=0;o<e.length;++o){var i=e[o],a=!0;if(i.ranges){i.copied||((i=e[o]=i.deepCopy()).copied=!0);for(var s=0;s<i.ranges.length;s++)ia(i.ranges[s].anchor,t,n,r),ia(i.ranges[s].head,t,n,r)}else{for(var l=0;l<i.changes.length;++l){var c=i.changes[l];if(n<c.from.line)c.from=it(c.from.line+r,c.from.ch),c.to=it(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,o+1),o=0)}}}function sa(e,t){var n=t.from.line,r=t.to.line,o=t.text.length-(r-n)-1;aa(e.done,n,r,o),aa(e.undone,n,r,o)}function la(e,t,n,r){var o=t,i=t;return"number"==typeof t?i=Xe(e,dt(e,t)):o=tt(t),null==o?null:(r(i,o)&&e.cm&&Pr(e.cm,o,n),i)}function ca(e){var t=this;this.lines=e,this.parent=null;for(var n=0,r=0;r<e.length;++r)e[r].parent=t,n+=e[r].height;this.height=n}function ua(e){var t=this;this.children=e;for(var n=0,r=0,o=0;o<e.length;++o){var i=e[o];n+=i.chunkSize(),r+=i.height,i.parent=t}this.size=n,this.height=r,this.parent=null}ai.prototype.from=function(){return ut(this.anchor,this.head)},ai.prototype.to=function(){return ct(this.anchor,this.head)},ai.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},ca.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=this,r=e,o=e+t;r<o;++r){var i=n.lines[r];n.height-=i.height,dn(i),On(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){var r=this;this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var o=0;o<t.length;++o)t[o].parent=r},iterN:function(e,t,n){for(var r=this,o=e+t;e<o;++e)if(n(r.lines[e]))return!0}},ua.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){var n=this;this.size-=t;for(var r=0;r<this.children.length;++r){var o=n.children[r],i=o.chunkSize();if(e<i){var a=Math.min(t,i-e),s=o.height;if(o.removeInner(e,a),n.height-=s-o.height,i==a&&(n.children.splice(r--,1),o.parent=null),0==(t-=a))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ca))){var l=[];this.collapse(l),this.children=[new ca(l)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;n<this.children.length;++n)t.children[n].collapse(e)},insertInner:function(e,t,n){var r=this;this.size+=t.length,this.height+=n;for(var o=0;o<this.children.length;++o){var i=r.children[o],a=i.chunkSize();if(e<=a){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var s=i.lines.length%25+25,l=s;l<i.lines.length;){var c=new ca(i.lines.slice(l,l+=25));i.height-=c.height,r.children.splice(++o,0,c),c.parent=r}i.lines=i.lines.slice(0,s),r.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new ua(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=B(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new ua(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,o=0;o<this.children.length;++o){var i=r.children[o],a=i.chunkSize();if(e<a){var s=Math.min(t,a-e);if(i.iterN(e,s,n))return!0;if(0==(t-=s))break;e=0}else e-=a}}};var da=function(e,t,n){var r=this;if(n)for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o]);this.doc=e,this.node=t};function fa(e,t,n){an(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ao(e,n)}function ha(e,t,n,r){var o=new da(e,n,r),i=e.cm;return i&&o.noHScroll&&(i.display.alignWidgets=!0),la(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==o.insertAt?n.push(o):n.splice(Math.min(n.length-1,Math.max(0,o.insertAt)),0,o),o.line=t,i&&!rn(e,t)){var r=an(t)<e.scrollTop;et(t,t.height+Rn(o)),r&&ao(i,o.height),i.curOp.forceUpdate=!0}return!0})),i&&On(i,"lineWidgetAdded",i,o,"number"==typeof t?t:tt(t)),o}da.prototype.clear=function(){var e=this,t=this.doc.cm,n=this.line.widgets,r=this.line,o=tt(r);if(null!=o&&n){for(var i=0;i<n.length;++i)n[i]==e&&n.splice(i--,1);n.length||(r.widgets=null);var a=Rn(this);et(r,Math.max(0,r.height-a)),t&&(Do(t,(function(){fa(t,r,-a),Pr(t,o,"widget")})),On(t,"lineWidgetCleared",t,this,o))}},da.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var o=Rn(this)-t;o&&(rn(this.doc,r)||et(r,r.height+o),n&&Do(n,(function(){n.curOp.forceUpdate=!0,fa(n,r,o),On(n,"lineWidgetChanged",n,e,tt(r))})))},ke(da);var pa=0,ma=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++pa};function ga(e,t,n,r,o){if(r&&r.shared)return ya(e,t,n,r,o);if(e.cm&&!e.cm.curOp)return No(e.cm,ga)(e,t,n,r,o);var i=new ma(e,o),a=at(t,n);if(r&&H(r,i,!1),a>0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=z("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Xt(e,t.line,t,n,i)||t.line!=n.line&&Xt(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dt()}i.addToHistory&&Mi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(e){c&&i.collapsed&&!c.options.lineWrapping&&Qt(e)==c.display.maxLine&&(s=!0),i.collapsed&&l!=t.line&&et(e,0),_t(e,new Nt(i,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),i.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),i.clearOnEnter&&pe(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(At(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++pa,i.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),i.collapsed)Hr(c,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var u=t.line;u<=n.line;u++)Pr(c,u,"text");i.atomic&&Gi(c.doc),On(c,"markerAdded",c,i)}return i}ma.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){var t=this.doc.cm,n=t&&!t.curOp;if(n&&Co(t),we(this,"clear")){var r=this.find();r&&On(this,"clear",r.from,r.to)}for(var o=null,i=null,a=0;a<this.lines.length;++a){var s=e.lines[a],l=Et(s.markedSpans,e);t&&!e.collapsed?Pr(t,tt(s),"text"):t&&(null!=l.to&&(i=tt(s)),null!=l.from&&(o=tt(s))),s.markedSpans=jt(s.markedSpans,l),null==l.from&&e.collapsed&&!rn(e.doc,s)&&t&&et(s,Or(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var u=Qt(e.lines[c]),d=sn(u);d>t.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=d,t.display.maxLineChanged=!0)}null!=o&&t&&this.collapsed&&Hr(t,o,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Gi(t.doc)),t&&On(t,"markerCleared",t,this,o,i),n&&So(t),this.parent&&this.parent.clear()}},ma.prototype.find=function(e,t){var n,r,o=this;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var a=o.lines[i],s=Et(a.markedSpans,o);if(null!=s.from&&(n=it(t?a:tt(a),s.from),-1==e))return n;if(null!=s.to&&(r=it(t?a:tt(a),s.to),1==e))return r}return n&&{from:n,to:r}},ma.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Do(r,(function(){var o=t.line,i=tt(t.line),a=tr(r,i);if(a&&(ur(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!rn(n.doc,o)&&null!=n.height){var s=n.height;n.height=null;var l=Rn(n)-s;l&&et(o,o.height+l)}On(r,"markerChanged",r,e)}))},ma.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=B(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ma.prototype.detachLine=function(e){if(this.lines.splice(B(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ke(ma);var va=function(e,t){var n=this;this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=n};function ya(e,t,n,r,o){(r=H(r)).shared=!1;var i=[ga(e,t,n,r,o)],a=i[0],s=r.widgetNode;return yi(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),i.push(ga(e,ft(e,t),ft(e,n),r,o));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=V(i)})),new va(i,a)}function ba(e){return e.findMarks(it(e.first,0),e.clipPos(it(e.lastLine())),(function(e){return e.parent}))}function wa(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=r.find(),i=e.clipPos(o.from),a=e.clipPos(o.to);if(at(i,a)){var s=ga(e,i,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function ka(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];yi(n.primary.doc,(function(e){return r.push(e)}));for(var o=0;o<n.markers.length;o++){var i=n.markers[o];-1==B(r,i.doc)&&(i.parent=null,n.markers.splice(o--,1))}},n=0;n<e.length;n++)t(n)}va.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)e.markers[t].clear();On(this,"clear")}},va.prototype.find=function(e,t){return this.primary.find(e,t)},ke(va);var xa=0,$a=function(e,t,n,r,o){if(!(this instanceof $a))return new $a(e,t,n,r,o);null==n&&(n=0),ua.call(this,[new ca([new cn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var i=it(n,0);this.sel=li(i),this.history=new xi(null),this.id=++xa,this.modeOption=t,this.lineSep=r,this.direction="rtl"==o?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),vi(this,{from:i,to:i,text:e}),Fi(this,li(i),R)};$a.prototype=J(ua.prototype,{constructor:$a,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Je(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:jo((function(e){var t=it(this.first,0),n=this.first+this.size-1;Qi(this,{from:t,to:it(n,Xe(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&lo(this.cm,0,0),Fi(this,li(t),R)})),replaceRange:function(e,t,n,r){oa(this,e,t=ft(this,t),n=n?ft(this,n):t,r)},getRange:function(e,t,n){var r=Qe(this,ft(this,e),ft(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(rt(this,e))return Xe(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Xe(this,e)),Qt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ft(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:jo((function(e,t,n){Ii(this,ft(this,"number"==typeof e?it(e,t||0):e),null,n)})),setSelection:jo((function(e,t,n){Ii(this,ft(this,e),ft(this,t||e),n)})),extendSelection:jo((function(e,t,n){_i(this,ft(this,e),t&&ft(this,t),n)})),extendSelections:jo((function(e,t){Hi(this,pt(this,e),t)})),extendSelectionsBy:jo((function(e,t){Hi(this,pt(this,Z(this.sel.ranges,e)),t)})),setSelections:jo((function(e,t,n){var r=this;if(e.length){for(var o=[],i=0;i<e.length;i++)o[i]=new ai(ft(r,e[i].anchor),ft(r,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Fi(this,si(this.cm,o,t),n)}})),addSelection:jo((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ai(ft(this,e),ft(this,t||e))),Fi(this,si(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this,r=this.sel.ranges,o=0;o<r.length;o++){var i=Qe(n,r[o].from(),r[o].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=this,n=[],r=this.sel.ranges,o=0;o<r.length;o++){var i=Qe(t,r[o].from(),r[o].to());!1!==e&&(i=i.join(e||t.lineSeparator())),n[o]=i}return n},replaceSelection:function(e,t,n){for(var r=[],o=0;o<this.sel.ranges.length;o++)r[o]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:jo((function(e,t,n){for(var r=this,o=[],i=this.sel,a=0;a<i.ranges.length;a++){var s=i.ranges[a];o[a]={from:s.from(),to:s.to(),text:r.splitLines(e[a]),origin:n}}for(var l=t&&"end"!=t&&hi(this,o,t),c=o.length-1;c>=0;c--)Qi(r,o[c]);l?Wi(this,l):this.cm&&so(this.cm)})),undo:jo((function(){ea(this,"undo")})),redo:jo((function(){ea(this,"redo")})),undoSelection:jo((function(){ea(this,"undo",!0)})),redoSelection:jo((function(){ea(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var o=0;o<e.undone.length;o++)e.undone[o].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new xi(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ei(this.history.done),undone:Ei(this.history.undone)}},setHistory:function(e){var t=this.history=new xi(this.history.maxGeneration);t.done=Ei(e.done.slice(0),null,!0),t.undone=Ei(e.undone.slice(0),null,!0)},setGutterMarker:jo((function(e,t,n){return la(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:jo((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&la(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,re(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!rt(this,e))return null;if(t=e,!(e=Xe(this,e)))return null}else if(null==(t=tt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:jo((function(e,t,n){return la(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(C(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:jo((function(e,t,n){return la(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",o=e[r];if(!o)return!1;if(null==n)e[r]=null;else{var i=o.match(C(n));if(!i)return!1;var a=i.index+i[0].length;e[r]=o.slice(0,i.index)+(i.index&&a!=o.length?" ":"")+o.slice(a)||null}return!0}))})),addLineWidget:jo((function(e,t,n){return ha(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ga(this,ft(this,e),ft(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ga(this,e=ft(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Xe(this,(e=ft(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var o=n[r];(null==o.from||o.from<=e.ch)&&(null==o.to||o.to>=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,(function(i){var a=i.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&o==e.line&&e.ch>=l.to||null==l.from&&o!=e.line||null!=l.from&&o==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++o})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(o){var i=o.text.length+r;if(i>e)return t=e,!0;e-=i,++n})),ft(this,it(n,t))},indexFromPos:function(e){var t=(e=ft(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new $a(Je(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new $a(Je(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],wa(r,ba(this)),r},unlinkDoc:function(e){var t=this;if(e instanceof Hs&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n)if(t.linked[n].doc==e){t.linked.splice(n,1),e.unlinkDoc(t),ka(ba(t));break}if(e.history==this.history){var r=[e.id];yi(e,(function(e){return r.push(e.id)}),!0),e.history=new xi(null),e.history.done=Ei(this.history.done,r),e.history.undone=Ei(this.history.undone,r)}},iterLinkedDocs:function(e){yi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ee(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:jo((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&ki(this.cm))}))}),$a.prototype.eachLine=$a.prototype.iter;var Ca=0;function Sa(e){var t=this;if(Ta(t),!ye(t,e)&&!qn(t.display,e)){xe(e),a&&(Ca=+new Date);var n=jr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,i=Array(o),s=0,l=function(e,r){if(!t.options.allowDropFileTypes||-1!=B(t.options.allowDropFileTypes,e.type)){var a=new FileReader;a.onload=No(t,(function(){var e=a.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),i[r]=e,++s==o){var l={from:n=ft(t.doc,n),to:n,text:t.doc.splitLines(i.join(t.doc.lineSeparator())),origin:"paste"};Qi(t.doc,l),Wi(t.doc,li(n,ci(l)))}})),a.readAsText(e)}},c=0;c<o;++c)l(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var u=e.dataTransfer.getData("Text");if(u){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Ri(t.doc,li(n,n)),d)for(var f=0;f<d.length;++f)oa(t.doc,"",d[f].anchor,d[f].head,"drag");t.replaceSelection(u,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ma(e,t){if(a&&(!e.state.draggingText||+new Date-Ca<100))Se(t);else if(!ye(e,t)&&!qn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function La(e,t){var n=jr(e,t);if(n){var r=document.createDocumentFragment();Gr(e,n,r),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,r)}}function Ta(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Oa(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var o=t[r].CodeMirror;o&&n.push(o)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var za=!1;function Aa(){za||(Da(),za=!0)}function Da(){var e;pe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Oa(Na)}),100))})),pe(window,"blur",(function(){return Oa(Qr)}))}function Na(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ea={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ja=0;ja<10;ja++)Ea[ja+48]=Ea[ja+96]=String(ja);for(var _a=65;_a<=90;_a++)Ea[_a]=String.fromCharCode(_a);for(var Ha=1;Ha<=12;Ha++)Ea[Ha+111]=Ea[Ha+63235]="F"+Ha;var Pa={};function Ia(e){var t,n,r,o,i=e.split(/-(?!$)/);e=i[i.length-1];for(var a=0;a<i.length-1;a++){var s=i[a];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ba(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var o=Z(n.split(" "),Ia),i=0;i<o.length;i++){var a=void 0,s=void 0;i==o.length-1?(s=o.join(" "),a=r):(s=o.slice(0,i+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Wa(e,t,n,r){var o=(t=Ga(t)).call?t.call(e,r):t[e];if(!1===o)return"nothing";if("..."===o)return"multi";if(null!=o&&n(o))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Wa(e,t.fallthrough,n,r);for(var i=0;i<t.fallthrough.length;i++){var a=Wa(e,t.fallthrough[i],n,r);if(a)return a}}}function Fa(e){var t="string"==typeof e?e:Ea[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Ra(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(x?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(x?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function qa(e,t){if(d&&34==e.keyCode&&e.char)return!1;var n=Ea[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Ra(n,e,t))}function Ga(e){return"string"==typeof e?Pa[e]:e}function Ua(e,t){for(var n=e.doc.sel.ranges,r=[],o=0;o<n.length;o++){for(var i=t(n[o]);r.length&&at(i.from,V(r).to)<=0;){var a=r.pop();if(at(a.from,i.from)<0){i.from=a.from;break}}r.push(i)}Do(e,(function(){for(var t=r.length-1;t>=0;t--)oa(e.doc,"",r[t].from,r[t].to,"+delete");so(e)}))}function Ya(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ka(e,t,n){var r=Ya(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function Va(e,t,n,r,o){if(e){var i=fe(n,t.doc.direction);if(i){var a,s=o<0?V(i):i[0],l=o<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=nr(t,n);a=o<0?n.text.length-1:0;var u=rr(t,c,a).top;a=se((function(e){return rr(t,c,e).top==u}),o<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ya(n,a,1))}else a=o<0?s.to:s.from;return new it(r,a,l)}}return new it(r,o<0?n.text.length:0,o<0?"before":"after")}function Za(e,t,n,r){var o=fe(t,e.doc.direction);if(!o)return Ka(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=ue(o,n.ch,n.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Ka(t,n,r);var s,l=function(e,n){return Ya(t,e instanceof it?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||nr(e,t),Cr(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,f=l(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=u.end:f>=a.from&&f>=u.begin)){var h=d?"before":"after";return new it(n.line,f,h)}}var p=function(e,t,r){for(var i=function(e,t){return t?new it(n.line,l(e,1),"before"):new it(n.line,e,"after")};e>=0&&e<o.length;e+=t){var a=o[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return i(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return i(c,s)}},m=p(i+r,r,u);if(m)return m;var g=r>0?u.end:l(u.begin,-1);return null==g||r>0&&g==t.text.length||!(m=p(r>0?0:o.length-1,r,c(g)))?null:m}Pa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Pa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Pa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Pa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Pa.default=y?Pa.macDefault:Pa.pcDefault;var Xa={selectAll:Zi,singleSelection:function(e){return e.setSelection(e.getCursor("anch
1or"),e.getCursor("head"),R)},killLine:function(e){return Ua(e,(function(t){if(t.empty()){var n=Xe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:it(t.head.line+1,0)}:{from:t.head,to:it(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Ua(e,(function(t){return{from:it(t.from().line,0),to:ft(e.doc,it(t.to().line+1,0))}}))},delLineLeft:function(e){return Ua(e,(function(e){return{from:it(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Ua(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Ua(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(it(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(it(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return Qa(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return es(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return Ja(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),G)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),G)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?es(e,t.head):r}),G)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,o=0;o<n.length;o++){var i=n[o].from(),a=P(e.getLine(i.line),i.ch,r);t.push(K(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Do(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var o=t[r].head,i=Xe(e.doc,o.line).text;if(i)if(o.ch==i.length&&(o=new it(o.line,o.ch-1)),o.ch>0)o=new it(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),it(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=Xe(e.doc,o.line-1).text;a&&(o=new it(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),it(o.line-1,a.length-1),o,"+transpose"))}n.push(new ai(o,o))}e.setSelections(n)}))},newlineAndIndent:function(e){return Do(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);
vendor: 3,489 bytes, line 1
1so(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Qa(e,t){var n=Xe(e.doc,t),r=Qt(n);return r!=n&&(t=tt(r)),Va(!0,e,r,t,1)}function Ja(e,t){var n=Xe(e.doc,t),r=Jt(n);return r!=n&&(t=tt(r)),Va(!0,e,n,t,-1)}function es(e,t){var n=Qa(e,t.line),r=Xe(e.doc,n.line),o=fe(r,e.doc.direction);if(!o||0==o[0].level){var i=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=i&&t.ch;return it(n.line,a?0:i,n.sticky)}return n}function ts(e,t,n){if("string"==typeof t&&!(t=Xa[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),o=t(e)!=F}finally{e.display.shift=r,e.state.suppressEdits=!1}return o}function ns(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var o=Wa(t,e.state.keyMaps[r],n,e);if(o)return o}return e.options.extraKeys&&Wa(t,e.options.extraKeys,n,e)||Wa(t,e.options.keyMap,n,e)}var rs=new I;function os(e,t,n,r){var o=e.state.keySeq;if(o){if(Fa(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:rs.set(50,(function(){e.state.keySeq==o&&(e.state.keySeq=null,e.display.input.reset())})),is(e,o+" "+t,n,r))return!0}return is(e,t,n,r)}function is(e,t,n,r){var o=ns(e,t,r);return"multi"==o&&(e.state.keySeq=t),"handled"==o&&On(e,"keyHandled",e,t,n),"handled"!=o&&"multi"!=o||(xe(n),Kr(e)),!!o}function as(e,t){var n=qa(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?os(e,"Shift-"+n,t,(function(t){return ts(e,t,!0)}))||os(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ts(e,t)})):os(e,n,t,(function(t){return ts(e,t)})))}function ss(e,t,n){return os(e,"'"+n+"'",t,(function(t){return ts(e,t,!0)}))}var ls=null;function cs(e){var t=this;if(t.curOp.focus=D(),!ye(t,e)){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var o=as(t,e);d&&(ls=o?r:null,o||88!=r||_e||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!y&&!o&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||us(t)}}function us(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(M(t,"CodeMirror-crosshair"),ge(document,"keyup",n),ge(document,"mouseover",n))}N(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n)}function ds(e){16==e.keyCode&&(this.doc.sel.shift=!1),ye(this,e)}function fs(e){var t=this;if(!(qn(t.display,e)||ye(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==ls)return ls=null,void xe(e);if(!d||e.which&&!(e.which<10)||!as(t,e)){var o=String.fromCharCode(null==r?n:r);"\b"!=o&&(ss(t,e,o)||t.display.input.onKeyPress(e))}}}var hs,ps,ms=400,gs=function(e,t,n){this.time=e,this.pos=t,this.button=n};function vs(e,t){var n=+new Date;return ps&&ps.compare(n,e,t)?(hs=ps=null,"triple"):hs&&hs.compare(n,e,t)?(ps=new gs(n,e,t),hs=null,"double"):(hs=new gs(n,e,t),ps=null,"single")}function ys(e){var t=this,n=t.display;if(!(ye(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,qn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ls(t,e)){var r=jr(t,e),o=Le(e),i=r?vs(r,o):"single";window.focus(),1==o&&t.state.selectingText&&t.state.selectingText(e),r&&bs(t,o,r,i,e)||(1==o?r?ks(t,r,i,e):Me(e)==n.scroller&&xe(e):2==o?(r&&_i(t.doc,r),setTimeout((function(){return n.input.focus()}
vendor: 2,762 bytes, line 1
1),20)):3==o&&($?t.display.input.onContextMenu(e):Zr(t)))}}function bs(e,t,n,r,o){var i="Click";return"double"==r?i="Double"+i:"triple"==r&&(i="Triple"+i),os(e,Ra(i=(1==t?"Left":2==t?"Middle":"Right")+i,o),o,(function(t){if("string"==typeof t&&(t=Xa[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=F}finally{e.state.suppressEdits=!1}return r}))}function ws(e,t,n){var r=e.getOption("configureMouse"),o=r?r(e,t,n):{};if(null==o.unit){var i=b?n.shiftKey&&n.metaKey:n.altKey;o.unit=i?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==o.extend||e.doc.extend)&&(o.extend=e.doc.extend||n.shiftKey),null==o.addNew&&(o.addNew=y?n.metaKey:n.ctrlKey),null==o.moveOnDrag&&(o.moveOnDrag=!(y?n.altKey:n.ctrlKey)),o}function ks(e,t,n,r){a?setTimeout(_(Vr,e),0):e.curOp.focus=D();var o,i=ws(e,n,r),s=e.doc.sel;e.options.dragDrop&&ze&&!e.isReadOnly()&&"single"==n&&(o=s.contains(t))>-1&&(at((o=s.ranges[o]).from(),t)<0||t.xRel>0)&&(at(o.to(),t)>0||t.xRel<0)?xs(e,r,t,i):Cs(e,r,t,i)}function xs(e,t,n,r){var o=e.display,i=!1,c=No(e,(function(t){l&&(o.scroller.draggable=!1),e.state.draggingText=!1,ge(o.wrapper.ownerDocument,"mouseup",c),ge(o.wrapper.ownerDocument,"mousemove",u),ge(o.scroller,"dragstart",d),ge(o.scroller,"drop",c),i||(xe(t),r.addNew||_i(e.doc,n,null,null,r.extend),l||a&&9==s?setTimeout((function(){o.wrapper.ownerDocument.body.focus(),o.input.focus()}),20):o.input.focus())})),u=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return i=!0};l&&(o.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop(),pe(o.wrapper.ownerDocument,"mouseup",c),pe(o.wrapper.ownerDocument,"mousemove",u),pe(o.scroller,"dragstart",d),pe(o.scroller,"drop",c),Zr(e),setTimeout((function(){return o.input.focus()}),20)}function $s(e,t,n){if("char"==n)return new ai(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ai(it(t.line,0),ft(e.doc,it(t.line+1,0)));var r=n(e,t);return new ai(r.from,r.to)}function Cs(e,t,n,r){var o=e.display,i=e.doc;xe(t);var a,s,l=i.sel,c=l.ranges;if(r.addNew&&!r.extend?(s=i.sel.contains(n),a=s>-1?c[s]:new ai(n,n)):(a=i.sel.primary(),s=i.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new ai(n,n)),n=jr(e,t,!0,!0),s=-1;else{var u=$s(e,n,r.unit);a=r.extend?ji(a,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=c.length,Fi(i,si(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==r.unit&&!r.extend?(Fi(i,si(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=i.sel):Pi(i,s,a,q):(s=0,Fi(i,new ii([a],0),q),l=i.sel);var d=n;function f(t){if(0!=at(d,t))if(d=t,"rectangle"==r.unit){for(var o=[],c=e.options.tabSize,u=P(Xe(i,n.line).text,n.ch,c
vendor: 24,273 bytes, line 1
1),f=P(Xe(i,t.line).text,t.ch,c),h=Math.min(u,f),p=Math.max(u,f),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Xe(i,m).text,y=U(v,h,c);h==p?o.push(new ai(it(m,y),it(m,y))):v.length>y&&o.push(new ai(it(m,y),it(m,U(v,p,c))))}o.length||o.push(new ai(n,n)),Fi(i,si(e,l.ranges.slice(0,s).concat(o),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=a,k=$s(e,t,r.unit),x=w.anchor;at(k.anchor,x)>0?(b=k.head,x=ut(w.from(),k.anchor)):(b=k.anchor,x=ct(w.to(),k.head));var $=l.ranges.slice(0);$[s]=Ss(e,new ai(ft(i,x),b)),Fi(i,si(e,$,s),q)}}var h=o.wrapper.getBoundingClientRect(),p=0;function m(t){var n=++p,a=jr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=at(a,d)){e.curOp.focus=D(),f(a);var s=to(o,i);(a.line>=s.to||a.line<s.from)&&setTimeout(No(e,(function(){p==n&&m(t)})),150)}else{var l=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;l&&setTimeout(No(e,(function(){p==n&&(o.scroller.scrollTop+=l,m(t))})),50)}}function g(t){e.state.selectingText=!1,p=1/0,t&&(xe(t),o.input.focus()),ge(o.wrapper.ownerDocument,"mousemove",v),ge(o.wrapper.ownerDocument,"mouseup",y),i.history.lastSelOrigin=null}var v=No(e,(function(e){0!==e.buttons&&Le(e)?m(e):g(e)})),y=No(e,g);e.state.selectingText=y,pe(o.wrapper.ownerDocument,"mousemove",v),pe(o.wrapper.ownerDocument,"mouseup",y)}function Ss(e,t){var n=t.anchor,r=t.head,o=Xe(e.doc,n.line);if(0==at(n,r)&&n.sticky==r.sticky)return t;var i=fe(o);if(!i)return t;var a=ue(i,n.ch,n.sticky),s=i[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==i.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ue(i,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var f=i[c+(l?-1:0)],h=l==(1==f.level),p=h?f.from:f.to,m=h?"after":"before";return n.ch==p&&n.sticky==m?t:new ai(new it(n.line,p,m),r)}function Ms(e,t,n,r){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&xe(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!we(e,n))return Ce(t);i-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=o)return ve(e,n,e,nt(e.doc,i),e.display.gutterSpecs[l].className,t),Ce(t)}}function Ls(e,t){return Ms(e,t,"gutterClick",!0)}function Ts(e,t){qn(e.display,t)||Os(e,t)||ye(e,t,"contextmenu")||$||e.display.input.onContextMenu(t)}function Os(e,t){return!!we(e,"gutterContextMenu")&&Ms(e,t,"gutterContextMenu",!1)}function zs(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}gs.prototype.compare=function(e,t,n){return this.time+ms>e&&0==at(t,this.pos)&&n==this.button};var As={toString:function(){return"CodeMirror.Init"}},Ds={},Ns={};function Es(e){var t=e.optionHandlers;function n(n,r,o,i){e.defaults[n]=r,o&&(t[n]=i?function(e,t,n){n!=As&&o(e,t,n)}:o)}e.defineOption=n,e.Init=As,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,pi(e)}),!0),n("indentUnit",2,pi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){mi(e),fr(e),Hr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,n.push(it(r,i))}r++}));for(var o=n.length-1;o>=0;o--)oa(e.doc,t,n[o],it(n[o].line,n[o].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=As&&e.refresh()})),n("specialCharPlaceholder",gn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){zs(e),Qo(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ga(t),o=n!=As&&Ga(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,_s,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Zo(t,e.options.lineNumbers),Qo(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Dr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return bo(e)}),!0),n("scrollbarStyle","native",(function(e){xo(e),bo(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Zo(e.options.gutters,t),Qo(e)}),!0),n("firstLineNumber",1,Qo,!0),n("lineNumberFormatter",(function(e){return e}),Qo,!0),n("showCursorWhenSelecting",!1,Rr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Qr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,js),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Rr,!0),n("singleCursorHeightPerLine",!0,Rr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,mi,!0),n("addModeClass",!1,mi,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,mi,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function js(e,t,n){if(!t!=!(n&&n!=As)){var r=e.display.dragFunctions,o=t?pe:ge;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function _s(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(M(e.display.wrapper,"CodeMirror-wrap"),ln(e)),Er(e),Hr(e),fr(e),setTimeout((function(){return bo(e)}),100)}function Hs(e,t){var n=this;if(!(this instanceof Hs))return new Hs(e,t);this.options=t=t?H(t):{},H(Ds,t,!1);var r=t.value;"string"==typeof r?r=new $a(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var o=new Hs.inputStyles[t.inputStyle](this),i=this.display=new Jo(e,r,o,t);for(var c in i.wrapper.CodeMirror=this,zs(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new I,keySeq:null,specialChars:null},t.autofocus&&!v&&i.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Ps(this),Aa(),Co(this),this.curOp.forceUpdate=!0,bi(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout(_(Xr,this),20):Qr(this),Ns)Ns.hasOwnProperty(c)&&Ns[c](n,t[c],As);Vo(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Is.length;++u)Is[u](n);So(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(i.lineDiv).textRendering&&(i.lineDiv.style.textRendering="auto")}function Ps(e){var t=e.display;pe(t.scroller,"mousedown",No(e,ys)),pe(t.scroller,"dblclick",a&&s<11?No(e,(function(t){if(!ye(e,t)){var n=jr(e,t);if(n&&!Ls(e,t)&&!qn(e.display,t)){xe(t);var r=e.findWordAt(n);_i(e.doc,r.anchor,r.head)}}})):function(t){return ye(e,t)||xe(t)}),pe(t.scroller,"contextmenu",(function(t){return Ts(e,t)}));var n,r={end:0};function o(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function i(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}pe(t.scroller,"touchstart",(function(o){if(!ye(e,o)&&!i(o)&&!Ls(e,o)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!qn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var i,a=e.coordsChar(t.activeTouch,"page");i=!r.prev||l(r,r.prev)?new ai(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new ai(it(a.line,0),ft(e.doc,it(a.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),xe(n)}o()})),pe(t.scroller,"touchcancel",o),pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(ho(e,t.scroller.scrollTop),mo(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))})),pe(t.scroller,"mousewheel",(function(t){return oi(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return oi(e,t)})),pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||Se(t)},over:function(t){ye(e,t)||(La(e,t),Se(t))},start:function(t){return Ma(e,t)},drop:No(e,Sa),leave:function(t){ye(e,t)||Ta(e)}};var c=t.input.getField();pe(c,"keyup",(function(t){return ds.call(e,t)})),pe(c,"keydown",No(e,cs)),pe(c,"keypress",No(e,fs)),pe(c,"focus",(function(t){return Xr(e,t)})),pe(c,"blur",(function(t){return Qr(e,t)}))}Hs.defaults=Ds,Hs.optionHandlers=Ns;var Is=[];function Bs(e,t,n,r){var o,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=bt(e,t).state:n="prev");var a=e.options.tabSize,s=Xe(i,t),l=P(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=i.mode.indent(o,s.text.slice(u.length),s.text))==F||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>i.first?P(Xe(i,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",f=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)f+=a,d+="\t";if(f<c&&(d+=K(c-f)),d!=u)return oa(i,d,it(t,0),it(t,u.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<i.sel.ranges.length;p++){var m=i.sel.ranges[p];if(m.head.line==t&&m.head.ch<u.length){var g=it(t,u.length);Pi(i,p,new ai(g,g));break}}}Hs.defineInitHook=function(e){return Is.push(e)};var Ws=null;function Fs(e){Ws=e}function Rs(e,t,n,r,o){var i=e.doc;e.display.shift=!1,r||(r=i.sel);var a=+new Date-200,s="paste"==o||e.state.pasteIncoming>a,l=Ee(t),c=null;if(s&&r.ranges.length>1)if(Ws&&Ws.text.join("\n")==t){if(r.ranges.length%Ws.text.length==0){c=[];for(var u=0;u<Ws.text.length;u++)c.push(i.splitLines(Ws.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=Z(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var h=r.ranges[f],p=h.from(),m=h.to();h.empty()&&(n&&n>0?p=it(p.line,p.ch-n):e.state.overwrite&&!s?m=it(m.line,Math.min(Xe(i,m.line).text.length,m.ch+V(l).length)):s&&Ws&&Ws.lineWise&&Ws.text.join("\n")==t&&(p=m=it(p.line,0)));var g={from:p,to:m,text:c?c[f%c.length]:l,origin:o||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Qi(e.doc,g),On(e,"inputRead",e,g)}t&&!s&&Gs(e,t),so(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function qs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Do(t,(function(){return Rs(t,n,0,null,"paste")})),!0}function Gs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s<i.electricChars.length;s++)if(t.indexOf(i.electricChars.charAt(s))>-1){a=Bs(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Xe(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Bs(e,o.head.line,"smart"));a&&On(e,"electricInput",e,o.head.line)}}}function Us(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var o=e.doc.sel.ranges[r].head.line,i={anchor:it(o,0),head:it(o+1,0)};n.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:n}}function Ys(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Ks(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Ys(e),t}function Vs(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,o=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&No(this,t[e])(this,n,o),ve(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ga(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Eo((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");X(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Hr(this)})),removeOverlay:Eo((function(e){for(var t=this,n=this.state.overlays,r=0;r<n.length;++r){var o=n[r].modeSpec;if(o==e||"string"==typeof e&&o.name==e)return n.splice(r,1),t.state.modeGen++,void Hr(t)}})),indentLine:Eo((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),rt(this.doc,e)&&Bs(this,e,t,n)})),indentSelection:Eo((function(e){for(var t=this,n=this.doc.sel.ranges,r=-1,o=0;o<n.length;o++){var i=n[o];if(i.empty())i.head.line>r&&(Bs(t,i.head.line,e,!0),r=i.head.line,o==t.doc.sel.primIndex&&so(t));else{var a=i.from(),s=i.to(),l=Math.max(r,a.line);r=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var c=l;c<r;++c)Bs(t,c,e);var u=t.doc.sel.ranges;0==a.ch&&n.length==u.length&&u[o].from().ch>0&&Pi(t.doc,o,new ai(a,u[o].to()),R)}}})),getTokenAt:function(e,t){return Ct(this,e,t)},getLineTokens:function(e,t){return Ct(this,it(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=yt(this,Xe(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]<i)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=this,o=[];if(!n.hasOwnProperty(t))return o;var i=n[t],a=this.getModeAt(e);if("string"==typeof a[t])i[a[t]]&&o.push(i[a[t]]);else if(a[t])for(var s=0;s<a[t].length;s++){var l=i[a[t][s]];l&&o.push(l)}else a.helperType&&i[a.helperType]?o.push(i[a.helperType]):i[a.name]&&o.push(i[a.name]);for(var c=0;c<i._global.length;c++){var u=i._global[c];u.pred(a,r)&&-1==B(o,u.val)&&o.push(u.val)}return o},getStateAfter:function(e,t){var n=this.doc;return bt(this,(e=dt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return br(this,null==e?n.head:"object"==typeof e?ft(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return yr(this,ft(this.doc,e),t||"page")},coordsChar:function(e,t){return xr(this,(e=vr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=vr(this,{top:e,left:0},t||"page").top,nt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,o=!1;if("number"==typeof e){var i=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>i&&(e=i,o=!0),r=Xe(this.doc,e)}else r=e;return gr(this,r,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-an(r):0)},defaultTextHeight:function(){return Or(this.display)},defaultCharWidth:function(){return zr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i=this.display,a=(e=br(this,ft(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(i.wrapper.clientHeight,this.doc.height),c=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==o?(s=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?s=0:"middle"==o&&(s=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&oo(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Eo(cs),triggerOnKeyPress:Eo(fs),triggerOnKeyUp:ds,triggerOnMouseDown:Eo(ys),execCommand:function(e){if(Xa.hasOwnProperty(e))return Xa[e].call(null,this)},triggerElectric:Eo((function(e){Gs(this,e)})),findPosH:function(e,t,n,r){var o=this,i=1;t<0&&(i=-1,t=-t);for(var a=ft(this.doc,e),s=0;s<t&&!(a=Zs(o.doc,a,i,n,r)).hitSide;++s);return a},moveH:Eo((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Zs(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),G)})),deleteH:Eo((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Ua(this,(function(n){var o=Zs(r,n.head,e,t,!1);return e<0?{from:o,to:n.head}:{from:n.head,to:o}}))})),findPosV:function(e,t,n,r){var o=this,i=1,a=r;t<0&&(i=-1,t=-t);for(var s=ft(this.doc,e),l=0;l<t;++l){var c=br(o,s,"div");if(null==a?a=c.left:c.left=a,(s=Xs(o,c,i,n)).hitSide)break}return s},moveV:Eo((function(e,t){var n=this,r=this.doc,o=[],i=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(i)return e<0?a.from():a.to();var s=br(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),o.push(s.left);var l=Xs(n,s,e,t);return"page"==t&&a==r.sel.primary()&&ao(n,yr(n,l,"div").top-s.top),l}),G),o.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=o[a]})),findWordAt:function(e){var t=Xe(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var i=t.charAt(n),a=ne(i,o)?function(e){return ne(e,o)}:/\s/.test(i)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new ai(it(e.line,n),it(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?N(this.display.cursorDiv,"CodeMirror-overwrite"):M(this.display.cursorDiv,"CodeMirror-overwrite"),ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==D()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Eo((function(e,t){lo(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Kn(this)-this.display.barHeight,width:e.scrollWidth-Kn(this)-this.display.barWidth,clientHeight:Zn(this),clientWidth:Vn(this)}},scrollIntoView:Eo((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:it(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?co(this,e):fo(this,e.from,e.to,e.margin)})),setSize:Eo((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&dr(this);var o=this.display.viewFrom;this.doc.iter(o,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Pr(n,o,"widget");break}++o})),this.curOp.forceUpdate=!0,ve(this,"refresh",this)})),operation:function(e){return Do(this,e)},startOperation:function(){return Co(this)},endOperation:function(){return So(this)},refresh:Eo((function(){var e=this.display.cachedTextHeight;Hr(this),this.curOp.forceUpdate=!0,fr(this),lo(this,this.doc.scrollLeft,this.doc.scrollTop),Uo(this.display),(null==e||Math.abs(e-Or(this.display))>.5)&&Er(this),ve(this,"refresh",this)})),swapDoc:Eo((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),bi(this,e),fr(this),this.display.input.reset(),lo(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,On(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ke(e),e.registerHelper=function(t,r,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=o},e.registerGlobalHelper=function(t,r,o,i){e.registerHelper(t,r,i),n[t]._global.push({pred:o,val:i})}}function Zs(e,t,n,r,o){var i=t,a=n,s=Xe(e,t.line);function l(){var r=t.line+n;return!(r<e.first||r>=e.first+e.size)&&(t=new it(r,t.ch,t.sticky),s=Xe(e,r))}function c(r){var i;if(null==(i=o?Za(e.cm,s,t,n):Ka(s,t,n))){if(r||!l())return!1;t=Va(o,e.cm,s,t.line,n)}else t=i;return!0}if("char"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||c(!h);h=!1){var p=s.text.charAt(t.ch)||"\n",m=ne(p,f)?"w":d&&"\n"==p?"n":!d||/\s/.test(p)?null:"p";if(!d||h||m||(m="s"),u&&u!=m){n<0&&(n=1,c(),t.sticky="after");break}if(m&&(u=m),n>0&&!c(!h))break}var g=Ki(e,t,i,a,!0);return st(i,g)&&(g.hitSide=!0),g}function Xs(e,t,n,r){var o,i,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*Or(e.display),3);o=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(;(i=xr(e,s,o)).outside;){if(n<0?o<=0:o>=a.height){i.hitSide=!0;break}o+=5*n}return i}var Qs=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new I,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Js(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=Xe(e.doc,t.line),o=Qn(n,r,t.line),i=fe(r,e.doc.direction),a="left";i&&(a=ue(i,t.ch)%2?"right":"left");var s=ar(o.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function el(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function tl(e,t){return t&&(e.bad=!0),e}function nl(e,t,n,r,o){var i="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(i+=s,l&&(i+=s),a=l=!1)}function d(e){e&&(u(),i+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var i,h=t.getAttribute("cm-marker");
vendor: 5,366 bytes, line 1
1if(h){var p=e.findMarks(it(r,0),it(o+1,0),c(+h));return void(p.length&&(i=p[0].find(0))&&d(Qe(e.doc,i.from,i.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&u();for(var g=0;g<t.childNodes.length;g++)f(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),m&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;f(t),t!=n;)t=t.nextSibling,l=!1;return i}function rl(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return tl(e.clipPos(it(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var o=0;o<e.display.view.length;o++){var i=e.display.view[o];if(i.node==r)return ol(i,t,n)}}function ol(e,t,n){var r=e.text.firstChild,o=!1;if(!t||!A(r,t))return tl(it(tt(e.line),0),!0);if(t==r&&(o=!0,t=r.childNodes[n],n=0,!t)){var i=e.rest?V(e.rest):e.line;return tl(it(tt(i),i.text.length),o)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var o=-1;o<(c?c.length:0);o++)for(var i=o<0?l.map:c[o],a=0;a<i.length;a+=3){var s=i[a+2];if(s==t||s==n){var u=tt(o<0?e.line:e.rest[o]),d=i[a]+r;return(r<0||s!=t)&&(d=i[a+(r?1:0)]),it(u,d)}}}var d=u(a,s,n);if(d)return tl(d,o);for(var f=s.nextSibling,h=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=u(f,f.firstChild,0))return tl(it(d.line,d.ch-h),o);h+=f.textContent.length}for(var p=s.previousSibling,m=n;p;p=p.previousSibling){if(d=u(p,p.firstChild,-1))return tl(it(d.line,d.ch+m),o);m+=p.textContent.length}}Qs.prototype.init=function(e){var t=this,n=this,r=n.cm,o=n.div=e.lineDiv;function i(e){if(!ye(r,e)){if(r.somethingSelected())Fs({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Us(r);Fs({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,R),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var i=Ws.text.join("\n");if(e.clipboardData.setData("Text",i),e.clipboardData.getData("Text")==i)return void e.preventDefault()}var a=Ks(),s=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),s.value=Ws.text.join("\n");var l=document.activeElement;j(s),setTimeout((function(){r.display.lineSpace.removeChild(a),l.focus(),l==o&&n.showPrimarySelection()}),50)}}Ys(o,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),pe(o,"paste",(function(e){ye(r,e)||qs(e,r)||s<=11&&setTimeout(No(r,(function(){return t.updateFromDOM()})),20)})),pe(o,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),pe(o,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),pe(o,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),pe(o,"touchstart",(function(){return n.forceCompositionEnd()})),pe(o,"input",(function(){t.composing||t.readFromDOMSoon()})),pe(o,"copy",i),pe(o,"cut",i)},Qs.prototype.prepareSelection=function(){var e=qr(this.cm,!1);return e.focus=this.cm.state.focused,e},Qs.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Qs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Qs.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),o=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||o.line>=t.display.viewTo||i.line<t.display.viewFrom)e.removeAllRanges();else{var a=rl(t,e.anchorNode,e.anchorOffset),s=rl(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=at(ut(a,s),o)||0!=at(ct(a,s),i)){var l=t.display.view,c=o.line>=t.display.viewFrom&&Js(t,o)||{node:l[0].measure.map[2],offset:0},u=i.line<t.display.viewTo&&Js(t,i);if(!u){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(c&&u){var h,p=e.rangeCount&&e.getRangeAt(0);try{h=S(c.node,c.offset,u.offset,u.node)}catch(e){}h&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Qs.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Qs.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},Qs.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Qs.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return A(this.div,t)}
vendor: 12,209 bytes, line 1
1,Qs.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Qs.prototype.blur=function(){this.div.blur()},Qs.prototype.getField=function(){return this.div},Qs.prototype.supportsTouch=function(){return!0},Qs.prototype.receivedFocus=function(){var e=this;function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.selectionInEditor()?this.pollSelection():Do(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,t)},Qs.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Qs.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&u&&this.cm.display.gutterSpecs.length&&el(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=rl(t,e.anchorNode,e.anchorOffset),r=rl(t,e.focusNode,e.focusOffset);n&&r&&Do(t,(function(){Fi(t.doc,li(n,r),R),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Qs.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,o=r.display,i=r.doc.sel.primary(),a=i.from(),s=i.to();if(0==a.ch&&a.line>r.firstLine()&&(a=it(a.line-1,Xe(r.doc,a.line-1).length)),s.ch==Xe(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=it(s.line+1,0)),a.line<o.viewFrom||s.line>o.viewTo-1)return!1;a.line==o.viewFrom||0==(e=_r(r,a.line))?(t=tt(o.view[0].line),n=o.view[0].node):(t=tt(o.view[e].line),n=o.view[e-1].node.nextSibling);var l,c,u=_r(r,s.line);if(u==o.view.length-1?(l=o.viewTo-1,c=o.lineDiv.lastChild):(l=tt(o.view[u+1].line)-1,c=o.view[u+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(nl(r,n,c,t,l)),f=Qe(r.doc,it(t,0),it(l,Xe(r.doc,l).text.length));d.length>1&&f.length>1;)if(V(d)==V(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var h=0,p=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);h<v&&m.charCodeAt(h)==g.charCodeAt(h);)++h;for(var y=V(d),b=V(f),w=Math.min(y.length-(1==d.length?h:0),b.length-(1==f.length?h:0));p<w&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)++p;if(1==d.length&&1==f.length&&t==a.line)for(;h&&h>a.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)h--,p++;d[d.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var k=it(t,h),x=it(l,f.length?V(f).length-p:0);return d.length>1||d[0]||at(k,x)?(oa(r.doc,d,k,x,"+input"),!0):void 0},Qs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qs.prototype.reset=function(){this.forceCompositionEnd()},Qs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Qs.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Qs.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Do(this.cm,(function(){return Hr(e.cm)}))},Qs.prototype.setUneditable=function(e){e.contentEditable="false"},Qs.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||No(this.cm,Rs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Qs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Qs.prototype.onContextMenu=function(){},Qs.prototype.resetPosition=function(){},Qs.prototype.needsContentAttribute=!0;var il=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new I,this.hasSelection=!1,this.composing=null};function al(e,t){if((t=t?H(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=D();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var o;if(e.form&&(pe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var i=e.form;o=i.submit;try{var a=i.submit=function(){r(),i.submit=o,i.submit(),i.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=o))}},e.style.display="none";var s=Hs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function sl(e){e.off=ge,e.on=pe,e.wheelEventPixels=ri,e.Doc=$a,e.splitLines=Ee,e.countColumn=P,e.findColumn=U,e.isWordChar=te,e.Pass=F,e.signal=ve,e.Line=cn,e.changeEnd=ci,e.scrollbarModel=ko,e.Pos=it,e.cmpPos=at,e.modes=Ie,e.mimeModes=Be,e.resolveMode=Re,e.getMode=qe,e.modeExtensions=Ge,e.extendMode=Ue,e.copyState=Ye,e.startState=Ve,e.innerMode=Ke,e.commands=Xa,e.keyMap=Pa,e.keyName=qa,e.isModifierKey=Fa,e.lookupKey=Wa,e.normalizeKeyMap=Ba,e.StringStream=Ze,e.SharedTextMarker=va,e.TextMarker=ma,e.LineWidget=da,e.e_preventDefault=xe,e.e_stopPropagation=$e,e.e_stop=Se,e.addClass=N,e.contains=A,e.rmClass=M,e.keyNames=Ea}il.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var o=this.textarea;function i(e){if(!ye(r,e)){if(r.somethingSelected())Fs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Us(r);Fs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,R):(n.prevInput="",o.value=t.text.join("\n"),j(o))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(o.style.width="0px"),pe(o,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pe(o,"paste",(function(e){ye(r,e)||qs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pe(o,"cut",i),pe(o,"copy",i),pe(e.scroller,"paste",(function(t){if(!qn(e,t)&&!ye(r,t)){if(!o.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,o.dispatchEvent(i)}})),pe(e.lineSpace,"selectstart",(function(t){qn(e,t)||xe(t)})),pe(o,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pe(o,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},il.prototype.createField=function(e){this.wrapper=Ks(),this.textarea=this.wrapper.firstChild},il.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=qr(e);if(e.options.moveInputWithCursor){var o=br(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},il.prototype.showSelection=function(e){var t=this.cm.display;T(t.cursorDiv,e.cursors),T(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},il.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&j(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||D()!=this.textarea))try{this.textarea.focus()}catch(e){}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},il.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},il.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||je(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===o||y&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r="​"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,o.length);l<c&&r.charCodeAt(l)==o.charCodeAt(l);)++l;return Do(t,(function(){Rs(t,o.slice(l),r.length-l,null,e.composing?"*compose":null),o.length>1e3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=jr(n,e),c=r.scroller.scrollTop;if(i&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(i)&&No(n,Fi)(n.doc,li(i),R);var u,f=o.style.cssText,h=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n      z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=window.scrollY),r.input.focus(),l&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),$){Se(e);var m=function(){ge(window,"mouseup",m),setTimeout(v,20)};pe(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=o.selectionStart){var e=n.somethingSelected(),i="​"+(e?o.value:"");o.value="⇚",o.value=i,t.prevInput=e?"":"​",o.selectionStart=1,o.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,o.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=o.selectionStart)){(!a||a&&s<9)&&g();var e=0,i=function(){r.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"​"==t.prevInput?No(n,Zi)(n):e++<10?r.detectingSelectAll=setTimeout(i,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(i,200)}}},il.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,Es(Hs),Vs(Hs);var ll="iter insert remove copy getEditor constructor".split(" ");for(var cl in $a.prototype)$a.prototype.hasOwnProperty(cl)&&B(ll,cl)<0&&(Hs.prototype[cl]=function(e){return function(){return e.apply(this.doc,arguments)}}($a.prototype[cl]));return ke($a),Hs.inputStyles={textarea:il,contenteditable:Qs},Hs.defineMode=function(e){Hs.defaults.mode||"null"==e||(Hs.defaults.mode=e),We.apply(this,arguments)},Hs.defineMIME=Fe,Hs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}}
1)),Hs.defineMIME("text/plain","null"),Hs.defineExtension=function(e,t){Hs.prototype[e]=t},Hs.defineDocExtension=function(e,t){$a.prototype[e]=t},Hs.fromTextArea=al,sl(Hs),Hs.version="5.50.2",Hs}();var Ue=Ge.exports;function Ye(t){let n,r;return{c(){n=y("div"),r=y("textarea"),C(r,"class","textarea"),C(r,"tabindex","0 "),r.value=t[0],C(n,"class","outside svelte-1qxuf")},m(e,o){m(e,n,o),p(n,r),t[6](r)},p(e,[t]){1&t&&(r.value=e[0])},i:e,o:e,d(e){e&&g(n),t[6](null)}}}function Ke(e,t,n){let r,o,{text:i=""}=t,{autofocus:a=!1}=t,{onChange:s=null}=t,{highlight:l=(()=>{})}=t,{onEnter:c=(e=>Ue.Pass)}=t;return A((()=>{r=Ue.fromTextArea(o,{autofocus:!1,viewportMargin:1/0,extraKeys:{Enter:c}}),r.on("change",(e=>{s&&s(),function(e){e.getAllMarks().forEach((e=>e.clear()))}(e),n(0,i=e.getValue()),(l(i)||[]).forEach((t=>{let n=e.posFromIndex(t.start),o=e.posFromIndex(t.end);r.markText(n,o,{className:t.tag})}))})),Ue.signal(r,"change",r),!0===a&&setTimeout((()=>{r.focus(),r.setCursor(r.lineCount(),0)}),500)})),e.$$set=e=>{"text"in e&&n(0,i=e.text),"autofocus"in e&&n(2,a=e.autofocus),"onChange"in e&&n(3,s=e.onChange),"highlight"in e&&n(4,l=e.highlight),"onEnter"in e&&n(5,c=e.onEnter)},[i,o,a,s,l,c,function(e){N[e?"unshift":"push"]((()=>{o=e,n(1,o)}))}]}class Ve extends ee{constructor(e){super(),J(this,e,Ke,Ye,i,{text:0,autofocus:2,onChange:3,highlight:4,onEnter:5})}}var Ze={exports:{}};function Xe(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];"object"!=typeof n||Object.isFrozen(n)||Xe(n)})),e}Ze.exports=Xe,Ze.exports.default=Xe;class Qe{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Je(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function et(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const tt=e=>!!e.scope||e.sublanguage&&e.language;class nt{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=Je(e)}openNode(e){if(!tt(e))return;let t="";t=e.sublanguage?`language-${e.language}`:((e,{prefix:t})=>{if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix}),this.span(t)}closeNode(e){tt(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const rt=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class ot{constructor(){this.rootNode=rt(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=rt({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{ot._collapse(e)})))}}class it extends ot{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.sublanguage=!0,n.language=t,this.add(n)}toHTML(){return new nt(this,this.options).value()}finalize(){return!0}}function at(e){return e?"string"==typeof e?e:e.source:null}function st(e){return ut("(?=",e,")")}function lt(e){return ut("(?:",e,")*")}function ct(e){return ut("(?:",e,")?")}function ut(...e){return e.map((e=>at(e))).join("")}function dt(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e);return"("+(t.capture?"":"?:")+e.map((e=>at(e))).join("|")+")"}function ft(e){return new RegExp(e.toString()+"|").exec("").length-1}const ht=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function pt(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n;let r=at(e),o="";for(;r.length>0;){const e=ht.exec(r);if(!e){o+=r;break}o+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?o+="\\"+String(Number(e[1])+t):(o+=e[0],"("===e[0]&&n++)}return o}
vendor: 3,616 bytes, line 1
1)).map((e=>`(${e})`)).join(t)}const mt="[a-zA-Z]\\w*",gt="[a-zA-Z_]\\w*",vt="\\b\\d+(\\.\\d+)?",yt="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",bt="\\b(0b[01]+)",wt={begin:"\\\\[\\s\\S]",relevance:0},kt={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[wt]},xt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[wt]},$t=function(e,t,n={}){const r=et({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=dt("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:ut(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Ct=$t("//","$"),St=$t("/\\*","\\*/"),Mt=$t("#","$"),Lt={scope:"number",begin:vt,relevance:0},Tt={scope:"number",begin:yt,relevance:0},Ot={scope:"number",begin:bt,relevance:0},zt={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[wt,{begin:/\[/,end:/\]/,relevance:0,contains:[wt]}]}]},At={scope:"title",begin:mt,relevance:0},Dt={scope:"title",begin:gt,relevance:0},Nt={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var Et=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:mt,UNDERSCORE_IDENT_RE:gt,NUMBER_RE:vt,C_NUMBER_RE:yt,BINARY_NUMBER_RE:bt,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=ut(t,/.*\b/,e.binary,/\b.*/)),et({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:wt,APOS_STRING_MODE:kt,QUOTE_STRING_MODE:xt,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:$t,C_LINE_COMMENT_MODE:Ct,C_BLOCK_COMMENT_MODE:St,HASH_COMMENT_MODE:Mt,NUMBER_MODE:Lt,C_NUMBER_MODE:Tt,BINARY_NUMBER_MODE:Ot,REGEXP_MODE:zt,TITLE_MODE:At,UNDERSCORE_TITLE_MODE:Dt,METHOD_GUARD:Nt,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function jt(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function _t(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function Ht(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=jt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function Pt(e,t){Array.isArray(e.illegal)&&(e.illegal=dt(...e.illegal))}function It(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Bt(e,t){void 0===e.relevance&&(e.relevance=1)}const Wt=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]})),e.keywords=n.keywords,e.begin=ut(n.beforeMatch,st(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},Ft=["of","and","for","in","not","or","if","then","parent","list","value"];function Rt(e,t,n="keyword"){const r=Object.create(null);return"string"==typeof e?o(n,e.split(" ")):Array.isArray(e)?o(n,e):Object.keys(e).forEach((function(n){Object.assign(r,Rt(e[
vendor: 4,104 bytes, line 1
1n],t,n))})),r;function o(e,n){t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|");r[n[0]]=[e,qt(n[0],n[1])]}))}}function qt(e,t){return t?Number(t):function(e){return Ft.includes(e.toLowerCase())}(e)?0:1}const Gt={},Ut=e=>{console.error(e)},Yt=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Kt=(e,t)=>{Gt[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Gt[`${e}/${t}`]=!0)},Vt=new Error;function Zt(e,t,{key:n}){let r=0;const o=e[n],i={},a={};for(let e=1;e<=t.length;e++)a[e+r]=o[e],i[e+r]=!0,r+=ft(t[e-1]);e[n]=a,e[n]._emit=i,e[n]._multi=!0}function Xt(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Ut("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Vt;if("object"!=typeof e.beginScope||null===e.beginScope)throw Ut("beginScope must be object"),Vt;Zt(e,e.begin,{key:"beginScope"}),e.begin=pt(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Ut("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Vt;if("object"!=typeof e.endScope||null===e.endScope)throw Ut("endScope must be object"),Vt;Zt(e,e.end,{key:"endScope"}),e.end=pt(e.end,{joinWith:""})}}(e)}function Qt(e){function t(t,n){return new RegExp(at(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=ft(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(pt(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return e.classNameAliases=et(e.classNameAliases||{}),function n(o,i){const a=o;if(o.isCompiled)return a;[_t,It,Xt,Wt].forEach((e=>e(o,i))),e.compilerExtensions.forEach((e=>e(o,i))),o.__beforeBegin=null,[Ht,Pt,Bt].forEach((e=>e(o,i))),o.isCompiled=!0;let s=null;return"object"==typeof o.keywords&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),s=o.keywords.$pattern,delete o.keywords.$pattern),s=s||/\w+/,o.keywords&&(o.keywords=Rt(o.keywords,e.case_insensitive)),a.keywordPatternRe=t(s,!0),i&&(o.begin||(o.begin=/\B|\b/),a.beginRe=t(a.begin),o.end||o.endsWithParent||(o.end=/\B|\b/),o.end&&(a.endRe=t(a.end)),a.terminatorEnd=at(a.end)||"",o.endsWithParent&&i.terminatorEnd&&(a.terminatorEnd+=(o.end?"|":"")+i.terminatorEnd)),o.illegal&&(a.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return et(e,{variants:null},t)})));
vendor: 6,465 bytes, line 1
1if(e.cachedVariants)return e.cachedVariants;if(Jt(e))return et(e,{starts:e.starts?et(e.starts):null});if(Object.isFrozen(e))return et(e);return e}("self"===e?o:e)}))),o.contains.forEach((function(e){n(e,a)})),o.starts&&n(o.starts,i),a.matcher=function(e){const t=new r;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(a),a}(e)}function Jt(e){return!!e&&(e.endsWithParent||Jt(e.starts))}class en extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const tn=Je,nn=et,rn=Symbol("nomatch");var on=function(e){const t=Object.create(null),n=Object.create(null),r=[];let o=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:it};function l(e){return s.noHighlightRe.test(e)}function c(e,t,n){let r="",o="";"object"==typeof t?(r=e,n=t.ignoreIllegals,o=t.language):(Kt("10.7.0","highlight(lang, code, ...args) has been deprecated."),Kt("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),o=e,r=t),void 0===n&&(n=!0);const i={code:r,language:o};y("before:highlight",i);const a=i.result?i.result:u(i.language,i.code,n);return a.code=i.code,y("after:highlight",a),a}function u(e,n,r,a){const l=Object.create(null);function c(){if(!C.keywords)return void M.addText(L);let e=0;C.keywordPatternRe.lastIndex=0;let t=C.keywordPatternRe.exec(L),n="";for(;t;){n+=L.substring(e,t.index);const o=k.case_insensitive?t[0].toLowerCase():t[0],i=(r=o,C.keywords[r]);if(i){const[e,r]=i;if(M.addText(n),n="",l[o]=(l[o]||0)+1,l[o]<=7&&(T+=r),e.startsWith("_"))n+=t[0];else{const n=k.classNameAliases[e]||e;M.addKeyword(t[0],n)}}else n+=t[0];e=C.keywordPatternRe.lastIndex,t=C.keywordPatternRe.exec(L)}var r;n+=L.substring(e),M.addText(n)}function f(){null!=C.subLanguage?function(){if(""===L)return;let e=null;if("string"==typeof C.subLanguage){if(!t[C.subLanguage])return void M.addText(L);e=u(C.subLanguage,L,!0,S[C.subLanguage]),S[C.subLanguage]=e._top}else e=d(L,C.subLanguage.length?C.subLanguage:null);C.relevance>0&&(T+=e.relevance),M.addSublanguage(e._emitter,e.language)}():c(),L=""}function h(e,t){let n=1;const r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}const r=k.classNameAliases[e[n]]||e[n],o=t[n];r?M.addKeyword(o,r):(L=o,c(),L=""),n++}}function p(e,t){return e.scope&&"string"==typeof e.scope&&M.openNode(k.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(M.addKeyword(L,k.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),L=""):e.beginScope._multi&&(h(e.beginScope,t),L="")),C=Object.create(e,{parent:{value:C}}),C}function g(e,t,n){let r=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,n);if(r){if(e["on:end"]){const n=new Qe(e);e["on:end"](t,n),n.isMatchIgnored&&(r=!1)}if(r){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return g(e.parent,t,n)}function v(e){return 0===C.matcher.regexIndex?(L+=e[0],1):(A=!0,0)}function y(e){const t=e[0],r=n.substring(e.index),o=g(C,e,r);if(!o)return rn;const i=C;C.endScope&&C.endScope._wrap?(f(),M.addKeyword(t,C.endScope._wrap)):C.endScope&&C.endScope._multi?(f(),h(C.endScope,e)):i.skip?L+=t:(i.returnEnd||i.excludeEnd||(L+=t),f(),i.excludeEnd&&(L=t));do{C.scope&&M.closeNode(),C.skip||C.subLanguage||(T+=C.relevance),C=C.parent}while(C!==o.parent);return o.starts&&p(o.starts,e),i.returnEnd?0:t.length}let b={};function w(t,i){const a=i&&i[0];if(L+=t,null==a)return f(),0;if("begin"===b.type&&"end"===i.type&&b.index===i.index&&""===a){if(L+=n.slice(i.index,i.index+1),!o){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=b.rule,t}return 1}if(b=i,"begin"===i.type)return function(e){const t=e[0],n=e.rule,r=new Qe(n),o=[n.__beforeBegin,n["on:begin"]];for(const n of o)if(n&&(n(e,r),r.isMatchIgnored))return v(t);return n.skip?L+=t:(n.excludeBegin&&(L+=t),f(),n.returnBegin||n.excludeBegin||(L=t)),p(n,e),n.returnBegin?0:t.length}(i);if("illegal"===i.type&&!r){const e=new Error('Illegal lexeme "'+a+'" for mode "'+(C.scope||"<unnamed>")+'"');throw e.mode=C,e}if("end"===i.type){const e=y(i);if(e!==rn)return e}if("illegal"===i.type&&""===a)return 1;if(z>1e5&&z>3*i.index){throw new Error("potential infinite loop, way more iterations than matches")}return L+=a,a.length}const k=m(e);if(!k)throw Ut(i.replace("{}",e)),new Error('Unknown language: "'+e+'"');const x=Qt(k);let $="",C=a||x;const S={},M=new s.__emitter(s);!function(){const e=[];for(let t=C;t!==k;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach((e=>M.openNode(e)))}();let L="",T=0,O=0,z=0,A=!1;try{for(C.matcher.considerAll();;){z++,A?A=!1:C.matcher.considerAll(),C.matcher.lastIndex=O;const e=C.matcher.exec(n);if(!e)break;const t=w(n.substring(O,e.index),e);O=e.index+t}return w(n.substring(O)),M.closeAllNodes(),M.finalize(),$=M.toHTML(),{language:e,value:$,relevance:T,illegal:!1,_emitter:M,_top:C}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:tn(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:O,context:n.slice(O-100,O+100),mode:t.mode,resultSoFar:$},_emitter:M};if(o)return{language:e,value:tn(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:C};throw t}}function d(e,n){n=n||s.languages||Object.keys(t);const r=function(e){const t={value:tn(e),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return t._emitter.addText(e),t}(e),o=n.filter(m).filter(v).map((t=>u(t,e,!1)));o.unshift(r);const i=o.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(m(e.language).supersetOf===t.language)return 1;if(m(t.language).supersetOf===e.language)return-1}return 0})),[l,c]=i,d=l;return d.secondBest=c,d}function f(e){let t=null;const r=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=s.languageDetectRe.exec(t);if(n){const t=m(n[1]);return t||(Yt(i.replace("{}",n[1])),Yt("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>l(e)||m(e)))}(e);if(l(r))return;if(y("before:highlightElement",{el:e,language:r}),e.children.length>
10&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),s.throwUnescapedHTML)){throw new en("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const o=t.textContent,a=r?c(o,{language:r,ignoreIllegals:!0}):d(o);e.innerHTML=a.value,function(e,t,r){const o=t&&n[t]||r;e.classList.add("hljs"),e.classList.add(`language-${o}`)}(e,r,a.language),e.result={language:a.language,re:a.relevance,relevance:a.relevance},a.secondBest&&(e.secondBest={language:a.secondBest.language,relevance:a.secondBest.relevance}),y("after:highlightElement",{el:e,result:a,text:o})}let h=!1;function p(){if("loading"===document.readyState)return void(h=!0);document.querySelectorAll(s.cssSelector).forEach(f)}function m(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function g(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{n[e.toLowerCase()]=t}))}function v(e){const t=m(e);return t&&!t.disableAutodetect}function y(e,t){const n=e;r.forEach((function(e){e[n]&&e[n](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){h&&p()}),!1),Object.assign(e,{highlight:c,highlightAuto:d,highlightAll:p,highlightElement:f,highlightBlock:function(e){return Kt("10.7.0","highlightBlock will be removed entirely in v12.0"),Kt("10.7.0","Please use highlightElement now."),f(e)},configure:function(e){s=nn(s,e)},initHighlighting:()=>{p(),Kt("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")},initHighlightingOnLoad:function(){p(),Kt("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")},registerLanguage:function(n,r){let i=null;try{i=r(e)}catch(e){if(Ut("Language definition for '{}' could not be registered.".replace("{}",n)),!o)throw e;Ut(e),i=a}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&g(i.aliases,{languageName:n})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]},listLanguages:function(){return Object.keys(t)},getLanguage:m,registerAliases:g,autoDetection:v,inherit:nn,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),r.push(e)}}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString="11.7.0",e.regex={concat:ut,lookahead:st,either:dt,optional:ct,anyNumberOfTimes:lt};for(const e in Et)"object"==typeof Et[e]&&Ze.exports(Et[e]);return Object.assign(e,Et),e}({});function an(t){let n,r,o,i,a,s,l,c,u,d,f;return d=new je({props:{seed:"45ea07497996cea6af4"}}),{c(){n=y("div"),n.textContent="okay consider -",r=k(),o=y("div"),o.innerHTML='<div class="i" style="font-size:1.8rem; line-height:2rem;">we put</div> \n      <div class="tab f2">all of our information</div>',i=k(),a=y("div"),a.textContent="into text.",s=k(),l=y("div"),c=k(),u=y("div"),V(d.$$.fragment),C(n,"class","f09"),C(o,"class","more m1"),C(a,"class","tab i f2 rose"),L(l,"margin-top","3rem"),C(u,"class","margin-left:15rem;")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),m(e,i,t),m(e,a,t),m(e,s,t),m(e,l,t),m(e,c,t),m(e,u,t),Z(d,u,null),f=!0},p:e,i(e){f||(Y(d.$$.fragment,e),f=!0)},o(e){K(d.$$.fragment,e),f=!1},d(e){e&&g(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a),e&&g(s),e&&g(l),e&&g(c),e&&g(u),X(d)}}}function sn(t){let n,r,o,i,a,s;return o=new je({props:{seed:"8935149fa5750c247c9"}}),{c(){n=y("div"),r=y("div"),V(o.$$.fragment),i=k(),a=y("div"),a.innerHTML='and we can\n        <span class="sky">search</span>\n        it, or <span class="sky">read</span> it-',L(r,"max-width","180px"),L(r,"margin-bottom","1rem"),C(n,"class","tab down f09 col")},m(e,t){m(e,n,t),p(n,r),Z(o,r,null),p(n,i),p(n,a),s=!0},p:e,i(e){s||(Y(o.$$.fragment,e),s=!0)},o(e){K(o.$$.fragment,e),s=!1},d(e){e&&g(n),X(o)}}}function ln(t){let n,r,o,i,a,s,l,c,u,d,f,h,v,b,w,x,$,S,M;return d=new je({props:{seed:"d6ba2837558e747e314"}}),S=new je({props:{seed:"6daf3fd1a93ca04509c"}}),{c(){n=y("div"),r=y("span"),r.textContent="but we can't",o=k(),i=y("div"),i.innerHTML='<div class="sea i f2 sky">get</div> \n        <div style="position:relative; margin-top:1.2rem;"><span class="red ">the</span>
1 \n          <span class="red f09 i">actual</span> \n          <span class="sea b i f2" style="top:22px; left:32px; position:absolute;">information</span></div>',a=k(),s=y("div"),s.innerHTML='<sup style="font-size:12px; ">-◡</sup>\n        back\n        <sub style="font-size:1.1rem;"> ?</sub> \n        <span style="margin-left:0.4rem; font-size:12px;">◜</span> \n        \n        <span style="font-size:12px;">-◡</span>',l=k(),c=y("div"),c.innerHTML='<span style="font-size:12px;">like</span>, to <i>use it</i>  again?',u=k(),V(d.$$.fragment),f=k(),h=y("div"),v=k(),b=y("div"),b.textContent="which is weird actually.",w=k(),x=y("div"),$=k(),V(S.$$.fragment),C(r,"class","down i"),C(i,"class","tab "),C(s,"class","sky i "),L(s,"font-size","2.0rem"),L(s,"margin-left","20px"),L(s,"margin-top","2.3rem"),C(c,"class","tab down f09"),C(n,"style",""),L(h,"margin-top","3rem"),C(b,"class","tab down f09"),C(x,"class","tab down f09")},m(e,t){m(e,n,t),p(n,r),p(n,o),p(n,i),p(n,a),p(n,s),p(n,l),p(n,c),p(n,u),Z(d,n,null),m(e,f,t),m(e,h,t),m(e,v,t),m(e,b,t),m(e,w,t),m(e,x,t),m(e,$,t),Z(S,e,t),M=!0},p:e,i(e){M||(Y(d.$$.fragment,e),Y(S.$$.fragment,e),M=!0)},o(e){K(d.$$.fragment,e),K(S.$$.fragment,e),M=!1},d(e){e&&g(n),X(d),e&&g(f),e&&g(h),e&&g(v),e&&g(b),e&&g(w),e&&g(x),e&&g($),X(S,e)}}}function cn(t){let n,r,o,i,a;return{c(){n=y("div"),n.textContent="yet people",r=k(),o=y("div"),o.textContent="keep typing",i=k(),a=y("div"),a.textContent="more of it.",C(n,"class","f09"),C(o,"class","i sea tab"),C(a,"class","f09 tab")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),m(e,i,t),m(e,a,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a)}}}function un(t){let n,r,o,i;return o=new je({props:{seed:"1a30de68df4ea7e7bef"}}),{c(){n=y("div"),r=k(),V(o.$$.fragment),L(n,"width","250px")},m(e,t){m(e,n,t),m(e,r,t),Z(o,e,t),i=!0},p:e,i(e){i||(Y(o.$$.fragment,e),i=!0)},o(e){K(o.$$.fragment,e),i=!1},d(e){e&&g(n),e&&g(r),X(o,e)}}}function dn(t){let n,r,o,i,a,s,l;return{c(){n=y("div"),r=k(),o=y("div"),o.innerHTML='<b class="sky f2">compromise</b>  is a set\n      <div class="tab" style="margin-top:1.4rem;">of tools and standards -</div>',i=k(),a=y("ul"),a.innerHTML='<div>to mess with text.</div> \n      \n      <div class="sea down tab f2 " style="position:relative; margin:4rem;">like a crowbar, <div style="">for words.</div></div> \n      <div class="f09 i down">pull a chunk out-\n        \n        \n        <div class="tab f09">and <i>get something back</i> from your text.</div></div>',s=k(),l=y("div"),C(n,"class","space"),C(l,"class","down")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),m(e,i,t),m(e,a,t),m(e,s,t),m(e,l,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a),e&&g(s),e&&g(l)}}}function fn(t){let n,r,o,i,a,s;return n=new je({props:{seed:"0e387bb94350923b76a"}}),a=new je({props:{seed:"80bb8622591df22c704"}}),{c(){V(n.$$.fragment),r=k(),o=y("div"),o.innerHTML='<div class="sea f09">seriously -</div> \n      <kbd class="src svelte-14efhaz">&lt;script src=&quot;https://unpkg.com/compromise&quot;&gt;&lt;/script&gt;</kbd> \n      <kbd class="svelte-14efhaz">npm install compromise</kbd>',i=k(),V(a.$$.fragment),C(o,"class","tab some svelte-14efhaz")},m(e,t){Z(n,e,t),m(e,r,t),m(e,o,t),m(e,i,t),Z(a,e,t),s=!0},p:e,i(e){s||(Y(n.$$.fragment,e),Y(a.$$.fragment,e),s=!0)},o(e){K(n.$$.fragment,e),K(a.$$.fragment,e),s=!1},d(e){X(n,e),e&&g(r),e&&g(o),e&&g(i),X(a,e)}}}function hn(t){let n,r,o,i,a,s,l,c,u,d,f,h,v,b,x,$,S,M,T,O,z,A,D,N,E;return c=new Pe({props:{width:30,color:"#72697D"}}),v=new Pe({props:{width:30,color:"#cf9b97"}}),T=new Pe({props:{width:30,color:"#cf9b97"}}),N=new Pe({props:{width:30,color:"#2D85A8"}}),{c(){n=y("div"),n.innerHTML='<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 130 130"><path d="M 65,29 C 59,19 49,12 37,12 20,12 7,25 7,42 7,75 25,80 65,118 105,80 123,75 123,42 123,25 110,12 93,12 81,12 71,19 65,29 z" id="path4" style="fill:#cf9b97"></path></svg>',r=k(),o=y("div"),i=y("div"),a=y("a"),s=w("spanish\n          "),l=y("span"),V(c.$$.fragment),u=k(),d=y("a"),f=w("german\n          "),h=y("span"),V(v.$$.fragment),b=k(),x=y("div"),$=y("a"),S=w("french\n          "),M=y("span"),V(T.$$.fragment),O=k(),z=y("a"),A=w("italian\n          "),D=y("span"),V(N.$$.fragment),L(n,"width","35px"),L(n,"margin-left","2rem"),L(n,"padding-top","4rem"),L(n,"transform","rotate(-6deg)"),L(l,"position","relative"),L(l,"top","0.4rem"),C(a,"href","./one/spanish"),C(a,"class","nowrap svelte-14efhaz"),L(h,"position","relative"),L(h,"top","0.4rem"),C(d,"href","./one/german"),L(d,"margin-top","12rem"),C(d,"class","nowrap svelte-14efhaz"),L(M,"position","relative"),L(M,"top","0.4rem"),C($,"href","./one/french"),L($,"margin-top","6rem"),C($,"class","nowrap svelte-14efhaz"),L(D,"position","relative"),L(D,"top","0.4rem"),C(z,"href","./one/italian"),L(z,"margin-top","18rem"),C(z,"class","nowrap svelte-14efhaz"),C(o,"class","row svelte-14efhaz")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),p(o,i),p(i,a),p(a,s),p(a,l),Z(c,l,null),p(i,u),p(i,d),p(d,f),p(d,h),Z(v,h,null),p(o,b),p(o,x),p(x,$),p($,S),p($,M),Z(T,M,null),p(x,O),p(x,z),p(z,A),p(z,D),Z(N,D,null),E=!0},p:e,i(e){E||(Y(c.$$.fragment,e),Y(v.$$.fragment,e),Y(T.$$.fragment,e),Y(N.$$.fragment,e),E=!0)},o(e){K(c.$$.fragment,e),K(v.$$.fragment,e),K(T.$$.fragment,e),K(N.$$.fragment,e),E=!1},d(e){e&&g(n),e&&g(r),e&&g(o),X(c),X(v),X(T),X(N)}}}function pn(e){let t,n,r,o,i,a,s,l,c,u,d,f,h,p,v,y,b,w,x,$;return t=new fe({}),r=new le({props:{$$slots:{default:[an]},$$scope:{ctx:e}}}),i=new fe({props:{$$slots:{default:[sn]},$$scope:{ctx:e}}}),s=new le({props:{$$slots:{default:[ln]},$$scope:{ctx:e}}}),c=new fe({}),d=new fe({props:{$$slots:{default:[cn]},$$scope:{ctx:e}}}),h=new fe({props:{$$slots:{default:[un]},$$scope:{ctx:e}}}),v=new le({props:{$$slots:{default:[dn]},$$scope:{ctx:e}}}),b=new we({props:{$$slots:{default:[fn]},$$scope:{ctx:e}}}),x=new ge({props:{$$slots:{default:[hn]},$$scope:{ctx:e}}}),{c(){V(t.$$.fragment),n=k(),V(r.$$.fragment),o=k(),V(i.$$.fragment),a=k(),V(s.$$.fragment),l=k(),V(c.$$.fragment),u=k(),V(d.$$.fragment),f=k(),V(h.$$.fragment),p=k(),V(v.$$.fragment),y=k(),V(b.$$.fragment),w=k(),V(x.$$.fragment)},m(e,g){Z(t,e,g),m(e,n,g),Z(r,e,g),m(e,o,g),Z(i,e,g),m(e,a,g),Z(s,e,g),m(e,l,g),Z(c,e,g),m(e,u,g),Z(d,e,g),m(e,f,g),Z(h,e,g),m(e,p,g),Z(v,e,g),m(e,y,g),Z(b,e,g),m(e,w,g),Z(x,e,g),$=!0},p(e,t){const n={};1&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n);const o={};1&t&&(o.$$scope={dirty:t,ctx:e}),i.$set(o);const a={};1&t&&(a.$$scope={dirty:t,ctx:e}),s.$set(a);const l={};1&t&&(l.$$scope={dirty:t,ctx:e}),d.$set(l);const c={};1&t&&(c.$$scope={dirty:t,ctx:e}),h.$set(c);const u={};1&t&&(u.$$scope={dirty:t,ctx:e}),v.$set(u);const f={};1&t&&(f.$$scope={dirty:t,ctx:e}),b.$set(f);const p={};1&t&&(p.$$scope={dirty:t,ctx:e}),x.$set(p)},i(e){$||(Y(t.$$.fragment,e),Y(r.$$.fragment,e),Y(i.$$.fragment,e),Y(s.$$.fragment,e),Y(c.$$.fragment,e),Y(d.$$.fragment,e),Y(h.$$.fragment,e),Y(v.$$.fragment,e),Y(b.$$.fragment,e),Y(x.$$.fragment,e),$=!0)},o(e){K(t.$$.fragment,e),K(r.$$.fragment,e),K(i.$$.fragment,e),K(s.$$.fragment,e),K(c.$$.fragment,e),K(d.$$.fragment,e),K(h.$$.fragment,e),K(v.$$.fragment,e),K(b.$$.fragment,e),K(x.$$.fragment,e),$=!1},d(e){X(t,e),e&&g(n),X(r,e),e&&g(o),X(i,e),e&&g(a),X(s,e),e&&g(l),X(c,e),e&&g(u),X(d,e),e&&g(f),X(h,e),e&&g(p),X(v,e),e&&g(y),X(b,e),e&&g(w),X(x,e)}}}function mn(e){let t,n,r,o;return r=new oe({props:{$$slots:{default:[pn]},$$scope:{ctx:e}}}),{c(){t=y("div"),t.innerHTML='<a class="link svelte-14efhaz" href="https://observablehq.com/@spencermountain/nlp-compromise">docs</a> \n  <a class="link svelte-14efhaz" href="https://github.com/spencermountain/compromise">github</a>',n=k(),V(r.$$.fragment),C(t,"class","row svelte-14efhaz")},m(e,i){m(e,t,i),m(e,n,i),Z(r,e,i),o=!0},p(e,[t]){const n={};1&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n)},i(e){o||(Y(r.$$.fragment,e),o=!0)},o(e){K(r.$$.fragment,e),o=!1},d(e){e&&g(t),e&&g(n),X(r,e)}}}function gn(e){return console.log(nlp.version),[]}on.HighlightJS=on,on.default=on;class vn extends ee{constructor(e){super(),J(this,e,gn,mn,i,{})}}function yn(e){return yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yn(e)}function bn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wn(e,t)}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var kn=function(e,t,n){var r=bn(e.split("/"),2),o=r[0],i=bn(r[1].split(":"),2),a=i[0],s=i[1];return Date.UTC(n,o-1,a,s)-36e5*t},xn=function(e,t,n,r,o){var i=new Date(e).getUTCFullYear(),a=kn(t,o,i),s=kn(n,r,i);return e>=a&&e<s},$n=function(e){var t=e.timezones[e.tz];if(void 0===t)return console.warn("Warning: couldn't find timezone "+e.tz),0;if(void 0===t.dst)return t.offset;var n=t.offset,r=t.offset+1;"n"===t.hem&&(r=n-1);var o=t.dst.split("->");return!0===xn(e.epoch,o[0],o[1],n,r)?n:r},Cn=["africa","america","asia","atlantic","australia","brazil","canada","chile","europe","indian","mexico","pacific","antarctica","etc"];var Sn,Mn=(Sn=Object.freeze({__proto__:null,default:{"9|s":"2/dili,2/jayapura","9|n":"2/chita,2/khandyga,2/pyongyang,2/seoul,2/tokyo,11/palau","9.5|s|04/04:03->10/03:02":"4/adelaide,4/broken_hill,4/south,4/yancowinna","9.5|s":"4/darwin,4/north","8|s|03/08:01->10/04:00":"12/casey","8|s":"2/kuala_lumpur,2/makassar,2/singapore,4/perth,4/west","8|n|03/25:03->09/29:23":"2/ulan_bator","8|n":"2/brunei,2/choibalsan,2/chongqing,2/chungking,2/harbin,2/hong_kong,2/irkutsk,2/kuching,2/macao,2/macau,2/manila,2/shanghai,2/taipei,2/ujung_pandang,2/ulaanbaatar","8.75|s":"4/eucla","7|s":"12/davis,2/jakarta,9/christmas","7|n":"2/bangkok,2/barnaul,2/ho_chi_minh,2/hovd,2/krasnoyarsk,2/novokuznetsk,2/novosibirsk,2/phnom_penh,2/pontianak,2/saigon,2/tomsk,2/vientiane","6|s":"12/vostok","6|n":"2/almaty,2/bishkek,2/dacca,2/dhaka,2/kashgar,2/omsk,2/qyzylorda,2/qostanay,2/thimbu,2/thimphu,2/urumqi,9/chagos","6.5|n":"2/rangoon,2/yangon,9/cocos","5|s":"12/mawson,9/kerguelen","5|n":"2/aqtau,2/aqtobe,2/ashgabat,2/ashkhabad,2/atyrau,2/baku,2/dushanbe,2/karachi,2/oral,2/samarkand,2/tashkent,2/yekaterinburg,9/maldives","5.75|n":"2/kathmandu,2/katmandu","5.5|n":"2/calcutta,2/colombo,2/kolkata","4|s":"9/reunion","4|n":"2/dubai,2/muscat,2/tbilisi,2/yerevan,8/astrakhan,8/samara,8/saratov,8/ulyanovsk,8/volgograd,2/volgograd,9/mahe,9/mauritius","4.5|n|03/22:00->09/21:24":"2/tehran","4.5|n":"2/kabul","3|s":"12/syowa,9/antananarivo","3|n|03/28:03->10/31:04":"2/famagusta,2/nicosia,8/athens,8/bucharest,8/helsinki,8/kiev,8/mariehamn,8/nicosia,8/riga,8/sofia,8/tallinn,8/uzhgorod,8/vilnius,8/zaporozhye","3|n|03/28:02->10/31:03":"8/chisinau,8/tiraspol","3|n|03/28:00->10/30:24":"2/beirut","3|n|03/27:00->10/30:01":"2/gaza,2/hebron","3|n|03/26:02->10/31:02":"2/jerusalem,2/tel_aviv","3|n|03/26:00->10/29:01":"2/amman","3|n|03/26:00->10/28:24":"2/damascus","3|n":"0/addis_ababa,0/asmara,0/asmera,0/dar_es_salaam,0/djibouti,0/juba,0/kampala,0/mogadishu,0/nairobi,2/aden,2/baghdad,2/bahrain,2/istanbul,2/kuwait,2/qatar,2/riyadh,8/istanbul,8/kirov,8/minsk,8/moscow,8/simferopol,9/comoro,9/mayotte","2|s|03/28:02->10/31:02":"12/troll","2|s":"0/gaborone,0/harare,0/johannesburg,0/lubumbashi,0/lusaka,0/maputo,0/maseru,0/mbabane","2|n|03/28:02->10/31:03":"0/ceuta,arctic/longyearbyen,3/jan_mayen,8/amsterdam,8/andorra,8/belgrade,8/berlin,8/bratislava,8/brussels,8/budapest,8/busingen,8/copenhagen,8/gibraltar,8/ljubljana,8/luxembourg,8/madrid,8/malta,8/monaco,8/oslo,8/paris,8/podgorica,8/prague,8/rome,8/san_marino,8/sarajevo,8/skopje,8/stockholm,8/tirane,8/vaduz,8/vatican,8/vienna,8/warsaw,8/zagreb,8/zurich","2|n":"0/blantyre,0/bujumbura,0/cairo,0/khartoum,0/kigali,0/tripoli,8/kaliningrad","1|s|04/02:01->09/03:03":"0/windhoek","1|s":"0/kinshasa,0/luanda","1|n|04/11:03->05/16:02":"0/casablanca,0/el_aaiun","1|n|03/28:01->10/31:02":"3/canary,3/faeroe,3/faroe,3/madeira,8/belfast,8/dublin,8/guernsey,8/isle_of_man,8/jersey,8/lisbon,8/london","1|n":"0/algiers,0/bangui,0/brazzaville,0/douala,0/lagos,0/libreville,0/malabo,0/ndjamena,0/niamey,0/porto-novo,0/tunis","14|n":"11/kiritimati","13|s|04/04:04->09/26:03":"11/apia","13|s|01/15:02->11/05:03":"11/tongatapu","13|n":"11/enderbury,11/fakaofo","12|s|04/04:03->09/26:02":"12/mcmurdo,12/south_pole,11/auckland","12|s|01/17:03->11/14:02":"11/fiji","12|n":"2/anadyr,2/kamchatka,2/srednekolymsk,11/funafuti,11/kwajalein,11/majuro,11/nauru,11/tarawa,11/wake,11/wallis","12.75|s|04/04:03->04/04:02":"11/chatham","11|s|04/04:03->10/03:02":"12/macquarie","11|s":"11/bougainville","11|n":"2/magadan,2/sakhalin,11/efate,11/guadalcanal,11/kosrae,11/noumea,11/pohnpei,11/ponape","11.5|n|04/04:03->10/03:02":"11/norfolk","10|s|04/04:03->10/03:02":"4/act,4/canberra,4/currie,4/hobart,4/melbourne,4/nsw,4/sydney,4/tasmania,4/victoria","10|s":"12/dumontdurville,4/brisbane,4/lindeman,4/queensland","10|n":"2/ust-nera,2/vladivostok,2/yakutsk,11/chuuk,11/guam,11/port_moresby,11/saipan,11/truk,11/yap","10.5|s|04/04:01->10/03:02":"4/lhi,4/lord_howe","0|n|03/28:00->10/31:01":"1/scoresbysund,3/azores","0|n":"0/abidjan,0/accra,0/bamako,0/banjul,0/bissau,0/conakry,0/dakar,0/freetown,0/lome,0/monrovia,0/nouakchott,0/ouagadougou,0/sao_tome,0/timbuktu,1/danmarkshavn,3/reykjavik,3/st_helena,13/gmt,13/gmt+0,13/gmt-0,13/gmt0,13/greenwich,13/utc,13/universal,13/zulu","-9|n|03/14:02->11/07:02":"1/adak,1/atka","-9|n":"11/gambier","-9.5|n":"11/marquesas","-8|n|03/14:02->
111/07:02":"1/anchorage,1/juneau,1/metlakatla,1/nome,1/sitka,1/yakutat","-8|n":"11/pitcairn","-7|n|03/14:02->11/07:02":"1/ensenada,1/los_angeles,1/santa_isabel,1/tijuana,1/vancouver,6/pacific,10/bajanorte","-7|n|03/08:02->11/01:01":"1/dawson,1/whitehorse,6/yukon","-7|n":"1/creston,1/dawson_creek,1/fort_nelson,1/hermosillo,1/phoenix","-6|s|04/03:22->09/04:22":"7/easterisland,11/easter","-6|n|04/04:02->10/31:02":"1/chihuahua,1/mazatlan,10/bajasur","-6|n|03/14:02->11/07:02":"1/boise,1/cambridge_bay,1/denver,1/edmonton,1/inuvik,1/ojinaga,1/shiprock,1/yellowknife,6/mountain","-6|n":"1/belize,1/costa_rica,1/el_salvador,1/guatemala,1/managua,1/regina,1/swift_current,1/tegucigalpa,6/east-saskatchewan,6/saskatchewan,11/galapagos","-5|s":"1/lima,1/rio_branco,5/acre","-5|n|04/04:02->10/31:02":"1/bahia_banderas,1/merida,1/mexico_city,1/monterrey,10/general","-5|n|03/14:02->11/07:02":"1/chicago,1/knox_in,1/matamoros,1/menominee,1/rainy_river,1/rankin_inlet,1/resolute,1/winnipeg,6/central","-5|n|03/12:03->11/05:01":"1/north_dakota","-5|n":"1/atikokan,1/bogota,1/cancun,1/cayman,1/coral_harbour,1/eirunepe,1/guayaquil,1/jamaica,1/panama,1/porto_acre","-4|s|05/13:23->08/13:01":"12/palmer","-4|s|04/03:24->09/05:00":"1/santiago,7/continental","-4|s|03/27:24->10/03:00":"1/asuncion","-4|s|02/16:24->11/03:00":"1/campo_grande,1/cuiaba","-4|s":"1/la_paz,1/manaus,5/west","-4|n|03/14:02->11/07:02":"1/detroit,1/fort_wayne,1/grand_turk,1/indianapolis,1/iqaluit,1/louisville,1/montreal,1/nassau,1/new_york,1/nipigon,1/pangnirtung,1/port-au-prince,1/thunder_bay,1/toronto,6/eastern","-4|n|03/14:00->11/07:01":"1/havana","-4|n|03/12:03->11/05:01":"1/indiana,1/kentucky","-4|n":"1/anguilla,1/antigua,1/aruba,1/barbados,1/blanc-sablon,1/boa_vista,1/caracas,1/curacao,1/dominica,1/grenada,1/guadeloupe,1/guyana,1/kralendijk,1/lower_princes,1/marigot,1/martinique,1/montserrat,1/port_of_spain,1/porto_velho,1/puerto_rico,1/santo_domingo,1/st_barthelemy,1/st_kitts,1/st_lucia,1/st_thomas,1/st_vincent,1/tortola,1/virgin","-3|s":"1/argentina,1/buenos_aires,1/cordoba,1/fortaleza,1/montevideo,1/punta_arenas,1/sao_paulo,12/rothera,3/stanley,5/east","-3|n|03/27:22->10/30:23":"1/nuuk","-3|n|03/14:02->11/07:02":"1/glace_bay,1/goose_bay,1/halifax,1/moncton,1/thule,3/bermuda,6/atlantic","-3|n":"1/araguaina,1/bahia,1/belem,1/catamarca,1/cayenne,1/jujuy,1/maceio,1/mendoza,1/paramaribo,1/recife,1/rosario,1/santarem","-2|s":"5/denoronha","-2|n|03/27:22->10/30:23":"1/godthab","-2|n|03/14:02->11/07:02":"1/miquelon","-2|n":"1/noronha,3/south_georgia","-2.5|n|03/14:02->11/07:02":"1/st_johns,6/newfoundland","-1|n":"3/cape_verde","-11|n":"11/midway,11/niue,11/pago_pago,11/samoa","-10|n":"11/honolulu,11/johnston,11/rarotonga,11/tahiti"}}))&&Sn.default||Sn,Ln={};Object.keys(Mn).forEach((function(e){var t=e.split("|"),n={offset:Number(t[0]),hem:t[1]};t[2]&&(n.dst=t[2]),Mn[e].split(",").forEach((function(e){e=e.replace(/(^[0-9]+)\//,(function(e,t){return t=Number(t),Cn[t]+"/"})),Ln[e]=n}))})),Ln.utc={offset:0,hem:"n"};for(var Tn=-14;Tn<=14;Tn+=.5){var On=Tn;On>0&&(On="+"+On);var zn="etc/gmt"+On;Ln[zn]={offset:-1*Tn,hem:"n"},Ln[zn="utc/gmt"+On]={offset:-1*Tn,hem:"n"}}var An=Ln,Dn=function(){var e=function(){if("undefined"==typeof Intl||void 0===Intl.DateTimeFormat)return null;var e=Intl.DateTimeFormat();if(void 0===e||void 0===e.resolvedOptions)return null;var t=e.resolvedOptions().timeZone;return t?t.toLowerCase():null}();return null===e?"utc":e},Nn=/(\-?[0-9]+)h(rs)?/i,En=/(\-?[0-9]+)/,jn=/utc([\-+]?[0-9]+)/i,_n=/gmt([\-+]?[0-9]+)/i,Hn=function(e){return(e=Number(e))>=-13&&e<=13?"etc/gmt"+(e=((e*=-1)>0?"+":"")+e):null},Pn=function(e){var t=e.match(Nn);if(null!==t)return Hn(t[1]);if(null!==(t=e.match(jn)))return Hn(t[1]);if(null!==(t=e.match(_n))){var n=-1*Number(t[1]);return Hn(n)}return null!==(t=e.match(En))?Hn(t[1]):null},In=Dn(),Bn=Object.keys(An).reduce((function(e,t){var n=t.split("/")[1]||"";return e[n=n.replace(/_/g," ")]=t,e}),{}),Wn=function(e,t){if(!e)return In;"string"!=typeof e&&console.error("Timezone must be a string - recieved: '",e,"'\n");var n=e.trim(),r=e.split("/");if(r.length>2&&!1===t.hasOwnProperty(n)&&(n=r[0]+"/"+r[1]),n=n.toLowerCase(),!0===t.hasOwnProperty(n))return n;
1if(n=function(e){return(e=(e=(e=(e=(e=e.replace(/ time/g,"")).replace(/ (standard|daylight|summer)/g,"")).replace(/\b(east|west|north|south)ern/g,"$1")).replace(/\b(africa|america|australia)n/g,"$1")).replace(/\beuropean/g,"europe")).replace(/\islands/g,"island")}(n),!0===t.hasOwnProperty(n))return n;if(!0===Bn.hasOwnProperty(n))return Bn[n];if(!0===/[0-9]/.test(n)){var o=Pn(n);if(o)return o}throw new Error("Spacetime: Cannot find timezone named: '"+e+"'. Please enter an IANA timezone id.")},Fn={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5};Fn.date=Fn.day,Fn.month=25488e5,Fn.week=6048e5,Fn.year=3154e7,Object.keys(Fn).forEach((function(e){Fn[e+"s"]=Fn[e]}));var Rn=Fn,qn=function(e,t,n,r,o){var i=e.d[n]();if(i!==t){var a=null===o?null:e.d[o](),s=e.epoch,l=t-i;e.epoch+=Rn[r]*l,"day"===r&&Math.abs(l)>28&&t<28&&(e.epoch+=Rn.hour),null!==o&&a!==e.d[o]()&&(e.epoch=s);for(var c=Rn[r]/2;e.d[n]()<t;)e.epoch+=c;for(;e.d[n]()>t;)e.epoch-=c;null!==o&&a!==e.d[o]()&&(e.epoch=s)}},Gn={year:{valid:function(e){return e>-4e3&&e<4e3},walkTo:function(e,t){return qn(e,t,"getFullYear","year",null)}},month:{valid:function(e){return e>=0&&e<=11},walkTo:function(e,t){var n=e.d,r=n.getMonth(),o=e.epoch,i=n.getFullYear();if(r!==t){var a=t-r;for(e.epoch+=Rn.day*(28*a),i!==e.d.getFullYear()&&(e.epoch=o);e.d.getMonth()<t;)e.epoch+=Rn.day;for(;e.d.getMonth()>t;)e.epoch-=Rn.day}}},date:{valid:function(e){return e>0&&e<=31},walkTo:function(e,t){return qn(e,t,"getDate","day","getMonth")}},hour:{valid:function(e){return e>=0&&e<24},walkTo:function(e,t){return qn(e,t,"getHours","hour","getDate")}},minute:{valid:function(e){return e>=0&&e<60},walkTo:function(e,t){return qn(e,t,"getMinutes","minute","getHours")}},second:{valid:function(e){return e>=0&&e<60},walkTo:function(e,t){e.epoch=e.seconds(t).epoch}},millisecond:{valid:function(e){return e>=0&&e<1e3},walkTo:function(e,t){e.epoch=e.milliseconds(t).epoch}}},Un=function(e,t){for(var n=Object.keys(Gn),r=e.clone(),o=0;o<n.length;o++){var i=n[o],a=t[i];if(void 0===a&&(a=r[i]()),"string"==typeof a&&(a=parseInt(a,10)),!Gn[i].valid(a))return e.epoch=null,void(!1===e.silent&&console.warn("invalid "+i+": "+a));Gn[i].walkTo(e,a)}},Yn=["jan","feb","mar","apr","may","jun","jul","aug","sept","oct","nov","dec"],Kn=["january","february","march","april","may","june","july","august","september","october","november","december"];var Vn=function(){return Yn},Zn=function(){return Kn},Xn=function(){return function(){for(var e={sep:8},t=0;t<Yn.length;t++)e[Yn[t]]=t;for(var n=0;n<Kn.length;n++)e[Kn[n]]=n;return e}()},Qn=function(e){Yn=e.short||Yn,Kn=e.long||Kn},Jn=function(e,t){if(!t)return e;"Z"!==t&&"z"!==t||(t="+0000");var n=0;/^[\+-]?[0-9]{2}:[0-9]{2}$/.test(t)&&(!0===/:00/.test(t)&&(t=t.replace(/:00/,"")),!0===/:30/.test(t)&&(t=t.replace(/:30/,".5"))),/^[\+-]?[0-9]{4}$/.test(t)&&(t=t.replace(/30$/,".5")),n=parseFloat(t),Math.abs(n)>100&&(n/=100),(n*=-1)>=0&&(n="+"+n);var r="etc/gmt"+n;return e.timezones[r]&&(e.tz=r),e},er=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(t=t.replace(/^\s+/,"").toLowerCase()).match(/([0-9]{1,2}):([0-9]{1,2}):?([0-9]{1,2})?[:\.]?([0-9]{1,4})?/);if(null!==n){var r=Number(n[1]);if(r<0||r>24)return e.startOf("day");var o=Number(n[2]);if(n[2].length<2||o<0||o>59)return e.startOf("day");n[4]>999&&(n[4]=parseInt("".concat(n[4]).substring(0,3),10)),e=(e=(e=(e=e.hour(r)).minute(o)).seconds(n[3]||0)).millisecond(n[4]||0);var i=t.match(/[\b0-9](am|pm)\b/);return null!==i&&i[1]&&(e=e.ampm(i[1])),e}if(null!==(n=t.match(/([0-9]+) ?(am|pm)/))&&n[1]){var a=Number(n[1]);return a>12||a<1?e.startOf("day"):e=(e=(e=e.hour(n[1]||0)).ampm(n[2])).startOf("hour")}return e=e.startOf("day")},tr=[31,28,31,30,31,30,31,31,30,31,30,31],nr=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){t.isLeapYear=function(e){return e%4==0&&e%100!=0||e%400==0},t.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.valueOf())},t.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isBoolean=function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},t.zeroPad=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n="0";return(e+="").length>=t?e:new Array(t-e.length+1).join(n)+e},t.titleCase=function(e){return e?e[0].toUpperCase()+e.substr(1):""},t.ordinal=function(e){var t=e%10,n=e%100;return 1===t&&11!==n?e+"st":2===t&&12!==n?e+"nd":3===t&&13!==n?e+"rd":e+"th"},t.toCardinal=function(e){return e=(e=String(e)).replace(/([0-9])(st|nd|rd|th)$/i,"$1"),parseInt(e,10)},t.normalize=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";
1return"day"===(e=(e=(e=(e=e.toLowerCase().trim()).replace(/ies$/,"y")).replace(/s$/,"")).replace(/-/g,""))||"days"===e?"date":"min"===e||"mins"===e?"minute":e},t.getEpoch=function(e){return"number"==typeof e?e:t.isDate(e)?e.getTime():e.epoch?e.epoch:null},t.beADate=function(e,n){return!1===t.isObject(e)?n.clone().set(e):e},t.formatTimezone=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e>0?"+":"-",o=Math.abs(e),i=t.zeroPad(parseInt(""+o,10)),a=t.zeroPad(o%1*60);return"".concat(r).concat(i).concat(n).concat(a)}}));nr.isLeapYear,nr.isDate,nr.isArray,nr.isObject,nr.isBoolean,nr.zeroPad,nr.titleCase,nr.ordinal,nr.toCardinal,nr.normalize,nr.getEpoch,nr.beADate,nr.formatTimezone;var rr=nr.isLeapYear,or=function(e){if(!0!==tr.hasOwnProperty(e.month))return!1;if(1===e.month)return!!(rr(e.year)&&e.date<=29)||e.date<=28;var t=tr[e.month]||0;return e.date<=t},ir=Xn(),ar=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=parseInt(e.trim(),10);return!n&&t&&(n=t.year),n=n||(new Date).getFullYear()},sr=[{reg:/^(\-?0?0?[0-9]{3,4})-([0-9]{1,2})-([0-9]{1,2})[T| ]([0-9.:]+)(Z|[0-9\-\+:]+)?$/i,parse:function(e,t,n,r){var o=parseInt(t[2],10)-1,i={year:t[1],month:o,date:t[3]};return!1===or(i)?(e.epoch=null,e):(Jn(e,t[5]),Un(e,i),e=er(e,t[4]))}},{reg:/^([0-9]{4})[\-\/.]([0-9]{1,2})[\-\/.]([0-9]{1,2}),?( [0-9]{1,2}:[0-9]{2}:?[0-9]{0,2}? ?(am|pm|gmt))?$/i,parse:function(e,t){var n={year:t[1],month:parseInt(t[2],10)-1,date:parseInt(t[3],10)};return n.month>=12&&(n.date=parseInt(t[2],10),n.month=parseInt(t[3],10)-1),!1===or(n)?(e.epoch=null,e):(Un(e,n),e=er(e,t[4]))}},{reg:/^([0-9]{1,2})[\-\/.]([0-9]{1,2})[\-\/.]?([0-9]{4})?,?( [0-9]{1,2}:[0-9]{2}:?[0-9]{0,2}? ?(am|pm|gmt))?$/i,parse:function(e,t){var n=parseInt(t[1],10)-1,r=parseInt(t[2],10);(e.british||n>=12)&&(r=parseInt(t[1],10),n=parseInt(t[2],10)-1);var o={year:ar(t[3],e._today)||(new Date).getFullYear(),month:n,date:r};return!1===or(o)?(e.epoch=null,e):(Un(e,o),e=er(e,t[4]))}},{reg:/^([0-9]{4})[\-\/]([0-9]{2})$/i,parse:function(e,t,n,r){var o=parseInt(t[2],10)-1,i={year:t[1],month:o,date:1};return!1===or(i)?(e.epoch=null,e):(Jn(e,t[5]),Un(e,i),e=er(e,t[4]))}},{reg:/^([0-9]{1,2})[\-\/]([a-z]+)[\-\/]?([0-9]{4})?$/i,parse:function(e,t){var n=ir[t[2].toLowerCase()],r={year:ar(t[3],e._today),month:n,date:nr.toCardinal(t[1]||"")};return!1===or(r)?(e.epoch=null,e):(Un(e,r),e=er(e,t[4]))}},{reg:/^([a-z]+)[\-\/]([0-9]{1,2})[\-\/]?([0-9]{4})?$/i,parse:function(e,t){var n=ir[t[1].toLowerCase()],r={year:ar(t[3],e._today),month:n,date:nr.toCardinal(t[2]||"")};return!1===or(r)?(e.epoch=null,e):(Un(e,r),e=er(e,t[4]))}},{reg:/^([a-z]+) ([0-9]{1,2}(?:st|nd|rd|th)?),?( [0-9]{4})?( ([0-9:]+( ?am| ?pm| ?gmt)?))?$/i,parse:function(e,t){var n=ir[t[1].toLowerCase()],r={year:ar(t[3],e._today),month:n,date:nr.toCardinal(t[2]||"")};return!1===or(r)?(e.epoch=null,e):(Un(e,r),e=er(e,t[4]))}},{reg:/^([a-z]+) ([0-9]{4})$/i,parse:function(e,t){var n=ir[t[1].toLowerCase()],r={year:ar(t[2],e._today),month:n,date:e._today.date||1};return!1===or(r)?(e.epoch=null,e):(Un(e,r),e=er(e,t[4]))}},{reg:/^([0-9]{1,2}(?:st|nd|rd|th)?) ([a-z]+),?( [0-9]{4})?,? ?([0-9]{1,2}:[0-9]{2}:?[0-9]{0,2}? ?(am|pm|gmt))?$/i,parse:function(e,t){var n=ir[t[2].toLowerCase()];if(!n)return null;var r={year:ar(t[3],e._today),month:n,date:nr.toCardinal(t[1])};return!1===or(r)?(e.epoch=null,e):(Un(e,r),e=er(e,t[4]))}},{reg:/^(q[0-9])( of)?( [0-9]{4})?/i,parse:function(e,t){var n=t[1]||"";e=e.quarter(n);var r=t[3]||"";return r&&(r=r.trim(),e=e.year(r)),e}},{reg:/^(spring|summer|winter|fall|autumn)( of)?( [0-9]{4})?/i,parse:function(e,t){var n=t[1]||"";e=e.season(n);var r=t[3]||"";return r&&(r=r.trim(),e=e.year(r)),e}},{reg:/^[0-9,]+ ?b\.?c\.?$/i,parse:function(e,t){var n=t[0]||"";n=(n=n.replace(/^([0-9,]+) ?b\.?c\.?$/i,"-$1")).replace(/,/g,"");var r=parseInt(n.trim(),10),o=new Date,i={year:r,month:o.getMonth(),date:o.getDate()};return!1===or(i)?(e.epoch=null,e):(Un(e,i),e=er(e))}},{reg:/^[0-9,]+ ?(a\.?d\.?|c\.?e\.?)$/i,parse:function(e,t){var n=t[0]||"";n=n.replace(/,/g,"");var r=parseInt(n.trim(),10),o=new Date,i={year:r,month:o.getMonth(),date:o.getDate()};return!1===or(i)?(e.epoch=null,e):(Un(e,i),e=er(e))}},{reg:/^[0-9]{4}( ?a\.?d\.?)?$/i,parse:function(e,t){var n=e._today,r=ar(t[0],n),o=new Date;n.month&&!n.date&&(n.date=1);var i={year:r,month:n.month||o.getMonth(),date:n.date||o.getDate()};return!1===or(i)?(e.epoch=null,e):(Un(e,i),e=er(e))}}],lr=function(e){return e.epoch=Date.now(),Object.keys(e._today||{}
1).forEach((function(t){"function"==typeof e[t]&&(e=e[t](e._today[t]))})),e},cr={now:function(e){return lr(e)},today:function(e){return lr(e)},tonight:function(e){return e=(e=lr(e)).hour(18)},tomorrow:function(e){return e=(e=(e=lr(e)).add(1,"day")).startOf("day")},yesterday:function(e){return e=(e=(e=lr(e)).subtract(1,"day")).startOf("day")},christmas:function(e){var t=lr(e).year();return e=e.set([t,11,25,18,0,0])},"new years":function(e){var t=lr(e).year();return e=e.set([t,11,31,18,0,0])}};cr["new years eve"]=cr["new years"];var ur=cr,dr={year:(new Date).getFullYear(),month:0,date:1},fr=function(e,t,n){if(0===Object.keys(t).length)return e;t=Object.assign({},dr,n,t);for(var r=Object.keys(t),o=0;o<r.length;o++){var i=r[o];if(void 0!==e[i]&&"function"==typeof e[i]&&(null!==t[i]&&void 0!==t[i]&&""!==t[i])){var a=t[i]||n[i]||dr[i]||0;e=e[i](a)}}return e},hr=function(e,t,n){var r=e._today||dr;if("number"==typeof t)return t>0&&t<25e8&&!1===e.silent&&(console.warn("  - Warning: You are setting the date to January 1970."),console.warn("       -   did input seconds instead of milliseconds?")),e.epoch=t,e;if(e.epoch=Date.now(),e._today&&nr.isObject(e._today)&&Object.keys(e._today).length>0){var o=fr(e,r,dr);o.isValid()&&(e.epoch=o.epoch)}if(null==t||""===t)return e;if(!0===nr.isDate(t))return e.epoch=t.getTime(),e;if(!0===nr.isArray(t))return e=function(e,t,n){if(0===t.length)return e;for(var r=["year","month","date","hour","minute","second","millisecond"],o=0;o<r.length;o++){var i=t[o]||n[r[o]]||dr[r[o]]||0;e=e[r[o]](i)}return e}(e,t,r),e;if(!0===nr.isObject(t))return t.epoch?(e.epoch=t.epoch,e.tz=t.tz,e):e=fr(e,t,r);if("string"!=typeof t)return e;if(t=(t=(t=t.replace(/\b(mon|tues|wed|wednes|thu|thurs|fri|sat|satur|sun)(day)?\b/i,"")).replace(/,/g,"")).replace(/ +/g," ").trim(),!0===ur.hasOwnProperty(t))return e=ur[t](e);for(var i=0;i<sr.length;i++){var a=t.match(sr[i].reg);if(a){var s=sr[i].parse(e,a,n);if(null!==s&&s.isValid())return s}}return!1===e.silent&&console.warn("Warning: couldn't parse date-string: '"+t+"'"),e.epoch=null,e},pr=["sun","mon","tue","wed","thu","fri","sat"],mr=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],gr={short:function(){return pr},long:function(){return mr},set:function(e){pr=e.short||pr,mr=e.long||mr},aliases:{mo:1,tu:2,we:3,th:4,fr:5,sa:6,su:7,tues:2,weds:3,wedn:3,thur:4,thurs:4}},vr=!0,yr=function(){return vr},br=function(e){vr=e},wr=function(e){var t=e.timezone().current.offset;return t?nr.formatTimezone(t,":"):"Z"},kr=function(e){return yr()?nr.titleCase(e):e},xr={day:function(e){return kr(e.dayName())},"day-short":function(e){return kr(gr.short()[e.day()])},"day-number":function(e){return e.day()},"day-ordinal":function(e){return nr.ordinal(e.day())},"day-pad":function(e){return nr.zeroPad(e.day())},date:function(e){return e.date()},"date-ordinal":function(e){return nr.ordinal(e.date())},"date-pad":function(e){return nr.zeroPad(e.date())},month:function(e){return kr(e.monthName())},"month-short":function(e){return kr(Vn()[e.month()])},"month-number":function(e){return e.month()},"month-ordinal":function(e){return nr.ordinal(e.month())},"month-pad":function(e){return nr.zeroPad(e.month())},"iso-month":function(e){return nr.zeroPad(e.month()+1)},year:function(e){var t=e.year();return t>0?t:(t=Math.abs(t),t+" BC")},"year-short":function(e){var t=e.year();return t>0?"'".concat(String(e.year()).substr(2,4)):(t=Math.abs(t))+" BC"},"iso-year":function(e){var t=e.year(),n=t<0,r=nr.zeroPad(Math.abs(t),4);return n&&(r="-"+(r=nr.zeroPad(r,6))),r},time:function(e){return e.time()},"time-24":function(e){return"".concat(e.hour24(),":").concat(nr.zeroPad(e.minute()))},hour:function(e){return e.hour12()},"hour-pad":function(e){return nr.zeroPad(e.hour12())},"hour-24":function(e){return e.hour24()},"hour-24-pad":function(e){return nr.zeroPad(e.hour24())},minute:function(e){return e.minute()},"minute-pad":function(e){return nr.zeroPad(e.minute())},second:function(e){return e.second()},"second-pad":function(e){return nr.zeroPad(e.second())},ampm:function(e){return e.ampm()},quarter:function(e){return"Q"+e.quarter()},season:function(e){return e.season()},era:function(e){return e.era()},json:function(e){return e.json()},timezone:function(e){return e.timezone().name},offset:function(e){return wr(e)},numeric:function(e){return"".concat(e.year(),"/").concat(nr.zeroPad(e.month()+1),"/").concat(nr.zeroPad(e.date()))},"numeric-us":function(e){return"".concat(nr.zeroPad(e.month()+1),"/").concat(nr.zeroPad(e.date()),"/").concat(e.year())},"numeric-uk":function(e){return"".concat(nr.zeroPad(e.date()),"/").concat(nr.zeroPad(e.month()+1),"/").concat(e.year())},"mm/dd":function(e){return"".concat(nr.zeroPad(e.month()+1),"/").concat(nr.zeroPad(e.date()))},iso:function(e){var t=e.format("iso-year"),n=nr.zeroPad(e.month()+1),r=nr.zeroPad(e.date()),o=nr.zeroPad(e.h24()),i=nr.zeroPad(e.minute()),a=nr.zeroPad(e.second()),s=nr.zeroPad(e.millisecond(),3),l=wr(e);return"".concat(t,"-").concat(n,"-").concat(r,"T").concat(o,":").concat(i,":").concat(a,".").concat(s).concat(l)},"iso-short":function(e){var t=nr.zeroPad(e.month()+1),n=nr.zeroPad(e.date());return"".concat(e.year(),"-").concat(t,"-").concat(n)},"iso-utc":function(e){return new Date(e.epoch).toISOString()},nice:function(e){return"".concat(Vn()[e.month()]," ").concat(nr.ordinal(e.date()),", ").concat(e.time())},"nice-24":function(e){return"".concat(Vn()[e.month()]," ").concat(nr.ordinal(e.date()),", ").concat(e.hour24(),":").concat(nr.zeroPad(e.minute()))},"nice-year":function(e){return"".concat(Vn()[e.month()]," ").concat(nr.ordinal(e.date()),", ").concat(e.year())},"nice-day":function(e){return"".concat(gr.short()[e.day()]," ").concat(kr(Vn()[e.month()])," ").concat(nr.ordinal(e.date()))},"nice-full":function(e){return"".concat(e.dayName()," ").concat(kr(e.monthName())," ").concat(nr.ordinal(e.date()),", ").concat(e.time())},"nice-full-24":function(e){return"".concat(e.dayName()," ").concat(kr(e.monthName())," ").concat(nr.ordinal(e.date()),", ").concat(e.hour24(),":").concat(nr.zeroPad(e.minute()))}},$r={"day-name":"day","month-name":"month","iso 8601":"iso","time-h24":"time-24","time-12":"time","time-h12":"time",tz:"timezone","day-num":"day-number","month-num":"month-number","month-iso":"iso-month","year-iso":"iso-year","nice-short":"nice","nice-short-24":"nice-24",mdy:"numeric-us",dmy:"numeric-uk",ymd:"numeric","yyyy/mm/dd":"numeric","mm/dd/yyyy":"numeric-us","dd/mm/yyyy":"numeric-us","little-endian":"numeric-uk","big-endian":"numeric","day-nice":"nice-day"};Object.keys($r).forEach((function(e){return xr[e]=xr[$r[e]]}));var Cr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!0!==e.isValid())return"";if(xr.hasOwnProperty(t)){var n=xr[t](e)||"";return"json"!==t&&(n=String(n),"ampm"!==t&&(n=kr(n))),n}
1if(-1!==t.indexOf("{")){var r=/\{(.+?)\}/g;return t=t.replace(r,(function(t,n){if(n=n.toLowerCase().trim(),xr.hasOwnProperty(n)){var r=String(xr[n](e));return"ampm"!==n?kr(r):r}return""}))}return e.format("iso-short")},Sr=nr.zeroPad,Mr=nr.formatTimezone,Lr={G:function(e){return e.era()},GG:function(e){return e.era()},GGG:function(e){return e.era()},GGGG:function(e){return"AD"===e.era()?"Anno Domini":"Before Christ"},y:function(e){return e.year()},yy:function(e){return parseInt(String(e.year()).substr(2,4),10)},yyy:function(e){return e.year()},yyyy:function(e){return e.year()},yyyyy:function(e){return"0"+e.year()},Q:function(e){return e.quarter()},QQ:function(e){return e.quarter()},QQQ:function(e){return e.quarter()},QQQQ:function(e){return e.quarter()},M:function(e){return e.month()+1},MM:function(e){return Sr(e.month()+1)},MMM:function(e){return e.format("month-short")},MMMM:function(e){return e.format("month")},w:function(e){return e.week()},ww:function(e){return Sr(e.week())},d:function(e){return e.date()},dd:function(e){return Sr(e.date())},D:function(e){return e.dayOfYear()},DD:function(e){return Sr(e.dayOfYear())},DDD:function(e){return Sr(e.dayOfYear(),3)},E:function(e){return e.format("day-short")},EE:function(e){return e.format("day-short")},EEE:function(e){return e.format("day-short")},EEEE:function(e){return e.format("day")},EEEEE:function(e){return e.format("day")[0]},e:function(e){return e.day()},ee:function(e){return e.day()},eee:function(e){return e.format("day-short")},eeee:function(e){return e.format("day")},eeeee:function(e){return e.format("day")[0]},a:function(e){return e.ampm().toUpperCase()},aa:function(e){return e.ampm().toUpperCase()},aaa:function(e){return e.ampm().toUpperCase()},aaaa:function(e){return e.ampm().toUpperCase()},h:function(e){return e.h12()},hh:function(e){return Sr(e.h12())},H:function(e){return e.hour()},HH:function(e){return Sr(e.hour())},m:function(e){return e.minute()},mm:function(e){return Sr(e.minute())},s:function(e){return e.second()},ss:function(e){return Sr(e.second())},A:function(e){return e.epoch-e.startOf("day").epoch},z:function(e){return e.timezone().name},zz:function(e){return e.timezone().name},zzz:function(e){return e.timezone().name},zzzz:function(e){return e.timezone().name},Z:function(e){return Mr(e.timezone().current.offset)},ZZ:function(e){return Mr(e.timezone().current.offset)},ZZZ:function(e){return Mr(e.timezone().current.offset)},ZZZZ:function(e){return Mr(e.timezone().current.offset,":")}},Tr=function(e,t,n){for(var r=e,o=t,i=0;i<n;i+=1)Lr[r]=Lr[o],r+=e,o+=t};Tr("q","Q",4),Tr("L","M",4),Tr("Y","y",4),Tr("c","e",4),Tr("k","H",2),Tr("K","h",2),Tr("S","s",2),Tr("v","z",4),Tr("V","Z",4);var Or=function(e,t){var n=t.split("");return n=function(e){for(var t=0;t<e.length;t+=1)if("'"===e[t])for(var n=t+1;n<e.length;n+=1){if(e[n]&&(e[t]+=e[n]),"'"===e[n]){e[n]=null;break}e[n]=null}return e.filter((function(e){return e}))}(n),n=function(e){for(var t=0;t<e.length;t+=1)for(var n=e[t],r=t+1;r<e.length&&e[r]===n;r+=1)e[t]+=e[r],e[r]=null;return(e=e.filter((function(e){return e}))).map((function(e){return"''"===e&&(e="'"),e}))}(n),n.reduce((function(t,n){return void 0!==Lr[n]?t+=Lr[n](e)||"":(/^'.{1,}'$/.test(n)&&(n=n.replace(/'/g,"")),t+=n),t}),"")},zr=["year","season","quarter","month","week","day","quarterHour","hour","minute"],Ar=function(e,t){var n=e.clone().startOf(t),r=e.clone().endOf(t).epoch-n.epoch,o=(e.epoch-n.epoch)/r;return parseFloat(o.toFixed(2))},Dr=function(e,t){if(t)return t=nr.normalize(t),Ar(e,t);var n={};return zr.forEach((function(t){n[t]=Ar(e,t)})),n},Nr=function(e,t){var n=e.progress();return"quarterhour"===(t=nr.normalize(t))&&(t="quarterHour"),void 0!==n[t]?(n[t]>.5&&(e=e.add(1,t)),e=e.startOf(t)):!1===e.silent&&console.warn("no known unit '"+t+"'"),e},Er=function(e,t,n){var r=0;for(e=e.clone();e.isBefore(t);)e=e.add(1,n),r+=1;return e.isAfter(t,n)&&(r-=1),r},jr=function(e,t,n){return e.isBefore(t)?Er(e,t,n):-1*Er(t,e,n)},_r=function(e,t){var n=t.epoch-e.epoch,r={milliseconds:n,seconds:parseInt(n/1e3,10)};r.minutes=parseInt(r.seconds/60,10),r.hours=parseInt(r.minutes/60,10);var o=e.clone();return r.years=function(e,t){var n=t.year()-e.year();return(e=e.year(t.year())).isAfter(t)&&(n-=1),n}(o,t),o=e.add(r.years,"year"),r.months=12*r.years,o=e.add(r.months,"month"),r.months+=jr(o,t,"month"),r.weeks=52*r.years,o=e.add(r.weeks,"week"),r.weeks+=jr(o,t,"week"),r.days=7*r.weeks,o=e.add(r.days,"day"),r.days+=jr(o,t,"day"),r},Hr=function(e,t,n){t=nr.beADate(t,e);var r=!1;if(e.isAfter(t)){var o=e;e=t,t=o,r=!0}var i=_r(e,t);return r&&(i=function(e){return Object.keys(e).forEach((function(t){e[t]*=-1})),e}(i)),n?(n=nr.normalize(n),!0!==/s$/.test(n)&&(n+="s"),"dates"===n&&(n="days"),i[n]):i},Pr={months:{almost:10,over:4},days:{almost:25,over:10},hours:{almost:20,over:8},minutes:{almost:50,over:20},seconds:{almost:50,over:20}};function Ir(e,t){return 1===e&&(t=t.slice(0,-1)),e+" "+t}var Br=function(e,t){var n,r,o,i=function(e,t){var n=e.isBefore(t),r=n?t:e,o=n?e:t;o=o.clone();var i={years:0,months:0,days:0,hours:0,minutes:0,seconds:0};
1return Object.keys(i).forEach((function(e){if(!o.isSame(r,e)){var t=o.diff(r,e);o=o.add(t,e),i[e]=t}})),n&&Object.keys(i).forEach((function(e){0!==i[e]&&(i[e]*=-1)})),i}(e,t=nr.beADate(t,e));if(!0===Object.keys(i).every((function(e){return!i[e]})))return{diff:i,rounded:"now",qualified:"now",precise:"now"};var a=[];return Object.keys(i).forEach((function(e,t,o){var s=Math.abs(i[e]);if(0!==s){var l=Ir(s,e);if(a.push(l),!n){if(n=r=l,t>4)return;var c=o[t+1],u=Math.abs(i[c]);u>Pr[c].almost?(n=Ir(s+1,e),r="almost "+n):u>Pr[c].over&&(r="over "+l)}}})),o=a.splice(0,2).join(", "),!0===e.isAfter(t)?(n+=" ago",r+=" ago",o+=" ago"):(n="in "+n,r="in "+r,o="in "+o),{diff:i,rounded:n,qualified:r,precise:o}},Wr={north:[["spring",2,1],["summer",5,1],["fall",8,1],["autumn",8,1],["winter",11,1]],south:[["fall",2,1],["autumn",2,1],["winter",5,1],["spring",8,1],["summer",11,1]]},Fr=[null,[0,1],[3,1],[6,1],[9,1]],Rr={minute:function(e){return Un(e,{second:0,millisecond:0}),e},quarterhour:function(e){var t=e.minutes();return e=t>=45?e.minutes(45):t>=30?e.minutes(30):t>=15?e.minutes(15):e.minutes(0),Un(e,{second:0,millisecond:0}),e},hour:function(e){return Un(e,{minute:0,second:0,millisecond:0}),e},day:function(e){return Un(e,{hour:0,minute:0,second:0,millisecond:0}),e},week:function(e){var t=e.clone();return(e=e.day(e._weekStart)).isAfter(t)&&(e=e.subtract(1,"week")),Un(e,{hour:0,minute:0,second:0,millisecond:0}),e},month:function(e){return Un(e,{date:1,hour:0,minute:0,second:0,millisecond:0}),e},quarter:function(e){var t=e.quarter();return Fr[t]&&Un(e,{month:Fr[t][0],date:Fr[t][1],hour:0,minute:0,second:0,millisecond:0}),e},season:function(e){var t=e.season(),n="north";"South"===e.hemisphere()&&(n="south");for(var r=0;r<Wr[n].length;r++)if(Wr[n][r][0]===t){var o=e.year();return"winter"===t&&e.month()<3&&(o-=1),Un(e,{year:o,month:Wr[n][r][1],date:Wr[n][r][2],hour:0,minute:0,second:0,millisecond:0}),e}return e},year:function(e){return Un(e,{month:0,date:1,hour:0,minute:0,second:0,millisecond:0}),e},decade:function(e){var t=(e=e.startOf("year")).year(),n=10*parseInt(t/10,10);return e=e.year(n)},century:function(e){var t=(e=e.startOf("year")).year(),n=100*parseInt(t/100,10);return e=e.year(n)}};Rr.date=Rr.day;var qr=function(e,t){var n=e.clone();return t=nr.normalize(t),Rr[t]?Rr[t](n):"summer"===t||"winter"===t?(n=n.season(t),Rr.season(n)):n},Gr=function(e,t){var n=e.clone();return t=nr.normalize(t),Rr[t]?n=(n=(n=Rr[t](n)).add(1,t)).subtract(1,"millisecond"):n},Ur=function(e){return!!gr.short().find((function(t){return t===e}))||!!gr.long().find((function(t){return t===e}))},Yr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;if(!t||!n)return[];if(t=nr.normalize(t),n=e.clone().set(n),e.isAfter(n)){var r=e;e=n,n=r}var o=e.clone();Ur(t)?(o=o.next(t),t="week"):o=o.next(t);for(var i=[];o.isBefore(n);)i.push(o),o=o.add(1,t);return i},Kr=function(e){var t=e.timezones,n=e.tz;if(!1===t.hasOwnProperty(n)&&(n=Wn(e.tz,t)),null===n)return!1===e.silent&&console.warn("Warn: could not find given or local timezone - '"+e.tz+"'"),{current:{epochShift:0}};var r,o,i=t[n],a={name:(r=n,r=(r=(r=r[0].toUpperCase()+r.substr(1)).replace(/\/gmt/,"/GMT")).replace(/[\/_]([a-z])/gi,(function(e){return e.toUpperCase()}))),hasDst:Boolean(i.dst),default_offset:i.offset,hemisphere:"s"===i.hem?"South":"North",current:{}};if(a.hasDst){var s=(o=i.dst)?o.split("->"):[];a.change={start:s[0],back:s[1]}}var l=i.offset,c=l;return!0===a.hasDst&&(c="North"===a.hemisphere?l-1:i.offset+1),!1===a.hasDst?(a.current.offset=l,a.current.isDST=!1):!0===xn(e.epoch,a.change.start,a.change.back,l,c)?(a.current.offset=l,a.current.isDST="North"===a.hemisphere):(a.current.offset=c,a.current.isDST="South"===a.hemisphere),a},Vr=["century","decade","year","month","date","day","hour","minute","second","millisecond"],Zr={set:function(e,t){var n=this.clone();return n=hr(n,e,null),t&&(this.tz=Wn(t)),n},timezone:function(){return Kr(this)},isDST:function(){return Kr(this).current.isDST},hasDST:function(){return Kr(this).hasDst},offset:function(){return 60*Kr(this).current.offset},hemisphere:function(){return Kr(this).hemisphere},format:function(e){return Cr(this,e)},unixFmt:function(e){return Or(this,e)},startOf:function(e){return qr(this,e)},endOf:function(e){return Gr(this,e)},leapYear:function(){var e=this.year();return nr.isLeapYear(e)},progress:function(e){return Dr(this,e)},nearest:function(e){return Nr(this,e)},diff:function(e,t){return Hr(this,e,t)},since:function(e){return e||(e=this.clone().set()),Br(this,e)},next:function(e){return this.add(1,e).startOf(e)},last:function(e){return this.subtract(1,e).startOf(e)},isValid:function(){return!(!this.epoch&&0!==this.epoch)&&!isNaN(this.d.getTime())},goto:function(e){var t=this.clone();return t.tz=Wn(e,t.timezones),t},every:function(e,t){if("object"===yn(e)&&"string"==typeof t){var n=t;t=e,e=n}return Yr(this,e,t)},isAwake:function(){var e=this.hour();return!(e<8||e>22)},isAsleep:function(){return!this.isAwake()},log:function(){return console.log(""),console.log(Cr(this,"nice-short")),this},logYear:function(){return console.log(""),console.log(Cr(this,"full-short")),this},json:function(){var e=this;return Vr.reduce((function(t,n){return t[n]=e[n](),t}),{})},debug:function(){var e=this.timezone(),t=this.format("MM")+" "+this.format("date-ordinal")+" "+this.year();return t+="\n     - "+this.format("time"),console.log("\n\n",t+"\n     - "+e.name+" ("+e.current.offset+")"),this},from:function(e){return(e=this.clone().set(e)).since(this)},fromNow:function(){return this.clone().set(Date.now()).since(this)},weekStart:function(e){if("number"==typeof e)return this._weekStart=e,this;if("string"==typeof e){e=e.toLowerCase().trim();var t=gr.short().indexOf(e);-1===t&&(t=gr.long().indexOf(e)),-1===t&&(t=1),this._weekStart=t}else console.warn("Spacetime Error: Cannot understand .weekStart() input:",e);return this}};Zr.inDST=Zr.isDST,Zr.round=Zr.nearest,Zr.each=Zr.every;var Xr=Zr,Qr=nr.isLeapYear,Jr=function(e){return"string"==typeof e&&(e=parseInt(e,10)),e},eo=["year","month","date","hour","minute","second","millisecond"],to=function(e,t,n){for(var r=eo.indexOf(n),o=eo.slice(r,eo.length),i=0;i<o.length;i++){var a=t[o[i]]();e[o[i]](a)}return e},no=function(e,t){t=Jr(t);var n=e.millisecond()-t;return e.epoch-n},ro=function(e,t){t=Jr(t);var n=(e.second()-t)*Rn.second;return e.epoch-n},oo=function(e,t){t=Jr(t);var n=e.clone(),r=(e.minute()-t)*Rn.minute;return e.epoch-=r,to(e,n,"second"),e.epoch},io=function(e,t){(t=Jr(t))>=24?t=24:t<0&&(t=0);var n=e.clone(),r=e.hour()-t,o=r*Rn.hour;return e.epoch-=o,e.date()!==n.date()&&(e=n.clone(),r>1&&(r-=1),r<1&&(r+=1),o=r*Rn.hour,e.epoch-=o),Un(e,{hour:t}),to(e,n,"minute"),e.epoch},ao=function(e,t){var n=t.match(/([0-9]{1,2})[:h]([0-9]{1,2})(:[0-9]{1,2})? ?(am|pm)?/);
1if(!n){if(!(n=t.match(/([0-9]{1,2}) ?(am|pm)/)))return e.epoch;n.splice(2,0,"0"),n.splice(3,0,"")}var r=!1,o=parseInt(n[1],10),i=parseInt(n[2],10);o>12&&(r=!0),!1===r&&("am"===n[4]&&12===o&&(o=0),"pm"===n[4]&&o<12&&(o+=12)),n[3]=n[3]||"",n[3]=n[3].replace(/:/,"");var a=parseInt(n[3],10)||0;return(e=(e=(e=(e=e.hour(o)).minute(i)).second(a)).millisecond(0)).epoch},so=function(e,t){if((t=Jr(t))>28){var n=e.month(),r=tr[n];1===n&&29===t&&Qr(e.year())&&(r=29),t>r&&(t=r)}return t<=0&&(t=1),Un(e,{date:t}),e.epoch},lo=function(e,t){"string"==typeof t&&(t=Xn()[t.toLowerCase()]),(t=Jr(t))>=12&&(t=11),t<=0&&(t=0);var n=e.date();return n>tr[t]&&(n=tr[t]),Un(e,{month:t,date:n}),e.epoch},co=function(e,t){return"string"==typeof t&&/^'[0-9]{2}$/.test(t)&&(t=t.replace(/'/,"").trim(),t=(t=Number(t))>30?1900+t:2e3+t),t=Jr(t),Un(e,{year:t}),e.epoch},uo=function(e,t){t=Jr(t);var n=e.clone();return(t-=1)<=0?t=0:t>=365&&(t=364),e=(e=e.startOf("year")).add(t,"day"),to(e,n,"hour"),e.epoch},fo={millisecond:function(e){if(void 0!==e){var t=this.clone();return t.epoch=no(t,e),t}return this.d.getMilliseconds()},second:function(e){if(void 0!==e){var t=this.clone();return t.epoch=ro(t,e),t}return this.d.getSeconds()},minute:function(e){if(void 0!==e){var t=this.clone();return t.epoch=oo(t,e),t}return this.d.getMinutes()},hour:function(e){var t=this.d;if(void 0!==e){var n=this.clone();return n.epoch=io(n,e),n}return t.getHours()},hourFloat:function(e){if(void 0!==e){var t=this.clone(),n=e%1;n*=60;var r=parseInt(e,10);return t.epoch=io(t,r),t.epoch=oo(t,n),t}var o=this.d,i=o.getHours(),a=o.getMinutes();return i+(a/=60)},hour12:function(e){var t=this.d;if(void 0!==e){var n=this.clone(),r=(e=""+e).match(/^([0-9]+)(am|pm)$/);if(r){var o=parseInt(r[1],10);"pm"===r[2]&&(o+=12),n.epoch=io(n,o)}return n}var i=t.getHours();return i>12&&(i-=12),0===i&&(i=12),i},time:function(e){if(void 0!==e){var t=this.clone();return e=e.toLowerCase().trim(),t.epoch=ao(t,e),t}return"".concat(this.h12(),":").concat(nr.zeroPad(this.minute())).concat(this.ampm())},ampm:function(e){var t="am",n=this.hour();if(n>=12&&(t="pm"),"string"!=typeof e)return t;var r=this.clone();return e=e.toLowerCase().trim(),n>=12&&"am"===e?(n-=12,r.hour(n)):n<12&&"pm"===e?(n+=12,r.hour(n)):r},dayTime:function(e){if(void 0!==e){var t={morning:"7:00am",breakfast:"7:00am",noon:"12:00am",lunch:"12:00pm",afternoon:"2:00pm",evening:"6:00pm",dinner:"6:00pm",night:"11:00pm",midnight:"23:59pm"},n=this.clone();return e=(e=e||"").toLowerCase(),!0===t.hasOwnProperty(e)&&(n=n.time(t[e])),n}var r=this.hour();return r<6?"night":r<12?"morning":r<17?"afternoon":r<22?"evening":"night"},iso:function(e){return void 0!==e?this.set(e):this.format("iso")}},ho=fo,po={date:function(e){if(void 0!==e){var t=this.clone();return t.epoch=so(t,e),t}return this.d.getDate()},day:function(e){if(void 0===e)return this.d.getDay();var t=this.clone(),n=e;"string"==typeof e&&(e=e.toLowerCase(),gr.aliases.hasOwnProperty(e)?n=gr.aliases[e]:-1===(n=gr.short().indexOf(e))&&(n=gr.long().indexOf(e)));var r=this.d.getDay(),o=r-n,i=this.subtract(o,"days");return Un(i,{hour:t.hour(),minute:t.minute(),second:t.second()}),i},dayName:function(e){if(void 0===e)return gr.long()[this.day()];var t=this.clone();return t=t.day(e)},month:function(e){if(void 0!==e){var t=this.clone();return t.epoch=lo(t,e),t}return this.d.getMonth()}},mo=po,go=function(e){return e=(e=(e=e.minute(0)).second(0)).millisecond(1)},vo={dayOfYear:function(e){if(void 0!==e){var t=this.clone();return t.epoch=uo(t,e),t}for(var n,r=0,o=this.d.getMonth(),i=1;i<=o;i++)(n=new Date).setDate(1),n.setFullYear(this.d.getFullYear()),n.setHours(1),n.setMinutes(1),n.setMonth(i),n.setHours(-2),r+=n.getDate();return r+this.d.getDate()},week:function(e){if(void 0!==e){var t=this.clone();return t=(t=(t=t.month(0)).date(1)).day("monday"),"december"===(t=go(t)).monthName()&&t.date()>=28&&(t=t.add(1,"week")),e-=1,t=t.add(e,"weeks")}var n=this.clone();n=(n=n.month(0)).date(1),"december"===(n=(n=go(n)).day("monday")).monthName()&&n.date()>=28&&(n=n.add(1,"week"));var r=1;1===n.date()&&(r=0),n=n.minus(1,"second");var o=this.epoch;if(n.epoch>o)return 1;var i=0,a=4*this.month();for(n.epoch+=Rn.week*a,i+=a;i<=52;i++){if(n.epoch>o)return i+r;n=n.add(1,"week")}return 52},monthName:function(e){if(void 0===e)return Zn()[this.month()];var t=this.clone();return t=t.month(e)},quarter:function(e){if(void 0!==e&&("string"==typeof e&&(e=e.replace(/^q/i,""),e=parseInt(e,10)),Fr[e])){var t=this.clone(),n=Fr[e][0];return t=(t=(t=t.month(n)).date(1)).startOf("day")}for(var r=this.d.getMonth(),o=1;o<Fr.length;o++)if(r<Fr[o][0])return o-1;return 4},season:function(e){var t="north";if("South"===this.hemisphere()&&(t="south"),void 0!==e){for(var n=this.clone(),r=0;r<Wr[t].length;r++)e===Wr[t][r][0]&&(n=(n=(n=n.month(Wr[t][r][1])).date(1)).startOf("day"));return n}for(var o=this.d.getMonth(),i=0;i<Wr[t].length-1;i++)if(o>
1=Wr[t][i][1]&&o<Wr[t][i+1][1])return Wr[t][i][0];return"winter"},year:function(e){if(void 0!==e){var t=this.clone();return t.epoch=co(t,e),t}return this.d.getFullYear()},era:function(e){if(void 0!==e){var t=this.clone();e=e.toLowerCase();var n=t.d.getFullYear();return"bc"===e&&n>0&&(t.epoch=co(t,-1*n)),"ad"===e&&n<0&&(t.epoch=co(t,-1*n)),t}return this.d.getFullYear()<0?"BC":"AD"},decade:function(e){if(void 0!==e){if(!(e=(e=(e=String(e)).replace(/([0-9])'?s$/,"$1")).replace(/([0-9])(th|rd|st|nd)/,"$1")))return console.warn("Spacetime: Invalid decade input"),this;2===e.length&&/[0-9][0-9]/.test(e)&&(e="19"+e);var t=Number(e);return isNaN(t)?this:(t=10*Math.floor(t/10),this.year(t))}return this.startOf("decade").year()},century:function(e){if(void 0!==e){"string"==typeof e&&(e=(e=e.replace(/([0-9])(th|rd|st|nd)/,"$1")).replace(/([0-9]+) ?(b\.?c\.?|a\.?d\.?)/i,(function(e,t,n){return n.match(/b\.?c\.?/i)&&(t="-"+t),t})),e=e.replace(/c$/,""));var t=Number(e);return isNaN(e)?(console.warn("Spacetime: Invalid century 
1input"),this):(0===t&&(t=1),t=t>=0?100*(t-1):100*(t+1),this.year(t))}var n=this.startOf("century").year();return(n=Math.floor(n/100))<0?n-1:n+1},millenium:function(e){if(void 0!==e){if("string"==typeof e&&(e=e.replace(/([0-9])(th|rd|st|nd)/,"$1"),e=Number(e),isNaN(e)))return console.warn("Spacetime: Invalid millenium input"),this;e>0&&(e-=1);var t=1e3*e;return 0===t&&(t=1),this.year(t)}var n=Math.floor(this.year()/1e3);return n>=0&&(n+=1),n}},yo=vo,bo=Object.assign({},ho,mo,yo);bo.milliseconds=bo.millisecond,bo.seconds=bo.second,bo.minutes=bo.minute,bo.hours=bo.hour,bo.hour24=bo.hour,bo.h12=bo.hour12,bo.h24=bo.hour24,bo.days=bo.day;var wo=function(e){Object.keys(bo).forEach((function(t){e.prototype[t]=bo[t]}))},ko=nr.isLeapYear,xo=function(e,t){return 1===e&&ko(t)?29:tr[e]},$o=function(e,t){if(e.month>0){var n=parseInt(e.month/12,10);e.year=t.year()+n,e.month=e.month%12}else if(e.month<0){var r=Math.floor(Math.abs(e.month)/13,10);r=Math.abs(r)+1,e.year=t.year()-r,e.month=e.month%12,e.month=e.month+12,12===e.month&&(e.month=0)}return e},Co=function(e,t,n){for(var r=t.year(),o=t.month(),i=xo(o,r);n>i;)n-=i,(o+=1)>=12&&(o-=12,r+=1),i=xo(o,r);return e.month=o,e.date=n,e},So=function(e,t,n){e.year=t.year(),e.month=t.month();var r=t.date();for(e.date=r-Math.abs(n);e.date<1;){e.month-=1,e.month<0&&(e.month=11,e.year-=1);var o=xo(e.month,e.year);e.date+=o}return e},Mo=["millisecond","second","minute","hour","date","month"],Lo={second:Mo.slice(0,1),minute:Mo.slice(0,2),quarterhour:Mo.slice(0,2),hour:Mo.slice(0,3),date:Mo.slice(0,4),month:Mo.slice(0,4),quarter:Mo.slice(0,4),season:Mo.slice(0,4),year:Mo,decade:Mo,century:Mo};Lo.week=Lo.hour,Lo.season=Lo.date,Lo.quarter=Lo.date;var To={year:!0,quarter:!0,season:!0,month:!0,week:!0,day:!0},Oo={month:!0,quarter:!0,season:!0,year:!0},zo=function(e){e.prototype.add=function(e,t){var n=this.clone();if(!t||0===e)return n;var r=this.clone();if("millisecond"===(t=nr.normalize(t)))return n.epoch+=e,n;"fortnight"===t&&(e*=2,t="week"),Rn[t]?n.epoch+=Rn[t]*e:"week"===t?n.epoch+=Rn.day*(7*e):"quarter"===t||"season"===t?n.epoch+=Rn.month*(3*e):"quarterhour"===t&&(n.epoch+=15*Rn.minute*e);var o={};if(Lo[t]&&Lo[t].forEach((function(e){o[e]=r[e]()})),To[t]){var i=r.timezone().current.offset-n.timezone().current.offset;n.epoch+=3600*i*1e3}if("month"===t&&(o.month=r.month()+e,o=$o(o,r)),"week"===t){var a=r.date()+7*e;a<=28&&a>1&&(o.date=a)}else if("date"===t){if(e<0)o=So(o,r,e);else{var s=r.date()+e;o=Co(o,r,s)}0!==e&&r.isSame(n,"day")&&(o.date=r.date()+e)}else if("quarter"===t){if(o.month=r.month()+3*e,o.year=r.year(),o.month<0){var l=Math.floor(o.month/12),c=o.month+12*Math.abs(l);o.month=c,o.year+=l}else if(o.month>=12){var u=Math.floor(o.month/12);o.month=o.month%12,o.year+=u}o.date=r.date()}else if("year"===t){var d=r.year()+e,f=n.year();(f<d||f>d)&&(n.epoch+=Rn.day)}else"decade"===t?o.year=n.year()+10:"century"===t&&(o.year=n.year()+100);if(Oo[t]){var h=tr[o.month];o.date=r.date(),o.date>h&&(o.date=h)}return Object.keys(o).length>1&&Un(n,o),n},e.prototype.subtract=function(e,t){return this.clone().add(-1*e,t)},e.prototype.minus=e.prototype.subtract,e.prototype.plus=e.prototype.add},Ao={millisecond:function(e){return e.epoch},second:function(e){return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second()].join("-")},minute:function(e){return[e.year(),e.month(),e.date(),e.hour(),e.minute()].join("-")},hour:function(e){return[e.year(),e.month(),e.date(),e.hour()].join("-")},day:function(e){return[e.year(),e.month(),e.date()].join("-")},week:function(e){return[e.year(),e.week()].join("-")},month:function(e){return[e.year(),e.month()].join("-")},quarter:function(e){return[e.year(),e.quarter()].join("-")},year:function(e){return e.year()}};Ao.date=Ao.day;var Do=function(e){e.prototype.isSame=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this;if(!n)return null;if("string"==typeof t&&"object"===yn(n)){var i=t;t=n,n=i}return"string"!=typeof t&&"number"!=typeof t||(t=new e(t,this.timezone.name)),n=n.replace(/s$/,""),!0===r&&o.tz!==t.tz&&((t=t.clone()).tz=o.tz),Ao[n]?Ao[n](o)===Ao[n](t):null}},No=function(e){var t={isAfter:function(e){e=nr.beADate(e,this);var t=nr.getEpoch(e);return null===t?null:this.epoch>t},isBefore:function(e){e=nr.beADate(e,this);var t=nr.getEpoch(e);return null===t?null:this.epoch<t},isEqual:function(e){e=nr.beADate(e,this);var t=nr.getEpoch(e);return null===t?null:this.epoch===t},isBetween:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e=nr.beADate(e,this),t=nr.beADate(t,this);var r=nr.getEpoch(e);if(null===r)return null;var o=nr.getEpoch(t);return null===o?null:n?this.isBetween(e,t)||this.isEqual(e)||this.isEqual(t):r<this.epoch&&this.epoch<o}};Object.keys(t).forEach((function(n){e.prototype[n]=t[n]}))},Eo=function(e){var t={i18n:function(e){nr.isObject(e.days)&&gr.set(e.days),nr.isObject(e.months)&&Qn(e.months),nr.isBoolean(e.useTitleCase)&&br(e.useTitleCase)}};Object.keys(t).forEach((function(n){e.prototype[n]=t[n]}))},jo=An,_o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.epoch=null,this.tz=Wn(t,jo),this.silent=n.silent||!0,this.british=n.dmy||n.british,this._weekStart=1,void 0!==n.weekStart&&(this._weekStart=n.weekStart),this._today={},void 0!==n.today&&(this._today=n.today),Object.defineProperty(this,"d",{get:function(){var e=$n(this),t=(new Date(this.epoch).getTimezoneOffset()||0)+60*e;t=60*t*1e3;var n=this.epoch+t;return new Date(n)}}),Object.defineProperty(this,"timezones",{get:function(){return jo},set:function(e){return jo=e,e}});var r=hr(this,e,t);this.epoch=r.epoch};Object.keys(Xr).forEach((function(e){_o.prototype[e]=Xr[e]})),_o.prototype.clone=function(){return new _o(this.epoch,this.tz,{silent:this.silent,
1weekStart:this._weekStart,today:this._today})},_o.prototype.toLocalDate=function(){return new Date(this.epoch)},wo(_o),zo(_o),Do(_o),No(_o),Eo(_o);var Ho=_o,Po=function(e,t){var n=new Ho(null),r=new Ho(null);n=n.time(e),r=t?r.time(t):n.add(59,"minutes");var o=n.hour(),i=r.hour();return Object.keys(n.timezones).filter((function(e){if(-1===e.indexOf("/"))return!1;var t=new Ho(null,e),a=t.hour();return a>=o&&a<=i&&(!(a===o&&t.minute()<n.minute())&&!(a===i&&t.minute()>r.minute()))}))},Io=function(e,t,n){return new Ho(e,t,n)},Bo=function(e){var t=e._today||{};return Object.keys(t).forEach((function(n){e=e[n](t[n])})),e};Io.now=function(e,t){var n=new Ho((new Date).getTime(),e,t);return n=Bo(n)},Io.today=function(e,t){var n=new Ho((new Date).getTime(),e,t);return(n=Bo(n)).startOf("day")},Io.tomorrow=function(e,t){var n=new Ho((new Date).getTime(),e,t);return(n=Bo(n)).add(1,"day").startOf("day")},Io.yesterday=function(e,t){var n=new Ho((new Date).getTime(),e,t);return(n=Bo(n)).subtract(1,"day").startOf("day")},Io.extend=function(e){return Object.keys(e).forEach((function(t){Ho.prototype[t]=e[t]})),this},Io.timezones=function(){return(new Ho).timezones},Io.whereIts=Po,Io.version="6.13.0",Io.plugin=Io.extend;var Wo=Io;function Fo(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ro={exports:{}};!function(e,t){e.exports=function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(!s&&Fo)return Fo(a);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return o(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var i=Fo,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){t.exports={blue:"#6699cc",green:"#6accb2",yellow:"#e1e6b3",red:"#cc7066",pink:"#F2C0BB",brown:"#705E5C",orange:"#cc8a66",purple:"#d8b3e6",navy:"#335799",olive:"#7f9c6c",fuscia:"#735873",beige:"#e6d7b3",slate:"#8C8C88",suede:"#9c896c",burnt:"#603a39",sea:"#50617A",sky:"#2D85A8",night:"#303b50",rouge:"#914045",grey:"#838B91",mud:"#C4ABAB",royal:"#275291",cherry:"#cc6966",tulip:"#e6b3bc",rose:"#D68881",fire:"#AB5850",greyblue:"#72697D",greygreen:"#8BA3A2",greypurple:"#978BA3",burn:"#6D5685",slategrey:"#bfb0b3",light:"#a3a5a5",lighter:"#d7d5d2",fudge:"#4d4d4d",lightgrey:"#949a9e",white:"#fbfbfb",dimgrey:"#606c74",softblack:"#463D4F",dark:"#443d3d",black:"#333333"}},{}],2:[function(e,t,n){var r=e("./colors"),o={juno:["blue","mud","navy","slate","pink","burn"],barrow:["rouge","red","orange","burnt","brown","greygreen"],roma:["#8a849a","#b5b0bf","rose","lighter","greygreen","mud"],palmer:["red","navy","olive","pink","suede","sky"],mark:["#848f9a","#9aa4ac","slate","#b0b8bf","mud","grey"],salmon:["sky","sea","fuscia","slate","mud","fudge"],dupont:["green","brown","orange","red","olive","blue"],bloor:["night","navy","beige","rouge","mud","grey"],yukon:["mud","slate","brown","sky","beige","red"],david:["blue","green","yellow","red","pink","light"],neste:["mud","cherry","royal","rouge","greygreen","greypurple"],ken:["red","sky","#c67a53","greygreen","#dfb59f","mud"]};Object.keys(o).forEach((function(e){o[e]=o[e].map((function(e){return r[e]||e}))})),t.exports=o},{"./colors":1}],3:[function(e,t,n){var r=e("./colors"),o=e("./combos"),i={colors:r,list:Object.keys(r).map((function(e){return r[e]})),combos:o};t.exports=i},{"./colors":1,"./combos":2}]},{},[3])(3)}(Ro);var qo=Ro.exports;const Go=function(e){let t={};return Object.keys(e).forEach((n=>{let r=Wo(n).format("iso-short"),o=e[n];o=qo.colors[o]||o,t[r]=o})),t};function Uo(e,t,n){const r=e.slice();return r[16]=t[n],r}function Yo(e,t,n){const r=e.slice();return r[19]=t[n],r}function Ko(t){let n;return{c(){n=y("div"),n.textContent=" ",C(n,"class","day noday square svelte-1dblamv")},m(e,t){m(e,n,t)},p:e,d(e){e&&g(n)}}}function Vo(e){let t,n,r,o,i,a,s,l=e[19].num+"";function c(){return e[12](e[19])}return{c(){t=y("div"),n=y("div"),r=w(l),C(n,"class","num svelte-1dblamv"),C(t,"class","day square svelte-1dblamv"),C(t,"style",o="background-color:"+e[19].color),C(t,"title",i=e[19].iso),O(t,"today",e[19].isToday),O(t,"weekend",e[19].isWeekend),O(t,"topHome",e[19].isTop&&e[19].isHome),O(t,"bottomHome",e[19].isBottom&&e[19].isHome),O(t,"topAw
1ay",e[19].isTop&&!e[19].isHome),O(t,"bottomAway",e[19].isBottom&&!e[19].isHome),O(t,"highlight","none"!==e[19].color)},m(e,o){m(e,t,o),p(t,n),p(n,r),a||(s=$(t,"click",c),a=!0)},p(n,a){e=n,4&a&&l!==(l=e[19].num+"")&&S(r,l),4&a&&o!==(o="background-color:"+e[19].color)&&C(t,"style",o),4&a&&i!==(i=e[19].iso)&&C(t,"title",i),4&a&&O(t,"today",e[19].isToday),4&a&&O(t,"weekend",e[19].isWeekend),4&a&&O(t,"topHome",e[19].isTop&&e[19].isHome),4&a&&O(t,"bottomHome",e[19].isBottom&&e[19].isHome),4&a&&O(t,"topAway",e[19].isTop&&!e[19].isHome),4&a&&O(t,"bottomAway",e[19].isBottom&&!e[19].isHome),4&a&&O(t,"highlight","none"!==e[19].color)},d(e){e&&g(t),a=!1,s()}}}function Zo(e){let t;function n(e,t){return e[19].inMonth?Vo:Ko}let r=n(e),o=r(e);return{c(){o.c(),t=x()},m(e,n){o.m(e,n),m(e,t,n)},p(e,i){r===(r=n(e))&&o?o.p(e,i):(o.d(1),o=r(e),o&&(o.c(),o.m(t.parentNode,t)))},d(e){o.d(e),e&&g(t)}}}function Xo(e){let t,n,r=e[16],o=[];for(let t=0;t<r.length;t+=1)o[t]=Zo(Yo(e,r,t));return{c(){t=y("div");for(let e=0;e<o.length;e+=1)o[e].c();n=k(),C(t,"class","week svelte-1dblamv")},m(e,r){m(e,t,r);for(let e=0;e<o.length;e+=1)o[e].m(t,null);p(t,n)},p(e,i){if(6&i){let a;for(r=e[16],a=0;a<r.length;a+=1){const s=Yo(e,r,a);o[a]?o[a].p(s,i):(o[a]=Zo(s),o[a].c(),o[a].m(t,n))}for(;a<o.length;a+=1)o[a].d(1);o.length=r.length}},d(e){e&&g(t),v(o,e)}}}function Qo(e){let t,n,r,o,i,a,s=e[0].format("month")+"",l=e[2],u=[];for(let t=0;t<l.length;t+=1)u[t]=Xo(Uo(e,l,t));const b=e[11].default,x=c(b,e,e[10],null);return{c(){t=y("div"),n=y("div"),r=w(s),o=k();for(let e=0;e<u.length;e+=1)u[e].c();i=k(),x&&x.c(),C(n,"class","monthName svelte-1dblamv"),C(t,"class","month"),L(t,"width","100%")},m(e,s){m(e,t,s),p(t,n),p(n,r),p(t,o);for(let e=0;e<u.length;e+=1)u[e].m(t,null);m(e,i,s),x&&x.m(e,s),a=!0},p(e,[n]){if((!a||1&n)&&s!==(s=e[0].format("month")+"")&&S(r,s),6&n){let r;for(l=e[2],r=0;r<l.length;r+=1){const o=Uo(e,l,r);u[r]?u[r].p(o,n):(u[r]=Xo(o),u[r].c(),u[r].m(t,null))}for(;r<u.length;r+=1)u[r].d(1);u.length=l.length}x&&x.p&&(!a||1024&n)&&f(x,b,e,e[10],a?d(b,e[10],n,null):h(e[10]),null)},i(e){a||(Y(x,e),a=!0)},o(e){K(x,e),a=!1},d(e){e&&g(t),v(u,e),e&&g(i),x&&x.d(e)}}}function Jo(e,t,n){let r,o,i,{$$slots:a={},$$scope:s}=t,{days:l={}}=t,{tops:c={}}=t,{bottoms:u={}}=t,{isHome:d={}}=t,{date:f=""}=t,{onClick:h=(()=>{})}=t,{showToday:p=!0}=t,m=Wo.now();const g=function(e){let t=e.dayName();return"saturday"===t||"sunday"===t};c=Go(c),u=Go(u),d=Go(d);return e.$$set=e=>{"days"in e&&n(6,l=e.days),"tops"in e&&n(3,c=e.tops),"bottoms"in e&&n(4,u=e.bottoms),"isHome"in e&&n(5,d=e.isHome),"date"in e&&n(0,f=e.date),"onClick"in e&&n(1,h=e.onClick),"showToday"in e&&n(7,p=e.showToday),"$$scope"in e&&n(10,s=e.$$scope)},e.$$.update=()=>{1&e.$$.dirty&&n(9,r=function(e){let t=e.startOf("month"),n=[],r=t.startOf("week");for(let e=0;e<6;e+=1){let e=[];for(let t=0;t<7;t+=1)e.push(r),r=r.add(1,"day");if(n.push(e),!1===e[e.length-1].isSame(t,"month"))return n}return n}(f)||[]),64&e.$$.dirty&&n(8,o=Go(l)),825&e.$$.dirty&&n(2,i=r.map((e=>e.map((e=>{let t=e.format("iso-short");var n;return{iso:t,color:o[t]||c[t]||"none",num:e.format("{date}"),isTop:c.hasOwnProperty(t),isHome:d.hasOwnProperty(t),isBottom:u.hasOwnProperty(t),isToday:(n=e,p&&n.isSame(m,"day")),isWeekend:g(e),inMonth:e.isSame(f,"month")}})))))},[f,h,i,c,u,d,l,p,o,r,s,a,e=>h(e)]}class ei extends ee{constructor(e){super(),J(this,e,Jo,Qo,i,{days:6,tops:3,bottoms:4,isHome:5,date:0,onClick:1,showToday:7})}}function ti(e,t,n){const r=e.slice();return r[7]=t[n],r}function ni(e,t,n){const r=e.slice();return r[10]=t[n],r}function ri(e){let t,n,r;return n=new ei({props:{date:e[10],days:e[0],showToday:e[3],tops:e[1],bottoms:e[2]}}),{c(){t=y("div"),V(n.$$.fragment),C(t,"class","gap svelte-t5e0rj")},m(e,o){m(e,t,o),Z(n,t,null),r=!0},p(e,t){const r={};16&t&&(r.date=e[10]),1&t&&(r.days=e[0]),8&t&&(r.showToday=e[3]),2&t&&(r.tops=e[1]),4&t&&(r.bottoms=e[2]),n.$set(r)},i(e){r||(Y(n.$$.fragment,e),r=!0)},o(e){K(n.$$.fragment,e),r=!1},d(e){e&&g(t),X(n)}}}function oi(e){let t,n,r,o=e[7],i=[];for(let t=0;t<o.length;t+=1)i[t]=ri(ni(e,o,t));const a=e=>K(i[e],1,1,(()=>{i[e]=null}));return{c(){t=y("div");for(let e=0;e<i.length;e+=1)i[e].c();n=k(),C(t,"class","row svelte-t5e0rj")},m(e,o){m(e,t,o);for(let e=0;e<i.length;e+=1)i[e].m(t,null);p(t,n),r=!0},p(e,r){if(31&r){let s;for(o=e[7],s=0;s<o.length;s+=1){const a=ni(e,o,s);i[s]?(i[s].p(a,r),Y(i[s],1)):(i[s]=ri(a),i[s].c(),Y(i[s],1),i[s].m(t,n))}for(G(),s=o.length;s<i.length;s+=1)a(s);U()}},i(e){if(!r){for(let e=0;e<o.length;e+=1)Y(i[e]);r=!0}}
1,o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)K(i[e]);r=!1},d(e){e&&g(t),v(i,e)}}}function ii(e){let t,n,r=e[4](),o=[];for(let t=0;t<r.length;t+=1)o[t]=oi(ti(e,r,t));const i=e=>K(o[e],1,1,(()=>{o[e]=null}));return{c(){t=y("div");for(let e=0;e<o.length;e+=1)o[e].c();C(t,"class","col svelte-t5e0rj")},m(e,r){m(e,t,r);for(let e=0;e<o.length;e+=1)o[e].m(t,null);n=!0},p(e,[n]){if(31&n){let a;for(r=e[4](),a=0;a<r.length;a+=1){const i=ti(e,r,a);o[a]?(o[a].p(i,n),Y(o[a],1)):(o[a]=oi(i),o[a].c(),Y(o[a],1),o[a].m(t,null))}for(G(),a=r.length;a<o.length;a+=1)i(a);U()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)Y(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)K(o[e]);n=!1},d(e){e&&g(t),v(o,e)}}}function ai(e,t,n){let r,{date:o=""}=t,{year:i=Wo.now().year()}=t,{days:a={}}=t,{tops:s={}}=t,{bottoms:l={}}=t,{showToday:c=!0}=t;return o=Wo(o),e.$$set=e=>{"date"in e&&n(5,o=e.date),"year"in e&&n(6,i=e.year),"days"in e&&n(0,a=e.days),"tops"in e&&n(1,s=e.tops),"bottoms"in e&&n(2,l=e.bottoms),"showToday"in e&&n(3,c=e.showToday)},e.$$.update=()=>{64&e.$$.dirty&&n(4,r=()=>
1{let e=Wo.now().year(i).startOf("year"),t=e.minus(1,"second").every("month",e.endOf("year"));return[t.slice(0,3),t.slice(3,6),t.slice(6,9),t.slice(9,12)]})},[a,s,l,c,r,o,i]}class si extends ee{constructor(e){super(),J(this,e,ai,ii,i,{date:5,year:6,days:0,tops:1,bottoms:2,showToday:3})}}function li(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ci(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ui=function(e,t,n){var r=li(e.split("/"),2),o=r[0],i=li(r[1].split(":"),2),a=i[0],s=i[1];return Date.UTC(n,o-1,a,s)-36e5*t},di=function(e,t,n,r,o){var i=new Date(e).getUTCFullYear(),a=ui(t,o,i),s=ui(n,r,i);return e>=a&&e<s},fi=function(e){var t=e.timezones[e.tz];if(void 0===t)return console.warn("Warning: couldn't find timezone "+e.tz),0;if(void 0===t.dst)return t.offset;var n=t.offset,r=t.offset+1;"n"===t.hem&&(r=n-1);var o=t.dst.split("->");return!0===di(e.epoch,o[0],o[1],n,r)?n:r},hi=["africa","america","asia","atlantic","australia","brazil","canada","chile","europe","indian","mexico","pacific","antarctica","etc"];var pi=function(e){return e&&e.default||e}(Object.freeze({__proto__:null,default:{"9|s":"2/dili,2/jayapura","9|n":"2/chita,2/khandyga,2/pyongyang,2/seoul,2/tokyo,11/palau","9.5|s|04/04:03->10/03:02":"4/adelaide,4/broken_hill,4/south,4/yancowinna","9.5|s":"4/darwin,4/north","8|s|03/08:01->10/04:00":"12/casey","8|s":"2/kuala_lumpur,2/makassar,2/singapore,4/perth,4/west","8|n|03/25:03->09/29:23":"2/ulan_bator","8|n":"2/brunei,2/choibalsan,2/chongqing,2/chungking,2/harbin,2/hong_kong,2/irkutsk,2/kuching,2/macao,2/macau,2/manila,2/shanghai,2/taipei,2/ujung_pandang,2/ulaanbaatar","8.75|s":"4/eucla","7|s":"12/davis,2/jakarta,9/christmas","7|n":"2/bangkok,2/barnaul,2/ho_chi_minh,2/hovd,2/krasnoyarsk,2/novokuznetsk,2/novosibirsk,2/phnom_penh,2/pontianak,2/saigon,2/tomsk,2/vientiane","6|s":"12/vostok","6|n":"2/almaty,2/bishkek,2/dacca,2/dhaka,2/kashgar,2/omsk,2/qyzylorda,2/qostanay,2/thimbu,2/thimphu,2/urumqi,9/chagos","6.5|n":"2/rangoon,2/yangon,9/cocos","5|s":"12/mawson,9/kerguelen","5|n":"2/aqtau,2/aqtobe,2/ashgabat,2/ashkhabad,2/atyrau,2/baku,2/dushanbe,2/karachi,2/oral,2/samarkand,2/tashkent,2/yekaterinburg,9/maldives","5.75|n":"2/kathmandu,2/katmandu","5.5|n":"2/calcutta,2/colombo,2/kolkata","4|s":"9/reunion","4|n":"2/dubai,2/muscat,2/tbilisi,2/yerevan,8/astrakhan,8/samara,8/saratov,8/ulyanovsk,8/volgograd,2/volgograd,9/mahe,9/mauritius","4.5|n|03/22:00->09/21:24":"2/tehran","4.5|n":"2/kabul","3|s":"12/syowa,9/antananarivo","3|n|03/28:03->10/31:04":"2/famagusta,2/nicosia,8/athens,8/bucharest,8/helsinki,8/kiev,8/mariehamn,8/nicosia,8/riga,8/sofia,8/tallinn,8/uzhgorod,8/vilnius,8/zaporozhye","3|n|03/28:02->10/31:03":"8/chisinau,8/tiraspol","3|n|03/28:00->10/30:24":"2/beirut","3|n|03/27:00->10/30:01":"2/gaza,2/hebron","3|n|03/26:02->10/31:02":"2/jerusalem,2/tel_aviv","3|n|03/26:00->10/29:01":"2/amman","3|n|03/26:00->10/28:24":"2/damascus","3|n":"0/addis_ababa,0/asmara,0/asmera,0/dar_es_salaam,0/djibouti,0/juba,0/kampala,0/mogadishu,0/nairobi,2/aden,2/baghdad,2/bahrain,2/istanbul,2/kuwait,2/qatar,2/riyadh,8/istanbul,8/kirov,8/minsk,8/moscow,8/simferopol,9/comoro,9/mayotte","2|s|03/28:02->10/31:02":"12/troll","2|s":"0/gaborone,0/harare,0/johannesburg,0/lubumbashi,0/lusaka,0/maputo,0/maseru,0/mbabane","2|n|03/28:02->10/31:03":"0/ceuta,arctic/longyearbyen,3/jan_mayen,8/amsterdam,8/andorra,8/belgrade,8/berlin,8/bratislava,8/brussels,8/budapest,8/busingen,8/copenhagen,8/gibraltar,8/ljubljana,8/luxembourg,8/madrid,8/malta,8/monaco,8/oslo,8/paris,8/podgorica,8/prague,8/rome,8/san_marino,8/sarajevo,8/skopje,8/stockholm,8/tirane,8/vaduz,8/vatican,8/vienna,8/warsaw,8/zagreb,8/zurich","2|n":"0/blantyre,0/bujumbura,0/cairo,0/khartoum,0/kigali,0/tripoli,8/kaliningrad","1|s|04/02:01->09/03:03":"0/windhoek","1|s":"0/kinshasa,0/luanda","1|n|04/11:03->
105/16:02":"0/casablanca,0/el_aaiun","1|n|03/28:01->10/31:02":"3/canary,3/faeroe,3/faroe,3/madeira,8/belfast,8/dublin,8/guernsey,8/isle_of_man,8/jersey,8/lisbon,8/london","1|n":"0/algiers,0/bangui,0/brazzaville,0/douala,0/lagos,0/libreville,0/malabo,0/ndjamena,0/niamey,0/porto-novo,0/tunis","14|n":"11/kiritimati","13|s|04/04:04->09/26:03":"11/apia","13|s|01/15:02->11/05:03":"11/tongatapu","13|n":"11/enderbury,11/fakaofo","12|s|04/04:03->09/26:02":"12/mcmurdo,12/south_pole,11/auckland","12|s|01/17:03->11/14:02":"11/fiji","12|n":"2/anadyr,2/kamchatka,2/srednekolymsk,11/funafuti,11/kwajalein,11/majuro,11/nauru,11/tarawa,11/wake,11/wallis","12.75|s|04/04:03->04/04:02":"11/chatham","11|s|04/04:03->10/03:02":"12/macquarie","11|s":"11/bougainville","11|n":"2/magadan,2/sakhalin,11/efate,11/guadalcanal,11/kosrae,11/noumea,11/pohnpei,11/ponape","11.5|n|04/04:03->10/03:02":"11/norfolk","10|s|04/04:03->10/03:02":"4/act,4/canberra,4/currie,4/hobart,4/melbourne,4/nsw,4/sydney,4/tasmania,4/victoria","10|s":"12/dumontdurville,4/brisbane,4/lindeman,4/queensland","10|n":"2/ust-nera,2/vladivostok,2/yakutsk,11/chuuk,11/guam,11/port_moresby,11/saipan,11/truk,11/yap","10.5|s|04/04:01->10/03:02":"4/lhi,4/lord_howe","0|n|03/28:00->10/31:01":"1/scoresbysund,3/azores","0|n":"0/abidjan,0/accra,0/bamako,0/banjul,0/bissau,0/conakry,0/dakar,0/freetown,0/lome,0/monrovia,0/nouakchott,0/ouagadougou,0/sao_tome,0/timbuktu,1/danmarkshavn,3/reykjavik,3/st_helena,13/gmt,13/gmt+0,13/gmt-0,13/gmt0,13/greenwich,13/utc,13/universal,13/zulu","-9|n|03/14:02->11/07:02":"1/adak,1/atka","-9|n":"11/gambier","-9.5|n":"11/marquesas","-8|n|03/14:02->
111/07:02":"1/anchorage,1/juneau,1/metlakatla,1/nome,1/sitka,1/yakutat","-8|n":"11/pitcairn","-7|n|03/14:02->11/07:02":"1/ensenada,1/los_angeles,1/santa_isabel,1/tijuana,1/vancouver,6/pacific,10/bajanorte","-7|n|03/08:02->11/01:01":"1/dawson,1/whitehorse,6/yukon","-7|n":"1/creston,1/dawson_creek,1/fort_nelson,1/hermosillo,1/phoenix","-6|s|04/03:22->09/04:22":"7/easterisland,11/easter","-6|n|04/04:02->10/31:02":"1/chihuahua,1/mazatlan,10/bajasur","-6|n|03/14:02->11/07:02":"1/boise,1/cambridge_bay,1/denver,1/edmonton,1/inuvik,1/ojinaga,1/shiprock,1/yellowknife,6/mountain","-6|n":"1/belize,1/costa_rica,1/el_salvador,1/guatemala,1/managua,1/regina,1/swift_current,1/tegucigalpa,6/east-saskatchewan,6/saskatchewan,11/galapagos","-5|s":"1/lima,1/rio_branco,5/acre","-5|n|04/04:02->10/31:02":"1/bahia_banderas,1/merida,1/mexico_city,1/monterrey,10/general","-5|n|03/14:02->11/07:02":"1/chicago,1/knox_in,1/matamoros,1/menominee,1/rainy_river,1/rankin_inlet,1/resolute,1/winnipeg,6/central","-5|n|03/12:03->11/05:01":"1/north_dakota","-5|n":"1/atikokan,1/bogota,1/cancun,1/cayman,1/coral_harbour,1/eirunepe,1/guayaquil,1/jamaica,1/panama,1/porto_acre","-4|s|05/13:23->08/13:01":"12/palmer","-4|s|04/03:24->09/05:00":"1/santiago,7/continental","-4|s|03/27:24->10/03:00":"1/asuncion","-4|s|02/16:24->11/03:00":"1/campo_grande,1/cuiaba","-4|s":"1/la_paz,1/manaus,5/west","-4|n|03/14:02->11/07:02":"1/detroit,1/fort_wayne,1/grand_turk,1/indianapolis,1/iqaluit,1/louisville,1/montreal,1/nassau,1/new_york,1/nipigon,1/pangnirtung,1/port-au-prince,1/thunder_bay,1/toronto,6/eastern","-4|n|03/14:00->11/07:01":"1/havana","-4|n|03/12:03->11/05:01":"1/indiana,1/kentucky","-4|n":"1/anguilla,1/antigua,1/aruba,1/barbados,1/blanc-sablon,1/boa_vista,1/caracas,1/curacao,1/dominica,1/grenada,1/guadeloupe,1/guyana,1/kralendijk,1/lower_princes,1/marigot,1/martinique,1/montserrat,1/port_of_spain,1/porto_velho,1/puerto_rico,1/santo_domingo,1/st_barthelemy,1/st_kitts,1/st_lucia,1/st_thomas,1/st_vincent,1/tortola,1/virgin","-3|s":"1/argentina,1/buenos_aires,1/cordoba,1/fortaleza,1/montevideo,1/punta_arenas,1/sao_paulo,12/rothera,3/stanley,5/east","-3|n|03/27:22->10/30:23":"1/nuuk","-3|n|03/14:02->11/07:02":"1/glace_bay,1/goose_bay,1/halifax,1/moncton,1/thule,3/bermuda,6/atlantic","-3|n":"1/araguaina,1/bahia,1/belem,1/catamarca,1/cayenne,1/jujuy,1/maceio,1/mendoza,1/paramaribo,1/recife,1/rosario,1/santarem","-2|s":"5/denoronha","-2|n|03/27:22->10/30:23":"1/godthab","-2|n|03/14:02->11/07:02":"1/miquelon","-2|n":"1/noronha,3/south_georgia","-2.5|n|03/14:02->11/07:02":"1/st_johns,6/newfoundland","-1|n":"3/cape_verde","-11|n":"11/midway,11/niue,11/pago_pago,11/samoa","-10|n":"11/honolulu,11/johnston,11/rarotonga,11/tahiti"}})),mi={};Object.keys(pi).forEach((function(e){var t=e.split("|"),n={offset:Number(t[0]),hem:t[1]};t[2]&&(n.dst=t[2]),pi[e].split(",").forEach((function(e){e=e.replace(/(^[0-9]+)\//,(function(e,t){return t=Number(t),hi[t]+"/"})),mi[e]=n}))})),mi.utc={offset:0,hem:"n"};for(var gi=-14;gi<=14;gi+=.5){var vi=gi;vi>0&&(vi="+"+vi);var yi="etc/gmt"+vi;mi[yi]={offset:-1*gi,hem:"n"},mi[yi="utc/gmt"+vi]={offset:-1*gi,hem:"n"}}var bi=mi,wi=function(){var e=function(){if("undefined"==typeof Intl||void 0===Intl.DateTimeFormat)return null;var e=Intl.DateTimeFormat();if(void 0===e||void 0===e.resolvedOptions)return null;var t=e.resolvedOptions().timeZone;return t?t.toLowerCase():null}();return null===e?"utc":e},ki=/(\-?[0-9]+)h(rs)?/i,xi=/(\-?[0-9]+)/,$i=/utc([\-+]?[0-9]+)/i,Ci=/gmt([\-+]?[0-9]+)/i,Si=function(e){return(e=Number(e))>=-13&&e<=13?"etc/gmt"+(e=((e*=-1)>0?"+":"")+e):null},Mi=function(e){var t=e.match(ki);if(null!==t)return Si(t[1]);if(null!==(t=e.match($i)))return Si(t[1]);if(null!==(t=e.match(Ci))){var n=-1*Number(t[1]);return Si(n)}return null!==(t=e.match(xi))?Si(t[1]):null},Li=wi(),Ti=Object.keys(bi).reduce((function(e,t){var n=t.split("/")[1]||"";return e[n=n.replace(/_/g," ")]=t,e}),{}),Oi=function(e,t){if(!e)return Li;"string"!=typeof e&&console.error("Timezone must be a string - recieved: '",e,"'\n");var n=e.trim(),r=e.split("/");if(r.length>2&&!1===t.hasOwnProperty(n)&&(n=r[0]+"/"+r[1]),n=n.toLowerCase(),!0===t.hasOwnProperty(n))return n;
1if(n=function(e){return(e=(e=(e=(e=(e=e.replace(/ time/g,"")).replace(/ (standard|daylight|summer)/g,"")).replace(/\b(east|west|north|south)ern/g,"$1")).replace(/\b(africa|america|australia)n/g,"$1")).replace(/\beuropean/g,"europe")).replace(/\islands/g,"island")}(n),!0===t.hasOwnProperty(n))return n;if(!0===Ti.hasOwnProperty(n))return Ti[n];if(!0===/[0-9]/.test(n)){var o=Mi(n);if(o)return o}throw new Error("Spacetime: Cannot find timezone named: '"+e+"'. Please enter an IANA timezone id.")},zi={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5};zi.date=zi.day,zi.month=25488e5,zi.week=6048e5,zi.year=3154e7,Object.keys(zi).forEach((function(e){zi[e+"s"]=zi[e]}));var Ai=zi,Di=function(e,t,n,r,o){var i=e.d[n]();if(i!==t){var a=null===o?null:e.d[o](),s=e.epoch,l=t-i;e.epoch+=Ai[r]*l,"day"===r&&Math.abs(l)>28&&t<28&&(e.epoch+=Ai.hour),null!==o&&a!==e.d[o]()&&(e.epoch=s);for(var c=Ai[r]/2;e.d[n]()<t;)e.epoch+=c;for(;e.d[n]()>t;)e.epoch-=c;null!==o&&a!==e.d[o]()&&(e.epoch=s)}},Ni={year:{valid:function(e){return e>-4e3&&e<4e3},walkTo:function(e,t){return Di(e,t,"getFullYear","year",null)}},month:{valid:function(e){return e>=0&&e<=11},walkTo:function(e,t){var n=e.d,r=n.getMonth(),o=e.epoch,i=n.getFullYear();if(r!==t){var a=t-r;for(e.epoch+=Ai.day*(28*a),i!==e.d.getFullYear()&&(e.epoch=o);e.d.getMonth()<t;)e.epoch+=Ai.day;for(;e.d.getMonth()>t;)e.epoch-=Ai.day}}},date:{valid:function(e){return e>0&&e<=31},walkTo:function(e,t){return Di(e,t,"getDate","day","getMonth")}},hour:{valid:function(e){return e>=0&&e<24},walkTo:function(e,t){return Di(e,t,"getHours","hour","getDate")}},minute:{valid:function(e){return e>=0&&e<60},walkTo:function(e,t){return Di(e,t,"getMinutes","minute","getHours")}},second:{valid:function(e){return e>=0&&e<60},walkTo:function(e,t){e.epoch=e.seconds(t).epoch}},millisecond:{valid:function(e){return e>=0&&e<1e3},walkTo:function(e,t){e.epoch=e.milliseconds(t).epoch}}},Ei=function(e,t){for(var n=Object.keys(Ni),r=e.clone(),o=0;o<n.length;o++){var i=n[o],a=t[i];if(void 0===a&&(a=r[i]()),"string"==typeof a&&(a=parseInt(a,10)),!Ni[i].valid(a))return e.epoch=null,void(!1===e.silent&&console.warn("invalid "+i+": "+a));Ni[i].walkTo(e,a)}},ji=["jan","feb","mar","apr","may","jun","jul","aug","sept","oct","nov","dec"],_i=["january","february","march","april","may","june","july","august","september","october","november","december"];var Hi=function(){return ji},Pi=function(){return _i},Ii=function(){return function(){for(var e={sep:8},t=0;t<ji.length;t++)e[ji[t]]=t;for(var n=0;n<_i.length;n++)e[_i[n]]=n;return e}()},Bi=function(e){ji=e.short||ji,_i=e.long||_i},Wi=function(e,t){if(!t)return e;"Z"!==t&&"z"!==t||(t="+0000");var n=0;/^[\+-]?[0-9]{2}:[0-9]{2}$/.test(t)&&(!0===/:00/.test(t)&&(t=t.replace(/:00/,"")),!0===/:30/.test(t)&&(t=t.replace(/:30/,".5"))),/^[\+-]?[0-9]{4}$/.test(t)&&(t=t.replace(/30$/,".5")),n=parseFloat(t),Math.abs(n)>100&&(n/=100),(n*=-1)>=0&&(n="+"+n);var r="etc/gmt"+n;return e.timezones[r]&&(e.tz=r),e},Fi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(t=t.replace(/^\s+/,"").toLowerCase()).match(/([0-9]{1,2}):([0-9]{1,2}):?([0-9]{1,2})?[:\.]?([0-9]{1,4})?/);if(null!==n){var r=Number(n[1]);if(r<0||r>24)return e.startOf("day");var o=Number(n[2]);if(n[2].length<2||o<0||o>59)return e.startOf("day");n[4]>999&&(n[4]=parseInt("".concat(n[4]).substring(0,3),10)),e=(e=(e=(e=e.hour(r)).minute(o)).seconds(n[3]||0)).millisecond(n[4]||0);var i=t.match(/[\b0-9](am|pm)\b/);return null!==i&&i[1]&&(e=e.ampm(i[1])),e}if(null!==(n=t.match(/([0-9]+) ?(am|pm)/))&&n[1]){var a=Number(n[1]);return a>12||a<1?e.startOf("day"):e=(e=(e=e.hour(n[1]||0)).ampm(n[2])).startOf("hour")}return e=e.startOf("day")},Ri=[31,28,31,30,31,30,31,31,30,31,30,31],qi=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){t.isLeapYear=function(e){return e%4==0&&e%100!=0||e%400==0},t.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.valueOf())},t.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isBoolean=function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},t.zeroPad=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n="0";return(e+="").length>=t?e:new Array(t-e.length+1).join(n)+e},t.titleCase=function(e){return e?e[0].toUpperCase()+e.substr(1):""},t.ordinal=function(e){var t=e%10,n=e%100;return 1===t&&11!==n?e+"st":2===t&&12!==n?e+"nd":3===t&&13!==n?e+"rd":e+"th"},t.toCardinal=function(e){return e=(e=String(e)).replace(/([0-9])(st|nd|rd|th)$/i,"$1"),parseInt(e,10)},t.normalize=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";
1return"day"===(e=(e=(e=(e=e.toLowerCase().trim()).replace(/ies$/,"y")).replace(/s$/,"")).replace(/-/g,""))||"days"===e?"date":"min"===e||"mins"===e?"minute":e},t.getEpoch=function(e){return"number"==typeof e?e:t.isDate(e)?e.getTime():e.epoch?e.epoch:null},t.beADate=function(e,n){return!1===t.isObject(e)?n.clone().set(e):e},t.formatTimezone=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e>0?"+":"-",o=Math.abs(e),i=t.zeroPad(parseInt(""+o,10)),a=t.zeroPad(o%1*60);return"".concat(r).concat(i).concat(n).concat(a)}}));qi.isLeapYear,qi.isDate,qi.isArray,qi.isObject,qi.isBoolean,qi.zeroPad,qi.titleCase,qi.ordinal,qi.toCardinal,qi.normalize,qi.getEpoch,qi.beADate,qi.formatTimezone;var Gi=qi.isLeapYear,Ui=function(e){if(!0!==Ri.hasOwnProperty(e.month))return!1;if(1===e.month)return!!(Gi(e.year)&&e.date<=29)||e.date<=28;var t=Ri[e.month]||0;return e.date<=t},Yi=Ii(),Ki=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=parseInt(e.trim(),10);return!n&&t&&(n=t.year),n=n||(new Date).getFullYear()},Vi=[{reg:/^(\-?0?0?[0-9]{3,4})-([0-9]{1,2})-([0-9]{1,2})[T| ]([0-9.:]+)(Z|[0-9\-\+:]+)?$/i,parse:function(e,t,n,r){var o=parseInt(t[2],10)-1,i={year:t[1],month:o,date:t[3]};return!1===Ui(i)?(e.epoch=null,e):(Wi(e,t[5]),Ei(e,i),e=Fi(e,t[4]))}},{reg:/^([0-9]{4})[\-\/.]([0-9]{1,2})[\-\/.]([0-9]{1,2}),?( [0-9]{1,2}:[0-9]{2}:?[0-9]{0,2}? ?(am|pm|gmt))?$/i,parse:function(e,t){var n={year:t[1],month:parseInt(t[2],10)-1,date:parseInt(t[3],10)};return n.month>=12&&(n.date=parseInt(t[2],10),n.month=parseInt(t[3],10)-1),!1===Ui(n)?(e.epoch=null,e):(Ei(e,n),e=Fi(e,t[4]))}},{reg:/^([0-9]{1,2})[\-\/.]([0-9]{1,2})[\-\/.]?([0-9]{4})?,?( [0-9]{1,2}:[0-9]{2}:?[0-9]{0,2}? ?(am|pm|gmt))?$/i,parse:function(e,t){var n=parseInt(t[1],10)-1,r=parseInt(t[2],10);(e.british||n>=12)&&(r=parseInt(t[1],10),n=parseInt(t[2],10)-1);var o={year:Ki(t[3],e._today)||(new Date).getFullYear(),month:n,date:r};return!1===Ui(o)?(e.epoch=null,e):(Ei(e,o),e=Fi(e,t[4]))}},{reg:/^([0-9]{4})[\-\/]([0-9]{2})$/i,parse:function(e,t,n,r){var o=parseInt(t[2],10)-1,i={year:t[1],month:o,date:1};return!1===Ui(i)?(e.epoch=null,e):(Wi(e,t[5]),Ei(e,i),e=Fi(e,t[4]))}},{reg:/^([0-9]{1,2})[\-\/]([a-z]+)[\-\/]?([0-9]{4})?$/i,parse:function(e,t){var n=Yi[t[2].toLowerCase()],r={year:Ki(t[3],e._today),month:n,date:qi.toCardinal(t[1]||"")};return!1===Ui(r)?(e.epoch=null,e):(Ei(e,r),e=Fi(e,t[4]))}},{reg:/^([a-z]+)[\-\/]([0-9]{1,2})[\-\/]?([0-9]{4})?$/i,parse:function(e,t){var n=Yi[t[1].toLowerCase()],r={year:Ki(t[3],e._today),month:n,date:qi.toCardinal(t[2]||"")};return!1===Ui(r)?(e.epoch=null,e):(Ei(e,r),e=Fi(e,t[4]))}},{reg:/^([a-z]+) ([0-9]{1,2}(?:st|nd|rd|th)?),?( [0-9]{4})?( ([0-9:]+( ?am| ?pm| ?gmt)?))?$/i,parse:function(e,t){var n=Yi[t[1].toLowerCase()],r={year:Ki(t[3],e._today),month:n,date:qi.toCardinal(t[2]||"")};return!1===Ui(r)?(e.epoch=null,e):(Ei(e,r),e=Fi(e,t[4]))}},{reg:/^([a-z]+) ([0-9]{4})$/i,parse:function(e,t){var n=Yi[t[1].toLowerCase()],r={year:Ki(t[2],e._today),month:n,date:e._today.date||1};return!1===Ui(r)?(e.epoch=null,e):(Ei(e,r),e=Fi(e,t[4]))}},{reg:/^([0-9]{1,2}(?:st|nd|rd|th)?) ([a-z]+),?( [0-9]{4})?,? ?([0-9]{1,2}:[0-9]{2}:?[0-9]{0,2}? ?(am|pm|gmt))?$/i,parse:function(e,t){var n=Yi[t[2].toLowerCase()];if(!n)return null;var r={year:Ki(t[3],e._today),month:n,date:qi.toCardinal(t[1])};return!1===Ui(r)?(e.epoch=null,e):(Ei(e,r),e=Fi(e,t[4]))}},{reg:/^(q[0-9])( of)?( [0-9]{4})?/i,parse:function(e,t){var n=t[1]||"";e=e.quarter(n);var r=t[3]||"";return r&&(r=r.trim(),e=e.year(r)),e}},{reg:/^(spring|summer|winter|fall|autumn)( of)?( [0-9]{4})?/i,parse:function(e,t){var n=t[1]||"";e=e.season(n);var r=t[3]||"";return r&&(r=r.trim(),e=e.year(r)),e}},{reg:/^[0-9,]+ ?b\.?c\.?$/i,parse:function(e,t){var n=t[0]||"";n=(n=n.replace(/^([0-9,]+) ?b\.?c\.?$/i,"-$1")).replace(/,/g,"");var r=parseInt(n.trim(),10),o=new Date,i={year:r,month:o.getMonth(),date:o.getDate()};return!1===Ui(i)?(e.epoch=null,e):(Ei(e,i),e=Fi(e))}},{reg:/^[0-9,]+ ?(a\.?d\.?|c\.?e\.?)$/i,parse:function(e,t){var n=t[0]||"";n=n.replace(/,/g,"");var r=parseInt(n.trim(),10),o=new Date,i={year:r,month:o.getMonth(),date:o.getDate()};return!1===Ui(i)?(e.epoch=null,e):(Ei(e,i),e=Fi(e))}},{reg:/^[0-9]{4}( ?a\.?d\.?)?$/i,parse:function(e,t){var n=e._today,r=Ki(t[0],n),o=new Date;n.month&&!n.date&&(n.date=1);var i={year:r,month:n.month||o.getMonth(),date:n.date||o.getDate()};return!1===Ui(i)?(e.epoch=null,e):(Ei(e,i),e=Fi(e))}}],Zi=function(e){return e.epoch=Date.now(),Object.keys(e._today||{}
1).forEach((function(t){"function"==typeof e[t]&&(e=e[t](e._today[t]))})),e},Xi={now:function(e){return Zi(e)},today:function(e){return Zi(e)},tonight:function(e){return e=(e=Zi(e)).hour(18)},tomorrow:function(e){return e=(e=(e=Zi(e)).add(1,"day")).startOf("day")},yesterday:function(e){return e=(e=(e=Zi(e)).subtract(1,"day")).startOf("day")},christmas:function(e){var t=Zi(e).year();return e=e.set([t,11,25,18,0,0])},"new years":function(e){var t=Zi(e).year();return e=e.set([t,11,31,18,0,0])}};Xi["new years eve"]=Xi["new years"];var Qi=Xi,Ji={year:(new Date).getFullYear(),month:0,date:1},ea=function(e,t,n){if(0===Object.keys(t).length)return e;t=Object.assign({},Ji,n,t);for(var r=Object.keys(t),o=0;o<r.length;o++){var i=r[o];if(void 0!==e[i]&&"function"==typeof e[i]&&(null!==t[i]&&void 0!==t[i]&&""!==t[i])){var a=t[i]||n[i]||Ji[i]||0;e=e[i](a)}}return e},ta=function(e,t,n){var r=e._today||Ji;if("number"==typeof t)return t>0&&t<25e8&&!1===e.silent&&(console.warn("  - Warning: You are setting the date to January 1970."),console.warn("       -   did input seconds instead of milliseconds?")),e.epoch=t,e;if(e.epoch=Date.now(),e._today&&qi.isObject(e._today)&&Object.keys(e._today).length>0){var o=ea(e,r,Ji);o.isValid()&&(e.epoch=o.epoch)}if(null==t||""===t)return e;if(!0===qi.isDate(t))return e.epoch=t.getTime(),e;if(!0===qi.isArray(t))return e=function(e,t,n){if(0===t.length)return e;for(var r=["year","month","date","hour","minute","second","millisecond"],o=0;o<r.length;o++){var i=t[o]||n[r[o]]||Ji[r[o]]||0;e=e[r[o]](i)}return e}(e,t,r),e;if(!0===qi.isObject(t))return t.epoch?(e.epoch=t.epoch,e.tz=t.tz,e):e=ea(e,t,r);if("string"!=typeof t)return e;if(t=(t=(t=t.replace(/\b(mon|tues|wed|wednes|thu|thurs|fri|sat|satur|sun)(day)?\b/i,"")).replace(/,/g,"")).replace(/ +/g," ").trim(),!0===Qi.hasOwnProperty(t))return e=Qi[t](e);for(var i=0;i<Vi.length;i++){var a=t.match(Vi[i].reg);if(a){var s=Vi[i].parse(e,a,n);if(null!==s&&s.isValid())return s}}return!1===e.silent&&console.warn("Warning: couldn't parse date-string: '"+t+"'"),e.epoch=null,e},na=["sun","mon","tue","wed","thu","fri","sat"],ra=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],oa={short:function(){return na},long:function(){return ra},set:function(e){na=e.short||na,ra=e.long||ra},aliases:{tues:2,thur:4,thurs:4}},ia=!0,aa=function(){return ia},sa=function(e){ia=e},la=function(e){var t=e.timezone().current.offset;return t?qi.formatTimezone(t,":"):"Z"},ca=function(e){return aa()?qi.titleCase(e):e},ua={day:function(e){return ca(e.dayName())},"day-short":function(e){return ca(oa.short()[e.day()])},"day-number":function(e){return e.day()},"day-ordinal":function(e){return qi.ordinal(e.day())},"day-pad":function(e){return qi.zeroPad(e.day())},date:function(e){return e.date()},"date-ordinal":function(e){return qi.ordinal(e.date())},"date-pad":function(e){return qi.zeroPad(e.date())},month:function(e){return ca(e.monthName())},"month-short":function(e){return ca(Hi()[e.month()])},"month-number":function(e){return e.month()},"month-ordinal":function(e){return qi.ordinal(e.month())},"month-pad":function(e){return qi.zeroPad(e.month())},"iso-month":function(e){return qi.zeroPad(e.month()+1)},year:function(e){var t=e.year();return t>0?t:(t=Math.abs(t),t+" BC")},"year-short":function(e){var t=e.year();return t>0?"'".concat(String(e.year()).substr(2,4)):(t=Math.abs(t))+" BC"},"iso-year":function(e){var t=e.year(),n=t<0,r=qi.zeroPad(Math.abs(t),4);return n&&(r="-"+(r=qi.zeroPad(r,6))),r},time:function(e){return e.time()},"time-24":function(e){return"".concat(e.hour24(),":").concat(qi.zeroPad(e.minute()))},hour:function(e){return e.hour12()},"hour-pad":function(e){return qi.zeroPad(e.hour12())},"hour-24":function(e){return e.hour24()},"hour-24-pad":function(e){return qi.zeroPad(e.hour24())},minute:function(e){return e.minute()},"minute-pad":function(e){return qi.zeroPad(e.minute())},second:function(e){return e.second()},"second-pad":function(e){return qi.zeroPad(e.second())},ampm:function(e){return e.ampm()},quarter:function(e){return"Q"+e.quarter()},season:function(e){return e.season()},era:function(e){return e.era()},json:function(e){return e.json()},timezone:function(e){return e.timezone().name},offset:function(e){return la(e)},numeric:function(e){return"".concat(e.year(),"/").concat(qi.zeroPad(e.month()+1),"/").concat(qi.zeroPad(e.date()))},"numeric-us":function(e){return"".concat(qi.zeroPad(e.month()+1),"/").concat(qi.zeroPad(e.date()),"/").concat(e.year())},"numeric-uk":function(e){return"".concat(qi.zeroPad(e.date()),"/").concat(qi.zeroPad(e.month()+1),"/").concat(e.year())},"mm/dd":function(e){return"".concat(qi.zeroPad(e.month()+1),"/").concat(qi.zeroPad(e.date()))},iso:function(e){var t=e.format("iso-year"),n=qi.zeroPad(e.month()+1),r=qi.zeroPad(e.date()),o=qi.zeroPad(e.h24()),i=qi.zeroPad(e.minute()),a=qi.zeroPad(e.second()),s=qi.zeroPad(e.millisecond(),3),l=la(e);return"".concat(t,"-").concat(n,"-").concat(r,"T").concat(o,":").concat(i,":").concat(a,".").concat(s).concat(l)},"iso-short":function(e){var t=qi.zeroPad(e.month()+1),n=qi.zeroPad(e.date());return"".concat(e.year(),"-").concat(t,"-").concat(n)},"iso-utc":function(e){return new Date(e.epoch).toISOString()},nice:function(e){return"".concat(Hi()[e.month()]," ").concat(qi.ordinal(e.date()),", ").concat(e.time())},"nice-24":function(e){return"".concat(Hi()[e.month()]," ").concat(qi.ordinal(e.date()),", ").concat(e.hour24(),":").concat(qi.zeroPad(e.minute()))},"nice-year":function(e){return"".concat(Hi()[e.month()]," ").concat(qi.ordinal(e.date()),", ").concat(e.year())},"nice-day":function(e){return"".concat(oa.short()[e.day()]," ").concat(ca(Hi()[e.month()])," ").concat(qi.ordinal(e.date()))},"nice-full":function(e){return"".concat(e.dayName()," ").concat(ca(e.monthName())," ").concat(qi.ordinal(e.date()),", ").concat(e.time())},"nice-full-24":function(e){return"".concat(e.dayName()," ").concat(ca(e.monthName())," ").concat(qi.ordinal(e.date()),", ").concat(e.hour24(),":").concat(qi.zeroPad(e.minute()))}},da={"day-name":"day","month-name":"month","iso 8601":"iso","time-h24":"time-24","time-12":"time","time-h12":"time",tz:"timezone","day-num":"day-number","month-num":"month-number","month-iso":"iso-month","year-iso":"iso-year","nice-short":"nice","nice-short-24":"nice-24",mdy:"numeric-us",dmy:"numeric-uk",ymd:"numeric","yyyy/mm/dd":"numeric","mm/dd/yyyy":"numeric-us","dd/mm/yyyy":"numeric-us","little-endian":"numeric-uk","big-endian":"numeric","day-nice":"nice-day"};
1Object.keys(da).forEach((function(e){return ua[e]=ua[da[e]]}));var fa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!0!==e.isValid())return"";if(ua.hasOwnProperty(t)){var n=ua[t](e)||"";return"json"!==t&&(n=String(n),"ampm"!==t&&(n=ca(n))),n}if(-1!==t.indexOf("{")){var r=/\{(.+?)\}/g;return t=t.replace(r,(function(t,n){if(n=n.toLowerCase().trim(),ua.hasOwnProperty(n)){var r=String(ua[n](e));return"ampm"!==n?ca(r):r}return""}))}return e.format("iso-short")},ha=qi.zeroPad,pa=qi.formatTimezone,ma={G:function(e){return e.era()},GG:function(e){return e.era()},GGG:function(e){return e.era()},GGGG:function(e){return"AD"===e.era()?"Anno Domini":"Before Christ"},y:function(e){return e.year()},yy:function(e){return parseInt(String(e.year()).substr(2,4),10)},yyy:function(e){return e.year()},yyyy:function(e){return e.year()},yyyyy:function(e){return"0"+e.year()},Q:function(e){return e.quarter()},QQ:function(e){return e.quarter()},QQQ:function(e){return e.quarter()},QQQQ:function(e){return e.quarter()},M:function(e){return e.month()+1},MM:function(e){return ha(e.month()+1)},MMM:function(e){return e.format("month-short")},MMMM:function(e){return e.format("month")},w:function(e){return e.week()},ww:function(e){return ha(e.week())},d:function(e){return e.date()},dd:function(e){return ha(e.date())},D:function(e){return e.dayOfYear()},DD:function(e){return ha(e.dayOfYear())},DDD:function(e){return ha(e.dayOfYear(),3)},E:function(e){return e.format("day-short")},EE:function(e){return e.format("day-short")},EEE:function(e){return e.format("day-short")},EEEE:function(e){return e.format("day")},EEEEE:function(e){return e.format("day")[0]},e:function(e){return e.day()},ee:function(e){return e.day()},eee:function(e){return e.format("day-short")},eeee:function(e){return e.format("day")},eeeee:function(e){return e.format("day")[0]},a:function(e){return e.ampm().toUpperCase()},aa:function(e){return e.ampm().toUpperCase()},aaa:function(e){return e.ampm().toUpperCase()},aaaa:function(e){return e.ampm().toUpperCase()},h:function(e){return e.h12()},hh:function(e){return ha(e.h12())},H:function(e){return e.hour()},HH:function(e){return ha(e.hour())},m:function(e){return e.minute()},mm:function(e){return ha(e.minute())},s:function(e){return e.second()},ss:function(e){return ha(e.second())},A:function(e){return e.epoch-e.startOf("day").epoch},z:function(e){return e.timezone().name},zz:function(e){return e.timezone().name},zzz:function(e){return e.timezone().name},zzzz:function(e){return e.timezone().name},Z:function(e){return pa(e.timezone().current.offset)},ZZ:function(e){return pa(e.timezone().current.offset)},ZZZ:function(e){return pa(e.timezone().current.offset)},ZZZZ:function(e){return pa(e.timezone().current.offset,":")}},ga=function(e,t,n){for(var r=e,o=t,i=0;i<n;i+=1)ma[r]=ma[o],r+=e,o+=t};ga("q","Q",4),ga("L","M",4),ga("Y","y",4),ga("c","e",4),ga("k","H",2),ga("K","h",2),ga("S","s",2),ga("v","z",4),ga("V","Z",4);var va=function(e,t){var n=t.split("");return n=function(e){for(var t=0;t<e.length;t+=1)if("'"===e[t])for(var n=t+1;n<e.length;n+=1){if(e[n]&&(e[t]+=e[n]),"'"===e[n]){e[n]=null;break}e[n]=null}return e.filter((function(e){return e}))}(n),n=function(e){for(var t=0;t<e.length;t+=1)for(var n=e[t],r=t+1;r<e.length&&e[r]===n;r+=1)e[t]+=e[r],e[r]=null;return(e=e.filter((function(e){return e}))).map((function(e){return"''"===e&&(e="'"),e}))}(n),n.reduce((function(t,n){return void 0!==ma[n]?t+=ma[n](e)||"":(/^'.{1,}'$/.test(n)&&(n=n.replace(/'/g,"")),t+=n),t}),"")},ya=["year","season","quarter","month","week","day","quarterHour","hour","minute"],ba=function(e,t){var n=e.clone().startOf(t),r=e.clone().endOf(t).epoch-n.epoch,o=(e.epoch-n.epoch)/r;return parseFloat(o.toFixed(2))},wa=function(e,t){if(t)return t=qi.normalize(t),ba(e,t);var n={};return ya.forEach((function(t){n[t]=ba(e,t)})),n},ka=function(e,t){var n=e.progress();return"quarterhour"===(t=qi.normalize(t))&&(t="quarterHour"),void 0!==n[t]?(n[t]>.5&&(e=e.add(1,t)),e=e.startOf(t)):!1===e.silent&&console.warn("no known unit '"+t+"'"),e},xa=function(e,t,n){var r=0;for(e=e.clone();e.isBefore(t);)e=e.add(1,n),r+=1;return e.isAfter(t,n)&&(r-=1),r}
1,$a=function(e,t,n){return e.isBefore(t)?xa(e,t,n):-1*xa(t,e,n)},Ca=function(e,t){var n=t.epoch-e.epoch,r={milliseconds:n,seconds:parseInt(n/1e3,10)};r.minutes=parseInt(r.seconds/60,10),r.hours=parseInt(r.minutes/60,10);var o=e.clone();return r.years=function(e,t){var n=t.year()-e.year();return(e=e.year(t.year())).isAfter(t)&&(n-=1),n}(o,t),o=e.add(r.years,"year"),r.months=12*r.years,o=e.add(r.months,"month"),r.months+=$a(o,t,"month"),r.weeks=52*r.years,o=e.add(r.weeks,"week"),r.weeks+=$a(o,t,"week"),r.days=7*r.weeks,o=e.add(r.days,"day"),r.days+=$a(o,t,"day"),r},Sa=function(e,t,n){t=qi.beADate(t,e);var r=!1;if(e.isAfter(t)){var o=e;e=t,t=o,r=!0}var i=Ca(e,t);return r&&(i=function(e){return Object.keys(e).forEach((function(t){e[t]*=-1})),e}(i)),n?(n=qi.normalize(n),!0!==/s$/.test(n)&&(n+="s"),"dates"===n&&(n="days"),i[n]):i},Ma={months:{almost:10,over:4},days:{almost:25,over:10},hours:{almost:20,over:8},minutes:{almost:50,over:20},seconds:{almost:50,over:20}};function La(e,t){return 1===e&&(t=t.slice(0,-1)),e+" "+t}var Ta=function(e,t){var n,r,o,i=function(e,t){var n=e.isBefore(t),r=n?t:e,o=n?e:t;o=o.clone();var i={years:0,months:0,days:0,hours:0,minutes:0,seconds:0};
1return Object.keys(i).forEach((function(e){if(!o.isSame(r,e)){var t=o.diff(r,e);o=o.add(t,e),i[e]=t}})),n&&Object.keys(i).forEach((function(e){0!==i[e]&&(i[e]*=-1)})),i}(e,t=qi.beADate(t,e));if(!0===Object.keys(i).every((function(e){return!i[e]})))return{diff:i,rounded:"now",qualified:"now",precise:"now"};var a=[];return Object.keys(i).forEach((function(e,t,o){var s=Math.abs(i[e]);if(0!==s){var l=La(s,e);if(a.push(l),!n){if(n=r=l,t>4)return;var c=o[t+1],u=Math.abs(i[c]);u>Ma[c].almost?(n=La(s+1,e),r="almost "+n):u>Ma[c].over&&(r="over "+l)}}})),o=a.splice(0,2).join(", "),!0===e.isAfter(t)?(n+=" ago",r+=" ago",o+=" ago"):(n="in "+n,r="in "+r,o="in "+o),{diff:i,rounded:n,qualified:r,precise:o}},Oa={north:[["spring",2,1],["summer",5,1],["fall",8,1],["autumn",8,1],["winter",11,1]],south:[["fall",2,1],["autumn",2,1],["winter",5,1],["spring",8,1],["summer",11,1]]},za=[null,[0,1],[3,1],[6,1],[9,1]],Aa={minute:function(e){return Ei(e,{second:0,millisecond:0}),e},quarterhour:function(e){var t=e.minutes();return e=t>=45?e.minutes(45):t>=30?e.minutes(30):t>=15?e.minutes(15):e.minutes(0),Ei(e,{second:0,millisecond:0}),e},hour:function(e){return Ei(e,{minute:0,second:0,millisecond:0}),e},day:function(e){return Ei(e,{hour:0,minute:0,second:0,millisecond:0}),e},week:function(e){var t=e.clone();return(e=e.day(e._weekStart)).isAfter(t)&&(e=e.subtract(1,"week")),Ei(e,{hour:0,minute:0,second:0,millisecond:0}),e},month:function(e){return Ei(e,{date:1,hour:0,minute:0,second:0,millisecond:0}),e},quarter:function(e){var t=e.quarter();return za[t]&&Ei(e,{month:za[t][0],date:za[t][1],hour:0,minute:0,second:0,millisecond:0}),e},season:function(e){var t=e.season(),n="north";"South"===e.hemisphere()&&(n="south");for(var r=0;r<Oa[n].length;r++)if(Oa[n][r][0]===t){var o=e.year();return"winter"===t&&e.month()<3&&(o-=1),Ei(e,{year:o,month:Oa[n][r][1],date:Oa[n][r][2],hour:0,minute:0,second:0,millisecond:0}),e}return e},year:function(e){return Ei(e,{month:0,date:1,hour:0,minute:0,second:0,millisecond:0}),e},decade:function(e){var t=(e=e.startOf("year")).year(),n=10*parseInt(t/10,10);return e=e.year(n)},century:function(e){var t=(e=e.startOf("year")).year(),n=100*parseInt(t/100,10);return e=e.year(n)}};Aa.date=Aa.day;var Da=function(e,t){var n=e.clone();return t=qi.normalize(t),Aa[t]?Aa[t](n):"summer"===t||"winter"===t?(n=n.season(t),Aa.season(n)):n},Na=function(e,t){var n=e.clone();return t=qi.normalize(t),Aa[t]?n=(n=(n=Aa[t](n)).add(1,t)).subtract(1,"millisecond"):n},Ea=function(e){return!!oa.short().find((function(t){return t===e}))||!!oa.long().find((function(t){return t===e}))},ja=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;if(!t||!n)return[];if(t=qi.normalize(t),n=e.clone().set(n),e.isAfter(n)){var r=e;e=n,n=r}var o=e.clone();Ea(t)?(o=o.next(t),t="week"):o=o.next(t);for(var i=[];o.isBefore(n);)i.push(o),o=o.add(1,t);return i},_a=function(e){var t=e.timezones,n=e.tz;if(!1===t.hasOwnProperty(n)&&(n=Oi(e.tz,t)),null===n)return!1===e.silent&&console.warn("Warn: could not find given or local timezone - '"+e.tz+"'"),{current:{epochShift:0}};var r,o,i=t[n],a={name:(r=n,r=(r=(r=r[0].toUpperCase()+r.substr(1)).replace(/\/gmt/,"/GMT")).replace(/[\/_]([a-z])/gi,(function(e){return e.toUpperCase()}))),hasDst:Boolean(i.dst),default_offset:i.offset,hemisphere:"s"===i.hem?"South":"North",current:{}};if(a.hasDst){var s=(o=i.dst)?o.split("->"):[];a.change={start:s[0],back:s[1]}}var l=i.offset,c=l;return!0===a.hasDst&&(c="North"===a.hemisphere?l-1:i.offset+1),!1===a.hasDst?(a.current.offset=l,a.current.isDST=!1):!0===di(e.epoch,a.change.start,a.change.back,l,c)?(a.current.offset=l,a.current.isDST="North"===a.hemisphere):(a.current.offset=c,a.current.isDST="South"===a.hemisphere),a},Ha=["century","decade","year","month","date","day","hour","minute","second","millisecond"],Pa={set:function(e,t){var n=this.clone();return n=ta(n,e,null),t&&(this.tz=Oi(t)),n},timezone:function(){return _a(this)},isDST:function(){return _a(this).current.isDST},hasDST:function(){return _a(this).hasDst},offset:function(){return 60*_a(this).current.offset},hemisphere:function(){return _a(this).hemisphere},format:function(e){return fa(this,e)},unixFmt:function(e){return va(this,e)},startOf:function(e){return Da(this,e)},endOf:function(e){return Na(this,e)},leapYear:function(){var e=this.year();return qi.isLeapYear(e)},progress:function(e){return wa(this,e)},nearest:function(e){return ka(this,e)},diff:function(e,t){return Sa(this,e,t)},since:function(e){return e||(e=this.clone().set()),Ta(this,e)},next:function(e){return this.add(1,e).startOf(e)},last:function(e){return this.subtract(1,e).startOf(e)},isValid:function(){return!(!this.epoch&&0!==this.epoch)&&!isNaN(this.d.getTime())},goto:function(e){var t=this.clone();return t.tz=Oi(e,t.timezones),t},every:function(e,t){return ja(this,e,t)},isAwake:function(){var e=this.hour();return!(e<8||e>22)},isAsleep:function(){return!this.isAwake()},log:function(){return console.log(""),console.log(fa(this,"nice-short")),this},logYear:function(){return console.log(""),console.log(fa(this,"full-short")),this},json:function(){var e=this;return Ha.reduce((function(t,n){return t[n]=e[n](),t}),{})},debug:function(){var e=this.timezone(),t=this.format("MM")+" "+this.format("date-ordinal")+" "+this.year();return t+="\n     - "+this.format("time"),console.log("\n\n",t+"\n     - "+e.name+" ("+e.current.offset+")"),this},from:function(e){return(e=this.clone().set(e)).since(this)},fromNow:function(){return this.clone().set(Date.now()).since(this)},weekStart:function(e){if("number"==typeof e)return this._weekStart=e,this;if("string"==typeof e){e=e.toLowerCase().trim();var t=oa.short().indexOf(e);-1===t&&(t=oa.long().indexOf(e)),-1===t&&(t=1),this._weekStart=t}else console.warn("Spacetime Error: Cannot understand .weekStart() input:",e);return this}};Pa.inDST=Pa.isDST,Pa.round=Pa.nearest,Pa.each=Pa.every;var Ia=Pa,Ba=qi.isLeapYear,Wa=function(e){return"string"==typeof e&&(e=parseInt(e,10)),e},Fa=["year","month","date","hour","minute","second","millisecond"],Ra=function(e,t,n){for(var r=Fa.indexOf(n),o=Fa.slice(r,Fa.length),i=0;i<o.length;i++){var a=t[o[i]]();e[o[i]](a)}return e},qa=function(e,t){t=Wa(t);var n=e.millisecond()-t;return e.epoch-n},Ga=function(e,t){t=Wa(t);var n=(e.second()-t)*Ai.second;return e.epoch-n},Ua=function(e,t){t=Wa(t);var n=e.clone(),r=(e.minute()-t)*Ai.minute;return e.epoch-=r,Ra(e,n,"second"),e.epoch},Ya=function(e,t){(t=Wa(t))>=24?t=24:t<0&&(t=0);var n=e.clone(),r=e.hour()-t,o=r*Ai.hour;return e.epoch-=o,e.date()!==n.date()&&(e=n.clone(),r>1&&(r-=1),r<1&&(r+=1),o=r*Ai.hour,e.epoch-=o),Ei(e,{hour:t}),Ra(e,n,"minute"),e.epoch},Ka=function(e,t){var n=t.match(/([0-9]{1,2})[:h]([0-9]{1,2})(:[0-9]{1,2})? ?(am|pm)?/);
1if(!n){if(!(n=t.match(/([0-9]{1,2}) ?(am|pm)/)))return e.epoch;n.splice(2,0,"0"),n.splice(3,0,"")}var r=!1,o=parseInt(n[1],10),i=parseInt(n[2],10);o>12&&(r=!0),!1===r&&("am"===n[4]&&12===o&&(o=0),"pm"===n[4]&&o<12&&(o+=12)),n[3]=n[3]||"",n[3]=n[3].replace(/:/,"");var a=parseInt(n[3],10)||0;return(e=(e=(e=(e=e.hour(o)).minute(i)).second(a)).millisecond(0)).epoch},Va=function(e,t){if((t=Wa(t))>28){var n=e.month(),r=Ri[n];1===n&&29===t&&Ba(e.year())&&(r=29),t>r&&(t=r)}return t<=0&&(t=1),Ei(e,{date:t}),e.epoch},Za=function(e,t){"string"==typeof t&&(t=Ii()[t.toLowerCase()]),(t=Wa(t))>=12&&(t=11),t<=0&&(t=0);var n=e.date();return n>Ri[t]&&(n=Ri[t]),Ei(e,{month:t,date:n}),e.epoch},Xa=function(e,t){return"string"==typeof t&&/^'[0-9]{2}$/.test(t)&&(t=t.replace(/'/,"").trim(),t=(t=Number(t))>30?1900+t:2e3+t),t=Wa(t),Ei(e,{year:t}),e.epoch},Qa=function(e,t){t=Wa(t);var n=e.clone();return(t-=1)<=0?t=0:t>=365&&(t=364),e=(e=e.startOf("year")).add(t,"day"),Ra(e,n,"hour"),e.epoch},Ja={millisecond:function(e){if(void 0!==e){var t=this.clone();return t.epoch=qa(t,e),t}return this.d.getMilliseconds()},second:function(e){if(void 0!==e){var t=this.clone();return t.epoch=Ga(t,e),t}return this.d.getSeconds()},minute:function(e){if(void 0!==e){var t=this.clone();return t.epoch=Ua(t,e),t}return this.d.getMinutes()},hour:function(e){var t=this.d;if(void 0!==e){var n=this.clone();return n.epoch=Ya(n,e),n}return t.getHours()},hourFloat:function(e){if(void 0!==e){var t=this.clone(),n=e%1;n*=60;var r=parseInt(e,10);return t.epoch=Ya(t,r),t.epoch=Ua(t,n),t}var o=this.d,i=o.getHours(),a=o.getMinutes();return i+(a/=60)},hour12:function(e){var t=this.d;if(void 0!==e){var n=this.clone(),r=(e=""+e).match(/^([0-9]+)(am|pm)$/);if(r){var o=parseInt(r[1],10);"pm"===r[2]&&(o+=12),n.epoch=Ya(n,o)}return n}var i=t.getHours();return i>12&&(i-=12),0===i&&(i=12),i},time:function(e){if(void 0!==e){var t=this.clone();return e=e.toLowerCase().trim(),t.epoch=Ka(t,e),t}return"".concat(this.h12(),":").concat(qi.zeroPad(this.minute())).concat(this.ampm())},ampm:function(e){var t="am",n=this.hour();if(n>=12&&(t="pm"),"string"!=typeof e)return t;var r=this.clone();return e=e.toLowerCase().trim(),n>=12&&"am"===e?(n-=12,r.hour(n)):n<12&&"pm"===e?(n+=12,r.hour(n)):r},dayTime:function(e){if(void 0!==e){var t={morning:"7:00am",breakfast:"7:00am",noon:"12:00am",lunch:"12:00pm",afternoon:"2:00pm",evening:"6:00pm",dinner:"6:00pm",night:"11:00pm",midnight:"23:59pm"},n=this.clone();return e=(e=e||"").toLowerCase(),!0===t.hasOwnProperty(e)&&(n=n.time(t[e])),n}var r=this.hour();return r<6?"night":r<12?"morning":r<17?"afternoon":r<22?"evening":"night"},iso:function(e){return void 0!==e?this.set(e):this.format("iso")}},es=Ja,ts={date:function(e){if(void 0!==e){var t=this.clone();return t.epoch=Va(t,e),t}return this.d.getDate()},day:function(e){if(void 0===e)return this.d.getDay();var t=this.clone(),n=e;"string"==typeof e&&(e=e.toLowerCase(),oa.aliases.hasOwnProperty(e)?n=oa.aliases[e]:-1===(n=oa.short().indexOf(e))&&(n=oa.long().indexOf(e)));var r=this.d.getDay(),o=r-n,i=this.subtract(o,"days");return Ei(i,{hour:t.hour(),minute:t.minute(),second:t.second()}),i},dayName:function(e){if(void 0===e)return oa.long()[this.day()];var t=this.clone();return t=t.day(e)},month:function(e){if(void 0!==e){var t=this.clone();return t.epoch=Za(t,e),t}return this.d.getMonth()}},ns=ts,rs=function(e){return e=(e=(e=e.minute(0)).second(0)).millisecond(1)},os={dayOfYear:function(e){if(void 0!==e){var t=this.clone();return t.epoch=Qa(t,e),t}for(var n,r=0,o=this.d.getMonth(),i=1;i<=o;i++)(n=new Date).setDate(1),n.setFullYear(this.d.getFullYear()),n.setHours(1),n.setMinutes(1),n.setMonth(i),n.setHours(-2),r+=n.getDate();return r+this.d.getDate()},week:function(e){if(void 0!==e){var t=this.clone();return t=(t=(t=t.month(0)).date(1)).day("monday"),"december"===(t=rs(t)).monthName()&&t.date()>=28&&(t=t.add(1,"week")),e-=1,t=t.add(e,"weeks")}var n=this.clone();n=(n=n.month(0)).date(1),"december"===(n=(n=rs(n)).day("monday")).monthName()&&n.date()>=28&&(n=n.add(1,"week"));var r=1;1===n.date()&&(r=0),n=n.minus(1,"second");var o=this.epoch;if(n.epoch>o)return 1;var i=0,a=4*this.month();for(n.epoch+=Ai.week*a,i+=a;i<52;i++){if(n.epoch>o)return i+r;n=n.add(1,"week")}return 52},monthName:function(e){if(void 0===e)return Pi()[this.month()];var t=this.clone();return t=t.month(e)},quarter:function(e){if(void 0!==e&&("string"==typeof e&&(e=e.replace(/^q/i,""),e=parseInt(e,10)),za[e])){var t=this.clone(),n=za[e][0];return t=(t=(t=t.month(n)).date(1)).startOf("day")}for(var r=this.d.getMonth(),o=1;o<za.length;o++)if(r<za[o][0])return o-1;return 4},season:function(e){var t="north";if("South"===this.hemisphere()&&(t="south"),void 0!==e){for(var n=this.clone(),r=0;r<Oa[t].length;r++)e===Oa[t][r][0]&&(n=(n=(n=n.month(Oa[t][r][1])).date(1)).startOf("day"));return n}for(var o=this.d.getMonth(),i=0;i<Oa[t].length-1;i++)if(o>
1=Oa[t][i][1]&&o<Oa[t][i+1][1])return Oa[t][i][0];return"winter"},year:function(e){if(void 0!==e){var t=this.clone();return t.epoch=Xa(t,e),t}return this.d.getFullYear()},era:function(e){if(void 0!==e){var t=this.clone();e=e.toLowerCase();var n=t.d.getFullYear();return"bc"===e&&n>0&&(t.epoch=Xa(t,-1*n)),"ad"===e&&n<0&&(t.epoch=Xa(t,-1*n)),t}return this.d.getFullYear()<0?"BC":"AD"},decade:function(e){if(void 0!==e){if(!(e=(e=(e=String(e)).replace(/([0-9])'?s$/,"$1")).replace(/([0-9])(th|rd|st|nd)/,"$1")))return console.warn("Spacetime: Invalid decade input"),this;2===e.length&&/[0-9][0-9]/.test(e)&&(e="19"+e);var t=Number(e);return isNaN(t)?this:(t=10*Math.floor(t/10),this.year(t))}return this.startOf("decade").year()},century:function(e){if(void 0!==e){"string"==typeof e&&(e=(e=e.replace(/([0-9])(th|rd|st|nd)/,"$1")).replace(/([0-9]+) ?(b\.?c\.?|a\.?d\.?)/i,(function(e,t,n){return n.match(/b\.?c\.?/i)&&(t="-"+t),t})),e=e.replace(/c$/,""));var t=Number(e);return isNaN(e)?(console.warn("Spacetime: Invalid century 
1input"),this):(0===t&&(t=1),t=t>=0?100*(t-1):100*(t+1),this.year(t))}var n=this.startOf("century").year();return(n=Math.floor(n/100))<0?n-1:n+1},millenium:function(e){if(void 0!==e){if("string"==typeof e&&(e=e.replace(/([0-9])(th|rd|st|nd)/,"$1"),e=Number(e),isNaN(e)))return console.warn("Spacetime: Invalid millenium input"),this;e>0&&(e-=1);var t=1e3*e;return 0===t&&(t=1),this.year(t)}var n=Math.floor(this.year()/1e3);return n>=0&&(n+=1),n}},is=os,as=Object.assign({},es,ns,is);as.milliseconds=as.millisecond,as.seconds=as.second,as.minutes=as.minute,as.hours=as.hour,as.hour24=as.hour,as.h12=as.hour12,as.h24=as.hour24,as.days=as.day;var ss=function(e){Object.keys(as).forEach((function(t){e.prototype[t]=as[t]}))},ls=qi.isLeapYear,cs=function(e,t){return 1===e&&ls(t)?29:Ri[e]},us=function(e,t){if(e.month>0){var n=parseInt(e.month/12,10);e.year=t.year()+n,e.month=e.month%12}else if(e.month<0){var r=Math.floor(Math.abs(e.month)/13,10);r=Math.abs(r)+1,e.year=t.year()-r,e.month=e.month%12,e.month=e.month+12,12===e.month&&(e.month=0)}return e},ds=function(e,t,n){for(var r=t.year(),o=t.month(),i=cs(o,r);n>i;)n-=i,(o+=1)>=12&&(o-=12,r+=1),i=cs(o,r);return e.month=o,e.date=n,e},fs=function(e,t,n){e.year=t.year(),e.month=t.month();var r=t.date();for(e.date=r-Math.abs(n);e.date<1;){e.month-=1,e.month<0&&(e.month=11,e.year-=1);var o=cs(e.month,e.year);e.date+=o}return e},hs=["millisecond","second","minute","hour","date","month"],ps={second:hs.slice(0,1),minute:hs.slice(0,2),quarterhour:hs.slice(0,2),hour:hs.slice(0,3),date:hs.slice(0,4),month:hs.slice(0,4),quarter:hs.slice(0,4),season:hs.slice(0,4),year:hs,decade:hs,century:hs};ps.week=ps.hour,ps.season=ps.date,ps.quarter=ps.date;var ms={year:!0,quarter:!0,season:!0,month:!0,week:!0,day:!0},gs={month:!0,quarter:!0,season:!0,year:!0},vs=function(e){e.prototype.add=function(e,t){var n=this.clone();if(!t||0===e)return n;var r=this.clone();if("millisecond"===(t=qi.normalize(t)))return n.epoch+=e,n;"fortnight"===t&&(e*=2,t="week"),Ai[t]?n.epoch+=Ai[t]*e:"week"===t?n.epoch+=Ai.day*(7*e):"quarter"===t||"season"===t?n.epoch+=Ai.month*(3*e):"quarterhour"===t&&(n.epoch+=15*Ai.minute*e);var o={};if(ps[t]&&ps[t].forEach((function(e){o[e]=r[e]()})),ms[t]){var i=r.timezone().current.offset-n.timezone().current.offset;n.epoch+=3600*i*1e3}if("month"===t&&(o.month=r.month()+e,o=us(o,r)),"week"===t){var a=r.date()+7*e;a<=28&&a>1&&(o.date=a)}else if("date"===t){if(e<0)o=fs(o,r,e);else{var s=r.date()+e;o=ds(o,r,s)}0!==e&&r.isSame(n,"day")&&(o.date=r.date()+e)}else if("quarter"===t){if(o.month=r.month()+3*e,o.year=r.year(),o.month<0){var l=Math.floor(o.month/12),c=o.month+12*Math.abs(l);o.month=c,o.year+=l}else if(o.month>=12){var u=Math.floor(o.month/12);o.month=o.month%12,o.year+=u}o.date=r.date()}else if("year"===t){var d=r.year()+e,f=n.year();(f<d||f>d)&&(n.epoch+=Ai.day)}else"decade"===t?o.year=n.year()+10:"century"===t&&(o.year=n.year()+100);if(gs[t]){var h=Ri[o.month];o.date=r.date(),o.date>h&&(o.date=h)}return Object.keys(o).length>1&&Ei(n,o),n},e.prototype.subtract=function(e,t){return this.clone().add(-1*e,t)},e.prototype.minus=e.prototype.subtract,e.prototype.plus=e.prototype.add},ys={millisecond:function(e){return e.epoch},second:function(e){return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second()].join("-")},minute:function(e){return[e.year(),e.month(),e.date(),e.hour(),e.minute()].join("-")},hour:function(e){return[e.year(),e.month(),e.date(),e.hour()].join("-")},day:function(e){return[e.year(),e.month(),e.date()].join("-")},week:function(e){return[e.year(),e.week()].join("-")},month:function(e){return[e.year(),e.month()].join("-")},quarter:function(e){return[e.year(),e.quarter()].join("-")},year:function(e){return e.year()}};ys.date=ys.day;var bs=function(e){e.prototype.isSame=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this;return n?("string"!=typeof t&&"number"!=typeof t||(t=new e(t,this.timezone.name)),n=n.replace(/s$/,""),!0===r&&o.tz!==t.tz&&((t=t.clone()).tz=o.tz),ys[n]?ys[n](o)===ys[n](t):null):null}},ws=function(e){var t={isAfter:function(e){e=qi.beADate(e,this);var t=qi.getEpoch(e);return null===t?null:this.epoch>t},isBefore:function(e){e=qi.beADate(e,this);var t=qi.getEpoch(e);return null===t?null:this.epoch<t},isEqual:function(e){e=qi.beADate(e,this);var t=qi.getEpoch(e);return null===t?null:this.epoch===t},isBetween:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e=qi.beADate(e,this),t=qi.beADate(t,this);var r=qi.getEpoch(e);if(null===r)return null;var o=qi.getEpoch(t);return null===o?null:n?this.isBetween(e,t)||this.isEqual(e)||this.isEqual(t):r<this.epoch&&this.epoch<o}};Object.keys(t).forEach((function(n){e.prototype[n]=t[n]}))},ks=function(e){var t={i18n:function(e){qi.isObject(e.days)&&oa.set(e.days),qi.isObject(e.months)&&Bi(e.months),qi.isBoolean(e.useTitleCase)&&sa(e.useTitleCase)}};Object.keys(t).forEach((function(n){e.prototype[n]=t[n]}))},xs=bi,$s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.epoch=null,this.tz=Oi(t,xs),this.silent=n.silent||!0,this.british=n.dmy||n.british,this._weekStart=1,void 0!==n.weekStart&&(this._weekStart=n.weekStart),this._today={},void 0!==n.today&&(this._today=n.today),Object.defineProperty(this,"d",{get:function(){var e=fi(this),t=(new Date(this.epoch).getTimezoneOffset()||0)+60*e;t=60*t*1e3;var n=this.epoch+t;return new Date(n)}}),Object.defineProperty(this,"timezones",{get:function(){return xs},set:function(e){return xs=e,e}});var r=ta(this,e,t);this.epoch=r.epoch};
1Object.keys(Ia).forEach((function(e){$s.prototype[e]=Ia[e]})),$s.prototype.clone=function(){return new $s(this.epoch,this.tz,{silent:this.silent,weekStart:this._weekStart,today:this._today})},$s.prototype.toLocalDate=function(){return new Date(this.epoch)},ss($s),vs($s),bs($s),ws($s),ks($s);var Cs=$s,Ss=function(e,t){var n=new Cs(null),r=new Cs(null);n=n.time(e),r=t?r.time(t):n.add(59,"minutes");var o=n.hour(),i=r.hour();return Object.keys(n.timezones).filter((function(e){if(-1===e.indexOf("/"))return!1;var t=new Cs(null,e),a=t.hour();return a>=o&&a<=i&&(!(a===o&&t.minute()<n.minute())&&!(a===i&&t.minute()>r.minute()))}))},Ms=function(e,t,n){return new Cs(e,t,n)},Ls=function(e){var t=e._today||{};return Object.keys(t).forEach((function(n){e=e[n](t[n])})),e};Ms.now=function(e,t){var n=new Cs((new Date).getTime(),e,t);return n=Ls(n)},Ms.today=function(e,t){var n=new Cs((new Date).getTime(),e,t);return(n=Ls(n)).startOf("day")},Ms.tomorrow=function(e,t){var n=new Cs((new Date).getTime(),e,t);return(n=Ls(n)).add(1,"day").startOf("day")},Ms.yesterday=function(e,t){var n=new Cs((new Date).getTime(),e,t);return(n=Ls(n)).subtract(1,"day").startOf("day")},Ms.extend=function(e){return Object.keys(e).forEach((function(t){Cs.prototype[t]=e[t]})),this},Ms.timezones=function(){return(new Cs).timezones},Ms.whereIts=Ss,Ms.version="6.12.5",Ms.plugin=Ms.extend;var Ts=Ms;function Os(e){let t,n,r,o,i,a,s;function l(t){e[4](t)}let c={highlight:e[3],autofocus:!1};return void 0!==e[0]&&(c.text=e[0]),n=new Ve({props:c}),N.push((()=>function(e,t,n,r){const o=e.$$.props[t];void 0!==o&&(e.$$.bound[o]=n,void 0===r&&n(e.$$.ctx[o]))}(n,"text",l,e[0]))),a=new si({props:{year:e[2].year(),date:e[2].format("iso-short"),days:e[1],showToday:!1}}),{c(){t=y("div"),V(n.$$.fragment),o=k(),i=y("div"),V(a.$$.fragment),C(i,"class","months"),C(t,"class","box svelte-1b3156")},m(e,r){m(e,t,r),Z(n,t,null),p(t,o),p(t,i),Z(a,i,null),s=!0},p(e,[t]){const o={};var i;!r&&1&t&&(r=!0,o.text=e[0],i=()=>r=!1,j.push(i)),n.$set(o);const s={};4&t&&(s.year=e[2].year()),4&t&&(s.date=e[2].format("iso-short")),2&t&&(s.days=e[1]),a.$set(s)},i(e){s||(Y(n.$$.fragment,e),Y(a.$$.fragment,e),s=!0)},o(e){K(n.$$.fragment,e),K(a.$$.fragment,e),s=!1},d(e){e&&g(t),X(n),X(a)}}}function zs(e,t,n){nlp.plugin(compromiseDates);let r="meet next weekend",o={},i=Ts(),a=null,s=Ts.now().format("iso-short");i.year();return[r,o,i,function(e=""){let t=nlp(e).dates().json({offset:!0}),r=t.map((e=>{let t=e.offset;return{start:t.start,end:t.start+t.length,tag:"tag"}}));if(t[0]&&t[0]){n(2,i=Ts(t[0].dates.start)),a=Ts(t[0].dates.end),n(1,o={}),n(1,o[s]="#D1D1D1",o),i.minus(1,"second").every("day",a).slice(0,400).forEach((e=>{let t=e.format("iso-short");n(1,o[t]="blue",o)}))}else n(1,o={});return r},function(e){r=e,n(0,r)}]}class As extends ee{constructor(e){super(),J(this,e,zs,Os,i,{})}}function Ds(t){let n,r,o;return r=new As({}),{c(){n=y("div"),V(r.$$.fragment),C(n,"id","dates"),C(n,"class","box svelte-p532sa")},m(e,t){m(e,n,t),Z(r,n,null),o=!0},p:e,i(e){o||(Y(r.$$.fragment,e),o=!0)},o(e){K(r.$$.fragment,e),o=!1},d(e){e&&g(n),X(r)}}}function Ns(e){let t,n;return t=new oe({props:{$$slots:{default:[Ds]},$$scope:{ctx:e}}}),{c(){V(t.$$.fragment)},m(e,r){Z(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Y(t.$$.fragment,e),n=!0)},o(e){K(t.$$.fragment,e),n=!1},d(e){X(t,e)}}}class Es extends ee{constructor(e){super(),J(this,e,null,Ns,i,{})}}function js(e){let t,n,r,o,i,a,s,l;return n=new We({props:{value:e[1],size:"18px",cb:e[2],width:"80%",height:"130px"}}),s=new je({props:{seed:"5091626afd684efdbb8"}}),{c(){t=y("div"),V(n.$$.fragment),r=k(),o=y("div"),i=k(),a=y("div"),V(s.$$.fragment),C(t,"class","top svelte-1237l88"),C(o,"class","res svelte-1237l88"),L(o,"position","relative"),C(a,"class","end svelte-1237l88")},m(c,u){m(c,t,u),Z(n,t,null),m(c,r,u),m(c,o,u),o.innerHTML=e[0],m(c,i,u),m(c,a,u),Z(s,a,null),l=!0},p(e,t){(!l||1&t)&&(o.innerHTML=e[0])},i(e){l||(Y(n.$$.fragment,e),Y(s.$$.fragment,e),l=!0)},o(e){K(n.$$.fragment,e),K(s.$$.fragment,e),l=!1},d(e){e&&g(t),X(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a),X(s)}}}function _s(e){let t,n;return t=new oe({props:{$$slots:{default:[js]},$$scope:{ctx:e}}}),{c(){V(t.$$.fragment)},m(e,r){Z(t,e,r),n=!0},p(e,[n]){const r={};9&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Y(t.$$.fragment,e),n=!0)},o(e){K(t.$$.fragment,e),n=!1},d(e){X(t,e)}}}function Hs(e,t,n){let r="Like the time I caught the ferry over to Shelbyville - I needed a new heel for my shoe, so I decided to go to Morganville which is what they called Shelbyville in those days. So, I tied an onion to my belt which was the style at the time. Now, to take the ferry cost a nickel. And in those days, nickels had pictures of bumblebees on em. Give me five bees for a quarter, you'd say.",o="";nlp.addWords({shelbyville:"City",morganville:"City"});const i=function(e){let t=nlp(e),r=t.nouns(),i=t.verbs(),a=t.places();n(0,o=t.html({".nouns":r,".verbs":i,".places":a}))};return i(r),[o,r,i]}class Ps extends ee{constructor(e){super(),J(this,e,Hs,_s,i,{})}}function Is(t){let n,o,i,a,s,l;return{c(){n=y("div"),o=y("input"),i=k(),a=y("div"),C(o,"class","input svelte-rhc2h"),C(o,"type","text"),C(a,"class","scroller svelte-rhc2h"),C(n,"class","col svelte-rhc2h")},m(e,r){m(e,n,r),p(n,o),M(o,t[0]),p(n,i),p(n,a),a.innerHTML=t[1],s||(l=[$(o,"input",t[3]),$(o,"input",t[2])],s=!0)},p(e,[t]){1&t&&o.value!==e[0]&&M(o,e[0]),2&t&&(a.innerHTML=e[1])},i:e,o:e,d(e){e&&g(n),s=!1,r(l)}}}function Bs(e,t,n){let r="the #Adjective #Noun+",o=nlp(""),i="";const a=function(e){let t=fetch(`./corpus/doc-${e}.json`).then((e=>e.json())).then((e=>{let t=e.join(" "),n=nlp(t);o.concat(n),s()}));return e+=1,t},s=function(){console.log("oninput");let e={};e[r]=e=>`<span class="show">${e.text()}</span>`,n(1,i=o.wrap(e))};return A((()=>{setTimeout((async function(){console.log("calling");for(let e=0;e<8;e+=1)await a(e)}),1e3)}
vendor: 4,382 bytes, line 1
1)),[r,i,s,function(){r=this.value,n(0,r)}]}class Ws extends ee{constructor(e){super(),J(this,e,Bs,Is,i,{})}}function Fs(t){let n,r,o;return r=new Ws({}),{c(){n=y("div"),V(r.$$.fragment),C(n,"id","matcher"),C(n,"class","box svelte-p532sa")},m(e,t){m(e,n,t),Z(r,n,null),o=!0},p:e,i(e){o||(Y(r.$$.fragment,e),o=!0)},o(e){K(r.$$.fragment,e),o=!1},d(e){e&&g(n),X(r)}}}function Rs(e){let t,n;return t=new oe({props:{$$slots:{default:[Fs]},$$scope:{ctx:e}}}),{c(){V(t.$$.fragment)},m(e,r){Z(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Y(t.$$.fragment,e),n=!0)},o(e){K(t.$$.fragment,e),n=!1},d(e){X(t,e)}}}class qs extends ee{constructor(e){super(),J(this,e,null,Rs,i,{})}}function Gs(t){let n;return{c(){n=y("div"),n.innerHTML='<svg viewBox="0,0,100,43" preserveAspectRatio="xMidYMid meet" style="overflow:visible; margin: 10px 20px 25px 25px;"><style scoped="true">.somehow-legible {\n        font-size: 2px;\n      }\n      @media (max-width: 600px) {\n        .somehow-legible {\n          font-size: 4px;\n        }\n      }\n      .grow:hover {\n        stroke-width: 6px;\n      }\n    </style><g><text x="0.8999999999999999%" y="46" fill="#d7d5d2" text-anchor="middle" class="somehow-legible">0</text><text x="20.7%" y="46" fill="#d7d5d2" text-anchor="middle" class="somehow-legible">100</text><text x="40.5%" y="46" fill="#d7d5d2" text-anchor="middle" class="somehow-legible">200</text><text x="60.3%" y="46" fill="#d7d5d2" text-anchor="middle" class="somehow-legible">300</text><text x="80.10000000000001%" y="46" fill="#d7d5d2" text-anchor="middle" class="somehow-legible">400</text><line x1="0" y1="43" x2="100" y2="43" stroke="#d7d5d2" stroke-width="1" vector-effect="non-scaling-stroke"></line><text x="50%" y="115%" fill="#d7d5d2" font-size="2px" style="text-anchor:middle;">ms latency</text></g><path fill="none" stroke="#D68881" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="4" stroke-linecap="round" d="M0,6L0.5,6" id="input-46606"></path><g transform="translate(2 2)"><text fill="#D68881" stroke="none" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="1" stroke-linecap="round" font-size="5" style="font-size:2px;"><tspan x="0" dy="1.2em">One sentence - 1ms</tspan> \n      </text></g><path fill="none" stroke="lightblue" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="4" stroke-linecap="round" d="M0,12L3,12" id="input-07427"></path><g transform="translate(3 8)"><text fill="lightblue" stroke="none" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="1" stroke-linecap="round" font-size="5" style="font-size:2px;"><tspan x="0" dy="1.2em">Typing latency - 12ms</tspan> \n      </text></g><path fill="none" stroke="lightblue" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="4" stroke-linecap="round" d="M0,18L4,18" id="input-42067"></path><g transform="translate(4 14)"><text fill="lightblue" stroke="none" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="1" stroke-linecap="round" font-size="5" style="font-size:2px;"><tspan x="0" dy="1.2em">60hz refresh rate - 16ms</tspan> \n      </text></g><path fill="none" stroke="lightblue" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="4" stroke-linecap="round" d="M0,30L38,30" id="input-65336"></path><g transform="translate(20 26)"><text fill="lightblue" stroke="none" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="1" stroke-linecap="round" font-size="5" style="font-size:2px;"><tspan x="0" dy="1.2em">One packet around world - 190ms</tspan> \n      </text></g><path fill="none" stroke="lightblue" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="4" stroke-linecap="round" d="M0,36L60,36" id="input-61678"></path><g transform="translate(42 32)"><text fill="lightblue" stroke="none" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="1" stroke-linecap="round" font-size="5" style="font-size:2px;"><tspan x="0" dy="1.2em">human blink - 300ms</tspan> \n      </text></g><path fill="none" stroke="#D68881" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="4" stroke-linecap="round" d="M0,24L12,24" id="input-2
11034"></path><g transform="translate(15 20)"><text fill="#D68881" stroke="none" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="1" stroke-linecap="round" font-size="5" style="font-size:2px;"><tspan x="0" dy="1.2em">Wikipedia article - 40ms</tspan> \n      </text></g><path fill="none" stroke="lightblue" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="4" stroke-linecap="round" d="M0,43L100,43" id="input-22718"></path><g transform="translate(72 39)"><text fill="lightblue" stroke="none" shape-rendering="optimizeQuality" vector-effect="non-scaling-stroke" stroke-width="1" stroke-linecap="round" font-size="5" style="font-size:2px;"><tspan x="0" dy="1.2em">one beat of a song - 500ms</tspan></text></g></svg>',C(n,"class","maxw10 w100p"),C(n,"id","speed-chart")},m(e,t){m(e,n,t)},p:e,i:e,o:e,d(e){e&&g(n)}}}class Us extends ee{constructor(e){super(),J(this,e,null,Gs,i,{})}}function Ys(t){let n,r,o,i,a,s,l,c,u;return{c(){n=y("b"),n.textContent="compromise/one",r=k(),o=y("div"),o.innerHTML='is <span class="plugin svelte-dj935o" style="margin-left:5px;">tokenization</span>.',i=k(),a=y("div"),s=k(),l=y("div"),l.textContent="flip a novel into JSON",c=k(),u=y("div"),u.innerHTML='split text into <span class="cherry">sentences</span> and <span class="rose">words</span> and\n      <span class="sky">punctuation</span>.\n      <div class="tab f09">in a couple milliseconds</div>',C(n,"id","one"),C(n,"class","sky f2"),L(a,"margin-top","2rem"),C(l,"class","desc svelte-dj935o"),C(u,"class","tab down")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),m(e,i,t),m(e,a,t),m(e,s,t),m(e,l,t),m(e,c,t),m(e,u,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a),e&&g(s),e&&g(l),e&&g(c),e&&g(u)}}}function Ks(t){let n;return{c(){n=y("div"),n.innerHTML='when someone tells you it&#39;s too difficult,\n      <div class="tab">give a polite shrug.</div> \n      <div class="tab i f09 down">haha, i dunno man!</div>',C(n,"class","tab down f09")},m(e,t){m(e,n,t)},p:e,d(e){e&&g(n)}}}function Vs(t){let n,r,o,i;return o=new je({props:{seed:"1645e30c3c09ed478e5"}}),{c(){n=y("div"),n.innerHTML='<kbd>compromise/one</kbd> \n      <div class="tab">is 40kb of javascript:</div>',r=k(),V(o.$$.fragment)},m(e,t){m(e,n,t),m(e,r,t),Z(o,e,t),i=!0},p:e,i(e){i||(Y(o.$$.fragment,e),i=!0)},o(e){K(o.$$.fragment,e),i=!1},d(e){e&&g(n),e&&g(r),X(o,e)}}}function Zs(t){let n,r,o,i,a,s,l,c,u,d,f,h,v,b,w,x,$,S,M,T,O,z,A,D,N,E,j,_,H,P,I,B,W;return c=new Pe({props:{top:"1rem"}}),b=new Pe({props:{top:"1rem"}}),T=new Pe({props:{top:"1rem"}}),E=new Pe({props:{top:"1rem"}}),B=new Pe({props:{top:"1rem"}}),{c(){n=y("div"),n.textContent="so you can do:",r=k(),o=y("ul"),i=y("li"),a=y("a"),s=y("span"),s.textContent="Quick lookups",l=k(),V(c.$$.fragment),u=k(),d=y("li"),f=y("a"),h=y("span"),h.textContent="TypeAhead",v=k(),V(b.$$.fragment),w=k(),x=y("li"),$=y("a"),S=y("span"),S.textContent="Syllable parsing",M=k(),V(T.$$.fragment),O=k(),z=y("li"),A=y("a"),D=y("span"),D.textContent="TFIDF",N=k(),V(E.$$.fragment),j=k(),_=y("li"),H=y("a"),P=y("span"),P.textContent="Wikipedia Topics",I=k(),V(B.$$.fragment),C(n,"class","down f09"),C(s,"class","choose"),L(s,"color","white"),C(a,"href","./one/lookup"),C(a,"class","nowrap svelte-dj935o"),C(i,"class","down"),C(h,"class","choose"),L(h,"color","white"),C(f,"href","./one/typeahead"),C(f,"class","nowrap svelte-dj935o"),C(d,"class","down"),C(S,"class","choose"),L(S,"color","white"),C($,"href","./one/syllables"),C($,"class","nowrap svelte-dj935o"),C(x,"class","down"),C(D,"class","choose"),L(D,"color","white"),C(A,"href","./one/tfidf"),C(A,"class","nowrap svelte-dj935o"),C(z,"class","down"),C(P,"class","choose"),L(P,"color","white"),C(H,"href","./one/wikipedia"),C(H,"class","nowrap svelte-dj935o"),C(_,"class","down"),C(o,"class","list down")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),p(o,i),p(i,a),p(a,s),p(a,l),Z(c,a,null),p(o,u),p(o,d),p(d,f),p(f,h),p(f,v),Z(b,f,null),p(o,w),p(o,x),p(x,$),p($,S),p($,M),Z(T,$,null),p(o,O),p(o,z),p(z,A),p(A,D),p(A,N),Z(E,A,null),p(o,j),p(o,_),p(_,H),p(H,P),p(H,I),Z(B,H,null),W=!0},p:e,i(e){W||(Y(c.$$.fragment,e),Y(b.$$.fragment,e),Y(T.$$.fragment,e),Y(E.$$.fragment,e),Y(B.$$.fragment,e),W=!0)},o(e){K(c.$$.fragment,e),K(b.$$.fragment,e),K(T.$$.fragment,e),K(E.$$.fragment,e),K(B.$$.fragment,e),W=!1},d(e){e&&g(n),e&&g(r),e&&g(o),X(c),X(b),X(T),X(E),X(B)}}}function Xs(t){let n,r,o,i,a,s,l;return i=new Us({}),{c(){n=y("div"),n.innerHTML='<div><span class="lib svelte-dj935o">compromise/one</span> is <span class="sea">42kb</span></div> \n\n      \n      <img class="clean svelte-dj935o" style="width:80%; max-width:450px;" src="./home/img/one.jpg" alt="compromise/one filesize"/>',r=k(),o=y("div"),V(i.$$.fragment),a=k(),s=y("div"),s.innerHTML="it does ~800kb of text per second,\n      <div>or a bookshelf in 12s.</div>",C(n,"class","down col svelte-dj935o"),L(o,"max-width","600px"),L(o,"margin-top","6rem"),C(s,"class","f09 right down svelte-dj935o")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),Z(i,o,null),m(e,a,t),m(e,s,t),l=!0},p:e,i(e){l||(Y(i.$$.fragment,e),l=!0)},o(e){K(i.$$.fragment,e),l=!1},d(e){e&&g(n),e&&g(r),e&&g(o),X(i),e&&g(a),e&&g(s)}}}function Qs(e){let t,n,r,o,i,a,s,l,c,u,d,f;return t=new we({props:{$$slots:{default:[Ys]},$$scope:{ctx:e}}}),r=new le({props:{$$slots:{default:[Ks]},$$scope:{ctx:e}}}),i=new le({props:{$$slots:{default:[Vs]},$$scope:{ctx:e}}}),s=new fe({props:{$$slots:{default:[Zs]},$$scope:{ctx:e}}}),c=new we({props:{$$slots:{default:[Xs]},$$scope:{ctx:e}}}),{c(){V(t.$$.fragment),n=k(),V(r.$$.fragment),o=k(),V(i.$$.fragment),a=k(),V(s.$$.fragment),l=k(),V(c.$$.fragment),u=k(),d=y("div"),d.innerHTML='<div>sometimes just splitting things up is enough.</div> \n    \n    <div class="m2 sea down f09">sometimes it&#39;
1s not ↓</div>',L(d,"margin-top","6rem"),L(d,"margin-left","2rem")},m(e,h){Z(t,e,h),m(e,n,h),Z(r,e,h),m(e,o,h),Z(i,e,h),m(e,a,h),Z(s,e,h),m(e,l,h),Z(c,e,h),m(e,u,h),m(e,d,h),f=!0},p(e,n){const o={};1&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o);const a={};1&n&&(a.$$scope={dirty:n,ctx:e}),r.$set(a);const l={};1&n&&(l.$$scope={dirty:n,ctx:e}),i.$set(l);const u={};1&n&&(u.$$scope={dirty:n,ctx:e}),s.$set(u);const d={};1&n&&(d.$$scope={dirty:n,ctx:e}),c.$set(d)},i(e){f||(Y(t.$$.fragment,e),Y(r.$$.fragment,e),Y(i.$$.fragment,e),Y(s.$$.fragment,e),Y(c.$$.fragment,e),f=!0)},o(e){K(t.$$.fragment,e),K(r.$$.fragment,e),K(i.$$.fragment,e),K(s.$$.fragment,e),K(c.$$.fragment,e),f=!1},d(e){X(t,e),e&&g(n),X(r,e),e&&g(o),X(i,e),e&&g(a),X(s,e),e&&g(l),X(c,e),e&&g(u),e&&g(d)}}}function Js(e){let t,n;return t=new oe({props:{$$slots:{default:[Qs]},$$scope:{ctx:e}}}),{c(){V(t.$$.fragment)},m(e,r){Z(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Y(t.$$.fragment,e),n=!0)},o(e){K(t.$$.fragment,e),n=!1},d(e){X(t,e)}}}class el extends ee{constructor(e){super(),J(this,e,null,Js,i,{})}}function tl(t){let n,r,o,i,a,s,l,c,u;return{c(){n=y("b"),n.textContent="compromise/two",r=k(),o=y("div"),o.innerHTML='<span class="plugin svelte-515c0x">tagging</span> the grammar in the words.',i=k(),a=y("div"),s=k(),l=y("div"),l.textContent="classify Noun/Verb/Adjective, etc.",c=k(),u=y("div"),u.innerHTML='<div class="down f09">which is more handy than you may think.</div>',C(n,"id","two"),C(n,"class","sky f2"),C(o,"class","f09"),L(a,"margin-top","5rem"),C(l,"class","down tab"),C(u,"class","tab"),L(u,"margin-top","1.5rem"),L(u,"font-size","1.5rem")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),m(e,i,t),m(e,a,t),m(e,s,t),m(e,l,t),m(e,c,t),m(e,u,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a),e&&g(s),e&&g(l),e&&g(c),e&&g(u)}}}function nl(t){let n,r,o,i,a,s,l;return{c(){n=y("div"),n.textContent="it's nice because,",r=k(),o=y("div"),o.innerHTML='you can say that <b class="f2 sea">&#39;buffalo&#39;</b> and <b class="f2 sky">&#39;hamilton&#39;</b> \n      <span class="">are</span> \n      <span class="f2 red down" style="margin-left:10px;">#Nouns</span> -',i=k(),a=y("div"),a.innerHTML='without actually knowing <span class="sky">what those things are</span>.',s=k(),l=y("div"),l.innerHTML='it&#39;s a pretty modest\n      <div class="tab">interpretation of the words</div> \n      <div class="f09">so it actually works.</div> \n      <div class="tab f09 down">you don&#39;t need to know any linguistics</div>',C(n,"class","f09"),C(o,"class","tab"),L(o,"line-height","3rem"),C(a,"class","tab down i"),C(l,"class","down f09")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),m(e,i,t),m(e,a,t),m(e,s,t),m(e,l,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a),e&&g(s),e&&g(l)}}}function rl(t){let n,r,o,i,a;return{c(){n=y("div"),n.innerHTML="it&#39;s sort of like a <i>regular expression</i> for words.",r=k(),o=y("ul"),o.innerHTML='<kbd class="blue i down">simon says #Verb+ the? #Noun+</kbd> \n      <kbd class="blue i down">#FirstName is on #Ordinal</kbd> \n      <kbd class="blue i">it was the #Adjective of times</kbd>',i=k(),a=y("div"),a.innerHTML='<a href="https://observablehq.com/@spencermountain/compromise-match-syntax" class="red tab down">- match docs</a>',C(o,"class","svelte-515c0x"),C(a,"class","tab")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),m(e,i,t),m(e,a,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a)}}}function ol(t){let n,r,o,i,a,s,l,c,u;return{c(){n=y("div"),n.textContent="these match-templates -",r=k(),o=y("div"),o.textContent="can scoop-up information -",i=k(),a=y("div"),a.textContent="like the words are some kind of little database -",s=k(),l=y("div"),l.textContent="your matches can be clumsy, ad-hoc",c=k(),u=y("div"),u.textContent="and written by non-programmers.",C(o,"class","tab i"),C(a,"class","tab sky i"),C(l,"class","down"),C(u,"class","tab")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),m(e,i,t),m(e,a,t),m(e,s,t),m(e,l,t),m(e,c,t),m(e,u,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a),e&&g(s),e&&g(l),e&&g(c),e&&g(u)}}}function il(t){let n,r,o,i,a,s,l,c,u,d,f,h,v,b,w,x;
1return u=new Pe({props:{top:"1rem"}}),w=new Pe({props:{top:"1rem"}}),{c(){n=y("div"),n.innerHTML='this can do helpful -\n      <div class="tab f2">before some crazy <span class="red ">AI-thing</span> -</div> \n      <div class="tab">just does it all,</div> \n      <br/>\n      or more often, some person&#39;s tired eyes:',r=k(),o=y("ul"),i=y("li"),a=y("a"),s=y("span"),s.textContent="Match-syntax",l=k(),c=y("span"),V(u.$$.fragment),d=k(),f=y("li"),h=y("a"),v=y("span"),v.textContent="Contractions",b=k(),V(w.$$.fragment),L(n,"margin-bottom","3rem"),C(s,"class","choose down"),L(s,"color","white"),L(c,"position","relative"),C(a,"href","./two/match"),C(a,"class","nowrap svelte-515c0x"),C(v,"class","choose"),L(v,"color","white"),C(h,"href","./two/contractions"),C(h,"class","nowrap svelte-515c0x"),C(f,"class","down"),C(o,"class","list down svelte-515c0x")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),p(o,i),p(i,a),p(a,s),p(a,l),p(a,c),Z(u,c,null),p(o,d),p(o,f),p(f,h),p(h,v),p(h,b),Z(w,h,null),x=!0},p:e,i(e){x||(Y(u.$$.fragment,e),Y(w.$$.fragment,e),x=!0)},o(e){K(u.$$.fragment,e),K(w.$$.fragment,e),x=!1},d(e){e&&g(n),e&&g(r),e&&g(o),X(u),X(w)}}}function al(t){let n;return{c(){n=y("div"),n.innerHTML='<kbd>compromise/two</kbd> \n      <div class="tab">is 130kb minified.</div>'},m(e,t){m(e,n,t)},p:e,d(e){e&&g(n)}}}function sl(t){let n,r,o,i;return{c(){var e,t;n=y("div"),n.textContent="so is this gif",r=k(),o=y("img"),C(n,"class","i"),e=o.src,t=i="./build/assets/jesus.gif",a||(a=document.createElement("a")),a.href=t,e!==a.href&&C(o,"src","./build/assets/jesus.gif"),C(o,"alt","jesus gif")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o)}}}function ll(t){let n,r,o,i;return o=new je({props:{seed:"76b36bcb2b4e1fec394"}}),{c(){n=y("div"),r=k(),V(o.$$.fragment),L(n,"width","200px")},m(e,t){m(e,n,t),m(e,r,t),Z(o,e,t),i=!0},p:e,i(e){i||(Y(o.$$.fragment,e),i=!0)},o(e){K(o.$$.fragment,e),i=!1},d(e){e&&g(n),e&&g(r),X(o,e)}}}function cl(e){let t,n,r,o,i,a,s,l,c,u,d,f,h,p,v,b,w,x;return t=new we({props:{$$slots:{default:[tl]},$$scope:{ctx:e}}}),r=new le({props:{$$slots:{default:[nl]},$$scope:{ctx:e}}}),i=new we({props:{$$slots:{default:[rl]},$$scope:{ctx:e}}}),s=new le({props:{$$slots:{default:[ol]},$$scope:{ctx:e}}}),c=new fe({props:{$$slots:{default:[il]},$$scope:{ctx:e}}}),d=new le({props:{$$slots:{default:[al]},$$scope:{ctx:e}}}),h=new fe({props:{$$slots:{default:[sl]},$$scope:{ctx:e}}}),w=new ge({props:{$$slots:{default:[ll]},$$scope:{ctx:e}}}),{c(){V(t.$$.fragment),n=k(),V(r.$$.fragment),o=k(),V(i.$$.fragment),a=k(),V(s.$$.fragment),l=k(),V(c.$$.fragment),u=k(),V(d.$$.fragment),f=k(),V(h.$$.fragment),p=k(),v=y("div"),v.innerHTML='<img class="clean" style="width:350px;" src="./home/img/one.jpg" alt="compromise/one filesize"/> \n    <img class="clean" style="width:350px;" src="./home/img/two.jpg" alt="compromise/two filesize"/>',b=k(),V(w.$$.fragment),C(v,"class","row svelte-515c0x")},m(e,g){Z(t,e,g),m(e,n,g),Z(r,e,g),m(e,o,g),Z(i,e,g),m(e,a,g),Z(s,e,g),m(e,l,g),Z(c,e,g),m(e,u,g),Z(d,e,g),m(e,f,g),Z(h,e,g),m(e,p,g),m(e,v,g),m(e,b,g),Z(w,e,g),x=!0},p(e,n){const o={};1&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o);const a={};1&n&&(a.$$scope={dirty:n,ctx:e}),r.$set(a);const l={};1&n&&(l.$$scope={dirty:n,ctx:e}),i.$set(l);const u={};1&n&&(u.$$scope={dirty:n,ctx:e}),s.$set(u);const f={};1&n&&(f.$$scope={dirty:n,ctx:e}),c.$set(f);const p={};1&n&&(p.$$scope={dirty:n,ctx:e}),d.$set(p);const m={};1&n&&(m.$$scope={dirty:n,ctx:e}),h.$set(m);const g={};1&n&&(g.$$scope={dirty:n,ctx:e}),w.$set(g)},i(e){x||(Y(t.$$.fragment,e),Y(r.$$.fragment,e),Y(i.$$.fragment,e),Y(s.$$.fragment,e),Y(c.$$.fragment,e),Y(d.$$.fragment,e),Y(h.$$.fragment,e),Y(w.$$.fragment,e),x=!0)},o(e){K(t.$$.fragment,e),K(r.$$.fragment,e),K(i.$$.fragment,e),K(s.$$.fragment,e),K(c.$$.fragment,e),K(d.$$.fragment,e),K(h.$$.fragment,e),K(w.$$.fragment,e),x=!1},d(e){X(t,e),e&&g(n),X(r,e),e&&g(o),X(i,e),e&&g(a),X(s,e),e&&g(l),X(c,e),e&&g(u),X(d,e),e&&g(f),X(h,e),e&&g(p),e&&g(v),e&&g(b),X(w,e)}}}function ul(e){let t,n,r,o;return t=new qe({props:{color:"#978BA3"}}),r=new oe({props:{$$slots:{default:[cl]},$$scope:{ctx:e}}}),{c(){V(t.$$.fragment),n=k(),V(r.$$.fragment)}
vendor: 12,795 bytes, line 1
1,m(e,i){Z(t,e,i),m(e,n,i),Z(r,e,i),o=!0},p(e,[t]){const n={};1&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n)},i(e){o||(Y(t.$$.fragment,e),Y(r.$$.fragment,e),o=!0)},o(e){K(t.$$.fragment,e),K(r.$$.fragment,e),o=!1},d(e){X(t,e),e&&g(n),X(r,e)}}}class dl extends ee{constructor(e){super(),J(this,e,null,ul,i,{})}}function fl(t){let n,r,o,i,a;return{c(){n=y("b"),n.textContent="compromise/three",r=k(),o=y("div"),o.innerHTML='helps interpret <span class="plugin svelte-1dmbj7v">chunks</span>, or groups of words.',i=k(),a=y("div"),C(n,"id","three"),C(n,"class","sky f2"),L(a,"margin-top","2rem")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),m(e,i,t),m(e,a,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a)}}}function hl(t){let n,r,o,i,a;return{c(){n=y("div"),n.innerHTML='<div class="f2"><div class="blue">&#39;captain of the football team&#39;</div> \n        <div class="tab">is one thing.</div></div> \n      <div class="tab"><div class="down tab">so is <span class="sea i">&#39;jet skiing&#39;</span></div> \n        <div class="down"><span class="sky i">&#39;breaking up&#39;</span></div> \n        <div class="down tab">and <span class="rose i">&#39;Calgary Alberta&#39;</span>.</div></div>',r=k(),o=y("div"),i=k(),a=y("div"),a.innerHTML='<div class="">a word can be two things,\n        <div class="tab f09">or a 1/3rd of a thing.</div></div>',C(o,"class","mt4"),C(a,"class","tab")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),m(e,i,t),m(e,a,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a)}}}function pl(t){let n,r,o;return{c(){n=y("div"),n.innerHTML='in practice, people want a <i class="sea">group</i> -',r=k(),o=y("div"),o.innerHTML='<div class="down sky">and not trip-over some #Adverb,</div> \n      <div class="f09 tab">or contraction, or something.</div>',C(o,"class","tab i")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o)}}}function ml(t){let n,r,o,i,a,s,l,c,u,d,f,h,v,b,w,x,$,S,M,T,O,z,A,D,N,E,j;return c=new Pe({props:{top:"1rem"}}),b=new Pe({props:{top:"1rem"}}),T=new Pe({props:{top:"1rem"}}),E=new Pe({props:{top:"1rem"}}),{c(){n=y("div"),n.textContent="this also lets things happen:",r=k(),o=y("ul"),i=y("li"),a=y("a"),s=y("span"),s.textContent="Number parsing",l=k(),V(c.$$.fragment),u=k(),d=y("li"),f=y("a"),h=y("span"),h.textContent="Redaction",v=k(),V(b.$$.fragment),w=k(),x=y("li"),$=y("a"),S=y("span"),S.textContent="Date parsing",M=k(),V(T.$$.fragment),O=k(),z=y("li"),A=y("a"),D=y("span"),D.textContent="Tense conjugation",N=k(),V(E.$$.fragment),C(n,"class","down f09"),C(s,"class","choose"),L(s,"color","white"),C(a,"href","./three/numbers"),C(a,"class","nowrap svelte-1dmbj7v"),C(h,"class","choose"),L(h,"color","white"),C(f,"href","./three/redact"),C(f,"class","nowrap svelte-1dmbj7v"),C(d,"class","down"),C(S,"class","choose"),L(S,"color","white"),C($,"href","./three/dates"),C($,"class","nowrap svelte-1dmbj7v"),C(x,"class","down"),C(D,"class","choose"),L(D,"color","white"),C(A,"href","./three/verbs"),C(A,"class","nowrap svelte-1dmbj7v"),C(z,"class","down"),C(o,"class","list down")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),p(o,i),p(i,a),p(a,s),p(a,l),Z(c,a,null),p(o,u),p(o,d),p(d,f),p(f,h),p(f,v),Z(b,f,null),p(o,w),p(o,x),p(x,$),p($,S),p($,M),Z(T,$,null),p(o,O),p(o,z),p(z,A),p(A,D),p(A,N),Z(E,A,null),j=!0},p:e,i(e){j||(Y(c.$$.fragment,e),Y(b.$$.fragment,e),Y(T.$$.fragment,e),Y(E.$$.fragment,e),j=!0)},o(e){K(c.$$.fragment,e),K(b.$$.fragment,e),K(T.$$.fragment,e),K(E.$$.fragment,e),j=!1},d(e){e&&g(n),e&&g(r),e&&g(o),X(c),X(b),X(T),X(E)}}}function gl(t){let n,r,o,i,a,s,l,c;return{c(){n=w("If you're cautious, and worried this won't work,\n    "),r=y("div"),r.textContent="you are very clever.",o=k(),i=y("div"),i.textContent="but remember -",a=k(),s=y("div"),s.innerHTML='<span class="sky i">&quot;ripped&quot;</span> \n      <div class="tab" style="font-size:1.2rem;">can mean <span class="rose i">torn</span> or\n        <span class="red i">drunk</span>.</div>',l=k(),c=y("div"),c.innerHTML='but both times it&#39;s just an <b class="sky i">#Adjective</b>.',C(r,"class","tab sea"),C(i,"class","tab down"),C(s,"class","f2 down"),C(c,"class","down")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),m(e,i,t),m(e,a,t),m(e,s,t),m(e,l,t),m(e,c,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a),e&&g(s),e&&g(l),e&&g(c)}}}function vl(e){let t,n,r,o,i,a,s,l,c,u,d,f;return t=new we({props:{$$slots:{default:[fl]},$$scope:{ctx:e}}}),r=new we({props:{$$slots:{default:[hl]},$$scope:{ctx:e}}}),i=new le({props:{$$slots:{default:[pl]},$$scope:{ctx:e}}}),s=new fe({props:{$$slots:{default:[ml]},$$scope:{ctx:e}}}),d=new le({props:{$$slots:{default:[gl]},$$scope:{ctx:e}}}),{c(){V(t.$$.fragment),n=k(),V(r.$$.fragment),o=k(),V(i.$$.fragment),a=k(),V(s.$$.fragment),l=k(),c=y("div"),c.innerHTML='<img class="clean" style="width:250px;" src="./home/img/one.jpg" alt="compromise/one filesize"/> \n    <img class="clean" style="width:250px;" src="./home/img/two.jpg" alt="compromise/two filesize"/> \n    <img class="clean" style="width:250px;" src="./home/img/three.jpg" alt="compromise/three filesize"/>',u=k(),V(d.$$.fragment),C(c,"class","row svelte-1dmbj7v")},m(e,h){Z(t,e,h),m(e,n,h),Z(r,e,h),m(e,o,h),Z(i,e,h),m(e,a,h),Z(s,e,h),m(e,l,h),m(e,c,h),m(e,u,h),Z(d,e,h),f=!0},p(e,n){const o={};1&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o);const a={};1&n&&(a.$$scope={dirty:n,ctx:e}),r.$set(a);const l={};1&n&&(l.$$scope={dirty:n,ctx:e}),i.$set(l);const c={};1&n&&(c.$$scope={dirty:n,ctx:e}),s.$set(c);const u={};1&n&&(u.$$scope={dirty:n,ctx:e}),d.$set(u)},i(e){f||(Y(t.$$.fragment,e),Y(r.$$.fragment,e),Y(i.$$.fragment,e),Y(s.$$.fragment,e),Y(d.$$.fragment,e),f=!0)},o(e){K(t.$$.fragment,e),K(r.$$.fragment,e),K(i.$$.fragment,e),K(s.$$.fragment,e),K(d.$$.fragment,e),f=!1},d(e){X(t,e),e&&g(n),X(r,e),e&&g(o),X(i,e),e&&g(a),X(s,e),e&&g(l),e&&g(c),e&&g(u),X(d,e)}}}function yl(e){let t,n,r,o;return t=new qe({props:{color:"#e6b3bc"}}),r=new oe({props:{$$slots:{default:[vl]},$$scope:{ctx:e}}}),{c(){V(t.$$.fragment),n=k(),V(r.$$.fragment)},m(e,i){Z(t,e,i),m(e,n,i),Z(r,e,i),o=!0},p(e,[t]){const n={};1&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n)},i(e){o||(Y(t.$$.fragment,e),Y(r.$$.fragment,e),o=!0)},o(e){K(t.$$.fragment,e),K(r.$$.fragment,e),o=!1},d(e){X(t,e),e&&g(n),X(r,e)}}}class bl extends ee{constructor(e){super(),J(this,e,null,yl,i,{})}}function wl(t){let n;return{c(){n=y("div"),n.innerHTML='<div><div class="tag svelte-1s7ok2">#Noun <span class="desc svelte-1s7ok2">- &#39;friendship&#39;</span></div> \n    <div class="ul svelte-1s7ok2"><div class="tag svelte-1s7ok2">#Singular <span class="desc svelte-1s7ok2">- &#39;owl&#39;</span></div> \n      <div class="ul svelte-1s7ok2"><div class="tag svelte-1s7ok2">#Person <span class="desc svelte-1s7ok2">- &#39;Jasper Beardly&#39;</span></div> \n        <div class="ul svelte-1s7ok2"><div class="tag svelte-1s7ok2">#FirstName <span class="desc svelte-1s7ok2">- &#39;troy&#39;</span></div> \n          <div class="ul svelte-1s7ok2"><div class="tag svelte-1s7ok2">#MaleName <span class="desc svelte-1s7ok2">- &#39;john&#39;</span></div> \n            <div class="tag svelte-1s7ok2">#FemaleName <span class="desc svelte-1s7ok2">- &#39;jane&#39;</span></div></div> \n          <div class="tag svelte-1s7ok2">#LastName <span class="desc svelte-1s7ok2">- &#39;mcclure&#39;</span></div></div> \n        <div class="tag svelte-1s7ok2">#Place <span class="desc svelte-1s7ok2">- &#39;Toronto, Ontario&#39;</span></div> \n        <div class="ul svelte-1s7ok2"><div class="tag svelte-1s7ok2">#Country <span class="desc svelte-1s7ok2">- &#39;France&#39;</span></div> \n          <div class="tag svelte-1s7ok2">#City <span class="desc svelte-1s7ok2">- &#39;springfield&#39;</span></div> \n          <div class="tag svelte-1s7ok2">#Region <span class="desc svelte-1s7ok2">- &#39;Florida&#39;</span></div> \n          <div class="tag svelte-1s7ok2">#Address <span class="desc svelte-1s7ok2">- &#39;742 evergreen terrace&#39;</span></div></div> \n        <div class="tag svelte-1s7ok2">#Organization <span class="desc svelte-1s7ok2">- &#39;St Michael&#39;s Church&#39;</span></div> \n        <div class="ul svelte-1s7ok2"><div class="tag svelte-1s7ok2">#SportsTeam <span class="desc svelte-1s7ok2">- &#39;Red Sox&#39;</span></div> \n          <div class="tag svelte-1s7ok2">#Company <span class="desc svelte-1s7ok2">- &#39;Globex Corp&#39;</span></div> \n          <div class="tag svelte-1s7ok2">#School <span class="desc svelte-1s7ok2">- &#39;Hillcrest highschool&#39;</span></div></div></div> \n      <div class="tag svelte-1s7ok2">#ProperNoun <span class="desc svelte-1s7ok2">- &#39;France&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Honorific <span class="desc svelte-1s7ok2">- &#39;Dr.&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Plural <span class="desc svelte-1s7ok2">- &#39;owls&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Uncountable <span class="desc svelte-1s7ok2">- &#39;air&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Pronoun <span class="desc svelte-1s7ok2">- &#39;he&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Actor <span class="desc svelte-1s7ok2">- &#39;bowler&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Activity <span class="desc svelte-1s7ok2">- &#39;swimming&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Unit <span class="desc svelte-1s7ok2">- &#39;kilos&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Demonym <span class="desc svelte-1s7ok2">- &#39;canadians&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Possessive <span class="desc svelte-1s7ok2">- &#39;Spencer&#39;s&#39;</span></div></div> \n    <div class="tag svelte-1s7ok2">#Verb <span class="desc svelte-1s7ok2">- &#39;would have walked&#39;</span></div> \n    <div class="ul svelte-1s7ok2"><div class="ul svelte-1s7ok2"><div class="tag svelte-1s7ok2">#PresentTense <span class="desc svelte-1s7ok2">- &#39;walks&#39;</span></div> \n        <div class="tag svelte-1s7ok2">#Infinitive <span class="desc svelte-1s7ok2">- &#39;walk&#39;</span></div> \n        <div class="tag svelte-1s7ok2">#Gerund <span class="desc svelte-1s7ok2">- &#39;walking&#39;</span></div></div> \n      <div class="tag svelte-1s7ok2">#PastTense <span class="desc svelte-1s7ok2">- &#39;walked&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Copula <span class="desc svelte-1s7ok2">- &#39;is&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Modal <span class="desc svelte-1s7ok2">- &#39;would&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#PerfectTense <span class="desc svelte-1s7ok2">- &#39;have walked&#39;</span></div> \n      <div class="ul svelte-1s7ok2"><div class="tag svelte-1s7ok2">#FuturePerfect <span class="desc svelte-1s7ok2">- &#39;will have walked&#39;</span></div> \n        <div class="tag svelte-1s7ok2">#Pluperfect <span class="desc svelte-1s7ok2">- &#39;had walked&#39;</span></div></div> \n      <div class="tag svelte-1s7ok2">#PhrasalVerb <span class="desc svelte-1s7ok2">- &#39;walk off&#39;</span></div> \n      <div class="ul svelte-1s7ok2"><div class="tag svelte-1s7ok2">#Particle <span class="desc svelte-1s7ok2">- &#39;off&#39; of &#39;walk off&#39;</span></div></div></div> \n    <div class="tag svelte-1s7ok2">#Value</div> \n    <div class="ul svelte-1s7ok2"><div class="tag svelte-1s7ok2">#Cardinal <span class="desc svelte-1s7ok2">- &#39;5&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Ordinal <span class="desc svelte-1s7ok2">- &#39;5th&#39;</span> \n        <div class="tag svelte-1s7ok2">#RomanNumeral <span class="desc svelte-1s7ok2">- &#39;XLII&#39;</span></div></div> \n      <div class="tag svelte-1s7ok2">#TextValue <span class="desc svelte-1s7ok2">- &#39;five&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#NumericValue <span class="desc svelte-1s7ok2">- &#39;5&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Percent <span class="desc svelte-1s7ok2">- &#39;4.3%&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Money <span class="desc svelte-1s7ok2">- &#39;$5.20&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Fraction <span class="desc svelte-1s7ok2">- &#39;2/3rds&#39;</span></div></div> \n    <div class="tag svelte-1s7ok2">#Date <span class="desc svelte-1s7ok2">- &#39;june 2nd&#39;</span></div> \n    <div class="ul svelte-1s7ok2"><div class="tag svelte-1s7ok2">#Month <span class="desc svelte-1s7ok2">- &#39;june&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#WeekDay <span class="desc svelte-1s7ok2">- &#39;wednesday&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Holiday <span class="desc svelte-1s7ok2">- &#39;haloween&#39;</span></div></div> \n    <div class="tag svelte-1s7ok2">#Adjective <span class="desc svelte-1s7ok2">- &#39;fast&#39;</span></div> \n    <div class="ul svelte-1s7ok2"><div class="tag svelte-1s7ok2">
1#Comparable <span class="desc svelte-1s7ok2">- &#39;fast&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Comparative <span class="desc svelte-1s7ok2">- &#39;faster&#39;</span></div> \n      <div class="tag svelte-1s7ok2">#Superlative <span class="desc svelte-1s7ok2">- &#39;fastest&#39;</span></div></div> \n    <div class="tag svelte-1s7ok2">#Contraction <span class="desc svelte-1s7ok2">- &#39;he&#39;s&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Adverb <span class="desc svelte-1s7ok2">- &#39;quickly&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Currency <span class="desc svelte-1s7ok2">- &#39;USD&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Determiner <span class="desc svelte-1s7ok2">- &#39;the&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Conjunction <span class="desc svelte-1s7ok2">- &#39;and&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Preposition <span class="desc svelte-1s7ok2">- &#39;of&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#QuestionWord <span class="desc svelte-1s7ok2">- &#39;who&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Pronoun <span class="desc svelte-1s7ok2">- &#39;he&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Expression <span class="desc svelte-1s7ok2">- &#39;Gee&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Url <span class="desc svelte-1s7ok2">- &#39;http://compromise.cool&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#HashTag <span class="desc svelte-1s7ok2">- &#39;#nlp&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#PhoneNumber <span class="desc svelte-1s7ok2">- &#39;(800) 555-0000&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#AtMention <span class="desc svelte-1s7ok2">- &#39;@nlp_compromise&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Emoji <span class="desc svelte-1s7ok2">- &#39;:)&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Emoticon <span class="desc svelte-1s7ok2">- &#39;😊&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Email <span class="desc svelte-1s7ok2">- &#39;[email protected]&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Auxiliary <span class="desc svelte-1s7ok2">- &#39;would have had&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Negative <span class="desc svelte-1s7ok2">- &#39;not&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Abbreviation <span class="desc svelte-1s7ok2">- &#39;st.&#39;</span></div> \n    <div class="tag svelte-1s7ok2">#Acronym <span class="desc svelte-1s7ok2">- &#39;CIA&#39;</span></div></div>',C(n,"class","box svelte-1s7ok2")},m(e,t){m(e,n,t)},p:e,i:e,o:e,d(e){e&&g(n)}}}class kl extends ee{constructor(e){super(),J(this,e,null,wl,i,{})}}function xl(t){let n,r,o;return r=new kl({}),{c(){n=y("div"),V(r.$$.fragment),C(n,"id","tags"),C(n,"class","box svelte-guomr8")},m(e,t){m(e,n,t),Z(r,n,null),o=!0},p:e,i(e){o||(Y(r.$$.fragment,e),o=!0)},o(e){K(r.$$.fragment,e),o=!1},d(e){e&&g(n),X(r)}}}function $l(e){let t,n;return t=new oe({props:{$$slots:{default:[xl]},$$scope:{ctx:e}}}),{c(){V(t.$$.fragment)},m(e,r){Z(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Y(t.$$.fragment,e),n=!0)},o(e){K(t.$$.fragment,e),n=!1},d(e){X(t,e)}}}class Cl extends ee{constructor(e){super(),J(this,e,null,$l,i,{})}}var Sl=["Alec Larson","Frazer Smith","Jason","Rajat singh","Lima","Explosion","Steve Rubin","Jayson Harshbarger","Axay Sushir","Ampyard Akshay Sushir","S. Suzuki","Ihor Halchevskyi","Jake Lee Kennedy","Kelvin Hammond","MC Naveen","Jared Reisinger","Frank MacDonald","Mark Herhold","Dominic Cassidy","Matt Eland","Mizquierdo","Daniel Netzer","Przemyslaw T","Adam Tombleson","Spencer Kelly","lostfictions","Cameron Chamberlain","Charles Loder","Mark Oberemk","David N. Hughes-Robinson","Shamoon Siddiqui","F MacDonald","David Yan","Andreas Lind","Matt Jonker","Michael Beemer","Sca","Winston Ewert","Christian Holm","Max Battcher","Joe Kane","Froren","Sebastian Lasse","redaktor","Robert O'Rourke","Leo Seccia","Ali Lokhandwala","Arjun Menon","Drew Walsh","Travis Savo","Anastasiia Zolochevska","Alexei Bazhenov","David Buhler","David Buhler","Timothy Verhaeghe","Kiran Rao","Adam Juhasz","Steven Bakhtiari","Siddharth Sharma","Javi Jiménez","Noah Lovelady-Allen","KahWee Teng","Ily
1a Ilyankou","Brandon Jiang","Chris Vandenberg","Nathan Marks","Richard van der Dys","Bryce Baril","Amila Welihinda","Niclas Darville","John Yesberg","Maxwell H. Carey","Blaine Schmeisser","Phil Plummer","Andrew Salveson","Nick Ovsiannikov","David Kernan","Dmitriy Loktev","Kay Oh","Juan","Łukasz Margiela","Jacob Mischka","Edward Vielmetti","David Leen","Terry Tompkins","Eric Lee Carraway","Diwank Singh Tomer","Mahangu","Lorenzo Sicilia","Tim Scheys","Rob Ellis","Christine Lee","Tasuku Suenaga","Xav Laumonier","Patrick Cauley","Willson Mock","somejeff","George M Kroid"];function Ml(e,t,n){const r=e.slice();return r[0]=t[n],r}function Ll(t){let n,r,o=t[0]+"";return{c(){n=y("span"),r=w(o),C(n,"class","friend svelte-15576ry")},m(e,t){m(e,n,t),p(n,r)},p:e,d(e){e&&g(n)}}}function Tl(e){let t,n,r,o,i,a,s,l,c,u,d,f=Sl,h=[];for(let t=0;t<f.length;t+=1)h[t]=Ll(Ml(e,f,t));return{c(){t=y("div"),n=k(),r=y("hr"),o=k(),i=y("div"),i.innerHTML='Compromise is an <span class="cherry">open-source</span>  <br/> \n      <div class="tab f09">community created <b>in 2010</b>:</div>',a=k(),s=y("div"),s.textContent="we've shipped >100 incremental releases.",l=k(),c=y("div");for(let e=0;e<h.length;e+=1)h[e].c();u=k(),d=y("hr"),C(t,"class","down"),L(r,"height","3px"),L(r,"background-color","#50617A"),L(r,"width","250px"),L(r,"margin-bottom","3rem"),L(r,"margin-top","4rem"),C(s,"class","f08 down svelte-15576ry"),L(d,"margin-top","3rem")},m(e,f){m(e,t,f),m(e,n,f),m(e,r,f),m(e,o,f),m(e,i,f),m(e,a,f),m(e,s,f),m(e,l,f),m(e,c,f);for(let e=0;e<h.length;e+=1)h[e].m(c,null);m(e,u,f),m(e,d,f)},p(e,t){if(0&t){let n;for(f=Sl,n=0;n<f.length;n+=1){const r=Ml(e,f,n);h[n]?h[n].p(r,t):(h[n]=Ll(r),h[n].c(),h[n].m(c,null))}for(;n<h.length;n+=1)h[n].d(1);h.length=f.length}},d(e){e&&g(t),e&&g(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a),e&&g(s),e&&g(l),e&&g(c),v(h,e),e&&g(u),e&&g(d)}}}function Ol(t){let n,r,o,i,a,s,l,c,u,d,f,h;return{c(){n=w("we think that  "),r=y("i"),r.textContent="open-source, web-focused",o=w("  tools\n    \n    "),i=y("div"),i.textContent="focusing on configurability",a=k(),s=y("div"),s.innerHTML='<div class="tab">avoiding fancy engineering</div>',l=k(),c=y("div"),c.innerHTML='and,\n      <div class="tab f2 blue">keeping filesize tiny.</div>',u=k(),d=y("div"),f=k(),h=y("div"),h.textContent="is the best way to build this.",C(i,"class","down f2 fuscia tab"),C(s,"class","down f2 tulip"),L(s,"margin-top","100px"),L(s,"margin-left","25%"),C(c,"class","down "),L(c,"margin-top","100px"),L(c,"margin-left","100px"),L(d,"margin-top","100px"),C(h,"class","down tab")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t),m(e,i,t),m(e,a,t),m(e,s,t),m(e,l,t),m(e,c,t),m(e,u,t),m(e,d,t),m(e,f,t),m(e,h,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o),e&&g(i),e&&g(a),e&&g(s),e&&g(l),e&&g(c),e&&g(u),e&&g(d),e&&g(f),e&&g(h)}}}function zl(t){let n,r,o;return{c(){n=y("div"),n.innerHTML='<div class="tab"><a href="https://spencermounta.in/" class="sky">Spencer Kelly</a>.\n        <div>is the benevolent dictator.</div></div>',r=k(),o=y("div"),o.innerHTML='PRs are always <a href="https://github.com/spencermountain/compromise/wiki/Contributing" class="link sky i">well-respected.</a>',C(n,"class","down f09"),C(o,"class","down f09")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o)}}}function Al(t){let n,r,o;return{c(){n=y("div"),n.innerHTML="Web-Assembly <b>&lt;should definetly happen&gt;</b>",r=k(),o=y("div"),o.innerHTML='<b class="sea">Non-english versions</b> &lt;are happening and need help&gt;.',C(n,"class","f09 down"),C(o,"class","down")},m(e,t){m(e,n,t),m(e,r,t),m(e,o,t)},p:e,d(e){e&&g(n),e&&g(r),e&&g(o)}}}function Dl(t){let n;return{c(){n=y("div"),n.innerHTML='<div><a href="https://github.com/spencermountain/compromise/"><img src="" alt=""/>\n          Github</a></div> \n      <div><a href="https://twitter.com/nlp_compromise"><img src="" alt=""/>\n          Twitter</a></div>',C(n,"class","row "),L(n,"font-size","1.5rem")},m(e,t){m(e,n,t)},p:e,d(e){e&&g(n)}}}function Nl(t){let n;return{c(){n=y("div"),n.innerHTML='<div></div> \n      <div><a href="https://observablehq.com/@spencermountain/nlp-compromise"><img src="" alt=""/>\n          Observable</a></div>',C(n,"class","row "),L(n,"font-size","1.5rem")},m(e,t){m(e,n,t)},p:e,d(e){e&&g(n)}}}function El(t){let n,r,o,i,a;return o=new je({props:{seed:"114a2660d759a54cd70"}}),{c(){n=y("div"),r=k(),V(o.$$.fragment),i=w("\n    MIT"),L(n,"width","300px")},m(e,t){m(e,n,t),m(e,r,t),Z(o,e,t),m(e,i,t),a=!0}
vendor: 3,175 bytes, line 1
1,p:e,i(e){a||(Y(o.$$.fragment,e),a=!0)},o(e){K(o.$$.fragment,e),a=!1},d(e){e&&g(n),e&&g(r),X(o,e),e&&g(i)}}}function jl(e){let t,n,r,o,i,a,s,l,c,u,d,f,h,p;return t=new we({props:{accent:"steelblue",$$slots:{default:[Tl]},$$scope:{ctx:e}}}),r=new we({props:{$$slots:{default:[Ol]},$$scope:{ctx:e}}}),i=new le({props:{$$slots:{default:[zl]},$$scope:{ctx:e}}}),s=new fe({props:{$$slots:{default:[Al]},$$scope:{ctx:e}}}),c=new we({props:{$$slots:{default:[Dl]},$$scope:{ctx:e}}}),d=new le({props:{$$slots:{default:[Nl]},$$scope:{ctx:e}}}),h=new fe({props:{$$slots:{default:[El]},$$scope:{ctx:e}}}),{c(){V(t.$$.fragment),n=k(),V(r.$$.fragment),o=k(),V(i.$$.fragment),a=k(),V(s.$$.fragment),l=k(),V(c.$$.fragment),u=k(),V(d.$$.fragment),f=k(),V(h.$$.fragment)},m(e,g){Z(t,e,g),m(e,n,g),Z(r,e,g),m(e,o,g),Z(i,e,g),m(e,a,g),Z(s,e,g),m(e,l,g),Z(c,e,g),m(e,u,g),Z(d,e,g),m(e,f,g),Z(h,e,g),p=!0},p(e,n){const o={};8&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o);const a={};8&n&&(a.$$scope={dirty:n,ctx:e}),r.$set(a);const l={};8&n&&(l.$$scope={dirty:n,ctx:e}),i.$set(l);const u={};8&n&&(u.$$scope={dirty:n,ctx:e}),s.$set(u);const f={};8&n&&(f.$$scope={dirty:n,ctx:e}),c.$set(f);const p={};8&n&&(p.$$scope={dirty:n,ctx:e}),d.$set(p);const m={};8&n&&(m.$$scope={dirty:n,ctx:e}),h.$set(m)},i(e){p||(Y(t.$$.fragment,e),Y(r.$$.fragment,e),Y(i.$$.fragment,e),Y(s.$$.fragment,e),Y(c.$$.fragment,e),Y(d.$$.fragment,e),Y(h.$$.fragment,e),p=!0)},o(e){K(t.$$.fragment,e),K(r.$$.fragment,e),K(i.$$.fragment,e),K(s.$$.fragment,e),K(c.$$.fragment,e),K(d.$$.fragment,e),K(h.$$.fragment,e),p=!1},d(e){X(t,e),e&&g(n),X(r,e),e&&g(o),X(i,e),e&&g(a),X(s,e),e&&g(l),X(c,e),e&&g(u),X(d,e),e&&g(f),X(h,e)}}}function _l(e){let t,n;return t=new oe({props:{$$slots:{default:[jl]},$$scope:{ctx:e}}}),{c(){V(t.$$.fragment)},m(e,r){Z(t,e,r),n=!0},p(e,[n]){const r={};8&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Y(t.$$.fragment,e),n=!0)},o(e){K(t.$$.fragment,e),n=!1},d(e){X(t,e)}}}class Hl extends ee{constructor(e){super(),J(this,e,null,_l,i,{})}}function Pl(t){let n,r,o,i,a,s,l,c,u,d,f,h,p,v,y,b,w,x;return n=new vn({}),o=new Es({}),a=new qs({}),l=new Ps({}),u=new el({}),f=new dl({}),p=new Cl({}),y=new bl({}),w=new Hl({}),{c(){V(n.$$.fragment),r=k(),V(o.$$.fragment),i=k(),V(a.$$.fragment),s=k(),V(l.$$.fragment),c=k(),V(u.$$.fragment),d=k(),V(f.$$.fragment),h=k(),V(p.$$.fragment),v=k(),V(y.$$.fragment),b=k(),V(w.$$.fragment)},m(e,t){Z(n,e,t),m(e,r,t),Z(o,e,t),m(e,i,t),Z(a,e,t),m(e,s,t),Z(l,e,t),m(e,c,t),Z(u,e,t),m(e,d,t),Z(f,e,t),m(e,h,t),Z(p,e,t),m(e,v,t),Z(y,e,t),m(e,b,t),Z(w,e,t),x=!0},p:e,i(e){x||(Y(n.$$.fragment,e),Y(o.$$.fragment,e),Y(a.$$.fragment,e),Y(l.$$.fragment,e),Y(u.$$.fragment,e),Y(f.$$.fragment,e),Y(p.$$.fragment,e),Y(y.$$.fragment,e),Y(w.$$.fragment,e),x=!0)},o(e){K(n.$$.fragment,e),K(o.$$.fragment,e),K(a.$$.fragment,e),K(l.$$.fragment,e),K(u.$$.fragment,e),K(f.$$.fragment,e),K(p.$$.fragment,e),K(y.$$.fragment,e),K(w.$$.fragment,e),x=!1},d(e){X(n,e),e&&g(r),X(o,e),e&&g(i),X(a,e),e&&g(s),X(l,e),e&&g(c),X(u,e),e&&g(d),X(f,e),e&&g(h),X(p,e),e&&g(v),X(y,e),e&&g(b),X(w,e)}}}return new class extends ee{constructor(e){super(),J(this,e,null,Pl,i,{})}}({target:document.body})}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.