PageSourceSearch

https://next-generation.herokuapp.com/assets/application-ee7b29825…6b74882fbc2cb2fdbe8dbc30c7243bfe8d648b95.js

js next-generation.herokuapp.com collected 2026-10-03 14:50:33 UTC 686,228 bytes, 21 lines download raw bytes

1!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(_,e){"use strict";function m(e,t,n){var r,i,o=(n=n||xe).createElement("script");if(o.text=e,t)for(r in Se)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function g(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?fe[pe.call(e)]||"object":typeof e}function s(e){var t=!!e&&"length"in e&&e.length,n=g(e);return!be(e)&&!we(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function c(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function t(e,n,r){return be(n)?_e.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?_e.grep(e,function(e){return e===n!==r}):"string"!=typeof n?_e.grep(e,function(e){return-1<he.call(n,e)!==r}):_e.filter(n,e,r)}function n(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function u(e){var n={};return _e.each(e.match(Me)||[],function(e,t){n[t]=!0}),n}function d(e){return e}function h(e){throw e}function l(e,t,n,r){var i;try{e&&be(i=e.promise)?i.call(e).done(t).fail(n):e&&be(i=e.then)?i.call(e,t,n):t.apply(undefined,[e].slice(r))}catch(e){n.apply(undefined,[e])}}function r(){xe.removeEventListener("DOMContentLoaded",r),_.removeEventListener("load",r),_e.ready()}function i(e,t){return t.toUpperCase()}function f(e){return e.replace(He,"ms-").replace(Fe,i)}function o(){this.expando=_e.expando+o.uid++}function a(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:$e.test(e)?JSON.parse(e):e)}function p(e,t,n){var r;if(n===undefined&&1===e.nodeType)if(r="data-"+t.replace(Ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=a(n)}catch(i){}We.set(e,t,n)}else n=undefined;return n}function v(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return _e.css(e,t,"")},l=s(),c=n&&n[3]||(_e.cssNumber[t]?"":"px"),u=e.nodeType&&(_e.cssNumber[t]||"px"!==c&&+l)&&Ve.exec(_e.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)_e.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,_e.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}function y(e){var t,n=e.ownerDocument,r=e.nodeName,i=Je[r];return i||(t=n.body.appendChild(n.createElement(r)),i=_e.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Je[r]=i)}function b(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Be.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Qe(r)&&(i[o]=y(r))):"none"!==n&&(i[o]="none",Be.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function w(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],t===undefined||t&&c(e,t)?_e.merge([e],n):n}function x(e,t){for(var n=0,r=e.length;n<r;n++)Be.set(e[n],"globalEval",!t||Be.get(t[n],"globalEval"))}function S(e,t,n,r,i){for(var o,a,s,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===g(o))_e.merge(h,o.nodeType?[o]:o);else if(ot.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(nt.exec(o)||["",""])[1].toLowerCase(),l=it[s]||it._default,a.innerHTML=l[1]+_e.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;_e.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(r&&-1<_e.inArray(o,r))i&&i.push(o);else if(c=Xe(o),a=w(d.appendChild(o),"script"),c&&x(a),n)for(u=0;o=a[u++];)rt.test(o.type||"")&&n.push(o);return d}function C(){return!0}function T(){return!1}function k(e,t){return e===D()==("focus"===t)}function D(){try{return xe.activeElement}catch(e){}}function E(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=undefined),t)E(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=undefined):null==i&&("string"==typeof n?(i=r,r=undefined):(i=r,r=n,n=undefined)),!1===i)i=T;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return _e().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=_e.guid++)),e.each(function(){_e.event.add(this,t,i,r,n)})}function A(e,i,o){o?(Be.set(e,i,!1),_e.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Be.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(_e.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=ce.call(arguments),Be.set(this,i,r),t=o(this,i),this[i](),r!==(n=Be.get(this,i))||t?Be.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Be.set(this,i,{value:_e.event.trigger(_e.extend(r[0],_e.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}}
vendor: 4,254 bytes, line 1
1)):Be.get(e,i)===undefined&&_e.event.add(e,i,C)}function L(e,t){return c(e,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&_e(e).children("tbody")[0]||e}function I(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function N(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function O(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Be.hasData(e)&&(s=Be.get(e).events))for(i in Be.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)_e.event.add(t,i,s[i][n]);We.hasData(e)&&(o=We.access(e),a=_e.extend({},o),We.set(t,a))}}function M(e,t){var n=t.nodeName.toLowerCase();"input"===n&&tt.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function P(n,r,i,o){r=ue(r);var e,t,a,s,l,c,u=0,d=n.length,h=d-1,f=r[0],p=be(f);if(p||1<d&&"string"==typeof f&&!ye.checkClone&&ut.test(f))return n.each(function(e){var t=n.eq(e);p&&(r[0]=f.call(this,e,t.html())),P(t,r,i,o)});if(d&&(t=(e=S(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=_e.map(w(e,"script"),I)).length;u<d;u++)l=e,u!==h&&(l=_e.clone(l,!0,!0),s&&_e.merge(a,w(l,"script"))),i.call(n[u],l,u);if(s)for(c=a[a.length-1].ownerDocument,_e.map(a,N),u=0;u<s;u++)l=a[u],rt.test(l.type||"")&&!Be.access(l,"globalEval")&&_e.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?_e._evalUrl&&!l.noModule&&_e._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):m(l.textContent.replace(dt,""),l,c))}return n}function R(e,t,n){for(var r,i=t?_e.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||_e.cleanData(w(r)),r.parentNode&&(n&&Xe(r)&&x(w(r,"script")),r.parentNode.removeChild(r));return e}function j(e,t,n){var r,i,o,a,s=e.style;return(n=n||ft(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||Xe(e)||(a=_e.style(e,t)),!ye.pixelBoxStyles()&&ht.test(a)&&mt.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),a!==undefined?a+"":a}function H(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function F(e){for(var t=e[0].toUpperCase()+e.slice(1),n=gt.length;n--;)if((e=gt[n]+t)in vt)return e}function q(e){var t=_e.cssProps[e]||yt[e];return t||(e in vt?e:yt[e]=F(e)||e)}function B(e,t,n){var r=Ve.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function W(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=_e.css(e,n+Ge[a],!0,i)),r?("content"===n&&(l-=_e.css(e,"padding"+Ge[a],!0,i)),"margin"!==n&&(l-=_e.css(e,"border"+Ge[a]+"Width",!0,i))):(l+=_e.css(e,"padding"+Ge[a],!0,i),"padding"!==n?l+=_e.css(e,"border"+Ge[a]+"Width",!0,i):s+=_e.css(e,"border"+Ge[a]+"Width",!0,i));return!r&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function $(e,t,n){var r=ft(e),i=(!ye.boxSizingReliable()||n)&&"border-box"===_e.css(e,"boxSizing",!1,r),o=i,a=j(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(ht.test(a)){if(!n)return a;a="auto"}return(!ye.boxSizingReliable()&&i||!ye.reliableTrDimensions()&&c(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===_e.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===_e.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+W(e,t,n||(i?"border":"content"),o,r,a)+"px"}function U(e,t,n,r,i){return new U.prototype.init(e,t,n,r,i)}function z(){_t&&(!1===xe.hidden&&_.requestAnimationFrame?_.requestAnimationFrame(z):_.setTimeout(z,_e.fx.interval),_e.fx.tick())}function V(){return _.setTimeout(function(){Ct=undefined}),Ct=Date.now()}function G(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Ge[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Y(e,t,n){for(var r,i=(Q.tweeners[t]||[]).concat(Q.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function X(e,t,n){var r,i,o,a,s,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,m=e.nodeType&&Qe(e),g=Be.get(e,"fxshow");for(r in n.queue||(null==(a=_e._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,_e.queue(e,"fx").length||a.empty.fire()})}
vendor: 4,863 bytes, line 1
1)),t)if(i=t[r],Dt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||g[r]===undefined)continue;m=!0}f[r]=g&&g[r]||_e.style(e,r)}if((l=!_e.isEmptyObject(t))||!_e.isEmptyObject(f))for(r in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=Be.get(e,"display")),"none"===(u=_e.css(e,"display"))&&(c?u=c:(b([e],!0),c=e.style.display||c,u=_e.css(e,"display"),b([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===_e.css(e,"float")&&(l||(h.done(function(){p.display=c}),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=Be.access(e,"fxshow",{display:c}),o&&(g.hidden=!m),m&&b([e],!0),h.done(function(){for(r in m||b([e]),Be.remove(e,"fxshow"),f)_e.style(e,r,f[r])})),l=Y(m?g[r]:0,r,h),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}function K(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=f(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=_e.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}function Q(o,e,t){var n,a,r=0,i=Q.prefilters.length,s=_e.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var e=Ct||V(),t=Math.max(0,c.startTime+c.duration-e),n=1-(t/c.duration||0),r=0,i=c.tweens.length;r<i;r++)c.tweens[r].run(n);return s.notifyWith(o,[c,n,t]),n<1&&i?t:(i||s.notifyWith(o,[c,1,0]),s.resolveWith(o,[c]),!1)},c=s.promise({elem:o,props:_e.extend({},e),opts:_e.extend(!0,{specialEasing:{},easing:_e.easing._default},t),originalProperties:e,originalOptions:t,startTime:Ct||V(),duration:t.duration,tweens:[],createTween:function(e,t){var n=_e.Tween(o,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var t=0,n=e?c.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)c.tweens[t].run(1);return e?(s.notifyWith(o,[c,1,0]),s.resolveWith(o,[c,e])):s.rejectWith(o,[c,e]),this}}),u=c.props;for(K(u,c.opts.specialEasing);r<i;r++)if(n=Q.prefilters[r].call(c,o,u,c.opts))return be(n.stop)&&(_e._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return _e.map(u,Y,c),be(c.opts.start)&&c.opts.start.call(o,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),_e.fx.timer(_e.extend(l,{elem:o,anim:c,queue:c.opts.queue})),c}function J(e){return(e.match(Me)||[]).join(" ")}function Z(e){return e.getAttribute&&e.getAttribute("class")||""}function ee(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Me)||[]}function te(n,e,r,i){var t;if(Array.isArray(e))_e.each(e,function(e,t){r||Ft.test(n)?i(n,t):te(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==g(e))i(n,e);else for(t in e)te(n+"["+t+"]",e[t],r,i)}function ne(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(Me)||[];if(be(t))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function re(t,i,o,a){function s(e){var r;return l[e]=!0,_e.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||c||l[n]?c?!(r=n):void 0:(i.dataTypes.unshift(n),s(n),!1)}),r}var l={},c=t===Qt;return s(i.dataTypes[0])||!l["*"]&&s("*")}function ie(e,t){var n,r,i=_e.ajaxSettings.flatOptions||{};for(n in t)t[n]!==undefined&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&_e.extend(!0,e,r),e}function oe(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),r===undefined&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}function ae(e,t,n,r){var i,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}var se=[],le=Object.getPrototypeOf,ce=se.slice,ue=se.flat?function(e){return se.flat.call(e)}:function(e){return se.concat.apply([],e)},de=se.push,he=se.indexOf,fe={},pe=fe.toString,me=fe.hasOwnProperty,ge=me.toString,ve=ge.call(Object),ye={},be=function be(e){return"function"==typeof e&&"number"!=typeof e.nodeType},we=function we(e){return null!=e&&e===e.window}
vendor: 20,803 bytes, lines 1-2
1,xe=_.document,Se={type:!0,src:!0,nonce:!0,noModule:!0},Ce="3.5.1",_e=function(e,t){return new _e.fn.init(e,t)};_e.fn=_e.prototype={jquery:Ce,constructor:_e,length:0,toArray:function(){return ce.call(this)},get:function(e){return null==e?ce.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=_e.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return _e.each(this,e)},map:function(n){return this.pushStack(_e.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ce.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_e.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(_e.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:de,sort:se.sort,splice:se.splice},_e.extend=_e.fn.extend=function(e){var t,n,r,i,o,a,s=e||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[l]||{},l++),"object"==typeof s||be(s)||(s={}),l===c&&(s=this,l--);l<c;l++)if(null!=(t=arguments[l]))for(n in t)i=t[n],"__proto__"!==n&&s!==i&&(u&&i&&(_e.isPlainObject(i)||(o=Array.isArray(i)))?(r=s[n],a=o&&!Array.isArray(r)?[]:o||_e.isPlainObject(r)?r:{},o=!1,s[n]=_e.extend(u,a,i)):i!==undefined&&(s[n]=i));return s},_e.extend({expando:"jQuery"+(Ce+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==pe.call(e))&&(!(t=le(e))||"function"==typeof(n=me.call(t,"constructor")&&t.constructor)&&ge.call(n)===ve)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(s(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(s(Object(e))?_e.merge(n,"string"==typeof e?[e]:e):de.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:he.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(s(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return ue(a)},guid:1,support:ye}),"function"==typeof Symbol&&(_e.fn[Symbol.iterator]=se[Symbol.iterator]),_e.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){fe["[object "+t+"]"]=t.toLowerCase()});var Te=function(n){function w(e,t,n,r){var i,o,a,s,l,c,u,d=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&(N(t),t=t||O,P)){if(11!==h&&(l=be.exec(e)))if(i=l[1]){if(9===h){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&F(t,a)&&a.id===i)return n.push(a),n}else{if(l[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&S.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(i)),n}if(S.qsa&&!G[e+" "]&&(!R||!R.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(u=e,d=t,1===h&&(de.test(e)||ue.test(e))){for((d=we.test(e)&&p(t.parentNode)||t)===t&&S.scope||((s=t.getAttribute("id"))?s=s.replace(Ce,_e):t.setAttribute("id",s=q)),o=(c=k(e)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+m(c[o]);u=c.join(",")}try{return Z.apply(n,d.querySelectorAll(u)),n}catch(f){G(e,!0)}finally{s===q&&t.removeAttribute("id")}}}return E(e.replace(le,"$1"),t,n,r)}function e(){function n(e,t){return r.push(e+" ")>C.cacheLength&&delete n[r.shift()],n[e+" "]=t}var r=[];return n}function l(e){return e[q]=!0,e}function i(e){var t=O.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function t(e,t){for(var n=e.split("|"),r=n.length;r--;)C.attrHandle[n[r]]=t}function c(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function r(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function o(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function a(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ke(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function s(a){return l(function(o){return o=+o,l(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function p(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function u(){}function m(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function d(s,e,t){var l=e.dir,c=e.next,u=c||l,d=t&&"parentNode"===u,h=$++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||d)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[W,h];if(n){for(;e=e[l];)if((1===e.nodeType||d)&&s(e,t,n))return!0}else for(;e=e[l];)if(1===e.nodeType||d)if(i=(o=e[q]||(e[q]={}))[e.uniqueID]||(o[e.uniqueID]={}),c&&c===e.nodeName.toLowerCase())e=e[l]||e;else{if((r=i[u])&&r[0]===W&&r[1]===h)return a[2]=r[2];if((i[u]=a)[2]=s(e,t,n))return!0}return!1}}function h(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function y(e,t,n){for(var r=0,i=t.length;r<i;r++)w(e,t[r],n);return n}function x(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function b(f,p,m,g,v,e){return g&&!g[q]&&(g=b(g)),v&&!v[q]&&(v=b(v,e)),l(function(e,t,n,r){var i,o,a,s=[],l=[],c=t.length,u=e||y(p||"*",n.nodeType?[n]:n,[]),d=!f||!e&&p?u:x(u,s,f,n,r),h=m?v||(e?f:c||g)?[]:t:d;if(m&&m(d,h,n,r),g)for(i=x(h,l),g(i,[],n,r),o=i.length;o--;)(a=i[o])&&(h[l[o]]=!(d[l[o]]=a));if(e){if(v||f){if(v){for(i=[],o=h.length;o--;)(a=h[o])&&i.push(d[o]=a);v(null,h=[],i,r)}for(o=h.length;o--;)(a=h[o])&&-1<(i=v?te(e,a):s[o])&&(e[i]=!(t[i]=a))}}else h=x(h===t?h.splice(c,h.length):h),v?v(null,t,h,r):Z.apply(t,h)})}function f(e){for(var i,t,n,r=e.length,o=C.relative[e[0].type],a=o||C.relative[" "],s=o?1:0,l=d(function(e){return e===i},a,!0),c=d(function(e){return-1<te(i,e)},a,!0),u=[function(e,t,n){var r=!o&&(n||t!==A)||((i=t).nodeType?l(e,t,n):c(e,t,n));return i=null,r}];s<r;s++)if(t=C.relative[e[s].type])u=[d(h(u),t)];else{if((t=C.filter[e[s].type].apply(null,e[s].matches))[q]){for(n=++s;n<r&&!C.relative[e[n].type];n++);return b(1<s&&h(u),1<s&&m(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(le,"$1"),t,s<n&&f(e.slice(s,n)),n<r&&f(e=e.slice(n)),n<r&&m(e))}u.push(t)}return h(u)}function g(g,v){var y=0<v.length,b=0<g.length,e=function(e,t,n,r,i){var o,a,s,l=0,c="0",u=e&&[],d=[],h=A,f=e||b&&C.find.TAG("*",i),p=W+=null==h?1:Math.random()||.1,m=f.length;for(i&&(A=t==O||t||i);c!==m&&null!=(o=f[c]);c++){if(b&&o){for(a=0,t||o.ownerDocument==O||(N(o),n=!P);s=g[a++];)if(s(o,t||O,n)){r.push(o);break}i&&(W=p)}y&&((o=!s&&o)&&l--,e&&u.push(o))}if(l+=c,y&&c!==l){for(a=0;s=v[a++];)s(u,d,t,n);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=Q.call(r));d=x(d)}Z.apply(r,d),i&&!e&&0<d.length&&1<l+v.length&&w.uniqueSort(r)}return i&&(W=p,A=h),u};return y?l(e):e}var v,S,C,_,T,k,D,E,A,L,I,N,O,M,P,R,j,H,F,q="sizzle"+1*new Date,B=n.document,W=0,$=0,U=e(),z=e(),V=e(),G=e(),Y=function(e,t){return e===t&&(I=!0),0},X={}.hasOwnProperty,K=[],Q=K.pop,J=K.push,Z=K.push,ee=K.slice,te=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},ne="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",re="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\[\\da-fA-F]{1,6}"+re+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",oe="\\["+re+"*("+ie+")(?:"+re+"*([*^$|!~]?=)"+re+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+re+"*\\]",ae=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",se=new RegExp(re+"+","g"),le=new RegExp("^"+re+"+|((?:^|[^\\\\])(?:\\\\.)*)"+re+"+$","g"),ce=new RegExp("^"+re+"*,"+re+"*"),ue=new RegExp("^"+re+"*([>+~]|"+re+")"+re+"*"),de=new RegExp(re+"|>"),he=new RegExp(ae),fe=new RegExp("^"+ie+"$"),pe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+re+"*(even|odd|(([+-]|)(\\d*)n|)"+re+"*(?:([+-]|)"+re+"*(\\d+)|))"+re+"*\\)|)","i"),bool:new RegExp("^(?:"+ne+")$","i"),needsContext:new RegExp("^"+re+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+re+"*((?:-\\d)?\\d*)"+re+"*\\)|)(?=[^-]|$)","i")},me=/HTML$/i,ge=/^(?:input|select|textarea|button)$/i,ve=/^h\d$/i,ye=/^[^{]+\{\s*\[native \w/,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,we=/[+~]/,xe=new RegExp("\\\\[\\da-fA-F]{1,6}"+re+"?|\\\\([^\\r\\n\\f])","g"),Se=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Ce=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,_e=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Te=function(){N()},ke=d(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Z.apply(K=ee.call(B.childNodes),B.childNodes),K[B.childNodes.length].nodeType}catch(De){Z={apply:K.length?function(e,t){J.apply(e,ee.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}for(v in S=w.support={},T=w.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!me.test(t||n&&n.nodeName||"HTML")},N=w.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!=O&&9===r.nodeType&&r.documentElement&&(M=(O=r).documentElement,P=!T(O),B!=O&&(n=O.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),S.scope=i(function(e){return M.appendChild(e).appendChild(O.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),S.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),S.getElementsByTagName=i(function(e){return e.appendChild(O.createComment("")),!e.getElementsByTagName("*").length}),S.getElementsByClassName=ye.test(O.getElementsByClassName),S.getById=i(function(e){return M.appendChild(e).id=q,!O.getElementsByName||!O.getElementsByName(q).length}),S.getById?(C.filter.ID=function(e){var t=e.replace(xe,Se);return function(e){return e.getAttribute("id")===t}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&P){var n=t.getElementById(e);return n?[n]:[]}}):(C.filter.ID=function(e){var n=e.replace(xe,Se);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&P){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),C.find.TAG=S.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):S.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},C.find.CLASS=S.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&P)return t.getElementsByClassName(e)},j=[],R=[],(S.qsa=ye.test(O.querySelectorAll))&&(i(function(e){var t;M.appendChild(e).innerHTML="<a id='"+q+"'></a><select id='"+q+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+re+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||R.push("\\["+re+"*(?:value|"+ne+")"),e.querySelectorAll("[id~="+q+"-]").length||R.push("~="),(t=O.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||R.push("\\["+re+"*name"+re+"*="+re+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||R.push(":checked"),e.querySelectorAll("a#"+q+"+*").length||R.push(".#.+[+~]"),e.querySelectorAll("\\\f"),R.push("[\\r\\n\\f]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=O.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&R.push("name"+re+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),M.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),R.push(",.*:")})),(S.matchesSelector=ye.test(H=M.matches||M.webkitMatchesSelector||M.mozMatchesSelector||M.oMatchesSelector||M.msMatchesSelector))&&i(function(e){S.disconnectedMatch=H.call(e,"*"),H.call(e,"[s!='']:x"),j.push("!=",ae)}),R=R.length&&new RegExp(R.join("|")),j=j.length&&new RegExp(j.join("|")),t=ye.test(M.compareDocumentPosition),F=t||ye.test(M.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Y=t?function(e,t){if(e===t)return I=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!S.sortDetached&&t.compareDocumentPosition(e)===n?e==O||e.ownerDocument==B&&F(B,e)?-1:t==O||t.ownerDocument==B&&F(B,t)?1:L?te(L,e)-te(L,t):0:4&n?-1:1)}:function(e,t){if(e===t)return I=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==O?-1:t==O?1:i?-1:o?1:L?te(L,e)-te(L,t):0;if(i===o)return c(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?c(a[r],s[r]):a[r]==B?-1:s[r]==B?1:0}),O},w.matches=function(e,t){return w(e,null,null,t)},w.matchesSelector=function(e,t){if(N(e),S.matchesSelector&&P&&!G[t+" "]&&(!j||!j.test(t))&&(!R||!R.test(t)))try{var n=H.call(e,t);if(n||S.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(De){G(t,!0)}return 0<w(t,O,null,[e]).length},w.contains=function(e,t){return(e.ownerDocument||e)!=O&&N(e),F(e,t)},w.attr=function(e,t){(e.ownerDocument||e)!=O&&N(e);var n=C.attrHandle[t.toLowerCase()],r=n&&X.call(C.attrHandle,t.toLowerCase())?n(e,t,!P):undefined;return r!==undefined?r:S.attributes||!P?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},w.escape=function(e){return(e+"").replace(Ce,_e)},w.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},w.uniqueSort=function(e){var t,n=[],r=0,i=0;if(I=!S.detectDuplicates,L=!S.sortStable&&e.slice(0),e.sort(Y),I){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return L=null,e},_=w.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=_(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=_(t);return n},(C=w.selectors={cacheLength:50,createPseudo:l,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xe,Se),e[3]=(e[3]||e[4]||e[5]||"").replace(xe,Se),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||w.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&w.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&he.test(n)&&(t=k(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(xe,Se).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+re+")"+e+"("+re+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=w.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(se," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,e,t,m,g){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),b="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,l,c=v!==y?"nextSibling":"previousSibling",u=e.parentNode,d=b&&e.nodeName.toLowerCase(),h=!n&&!b,f=!1;if(u){if(v){for(;c;){for(a=e;a=a[c];)if(b?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;l=c="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?u.firstChild:u.lastChild],y&&h){for(f=(s=(r=(i=(o=(a=u)[q]||(a[q]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===W&&r[1])&&r[2],a=s&&u.childNodes[s];a=++s&&a&&a[c]||(f=s=0)||l.pop();)if(1===a.nodeType&&++f&&a===e){i[p]=[W,s,f];break}}else if(h&&(f=s=(r=(i=(o=(a=e)[q]||(a[q]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===W&&r[1]),!1===f)for(;(a=++s&&a&&a[c]||(f=s=0)||l.pop())&&((b?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++f||(h&&((i=(o=a[q]||(a[q]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]=[W,f]),a!==e)););return(f-=g)===m||f%m==0&&0<=f/m}}},PSEUDO:function(e,o){var t,a=C.pseudos[e]||C.setFilters[e.toLowerCase()]||w.error("unsupported pseudo: "+e);return a[q]?a(o):1<a.length?(t=[e,e,"",o],C.setFilters.hasOwnProperty(e.toLowerCase())?l(function(e,t){for(var n,r=a(e,o),i=r.length;i--;)e[n=te(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:l(function(e){var r=[],i=[],s=D(e.replace(le,"$1"));return s[q]?l(function(e,t,n,r){for(var i,o=s(e,null,r,[]),a=e.length;a--;)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),
2r[0]=null,!i.pop()}}),has:l(function(t){return function(e){return 0<w(t,e).length}}),contains:l(function(t){return t=t.replace(xe,Se),function(e){return-1<(e.textContent||_(e)).indexOf(t)}}),lang:l(function(n){return fe.test(n||"")||w.error("unsupported lang: "+n),n=n.replace(xe,Se).toLowerCase(),function(e){var t;do{if(t=P?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===M},focus:function(e){return e===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return ve.test(e.nodeName)},input:function(e){return ge.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:s(function(){return[0]}),last:s(function(e,t){return[t-1]}),eq:s(function(e,t,n){return[n<0?n+t:n]}),even:s(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:s(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:s(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:s(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=C.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[v]=r(v);for(v in{submit:!0,reset:!0})C.pseudos[v]=o(v);return u.prototype=C.filters=C.pseudos,C.setFilters=new u,k=w.tokenize=function(e,t){var n,r,i,o,a,s,l,c=z[e+" "];if(c)return t?0:c.slice(0);for(a=e,s=[],l=C.preFilter;a;
vendor: 6,155 bytes, line 2
2){for(o in n&&!(r=ce.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=ue.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(le," ")}),a=a.slice(n.length)),C.filter)!(r=pe[o].exec(a))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?w.error(e):z(e,s).slice(0)},D=w.compile=function(e,t){var n,r=[],i=[],o=V[e+" "];if(!o){for(t||(t=k(e)),n=t.length;n--;)(o=f(t[n]))[q]?r.push(o):i.push(o);(o=V(e,g(i,r))).selector=e}return o},E=w.select=function(e,t,n,r){var i,o,a,s,l,c="function"==typeof e&&e,u=!r&&k(e=c.selector||e);if(n=n||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&P&&C.relative[o[1].type]){if(!(t=(C.find.ID(a.matches[0].replace(xe,Se),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=pe.needsContext.test(e)?0:o.length;i--&&(a=o[i],!C.relative[s=a.type]);)if((l=C.find[s])&&(r=l(a.matches[0].replace(xe,Se),we.test(o[0].type)&&p(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&m(o)))return Z.apply(n,r),n;break}}return(c||D(e,u))(r,t,!P,n,!t||we.test(e)&&p(t.parentNode)||t),n},S.sortStable=q.split("").sort(Y).join("")===q,S.detectDuplicates=!!I,N(),S.sortDetached=i(function(e){return 1&e.compareDocumentPosition(O.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||t("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),S.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||t("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||t(ne,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),w}(_);_e.find=Te,_e.expr=Te.selectors,_e.expr[":"]=_e.expr.pseudos,_e.uniqueSort=_e.unique=Te.uniqueSort,_e.text=Te.getText,_e.isXMLDoc=Te.isXML,_e.contains=Te.contains,_e.escapeSelector=Te.escape;var ke=function(e,t,n){for(var r=[],i=n!==undefined;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&_e(e).is(n))break;r.push(e)}return r},De=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Ee=_e.expr.match.needsContext,Ae=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;_e.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?_e.find.matchesSelector(r,e)?[r]:[]:_e.find.matches(e,_e.grep(t,function(e){return 1===e.nodeType}))},_e.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(_e(e).filter(function(){for(t=0;t<r;t++)if(_e.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)_e.find(e,i[t],n);return 1<r?_e.uniqueSort(n):n},filter:function(e){return this.pushStack(t(this,e||[],!1))},not:function(e){return this.pushStack(t(this,e||[],!0))},is:function(e){return!!t(this,"string"==typeof e&&Ee.test(e)?_e(e):e||[],!1).length}});var Le,Ie=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_e.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Le,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):be(e)?n.ready!==undefined?n.ready(e):e(_e):_e.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:Ie.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof _e?t[0]:t,_e.merge(this,_e.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:xe,!0)),Ae.test(r[1])&&_e.isPlainObject(t))for(r in t)be(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=xe.getElementById(r[2]))&&(this[0]=i,this.length=1),this}).prototype=_e.fn,Le=_e(xe);var Ne=/^(?:parents|prev(?:Until|All))/,Oe={children:!0,contents:!0,next:!0,prev:!0};_e.fn.extend({has:function(e){var t=_e(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(_e.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&_e(e);if(!Ee.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&_e.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?_e.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?he.call(_e(e),this[0]):he.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_e.uniqueSort(_e.merge(this.get(),_e(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_e.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ke(e,"parentNode")},parentsUntil:function(e,t,n){return ke(e,"parentNode",n)},next:function(e){return n(e,"nextSibling")},prev:function(e){return n(e,"previousSibling")},nextAll:function(e){return ke(e,"nextSibling")},prevAll:function(e){return ke(e,"previousSibling")},nextUntil:function(e,t,n){return ke(e,"nextSibling",n)},prevUntil:function(e,t,n){return ke(e,"previousSibling",n)},siblings:function(e){return De((e.parentNode||{}).firstChild,e)},children:function(e){return De(e.firstChild)},contents:function(e){return null!=e.contentDocument&&le(e.contentDocument)?e.contentDocument:(c(e,"template")&&(e=e.content||e),_e.merge([],e.childNodes))}},function(r,i){_e.fn[r]=function(e,t){var n=_e.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=_e.filter(t,n)),1<this.length&&(Oe[r]||_e.uniqueSort(n),Ne.test(r)&&n.reverse()),this.pushStack(n)}});var Me=/[^\x20\t\r\n\f]+/g;_e.Callbacks=function(r){r="string"==typeof r?u(r):_e.extend({},r);var i,e,t,n,o=[],a=[],s=-1,l=function(){for(n=n||r.once,t=i=!0;a.length;s=-1)for(e=a.shift();++s<o.length;)!1===o[s].apply(e[0],e[1])&&r.stopOnFalse&&(s=o.length,e=!1);r.memory||(e=!1),i=!1,n&&(o=e?[]:"")},c={add:function(){return o&&(e&&!i&&(s=o.length-1,a.push(e)),function n(e){_e.each(e,function(e,t){be(t)?r.unique&&c.has(t)||o.push(t):t&&t.length&&"string"!==g(t)&&n(t)})}
vendor: 5,336 bytes, line 2
2(arguments),e&&!i&&l()),this},remove:function(){return _e.each(arguments,function(e,t){for(var n;-1<(n=_e.inArray(t,o,n));)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?-1<_e.inArray(e,o):0<o.length},empty:function(){return o&&(o=[]),this},disable:function(){return n=a=[],o=e="",this},disabled:function(){return!o},lock:function(){return n=a=[],e||i||(o=e=""),this},locked:function(){return!!n},fireWith:function(e,t){return n||(t=[e,(t=t||[]).slice?t.slice():t],a.push(t),i||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!t}};return c},_e.extend({Deferred:function(e){var o=[["notify","progress",_e.Callbacks("memory"),_e.Callbacks("memory"),2],["resolve","done",_e.Callbacks("once memory"),_e.Callbacks("once memory"),0,"resolved"],["reject","fail",_e.Callbacks("once memory"),_e.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return _e.Deferred(function(r){_e.each(o,function(e,t){var n=be(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&be(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){function c(o,a,s,l){return function(){var n=this,r=arguments,t=function(){var e,t;if(!(o<u)){if((e=s.apply(n,r))===a.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,be(t)?l?t.call(e,c(u,a,d,l),c(u,a,h,l)):(u++,t.call(e,c(u,a,d,l),c(u,a,h,l),c(u,a,d,a.notifyWith))):(s!==d&&(n=undefined,r=[e]),(l||a.resolveWith)(n,r))}},i=l?t:function(){try{t()}catch(e){_e.Deferred.exceptionHook&&_e.Deferred.exceptionHook(e,i.stackTrace),u<=o+1&&(s!==h&&(n=undefined,r=[e]),a.rejectWith(n,r))}};o?i():(_e.Deferred.getStackHook&&(i.stackTrace=_e.Deferred.getStackHook()),_.setTimeout(i))}}var u=0;return _e.Deferred(function(e){o[0][3].add(c(0,e,be(r)?r:d,e.notifyWith)),o[1][3].add(c(0,e,be(t)?t:d)),o[2][3].add(c(0,e,be(n)?n:h))}).promise()},promise:function(e){return null!=e?_e.extend(e,a):a}},s={};return _e.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?undefined:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ce.call(arguments),o=_e.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ce.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(l(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||be(i[t]&&i[t].then)))return o.then();for(;t--;)l(i[t],a(t),o.reject);return o.promise()}});var Pe=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_e.Deferred.exceptionHook=function(e,t){_.console&&_.console.warn&&e&&Pe.test(e.name)&&_.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},_e.readyException=function(e){_.setTimeout(function(){throw e})};var Re=_e.Deferred();_e.fn.ready=function(e){return Re.then(e)["catch"](function(e){_e.readyException(e)}),this},_e.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--_e.readyWait:_e.isReady)||(_e.isReady=!0)!==e&&0<--_e.readyWait||Re.resolveWith(xe,[_e])}}),_e.ready.then=Re.then,"complete"===xe.readyState||"loading"!==xe.readyState&&!xe.documentElement.doScroll?_.setTimeout(_e.ready):(xe.addEventListener("DOMContentLoaded",r),_.addEventListener("load",r));var je=function(e,t,n,r,i,o,a){var s=0,l=e.length,c=null==n;if("object"===g(n))for(s in i=!0,n)je(e,t,s,n[s],!0,o,a);else if(r!==undefined&&(i=!0,be(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(_e(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):o},He=/^-ms-/,Fe=/-([a-z])/g,qe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};o.uid=1,o.prototype={cache:function(e){var t=e[this.expando];return t||(t={},qe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[f(t)]=n;else for(r in t)i[f(r)]=t[r];return i},get:function(e,t){return t===undefined?this.cache(e):e[this.expando]&&e[this.expando][f(t)]},access:function(e,t,n){return t===undefined||t&&"string"==typeof t&&n===undefined?this.get(e,t):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,r=e[this.expando];if(r!==undefined){if(t!==undefined){n=(t=Array.isArray(t)?t.map(f):(t=f(t))in r?[t]:t.match(Me)||[]).length;for(;n--;)delete r[t[n]]}(t===undefined||_e.isEmptyObject(r))&&(e.nodeType?e[this.expando]=undefined:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==undefined&&!_e.isEmptyObject(t)}};var Be=new o,We=new o,$e=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ue=/[A-Z]/g;_e.extend({hasData:function(e){return We.hasData(e)||Be.hasData(e)},data:function(e,t,n){return We.access(e,t,n)},removeData:function(e,t){We.remove(e,t)},_data:function(e,t,n){return Be.access(e,t,n)},_removeData:function(e,t){Be.remove(e,t)}}),_e.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;
vendor: 14,083 bytes, line 2
2if(n!==undefined)return"object"==typeof n?this.each(function(){We.set(this,n)}):je(this,function(e){var t;if(o&&e===undefined)return(t=We.get(o,n))!==undefined?t:(t=p(o,n))!==undefined?t:void 0;this.each(function(){We.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(i=We.get(o),1===o.nodeType&&!Be.get(o,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=f(r.slice(5)),p(o,r,i[r]));Be.set(o,"hasDataAttrs",!0)}return i},removeData:function(e){return this.each(function(){We.remove(this,e)})}}),_e.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Be.get(e,t),n&&(!r||Array.isArray(n)?r=Be.access(e,t,_e.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=_e.queue(e,t),r=n.length,i=n.shift(),o=_e._queueHooks(e,t),a=function(){_e.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Be.get(e,n)||Be.access(e,n,{empty:_e.Callbacks("once memory").add(function(){Be.remove(e,[t+"queue",n])})})}}),_e.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?_e.queue(this[0],t):n===undefined?this:this.each(function(){var e=_e.queue(this,t,n);_e._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&_e.dequeue(this,t)})},dequeue:function(e){return this.each(function(){_e.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=_e.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=undefined),e=e||"fx";a--;)(n=Be.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ze=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ve=new RegExp("^(?:([+-])=|)("+ze+")([a-z%]*)$","i"),Ge=["Top","Right","Bottom","Left"],Ye=xe.documentElement,Xe=function(e){return _e.contains(e.ownerDocument,e)},Ke={composed:!0};Ye.getRootNode&&(Xe=function(e){return _e.contains(e.ownerDocument,e)||e.getRootNode(Ke)===e.ownerDocument});var Qe=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&Xe(e)&&"none"===_e.css(e,"display")},Je={};_e.fn.extend({show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Qe(this)?_e(this).show():_e(this).hide()})}});var Ze,et,tt=/^(?:checkbox|radio)$/i,nt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,rt=/^$|^module$|\/(?:java|ecma)script/i;Ze=xe.createDocumentFragment().appendChild(xe.createElement("div")),(et=xe.createElement("input")).setAttribute("type","radio"),et.setAttribute("checked","checked"),et.setAttribute("name","t"),Ze.appendChild(et),ye.checkClone=Ze.cloneNode(!0).cloneNode(!0).lastChild.checked,Ze.innerHTML="<textarea>x</textarea>",ye.noCloneChecked=!!Ze.cloneNode(!0).lastChild.defaultValue,Ze.innerHTML="<option></option>",ye.option=!!Ze.lastChild;var it={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};it.tbody=it.tfoot=it.colgroup=it.caption=it.thead,it.th=it.td,ye.option||(it.optgroup=it.option=[1,"<select multiple='multiple'>","</select>"]);var ot=/<|&#?\w+;/,at=/^key/,st=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lt=/^([^.]*)(?:\.(.+)|)/;_e.event={global:{},add:function(t,e,n,r,i){var o,a,s,l,c,u,d,h,f,p,m,g=Be.get(t);if(qe(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&_e.find.matchesSelector(Ye,i),n.guid||(n.guid=_e.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==_e&&_e.event.triggered!==e.type?_e.event.dispatch.apply(t,arguments):undefined}),c=(e=(e||"").match(Me)||[""]).length;c--;)f=m=(s=lt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=_e.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=_e.event.special[f]||{},u=_e.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&_e.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(f,a)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,u):h.push(u),_e.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,c,u,d,h,f,p,m,g=Be.hasData(e)&&Be.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(Me)||[""]).length;c--;)if(f=m=(s=lt.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=_e.event.special[f]||{},h=l[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)u=h[o],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||_e.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)_e.event.remove(e,f+t[c],n,r,!0);_e.isEmptyObject(l)&&Be.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=_e.event.fix(e),c=(Be.get(this,"events")||Object.create(null))[l.type]||[],u=_e.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=_e.event.handlers.call(this,l,c),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,(r=((_e.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))!==undefined&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)a[i=(r=t[n]).selector+" "]===undefined&&(a[i]=r.needsContext?-1<_e(i,this).index(c):_e.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(t,e){Object.defineProperty(_e.Event.prototype,t,{enumerable:!0,configurable:!0,get:be(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[_e.expando]?e:new _e.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return tt.test(t.type)&&t.click&&c(t,"input")&&A(t,"click",C),!1},trigger:function(e){var t=this||e;return tt.test(t.type)&&t.click&&c(t,"input")&&A(t,"click"),!0},_default:function(e){var t=e.target;return tt.test(t.type)&&t.click&&c(t,"input")&&Be.get(t,"click")||c(t,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},_e.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},_e.Event=function(e,t){if(!(this instanceof _e.Event))return new _e.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&!1===e.returnValue?C:T,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&_e.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[_e.expando]=!0},_e.Event.prototype={constructor:_e.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=C,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=C,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=C,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},_e.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&at.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&t!==undefined&&st.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},_e.event.addProp),_e.each({focus:"focusin",blur:"focusout"},function(e,t){_e.event.special[e]={setup:function(){return A(this,e,k),!1},trigger:function(){return A(this,e),!0},delegateType:t}}),_e.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){_e.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,n=this,r=e.relatedTarget,i=e.handleObj;return r&&(r===n||_e.contains(n,r))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=o),t}}}),_e.fn.extend({on:function(e,t,n,r){return E(this,e,t,n,r)},one:function(e,t,n,r){return E(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,_e(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=undefined),!1===n&&(n=T),this.each(function(){_e.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i]);return this}});var ct=/<script|<style|<link/i,ut=/checked\s*(?:[^=]|=\s*.checked.)/i,dt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;_e.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=Xe(e);if(!(ye.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||_e.isXMLDoc(e)))for(a=w(s),r=0,i=(o=w(e)).length;r<i;r++)M(o[r],a[r]);if(t)if(n)for(o=o||w(e),a=a||w(s),r=0,i=o.length;r<i;r++)O(o[r],a[r]);else O(e,s);return 0<(a=w(s,"script")).length&&x(a,!l&&w(e,"script")),s},cleanData:function(e){for(var t,n,r,i=_e.event.special,o=0;(n=e[o])!==undefined;o++)if(qe(n)){if(t=n[Be.expando]){if(t.events)for(r in t.events)i[r]?_e.event.remove(n,r):_e.removeEvent(n,r,t.handle);n[Be.expando]=undefined}n[We.expando]&&(n[We.expando]=undefined)}}}),_e.fn.extend({detach:function(e){return R(this,e,!0)},remove:function(e){return R(this,e)},text:function(e){return je(this,function(e){return e===undefined?_e.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return P(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||L(this,e).appendChild(e)})},prepend:function(){return P(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=L(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(_e.cleanData(w(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return _e.clone(this,e,t)})},html:function(e){return je(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ct.test(e)&&!it[(nt.exec(e)||["",""])[1].toLowerCase()]){e=_e.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(_e.cleanData(w(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return P(this,arguments,function(e){var t=this.parentNode;_e.inArray(this,n)<0&&(_e.cleanData(w(this)),t&&t.replaceChild(e,this))},n)}}),_e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){_e.fn[e]=function(e){for(var t,n=[],r=_e(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),_e(r[o])[a](t),de.apply(n,t.get());return this.pushStack(n)}});var ht=new RegExp("^("+ze+")(?!px)[a-z%]+$","i"),ft=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=_),t.getComputedStyle(e)},pt=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},mt=new RegExp(Ge.join("|"),"i");!function(){function e(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ye.appendChild(l).appendChild(c);var e=_.getComputedStyle(c);n="1%"!==e.top,s=12===t(e.marginLeft),c.style.right="60%",o=36===t(e.right),r=36===t(e.width),c.style.position="absolute",i=12===t(c.offsetWidth/3),Ye.removeChild(l),c=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,l=xe.createElement("div"),c=xe.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",ye.clearCloneStyle="content-box"===c.style.backgroundClip,_e.extend(ye,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=xe.createElement("table"),t=xe.createElement("tr"),n=xe.createElement("div"),e.style.cssText="position:absolute;
2left:-11111px",t.style.height="1px",n.style.height="9px",Ye.appendChild(e).appendChild(t).appendChild(n),r=_.getComputedStyle(t),a=3<parseInt(r.height),Ye.removeChild(e)),a}}))}();var gt=["Webkit","Moz","ms"],vt=xe.createElement("div").style,yt={},bt=/^(none|table(?!-c[ea]).+)/,wt=/^--/,xt={position:"absolute",visibility:"hidden",display:"block"},St={letterSpacing:"0",fontWeight:"400"};_e.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=j(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=f(t),l=wt.test(t),c=e.style;if(l||(t=q(s)),a=_e.cssHooks[t]||_e.cssHooks[s],n===undefined)return a&&"get"in a&&(i=a.get(e,!1,r))!==undefined?i:c[t];"string"===(o=typeof n)&&(i=Ve.exec(n))&&i[1]&&(n=v(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(_e.cssNumber[s]?"":"px")),ye.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&(n=a.set(e,n,r))===undefined||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,a,s=f(t);return wt.test(t)||(t=q(s)),(a=_e.cssHooks[t]||_e.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),i===undefined&&(i=j(e,t,r)),"normal"===i&&t in St&&(i=St[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),_e.each(["height","width"],function(e,l){_e.cssHooks[l]={get:function(e,t,n){if(t)return!bt.test(_e.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?$(e,l,n):pt(e,xt,function(){return $(e,l,n)})},set:function(e,t,n){var r,i=ft(e),o=!ye.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===_e.css(e,"boxSizing",!1,i),s=n?W(e,l,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(i[l])-W(e,l,"border",!1,i)-.5)),s&&(r=Ve.exec(t))&&"px"!==(r[3]||"px")&&(e.style[l]=t,t=_e.css(e,l)),B(e,t,s)}}}),_e.cssHooks.marginLeft=H(ye.reliableMarginLeft,function(e,t){if(t)return(parseFloat(j(e,"marginLeft"))||e.getBoundingClientRect().left-pt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),_e.each({margin:"",padding:"",border:"Width"},function(i,o){_e.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Ge[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(_e.cssHooks[i+o].set=B)}),_e.fn.extend({css:function(e,t){return je(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=ft(e),i=t.length;a<i;a++)o[t[a]]=_e.css(e,t[a],!1,r);return o}return n!==undefined?_e.style(e,t,n):_e.css(e,t)},e,t,1<arguments.length)}}),(_e.Tween=U).prototype={constructor:U,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||_e.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(_e.cssNumber[n]?"":"px")},cur:function(){var e=U.propHooks[this.prop];return e&&e.get?e.get(this):U.propHooks._default.get(this)},run:function(e){var t,n=U.propHooks[this.prop];return this.options.duration?this.pos=t=_e.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):U.propHooks._default.set(this),this}},U.prototype.init.prototype=U.prototype,U.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=_e.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){_e.fx.step[e.prop]?_e.fx.step[e.prop](e):1!==e.elem.nodeType||!_e.cssHooks[e.prop]&&null==e.elem.style[q(e.prop)]?e.elem[e.prop]=e.now:_e.style(e.elem,e.prop,e.now+e.unit)}}},U.propHooks.scrollTop=U.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_e.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},_e.fx=U.prototype.init,_e.fx.step={};var Ct,_t,Tt,kt,Dt=/^(?:toggle|show|hide)$/,Et=/queueHooks$/;_e.Animation=_e.extend(Q,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return v(n.elem,e,Ve.exec(t),n),n}]},tweener:function(e,t){be(e)?(t=e,e=["*"]):e=e.match(Me);for(var n,r=0,i=e.length;r<i;r++)n=e[r],Q.tweeners[n]=Q.tweeners[n]||[],Q.tweeners[n].unshift(t)},prefilters:[X],prefilter:function(e,t){t?Q.prefilters.unshift(e):Q.prefilters.push(e)}}),_e.speed=function(e,t,n){var r=e&&"object"==typeof e?_e.extend({},e):{complete:n||!n&&t||be(e)&&e,duration:e,easing:n&&t||t&&!be(t)&&t};return _e.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in _e.fx.speeds?r.duration=_e.fx.speeds[r.duration]:r.duration=_e.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){be(r.old)&&r.old.call(this),r.queue&&_e.dequeue(this,r.queue)},r},_e.fn.extend({fadeTo:function(e,t,n,r
vendor: 1,530 bytes, line 3
3){return this.filter(Qe).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=_e.isEmptyObject(t),o=_e.speed(e,n,r),a=function(){var e=Q(this,_e.extend({},t),o);(i||Be.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=undefined),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=_e.timers,r=Be.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&Et.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||_e.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Be.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=_e.timers,o=n?n.length:0;for(t.finish=!0,_e.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),_e.each(["toggle","show","hide"],function(e,r){var i=_e.fn[r];_e.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(G(r,!0),e,t,n)}}),_e.each({slideDown:G("show"),slideUp:G("hide"),slideToggle:G("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){_e.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}
vendor: 23,265 bytes, line 3
3),_e.timers=[],_e.fx.tick=function(){var e,t=0,n=_e.timers;for(Ct=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||_e.fx.stop(),Ct=undefined},_e.fx.timer=function(e){_e.timers.push(e),_e.fx.start()},_e.fx.interval=13,_e.fx.start=function(){_t||(_t=!0,z())},_e.fx.stop=function(){_t=null},_e.fx.speeds={slow:600,fast:200,_default:400},_e.fn.delay=function(r,e){return r=_e.fx&&_e.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=_.setTimeout(e,r);t.stop=function(){_.clearTimeout(n)}})},Tt=xe.createElement("input"),kt=xe.createElement("select").appendChild(xe.createElement("option")),Tt.type="checkbox",ye.checkOn=""!==Tt.value,ye.optSelected=kt.selected,(Tt=xe.createElement("input")).value="t",Tt.type="radio",ye.radioValue="t"===Tt.value;var At,Lt=_e.expr.attrHandle;_e.fn.extend({attr:function(e,t){return je(this,_e.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){_e.removeAttr(this,e)})}}),_e.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?_e.prop(e,t,n):(1===o&&_e.isXMLDoc(e)||(i=_e.attrHooks[t.toLowerCase()]||(_e.expr.match.bool.test(t)?At:undefined)),n!==undefined?null===n?void _e.removeAttr(e,t):i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=_e.find.attr(e,t))?undefined:r)},attrHooks:{type:{set:function(e,t){if(!ye.radioValue&&"radio"===t&&c(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Me);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),At={set:function(e,t,n){return!1===t?_e.removeAttr(e,n):e.setAttribute(n,n),n}},_e.each(_e.expr.match.bool.source.match(/\w+/g),function(e,t){var a=Lt[t]||_e.find.attr;Lt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=Lt[o],Lt[o]=r,r=null!=a(e,t,n)?o:null,Lt[o]=i),r}});var It=/^(?:input|select|textarea|button)$/i,Nt=/^(?:a|area)$/i;_e.fn.extend({prop:function(e,t){return je(this,_e.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[_e.propFix[e]||e]})}}),_e.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_e.isXMLDoc(e)||(t=_e.propFix[t]||t,i=_e.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=_e.find.attr(e,"tabindex");return t?parseInt(t,10):It.test(e.nodeName)||Nt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ye.optSelected||(_e.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),_e.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_e.propFix[this.toLowerCase()]=this}),_e.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,l=0;if(be(t))return this.each(function(e){_e(this).addClass(t.call(this,e,Z(this)))});if((e=ee(t)).length)for(;n=this[l++];)if(i=Z(n),r=1===n.nodeType&&" "+J(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=J(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,l=0;if(be(t))return this.each(function(e){_e(this).removeClass(t.call(this,e,Z(this)))});if(!arguments.length)return this.attr("class","");if((e=ee(t)).length)for(;n=this[l++];)if(i=Z(n),r=1===n.nodeType&&" "+J(i)+" "){for(a=0;o=e[a++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(s=J(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):be(i)?this.each(function(e){_e(this).toggleClass(i.call(this,e,Z(this),t),t)}):this.each(function(){var e,t,n,r;if(a)for(t=0,n=_e(this),r=ee(i);e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else i!==undefined&&"boolean"!==o||((e=Z(this))&&Be.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Be.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+J(Z(n))+" ").indexOf(t))return!0;return!1}});var Ot=/\r/g;_e.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=be(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,_e(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=_e.map(t,function(e){return null==e?"":e+""})),(r=_e.valHooks[this.type]||_e.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&r.set(this,t,"value")!==undefined||(this.value=t))})):t?(r=_e.valHooks[t.type]||_e.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&(e=r.get(t,"value"))!==undefined?e:"string"==typeof(e=t.value)?e.replace(Ot,""):null==e?"":e:void 0}}),_e.extend({valHooks:{option:{get:function(e){var t=_e.find.attr(e,"value");return null!=t?t:J(_e.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!c(n.parentNode,"optgroup"))){if(t=_e(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=_e.makeArray(t),a=i.length;a--;)((r=i[a]).selected=-1<_e.inArray(_e.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),_e.each(["radio","checkbox"],function(){_e.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<_e.inArray(_e(e).val(),t)}},ye.checkOn||(_e.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),ye.focusin="onfocusin"in _;var Mt=/^(?:focusinfocus|focusoutblur)$/,Pt=function(e){e.stopPropagation()};_e.extend(_e.event,{trigger:function(e,t,n,r){var i,o,a,s,l,c,u,d,h=[n||xe],f=me.call(e,"type")?e.type:e,p=me.call(e,"namespace")?e.namespace.split("."):[];if(o=d=a=n=n||xe,3!==n.nodeType&&8!==n.nodeType&&!Mt.test(f+_e.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),l=f.indexOf(":")<0&&"on"+f,(e=e[_e.expando]?e:new _e.Event(f,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=n),t=null==t?[e]:_e.makeArray(t,[e]),u=_e.event.special[f]||{},r||!u.trigger||!1!==u.trigger.apply(n,t))){if(!r&&!u.noBubble&&!we(n)){for(s=u.delegateType||f,Mt.test(s+f)||(o=o.parentNode);o;o=o.parentNode)h.push(o),a=o;a===(n.ownerDocument||xe)&&h.push(a.defaultView||a.parentWindow||_)}for(i=0;(o=h[i++])&&!e.isPropagationStopped();)d=o,e.type=1<i?s:u.bindType||f,(c=(Be.get(o,"events")||Object.create(null))[e.type]&&Be.get(o,"handle"))&&c.apply(o,t),(c=l&&o[l])&&c.apply&&qe(o)&&(e.result=c.apply(o,t),!1===e.result&&e.preventDefault());return e.type=f,r||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(h.pop(),t)||!qe(n)||l&&be(n[f])&&!we(n)&&((a=n[l])&&(n[l]=null),_e.event.triggered=f,e.isPropagationStopped()&&d.addEventListener(f,Pt),n[f](),e.isPropagationStopped()&&d.removeEventListener(f,Pt),_e.event.triggered=undefined,a&&(n[l]=a)),e.result}},simulate:function(e,t,n){var r=_e.extend(new _e.Event,n,{type:e,isSimulated:!0});_e.event.trigger(r,null,t)}}),_e.fn.extend({trigger:function(e,t){return this.each(function(){_e.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return _e.event.trigger(e,t,n,!0)}}),ye.focusin||_e.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){_e.event.simulate(r,e.target,_e.event.fix(e))};_e.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Be.access(e,r);t||e.addEventListener(n,i,!0),Be.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Be.access(e,r)-1;t?Be.access(e,r,t):(e.removeEventListener(n,i,!0),Be.remove(e,r))}}});var Rt=_.location,jt={guid:Date.now()},Ht=/\?/;_e.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new _.DOMParser).parseFromString(e,"text/xml")}catch(n){t=undefined}return t&&!t.getElementsByTagName("parsererror").length||_e.error("Invalid XML: "+e),t};var Ft=/\[\]$/,qt=/\r?\n/g,Bt=/^(?:submit|button|image|reset|file)$/i,Wt=/^(?:input|select|textarea|keygen)/i;_e.param=function(e,t){var n,r=[],i=function(e,t){var n=be(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!_e.isPlainObject(e))_e.each(e,function(){i(this.name,this.value)});else for(n in e)te(n,e[n],t,i);return r.join("&")},_e.fn.extend({serialize:function(){return _e.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=_e.prop(this,"elements");return e?_e.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!_e(this).is(":disabled")&&Wt.test(this.nodeName)&&!Bt.test(e)&&(this.checked||!tt.test(e))}).map(function(e,t){var n=_e(this).val();return null==n?null:Array.isArray(n)?_e.map(n,function(e){return{name:t.name,value:e.replace(qt,"\r\n")}}):{name:t.name,value:n.replace(qt,"\r\n")}}).get()}});var $t=/%20/g,Ut=/#.*$/,zt=/([?&])_=[^&]*/,Vt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Gt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Yt=/^(?:GET|HEAD)$/,Xt=/^\/\//,Kt={},Qt={},Jt="*/".concat("*"),Zt=xe.createElement("a");Zt.href=Rt.href,_e.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Rt.href,type:"GET",isLocal:Gt.test(Rt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_e.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ie(ie(e,_e.ajaxSettings),t):ie(_e.ajaxSettings,e)},ajaxPrefilter:ne(Kt),ajaxTransport:ne(Qt),ajax:function(e,t){function n(e,t,n,r){var i,o,a,s,l,c=t;p||(p=!0,f&&_.clearTimeout(f),u=undefined,h=r||"",S.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=oe(g,S,n)),!i&&-1<_e.inArray("script",g.dataTypes)&&(g.converters["text script"]=function(){}),s=ae(g,s,S,i),i?(g.ifModified&&((l=S.getResponseHeader("Last-Modified"))&&(_e.lastModified[d]=l),(l=S.getResponseHeader("etag"))&&(_e.etag[d]=l)),204===e||"HEAD"===g.type?c="nocontent":304===e?c="notmodified":(c=s.state,o=s.data,i=!(a=s.error))):(a=c,!e&&c||(c="error",e<0&&(e=0))),S.status=e,S.statusText=(t||c)+"",i?b.resolveWith(v,[o,c,S]):b.rejectWith(v,[S,c,a]),S.statusCode(x),x=undefined,m&&y.trigger(i?"ajaxSuccess":"ajaxError",[S,g,i?o:a]),w.fireWith(v,[S,c]),m&&(y.trigger("ajaxComplete",[S,g]),--_e.active||_e.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=undefined),t=t||{};var u,d,h,r,f,i,p,m,o,a,g=_e.ajaxSetup({},t),v=g.context||g,y=g.context&&(v.nodeType||v.jquery)?_e(v):_e.event,b=_e.Deferred(),w=_e.Callbacks("once memory"),x=g.statusCode||{},s={},l={},c="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(p){if(!r)for(r={};t=Vt.exec(h);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return p?h:null},setRequestHeader:function(e,t){return null==p&&(e=l[e.toLowerCase()]=l[e.toLowerCase()]||e,s[e]=t),this},overrideMimeType:function(e){return null==p&&(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(p)S.always(e[S.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||c;return u&&u.abort(t),n(0,t),this}};if(b.promise(S),g.url=((e||g.url||Rt.href)+"").replace(Xt,Rt.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(Me)||[""],null==g.crossDomain){i=xe.createElement("a");try{i.href=g.url,i.href=i.href,g.crossDomain=Zt.protocol+"//"+Zt.host!=i.protocol+"//"+i.host}catch(C){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=_e.param(g.data,g.traditional)),re(Kt,g,t,S),p)return S;for(o in(m=_e.event&&g.global)&&0==_e.active++&&_e.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Yt.test(g.type),d=g.url.replace(Ut,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace($t,"+")):(a=g.url.slice(d.length),g.data&&(g.processData||"string"==typeof g.data)&&(d+=(Ht.test(d)?"&":"?")+g.data,delete g.data),!1===g.cache&&(d=d.replace(zt,"$1"),a=(Ht.test(d)?"&":"?")+"_="+jt.guid+++a),g.url=d+a),g.ifModified&&(_e.lastModified[d]&&S.setRequestHeader("If-Modified-Since",_e.lastModified[d]),_e.etag[d]&&S.setRequestHeader("If-None-Match",_e.etag[d])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&S.setRequestHeader("Content-Type",g.contentType),S.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Jt+"; q=0.01":""):g.accepts["*"]),g.headers)S.setRequestHeader(o,g.headers[o]);if(g.beforeSend&&(!1===g.beforeSend.call(v,S,g)||p))return S.abort();if(c="abort",w.add(g.complete),S.done(g.success),S.fail(g.error),u=re(Qt,g,t,S)){if(S.readyState=1,m&&y.trigger("ajaxSend",[S,g]),p)return S;g.async&&0<g.timeout&&(f=_.setTimeout(function(){S.abort("timeout")},g.timeout));try{p=!1,u.send(s,n)}catch(C){if(p)throw C;n(-1,C)}}else n(-1,"No Transport");return S},getJSON:function(e,t,n){return _e.get(e,t,n,"json")},getScript:function(e,t){return _e.get(e,undefined,t,"script")}}),_e.each(["get","post"],function(e,i){_e[i]=function(e,t,n,r){return be(t)&&(r=r||n,n=t,t=undefined),_e.ajax(_e.extend({url:e,type:i,dataType:r,data:t,success:n},_e.isPlainObject(e)&&e))}}),_e.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),_e._evalUrl=function(e,t,n){return _e.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){_e.globalEval(e,t,n)}})},_e.fn.extend({wrapAll:function(e){var t;return this[0]&&(be(e)&&(e=e.call(this[0])),t=_e(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return be(n)?this.each(function(e){_e(this).wrapInner(n.call(this,e))}):this.each(function(){var e=_e(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=be(t);return this.each(function(e){_e(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){_e(this).replaceWith(this.childNodes)}),this}}),_e.expr.pseudos.hidden=function(e){return!_e.expr.pseudos.visible(e)},_e.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_e.ajaxSettings.xhr=function(){try{return new _.XMLHttpRequest}catch(e){}};var en={0:200,1223:204},tn=_e.ajaxSettings.xhr();ye.cors=!!tn&&"withCredentials"in tn,ye.ajax=tn=!!tn,_e.ajaxTransport(function(o){var a,s;if(ye.cors||tn&&!o.crossDomain)return{send:function(e,t){var n,r=o.xhr();if(r.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)r[n]=o.xhrFields[n];for(n in o.mimeType&&r.overrideMimeType&&r.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);a=function(e){return function(){a&&(a=s=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(en[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=a(),s=r.onerror=r.ontimeout=a("error"),r.onabort!==undefined?r.onabort=s:r.onreadystatechange=function(){4===r.readyState&&_.setTimeout(function(){a&&s()})},a=a("abort");try{r.send(o.hasContent&&o.data||null)}catch(i){if(a)throw i}},abort:function(){a&&a()}}}),_e.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),_e.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return _e.globalEval(e),e}}}),_e.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),_e.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=_e("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),xe.head.appendChild(r[0])},abort:function(){i&&i()}}});var nn,rn=[],on=/(=)\?(?=&|$)|\?\?/;_e.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=rn.pop()||_e.expando+"_"+jt.guid++;return this[e]=!0,e}}),_e.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(on.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&on.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=be(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(on,"$1"+r):!1!==e.jsonp&&(e.url+=(Ht.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||_e.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=_[r],_[r]=function(){o=arguments},n.always(function(){i===undefined?_e(_).removeProp(r):_[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,rn.push(r)),o&&be(i)&&i(o[0]),o=i=undefined}),"script"}),ye.createHTMLDocument=((nn=xe.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===nn.childNodes.length),_e.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(ye.createHTMLDocument?((r=(t=xe.implementation.createHTMLDocument("")).createElement("base")).href=xe.location.href,t.head.appendChild(r)):t=xe),o=!n&&[],(i=Ae.exec(e))?[t.createElement(i[1])]:(i=S([e],t,o),o&&o.length&&_e(o).remove(),_e.merge([],i.childNodes)));var r,i,o},_e.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=J(e.slice(s)),e=e.slice(0,s)),be(t)?(n=t,t=undefined):t&&"object"==typeof t&&(i="POST"),0<a.length&&_e.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?_e("<div>").append(_e.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},_e.expr.pseudos.animated=function(t){return _e.grep(_e.timers,function(e){return t===e.elem}).length},_e.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,c=_e.css(e,"position"),u=_e(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=_e.css(e,"top"),l=_e.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),be(t)&&(t=t.call(e,n,_e.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},_e.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){_e.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===_e.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===_e.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=_e(e).offset()).top+=_e.css(e,"borderTopWidth",!0),i.left+=_e.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-_e.css(r,"marginTop",!0),left:t.left-i.left-_e.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===_e.css(e,"position");)e=e.offsetParent;return e||Ye})}}),_e.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;_e.fn[t]=function(e){return je(this,function(e,t,n){var r;if(we(e)?r=e:9===e.nodeType&&(r=e.defaultView),n===undefined)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),_e.each(["top","left"],function(e,n){_e.cssHooks[n]=H(ye.pixelPosition,function(e,t){if(t)return t=j(e,n),ht.test(t)?_e(e).position()[n]+"px":t})}),_e.each({Height:"height",Width:"width"},function(a,s){_e.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){_e.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return je(this,function(e,t,n){var r;return we(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):n===undefined?_e.css(e,t,i):_e.style(e,t,n,i)},s,n?e:undefined,n)}})}),_e.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){_e.fn[t]=function(e){return this.on(t,e)}}),_e.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),_e.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){_e.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var an=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;_e.proxy=function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),be(e)?(r=ce.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ce.call(arguments)))}).guid=e.guid=e.guid||_e.guid++,i):undefined},_e.holdReady=function(e){e?_e.readyWait++:_e.ready(!0)},_e.isArray=Array.isArray,_e.parseJSON=JSON.parse,_e.nodeName=c,_e.isFunction=be,_e.isWindow=we,_e.camelCase=f,_e.type=g,_e.now=Date.now,_e.isNumeric=function(e){var t=_e.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},_e.trim=function(e){return null==e?"":(e+"").replace(an,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return _e});var sn=_.jQuery,ln=_.$;return _e.noConflict=function(e){return _.$===_e&&(_.$=ln),e&&_.jQuery===_e&&(_.jQuery=sn),_e},void 0===e&&(_.jQuery=_.$=_e),_e}),function(){var e=this;
3(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]"}}).call(this)}).call(e);var y=e.Rails;(function(){(function(){var t;t=null,y.loadCSPNonce=function(){var e;return t=null!=(e=document.querySelector("meta[name=csp-nonce]"))?e.content:void 0},y.cspNonce=function(){return null!=t?t:y.loadCSPNonce()}}).call(this),function(){var r,n;n=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,y.matches=function(e,t){return null!=t.exclude?n.call(e,t.selector)&&!n.call(e,t.exclude):n.call(e,t)},r="_ujsData",y.getData=function(e,t){var n;return null!=(n=e[r])?n[t]:void 0},y.setData=function(e,t,n){return null==e[r]&&(e[r]={}),e[r][t]=n},y.$=function(e){return Array.prototype.slice.call(document.querySelectorAll(e))}}.call(this),function(){var n,r,i;n=y.$,i=y.csrfToken=function(){var e;return(e=document.querySelector("meta[name=csrf-token]"))&&e.content},r=y.csrfParam=function(){var e;return(e=document.querySelector("meta[name=csrf-param]"))&&e.content},y.CSRFProtection=function(e){var t;if(null!=(t=i()))return e.setRequestHeader("X-CSRF-Token",t)},y.refreshCSRFTokens=function(){var e,t;if(t=i(),e=r(),null!=t&&null!=e)return n('form input[name="'+e+'"]').forEach(function(e){return e.value=t})}}.call(this),function(){var i,t,o,n;o=y.matches,"function"!=typeof(i=window.CustomEvent)&&((i=function(e,t){var n;return(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}).prototype=window.Event.prototype,n=i.prototype.preventDefault,i.prototype.preventDefault=function(){var e;return e=n.call(this),this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),e}),t=y.fire=function(e,t,n){var r;return r=new i(t,{bubbles:!0,cancelable:!0,detail:n}),e.dispatchEvent(r),!r.defaultPrevented},y.stopEverything=function(e){return t(e.target,"ujs:everythingStopped"),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},y.delegate=function(e,n,t,r){return e.addEventListener(t,function(e){var t;for(t=e.target;t instanceof Element&&!o(t,n);)t=t.parentNode;if(t instanceof Element&&!1===r.call(t,e))return e.preventDefault(),e.stopPropagation()})}}.call(this),function(){var t,r,e,o,i,a;o=y.cspNonce,r=y.CSRFProtection,y.fire,t={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},y.ajax=function(n){var r;return n=i(n),r=e(n,function(){var e,t;return t=a(null!=(e=r.response)?e:r.responseText,r.getResponseHeader("Content-Type")),2===Math.floor(r.status/100)?"function"==typeof n.success&&n.success(t,r.statusText,r):"function"==typeof n.error&&n.error(t,r.statusText,r),"function"==typeof n.complete?n.complete(r,r.statusText):void 0}),!(null!=n.beforeSend&&!n.beforeSend(r,n))&&(r.readyState===XMLHttpRequest.OPENED?r.send(n.data):void 0)},i=function(e){return e.url=e.url||location.href,e.type=e.type.toUpperCase(),"GET"===e.type&&e.data&&(e.url.indexOf("?")<0?e.url+="?"+e.data:e.url+="&"+e.data),null==t[e.dataType]&&(e.dataType="*"),e.accept=t[e.dataType],"*"!==e.dataType&&(e.accept+=", */*; q=0.01"),e},e=function(e,t){var n;return(n=new XMLHttpRequest).open(e.type,e.url,!0),n.setRequestHeader("Accept",e.accept),"string"==typeof e.data&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),e.crossDomain||(n.setRequestHeader("X-Requested-With","XMLHttpRequest"),r(n)),n.withCredentials=!!e.withCredentials,n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return t(n)},n},a=function(e,t){var n,r;if("string"==typeof e&&"string"==typeof t)if(t.match(/\bjson\b/))try{e=JSON.parse(e)}catch(i){}else if(t.match(/\b(?:java|ecma)script\b/))(r=document.createElement("script")).setAttribute("nonce",o()),r.text=e,document.head.appendChild(r).parentNode.removeChild(r);else if(t.match(/\b(xml|html|svg)\b/)){n=new DOMParser,t=t.replace(/;.+/,"");try{e=n.parseFromString(e,t)}catch(i){}}return e},y.href=function(e){return e.href},y.isCrossDomain=function(e){var t,n;(t=document.createElement("a")).href=location.href,n=document.createElement("a");try{return n.href=e,!((!n.protocol||":"===n.protocol)&&!n.host||t.protocol+"//"+t.host==n.protocol+"//"+n.host)}catch(r){return r,!0}}}.call(this),function(){var i,o;i=y.matches,o=function(e){return Array.prototype.slice.call(e)},y.serializeElement=function(e,t){var n,r;
3return n=[e],i(e,"form")&&(n=o(e.elements)),r=[],n.forEach(function(t){if(t.name&&!t.disabled)return i(t,"select")?o(t.options).forEach(function(e){if(e.selected)return r.push({name:t.name,value:e.value})}):t.checked||-1===["radio","checkbox","submit"].indexOf(t.type)?r.push({name:t.name,value:t.value}):void 0}),t&&r.push(t),r.map(function(e){return null!=e.name?encodeURIComponent(e.name)+"="+encodeURIComponent(e.value):e}).join("&")},y.formElements=function(e,t){return i(e,"form")?o(e.elements).filter(function(e){return i(e,t)}):o(e.querySelectorAll(t))}}.call(this),function(){var t,o,n;o=y.fire,n=y.stopEverything,y.handleConfirm=function(e){if(!t(this))return n(e)},t=function(e){var t,n,r;if(!(r=e.getAttribute("data-confirm")))return!0;if(t=!1,o(e,"confirm")){try{t=confirm(r)}catch(i){}n=o(e,"confirm:complete",[t])}return t&&n}}.call(this),function(){var n,r,i,o,a,s,t,l,c,u,d;c=y.matches,l=y.getData,u=y.setData,d=y.stopEverything,t=y.formElements,y.handleDisabledElement=function(e){if(this.disabled)return d(e)},y.enableElement=function(e){var t;return t=e instanceof Event?e.target:e,c(t,y.linkDisableSelector)?s(t):c(t,y.buttonDisableSelector)||c(t,y.formEnableSelector)?o(t):c(t,y.formSubmitSelector)?a(t):void 0},y.disableElement=function(e){var t;return t=e instanceof Event?e.target:e,c(t,y.linkDisableSelector)?i(t):c(t,y.buttonDisableSelector)||c(t,y.formDisableSelector)?n(t):c(t,y.formSubmitSelector)?r(t):void 0},i=function(e){var t;return null!=(t=e.getAttribute("data-disable-with"))&&(u(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t),e.addEventListener("click",d),u(e,"ujs:disabled",!0)},s=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(e.innerHTML=t,u(e,"ujs:enable-with",null)),e.removeEventListener("click",d),u(e,"ujs:disabled",null)},r=function(e){return t(e,y.formDisableSelector).forEach(n)},n=function(e){var t;return null!=(t=e.getAttribute("data-disable-with"))&&(c(e,"button")?(u(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t):(u(e,"ujs:enable-with",e.value),e.value=t)),e.disabled=!0,u(e,"ujs:disabled",!0)},a=function(e){return t(e,y.formEnableSelector).forEach(o)},o=function(e){
4var t;return null!=(t=l(e,"ujs:enable-with"))&&(c(e,"button")?e.innerHTML=t:e.value=t,u(e,"ujs:enable-with",null)),e.disabled=!1,u(e,"ujs:disabled",null)}}.call(this),function(){var l;l=y.stopEverything,y.handleMethod=function(e){var t,n,r,i,o,a,s;if(s=(a=this).getAttribute("data-method"))return o=y.href(a),n=y.csrfToken(),t=y.csrfParam(),r=document.createElement("form"),i="<input name='_method' value='"+s+"' type='hidden' />",null==t||null==n||y.isCrossDomain(o)||(i+="<input name='"+t+"' value='"+n+"' type='hidden' />"),i+='<input type="submit" />',r.method="post",r.action=o,r.target=a.target,r.innerHTML=i,r.style.display="none",document.body.appendChild(r),r.querySelector('[type="submit"]').click(),l(e)}}.call(this),function(){var l,c,u,d,h,f,p,m,g,v=[].slice;f=y.matches,u=y.getData,m=y.setData,c=y.fire,g=y.stopEverything,l=y.ajax,d=y.isCrossDomain,p=y.serializeElement,h=function(e){var t;return null!=(t=e.getAttribute("data-remote"))&&"false"!==t},y.handleRemote=function(e){var t,n,r,i,o,a,s;return!h(i=this)||(c(i,"ajax:before")?(s=i.getAttribute("data-with-credentials"),r=i.getAttribute("data-type")||"script",f(i,y.formSubmitSelector)?(t=u(i,"ujs:submit-button"),o=u(i,"ujs:submit-button-formmethod")||i.method,a=u(i,"ujs:submit-button-formaction")||i.getAttribute("action")||location.href,"GET"===o.toUpperCase()&&(a=a.replace(/\?.*$/,"")),"multipart/form-data"===i.enctype?(n=new FormData(i),null!=t&&n.append(t.name,t.value)):n=p(i,t),m(i,"ujs:submit-button",null),m(i,"ujs:submit-button-formmethod",null),m(i,"ujs:submit-button-formaction",null)):f(i,y.buttonClickSelector)||f(i,y.inputChangeSelector)?(o=i.getAttribute("data-method"),a=i.getAttribute("data-url"),n=p(i,i.getAttribute("data-params"))):(o=i.getAttribute("data-method"),a=y.href(i),n=i.getAttribute("data-params")),l({type:o||"GET",url:a,data:n,dataType:r,beforeSend:function(e,t){return c(i,"ajax:beforeSend",[e,t])?c(i,"ajax:send",[e]):(c(i,"ajax:stopped"),!1)},success:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],c(i,"ajax:success",e)},error:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],c(i,"ajax:error",e)},complete:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],c(i,"ajax:complete",e)},crossDomain:d(a),withCredentials:null!=s&&"false"!==s}),g(e)):(c(i,"ajax:stopped"),!1))},y.formSubmitButtonClick=function(){var e,t;if(t=(e=this).form)return e.name&&m(t,"ujs:submit-button",{name:e.name,value:e.value}),m(t,"ujs:formnovalidate-button",e.formNoValidate),m(t,"ujs:submit-button-formaction",e.getAttribute("formaction")),m(t,"ujs:submit-button-formmethod",e.getAttribute("formmethod"))},y.preventInsignificantClick=function(e){var t,n,r,i;if(i=((r=this).getAttribute("data-method")||"GET").toUpperCase(),t=r.getAttribute("data-params"),n=(e.metaKey||e.ctrlKey)&&"GET"===i&&!t,null!=e.button&&0!==e.button||n)return e.stopImmediatePropagation()}}.call(this),function(){var e,r,t,n,i,o,a,s,l,c,u,d,h,f,p;if(o=y.fire,t=y.delegate,s=y.getData,e=y.$,p=y.refreshCSRFTokens,r=y.CSRFProtection,h=y.loadCSPNonce,i=y.enableElement,n=y.disableElement,c=y.handleDisabledElement,l=y.handleConfirm,f=y.preventInsignificantClick,d=y.handleRemote,a=y.formSubmitButtonClick,u=y.handleMethod,"undefined"!=typeof jQuery&&null!==jQuery&&null!=jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-u
4js, use rails-ujs only.");jQuery.rails=y,jQuery.ajaxPrefilter(function(e,t,n){if(!e.crossDomain)return r(n)})}y.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){return e(y.formEnableSelector).forEach(function(e){if(s(e,"ujs:disabled"))return i(e)}),e(y.linkDisableSelector).forEach(function(e){if(s(e,"ujs:disabled"))return i(e)})}),t(document,y.linkDisableSelector,"ajax:complete",i),t(document,y.linkDisableSelector,"ajax:stopped",i),t(document,y.buttonDisableSelector,"ajax:complete",i),t(document,y.buttonDisableSelector,"ajax:stopped",i),t(document,y.linkClickSelector,"click",f),t(document,y.linkClickSelector,"click",c),t(document,y.linkClickSelector,"click",l),t(document,y.linkClickSelector,"click",n),t(document,y.linkClickSelector,"click",d),t(document,y.linkClickSelector,"click",u),t(document,y.buttonClickSelector,"click",f),t(document,y.buttonClickSelector,"click",c),t(document,y.buttonClickSelector,"click",l),t(document,y.buttonClickSelector,"click",n),t(document,y.buttonClickSelector,"click",d),t(document,y.inputChangeSelector,"change",c),t(document,y.inputChangeSelector,"change",l),t(document,y.inputChangeSelector,"change",d),t(document,y.formSubmitSelector,"submit",c),t(document,y.formSubmitSelector,"submit",l),t(document,y.formSubmitSelector,"submit",d),t(document,y.formSubmitSelector,"submit",function(e){return setTimeout(function(){return n(e)},13)}),t(document,y.formSubmitSelector,"ajax:send",n),t(document,y.formSubmitSelector,"ajax:complete",i),t(document,y.formInputClickSelector,"click",f),t(document,y.formInputClickSelector,"click",c),t(document,y.formInputClickSelector,"click",l),t(document,y.formInputClickSelector,"click",a),document.addEventListener("DOMContentLoaded",p),document.addEventListener("DOMContentLoaded",h),window._rails_loaded=!0},window.Rails===y&&o(document,"rails:attachBindings")&&y.start()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=y:"function"==typeof define&&define.amd&&define(y)}.call(this),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.ActiveStorage={})}(this,function(e){"use strict";function t(e,t){return e(t={exports:{}},t.exports),t.exports}function a(e){var t=r(document.head,'meta[name="'+e+'"]');if(t)return t.getAttribute("content")}function i(e,t){return"string"==typeof e&&(t=e,e=document),o(e.querySelectorAll(t))}function r(e,t){return"string"==typeof e&&(t=e,e=document),e.querySelector(t)}function l(e,t,n){var r=2<arguments.length&&n!==undefined?arguments[2]:{},i=e.disabled,o=r.bubbles,a=r.cancelable,s=r.detail,l=document.createEvent("Event");l.initEvent(t,o||!0,a||!0),l.detail=s||{};try{e.disabled=!1,e.dispatchEvent(l)}finally{e.disabled=i}return l}function o(e){return Array.isArray(e)?e:Array.from?Array.from(e):[].slice.call(e)}function s(e,t){if(e&&"function"==typeof e[t]){for(var n=arguments.length,r=Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e[t].apply(e,r)}}function n(){I||(I=!0,document.addEventListener("click",c,!0),document.addEventListener("submit",u),document.addEventListener("ajax:before",d))}function c(e){var t=e.target;"INPUT"!=t.tagName&&"BUTTON"!=t.tagName||"submit"!=t.type||!t.form||L.set(t.form,t)}function u(e){h(e)}function d(e){"FORM"==e.target.tagName&&h(e)}function h(e){var t=e.target;if(t.hasAttribute(A))e.preventDefault();else{var n=new E(t),r=n.inputs;r.length&&(e.preventDefault(),t.setAttribute(A,""),r.forEach(p),n.start(function(e){t.removeAttribute(A),e?r.forEach(m):f(t)}))}}function f(e){var t=L.get(e)||r(e,"input[type=submit], button[type=submit]");if(t){var n=t.disabled;t.disabled=!1,t.focus(),t.click(),t.disabled=n}else(t=document.createElement("input")).type="submit",t.style.display="none",e.appendChild(t),t.click(),e.removeChild(t);L["delete"](e)}function p(e){e.disabled=!0}function m(e){e.disabled=!1}function g(){window.ActiveStorage&&n()}var v=t(function(e){var t;t=function(u){function c(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[5]-701558691|0)<<5|n>>>
vendor: 5,796 bytes, line 4
427)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function d(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function h(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function r(e){var t,n,r,i,o,a,s=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=s;t+=64)c(l,d(e.substring(t-64,t)));for(n=(e=e.substring(t-64)).length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)r[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),55<t)for(c(l,r),t=0;t<16;t+=1)r[t]=0;return i=(i=8*s).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(i[2],16),a=parseInt(i[1],16)||0,r[14]=o,r[15]=a,c(l,r),l}function i(e){var t,n,r,i,o,a,s=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=s;t+=64)c(l,h(e.subarray(t-64,t)));for(n=(e=t-64<s?e.subarray(t-64):new Uint8Array(0)).length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)r[t>>2]|=e[t]<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),55<t)for(c(l,r),t=0;t<16;t+=1)r[t]=0;return i=(i=8*s).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(i[2],16),a=parseInt(i[1],16)||0,r[14]=o,r[15]=a,c(l,r),l}function n(e){var t,n="";for(t=0;t<4;t+=1)n+=m[e>>8*t+4&15]+m[e>>8*t&15];return n}function a(e){var t;for(t=0;t<e.length;t+=1)e[t]=n(e[t]);return e.join("")}function o(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function t(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=e.charCodeAt(n);return t?o:i}function s(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function l(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function f(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function p(){this.reset()}var m=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return a(r("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function c(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(e,t){var n,r,i,o,a=this.byteLength,s=c(e,a),l=a;return t!==u&&(l=c(t,a)),l<s?new ArrayBuffer(0):(n=l-s,r=new ArrayBuffer(n),i=new Uint8Array(r),o=new Uint8Array(this,s,n),i.set(o),r)}}(),p.prototype.append=function(e){return this.appendBinary(o(e)),this},p.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,n=this._buff.length;for(t=64;t<=n;t+=64)c(this._hash,d(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},p.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=a(this._hash),e&&(n=f(n)),this.reset(),n},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},p.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(e,t){var n,r,i,o=t;if(e[o>>2]|=128<<(o%4<<3),55<o)for(c(this._hash,e),o=0;o<16;o+=1)e[o]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),r=parseInt(n[2],16),i=parseInt(n[1],16)||0,e[14]=r,e[15]=i,c(this._hash,e)},p.hash=function(e,t){return p.hashBinary(o(e),t)}
4,p.hashBinary=function(e,t){var n=a(r(e));return t?f(n):n},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(e){var t,n=l(this._buff.buffer,e,!0),r=n.length;for(this._length+=e.byteLength,t=64;t<=r;t+=64)c(this._hash,h(n.subarray(t-64,t)));return this._buff=t-64<r?new Uint8Array(n.buffer.slice(t-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=a(this._hash),e&&(n=f(n)),this.reset(),n},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var e=p.prototype.getState.call(this);return e.buff=s(e.buff),e},p.ArrayBuffer.prototype.setState=function(e){return e.buff=t(e.buff,!0),p.prototype.setState.call(this,e)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(e,t){var n=a(i(new Uint8Array(e)));return t?f(n):n},p},e.exports=t()}),y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},b=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),w=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,x=function(){function n(e){y(this,n),this.file=e,this.chunkSize=2097152,this.chunkCount=Math.ceil(this.file.size/this.chunkSize),this.chunkIndex=0}return b(n,null,[{key:"create",value:function r(e,t){new n(e).create(t)}}]),b(n,[{key:"create",value:function r(e){var t=this;this.callback=e,this.md5Buffer=new v.ArrayBuffer,this.fileReader=new FileReader,this.fileReader.addEventListener("load",function(e){return t.fileReaderDidLoad(e)}),this.fileReader.addEventListener("error",function(e){return t.fileReaderDidError(e)}),this.readNextChunk()}},{key:"fileReaderDidLoad",value:function i(e){if(this.md5Buffer.append(e.target.result),!this.readNextChunk()){var t=this.md5Buffer.end(!0),n=btoa(t);this.callback(null,n)}}},{key:"fileReaderDidError",value:function e(){this.callback("Error reading "+this.file.name)}},{key:"readNextChunk",value:function o(){if(this.chunkIndex<this.chunkCount||0==this.chunkIndex&&0==this.chunkCount){var e=this.chunkIndex*this.chunkSize,t=Math.min(e+this.chunkSize,this.file.size),n=w.call(this.file,e,t);return this.fileReader.readAsArrayBuffer(n),this.chunkIndex++,!0}return!1}}]),n}(),S=function(){function i(e,t,n){var r=this;y(this,i),this.file=e,this.attributes={filename:e.name,content_type:e.type,byte_size:e.size,checksum:t},this.xhr=new XMLHttpRequest,this.xhr.open("POST",n,!0),this.xhr.responseType="json",this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("Accept","application/json"),this.xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),this.xhr.setRequestHeader("X-CSRF-Token",a("csrf-token")),this.xhr.addEventListener("load",function(e){return r.requestDidLoad(e)}),this.xhr.addEventListener("error",function(e){return r.requestDidError(e)})}return b(i,[{key:"create",value:function t(e){this.callback=e,this.xhr.send(JSON.stringify({blob:this.attributes}))}},{key:"requestDidLoad",value:function r(e){if(200<=this.status&&this.status<300){var t=this.response,n=t.direct_upload;delete t.direct_upload,this.attributes=t,this.directUploadData=n,this.callback(null,this.toJSON())}else this.requestDidError(e)}},{key:"requestDidError",value:function e(){this.callback('Error creating Blob for "'+this.file.name+'". Status: '+this.status)}},{key:"toJSON",value:function n(){var e={};for(var t in this.attributes)e[t]=this.attributes[t];return e}},{key:"status",get:function o(){return this.xhr.status}},{key:"response",get:function o(){var e=this.xhr,t=e.responseType,n=e.response;return"json"==t?n:JSON.parse(n)}}]),i}(),C=function(){function a(e){var t=this;y(this,a),this.blob=e,this.file=e.file;var n=e.directUploadData,r=n.url,i=n.headers;for(var o in this.xhr=new XMLHttpRequest,this.xhr.open("PUT",r,!0),this.xhr.responseType="text",i)this.xhr.setRequestHeader(o,i[o]);this.xhr.addEventListener("load",function(e){return t.requestDidLoad(e)}),this.xhr.addEventListener("error",function(e){return t.requestDidError(e)})}return b(a,[{key:"create",value:function t(e){this.callback=e,this.xhr.send(this.file.slice())}},{key:"requestDidLoad",value:function i(e){var t=this.xhr,n=t.status,r=t.response;200<=n&&n<300?this.callback(null,r):this.requestDidError(e)}},{key:"requestDidError",value:function e(){this.callback('Error storing "'+this.file.name+'". Status: '+this.xhr.status)}}]),a}(),_=0,T=function(){function r(e,t,n){y(this,r),this.id=++_,this.file=e,this.url=t,this.delegate=n}return b(r,[{key:"create",value:function e(r){var i=this;x.create(this.file,function(e,t){if(e)r(e);else{var n=new S(i.file,t,i.url);s(i.delegate,"directUploadWillCreateBlobWithXHR",n.xhr),n.create(function(e){if(e)r(e);else{var t=new C(n);s(i.delegate,"directUploadWillStoreFileWithXHR",t.xhr),t.create(function(e){e?r(e):r(null,n.toJSON())})}})}})}}]),r}(),k=function(){function n(e,t){y(this,n),this.input=e,this.file=t,this.directUpload=new T(this.file,this.url,this),this.dispatch("initialize")}return b(n,[{key:"start",value:function e(n){var r=this,i=document.createElement("input");i.type="hidden",i.name=this.input.name,this.input.insertAdjacentElement("beforebegin",i),this.dispatch("start"),this.directUpload.create(function(e,t){e?(i.parentNode.removeChild(i),r.dispatchError(e)):i.value=t.signed_id,r.dispatch("end"),n(e)})}},{key:"uploadRequestDidProgress",value:function r(e){var t=e.loaded/e.total*100;t&&this.dispatch("progress",{progress:t})}},{key:"dispatch",value:function i(e,t){var n=1<arguments.length&&t!==undefined?arguments[1]:{};return n.file=this.file,n.id=this.directUpload.id,l(this.input,"direct-upload:"+e,{detail:n})}},{key:"dispatchError",value:function t(e){this.dispatch("error",{error:e}).defaultPrevented||alert(e)}},{key:"directUploadWillCreateBlobWithXHR",value:function o(e){this.dispatch("before-blob-request",{xhr:e})}},{key:"directUploadWillStoreFileWithXHR",value:function a(e){var t=this;this.dispatch("before-storage-request",{xhr:e}),e.upload.addEventListener("progress",function(e){return t.uploadRequestDidProgress(e)})}},{key:"url",get:function s(){return this.input.getAttribute("data-direct-upload-url")}}]),n}(),D="input[type=file][data-direct-upload-url]:not([disabled])",E=function(){function t(e){y(this,t),this.form=e,this.inputs=i(e,D).filter(function(e){return e.files.length})}return b(t,[{key:"start",value:function e(t){var n=this,r=this.createDirectUploadControllers(),i=function i(){var e=r.shift();e?e.start(function(e){e?(t(e),n.dispatch("end")):i()}):(t(),n.dispatch("end"))};this.dispatch("start"),i()}},{key:"createDirectUploadControllers",value:function n(){var r=[];
4return this.inputs.forEach(function(n){o(n.files).forEach(function(e){var t=new k(n,e);r.push(t)})}),r}},{key:"dispatch",value:function r(e,t){var n=1<arguments.length&&t!==undefined?arguments[1]:{};return l(this.form,"direct-uploads:"+e,{detail:n})}}]),t}(),A="data-direct-uploads-processing",L=new WeakMap,I=!1;setTimeout(g,1),e.start=n,e.DirectUpload=T,Object.defineProperty(e,"__esModule",{value:!0})}),function(){var e=this;(function(){(function(){this.Turbolinks={supported:null!=window.history.pushState&&null!=window.requestAnimationFrame&&null!=window.addEventListener,visit:function(e,t){return u.controller.visit(e,t)},clearCache:function(){return u.controller.clearCache()},setProgressBarDelay:function(e){return u.controller.setProgressBarDelay(e)}}}).call(this)}).call(e);var u=e.Turbolinks;(function(){(function(){var n,r,l,e,t,i,o,a,s,c=[].slice;u.copyObject=function(e){var t,n,r;for(t in n={},e)r=e[t],n[t]=r;return n},u.closest=function(e,t){return n.call(e,t)},n=null!=(s=document.documentElement.closest)?s:function(e){var t;for(t=this;t;){if(t.nodeType===Node.ELEMENT_NODE&&r.call(t,e))return t;t=t.parentNode}},u.defer=function(e){return setTimeout(e,1)},u.throttle=function(n){var r;return r=null,function(){var e,t;return e=1<=arguments.length?c.call(arguments,0):[],null!=r?r:r=requestAnimationFrame((t=this,function(){return r=null,n.apply(t,e)}))}},u.dispatch=function(e,t){var n,r,i,o,a,s;return s=(a=null!=t?t:{}
4).target,n=a.cancelable,r=a.data,(i=document.createEvent("Events")).initEvent(e,!0,!0===n),i.data=null!=r?r:{},i.cancelable&&!l&&(o=i.preventDefault,i.preventDefault=function(){return this.defaultPrevented||Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),o.call(this)}),(null!=s?s:document).dispatchEvent(i),i},(a=document.createEvent("Events")).initEvent("test",!0,!0),a.preventDefault(),l=a.defaultPrevented,u.match=function(e,t){return r.call(e,t)},r=null!=(t=null!=(i=null!=(o=(e=document.documentElement).matchesSelector)?o:e.webkitMatchesSelector)?i:e.msMatchesSelector)?t:e.mozMatchesSelector,u.uuid=function(){var e,t,n;for(n="",e=t=1;t<=36;e=++t)n+=9===e||14===e||19===e||24===e?"-":15===e?"4":20===e?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16);return n}}).call(this),function(){u.Location=function(){function e(e){var t,n;null==e&&(e=""),(n=document.createElement("a")).href=e.toString(),this.absoluteURL=n.href,(t=n.hash.length)<2?this.requestURL=this.absoluteURL:(this.requestURL=this.absoluteURL.slice(0,-t),this.anchor=n.hash.slice(1))}var t,n,r,i;return e.wrap=function(e){return e instanceof this?e:new this(e)},e.prototype.getOrigin=function(){return this.absoluteURL.split("/",3).join("/")},e.prototype.getPath=function(){var e,t;return null!=(e=null!=(t=this.requestURL.match(/\/\/[^\/]*(\/[^?;]*)/))?t[1]:void 0)?e:"/"},e.prototype.getPathComponents=function(){return this.getPath().split("/").slice(1)},e.prototype.getLastPathComponent=function(){return this.getPathComponents().slice(-1)[0]},e.prototype.getExtension=function(){var e,t;return null!=(e=null!=(t=this.getLastPathComponent().match(/\.[^.]*$/))?t[0]:void 0)?e:""},e.prototype.isHTML=function(){return this.getExtension().match(/^(?:|\.(?:htm|html|xhtml))$/)},e.prototype.isPrefixedBy=function(e){var t;return t=n(e),this.isEqualTo(e)||i(this.absoluteURL,t)},e.prototype.isEqualTo=function(e){return this.absoluteURL===(null!=e?e.absoluteURL:void 0)},e.prototype.toCacheKey=function(){return this.requestURL},e.prototype.toJSON=function(){return this.absoluteURL},e.prototype.toString=function(){return this.absoluteURL},e.prototype.valueOf=function(){return this.absoluteURL},n=function(e){return t(e.getOrigin()+e.getPath())},t=function(e){return r(e,"/")?e:e+"/"},i=function(e,t){return e.slice(0,t.length)===t},r=function(e,t){return e.slice(-t.length)===t},e}()}.call(this),function(){var r=function(e,t){return function(){return e.apply(t,arguments)}};u.HttpRequest=function(){function e(e,t,n){this.delegate=e,this.requestCanceled=r(this.requestCanceled,this),this.requestTimedOut=r(this.requestTimedOut,this),this.requestFailed=r(this.requestFailed,this),this.requestLoaded=r(this.requestLoaded,this),this.requestProgressed=r(this.requestProgressed,this),this.url=u.Location.wrap(t).requestURL,this.referrer=u.Location.wrap(n).absoluteURL,this.createXHR()}return e.NETWORK_FAILURE=0,e.TIMEOUT_FAILURE=-1,e.timeout=60,e.prototype.send=function(){var e;return this.xhr&&!this.sent?(this.notifyApplicationBeforeRequestStart(),this.setProgress(0),this.xhr.send(),this.sent=!0,"function"==typeof(e=this.delegate).requestStarted?e.requestStarted():void 0):void 0},e.prototype.cancel=function(){return this.xhr&&this.sent?this.xhr.abort():void 0},e.prototype.requestProgressed=function(e){return e.lengthComputable?this.setProgress(e.loaded/e.total):void 0},e.prototype.requestLoaded=function(){return this.endRequest((t=this,function(){var e;return 200<=(e=t.xhr.status)&&e<300?t.delegate.requestCompletedWithResponse(t.xhr.responseText,t.xhr.getResponseHeader("Turbolinks-Location")):(t.failed=!0,t.delegate.requestFailedWithStatusCode(t.xhr.status,t.xhr.responseText))}));var t},e.prototype.requestFailed=function(){return this.endRequest((e=this,function(){return e.failed=!0,e.delegate.requestFailedWithStatusCode(e.constructor.NETWORK_FAILURE)}));var e},e.prototype.requestTimedOut=function(){return this.endRequest((e=this,function(){return e.failed=!0,e.delegate.requestFailedWithStatusCode(e.constructor.TIMEOUT_FAILURE)}));var e},e.prototype.requestCanceled=function(){return this.endRequest()},e.prototype.notifyApplicationBeforeRequestStart=function(){return u.dispatch("turbolinks:request-start",{data:{url:this.url,xhr:this.xhr}})},e.prototype.notifyApplicationAfterRequestEnd=function(){return u.dispatch("turbolinks:request-end",{data:{url:this.url,xhr:this.xhr}})},e.prototype.createXHR=function(){return this.xhr=new XMLHttpRequest,this.xhr.open("GET",this.url,!0),this.xhr.timeout=1e3*this.constructor.timeout,this.xhr.setRequestHeader("Accept","text/html, application/xhtml+xml"),this.xhr.setRequestHeader("Turbolinks-Referrer",this.referrer),this.xhr.onprogress=this.requestProgressed,this.xhr.onload=this.requestLoaded,this.xhr.onerror=this.requestFailed,this.xhr.ontimeout=this.requestTimedOut,this.xhr.onabort=this.requestCanceled},e.prototype.endRequest=function(e){return this.xhr?(this.notifyApplicationAfterRequestEnd(),null!=e&&e.call(this),this.destroy()):void 0},e.prototype.setProgress=function(e){var t;return this.progress=e,"function"==typeof(t=this.delegate).requestProgressed?t.requestProgressed(this.progress):void 0},e.prototype.destroy=function(){var e;return this.setProgress(1),"function"==typeof(e=this.delegate).requestFinished&&e.requestFinished(),this.delegate=null,this.xhr=null},e}()}.call(this),function(){var n=function(e,t){return function(){return e.apply(t,arguments)}};u.ProgressBar=function(){function e(){this.trickle=n(this.trickle,this),this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement()}var t;return t=300,e.defaultCSS=".turbolinks-progress-bar {\n  position: fixed;\n  display: block;\n  top: 0;\n  left: 0;\n  height: 3px;\n  background: #0076ff;\n  z-index: 9999;\n  transition: width "+t+"ms ease-out, opacity "+t/2+"ms "+t/2+"ms ease-in;\n  transform: translate3d(0, 0, 0);\n}",e.prototype.show=function(){return this.visible?void 0:(this.visible=!0,this.installStylesheetElement(),this.installProgressElement(),this.startTrickling())},e.prototype.hide=function(){return this.visible&&!this.hiding?(this.hiding=!0,this.fadeProgressElement((e
4=this,function(){return e.uninstallProgressElement(),e.stopTrickling(),e.visible=!1,e.hiding=!1}))):void 0;var e},e.prototype.setValue=function(e){return this.value=e,this.refresh()},e.prototype.installStylesheetElement=function(){return document.head.insertBefore(this.stylesheetElement,document.head.firstChild)},e.prototype.installProgressElement=function(){return this.progressElement.style.width=0,this.progressElement.style.opacity=1,document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()},e.prototype.fadeProgressElement=function(e){return this.progressElement.style.opacity=0,setTimeout(e,1.5*t)},e.prototype.uninstallProgressElement=function(){return this.progressElement.parentNode?document.documentElement.removeChild(this.progressElement):void 0},e.prototype.startTrickling=function(){return null!=this.trickleInterval?this.trickleInterval:this.trickleInterval=setInterval(this.trickle,t)},e.prototype.stopTrickling=function(){return clearInterval(this.trickleInterval),this.trickleInterval=null},e.prototype.trickle=function(){return this.setValue(this.value+Math.random()/100)},e.prototype.refresh=function(){return requestAnimationFrame((e=this,function(){return e.progressElement.style.width=10+90*e.value+"%"}));var e},e.prototype.createStylesheetElement=function(){var e;return(e=document.createElement("style")).type="text/css",e.textContent=this.constructor.defaultCSS,e},e.prototype.createProgressElement=function(){var e;return(e=document.createElement("div")).className="turbolinks-progress-bar",e},e}()}.call(this),function(){var i=function(e,t){return function(){return e.apply(t,arguments)}};u.BrowserAdapter=function(){function e(e){this.controller=e,this.showProgressBar=i(this.showProgressBar,this),this.progressBar=new u.ProgressBar}var n,r,t;return t=u.HttpRequest,n=t.NETWORK_FAILURE,r=t.TIMEOUT_FAILURE,e.prototype.visitProposedToLocationWithAction=function(e,t){return this.controller.startVisitToLocationWithAction(e,t)},e.prototype.visitStarted=function(e){return e.issueRequest(),e.changeHistory(),e.loadCachedSnapshot()},e.prototype.visitRequestStarted=function(e){return this.progressBar.setValue(0),e.hasCachedSnapshot()||"restore"!==e.action?this.showProgressBarAfterDelay():this.showProgressBar()},e.prototype.visitRequestProgressed=function(e){return this.progressBar.setValue(e.progress)},e.prototype.visitRequestCompleted=function(e){return e.loadResponse()},e.prototype.visitRequestFailedWithStatusCode=function(e,t){switch(t){case n:case r:return this.reload();default:return e.loadResponse()}},e.prototype.visitRequestFinished=function(){return this.hideProgressBar()},e.prototype.visitCompleted=function(e){return e.followRedirect()},e.prototype.pageInvalidated=function(){return this.reload()},e.prototype.showProgressBarAfterDelay=function(){return this.progressBarTimeout=setTimeout(this.showProgressBar,this.controller.progressBarDelay)},e.prototype.showProgressBar=function(){return this.progressBar.show()},e.prototype.hideProgressBar=function(){return this.progressBar.hide(),clearTimeout(this.progressBarTimeout)},e.prototype.reload=function(){return window.location.reload()},e}()}.call(this),function(){var t=function(e,t){return function(){return e.apply(t,arguments)}};u.History=function(){function e(e){this.delegate=e,this.onPageLoad=t(this.onPageLoad,this),this.onPopState=t(this.onPopState,this)}return e.prototype.start=function(){return this.started?void 0:(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0)},e.prototype.stop=function(){return this.started?(
5removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1):void 0},e.prototype.push=function(e,t){return e=u.Location.wrap(e),this.update("push",e,t)},e.prototype.replace=function(e,t){return e=u.Location.wrap(e),this.update("replace",e,t)},e.prototype.onPopState=function(e){var t,n,r,i;return this.shouldHandlePopState()&&(i=null!=(n=e.state)?n.turbolinks:void 0)?(t=u.Location.wrap(window.location),r=i.restorationIdentifier,this.delegate.historyPoppedToLocationWithRestorationIdentifier(t,r)):void 0},e.prototype.onPageLoad=function(){return u.defer((e=this,function(){return e.pageLoaded=!0}));var e},e.prototype.shouldHandlePopState=function(){return this.pageIsLoaded()},e.prototype.pageIsLoaded=function(){return this.pageLoaded||"complete"===document.readyState},e.prototype.update=function(e,t,n){var r;return r={turbolinks:{restorationIdentifier:n}},history[e+"State"](r,null,t)},e}()}.call(this),function(){u.HeadDetails=function(){function e(e){var t,n,r,i,o;for(this.elements={},n=0,i=e.length;n<i;n++)(o=e[n]).nodeType===Node.ELEMENT_NODE&&(r=o.outerHTML,(null!=(t=this.elements)[r]?t[r]:t[r]={type:s(o),tracked:a(o),elements:[]}).elements.push(o))}var o,t,n,a,s;return e.fromHeadElement=function(e){var t;return new this(null!=(t=null!=e?e.childNodes:void 0)?t:[])},e.prototype.hasElementWithKey=function(e){return e in this.elements},e.prototype.getTrackedElementSignature=function(){var n;return function(){var e,t;for(n in t=[],e=this.elements)e[n].tracked&&t.push(n);return t}.call(this).join("")},e.prototype.getScriptElementsNotInDetails=function(e){return this.getElementsMatchingTypeNotInDetails("script",e)},e.prototype.getStylesheetElementsNotInDetails=function(e){return this.getElementsMatchingTypeNotInDetails("stylesheet",e)},e.prototype.getElementsMatchingTypeNotInDetails=function(e,t){var n,r,i,o,a,s;for(r in a=[],i=this.elements)s=(o=i[r]).type,n=o.elements,s!==e||t.hasElementWithKey(r)||a.push(n[0]);return a},e.prototype.getProvisionalElements=function(){var e,t,n,r,i,o,a;for(t in n=[],r=this.elements)a=(i=r[t]).type,o=i.tracked,e=i.elements,null!=a||o?1<e.length&&n.push.apply(n,e.slice(1)):n.push.apply(n,e);return n},e.prototype.getMetaValue=function(e){var t;return null!=(t=this.findMetaElementByName(e))?t.getAttribute("content"):void 0},e.prototype.findMetaElementByName=function(e){var t,n,r,i;for(r in t=void 0,i=this.elements)n=i[r].elements,o(n[0],e)&&(t=n[0]);return t},s=function(e){return t(e)?"script":n(e)?"stylesheet":void 0},a=function(e){return"reload"===e.getAttribute("data-turbolinks-track")},t=function(e){return"script"===e.tagName.toLowerCase()},n=function(e){var t;return"style"===(t=e.tagName.toLowerCase())||"link"===t&&"stylesheet"===e.getAttribute("rel")},o=function(e,t){return"meta"===e.tagName.toLowerCase()&&e.getAttribute("name")===t},e}()}.call(this),function(){u.Snapshot=function(){function e(e,t){this.headDetails=e,this.bodyElement=t}return e.wrap=function(e){return e instanceof this?e:"string"==typeof e?this.fromHTMLString(e):this.fromHTMLElement(e)},e.fromHTMLString=function(e){var t;return(t=document.createElement("html")).innerHTML=e,this.fromHTMLElement(t)},e.fromHTMLElement=function(e){var t,n,r;return n=e.querySelector("head"),t=null!=(r=e.querySelector("body"))?r:document.createElement("body"),new this(u.HeadDetails.fromHeadElement(n),t)},e.prototype.clone=function(){return new this.constructor(this.headDetails,this.bodyElement.cloneNode(!0))},e.prototype.getRootLocation=function(){var e,t;return t=null!=(e=this.getSetting("root"))?e:"/",new u.Location(t)}
5,e.prototype.getCacheControlValue=function(){return this.getSetting("cache-control")},e.prototype.getElementForAnchor=function(e){try{return this.bodyElement.querySelector("[id='"+e+"'], a[name='"+e+"']")}catch(u){}},e.prototype.getPermanentElements=function(){return this.bodyElement.querySelectorAll("[id][data-turbolinks-permanent]")},e.prototype.getPermanentElementById=function(e){return this.bodyElement.querySelector("#"+e+"[data-turbolinks-permanent]")},e.prototype.getPermanentElementsPresentInSnapshot=function(e){var t,n,r,i,o;for(o=[],n=0,r=(i=this.getPermanentElements()).length;n<r;n++)t=i[n],e.getPermanentElementById(t.id)&&o.push(t);return o},e.prototype.findFirstAutofocusableElement=function(){return this.bodyElement.querySelector("[autofocus]")},e.prototype.hasAnchor=function(e){return null!=this.getElementForAnchor(e)},e.prototype.isPreviewable=function(){return"no-preview"!==this.getCacheControlValue()},e.prototype.isCacheable=function(){return"no-cache"!==this.getCacheControlValue()},e.prototype.isVisitable=function(){return"reload"!==this.getSetting("visit-control")},e.prototype.getSetting=function(e){return this.headDetails.getMetaValue("turbolinks-"+e)},e}()}.call(this),function(){var o=[].slice;u.Renderer=function(){function e(){}var n;return e.render=function(e,t){var n,r,i;return r=e,n=t,(i=function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(this,3<=arguments.length?o.call(arguments,2):[],function(){})).delegate=r,i.render(n),i},e.prototype.renderView=function(e){return this.delegate.viewWillRender(this.newBody),e(),this.delegate.viewRendered(this.newBody)},e.prototype.invalidateView=function(){return this.delegate.viewInvalidated()},e.prototype.createScriptElement=function(e){var t;return"false"===e.getAttribute("data-turbolinks-eval")?e:((t=document.createElement("script")).textContent=e.textContent,t.async=!1,n(t,e),t)},n=function(e,t){var n,r,i,o,a,s,l;for(s=[],n=0,r=(o=t.attributes).length;n<r;n++)i=(a=o[n]).name,l=a.value,s.push(e.setAttribute(i,l));return s},e}()}.call(this),function(){var s,l,n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;u.SnapshotRenderer=function(e){function t(e,t,n){this.currentSnapshot=e,this.newSnapshot=t,this.isPreview=n,this.currentHeadDetails=this.currentSnapshot.headDetails,this.newHeadDetails=this.newSnapshot.headDetails,this.currentBody=this.currentSnapshot.bodyElement,this.newBody=this.newSnapshot.bodyElement}return n(t,e),t.prototype.render=function(e){return this.shouldRender()?(this.mergeHead(),this.renderView((t=this,function(){return t.replaceBody(),t.isPreview||t.focusFirstAutofocusableElement(),e()}))):this.invalidateView();var t},t.prototype.mergeHead=function(){return this.copyNewHeadStylesheetElements(),this.copyNewHeadScriptElements(),this.removeCurrentHeadProvisionalElements(),this.copyNewHeadProvisionalElements()},t.prototype.replaceBody=function(){var e;return e=this.relocateCurrentBodyPermanentElements(),this.activateNewBodyScriptElements(),this.assignNewBody(),this.replacePlaceholderElementsWithClonedPermanentElements(e)},t.prototype.shouldRender=function(){return this.newSnapshot.isVisitable()&&this.trackedElementsAreIdentical()},t.prototype.trackedElementsAreIdentical=function(){return this.currentHeadDetails.getTrackedElementSignature()===this.newHeadDetails.getTrackedElementSignature()},t.prototype.copyNewHeadStylesheetElements=function(){var e,t,n,r,i;for(i=[],t=0,n=(r=this.getNewHeadStylesheetElements()).length;t<n;t++)e=r[t],i.push(document.head.appendChild(e));return i},t.prototype.copyNewHeadScriptElements=function(){var e,t,n,r,i;for(i=[],t=0,n=(r=this.getNewHeadScriptElements()).length;t<n;t++)e=r[t],i.push(document.head.appendChild(this.createScriptElement(e)));return i},t.prototype.removeCurrentHeadProvisionalElements=function(){var e,t,n,r,i;for(i=[],t=0,n=(r=this.getCurrentHeadProvisionalElements()).length;t<n;t++)e=r[t],i.push(document.head.removeChild(e));return i},t.prototype.copyNewHeadProvisionalElements=function(){var e,t,n,r,i;for(i=[],t=0,n=(r=this.getNewHeadProvisionalElements()).length;t<n;t++)e=r[t],i.push(document.head.appendChild(e));return i},t.prototype.relocateCurrentBodyPermanentElements=function(){var e,t,n,r,i,o,a;for(a=[],e=0,t=(o=this.getCurrentBodyPermanentElements()).length;e<t;
vendor: 17,313 bytes, line 5
5e++)r=o[e],i=s(r),n=this.newSnapshot.getPermanentElementById(r.id),l(r,i.element),l(n,r),a.push(i);return a},t.prototype.replacePlaceholderElementsWithClonedPermanentElements=function(e){var t,n,r,i,o,a;for(a=[],r=0,i=e.length;r<i;r++)n=(o=e[r]).element,t=o.permanentElement.cloneNode(!0),a.push(l(n,t));return a},t.prototype.activateNewBodyScriptElements=function(){var e,t,n,r,i,o;for(o=[],t=0,r=(i=this.getNewBodyScriptElements()).length;t<r;t++)n=i[t],e=this.createScriptElement(n),o.push(l(n,e));return o},t.prototype.assignNewBody=function(){return document.body=this.newBody},t.prototype.focusFirstAutofocusableElement=function(){var e;return null!=(e=this.newSnapshot.findFirstAutofocusableElement())?e.focus():void 0},t.prototype.getNewHeadStylesheetElements=function(){return this.newHeadDetails.getStylesheetElementsNotInDetails(this.currentHeadDetails)},t.prototype.getNewHeadScriptElements=function(){return this.newHeadDetails.getScriptElementsNotInDetails(this.currentHeadDetails)},t.prototype.getCurrentHeadProvisionalElements=function(){return this.currentHeadDetails.getProvisionalElements()},t.prototype.getNewHeadProvisionalElements=function(){return this.newHeadDetails.getProvisionalElements()},t.prototype.getCurrentBodyPermanentElements=function(){return this.currentSnapshot.getPermanentElementsPresentInSnapshot(this.newSnapshot)},t.prototype.getNewBodyScriptElements=function(){return this.newBody.querySelectorAll("script")},t}(u.Renderer),s=function(e){var t;return(t=document.createElement("meta")).setAttribute("name","turbolinks-permanent-placeholder"),t.setAttribute("content",e.id),{element:t,permanentElement:e}},l=function(e,t){var n;return(n=e.parentNode)?n.replaceChild(t,e):void 0}}.call(this),function(){var n=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;u.ErrorRenderer=function(e){function t(e){var t;(t=document.createElement("html")).innerHTML=e,this.newHead=t.querySelector("head"),this.newBody=t.querySelector("body")}return n(t,e),t.prototype.render=function(e){return this.renderView((t=this,function(){return t.replaceHeadAndBody(),t.activateBodyScriptElements(),e()}));var t},t.prototype.replaceHeadAndBody=function(){var e,t;return t=document.head,e=document.body,t.parentNode.replaceChild(this.newHead,t),e.parentNode.replaceChild(this.newBody,e)},t.prototype.activateBodyScriptElements=function(){var e,t,n,r,i,o;for(o=[],t=0,n=(r=this.getScriptElements()).length;t<n;t++)i=r[t],e=this.createScriptElement(i),o.push(i.parentNode.replaceChild(e,i));return o},t.prototype.getScriptElements=function(){return document.documentElement.querySelectorAll("script")},t}(u.Renderer)}.call(this),function(){u.View=function(){function e(e){this.delegate=e,this.htmlElement=document.documentElement}return e.prototype.getRootLocation=function(){return this.getSnapshot().getRootLocation()},e.prototype.getElementForAnchor=function(e){return this.getSnapshot().getElementForAnchor(e)},e.prototype.getSnapshot=function(){return u.Snapshot.fromHTMLElement(this.htmlElement)},e.prototype.render=function(e,t){var n,r,i;return i=e.snapshot,n=e.error,r=e.isPreview,this.markAsPreview(r),null!=i?this.renderSnapshot(i,r,t):this.renderError(n,t)},e.prototype.markAsPreview=function(e){return e?this.htmlElement.setAttribute("data-turbolinks-preview",""):this.htmlElement.removeAttribute("data-turbolinks-preview")},e.prototype.renderSnapshot=function(e,t,n){return u.SnapshotRenderer.render(this.delegate,n,this.getSnapshot(),u.Snapshot.wrap(e),t)},e.prototype.renderError=function(e,t){return u.ErrorRenderer.render(this.delegate,t,e)},e}()}.call(this),function(){var t=function(e,t){return function(){return e.apply(t,arguments)}};u.ScrollManager=function(){function e(e){this.delegate=e,this.onScroll=t(this.onScroll,this),this.onScroll=u.throttle(this.onScroll)}return e.prototype.start=function(){return this.started?void 0:(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)},e.prototype.stop=function(){return this.started?(removeEventListener("scroll",this.onScroll,!1),this.started=!1):void 0},e.prototype.scrollToElement=function(e){return e.scrollIntoView()},e.prototype.scrollToPosition=function(e){var t,n;return t=e.x,n=e.y,window.scrollTo(t,n)},e.prototype.onScroll=function(){return this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},e.prototype.updatePosition=function(e){var t;return this.position=e,null!=(t=this.delegate)?t.scrollPositionChanged(this.position):void 0},e}()}.call(this),function(){u.SnapshotCache=function(){function e(e){this.size=e,this.keys=[],this.snapshots={}}var r;return e.prototype.has=function(e){return r(e)in this.snapshots},e.prototype.get=function(e){var t;if(this.has(e))return t=this.read(e),this.touch(e),t},e.prototype.put=function(e,t){return this.write(e,t),this.touch(e),t},e.prototype.read=function(e){var t;return t=r(e),this.snapshots[t]},e.prototype.write=function(e,t){var n;return n=r(e),this.snapshots[n]=t},e.prototype.touch=function(e){var t,n;return n=r(e),-1<(t=this.keys.indexOf(n))&&this.keys.splice(t,1),this.keys.unshift(n),this.trim()},e.prototype.trim=function(){var e,t,n,r,i;for(i=[],e=0,n=(r=this.keys.splice(this.size)).length;e<n;e++)t=r[e],i.push(delete this.snapshots[t]);return i},r=function(e){return u.Location.wrap(e).toCacheKey()},e}()}.call(this),function(){var r=function(e,t){return function(){return e.apply(t,arguments)}};u.Visit=function(){function e(e,t,n){this.controller=e,this.action=n,this.performScroll=r(this.performScroll,this),this.identifier=u.uuid(),this.location=u.Location.wrap(t),this.adapter=this.controller.adapter,this.state="initialized",this.timingMetrics={}}var n;return e.prototype.start=function(){return"initialized"===this.state?(this.recordTimingMetric("visitStart"),this.state="started",this.adapter.visitStarted(this)):void 0},e.prototype.cancel=function(){var e;return"started"===this.state?(null!=(e=this.request)&&e.cancel(),this.cancelRender(),this.state="canceled"):void 0},e.prototype.complete=function(){var e;return"started"===this.state?(this.recordTimingMetric("visitEnd"),this.state="completed","function"==typeof(e=this.adapter).visitCompleted&&e.visitCompleted(this),this.controller.visitCompleted(this)):void 0},e.prototype.fail=function(){var e;return"started"===this.state?(this.state="failed","function"==typeof(e=this.adapter).visitFailed?e.visitFailed(this):void 0):void 0},e.prototype.changeHistory=function(){var e,t;return this.historyChanged?void 0:(e=this.location.isEqualTo(this.referrer)?"replace":this.action,t=n(e),this.controller[t](this.location,this.restorationIdentifier),this.historyChanged=!0)},e.prototype.issueRequest=function(){return this.shouldIssueRequest()&&null==this.request?(this.progress=0,this.request=new u.HttpRequest(this,this.location,this.referrer),this.request.send()):void 0},e.prototype.getCachedSnapshot=function(){var e;return!(e=this.controller.getCachedSnapshotForLocation(this.location))||null!=this.location.anchor&&!e.hasAnchor(this.location.anchor)||"restore"!==this.action&&!e.isPreviewable()?void 0:e},e.prototype.hasCachedSnapshot=function(){return null!=this.getCachedSnapshot()},e.prototype.loadCachedSnapshot=function(){var t,n;return(n=this.getCachedSnapshot())?(t=this.shouldIssueRequest(),this.render(function(){var e;return this.cacheSnapshot(),this.controller.render({snapshot:n,isPreview:t},this.performScroll),"function"==typeof(e=this.adapter).visitRendered&&e.visitRendered(this),t?void 0:this.complete()})):void 0},e.prototype.loadResponse=function(){return null!=this.response?this.render(function(){var e,t;return this.cacheSnapshot(),this.request.failed?(this.controller.render({error:this.response},this.performScroll),"function"==typeof(e=this.adapter).visitRendered&&e.visitRendered(this),this.fail()):(this.controller.render({snapshot:this.response},this.performScroll),"function"==typeof(t=this.adapter).visitRendered&&t.visitRendered(this),this.complete())}):void 0},e.prototype.followRedirect=function(){return this.redirectedToLocation&&!this.followedRedirect?(this.location=this.redirectedToLocation,this.controller.replaceHistoryWithLocationAndRestorationIdentifier(this.redirectedToLocation,this.restorationIdentifier),this.followedRedirect=!0):void 0},e.prototype.requestStarted=function(){var e;return this.recordTimingMetric("requestStart"),"function"==typeof(e=this.adapter).visitRequestStarted?e.visitRequestStarted(this):void 0},e.prototype.requestProgressed=function(e){var t;return this.progress=e,"function"==typeof(t=this.adapter).visitRequestProgressed?t.visitRequestProgressed(this):void 0},e.prototype.requestCompletedWithResponse=function(e,t){return this.response=e,null!=t&&(this.redirectedToLocation=u.Location.wrap(t)),this.adapter.visitRequestCompleted(this)},e.prototype.requestFailedWithStatusCode=function(e,t){return this.response=t,this.adapter.visitRequestFailedWithStatusCode(this,e)},e.prototype.requestFinished=function(){var e;return this.recordTimingMetric("requestEnd"),"function"==typeof(e=this.adapter).visitRequestFinished?e.visitRequestFinished(this):void 0},e.prototype.performScroll=function(){return this.scrolled?void 0:("restore"===this.action?this.scrollToRestoredPosition()||this.scrollToTop():this.scrollToAnchor()||this.scrollToTop(),this.scrolled=!0)},e.prototype.scrollToRestoredPosition=function(){var e,t;return null!=(e=null!=(t=this.restorationData)?t.scrollPosition:void 0)?(this.controller.scrollToPosition(e),!0):void 0},e.prototype.scrollToAnchor=function(){return null!=this.location.anchor?(this.controller.scrollToAnchor(this.location.anchor),!0):void 0},e.prototype.scrollToTop=function(){return this.controller.scrollToPosition({x:0,y:0})},e.prototype.recordTimingMetric=function(e){var t;return null!=(t=this.timingMetrics)[e]?t[e]:t[e]=(new Date).getTime()},e.prototype.getTimingMetrics=function(){return u.copyObject(this.timingMetrics)},n=function(e){switch(e){case"replace":return"replaceHistoryWithLocationAndRestorationIdentifier";case"advance":case"restore":return"pushHistoryWithLocationAndRestorationIdentifier"}},e.prototype.shouldIssueRequest=function(){return"restore"!==this.action||!this.hasCachedSnapshot()},e.prototype.cacheSnapshot=function(){return this.snapshotCached?void 0:(this.controller.cacheSnapshot(),this.snapshotCached=!0)},e.prototype.render=function(e){return this.cancelRender(),this.frame=requestAnimationFrame((t=this,function(){return t.frame=null,e.call(t)}));var t},e.prototype.cancelRender=function(){return this.frame?cancelAnimationFrame(this.frame):void 0},e}()}.call(this),function(){var t=function(e,t){return function(){return e.apply(t,arguments)}};u.Controller=function(){function e(){this.clickBubbled=t(this.clickBubbled,this),this.clickCaptured=t(this.clickCaptured,this),this.pageLoaded=t(this.pageLoaded,this),this.history=new u.History(this),this.view=new u.View(this),this.scrollManager=new u.ScrollManager(this),this.restorationData={},this.clearCache(),this.setProgressBarDelay(500)}return e.prototype.start=function(){return u.supported&&!this.started?(addEventListener("click",this.clickCaptured,!0),addEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.start(),this.startHistory(),this.started=!0,this.enabled=!0):void 0},e.prototype.disable=function(){return this.enabled=!1},e.prototype.stop=function(){return this.started?(removeEventListener("click",this.clickCaptured,!0),removeEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.stop(),this.stopHistory(),this.started=!1):void 0},e.prototype.clearCache=function(){return this.cache=new u.SnapshotCache(10)},e.prototype.visit=function(e,t){var n,r;return null==t&&(t={}),e=u.Location.wrap(e),this.applicationAllowsVisitingLocation(e)?this.locationIsVisitable(e)?(n=null!=(r=t.action)?r:"advance",this.adapter.visitProposedToLocationWithAction(e,n)):window.location=e:void 0},e.prototype.startVisitToLocationWithAction=function(e,t,n){var r;return u.supported?(r=this.getRestorationDataForIdentifier(n),this.startVisit(e,t,{restorationData:r})):window.location=e},e.prototype.setProgressBarDelay=function(e){return this.progressBarDelay=e},e.prototype.startHistory=function(){return this.location=u.Location.wrap(window.location),this.restorationIdentifier=u.uuid(),this.history.start(),this.history.replace(this.location,this.restorationIdentifier)},e.prototype.stopHistory=function(){return this.history.stop()},e.prototype.pushHistoryWithLocationAndRestorationIdentifier=function(e,t){return this.restorationIdentifier=t,this.location=u.Location.wrap(e),this.history.push(this.location,this.restorationIdentifier)},e.prototype.replaceHistoryWithLocationAndRestorationIdentifier=function(e,t){return this.restorationIdentifier=t,this.location=u.Location.wrap(e),this.history.replace(this.location,this.restorationIdentifier)},e.prototype.historyPoppedToLocationWithRestorationIdentifier=function(e,t){var n;return this.restorationIdentifier=t,this.enabled?(n=this.getRestorationDataForIdentifier(this.restorationIdentifier),this.startVisit(e,"restore",{restorationIdentifier:this.restorationIdentifier,restorationData:n,historyChanged:!0}),this.location=u.Location.wrap(e)):this.adapter.pageInvalidated()},e.prototype.getCachedSnapshotForLocation=function(e){var t;return null!=(t=this.cache.get(e))?t.clone():void 0},e.prototype.shouldCacheSnapshot=function(){return this.view.getSnapshot().isCacheable()},e.prototype.cacheSnapshot=function(){var e,t,n;return this.shouldCacheSnapshot()?(this.notifyApplicationBeforeCachingSnapshot(),t=this.view.getSnapshot(),e=this.lastRenderedLocation,u.defer((n=this,function(){return n.cache.put(e,t.clone())}))):void 0},e.prototype.scrollToAnchor=function(e){var t;return(t=this.view.getElementForAnchor(e))?this.scrollToElement(t):this.scrollToPosition({x:0,y:0})},e.prototype.scrollToElement=function(e){return this.scrollManager.scrollToElement(e)},e.prototype.scrollToPosition=function(e){return this.scrollManager.scrollToPosition(e)},e.prototype.scrollPositionChanged=function(e){return this.getCurrentRestorationData().scrollPosition=e},e.prototype.render=function(e,t){return this.view.render(e,t)},e.prototype.viewInvalidated=function(){return this.adapter.pageInvalidated()},e.prototype.viewWillRender=function(e){return this.notifyApplicationBeforeRender(e)},e.prototype.viewRendered=function(){return this.lastRenderedLocation=this.currentVisit.location,this.notifyApplicationAfterRender()},e.prototype.pageLoaded=function(){return this.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()},e.prototype.clickCaptured=function(){return removeEventListener("click",this.clickBubbled,!1),addEventListener("click",this.clickBubbled,!1)},e.prototype.clickBubbled=function(e){var t,n,r;return this.enabled&&this.clickEventIsSignificant(e)&&(n=this.getVisitableLinkForNode(e.target))&&(r=this.getVisitableLocationForLink(n))&&this.applicationAllowsFollowingLinkToLocation(n,r)?(e.preventDefault(),t=this.getActionForLink(n),this.visit(r,{action:t})):void 0},e.prototype.applicationAllowsFollowingLinkToLocation=function(e,t){return!this.notifyApplicationAfterClickingLinkToLocation(e,t).defaultPrevented},e.prototype.applicationAllowsVisitingLocation=function(e){return!this.notifyApplicationBeforeVisitingLocation(e).defaultPrevented},e.prototype.notifyApplicationAfterClickingLinkToLocation=function(e,t){return u.dispatch("turbolinks:click",{target:e,data:{url:t.absoluteURL},cancelable:!0})},e.prototype.notifyApplicationBeforeVisitingLocation=function(e){return u.dispatch("turbolinks:before-visit",{data:{url:e.absoluteURL},cancelable:!0})},e.prototype.notifyApplicationAfterVisitingLocation=function(e){return u.dispatch("turbolinks:visit",{data:{url:e.absoluteURL}})},e.prototype.notifyApplicationBeforeCachingSnapshot=function(){return u.dispatch("turbolinks:before-cache")},e.prototype.notifyApplicationBeforeRender=function(e){return u.dispatch("turbolinks:before-render",{data:{newBody:e}})},e.prototype.notifyApplicationAfterRender=function(){return u.dispatch("turbolinks:render")},e.prototype.notifyApplicationAfterPageLoad=function(e){return null==e&&(e={}),u.dispatch("turbolinks:load",{data:{url:this.location.absoluteURL,timing:e}})},e.prototype.startVisit=function(e,t,n){var r;return null!=(r=this.currentVisit)&&r.cancel(),this.currentVisit=this.createVisit(e,t,n),this.currentVisit.start(),this.notifyApplicationAfterVisitingLocation(e)},e.prototype.createVisit=function(e,t,n){var r,i,o,a,s;return a=(i=null!=n?n:{}).restorationIdentifier,o=i.restorationData,r=i.historyChanged,(s=new u.Visit(this,e,t)).restorationIdentifier=null!=a?a:u.uuid(),s.restorationData=u.copyObject(o),s.historyChanged=r,s.referrer=this.location,s},e.prototype.visitCompleted=function(e){return this.notifyApplicationAfterPageLoad(e.getTimingMetrics())},e.prototype.clickEventIsSignificant=function(e){return!(e.defaultPrevented||e.target.isContentEditable||1<e.which||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)},e.prototype.getVisitableLinkForNode=function(e){return this.nodeIsVisitable(e)?u.closest(e,"a[href]:not([target]):not([download])"):void 0},e.prototype.getVisitableLocationForLink=function(e){var t;
5return t=new u.Location(e.getAttribute("href")),this.locationIsVisitable(t)?t:void 0},e.prototype.getActionForLink=function(e){var t;return null!=(t=e.getAttribute("data-turbolinks-action"))?t:"advance"},e.prototype.nodeIsVisitable=function(e){var t;return!(t=u.closest(e,"[data-turbolinks]"))||"false"!==t.getAttribute("data-turbolinks")},e.prototype.locationIsVisitable=function(e){return e.isPrefixedBy(this.view.getRootLocation())&&e.isHTML()},e.prototype.getCurrentRestorationData=function(){return this.getRestorationDataForIdentifier(this.restorationIdentifier)},e.prototype.getRestorationDataForIdentifier=function(e){var t;return null!=(t=this.restorationData)[e]?t[e]:t[e]={}},e}()}.call(this),function(){!function(){var e,t;if((e=t=document.currentScript)&&!t.hasAttribute("data-turbolinks-suppress-warning"))for(;e=e.parentNode;)if(e===document.body)return console.warn("You are loading Turbolinks from a <script> element inside the <body> element. This is probably not what you meant to do!\n\nLoad your application\u2019s JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change.\n\nFor more information, see: https://github.com/turbolinks/turbolinks#working-with-script-elements\n\n\u2014\u2014\nSuppress this warning by adding a `data-turbolinks-suppress-warning` attribute to: %s",t.outerHTML)}()}.call(this),function(){var e,t,n;u.start=function(){return t()?(null==u.controller&&(u.controller=e()),u.controller.start()):void 0},t=function(){return null==window.Turbolinks&&(window.Turbolinks=u),n()},e=function(){var e;return(e=new u.Controller).adapter=new u.BrowserAdapter(e),e},(n=function(){return window.Turbolinks===u})()&&u.start()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=u:"function"==typeof define&&define.amd&&define(u)}.call(this),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((e=e||self).bootstrap={},e.jQuery)}(this,function(e,p){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function l(i){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),t.forEach(function(e){var t,n,r;t=i,r=o[n=e],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r})}return i}function t(e){var t=this,n=!1;return p(this).one(W.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||W.triggerTransitionEnd(t)},e),this}function s(e){return e&&"[object Function]"==={}.toString.call(e)}function w(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function m(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function g(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=w(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:g(m(e))}function v(e){return 11===e?ut:10===e?dt:ut||dt}function O(e){if(!e)return document.documentElement;for(var t=v(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===w(n,"position")?O(n):n:e?e.ownerDocument.documentElement:document.documentElement}function u(e){return null!==e.parentNode?u(e.parentNode):e}function y(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&O(a.firstElementChild)!==a?O(l):l;var c=u(e);return c.host?y(c.host,t):y(e,u(t).host)}function b(e,t){var n="top"===(1<arguments.length&&void 0!==t?arguments[1]:"top")?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"!==r&&"HTML"!==r)return e[n];var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[n]}function d(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function i(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],v(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function x(e){var t=e.body,n=e.documentElement,r=v(10)&&getComputedStyle(n);return{height:i("Height",t,n,r),width:i("Width",t,n,r)}}function S(e){return pt({},e,{right:e.left+e.width,bottom:e.top+e.height})}function M(e){var t={};try{if(v(10)){t=e.getBoundingClientRect();var n=b(e,"top"),r=b(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top}
5,o="HTML"===e.nodeName?x(e.ownerDocument):{},a=o.width||e.clientWidth||i.right-i.left,s=o.height||e.clientHeight||i.bottom-i.top,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=w(e);l-=d(u,"x"),c-=d(u,"y"),i.width-=l,i.height-=c}return S(i)}function C(e,t,n){var r=2<arguments.length&&void 0!==n&&arguments[2],i=v(10),o="HTML"===t.nodeName,a=M(e),s=M(t),l=g(e),c=w(t),u=parseFloat(c.borderTopWidth,10),d=parseFloat(c.borderLeftWidth,10);r&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=S({top:a.top-s.top-u,left:a.left-s.left-d,width:a.width,height:a.height});if(h.marginTop=0,h.marginLeft=0,!i&&o){var f=parseFloat(c.marginTop,10),p=parseFloat(c.marginLeft,10);h.top-=u-f,h.bottom-=u-f,h.left-=d-p,h.right-=d-p,h.marginTop=f,h.marginLeft=p}return(i&&!r?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(h=function(e,t,n){var r=2<arguments.length&&void 0!==n&&arguments[2],i=b(t,"top"),o=b(t,"left"),a=r?-1:1;return e.top+=i*a,e.bottom+=i*a,e.left+=o*a,e.right+=o*a,e}(h,t)),h}function _(e){if(!e||!e.parentElement||v())return document.documentElement;for(var t=e.parentElement;t&&"none"===w(t,"transform");)t=t.parentElement;return t||document.documentElement}function f(r,e,t,n,i){var o=4<arguments.length&&void 0!==i&&arguments[4],a={top:0,left:0},s=o?_(r):y(r,e);if("viewport"===n)a=function(e,t){var n=1<arguments.length&&void 0!==t&&arguments[1],r=e.ownerDocument.documentElement,i=C(e,r),o=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),s=n?0:b(r),l=n?0:b(r,"left");return S({top:s-i.top+i.marginTop,left:l-i.left+i.marginLeft,width:o,height:a})}(s,o);else{var l=void 0;"scrollParent"===n?"BODY"===(l=g(m(e))).nodeName&&(l=r.ownerDocument.documentElement):l="window"===n?r.ownerDocument.documentElement:n;var c=C(l,s,o);if("HTML"!==l.nodeName||function r(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===w(e,"position"))return!0;var n=m(e);return!!n&&r(n)}(s))a=c;else{var u=x(r.ownerDocument),d=u.height,h=u.width
6;a.top+=c.top-c.marginTop,a.bottom=d+c.top,a.left+=c.left-c.marginLeft,a.right=h+c.left}}var f="number"==typeof(t=t||0);return a.left+=f?t:t.left||0,a.top+=f?t:t.top||0,a.right-=f?t:t.right||0,a.bottom-=f?t:t.bottom||0,a}function c(e,t,r,n,i,o){var a=5<arguments.length&&void 0!==o?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=f(r,n,a,i),l={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},c=Object.keys(l).map(function(e){return pt({key:e},l[e],{area:(t=l[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),u=c.filter(function(e){var t=e.width,n=e.height;return t>=r.clientWidth&&n>=r.clientHeight}),d=0<u.length?u[0].key:c[0].key,h=e.split("-")[1];return d+(h?"-"+h:"")}function h(e,t,n,r){var i=3<arguments.length&&void 0!==r?arguments[3]:null;return C(n,i?_(t):y(t,n),i)}function T(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function k(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function D(e,t,n){n=n.split("-")[0];var r=T(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[c]:t[k(s)],i}function P(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function E(e,n,t){return(void 0===t?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=P(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",t))).forEach(function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e["function"]||e.fn;e.enabled&&s(t)&&(n.offsets.popper=S(n.offsets.popper),n.offsets.reference=S(n.offsets.reference),n=t(n,e))}),n}function n(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function R(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if("undefined"!=typeof document.body.style[o])return o}return null}function o(e){var t=e.ownerDocument;return t?t.defaultView:window}function A(a,e,t,n){t.updateBound=n,o(a).addEventListener("resize",t.updateBound,{passive:!0});var r=g(a);return function a(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||a(g(o.parentNode),t,n,r),r.push(o)}(r,"scroll",t.updateBound,t.scrollParents),t.scrollElement=r,t.eventsEnabled=!0,t}function L(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,o(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
6h(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function I(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function N(n,r){Object.keys(r).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&I(r[e])&&(t="px"),n.style[e]=r[e]+t})}function j(e,t,n){var r=P(e,function(e){return e.name===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function H(e,t){var n=1<arguments.length&&void 0!==t&&arguments[1],r=vt.indexOf(e),i=vt.slice(r+1).concat(vt.slice(0,r));return n?i.reverse():i}function F(e,i,o,t){var a=[0,0],s=-1!==["right","left"].indexOf(t),n=e.split(/(\+|\-)/).map(function(e){return e.trim()}),r=n.indexOf(P(n,function(e){return-1!==e.search(/,|\s/)}));n[r]&&-1===n[r].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==r?[n.slice(0,r).concat([n[r].split(l)[0]]),[n[r].split(l)[1]].concat(n.slice(r+1))]:[n];return(c=c.map(function(e,t){var n=(1===t?!s:s)?"height":"width",r=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,r=!0,e):r?(e[e.length-1]+=t,r=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0!==a.indexOf("%"))return"vh"!==a&&"vw"!==a?o:("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return S(s)[t]/100*o}(e,n,i,o)})})).forEach(function(n,r){n.forEach(function(e,t){I(e)&&(a[r]+=e*("-"===n[t-1]?-1:1))})}),a}function q(e,o,t){if(0===e.length)return e;if(t&&"function"==typeof t)return t(e);for(var n=(new window.DOMParser).parseFromString(e,"text/html"),a=Object.keys(o),s=[].slice.call(n.body.querySelectorAll("*")),r=function(e){var t=s[e],n=t.nodeName.toLowerCase();if(-1===a.indexOf(t.nodeName.toLowerCase()))return t.parentNode.removeChild(t),"continue";var r=[].slice.call(t.attributes),i=[].concat(o["*"]||[],o[n]||[]);r.forEach(function(e){(function(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===yn.indexOf(n)||Boolean(e.nodeValue.match(wn)||e.nodeValue.match(xn));for(var r=t.filter(function(e){return e instanceof RegExp}),i=0,o=r.length;i<o;i++)if(n.match(r[i]))return!0;return!1})(e,i)||t.removeAttribute(e.nodeName)})},i=0,l=s.length;i<l;i++)r(i);return n.body.innerHTML}p=p&&p.hasOwnProperty("default")?p["default"]:p;var B="transitionend",W={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=p(e).css("transition-duration"),n=p(e).css("transition-delay"),r=parseFloat(t),i=parseFloat(n);return r||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){p(e).trigger(B)},supportsTransitionEnd:function(){return Boolean(B)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r],o=t[r],a=o&&W.isElement(o)?"element":(s=o,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(i).test(a))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+i+'".')}var s},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"!=typeof e.getRootNode)return e instanceof ShadowRoot?e:e.parentNode?W.findShadowRoot(e.parentNode):null;var t=e.getRootNode();return t instanceof ShadowRoot?t:null}};p.fn.emulateTransitionEnd=t,p.event.special[W.TRANSITION_END]={bindType:B,delegateType:B,handle:function(e){if(p(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var $="alert",U="bs.alert",z="."+U,V=p.fn[$],G={CLOSE:"close"+z,CLOSED:"closed"+z,CLICK_DATA_API:"click"+z+".data-api"},Y="alert",X="fade",K="show",Q=function(){function r(e){this._element=e}var e=r.prototype;return e.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},e.dispose=function(){p.removeData(this._element,U),this._element=null},e._getRootElement=function(e){var t=W.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=p(e).closest("."+Y)[0]),n},e._triggerCloseEvent=function(e){var t=p.Event(G.CLOSE);return p(e).trigger(t),t},e._removeElement=function(t){var n=this;if(p(t).removeClass(K),p(t).hasClass(X)){var e=W.getTransitionDurationFromElement(t);p(t).one(W.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(e)}else this._destroyElement(t)},e._destroyElement=function(e){p(e).detach().trigger(G.CLOSED).remove()},r._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(U);t||(t=new r(this),e.data(U,t)),"close"===n&&t[n](this)})},r._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},a(r,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),r}();p(document).on(G.CLICK_DATA_API,'[data-dismiss="alert"]',Q._handleDismiss(new Q)),p.fn[$]=Q._jQueryInterface,p.fn[$].C
6onstructor=Q,p.fn[$].noConflict=function(){return p.fn[$]=V,Q._jQueryInterface};var J="button",Z="bs.button",ee="."+Z,te=".data-api",ne=p.fn[J],re="active",ie="btn",oe="focus",ae='[data-toggle^="button"]',se='[data-toggle="buttons"]',le='input:not([type="hidden"])',ce=".active",ue=".btn",de={CLICK_DATA_API:"click"+ee+te,FOCUS_BLUR_DATA_API:"focus"+ee+te+" blur"+ee+te},he=function(){function n(e){this._element=e}var e=n.prototype;return e.toggle=function(){var e=!0,t=!0,n=p(this._element).closest(se)[0];if(n){var r=this._element.querySelector(le);if(r){if("radio"===r.type)if(r.checked&&this._element.classList.contains(re))e=!1;else{var i=n.querySelector(ce);i&&p(i).removeClass(re)}if(e){if(r.hasAttribute("disabled")||n.hasAttribute("disabled")||r.classList.contains("disabled")||n.classList.contains("disabled"))return;r.checked=!this._element.classList.contains(re),p(r).trigger("change")}r.focus(),t=!1}}t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(re)),e&&p(this._element).toggleClass(re)},e.dispose=function(){p.removeData(this._element,Z),this._element=null},n._jQueryInterface=function(t){return this.each(function(){var e=p(this).data(Z);e||(e=new n(this),p(this).data(Z,e)),"toggle"===t&&e[t]()})},a(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();p(document).on(de.CLICK_DATA_API,ae,function(e){e.preventDefault();var t=e.target;p(t).hasClass(ie)||(t=p(t).closest(ue)),he._jQueryInterface.call(p(t),"toggle")}).on(de.FOCUS_BLUR_DATA_API,ae,function(e){var t=p(e.target).closest(ue)[0];p(t).toggleClass(oe,/^focus(in)?$/.test(e.type))}),p.fn[J]=he._jQueryInterface,p.fn[J].Constructor=he,p.fn[J].noConflict=function(){return p.fn[J]=ne,he._jQueryInterface};var fe="carousel",pe="bs.carousel",me="."+pe,ge=".data-api",ve=p.fn[fe],ye={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},be={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},we="next",xe="prev",Se="left",Ce="right",_e={SLIDE:"slide"+me,SLID:"slid"+me,KEYDOWN:"keydown"+me,MOUSEENTER:"mouseenter"+me,MOUSELEAVE:"mouseleave"+me,TOUCHSTART:"touchstart"+me,TOUCHMOVE:"touchmove"+me,TOUCHEND:"touchend"+me,POINTERDOWN:"pointerdown"+me,POINTERUP:"pointerup"+me,DRAG_START:"dragstart"+me,LOAD_DATA_API:"load"+me+ge,CLICK_DATA_API:"click"+me+ge},Te="carousel",ke="active",De="slide",Ee="carousel-item-right",Ae="carousel-item-left",Le="carousel-item-next",Ie="carousel-item-prev",Ne="pointer-event",Oe=".active",Me=".active.carousel-item",Pe=".carousel-item",Re=".carousel-item img",je=".carousel-item-next, .carousel-item-prev",He=".carousel-indicators",Fe="[data-slide], [data-slide-to]",qe='[data-ride="carousel"]',Be={TOUCH:"touch",PEN:"pen"},We=function(){function o(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(He),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=o.prototype;return e.next=function(){this._isSliding||this._slide(we)},e.nextWhenVisible=function(){!document.hidden&&p(this._element).is(":visible")&&"hidden"!==p(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(xe)},e.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(je)&&(W.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(e){var t=this;this._activeElement=this._element.querySelector(Me);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)p(this._element).one(_e.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var r=n<e?we:xe;this._slide(r,this._items[e])}},e.dispose=function(){p(this._element).off(me),p.removeData(this._element,pe),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(e){return e=l({},ye,e),W.typeCheckConfig(fe,e,be),e},e._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;0<t&&this.prev(),t<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&p(this._element).on(_e.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&p(this._element).on(_e.MOUSEENTER,function(e){return t.pause(e)}).on(_e.MOUSELEAVE,function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var n=this;if(this._touchSupported){var t=function(e){n._pointerEvent&&Be[e.originalEvent.pointerType.toUpperCase()]?n.touchStartX=e.originalEvent.clientX:n._pointerEvent||(n.touchStartX=e.originalEvent.touches[0].clientX)},r=function(e){n._pointerEvent&&Be[e.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=e.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(e){return n.cycle(e)},500+n._config.interval))};p(this._element.querySelectorAll(Re)).on(_e.DRAG_START,function(e){return e.preventDefault()}),this._pointerEvent?(p(this._element).on(_e.POINTERDOWN,function(e){return t(e)}),p(this._element).on(_e.POINTERUP,function(e){return r(e)}),this._element.classList.add(Ne)):(p(this._element).on(_e.TOUCHSTART,function(e){return t(e)}),p(this._element).on(_e.TOUCHMOVE,function(e){var t;(t=e).originalEvent.touches&&1<t.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=t.originalEvent.touches[0].clientX-n.touchStartX}),p(this._element).on(_e.TOUCHEND,function(e){return r(e)}))}},e._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},e._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(Pe)):[],this._items.indexOf(e)},e._getItemByDirection=function(e,t){var n=e===we,r=e===xe,i=this._getItemIndex(t),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return t;var a=(i+(e===xe?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(this._element.querySelector(Me)),i=p.Event(_e.SLIDE,{relatedTarget:e,direction:t,from:r,to:n});return p(this._element).trigger(i),i},e._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(Oe));p(t).removeClass(ke);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&p(n).addClass(ke)}},e._slide=function(e,t){var n,r,i,o=this,a=this._element.querySelector(Me),s=this._getItemIndex(a),l=t||a&&this._getItemByDirection(e,a),c=this._getItemIndex(l),u=Boolean(this._interval);if(i=e===we?(n=Ae,r=Le,Se):(n=Ee,r=Ie,Ce),l&&p(l).hasClass(ke))this._isSliding=!1;else if(!this._triggerSlideEvent(l,i).isDefaultPrevented()&&a&&l){this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(l);var d=p.Event(_e.SLID,{relatedTarget:l,direction:i,from:s,to:c});if(p(this._element).hasClass(De)){p(l).addClass(r),W.reflow(l),p(a).addClass(n),p(l).addClass(n);var h=parseInt(l.getAttribute("data-interval"),10);this._config.interval=h?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,h):this._config.defaultInterval||this._config.interval;var f=W.getTransitionDurationFromElement(a);p(a).one(W.TRANSITION_END,function(){p(l).removeClass(n+" "+r).addClass(ke),p(a).removeClass(ke+" "+r+" "+n),o._isSliding=!1,setTimeout(function(){return p(o._element).trigger(d)},0)}).emulateTransitionEnd(f)}else p(a).removeClass(ke),p(l).addClass(ke),this._isSliding=!1,p(this._element).trigger(d);u&&this.cycle()}},o._jQueryInterface=function(r){return this.each(function(){var e=p(this).data(pe),t=l({},ye,p(this).data());"object"==typeof r&&(t=l({},t,r));var n="string"==typeof r?r:t.slide;if(e||(e=new o(this,t),p(this).data(pe,e)),"number"==typeof r)e.to(r);else if("string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method n
6amed "'+n+'"');e[n]()}else t.interval&&t.ride&&(e.pause(),e.cycle())})},o._dataApiClickHandler=function(e){var t=W.getSelectorFromElement(this);if(t){var n=p(t)[0];if(n&&p(n).hasClass(Te)){var r=l({},p(n).data(),p(this).data()),i=this.getAttribute("data-slide-to");i&&(r.interval=!1),o._jQueryInterface.call(p(n),r),i&&p(n).data(pe).to(i),e.preventDefault()}}},a(o,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ye}}]),o}();p(document).on(_e.CLICK_DATA_API,Fe,We._dataApiClickHandler),p(window).on(_e.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(qe)),t=0,n=e.length;t<n;t++){var r=p(e[t]);We._jQueryInterface.call(r,r.data())}}),p.fn[fe]=We._jQueryInterface,p.fn[fe].Constructor=We,p.fn[fe].noConflict=function(){return p.fn[fe]=ve,We._jQueryInterface};var $e="collapse",Ue="bs.collapse",ze="."+Ue,Ve=p.fn[$e],Ge={toggle:!0,parent:""},Ye={toggle:"boolean",parent:"(string|element)"},Xe={SHOW:"show"+ze,SHOWN:"shown"+ze,HIDE:"hide"+ze,HIDDEN:"hidden"+ze,CLICK_DATA_API:"click"+ze+".data-api"},Ke="show",Qe="collapse",Je="collapsing",Ze="collapsed",et="width",tt="height",nt=".show, .collapsing",rt='[data-toggle="collapse"]',it=function(){function s(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(rt)),r=0,i=n.length;r<i;r++){var o=n[r],a=W.getSelectorFromElement(o),s=[].slice.call(document.querySelectorAll(a)).filter(function(e){return e===t});null!==a&&0<s.length&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=s.prototype;return e.toggle=function(){p(this._element).hasClass(Ke)?this.hide():this.show()},e.show=function(){var e,t,n=this;if(!(this._isTransitioning||p(this._element).hasClass(Ke)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(nt)).filter(function(e){return"string"==typeof n._config.parent?e.getAttribute("data-parent")===n._config.parent:e.classList.contains(Qe)})).length&&(e=null),e&&(t=p(e).not(this._selector).data(Ue))&&t._isTransitioning))){var r=p.Event(Xe.SHOW);if(p(this._element).trigger(r),!r.isDefaultPrevented()){e&&(s._jQueryInterface.call(p(e).not(this._selector),"hide"),t||p(e).data(Ue,null));var i=this._getDimension();p(this._element).removeClass(Qe).addClass(Je),this._element.style[i]=0,this._triggerArray.length&&p(this._triggerArray).removeClass(Ze).attr("aria-expanded",!0),this.setTransitioning(!0);var o="scroll"+(i[0].toUpperCase()+i.slice(1)),a=W.getTransitionDurationFromElement(this._element);p(this._element).one(W.TRANSITION_END,function(){p(n._element).removeClass(Je).addClass(Qe).addClass(Ke),n._element.style[i]="",n.setTransitioning(!1),p(n._element).trigger(Xe.SHOWN)}).emulateTransitionEnd(a),this._element.style[i]=this._element[o]+"px"}}},e.hide=function(){var e=this;if(!this._isTransitioning&&p(this._element).hasClass(Ke)){var t=p.Event(Xe.HIDE);if(p(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",W.reflow(this._element),p(this._element).addClass(Je).removeClass(Qe).removeClass(Ke);var r=this._triggerArray.length;if(0<r)for(var i=0;i<r;i++){var o=this._triggerArray[i],a=W.getSelectorFromElement(o);null!==a&&(p([].slice.call(document.querySelectorAll(a))).hasClass(Ke)||p(o).addClass(Ze).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="";var s=W.getTransitionDurationFromElement(this._element);p(this._element).one(W.TRANSITION_END,function(){e.setTransitioning(!1),p(e._element).removeClass(Je).addClass(Qe).trigger(Xe.HIDDEN)}).emulateTransitionEnd(s)}}},e.setTransitioning=function(e){this._isTransitioning=e},e.dispose=function(){p.removeData(this._element,Ue),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(e){return(e=l({},Ge,e)).toggle=Boolean(e.toggle),W.typeCheckConfig($e,e,Ye),e},e._getDimension=function(){return p(this._element).hasClass(et)?et:tt},e._getParent=function(){var e,n=this;W.isElement(this._config.parent)?(e=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var t='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',r=[].slice.call(e.querySelectorAll(t));return p(r).each(function(e,t){n._addAriaAndCollapsedClass(s._getTargetFromElement(t),[t])}),e},e._addAriaAndCollapsedClass=function(e,t){var n=p(e).hasClass(Ke);t.length&&p(t).toggleClass(Ze,!n).attr("aria-expanded",n)},s._getTargetFromElement=function(e){var t=W.getSelectorFromElement(e);return t?document.querySelector(t):null},s._jQueryInterface=function(r){return this.each(function(){var e=p(this),t=e.data(Ue),n=l({},Ge,e.data(),"object"==typeof r&&r?r:{});if(!t&&n.toggle&&/show|hide/.test(r)&&(n.toggle=!1),t||(t=new s(this,n),e.data(Ue,t)),"string"==typeof r){if("undefined"==typeof t[r])throw new TypeError('No method n
6amed "'+r+'"');t[r]()}})},a(s,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Ge}}]),s}();p(document).on(Xe.CLICK_DATA_API,rt,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=p(this),t=W.getSelectorFromElement(this),r=[].slice.call(document.querySelectorAll(t));p(r).each(function(){var e=p(this),t=e.data(Ue)?"toggle":n.data();it._jQueryInterface.call(e,t)})}),p.fn[$e]=it._jQueryInterface,p.fn[$e].Constructor=it,p.fn[$e].noConflict=function(){return p.fn[$e]=Ve,it._jQueryInterface};for(var ot="undefined"!=typeof window&&"undefined"!=typeof document,at=["Edge","Trident","Firefox"],st=0,lt=0;lt<at.length;lt+=1)if(ot&&0<=navigator.userAgent.indexOf(at[lt])){st=1;break}var ct=ot&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},st))}},ut=ot&&!(!window.MSInputMethodContext||!document.documentMode),dt=ot&&/MSIE 10/.test(navigator.userAgent),ht=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),ft=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},pt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mt=ot&&/Firefox/i.test(navigator.userAgent),gt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],vt=gt.slice(3),yt="flip",bt="clockwise",wt="counterclockwise",xt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:ft({},l,o[l]),end:ft({},l,o[l]+o[c]-a[c])};e.offsets.popper=pt({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=I(+n)?[+n,0]:F(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,r){var t=r.boundariesElement||O(e.instance.popper);e.instance.reference===t&&(t=O(t));var n=R("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[n];i.top="",i.left="",i[n]="";var l=f(e.instance.popper,e.instance.reference,r.padding,t,e.positionFixed);i.top=o,i.left=a,i[n]=s,r.boundaries=l;var c=r.priority,u=e.offsets.popper,d={primary:function(e){var t=u[e];return u[e]<l[e]&&!r.escapeWithReference&&(t=Math.max(u[e],l[e])),ft({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=u[t];return u[e]>l[e]&&!r.escapeWithReference&&(n=Math.min(u[t],l[e]-("right"===e?u.width:u.height))),ft({},t,n)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=pt({},u,d[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[c]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!j(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left"
6:"top",f=l?"bottom":"right",p=T(r)[c];s[f]-p<a[d]&&(e.offsets.popper[d]-=a[d]-(s[f]-p)),s[d]+p>a[f]&&(e.offsets.popper[d]+=s[d]+p-a[f]),e.offsets.popper=S(e.offsets.popper);var m=s[d]+s[c]/2-p/2,g=w(e.instance.popper),v=parseFloat(g["margin"+u],10),y=parseFloat(g["border"+u+"Width"],10),b=m-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(a[c]-p,b),0),e.arrowElement=r,e.offsets.arrow=(ft(n={},d,Math.round(b)),ft(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(p,m){if(n(p.instance.modifiers,"inner"))return p;if(p.flipped&&p.placement===p.originalPlacement)return p;var g=f(p.instance.popper,p.instance.reference,m.padding,m.boundariesElement,p.positionFixed),v=p.placement.split("-")[0],y=k(v),b=p.placement.split("-")[1]||"",w=[];switch(m.behavior){case yt:w=[v,y];break;case bt:w=H(v);break;case wt:w=H(v,!0);break;default:w=m.behavior}return w.forEach(function(e,t){if(v!==e||w.length===t+1)return p;v=p.placement.split("-")[0],y=k(v);var n,r=p.offsets.popper,i=p.offsets.reference,o=Math.floor,a="left"===v&&o(r.right)>o(i.left)||"right"===v&&o(r.left)<o(i.right)||"top"===v&&o(r.bottom)>o(i.top)||"bottom"===v&&o(r.top)<o(i.bottom),s=o(r.left)<o(g.left),l=o(r.right)>o(g.right),c=o(r.top)<o(g.top),u=o(r.bottom)>o(g.bottom),d="left"===v&&s||"right"===v&&l||"top"===v&&c||"bottom"===v&&u,h=-1!==["top","bottom"].indexOf(v),f=!!m.flipVariations&&(h&&"start"===b&&s||h&&"end"===b&&l||!h&&"start"===b&&c||!h&&"end"===b&&u);(a||d||f)&&(p.flipped=!0,(a||d)&&(v=w[t+1]),f&&(b="end"===(n=b)?"start":"start"===n?"end":n),p.placement=v+(b?"-"+b:""),p.offsets.popper=pt({},p.offsets.popper,D(p.instance.popper,p.offsets.reference,p.placement)),p=E(p.instance.modifiers,p,"flip"))}),p},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=k(t),e.offsets.popper=S(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!j(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=P(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=P(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,s,l,c,u,d,h,f,p,m,g,v,y,b,w=void 0!==o?o:t.gpuAcceleration,x=O(e.instance.popper),S=M(x),C={position:i.position},_=(a=e,s=window.devicePixelRatio<2||!mt,c=(l=a.offsets).popper,u=l.reference,d=Math.round,h=Math.floor,f=function(e){return e},p=d(u.width),m=d(c.width),g=-1!==["left","right"].indexOf(a.placement),v=-1!==a.placement.indexOf("-"),b=s?d:f,{left:(y=s?g||v||p%2==m%2?d:h:f)(p%2==1&&m%2==1&&!v&&s?c.left-1:c.left),top:b(c.top),bottom:b(c.bottom),right:y(c.right)}),T="bottom"===n?"top":"bottom",k="right"===r?"left":"right",D=R("transform"),E=void 0,A=void 0;if(A="bottom"===T?"HTML"===x.nodeName?-x.clientHeight+_.bottom:-S.height+_.bottom:_.top,E="right"===k?"HTML"===x.nodeName?-x.clientWidth+_.right:-S.width+_.right:_.left,w&&D)C[D]="translate3d("+E+"px, "+A+"px, 0)",C[T]=0,C[k]=0,C.willChange="transform";else{var L="bottom"===T?-1:1,I="right"===k?-1:1;C[T]=A*L,C[k]=E*I,C.willChange=T+", "+k}var N={"x-placement":e.placement};return e.attributes=pt({},N,e.attributes),e.styles=pt({},C,e.styles),e.arrowStyles=pt({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return N(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&N(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=h(i,t,e,n.positionFixed),a=c(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),N(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},St=function(){function a(e,t,n){var r=this,i=2<arguments.length&&void 0!==n?arguments[2]:{};!function(e){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=ct(this.update.bind(this)),this.options=pt({},a.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(pt({}
6,a.Defaults.modifiers,i.modifiers)).forEach(function(e){r.options.modifiers[e]=pt({},a.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return pt({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&s(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return ht(a,[{key:"update",value:function(){
7return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=h(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=c(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=D(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=E(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,n(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=A(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return L.call(this)}}]),a}();St.Utils=("undefined"!=typeof window?window:global).PopperUtils,St.placements=gt,St.Defaults=xt;var Ct="dropdown",_t="bs.dropdown",Tt="."+_t,kt=".data-api",Dt=p.fn[Ct],Et=new RegExp("38|40|27"),At={HIDE:"hide"+Tt,HIDDEN:"hidden"+Tt,SHOW:"show"+Tt,SHOWN:"shown"+Tt,CLICK:"click"+Tt,CLICK_DATA_API:"click"+Tt+kt,KEYDOWN_DATA_API:"keydown"+Tt+kt,KEYUP_DATA_API:"keyup"+Tt+kt},Lt="disabled",It="show",Nt="dropup",Ot="dropright",Mt="dropleft",Pt="dropdown-menu-right",Rt="position-static",jt='[data-toggle="dropdown"]',Ht=".dropdown form",Ft=".dropdown-menu",qt=".navbar-nav",Bt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Wt="top-start",$t="top-end",Ut="bottom-start",zt="bottom-end",Vt="right-start",Gt="left-start",Yt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Xt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Kt=function(){function c(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=c.prototype;return e.toggle=function(){if(!this._element.disabled&&!p(this._element).hasClass(Lt)){var e=c._getParentFromElement(this._element),t=p(this._menu).hasClass(It);if(c._clearMenus(),!t){var n={relatedTarget:this._element},r=p.Event(At.SHOW,n);if(p(e).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar){if(void 0===St)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var i=this._element;"parent"===this._config.reference?i=e:W.isElement(this._config.reference)&&(i=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(i=this._config.reference[0])),"scrollParent"!==this._config.boundary&&p(e).addClass(Rt),this._popper=new St(i,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===p(e).closest(qt).length&&p(document.body).children().on("mouseover",null,p.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),p(this._menu).toggleClass(It),p(e).toggleClass(It).trigger(p.Event(At.SHOWN,n))}}}},e.show=function(){if(!(this._element.disabled||p(this._element).hasClass(Lt)||p(this._menu).hasClass(It))){var e={relatedTarget:this._element},t=p.Event(At.SHOW,e),n=c._getParentFromElement(this._element);p(n).trigger(t),t.isDefaultPrevented()||(p(this._menu).toggleClass(It),p(n).toggleClass(It).trigger(p.Event(At.SHOWN,e)))}},e.hide=function(){if(!this._element.disabled&&!p(this._element).hasClass(Lt)&&p(this._menu).hasClass(It)){var e={relatedTarget:this._element},t=p.Event(At.HIDE,e),n=c._getParentFromElement(this._element);p(n).trigger(t),t.isDefaultPrevented()||(p(this._menu).toggleClass(It),p(n).toggleClass(It).trigger(p.Event(At.HIDDEN,e)))}},e.dispose=function(){p.removeData(this._element,_t),p(this._element).off(Tt),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;p(this._element).on(At.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle(
7)})},e._getConfig=function(e){return e=l({},this.constructor.Default,p(this._element).data(),e),W.typeCheckConfig(Ct,e,this.constructor.DefaultType),e},e._getMenuElement=function(){if(!this._menu){var e=c._getParentFromElement(this._element);e&&(this._menu=e.querySelector(Ft))}return this._menu},e._getPlacement=function(){var e=p(this._element.parentNode),t=Ut;return e.hasClass(Nt)?(t=Wt,p(this._menu).hasClass(Pt)&&(t=$t)):e.hasClass(Ot)?t=Vt:e.hasClass(Mt)?t=Gt:p(this._menu).hasClass(Pt)&&(t=zt),t},e._detectNavbar=function(){return 0<p(this._element).closest(".navbar").length},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),e},c._jQueryInterface=function(t){return this.each(function(){var e=p(this).data(_t);if(e||(e=new c(this,"object"==typeof t?t:null),p(this).data(_t,e)),"string"==typeof t){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},c._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var t=[].slice.call(document.querySelectorAll(jt)),n=0,r=t.length;n<r;n++){var i=c._getParentFromElement(t[n]),o=p(t[n]).data(_t),a={relatedTarget:t[n]};if(e&&"click"===e.type&&(a.clickEvent=e),o){var s=o._menu;if(p(i).hasClass(It)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&p.contains(i,e.target))){var l=p.Event(At.HIDE,a);p(i).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),t[n].setAttribute("aria-expanded","false"),p(s).removeClass(It),p(i).removeClass(It).trigger(p.Event(At.HIDDEN,a)))}}}},c._getParentFromElement=function(e){var t,n=W.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},c._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||p(e.target).closest(Ft).length)):Et.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!p(this).hasClass(Lt))){var t=c._getParentFromElement(this),n=p(t).hasClass(It);if(n&&(!n||27!==e.which&&32!==e.which)){var r=[].slice.call(t.querySelectorAll(Bt));if(0!==r.length){var i=r.indexOf(e.target);38===e.which&&0<i&&i--,40===e.which&&i<r.length-1&&i++,i<0&&(i=0),r[i].focus()}}else{if(27===e.which){var o=t.querySelector(jt);p(o).trigger("focus")}p(this).trigger("click")}}},a(c,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Yt}},{key:"DefaultType",get:function(){return Xt}}]),c}();p(document).on(At.KEYDOWN_DATA_API,jt,Kt._dataApiKeydownHandler).on(At.KEYDOWN_DATA_API,Ft,Kt._dataApiKeydownHandler).on(At.CLICK_DATA_API+" "+At.KEYUP_DATA_API,Kt._clearMenus).on(At.CLICK_DATA_API,jt,function(e){e.preventDefault(),e.stopPropagation(),Kt._jQueryInterface.call(p(this),"toggle")}).on(At.CLICK_DATA_API,Ht,function(e){e.stopPropagation()}),p.fn[Ct]=Kt._jQueryInterface,p.fn[Ct].Constructor=Kt,p.fn[Ct].noConflict=function(){return p.fn[Ct]=Dt,Kt._jQueryInterface};var Qt="modal",Jt="bs.modal",Zt="."+Jt,en=p.fn[Qt],tn={backdrop:!0,keyboard:!0,focus:!0,show:!0},nn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},rn={HIDE:"hide"+Zt,HIDDEN:"hidden"+Zt,SHOW:"show"+Zt,SHOWN:"shown"+Zt,FOCUSIN:"focusin"+Zt,RESIZE:"resize"+Zt,CLICK_DISMISS:"click.dismiss"+Zt,KEYDOWN_DISMISS:"keydown.dismiss"+Zt,MOUSEUP_DISMISS:"mouseup.dismiss"+Zt,MOUSEDOWN_DISMISS:"mousedown.dismiss"+Zt,CLICK_DATA_API:"click"+Zt+".data-api"},on="modal-dialog-scrollable",an="modal-scrollbar-measure",sn="modal-backdrop",ln="modal-open",cn="fade",un="show",dn=".modal-dialog",hn=".modal
7-body",fn='[data-toggle="modal"]',pn='[data-dismiss="modal"]',mn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",gn=".sticky-top",vn=function(){function i(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(dn),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=i.prototype;return e.toggle=function(e){return this._isShown?this.hide():this.show(e)},e.show=function(e){var t=this;if(!this._isShown&&!this._isTransitioning){p(this._element).hasClass(cn)&&(this._isTransitioning=!0);var n=p.Event(rn.SHOW,{relatedTarget:e});p(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),p(this._element).on(rn.CLICK_DISMISS,pn,function(e){return t.hide(e)}),p(this._dialog).on(rn.MOUSEDOWN_DISMISS,function(){p(t._element).one(rn.MOUSEUP_DISMISS,function(e){p(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},e.hide=function(e){var t=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var n=p.Event(rn.HIDE);if(p(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var r=p(this._element).hasClass(cn);if(r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),p(document).off(rn.FOCUSIN),p(this._element).removeClass(un),p(this._element).off(rn.CLICK_DISMISS),p(this._dialog).off(rn.MOUSEDOWN_DISMISS),r){var i=W.getTransitionDurationFromElement(this._element);p(this._element).one(W.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(i)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach(function(e){return p(e).off(Zt)}),p(document).off(rn.FOCUSIN),p.removeData(this._element,Jt),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(e){return e=l({},tn,e),W.typeCheckConfig(Qt,e,nn),e},e._showElement=function(e){var t=this,n=p(this._element).hasClass(cn);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),p(this._dialog).hasClass(on)?this._dialog.querySelector(hn).scrollTop=0:this._element.scrollTop=0,n&&W.reflow(this._element),p(this._element).addClass(un),this._config.focus&&this._enforceFocus();var r=p.Event(rn.SHOWN,{relatedTarget:e}),i=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,p(t._element).trigger(r)};if(n){var o=W.getTransitionDurationFromElement(this._dialog);p(this._dialog).one(W.TRANSITION_END,i).emulateTransitionEnd(o)}else i()},e._enforceFocus=function(){var t=this;p(document).off(rn.FOCUSIN).on(rn.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===p(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?p(this._element).on(rn.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||p(this._element).off(rn.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var t=this;this._isShown?p(window).on(rn.RESIZE,function(e){return t.handleUpdate(e)}):p(window).off(rn.RESIZE)},e._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){p(document.body).removeClass(ln),e._resetAdjustments(),e._resetScrollbar(),p(e._element).trigger(rn.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(p(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(e){var t=this,n=p(this._element).hasClass(cn)?cn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=sn,n&&this._backdrop.classList.add(n),p(this._backdrop).appendTo(document.body),p(this._element).on(rn.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._element.focus():t.hide())}),n&&W.reflow(this._backdrop),p(this._backdrop).addClass(un),!e)return;if(!n)return void e();var r=W.getTransitionDurationFromElement(this._backdrop);p(this._backdrop).one(W.TRANSITION_END,e).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){p(this._backdrop).removeClass(un);var i=function(){t._removeBackdrop(),e&&e()};if(p(this._element).hasClass(cn)){var o=W.getTransitionDurationFromElement(this._backdrop);p(this._backdrop).one(W.TRANSITION_END,i).emulateTransitionEnd(o)}else i()}else e&&e()},e._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var i=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(mn)),t=[].slice.call(document.querySelectorAll(gn));p(e).each(function(e,t){var n=t.style.paddingRight,r=p(t).css("padding-right");p(t).data("padding-right",n).css("padding-right",parseFloat(r)+i._scrollbarWidth+"px")}),p(t).each(function(e,t){var n=t.style.marginRight,r=p(t).css("margin-right");p(t).data("margin-right",n).css("margin-right",parseFloat(r)-i._scrollbarWidth+"px")});var n=document.body.style.paddingRight,r=p(document.body).css("padding-right");p(document.body).data("padding-right",n).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px")}p(document.body).addClass(ln)},e._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(mn));p(e).each(function(e,t){var n=p(t).data("padding-right");p(t).removeData("padding-right"),t.style.paddingRight=n||""});var t=[].slice.call(document.querySelectorAll(""+gn));p(t).each(function(e,t){var n=p(t).data("margin-right");void 0!==n&&p(t).css("margin-right",n).removeData("margin-right")});var n=p(document.body).data("padding-right");p(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var e=document.createElement("div");e.className=an,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},i._jQueryInterface=function(n,r){return this.each(function(){var e=p(this).data(Jt),t=l({},tn,p(this).data(),"object"==typeof n&&n?n:{});if(e||(e=new i(this,t),p(this).data(Jt,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method n
7amed "'+n+'"');e[n](r)}else t.show&&e.show(r)})},a(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return tn}}]),i}();p(document).on(rn.CLICK_DATA_API,fn,function(e){var t,n=this,r=W.getSelectorFromElement(this);r&&(t=document.querySelector(r));var i=p(t).data(Jt)?"toggle":l({},p(t).data(),p(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var o=p(t).one(rn.SHOW,function(e){e.isDefaultPrevented()||o.one(rn.HIDDEN,function(){p(n).is(":visible")&&n.focus()})});vn._jQueryInterface.call(p(t),i,this)}),p.fn[Qt]=vn._jQueryInterface,p.fn[Qt].Constructor=vn,p.fn[Qt].noConflict=function(){return p.fn[Qt]=en,vn._jQueryInterface};var yn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],bn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},wn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,xn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,Sn="tooltip",Cn="bs.tooltip",_n="."+Cn,Tn=p.fn[Sn],kn="bs-tooltip",Dn=new RegExp("(^|\\s)"+kn+"\\S+","g"),En=["sanitize","whiteList","sanitizeFn"],An={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},Ln={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},In={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:bn},Nn="show",On="out",Mn={HIDE:"hide"+_n,HIDDEN:"hidden"+_n,SHOW:"show"+_n,SHOWN:"shown"+_n,INSERTED:"inserted"+_n,CLICK:"click"+_n,FOCUSIN:"focusin"+_n,FOCUSOUT:"focusout"+_n,MOUSEENTER:"mouseenter"+_n,MOUSELEAVE:"mouseleave"+_n},Pn="fade",Rn="show",jn=".tooltip-inner",Hn=".arrow",Fn="hover",qn="focus",Bn="click",Wn="manual",$n=function(){function r(e,t){if(void 0===St)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=r.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=p(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(p(this.getTipElement()).hasClass(Rn))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),p.removeData(this.element,this.constructor.DATA_KEY),p(this.element).off(this.constructor.EVENT_KEY),p(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&p(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===p(this.element).css("display"))throw new Error("Please use show on visible elements");var e=p.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){p(this.element).trigger(e);var n=W.findShadowRoot(this.element),r=p.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!r)return;var i=this.getTipElement(),o=W.getUID(this.constructor.NAME);i.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&p(i).addClass(Pn);var a="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(a);this.addAttachmentClass(s);var l=this._getContainer();p(i).data(this.constructor.DATA_KEY,this),p.contains(this.element.ownerDocument.documentElement,this.tip)||p(i).appendTo(l),p(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new St(this.element,i,{placement:s,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Hn}
7,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}}),p(i).addClass(Rn),"ontouchstart"in document.documentElement&&p(document.body).children().on("mouseover",null,p.noop);var c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,p(t.element).trigger(t.constructor.Event.SHOWN),e===On&&t._leave(null,t)};if(p(this.tip).hasClass(Pn)){var u=W.getTransitionDurationFromElement(this.tip);p(this.tip).one(W.TRANSITION_END,c).emulateTransitionEnd(u)}else c()}},e.hide=function(e){var t=this,n=this.getTipElement(),r=p.Event(this.constructor.Event.HIDE),i=function(){t._hoverState!==Nn&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),p(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(p(this.element).trigger(r),!r.isDefaultPrevented()){if(p(n).removeClass(Rn),"ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),this._activeTrigger[Bn]=!1,this._activeTrigger[qn]=!1,this._activeTrigger[Fn]=!1,p(this.tip).hasClass(Pn)){var o=W.getTransitionDurationFromElement(n);p(n).one(W.TRANSITION_END,i).emulateTransitionEnd(o)}else i();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){p(this.getTipElement()).addClass(kn+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},e.setContent=function(){var e=this.getTipElement();this.setElementContent(p(e.querySelectorAll(jn)),this.getTitle()),p(e).removeClass(Pn+" "+Rn)},e.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=q(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?p(t).parent().is(e)||e.empty().append(t):e.text(p(t).text())},e.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:W.isElement(this.config.container)?p(this.config.container):p(document).find(this.config.container)},e._getAttachment=function(e){return Ln[e.toUpperCase()]},e._setListeners=function(){var r=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)p(r.element).on(r.constructor.Event.CLICK,r.config.selector,function(e){return r.toggle(e)});else if(e!==Wn){var t=e===Fn?r.constructor.Event.MOUSEENTER:r.constructor.Event.FOCUSIN,n=e===Fn?r.constructor.Event.MOUSELEAVE:r.constructor.Event.FOCUSOUT;p(r.element).on(t,r.config.selector,function(e){return r._enter(e)}).on(n,r.config.selector,function(e){return r._leave(e)})}}),p(this.element).closest(".modal").on("hide.bs.modal",function(){r.element&&r.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?qn:Fn]=!0),p(t.getTipElement()).hasClass(Rn)||t._hoverState===Nn?t._hoverState=Nn:(clearTimeout(t._timeout),t._hoverState=Nn,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Nn&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?qn:Fn]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=On,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===On&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){var t=p(this.element).data();return Object.keys(t).forEach(function(e){-1!==En.indexOf(e)&&delete t[e]}),"number"==typeof(e=l({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),W.typeCheckConfig(Sn,e,this.constructor.DefaultType),e.sanitize&&(e.template=q(e.template,e.whiteList,e.sanitizeFn)),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(Dn);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(p(e).removeClass(Pn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},r._jQueryInterface=function(n){return this.each(function(){var e=p(this).data(Cn),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new r(this,t),p(this).data(Cn,e)),"string"==typeof n)){if("undefined"==typeof e[n])throw new TypeError('No method n
7amed "'+n+'"');e[n]()}})},a(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return In}},{key:"NAME",get:function(){return Sn}},{key:"DATA_KEY",get:function(){return Cn}},{key:"Event",get:function(){return Mn}},{key:"EVENT_KEY",get:function(){return _n}},{key:"DefaultType",get:function(){return An}}]),r}();p.fn[Sn]=$n._jQueryInterface,p.fn[Sn].Constructor=$n,p.fn[Sn].noConflict=function(){return p.fn[Sn]=Tn,$n._jQueryInterface};var Un="popover",zn="bs.popover",Vn="."+zn,Gn=p.fn[Un],Yn="bs-popover",Xn=new RegExp("(^|\\s)"+Yn+"\\S+","g"),Kn=l({},$n.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Qn=l({},$n.DefaultType,{content:"(string|element|function)"}),Jn="fade",Zn="show",er=".popover-header",tr=".popover-body",nr={HIDE:"hide"+Vn,HIDDEN:"hidden"+Vn,SHOW:"show"+Vn,SHOWN:"shown"+Vn,INSERTED:"inserted"+Vn,CLICK:"click"+Vn,FOCUSIN:"focusin"+Vn,FOCUSOUT:"focusout"+Vn,MOUSEENTER:"mouseenter"+Vn,MOUSELEAVE:"mouseleave"+Vn},rr=function(e){function r(){return e.apply(this,arguments)||this}var t,n;n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var i=r.prototype;return i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(e){p(this.getTipElement()).addClass(Yn+"-"+e)},i.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},i.setContent=function(){var e=p(this.getTipElement());this.setElementContent(e.find(er),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(tr),t),e.removeClass(Jn+" "+Zn)},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(Xn);null!==t&&0<t.length&&e.removeClass(t.join(""))},r._jQueryInterface=function(n){return this.each(function(){var e=p(this).data(zn),t="object"==typeof n?n:null;if((e||!/dispose|hide/.test(n))&&(e||(e=new r(this,t),p(this).data(zn,e)),"string"==typeof n)){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},a(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Kn}},{key:"NAME",get:function(){return Un}},{key:"DATA_KEY",get:function(){return zn}},{key:"Event",get:function(){return nr}},{key:"EVENT_KEY",get:function(){return Vn}},{key:"DefaultType",get:function(){return Qn}}]),r}($n);p.fn[Un]=rr._jQueryInterface,p.fn[Un].Constructor=rr,p.fn[Un].noConflict=function(){return p.fn[Un]=Gn,rr._jQueryInterface};var ir="scrollspy",or="bs.scrollspy",ar="."+or,sr=p.fn[ir],lr={offset:10,method:"auto",target:""},cr={offset:"number",method:"string",target:"(string|element)"},ur={ACTIVATE:"activate"+ar,SCROLL:"scroll"+ar,LOAD_DATA_API:"load"+ar+".data-api"},dr="dropdown-item",hr="active",fr='[data-spy="scroll"]',pr=".nav, .list-group",mr=".nav-link",gr=".nav-item",vr=".list-group-item",yr=".dropdown",br=".dropdown-item",wr=".dropdown-toggle",xr="offset",Sr="position",Cr=function(){function n(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+mr+","+this._config.target+" "+vr+","+this._config.target+" "+br,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,p(this._scrollElement).on(ur.SCROLL,function(e){return n._process(e)}),this.refresh(),this._process()}var e=n.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?xr:Sr,i="auto"===this._config.method?e:this._config.method,o=i===Sr?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var t,n=W.getSelectorFromElement(e);if(n&&(t=document.querySelector(n)),t){var r=t.getBoundingClientRect();if(r.width||r.height)return[p(t)[i]().top+o,n]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}
7).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){p.removeData(this._element,or),p(this._scrollElement).off(ar),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(e){if("string"!=typeof(e=l({},lr,"object"==typeof e&&e?e:{})).target){var t=p(e.target).attr("id");t||(t=W.getUID(ir),p(e.target).attr("id",t)),e.target="#"+t}return W.typeCheckConfig(ir,e,cr),e},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),n<=e){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;
8)this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&("undefined"==typeof this._offsets[i+1]||e<this._offsets[i+1])&&this._activate(this._targets[i])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),n=p([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(dr)?(n.closest(yr).find(wr).addClass(hr),n.addClass(hr)):(n.addClass(hr),n.parents(pr).prev(mr+", "+vr).addClass(hr),n.parents(pr).prev(gr).children(mr).addClass(hr)),p(this._scrollElement).trigger(ur.ACTIVATE,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(hr)}).forEach(function(e){return e.classList.remove(hr)})},n._jQueryInterface=function(t){return this.each(function(){var e=p(this).data(or);if(e||(e=new n(this,"object"==typeof t&&t),p(this).data(or,e)),"string"==typeof t){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},a(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return lr}}]),n}();p(window).on(ur.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(fr)),t=e.length;t--;){var n=p(e[t]);Cr._jQueryInterface.call(n,n.data())}}),p.fn[ir]=Cr._jQueryInterface,p.fn[ir].Constructor=Cr,p.fn[ir].noConflict=function(){return p.fn[ir]=sr,Cr._jQueryInterface};var _r="bs.tab",Tr="."+_r,kr=p.fn.tab,Dr={HIDE:"hide"+Tr,HIDDEN:"hidden"+Tr,SHOW:"show"+Tr,SHOWN:"shown"+Tr,CLICK_DATA_API:"click"+Tr+".data-api"},Er="dropdown-menu",Ar="active",Lr="disabled",Ir="fade",Nr="show",Or=".dropdown",Mr=".nav, .list-group",Pr=".active",Rr="> li > .active",jr='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Hr=".dropdown-toggle",Fr="> .dropdown-menu .active",qr=function(){function r(e){this._element=e}var e=r.prototype;return e.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&p(this._element).hasClass(Ar)||p(this._element).hasClass(Lr))){var e,r,t=p(this._element).closest(Mr)[0],i=W.getSelectorFromElement(this._element);if(t){var o="UL"===t.nodeName||"OL"===t.nodeName?Rr:Pr;r=(r=p.makeArray(p(t).find(o)))[r.length-1]}var a=p.Event(Dr.HIDE,{relatedTarget:this._element}),s=p.Event(Dr.SHOW,{relatedTarget:r});if(r&&p(r).trigger(a),p(this._element).trigger(s),!s.isDefaultPrevented()&&!a.isDefaultPrevented()){i&&(e=document.querySelector(i)),this._activate(this._element,t);var l=function(){var e=p.Event(Dr.HIDDEN,{relatedTarget:n._element}),t=p.Event(Dr.SHOWN,{relatedTarget:r});p(r).trigger(e),p(n._element).trigger(t)};e?this._activate(e,e.parentNode,l):l()}}},e.dispose=function(){p.removeData(this._element,_r),this._element=null},e._activate=function(e,t,n){var r=this,i=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?p(t).children(Pr):p(t).find(Rr))[0],o=n&&i&&p(i).hasClass(Ir),a=function(){return r._transitionComplete(e,i,n)};if(i&&o){var s=W.getTransitionDurationFromElement(i);p(i).removeClass(Nr).one(W.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},e._transitionComplete=function(e,t,n){if(t){p(t).removeClass(Ar);var r=p(t.parentNode).find(Fr)[0];r&&p(r).removeClass(Ar),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(p(e).addClass(Ar),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),W.reflow(e),e.classList.contains(Ir)&&e.classList.add(Nr),e.parentNode&&p(e.parentNode).hasClass(Er)){var i=p(e).closest(Or)[0];if(i){var o=[].slice.call(i.querySelectorAll(Hr));p(o).addClass(Ar)}e.setAttribute("aria-expanded",!0)}n&&n()},r._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(_r);
8if(t||(t=new r(this),e.data(_r,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},a(r,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),r}();p(document).on(Dr.CLICK_DATA_API,jr,function(e){e.preventDefault(),qr._jQueryInterface.call(p(this),"show")}),p.fn.tab=qr._jQueryInterface,p.fn.tab.Constructor=qr,p.fn.tab.noConflict=function(){return p.fn.tab=kr,qr._jQueryInterface};var Br="toast",Wr="bs.toast",$r="."+Wr,Ur=p.fn[Br],zr={CLICK_DISMISS:"click.dismiss"+$r,HIDE:"hide"+$r,HIDDEN:"hidden"+$r,SHOW:"show"+$r,SHOWN:"shown"+$r},Vr="fade",Gr="hide",Yr="show",Xr="showing",Kr={animation:"boolean",autohide:"boolean",delay:"number"},Qr={animation:!0,autohide:!0,delay:500},Jr='[data-dismiss="toast"]',Zr=function(){function r(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var e=r.prototype;return e.show=function(){var e=this;p(this._element).trigger(zr.SHOW),this._config.animation&&this._element.classList.add(Vr);var t=function(){e._element.classList.remove(Xr),e._element.classList.add(Yr),p(e._element).trigger(zr.SHOWN),e._config.autohide&&e.hide()};if(this._element.classList.remove(Gr),this._element.classList.add(Xr),this._config.animation){var n=W.getTransitionDurationFromElement(this._element);p(this._element).one(W.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},e.hide=function(e){var t=this;this._element.classList.contains(Yr)&&(p(this._element).trigger(zr.HIDE),e?this._close():this._timeout=setTimeout(function(){t._close()},this._config.delay))},e.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Yr)&&this._element.classList.remove(Yr),p(this._element).off(zr.CLICK_DISMISS),p.removeData(this._element,Wr),this._element=null,this._config=null},e._getConfig=function(e){return e=l({},Qr,p(this._element).data(),"object"==typeof e&&e?e:{}),W.typeCheckConfig(Br,e,this.constructor.DefaultType),e},e._setListeners=function(){var e=this;p(this._element).on(zr.CLICK_DISMISS,Jr,function(){return e.hide(!0)})},e._close=function(){var e=this,t=function(){e._element.classList.add(Gr),p(e._element).trigger(zr.HIDDEN)};if(this._element.classList.remove(Yr),this._config.animation){var n=W.getTransitionDurationFromElement(this._element);p(this._element).one(W.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},r._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(Wr);if(t||(t=new r(this,"object"==typeof n&&n),e.data(Wr,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n](this)}})},a(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return Kr}},{key:"Default",get:function(){return Qr}}]),r}();p.fn[Br]=Zr._jQueryInterface,p.fn[Br].Constructor=Zr,p.fn[Br].noConflict=function(){return p.fn[Br]=Ur,Zr._jQueryInterface},function(){if(void 0===p)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=p.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),e.Util=W,e.Alert=Q,e.Button=he,e.Carousel=We,e.Collapse=it,e.Dropdown=Kt,e.Modal=vn,e.Popover=rr,e.Scrollspy=Cr,e.Tab=qr,e.Toast=Zr,e.Tooltip=$n,Object.defineProperty(e,"__esModule",{value:!0})}),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(n){var e=function(){if(n&&n.fn&&n.fn.select2&&n.fn.select2.amd)var e=n.fn.select2.amd;var t,i,u,d;return e&&e.requirejs||(e?u=e:e={},function(f){function p(e,t){return n.call(e,t)}function a(e,t){var n,r,i,o,a,s,l,c,u,d,h,f=t&&t.split("/"),p=C.map,m=p&&p["*"]||{};if(e){for(a=(e=e.split("/")).length-1,C.nodeIdCompat&&T.test(e[a])&&(e[a]=e[a].replace(T,"")),"."===e[0].charAt(0)&&f&&(e=f.
vendor: 4,135 bytes, line 8
8slice(0,f.length-1).concat(e)),u=0;u<e.length;u++)if("."===(h=e[u]))e.splice(u,1),u-=1;else if(".."===h){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((f||m)&&p){for(u=(n=e.split("/")).length;0<u;u-=1){if(r=n.slice(0,u).join("/"),f)for(d=f.length;0<d;d-=1)if((i=p[f.slice(0,d).join("/")])&&(i=i[r])){o=i,s=u;break}if(o)break;!l&&m&&m[r]&&(l=m[r],c=u)}!o&&l&&(o=l,s=c),o&&(n.splice(0,s,o),e=n.join("/"))}return e}function m(t,n){return function(){var e=r.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),c.apply(f,e.concat([t,n]))}}function s(t){return function(e){return a(e,t)}}function g(t){return function(e){x[t]=e}}function v(e){if(p(S,e)){var t=S[e];delete S[e],_[e]=!0,o.apply(f,t)}if(!p(x,e)&&!p(_,e))throw new Error("No "+e);return x[e]}function l(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function y(e){return e?l(e):[]}function t(e){return function(){return C&&C.config&&C.config[e]||{}}}var o,c,b,w,x={},S={},C={},_={},n=Object.prototype.hasOwnProperty,r=[].slice,T=/\.js$/;b=function(e,t){var n,r=l(e),i=r[0],o=t[1];return e=r[1],i&&(n=v(i=a(i,o))),i?e=n&&n.normalize?n.normalize(e,s(o)):a(e,o):(i=(r=l(e=a(e,o)))[0],e=r[1],i&&(n=v(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},w={require:function(e){return m(e)},exports:function(e){var t=x[e];return void 0!==t?t:x[e]={}},module:function(e){return{id:e,uri:"",exports:x[e],config:t(e)}}},o=function(e,t,n,r){var i,o,a,s,l,c,u,d=[],h=typeof n;if(c=y(r=r||e),"undefined"===h||"function"===h){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(s=b(t[l],c)).f))d[l]=w.require(e);else if("exports"===o)d[l]=w.exports(e),u=!0;else if("module"===o)i=d[l]=w.module(e);else if(p(x,o)||p(S,o)||p(_,o))d[l]=v(o);else{if(!s.p)throw new Error(e+" missing "+o);s.p.load(s.n,m(r,!0),g(o),{}),d[l]=x[o]}a=n?n.apply(x[e],d):void 0,e&&(i&&i.exports!==f&&i.exports!==x[e]?x[e]=i.exports:a===f&&u||(x[e]=a))}else e&&(x[e]=n)},i=u=c=function(e,t,n,r,i){if("string"==typeof e)return w[e]?w[e](t):v(b(e,y(t)).f);if(!e.splice){if((C=e).deps&&c(C.deps,C.callback),!t)return;t.splice?(e=t,t=n,n=null):e=f}return t=t||function(){},"function"==typeof n&&(n=r,r=i),r?o(f,e,t,n):setTimeout(function(){o(f,e,t,n)},4),c},c.config=function(e){return c(e)},i._defined=x,(d=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),p(x,e)||p(S,e)||(S[e]=[e,t,n])}).amd={jQuery:!0}}(),e.requirejs=i,e.require=u,e.define=d),e.define("almond",function(){}),e.define("jquery",[],function(){var e=n||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){function d(e){var t=e.prototype,n=[];for(var r in t)"function"==typeof t[r]&&"constructor"!==r&&n.push(r);return n}var i={Extend:function(e,t){function n(){this.constructor=e}var r={}.hasOwnProperty;for(var i in t)r.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(r,i){function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=r.prototype.constructor;0<t&&(e.call(arguments,r.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}function e(){this.constructor=o}var t=d(i),n=d(r);i.displayName=r.displayName,o.prototype=new e;for(var a=0;a<n.length;a++){var s=n[a];o.prototype[s]=r.prototype[s]}for(var l=function(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}},c=0;c<t.length;c++){var u=t[c];o.prototype[u]=l(u)}return o}},e=function(){this.listeners={}};e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1
8);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},i.Observable=e,i.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=e[t]),r=r[o]}delete e[t]}}return e},i.hasScroll=function(e,t){var n=o(t),r=t.style.overflowX,i=t.style.overflowY;return(r!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===r||"scroll"===i||n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth)},i.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){var r=i.GetUniqueElementId(e);i.__cache[r]||(i.__cache[r]={}),i.__cache[r][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:o(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t]},i}),e.define("select2/results",["jquery","./utils"],function(h,f){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return f.Extend(r,f.Observable),r.prototype.render=function(){var e=h('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(t(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},r.prototype.position=function(e,t){t.find(".select2-results").append(e)},r.prototype.sort=function(e){return this.options.get("sorter")(e)},r.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},r.prototype.setClasses=function(){var t=this;this.data.current(function(e){var r=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,r)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},r.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"treeitem","aria-selected":"false"};for(var r in e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var i=n[r];t.setAttribute(r,i)}if(e.children){var o=h(t),a=document.createElement("strong");a.className="select2-results__group",h(a),this.template(e,a);for(var s=[],l=0;l<e.children.length;l++){var c=e.children[l],u=this.option(c);s.push(u)}var d=h("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});d.append(s),o.append(a),o.append(d)}else this.template(e,t);return f.StoreData(t,"data",e),t},r.prototype.bind=function(t){var l=this,e=t.id+"-results";this.$results.attr("id",e),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}
8),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=l.$results.offset().top,a=i.offset().top,s=l.$results.scrollTop()+(a-o);0===r?l.$results.scrollTop(0):a-o<0&&l.$results.scrollTop(s)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),a=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):i<o&&l.$results.scrollTop(a)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,r=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();r?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var e=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:e,element:h(this)})})},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(e,t){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=r(i):h(t).append(i)},r}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,r,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return r.Extend(o,r.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=r.GetData(this.$element[0],"old-tabindex")?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e},o.prototype.bind=function(e){var t=this,n=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){t.trigger("focus",e)}),this.$selection.on("blur",function(e){t._handleBlur(e)}),this.$selection.on("keydown",function(e){t.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){t.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){t.update(e.data)}),e.on("open",function(){t.$selection.attr("aria-expanded","true"),t.$selection.attr("aria-owns",n),t._attachCloseHandler(e)}),e.on("close",function(){t.$selection.attr("aria-expanded","fal
8se"),t.$selection.removeAttr("aria-activedescendant"),t.$selection.removeAttr("aria-owns"),window.setTimeout(function(){t.$selection.focus()},0),t._detachCloseHandler(e)}),e.on("enable",function(){t.$selection.attr("tabindex",t._tabindex)}),e.on("disable",function(){t.$selection.attr("tabindex","-1")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){n(this),this!=t[0]&&r.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(e,t){var n=this;i.__super__.bind.apply(this,arguments);var r=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(){}),this.$selection.on("blur",function(){}),e.on("focus",function(){e.isOpen()||n.$selection.focus()})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r),n.attr("title",t.title||t.text)}else this.clear()},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,s){function n(e,t){n.__super__.constructor.apply(this,arguments)}return s.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.options.get("disabled")){var t=i(this).parent(),n=s.GetData(t[0],"data");r.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=this.selectionContainer(),o=this.display(r,i);i.append(o),i.attr("title",r.title||r.text),s.StoreData(i[0],"data",r),t.push(i)}var a=this.$selection.find(".select2-selection__rendered");s.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},e}
8),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,r,s){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var r=s.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var o={data:r};if(this.trigger("clear",o),o.prevented)return void this.$element.val(i);for(var a=0;a<r.length;a++)if(o={data:r[a]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("change"),this.trigger("toggle",{})}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=r.DELETE&&t.which!=r.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),r=i('<span class="select2-selection__clear" title="'+n()+'">&times;</span>');s.StoreData(r[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(r,a,s){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=r('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(){r.$search.trigger("focus")}),t.on("results:focus",function(e){r.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===s.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");r.searchRemoveChoice(n),e.preventDefault()}}});var i=document.documentMode,o=i&&i<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(){o?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(o&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=s.SHIFT&&t!=s.CTRL&&t!=s.ALT&&t!=s.TAB&&r.handleSearch(e)}})},e.prototype._transferTabIndex=function(){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&(this.$element.find("[data-select2-tag]").length?this.$element.focus():this.$search.focus())},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(a){function e(){}return e.prototype.bind=function(e,t,n){var r=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==a.inArray(e,i)){t=t||{};var n=a.Event("select2:"+e,{params:t});r.$element.trigger(n),-1!==a.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function r(e){this.dict=e||{}}return r.prototype.all=function(){return this.dict},r.prototype.get=function(e){return this.dict[e]},r.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},r._cache={},r.loadPath=function(e){if(!(e in r._cache)){var t=n(e);r._cache[e]=t}return new r(r._cache[e])},r}),e.define("select2/diacritics",[],function(){return{"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A",
9"\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f"
9:"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u0152":"OE","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f"
vendor: 24,433 bytes, line 9
9:"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u0153":"oe","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\xdf":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z","\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038a":"\u0399","\u03aa":"\u0399","\u038c":"\u039f","\u038e":"\u03a5","\u03ab":"\u03a5","\u038f":"\u03a9","\u03ac":"\u03b1","\u03ad":"\u03b5","\u03ae":"\u03b7","\u03af":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u03cc":"\u03bf","\u03cd":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u03ce":"\u03c9","\u03c2":"\u03c3","\u2019":"'"}}),e.define("select2/data/base",["../utils"],function(r){function e(){e.__super__.constructor.call(this)}return r.Extend(e,r.Observable),e.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=r.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+r.generateChars(4),n},e}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,s,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return s.Extend(n,e),n.prototype.current=function(e){var n=[],r=this;this.$element.find(":selected").each(function(){var e=l(this),t=r.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var o=this;if(i.selected=!0,l(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var r=i[n].id;-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(i){var o=this;if(this.$element.prop("multiple")){if(i.selected=!1,l(i.element).is("option"))return i.element.selected=!1,void this.$element.trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].id;r!==i.id&&-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("change")})}},n.prototype.bind=function(e){var t=this;(this.container=e).on("select",function(e){t.select(e.data)}),e.on("unselect",function(e){t.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){s.RemoveData(this)})},n.prototype.query=function(r,e){var i=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(r,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){s.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),r=this._normalizeItem(e);return r.element=t,s.StoreData(t,"data",r),n},n.prototype.item=function(e){var t={};if(null!=(t=s.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],i=0;i<n.length;i++){var o=l(n[i]),a=this.item(o);r.push(a)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],s.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});var t={selected:!1,disabled:!1};return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},t,e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,p,m){function r(e,t){var n=t.get("data")||[];r.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return p.Extend(r,e),r.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(e){function t(e){return function(){return m(this).val()==e.id}}for(var n=this,r=this.$element.find("option"),i=r.map(function(){return n.item(m(this)).id}).get(),o=[],a=0;a<e.length;a++){var s=this._normalizeItem(e[a]);if(0<=m.inArray(s.id,i)){var l=r.filter(t(s)),c=this.item(l),u=m.extend(!0,{},s,c),d=this.option(u);l.replaceWith(d)}else{var h=this.option(s);if(s.children){var f=this.convertToOptions(s.children);p.appendMany(h,f)}o.push(h)}}return o},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var r=o.ajax(e);return r.then(t),r.fail(n),r}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,r){function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),r(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}var i=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var r=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(r))for(var a=0;a<r.length;a++){var s=r[a],l=this._normalizeItem(s),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,l,c){function u(e,t){for(var n=e.results,r=0;r<n.length;r++){var i=n[r],o=null!=i.children&&!u({results:i.children},!0);if((i.text||"").toUpperCase()===(l.term||"").toUpperCase()||o)return!t&&(e.data=n,void c(e))}if(t)return!0;var a=d.createTag(l);if(null!=a){var s=d.option(a);s.attr("data-select2-tag",!0),d.addOptions([s]),d.insertTag(n,a)}e.results=n,c(e)}var d=this;this._removeOldTags(),null!=l.term&&null==l.page?e.call(this,l,u):e.call(this,l,c)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(){this._lastTag,this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){function r(e){var t=o._normalizeItem(e);if(!o.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=o.option(t);n.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([n])}i(t)}function i(e){o.trigger("select",{data:e})}var o=this;t.term=t.term||"";var a=this.tokenizer(t,this.options,r);a.term!==t.term&&(this.$search.length&&(this.$search.val(a.term),this.$search.focus()),t.term=a.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,r){for(var i=n.get("tokenSeparators")||[],o=t.term,a=0,s=this.createTag||function(e){return{id:e.term,text:e.term}};a<o.length;){var l=o[a];if(-1!==d.inArray(l,i)){var c=o.substr(0,a),u=s(d.extend({},t,{term:c}));null!=u?(r(u),o=o.substr(a+1)||"",a=0):a++}else a++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(n,r,i){var o=this;this.current(function(e){var t=null!=e?e.length:0;0<o.maximumSelectionLength&&t>=o.maximumSelectionLength?o.trigger("results:message",{message:"maximumSelected",args:{maximum:o.maximumSelectionLength}}):n.call(o,r,i)})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(i){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=i('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(){i(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.focus(),window.setTimeout(function(){r.$search.focus()},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.val(""),r.$search.blur()}),t.on("focus",function(){t.isOpen()||r.$search.focus()}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))})},e.prototype.handleSearch=function(){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.showSearch=function(){return!0},e}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(i){function e(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",function(){var e=i.contains(document.documentElement,r.$loadingMore[0]);!r.loading&&e&&r.$results.offset().top+r.$results.outerHeight(!1)+50>=r.$loadingMore.offset().top+r.$loadingMore.outerHeight(!1)&&r.loadMore()})},e.prototype.loadMore=function(){this.loading=!0;var e=i.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=i('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,s){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||f(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this,i=!1;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),i||(i=!0,t.on("results:all",function(){r._positionDropdown(),r._resizeDropdown()}),t.on("results:append",function(){r._positionDropdown(),r._resizeDropdown()}))}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,r="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,a=this.$container.parents().filter(s.hasScroll);a.each(function(){s.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),a.on(r,function(){var e=s.GetData(this,"select2-scroll-position");f(this).scrollTop(e.y)}),f(window).on(r+" "+i+" "+o,function(){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(s.hasScroll).off(n),f(window).off(n+" "+r+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var a={height:this.$dropdown.outerHeight(!1)},s={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},l=s.top<i.top-a.height,c=s.bottom>i.bottom+a.height,u={left:i.left,top:o.bottom},d=this.$dropdownParent;"static"===d.css("position")&&(d=d.offsetParent());var h=d.offset();u.top-=h.top,u.left-=h.left,t||n||(r="below"),c||!l||t?!l&&c&&t&&(r="below"):r="above",("above"==r||t&&"below"!==r)&&(u.top=o.top-h.top-a.height),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(u)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function i(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];r.children?t+=i(r.children):t++}return t}function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(i(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=o.GetData(r[0],"data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results\u2026"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching\u2026"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(p,m,g,v,y,b,w,x,S,C,_,n,T,k,D,E,A,L,I,N,O,M,P,R,j,H,F,q,e){function t(){this.reset()}return t.prototype.apply=function(e){if(null==(e=p.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=D:null!=e.data?e.dataAdapter=k:e.dataAdapter=T,0<e.minimumInputLength&&(e.dataAdapter=C.Decorate(e.dataAdapter,L)),0<e.maximumInputLength&&(e.dataAdapter=C.Decorate(e.dataAdapter,I)),0<e.maximumSelectionLength&&(e.dataAdapter=C.Decorate(e.dataAdapter,N)),e.tags&&(e.dataAdapter=C.Decorate(e.dataAdapter,E)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=C.Decorate(e.dataAdapter,A)),null!=e.query){var t=m(e.amdBase+"compat/query");e.dataAdapter=C.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=m(e.amdBase+"compat/initSelection");e.dataAdapter=C.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=g,null!=e.ajax&&(e.resultsAdapter=C.Decorate(e.resultsAdapter,R)),null!=e.placeholder&&(e.resultsAdapter=C.Decorate(e.resultsAdapter,P)),e.selectOnClose&&(e.resultsAdapter=C.Decorate(e.resultsAdapter,F))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=O;else{var r=C.Decorate(O,M);e.dropdownAdapter=r}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=C.Decorate(e.dropdownAdapter,H)),e.closeOnSelect&&(e.dropdownAdapter=C.Decorate(e.dropdownAdapter,q)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var i=m(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=C.Decorate(e.dropdownAdapter,i)}e.dropdownAdapter=C.Decorate(e.dropdownAdapter,j)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=y:e.selectionAdapter=v,null!=e.placeholder&&(e.selectionAdapter=C.Decorate(e.selectionAdapter,b)),e.allowClear&&(e.selectionAdapter=C.Decorate(e.selectionAdapter,w)),e.multiple&&(e.selectionAdapter=C.Decorate(e.selectionAdapter,x)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptC
9ontainerCssClass){var o=m(e.amdBase+"compat/containerCss");e.selectionAdapter=C.Decorate(e.selectionAdapter,o)}e.selectionAdapter=C.Decorate(e.selectionAdapter,S)}if("string"==typeof e.language)if(0<e.language.indexOf("-")){var a=e.language.split("-")[0];e.language=[e.language,a]}else e.language=[e.language];if(p.isArray(e.language)){var s=new _;e.language.push("en");for(var l=e.language,c=0;c<l.length;c++){var u=l[c],d={};try{d=_.loadPath(u)}catch(p){try{u=this.defaults.amdLanguageBase+u,d=_.loadPath(u)}catch(p){e.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+u+'" could not be automatically loaded. A fallback will be used instead.');continue}}s.extend(d)}e.translations=s}else{var h=_.loadPath(this.defaults.amdLanguageBase+"en"),f=new _(e.language);f.extend(h),e.translations=f}return e},t.prototype.reset=function(){function a(e){function t(e){return n[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function s(e,t){if(""===p.trim(e.term))return t;if(t.children&&0<t.children.length){for(var n=p.extend(!0,{},t),r=t.children.length-1;0<=r;r--)null==s(e,t.children[r])&&n.children.splice(r,1);return 0<n.children.length?n:s(e,n)}var i=a(t.text).toUpperCase(),o=a(e.term).toUpperCase();return-1<i.indexOf(o)?t:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:C.escapeMarkup,language:e,matcher:s,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,
10minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},t.prototype.set=function(e,t){var n={};n[p.camelCase(e)]=t;var r=C._convertData(n);p.extend(!0,this.defaults,r)},new t}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(r,d,i,h){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),this.options=i.apply(this.options),t&&t.is("input")){var n=r(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=h.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){function t(e,t){return t.toUpperCase()}var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),h.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),h.StoreData(e[0],"data",h.GetData(e[0],"select2Tags")),h.StoreData(e[0],"tags",!0)),h.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",h.GetData(e[0],"ajaxUrl")),h.StoreData(e[0],"ajax-Url",h.GetData(e[0],"ajaxUrl")));for(var r={},i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,a="data-";if(o.substr(0,a.length)==a){var s=o.substring(a.length),l=h.GetData(e[0],s);r[s.replace(/-([a-z])/g,t)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(r=d.extend(!0,{},e[0].dataset,r));var c=d.extend(!0,{},h.GetData(e[0]),r);for(var u in c=h._convertData(c))-1<d.inArray(u,n)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(i,c,u,r){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var i=this.render();this._placeContainer(i);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var a=this.options.get("dropdownAdapter");this.dropdown=new a(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var s=this.options.get("resultsAdapter");this.results=new s(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return t;var o=e.attr("style");if("string"!=typeof o)return null;for(var a=o.split(";"),s=0,l=a.length;s<l;s+=1){var c=a[s].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){i.each(e,t._syncA),i.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,r=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===i.inArray(e,r)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===r.ESC||t===r.TAB||t===r.UP&&e.altKey?(n.close(),e.preventDefault()):t===r.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===r.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===r.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===r.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===r.ENTER||t===r.SPACE||t===r.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._syncSubtree=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})}},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var i=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.trigger("query",{})},d.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")}
10,d.prototype.focus=function(){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];i.isArray(t)&&(t=i.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=i('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("select2/compat/utils",["jquery"],function(a){function e(e,t,n){var r,i,o=[];(r=a.trim(e.attr("class")))&&a((r=""+r).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&o.push(this)}),(r=a.trim(t.attr("class")))&&a((r=""+r).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(i=n(this))&&o.push(i)}),e.attr("class",o.join(" "))}return{syncCssClasses:e}}),e.define("select2/compat/containerCss",["jquery","./utils"],function(a,s){function l(){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("containerCssClass")||"";a.isFunction(n)&&(n=n(this.$element));var r=this.options.get("adaptContainerCssClass");if(r=r||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var i=r;r=function(e){var t=i(e);return null!=t?t+" "+e:e}}
vendor: 2,671 bytes, line 10
10var o=this.options.get("containerCss")||{};return a.isFunction(o)&&(o=o(this.$element)),s.syncCssClasses(t,this.$element,r),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/dropdownCss",["jquery","./utils"],function(a,s){function l(){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";a.isFunction(n)&&(n=n(this.$element));var r=this.options.get("adaptDropdownCssClass");if(r=r||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var i=r;r=function(e){var t=i(e);return null!=t?t+" "+e:e}}var o=this.options.get("dropdownCss")||{};return a.isFunction(o)&&(o=o(this.$element)),s.syncCssClasses(t,this.$element,r),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/initSelection",["jquery"],function(r){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return e.prototype.current=function(e,t){var n=this;this._isInitialized?e.call(this,t):this.initSelection.call(null,this.$element,function(e){n._isInitialized=!0,r.isArray(e)||(e=[e]),t(e)})},e}),e.define("select2/compat/inputData",["jquery","../utils"],function(a,r){function e(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,n)}return e.prototype.current=function(e,t){function r(e,t){var n=[];return e.selected||-1!==a.inArray(e.id,t)?(e.selected=!0,n.push(e)):e.selected=!1,e.children&&n.push.apply(n,r(e.children,t)),n}for(var n=[],i=0;i<this._currentData.length;i++){var o=this._currentData[i];n.push.apply(n,r(o,this.$element.val().split(this._valueSeparator)))}t(n)},e.prototype.select=function(e,t){if(this.options.get("multiple")){var n=this.$element.val();n+=this._valueSeparator+t.id,this.$element.val(n),this.$element.trigger("change")}else this.current(function(e){a.map(e,function(e){e.selected=!1})}),this.$element.val(t.id),this.$element.trigger("change")},e.prototype.unselect=function(e,i){var o=this;i.selected=!1,this.current(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];i.id!=r.id&&t.push(r.id)}
10o.$element.val(t.join(o._valueSeparator)),o.$element.trigger("change")})},e.prototype.query=function(e,t,n){for(var r=[],i=0;i<this._currentData.length;i++){var o=this._currentData[i],a=this.matches(t,o);null!==a&&r.push(a)}n({results:r})},e.prototype.addOptions=function(e,t){var n=a.map(t,function(e){return r.GetData(e[0],"data")});this._currentData.push.apply(this._currentData,n)},e}),e.define("select2/compat/matcher",["jquery"],function(a){function e(o){function e(e,t){var n=a.extend(!0,{},t);if(null==e.term||""===a.trim(e.term))return n;if(t.children){for(var r=t.children.length-1;0<=r;r--){var i=t.children[r];o(e.term,i.text,i)||n.children.splice(r,1)}if(0<n.children.length)return n}return o(e.term,t.text,t)?n:null}return e}return e}),e.define("select2/compat/query",[],function(){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get("query").call(null,t)},e}),e.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e}),e.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);var r=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(r.join(" "),function(e){e.stopPropagation()})},e}),e.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);var r=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(r.join(" "),function(e){e.stopPropagation()})},e}),t=function(h){function t(e){var t=e||window.event,n=v.call(arguments,1),r=0,i=0,o=0,a=0,s=0,l=0;if((e=h.event.fix(t)).type="mousewheel","detail"in t&&(o=-1*t.detail),"wheelDelta"in t&&(o=t.wheelDelta),"wheelDeltaY"in t&&(o=t.wheelDeltaY),"wheelDeltaX"in t&&(i=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(i=-1*o,o=0),r=0===o?i:o,"deltaY"in t&&(r=o=-1*t.deltaY),"deltaX"in t&&(i=t.deltaX,0===o&&(r=-1*i)),0!==o||0!==i){if(1===t.deltaMode){var c=h.data(this,"mousewheel-line-height");r*=c,o*=c,i*=c}else if(2===t.deltaMode){var u=h.data(this,"mousewheel-page-height");r*=u,o*=u,i*=u}if(a=Math.max(Math.abs(o),Math.abs(i)),(!g||a<g)&&(p(t,g=a)&&(g/=40)),p(t,a)&&(r/=40,i/=40,o/=40),r=Math[1<=r?"floor":"ceil"](r/g),i=Math[1<=i?"floor":"ceil"](i/g),o=Math[1<=o?"floor":"ceil"](o/g),y.settings.normalizeOffset&&this.getBoundingClientRect){var d=this.getBoundingClientRect();s=e.clientX-d.left,l=e.clientY-d.top}return e.deltaX=i,e.deltaY=o,e.deltaFactor=g,e.offsetX=s,e.offsetY=l,e.deltaMode=0,n.unshift(e,r,i,o),m&&clearTimeout(m),m=setTimeout(f,200),(h.event.dispatch||h.event.handle).apply(this,n)}}function f(){g=null}function p(e,t){return y.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var m,g,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],n="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],v=Array.prototype.slice;if(h.event.fixHooks)for(var r=e.length;r;)h.event.fixHooks[e[--r]]=h.event.mouseHooks;var y=h.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=n.length;e;)this.addEventListener(n[--e],t,!1);else this.onmousewheel=t;h.data(this,"mousewheel-line-height",y.getLineHeight(this)),h.data(this,"mousewheel-page-height",y.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=n.length;e;)this.removeEventListener(n[--e],t,!1);else this.onmousewheel=null;h.removeData(this,"mousewheel-line-height"),h.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=h(e),n=t["offsetParent"in h.fn?"offsetParent":"parent"]();return n.length||(n=h("body")),parseInt(n.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return h(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};h.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof e.define&&e.define.amd?e.define("jquery-mousewheel",["jquery"],t):"object"==typeof exports?module.exports=t:t(n),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,a){if(null==i.fn.select2){var s=["open","close","destroy"];i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);
10var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=a.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,r)}),-1<i.inArray(t,s)?this:n}}return null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return n.fn.select2.amd=e,t}),function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e||(e=window),t||(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t,e,e.document)}:n(jQuery,window,document)}(function(N,v,y,O){function o(t){var n,r,i={};N.each(t,function(e){(n=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(r=e.replace(n[0],n[2].toLowerCase()),i[r]=e,"o"===n[1]&&o(t[e]))}),t._hungarianMap=i}function w(t,n,r){var i;t._hungarianMap||o(t),N.each(n,function(e){(i=t._hungarianMap[e])===O||!r&&n[i]!==O||("o"===i.charAt(0)?(n[i]||(n[i]={}),N.extend(!0,n[i],n[e]),w(t[i],n[i],r)):n[i]=n[e])})}function x(e){var t=Ve.defaults.oLanguage,n=t.sDecimal;if(n&&Be(n),e){var r=e.sZeroRecords;!e.sEmptyTable&&r&&"No data available in table"===t.sEmptyTable&&Ne(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&r&&"Loading..."===t.sLoadingRecords&&Ne(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands),(e=e.sDecimal)&&n!==e&&Be(e)}}function S(e){if(ct(e,"ordering","bSort"),ct(e,"orderMulti","bSortMulti"),ct(e,"orderClasses","bSortClasses"),ct(e,"orderCellsTop","bSortCellsTop"),ct(e,"order","aaSorting"),ct(e,"orderFixed","aaSortingFixed"),ct(e,"paging","bPaginate"),ct(e,"pagingType","sPaginationType"),ct(e,"pageLength","iDisplayLength"),ct(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&
10(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":""),e=e.aoSearchCols)for(var t=0,n=e.length;t<n;t++)e[t]&&w(Ve.models.oSearch,e[t])}function C(e){ct(e,"orderable","bSortable"),ct(e,"orderData","aDataSort"),ct(e,"orderSequence","asSorting"),ct(e,"orderDataType","sortDataType");var t=e.aDataSort;"number"==typeof t&&!N.isArray(t)&&(e.aDataSort=[t])}function _(e){if(!Ve.__browser){var t={};Ve.__browser=t;var n=N("<div/>").css({position:"fixed",top:0,left:-1*N(v).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(N("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(N("<div/>").css({width:"100%",height:10}))).appendTo("body"),r=n.children(),i=r.children();t.barWidth=r[0].offsetWidth-r[0].clientWidth,t.bScrollOversize=100===i[0].offsetWidth&&100!==r[0].clientWidth,t.bScrollbarLeft=1!==Math.round(i.offset().left),t.bBounding=!!n[0].getBoundingClientRect().width,n.remove()}N.extend(e.oBrowser,Ve.__browser),e.oScroll.iBarWidth=Ve.__browser.barWidth}function n(e,t,n,r,i,o){var a,s=!1;for(n!==O&&(a=n,s=!0);r!==i;)e.hasOwnProperty(r)&&(a=s?t(a,e[r],r,e):e[r],s=!0,r+=o);return a}function T(e,t){var n=Ve.defaults.column,r=e.aoColumns.length;n=N.extend({},Ve.models.oColumn,n,{nTh:t||y.createElement("th"),sTitle:n.sTitle?n.sTitle:t?t.innerHTML:"",aDataSort:n.aDataSort?n.aDataSort:[r],mData:n.mData?n.mData:r,idx:r});e.aoColumns.push(n),(n=e.aoPreSearchCols)[r]=N.extend({},Ve.models.oSearch,n[r]),k(e,r,N(t).data())}function k(e,t,n){t=e.aoColumns[t];var r=e.oClasses,i=N(t.nTh);if(!t.sWidthOrig){t.sWidthOrig=i.attr("width")||null;var o=(i.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);o&&(t.sWidthOrig=o[1])}n!==O&&null!==n&&(C(n),w(Ve.defaults.column,n),n.mDataProp!==O&&!n.mData&&(n.mData=n.mDataProp),n.sType&&(t._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),n.sClass&&i.addClass(n.sClass),N.extend(t,n),Ne(t,n,"sWidth","sWidthOrig"),n.iDataSort!==O&&(t.aDataSort=[n.iDataSort]),Ne(t,n,"aDataSort"));var a=t.mData,s=R(a),l=t.mRender?R(t.mRender):null;n=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};t._bAttrSrc=N.isPlainObject(a)&&(n(a.sort)||n(a.type)||n(a.filter)),t._setter=null,t.fnGetData=function(e,t,n){var r=s(e,t,O,n);return l&&t?l(r,t,e,n):r},t.fnSetData=function(e,t,n){return p(a)(e,t,n)},"number"!=typeof a&&(e._rowReadObject=!0),e.oFeatures.bSort||(t.bSortable=!1,i.addClass(r.sSortableNone)),e=-1!==N.inArray("asc",t.asSorting),n=-1!==N.inArray("desc",t.asSorting),t.bSortable&&(e||n)?e&&!n?(t.sSortingClass=r.sSortableAsc,t.sSortingClassJUI=r.sSortJUIAscAllowed):!e&&n?(t.sSortingClass=r.sSortableDesc,t.sSortingClassJUI=r.sSortJUIDescAllowed):(t.sSortingClass=r.sSortable,t.sSortingClassJUI=r.sSortJUI):(t.sSortingClass=r.sSortableNone,t.sSortingClassJUI="")}function M(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;ge(e);for(var n=0,r=t.length;n<r;n++)t[n].nTh.style.width=t[n].sWidth}(""!==(t=e.oScroll).sY||""!==t.sX)&&pe(e),Re(e,null,"column-sizing",[e])}function P(e,t){var n=D(e,"bVisible");return"number"==typeof n[t]?n[t]:null}function c(e,t){var n=D(e,"bVisible");return-1!==(n=N.inArray(t,n))?n:null}function b(e){var n=0;return N.each(e.aoColumns,function(e,t){t.bVisible&&"none"!==N(t.nTh).css("display")&&n++}),n}function D(e,n){var r=[];return N.map(e.aoColumns,function(e,t){e[n]&&r.push(t)}),r}function a(e){var t,n,r,i,o,a,s,l,c,u=e.aoColumns,d=e.aoData,h=Ve.ext.type.detect;for(t=0,n=u.length;t<n;t++)if(c=[],!(s=u[t]).sType&&s._sManualType)s.sType=s._sManualType;else if(!s.sType){for(r=0,i=h.length;r<i;r++){for(o=0,a=d.length;o<a&&(c[o]===O&&(c[o]=I(e,o,t,"type")),(l=h[r](c[o],e))||r===h.length-1)&&"html"!==l;o++);if(l){s.sType=l;break}}s.sType||(s.sType="string")}}function E(e,t,n,r){var i,o,a,s,l,c,u=e.aoColumns;if(t)for(i=t.length-1;0<=i;i--){var d=(c=t[i]).targets!==O?c.targets:c.aTargets;for(N.isArray(d)||(d=[d]),o=0,a=d.length;o<a;o++)if("number"==typeof d[o]&&0<=d[o]){for(;u.length<=d[o];)T(e);r(d[o],c)}else if("number"==typeof d[o]&&d[o]<0)r(u.length+d[o],c);else if("string"==typeof d[o])for(s=0,l=u.length;s<l;s++)("_all"==d[o]||N(u[s].nTh).hasClass(d[o]))&&r(s,c)}if(n)for(i=0,e=n.length;i<e;i++)r(i,n[i])}function A(e,t,n,r){var i=e.aoData.length,o=N.extend(!0,{},Ve.models.oRow,{src:n?"dom":"data",idx:i});o._aData=t,e.aoData.push(o);for(var a=e.aoColumns,s=0,l=a.length;s<l;s++)a[s].sType=null;return e.aiDisplayMaster.push(i),(t=e.rowIdFn(t))!==O&&(e.aIds[t]=o),(n||!e.oFeatures.bDeferRender)&&g(e,i,n,r),i}function L(n,e){var r;return e instanceof N||(e=N(e)),e.map(function(e,t){return r=l(n,t),A(n,r.data,t,r.cells)})}function I(e,t,n,r){var i=e.iDraw,o=e.aoColumns[n],a=e.aoData[t]._aData,s=o.sDefaultContent,l=o.fnGetData(a,r,{settings:e,row:t,col:n});if(l===O)return e.iDrawError!=i&&null===s&&(Ie(e,0,"Requested unknown parameter "+("function"==typeof o.mData?"{function}":"'"+o.mData+"'")+" for row "+t+", column "+n,4),e.iDrawError=i),s;if(l!==a&&null!==l||null===s||r===O){if("function"==typeof l)return l.call(a)}else l=s;return null===l&&"display"==r?"":l}function r(e,t,n,r){e.aoColumns[n].fnSetData(e.aoData[t]._aData,r,{settings:e,row:t,col:n})}function u(e){return N.map(e.match(/(\\.|[^\.])+/g)||[""],function(e){return e.replace(/\\\./g,".")})}function R(i){if(N.isPlainObject(i)){var o={};return N.each(i,function(e,t){t&&(o[e]=R(t))}),function(e,t,n,r){var i=o[t]||o._;return i!==O?i(e,t,n,r):e}}if(null===i)return function(e){return e};if("function"==typeof i)return function(e,t,n,r){return i(e,t,n,r)};if("string"!=typeof i||-1===i.indexOf(".")&&-1===i.indexOf("[")&&-1===i.indexOf("("))return function(e){return e[i]};var s=function(e,t,n){var r,i;if(""!==n)for(var o=0,a=(i=u(n)).length;o<a;
10o++){if(n=i[o].match(ut),r=i[o].match(dt),n){if(i[o]=i[o].replace(ut,""),""!==i[o]&&(e=e[i[o]]),r=[],i.splice(0,o+1),i=i.join("."),N.isArray(e))for(o=0,a=e.length;o<a;o++)r.push(s(e[o],t,i));e=""===(e=n[0].substring(1,n[0].length-1))?r:r.join(e);break}if(r)i[o]=i[o].replace(dt,""),e=e[i[o]]();else{if(null===e||e[i[o]]===O)return O;e=e[i[o]]}}return e};return function(e,t){return s(e,t,i)}}function p(r){if(N.isPlainObject(r))return p(r._);if(null===r)return function(){};if("function"==typeof r)return function(e,t,n){r(e,"set",t,n)};if("string"!=typeof r||-1===r.indexOf(".")&&-1===r.indexOf("[")&&-1===r.indexOf("("))return function(e,t){e[r]=t};var l=function(e,t,n){var r;r=(n=u(n))[n.length-1];for(var i,o,a=0,s=n.length-1;a<s;a++){if(i=n[a].match(ut),o=n[a].match(dt),i){if(n[a]=n[a].replace(ut,""),e[n[a]]=[],(r=n.slice()).splice(0,a+1),i=r.join("."),N.isArray(t))for(o=0,s=t.length;o<s;o++)l(r={},t[o],i),e[n[a]].push(r);else e[n[a]]=t;return}o&&(n[a]=n[a].replace(dt,""),e=e[n[a]](t)),null!==e[n[a]]&&e[n[a]]!==O||(e[n[a]]={}),e=e[n[a]]}r.match(dt)?e[r.replace(dt,"")](t):e[r.replace(ut,"")]=t};return function(e,t){return l(e,t,r)}}function m(e){return it(e.aoData,"_aData")}function s(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0,e.aIds={}}function d(e,t,n){for(var r=-1,i=0,o=e.length;i<o;i++)e[i]==t?r=i:e[i]>t&&e[i]--;-1!=r&&n===O&&e.splice(r,1)}function i(n,r,e,t){var i,o=n.aoData[r],a=function(e,t){for(;e.childNodes.length;)e.removeChild(e.firstChild);e.innerHTML=I(n,r,t,"display")};if("dom"!==e&&(e&&"auto"!==e||"dom"!==o.src)){var s=o.anCells;if(s)if(t!==O)a(s[t],t);else for(e=0,i=s.length;e<i;e++)a(s[e],e)}else o._aData=l(n,o,t,t===O?O:o._aData).data;if(o._aSortData=null,o._aFilterData=null,a=n.aoColumns,t!==O)a[t].sType=null;else{for(e=0,i=a.length;e<i;e++)a[e].sType=null;h(n,o)}}function l(e,t,n,r){var i,o,a,s=[],l=t.firstChild,c=0,u=e.aoColumns,d=e._rowReadObject,h=(r=r!==O?r:d?{}:[],function(e,t){if("string"==typeof e){var n=e.indexOf("@");-1!==n&&(n=e.substring(n+1),p(e)(r,t.getAttribute(n)))}}),f=function(e){n!==O&&n!==c||(o=u[c],a=N.trim(e.innerHTML),o&&o._bAttrSrc?(p(o.mData._)(r,a),h(o.mData.sort,e),h(o.mData.type,e),h(o.mData.filter,e)):d?(o._setter||(o._setter=p(o.mData)),o._setter(r,a)):r[c]=a),c++};if(l)for(;l;)"TD"!=(i=l.nodeName.toUpperCase())&&"TH"!=i||(f(l),s.push(l)),l=l.nextSibling;else for(l=0,i=(s=t.anCells).length;l<i;l++)f(s[l]);return(t=t.firstChild?t:t.nTr)&&(t=t.getAttribute("id"))&&p(e.rowId)(r,t),{data:r,cells:s}}function g(e,t,n,r){var i,o,a,s,l,c=e.aoData[t],u=c._aData,d=[];if(null===c.nTr){for(i=n||y.createElement("tr"),c.nTr=i,c.anCells=d,i._DT_RowIndex=t,h(e,c),s=0,l=e.aoColumns.length;s<l;s++)a=e.aoColumns[s],(o=n?r[s]:y.createElement(a.sCellType))._DT_CellIndex={row:t,column:s},d.push(o),n&&!a.mRender&&a.mData===s||N.isPlainObject(a.mData)&&a.mData._===s+".display"||(o.innerHTML=I(e,t,s,"display")),a.sClass&&(o.className+=" "+a.sClass),a.bVisible&&!n?i.appendChild(o):!a.bVisible&&n&&o.parentNode.removeChild(o),a.fnCreatedCell&&a.fnCreatedCell.call(e.oInstance,o,I(e,t,s),u,t,s);Re(e,"aoRowCreatedCallback",null,[i,u,t,d])}c.nTr.setAttribute("role","row")}function h(e,t){var n=t.nTr,r=t._aData;if(n){var i=e.rowIdFn(r);i&&(n.id=i),r.DT_RowClass&&(i=r.DT_RowClass.split(" "),t.__rowc=t.__rowc?lt(t.__rowc.concat(i)):i,N(n).removeClass(t.__rowc.join(" ")).addClass(r.DT_RowClass)),r.DT_RowAttr&&N(n).attr(r.DT_RowAttr),r.DT_RowData&&N(n).data(r.DT_RowData)}}function f(e){var t,n,r,i,o,a=e.nTHead,s=e.nTFoot,l=0===N("th, td",a).length,c=e.oClasse
10s,u=e.aoColumns;for(l&&(i=N("<tr/>").appendTo(a)),t=0,n=u.length;t<n;t++)o=u[t],r=N(o.nTh).addClass(o.sClass),l&&r.appendTo(i),e.oFeatures.bSort&&(r.addClass(o.sSortingClass),!1!==o.bSortable&&(r.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),Te(e,o.nTh,t))),o.sTitle!=r[0].innerHTML&&r.html(o.sTitle),He(e,"header")(e,r,o,c);if(l&&B(e.aoHeader,a),N(a).find(">tr").attr("role","row"),N(a).find(">tr>th, >tr>td").addClass(c.sHeaderTH),N(s).find(">tr>th, >tr>td").addClass(c.sFooterTH),null!==s)for(t=0,n=(e=e.aoFooter[0]).length;t<n;t++)(o=u[t]).nTf=e[t].cell,o.sClass&&N(o.nTf).addClass(o.sClass)}function j(e,t,n){var r,i,o,a,s=[],l=[],c=e.aoColumns.length;if(t){for(n===O&&(n=!1),r=0,i=t.length;r<i;r++){for(s[r]=t[r].slice(),s[r].nTr=t[r].nTr,o=c-1;0<=o;o--)!e.aoColumns[o].bVisible&&!n&&s[r].splice(o,1);l.push([])}for(r=0,i=s.length;r<i;r++){if(e=s[r].nTr)for(;o=e.firstChild;)e.removeChild(o);for(o=0,t=s[r].length;o<t;o++)if(a=c=1,l[r][o]===O){for(e.appendChild(s[r][o].cell),l[r][o]=1;s[r+c]!==O&&s[r][o].cell==s[r+c][o].cell;)l[r+c][o]=1,c++;for(;s[r][o+a]!==O&&s[r][o].cell==s[r][o+a].cell;){for(n=0;n<c;n++
11)l[r+n][o+a]=1;a++}N(s[r][o].cell).attr("rowspan",c).attr("colspan",a)}}}}function H(e){var t=Re(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==N.inArray(!1,t))he(e,!1);else{t=[];var n=0,r=e.asStripeClasses,i=r.length,o=e.oLanguage,a=e.iInitDisplayStart,s="ssp"==Fe(e),l=e.aiDisplay;e.bDrawing=!0,a!==O&&-1!==a&&(e._iDisplayStart=s?a:a>=e.fnRecordsDisplay()?0:a,e.iInitDisplayStart=-1);a=e._iDisplayStart;var c=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,he(e,!1);else if(s){if(!e.bDestroying&&!U(e))return}else e.iDraw++;if(0!==l.length)for(o=s?e.aoData.length:c,s=s?0:a;s<o;s++){var u=l[s],d=e.aoData[u];null===d.nTr&&g(e,u);var h=d.nTr;if(0!==i){var f=r[n%i];d._sRowStripe!=f&&(N(h).removeClass(d._sRowStripe).addClass(f),d._sRowStripe=f)}Re(e,"aoRowCallback",null,[h,d._aData,n,s,u]),t.push(h),n++}else n=o.sZeroRecords,1==e.iDraw&&"ajax"==Fe(e)?n=o.sLoadingRecords:o.sEmptyTable&&0===e.fnRecordsTotal()&&(n=o.sEmptyTable),t[0]=N("<tr/>",{"class":i?r[0]:""}).append(N("<td />",{valign:"top",colSpan:b(e),"class":e.oClasses.sRowEmpty}).html(n))[0];Re(e,"aoHeaderCallback","header",[N(e.nTHead).children("tr")[0],m(e),a,c,l]),Re(e,"aoFooterCallback","footer",[N(e.nTFoot).children("tr")[0],m(e),a,c,l]),(r=N(e.nTBody)).children().detach(),r.append(N(t)),Re(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function F(e,t){var n=e.oFeatures,r=n.bFilter;n.bSort&&Se(e),r?Y(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,H(e),e._drawHold=!1}function q(e){var t=e.oClasses,n=N(e.nTable),r=(n=N("<div/>").insertBefore(n),e.oFeatures),i=N("<div/>",{id:e.sTableId+"_wrapper","class":t.sWrapper+(e.nTFoot?"":" "+t.sNoFooter)});e.nHolding=n[0],e.nTableWrapper=i[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var o,a,s,l,c,u,d=e.sDom.split(""),h=0;h<d.length;h++){if(o=null,"<"==(a=d[h])){if(s=N("<div/>")[0],"'"==(l=d[h+1])||'"'==l){for(c="",u=2;d[h+u]!=l;)c+=d[h+u],u++;"H"==c?c=t.sJUIHeader:"F"==c&&(c=t.sJUIFooter),-1!=c.indexOf(".")?(l=c.split("."),s.id=l[0].substr(1,l[0].length-1),s.className=l[1]):"#"==c.charAt(0)?s.id=c.substr(1,c.length-1):s.className=c,h+=u}i.append(s),i=N(s)}else if(">"==a)i=i.parent();else if("l"==a&&r.bPaginate&&r.bLengthChange)o=le(e);else if("f"==a&&r.bFilter)o=G(e);else if("r"==a&&r.bProcessing)o=de(e);else if("t"==a)o=fe(e);else if("i"==a&&r.bInfo)o=ne(e);else if("p"==a&&r.bPaginate)o=ce(e);else if(0!==Ve.ext.feature.length)for(u=0,l=(s=Ve.ext.feature).length;u<l;u++)if(a==s[u].cFeature){o=s[u].fnInit(e);break}o&&((s=e.aanFeatures)[a]||(s[a]=[]),s[a].push(o),i.append(o))}n.replaceWith(i),e.nHolding=null}function B(e,t){var n,r,i,o,a,s,l,c,u,d,h=N(t).children("tr");for(e.splice(0,e.length),i=0,s=h.length;i<s;i++)e.push([]);for(i=0,s=h.length;i<s;i++)for(r=(n=h[i]).firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase()){for(c=(c=1*r.getAttribute("colspan"))&&0!==c&&1!==c?c:1,u=(u=1*r.getAttribute("rowspan"))&&0!==u&&1!==u?u:1,o=0,a=e[i];a[o];)o++;for(l=o,d=1===c,a=0;a<c;a++)for(o=0;o<u;o++)e[i+o][l+a]={cell:r,unique:d},e[i+o].nTr=n}r=r.nextSibling}}function W(e,t,n){var r=[];n||(n=e.aoHeader,t&&B(n=[],t));t=0;for(var i=n.length;t<i;t++)for(var o=0,a=n[t].length;o<a;o++)!n[t][o].unique||r[o]&&e.bSortCellsTop||(r[o]=n[t][o].cell);return r}function $(r,e,t){if(Re(r,"aoServerParams","serverParams",[e]),e&&N.isArray(e)){var i={},o=/(.*?)\[\]$/;N.each(e,function(e,t){var n=t.name.match(o);n?(n=n[0],i[n]||(i[n]=[]),i[n].push(t.value)):i[t.name]=t.value}),e=i}var n,a=r.ajax,s=r.oInstance,l=function(e){Re(r,null,"xhr",[r,e,r.jqXHR]),t(e)};if(N.isPlainObject(a)&&a.data){var c="function"==typeof(n=a.data)?n(e,r):n;e="function"==typeof n&&c?c:N.extend(!0,e,c);delete a.data}c={data:e,success:function(e){var t=e.error||e.sError;t&&Ie(r,0,t),r.json=e,l(e)},dataType:"json",cache:!1,type:r.sServerMethod,error:function(e,t){var n=Re(r,null,"xhr",[r,null,r.jqXHR]);-1===N.inArray(!0,n)&&("parsererror"==t?Ie(r,0,"Invalid JSON response",1):4===e.readyState&&Ie(r,0,"Ajax error",7)),he(r,!1)}},r.oAjaxData=e,Re(r,null,"preXhr",[r,e]),r.fnServerData?r.fnServerData.call(s,r.sAjaxSource,N.map(e,function(e,t){return{name:t,value:e}}),l,r):r.sAjaxSource||"string"==typeof a?r.jqXHR=N.ajax(N.extend(c,{url:a||r.sAjaxSource})):"function"==typeof a?r.jqXHR=a.call(s,e,l,r):(r.jqXHR=N.ajax(N.extend(c,a)),a.data=n)}function U(t){return!t.bAjaxDataGet||(t.iDraw++,he(t,!0),$(t,e(t),function(e){z(t,e)}),!1)}function e(e){var t,n,r,i,o=e.aoColumns,a=o.length,s=e.oFeatures,l=e.oPreviousSearch,c=e.aoPreSearchCols,u=[],d=xe(e);t=e._iDisplayStart,n=!1!==s.bPaginate?e._iDisplayLength:-1;var h=function(e,t){u.push({name:e,value:t})};h("sEcho",e.iDraw),h("iColumns",a),h("sColumns",it(o,"sName").join(",")),h("iDisplayStart",t),h("iDisplayLength",
11n);var f={draw:e.iDraw,columns:[],order:[],start:t,length:n,search:{value:l.sSearch,regex:l.bRegex}};for(t=0;t<a;t++)r=o[t],i=c[t],n="function"==typeof r.mData?"function":r.mData,f.columns.push({data:n,name:r.sName,searchable:r.bSearchable,orderable:r.bSortable,search:{value:i.sSearch,regex:i.bRegex}}),h("mDataProp_"+t,n),s.bFilter&&(h("sSearch_"+t,i.sSearch),h("bRegex_"+t,i.bRegex),h("bSearchable_"+t,r.bSearchable)),s.bSort&&h("bSortable_"+t,r.bSortable);return s.bFilter&&(h("sSearch",l.sSearch),h("bRegex",l.bRegex)),s.bSort&&(N.each(d,function(e,t){f.order.push({column:t.col,dir:t.dir}),h("iSortCol_"+e,t.col),h("sSortDir_"+e,t.dir)}),h("iSortingCols",d.length)),null===(o=Ve.ext.legacy.ajax)?e.sAjaxSource?u:f:o?u:f}function z(e,t){var n=V(e,t),r=t.sEcho!==O?t.sEcho:t.draw,i=t.iTotalRecords!==O?t.iTotalRecords:t.recordsTotal,o=t.iTotalDisplayRecords!==O?t.iTotalDisplayRecords:t.recordsFiltered;if(r){if(1*r<e.iDraw)return;e.iDraw=1*r}for(s(e),e._iRecordsTotal=parseInt(i,10),e._iRecordsDisplay=parseInt(o,10),r=0,i=n.length;r<i;r++)A(e,n[r]);e.aiDisplay=e.aiDisplayMaster.slice(),e.bAjaxDataGet=!1,H(e),e._bInitComplete||ae(e,t),e.bAjaxDataGet=!0,he(e,!1)}function V(e,t){var n=N.isPlainObject(e.ajax)&&e.ajax.dataSrc!==O?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===n?t.aaData||t[n]:""!==n?R(n)(t):t}function G(n){var e=n.oClasses,t=n.sTableId,r=n.oLanguage,i=n.oPreviousSearch,o=n.aanFeatures,a='<input type="search" class="'+e.sFilterInput+'"/>',s=(s=r.sSearch).match(/_INPUT_/)?s.replace("_INPUT_",a):s+a,l=(e=N("<div/>",{id:o.f?null:t+"_filter","class":e.sFilter}).append(N("<label/>").append(s)),o=function(){var e=this.value?this.value:"";e!=i.sSearch&&(Y(n,{sSearch:e,bRegex:i.bRegex,bSmart:i.bSmart,bCaseInsensitive:i.bCaseInsensitive}),n._iDisplayStart=0,H(n))},a=null!==n.searchDelay?n.searchDelay:"ssp"===Fe(n)?400:0,N("input",e).val(i.sSearch).attr("placeholder",r.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",a?gt(o,a):o).on("keypress.DT",function(e){if(13==e.keyCode)return!1}).attr("aria-controls",t));return N(n.nTable).on("search.dt.DT",function(e,t){if(n===t)try{l[0]!==y.activeElement&&l.val(i.sSearch)}catch(r){}}),e[0]}function Y(e,t,n){var r=e.oPreviousSearch,i=e.aoPreSearchCols,o=function(e){r.sSearch=e.sSearch,r.bRegex=e.bRegex,r.bSmart=e.bSmart,r.bCaseInsensitive=e.bCaseInsensitive};if(a(e),"ssp"!=Fe(e)){for(Q(e,t.sSearch,n,t.bEscapeRegex!==O?!t.bEscapeRegex:t.bRegex,t.bSmart,t.bCaseInsensitive),o(t),t=0;t<i.length;t++)K(e,i[t].sSearch,t,i[t].bEscapeRegex!==O?!i[t].bEscapeRegex:i[t].bRegex,i[t].bSmart,i[t].bCaseInsensitive);X(e)}else o(t);e.bFiltered=!0,Re(e,null,"search",[e])}function X(e){for(var t,n,r=Ve.ext.search,i=e.aiDisplay,o=0,a=r.length;o<a;o++){for(var s=[],l=0,c=i.length;l<c;l++)n=i[l],t=e.aoData[n],r[o](e,t._aFilterData,n,t._aData,l)&&s.push(n);i.length=0,N.merge(i,s)}}function K(e,t,n,r,i,o){if(""!==t){var a=[],s=e.aiDisplay;for(r=J(t,r,i,o),i=0;i<s.length;i++)t=e.aoData[s[i]]._aFilterData[n],r.test(t)&&a.push(s[i]);e.aiDisplay=a}}function Q(e,t,n,r,i,o){r=J(t,r,i,o),o=e.oPreviousSearch.sSearch;var a,s=e.aiDisplayMaster;i=[];if(0!==Ve.ext.search.length&&(n=!0),a=Z(e),t.length<=0)e.aiDisplay=s.slice();else{for((a||n||o.length>t.length||0!==t.indexOf(o)||e.bSorted)&&(e.aiDisplay=s.slice()),t=e.aiDisplay,n=0;n<t.length;n++)r.test(e.aoData[t[n]]._sFilterRow)&&i.push(t[n]);e.aiDisplay=i}}function J(e,t,n,r){return e=t?e:ht(e),n&&(e="^(?=.*?"+N.map(e.match(/"[^"]+"|[^ ]+/g)||[""],function(e){if('"'===e.charAt(0)){var t=e.match(/^"(.*)"$/);e=t?t[1]:e}return e.replace('"',"")}).join(")(?=.*?")+").*$"),RegExp(e,r?"i":"")}function Z(e){var t,n,r,i,o,a,s,l,c=e.aoColumns,u=Ve.ext.type.search;for(t=!1,n=0,i=e.aoData.length;n<i;n++)if(!(l=e.aoData[n])._aFilterData){for(a=[],r=0,o=c.length;r<o;r++)(t=c[r]).bSearchable?(s=I(e,n,r,"filter"),u[t.sType]&&(s=u[t.sType](s)),null===s&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(ft.innerHTML=s,s=pt?ft.textContent:ft.innerText),s.replace&&(s=s.replace(/[\r\n]/g,"")),a.push(s);l._aFilterData=a,l._sFilterRow=a.join("  "),t=!0}return t}function ee(e){return{search:e.sSearch,smart:e.bSmart,regex:e.bRegex,caseInsensitive:e.bCaseInsensitive}}function te(e){return{sSearch:e.search,bSmart:e.smart,bRegex:e.regex,bCaseInsensitive:e.caseInsensitive}}function ne(e){var t=e.sTableId,n=e.aanFeatures.i,r=N("<div/>
11",{"class":e.oClasses.sInfo,id:n?null:t+"_info"});return n||(e.aoDrawCallback.push({fn:re,sName:"information"}),r.attr("role","status").attr("aria-live","polite"),N(e.nTable).attr("aria-describedby",t+"_info")),r[0]}function re(e){var t=e.aanFeatures.i;if(0!==t.length){var n=e.oLanguage,r=e._iDisplayStart+1,i=e.fnDisplayEnd(),o=e.fnRecordsTotal(),a=e.fnRecordsDisplay(),s=a?n.sInfo:n.sInfoEmpty;a!==o&&(s+=" "+n.sInfoFiltered),s=ie(e,s+=n.sInfoPostFix),null!==(n=n.fnInfoCallback)&&(s=n.call(e.oInstance,e,r,i,o,a,s)),N(t).html(s)}}function ie(e,t){var n=e.fnFormatNumber,r=e._iDisplayStart+1,i=e._iDisplayLength,o=e.fnRecordsDisplay(),a=-1===i;return t.replace(/_START_/g,n.call(e,r)).replace(/_END_/g,n.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,n.call(e,e.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(e,o)).replace(/_PAGE_/g,n.call(e,a?1:Math.ceil(r/i))).replace(/_PAGES_/g,n.call(e,a?1:Math.ceil(o/i)))}function oe(n){var r,e,t,i=n.iInitDisplayStart,o=n.aoColumns;e=n.oFeatures;var a=n.bDeferLoading;if(n.bInitialised){for(q(n),f(n),j(n,n.aoHeader),j(n,n.aoFooter),he(n,!0),e.bAutoWidth&&ge(n),r=0,e=o.length;r<e;r++)(t=o[r]).sWidth&&(t.nTh.style.width=we(t.sWidth));Re(n,null,"preInit",[n]),F(n),("ssp"!=(o=Fe(n))||a)&&("ajax"==o?$(n,[],function(e){var t=V(n,e);for(r=0;r<t.length;r++)A(n,t[r]);n.iInitDisplayStart=i,F(n),he(n,!1),ae(n,e)},n):(he(n,!1),ae(n)))}else setTimeout(function(){oe(n)},200)}function ae(e,t){e._bInitComplete=!0,(t||e.oInit.aaData)&&M(e),Re(e,null,"plugin-init",[e,t]),Re(e,"aoInitComplete","init",[e,t])}function se(e,t){var n=parseInt(t,10);e._iDisplayLength=n,je(e),Re(e,null,"length",[e,n])}function le(r){for(var e=r.oClasses,t=r.sTableId,n=r.aLengthMenu,i=(o=N.isArray(n[0]))?n[0]:n,o=(n=o?n[1]:n,N("<select/>",{name:t+"_length","aria-controls":t,"class":e.sLengthSelect})),a=0,s=i.length;a<s;a++)o[0][a]=new Option("number"==typeof n[a]?r.fnFormatNumber(n[a]):n[a],i[a]);var l=N("<div><label/></div>").addClass(e.sLength);return r.aanFeatures.l||(l[0].id=t+"_length"),l.children().append(r.oLanguage.sLengthMenu.replace("_MENU_",o[0].outerHTML)),N("select",l).val(r._iDisplayLength).on("change.DT",function(){se(r,N(this).val()),H(r)}),N(r.nTable).on("length.dt.DT",function(e,t,n){r===t&&N("select",l).val(n)}),l[0]}function ce(e){var t=e.sPaginationType,a=Ve.ext.pager[t],s="function"==typeof a,l=function(e){H(e)},c=(t=N("<div/>").addClass(e.oClasses.sPaging+t)[0],e.aanFeatures);return s||a.fnInit(e,t,l),c.p||(t.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(e){if(s){var t,n=e._iDisplayStart,r=e._iDisplayLength,i=e.fnRecordsDisplay(),o=(n=(o=-1===r)?0:Math.ceil(n/r),r=o?1:Math.ceil(i/r),i=a(n,r),0);for(t=c.p.length;o<t;o++)He(e,"pageButton")(e,c.p[o],o,i,n,r)}else a.fnUpdate(e,l)},sName:"pagination"})),t}function ue(e,t,n){var r=e._iDisplayStart,i=e._iDisplayLength,o=e.fnRecordsDisplay();return 0===o||-1===i?r=0:"number"==typeof t?o<(r=t*i)&&(r=0):"first"==t?r=0:"previous"==t?(r=0<=i?r-i:0)<0&&(r=0):"next"==t?r+i<o&&(r+=i):"last"==t?r=Math.floor((o-1)/i)*i:Ie(e,0,"Unknown paging action: "+t,5),t=e._iDisplayStart!==r,e._iDisplayStart=r,t&&(Re(e,null,"page",[e]),n&&H(e)),t}function de(e){return N("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing","class":e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function he(e,t){e.oFeatures.bProcessing&&N(e.aanFeatures.r).css("display",t?"block":"none"),Re(e,null,"processing",[e,t])}function fe(e){(u=N(e.nTable)).attr("role","grid");var t=e.oScroll;if(""===t.sX&&""===t.sY)return e.nTable;
11var n=t.sX,r=t.sY,i=e.oClasses,o=u.children("caption"),a=o.length?o[0]._captionSide:null,s=N(u[0].cloneNode(!1)),l=N(u[0].cloneNode(!1)),c=u.children("tfoot");c.length||(c=null),s=N("<div/>",{"class":i.sScrollWrapper}).append(N("<div/>",{"class":i.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:n?n?we(n):null:"100%"}).append(N("<div/>",{"class":i.sScrollHeadInner}).css({"box-sizing":"content-box",width:t.sXInner||"100%"}).append(s.removeAttr("id").css("margin-left",0).append("top"===a?o:null).append(u.children("thead"))))).append(N("<div/>",{"class":i.sScrollBody}).css({position:"relative",overflow:"auto",width:n?we(n):null}).append(u)),c&&s.append(N("<div/>",{"class":i.sScrollFoot}).css({overflow:"hidden",border:0,width:n?n?we(n):null:"100%"}).append(N("<div/>",{"class":i.sScrollFootInner}).append(l.removeAttr("id").css("margin-left",0).append("bottom"===a?o:null).append(u.children("tfoot")))));var u,d=(u=s.children())[0],h=(i=u[1],c?u[2]:null);return n&&N(i).on("scroll.DT",function(){var e=this.scrollLeft;d.scrollLeft=e,c&&(h.scrollLeft=e)}),N(i).css(r&&t.bCollapse?"max-height":"height",r),e.nScrollHead=d,e.nScrollBody=i,e.nScrollFoot=h,e.aoDrawCallback.push({fn:pe,sName:"scrolling"}),s[0]}function pe(n){var e,t,r,i,o,a=(c=n.oScroll).sX,s=c.sXInner,l=c.sY,c=c.iBarWidth,u=N(n.nScrollHead),d=u[0].style,h=(p=u.children("div"))[0].style,f=p.children("table"),p=n.nScrollBody,m=N(p),g=p.style,v=N(n.nScrollFoot).children("div"),y=v.children("table"),b=N(n.nTHead),w=N(n.nTable),x=w[0],S=x.style,C=n.nTFoot?N(n.nTFoot):null,_=n.oBrowser,T=_.bScrollOversize,k=it(n.aoColumns,"nTh"),D=[],E=[],A=[],L=[],I=function(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0};t=p.scrollHeight>p.clientHeight,n.scrollBarVis!==t&&n.scrollBarVis!==O?(n.scrollBarVis=t,M(n)):(n.scrollBarVis=t,w.children("thead, tfoot").remove(),C&&(r=C.clone().prependTo(w),e=C.find("tr"),r=r.find("tr")),i=b.clone().prependTo(w),b=b.find("tr"),t=i.find("tr"),i.find("th, td").removeAttr("tabindex"),a||(g.width="100%",u[0].style.width="100%"),N.each(W(n,i),function(e,t){o=P(n,e),t.style.width=n.aoColumns[o].sWidth}),C&&me(function(e){e.style.width=""},r),u=w.outerWidth(),""===a?(S.width="100%",T&&(w.find("tbody").height()>p.offsetHeight||"scroll"==m.css("overflow-y"))&&(S.width=we(w.outerWidth()-c)),u=w.outerWidth()):""!==s&&(S.width=we(s),u=w.outerWidth()),me(I,t),me(function(e){A.push(e.innerHTML),D.push(we(N(e).css("width")))},t),me(function(e,t){-1!==N.inArray(e,k)&&(e.style.width=D[t])},b),N(t).height(0),C&&(me(I,r),me(function(e){L.push(e.innerHTML),E.push(we(N(e).css("width")))},r),me(function(e,t){e.style.width=E[t]},e),N(r).height(0)),me(function(e,t){e.innerHTML='<div class="dataTables_sizing">'+A[t]+"</div>",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=D[t]},t),C&&me(function(e,t){e.innerHTML='<div class="dataTables_sizing">'+L[t]+"</div>",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=E[t]},r),w.outerWidth()<u?(e=p.scrollHeight>p.offsetHeight||"scroll"==m.css("overflow-y")?u+c:u,T&&(p.scrollHeight>p.offsetHeight||"scroll"==m.css("overflow-y"))&&(S.width=we(e-c)),(""===a||""!==s)&&Ie(n,1,"Possible column misalignment",6)):e="100%",g.width=we(e),d.width=we(e),C&&(n.nScrollFoot.style.width=we(e)),!l&&T&&(g.height=we(x.offsetHeight+c)),a=w.outerWidth(),f[0].style.width=we(a),h.width=we(a),s=w.height()>p.clientHeight||"scroll"==m.css("overflow-y"),h[l="padding"+(_.bScrollbarLeft?"Left":"Right")]=s?c+"px":"0px",C&&(y[0].style.width=we(a),v[0].style.width=we(a),v[0].style[l]=s?c+"px":"0px"),w.children("colgroup").insertBefore(w.children("thead")),m.scroll(),!n.bSorted&&!n.bFiltered||n._drawHold||(p.scrollTop=0))}function me(e,t,n){for(var r,i,o=0,a=0,s=t.length;a<s;){for(r=t[a].firstChild,i=n?n[a].firstChild:null;r;)1===r.nodeType&&(n?e(r,i,o):e(r,o),o++),r=r.nextSibling,i=n?i.nextSibling:null;a++}}function ge(e){var t,n,r=e.nTable,i=e.aoColumns,o=(m=e.oScroll).sY,a=m.sX,s=m.sXInner,l=i.length,c=D(e,"bVisible"),u=N("th",e.nTHead),d=r.getAttribute("width"),h=r.parentNode,f=!1,p=e.oBrowser,m=p.bScrollOversize;
11for((t=r.style.width)&&-1!==t.indexOf("%")&&(d=t),t=0;t<c.length;t++)null!==(n=i[c[t]]).sWidth&&(n.sWidth=ve(n.sWidthOrig,h),f=!0);if(m||!f&&!a&&!o&&l==b(e)&&l==u.length)for(t=0;t<l;t++)null!==(c=P(e,t))&&(i[c].sWidth=we(u.eq(t).width()));else{(l=N(r).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove();var g=N("<tr/>").appendTo(l.find("tbody"));for(l.find("thead, tfoot").remove(),l.append(N(e.nTHead).clone()).append(N(e.nTFoot).clone()),l.find("tfoot th, tfoot td").css("width",""),u=W(e,l.find("thead")[0]),t=0;t<c.length;t++)n=i[c[t]],u[t].style.width=null!==n.sWidthOrig&&""!==n.sWidthOrig?we(n.sWidthOrig):"",n.sWidthOrig&&a&&N(u[t]).append(N("<div/>").css({width:n.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(e.aoData.length)for(t=0;t<c.length;t++)n=i[f=c[t]],N(ye(e,f)).clone(!1).append(n.sContentPadding).appendTo(g);for(N("[name]",l).removeAttr("name"),n=N("<div/>").css(a||o?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(l).appendTo(h),a&&s?l.width(s):a?(l.css("width","auto"),l.removeAttr("width"),l.width()<h.clientWidth&&d&&l.width(h.clientWidth)):o?l.width(h.clientWidth):d&&l.width(d),t=o=0;t<c.length;t++)s=(h=N(u[t])).outerWidth()-h.width(),o+=h=p.bBounding?Math.ceil(u[t].getBoundingClientRect().width):h.outerWidth(),i[c[t]].sWidth=we(h-s);r.style.width=we(o),n.remove()}d&&(r.style.width=we(d)),!d&&!a||e._reszEvt||(r=function(){N(v).on("resize.DT-"+e.sInstance,gt(function(){M(e)}))},m?setTimeout(r,1e3):r(),e._reszEvt=!0)}function ve(e,t){if(!e)return 0;var n=N("<div/>").css("width",we(e)).appendTo(t||y.body),r=n[0].offsetWidth;return n.remove(),r}function ye(e,t){var n=be(e,t);if(n<0)return null;var r=e.aoData[n];return r.nTr?r.anCells[t]:N("<td/>").html(I(e,n,t,"display"))[0]}function be(e,t){for(var n,r=-1,i=-1,o=0,a=e.aoData.length;o<a;o++)(n=(n=(n=I(e,o,t,"display")+"").replace(mt,"")).replace(/&nbsp;/g," ")).length>r&&(r=n.length,i=o);return i}function we(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function xe(e){var t,n,r,i,o,a,s=[],l=e.aoColumns;t=e.aaSortingFixed,n=N.isPlainObject(t);var c=[];for(r=function(e){e.length&&!N.isArray(e[0])?c.push(e):N.merge(c,e)},N.isArray(t)&&r(t),n&&t.pre&&r(t.pre),r(e.aaSorting),n&&t.post&&r(t.post),e=0;e<c.length;e++)for(t=0,n=(r=l[a=c[e][0]].aDataSort).length;t<n;t++)o=l[i=r[t]].sType||"string",c[e]._idx===O&&(c[e]._idx=N.inArray(c[e][1],l[i].asSorting)),s.push({src:a,col:i,dir:c[e][1],index:c[e]._idx,type:o,formatter:Ve.ext.type.order[o+"-pre"]});return s}function Se(e){var t,n,r,c,u=[],d=Ve.ext.type.order,h=e.aoData,i=0,o=e.aiDisplayMaster;for(a(e),t=0,n=(c=xe(e)).length;t<n;t++)(r=c[t]).formatter&&i++,De(e,r.col);if("ssp"!=Fe(e)&&0!==c.length){for(t=0,n=o.length;t<n;t++)u[o[t]]=t;i===c.length?o.sort(function(e,t){var n,r,i,o,a=c.length,s=h[e]._aSortData,l=h[t]._aSortData;for(i=0;i<a;i++)if(0!==(n=(n=s[(o=c[i]).col])<(r=l[o.col])?-1:r<n?1:0))return"asc"===o.dir?n:-n;return(n=u[e])<(r=u[t])?-1:r<n?1:0}):o.sort(function(e,t){var n,r,i,o,a=c.length,s=h[e]._aSortData,l=h[t]._aSortData;for(i=0;i<a;i++)if(n=s[(o=c[i]).col],r=l[o.col],0!==(n=(o=d[o.type+"-"+o.dir]||d["string-"+o.dir])(n,r)))return n;return(n=u[e])<(r=u[t])?-1:r<n?1:0})}e.bSorted=!0}
11function Ce(e){for(var t,n,r=e.aoColumns,i=xe(e),o=(e=e.oLanguage.oAria,0),a=r.length;o<a;o++){var s=(n=r[o]).asSorting;t=n.sTitle.replace(/<.*?>/g,"");var l=n.nTh;l.removeAttribute("aria-sort"),n.bSortable&&(0<i.length&&i[0].col==o?(l.setAttribute("aria-sort","asc"==i[0].dir?"ascending":"descending"),n=s[i[0].index+1]||s[0]):n=s[0],t+="asc"===n?e.sSortAscending:e.sSortDescending),l.setAttribute("aria-label",t)}}function _e(e,t,n,r){var i=e.aaSorting,o=e.aoColumns[t].asSorting,a=function(e,t){var n=e._idx;return n===O&&(n=N.inArray(e[1],o)),n+1<o.length?n+1:t?null:0};"number"==typeof i[0]&&(i=e.aaSorting=[i]),n&&e.oFeatures.bSortMulti?-1!==(n=N.inArray(t,it(i,"0")))?(null===(t=a(i[n],!0))&&1===i.length&&(t=0),null===t?i.splice(n,1):(i[n][1]=o[t],i[n]._idx=t)):(i.push([t,o[0],0]),i[i.length-1]._idx=0):i.length&&i[0][0]==t?(t=a(i[0]),i.length=1,i[0][1]=o[t],i[0]._idx=t):(i.length=0,i.push([t,o[0]]),i[0]._idx=0),F(e),"function"==typeof r&&r(e)}function Te(t,e,n,r){var i=t.aoColumns[n];Me(e,{},function(e){!1!==i.bSortable&&(t.oFeatures.bProcessing?(he(t,!0),setTimeout(function(){_e(t,n,e.shiftKey,r),"ssp"!==Fe(t)&&he(t,!1)},0)):_e(t,n,e.shiftKey,r))})}
11function ke(e){var t,n,r=e.aLastSort,i=e.oClasses.sSortColumn,o=xe(e),a=e.oFeatures;if(a.bSort&&a.bSortClasses){for(a=0,t=r.length;a<t;a++)n=r[a].src,N(it(e.aoData,"anCells",n)).removeClass(i+(a<2?a+1:3));for(a=0,t=o.length;a<t;a++)n=o[a].src,N(it(e.aoData,"anCells",n)).addClass(i+(a<2?a+1:3))}e.aLastSort=o}function De(e,t){var n,r=e.aoColumns[t],i=Ve.ext.order[r.sSortDataType];i&&(n=i.call(e.oInstance,e,t,c(e,t)));for(var o,a=Ve.ext.type.order[r.sType+"-pre"],s=0,l=e.aoData.length;s<l;s++)(r=e.aoData[s])._aSortData||(r._aSortData=[]),(!r._aSortData[t]||i)&&(o=i?n[s]:I(e,s,t,"sort"),r._aSortData[t]=a?a(o):o)}function Ee(n){if(n.oFeatures.bStateSave&&!n.bDestroying){var e={time:+new Date,start:n._iDisplayStart,length:n._iDisplayLength,order:N.extend(!0,[],n.aaSorting),search:ee(n.oPreviousSearch),columns:N.map(n.aoColumns,function(e,t){return{visible:e.bVisible,search:ee(n.aoPreSearchCols[t])}})};Re(n,"aoStateSaveParams","stateSaveParams",[n,e]),n.oSavedState=e,n.fnStateSaveCallback.call(n.oInstance,n,e)}}function Ae(n,e,r){var i,o,a=n.aoColumns;e=function(e){if(e&&e.time){var t=Re(n,"aoStateLoadParams","stateLoadParams",[n,e]);if(-1===N.inArray(!1,t)&&!(0<(t=n.iStateDuration)&&e.time<+new Date-1e3*t||e.columns&&a.length!==e.columns.length)){if(n.oLoadedState=N.extend(!0,{},e),e.start!==O&&(n._iDisplayStart=e.start,n.iInitDisplayStart=e.start),e.length!==O&&(n._iDisplayLength=e.length),e.order!==O&&(n.aaSorting=[],N.each(e.order,function(e,t){n.aaSorting.push(t[0]>=a.length?[0,t[1]]:t)})),e.search!==O&&N.extend(n.oPreviousSearch,te(e.search)),e.columns)for(i=0,o=e.columns.length;i<o;i++)(t=e.columns[i]).visible!==O&&(a[i].bVisible=t.visible),t.search!==O&&N.extend(n.aoPreSearchCols[i],te(t.search));Re(n,"aoStateLoaded","stateLoaded",[n,e])}}r()};if(n.oFeatures.bStateSave){var t=n.fnStateLoadCallback.call(n.oInstance,n,e);t!==O&&e(t)}else r()}function Le(e){var t=Ve.settings;return-1!==(e=N.inArray(e,it(t,"nTable")))?t[e]:null}function Ie(e,t,n,r){if(n="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+n,r&&(n+=". For more information about this error, please see http://datatables.net/tn/"+r),t)v.console&&console.log&&console.log(n);else if(t=(t=Ve.ext).sErrMode||t.errMode,e&&Re(e,null,"error",[e,r,n]),"alert"==t)alert(n);else{if("throw"==t)throw Error(n);"function"==typeof t&&t(e,r,n)}}function Ne(n,r,e,t){N.isArray(e)?N.each(e,function(e,t){N.isArray(t)?Ne(n,r,t[0],t[1]):Ne(n,r,t)}):(t===O&&(t=e),r[e]!==O&&(n[t]=r[e]))}function Oe(e,t,n){var r,i;for(i in t)t.hasOwnProperty(i)&&(r=t[i],N.isPlainObject(r)?(N.isPlainObject(e[i])||(e[i]={}),N.extend(!0,e[i],r)):e[i]=n&&"data"!==i&&"aaData"!==i&&N.isArray(r)?r.slice():r);return e}function Me(t,e,n){N(t).on("click.DT",e,function(e){N(t).blur(),n(e)}).on("keypress.DT",e,function(e){13===e.which&&(e.preventDefault(),n(e))}).on("selectstart.DT",function(){return!1})}function Pe(e,t,n,r){n&&e[t].push({fn:n,sName:r})}function Re(t,e,n,r){var i=[];return e&&(i=N.map(t[e].slice().reverse(),function(e){return e.fn.apply(t.oInstance,r)})),null!==n&&(e=N.Event(n+".dt"),N(t.nTable).trigger(e,r),i.push(e.result)),i}function je(e){var t=e._iDisplayStart,n=e.fnDisplayEnd(),r=e._iDisplayLength;n<=t&&(t=n-r),t-=t%r,(-1===r||t<0)&&(t=0),e._iDisplayStart=t}function He(e,t){var n=e.renderer,r=Ve.ext.renderer[t];return N.isPlainObject(n)&&n[t]?r[n[t]]||r._:"string"==typeof n&&r[n]||r._}function Fe(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function qe(e,t){var n=[],r=(n=At.numbers_length,Math.floor(n/2));return t<=n?n=at(0,t):e<=r?((n=at(0,n-2)).push("ellipsis"),n.push(t-1)):(t-1-r<=e?n=at(t-(n-2),t):((n=at(e-r+2,e+r-1)).push("ellipsis"),n.push(t-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Be(n){N.each({num:function(e){return Lt(e,n)},"num-fmt":function(e){return Lt(e,n,Je)},"html-num":function(e){return Lt(e,n,Xe)},"html-num-fmt":function(e){return Lt(e,n,Xe,Je)}},function(e,t){We.type.order[e+n+"-pre"]=t,e.match(/^html\-/)&&(We.type.search[e+n]=We.type.search.html)})}function t(t){return function(){var e=[Le(this[Ve.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return Ve.ext.internal[t].apply(this,e)}}var We,$e,Ue,ze,Ve=function(g){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new $e(e?Le(this[We.iApiIndex]):this)},this.fnAddData=function(e,t){var n=this.api(!0),r=N.isArray(e)&&(N.isArray(e[0])||N.isPlainObject(e[0]))?n.rows.add(e):n.row.add(e);return(t===O||t)&&n.draw(),r.flatten().toArray()}
11,this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],r=n.oScroll;e===O||e?t.draw(!1):(""!==r.sX||""!==r.sY)&&pe(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();(e===O||e)&&t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var r=this.api(!0),i=(e=r.rows(e)).settings()[0],o=i.aoData[e[0][0]];return e.remove(),t&&t.call(this,i,o),(n===O||n)&&r.draw(),o},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,r,i,o){i=this.api(!0),null===t||t===O?i.search(e,n,r,o):i.column(t).search(e,n,r,o),i.draw()},this.fnGetData=function(e,t){var n=this.api(!0);if(e===O)return n.data().toArray();var r=e.nodeName?e.nodeName.toLowerCase():"";return t!==O||"td"==r||"th"==r?n.cell(e,t).data():n.row(e).data()||null},this.fnGetNodes=function(e){var t=this.api(!0);return e!==O?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(e=t.cell(e).index()).row,e.columnVisible,e.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){var n=this.api(!0).page(e);(t===O||t)&&n.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t),(n===O||n)&&e.columns.adjust().draw()},this.fnSettings=function(){return Le(this[We.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,r,i){var o=this.api(!0);return n===O||null===n?o.row(t).data(e):o.cell(t,n).data(e),(i===O||i)&&o.columns.adjust(),(r===O||r)&&o.draw(),0},this.fnVersionCheck=We.fnVersionCheck;var v=this,y=g===O,b=this.length;for(var e in y&&(g={}),this.oApi=this.internal=We.internal,Ve.ext.internal)e&&(this[e]=t(e));return this.each(function(){var n,e={},r=1<b?Oe(e,g,!0):g,i=0,o=(e=this.getAttribute("id"),!1),t=Ve.defaults,a=N(this);if("table"!=this.nodeName.toLowerCase())Ie(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{S(t),C(t.column),w(t,t,!0),w(t.column,t.column,!0),w(t,N.extend(r,a.data()));var s=Ve.settings;i=0;for(n=s.length;i<n;i++){var l=s[i];if(l.nTable==this||l.nTHead&&l.nTHead.parentNode==this||l.nTFoot&&l.nTFoot.parentNode==this){var c=r.bRetrieve!==O?r.bRetrieve:t.bRetrieve;if(y||c)return l.oInstance;if(r.bDestroy!==O?r.bDestroy:t.bDestroy){l.oInstance.fnDestroy();break}return void Ie(l,0,"Cannot reinitialise DataTable",3)}if(l.sTableId==this.id){s.splice(i,1);break}}null!==e&&""!==e||(this.id=e="DataTables_Table_"+Ve.ext._unique++);var u=N.extend(!0,{},Ve.models.oSettings,{sDestroyWidth:a[0].style.width,sInstance:e,sTableId:e});u.nTable=this,u.oApi=v.internal,u.oInit=r,s.push(u),u.oInstance=1===v.length?v:a.dataTable(),S(r),x(r.oLanguage),r.aLengthMenu&&!r.iDisplayLength&&(r.iDisplayLength=N.isArray(r.aLengthMenu[0])?r.aLengthMenu[0][0]:r.aLengthMenu[0]),r=Oe(N.extend(!0,{},t),r),Ne(u.oFeatures,r,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),Ne(u,r,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Ne(u.oScroll,r,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Ne(u.oLanguage,r,"fnInfoCallback"),Pe(u,"aoDrawCallback",r.fnDrawCallback,"user"),Pe(u,"aoServerParams",r.fnServerParams,"user"),Pe(u,"aoStateSaveParams",r.fnStateSaveParams,"user"),Pe(u,"aoStateLoadParams",r.fnStateLoadParams,"user"),Pe(u,"aoStateLoaded",r.fnStateLoaded,"user"),Pe(u,"aoRowCallback",r.fnRowCallback,"user"),Pe(u,"aoRowCreatedCallback",r.fnCreatedRow,"user"),Pe(u,"aoHeaderCallback",r.fnHeaderCallback,"user"),Pe(u,"aoFooterCallback",r.fnFooterCallback,"user"),Pe(u,"aoInitComplete",r.fnInitComplete,"user"),Pe(u,"aoPreDrawCallback",r.fnPreDrawCallback,"user"),u.rowIdFn=R(r.rowId),_(u);
11var d=u.oClasses;N.extend(d,Ve.ext.classes,r.oClasses),a.addClass(d.sTable),u.iInitDisplayStart===O&&(u.iInitDisplayStart=r.iDisplayStart,u._iDisplayStart=r.iDisplayStart),null!==r.iDeferLoading&&(u.bDeferLoading=!0,e=N.isArray(r.iDeferLoading),u._iRecordsDisplay=e?r.iDeferLoading[0]:r.iDeferLoading,u._iRecordsTotal=e?r.iDeferLoading[1]:r.iDeferLoading);var h=u.oLanguage;N.extend(!0,h,r.oLanguage),h.sUrl&&(N.ajax({dataType:"json",url:h.sUrl,success:function(e){x(e),w(t.oLanguage,e),N.extend(!0,h,e),oe(u)},error:function(){oe(u)}}),o=!0),null===r.asStripeClasses&&(u.asStripeClasses=[d.sStripeOdd,d.sStripeEven]);e=u.asStripeClasses;var f=a.children("tbody").find("tr").eq(0);if(-1!==N.inArray(!0,N.map(e,function(e){return f.hasClass(e)}))&&(N("tbody tr",this).removeClass(e.join(" ")),u.asDestroyStripes=e.slice()),e=[],0!==(s=this.getElementsByTagName("thead")).length&&(B(u.aoHeader,s[0]),e=W(u)),null===r.aoColumns)for(s=[],i=0,n=e.length;i<n;i++)s.push(null);else s=r.aoColumns;for(i=0,n=s.length;i<n;i++)T(u,e?e[i]:null);if(E(u,r.aoColumnDefs,s,function(e,t){k(u,e,t)}),f.length){var p=function(e,t){return null!==e.getAttribute("data-"+t)?t:null};N(f[0]).children("th, td").each(function(e,t){var n=u.aoColumns[e];if(n.mData===e){var r=p(t,"sort")||p(t,"order"),i=p(t,"filter")||p(t,"search");null===r&&null===i||(n.mData={_:e+".display",sort:null!==r?e+".@data-"+r:O,type:null!==r?e+".@data-"+r:O,filter:null!==i?e+".@data-"+i:O},k(u,e))}})}var m=u.oFeatures;e=function(){if(r.aaSorting===O){var e=u.aaSorting;for(i=0,n=e.length;i<n;i++)e[i][1]=u.aoColumns[i].asSorting[0]}ke(u),m.bSort&&Pe(u,"aoDrawCallback",function(){if(u.bSorted){var e=xe(u),n={};N.each(e,function(e,t){n[t.src]=t.dir}),Re(u,null,"order",[u,e,n]),Ce(u)}}),Pe(u,"aoDrawCallback",function(){(u.bSorted||"ssp"===Fe(u)||m.bDeferRender)&&ke(u)},"sc");e=a.children("caption").each(function(){this._captionSide=N(this).css("caption-side")});var t=a.children("thead");if(0===t.length&&(t=N("<thead/>").appendTo(a)),u.nTHead=t[0],0===(t=a.children("tbody")).length&&(t=N("<tbody/>").appendTo(a)),u.nTBody=t[0],0===(t=a.children("tfoot")).length&&0<e.length&&(""!==u.oScroll.sX||""!==u.oScroll.sY)&&(t=N("<tfoot/>").appendTo(a)),0===t.length||0===t.children().length?a.addClass(d.sNoFooter):0<t.length&&(u.nTFoot=t[0],B(u.aoFooter,u.nTFoot)),r.aaData)for(
12i=0;i<r.aaData.length;i++)A(u,r.aaData[i]);else(u.bDeferLoading||"dom"==Fe(u))&&L(u,N(u.nTBody).children("tr"));u.aiDisplay=u.aiDisplayMaster.slice(),!(u.bInitialised=!0)===o&&oe(u)};r.bStateSave?(m.bStateSave=!0,Pe(u,"aoDrawCallback",Ee,"state_save"),Ae(u,r,e)):e()}}),v=null,this},Ge={},Ye=/[\r\n]/g,Xe=/<.*?>/g,Ke=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Qe=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Je=/[',$\xa3\u20ac\xa5%\u2009\u202F\u20BD\u20a9\u20BArfk\u0243\u039e]/gi,Ze=function(e){return!e||!0===e||"-"===e},et=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},tt=function(e,t){return Ge[t]||(Ge[t]=RegExp(ht(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(Ge[t],"."):e},nt=function(e,t,n){var r="string"==typeof e;return!!Ze(e)||(t&&r&&(e=tt(e,t)),n&&r&&(e=e.replace(Je,"")),!isNaN(parseFloat(e))&&isFinite(e))},rt=function(e,t,n){return!!Ze(e)||((Ze(e)||"string"==typeof e)&&!!nt(e.replace(Xe,""),t,n)||null)},it=function(e,t,n){var r=[],i=0,o=e.length;if(n!==O)for(;i<o;i++)e[i]&&e[i][t]&&r.push(e[i][t][n]);else for(;i<o;i++)e[i]&&r.push(e[i][t]);return r},ot=function(e,t,n,r){var i=[],o=0,a=t.length;if(r!==O)for(;o<a;o++)e[t[o]][n]&&i.push(e[t[o]][n][r]);else for(;o<a;o++)i.push(e[t[o]][n]);return i},at=function(e,t){var n,r=[];t===O?(t=0,n=e):(n=t,t=e);for(var i=t;i<n;i++)r.push(i);return r},st=function(e){for(var t=[],n=0,r=e.length;n<r;n++)e[n]&&t.push(e[n]);return t},lt=function(e){var t;e:{if(!(e.length<2))for(var n=(t=e.slice().sort())[0],r=1,i=t.length;r<i;r++){if(t[r]===n){t=!1;break e}n=t[r]}t=!0}if(t)return e.slice();t=[];i=e.length;var o,a=0;r=0;e:for(;r<i;r++){for(n=e[r],o=0;o<a;o++)if(t[o]===n)continue e;t.push(n),a++}return t};Ve.util={throttle:function(r,e){var i,o,a=e!==O?e:200;return function(){var e=this,t=+new Date,n=arguments;i&&t<i+a?(clearTimeout(o),o=setTimeout(function(){i=O,r.apply(e,n)},a)):(i=t,r.apply(e,n))}},escapeRegex:function(e){return e.replace(Qe,"\\$1")}};var ct=function(e,t,n){e[t]!==O&&(e[n]=e[t])},ut=/\[.*?\]$/,dt=/\(\)$/,ht=Ve.util.escapeRegex,ft=N("<div>")[0],pt=ft.textContent!==O,mt=/<.*?>/g,gt=Ve.util.throttle,vt=[],yt=Array.prototype,bt=function(e){var t,n,r=Ve.settings,i=N.map(r,function(e){return e.nTable});return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(t=N.inArray(e,i))?[r[t]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?n=N(e):e instanceof N&&(n=e),n?n.map(function(){return-1!==(t=N.inArray(this,i))?r[t]:null}).toArray():void 0):[]};$e=function(e,t){if(!(this instanceof $e))return new $e(e,t);var n=[],r=function(e){(e=bt(e))&&(n=n.concat(e))};if(N.isArray(e))for(var i=0,o=e.length;i<o;i++)r(e[i]);else r(e);this.context=lt(n),t&&N.merge(this,t),this.selector={rows:null,cols:null,opts:null},$e.extend(this,this,vt)},Ve.Api=$e,N.extend($e.prototype,{any:function(){return 0!==this.count()},concat:yt.concat,context:[],count:function(){return this.flatten().length},each:function(e){for(var t=0,n=this.length;t<n;t++)e.call(this,this[t],t,this);return this},eq:function(e){var t=this.context;return t.length>e?new $e(t[e],this[e]):null},filter:function(e){var t=[];if(yt.filter)t=yt.filter.call(this,e,this);else for(var n=0,r=this.length;n<r;n++)e.call(this,this[n],n,this)&&t.push(this[n]);return new $e(this.context,t)},flatten:function(){var e=[];return new $e(this.context,e.concat.apply(e,this.toArray()))},join:yt.join,indexOf:yt.indexOf||function(e,t){for(var n=t||0,r=this.length;n<r;n++)if(this[n]===e)return n;return-1},iterator:function(e,t,n,r){var i,o,a,s,l,c,u,d=[],h=this.context,f
12=this.selector;for("string"==typeof e&&(r=n,n=t,t=e,e=!1),o=0,a=h.length;o<a;o++){var p=new $e(h[o]);if("table"===t)(i=n.call(p,h[o],o))!==O&&d.push(i);else if("columns"===t||"rows"===t)(i=n.call(p,h[o],this[o],o))!==O&&d.push(i);else if("column"===t||"column-rows"===t||"row"===t||"cell"===t)for(u=this[o],"column-rows"===t&&(c=_t(h[o],f.opts)),s=0,l=u.length;s<l;s++)i=u[s],(i="cell"===t?n.call(p,h[o],i.row,i.column,o,s):n.call(p,h[o],i,o,s,c))!==O&&d.push(i)}return d.length||r?((t=(e=new $e(h,e?d.concat.apply([],d):d)).selector).rows=f.rows,t.cols=f.cols,t.opts=f.opts,e):this},lastIndexOf:yt.lastIndexOf||function(e,t){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(e){var t=[];if(yt.map)t=yt.map.call(this,e,this);else for(var n=0,r=this.length;n<r;n++)t.push(e.call(this,this[n],n));return new $e(this.context,t)},pluck:function(t){return this.map(function(e){return e[t]})},pop:yt.pop,push:yt.push,reduce:yt.reduce||function(e,t){return n(this,e,t,0,this.length,1)},reduceRight:yt.reduceRight||function(e,t){return n(this,e,t,this.length-1,-1,-1)},reverse:yt.reverse,selector:null,shift:yt.shift,slice:function(){return new $e(this.context,this)},sort:yt.sort,splice:yt.splice,toArray:function(){return yt.slice.call(this)},to$:function(){return N(this)},toJQuery:function(){return N(this)},unique:function(){return new $e(this.context,lt(this))},unshift:yt.unshift}),$e.extend=function(e,t,n){if(n.length&&t&&(t instanceof $e||t.__dt_wrapper)){var r,i,o,a=function(t,n,r){return function(){var e=n.apply(t,arguments);return $e.extend(e,e,r.methodExt),e}};for(r=0,i=n.length;r<i;r++)t[(o=n[r]).name]="function"==typeof o.val?a(e,o.val,o):N.isPlainObject(o.val)?{}:o.val,t[o.name].__dt_wrapper=!0,$e.extend(e,t[o.name],o.propExt)}},$e.register=Ue=function(e,t){if(N.isArray(e))for(var n=0,r=e.length;n<r;n++)$e.register(e[n],t);else{var i,o,a=e.split("."),s=vt;for(n=0,r=a.length;n<r;n++){var l;i=(o=-1!==a[n].indexOf("()"))?a[n].replace("()",""):a[n];e:{l=0;for(var c=s.length;l<c;l++)if(s[l].name===i){l=s[l];break e}l=null}l||(l={name:i,val:{},methodExt:[],propExt:[]},s.push(l)),n===r-1?l.val=t:s=o?l.methodExt:l.propExt}}},$e.registerPlural=ze=function(e,t,n){$e.register(e,n),$e.register(t,function(){var e=n.apply(this,arguments);return e===this?this:e instanceof $e?e.length?N.isArray(e[0])?new $e(e.context,e[0]):e[0]:O:e})},Ue("tables()",function(e){var t;if(e){t=$e;var n=this.context;if("number"==typeof e)e=[n[e]];else{var r=N.map(n,function(e){return e.nTable});e=N(r).filter(e).map(function(){var e=N.inArray(this,r);return n[e]}).toArray()}t=new t(e)}else t=this;return t}),Ue("table()",function(e){var t=(e=this.tables(e)).context;return t.length?new $e(t[0]):e}),ze("tables().nodes()","table().node()",function(){return this.iterator("table",function(e){return e.nTable},1)}),ze("tables().body()","table().body()",function(){return this.iterator("table",function(e){return e.nTBody},1)}),ze("tables().header()","table().header()",function(){return this.iterator("table",function(e){return e.nTHead},1)}),ze("tables().footer()","table().footer()",function(){return this.iterator("table",function(e){return e.nTFoot},1)}),ze("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.nTableWrapper},1)}),Ue("draw()",function(t){return this.iterator("table",function(e){"page"===t?H(e):("string"==typeof t&&(t="full-hold"!==t),F(e,!1===t))})}),Ue("page()",function(t){return t===O?this.page.info().page:this.iterator("table",function(e){ue(e,t)})}),Ue("page.info()",function(){if(0===this.context.length)return O;var e=this.context[0],t=e._iDisplayStart,n=e.oFeatures.bPaginate?e._iDisplayLength:-1,r=e.fnRecordsDisplay(),i=-1===n;return{page:i?0:Math.floor(t/n),pages:i?1:Math.ceil(r/n),start:t,end:e.fnDisplayEnd(),length:n,recordsTotal:e.fnRecordsTotal(),recordsDisplay:r,serverSide:"ssp"===Fe(e)}}),Ue("page.len()",function(t){return t===O?0!==this.context.length?this.context[0]._iDisplayLength:O:this.iterator("table",function(e){se(e,t)})});var wt=function(r,i,e){if(e){var t=new $e(r);t.one("draw",function(){e(t.ajax.json())})}if("ssp"==Fe(r))F(r,i);else{he(r,!0);var n=r.jqXHR;n&&4!==n.readyState&&n.abort(),$(r,[],function(e){s(r);for(var t=0,n=(e=V(r,e)).length;t<n;t++)A(r,e[t]);F(r,i),he(r,!1)})}};Ue("ajax.json()",function(){var e=this.context;if(0<e.length)return e[0].json}),Ue("ajax.params()",function(){var e=this.context;if(0<e.length)return e[0].oAjaxData}),Ue("ajax.reload()",function(t,n){return this.iterator("table",function(e){wt(e,!1===n,t)})}),Ue("ajax.url()",function(t){var e=this.context;return t===O?0===e.length?O:(e=e[0]).ajax?N.isPlainObject(e.ajax)?e.ajax.url:e.ajax:e.sAjaxSource:this.iterator("table",function(e){N.isPlainObject(e.ajax)?e.ajax.url=t:e.ajax=t})}),Ue("ajax.url().load()",function(t,n){return this.iterator("table",function(e){wt(e,!1===n,t)})});var xt=function(e,t,n,r,i){var o,a,s,l,c,u,d=[];for(s=typeof t,t&&"string"!==s&&"function"!==s&&t.length!==O||(t=[t]),s=0,l=t.length;s<l;s++)for(c=0,u=(a=t[s]&&t[s].split&&!t[s].match(/[\[\(:]/)?t[s].split(","):[t[s]]).length;c<u;c++)(o=n("string"==typeof a[c]?N.trim(a[c]):a[c]))&&o.length&&(d=d.concat(o));if((e=We.selector[e]).length)for(s=0,l=e.length;s<l;s++)d=e[s](r,i,d);return lt(d)},St=function(e){return e||(e={}),e.filter&&e.search===O&&(e.search=e.filter),N.extend({search:"none",order:"current",page:"all"},e)},Ct=function(e){for(var t=0,n=e.length;t<n;t++)if(0<e[t].length)return e[0]=e[t],e[0].length=1,e.length=1,e.context=[e.context[t]],e;return e.length=0,e},_t=function(e,t){var n,r,i,o=[],a=e.aiDisplay;i=e.aiDisplayMaster;var s=t.search;if(n=t.order,r=t.page,"ssp"==Fe(e))return"removed"===s?[]:at(0,i.length);if("current"==r)for(n=e._iDisplayStart,r=e.fnDisplayEnd();n<r;n++)o.push(a[n]);else if("current"==n||"applied"==n){if("none"==s)o=i.slice();else if("applied"==s)o=a.slice();else if("removed"==s){var l={};for(n=0,r=a.length;n<r;n++)l[a[n]]=null;o=N.map(i,function(e){return l.hasOwnProperty(e)?null:e})}}else if("index"==n||"original"==n)for(n=0,r=e.aoData.length;n<r;n++)"none"==s?o.push(n):(-1===(i=N.inArray(n,a))&&"removed"==s||0<=i&&"applied"==s)&&o.push(n);return o};Ue("rows()",function(e,t){e===O?e="":N.isPlainObject(e)&&(t=e,e="");t=St(t);var n=this.iterator("table",function(i){var o,a=t;return xt("row",e,function(n){var e=et(n),r=i.aoData;if(null!==e&&!a)return[e];if(o||(o=_t(i,a)),null!==e&&-1!==N.inArray(e,o))return[e];if(null===n||n===O||""===n)return o;if("function"==typeof n)return N.map(o,function(e){var t=r[e];return n(e,t._aData,t.nTr)?e:null});if(n.nodeName){e=n._DT_RowIndex;var t=n._DT_CellIndex;return e!==O?r[e]&&r[e].nTr===n?[e]:[]:t?r[t.row]&&r[t.row].nTr===n?[t.row]:[]:(e=N(n).closest("*[data-dt-row]")).length?[e.data("dt-row")]:[]}return"string"==typeof n&&"#"===n.charAt(0)&&(e=i.aIds[n.replace(/^#/,"")])!==O?[e.idx]:(e=st(ot(i.aoData,o,"nTr")),N(e).filter(n).map(function(){return this._DT_RowIndex}).toArray())},i,a)},1);return n.selector.rows=e,n.selector.opts=t,n}),Ue("rows().nodes()",function(){return this.iterator("row",function(e,t){return e.aoData[t].nTr||O},1)}),Ue("rows().data()",function(){return this.iterator(!0,"rows",function(e,t){return ot(e.aoData,t,"_aData")},1)}),ze("rows().cache()","row().cache()",function(r){return this.iterator("row",function(e,t){var n=e.aoData[t];return"search"===r?n._aFilterData:n._aSortData},1)}),ze("rows().invalidate()","row().invalidate()",function(n){return this.iterator("row",function(e,t){i(e,t,n)})}),ze("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,t){return t},1)}),ze("rows().ids()","row().id()",function(e){for(var t=[],n=this.context,r=0,i=n.length;r<i;r++)for(var o=0,a=this[r].length;o<a;o++){var s=n[r].rowIdFn(n[r].aoData[this[r][o]]._aData);t.push((!0===e?"#":"")+s)}return new $e(n,t)}),ze("rows().remove()","row().remove()",function(){var u=this;return this.iterator("row",function(e,t,n){var r,i,o,a,s,l=e.aoData,c=l[t];for(l.splice(t,1),r=0,i=l.length;r<i;r++)if(s=(o=l[r]).anCells,null!==o.nTr&&(o.nTr._DT_RowIndex=r),null!==s)for(o=0,a=s.length;o<a;o++)s[o]._DT_CellIndex.row=r;d(e.aiDisplayMaster,t),d(e.aiDisplay,t),d(u[n],t,!1),0<e._iRecordsDisplay&&e._iRecordsDisplay--,je(e),(t=e.rowIdFn(c._aData))!==O&&delete e.aIds[t]}),this.iterator("table",function(e){for(var t=0,n=e.aoData.length;t<n;t++)e.aoData[t].idx=t}),this}),Ue("rows.add()",function(o){var e=this.iterator("table",function(e){var t,n,r,i=[];for(n=0,r=o.length;n<r;n++)(t=o[n]).nodeName&&"TR"===t.nodeName.toUpperCase()?i.push(L(e,t)[0]):i.push(A(e,t));return i},1),t=this.rows(-1);return t.pop(),N.merge(t,e),t}),Ue("row()",function(e,t){return Ct(this.rows(e,t))}),Ue("row().data()",function(e){var t=this.context;if(e===O)return t.length&&this.length?t[0].aoData[this[0]]._aData:O;var n=t[0].aoData[this[0]];return n._aData=e,N.isArray(e)&&n.nTr.id&&p(t[0].rowId)(e,n.nTr.id),i(t[0],this[0],"data"),this}),Ue("row().node()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]].nTr||null}),Ue("row.add()",function(t){t instanceof N&&t.length&&(t=t[0]);var e=this.iterator("table",function(e){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?L(e,t)[0]:A(e,t)});return this.row(e[0])});var Tt=function(e,t){var n=e.context;n.length&&(n=n[0].aoData[t!==O?t:e[0]])&&n._details&&(n._details.remove(),n._detailsShow=O,n._details=O)},kt=function(e,t){var n=e.context;if(n.length&&e.length){var r=n[0].aoData[e[0]];if(r._details){(r._detailsShow=t)?r._details.insertAfter(r.nTr):r._details.detach();var a=n[0],i=new $e(a),s=a.aoData;i.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),0<it(s,"_details").length&&(i.on("draw.dt.DT_details",function(e,t){a===t&&i.rows({page:"current"}).eq(0).each(function(e){(e=s[e])._detailsShow&&e._details.insertAfter(e.nTr)})}),i.on("column-visibility.dt.DT_details",function(e,t){if(a===t)for(var n,r=b(t),i=0,o=s.length;i<o;i++)(n=s[i])._details&&n._details.children("td[colspan]").attr("colspan",r)}
12),i.on("destroy.dt.DT_details",function(e,t){if(a===t)for(var n=0,r=s.length;n<r;n++)s[n]._details&&Tt(i,n)}))}}};Ue("row().child()",function(e,t){var n=this.context;if(e===O)return n.length&&this.length?n[0].aoData[this[0]]._details:O;if(!0===e)this.child.show();else if(!1===e)Tt(this);else if(n.length&&this.length){var i=n[0],o=(n=n[0].aoData[this[0]],[]),a=function(e,t){if(N.isArray(e)||e instanceof N)for(var n=0,r=e.length;n<r;n++)a(e[n],t);else e.nodeName&&"tr"===e.nodeName.toLowerCase()?o.push(e):(n=N("<tr><td/></tr>").addClass(t),N("td",n).addClass(t).html(e)[0].colSpan=b(i),o.push(n[0]))};a(e,t),n._details&&n._details.detach(),n._details=N(o),n._detailsShow&&n._details.insertAfter(n.nTr)}return this}),Ue(["row().child.show()","row().child().show()"],function(){return kt(this,!0),this}),Ue(["row().child.hide()","row().child().hide()"],function(){return kt(this,!1),this}),Ue(["row().child.remove()","row().child().remove()"],function(){return Tt(this),this}),Ue("row().child.isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1});var Dt=/^([^:]+):(name|visIdx|visible)$/,Et=function(e,t,n,r,i){n=[],r=0;for(var o=i.length;r<o;r++)n.push(I(e,i[r],t));return n};Ue("columns()",function(t,n){t===O?t="":N.isPlainObject(t)&&(n=t,t="");n=St(n);var e=this.iterator("table",function(o){var e=t,a=n,s=o.aoColumns,l=it(s,"sName"),c=it(s,"nTh");return xt("column",e,function(n){var e=et(n);if(""===n)return at(s.length);if(null!==e)return[0<=e?e:s.length+e];if("function"==typeof n){var r=_t(o,a);return N.map(s,function(e,t){return n(t,Et(o,t,0,0,r),c[t])?t:null})}var i="string"==typeof n?n.match(Dt):"";if(i)switch(i[2]){case"visIdx":case"visible":if((e=parseInt(i[1],10))<0){var t=N.map(s,function(e,t){return e.bVisible?t:null});return[t[t.length+e]]}return[P(o,e)];case"name":return N.map(l,function(e,t){return e===i[1]?t:null});default:return[]}return n.nodeName&&n._DT_CellIndex?[n._DT_CellIndex.column]:(e=N(c).filter(n).map(function(){return N.inArray(this,c)}).toArray()).length||!n.nodeName?e:(e=N(n).closest("*[data-dt-column]")).length?[e.data("dt-column")]:[]},o,a)},1);return e.selector.cols=t,e.selector.opts=n,e}),ze("columns().header()","column().header()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTh},1)}),ze("columns().footer()","column().footer()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTf},1)}),ze("columns().data()","column().data()",function(){return this.iterator("column-rows",Et,1)}),ze("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)}),ze("columns().cache()","column().cache()",function(o){return this.iterator("column-rows",function(e,t,n,r,i){return ot(e.aoData,i,"search"===o?"_aFilterData":"_aSortData",t)},1)}),ze("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,r,i){return ot(e.aoData,i,"anCells",t)},1)}),ze("columns().visible()","column().visible()",function(c,n){var e=this.iterator("column",function(e,t){if(c===O)return e.aoColumns[t].bVisible;var n,r,i,o=e.aoColumns,a=o[t],s=e.aoData;if(c!==O&&a.bVisible!==c){if(c){var l=N.inArray(!0,it(o,"bVisible"),t+1);for(n=0,r=s.length;n<r;n++)i=s[n].nTr,o=s[n].anCells,i&&i.insertBefore(o[t],o[l]||null)}else N(it(e.aoData,"anCells",t)).detach();a.bVisible=c,j(e,e.aoHeader),j(e,e.aoFooter),e.aiDisplay.length||N(e.nTBody).find("td[colspan]").attr("colspan",b(e)),Ee(e)}});return c!==O&&(this.iterator("column",function(e,t){Re(e,null,"column-visibility",[e,t,c,n])}),(n===O||n)&&this.columns.adjust()),e}),ze("columns().indexes()","column().index()",function(n){return this.iterator("column",function(e,t){return"visible"===n?c(e,t):t},1)}),Ue("columns.adjust()",function(){return this.iterator("table",function(e){M(e)},1)}),Ue("column.index()",function(e,t){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===e||"toData"===e)return P(n,t);if("fromData"===e||"toVisible"===e)return c(n,t)}}),Ue("column()",function(e,t){return Ct(this.columns(e,t))}),Ue("cells()",function(m,e,g){if(N.isPlainObject(m)&&(m.row===O?(g=m,m=null):(g=e,e=null)),N.isPlainObject(e)&&(g=e,e=null),null===e||e===O)return this.iterator("table",function(n){var r,i,o,a,s,l,c,e=m,t=St(g),u=n.aoData,d=_t(n,t),h=st(ot(u,d,"anCells")),f=N([].concat.apply([],h)),p=n.aoColumns.length;return xt("cell",e,function(e){var t="function"==typeof e;if(null===e||e===O||t){for(i=[],o=0,a=d.length;o<a;o++)for(r=d[o],s=0;s<p;s++)l={row:r,column:s},t?(c=u[r],e(l,I(n,r,s),c.anCells?c.anCells[s]:null)&&i.push(l)):i.push(l);return i}return N.isPlainObject(e)?e.column!==O&&e.row!==O&&-1!==N.inArray(e.row,d)?[e]:[]:(t=f.filter(e).map(function(e,t){return{row:t._DT_CellIndex.row,column:t._DT_CellIndex.column}}).toArray()).length||!e.nodeName?t:(c=N(e).closest("*[data-dt-row]")).length?[{row:c.data("dt-row"),column:c.data("dt-column")}]:[]},n,t)});var n,r,i,o,a,s=this.columns(e),l=this.rows(m);this.iterator("table",function(e,t){for(n=[],r=0,i=l[t].length;r<i;r++)for(o=0,a=s[t].length;o<a;o++)n.push({row:l[t][r],column:s[t][o]})},1);var t=this.cells(n,g);return N.extend(t.selector,{cols:e,rows:m,opts:g}),t}),ze("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,t,n){return(e=e.aoData[t])&&e.anCells?e.anCells[n]:O},1)}),Ue("cells().data()",function(){return this.iterator("cell",function(e,t,n){return I(e,t,n)},1)}),ze("cells().cache()","cell().cache()",function(r){return r="search"===r?"_aFilterData":"_aSortData",this.iterator("cell",function(e,t,n){return e.aoData[t][r][n]},1)}),ze("cells().render()","cell().render()",function(r){return this.iterator("cell",function(e,t,n){return I(e,t,n,r)},1)}),ze("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,t,n){return{row:t,column:n,columnVisible:c(e,n)}},1)}),ze("cells().invalidate()","cell().invalidate()",function(r){return this.iterator("cell",function(e,t,n){i(e,t,r,n)})}
12),Ue("cell()",function(e,t,n){return Ct(this.cells(e,t,n))}),Ue("cell().data()",function(e){var t=this.context,n=this[0];return e===O?t.length&&n.length?I(t[0],n[0].row,n[0].column):O:(r(t[0],n[0].row,n[0].column,e),i(t[0],n[0].row,"data",n[0].column),this)}),Ue("order()",function(t,e){var n=this.context;return t===O?0!==n.length?n[0].aaSorting:O:("number"==typeof t?t=[[t,e]]:t.length&&!N.isArray(t[0])&&(t=Array.prototype.slice.call(arguments)),this.iterator("table",function(e){e.aaSorting=t.slice()}))}),Ue("order.listener()",function(t,n,r){return this.iterator("table",function(e){Te(e,t,n,r)})}),Ue("order.fixed()",function(t){if(t)return this.iterator("table",function(e){e.aaSortingFixed=N.extend(!0,{},t)});var e=(e=this.context).length?e[0].aaSortingFixed:O;return N.isArray(e)?{pre:e}:e}),Ue(["columns().order()","column().order()"],function(r){var i=this;return this.iterator("table",function(e,t){var n=[];N.each(i[t],function(e,t){n.push([t,r])}),e.aaSorting=n})}),Ue("search()",function(t,n,r,i){var e=this.context;return t===O?0!==e.length?e[0].oPreviousSearch.sSearch:O:this.iterator("table",function(e){e.oFeatures.bFilter&&Y(e,N.extend({},e.oPreviousSearch,{sSearch:t+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===i||i}),1)})}),ze("columns().search()","column().search()",function(r,i,o,a){return this.iterator("column",function(e,t){var n=e.aoPreSearchCols;if(r===O)return n[t].sSearch;e.oFeatures.bFilter&&(N.extend(n[t],{sSearch:r+"",bRegex:null!==i&&i,bSmart:null===o||o,bCaseInsensitive:null===a||a}),Y(e,e.oPreviousSearch,1))})}),Ue("state()",function(){return this.context.length?this.context[0].oSavedState:null}),Ue("state.clear()",function(){return this.iterator("table",function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})})}),Ue("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),Ue("state.save()",function(){return this.iterator("table",function(e){Ee(e)})}),Ve.versionCheck=Ve.fnVersionCheck=function(e){for(var t,n,r=Ve.version.split("."),i=0,o=(e=e.split(".")).length;i<o;i++)if((t=parseInt(r[i],10)||0)!==(n=parseInt(e[i],10)||0))return n<t;return!0},Ve.isDataTable=Ve.fnIsDataTable=function(e){var i=N(e).get(0),o=!1;return e instanceof Ve.Api||(N.each(Ve.settings,function(e,t){var n=t.nScrollHead?N("table",t.nScrollHead)[0]:null,r=t.nScrollFoot?N("table",t.nScrollFoot)[0]:null;t.nTable!==i&&n!==i&&r!==i||(o=!0)}),o)},Ve.tables=Ve.fnTables=function(t){var e=!1;N.isPlainObject(t)&&(e=t.api,t=t.visible);var n=N.map(Ve.settings,function(e){if(!t||t&&N(e.nTable).is(":visible"))return e.nTable});return e?new $e(n):n},Ve.camelToHungarian=w,Ue("$()",function(e,t){var n=this.rows(t).nodes();n=N(n);return N([].concat(n.filter(e).toArray(),n.find(e).toArray()))}),N.each(["on","one","off"],function(e,n){Ue(n+"()",function(){var e=Array.prototype.slice.call(arguments);e[0]=N.map(e[0].split(/\s/),function(e){return e.match(/\.dt\b/)?e:e+".dt"}).join(" ");var t=N(this.tables().nodes());return t[n].apply(t,e),this})}),Ue("clear()",function(){return this.iterator("table",function(e){s(e)})}),Ue("settings()",function(){return new $e(this.context,this.context)}),Ue("init()",function(){var e=this.context;return e.length?e[0].oInit:null}),Ue("data()",function(){return this.iterator("table",function(e){return it(e.aoData,"_aData")}).flatten()}),Ue("destroy()",function(d){return d=d||!1,this.iterator("table",function(t){var n,e=t.nTableWrapper.parentNode,r=t.oClasses,i=t.nTable,o=t.nTBody,a=t.nTHead,s=t.nTFoot,l=N(i),c=(o=N(o),N(t.nTableWrapper)),u=N.map(t.aoData,function(e){return e.nTr});t.bDestroying=!0,Re(t,"aoDestroyCallback","destroy",[t]),d||new $e(t).columns().visible(!0),c.off(".DT").find(":not(tbody *)").off(".DT"),N(v).off(".DT-"+t.sInstance),i!=a.parentNode&&(l.children("thead").detach(),l.append(a)),s&&i!=s.parentNode&&(l.children("tfoot").detach(),l.append(s)),t.aaSorting=[],t.aaSortingFixed=[],ke(t),N(u).removeClass(t.asStripeClasses.join(" ")),N("th, td",a).removeClass(r.sSortable+" "+r.sSortableAsc+" "+r.sSortableDesc+" "+r.sSortableNone),o.children().detach(),o.append(u),l[a=d?"remove":"detach"](),c[a](),!d&&e&&(e.insertBefore(i,t.nTableRe
12insertBefore),l.css("width",t.sDestroyWidth).removeClass(r.sTable),(n=t.asDestroyStripes.length)&&o.children().each(function(e){N(this).addClass(t.asDestroyStripes[e%n])})),-1!==(e=N.inArray(t,Ve.settings))&&Ve.settings.splice(e,1)})}),N.each(["column","row","cell"],function(e,l){Ue(l+"s().every()",function(o){var a=this.selector.opts,s=this;return this.iterator(l,function(e,t,n,r,i){o.call(s[l](t,"cell"===l?n:a,"cell"===l?a:O),t,n,r,i)})})}),Ue("i18n()",function(e,t,n){var r=this.context[0];return(e=R(e)(r.oLanguage))===O&&(e=t),n!==O&&N.isPlainObject(e)&&(e=e[n]!==O?e[n]:e._),e.replace("%d",n)}),Ve.version="1.10.18",Ve.settings=[],Ve.models={},Ve.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},Ve.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},Ve.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},Ve.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(n){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:N.extend({},Ve.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},o(Ve.defaults),Ve.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},o(Ve.defaults.column),Ve.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:O,oAjaxData:O,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Fe(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Fe(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,r=this.aiDisplay.length,i=this.oFeatures,o=i.bPaginate;return i.bServerSide?!1===o||-1===e?t+r:Math.min(t+e,this._iRecordsDisplay):!o||r<n||-1===e?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},Ve.ext=We={buttons:{},classes:{},build:"bs4/dt-1.10.18",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:Ve.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:Ve.version},N.extend(We,{afnFiltering:We.search,aTypes:We.type.detect,ofnSearch:We.type.search,oSort:We.type.order,afnSortData:We.order,aoFeatures:We.feature,oApi:We.internal,oStdClasses:We.classes,oPagination:We.pager}),N.extend(Ve.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var At=Ve.ext.pager;N.extend(At,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(e,t){return[qe(e,t)]},simple_numbers:function(e,t){return["previous",qe(e,t),"next"]},full_numbers:function(e,t){return["first","previous",qe(e,t),"next","last"]},first_last_numbers:function(e,t){return["first",qe(e,t),"last"]},_numbers:qe,numbers_length:7}),N.extend(!0,Ve.ext.renderer,{pageButton:{_:function(s,e,l,t,c,u){var d,h,n,f=s.oClasses,p=s.oLanguage.oPaginate,m=s.oLanguage.oAria.paginate||{},g=0,v=function(e,t){var n,r,i,o,a=function(e){ue(s,e.data.action,!0)};for(n=0,r=t.length;n<r;n++)if(o=t[n],N.isArray(o))i=N("<"+(o.DT_el||"div")+"/>").appendTo(e),v(i,o);else{switch(d=null,h="",o){case"ellipsis":e.append('<span class="ellipsis">&#x2026;
12</span>');break;case"first":d=p.sFirst,h=o+(0<c?"":" "+f.sPageButtonDisabled);break;case"previous":d=p.sPrevious,h=o+(0<c?"":" "+f.sPageButtonDisabled);break;case"next":d=p.sNext,h=o+(c<u-1?"":" "+f.sPageButtonDisabled);break;case"last":d=p.sLast,h=o+(c<u-1?"":" "+f.sPageButtonDisabled);break;default:d=o+1,h=c===o?f.sPageButtonActive:""}null!==d&&(Me(i=N("<a>",{"class":f.sPageButton+" "+h,"aria-controls":s.sTableId,"aria-label":m[o],"data-dt-idx":g,tabindex:s.iTabIndex,id:0===l&&"string"==typeof o?s.sTableId+"_"+o:null}).html(d).appendTo(e),{action:o},a),g++)}};try{n=N(e).find(y.activeElement).data("dt-idx")}catch(ze){}v(N(e).empty(),t),n!==O&&N(e).find("[data-dt-idx="+n+"]").focus()}}}),N.extend(Ve.ext.type.detect,[function(e,t){
13var n=t.oLanguage.sDecimal;return nt(e,n)?"num"+n:null},function(e){if(e&&!(e instanceof Date)&&!Ke.test(e))return null;var t=Date.parse(e);return null!==t&&!isNaN(t)||Ze(e)?"date":null},function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n,!0)?"num-fmt"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n)?"html-num"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n,!0)?"html-num-fmt"+n:null},function(e){return Ze(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),N.extend(Ve.ext.type.search,{html:function(e){return Ze(e)?e:"string"==typeof e?e.replace(Ye," ").replace(Xe,""):""},string:function(e){return Ze(e)?e:"string"==typeof e?e.replace(Ye," "):e}});var Lt=function(e,t,n,r){return 0===e||e&&"-"!==e?(t&&(e=tt(e,t)),e.replace&&(n&&(e=e.replace(n,"")),r&&(e=e.replace(r,""))),1*e):-Infinity};N.extend(We.type.order,{"date-pre":function(e){return e=Date.parse(e),isNaN(e)?-Infinity:e},"html-pre":function(e){return Ze(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return Ze(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return e<t?-1:t<e?1:0},"string-desc":function(e,t){return e<t?1:t<e?-1:0}}),Be(""),N.extend(!0,Ve.ext.renderer,{header:{_:function(i,o,a,s){N(i.nTable).on("order.dt.DT",function(e,t,n,r){i===t&&(e=a.idx,o.removeClass(a.sSortingClass+" "+s.sSortAsc+" "+s.sSortDesc).addClass("asc"==r[e]?s.sSortAsc:"desc"==r[e]?s.sSortDesc:a.sSortingClass))})},jqueryui:function(i,o,a,s){N("<div/>").addClass(s.sSortJUIWrapper).append(o.contents()).append(N("<span/>").addClass(s.sSortIcon+" "+a.sSortingClassJUI)).appendTo(o),N(i.nTable).on("order.dt.DT",function(e,t,n,r){i===t&&(e=a.idx,o.removeClass(s.sSortAsc+" "+s.sSortDesc).addClass("asc"==r[e]?s.sSortAsc:"desc"==r[e]?s.sSortDesc:a.sSortingClass),o.find("span."+s.sSortIcon).removeClass(s.sSortJUIAsc+" "+s.sSortJUIDesc+" "+s.sSortJUI+" "+s.sSortJUIAscAllowed+" "+s.sSortJUIDescAllowed).addClass("asc"==r[e]?s.sSortJUIAsc:"desc"==r[e]?s.sSortJUIDesc:a.sSortingClassJUI))})}}});var It=function(e){return"string"==typeof e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e};return Ve.render={number:function(r,i,o,a,s){return{display:function(e){if("number"!=typeof e&&"string"!=typeof e)return e;var t=e<0?"-":"",n=parseFloat(e);return isNaN(n)?It(e):(n=n.toFixed(o),e=Math.abs(n),n=parseInt(e,10),e=o?i+(e-n).toFixed(o).substring(2):"",t+(a||"")+n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,r)+e+(s||""))}}},text:function(){return{display:It}}},N.extend(Ve.ext.internal,{_fnExternApiFunc:t,_fnBuildAjax:$,_fnAjaxUpdate:U,_fnAjaxParameters:e,_fnAjaxUpdateDraw:z,_fnAjaxDataSrc:V,_fnAddColumn:T,_fnColumnOptions:k,_fnAdjustColumnSizing:M,_fnVisibleToColumnIndex:P,_fnColumnIndexToVisible:c,_fnVisbleColumns:b,_fnGetColumns:D,_fnColumnTypes:a,_fnApplyColumnDefs:E,_fnHungarianMap:o,_fnCamelToHungarian:w,_fnLanguageCompat:x,_fnBrowserDetect:_,_fnAddData:A,_fnAddTr:L,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==O?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,t,n){return N.inArray(n,e.aoData[t].anCells)},_fnGetCellData:I,_fnSetCellData:r,_fnSplitObjNotation:u,_fnGetObjectDataFn:R,_fnSetObjectDataFn:p,_fnGetDataMaster:m,_fnClearTable:s,_fnDeleteIndex:d,_fnInvalidate:i,_fnGetRowElements:l,_fnCreateTr:g,_fnBuildHead:f,_fnDrawHead:j,_fnDraw:H,_fnReDraw:F,_fnAddOptionsHtml:q,_fnDetectHeader:B,_fnGetUniqueThs:W,_fnFeatureHtmlFilter:G,_fnFilterComplete:Y,_fnFilterCustom:X,_fnFilterColumn:K,_fnFilter:Q,_fnFilterCreateSearch:J,_fnEscapeRegex:ht,_fnFilterData:Z,_fnFeatureHtmlInfo:ne,_fnUpdateInfo:re,_fnInfoMacros:ie,_fnInitialise:oe,_fnInitComplete:ae,_fnLengthChange:se,_fnFeatureHtmlLength:le,_fnFeatureHtmlPaginate:ce,_fnPageChange:ue,_fnFeatureHtmlProcessing:de,_fnProcessingDisplay:he,_fnFeatureHtmlTable:fe,_fnScrollDraw:pe,_fnApplyToChildren:me,_fnCalculateColumnWidths:ge,_fnThrottle:gt,_fnConvertToWidth:ve,_fnGetWidestNode:ye,_fnGetMaxLenString:be,_fnStringToCss:we,_fnSortFlatten:xe,_fnSort:Se,_fnSortAria:Ce,_fnSortListener:_e,_fnSortAttachListener:Te,_fnSortingClasses:ke,_fnSortData:De,_fnSaveState:Ee,_fnLoadState:Ae,_fnSettingsFromNode:Le,_fnLog:Ie,_fnMap:Ne,_fnBindAction:Me,_fnCallbackReg:Pe,_fnCallbackFire:Re,_fnLengthOverflow:je,_fnRenderer:He,_fnDataSource:Fe,_fnRowAttributes:h,_fnExtend:Oe,_fnCalculateEnd:function(){}}),((N.fn.dataTable=Ve).$=N).fn.dataTableSettings=Ve.settings,N.fn.dataTableExt=Ve.ext,N.fn.DataTable=function(e){return N(this).dataTable(e).api()},N.each(Ve,function(e,t){N.fn.DataTable[e]=t}),N.fn.dataTable}),function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e||(e=window),t&&t.fn.dataTable||(t=require("datatables.net")(e,t).$),n(t,e,e.document)}:n(jQuery,window,document)}(function(b,e,i,o){var a=b.fn.dataTable;return b.extend(!0,a.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),b.extend(a.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),a.ext.renderer.pageButton.bootstrap=function(s,e,l,t,c,u){var d,h,n,f=new a.Api(s),p=s.oClasses,m=s.oLanguage.oPaginate,g=s.oLanguage.oAria.paginate||{},v=0,y=function(e,t){var n,r,i,o,a=function(e){e.preventDefault(),!b(e.currentTarget).hasClass("disabled")&&f.page()!=e.data.action&&f.page(e.data.action).draw("page")};for(n=0,r=t.length;n<r;n++)if(o=t[n],b.isArray(o))y(e,o);else{switch(h=d="",o){case"ellipsis":d="&#x2026;",h="disabled";break;case"first":d=m.sFirst,h=o+(0<c?"":" disabled");break;case"previous":d=m.sPrevious,h=o+(0<c?"":" disabled");break;case"next":d=m.sNext,h=o+(c<u-1?"":" disabled");break;case"last":d=m.sLast,h=o+(c<u-1?"":" disabled");break;default:d=o+1,h=c===o?"active":""}d&&(i=b("<li>",{"class":p.sPageButton+" "+h,id:0===l&&"string"==typeof o?s.sTableId+"_"+o:null}).append(b("<a>",{href:"#","aria-controls":s.sTableId,"aria-label":g[o],"data-dt-idx":v,tabindex:s.iTabIndex,"class":"page-link"}).html(d)).appendTo(e),s.oApi._fnBindAction(i,{action:o},a),v++)}};try{n=b(e).find(i.activeElement).data("dt-idx")}catch(r){}y(b(e).empty().html('<ul class="pagination"/>').children("ul"),t),n!==o&&b(e).find("[data-dt-idx="+n+"]").focus()},a}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).SimpleMDE=e()}}(function(){var s;return function u(o,a,s){function l(n,e){if(!a[n]){if(!o[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}
13var i=a[n]={exports:{}};o[n][0].call(i.exports,function(e){var t=o[n][1][e];return l(t||e)},i,i.exports,u,o,a,s)}return a[n].exports}for(var c="function"==typeof require&&require,e=0;e<s.length;e++)l(s[e]);return l}({1:[function(e,t,n){"use strict";function r(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)u[t]=e[t],d[e.charCodeAt(t)]=t;d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63}function i(e){var t,n,r,i,o,a,s=e.length;if(0<s%4)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new h(3*s/4-o),r=0<o?s-4:s;var l=0;for(n=t=0;t<r;t+=4,n+=3)i=d[e.charCodeAt(t)]<<18|d[e.charCodeAt(t+1)]<<12|d[e.charCodeAt(t+2)]<<6|d[e.charCodeAt(t+3)],a[l++]=i>>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=d[e.charCodeAt(t)]<<2|d[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=d[e.charCodeAt(t)]<<10|d[e.charCodeAt(t+1)]<<4|d[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}function a(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function c(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i.push(a(r));return i.join("")}function o(e){for(var t,n=e.length,r=n%3,i="",o=[],a=16383,s=0,l=n-r;s<l;s+=a)o.push(c(e,s,l<s+a?l:s+a));return 1===r?(t=e[n-1],i+=u[t>>2],i+=u[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=u[t>>10],i+=u[t>>4&63],i+=u[t<<2&63],i+="="),o.push(i),o.join("")}n.toByteArray=i,n.fromByteArray=o;var u=[],d=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array;r()},{}],2:[function(){},{}],3:[function(Z,e,ee){(function(t){"use strict";function e(){try{var e=new Uint8Array(1);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function n(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(n()<t)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=d.prototype:(null===e&&(e=new d(t)),e.length=t),e}function d(e,t,n){if(!(d.TYPED_ARRAY_SUPPORT||this instanceof d))return new d(e,t,n);if("number"!=typeof e)return r(this,e,t,n);if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return s(this,e)}function r(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?u(e,t,n,r):"string"==typeof t?l(e,t,n):h(e,t)}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number')}function a(e,t,n,r){return o(t),t<=0?i(e,t):void 0!==n?"string"==typeof r?i(e,t).fill(n,r):i(e,t).fill(n):i(e,t)}function s(e,t){if(o(t),e=i(e,t<0?0:0|f(t)),!d.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;n++)e[n]=0;return e}function l(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!d.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');return(e=i(e,0|m(t,n))).write(t,n),e}function c(e,t){var n=0|f(t.length);e=i(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function u(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),d.TYPED_ARRAY_SUPPORT?(e=t).__proto__=d.prototype:e=c(e,t),e}function h(e,t){if(d.isBuffer(t)){var n=0|f(t.length);return 0===(e=i(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||G(t.length)?i(e,0):c(e,t);if("Buffer"===t.type&&K(t.data))return c(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function f(e){if(e>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function p(e){return+e!=e&&(e=0),d.alloc(+e)}function m(e,t){if(d.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return W(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return E(this,t,n);case"binary":return A(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r){function i(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,a=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a/=o=2,s/=2,n/=2}for(var l=-1,c=0;n+c<a;c++)if(i(e,n+c)===i(t,-1===l?0:c-l)){if(-1===l&&(l=c),c-l+1===s)return(n+l)*o}else-1!==l&&(c-=c-l),l=-1;return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?i<(r=Number(r))&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new Error("Invalid hex string");o/2<r&&(r=o/2);for(var a=0;a<r;a++){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function w(e,t,n,r){return V(W(t,e.length-n),e,n,r)}function x(e,t,n,r){return V($(t),e,n,r)}function S(e,t,n,r){return x(e,t,n,r)}function C(e,t,n,r){return V(z(t),e,n,r)}function _(e,t,n,r){return V(U(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?Y.fromByteArray(e):Y.fromByteArray(e.slice(t,n))}
13function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,d=239<c?4:223<c?3:191<c?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(127<(l=(31&c)<<6|63&o)&&(u=l));break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(2047<(l=(15&c)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(u=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(65535<(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(u=l))}null===u?(u=65533,d=1):65535<u&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return D(r)}function D(e){var t=e.length;if(t<=Q)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Q));return n}function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;i++)r+=String.fromCharCode(127&e[i]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;i++)r+=String.fromCharCode(e[i]);return r}function L(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var i="",o=t;o<n;o++)i+=B(e[o]);return i}function I(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,i,o){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<t||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;i++)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function P(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;i++)e[n+i]=t>>>8*(r?i:3-i)&255}function R(e,t,n,r){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,i){return i||R(e,t,n,4,34028234663852886e22,-34028234663852886e22),X.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,i){return i||R(e,t,n,8,17976931348623157e292,-17976931348623157e292),X.write(e,t,n,r,52,8),n+8}function F(e){if((e=q(e).replace(J,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a<r;a++){if(55295<(n=e.charCodeAt(a))&&n<57344){if(!i){if(56319<n){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===r){-1<(t-=3)&&o.push(239,191,189);continue}i=n;continue}if(n<56320){-1<(t-=3)&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&-1<(t-=3)&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}function U(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);a++)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}function z(e){return Y.toByteArray(F(e))}function V(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function G(e){return e!=e}var Y=Z("base64-js"),X=Z("ieee754"),K=Z("isarray");ee.Buffer=d,ee.SlowBuffer=p,ee.INSPECT_MAX_BYTES=50,d.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:e(),ee.kMaxLength=n(),d.poolSize=8192,d._augment=function(e){return e.__proto__=d.prototype,e},d.from=function(e,t,n){return r(null,e,t,n)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0})),d.alloc=function(e,t,n){return a(null,e,t,n)},d.allocUnsafe=function(e){return s(null,e)},d.allocUnsafeSlow=function(e){return s(null,e)},d.isBuffer=function(e){return!(null==e||!e._isBuffer)},d.compare=function(e,t){if(!d.isBuffer(e)||!d.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},d.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(e,t){if(!K(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);var n;if(void 0===t)for(n=t=0;n<e.length;n++)t+=e[n].length;var r=d.allocUnsafe(t),i=0;for(n=0;n<e.length;n++){var o=e[n];if(!d.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},d.byteLength=m,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},d.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},d.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):g.apply(this,arguments)},d.prototype.equals=function(e){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===d.compare(this,e)},d.prototype.inspect=function(){var e="",t=ee.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},d.prototype.compare=function(e,t,n,r,i){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(i<=r&&n<=t)return 0;if(i<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),u=0;u<s;++u)if(l[u]!==c[u]){o=l[u],a=c[u];break}return o<a?-1:a<o?1:0},d.prototype.indexOf=function(e,t,n){if("string"==typeof t?(n=t,t=0):2147483647<t?t=2147483647:t<-2147483648&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(t<0&&(t=Math.max(this.length+t,0)),"string"==typeof e&&(e=d.from(e,n)),d.isBuffer(e))return 0===e.length?-1:y(this,e,t,n);if("number"==typeof e)return d.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):y(this,[e],t,n);throw new TypeError("val must be string, number or Buffer")},d.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},d.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||i<n)&&(n=i),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"binary":return S(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;d.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e),d.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=d.prototype;else{var i=t-e;n=new d(i,void 0);for(var o=0;o<i;o++)n[o]=this[o+e]}return n},d.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},d.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e+--t],i=1;0<t&&(i*=256);)r+=this[e+--t]*i;return r},d.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},d.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return(i*=128)<=r&&(r-=Math.pow(2,8*t)),r},d.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,i=1,o=this[e+--r];0<r&&(i*=256);)o+=this[e+--r]*i;return(i*=128)<=o&&(o-=Math.pow(2,8*t)),o},d.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),X.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),X.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),X.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),X.read(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},d.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;0<=--i&&(o*=256);)this[t+i]=e/o&255;return t+n},d.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,255,0),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},d.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},d.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},d.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,127,-128),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},d.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},d.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},d.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),0<r&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;0<=i;i--)e[i+t]=this[i+n];else if(o<1e3||!d.TYPED_ARRAY_SUPPORT)for(i=0;i<o;i++)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},d.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!d.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;o++)this[o]=e;else{var a=d.isBuffer(e)?e:W(new d(e,r).toString()),s=a.length;for(o=0;o<n-t;o++)this[o+t]=a[o%s]}return this};var J=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":1,ieee754:15,isarray:16}],4:[function(e,t){"use strict";function s(a){return"function"!=typeof(a=a||{}).codeMirrorInstance||"function"!=typeof a.codeMirrorInstance.defineMode?void console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`"):(String.prototype.includes||(String.prototype.includes=function(){return-1!==String.prototype.indexOf.apply(this,arguments)}),void a.codeMirrorInstance.defineMode("spell-checker",function(e){if(!s.aff_loading){s.aff_loading=!0;var t=new XMLHttpRequest;t.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),t.onload=function(){4===t.readyState&&200===t.status&&(s.aff_data=t.responseText,s.num_loaded++,2==s.num_loaded&&(s.typo=new l("en_US",s.aff_data,s.dic_data,{platform:"any"})))},t.send(null)}if(!s.dic_loading){s.dic_loading=!0;var n=new XMLHttpRequest;n.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),n.onload=function(){4===n.readyState&&200===n.status&&(s.dic_data=n.responseText,s.num_loaded++,2==s.num_loaded&&(s.typo=new l("en_US",s.aff_data,s.dic_data,{platform:"any"})))},n.send(null)}var r='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',i={token:function(e){var t=e.peek(),n="";if(r.includes(t))return e.next(),null;for(;null!=(t=e.peek())&&!r.includes(t);)n+=t,e.next();return s.typo&&!s.typo.check(n)?"spell-error":null}},o=a.codeMirrorInstance.getMode(e,e.backdrop||"text/plain");return a.codeMirrorInstance.overlayMode(o,i,!0)}))}var l=e("typo-js");s.num_loaded=0,s.aff_loading=!1,s.dic_loading=!1,s.aff_data="",s.dic_data="",s.typo,t.exports=s},{"typo-js":18}],5:[function(e,t,n){var r;r=function(r){"use strict";function i(e){var t=
13e.getWrapperElement();e.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:t.style.width,height:t.style.height},t.style.width="",t.style.height="auto",t.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",e.refresh()}function o(e){var t=e.getWrapperElement();t.className=t.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var n=e.state.fullScreenRestore;t.style.width=n.width,t.style.height=n.height,window.scrollTo(n.scrollLeft,n.scrollTop),e.refresh()}r.defineOption("fullScreen",!1,function(e,t,n){n==r.Init&&(n=!1),!n!=!t&&(t?i(e):o(e))})},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror")):"function"==typeof s&&s.amd?s(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":10}],6:[function(e,t,n){var r;r=function(o){function a(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function r(e){a(e);var t=e.state.placeholder=document.createElement("pre");t.style.cssText="height: 0; overflow: visible",t.className="CodeMirror-placeholder";var n=e.getOption("placeholder");"string"==typeof n&&(n=document.createTextNode(n)),t.appendChild(n),e.display.lineSpace.insertBefore(t,e.display.lineSpace.firstChild)}function s(e){i(e)&&r(e)}function l(e){var t=e.getWrapperElement(),n=i(e);t.className=t.className.replace(" CodeMirror-empty","")+(n?" CodeMirror-empty":""),n?r(e):a(e)}function i(e){return 1===e.lineCount()&&""===e.getLine(0)}o.defineOption("placeholder","",function(e,t,n){var r=n&&n!=o.Init;if(t&&!r)e.on("blur",s),e.on("change",l),e.on("swapDoc",l),l(e);else if(!t&&r){e.off("blur",s),e.off("change",l),e.off("swapDoc",l),a(e);var i=e.getWrapperElement();i.className=i.className.replace(" CodeMirror-empty","")}t&&!e.hasFocus()&&s(e)})},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror")):"function"==typeof s&&s.amd?s(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":10}],7:[function(e,t,n){var r;r=function(f){"use strict";var p=/^(\s*)(>[> ]*|[*+-]\s|(\d+)([.)]))(\s*)/,m=/^(\s*)(>[> ]*|[*+-]|(\d+)[.)])(\s*)$/,g=/[*+-]\s/;f.commands.newlineAndIndentContinueMarkdownList=function(e){if(e.getOption("disableInput"))return f.Pass;for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var i=t[r].head,o=e.getStateAfter(i.line),a=!1!==o.list,s=0!==o.quote,l=e.getLine(i.line),c=p.exec(l);if(!t[r].empty()||!a&&!s||!c)return void e.execCommand("newlineAndIndent");if(m.test(l))e.replaceRange("",{line:i.line,ch:0},{line:i.line,ch:i.ch+1}),n[r]="\n";else{var u=c[1],d=c[5],h=g.test(c[2])||0<=c[2].indexOf(">")?c[2]:parseInt(c[3],10)+1+c[4];n[r]="\n"+u+h+d}}e.replaceSelections(n)}},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror")):"function"==typeof s&&s.amd?s(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":10}],8:[function(e,t,n){var r;r=function(t){"use strict";t.overlayMode=function(n,r,i){return{startState:function(){return{base:t.startState(n),overlay:t.startState(r),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(e){return{base:t.copyState(n,e.base),overlay:t.copyState(r,e.overlay),basePos:e.basePos,
14baseCur:null,overlayPos:e.overlayPos,overlayCur:null}},token:function(e,t){return(e!=t.streamSeen||Math.min(t.basePos,t.overlayPos)<e.start)&&(t.streamSeen=e,t.basePos=t.overlayPos=e.start),e.start==t.basePos&&(t.baseCur=n.token(e,t.base),t.basePos=e.pos),e.start==t.overlayPos&&(e.pos=e.start,t.overlayCur=r.token(e,t.overlay),t.overlayPos=e.pos),e.pos=Math.min(t.basePos,t.overlayPos),null==t.overlayCur?t.baseCur:null!=t.baseCur&&t.overlay.combineTokens||i&&null==t.overlay.combineTokens?t.baseCur+" "+t.overlayCur:t.overlayCur},indent:n.indent&&function(e,t){return n.indent(e.base,t)},electricChars:n.electricChars,innerMode:function(e){return{state:e.base,mode:n}},blankLine:function(e){n.blankLine&&n.blankLine(e.base),r.blankLine&&r.blankLine(e.overlay)}}}},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror")):"function"==typeof s&&s.amd?s(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":10}],9:[function(e,t,n){var r;r=function(i){"use strict";function o(e){e.operation(function(){t(e)})}function a(e){e.state.markedSelection.length&&e.operation(function(){l(e)})}function s(e,t,n,r){if(0!=p(t,n))for(var i=e.state.markedSelection,o=e.state.markedSelectionStyle,a=t.line;;){var s=a==t.line?t:f(a,0),l=a+h,c=l>=n.line,u=c?n:f(l,0),d=e.markText(s,u,{className:o});if(null==r?i.push(d):i.splice(r++,0,d),c)break;a=l}}function l(e){for(var t=e.state.markedSelection,n=0;n<t.length;++n)t[n].clear();t.length=0}function c(e){l(e);for(var t=e.listSelections(),n=0;n<t.length;n++)s(e,t[n].from(),t[n].to())}function t(e){if(!e.somethingSelected())return l(e);
vendor: 5,346 bytes, line 14
14if(1<e.listSelections().length)return c(e);var t=e.getCursor("start"),n=e.getCursor("end"),r=e.state.markedSelection;if(!r.length)return s(e,t,n);var i=r[0].find(),o=r[r.length-1].find();if(!i||!o||n.line-t.line<h||0<=p(t,o.to)||p(n,i.from)<=0)return c(e);for(;0<p(t,i.from);)r.shift().clear(),i=r[0].find();for(p(t,i.from)<0&&(i.to.line-t.line<h?(r.shift().clear(),s(e,t,i.to,0)):s(e,t,i.from,0));p(n,o.to)<0;)r.pop().clear(),o=r[r.length-1].find();0<p(n,o.to)&&(n.line-o.from.line<h?(r.pop().clear(),s(e,o.from,n)):s(e,o.to,n))}i.defineOption("styleSelectedText",!1,function(e,t,n){var r=n&&n!=i.Init;t&&!r?(e.state.markedSelection=[],e.state.markedSelectionStyle="string"==typeof t?t:"CodeMirror-selectedtext",c(e),e.on("cursorActivity",o),e.on("change",a)):!t&&r&&(e.off("cursorActivity",o),e.off("change",a),l(e),e.state.markedSelection=e.state.markedSelectionStyle=null)});var h=8,f=i.Pos,p=i.cmpPos},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror")):"function"==typeof s&&s.amd?s(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":10}],10:[function(e,t,n){!function(e){if("object"==typeof n&&"object"==typeof t)t.exports=e();else{if("function"==typeof s&&s.amd)return s([],e);(this||window).CodeMirror=e()}}(function(){"use strict";function l(e,t){if(!(this instanceof l))return new l(e,t);this.options=t=t?ji(t):{},ji(ea,t,!1),m(t);var n=t.value;"string"==typeof n&&(n=new _a(n,t.mode,null,t.lineSeparator)),this.doc=n;var r=new l.inputStyles[t.inputStyle](this),i=this.display=new c(e,n,r);h(i.wrapper.CodeMirror=this),u(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),t.autofocus&&!Ao&&i.input.focus(),v(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 Li,keySeq:null,specialChars:null};var o=this;for(var a in bo&&wo<11&&setTimeout(function(){o.display.input.reset(!0)},20),Wt(this),Xi(),wt(this),this.curOp.forceUpdate=!0,Kr(this,n),t.autofocus&&!Ao||o.hasFocus()?setTimeout(Hi(vn,this),20):yn(this),ta)ta.hasOwnProperty(a)&&ta[a](this,t[a],na);x(this),t.finishInit&&t.finishInit(this);for(var s=0;s<aa.length;++s)aa[s](this);St(this),xo&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(i.lineDiv).textRendering&&(i.lineDiv.style.textRendering="auto")}function c(e,t,n){var r=this;this.input=n,r.scrollbarFiller=Wi("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=Wi("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=Wi("div",null,"CodeMirror-code"),r.selectionDiv=Wi("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=Wi("div",null,"CodeMirror-cursors"),r.measure=Wi("div",null,"CodeMirror-measure"),r.lineMeasure=Wi("div",null,"CodeMirror-measure"),r.lineSpace=Wi("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none"),r.mover=Wi("div",[Wi("div",[r.lineSpace],"CodeMirror-lines")],null,"position: relative"),r.sizer=Wi("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=Wi("div",null,null,"position: absolute; height: "+Pa+"px; width: 1px;"),r.gutters=Wi("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=Wi("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=Wi("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),bo&&wo<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),xo||go&&Ao||(r.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(r.wrapper):e(r.wrapper)),r.viewFrom=r.viewTo=t.first,r.reportedViewFrom=r.reportedViewTo=t.first,r.view=[],r.renderedView=null,r.externalMeasured=null,r.viewOffset=0,r.lastWrapHeight=r.lastWrapWidth=0,r.updateLineNumbers=null,r.nativeBarWidth=r.barHeight=r.barWidth=0,r.scrollbarsClipped=!1,r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null,r.alignWidgets=!1,r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.maxLine=null,r.maxLineLength=0,r.maxLineChanged=!1,r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null,r.shift=!1,r.selForContextMenu=null,r.activeTouch=null,n.init(r)}function n(e){e.doc.mode=l.getMode(e.options,e.doc.modeOption),t(e)}function t(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.frontier=e.doc.first,Fe(e,100),e.state.modeGen++,e.curOp&&Pt(e)}function i(e){e.options.lineWrapping?(Za(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Ja(e.display.wrapper,"CodeMirror-wrap"),o(e)),r(e),Pt(e),st(e),setTimeout(function(){y(e)},100)}function f(r){var i=yt(r.display),o=r.options.lineWrapping,a=o&&Math.max(5,r.display.scroller.clientWidth/bt(r.display)-3);return function(e){if(Sr(r.doc,e))return 0;var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;n++)e.widgets[n].height&&(t+=e.widgets[n].height);return o?t+(Math.ceil(e.text.length/a)||1)*i:t+i}}function r(e){var t=e.doc,n=f(e);t.iter(function(e){var t=n(e);t!=e.height&&ei(e,t)})}function u(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),st(e)}function d(e){h(e),Pt(e),setTimeout(function(){w(e)},20)}
14function h(e){var t=e.display.gutters,n=e.options.gutters;$i(t);for(var r=0;r<n.length;++r){var i=n[r],o=t.appendChild(Wi("div",null,"CodeMirror-gutter "+i));"CodeMirror-linenumbers"==i&&((e.display.lineGutter=o).style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=r?"":"none",s(e)}function s(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function p(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=mr(r);){r=(i=t.find(0,!0)).from.line,n+=i.from.ch-i.to.ch}for(r=e;t=gr(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 o(e){var n=e.display,t=e.doc;n.maxLine=Qr(t,t.first),n.maxLineLength=p(n.maxLine),n.maxLineChanged=!0,t.iter(function(e){var t=p(e);t>n.maxLineLength&&(n.maxLineLength=t,n.maxLine=e)})}function m(e){var t=Oi(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):-1<t&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function a(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ue(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+Ve(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function e(e,t,n){this.cm=n;var r=this.vert=Wi("div",[Wi("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=Wi("div",[Wi("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(i),La(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),La(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,bo&&wo<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function g(){}function v(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&Ja(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new l.scrollbarModel[n.options.scrollbarStyle](function(e){n.display.wrapper.insertBefore(e,n.display.scrollbarFiller),La(e,"mousedown",function(){n.state.focused&&setTimeout(function(){n.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,t){"horizontal"==t?on(n,e):rn(n,e)},n),n.display.scrollbars.addClass&&Za(n.display.wrapper,n.display.scrollbars.addClass)}function y(e,t){t||(t=a(e));var n=e.display.barWidth,r=e.display.barHeight;b(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&I(e),b(e,a(e)),n=e.display.barWidth,r=e.display.barHeight}function b(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=""}function C(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-$e(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=ni(t,r),a=ni(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?a=ni(t,ri(Qr(t,o=s))+e.wrapper.clientHeight):Math.min(l,t.lastLine())>=a&&(o=ni(t,ri(Qr(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function w(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=_(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&n[a].gutter&&(n[a].gutter.style.left=o);var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function x(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=S(e.options,t.first+t.size-1),r=e.display;
vendor: 10,270 bytes, line 14
14if(n.length==r.lineNumChars)return!1;var i=r.measure.appendChild(Wi("div",[Wi("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",s(e),!0}function S(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function _(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function T(e,t,n){var r=e.display;this.viewport=t,this.visible=C(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Ge(e),this.force=n,this.dims=O(e),this.events=[]}function k(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Ve(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Ve(e)+"px",t.scrollbarsClipped=!0)}function D(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return jt(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==Bt(e))return!1;x(e)&&(jt(e),t.dims=O(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),jo&&(o=wr(e.doc,o),a=xr(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;qt(e,o,a),n.viewOffset=ri(Qr(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Bt(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=zi();return 4<l&&(n.lineDiv.style.display="none"),M(e,n.updateLineNumbers,t.dims),4<l&&(n.lineDiv.style.display=""),n.renderedView=n.view,c&&zi()!=c&&c.offsetHeight&&c.focus(),$i(n.cursorDiv),$i(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Fe(e,400)),!(n.updateLineNumbers=null)}function E(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Ge(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Ue(e.display)-Ye(e),n.top)}),t.visible=C(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&D(e,t);r=!1){I(e);var i=a(e);Me(e),y(e,i),L(e,i)}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 A(e,t){var n=new T(e,t);if(D(e,n)){I(e),E(e,n);var r=a(e);Me(e),y(e,r),L(e,r),n.finish()}}function L(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+Ve(e)+"px"}function I(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i,o=t.view[r];if(!o.hidden){if(bo&&wo<8){var a=o.node.offsetTop+o.node.offsetHeight;i=a-n,n=a}else{var s=o.node.getBoundingClientRect();i=s.bottom-s.top}var l=o.line.height-i;if(i<2&&(i=yt(t)),(.001<l||l<-.001)&&(ei(o.line,i),N(o.line),o.rest))for(var c=0;c<o.rest.length;c++)N(o.rest[c])}}}function N(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t)e.widgets[t].height=e.widgets[t].node.parentNode.offsetHeight}function O(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:_(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function M(n,e,t){function r(e){var t=e.nextSibling;return xo&&Lo&&n.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),t}for(var i=n.display,o=n.options.lineNumbers,a=i.lineDiv,s=a.firstChild,l=i.view,c=i.viewFrom,u=0;u<l.length;u++){var d=l[u];if(d.hidden);else if(d.node&&d.node.parentNode==a){for(;s!=d.node;)s=r(s);var h=o&&null!=e&&e<=c&&d.lineNumber;d.changes&&(-1<Oi(d.changes,"gutter")&&(h=!1),P(n,d,c,t)),h&&($i(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(S(n.options,c)))),s=d.node.nextSibling}else{var f=$(n,d,c,t);a.insertBefore(f,s)}c+=d.size}for(;s;)s=r(s)}function P(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?F(e,t):"gutter"==o?B(e,t,n,r):"class"==o?q(t):"widget"==o&&W(e,t,r)}t.changes=null}function R(e){return e.node==e.text&&(e.node=Wi("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),bo&&wo<8&&(e.node.style.zIndex=2)),e.node}function j(e){var t=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(t&&(t+=" CodeMirror-linebackground"),e.background)t?e.background.className=t:(e.background.parentNode.removeChild(e.background),e.background=null);else if(t){var n=R(e);e.background=n.insertBefore(Wi("div",null,t),n.firstChild)}}function H(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Hr(e,t)}function F(e,t){var n=t.text.className,r=H(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,q(t)):n&&(t.text.className=n)}function q(e){j(e),e.line.wrapClass?R(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var t=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=t||""}function B(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 i=R(t);t.gutterBackground=Wi("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){i=R(t);var a=t.gutter=Wi("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(a),i.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(Wi("div",S(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var s=0;s<e.options.gutters.length;++s){var l=e.options.gutters[s],c=o.hasOwnProperty(l)&&o[l];c&&a.appendChild(Wi("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function W(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild;r;r=i){var i=r.nextSibling;"CodeMirror-linewidget"==r.className&&t.node.removeChild(r)}U(e,t,n)}function $(e,t,n,r){var i=H(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),q(t),B(e,t,n,r),U(e,t,r),t.node}function U(e,t,n){if(z(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)z(e,t.rest[r],t,n,!1)}function z(e,t,n,r,i){if(t.widgets)for(var o=R(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=Wi("div",[l.node],"CodeMirror-linewidget");l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),V(l,c,n,r),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),_i(l,"redraw")}}function V(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function G(e){return Ho(e.line,e.ch)}function Y(e,t){return Fo(e,t)<0?t:e}function X(e,t){return Fo(e,t)<0?e:t}function K(e){e.state.focused||(e.display.input.focus(),vn(e))}function Q(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=e.state.pasteIncoming||"paste"==i,s=o.splitLines(t),l=null;if(a&&1<r.ranges.length)if(qo&&qo.text.join("\n")==t){if(r.ranges.length%qo.text.length==0){l=[];for(var c=0;c<qo.text.length;c++)l.push(o.splitLines(qo.text[c]))}}else s.length==r.ranges.length&&(l=Mi(s,function(e){return[e]}));for(c=r.ranges.length-1;0<=c;c--){var u=r.ranges[c],d=u.from(),h=u.to();u.empty()&&(n&&0<n?d=Ho(d.line,d.ch-n):e.state.overwrite&&!a?h=Ho(h.line,Math.min(Qr(o,h.line).text.length,h.ch+Ni(s).length)):qo&&qo.lineWise&&qo.text.join("\n")==t&&(d=h=Ho(d.line,0)));var f=e.curOp.updateInput,p={from:d,to:h,text:l?l[c%l.length]:s,origin:i||(a?"paste":e.state.cutIncoming?"cut":"+input")};kn(e.doc,p),_i(e,"inputRead",e,p)}t&&!a&&Z(e,t),Hn(e),e.curOp.updateInput=f,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function J(e,t){var n=e.clipboardData&&e.clipboardData.getData("text/plain");return n?(e.preventDefault(),t.isReadOnly()||t.options.disableInput||At(t,function(){Q(t,n,0,null,"paste")}),!0):void 0}function Z(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;0<=r;r--){var i=n.ranges[r];if(!(100<i.head.ch||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(-1<t.indexOf(o.electricChars.charAt(s))){a=qn(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Qr(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=qn(e,i.head.line,"smart"));a&&_i(e,"electricInput",e,i.head.line)}}}function ee(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:Ho(i,0),head:Ho(i+1,
140)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function te(e){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck","false")}function ne(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Li,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null}function re(){var e=Wi("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none"),t=Wi("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return xo?e.style.width="1000px":e.setAttribute("wrap","off"),Eo&&(e.style.border="1px solid black"),te(e),t}function ie(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Li,this.gracePeriod=!1}function oe(e,t){var n=Ze(e,t.line);if(!n||n.hidden)return null;var r=Qr(e.doc,t.line),i=Ke(n,r,t.line),o=ii(r),a="left";o&&(a=co(o,t.ch)%2?"right":"left");var s=nt(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function ae(e,t){return t&&(e.bad=!0),e}function se(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return ae(e.clipPos(Ho(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 i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return le(o,t,n)}}function le(c,e,t){function n(e,t,n){for(var r=-1;r<(d?d.length:0);r++)for(var i=r<0?u.map:d[r],o=0;o<i.length;o+=3){var a=i[o+2];if(a==e||a==t){var s=ti(r<0?c.line:c.rest[r]),l=i[o]+n;return(n<0||a!=e)&&(l=i[o+(n?1:0)]),Ho(s,l)}}}var r=c.text.firstChild,i=!1;if(!e||!Ya(r,e))return ae(Ho(ti(c.line),0),!0);if(e==r&&(i=!0,e=r.childNodes[t],t=0,!e)){var o=c.rest?Ni(c.rest):c.line;return ae(Ho(ti(o),o.text.length),i)}var a=3==e.nodeType?e:null,s=e;for(a||1!=e.childNodes.length||3!=e.firstChild.nodeType||(a=e.firstChild,t&&(t=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var u=c.measure,d=u.maps,l=n(a,s,t);if(l)return ae(l,i);for(var h=s.nextSibling,f=a?a.nodeValue.length-t:0;h;h=h.nextSibling){if(l=n(h,h.firstChild,0))return ae(Ho(l.line,l.ch-f),i);f+=h.textContent.length}var p=s.previousSibling;for(f=t;p;p=p.previousSibling){if(l=n(p,p.firstChild,-1))return ae(Ho(l.line,l.ch+f),i);f+=h.textContent.length}}function ce(s,e,t,l,c){function u(t){return function(e){return e.id==t}}function d(e){if(1==e.nodeType){var t=e.getAttribute("cm-text");if(null!=t)return""==t&&(t=e.textContent.replace(/\u200b/g,"")),void(h+=t);var n,r=e.getAttribute("cm-marker");if(r){var i=s.findMarks(Ho(l,0),Ho(c+1,0),u(+r));return void(i.length&&(n=i[0].find())&&(h+=Jr(s.doc,n.from,n.to).join(p)))}if("false"==e.getAttribute("contenteditable"))return;for(var o=0;o<e.childNodes.length;o++)d(e.childNodes[o]);/^(pre|div|p)$/i.test(e.nodeName)&&(f=!0)}
14else if(3==e.nodeType){var a=e.nodeValue;if(!a)return;f&&(h+=p,f=!1),h+=a}}for(var h="",f=!1,p=s.doc.lineSeparator();d(e),e!=t;)e=e.nextSibling;return h}function ue(e,t){this.ranges=e,this.primIndex=t}function de(e,t){this.anchor=e,this.head=t}function he(e,t){var n=e[t];e.sort(function(e,t){return Fo(e.from(),t.from())}),t=Oi(e,n);for(var r=1;r<e.length;r++){var i=e[r],o=e[r-1];if(0<=Fo(o.to(),i.from())){var a=X(o.from(),i.from()),s=Y(o.to(),i.to()),l=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new de(l?s:a,l?a:s))}}return new ue(e,t)}function fe(e,t){return new ue([new de(e,t||e)],0)}function pe(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function me(e,t){if(t.line<e.first)return Ho(e.first,0);var n=e.first+e.size-1;return t.line>n?Ho(n,Qr(e,n).text.length):ge(t,Qr(e,t.line).text.length)}function ge(e,t){var n=e.ch;return null==n||t<n?Ho(e.line,t):n<0?Ho(e.line,0):e}function ve(e,t){return t>=e.first&&t<e.first+e.size}function ye(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=me(e,t[r]);return n}function be(e,t,n,r){if(e.cm&&e.cm.display.shift||e.extend){var i=t.anchor;if(r){var o=Fo(n,i)<0;o!=Fo(r,i)<0?(i=n,n=r):o!=Fo(n,r)<0&&(n=r)}return new de(i,n)}return new de(r||n,n)}function we(e,t,n,r){ke(e,new ue([be(e,e.sel.primary(),t,n)],0),r)}function xe(e,t,n){for(var r=[],i=0;i<e.sel.ranges.length;i++)r[i]=be(e,e.sel.ranges[i],t[i],null);ke(e,he(r,e.sel.primIndex),n)}function Se(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,ke(e,he(i,e.sel.primIndex),r)}function Ce(e,t,n,r){ke(e,fe(t,n),r)}function _e(n,e,t){var r={ranges:e.ranges,update:function(e){this.ranges=[];for(var t=0;t<e.length;t++)this.ranges[t]=new de(me(n,e[t].anchor),me(n,e[t].head))},origin:t&&t.origin};return Oa(n,"beforeSelectionChange",n,r),n.cm&&Oa(n.cm,"beforeSelectionChange",n.cm,r),r.ranges!=e.ranges?he(r.ranges,r.ranges.length-1):e}function Te(e,t,n){var r=e.history.done,i=Ni(r);i&&i.ranges?De(e,r[r.length-1]=t,n):ke(e,t,n)}function ke(e,t,n){De(e,t,n),di(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function De(e,t,n){(Ei(e,"beforeSelectionChange")||e.cm&&Ei(e.cm,"beforeSelectionChange"))&&(t=_e(e,t,n)),Ee(e,Le(e,t,n&&n.bias||(Fo(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!e.cm||Hn(e.cm)}function Ee(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,Di(e.cm)),_i(e,"cursorActivity",e))}function Ae(e){Ee(e,Le(e,e.sel,null,!1),ja)}function Le(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Ne(e,a.anchor,s&&s.anchor,n,r),c=Ne(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new de(l,c))}return i?he(i,t.primIndex):t}function Ie(e,t,n,r,i){var o=Qr(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker;if((null==s.from||(l.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(l.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(i&&(Oa(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var c,u=l.find(r<0?1:-1);if((r<0?l.inclusiveRight:l.inclusiveLeft)&&(u=Oe(e,u,-r,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(c=Fo(u,n))&&(r<0?c<0:0<c))return Ie(e,u,t,r,i)}var d=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(d=Oe(e,d,r,d.line==t.line?o:null)),d?Ie(e,d,t,r,i):null}}return t}function Ne(e,t,n,r,i){var o=r||1,a=Ie(e,t,n,o,i)||!i&&Ie(e,t,n,o,!0)||Ie(e,t,n,-o,i)||!i&&Ie(e,t,n,-o,!0);return a||(e.cantEdit=!0,Ho(e.first,0))}function Oe(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?me(e,Ho(t.line-1)):null:0<n&&t.ch==(r||Qr(e,t.line)).text.length?t.line<e.first+e.size-1?Ho(t.line+1,0):null:new Ho(t.line,t.ch+n)}function Me(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Pe(e,t){for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(!1!==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)&&Re(e,s.head,i),l||je(e,s,o)}}return r}function Re(e,t,n){var r=ft(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(Wi("div","\xa0","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(Wi("div","\xa0","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function je(i,e,t){function p(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),a.appendChild(Wi("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px; top: "+t+"px; width: "+(null==n?g-e:n)+"px; height: "+(r-t)+"px"))}function n(n,l,c){function u(e,t){return ht(i,Ho(n,e),"div",r,t)}var d,h,r=Qr(o,n),f=r.text.length;return eo(ii(r),l||0,null==c?f:c,function(e,t,n){var r,i,o,a=u(e,"left");if(e==t)i=o=(r=a).left;else{if(r=u(t-1,"right"),"rtl"==n){var s=a;a=r,r=s}i=a.left,o=r.right}null==l&&0==e&&(i=m),3<r.top-a.top&&(p(i,a.top,null,a.bottom),i=m,a.bottom<r.top&&p(i,a.bottom,null,r.top)),null==c&&t==f&&(o=g),(!d||a.top<d.top||a.top==d.top&&a.left<d.left)&&(d=a),(!h||r.bottom>h.bottom||r.bottom==h.bottom&&r.right>h.right)&&(h=r),i<m+1&&(i=m),p(i,r.top,o-i,r.bottom)}),{start:d,end:h}}
vendor: 4,339 bytes, lines 14-15
14var r=i.display,o=i.doc,a=document.createDocumentFragment(),s=ze(i.display),m=s.left,g=Math.max(r.sizerWidth,Ge(i)-r.sizer.offsetLeft)-s.right,l=e.from(),c=e.to();if(l.line==c.line)n(l.line,l.ch,c.ch);else{var u=Qr(o,l.line),d=Qr(o,c.line),h=yr(u)==yr(d),f=n(l.line,l.ch,h?u.text.length+1:null).end,v=n(c.line,h?0:null,c.ch).start;h&&(f.top<v.top-2?(p(f.right,f.top,null,f.bottom),p(m,v.top,v.left,v.bottom)):p(f.right,f.top,v.left-f.right,f.bottom)),f.bottom<v.top&&p(m,f.bottom,null,v.top)}t.appendChild(a)}function He(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",0<e.options.cursorBlinkRate?t.blinker=setInterval(function(){t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Fe(e,t){e.doc.mode.startState&&e.doc.frontier<e.display.viewTo&&e.state.highlight.set(t,Hi(qe,e))}function qe(l){var c=l.doc;if(c.frontier<c.first&&(c.frontier=c.first),!(c.frontier>=l.display.viewTo)){var u=+new Date+l.options.workTime,d=la(c.mode,We(l,c.frontier)),h=[];c.iter(c.frontier,Math.min(c.first+c.size,l.display.viewTo+500),function(e){if(c.frontier>=l.display.viewFrom){var t=e.styles,n=e.text.length>l.options.maxHighlightLength,r=Mr(l,e,n?la(c.mode,d):d,!0);e.styles=r.styles;var i=e.styleClasses,o=r.classes;o?e.styleClasses=o:i&&(e.styleClasses=null);for(var a=!t||t.length!=e.styles.length||i!=o&&(!i||!o||i.bgClass!=o.bgClass||i.textClass!=o.textClass),s=0;!a&&s<t.length;++s)a=t[s]!=e.styles[s];a&&h.push(c.frontier),e.stateAfter=n?d:la(c.mode,d)}else e.text.length<=l.options.maxHighlightLength&&Rr(l,e.text,d),e.stateAfter=c.frontier%5==0?la(c.mode,d):null;return++c.frontier,+new Date>u?(Fe(l,l.options.workDelay),!0):void 0}),h.length&&At(l,function(){for(var e=0;e<h.length;e++)Rt(l,h[e],"text")})}}function Be(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;a<s;--s){if(s<=o.first)return o.first;var l=Qr(o,s-1);if(l.stateAfter&&(!n||s<=o.frontier))return s;var c=qa(l.text,null,e.options.tabSize);(null==i||c<r)&&(i=s-1,r=c)}return i}function We(n,r,e){var i=n.doc,o=n.display;if(!i.mode.startState)return!0;var a=Be(n,r,e),s=a>i.first&&Qr(i,a-1).stateAfter;return s=s?la(i.mode,s):ca(i.mode),i.iter(a,r,function(e){Rr(n,e.text,s);var t=a==r-1||a%5==0||a>=o.viewFrom&&a<o.viewTo;e.stateAfter=t?la(i.mode,s):null,++a}),e&&(i.frontier=a),s}function $e(e){return e.lineSpace.offsetTop}function Ue(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ze(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=Ui(e.measure,Wi("pre","x")),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 Ve(e){
15return Pa-e.display.nativeBarWidth}function Ge(e){return e.display.scroller.clientWidth-Ve(e)-e.display.barWidth}function Ye(e){return e.display.scroller.clientHeight-Ve(e)-e.display.barHeight}function Xe(e,t,n){var r=e.options.lineWrapping,i=r&&Ge(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];2<Math.abs(l.bottom-c.bottom)&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Ke(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(r=0;r<e.rest.length;r++)if(ti(e.rest[r])>n)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Qe(e,t){var n=ti(t=yr(t)),r=e.display.externalMeasured=new Ot(e.doc,t,n);r.lineN=n;var i=r.built=Hr(e,r);return r.text=i.pre,Ui(e.display.lineMeasure,i.pre),r}function Je(e,t,n,r){return tt(e,et(e,t),n,r)}function Ze(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Ht(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function et(e,t){var n=ti(t),r=Ze(e,n);r&&!r.text?r=null:r&&r.changes&&(P(e,r,n,O(e)),e.curOp.forceUpdate=!0),r||(r=Qe(e,t));var i=Ke(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function tt(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");
15return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Xe(e,t.view,t.rect),t.hasHeights=!0),(o=rt(e,t,n,r)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}function nt(e,t,n){for(var r,i,o,a,s=0;s<e.length;s+=3){var l=e[s],c=e[s+1];if(t<l?(i=0,o=1,a="left"):t<c?o=(i=t-l)+1:(s==e.length-3||t==c&&e[s+3]>t)&&(i=(o=c-l)-1,c<=t&&(a="right")),null!=i){if(r=e[s+2],l==c&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;s&&e[s-2]==e[s-3]&&e[s-1].insertLeft;)r=e[2+(s-=3)],a="left";if("right"==n&&i==c-l)for(;s<e.length-3&&e[s+3]==e[s+4]&&!e[s+5].insertLeft;)r=e[(s+=3)+2],a="right";break}}return{node:r,start:i,end:o,collapse:a,coverStart:l,coverEnd:c}}function rt(e,t,n,r){var i,o=nt(t.map,n,r),a=o.node,s=o.start,l=o.end,c=o.collapse;if(3==a.nodeType){for(var u=0;u<4;u++){for(;s&&Bi(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+l<o.coverEnd&&Bi(t.line.text.charAt(o.coverStart+l));)++l;if(bo&&wo<9&&0==s&&l==o.coverEnd-o.coverStart)i=a.parentNode.getBoundingClientRect();else if(bo&&e.options.lineWrapping){i=(d=Ua(a,s,l).getClientRects()).length?d["right"==r?d.length-1:0]:Uo}else i=Ua(a,s,l).getBoundingClientRect()||Uo;if(i.left||i.right||0==s)break;l=s,s-=1,c="right"}bo&&wo<11&&(i=it(e.display.measure,i))}else{var d;0<s&&(c=r="right"),i=e.options.lineWrapping&&1<(d=a.getClientRects()).length?d["right"==r?d.length-1:0]:a.getBoundingClientRect()}if(bo&&wo<9&&!s&&(!i||!i.left&&!i.right)){var h=a.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+bt(e.display),top:h.top,bottom:h.bottom}:Uo}var f=i.top-t.rect.top,p=i.bottom-t.rect.top,m=(f+p)/2,g=t.view.measure.heights;for(u=0;u<g.length-1&&!(m<g[u]);u++);var v=u?g[u-1]:0,y=g[u],b={left:("right"==c?i.right:i.left)-t.rect.left,right:("left"==c?i.left:i.right)-t.rect.left,top:v,bottom:y};return i.left||i.right||(b.bogus=!0),e.options.singleCursorHeightPerLine||(b.rtop=f,b.rbottom=p),b}function it(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Zi(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 ot(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 at(e){e.display.externalMeasure=null,$i(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)ot(e.display.view[t])}function st(e){at(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function lt(){return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ct(){return window.pageYOffset||(document.documentElement||document.body).scrollTop}function ut(e,t,n,r){if(t.widgets)for(var i=0;i<t.widgets.length;++i)if(t.widgets[i].above){var o=Tr(t.widgets[i]);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=ri(t);if("local"==r?a+=$e(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:ct());var l=s.left+("window"==r?0:lt());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function dt(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=lt(),i-=ct();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function ht(e,t,n,r,i){return r||(r=Qr(e.doc,t.line)),ut(e,r,Je(e,r,t.ch,i),n)}function ft(r,e,i,o,a,s){function l(e,t){var n=tt(r,a,e,t?"right":"left",s);return t?n.left=n.right:n.right=n.left,ut(r,o,n,i)}function t(e,t){var n=c[t],r=n.level%2;return e==to(n)&&t&&n.level<c[t-1].level?(e=no(n=c[--t])-(n.level%2?0:1),r=!0):e==no(n)&&t<c.length-1&&n.level<c[t+1].level&&(e=to(n=c[++t])-n.level%2,r=!1),r&&e==n.to&&e>n.from?l(e-1):l(e,r)}o=o||Qr(r.doc,e.line),a||(a=et(r,o));var c=ii(o),n=e.ch;if(!c)return l(n);var u=t(n,co(c,n));return null!=ss&&(u.other=t(n,ss)),u}function pt(e,t){var n=0;t=me(e.doc,t);e.options.lineWrapping||(n=bt(e.display)*t.ch);
15var r=Qr(e.doc,t.line),i=ri(r)+$e(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function mt(e,t,n,r){var i=Ho(e,t);return i.xRel=r,n&&(i.outside=!0),i}function gt(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return mt(r.first,0,!0,-1);var i=ni(r,n),o=r.first+r.size-1;if(o<i)return mt(r.first+r.size-1,Qr(r,o).text.length,!0,1);t<0&&(t=0);for(var a=Qr(r,i);;){var s=vt(e,a,i,t,n),l=gr(a),c=l&&l.find(0,!0);if(!l||!(s.ch>c.from.ch||s.ch==c.from.ch&&0<s.xRel))return s;i=ti(a=c.to.line)}}function vt(n,r,i,e,t){function o(e){var t=ft(n,Ho(i,e),"line",r,c);return s=!0,a>t.bottom?t.left-l:a<t.top?t.left+l:(s=!1,t.left)}var a=t-ri(r),s=!1,l=2*n.display.wrapper.clientWidth,c=et(n,r),u=ii(r),d=r.text.length,h=ro(r),f=io(r),p=o(h),m=s,g=o(f),v=s;if(g<e)return mt(i,f,v,1);for(;;){if(u?f==h||f==ho(r,h,1):f-h<=1){for(var y=e<p||e-p<=g-e?h:f,b=e-(y==h?p:g);Bi(r.text.charAt(y));)++y;return mt(i,y,y==h?m:v,b<-1?-1:1<b?1:0)}var w=Math.ceil(d/2),x=h+w;if(u){x=h;for(var S=0;S<w;++S)x=ho(r,x,1)}var C=o(x);e<C?(f=x,g=C,(v=s)&&(g+=1e3),d=w):(h=x,p=C,m=s,d-=w)}}function yt(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Bo){Bo=Wi("pre");for(var t=0;t<49;++t)Bo.appendChild(document.createTextNode("x")),Bo.appendChild(Wi("br"));Bo.appendChild(document.createTextNode("x"))}Ui(e.measure,Bo);var n=Bo.offsetHeight/50;return 3<n&&(e.cachedTextHeight=n),$i(e.measure),n||1}function bt(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=Wi("span","xxxxxxxxxx"),n=Wi("pre",[t]);Ui(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return 2<i&&(e.cachedCharWidth=i),i||10}function wt(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Vo},zo?zo.ops.push(e.curOp):e.curOp.ownsGroup=zo={ops:[e.curOp],delayedCallbacks:[]}}function xt(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 i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function St(e){var t=e.curOp.ownsGroup;if(t)try{xt(t)}finally{zo=null;for(var n=0;n<t.ops.length;n++)t.ops[n].cm.curOp=null;Ct(t)}}function Ct(e){for(var t=e.ops,n=0;n<t.length;n++)_t(t[n]);for(n=0;n<t.length;n++)Tt(t[n]);for(n=0;n<t.length;n++)kt(t[n]);for(n=0;n<t.length;n++)Dt(t[n]);for(n=0;n<t.length;n++)Et(t[n])}function _t(e){var t=e.cm,n=t.display;k(t),e.updateMaxLine&&o(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 T(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Tt(e){e.updatedDisplay=e.mustUpdate&&D(e.cm,e.update)}function kt(e){var t=e.cm,n=t.display;e.updatedDisplay&&I(t),e.barMeasure=a(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Je(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+Ve(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Ge(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection(e.focus))}function Dt(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&on(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==zi()&&(!document.hasFocus||document.hasFocus());e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&y(t,e.barMeasure),e.updatedDisplay&&L(t,e.barMeasure),e.selectionChanged&&He(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&K(e.cm)}function Et(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&E(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null==e.scrollTop||n.scroller.scrollTop==e.scrollTop&&!e.forceScroll||(r.scrollTop=Math.max(0,Math.min(n.scroller.scrollHeight-n.scroller.clientHeight,e.scrollTop)),n.scrollbars.setScrollTop(r.scrollTop),n.scroller.scrollTop=r.scrollTop),null==e.scrollLeft||n.scroller.scrollLeft==e.scrollLeft&&!e.forceScroll||(r.scrollLeft=Math.max(0,Math.min(n.scroller.scrollWidth-n.scroller.clientWidth,e.scrollLeft)),n.scrollbars.setScrollLeft(r.scrollLeft),n.scroller.scrollLeft=r.scrollLeft,w(t)),e.scrollToPos){var i=Mn(t,me(r,e.scrollToPos.from),me(r,e.scrollToPos.to),e.scrollToPos.margin);e.scrollToPos.isCursor&&t.state.focused&&On(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var s=0;s<o.length;++s)o[s].lines.length||Oa(o[s],"hide");if(a)for(s=0;s<a.length;++s)a[s].lines.length&&Oa(a[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeOb
15js&&Oa(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function At(e,t){if(e.curOp)return t();wt(e);try{return t()}finally{St(e)}}function Lt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);wt(e);try{return t.apply(e,arguments)}finally{St(e)}}}function It(e){return function(){if(this.curOp)return e.apply(this,arguments);wt(this);try{return e.apply(this,arguments)}finally{St(this)}}}function Nt(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);wt(e);try{return t.apply(this,arguments)}finally{St(e)}}}function Ot(e,t,n){this.line=t,this.rest=br(t),this.size=this.rest?ti(Ni(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Sr(e,t)}function Mt(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new Ot(e.doc,Qr(e.doc,o),o);r=o+a.size,i.push(a)}return i}function Pt(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)jo&&wr(e.doc,t)<i.viewTo&&jt(e);else if(n<=i.viewFrom)jo&&xr(e.doc,n+r)>i.viewFrom?jt(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)jt(e);else if(t<=i.viewFrom){(o=Ft(e,n,n+r,1))?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):jt(e)}else if(n>=i.viewTo){var o;(o=Ft(e,t,t,-1))?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):jt(e)}else{var a=Ft(e,t,t,-1),s=Ft(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(Mt(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):jt(e)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(i.externalMeasured=null))}function Rt(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Ht(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==Oi(a,n)&&a.push(n)}}}function jt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ht(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 Ft(e,t,n,r){var i,o=Ht(e,t),a=e.display.view;if(!jo||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=0,l=e.display.viewFrom;s<o;s++)l+=a[s].size;if(l!=t){if(0<r){if(o==a.length-1)return null;i=l+a[o].size-t,o++}else i=l-t;t+=i,n+=i}for(;wr(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function qt(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Mt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Mt(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Ht(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Mt(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Ht(e,n)))),r.viewTo=n}function Bt(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Wt(i){function o(){s.activeTouch&&(r=setTimeout(function(){s.activeTouch=null},1e3),(l=s.activeTouch).end=+new Date)}function n(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function a(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return 400<n*n+r*r}var s=i.display;La(s.scroller,"mousedown",Lt(i,Gt)),La(s.scroller,"dblclick",bo&&wo<11?Lt(i,function(e){if(!ki(i,e)){var t=Vt(i,e);if(t&&!Jt(i,e)&&!zt(i.display,e)){Da(e);var n=i.findWordAt(t);we(i.doc,n.anchor,n.head)}}}):function(e){ki(i,e)||Da(e)}),Po||La(s.scroller,"contextmenu",function(e){bn(i,e)});var r,l={end:0};La(s.scroller,"touchstart",function(e){if(!ki(i,e)&&!n(e)){clearTimeout(r);var t=+new Date;s.activeTouch={start:t,moved:!1,prev:t-l.end<=300?l:null},1==e.touches.length&&(s.activeTouch.left=e.touches[0].pageX,s.activeTouch.top=e.touches[0].pageY)}}),La(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),La(s.scroller,"touchend",function(e){var t=s.activeTouch;if(t&&!zt(s,e)&&null!=t.left&&!t.moved&&new Date-t.start<300){var n,r=i.coordsChar(s.activeTouch,"page");n=!t.prev||a(t,t.prev)?new de(r,r):!t.prev.prev||a(t,t.prev.prev)?i.findWordAt(r):new de(Ho(r.line,0),me(i.doc,Ho(r.line+1,0))),i.setSelection(n.anchor,
vendor: 4,239 bytes, line 15
15n.head),i.focus(),Da(e)}o()}),La(s.scroller,"touchcancel",o),La(s.scroller,"scroll",function(){s.scroller.clientHeight&&(rn(i,s.scroller.scrollTop),on(i,s.scroller.scrollLeft,!0),Oa(i,"scroll",i))}),La(s.scroller,"mousewheel",function(e){an(i,e)}),La(s.scroller,"DOMMouseScroll",function(e){an(i,e)}),La(s.wrapper,"scroll",function(){s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(e){ki(i,e)||Aa(e)},over:function(e){ki(i,e)||(tn(i,e),Aa(e))},start:function(e){en(i,e)},drop:Lt(i,Zt),leave:function(e){ki(i,e)||nn(i)}};var e=s.input.getField();La(e,"keyup",function(e){pn.call(i,e)}),La(e,"keydown",Lt(i,hn)),La(e,"keypress",Lt(i,mn)),La(e,"focus",Hi(vn,i)),La(e,"blur",Hi(yn,i))}function $t(e,t,n){if(!t!=!(n&&n!=l.Init)){var r=e.display.dragFunctions,i=t?La:Na;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ut(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}function zt(e,t){for(var n=xi(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 Vt(e,t,n,r){var i=e.display;if(!n&&"true"==xi(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var l,c=gt(e,o,a);if(r&&1==c.xRel&&(l=Qr(e.doc,c.line).text).length==c.ch){var u=qa(l,l.length,e.options.tabSize)-l.length;c=Ho(c.line,Math.max(0,Math.round((o-ze(e.display).left)/bt(e.display))-u))}return c}function Gt(e){var t=this,n=t.display;if(!(ki(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.shift=e.shiftKey,zt(n,e))return void(xo||(n.scroller.draggable=!1,setTimeout(function(){n.scroller.draggable=!0},100)));if(!Jt(t,e)){var r=Vt(t,e);switch(window.focus(),Si(e)){case 1:t.state.selectingText?t.state.selectingText(e):r?Yt(t,e,r):xi(e)==n.scroller&&Da(e);break;case 2:xo&&(t.state.lastMiddleDown=+new Date),r&&we(t.doc,r),setTimeout(function(){n.input.focus()},20),Da(e);break;case 3:Po?bn(t,e):gn(t)}}}}function Yt(e,t,n){bo?setTimeout(Hi(K,e),0):e.curOp.focus=zi();var r,i=+new Date;$o&&$o.time>i-400&&0==Fo($o.pos,n)?r="triple":Wo&&Wo.time>i-400&&0==Fo(Wo.pos,n)?(r="double",$o={time:i,pos:n}):(r="single",Wo={time:i,pos:n});var o,a=e.doc.sel,s=Lo?t.metaKey:t.ctrlKey;e.options.dragDrop&&ts&&!e.isReadOnly()&&"single"==r&&-1<(o=a.contains(n))&&(Fo((o=a.ranges[o]).from(),n)<0||0<n.xRel)&&(0<Fo(o.to(),n)||n.xRel<0)?Xt(e,t,n,s):Kt(e,t,n,r,s)}function Xt(t,n,r,i){var o=t.display,a=+new Date,s=Lt(t,function(e){xo&&(o.scroller.draggable=!1),t.state.draggingText=!1,Na(document,"mouseup",s),Na(o.scroller,"drop",s),Math.abs(n.clientX-e.clientX)+Math.abs(n.clientY-e.clientY)<10&&(Da(e),!i&&+new Date-200<a&&we(t.doc,r),xo||bo&&9==wo?setTimeout(function(){document.body.focus(),o.input.focus()},20):o.input.focus())});xo&&(o.scroller.draggable=!0),t.state.draggingText=s,o.scroller.dragDrop&&o.scroller.dragDrop(),La(document,"mouseup",s),La(o.scroller,"drop",s)}function Kt(m,e,g,v,t){function o(e){if(0!=Fo(S,e))if(S=e,"rect"==v){for(var t=[],n=m.options.tabSize,r=qa(Qr(y,g.line).text,g.ch,n),i=qa(Qr(y,e.line).text,e.ch,n),o=Math.min(r,i),a=Math.max(r,i),s=Math.min(g.line,e.line),l=Math.min(m.lastLine(),Math.max(g.line,e.line));s<=l;s++){var c=Qr(y,s).text,u=Ba(c,o,n);o==a?t.push(new de(Ho(s,u),Ho(s,u))):c.length>u&&t.push(new de(Ho(s,u),Ho(s,Ba(c,a,n))))}t.length||t.push(new de(g,g)),ke(y,he(x.ranges.slice(0,w).concat(t),w),{origin:"*mouse",scroll:!1}),m.scrollIntoView(e)}else{var d=b,h=d.anchor,f=e;if("single"!=v){if("double"==v)var p=m.findWordAt(e);else p=new de(Ho(e.line,0),me(y,Ho(e.line+1,0)));0<Fo(p.anchor,h)?(f=p.head,h=X(d.from(),p.anchor)):(f=p.anchor,h=Y(d.to(),p.head))}(t=x.ranges.slice(0))[w]=new de(me(y,h),f),ke(y,he(t,w),Ha)}}function a(e){var t=++u,n=Vt(m,e,!0,"rect"==v);if(n)if(0!=Fo(n,S)){m.curOp.focus=zi(),o(n);var r=C(s,y);(n.line>=r.to||n.line<r.from)&&setTimeout(Lt(m,function(){u==t&&a(e)}),150)}
15else{var i=e.clientY<c.top?-20:e.clientY>c.bottom?20:0;i&&setTimeout(Lt(m,function(){u==t&&(s.scroller.scrollTop+=i,a(e))}),50)}}function n(e){m.state.selectingText=!1,u=1/0,Da(e),s.input.focus(),Na(document,"mousemove",d),Na(document,"mouseup",h),y.history.lastSelOrigin=null}var s=m.display,y=m.doc;Da(e);var b,w,x=y.sel,r=x.ranges;if(t&&!e.shiftKey?(w=y.sel.contains(g),b=-1<w?r[w]:new de(g,g)):(b=y.sel.primary(),w=y.sel.primIndex),Io?e.shiftKey&&e.metaKey:e.altKey)v="rect",t||(b=new de(g,g)),g=Vt(m,e,!0,!0),w=-1;else if("double"==v){var i=m.findWordAt(g);b=m.display.shift||y.extend?be(y,b,i.anchor,i.head):i}else if("triple"==v){var l=new de(Ho(g.line,0),me(y,Ho(g.line+1,0)));b=m.display.shift||y.extend?be(y,b,l.anchor,l.head):l}else b=be(y,b,g);t?-1==w?(w=r.length,ke(y,he(r.concat([b]),w),{scroll:!1,origin:"*mouse"})):1<r.length&&r[w].empty()&&"single"==v&&!e.shiftKey?(ke(y,he(r.slice(0,w).concat(r.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),x=y.sel):Se(y,w,b,Ha):(ke(y,new ue([b],w=0),Ha),x=y.sel);var S=g,c=s.wrapper.getBoundingClientRect(),u=0,d=Lt(m,function(e){Si(e)?a(e):n(e)}),h=Lt(m,n);m.state.selectingText=h,La(document,"mousemove",d),La(document,"mouseup",h)}function Qt(e,t,n,r){try{var i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Da(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ei(e,n))return wi(t);o-=s.top-a.viewOffset;for(var l=0;l<e.options.gutters.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i){var u=ni(e.doc,o),d=e.options.gutters[l];return Oa(e,n,e,u,d,t),wi(t)}}}function Jt(e,t){return Qt(e,t,"gutterClick",!0)}function Zt(e){var i=this;if(nn(i),!ki(i,e)&&!zt(i.display,e)){Da(e),bo&&(Go=+new Date);var o=Vt(i,e,!0),t=e.dataTransfer.files;if(o&&!i.isReadOnly())if(t&&t.length&&window.FileReader&&window.File)for(var a=t.length,s=Array(a),l=0,n=function(e,n){if(!i.options.allowDropFileTypes||-1!=Oi(i.options.allowDropFileTypes,e.type)){var r=new FileReader;r.onload=Lt(i,function(){var e=r.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),s[n]=e,++l==a){var t={from:o=me(i.doc,o),to:o,text:i.doc.splitLines(s.join(i.doc.lineSeparator())),origin:"paste"};kn(i.doc,t),Te(i.doc,fe(o,Zo(t)))}}),r.readAsText(e)}},r=0;r<a;++r)n(t[r],r);else{if(i.state.draggingText&&-1<i.doc.sel.contains(o))return i.state.draggingText(e),void setTimeout(function(){i.display.input.focus()},20);try{if(s=e.dataTransfer.getData("Text")){if(i.state.draggingText&&!(Lo?e.altKey:e.ctrlKey))var c=i.listSelections();if(De(i.doc,fe(o,o)),c)for(r=0;r<c.length;++r)Nn(i.doc,"",c[r].anchor,c[r].head,"drag");i.replaceSelection(s,"around","paste"),i.display.input.focus()}}catch(e){}}}}function en(e,t){if(bo&&(!e.state.draggingText||+new Date-Go<100))Aa(t);else if(!ki(e,t)&&!zt(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!To)){var n=Wi("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",_o&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),_o&&n.parentNode.removeChild(n)}}function tn(e,t){var n=Vt(e,t);if(n){var r=document.createDocumentFragment();Re(e,n,r),e.display.dragCursor||(e.display.dragCursor=Wi("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),Ui(e.display.dragCursor,r)}}function nn(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function rn(e,t){Math.abs(e.doc.scrollTop-t)<2||(e.doc.scrollTop=t,go||A(e,{top:t}),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t),e.display.scrollbars.setScrollTop(t),go&&A(e),Fe(e,100))}function on(e,t,n){(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)||(t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),e.doc.scrollLeft=t,w(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function an(e,t){var n=Ko(t),r=n.x,i=n.y,o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,l=a.scrollHeight>a.clientHeight;if(r&&s||i&&l){if(i&&Lo&&xo)e:for(var c=t.target,u=o.view;c!=a;c=c.parentNode)for(var d=0;d<u.length;d++)if(u[d].node==c){e.display.currentWheelTarget=c;break e}
vendor: 8,298 bytes, line 15
15if(r&&!go&&!_o&&null!=Xo)return i&&l&&rn(e,Math.max(0,Math.min(a.scrollTop+i*Xo,a.scrollHeight-a.clientHeight))),on(e,Math.max(0,Math.min(a.scrollLeft+r*Xo,a.scrollWidth-a.clientWidth))),(!i||i&&l)&&Da(t),void(o.wheelStartX=null);if(i&&null!=Xo){var h=i*Xo,f=e.doc.scrollTop,p=f+o.wrapper.clientHeight;h<0?f=Math.max(0,f+h-50):p=Math.min(e.doc.height,p+h+50),A(e,{top:f,bottom:p})}Yo<20&&(null==o.wheelStartX?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=r,o.wheelDY=i,setTimeout(function(){if(null!=o.wheelStartX){var e=a.scrollLeft-o.wheelStartX,t=a.scrollTop-o.wheelStartY,n=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(Xo=(Xo*Yo+n)/(Yo+1),++Yo)}},200)):(o.wheelDX+=r,o.wheelDY+=i))}}function sn(e,t,n){if("string"==typeof t&&!(t=ua[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=Ra}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ln(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=ha(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&ha(t,e.options.extraKeys,n,e)||ha(t,e.options.keyMap,n,e)}function cn(e,t,n,r){var i=e.state.keySeq;if(i){if(fa(t))return"handled";Qo.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),t=i+" "+t}var o=ln(e,t,r);return"multi"==o&&(e.state.keySeq=t),"handled"==o&&_i(e,"keyHandled",e,t,n),"handled"!=o&&"multi"!=o||(Da(n),He(e)),i&&!o&&/\'$/.test(t)?(Da(n),!0):!!o}function un(t,e){var n=pa(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?cn(t,"Shift-"+n,e,function(e){return sn(t,e,!0)})||cn(t,n,e,function(e){return("string"==typeof e?/^go[A-Z]/.test(e):e.motion)?sn(t,e):void 0}):cn(t,n,e,function(e){return sn(t,e)}))}function dn(t,e,n){return cn(t,"'"+n+"'",e,function(e){return sn(t,e,!0)})}function hn(e){var t=this;if(t.curOp.focus=zi(),!ki(t,e)){bo&&wo<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=un(t,e);_o&&(Jo=r?n:null,!r&&88==n&&!is&&(Lo?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||fn(t)}}function fn(e){function t(e){18!=e.keyCode&&e.altKey||(Ja(n,"CodeMirror-crosshair"),Na(document,"keyup",t),Na(document,"mouseover",t))}var n=e.display.lineDiv;Za(n,"CodeMirror-crosshair"),La(document,"keyup",t),La(document,"mouseover",t)}function pn(e){16==e.keyCode&&(this.doc.sel.shift=!1),ki(this,e)}function mn(e){var t=this;if(!(zt(t.display,e)||ki(t,e)||e.ctrlKey&&!e.altKey||Lo&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(_o&&n==Jo)return Jo=null,void Da(e);if(!_o||e.which&&!(e.which<10)||!un(t,e))dn(t,e,String.fromCharCode(null==r?n:r))||t.display.input.onKeyPress(e)}}function gn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,yn(e))},100)}function vn(e){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Oa(e,"focus",e),e.state.focused=!0,Za(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),xo&&setTimeout(function(){e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),He(e))}function yn(e){e.state.delayingBlurEvent||(e.state.focused&&(Oa(e,"blur",e),e.state.focused=!1,Ja(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function bn(e,t){zt(e.display,t)||wn(e,t)||ki(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function wn(e,t){return!!Ei(e,"gutterContextMenu")&&Qt(e,t,"gutterContextMenu",!1)}function xn(e,t){if(Fo(e,t.from)<0)return e;if(Fo(e,t.to)<=0)return Zo(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+=Zo(t).ch-t.to.ch),Ho(n,r)}function Sn(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new de(xn(i.anchor,t),xn(i.head,t)))}return he(n,e.sel.primIndex)}function Cn(e,t,n){return e.line==t.line?Ho(n.line,e.ch-t.ch+n.ch):Ho(n.line+(e.line-t.line),e.ch)}function _n(e,t,n){for(var r=[],i=Ho(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Cn(s.from,i,o),c=Cn(Zo(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=Fo(u.head,u.anchor)<0;r[a]=new de(d?c:l,d?l:c)}else r[a]=new de(l,l)}return new ue(r,e.sel.primIndex)}function Tn(i,e,t){var n={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){this.canceled=!0}};return t&&(n.update=function(e,t,n,r){e&&(this.from=me(i,e)),t&&(this.to=me(i,t)),n&&(this.text=n),void 0!==r&&(this.origin=r)}),Oa(i,"beforeChange",i,n),i.cm&&Oa(i.cm,"beforeChange",i.cm,n),n.canceled?null:{from:n.from,to:n.to,text:n.text,origin:n.origin}}function kn(e,t,n){if(e.cm){if(!e.cm.curOp)return Lt(e.cm,kn)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Ei(e,"beforeChange")||e.cm&&Ei(e.cm,"beforeChange"))||(t=Tn(e,t,!0))){var r=Ro&&!n&&lr(e,t.from,t.to);if(r)for(var i=r.length-1;0<=i;--i)Dn(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text});else Dn(e,t)}}function Dn(e,n){if(1!=n.text.length||""!=n.text[0]||0!=Fo(n.from,n.to)){var t=Sn(e,n);ci(e,n,t,e.cm?e.cm.curOp.id:NaN),Ln(e,n,t,or(e,n));var r=[];Xr(e,function(e,t){t||-1!=Oi(r,e.history)||(bi(e.history,n),r.push(e.history)),Ln(e,n,null,or(e,n))})}}function En(e,t,n){if(!e.cm||!e.cm.state.suppressEdits){for(var r,i=e.history,o=e.sel,a="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,l=0;l<a.length&&(r=a[l],n?!r.ranges||r.equals(e.sel):r.ranges);l++);if(l!=a.length){for(i.lastOrigin=i.lastSelOrigin=null;(r=a.pop()).ranges;){if(hi(r,s),n&&!r.equals(e.sel))return void ke(e,r,{clearRedo:!1});o=r}var c=[];hi(o,s),s.push({changes:c,generation:i.generation}),i.generation=r.generation||++i.maxGeneration;var u=Ei(e,"beforeChange")||e.cm&&Ei(e.cm,"beforeChange");for(l=r.changes.length-1;0<=l;--l){var d=r.changes[l];if(d.origin=t,u&&!Tn(e,d,!1))return void(a.length=0);c.push(ai(e,d));var h=l?Sn(e,d):Ni(a);Ln(e,d,h,sr(e,d)),!l&&e.cm&&e.cm.scrollIntoView({from:d.from,to:Zo(d)});var f=[];Xr(e,function(e,t){t||-1!=Oi(f,e.history)||(bi(e.history,d),f.push(e.history)),Ln(e,d,null,sr(e,d))})}}}}function An(e,t){if(0!=t&&(e.first+=t,e.sel=new ue(Mi(e.sel.ranges,function(e){return new de(Ho(e.anchor.line+t,e.anchor.ch),Ho(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Pt(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Rt(e.cm,r,"gutter")}}function Ln(e,t,n,r){if(e.cm&&!e.cm.curOp)return Lt(e.cm,Ln)(e,t,n,r);if(t.to.line<e.first)An(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 i=t.text.length-1-(e.first-t.from.line);An(e,i),t={from:Ho(e.first,0),to:Ho(t.to.line+i,t.to.ch),text:[Ni(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:Ho(o,Qr(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Jr(e,t.from,t.to),n||(n=Sn(e,t)),e.cm?In(e.cm,t,r):Vr(e,t,r),De(e,n,ja)}}function In(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=ti(yr(Qr(r,o.line))),r.iter(l,a.line+1,function(e){return e==i.maxLine?s=!0:void 0})),-1<r.sel.contains(t.from,t.to)&&Di(e),Vr(r,t,n,f(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=p(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),r.frontier=Math.min(r.frontier,o.line),Fe(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Pt(e):o.line!=a.line||1!=t.text.length||zr(e.doc,t)?Pt(e,o.line,a.line+1,c):Rt(e,o.line,"text");var u=Ei(e,"changes"),d=Ei(e,"change");if(d||u){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&_i(e,"change",e,h),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function Nn(e,t,n,r,i){if(r||(r=n),Fo(r,n)<0){var o=r;r=n,n=o}"string"==typeof t&&(t=e.splitLines(t)),kn(e,{from:n,to:r,text:t,origin:i})}function On(e,t){if(!ki(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!Do){var o=Wi("div","\u200b",null,"position: absolute;
15 top: "+(t.top-n.viewOffset-$e(e.display))+"px; height: "+(t.bottom-t.top+Ve(e)+n.barHeight)+"px; left: "+t.left+"px; width: 2px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function Mn(e,t,n,r){null==r&&(r=0);for(var i=0;i<5;i++){var o=!1,a=ft(e,t),s=n&&n!=t?ft(e,n):a,l=Rn(e,Math.min(a.left,s.left),Math.min(a.top,s.top)-r,Math.max(a.left,s.left),Math.max(a.bottom,s.bottom)+r),c=e.doc.scrollTop,u=e.doc.scrollLeft;if(null!=l.scrollTop&&(rn(e,l.scrollTop),1<Math.abs(e.doc.scrollTop-c)&&(o=!0)),
16null!=l.scrollLeft&&(on(e,l.scrollLeft),1<Math.abs(e.doc.scrollLeft-u)&&(o=!0)),!o)break}return a}function Pn(e,t,n,r,i){var o=Rn(e,t,n,r,i);null!=o.scrollTop&&rn(e,o.scrollTop),null!=o.scrollLeft&&on(e,o.scrollLeft)}function Rn(e,t,n,r,i){var o=e.display,a=yt(e.display);n<0&&(n=0);var s=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:o.scroller.scrollTop,l=Ye(e),c={};l<i-n&&(i=n+l);var u=e.doc.height+Ue(o),d=n<a,h=u-a<i;if(n<s)c.scrollTop=d?0:n;else if(s+l<i){var f=Math.min(n,(h?u:i)-l);f!=s&&(c.scrollTop=f)}var p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:o.scroller.scrollLeft,m=Ge(e)-(e.options.fixedGutter?o.gutters.offsetWidth:0),g=m<r-t;return g&&(r=t+m),t<10?c.scrollLeft=0:t<p?c.scrollLeft=Math.max(0,t-(g?0:10)):m+p-3<r&&(c.scrollLeft=r+(g?0:10)-m),c}function jn(e,t,n){null==t&&null==n||Fn(e),null!=t&&(e.curOp.scrollLeft=(null==e.curOp.scrollLeft?e.doc.scrollLeft:e.curOp.scrollLeft)+t),null!=n&&(e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+n)}function Hn(e){Fn(e);var t=e.getCursor(),n=t,r=t;e.options.lineWrapping||(n=t.ch?Ho(t.line,t.ch-1):t,r=Ho(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:r,margin:e.options.cursorScrollMargin,isCursor:!0}}function Fn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=pt(e,t.from),r=pt(e,t.to),i=Rn(e,Math.min(n.left,r.left),Math.min(n.top,r.top)-t.margin,Math.max(n.right,r.right),Math.max(n.bottom,r.bottom)+t.margin);e.scrollTo(i.scrollLeft,i.scrollTop)}}function qn(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=We(e,t):n="prev");var a=e.options.tabSize,s=Qr(o,t),l=qa(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=o.mode.indent(i,s.text.slice(u.length),s.text))==Ra||150<c)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?qa(Qr(o,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="",h=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/a);f;--f)h+=a,d+="\t";if(h<c&&(d+=Ii(c-h)),d!=u)return Nn(o,d,Ho(t,0),Ho(t,u.length),"+input"),!(s.stateAfter=null);for(f=0;f<o.sel.ranges.length;f++){var p=o.sel.ranges[f];if(p.head.line==t&&p.head.ch<u.length){Se(o,f,new de(h=Ho(t,u.length),h));break}}}function Bn(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Qr(e,pe(e,t)):i=ti(t),null==i?null:(r(o,i)&&e.cm&&Rt(e.cm,i,n),o)}function Wn(t,e){for(var n=t.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=e(n[i]);r.length&&Fo(o.from,Ni(r).to)<=0;){var a=r.pop();if(Fo(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}At(t,function(){for(var e=r.length-1;0<=e;e--)Nn(t.doc,"",r[e].from,r[e].to,"+delete");Hn(t)})}function $n(t,e,n,r,i){function o(){var e=s+n;return!(e<t.first||e>=t.first+t.size)&&(u=Qr(t,s=e))}function a(e){var t=(i?ho:fo)(u,l,n,!0);if(null==t){if(e||!o())return!1;l=i?(n<0?io:ro)(u):n<0?u.text.length:0}else l=t;return!0}var s=e.line,l=e.ch,c=n,u=Qr(t,s);if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var d=null,h="group"==r,f=t.cm&&t.cm.getHelper(e,"wordChars"),p=!0;!(n<0)||a(!p);p=!1){var m=u.text.charAt(l)||"\n",g=Fi(m,f)?"w":h&&"\n"==m?"n":!h||/\s/.test(m)?null:"p";if(!h||p||g||(g="s"),d&&d!=g){n<0&&(n=1,a());break}if(g&&(d=g),0<n&&!a(!p))break}var v=Ne(t,Ho(s,l),e,c,!0);return Fo(e,v)||(v.hitSide=!0),v}function Un(e,t,n,r){var i,o=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);
16i=t.top+n*(s-(n<0?1.5:.5)*yt(e.display))}else"line"==r&&(i=0<n?t.bottom+3:t.top-3);for(;;){var l=gt(e,a,i);if(!l.outside)break;if(n<0?i<=0:i>=o.height){l.hitSide=!0;break}i+=5*n}return l}function zn(e,t,r,n){l.defaults[e]=t,r&&(ta[e]=n?function(e,t,n){n!=na&&r(e,t,n)}:r)}function Vn(e){for(var t,n,r,i,o=e.split(/-(?!$)/),a=(e=o[o.length-1],0);a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!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),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Gn(e){return"string"==typeof e?da[e]:e}function Yn(t,n,r,e,i){if(e&&e.shared)return Xn(t,n,r,e,i);if(t.cm&&!t.cm.curOp)return Lt(t.cm,Yn)(t,n,r,e,i);var o=new va(t,i),a=Fo(n,r);if(e&&ji(e,o,!1),0<a||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=Wi("span",[o.replacedWith],"CodeMirror-widget"),e.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),e.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(vr(t,n.line,n,r,o)||n.line!=r.line&&vr(t,r.line,n,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");jo=!0}o.addToHistory&&ci(t,{from:n,to:r,origin:"markText"},t.sel,NaN);var s,l=n.line,c=t.cm;if(t.iter(l,r.line+1,function(e){c&&o.collapsed&&!c.options.lineWrapping&&yr(e)==c.display.maxLine&&(s=!0),o.collapsed&&l!=n.line&&ei(e,0),nr(e,new Zn(o,l==n.line?n.ch:null,l==r.line?r.ch:null)),++l}),o.collapsed&&t.iter(n.line,r.line+1,function(e){Sr(t,e)&&ei(e,0)}),o.clearOnEnter&&La(o,"beforeCursorEnter",function(){o.clear()}),o.readOnly&&(Ro=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++ga,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Pt(c,n.line,r.line+1);else if(o.className||o.title||o.startStyle||o.endStyle||o.css)for(var u=n.line;u<=r.line;u++)Rt(c,u,"text");o.atomic&&Ae(c.doc),_i(c,"markerAdded",c,o)}return o}function Xn(e,n,r,i,o){(i=ji(i)).shared=!1;var a=[Yn(e,n,r,i,o)],s=a[0],l=i.widgetNode;return Xr(e,function(e){l&&(i.widgetNode=l.cloneNode(!0)),a.push(Yn(e,me(e,n),me(e,r),i,o));for(var t=0;t<e.linked.length;++t)if(e.linked[t].isParent)return;s=Ni(a)}),new ya(a,s)}function Kn(e){return e.findMarks(Ho(e.first,0),e.clipPos(Ho(e.lastLine())),function(e){return e.parent})}function Qn(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(Fo(o,a)){var s=Yn(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function Jn(e){for(var t=0;t<e.length;t++){var n=e[t],r=[n.primary.doc];Xr(n.primary.doc,function(e){r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==Oi(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}}}function Zn(e,t,n){this.marker=e,this.from=t,this.to=n}function er(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function tr(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function nr(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function rr(e,t,n){if(e)for(var r,i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Zn(a,o.from,s?null:o.to))}}return r}function ir(e,t,n){if(e)for(var r,i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Zn(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function or(e,t){if(t.full)return null;var n=ve(e,t.from.line)&&Qr(e,t.from.line).markedSpans,r=ve(e,t.to.line)&&Qr(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==Fo(t.from,t.to),s=rr(n,i,a),l=ir(r,o,a),c=1==t.text.length,u=Ni(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){if(null==(h=s[d]).to)(f=er(l,h.marker))?c&&(h.to=null==f.to?null:f.to+u):h.to=i}if(l)for(d=0;d<l.length;++d){var h,f;if(null!=(h=l[d]).to&&(h.to+=u),null==h.from)(f=er(s,h.marker))||(h.from=u,c&&(s||(s=[])).push(h));else h.from+=u,c&&(s||(s=[])).push(h)}s&&(s=ar(s)),l&&l!=s&&(l=ar(l));var p=[s];if(!c){var m,g=t.text.length-2;if(0<g&&s)for(d=0;d<s.length;++d)null==s[d].to&&(m||(m=[])).push(new Zn(s[d].marker,null,null));for(d=0;d<g;++d)p.push(m);p.push(l)}return p}function ar(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 sr(e,t){var n=mi(e,t),r=or(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function lr(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!=Oi(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];
vendor: 5,988 bytes, line 16
16if(!(Fo(c.to,s.from)<0||0<Fo(c.from,s.to))){var u=[l,1],d=Fo(c.from,s.from),h=Fo(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(0<h||!a.inclusiveRight&&!h)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-1}}return i}function cr(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function ur(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function dr(e){return e.inclusiveLeft?-1:0}function hr(e){return e.inclusiveRight?1:0}function fr(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=Fo(r.from,i.from)||dr(e)-dr(t);if(o)return-o;var a=Fo(r.to,i.to)||hr(e)-hr(t);return a||t.id-e.id}function pr(e,t){var n,r=jo&&e.markedSpans;if(r)for(var i,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||fr(n,i.marker)<0)&&(n=i.marker);return n}function mr(e){return pr(e,!0)}function gr(e){return pr(e,!1)}function vr(e,t,n,r,i){var o=Qr(e,t),a=jo&&o.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=Fo(c.from,n)||dr(l.marker)-dr(i),d=Fo(c.to,r)||hr(l.marker)-hr(i);if(!(0<=u&&d<=0||u<=0&&0<=d)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?0<=Fo(c.to,n):0<Fo(c.to,n))||0<=u&&(l.marker.inclusiveRight&&i.inclusiveLeft?Fo(c.from,r)<=0:Fo(c.from,r)<0)))return!0}}}function yr(e){for(var t;t=mr(e);)e=t.find(-1,!0).line;return e}function br(e){for(var t,n;t=gr(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function wr(e,t){var n=Qr(e,t),r=yr(n);return n==r?t:ti(r)}function xr(e,t){if(t>e.lastLine())return t;var n,r=Qr(e,t);if(!Sr(e,r))return t;for(;n=gr(r);)r=n.find(1,!0).line;return ti(r)+1}function Sr(e,t){var n=jo&&t.markedSpans;if(n)for(var r,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Cr(e,t,r))return!0}}function Cr(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Cr(e,r.line,er(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Cr(e,t,i))return!0}function _r(e,t,n){ri(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&jn(e,null,n)}function Tr(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!Ya(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;"),Ui(t.display.measure,Wi("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function kr(r,e,t,n){var i=new ba(r,t,n),o=r.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),Bn(r,e,"widget",function(e){var t=e.widgets||(e.widgets=[]);if(null==i.insertAt?t.push(i):t.splice(Math.min(t.length-1,Math.max(0,i.insertAt)),0,i),i.line=e,o&&!Sr(r,e)){var n=ri(e)<r.scrollTop;ei(e,e.height+Tr(i)),n&&jn(o,null,i.height),o.curOp.forceUpdate=!0}return!0}),i}function Dr(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),cr(e),ur(e,n);var i=r?r(e):1;i!=e.height&&ei(e,i)}function Er(e){e.parent=null,cr(e)}function Ar(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 Lr(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=l.innerMode(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Ir(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=l.innerMode(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function Nr(e,t,n,r){function i(e){return{start:d.start,end:d.pos,string:d.current(),type:o||null,state:e?la(a.mode,u):u}}var o,a=e.doc,s=a.mode;t=me(a,t);var l,c=Qr(a,t.line),u=We(e,t.line,n),d=new ma(c.text,e.options.tabSize);for(r&&(l=[]);(r||d.pos<t.ch)&&!d.eol();)d.start=d.pos,o=Ir(s,d,u),r&&l.push(i(!0));return r?l:i()}function Or(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new ma(t,e.options.tabSize),h=e.options.addModeClass&&[null];for(""==t&&Ar(Lr(n,r),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&Rr(e,t,r,d.pos),d.pos=t.length,l=null):l=Ar(Ir(n,d,r,h),o),h){var f=h[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){for(;c<d.start;)i(c=Math.min(d.start,c+5e4),u);u=l}d.start=d.pos}for(;c<d.pos;){var p=Math.min(d.pos,c+5e4);i(p,u),c=p}}function Mr(e,t,n,r){var o=[e.state.modeGen],i={};Or(e,t.text,e.doc.mode,n,function(e,t){o.push(e,t)},i,r);for(var a=0;a<e.state.overlays.length;++a){var s=e.state.overlays[a],l=1,c=0;Or(e,t.text,s.mode,!0,function(e,t){for(var n=l;c<e;){var r=o[l];e<r&&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,"cm-overlay "+t),l=n+2;else for(;n<l;n+=2){var i=o[n+1];o[n+1]=(i?i+" ":"")+"cm-overlay "+t}},i)}return{styles:o,classes:i.bgClass||i.textClass?i:null}}function Pr(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=We(e,ti(t)),i=Mr(e,t,t.text.length>e.options.maxHighlightLength?la(e.doc.mode,r):r);t.stateAfter=r,t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function Rr(e,t,n,r){var i=e.doc.mode,o=new ma(t,e.options.tabSize);for(o.start=o.pos=r||0,""==t&&Lr(i,n);!o.eol();)Ir(i,o,n),o.start=o.pos}function jr(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Sa:xa;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Hr(e,t){var n=Wi("span",null,null,xo?"padding-right: .1px":null),r={pre:Wi("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,splitSpace
16s:(bo||xo)&&e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o,a=i?t.rest[i-1]:t.line;r.pos=0,r.addToken=qr,Ji(e.display.measure)&&(o=ii(a))&&(r.addToken=Wr(r.addToken,o)),r.map=[],Ur(a,r,Pr(e,a,t!=e.display.externalMeasured&&ti(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=Gi(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=Gi(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Qi(e.display.measure))),0==i?(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(xo){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Oa(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Gi(r.pre.className,r.textClass||"")),r}function Fr(e){var t=Wi("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function qr(e,t,n,r,i,o,a){if(t){var s=e.splitSpaces?t.replace(/ {3,}/g,Br):t,l=e.cm.state.specialChars,c=!1;if(l.test(t))for(var u=document.createDocumentFragment(),d=0;;){l.lastIndex=d;var h=l.exec(t),f=h?h.index-d:t.length-d;if(f){var p=document.createTextNode(s.slice(d,d+f));bo&&wo<9?u.appendChild(Wi("span",[p])):u.appendChild(p),e.map.push(e.pos,e.pos+f,p),e.col+=f,e.pos+=f}if(!h)break;if(d+=f+1,"\t"==h[0]){var m=e.cm.options.tabSize,g=m-e.col%m;(p=u.appendChild(Wi("span",Ii(g),"cm-tab"))).setAttribute("role","presentation"),p.setAttribute("cm-text","\t"),e.col+=g}else if("\r"==h[0]||"\n"==h[0]){(p=u.appendChild(Wi("span","\r"==h[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1}else{(p=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),bo&&wo<9?u.appendChild(Wi("span",[p])):u.appendChild(p),e.col+=1}e.map.push(e.pos,e.pos+1,p),e.pos++}else{e.col+=t.length;u=document.createTextNode(s);e.map.push(e.pos,e.pos+t.length,u),bo&&wo<9&&(c=!0),e.pos+=t.length}if(n||r||i||c||a){var v=n||"";r&&(v+=r),i&&(v+=i);var y=Wi("span",[u],v,a);return o&&(y.title=o),e.content.appendChild(y)}e.content.appendChild(u)}}function Br(e){for(var t=" ",n=0;n<e.length-2;++n)t+=n%2?" ":"\xa0";return t+" "}function Wr(d,h){return function(e,t,n,r,i,o,a){n=n?n+" cm-force-border":"cm-force-border";for(var s=e.pos,l=s+t.length;;){for(var c=0;c<h.length;c++){var u=h[c];if(u.to>s&&u.from<=s)break}if(u.to>=l)return d(e,t,n,r,i,o,a);d(e,t.slice(0,u.to-s),n,r,null,o,a),r=null,t=t.slice(u.to-s),s=u.to}}}function $r(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t}function Ur(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,h,f=i.length,p=0,m=1,g="",v=0;;){if(v==p){l=c=u=d=s="",h=null,v=1/0;for(var y,b=[],w=0;w<r.length;++w){var x=r[w],S=x.marker;"bookmark"==S.type&&x.from==p&&S.widgetNode?b.push(S):x.from<=p&&(null==x.to||x.to>p||S.collapsed&&x.to==p&&x.from==p)?(null!=x.to&&x.to!=p&&v>x.to&&(v=x.to,c=""),S.className&&(l+=" "+S.className),S.css&&(s=(s?s+";":"")+S.css),S.startStyle&&x.from==p&&(u+=" "+S.startStyle),S.endStyle&&x.to==v&&(y||(y=[])).push(S.endStyle,x.to),S.title&&!d&&(d=S.title),S.collapsed&&(!h||fr(h.marker,S)<0)&&(h=x)):x.from>p&&v>x.from&&(v=x.from)}if(y)for(w=0;w<y.length;w+=2)y[w+1]==v&&(c+=" "+y[w]);if(!h||h.from==p)for(w=0;w<b.length;++w)$r(t,0,b[w]);if(h&&(h.from||0)==p){if($r(t,(null==h.to?f+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(f<=p)break;for(var C=Math.min(f,v);;){if(g){var _=p+g.length;if(!h){var T=C<_?g.slice(0,C-p):g;t.addToken(t,T,a?a+l:l,u,p+T.length==v?c:"",d,s)}if(C<=_){g=g.slice(C-p),p=C;break}p=_,u=""}g=i.slice(o,o=n[m++]),a=jr(n[m++],t.cm.options)}}else for(m=1;m<n.length;m+=2)t.addToken(t,i.slice(o,o=n[m]),jr(n[m+1],t.cm.options))}function zr(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Ni(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Vr(e,r,t,i){function o(e){return t?t[e]:null}function n(e,t,n){Dr(e,t,n,i),_i(e,"change",e,r)}function a(e,t){for(var n=e,r=[];n<t;++n)r.push(new wa(c[n],o(n),i));return r}var s=r.from,l=r.to,c=r.text,u=Qr(e,s.line),d=Qr(e,l.line),h=Ni(c),f=
16o(c.length-1),p=l.line-s.line;if(r.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(zr(e,r)){var m=a(0,c.length-1);n(d,d.text,f),p&&e.remove(s.line,p),m.length&&e.insert(s.line,m)}else if(u==d)if(1==c.length)n(u,u.text.slice(0,s.ch)+h+u.text.slice(l.ch),f);else{(m=a(1,c.length-1)).push(new wa(h+u.text.slice(l.ch),f,i)),n(u,u.text.slice(0,s.ch)+c[0],o(0)),e.insert(s.line+1,m)}else if(1==c.length)n(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),o(0)),e.remove(s.line+1,p);else{n(u,u.text.slice(0,s.ch)+c[0],o(0)),n(d,h+d.text.slice(l.ch),f);m=a(1,c.length-1);1<p&&e.remove(s.line+1,p-1),e.insert(s.line+1,m)}_i(e,"change",e,r)}function Gr(e){this.lines=e,this.parent=null;for(var t=0,n=0;t<e.length;++t)e[t].parent=this,n+=e[t].height;this.height=n}function Yr(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}function Xr(e,a,s){function l(e,t,n){if(e.linked)for(var r=0;r<e.linked.length;++r){var i=e.linked[r];if(i.doc!=t){var o=n&&i.sharedHist;s&&!o||(a(i.doc,o),l(i.doc,e,o))}}}l(e,null,!0)}function Kr(e,t){if(t.cm)throw new Error("This document is already in use.");r((e.doc=t).cm=e),n(e),e.options.lineWrapping||o(e),e.options.mode=t.modeOption,Pt(e)}function Qr(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 i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Jr(e,n,r){var i=[],o=n.line;return e.iter(n.line,r.line+1,function(e){var t=e.text;o==r.line&&(t=t.slice(0,r.ch)),o==n.line&&(t=t.slice(n.ch)),i.push(t),++o}),i}function Zr(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function ei(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function ti(e){if(null==e.parent)return null;for(var t=e.parent,n=Oi(t.lines,e),r=t.parent;r;r=(t=r).parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function ni(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(r=0;r<e.lines.length;++r){var a=e.lines[r].height;if(t<a)break;t-=a}return n+r}function ri(e){for(var t=0,n=(e=yr(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(r=0;r<o.children.length;++r){var a=o.children[r];if(a==n)break;t+=a.height}return t}function ii(e){var t=e.order;return null==t&&(t=e.order=ls(e.text)),t}function oi(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 ai(e,t){var n={from:G(t.from),to:Zo(t),text:Jr(e,t.from,t.to)};return fi(e,n,t.from.line,t.to.line+1),Xr(e,function(e){fi(e,n,t.from.line,t.to.line+1)},!0),n}function si(e){for(;e.length;){if(!Ni(e).ranges)break;e.pop()}}function li(e,t){return t?(si(e.done),Ni(e.done)):e.done.length&&!Ni(e.done).ranges?Ni(e.done):1<e.done.length&&!e.done[e.done.length-2].ranges?(e.done.pop(),Ni(e.done)):void 0}function ci(e,t,n,r){var i=e.history;i.undone.length=0;var o,a=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&i.lastModTime>a-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=li(i,i.lastOp==r))){var s=Ni(o.changes);0==Fo(t.from,t.to)&&0==Fo(t.from,s.to)?s.to=Zo(t):o.changes.push(ai(e,t))}else{var l=Ni(i.done);for(l&&l.ranges||hi(e.sel,i.done),o={changes:[ai(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,s||Oa(e,"historyAdded")}function ui(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function di(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||ui(e,o,Ni(i.done),t))?i.done[i.done.length-1]=t:hi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&si(i.undone)}function hi(e,t){var n=Ni(t);n&&n.ranges&&n.equals(e)||t.push(e)}function fi(t,n,e,r){var i=n["spans_"+t.id],o=0;t.iter(Math.max(t.first,e),Math.min(t.first+t.size,r),function(e){e.markedSpans&&((i||(i=n["spans_"+t.id]={}))[o]=e.markedSpans),++o})}function pi(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 mi(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=0,i=[];r<t.text.length;++r)i.push(pi(n[r]));return i}function gi(e,t,n){for(var r=0,i=[];r<e.length;++r){var o=e[r];if(o.ranges)i.push(n?ue.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];i.push({changes:s});for(var l=0;l<a.length;++l){var c,u=a[l];if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var d in u)(c=d.match(/^spans_(\d+)$/))&&-1<Oi(t,Number(c[1]))&&(Ni(s)[d]=u[d],delete u[d])}}}return i}function vi(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function yi(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)vi(o.ranges[s].anchor,t,n,r),vi(o.ranges[s].head,t,n,r)}else{for(s=0;s<o.changes.length;++s){var l=o.changes[s];if(n<l.from.line)l.from=Ho(l.from.line+r,l.from.ch),l.to=Ho(l.to.line+r,l.to.ch);else if(t<=l.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function bi(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;yi(e.done,n,r,i),yi(e.undone,n,r,i)}function wi(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function xi(e){return e.target||e.srcElement}function Si(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),Lo&&e.ctrlKey&&1==t&&(t=3),t}function Ci(e,t,n){var r=e._handlers&&e._handlers[t];return n?r&&0<r.length?r.slice():Ia:r||Ia}function _i(e,t){function n(e){return function(){e.apply(null,o)}}
16var r=Ci(e,t,!1);if(r.length){var i,o=Array.prototype.slice.call(arguments,2);zo?i=zo.delayedCallbacks:Ma?i=Ma:(i=Ma=[],setTimeout(Ti,0));for(var a=0;a<r.length;++a)i.push(n(r[a]))}}function Ti(){var e=Ma;Ma=null;for(var t=0;t<e.length;++t)e[t]()}function ki(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Oa(e,n||t.type,e,t),wi(t)||t.codemirrorIgnore}function Di(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==Oi(n,t[r])&&n.push(t[r])}function Ei(e,t){return 0<Ci(e,t).length}function Ai(e){e.prototype.on=function(e,t){La(this,e,t)},e.prototype.off=function(e,t){Na(this,e,t)}}function Li(){this.id=null}function Ii(e){for(;Wa.length<=e;)Wa.push(Ni(Wa)+" ");return Wa[e]}function Ni(e){return e[e.length-1]}function Oi(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}function Mi(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Pi(){}function Ri(e,t){var n;return Object.create?n=Object.create(e):(Pi.prototype=e,n=new Pi),t&&ji(t,n),n}function ji(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 Hi(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function Fi(e,t){return t?!!(-1<t.source.indexOf("\\w")&&Va(e))||t.test(e):Va(e)}function qi(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function Bi(e){return 768<=e.charCodeAt(0)&&Ga.test(e)}function Wi(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function $i(e){for(var t=e.childNodes.length;0<t;--t)e.removeChild(e.firstChild);return e}function Ui(e,t){return $i(e).appendChild(t)}function zi(){for(var e=document.activeElement;e&&e.root&&e.root.activeElement;)e=e.root.activeElement;return e}function Vi(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function Gi(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!Vi(n[r]).test(t)&&(t+=" "+n[r]);return t}function Yi(e){if(document.body.getElementsByClassName)for(var t=document.body.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&e(r)}}function Xi(){es||(Ki(),es=!0)}function Ki(){var e;La(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Yi(Ut)},100))}),La(window,"blur",function(){Yi(yn)})}function Qi(e){if(null==Xa){var t=Wi("span","\u200b");Ui(e,Wi("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Xa=t.offsetWidth<=1&&2<t.offsetHeight&&!(bo&&wo<8))}var n=Xa?Wi("span","\u200b"):Wi("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ji(e){if(null!=Ka)return Ka;var t=Ui(e,document.createTextNode("A\u062eA")),n=Ua(t,0,1).getBoundingClientRect();if(!n||n.left==n.right)return!1;var r=Ua(t,1,2).getBoundingClientRect();return Ka=r.right-n.right<3}function Zi(e){if(null!=os)return os;var t=Ui(e,Wi("span","x")),n=t.getBoundingClientRect(),r=Ua(t,0,1).getBoundingClientRect();return os=1<Math.abs(n.left-r.left)}function eo(e,t,n,r){if(!e)return r(t,n,"ltr");for(var i=!1,o=0;o<e.length;++o){var a=e[o];(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=!0)}i||r(t,n,"ltr")}function to(e){return e.level%2?e.to:e.from}function no(e){return e.level%2?e.from:e.to}function ro(e){var t=ii(e);return t?to(t[0]):0}function io(e){var t=ii(e);return t?no(Ni(t)):e.text.length}function oo(e,t){var n=Qr(e.doc,t),r=yr(n);r!=n&&(t=ti(r));var i=ii(r),o=i?i[0].level%2?io(r):ro(r):0;return Ho(t,o)}function ao(e,t){for(var n,r=Qr(e.doc,t);n=gr(r);)r=n.find(1,!0).line,t=null;var i=ii(r),o=i?i[0].level%2?ro(r):io(r):r.text.length;return Ho(null==t?ti(r):t,o)}function so(e,t){var n=oo(e,t.line),r=Qr(e.doc,n.line),i=ii(r);if(i&&0!=i[0].level)return n;var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return Ho(n.line,a?0:o)}function lo(e,t,n){var r=e[0].level;return t==r||n!=r&&t<n}function co(e,t){ss=null;for(var n,r=0;r<e.length;++r){var i=e[r];if(i.from<t&&i.to>t)return r;if(i.from==t||i.to==t){if(null!=n)return lo(e,i.level,e[n].level)?(i.from!=i.to&&(ss=n),r):(i.from!=i.to&&(ss=r),n);n=r}}return n}function uo(e,t,n,r){if(!r)return t+n;for(;0<(t+=n)&&Bi(e.text.charAt(t)););return t}function ho(e,t,n,r){var i=ii(e);if(!i)return fo(e,t,n,r);for(var o=co(i,t),a=i[o],s=uo(e,t,a.level%2?-n:n,r);;){if(s>a.from&&s<a.to)return s;if(s==a.from||s==a.to)return co(i,s)==o?s:0<n==(a=i[o+=n]).level%2?a.to:a.from;if(!(a=i[o+=n]))return null;s=0<n==a.level%2?uo(e,a.to,-1,r):uo(e,a.from,1,r)}}function fo(e,t,n,r){var i=t+n;if(r)for(;0<i&&Bi(e.text.charAt(i));)i+=n;return i<0||i>e.text.length?null:i}var po=navigator.userAgent,mo=navigator.platform,go=/gecko\/\d/i.test(po),vo=/MSIE \d/.test(po),yo=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(po),bo=vo||yo,wo=bo&&(vo?document.documentMode||6:yo[1]),xo=/WebKit\//.test(po),So=xo&&/Qt\/\d+\.\d+/.test(po),Co=/Chrome\//.test(po),_o=/Opera\//.test(po),To=/Apple Computer/.test(navigator.vendor),ko=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(po),Do=/PhantomJS/.test(po),Eo=/AppleWeb
16Kit/.test(po)&&/Mobile\/\w+/.test(po),Ao=Eo||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(po),Lo=Eo||/Mac/.test(mo),Io=/\bCrOS\b/.test(po),No=/win/i.test(mo),Oo=_o&&po.match(/Version\/(\d*\.\d*)/);Oo&&(Oo=Number(Oo[1])),Oo&&15<=Oo&&(xo=!(_o=!1));var Mo=Lo&&(So||_o&&(null==Oo||Oo<12.11)),Po=go||bo&&9<=wo,Ro=!1,jo=!1;e.prototype=ji({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 i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"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 o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=e.scrollWidth-e.clientWidth+o+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&0<e.clientHeight&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},setScrollLeft:function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz)},setScrollTop:function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert)},zeroWidthHack:function(){var e=Lo&&!ko?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Li,this.disableVert=new Li},enableZeroWidthBar:function(t,n){function r(){var e=t.getBoundingClientRect();document.elementFromPoint(e.left+1,e.bottom-1)!=t?t.style.pointerEvents="none":n.set(1e3,r)}
17t.style.pointerEvents="auto",n.set(1e3,r)},clear:function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)}},e.prototype),g.prototype=ji({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},g.prototype),l.scrollbarModel={"native":e,"null":g},T.prototype.signal=function(e,t){Ei(e,t)&&this.events.push(arguments)},T.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Oa.apply(null,this.events[e])};var Ho=l.Pos=function(e,t){return this instanceof Ho?(this.line=e,void(this.ch=t)):new Ho(e,t)},Fo=l.cmpPos=function(e,t){return e.line-t.line||e.ch-t.ch},qo=null;ne.prototype=ji({init:function(t){function e(e){if(!ki(r,e)){if(r.somethingSelected())qo={lineWise:!1,text:r.getSelections()},n.inaccurateSelection&&(n.prevInput="",n.inaccurateSelection=!1,o.value=qo.text.join("\n"),$a(o));else{if(!r.options.lineWiseCopyCut)return;var t=ee(r);qo={lineWise:!0,text:t.text},"cut"==e.type?r.setSelections(t.ranges,null,ja):(n.prevInput="",o.value=t.text.join("\n"),$a(o))}"cut"==e.type&&(r.state.cutIncoming=!0)}}var n=this,r=this.cm,i=this.wrapper=re(),o=this.textarea=i.firstChild;t.wrapper.insertBefore(i,t.wrapper.firstChild),Eo&&(o.style.width="0px"),La(o,"input",function(){bo&&9<=wo&&n.hasSelection&&(n.hasSelection=null),n.poll()}),La(o,"paste",function(e){ki(r,e)||J(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),La(o,"cut",e),La(o,"copy",e),La(t.scroller,"paste",function(e){zt(t,e)||ki(r,e)||(r.state.pasteIncoming=!0,n.focus())}),La(t.lineSpace,"selectstart",function(e){zt(t,e)||Da(e)}),La(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"})}}),La(o,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},prepareSelection:function(){var e=this.cm,t=e.display,n=e.doc,r=Pe(e);if(e.options.moveInputWithCursor){var i=ft(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},showSelection:function(e){var t=this.cm.display;Ui(t.cursorDiv,e.cursors),Ui(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},reset:function(e){if(!this.contextMenuPending){var t,n,r=this.cm,i=r.doc;if(r.somethingSelected()){this.prevInput="";var o=i.sel.primary(),a=(t=is&&(100<o.to().line-o.from().line||1e3<(n=r.getSelection()).length))?"-":n||r.getSelection();this.textarea.value=a,r.state.focused&&$a(this.textarea),bo&&9<=wo&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",bo&&9<=wo&&(this.hasSelection=null));this.inaccurateSelection=t}},getField:function(){return this.textarea},supportsTouch:function(){return!1},focus:function(){if("nocursor"!=this.cm.options.readOnly&&(!Ao||zi()!=this.textarea))try{this.textarea.focus()}catch(l){}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var e=this;e.pollingFast||e.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},fastPoll:function(){function e(){n.poll()||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},poll:function(){var e=this.cm,t=this.textarea,n=this.prevInput;if(this.contextMenuPending||!e.state.focused||rs(t)&&!n&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=t.value;if(r==n&&!e.somethingSelected())return!1;if(bo&&9<=wo&&this.hasSelection===r||Lo&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var i=r.charCodeAt(0);if(8203!=i||n||(n="\u200b"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var o=0,a=Math.min(n.length,r.length);
17o<a&&n.charCodeAt(o)==r.charCodeAt(o);)++o;var s=this;return At(e,function(){Q(e,r.slice(o),n.length-o,null,s.composing?"*compose":null),1e3<r.length||-1<r.indexOf("\n")?t.value=s.prevInput="":s.prevInput=r,s.composing&&(s.composing.range.clear(),s.composing.range=e.markText(s.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ensurePolled:function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},onKeyPress:function(){bo&&9<=wo&&(this.hasSelection=null),this.fastPoll()},onContextMenu:function(e){function n(){if(null!=a.selectionStart){var e=i.somethingSelected(),t="\u200b"+(e?a.value:"");a.value="\u21da",a.value=t,r.prevInput=e?"":"\u200b",a.selectionStart=1,a.selectionEnd=t.length,o.selForContextMenu=i.doc.sel}}function t(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=u,a.style.cssText=c,bo&&wo<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=l),null!=a.selectionStart){(!bo||bo&&wo<9)&&n();var e=0,t=function(){o.selForContextMenu==i.doc.sel&&0==a.selectionStart&&0<a.selectionEnd&&"\u200b"==r.prevInput?Lt(i,ua.selectAll)(i):e++<10?o.detectingSelectAll=setTimeout(t,500):o.input.reset()};o.detectingSelectAll=setTimeout(t,200)}}
vendor: 9,904 bytes, line 17
17var r=this,i=r.cm,o=i.display,a=r.textarea,s=Vt(i,e),l=o.scroller.scrollTop;if(s&&!_o){i.options.resetSelectionOnContextMenu&&-1==i.doc.sel.contains(s)&&Lt(i,ke)(i.doc,fe(s),ja);var c=a.style.cssText,u=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var d=r.wrapper.getBoundingClientRect();if(a.style.cssText="position: absolute; width: 30px; height: 30px; top: "+(e.clientY-d.top-5)+"px; left: "+(e.clientX-d.left-5)+"px; z-index: 1000; background: "+(bo?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",xo)var h=window.scrollY;if(o.input.focus(),xo&&window.scrollTo(null,h),o.input.reset(),i.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),bo&&9<=wo&&n(),Po){Aa(e);var f=function(){Na(window,"mouseup",f),setTimeout(t,20)};La(window,"mouseup",f)}else setTimeout(t,50)}},readOnlyChanged:function(e){e||this.reset()},setUneditable:Pi,needsContentAttribute:!1},ne.prototype),ie.prototype=ji({init:function(e){function t(e){if(!ki(o,e)){if(o.somethingSelected())qo={lineWise:!1,text:o.getSelections()},"cut"==e.type&&o.replaceSelection("",null,"cut");else{if(!o.options.lineWiseCopyCut)return;var t=ee(o);qo={lineWise:!0,text:t.text},"cut"==e.type&&o.operation(function(){o.setSelections(t.ranges,0,ja),o.replaceSelection("",null,"cut")})}if(e.clipboardData&&!Eo)e.preventDefault(),e.clipboardData.clearData(),e.clipboardData.setData("text/plain",qo.text.join("\n"));else{var n=re(),r=n.firstChild;o.display.lineSpace.insertBefore(n,o.display.lineSpace.firstChild),r.value=qo.text.join("\n");var i=document.activeElement;$a(r),setTimeout(function(){o.display.lineSpace.removeChild(n),i.focus()},50)}}}var i=this,o=i.cm,n=i.div=e.lineDiv;te(n),La(n,"paste",function(e){ki(o,e)||J(e,o)}),La(n,"compositionstart",function(e){var t=e.data;if(i.composing={sel:o.doc.sel,data:t,startData:t},t){var n=o.doc.sel.primary(),r=o.getLine(n.head.line).indexOf(t,Math.max(0,n.head.ch-t.length));-1<r&&r<=n.head.ch&&(i.composing.sel=fe(Ho(n.head.line,r),Ho(n.head.line,r+t.length)))}}),La(n,"compositionupdate",function(e){i.composing.data=e.data}),La(n,"compositionend",function(e){var t=i.composing;t&&(e.data==t.startData||/\u200b/.test(e.data)||(t.data=e.data),setTimeout(function(){t.handled||i.applyComposition(t),i.composing==t&&(i.composing=null)},50))}),La(n,"touchstart",function(){i.forceCompositionEnd()}),La(n,"input",function(){i.composing||!o.isReadOnly()&&i.pollContent()||At(i.cm,function(){Pt(o)})}),La(n,"copy",t),La(n,"cut",t)},prepareSelection:function(){var e=Pe(this.cm,!1);return e.focus=this.cm.state.focused,e},showSelection:function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},showPrimarySelection:function(){var e=window.getSelection(),t=this.cm.doc.sel.primary(),n=se(this.cm,e.anchorNode,e.anchorOffset),r=se(this.cm,e.focusNode,e.focusOffset);if(!n||n.bad||!r||r.bad||0!=Fo(X(n,r),t.from())||0!=Fo(Y(n,r),t.to())){var i=oe(this.cm,t.from()),o=oe(this.cm,t.to());if(i||o){var a=this.cm.display.view,s=e.rangeCount&&e.getRangeAt(0);if(i){if(!o){var l=a[a.length-1].measure,c=l.maps?l.maps[l.maps.length-1]:l.map;o={node:c[c.length-1],offset:c[c.length-2]-c[c.length-3]}}}else i={node:a[0].measure.map[2],offset:0};try{var u=Ua(i.node,i.offset,o.offset,o.node)}catch(p){}u&&(!go&&this.cm.state.focused?(e.collapse(i.node,i.offset),u.collapsed||e.addRange(u)):(e.removeAllRanges(),e.addRange(u)),s&&null==e.anchorNode?e.addRange(s):go&&this.startGracePeriod()),this.rememberSelection()}}},startGracePeriod:function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){e.cm.curOp.selectionChanged=!0})},20)},showMultipleSelections:function(e){Ui(this.cm.display.cursorDiv,e.cursors),Ui(this.cm.display.selectionDiv,e.selection)},rememberSelection:function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},selectionInEditor:function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return Ya(this.div,t)},focus:function(){"nocursor"!=this.cm.options.readOnly&&this.div.focus()},blur:function(){this.div.blur()},getField:function(){return this.div},supportsTouch:function(){return!0},receivedFocus:function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():At(this.cm,function(){t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},selectionChanged:function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},pollSelection:function(){if(!this.composing&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;this.rememberSelection();var n=se(t,e.anchorNode,e.anchorOffset),r=se(t,e.focusNode,e.focusOffset);n&&r&&At(t,function(){ke(t.doc,fe(n,r),ja),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}},pollContent:function(){var e,t=this.cm,n=t.display,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(i.line<n.viewFrom||o.line>n.viewTo-1)return!1;if(i.line==n.viewFrom||0==(e=Ht(t,i.line)))var a=ti(n.view[0].line),s=n.view[0].node;else a=ti(n.view[e].line),s=n.view[e-1].node.nextSibling;var l=Ht(t,o.line);if(l==n.view.length-1)var c=n.viewTo-1,u=n.lineDiv.lastChild;else c=ti(n.view[l+1].line)-1,u=n.view[l+1].node.previousSibling;for(var d=t.doc.splitLines(ce(t,s,u,a,c)),h=Jr(t.doc,Ho(a,0),Ho(c,Qr(t.doc,c).text.length));1<d.length&&1<h.length;)if(Ni(d)==Ni(h))d.pop(),h.pop(),c--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),a++}for(var f=0,p=0,m=d[0],g=h[0],v=Math.min(m.length,g.length);f<v&&m.charCodeAt(f)==g.charCodeAt(f);)++f;for(var y=Ni(d),b=Ni(h),w=Math.min(y.length-(1==d.length?f:0),b.length-(1==h.length?f:0));p<w&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)++p;d[d.length-1]=y.slice(0,y.length-p),d[0]=d[0].slice(f);var x=Ho(a,f),S=Ho(c,h.length?Ni(h).length-p:0);return 1<d.length||d[0]||Fo(x,S)?(Nn(t.doc,d,x,S,"+input"),!0):void 0},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){this.composing&&!this.composing.handled&&(this.applyComposition(this.composing),this.composing.handled=!0,this.div.blur(),this.div.focus())},applyComposition:function(e){this.cm.isReadOnly()?Lt(this.cm,Pt)(this.cm):e.data&&e.data!=e.startData&&Lt(this.cm,Q)(this.cm,e.data,0,e.sel)},setUneditable:function(e){e.contentEditable="false"},onKeyPress:function(e){e.preventDefault(),this.cm.isReadOnly()||Lt(this.cm,Q)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0)},readOnlyChanged:function(e){this.div.contentEditable=String("nocursor"!=e)},onContextMenu:Pi,resetPosition:Pi,needsContentAttribute:!0},ie.prototype),l.inputStyles={textarea:ne,contenteditable:ie},ue.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(0!=Fo(n.anchor,r.anchor)||0!=Fo(n.head,r.head))return!1}return!0},deepCopy:function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new de(G(this.ranges[t].anchor),G(this.ranges[t].head));return new ue(e,this.primIndex)},somethingSelected:function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},contains:function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(0<=Fo(t,r.from())&&Fo(e,r.to())<=0)return n}return-1}},de.prototype={from:function(){return X(this.anchor,this.head)},to:function(){return Y(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};var Bo,Wo,$o,Uo={left:0,right:0,top:0,bottom:0},zo=null,Vo=0,Go=0,Yo=0,Xo=null;bo?Xo=-.53:go?Xo=15:Co?Xo=-.7:To&&(Xo=-1/3);var Ko=function(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}};l.wheelEventPixels=function(e){var t=Ko(e);return t.x*=Xo,t.y*=Xo,t};var Qo=new Li,Jo=null,Zo=l.changeEnd=function(e){return e.text?Ho(e.from.line+e.text.length-1,Ni(e.text).length+(1==e.text.length?e.from.ch:0)):e.to};l.prototype={constructor:l,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,t){var n=this.options,r=n[e];n[e]==t&&"mode"!=e||(n[e]=t,ta.hasOwnProperty(e)&&Lt(this,ta[e])(this,t,r))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Gn(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:It(function(e,t){var n=e.token?e:l.getMode(this.options,e);if(n.startState)throw new Error("Overlays may not be stateful.");this.state.overlays.push({mode:n,modeSpec:e,opaque:t&&t.opaque}),this.state.modeGen++,Pt(this)}),removeOverlay:It(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Pt(this)}}),indentLine:It(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),ve(this.doc,e)&&qn(this,e,t,n)}),indentSelection:It(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];
17if(i.empty())i.head.line>n&&(qn(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Hn(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)qn(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&0<c[r].from().ch&&Se(this.doc,r,new de(o,c[r].to()),ja)}}}),getTokenAt:function(e,t){return Nr(this,e,t)},getLineTokens:function(e,t){return Nr(this,Ho(e),t,!0)},getTokenTypeAt:function(e){e=me(this.doc,e);var t,n=Pr(this,Qr(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("cm-overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(e){var t=this.doc.mode;return t.innerMode?l.innerMode(t,this.getTokenAt(e).state).mode:t},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!sa.hasOwnProperty(t))return n;var r=sa[t],i=this.getModeAt(e);if("string"==typeof i[t])r[i[t]]&&n.push(r[i[t]]);else if(i[t])for(var o=0;o<i[t].length;o++){var a=r[i[t][o]];a&&n.push(a)}else i.helperType&&r[i.helperType]?n.push(r[i.helperType]):r[i.name]&&n.push(r[i.name]);for(o=0;o<r._global.length;o++){var s=r._global[o];s.pred(i,this)&&-1==Oi(n,s.val)&&n.push(s.val)}return n},getStateAfter:function(e,t){var n=this.doc;return We(this,(e=pe(n,null==e?n.first+n.size-1:e))+1,t)},cursorCoords:function(e,t){var n=this.doc.sel.primary();return ft(this,null==e?n.head:"object"==typeof e?me(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return ht(this,me(this.doc,e),t||"page")},coordsChar:function(e,t){return gt(this,(e=dt(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=dt(this,{top:e,left:0},t||"page").top,ni(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t){var n,r=!1;if("number"==typeof e){var i=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:i<e&&(e=i,r=!0),n=Qr(this.doc,e)}else n=e;return ut(this,n,{top:0,left:0},t||"page").top+(r?this.doc.height-ri(n):0)},defaultTextHeight:function(){return yt(this.display)},defaultCharWidth:function(){return bt(this.display)},setGutterMarker:It(function(e,n,r){return Bn(this.doc,e,"gutter",function(e){var t=e.gutterMarkers||(e.gutterMarkers={});return!(t[n]=r)&&qi(t)&&(e.gutterMarkers=null),!0})}),clearGutter:It(function(t){var n=this,e=n.doc,r=e.first;e.iter(function(e){e.gutterMarkers&&e.gutterMarkers[t]&&(e.gutterMarkers[t]=null,Rt(n,r,"gutter"),qi(e.gutterMarkers)&&(e.gutterMarkers=null)),++r})}),lineInfo:function(e){if("number"==typeof e){if(!ve(this.doc,e))return null;var t=e;if(!(e=Qr(this.doc,e)))return null}else{if(null==(t=ti(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}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=ft(this,me(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.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"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&Pn(this,s,a,s+t.offsetWidth,a+t.offsetHeight)},triggerOnKeyDown:It(hn),triggerOnKeyPress:It(mn),triggerOnKeyUp:pn,execCommand:function(e){return ua.hasOwnProperty(e)?ua[e].call(null,this):void 0},triggerElectric:It(function(e){Z(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=0,a=me(this.doc,e);o<t&&!(a=$n(this.doc,a,i,n,r)).hitSide;++o);return a},moveH:It(function(t,n){var r=this;r.extendSelectionsBy(function(e){return r.display.shift||r.doc.extend||e.empty()?$n(r.doc,e.head,t,n,r.options.rtlMoveVisually):t<0?e.from():e.to()},Fa)}),deleteH:It(function(n,r){var e=this.doc.sel,i=this.doc;e.somethingSelected()?i.replaceSelection("",null,"+delete"):Wn(this,function(e){var t=$n(i,e.head,n,r,!1);return n<0?{from:t,to:e.head}:{from:e.head,to:t}})}),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=0,s=me(this.doc,e);a<t;
vendor: 32,665 bytes, lines 17-18
17++a){var l=ft(this,s,"div");if(null==o?o=l.left:l.left=o,(s=Un(this,l,i,n)).hitSide)break}return s},moveV:It(function(r,i){var o=this,a=this.doc,s=[],l=!o.display.shift&&!a.extend&&a.sel.somethingSelected();if(a.extendSelectionsBy(function(e){if(l)return r<0?e.from():e.to();var t=ft(o,e.head,"div");null!=e.goalColumn&&(t.left=e.goalColumn),s.push(t.left);var n=Un(o,t,r,i);return"page"==i&&e==a.sel.primary()&&jn(o,null,ht(o,n,"div").top-t.top),n},Fa),s.length)for(var e=0;e<a.sel.ranges.length;e++)a.sel.ranges[e].goalColumn=s[e]}),findWordAt:function(e){var t=Qr(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");(e.xRel<0||r==t.length)&&n?--n:++r;for(var o=t.charAt(n),a=Fi(o,i)?function(e){return Fi(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!Fi(e)};0<n&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new de(Ho(e.line,n),Ho(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Za(this.display.cursorDiv,"CodeMirror-overwrite"):Ja(this.display.cursorDiv,"CodeMirror-overwrite"),Oa(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==zi()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:It(function(e,t){null==e&&null==t||Fn(this),null!=e&&(this.curOp.scrollLeft=e),null!=t&&(this.curOp.scrollTop=t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Ve(this)-this.display.barHeight,width:e.scrollWidth-Ve(this)-this.display.barWidth,clientHeight:Ye(this),clientWidth:Ge(this)}},scrollIntoView:It(function(e,t){if(null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:Ho(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)Fn(this),this.curOp.scrollToPos=e;else{var n=Rn(this,Math.min(e.from.left,e.to.left),Math.min(e.from.top,e.to.top)-e.margin,Math.max(e.from.right,e.to.right),Math.max(e.from.bottom,e.to.bottom)+e.margin);this.scrollTo(n.scrollLeft,n.scrollTop)}}),setSize:It(function(e,t){function n(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e}var r=this;null!=e&&(r.display.wrapper.style.width=n(e)),null!=t&&(r.display.wrapper.style.height=n(t)),r.options.lineWrapping&&at(this);var i=r.display.viewFrom;r.doc.iter(i,r.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Rt(r,i,"widget");break}++i}),r.curOp.forceUpdate=!0,Oa(r,"refresh",this)}),operation:function(e){return At(this,e)},refresh:It(function(){var e=this.display.cachedTextHeight;Pt(this),this.curOp.forceUpdate=!0,st(this),this.scrollTo(this.doc.scrollLeft,this.doc.scrollTop),s(this),(null==e||.5<Math.abs(e-yt(this.display)))&&r(this),Oa(this,"refresh",this)}),swapDoc:It(function(e){var t=this.doc;return t.cm=null,Kr(this,e),st(this),this.display.input.reset(),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,_i(this,"swapDoc",this,t),t}),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}},Ai(l);var ea=l.defaults={},ta=l.optionHandlers={},na=l.Init={toString:function(){return"CodeMirror.Init"}};zn("value","",function(e,t){e.setValue(t)},!0),zn("mode",null,function(e,t){e.doc.modeOption=t,n(e)},!0),zn("indentUnit",2,n,!0),zn("indentWithTabs",!1),zn("smartIndent",!0),zn("tabSize",4,function(e){t(e),st(e),Pt(e)},!0),zn("lineSeparator",null,function(e,r){if(e.doc.lineSep=r){var i=[],o=e.doc.first;e.doc.iter(function(e){for(var t=0;;){var n=e.text.indexOf(r,t);if(-1==n)break;t=n+r.length,i.push(Ho(o,n))}o++});for(var t=i.length-1;0<=t;t--)Nn(e.doc,r,i[t],Ho(i[t].line,i[t].ch+r.length))}}),zn("specialChars",/[\u0000-\u001f\u007f\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=l.Init&&e.refresh()}),zn("specialCharPlaceholder",Fr,function(e){e.refresh()},!0),zn("electricChars",!0),zn("inputStyle",Ao?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),zn("rtlMoveVisually",!No),zn("wholeLineUpdateBefore",!0),zn("theme","default",function(e){u(e),d(e)},!0),zn("keyMap","default",function(e,t,n){var r=Gn(t),i=n!=l.Init&&Gn(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),zn("extraKeys",null),zn("lineWrapping",!1,i,!0),zn("gutters",[],function(e){m(e.options),d(e)},!0),zn("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?_(e.display)+"px":"0",e.refresh()},!0),zn("coverGutterNextToScrollbar",!1,function(e){y(e)},!0),zn("scrollbarStyle","native",function(e){v(e),y(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),zn("lineNumbers",!1,function(e){m(e.options),d(e)},!0),zn("firstLineNumber",1,d,!0),zn("lineNumberFormatter",function(e){return e},d,!0),zn("showCursorWhenSelecting",!1,Me,!0),zn("resetSelectionOnContextMenu",!0),zn("lineWiseCopyCut",!0),zn("readOnly",!1,function(e,t){"nocursor"==t?(yn(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),zn("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),zn("dragDrop",!0,$t),zn("allowDropFileTypes",null),zn("cursorBlinkRate",530),zn("cursorScrollMargin",0),zn("cursorHeight",1,Me,!0),zn("singleCursorHeightPerLine",!0,Me,!0),zn("workTime",100),zn("workDelay",100),zn("flattenSpans",!0,t,!0),zn("addModeClass",!1,t,!0),zn("pollInterval",100),zn("undoDepth",200,function(e,t){e.doc.history.undoDepth=t}),zn("historyEventDelay",1250),zn("viewportMargin",10,function(e){e.refresh()},!0),zn("maxHighlightLength",1e4,t,!0),zn("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),zn("tabindex",null,function(e,t){e.display.input.getField().tabIndex=t||""}),zn("autofocus",null);var ra=l.modes={},ia=l.mimeModes={};l.defineMode=function(e,t){l.defaults.mode||"null"==e||(l.defaults.mode=e),2<arguments.length&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ra[e]=t},l.defineMIME=function(e,t){ia[e]=t},l.resolveMode=function(e){if("string"==typeof e&&ia.hasOwnProperty(e))e=ia[e];else if(e&&"string"==typeof e.name&&ia.hasOwnProperty(e.name)){var t=ia[e.name];"string"==typeof t&&(t={name:t}),(e=Ri(t,e)).name=t.name}else if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return l.resolveMode("application/xml");return"string"==typeof e?{name:e}:e||{name:"null"}},l.getMode=function(e,t){t=l.resolveMode(t);var n=ra[t.name];if(!n)return l.getMode(e,"text/plain");var r=n(e,t);if(oa.hasOwnProperty(t.name)){var i=oa[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r},l.defineMode("null",function(){return{token:function(e){e.skipToEnd()}}}),l.defineMIME("text/plain","null");var oa=l.modeExtensions={};l.extendMode=function(e,t){ji(t,oa.hasOwnProperty(e)?oa[e]:oa[e]={})},l.defineExtension=function(e,t){l.prototype[e]=t},l.defineDocExtension=function(e,t){_a.prototype[e]=t},l.defineOption=zn;var aa=[];l.defineInitHook=function(e){aa.push(e)};var sa=l.helpers={};l.registerHelper=function(e,t,n){sa.hasOwnProperty(e)||(sa[e]=l[e]={_global:[]}),sa[e][t]=n},l.registerGlobalHelper=function(e,t,n,r){l.registerHelper(e,t,r),sa[e]._global.push({pred:n,val:r})};var la=l.copyState=function(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n},ca=l.startState=function(e,t,n){return!e.startState||e.startState(t,n)};l.innerMode=function(e,t){for(;e.innerMode;){var n=e.innerMode(t);if(!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}};var ua=l.commands={selectAll:function(e){e.setSelection(Ho(e.firstLine(),0),Ho(e.lastLine()),ja)},singleSelection:function(e){e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ja)},killLine:function(n){Wn(n,function(e){if(e.empty()){var t=Qr(n.doc,e.head.line).text.length;return e.head.ch==t&&e.head.line<n.lastLine()?{from:e.head,to:Ho(e.head.line+1,0)}:{from:e.head,to:Ho(e.head.line,t)}}return{from:e.from(),to:e.to()}})},deleteLine:function(t){Wn(t,function(e){return{from:Ho(e.from().line,0),to:me(t.doc,Ho(e.to().line+1,0))}})},delLineLeft:function(e){Wn(e,function(e){return{from:Ho(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(n){Wn(n,function(e){var t=n.charCoords(e.head,"div").top+5;return{from:n.coordsChar({left:0,top:t},"div"),to:e.from()}})},delWrappedLineRight:function(r){Wn(r,function(e){var t=r.charCoords(e.head,"div").top+5,n=r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:t},"div");return{from:e.from(),to:n}})},undo:function(e){e.undo()},redo:function(e){e.redo()},undoSelection:function(e){e.undoSelection()},redoSelection:function(e){e.redoSelection()},goDocStart:function(e){e.extendSelection(Ho(e.firstLine(),0))},goDocEnd:function(e){e.extendSelection(Ho(e.lastLine()))},goLineStart:function(t){t.extendSelectionsBy(function(e){return oo(t,e.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){t.extendSelectionsBy(function(e){return so(t,e.head)},{origin:"+move",bias:1})},goLineEnd:function(t){t.extendSelectionsBy(function(e){return ao(t,e.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){n.extendSelectionsBy(function(e){var t=n.charCoords(e.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:t},"div")},Fa)},goLineLeft:function(n){n.extendSelectionsBy(function(e){var t=n.charCoords(e.head,"div").top+5;return n.coordsChar({left:0,top:t},"div")},Fa)},goLineLeftSmart:function(r){r.extendSelectionsBy(function(e){var t=r.charCoords(e.head,"div").top+5,n=r.coordsChar({left:0,top:t},"div");return n.ch<r.getLine(n.line).search(/\S/)?so(r,e.head):n},Fa)},goLineUp:function(e){e.moveV(-1,"line")},goLineDown:function(e){e.moveV(1,"line")},goPageUp:function(e){e.moveV(-1,"page")},goPageDown:function(e){e.moveV(1,"page")},goCharLeft:function(e){e.moveH(-1,"char")},goCharRight:function(e){e.moveH(1,"char")},goColumnLeft:function(e){e.moveH(-1,"column")},goColumnRight:function(e){e.moveH(1,"column")},goWordLeft:function(e){e.moveH(-1,"word")},goGroupRight:function(e){e.moveH(1,"group")},goGroupLeft:function(e){e.moveH(-1,"group")},goWordRight:function(e){e.moveH(1,"word")},delCharBefore:function(e){e.deleteH(-1,"char")},delCharAfter:function(e){e.deleteH(1,"char")},delWordBefore:function(e){e.deleteH(-1,"word")},delWordAfter:function(e){e.deleteH(1,"word")},delGroupBefore:function(e){e.deleteH(-1,"group")},delGroupAfter:function(e){e.deleteH(1,"group")},indentAuto:function(e){e.indentSelection("smart")},indentMore:function(e){e.indentSelection("add")},indentLess:function(e){e.indentSelection("subtract")},insertTab:function(e){e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=qa(e.getLine(o.line),o.ch,r);t.push(Ii(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(a){At(a,function(){for(var e=a.listSelections(),t=[],n=0;n<e.length;n++){var r=e[n].head,i=Qr(a.doc,r.line).text;if(i)if(r.ch==i.length&&(r=new Ho(r.line,r.ch-1)),0<r.ch)r=new Ho(r.line,r.ch+1),a.replaceRange(i.charAt(r.ch-1)+i.charAt(r.ch-2),Ho(r.line,r.ch-2),r,"+transpose");else if(r.line>a.doc.first){var o=Qr(a.doc,r.line-1).text;o&&a.replaceRange(i.charAt(0)+a.doc.lineSeparator()+o.charAt(o.length-1),Ho(r.line-1,o.length-1),Ho(r.line,1),"+transpose")}t.push(new de(r,r))}a.setSelections(t)})},newlineAndIndent:function(r){At(r,function(){for(var e=r.listSelections().length,t=0;t<e;t++){var n=r.listSelections()[t];r.replaceRange(r.doc.lineSeparator(),n.anchor,n.head,"+input"),r.indentLine(n.from().line+1,null,!0)}Hn(r)})},openLine:function(e){e.replaceSelection("\n","start")},toggleOverwrite:function(e){e.toggleOverwrite()}},da=l.keyMap={};da.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"},da.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",
18"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"},da.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"},da.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"]},da["default"]=Lo?da.macDefault:da.pcDefault,l.normalizeKeyMap=function(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 i=Mi(n.split(" "),Vn),o=0;o<i.length;o++){var a,s;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+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};var ha=l.lookupKey=function(e,t,n,r){var i=(t=Gn(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return ha(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=ha(e,t.fallthrough[o],n,r);if(a)return a}}},fa=l.isModifierKey=function(e){var t="string"==typeof e?e:as[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t},pa=l.keyName=function(e,t){if(_o&&34==e.keyCode&&e["char"])return!1;var n=as[e.keyCode],r=n;return null!=r&&!e.altGraphKey&&(e.altKey&&"Alt"!=n&&(r="Alt-"+r),(Mo?e.metaKey:e.ctrlKey)&&"Ctrl"!=n&&(r="Ctrl-"+r),(Mo?e.ctrlKey:e.metaKey)&&"Cmd"!=n&&(r="Cmd-"+r),!t&&e.shiftKey&&"Shift"!=n&&(r="Shift-"+r),r)};l.fromTextArea=function(t,e){function n(){t.value=s.getValue()}if((e=e?ji(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var r=zi();e.autofocus=r==t||null!=t.getAttribute("autofocus")&&r==document.body}if(t.form&&(La(t.form,"submit",n),!e.leaveSubmitMethodAlone)){var i=t.form,o=i.submit;try{var a=i.submit=function(){n(),i.submit=o,i.submit(),i.submit=a}}catch(d){}}e.finishInit=function(e){e.save=n,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,n(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(Na(t.form,"submit",n),"function"==typeof t.form.submit&&(t.form.submit=o))}},t.style.display="none";var s=l(function(e){t.parentNode.insertBefore(e,t.nextSibling)},e);return s};var ma=l.StringStream=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};ma.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){return this.pos<this.string.length?this.string.charAt(this.pos++):void 0},eat:function(e){var t=this.string.charAt(this.pos);if("string"==typeof e)var n=t==e;else n=t&&(e.test?e.test(t):e(t));return n?(++this.pos,t):void 0},eatWhile:function(e){for(var t=this.pos;this.eat(e););return this.pos>t},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);return-1<t?(this.pos=t,!0):void 0},backUp:function(e){this.pos-=e},column:function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=qa(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?qa(this.string,this.lineStart,this.tabSize):0)},indentation:function(){return qa(this.string,null,this.tabSize)-(this.lineStart?qa(this.string,this.lineStart,this.tabSize):0)},match:function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&0<r.index?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};return i(this.string.substr(this.pos,e.length))==i(e)?(!1!==t&&(this.pos+=e.length),!0):void 0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};var ga=0,va=l.TextMarker=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ga};Ai(va),va.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&wt(e),Ei(this,"clear")){var n=this.find();n&&_i(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=er(a.markedSpans,this);e&&!this.collapsed?Rt(e,ti(a),"text"):e&&(null!=s.to&&(i=ti(a)),null!=s.from&&(r=ti(a))),a.markedSpans=tr(a.markedSpans,s),null==s.from&&this.collapsed&&!Sr(this.doc,a)&&e&&ei(a,yt(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(o=0;o<this.lines.length;++o){var l=yr(this.lines[o]),c=p(l);c>e.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Pt(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ae(e.doc)),e&&_i(e,"markerCleared",e,this),t&&St(e),this.parent&&this.parent.clear()}},va.prototype.find=function(e,t){null==e&&"bookmark"==this.type&&(e=1);for(var n,r,i=0;i<this.lines.length;++i){var o=this.lines[i],a=er(o.markedSpans,this);if(null!=a.from&&(n=Ho(t?o:ti(o),a.from),-1==e))return n;if(null!=a.to&&(r=Ho(t?o:ti(o),a.to),1==e))return r}return n&&{from:n,to:r}},va.prototype.changed=function(){var o=this.find(-1,!0),a=this,s=this.doc.cm;o&&s&&At(s,function(){var e=o.line,t=ti(o.line),n=Ze(s,t);if(n&&(ot(n),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!Sr(a.doc,e)&&null!=a.height){var r=a.height;a.height=null;var i=Tr(a)-r;i&&ei(e,e.height+i)}})},va.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=Oi(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},va.prototype.detachLine=function(e){if(this.lines.splice(Oi(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}};ga=0;var ya=l.SharedTextMarker=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};Ai(ya),ya.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();_i(this,"clear")}},ya.prototype.find=function(e,t){return this.primary.find(e,t)};var ba=l.LineWidget=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};Ai(ba),ba.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=ti(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Tr(this);ei(n,Math.max(0,n.height-o)),e&&At(e,function(){_r(e,n,-o),Rt(e,r,"widget")})}},ba.prototype.changed=function(){var e=this.height,t=this.doc.cm,n=this.line;this.height=null;var r=Tr(this)-e;r&&(ei(n,n.height+r),t&&At(t,function(){t.curOp.forceUpdate=!0,_r(t,n,r)}))};var wa=l.Line=function(e,t,n){this.text=e,ur(this,t),this.height=n?n(this):1};Ai(wa),wa.prototype.lineNo=function(){return ti(this)};var xa={},Sa={};Gr.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Er(i),_i(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},Yr.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(1<this.children.length||!(this.children[0]instanceof Gr))){var s=[];this.collapse(s),this.children=[new Gr(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&50<i.lines.length){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new Gr(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Yr(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=Oi(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new Yr(e.children);(r.parent=e).children=[r,t],e=r}t.parent=e.parent}while(10<e.children.length);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var Ca=0,_a=l.Doc=function(e,t,n,r){if(!(this instanceof _a))return new _a(e,t,n,r);null==n&&(n=0),Yr.call(this,[new Gr([new wa("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.frontier=n;var i=Ho(n,0);this.sel=fe(i),this.history=new oi(null),this.id=++Ca,this.modeOption=t,this.lineSep=r,this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Vr(this,{from:i,to:i,text:e}),ke(this,fe(i),ja)};_a.prototype=Ri(Yr.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=Zr(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Nt(function(e){var t=Ho(this.first,0),n=this.first+this.size-1;kn(this,{from:t,to:Ho(n,Qr(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),ke(this,fe(t))}),replaceRange:function(e,t,n,r){Nn(this,e,t=me(this,t),n=n?me(this,n):t,r)},getRange:function(e,t,n){var r=Jr(this,me(this,e),me(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){return ve(this,e)?Qr(this,e):void 0},getLineNumber:function(e){return ti(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Qr(this,e)),yr(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return me(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:Nt(function(e,t,n){Ce(this,me(this,"number"==typeof e?Ho(e,t||0):e),null,n)}),setSelection:Nt(function(e,t,n){Ce(this,me(this,e),me(this,t||e),n)}),extendSelection:Nt(function(e,t,n){we(this,me(this,e),t&&me(this,t),n)}),extendSelections:Nt(function(e,t){xe(this,ye(this,e),t)}),extendSelectionsBy:Nt(function(e,t){xe(this,ye(this,Mi(this.sel.ranges,e)),t)}),setSelections:Nt(function(e,t,n){if(e.length){for(var r=0,i=[];r<e.length;r++)i[r]=new de(me(this,e[r].anchor),me(this,e[r].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),ke(this,he(i,t),n)}}),addSelection:Nt(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new de(me(this,e),me(this,t||e))),ke(this,he(r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Jr(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Jr(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Nt(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}var s=t&&"end"!=t&&_n(this,r,t);for(o=r.length-1;0<=o;o--)kn(this,r[o]);s?Te(this,s):this.cm&&Hn(this.cm)}),undo:Nt(function(){En(this,"undo")}),redo:Nt(function(){En(this,"redo")}),undoSelection:Nt(function(){En(this,"undo",!0)}),redoSelection:Nt(function(){En(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(r=0;r<e.undone.length;r++)e.undone[r].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new oi(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:gi(this.history.done),undone:gi(this.history.undone)}},setHistory:function(e){var t=this.history=new oi(this.history.maxGeneration);t.done=gi(e.done.slice(0),null,!0),t.undone=gi(e.undone.slice(0),null,!0)},addLineClass:Nt(function(e,n,r){return Bn(this,e,"gutter"==n?"gutter":"class",function(e){var t="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass";if(e[t]){if(Vi(r).test(e[t]))return!1;e[t]+=" "+r}else e[t]=r;return!0})}),removeLineClass:Nt(function(e,o,a){return Bn(this,e,"gutter"==o?"gutter":"class",function(e){var t="text"==o?"textClass":"background"==o?"bgClass":"gutter"==o?"gutterClass":"wrapClass",n=e[t];if(!n)return!1;if(null==a)e[t]=null;else{var r=n.match(Vi(a));if(!r)return!1;var i=r.index+r[0].length;e[t]=n.slice(0,r.index)+(r.index&&i!=n.length?" ":"")+n.slice(i)||null}return!0})}),addLineWidget:Nt(function(e,t,n){return kr(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Yn(this,me(this,e),me(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 Yn(this,e=me(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Qr(this,(e=me(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(i,o,a){i=me(this,i),o=me(this,o);var s=[],l=i.line;return this.iter(i.line,o.line+1,function(e){var t=e.markedSpans;if(t)for(var n=0;n<t.length;n++){var r=t[n];null!=r.to&&l==i.line&&i.ch>=r.to||null==r.from&&l!=i.line||null!=r.from&&l==o.line&&r.from>=o.ch||a&&!a(r.marker)||s.push(r.marker.parent||r.marker)}++l}),s},getAllMarks:function(){var r=[];return this.iter(function(e){var t=e.markedSpans;if(t)for(var n=0;n<t.length;++n)null!=t[n].from&&r.push(t[n].marker)}),r},posFromIndex:function(n){var r,i=this.first,o=this.lineSeparator().length;return this.iter(function(e){var t=e.text.length+o;return n<t?(r=n,!0):(n-=t,void++i)}),me(this,Ho(i,r))},indexFromPos:function(e){var t=(e=me(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(Zr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep);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(Zr(this,t,n),e.mode||this.modeOption,t,this.lineSep);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}],Qn(r,Kn(this)),r},unlinkDoc:function(e){if(e instanceof l&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Jn(Kn(this));break}}if(e.history==this.history){var n=[e.id];Xr(e,function(e){n.push(e.id)},!0),e.history=new oi(null),e.history.done=gi(this.history.done,n),e.history.undone=gi(this.history.undone,n)}},iterLinkedDocs:function(e){Xr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):ns(e)},lineSeparator:function(){return this.lineSep||"\n"}}),_a.prototype.eachLine=_a.prototype.iter;var Ta="iter insert remove copy getEditor constructor".split(" ");for(var ka in _a.prototype)_a.prototype.hasOwnProperty(ka)&&Oi(Ta,ka)<0&&(l.prototype[ka]=function(e){return function(){return e.apply(this.doc,arguments)}}(_a.prototype[ka]));Ai(_a);var Da=l.e_preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},Ea=l.e_stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},Aa=l.e_stop=function(e){Da(e),Ea(e)},La=l.on=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]=[])).push(n)}},Ia=[],Na=l.off=function(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else for(var r=Ci(e,t,!1),i=0;i<r.length;++i)if(r[i]==n){r.splice(i,1);break}},Oa=l.signal=function(e,t){var n=Ci(e,t,!0);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)},Ma=null,Pa=30,Ra=l.Pass={toString:function(){return"CodeMirror.Pass"}},ja={scroll:!1},Ha={origin:"*mouse"},Fa={origin:"+move"};
18Li.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var qa=l.countColumn=function(e,t,n,r,i){null==t&&(-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length));for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||t<=s)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}},Ba=l.findColumn=function(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||t<=i+a)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,t<=(i+=n-i%n))return r}},Wa=[""],$a=function(e){e.select()};Eo?$a=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:bo&&($a=function(e){try{e.select()}catch(c){}});var Ua,za=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Va=l.isWordChar=function(e){return/\w/.test(e)||"\x80"<e&&(e.toUpperCase()!=e.toLowerCase()||za.test(e))},Ga=/[\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]/;Ua=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Ya=l.contains=function(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)};bo&&wo<11&&(zi=function(){try{return document.activeElement}catch(l){return document.body}});var Xa,Ka,Qa,Ja=l.rmClass=function(e,t){var n=e.className,r=Vi(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}},Za=l.addClass=function(e,t){var n=e.className;Vi(t).test(n)||(e.className+=(n?" ":"")+t)},es=!1,ts=function(){if(bo&&wo<9)return!1;var e=Wi("div");return"draggable"in e||"dragDrop"in e}(),ns=l.splitLines=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},rs=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(c){return!1}}:function(e){try{var t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},is="oncopy"in(Qa=Wi("div"))||(Qa.setAttribute("oncopy","return;"),"function"==typeof Qa.oncopy),os=null,as=l.keyNames={3:"Enter",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:"/",127:"Delete",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"};!function(){for(var e=0;e<10;e++)as[e+48]=as[e+96]=String(e);for(e=65;e<=90;e++)as[e]=String.fromCharCode(e);for(e=1;e<=12;e++)as[e+111]=as[e+63235]="F"+e}();var ss,ls=function(){function y(e){return e<=247?t.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1773?n.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function b(e,t,n){this.level=e,this.from=t,this.to=n}var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm",w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,x=/[stwN]/,S=/[LRr]/,C=/[Lb1n]/,_=/[1n]/,T="L";return function(e){if(!w.test(e))return!1;for(var t=e.length,n=[],r=0;r<t;++r)n.push(c=y(e.charCodeAt(r)));r=0;for(var i=T;r<t;++r){"m"==(c=n[r])?n[r]=i:i=c}r=0;for(var o=T;r<t;++r){"1"==(c=n[r])&&"r"==o?n[r]="n":S.test(c)&&("r"==(o=c)&&(n[r]="R"))}for(r=1,i=n[0];r<t-1;++r){"+"==(c=n[r])&&"1"==i&&"1"==n[r+1]?n[r]="1":","!=c||i!=n[r+1]||"1"!=i&&"n"!=i||(n[r]=i),i=c}for(r=0;r<t;++r){if(","==(c=n[r]))n[r]="N";else if("%"==c){for(var a=r+1;a<t&&"%"==n[a];++a);for(var s=r&&"!"==n[r-1]||a<t&&"1"==n[a]?"1":"N",l=r;l<a;++l)n[l]=s;r=a-1}
18}for(r=0,o=T;r<t;++r){var c=n[r];"L"==o&&"1"==c?n[r]="L":S.test(c)&&(o=c)}for(r=0;r<t;++r)if(x.test(n[r])){for(a=r+1;a<t&&x.test(n[a]);++a);var u="L"==(r?n[r-1]:T),d="L"==(a<t?n[a]:T);for(s=u||d?"L":"R",l=r;l<a;++l)n[l]=s;r=a-1}var h,f=[];for(r=0;r<t;)if(C.test(n[r])){var p=r;for(++r;r<t&&C.test(n[r]);++r);f.push(new b(0,p,r))}else{var m=r,g=f.length;for(++r;r<t&&"L"!=n[r];++r);for(l=m;l<r;)if(_.test(n[l])){m<l&&f.splice(g,0,new b(1,m,l));var v=l;for(++l;l<r&&_.test(n[l]);++l);f.splice(g,0,new b(2,v,l)),m=l}else++l;m<r&&f.splice(g,0,new b(1,m,r))}return 1==f[0].level&&(h=e.match(/^\s+/))&&(f[0].from=h[0].length,f.unshift(new b(0,0,h[0].length))),1==Ni(f).level&&(h=e.match(/\s+$/))&&(Ni(f).to-=h[0].length,f.push(new b(0,t-h[0].length,t))),2==f[0].level&&f.unshift(new b(1,f[0].to,f[0].to)),f[0].level!=Ni(f).level&&f.push(new b(f[0].level,t,t)),f}}();return l.version="5.15.2",l})},{}],11:[function(e,t,n){var r;r=function(s){"use strict";var l=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))/i;s.defineMode("gfm",function(e,i){function t(e){return e.code=!1,null}var o=0,n={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,t){if(t.combineTokens=null,t.codeBlock)return e.match(/^```+/)?t.codeBlock=!1:e.skipToEnd(),null;if(e.sol()&&(t.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),t.codeBlock=!0,null;if("`"===e.peek()){e.next();var n=e.pos;e.eatWhile("`");var r=1+e.pos-n;return t.code?r===o&&(t.code=!1):(o=r,t.code=!0),null}if(t.code)return e.next(),null;if(e.eatSpace())return t.ateSpace=!0,null;if((e.sol()||t.ateSpace)&&(t.ateSpace=!1)!==i.gitHubSpice){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/))return t.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return t.combineTokens=!0,"link"}return e.match(l)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(t.combineTokens=!0,"link"):(e.next(),null)},blankLine:t},r={underscoresBreakWords:!1,taskLists:!0,fencedCodeBlocks:"```",strikethrough:!0};for(var a in i)r[a]=i[a];return r.name="markdown",s.overlayMode(s.getMode(e,r),n)},"markdown"),s.defineMIME("text/x-gfm","gfm")},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror"),e("../markdown/markdown"),e("../../addon/mode/overlay")):"function"==typeof s&&s.amd?s(["../../lib/codemirror","../markdown/markdown","../../addon/mode/overlay"],r):r(CodeMirror)},{"../../addon/mode/overlay":8,"../../lib/codemirror":10,"../markdown/markdown":12}],12:[function(e,t,n){var r;r=function(M){"use strict";M.defineMode("markdown",function(r,v){function s(e){if(M.findModeByName){var t=M.findModeByName(e);t&&(e=t.mime||t.mimes[0])}var n=M.getMode(r,e);return"null"==n.name?null:n}function l(e,t,n){return t.f=t.inline=n,n(e,t)}function y(e,t,n){return t.f=t.block=n,n(e,t)}function c(e){return!e||!/\S/.test(e.string)}function i(e){return e.linkTitle=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,m&&e.f==b&&(e.f=a,e.block=o),e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine=null}function o(e,t){var n=e.sol(),r=!1!==t.list,i=t.indentedCode;t.indentedCode=!1,r&&(0<=t.indentationDiff?(t.indentationDiff<4&&(t.indentation-=t.indentationDiff),t.list=null):0<t.indentation?t.list=null:t.list=!1);var o=null;if(4<=t.indentationDiff)return e.skipToEnd(),i||c(t.prevLine)?(t.indentation-=4,t.indentedCode=!0,_.code):null;if(e.eatSpace())return null;if((o=e.match(E))&&o[1].length<=6)return t.header=o[1].length,v.highlightFormatting&&(t.formatting="header"),t.f=t.inline,w(t);if(!(c(t.prevLine)||t.quote||r||i)&&(o=e.match(A)))return t.header="="==o[0].charAt(0)?1:2,v.highlightFormatting&&(t.formatting="header"),t.f=t.inline,w(t);if(e.eat(">"))return t.quote=n?1:t.quote+1,v.highlightFormatting&&(t.formatting="quote"),e.eatSpace(),w(t);if("["===e.peek())return l(e,t,h);if(e.match(g,!0))return t.hr=!0,_.hr;if(!c(t.prevLine)&&!r||!e.match(T,!1)&&!e.match(k,!1))return v.fencedCodeBlocks&&(o=e.match(I,!0))?(t.fencedChars=o[1],t.localMode=s(o[2]),t.localMode&&(t.localState=M.startState(t.localMode)),t.f=t.block=u,v.highlightFormatting&&(t.formatting="code-block"),t.code=-1,w(t)):l(e,t,t.inline);var a=null;for(e.match(T,!0)?a="ul":(e.match(k,!0),a="ol"),t.indentation=e.column()+e.current().length,t.list=!0;t.listStack&&e.column()<t.listStack[t.listStack.length-1];)t.listStack.pop();return t.listStack.push(t.indentation),v.taskLists&&e.match(D,!1)&&(t.taskList=!0),t.f=t.inline,v.highlightFormatting&&(t.formatting=["list","list-"+a]),w(t)}function b(e,t){var n=C.token(e,t.htmlState);if(!m){var r=M.innerMode(C,t.htmlState);("xml"==r.mode.name&&null===r.state.tagStart&&!r.state.context&&r.state.tokenize.
18isInText||t.md_inside&&-1<e.current().indexOf(">"))&&(t.f=a,t.block=o,t.htmlState=null)}return n}function u(e,t){return t.fencedChars&&e.match(t.fencedChars,!1)?(t.localMode=t.localState=null,t.f=t.block=n,null):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),_.code)}function n(e,t){e.match(t.fencedChars),t.block=o,t.f=a,t.fencedChars=null,v.highlightFormatting&&(t.formatting="code-block"),t.code=1;var n=w(t);return t.code=0,n}function w(e){var t=[];if(e.formatting){t.push(_.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var n=0;n<e.formatting.length;n++)t.push(_.formatting+"-"+e.formatting[n]),
19"header"===e.formatting[n]&&t.push(_.formatting+"-"+e.formatting[n]+"-"+e.header),"quote"===e.formatting[n]&&(!v.maxBlockquoteDepth||v.maxBlockquoteDepth>=e.quote?t.push(_.formatting+"-"+e.formatting[n]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(_.linkHref,"url"):(e.strong&&t.push(_.strong),e.em&&t.push(_.em),e.strikethrough&&t.push(_.strikethrough),e.linkText&&t.push(_.linkText),e.code&&t.push(_.code)),e.header&&t.push(_.header,_.header+"-"+e.header),e.quote&&(t.push(_.quote),!v.maxBlockquoteDepth||v.maxBlockquoteDepth>=e.quote?t.push(_.quote+"-"+e.quote):t.push(_.quote+"-"+v.maxBlockquoteDepth)),!1!==e.list){var r=(e.listStack.length-1)%3;r?1===r?t.push(_.list2):t.push(_.list3):t.push(_.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function e(e,t){return e.match(L,!0)?w(t):void 0}function a(e,t){var n=t.text(e,t);if(void 0!==n)return n;if(t.list)return t.list=null,w(t);if(t.taskList)return"x"!==e.match(D,!0)[1]?t.taskOpen=!0:t.taskClosed=!0,v.highlightFormatting&&(t.formatting="task"),t.taskList=!1,w(t);if(t.taskOpen=!1,t.taskClosed=!1,t.header&&e.match(/^#+$/,!0))return v.highlightFormatting&&(t.formatting="header"),w(t);var r=e.sol(),i=e.next();if(t.linkTitle){t.linkTitle=!1;var o=i;"("===i&&(o=")");var a="^\\s*(?:[^"+(o=(o+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+o;if(e.match(new RegExp(a),!0))return _.linkHref}if("`"===i){var s=t.formatting;v.highlightFormatting&&(t.formatting="code"),e.eatWhile("`");var l=e.current().length;if(0==t.code)return t.code=l,w(t);if(l!=t.code)return t.formatting=s,w(t);var c=w(t);return t.code=0,c}if(t.code)return w(t);if("\\"===i&&(e.next(),v.highlightFormatting)){var u=w(t),d=_.formatting+"-escape";return u?u+" "+d:d}if("!"===i&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return e.match(/\[[^\]]*\]/),t.inline=t.f=S,_.image;if("["===i&&e.match(/[^\]]*\](\(.*\)| ?\[.*?\])/,!1))return t.linkText=!0,v.highlightFormatting&&(t.formatting="link"),w(t);if("]"===i&&t.linkText&&e.match(/\(.*?\)| ?\[.*?\]/,!1)){v.highlightFormatting&&(t.formatting="link");var u=w(t);return t.linkText=!1,t.inline=t.f=S,u}if("<"===i&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return t.f=t.inline=x,v.highlightFormatting&&(t.formatting="link"),(u=w(t))?u+=" ":u="",u+_.linkInline;if("<"===i&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return t.f=t.inline=x,v.highlightFormatting&&(t.formatting="link"),(u=w(t))?u+=" ":u="",u+_.linkEmail;if("<"===i&&e.match(/^(!--|\w)/,!1)){var h=e.string.indexOf(">",e.pos);if(-1!=h){var f=e.string.substring(e.start,h);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(f)&&(t.md_inside=!0)}return e.backUp(1),t.htmlState=M.startState(C),y(e,t,b)}if("<"===i&&e.match(/^\/\w*?>/))return t.md_inside=!1,"tag";var p=!1;if(!v.underscoresBreakWords&&"_"===i&&"_"!==e.peek()&&e.match(/(\w)/,!1)){var m=e.pos-2;if(0<=m){var g=e.string.charAt(m);"_"!==g&&g.match(/(\w)/,!1)&&(p=!0)}}if("*"===i||"_"===i&&!p)if(r&&" "===e.peek());else{if(t.strong===i&&e.eat(i)){v.highlightFormatting&&(t.formatting="strong");c=w(t);return t.strong=!1,c}if(!t.strong&&e.eat(i))return t.strong=i,v.highlightFormatting&&(t.formatting="strong"),w(t);if(t.em===i){v.highlightFormatting&&(t.formatting="em");c=w(t);return t.em=!1,c}if(!t.em)return t.em=i,v.highlightFormatting&&(t.formatting="em"),w(t)}else if(" "===i&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return w(t);e.backUp(1)}
19if(v.strikethrough)if("~"===i&&e.eatWhile(i)){if(t.strikethrough){v.highlightFormatting&&(t.formatting="strikethrough");c=w(t);return t.strikethrough=!1,c}if(e.match(/^[^\s]/,!1))return t.strikethrough=!0,v.highlightFormatting&&(t.formatting="strikethrough"),w(t)}else if(" "===i&&e.match(/^~~/,!0)){if(" "===e.peek())return w(t);e.backUp(2)}return" "===i&&(e.match(/ +$/,!1)?t.trailingSpace++:t.trailingSpace&&(t.trailingSpaceNewLine=!0)),w(t)}function x(e,t){if(">"!==e.next())return e.match(/^[^>]+/,!0),_.linkInline;t.f=t.inline=a,v.highlightFormatting&&(t.formatting="link");var n=w(t);return n?n+=" ":n="",n+_.linkInline}function S(e,t){if(e.eatSpace())return null;var n=e.next();return"("===n||"["===n?(t.f=t.inline=d("("===n?")":"]",0),v.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,w(t)):"error"}function d(r){return function(e,t){if(e.next()!==r)return e.match(N[r]),t.linkHref=!0,w(t);t.f=t.inline=a,v.highlightFormatting&&(t.formatting="link-string");var n=w(t);return t.linkHref=!1,n}}function h(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=f,e.next(),v.highlightFormatting&&(t.formatting="link"),t.linkText=!0,w(t)):l(e,t,a)}function f(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=p,v.highlightFormatting&&(t.formatting="link");var n=w(t);return t.linkText=!1,n}return e.match(/^([^\]\\]|\\.)+/,!0),_.linkText}function p(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=a,_.linkHref+" url")}var C=M.getMode(r,"text/html"),m="null"==C.name;void 0===v.highlightFormatting&&(v.highlightFormatting=!1),void 0===v.maxBlockquoteDepth&&(v.maxBlockquoteDepth=0),void 0===v.underscoresBreakWords&&(v.underscoresBreakWords=!0),void 0===v.taskLists&&(v.taskLists=!1),void 0===v.strikethrough&&(v.strikethrough=!1),void 0===v.tokenTypeOverrides&&(v.tokenTypeOverrides={});var _={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"tag",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough"};for(var t in _)_.hasOwnProperty(t)&&v.tokenTypeOverrides[t]&&(_[t]=v.tokenTypeOverrides[t]);var g=/^([*\-_])(?:\s*\1){2,}\s*$/,T=/^[*\-+]\s+/,k=/^[0-9]+([.)])\s+/,D=/^\[(x| )\](?=\s)/,E=v.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,A=/^ *(?:\={1,}|-{1,})\s*$/,L=/^[^#!\[\]*_\\<>` "'(~]+/,I=new RegExp("^("+(!0===v.fencedCodeBlocks?"~~~+|```+":v.fencedCodeBlocks)+")[ \\t]*([\\w+#-]*)"),N={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\\]]|\\.)*\])*?(?=\])/},O={startState:function(){return{f:o,prevLine:null,thisLine:null,block:o,htmlState:null,indentation:0,inline:a,text:e,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,fencedChars:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&M.copyState(C,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?M.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkTitle:e.linkTitle,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,header:e.header,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedChars:e.fencedChars}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine){var n=t.header||t.hr;if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0)||n){if(i(t),!n)return null;t.prevLine=null}t.prevLine=t.thisLine,t.thisLine=e,t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.f=t.block;var r=e.match(/^\s*/,!0)[0].replace(/\t/g,"    ").length;if(t.indentationDiff=Math.min(r-t.indentation,4),t.indentation=t.indentation+t.indentationDiff,0<r)return null}return t.f(e,t)},innerMode:function(e){return e.block==b?{state:e.htmlState,mode:C}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:O}},blankLine:i,getType:w,fold:"markdown"};return O},"xml"),M.defineMIME("text/x-markdown","markdown")},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror"),e("../xml/xml"),e("../meta")):"function"==typeof s&&s.amd?s(["../../lib/codemirror","../xml/xml","../meta"],r):r(CodeMirror)},{"../../lib/codemirror":10,"../meta":13,"../xml/xml":14}],13:[function(e,t,n){var r;r=function(o){"use strict";o
vendor: 10,549 bytes, line 19
19.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["pgp"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mime:"text/x-coffeescript",mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"]},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Jade",mime:"text/x-jade",mode:"jade",ext:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mime:"text/n-triples",mode:"ntriples",ext:["nt"]},{name:"Objective C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mime:"application/x-httpd-php",mode:"php",ext:["php","php3","php4","php5","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mime:"text/x-sh",mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mime:"text/x-yaml",mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var 
19e=0;e<o.modeInfo.length;e++){var t=o.modeInfo[e];t.mimes&&(t.mime=t.mimes[0])}o.findModeByMIME=function(e){e=e.toLowerCase();for(var t=0;t<o.modeInfo.length;t++){var n=o.modeInfo[t];if(n.mime==e)return n;if(n.mimes)for(var r=0;r<n.mimes.length;r++)if(n.mimes[r]==e)return n}},o.findModeByExtension=function(e){for(var t=0;t<o.modeInfo.length;t++){var n=o.modeInfo[t];if(n.ext)for(var r=0;r<n.ext.length;r++)if(n.ext[r]==e)return n}},o.findModeByFileName=function(e){for(var t=0;t<o.modeInfo.length;t++){var n=o.modeInfo[t];if(n.file&&n.file.test(e))return n}var r=e.lastIndexOf("."),i=-1<r&&e.substring(r+1,e.length);return i?o.findModeByExtension(i):void 0},o.findModeByName=function(e){e=e.toLowerCase();for(var t=0;t<o.modeInfo.length;t++){var n=o.modeInfo[t];if(n.name.toLowerCase()==e)return n;if(n.alias)for(var r=0;r<n.alias.length;r++)if(n.alias[r].toLowerCase()==e)return n}}},"object"==typeof n&&"object"==typeof t?r(e("../lib/codemirror")):"function"==typeof s&&s.amd?s(["../lib/codemirror"],r):r(CodeMirror)},{"../lib/codemirror":10}],14:[function(e,t,n){var r;r=function(T){"use strict";var k={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},D={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1};T.defineMode("xml",function(e,t){function a(t,n){function e(e){return(n.tokenize=e)(t,n)}var r=t.next();return"<"==r?t.eat("!")?t.eat("[")?t.match("CDATA[")?e(o("atom","]]>")):null:t.match("--")?e(o("comment","-->")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),e(l(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),n.tokenize=o("meta","?>"),"meta"):(w=t.eat("/")?"closeTag":"openTag",n.tokenize=s,"tag bracket"):"&"!=r?(t.eatWhile(/[^&<]/),null):(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error"}function s(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=a,w=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return w="equals",null;if("<"!=n)return/[\'\"]/.test(n)?(t.tokenize=i(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word");t.tokenize=a,t.state=h,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}function i(n){var e=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=s;break}return"string"};return e.isInAttribute=!0,e}function o(n,r){return function(e,t){for(;!e.eol();){if(e.match(r)){t.tokenize=a;break}e.next()}return n}}function l(r){return function(e,t){for(var n;null!=(n=e.next());){if("<"==n)return t.tokenize=l(r+1),t.tokenize(e,t);if(">"==n){if(1!=r)return t.tokenize=l(r-1),t.tokenize(e,t);t.tokenize=a;break}}return"meta"}}function c(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(C.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function u(e){e.context&&(e.context=e.context.prev)}function d(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!C.contextGrabbers.hasOwnProperty(n)||!C.contextGrabbers[n].hasOwnProperty(t))return;u(e)}}function h(e,t,n){return"openTag"==e?(n.tagStart=t.column(),r):"closeTag"==e?f:h}function r(e,t,n){return"word"==e?(n.tagName=t.current(),x="tag",g):(x="error",r)}function f(e,t,n){if("word"!=e)return x="error",m;var r=t.current();return n.context&&n.context.tagName!=r&&C.implicitlyClosed.hasOwnProperty(n.context.tagName)&&u(n),n.context&&n.context.tagName==r||!1===C.matchClosing?(x="tag",p):(x="tag error",m)}function p(e,t,n){return"endTag"!=e?(x="error",p):(u(n),h)}function m(e,t,n){return x="error",p(e,t,n)}function g(e,t,n){if("word"==e)return x="attribute",v;if("endTag"!=e&&"selfcloseTag"!=e)return x="error",g;var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||C.autoSelfClosers.hasOwnProperty(r)?d(n,r):(d(n,r),n.context=new c(n,r,i==n.indented)),h}function v(e,t,n){return"equals"==e?y:(C.allowMissing||(x="error"),g(e,t,n))}function y(e,t,n){return"string"==e?b:"word"==e&&C.allowUnquoted?(x="string",g):(x="error",g(e,t,n))}function b(e,t,n){return"string"==e?b:g(e,t,n)}var w,x,S=e.indentUnit,C={},n=t.htmlMode?k:D;for(var _ in n)C[_]=n[_];for(var _ in t)C[_]=t[_];return a.isInText=!0,{startState:function(e){var t={tokenize:a,state:h,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;w=null;var n=t.tokenize(e,t);return(n||w)&&"comment"!=n&&(x=null,t.state=t.state(w||n,e,t),x&&(n="error"==x?n+" error":x)),n},indent:function(e,t,n){var r=e.context;
19if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+S;if(r&&r.noIndent)return T.Pass;if(e.tokenize!=s&&e.tokenize!=a)return n?n.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==C.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+S*(C.multilineTagIndentFactor||1);if(C.alignCDATA&&/<!\[CDATA\[/.test(t))return 0;var i=t&&/^<(\/)?([\w_:\.-]*)/.exec(t);if(i&&i[1])for(;r;){if(r.tagName==i[2]){r=r.prev;break}if(!C.implicitlyClosed.hasOwnProperty(r.tagName))break;r=r.prev}else if(i)for(;r;){var o=C.contextGrabbers[r.tagName];if(!o||!o.hasOwnProperty(i[2]))break;r=r.prev}for(;r&&r.prev&&!r.startOfLine;)r=r.prev;return r?r.indent+S:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:C.htmlMode?"html":"xml",helperType:C.htmlMode?"html":"xml",skipAttribute:function(e){e.state==y&&(e.state=g)}}}),T.defineMIME("text/xml","xml"),T.defineMIME("application/xml","xml"),T.mimeModes.hasOwnProperty("text/html")||T.defineMIME("text/html",{name:"xml",htmlMode:!0})},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror")):"function"==typeof s&&s.amd?s(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":10}],15:[function(e,t,n){n.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;0<u;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;0<u;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+d?h/l:h*Math.pow(2,1-d))*l&&(a++,l/=2),u<=a+d?(s=0,a=u):1<=a+d?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));8<=i;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;0<c;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*m}},{}],16:[function(e,t){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],17:[function(e,t,i){(function(e){(function(){function l(e){this.tokens=[],this.tokens.links={},this.options=e||f.defaults,this.rules=p.normal,this.options.gfm&&(this.options.tables?this.rules=p.tables:this.rules=p.gfm)}function o(e,t){if(this.options=t||f.defaults,this.links=e,this.rules=r.normal,this.renderer=this.options.renderer||new n,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=r.breaks:this.rules=r.gfm:this.options.pedantic&&(this.rules=r.pedantic)}function n(e){this.options=e||{}}function c(e){this.tokens=[],this.token=null,this.options=e||f.defaults,this.options.renderer=this.options.renderer||new n,this.renderer=this.options.renderer,this.renderer.options=this.options}function u(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function a(e){return e.replace(/&([#\w]+);/g,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function e(n,r){return n=n.source,r=r||"",function i(e,t){return e?(t=(t=t.source||t).replace(/(^|[^\[])\^/g,"$1"),n=n.replace(e,t),i):new RegExp(n,r)}}function d(){}function h(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function f(e,n,r){if(r||"function"==typeof n){r||(r=n,n=null);var i,o,a=(n=h({},f.defaults,n||{})).highlight,t=0;try{i=l.lex(e,n)}catch(d){return r(d)}o=i.length;var s=function(e){if(e)return n.highlight=a,r(e);var t;try{t=c.parse(i,n)}catch(o){e=o}return n.highlight=a,e?r(e):r(null,t)};if(!a||a.length<3)return s();if(delete n.highlight,!o)return s();for(;t<i.length;t++)!function(n){"code"!==n.type?--o||s():a(n.text,n.lang,function(e,t){return e?s(e):null==t||t===n.text?--o||s():(n.text=t,n.escaped=!0,void(--o||s()))})}(i[t])}else try{return n&&(n=h({},f.defaults,n)),c.parse(l.lex(e,n),n)}catch(d){if(d.message+="\nPlease report this to https://github.com/chjj/marked.",(n||f.defaults).silent)return"<p>An error occured:</p><pre>"+u(d.message+"",!0)+"</pre>";throw d}}var p={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:d,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:d,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:d,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?
vendor: 2,394 bytes, line 19
19:\n(?!\1bull )[^\n]*)*/};p.item=e(p.item,"gm")(/bull/g,p.bullet)(),p.list=e(p.list)(/bull/g,p.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+p.def.source+")")(),p.blockquote=e(p.blockquote)("def",p.def)(),p._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",p.html=e(p.html)("comment",/<!--[\s\S]*?-->/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,p._tag)(),p.paragraph=e(p.paragraph)("hr",p.hr)("heading",p.heading)("lheading",p.lheading)("blockquote",p.blockquote)("tag","<"+p._tag)("def",p.def)(),p.normal=h({},p),p.gfm=h({},p.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),p.gfm.paragraph=e(p.paragraph)("(?!","(?!"+p.gfm.fences.source.replace("\\1","\\2")+"|"+p.list.source.replace("\\1","\\3")+"|")(),p.tables=h({},p.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),l.rules=p,l.lex=function(e,t){return new l(t).lex(e)},l.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g,"    ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},l.prototype.token=function(e,t,n){var r,i,o,a,s,l,c,u,d;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),1<o[0].length&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},u=0;u<l.align.length;u++)/^ *-+: *$/.test(l.align[u])?l.align[u]="right":/^ *:-+: *$/.test(l.align[u])?l.align[u]="center":/^ *:-+ *$/.test(l.align[u])?l.align[u]="left":l.align[u]=null;for(u=0;
19u<l.cells.length;u++)l.cells[u]=l.cells[u].split(/ *\| */);this.tokens.push(l)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:1<a.length}),r=!1,d=(o=o[0].match(this.rules.item)).length,u=0;u<d;u++)c=(l=o[u]).length,~(l=l.replace(/^ *([*+-]|\d+\.) +/,"")).indexOf("\n ")&&(c-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+c+"}","gm"),"")),this.options.smartLists&&u!==d-1&&(a===(s=p.bullet.exec(o[u+1])[0])||1<a.length&&1<s.length||(
20e=o.slice(u+1).join("\n")+e,u=d-1)),i=r||/\n\n(?!\s*$)/.test(l),u!==d-1&&(r="\n"===l.charAt(l.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(l,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(!n&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},u=0;u<l.align.length;u++)/^ *-+: *$/.test(l.align[u])?l.align[u]="right":/^ *:-+: *$/.test(l.align[u])?l.align[u]="center":/^ *:-+ *$/.test(l.align[u])?l.align[u]="left":l.align[u]=null;for(u=0;
vendor: 6,615 bytes, line 20
20u<l.cells.length;u++)l.cells[u]=l.cells[u].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(l)}else if(t&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var r={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:d,tag:/^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:d,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/,_inside:/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,_href:/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/};r.link=e(r.link)("inside",r._inside)("href",r._href)(),r.reflink=e(r.reflink)("inside",r._inside)(),r.normal=h({},r),r.pedantic=h({},r.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),r.gfm=h({},r.normal,{escape:e(r.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:e(r.text)("]|","~]|")("|","|https?://|")()}),r.breaks=h({},r.gfm,{br:e(r.br)("{2,}","*")(),text:e(r.gfm.text)("{2,}","*")()}),o.rules=r,o.output=function(e,t,n){return new o(t,n).output(e)},o.prototype.output=function(e){for(var t,n,r,i,o="";e;)if(i=this.rules.escape.exec(e))e=e.substring(i[0].length),o+=i[1];else if(i=this.rules.autolink.exec(e))e=e.substring(i[0].length),"@"===i[2]?(n=":"===i[1].charAt(6)?this.mangle(i[1].substring(7)):this.mangle(i[1]),r=this.mangle("mailto:")+n):r=n=u(i[1]),o+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(e))){if(i=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(i[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(i[0])&&(this.inLink=!1),e=e.substring(i[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):u(i[0]):i[0];else if(i=this.rules.link.exec(e))e=e.substring(i[0].length),this.inLink=!0,o+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(e))||(i=this.rules.nolink.exec(e))){if(e=e.substring(i[0].length),t=(i[2]||i[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){o+=i[0].charAt(0),e=i[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(i,t),this.inLink=!1}else if(i=this.rules.strong.exec(e))e=e.substring(i[0].length),o+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(e))e=e.substring(i[0].length),o+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(e))e=e.substring(i[0].length),o+=this.renderer.codespan(u(i[2],!0));else if(i=this.rules.br.exec(e))e=e.substring(i[0].length),o+=this.renderer.br();else if(i=this.rules.del.exec(e))e=e.substring(i[0].length),o+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),o+=this.renderer.text(u(this.smartypants(i[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(i[0].length),r=n=u(i[1]),o+=this.renderer.link(r,null,n);return o},o.prototype.outputLink=function(e,t){var n=u(t.href),r=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,u(e[1]))},o.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):e},o.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),.5<Math.random()&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},n.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'<pre><code class="'+this.options.langPrefix+u(t,!0)+'">'+(n?e:u(e,!0))+"\n</code></pre>\n":"<pre><code>"+(n?e:u(e,!0))+"\n</code></pre>"},n.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},n.prototype.html=function(e){return e},n.prototype.heading=function(e,t,n){return"<h"+t+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+e+"</h"+t+">\n"},n.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},n.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"</"+n+">\n"},n.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},n.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},n.prototype.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n<tbody>\n"+t+"</tbody>\n</table>\n"},n.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},n.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},n.prototype.strong=function(e){return"<strong>"+e+"</strong>"},n.prototype.em=function(e){return"<em>"+e+"</em>"},n.prototype.codespan=function(e){return"<code>"+e+"</code>"},n.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},n.prototype.del=function(e){return"<del>"+e+"</del>"},n.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(a(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(o){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var i='<a href="'+e+'"';return t&&(i+=' title="'+t+'"'),i+">"+n+"</a>"},n.prototype.image=function(e,t,n){var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+(this.options.xhtml?"/>":">")},n.prototype.text=function(e){return e},c.parse=function(e,t,n){return new c(t,n).parse(e)},c.prototype.parse=function(e){this.inline=new o(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},c.prototype.next=function(){return this.token=this.tokens.pop()},c.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},c.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},c.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();
20case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;e<this.token.header.length;e++)({header:!0,align:this.token.align[e]}),n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(i+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",r=0;r<t.length;r++)n+=this.renderer.tablecell(this.inline.output(t[r]),{header:!1,align:this.token.align[r]});o+=this.renderer.tablerow(n)}return this.renderer.table(i,o);case"blockquote_start":for(o="";"blockquote_end"!==this.next().type;)o+=this.tok();return this.renderer.blockquote(o);case"list_start":o="";for(var a=this.token.ordered;"list_end"!==this.next().type;)o+=this.tok();return this.renderer.list(o,a);case"list_item_start":for(o="";"list_item_end"!==this.next().type;)o+="text"===this.token.type?this.parseText():this.tok();return this.renderer.listitem(o);case"loose_item_start":for(o="";"list_item_end"!==this.next().type;)o+=this.tok();return this.renderer.listitem(o);case"html":var s=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(s);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}},d.exec=d,f.options=f.setOptions=function(e){return h(f.defaults,e),f},f.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new n,xhtml:!1},f.Parser=c,f.parser=c.parse,f.Renderer=n,f.Lexer=l,f.lexer=l.lex,f.InlineLexer=o,f.inlineLexer=o.output,f.parse=f,void 0!==t&&"object"==typeof i?t.exports=f:"function"==typeof s&&s.amd?s(function(){return f}):this.marked=f}).call(function(){return this||("undefined"!=typeof window?window:e)}())}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],18:[function(c,t){(function(l,f){"use strict";var e=function(e,t,n,r){if(r=r||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=r.flags||{},e){if(this.dictionary=e,"undefined"!=typeof window&&"chrome"in window&&"extension"in window.chrome&&"getURL"in window.chrome.extension)t||(t=this._readFile(chrome.extension.getURL("lib/typo/dictionaries/"+e+"/"+e+".aff"))),n||(n=this._readFile(chrome.extension.getURL("lib/typo/dictionaries/"+e+"/"+e+".dic")));else{if(r.dictionaryPath)var i=r.dictionaryPath;else if(void 0!==f)i=f+"/dictionaries";else i="./dictionaries";t||(t=this._readFile(i+"/"+e+"/"+e+".aff")),n||(n=this._readFile(i+"/"+e+"/"+e+".dic"))}this.rules=this._parseAFF(t),this.compoundRuleCodes={};for(var o=0,a=this.compoundRules.length;o<a;o++)for(var s=this.compoundRules[o],l=0,c=s.length;l<c;l++)this.compoundRuleCodes[s[l]]=[];for(var o in"ONLYINCOMPOUND"in this.flags&&(this.compoundRuleCodes[this.flags.ONLYINCOMPOUND]=[]),this.dictionaryTable=this._parseDIC(n),this.compoundRuleCodes)0==this.compoundRuleCodes[o].length&&delete this.compoundRuleCodes[o];for(o=0,a=this.compoundRules.length;o<a;o++){var u=this.compoundRules[o],d="";for(l=0,c=u.length;l<c;l++){var h=u[l];d+=h in this.compoundRuleCodes?"("+this.compoundRuleCodes[h].join("|")+")":h}this.compoundRules[o]=new RegExp(d,"i")}}return this};e.prototype={load:function(e){for(var t in e)this[t]=e[t];return this},_readFile:function(e,t){if(t||(t="utf8"),"undefined"!=typeof XMLHttpRequest){var n=new XMLHttpRequest;return n.open("GET",e,!1),n.overrideMimeType&&n.overrideMimeType("text/plain; charset="+t),n.send(null),n.responseText}if(void 0!==c){var r=c("fs");try{if(r.existsSync(e)){var i=r.statSync(e),o=r.openSync(e,"r"),a=new l(i.size);return r.readSync(o,a,0,a.length,null),a.toString(t,0,a.length)}console.log("Path "+e+" does not exist.")}catch(s){return console.log(s),""}}},_parseAFF:function(e){for(var t={},n=(e=this._removeAffixComments(e)).split("\n"),r=0,i=n.length;r<i;r++){var o=(b=n[r]).split(/\s+/),a=o[0];if("PFX"==a||"SFX"==a){for(var s=o[1],l=o[2],c=[],u=r+1,d=r+1+(y=parseInt(o[3],10));u<d;u++){var h=(w=(b=n[u]).split(/\s+/))[2],f=w[3].split("/"),p=f[0];
20"0"===p&&(p="");var m=this.parseRuleCodes(f[1]),g=w[4],v={};v.add=p,0<m.length&&(v.continuationClasses=m),"."!==g&&(v.match="SFX"===a?new RegExp(g+"$"):new RegExp("^"+g)),"0"!=h&&(v.remove="SFX"===a?new RegExp(h+"$"):h),c.push(v)}t[s]={type:a,combineable:"Y"==l,entries:c},r+=y}else if("COMPOUNDRULE"===a){var y;for(u=r+1,d=r+1+(y=parseInt(o[1],10));u<d;u++){var b,w=(b=n[u]).split(/\s+/);this.compoundRules.push(w[1])}r+=y}else if("REP"===a){3===(w=b.split(/\s+/)).length&&this.replacementTable.push([w[1],w[2]])}else this.flags[a]=o[1]}return t},_removeAffixComments:function(e){return(e=(e=(e=e.replace(/#.*$/gm,"")).replace(/^\s\s*/m,"").replace(/\s\s*$/m,"")).replace(/\n{2,}/g,"\n")).replace(/^\s\s*/,"").replace(/\s\s*$/,"")},_parseDIC:function(e){function t(e,t){e in r&&"object"==typeof r[e]||(r[e]=[]),r[e].push(t)}for(var n=(e=this._removeDicComments(e)).split("\n"),r={},i=1,o=n.length;i<o;i++){var a=n[i].split("/",2),s=a[0];if(1<a.length){var l=this.parseRuleCodes(a[1]);"NEEDAFFIX"in this.flags&&-1!=l.indexOf(this.flags.NEEDAFFIX)||t(s,l);for(var c=0,u=l.length;c<u;c++){var d=l[c],h=this.rules[d];if(h)for(var f=this._applyRule(s,h),p=0,m=f.length;p<m;p++){var g=f[p];if(t(g,[]),h.combineable)for(var v=c+1;v<u;v++){var y=l[v],b=this.rules[y];if(b&&b.combineable&&h.type!=b.type)for(var w=this._applyRule(g,b),x=0,S=w.length;x<S;x++){t(w[x],[])}}}d in this.compoundRuleCodes&&this.compoundRuleCodes[d].push(s)}}else t(s.trim(),[])}return r},_removeDicComments:function(e){return e.replace(/^\t.*$/gm,"")},parseRuleCodes:function(e){if(!e)return[];if(!("FLAG"in this.flags))return e.split("");if("long"!==this.flags.FLAG)return"num"===this.flags.FLAG?textCode.split(","):void 0;for(var t=[],n=0,r=e.length;n<r;n+=2)t.push(e.substr(n,2));return t},_applyRule:function(e,t){for(var n=t.entries,r=[],i=0,o=n.length;i<o;i++){var a=n[i];if(!a.match||e.match(a.match)){var s=e;if(a.remove&&(s=s.replace(a.remove,"")),"SFX"===t.type?s+=a.add:s=a.add+s,r.push(s),"continuationClasses"in a)for(var l=0,c=a.continuationClasses.length;l<c;l++){var u=this.rules[a.continuationClasses[l]];u&&(r=r.concat(this._applyRule(s,u)))}}}return r},check:function(e){var t=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(t))return!0;if(t.toUpperCase()===t){var n=t[0]+t.substring(1).toLowerCase();if(this.hasFlag(n,"KEEPCASE"))return!1;if(this.checkExact(n))return!0}var r=t.toLowerCase();if(r!==t){if(this.hasFlag(r,"KEEPCASE"))return!1;if(this.checkExact(r))return!0}return!1},checkExact:function(e){var t=this.dictionaryTable[e];if(void 0===t){if("COMPOUNDMIN"in this.flags&&e.length>=this.flags.COMPOUNDMIN)for(var n=0,r=this.compoundRules.length;n<r;n++)if(e.match(this.compoundRules[n]))return!0;return!1}if("object"==typeof t){for(n=0,r=t.length;n<r;n++)if(!this.hasFlag(e,"ONLYINCOMPOUND",t[n]))return!0;return!1}},hasFlag:function(e,t,n){if(t in this.flags){if(void 0===n)n=Array.prototype.concat.apply([],this.dictionaryTable[e]);if(n&&-1!==n.indexOf(this.flags[t]))return!0}return!1},alphabet:"",suggest:function(e,u){function d(e){for(var t=[],n=0,r=e.length;n<r;n++){for(var i=e[n],o=[],a=0,s=i.length+1;a<s;a++)o.push([i.substring(0,a),i.substring(a,i.length)]);var l=[];for(a=0,s=o.length;a<s;a++){(p=o[a])[1]&&l.push(p[0]+p[1].substring(1))}var c=[];for(a=0,s=o.length;a<s;a++){1<(p=o[a])[1].length&&c.push(p[0]+p[1][1]+p[1][0]+p[1].substring(2))}var u=[];for(a=0,s=o.length;a<s;a++){if((p=o[a])[1])for(var d=0,h=m.alphabet.length;d<h;
20d++)u.push(p[0]+m.alphabet[d]+p[1].substring(1))}var f=[];for(a=0,s=o.length;a<s;a++){var p;if((p=o[a])[1])for(d=0,h=m.alphabet.length;d<h;d++)u.push(p[0]+m.alphabet[d]+p[1])}t=(t=(t=(t=t.concat(l)).concat(c)).concat(u)).concat(f)}return t}function h(e){for(var t=[],n=0;n<e.length;n++)m.check(e[n])&&t.push(e[n]);return t}function t(e){function t(e,t){return e[1]<t[1]?-1:1}for(var n=d([e]),r=d(n),i=h(n).concat(h(r)),o={},a=0,s=i.length;a<s;a++)i[a]in o?o[i[a]]+=1:o[i[a]]=1;var l=[];for(var a in o)l.push([a,o[a]]);l.sort(t).reverse();var c=[];for(a=0,s=Math.min(u,l.length);a<s;a++)m.hasFlag(l[a][0],"NOSUGGEST")||c.push(l[a][0]);return c}if(u||(u=5),this.check(e))return[];for(var n=0,r=this.replacementTable.length;n<r;n++){var i=this.replacementTable[n];if(-1!==e.indexOf(i[0])){var o=e.replace(i[0],i[1]);if(this.check(o))return[o]}}var m=this;return m.alphabet="abcdefghijklmnopqrstuvwxyz",t(e)}},void 0!==t&&(t.exports=e)}).call(this,c("buffer").Buffer,"/node_modules/typo-js")},{buffer:3,fs:2}],19:[function(e){var t=e("codemirror");t.commands.tabAndIndentMarkdownList=function(e){var t=e.listSelections()[0].head;if(!1!==e.getStateAfter(t.line).list)e.execCommand("indentMore");else if(e.options.indentWithTabs)e.execCommand("insertTab");else{var n=Array(e.options.tabSize+1).join(" ");e.replaceSelection(n)}},t.commands.shiftTabAndUnindentMarkdownList=function(e){var t=e.listSelections()[0].head;if(!1!==e.getStateAfter(t.line).list)e.execCommand("indentLess");else if(e.options.indentWithTabs)e.execCommand("insertTab");else{var n=Array(e.options.tabSize+1).join(" ");e.replaceSelection(n)}}},{codemirror:10}],20:[function(e,t){"use strict";function c(e){return W?e.replace("Ctrl","Cmd"):e.replace("Cmd","Ctrl")}function u(e,t,n){e=e||{};var r=document.createElement("a");return t=null==t||t,e.title&&t&&(r.title=i(e.title,e.action,n),W&&(r.title=r.title.replace("Ctrl","\u2318"),r.title=r.title.replace("Alt","\u2325"))),r.tabIndex=-1,r.className=e.className,r}function d(){var e=document.createElement("i");return e.className="separator",e.innerHTML="|",e}function i(e,t,n){var r,i=e;return t&&(n[r=z(t)]&&(i+=" ("+c(n[r])+")")),i}function h(e,t){t=t||e.getCursor("start");var n=e.getTokenAt(t);
20if(!n.type)return{};for(var r,i,o=n.type.split(" "),a={},s=0;s<o.length;s++)"strong"===(r=o[s])?a.bold=!0:"variable-2"===r?(i=e.getLine(t.line),/^\s*\d+\.\s/.test(i)?a["ordered-list"]=!0:a["unordered-list"]=!0):"atom"===r?a.quote=!0:"em"===r?a.italic=!0:"quote"===r?a.quote=!0:"strikethrough"===r?a.strikethrough=!0:"comment"===r?a.code=!0:"link"===r?a.link=!0:"tag"===r?a.image=!0:r.match(/^header(\-[1-6])?$/)&&(a[r.replace("header","heading")]=!0);return a}function f(e){var t=e.codemirror;t.setOption("fullScreen",!t.getOption("fullScreen")),t.getOption("fullScreen")?(G=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=G;var n=t.getWrapperElement();/fullscreen/.test(n.previousSibling.className)?n.previousSibling.className=n.previousSibling.className.replace(/\s*fullscreen\b/,""):n.previousSibling.className+=" fullscreen";var r=e.toolbarElements.fullscreen;/active/.test(r.className)?r.className=r.className.replace(/\s*active\s*/g,""):r.className+=" active";var i=t.getWrapperElement().nextSibling;/editor-preview-active-side/.test(i.className)&&D(e)}function n(e){N(e,"bold",e.options.blockStyles.bold)}function r(e){N(e,"italic",e.options.blockStyles.italic)}function o(e){N(e,"strikethrough","~~")}function a(e){function a(e){if("object"!=typeof e)throw"fencing_line() takes a 'line' object (not a line number, or line text).  Got: "+typeof e+": "+e;return e.styles&&e.styles[2]&&-1!==e.styles[2].indexOf("formatting-code-block")}function s(e){return e.state.base.base||e.state.base}function t(e,t,n,r,i){n=n||e.getLineHandle(t),r=r||e.getTokenAt({line:t,ch:1}),i=i||!!n.text&&e.getTokenAt({line:t,ch:n.text.length-1});var o=r.type?r.type.split(" "):[];return i&&s(i).indentedCode?"indented":-1!==o.indexOf("comment")&&(s(r).fencedChars||s(i).fencedChars||a(n)?"fenced":"single")}function n(e,t,n,r){var i=t.line+1,o=n.line+1,a=t.line!==n.line,s=r+"\n",l="\n"+r;a&&o++,a&&0===n.ch&&(l=r+"\n",o--),A(e,!1,[s,l]),e.setSelection({line:i,ch:0},{line:o,ch:0})}var r,i,o,l=e.options.blockStyles.code,c=e.codemirror,u=c.getCursor("start"),d=c.getCursor("end"),h=c.getTokenAt({line:u.line,ch:u.ch||1}),f=c.getLineHandle(u.line),p=t(c,u.line,f,h);if("single"===p){var m=f.text.slice(0,u.ch).replace("`",""),g=f.text.slice(u.ch).replace("`","");c.replaceRange(m+g,{line:u.line,ch:0},{line:u.line,ch:99999999999999}),u.ch--,u!==d&&d.ch--,c.setSelection(u,d),c.focus()}else if("fenced"===p)if(u.line!==d.line||u.ch!==d.ch){for(r=u.line;0<=r&&!a(f=c.getLineHandle(r));r--);var v,y,b,w,x=s(c.getTokenAt({line:r,ch:1})).fencedChars;a(c.getLineHandle(u.line))?(v="",y=u.line):a(c.getLineHandle(u.line-1))?(v="",y=u.line-1):(v=x+"\n",y=u.line),a(c.getLineHandle(d.line))?(b="",w=d.line,0===d.ch&&(w+=1)):(b=0!==d.ch&&a(c.getLineHandle(d.line+1))?"":x+"\n",w=d.line+1),0===d.ch&&(w-=1),c.operation(function(){c.replaceRange(b,{line:w,ch:0},{line:w+(b?0:1),ch:0}),c.replaceRange(v,{line:y,ch:0},{line:y+(v?0:1),ch:0})}),c.setSelection({line:y+(v?1:0),ch:0},{line:w+(v?1:-1),ch:0}),c.focus()}else{var S=u.line;if(a(c.getLineHandle(u.line))&&("fenced"===t(c,u.line+1)?(r=u.line,S=u.line+1):(i=u.line,S=u.line-1)),void 0===r)for(r=S;0<=r&&!a(f=c.getLineHandle(r));r--);if(void 0===i)for(o=c.lineCount(),i=S;i<o&&!a(f=c.getLineHandle(i));i++);c.operation(function(){c.replaceRange("",{line:r,ch:0},{line:r+1,ch:0}),c.replaceRange("",{line:i-1,ch:0},{line:i,ch:0})}),c.focus()}else if("indented"===p){if(u.line!==d.line||u.ch!==d.ch)r=u.line,i=d.line,0===d.ch&&i--;else{for(r=u.line;0<=r;r--)if(!(f=c.getLineHandle(r)).text.match(/^\s*$/)&&"indented"!==t(c,r,f)){r+=1;break}for(o=c.lineCount(),i=u.line;i<o;i++)if(!(f=c.getLineHandle(i)).text.match(/^\s*$/)&&"indented"!==t(c,i,f)){i-=1;break}}var C=c.getLineHandle(i+1),_=C&&c.getTokenAt({line:i+1,ch:C.text.length-1});_&&s(_).indentedCode&&c.replaceRange("\n",{line:i+1,ch:0});for(var T=r;T<=i;T++)c.indentLine(T,"subtract");c.focus()}else{var k=u.line===d.line&&u.ch===d.ch&&0===u.ch,D=u.line!==d.line;k||D?n(c,u,d,l):A(c,!1,["`","`"])}}function s(e){I(e.codemirror,"quote")}function l(e){L(e.codemirror,"smaller")}function p(e){L(e.codemirror,"bigger")}function m(e){L(e.codemirror,void 0,1)}function g(e){L(e.codemirror,void 0,2)}function v(e){L(e.codemirror,void 0,3)}function y(e){I(e.codemirror,"unordered-list")}function b(e){I(e.codemirror,"ordered-list")}function w(e){O(e.codemirror)}function x(e){var t=e.codemirror,n=h(t),r=e.options,i="http://";return!(r.promptURLs&&!(i=prompt(r.promptTexts.link)))&&void A(t,n.link,r.insertTexts.link,i)}function S(e){var t=e.codemirror,n=h(t),r=e.options,i="http://";return!(r.promptURLs&&!(i=prompt(r.promptTexts.image)))&&void A(t,n.image,r.insertTexts.image,i)}function C(e){var t=e.codemirror,n=h(t),r=e.options;A(t,n.table,r.insertTexts.table)}function _(e){var t=e.codemirror,n=h(t),r=e.options;A(t,n.image,r.insertTexts.horizontalRule)}function T(e){var t=e.codemirror;t.undo(),t.focus()}function k(e){var t=e.codemirror;t.redo(),t.focus()}function D(e){var t=e.codemirror,n=t.getWrapperElement(),r=n.nextSibling,i=e.toolbarElements["side-by-side"],o=!1;/editor-preview-active-side/.test(r.className)?(r.className=r.className.replace(/\s*editor-preview-active-side\s*/g,""),i.className=i.className.replace(/\s*active\s*/g,""),n.className=n.className.replace(/\s*CodeMirror-sided\s*/g," ")):(setTimeout(function(){t.getOption("fullScreen")||f(e),r.className+=" editor-preview-active-side"},1),i.className+=" active",n.className+=" CodeMirror-sided",o=!0);var a=n.lastChild;if(/editor-preview-active/.test(a.className)){a.className=a.className.replace(/\s*editor-preview-active\s*/g,"");var s=e.toolbarElements.preview,l=n.previousSibling;s.className=s.className.replace(/\s*active\s*/g,""),l.className=l.className.replace(/\s*disabled-for-preview*/g,"")}var c=function(){r.innerHTML=e.options.previewRender(e.value(),r)};t.sideBySideRenderingFunction||(t.sideBySideRenderingFunction=c),o?(r.innerHTML=e.options.previewRender(e.value(),r),t.on("update",t.sideBySideRenderingFunction)):t.off("update",t.sideBySideRenderingFunction),t.refresh()}function E(e){var t=e.codemirror,n=t.getWrapperElement(),r=n.previousSibling,i=!!e.options.toolbar&&e.toolbarElements.preview,o=n.lastChild;o&&/editor-preview/.test(o.className)||((o=document.createElement("div")).className="editor-preview",n.appendChild(o)),/editor-preview-active/.test(o.className)?(o.className=o.className.replace(/\s*editor-preview-active\s*/g,""),i&&(i.className=i.className.replace(/\s*active\s*/g,""),r.className=r.className.replace(/\s*disabled-for-preview*/g,""))):(setTimeout(function(){o.className+=" editor-preview-active"},1),i&&(i.className+=" active",r.className+=" disabled-for-preview")),o.innerHTML=e.options.previewRender(e.value(),o);var a=t.getWrapperElement().nextSibling;/editor-preview-active-side/.test(a.className)&&D(e)}function A(e,t,n,r){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className)){var i,o=n[0],a=n[1],s=e.getCursor("start"),l=e.getCursor("end");r&&(a=a.replace("#url#",r)),t?(o=(i=e.getLine(s.line)).slice(0,s.ch),a=i.slice(s.ch),e.replaceRange(o+a,{line:s.line,ch:0})):(i=e.getSelection(),e.replaceSelection(o+i+a),s.ch+=o.length,s!==l&&(l.ch+=o.length)),e.setSelection(s,l),e.focus()}}function L(e,t,n){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className)){for(var r=e.getCursor("start"),i=e.getCursor("end"),o=r.line;o<=i.line;o++)a=o,l=s=void 0,s=e.getLine(a),l=s.search(/[^#]/),s=void 0!==t?l<=0?"bigger"==t?"###### "+s:"# "+s:6==l&&"smaller"==t?s.substr(7):1==l&&"bigger"==t?s.substr(2):"bigger"==t?s.substr(1):"#"+s:1==n?l<=0?"# "+s:l==n?s.substr(l+1):"# "+s.substr(l+1):2==n?l<=0?"## "+s:l==n?s.substr(l+1):"## "+s.substr(l+1):l<=0?"### "+s:l==n?s.substr(l+1):"### "+s.substr(l+1),e.replaceRange(s,{line:a,ch:0},{line:a,ch:99999999999999});e.focus()}var a,s,l}function I(e,t){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className)){for(var n=h(e),r=e.getCursor("start"),i=e.getCursor("end"),o={quote:/^(\s*)\>\s+/,"unordered-list":/^(\s*)(\*|\-|\+)\s+/,"ordered-list":/^(\s*)\d+\.\s+/},a={quote:"> ","unordered-list":"* ","ordered-list":"1. "},s=r.line;s<=i.line;s++)l=s,c=void 0,c=e.getLine(l),c=n[t]?c.replace(o[t],"$1"):a[t]+c,e.replaceRange(c,{line:l,ch:0},{line:l,ch:99999999999999});e.focus()}var l,c}function N(e,t,n,r){if(!/editor-preview-active/.test(e.codemirror.getWrapperElement().lastChild.className)){r=void 0===r?n:r;var i,o=e.codemirror,a=h(o),s=n,l=r,c=o.getCursor("start"),u=o.getCursor("end");a[t]?(s=(i=o.getLine(c.line)).slice(0,c.ch),l=i.slice(c.ch),"bold"==t?(s=s.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),l=l.replace(/(\*\*|__)/,"")):"italic"==t?(s=s.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),l=l.replace(/(\*|_)/,"")):"strikethrough"==t&&(s=s.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),l=l.replace(/(\*\*|~~)/,"")),o.replaceRange(s+l,{line:c.line,ch:0},{line:c.line,ch:99999999999999}),"bold"==t||"strikethrough"==t?(c.ch-=2,c!==u&&(u.ch-=2)):"italic"==t&&(c.ch-=1,c!==u&&(u.ch-=1))):(i=o.getSelection(),"bold"==t?i=(i=i.split("**").join("")).split("__").join(""):"italic"==t?i=(i=i.split("*").join("")).split("_").join(""):"str
20ikethrough"==t&&(i=i.split("~~").join("")),o.replaceSelection(s+i+l),c.ch+=n.length,u.ch=c.ch+i.length),o.setSelection(c,u),o.focus()}}function O(e){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className))for(var t,n=e.getCursor("start"),r=e.getCursor("end"),i=n.line;i<=r.line;i++)t=(t=e.getLine(i)).replace(/^[ ]*([# ]+|\*|\-|[> ]+|[0-9]+(.|\)))[ ]*/,""),e.replaceRange(t,{line:i,ch:0},{line:i,ch:99999999999999})}function M(e,t){for(var n in t)t.hasOwnProperty(n)&&(t[n]instanceof Array?e[n]=t[n].concat(e[n]instanceof Array?e[n]:[]):null!==t[n]&&"object"==typeof t[n]&&t[n].constructor===Object?e[n]=M(e[n]||{},t[n]):e[n]=t[n]);return e}function P(e){for(var t=1;t<arguments.length;t++)e=M(e,arguments[t]);return e}function R(e){var t=/[a-zA-Z0-9_\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,n=e.match(t),r=0;if(null===n)return r;for(var i=0;i<n.length;i++)r+=19968<=n[i].charCodeAt(0)?n[i].length:1;return r}function j(e){(e=e||{}).parent=this;var t=!0;if(!1===e.autoDownloadFontAwesome&&(t=!1),!0!==e.autoDownloadFontAwesome)for(var n=document.styleSheets,r=0;r<n.length;r++)n[r].href&&-1<n[r].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/")&&(t=!1);if(t){var i=document.createElement("link");i.rel="stylesheet",i.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(i)}if(e.element)this.element=e.element;else if(null===e.element)return void console.log("SimpleMDE: Error. No element was found.");if(void 0===e.toolbar)for(var o in e.toolbar=[],Y)Y.hasOwnProperty(o)&&(-1!=o.indexOf("separator-")&&e.toolbar.push("|"),(!0===Y[o]["default"]||e.showIcons&&e.showIcons.constructor===Array&&-1!=e.showIcons.indexOf(o))&&e.toolbar.push(o));e.hasOwnProperty("status")||(e.status=["autosave","lines","words","cursor"]),e.previewRender||(e.previewRender=function(e){return this.parent.markdown(e)}),e.parsingConfig=P({highlightFormatting:!0},e.parsingConfig||{}),e.insertTexts=P({},X,e.insertTexts||{}),e.promptTexts=K,e.blockStyles=P({},Q,e.blockStyles||{}),e.shortcuts=P({},U,e.shortcuts||{}),null!=e.autosave&&null!=e.autosave.unique_id&&""!=e.autosave.unique_id&&(e.autosave.uniqueId=e.autosave.unique_id),this.options=e,this.render(),!e.initialValue||this.options.autosave&&!0===this.options.autosave.foundSavedValue||this.value(e.initialValue)}function H(){if("object"!=typeof localStorage)return!1;try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch(e){return!1}return!0}
20var F=e("codemirror");e("codemirror/addon/edit/continuelist.js"),e("./codemirror/tablist"),e("codemirror/addon/display/fullscreen.js"),e("codemirror/mode/markdown/markdown.js"),e("codemirror/addon/mode/overlay.js"),e("codemirror/addon/display/placeholder.js"),e("codemirror/addon/selection/mark-selection.js"),e("codemirror/mode/gfm/gfm.js"),e("codemirror/mode/xml/xml.js");var q=e("codemirror-spell-checker"),B=e("marked"),W=/Mac/.test(navigator.platform),$={toggleBold:n,toggleItalic:r,drawLink:x,toggleHeadingSmaller:l,toggleHeadingBigger:p,drawImage:S,toggleBlockquote:s,toggleOrderedList:b,toggleUnorderedList:y,toggleCodeBlock:a,togglePreview:E,toggleStrikethrough:o,toggleHeading1:m,toggleHeading2:g,toggleHeading3:v,cleanBlock:w,drawTable:C,drawHorizontalRule:_,undo:T,redo:k,toggleSideBySide:D,toggleFullScreen:f},U={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},z=function(e){for(var t in $)if($[t]===e)return t;return null},V=function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e
21)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t},G="",Y={bold:{name:"bold",action:n,className:"fa fa-bold",title:"Bold","default":!0},italic:{name:"italic",action:r,className:"fa fa-italic",title:"Italic","default":!0},strikethrough:{name:"strikethrough",action:o,className:"fa fa-strikethrough",title:"Strikethrough"},heading:{name:"heading",action:l,className:"fa fa-header",title:"Heading","default":!0},"heading-smaller":{name:"heading-smaller",action:l,className:"fa fa-header fa-header-x fa-header-smaller",title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:p,className:"fa fa-header fa-header-x fa-header-bigger",title:"Bigger Heading"},"heading-1":{name:"heading-1",action:m,className:"fa fa-header fa-header-x fa-header-1",title:"Big Heading"},"heading-2":{name:"heading-2",action:g,className:"fa fa-header fa-header-x fa-header-2",title:"Medium Heading"},"heading-3":{name:"heading-3",action:v,className:"fa fa-header fa-header-x fa-header-3",title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:a,className:"fa fa-code",title:"Code"},quote:{name:"quote",action:s,className:"fa fa-quote-left",title:"Quote","default":!0},"unordered-list":{name:"unordered-list",action:y,className:"fa fa-list-ul",title:"Generic List","default":!0},"ordered-list":{name:"ordered-list",action:b,className:"fa fa-list-ol",title:"Numbered List","default":!0},"clean-block":{name:"clean-block",action:w,className:"fa fa-eraser fa-clean-block",title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:x,className:"fa fa-link",title:"Create Link","default":!0},image:{name:"image",action:S,className:"fa fa-picture-o",title:"Insert Image","default":!0},table:{name:"table",action:C,className:"fa fa-table",title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:_,className:"fa fa-minus",title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:E,className:"fa fa-eye no-disable",title:"Toggle Preview","default":!0},"side-by-side":{name:"side-by-side",action:D,className:"fa fa-columns no-disable no-mobile",title:"Toggle Side by Side","default":!0},fullscreen:{name:"fullscreen",action:f,className:"fa fa-arrows-alt no-disable no-mobile",title:"Toggle Fullscreen","default":!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://simplemde.com/markdown-guide",className:"fa fa-question-circle",title:"Markdown Guide","default":!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:T,className:"fa fa-undo no-disable",title:"Undo"},redo:{name:"redo",action:k,className:"fa fa-repeat no-disable",title:"Redo"}},X={link:["[","](#url#)"],image:["![](","#url#)"],table:["","\n\n| Column 1 | Column 2 | Column 3 |\
21n| -------- | -------- | -------- |\n| Text     | Text     | Text     |\n\n"],horizontalRule:["","\n\n-----\n\n"]},K={link:"URL for the link:",image:"URL of the image:"},Q={bold:"**",code:"```",italic:"*"};j.prototype.markdown=function(e){if(B){var t={};return this.options&&this.options.renderingConfig&&!1===this.options.renderingConfig.singleLineBreaks?t.breaks=!1:t.breaks=!0,this.options&&this.options.renderingConfig&&!0===this.options.renderingConfig.codeSyntaxHighlighting&&window.hljs&&(t.highlight=function(e){return window.hljs.highlightAuto(e).value}),B.setOptions(t),B(e)}},j.prototype.render=function(e){if(e||(e=this.element||document.getElementsByTagName("textarea")[0]),!this._rendered||this._rendered!==e){this.element=e;var t,n,r=this.options,i=this,o={};for(var a in r.shortcuts)null!==r.shortcuts[a]&&null!==$[a]&&function(e){o[c(r.shortcuts[e])]=function(){$[e](i)}}(a);if(o.Enter="newlineAndIndentContinueMarkdownList",o.Tab="tabAndIndentMarkdownList",o["Shift-Tab"]="shiftTabAndUnindentMarkdownList",o.Esc=function(e){e.getOption("fullScreen")&&f(i)},document.addEventListener("keydown",function(e){27==(e=e||window.event).keyCode&&i.codemirror.getOption("fullScreen")&&f(i)},!1),!1!==r.spellChecker?(t="spell-checker",(n=r.parsingConfig).name="gfm",n.gitHubSpice=!1,q({codeMirrorInstance:F})):((t=r.parsingConfig).name="gfm",t.gitHubSpice=!1),this.codemirror=F.fromTextArea(e,{mode:t,backdrop:n,theme:"paper",tabSize:null!=r.tabSize?r.tabSize:2,indentUnit:null!=r.tabSize?r.tabSize:2,indentWithTabs:!1!==r.indentWithTabs,lineNumbers:!1,autofocus:!0===r.autofocus,extraKeys:o,lineWrapping:!1!==r.lineWrapping,allowDropFileTypes:["text/plain"],placeholder:r.placeholder||e.getAttribute("placeholder")||"",styleSelectedText:null==r.styleSelectedText||r.styleSelectedText}),!0===r.forceSync){var s=this.codemirror;s.on("change",function(){s.save()})}!(this.gui={})!==r.toolbar&&(this.gui.toolbar=this.createToolbar()),!1!==r.status&&(this.gui.statusbar=this.createStatusbar()),null!=r.autosave&&!0===r.autosave.enabled&&this.autosave(),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element;var l=this.codemirror;setTimeout(function(){l.refresh()}.bind(l),0)}},j.prototype.autosave=function(){if(H()){var e=this;if(null==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("SimpleMDE: You must set a uniqueId to use the autosave feature");null!=e.element.form&&null!=e.element.form&&e.element.form.addEventListener("submit",function(){localStorage.removeItem("smde_"+e.options.autosave.uniqueId)}),!0!==this.options.autosave.loaded&&("string"==typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&""!=localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0),localStorage.setItem("smde_"+this.options.autosave.uniqueId,e.value());var t=document.getElementById("autosaved");if(null!=t&&null!=t&&""!=t){var n=new Date,r=n.getHours(),i=n.getMinutes(),o="am",a=r;12<=a&&(a=r-12,o="pm"),0==a&&(a=12),i=i<10?"0"+i:i,t.innerHTML="Autosaved: "+a+":"+i+" "+o}this.autosaveTimeoutId=setTimeout(function(){e.autosave()},this.options.autosave.delay||1e4)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},j.prototype.clearAutosavedValue=function(){if(H()){if(null==this.options.autosave||null==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("SimpleMDE: You must set a uniqueId to clear the autosave value");localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},j.prototype.createSideBySide=function(){var r=this.codemirror,e=r.getWrapperElement(),i=e.nextSibling;i&&/editor-preview-side/.test(i.className)||((i=document.createElement("div")).className="editor-preview-side",e.parentNode.insertBefore(i,e.nextSibling));var o=!1,a=!1;return r.on("scroll",function(e){if(o)o=!1;else{a=!0;var t=e.getScrollInfo().height-e.getScrollInfo().clientHeight,n=parseFloat(e.getScrollInfo().top)/t,r=(i.scrollHeight-i.clientHeight)*n;i.scrollTop=r}}),i.onscroll=function(){if(a)a=!1;else{o=!0;var e=i.scrollHeight-i.clientHeight,t=parseFloat(i.scrollTop)/e,n=(r.getScrollInfo().height-r.getScrollInfo().clientHeight)*t;r.scrollTo(0,n)}},i},j.prototype.createToolbar=function(e){if((e=e||this.options.toolbar)&&0!==e.length){var t;for(t=0;t<e.length;t++)null!=Y[e[t]]&&(e[t]=Y[e[t]]);var n=document.createElement("div");n.className="editor-toolbar";var r=this,i={};for(r.toolbar=e,t=0;t<e.length;t++)if(("guide"!=e[t].name||!1!==r.options.toolbarGuideIcon)&&!(r.options.hideIcons&&-1!=r.options.hideIcons.indexOf(e[t].name)||("fullscreen"==e[t].name||"side-by-side"==e[t].name)&&V())){if("|"===e[t]){for(var o=!1,a=t+1;a<e.length;a++)"|"===e[a]||r.options.hideIcons&&-1!=r.options.hideIcons.indexOf(e[a].name)||(o=!0);if(!o)continue}!function(t){var e;e="|"===t?d():u(t,r.options.toolbarTips,r.options.shortcuts),t.action&&("function"==typeof t.action?e.onclick=function(e){e.preventDefault(),t.action(r)}:"string"==typeof t.action&&(e.href=t.action,e.target="_blank")),i[t.n
21ame||t]=e,n.appendChild(e)}(e[t])}r.toolbarElements=i;var s=this.codemirror;s.on("cursorActivity",function(){var e,t,n=h(s);for(var r in i)t=void 0,t=i[e=r],n[e]?t.className+=" active":"fullscreen"!=e&&"side-by-side"!=e&&(t.className=t.className.replace(/\s*active\s*/g,""))});var l=s.getWrapperElement();return l.parentNode.insertBefore(n,l),n}},j.prototype.createStatusbar=function(e){e=e||this.options.status;var t=this.options,n=this.codemirror;if(e&&0!==e.length){var r,i,o,a=[];for(r=0;r<e.length;r++)if(o=i=void 0,"object"==typeof e[r])a.push({className:e[r].className,defaultValue:e[r].defaultValue,onUpdate:e[r].onUpdate});else{var s=e[r];"words"===s?(o=function(e){e.innerHTML=R(n.getValue())},i=function(e){e.innerHTML=R(n.getValue())}):"lines"===s?(o=function(e){e.innerHTML=n.lineCount()},i=function(e){e.innerHTML=n.lineCount()}):"cursor"===s?(o=function(e){e.innerHTML="0:0"},i=function(e){var t=n.getCursor();e.innerHTML=t.line+":"+t.ch}):"autosave"===s&&(o=function(e){null!=t.autosave&&!0===t.autosave.enabled&&e.setAttribute("id","autosaved")}),a.push({className:s,defaultValue:o,onUpdate:i})}var l=document.createElement("div");for(l.className="editor-statusbar",r=0;r<a.length;r++){var c=a[r],u=document.createElement("span");u.className=c.className,"function"==typeof c.defaultValue&&c.defaultValue(u),"function"==typeof c.onUpdate&&this.codemirror.on("update",function(e,t){return function(){t.onUpdate(e)}}(u,c)),l.appendChild(u)}var d=this.codemirror.getWrapperElement();return d.parentNode.insertBefore(l,d.nextSibling),l}},j.prototype.value=function(e){return void 0===e?this.codemirror.getValue():(this.codemirror.getDoc().setValue(e),this)},j.toggleBold=n,j.toggleItalic=r,j.toggleStrikethrough=o,j.toggleBlockquote=s,j.toggleHeadingSmaller=l,j.toggleHeadingBigger=p,j.toggleHeading1=m,j.toggleHeading2=g,j.toggleHeading3=v,j.toggleCodeBlock=a,j.toggleUnorderedList=y,j.toggleOrderedList=b,j.cleanBlock=w,j.drawLink=x,j.drawImage=S,j.drawTable=C,j.drawHorizontalRule=_,j.undo=T,j.redo=k,j.togglePreview=E,j.toggleSideBySide=D,j.toggleFullScreen=f,j.prototype.toggleBold=function(){n(this)},j.prototype.toggleItalic=function(){r(this)},j.prototype.toggleStrikethrough=function(){o(this)},j.prototype.toggleBlockquote=function(){s(this)},j.prototype.toggleHeadingSmaller=function(){l(this)},j.prototype.toggleHeadingBigger=function(){p(this)},j.prototype.toggleHeading1=function(){m(this)},j.prototype.toggleHeading2=function(){g(this)},j.prototype.toggleHeading3=function(){v(this)},j.prototype.toggleCodeBlock=function(){a(this)},j.prototype.toggleUnorderedList=function(){y(this)},j.prototype.toggleOrderedList=function(){b(this)},j.prototype.cleanBlock=function(){w(this)},j.prototype.drawLink=function(){x(this)},j.prototype.drawImage=function(){S(this)},j.prototype.drawTable=function(){C(this)},j.prototype.drawHorizontalRule=function(){_(this)},j.prototype.undo=function(){T(this)},j.prototype.redo=function(){k(this)},j.prototype.togglePreview=function(){E(this)},j.prototype.toggleSideBySide=function(){D(this)},j.prototype.toggleFullScreen=function(){f(this)},j.prototype.isPreviewActive=function(){var e=this.codemirror.getWrapperElement().lastChild;return/editor-preview-active/.test(e.className)},j.prototype.isSideBySideActive=function(){var e=this.codemirror.getWrapperElement().nextSibling;return/editor-preview-active-side/.test(e.className)},j.prototype.isFullscreenActive=function(){return this.codemirror.getOption("fullScreen")},j.prototype.getState=function(){return h(this.codemirror)},j.prototype.toTextArea=function(){var e=this.codemirror,t=e.getWrapperElement();t.parentNode&&(this.gui.toolbar&&t.parentNode.removeChild(this.gui.toolbar),this.gui.statusbar&&t.parentNode.removeChild(this.gui.statusbar),this.gui.sideBySide&&t.parentNode.removeChild(this.gui.sideBySide)),e.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void 0,this.clearAutosavedValue())},t.exports=j},{"./codemirror/tablist":19,codemirror:10,"codemirror-spell-checker":4,"codemirror/addon/display/fullscreen.js":5,"codemirror/addon/display/placeholder.js":6,"codemirror/addon/edit/continuelist.js":7,"codemirror/addon/mode/overlay.js":8,"codemirror/addon/selection/mark-selection.js":9,"codemirror/mode/gfm/gfm.js":11,"codemirror/mode/markdown/markdown.js":12,"codemirror/mode/xml/xml.js":14,marked:17}]},{},[20])(20)}),function(g){var e=0,v=function(){return(new Date).getTime()+e++},y=function(e){return"["+e+"]$1"},b=function(e){return"_"+e+"_$1"},w=function(e,t,n){return e?"function"==typeof e?(t&&console.warn("association-insertion-traversal is ignored, because association-insertion-node is given as a function."),e(n)):"string"==typeof e?t?n[t](e):"this"==e?n:g(e):void 0:n.parent()};
21g(document).on("click",".add_fields",function(e){e.preventDefault(),e.stopPropagation();var t=g(this),n=t.data("association"),r=t.data("associations"),i=t.data("association-insertion-template"),o=t.data("association-insertion-method")||t.data("association-insertion-position")||"before",a=t.data("association-insertion-node"),s=t.data("association-insertion-traversal"),l=parseInt(t.data("count"),10),c=new RegExp("\\[new_"+n+"\\](.*?\\s)","g"),u=new RegExp("_new_"+n+"_(\\w*)","g"),d=v(),h=i.replace(c,y(d)),f=[],p=e;for(h==i&&(c=new RegExp("\\[new_"+r+"\\](.*?\\s)","g"),u=new RegExp("_new_"+r+"_(\\w*)","g"),h=i.replace(c,y(d))),f=[h=h.replace(u,b(d))],l=isNaN(l)?1:Math.max(l,1),l-=1;l;)d=v(),h=(h=i.replace(c,y(d))).replace(u,b(d)),f.push(h),l-=1;var m=w(a,s,t);m&&0!=m.length||console.warn("Couldn't find the element to insert the template. Make sure your `data-association-insertion-*` on `link_to_add_association` is correct."),g.each(f,function(e,t){var n=g(t),r=jQuery.Event("cocoon:before-insert");if(m.trigger(r,[n,p]),!r.isDefaultPrevented()){m[o](n);m.trigger("cocoon:after-insert",[n,p])}})}),g(document).on("click",".remove_fields.dynamic, .remove_fields.existing",function(e){var t=g(this),n=t.data("wrapper-class")||"nested-fields",r=t.closest("."+n),i=r.parent(),o=e;e.preventDefault(),e.stopPropagation();var a=jQuery.Event("cocoon:before-remove");if(i.trigger(a,[r,o]),!a.isDefaultPrevented()){var s=i.data("remove-timeout")||0;setTimeout(function(){t.hasClass("dynamic")?r.detach():(t.prev("input[type=hidden]").val("1"),r.hide()),i.trigger("cocoon:after-remove",[r,o])},s)}}),g(document).on("ready page:load turbolinks:load",function(){g(".remove_fields.existing.destroyed").each(function(){var e=g(this),t=e.data("wrapper-class")||"nested-fields";e.closest("."+t).hide()})})}(jQuery),function(){}.call(this),function(){}.call(this),function(){var e=this;(function(){(function(){var n=[].slice;this.ActionCable={INTERNAL:{message_types:{welcome:"welcome",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},WebSocket:window.WebSocket,logger:window.console,createConsumer:function(e){var t;return null==e&&(e=null!=(t=this.getConfig("url"))?t:this.INTERNAL.default_mount_path),new l.Consumer(this.createWebSocketURL(e))},getConfig:function(e){var t;return null!=(t=document.head.querySelector("meta[name='action-cable-"+e+"']"))?t.getAttribute("content"):void 0},createWebSocketURL:function(e){var t;return e&&!/^wss?:/i.test(e)?((t=document.createElement("a")).href=e,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href):e},startDebugging:function(){return this.debugging=!0},stopDebugging:function(){return this.debugging=null},log:function(){var e,t;if(e=1<=arguments.length?n.call(arguments,0):[],this.debugging)return e.push(Date.now()),(t=this.logger).log.apply(t,["[ActionCable]"].concat(n.call(e)))}}}).call(this)}).call(e);var l=e.ActionCable;(function(){(function(){var r=function(e,t){return function(){return e.apply(t,arguments)}};l.ConnectionMonitor=function(){function e(e){this.connection=e,this.visibilityDidChange=r(this.visibilityDidChange,this),this.reconnectAttempts=0}var i,t,n;return e.pollInterval={min:3,max:30},e.staleThreshold=6,e.prototype.start=function(){if(!this.isRunning())return this.startedAt=t(),delete this.stoppedAt,this.startPolling(),document.addEventListener("visibilitychange",this.visibilityDidChange),l.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms")},e.prototype.stop=function(){if(this.isRunning())return this.stoppedAt=t(),this.stopPolling(),document.removeEventListener("visibilitychange",this.visibilityDidChange),l.log("ConnectionMonitor stopped")},e.prototype.isRunning=function(){return null!=this.startedAt&&null==this.stoppedAt},e.prototype.recordPing=function(){return this.pingedAt=t()},e.prototype.recordConnect=function(){return this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,l.log("ConnectionMonitor recorded connect")},e.prototype.recordDisconnect=function(){return this.disconnectedAt=t(),l.log("ConnectionMonitor recorded disconnect")},e.prototype.startPolling=function(){return this.stopPolling(),this.poll()},e.prototype.stopPolling=function(){return clearTimeout(this.pollTimeout)},e.prototype.poll=function(){return this.pollTimeout=setTimeout((e=this,function(){return e.reconnectIfStale(),e.poll()}),this.getPollInterval());var e},e.prototype.getPollInterval=function(){var e,t,n,r;return n=(r=this.constructor.pollInterval).min,t=r.max,e=5*Math.log(this.reconnectAttempts+1),Math.round(1e3*i(e,n,t))},e.prototype.reconnectIfStale=function(){if(this.connectionIsStale())return l.log("ConnectionMonitor detected stale c
21onnection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+n(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?l.log("ConnectionMonitor skipping reopening recent disconnect"):(l.log("ConnectionMonitor reopening"),this.connection.reopen())},e.prototype.connectionIsStale=function(){var e;return n(null!=(e=this.pingedAt)?e:this.startedAt)>this.constructor.staleThreshold},e.prototype.disconnectedRecently=function(){return this.disconnectedAt&&n(this.disconnectedAt)<this.constructor.staleThreshold},e.prototype.visibilityDidChange=function(){if("visible"===document.visibilityState)return setTimeout((e=this,function(){if(e.connectionIsStale()||!e.connection.isOpen())return l.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = "+document.visibilityState),e.connection.reopen()}),200);var e},t=function(){return(new Date).getTime()},n=function(e){return(t()-e)/1e3},i=function(e,t,n){return Math.max(t,Math.min(n,e))},e}()}).call(this),function(){var e,i,t,n,r,o=[].slice,a=function(e,t){return function(){return e.apply(t,arguments)}},s=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};n=l.INTERNAL,i=n.message_types,t=n.protocols,r=2<=t.length?o.call(t,0,e=t.length-1):(e=0,[]),t[e++],l.Connection=function(){function e(e){this.consumer=e,this.open=a(this.open,this),this.subscriptions=this.consumer.subscriptions,this.monitor=new l.ConnectionMonitor(this),this.disconnected=!0}return e.reopenDelay=500,e.prototype.send=function(e){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(e)),!0)},e.prototype.open=function(){return this.isActive()?(l.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(l.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+t),null!=this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new l.WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0)},e.prototype.close=function(e){var t;if((null!=e?e:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return null!=(t=this.webSocket)?t.close():void 0},e.prototype.reopen=function(){var e;if(l.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(t){return e=t,l.log("Failed to reopen WebSocket",e)}finally{l.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},e.prototype.getProtocol=function(){var e;return null!=(e=this.webSocket)?e.protocol:void 0},e.prototype.isOpen=function(){return this.isState("open")},e.prototype.isActive=function(){return this.isState("open","connecting")},e.prototype.isProtocolSupported=function(){var e;return e=this.getProtocol(),0<=s.call(r,e)},e.prototype.isState=function(){var e,t;return t=1<=arguments.length?o.call(arguments,0):[],e=this.getState(),0<=s.call(t,e)},e.prototype.getState=function(){var e,t;for(t in WebSocket)if(WebSocket[t]===(null!=(e=this.webSocket)?e.readyState:void 0))return t.toLowerCase();return null},e.prototype.installEventHandlers=function(){var e,t;for(e in this.events)t=this.events[e].bind(this),this.webSocket["on"+e]=t},e.prototype.uninstallEventHandlers=function(){var e;for(e in this.events)this.webSocket["on"+e]=function(){}},e.prototype.events={message:function(e){var t,n,r;if(this.isProtocolSupported())switch(t=(r=JSON.parse(e.data)).identifier,n=r.message,r.type){case i.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case i.ping:return this.monitor.recordPing();case i.confirmation:return this.subscriptions.notify(t,"connected");case i.rejection:return this.subscriptions.reject(t);default:return this.subscriptions.notify(t,"received",n)}},open:function(){if(l.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return l.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(){if(l.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){return l.log("WebSocket onerror event")}},e}()}.call(this),function(){var c=[].slice;l.Subscriptions=function(){function e(e){this.consumer=e,this.subscriptions=[]}return e.prototype.create=function(e,t){var n,r,i;return r="object"==typeof(n=e)?n:{channel:n},i=new l.Subscription(this.consumer,r,t),this.add(i)},e.prototype.add=function(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.sendCommand(e,"subscribe"),e},e.prototype.remove=function(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e},e.prototype.reject=function(e){var t,n,r,i,o;for(i=[],t=0,n=(r=this.findAll(e)).length;t<n;t++)o=r[t],this.forget(o),this.notify(o,"rejected"),i.push(o);return i},e.prototype.forget=function(i){var o;return this.subscriptions=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.subscriptions).length;e<t;e++)(o=n[e])!==i&&r.push(o);return r}.call(this),i},e.prototype.findAll=function(e){var t,n,r,i,o;for(i=[],t=0,n=(r=this.subscriptions).length;t<n;t++)(o=r[t]).identifier===e&&i.push(o);return i},e.prototype.reload=function(){var e,t,n,r,i;for(r=[],e=0,t=(n=this.subscriptions).length;e<t;e++)i=n[e],r.push(this.sendCommand(i,"subscribe"));return r},e.prototype.notifyAll=function(e){var t,n,r,i,o,a,s;
21for(n=e,t=2<=arguments.length?c.call(arguments,1):[],a=[],r=0,i=(o=this.subscriptions).length;r<i;r++)s=o[r],a.push(this.notify.apply(this,[s,n].concat(c.call(t))));return a},e.prototype.notify=function(e,t){var n,r,i,o,a,s,l;for(s=e,r=t,n=3<=arguments.length?c.call(arguments,2):[],a=[],i=0,o=(l="string"==typeof s?this.findAll(s):[s]).length;i<o;i++)s=l[i],a.push("function"==typeof s[r]?s[r].apply(s,n):void 0);return a},e.prototype.sendCommand=function(e,t){var n;return n=e.identifier,this.consumer.send({command:t,identifier:n})},e}()}.call(this),function(){l.Subscription=function(){function e(e,t,n){this.consumer=e,null==t&&(t={}),this.identifier=JSON.stringify(t),r(this,n)}var r;return e.prototype.perform=function(e,t){return null==t&&(t={}),t.action=e,this.send(t)},e.prototype.send=function(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})},e.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},r=function(e,t){var n,r;if(null!=t)for(n in t)r=t[n],e[n]=r;return e},e}()}.call(this),function(){l.Consumer=function(){function e(e){this.url=e,this.subscriptions=new l.Subscriptions(this),this.connection=new l.Connection(this)}return e.prototype.send=function(e){return this.connection.send(e)},e.prototype.connect=function(){return this.connection.open()},e.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},e.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},e}()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=l:"function"==typeof define&&define.amd&&define(l)}.call(this),function(){this.App||(this.App={}),App.cable=ActionCable.createConsumer()}.call(this),$(document).on("turbolinks:before-cache",function(){$(".select2-input").first().data("select2")!=undefined&&$(".select2-input").select2("destroy"),$(".js-example-basic-multiple-sectors").first().data("select2")!=undefined&&$(".js-example-basic-multiple-sectors").select2("destroy"),$(".js-example-basic-multiple-demographics").select2("destroy"),$(".js-example-basic-multiple-development-actors").select2("destroy"),$(".js-example-basic-multiple-countries").select2("destroy"),$(".js-example-basic-multiple-regions").select2("destroy"),$(".js-example-basic-multiple-subregions").select2("destroy"),$(".js-example-basic-multiple-research-methods").select2("destroy"),$(".js-example-basic-multiple-organisations").select2("destroy"),$(".js-example-basic-multiple-organisation-types").select2("destroy"),$(".js-example-basic-multiple-provinces").select2("destroy"),$(".js-example-basic-search-profile").select2("destroy"),mobileMenu.destroy(),$("#admin-dashboard-search-terms").DataTable().destroy(),$("#admin-dashboard-profile-management").DataTable().destroy(),$("#admin-dashboard-user-management").DataTable().destroy(),$("#admin-dashboard-vocab-sector-management").DataTable().destroy(),$("#admin-dashboard-vocab-demographic-management").DataTable().destroy(),$("#admin-dashboard-vocab-development-actor-management").DataTable().destroy(),$("#admin-dashboard-vocab-research-method-management").DataTable().destroy(),$("#admin-dashboard-vocab-organisation-management").DataTable().destroy(),$("#admin-dashboard-vocab-position-titles-management").DataTable().destroy(),$("#admin-dashboard-vocab-sdg-management").DataTable().destroy()}),document.addEventListener("turbolinks:load",function(){mobileMenu.init({menuContainerClassName:"ng-navbar-links-container"}),$(".js-example-basic-multiple-sectors").select2({placeholder:"Select a sector option",width:"100%",allowClear:!0}),$(".js-example-basic-multiple-demographics").select2({placeholder:"Select a demographic option",width:"100%",allowClear:!0}),$(".js-example-basic-multiple-development-actors").select2({placeholder:"Select a development actor option",width:"100%",allowClear:!0}),$(".js-example-basic-multiple-countries").select2({placeholder:"Select a country option",width:"100%",allowClear:!0}),$(".js-example-basic-multiple-regions").select2({placeholder:"Select a regi
21on option",width:"100%",allowClear:!0}),$(".js-example-basic-multiple-subregions").select2({placeholder:"Select a subregion option",width:"100%",allowClear:!0}),$(".js-example-basic-multiple-research-methods").select2({placeholder:"Select a research method option",width:"100%",allowClear:!0}),$(".js-example-basic-multiple-organisations").select2({placeholder:"Select an organisation",width:"100%",allowClear:!0}),$(".js-example-basic-multiple-organisation-types").select2({placeholder:"Select an organisation type",width:"100%",allowClear:!0}),$(".js-example-basic-multiple-provinces").select2({placeholder:"Select a province",width:"100%",allowClear:!0}),$(".js-example-basic-search-profile").select2({placeholder:"Search for your profile",width:"100%",allowClear:!0}),$("#admin-dashboard-search-terms").DataTable(),$("#admin-dashboard-profile-management").DataTable(),$("#admin-dashboard-user-management").DataTable(),$("#admin-dashboard-vocab-sector-management").DataTable(),$("#admin-dashboard-vocab-demographic-management").DataTable(),$("#admin-dashboard-vocab-development-actor-management").DataTable(),$("#admin-dashboard-vocab-research-method-management").DataTable(),$("#admin-dashboard-vocab-organisation-management").DataTable(),$("#admin-dashboard-vocab-position-titles-management").DataTable(),$("#admin-dashboard-vocab-sdg-management").DataTable()});var mobileMenu=function(){"use strict";var n,e=null,t=null,r=null,i=null,o=null,a=null,s={},l={menuContainerClassName:""},c=function(e){var n={},r=!1,t=0;"[object Boolean]"===Object.prototype.toString.call(e)&&(r=arguments[0],t++);for(var i=function(e){for(var t in e)e.hasOwnProperty(t)&&(r&&"[object Object]"===Object.prototype.toString.call(e[t])?n[t]=c(n[t],e[t]):n[t]=e[t])};t<arguments.length;t++){i(arguments[t])}return n},u=function(){if(""===n.menuContainerClassName)throw"Menu Container Class has not been set";e=$(document),(t=e.find("."+n.menuContainerClassName)).parent().append('<div class="menuOpenButtonContainer"><button class="btn menuOpenButton" type="button"><span class="sr-only">Menu</span> <svg xmlns="http://www.w3.org/2000/svg" class="svg-icon" viewBox="0 0 20 20"><path d="M 3.314 4.8 h 13.372 c 0.41 0 0.743 -0.333 0.743 -0.743 c 0 -0.41 -0.333 -0.743 -0.743 -0.743 H 3.314 c -0.41 0 -0.743 0.333 -0.743 0.743 C 2.571 4.467 2.904 4.8 3.314 4.8 Z M 16.686 15.2 H 3.314 c -0.41 0 -0.743 0.333 -0.743 0.743 s 0.333 0.743 0.743 0.743 h 13.372 c 0.41 0 0.743 -0.333 0.743 -0.743 S 17.096 15.2 16.686 15.2 Z M 16.686 9.257 H 3.314 c -0.41 0 -0.743 0.333 -0.743 0.743 s 0.333 0.743 0.743 0.743 h 13.372 c 0.41 0 0.743 -0.333 0.743 -0.743 S 17.096 9.257 16.686 9.257 Z"></path></svg></button></div>'),t.append('<button class="btn btn-red menuCloseButton" type="button">Close</button></div>'),r=e.find(".menuOpenButton"),i=e.find(".menuCloseButton"),o=t.find("select, input, textarea, button, a").filter(":visible").first(),a=t.find("select, input, textarea, button, a").filter(":visible").last()},d=function(){r.on("click",h.bind(this)),i.on("click",f.bind(this)),o.on("keydown",p.bind(this)),a.on("keydown",m.bind(this))},h=function(){t.addClass("open"),window.setTimeout(g.bind(this),300),console.log("Mobile Menu: Open")},f=function(){t.removeClass("open"),r.focus(),console.log("Mobile Menu: Close")},p=function(e){9===e.keyCode&&e.shiftKey&&!0===t.hasClass("open")&&(e.preventDefault(),a.focus())},m=function(e){9!==e.keyCode||e.shiftKey||!0!==t.hasClass("open")||(e.preventDefault(),o.focus())},g=function(){i.focus()};return s.destroy=function(){f(),i.remove(),r.remove(),a=o=i=r=t=e=null},s.init=function(e){n=c(l,e||{});try{u(),d()}catch(t){console.log("Mobile Menu Plugin: "+t)}},s}();

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.