PageSourceSearch

http://www.onzeheuresonze.com/assets/application-c2024c65746042855…bfdca33d4a9763a5048e8974a6337486e74dc6c5.js

js onzeheuresonze.com collected 2026-10-02 11:11:13 UTC 685,926 bytes, 21 lines download raw bytes

1function _extends(){return(_extends=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}).apply(this,arguments)}function _defineProperties(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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _extends(){return(_extends=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}).apply(this,arguments)}function _defineProperties(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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _defineProperties(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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function _extends(){return(_extends=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}).apply(this,arguments)}function _defineProperties(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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _extends(){return(_extends=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}).apply(this,arguments)}function _defineProperties(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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _extends(){return(_extends=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}).apply(this,arguments)}function _defineProperties(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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _extends(){return(_extends=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}).apply(this,arguments)}function _defineProperties(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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _extends(){return(_extends=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}).apply(this,arguments)}function _defineProperties(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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _defineProperties(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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _defineProperties(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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}!function(e,t){"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(w,t){function a(e){var t=!!e&&"length"in e&&e.length,n=pe.type(e);return"function"!==n&&!pe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function n(e,n,r){if(pe.isFunction(n))return pe.grep(e,function(e,t){return!!n.call(e,t,e)!==r});if(n.nodeType)return pe.grep(e,function(e){return e===n!==r});if("string"==typeof n){if(Ae.test(n))return pe.filter(n,e,r);n=pe.filter(n,e)}return pe.grep(e,function(e){return-1<pe.inArray(e,n)!==r})}function r(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function c(e){var n={};return pe.each(e.match(Le)||[],function(e,t){n[t]=!0}),n}function i(){ie.addEventListener?(ie.removeEventListener("DOMContentLoaded",o),w.removeEventListener("load",o)):(ie.detachEvent("onreadystatechange",o),w.detachEvent("onload",o))}function o(){(ie.addEventListener||"load"===w.event.type||"complete"===ie.readyState)&&(i(),pe.ready())}function l(t,n,r){if(r===undefined&&1===t.nodeType){var i="data-"+n.replace(Me,"-$1").toLowerCase();if("string"==typeof(r=t.getAttribute(i))){try{r="true"===r||"false"!==r&&("null"===r?null:+r+""===r?+r:Pe.test(r)?pe.parseJSON(r):r)}catch(e){}pe.data(t,n,r)}else r=undefined}return r}function u(e){var t;for(t in e)if(("data"!==t||!pe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}
1function s(e,t,n,r){if(ke(e)){var i,o,s=pe.expando,a=e.nodeType,l=a?pe.cache:e,u=a?e[s]:e[s]&&s;if(u&&l[u]&&(r||l[u].data)||n!==undefined||"string"!=typeof t)return u||(u=a?e[s]=re.pop()||pe.guid++:s),l[u]||(l[u]=a?{}:{toJSON:pe.noop}),"object"!=typeof t&&"function"!=typeof t||(r?l[u]=pe.extend(l[u],t):l[u].data=pe.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),n!==undefined&&(o[pe.camelCase(t)]=n),"string"==typeof t?null==(i=o[t])&&(i=o[pe.camelCase(t)]):i=o,i}}function f(e,t,n){if(ke(e)){var r,i,o=e.nodeType,s=o?pe.cache:e,a=o?e[pe.expando]:pe.expando;if(s[a]){if(t&&(r=n?s[a]:s[a].data)){i=(t=pe.isArray(t)?t.concat(pe.map(t,pe.camelCase)):t in r?[t]:(t=pe.camelCase(t))in r?[t]:t.split(" ")).length;for(;i--;)delete r[t[i]];if(n?!u(r):!pe.isEmptyObject(r))return}(n||(delete s[a].data,u(s[a])))&&(o?pe.cleanData([e],!0):de.deleteExpando||s!=s.window?delete s[a]:s[a]=undefined)}}}function d(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return pe.css(e,t,"")},l=a(),u=n&&n[3]||(pe.cssNumber[t]?"":"px"),c=(pe.cssNumber[t]||"px"!==u&&+l)&&He.exec(pe.css(e,t));if(c&&c[3]!==u)for(u=u||c[3],n=n||[],c=+l||1;c/=o=o||".5",pe.style(e,t,c+u),o!==(o=a()/l)&&1!==o&&--s;);return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}function m(e){var t=qe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function v(e,t){var n,r,i=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):undefined;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||pe.nodeName(r,t)?o.push(r):pe.merge(o,v(r,t));return t===undefined||t&&pe.nodeName(e,t)?pe.merge([e],o):o}function y(e,t){for(var n,r=0;null!=(n=e[r]);r++)pe._data(n,"globalEval",!t||pe._data(t[r],"globalEval"))}function b(e){Ke.test(e.type)&&(e.defaultChecked=e.checked)}function g(e,t,n,r,i){for(var o,s,a,l,u,c,f,d=e.length,h=m(t),p=[],g=0;g<d;g++)if((s=e[g])||0===s)if("object"===pe.type(s))pe.merge(p,s.nodeType?[s]:s);else if(Ye.test(s)){for(l=l||h.appendChild(t.createElement("div")),u=(je.exec(s)||["",""])[1].toLowerCase(),f=Xe[u]||Xe._default,l.innerHTML=f[1]+pe.htmlPrefilter(s)+f[2],o=f[0];o--;)l=l.lastChild;if(!de.leadingWhitespace&&Ge.test(s)&&p.push(t.createTextNode(Ge.exec(s)[0])),!de.tbody)for(o=(s="table"!==u||Qe.test(s)?"<table>"!==f[1]||Qe.test(s)?0:l:l.firstChild)&&s.childNodes.length;o--;)pe.nodeName(c=s.childNodes[o],"tbody")&&!c.childNodes.length&&s.removeChild(c);for(pe.merge(p,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=h.lastChild}else p.push(t.createTextNode(s));for(l&&h.removeChild(l),de.appendChecked||pe.grep(v(p,"input"),b),g=0;s=p[g++];)if(r&&-1<pe.inArray(s,r))i&&i.push(s);else if(a=pe.contains(s.ownerDocument,s),l=v(h.appendChild(s),"script"),a&&y(l),n)for(o=0;s=l[o++];)ze.test(s.type||"")&&n.push(s);return l=null,h}function h(){return!0}function p(){return!1}function E(){try{return ie.activeElement}catch(e){}}function T(e,t,n,r,i,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=undefined),t)T(e,a,n,r,t[a],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=p;else if(!i)return e;return 1===o&&(s=i,(i=function(e){return pe().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,i,r,n)})}function S(e,t){return pe.nodeName(e,"table")&&pe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function A(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function C(e){var t=lt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function x(e,t){if(1===t.nodeType&&pe.hasData(e)){var n,r,i,o=pe._data(e),s=pe._data(t,o),a=o.events;if(a)for(n in delete s.handle,s.events={},a)for(r=0,i=a[n].length;r<i;r++)pe.event.add(t,n,a[n][r]);s.data&&(s.data=pe.extend({},s.data))}}function _(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!de.noCloneEvent&&t[pe.expando]){for(r in(i=pe._data(t)).events)pe.removeEvent(t,r,i.handle);t.removeAttribute(pe.expando)}"script"===n&&t.text!==e.text?(A(t).text=e.text,C(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),de.html5Clone&&e.innerHTML&&!pe.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ke.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function N(n,r,i,o){r=se.apply([],r);var e,t,s,a,l,u,c=0,f=n.length,d=f-1,h=r[0],p=pe.isFunction(h);if(p||1<f&&"string"==typeof h&&!de.checkClone&&at.test(h))return n.each(function(e){var t=n.eq(e);p&&(r[0]=h.call(this,e,t.html())),N(t,r,i,o)});if(f&&(e=(u=g(r,n[0].ownerDocument,!1,n,o)).firstChild,1===u.childNodes.length&&(u=e),e||o)){for(s=(a=pe.map(v(u,"script"),A)).length;c<f;c++)t=u,c!==d&&(t=pe.clone(t,!0,!0),s&&pe.merge(a,v(t,"script"))),i.call(n[c],t,c);if(s)for(l=a[a.length-1].ownerDocument,pe.map(a,C),c=0;c<s;
1c++)t=a[c],ze.test(t.type||"")&&!pe._data(t,"globalEval")&&pe.contains(l,t)&&(t.src?pe._evalUrl&&pe._evalUrl(t.src):pe.globalEval((t.text||t.textContent||t.innerHTML||"").replace(ut,"")));u=e=null}return n}function O(e,t,n){for(var r,i=t?pe.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||pe.cleanData(v(r)),r.parentNode&&(n&&pe.contains(r.ownerDocument,r)&&y(v(r,"script")),r.parentNode.removeChild(r));return e}function D(e,t){var n=pe(t.createElement(e)).appendTo(t.body),r=pe.css(n[0],"display");return n.detach(),r}function L(e){var t=ie,n=dt[e];return n||("none"!==(n=D(e,t))&&n||((t=((ft=(ft||pe("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||ft[0].contentDocument).document).write(),t.close(),n=D(e,t),ft.detach()),dt[e]=n),n}function R(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function k(e){if(e in _t)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=xt.length;n--;)if((e=xt[n]+t)in _t)return e}function P(e,t){for(var n,r,i,o=[],s=0,a=e.length;s<a;s++)(r=e[s]).style&&(o[s]=pe._data(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&Ve(r)&&(o[s]=pe._data(r,"olddisplay",L(r.nodeName)))):(i=Ve(r),(n&&"none"!==n||!i)&&pe._data(r,"olddisplay",i?n:pe.css(r,"display"))));for(s=0;s<a;s++)(r=e[s]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}function M(e,t,n){var r=wt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function I(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=pe.css(e,n+Ue[o],!0,i)),r?("content"===n&&(s-=pe.css(e,"padding"+Ue[o],!0,i)),"margin"!==n&&(s-=pe.css(e,"border"+Ue[o]+"Width",!0,i))):(s+=pe.css(e,"padding"+Ue[o],!0,i),"padding"!==n&&(s+=pe.css(e,"border"+Ue[o]+"Width",!0,i)));return s}function F(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=vt(e),s=de.boxSizing&&"border-box"===pe.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=yt(e,t,o))<0||null==i)&&(i=e.style[t]),pt.test(i))return i;r=s&&(de.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+I(e,t,n||(s?"border":"content"),r,o)+"px"}function $(e,t,n,r,i){return new $.prototype.init(e,t,n,r,i)}function B(){return w.setTimeout(function(){Nt=undefined}),Nt=pe.now()}function H(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=Ue[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function U(e,t,n){for(var r,i=(K.tweeners[t]||[]).concat(K.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function V(t,e,n){var r,i,o,s,a,l,u,c=this,f={},d=t.style,h=t.nodeType&&Ve(t),p=pe._data(t,"fxshow");for(r in n.queue||(null==(a=pe._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,pe.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(u=pe.css(t,"display"))?pe._data(t,"olddisplay")||L(t.nodeName):u)&&"none"===pe.css(t,"float")&&(de.inlineBlockNeedsLayout&&"inline"!==L(t.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",de.shrinkWrapBlocks()||c.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),e)if(i=e[r],Mt.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!p||p[r]===undefined)continue;h=!0}f[r]=p&&p[r]||pe.style(t,r)}else u=undefined;if(pe.isEmptyObject(f))"inline"===("none"===u?L(t.nodeName):u)&&(d.display=u);else for(r in p?"hidden"in p&&(h=p.hidden):p=pe._data(t,"fxshow",{}),o&&(p.hidden=!h),h?pe(t).show():c.done(function(){pe(t).hide()}),c.done(function(){var e;for(e in pe._removeData(t,"fxshow"),f)pe.style(t,e,f[e])}),f)s=U(h?p[r]:0,r,c),r in p||(p[r]=s.start,h&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}function W(e,t){var n,r,i,o,s;for(n in e)if(i=t[r=pe.camelCase(n)],o=e[n],pe.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=pe.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete e[r],o)n in e||(e[
1n]=o[n],t[n]=i);else t[r]=i}function K(o,e,t){var n,s,r=0,i=K.prefilters.length,a=pe.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=Nt||B(),t=Math.max(0,u.startTime+u.duration-e),n=1-(t/u.duration||0),r=0,i=u.tweens.length;r<i;r++)u.tweens[r].run(n);return a.notifyWith(o,[u,n,t]),n<1&&i?t:(a.resolveWith(o,[u]),!1)},u=a.promise({elem:o,props:pe.extend({},e),opts:pe.extend(!0,{specialEasing:{},easing:pe.easing._default},t),originalProperties:e,originalOptions:t,startTime:Nt||B(),duration:t.duration,tweens:[],createTween:function(e,t){var n=pe.Tween(o,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var t=0,n=e?u.tweens.length:0;if(s)return this;for(s=!0;t<n;t++)u.tweens[t].run(1);return e?(a.notifyWith(o,[u,1,0]),a.resolveWith(o,[u,e])):a.rejectWith(o,[u,e]),this}}),c=u.props;for(W(c,u.opts.specialEasing);r<i;r++)if(n=K.prefilters[r].call(u,o,c,u.opts))return pe.isFunction(n.stop)&&(pe._queueHooks(u.elem,u.opts.queue).stop=pe.proxy(n.stop,n)),n;return pe.map(c,U,u),pe.isFunction(u.opts.start)&&u.opts.start.call(o,u),pe.fx.timer(pe.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function j(e){return pe.attr(e,"class")||""}function z(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(Le)||[];if(pe.isFunction(t))for(;n=i[r++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function G(t,i,o,s){function a(e){var r;return l[e]=!0,pe.each(t[e]||[],function(e,t){var n=t(i,o,s);return"string"!=typeof n||u||l[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),a(n),!1)}),r}var l={},u=t===an;return a(i.dataTypes[0])||!l["*"]&&a("*")}function q(e,t){var n,r,i=pe.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&pe.extend(!0,e,n),e}function X(e,t,n){for(var r,i,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),i===undefined&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){l.unshift(s);break}if(l[0]in n)o=l[0];else{for(s in n){if(!l[0]||e.converters[s+" "+l[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),n[o]}function Y(t,n,r,i){var o,s,a,l,u,c={},f=t.dataTypes.slice();if(f[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(s=f.shift();s;)if(t.responseFields[s]&&(r[t.responseFields[s]]=n),!u&&i&&t.dataFilter&&(n=t.dataFilter(n,t.dataType)),u=s,s=f.shift())if("*"===s)s=u;else if("*"!==u&&u!==s){if(!(a=c[u+" "+s]||c["* "+s]))for(o in c)if((l=o.split(" "))[1]===s&&(a=c[u+" "+l[0]]||c["* "+l[0]])){!0===a?a=c[o]:!0!==c[o]&&(s=l[0],f.unshift(l[1]));break}if(!0!==a)if(a&&t["throws"])n=a(n);else try{n=a(n)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+s}}}return{state:"success",data:n}}function Q(e){return e.style&&e.style.display||pe.css(e,"display")}function Z(e){if(!pe.contains(e.ownerDocument||ie,e))return!0;for(;e&&1===e.nodeType;){if("none"===Q(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}function J(n,e,r,i){var t;if(pe.isArray(e))pe.each(e,function(e,t){r||dn.test(n)?i(n,t):J(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==pe.type(e))i(n,e);else for(t in e)J(n+"["+t+"]",e[t],r,i)}function ee(){try{return new w.XMLHttpRequest}catch(e){}}function te(){try{return new w.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function ne(e){return pe.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var re=[],ie=w.document,oe=re.slice,se=re.concat,ae=re.push,le=re.indexOf,ue={},ce=ue.toString,fe=ue.hasOwnProperty,de={},he="1.12.4",pe=function(e,t){return new pe.fn.init(e,t)},ge=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,me=/^-ms-/,ve=/-([\da-z])/gi,ye=function(e,t){return t.toUpperCase()};pe.fn=pe.prototype={jquery:he,constructor:pe,selector:"",length:0,toArray:function(){return oe.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:oe.call(this)},pushStack:function(e){var t=pe.merge(this.constructor(),e);
1return t.prevObject=this,t.context=this.context,t},each:function(e){return pe.each(this,e)},map:function(n){return this.pushStack(pe.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(oe.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},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:ae,sort:re.sort,splice:re.splice},pe.extend=pe.fn.extend=function(e){var t,n,r,i,o,s,a=e||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[l]||{},l++),"object"==typeof a||pe.isFunction(a)||(a={}),l===u&&(a=this,l--);l<u;l++)if(null!=(o=arguments[l]))for(i in o)t=a[i],a!==(r=o[i])&&(c&&r&&(pe.isPlainObject(r)||(n=pe.isArray(r)))?(n?(n=!1,s=t&&pe.isArray(t)?t:[]):s=t&&pe.isPlainObject(t)?t:{},a[i]=pe.extend(c,s,r)):r!==undefined&&(a[i]=r));return a},pe.extend({expando:"jQuery"+(he+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===pe.type(e)},isArray:Array.isArray||function(e){return"array"===pe.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!pe.isArray(e)&&0<=t-parseFloat(t)+1},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(t){var n;if(!t||"object"!==pe.type(t)||t.nodeType||pe.isWindow(t))return!1;try{if(t.constructor&&!fe.call(t,"constructor")&&!fe.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!de.ownFirst)for(n in t)return fe.call(t,n);for(n in t);return n===undefined||fe.call(t,n)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[ce.call(e)]||"object":typeof e},globalEval:function(e){e&&pe.trim(e)&&(w.execScript||function(e){w.eval.call(w,e)})(e)},camelCase:function(e){return e.replace(me,"ms-").replace(ve,ye)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(a(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},trim:function(e){return null==e?"":(e+"").replace(ge,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(a(Object(e))?pe.merge(n,"string"==typeof e?[e]:e):ae.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(le)return le.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!=n)for(;t[r]!==undefined;)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(a(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return se.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(i=e[t],t=e,e=i),pe.isFunction(e)?(n=oe.call(arguments,2),(r=function(){return e.apply(t||this,n.concat(oe.call(arguments)))}).guid=e.guid=e.guid||pe.guid++,r):undefined},now:function(){return+new Date},support:de}),"function"==typeof Symbol&&(pe.fn[Symbol.iterator]=re[Symbol.iterator]),pe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var be=function(n){function E(e,t,n,r){var i,o,s,a,l,u,c,f,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&&((t?t.ownerDocument||t:U)!==k&&R(t),t=t||k,M)){if(11!==h&&(u=ye.exec(e)))if(i=u[1]){if(9===h){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(d&&(s=d.getElementById(i))&&B(t,s)&&s.id===i)return n.push(s),n}else{if(u[2])return J.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&S.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(i)),n}if(S.qsa&&!z[e+" "]&&(!I||!I.test(e))){if(1!==h)d=t,f=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(Ee,"\\$&"):t.setAttribute("id",a=H),o=(c=x(e)).length,l=he.test(a)?"#"+a:"[id='"+a+"']";o--;)c[o]=l+" "+m(c[o]);f=c.join(","),d=be.test(e)&&g(t.parentNode)||t}if(f)try{return J.apply(n,d.querySelectorAll(f)),n}catch(p){}finally{a===H&&t.removeAttribute("id")}}}return N(e.replace(le,"$1"),t,n,r)}function t(){function n(e,t){return r.push(e+" ")>w.cacheLength&&delete n[r.shift()],n[e+" "]=t}var r=[];return n}function l(e){return e[H]=!0,e}function i(t){var n=k.createElement("div");try{return!!t(n)}catch(e){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function r(e,t){for(var n=e.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=t}function u(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||q)-(~e.sourceIndex||q);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function o(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function s(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function a(s){return l(function(o){return o=+o,l(function(e,t){for(var n,r=s([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function g(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function c(){}function m(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function f(a,e,t){var l=e.dir,u=t&&"parentNode"===l,c=W++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||u)return a(e,t,n)}:function(e,t,n){var r,i,o,s=[V,c];if(n){for(;e=e[l];)if((1===e.nodeType||u)&&a(e,t,n))return!0}else for(;e=e[l];
vendor: 10,022 bytes, lines 1-2
1)if(1===e.nodeType||u){if((r=(i=(o=e[H]||(e[H]={}))[e.uniqueID]||(o[e.uniqueID]={}))[l])&&r[0]===V&&r[1]===c)return s[2]=r[2];if((i[l]=s)[2]=a(e,t,n))return!0}}}function d(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++)E(e,t[r],n);return n}function T(e,t,n,r,i){for(var o,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),u&&t.push(a)));return s}function b(h,p,g,m,v,e){return m&&!m[H]&&(m=b(m)),v&&!v[H]&&(v=b(v,e)),l(function(e,t,n,r){var i,o,s,a=[],l=[],u=t.length,c=e||y(p||"*",n.nodeType?[n]:n,[]),f=!h||!e&&p?c:T(c,a,h,n,r),d=g?v||(e?h:u||m)?[]:t:f;if(g&&g(f,d,n,r),m)for(i=T(d,l),m(i,[],n,r),o=i.length;o--;)(s=i[o])&&(d[l[o]]=!(f[l[o]]=s));if(e){if(v||h){if(v){for(i=[],o=d.length;o--;)(s=d[o])&&i.push(f[o]=s);v(null,d=[],i,r)}for(o=d.length;o--;)(s=d[o])&&-1<(i=v?te(e,s):a[o])&&(e[i]=!(t[i]=s))}}else d=T(d===t?d.splice(u,d.length):d),v?v(null,t,d,r):J.apply(t,d)})}function h(e){for(var i,t,n,r=e.length,o=w.relative[e[0].type],s=o||w.relative[" "],a=o?1:0,l=f(function(e){return e===i},s,!0),u=f(function(e){return-1<te(i,e)},s,!0),c=[function(e,t,n){var r=!o&&(n||t!==O)||((i=t).nodeType?l(e,t,n):u(e,t,n));return i=null,r}];a<r;a++)if(t=w.relative[e[a].type])c=[f(d(c),t)];else{if((t=w.filter[e[a].type].apply(null,e[a].matches))[H]){for(n=++a;n<r&&!w.relative[e[n].type];n++);return b(1<a&&d(c),1<a&&m(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(le,"$1"),t,a<n&&h(e.slice(a,n)),n<r&&h(e=e.slice(n)),n<r&&m(e))}c.push(t)}return d(c)}function p(m,v){var y=0<v.length,b=0<m.length,e=function(e,t,n,r,i){var o,s,a,l=0,u="0",c=e&&[],f=[],d=O,h=e||b&&w.find.TAG("*",i),p=V+=null==d?1:Math.random()||.1,g=h.length;for(i&&(O=t===k||t||i);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(s=0,t||o.ownerDocument===k||(R(o),n=!M);a=m[s++];)if(a(o,t||k,n)){r.push(o);break}i&&(V=p)}y&&((o=!a&&o)&&l--,e&&c.push(o))}if(l+=u,y&&u!==l){for(s=0;a=v[s++];)a(c,f,t,n);if(e){if(0<l)for(;u--;)c[u]||f[u]||(f[u]=Q.call(r));f=T(f)}J.apply(r,f),i&&!e&&0<f.length&&1<l+v.length&&E.uniqueSort(r)}return i&&(V=p,O=d),c};return y?l(e):e}var v,S,w,A,C,x,_,N,O,D,L,R,k,P,M,I,F,$,B,H="sizzle"+1*new Date,U=n.document,V=0,W=0,K=t(),j=t(),z=t(),G=function(e,t){return e===t&&(L=!0),0},q=1<<31,X={}.hasOwnProperty,Y=[],Q=Y.pop,Z=Y.push,J=Y.push,ee=Y.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="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",oe="\\["+re+"*("+ie+")(?:"+re+"*([*^$|!~]?=)"+re+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+re+"*\\]",se=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",ae=new RegExp(re+"+","g"),le=new RegExp("^"+re+"+|((?:^|[^\\\\])(?:\\\\.)*)"+re+"+$","g"),ue=new RegExp("^"+re+"*,"+re+"*"),ce=new RegExp("^"+re+"*([>+~]|"+re+")"+re+"*"),fe=new RegExp("="+re+"*([^\\]'\"]*?)"+re+"*\\]","g"),de=new RegExp(se),he=new RegExp("^"+ie+"$"),pe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+se),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")},ge=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ve=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,Ee=/'|\\/g,Te=new RegExp("\\\\([\\da-f]{1,6}"+re+"?|("+re+")|.)","ig"),Se=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},we=function(){R()};try{J.apply(Y=ee.call(U.childNodes),U.childNodes),Y[U.childNodes.length].nodeType}catch(e){J={apply:Y.length?function(e,t){Z.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=E.support={},C=E.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},R=E.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:U;return r!==k&&9===r.nodeType&&r.documentElement&&(P=(k=r).documentElement,M=!C(k),(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),S.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),S.getElementsByTagName=i(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),S.getElementsByClassName=ve.test(k.getElementsByClassName),S.getById=i(function(e){return P.appendChild(e).id=H,!k.getElementsByName||!k.getElementsByName(H).length}),S.getById?(w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&M){var n=t.getElementById(e);return n?[n]:[]}},w.filter.ID=function(e){var t=e.replace(Te,Se);return function(e){return e.getAttribute("id")===t}}):(delete w.find.ID,w.filter.ID=function(e){var n=e.replace(Te,Se);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),w.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){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=S.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&M)return t.getElementsByClassName(e)},F=[],I=[],(S.qsa=ve.test(k.querySelectorAll))&&(i(function(e){P.appendChild(e).innerHTML="<a id='"+H+"'></a><select id='"+H+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&I.push("[*^$]="+re+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||I.push("\\["+re+"*(?:value|"+ne+")"),e.querySelectorAll("[id~="+H+"-]").length||I.push("~="),e.querySelectorAll(":checked").length||I.push(":checked"),e.querySelectorAll("a#"+H+"+*").length||I.push(".#.+[+~]")}),i(function(e){var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&I.push("name"+re+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||I.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),I.push(",.*:")})),(S.matchesSelector=ve.test($=P.matches||P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&i(function(e){S.disconnectedMatch=$.call(e,"div"),$.call(e,"[s!='']:x"),F.push("!=",se)}),I=I.length&&new RegExp(I.join("|")),F=F.length&&new RegExp(F.join("|")),t=ve.test(P.compareDocumentPosition),B=t||ve.test(P.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},G=t?function(e,t){if(e===t)return L=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1
2)||!S.sortDetached&&t.compareDocumentPosition(e)===n?e===k||e.ownerDocument===U&&B(U,e)?-1:t===k||t.ownerDocument===U&&B(U,t)?1:D?te(D,e)-te(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return L=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!i||!o)return e===k?-1:t===k?1:i?-1:o?1:D?te(D,e)-te(D,t):0;if(i===o)return u(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?u(s[r],a[r]):s[r]===U?-1:a[r]===U?1:0}),k},E.matches=function(e,t){return E(e,null,null,t)},E.matchesSelector=function(t,n){if((t.ownerDocument||t)!==k&&R(t),n=n.replace(fe,"='$1']"),S.matchesSelector&&M&&!z[n+" "]&&(!F||!F.test(n))&&(!I||!I.test(n)))try{var r=$.call(t,n);if(r||S.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(e){}return 0<E(n,k,null,[t]).length},E.contains=function(e,t){return(e.ownerDocument||e)!==k&&R(e),B(e,t)},E.attr=function(e,t){(e.ownerDocument||e)!==k&&R(e);var n=w.attrHandle[t.toLowerCase()],r=n&&X.call(w.attrHandle,t.toLowerCase())?n(e,t,!M):undefined;return r!==undefined?r:S.attributes||!M?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},E.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},E.uniqueSort=function(e){var t,n=[],r=0,i=0;if(L=!S.detectDuplicates,D=!S.sortStable&&e.slice(0),e.sort(G),L){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return D=null,e},A=E.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+=A(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=A(t);return n},(w=E.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(Te,Se),e[3]=(e[3]||e[4]||e[5]||"").replace(Te,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]||E.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]&&E.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&&de.test(n)&&(t=x(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(Te,Se).toLowerCase();return"*"===e?function(){return!0}
vendor: 6,711 bytes, line 2
2:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=K[e+" "];return t||(t=new RegExp("(^|"+re+")"+e+"("+re+"|$)"))&&K(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=E.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(ae," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,e,t,g,m){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,s,a,l,u=v!==y?"nextSibling":"previousSibling",c=e.parentNode,f=b&&e.nodeName.toLowerCase(),d=!n&&!b,h=!1;if(c){if(v){for(;u;){for(s=e;s=s[u];)if(b?s.nodeName.toLowerCase()===f:1===s.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&d){for(h=(a=(r=(i=(o=(s=c)[H]||(s[H]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]||[])[0]===V&&r[1])&&r[2],s=a&&c.childNodes[a];s=++a&&s&&s[u]||(h=a=0)||l.pop();)if(1===s.nodeType&&++h&&s===e){i[p]=[V,a,h];break}}else if(d&&(h=a=(r=(i=(o=(s=e)[H]||(s[H]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]||[])[0]===V&&r[1]),!1===h)for(;(s=++a&&s&&s[u]||(h=a=0)||l.pop())&&((b?s.nodeName.toLowerCase()!==f:1!==s.nodeType)||!++h||(d&&((i=(o=s[H]||(s[H]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]=[V,h]),s!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,s=w.pseudos[e]||w.setFilters[e.toLowerCase()]||E.error("unsupported pseudo: "+e);return s[H]?s(o):1<s.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?l(function(e,t){for(var n,r=s(e,o),i=r.length;i--;)e[n=te(e,r[i])]=!(t[n]=r[i])}):function(e){return s(e,0,t)}):s}},pseudos:{not:l(function(e){var r=[],i=[],a=_(e.replace(le,"$1"));return a[H]?l(function(e,t,n,r){for(var i,o=a(e,null,r,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))}):function(e,t,n){return r[0]=e,a(r,null,n,i),r[0]=null,!i.pop()}}),has:l(function(t){return function(e){return 0<E(t,e).length}}),contains:l(function(t){return t=t.replace(Te,Se),function(e){return-1<(e.textContent||e.innerText||A(e)).indexOf(t)}}),lang:l(function(n){return he.test(n||"")||E.error("unsupported lang: "+n),n=n.replace(Te,Se).toLowerCase(),function(e){var t;do{if(t=M?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===P},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},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!w.pseudos.empty(e)},header:function(e){return me.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:a(function(){return[0]}),last:a(function(e,t){return[t-1]}),eq:a(function(e,t,n){return[n<0?n+t:n]}),even:a(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:a(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:a(function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e}),gt:a(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[v]=o(v);for(v in{submit:!0,reset:!0})w.pseudos[v]=s(v);return c.prototype=w.filters=w.pseudos,w.setFilters=new c,x=E.tokenize=function(e,t){var n,r,i,o,s,a,l,u=j[e+" "];if(u)return t?0:u.slice(0);for(s=e,a=[],l=w.preFilter;s;){for(o in n&&!(r=ue.exec(s))||(r&&(s=s.slice(r[0].length)||s),a.push(i=[])),n=!1,(r=ce.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(le," ")}),s=s.slice(n.length)),w.filter)!(r=pe[o].exec(s))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?E.error(e):j(e,a).slice(0)},_=E.compile=function(e,t){var n,r=[],i=[],o=z[e+" "];if(!o){for(t||(t=x(e)),n=t.length;n--;)(o=h(t[n]))[H]?r.push(o):i.push(o);(o=z(e,p(i,r))).selector=e}return o},N=E.select=function(e,t,n,r){var i,o,s,a,l,u="function"==typeof e&&e,c=!r&&x(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(s=o[0]).type&&S.getById&&9===t.nodeType&&M&&w.relative[o[1].type]){if(!(t=(w.find.ID(s.matches[0].replace(Te,Se),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=pe.needsContext.test(e)?0:o.length;i--&&(s=o[i],!w.relative[a=s.type]);)if((l=w.find[a])&&(r=l(s.matches[0].replace(Te,Se),be.test(o[0].type)&&g(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&m(o)))return J.apply(n,r),n;break}}return(u||_(e,c))(r,t,!M,n,!t||be.test(e)&&g(t.parentNode)||t),n},S.sortStable=H.split("").sort(G).join("")===H,S.detectDuplicates=!!L,R(),S.sortDetached=i(function(e){return 1&e.compareDocumentPosition(k.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||r("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")})||r("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||r(ne,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),E}(w);pe.find=be,pe.expr=be.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniqueSort=pe.unique=be.uniqueSort,pe.text=be.getText,pe.isXMLDoc=be.isXML,pe.contains=be.contains;var Ee=function(e,t,n){for(var r=[],i=n!==undefined;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&pe(e).is(n))break;r.push(e)}return r},Te=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Se=pe.expr.match.needsContext,we=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ae=/^.[^:#\[\.,]*$/;
2pe.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?pe.find.matchesSelector(r,e)?[r]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodeType}))},pe.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(pe(e).filter(function(){for(t=0;t<i;t++)if(pe.contains(r[t],this))return!0}));for(t=0;t<i;t++)pe.find(e,r[t],n);return(n=this.pushStack(1<i?pe.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(n(this,e||[],!1))},not:function(e){return this.pushStack(n(this,e||[],!0))},is:function(e){return!!n(this,"string"==typeof e&&Se.test(e)?pe(e):e||[],!1).length}});var Ce,xe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(pe.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ce,"string"==typeof e){if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:xe.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 pe?t[0]:t,pe.merge(this,pe.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:ie,!0)),we.test(r[1])&&pe.isPlainObject(t))for(r in t)pe.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if((i=ie.getElementById(r[2]))&&i.parentNode){if(i.id!==r[2])return Ce.find(e);this.length=1,this[0]=i}return this.context=ie,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):pe.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(pe):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),pe.makeArray(e,this))}).prototype=pe.fn,Ce=pe(ie);var _e=/^(?:parents|prev(?:Until|All))/,Ne={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t,n=pe(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(pe.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],s=Se.test(e)||"string"!=typeof e?pe(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&pe.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?pe.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?pe.inArray(this[0],pe(e)):pe.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(pe.uniqueSort(pe.merge(this.get(),pe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ee(e,"parentNode")},parentsUntil:function(e,t,n){return Ee(e,"parentNode",n)},next:function(e){return r(e,"nextSibling")},prev:function(e){return r(e,"previousSibling")},nextAll:function(e){return Ee(e,"nextSibling")},prevAll:function(e){return Ee(e,"previousSibling")},nextUntil:function(e,t,n){return Ee(e,"nextSibling",n)},prevUntil:function(e,t,n){return Ee(e,"previousSibling",n)},siblings:function(e){return Te((e.parentNode||{}).firstChild,e)},children:function(e){return Te(e.firstChild)},contents:function(e){return pe.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:pe.merge([],e.childNodes)}},function(r,i){pe.fn[r]=function(e,t){var n=pe.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=pe.filter(t,n)),1<this.length&&(Ne[r]||(n=pe.uniqueSort(n)),_e.test(r)&&(n=n.reverse())),this.pushStack(n)}});var Oe,De,Le=/\S+/g;for(De in pe.Callbacks=function(r){r="string"==typeof r?c(r):pe.extend({},r);var i,e,t,n,o=[],s=[],a=-1,l=function(){for(n=r.once,t=i=!0;s.length;a=-1)for(e=s.shift();++a<o.length;)!1===o[a].apply(e[0],e[1])&&r.stopOnFalse&&(a=o.length,e=!1);r.memory||(e=!1),i=!1,n&&(o=e?[]:"")},u={add:function(){return o&&(e&&!i&&(a=o.length-1,s.push(e)),function n(e){pe.each(e,function(e,t){pe.isFunction(t)?r.unique&&u.has(t)||o.push(t):t&&t.length&&"string"!==pe.type(t)&&n(t)})}(arguments),e&&!i&&l()),this},remove:function(){return pe.each(arguments,function(e,t){for(var n;-1<(n=pe.inArray(t,o,n));)o.splice(n,1),n<=a&&a--}),this},has:function(e){return e?-1<pe.inArray(e,o):0<o.length},empty:function(){return o&&(o=[]),this},disable:function(){return n=s=[],o=e="",this},disabled:function(){return!o},lock:function(){return n=!0,e||u.disable(),this},locked:function(){return!!n},fireWith:function(e,t){return n||(t=[e,(t=t||[]).slice?t.slice():t],s.push(t),i||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!t}};return u},pe.extend({Deferred:function(e){var o=[["resolve","done",pe.Callbacks("once memory"),"resolved"],["reject","fail",pe.Callbacks("once memory"),"rejected"],["notify","progress",pe.Callbacks("memory")]],i="pending",s={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var i=arguments;return pe.Deferred(function(r){pe.each(o,function(e,t){var n=pe.isFunction(i[e])&&i[e];a[t[1]](function(){var e=n&&n.apply(this,arguments);e&&pe.isFunction(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this===s?r.promise():this,n?[e]:arguments)})}),i=null}).promise()},promise:function(e){return null!=e?pe.extend(e,s):s}},a={};return s.pipe=s.then,pe.each(o,function(e,t){var n=t[2],r=t[3];s[t[1]]=n.add,r&&n.add(function(){i=r},o[1^e][2].disable,o[2][2].lock),a[t[0]]=function(){return a[t[0]+"With"](this===a?s:this,arguments),this},a[t[0]+"With"]=n.fireWith}),s.promise(a),e&&e.call(a,a),a},when:function(e){var i,t,n,r=0,o=oe.call(arguments),s=o.length,a=1!==s||e&&pe.isFunction(e.promise)?s:0,l=1===a?e:pe.Deferred(),u=function(t,n,r){return function(e){n[t]=this,r[t]=1<arguments.length?oe.call(arguments):e,r===i?l.
2notifyWith(n,r):--a||l.resolveWith(n,r)}};if(1<s)for(i=new Array(s),t=new Array(s),n=new Array(s);r<s;r++)o[r]&&pe.isFunction(o[r].promise)?o[r].promise().progress(u(r,t,i)).done(u(r,n,o)).fail(l.reject):--a;return a||l.resolveWith(n,o),l.promise()}}),pe.fn.ready=function(e){return pe.ready.promise().done(e),this},pe.extend({isReady:!1,readyWait:1,holdReady:function(e){e?pe.readyWait++:pe.ready(!0)},ready:function(e){(!0===e?--pe.readyWait:pe.isReady)||(pe.isReady=!0)!==e&&0<--pe.readyWait||(Oe.resolveWith(ie,[pe]),pe.fn.triggerHandler&&(pe(ie).triggerHandler("ready"),pe(ie).off("ready")))}}),pe.ready.promise=function(t){if(!Oe)if(Oe=pe.Deferred(),"complete"===ie.readyState||"loading"!==ie.readyState&&!ie.documentElement.doScroll)w.setTimeout(pe.ready);else if(ie.addEventListener)ie.addEventListener("DOMContentLoaded",o),w.addEventListener("load",o);else{ie.attachEvent("onreadystatechange",o),w.attachEvent("onload",o);var n=!1;try{n=null==w.frameElement&&ie.documentElement}catch(e){}n&&n.doScroll&&function r(){if(!pe.isReady){try{n.doScroll("left")}catch(e){return w.setTimeout(r,50)}i(),pe.ready()}}()}return Oe.promise(t)},pe.ready.promise(),pe(de))break;de.ownFirst="0"===De,de.inlineBlockNeedsLayout=!1,pe(function(){var e,t,n,r;(n=ie.getElementsByTagName("body")[0])&&n.style&&(t=ie.createElement("div"),(r=ie.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",de.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var t=ie.createElement("div");de.deleteExpando=!0;try{delete t.test}catch(e){de.deleteExpando=!1}t=null}();var Re,ke=function(e){var t=pe.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)},Pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Me=/([A-Z])/g;pe.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?pe.cache[e[pe.expando]]:e[pe.expando])&&!u(e)},data:function(e,t,n){return s(e,t,n)},removeData:function(e,t){return f(e,t)},_data:function(e,t,n){return s(e,t,n,!0)},_removeData:function(e,t){return f(e,t,!0)}}),pe.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(e===undefined){if(this.length&&(i=pe.data(o),1===o.nodeType&&!pe._data(o,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&l(o,r=pe.camelCase(r.slice(5)),i[r]);pe._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){pe.data(this,e)}):1<arguments.length?this.each(function(){pe.data(this,e,t)}):o?l(o,e,pe.data(o,e)):undefined},removeData:function(e){return this.each(function(){pe.removeData(this,e)})}}),pe.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=pe._data(e,t),n&&(!r||pe.isArray(n)?r=pe._data(e,t,pe.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=pe.queue(e,t),r=n.length,i=n.shift(),o=pe._queueHooks(e,t),s=function(){pe.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return pe._data(e,n)||pe._data(e,n,{empty:pe.Callbacks("once memory").add(function(){pe._removeData(e,t+"queue"),pe._removeData(e,n)})})}}),pe.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?pe.queue(this[0],t):n===undefined?this:this.each(function(){var e=pe.queue(this,t,n);pe._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&pe.dequeue(this,t)})},dequeue:function(e){return this.each(function(){pe.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=pe.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=undefined),e=e||"fx";s--;)(n=pe._data(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}}),de.shrinkWrapBlocks=function(){return null!=Re?Re:(Re=!1,(t=ie.getElementsByTagName("body")[0])&&t.style?(e=ie.createElement("div"),(n=ie.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(ie.createElement("div")).style.width="5px",Re=3!==e.offsetWidth),t.removeChild(n),Re):void 0);var e,t,n};var Ie,Fe,$e,Be=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,He=new RegExp("^(?:([+-])=|)("+Be+")([a-z%]*)$","i"),Ue=["Top","Right","Bottom","Left"],Ve=function(e,t){return e=t||e,"none"===pe.css(e,"display")||!pe.contains(e.ownerDocument,e)},We=function(e,t,n,r,i,o,s){var a=0,l=e.length,u=null==n;
2if("object"===pe.type(n))for(a in i=!0,n)We(e,t,a,n[a],!0,o,s);else if(r!==undefined&&(i=!0,pe.isFunction(r)||(s=!0),u&&(s?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(pe(e),n)})),t))for(;a<l;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:u?t.call(e):l?t(e[0],n):o},Ke=/^(?:checkbox|radio)$/i,je=/<([\w:-]+)/,ze=/^$|\/(?:java|ecma)script/i,Ge=/^\s+/,qe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";Ie=ie.createElement("div"),Fe=ie.createDocumentFragment(),$e=ie.createElement("input"),Ie.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",de.leadingWhitespace=3===Ie.firstChild.nodeType,de.tbody=!Ie.getElementsByTagName("tbody").length,de.htmlSerialize=!!Ie.getElementsByTagName("link").length,de.html5Clone="<:nav></:nav>"!==ie.createElement("nav").cloneNode(!0).outerHTML,$e.type="checkbox",$e.checked=!0,Fe.appendChild($e),de.appendChecked=$e.checked,Ie.innerHTML="<textarea>x</textarea>",de.noCloneChecked=!!Ie.cloneNode(!0).lastChild.defaultValue,Fe.appendChild(Ie),($e=ie.createElement("input")).setAttribute("type","radio"),$e.setAttribute("checked","checked"),$e.setAttribute("name","t"),Ie.appendChild($e),de.checkClone=Ie.cloneNode(!0).cloneNode(!0).lastChild.checked,de.noCloneEvent=!!Ie.addEventListener,Ie[pe.expando]=1,de.attributes=!Ie.getAttribute(pe.expando);var Xe={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:de.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Xe.optgroup=Xe.option,Xe.tbody=Xe.tfoot=Xe.colgroup=Xe.caption=Xe.thead,Xe.th=Xe.td;var Ye=/<|&#?\w+;/,Qe=/<tbody/i;!function(){var e,t,n=ie.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(de[e]=t in w)||(n.setAttribute(t,"t"),de[e]=!1===n.attributes[t].expando);n=null}();var Ze=/^(?:input|select|textarea)$/i,Je=/^key/,et=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tt=/^(?:focusinfocus|focusoutblur)$/,nt=/^([^.]*)(?:\.(.+)|)/;pe.event={global:{},add:function(e,t,n,r,i){var o,s,a,l,u,c,f,d,h,p,g,m=pe._data(e);if(m){for(n.handler&&(n=(l=n).handler,i=l.selector),n.guid||(n.guid=pe.guid++),(s=m.events)||(s=m.events={}),(c=m.handle)||((c=m.handle=function(e){return void 0===pe||e&&pe.event.triggered===e.type?undefined:pe.event.dispatch.apply(c.elem,arguments)}).elem=e),a=(t=(t||"").match(Le)||[""]).length;a--;)h=g=(o=nt.exec(t[a])||[])[1],p=(o[2]||"").split(".").sort(),h&&(u=pe.event.special[h]||{},h=(i?u.delegateType:u.bindType)||h,u=pe.event.special[h]||{},f=pe.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&pe.expr.match.needsContext.test(i),namespace:p.join(".")},l),(d=s[h])||((d=s[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,p,c)||(e.addEventListener?e.addEventListener(h,c,!1):e.attachEvent&&e.attachEvent("on"+h,c))),u.add&&(u.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),pe.event.global[h]=!0);e=null}},remove:function(e,t,n,r,i){var o,s,a,l,u,c,f,d,h,p,g,m=pe.hasData(e)&&pe._data(e);if(m&&(c=m.events)){for(u=(t=(t||"").match(Le)||[""]).length;u--;)if(h=g=(a=nt.exec(t[u])||[])[1],p=(a[2]||"").split(".").sort(),h){for(f=pe.event.special[h]||{},d=c[h=(r?f.delegateType:f.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=d.length;o--;)s=d[o],!i&&g!==s.origType||n&&n.guid!==s.guid||a&&!a.test(s.namespace)||r&&r!==s.selector&&("**"!==r||!s.selector)||(d.splice(o,1),s.selector&&d.delegateCount--,f.remove&&f.remove.call(e,s));l&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,p,m.handle)||pe.removeEvent(e,h,m.handle),delete c[h])}else for(h in c)pe.event.remove(e,h+t[u],n,r,!0);pe.isEmptyObject(c)&&(delete m.handle,pe._removeData(e,"events"))}},trigger:function(t,n,r,i){var o,s,a,l,u,c,f,d=[r||ie],h=fe.call(t,"type")?t.type:t,p=fe.call(t,"namespace")?t.namespace.split("."):[];if(a=c=r=r||ie,3!==r.nodeType&&8!==r.nodeType&&!tt.test(h+pe.event.triggered)&&(-1<h.indexOf(".")&&(h=(p=h.split(".")).shift(),p.sort()),s=h.indexOf(":")<0&&"on"+h,(t=t[pe.expando]?t:new pe.Event(h,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=r),n=null==n?[t]:pe.makeArray(n,[t]),u=pe.event.special[h]||{},i||!u.trigger||!1!==u.trigger.apply(r,n))){if(!i&&!u.noBubble&&!pe.isWindow(r)){for(l=u.delegateType||h,tt.test(l+h)||(a=a.parentNode);a;a=a.parentNode)d.push(a),c=a;c===(r.ownerDocument||ie)&&d.push(c.defaultView||c.parentWindow||w)}for(f=0;(a=d[f++])&&!t.isPropagationStopped();)t.type=1<f?l:u.bindType||h,(o=(pe._data(a,"events")||{})[t.type]&&pe._data(a,"handle"))&&o.apply(a,n),(o=s&&a[s])&&o.apply&&ke(a)&&(t.result=
2o.apply(a,n),!1===t.result&&t.preventDefault());if(t.type=h,!i&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(d.pop(),n))&&ke(r)&&s&&r[h]&&!pe.isWindow(r)){(c=r[s])&&(r[s]=null),pe.event.triggered=h;try{r[h]()}catch(e){}pe.event.triggered=undefined,c&&(r[s]=c)}return t.result}},dispatch:function(e){e=pe.event.fix(e);var t,n,r,i,o,s=[],a=oe.call(arguments),l=(pe._data(this,"events")||{})[e.type]||[],u=pe.event.special[e.type]||{};if((a[0]=e).delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(s=pe.event.handlers.call(this,e,l),t=0;(i=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,(r=((pe.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))!==undefined&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,l=e.target;if(a&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(r=[],n=0;n<a;n++)r[i=(o=t[n]).selector+" "]===undefined&&(r[i]=o.needsContext?-1<pe(i,this).index(l):pe.find(i,this,null,[l]).length),r[i]&&r.push(o);r.length&&s.push({elem:l,handlers:r})}return a<t.length&&s.push({elem:this,handlers:t.slice(a)}),s},fix:function(e){if(e[pe.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=et.test(i)?this.mouseHooks:Je.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new pe.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=o.srcElement||ie),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button,s=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(r=e.target.ownerDocument||ie).documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?t.toElement:s),e.which||o===undefined||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==E()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===E()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(pe.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return pe.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){var r=pe.extend(new pe.Event,n,{type:e,isSimulated:!0});pe.event.trigger(r,null,t),r.isDefaultPrevented()&&n.preventDefault()}},pe.removeEvent=ie.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var r="on"+t;e.detachEvent&&("undefined"==typeof e[r]&&(e[r]=null),e.detachEvent(r,n))},pe.Event=function(e,t){if(!(this instanceof pe.Event))return new pe.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&!1===e.returnValue?h:p):this.type=e,t&&pe.extend(this,t),this.timeStamp=e&&e.timeStamp||pe.now(),this[pe.expando]=!0},pe.Event.prototype={constructor:pe.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=h,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=h,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=h,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}}
2,pe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){pe.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,n=this,r=e.relatedTarget,i=e.handleObj;return r&&(r===n||pe.contains(n,r))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=o),t}}}),de.submit||(pe.event.special.submit={setup:function(){if(pe.nodeName(this,"form"))return!1;pe.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=pe.nodeName(t,"input")||pe.nodeName(t,"button")?pe.prop(t,"form"):undefined;n&&!pe._data(n,"submit")&&(pe.event.add(n,"submit._submit",function(e){e._submitBubble=!0}),pe._data(n,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&pe.event.simulate("submit",this.parentNode,e))},teardown:function(){if(pe.nodeName(this,"form"))return!1;pe.event.remove(this,"._submit")}}),de.change||(pe.event.special.change={setup:function(){if(Ze.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(pe.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),pe.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),pe.event.simulate("change",this,e)})),!1;pe.event.add(this,"beforeactivate._change",function(e){var t=e.target;Ze.test(t.nodeName)&&!pe._data(t,"change")&&(pe.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||pe.event.simulate("change",this.parentNode,e)}),pe._data(t,"change",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return pe.event.remove(this,"._change"),!Ze.test(this.nodeName)}}),de.focusin||pe.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){pe.event.simulate(r,e.target,pe.event.fix(e))};pe.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=pe._data(e,r);t||e.addEventListener(n,i,!0),pe._data(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=pe._data(e,r)-1;t?pe._data(e,r,t):(e.removeEventListener(n,i,!0),pe._removeData(e,r))}}}),pe.fn.extend({on:function(e,t,n,r){return T(this,e,t,n,r)},one:function(e,t,n,r){return T(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,pe(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=undefined),!1===n&&(n=p),this.each(function(){pe.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){pe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return pe.event.trigger(e,t,n,!0)}});var rt=/ jQuery\d+="(?:null|\d+)"/g,it=new RegExp("<(?:"+qe+")[\\s/>]",
3"i"),ot=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,st=/<script|<style|<link/i,at=/checked\s*(?:[^=]|=\s*.checked.)/i,lt=/^true\/(.*)/,ut=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ct=m(ie).appendChild(ie.createElement("div"));pe.extend({htmlPrefilter:function(e){return e.replace(ot,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a,l=pe.contains(e.ownerDocument,e);if(de.html5Clone||pe.isXMLDoc(e)||!it.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(ct.innerHTML=e.outerHTML,ct.removeChild(o=ct.firstChild)),!(de.noCloneEvent&&de.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||pe.isXMLDoc(e)))for(r=v(o),a=v(e),s=0;null!=(i=a[s]);++s)r[s]&&_(i,r[s]);if(t)if(n)for(a=a||v(e),r=r||v(o),s=0;null!=(i=a[s]);s++)x(i,r[s]);else x(e,o);return 0<(r=v(o,"script")).length&&y(r,!l&&v(e,"script")),r=a=i=null,o},cleanData:function(e,t){for(var n,r,i,o,s=0,a=pe.expando,l=pe.cache,u=de.attributes,c=pe.event.special;null!=(n=e[s]);s++)if((t||ke(n))&&(o=(i=n[a])&&l[i])){if(o.events)for(r in o.events)c[r]?pe.event.remove(n,r):pe.removeEvent(n,r,o.handle);l[i]&&(delete l[i],u||"undefined"==typeof n.removeAttribute?n[a]=undefined:n.removeAttribute(a),re.push(i))}}}),pe.fn.extend({domManip:N,detach:function(e){return O(this,e,!0)},remove:function(e){return O(this,e)},text:function(e){return We(this,function(e){return e===undefined?pe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ie).createTextNode(e))},null,e,arguments.length)},append:function(){return N(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||S(this,e).appendChild(e)})},prepend:function(){return N(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=S(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return N(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return N(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&pe.cleanData(v(e,!1));e.firstChild;)e.removeChild(e.firstChild);
3e.options&&pe.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return pe.clone(this,e,t)})},html:function(t){return We(this,function(t){var n=this[0]||{},r=0,i=this.length;if(t===undefined)return 1===n.nodeType?n.innerHTML.replace(rt,""):undefined;if("string"==typeof t&&!st.test(t)&&(de.htmlSerialize||!it.test(t))&&(de.leadingWhitespace||!Ge.test(t))&&!Xe[(je.exec(t)||["",""])[1].toLowerCase()]){t=pe.htmlPrefilter(t);try{for(;r<i;r++)1===(n=this[r]||{}).nodeType&&(pe.cleanData(v(n,!1)),n.innerHTML=t);n=0}catch(e){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return N(this,arguments,function(e){var t=this.parentNode;pe.inArray(this,n)<0&&(pe.cleanData(v(this)),t&&t.replaceChild(e,this))},n)}}),pe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){pe.fn[e]=function(e){for(var t,n=0,r=[],i=pe(e),o=i.length-1;n<=o;n++)t=n===o?this:this.clone(!0),pe(i[n])[s](t),ae.apply(r,t.get());return this.pushStack(r)}});var ft,dt={HTML:"block",BODY:"block"},ht=/^margin/,pt=new RegExp("^("+Be+")(?!px)[a-z%]+$","i"),gt=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=s[o];return i},mt=ie.documentElement;!function(){function e(){var e,t,n=ie.documentElement;n.appendChild(u),c.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",r=o=l=!1,i=a=!0,w.getComputedStyle&&(t=w.getComputedStyle(c),r="1%"!==(t||{}).top,l="2px"===(t||{}).marginLeft,o="4px"===(t||{width:"4px"}).width,c.style.marginRight="50%",i="4px"===(t||{marginRight:"4px"}).marginRight,(e=c.appendChild(ie.createElement("div"))).style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",c.style.width="1px",a=!parseFloat((w.getComputedStyle(e)||{}).marginRight),c.removeChild(e)),c.style.display="none",(s=0===c.getClientRects().length)&&(c.style.display="",c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",c.childNodes[0].style.borderCollapse="separate",(e=c.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",s=0===e[0].offsetHeight)),n.removeChild(u)}var r,i,o,s,a,l,u=ie.createElement("div"),c=ie.createElement("div");c.style&&(c.style.cssText="float:left;opacity:.5",de.opacity="0.5"===c.style.opacity,de.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",de.clearCloneStyle="content-box"===c.style.backgroundClip,(u=ie.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",u.appendChild(c),de.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,pe.extend(de,{reliableHiddenOffsets:function(){return null==r&&e(),s},boxSizingReliable:function(){return null==r&&e(),o},pixelMarginRight:function(){return null==r&&e(),i},pixelPosition:function(){return null==r&&e(),r},reliableMarginRight:function(){return null==r&&e(),a},reliableMarginLeft:function(){return null==r&&e(),l}}))}();var vt,yt,bt=/^(top|right|bottom|left)$/;w.getComputedStyle?(vt=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=w),t.getComputedStyle(e)},yt=function(e,t,n){var r,i,o,s,a=e.style;return""!==(s=(n=n||vt(e))?n.getPropertyValue(t)||n[t]:undefined)&&s!==undefined||pe.contains(e.ownerDocument,e)||(s=pe.style(e,t)),n&&!de.pixelMarginRight()&&pt.test(s)&&ht.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o),s===undefined?s:s+""}):mt.currentStyle&&(vt=function(e){return e.currentStyle},yt=function(e,t,n){var r,i,o,s,a=e.style;return null==(s=(n=n||vt(e))?n[t]:undefined)&&a&&a[t]&&(s=a[t]),pt.test(s)&&!bt.test(t)&&(r=a.left,(o=(i=e.runtimeStyle)&&i.left)&&(i.left
3=e.currentStyle.left),a.left="fontSize"===t?"1em":s,s=a.pixelLeft+"px",a.left=r,o&&(i.left=o)),s===undefined?s:s+""||"auto"});var Et=/alpha\([^)]*\)/i,Tt=/opacity\s*=\s*([^)]*)/i,St=/^(none|table(?!-c[ea]).+)/,wt=new RegExp("^("+Be+")(.*)$","i"),At={position:"absolute",visibility:"hidden",display:"block"},Ct={letterSpacing:"0",fontWeight:"400"},xt=["Webkit","O","Moz","ms"],_t=ie.createElement("div").style;pe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=yt(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":de.cssFloat?"cssFloat":"styleFloat"},style:function(t,n,r,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,s,a,l=pe.camelCase(n),u=t.style;if(n=pe.cssProps[l]||(pe.cssProps[l]=k(l)||l),a=pe.cssHooks[n]||pe.cssHooks[l],r===undefined)return a&&"get"in a&&(o=a.get(t,!1,i))!==undefined?o:u[n];if("string"===(s=typeof r)&&(o=He.exec(r))&&o[1]&&(r=d(t,n,o),s="number"),null!=r&&r==r&&("number"===s&&(r+=o&&o[3]||(pe.cssNumber[l]?"":"px")),de.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),!(a&&"set"in a&&(r=a.set(t,r,i))===undefined)))try{u[n]=r}catch(e){}}},css:function(e,t,n,r){var i,o,s,a=pe.camelCase(t);return t=pe.cssProps[a]||(pe.cssProps[a]=k(a)||a),(s=pe.cssHooks[t]||pe.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),o===undefined&&(o=yt(e,t,r)),"normal"===o&&t in Ct&&(o=Ct[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),pe.each(["height","width"],function(e,i){pe.cssHooks[i]={get:function(e,t,n){if(t)return St.test(pe.css(e,"display"))&&0===e.offsetWidth?gt(e,At,function(){return F(e,i,n)}):F(e,i,n)},set:function(e,t,n){var r=n&&vt(e);return M(e,t,n?I(e,i,n,de.boxSizing&&"border-box"===pe.css(e,"boxSizing",!1,r),r):0)}}}),de.opacity||(pe.cssHooks.opacity={get:function(e,t){return Tt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=pe.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===pe.trim(o.replace(Et,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=Et.test(o)?o.replace(Et,i):o+" "+i)}}),pe.cssHooks.marginRight=R(de.reliableMarginRight,function(e,t){if(t)return gt(e,{display:"inline-block"},yt,[e,"marginRight"])}),pe.cssHooks.marginLeft=R(de.reliableMarginLeft,function(e,t){if(t)return(parseFloat(yt(e,"marginLeft"))||(pe.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-gt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),pe.each({margin:"",padding:"",border:"Width"},function(i,o){pe.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Ue[t]+o]=r[t]||r[t-2]||r[0];return n}},ht.test(i)||(pe.cssHooks[i+o].set=M)}),pe.fn.extend({css:function(e,t){return We(this,function(e,t,n){var r,i,o={},s=0;if(pe.isArray(t)){for(r=vt(e),i=t.length;s<i;s++)o[t[s]]=pe.css(e,t[s],!1,r);return o}return n!==undefined?pe.style(e,t,n):pe.css(e,t)},e,t,1<arguments.length)},show:function(){return P(this,!0)},hide:function(){return P(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ve(this)?pe(this).show():pe(this).hide()})}}),(pe.Tween=$).prototype={constructor:$,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(pe.cssNumber[n]?"":"px")},cur:function(){var e=$.propHooks[this.prop];return e&&e.get?e.get(this):$.propHooks._default.get(this)},run:function(e){var t,n=$.propHooks[this.prop];return this.options.duration?this.pos=t=pe.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):$.propHooks._default.set(this),this}},$.prototype.init.prototype=$.prototype,$.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=pe.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[pe.cssProps[e.prop]]&&!pe.cssHooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},$.propHooks.scrollTop=$.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},pe.fx=$.prototype.init,pe.fx.step={};var Nt,Ot,Dt,Lt,Rt,kt,Pt,Mt=/^(?:toggle|show|hide)$/,It=/queueHooks$/;pe.Animation=pe.extend(K,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return d(n.elem,e,He.exec(t),n),n}]},tweener:function(e,t){pe.isFunction(e)?(t=e,e=["*"]):e=e.match(Le);for(var n,r=0,i=e.length;r<i;r++)n=e[r],K.tweeners[n]=K.tweeners[n]||[],K.tweeners[n].unshift(t)},prefilters:[V],prefilter:function(e,t){t?K.prefilters.unshift(e):K.prefilters.push(e)}}),pe.speed=function(e,t,n){var r=e&&"object"==typeof e?pe.extend({},e):{complete:n||!n&&t||pe.isFunction(e)&&e,duration:e,easing:n&&t||t&&!pe.isFunction(t)&&t};return r.duration=pe.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in pe.fx.speeds?pe.fx.speeds[r.duration]:pe.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){pe.isFunction(r.old)&&r.old.call(this),r.queue&&pe.dequeue(this,r.queue)},r},pe.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Ve).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=pe.isEmptyObject(t),o=pe.speed(e,n,r),s=function(){var e=K(this,pe.extend({},t),o);(i||pe._data(this,"finish"))&&e.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(i,e,o){var s=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=undefined),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=pe.timers,r=pe._data(this);if(t)r[t]&&r[t].stop&&s(r[t]);else for(t in r)r[t]&&r[t].stop&&It.test(t)&&s(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)
3);!e&&o||pe.dequeue(this,i)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var e,t=pe._data(this),n=t[s+"queue"],r=t[s+"queueHooks"],i=pe.timers,o=n?n.length:0;for(t.finish=!0,pe.queue(this,s,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===s&&(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})}}),pe.each(["toggle","show","hide"],function(e,r){var i=pe.fn[r];pe.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(H(r,!0),e,t,n)}}),pe.each({slideDown:H("show"),slideUp:H("hide"),slideToggle:H("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){pe.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),pe.timers=[],pe.fx.tick=function(){var e,t=pe.timers,n=0;for(Nt=pe.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||pe.fx.stop(),Nt=undefined},pe.fx.timer=function(e){pe.timers.push(e),e()?pe.fx.start():pe.timers.pop()},pe.fx.interval=13,pe.fx.start=function(){Ot||(Ot=w.setInterval(pe.fx.tick,pe.fx.interval))},pe.fx.stop=function(){w.clearInterval(Ot),Ot=null},pe.fx.speeds={slow:600,fast:200,_default:400},pe.fn.delay=function(r,e){return r=pe.fx&&pe.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=w.setTimeout(e,r);t.stop=function(){w.clearTimeout(n)}})},Lt=ie.createElement("input"),Rt=ie.createElement("div"),kt=ie.createElement("select"),Pt=kt.appendChild(ie.createElement("option")),(Rt=ie.createElement("div")).setAttribute("className","t"),Rt.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",Dt=Rt.getElementsByTagName("a")[0],Lt.setAttribute("type","checkbox"),Rt.appendChild(Lt),(Dt=Rt.getElementsByTagName("a")[0]).style.cssText="top:1px",de.getSetAttribute="t"!==Rt.className,de.style=/top/.test(Dt.getAttribute("style")),de.hrefNormalized="/a"===Dt.getAttribute("href"),de.checkOn=!!Lt.value,de.optSelected=Pt.selected,de.enctype=!!ie.createElement("form").enctype,kt.disabled=!0,de.optDisabled=!Pt.disabled,(Lt=ie.createElement("input")).setAttribute("value",""),de.input=""===Lt.getAttribute("value"),Lt.value="t",Lt.setAttribute("type","radio"),de.radioValue="t"===Lt.value;var Ft=/\r/g,$t=/[\x20\t\r\n\f]+/g;pe.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=pe.isFunction(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,pe(this).val()):n)?t="":"number"==typeof t?t+="":pe.isArray(t)&&(t=pe.map(t,function(e){return null==e?"":e+""})),(r=pe.valHooks[this.type]||pe.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&r.set(this,t,"value")!==undefined||(this.value=t))})):t?(r=pe.valHooks[t.type]||pe.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&(e=r.get(t,"value"))!==undefined?e:"string"==typeof(e=t.value)?e.replace(Ft,""):null==e?"":e:void 0}}),pe.extend({valHooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:pe.trim(pe.text(e)).replace($t," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,s=o?null:[],a=o?i+1:r.length,l=i<0?a:o?i:0;l<a;l++)if(((n=r[l]).selected||l===i)&&(de.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!pe.nodeName(n.parentNode,"optgroup"))){if(t=pe(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=pe.makeArray(t),s=i.length;s--;)if(r=i[s],-1<pe.inArray(pe.valHooks.option.get(r),o))try{r.selected=n=!0}catch(a){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),pe.each(["radio","checkbox"],function(){pe.valHooks[this]={set:function(e,t){if(pe.isArray(t))return e.checked=-1<pe.inArray(pe(e).val(),t)}},de.checkOn||(pe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Bt,Ht,Ut=pe.expr.attrHandle,Vt=/^(?:checked|selected)$/i,Wt=de.getSetAttribute,Kt=de.input;pe.fn.extend({attr:function(e,t){return We(this,pe.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){pe.removeAttr(this,e)})}}
3),pe.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?pe.prop(e,t,n):(1===o&&pe.isXMLDoc(e)||(t=t.toLowerCase(),i=pe.attrHooks[t]||(pe.expr.match.bool.test(t)?Ht:Bt)),n!==undefined?null===n?void pe.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=pe.find.attr(e,t))?undefined:r)},attrHooks:{type:{set:function(e,t){if(!de.radioValue&&"radio"===t&&pe.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(Le);if(o&&1===e.nodeType)for(;n=o[i++];)r=pe.propFix[n]||n,pe.expr.match.bool.test(n)?Kt&&Wt||!Vt.test(n)?e[r]=!1:e[pe.camelCase("default-"+n)]=e[r]=!1:pe.attr(e,n,""),e.removeAttribute(Wt?n:r)}}),Ht={set:function(e,t,n){return!1===t?pe.removeAttr(e,n):Kt&&Wt||!Vt.test(n)?e.setAttribute(!Wt&&pe.propFix[n]||n,n):e[pe.camelCase("default-"+n)]=e[n]=!0,n}},pe.each(pe.expr.match.bool.source.match(/\w+/g),function(e,t){var o=Ut[t]||pe.find.attr;Kt&&Wt||!Vt.test(t)?Ut[t]=function(e,t,n){var r,i;return n||(i=Ut[t],Ut[t]=r,r=null!=o(e,t,n)?t.toLowerCase():null,Ut[t]=i),r}:Ut[t]=function(e,t,n){if(!n)return e[pe.camelCase("default-"+t)]?t.toLowerCase():null}}),Kt&&Wt||(pe.attrHooks.value={set:function(e,t,n){if(!pe.nodeName(e,"input"))return Bt&&Bt.set(e,t,n);e.defaultValue=t}}),Wt||(Bt={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},Ut.id=Ut.name=Ut.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},pe.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:Bt.set},pe.attrHooks.contenteditable={set:function(e,t,n){Bt.set(e,""!==t&&t,n)}},pe.each(["width","height"],function(e,n){pe.attrHooks[n]={set:function(e,t){if(""===t)return e.setAttribute(n,"auto"),t}}})),de.style||(pe.attrHooks.style={get:function(e){return e.style.cssText||undefined},set:function(e,t){return e.style.cssText=t+""}});var jt=/^(?:input|select|textarea|button|object)$/i,zt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return We(this,pe.prop,e,t,1<arguments.length)},removeProp:function(t){return t=pe.propFix[t]||t,this.each(function(){try{this[t]=undefined,delete this[t]}catch(e){}})}}),pe.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&pe.isXMLDoc(e)||(t=pe.propFix[t]||t,i=pe.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=pe.find.attr(e,"tabindex");return t?parseInt(t,10):jt.test(e.nodeName)||zt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),de.hrefNormalized||pe.each(["href","src"],function(e,t){pe.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),de.optSelected||(pe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),pe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pe.propFix[this.toLowerCase()]=this}),de.enctype||(pe.propFix.enctype="encoding");var Gt=/[\t\r\n\f]/g;pe.fn.extend({addClass:function(t){var e,n,r,i,o,s,a,l=0;if(pe.isFunction(t))return this.each(function(e){pe(this).addClass(t.call(this,e,j(this)))});if("string"==typeof t&&t)for(e=t.match(Le)||[];n=this[l++];)if(i=j(n),r=1===n.nodeType&&(" "+i+" ").replace(Gt," ")){for(s=0;o=e[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(a=pe.trim(r))&&pe.attr(n,"class",a)}return this},removeClass:function(t){var e,n,r,i,o,s,a,l=0;if(pe.isFunction(t))return this.each(function(e){pe(this).removeClass(t.call(this,e,j(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Le)||[];n=this[l++];)if(i=j(n),r=1===n.nodeType&&(" "+i+" ").replace(Gt," ")){for(s=0;o=e[s++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(a=pe.trim(r))&&pe.attr(n,"class",a)}return this},toggleClass:function(i,t){var o=typeof i;return"boolean"==typeof t&&"string"===o?t?this.addClass(i):this.removeClass(i):pe.isFunction(i)?this.each(function(e){pe(this).toggleClass(i.
3call(this,e,j(this),t),t)}):this.each(function(){var e,t,n,r;if("string"===o)for(t=0,n=pe(this),r=i.match(Le)||[];e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else i!==undefined&&"boolean"!==o||((e=j(this))&&pe._data(this,"__className__",e),pe.attr(this,"class",e||!1===i?"":pe._data(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+j(n)+" ").replace(Gt," ").indexOf(t))return!0;return!1}}),pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){pe.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var qt=w.location,Xt=pe.now(),Yt=/\?/,Qt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;pe.parseJSON=function(e){if(w.JSON&&w.JSON.parse)return w.JSON.parse(e+"");var i,o=null,t=pe.trim(e+"");return t&&!pe.trim(t.replace(Qt,function(e,t,n,r){return i&&t&&(o=0),0===o?e:(i=n||t,o+=!r-!n,"")}))?Function("return "+t)():pe.error("Invalid JSON: "+e)},pe.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{w.DOMParser?n=(new w.DOMParser).parseFromString(t,"text/xml"):((n=new w.ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(t))}catch(e){n=undefined}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||pe.error("Invalid XML: "+t),n};var Zt=/#.*$/,Jt=/([?&])_=[^&]*/,en=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,tn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,nn=/^(?:GET|HEAD)$/,rn=/^\/\//,on=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,sn={},an={},ln="*/".concat("*"),un=qt.href,cn=on.exec(un.toLowerCase())||[];pe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:un,type:"GET",isLocal:tn.test(cn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ln,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":pe.parseJSON,"text xml":pe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?q(q(e,pe.ajaxSettings),t):q(pe.ajaxSettings,e)},ajaxPrefilter:z(sn),ajaxTransport:z(an),ajax:function(t,n){function r(e,t,n,r){var i,o,s,a,l,u=t;2!==T&&(T=2,d&&w.clearTimeout(d),p=undefined,f=r||"",S.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(a=X(g,S,n)),a=Y(g,a,S,i),i?(g.ifModified&&((l=S.getResponseHeader("Last-Modified"))&&(pe.lastModified[c]=l),(l=S.getResponseHeader("etag"))&&(pe.etag[c]=l)),204===e||"HEAD"===g.type?u="nocontent":304===e?u="notmodified":(u=a.state,o=a.data,i=!(s=a.error))):(s=u,!e&&u||(u="error",e<0&&(e=0))),S.status=e,S.statusText=(t||u)+"",i?y.resolveWith(m,[o,u,S]):y.rejectWith(m,[S,u,s]),S.statusCode(E),E=undefined,h&&v.trigger(i?"ajaxSuccess":"ajaxError",[S,g,i?o:s]),b.fireWith(m,[S,u]),h&&(v.trigger("ajaxComplete",[S,g]),--pe.active||pe.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=undefined),n=n||{};var i,o,c,f,d,h,p,s,g=pe.ajaxSetup({},n),m=g.context||g,v=g.context&&(m.nodeType||m.jquery)?pe(m):pe.event,y=pe.Deferred(),b=pe.Callbacks("once memory"),E=g.statusCode||{},a={},l={},T=0,u="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(2===T){if(!s)for(s={};t=en.exec(f);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===T?f:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return T||(e=l[n]=l[n]||e,a[e]=t),this},overrideMimeType:function(e){return T||(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(T<2)for(t in e)E[t]=[E[t],e[t]];else S.always(e[S.status]);return this},abort:function(e){var t=e||u;return p&&p.abort(t),r(0,t),this}};if(y.promise(S).complete=b.add,S.success=S.done,S.error=S.fail,g.url=((t||g.url||un)+"").replace(Zt,"").replace(rn,cn[1]+"//"),g.type=n.method||n.type||g.method||g.type,g.dataTypes=pe.trim(g.dataType||"*").toLowerCase().match(Le)||[""],null==g.crossDomain&&(i=on.exec(g.url.toLowerCase()),g.crossDomain=!(!i||i[1]===cn[1]&&i[2]===cn[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(cn[3]||("http:"===cn[1]?"80":"443")))),g.data&&g.processData&&"string"!=typeof g.data&&(g.data=pe.param(g.data,g.traditional)),G(sn,g,n,S),2===T)return S;for(o in(h=pe.event&&g.global)&&0==pe.active++&&pe.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!nn.test(g.type),c=g.url,g.hasContent||(g.data&&(c=g.url+=(Yt.test(c)?"&":"?")+g.data,delete g.data),!1===g.cache&&(g.url=Jt.test(c)?c.replace(Jt,"$1_="+Xt++):c+(Yt.test(c)?"&":"?")+"_="+Xt++)),g.ifModified&&(pe.lastModified[c]&&S.setRequestHeader("If-Modified-Since",pe.lastModified[c]),pe.etag[c]&&S.setRequestHeader("If-None-Match",pe.etag[c])),(g.data&&g.hasContent&&!1!==g.contentType||n.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]?", "+ln+"; q=0.01":""):g.accepts["*"]),g.headers)S.setRequestHeader(o,g.headers[o]);
3if(g.beforeSend&&(!1===g.beforeSend.call(m,S,g)||2===T))return S.abort();for(o in u="abort",{success:1,error:1,complete:1})S[o](g[o]);if(p=G(an,g,n,S)){if(S.readyState=1,h&&v.trigger("ajaxSend",[S,g]),2===T)return S;g.async&&0<g.timeout&&(d=w.setTimeout(function(){S.abort("timeout")},g.timeout));try{T=1,p.send(a,r)}catch(e){if(!(T<2))throw e;r(-1,e)}}else r(-1,"No Transport");return S},getJSON:function(e,t,n){return pe.get(e,t,n,"json")},getScript:function(e,t){return pe.get(e,undefined,t,"script")}}),pe.each(["get","post"],function(e,i){pe[i]=function(e,t,n,r){return pe.isFunction(t)&&(r=r||n,n=t,t=undefined),pe.ajax(pe.extend({url:e,type:i,dataType:r,data:t,success:n},pe.isPlainObject(e)&&e))}}),pe._evalUrl=function(e){return pe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},pe.fn.extend({wrapAll:function(t){if(pe.isFunction(t))return this.each(function(e){pe(this).wrapAll(t.call(this,e))});if(this[0]){var e=pe(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(n){return pe.isFunction(n)?this.each(function(e){pe(this).wrapInner(n.call(this,e))}):this.each(function(){var e=pe(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=pe.isFunction(t);return this.each(function(e){pe(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){pe.nodeName(this,"body")||pe(this).replaceWith(this.childNodes)}).end()}}),pe.expr.filters.hidden=function(e){return de.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:Z(e)},pe.expr.filters.visible=function(e){return!pe.expr.filters.hidden(e)};var fn=/%20/g,dn=/\[\]$/,hn=/\r?\n/g,pn=/^(?:submit|button|image|reset|file)$/i,gn=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var n,r=[],i=function(e,t){t=pe.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===undefined&&(t=pe.ajaxSettings&&pe.ajaxSettings.traditional),pe.isArray(e)||e.jquery&&!pe.isPlainObject(e))pe.each(e,function(){i(this.name,this.value)});else for(n in e)J(n,e[n],t,i);return r.join("&").replace(fn,"+")},pe.fn.extend({serialize:function(){return pe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=pe.prop(this,"elements");return e?pe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&gn.test(this.nodeName)&&!pn.test(e)&&(this.checked||!Ke.test(e))}).map(function(e,t){var n=pe(this).val();return null==n?null:pe.isArray(n)?pe.map(n,function(e){return{name:t.name,value:e.replace(hn,"\r\n")}}):{name:t.name,value:n.replace(hn,"\r\n")}}).get()}}),pe.ajaxSettings.xhr=w.ActiveXObject!==undefined?function(){return this.isLocal?te():8<ie.documentMode?ee():/^(get|post|head|put|delete|options)$/i.test(this.type)&&ee()||te()}:ee;var mn=0,vn={},yn=pe.ajaxSettings.xhr();w.attachEvent&&w.attachEvent("onunload",function(){for(var e in vn)vn[e](undefined,!0)}),de.cors=!!yn&&"withCredentials"in yn,(yn=de.ajax=!!yn)&&pe.ajaxTransport(function(u){var c;if(!u.crossDomain||de.cors)return{send:function(t,s){var n,a=u.xhr(),l=++mn;if(a.open(u.type,u.url,u.async,u.username,u.password),u.xhrFields)for(n in u.xhrFields)a[n]=u.xhrFields[n];for(n in u.mimeType&&a.overrideMimeType&&a.overrideMimeType(u.mimeType),u.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)t[n]!==undefined&&a.setRequestHeader(n,t[n]+"");a.send(u.hasContent&&u.data||null),c=function(t,n){var r,i,o;if(c&&(n||4===a.readyState))if(delete vn[l],c=undefined,a.onreadystatechange=pe.noop,n)4!==a.readyState&&a.abort();else{o={},r=a.status,"string"==typeof a.responseText&&(o.text=a.responseText);try{i=a.statusText}catch(e){i=""}r||!u.isLocal||u.crossDomain?1223===r&&(r=204):r=o.text?200:404}o&&s(r,i,o,a.getAllResponseHeaders())},u.async?4===a.readyState?w.setTimeout(c):a.onreadystatechange=vn[l]=c:c()}
3,abort:function(){c&&c(undefined,!0)}}}),pe.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 pe.globalEval(e),e}}}),pe.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),pe.ajaxTransport("script",function(t){if(t.crossDomain){var r,i=ie.head||pe("head")[0]||ie.documentElement;return{send:function(e,n){(r=ie.createElement("script")).async=!0,t.scriptCharset&&(r.charset=t.scriptCharset),r.src=t.url,r.onload=r.onreadystatechange=function(e,t){(t||!r.readyState||/loaded|complete/.test(r.readyState))&&(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),r=null,t||n(200,"success"))},i.insertBefore(r,i.firstChild)},abort:function(){r&&r.onload(undefined,!0)}}}});var bn=[],En=/(=)\?(?=&|$)|\?\?/;pe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=bn.pop()||pe.expando+"_"+Xt++;return this[e]=!0,e}}),pe.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,s=!1!==e.jsonp&&(En.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&En.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=pe.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(En,"$1"+r):!1!==e.jsonp&&(e.url+=(Yt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||pe.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=w[r],w[r]=function(){o=arguments},n.always(function(){i===undefined?pe(w).removeProp(r):w[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,bn.push(r)),o&&pe.isFunction(i)&&i(o[0]),o=i=undefined}),"script"}),
4pe.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||ie;var r=we.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=g([e],t,i),i&&i.length&&pe(i).remove(),pe.merge([],r.childNodes))};var Tn=pe.fn.load;pe.fn.load=function(e,t,n){if("string"!=typeof e&&Tn)return Tn.apply(this,arguments);var r,i,o,s=this,a=e.indexOf(" ");return-1<a&&(r=pe.trim(e.slice(a,e.length)),e=e.slice(0,a)),pe.isFunction(t)?(n=t,t=undefined):t&&"object"==typeof t&&(i="POST"),0<s.length&&pe.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?pe("<div>").append(pe.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},pe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.filters.animated=function(t){return pe.grep(pe.timers,function(e){return t===e.elem}).length},pe.offset={setOffset:function(e,t,n){var r,i,o,s,a,l,u=pe.css(e,"position"),c=pe(e),f={};"static"===u&&(e.style.position="relative"),a=c.offset(),o=pe.css(e,"top"),l=pe.css(e,"left"),("absolute"===u||"fixed"===u)&&-1<pe.inArray("auto",[o,l])?(s=(r=c.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(l)||0),pe.isFunction(t)&&(t=t.call(e,n,pe.extend({},a))),null!=t.top&&(f.top=t.top-a.top+s),null!=t.left&&(f.left=t.left-a.left+i),"using"in t?t.using.call(e,f):c.css(f)}},pe.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){pe.offset.setOffset(this,t,e)});var e,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;return o?(e=o.documentElement,pe.contains(e,i)?("undefined"!=typeof i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=ne(o),{top:r.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:r.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):r):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===pe.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),pe.nodeName(e[0],"html")||(n=e.offset()),n.top+=pe.css(e[0],"borderTopWidth",!0),n.left+=pe.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-pe.css(r,"marginTop",!0),left:t.left-n.left-pe.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!pe.nodeName(e,"html")&&"static"===pe.css(e,"position");)e=e.offsetParent;return e||mt})}}),pe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o=/Y/.test(i);pe.fn[t]=function(e){return We(this,function(e,t,n){var r=ne(e);if(n===undefined)return r?i in r?r[i]:r.document.documentElement[t]:e[t];r?r.scrollTo(o?pe(r).scrollLeft():n,o?n:pe(r).scrollTop()):e[t]=n},t,e,arguments.length,null)}}),pe.each(["top","left"],function(e,n){pe.cssHooks[n]=R(de.pixelPosition,function(e,t){if(t)return t=yt(e,n),pt.test(t)?pe(e).position()[n]+"px":t})}),pe.each({Height:"height",Width:"width"},function(o,s){pe.each({padding:"inner"+o,content:s,"":"outer"+o},function(r,e){pe.fn[e]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return We(this,function(e,t,n){var r;return pe.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+o],r["scroll"+o],e.body["offset"+o],r["offset"+o],r["client"+o])):n===undefined?pe.css(e,t,i):pe.style(e,t,n,i)},s,n?e:undefined,n,null)}})}),pe.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)}}),pe.fn.size=function(){return this.length},pe.fn.andSelf=pe.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return pe});var Sn=w.jQuery,wn=w.$;return pe.noConflict=function(e){return w.$===pe&&(w.$=wn),e&&w.jQuery===pe&&(w.jQuery=Sn),pe},t||(w.jQuery=w.$=pe),pe}),function(c,l){"use strict";var u;c.rails!==l&&c.error("jquery-ujs has already been loaded!");var t=c(document);c.rails=u={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(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])",disableSelector:"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",enableSelector:"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",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([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]",csrfToken:function(){return c("meta[name=csrf-token]").attr("content")}
4,csrfParam:function(){return c("meta[name=csrf-param]").attr("content")},CSRFProtection:function(e){var t=u.csrfToken();t&&e.setRequestHeader("X-CSRF-Token",t)},refreshCSRFTokens:function(){c('form input[name="'+u.csrfParam()+'"]').val(u.csrfToken())},fire:function(e,t,n){var r=c.Event(t);return e.trigger(r,n),!1!==r.result},confirm:function(e){return confirm(e)},ajax:function(e){return c.ajax(e)},href:function(e){return e[0].href},isRemote:function(e){return e.data("remote")!==l&&!1!==e.data("remote")},handleRemote:function(r){var e,t,n,i,o,s;if(u.fire(r,"ajax:before")){if(i=r.data("with-credentials")||null,o=r.data("type")||c.ajaxSettings&&c.ajaxSettings.dataType,r.is("form")){e=r.data("ujs:submit-button-formmethod")||r.attr("method"),t=r.data("ujs:submit-button-formaction")||r.attr("action"),n=c(r[0]).serializeArray();var a=r.data("ujs:submit-button");a&&(n.push(a),r.data("ujs:submit-button",null)),r.data("ujs:submit-button-formmethod",null),r.data("ujs:submit-button-formaction",null)}else r.is(u.inputChangeSelector)?(e=r.data("method"),t=r.data("url"),n=r.serialize(),r.data("params")&&(n=n+"&"+r.data("params"))):r.is(u.buttonClickSelector)?(e=r.data("method")||"get",t=r.data("url"),n=r.serialize(),r.data("params")&&(n=n+"&"+r.data("params"))):(e=r.data("method"),t=u.href(r),n=r.data("params")||null);return s={type:e||"GET",data:n,dataType:o,beforeSend:function(e,t){if(t.dataType===l&&e.setRequestHeader("accept","*/*;q=0.5, "+t.accepts.script),!u.fire(r,"ajax:beforeSend",[e,t]))return!1;r.trigger("ajax:send",e)},success:function(e,t,n){r.trigger("ajax:success",[e,t,n])},complete:function(e,t){r.trigger("ajax:complete",[e,t])},error:function(e,t,n){r.trigger("ajax:error",[e,t,n])},crossDomain:u.isCrossDomain(t)},i&&(s.xhrFields={withCredentials:i}),t&&(s.url=t),u.ajax(s)}return!1},isCrossDomain:function(t){var n=document.createElement("a");n.href=location.href;var r=document.createElement("a");try{return r.href=t,r.href=r.href,!((!r.protocol||":"===r.protocol)&&!r.host||n.protocol+"//"+n.host==r.protocol+"//"+r.host)}catch(e){return!0}},handleMethod:function(e){var t=u.href(e),n=e.data("method"),r=e.attr("target"),i=u.csrfToken(),o=u.csrfParam(),s=c('<form method="post" action="'+t+'"></form>'),a='<input name="_method" value="'+n+'" type="hidden" />';o===l||i===l||u.isCrossDomain(t)||(a+='<input name="'+o+'" value="'+i+'" type="hidden" />'),r&&s.attr("target",r),s.hide().append(a).appendTo("body"),s.submit()},formElements:function(e,t){return e.is("form")?c(e[0].elements).filter(t):e.find(t)},disableFormElements:function(e){u.formElements(e,u.disableSelector).each(function(){u.disableFormElement(c(this))})},disableFormElement:function(e){var t,n;t=e.is("button")?"html":"val",(n=e.data("disable-with"))!==l&&(e.data("ujs:enable-with",e[t]()),e[t](n)),e.prop("disabled",!0),e.data("ujs:disabled",!0)},enableFormElements:function(e){u.formElements(e,u.enableSelector).each(function(){u.enableFormElement(c(this))})},enableFormElement:function(e){var t=e.is("button")?"html":"val";e.data("ujs:enable-with")!==l&&(e[t](e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.prop("disabled",!1),e.removeData("ujs:disabled")},allowAction:function(t){var n,r=t.data("confirm"),i=!1;if(!r)return!0;if(u.fire(t,"confirm")){try{i=u.confirm(r)}catch(e){(console.error||console.log).call(console,e.stack||e)}n=u.fire(t,"confirm:complete",[i])}return i&&n},blankInputs:function(e,t,n){var r,i,o,s=c(),a=t||"input,textarea",l=e.find(a),u={};return l.each(function(){(r=c(this)).is("input[type=radio]")?(o=r.attr("name"),u[o]||(0===e.find('input[type=radio]:checked[name="'+o+'"]').length&&(i=e.find('input[type=radio][name="'+o+'"]'),s=s.add(i)),u[o]=o)):(r.is("input[type=checkbox],input[type=radio]")?r.is(":checked"):!!r.val())===n&&(s=s.add(r))}),!!s.length&&s},nonBlankInputs:function(e,t){return u.blankInputs(e,t,!0)},stopEverything:function(e){return c(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},disableElement:function(e){var t=e.data("disable-with");t!==l&&(e.data("ujs:enable-with",e.html()),e.html(t)),e.bind("click.railsDisable",function(e){return u.stopEverything(e)}),e.data("ujs:disabled",!0)},enableElement:function(e){e.data("ujs:enable-with")!==l&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.unbind("click.railsDisable"),e.removeData("ujs:disabled")}},u.fire(t,"rails:attachBindings")&&(c.ajaxPrefilter(function(e,t,n){e.crossDomain||u.CSRFProtection(n)}),c(window).on("pageshow.rails",function(){c(c.rails.enableSelector).each(function(){var e=c(this);e.data("ujs:disabled")&&c.rails.enableFormElement(e)}),c(c.rails.linkDisableSelector).each(function(){var e=c(this);e.data("ujs:disabled")&&c.rails.enableElement(e)})}),t.on("ajax:complete",u.linkDisableSelector,function(){u.enableElement(c(this))}),t.on("ajax:complete",u.buttonDisableSelector,function(){u.enableFormElement(c(this))}),t.on("click.rails",u.linkClickSelector,function(e){var t=c(this),n=t.data("method"),r=t.data("params"),i=e.metaKey||e.ctrlKey;if(!u.allowAction(t))return u.stopEverything(e);if(!i&&t.is(u.linkDisableSelector)&&u.disableElement(t),u.isRemote(t)){if(i&&(!n||"GET"===n)&&!r)return!0;var o=u.handleRemote(t);return!1===o?u.enableElement(t):o.fail(function(){u.enableElement(t)}),!1}return n?(u.handleMethod(t),!1):void 0}),t.on("click.rails",u.buttonClickSelector,function(e){var t=c(this);if(!u.allowAction(t)||!u.isRemote(t))return u.stopEverything(e);t.is(u.buttonDisableSelector)&&u.disableFormElement(t);var n=u.handleRemote(t);return!1===n?u.enableFormElement(t):n.fail(function(){u.enableFormElement(t)}),!1}),t.on("change.rails",u.inputChangeSelector,function(e){var t=c(this);return u.allowAction(t)&&u.isRemote(t)?(u.handleRemote(t),!1):u.stopEverything(e)}),t.on("submit.rails",u.formSubmitSelector,function(e){var t,n,r=c(this),i=u.isRemote(r);if(!u.allowAction(r))return u.stopEverything(e);if(r.attr("novalidate")===l)if(r.data("ujs:formnovalidate-button")===l){if((t=u.blankInputs(r,u.requiredInputSelector,!1))&&u.fire(r,"ajax:aborted:required",[t]))return u.stopEverything(e)}else r.data("ujs:formnovalidate-button",l);if(i){if(n=u.nonBlankInputs(r,u.fileInputSelector)){setTimeout(function(){u.disableFormElements(r)},13);var o=u.fire(r,"ajax:aborted:file",[n]);return o||setTimeout(function(){u.enableFormElements(r)},13),o}return u.handleRemote(r),!1}setTimeout(function(){u.disableFormElements(r)},13)}
4),t.on("click.rails",u.formInputClickSelector,function(e){var t=c(this);if(!u.allowAction(t))return u.stopEverything(e);var n=t.attr("name"),r=n?{name:n,value:t.val()}:null,i=t.closest("form");0===i.length&&(i=c("#"+t.attr("form"))),i.data("ujs:submit-button",r),i.data("ujs:formnovalidate-button",t.attr("formnovalidate")),i.data("ujs:submit-button-formaction",t.attr("formaction")),i.data("ujs:submit-button-formmethod",t.attr("formmethod"))}),t.on("ajax:send.rails",u.formSubmitSelector,function(e){this===e.target&&u.disableFormElements(c(this))}),t.on("ajax:complete.rails",u.formSubmitSelector,function(e){this===e.target&&u.enableFormElements(c(this))}),c(function(){u.refreshCSRFTokens()}))}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";function t(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function n(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ce))}}function a(e){return e&&"[object Function]"==={}.toString.call(e)}function E(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function h(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=E(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:g(h(e))}function m(e){return 11===e?he:10===e?pe:he||pe}function y(e){if(!e)return document.documentElement;for(var t=m(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===E(n,"position")?y(n):n:e?e.ownerDocument.documentElement:document.documentElement}function l(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||y(e.firstElementChild)===e)}function u(e){return null!==e.parentNode?u(e.parentNode):e}function p(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 s=o.commonAncestorContainer;if(e!==s&&t!==s||r.contains(i))return l(s)?s:y(s);var a=u(e);return a.host?p(a.host,t):p(e,u(t).host)}function d(e,t){var n="top"===(1<arguments.length&&t!==undefined?arguments[1]:"top")?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[n]}return e[n]}function v(e,t,n){var r=2<arguments.length&&n!==undefined&&arguments[2],i=d(t,"top"),o=d(t,"left"),s=r?-1:1;return e.top+=i*s,e.bottom+=i*s,e.left+=o*s,e.right+=o*s,e}function b(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 r(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],m(10)?n["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function T(){var e=document.body,t=document.documentElement,n=m(10)&&getComputedStyle(t);return{height:r("Height",e,t,n),width:r("Width",e,t,n)}}function S(e){return ye({},e,{right:e.left+e.width,bottom:e.top+e.height})}function w(t){var n={};try{if(m(10)){n=t.getBoundingClientRect();var r=d(t,"top"),i=d(t,"left");n.top+=r,n.left+=i,n.bottom+=r,n.right+=i}else n=t.getBoundingClientRect()}catch(e){}var o={left:n.left,top:n.top,width:n.right-n.left,height:n.bottom-n.top},s="HTML"===t.nodeName?T():{},a=s.width||t.clientWidth||o.right-o.left,l=s.height||t.clientHeight||o.bottom-o.top,u=t.offsetWidth-a,c=t.offsetHeight-l;if(u||c){var f=E(t);u-=b(f,"x"),c-=b(f,"y"),o.width-=u,o.height-=c}return S(o)}function A(e,t,n){var r=2<arguments.length&&n!==undefined&&arguments[2],i=m(10),o="HTML"===t.nodeName,s=w(e),a=w(t),l=g(e),u=E(t),c=parseFloat(u.borderTopWidth,10),f=parseFloat(u.borderLeftWidth,10);r&&"HTML"===t.nodeName&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=S({top:s.top-a.top-c,left:s.left-a.left-f,width:s.width,height:s.height});
4if(d.marginTop=0,d.marginLeft=0,!i&&o){var h=parseFloat(u.marginTop,10),p=parseFloat(u.marginLeft,10);d.top-=c-h,d.bottom-=c-h,d.left-=f-p,d.right-=f-p,d.marginTop=h,d.marginLeft=p}return(i&&!r?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(d=v(d,t)),d}function C(e,t){var n=1<arguments.length&&t!==undefined&&arguments[1],r=e.ownerDocument.documentElement,i=A(e,r),o=Math.max(r.clientWidth,window.innerWidth||0),s=Math.max(r.clientHeight,window.innerHeight||0),a=n?0:d(r),l=n?0:d(r,"left");return S({top:a-i.top+i.marginTop,left:l-i.left+i.marginLeft,width:o,height:s})}function x(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===E(e,"position")||x(h(e)))}function _(e){if(!e||!e.parentElement||m())return document.documentElement;for(var t=e.parentElement;t&&"none"===E(t,"transform");)t=t.parentElement;return t||document.documentElement}function N(e,t,n,r,i){var o=4<arguments.length&&i!==undefined&&arguments[4],s={top:0,left:0},a=o?_(e):p(e,t);if("viewport"===r)s=C(a,o);else{var l=void 0;"scrollParent"===r?"BODY"===(l=g(h(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var u=A(l,a,o);if("HTML"!==l.nodeName||x(a))s=u;else{var c=T(),f=c.height,d=c.width;s.top+=u.top-u.marginTop,s.bottom=f+u.top,s.left+=u.left-u.marginLeft,s.right=d+u.left}}return s.left+=n,s.top+=n,s.right-=n,s.bottom-=n,s}function O(e){return e.width*e.height}
4function c(e,t,r,n,i,o){var s=5<arguments.length&&o!==undefined?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=N(r,n,s,i),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(l).map(function(e){return ye({key:e},l[e],{area:O(l[e])})}).sort(function(e,t){return t.area-e.area}),c=u.filter(function(e){var t=e.width,n=e.height;return t>=r.clientWidth&&n>=r.clientHeight}),f=0<c.length?c[0].key:u[0].key,d=e.split("-")[1];return f+(d?"-"+d:"")}function f(e,t,n,r){var i=3<arguments.length&&r!==undefined?arguments[3]:null;return A(n,i?_(t):p(t,n),i)}function D(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function L(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 R(e,t,n){n=n.split("-")[0];var r=D(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[s]=t[s]+t[l]/2-r[l]/2,i[a]=n===a?t[a]-r[u]:t[L(a)],i}function k(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function i(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=k(e,function(e){return e[t]===n});return e.indexOf(r)}function P(e,n,t){return(t===undefined?e:e.slice(0,i(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&&a(t)&&(n.offsets.popper=S(n.offsets.popper),n.offsets.reference=S(n.offsets.reference),n=t(n,e))}),n}function o(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=f(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=R(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=P(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function s(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function M(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 I(){return this.state.isDestroyed=!0,s(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[M("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function F(e){var t=e.ownerDocument;return t?t.defaultView:window}function $(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||$(g(o.parentNode),t,n,r),r.push(o)}function B(e,t,n,r){n.updateBound=r,F(e).addEventListener("resize",n.updateBound,{passive:!0});var i=g(e);return $(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function H(){this.state.eventsEnabled||(this.state=B(this.reference,this.options,this.state,this.scheduleUpdate))}function U(e,t){return F(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function V(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=U(this.reference,this.state))}function W(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function K(n,r){Object.keys(r).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&W(r[e])&&(t="px"),n.style[e]=r[e]+t})}
vendor: 5,485 bytes, line 4
4function j(t,n){Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})}function z(e){return K(e.instance.popper,e.styles),j(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&K(e.arrowElement,e.arrowStyles),e}function G(e,t,n,r,i){var o=f(i,t,e,n.positionFixed),s=c(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),K(t,{position:n.positionFixed?"fixed":"absolute"}),n}function q(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=k(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;o!==undefined&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=o!==undefined?o:t.gpuAcceleration,a=w(y(e.instance.popper)),l={position:i.position},u={left:Math.floor(i.left),top:Math.round(i.top),bottom:Math.round(i.bottom),right:Math.floor(i.right)},c="bottom"===n?"top":"bottom",f="right"===r?"left":"right",d=M("transform"),h=void 0,p=void 0;if(p="bottom"===c?-a.height+u.bottom:u.top,h="right"===f?-a.width+u.right:u.left,s&&d)l[d]="translate3d("+h+"px, "+p+"px, 0)",l[c]=0,l[f]=0,l.willChange="transform";else{var g="bottom"===c?-1:1,m="right"===f?-1:1;l[c]=p*g,l[f]=h*m,l.willChange=c+", "+f}var v={"x-placement":e.placement};return e.attributes=ye({},v,e.attributes),e.styles=ye({},l,e.styles),e.arrowStyles=ye({},e.offsets.arrow,e.arrowStyles),e}function X(e,t,n){var r=k(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+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function Y(e,t){var n;if(!X(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,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",c=l?"Top":"Left",f=c.toLowerCase(),d=l?"left":"top",h=l?"bottom":"right",p=D(r)[u];a[h]-p<s[f]&&(e.offsets.popper[f]-=s[f]-(a[h]-p)),a[f]+p>s[h]&&(e.offsets.popper[f]+=a[f]+p-s[h]),e.offsets.popper=S(e.offsets.popper);var g=a[f]+a[u]/2-p/2,m=E(e.instance.popper),v=parseFloat(m["margin"+c],10),y=parseFloat(m["border"+c+"Width"],10),b=g-e.offsets.popper[f]-v-y;return b=Math.max(Math.min(s[u]-p,b),0),e.arrowElement=r,e.offsets.arrow=(ve(n={},f,Math.round(b)),ve(n,d,""),n),e}function Q(e){return"end"===e?"start":"start"===e?"end":e}function Z(e,t){var n=1<arguments.length&&t!==undefined&&arguments[1],r=Ee.indexOf(e),i=Ee.slice(r+1).concat(Ee.slice(0,r));return n?i.reverse():i}function J(h,p){if(s(h.instance.modifiers,"inner"))return h;if(h.flipped&&h.placement===h.originalPlacement)return h;var g=N(h.instance.popper,h.instance.reference,p.padding,p.boundariesElement,h.positionFixed),m=h.placement.split("-")[0],v=L(m),y=h.placement.split("-")[1]||"",b=[];switch(p.behavior){case Te.FLIP:b=[m,v];break;case Te.CLOCKWISE:b=Z(m);break;case Te.COUNTERCLOCKWISE:b=Z(m,!0);break;default:b=p.behavior}return b.forEach(function(e,t){if(m!==e||b.length===t+1)return h;m=h.placement.split("-")[0],v=L(m);var n=h.offsets.popper,r=h.offsets.reference,i=Math.floor,o="left"===m&&i(n.right)>i(r.left)||"right"===m&&i(n.left)<i(r.right)||"top"===m&&i(n.bottom)>i(r.top)||"bottom"===m&&i(n.top)<i(r.bottom),s=i(n.left)<i(g.left),a=i(n.right)>i(g.right),l=i(n.top)<i(g.top),u=i(n.bottom)>i(g.bottom),c="left"===m&&s||"right"===m&&a||"top"===m&&l||"bottom"===m&&u,f=-1!==["top","bottom"].indexOf(m),d=!!p.flipVariations&&(f&&"start"===y&&s||f&&"end"===y&&a||!f&&"start"===y&&l||!f&&"end"===y&&u);(o||c||d)&&(h.flipped=!0,(o||c)&&(m=b[t+1]),d&&(y=Q(y)),h.placement=m+(y?"-"+y:""),h.offsets.popper=ye({},h.offsets.popper,R(h.instance.popper,h.offsets.reference,h.placement)),h=P(h.instance.modifiers,h,"flip"))}),h}function ee(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(i),a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return n[a]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[u]),n[l]>o(r[a])&&(e.offsets.popper[l]=o(r[a])),e}function te(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],s=i[2];if(!o)return e;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=r}return S(a)[t]/100*o}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function ne(e,i,o,t){var s=[0,0],a=-1!==["right","left"].indexOf(t),n=e.split(/(\+|\-)/).map(function(e){return e.trim()}),r=n.indexOf(k(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+/,u=-1!==r?[n.slice(0,r).concat([n[r].split(l)[0]]),[n[r].split(l)[1]].concat(n.slice(r+1))]:[n];return(u=u.map(function(e,t){var n=(1===t?!a:a)?"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 te(e,n,i,o)})}
4)).forEach(function(n,r){n.forEach(function(e,t){W(e)&&(s[r]+=e*("-"===n[t-1]?-1:1))})}),s}function re(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,s=i.reference,a=r.split("-")[0],l=void 0;return l=W(+n)?[+n,0]:ne(n,o,s,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function ie(e,r){var t=r.boundariesElement||y(e.instance.popper);e.instance.reference===t&&(t=y(t));var n=M("transform"),i=e.instance.popper.style,o=i.top,s=i.left,a=i[n];i.top="",i.left="",i[n]="";var l=N(e.instance.popper,e.instance.reference,r.padding,t,e.positionFixed);i.top=o,i.left=s,i[n]=a,r.boundaries=l;var u=r.priority,c=e.offsets.popper,f={primary:function d(e){var t=c[e];return c[e]<l[e]&&!r.escapeWithReference&&(t=Math.max(c[e],l[e])),ve({},e,t)},secondary:function h(e){var t="right"===e?"left":"top",n=c[t];return c[e]>l[e]&&!r.escapeWithReference&&(n=Math.min(c[t],l[e]-("right"===e?c.width:c.height))),ve({},t,n)}};return u.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=ye({},c,f[t](e))}),e.offsets.popper=c,e}function oe(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,s=i.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",u=a?"width":"height",c={start:ve({},l,o[l]),end:ve({},l,o[l]+o[u]-s[u])};e.offsets.popper=ye({},s,c[r])}return e}function se(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=k(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}function ae(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=o[n]-(a?i[s?"width":"height"]:0),e.placement=L(t),e.offsets.popper=S(i),e}for(var le="undefined"!=typeof window&&"undefined"!=typeof document,ue=["Edge","Trident","Firefox"],ce=0,fe=0;fe<ue.length;fe+=1)if(le&&0<=navigator.userAgent.indexOf(ue[fe])){ce=1;break}var de=le&&window.Promise?t:n,he=le&&!(!window.MSInputMethodContext||!document.documentMode),pe=le&&/MSIE 10/.test(navigator.userAgent),ge=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},me=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}}(),ve=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},ye=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},be=["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"],Ee=be.slice(3),Te={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},Se={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function we(){},onUpdate:function Ae(){},modifiers:{shift:{order:100,enabled:!0,fn:oe},offset:{order:200,enabled:!0,fn:re,offset:0},preventOverflow:{order:300,enabled:!0,fn:ie,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ee},arrow:{order:500,enabled:!0,fn:Y,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:J,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ae},hide:{order:800,enabled:!0,fn:se},computeStyle:{order:850,enabled:!0,fn:q,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:z,onLoad:G,gpuAcceleration:undefined}}},Ce=function(){function s(e,t,n){var r=this,i=2<arguments.length&&n!==undefined?arguments[2]:{};ge(this,s),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=de(this.update.bind(this)),this.options=ye({},s.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(ye({}
4,s.Defaults.modifiers,i.modifiers)).forEach(function(e){r.options.modifiers[e]=ye({},s.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ye({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(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 me(s,[{key:"update",value:function e(){return o.call(this)}},{key:"destroy",value:function t(){return I.call(this)}},{key:"enableEventListeners",value:function n(){return H.call(this)}},{
5key:"disableEventListeners",value:function r(){return V.call(this)}}]),s}();return Ce.Utils=("undefined"!=typeof window?window:global).PopperUtils,Ce.placements=be,Ce.Defaults=Se,Ce});var Util=function(r){function a(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function e(){return{bindType:s.end,delegateType:s.end,handle:function e(e){return r(e.target).is(this)?e.handleObj.handler.apply(this,arguments):undefined}}}function t(){return("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"}}function n(e){var t=this,n=!1;return r(this).one(u.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||u.triggerTransitionEnd(t)},e),this}function i(){s=t(),r.fn.emulateTransitionEnd=n,u.supportsTransitionEnd()&&(r.event.special[u.TRANSITION_END]=e())}function o(e){return e="function"==typeof r.escapeSelector?r.escapeSelector(e).substr(1):e.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1")}var s=!1,l=1e6,u={TRANSITION_END:"bsTransitionEnd",getUID:function c(e){for(;e+=~~(Math.random()*l),document.getElementById(e););return e},getSelectorFromElement:function f(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||""),"#"===t.charAt(0)&&(t=o(t));try{return 0<r(document).find(t).length?t:null}catch(n){return null}},reflow:function d(e){return e.offsetHeight},triggerTransitionEnd:function h(e){r(e).trigger(s.end)},supportsTransitionEnd:function p(){return Boolean(s)},isElement:function g(e){return(e[0]||e).nodeType},typeCheckConfig:function m(e,t,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r],o=t[r],s=o&&u.isElement(o)?"element":a(o);if(!new RegExp(i).test(s))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+s+'" but expected type "'+i+'".')}}};return i(),u}($),Modal=function(w){var A="modal",C="4.0.0",x="bs.modal",_="."+x,e=".data-api",t=w.fn[A],N=300,O=150,D=27,L={backdrop:!0,keyboard:!0,focus:!0,show:!0},R={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},k={HIDE:"hide"+_,HIDDEN:"hidden"+_,SHOW:"show"+_,SHOWN:"shown"+_,FOCUSIN:"focusin"+_,RESIZE:"resize"+_,CLICK_DISMISS:"click.dismiss"+_,KEYDOWN_DISMISS:"keydown.dismiss"+_,MOUSEUP_DISMISS:"mouseup.dismiss"+_,MOUSEDOWN_DISMISS:"mousedown.dismiss"+_,CLICK_DATA_API:"click"+_+e},P={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},M={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},s=function(){function i(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=w(e).find(M.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}var e=i.prototype;return e.toggle=function t(e){return this._isShown?this.hide():this.show(e)},e.show=function n(e){var t=this;if(!this._isTransitioning&&!this._isShown){Util.supportsTransitionEnd()&&w(this._element).hasClass(P.FADE)&&(this._isTransitioning=!0);var n=w.Event(k.SHOW,{relatedTarget:e});w(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),w(document.body).addClass(P.OPEN),this._setEscapeEvent(),this._setResizeEvent(),w(this._element).on(k.CLICK_DISMISS,M.DATA_DISMISS,function(e){return t.hide(e)}),w(this._dialog).on(k.MOUSEDOWN_DISMISS,function(){w(t._element).one(k.MOUSEUP_DISMISS,function(e){w(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},e.hide=function r(e){var t=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var n=w.Event(k.HIDE);if(w(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var r=Util.supportsTransitionEnd()&&w(this._element).hasClass(P.FADE);r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),w(document).off(k.FOCUSIN),w(this._element).removeClass(P.SHOW),w(this._element).off(k.CLICK_DISMISS),w(this._dialog).off(k.MOUSEDOWN_DISMISS),r?w(this._element).one(Util.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(N):this._hideModal()}}},e.dispose=function o(){w.removeData(this._element,x),w(window,document,this._element,this._backdrop).off(_),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},e.handleUpdate=function s(){this._adjustDialog()},e._getConfig=function a(e){return e=_extends({},L,e),Util.typeCheckConfig(A,e,R),e},e._showElement=function l(e){var t=this,n=Util.supportsTransitionEnd()&&w(this._element).hasClass(P.FADE);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.scrollTop=0,n&&Util.reflow(this._element),w(this._element).addClass(P.SHOW),this._config.focus&&this._enforceFocus();var r=w.Event(k.SHOWN,{relatedTarget:e}),i=function i(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,w(t._element).trigger(r)};n?w(this._dialog).one(Util.TRANSITION_END,i).emulateTransitionEnd(N):i()},e._enforceFocus=function u(){var t=this;w(document).off(k.FOCUSIN).on(k.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===w(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function c(){var t=this;this._isShown&&this._config.keyboard?w(this._element).on(k.KEYDOWN_DISMISS,function(e){e.which===D&&(e.preventDefault(),t.hide())}):this._isShown||w(this._element).off(k.KEYDOWN_DISMISS)},e._setResizeEvent=function f(){var t=this;this._isShown?w(window).on(k.RESIZE,function(e){return t.handleUpdate(e)}):w(window).off(k.RESIZE)},e._hideModal=function d(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){w(document.body).removeClass(P.OPEN),e._resetAdjustments(),e._resetScrollbar(),w(e._element).trigger(k.HIDDEN)})},e._removeBackdrop=function h(){this._backdrop&&(w(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function p(e){var t=this,n=w(this._element).hasClass(P.FADE)?P.FADE:"";if(this._isShown&&this._config.backdrop){var r=Util.supportsTransitionEnd()&&n;if(this._backdrop=document.createElement("div"),this._backdrop.className=P.BACKDROP,n&&w(this._backdrop).addClass(n),w(this._backdrop).appendTo(document.body),w(this._element).on(k.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._element.focus():t.hide())}),r&&Util.reflow(this._backdrop),w(this._backdrop).addClass(P.SHOW),!e)return;if(!r)return void e();w(this._backdrop).one(Util.TRANSITION_END,e).emulateTransitionEnd(O)}else if(!this._isShown&&this._backdrop){w(this._backdrop).removeClass(P.SHOW);var i=function i(){t._removeBackdrop(),e&&e()};Util.supportsTransitionEnd()&&w(this._element).hasClass(P.FADE)?w(this._backdrop).one(Util.TRANSITION_END,i).emulateTransitionEnd(O):i()}else e&&e()},e._adjustDialog=function g(){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 m(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function v(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function y(){var i=this;if(this._isBodyOverflowing){w(M.FIXED_CONTENT).each(function(e,t){var n=w(t)[0].style.paddingRight,r=w(t).css("padding-right");w(t).data("padding-right",n).css("padding-right",parseFloat(r)+i._scrollbarWidth+"px")}),w(M.STICKY_CONTENT).each(function(e,t){var n=w(t)[0].style.marginRight,r=w(t).css("margin-right");w(t).data("margin-right",n).css("margin-right",parseFloat(r)-i._scrollbarWidth+"px")}),w(M.NAVBAR_TOGGLER).each(function(e,t){var n=w(t)[0].style.marginRight,r=w(t).css("margin-right");w(t).data("margin-right",n).css("margin-right",parseFloat(r)+i._scrollbarWidth+"px")});var e=document.body.style.paddingRight,t=w("body").css("padding-right");w("body").data("padding-right",e).css("padding-right",parseFloat(t)+this._scrollbarWidth+"px")}},e._resetScrollbar=function b(){w(M.FIXED_CONTENT).each(function(e,t){var n=w(t).data("padding-right");void 0!==n&&w(t).css("padding-right",n).removeData("padding-right")}),w(M.STICKY_CONTENT+", "+M.NAVBAR_TOGGLER).each(function(e,t){var n=w(t).data("margin-right");void 0!==n&&w(t).css("margin-right",n).removeData("margin-right")});var e=w("body").data("padding-right");void 0!==e&&w("body").css("padding-right",e).removeData("padding-right")},e._getScrollbarWidth=function E(){var e=document.createElement("div");e.className=P.SCROLLBAR_MEASURER,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},i._jQueryInterface=function T(n,r){return this.each(function(){var e=w(this).data(x),t=_extends({},i.Default,w(this).data(),"object"==typeof n&&n);if(e||(e=new i(this,t),w(this).data(x,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method n
5amed "'+n+'"');e[n](r)}else t.show&&e.show(r)})},_createClass(i,null,[{key:"VERSION",get:function S(){return C}},{key:"Default",get:function S(){return L}}]),i}();return w(document).on(k.CLICK_DATA_API,M.DATA_TOGGLE,function(e){var t,n=this,r=Util.getSelectorFromElement(this);r&&(t=w(r)[0]);var i=w(t).data(x)?"toggle":_extends({},w(t).data(),w(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var o=w(t).one(k.SHOW,function(e){e.isDefaultPrevented()||o.one(k.HIDDEN,function(){w(n).is(":visible")&&n.focus()})});s._jQueryInterface.call(w(t),i,this)}),w.fn[A]=s._jQueryInterface,w.fn[A].Constructor=s,w.fn[A].noConflict=function(){return w.fn[A]=t,s._jQueryInterface},s}($),Tooltip=function(O){var D="tooltip",L="4.0.0",R="bs.tooltip",k="."+R,e=O.fn[D],P=150,M="bs-tooltip",I=new RegExp("(^|\\s)"+M+"\\S+","g"),F={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},$={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},B={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"},H={SHOW:"show",OUT:"out"},U={HIDE:"hide"+k,HIDDEN:"hidden"+k,SHOW:"show"+k,SHOWN:"shown"+k,INSERTED:"inserted"+k,CLICK:"click"+k,FOCUSIN:"focusin"+k,FOCUSOUT:"focusout"+k,MOUSEENTER:"mouseenter"+k,MOUSELEAVE:"mouseleave"+k},V={FADE:"fade",SHOW:"show"},W={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},K={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},t=function(){function f(e,t){if("undefined"==typeof Popper)throw new TypeError("Bootstrap 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=f.prototype;return e.enable=function t(){this._isEnabled=!0},e.disable=function n(){this._isEnabled=!1},e.toggleEnabled=function r(){this._isEnabled=!this._isEnabled},e.toggle=function i(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=O(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),O(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(O(this.getTipElement()).hasClass(V.SHOW))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function o(){clearTimeout(this._timeout),O.removeData(this.element,this.constructor.DATA_KEY),O(this.element).off(this.constructor.EVENT_KEY),O(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&O(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 s(){var t=this;if("none"===O(this.element).css("display"))throw new Error("Please use show on visible elements");var e=O.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){O(this.element).trigger(e);var n=O.contains(this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!n)return;var r=this.getTipElement(),i=Util.getUID(this.constructor.NAME);r.setAttribute("id",i),this.element.setAttribute("aria-describedby",i),this.setContent(),this.config.animation&&O(r).addClass(V.FADE);var o="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,s=this._getAttachment(o);this.addAttachmentClass(s);var a=!1===this.config.container?document.body:O(this.config.container);O(r).data(this.constructor.DATA_KEY,this),O.contains(this.element.ownerDocument.documentElement,this.tip)||O(r).appendTo(a),O(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Popper(this.element,r,{placement:s,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:W.ARROW}
5,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function l(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function u(e){t._handlePopperPlacementChange(e)}}),O(r).addClass(V.SHOW),"ontouchstart"in document.documentElement&&O("body").children().on("mouseover",null,O.noop);var c=function c(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,O(t.element).trigger(t.constructor.Event.SHOWN),e===H.OUT&&t._leave(null,t)};Util.supportsTransitionEnd()&&O(this.tip).hasClass(V.FADE)?O(this.tip).one(Util.TRANSITION_END,c).emulateTransitionEnd(f._TRANSITION_DURATION):c()}},e.hide=function a(e){var t=this,n=this.getTipElement(),r=O.Event(this.constructor.Event.HIDE),i=function i(){t._hoverState!==H.SHOW&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),O(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};O(this.element).trigger(r),r.isDefaultPrevented()||(O(n).removeClass(V.SHOW),"ontouchstart"in document.documentElement&&O("body").children().off("mouseover",null,O.noop),this._activeTrigger[K.CLICK]=!1,this._activeTrigger[K.FOCUS]=!1,this._activeTrigger[K.HOVER]=!1,Util.supportsTransitionEnd()&&O(this.tip).hasClass(V.FADE)?O(n).one(Util.TRANSITION_END,i).emulateTransitionEnd(P):i(),this._hoverState="")},e.update=function l(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function u(){return Boolean(this.getTitle())},e.addAttachmentClass=function c(e){O(this.getTipElement()).addClass(M+"-"+e)},e.getTipElement=function d(){return this.tip=this.tip||O(this.config.template)[0],this.tip},e.setContent=function h(){var e=O(this.getTipElement());this.setElementContent(e.find(W.TOOLTIP_INNER),this.getTitle()),e.removeClass(V.FADE+" "+V.SHOW)},e.setElementContent=function p(e,t){var n=this.config.html;"object"==typeof t&&(t.nodeType||t.jquery)?n?O(t).parent().is(e)||e.empty().append(t):e.text(O(t).text()):e[n?"html":"text"](t)},e.getTitle=function g(){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._getAttachment=function m(e){return $[e.toUpperCase()]},e._setListeners=function v(){var r=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)O(r.element).on(r.constructor.Event.CLICK,r.config.selector,function(e){return r.toggle(e)});else if(e!==K.MANUAL){var t=e===K.HOVER?r.constructor.Event.MOUSEENTER:r.constructor.Event.FOCUSIN,n=e===K.HOVER?r.constructor.Event.MOUSELEAVE:r.constructor.Event.FOCUSOUT;O(r.element).on(t,r.config.selector,function(e){return r._enter(e)}).on(n,r.config.selector,function(e){return r._leave(e)})}O(r.element).closest(".modal").on("hide.bs.modal",function(){return r.hide()})}),this.config.selector?this.config=_extends({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function y(){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 b(e,t){var n=this.constructor.DATA_KEY;(t=t||O(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),O(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?K.FOCUS:K.HOVER]=!0),O(t.getTipElement()).hasClass(V.SHOW)||t._hoverState===H.SHOW?t._hoverState=H.SHOW:(clearTimeout(t._timeout),t._hoverState=H.SHOW,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===H.SHOW&&t.show()},t.config.delay.show):t.show())},e._leave=function E(e,t){var n=this.constructor.DATA_KEY;(t=t||O(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),O(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?K.FOCUS:K.HOVER]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=H.OUT,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===H.OUT&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function T(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function S(e){return"number"==typeof(e=_extends({},this.constructor.Default,O(this.element).data(),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()),Util.typeCheckConfig(D,e,this.constructor.DefaultType),e},e._getDelegateConfig=function w(){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 A(){var e=O(this.getTipElement()),t=e.attr("class").match(I);null!==t&&0<t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function C(e){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function x(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(O(e).removeClass(V.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},f._jQueryInterface=function _(n){return this.each(function(){var e=O(this).data(R),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new f(this,t),O(this).data(R,e)),"string"==typeof n)){if("undefined"==typeof e[n])throw new TypeError('No method n
5amed "'+n+'"');e[n]()}})},_createClass(f,null,[{key:"VERSION",get:function N(){return L}},{key:"Default",get:function N(){return B}},{key:"NAME",get:function N(){return D}},{key:"DATA_KEY",get:function N(){return R}},{key:"Event",get:function N(){return U}},{key:"EVENT_KEY",get:function N(){return k}},{key:"DefaultType",get:function N(){return F}}]),f}();return O.fn[D]=t._jQueryInterface,O.fn[D].Constructor=t,O.fn[D].noConflict=function(){return O.fn[D]=e,t._jQueryInterface},t}($,Popper),Popover=function(f){var d="popover",h="4.0.0",p="bs.popover",g="."+p,e=f.fn[d],m="bs-popover",v=new RegExp("(^|\\s)"+m+"\\S+","g"),y=_extends({},Tooltip.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>'}),b=_extends({},Tooltip.DefaultType,{content:"(string|element|function)"}),E={FADE:"fade",SHOW:"show"},T={TITLE:".popover-header",CONTENT:".popover-body"},S={HIDE:"hide"+g,HIDDEN:"hidden"+g,SHOW:"show"+g,SHOWN:"shown"+g,INSERTED:"inserted"+g,CLICK:"click"+g,FOCUSIN:"focusin"+g,FOCUSOUT:"focusout"+g,MOUSEENTER:"mouseenter"+g,MOUSELEAVE:"mouseleave"+g},t=function(e){function r(){return e.apply(this,arguments)||this}_inheritsLoose(r,e);var t=r.prototype;return t.isWithContent=function n(){return this.getTitle()||this._getContent()},t.addAttachmentClass=function i(e){f(this.getTipElement()).addClass(m+"-"+e)},t.getTipElement=function o(){return this.tip=this.tip||f(this.config.template)[0],this.tip},t.setContent=function s(){var e=f(this.getTipElement());this.setElementContent(e.find(T.TITLE),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(T.CONTENT),t),e.removeClass(E.FADE+" "+E.SHOW)},t._getContent=function a(){return this.element.getAttribute("data-content")||this.config.content},t._cleanTipClass=function l(){var e=f(this.getTipElement()),t=e.attr("class").match(v);null!==t&&0<t.length&&e.removeClass(t.join(""))},r._jQueryInterface=function u(n){return this.each(function(){var e=f(this).data(p),t="object"==typeof n?n:null;if((e||!/destroy|hide/.test(n))&&(e||(e=new r(this,t),f(this).data(p,e)),"string"==typeof n)){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},_createClass(r,null,[{key:"VERSION",get:function c(){return h}},{key:"Default",get:function c(){return y}},{key:"NAME",get:function c(){return d}},{key:"DATA_KEY",get:function c(){return p}},{key:"Event",get:function c(){return S}},{key:"EVENT_KEY",get:function c(){return g}},{key:"DefaultType",get:function c(){return b}}]),r}(Tooltip);return f.fn[d]=t._jQueryInterface,f.fn[d].Constructor=t,f.fn[d].noConflict=function(){return f.fn[d]=e,t._jQueryInterface},t}($),Tab=function(u){var e="tab",l="4.0.0",c="bs.tab",t="."+c,n=".data-api",r=u.fn[e],f=150,d={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,CLICK_DATA_API:"click"+t+n},h={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},p={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},i=function(){function r(e){this._element=e}var e=r.prototype;return e.show=function t(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&u(this._element).hasClass(h.ACTIVE)||u(this._element).hasClass(h.DISABLED))){var e,r,t=u(this._element).closest(p.NAV_LIST_GROUP)[0],i=Util.getSelectorFromElement(this._element);if(t){var o="UL"===t.nodeName?p.ACTIVE_UL:p.ACTIVE;r=(r=u.makeArray(u(t).find(o)))[r.length-1]}var s=u.Event(d.HIDE,{relatedTarget:this._element}),a=u.Event(d.SHOW,{relatedTarget:r});if(r&&u(r).trigger(s),u(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){i&&(e=u(i)[0]),this._activate(this._element,t);var l=function l(){var e=u.Event(d.HIDDEN,{relatedTarget:n._element}),t=u.Event(d.SHOWN,{relatedTarget:r});u(r).trigger(e),u(n._element).trigger(t)};e?this._activate(e,e.parentNode,l):l()}}},e.dispose=function n(){u.removeData(this._element,c),this._element=null},e._activate=function i(e,t,n){var r=this,i=("UL"===t.nodeName?u(t).find(p.ACTIVE_UL):u(t).children(p.ACTIVE))[0],o=n&&Util.supportsTransitionEnd()&&i&&u(i).hasClass(h.FADE),s=function s(){return r._transitionComplete(e,i,n)};i&&o?u(i).one(Util.TRANSITION_END,s).emulateTransitionEnd(f):s()},e._transitionComplete=function o(e,t,n){if(t){u(t).removeClass(h.SHOW+" "+h.ACTIVE);var r=u(t.parentNode).find(p.DROPDOWN_ACTIVE_CHILD)[0];r&&u(r).removeClass(h.ACTIVE),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(u(e).addClass(h.ACTIVE),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),Util.reflow(e),u(e).addClass(h.SHOW),e.parentNode&&u(e.parentNode).hasClass(h.DROPDOWN_MENU)){var i=u(e).closest(p.DROPDOWN)[0];i&&u(i).find(p.DROPDOWN_TOGGLE).addClass(h.ACTIVE),e.setAttribute("aria-expanded",!0)}n&&n()},r._jQueryInterface=function s(n){return this.each(function(){var e=u(this),t=e.data(c);if(t||(t=new r(this),e.data(c,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method n
5amed "'+n+'"');t[n]()}})},_createClass(r,null,[{key:"VERSION",get:function a(){return l}}]),r}();return u(document).on(d.CLICK_DATA_API,p.DATA_TOGGLE,function(e){e.preventDefault(),i._jQueryInterface.call(u(this),"show")}),u.fn[e]=i._jQueryInterface,u.fn[e].Constructor=i,u.fn[e].noConflict=function(){return u.fn[e]=r,i._jQueryInterface},i}($),Collapse=function(p){var g="collapse",m="4.0.0",v="bs.collapse",e="."+v,t=".data-api",n=p.fn[g],y=600,b={toggle:!0,parent:""},E={toggle:"boolean",parent:"(string|element)"},T={SHOW:"show"+e,SHOWN:"shown"+e,HIDE:"hide"+e,HIDDEN:"hidden"+e,CLICK_DATA_API:"click"+e+t},S={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},w={WIDTH:"width",HEIGHT:"height"},A={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},r=function(){function a(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=p.makeArray(p('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=p(A.DATA_TOGGLE),r=0;r<n.length;r++){var i=n[r],o=Util.getSelectorFromElement(i);null!==o&&0<p(o).filter(e).length&&(this._selector=o,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=a.prototype;return e.toggle=function t(){p(this._element).hasClass(S.SHOW)?this.hide():this.show()},e.show=function n(){var e,t,n=this;if(!this._isTransitioning&&!p(this._element).hasClass(S.SHOW)&&(this._parent&&0===(e=p.makeArray(p(this._parent).find(A.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(e=null),!(e&&(t=p(e).not(this._selector).data(v))&&t._isTransitioning))){var r=p.Event(T.SHOW);if(p(this._element).trigger(r),!r.isDefaultPrevented()){e&&(a._jQueryInterface.call(p(e).not(this._selector),"hide"),t||p(e).data(v,null));var i=this._getDimension();p(this._element).removeClass(S.COLLAPSE).addClass(S.COLLAPSING),(this._element.style[i]=0)<this._triggerArray.length&&p(this._triggerArray).removeClass(S.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var o=function o(){p(n._element).removeClass(S.COLLAPSING).addClass(S.COLLAPSE).addClass(S.SHOW),n._element.style[i]="",n.setTransitioning(!1),p(n._element).trigger(T.SHOWN)};if(Util.supportsTransitionEnd()){var s="scroll"+(i[0].toUpperCase()+i.slice(1));p(this._element).one(Util.TRANSITION_END,o).emulateTransitionEnd(y),this._element.style[i]=this._element[s]+"px"}else o()}}},e.hide=function r(){var e=this;if(!this._isTransitioning&&p(this._element).hasClass(S.SHOW)){var t=p.Event(T.HIDE);if(p(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();if(this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",Util.reflow(this._element),p(this._element).addClass(S.COLLAPSING).removeClass(S.COLLAPSE).removeClass(S.SHOW),0<this._triggerArray.length)for(var r=0;r<this._triggerArray.length;r++){var i=this._triggerArray[r],o=Util.getSelectorFromElement(i);if(null!==o)p(o).hasClass(S.SHOW)||p(i).addClass(S.COLLAPSED).attr("aria-expanded",!1)}this.setTransitioning(!0);var s=function s(){e.setTransitioning(!1),p(e._element).removeClass(S.COLLAPSING).addClass(S.COLLAPSE).trigger(T.HIDDEN)};this._element.style[n]="",Util.supportsTransitionEnd()?p(this._element).one(Util.TRANSITION_END,s).emulateTransitionEnd(y):s()}}},e.setTransitioning=function i(e){this._isTransitioning=e},e.dispose=function o(){p.removeData(this._element,v),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function s(e){return(e=_extends({},b,e)).toggle=Boolean(e.toggle),Util.typeCheckConfig(g,e,E),e},e._getDimension=function l(){return p(this._element).hasClass(w.WIDTH)?w.WIDTH:w.HEIGHT},e._getParent=function u(){var n=this,e=null;Util.isElement(this._config.parent)?(e=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(e=this._config.parent[0])):e=p(this._config.parent)[0];var t='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return p(e).find(t).each(function(e,t){n._addAriaAndCollapsedClass(a._getTargetFromElement(t),[t])}),e},e._addAriaAndCollapsedClass=function c(e,t){if(e){var n=p(e).hasClass(S.SHOW);0<t.length&&p(t).toggleClass(S.COLLAPSED,!n).attr("aria-expanded",n)}},a._getTargetFromElement=function f(e){var t=Util.getSelectorFromElement(e);return t?p(t)[0]:null},a._jQueryInterface=function d(r){return this.each(function(){var e=p(this),t=e.data(v),n=_extends({},b,e.data(),"object"==typeof r&&r);if(!t&&n.toggle&&/show|hide/.test(r)&&(n.toggle=!1),t||(t=new a(this,n),e.data(v,t)),"string"==typeof r){if("undefined"==typeof t[r])throw new TypeError('No method n
5amed "'+r+'"');t[r]()}})},_createClass(a,null,[{key:"VERSION",get:function h(){return m}},{key:"Default",get:function h(){return b}}]),a}();return p(document).on(T.CLICK_DATA_API,A.DATA_TOGGLE,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=p(this),t=Util.getSelectorFromElement(this);p(t).each(function(){var e=p(this),t=e.data(v)?"toggle":n.data();r._jQueryInterface.call(e,t)})}),p.fn[g]=r._jQueryInterface,p.fn[g].Constructor=r,p.fn[g].noConflict=function(){return p.fn[g]=n,r._jQueryInterface},r}($),ScrollSpy=function(h){var p="scrollspy",g="4.0.0",m="bs.scrollspy",v="."+m,e=".data-api",t=h.fn[p],y={offset:10,method:"auto",target:""},b={offset:"number",method:"string",target:"(string|element)"},E={ACTIVATE:"activate"+v,SCROLL:"scroll"+v,LOAD_DATA_API:"load"+v+e},T={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},S={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},w={OFFSET:"offset",POSITION:"position"},r=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+" "+S.NAV_LINKS+","+this._config.target+" "+S.LIST_ITEMS+","+this._config.target+" "+S.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,h(this._scrollElement).on(E.SCROLL,function(e){return n._process(e)}),this.refresh(),this._process()}var e=n.prototype;return e.refresh=function t(){var t=this,e=this._scrollElement===this._scrollElement.window?w.OFFSET:w.POSITION,i="auto"===this._config.method?e:this._config.method,o=i===w.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),h.makeArray(h(this._selector)).map(function(e){var t,n=Util.getSelectorFromElement(e);if(n&&(t=h(n)[0]),t){var r=t.getBoundingClientRect();if(r.width||r.height)return[h(t)[i]().top+o,n]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function r(){h.removeData(this._element,m),h(this._scrollElement).off(v),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 i(e){if("string"!=typeof(e=_extends({},y,e)).target){var t=h(e.target).attr("id");t||(t=Util.getUID(p),h(e.target).attr("id",t)),e.target="#"+t}return Util.typeCheckConfig(p,e,b),e},e._getScrollTop=function o(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function s(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function a(){
6return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function l(){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--;){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 u(t){this._activeTarget=t,this._clear();var e=this._selector.split(",");e=e.map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'});var n=h(e.join(","));n.hasClass(T.DROPDOWN_ITEM)?(n.closest(S.DROPDOWN).find(S.DROPDOWN_TOGGLE).addClass(T.ACTIVE),n.addClass(T.ACTIVE)):(n.addClass(T.ACTIVE),n.parents(S.NAV_LIST_GROUP).prev(S.NAV_LINKS+", "+S.LIST_ITEMS).addClass(T.ACTIVE),n.parents(S.NAV_LIST_GROUP).prev(S.NAV_ITEMS).children(S.NAV_LINKS).addClass(T.ACTIVE)),h(this._scrollElement).trigger(E.ACTIVATE,{relatedTarget:t})},e._clear=function c(){h(this._selector).filter(S.ACTIVE).removeClass(T.ACTIVE)},n._jQueryInterface=function f(t){return this.each(function(){var e=h(this).data(m);if(e||(e=new n(this,"object"==typeof t&&t),h(this).data(m,e)),"string"==typeof t){if("undefined"==typeof e[t])throw new TypeError('No method n
6amed "'+t+'"');e[t]()}})},_createClass(n,null,[{key:"VERSION",get:function d(){return g}},{key:"Default",get:function d(){return y}}]),n}();return h(window).on(E.LOAD_DATA_API,function(){for(var e=h.makeArray(h(S.DATA_SPY)),t=e.length;t--;){var n=h(e[t]);r._jQueryInterface.call(n,n.data())}}),h.fn[p]=r._jQueryInterface,h.fn[p].Constructor=r,h.fn[p].noConflict=function(){return h.fn[p]=t,r._jQueryInterface},r}($),Carousel=function(E){var T="carousel",S="4.0.0",w="bs.carousel",A="."+w,e=".data-api",t=E.fn[T],C=600,x=37,_=39,N=500,O={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},D={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},L={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},R={SLIDE:"slide"+A,SLID:"slid"+A,KEYDOWN:"keydown"+A,MOUSEENTER:"mouseenter"+A,MOUSELEAVE:"mouseleave"+A,TOUCHEND:"touchend"+A,LOAD_DATA_API:"load"+A+e,CLICK_DATA_API:"click"+A+e},k={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},P={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},n=function(){function o(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(t),this._element=E(e)[0],this._indicatorsElement=E(this._element).find(P.INDICATORS)[0],this._addEventListeners()}var e=o.prototype;return e.next=function t(){this._isSliding||this._slide(L.NEXT)},e.nextWhenVisible=function n(){!document.hidden&&E(this._element).is(":visible")&&"hidden"!==E(this._element).css("visibility")&&this.next()},e.prev=function r(){this._isSliding||this._slide(L.PREV)},e.pause=function i(e){e||(this._isPaused=!0),E(this._element).find(P.NEXT_PREV)[0]&&Util.supportsTransitionEnd()&&(Util.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function s(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 a(e){var t=this;this._activeElement=E(this._element).find(P.ACTIVE_ITEM)[0];var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)E(this._element).one(R.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var r=n<e?L.NEXT:L.PREV;this._slide(r,this._items[e])}},e.dispose=function l(){E(this._element).off(A),E.removeData(this._element,w),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 u(e){return e=_extends({},O,e),Util.typeCheckConfig(T,e,D),e},e._addEventListeners=function c(){var t=this;this._config.keyboard&&E(this._element).on(R.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(E(this._element).on(R.MOUSEENTER,function(e){return t.pause(e)}).on(R.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&E(this._element).on(R.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},N+t._config.interval)}))},e._keydown=function f(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case x:e.preventDefault(),this.prev();break;case _:e.preventDefault(),this.next()}},e._getItemIndex=function d(e){return this._items=E.makeArray(E(e).parent().find(P.ITEM)),this._items.indexOf(e)},e._getItemByDirection=function h(e,t){var n=e===L.NEXT,r=e===L.PREV,i=this._getItemIndex(t),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return t;var s=(i+(e===L.PREV?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function p(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(E(this._element).find(P.ACTIVE_ITEM)[0]),i=E.Event(R.SLIDE,{relatedTarget:e,direction:t,from:r,to:n});return E(this._element).trigger(i),i},e._setActiveIndicatorElement=function g(e){if(this._indicatorsElement){E(this._indicatorsElement).find(P.ACTIVE).removeClass(k.ACTIVE);var t=this._indicatorsElement.children[this._getItemIndex(e)];t&&E(t).addClass(k.ACTIVE)}},e._slide=function m(e,t){var n,r,i,o=this,s=E(this._element).find(P.ACTIVE_ITEM)[0],a=this._getItemIndex(s),l=t||s&&this._getItemByDirection(e,s),u=this._getItemIndex(l),c=Boolean(this._interval);if(e===L.NEXT?(n=k.LEFT,r=k.NEXT,i=L.LEFT):(n=k.RIGHT,r=k.PREV,i=L.RIGHT),l&&E(l).hasClass(k.ACTIVE))this._isSliding=!1;else if(!this._triggerSlideEvent(l,i).isDefaultPrevented()&&s&&l){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(l);var f=E.Event(R.SLID,{relatedTarget:l,direction:i,from:a,to:u});Util.supportsTransitionEnd()&&E(this._element).hasClass(k.SLIDE)?(E(l).addClass(r),Util.reflow(l),E(s).addClass(n),E(l).addClass(n),E(s).one(Util.TRANSITION_END,function(){E(l).removeClass(n+" "+r).addClass(k.ACTIVE),E(s).removeClass(k.ACTIVE+" "+r+" "+n),o._isSliding=!1,setTimeout(function(){return E(o._element).trigger(f)},0)}).emulateTransitionEnd(C)):(E(s).removeClass(k.ACTIVE),E(l).addClass(k.ACTIVE),this._isSliding=!1,E(this._element).trigger(f)),c&&this.cycle()}},o._jQueryInterface=function v(r){return this.each(function(){var e=E(this).data(w),t=_extends({},O,E(this).data());"object"==typeof r&&(t=_extends({},t,r));var n="string"==typeof r?r:t.slide;if(e||(e=new o(this,t),E(this).data(w,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&&(e.pause(),e.cycle())})},o._dataApiClickHandler=function y(e){var t=Util.getSelectorFromElement(this);if(t){var n=E(t)[0];if(n&&E(n).hasClass(k.CAROUSEL)){var r=_extends({},E(n).data(),E(this).data()),i=this.getAttribute("data-slide-to");i&&(r.interval=!1),o._jQueryInterface.call(E(n),r),i&&E(n).data(w).to(i),e.preventDefault()}}},_createClass(o,null,[{key:"VERSION",get:function b(){return S}},{key:"Default",get:function b(){return O}}]),o}();return E(document).on(R.CLICK_DATA_API,P.DATA_SLIDE,n._dataApiClickHandler),E(window).on(R.LOAD_DATA_API,function(){E(P.DATA_RIDE).each(function(){var e=E(this);n._jQueryInterface.call(e,e.data())})}),E.fn[T]=n._jQueryInterface,E.fn[T].Constructor=n,E.fn[T].noConflict=function(){return E.fn[T]=t,n._jQueryInterface},n}($),Dropdown=function(m){var v="dropdown",y="4.0.0",b="bs.dropdown",E="."+b,e=".data-api",t=m.fn[v],T=27,S=32,w=9,A=38,C=40,x=3,_=new RegExp(A+"|"+C+"|"+T),N={HIDE:"hide"+E,HIDDEN:"hidden"+E,SHOW:"show"+E,SHOWN:"shown"+E,CLICK:"click"+E,CLICK_DATA_API:"click"+E+e,KEYDOWN_DATA_API:"keydown"+E+e,KEYUP_DATA_API:"keyup"+E+e},O={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"},D={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled)"},L={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},R={offset:0,flip:!0,boundary:"scrollParent"},k={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)"},n=function(){function l(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=l.prototype;return e.toggle=function t(){if(!this._element.disabled&&!m(this._element).hasClass(O.DISABLED)){var e=l._getParentFromElement(this._element),t=m(this._menu).hasClass(O.SHOW);if(l._clearMenus(),!t){var n={relatedTarget:this._element},r=m.Event(N.SHOW,n);if(m(e).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof Popper)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var i=this._element;m(e).hasClass(O.DROPUP)&&(m(this._menu).hasClass(O.MENULEFT)||m(this._menu).hasClass(O.MENURIGHT))&&(i=e),"scrollParent"!==this._config.boundary&&m(e).addClass(O.POSITION_STATIC),this._popper=new Popper(i,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===m(e).closest(D.NAVBAR_NAV).length&&m("body").children().on("mouseover",null,m.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),m(this._menu).toggleClass(O.SHOW),m(e).toggleClass(O.SHOW).trigger(m.Event(N.SHOWN,n))}}}},e.dispose=function n(){m.removeData(this._element,b),m(this._element).off(E),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function r(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function i(){var t=this;m(this._element).on(N.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function o(e){return e=_extends({},this.constructor.Default,m(this._element).data(),e),Util.typeCheckConfig(v,e,this.constructor.DefaultType),e},e._getMenuElement=function s(){if(!this._menu){var e=l._getParentFromElement(this._element);this._menu=m(e).find(D.MENU)[0]}return this._menu},e._getPlacement=function a(){var e=m(this._element).parent(),t=L.BOTTOM;return e.hasClass(O.DROPUP)?(t=L.TOP,m(this._menu).hasClass(O.MENURIGHT)&&(t=L.TOPEND)):e.hasClass(O.DROPRIGHT)?t=L.RIGHT:e.hasClass(O.DROPLEFT)?t=L.LEFT:m(this._menu).hasClass(O.MENURIGHT)&&(t=L.BOTTOMEND),t},e._detectNavbar=function u(){return 0<m(this._element).closest(".navbar").length},e._getPopperConfig=function c(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=_extends({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset,{placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip}
6,preventOverflow:{boundariesElement:this._config.boundary}}}},l._jQueryInterface=function f(t){return this.each(function(){var e=m(this).data(b);if(e||(e=new l(this,"object"==typeof t?t:null),m(this).data(b,e)),"string"==typeof t){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},l._clearMenus=function d(e){if(!e||e.which!==x&&("keyup"!==e.type||e.which===w))for(var t=m.makeArray(m(D.DATA_TOGGLE)),n=0;n<t.length;n++){var r=l._getParentFromElement(t[n]),i=m(t[n]).data(b),o={relatedTarget:t[n]};if(i){var s=i._menu;if(m(r).hasClass(O.SHOW)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&e.which===w)&&m.contains(r,e.target))){var a=m.Event(N.HIDE,o);m(r).trigger(a),a.isDefaultPrevented()||("ontouchstart"in document.documentElement&&m("body").children().off("mouseover",null,m.noop),t[n].setAttribute("aria-expanded","false"),m(s).removeClass(O.SHOW),m(r).removeClass(O.SHOW).trigger(m.Event(N.HIDDEN,o)))}}}},l._getParentFromElement=function h(e){var t,n=Util.getSelectorFromElement(e);return n&&(t=m(n)[0]),t||e.parentNode},l._dataApiKeydownHandler=function p(e){if((/input|textarea/i.test(e.target.tagName)?!(e.which===S||e.which!==T&&(e.which!==C&&e.which!==A||m(e.target).closest(D.MENU).length)):_.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!m(this).hasClass(O.DISABLED))){var t=l._getParentFromElement(this),n=m(t).hasClass(O.SHOW);if((n||e.which===T&&e.which===S)&&(!n||e.which!==T&&e.which!==S)){var r=m(t).find(D.VISIBLE_ITEMS).get();if(0!==r.length){var i=r.indexOf(e.target);e.which===A&&0<i&&i--,e.which===C&&i<r.length-1&&i++,i<0&&(i=0),r[i].focus()}}else{if(e.which===T){var o=m(t).find(D.DATA_TOGGLE)[0];m(o).trigger("focus")}m(this).trigger("click")}}},_createClass(l,null,[{key:"VERSION",get:function g(){return y}},{key:"Default",get:function g(){return R}},{key:"DefaultType",get:function g(){return k}}]),l}();return m(document).on(N.KEYDOWN_DATA_API,D.DATA_TOGGLE,n._dataApiKeydownHandler).on(N.KEYDOWN_DATA_API,D.MENU,n._dataApiKeydownHandler).on(N.CLICK_DATA_API+" "+N.KEYUP_DATA_API,n._clearMenus).on(N.CLICK_DATA_API,D.DATA_TOGGLE,function(e){e.preventDefault(),e.stopPropagation(),n._jQueryInterface.call(m(this),"toggle")}).on(N.CLICK_DATA_API,D.FORM_CHILD,function(e){e.stopPropagation()}),m.fn[v]=n._jQueryInterface,m.fn[v].Constructor=n,m.fn[v].noConflict=function(){return m.fn[v]=t,n._jQueryInterface},n}($,Popper),Button=function(s){var e="button",a="4.0.0",l="bs.button",t="."+l,n=".data-api",r=s.fn[e],u={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},c={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},i={CLICK_DATA_API:"click"+t+n,FOCUS_BLUR_DATA_API:"focus"+t+n+" blur"+t+n},o=function(){function n(e){this._element=e}var e=n.prototype;return e.toggle=function t(){var e=!0,t=!0,n=s(this._element).closest(c.DATA_TOGGLE)[0];if(n){var r=s(this._element).find(c.INPUT)[0];if(r){if("radio"===r.type)if(r.checked&&s(this._element).hasClass(u.ACTIVE))e=!1;else{var i=s(n).find(c.ACTIVE)[0];i&&s(i).removeClass(u.ACTIVE)}if(e){if(r.hasAttribute("disabled")||n.hasAttribute("disabled")||r.classList.contains("disabled")||n.classList.contains("disabled"))return;r.checked=!s(this._element).hasClass(u.ACTIVE),s(r).trigger("change")}r.focus(),t=!1}}t&&this._element.setAttribute("aria-pressed",!s(this._element).hasClass(u.ACTIVE)),e&&s(this._element).toggleClass(u.ACTIVE)},e.dispose=function r(){s.removeData(this._element,l),this._element=null},n._jQueryInterface=function i(t){return this.each(function(){var e=s(this).data(l);e||(e=new n(this),s(this).data(l,e)),"toggle"===t&&e[t]()})},_createClass(n,null,[{key:"VERSION",get:function o(){return a}}]),n}();return s(document).on(i.CLICK_DATA_API,c.DATA_TOGGLE_CARROT,function(e){e.preventDefault();var t=e.target;s(t).hasClass(u.BUTTON)||(t=s(t).closest(c.BUTTON)),o._jQueryInterface.call(s(t),"toggle")}).on(i.FOCUS_BLUR_DATA_API,c.DATA_TOGGLE_CARROT,function(e){var t=s(e.target).closest(c.BUTTON)[0];s(t).toggleClass(u.FOCUS,/^focus(in)?$/.test(e.type))}),s.fn[e]=o._jQueryInterface,s.fn[e].Constructor=o,s.fn[e].noConflict=function(){return s.fn[e]=r,o._jQueryInterface},o}($),Alert=function(f){var e="alert",d="4.0.0",h="bs.alert",t="."+h,n=".data-api",r=f.fn[e],p=150,i={DISMISS:'[data-dismiss="alert"]'},g={CLOSE:"close"+t,CLOSED:"closed"+t,CLICK_DATA_API:"click"+t+n},m={ALERT:"alert",FADE:"fade",SHOW:"show"},o=function(){function r(e){this._element=e}var e=r.prototype;return e.close=function t(e){e=e||this._element;var t=this._getRootElement(e);this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},e.dispose=function n(){f.removeData(this._element,h),this._element=null},e._getRootElement=function i(e){var t=Util.getSelectorFromElement(e),n=!1;return t&&(n=f(t)[0]),n||(n=f(e).closest("."+m.ALERT)[0]),n},e._triggerCloseEvent=function o(e){var t=f.Event(g.CLOSE);return f(e).trigger(t),t},e._removeElement=function s(t){var n=this;f(t).removeClass(m.SHOW),Util.supportsTransitionEnd()&&f(t).hasClass(m.FADE)?f(t).one(Util.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(p):this._destroyElement(t)},e._destroyElement=function a(e){f(e).detach().trigger(g.CLOSED).remove()},r._jQueryInterface=function l(n){return this.each(function(){var e=f(this),t=e.data(h);t||(t=new r(this),e.data(h,t)),"close"===n&&t[n](this)})},r._handleDismiss=function u(t){return function(e){e&&e.preventDefault(),t.close(this)}},_createClass(r,null,[{key:"VERSION",get:function c(){return d}}]),r}();return f(document).on(g.CLICK_DATA_API,i.DISMISS,o._handleDismiss(new o)),f.fn[e]=o._jQueryInterface,f.fn[e].Constructor=o,f.fn[e].noConflict=function(){return f.fn[e]=r,o._jQueryInterface},o}($);(function(){this.Turbolinks={supported:null!=window.history.pushState&&null!=window.requestAnimationFrame&&null!=window.addEventListener,visit:function(e,t){return Turbolinks.controller.visit(e,t)},clearCache:function(){return Turbolinks.controller.clearCache()},setProgressBarDelay:function(e){return Turbolinks.controller.setProgressBarDelay(e)}}}).call(this),function(){var n,r,l,e,t,i,o,s,a,u=[].slice;Turbolinks.copyObject=function(e){var t,n,r;for(t in n={},e)r=e[t],n[t]=r;return n},Turbolinks.closest=function(e,t){return n.call(e,t)},n=null!=(a=document.documentElement.closest)?a:function(e){var t;for(t=this;t;
6){if(t.nodeType===Node.ELEMENT_NODE&&r.call(t,e))return t;t=t.parentNode}},Turbolinks.defer=function(e){return setTimeout(e,1)},Turbolinks.throttle=function(n){var r;return r=null,function(){var e,t;return e=1<=arguments.length?u.call(arguments,0):[],null!=r?r:r=requestAnimationFrame((t=this,function(){return r=null,n.apply(t,e)}))}},Turbolinks.dispatch=function(e,t){var n,r,i,o,s,a;return a=(s=null!=t?t:{}).target,n=s.cancelable,r=s.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!=a?a:document).dispatchEvent(i),i},(s=document.createEvent("Events")).initEvent("test",!0,!0),s.preventDefault(),l=s.defaultPrevented,Turbolinks.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,Turbolinks.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(){Turbolinks.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)}};Turbolinks.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=Turbolinks.Location.wrap(t).requestURL,this.referrer=Turbolinks.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}
6,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 Turbolinks.dispatch("turbolinks:request-start",{data:{url:this.url,xhr:this.xhr}})},e.prototype.notifyApplicationAfterRequestEnd=function(){return Turbolinks.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)}};Turbolinks.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=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)}};Turbolinks.BrowserAdapter=function(){function e(e){this.controller=e,this.showProgressBar=i(this.showProgressBar,this),this.progressBar=new Turbolinks.ProgressBar}var n,r,t;return t=Turbolinks.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)}};Turbolinks.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?(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1):void 0},e.prototype.push=function(e,t){return e=Turbolinks.Location.wrap(e),this.update("push",e,t)},e.prototype.replace=function(e,t){return e=Turbolinks.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=Turbolinks.Location.wrap(window.location),r=i.restorationIdentifier,this.delegate.historyPoppedToLocationWithRestorationIdentifier(t,r)):void 0},e.prototype.onPageLoad=function(){return Turbolinks.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(){Turbolinks.Snapshot=function(){function t(e){var t,n;n=e.head,t=e.body,this.head=null!=n?n:document.createElement("head"),this.body=null!=t?t:document.createElement("body")}return t.wrap=function(e){return e instanceof this?e:this.fromHTML(e)},t.fromHTML=function(e){var t;return(t=document.createElement("html")).innerHTML=e,this.fromElement(t)},t.fromElement=function(e){return new this({head:e.querySelector("head"),body:e.querySelector("body")})},t.prototype.clone=function(){return new t({head:this.head.cloneNode(!0),body:this.body.cloneNode(!0)})},t.prototype.getRootLocation=function(){var e,t;return t=null!=(e=this.getSetting("root"))?e:"/",new Turbolinks.Location(t)}
6,t.prototype.getCacheControlValue=function(){return this.getSetting("cache-control")},t.prototype.getElementForAnchor=function(t){try{return this.body.querySelector("[id='"+t+"'], a[name='"+t+"']")}catch(e){}},t.prototype.hasAnchor=function(e){return null!=this.getElementForAnchor(e)},t.prototype.isPreviewable=function(){return"no-preview"!==this.getCacheControlValue()},t.prototype.isCacheable=function(){return"no-cache"!==this.getCacheControlValue()},t.prototype.isVisitable=function(){return"reload"!==this.getSetting("visit-control")},t.prototype.getSetting=function(e){var t,n;return null!=(t=(n=this.head.querySelectorAll("meta[name='turbolinks-"+e+"']"))[n.length-1])?t.getAttribute("content"):void 0},t}()}.call(this),function(){var o=[].slice;Turbolinks.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,s,a,l;for(a=[],n=0,r=(o=t.attributes).length;n<r;n++)i=(s=o[n]).name,l=s.value,a.push(e.setAttribute(i,l));return a},e}()}.call(this),function(){Turbolinks.HeadDetails=function(){function e(e){var t,n,r,i,o,s;for(this.element=e,this.elements={},r=0,o=(s=this.element.childNodes).length;r<o;r++)(n=s[r]).nodeType===Node.ELEMENT_NODE&&(i=n.outerHTML,(null!=(t=this.elements)[i]?t[i]:t[i]={type:l(n),tracked:a(n),elements:[]}).elements.push(n))}var t,n,a,l;return 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){
7return this.getElementsMatchingTypeNotInDetails("stylesheet",e)},e.prototype.getElementsMatchingTypeNotInDetails=function(e,t){var n,r,i,o,s,a;for(r in s=[],i=this.elements)a=(o=i[r]).type,n=o.elements,a!==e||t.hasElementWithKey(r)||s.push(n[0]);return s},e.prototype.getProvisionalElements=function(){var e,t,n,r,i,o,s;for(t in n=[],r=this.elements)s=(i=r[t]).type,o=i.tracked,e=i.elements,null!=s||o?1<e.length&&n.push.apply(n,e.slice(1)):n.push.apply(n,e);return n},l=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")},e}()}.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;Turbolinks.SnapshotRenderer=function(e){function t(e,t,n){this.currentSnapshot=e,this.newSnapshot=t,this.isPreview=n,this.currentHeadDetails=new Turbolinks.HeadDetails(this.currentSnapshot.head),this.newHeadDetails=new Turbolinks.HeadDetails(this.newSnapshot.head),this.newBody=this.newSnapshot.body}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(){return this.activateBodyScriptElements(),this.importBodyPermanentElements(),this.assignNewBody()}
7,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.importBodyPermanentElements=function(){var e,t,n,r,i,o;for(o=[],t=0,n=(r=this.getNewBodyPermanentElements()).length;t<n;t++)i=r[t],(e=this.findCurrentBodyPermanentElement(i))?o.push(i.parentNode.replaceChild(e,i)):o.push(void 0);return o},t.prototype.activateBodyScriptElements=function(){var e,t,n,r,i,o;for(o=[],t=0,n=(r=this.getNewBodyScriptElements()).length;t<n;t++)i=r[t],e=this.createScriptElement(i),o.push(i.parentNode.replaceChild(e,i));return o},t.prototype.assignNewBody=function(){return document.body=this.newBody},t.prototype.focusFirstAutofocusableElement=function(){var e;return null!=(e=this.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.getNewBodyPermanentElements=function(){return this.newBody.querySelectorAll("[id][data-turbolinks-permanent]")},t.prototype.findCurrentBodyPermanentElement=function(e){return document.body.querySelector("#"+e.id+"[data-turbolinks-permanent]")},t.prototype.getNewBodyScriptElements=function(){return this.newBody.querySelectorAll("script")},t.prototype.findFirstAutofocusableElement=function(){return document.body.querySelector("[autofocus]")},t}(Turbolinks.Renderer)}.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;Turbolinks.ErrorRenderer=function(e){function t(e){this.html=e}return n(t,e),t.prototype.render=function(e){return this.renderView((t=this,function(){return t.replaceDocumentHTML(),t.activateBodyScriptElements(),e()}));var t},t.prototype.replaceDocumentHTML=function(){return document.documentElement.innerHTML=this.html},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}(Turbolinks.Renderer)}.call(this),function(){Turbolinks.View=function(){function e(e){this.delegate=e,this.element=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 Turbolinks.Snapshot.fromElement(this.element)},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.element.setAttribute("data-turbolinks-preview",""):this.element.removeAttribute("data-turbolinks-preview")},e.prototype.renderSnapshot=function(e,t,n){return Turbolinks.SnapshotRenderer.render(this.delegate,n,this.get
vendor: 4,116 bytes, line 7
7Snapshot(),Turbolinks.Snapshot.wrap(e),t)},e.prototype.renderError=function(e,t){return Turbolinks.ErrorRenderer.render(this.delegate,t,e)},e}()}.call(this),function(){var t=function(e,t){return function(){return e.apply(t,arguments)}};Turbolinks.ScrollManager=function(){function e(e){this.delegate=e,this.onScroll=t(this.onScroll,this),this.onScroll=Turbolinks.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(){Turbolinks.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 Turbolinks.Location.wrap(e).toCacheKey()},e}()}.call(this),function(){var r=function(e,t){return function(){return e.apply(t,arguments)}};Turbolinks.Visit=function(){function e(e,t,n){this.controller=e,this.action=n,this.performScroll=r(this.performScroll,this),this.identifier=Turbolinks.uuid(),this.location=Turbolinks.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 Turbolinks.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()}
7)):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=Turbolinks.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 Turbolinks.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)}};Turbolinks.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 Turbolinks.History(this),this.view=new Turbolinks.View(this),this.scrollManager=new Turbolinks.ScrollManager(this),this.restorationData={},this.clearCache(),this.setProgressBarDelay(500)}return e.prototype.start=function(){return Turbolinks.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 Turbolinks.SnapshotCache(10)},e.prototype.visit=function(e,t){var n,r;return null==t&&(t={}),e=Turbolinks.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 Turbolinks.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=Turbolinks.Location.wrap(window.location),this.restorationIdentifier=Turbolinks.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=Turbolinks.Location.wrap(e),this.history.push(this.location,this.restorationIdentifier)},e.prototype.replaceHistoryWithLocationAndRestorationIdentifier=function(e,t){return this.restorationIdentifier=t,this.location=Turbolinks.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=Turbolinks.Location.wrap(e)):this.adapter.pageInvalidated()},e.prototype.getCachedSnapshotForLocation=function(e){var t;return(t=this.cache.get(e))?t.clone():void 0},e.prototype.shouldCacheSnapshot=function(){return this.view.getSnapshot().isCacheable()},e.prototype.cacheSnapshot=function(){var e;return this.shouldCacheSnapshot()?(this.notifyApplicationBeforeCachingSnapshot(),e=this.view.getSnapshot(),this.cache.put(this.lastRenderedLocation,e.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 Turbolinks.dispatch("turbolinks:click",{target:e,data:{url:t.absoluteURL},cancelable:!0})},e.prototype.notifyApplicationBeforeVisitingLocation=function(e){return Turbolinks.dispatch("turbolinks:before-visit",{data:{url:e.absoluteURL},cancelable:!0})},e.prototype.notifyApplicationAfterVisitingLocation=function(e){return Turbolinks.dispatch("turbolinks:visit",{data:{url:e.absoluteURL}})},e.prototype.notifyApplicationBeforeCachingSnapshot=function(){return Turbolinks.dispatch("turbolinks:before-cache")},e.prototype.notifyApplicationBeforeRender=function(e){return Turbolinks.dispatch("turbolinks:before-render",{data:{newBody:e}})},e.prototype.notifyApplicationAfterRender=function(){return Turbolinks.dispatch("turbolinks:render")},e.prototype.notifyApplicationAfterPageLoad=function(e){return null==e&&(e={}),Turbolinks.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,s,a;return s=(i=null!=n?n:{}).restorationIdentifier,o=i.restorationData,r=i.historyChanged,(a=new Turbolinks.Visit(this,e,t)).restorationIdentifier=null!=s?s:Turbolinks.uuid(),a.restorationData=Turbolinks.copyObject(o),a.historyChanged=r,a.referrer=this.location,a},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)?Turbolinks.closest(e,"a[href]:not([target]):not([download])"):void 0},e.prototype.getVisitableLocationForLink=function(e){var t;return t=new Turbolinks.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=Turbolinks.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;Turbolinks.start=function(){return t()?(null==Turbolinks.controller&&(Turbolinks.controller=e()),Turbolinks.controller.start()):void 0},t=function(){return null==window.Turbolinks&&(window.Turbolinks=Turbolinks),n()},e=function(){var e;return(e=new Turbolinks.Controller).adapter=new Turbolinks.BrowserAdapter(e),e},(n=function(){return window.Turbolinks===Turbolinks})()&&Turbolinks.start()}.call(this),function(){(function(){(function(){var t=[].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"]},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;if(e=1<=arguments.length?t.call(arguments,0):[],this.debugging)return e.push(Date.now()),console.log.apply(console,["[ActionCable]"].concat(t.call(e)))}}}).call(this)}).call(this);var l=this.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
7onnection. 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,s=function(e,t){return function(){return e.apply(t,arguments)}},a=[].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=s(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(){if(this.isActive())throw l.log("Attempted to open WebSocket, but existing socket is "+this.getState()),new Error("Existing connection must be closed before opening");return l.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+t),null!=this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new 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<=a.call(r,e)},e.prototype.isState=function(){var e,t;return t=1<=arguments.length?o.call(arguments,0):[],e=this.getState(),0<=a.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.isProtocolSupp
7orted())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 u=[].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,s,a;for(n=e,t=2<=arguments.length?u.call(arguments,1):[],s=[],r=0,i=(o=this.subscriptions).length;r<i;r++)a=o[r],s.push(this.notify.apply(this,[a,n].concat(u.call(t))));return s},e.prototype.notify=function(e,t){var n,r,i,o,s,a,l;for(a=e,r=t,n=3<=arguments.length?u.call(arguments,2):[],s=[],i=0,o=(l="string"==typeof a?this.findAll(a):[a]).length;i<o;i++)a=l[i],s.push("function"==typeof a[r]?a[r].apply(a,n):void 0);return s},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),function(){}.call(this),function(){}.call(this),function e(o,s,a){function l(n,t){if(!s[n]){if(!o[n]){var r="function"==typeof require&&require;if(!t&&r)return r(n,!0);if(u)return u(n,!0);throw new Error(
8"Cannot find module '"+n+"'")}var i=s[n]={exports:{}};o[n][0].call(i.exports,function(e){var t=o[n][1][e];return l(t||e)},i,i.exports,e,o,s,a)}return s[n].exports}for(var u="function"==typeof require&&require,t=0;t<a.length;t++)l(a[t]);return l}({1:[function(e){var t={isDomPresent:!0,navigator:navigator,window:window,document:document,ajax:function(e){var t=new XMLHttpRequest;if(t.open("GET",e,!1),t.overrideMimeType&&t.overrideMimeType("text/plain"),t.setRequestHeader("If-Modified-Since","Fri, 01 Jan 1960 00:00:00 GMT"),t.send(null),200!==t.status&&0!==t.status)throw"XMLHttpRequest failed, status code "+t.status;return t.responseText}};window.Processing=e("./src/")(t)},{"./src/":27}],2:[function(e,t){t.exports={name:"Processing.js",version:"1.4.8",dependencies:{argv:"~0.0.2",browserify:"~2.18.1",express:"~3.3.3","node-minify":"~0.7.3",nunjucks:"~0.1.9",open:"0.0.3"},devDependencies:{grunt:"~0.4.1","grunt-cli":"~0.1.8","grunt-contrib-jshint":"~0.4.3"}}},{}],3:[function(e,t){t.exports=function n(e){if(!(e instanceof Array)){if(e.iterator instanceof Function)return e.iterator();throw"Unable to iterate: "+e}var t=-1;this.hasNext=function(){return++t<e.length},this.next=function(){return e[t]}}},{}],4:[function(e,t){t.exports={X:0,Y:1,Z:2,R:3,G:4,B:5,A:6,U:7,V:8,NX:9,NY:10,NZ:11,EDGE:12,SR:13,SG:14,SB:15,SA:16,SW:17,TX:18,TY:19,TZ:20,VX:21,VY:22,VZ:23,VW:24,AR:25,AG:26,AB:27,DR:3,DG:4,DB:5,DA:6,SPR:28,SPG:29,SPB:30,SHINE:31,ER:32,EG:33,EB:34,BEEN_LIT:35,VERTEX_FIELD_COUNT:36,P2D:1,JAVA2D:1,WEBGL:2,P3D:2,OPENGL:2,PDF:0,DXF:0,OTHER:0,WINDOWS:1,MAXOSX:2,LINUX:3,EPSILON:1e-4,MAX_FLOAT:34028235e31,MIN_FLOAT:-34028235e31,MAX_INT:2147483647,MIN_INT:-2147483648,PI:Math.PI,TWO_PI:2*Math.PI,TAU:2*Math.PI,HALF_PI:Math.PI/2,THIRD_PI:Math.PI/3,QUARTER_PI:Math.PI/4,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,WHITESPACE:" \t\n\r\f\xa0",RGB:1,ARGB:2,HSB:3,ALPHA:4,CMYK:5,TIFF:0,TARGA:1,JPEG:2,GIF:3,BLUR:11,GRAY:12,INVERT:13,OPAQUE:14,POSTERIZE:15,THRESHOLD:16,ERODE:17,DILATE:18,REPLACE:0,BLEND:1,ADD:2,SUBTRACT:4,LIGHTEST:8,DARKEST:16,DIFFERENCE:32,EXCLUSION:64,MULTIPLY:128,SCREEN:256,OVERLAY:512,HARD_LIGHT:1024,SOFT_LIGHT:2048,DODGE:4096,BURN:8192,ALPHA_MASK:4278190080,RED_MASK:16711680,GREEN_MASK:65280,BLUE_MASK:255,CUSTOM:0,ORTHOGRAPHIC:2,PERSPECTIVE:3,POINT:2,POINTS:2,LINE:4,LINES:4,TRIANGLE:8,TRIANGLES:9,TRIANGLE_STRIP:10,TRIANGLE_FAN:11,QUAD:16,QUADS:16,QUAD_STRIP:17,POLYGON:20,PATH:21,RECT:30,ELLIPSE:31,ARC:32,SPHERE:40,BOX:41,GROUP:0,PRIMITIVE:1,GEOMETRY:3,VERTEX:0,BEZIER_VERTEX:1,CURVE_VERTEX:2,BREAK:3,CLOSESHAPE:4,OPEN:1,CLOSE:2,CORNER:0,CORNERS:1,RADIUS:2,CENTER_RADIUS:2,CENTER:3,DIAMETER:3,CENT
8ER_DIAMETER:3,BASELINE:0,TOP:101,BOTTOM:102,NORMAL:1,NORMALIZED:1,IMAGE:2,MODEL:4,SHAPE:5,SQUARE:"butt",ROUND:"round",PROJECT:"square",MITER:"miter",BEVEL:"bevel",AMBIENT:0,DIRECTIONAL:1,SPOT:3,BACKSPACE:8,TAB:9,ENTER:10,RETURN:13,ESC:27,DELETE:127,CODED:65535,SHIFT:16,CONTROL:17,ALT:18,CAPSLK:20,PGUP:33,PGDN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLK:144,META:157,INSERT:155,ARROW:"default",CROSS:"crosshair",HAND:"pointer",MOVE:"move",TEXT:"text",WAIT:"wait",NOCURSOR:"url('data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='), auto",DISABLE_OPENGL_2X_SMOOTH:1,ENABLE_OPENGL_2X_SMOOTH:-1,ENABLE_OPENGL_4X_SMOOTH:2,ENABLE_NATIVE_FONTS:3,DISABLE_DEPTH_TEST:4,ENABLE_DEPTH_TEST:-4,ENABLE_DEPTH_SORT:5,DISABLE_DEPTH_SORT:-5,DISABLE_OPENGL_ERROR_REPORT:6,ENABLE_OPENGL_ERROR_REPORT:-6,ENABLE_ACCURATE_TEXTURES:7,DISABLE_ACCURATE_TEXTURES:-7,HINT_COUNT:10,SINCOS_LENGTH:720,PRECISIONB:15,PRECISIONF:32768,PREC_MAXVAL:32767,PREC_ALPHA_SHIFT:9,PREC_RED_SHIFT:1,NORMAL_MODE_AUTO:0,NORMAL_MODE_SHAPE:1,NORMAL_MODE_VERTEX:2,MAX_LIGHTS:8}},{}],5:[function(e,t){t.exports=function(t){function e(){}function o(e,t,n){if(e.hasOwnProperty(t)&&"function"==typeof e[t]){var r=e[t];if("$overloads"in r)r.$defaultOverload=n;else if("$overloads"in n||r.length!==n.length){var i,o;"$overloads"in n?((i=n.$overloads.slice(0))[r.length]=r,o=n.$defaultOverload):((i=[])[n.length]=n,o=i[r.length]=r);var s=function(){return(s.$overloads[arguments.length]||("$methodArgsIndex"in s&&arguments.length>s.$methodArgsIndex?s.$overloads[s.$methodArgsIndex]:null)||s.$defaultOverload).apply(this,arguments)};s.$overloads=i,"$methodArgsIndex"in n&&(s.$methodArgsIndex=n.$methodArgsIndex),s.$defaultOverload=o,e[s.name=t]=s}}else e[t]=n}function r(e,n){function t(t){u.defineProperty(e,t,{get:function(){return n[t]},set:function(e){n[t]=e},enumerable:!0})}var r=[];for(var i in n)"function"==typeof n[i]?o(e,i,n[i]):"$"===i.charAt(0)||i in e||r.push(i);for(;0<r.length;)t(r.shift());e.$super=n}function l(e){return"string"==typeof e&&-1!==["byte","int","char","color","float","long","double"].indexOf(e)}e.prototype=t.PConstants;var u=new e;return Object.keys(t).forEach(function(e){u[e]=t[e]}),u.defineProperty=function(e,t,n){"defineProperty"in Object?Object.defineProperty(e,t,n):(n.hasOwnProperty("get")&&e.__defineGetter__(t,n.get),n.hasOwnProperty("set")&&e.__defineSetter__(t,n.set))},u.extendClassChain=function(e){for(var t=[e],n=e.$upcast;n;n=n.$upcast)r(n,e),t.push(n),e=n;for(;0<t.length;)t.pop().$self=e},u.extendStaticMembers=function(e,t){r(e,t)},u.extendInterfaceMembers=function(e,t){r(e,t)},u.addMethod=function(e,t,n,r){var i=e[t];if(i||r){var o=n.length;if("$overloads"in i)i.$overloads[o]=n;else{var s=function(){return(s.$overloads[arguments.length]||("$methodArgsIndex"in s&&arguments.length>s.$methodArgsIndex?s.$overloads[s.$methodArgsIndex]:null)||s.$defaultOverload).apply(this,arguments)},a=[];i&&(a[i.length]=i),a[o]=n,s.$overloads=a,s.$defaultOverload=i||n,r&&(s.$methodArgsIndex=o),e[s.name=t]=s}}else e[t]=n},u.createJavaArray=function(e,t){var n=null,r=null;if("string"==typeof e&&("boolean"===e?r=!1:l(e)&&(r=0)),"number"==typeof t[0]){var i=0|t[0];if(t.length<=1){(n=[]).length=i;for(var o=0;o<i;++o)n[o]=r}else{n=[];for(var s=t.slice(1),a=0;a<i;++a)n.push(u.createJavaArray(e,s))}}return n},u.defineProperty(u,"screenWidth",{get:function(){return window.innerWidth}}),u.defineProperty(u,"screenHeight",{get:function(){return window.innerHeight}}),u}},{}],6:[function(t,n){n.exports=function r(g,t){var m,i=t.window,v=t.document,f=i.XMLHttpRequest,n=t.noop,o=t.isDOMPresent,r=t.version;g.version=r||"@DEV-VERSION@",g.lib={},g.registerLibrary=function(e,t){(g.lib[e]=t).hasOwnProperty("init")&&t.init(defaultScope)},g.Sketch=function(e){this.attachFunction=e,this.options={pauseOnBlur:!1,globalKeyEvents:!1},this.onLoad=n,this.onSetup=n,this.onPause=n,this.onLoop=n,this.onFrameStart=n,this.onFrameEnd=n,this.onExit=n,this.params={},this.imageCache={pending:0,images:{},operaCache:{},add:function(e,t){var n;if(!this.images[e]&&(o||(this.images[e]=null),t||((t=new Image).onload=(n=this,function(){n.pending--}),this.pending++,t.src=e),this.images[e]=t,i.opera)){var r=v.createElement("div");r.appendChild(t),r.style.position="absolute",r.style.opacity=0,r.style.width="1px",r.style.height="1px",this.operaCache[e]||(v.body.appendChild(r),this.operaCache[e]=r)}}},this.sourceCode=undefined,this.attach=function(e){if("function"==typeof this.attachFunction)this.attachFunction(e);else{if(!this.sourceCode)throw"Unable to attach sketch to the processing instance";var t=new Function("return ("+this.sourceCode+");")();t(e),this.attachFunction=t}},this.toString=function(){var e,t="((function(Sketch) {\n";for(e in t+="var sketch = new Sketch(\n"+this.sourceCode+");\n",this.options)if(this.options.hasOwnProperty(e)){var n=this.options[e];t+="sketch.options."+e+" = "+("string"==typeof n?'"'+n+'"':""+n)+";\n"}for(e in this.imageCache)this.options.hasOwnProperty(e)&&(t+='sketch.imageCache.add("'+e+'");\n');return t+="return sketch;\n})(Processing.Sketch))"}};var y=g.loadSketchFromSources=function(o,t){function s(e,t){var n=new f;n.onreadystatechange=function(){var e;4===n.readyState&&(200!==n.status&&0!==n.status?e="Invalid XHR status "+n.status:""===n.responseText&&(e="withCredentials"in new f&&!1===(new f).withCredentials&&"file:"===i.location.protocol?"XMLHttpRequest failure, possibly due to a same-origin policy violation. You can try loading this page in another browser, or load it from http://localhost using a local webserver. See the Processing.js README for a more detailed explanation of this problem and solutions.":"File is empty."),t(n.responseText,e))},n.open("GET",e,!0),n.overrideMimeType&&n.overrideMimeType("application/json"),n.setRequestHeader("If-Modified-Since","Fri, 01 Jan 1960 00:00:00 GMT"),n.send(null)}function n(r,i){function t(t,n){if(a[r]=t,++c,n&&l.push(i+" ==> "+n),c===u){if(0!==l.length)throw"Processing.js: Unable to load pjs sketch files: "+l.join("\n");try{return new g(o,a.join("\n"))}catch(e){throw console.log("Processing.js: Unable to execute pjs sketch."),e}}}if("#"!==i.charAt(0))s(i,t);else{var n=v.getElementById(i.substring(1));n?t(n.text||n.textContent):t("","Unable to load pjs sketch: element with id '"+i.substring(1)+"' was not found")}}for(var a=[],l=[],u=t.length,c=0,r=0;r<u;++r)n(r,t[r])},b=function(){v.removeEventListener("DOMContentLoaded",b,!1),processingInstances=[],g.instances=processingInstances;for(var e,t=v.getElementsByTagName("canvas"),n=0,r=t.length;n<r;n++){var i=t[n].getAttribute("data-processing-sources");if(null===i&&null===(i=t[n].getAttribute("data-src"))&&(i=t[n].getAttribute("datasrc")),i){e=i.split(/\s+/g);for(var o=0;o<e.length;)e[o]?o++:e.splice(o,1);y(t[n],e)}}var s,a,l,u=v.getElementsByTagName("script"),c=[];for(s=u.length-1;0<=s;s--)c.push(u[s]);for(s=0,a=c.length;s<a;s++){var f=c[s];if(f.getAttribute){var d=f.getAttribute("type");if(d&&("text/processing"===d.toLowerCase()||"application/processing"===d.toLowerCase())){var h=f.getAttribute("data-processing-target");if(t=m,h)t=v.getElementById(h);else{for(var p=f.nextSibling;p&&1!==p.nodeType;)p=p.nextSibling;p&&"canvas"===p.nodeName.toLowerCase()&&(t=p)}if(t){if(f.getAttribute("src")){e=f.getAttribute("src").split(/\s+/),y(t,e);continue}l=f.textContent||f.text,new g(t,l)}}}}};return v.addEventListener("DOMContentLoaded",b,!1),g.reload=function(){if(0<processingInstances.length)for(var e=processingInstances.length-1;0<=e;e--)processingInstances[e]&&processingInstances[e].exit();b()},g.disableInit=function(){v.removeEventListener("DOMContentLoaded",b,!1)},g}},{}],7:[function(e,t){t.exports=function n(e,t){return null===e||null===t?null===e&&null===t:"string"==typeof e?e===t:"object"!=typeof e?e===t:e.equals instanceof Function?e.equals(t):e===t}},{}],8:[function(e,t){t.exports=function n(e,t){if("string"==typeof e){for(var n=0,r=0;r<e.length;++r)n=31*n+e.charCodeAt(r)&4294967295;return n}return"object"!=typeof e?4294967295&e:e.hashCode instanceof Function?e.hashCode():(e.$id===t&&(e.$id=Math.floor(65536*Math.random())-32768<<16|Math.floor(65536*Math.random())),e.$id)}},{}],9:[function(e,t){t.exports=function(e){function t(e){var t=-1;this.hasNext=function(){return t+1<e.length},this.next=function(){return e[++t]},this.remove=function(){e.splice(t--,1)}}function o(e){var r=[];e&&e.toArray&&(r=e.toArray()),this.get=function(e){return r[e]},this.contains=function(e){return-1<this.indexOf(e)},this.indexOf=function(e){for(var t=0,n=r.length;t<n;++t)if(i(e,r[t]))return t;return-1},this.lastIndexOf=function(e){for(var t=r.length-1;0<=t;--t)if(i(e,r[t]))return t;return-1},this.add=function(e,t){if(1===arguments.length)r.push(e);else{if(2!==arguments.length)throw"Please use the proper number of parameters.";var n=e;if("number"!=typeof n)throw typeof n+" is not a number";if(!(0<=n&&n<=r.length))throw n+" is not a valid index";r.splice(n,0,t)}},this.addAll=function(e,t){var n;if("number"==typeof e){if(e<0||e>r.length)throw"Index out of bounds for addAll: "+e+" greater or equal than "+r.length;for(n=new ObjectIterator(t);n.hasNext();)r.splice(e++,0,n.next())}else for(n=new ObjectIterator(e);n.hasNext();)r.push(n.next())},this.set=function(e,t){if(2!==arguments.length)throw"Please use the proper number of parameters.";var n=e;if("number"!=typeof n)throw typeof n+" is not a number";if(!(0<=n&&n<r.length))throw n+" is not a valid index.";r.splice(n,1,t)},this.size=function(){return r.length},this.clear=function(){r.length=0},this.remove=function(e){return"number"==typeof e?r.splice(e,1)[0]:-1<(e=this.indexOf(e))&&(r.splice(e,1),!0)},this.removeAll=function(e){var t,n,r,i=new o;for(i.addAll(this),this.clear(),n=t=0;t<i.size();t++)r=i.get(t),e.contains(r)||this.add(n++,r);return this.size()<i.size()},this.isEmpty=function(){return!r.length},this.clone=function(){return new o(this)},this.toArray=function(){return r.slice(0)},this.iterator=function(){return new t(r)}}e.virtHashCode;var i=e.virtEquals;return o}},{}],10:[function(e,t){var n,r,i;t.exports=(n={}
8,(i=function(e){return"string"==typeof e&&1===e.length?this.code=e.charCodeAt(0):this.code="number"==typeof e?e:e instanceof i?e:NaN,n[this.code]===r?n[this.code]=this:n[this.code]}).prototype.toString=function(){return String.fromCharCode(this.code)},i.prototype.valueOf=function(){return this.code},i)},{}],11:[function(e,t){t.exports=function(e){function d(e,t){function s(e){var t=h(e)%u.length;return t<0?u.length+t:t}function a(){if(!(c<=l*u.length)){for(var e=[],t=0;t<u.length;++t)u[t]!==undefined&&(e=e.concat(u[t]));var n=2*u.length;(u=[]).length=n;for(var r=0;r<e.length;++r){var i=s(e[r].key),o=u[i];o===undefined&&(u[i]=o=[]),o.push(e[r])}}}function n(e,t){function n(){for(;!s;)if(++o,i>=u.length)s=!0;else{if(!(u[i]===undefined||o>=u[i].length))return;o=-1,++i}}var r,i=0,o=-1,s=!1;this.hasNext=function(){return!s},this.next=function(){return r=e(u[i][o]),n(),r},this.remove=function(){r!==undefined&&(t(r),--o,n())},n()}function r(e,t,o){this.clear=function(){f.clear()},this.contains=function(e){return t(e)},this.containsAll=function(e){for(var t=e.iterator();t.hasNext();)if(!this.contains(t.next()))return!1;return!0},this.isEmpty=function(){return f.isEmpty()},this.iterator=function(){return new n(e,o)},this.remove=function(e){return!!this.contains(e)&&(o(e),!0)},this.removeAll=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next();this.contains(n)&&(o(n),!0)}return!0},this.retainAll=function(e){for(var t=this.iterator(),n=[];t.hasNext();){var r=t.next();e.contains(r)||n.push(r)}for(var i=0;i<n.length;++i)o(n[i]);return 0<n.length},this.size=function(){return f.size()},this.toArray=function(){for(var e=[],t=this.iterator();t.hasNext();)e.push(t.next());return e}}function i(n){this._isIn=function(e){return e===f&&n.removed===undefined},this.equals=function(e){return p(n.key,e.getKey())},this.getKey=function(){return n.key},this.getValue=function(){return n.value},this.hashCode=function(){return h(n.key)},this.setValue=function(e){var t=n.value;return n.value=e,t}}if(1===arguments.length&&e instanceof d)return e.clone();var o=0<arguments.length?e:16,l=1<arguments.length?t:.75,u=[];u.length=o;var c=0,f=this;this.clear=function(){c=0,(u=[]).length=o},this.clone=function(){var e=new d;return e.putAll(this),e},this.containsKey=function(e){var t=s(e),n=u[t];if(n===undefined)return!1;for(var r=0;r<n.length;++r)if(p(n[r].key,e))return!0;return!1},this.containsValue=function(e){for(var t=0;t<u.length;++t){var n=u[t];if(n!==undefined)for(var r=0;r<n.length;++r)if(p(n[r].value,e))return!0}return!1},this.entrySet=function(){return new r(function(e){return new i(e)},function(e){return e instanceof i&&e._isIn(f)},function(e){return f.remove(e.getKey())})},this.get=function(e){var t=s(e),n=u[t];if(n===undefined)return null;for(var r=0;r<n.length;++r)if(p(n[r].key,e))return n[r].value;return null},this.isEmpty=function(){return 0===c},this.keySet=function(){return new r(function(e){return e.key},function(e){return f.containsKey(e)},function(e){return f.remove(e)})},this.values=function(){return new r(function(e){return e.value},function(e){return f.containsValue(e)},function(e){return f.removeByValue(e)})},this.put=function(e,t){var n=s(e),r=u[n];if(r===undefined)return++c,u[n]=[{key:e,value:t}],a(),null;for(var i=0;i<r.length;++i)if(p(r[i].key,e)){var o=r[i].value;return r[i].value=t,o}return++c,r.push({key:e,value:t}),a(),null},this.putAll=function(e){for(var t=e.entrySet().iterator();t.hasNext();){var n=t.next();this.put(n.getKey(),n.getValue())}},this.remove=function(e){var t=s(e),n=u[t];if(n===undefined)return null;for(var r=0;r<n.length;++r)if(p(n[r].key,e)){--c;var i=n[r].value;return n[r].removed=!0,1<n.length?n.splice(r,1):u[t]=undefined,i}return null},this.removeByValue=function(e){var t,n,r;for(t in u)if(u.hasOwnProperty(t))for(n=0,r=u[t].length;n<r;n++)if(u[t][n].value===e)return u[t].splice(n,1),!0;return!1},this.size=function(){return c}}var h=e.virtHashCode,p=e.virtEquals;return d}},{}],12:[function(e,t){t.exports=function(e,o){function s(e){var t=250,n=e.size/t,r=y.createElement("canvas");r.width=2*t,r.height=2*t,r.style.opacity=0;
8var i=e.getCSSDefinition(t+"px","normal"),o=r.getContext("2d");o.font=i;var s="dbflkhyjqpg";r.width=o.measureText(s).width,o.font=i;var a=y.createElement("div");a.style.position="absolute",a.style.opacity=0,a.style.fontFamily='"'+e.name+'"',a.style.fontSize=t+"px",a.innerHTML=s+"<br/>"+s,y.body.appendChild(a);var l=r.width,u=r.height,c=u/2;o.fillStyle="white",o.fillRect(0,0,l,u),o.fillStyle="black",o.fillText(s,0,c);for(var f=o.getImageData(0,0,l,u).data,d=0,h=4*l,p=f.length;++d<p&&255===f[d];)b();var g=Math.round(d/h);for(d=p-1;0<--d&&255===f[d];)b();var m=Math.round(d/h);if(e.ascent=n*(c-g),e.descent=n*(m-c),y.defaultView.getComputedStyle){var v=y.defaultView.getComputedStyle(a,null).getPropertyValue("height");(v=n*v.replace("px",""))>=2*e.size&&(e.leading=Math.round(v/2))}if(y.body.removeChild(a),e.caching)return o}function a(e,t){e===o&&(e=""),this.name=e,t===o&&(t=0),this.size=t,this.glyph=!1,this.ascent=0,this.descent=0,this.leading=1.2*t;var n=e.indexOf(" Italic Bold");-1!==n&&(e=e.substring(0,n)),this.style="normal";var r=e.indexOf(" Italic");-1!==r&&(e=e.substring(0,r),this.style="italic"),this.weight="normal";var i=e.indexOf(" Bold");if(-1!==i&&(e=e.substring(0,i),this.weight="bold"),this.family="sans-serif",e!==o)switch(e){case"sans-serif":case"serif":case"monospace":case"fantasy":case"cursive":this.family=e;break;default:this.family='"'+e+'", sans-serif'}this.context2d=s(this),this.css=this.getCSSDefinition(),this.context2d&&(this.context2d.font=this.css)}e.Browser.window;var y=e.Browser.document,b=e.noop;return a.prototype.caching=!0,a.prototype.getCSSDefinition=function(e,t){return e===o&&(e=this.size+"px"),t===o&&(t=this.leading+"px"),[this.style,"normal",this.weight,e+"/"+t,this.family].join(" ")},a.prototype.measureTextWidth=function(e){return this.context2d.measureText(e).width},a.prototype.measureTextWidthFallback=function(e){var t=y.createElement("canvas").getContext("2d");return t.font=this.css,t.measureText(e).width},a.PFontCache={length:0},a.get=function(e,t){t=(10*t+.5|0)/10;var n=a.PFontCache,r=e+"/"+t;if(!n[r]){if(n[r]=new a(e,t),n.length++,50===n.length){var i;for(i in a.prototype.measureTextWidth=a.prototype.measureTextWidthFallback,a.prototype.caching=!1,n)"length"!==i&&(n[i].context2d=null);return new a(e,t)}if(400===n.length)return a.PFontCache={},a.get=a.getFallback,new a(e,t)}return n[r]},a.getFallback=function(e,t){return new a(e,t)},a.list=function(){return["sans-serif","serif","monospace","fantasy","cursive"]},a.preloading={template:{},initialized:!1,initialize:function(){var e=function(){var e=function(e){return"AAAAAAAA".substr(~~e?7-e:6)};return"#E3KAI2wAgT1MvMg7Eo3VmNtYX7ABi3CxnbHlm7Abw3kaGVhZ7ACs3OGhoZWE7A53CRobXR47AY3AGbG9jYQ7G03Bm1heH7ABC3CBuYW1l7Ae3AgcG9zd7AI3AE#B3AQ2kgTY18PPPUACwAg3ALSRoo3#yld0xg32QAB77#E777773B#E3C#I#Q77773E#Q7777777772CMAIw7AB77732B#M#Q3wAB#g3B#E#E2BB//82BB////w#B7#gAEg3E77x2B32B#E#Q#MTcBAQ32gAe#M#QQJ#E32M#QQJ#I#g32Q77#".replace(/[#237]/g,e)},t=y.createElement("style");t.setAttribute("type","text/css"),t.innerHTML='@font-face {\n  font-family: "PjsEmptyFont";\n  src: url(\'data:application/x-font-ttf;base64,'+e()+"')\n       format('truetype');\n}",y.head.appendChild(t);var n=y.createElement("span");n.style.cssText='position: absolute; top: 0; left: 0; opacity: 0; font-family: "PjsEmptyFont", fantasy;',n.innerHTML="AAAAAAAA",y.body.appendChild(n),this.template=n,this.initialized=!0},getElementWidth:function(e){return y.defaultView.getComputedStyle(e,"").getPropertyValue("width")},timeAttempted:0,pending:function(e){this.initialized||this.initialize();for(var t,n,r=this.getElementWidth(this.template),i=0;i<this.fontList.length;i++){if(t=this.fontList[i],n=this.getElementWidth(t),this.timeAttempted<4e3&&n===r)return this.timeAttempted+=e,!0;y.body.removeChild(t),this.fontList.splice(i--,1),this.timeAttempted=0}return 0!==this.fontList.length},fontList:[],addedList:{},add:function(e){this.initialized||this.initialize();var t="object"==typeof e?e.fontFace:e,n="object"==typeof e?e.url:e;if(!this.addedList[t]){var r=y.createElement("style");r.setAttribute("type","text/css"),r.innerHTML="@font-face{\n  font-family: '"+t+"';\n  src:  url('"+n+"');\n}\n",y.head.appendChild(r),this.addedList[t]=!0;var i=y.createElement("span");i.style.cssText="position: absolute; top: 0; left: 0; opacity: 0;",i.style.fontFamily='"'+t+'", "PjsEmptyFont", fantasy',i.innerHTML="AAAAAAAA",y.body.appendChild(i),this.fontList.push(i)}}},a}},{}],13:[function(e,t){t.exports=function(e){var n=e.p,s=function(e,t,n,r,i,o){0===arguments.length?this.reset():1===arguments.length&&e instanceof s?this.set(e.array()):6===arguments.length&&this.set(e,t,n,r,i,o)};return s.prototype={set:function(e){if(6===arguments.length){var t=arguments;this.set([t[0],t[1],t[2],t[3],t[4],t[5]])}else 1===arguments.length&&e instanceof s?this.elements=e.array():1===arguments.length&&e instanceof Array&&(this.elements=e.slice())},get:function(){var e=new s;return e.set(this.elements),e},reset:function(){this.set([1,0,0,0,1,0])},array:function t(){return this.elements.slice()},translate:function(e,t){this.elements[2]=e*this.elements[0]+t*this.elements[1]+this.elements[2],this.elements[5]=e*this.elements[3]+t*this.elements[4]+this.elements[5]},invTranslate:function(e,t){this.translate(-e,-t)},transpose:function(){},mult:function(e,t){var n,r;return e instanceof PVector?(n=e.x,r=e.y,t||(t=new PVector)):e instanceof Array&&(n=e[0],r=e[1],t||(t=[])),t instanceof Array?(t[0]=this.elements[0]*n+this.elements[1]*r+this.elements[2],t[1]=this.elements[3]*n+this.elements[4]*r+this.elements[5]):t instanceof PVector&&(t.x=this.elements[0]*n+this.elements[1]*r+this.elements[2],t.y=this.elements[3]*n+this.elements[4]*r+this.elements[5],t.z=0),t},multX:function(e,t){return e*this.elements[0]+t*this.elements[1]+this.elements[2]},multY:function(e,t){return e*this.elements[3]+t*this.elements[4]+this.elements[5]},skewX:function(e){this.apply(1,0,1,e,0,0)},skewY:function(e){this.apply(1,0,1,0,e,0)},shearX:function(e){this.apply(1,0,1,Math.tan(e),0,0)},shearY:function(e){this.apply(1,0,1,0,Math.tan(e),0)},determinant:function(){return this.elements[0]*this.elements[4]-this.elements[1]*this.elements[3]},invert:function(){var e=this.determinant();if(Math.abs(e)>PConstants.MIN_INT){var t=this.elements[0],n=this.elements[1],r=this.elements[2],i=this.elements[3],o=this.elements[4],s=this.elements[5];return this.elements[0]=o/e,this.elements[3]=-i/e,this.elements[1]=-n/e,this.elements[4]=t/e,this.elements[2]=(n*s-o*r)/e,this.elements[5]=(i*r-t*s)/e,!0}return!1},scale:function(e,t){e&&!t&&(t=e),e&&t&&(this.elements[0]*=e,this.elements[1]*=t,this.elements[3]*=e,this.elements[4]*=t)},invScale:function(e,t){e&&!t&&(t=e),this.scale(1/e,1/t)},apply:function(e){var t;1===arguments.length&&e instanceof s?t=e.array():6===arguments.length?t=Array.prototype.slice.call(arguments):1===arguments.length&&e instanceof Array&&(t=e);for(var n=[0,0,this.elements[2],0,0,this.elements[5]],r=0,i=0;i<2;i++)for(var o=0;o<3;o++,r++)n[r]+=this.elements[3*i+0]*t[o+0]+this.elements[3*i+1]*t[o+3];this.elements=n.slice()},preApply:function(e){var t;1===arguments.length&&e instanceof s?t=e.array():6===arguments.length?t=Array.prototype.slice.call(arguments):1===arguments.length&&e instanceof Array&&(t=e);var n=[0,0,t[2],0,0,t[5]];n[2]=t[2]+this.elements[2]*t[0]+this.elements[5]*t[1],n[5]=t[5]+this.elements[2]*t[3]+this.elements[5]*t[4],n[0]=this.elements[0]*t[0]+this.elements[3]*t[1],n[3]=this.elements[0]*t[3]+this.elements[3]*t[4],n[1]=this.elements[1]*t[0]+this.elements[4]*t[1],n[4]=this.elements[1]*t[3]+this.elements[4]*t[4],this.elements=n.slice()},rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=this.elements[0],i=this.elements[1];this.elements[0]=t*r+n*i,this.elements[1]=-n*r+t*i,r=this.elements[3],i=this.elements[4],this.elements[3]=t*r+n*i,this.elements[4]=-n*r+t*i},rotateZ:function(e){this.rotate(e)},invRotateZ:function(e){this.rotateZ(e-Math.PI)},print:function(){var e=printMatrixHelper(this.elements),t=n.nfs(this.elements[0],e,4)+" "+n.nfs(this.elements[1],e,4)+" "+n.nfs(this.elements[2],e,4)+"\n"+n.nfs(this.elements[3],e,4)+" "+n.nfs(this.elements[4],e,4)+" "+n.nfs(this.elements[5],e,4)+"\n\n";n.println(t)}},s}},{}],14:[function(e,t){t.exports=function(e,r){var n=e.p,s=function(){this.reset()};return s.prototype={set:function(e){16===arguments.length?this.elements=Array.prototype.slice.call(arguments):1===arguments.length&&e instanceof s?this.elements=e.array():1===arguments.length&&e instanceof Array&&(this.elements=e.slice())},get:function(){var e=new s;return e.set(this.elements),e},reset:function(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},array:function t(){return this.elements.slice()},translate:function(e,t,n){n===r&&(n=0),this.elements[3]+=e*this.elements[0]+t*this.elements[1]+n*this.elements[2],this.elements[7]+=e*this.elements[4]+t*this.elements[5]+n*this.elements[6],this.elements[11]+=e*this.elements[8]+t*this.elements[9]+n*this.elements[10],this.elements[15]+=e*this.elements[12]+t*this.elements[13]+n*this.elements[14]},transpose:function(){var e=this.elements[4];this.elements[4]=this.elements[1],this.elements[1]=e,e=this.elements[8],this.elements[8]=this.elements[2],this.elements[2]=e,e=this.elements[6],this.elements[6]=this.elements[9],this.elements[9]=e,e=this.elements[3],this.elements[3]=this.elements[12],this.elements[12]=e,e=this.elements[7],this.elements[7]=this.elements[13],this.elements[13]=e,e=this.elements[11],this.elements[11]=this.elements[14],this.elements[14]=e},mult:function(e,t){var n,r,i,o;return e instanceof PVector?(n=e.x,r=e.y,i=e.z,o=1,t||(t=new PVector)):e instanceof Array&&(n=e[0],r=e[1],i=e[2],o=e[3]||1,(!t||3!==t.length&&4!==t.length)&&(t=[0,0,0])),t instanceof Array&&(3===t.length?(t[0]=this.elements[0]*n+this.elements[1]*r+this.elements[2]*i+this.elements[3],t[1]=this.elements[4]*n+this.elements[5]*r+this.elements[6]*i+this.elements[7],t[2]=this.elements[8]*n+this.elements[9]*r+this.elements[10]*i+this.elements[11]):4===t.length&&(t[0]=this.elements[0]*n+this.elements[1]*r+this.elements[2]*i+this.elements[3]*o,t[1]=this.elements[4]*n+this.elements[5]*r+this.elements[6]*i+this.elements[7]*o,t[2]=this.elements[8]*n+this.elements[9]*r+this.elements[10]*i+this.elements[11]*o,t[3]=this.elements[12]*n+this.elements[13]*r+this.elements[14]*i+this.elements[15]*o)),t instanceof PVector&&(t.x=this.elements[0]*n+this.elements[1]*r+this.elements[2]*i+this.elements[3],t.y=this.elements[4]*n+this.elements[5]*r+this.elements[6]*i+this.elements[7],t.z=this.elements[8]*n+this.elements[9]*r+this.elements[10]*i+this.elements[11]),t},preApply:function(e){var t;1===arguments.length&&e instanceof s?t=e.array():16===arguments.length?t=Array.prototype.slice.call(arguments):1===arguments.length&&e instanceof Array&&(t=e);for(var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0,i=0;i<4;i++)for(var o=0;o<4;o++,r++)n[r]+=this.elements[o+0]*t[4*i+0]+this.elements[o+4]*t[4*i+1]+this.elements[o+8]*t[4*i+2]+this.elements[o+12]*t[4*i+3];this.elements=n.slice()},apply:function(e){var t;1===arguments.length&&e instanceof s?t=e.array():16===arguments.length?t=Array.prototype.slice.call(arguments):1===arguments.length&&e instanceof Array&&(t=e);for(var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0,i=0;i<4;i++)for(var o=0;o<4;o++,r++)n[r]+=this.elements[4*i+0]*t[o+0]+this.elements[4*i+1]*t[o+4]+this.elements[4*i+2]*t[o+8]+this.elements[4*i+3]*t[o+12];this.elements=n.slice()},rotate:function(e,t,n,r){if(n){var i=Math.cos(e),o=Math.sin(e),s=1-i;this.apply(s*t*t+i,s*t*n-o*r,s*t*r+o*n,0,s*t*n+o*r,s*n*n+i,s*n*r-o*t,0,s*t*r-o*n,s*n*r+o*t,s*r*r+i,0,0,0,0,1)}else this.rotateZ(e)},invApply:function(){inverseCopy===r&&(inverseCopy=new s);var e=arguments;return inverseCopy.set(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),!!inverseCopy.invert()&&(this.preApply(inverseCopy),!0)},rotateX:function(e){var t=Math.cos(e),n=Math.sin(e);this.apply([1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1])},rotateY:function(e){var t=Math.cos(e),n=Math.sin(e);this.apply([t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1])},rotateZ:function(e){var t=Math.cos(e),n=Math.sin(e);this.apply([t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1])},scale:function(e,t,n){!e||t||n?e&&t&&!n&&(n=1):t=n=e,e&&t&&n&&(this.elements[0]*=e,this.elements[1]*=t,this.elements[2]*=n,this.elements[4]*=e,this.elements[5]*=t,this.elements[6]*=n,this.elements[8]*=e,this.elements[9]*=t,this.elements[10]*=n,this.elements[12]*=e,this.elements[13]*=t,this.elements[14]*=n)},skewX:function(e){var t=Math.tan(e);this.apply(1,t,0,0,0,1,0,0,0,0,1,0,0,0,0,1)},skewY:function(e){var t=Math.tan(e);this.apply(1,0,0,0,t,1,0,0,0,0,1,0,0,0,0,1)},shearX:function(e){var t=Math.tan(e);this.apply(1,t,0,0,0,1,0,0,0,0,1,0,0,0,0,1)},shearY:function(e){var t=Math.tan(e);this.apply(1,0,0,0,t,1,0,0,0,0,1,0,0,0,0,1)},multX:function(e,t,n,r){return n?r?this.elements[0]*e+this.elements[1]*t+this.elements[2]*n+this.elements[3]*r:this.elements[0]*e+this.elements[1]*t+this.elements[2]*n+this.elements[3]:this.elements[0]*e+this.elements[1]*t+this.elements[3]},multY:function(e,t,n,r){return n?r?this.elements[4]*e+this.elements[5]*t+this.elements[6]*n+this.elements[7]*r:this.elements[4]*e+this.elements[5]*t+this.elements[6]*n+this.elements[7]:this.elements[4]*e+this.elements[5]*t+this.elements[7]},multZ:function(e,t,n,r){return r?this.elements[8]*e+this.elements[9]*t+this.elements[10]*n+this.elements[11]*r:this.elements[8]*e+this.elements[9]*t+this.elements[10]*n+this.elements[11]},multW:function(e,t,n,r){return r?this.elements[12]*e+this.elements[13]*t+this.elements[14]*n+this.elements[15]*r:this.elements[12]*e+this.elements[13]*t+this.elements[14]*n+this.elements[15]},invert:function(){var e=this.elements[0]*this.elements[5]-this.elements[1]*this.elements[4],t=this.elements[0]*this.elements[6]-this.elements[2]*this.elements[4],n=this.elements[0]*this.elements[7]-this.elements[3]*this.elements[4],r=this.elements[1]*this.elements[6]-this.elements[2]*this.elements[5],i=this.elements[1]*this.elements[7]-this.elements[3]*this.elements[5],o=this.elements[2]*this.elements[7]-this.elements[3]*this.elements[6],s=this.elements[8]*this.elements[13]-this.elements[9]*this.elements[12],a=this.elements[8]*this.elements[14]-this.elements[10]*this.elements[12],l=this.elements[8]*this.elements[15]-this.elements[11]*this.elements[12],u=this.elements[9]*this.elements[14]-this.elements[10]*this.elements[13],c=this.elements[9]*this.elements[15]-this.elements[11]*this.elements[13],f=this.elements[10]*this.elements[15]-this.elements[11]*this.elements[14],d=e*f-t*c+n*u+r*l-i*a+o*s;if(Math.abs(d)<=1e-9)return!1;var h=[];h[0]=+this.elements[5]*f-this.elements[6]*c+this.elements[7]*u,h[4]=-this.elements[4]*f+this.elements[6]*l-this.elements[7]*a,h[8]=+this.elements[4]*c-this.elements[5]*l+this.elements[7]*s,h[12]=-this.elements[4]*u+this.elements[5]*a-this.elements[6]*s,h[1]=-this.elements[1]*f+this.elements[2]*c-this.elements[3]*u,h[5]=+this.elements[0]*f-this.elements[2]*l+this.elements[3]*a,h[9]=-this.elements[0]*c+this.elements[1]*l-this.elements[3]*s,h[13]=+this.elements[0]*u-this.elements[1]*a+this.elements[2]*s,h[2]=+this.elements[13]*o-this.elements[14]*i+this.elements[15]*r,h[6]=-this.elements[12]*o+this.elements[14]*n-this.elements[15]*t,h[10]=+this.elements[12]*i-this.elements[13]*n+this.elements[15]*e,h[14]=-this.elements[12]*r+this.elements[13]*t-this.elements[14]*e,h[3]=-this.elements[9]*o+this.elements[10]*i-this.elements[11]*r,h[7]=+this.elements[8]*o-this.elements[10]*n+this.elements[11]*t,h[11]=-this.elements[8]*i+this.elements[9]*n-this.elements[11]*e,h[15]=+this.elements[8]*r-this.elements[9]*t+this.elements[10]*e;var p=1/d;
8return h[0]*=p,h[1]*=p,h[2]*=p,h[3]*=p,h[4]*=p,h[5]*=p,h[6]*=p,h[7]*=p,h[8]*=p,h[9]*=p,h[10]*=p,h[11]*=p,h[12]*=p,h[13]*=p,h[14]*=p,h[15]*=p,this.elements=h.slice(),
9!0},toString:function(){for(var e="",t=0;t<15;t++)e+=this.elements[t]+", ";return e+=this.elements[15]},print:function(){var e=printMatrixHelper(this.elements),t=n.nfs(this.elements[0],e,4)+" "+n.nfs(this.elements[1],e,4)+" "+n.nfs(this.elements[2],e,4)+" "+n.nfs(this.elements[3],e,4)+"\n"+n.nfs(this.elements[4],e,4)+" "+n.nfs(this.elements[5],e,4)+" "+n.nfs(this.elements[6],e,4)+" "+n.nfs(this.elements[7],e,4)+"\n"+n.nfs(this.elements[8],e,4)+" "+n.nfs(this.elements[9],e,4)+" "+n.nfs(this.elements[10],e,4)+" "+n.nfs(this.elements[11],e,4)+"\n"+n.nfs(this.elements[12],e,4)+" "+n.nfs(this.elements[13],e,4)+" "+n.nfs(this.elements[14],e,4)+" "+n.nfs(this.elements[15],e,4)+"\n\n";n.println(t)},invTranslate:function(e,t,n){this.preApply(1,0,0,-e,0,1,0,-t,0,0,1,-n,0,0,0,1)},invRotateX:function(e){var t=Math.cos(-e),n=Math.sin(-e);this.preApply([1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1])},invRotateY:function(e){var t=Math.cos(-e),n=Math.sin(-e);this.preApply([t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1])},invRotateZ:function(e){var t=Math.cos(-e),n=Math.sin(-e);this.preApply([t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1])},invScale:function(e,t,n){this.preApply([1/e,0,0,0,0,1/t,0,0,0,0,1/n,0,0,0,0,1])}},s}},{}],15:[function(e,t){t.exports=function(e){var o=e.PConstants,t=e.PMatrix2D,n=e.PMatr
9ix3D,r=function(e){this.family=e||o.GROUP,this.visible=!0,this.style=!0,this.children=[],this.nameTable=[],this.params=[],this.name="",this.image=null,this.matrix=null,this.kind=null,this.close=null,this.width=null,this.height=null,this.parent=null};return r.prototype={isVisible:function(){return this.visible},setVisible:function(e){this.visible=e},disableStyle:function(){this.style=!1;for(var e=0,t=this.children.length;e<t;e++)this.children[e].disableStyle()},enableStyle:function(){this.style=!0;for(var e=0,t=this.children.length;e<t;e++)this.children[e].enableStyle()},getFamily:function(){return this.family},getWidth:function(){return this.width},getHeight:function(){return this.height},setName:function(e){this.name=e},getName:function(){return this.name},draw:function(e){if(!e)throw"render context missing for draw() in PShape";this.visible&&(this.pre(e),this.drawImpl(e),this.post(e))},drawImpl:function(e){this.family===o.GROUP?this.drawGroup(e):this.family===o.PRIMITIVE?this.drawPrimitive(e):this.family===o.GEOMETRY?this.drawGeometry(e):this.family===o.PATH&&this.drawPath(e)},drawPath:function(e){var t,n;if(0!==this.vertices.length){if(e.beginShape(),0===this.vertexCodes.length)if(2===this.vertices[0].length)for(t=0,n=this.vertices.length;t<n;t++)e.vertex(this.vertices[t][0],this.vertices[t][1]);else for(t=0,n=this.vertices.length;t<n;t++)e.vertex(this.vertices[t][0],this.vertices[t][1],this.vertices[t][2]);else{var r=0;if(2===this.vertices[0].length)for(t=0,n=this.vertexCodes.length;t<n;t++)this.vertexCodes[t]===o.VERTEX?(e.vertex(this.vertices[r][0],this.vertices[r][1],this.vertices[r].moveTo),e.breakShape=!1,r++):this.vertexCodes[t]===o.BEZIER_VERTEX?(e.bezierVertex(this.vertices[r+0][0],this.vertices[r+0][1],this.vertices[r+1][0],this.vertices[r+1][1],this.vertices[r+2][0],this.vertices[r+2][1]),r+=3):this.vertexCodes[t]===o.CURVE_VERTEX?(e.curveVertex(this.vertices[r][0],this.vertices[r][1]),r++):this.vertexCodes[t]===o.BREAK&&(e.breakShape=!0);else for(t=0,n=this.vertexCodes.length;t<n;t++)this.vertexCodes[t]===o.VERTEX?(e.vertex(this.vertices[r][0],this.vertices[r][1],this.vertices[r][2]),!0===this.vertices[r].moveTo?vertArray[vertArray.length-1].moveTo=!0:!1===this.vertices[r].moveTo&&(vertArray[vertArray.length-1].moveTo=!1),e.breakShape=!1):this.vertexCodes[t]===o.BEZIER_VERTEX?(e.bezierVertex(this.vertices[r+0][0],this.vertices[r+0][1],this.vertices[r+0][2],this.vertices[r+1][0],this.vertices[r+1][1],this.vertices[r+1][2],this.vertices[r+2][0],this.vertices[r+2][1],this.vertices[r+2][2]),r+=3):this.vertexCodes[t]===o.CURVE_VERTEX?(e.curveVertex(this.vertices[r][0],this.vertices[r][1],this.vertices[r][2]),r++):this.vertexCodes[t]===o.BREAK&&(e.breakShape=!0)}e.endShape(this.close?o.CLOSE:o.OPEN)}},drawGeometry:function(e){var t,n;if(e.beginShape(this.kind),this.style)for(t=0,n=this.vertices.length;t<n;t++)e.vertex(this.vertices[t]);else for(t=0,n=this.vertices.length;t<n;t++){var r=this.vertices[t];0===r[2]?e.vertex(r[0],r[1]):e.vertex(r[0],r[1],r[2])}e.endShape()},drawGroup:function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t].draw(e)},drawPrimitive:function(e){if(this.kind===o.POINT)e.point(this.params[0],this.params[1]);else if(this.kind===o.LINE)4===this.params.length?e.line(this.params[0],this.params[1],this.params[2],this.params[3]):e.line(this.params[0],this.params[1],this.params[2],this.params[3],this.params[4],this.params[5]);else if(this.kind===o.TRIANGLE)e.triangle(this.params[0],this.params[1],this.params[2],this.params[3],this.params[4],this.params[5]);else if(this.kind===o.QUAD)e.quad(this.params[0],this.params[1],this.params[2],this.params[3],this.params[4],this.params[5],this.params[6],this.params[7]);else if(this.kind===o.RECT)if(null!==this.image){var t=imageModeConvert;e.imageMode(o.CORNER),e.image(this.image,this.params[0],this.params[1],this.params[2],this.params[3]),imageModeConvert=t}else{var n=e.curRectMode;e.rectMode(o.CORNER),e.rect(this.params[0],this.params[1],this.params[2],this.params[3]),e.curRectMode=n}else if(this.kind===o.ELLIPSE){var r=e.curEllipseMode;e.ellipseMode(o.CORNER),e.ellipse(this.params[0],this.params[1],this.params[2],this.params[3]),e.curEllipseMode=r}else if(this.kind===o.ARC){var i=curEllipseMode;e.ellipseMode(o.CORNER),e.arc(this.params[0],this.params[1],this.params[2],this.params[3],this.params[4],this.params[5]),curEllipseMode=i}else this.kind===o.BOX?1===this.params.length?e.box(this.params[0]):e.box(this.params[0],this.params[1],this.params[2]):this.kind===o.SPHERE&&e.sphere(this.params[0])},pre:function(e){this.matrix&&(e.pushMatrix(),e.transform(this.matrix
9)),this.style&&(e.pushStyle(),this.styles(e))},post:function(e){this.matrix&&e.popMatrix(),this.style&&e.popStyle()},styles:function(e){this.stroke?(e.stroke(this.strokeColor),e.strokeWeight(this.strokeWeight),e.strokeCap(this.strokeCap),e.strokeJoin(this.strokeJoin)):e.noStroke(),this.fill?e.fill(this.fillColor):e.noFill()},getChild:function(e){var t,n,r;if("number"==typeof e)return this.children[e];if(""===e||this.name===e)return this;if(0<this.nameTable.length){for(t=0,n=this.nameTable.length;t<n||r;t++)if(this.nameTable[t].getName===e){r=this.nameTable[t];break}if(r)return r}for(t=0,n=this.children.length;t<n;t++)if(r=this.children[t].getChild(e))return r;return null},getChildCount:function(){return this.children.length},addChild:function(e){this.children.push(e),e.parent=this,null!==e.getName()&&this.addName(e.getName(),e)},addName:function(e,t){null!==this.parent?this.parent.addName(e,t):this.nameTable.push([e,t])},translate:function(e,t){2===arguments.length?(this.checkMatrix(2),this.matrix.translate(e,t)):(this.checkMatrix(3),this.matrix.translate(e,t,0))},checkMatrix:function(e){null===this.matrix?this.matrix=2===e?new t:new n:3===e&&this.matrix instanceof t&&(this.matrix=new n)},rotateX:function(e){this.rotate(e,1,0,0)},rotateY:function(e){this.rotate(e,0,1,0)},rotateZ:function(e){this.rotate(e,0,0,1)},rotate:function(e,t,n,r){1===arguments.length?(this.checkMatrix(2),this.matrix.rotate(e)):(this.checkMatrix(3),this.matrix.rotate(e,t,n,r))},scale:function(e,t,n){2===arguments.length?(this.checkMatrix(2),this.matrix.scale(e,t)):3===arguments.length?(this.checkMatrix(2),this.matrix.scale(e,t,n)):(this.checkMatrix(2),this.matrix.scale(e))},resetMatrix:function(){this.checkMatrix(2),this.matrix.reset()},applyMatrix:function(e,t,n,r,i,o,s,a,l,u,c,f,d,h,p,g){1===arguments.length?this.applyMatrix(e.elements[0],e.elements[1],0,e.elements[2],e.elements[3],e.elements[4],0,e.elements[5],0,0,1,0,0,0,0,1):6===arguments.length?(this.checkMatrix(2),this.matrix.apply(e,t,n,0,r,i,o,0,0,0,1,0,0,0,0,1)):16===arguments.length&&(this.checkMatrix(3),this.matrix.apply(e,t,n,r,i,o,s,a,l,u,c,f,d,h,p,g))}},r}},{}],16:[function(e,t){t.exports=function(e){var A=e.CommonFunctions,C=e.PConstants,l=e.PShape,u=e.XMLElement,n=e.colors,r=function(e,t){if(l.call(this),1===arguments.length){if(this.element=e,this.vertexCodes=[],this.vertices=[],this.opacity=1,this.stroke=!1,this.strokeColor=C.ALPHA_MASK,this.strokeWeight=1,this.strokeCap=C.SQUARE,this.strokeJoin=C.MITER,this.strokeGradient=null,this.strokeGradientPaint=null,this.strokeName=null,this.strokeOpacity=1,this.fill=!0,this.fillColor=C.ALPHA_MASK,this.fillGradient=null,this.fillGradientPaint=null,this.fillName=null,this.fillOpacity=1,"svg"!==this.element.getName())throw"root is not <svg>, it's <"+this.element.getName()+">"}else 2===arguments.length&&("string"==typeof t?-1<t.indexOf(".svg")&&(this.element=new u(!0,t),this.vertexCodes=[],this.vertices=[],this.opacity=1,this.stroke=!1,this.strokeColor=C.ALPHA_MASK,this.strokeWeight=1,this.strokeCap=C.SQUARE,this.strokeJoin=C.MITER,this.strokeGradient="",this.strokeGradientPaint="",this.strokeName="",this.strokeOpacity=1,this.fill=!0,this.fillColor=C.ALPHA_MASK,this.fillGradient=null,this.fillGradientPaint=null,this.fillOpacity=1):e&&(this.element=t,this.vertexCodes=e.vertexCodes.slice(),this.vertices=e.vertices.slice(),this.stroke=e.stroke,this.strokeColor=e.strokeColor,this.strokeWeight=e.strokeWeight,this.strokeCap=e.strokeCap,this.strokeJoin=e.strokeJoin,this.strokeGradient=e.strokeGradient,this.strokeGradientPaint=e.strokeGradientPaint,this.strokeName=e.strokeName,this.fill=e.fill,this.fillColor=e.fillColor,this.fillGradient=e.fillGradient,this.fillGradientPaint=e.fillGradientPaint,this.fillName=e.fillName,this.strokeOpacity=e.strokeOpacity,this.fillOpacity=e.fillOpacity,this.opacity=e.opacity));this.name=this.element.getStringAttribute("id");var n=this.element.getStringAttribute("display","inline");this.visible="none"!==n;var r=this.element.getAttribute("transform");r&&(this.matrix=this.parseMatrix(r));var i=this.element.getStringAttribute("viewBox");if(null!==i){var o=i.split(" ");this.width=o[2],this.height=o[3]}var s=this.element.getStringAttribute("width"),a=this.element.getStringAttribute("height");if(null!==s)this.width=this.parseUnitSize(s),this.height=this.parseUnitSize(a);else if(0===this.width||0===this.height)throw this.width=1,this.height=1,"The width and/or height is not readable in the <svg> tag of this file.";this.parseColors(this.element),this.parseChildren(this.element)};return r.prototype=new l,r.prototype.parseMatrix=function(){function c(e){var n=[];return e.replace(/\((.*?)\)/,function(e,t){n=t.replace(/,+/g," ").split(/\s+/)}),n}return function(e){this.checkMatrix(2);var t=[];if(e.replace(/\s*(\w+)\((.*?)\)/g,function(e){t.push(A.trim(e))}),0===t.length)return null;for(var n=0,r=t.length;n<r;n++){var i=c(t[n]);if(-1!==t[n].indexOf("matrix"))this.matrix.set(i[0],i[2],i[4],i[1],i[3],i[5]);else if(-1!==t[n].indexOf("translate")){var o=i[0],s=2===i.length?i[1]:0;this.matrix.translate(o,s)}else if(-1!==t[n].indexOf("scale")){var a=i[0],l=2===i.length?i[1]:i[0];this.matrix.scale(a,l)}else if(-1!==t[n].indexOf("rotate")){var u=i[0];1===i.length?this.matrix.rotate(A.radians(u)):3===i.length&&(this.matrix.translate(i[1],i[2]),this.matrix.rotate(A.radians(i[0])),this.matrix.translate(-i[1],-i[2]))}else-1!==t[n].indexOf("skewX")?this.matrix.skewX(parseFloat(i[0])):-1!==t[n].indexOf("skewY")?this.matrix.skewY(i[0]):-1!==t[n].indexOf("shearX")?this.matrix.shearX(i[0]):-1!==t[n].indexOf("shearY")&&this.matrix.shearY(i[0])}return this.matrix}}(),r.prototype.parseChildren=function(e){var t,n,r=e.getChildren(),i=new l;for(t=0,n=r.length;t<n;t++){var o=this.parseChild(r[t]);o&&i.addChild(o)}for(t=0,n=i.children.length;t<n;t++)this.children.push(i.children[t])},r.prototype.getName=function(){return this.name},r.prototype.parseChild=function(e){var t,n=e.getName();return"g"===n?t=new r(this,e):"defs"===n?t=new r(this,e):"line"===n?(t=new r(this,e)).parseLine():"circle"===n?(t=new r(this,e)).parseEllipse(!0):"ellipse"===n?(t=new r(this,e)).parseEllipse(!1):"rect"===n?(t=new r(this,e)).parseRect():"polygon"===n?(t=new r(this,e)).parsePoly(!0):"polyline"===n?(t=new r(this,e)).parsePoly(!1):"path"===n?(t=new r(this,e)).parsePath():"radialGradient"===n?unimplemented("PShapeSVG.prototype.parseChild, name = radialGradient"):"linearGradient"===n?unimplemented("PShapeSVG.prototype.parseChild, name = linearGradient"):"text"===n?unimplemented("PShapeSVG.prototype.parseChild, name = text"):"filter"===n?unimplemented("PShapeSVG.prototype.parseChild, name = filter"):"mask"===n&&unimplemented("PShapeSVG.prototype.parseChild, name = mask"),t},r.prototype.parsePath=function(){this.family=C.PATH,this.kind=0;var e=A.trim(this.element.getStringAttribute("d").replace(/[\s,]+/g," "));if(null!==e){e=e.split("");for(var t,n,r,i,o=0,s=0,a=0,l=0,u=0,c=0,f=0,d=0,h=0,p=0,g=0,m=0,v=0,y=0,b=0,E=0,T="",S=[],w=!1;b<e.length;)if(65<=(E=e[b].charCodeAt(0))&&E<=90||97<=E&&E<=122){if(r=b,++b<e.length)for(S=[],E=e[b].charCodeAt(0);!(65<=E&&E<=90||97<=E&&E<=100||102<=E&&E<=122)&&!1===w;)32===E?""!==T&&(S.push(parseFloat(T)),T=""):45===E?101===e[b-1].charCo
9deAt(0)?T+=e[b].toString():(""!==T&&S.push(parseFloat(T)),T=e[b].toString()):T+=e[b].toString(),++b===e.length?w=!0:E=e[b].charCodeAt(0);if(""!==T&&(S.push(parseFloat(T)),T=""),77===(E=(n=e[r]).charCodeAt(0))){if(2<=S.length&&S.length%2==0&&(o=S[0],s=S[1],this.parsePathMoveto(o,s),2<S.length))for(r=2,i=S.length;r<i;r+=2)o=S[r],s=S[r+1],this.parsePathLineto(o,s)}else if(109===E){if(2<=S.length&&S.length%2==0&&(o+=S[0],s+=S[1],this.parsePathMoveto(o,s),2<S.length))for(r=2,i=S.length;r<i;r+=2)o+=S[r],s+=S[r+1],this.parsePathLineto(o,s)}else if(76===E){if(2<=S.length&&S.length%2==0)for(r=0,i=S.length;r<i;r+=2)o=S[r],s=S[r+1],this.parsePathLineto(o,s)}else if(108===E){if(2<=S.length&&S.length%2==0)for(r=0,i=S.length;r<i;r+=2)o+=S[r],s+=S[r+1],this.parsePathLineto(o,s)}else if(72===E)for(r=0,i=S.length;r<i;r++)o=S[r],this.parsePathLineto(o,s);else if(104===E)for(r=0,i=S.length;r<i;r++)o+=S[r],this.parsePathLineto(o,s);else if(86===E)for(r=0,i=S.length;r<i;r++)s=S[r],this.parsePathLineto(o,s);else if(118===E)for(r=0,i=S.length;r<i;r++)s+=S[r],this.parsePathLineto(o,s);else if(67===E){if(6<=S.length&&S.length%6==0)for(r=0,i=S.length;r<i;r+=6)u=S[r],f=S[r+1],c=S[r+2],d=S[r+3],h=S[r+4],p=S[r+5],this.parsePathCurveto(u,f,c,d,h,p),o=h,s=p}else if(99===E){if(6<=S.length&&S.length%6==0)for(r=0,i=S.length;r<i;r+=6)u=o+S[r],f=s+S[r+1],c=o+S[r+2],d=s+S[r+3],h=o+S[r+4],p=s+S[r+5],this.parsePathCurveto(u,f,c,d,h,p),o=h,s=p}else if(83===E){if(4<=S.length&&S.length%4==0)for(r=0,i=S.length;r<i;r+=4)"c"===t.toLowerCase()||"s"===t.toLowerCase()?(g=this.vertices[this.vertices.length-2][0],m=this.vertices[this.vertices.length-2][1],u=(v=this.vertices[this.vertices.length-1][0])+(v-g),f=(y=this.vertices[this.vertices.length-1][1])+(y-m)):(u=this.vertices[this.vertices.length-1][0],f=this.vertices[this.vertices.length-1][1]),c=S[r],d=S[r+1],h=S[r+2],p=S[r+3],this.parsePathCurveto(u,f,c,d,h,p),o=h,s=p}else if(115===E){if(4<=S.length&&S.length%4==0)for(r=0,i=S.length;r<i;r+=4)"c"===t.toLowerCase()||"s"===t.toLowerCase()?(g=this.vertices[this.vertices.length-2][0],m=this.vertices[this.vertices.length-2][1],u=(v=this.vertices[this.vertices.length-1][0])+(v-g),f=(y=this.vertices[this.vertices.length-1][1])+(y-m)):(u=this.vertices[this.vertices.length-1][0],f=this.vertices[this.vertices.length-1][1]),c=o+S[r],d=s+S[r+1],h=o+S[r+2],p=s+S[r+3],this.parsePathCurveto(u,f,c,d,h,p),o=h,s=p}else if(81===E){if(4<=S.length&&S.length%4==0)for(r=0,i=S.length;r<i;r+=4)a=S[r],l=S[r+1],h=S[r+2],p=S[r+3],this.parsePathQuadto(o,s,a,l,h,p),o=h,s=p}else if(113===E){if(4<=S.length&&S.length%4==0)for(r=0,i=S.length;r<i;r+=4)a=o+S[r],l=s+S[r+1],h=o+S[r+2],p=s+S[r+3],this.parsePathQuadto(o,s,a,l,h,p),o=h,s=p}else if(84===E){if(2<=S.length&&S.length%2==0)for(r=0,i=S.length;r<i;r+=2)"q"===t.toLowerCase()||"t"===t.toLowerCase()?(g=this.vertices[this.vertices.length-2][0],m=this.vertices[this.vertices.length-2][1],a=(v=this.vertices[this.vertices.length-1][0])+(v-g),l=(y=this.vertices[this.vertices.length-1][1])+(y-m)):(a=o,l=s),h=S[r],p=S[r+1],this.parsePathQuadto(o,s,a,l,h,p),o=h,s=p}else if(116===E){if(2<=S.length&&S.length%2==0)for(r=0,i=S.length;r<i;r+=2)"q"===t.toLowerCase()||"t"===t.toLowerCase()?(g=this.vertices[this.vertices.length-2][0],m=this.vertices[this.vertices.length-2][1],a=(v=this.vertices[this.vertices.length-1][0])+(v-g),l=(y=this.vertices[this.vertices.length-1][1])+(y-m)):(a=o,l=s),h=o+S[r],p=s+S[r+1],this.parsePathQuadto(o,s,a,l,h,p),o=h,s=p}else 90!==E&&122!==E||(this.close=!0);t=n.toString()}else b++}},r.prototype.parsePathQuadto=function(e,t,n,r,i,o){if(!(0<this.vertices.length))throw"Path must start with M/m";this.parsePathCode(C.BEZIER_VERTEX),this.parsePathVertex(e+2*(n-e)/3,t+2*(r-t)/3),this.parsePathVertex(i+2*(n-i)/3,o+2*(r-o)/3),this.parsePathVertex(i,o)},r.prototype.parsePathCurveto=function(e,t,n,r,i,o){if(!(0<this.vertices.length))throw"Path must start with M/m";this.parsePathCode(C.BEZIER_VERTEX),this.parsePathVertex(e,t),this.parsePathVertex(n,r),this.parsePathVertex(i,o)},r.prototype.parsePathLineto=function(e,t){if(!(0<this.vertices.length))throw"Path must start with M/m";this.parsePathCode(C.VERTEX),this.parsePathVertex(e,t),this.vertices[this.vertices.length-1].moveTo=!1},r.prototype.parsePathMoveto=function(e,t){0<this.vertices.length&&this.parsePathCode(C.BREAK),this.parsePathCode(C.VERTEX),this.parsePathVertex(e,t),this.vertices[this.vertices.length-1].moveTo=!0},r.prototype.parsePathVertex=function(e,t){var n=[];n[0]=e,n[1]=t,this.vertices.push(n)},r.prototype.parsePathCode=function(e){this.vertexCodes.push(e)},r.prototype.parsePoly=function(e){this.family=C.PATH,this.close=e;var t=A.trim(this.element.getStringAttribute("points").replace(/[,\s]+/g," "));if(null!==t){var n=t.split(" ");
9if(n.length%2!=0)throw"Error parsing polygon points: odd number of coordinates provided";for(var r=0,i=n.length;r<i;r++){var o=[];o[0]=n[r],o[1]=n[++r],this.vertices.push(o)}}},r.prototype.parseRect=function(){if(this.kind=C.RECT,this.family=C.PRIMITIVE,this.params=[],this.params[0]=this.element.getFloatAttribute("x"),this.params[1]=this.element.getFloatAttribute("y"),this.params[2]=this.element.getFloatAttribute("width"),this.params[3]=this.element.getFloatAttribute("height"),this.params[2]<0||this.params[3]<0)throw"svg error: negative width or height found while parsing <rect>"},r.prototype.parseEllipse=function(e){var t,n;if(this.kind=C.ELLIPSE,this.family=C.PRIMITIVE,this.params=[],this.params[0]=0|this.element.getFloatAttribute("cx"),this.params[1]=0|this.element.getFloatAttribute("cy"),e){if((t=n=this.element.getFloatAttribute("r"))<0)throw"svg error: negative radius found while parsing <circle>"}else if(t=this.element.getFloatAttribute("rx"),n=this.element.getFloatAttribute("ry"),t<0||n<0)throw"svg error: negative x-axis radius or y-axis radius found while parsing <ellipse>";this.params[0]-=t,this.params[1]-=n,this.params[2]=2*t,this.params[3]=2*n},r.prototype.parseLine=function(){this.kind=C.LINE,this.family=C.PRIMITIVE,this.params=[],this.params[0]=this.element.getFloatAttribute("x1"),this.params[1]=this.element.getFloatAttribute("y1"),this.params[2]=this.element.getFloatAttribute("x2"),this.params[3]=this.element.getFloatAttribute("y2")},r.prototype.parseColors=function(e){if(e.hasAttribute("opacity")&&this.setOpacity(e.getAttribute("opacity")),e.hasAttribute("stroke")&&this.setStroke(e.getAttribute("stroke")),e.hasAttribute("stroke-width")&&this.setStrokeWeight(e.getAttribute("stroke-width")),e.hasAttribute("stroke-linejoin")&&this.setStrokeJoin(e.getAttribute("stroke-linejoin")),e.hasAttribute("stroke-linecap")&&this.setStrokeCap(e.getStringAttribute("stroke-linecap")),e.hasAttribute("fill")&&this.setFill(e.getStringAttribute("fill")),e.hasAttribute("style"))for(var t=e.getStringAttribute("style").toString().split(";"),n=0,r=t.length;n<r;n++){var i=A.trim(t[n].split(":"));"fill"===i[0]?this.setFill(i[1]):"fill-opacity"===i[0]?this.setFillOpacity(i[1]):"stroke"===i[0]?this.setStroke(i[1]):"stroke-width"===i[0]?this.setStrokeWeight(i[1]):"stroke-linecap"===i[0]?this.setStrokeCap(i[1]):"stroke-linejoin"===i[0]?this.setStrokeJoin(i[1]):"stroke-opacity"===i[0]?this.setStrokeOpacity(i[1]):"opacity"===i[0]&&this.setOpacity(i[1])}},r.prototype.setFillOpacity=function(e){this.fillOpacity=parseFloat(e),this.fillColor=255*this.fillOpacity<<24|16777215&this.fillColor},r.prototype.setFill=function(e){var t=4278190080&this.fillColor;"none"===e?this.fill=!1:0===e.indexOf("#")?(this.fill=!0,4===e.length&&(e=e.replace(/#(.)(.)(.)/,"#$1$1$2$2$3$3")),this.fillColor=t|16777215&parseInt(e.substring(1),16)):0===e.indexOf("rgb")?(this.fill=!0,this.fillColor=t|this.parseRGB(e)):0===e.indexOf("url(#")?this.fillName=e.substring(5,e.length-1):n[e]&&(this.fill=!0,this.fillColor=t|16777215&parseInt(n[e].substring(1),16))},r.prototype.setOpacity=function(e){this.strokeColor=255*parseFloat(e)<<24|16777215&this.strokeColor,this.fillColor=255*parseFloat(e)<<24|16777215&this.fillColor},r.prototype.setStroke=function(e){var t=4278190080&this.strokeColor;"none"===e?this.stroke=!1:"#"===e.charAt(0)?(this.stroke=!0,4===e.length&&(e=e.replace(/#(.)(.)(.)/,"#$1$1$2$2$3$3")),this.strokeColor=t|16777215&parseInt(e.substring(1),16)):0===e.indexOf("rgb")?(this.stroke=!0,this.strokeColor=t|this.parseRGB(e)):0===e.indexOf("url(#")?this.strokeName=e.substring(5,e.length-1):n[e]&&(this.stroke=!0,this.strokeColor=t|16777215&parseInt(n[e].substring(1),16))},r.prototype.setStrokeWeight=function(e){this.strokeWeight=this.parseUnitSize(e)},r.prototype.setStrokeJoin=function(e){"miter"===e?this.strokeJoin=C.MITER:"round"===e?this.strokeJoin=C.ROUND:"bevel"===e&&(this.strokeJoin=C.BEVEL)},r.prototype.setStrokeCap=function(e){"butt"===e?this.strokeCap=C.SQUARE:"round"===e?this.strokeCap=C.ROUND:"square"===e&&(this.strokeCap=C.PROJECT)},r.prototype.setStrokeOpacity=function(e){this.strokeOpacity=parseFloat(e),this.strokeColor=255*this.strokeOpacity<<24|16777215&this.strokeColor},r.prototype.parseRGB=function(e){var t=e.substring(e.indexOf("(")+1,e.indexOf(")")).split(", ");return t[0]<<16|t[1]<<8|t[2]},r.prototype.parseUnitSize=function(e){var t=e.length-2;return t<0?e:e.indexOf("pt")===t?1.25*parseFloat(e.substring(0,t)):e.indexOf("pc")===t?15*parseFloat(e.substring(0,t)):e.indexOf("mm")===t?3.543307*parseFloat(e.substring(0,t)):e.indexOf("cm")===t?35.43307*parseFloat(e.substring(0,t)):e.indexOf("in")===t?90*parseFloat(e.substring(0,t)):e.indexOf("px")===t?parseFloat(e.substring(0,t)):parseFloat(e)},r}},{}],17:[function(e,t){t.exports=function(e,s){function a(e,t,n){this.x=e||0,this.y=t||0,this.z=n||0}function t(r){return function(e,t){var n=e.get();return n[r](t),n}}var l=e.PConstants;for(var n in a.fromAngle=function(e,t){return t!==s&&null!==t||(t=new a),t.x=Math.cos(e),t.y=Math.sin(e),t},a.random2D=function(e){return a.fromAngle(Math.random()*l.TWO_PI,e)},a.random3D=function(e){var t=Math.random()*l.TWO_PI,n=2*Math.random()-1,r=Math.sqrt(1-n*n),i=r*Math.cos(t),o=r*Math.sin(t);return e===s||null===e?e=new a(i,o,n):e.set(i,o,n),e},a.dist=function(e,t){return e.dist(t)},a.dot=function(e,t){return e.dot(t)},a.cross=function(e,t){return e.cross(t)},a.sub=function(e,t){return new a(e.x-t.x,e.y-t.y,e.z-t.z)},a.angleBetween=function(e,t){return Math.acos(e.dot(t)/(e.mag()*t.mag()))},a.lerp=function(e,t,n){var r=new a(e.x,e.y,e.z);return r.lerp(t,n),r},a.prototype={set:function(e,t,n){1===arguments.length?this.set(e.x||e[0]||0,e.y||e[1]||0,e.z||e[2]||0):(this.x=e,this.y=t,this.z=n)},get:function(){return new a(this.x,this.y,this.z)},mag:function(){var e=this.x,t=this.y,n=this.z;return Math.sqrt(e*e+t*t+n*n)},magSq:function(){var e=this.x,t=this.y,n=this.z;return e*e+t*t+n*n},setMag:function(e,t){if(t!==s){var n=e;return n.normalize(),n.mult(t),n}t=e,this.normalize(),this.mult(t)},add:function(e,t,n){1===arguments.length?(this.x+=e.x,this.y+=e.y,this.z+=e.z):(this.x+=e,this.y+=t,this.z+=n)},sub:function(e,t,n){1===arguments.length?(this.x-=e.x,this.y-=e.
9y,this.z-=e.z):(this.x-=e,this.y-=t,this.z-=n)},mult:function(e){"number"==typeof e?(this.x*=e,this.y*=e,this.z*=e):(this.x*=e.x,this.y*=e.y,this.z*=e.z)},div:function(e){"number"==typeof e?(this.x/=e,this.y/=e,this.z/=e):(this.x/=e.x,this.y/=e.y,this.z/=e.z)},rotate:function(e){var t=this.x,n=Math.cos(e),r=Math.sin(e);this.x=n*this.x-r*this.y,this.y=r*t+n*this.y},dist:function(e){var t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return Math.sqrt(t*t+n*n+r*r)},dot:function(e,t,n){return 1===arguments.length?this.x*e.x+this.y*e.y+this.z*e.z:this.x*e+this.y*t+this.z*n},cross:function(e){var t=this.x,n=this.y,r=this.z;return new a(n*e.z-e.y*r,r*e.x-e.z*t,t*e.y-e.x*n)},lerp:function(e,t,n,r){var i,o,s=function(e,t,n){return e+(t-e)*n};2===arguments.length?(r=t,i=e.x,o=e.y,n=e.z):(i=e,o=t),this.x=s(this.x,i,r),this.y=s(this.y,o,r),this.z=s(this.z,n,r)},normalize:function(){var e=this.mag();0<e&&this.div(e)},limit:function(e){this.mag()>e&&(this.normalize(),this.mult(e))},heading:function(){return-Math.atan2(-this.y,this.x)},heading2D:function(){return this.heading()},toString:function(){return"["+this.x+", "+this.y+", "+this.z+"]"},array:function(){return[this.x,this.y,this.z]}},a.prototype)a.prototype.hasOwnProperty(n)&&!a.hasOwnProperty(n)&&(a[n]=t(n));return a}},{}],18:[function(e,t){t.exports=function(){var e=function(e,t,n,r,i){this.fullName=e||"",this.name=t||"",this.namespace=n||"",this.value=r,this.type=i};return e.prototype={getName:function(){return this.name},getFullName:function(){return this.fullName},getNamespace:function(){return this.namespace},getValue:function(){return this.value},getType:function(){return this.type},setValue:function(e){this.value=e}},e}},{}],19:[function(t,n){n.exports=function(t,i){var n=t.Browser,o=n.ajax,r=n.window,s=(r.XMLHttpRequest,r.DOMParser),u=t.XMLAttribute,c=function(e,t,n,r){this.attributes=[],this.children=[],this.fullName=null,this.name=null,this.namespace="",this.content=null,this.parent=null,this.lineNr="",this.systemID="",this.type="ELEMENT",e&&("string"==typeof e?t===i&&-1<e.indexOf("<")?this.parse(e):(this.fullName=e,this.namespace=t,this.systemId=n,this.lineNr=r):this.parse(t))};return c.prototype={parse:function(t){try{var n=t.substring(t.length-4);".xml"!==n&&".svg"!==n||(t=o(t));var r=(new s).parseFromString(t,"text/xml").documentElement;if(!r)throw"Error loading document";return this.parseChildrenRecursive(null,r),this}catch(e){throw e}},parseChildrenRecursive:function(e,t){var n,r,i,o,s,a;if(e?(n=new c(t.nodeName)).parent=e:(this.fullName=t.localName,this.name=t.nodeName,n=this),3===t.nodeType&&""!==t.textContent)return this.createPCDataElement(t.textContent);if(4===t.nodeType)return this.createCDataElement(t.textContent);if(t.attributes)for(o=0,s=t.attributes.length;o<s;o++)i=t.attributes[o],r=new u(i.getname,i.nodeName,i.namespaceURI,i.nodeValue,i.nodeType),n.attributes.push(r);if(t.childNodes)for(o=0,s=t.childNodes.length;o<s;o++){var l=t.childNodes[o];null!==(a=n.parseChildrenRecursive(n,l))&&n.children.push(a)}return n},createElement:function(e,t,n,r){return n===i?new c(e,t):new c(e,t,n,r)},createPCDataElement:function(e){if(""===e.replace(/^\s+$/g,""))return null;var t=new c;return t.type="TEXT",t.content=e,t},createCDataElement:function(e){var t=this.createPCDataElement(e);if(null===t)return null;t.type="CDATA";var n,r={"<":"&lt;",">":"&gt;","'":"&apos;",'"':"&quot;"};for(n in r)Object.hasOwnProperty(r,n)||(e=e.replace(new RegExp(n,"g"),r[n]));return t.cdata=e,t},hasAttribute:function(e,t){return 1===arguments.length?null!==this.getAttribute(e):2===arguments.length?null!==this.getAttribute(e,t):void 0},equals:function(e){if(!(e instanceof c))return!1;var t,n,r,i,o;if(this.fullName!==e.fullName)return!1;if(this.attributes.length!==e.getAttributeCount())return!1;if(this.attributes.length!==e.attributes.length)return!1;for(t=0,n=this.attributes.length;t<n;t++){if(r=this.attributes[t].getName(),i=this.attributes[t].getNamespace(),null===(o=e.findAttribute(r,i)))return!1;if(this.attributes[t].getValue()!==o.getValue())return!1;if(this.attributes[t].getType()!==o.getType())return!1}if(this.children.length!==e.getChildCount())return!1;if(0<this.children.length){var s,a;for(t=0,n=this.children.length;t<n;t++)if(s=this.getChild(t),a=e.getChild(t),!s.equals(a))return!1;return!0}return this.content===e.content},getContent:function(){if("TEXT"===this.type||"CDATA"===this.type)return this.content;var e=this.children;return 1!==e.length||"TEXT"!==e[0].type&&"CDATA"!==e[0].type?null:e[0].content},getAttribute:function(e,t,n){var r;return 2===arguments.length?(r=this.findAttribute(e))?r.getValue():t:1===arguments.length?(r=this.findAttribute(e))?r.getValue():null:3===arguments.length?(r=this.findAttribute(e,t))?r.getValue():n:void 0},getStringAttribute:function(e,t,n){return 1===arguments.length?this.getAttribute(e):2===arguments.length?this.getAttribute(e,t):this.getAttribute(e,t,n)}
9,getString:function(e){return this.getStringAttribute(e)},getFloatAttribute:function(e,t,n){return 1===arguments.length?parseFloat(this.getAttribute(e,0)):2===arguments.length?this.getAttribute(e,t):this.getAttribute(e,t,n)},getFloat:function(e){return this.getFloatAttribute(e)},getIntAttribute:function(e,t,n){return 1===arguments.length?this.getAttribute(e,0):2===arguments.length?this.getAttribute(e,t):this.getAttribute(e,t,n)},getInt:function(e){return this.getIntAttribute(e)},hasChildren:function(){return 0<this.children.length},addChild:function(e){null!==e&&(e.parent=this).children.push(e)},insertChild:function(e,t){if(e){if(null===e.getLocalName()&&!this.hasChildren()){var n=this.children[this.children.length-1];if(null===n.getLocalName())return void n.setContent(n.getContent()+e.getContent())}(e.parent=this).children.splice(t,0,e)}},getChild:function(e){if("number"==typeof e)return this.children[e];if(-1!==e.indexOf("/"))return this.getChildRecursive(e.split("/"),0);for(var t,n,r=0,i=this.getChildCount();r<i;r++)if(null!==(n=(t=this.getChild(r)).getName())&&n===e)return t;return null},getChildren:function(e){if(1===arguments.length){if("number"==typeof e)return this.getChild(e);if(-1!==e.indexOf("/"))return this.getChildrenRecursive(e.split("/"),0);for(var t,n,r=[],i=0,o=this.getChildCount();i<o;i++)null!==(n=(t=this.getChild(i)).getName())&&n===e&&r.push(t);return r}return this.children},getChildCount:function(){return this.children.length},getChildRecursive:function(e,t){if(t===e.length)return this;for(var n,r,i=e[t],o=0,s=this.getChildCount();o<s;o++)if(null!==(r=(n=this.getChild(o)).getName())&&r===i)return n.getChildRecursive(e,t+1);return null},getChildrenRecursive:function(e,t){if(t===e.length-1)return this.getChildren(e[t]);for(var n=this.getChildren(e[t]),r=[],i=0;i<n.length;i++)r=r.concat(n[i].getChildrenRecursive(e,t+1));return r},isLeaf:function(){return!this.hasChildren()},listChildren:function(){for(var e=[],t=0,n=this.children.length;t<n;t++)e.push(this.getChild(t).getName());return e},removeAttribute:function(e,t){this.namespace=t||"";for(var n=0,r=this.attributes.length;n<r;n++)if(this.attributes[n].getName()===e&&this.attributes[n].getNamespace()===this.namespace){this.attributes.splice(n,1);break}},removeChild:function(e){if(e)for(var t=0,n=this.children.length;t<n;t++)if(this.children[t].equals(e)){this.children.splice(t,1);break}},removeChildAtIndex:function(e){this.children.length>e&&this.children.splice(e,1)},findAttribute:function(e,t){this.namespace=t||"";for(var n=0,r=this.attributes.length;n<r;n++)if(this.attributes[n].getName()===e&&this.attributes[n].getNamespace()===this.namespace)return this.attributes[n];return null},setAttribute:function(e,t,n){var r;if(3===arguments.length){var i=e.indexOf(":"),o=e.substring(i+1);(r=this.findAttribute(o,t))?r.setValue(n):(r=new u(e,o,t,n,"CDATA"),this.attributes.push(r))}else(r=this.findAttribute(e))?r.setValue(t):(r=new u(e,e,null,t,"CDATA"),this.attributes.push(r))},setString:function(e,t){this.setAttribute(e,t)},setInt:function(e,t){this.setAttribute(e,t)},setFloat:function(e,t){this.setAttribute(e,t)},setContent:function(e){0<this.children.length&&Processing.debug("Tried to set content for XMLElement with children"),this.content=e},setName:function(e,t){if(1===arguments.length)this.name=e,this.fullName=e,this.namespace=null;else{var n=e.indexOf(":");this.name=null===t||n<0?e:e.substring(n+1),this.fullName=e,this.namespace=t}},getName:function(){return this.fullName},getLocalName:function(){return this.name},getAttributeCount:function(){return this.attributes.length},toString:function(){if("TEXT"===this.type)return this.content;if("CDATA"===this.type)return this.cdata;var e,t,
10n=this.fullName,r="<"+n;for(e=0;e<this.attributes.length;e++){var i=this.attributes[e];r+=" "+i.getName()+'="'+i.getValue()+'"'}if(0===this.children.length)""===this.content?r+="/>":r+=">"+this.content+"</"+n+">";else{for(r+=">",t=0;t<this.children.length;t++)r+=this.children[t].toString();r+="</"+n+">"}return r}},c.parse=function(e){var t=new c;return t.parse(e),t},c}},{}],20:[function(e,t){t.exports={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",s
10almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},{}],21:[function(e,t){t.exports=function(n,r,u){return function e(t,l){t.__contains=function(e,t){return"string"!=typeof e?e.contains.apply(e,l(arguments)):null!==e&&null!==t&&"string"==typeof t&&-1<e.indexOf(t)},t.__replaceAll=function(e,t,n){return"string"!=typeof e?e.replaceAll.apply(e,l(arguments)):e.replace(new RegExp(t,"g"),n)},t.__replaceFirst=function(e,t,n){return"string"!=typeof e?e.replaceFirst.apply(e,l(arguments)):e.replace(new RegExp(t,""),n)},t.__replace=function(e,t,n){if("string"!=typeof e)return e.replace.apply(e,l(arguments));if(t instanceof RegExp)return e.replace(t,n);if("string"!=typeof t&&(t=t.toString()),""===t)return e;var r=e.indexOf(t);if(r<0)return e;for(var i=0,o="";o+=e.substring(i,r)+n,i=r+t.length,0<=(r=e.indexOf(t,i)););return o+e.substring(i)},t.__equals=function(e,t){return e.equals instanceof Function?e.equals.apply(e,l(arguments)):r(e,t)},t.__equalsIgnoreCase=function(e,t){return"string"!=typeof e?e.equalsIgnoreCase.apply(e,l(arguments)):e.toLowerCase()===t.toLowerCase()},t.__toCharArray=function(e){if("string"!=typeof e)return e.toCharArray.apply(e,l(arguments));for(var t=[],n=0,r=e.length;n<r;++n)t[n]=new Char(e.charAt(n));return t},t.__split=function(e,t,n){if("string"!=typeof e)return e.split.apply(e,l(arguments));var r=new RegExp(t);if(n===u||n<1)return e.split(r);for(var i,o=[],s=e;-1!==(i=s.search(r))&&o.length<n-1;){var a=r.exec(s).toString();o.push(s.substring(0,i)),s=s.substring(i+a.length)}return-1===i&&""===s||o.push(s),o},t.__codePointAt=function(e,t){var n=e.charCodeAt(t);return 55296<=n&&n<=56319?1024*(n-55296)+(e.charCodeAt(t+1)-56320)+65536:n},t.__matches=function(e,t){return new RegExp(t).test(e)},t.__startsWith=function(e,t,n){return"string"!=typeof e?e.startsWith.apply(e,l(arguments)):!((n=n||0)<0||n>e.length)&&(""===t||t===e||e.indexOf(t)===n)},t.__endsWith=function(e,t){if("string"!=typeof e)return e.endsWith.apply(e,l(arguments));var n=t?t.length:0;return""===t||t===e||e.indexOf(t)===e.length-n},t.__hashCode=function(e){return e.hashCode instanceof Function?e.hashCode.apply(e,l(arguments)):n(e)},t.__printStackTrace=function(e){t.println("Exception: "+e.toString())}}}},{}],22:[function(e,t){t.exports=function n(e,u){function s(e,t){var n=e||362436069,r=t||521288629,i=function(){return 4294967295&((65535&(n=36969*(65535&n)+(n>>>16)&4294967295))<<16|65535&(r=18e3*(65535&r)+(r>>>16)&4294967295))};this.doubleGenerator=function(){var e=i()/4294967296;return e<0?1+e:e},this.intGenerator=i}function l(e){function g(e,t,n,r){var i=15&e,o=i<8?t:n,s=i<4?n:12===i||14===i?t:r;return(0==(1&i)?o:-o)+(0==(2&i)?s:-s)}function l(e,t,n){var r=0==(1&e)?t:n;return 0==(2&e)?-r:r}function n(e,t){return 0==(1&e)?-t:t}function m(e,t,n){return t+e*(n-t)}var t,r,i=e!==u?new s(e):s.createRandomized(),v=new Uint8Array(512);for(t=0;t<256;++t)v[t]=t;for(t=0;t<256;++t){var o=v[r=255&i.intGenerator()];v[r]=v[t],v[t]=o}for(t=0;t<256;++t)v[t+256]=v[t];this.noise3d=function(e,t,n){var r=255&Math.floor(e),i=255&Math.floor(t),o=255&Math.floor(n),s=(3-2*(e-=Math.floor(e)))*e*e,a=(3-2*(t-=Math.floor(t)))*t*t,l=(3-2*(n-=Math.floor(n)))*n*n,u=v[r]+i,c=v[u]+o,f=v[u+1]+o,d=v[r+1]+i,h=v[d]+o,p=v[d+1]+o;return m(l,m(a,m(s,g(v[c],e,t,n),g(v[h],e-1,t,n)),m(s,g(v[f],e,t-1,n),g(v[p],e-1,t-1,n))),m(a,m(s,g(v[c+1],e,t,n-1),g(v[h+1],e-1,t,n-1)),m(s,g(v[f+1],e,t-1,n-1),g(v[p+1],e-1,t-1,n-1))))},this.noise2d=function(e,t){var n=255&Math.floor(e),r=255&Math.floor(t),i=(3-2*(e-=Math.floor(e)))*e*e,o=(3-2*(t-=Math.floor(t)))*t*t,s=v[n]+r,a=v[n+1]+r;return m(o,m(i,l(v[s],e,t),l(v[a],e-1,t)),m(i,l(v[s+1],e,t-1),l(v[a+1],e-1,t-1)))},this.noise1d=function(e){var t=255&Math.floor(e);return m((3-2*(e-=Math.floor(e)))*e*e,n(v[t],e),n(v[t+1],e-1))}}var i=function(){return Math.random()};e.abs=Math.abs,e.ceil=Math.ceil,e.exp=Math.exp,e.floor=Math.floor,e.log=Math.log,e.pow=Math.pow,e.round=Math.round,e.sqrt=Math.sqrt,e.acos=Math.acos,e.asin=Math.asin,e.atan=Math.atan,e.atan2=Math.atan2,e.cos=Math.cos,e.sin=Math.sin,e.tan=Math.tan,e.constrain=function(e,t,n){return n<e?n:e<t?t:e},e.dist=function(e,t,n,r,i,o){var s,a,l;return 4===arguments.length?(s=e-n,a=t-r,Math.sqrt(s*s+a*a)):6===arguments.length?(s=e-r,a=t-i,l=n-o,Math.sqrt(s*s+a*a+l*l)):void 0},e.lerp=function(e,t,n){return(t-e)*n+e},e.mag=function(e,t,n){return n?Math.sqrt(e*e+t*t+n*n):Math.sqrt(e*e+t*t)},e.map=function(e,t,n,r,i){return r+(e-t)/(n-t)*(i-r)},e.max=function(e,t){if(2===arguments.length)return e<t?t:e;var n=1===arguments.length?e:arguments;if(!("length"in n&&0<n.length))throw"Non-empty array is expected";for(var r=n[0],i=n.length,o=1;o<i;++o)r<n[o]&&(r=n[o]);return r},e.min=function(e,t){if(2===arguments.length)return e<t?e:t;var n=1===arguments.length?e:arguments;if(!("length"in n&&0<n.length))throw"Non-empty array is expected";for(var r=n[0],i=n.length,o=1;o<i;++o)r>n[o]&&(r=n[o]);return r},e.norm=function(e,t,n){return(e-t)/(n-t)},e.sq=function(e){return e*e},e.degrees=function(e){return 180*e/Math.PI},e.random=function(e,t){if(0===arguments.length)return i();if(1===arguments.length)return i()*e;var n=e,r=t;return i()*(r-n)+n},s.createRandomized=function(){var e=new Date;return new s(e/6e4&4294967295,4294967295&e)},e.randomSeed=function(e){i=new s(e).doubleGenerator,this.haveNextNextGaussian=!1},e.randomGaussian=function(){if(this.haveNextNextGaussian)return this.haveNextNextGaussian=!1,this.nextNextGaussian;for(var e,t,n;1<=(n=(e=2*i()-1)*e+(t=2*i()-1)*t)||0===n;);var r=Math.sqrt(-2*Math.log(n)/n);return this.nextNextGaussian=t*r,this.haveNextNextGaussian=!0,e*r};var c={generator:u,octaves:4,fallout:.5,seed:u};e.noise=function(e,t,n){c.generator===u&&(c.generator=new l(c.seed));for(var r=c.generator,i=1,o=1,s=0,a=0;a<c.octaves;++a){switch(i*=c.fallout,arguments.length){case 1:s+=i*(1+r.noise1d(o*e))/2;break;case 2:s+=i*(1+r.noise2d(o*e,o*t))/2;break;case 3:s+=i*(1+r.noise3d(o*e,o*t,o*n))/2}o*=2}return s},e.noiseDetail=function(e,t){c.octaves=e,t!==u&&(c.fallout=t)},e.noiseSeed=function(e){c.seed=e,c.generator=u}}},{}],23:[function(e,t){t.exports=function n(m){var u={trim:function(e){if(e instanceof Array){for(var t=[],n=0;n<e.length;n++)t.push(e[n].replace(/^\s*/,"").replace(/\s*$/,"").replace(/\r*$/,""));return t}return e.replace(/^\s*/,"").replace(/\s*$/,"").replace(/\r*$/,"")},radians:function(e){return e/180*Math.PI},nfCoreScalar:function(e,t,n,r,i,o){var s=e<0?n:t,a=0===i,l=i===m||i<0?0:i,u=Math.abs(e);if(a)for(l=1,u*=10;1e-6<Math.abs(Math.round(u)-u)&&l<7;)++l,u*=10;
10else 0!==l&&(u*=Math.pow(10,l));var c,f=2*u;if(Math.floor(u)===u)c=u;else if(Math.floor(f)===f){var d=Math.floor(u);c=d+d%2}else c=Math.round(u);for(var h="",p=r+l;0<p||0<c;)p--,h=""+c%10+h,c=Math.floor(c/10);if(o!==m)for(var g=h.length-3-l;0<g;)h=h.substring(0,g)+o+h.substring(g),g-=3;return 0<l?s+h.substring(0,h.length-l)+"."+h.substring(h.length-l,h.length):s+h},nfCore:function(e,t,n,r,i,o){if(e instanceof Array){for(var s=[],a=0,l=e.length;a<l;a++)s.push(u.nfCoreScalar(e[a],t,n,r,i,o));return s}return u.nfCoreScalar(e,t,n,r,i,o)},nf:function(e,t,n){return u.nfCore(e,"","-",t,n)},nfs:function(e,t,n){return u.nfCore(e," ","-",t,n)},nfp:function(e,t,n){return u.nfCore(e,"+","-",t,n)},nfc:function(e,t){return u.nfCore(e,"","-",0,t,",")},withCommonFunctions:function e(t){["trim","radians","nf","nfs","nfp","nfc"].forEach(function(e){t[e]=u[e]})}};return u}()},{}],24:[function(e,t){t.exports=function n(l,i,o,u,s,a){function c(e){var t,n,r,i,o=e,s=0,a=0;if(l.pmouseX=l.mouseX,l.pmouseY=l.mouseY,o.offsetParent)for(;s+=o.offsetLeft,a+=o.offsetTop,o=o.offsetParent;);for(o=e;s-=o.scrollLeft||0,a-=o.scrollTop||0,o=o.parentNode;);return u.defaultView&&u.defaultView.getComputedStyle&&(t=parseInt(u.defaultView.getComputedStyle(e,null).paddingLeft,10)||0,n=parseInt(u.defaultView.getComputedStyle(e,null).paddingTop,10)||0,r=parseInt(u.defaultView.getComputedStyle(e,null).borderLeftWidth,10)||0,i=parseInt(u.defaultView.getComputedStyle(e,null).borderTopWidth,10)||0),s+=t,a+=n,s+=r,a+=i,{X:s+=window.pageXOffset,Y:a+=window.pageYOffset}}function f(e,t){var n=c(e,t);l.mouseX=t.pageX-n.X,l.mouseY=t.pageY-n.Y}function d(e){var t,n=c(e.changedTouches[0].target,e.changedTouches[0]);for(t=0;t<e.touches.length;t++){var r=e.touches[t];r.offsetX=r.pageX-n.X,r.offsetY=r.pageY-n.Y}for(t=0;t<e.targetTouches.length;t++){var i=e.targetTouches[t];i.offsetX=i.pageX-n.X,i.offsetY=i.pageY-n.Y}for(t=0;t<e.changedTouches.length;t++){var o=e.changedTouches[t];o.offsetX=o.pageX-n.X,o.offsetY=o.pageY-n.Y}return e}var e,t;o(i,"touchstart",function(e){i.setAttribute("style","-webkit-user-select: none"),i.setAttribute("onclick","void(0)"),i.setAttribute("style","-webkit-tap-highlight-color:rgba(0,0,0,0)");for(var t=0,n=eventHandlers.length;t<n;t++){var r=eventHandlers[t].type;"mouseout"!==r&&"mousemove"!==r&&"mousedown"!==r&&"mouseup"!==r&&"DOMMouseScroll"!==r&&"mousewheel"!==r&&"touchstart"!==r||detachEventHandler(eventHandlers[t])}l.touchStart!==a||l.touchMove!==a||l.touchEnd!==a||l.touchCancel!==a?(o(i,"touchstart",function(e){l.touchStart!==a&&(e=d(e),l.touchStart(e))}),o(i,"touchmove",function(e){l.touchMove!==a&&(e.preventDefault(),e=d(e),l.touchMove(e))}),o(i,"touchend",function(e){l.touchEnd!==a&&(e=d(e),l.touchEnd(e))}),o(i,"touchcancel",function(e){l.touchCancel!==a&&(e=d(e),l.touchCancel(e))})):(o(i,"touchstart",function(e){f(i,e.touches[0]),l.__mousePressed=!0,l.mouseDragging=!1,l.mouseButton=s.LEFT,"function"==typeof l.mousePressed&&l.mousePressed()}),o(i,"touchmove",function(e){e.preventDefault(),f(i,e.touches[0]),"function"!=typeof l.mouseMoved||l.__mousePressed||l.mouseMoved(),"function"==typeof l.mouseDragged&&l.__mousePressed&&(l.mouseDragged(),l.mouseDragging=!0)}),o(i,"touchend",function(){l.__mousePressed=!1,"function"!=typeof l.mouseClicked||l.mouseDragging||l.mouseClicked(),"function"==typeof l.mouseReleased&&l.mouseReleased()})),i.dispatchEvent(e)}),e=!0,t=function(e){e.preventDefault(),e.stopPropagation()},l.disableContextMenu=function(){e&&(o(i,"contextmenu",t),e=!1)},l.enableContextMenu=function(){e||(detachEventHandler({elem:i,type:"contextmenu",fn:t}),e=!0)},o(i,"mousemove",function(e){f(i,e),"function"!=typeof l.mouseMoved||l.__mousePressed||l.mouseMoved(),"function"==typeof l.mouseDragged&&l.__mousePressed&&(l.mouseDragged(),l.mouseDragging=!0)}),o(i,"mouseout",function(){"function"==typeof l.mouseOut&&l.mouseOut()}),o(i,"mouseover",function(e){f(i,e),"function"==typeof l.mouseOver&&l.mouseOver()}),i.onmousedown=function(){return i.focus(),!1},o(i,"mousedown",function(e){switch(l.__mousePressed=!0,l.mouseDragging=!1,e.which){case 1:l.mouseButton=s.LEFT;break;case 2:l.mouseButton=s.CENTER;break;case 3:l.mouseButton=s.RIGHT}"function"==typeof l.mousePressed&&l.mousePressed()}),o(i,"mouseup",function(){l.__mousePressed=!1,"function"!=typeof l.mouseClicked||l.mouseDragging||l.mouseClicked(),"function"==typeof l.mouseReleased&&l.mouseReleased()});var n=function(e){var t=0;e.wheelDelta?(t=e.wheelDelta/120,window.opera&&(t=-t)):e.detail&&(t=-e.detail/3),(l.mouseScroll=t)&&"function"==typeof l.mouseScrolled&&l.mouseScrolled()};o(u,"DOMMouseScroll",n),o(u,"mousewheel",n)}},{}],25:[function(e,t){t.exports=function n(s,e){function Me(){var t=["abs","acos","alpha","ambient","ambientLight","append","applyMatrix","arc","arrayCopy","asin","atan","atan2","background","beginCamera","beginDraw","beginShape","bezier","bezierDetail","bezierPoint","bezierTangent","bezierVertex","binary","blend","blendColor","blit_resize","blue","box","breakShape","brightness","camera","ceil","Character","color","colorMode","concat","constrain","copy","cos","createFont","createGraphics","createImage","cursor","curve","curveDetail","curvePoint","curveTangent","curveTightness","curveVertex","day","degrees","directionalLight","disableContextMenu","dist","draw","ellipse","ellipseMode","emissive","enableContextMenu","endCamera","endDraw","endShape","exit","exp","expand","externals","fill","filter","floor","focused","frameCount","frameRate","frustum","get","glyphLook","glyphTable","green","height","hex","hint","hour","hue","image","imageMode","intersect","join","key","keyCode","keyPressed","keyReleased","keyTyped","lerp","lerpColor","lightFalloff","lights","lightSpecular","line","link","loadBytes","loadFont","loadGlyphs","loadImage","loadPixels","loadShape","loadXML","loadStrings","log","loop","mag","map","match","matchAll","max","millis","min","minute","mix","modelX","modelY","modelZ","modes","month","mouseButton","mouseClicked","mouseDragged","mouseMoved","mouseOut","mouseOver","mousePressed","mouseReleased","mouseScroll","mouseScrolled","mouseX","mouseY","name","nf","nfc","nfp","nfs","noCursor","noFill","noise","noiseDetail","noiseSeed","noLights","noLoop","norm","normal","noSmooth","noStroke","noTint","ortho","param","parseBoolean","parseByte","parseChar","parseFloat","parseInt","peg","perspective","PImage","pixels","PMatrix2D","PMatrix3D","PMatrixStack","pmouseX","pmouseY","point","pointLight","popMatrix","popStyle","pow","print","printCamera","println","printMatrix","printProjection","PShape","PShapeSVG","pushMatrix","pushStyle","quad","radians","random","randomGaussian","randomSeed","rect","rectMode","red","redraw","requestImage","resetMatrix","reverse","rotate","rotateX","rotateY","rotateZ","round","saturation","save","saveFrame","saveStrings","scale","screenX","screenY","screenZ","second","set","setup","shape","shapeMode","shared","shearX","shearY","shininess","shorten","sin","size","smooth","sort","specular","sphere","sphereDetail","splice","split","splitTokens","
10spotLight","sq","sqrt","status","str","stroke","strokeCap","strokeJoin","strokeWeight","subset","tan","text","textAlign","textAscent","textDescent","textFont","textLeading","textMode","textSize","texture","textureMode","textWidth","tint","toImageData","touchCancel","touchEnd","touchMove","touchStart","translate","transform","triangle","trim","unbinary","unhex","updatePixels","use3DContext","vertex","width","XMLElement","XML","year","__contains","__equals","__equalsIgnoreCase","__frameRate","__hashCode","__int_cast","__instanceof","__keyPressed","__mousePressed","__printStackTrace","__replace","__replaceAll","__replaceFirst","__toCharArray","__split","__codePointAt","__startsWith","__endsWith","__matches"];a&&Object.keys(a).forEach(function(e){t.push(e)});var e,n,r={};for(e=0,n=t.length;e<n;++e)r[t[e]]=null;for(var i in s.lib)if(s.lib.hasOwnProperty(i)&&s.lib[i].exports){var o=s.lib[i].exports;for(e=0,n=o.length;e<n;++e)r[o[e]]=null}return r}function r(e){function t(e){for(var t=[],n=e.split(/([\{\[\(\)\]\}])/),r=n[0],i=[],o=1;o<n.length;o+=2){var s=n[o];if("["===s||"{"===s||"("===s)i.push(r),r=s;else if("]"===s||"}"===s||")"===s){var a="}"===s?"A":")"===s?"B":"C",l=t.length;t.push(r+s),r=i.pop()+'"'+a+(l+1)+'"'}r+=n[o+1]}return t.unshift(r),t}function n(e,r){return e.replace(/'(\d+)'/g,function(e,t){var n=r[t];return"/"===n.charAt(0)?n:/^'((?:[^'\\\n])|(?:\\.[0-9A-Fa-f]*))'$/.test(n)?"(new $p.Character("+n+"))":n})}function g(e){var t,n=/^\s*/.exec(e);if(n[0].length===e.length)t={left:n[0],middle:"",right:""};else{var r=/\s*$/.exec(e);t={left:n[0],middle:e.substring(n[0].length,r.index),right:r[0]}}return t.untrim=function(e){return this.left+e+this.right},t}function O(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}function o(e,t){for(var n=0,r=t.length;n<r;++n)e[t[n]]=null;return e}function r(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function a(e){return e.substring(2,e.length-1)}function l(e,t){var n=Ae.length;return Ae.push(e),'"'+t+n+'"'}function u(){return"class"+ ++xe}function c(e,t,n){e.classId=t,e.scopeId=n,Ce[t]=e}function m(e){var t=e;return t=(t=(t=t.replace(_e,function(e){return l(e,"E")})).replace(Ne,function(e){return l(e,"D")})).replace(Re,function(e){return l(e,"H")})}function v(e,r){return e.replace(De,function(e,t,n){return n!==r?e:l(e,"G")})}function f(e){this.name=e}function d(e,t){this.params=e,this.methodArgsParam=t}function p(e){var t=O(e.substring(1,e.length-1)),n=[],r=null;if(""!==t)for(var i=t.split(","),o=0;o<i.length;++o){var s=/\b([A-Za-z_$][\w$]*\b)(\s*"[ABC][\d]*")*\s*$/.exec(i[o]);if(o===i.length-1&&0<=i[o].indexOf("...")){r=new f(s[1]);break}n.push(new f(s[1]))}return new d(n,r)}function i(e){function t(e,t,n,r){var i=Ae[r];s=!0;var o=g(i.substring(1,i.length-1));return"__"+n+(""===o.middle?l("("+t.replace(/\.\s*$/,"")+")","B"):l("("+t.replace(/\.\s*$/,"")+","+o.middle+")","B"))}function n(e,t,n){return s=!0,"__instanceof"+l("("+t+", "+n+")","B")}var s,r=e;for(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r.replace(/\bnew\s+([A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*)(?:\s*"C\d+")+\s*("A\d+")/g,function(e,t,n){return n})).replace(/\bnew\s+([A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*)(?:\s*"B\d+")\s*("A\d+")/g,function(e){return l(e,"F")})).replace(Re,function(e){return l(e,"H")})).replace(/\bnew\s+([A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*)\s*("C\d+"(?:\s*"C\d+")*)/g,function(e,t,n){var r=n.replace(/"C(\d+)"/g,function(e,t){return Ae[t]}).replace(/\[\s*\]/g,"[null]").replace(/\s*\]\s*\[\s*/g,", ");return"$p.createJavaArray"+l("('"+t+"', "+l("{"+r.substring(1,r.length-1)+"}","A")+")","B")})).replace(/(\.\s*length)\s*"B\d+"/g,"$1")).replace(/#([0-9A-Fa-f]{6})\b/g,function(e,t){return"0xFF"+t})).replace(/"B(\d+)"(\s*(?:[\w$']|"B))/g,function(e,t,n){var r=Ae[t];if(!/^\(\s*[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*\s*(?:"C\d+"\s*)*\)$/.test(r))return e;if(/^\(\s*int\s*\)$/.test(r))return"(int)"+n;var i=r.split(/"C(\d+)"/g);return 1<i.length&&!/^\[\s*\]$/.test(Ae[i[1]])?e:""+n})).replace(/\(int\)([^,\]\)\}\?\:\*\+\-\/\^\|\%\&\~<\>\=]+)/g,function(e,t){var n=g(t);return n.untrim("__int_cast("+n.middle+")")})).replace(/\bsuper(\s*"B\d+")/g,"$$superCstr$1").replace(/\bsuper(\s*\.)/g,"$$super$1")).replace(/\b0+((\d*)(?:\.[\d*])?(?:[eE][\-\+]?\d+)?[fF]?)\b/,function(e,t,n){return t===n?e:""===n?"0"+t:t})).replace(/\b(\.?\d+\.?)[fF]\b/g,"$1")).replace(/([^\s])%([^=\s])/g,"$1 % $2")).replace(/\b(frameRate|keyPressed|mousePressed)\b(?!\s*"B)/g,"__$1")).replace(/\b(boolean|byte|char|float|int)\s*"B/g,function(e,t){return"parse"+t.substring(0,1).toUpperCase()+t.substring(1)+'"B'})).replace(/\bpixels\b\s*(("C(\d+)")|\.length)?(\s*=(?!=)([^,\]\)\}]+))?/g,function(e,t,n,r,i,o){if(n){var s=Ae[r];return i?"pixels.setPixel"+l("("+s.substring(1,s.length-1)+","+o+")","B"):"pixels.getPixel"+l("("+s.substring(1,s.length-1)+")","B")}return t?"pixels.getLength"+l("()","B"):i?"pixels.set"+l("("+o+")","B"):"pixels.toArray"+l("()","B")});s=!1,r=r.replace(/((?:'\d+'|\b[A-Za-z_$][\w$]*\s*(?:"[BC]\d+")*)\s*\.\s*(?:[A-Za-z_$][\w$]*\s*(?:"[BC]\d+"\s*)*\.\s*)*)(replace|replaceAll|replaceFirst|contains|equals|equalsIgnoreCase|hashCode|toCharArray|printStackTrace|split|startsWith|endsWith|codePointAt|matches)\s*"B(\d+)"/g,t),s;);for(;s=!1,r=r.replace(/((?:'\d+'|\b[A-Za-z_$][\w$]*\s*(?:"[BC]\d+")*)\s*(?:\.\s*[A-Za-z_$][\w$]*\s*(?:"[BC]\d+"\s*)*)*)instanceof\s+([A-Za-z_$][\w$]*\s*(?:\.\s*[A-Za-z_$][\w$]*)*)/g,n),s;);return r=r.replace(/\bthis(\s*"B\d+")/g,"$$constr$1")}function s(e,t){this.baseInterfaceName=e,(this.body=t).owner=this}function h(e){var t=new RegExp(/\bnew\s*([A-Za-z_$][\w$]*\s*(?:\.\s*[A-Za-z_$][\w$]*)*)\s*"B\d+"\s*"A(\d+)"/).exec(e),n=ye,r=u();ye=r;
10var i=t[1]+"$"+r,o=new s(i,be(Ae[t[2]],i,"","implements "+t[1]));return c(o,r,n),ye=n,o}function y(e,t,n){this.name=e,this.params=t,this.body=n}function b(e){var t=new RegExp(/\b([A-Za-z_$][\w$]*)\s*"B(\d+)"\s*"A(\d+)"/).exec(e);return new y("function"!==t[1]?t[1]:null,p(Ae[t[2]]),Te(Ae[t[3]]))}function E(e){this.members=e}function T(e){for(var t=e.split(","),n=0;n<t.length;++n){var r=t[n].indexOf(":");t[n]=r<0?{value:we(t[n])}:{label:O(t[n].substring(0,r)),value:we(O(t[n].substring(r+1)))}}return new E(t)}function S(e){if("("===e.charAt(0)||"["===e.charAt(0))return e.charAt(0)+S(e.substring(1,e.length-1))+e.charAt(e.length-1);if("{"===e.charAt(0))return/^\{\s*(?:[A-Za-z_$][\w$]*|'\d+')\s*:/.test(e)?"{"+l(e.substring(1,e.length-1),"I")+"}":"["+S(e.substring(1,e.length-1))+"]";var t=g(e),n=i(t.middle);return n=n.replace(/"[ABC](\d+)"/g,function(e,t){return S(Ae[t])}),t.untrim(n)}function w(e){return e.replace(/(\.\s*)?((?:\b[A-Za-z_]|\$)[\w$]*)(\s*\.\s*([A-Za-z_$][\w$]*)(\s*\()?)?/g,function(e,t,n,r,i,o){return t?e:ve({name:n,member:i,callSign:!!o})+(r===Ie?"":r)})}function A(e,t){this.expr=e,this.transforms=t}function C(e,t,n){this.name=e,this.value=t,this.isDefault=n}function x(e,t){var n,r,i,o=e.indexOf("=");return o<0?(n=e,r=t,i=!0):(n=e.substring(0,o),r=we(e.substring(o+1)),i=!1),new C(O(n.replace(/(\s*"C\d+")+/g,"")),r,i)}function _(e){return"int"===e||"float"===e?"0":"boolean"===e?"false":"color"===e?"0x00000000":"null"}function N(e,t){this.definitions=e,this.varType=t}function D(e){this.expression=e}function L(e){if(Oe.test(e)){for(var t=Le.exec(e),n=e.substring(t[0].length).split(","),r=_(t[2]),i=0;i<n.length;++i)n[i]=x(n[i],r);return new N(n,t[2])}return new D(we(e))}function R(e,t,n){this.initStatement=e,this.condition=t,this.step=n}function k(e,t){this.initStatement=e,this.container=t}function P(e,t){this.initStatement=e,this.container=t}function M(e){var t;return/\bin\b/.test(e)?new k(L(O((t=e.substring(1,e.length-1).split(/\bin\b/g))[0])),we(t[1])):0<=e.indexOf(":")&&e.indexOf(";")<0?new P(L(O((t=e.substring(1,e.length-1).split(":"))[0])),we(t[1])):new R(L(O((t=e.substring(1,e.length-1).split(";"))[0])),we(t[1]),we(t[2]))}function I(e){e.sort(function(e,t){return t.weight-e.weight})}function F(e,t,n){this.name=e,this.body=t,this.isStatic=n,t.owner=this}function $(e,t,n){this.name=e,this.body=t,this.isStatic=n,t.owner=this}function B(e){var t,n=_e.exec(e),r=(_e.lastIndex=0)<=n[1].indexOf("static"),i=Ae[a(n[6])],o=ye,s=u();return ye=s,c(t="interface"===n[2]?new F(n[3],Ee(i,n[3],n[4]),r):new $(n[3],be(i,n[3],n[4],n[5]),r),s,o),ye=o,t}function H(e,t,n,r){this.name=e,this.params=t,this.body=n,this.isStatic=r}function U(e){var t=Ne.exec(e),n=(Ne.lastIndex=0)<=t[1].indexOf("static"),r=";"!==t[6]?Ae[a(t[6])]:"{}";return new H(t[3],p(Ae[a(t[4])]),Te(r),n)}function V(e,t,n){this.definitions=e,this.fieldType=t,this.isStatic=n}function W(e){for(var t=Le.exec(e),n=0<=t[1].indexOf("static"),r=e.substring(t[0].length).split(/,\s*/g),i=_(t[2]),o=0;o<r.length;++o)r[o]=x(r[o],i);return new V(r,t[2],n)}function K(e,t){this.params=e,this.body=t}function j(e){var t=new RegExp(/"B(\d+)"\s*"A(\d+)"/).exec(e);return new K(p(Ae[t[1]]),Te(Ae[t[2]]))}function z(e,t,n,r,i,o){var s,a;for(this.name=e,this.interfacesNames=t,this.methodsNames=n,this.fields=r,this.innerClasses=i,this.misc=o,s=0,a=r.length;s<a;++s)r[s].owner=this}function G(e,t,n,r,i,o,s,a,l){var u,c;for(this.name=e,this.baseClassName=t,this.interfacesNames=n,this.functions=r,this.methods=i,this.fields=o,this.cstrs=s,this.innerClasses=a,this.misc=l,u=0,c=o.length;u<c;++u)o[u].owner=this}function q(e,t){this.name=e,(this.body=t).owner=this}function X(e,t){this.name=e,(this.body=t).owner=this}function Y(e){var t=_e.exec(e);_e.lastIndex=0;var n,r=Ae[a(t[6])],i=ye,o=u();return ye=o,c(n="interface"===t[2]?new q(t[3],Ee(r,t[3],t[4])):new X(t[3],be(r,t[3],t[4],t[5])),o,i),ye=i,n}function Q(e,t,n){this.name=e,this.params=t,this.body=n}function Z(e){var t=Ne.exec(e);Ne.lastIndex=0;return new Q(t[3],p(Ae[a(t[4])]),Te(Ae[a(t[6])]))}function J(e){var t=e;return t=t.replace(/\b(catch\s*"B\d+"\s*"A\d+")(\s*catch\s*"B\d+"\s*"A\d+")+/g,"$1")}function ee(e,t){this.argument=e,this.misc=t}function te(e,t){this.argument=e,this.misc=t}function ne(e,t,n){this.name=e,this.argument=t,this.misc=n}function re(e){this.expr=e}function ie(e){this.label=e}function oe(e){for(var t=[],n=0,r=e.length;n<r;++n){var i=e[n];i instanceof N?t=t.concat(i.getNames()):i instanceof ee&&i.argument.initStatement instanceof N?t=t.concat(i.argument.initStatement.getNames()):(i instanceof F||i instanceof $||i instanceof q||i instanceof X||i instanceof Q||i instanceof y)&&t.pu
10sh(i.name)}return o({},t)}function se(e){this.statements=e}function ae(e){this.statements=e}function le(){function e(e,t){for(var n,r=t.split("."),i=e.scope;i;){if(i.hasOwnProperty(r[0])){n=i[r[0]];break}i=i.scope}n===Ie&&(n=a[r[0]]);for(var o=1,s=r.length;o<s&&n;++o)n=n.inScope[r[o]];return n}var t,n,a={};for(t in Ce)if(Ce.hasOwnProperty(t)){var r=(n=Ce[t]).scopeId,i=n.name;if(r){var o=Ce[r];(n.scope=o).inScope===Ie&&(o.inScope={}),o.inScope[i]=n}else a[i]=n}for(t in Ce)if(Ce.hasOwnProperty(t)){var s=(n=Ce[t]).body.baseClassName;if(s){var l=e(n,s);l&&((n.base=l).derived||(l.derived=[]),l.derived.push(n))}var u,c,f=n.body.interfacesNames,d=[];if(f&&0<f.length){for(u=0,c=f.length;u<c;++u){var h=e(n,f[u]);d.push(h),h&&(h.derived||(h.derived=[]),h.derived.push(n))}0<d.length&&(n.interfaces=d)}}}function ue(){function e(e,t){var n=o[e];if(!n)return!1;var r=n.indexOf(t);return!(r<0)&&(n.splice(r,1),!(0<n.length)&&(delete o[e],!0))}var t,n,r,i=[],o={};for(t in Ce)if(Ce.hasOwnProperty(t))if((r=Ce[t]).inScope||r.derived){var s=[];if(r.inScope)for(n in r.inScope)r.inScope.hasOwnProperty(n)&&s.push(r.inScope[n]);r.derived&&(s=s.concat(r.derived)),o[t]=s}else i.push(t),r.weight=0;for(;0<i.length;){var a,l;if(t=i.shift(),(r=Ce[t]).scopeId&&e(r.scopeId,r)&&(i.push(r.scopeId),Ce[r.scopeId].weight=r.weight+1),r.base&&e(r.base.classId,r)&&(i.push(r.base.classId),r.base.weight=r.weight+1),r.interfaces)for(a=0,l=r.interfaces.length;a<l;++a)r.interfaces[a]&&e(r.interfaces[a].classId,r)&&(i.push(r.interfaces[a].classId),r.interfaces[a].weight=r.weight+1)}}for(var ce,fe=Me(),de=e.replace(/\r\n?|\n\r/g,"\n"),he=[],pe=de.replace(/("(?:[^"\\\n]|\\.)*")|('(?:[^'\\\n]|\\.)*')|(([\[\(=|&!\^:?]\s*)(\/(?![*\/])(?:[^\/\\\n]|\\.)*\/[gim]*)\b)|(\/\/[^\n]*\n)|(\/\*(?:(?!\*\/)(?:.|\n))*\*\/)/g,function(e,t,n,r,i,o,s,a){var l;return t||n?(l=he.length,he.push(e),"'"+l+"'"):r?(l=he.length,he.push(o),i+"'"+l+"'"):""!==a?" ":"\n"}),ge=pe=(pe=(pe=pe.replace(/__x([0-9A-F]{4})/g,function(e,t){return"__x005F_x"+t})).replace(/\$/g,"__x0024")).replace(/return\s*[\n\r]+/g,"return "),me=function(e,t,n,r){return t||r?e:(ce=!0,"")};ce=!1,ge=ge.replace(/([<]?)<\s*((?:\?|[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*)(?:\[\])*(?:\s+(?:extends|super)\s+[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*)?(?:\s*,\s*(?:\?|[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*)(?:\[\])*(?:\s+(?:extends|super)\s+[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*)?)*)\s*>([=]?)/g,me),ce;);var ve,ye,be,Ee,Te,Se,we,Ae=t(ge),Ce={},xe=0,_e=/\b((?:(?:public|private|final|protected|static|abstract)\s+)*)(class|interface)\s+([A-Za-z_$][\w$]*\b)(\s+extends\s+[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*(?:\s*,\s*[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*\b)*)?(\s+implements\s+[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*(?:\s*,\s*[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*\b)*)?\s*("A\d+")/g,Ne=/\b((?:(?:public|private|final|protected|static|abstract|synchronized)\s+)*)((?!(?:else|new|return|throw|function|public|private|protected)\b)[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*(?:\s*"C\d+")*)\s*([A-Za-z_$][\w$]*\b)\s*("B\d+")(\s*throws\s+[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*(?:\s*,\s*[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*)*)?\s*("A\d+"|;)/g,Oe=/^((?:(?:public|private|final|protected|static)\s+)*)((?!(?:else|new|return|throw)\b)[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*(?:\s*"C\d+")*)\s*([A-Za-z_$][\w$]*\b)\s*(?:"C\d+"\s*)*([=,]|$)/,De=/\b((?:(?:public|private|final|protected|static|abstract)\s+)*)((?!(?:new|return|throw)\b)[A-Za-z_$][\w$]*\b)\s*("B\d+")(\s*throws\s+[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*(?:\s*,\s*[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*)*)?\s*("A\d+")/g,Le=/^((?:(?:public|private|final|protected|static)\s+)*)((?!(?:new|return|throw)\b)[A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*(?:\s*"C\d+")*)\s*/,Re=/\bfunction(?:\s+([A-Za-z_$][\w$]*))?\s*("B\d+")\s*("A\d+")/g;f.prototype.toString=function(){return this.name},d.prototype.getNames=function(){for(var e=[],t=0,n=this.params.length;t<n;++t)e.push(this.params[t].name);return e},d.prototype.prependMethodArgs=function(e){return this.methodArgsParam?"{\nvar "+this.methodArgsParam.name+" = Array.prototype.slice.call(arguments, "+this.params.length+");\n"+e.substring(1):e},d.prototype.toString=function(){if(0===this.params.length)return"()";for(var e="(",t=0,n=this.params.length;t<n;++t)e+=this.params[t]+", ";return e.substring(0,e.length-2)+")"},s.prototype.toString=function(){return"new ("+this.body+")"},y.prototype.toString=function(){var t=ve,n=o({"this":null},this.params.getNames());ve=function(e){return n.hasOwnProperty(e.name)?e.name:t(e)};var e="function";this.name&&(e+=" "+this.name);var r=this.params.prependMethodArgs(this.body.toString());return e+=this.params+" "+r,ve=t,e},E.prototype.toString=function(){var t=ve;ve=function(e){return"this"===e.name?"this":t(e)};for(var e="",n=0,r=this.members.length;n<r;++n)this.members[n].label&&(e+=this.members[n].label+": "),e+=this.members[n].value.toString()+", ";return ve=t,e.substring(0,e.length-2)},A.prototype.toString=function(){var n=this.transforms;return w(this.expr).replace(/"!(\d+)"/g,function(e,t){return n[t].toString()})},we=function(e){var n=[],t=S(e);return new A(t=(t=(t=t.replace(/"H(\d+)"/g,function(e,t){return n.push(b(Ae[t])),'"!'+(n.length-1)+'"'})).replace(/"F(\d+)"/g,function(e,t){return n.push(h(Ae[t])),'"!'+(n.length-1)+'"'})).replace(/"I(\d+)"/g,function(e,t){return n.push(T(Ae[t])),'"!'+(n.length-1)+'"'}),n)},C.prototype.toString=function(){return this.name+" = "+this.value},N.prototype.getNames=function(){for(var e=[],t=0,
11n=this.definitions.length;t<n;++t)e.push(this.definitions[t].name);return e},N.prototype.toString=function(){return"var "+this.definitions.join(",")},D.prototype.toString=function(){return this.expression.toString()},R.prototype.toString=function(){return"("+this.initStatement+"; "+this.condition+"; "+this.step+")"},k.prototype.toString=function(){var e=this.initStatement.toString();return 0<=e.indexOf("=")&&(e=e.substring(0,e.indexOf("="))),"("+e+" in "+this.container+")"},P.iteratorId=0,P.prototype.toString=function(){var e=this.initStatement.toString(),t="$it"+P.iteratorId++,n=e.replace(/^\s*var\s*/,"").split("=")[0];return"("+("var "+t+" = new $p.ObjectIterator("+this.container+"), "+n+" = void(0)")+"; "+(t+".hasNext() && (("+n+" = "+t+".next()) || true)")+";)"},F.prototype.toString=function(){return""+this.body},$.prototype.toString=function(){return""+this.body},H.prototype.toString=function(){var t=o({},this.params.getNames()),n=ve;ve=function(e){return t.hasOwnProperty(e.name)?e.name:n(e)};var e=this.params.prependMethodArgs(this.body.toString()),r="function "+this.methodId+this.params+" "+e+"\n";return ve=n,r},V.prototype.getNames=function(){for(var e=[],t=0,n=this.definitions.length;t<n;++t)e.push(this.definitions[t].name);return e},V.prototype.toString=function(){var e=ve({name:"[this]"});if(this.isStatic){for(var t=this.owner.name,n=[],r=0,i=this.definitions.length;r<i;++r){var o=this.definitions[r],s=o.name,a=t+"."+s,l="if("+a+" === void(0)) {\n "+a+" = "+o.value+"; }\n$p.defineProperty("+e+", '"+s+"', { get: function(){return "+a+";}, set: function(val){"+a+" = val;} });\n";n.push(l)}return n.join("")}return e+"."+this.definitions.join("; "+e+".")},K.prototype.toString=function(){var t=o({},this.params.getNames()),n=ve;ve=function(e){return t.hasOwnProperty(e.name)?e.name:n(e)};var e="function $constr_"+this.params.params.length+this.params.toString(),r=this.params.prependMethodArgs(this.body.toString());return/\$(superCstr|constr)\b/.test(r)||(r="{\n$superCstr();\n"+r.substring(1)),ve=n,e+r+"\n"},z.prototype.getMembers=function(e,t,n){var r,i,o,s;for(this.owner.base&&this.owner.base.body.getMembers(e,t,n),r=0,o=this.fields.length;r<o;++r){var a=this.fields[r].getNames();for(i=0,s=a.length;i<s;++i)e[a[i]]=this.fields[r]}for(r=0,o=this.methodsNames.length;r<o;++r){t[this.methodsNames[r]]=!0}for(r=0,o=this.innerClasses.length;r<o;++r){var l=this.innerClasses[r];n[l.name]=l}},z.prototype.toString=function(){function e(e){for(var t=0;e;)++t,e=e.scope;return t}e(this.owner);var t,n,r=this.name,i="",o="",s={},a={},l={};if(this.getMembers(s,a,l),this.owner.interfaces){var u,c=[];for(t=0,n=this.interfacesNames.length;t<n;++t)this.owner.interfaces[t]&&(u=ve({name:this.interfacesNames[t]}),c.push(u),i+="$p.extendInterfaceMembers("+r+", "+u+");\n");o+=r+".$interfaces = ["+c.join(", ")+"];\n"}for(o+=r+".$isInterface = true;\n",o+=r+".$methods = ['"+this.methodsNames.join("', '")+"'];\n",I(this.innerClasses),t=0,n=this.innerClasses.length;t<n;++t){var f=this.innerClasses[t];f.isStatic&&(i+=r+"."+f.name+" = "+f+";\n")}for(t=0,n=this.fields.length;t<n;++t){var d=this.fields[t];d.isStatic&&(i+=r+"."+d.definitions.join(";\n"+r+".")+";\n")}
11return"(function() {\nfunction "+r+"() { throw 'Unable to create the interface'; }\n"+i+o+"return "+r+";\n})()"},Ee=function(e,t,n){var r=e.substring(1,e.length-1);r=v(r=m(r),t);var i,o,s,a=[],l=[],u=(r=r.replace(/"([DE])(\d+)"/g,function(e,t,n){return"D"===t?a.push(n):"E"===t&&l.push(n),""})).split(/;(?:\s*;)*/g);for(n!==Ie&&(i=n.replace(/^\s*extends\s+(.+?)\s*$/g,"$1").split(/\s*,\s*/g)),o=0,s=a.length;o<s;++o){var c=U(Ae[a[o]]);a[o]=c.name}for(o=0,s=u.length-1;o<s;++o){var f=g(u[o]);u[o]=W(f.middle)}var d=u.pop();for(o=0,s=l.length;o<s;++o)l[o]=B(Ae[l[o]]);return new z(t,i,a,u,l,{tail:d})},G.prototype.getMembers=function(e,t,n){var r,i,o,s;for(this.owner.base&&this.owner.base.body.getMembers(e,t,n),r=0,o=this.fields.length;r<o;++r){var a=this.fields[r].getNames();for(i=0,s=a.length;i<s;++i)e[a[i]]=this.fields[r]}for(r=0,o=this.methods.length;r<o;++r){var l=this.methods[r];t[l.name]=l}for(r=0,o=this.innerClasses.length;r<o;++r){var u=this.innerClasses[r];n[u.name]=u}},G.prototype.toString=function(){function e(e){for(var t=0;e;)++t,e=e.scope;return t}var n="$this_"+e(this.owner),r=this.name,t="var "+n+" = this;\n",i="",o="",s={},a={},l={};this.getMembers(s,a,l);var u,c,f,d,h,p=ve;if(ve=function(e){var t=e.name;return"this"===t?e.callSign||!e.member?n+".$self":n:s.hasOwnProperty(t)?s[t].isStatic?r+"."+t:n+"."+t:l.hasOwnProperty(t)?n+"."+t:a.hasOwnProperty(t)?a[t].isStatic?r+"."+t:n+".$self."+t:p(e)},this.baseClassName?(u=p({name:this.baseClassName}),t+="var $super = { $upcast: "+n+" };\n",t+="function $superCstr(){"+u+".apply($super,arguments);if(!('$self' in $super)) $p.extendClassChain($super)}\n",o+=r+".$base = "+u+";\n"):t+="function $superCstr(){$p.extendClassChain("+n+")}\n",this.owner.base&&(i+="$p.extendStaticMembers("+r+", "+u+");\n"),this.owner.interfaces){var g,m=[];for(c=0,f=this.interfacesNames.length;c<f;++c)this.owner.interfaces[c]&&(g=p({name:this.interfacesNames[c]}),m.push(g),i+="$p.extendInterfaceMembers("+r+", "+g+");\n");o+=r+".$interfaces = ["+m.join(", ")+"];\n"}for(0<this.functions.length&&(t+=this.functions.join("\n")+"\n"),I(this.innerClasses),c=0,f=this.innerClasses.length;c<f;++c){var v=this.innerClasses[c];v.isStatic?(i+=r+"."+v.name+" = "+v+";\n",t+=n+"."+v.name+" = "+r+"."+v.name+";\n"):t+=n+"."+v.name+" = "+v+";\n"}for(c=0,f=this.fields.length;c<f;++c){var y=this.fields[c];if(y.isStatic)for(i+=r+"."+y.definitions.join(";\n"+r+".")+";\n",d=0,h=y.definitions.length;d<h;++d){var b=y.definitions[d].name,E=r+"."+b;t+="$p.defineProperty("+n+", '"+b+"', {get: function(){return "+E+"}, set: function(val){"+E+" = val}});\n"}else t+=n+"."+y.definitions.join(";\n"+n+".")+";\n"}var T={};for(c=0,f=this.methods.length;c<f;++c){var S=this.methods[c],w=T[S.name],A=S.name+"$"+S.params.params.length,C=!!S.params.methodArgsParam;w?A+="_"+ ++w:w=1,S.methodId=A,T[S.name]=w,S.isStatic?(i+=S,i+="$p.addMethod("+r+", '"+S.name+"', "+A+", "+C+");\n"):t+=S,t+="$p.addMethod("+n+", '"+S.name+"', "+A+", "+C+");\n"}t+=O(this.misc.tail),0<this.cstrs.length&&(t+=this.cstrs.join("\n")+"\n"),t+="function $constr() {\n";var x=[];for(c=0,f=this.cstrs.length;c<f;++c){var _=this.cstrs[c].params.params.length,N=!!this.cstrs[c].params.methodArgsParam;x.push("if(arguments.length "+(N?">=":"===")+" "+_+") { $constr_"+_+".apply("+n+", arguments); }")}return 0<x.length&&(t+=x.join(" else ")+" else "),t+="$superCstr();\n}\n",ve=p,"(function() {\nfunction "+r+"() {\n"+(t+="$constr.apply(null, arguments);\n")+"}\n"+i+o+"return "+r+";\n})()"},be=function(e,t,n,r){var i=e.substring(1,e.length-1);i=v(i=m(i),t);var o,s,a,l=[],u=[],c=[],f=[],d=(i=i.replace(/"([DEGH])(\d+)"/g,function(e,t,n){return"D"===t?l.push(n):"E"===t?u.push(n):"H"===t?f.push(n):c.push(n),""})).replace(/^(?:\s*;)+/,"").split(/;(?:\s*;)*/g);for(n!==Ie&&(o=n.replace(/^\s*extends\s+([A-Za-z_$][\w$]*\b(?:\s*\.\s*[A-Za-z_$][\w$]*\b)*)\s*$/g,"$1")),r!==Ie&&(s=r.replace(/^\s*implements\s+(.+?)\s*$/g,"$1").split(/\s*,\s*/g)),a=0;a<f.length;++a)f[a]=b(Ae[f[a]]);for(a=0;a<l.length;++a)l[a]=U(Ae[l[a]]);for(a=0;a<d.length-1;++a){var h=g(d[a]);d[a]=W(h.middle)}var p=d.pop();for(a=0;a<c.length;++a)c[a]=j(Ae[c[a]]);for(a=0;a<u.length;++a)u[a]=B(Ae[u[a]]);return new G(t,o,s,f,l,d,c,u,{tail:p})},q.prototype.toString=function(){return"var "+this.name+" = "+this.body+";\n$p."+this.name+" = "+this.name+";\n"},X.prototype.toString=function(){return"var "+this.name+" = "+this.body+";\n$p."+this.name+" = "+this.name+";\n"},Q.prototype.toString=function(){var t=o({},this.params.getNames()),n=ve;ve=function(e){return t.hasOwnProperty(e.name)?e.name:n(e)};var e=this.params.prependMethodArgs(this.body.toString()),r="function "+this.name+this.params+" "+e+"\n$p."+this.name+" = "+this.name+";\n"+this.name+" = "+this.name+".bind($p);";return ve=n,r},ee.prototype.toString=function(){return this.misc.prefix+this.argument.toString()},te.prototype.toString=function(){return this.misc.prefix+this.argument.toString()},ne.prototype.toString=function(){var e=this.misc.prefix;return this.argument!==Ie&&(e+=this.argument.toString()),e},re.prototype.toString=function(){return"case "+this.expr+":"},ie.prototype.toString=function(){return this.label},Se=function(e,t,n){var r=new RegExp(/\b(catch|for|if|switch|while|with)\s*"B(\d+)"|\b(do|else|finally|return|throw|try|break|continue)\b|("[ADEH](\d+)")|\b(case)\s+([^:]+):|\b([A-Za-z_$][\w$]*\s*:)|(;)/g),i=[];e=J(e);for(var o,s,a=0;null!==(o=r.exec(e));){if(o[1]!==Ie){var l=e.lastIndexOf('"B',r.lastIndex),u=e.substring(a,l);"for"===o[1]?i.push(new ee(M(Ae[o[2]]),{prefix:u})):"catch"===o[1]?i.push(new te(p(Ae[o[2]]),{prefix:u})):i.push(new ne(o[1],we(Ae[o[2]]),{prefix:u}))}else if(o[3]!==Ie)i.push(new ne(o[3],Ie,{prefix:e.substring(a,r.lastIndex)}));else if(o[4]!==Ie){if(0!==O(s=e.substring(a,r.lastIndex-o[4].length)).length)continue;i.push(s);var c=o[4].charAt(1),f=o[5];"D"===c?i.push(t(Ae[f])):"E"===c?i.push(n(Ae[f])):"H"===c?i.push(b(Ae[f])):i.push(Te(Ae[f]))}else if(o[6]!==Ie)i.push(new re(we(O(o[7]))));else if(o[8]!==Ie){if(0!==O(s=e.substring(a,r.lastIndex-o[8].length)).length)continue;i.push(new ie(e.substring(a,r.lastIndex)))}else{var d=g(e.substring(a,r.lastIndex-1));i.push(d.left),i.push(L(d.middle)),i.push(d.right+";")}a=r.lastIndex}var h=g(e.substring(a));return i.push(h.left),""!==h.middle&&(i.push(L(h.middle)),i.push(";"+h.right)),i},se.prototype.toString=function(){var t=oe(this.statements),n=ve;r(t)||(ve=function(e){return t.hasOwnProperty(e.name)?e.name:n(e)});var e="{\n"+this.statements.join("")+"\n}";return ve=n,e},Te=function(e){var t=g(e.substring(1,e.length-1));return new se(Se(t.middle))},ae.prototype.toString=function(){for(var e,t=[],n=[],r=0,i=this.statements.length;r<i;++r)(e=this.statements[r])instanceof X||e instanceof q?t.push(e):n.push(e);I(t);var o=oe(this.statements);ve=function(e){var t=e.name;return o.hasOwnProperty(t)?t:fe.hasOwnProperty(t)||$e.hasOwnProperty(t)||Fe.hasOwnProperty(t)?"$p."+t:t};var s="// this code was autogenerated from PJS\n(function($p) {\n"+t.join("")+"\n"+n.join("")+"\n})";return ve=null,s};var ke=function(){var e=m(Ae[0]);return e=e.replace(/\bimport\s+[^;]+;/g,""),new ae(Se(e,Z,Y))}();le(ke),ue(ke);var Pe=ke.toString();return n(Pe=(Pe=Pe.replace(/\s*\n(?:[\t ]*\n)+/g,"\n\n")).replace(/__x([0-9A-F]{4})/g,function(e,t){return String.fromCharCode(parseInt(t,16))}),he)}function i(e,t){var n=new RegExp(/\/\*\s*@pjs\s+((?:[^\*]|\*+[^\*\/])*)\*\//g).exec(e);if(n&&2===n.length)for(var r=[],i=n.splice(1,2)[0].replace(/\{([\s\S]*?)\}/g,function(e,t){return r.push(t),"{"+(r.length-1)+"}"}).replace("\n","").replace("\r","").split(";"),o=function(e){return e.replace(/^\s*["']?/,"").replace(/["']?\s*$/,"")},s=0,a=i.length;s<a;s++){var l=i[s].split("=");if(l&&2===l.length){var u=o(l[0]),c=o(l[1]),f=[];if("preload"===u)for(var d=0,h=(f=c.split(",")).length;d<h;d++){var p=o(f[d]);t.imageCache.add(p)}else if("font"===u)for(var g=0,m=(f=c.split(",")).length;g<m;g++){var v=o(f[g]),y=/^\{(\d*?)\}$/.exec(v);PFont.preloading.add(y?JSON.parse("{"+r[y[1]]+"}"):v)}else"pauseOnBlur"===u?t.options.pauseOnBlur="true"===c:"globalKeyEvents"===u?t.options.globalKeyEvents="true"===c:"param-"===u.substring(0,6)?t.params[u.substring(6)]=c:t.options[u]=c}}return e}var Ie,Fe=e.defaultScope,$e=Fe.PConstants,a=e.aFunctions,t=e.Browser.document;s.compile=function(e){var t=new s.Sketch,n=r(i(e,t));return t.sourceCode=n,t};var n=function(n){var r={},t=!1;return r.BufferMax=200,r.wrapper=n.createElement("div"),r.wrapper.setAttribute("style","opacity:.75;display:block;position:fixed;bottom:0px;left:0px;right:0px;height:50px;background-color:#aaa"),r.dragger=n.createElement("div"),r.dragger.setAttribute("style","display:block;border:3px black raised;cursor:n-resize;position:absolute;top:0px;left:0px;right:0px;height:5px;background-color:#333"),r.closer=n.createElement("div"),r.closer.onmouseover=function(){r.closer.style.setProperty("background-color","#ccc")},r.closer.onmouseout=function(){r.closer.style.setProperty("background-color","#ddd")},r.closer.innerHTML="&#10006;",r.closer.setAttribute("style","opacity:.5;display:block;border:3px black raised;position:absolute;top:10px;right:30px;height:20px;width:20px;background-color:#ddd;color:#000;line-height:20px;text-align:center;cursor:pointer;"),r.javaconsole=n.createElement("div"),r.javaconsole.setAttribute("style","overflow-x: auto;display:block;position:absolute;
11left:10px;right:0px;bottom:5px;top:10px;overflow-y:scroll;height:40px;"),r.wrapper.appendChild(r.dragger),r.wrapper.appendChild(r.javaconsole),r.wrapper.appendChild(r.closer),r.dragger.onmousedown=function(e){r.divheight=r.wrapper.style.height,n.selection?n.selection.empty():window.getSelection().removeAllRanges();var t=e.screenY;window.onmousemove=function(e){r.wrapper.style.height=parseFloat(r.divheight)+(t-e.screenY)+"px",r.javaconsole.style.height=parseFloat(r.divheight)+(t-e.screenY)-10+"px"},window.onmouseup=function(e){n.selection?n.selection.empty():window.getSelection().removeAllRanges(),r.wrapper.style.height=parseFloat(r.divheight)+(t-e.screenY)+"px",r.javaconsole.style.height=parseFloat(r.divheight)+(t-e.screenY)-10+"px",window.onmousemove=null,window.onmouseup=null}},r.BufferArray=[],r.print=r.log=function(e){r.BufferArray[r.BufferArray.length-1]?r.BufferArray[r.BufferArray.length-1]+=e+"":r.BufferArray.push(e),r.javaconsole.innerHTML=r.BufferArray.join(""),"hidden"===r.wrapper.style.visibility&&(r.wrapper.style.visibility="visible"),"hidden"===r.wrapper.style.visibility&&(r.wrapper.style.visibility="visible")},r.println=function(e){t||n.body.appendChild(r.wrapper),r.print(e),r.BufferArray.push("<br/>"),r.javaconsole.innerHTML=r.BufferArray.join(""),"hidden"===r.wrapper.style.visibility&&(r.wrapper.style.visibility="visible"),r.BufferArray.length>r.BufferMax?r.BufferArray.splice(0,1):r.javaconsole.scrollTop=r.javaconsole.scrollHeight,"hidden"===r.wrapper.style.visibility&&(r.wrapper.style.visibility="visible")},r.showconsole=function(){r.wrapper.style.visibility="visible"},r.hideconsole=function(){r.wrapper.style.visibility="hidden"},r.closer.onclick=function(){r.hideconsole()},r.hideconsole(),r};return s.logger=new n(t),s}},{}],26:[function(t,n){n.exports=function(t,gr){function n(e,t){return e in Er?Er[e]:"function"==typeof Er[t]?Er[t]:function(e){if(e instanceof Array)return e;if("number"==typeof e){var t=[];return t.length=e,t}}}var mr=t.defaultScope,vr=t.extend,r=t.Browser,yr=r.ajax,br=r.navigator,Er=r.window,Tr=(Er.XMLHttpRequest,r.document),Sr=t.noop,wr=mr.PConstants;PFont=mr.PFont,PShapeSVG=mr.PShapeSVG,PVector=mr.PVector,Char=Character=mr.Char,ObjectIterator=mr.ObjectIterator,XMLElement=mr.XMLElement,XML=mr.XML;var Ar=Er.HTMLCanvasElement,Cr=Er.HTMLImageElement,xr=Er.localStorage;"document"in this&&this.document;Tr.head||(Tr.head=Tr.getElementsByTagName("head")[0]);var _r=n("Float32Array","WebGLFloatArray"),Nr=n("Int32Array","WebGLIntArray"),Or=n("Uint16Array","WebGLUnsignedShortArray"),Dr=n("Uint8Array","WebGLUnsignedByteArray");if(9<=Tr.documentMode&&!Tr.doctype)throw"The doctype directive is missing. The recommended doctype in Internet Explorer is the HTML5 doctype: <!DOCTYPE html>";var i=[],o={},Lr=function(e){e.externals.canvas.id!==gr&&e.externals.canvas.id.length||(e.externals.canvas.id="__processing"+i.length),o[e.externals.canvas.id]=i.length,i.push(e)},Rr=function(e){i.splice(o[e],1),delete o[e]},kr=this.Processing=function(t,n,r){function i(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n),J.push({elem:e,type:t,fn:n})}function o(e){var t=e.elem,n=e.type,r=e.fn;t.removeEventListener?t.removeEventListener(n,r,!1):t.detachEvent&&t.detachEvent("on"+n,r)}function s(e){return Array.prototype.slice.call(e,1)}function m(e,t,n,r){var i=Nt.locations[e];i===gr&&(i=te.getUniformLocation(t,n),Nt.locations[e]=i),null!==i&&(4===r.length?te.uniform4fv(i,r):3===r.length?te.uniform3fv(i,r):2===r.length?te.uniform2fv(i,r):te.uniform1f(i,r))}function v(e,t,n,r){var i=Nt.locations[e];i===gr&&(i=te.getUniformLocation(t,n),Nt.locations[e]=i),null!==i&&(4===r.length?te.uniform4iv(i,r):3===r.length?te.uniform3iv(i,r):2===r.length?te.uniform2iv(i,r):te.uniform1i(i,r))}function h(e,t,n,r,i){var o=Nt.locations[e];o===gr&&(o=te.getUniformLocation(t,n),Nt.locations[e]=o),-1!==o&&(16===i.length?te.uniformMatrix4fv(o,r,i):9===i.length?te.uniformMatrix3fv(o,r,i):te.uniformMatrix2fv(o,r,i))}function d(e,t,n,r,i){var o=Nt.attributes[e];o===gr&&(o=te.getAttribLocation(t,n),Nt.attributes[e]=o),-1!==o&&(te.bindBuffer(te.ARRAY_BUFFER,i),te.vertexAttribPointer(o,r,te.FLOAT,!1,0,0),te.enableVertexAttribArray(o))}
11function c(e,t,n){var r=Nt.attributes[e];r===gr&&(r=te.getAttribLocation(t,n),Nt.attributes[e]=r),-1!==r&&te.disableVertexAttribArray(r)}function y(e,t,n,r){var i,o,s,a;if(St===wr.HSB){var l=ee.color.toRGB(e,t,n);i=l[0],o=l[1],s=l[2]}else i=Math.round(e/vt*255),o=Math.round(t/yt*255),s=Math.round(n/bt*255);return i=255<(i=i<0?0:i)?255:i,o=255<(o=o<0?0:o)?255:o,s=255<(s=s<0?0:s)?255:s,(a=255<(a=(a=Math.round(r/mt*255))<0?0:a)?255:a)<<24&wr.ALPHA_MASK|i<<16&wr.RED_MASK|o<<8&wr.GREEN_MASK|s&wr.BLUE_MASK}function a(e,t){var n;return e&wr.ALPHA_MASK?(n=(n=255<(n=Math.round(t/mt*255))?255:n)<0?0:n,e-(e&wr.ALPHA_MASK)+(n<<24&wr.ALPHA_MASK)):St===wr.RGB?y(e,e,e,t):St===wr.HSB?y(0,0,e/vt*bt,t):void 0}function l(e){if(e<=vt&&0<=e){if(St===wr.RGB)return y(e,e,e,mt);if(St===wr.HSB)return y(0,0,e/vt*bt,mt)}if(e)return 2147483647<e&&(e-=4294967296),e}function T(e){var t,n,r;t=((e&wr.RED_MASK)>>>16)/255,n=((e&wr.GREEN_MASK)>>>8)/255,r=(e&wr.BLUE_MASK)/255;var i,o=ee.max(ee.max(t,n),r),s=ee.min(ee.min(t,n),r);return s===o?[0,0,o*bt]:(i=t===o?(n-r)/(o-s):n===o?2+(r-t)/(o-s):4+(t-n)/(o-s),(i/=6)<0?i+=1:1<i&&(i-=1),[i*vt,(o-s)/o*yt,o*bt])}function w(){te.save()}function A(){te.restore(),je=Xe=!0}function u(){var e=(Date.now()-xt)/1e3,t=++_t/e;.5<e&&(xt=Date.now(),_t=0,ee.__frameRate=t),ee.frameCount++}function f(e){var t=parseInt("0x"+e,16);return 2147483647<t&&(t-=4294967296),t}function p(e){return"number"==typeof e?0!==e:"boolean"==typeof e?e:"string"==typeof e?"true"===e.toLowerCase():e instanceof Char?49===e.code||84===e.code||116===e.code:void 0}function g(e){return"number"==typeof e?e:"boolean"==typeof e?e?1:0:"string"==typeof e?parseFloat(e):e instanceof Char?e.code:void 0}function b(e,t){return"number"==typeof e?4294967295&e:"boolean"==typeof e?e?1:0:"string"==typeof e?4294967295&parseInt(e,t||10):e instanceof Char?e.code:void 0}function C(){Ve&&(je&&(te.fillStyle=ee.color.toString(Ke),je=!1),te.fill())}function x(){ze&&(Xe&&(te.strokeStyle=ee.color.toString(qe),Xe=!1),te.stroke())}function E(){C(),x(),te.closePath()}function S(e,t,n){var r=ir.shift();r===gr&&((r={}).canvas=Tr.createElement("canvas"),r.context=r.canvas.getContext("2d")),ir.push(r);var i=r.canvas,o=r.context,s=t||e.width,a=n||e.height;return i.width=s,i.height=a,e?"data"in e?o.putImageData(e,0,0):(o.clearRect(0,0,s,a),o.drawImage(e,0,0,s,a)):o.clearRect(0,0,s,a),r}function _(e){return{getLength:(t=e,function(){if(t.isRemote)throw"Image is loaded remotely. Cannot get length.";return t.imageData.data.length?t.imageData.data.length/4:0}),getPixel:(r=e,function(e){var t=4*e,n=r.imageData.data;if(r.isRemote)throw"Image is loaded remotely. Cannot get pixels.";return n[t+3]<<24&wr.ALPHA_MASK|n[t]<<16&wr.RED_MASK|n[t+1]<<8&wr.GREEN_MASK|n[t+2]&wr.BLUE_MASK}),setPixel:(i=e,function(e,t){var n=4*e,r=i.imageData.data;if(i.isRemote)throw"Image is loaded remotely. Cannot set pixel.";r[n+0]=(t&wr.RED_MASK)>>>16,r[n+1]=(t&wr.GREEN_MASK)>>>8,r[n+2]=t&wr.BLUE_MASK,r[n+3]=(t&wr.ALPHA_MASK)>>>24,i.__isDirty=!0}),toArray:(o=e,function(){var e=[],t=o.imageData.data,n=o.width*o.height;if(o.isRemote)throw"Image is loaded remotely. Cannot get pixels.";for(var r=0,i=0;r<n;r++,i+=4)e.push(t[i+3]<<24&wr.ALPHA_MASK|t[i]<<16&wr.RED_MASK|t[i+1]<<8&wr.GREEN_MASK|t[i+2]&wr.BLUE_MASK);return e}),set:(s=e,function(e){var t,n,r;if(this.isRemote)throw"Image is loaded remotely. Cannot set pixels.";n=s.imageData.data;for(var i=0,o=e.length;i<o;i++)r=e[i],n[0+(t=4*i)]=(r&wr.RED_MASK)>>>16,n[t+1]=(r&wr.GREEN_MASK)>>>8,n[t+2]=r&wr.BLUE_MASK,n[t+3]=(r&wr.ALPHA_MASK)>>>24;s.__isDirty=!0})};var s,o,i,r,t}function N(e,t){var n;if(e>=ee.width||e<0||t<0||t>=ee.height)return 0;if(Vt){var r=4*((0|e)+ee.width*(0|t));return(n=ee.imageData.data)[r+3]<<24&wr.ALPHA_MASK|n[r]<<16&wr.RED_MASK|n[r+1]<<8&wr.GREEN_MASK|n[r+2]&wr.BLUE_MASK}return(n=ee.toImageData(0|e,0|t,1,1).data)[3]<<24&wr.ALPHA_MASK|n[0]<<16&wr.RED_MASK|n[1]<<8&wr.GREEN_MASK|n[2]&wr.BLUE_MASK}function O(e,t,n){if(n.isRemote)throw"Image is loaded remotely. Cannot get x,y.";var r=t*n.width*4+4*e,i=n.imageData.data;return i[r+3]<<24&wr.ALPHA_MASK|i[r]<<16&wr.RED_MASK|i[r+1]<<8&wr.GREEN_MASK|i[r+2]&wr.BLUE_MASK}function D(e,t,n,r){var i=new or(n,r,wr.ARGB);return i.fromImageData(ee.toImageData(e,t,n,r)),i}function L(e,t,n,r,i){if(i.isRemote)throw"Image is loaded remotely. Cannot get x,y,w,h.";for(var o=new or(n,r,wr.ARGB),s=o.imageData.data,a=i.width,l=i.height,u=i.imageData.data,c=Math.max(0,-t),f=Math.max(0,-e),d=Math.min(r,l-t),h=Math.min(n,a-e),p=c;p<d;++p)for(var g=4*((t+p)*a+(e+f)),m=4*(p*n+f),v=f;v<h;++v)s[m++]=u[g++],s[m++]=u[g++],s[m++]=u[g++],s[m++]=u[g++];return o.__isDirty=!0,o}function R(){Vt&&(te=Le,Vt=!1,ee.updatePixels())}function k(){function e(e,t){function n(){R(),te[t].apply(te,arguments)}e[t]=n}function t(e,t){function n(){return R(),te[t]}function r(e){R(),te[t]=e}ee.defineProperty(e,t,{get:n,set:r})}for(var n in te)"function"==typeof te[n]?e(this,n):t(this,n)}function P(){Vt||(ee.loadPixels(),null===Ut&&(Le=te,Ut=new k),Vt=!0,te=Ut,Re=0)}function M(e,t,n){e<ee.width&&0<=e&&0<=t&&t<ee.height&&(P(),ee.pixels.setPixel((0|e)+ee.width*(0|t),n),++Re>Wt&&R())}function I(e,t,n,r){if(r.isRemote)throw"Image is loaded remotely. Cannot set x,y.";var i=ee.color.toArray(n),o=t*r.width*4+4*e,s=r.imageData.data;s[o]=i[0],s[o+1]=i[1],s[o+2]=i[2],s[o+3]=i[3]}function F(e){return e instanceof String?e:"number"==typeof e?e===(0|e)?e.toString():ee.nf(e,0,3):null===e||e===gr?"":e.toString()}function $(e,t,n,r){var i,o;e.indexOf("\n")<0?(i=[e],o=1):o=(i=e.split(/\r?\n/g)).length;var s=0;kt===wr.TOP?s=Ft+$t:kt===wr.CENTER?s=Ft/2-(o-1)*Bt/2:kt===wr.BOTTOM&&(s=-($t+(o-1)*Bt));for(var a=0;a<o;++a){var l=i[a];re.text$line(l,t,n+s,r,Rt),s+=Bt}}function B(e,t,n,r,i,o){if(0!==e.length&&0!==r&&0!==i&&!(i<It)){for(var s=-1,a=0,l=0,u=[],c=0,f=e.length;c<f;c++){var d=e[c],h=" "===d,p=Ht.measureTextWidth(d);if("\n"!==d&&l+p<=r)h&&(s=c),l+=p;else{if(s+1===a){if(!(0<c))return;s=c}"\n"===d?(u.push({text:e.substring(a,c),width:l}),a=c+1):(u.push({text:e.substring(a,s+1),width:l}),a=s+1),l=0,c=a-1}}a<f&&u.push({text:e.substring(a),width:l});var g=1,m=Ft;Rt===wr.CENTER?g=r/2:Rt===wr.RIGHT&&(g=r);var v,y,b,E=u.length,T=Math.min(E,Math.floor(i/Bt));for(kt===wr.TOP?m=Ft+$t:kt===wr.CENTER?m=i/2-Bt*(T/2-1):kt===wr.BOTTOM&&(m=$t+Bt),v=0;v<E&&!(i-$t<m+(b=v*Bt));v++)y=u[v],re.text$line(y.text,t+g,n+m+b,o,Rt)}}function H(e){for(var t in re="3D"===e?new In:"2D"===e?new Mn:new Fn,Fn.prototype)Fn.prototype.hasOwnProperty(t)&&t.indexOf("$")<0&&(ee[t]=re[t]);
11re.$init()}function U(e){return function(){return H("2D"),re[e].apply(this,arguments)}}function V(e){var t=e.which||e.keyCode;switch(t){case 13:return 10;case 91:case 93:case 224:return 157;case 57392:return 17;case 46:return 127;case 45:return 155}return t}function W(e){var t=e.which||e.keyCode,n=e.shiftKey||e.ctrlKey||e.altKey||e.metaKey;switch(t){case 13:t=n?13:10;break;case 8:t=n?127:8}return new Char(t)}function K(e){return"function"==typeof e.preventDefault?e.preventDefault():"function"==typeof e.stopPropagation&&e.stopPropagation(),!1}function j(){var e;for(e in Kt)if(Kt.hasOwnProperty(e))return void(ee.__keyPressed=!0);ee.__keyPressed=!1}function z(){ee.__keyPressed=!1,Kt=[],jt=null}function G(e,t){Kt[e]=t,jt=null,ee.key=t,ee.keyCode=e,ee.keyPressed(),ee.keyCode=0,ee.keyTyped(),j()}function q(e){var t=V(e);if(t!==wr.DELETE){if(!(zt.indexOf(t)<0)){var n=new Char(wr.CODED);return ee.key=n,ee.keyCode=t,Kt[t]=n,ee.keyPressed(),jt=null,j(),K(e)}jt=t}else G(t,new Char(127))}function X(e){if(null!==jt)return G(jt,W(e)),K(e)}function Y(e){var t=V(e),n=Kt[t];n!==gr&&(ee.key=n,ee.keyCode=t,ee.keyReleased(),delete Kt[t],j())}if(!(this instanceof kr))throw"called Processing constructor as if it were a function: missing 'new'.";var Q={},Z=t===gr&&n===gr;if(!("getContext"in(Q=Z?Tr.createElement("canvas"):"string"==typeof t?Tr.getElementById(t):t)))throw"called Processing constructor without passing canvas element reference or id.";var J=[],ee=this;ee.Char=ee.Character=Char,vr.withCommonFunctions(ee),vr.withMath(ee),vr.withProxyFunctions(ee,s),vr.withTouch(ee,Q,i,Tr,wr),r&&Object.keys(r).forEach(function(e){ee[e]=r[e]}),ee.externals={canvas:Q,context:gr,sketch:gr,window:Er},ee.name="Processing.js Instance",ee.use3DContext=!1,ee.focused=!1,ee.breakShape=!1,ee.glyphTable={},ee.pmouseX=0,ee.pmouseY=0,ee.mouseX=0,ee.mouseY=0,ee.mouseButton=0,ee.mouseScroll=0,ee.mouseClicked=gr,ee.mouseDragged=gr,ee.mouseMoved=gr,ee.mousePressed=gr,ee.mouseReleased=gr,ee.mouseScrolled=gr,ee.mouseOver=gr,ee.mouseOut=gr,ee.touchStart=gr,ee.touchEnd=gr,ee.touchMove=gr,ee.touchCancel=gr,ee.key=gr,ee.keyCode=gr,ee.keyPressed=Sr,ee.keyReleased=Sr,ee.keyTyped=Sr,ee.draw=gr,ee.setup=gr,ee.__mousePressed=!1,ee.__keyPressed=!1,ee.__frameRate=60,ee.frameCount=0,ee.width=100,ee.height=100;var te,ne,re,ie,oe,se,ae,le,ue,ce,fe,de,he,pe,ge,me,ve,ye,be,Ee,Te,Se,we,Ae,Ce,xe,_e,Ne,Oe,De,Le,Re,ke,Pe,Me,Ie,Fe,$e,Be,He,Ue,Ve=!0,We=[1,1,1,1],Ke=4294967295,je=!0,ze=!0,Ge=[0,0,0,1],qe=4278190080,Xe=!0,Ye=1,Qe=!1,Ze=!1,Je=!0,et=0,tt=wr.CORNER,nt=wr.CENTER,rt=0,it=0,ot=0,st=wr.NORMAL_MODE_AUTO,at=60,lt=1e3/at,ut=(wr.ARROW,Q.style.cursor),ct=wr.POLYGON,ft=0,dt=20,ht=!1,pt=-3355444,gt=20,mt=255,vt=255,yt=255,bt=255,Et=0,Tt=0,St=wr.RGB,wt=null,At=null,Ct=Date.now(),xt=Ct,_t=0,Nt={attributes:{},locations:{}},Ot={width:0,height:0},Dt=wr.IMAGE,Lt=!1,Rt=wr.LEFT,kt=wr.BASELINE,Pt=wr.MODEL,Mt="Arial",It=12,Ft=9,$t=2,Bt=14,Ht=PFont.get(Mt,It),Ut=null,Vt=!1,Wt=1e3,Kt=[],jt=null,zt=[wr.SHIFT,wr.CONTROL,wr.ALT,wr.CAPSLK,wr.PGUP,wr.PGDN,wr.END,wr.HOME,wr.LEFT,wr.UP,wr.RIGHT,wr.DOWN,wr.NUMLK,wr.INSERT,wr.F1,wr.F2,wr.F3,wr.F4,wr.F5,wr.F6,wr.F7,wr.F8,wr.F9,wr.F10,wr.F11,wr.F12,wr.META],Gt=0,qt=0,Xt=0,Yt=[],Qt=[],Zt=[],Jt=new _r(wr.SINCOS_LENGTH),en=new _r(wr.SINCOS_LENGTH),tn=!1,nn=Math.PI/180*60,rn=ee.width/2,on=ee.height/2,sn=on/Math.tan(nn/2),an=sn/10,ln=10*sn,un=ee.width/ee.height,cn=[],fn=[],dn=0,hn=!1,pn=!1,gn=!0,mn=wr.CORNER,vn=[],yn=new _r([.5,.5,-.5,.5,-.5,-.5,-.5,-.5,-.5,-.5,-.5,-.5,-.5,.5,-.5,.5,.5,-.5,.5,.5,.5,-.5,.5,.5,-.5,-.5,.5,-.5,-.5,.5,.5,-.5,.5,.5,.5,.5,.5,.5,-.5,.5,.5,.5,.5,-.5,.5,.5,-.5,.5,.5,-.5,-.5,.5,.5,-.5,.5,-.5,-.5,.5,-.5,.5,-.5,-.5,.5,-.5,-.5,.5,-.5,-.5,-.5,.5,-.5,-.5,-.5,-.5,-.5,-.5,-.5,.5,-.5,.5,.5,-.5,.5,.5,-.5,.5,-.5,-.5,-.5,-.5,.5,.5,.5,.5,.5,-.5,-.5,.5,-.5,-.5,.5,-.5,-.5,.5,.5,.5,.5,.5]),bn=new _r([.5,.5,.5,.5,-.5,.5,.5,.5,-.5,.5,-.5,-.5,-.5,.5,-.5,-.5,-.5,-.5,-.5,.5,.5,-.5,-.5,.5,.5,.5,.5,.5,.5,-.5,.5,.5,-.5,-.5,.5,-.5,-.5,.5,-.5,-.5,.5,.5,-.5,.5,.5,.5,.5,.5,.5,-.5,.5,.5,-.5,-.5,.5,-.5,-.5,-.5,-.5,-.5,-.5,-.5,-.5,-.5,-.5,.5,-.5,-.5,.5,.5,-.5,.5]),En=new _r([0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0]),Tn=new _r([0,0,0,0,1,0,1,1,0,1,0,0]),Sn=new _r([0,0,1,0,0,1,0,0,1,0,0,1]),wn="varying vec4 vFrontColor;attribute vec3 aVertex;attribute vec4 aColor;uniform mat4 uView;uniform mat4 uProjection;uniform float uPointSize;void main(void) {  vFrontColor = aColor;  gl_PointSize = uPointSize;  gl_Position = uProjection * uView * vec4(aVertex, 1.0);}",An="#ifdef GL_ES\nprecision highp float;\n#endif\nvarying vec4 vFrontColor;uniform bool uSmooth;void main(void){  if(uSmooth == true){    float dist = distance(gl_PointCoord, vec2(0.5));    if(dist > 0.5){      discard;    }  }  gl_FragColor = vFrontColor;}",Cn="varying vec4 vFrontColor;attribute vec3 aVertex;attribute vec2 aTextureCoord;uniform vec4 uColor;uniform mat4 uModel;uniform mat4 uView;uniform mat4 uProjection;uniform float uPointSize;varying vec2 vTextureCoord;void main(void) {  gl_PointSize = uPointSize;  vFrontColor = uColor;  gl_Position = uProjection * uView * uModel * vec4(aVertex, 1.0);  vTextureCoord = aTextureCoord;}",xn="#ifdef GL_ES\nprecision highp float;\n#endif\nvarying vec4 vFrontColor;varying vec2 vTextureCoord;uniform sampler2D uSampler;uniform int uIsDrawingText;uniform bool uSmooth;void main(void){  if(uSmooth == true){    float dist = distance(gl_PointCoord, vec2(0.5));    if(dist > 0.5){      discard;    }  }  if(uIsDrawingText == 1){    float alpha = texture2D(uSampler, vTextureCoord).a;
11    gl_FragColor = vec4(vFrontColor.rgb * alpha, alpha);  }  else{    gl_FragColor = vFrontColor;  }}",_n="varying vec4 vFrontColor;attribute vec3 aVertex;attribute vec3 aNormal;attribute vec4 aColor;attribute vec2 aTexture;varying   vec2 vTexture;uniform vec4 uColor;uniform bool uUsingMat;uniform vec3 uSpecular;uniform vec3 uMaterialEmissive;uniform vec3 uMaterialAmbient;uniform vec3 uMaterialSpecular;uniform float uShininess;uniform mat4 uModel;uniform mat4 uView;uniform mat4 uProjection;uniform mat4 uNormalTransform;uniform int uLightCount;uniform vec3 uFalloff;struct Light {  int type;  vec3 color;  vec3 position;  vec3 direction;  float angle;  vec3 halfVector;  float concentration;};uniform Light uLights0;uniform Light uLights1;uniform Light uLights2;uniform Light uLights3;uniform Light uLights4;uniform Light uLights5;uniform Light uLights6;uniform Light uLights7;Light getLight(int index){  if(index == 0) return uLights0;  if(index == 1) return uLights1;  if(index == 2) return uLights2;  if(index == 3) return uLights3;  if(index == 4) return uLights4;  if(index == 5) return uLights5;  if(index == 6) return uLights6;  return uLights7;}void AmbientLight( inout vec3 totalAmbient, in vec3 ecPos, in Light light ) {  float d = length( light.position - ecPos );  float attenuation = 1.0 / ( uFalloff[0] + ( uFalloff[1] * d ) + ( uFalloff[2] * d * d ));  totalAmbient += light.color * attenuation;}void DirectionalLight( inout vec3 col, inout vec3 spec, in vec3 vertNormal, in vec3 ecPos, in Light light ) {  float powerFactor = 0.0;  float nDotVP = max(0.0, dot( vertNormal, normalize(-light.position) ));  float nDotVH = max(0.0, dot( vertNormal, normalize(-light.position-normalize(ecPos) )));  if( nDotVP != 0.0 ){    powerFactor = pow( nDotVH, uShininess );  }  col += light.color * nDotVP;  spec += uSpecular * powerFactor;}void PointLight( inout vec3 col, inout vec3 spec, in vec3 vertNormal, in vec3 ecPos, in Light light ) {  float powerFactor;   vec3 VP = light.position - ecPos;  float d = length( VP );   VP = normalize( VP );  float attenuation = 1.0 / ( uFalloff[0] + ( uFalloff[1] * d ) + ( uFalloff[2] * d * d ));  float nDotVP = max( 0.0, dot( vertNormal, VP ));  vec3 halfVector = normalize( VP - normalize(ecPos) );  float nDotHV = max( 0.0, dot( vertNormal, halfVector ));  if( nDotVP == 0.0 ) {    powerFactor = 0.0;  }  else {    powerFactor = pow( nDotHV, uShininess );  }  spec += uSpecular * powerFactor * attenuation;  col += light.color * nDotVP * attenuation;}void SpotLight( inout vec3 col, inout vec3 spec, in vec3 vertNormal, in vec3 ecPos, in Light light ) {  float spotAttenuation;  float powerFactor = 0.0;  vec3 VP = light.position - ecPos;  vec3 ldir = normalize( -light.direction );  float d = length( VP );  VP = normalize( VP );  float attenuation = 1.0 / ( uFalloff[0] + ( uFalloff[1] * d ) + ( uFalloff[2] * d * d ) );  float spotDot = dot( VP, ldir );"+(/Windows/.test(br.userAgent)?"  spotAttenuation = 1.0; ":"  if( spotDot > cos( light.angle ) ) {    spotAttenuation = pow( spotDot, light.concentration );  }  else{    spotAttenuation = 0.0;  }  attenuation *= spotAttenuation;"
12)+"  float nDotVP = max( 0.0, dot( vertNormal, VP ) );  vec3 halfVector = normalize( VP - normalize(ecPos) );  float nDotHV = max( 0.0, dot( vertNormal, halfVector ) );  if( nDotVP != 0.0 ) {    powerFactor = pow( nDotHV, uShininess );  }  spec += uSpecular * powerFactor * attenuation;  col += light.color * nDotVP * attenuation;}void main(void) {  vec3 finalAmbient = vec3( 0.0 );  vec3 finalDiffuse = vec3( 0.0 );  vec3 finalSpecular = vec3( 0.0 );  vec4 col = uColor;  if ( uColor[0] == -1.0 ){    col = aColor;  }  vec3 norm = normalize(vec3( uNormalTransform * vec4( aNormal, 0.0 ) ));  vec4 ecPos4 = uView * uModel * vec4(aVertex, 1.0);  vec3 ecPos = (vec3(ecPos4))/ecPos4.w;  if( uLightCount == 0 ) {    vFrontColor = col + vec4(uMaterialSpecular, 1.0);  }  else {    for( int i = 0; i < 8; i++ ) {      Light l = getLight(i);      if( i >= uLightCount ){        break;      }      if( l.type == 0 ) {        AmbientLight( finalAmbient, ecPos, l );      }      else if( l.type == 1 ) {        DirectionalLight( finalDiffuse, finalSpecular, norm, ecPos, l );      }      else if( l.type == 2 ) {        PointLight( finalDiffuse, finalSpecular, norm, ecPos, l );      }      else {        SpotLight( finalDiffuse, finalSpecular, norm, ecPos, l );      }    }   if( uUsingMat == false ) {     vFrontColor = vec4(       vec3( col ) * finalAmbient +       vec3( col ) * finalDiffuse +       vec3( col ) * finalSpecular,       col[3] );   }   else{     vFrontColor = vec4(        uMaterialEmissive +        (vec3(col) * uMaterialAmbient * finalAmbient ) +        (vec3(col) * finalDiffuse) +        (uMaterialSpecular * finalSpecular),        col[3] );    }  }  vTexture.xy = aTexture.xy;  gl_Position = uProjection * uView * uModel * vec4( aVertex, 1.0 );}",Nn="#ifdef GL_ES\nprecision highp float;\n#endif\nvarying vec4 vFrontColor;uniform sampler2D uSampler;uniform bool uUsingTexture;varying vec2 vTexture;void main(void){  if( uUsingTexture ){    gl_FragColor = vec4(texture2D(uSampler, vTexture.xy)) * vFrontColor;  }  else{    gl_FragColor = vFrontColor;  }}",On=function(e,t,n){var r=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(r,t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw e.getShaderInfoLog(r);var i=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(i,n),e.compileShader(i),!e.getShaderParameter(i,e.COMPILE_STATUS))throw e.getShaderInfoLog(i);var o=e.createProgram();if(e.attachShader(o,r),e.attachShader(o,i),e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw"Error linking shaders.";return o},Dn=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},Ln=Dn,Rn=function(e,t,n,r,i){return{x:e,y:t,w:i?n:n-e,h:i?r:r-t}},kn=function(e,t,n,r){return{x:e-n/2,y:t-r/2,w:n,h:r}},Pn=function(){},Mn=function(){},In=function(){},Fn=function(){};Mn.prototype=new Pn,Mn.prototype.constructor=Mn,In.prototype=new Pn,In.prototype.constructor=In,Fn.prototype=new Pn,Fn.prototype.constructor=Fn,Pn.prototype.a3DOnlyFunction=Sr,ee.shape=function(e,t,n,r,i){1<=arguments.length&&null!==e&&e.isVisible()&&(ee.pushMatrix(),mn===wr.CENTER?5===arguments.length?(ee.translate(t-r/2,n-i/2),ee.scale(r/e.getWidth(),i/e.getHeight())):3===arguments.length?ee.translate(t-e.getWidth()/2,-e.getHeight()/2):ee.translate(-e.getWidth()/2,-e.getHeight()/2):mn===wr.CORNER?5===arguments.length?(ee.translate(t,n),ee.scale(r/e.getWidth(),i/e.getHeight())):3===arguments.length&&ee.translate(t,n):m
12n===wr.CORNERS&&(5===arguments.length?(r-=t,i-=n,ee.translate(t,n),ee.scale(r/e.getWidth(),i/e.getHeight())):3===arguments.length&&ee.translate(t,n)),e.draw(ee),(1===arguments.length&&mn===wr.CENTER||1<arguments.length)&&ee.popMatrix())},ee.shapeMode=function(e){mn=e},ee.loadShape=function(e){return 1===arguments.length&&-1<e.indexOf(".svg")?new PShapeSVG(null,e):null},ee.loadXML=function(e){return new XML(ee,e)};var $n=function(e){for(var t=0,n=0;n<e.length;n++)t=0!==n?Math.max(t,Math.abs(e[n])):Math.abs(e[n]);var r=(t+"").indexOf(".");return 0===r?r=1:-1===r&&(r=(t+"").length),r},Bn=ee.PMatrix2D=function(e,t,n,r,i,o){0===arguments.length?this.reset():1===arguments.length&&e instanceof Bn?this.set(e.array()):6===arguments.length&&this.set(e,t,n,r,i,o)};Bn.prototype={set:function(e){if(6===arguments.length){var t=arguments;this.set([t[0],t[1],t[2],t[3],t[4],t[5]])}else 1===arguments.length&&e instanceof Bn?this.elements=e.array():1===arguments.length&&e instanceof Array&&(this.elements=e.slice())},get:function(){var e=new Bn;return e.set(this.elements),e},reset:function(){this.set([1,0,0,0,1,0])},array:function Hn(){return this.elements.slice()},translate:function(e,t){this.elements[2]=e*this.elements[0]+t*this.elements[1]+this.elements[2],this.elements[5]=e*this.elements[3]+t*this.elements[4]+this.elements[5]},invTranslate:function(e,t){this.translate(-e,-t)},transpose:function(){},mult:function(e,t){var n,r;return e instanceof PVector?(n=e.x,r=e.y,t||(t=new PVector)):e instanceof Array&&(n=e[0],r=e[1],t||(t=[])),t instanceof Array?(t[0]=this.elements[0]*n+this.elements[1]*r+this.elements[2],t[1]=this.elements[3]*n+this.elements[4]*r+this.elements[5]):t instanceof PVector&&(t.x=this.elements[0]*n+this.elements[1]*r+this.elements[2],t.y=this.elements[3]*n+this.elements[4]*r+this.elements[5],t.z=0),t},multX:function(e,t){return e*this.elements[0]+t*this.elements[1]+this.elements[2]},multY:function(e,t){return e*this.elements[3]+t*this.elements[4]+this.elements[5]},skewX:function(e){this.apply(1,0,1,e,0,0)},skewY:function(e){this.apply(1,0,1,0,e,0)},shearX:function(e){this.apply(1,0,1,Math.tan(e),0,0)},shearY:function(e){this.apply(1,0,1,0,Math.tan(e),0)},determinant:function(){return this.elements[0]*this.elements[4]-this.elements[1]*this.elements[3]},invert:function(){var e=this.determinant();if(Math.abs(e)>wr.MIN_INT){var t=this.elements[0],n=this.elements[1],r=this.elements[2],i=this.elements[3],o=this.elements[4],s=this.elements[5];return this.elements[0]=o/e,this.elements[3]=-i/e,this.elements[1]=-n/e,this.elements[4]=t/e,this.elements[2]=(n*s-o*r)/e,this.elements[5]=(i*r-t*s)/e,!0}return!1},scale:function(e,t){e&&!t&&(t=e),e&&t&&(this.elements[0]*=e,this.elements[1]*=t,this.elements[3]*=e,this.elements[4]*=t)},invScale:function(e,t){e&&!t&&(t=e),this.scale(1/e,1/t)},apply:function(e){var t;1===arguments.length&&e instanceof Bn?t=e.array():6===arguments.length?t=Array.prototype.slice.call(arguments):1===arguments.length&&e instanceof Array&&(t=e);for(var n=[0,0,this.elements[2],0,0,this.elements[5]],r=0,i=0;i<2;i++)for(var o=0;o<3;o++,r++)n[r]+=this.elements[3*i+0]*t[o+0]+this.elements[3*i+1]*t[o+3];this.elements=n.slice()},preApply:function(e){var t;1===arguments.length&&e instanceof Bn?t=e.array():6===arguments.length?t=Array.prototype.slice.call(arguments):1===arguments.length&&e instanceof Array&&(t=e);var n=[0,0,t[2],0,0,t[5]];n[2]=t[2]+this.elements[2]*t[0]+this.elements[5]*t[1],n[5]=t[5]+this.elements[2]*t[3]+this.elements[5]*t[4],n[0]=this.elements[0]*t[0]+this.elements[3]*t[1],n[3]=this.elements[0]*t[3]+this.elements[3]*t[4],n[1]=this.elements[1]*t[0]+this.elements[4]*t[1],n[4]=this.elements[1]*t[3]+this.elements[4]*t[4],this.elements=n.slice()},rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=this.elements[0],i=this.elements[1];this.elements[0]=t*r+n*i,this.elements[1]=-n*r+t*i,r=this.elements[3],i=this.elements[4],this.elements[3]=t*r+n*i,this.elements[4]=-n*r+t*i},rotateZ:function(e){this.rotate(e)},invRotateZ:function(e){this.rotateZ(e-Math.PI)},print:function(){var e=$n(this.elements),t=ee.nfs(this.elements[0],e,4)+" "+ee.nfs(this.elements[1],e,4)+" "+ee.nfs(this.elements[2],e,4)+"\n"+ee.nfs(this.elements[3],e,4)+" "+ee.nfs(this.elements[4],e,4)+" "+ee.nfs(this.elements[5],e,4)+"\n\n";ee.println(t)}};var Un=ee.PMatrix3D=function(){this.reset()};Un.prototype={set:function(e){16===arguments.length?this.elements=Array.prototype.slice.call(arguments):1===arguments.length&&e instanceof Un?this.elements=e.array():1===arguments.length&&e instanceof Array&&(this.elements=e.slice())},get:function(){var e=new Un;return e.set(this.elements),e},reset:function(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},array:function Hn(){return this.elements.slice()},translate:function(e,t,n){n===gr&&(n=0),this.elements[3]+=e*this.elements[0]+t*this.elements[1]+n*this.elements[2],this.elements[7]+=e*this.elements[4]+t*this.elements[5]+n*this.elements[6],this.elements[11]+=e*this.elements[8]+t*this.elements[9]+n*this.elements[10],this.elements[15]+=e*this.elements[12]+t*this.elements[13]+n*this.elements[14]},transpose:function(){var e=this.elements[4];this.elements[4]=this.elements[1],this.elements[1]=e,e=this.elements[8],this.elements[8]=this.elements[2],this.elements[2]=e,e=this.elements[6],this.elements[6]=this.elements[9],this.elements[9]=e,e=this.elements[3],this.elements[3]=this.elements[12],this.elements[12]=e,e=this.elements[7],this.elements[7]=this.elements[13],this.elements[13]=e,e=this.elements[11],this.elements[11]=this.elements[14],this.elements[14]=e},mult:function(e,t){var n,r,i,o;return e instanceof PVector?(n=e.x,r=e.y,i=e.z,o=1,t||(t=new PVector)):e instanceof Array&&(n=e[0],r=e[1],i=e[2],o=e[3]||1,(!t||3!==t.length&&4!==t.length)&&(t=[0,0,0])),t instanceof Array&&(3===t.length?(t[0]=this.elements[0]*n+this.elements[1]*r+this.elements[2]*i+this.elements[3],t[1]=this.elements[4]*n+this.elements[5]*r+this.elements[6]*i+this.elements[7],t[2]=this.elements[8]*n+this.elements[9]*r+this.elements[10]*i+this.elements[11]):4===t.length&&(t[0]=this.elements[0]*n+this.elements[1]*r+this.elements[2]*i+this.elements[3]*o,t[1]=this.elements[4]*n+this.elements[5]*r+this.elements[6]*i+this.elements[7]*o,t[2]=this.elements[8]*n+this.elements[9]*r+this.elements[10]*i+this.elements[11]*o,t[3]=this.elements[12]*n+this.elements[13]*r+this.elements[14]*i+this.elements[15]*o)),t instanceof PVector&&(t.x=this.elements[0]*n+this.elements[1]*r+this.elements[2]*i+this.elements[3],t.y=this.elements[4]*n+this.elements[5]*r+this.elements[6]*i+this.elements[7],t.z=this.elements[8]*n+this.elements[9]*r+this.elements[10]*i+this.elements[11]),t},preApply:function(e){var t;1===arguments.length&&e instanceof Un?t=e.array():16===arguments.length?t=Array.prototype.slice.call(arguments):1===arguments.length&&e instanceof Array&&(t=e);for(var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0,i=0;i<4;i++)for(var o=0;o<4;o++,r++)n[r]+=this.elements[o+0]*t[4*i+0]+this.elements[o+4]*t[4*i+1]+this.elements[o+8]*t[4*i+2]+this.elements[o+12]*t[4*i+3];this.elements=n.slice()},apply:function(e){var t;1===arguments.length&&e instanceof Un?t=e.array():16===arguments.length?t=Array.prototype.slice.call(arguments):1===arguments.length&&e instanceof Array&&(t=e);for(var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0,i=0;i<4;i++)for(var o=0;o<4;o++,r++)n[r]+=this.elements[4*i+0]*t[o+0]+this.elements[4*i+1]*t[o+4]+this.elements[4*i+2]*t[o+8]+this.elements[4*i+3]*t[o+12];this.elements=n.slice()},rotate:function(e,t,n,r){if(arguments.length<4)this.rotateZ(e);else{var i=new PVector(t,n,r),o=i.mag();if(0===o)return;1!=o&&(i.normalize(),t=i.x,n=i.y,r=i.z);var s=ee.cos(e),a=ee.sin(e),l=1-s;this.apply(l*t*t+s,l*t*n-a*r,l*t*r+a*n,0,l*t*n+a*r,l*n*n+s,l*n*r-a*t,0,l*t*r-a*n,l*n*r+a*t,l*r*r+s,
120,0,0,0,1)}},invApply:function(){He===gr&&(He=new Un);var e=arguments;return He.set(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),!!He.invert()&&(this.preApply(He),!0)},rotateX:function(e){var t=ee.cos(e),n=ee.sin(e);this.apply([1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1])},rotateY:function(e){var t=ee.cos(e),n=ee.sin(e);this.apply([t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1])},rotateZ:function(e){var t=Math.cos(e),n=Math.sin(e);this.apply([t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1])},scale:function(e,t,n){!e||t||n?e&&t&&!n&&(n=1):t=n=e,e&&t&&n&&(this.elements[0]*=e,this.elements[1]*=t,this.elements[2]*=n,this.elements[4]*=e,this.elements[5]*=t,this.elements[6]*=n,this.elements[8]*=e,this.elements[9]*=t,this.elements[10]*=n,this.elements[12]*=e,this.elements[13]*=t,this.elements[14]*=n)},skewX:function(e){var t=Math.tan(e);this.apply(1,t,0,0,0,1,0,0,0,0,1,0,0,0,0,1)},skewY:function(e){var t=Math.tan(e);this.apply(1,0,0,0,t,1,0,0,0,0,1,0,0,0,0,1)},shearX:function(e){var t=Math.tan(e);this.apply(1,t,0,0,0,1,0,0,0,0,1,0,0,0,0,1)},shearY:function(e){var t=Math.tan(e);this.apply(1,0,0,0,t,1,0,0,0,0,1,0,0,0,0,1)},multX:function(e,t,n,r){return n?r?this.elements[0]*e+this.elements[1]*t+this.elements[2]*n+this.elements[3]*r:this.elements[0]*e+this.elements[1]*t+this.elements[2]*n+this.elements[3]:this.elements[0]*e+this.elements[1]*t+this.elements[3]},multY:function(e,t,n,r){return n?r?this.elements[4]*e+this.elements[5]*t+this.elements[6]*n+this.elements[7]*r:this.elements[4]*e+this.elements[5]*t+this.elements[6]*n+this.elements[7]:this.elements[4]*e+this.elements[5]*t+this.elements[7]},multZ:function(e,t,n,r){return r?this.elements[8]*e+this.elements[9]*t+this.elements[10]*n+this.elements[11]*r:this.elements[8]*e+this.elements[9]*t+this.elements[10]*n+this.elements[11]},multW:function(e,t,n,r){return r?this.elements[12]*e+this.elements[13]*t+this.elements[14]*n+this.elements[15]*r:this.elements[12]*e+this.elements[13]*t+this.elements[14]*n+this.elements[15]},invert:function(){var e=this.elements[0]*this.elements[5]-this.elements[1]*this.elements[4],t=this.elements[0]*this.elements[6]-this.elements[2]*this.elements[4],n=this.elements[0]*this.elements[7]-this.elements[3]*this.elements[4],r=this.elements[1]*this.elements[6]-this.elements[2]*this.elements[5],i=this.elements[1]*this.elements[7]-this.elements[3]*this.elements[5],o=this.elements[2]*this.elements[7]-this.elements[3]*this.elements[6],s=this.elements[8]*this.elements[13]-this.elements[9]*this.elements[12],a=this.elements[8]*this.elements[14]-this.elements[10]*this.elements[12],l=this.elements[8]*this.elements[15]-this.elements[11]*this.elements[12],u=this.elements[9]*this.elements[14]-this.elements[10]*this.elements[13],c=this.elements[9]*this.elements[15]-this.elements[11]*this.elements[13],f=this.elements[10]*this.elements[15]-this.elements[11]*this.elements[14],d=e*f-t*c+n*u+r*l-i*a+o*s;if(Math.abs(d)<=1e-9)return!1;var h=[];h[0]=+this.elements[5]*f-this.elements[6]*c+this.elements[7]*u,h[4]=-this.elements[4]*f+this.elements[6]*l-this.elements[7]*a,h[8]=+this.elements[4]*c-this.elements[5]*l+this.elements[7]*s,h[12]=-this.elements[4]*u+this.elements[5]*a-this.elements[6]*s,h[1]=-this.elements[1]*f+this.elements[2]*c-this.elements[3]*u,h[5]=+this.elements[0]*f-this.elements[2]*l+this.elements[3]*a,h[9]=-this.elements[0]*c+this.elements[1]*l-this.elements[3]*s,h[13]=+this.elements[0]*u-this.elements[1]*a+this.elements[2]*s,h[2]=+this.elements[13]*o-this.elements[14]*i+this.elements[15]*r,h[6]=-this.elements[12]*o+this.elements[14]*n-this.elements[15]*t,h[10]=+this.elements[12]*i-this.elements[13]*n+this.elements[15]*e,h[14]=-this.elements[12]*r+this.elements[13]*t-this.elements[14]*e,h[3]=-this.elements[9]*o+this.elements[10]*i-this.elements[11]*r,h[7]=+this.elements[8]*o-this.elements[10]*n+this.elements[11]*t,h[11]=-this.elements[8]*i+this.elements[9]*n-this.elements[11]*e,h[15]=+this.elements[8]*r-this.elements[9]*t+this.elements[10]*e;var p=1/d;return h[0]*=p,h[1]*=p,h[2]*=p,h[3]*=p,h[4]*=p,h[5]*=p,h[6]*=p,h[7]*=p,h[8]*=p,h[9]*=p,h[10]*=p,h[11]*=p,h[12]*=p,h[13]*=p,h[14]*=p,h[15]*=p,this.elements=h.slice(),!0},toString:function(){for(var e="",t=0;t<15;t++)e+=this.elements[t]+", ";return e+=this.elements[15]},print:function(){var e=$n(this.elements),t=ee.nfs(this.elements[0],e,4)+" "+ee.nfs(this.elements[1],e,4)+" "+ee.nfs(this.elements[2],e,4)+" "+ee.nfs(this.elements[3],e,4)+"\n"+ee.nfs(this.elements[4],e,4)+" "+ee.nfs(this.elements[5],e,4)+" "+ee.nfs(this.elements[6],e,4)+" "+ee.nfs(this.elements[7],e,4)+"\n"+ee.nfs(this.elements[8],e,4)+" "+ee.nfs(this.elements[9],e,4)+" "+ee.nfs(this.elements[10],e,4)+" "+ee.nfs(this.elements[11],e,4)+"\n"+ee.nfs(this.elements[12],e,4)+" "+ee.nfs(this.elements[13],e,4)+" "+ee.nfs(this.elements[14],e,4)+" "+ee.nfs(this.elements[15],e,4)+"\n\n";ee.println(t)},invTranslate:function(e,t,n){this.preApply(1,0,0,-e,0,1,0,-t,0,0,1,-n,0,0,0,1)},invRotateX:function(e){var t=Math.cos(-e),n=Math.sin(-e);this.preApply([1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1])},invRotateY:function(e){var t=Math.cos(-e),n=Math.sin(-e);this.preApply([t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1])},invRotateZ:function(e){var t=Math.cos(-e),n=Math.sin(-e);this.preApply([t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1])},invScale:function(e,t,n){this.preApply([1/e,0,0,0,0,1/t,0,0,0,0,1/n,0,0,0,0,1])}};var Vn=ee.PMatrixStack=function(){this.matrixStack=[]};Vn.prototype.load=function(e){var t=re.$newPMatrix();1===arguments.length?t.set(e):t.set(arguments),this.matrixStack.push(t)},Mn.prototype.$newPMatrix=function(){return new Bn},In.prototype.$newPMatrix=function(){return new Un},Vn.prototype.push=function(){this.matrixStack.push(this.peek())},Vn.prototype.pop=function(){return this.matrixStack.pop()},Vn.prototype.peek=function(){var e=re.$newPMatrix();return e.set(this.matrixStack[this.matrixStack.length-1]),e}
12,Vn.prototype.mult=function(e){this.matrixStack[this.matrixStack.length-1].apply(e)},ee.split=function(e,t){return e.split(t)},ee.splitTokens=function(e,t){if(t===gr)return e.split(/\s+/g);var n,r,i=t.split(/()/g),o="",s=e.length,a=[];for(n=0;n<s;n++)r=e[n],-1<i.indexOf(r)?(""!==o&&a.push(o),o=""):o+=r;return""!==o&&a.push(o),a},ee.append=function(e,t){return e[e.length]=t,e},ee.concat=function(e,t){return e.concat(t)},ee.sort=function(e,t){var n=[];if(0<e.length){for(var r=0<t?t:e.length,i=0;i<r;i++)n.push(e[i]);if("string"==typeof e[0]?n.sort():n.sort(function(e,t){return e-t}),0<t)for(var o=n.length;o<e.length;o++)n.push(e[o])}return n},ee.splice=function(e,t,n){if(0===t.length)return e;if(t instanceof Array)for(var r=0,i=n;r<t.length;i++,r++)e.splice(i,0,t[r]);else e.splice(n,0,t);return e},ee.subset=function(e,t,n){var r=n!==gr?t+n:e.length;return e.slice(t,r)},ee.join=function(e,t){return e.join(t)},ee.shorten=function(e){for(var t=[],n=e.length,r=0;r<n;r++)t[r]=e[r];return t.pop(),t},ee.expand=function(e,t){var n=e.slice(0),r=t||2*e.length;return n.length=r,n},ee.arrayCopy=function(e,t,n,r,i){var o,s,a,l=0,u=0;2===arguments.length?(s=t,a=(o=e).length):3===arguments.length?(o=e,s=t,a=n):5===arguments.length&&(o=e,l=t,s=n,u=r,a=i);for(var c=l,f=u;c<a+l;c++,f++){if(s[f]===gr)throw"array index out of bounds exception";s[f]=o[c]}},ee.reverse=function(e){return e.reverse()},ee.mix=function(e,t,n){return e+((t-e)*n>>8)},ee.peg=function(e){return e<0?0:255<e?255:e},ee.modes=function(){function f(e,t,n,r,i,o,s,a,l,u,c){var f=n+((l-n)*t>>8),d=r+((u-r)*t>>8),h=i+((c-i)*t>>8);return m(((4278190080&e)>>>24)+t,255)<<24|(f=(f<0?0:255<f?255:f)<<16)|(d=(d<0?0:255<d?255:d)<<8)|(h=h<0?0:255<h?255:h)}var d=wr.ALPHA_MASK,h=wr.RED_MASK,p=wr.GREEN_MASK,g=wr.BLUE_MASK,m=Math.min,r=Math.max;return{replace:function(e,t){return t},blend:function(e,t){var n=(t&d)>>>24,r=e&h,i=e&p,o=e&g,s=t&h,a=t&p,l=t&g;return m(((e&d)>>>24)+n,255)<<24|r+((s-r)*n>>8)&h|i+((a-i)*n>>8)&p|o+((l-o)*n>>8)&g},add:function(e,t){var n=(t&d)>>>24;return m(((e&d)>>>24)+n,255)<<24|m((e&h)+((t&h)>>8)*n,h)&h|m((e&p)+((t&p)>>8)*n,p)&p|m((e&g)+((t&g)*n>>8),g)},subtract:function(e,t){var n=(t&d)>>>24;return m(((e&d)>>>24)+n,255)<<24|r((e&h)-((t&h)>>8)*n,p)&h|r((e&p)-((t&p)>>8)*n,g)&p|r((e&g)-((t&g)*n>>8),0)},lightest:function(e,t){var n=(t&d)>>>24;return m(((e&d)>>>24)+n,255)<<24|r(e&h,((t&h)>>8)*n)&h|r(e&p,((t&p)>>8)*n)&p|r(e&g,(t&g)*n>>8)},darkest:function(e,t){var n=(t&d)>>>24,r=e&h,i=e&p,o=e&g,s=m(e&h,((t&h)>>8)*n),a=m(e&p,((t&p)>>8)*n),l=m(e&g,(t&g)*n>>8);return m(((e&d)>>>24)+n,255)<<24|r+((s-r)*n>>8)&h|i+((a-i)*n>>8)&p|o+((l-o)*n>>8)&g},difference:function(e,t){var n=(e&h)>>16,r=(e&p)>>8,i=e&g,o=(t&h)>>16,s=(t&p)>>8,a=t&g;return f(e,(t&d)>>>24,n,r,i,o,s,a,o<n?n-o:o-n,s<r?r-s:s-r,a<i?i-a:a-i)},exclusion:function(e,t){var n=(e&h)>>16,r=(e&p)>>8,i=e&g,o=(t&h)>>16,s=(t&p)>>8,a=t&g;return f(e,(t&d)>>>24,n,r,i,o,s,a,n+o-(n*o>>7),r+s-(r*s>>7),i+a-(i*a>>7))},multiply:function(e,t){var n=(e&h)>>16,r=(e&p)>>8,i=e&g,o=(t&h)>>16,s=(t&p)>>8,a=t&g;return f(e,(t&d)>>>24,n,r,i,o,s,a,n*o>>8,r*s>>8,i*a>>8)},screen:function(e,t){var n=(e&h)>>16,r=(e&p)>>8,i=e&g,o=(t&h)>>16,s=(t&p)>>8,a=t&g;return f(e,(t&d)>>>24,n,r,i,o,s,a,255-((255-n)*(255-o)>>8),255-((255-r)*(255-s)>>8),255-((255-i)*(255-a)>>8))},hard_light:function(e,t){var n=(e&h)>>16,r=(e&p)>>8,i=e&g,o=(t&h)>>16,s=(t&p)>>8,a=t&g;return f(e,(t&d)>>>24,n,r,i,o,s,a,o<128?n*o>>7:255-((255-n)*(255-o)>>7),s<128?r*s>>7:255-((255-r)*(255-s)>>7),a<128?i*a>>7:255-((255-i)*(255-a)>>7))},soft_light:function(e,t){var n=(e&h)>>16,r=(e&p)>>8,i=e&g,o=(t&h)>>16,s=(t&p)>>8,a=t&g;return f(e,(t&d)>>>24,n,r,i,o,s,a,(n*o>>7)+(n*n>>8)-(n*n*o>>15),(r*s>>7)+(r*r>>8)-(r*r*s>>15),(i*a>>7)+(i*i>>8)-(i*i*a>>15))},overlay:function(e,t){var n=(e&h)>>16,r=(e&p)>>8,i=e&g,o=(t&h)>>16,s=(t&p)>>8,a=t&g;return f(e,(t&d)>>>24,n,r,i,o,s,a,n<128?n*o>>7:255-((255-n)*(255-o)>>7),r<128?r*s>>7:255-((255-r)*(255-s)>>7),i<128?i*a>>7:255-((255-i)*(255-a)>>7))},dodge:function(e,t){var n=(e&h)>>16,r=(e&p)>>8,i=e&g,o=(t&h)>>16,s=(t&p)>>8,a=t&g,l=255;255!==o&&(l=(l=(n<<8)/(255-o))<0?0:255<l?255:l);var u=255;255!==s&&(u=(u=(r<<8)/(255-s))<0?0:255<u?255:u);var c=255;return 255!==a&&(c=(c=(i<<8)/(255-a))<0?0:255<c?255:c),f(e,(t&d)>>>24,n,r,i,o,s,a,l,u,c)},burn:function(e,t){var n=(e&h)>>16,r=(e&p)>>8,i=e&g,o=(t&h)>>16,s=(t&p)>>8,a=t&g,l=0;0!==o&&(l=255-((l=(255-n<<8)/o)<0?0:255<l?255:l));var u=0;0!==s&&(u=255-((u=(255-r<<8)/s)<0?0:255<u?255:u));var c=0;return 0!==a&&(c=255-((c=(255-i<<8)/a)<0?0:255<c?255:c)),f(e,(t&d)>>>24,n,r,i,o,s,a,l,u,c)}}}(),ee.color=function(e,t,n,r){return e!==gr&&t!==gr&&n!==gr&&r!==gr?y(e,t,n,r):e!==gr&&t!==gr&&n!==gr?y(e,t,n,mt):e!==gr&&t!==gr?a(e,t):"number"==typeof e?l(e):y(vt,yt,bt,mt)},ee.color.toString=function(e){return"rgba("+((e&wr.RED_MASK)>>>16)+","+((e&wr.GREEN_MASK)>>>8)+","+(e&wr.BLUE_MASK)+","+((e&wr.ALPHA_MASK)>>>24)/255+")"},ee.color.toInt=function(e,t,n,r){return r<<24&wr.ALPHA_MASK|e<<16&wr.RED_MASK|t<<8&wr.GREEN_MASK|n&wr.BLUE_MASK},ee.color.toArray=function(e){return[(e&wr.RED_MASK)>>>16,(e&wr.GREEN_MASK)>>>8,e&wr.BLUE_MASK,(e&wr.ALPHA_MASK)>>>24]},ee.color.toGLArray=function(e){return[((e&wr.RED_MASK)>>>16)/255,((e&wr.GREEN_MASK)>>>8)/255,(e&wr.BLUE_MASK)/255,((e&wr.ALPHA_MASK)>>>24)/255]},ee.color.toRGB=function(e,t,n){e=(e=vt<e?vt:e)/vt*360,t=(t=yt<t?yt:t)/yt*100,n=(n=bt<n?bt:n)/bt*100;var r=Math.round(n/100*255);if(0===t)return[r,r,r];var i=e%360,o=i%60,s=Math.round(n*(100-t)/1e4*255),a=Math.round(n*(6e3-t*o)/6e5*255),l=Math.round(n*(6e3-t*(60-o))
12/6e5*255);switch(Math.floor(i/60)){case 0:return[r,l,s];case 1:return[a,r,s];case 2:return[s,r,l];case 3:return[s,a,r];case 4:return[l,s,r];case 5:return[r,s,a]}},ee.brightness=function(e){return T(e)[2]},ee.saturation=function(e){return T(e)[1]},ee.hue=function(e){return T(e)[0]},ee.red=function(e){return((e&wr.RED_MASK)>>>16)/255*vt},ee.green=function(e){return((e&wr.GREEN_MASK)>>>8)/255*yt},ee.blue=function(e){return(e&wr.BLUE_MASK)/255*bt},ee.alpha=function(e){return((e&wr.ALPHA_MASK)>>>24)/255*mt},ee.lerpColor=function(e,t,n){var r,i,o,s,a,l,u,c,f,d,h,p,g,m,v,y,b=ee.color(e),E=ee.color(t);return St===wr.HSB?(p=T(b),u=((b&wr.ALPHA_MASK)>>>24)/mt,g=T(E),h=((E&wr.ALPHA_MASK)>>>24)/mt,v=ee.lerp(p[0],g[0],n),y=ee.lerp(p[1],g[1],n),o=ee.lerp(p[2],g[2],n),m=ee.color.toRGB(v,y,o),ee.lerp(u,h,n)*mt<<24&wr.ALPHA_MASK|m[0]<<16&wr.RED_MASK|m[1]<<8&wr.GREEN_MASK|m[2]&wr.BLUE_MASK):(s=(b&wr.RED_MASK)>>>16,a=(b&wr.GREEN_MASK)>>>8,l=b&wr.BLUE_MASK,u=((b&wr.ALPHA_MASK)>>>24)/mt,c=(E&wr.RED_MASK)>>>16,f=(E&wr.GREEN_MASK)>>>8,d=E&wr.BLUE_MASK,h=((E&wr.ALPHA_MASK)>>>24)/mt,r=0|ee.lerp(s,c,n),i=0|ee.lerp(a,f,n),o=0|ee.lerp(l,d,n),ee.lerp(u,h,n)*mt<<24&wr.ALPHA_MASK|r<<16&wr.RED_MASK|i<<8&wr.GREEN_MASK|o&wr.BLUE_MASK)},ee.colorMode=function(e,t,n,r,i){St=e,1<arguments.length&&(vt=t,yt=n||t,bt=r||t,mt=i||t)},ee.blendColor=function(e,t,n){return n===wr.REPLACE?ee.modes.replace(e,t):n===wr.BLEND?ee.modes.blend(e,t):n===wr.ADD?ee.modes.add(e,t):n===wr.SUBTRACT?ee.modes.subtract(e,t):n===wr.LIGHTEST?ee.modes.lightest(e,t):n===wr.DARKEST?ee.modes.darkest(e,t):n===wr.DIFFERENCE?ee.modes.difference(e,t):n===wr.EXCLUSION?ee.modes.exclusion(e,t):n===wr.MULTIPLY?ee.modes.multiply(e,t):n===wr.SCREEN?ee.modes.screen(e,t):n===wr.HARD_LIGHT?ee.modes.hard_light(e,t):n===wr.SOFT_LIGHT?ee.modes.soft_light(e,t):n===wr.OVERLAY?ee.modes.overlay(e,t):n===wr.DODGE?ee.modes.dodge(e,t):n===wr.BURN?ee.modes.burn(e,t):void 0},ee.printMatrix=function(){Ie.print()},Mn.prototype.translate=function(e,t){Ie.translate(e,t),Fe.invTranslate(e,t),te.translate(e,t)},In.prototype.translate=function(e,t,n){Ie.translate(e,t,n),Fe.invTranslate(e,t,n)},Mn.prototype.scale=function(e,t){Ie.scale(e,t),Fe.invScale(e,t),te.scale(e,t||e)},In.prototype.scale=function(e,t,n){Ie.scale(e,t,n),Fe.invScale(e,t,n)},Mn.prototype.transform=function(e){var t=e.array();te.transform(t[0],t[3],t[1],t[4],t[2],t[5])},In.prototype.transformm=function(){throw"p.transform is currently not supported in 3D mode"},Mn.prototype.pushMatrix=function(){$e.load(Ie),Be.load(Fe),w()},In.prototype.pushMatrix=function(){$e.load(Ie),Be.load(Fe)},Mn.prototype.popMatrix=function(){Ie.set($e.pop()),Fe.set(Be.pop()),A()},In.prototype.popMatrix=function(){Ie.set($e.pop()),Fe.set(Be.pop())},Mn.prototype.resetMatrix=function(){Ie.reset(),Fe.reset(),te.setTransform(1,0,0,1,0,0)},In.prototype.resetMatrix=function(){Ie.reset(),Fe.reset()},Pn.prototype.applyMatrix=function(){var e=arguments;Ie.apply(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),Fe.invApply(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},Mn.prototype.applyMatrix=function(){for(var e=arguments,t=e.length;t<16;t++)e[t]=0;e[10]=e[15]=1,Pn.prototype.applyMatrix.apply(this,e)},ee.rotateX=function(e){Ie.rotateX(e),Fe.invRotateX(e)},Mn.prototype.rotateZ=function(){throw"rotateZ() is not supported in 2D mode. Use rotate(float) instead."},In.prototype.rotateZ=function(e){Ie.rotateZ(e),Fe.invRotateZ(e)},ee.rotateY=function(e){Ie.rotateY(e),Fe.invRotateY(e)},Mn.prototype.rotate=function(e){Ie.rotateZ(e),Fe.invRotateZ(e),te.rotate(e)},In.prototype.rotate=function(e,t,n,r){arguments.length<4?ee.rotateZ(e):(Ie.rotate(e,t,n,r),Fe.rotate(-e,t,n,r))},Mn.prototype.shearX=function(e){Ie.shearX(e),te.transform(1,0,e,1,0,0)},In.prototype.shearX=function(e){Ie.shearX(e)},Mn.prototype.shearY=function(e){Ie.shearY(e),te.transform(1,e,0,1,0,0)},In.prototype.shearY=function(e){Ie.shearY(e)},ee.pushStyle=function(){w(),ee.pushMatrix();var e={doFill:Ve,currentFillColor:Ke,doStroke:ze,currentStrokeColor:qe,curTint:wt,curRectMode:tt,curColorMode:St,colorModeX:vt,colorModeZ:bt,colorModeY:yt,colorModeA:mt,curTextFont:Ht,horizontalTextAlignment:Rt,verticalTextAlignment:kt,textMode:Pt,curFontName:Mt,curTextSize:It,curTextAscent:Ft,curTextDescent:$t,curTextLeading:Bt};vn.push(e)},ee.popStyle=function(){var e=vn.pop();if(!e)throw"Too many popStyle() without enough pushStyle()";A(),ee.popMatrix(),Ve=e.doFill,Ke=e.currentFillColor,ze=e.doStroke,qe=e.currentStrokeColor,wt=e.curTint,tt=e.curRectMode,St=e.curColorMode,vt=e.colorModeX,bt=e.colorModeZ,yt=e.colorModeY,mt=e.colorModeA,Ht=e.curTextFont,Mt=e.curFontName,It=e.curTextSize,Rt=e.horizontalTextAlignment,kt=e.verticalTextAlignment,Pt=e.textMode,Ft=e.curTextAscent,$t=e.curTextDescent,Bt=e.curTextLeading},ee.year=function(){return(new Date).getFullYear()},ee.month=function(){return(new Date).getMonth()+1},ee.day=function(){return(new Date).getDate()},ee.hour=function(){return(new Date).getHours()},ee.minute=function(){return(new Date).getMinutes()},ee.second=function(){return(new Date).getSeconds()},ee.millis=function(){return Date.now()-Ct},Mn.prototype.redraw=function(){u(),te.lineWidth=Ye;var e=ee.pmouseX,t=ee.pmouseY;ee.pmouseX=Et,ee.pmouseY=Tt,w(),ee.draw(),A(),Et=ee.mouseX,Tt=ee.mouseY,ee.pmouseX=e,ee.pmouseY=t},In.prototype.redraw=function(){u();var e=ee.pmouseX,t=ee.pmouseY;ee.pmouseX=Et,ee.pmouseY=Tt,te.clear(te.DEPTH_BUFFER_BIT),Nt={attributes:{},locations:{}},ee.noLights(),ee.lightFalloff(1,0,0),ee.shininess(1),ee.ambient(255,255,255),ee.specular(0,0,0),ee.emissive
12(0,0,0),ee.camera(),ee.draw(),Et=ee.mouseX,Tt=ee.mouseY,ee.pmouseX=e,ee.pmouseY=t},ee.noLoop=function(){Qe=Je=!1,clearInterval(et),ne.onPause()},ee.loop=function(){Qe||(xt=Date.now(),_t=0,et=Er.setInterval(function(){try{ne.onFrameStart(),ee.redraw(),ne.onFrameEnd()}catch(e){throw Er.clearInterval(et),e}},lt),Qe=Je=!0,ne.onLoop())},ee.frameRate=function(e){lt=1e3/(at=e),Je&&(ee.noLoop(),ee.loop())},ee.exit=function(){for(var e in Er.clearInterval(et),Rr(ee.externals.canvas.id),delete Q.onmousedown,kr.lib)kr.lib.hasOwnProperty(e)&&kr.lib[e].hasOwnProperty("detach")&&kr.lib[e].detach(ee);for(var t=J.length;t--;)o(J[t]);ne.onExit()},ee.cursor=function(e,t,n){if(1<arguments.length||1===arguments.length&&e instanceof ee.PImage){var r,i,o=e;if(3<=arguments.length){if(i=n,(r=t)<0||i<0||i>=o.height||r>=o.width)throw"x and y must be non-negative and less than the dimensions of the image"}else r=o.width>>>1,i=o.height>>>1;var s='url("'+o.toDataURL()+'") '+r+" "+i+", default";Q.style.cursor=s}else if(1===arguments.length){var a=e;Q.style.cursor=a}else Q.style.cursor=ut},ee.noCursor=function(){Q.style.cursor=wr.NOCURSOR},ee.link=function(e,t){t!==gr?Er.open(e,t):Er.location=e},ee.beginDraw=Sr,ee.endDraw=Sr,Mn.prototype.toImageData=function(e,t,n,r){return e=e!==gr?e:0,t=t!==gr?t:0,n=n!==gr?n:ee.width,r=r!==gr?r:ee.height,te.getImageData(e,t,n,r)},In.prototype.toImageData=function(e,t,n,r){e=e!==gr?e:0,t=t!==gr?t:0,n=n!==gr?n:ee.width,r=r!==gr?r:ee.height;var i=Tr.createElement("canvas").getContext("2d").createImageData(n,r),o=new Dr(n*r*4);te.readPixels(e,t,n,r,te.RGBA,te.UNSIGNED_BYTE,o);for(var s=0,a=o.length,l=i.data;s<a;s++)l[s]=o[(r-1-Math.floor(s/4/n))*n*4+s%(4*n)];return i},ee.status=function(e){Er.status=e},ee.binary=function(e,t){var n;if(0<t)n=t;else if(e instanceof Char)n=16,e|=0;else for(n=32;1<n&&!(e>>>n-1&1);)n--;for(var r="";0<n;)r+=e>>>--n&1?"1":"0";return r},ee.unbinary=function(e){for(var t=e.length-1,n=1,r=0;0<=t;){var i=e[t--];if("0"!==i&&"1"!==i)throw"the value passed into unbinary was not an 8 bit binary number";"1"===i&&(r+=n),n<<=1}return r};var Wn=function(e,t){t=t===gr||null===t?t=8:t,e<0&&(e=4294967295+e+1);for(var n=Number(e).toString(16).toUpperCase();n.length<t;)n="0"+n;return n.length>=t&&(n=n.substring(n.length-t,n.length)),n};ee.hex=function(e,t){return 1===arguments.length&&(t=e instanceof Char?4:8),Wn(e,t)},ee.unhex=function(e){if(e instanceof Array){for(var t=[],n=0;n<e.length;n++)t.push(f(e[n]));return t}return f(e)},ee.loadStrings=function(e){if(xr[e])return xr[e].split("\n");var t=yr(e);return"string"!=typeof t||""===t?[]:(t=t.replace(/(\r\n?)/g,"\n").replace(/\n$/,"")).split("\n")},ee.saveStrings=function(e,t){xr[e]=t.join("\n")},ee.loadBytes=function(e){for(var t=yr(e),n=[],r=0;r<t.length;r++)n.push(t.charCodeAt(r));return n},ee.matchAll=function(e,t){for(var n,r=[],i=new RegExp(t,"g");null!==(n=i.exec(e));)r.push(n),0===n[0].length&&++i.lastIndex;return 0<r.length?r:null},ee.match=function(e,t){return e.match(t)};var Kn;ee.println=function(e){kr.logger.println(e)},ee.print=function(e){kr.logger.print(e)},ee.str=function(e){if(e instanceof Array){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toString()+"");return t}return e.toString()+""},ee.parseBoolean=function(e){if(e instanceof Array){for(var t=[],n=0;n<e.length;n++)t.push(p(e[n]));return t}return p(e)},ee.parseByte=function(e){if(e instanceof Array){for(var t=[],n=0;n<e.length;n++)t.push(0-(128&e[n])|127&e[n]);return t}return 0-(128&e)|127&e},ee.parseChar=function(e){if("number"==typeof e)return new Char(String.fromCharCode(65535&e));if(e instanceof Array){for(var t=[],n=0;n<e.length;n++)t.push(new Char(String.fromCharCode(65535&e[n])));return t}throw"char() may receive only one argument of type int, byte, int[], or byte[]."},ee.parseFloat=function(e){if(e instanceof Array){for(var t=[],n=0;n<e.length;n++)t.push(g(e[n]));return t}return g(e)},ee.parseInt=function(e,t){if(e instanceof Array){for(var n=[],r=0;r<e.length;r++)"string"!=typeof e[r]||/^\s*[+\-]?\d+\s*$/.test(e[r])?n.push(b(e[r],t)):n.push(0);return n}return b(e,t)},ee.__int_cast=function(e){return 0|e},ee.__instanceof=function(e,t){if("function"!=typeof t)throw"Function is expected as type argument for instanceof operator";if("string"==typeof e)return t===Object||t===String;if(e instanceof t)return!0;
12if("object"!=typeof e||null===e)return!1;var n=e.constructor;if(t.$isInterface){for(var r=[];n;)n.$interfaces&&(r=r.concat(n.$interfaces)),n=n.$base;for(;0<r.length;){var i=r.shift();if(i===t)return!0;i.$interfaces&&(r=r.concat(
13i.$interfaces))}return!1}for(;n.hasOwnProperty("$base");)if((n=n.$base)===t)return!0;return!1},Pn.prototype.size=function(e,t){ze&&ee.stroke(0),Ve&&ee.fill(255);var n={fillStyle:te.fillStyle,strokeStyle:te.strokeStyle,lineCap:te.lineCap,lineJoin:te.lineJoin};for(var r in 0<Q.style.length&&(Q.style.removeProperty("width"),Q.style.removeProperty("height")),Q.width=ee.width=e||100,Q.height=ee.height=t||100,n)n.hasOwnProperty(r)&&(te[r]=n[r]);ee.textFont(Ht),ee.background(),Wt=Math.max(1e3,e*t*.05),ee.externals.context=te;for(var i=0;i<wr.SINCOS_LENGTH;i++)Jt[i]=ee.sin(i*(wr.PI/180)*.5),en[i]=ee.cos(i*(wr.PI/180)*.5)},Mn.prototype.size=function(e,t,n){te===gr&&(te=Q.getContext("2d"),$e=new Vn,Be=new Vn,Ie=new Bn,Fe=new Bn),Pn.prototype.size.apply(this,arguments)},In.prototype.size=(Kn=!1,function jn(e,t,n){function r(e){for(var t,n=["experimental-webgl","webgl","webkit-3d"],r=0,i=n.length;r<i&&!(t=e.getContext(n[r],{antialias:!1,preserveDrawingBuffer:!0}));r++);return t}if(Kn)throw"Multiple calls to size() for 3D renders are not allowed.";Kn=!0;try{Q.width=ee.width=e||100,Q.height=ee.height=t||100,te=r(Q),xe=te.createTexture(),_e=te.createTexture()}catch(i){kr.debug(i)}if(!te)throw"WebGL context is not supported on this browser.";te.viewport(0,0,Q.width,Q.height),te.enable(te.DEPTH_TEST),te.enable(te.BLEND),te.blendFunc(te.SRC_ALPHA,te.ONE_MINUS_SRC_ALPHA),de=On(te,Cn,xn),he=On(te,wn,An),ee.strokeWeight(1),fe=On(te,_n,Nn),te.useProgram(fe),v("usingTexture3d",fe,"usingTexture",Lt),ee.lightFalloff(1,0,0),ee.shininess(1),ee.ambient(255,255,255),ee.specular(0,0,0),ee.emissive(0,0,0),pe=te.createBuffer(),te.bindBuffer(te.ARRAY_BUFFER,pe),te.bufferData(te.ARRAY_BUFFER,yn,te.STATIC_DRAW),ge=te.createBuffer(),te.bindBuffer(te.ARRAY_BUFFER,ge),te.bufferData(te.ARRAY_BUFFER,En,te.STATIC_DRAW),me=te.createBuffer(),te.bindBuffer(te.ARRAY_BUFFER,me),te.bufferData(te.ARRAY_BUFFER,bn,te.STATIC_DRAW),ve=te.createBuffer(),te.bindBuffer(te.ARRAY_BUFFER,ve),te.bufferData(te.ARRAY_BUFFER,Tn,te.STATIC_DRAW),ye=te.createBuffer(),te.bindBuffer(te.ARRAY_BUFFER,ye),te.bufferData(te.ARRAY_BUFFER,Sn,te.STATIC_DRAW),be=te.createBuffer(),Ee=te.createBuffer(),Te=te.createBuffer(),Se=te.createBuffer(),we=te.createBuffer(),Ce=te.createBuffer(),Ae=te.createBuffer(),te.bindBuffer(te.ARRAY_BUFFER,Ae),te.bufferData(te.ARRAY_BUFFER,new _r([0,0,0]),te.STATIC_DRAW),Ne=te.createBuffer(),te.bindBuffer(te.ARRAY_BUFFER,Ne),te.bufferData(te.ARRAY_BUFFER,new _r([1,1,0,-1,1,0,-1,-1,0,1,-1,0]),te.STATIC_DRAW),Oe=te.createBuffer(),te.bindBuffer(te.ARRAY_BUFFER,Oe),te.bufferData(te.ARRAY_BUFFER,new _r([0,0,1,0,1,1,0,1]),te.STATIC_DRAW),De=te.createBuffer(),te.bindBuffer(te.ELEMENT_ARRAY_BUFFER,De),te.bufferData(te.ELEMENT_ARRAY_BUFFER,new Or([0,1,2,2,3,0]),te.STATIC_DRAW),Pe=new Un,Me=new Un,Ie=new Un,Fe=new Un,Ue=new Un,ee.camera(),ee.perspective(),$e=new Vn,Be=new Vn,oe=new Un,se=new Un,ae=new Un,le=new Un,ue=new Un,(ce=new Un).set(-1,3,-3,1,3,-6,3,0,-3,3,0,0,1,0,0,0),Pn.prototype.size.apply(this,arguments)}),Mn.prototype.ambientLight=Pn.prototype.a3DOnlyFunction,In.prototype.ambientLight=function(e,t,n,r,i,o){if(Gt===wr.MAX_LIGHTS)throw"can only create "+wr.MAX_LIGHTS+" lights";var s=new PVector(r,i,o),a=new Un;a.scale(1,-1,1),a.apply(Ie.array()),a.mult(s,s);var l=y(e,t,n,0),u=[((l&wr.RED_MASK)>>>16)/255,((l&wr.GREEN_MASK)>>>8)/255,(l&wr.BLUE_MASK)/255];te.useProgram(fe),m("uLights.color.3d."+Gt,fe,"uLights"+Gt+".color",u),m("uLights.position.3d."+Gt,fe,"uLights"+Gt+".position",s.array()),v("uLights.type.3d."+Gt,fe,"uLights"+Gt+".type",0),v("uLightCount3d",fe,"uLightCount",++Gt)},Mn.prototype.directionalLight=Pn.prototype.a3DOnlyFunction,In.prototype.directionalLight=function(e,t,n,r,i,o){if(Gt===wr.MAX_LIGHTS)throw"can only create "+wr.MAX_LIGHTS+" lights";te.useProgram(fe);var s=new Un;s.scale(1,-1,1),s.apply(Ie.array());var a=[(s=s.array())[0]*r+s[4]*i+s[8]*o,s[1]*r+s[5]*i+s[9]*o,s[2]*r+s[6]*i+s[10]*o],l=y(e,t,n,0),u=[((l&wr.RED_MASK)>>>16)/255,((l&wr.GREEN_MASK)>>>8)/255,(l&wr.BLUE_MASK)/255];m("uLights.color.3d."+Gt,fe,"uLights"+Gt+".color",u),m("uLights.position.3d."+Gt,fe,"uLights"+Gt+".position",a),v("uLights.type.3d."+Gt,fe,"uLights"+Gt+".type",1),v("uLightCount3d",fe,"uLightCount",++Gt)},Mn.prototype.lightFalloff=Pn.prototype.a3DOnlyFunction,In.prototype.lightFalloff=function(e,t,n){te.useProgram(fe),m("uFalloff3d",fe,"uFalloff",[e,t,n])},Mn.prototype.lightSpecular=Pn.prototype.a3DOnlyFunction,In.prototype.lightSpecular=function(e,t,n){var r=y(e,t,n,0),i=[((r&wr.RED_MASK)>>>16)/255,((r&wr.GREEN_MASK)>>>8)/255,(r&wr.BLUE_MASK)/255];te.useProgram(fe),m("uSpecular3d",fe,"uSpecular",i)},ee.lights=function(){ee.ambientLight(128,128,128),ee.directionalLight(128,128,128,0,0,-1),ee.lightFalloff(1,0,0),ee.lightSpecular(0,0,0)},Mn.prototype.pointLight=Pn.prototype.a3DOnlyFunction,In.prototype.pointLight=function(e,t,n,r,i,o){if(Gt===wr.MAX_LIGHTS)throw"can only create "+wr.MAX_LIGHTS+" lights";var s=new PVector(r,i,o),a=new Un;a.scale(1,-1,1),a.apply(Ie.array()),a.mult(s,s);var l=y(e,t,n,0),u=[((l&wr.RED_MASK)>>>16)/255,((l&wr.GREEN_MASK)>>>8)/255,(l&wr.BLUE_MASK)/255];te.useProgram(fe),m("uLights.color.3d."+Gt,fe,"uLights"+Gt+".color",u),m("uLights.position.3d."+Gt,fe,"uLights"+Gt+".position",s.array()),v("uLights.type.3d."+Gt,fe,"uLights"+Gt+".type",2),v("uLightCount3d",fe,"uLightCount",++Gt)},Mn.prototype.noLights=Pn.prototype.a3DOnlyFunction,In.prototype.noLights=function(){Gt=0,te.useProgram(fe),v("uLightCount3d",fe,"uLightCount",Gt)},Mn.prototype.spotLight=Pn.prototype.a3DOnlyFunction,In.prototype.spotLight=function(e,t,n,r,i,o,s,a,l,u,c){if(Gt===wr.MAX_LIGHTS)throw"can only create "+wr.MAX_LIGHTS+" lights";te.useProgram(fe);var f=new PVector(r,i,o),d=new Un;d.scale(1,-1,1),d.apply(Ie.array()),d.mult(f,f);var h=[(d=d.array())[0]*s+d[4]*a+d[8]*l,d[1]*s+d[5]*a+d[9]*l,d[2]*s+d[6]*a+d[10]*l],p=y(e,t,n,0),g=[((p&wr.RED_MASK)>>>16)/255,((p&wr.GREEN_MASK)>>>8)/255,(p&wr.BLUE_MASK)/255];m("uLights.color.3d."+Gt,fe,"uLights"+Gt+".color",g),m("uLights.position.3d."+Gt,fe,"uLights"+Gt+".position",f.array()),m("uLights.direction.3d."+Gt,fe,"uLights"+Gt+".direction",h),m("uLights.concentration.3d."+Gt,fe,"uLights"+Gt+".concentration",c),m("uLights.angle.3d."+Gt,fe,"uLights"+Gt+".angle",u),v("uLights.type.3d."+Gt,fe,"uLights"+Gt+".type",3),v("uLightCount3d",fe,"uLightCount",++Gt)},Mn.prototype.beginCamera=function(){throw"beginCamera() is not available in 2D mode"},In.prototype.beginCamera=function(){if(tn)throw"You cannot call beginCamera() again before calling endCamera()";tn=!0,Ie=Me,Fe=Pe},Mn.prototype.endCamera=function(){throw"endCamera() is not available in 2D mode"},In.prototype.endCamera=function(){if(!tn)throw"You cannot call endCamera() before calling beginCamera()";Ie.set(Pe),Fe.set(Me),tn=!1},ee.camera=function(e,t,n,r,i,o,s,a,l){e===gr&&(rn=ee.width/2,on=ee.height/2,n=sn=on/Math.tan(nn/2),r=e=rn,i=t=on,a=1,l=s=o=0);var u=new PVector(e-r,t-i,n-o),c=new PVector(s,a,l);u.normalize();var f=PVector.cross(c,u);c=PVector.cross(u,f),f.normalize(),c.normalize();var d=f.x,h=f.y,p=f.z,g=c.x,m=c.y,v=c.z,y=u.x,b=u.y,E=u.z;Pe.set(d,h,p,0,g,m,v,0,y,b,E,0,0,0,0,1),Pe.translate(-e,-t,-n),Me.reset(),Me.invApply(d,h,p,0,g,m,v,0,y,b,E,0,0,0,0,1),Me.translate(e,t,n),Ie.set(Pe),Fe.set(Me)},ee.perspective=function(e,t,n,r){var i,o,s,a;0===arguments.length&&(on=Q.height/2,sn=on/Math.tan(nn/2),an=sn/10,ln=10*sn,un=ee.width/ee.height,e=nn,t=un,n=an,r=ln),s=(i=n*Math.tan(e/2))*t,a=(o=-i)*t,ee.frustum(a,s,o,i,n,r)}
13,Mn.prototype.frustum=function(){throw"Processing.js: frustum() is not supported in 2D mode"},In.prototype.frustum=function(e,t,n,r,i,o){!0,(Ue=new Un).set(2*i/(t-e),0,(t+e)/(t-e),0,0,2*i/(r-n),(r+n)/(r-n),0,0,0,-(o+i)/(o-i),-2*o*i/(o-i),0,0,-1,0);var s=new Un;s.set(Ue),s.transpose(),te.useProgram(de),h("projection2d",de,"uProjection",!1,s.array()),te.useProgram(fe),h("projection3d",fe,"uProjection",!1,s.array()),te.useProgram(he),h("uProjectionUS",he,"uProjection",!1,s.array())},ee.ortho=function(e,t,n,r,i,o){0===arguments.length&&(e=0,t=ee.width,n=0,r=ee.height,i=-10,o=10);var s=2/(t-e),a=2/(r-n),l=-2/(o-i),u=-(t+e)/(t-e),c=-(r+n)/(r-n),f=-(o+i)/(o-i);(Ue=new Un).set(s,0,0,u,0,a,0,c,0,0,l,f,0,0,0,1);var d=new Un;d.set(Ue),d.transpose(),te.useProgram(de),h("projection2d",de,"uProjection",!1,d.array()),te.useProgram(fe),h("projection3d",fe,"uProjection",!1,d.array()),te.useProgram(he),h("uProjectionUS",he,"uProjection",!1,d.array()),!1},ee.printProjection=function(){Ue.print()},ee.printCamera=function(){Pe.print()},Mn.prototype.box=Pn.prototype.a3DOnlyFunction,In.prototype.box=function(e,t,n){t&&n||(t=n=e);var r=new Un;r.scale(e,t,n);var i=new Un;if(i.scale(1,-1,1),i.apply(Ie.array()),i.transpose(),Ve){if(te.useProgram(fe),h("model3d",fe,"uModel",!1,r.array()),h("view3d",fe,"uView",!1,i.array()),te.enable(te.POLYGON_OFFSET_FILL),te.polygonOffset(1,1),m("color3d",fe,"uColor",We),0<Gt){var o=new Un;o.set(i);var s=new Un;s.set(r),o.mult(s);var a=new Un;a.set(o),a.invert(),a.transpose(),h("uNormalTransform3d",fe,"uNormalTransform",!1,a.array()),d("aNormal3d",fe,"aNormal",3,ge)}else c("aNormal3d",fe,"aNormal");d("aVertex3d",fe,"aVertex",3,pe),c("aColor3d",fe,"aColor"),c("aTexture3d",fe,"aTexture"),te.drawArrays(te.TRIANGLES,0,yn.length/3),te.disable(te.POLYGON_OFFSET_FILL)}0<Ye&&ze&&(te.useProgram(de),h("uModel2d",de,"uModel",!1,r.array()),h("uView2d",de,"uView",!1,i.array()),m("uColor2d",de,"uColor",Ge),v("uIsDrawingText2d",de,"uIsDrawingText",!1),d("vertex2d",de,"aVertex",3,me),c("aTextureCoord2d",de,"aTextureCoord"),te.drawArrays(te.LINES,0,bn.length/3))};var zn=function(){var e,t,n,r;for(ke=[],e=0;e<Xt;e++)ke.push(0),ke.push(-1),ke.push(0),ke.push(Yt[e]),ke.push(Qt[e]),ke.push(Zt[e]);ke.push(0),ke.push(-1),ke.push(0),ke.push(Yt[0]),ke.push(Qt[0]),ke.push(Zt[0]);var i=0;for(e=2;e<qt;e++){t=n=i,r=i+=Xt;for(var o=0;o<Xt;o++)ke.push(Yt[t]),ke.push(Qt[t]),ke.push(Zt[t++]),ke.push(Yt[r]),ke.push(Qt[r]),ke.push(Zt[r++]);t=n,r=i,ke.push(Yt[t]),ke.push(Qt[t]),ke.push(Zt[t]),ke.push(Yt[r]),ke.push(Qt[r]),ke.push(Zt[r])}for(e=0;e<Xt;e++)r=i+e,ke.push(Yt[r]),ke.push(Qt[r]),ke.push(Zt[r]),ke.push(0),ke.push(1),ke.push(0);ke.push(Yt[i]),ke.push(Qt[i]),ke.push(Zt[i]),ke.push(0),ke.push(1),ke.push(0),te.bindBuffer(te.ARRAY_BUFFER,be),te.bufferData(te.ARRAY_BUFFER,new _r(ke),te.STATIC_DRAW)};ee.sphereDetail=function(e,t){var n;if(1===arguments.length&&(e=t=e),e<3&&(e=3),t<2&&(t=2),e!==Xt||t!==qt){var r=wr.SINCOS_LENGTH/e,i=new _r(e),o=new _r(e);for(n=0;n<e;n++)i[n]=en[n*r%wr.SINCOS_LENGTH|0],o[n]=Jt[n*r%wr.SINCOS_LENGTH|0];var s=e*(t-1)+2,a=0;Yt=new _r(s),Qt=new _r(s),Zt=new _r(s);var l=.5*wr.SINCOS_LENGTH/t,u=l;for(n=1;n<t;n++){for(var c=Jt[u%wr.SINCOS_LENGTH|0],f=-en[u%wr.SINCOS_LENGTH|0],d=0;d<e;d++)Yt[a]=i[d]*c,Qt[a]=f,Zt[a++]=o[d]*c;u+=l}Xt=e,qt=t,zn()}},Mn.prototype.sphere=Pn.prototype.a3DOnlyFunction,In.prototype.sphere=function(e){var t=e;(Xt<3||qt<2)&&ee.sphereDetail(30);var n=new Un;n.scale(t,t,t);var r=new Un;if(r.scale(1,-1,1),r.apply(Ie.array()),r.transpose(),Ve){if(0<Gt){var i=new Un;i.set(r);var o=new Un;o.set(n),i.mult(o);var s=new Un;s.set(i),s.invert(),s.transpose(),h("uNormalTransform3d",fe,"uNormalTransform",!1,s.array()),d("aNormal3d",fe,"aNormal",3,be)}else c("aNormal3d",fe,"aNormal");te.useProgram(fe),c("aTexture3d",fe,"aTexture"),h("uModel3d",fe,"uModel",!1,n.array()),h("uView3d",fe,"uView",!1,r.array()),d("aVertex3d",fe,"aVertex",3,be),c("aColor3d",fe,"aColor"),te.enable(te.POLYGON_OFFSET_FILL),te.polygonOffset(1,1),m("uColor3d",fe,"uColor",We),te.drawArrays(te.TRIANGLE_STRIP,0,ke.length/3),te.disable(te.POLYGON_OFFSET_FILL)}0<Ye&&ze&&(te.useProgram(de),h("uModel2d",de,"uModel",!1,n.array()),h("uView2d",de,"uView",!1,r.array()),d("aVertex2d",de,"aVertex",3,be),c("aTextureCoord2d",de,"aTextureCoord"),m("uColor2d",de,"uColor",Ge),v("uIsDrawingText",de,"uIsDrawingText",!1),te.drawArrays(te.LINE_STRIP,0,ke.length/3))},ee.modelX=function(e,t,n){var r=Ie.array(),i=Me.array(),o=r[0]*e+r[1]*t+r[2]*n+r[3],s=r[4]*e+r[5]*t+r[6]*n+r[7],a=r[8]*e+r[9]*t+r[10]*n+r[11],l=r[12]*e+r[13]*t+r[14]*n+r[15],u=i[0]*o+i[1]*s+i[2]*a+i[3]*l,c=i[12]*o+i[13]*s+i[14]*a+i[15]*l;return 0!==c?u/c:u},ee.modelY=function(e,t,n){var r=Ie.array(),i=Me.array(),o=r[0]*e+r[1]*t+r[2]*n+r[3],s=r[4]*e+r[5]*t+r[6]*n+r[7],a=r[8]*e+r[9]*t+r[10]*n+r[11],l=r[12]*e+r[13]*t+r[14]*n+r[15],u=i[4]*o+i[5]*s+i[6]*a+i[7]*l,c=i[12]*o+i[13]*s+i[14]*a+i[15]*l;return 0!==c?u/c:u},ee.modelZ=function(e,t,n){var r=Ie.array(),i=Me.array(),o=r[0]*e+r[1]*t+r[2]*n+r[3],s=r[4]*e+r[5]*t+r[6]*n+r[7],a=r[8]*e+r[9]*t+r[10]*n+r[11],l=r[12]*e+r[13]*t+r[14]*n+r[15],u=i[8]*o+i[9]*s+i[10]*a+i[11]*l,c=i[12]*o+i[13]*s+i[14]*a+i[15]*l;return 0!==c?u/c:u},Mn.prototype.ambient=Pn.prototype.a3DOnlyFunction,In.prototype.ambient=function(e,t,n){te.useProgram(fe),v("uUsingMat3d",fe,"uUsingMat",!0);var r=ee.color(e,t,n);m("uMaterialAmbient3d",fe,"uMaterialAmbient",ee.color.toGLArray(r).slice(0,3))},Mn.prototype.emissive=Pn.prototype.a3DOnlyFunction,In.prototype.emissive=function(e,t,n){te.useProgram(fe),v("uUsingMat3d",fe,"uUsingMat",!0);var r=ee.color(e,t,n);m("uMaterialEmissive3d",fe,"uMaterialEmissive",ee.color.toGLArray(r).slice(0,3))},Mn.prototype.shininess=Pn.prototype.a3DOnlyFunction,In.prototype.shininess=function(e){te.useProgram(fe),v("uUsingMat3d",fe,"uUsingMat",!0),m("uShininess3d",fe,"uShininess",e)},Mn.prototype.specular=Pn.prototype.a3DOnlyFunction,In.prototype.specular=function(e,t,n){te.useProgram(fe),v("uUsingMat3d",fe,"uUsingMat",!0);var r=ee.color(e,t,n);m("uMaterialSpecular3d",fe,"uMaterialSpecular",ee.color.toGLArray(r).slice(0,3))},ee.screenX=function(e,t,n){var r=Ie.array();if(16===r.length){var i=r[0]*e+r[1]*t+r[2]*n+r[3],o=r[4]*e+r[5]*t+r[6]*n+r[7],s=r[8]*e+r[9]*t+r[10]*n+r[11],a=r[12]*e+r[13]*t+r[14]*n+r[15],l=Ue.array(),u=l[0]*i+l[1]*o+l[2]*s+l[3]*a,c=l[12]*i+l[13]*o+l[14]*s+l[15]*a;return 0!==c&&(u/=c),ee.width*(1+u)/2}return Ie.multX(e,t)},ee.screenY=function Gn(e,t,n){var r=Ie.array();if(16===r.length){var i=r[0]*e+r[1]*t+r[2]*n+r[3],o=r[4]*e+r[5]*t+r[6]*n+r[7],s=r[8]*e+r[9]*t+r[10]*n+r[11],a=r[12]*e+r[13]*t+r[14]*n+r[15],l=Ue.array(),u=l[4]*i+l[5]*o+l[6]*s+l[7]*a,c=l[12]*i+l[13]*o+l[14]*s+l[15]*a;return 0!==c&&(u/=c),ee.height*(1+u)/2}return Ie.multY(e,t)}
13,ee.screenZ=function qn(e,t,n){var r=Ie.array();if(16!==r.length)return 0;var i=Ue.array(),o=r[0]*e+r[1]*t+r[2]*n+r[3],s=r[4]*e+r[5]*t+r[6]*n+r[7],a=r[8]*e+r[9]*t+r[10]*n+r[11],l=r[12]*e+r[13]*t+r[14]*n+r[15],u=i[8]*o+i[9]*s+i[10]*a+i[11]*l,c=i[12]*o+i[13]*s+i[14]*a+i[15]*l;return 0!==c&&(u/=c),(u+1)/2},Pn.prototype.fill=function(){var e=ee.color.apply(this,arguments);e===Ke&&Ve||(Ve=!0,Ke=e)},Mn.prototype.fill=function(){Pn.prototype.fill.apply(this,arguments),je=!0},In.prototype.fill=function(){Pn.prototype.fill.apply(this,arguments),We=ee.color.toGLArray(Ke)},ee.noFill=function(){Ve=!1},Pn.prototype.stroke=function(){var e=ee.color.apply(this,arguments);e===qe&&ze||(ze=!0,qe=e)},Mn.prototype.stroke=function(){Pn.prototype.stroke.apply(this,arguments),Xe=!0},In.prototype.stroke=function(){Pn.prototype.stroke.apply(this,arguments),Ge=ee.color.toGLArray(qe)},ee.noStroke=function(){ze=!1},Pn.prototype.strokeWeight=function(e){Ye=e},Mn.prototype.strokeWeight=function(e){Pn.prototype.strokeWeight.apply(this,arguments),te.lineWidth=e},In.prototype.strokeWeight=function(e){Pn.prototype.strokeWeight.apply(this,arguments),te.useProgram(de),m("pointSize2d",de,"uPointSize",e),te.useProgram(he),m("pointSizeUnlitShape",he,"uPointSize",e),te.lineWidth(e)},ee.strokeCap=function(e){re.$ensureContext().lineCap=e},ee.strokeJoin=function(e){re.$ensureContext().lineJoin=e},Mn.prototype.smooth=function(){Ze=!0;var e=Q.style;e.setProperty("image-rendering","optimizeQuality","important"),e.setProperty("-ms-interpolation-mode","bicubic","important"),te.hasOwnProperty("mozImageSmoothingEnabled")&&(te.mozImageSmoothingEnabled=!0)},In.prototype.smooth=function(){Ze=!0},Mn.prototype.noSmooth=function(){Ze=!1;var e=Q.style;e.setProperty("image-rendering","optimizeSpeed","important"),e.setProperty("image-rendering","-moz-crisp-edges","important"),e.setProperty("image-rendering","-webkit-optimize-contrast","important"),e.setProperty("image-rendering","optimize-contrast","important"),e.setProperty("-ms-interpolation-mode","nearest-neighbor","important"),te.hasOwnProperty("mozImageSmoothingEnabled")&&(te.mozImageSmoothingEnabled=!1)},In.prototype.noSmooth=function(){Ze=!1},Mn.prototype.point=function(e,t){ze&&(e=Math.round(e),t=Math.round(t),te.fillStyle=ee.color.toString(qe),je=!0,1<Ye?(te.beginPath(),te.arc(e,t,Ye/2,0,wr.TWO_PI,!1),te.fill()):te.fillRect(e,t,1,1))},In.prototype.point=function(e,t,n){var r=new Un;r.translate(e,t,n||0),r.transpose();var i=new Un;i.scale(1,-1,1),i.apply(Ie.array()),i.transpose(),te.useProgram(de),h("uModel2d",de,"uModel",!1,r.array()),h("uView2d",de,"uView",!1,i.array()),0<Ye&&ze&&(m("uColor2d",de,"uColor",Ge),v("uIsDrawingText2d",de,"uIsDrawingText",!1),v("uSmooth2d",de,"uSmooth",Ze),d("aVertex2d",de,"aVertex",3,Ae),c("aTextureCoord2d",de,"aTextureCoord"),te.drawArrays(te.POINTS,0,1))},ee.beginShape=function(e){ct=e,[],cn=[]},Mn.prototype.vertex=function(e,t,n){var r=[];gn&&(gn=!1),r.isVert=!0,r[0]=e,r[1]=t,r[2]=0,r[3]=0,r[4]=0,r[5]=Ke,r[6]=qe,cn.push(r),n&&(cn[cn.length-1].moveTo=n)},In.prototype.vertex=function(e,t,n,r,i){var o=[];gn&&(gn=!1),o.isVert=!0,i===gr&&Lt&&(i=r,r=n,n=0),r!==gr&&i!==gr&&(Dt===wr.IMAGE&&(r/=Ot.width,i/=Ot.height),r=(r=1<r?1:r)<0?0:r,i=(i=1<i?1:i)<0?0:i),o[0]=e,o[1]=t,o[2]=n||0,o[3]=r||0,o[4]=i||0,o[5]=We[0],o[6]=We[1],o[7]=We[2],o[8]=We[3],o[9]=Ge[0],o[10]=Ge[1],o[11]=Ge[2],o[12]=Ge[3],o[13]=rt,o[14]=it,o[15]=ot,cn.push(o)};var Xn=function(e,t){var n=new Un;n.scale(1,-1,1),n.apply(Ie.array()),n.transpose(),te.useProgram(he),h("uViewUS",he,"uView",!1,n.array()),v("uSmoothUS",he,"uSmooth",Ze),d("aVertexUS",he,"aVertex",3,Ae),te.bufferData(te.ARRAY_BUFFER,new _r(e),te.STREAM_DRAW),d("aColorUS",he,"aColor",4,Se),te.bufferData(te.ARRAY_BUFFER,new _r(t),te.STREAM_DRAW),te.drawArrays(te.POINTS,0,e.length/3)},Yn=function(e,t,n){var r;r="LINES"===t?te.LINES:"LINE_LOOP"===t?te.LINE_LOOP:te.LINE_STRIP;var i=new Un;i.scale(1,-1,1),i.apply(Ie.array()),i.transpose(),te.useProgram(he),h("uViewUS",he,"uView",!1,i.array()),d("aVertexUS",he,"aVertex",3,Ee),te.bufferData(te.ARRAY_BUFFER,new _r(e),te.STREAM_DRAW),d("aColorUS",he,"aColor",4,we),te.bufferData(te.ARRAY_BUFFER,new _r(n),te.STREAM_DRAW),te.drawArrays(r,0,e.length/3)},Qn=function(e,t,n,r){var i;i="TRIANGLES"===t?te.TRIANGLES:"TRIANGLE_FAN"===t?te.TRIANGLE_FAN:te.TRIANGLE_STRIP;var o=new Un;o.scale(1,-1,1),o.apply(Ie.array()),o.transpose(),te.useProgram(fe),h("model3d",fe,"uModel",!1,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),h("view3d",fe,"uView",!1,o.array()),te.enable(te.POLYGON_OFFSET_FILL),te.polygonOffset(1,1),m("color3d",fe,"uColor",[-1,0,0,0]),d("vertex3d",fe,"aVertex",3,Te),te.bufferData(te.ARRAY_BUFFER,new _r(e),te.STREAM_DRAW),Lt&&null!==wt&&At(n),d("aColor3d",fe,"aColor",4,Se),te.bufferData(te.ARRAY_BUFFER,new _r(n),te.STREAM_DRAW),c("aNormal3d",fe,"aNormal"),Lt&&(v("uUsingTexture3d",fe,"uUsingTexture",Lt),d("aTexture3d",fe,"aTexture",2,Ce),te.bufferData(te.ARRAY_BUFFER,new _r(r),te.STREAM_DRAW)),te.drawArrays(i,0,e.length/3),te.disable(te.POLYGON_OFFSET_FILL)};Mn.prototype.endShape=function(e){if(0!==cn.length){var t=e===wr.CLOSE;t&&cn.push(cn[0]);var n,r,i,o=[],s=[],a=[],l=[];gn=!0;var u=cn.length;for(r=0;r<u;r++)for(n=cn[r],i=0;i<3;i++)o.push(n[i]);for(r=0;r<u;r++)for(n=cn[r],i=5;i<9;i++)s.push(n[i]);for(r=0;r<u;r++)for(n=cn[r],i=9;i<13;i++)a.push(n[i]);for(r=0;r<u;r++)n=cn[r],l.push(n[3]),l.push(n[4]);if(!hn||ct!==wr.POLYGON&&ct!==gr)if(!pn||ct!==wr.POLYGON&&ct!==gr)if(ct===wr.POINTS)for(r=0;r<u;r++)n=cn[r],ze&&ee.stroke(n[6]),ee.point(n[0],n[1]);else if(ct===wr.LINES)for(r=0;r+1<u;r+=2)n=cn[r],ze&&ee.stroke(cn[r+1][6]),ee.line(n[0],n[1],cn[r+1][0],cn[r+1][1]);else if(ct===wr.TRIANGLES)for(r=0;r+2<u;r+=3)n=cn[r],te.beginPath(),te.moveTo(n[0],n[1]),te.lineTo(cn[r+1][0],cn[r+1][1]),te.lineTo(cn[r+2][0],cn[r+2][1]),te.lineTo(n[0],n[1]),Ve&&(ee.fill(cn[r+2][5]),C()),ze&&(ee.stroke(cn[r+2][6]),x()),te.closePath();else if(ct===wr.TRIANGLE_STRIP)for(r=0;r+1<u;r++)n=cn[r],te.beginPath(),te.moveTo(cn[r+1][0],cn[r+1][1]),te.lineTo(n[0],n[1]),ze&&ee.stroke(cn[r+1][6]),Ve&&ee.fill(cn[r+1][5]),r+2<u&&(te.lineTo(cn[r+2][0],cn[r+2][1]),ze&&ee.stroke(cn[r+2][6]),Ve&&ee.fill(cn[r+2][5])),E();else if(ct===wr.TRIANGLE_FAN){if(2<u)for(te.beginPath(),te.moveTo(cn[0][0],cn[0][1]),te.lineTo(cn[1][0],cn[1][1]),te.lineTo(cn[2][0],cn[2][1]),Ve&&(ee.fill(cn[2][5]),C()),ze&&(ee.stroke(cn[2][6]),x()),te.closePath(),r=3;r<u;r++)n=cn[r],te.beginPath(),te.moveTo(cn[0][0],cn[0][1]),te.lineTo(cn[r-1][0],cn[r-1][1]),te.lineTo(n[0],n[1]),Ve&&(ee.fill(n[5]),C()),ze&&(ee.stroke(n[6]),x()),te.closePath()}else if(ct===wr.QUADS)for(r=0;r+3<u;r+=4){for(n=cn[r],te.beginPath(),te.moveTo(n[0],n[1]),i=1;i<4;i++)te.lineTo(cn[r+i][0],cn[r+i][1]);te.lineTo(n[0],n[1]),Ve&&(ee.fill(cn[r+3][5]),C()),ze&&(ee.stroke(cn[r+3][6]),x()),te.closePath()}else if(ct===wr.QUAD_STRIP){if(3<u)for(r=0;r+1<u;r+=2)n=cn[r],te.beginPath(),r+3<u?(te.moveTo(cn[r+2][0],cn[r+2][1]),te.lineTo(n[0],n[1]),te.lineTo(cn[r+1][0],cn[r+1][1]),te.lineTo(cn[r+3][0],cn[r+3][1]),Ve&&ee.fill(cn[r+3][5]),ze&&ee.stroke(cn[r+3][6])):(te.moveTo(n[0],n[1]),te.lineTo(cn[r+1][0],cn[r+1][1])),E()}else{for(te.beginPath(),te.moveTo(cn[0][0],cn[0][1]),r=1;r<u;r++)(n=cn[r]).isVert&&(n.moveTo?te.moveTo(n[0],n[1]):te.lineTo(n[0],n[1]));E()}else{for(te.beginPath(),r=0;r<u;r++)n=cn[r],cn[r].isVert?cn[r].moveTo?te.moveTo(n[0],n[1]):te.lineTo(n[0],n[1]):te.bezierCurveTo(cn[r][0],cn[r][1],cn[r][2],cn[r][3],cn[r][4],cn[r][5]);E()}else if(3<u){var c=[],f=1-ft;for(te.beginPath(),te.moveTo(cn[1][0],cn[1][1]),r=1;r+2<u;r++)n=cn[r],c[0]=[n[0],n[1]],c[1]=[n[0]+(f*cn[r+1][0]-f*cn[r-1][0])/6,n[1]+(f*cn[r+1][1]-f*cn[r-1][1])/6],c[2]=[cn[r+1][0]+(f*cn[r][0]-f*cn[r+2][0])/6,cn[r+1][1]+(f*cn[r][1]-f*cn[r+2][1])/6],c[3]=[cn[r+1][0],cn[r+1][1]],te.bezierCurveTo(c[1][0],c[1][1],c[2][0],c[2][1],c[3][0],c[3][1]);E()}pn=hn=!1,fn=[],dn=0,t&&cn.pop()}},In.prototype.endShape=function(e){if(0!==cn.length){var t,n,r,i,o=e===wr.CLOSE,s=[],a=[],l=[],u=[],c=[];gn=!0;var f=cn.length;for(n=0;n<f;n++)for(t=cn[n],r=0;r<3;r++)a.push(t[r]);for(n=0;n<f;n++)for(t=cn[n],r=5;r<9;r++)l.push(t[r]);for(n=0;n<f;n++)for(t=cn[n],r=9;r<13;r++)u.push(t[r]);for(n=0;n<f;n++)t=cn[n],c.push(t[3]),c.push(t[4]);if(o){for(a.push(cn[0][0]),a.push(cn[0][1]),a.push(cn[0][2]),n=5;n<9;
13n++)l.push(cn[0][n]);for(n=9;n<13;n++)u.push(cn[0][n]);c.push(cn[0][3]),c.push(cn[0][4])}if(!hn||ct!==wr.POLYGON&&ct!==gr)if(!pn||ct!==wr.POLYGON&&ct!==gr){if(ct===wr.POINTS){for(n=0;n<f;n++)for(t=cn[n],r=0;r<3;r++)s.push(t[r]);Xn(s,u)}else if(ct===wr.LINES){for(n=0;n<f;n++)for(t=cn[n],r=0;r<3;r++)s.push(t[r]);for(n=0;n<f;n++)for(t=cn[n],r=5;r<9;r++)l.push(t[r]);Yn(s,"LINES",u)}else if(ct===wr.TRIANGLES){if(2<f)for(n=0;n+2<f;n+=3){for(a=[],c=[],s=[],l=[],u=[],r=0;r<3;r++)for(i=0;i<3;i++)s.push(cn[n+r][i]),a.push(cn[n+r][i]);for(r=0;r<3;r++)for(i=3;i<5;i++)c.push(cn[n+r][i]);for(r=0;r<3;r++)for(i=5;i<9;i++)l.push(cn[n+r][i]),u.push(cn[n+r][i+4]);ze&&Yn(s,"LINE_LOOP",u),(Ve||Lt)&&Qn(a,"TRIANGLES",l,c)}}else if(ct===wr.TRIANGLE_STRIP){if(2<f)for(n=0;n+2<f;n++){for(s=[],a=[],u=[],l=[],c=[],r=0;r<3;r++)for(i=0;i<3;i++)s.push(cn[n+r][i]),a.push(cn[n+r][i]);for(r=0;r<3;r++)for(i=3;i<5;i++)c.push(cn[n+r][i]);for(r=0;r<3;r++)for(i=5;i<9;i++)u.push(cn[n+r][i+4]),l.push(cn[n+r][i]);(Ve||Lt)&&Qn(a,"TRIANGLE_STRIP",l,c),ze&&Yn(s,"LINE_LOOP",u)}}else if(ct===wr.TRIANGLE_FAN){if(2<f){for(n=0;n<3;n++)for(t=cn[n],r=0;r<3;r++)s.push(t[r]);for(n=0;n<3;n++)for(t=cn[n],r=9;r<13;r++)u.push(t[r]);for(ze&&Yn(s,"LINE_LOOP",u),n=2;n+1<f;n++){for(u=[],(s=[]).push(cn[0][0]),s.push(cn[0][1]),s.push(cn[0][2]),u.push(cn[0][9]),u.push(cn[0][10]),u.push(cn[0][11]),u.push(cn[0][12]),r=0;r<2;r++)for(i=0;i<3;i++)s.push(cn[n+r][i]);for(r=0;r<2;r++)for(i=9;i<13;i++)u.push(cn[n+r][i]);ze&&Yn(s,"LINE_STRIP",u)}(Ve||Lt)&&Qn(a,"TRIANGLE_FAN",l,c)}}else if(ct===wr.QUADS)for(n=0;n+3<f;n+=4){for(s=[],r=0;r<4;r++)for(t=cn[n+r],i=0;i<3;i++)s.push(t[i]);if(ze&&Yn(s,"LINE_LOOP",u),Ve){for(a=[],l=[],c=[],r=0;r<3;r++)a.push(cn[n][r]);for(r=5;r<9;r++)l.push(cn[n][r]);for(r=0;r<3;r++)a.push(cn[n+1][r]);for(r=5;r<9;r++)l.push(cn[n+1][r]);for(r=0;r<3;r++)a.push(cn[n+3][r]);for(r=5;r<9;r++)l.push(cn[n+3][r]);for(r=0;r<3;r++)a.push(cn[n+2][r]);for(r=5;r<9;r++)l.push(cn[n+2][r]);Lt&&(c.push(cn[n+0][3]),c.push(cn[n+0][4]),c.push(cn[n+1][3]),c.push(cn[n+1][4]),c.push(cn[n+3][3]),c.push(cn[n+3][4]),c.push(cn[n+2][3]),c.push(cn[n+2][4])),Qn(a,"TRIANGLE_STRIP",l,c)}}else if(ct===wr.QUAD_STRIP){if(3<f){for(n=0;n<2;n++)for(t=cn[n],r=0;r<3;r++)s.push(t[r]);for(n=0;n<2;n++)for(t=cn[n],r=9;r<13;r++)u.push(t[r]);for(Yn(s,"LINE_STRIP",u),4<f&&0<f%2&&(a.splice(a.length-3),cn.pop()),n=0;n+3<f;n+=2){for(s=[],u=[],r=0;r<3;r++)s.push(cn[n+1][r]);for(r=0;r<3;r++)s.push(cn[n+3][r]);for(r=0;r<3;r++)s.push(cn[n+2][r]);for(r=0;r<3;r++)s.push(cn[n+0][r]);for(r=9;r<13;r++)u.push(cn[n+1][r]);for(r=9;r<13;r++)u.push(cn[n+3][r]);for(r=9;r<13;r++)u.push(cn[n+2][r]);for(r=9;r<13;r++)u.push(cn[n+0][r]);ze&&Yn(s,"LINE_STRIP",u)}(Ve||Lt)&&Qn(a,"TRIANGLE_LIST",l,c)}}else if(1===f){for(r=0;r<3;r++)s.push(cn[0][r]);for(r=9;r<13;r++)u.push(cn[0][r]);Xn(s,u)}else{for(n=0;n<f;n++){for(t=cn[n],r=0;r<3;r++)s.push(t[r]);for(r=5;r<9;r++)u.push(t[r])}ze&&o?Yn(s,"LINE_LOOP",u):ze&&!o&&Yn(s,"LINE_STRIP",u),(Ve||Lt)&&Qn(a,"TRIANGLE_FAN",l,c)}Lt=!1,te.useProgram(fe),v("usingTexture3d",fe,"uUsingTexture",Lt)}else(s=a).splice(s.length-3),u.splice(u.length-4),ze&&Yn(s,null,u),Ve&&Qn(a,"TRIANGLES",l);else s=a,ze&&Yn(s,null,u),Ve&&Qn(a,null,l);pn=hn=!1,fn=[],dn=0}};var Zn=function(e,t){var n=1/e,r=n*n,i=r*n;t.set(0,0,0,1,i,r,n,0,6*i,2*r,0,0,6*i,0,0,0)},Jn=function(){ae||(oe=new Un,ae=new Un,ht=!0);var e=ft;oe.set((e-1)/2,(e+3)/2,(-3-e)/2,(1-e)/2,1-e,(-5-e)/2,e+2,(e-1)/2,(e-1)/2,0,(1-e)/2,0,0,1,0,0),Zn(dt,ae),ue||(se=new Un),se.set(oe),se.preApply(ue),ae.apply(oe)};Mn.prototype.bezierVertex=function(){pn=!0;var e=[];if(gn)throw"vertex() must be used at least once before calling bezierVertex()";for(var t=0;t<arguments.length;t++)e[t]=arguments[t];cn.push(e),cn[cn.length-1].isVert=!1},In.prototype.bezierVertex=function(e,t,n,r,i,o,s,a,l){pn=!0;if(gn)throw"vertex() must be used at least once before calling bezierVertex()";if(9===arguments.length){le===gr&&(le=new Un);var u=cn.length-1;Zn(gt,le),le.apply(ce);for(var c=le.array(),f=cn[u][0],d=cn[u][1],h=cn[u][2],p=c[4]*f+c[5]*e+c[6]*r+c[7]*s,g=c[8]*f+c[9]*e+c[10]*r+c[11]*s,m=c[12]*f+c[13]*e+c[14]*r+c[15]*s,v=c[4]*d+c[5]*t+c[6]*i+c[7]*a,y=c[8]*d+c[9]*t+c[10]*i+c[11]*a,b=c[12]*d+c[13]*t+c[14]*i+c[15]*a,E=c[4]*h+c[5]*n+c[6]*o+c[7]*l,T=c[8]*h+c[9]*n+c[10]*o+c[11]*l,S=c[12]*h+c[13]*n+c[14]*o+c[15]*l,w=0;w<gt;w++)f+=p,p+=g,g+=m,d+=v,v+=y,y+=b,h+=E,E+=T,T+=S,ee.vertex(f,d,h);ee.vertex(s,a,l)}},ee.texture=function(e){var t=re.$ensureContext();if(e.__texture)t.bindTexture(t.TEXTURE_2D,e.__texture);else if("canvas"===e.localName)t.bindTexture(t.TEXTURE_2D,xe),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.generateMipmap(t.TEXTURE_2D),Ot.width=e.width,Ot.he
13ight=e.height;else{var n,r=t.createTexture(),i=Tr.createElement("canvas"),o=i.getContext("2d");if(e.width&e.width-1==0)i.width=e.width;else{for(n=1;n<e.width;)n*=2;i.width=n}if(e.height&e.height-1==0)i.height=e.height;else{for(n=1;n<e.height;)n*=2;i.height=n}o.drawImage(e.sourceImg,0,0,e.width,e.height,0,0,i.width,i.height),t.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,i),t.generateMipmap(t.TEXTURE_2D),e.__texture=r,Ot.width=e.width,Ot.height=e.height}Lt=!0,t.useProgram(fe),v("usingTexture3d",fe,"uUsingTexture",Lt)},ee.textureMode=function(e){Dt=e};var er=function(e,t,n,r,i,o,s,a,l,u,c,f){var d=r,h=i,p=o,g=ae.array(),m=g[4]*e+g[5]*r+g[6]*s+g[7]*u,v=g[8]*e+g[9]*r+g[10]*s+g[11]*u,y=g[12]*e+g[13]*r+g[14]*s+g[15]*u,b=g[4]*t+g[5]*i+g[6]*a+g[7]*c,E=g[8]*t+g[9]*i+g[10]*a+g[11]*c,T=g[12]*t+g[13]*i+g[14]*a+g[15]*c,S=g[4]*n+g[5]*o+g[6]*l+g[7]*f,w=g[8]*n+g[9]*o+g[10]*l+g[11]*f,A=g[12]*n+g[13]*o+g[14]*l+g[15]*f;ee.vertex(d,h,p);for(var C=0;C<dt;C++)d+=m,m+=v,v+=y,h+=b,b+=E,E+=T,p+=S,S+=w,w+=A,ee.vertex(d,h,p)};Mn.prototype.curveVertex=function(e,t){hn=!0,ee.vertex(e,t)},In.prototype.curveVertex=function(e,t,n){hn=!0,ht||Jn();var r=[];r[0]=e,r[1]=t,r[2]=n,fn.push(r),3<++dn&&er(fn[dn-4][0],fn[dn-4][1],fn[dn-4][2],fn[dn-3][0],fn[dn-3][1],fn[dn-3][2],fn[dn-2][0],fn[dn-2][1],fn[dn-2][2],fn[dn-1][0],fn[dn-1][1],fn[dn-1][2])},Mn.prototype.curve=function(e,t,n,r,i,o,s,a){ee.beginShape(),ee.curveVertex(e,t),ee.curveVertex(n,r),ee.curveVertex(i,o),ee.curveVertex(s,a),ee.endShape()},In.prototype.curve=function(e,t,n,r,i,o,s,a,l,u,c,f){if(f!==gr)return ee.beginShape(),ee.curveVertex(e,t,n),ee.curveVertex(r,i,o),ee.curveVertex(s,a,l),ee.curveVertex(u,c,f),void ee.endShape();ee.beginShape(),ee.curveVertex(e,t),ee.curveVertex(n,r),ee.curveVertex(i,o),ee.curveVertex(s,a),ee.endShape()},ee.curveTightness=function(e){ft=e},ee.curveDetail=function(e){dt=e,Jn()},ee.rectMode=function(e){tt=e},ee.imageMode=function(e){switch(e){case wr.CORNER:Ln=Dn;break;case wr.CORNERS:Ln=Rn;break;case wr.CENTER:Ln=kn;break;default:throw"Invalid imageMode"}},ee.ellipseMode=function(e){nt=e},ee.arc=function(e,t,n,r,i,o){if(!(n<=0||o<i)){for(nt===wr.CORNERS?(n-=e,r-=t):nt===wr.RADIUS?(e-=n,t-=r,n*=2,r*=2):nt===wr.CENTER&&(e-=n/2,t-=r/2);i<0;)i+=wr.TWO_PI,o+=wr.TWO_PI;o-i>wr.TWO_PI&&(i=0,o=wr.TWO_PI);var s,a,l=n/2,u=r/2,c=e+l,f=t+u,d=0|.5+i*ee.RAD_TO_DEG*2,h=0|.5+o*ee.RAD_TO_DEG*2;if(Ve){var p=ze;for(ze=!1,ee.beginShape(),ee.vertex(c,f),s=d;s<=h;s++)a=s%wr.SINCOS_LENGTH,ee.vertex(c+en[a]*l,f+Jt[a]*u);ee.endShape(wr.CLOSE),ze=p}if(ze){var g=Ve;for(Ve=!1,ee.beginShape(),s=d;s<=h;s++)a=s%wr.SINCOS_LENGTH,ee.vertex(c+en[a]*l,f+Jt[a]*u);ee.endShape(),Ve=g}}},Mn.prototype.line=function(e,t,n,r){if(ze)if(e=Math.round(e),n=Math.round(n),t=Math.round(t),r=Math.round(r),e!==n||t!==r){for(var i=gr,o=gr,s=!0,a=Ie.array(),l=[1,0,0,0,1,0],u=0;u<6&&s;u++)s=a[u]===l[u];s&&(e===n?(r<t&&(i=t,t=r,r=i),r++,Ye%2==1&&te.translate(.5,0)):t===r&&(n<e&&(i=e,e=n,n=i),n++,Ye%2==1&&te.translate(0,.5)),1===Ye&&(o=te.lineCap,te.lineCap="butt")),te.beginPath(),te.moveTo(e||0,t||0),te.lineTo(n||0,r||0),x(),s&&(e===n&&Ye%2==1?te.translate(-.5,0):t===r&&Ye%2==1&&te.translate(0,-.5),1===Ye&&(te.lineCap=o))}else ee.point(e,t)},In.prototype.line=function(e,t,n,r,i,o){if(i!==gr&&o!==gr||(i=r,r=n,n=o=0),e!==r||t!==i||n!==o){var s=[e,t,n,r,i,o],a=new Un;a.scale(1,-1,1),a.apply(Ie.array()),a.transpose(),0<Ye&&ze&&(te.useProgram(de),h("uModel2d",de,"uModel",!1,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),h("uView2d",de,"uView",!1,a.array()),m("uColor2d",de,"uColor",Ge),v("uIsDrawingText",de,"uIsDrawingText",!1),d("aVertex2d",de,"aVertex",3,Ee),c("aTextureCoord2d",de,"aTextureCoord"),te.bufferData(te.ARRAY_BUFFER,new _r(s),te.STREAM_DRAW),te.drawArrays(te.LINES,0,2))}else ee.point(e,t,n)},Mn.prototype.bezier=function(e,t,n,r,i,o,s,a){if(8!==arguments.length)throw"You must use 8 parameters for bezier() in 2D mode";ee.beginShape(),ee.vertex(e,t),ee.bezierVertex(n,r,i,o,s,a),ee.endShape()},In.prototype.bezier=function(e,t,n,r,i,o,s,a,l,u,c,f){if(12!==arguments.length)throw"You must use 12 parameters for bezier() in 3D mode";ee.beginShape(),ee.vertex(e,t,n),ee.bezierVertex(r,i,o,s,a,l,u,c,f),ee.endShape()},ee.bezierDetail=function(e){gt=e},ee.bezierPoint=function(e,t,n,r,i){return(1-i)*(1-i)*(1-i)*e+3*(1-i)*(1-i)*i*t+3*(1-i)*i*i*n+i*i*i*r},ee.bezierTangent=function(e,t,n,r,i){return 3*i*i*(3*t-e-3*n+r)+6*i*(e-2*t+n)+3*(-e+t)},ee.curvePoint=function(e,t,n,r,i){return.5*(2*t+(-e+n)*i+(2*e-5*t+4*n-r)*i*i+(3*t-e-3*n+r)*i*i*i)},ee.curveTangent=function(e,t,n,r,i){return.5*(-e+n+2*(2*e-5*t+4*n-r)*i+3*(3*t-e-3*n+r)*i*i)},ee.triangle=function(e,t,n,r,i,o){ee.beginShape(wr.TRIANGLES),ee.vertex(e,t,0),ee.vertex(n,r,0),ee.vertex(i,o,0),ee.endShape()},ee.quad=function(e,t,n,r,i,o,s,a){ee.beginShape(wr.QUADS),ee.vertex(e,t,0),ee.vertex(n,r,0),ee.vertex(i,o,0),ee.vertex(s,a,0),ee.endShape()};var tr=function(e,t,n,r,i,o,s,a){a===gr&&(a=s=o=i);var l=n/2,u=r/2;(l<i||u<i)&&(i=Math.min(l,u)),(l<o||u<o)&&(o=Math.min(l,u)),(l<s||u<s)&&(s=Math.min(l,u)),(l<a||u<a)&&
13(a=Math.min(l,u)),Ve&&!ze||te.translate(.5,.5),te.beginPath(),te.moveTo(e+i,t),te.lineTo(e+n-o,t),te.quadraticCurveTo(e+n,t,e+n,t+o),te.lineTo(e+n,
14t+r-s),te.quadraticCurveTo(e+n,t+r,e+n-s,t+r),te.lineTo(e+a,t+r),te.quadraticCurveTo(e,t+r,e,t+r-a),te.lineTo(e,t+i),te.quadraticCurveTo(e,t,e+i,t),Ve&&!ze||te.translate(-.5,-.5),C(),x()};Mn.prototype.rect=function(e,t,n,r,i,o,s,a){(n||r)&&(tt===wr.CORNERS?(n-=e,r-=t):tt===wr.RADIUS?(e-=(n*=2)/2,t-=(r*=2)/2):tt===wr.CENTER&&(e-=n/2,t-=r/2),e=Math.round(e),t=Math.round(t),n=Math.round(n),r=Math.round(r),i===gr?(ze&&Ye%2==1&&te.translate(.5,.5),te.beginPath(),te.rect(e,t,n,r),C(),x(),ze&&Ye%2==1&&te.translate(-.5,-.5)):tr(e,t,n,r,i,o,s,a))},In.prototype.rect=function(e,t,n,r,i){if(i!==gr)throw"rect() with rounded corners is not supported in 3D mode";tt===wr.CORNERS?(n-=e,r-=t):tt===wr.RADIUS?(e-=(n*=2)/2,t-=(r*=2)/2):tt===wr.CENTER&&(e-=n/2,t-=r/2);var o=new Un;o.translate(e,t,0),o.scale(n,r,1),o.transpose();var s=new Un;if(s.scale(1,-1,1),s.apply(Ie.array()),s.transpose(),0<Ye&&ze&&(te.useProgram(de),h("uModel2d",de,"uModel",!1,o.array()),h("uView2d",de,"uView",!1,s.array()),m("uColor2d",de,"uColor",Ge),v("uIsDrawingText2d",de,"uIsDrawingText",!1),d("aVertex2d",de,"aVertex",3,ve),c("aTextureCoord2d",de,"aTextureCoord"),te.drawArrays(te.LINE_LOOP,0,Tn.length/3)),Ve){if(te.useProgram(fe),h("uModel3d",fe,"uModel",!1,o.array()),h("uView3d",fe,"uView",!1,s.array()),te.enable(te.POLYGON_OFFSET_FILL),te.polygonOffset(1,1),m("color3d",fe,"uColor",We),0<Gt){var a=new Un;a.set(s);var l=new Un;l.set(o),a.mult(l);var u=new Un;u.set(a),u.invert(),u.transpose(),h("uNormalTransform3d",fe,"uNormalTransform",!1,u.array()),d("aNormal3d",fe,"aNormal",3,ye)}else c("normal3d",fe,"aNormal");d("vertex3d",fe,"aVertex",3,ve),te.drawArrays(te.TRIANGLE_FAN,0,Tn.length/3),te.disable(te.POLYGON_OFFSET_FILL)}},Mn.prototype.ellipse=function(e,t,n,r){if(e=e||0,t=t||0,!(n<=0&&r<=0))if(nt===wr.RADIUS?(n*=2,r*=2):nt===wr.CORNERS?(e+=(n-=e)/2,t+=(r-=t)/2):nt===wr.CORNER&&(e+=n/2,t+=r/2),n===r)te.beginPath(),te.arc(e,t,n/2,0,wr.TWO_PI,!1),C(),x();else{var i=n/2,o=r/2,s=.5522847498307933,a=s*i,l=s*o;ee.beginShape(),ee.vertex(e+i,t),ee.bezierVertex(e+i,t-l,e+a,t-o,e,t-o),ee.bezierVertex(e-a,t-o,e-i,t-l,e-i,t),ee.bezierVertex(e-i,t+l,e-a,t+o,e,t+o),ee.bezierVertex(e+a,t+o,e+i,t+l,e+i,t),ee.endShape()}},In.prototype.ellipse=function(e,t,n,r){if(e=e||0,t=t||0,!(n<=0&&r<=0)){nt===wr.RADIUS?(n*=2,r*=2):nt===wr.CORNERS?(e+=(n-=e)/2,t+=(r-=t)/2):nt===wr.CORNER&&(e+=n/2,t+=r/2);var i=n/2,o=r/2,s=.5522847498307933,a=s*i,l=s*o;if(ee.beginShape(),ee.vertex(e+i,t),ee.bezierVertex(e+i,t-l,0,e+a,t-o,0,e,t-o,0),ee.bezierVertex(e-a,t-o,0,e-i,t-l,0,e-i,t,0),ee.bezierVertex(e-i,t+l,0,e-a,t+o,0,e,t+o,0),ee.bezierVertex(e+a,t+o,0,e+i,t+l,0,e+i,t,0),ee.endShape(),Ve){var u,c,f=0,d=0;for(u=0;u<cn.length;u++)f+=cn[u][0],d+=cn[u][1];f/=cn.length,d/=cn.length;var h=[],p=[],g=[];for(h[0]=f,h[1]=d,h[2]=0,h[3]=0,h[4]=0,h[5]=We[0],h[6]=We[1],h[7]=We[2],h[8]=We[3],h[9]=Ge[0],h[10]=Ge[1],h[11]=Ge[2],h[12]=Ge[3],h[13]=rt,h[14]=it,h[15]=ot,cn.unshift(h),u=0;u<cn.length;u++){for(c=0;c<3;c++)p.push(cn[u][c]);for(c=5;c<9;c++)g.push(cn[u][c])}Qn(p,"TRIANGLE_FAN",g)}}},ee.normal=function(e,t,n){if(3!==arguments.length||"number"!=typeof e||"number"!=typeof t||"number"!=typeof n)throw"normal() requires three numeric arguments.";rt=e,it=t,ot=n,0!==ct&&(st===wr.NORMAL_MODE_AUTO?st=wr.NORMAL_MODE_SHAPE:st===wr.NORMAL_MODE_SHAPE&&(st=wr.NORMAL_MODE_VERTEX))},ee.save=function(e,t){return t!==gr?Er.open(t.toDataURL(),"_blank"):Er.open(ee.externals.canvas.toDataURL(),"_blank")};var nr=0;ee.saveFrame=function(e){e===gr&&(e="screen-####.png");var t=e.replace(/#+/,function(e){for(var t=""+nr++;t.length<e.length;)t="0"+t;return t});ee.save(t)};var rr=Tr.createElement("canvas").getContext("2d"),ir=[gr,gr,gr],or=function(e,t,n){if(this.__isDirty=!1,e instanceof Cr)this.fromHTMLImageData(e);else if(t||n){this.width=e||1,this.height=t||1;var r=this.sourceImg=Tr.createElement("canvas");r.width=this.width,r.height=this.height;this.imageData=r.getContext("2d").createImageData(this.width,this.height);if(this.format=n===wr.ARGB||n===wr.ALPHA?n:wr.RGB,this.format===wr.RGB)for(var i=3,o=this.imageData.data,s=o.length;i<s;i+=4)o[i]=255;this.__isDirty=!0,this.updatePixels()}else this.width=0,this.height=0,this.imageData=rr.createImageData(1,1),this.format=wr.ARGB;this.pixels=_(this)};or.prototype={__isPImage:!0,updatePixels:function(){var e=this.sourceImg;e&&e instanceof Ar&&this.__isDirty&&e.getContext("2d").putImageData(this.imageData,0,0),this.__isDirty=!1},fromHTMLImageData:function(t){var n=S(t);try{var r=n.context.getImageData(0,0,t.width,t.height);this.fromImageData(r)}catch(e){t.width&&t.height&&(this.isRemote=!0,this.width=t.width,this.height=t.height)}this.sourceImg=t},get:function(e,t,n,r){return arguments.length?2===arguments.length?ee.get(e,t,this):4===arguments.length?ee.get(e,t,n,r,this):void 0:ee.get(this)},set:function(e,t,n){ee.set(e,t,n,this),this.__isDirty=!0},blend:function(e,t,n,r,i,o,s,a,l,u){9===arguments.length?ee.blend(this,e,t,n,r,i,o,s,a,l,this):10===arguments.length&&ee.blend(e,t,n,r,i,o,s,a,l,u,this),delete this.sourceImg}
14,copy:function(e,t,n,r,i,o,s,a,l){8===arguments.length?ee.blend(this,e,t,n,r,i,o,s,a,wr.REPLACE,this):9===arguments.length&&ee.blend(e,t,n,r,i,o,s,a,l,wr.REPLACE,this),delete this.sourceImg},filter:function(e,t){2===arguments.length?ee.filter(e,t,this):1===arguments.length&&ee.filter(e,null,this),delete this.sourceImg},save:function(e){ee.save(e,this)},resize:function(e,t){if(this.isRemote)throw"Image is loaded remotely. Cannot resize.";if(0!==this.width||0!==this.height){0===e&&0!==t?e=Math.floor(this.width/this.height*t):0===t&&0!==e&&(t=Math.floor(this.height/this.width*e));var n=S(S(this.imageData).canvas,e,t).context.getImageData(0,0,e,t);this.fromImageData(n)}},mask:function(e){var t,n,r=this.toImageData();if(e instanceof or||e.__isPImage){if(e.width!==this.width||e.height!==this.height)throw"mask must have the same dimensions as PImage.";for(e=e.toImageData(),t=2,n=this.width*this.height*4;t<n;t+=4)r.data[t+1]=e.data[t]}else if(e instanceof Array){if(this.width*this.height!==e.length)throw"mask array must be the same length as PImage pixels array.";for(t=0,n=e.length;t<n;++t)r.data[4*t+3]=e[t]}this.fromImageData(r)},loadPixels:Sr,toImageData:function(){return this.isRemote?this.sourceImg:this.__isDirty?S(this.sourceImg).context.getImageData(0,0,this.width,this.height):this.imageData},toDataURL:function(){if(this.isRemote)throw"Image is loaded remotely. Cannot create dataURI.";return S(this.imageData).canvas.toDataURL()},fromImageData:function(e){var t=e.width,n=e.height,r=Tr.createElement("canvas"),i=r.getContext("2d");this.width=r.width=t,this.height=r.height=n,i.putImageData(e,0,0),this.format=wr.ARGB,this.imageData=e,this.sourceImg=r}},ee.PImage=or,ee.createImage=function(e,t,n){return new or(e,t,n)},ee.loadImage=function(e,t,n){var r;if(ne.imageCache.images[e])return(r=new or(ne.imageCache.images[e])).loaded=!0,r;r=new or;var i,o,s,a=Tr.createElement("img");return(r.sourceImg=a).onload=(i=a,o=r,s=n,function(){o.fromHTMLImageData(i),o.loaded=!0,s&&s()}),a.src=e,r},ee.requestImage=ee.loadImage,ee.get=function(e,t,n,r,i){return i!==undefined?L(e,t,n,r,i):r!==undefined?D(e,t,n,r):n!==undefined?O(e,t,n):t!==undefined?N(e,t):e!==undefined?L(0,0,e.width,e.height,e):D(0,0,ee.width,ee.height)},ee.createGraphics=function(e,t,n){var r=new kr;return r.size(e,t,n),r.background(0,0),r},ee.set=function(e,t,n,r){3===arguments.length?"number"==typeof n?M(e,t,n):(n instanceof or||n.__isPImage)&&ee.image(n,e,t):4===arguments.length&&I(e,t,n,r)},ee.imageData={},ee.pixels={getLength:function(){return ee.imageData.data.length?ee.imageData.data.length/4:0},getPixel:function(e){var t=4*e,n=ee.imageData.data;return n[t+3]<<24&4278190080|n[t+0]<<16&16711680|n[t+1]<<8&65280|255&n[t+2]},setPixel:function(e,t){var n=4*e,r=ee.imageData.data;r[n+0]=(16711680&t)>>>16,r[n+1]=(65280&t)>>>8,r[n+2]=255&t,r[n+3]=(4278190080&t)>>>24},toArray:function(){for(var e=[],t=ee.imageData.width*ee.imageData.height,n=ee.imageData.data,r=0,i=0;r<t;r++,i+=4)e.push(n[i+3]<<24&4278190080|n[i+0]<<16&16711680|n[i+1]<<8&65280|255&n[i+2]);return e},set:function(e){for(var t=0,n=e.length;t<n;t++)this.setPixel(t,e[t])}},ee.loadPixels=function(){ee.imageData=re.$ensureContext().getImageData(0,0,ee.width,ee.height)},ee.updatePixels=function(){ee.imageData&&re.$ensureContext().putImageData(ee.imageData,0,0)},ee.hint=function(e){var t=re.$ensureContext();e===wr.DISABLE_DEPTH_TEST?(t.disable(t.DEPTH_TEST),t.depthMask(!1),t.clear(t.DEPTH_BUFFER_BIT)):e===wr.ENABLE_DEPTH_TEST?(t.enable(t.DEPTH_TEST),t.depthMask(!0)):e===wr.ENABLE_OPENGL_2X_SMOOTH||e===wr.ENABLE_OPENGL_4X_SMOOTH?Ze=!0:e===wr.DISABLE_OPENGL_2X_SMOOTH&&(Ze=!1)};var sr=function(e,t,n,r){var i;if(e instanceof or||e.__isPImage){if(!(i=e).loaded)throw"Error using image in background(): PImage not loaded.";if(i.width!==ee.width||i.height!==ee.height)throw"Background image must be the same dimensions as the canvas."}else i=ee.color(e,t,n,r);pt=i};Mn.prototype.background=function(e,t,n,r){e!==gr&&sr(e,t,n,r),pt instanceof or||pt.__isPImage?(w(),te.setTransform(1,0,0,1,0,0),ee.image(pt,0,0)):(w(),te.setTransform(1,0,0,1,0,0),ee.alpha(pt)!==mt&&te.clearRect(0,0,ee.width,ee.height),te.fillStyle=ee.color.toString(pt),te.fillRect(0,0,ee.width,ee.height),je=!0),A()},In.prototype.background=function(e,t,n,r){0<arguments.length&&sr(e,t,n,r);var i=ee.color.toGLArray(pt);te.clearColor(i[0],i[1],i[2],i[3]),te.clear(te.COLOR_BUFFER_BIT|te.DEPTH_BUFFER_BIT)},Mn.prototype.image=function(e,t,n,r,i){if(t=Math.round(t),n=Math.round(n),0<e.width){r||e.width,i||e.height;
14var o=Ln(t||0,n||0,r||e.width,i||e.height,arguments.length<4);if(!!e.sourceImg&&null===wt){var s=e.sourceImg;e.__isDirty&&e.updatePixels(),te.drawImage(s,0,0,s.width,s.height,o.x,o.y,o.w,o.h)}else{var a=e.toImageData();null!==wt&&(wt(a),e.__isDirty=!0),te.drawImage(S(a).canvas,0,0,e.width,e.height,o.x,o.y,o.w,o.h)}}},In.prototype.image=function(e,t,n,r,i){0<e.width&&(t=Math.round(t),n=Math.round(n),r=r||e.width,i=i||e.height,ee.beginShape(ee.QUADS),ee.texture(e),ee.vertex(t,n,0,0,0),ee.vertex(t,n+i,0,0,i),ee.vertex(t+r,n+i,0,r,i),ee.vertex(t+r,n,0,r,0),ee.endShape())},ee.tint=function(e,t,n,r){var i=ee.color(e,t,n,r),o=ee.red(i)/vt,s=ee.green(i)/yt,a=ee.blue(i)/bt,l=ee.alpha(i)/mt;wt=function(e){for(var t=e.data,n=4*e.width*e.height,r=0;r<n;)t[r++]*=o,t[r++]*=s,t[r++]*=a,t[r++]*=l},At=function(e){for(var t=0;t<e.length;)e[t++]=o,e[t++]=s,e[t++]=a,e[t++]=l}},ee.noTint=function(){At=wt=null},ee.copy=function(e,t,n,r,i,o,s,a,l){l===gr&&(l=a,a=s,s=o,o=i,i=r,r=n,n=t,t=e,e=ee),ee.blend(e,t,n,r,i,o,s,a,l,wr.REPLACE)},ee.blend=function(e,t,n,r,i,o,s,a,l,u,c){if(e.isRemote)throw"Image is loaded remotely. Cannot blend image.";u===gr&&(u=l,l=a,a=s,s=o,o=i,i=r,r=n,n=t,t=e,e=ee);var f=t+r,d=n+i,h=o+a,p=s+l,g=c||ee;c!==gr&&u!==gr||ee.loadPixels(),e.loadPixels(),e===ee&&ee.intersect(t,n,f,d,o,s,h,p)?ee.blit_resize(ee.get(t,n,f-t,d-n),0,0,f-t-1,d-n-1,g.imageData.data,g.width,g.height,o,s,h,p,u):ee.blit_resize(e,t,n,f,d,g.imageData.data,g.width,g.height,o,s,h,p,u),c===gr&&ee.updatePixels()};var ar=function(e){var t,n,r=ee.floor(3.5*e);if(r=r<1?1:r<248?r:248,ee.shared.blurRadius!==r){ee.shared.blurRadius=r,ee.shared.blurKernelSize=1+(ee.shared.blurRadius<<1),ee.shared.blurKernel=new _r(ee.shared.blurKernelSize);var i=ee.shared.blurKernel,o=ee.shared.blurKernelSize;ee.shared.blurRadius;for(t=0;t<o;t++)i[t]=0;var s=(r-1)*(r-1);for(t=1;t<r;t++)i[r+t]=i[n]=s;i[r]=r*r}},lr=function(e,t){var n,r,i,o,s,a,l,u,c,f,d,h,p,g,m,v=t.pixels.getLength(),y=new _r(v),b=new _r(v),E=new _r(v),T=new _r(v),S=0;ar(e);var w=t.height,A=t.width,C=ee.shared.blurKernelSize,x=ee.shared.blurRadius,_=ee.shared.blurKernel,N=t.imageData.data;for(p=0;p<w;p++){for(h=0;h<A;h++){if(o=i=r=s=n=0,(l=h-x)<0)d=-l,l=0;else{if(A<=l)break;d=0}for(g=d;g<C&&!(A<=l);g++)m=4*(l+S),s+=(a=_[g])*N[m+3],r+=a*N[m],i+=a*N[m+1],o+=a*N[m+2],n+=a,l++;T[u=S+h]=s/n,y[u]=r/n,b[u]=i/n,E[u]=o/n}S+=A}for(f=(c=-x)*A,p=S=0;p<w;p++){for(h=0;h<A;h++){if(o=i=r=s=n=0,c<0)d=u=-c,l=h;else{if(w<=c)break;d=0,u=c,l=h+f}for(g=d;g<C&&!(w<=u);g++)s+=(a=_[g])*T[l],r+=a*y[l],i+=a*b[l],o+=a*E[l],n+=a,u++,l+=A;N[m=4*(h+S)]=r/n,N[m+1]=i/n,N[m+2]=o/n,N[m+3]=s/n}S+=A,f+=A,c++}},ur=function(e,t){var n,r,i,o,s,a,l,u,c,f,d,h,p,g,m,v,y,b=0,E=t.pixels.getLength(),T=new Nr(E);if(e)for(;b<E;)for(r=(n=b)+t.width;b<r;)i=o=t.pixels.getPixel(b),(l=b-1)<n&&(l=b),r<=(a=b+1)&&(a=b),(u=b-t.width)<0&&(u=0),E<=(c=b+t.width)&&(c=b),h=t.pixels.getPixel(u),d=t.pixels.getPixel(l),p=t.pixels.getPixel(c),(m=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<(s=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(o=d,s=m),(g=77*((f=t.pixels.getPixel(a))>>16&255)+151*(f>>8&255)+28*(255&f))<s&&(o=f,s=g),(v=77*(h>>16&255)+151*(h>>8&255)+28*(255&h))<s&&(o=h,s=v),(y=77*(p>>16&255)+151*(p>>8&255)+28*(255&p))<s&&(o=p,s=y),T[b++]=o;else for(;b<E;)for(r=(n=b)+t.width;b<r;)i=o=t.pixels.getPixel(b),(l=b-1)<n&&(l=b),r<=(a=b+1)&&(a=b),(u=b-t.width)<0&&(u=0),E<=(c=b+t.width)&&(c=b),h=t.pixels.getPixel(u),d=t.pixels.getPixel(l),p=t.pixels.getPixel(c),(s=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(o=d,s=m),s<(g=77*((f=t.pixels.getPixel(a))>>16&255)+151*(f>>8&255)+28*(255&f))&&(o=f,s=g),s<(v=77*(h>>16&255)+151*(h>>8&255)+28*(255&h))&&(o=h,s=v),s<(y=77*(p>>16&255)+151*(p>>8&255)+28*(255&p))&&(o=p,s=y),T[b++]=o;t.pixels.set(T)};ee.filter=function(e,t,n){var r,i,o,s;if(3===arguments.length?(n.loadPixels(),r=n):(ee.loadPixels(),r=ee),t===gr&&(t=null),r.isRemote)throw"Image is loaded remotely. Cannot filter image.";var a=r.pixels.getLength();switch(e){case wr.BLUR:lr(t||1,r);break;case wr.GRAY:if(r.format===wr.ALPHA){for(s=0;s<a;s++)i=255-r.pixels.getPixel(s),r.pixels.setPixel(s,4278190080|i<<16|i<<8|i);r.format=wr.RGB}else for(s=0;s<a;s++)o=77*((i=r.pixels.getPixel(s))>>16&255)+151*(i>>8&255)+28*(255&i)>>8,r.pixels.setPixel(s,i&wr.ALPHA_MASK|o<<16|o<<8|o);break;case wr.INVERT:for(s=0;s<a;s++)r.pixels.setPixel(s,16777215^r.pixels.getPixel(s));break;case wr.POSTERIZE:if(null===t)throw"Use filter(POSTERIZE, int levels) instead of filter(POSTERIZE)";var l=ee.floor(t);if(l<2||255<l)throw"Levels must be between 2 and 255 for filter(POSTERIZE, levels)";var u=l-1;for(s=0;s<a;s++){var c=r.pixels.getPixel(s)>>16&255,f=r.pixels.getPixel(s)>>8&255,d=255&r.pixels.getPixel(s);c=255*(c*l>>8)/u,f=255*(f*l>>8)/u,d=255*(d*l>>8)/u,r.pixels.setPixel(s,4278190080&r.pixels.getPixel(s)|c<<16|f<<8|d)}break;case wr.OPAQUE:for(s=0;s<a;s++)r.pixels.setPixel(s,4278190080|r.pixels.getPixel(s));r.format=wr.RGB;break;case wr.THRESHOLD:if(null===t&&(t=.5),t<0||1<t)throw"Level must be between 0 and 1 for filter(THRESHOLD, level)";var h=ee.floor(255*t);for(s=0;s<a;s++){var p=ee.max((r.pixels.getPixel(s)&wr.RED_MASK)>>16,ee.max((r.pixels.getPixel(s)&wr.GREEN_MASK)>>8,r.pixels.getPixel(s)&wr.BLUE_MASK));r.pixels.setPixel(s,r.pixels.getPixel(s)&wr.ALPHA_MASK|(p<h?0:16777215))}break;case wr.ERODE:ur(!0,r);break;case wr.DILATE:ur(!1,r)}r.updatePixels()},ee.shared={fracU:0,ifU:0,fracV:0,ifV:0,u1:0,u2:0,v1:0,v2:0,sX:0,sY:0,iw:0,iw1:0,ih1:0,ul:0,ll:0,ur:0,lr:0,cUL:0,cLL:0,cUR:0,cLR:0,srcXOffset:0,srcYOffset:0,r:0,g:0,b:0,a:0,srcBuffer:null,blurRadius:0,blurKernelSize:0,blurKernel:null},ee.intersect=function(e,t,n,r,i,o,s,a){var l=n-e+1,u=r-t+1,c=s-i+1,f=a-o+1;if(i<e)l<(c+=i-e)&&(c=l);else{var d=l+e-i;d<c&&(c=d)}if(o<t)u<(f+=o-t)&&(f=u);else{var h=u+t-o;h<f&&(f=h)}return!(c<=0||f<=0)};var cr={};if(cr[wr.BLEND]=ee.modes.blend,cr[wr.ADD]=ee.modes.add,cr[wr.SUBTRACT]=ee.modes.subtract,cr[wr.LIGHTEST]=ee.modes.lightest,cr[wr.DARKEST]=ee.modes.darkest,cr[wr.REPLACE]=ee.modes.replace,cr[wr.DIFFERENCE]=ee.modes.difference,cr[wr.EXCLUSION]=ee.modes.exclusion,cr[wr.MULTIPLY]=ee.modes.multiply,cr[wr.SCREEN]=ee.modes.screen,cr[wr.OVERLAY]=ee.modes.overlay,cr[wr.HARD_LIGHT]=ee.modes.hard_light,cr[wr.SOFT_LIGHT]=ee.modes.soft_light,cr[wr.DODGE]=ee.modes.dodge,cr[wr.BURN]=ee.modes.burn,ee.blit_resize=function(e,t,n,r,i,o,s,a,l,u,c,f,d){var h,p;t<0&&(t=0),n<0&&(n=0),r>=e.width&&(r=e.width-1),i>=e.height&&(i=e.height-1);var g=r-t,m=i-n,v=c-l,y=f-u;if(!(v<=0||y<=0||g<=0||m<=0||s<=l||a<=u||t>=e.width||n>=e.height)){var b=Math.floor(g/v*wr.PRECISIONF),E=Math.floor(m/y*wr.PRECISIONF),T=ee.shared;T.srcXOffset=Math.floor(l<0?-l*b:t*wr.PRECISIONF),T.srcYOffset=Math.floor(u<0?-u*E:n*wr.PRECISIONF),l<0&&(v+=l,l=0),u<0&&(y+=u,u=0),v=Math.min(v,s-l),y=Math.min(y,a-u);var S,w=u*s+l;T.srcBuffer=e.imageData.data,T.iw=e.width,T.iw1=e.width-1,T.ih1=e.height-1;ee.filter_bilinear,ee.filter_new_scanline;var A,C,x,_,N,O,D=cr[d],L=wr.ALPHA_MASK,R=wr.RED_MASK,k=wr.GREEN_MASK,P=wr.BLUE_MASK,M=wr.PREC_MAXVAL,I=wr.PRECISIONB,F=wr.PREC_RED_SHIFT,$
14=wr.PREC_ALPHA_SHIFT,B=T.srcBuffer,H=Math.min;for(p=0;p<y;p++){for(T.sX=T.srcXOffset,T.fracV=T.srcYOffset&M,T.ifV=M-T.fracV,T.v1=(T.srcYOffset>>I)*T.iw,T.v2=H(1+(T.srcYOffset>>I),T.ih1)*T.iw,h=0;h<v;h++)S=o[(C=4*(w+h))+3]<<24&L|o[C]<<16&R|o[C+1]<<8&k|o[C+2]&P,T.fracU=T.sX&M,T.ifU=M-T.fracU,T.ul=T.ifU*T.ifV>>I,T.ll=T.ifU*T.fracV>>I,T.ur=T.fracU*T.ifV>>I,T.lr=T.fracU*T.fracV>>I,T.u1=T.sX>>I,T.u2=H(T.u1+1,T.iw1),x=4*(T.v1+T.u1),_=4*(T.v1+T.u2),N=4*(T.v2+T.u1),O=4*(T.v2+T.u2),T.cUL=B[x+3]<<24&L|B[x]<<16&R|B[x+1]<<8&k|B[x+2]&P,T.cUR=B[_+3]<<24&L|B[_]<<16&R|B[_+1]<<8&k|B[_+2]&P,T.cLL=B[N+3]<<24&L|B[N]<<16&R|B[N+1]<<8&k|B[N+2]&P,T.cLR=B[O+3]<<24&L|B[O]<<16&R|B[O+1]<<8&k|B[O+2]&P,T.r=T.ul*((T.cUL&R)>>16)+T.ll*((T.cLL&R)>>16)+T.ur*((T.cUR&R)>>16)+T.lr*((T.cLR&R)>>16)<<F&R,T.g=T.ul*(T.cUL&k)+T.ll*(T.cLL&k)+T.ur*(T.cUR&k)+T.lr*(T.cLR&k)>>>I&k,T.b=T.ul*(T.cUL&P)+T.ll*(T.cLL&P)+T.ur*(T.cUR&P)+T.lr*(T.cLR&P)>>>I,T.a=T.ul*((T.cUL&L)>>>24)+T.ll*((T.cLL&L)>>>24)+T.ur*((T.cUR&L)>>>24)+T.lr*((T.cLR&L)>>>24)<<$&L,A=D(S,T.a|T.r|T.g|T.b),o[C]=(A&R)>>>16,o[C+1]=(A&k)>>>8,o[C+2]=A&P,o[C+3]=(A&L)>>>24,T.sX+=b;w+=s,T.srcYOffset+=E}}},ee.loadFont=function(o,t){if(o===gr)throw"font name required in loadFont.";if(-1===o.indexOf(".svg"))return t===gr&&(t=Ht.size),PFont.get(o,t);var n=ee.loadGlyphs(o);return{name:o,css:"12px sans-serif",glyph:!0,units_per_em:n.units_per_em,horiz_adv_x:1/n.units_per_em*n.horiz_adv_x,ascent:n.ascent,descent:n.descent,width:function(t){for(var n=0,r=t.length,i=0;i<r;i++)try{n+=parseFloat(ee.glyphLook(ee.glyphTable[o],t[i]).horiz_adv_x)}catch(e){kr.debug(e)}return n/ee.glyphTable[o].units_per_em}}},ee.createFont=function(e,t){return ee.loadFont(e,t)},ee.textFont=function(e,t){t!==gr&&(e.glyph||(e=PFont.get(e.name,t)),It=t),Mt=(Ht=e).name,Ft=Ht.ascent,$t=Ht.descent,Bt=Ht.leading,re.$ensureContext().font=Ht.css},ee.textSize=function(e){Ht=PFont.get(Mt,e),It=e,Ft=Ht.ascent,$t=Ht.descent,Bt=Ht.leading,re.$ensureContext().font=Ht.css},ee.textAscent=function(){return Ft},ee.textDescent=function(){return $t},ee.textLeading=function(e){Bt=e},ee.textAlign=function(e,t){Rt=e,kt=t||wr.BASELINE},Mn.prototype.textWidth=function(e){var t,n=F(e).split(/\r?\n/g),r=0,i=n.length;for(te.font=Ht.css,t=0;t<i;++t)r=Math.max(r,Ht.measureTextWidth(n[t]));return 0|r},In.prototype.textWidth=function(e){var t,n=F(e).split(/\r?\n/g),r=0,i=n.length;ie===gr&&(ie=Tr.createElement("canvas"));var o=ie.getContext("2d");for(o.font=Ht.css,t=0;t<i;++t)r=Math.max(r,o.measureText(n[t]).width);return 0|r},ee.glyphLook=function(t,n){try{switch(n){case"1":return t.one;case"2":return t.two;case"3":return t.three;case"4":return t.four;case"5":return t.five;case"6":return t.six;case"7":return t.seven;case"8":return t.eight;case"9":return t.nine;case"0":return t.zero;case" ":return t.space;case"$":return t.dollar;case"!":return t.exclam;case'"':return t.quotedbl;case"#":return t.numbersign;case"%":return t.percent;case"&":return t.ampersand;case"'":return t.quotesingle;case"(":return t.parenleft;case")":return t.parenright;case"*":return t.asterisk;case"+":return t.plus;case",":return t.comma;case"-":return t.hyphen;case".":return t.period;case"/":return t.slash;case"_":return t.underscore;case":":return t.colon;case";":return t.semicolon;case"<":return t.less;case"=":return t.equal;case">":return t.greater;case"?":return t.question;case"@":return t.at;case"[":return t.bracketleft;case"\\":return t.backslash;case"]":return t.bracketright;case"^":return t.asciicircum;case"`":return t.grave;case"{":return t.braceleft;case"|":return t.bar;case"}":return t.braceright;case"~":return t.asciitilde;default:return t[n]}}catch(e){kr.debug(e)}},Mn.prototype.text$line=function(t,n,r,i,o){var s=0,a=0;if(Ht.glyph){var l=ee.glyphTable[Mt];w(),te.translate(n,r+It),o!==wr.RIGHT&&o!==wr.CENTER||(s=l.width(t),a=o===wr.RIGHT?-s:-s/2);var u=1/l.units_per_em*It;te.scale(u,u);for(var c=0,f=t.length;c<f;c++)try{ee.glyphLook(l,t[c]).draw()}catch(e){kr.debug(e)}A()}else t&&"fillText"in te&&(je&&(te.fillStyle=ee.color.toString(Ke),je=!1),o!==wr.RIGHT&&o!==wr.CENTER||(s=Ht.measureTextWidth(t),a=o===wr.RIGHT?-s:-s/2),te.fillText(t,n+a,r))},In.prototype.text$line=function(e,t,n,r,i){ie===gr&&(ie=Tr.createElement("canvas"));var o=te;(te=ie.getContext("2d")).font=Ht.css;var s=Ht.measureTextWidth(e);ie.width=s,ie.height=It,(te=ie.getContext("2d")).font=Ht.css,te.textBaseline="top",Mn.prototype.text$line(e,0,0,0,wr.LEFT);
14var a=ie.width/ie.height;(te=o).bindTexture(te.TEXTURE_2D,_e),te.texImage2D(te.TEXTURE_2D,0,te.RGBA,te.RGBA,te.UNSIGNED_BYTE,ie),te.texParameteri(te.TEXTURE_2D,te.TEXTURE_MAG_FILTER,te.LINEAR),te.texParameteri(te.TEXTURE_2D,te.TEXTURE_MIN_FILTER,te.LINEAR),te.texParameteri(te.TEXTURE_2D,te.TEXTURE_WRAP_T,te.CLAMP_TO_EDGE),te.texParameteri(te.TEXTURE_2D,te.TEXTURE_WRAP_S,te.CLAMP_TO_EDGE);var l=0;i===wr.RIGHT?l=-s:i===wr.CENTER&&(l=-s/2);var u=new Un,c=.5*It;u.translate(t+l-c/2,n-c,r),u.scale(-a*c,-c,c),u.translate(-1,-1,-1),u.transpose();var f=new Un;f.scale(1,-1,1),f.apply(Ie.array()),f.transpose(),te.useProgram(de),d("aVertex2d",de,"aVertex",3,Ne),d("aTextureCoord2d",de,"aTextureCoord",2,Oe),v("uSampler2d",de,"uSampler",[0]),v("uIsDrawingText2d",de,"uIsDrawingText",!0),h("uModel2d",de,"uModel",!1,u.array()),h("uView2d",de,"uView",!1,f.array()),m("uColor2d",de,"uColor",We),te.bindBuffer(te.ELEMENT_ARRAY_BUFFER,De),te.drawElements(te.TRIANGLES,6,te.UNSIGNED_SHORT,0)},ee.text=function(e,t,n,r,i,o){Pt!==wr.SHAPE&&(3===arguments.length?$(F(e),t,n,0):4===arguments.length?$(F(e),t,n,r):5===arguments.length?B(F(e),t,n,r,i,0):6===arguments.length&&B(F(e),t,n,r,i,o))},ee.textMode=function(e){Pt=e},ee.loadGlyphs=function(l){var a,u,c,f,d,h,p,g,m,v,y,b,E="[0-9\\-]+",T=function(e,t){var n,r=0,i=[],o=new RegExp(e,"g");for(n=i[r]=o.exec(t);n;)n=i[++r]=o.exec(t);return i},S=function(e){var t=T("[A-Za-z][0-9\\- ]+|Z",e),n=function(){return w(),re.$ensureContext()},r=function(){C(),x(),A()};b="return {draw:function(){var curContext=beforePathDraw();curContext.beginPath();",g=e=h=d=f=c=u=a=0,m="",v=t.length-1;for(var i=0;i<v;i++){var o=t[i][0],s=T(E,o);switch(o[0]){case"M":a=parseFloat(s[0][0]),u=parseFloat(s[1][0]),b+="curContext.moveTo("+a+","+-u+");";break;case"L":a=parseFloat(s[0][0]),u=parseFloat(s[1][0]),b+="curContext.lineTo("+a+","+-u+");";break;case"H":a=parseFloat(s[0][0]),b+="curContext.lineTo("+a+","+-u+");";break;case"V":u=parseFloat(s[0][0]),b+="curContext.lineTo("+a+","+-u+");";break;case"T":d=parseFloat(s[0][0]),h=parseFloat(s[1][0]),"Q"===m||"T"===m?(e=Math.sqrt(Math.pow(a-c,2)+Math.pow(f-u,2)),g=Math.PI+Math.atan2(c-a,f-u),c=a+Math.sin(g)*e,f=u+Math.cos(g)*e):(c=a,f=u),b+="curContext.quadraticCurveTo("+c+","+-f+","+d+","+-h+");",a=d,u=h;break;case"Q":c=parseFloat(s[0][0]),f=parseFloat(s[1][0]),d=parseFloat(s[2][0]),h=parseFloat(s[3][0]),b+="curContext.quadraticCurveTo("+c+","+-f+","+d+","+-h+");",a=d,u=h;break;case"Z":b+="curContext.closePath();"}m=o[0]}return b+="afterPathDraw();",b+="curContext.translate("+y+",0);",b+="}}",new Function("beforePathDraw","afterPathDraw",b)(n,r)},o=function(e){var t=e.getElementsByTagName("font");ee.glyphTable[l].horiz_adv_x=t[0].getAttribute("horiz-adv-x");var n=e.getElementsByTagName("font-face")[0];ee.glyphTable[l].units_per_em=parseFloat(n.getAttribute("units-per-em")),ee.glyphTable[l].ascent=parseFloat(n.getAttribute("ascent")),ee.glyphTable[l].descent=parseFloat(n.getAttribute("descent"));for(var r=e.getElementsByTagName("glyph"),i=r.length,o=0;o<i;o++){var s=r[o].getAttribute("unicode"),a=r[o].getAttribute("glyph-name");null===(y=r[o].getAttribute("horiz-adv-x"))&&(y=ee.glyphTable[l].horiz_adv_x),(p=r[o].getAttribute("d"))!==gr&&(b=S(p),ee.glyphTable[l][a]={name:a,unicode:s,horiz_adv_x:y,draw:b.draw})}},t=function(){var t;try{t=Tr.implementation.createDocument("","",null)}catch(r){return void kr.debug(r.message)}try{t.async=!1,t.load(l),o(t.getElementsByTagName("svg")[0])}catch(i){kr.debug(i);try{var n=new Er.XMLHttpRequest;n.open("GET",l,!1),n.send(null),o(n.responseXML.documentElement)}catch(e){kr.debug(i)}}};return ee.glyphTable[l]={},t(l),ee.glyphTable[l]},ee.param=function(e){var t="data-processing-"+e;if(Q.hasAttribute(t))return Q.getAttribute(t);for(var n=0,r=Q.childNodes.length;n<r;++n){var i=Q.childNodes.item(n);if(1===i.nodeType&&"param"===i.tagName.toLowerCase()&&i.getAttribute("name")===e)return i.getAttribute("value")}return ne.params.hasOwnProperty(e)?ne.params[e]:null},Fn.prototype.translate=U("translate"),Fn.prototype.transform=U("transform"),Fn.prototype.scale=U("scale"),Fn.prototype.pushMatrix=U("pushMatrix"),Fn.prototype.popMatrix=U("popMatrix"),Fn.prototype.resetMatrix=U("resetMatrix"),Fn.prototype.applyM
14atrix=U("applyMatrix"),Fn.prototype.rotate=U("rotate"),Fn.prototype.rotateZ=U("rotateZ"),Fn.prototype.shearX=U("shearX"),Fn.prototype.shearY=U("shearY"),Fn.prototype.redraw=U("redraw"),Fn.prototype.toImageData=U("toImageData"),Fn.prototype.ambientLight=U("ambientLight"),Fn.prototype.directionalLight=U("directionalLight"),Fn.prototype.lightFalloff=U("lightFalloff"),Fn.prototype.lightSpecular=U("lightSpecular"),Fn.prototype.pointLight=U("pointLight"),Fn.prototype.noLights=U("noLights"),Fn.prototype.spotLight=U("spotLight"),Fn.prototype.beginCamera=U("beginCamera"),Fn.prototype.endCamera=U("endCamera"),Fn.prototype.frustum=U("frustum"),Fn.prototype.box=U("box"),Fn.prototype.sphere=U("sphere"),Fn.prototype.ambient=U("ambient"),Fn.prototype.emissive=U("emissive"),Fn.prototype.shininess=U("shininess"),Fn.prototype.specular=U("specular"),Fn.prototype.fill=U("fill"),Fn.prototype.stroke=U("stroke"),Fn.prototype.strokeWeight=U("strokeWeight"),Fn.prototype.smooth=U("smooth"),Fn.prototype.noSmooth=U("noSmooth"),Fn.prototype.point=U("point"),Fn.prototype.vertex=U("vertex"),Fn.prototype.endShape=U("endShape"),Fn.prototype.bezierVertex=U("bezierVertex"),Fn.prototype.curveVertex=U("curveVertex"),Fn.prototype.curve=U("curve"),Fn.prototype.line=U("line"),Fn.prototype.bezier=U("bezier"),Fn.prototype.rect=U("rect"),Fn.prototype.ellipse=U("ellipse"),Fn.prototype.background=U("background"),Fn.prototype.image=U("image"),Fn.prototype.textWidth=U("textWidth"),Fn.prototype.text$line=U("text$line"),Fn.prototype.$ensureContext=U("$ensureContext"),Fn.prototype.$newPMatrix=U("$newPMatrix"),Fn.prototype.size=function(e,t,n){H(n===wr.WEBGL?"3D":"2D"),ee.size(e,t,n)},Fn.prototype.$init=Sr,Mn.prototype.$init=function(){ee.size(ee.width,ee.height),te.lineCap="round",ee.noSmooth(),ee.disableContextMenu()},In.prototype.$init=function(){ee.use3DContext=!0,ee.disableContextMenu()},Pn.prototype.$ensureContext=function(){return te},Q.getAttribute("tabindex")||Q.setAttribute("tabindex",0),Z)ne=new kr.Sketch,H(),ee.size=function(e,t,n){n&&n===wr.WEBGL?H("3D"):H("2D"),ee.size(e,t,n)};else{ne=n instanceof kr.Sketch?n:"function"==typeof n?new kr.Sketch(n):n?kr.compile(n):new kr.Sketch(function(){}),ee.externals.sketch=ne,H(),Q.onfocus=function(){ee.focused=!0},Q.onblur=function(){ee.focused=!1,ne.options.globalKeyEvents||z()},ne.options.pauseOnBlur&&(i(Er,"focus",function(){Je&&ee.loop()}),i(Er,"blur",function(){Je&&Qe&&(ee.noLoop(),Je=!0),z()}));var fr=ne.options.globalKeyEvents?Er:Q;for(var dr in i(fr,"keydown",q),i(fr,"keypress",X),i(fr,"keyup",Y),kr.lib)kr.lib.hasOwnProperty(dr)&&(kr.lib[dr].hasOwnProperty("attach")?kr.lib[dr].attach(ee):kr.lib[dr]instanceof Function&&kr.lib[dr].call(this));var hr=100,pr=function(e){if(ne.imageCache.pending||PFont.preloading.pending(hr))Er.setTimeout(function(){pr(e)},hr);else{if(Er.opera){var t,n,r=ne.imageCache.operaCache;for(t in r)r.hasOwnProperty(t)&&(null!==(n=r[t])&&Tr.body.removeChild(n),delete r[t])}ne.attach(e,mr),ne.onLoad(e),e.setup&&(e.setup(),e.resetMatrix(),ne.onSetup()),R(),e.draw&&(Je?e.loop():e.redraw())}};Lr(this),pr(ee)}};return kr.debug="console"in Er?function(e){Er.console.log("Processing.js: "+e)}:Sr,kr.prototype=mr,kr.instances=i,kr.getInstanceById=function(e){return i[o[e]]},function(e){function t(e){return function(){throw"Processing.js does not support "+e+"."}}for(var n,r="open() createOutput() createInput() BufferedReader selectFolder() dataPath() createWriter() selectOutput() beginRecord() saveStream() endRecord() selectInput() saveBytes() createReader() beginRaw() endRaw() PrintWriter delay()".split(" "),i=r.length;i--;)e[(n=r[i]).replace("()","")]=t(n)}(mr),kr}},{}],27:[function(T,e){var S={virtEquals:T("./Helpers/virtEquals"),virtHashCode:T("./Helpers/virtHashCode"),ObjectIterator:T("./Helpers/ObjectIterator"),PConstants:T("./Helpers/PConstants"),ArrayList:T("./Objects/ArrayList"),HashMap:T("./Objects/HashMap"),PVector:T("./Objects/PVector"),PFont:T("./Objects/PFont"),Char:T("./Objects/Char"),XMLAttribute:T("./Objects/XMLAttribute"),XMLElement:T("./Objects/XMLElement"),PMatrix2D:T("./Objects/PMatrix2D"),PMatrix3D:T("./Objects/PMatrix3D"),PShape:T("./Objects/PShape"),colors:T("./Objects/webcolors"),PShapeSVG:T("./Objects/PShapeSVG"),CommonFunctions:T("./P5Functions/commonFunctions"),defaultScope:T("./Helpers/
14defaultScope"),Processing:T("./Processing"),setupParser:T("./Parser/Parser"),finalize:T("./Helpers/finalizeProcessing")};S.extend={withMath:T("./P5Functions/Math.js"),withProxyFunctions:T("./P5Functions/JavaProxyFunctions")(S.virtHashCode,S.virtEquals),withTouch:T("./P5Functions/touchmouse"),withCommonFunctions:S.CommonFunctions.withCommonFunctions},e.exports=function t(e,t){var n=function(){},r=S.virtEquals,i=S.virtHashCode,o=S.PConstants,s=S.CommonFunctions,a=S.ObjectIterator,l=S.Char,u=S.XMLAttribute(),c=S.ArrayList({virtHashCode:i,virtEquals:r}),f=S.HashMap({virtHashCode:i,virtEquals:r}),d=S.PVector({PConstants:o}),h=S.PFont({Browser:e,noop:n}),p=S.XMLElement({Browser:e,XMLAttribute:u}),g=S.PMatrix2D({p:s}),m=S.PMatrix3D({p:s}),v=S.PShape({PConstants:o,PMatrix2D:g,PMatrix3D:m}),y=S.PShapeSVG({CommonFunctions:s,PConstants:o,PShape:v,XMLElement:p,colors:S.colors}),b=S.defaultScope({ArrayList:c,HashMap:f,PVector:d,PFont:h,PShapeSVG:y,ObjectIterator:a,PConstants:o,Char:l,XMLElement:p,XML:p}),E=S.Processing({defaultScope:b,Browser:e,extend:S.extend,noop:n});return E=S.setupParser(E,{Browser:e,aFunctions:t,defaultScope:b}),E=S.finalize(E,{version:T("../package.json").version,isDomPresent:e.isDomPresent,window:e.window,document:e.document,noop:n})}},{"../package.json":2,"./Helpers/ObjectIterator":3,"./Helpers/PConstants":4,"./Helpers/defaultScope":5,"./Helpers/finalizeProcessing":6,"./Helpers/virtEquals":7,"./Helpers/virtHashCode":8,"./Objects/ArrayList":9,"./Objects/Char":10,"./Objects/HashMap":11,"./Objects/PFont":12,"./Objects/PMatrix2D":13,"./Objects/PMatrix3D":14,"./Objects/PShape":15,"./Objects/PShapeSVG":16,"./Objects/PVector":17,"./Objects/XMLAttribute":18,"./Objects/XMLElement":19,"./Objects/webcolors":20,"./P5Functions/JavaProxyFunctions":21,"./P5Functions/Math.js":22,"./P5Functions/commonFunctions":23,"./P5Functions/touchmouse":24,"./Parser/Parser":25,"./Processing":26}]},{},[1]),function(){}.call(this),function(){}.call(this),function(){}.call(this),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return t===undefined&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t)}:n(window.jQuery)}(function(R){var c=function(e,t){this.id=++R.FE.ID,this.opts=R.extend(!0,{},R.extend({},c.DEFAULTS,"object"==typeof t&&t));var n=JSON.stringify(this.opts);R.FE.OPTS_MAPPING[n]=R.FE.OPTS_MAPPING[n]||this.id,this.sid=R.FE.OPTS_MAPPING[n],R.FE.SHARED[this.sid]=R.FE.SHARED[this.sid]||{},this.shared=R.FE.SHARED[this.sid],this.shared.count=(this.shared.count||0)+1,this.$oel=R(e),this.$oel.data("froala.editor",this),this.o_doc=e.ownerDocument,this.o_win="defaultView"in this.o_doc?this.o_doc.defaultView:this.o_doc.parentWindow;var r=R(this.o_win).scrollTop();this.$oel.on("froala.doInit",R.proxy(function(){this.$oel.off("froala.doInit"),this.doc=this.$el.get(0).ownerDocument,this.win="defaultView"in this.doc?this.doc.defaultView:this.doc.parentWindow,this.$doc=R(this.doc),this.$win=R(this.win),this.opts.pluginsEnabled||(this.opts.pluginsEnabled=Object.keys(R.FE.PLUGINS)),
15this.opts.initOnClick?(this.load(R.FE.MODULES),this.$el.on("touchstart.init",function(){R(this).data("touched",!0)}),this.$el.on("touchmove.init",function(){R(this).removeData("touched")}),this.$el.on("mousedown.init touchend.init dragenter.init focus.init",R.proxy(function(e){if("touchend"==e.type&&!this.$el.data("touched"))return!0;if(1===e.which||!e.which){this.$el.off("mousedown.init touchstart.init touchmove.init touchend.init dragenter.init focus.init"),this.load(R.FE.MODULES),this.load(R.FE.PLUGINS);var t=e.originalEvent&&e.originalEvent.originalTarget;t&&"IMG"==t.tagName&&R(t).trigger("mousedown"),"undefined"==typeof this.ul&&this.destroy(),"touchend"==e.type&&this.image&&e.originalEvent&&e.originalEvent.target&&R(e.originalEvent.target).is("img")&&setTimeout(R.proxy(function(){this.image.edit(R(e.originalEvent.target))},this),100),this.ready=!0,this.events.trigger("initialized")}},this)),this.events.trigger("initializationDelayed")):(this.load(R.FE.MODULES),this.load(R.FE.PLUGINS),R(this.o_win).scrollTop(r),"undefined"==typeof this.ul&&this.destroy(),this.ready=!0,this.events.trigger("initialized"))},this)),this._init()};c.DEFAULTS={initOnClick:!1,pluginsEnabled:null},c.MODULES={},c.PLUGINS={},c.VERSION="2.8.4",c.INSTANCES=[],c.OPTS_MAPPING={},c.SHARED={},c.ID=0,c.prototype._init=function(){var e=this.$oel.prop("tagName");this.$oel.closest("label").length;var t=R.proxy(function(){"TEXTAREA"!=e&&(this._original_html=this._original_html||this.$oel.html()),this.$box=this.$box||this.$oel,this.opts.fullPage&&(this.opts.iframe=!0),this.opts.iframe?(this.$iframe=R('<iframe src="about:blank" frameBorder="0">'),this.$wp=R("<div></div>"),this.$box.html(this.$wp),this.$wp.append(this.$iframe),this.$iframe.get(0).contentWindow.document.open(),this.$iframe.get(0).contentWindow.document.write("<!DOCTYPE html>"),this.$iframe.get(0).contentWindow.document.write("<html><head></head><body></body></html>"),this.$iframe.get(0).contentWindow.document.close(),this.$el=this.$iframe.contents().find("body"),this.el=this.$el.get(0),this.$head=this.$iframe.contents().find("head"),this.$html=this.$iframe.contents().find("html"),this.iframe_document=this.$iframe.get(0).contentWindow.document):(this.$el=R("<div></div>"),this.el=this.$el.get(0),this.$wp=R("<div></div>").append(this.$el),this.$box.html(this.$wp)),this.$oel.trigger("froala.doInit")},this),n=R.proxy(function(){this.$box=R("<div>"),this.$oel.before(this.$box).hide(),this._original_html=this.$oel.val(),this.$oel.parents("form").on("submit."+this.id,R.proxy(function(){this.events.trigger("form.submit")},this)),this.$oel.parents("form").on("reset."+this.id,R.proxy(function(){this.events.trigger("form.reset")},this)),t()},this),r=R.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.$el.attr("contenteditable",!0).css("outline","none").css("display","inline-block"),this.opts.multiLine=!1,this.opts.toolbarInline=!1,this.$oel.trigger("froala.doInit")},this),i=R.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.opts.toolbarInline=!1,this.$oel.trigger("froala.doInit")},this),o=R.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.opts.toolbarInline=!1,this.$oel.on("click.popup",function(e){e.preventDefault()}),this.$oel.trigger("froala.doInit")},this);this.opts.editInPopup?o():"TEXTAREA"==e?n():"A"==e?r():"IMG"==e?i():"BUTTON"==e||"INPUT"==e?(this.opts.editInPopup=!0,this.opts.toolbarInline=!1,o()):t()},c.prototype.load=function(e){for(var t in e)if(e.hasOwnProperty(t)){if(this[t])continue;if(R.FE.PLUGINS[t]&&this.opts.pluginsEnabled.indexOf(t)<0)continue;if(this[t]=new e[t](this),this[t]._init&&(this[t]._init(),this.opts.initOnClick&&"core"==t))return!1}},c.prototype.destroy=function(){this.shared.count--,this.events.$off();var e=this.html.get();if(this.opts.iframe&&(this.events.disableBlur(),this.win.focus(),this.events.enableBlur()),this.events.trigger("destroy",[],!0),this.events.trigger("shared.destroy",undefined,
15!0),0===this.shared.count){for(var t in this.shared)this.shared.hasOwnProperty(t)&&(this.shared[t],R.FE.SHARED[this.sid][t]=null);delete R.FE.SHARED[this.sid]}this.$oel.parents("form").off("."+this.id),this.$oel.off("click.popup"),this.$oel.removeData("froala.editor"),this.$oel.off("froalaEditor"),this.core.destroy(e),R.FE.INSTANCES.splice(R.FE.INSTANCES.indexOf(this),1)},R.fn.froalaEditor=function(i){for(var o=[],e=0;e<arguments.length;e++)o.push(arguments[e]);if("string"==typeof i){var s=[];return this.each(function(){var e=R(this).data("froala.editor");if(e){var t,n;if(0<i.indexOf(".")&&e[i.split(".")[0]]?(e[i.split(".")[0]]&&(t=e[i.split(".")[0]]),n=i.split(".")[1]):(t=e,n=i.split(".")[0]),!t[n])return R.error("Method "+i+" does not exist in Froala Editor.");var r=t[n].apply(e,o.slice(1));r===undefined?s.push(this):0===s.length&&s.push(r)}}),1==s.length?s[0]:s}if("object"==typeof i||!i)return this.each(function(){R(this).data("froala.editor")||new c(this,i)})},R.fn.froalaEditor.Constructor=c,R.FroalaEditor=c,R.FE=c,R.FE.XS=0,R.FE.SM=1,R.FE.MD=2,R.FE.LG=3,R.FE.LinkRegExCommon="[a-z\\u0080-\\u009f\\u00a1-\\uffff0-9-_.]{1,}",R.FE.LinkRegExEnd="((:[0-9]{1,5})|)(((\\/|\\?|#)[a-z\\u00a1-\\uffff0-9@?\\|!^=%&amp;/~+#-\\'*-_{}]*)|())",R.FE.LinkRegExTLD="(("+R.FE.LinkRegExCommon+")(\\.(com|net|org|edu|mil|gov|co|biz|info|me|dev)))",R.FE.LinkRegExHTTP="((ftp|http|https):\\/\\/"+R.FE.LinkRegExCommon+")",R.FE.LinkRegExAuth="((ftp|http|https):\\/\\/[\\u0021-\\uffff]{1,}@"+R.FE.LinkRegExCommon+")",R.FE.LinkRegExWWW="(www\\."+R.FE.LinkRegExCommon+"\\.[a-z0-9-]{2,24})",R.FE.LinkRegEx="("+R.FE.LinkRegExTLD+"|"+R.FE.LinkRegExHTTP+"|"+R.FE.LinkRegExWWW+"|"+R.FE.LinkRegExAuth+")"+R.FE.LinkRegExEnd,R.FE.LinkProtocols=["mailto","tel","sms","notes","data"],R.FE.MAIL_REGEX=/.+@.+\..+/i,R.FE.MODULES.helpers=function(o){function e(){var e,t,n={},r=(t=-1,"Microsoft Internet Explorer"==navigator.appName?(e=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(e=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))),t);if(0<r)n.msie=!0;else{var i=navigator.userAgent.toLowerCase(),o=/(edge)[ \/]([\w.]+)/.exec(i)||/(chrome)[ \/]([\w.]+)/.exec(i)||/(webkit)[ \/]([\w.]+)/.exec(i)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(i)||/(msie) ([\w.]+)/.exec(i)||i.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(i)||[],s=o[1]||"";o[2],o[1]&&(n[s]=!0),n.chrome?n.webkit=!0:n.webkit&&(n.safari=!0)}return n.msie&&(n.version=r),n}function t(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!i()}function n(){return/(Android)/g.test(navigator.userAgent)&&!i()}function r(){return/(Blackberry)/g.test(navigator.userAgent)}function i(){return/(Windows Phone)/gi.test(navigator.userAgent)}function s(e){return parseInt(e,10)||0}var a,l=null;return{_init:function(){o.browser=e(),function(){function e(e,t){var o=e[t];e[t]=function(e){var t,n=!1,r=!1;if(e&&e.match(a)){e=e.replace(a,""),this.parentNode||(s.appendChild(this),r=!0);var i=this.parentNode;return this.id||(this.id="rootedQuerySelector_id_"+(new Date).getTime(),n=!0),t=o.call(i,"#"+this.id+" "+e),n&&(this.id=""),r&&s.removeChild(this),t}return o.call(this,e)}}var s=o.o_doc.createElement("div");try{s.querySelectorAll(":scope *")}catch(t){var a=/^\s*:scope/gi;e(Element.prototype,"querySelector"),e(Element.prototype,"querySelectorAll"),e(HTMLElement.prototype,"querySelector"),e(HTMLElement.prototype,"querySelectorAll")}}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!t)return null;if(!document.documentElement.contains(this))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null})},isIOS:t,isMac:function(){return null==l&&(l=0<=navigator.platform.toUpperCase().indexOf("MAC")),l},isAndroid:n,isBlackberry:r,isWindowsPhone:i,isMobile:function(){return n()||t()||r()},isEmail:function(e){return!/^(https?:|ftps?:|)\/\//i.test(e)&&R.FE.MAIL_REGEX.test(e)},requestAnimationFrame:function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}},getPX:s,screenSize:function(){var e=R('<div class="fr-visibility-helper"></div>').appendTo("body:first");try{var t=s(e.css("margin-left"));return e.remove(),t}catch(n){return R.FE.LG}},isTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch},sanitizeURL:function(e){return/^(https?:|ftps?:|)\/\//i.test(e)?e:/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(e)?e:new RegExp("^("+R.FE.LinkProtocols.join("|")+"):\\/\\/","i").test(e)?e:e=encodeURIComponent(e).replace(/%23/g,"#").replace(/%2F/g,"/").replace(/%25/g,"%").replace(/mailto%3A/gi,"mailto:").replace(/file%3A/gi,"file:").replace(/sm
15s%3A/gi,"sms:").replace(/tel%3A/gi,"tel:").replace(/notes%3A/gi,"notes:").replace(/data%3Aimage/gi,"data:image").replace(/blob%3A/gi,"blob:").replace(/%3A(\d)/gi,":$1").replace(/webkit-fake-url%3A/gi,"webkit-fake-url:").replace(/%3F/g,"?").replace(/%3D/g,"=").replace(/%26/g,"&").replace(/&amp;/g,"&").replace(/%2C/g,",").replace(/%3B/g,";").replace(/%2B/g,"+").replace(/%40/g,"@").replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/%7B/g,"{").replace(/%7D/g,"}")},isArray:function(e){return e&&!e.propertyIsEnumerable("length")&&"object"==typeof e&&"number"==typeof e.length},RGBToHex:function(e){function t(e){return("0"+parseInt(e,10).toString(16)).slice(-2)}try{return e&&"transparent"!==e?/^#[0-9A-F]{6}$/i.test(e)?e:("#"+t((e=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))[1])+t(e[2])+t(e[3])).toUpperCase():""}catch(n){return null}},HEXtoRGB:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?"rgb("+parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16)+")":""},isURL:function(e){return!!/^(https?:|ftps?:|)\/\//i.test(e)&&(e=String(e).replace(/</g,"%3C").replace(/>/g,"%3E").replace(/"/g,"%22").replace(/ /g,"%20"),new RegExp("^"+R.FE.LinkRegExHTTP+R.FE.LinkRegExEnd+"$","gi").test(e))},getAlignment:function(e){var t=(e.css("text-align")||"").replace(/-(.*)-/g,"");if(["left","right","justify","center"].indexOf(t)<0){if(!a){var n=R('<div dir="'+("rtl"==o.opts.direction?"rtl":"auto")+'" style="text-align: '+o.$el.css("text-align")+'; position: fixed; left: -3000px;"><span id="s1">.</span><span id="s2">.</span></div>');R("body:first").append(n);var r=n.find("#s1").get(0).getBoundingClientRect().left,i=n.find("#s2").get(0).getBoundingClientRect().left;n.remove(),a=r<i?"left":"right"}t=a}return t},scrollTop:function(){return o.o_win.pageYOffset?o.o_win.pageYOffset:o.o_doc.documentElement&&o.o_doc.documentElement.scrollTop?o.o_doc.documentElement.scrollTop:o.o_doc.body.scrollTop?o.o_doc.body.scrollTop:0},scrollLeft:function(){return o.o_win.pageXOffset?o.o_win.pageXOffset:o.o_doc.documentElement&&o.o_doc.documentElement.scrollLeft?o.o_doc.documentElement.scrollLeft:o.o_doc.body.scrollLeft?o.o_doc.body.scrollLeft:0},isInViewPort:function(e){var t=e.getBoundingClientRect();return 0<=t.top&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)||t.top<=0&&t.bottom>=(window.innerHeight||document.documentElement.clientHeight)}}},R.FE.MODULES.events=function(a){function e(e,t,n){r(e,t,n)}function t(e){if(void 0===e&&(e=!0),!a.$wp)return!1;if(a.helpers.isIOS()&&a.$win.get(0).focus(),a.core.hasFocus())return!1;if(!a.core.hasFocus()&&e){var t=a.$win.scrollTop();if(a.browser.msie&&a.$box&&a.$box.css("position","fixed"),a.browser.msie&&a.$wp&&a.$wp.css("overflow","visible"),o(),a.$el.focus(),a.events.trigger("focus"),i(),a.browser.msie&&a.$box&&a.$box.css("position",""),a.browser.msie&&a.$wp&&a.$wp.css("overflow","auto"),t!=a.$win.scrollTop()&&a.$win.scrollTop(t),!a.selection.info(a.el).atStart)return!1}if(!a.core.hasFocus()||0<a.$el.find(".fr-marker").length)return!1;if(a.selection.info(a.el).atStart&&a.selection.isCollapsed()&&null!=a.html.defaultTag()){var n=a.markers.insert();if(n&&!a.node.blockParent(n)){R(n).remove();var r=a.$el.find(a.html.blockTagsQuery()).get(0);r&&(R(r).prepend(R.FE.MARKERS),a.selection.restore())}else n&&R(n).remove()}}function i(){d=!0}function o(){d=!1}function n(){return d}function s(e,t,n){var r,i=e.split(" ");if(1<i.length){for(var o=0;o<i.length;o++)s(i[o],t,n);return!0}void 0===n&&(n=!1),r=0!==e.indexOf("shared.")?h[e]=h[e]||[]:a.shared._events[e]=a.shared._events[e]||[],n?r.unshift(t):r.push(t)}function r(e,t,n,r,i){"function"==typeof n&&(i=r,r=n,n=!1);var o=i?a.shared.$_events:g,s=i?a.sid:a.id;n?e.on(t.split(" ").join(".ed"+s+" ")+".ed"+s,n,r):e.on(t.split(" ").join(".ed"+s+" ")+".ed"+s,r),o.push([e,t.split(" ").join(".ed"+s+" ")+".ed"+s])}function l(e){for(var t=0;t<e.length;t++)e[t][0].off(e[t][1])}function u(e,t,n){if(!a.edit.isDisabled()||n){var r,i;if(0!==e.indexOf("shared."))r=h[e];else{if(0<a.shared.count)return!1;r=a.shared._events[e]}if(r)for(var o=0;o<r.length;o++)if(!1===(i=r[o].apply(a,t)))return!1;
15return!1!==(i=a.$oel.triggerHandler("froalaEditor."+e,R.merge([a],t||[])))&&i}}function c(){for(var e in h)h.hasOwnProperty(e)&&delete h[e]}function f(){for(var e in a.shared._events)a.shared._events.hasOwnProperty(e)&&delete a.shared._events[e]}var d,h={},p=!1,g=[];return{_init:function(){a.shared.$_events=a.shared.$_events||[],a.shared._events={},a.helpers.isMobile()?(a._mousedown="touchstart",a._mouseup="touchend",a._move="touchmove",a._mousemove="touchmove"):(a._mousedown="mousedown",a._mouseup="mouseup",a._move="",a._mousemove="mousemove"),e(a.$el,"click mouseup mousedown touchstart touchend dragenter dragover dragleave dragend drop dragstart",function(e){u(e.type,[e])}),s("mousedown",function(){for(var e=0;e<R.FE.INSTANCES.length;e++)R.FE.INSTANCES[e]!=a&&R.FE.INSTANCES[e].popups&&R.FE.INSTANCES[e].popups.areVisible()&&R.FE.INSTANCES[e].$el.find(".fr-marker").remove()}),e(a.$win,a._mousedown,function(e){u("window.mousedown",[e]),i()}),e(a.$win,a._mouseup,function(e){u("window.mouseup",[e])}),e(a.$win,"cut copy keydown keyup touchmove touchend",function(e){u("window."+e.type,[e])}),e(a.$doc,"dragend drop",function(e){u("document."+e.type,[e])}),e(a.$el,"keydown keypress keyup input",function(e){u(e.type,[e])}),e(a.$el,"focus",function(e){n()&&(t(!1),!1===p&&u(e.type,[e]))}),e(a.$el,"blur",function(e){n()&&!0===p&&(u(e.type,[e]),i())}),s("focus",function(){p=!0}),s("blur",function(){p=!1}),i(),e(a.$el,"cut copy paste beforepaste",function(e){u(e.type,[e])}),s("destroy",c),s("shared.destroy",f)},on:s,trigger:u,bindClick:function(e,t,n){r(e,a._mousedown,t,function(e){var t,n;a.edit.isDisabled()||(n=R((t=e).currentTarget),a.edit.isDisabled()||a.node.hasClass(n.get(0),"fr-disabled")?t.preventDefault():"mousedown"===t.type&&1!==t.which||(a.helpers.isMobile()||t.preventDefault(),(a.helpers.isAndroid()||a.helpers.isWindowsPhone())&&0===n.parents(".fr-dropdown-menu").length&&(t.preventDefault(),t.stopPropagation()),n.addClass("fr-selected"),a.events.trigger("commands.mousedown",[n])))},!0),r(e,a._mouseup+" "+a._move,t,function(e){a.edit.isDisabled()||function(e,t){var n=R(e.currentTarget);if(a.edit.isDisabled()||a.node.hasClass(n.get(0),"fr-disabled"))return e.preventDefault();if(("mouseup"!==e.type||1===e.which)&&a.node.hasClass(n.get(0),"fr-selected"))if("touchmove"!=e.type){if(e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),!a.node.hasClass(n.get(0),"fr-selected"))return a.button.getButtons(".fr-selected",!0).removeClass("fr-selected");if(a.button.getButtons(".fr-selected",!0).removeClass("fr-selected"),n.data("dragging")||n.attr("disabled"))return n.removeData("dragging");var r=n.data("timeout");r&&(clearTimeout(r),n.removeData("timeout")),t.apply(a,[e])}else n.data("timeout")||n.data("timeout",setTimeout(function(){n.data("dragging",!0)},100))}(e,n)},!0),r(e,"mousedown click mouseup",t,function(e){a.edit.isDisabled()||e.stopPropagation()},!0),s("window.mouseup",function(){a.edit.isDisabled()||(e.find(t).removeClass("fr-selected"),i())})},disableBlur:o,enableBlur:i,blurActive:n,focus:t,chainTrigger:function(e,t,n){if(!a.edit.isDisabled()||n){var r,i;if(0!==e.indexOf("shared."))r=h[e];else{if(0<a.shared.count)return!1;r=a.shared._events[e]}if(r)for(var o=0;o<r.length;o++)void 0!==(i=r[o].apply(a,[t]))&&(t=i);return void 0!==(i=a.$oel.triggerHandler("froalaEditor."+e,R.merge([a],[t])))&&(t=i),t}},$on:r,$off:function(){l(g),g=[],0===a.shared.count&&(l(a.shared.$_events),a.shared.$_events=[])}}},R.FE.MODULES.node=function(s){function a(e){return e&&"IFRAME"!=e.tagName?Array.prototype.slice.call(e.childNodes||[]):[]}function l(e){return!!e&&e.nodeType==Node.ELEMENT_NODE&&0<=R.FE.BLOCK_TAGS.indexOf(e.tagName.toLowerCase())}function u(e){var t={},n=e.attributes;if(n)for(var r=0;r<n.length;r++){var i=n[r];t[i.nodeName]=i.value}return t}function t(e){for(var t="",n=u(e),r=Object.keys(n).sort(),i=0;i<r.length;i++){var o=r[i],s=n[o];s.indexOf("'")<0&&0<=s.indexOf('"')?t+=" "+o+"='"+s+"'":0<=s.indexOf('"')&&0<=s.indexOf("'")?t+=" "+o+'="'+(s=s.replace(/"/g,"&quot;"))+'"':t+=" "+o+'="'+s+'"'}return t}function n(e){return e===s.el}return{isBlock:l,isEmpty:function(e,t){if(!e)return!0;
15if(e.querySelector("table"))return!1;var n=a(e);1==n.length&&l(n[0])&&(n=a(n[0]));for(var r=!1,i=0;i<n.length;i++){var o=n[i];if(!(t&&s.node.hasClass(o,"fr-marker")||o.nodeType==Node.TEXT_NODE&&0===o.textContent.length)){if("BR"!=o.tagName&&0<(o.textContent||"").replace(/\u200B/gi,"").replace(/\n/g,"").length)return!1;if(r)return!1;"BR"==o.tagName&&(r=!0)}}return!(e.querySelectorAll(R.FE.VOID_ELEMENTS.join(",")).length-e.querySelectorAll("br").length||e.querySelector(s.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)")||1<e.querySelectorAll(R.FE.BLOCK_TAGS.join(",")).length||e.querySelector(s.opts.htmlDoNotWrapTags.join(":not(.fr-marker),")+":not(.fr-marker)"))},blockParent:function(e){for(;e&&e.parentNode!==s.el&&(!e.parentNode||!s.node.hasClass(e.parentNode,"fr-inner"));)if(l(e=e.parentNode))return e;return null},deepestParent:function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=!0),t.push(s.el),0<=t.indexOf(e.parentNode)||e.parentNode&&s.node.hasClass(e.parentNode,"fr-inner")||e.parentNode&&0<=R.FE.SIMPLE_ENTER_TAGS.indexOf(e.parentNode.tagName)&&n)return null;for(;t.indexOf(e.parentNode)<0&&e.parentNode&&!s.node.hasClass(e.parentNode,"fr-inner")&&(R.FE.SIMPLE_ENTER_TAGS.indexOf(e.parentNode.tagName)<0||!n)&&(!l(e)||!l(e.parentNode)||!n);)e=e.parentNode;return e},rawAttributes:u,attributes:t,clearAttributes:function(e){for(var t=e.attributes,n=t.length-1;0<=n;n--){var r=t[n];e.removeAttribute(r.nodeName)}},openTagString:function(e){return"<"+e.tagName.toLowerCase()+t(e)+">"},closeTagString:function(e){return"</"+e.tagName.toLowerCase()+">"},isFirstSibling:function r(e,t){void 0===t&&(t=!0);for(var n=e.previousSibling;n&&t&&s.node.hasClass(n,"fr-marker");)n=n.previousSibling;return!n||n.nodeType==Node.TEXT_NODE&&""===n.textContent&&r(n)},isLastSibling:function r(e,t){void 0===t&&(t=!0);for(var n=e.nextSibling;n&&t&&s.node.hasClass(n,"fr-marker");)n=n.nextSibling;return!n||n.nodeType==Node.TEXT_NODE&&""===n.textContent&&r(n)},isList:function(e){return!!e&&0<=["UL","OL"].indexOf(e.tagName)},isLink:function(e){return!!e&&e.nodeType==Node.ELEMENT_NODE&&"a"==e.tagName.toLowerCase()},isElement:n,contents:a,isVoid:function(e){return e&&e.nodeType==Node.ELEMENT_NODE&&0<=R.FE.VOID_ELEMENTS.indexOf((e.tagName||"").toLowerCase())},hasFocus:function(e){return e===s.doc.activeElement&&(!s.doc.hasFocus||s.doc.hasFocus())&&!!(n(e)||e.type||e.href||~e.tabIndex)},isEditable:function(e){return(!e.getAttribute||"false"!=e.getAttribute("contenteditable"))&&["STYLE","SCRIPT"].indexOf(e.tagName)<0},isDeletable:function(e){return e&&e.nodeType==Node.ELEMENT_NODE&&e.getAttribute("class")&&0<=(e.getAttribute("class")||"").indexOf("fr-deletable")},hasClass:function(e,t){return e instanceof R&&(e=e.get(0)),e&&e.classList&&e.classList.contains(t)},filter:function(e){return s.browser.msie?e:{acceptNode:e}}}},R.FE.INVISIBLE_SPACE="&#8203;",R.FE.START_MARKER='<span class="fr-marker" data-id="0" data-type="true" style="display: none; line-height: 0;">'+R.FE.INVISIBLE_SPACE+"</span>",R.FE.END_MARKER='<span class="fr-marker" data-id="0" data-type="false" style="display: none; line-height: 0;">'+R.FE.INVISIBLE_SPACE+"</span>",R.FE.MARKERS=R.FE.START_MARKER+R.FE.END_MARKER,R.FE.MODULES.markers=function(l){function u(){if(!l.$wp)return null;try{var e=l.selection.ranges(0),t=e.commonAncestorContainer;if(t!=l.el&&0===l.$el.find(t).length)return null;var n=e.cloneRange(),r=e.cloneRange();n.collapse(!0);var i=R('<span class="fr-marker" style="display: none; line-height: 0;">'+R.FE.INVISIBLE_SPACE+"</span>",l.doc)[0];if(n.insertNode(i),i=l.$el.find("span.fr-marker").get(0)){for(var o=i.nextSibling;o&&o.nodeType===Node.TEXT_NODE&&0===o.textContent.length;)R(o).remove(),o=l.$el.find("span.fr-marker").get(0).nextSibling;return l.selection.clear(),l.selection.get().addRange(r),i}return null}catch(s){}}function a(){l.$el.find(".fr-marker").remove()}return{place:function(e,t,n){var r,i,o;try{var s=e.cloneRange();if(s.collapse(t),s.insertNode(R('<span class="fr-marker" data-id="'+n+'" data-type="'+t+'" style="display: '+(l.browser.safari?"none":"inline-block")+'; line-height: 0;">'+R.FE.INVISIBLE_SPACE+"</span>",l.doc)[0]),!0===t)for(o=(r=l.$el.find('span.fr-marker[data-type="true"][data-id="'+n+'"]').get(0)).nextSibling;
15o&&o.nodeType===Node.TEXT_NODE&&0===o.textContent.length;)R(o).remove(),o=r.nextSibling;if(!0===t&&!e.collapsed){for(;!l.node.isElement(r.parentNode)&&!o;)R(r.parentNode).after(r),o=r.nextSibling;if(o&&o.nodeType===Node.ELEMENT_NODE&&l.node.isBlock(o)&&"HR"!==o.tagName){for(i=[o];o=i[0],(i=l.node.contents(o))[0]&&l.node.isBlock(i[0]););R(o).prepend(R(r))}}if(!1===t&&!e.collapsed){if((o=(r=l.$el.find('span.fr-marker[data-type="false"][data-id="'+n+'"]').get(0)).previousSibling)&&o.nodeType===Node.ELEMENT_NODE&&l.node.isBlock(o)&&"HR"!==o.tagName){for(i=[o];o=i[i.length-1],(i=l.node.contents(o))[i.length-1]&&l.node.isBlock(i[i.length-1]););R(o).append(R(r))}r.parentNode&&0<=["TD","TH"].indexOf(r.parentNode.tagName)&&r.parentNode.previousSibling&&!r.previousSibling&&R(r.parentNode.previousSibling).append(r)}var a=l.$el.find('span.fr-marker[data-type="'+t+'"][data-id="'+n+'"]').get(0);return a&&(a.style.display="none"),a}catch(u){return null}},insert:u,split:function(){l.selection.isCollapsed()||l.selection.remove();var e=l.$el.find(".fr-marker").get(0);if(null==e&&(e=u()),null==e)return null;var t=l.node.deepestParent(e);if(t||(t=l.node.blockParent(e))&&"LI"!=t.tagName&&(t=null),t)if(l.node.isBlock(t)&&l.node.isEmpty(t))"LI"!=t.tagName||t.parentNode.firstElementChild!=t||l.node.isEmpty(t.parentNode)?R(t).replaceWith('<span class="fr-marker"></span>'):R(t).append('<span class="fr-marker"></span>');else if(l.cursor.isAtStart(e,t))R(t).before('<span class="fr-marker"></span>'),R(e).remove();else if(l.cursor.isAtEnd(e,t))R(t).after('<span class="fr-marker"></span>'),R(e).remove();else{for(var n=e,r="",i="";n=n.parentNode,r+=l.node.closeTagString(n),i=l.node.openTagString(n)+i,n!=t;);R(e).replaceWith('<span id="fr-break"></span>');var o=l.node.openTagString(t)+R(t).html()+l.node.closeTagString(t);o=o.replace(/<span id="fr-break"><\/span>/g,r+'<span class="fr-marker"></span>'+i),R(t).replaceWith(o)}return l.$el.find(".fr-marker").get(0)},insertAtPoint:function(e){var t,n=e.clientX,r=e.clientY;a();var i=null;if("undefined"!=typeof l.doc.caretPositionFromPoint?(t=l.doc.caretPositionFromPoint(n,r),(i=l.doc.createRange()).setStart(t.offsetNode,t.offset),i.setEnd(t.offsetNode,t.offset)):"undefined"!=typeof l.doc.caretRangeFromPoint&&(t=l.doc.caretRangeFromPoint(n,r),(i=l.doc.createRange()).setStart(t.startContainer,t.startOffset),i.setEnd(t.startContainer,t.startOffset)),null!==i&&"undefined"!=typeof l.win.getSelection){var o=l.win.getSelection();o.removeAllRanges(),o.addRange(i)}else if("undefined"!=typeof l.doc.body.createTextRange)try{(i=l.doc.body.createTextRange()).moveToPoint(n,r);var s=i.duplicate();s.moveToPoint(n,r),i.setEndPoint("EndToEnd",s),i.select()}catch(c){return!1}u()},remove:a}},R.FE.MODULES.selection=function(E){function a(){var e="";return E.win.getSelection?e=E.win.getSelection():E.doc.getSelection?e=E.doc.getSelection():E.doc.selection&&(e=E.doc.selection.createRange().text),e.toString()}function T(){return E.win.getSelection?E.win.getSelection():E.doc.getSelection?E.doc.getSelection():E.doc.selection.createRange()}function c(e){var t=T(),n=[];if(t&&t.getRangeAt&&t.rangeCount){n=[];for(var r=0;r<t.rangeCount;r++)n.push(t.getRangeAt(r))}else n=E.doc.createRange?[E.doc.createRange()]:[];return void 0!==e?n[e]:n}function S(){var e=T();try{e.removeAllRanges?e.removeAllRanges():e.empty?e.empty():e.clear&&e.clear()}catch(t){}}function f(e,t){var n=e;return n.nodeType==Node.ELEMENT_NODE&&0<n.childNodes.length&&n.childNodes[t]&&(n=n.childNodes[t]),n.nodeType==Node.TEXT_NODE&&(n=n.parentNode),n}function w(){if(E.$wp){E.markers.remove();var e,t,n=c(),r=[];for(t=0;t<n.length;t++)if(n[t].startContainer!==E.doc||E.browser.msie){var i=(e=n[t]).collapsed,o=E.markers.place(e,!0,t),s=E.markers.place(e,!1,t);if(void 0!==o&&o||!i||(R(".fr-marker").remove(),E.selection.setAtEnd(E.el)),E.el.normalize(),E.browser.safari&&!i)try{(e=E.doc.createRange()).setStartAfter(o),e.setEndBefore(s),r.push(e)}catch(a){}}if(E.browser.safari&&r.length)for(E.selection.clear(),t=0;t<r.length;t++)E.selection.get().addRange(r[t])}}function A(){var e,t=E.el.querySelectorAll('.fr-marker[data-type="true"]');if(!E.$wp)return E.markers.remove(),!1;if(0===t.length)return!1;if(E.browser.msie||E.browser.edge)for(e=0;e<t.length;e++)t[e].style.display="inline-block";E.core.hasFocus()||E.browser.msie||E.browser.webkit||E.$el.focus(),S();var n=T();for(e=0;e<t.length;e++){var r=R(t[e]).data("id"),i=t[e],o=E.doc.createRange(),s=E.$el.find('.fr
15-marker[data-type="false"][data-id="'+r+'"]');(E.browser.msie||E.browser.edge)&&s.css("display","inline-block");var a=null;if(0<s.length){s=s[0];try{for(var l,u=!1,c=i.nextSibling;c&&c.nodeType==Node.TEXT_NODE&&0===c.textContent.length;)c=(l=c).nextSibling,R(l).remove();for(var f,d,h=s.nextSibling;h&&h.nodeType==Node.TEXT_NODE&&0===h.textContent.length;)h=(l=h).nextSibling,R(l).remove();if(i.nextSibling==s||s.nextSibling==i){for(var p=i.nextSibling==s?i:s,g=p==i?s:i,m=p.previousSibling;m&&m.nodeType==Node.TEXT_NODE&&0===m.length;)m=(l=m).previousSibling,R(l).remove();if(m&&m.nodeType==Node.TEXT_NODE)for(;m&&m.previousSibling&&m.previousSibling.nodeType==Node.TEXT_NODE;)m.previousSibling.textContent=m.previousSibling.textContent+m.textContent,m=m.previousSibling,R(m.nextSibling).remove();for(var v=g.nextSibling;v&&v.nodeType==Node.TEXT_NODE&&0===v.length;)v=(l=v).nextSibling,R(l).remove();if(v&&v.nodeType==Node.TEXT_NODE)for(;v&&v.nextSibling&&v.nextSibling.nodeType==Node.TEXT_NODE;)v.nextSibling.textContent=v.textContent+v.nextSibling.textContent,v=v.nextSibling,R(v.previousSibling).remove();if(m&&(E.node.isVoid(m)||E.node.isBlock(m))&&(m=null),v&&(E.node.isVoid(v)||E.node.isBlock(v))&&(v=null),m&&v&&m.nodeType==Node.TEXT_NODE&&v.nodeType==Node.TEXT_NODE){R(i).remove(),R(s).remove();var y=m.textContent.length;m.textContent=m.textContent+v.textContent,R(v).remove(),E.opts.htmlUntouched||E.spaces.normalize(m),o.setStart(m,y),o.setEnd(m,y),u=!0}else!m&&v&&v.nodeType==Node.TEXT_NODE?(R(i).remove(),R(s).remove(),E.opts.htmlUntouched||E.spaces.normalize(v),a=R(E.doc.createTextNode("\u200b")),R(v).before(a),o.setStart(v,0),o.setEnd(v,0),u=!0):!v&&m&&m.nodeType==Node.TEXT_NODE&&(R(i).remove(),R(s).remove(),E.opts.htmlUntouched||E.spaces.normalize(m),a=R(E.doc.createTextNode("\u200b")),R(m).after(a),o.setStart(m,m.textContent.length),o.setEnd(m,m.textContent.length),u=!0)}u||((E.browser.chrome||E.browser.edge)&&i.nextSibling==s?(f=C(s,o,!0)||o.setStartAfter(s),d=C(i,o,!1)||o.setEndBefore(i)):(i.previousSibling==s&&(s=(i=s).nextSibling),s.nextSibling&&"BR"===s.nextSibling.tagName||!s.nextSibling&&E.node.isBlock(i.previousSibling)||i.previousSibling&&"BR"==i.previousSibling.tagName||(i.style.display="inline",s.style.display="inline",a=R(E.doc.createTextNode("\u200b"))),f=C(i,o,!0)||R(i).before(a)&&o.setStartBefore(i),d=C(s,o,!1)||R(s).after(a)&&o.setEndAfter(s)),"function"==typeof f&&f(),"function"==typeof d&&d())}catch(b){}}a&&a.remove();try{n.addRange(o)}catch(b){}}E.markers.remove()}function C(e,t,n){var r,i=e.previousSibling,o=e.nextSibling;return i&&o&&i.nodeType==Node.TEXT_NODE&&o.nodeType==Node.TEXT_NODE?(r=i.textContent.length,n?(o.textContent=i.textContent+o.textContent,R(i).remove(),R(e).remove(),E.opts.htmlUntouched||E.spaces.normalize(o),function(){t.setStart(o,r)}):(i.textContent=i.textContent+o.textContent,R(o).remove(),R(e).remove(),E.opts.htmlUntouched||E.spaces.normalize(i),function(){t.setEnd(i,r)})):i&&!o&&i.nodeType==Node.TEXT_NODE?(r=i.textContent.length,n?(E.opts.htmlUntouched||E.spaces.normalize(i),function(){t.setStart(i,r)}):(E.opts.htmlUntouched||E.spaces.normalize(i),function(){t.setEnd(i,r)})):!(!o||i||o.nodeType!=Node.TEXT_NODE)&&(n?(E.opts.htmlUntouched||E.spaces.normalize(o),function(){t.setStart(o,0)}):(E.opts.htmlUntouched||E.spaces.normalize(o),function(){t.setEnd(o,0)}))}function x(){for(var e=c(),t=0;t<e.length;t++)if(!e[t].collapsed)return!1;return!0}function i(e){var t,n,r=!1,i=!1;if(E.win.getSelection){var o=E.win.getSelection();o.rangeCount&&((n=(t=o.getRangeAt(0)).cloneRange()).selectNodeContents(e),n.setEnd(t.startContainer,t.startOffset),r=""===n.toString(),n.selectNodeContents(e),n.setStart(t.endContainer,t.endOffset),i=""===n.toString())}else E.doc.selection&&"Control"!=E.doc.selection.type&&((n=(t=E.doc.selection.createRange()).duplicate()).moveToElementText(e),n.setEndPoint("EndToStart",t),r=""===n.text,n.moveToElementText(e),n.setEndPoint("StartToEnd",t),i=""===n.text);return{atStart:r,atEnd:i}}function _(e,t){void 0===t&&(t=!0);var n=R(e).html();n&&n.replace(/\u200b/g,"").length!=n.length&&R(e).html(n.replace(/\u200b/g,""));for(var r=E.node.contents(e),i=0;i<r.length;i++)r[i].nodeType!=Node.ELEMENT_NODE?R(r[i]).remove():(_(r[i],0===i),0===i&&(t=!1));e.nodeType==Node.TEXT_NODE?R(e).replaceWith('<span data-first="true" data-text="true"></span>'):t&&R(e).attr("data-first",!0)}function N(){return 0===R(this).find("fr-inner").length}function d(){try{if(!E.$wp)return!1;for(var e=c(0).commonAncestorContainer;e&&!E.node.isElement(e);)e=e.parentNode;return!!E.node.isElement(e)}catch(t){return!1}}function r(e,t){if(!e||0<e.getElementsByClassName("fr-marker").length)return!1;for(var n=e.firstChild;n&&(E.node.isBlock(n)||t&&!E.node.isVoid(n)&&n.nodeType==Node.ELEMENT_NODE);)n=(e=n).firstChild;e.innerHTML=R.FE.MARKERS+e.innerHTML}function o(e,t){if(!e||0<e.getElementsByClassName("fr-marker").length)return!1;for(var n=e.lastChild;n&&(E.node.isBlock(n)||t&&!E.node.isVoid(n)&&n.nodeType==Node.ELEMENT_NODE);)n=(e=n).lastChild;var r=E.doc.createElement("SPAN");r.setAttribute("id","fr-sel-markers"),r.innerHTML=R.FE.MARKERS,e.a
15ppendChild(r);var i=e.querySelector("#fr-sel-markers");i.outerHTML=i.innerHTML}return{text:a,get:T,ranges:c,clear:S,element:function(){var e=T();try{if(e.rangeCount){var t,n=c(0),r=n.startContainer;if(r.nodeType==Node.TEXT_NODE&&n.startOffset==(r.textContent||"").length&&r.nextSibling&&(r=r.nextSibling),r.nodeType==Node.ELEMENT_NODE){var i=!1;if(0<r.childNodes.length&&r.childNodes[n.startOffset]){for(t=r.childNodes[n.startOffset];t&&t.nodeType==Node.TEXT_NODE&&0===t.textContent.length;)t=t.nextSibling;if(t&&t.textContent.replace(/\u200B/g,"")===a().replace(/\u200B/g,"")&&(r=t,i=!0),!i&&1<r.childNodes.length&&0<n.startOffset&&r.childNodes[n.startOffset-1]){for(t=r.childNodes[n.startOffset-1];t&&t.nodeType==Node.TEXT_NODE&&0===t.textContent.length;)t=t.nextSibling;t&&t.textContent.replace(/\u200B/g,"")===a().replace(/\u200B/g,"")&&(r=t,i=!0)}}else!n.collapsed&&r.nextSibling&&r.nextSibling.nodeType==Node.ELEMENT_NODE&&(t=r.nextSibling)&&t.textContent.replace(/\u200B/g,"")===a().replace(/\u200B/g,"")&&(r=t,i=!0);!i&&0<r.childNodes.length&&R(r.childNodes[0]).text().replace(/\u200B/g,"")===a().replace(/\u200B/g,"")&&["BR","IMG","HR"].indexOf(r.childNodes[0].tagName)<0&&(r=r.childNodes[0])}for(;r.nodeType!=Node.ELEMENT_NODE&&r.parentNode;)r=r.parentNode;for(var o=r;o&&"HTML"!=o.tagName;){if(o==E.el)return r;o=R(o).parent()[0]}}}catch(s){}return E.el},endElement:function(){var e=T();try{if(e.rangeCount){var t,n=c(0),r=n.endContainer;if(r.nodeType==Node.ELEMENT_NODE){var i=!1
16;0<r.childNodes.length&&r.childNodes[n.endOffset]&&R(r.childNodes[n.endOffset]).text()===a()?(r=r.childNodes[n.endOffset],i=!0):!n.collapsed&&r.previousSibling&&r.previousSibling.nodeType==Node.ELEMENT_NODE?(t=r.previousSibling)&&t.textContent.replace(/\u200B/g,"")===a().replace(/\u200B/g,"")&&(r=t,i=!0):!n.collapsed&&0<r.childNodes.length&&r.childNodes[n.endOffset]&&(t=r.childNodes[n.endOffset].previousSibling).nodeType==Node.ELEMENT_NODE&&t&&t.textContent.replace(/\u200B/g,"")===a().replace(/\u200B/g,"")&&(r=t,i=!0),!i&&0<r.childNodes.length&&R(r.childNodes[r.childNodes.length-1]).text()===a()&&["BR","IMG","HR"].indexOf(r.childNodes[r.childNodes.length-1].tagName)<0&&(r=r.childNodes[r.childNodes.length-1])}for(r.nodeType==Node.TEXT_NODE&&0===n.endOffset&&r.previousSibling&&r.previousSibling.nodeType==Node.ELEMENT_NODE&&(r=r.previousSibling);r.nodeType!=Node.ELEMENT_NODE&&r.parentNode;)r=r.parentNode;for(var o=r;o&&"HTML"!=o.tagName;){if(o==E.el)return r;o=R(o).parent()[0]}}}catch(s){}return E.el},save:w,restore:A,isCollapsed:x,isFull:function(){if(x())return!1;E.selection.save();var e,t=E.el.querySelectorAll("td, th, img, br");for(e=0;e<t.length;e++)t[e].nextSibling&&(t[e].innerHTML='<span class="fr-mk">'+R.FE.INVISIBLE_SPACE+"</span>"+t[e].innerHTML);var n=!1,r=i(E.el);for(r.atStart&&r.atEnd&&(n=!0),t=E.el.querySelectorAll(".fr-mk"),e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e]);return E.selection.restore(),n},inEditor:d,remove:function(){if(x())return!0;var e;w();var t=function(e){for(var t=e.previousSibling;t&&t.nodeType==Node.TEXT_NODE&&0===t.textContent.length;){var n=t;t=t.previousSibling,R(n).remove()}return t},n=function(e){for(var t=e.nextSibling;t&&t.nodeType==Node.TEXT_NODE&&0===t.textContent.length;){var n=t;t=t.nextSibling,R(n).remove()}return t},r=E.$el.find('.fr-marker[data-type="true"]');for(e=0;e<r.length;e++)for(var i=r[e];!(t(i)||E.node.isBlock(i.parentNode)||E.$el.is(i.parentNode)||E.node.hasClass(i.parentNode,"fr-inner"));)R(i.parentNode).before(i);var o=E.$el.find('.fr-marker[data-type="false"]');for(e=0;e<o.length;e++){for(var s=o[e];!(n(s)||E.node.isBlock(s.parentNode)||E.$el.is(s.parentNode)||E.node.hasClass(s.parentNode,"fr-inner"));)R(s.parentNode).after(s);s.parentNode&&E.node.isBlock(s.parentNode)&&E.node.isEmpty(s.parentNode)&&!E.$el.is(s.parentNode)&&!E.node.hasClass(s.parentNode,"fr-inner")&&E.opts.keepFormatOnDelete&&R(s.parentNode).after(s)}if(function(){for(var e=E.$el.find(".fr-marker"),t=0;t<e.length;t++)if(R(e[t]).parentsUntil('.fr-element, [contenteditable="true"]','[contenteditable="false"]').length)return!1;return!0}()){!function a(e,t){var n=E.node.contents(e.get(0));0<=["TD","TH"].indexOf(e.get(0).tagName)&&1==e.find(".fr-marker").length&&E.node.hasClass(n[0],"fr-marker")&&e.attr("data-del-cell",!0);for(var r=0;r<n.length;r++){var i=n[r];E.node.hasClass(i,"fr-marker")?t=(t+1)%2:t?0<R(i).find(".fr-marker").length?t=a(R(i),t):["TD","TH"].indexOf(i.tagName)<0&&!E.node.hasClass(i,"fr-inner")?!E.opts.keepFormatOnDelete||0<E.$el.find("[data-first]").length||E.node.isVoid(i)?R(i).remove():_(i):E.node.hasClass(i,"fr-inner")?0===R(i).find(".fr-inner").length?R(i).html("<br>"):R(i).find(".fr-inner").filter(N).html("<br>"):(R(i).empty(),R(i).attr("data-del-cell",!0)):0<R(i).find(".fr-marker").length&&(t=a(R(i),t))}return t}(E.$el,0);var l=E.$el.find('[data-first="true"]');if(l.length)E.$el.find(".fr-marker").remove(),l.append(R.FE.INVISIBLE_SPACE+R.FE.MARKERS).removeAttr("data-first"),l.attr("data-text")&&l.replaceWith(l.html());else for(E.$el.find("table").filter(function(){return 0<R(this).find("[data-del-cell]").length&&R(this).find("[data-del-cell]").length==R(this).find("td, th").length}).remove(),E.$el.find("[data-del-cell]").removeAttr("data-del-cell"),r=E.$el.find('.fr
16-marker[data-type="true"]'),e=0;e<r.length;e++){var u=r[e],c=u.nextSibling,f=E.$el.find('.fr-marker[data-type="false"][data-id="'+R(u).data("id")+'"]').get(0);if(f){if(u&&(!c||c!=f)){var d=E.node.blockParent(u),h=E.node.blockParent(f),p=!1,g=!1;if(d&&0<=["UL","OL"].indexOf(d.tagName)&&(p=!(d=null)),h&&0<=["UL","OL"].indexOf(h.tagName)&&(g=!(h=null)),R(u).after(f),d!=h)if(null!=d||p)if(null!=h||g||0!==R(d).parentsUntil(E.$el,"table").length)d&&h&&0===R(d).parentsUntil(E.$el,"table").length&&0===R(h).parentsUntil(E.$el,"table").length&&0===R(d).find(h).length&&0===R(h).find(d).length&&(R(d).append(R(h).html()),R(h).remove());else{for(c=d;!c.nextSibling&&c.parentNode!=E.el;)c=c.parentNode;for(c=c.nextSibling;c&&"BR"!=c.tagName;){var m=c.nextSibling;R(d).append(c),c=m}c&&"BR"==c.tagName&&R(c).remove()}else{var v=E.node.deepestParent(u);v?(R(v).after(R(h).html()),R(h).remove()):0===R(h).parentsUntil(E.$el,"table").length&&(R(u).next().after(R(h).html()),R(h).remove())}}}else f=R(u).clone().attr("data-type",!1),R(u).after(f)}}E.$el.find("li:empty").remove(),E.opts.keepFormatOnDelete||E.html.fillEmptyBlocks(),E.html.cleanEmptyTags(!0),E.opts.htmlUntouched||(E.clean.lists(),E.$el.find("li:empty").append("<br>"),E.spaces.normalize());var y=E.$el.find(".fr-marker:last").get(0),b=E.$el.find(".fr-marker:first").get(0);void 0!==y&&void 0!==b&&!y.nextSibling&&b.previousSibling&&"BR"==b.previousSibling.tagName&&E.node.isElement(y.parentNode)&&E.node.isElement(b.parentNode)&&E.$el.append("<br>"),A()},blocks:function(){var e,t=[],n=T();if(d()&&n.rangeCount){var r=c();for(e=0;e<r.length;e++){var i,o=r[e],s=f(o.startContainer,o.startOffset),a=f(o.endContainer,o.endOffset);(E.node.isBlock(s)||E.node.hasClass(s,"fr-inner"))&&t.indexOf(s)<0&&t.push(s),(i=E.node.blockParent(s))&&t.indexOf(i)<0&&t.push(i);for(var l=[],u=s;u!==a&&u!==E.el;)l.indexOf(u)<0&&u.children&&u.children.length?(l.push(u),u=u.children[0]):u.nextSibling?u=u.nextSibling:u.parentNode&&(u=u.parentNode,l.push(u)),E.node.isBlock(u)&&l.indexOf(u)<0&&t.indexOf(u)<0&&(u!==a||0<o.endOffset)&&t.push(u);E.node.isBlock(a)&&t.indexOf(a)<0&&0<o.endOffset&&t.push(a),(i=E.node.blockParent(a))&&t.indexOf(i)<0&&t.push(i)}}for(e=t.length-1;0<e;e--)R(t[e]).find(t).length&&t.splice(e,1);return t},info:i,setAtEnd:o,setAtStart:r,setBefore:function(e,t){void 0===t&&(t=!0);for(var n=e.previousSibling;n&&n.nodeType==Node.TEXT_NODE&&0===n.textContent.length;)n=n.previousSibling;return n?(E.node.isBlock(n)?o(n):"BR"==n.tagName?R(n).before(R.FE.MARKERS):R(n).after(R.FE.MARKERS),!0):!!t&&(E.node.isBlock(e)?r(e):R(e).before(R.FE.MARKERS),!0)},setAfter:function(e,t){void 0===t&&(t=!0);for(var n=e.nextSibling;n&&n.nodeType==Node.TEXT_NODE&&0===n.textContent.length;)n=n.nextSibling;return n?(E.node.isBlock(n)?r(n):R(n).before(R.FE.MARKERS),!0):!!t&&(E.node.isBlock(e)?o(e):R(e).after(R.FE.MARKERS),!0)},rangeElement:f}},R.extend(R.FE.DEFAULTS,{htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video","wbr"],htmlRemoveTags:["script","style"],htmlAllowedAttrs:["accept","accept-charset","accesskey","action","align","allowfullscreen","allowtransparency","alt","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","data-.*","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","o
16pen","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap"],htmlAllowedStyleProps:[".*"],htmlAllowComments:!0,htmlUntouched:!1,fullPage:!1}),R.FE.HTML5Map={B:"STRONG",I:"EM",STRIKE:"S"},R.FE.MODULES.clean=function(c){function i(e){if(e.nodeType==Node.ELEMENT_NODE&&e.getAttribute("class")&&0<=e.getAttribute("class").indexOf("fr-marker"))return!1;var t,n=c.node.contents(e),r=[];for(t=0;t<n.length;t++)n[t].nodeType!=Node.ELEMENT_NODE||c.node.isVoid(n[t])?n[t].nodeType==Node.TEXT_NODE&&(n[t].textContent=n[t].textContent.replace(/\u200b/g,"")):n[t].textContent.replace(/\u200b/g,"").length!=n[t].textContent.length&&i(n[t]);if(e.nodeType==Node.ELEMENT_NODE&&!c.node.isVoid(e)&&(e.normalize(),n=c.node.contents(e),r=e.querySelectorAll(".fr-marker"),n.length-r.length==0)){for(t=0;t<n.length;t++)if(n[t].nodeType==Node.ELEMENT_NODE&&(n[t].getAttribute("class")||"").indexOf("fr-marker")<0)return!1;for(t=0;t<r.length;t++)e.parentNode.insertBefore(r[t].cloneNode(!0),e);return e.parentNode.removeChild(e),!1}}function a(e,t){if(e.nodeType==Node.COMMENT_NODE)return"<!--"+e.nodeValue+"-->";if(e.nodeType==Node.TEXT_NODE)return t?e.textContent.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e.textContent.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u00A0/g,"&nbsp;").replace(/\u0009/g,"");if(e.nodeType!=Node.ELEMENT_NODE)return e.outerHTML;if(e.nodeType==Node.ELEMENT_NODE&&0<=["STYLE","SCRIPT","NOSCRIPT"].indexOf(e.tagName))return e.outerHTML;if(e.nodeType==Node.ELEMENT_NODE&&"svg"==e.tagName){var n=document.createElement("div"),r=e.cloneNode(!0);return n.appendChild(r),n.innerHTML}if("IFRAME"==e.tagName)return e.outerHTML.replace(/\&lt;/g,"<").replace(/\&gt;/g,">");var i=e.childNodes;if(0===i.length)return e.outerHTML;for(var o="",s=0;s<i.length;s++)"PRE"==e.tagName&&(t=!0),o+=a(i[s],t);return c.node.openTagString(e)+o+c.node.closeTagString(e)}function f(e){var t=e.replace(/;;/gi,";");return";"!=(t=t.replace(/^;/gi,"")).charAt(t.length)&&(t+=";"),t}function o(e){var t;for(t in e)if(e.hasOwnProperty(t)){var n=t.match(g),r=null;"style"==t&&c.opts.htmlAllowedStyleProps.length&&(r=e[t].match(m)),n&&r?e[t]=f(r.join(";")):n&&("style"!=t||r)||delete e[t]}for(var i="",o=Object.keys(e).sort(),s=0;s<o.length;s++)e[t=o[s]].indexOf('"')<0?i+=" "+t+'="'+e[t]+'"':i+=" "+t+"='"+e[t]+"'";return i}function s(e,t){var n,r=document.implementation.createHTMLDocument("Froala DOC").createElement("DIV");R(r).append(e);var i="";if(r){var o=c.node.contents(r);for(n=0;n<o.length;n++)t(o[n]);for(o=c.node.contents(r),n=0;n<o.length;n++)i+=a(o[n])}return i}function l(e,t,n){v=[];var r=e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,function(e){return v.push(e),"[FROALA.EDITOR.SCRIPT "+(v.length-1)+"]"}).replace(/<noscript\b[^<]*(?:(?!<\/noscript>)<[^<]*)*<\/noscript>/gi,function(e){return v.push(e),"[FROALA.EDITOR.NOSCRIPT "+(v.length-1)+"]"}).replace(/<meta((?:[\w\W]*?)) http-equiv="/g,'<meta$1 data-fr-http-equiv="').replace(/<img((?:[\w\W]*?)) src="/g,'<img$1 data-fr-src="'),i=null;return c.opts.fullPage&&(r=c.html.extractNode(e,"body")||(0<=e.indexOf("<body")?"":e),n&&(i=c.html.extractNode(e,"head")||"")),r=s(r,t),i&&(i=s(i,t)),function(e,t,n){if(c.opts.fullPage){var r=c.html.extractDoctype(n),i=o(c.html.extractNodeAttrs(n,"html"));return t=null==t?c.html.extractNode(n,"head")||"<title></title>":t,r+"<html"+i+"><head"+o(c.html.extractNodeAttrs(n,"head"))+">"+t+"</head><body"+o(c.html.extractNodeAttrs(n,"body"))+">"+e+"</body></html>"}return e}(r,i,e).replace(/\[FROALA\.EDITOR\.SCRIPT ([\d]*)\]/gi,function(e,t){return 0<=c.opts.htmlRemoveTags.indexOf("script")?"":v[parseInt(t,10)]}).replace(/\[FROALA\.EDITOR\.NOSCRIPT ([\d]*)\]/gi,function(e,t){return 0<=c.opts.htmlRemoveTags.indexOf("noscript")?"":v[parseInt(t,10)].replace(/\&lt;/g,"<").replace(/\&gt;/g,">")}).replace(/<img((?:[\w\W]*?)) data-fr-src="/g,'<img$1 src="')}function d(e){var t=c.doc.createElement("DIV");return t.innerText=e,t.textContent}function u(e){for(var t=c.node.contents(e),n=0;n<t.length;n++)t[n].nodeType!=Node.TEXT_NODE&&u(t[n]);!function(e){if(!("SPAN"==e.tagName&&0<=(e.getAttribute("class")||"").indexOf("fr-marker"))){var t,n;if("PRE"==e.tagName&&0<=(n=(t=e).innerHTML).indexOf("\n")&&(t.innerHTML=n.replace(/\n/g,"<br>")),e.nodeType==Node.ELEMENT_NODE&&(e.getAttribute("data-fr-src")&&0!==e.getAttribute("data-fr-src").indexOf("blob:")&&e.setAttribute("data-fr-src",c.helpers.sanitizeURL(d(e.getAttribute("data-fr-src")))),e.getAttribute("href")&&e.setAttribute("href",c.helpers.sanitizeURL(d(e.getAttribute("href")))),e.getAttribute("src")&&e.setAttribute("src",c.helpers.sanitizeURL(d(e.getAttribute("src")))),0<=["TABLE","TBODY","TFOOT","TR"].indexOf(e.tagName)&&(e.innerHTML=e.innerHTML.trim())),!c.opts.pasteAllowLocalImages&&e.nodeType==Node.ELEMENT_NODE&&"IMG"==e.tagName&&e.getAttribute("data-fr-src")&&0===e.getAttribute("data-fr-src").indexOf("file://"))return e.parentNode.removeChild(e);if(e.nodeType==Node.ELEMENT_NODE&&R.FE.HTML5Map[e.tagName]&&""===c.node.attributes(e)){var r=R.FE.HTML5Map[e.tagName],i="<"+r+">"+e.innerHTML+"</"+r+">";e.insertAdjacentHTML("beforebegin",i),(e=e.previousSibling).parentNode.removeChild(e.nextSibling)}if(c.opts.htmlAllowComments||e.nodeType!=Node.COMMENT_NODE)if(e.tagName&&e.tagName.match(p))e.parentNode.removeChild(e);else if(e.tagName&&!e.tagName.match(h))"svg"===e.tagName?e.parentNode.removeChild(e):c.browser.safari&&"path"==e.tagName&&e.parentNode&&"svg"==e.parentNode.tagName||(e.outerHTML=e.innerHTML);else{var o=e.attributes;if(o)for(var s=o.length-1;0<=s;s--){var a=o[s],l=a.nodeName.match(g),u=null;"style"==a.nodeName&&c.opts.htmlAllowedStyleProps.length&&(u=a.value.match(m)),l&&u?a.value=f(u.join(";")):l&&("style"!=a.nodeName||u)||e.removeAttribute(a.nodeName)}}else 0!==e.data.indexOf("[FROALA.EDITOR")&&e.parentNode.removeChild(e)}}(e)}var h,p,g,m,v=[];return{_init:function(){c.opts.fullPage&&R.merge(c.opts.htmlAllowedTags,["head","title","style","link","base","body","html","meta"])},html:function(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=!1);var i,o=R.merge([],c.opts.htmlAllowedTags);for(i=0;i<t.length;i++)0<=o.indexOf(t[i])&&o.splice(o.indexOf(t[i]),1);var s=R.merge([],c.opts.htmlAllowedAttrs);for(i=0;i<n.length;i++)0<=s.indexOf(n[i])&&s.splice(s.indexOf(n[i]),1);return s.push("data-fr-.*"),s.push("fr-.*"),h=new RegExp("^"+o.join("$|^")+"$","gi"),g=new RegExp("^"+s.join("$|^")+"$","gi"),p=new RegExp("^"+c.opts.htmlRemoveTags.join("$|^")+"$","gi"),m=c.opts.htmlAllowedStyleProps.length?new RegExp("((^|;|\\s)"+c.opts.htmlAllowedStyleProps.join(":.+?(?=;|$))|((^|;|\\s)")+":.+?(?=(;)|$))","gi"):null,l(e,u,!0)},toHTML5:function(){var e=c.el.querySelectorAll(Object.keys(R.FE.HTML5Map).join(","));if(e.length){var t=!1;c.el.querySelector(".fr-marker")||(c.selection.save(),t=!0);for(var n=0;n<e.length;n++)""===c.node.attributes(e[n])&&R(e[n]).replaceWith("<"+R.FE.HTML5Map[e[n].tagName]+">"+e[n].innerHTML+"</"+R.FE.HTML5Map[e[n].tagName]+">");
16t&&c.selection.restore()}},tables:function(){!function(){for(var e=c.el.querySelectorAll("tr"),t=0;t<e.length;t++){for(var n=e[t].children,r=!0,i=0;i<n.length;i++)if("TH"!=n[i].tagName){r=!1;break}if(!1!==r&&0!==n.length){for(var o=e[t];o&&"TABLE"!=o.tagName&&"THEAD"!=o.tagName;)o=o.parentNode;var s=o;"THEAD"!=s.tagName&&(s=c.doc.createElement("THEAD"),o.insertBefore(s,o.firstChild)),s.appendChild(e[t])}}}()},lists:function(){!function(){var e,t=[];do{if(t.length){var n=t[0],r=c.doc.createElement("ul");n.parentNode.insertBefore(r,n);do{var i=n;n=n.nextSibling,r.appendChild(i)}while(n&&"LI"==n.tagName)}t=[];for(var o=c.el.querySelectorAll("li"),s=0;s<o.length;s++)e=o[s],c.node.isList(e.parentNode)||t.push(o[s])}while(0<t.length)}(),function(){for(var e=c.el.querySelectorAll("ol + ol, ul + ul"),t=0;t<e.length;t++){var n=e[t];if(c.node.isList(n.previousSibling)&&c.node.openTagString(n)==c.node.openTagString(n.previousSibling)){for(var r=c.node.contents(n),i=0;i<r.length;i++)n.previousSibling.appendChild(r[i]);n.parentNode.removeChild(n)}}}(),function(){for(var e=c.el.querySelectorAll("ul, ol"),t=0;t<e.length;t++)for(var n=c.node.contents(e[t]),r=null,i=n.length-1;0<=i;i--)"LI"!=n[i].tagName?(r||(r=R("<li>")).insertBefore(n[i]),r.prepend(n[i])):r=null}(),function(){var e,t,n;do{t=!1;var r=c.el.querySelectorAll("li:empty");for(e=0;e<r.length;e++)r[e].parentNode.removeChild(r[e]);var i=c.el.querySelectorAll("ul, ol");for(e=0;e<i.length;e++)(n=i[e]).querySelector("LI")||(t=!0,n.parentNode.removeChild(n))}while(!0===t)}(),function(){for(var e=c.el.querySelectorAll("ul > ul, ol > ol, ul > ol, ol > ul"),t=0;t<e.length;t++){var n=e[t],r=n.previousSibling;r&&("LI"==r.tagName?r.appendChild(n):R(n).wrap("<li></li>"))}}(),function(){for(var e=c.el.querySelectorAll("li > ul, li > ol"),t=0;t<e.length;t++){var n=e[t];if(n.nextSibling){var r=n.nextSibling,i=R("<li>");R(n.parentNode).after(i);do{var o=r;r=r.nextSibling,i.append(o)}while(r)}}}(),function(){for(var e=c.el.querySelectorAll("li > ul, li > ol"),t=0;t<e.length;t++){var n=e[t];if(c.node.isFirstSibling(n))R(n).before("<br/>");else if(n.previousSibling&&"BR"==n.previousSibling.tagName){for(var r=n.previousSibling.previousSibling;r&&c.node.hasClass(r,"fr-marker");)r=r.previousSibling;r&&"BR"!=r.tagName&&R(n.previousSibling).remove()}}}(),function(){for(var e=c.el.querySelectorAll("li:empty"),t=0;t<e.length;t++)R(e[t]).remove()}()},invisibleSpaces:function(e){return e.replace(/\u200b/g,"").length==e.length?e:c.clean.exec(e,i)},exec:l}},R.FE.MODULES.spaces=function(l){function r(e,t){var n=e.previousSibling,r=e.nextSibling,i=e.textContent,o=e.parentNode;if(!l.html.isPreformatted(o)){t&&(i=i.replace(/[\f\n\r\t\v ]{2,}/g," "),r&&"BR"!==r.tagName&&!l.node.isBlock(r)||!(l.node.isBlock(o)||l.node.isLink(o)&&!o.nextSibling||l.node.isElement(o))||(i=i.replace(/[\f\n\r\t\v ]{1,}$/g,"")),n&&"BR"!==n.tagName&&!l.node.isBlock(n)||!(l.node.isBlock(o)||l.node.isLink(o)&&!o.previousSibling||l.node.isElement(o))||(i=i.replace(/^[\f\n\r\t\v ]{1,}/g,""))," "===i&&(n&&l.node.isVoid(n)||r&&l.node.isVoid(r))&&(i="")),(!n&&l.node.isBlock(r)||!r&&l.node.isBlock(n))&&l.node.isBlock(o)&&(i=i.replace(/^[\f\n\r\t\v ]{1,}/g,"")),t||(i=i.replace(new RegExp(R.FE.UNICODE_NBSP,"g")," "));for(var s="",a=0;a<i.length;a++)32!=i.charCodeAt(a)||0!==a&&32!=s.charCodeAt(a-1)?s+=i[a]:s+=R.FE.UNICODE_NBSP;(!r||r&&l.node.isBlock(r)||r&&r.nodeType==Node.ELEMENT_NODE&&l.win.getComputedStyle(r)&&"block"==l.win.getComputedStyle(r).display)&&(s=s.replace(/ $/,R.FE.UNICODE_NBSP)),!n||l.node.isVoid(n)||l.node.isBlock(n)||1!==(s=s.replace(/^\u00A0([^ $])/," $1")).length||160!==s.charCodeAt(0)||!r||l.node.isVoid(r)||l.node.isBlock(r)||(s=" "),t||(s=s.replace(/([^ \u00A0])\u00A0([^ \u00A0])/g,"$1 $2")),e.textContent!=s&&(e.textContent=s)}}function a(e,t){if(void 0!==e&&e||(e=l.el),void 0===t&&(t=!1),!e.getAttribute||"false"!=e.getAttribute("contenteditable"))if(e.nodeType==Node.TEXT_NODE)r(e,t);else if(e.nodeType==Node.ELEMENT_NODE)for(var n=l.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,l.node.filter(function(e){for(var t=e.parentNode;t&&t!==l.el;){if("STYLE"==t.tagName||"IFRAME"==t.tagName)return!1;if("PRE"===t.tagName)return!1;t=t.parentNode}return null!=e.textContent.match(/([ \u00A0\f\n\r\t\v]{2,}
16)|(^[ \u00A0\f\n\r\t\v]{1,})|([ \u00A0\f\n\r\t\v]{1,}$)/g)&&!l.node.hasClass(e.parentNode,"fr-marker")}),!1);n.nextNode();)r(n.currentNode,t)}return{normalize:a,normalizeAroundCursor:function(){for(var e=[],t=l.el.querySelectorAll(".fr-marker"),n=0;n<t.length;n++){for(var r=null,i=(r=l.node.blockParent(t[n])||t[n]).nextSibling,o=r.previousSibling;i&&"BR"==i.tagName;)i=i.nextSibling;for(;o&&"BR"==o.tagName;)o=o.previousSibling;r&&e.indexOf(r)<0&&e.push(r),o&&e.indexOf(o)<0&&e.push(o),i&&e.indexOf(i)<0&&e.push(i)}for(var s=0;s<e.length;s++)a(e[s])}}},R.FE.UNICODE_NBSP=String.fromCharCode(160),R.FE.VOID_ELEMENTS=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],R.FE.BLOCK_TAGS=["address","article","aside","audio","blockquote","canvas","details","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tbody","td","tfoot","th","thead","tr","ul","video"],R.extend(R.FE.DEFAULTS,{htmlAllowedEmptyTags:["textarea","a","iframe","object","video","style","script",".fa",".fr-emoticon",".fr-inner","path","line"],htmlDoNotWrapTags:["script","style"],htmlSimpleAmpersand:!1,htmlIgnoreCSSProperties:[],htmlExecuteScripts:!0}),R.FE.MODULES.html=function(_){function c(){return _.opts.enter==R.FE.ENTER_P?"p":_.opts.enter==R.FE.ENTER_DIV?"div":_.opts.enter==R.FE.ENTER_BR?null:void 0}function a(e,t){return!(!e||e===_.el)&&(t?-1!=["PRE","SCRIPT","STYLE"].indexOf(e.tagName)||a(e.parentNode,t):-1!=["PRE","SCRIPT","STYLE"].indexOf(e.tagName))}function o(e){var t,n=[],r=[];if(e){var i=_.el.querySelectorAll(".fr-marker");for(t=0;t<i.length;t++){var o=_.node.blockParent(i[t])||i[t];if(o){var s=o.nextSibling,a=o.previousSibling;o&&r.indexOf(o)<0&&_.node.isBlock(o)&&r.push(o),a&&_.node.isBlock(a)&&r.indexOf(a)<0&&r.push(a),s&&_.node.isBlock(s)&&r.indexOf(s)<0&&r.push(s)}}}else r=_.el.querySelectorAll(d());var l=d();for(l+=","+R.FE.VOID_ELEMENTS.join(","),l+=", .fr-inner",l+=","+_.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)",t=r.length-1;0<=t;t--)if(!(r[t].textContent&&0<r[t].textContent.replace(/\u200B|\n/g,"").length||0<r[t].querySelectorAll(l).length)){for(var u=_.node.contents(r[t]),c=!1,f=0;f<u.length;f++)if(u[f].nodeType!=Node.COMMENT_NODE&&u[f].textContent&&0<u[f].textContent.replace(/\u200B|\n/g,"").length){c=!0;break}c||n.push(r[t])}return n}function d(){return R.FE.BLOCK_TAGS.join(", ")}function e(e){var t,n,r=R.merge([],R.FE.VOID_ELEMENTS);r=R.merge(r,_.opts.htmlAllowedEmptyTags),r=void 0===e?R.merge(r,R.FE.BLOCK_TAGS):R.merge(r,R.FE.NO_DELETE_TAGS),t=_.el.querySelectorAll("*:empty:not("+r.join("):not(")+"):not(.fr-marker)");do{n=!1;for(var i=0;i<t.length;i++)0!==t[i].attributes.length&&void 0===t[i].getAttribute("href")||(t[i].parentNode.removeChild(t[i]),n=!0);t=_.el.querySelectorAll("*:empty:not("+r.join("):not(")+"):not(.fr-marker)")}while(t.length&&n)}function s(e,t){var n=c();if(t&&(n="div"),n){for(var r=_.doc.createDocumentFragment(),i=null,o=!1,s=e.firstChild,a=!1;s;){var l=s.nextSibling;if(s.nodeType==Node.ELEMENT_NODE&&(_.node.isBlock(s)||0<=_.opts.htmlDoNotWrapTags.indexOf(s.tagName.toLowerCase())&&!_.node.hasClass(s,"fr-marker")))i=null,r.appendChild(s.cloneNode(!0));else if(s.nodeType!=Node.ELEMENT_NODE&&s.nodeType!=Node.TEXT_NODE)i=null,r.appendChild(s.cloneNode(!0));else if("BR"==s.tagName)null==i?(i=_.doc.createElement(n),a=!0,t&&(i.setAttribute("class","fr-temp-div"),i.setAttribute("data-empty",!0)),i.appendChild(s.cloneNode(!0)),r.appendChild(i)):!1===o&&(i.appendChild(_.doc.createElement("br")),t&&(i.setAttribute("class","fr-temp-div"),i.setAttribute("data-empty",!0))),i=null;else{var u=s.textContent;(s.nodeType!==Node.TEXT_NODE||0<u.replace(/\n/g,"").replace(/(^ *)|( *$)/g,"").length||u.length&&u.indexOf("\n")<0)&&(null==i&&(i=_.doc.createElement(n),a=!0,t&&i.setAttribute("class","fr-temp-div"),r.appendChild(i),o=!1),i.appendChild(s.cloneNode(!0)),o||_.node.hasClass(s,"fr-marker")||s.nodeType==Node.TEXT_NODE&&
160===u.replace(/ /g,"").length||(o=!0))}s=l}a&&(e.innerHTML="",e.appendChild(r))}}function l(e,t){for(var n=e.length-1;0<=n;n--)s(e[n],t)}function t(e,t,n,r,i){if(!_.$wp)return!1;void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i=!1);var o=_.$wp.scrollTop();s(_.el,e),r&&l(_.el.querySelectorAll(".fr-inner"),e),t&&l(_.el.querySelectorAll("td, th"),e),n&&l(_.el.querySelectorAll("blockquote"),e),i&&l(_.el.querySelectorAll("li"),e),o!=_.$wp.scrollTop()&&_.$wp.scrollTop(o)}function n(e){if(void 0===e&&(e=_.el),e&&0<=["SCRIPT","STYLE","PRE"].indexOf(e.tagName))return!1;for(var t=_.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,_.node.filter(function(e){return null!=e.textContent.match(/([ \n]{2,})|(^[ \n]{1,})|([ \n]{1,}$)/g)}),!1);t.nextNode();){var n=t.currentNode;if(!a(n.parentNode,!0)){var r=_.node.isBlock(n.parentNode)||_.node.isElement(n.parentNode),i=n.textContent.replace(/(?!^)( ){2,}(?!$)/g," ").replace(/\n/g," ").replace(/^[ ]{2,}/g," ").replace(/[ ]{2,}$/g," ");if(r){var o=n.previousSibling,s=n.nextSibling;o&&s&&" "==i?i=_.node.isBlock(o)&&_.node.isBlock(s)?"":" ":(o||(i=i.replace(/^ */,"")),s||(i=i.replace(/ *$/,"")))}n.textContent=i}}}function r(e,t,n){var r=new RegExp(t,"gi").exec(e);return r?r[n]:null}function N(e){var t=e.doctype,n="<!DOCTYPE html>";return t&&(n="<!DOCTYPE "+t.name+(t.publicId?' PUBLIC "'+t.publicId+'"':"")+(!t.publicId&&t.systemId?" SYSTEM":"")+(t.systemId?' "'+t.systemId+'"':"")+">"),n}function u(e){var t=e.parentNode;if(t&&(_.node.isBlock(t)||_.node.isElement(t))&&["TD","TH"].indexOf(t.tagName)<0){for(var n=e.previousSibling,r=e.nextSibling;n&&(n.nodeType==Node.TEXT_NODE&&0===n.textContent.replace(/\n|\r/g,"").length||_.node.hasClass(n,"fr-tmp"));)n=n.previousSibling;if(r)return!1;n&&t&&"BR"!=n.tagName&&!_.node.isBlock(n)&&!r&&0<t.textContent.replace(/\u200B/g,"").length&&0<n.textContent.length&&!_.node.hasClass(n,"fr-marker")&&(_.el==t&&!r&&_.opts.enter==R.FE.ENTER_BR&&_.browser.msie||e.parentNode.removeChild(e))}else!t||_.node.isBlock(t)||_.node.isElement(t)||e.previousSibling||e.nextSibling||!_.node.isDeletable(e.parentNode)||u(e.parentNode)}function h(){_.opts.htmlUntouched||(e(),t(),n(),_.spaces.normalize(null,!0),_.html.fillEmptyBlocks(),_.clean.lists(),_.clean.tables(),_.clean.toHTML5(),_.html.cleanBRs()),_.selection.restore(),i(),_.placeholder.refresh()}function i(){_.node.isEmpty(_.el)&&(null!=c()?_.el.querySelector(d())||_.el.querySelector(_.opts.htmlDoNotWrapTags.join(":not(.fr-marker),")+":not(.fr-marker)")||(_.core.hasFocus()?(_.$el.html("<"+c()+">"+R.FE.MARKERS+"<br/></"+c()+">"),_.selection.restore()):_.$el.html("<"+c()+"><br/></"+c()+">")):_.el.querySelector("*:not(.fr-marker):not(br)")||(_.core.hasFocus()?(_.$el.html(R.FE.MARKERS+"<br/>"),_.selection.restore()):_.$el.html("<br/>")))}function p(e,t){return r(e,"<"+t+"[^>]*?>([\\w\\W]*)</"+t+">",1)}function g(e,t){var n=R("<div "+(r(e,"<"+t+"([^>]*?)>",1)||"")+">");return _.node.rawAttributes(n.get(0))}function m(e){return(r(e,"<!DOCTYPE([^>]*?)>",0)||"<!DOCTYPE html>").replace(/\n/g," ").replace(/ {2,}/g," ")}function v(e,t){_.opts.htmlExecuteScripts?e.html(t):e.get(0).innerHTML=t}function O(e){var t;return(t=/:not\(([^\)]*)\)/g).test(e)&&(e=e.replace(t,"     $1 ")),100*(e.match(/(#[^\s\+>~\.\[:]+)/g)||[]).length+10*(e.match(/(\[[^\]]+\])/g)||[]).length+10*(e.match(/(\.[^\s\+>~\.\[:]+)/g)||[]).length+10*(e.match(/(:[\w-]+\([^\)]*\))/gi)||[]).length+10*(e.match(/(:[^\s\+>~\.\[:]+)/g)||[]).length+(e.match(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi)||[]).length+((e=(e=e.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).match(/([^\s\+>~\.\[:]+)/g)||[]).length}function D(e){if(_.events.trigger("html.processGet",[e]),e&&e.getAttribute&&""===e.getAttribute("class")&&e.removeAttribute("class"),e&&e.getAttribute&&""===e.getAttribute("style")&&e.removeAttribute("style"),e&&e.nodeType==Node.ELEMENT_NODE){var t,n=e.querySelectorAll('[class=""],[style=""]');for(t=0;t<n.length;t++){var r=n[t];""===r.getAttribute("class")&&r.removeAttribute("class"),""===r.getAttribute("style")&&r.removeAttribute("style")}if("BR"===e.tagName)u(e);else{var i=e.querySelectorAll("br");for(t=0;t<i.length;t++)u(i[t])}}}function L(e,t){return e[3]-t[3]}function f(e){var t=_.doc.createElement("div");return t.innerHTML=e,null!==t.querySelector(d())}function y(e){var t=null;
16if(void 0===e&&(t=_.selection.element()),_.opts.keepFormatOnDelete)return!1;var n,r,i=t?(t.textContent.match(/\u200B/g)||[]).length-t.querySelectorAll(".fr-marker").length:0;if((_.el.textContent.match(/\u200B/g)||[]).length-_.el.querySelectorAll(".fr-marker").length==i)return!1;do{r=!1,n=_.el.querySelectorAll("*:not(.fr-marker)");for(var o=0;o<n.length;o++){var s=n[o];if(t!=s){var a=s.textContent;0===s.children.length&&1===a.length&&8203==a.charCodeAt(0)&&"TD"!==s.tagName&&(R(s).remove(),r=!0)}}}while(r)}return{defaultTag:c,isPreformatted:a,emptyBlocks:o,emptyBlockTagsQuery:function(){return R.FE.BLOCK_TAGS.join(":empty, ")+":empty"},blockTagsQuery:d,fillEmptyBlocks:function(e){for(var t=o(e),n=0;n<t.length;n++){var r=t[n];"false"===r.getAttribute("contenteditable")||r.querySelector(_.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)")||_.node.isVoid(r)||"TABLE"!=r.tagName&&"TBODY"!=r.tagName&&"TR"!=r.tagName&&"UL"!=r.tagName&&"OL"!=r.tagName&&r.appendChild(_.doc.createElement("br"))}if(_.browser.msie&&_.opts.enter==R.FE.ENTER_BR){var i=_.node.contents(_.el);i.length&&i[i.length-1].nodeType==Node.TEXT_NODE&&_.$el.append("<br>")}},cleanEmptyTags:e,cleanWhiteTags:y,cleanBlankSpaces:n,blocks:function(){return _.$el.get(0).querySelectorAll(d())},getDoctype:N,set:function(e){var t,n,r,i=_.clean.html((e||"").trim(),[],[],_.opts.fullPage);if(_.opts.fullPage){var o=p(i,"body")||(0<=i.indexOf("<body")?"":i),s=g(i,"body"),a=p(i,"head")||"<title></title>",l=g(i,"head"),u=R("<div>").append(a).contents().each(function(){(this.nodeType==Node.COMMENT_NODE||0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName))&&this.parentNode.removeChild(this)}).end().html().trim();a=R("<div>").append(a).contents().map(function(){return this.nodeType==Node.COMMENT_NODE?"<!--"+this.nodeValue+"-->":0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName)?this.outerHTML:""}).toArray().join("");var c=m(i),f=g(i,"html");v(_.$el,u+"\n"+o),_.node.clearAttributes(_.el),_.$el.attr(s),_.$el.addClass("fr-view"),_.$el.attr("spellcheck",_.opts.spellcheck),_.$el.attr("dir",_.opts.direction),v(_.$head,a),_.node.clearAttributes(_.$head.get(0)),_.$head.attr(l),_.node.clearAttributes(_.$html.get(0)),_.$html.attr(f),_.iframe_document.doctype.parentNode.replaceChild((t=c,n=_.iframe_document,(r=t.match(/<!DOCTYPE ?([^ ]*) ?([^ ]*) ?"?([^"]*)"? ?"?([^"]*)"?>/i))?n.implementation.createDocumentType(r[1],r[3],r[4]):n.implementation.createDocumentType("html")),_.iframe_document.doctype)}else v(_.$el,i);var d=_.edit.isDisabled();_.edit.on(),_.core.injectStyle(_.opts.iframeDefaultStyle+_.opts.iframeStyle),h(),_.opts.useClasses||(_.$el.find("[fr-original-class]").each(function(){this.setAttribute("class",this.getAttribute("fr-original-class")),this.removeAttribute("fr-original-class")}),_.$el.find("[fr-original-style]").each(function(){this.setAttribute("style",this.getAttribute("fr-original-style")),this.removeAttribute("fr-original-style")})),d&&_.edit.off(),_.events.trigger("html.set")},get:function(e,t){if(!_.$wp)return _.$oel.clone().removeClass("fr-view").removeAttr("contenteditable").get(0).outerHTML;var n="";_.events.trigger("html.beforeGet");var r,i,o=[],s={},a=[],l=_.el.querySelectorAll("input, textarea");for(r=0;r<l.length;r++)l[r].setAttribute("value",l[r].value);if(!_.opts.useClasses&&!t){var u=new RegExp("^"+_.opts.htmlIgnoreCSSProperties.join("$|^")+"$","gi");for(r=0;r<_.doc.styleSheets.length;r++){var c,f=0;try{c=_.doc.styleSheets[r].cssRules,_.doc.styleSheets[r].ownerNode&&"STYLE"==_.doc.styleSheets[r].ownerNode.nodeType&&(f=1)}catch($){}if(c)for(var d=0,h=c.length;d<h;d++)if(c[d].selectorText&&0<c[d].style.cssText.length){var p,g=c[d].selectorText.replace(/body |\.fr-view /g,"").replace(/::/g,":");try{p=_.el.querySelectorAll(g)}catch($){p=[]}for(i=0;i<p.length;i++){!p[i].getAttribute("fr-original-style")&&p[i].getAttribute("style")?(p[i].setAttribute("fr-original-style",p[i].getAttribute("style")),o.push(p[i])):p[i].getAttribute("fr-original-style")||(p[i].setAttribute("fr-original-style",""),o.push(p[i])),s[p[i]]||(s[p[i]]={});for(var m=1e3*f+O(c[d].selectorText),v=c[d].style.cssText.split(";"),y=0;y<v.length;y++){var b=v[y].trim().split(":")[0];if(b&&!b.match(u)&&(s[p[i]][b]||(s[p[i]][b]=0
17)<=(p[i].getAttribute("fr-original-style")||"").indexOf(b+":")&&(s[p[i]][b]=1e4),m>=s[p[i]][b]&&(s[p[i]][b]=m,v[y].trim().length))){var E=v[y].trim().split(":");E.splice(0,1),a.push([p[i],b.trim(),E.join(":").trim(),m])}}}}}for(a.sort(L),r=0;r<a.length;r++){var T=a[r];T[0].style[T[1]]=T[2]}for(r=0;r<o.length;r++)if(o[r].getAttribute("class")&&(o[r].setAttribute("fr-original-class",o[r].getAttribute("class")),o[r].removeAttribute("class")),0<(o[r].getAttribute("fr-original-style")||"").trim().length){var S=o[r].getAttribute("fr-original-style").split(";");for(i=0;i<S.length;i++)if(0<S[i].indexOf(":")){var w=S[i].split(":"),A=w[0];w.splice(0,1),o[r].style[A.trim()]=w.join(":").trim()}}}if(_.node.isEmpty(_.el))_.opts.fullPage&&(n=N(_.iframe_document),n+="<html"+_.node.attributes(_.$html.get(0))+">"+_.$html.find("head").get(0).outerHTML+"<body></body></html>");else if(void 0===e&&(e=!1),_.opts.fullPage){n=N(_.iframe_document),_.$el.removeClass("fr-view");var C=_.opts.heightMin;_.opts.heightMin=null,_.size.refresh(),n+="<html"+_.node.attributes(_.$html.get(0))+">"+_.$html.html()+"</html>",_.opts.heightMin=C,_.size.refresh(),_.$el.addClass("fr-view")}else n=_.$el.html();if(!_.opts.useClasses&&!t)for(r=0;r<o.length;r++)o[r].getAttribute("fr-original-class")&&(o[r].setAttribute("class",o[r].getAttribute("fr-original-class")),o[r].removeAttribute("fr-original-class")),null!=o[r].getAttribute("fr-original-style")&&void 0!==o[r].getAttribute("fr-original-style")?(0!==o[r].getAttribute("fr-original-style").length?o[r].setAttribute("style",o[r].getAttribute("fr-original-style")):o[r].removeAttribute("style"),o[r].removeAttribute("fr-original-style")):o[r].removeAttribute("style");_.opts.fullPage&&(n=(n=(n=(n=(n=(n=(n=(n=n.replace(/<style data-fr-style="true">(?:[\w\W]*?)<\/style>/g,"")).replace(/<link([^>]*)data-fr-style="true"([^>]*)>/g,"")).replace(/<style(?:[\w\W]*?)class="firebugResetStyles"(?:[\w\W]*?)>(?:[\w\W]*?)<\/style>/g,"")).replace(/<body((?:[\w\W]*?)) spellcheck="true"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>")).replace(/<body((?:[\w\W]*?)) contenteditable="(true|false)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>
17")).replace(/<body((?:[\w\W]*?)) dir="([\w]*)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>")).replace(/<body((?:[\w\W]*?))class="([\w\W]*?)(fr-rtl|fr-ltr)([\w\W]*?)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,'<body$1class="$2$4"$5>$6</body>')).replace(/<body((?:[\w\W]*?)) class=""((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>")),_.opts.htmlSimpleAmpersand&&(n=n.replace(/\&amp;/gi,"&")),_.events.trigger("html.afterGet"),e||(n=n.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,"")),n=_.clean.invisibleSpaces(n),n=_.clean.exec(n,D);var x=_.events.chainTrigger("html.get",n);return"string"==typeof x&&(n=x),(n=n.replace(/<pre(?:[\w\W]*?)>(?:[\w\W]*?)<\/pre>/g,function(e){return e.replace(/<br>/g,"\n")})).replace(/<meta((?:[\w\W]*?)) data-fr-http-equiv="/g,'<meta$1 http-equiv="')},getSelected:function(){var e,t,n=function(e,t){for(;t&&(t.nodeType==Node.TEXT_NODE||!_.node.isBlock(t))&&!_.node.isElement(t)&&!_.node.hasClass(t,"fr-inner");)t&&t.nodeType!=Node.TEXT_NODE&&R(e).wrapInner(_.node.openTagString(t)+_.node.closeTagString(t)),t=t.parentNode;t&&e.innerHTML==t.innerHTML&&(e.innerHTML=t.outerHTML)},r="";if("undefined"!=typeof _.win.getSelection){_.browser.mozilla&&(_.selection.save(),1<_.$el.find('.fr-marker[data-type="false"]').length&&(_.$el.find('.fr-marker[data-type="false"][data-id="0"]').remove(),_.$el.find('.fr-marker[data-type="false"]:last').attr("data-id","0"),_.$el.find(".fr-marker").not('[data-id="0"]').remove()),_.selection.restore());for(var i=_.selection.ranges(),o=0;o<i.length;o++){var s=document.createElement("div");s.appendChild(i[o].cloneContents()),n(s,(t=e=void 0,t=null,_.win.getSelection?(e=_.win.getSelection())&&e.rangeCount&&(t=e.getRangeAt(0).commonAncestorContainer).nodeType!=Node.ELEMENT_NODE&&(t=t.parentNode):(e=_.doc.selection)&&"Control"!=e.type&&(t=e.createRange().parentElement()),null!=t&&(0<=R.inArray(_.el,R(t).parents())||t==_.el)?t:null)),0<R(s).find(".fr-element").length&&(s=_.el),r+=s.innerHTML}}else"undefined"!=typeof _.doc.selection&&"Text"==_.doc.selection.type&&(r=_.doc.selection.createRange().htmlText);return r},insert:function(e,t,n){var r,i,o;if(_.selection.isCollapsed()||_.selection.remove(),r=t?e:_.clean.html(e),e.indexOf('class="fr-marker"')<0&&(i=r,(o=_.doc.createElement("div")).innerHTML=i,_.selection.setAtEnd(o),r=o.innerHTML),_.node.isEmpty(_.el)&&!_.opts.keepFormatOnDelete&&f(r))_.el.innerHTML=r;else{var s=_.markers.insert();if(s){_.node.isLastSibling(s)&&R(s).parent().hasClass("fr-deletable")&&R(s).insertAfter(R(s).parent());var a=_.node.blockParent(s);if((f(r)||n)&&(_.node.deepestParent(s)||a&&"LI"==a.tagName)){if(a&&"LI"==a.tagName&&(r=function(e){if(!_.html.defaultTag())return e;var t=_.doc.createElement("div");t.innerHTML=e;for(var n=t.querySelectorAll(":scope > "+_.html.defaultTag()),r=n.length-1;0<=r;r--){var i=n[r];_.node.isBlock(i.previousSibling)||(i.previousSibling&&!_.node.isEmpty(i)&&R("<br>").insertAfter(i.previousSibling),i.outerHTML=i.innerHTML)}return t.innerHTML}(r)),!(s=_.markers.split()))return!1;s.outerHTML=r}else s.outerHTML=r}else _.el.innerHTML=_.el.innerHTML+r}h(),_.keys.positionCaret(),_.events.trigger("html.inserted")},wrap:t,unwrap:function(){_.$el.find("div.fr-temp-div").each(function(){this.previousSibling&&this.previousSibling.nodeType===Node.TEXT_NODE&&R(this).before("<br>"),R(this).attr("data-empty")||!this.nextSibling||_.node.isBlock(this.nextSibling)&&!R(this.nextSibling).hasClass("fr-temp-div")?R(this).replaceWith(R(this).html()):R(this).replaceWith(R(this).html()+"<br>")}),_.$el.find(".fr-temp-div").removeClass("fr-temp-div").filter(function(){return""===R(this).attr("class")}).removeAttr("class")},escapeEntities:function(e){return e.replace(/</gi,"&lt;").replace(/>/gi,"&gt;").replace(/"/gi,"&quot;").replace(/'/gi,"&#39;")},checkIfEmpty:i,extractNode:p,extractNodeAttrs:g,extractDoctype:m,cleanBRs:function(){for(var e=_.el.getElementsByTagName("br"),t=0;t<e.length;t++)u(e[t])},_init:function(){if(_.$wp){var e=function(){y(),_.placeholder&&setTimeout(_.placeholder.refresh,0)};_.events.on("mouseup",e),_.events.on("keydown",e),_.events.on("contentChanged",i)}}}},R.extend(R.FE.DEFAULTS,{height:null,heightMax:null,heightMin:null,width:null}),R.FE.MODULES.size=function(e){function t(){n(),e.opts.height&&e.$el.css("minHeight",e.opts.height-e.helpers.getPX(e.$el.css("padding-top"))-e.helpers.getPX(e.$el.css("padding-bottom"))),e.$iframe.height(e.$el.outerHeight(!0))}function n(){e.opts.heightMin?e.$el.css("minHeight",e.opts.heightMin):e.$el.css("minHeight",""),e.opts.heightMax?(e.$wp.css("maxHeight",e.opts.heightMax),e.$wp.css("overflow","auto")):(e.$wp.css("maxHeight",""),e.$wp.css("overflow","")),e.opts.height?(e.$wp.height(e.opts.height),e.$wp.css("overflow","auto"),e.$el.css("minHeight",e.opts.height-e.helpers.getPX(e.$el.css("padding-top"))-e.helpers.getPX(e.$el.css("padding-bottom")))):(e.$wp.css("height",""),e.opts.heightMin||e.$el.css("minHeight",""),e.opts.heightMax||e.$wp.css("overflow","")),e.opts.width&&e.$box.width(e.opts.width)}return{_init:function(){if(!e.$wp)return!1;n(),e.$iframe&&(e.events.on("keyup keydown",function(){setTimeout(t,0)},!0),e.events.on("commands.after html.set init initialized paste.after",t))},syncIframe:t,refresh:n}},R.extend(R.FE.DEFAULTS,{language:null}),R.FE.LANGUAGE={},R.FE.MODULES.language=function(e){var t;
17return{_init:function(){R.FE.LANGUAGE&&(t=R.FE.LANGUAGE[e.opts.language]),t&&t.direction&&(e.opts.direction=t.direction)},translate:function(e){return t&&t.translation[e]&&t.translation[e].length?t.translation[e]:e}}},R.extend(R.FE.DEFAULTS,{placeholderText:"Type something"}),R.FE.MODULES.placeholder=function(c){function e(){c.$placeholder||(c.$placeholder=R('<span class="fr-placeholder"></span>'),c.$wp.append(c.$placeholder));var e=c.opts.iframe?c.$iframe.prev().outerHeight(!0):c.$el.prev().outerHeight(!0),t=0,n=0,r=0,i=0,o=0,s=0,a=c.node.contents(c.el),l=R(c.selection.element()).css("text-align");if(a.length&&a[0].nodeType==Node.ELEMENT_NODE){var u=R(a[0]);(!c.opts.toolbarInline||0<c.$el.prev().length)&&c.ready&&(t=c.helpers.getPX(u.css("margin-top")),i=c.helpers.getPX(u.css("padding-top")),n=c.helpers.getPX(u.css("margin-left")),r=c.helpers.getPX(u.css("margin-right")),o=c.helpers.getPX(u.css("padding-left")),s=c.helpers.getPX(u.css("padding-right"))),c.$placeholder.css("font-size",u.css("font-size")),c.$placeholder.css("line-height",u.css("line-height"))}else c.$placeholder.css("font-size",c.$el.css("font-size")),c.$placeholder.css("line-height",c.$el.css("line-height"));c.$wp.addClass("show-placeholder"),c.$placeholder.css({marginTop:Math.max(c.helpers.getPX(c.$el.css("margin-top")),t)+(e||0),paddingTop:Math.max(c.helpers.getPX(c.$el.css("padding-top")),i),paddingLeft:Math.max(c.helpers.getPX(c.$el.css("padding-left")),o),marginLeft:Math.max(c.helpers.getPX(c.$el.css("margin-left")),n),paddingRight:Math.max(c.helpers.getPX(c.$el.css("padding-right")),s),marginRight:Math.max(c.helpers.getPX(c.$el.css("margin-right")),r),textAlign:l}).text(c.language.translate(c.opts.placeholderText||c.$oel.attr("placeholder")||"")),c.$placeholder.html(c.$placeholder.text().replace(/\n/g,"<br>"))}function t(){c.$wp.removeClass("show-placeholder")}function n(){if(!c.$wp)return!1;c.core.isEmpty()?e():t()}return{_init:function(){if(!c.$wp)return!1;c.events.on("init input keydown keyup contentChanged initialized",n)},show:e,hide:t,refresh:n,isVisible:function(){return!c.$wp||c.node.hasClass(c.$wp.get(0),"show-placeholder")}}},R.FE.MODULES.edit=function(e){function t(){if(e.browser.mozilla)try{e.doc.execCommand("enableObjectResizing",!1,"false"),e.doc.execCommand("enableInlineTableEditing",!1,"false")}catch(t){}if(e.browser.msie)try{e.doc.body.addEventListener("mscontrolselect",function(e){return e.preventDefault(),!1})}catch(t){}}function n(){return r}var r=!1;return{_init:function(){e.events.on("focus",function(){n()?e.edit.off():e.edit.on()})},on:function(){e.$wp?(e.$el.attr("contenteditable",!0),e.$el.removeClass("fr-disabled").attr("aria-disabled",!1),e.$tb&&e.$tb.removeClass("fr-disabled").removeAttr("aria-disabled"),t()):e.$el.is("a")&&e.$el.attr("contenteditable",!0),r=!1},off:function(){e.events.disableBlur(),e.$wp?(e.$el.attr("contenteditable",!1),e.$el.addClass("fr-disabled").attr("aria-disabled",!0),e.$tb&&e.$tb.addClass("fr-disabled").attr("aria-disabled",!0)):e.$el.is("a")&&e.$el.attr("contenteditable",!1),e.events.enableBlur(),r=!0},disableDesign:t,isDisabled:n}},R.extend(R.FE.DEFAULTS,{editorClass:null,typingTimer:500,iframe:!1,requestWithCORS:!0,requestWithCredentials:!1,requestHeaders:{},useClasses:!0,spellcheck:!0,iframeDefaultStyle:'html{margin:0px;height:auto;}body{height:auto;padding:10px;background:transparent;color:#000000;position:relative;z-index: 2;-webkit-user-select:auto;margin:0px;overflow:hidden;min-height:20px;}body:after{content:"";display:block;clear:both;}body::-moz-selection{background:#b5d6fd;color:#000;}body::selection{background:#b5d6fd;color:#000;}',iframeStyle:"",iframeStyleFiles:[],direction:"auto",zIndex:1,tabIndex:null,disableRightClick:!1,scrollableContainer:"body",keepFormatOnDelete:!1,theme:null}),R.FE.MODULES.core=function(o){function t(){if(o.$box.addClass("fr-box"+(o.opts.editorClass?" "+o.opts.editorClass:"")),o.$box.attr("role","application"),o.$wp.addClass("fr-wrapper"),o.opts.iframe||o.$el.addClass("fr-element fr-view"),o.opts.iframe){o.$iframe.addClass("fr-iframe"),o.$el.addClass("fr-view");for(var e=0;e<o.o_doc.styleSheets.length;e++){var t;try{t=o.o_doc.styleSheets[e].cssRules}catch(i){}if(t)for(var n=0,r=t.length;n<r;n++)!t[n].selectorText||0!==t[n].selectorText.indexOf(".fr-view")&&0!==t[n].selectorText.indexOf(".fr-element")||0<t[n].style.cssText.length&&(0===t[n].selectorText.indexOf(".fr-view")?o.opts.iframeStyle+=t[n].selectorText.replace(/\.fr
17-view/g,"body")+"{"+t[n].style.cssText+"}":o.opts.iframeStyle+=t[n].selectorText.replace(/\.fr-element/g,"body")+"{"+t[n].style.cssText+"}")}}"auto"!=o.opts.direction&&o.$box.removeClass("fr-ltr fr-rtl").addClass("fr-"+o.opts.direction),o.$el.attr("dir",o.opts.direction),o.$wp.attr("dir",o.opts.direction),1<o.opts.zIndex&&o.$box.css("z-index",o.opts.zIndex),o.opts.theme&&o.$box.addClass(o.opts.theme+"-theme"),o.opts.tabIndex=o.opts.tabIndex||o.$oel.attr("tabIndex"),o.opts.tabIndex&&o.$el.attr("tabIndex",o.opts.tabIndex)}return{_init:function(){if(R.FE.INSTANCES.push(o),o.drag_support={filereader:"undefined"!=typeof FileReader,formdata:!!o.win.FormData,progress:"upload"in new XMLHttpRequest},o.$wp){t(),o.html.set(o._original_html),o.$el.attr("spellcheck",o.opts.spellcheck),o.helpers.isMobile()&&(o.$el.attr("autocomplete",o.opts.spellcheck?"on":"off"),o.$el.attr("autocorrect",o.opts.spellcheck?"on":"off"),o.$el.attr("autocapitalize",o.opts.spellcheck?"on":"off")),o.opts.disableRightClick&&o.events.$on(o.$el,"contextmenu",function(e){if(2==e.button)return!1});try{o.doc.execCommand("styleWithCSS",!1,!1)}catch(e){}}"TEXTAREA"==o.$oel.get(0).tagName&&(o.events.on("contentChanged",function(){o.$oel.val(o.html.get())}),o.events.on("form.submit",function(){o.$oel.val(o.html.get())}),o.events.on("form.reset",function(){o.html.set(o._original_html)}),o.$oel.val(o.html.get())),o.helpers.isIOS()&&o.events.$on(o.$doc,"selectionchange",function(){o.$doc.get(0).hasFocus()||o.$win.get(0).focus()}),o.events.trigger("init"),o.opts.autofocus&&!o.opts.initOnClick&&o.$wp&&o.events.on("initialized",function(){o.events.focus(!0)})},destroy:function(e){"TEXTAREA"==o.$oel.get(0).tagName&&o.$oel.val(e),o.$box&&o.$box.removeAttr("role"),o.$wp&&("TEXTAREA"==o.$oel.get(0).tagName?(o.$el.html(""),o.$wp.html(""),o.$box.replaceWith(o.$oel),o.$oel.show()):(o.$wp.replaceWith(e),o.$el.html(""),o.$box.removeClass("fr-view fr-ltr fr-box "+(o.opts.editorClass||"")),o.opts.theme&&o.$box.addClass(o.opts.theme+"-theme"))),this.$wp=null,this.$el=null,this.el=null,this.$box=null},isEmpty:function(){return o.node.isEmpty(o.el)},getXHR:function(e,t){var n=new XMLHttpRequest;for(var r in n.open(t,e,!0),o.opts.requestWithCredentials&&(n.withCredentials=!0),o.opts.requestHeaders)o.opts.requestHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,o.opts.requestHeaders[r]);return n},injectStyle:function(e){if(o.opts.iframe){o.$head.find("style[data-fr-style], link[data-fr-style]").remove(),o.$head.append('<style data-fr-style="true">'+e+"</style>");for(var t=0;t<o.opts.iframeStyleFiles.length;t++){var n=R('<link data-fr-style="true" rel="stylesheet" href="'+o.opts.iframeStyleFiles[t]+'">');n.get(0).addEventListener("load",o.size.syncIframe),o.$head.append(n)}}},hasFocus:function(){return o.browser.mozilla&&o.helpers.isMobile()?o.selection.inEditor():o.node.hasFocus(o.el)||0<o.$el.find("*:focus").length},sameInstance:function(e){if(!e)return!1;var t=e.data("instance");return!!t&&t.id==o.id}}},R.FE.MODULES.cursorLists=function(g){function m(e){for(var t=e;"LI"!=t.tagName;)t=t.parentNode;return t}function v(e){for(var t=e;!g.node.isList(t);)t=t.parentNode;return t}return{_startEnter:function(e){var t,n=m(e),r=n.nextSibling,i=n.previousSibling,o=g.html.defaultTag();if(g.node.isEmpty(n,!0)&&r){for(var s="",a="",l=e.parentNode;
17!g.node.isList(l)&&l.parentNode&&("LI"!==l.parentNode.tagName||l.parentNode===n);)s=g.node.openTagString(l)+s,a+=g.node.closeTagString(l),l=l.parentNode;s=g.node.openTagString(l)+s,a+=g.node.closeTagString(l);var u="";for(u=l.parentNode&&"LI"==l.parentNode.tagName?a+"<li>"+R.FE.MARKERS+"<br>"+s:o?a+"<"+o+">"+R.FE.MARKERS+"<br></"+o+">"+s:a+R.FE.MARKERS+"<br>"+s;["UL","OL"].indexOf(l.tagName)<0||l.parentNode&&"LI"===l.parentNode.tagName;)l=l.parentNode;R(n).replaceWith('<span id="fr-break"></span>');var c=g.node.openTagString(l)+R(l).html()+g.node.closeTagString(l);c=c.replace(/<span id="fr-break"><\/span>/g,u),R(l).replaceWith(c),g.$el.find("li:empty").remove()}else if(i&&r||!g.node.isEmpty(n,!0)){for(var f="<br>",d=e.parentNode;d&&"LI"!=d.tagName;)f=g.node.openTagString(d)+f+g.node.closeTagString(d),d=d.parentNode;R(n).before("<li>"+f+"</li>"),R(e).remove()}else if(i){t=v(n);for(var h=R.FE.MARKERS+"<br>",p=e.parentNode;p&&"LI"!=p.tagName;)h=g.node.openTagString(p)+h+g.node.closeTagString(p),p=p.parentNode;t.parentNode&&"LI"==t.parentNode.tagName?R(t.parentNode).after("<li>"+h+"</li>"):o?R(t).after("<"+o+">"+h+"</"+o+">"):R(t).after(h),R(n).remove()}else(t=v(n)).parentNode&&"LI"==t.parentNode.tagName?r?R(t.parentNode).before(g.node.openTagString(n)+R.FE.MARKERS+"<br></li>"):R(t.parentNode).after(g.node.openTagString(n)+R.FE.MARKERS+"<br></li>"):o?R(t).before("<"+o+">"+R.FE.MARKERS+"<br></"+o+">"):R(t).before(R.FE.MARKERS+"<br>"),R(n).remove()},_middleEnter:function(e){for(var t=m(e),n="",r=e,i="",o="";r!=t;){var s="A"==(r=r.parentNode).tagName&&g.cursor.isAtEnd(e,r)?"fr-to-remove":"";i=g.node.openTagString(R(r).clone().addClass(s).get(0))+i,o=g.node.closeTagString(r)+o}n=o+n+i+R.FE.MARKERS+R.FE.INVISIBLE_SPACE,R(e).replaceWith('<span id="fr-break"></span>');var a=g.node.openTagString(t)+R(t).html()+g.node.closeTagString(t);a=a.replace(/<span id="fr-break"><\/span>/g,n),R(t).replaceWith(a)},_endEnter:function(e){for(var t=m(e),n=R.FE.MARKERS,r="",i=e,o=!1;i!=t;){var s="A"==(i=i.parentNode).tagName&&g.cursor.isAtEnd(e,i)?"fr-to-remove":"";o||i==t||g.node.isBlock(i)||(o=!0,r+=R.FE.INVISIBLE_SPACE),r=g.node.openTagString(R(i).clone().addClass(s).get(0))+r,n+=g.node.closeTagString(i)}var a=r+n;R(e).remove(),R(t).after(a)},_backspace:function(e){var t=m(e),n=t.previousSibling;if(n){n=R(n).find(g.html.blockTagsQuery()).get(-1)||n,R(e).replaceWith(R.FE.MARKERS);var r=g.node.contents(n);r.length&&"BR"==r[r.length-1].tagName&&R(r[r.length-1]).remove(),R(t).find(g.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==t&&R(this).replaceWith(R(this).html()+(g.node.isEmpty(this)?"":"<br>"))});for(var i,o=g.node.contents(t)[0];o&&!g.node.isList(o);)i=o.nextSibling,R(n).append(o),o=i;for(n=t.previousSibling;o;)i=o.nextSibling,R(n).append(o),o=i;R(t).remove()}else{var s=v(t);if(R(e).replaceWith(R.FE.MARKERS),s.parentNode&&"LI"==s.parentNode.tagName){var a=s.previousSibling;g.node.isBlock(a)?(R(t).find(g.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==t&&R(this).replaceWith(R(this).html()+(g.node.isEmpty(this)?"":"<br>"))}),R(a).append(R(t).html())):R(s).before(R(t).html())}else{var l=g.html.defaultTag();l&&0===R(t).find(g.html.blockTagsQuery()).length?R(s).before("<"+l+">"+R(t).html()+"</"+l+">"):R(s).before(R(t).html())}R(t).remove(),g.html.wrap(),0===R(s).find("li").length&&R(s).remove()}},_del:function(e){var t,n=m(e),r=n.nextSibling;if(r){(t=g.node.contents(r)).length&&"BR"==t[0].tagName&&R(t[0]).remove(),R(r).find(g.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==r&&R(this).replaceWith(R(this).html()+(g.node.isEmpty(this)?"":"<br>"))});for(var i,o=e,s=g.node.contents(r)[0];s&&!g.node.isList(s);)i=s.nextSibling,R(o).after(s),o=s,s=i;for(;s;)i=s.nextSibling,R(n).append(s),s=i;R(e).replaceWith(R.FE.MARKERS),R(r).remove()}else{for(var a=n;!a.nextSibling&&a!=g.el;)a=a.parentNode;if(a==g.el)return!1;if(a=a.nextSibling,g.node.isBlock(a))R.FE.NO_DELETE_TAGS.indexOf(a.tagName)<0&&(R(e).replaceWith(R.FE.MARKERS),(t=g.node.contents(n)).length&&"BR"==t[t.length-1].tagName&&R(t[t.length-1]).remove(),R(n).append(R(a).html()),R(a).remove());else for((t=g.node.contents(n)).length&&"BR"==t[t.length-1].tagName&&R(t[t.length-1]).remove(),R(e).replaceWith(R.FE.MARKERS);a&&!g.node.isBlock(a)&&"BR"!=a.tagName;)R(n).append(R(a)),a=a.nextSibling}}}},R.FE.NO_DELETE_TAGS=["TH","TD","TR","TABLE","FORM"],R.FE.SIMPLE_ENTER_TAGS=["TH","TD","LI","DL","DT","FORM"],R.FE.MODULES.cursor=function(h){function o(e){return!!e&&(!!h.node.isBlock(e)||(e.nextSibling&&e.nextSibling.nodeType==Node.TEXT_NODE&&
170===e.nextSibling.textContent.replace(/\u200b/g,"").length?o(e.nextSibling):!(e.nextSibling&&(!e.previousSibling||"BR"!=e.nextSibling.tagName||e.nextSibling.nextSibling))&&o(e.parentNode)))}function s(e){return!!e&&(!!h.node.isBlock(e)||(e.previousSibling&&e.previousSibling.nodeType==Node.TEXT_NODE&&0===e.previousSibling.textContent.replace(/\u200b/g,"").length?s(e.previousSibling):!e.previousSibling&&(!(e.previousSibling||!h.node.hasClass(e.parentNode,"fr-inner"))||s(e.parentNode))))}function p(e,t){return!!e&&e!=h.$wp.get(0)&&(e.previousSibling&&e.previousSibling.nodeType==Node.TEXT_NODE&&0===e.previousSibling.textContent.replace(/\u200b/g,"").length?p(e.previousSibling,t):!e.previousSibling&&(e.parentNode==t||p(e.parentNode,t)))}function g(e,t){return!!e&&e!=h.$wp.get(0)&&(e.nextSibling&&e.nextSibling.nodeType==Node.TEXT_NODE&&0===e.nextSibling.textContent.replace(/\u200b/g,"").length?g(e.nextSibling,t):!(e.nextSibling&&(!e.previousSibling||"BR"!=e.nextSibling.tagName||e.nextSibling.nextSibling))&&(e.parentNode==t||g(e.parentNode,t)))}function l(e){return 0<R(e).parentsUntil(h.$el,"LI").length&&0===R(e).parentsUntil("LI","TABLE").length}function u(e,t){var n=new RegExp((t?"^":"")+"(([\\uD83C-\\uDBFF\\uDC00-\\uDFFF]+\\u200D)*[\\uD83C-\\uDBFF\\uDC00-\\uDFFF]{2})"+(t?"":"$"),"i"),r=e.match(n);return r?r[0].length:1}function c(e){for(var t,n=e;!n.previousSibling;)if(n=n.parentNode,h.node.isElement(n))return!1;if(n=n.previousSibling,!h.node.isBlock(n)&&h.node.isEditable(n)){for(t=h.node.contents(n);n.nodeType!=Node.TEXT_NODE&&!h.node.isDeletable(n)&&t.length&&h.node.isEditable(n);)n=t[t.length-1],t=h.node.contents(n);if(n.nodeType==Node.TEXT_NODE){var r=n.textContent,i=r.length;if(r.length&&"\n"===r[r.length-1])return n.textContent=r.substring(0,i-2),0===n.textContent.length&&n.parentNode.removeChild(n),c(e);h.opts.tabSpaces&&r.length>=h.opts.tabSpaces&&0===r.substr(r.length-h.opts.tabSpaces,r.length-1).replace(/ /g,"").replace(new RegExp(R.FE.UNICODE_NBSP,"g"),"").length&&(i=r.length-h.opts.tabSpaces+1),n.textContent=r.substring(0,i-u(r));var o=r.length!=n.textContent.length;if(0===n.textContent.length)if(o&&h.opts.keepFormatOnDelete)R(n).after(R.FE.INVISIBLE_SPACE+R.FE.MARKERS);else if((2!=n.parentNode.childNodes.length||n.parentNode!=e.parentNode)&&1!=n.parentNode.childNodes.length||h.node.isBlock(n.parentNode)||h.node.isElement(n.parentNode)||!h.node.isDeletable(n.parentNode)){for(;!h.node.isElement(n.parentNode)&&h.node.isEmpty(n.parentNode)&&h.node.isDeletable(n.parentNode);){var s=n;n=n.parentNode,s.parentNode.removeChild(s)}R(n).after(R.FE.MARKERS),h.node.isElement(n.parentNode)&&!e.nextSibling&&n.previousSibling&&"BR"==n.previousSibling.tagName&&R(e).after("<br>"),n.parentNode.removeChild(n)}else R(n.parentNode).after(R.FE.MARKERS),R(n.parentNode).remove();else R(n).after(R.FE.MARKERS)}else h.node.isDeletable(n)?(R(n).after(R.FE.MARKERS),R(n).remove()):e.nextSibling&&"BR"==e.nextSibling.tagName&&h.node.isVoid(n)&&"BR"!=n.tagName?(R(e.nextSibling).remove(),R(e).replaceWith(R.FE.MARKERS)):!1!==h.events.trigger("node.remove",[R(n)])&&(R(n).after(R.FE.MARKERS),R(n).remove())}else if(R.FE.NO_DELETE_TAGS.indexOf(n.tagName)<0&&(h.node.isEditable(n)||h.node.isDeletable(n)))if(h.node.isDeletable(n))R(e).replaceWith(R.FE.MARKERS),R(n).remove();else if(h.node.isEmpty(n)&&!h.node.isList(n))R(n).remove(),R(e).replaceWith(R.FE.MARKERS);else{for(h.node.isList(n)&&(n=R(n).find("li:last").get(0)),(t=h.node.contents(n))&&"BR"==t[t.length-1].tagName&&R(t[t.length-1]).remove(),t=h.node.contents(n);t&&h.node.isBlock(t[t.length-1]);)n=t[t.length-1],t=h.node.contents(n);R(n).append(R.FE.MARKERS);for(var a=e;!a.previousSibling;)a=a.parentNode;for(;a&&"BR"!==a.tagName&&!h.node.isBlock(a);){var l=a;a=a.nextSibling,R(n).append(l)}a&&"BR"==a.tagName&&R(a).remove(),R(e).remove()}else e.nextSibling&&"BR"==e.nextSibling.tagName&&R(e.nextSibling).remove()}function a(e){var t=0<R(e).parentsUntil(h.$el,"BLOCKQUOTE").length,n=h.node.deepestParent(e,[],!t);if(n&&"BLOCKQUOTE"==n.tagName){var r=h.node.deepestParent(e,[R(e).parentsUntil(h.$el,"BLOCKQUOTE").get(0)]);r&&r.nextSibling&&(n=r)}if(null!==n){var i,o=n.nextSibling;if(h.node.isBlock(n)&&(h.node.isEditable(n)||h.node.isDeletable(n))&&o&&R.FE.NO_DELETE_TAGS.indexOf(o.tagName)<0)if(h.node.isDeletable(o))R(o).remove(),R(e).replaceWith(R.FE.MARKERS);else if(h.node.isBlock(o)&&h.node.isEditable(o))if(h.node.isList(o))if(h.node.isEmpty(n,!0))R(n).remove(),R(o).find("li:first").prepend(R.FE.MARKERS);else{var s=R(o).find("li:first");"BLOCKQUOTE"==n.tagName&&(i=h.node.contents(n)).length&&h.node.isBlock(i[i.length-1])&&(n=i[i.length-1]),0===s.find("ul, ol").length&&(R(e).replaceWith(R.FE.MARKERS),s.find(h.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==s.get(0)&&R(this).replaceWith(R(this).html()+(h.node.isEmpty(this)?"":"<br>"))}),R(n).append(h.node.contents(s.get(0))),s.remove(),0===R(o).find("li").length&&R(o).remove())}else{if((i=h.node.contents(o)).length&&"BR"==i[0].tagName&&R(i[0]).remove(),"BLOCKQUOTE"!=o.tagName&&"BLOCKQUOTE"==n.tagName)for(i=h.node.contents(n);i.length&&h.node.isBlock(i[i.length-1]);)n=i[i.length-1],i=h.node.contents(n);else if("BLOCKQUOTE"==o.tagName&&"BLOCKQUOTE"!=n.tagName)for(i=h.node.contents(o);i.length&&h.node.isBlock(i[0]);)o=i[0],i=h.node.contents(o);R(e).replaceWith(R.FE.MARKERS),R(n).append(o.innerHTML),R(o).remove()}else{for(R(e).replaceWith(R.FE.MARKERS);o&&"BR"!==o.tagName&&!h.node.isBlock(o)&&h.node.isEditable(o);){var a=o;o=o.nextSibling,R(n).append(a)}o&&"BR"==o.tagName&&h.node.isEditable(o)&&R(o).remove()}}}function n(e){for(var t,n=e;!n.nextSibling;)if(n=n.parentNode,h.node.isElement(n))return!1;if("BR"==(n=n.nextSibling).tagName&&h.node.isEditable(n))if(n.nextSibling){if(h.node.isBlock(n.nextSibling)&&h.node.isEditable(n.nextSibling)){if(!(R.FE.NO_DELETE_TAGS.indexOf(n.nextSibling.tagName)<0))return void R(n).remove();n=n.nextSibling,R(n.previousSibling).remove()}}else if(o(n))return void(l(e)?h.cursorLists._del(e):h.node.deepestParent(n)&&((!h.node.isEmpty(h.node.blockParent(n))||
17(h.node.blockParent(n).nextSibling&&R.FE.NO_DELETE_TAGS.indexOf(h.node.blockParent(n).nextSibling.tagName))<0)&&R(n).remove(),a(e)));if(!h.node.isBlock(n)&&h.node.isEditable(n)){for(t=h.node.contents(n);n.nodeType!=Node.TEXT_NODE&&t.length&&!h.node.isDeletable(n)&&h.node.isEditable(n);)n=t[0],t=h.node.contents(n);n.nodeType==Node.TEXT_NODE?(R(n).before(R.FE.MARKERS),n.textContent.length&&(n.textContent=n.textContent.substring(u(n.textContent,!0),n.textContent.length))):h.node.isDeletable(n)?(R(n).before(R.FE.MARKERS),R(n).remove()):!1!==h.events.trigger("node.remove",[R(n)])&&(R(n).before(R.FE.MARKERS),R(n).remove()),R(e).remove()}else if(R.FE.NO_DELETE_TAGS.indexOf(n.tagName)<0&&(h.node.isEditable(n)||h.node.isDeletable(n)))if(h.node.isDeletable(n))R(e).replaceWith(R.FE.MARKERS),R(n).remove();else if(h.node.isList(n))e.previousSibling?(R(n).find("li:first").prepend(e),h.cursorLists._backspace(e)):(R(n).find("li:first").prepend(R.FE.MARKERS),R(e).remove());else if((t=h.node.contents(n))&&"BR"==t[0].tagName&&R(t[0]).remove(),t&&"BLOCKQUOTE"==n.tagName){var r=t[0];for(R(e).before(R.FE.MARKERS);r&&"BR"!=r.tagName;){var i=r;r=r.nextSibling,R(e).before(i)}r&&"BR"==r.tagName&&R(r).remove()}else R(e).after(R(n).html()).after(R.FE.MARKERS),R(n).remove()}function f(){for(var e=h.el.querySelectorAll("blockquote:empty"),t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}function d(e,t,n){var r,i=h.node.deepestParent(e,[],!n);if(i&&"BLOCKQUOTE"==i.tagName)return g(e,i)?((r=h.html.defaultTag())?R(i).after("<"+r+">"+R.FE.MARKERS+"<br></"+r+">"):R(i).after(R.FE.MARKERS+"<br>"),R(e).remove()):m(e,t,n),!1;if(null==i)(r=h.html.defaultTag())&&h.node.isElement(e.parentNode)?R(e).replaceWith("<"+r+">"+R.FE.MARKERS+"<br></"+r+">"):!e.previousSibling||R(e.previousSibling).is("br")||e.nextSibling?R(e).replaceWith("<br>"+R.FE.MARKERS):R(e).replaceWith("<br>"+R.FE.MARKERS+"<br>");else{var o=e,s="";h.node.isBlock(i)&&!t||(s="<br/>");var a,l="",u="",c="",f="";(r=h.html.defaultTag())&&h.node.isBlock(i)&&(c="<"+r+">
17",f="</"+r+">",i.tagName==r.toUpperCase()&&(c=h.node.openTagString(R(i).clone().removeAttr("id").get(0))));do{if(o=o.parentNode,!t||o!=i||t&&!h.node.isBlock(i))if(l+=h.node.closeTagString(o),o==i&&h.node.isBlock(i))u=c+u;else{var d="A"==o.tagName&&g(e,o)?"fr-to-remove":"";u=h.node.openTagString(R(o).clone().addClass(d).get(0))+u}}while(o!=i);s=l+s+u+(e.parentNode==i&&h.node.isBlock(i)?"":R.FE.INVISIBLE_SPACE)+R.FE.MARKERS,h.node.isBlock(i)&&!R(i).find("*:last").is("br")&&R(i).append("<br/>"),R(e).after('<span id="fr-break"></span>'),R(e).remove(),i.nextSibling&&!h.node.isBlock(i.nextSibling)||h.node.isBlock(i)||R(i).after("<br>"),a=(a=!t&&h.node.isBlock(i)?h.node.openTagString(i)+R(i).html()+f:h.node.openTagString(i)+R(i).html()+h.node.closeTagString(i)).replace(/<span id="fr-break"><\/span>/g,s),R(i).replaceWith(a)}}function m(e,t,n){var r=h.node.deepestParent(e,[],!n);if(null==r)h.html.defaultTag()&&e.parentNode===h.el?R(e).replaceWith("<"+h.html.defaultTag()+">"+R.FE.MARKERS+"<br></"+h.html.defaultTag()+">"):(e.nextSibling&&!h.node.isBlock(e.nextSibling)||R(e).after("<br>"),R(e).replaceWith("<br>"+R.FE.MARKERS));else{var i=e,o="";"PRE"==r.tagName&&(t=!0),h.node.isBlock(r)&&!t||(o="<br>");var s="",a="";do{var l=i;
17if(i=i.parentNode,"BLOCKQUOTE"==r.tagName&&h.node.isEmpty(l)&&!h.node.hasClass(l,"fr-marker")&&0<R(l).find(e).length&&R(l).after(e),("BLOCKQUOTE"!=r.tagName||!g(e,i)&&!p(e,i))&&(!t||i!=r||t&&!h.node.isBlock(r))){s+=h.node.closeTagString(i);var u="A"==i.tagName&&g(e,i)?"fr-to-remove":"";a=h.node.openTagString(R(i).clone().addClass(u).removeAttr("id").get(0))+a}}while(i!=r);var c=r==e.parentNode&&h.node.isBlock(r)||e.nextSibling;if("BLOCKQUOTE"==r.tagName){e.previousSibling&&h.node.isBlock(e.previousSibling)&&e.nextSibling&&"BR"==e.nextSibling.tagName&&(R(e.nextSibling).after(e),e.nextSibling&&"BR"==e.nextSibling.tagName&&R(e.nextSibling).remove());var f=h.html.defaultTag();o=s+o+(f?"<"+f+">":"")+R.FE.MARKERS+"<br>"+(f?"</"+f+">":"")+a}else o=s+o+a+(c?"":R.FE.INVISIBLE_SPACE)+R.FE.MARKERS;R(e).replaceWith('<span id="fr-break"></span>');var d=h.node.openTagString(r)+R(r).html()+h.node.closeTagString(r);d=d.replace(/<span id="fr-break"><\/span>/g,o),R(r).replaceWith(d)}}return{enter:function(e){var t=h.markers.insert();if(!t)return!0;h.el.normalize();var n=!1;0<R(t).parentsUntil(h.$el,"BLOCKQUOTE").length&&(n=!(e=!1)),R(t).parentsUntil(h.$el,"TD, TH").length&&(n=!1),o(t)?!l(t)||e||n?d(t,e,n):h.cursorLists._endEnter(t):s(t)?!l(t)||e||n?function a(e,t,n){var r,i=h.node.deepestParent(e,[],!n);if(i&&"TABLE"==i.tagName)return R(i).find("td:first, th:first").prepend(e),a(e,t,n);if(i&&"BLOCKQUOTE"==i.tagName){if(p(e,i))return(r=h.html.defaultTag())?R(i).before("<"+r+">"+R.FE.MARKERS+"<br></"+r+">"):R(i).before(R.FE.MARKERS+"<br>"),R(e).remove(),!1;g(e,i)?d(e,t,!0):m(e,t,!0)}if(null==i)(r=h.html.defaultTag())&&h.node.isElement(e.parentNode)?R(e).replaceWith("<"+r+">"+R.FE.MARKERS+"<br></"+r+">"):R(e).replaceWith("<br>"+R.FE.MARKERS);else{if(h.node.isBlock(i))if("PRE"==i.tagName&&(t=!0),t)R(e).remove(),R(i).prepend("<br>"+R.FE.MARKERS);else{if(h.node.isEmpty(i,!0))return d(e,t,n);if(h.opts.keepFormatOnDelete){for(var o=e,s=R.FE.INVISIBLE_SPACE;o!=i&&!h.node.isElement(o);)o=o.parentNode,s=h.node.openTagString(o)+s+h.node.closeTagString(o);R(i).before(s)}else R(i).before(h.node.openTagString(R(i).clone().removeAttr("id").get(0))+"<br>"+h.node.closeTagString(i))}else R(i).before("<br>");R(e).remove()}}(t,e,n):h.cursorLists._startEnter(t):!l(t)||e||n?m(t,e,n):h.cursorLists._middleEnter(t),h.$el.find(".fr-to-remove").each(function(){for(var e=h.node.contents(this),t=0;t<e.length;t++)e[t].nodeType==Node.TEXT_NODE&&(e[t].textContent=e[t].textContent.replace(/\u200B/g,""));R(this).replaceWith(this.innerHTML)}),h.html.fillEmptyBlocks(!0),h.opts.htmlUntouched||(h.html.cleanEmptyTags(),h.clean.lists()),h.spaces.normalizeAroundCursor(),h.selection.restore()},backspace:function(){var e=!1,t=h.markers.insert();if(!t)return!0;for(var n=t.parentNode;n&&!h.node.isElement(n);){if("false"===n.getAttribute("contenteditable"))return R(t).replaceWith(R.FE.MARKERS),h.selection.restore(),!1;if("true"===n.getAttribute("contenteditable"))break;n=n.parentNode}h.el.normalize();var r=t.previousSibling;if(r){var i=r.textContent;i&&i.length&&8203==i.charCodeAt(i.length-1)&&(1==i.length?R(r).remove():r.textContent=r.textContent.substr(0,i.length-u(i)))}return o(t)?e=c(t):s(t)?l(t)&&p(t,R(t).parents("li:first").get(0))?h.cursorLists._backspace(t):function(e){for(var t=0<R(e).parentsUntil(h.$el,"BLOCKQUOTE").length,n=h.node.deepestParent(e,[],!t),
18r=n;n&&!n.previousSibling&&"BLOCKQUOTE"!=n.tagName&&n.parentElement!=h.el&&!h.node.hasClass(n.parentElement,"fr-inner")&&R.FE.SIMPLE_ENTER_TAGS.indexOf(n.parentElement.tagName)<0;)n=n.parentElement;if(n&&"BLOCKQUOTE"==n.tagName){var i=h.node.deepestParent(e,[R(e).parentsUntil(h.$el,"BLOCKQUOTE").get(0)]);i&&i.previousSibling&&(r=n=i)}if(null!==n){var o,s=n.previousSibling;if(h.node.isBlock(n)&&h.node.isEditable(n)&&s&&R.FE.NO_DELETE_TAGS.indexOf(s.tagName)<0)if(h.node.isDeletable(s))R(s).remove(),R(e).replaceWith(R.FE.MARKERS);else if(h.node.isEditable(s))if(h.node.isBlock(s))if(h.node.isEmpty(s)&&!h.node.isList(s))R(s).remove(),R(e).after(h.opts.keepFormatOnDelete?R.FE.INVISIBLE_SPACE:"");else{if(h.node.isList(s)&&(s=R(s).find("li:last").get(0)),(o=h.node.contents(s)).length&&"BR"==o[o.length-1].tagName&&R(o[o.length-1]).remove(),"BLOCKQUOTE"==s.tagName&&"BLOCKQUOTE"!=n.tagName)for(o=h.node.contents(s);o.length&&h.node.isBlock(o[o.length-1]);)s=o[o.length-1],o=h.node.contents(s);else if("BLOCKQUOTE"!=s.tagName&&"BLOCKQUOTE"==n.tagName)for(o=h.node.contents(n);o.length&&h.node.isBlock(o[0]);)n=o[0],o=h.node.contents(n);if(h.node.isEmpty(n))R(e).remove(),h.selection.setAtEnd(s,!0);else{R(e).replaceWith(R.FE.MARKERS);var a=s.childNodes;h.node.isBlock(a[a.length-1])?R(a[a.length-1]).append(r.innerHTML):R(s).append(r.innerHTML)}R(r).remove(),h.node.isEmpty(n)&&R(n).remove()}else R(e).replaceWith(R.FE.MARKERS),"BLOCKQUOTE"==n.tagName&&s.nodeType==Node.ELEMENT_NODE?R(s).remove():(R(s).after(h.node.isEmpty(n)?"":R(n).html()),R(n).remove(),"BR"==s.tagName&&R(s).remove())}}(t):e=c(t),R(t).remove(),f(),h.html.fillEmptyBlocks(!0),h.opts.htmlUntouched||(h.html.cleanEmptyTags(),h.clean.lists(),h.spaces.normalizeAroundCursor()),h.selection.restore(
18),e},del:function(){var e=h.markers.insert();if(!e)return!1;if(h.el.normalize(),o(e))if(l(e))if(0===R(e).parents("li:first").find("ul, ol").length)h.cursorLists._del(e);else{var t=R(e).parents("li:first").find("ul:first, ol:first").find("li:first");(t=t.find(h.html.blockTagsQuery()).get(-1)||t).prepend(e),h.cursorLists._backspace(e)}else a(e);else s(e),n(e);R(e).remove(),f(),h.html.fillEmptyBlocks(!0),h.opts.htmlUntouched||(h.html.cleanEmptyTags(),h.clean.lists()),h.spaces.normalizeAroundCursor(),h.selection.restore()},isAtEnd:g,isAtStart:p}},R.FE.ENTER_P=0,R.FE.ENTER_DIV=1,R.FE.ENTER_BR=2,R.FE.KEYCODE={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,FF_SEMICOLON:59,FF_EQUALS:61,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,FF_HYPHEN:173,
18SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,HYPHEN:189,PERIOD:190,SLASH:191,APOSTROPHE:192,TILDE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,IME:229},R.extend(R.FE.DEFAULTS,{enter:R.FE.ENTER_P,multiLine:!0,tabSpaces:0}),R.FE.MODULES.keys=function(l){function e(){if(l.browser.mozilla&&l.selection.isCollapsed()&&!E){var e=l.selection.ranges(0),t=e.startContainer,n=e.startOffset;t&&t.nodeType==Node.TEXT_NODE&&n<=t.textContent.length&&0<n&&32==t.textContent.charCodeAt(n-1)&&(l.selection.save(),l.spaces.normalize(),l.selection.restore())}}function t(){l.selection.isFull()&&setTimeout(function(){var e=l.html.defaultTag();e?l.$el.html("<"+e+">"+R.FE.MARKERS+"<br/></"+e+">"):l.$el.html(R.FE.MARKERS+"<br/>"),l.selection.restore(),l.placeholder.refresh(),l.button.bulkRefresh(),l.undo.saveStep()},0)}function i(){E=!1}function n(){E=!1}function u(){var e=l.html.defaultTag();e?l.$el.html("<"+e+">"+R.FE.MARKERS+"<br/></"+e+">"):l.$el.html(R.FE.MARKERS+"<br/>"),l.selection.restore()}function r(e){var t=l.selection.element();if(t&&0<=["INPUT","TEXTAREA"].indexOf(t.tagName))return!0;if(e&&f(e.which))return!0;l.events.disableBlur();var n=e.which;if(16===n)return!0;if((v=n)===R.FE.KEYCODE.IME)return E=!0;E=!1;var r,i,o,s=d(n)&&!c(e)&&!e.altKey,a=n==R.FE.KEYCODE.BACKSPACE||n==R.FE.KEYCODE.DELETE;if((l.selection.isFull()&&!l.opts.keepFormatOnDelete&&!l.placeholder.isVisible()||a&&l.placeholder.isVisible()&&l.opts.keepFormatOnDelete)&&(s||a)&&(u(),!d(n)))return e.preventDefault(),!0;n==R.FE.KEYCODE.ENTER?e.shiftKey?((o=e).preventDefault(),o.stopPropagation(),l.opts.multiLine&&(l.selection.isCollapsed()||l.selection.remove(),l.cursor.enter(!0))):(i=e,l.opts.multiLine?(l.helpers.isIOS()||(i.preventDefault(),i.stopPropagation()),l.selection.isCollapsed()||l.selection.remove(),l.cursor.enter()):(i.preventDefault(),i.stopPropagation())):n===R.FE.KEYCODE.BACKSPACE&&(e.metaKey||e.ctrlKey)?setTimeout(function(){l.events.disableBlur(),l.events.focus()},0):n!=R.FE.KEYCODE.BACKSPACE||c(e)||e.altKey?n!=R.FE.KEYCODE.DELETE||c(e)||e.altKey||e.shiftKey?n==R.FE.KEYCODE.SPACE?function(e){var t=l.selection.element();if(!l.helpers.isMobile()&&t&&"A"==t.tagName){e.preventDefault(),e.stopPropagation(),l.selection.isCollapsed()||l.selection.remove();var n=l.markers.insert();if(n){var r=n.previousSibling;!n.nextSibling&&n.parentNode&&"A"==n.parentNode.tagName?(n.parentNode.insertAdjacentHTML("afterend","&nbsp;"+R.FE.MARKERS),n.parentNode.removeChild(n)):(r&&r.nodeType==Node.TEXT_NODE&&1==r.textContent.length&&160==r.textContent.charCodeAt(0)?r.textContent=r.textContent+" ":n.insertAdjacentHTML("beforebegin","&nbsp;"),n.outerHTML=R.FE.MARKERS),l.selection.restore()}}}(e):n==R.FE.KEYCODE.TAB?function(e){if(0<l.opts.tabSpaces)if(l.selection.isCollapsed()){l.undo.saveStep(),e.preventDefault(),e.stopPropagation();for(var t="",n=0;n<l.opts.tabSpaces;n++)t+="&nbsp;";l.html.insert(t),l.placeholder.refresh(),l.undo.saveStep()}else e.preventDefault(),e.stopPropagation(),e.shiftKey?l.commands.outdent():l.commands.indent()}(e):c(e)||!d(e.which)||l.selection.isCollapsed()||e.ctrlKey||e.altKey||l.selection.remove():l.placeholder.isVisible()?(l.opts.keepFormatOnDelete||u(),e.preventDefault(),e.stopPropagation()):((r=e).preventDefault(),r.stopPropagation(),""===l.selection.text()?l.cursor.del():l.selection.remove(),l.placeholder.refresh()):l.placeholder.isVisible()?(l.opts.keepFormatOnDelete||u(),e.preventDefault(),e.stopPropagation()):function(e){if(l.selection.isCollapsed())if(l.cursor.backspace(),l.helpers.isIOS()){var t=l.selection.ranges(0);
18t.deleteContents(),t.insertNode(document.createTextNode("\u200b")),l.selection.get().modify("move","forward","character")}else e.preventDefault(),e.stopPropagation();else e.preventDefault(),e.stopPropagation(),l.selection.remove();l.placeholder.refresh()}(e),l.events.enableBlur()}function o(){if(!l.$wp)return!0;var e;l.opts.height||l.opts.heightMax?(e=l.position.getBoundingRect().top,(l.helpers.isIOS()||l.helpers.isAndroid())&&(e-=l.helpers.scrollTop()),l.opts.iframe&&(e+=l.$iframe.offset().top),e>l.$wp.offset().top-l.helpers.scrollTop()+l.$wp.height()-20&&l.$wp.scrollTop(e+l.$wp.scrollTop()-(l.$wp.height()+l.$wp.offset().top)+l.helpers.scrollTop()+20)):(e=l.position.getBoundingRect().top,l.opts.toolbarBottom&&(e+=l.opts.toolbarStickyOffset),(l.helpers.isIOS()||l.helpers.isAndroid())&&(e-=l.helpers.scrollTop()),l.opts.iframe&&(e+=l.$iframe.offset().top,e-=l.helpers.scrollTop()),(e+=l.opts.toolbarStickyOffset)>l.o_win.innerHeight-20&&R(l.o_win).scrollTop(e+l.helpers.scrollTop()-l.o_win.innerHeight+20),e=l.position.getBoundingRect().top,l.opts.toolbarBottom||(e-=l.opts.toolbarStickyOffset),(l.helpers.isIOS()||l.helpers.isAndroid())&&(e-=l.helpers.scrollTop()),l.opts.iframe&&(e+=l.$iframe.offset().top,e-=l.helpers.scrollTop()),e<l.$tb.height()+20&&R(l.o_win).scrollTop(e+l.helpers.scrollTop()-l.$tb.height()-20))}function s(e){var t=l.selection.element();if(t&&0<=["INPUT","TEXTAREA"].indexOf(t.tagName))return!0;if(e&&0===e.which&&v&&(e.which=v),l.helpers.isAndroid()&&l.browser.mozilla)return!0;if(E)return!1;if(e&&l.helpers.isIOS()&&e.which==R.FE.KEYCODE.ENTER&&l.doc.execCommand("undo"),!l.selection.isCollapsed())return!0;if(e&&(e.which===R.FE.KEYCODE.META||e.which==R.FE.KEYCODE.CTRL))return!0;if(e&&f(e.which))return!0;if(e&&!l.helpers.isIOS()&&(e.which==R.FE.KEYCODE.ENTER||e.which==R.FE.KEYCODE.BACKSPACE||37<=e.which&&e.which<=40&&!l.browser.msie))try{o()}catch(i){}var n,r=l.selection.element();!function(){if(!r)return!1;var e=r.innerHTML;return!!((e=e.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,""))&&/\u200B/.test(e)&&0<e.replace(/\u200B/gi,"").length)}()||l.node.hasClass(r,"fr-marker")||"IFRAME"==r.tagName||(n=r,l.helpers.isIOS()&&0!==((n.textContent||"").match(/[\u3041-\u3096\u30A0-\u30FF\u4E00-\u9FFF\u3130-\u318F\uAC00-\uD7AF]/gi)||[]).length)||(l.selection.save(),function(e){for(var t=l.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,l.node.filter(function(e){return/\u200B/gi.test(e.textContent)}),!1);t.nextNode();){var n=t.currentNode;n.textContent=n.textContent.replace(/\u200B/gi,"")}}(r),l.selection.restore())}function c(e){if(-1!=navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}function f(e){if(e>=R.FE.KEYCODE.ARROW_LEFT&&e<=R.FE.KEYCODE.ARROW_DOWN)return!0}function d(e){if(e>=R.FE.KEYCODE.ZERO&&e<=R.FE.KEYCODE.NINE)return!0;if(e>=R.FE.KEYCODE.NUM_ZERO&&e<=R.FE.KEYCODE.NUM_MULTIPLY)return!0;if(e>=R.FE.KEYCODE.A&&e<=R.FE.KEYCODE.Z)return!0;if(l.browser.webkit&&0===e)return!0;switch(e){case R.FE.KEYCODE.SPACE:case R.FE.KEYCODE.QUESTION_MARK:case R.FE.KEYCODE.NUM_PLUS:case R.FE.KEYCODE.NUM_MINUS:case R.FE.KEYCODE.NUM_PERIOD:case R.FE.KEYCODE.NUM_DIVISION:case R.FE.KEYCODE.SEMICOLON:case R.FE.KEYCODE.FF_SEMICOLON:case R.FE.KEYCODE.DASH:case R.FE.KEYCODE.EQUALS:case R.FE.KEYCODE.FF_EQUALS:case R.FE.KEYCODE.COMMA:case R.FE.KEYCODE.PERIOD:case R.FE.KEYCODE.SLASH:case R.FE.KEYCODE.APOSTROPHE:case R.FE.KEYCODE.SINGLE_QUOTE:case R.FE.KEYCODE.OPEN_SQUARE_BRACKET:case R.FE.KEYCODE.BACKSLASH:case R.FE.KEYCODE.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}function a(e){var t=e.which;if(c(e)||37<=t&&t<=40||!d(t)&&t!=R.FE.KEYCODE.DELETE&&t!=R.FE.KEYCODE.BACKSPACE&&t!=R.FE.KEYCODE.ENTER&&t!=R.FE.KEYCODE.IME)return!0;y||(b=l.snapshot.get(),l.undo.canDo()||l.undo.saveStep()),clearTimeout(y),y=setTimeout(function(){y=null,l.undo.saveStep()},Math.max(250,l.opts.typingTimer))}function h(e){var t=e.which;if(c(e)||37<=t&&t<=40)return!0;b&&y?(l.undo.saveStep(b),b=null):void 0!==t&&0!==t||b||y||l.undo.saveStep()}function p(e){if(e&&"BR"==e.tagName)return!1;try{return 0===(e.textContent||"").length&&e.querySelector&&!e.querySelector(":scope > br")||e.childNodes&&1==e.childNodes.length&&e.childNodes[0].getAttribute&&("false"==e.childNodes[0].getAttribute("contenteditable")||l.node.hasClass(e.childNodes[0],"fr-img-caption"))}catch(t){return!1}}function g(e){var t=l.el.childNodes,n=l.html.defaultTag();return!(!e.target||e.target===l.el)||0===t.length||void(l.$el.outerHeight()-e.offsetY<=10?p(t[t.length-1])&&(n?l.$el.append("<"+n+">"+R.FE.MARKERS+"<br></"+n+">"):l.$el.append(R.FE.MARKERS+"<br>
18"),l.selection.restore(),o()):e.offsetY<=10&&p(t[0])&&(n?l.$el.prepend("<"+n+">"+R.FE.MARKERS+"<br></"+n+">"):l.$el.prepend(R.FE.MARKERS+"<br>"),l.selection.restore(),o()))}function m(){y&&clearTimeout(y)}var v,y,b,E=!1;return{_init:function(){l.events.on("keydown",a),l.events.on("input",e),l.events.on("mousedown",n),l.events.on("keyup input",h),l.events.on("keypress",i),l.events.on("keydown",r),l.events.on("keyup",s),l.events.on("destroy",m),l.events.on("html.inserted",s),l.events.on("cut",t),l.events.on("click",g)},ctrlKey:c,isCharacter:d,isArrow:f,forceUndo:function(){y&&(clearTimeout(y),l.undo.saveStep(),b=null)},isIME:function(){return E},isBrowserAction:function(e){var t=e.which;return c(e)||t==R.FE.KEYCODE.F5},positionCaret:o}},R.FE.MODULES.accessibility=function(f){function a(t){t&&t.length&&!f.$el.find('[contenteditable="true"]').is(":focus")&&(t.data("blur-event-set")||t.parents(".fr-popup").length||(f.events.$on(t,"blur",function(){var e=t.parents(".fr-toolbar, .fr-popup").data("instance")||f;e.events.blurActive()&&e.events.trigger("blur"),setTimeout(function(){e.events.enableBlur()},100)},!0),t.data("blur-event-set",!0)),(t.parents(".fr-toolbar, .fr-popup").data("instance")||f).events.disableBlur(),t.focus(),f.shared.$f_el=t)}function d(e,t){var n=t?"last":"first",r=e.find("button:visible:not(.fr-disabled), .fr-group span.fr-command:visible")[n]();if(r.length)return a(r),!0}function o(e){return e.is("input, textarea, select")&&t(),f.events.disableBlur(),e.focus(),!0}function h(e,t){var n=e.find("input, textarea, button, select").filter(":visible").not(":disabled").filter(t?":last":":first");if(n.length)return o(n);if(f.shared.with_kb){var r=e.find(".fr-active-item:visible:first");if(r.length)return o(r);var i=e.find("[tabIndex]:visible:first");if(i.length)return o(i)}}function t(){0===f.$el.find(".fr-marker").length&&f.core.hasFocus()&&f.selection.save()}function s(){var e=f.popups.areVisible();if(e){var t=e.find(".fr-buttons");return t.find("button:focus, .fr-group span:focus").length?!d(e.data("instance").$tb):!d(t)}return!d(f.$tb)}function l(){var e=null;return f.shared.$f_el.is(".fr-dropdown.fr-active")?e=f.shared.$f_el:f.shared.$f_el.closest(".fr-dropdown-menu").prev().is(".fr-dropdown.fr-active")&&(e=f.shared.$f_el.closest(".fr-dropdown-menu").prev()),e}function n(e,t,n){if(f.shared.$f_el){var r=l();r&&(f.button.click(r),f.shared.$f_el=r);var i,o=e.find("button:visible:not(.fr-disabled), .fr-group span.fr-command:visible"),s=o.index(f.shared.$f_el);if(0===s&&!n||s==o.length-1&&n)t&&(e.parent().is(".fr-popup")&&(i=!h(e.parent().children().not(".fr-buttons"),!n)),!1===i&&(f.shared.$f_el=null)),t&&!1===i||d(e,!n);else a(R(o.get(s+(n?1:-1))));return!1}}function u(e,t){return n(e,t,!0)}function c(e,t){return n(e,t)}function p(e){if(f.shared.$f_el){var t;if(f.shared.$f_el.is(".fr-dropdown.fr-active"))return a(t=e?f.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").first():f.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").last()),!1;if(f.shared.$f_el.is("a.fr-command"))return(t=e?f.shared.$f_el.closest("li").nextAll(":visible:first").find(".fr-command:not(.fr-disabled)").first():f.shared.$f_el.closest("li").prevAll(":visible:first").find(".fr-command:not(.fr-disabled)").first()).length||(t=e?f.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").first():f.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").last()),a(t),!1}}function g(){if(f.shared.$f_el){if(f.shared.$f_el.hasClass("fr-dropdown"))f.button.click(f.shared.$f_el);else if(f.shared.$f_el.is("button.fr-back")){f.opts.toolbarInline&&(f.events.disableBlur(),f.events.focus());var e=f.popups.areVisible(f);e&&(f.shared.with_kb=!1),f.button.click(f.shared.$f_el),v(e)}else{if(f.events.disableBlur(),f.button.click(f.shared.$f_el),f.shared.$f_el.attr("data-popup")){var t=f.popups.areVisible(f);t&&t.data("popup-button",f.shared.$f_el)}else if(f.shared.$f_el.attr("data-modal")){var n=f.modals.areVisible(f);n&&n.data("modal-button",f.shared.$f_el)}f.shared.$f_el=null}return!1}}function m(){f.shared.$f_el&&(f.events.disableBlur(),f.shared.$f_el.blur(),f.shared.$f_el=null),!1!==f.events.trigger("toolbar.focusEditor")&&(f.events.disableBlur(),f.$el.focus(),f.events.focus())}function r(r){r&&r.length&&(f.events.$on(r,"keydown",function(e){if(!R(e.target).is("a.fr-command, button.fr-command, .fr-group span.fr-command"))return!0;var t=r.parents(".fr-popup").data("instance")||r.data("instance")||f;f.shared.with_kb=!0;var n=t.accessibility.exec(e,r);return f.shared.with_kb=!1,n},!0),f.events.$on(r,"mouseenter","[tabIndex]",function(e){var t=r.parents(".fr-popup").data("instance")||r.data("instance")||f;if(!y)return e.stopPropagation(),void e.preventDefault();var n=R(e.currentTarget);t.shared.$f_el&&t.shared.$f_el.not(n)&&t.accessibility.focusEditor()},!0))}function v(e){var t=e.data("popup-button");t&&setTimeout(function(){a(t),e.data("popup-button",null)},0)}function i(e){var t=f.popups.areVisible(e);t&&t.data("popup-button",null)}function e(e){var t=-1!=navigator.userAgent.indexOf("Mac OS X")?e.metaKey:e.ctrlKey;if(e.which==R.FE.KEYCODE.F10&&!t&&!e.shiftKey&&e.altKey){f.shared.with_kb=!0;var n=f.popups.areVisible(f),r=!1;return n&&(r=h(n.children().not(".fr-buttons"))),r||s(),f.shared.with_kb=!1,e.preventDefault(),e.stopPropagation(),!1}return!0}var y=!0;return{_init:function(){f.$wp?f.events.on("keydown",e,!0):f.events.$on(f.$
18win,"keydown",e,!0),f.events.on("mousedown",function(e){i(f),f.shared.$f_el&&(f.accessibility.restoreSelection(),e.stopPropagation(),f.events.disableBlur(),f.shared.$f_el=null)},!0),f.events.on("blur",function(){f.shared.$f_el=null,i(f)},!0)},registerPopup:function(e){var u,c,t=f.popups.get(e),n=(u=e,c=f.popups.get(u),{_tiKeydown:function(e){var t=c.data("instance")||f;if(!1===t.events.trigger("popup.tab",[e]))return!1;var n=e.which,r=c.find(":focus:first");if(R.FE.KEYCODE.TAB==n){e.preventDefault();var i=c.children().not(".fr-buttons"),o=i.find("input, textarea, button, select").filter(":visible").not(".fr-no-touch input, .fr-no-touch textarea, .fr-no-touch button, .fr-no-touch select, :disabled").toArray(),s=o.indexOf(this)+(e.shiftKey?-1:1);if(0<=s&&s<o.length)return t.events.disableBlur(),R(o[s]).focus(),e.stopPropagation(),!1;var a=c.find(".fr-buttons");if(a.length&&d(a,!!e.shiftKey))return e.stopPropagation(),!1;if(h(i))return e.stopPropagation(),!1}else{if(R.FE.KEYCODE.ENTER!=n||!e.target||"TEXTAREA"===e.target.tagName)return R.FE.KEYCODE.ESC==n?(e.preventDefault(),e.stopPropagation(),t.accessibility.restoreSelection(),t.popups.isVisible(u)&&c.find(".fr-back:visible").length?(t.opts.toolbarInline&&(t.events.disableBlur(),t.events.focus()),t.button.exec(c.find(".fr-back:visible:first")),v(c)):t.popups.isVisible(u)&&c.find(".fr-dismiss:visible").length?t.button.exec(c.find(".fr-dismiss:visible:first")):(t.popups.hide(u),t.opts.toolbarInline&&t.toolbar.showInline(null,!0),v(c)),!1):R.FE.KEYCODE.SPACE==n&&(r.is(".fr-submit")||r.is(".fr-dismiss"))?(e.preventDefault(),e.stopPropagation(),t.events.disableBlur(),t.button.exec(r),!0):t.keys.isBrowserAction(e)?void e.stopPropagation():r.is("input[type=text], textarea")?void e.stopPropagation():R.FE.KEYCODE.SPACE==n&&(r.is(".fr-link-attr")||r.is("input[type=file]"))?void e.stopPropagation():(e.stopPropagation(),e.preventDefault(),!1);var l=null;0<c.find(".fr-submit:visible").length?l=c.find(".fr-submit:visible:first"):c.find(".fr-dismiss:visible").length&&(l=c.find(".fr-dismiss:visible:first")),l&&(e.preventDefault(),e.stopPropagation(),t.events.disableBlur(),t.button.exec(l))}},_tiMouseenter:function(){i(c.data("instance")||f)}});r(t.find(".fr-buttons")),f.events.$on(t,"mouseenter","tabIndex",n._tiMouseenter,!0),f.events.$on(t.children().not(".fr-buttons"),"keydown","[tabIndex]",n._tiKeydown,!0),f.popups.onHide(e,function(){(t.data("instance")||f).accessibility.restoreSelection()}),f.popups.onShow(e,function(){y=!1,setTimeout(function(){y=!0},0)})},registerToolbar:r,focusToolbarElement:a,focusToolbar:d,focusContent:h,focusPopup:function(r){var i=r.children().not(".fr-buttons");i.data("mouseenter-event-set")||(f.events.$on(i,"mouseenter","[tabIndex]",function(e){var t=r.data("instance")||f;if(!y)return e.stopPropagation(),void e.preventDefault();var n=i.find(":focus:first");n.length&&!n.is("input, button, textarea, select")&&(t.events.disableBlur(),n.blur(),t.events.disableBlur(),t.events.focus())}),i.data("mouseenter-event-set",!0)),!h(i)&&f.shared.with_kb&&d(r.find(".fr-buttons"))},focusModal:function(e){f.core.hasFocus()||(f.events.disableBlur(),f.events.focus()),f.accessibility.saveSelection(),f.events.disableBlur(),f.$el.blur(),f.selection.clear(),f.events.disableBlur(),f.shared.with_kb?e.find(".fr-command[tabIndex], [tabIndex]").first().focus():e.find("[tabIndex]:first").focus()},focusEditor:m,focusPopupButton:v,focusModalButton:function(e){var t=e.data("modal-button");t&&setTimeout(function(){a(t),e.data("modal-button",null)},0)},hasFocus:function(){return null!=f.shared.$f_el},exec:function(e,t){var n=-1!=navigator.userAgent.indexOf("Mac OS X")?e.metaKey:e.ctrlKey,r=e.which,i=!1;return r!=R.FE.KEYCODE.TAB||n||e.shiftKey||e.altKey?r!=R.FE.KEYCODE.ARROW_RIGHT||n||e.shiftKey||e.altKey?r!=R.FE.KEYCODE.TAB||n||!e.shiftKey||e.altKey?r!=R.FE.KEYCODE.ARROW_LEFT||n||e.shiftKey||e.altKey?r!=R.FE.KEYCODE.ARROW_UP||n||e.shiftKey||e.altKey?r!=R.FE.KEYCODE.ARROW_DOWN||n||e.shiftKey||e.altKey?r!=R.FE.KEYCODE.ENTER&&r!=R.FE.KEYCODE.SPACE||n||e.shiftKey||e.altKey?r!=R.FE.KEYCODE.ESC||n||e.shiftKey||e.altKey?r!=R.FE.KEYCODE.F10||n||e.shiftKey||!e.altKey||(i=s()):i=function(e){if(f.shared.$f_el){var t=l();return t?(f.button.click(t),a(t)):e.parent().find(".fr-back:visible").length?(f.shared.with_kb=!1,f.opts.toolbarInline&&(f.events.disableBlur(),f.events.focus()),f.button.exec(e.parent().find(".fr-back:visible:first")),v(e.parent())):f.shared.$f_el.is("button, .fr-group span")&&(e.parent().is(".fr
18-popup")?(f.accessibility.restoreSelection(),f.shared.$f_el=null,!1!==f.events.trigger("toolbar.esc")&&(f.popups.hide(e.parent()),f.opts.toolbarInline&&f.toolbar.showInline(null,!0),v(e.parent()))):m()),!1}}(t):i=g():i=f.shared.$f_el&&f.shared.$f_el.is(".fr-dropdown:not(.fr-active)")?g():p(!0):i=p():i=c(t):i=c(t,!0):i=u(t):i=u(t,!0),f.shared.$f_el||i!==undefined||(i=!0),!i&&f.keys.isBrowserAction(e)&&(i=!0),!!i||(e.preventDefault(),e.stopPropagation(),!1)},saveSelection:t,restoreSelection:function(){f.$el.find(".fr-marker").length&&(f.events.disableBlur(),f.selection.restore(),f.events.enableBlur())}}},R.FE.MODULES.format=function(g){function l(e,t){var n="<"+e;for(var r in t)t.hasOwnProperty(r)&&(n+=" "+r+'="'+t[r]+'"');return n+">"}function f(e,t){var n=e;for(var r in t)t.hasOwnProperty(r)&&(n+="id"==r?"#"+t[r]:"class"==r?"."+t[r]:"["+r+'="'+t[r]+'"]');return n}function d(e,t){return!(!e||e.nodeType!=Node.ELEMENT_NODE)&&(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}function m(e,t,n){if(e){for(;e.nodeType===Node.COMMENT_NODE;)e=e.nextSibling;if(e){if(g.node.isBlock(e)&&"HR"!==e.tagName)return m(e.firstChild,t,n),!1;for(var r=R(l(t,n)).insertBefore(e),i=e;i&&!R(i).is(".fr-marker")&&0===R(i).find(".fr-marker").length&&"UL"!=i.tagName&&"OL"!=i.tagName;){var o=i;i=i.nextSibling,r.append(o)}if(i)(R(i).find(".fr-marker").length||"UL"==i.tagName||"OL"==i.tagName)&&m(i.firstChild,t,n);else{for(var s=r.get(0).parentNode;s&&!s.nextSibling&&!g.node.isElement(s);)s=s.parentNode;if(s){var a=s.nextSibling;a&&(g.node.isBlock(a)?"HR"===a.tagName?m(a.nextSibling,t,n):m(a.firstChild,t,n):m(a,t,n))}}r.is(":empty")&&r.remove()}}}function n(e,t){var n;if(void 0===t&&(t={}),t.style&&delete t.style,g.selection.isCollapsed())g.markers.insert(),g.$el.find(".fr-marker").replaceWith(l(e,t)+R.FE.INVISIBLE_SPACE+R.FE.MARKERS+"</"+e+">"),g.selection.restore();else{var r;g.selection.save(),m(g.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,e,t);do{for(r=g.$el.find(f(e,t)+" > "+f(e,t)),n=0;n<r.length;n++)r[n].outerHTML=r[n].innerHTML}while(r.length);g.el.normalize();var i=g.el.querySelectorAll(".fr-marker");for(n=0;n<i.length;n++){var o=R(i[n]);!0===o.data("type")?d(o.get(0).nextSibling,f(e,t))&&o.next().prepend(o):d(o.get(0).previousSibling,f(e,t))&&o.prev().append(o)}g.selection.restore()}}function v(e,t,n,r){if(!r){var i=!1;if(!0===e.data("type"))for(;g.node.isFirstSibling(e.get(0))&&!e.parent().is(g.$el)&&!e.parent().is("ol")&&!e.parent().is("ul");)e.parent().before(e),i=!0;else if(!1===e.data("type"))for(;g.node.isLastSibling(e.get(0))&&!e.parent().is(g.$el)&&!e.parent().is("ol")&&!e.parent().is("ul");)e.parent().after(e),i=!0;if(i)return!0}if(e.parents(t).length||void 0===t){var o="",s="",a=e.parent();if(a.is(g.$el)||g.node.isBlock(a.get(0)))return!1;for(;!g.node.isBlock(a.parent().get(0))&&(void 0===t||void 0!==t&&!d(a.get(0),f(t,n)));)o+=g.node.closeTagString(a.get(0)),s=g.node.openTagString(a.get(0))+s,a=a.parent();var l=e.get(0).outerHTML;e.replaceWith('<span id="mark"></span>');var u=a.html().replace(/<span id="mark"><\/span>/,o+g.node.closeTagString(a.get(0))+s+l+o+g.node.openTagString(a.get(0))+s);return a.replaceWith(g.node.openTagString(a.get(0))+u+g.node.closeTagString(a.get(0))),!0}return!1}function r(e,t){void 0===t&&(t={}),t.style&&delete t.style;var n=g.selection.isCollapsed();g.selection.save();for(var r=!0;r;){r=!1;for(var i=g.$el.find(".fr-marker"),o=0;o<i.length;o++){var s=R(i[o]),a=null;if(s.attr("data-cloned")||n||(a=s.clone().removeClass("fr-marker").addClass("fr-clone"),!0===s.data("type")?s.attr("data-cloned",!0).after(a):s.attr("data-cloned",!0).before(a)),v(s,e,t,n)){r=!0;break}}}!function c(e,t,n,r){for(var i=g.node.contents(e.get(0)),o=0;o<i.length;o++){var s=i[o];if(g.node.hasClass(s,"fr-marker"))t=(t+1)%2;else if(t)if(0<R(s).find(".fr-marker").length)t=c(R(s),t,n,r);else{for(var a=R(s).find(n||"*:not(a):not(br)"),l=a.length-1;0<=l;l--){var u=a[l];g.node.isBlock(u)||g.node.isVoid(u)||void 0!==n&&!d(u,f(n,r))?g.node.isBlock(u)&&void 0===n&&"TABLE"!=s.tagName&&g.node.clearAttributes(u):g.node.hasClass(u,"fr
18-clone")||(u.outerHTML=u.innerHTML)}void 0===n&&s.nodeType==Node.ELEMENT_NODE&&!g.node.isVoid(s)||d(s,f(n,r))?R(s).replaceWith(s.innerHTML):void 0===n&&s.nodeType==Node.ELEMENT_NODE&&g.node.isBlock(s)&&"TABLE"!=s.tagName&&g.node.clearAttributes(s)}else 0<R(s).find(".fr-marker").length&&(t=c(R(s),t,n,r))}return t}(g.$el,0,e,t),n||(g.$el.find(".fr-marker").remove(),g.$el.find(".fr-clone").removeClass("fr-clone").addClass("fr-marker")),n&&g.$el.find(".fr-marker").before(R.FE.INVISIBLE_SPACE).after(R.FE.INVISIBLE_SPACE),g.html.cleanEmptyTags(),g.el.normalize(),g.selection.restore()}function t(e,t){var n,r,i,o,s,a=null;if(g.selection.isCollapsed()){g.markers.insert();var l=(r=g.$el.find(".fr-marker")).parent();if(g.node.openTagString(l.get(0))=='<span style="'+e+": "+l.css(e)+';">'){if(g.node.isEmpty(l.get(0)))a=R('<span style="'+e+": "+t+';">'+R.FE.INVISIBLE_SPACE+R.FE.MARKERS+"</span>"),l.replaceWith(a);else{var u={};u["style*"]=e+":",v(r,"span",u,!0),r=g.$el.find(".fr-marker"),t?(a=R('<span style="'+e+": "+t+';">'+R.FE.INVISIBLE_SPACE+R.FE.MARKERS+"</span>"),r.replaceWith(a)):r.replaceWith(R.FE.INVISIBLE_SPACE+R.FE.MARKERS)}g.html.cleanEmptyTags()}else g.node.isEmpty(l.get(0))&&l.is("span")?(r.replaceWith(R.FE.MARKERS),l.css(e,t)):(a=R('<span style="'+e+": "+t+';">'+R.FE.INVISIBLE_SPACE+R.FE.MARKERS+"</span>"),r.replaceWith(a));a&&y(a,e,t)}else{if(g.selection.save(),null==t||"color"==e&&0<g.$el.find(".fr-marker").parents("u, a").length){var c=g.$el.find(".fr-marker");for(n=0;n<c.length;n++)if(!0===(r=R(c[n])).data("type"))for(;g.node.isFirstSibling(r.get(0))&&!r.parent().is(g.$el)&&!g.node.isElement(r.parent().get(0))&&!g.node.isBlock(r.parent().get(0));)r.parent().before(r);else for(;g.node.isLastSibling(r.get(0))&&!r.parent().is(g.$el)&&!g.node.isElement(r.parent().get(0))&&!g.node.isBlock(r.parent().get(0));)r.parent().after(r)}var f=g.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,d={"class":"fr-unprocessed"};for(t&&(d.style=e+": "+t+";"),m(f,"span",d),g.$el.find(".fr-marker + .fr-unprocessed").each(function(){R(this).prepend(R(this).prev())}),g.$el.find(".fr-unprocessed + .fr-marker").each(function(){R(this).prev().append(this)}),(t||"").match(/\dem$/)&&g.$el.find("span.fr-unprocessed").removeClass("fr-unprocessed");0<g.$el.find("span.fr-unprocessed").length;){if((a=g.$el.find("span.fr-unprocessed:first").removeClass("fr-unprocessed")).parent().get(0).normalize(),a.parent().is("span")&&1==a.parent().get(0).childNodes.length){a.parent().css(e,t);var h=a;a=a.parent(),h.replaceWith(h.html())}var p=a.find("span");for(n=p.length-1;0<=n;n--)i=p[n],o=e,s=void 0,(s=R(i)).css(o,""),""===s.attr("style")&&s.replaceWith(s.html());y(a,e,t)}}!function(){for(var e;0<g.$el.find(".fr-split:empty").length;)g.$el.find(".fr-split:empty").remove();g.$el.find(".fr-split").removeClass("fr-split"),g.$el.find('[style=""]').removeAttr("style"),g.$el.find('[class=""]').removeAttr("class"),g.html.cleanEmptyTags(),R(g.$el.find("span").get().reverse()).each(function(){this.attributes&&0!==this.attributes.length||R(this).replaceWith(this.innerHTML)}),g.el.normalize();var t=g.$el.find("span[style] + span[style]");for(e=0;e<t.length;e++){var n=R(t[e]),r=R(t[e]).prev();n.get(0).previousSibling==r.get(0)&&g.node.openTagString(n.get(0))==g.node.openTagString(r.get(0))&&(n.prepend(r.html()),r.remove())}g.$el.find("span[style] span[style]").each(function(){if(0<=R(this).attr("style").indexOf("font-size")){var e=R(this).parents("span[style]");0<=e.attr("style").indexOf("background-color")&&(R(this).attr("style",R(this).attr("style")+";"+e.attr("style")),v(R(this),"span[style]",{},!1))}}),g.el.normalize(),g.selection.restore()}()}function y(e,t,n){var r,i,o,s=e.parentsUntil(g.$el,"span[style]"),a=[];for(r=s.length-1;0<=r;r--)i=s[r],o=t,0===R(i).attr("style").indexOf(o+":")||0<=R(i).attr("style").indexOf(";"+o+":")||0<=R(i).attr("style").indexOf("; "+o+":")||a.push(s[r]);if((s=s.not(a)).length){for(var l="",u="",c="",f="",d=e.get(0);d=d.parentNode,R(d).addClass("fr-split"),l+=g.node.closeTagString(d),u=g.node.openTagString(R(d).clone().addClass("fr-split").get(0))+u,s.get(0)!=d&&(c+=g.node.closeTagString(d),f=g.node.openTagString(R(d).clone().addClass("fr-split").get(0))+f),s.get(0)!=d;);
18var h=l+g.node.openTagString(R(s.get(0)).clone().css(t,n||"").get(0))+f+e.css(t,"").get(0).outerHTML+c+"</span>"+u;e.replaceWith('<span id="fr-break"></span>');var p=s.get(0).outerHTML;R(s.get(0)).replaceWith(p.replace(/<span id="fr-break"><\/span>/g,h))}}function i(e,t){void 0===t&&(t={}),t.style&&delete t.style;var n=g.selection.ranges(0),r=n.startContainer;if(r.nodeType==Node.ELEMENT_NODE&&0<r.childNodes.length&&r.childNodes[n.startOffset]&&(r=r.childNodes[n.startOffset]),!n.collapsed&&r.nodeType==Node.TEXT_NODE&&n.startOffset==(r.textContent||"").length){for(;!g.node.isBlock(r.parentNode)&&!r.nextSibling;)r=r.parentNode;r.nextSibling&&(r=r.nextSibling)}for(var i=r;i&&i.nodeType==Node.ELEMENT_NODE&&!d(i,f(e,t));)i=i.firstChild;if(i&&i.nodeType==Node.ELEMENT_NODE&&d(i,f(e,t)))return!0;var o=r;for(o&&o.nodeType!=Node.ELEMENT_NODE&&(o=o.parentNode);o&&o.nodeType==Node.ELEMENT_NODE&&o!=g.el&&!d(o,f(e,t));)o=o.parentNode;return!(!o||o.nodeType!=Node.ELEMENT_NODE||o==g.el||!d(o,f(e,t)))}return{is:i,toggle:function(e,t){i(e,t)?r(e,t):n(e,t)},apply:n,remove:r,applyStyle:t,removeStyle:function(e){t(e,null)}}},R.extend(R.FE.DEFAULTS,{indentMargin:20}),R.FE.COMMANDS={bold:{title:"Bold",toggle:!0,refresh:function(e){var t=this.format.is("strong");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},italic:{title:"Italic",toggle:!0,refresh:function(e){var t=this.format.is("em");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},underline:{title:"Underline",toggle:!0,refresh:function(e){var t=this.format.is("u");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},strikeThrough:{title:"Strikethrough",toggle:!0,refresh:function(e){var t=this.format.is("s");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},subscript:{title:"Subscript",toggle:!0,refresh:function(e){var t=this.format.is("sub");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},superscript:{title:"Superscript",toggle:!0,refresh:function(e){var t=this.format.is("sup");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},outdent:{title:"Decrease Indent"},indent:{title:"Increase Indent"},undo:{title:"Undo",undo:!1,forcedRefresh:!0,disabled:!0},redo:{title:"Redo",undo:!1,forcedRefresh:!0,disabled:!0},insertHR:{title:"Insert Horizontal Line"},clearFormatting:{title:"Clear Formatting"},selectAll:{title:"Select All",undo:!1}},R.FE.RegisterCommand=function(e,t){R.FE.COMMANDS[e]=t},R.FE.MODULES.commands=function(s){function i(e){return s.html.defaultTag()&&(e="<"+s.html.defaultTag()+">"+e+"</"+s.html.defaultTag()+">"),e}function t(e,t){if(!1!==s.events.trigger("commands.before",R.merge([e],t||[]))){var n=R.FE.COMMANDS[e]&&R.FE.COMMANDS[e].callback||o[e],r=!0,i=!1;R.FE.COMMANDS[e]&&("undefined"!=typeof R.FE.COMMANDS[e].focus&&(r=R.FE.COMMANDS[e].focus),"undefined"!=typeof R.FE.COMMANDS[e].accessibilityFocus&&(i=R.FE.COMMANDS[e].accessibilityFocus)),(!s.core.hasFocus()&&r&&!s.popups.areVisible()||!s.core.hasFocus()&&i&&s.accessibility.hasFocus())&&s.events.focus(!0),R.FE.COMMANDS[e]&&!1!==R.FE.COMMANDS[e].undo&&(s.$el.find(".fr-marker").length&&(
19s.events.disableBlur(),s.selection.restore()),s.undo.saveStep()),n&&n.apply(s,R.merge([e],t||[])),s.events.trigger("commands.after",R.merge([e],t||[])),R.FE.COMMANDS[e]&&!1!==R.FE.COMMANDS[e].undo&&s.undo.saveStep()}}function e(e,t){s.format.toggle(t)}function n(e){s.selection.save(),s.html.wrap(!0,!0,!0,!0),s.selection.restore();for(var t=s.selection.blocks(),n=0;n<t.length;n++)if("LI"!=t[n].tagName&&"LI"!=t[n].parentNode.tagName){var r=R(t[n]),i="rtl"==s.opts.direction||"rtl"==r.css("direction")?"margin-right":"margin-left",o=s.helpers.getPX(r.css(i));if(r.width()<2*s.opts.indentMargin&&0<e)continue;r.css(i,Math.max(o+e*s.opts.indentMargin,0)||""),r.removeClass("fr-temp-div")}s.selection.save(),s.html.unwrap(),s.selection.restore()}function r(e){return function(){t(e)}}var o={bold:function(){e("bold","strong")},subscript:function(){s.format.is("sup")&&s.format.remove("sup"),e("subscript","sub")},superscript:function(){s.format.is("sub")&&s.format.remove("sub"),e("superscript","sup")},italic:function(){e("italic","em")},strikeThrough:function(){e("strikeThrough","s")},underline:function(){e("underline","u")},undo:function(){s.undo.run()},redo:function(){s.undo.redo()},indent:function(){n(1)}
19,outdent:function(){n(-1)},show:function(){s.opts.toolbarInline&&s.toolbar.showInline(null,!0)},insertHR:function(){s.selection.remove();var e="";s.core.isEmpty()&&(e=i(e="<br>")),s.html.insert('<hr id="fr-just">'+e);var t,n=s.$el.find("hr#fr-just");if(n.removeAttr("id"),0===n.next().length){var r=s.html.defaultTag();r?n.after(R("<"+r+">").append("<br>")):n.after("<br>")}n.prev().is("hr")?t=s.selection.setAfter(n.get(0),!1):n.next().is("hr")?t=s.selection.setBefore(n.get(0),!1):s.selection.setAfter(n.get(0),!1)||s.selection.setBefore(n.get(0),!1),t||void 0===t||(e=i(e=R.FE.MARKERS+"<br>"),n.after(e)),s.selection.restore()},clearFormatting:function(){s.format.remove()},selectAll:function(){s.doc.execCommand("selectAll",!1,!1)}},a={};for(var l in o)o.hasOwnProperty(l)&&(a[l]=r(l));return R.extend(a,{exec:t,_init:function(){s.events.on("keydown",function(e){var t=s.selection.element();if(t&&"HR"==t.tagName&&!s.keys.isArrow(e.which))return e.preventDefault(),!1}),s.events.on("keyup",function(e){var t=s.selection.element();if(t&&"HR"==t.tagName)if(e.which==R.FE.KEYCODE.ARROW_LEFT||e.which==R.FE.KEYCODE.ARROW_UP){if(t.previousSibling)return s.node.isBlock(t.previousSibling)?s.selection.setAtEnd(t.previousSibling):R(t).before(R.FE.MARKERS),s.selection.restore(),!1}else if((e.which==R.FE.KEYCODE.ARROW_RIGHT||e.which==R.FE.KEYCODE.ARROW_DOWN)&&t.nextSibling)return s.node.isBlock(t.nextSibling)?s.selection.setAtStart(t.nextSibling):R(t).after(R.FE.MARKERS),s.selection.restore(),!1}),s.events.on("mousedown",function(e){if(e.target&&"HR"==e.target.tagName)return e.preventDefault(),e.stopPropagation(),!1}),s.events.on("mouseup",function(){var e=s.selection.element();e==s.selection.endElement()&&e&&"HR"==e.tagName&&(e.nextSibling&&(s.node.isBlock(e.nextSibling)?s.selection.setAtStart(e.nextSibling):R(e).after(R.FE.MARKERS)),s.selection.restore())})}})},R.FE.MODULES.data=function(f){function d(e){return e}function u(e){for(var t=e.toString(),n=0,r=0;r<t.length;r++)n+=parseInt(t.charAt(r),10);return 10<n?n%9+1:n}function h(e,t,n){for(var r=Math.abs(n);0<r--;)e-=t;return n<0&&(e+=123),e}function p(e){return!(!e||"block"===e.css("display")||(e.remove(),0))}function g(e){return e&&0===f.$box.find(e).length}function m(){if(10<e&&(f[d(S("0ppecjvc=="))](),setTimeout(function(){R.FE=null},10)),!f.$box)return!1;f.$wp.prepend(S(d(S(E)))),y=f.$wp.find("> div:first"),b=y.find("> a"),"rtl"==f.opts.direction&&y.css("left","auto").css("right",0).attr("direction","rtl"),e++}function v(e){for(var t=[S("9qqG-7amjlwq=="),S("KA3B3C2A6D1D5H5H1A3=="),S("3B9B3B5F3C4G3E3=="),S("QzbzvxyB2yA-9m=="),S("ji1kacwmgG5bc=="),S("nmA-13aogi1A3c1jd==")],n=0;n<t.length;n++)if(String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(t===undefined||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),e.endsWith(t[n]))return!0;return!1}var y,b,E="NCKB1zwtPA9tqzajXC2c2A7B-16VD3spzJ1C9C3D5oOF2OB1NB1LD7VA5QF4TE3gytXB2A4C-8VA2AC4E1D3GB2EB2KC3KD1MF1juuSB1A8C6yfbmd1B2a1A5qdsdB2tivbC3CB1KC1CH1eLA2sTF1B4I4H-7B-21UB6b1F5bzzzyAB4JC3MG2hjdKC1JE6C1E1cj1pD-16pUE5B4prra2B5ZB3D3C3pxj1EA6A3rnJA2C-7I-7JD9D1E1wYH1F3sTB5TA2G4H4ZA22qZA5BB3mjcvcCC3JB1xillavC-21VE6PC5SI4YC5C8mb1A3WC3BD2B5aoDA2qqAE3A5D-17fOD1D5RD4WC10tE6OAZC3nF-7b1C4A4D3qCF2fgmapcromlHA2QA6a1E1D3e1A6C2bie2F4iddnIA7B2mvnwcIB5OA1DB2OLQA3PB10WC7WC5d1E3uI-7b1D5D6b1E4D2arlAA4EA1F-11srxI-7MB1D7PF1E5B4adB-21YD5vrZH3D3xAC4E1A2GF2CF2J-7yNC2JE1MI2hH-7QB1C6B5B-9bA-7XB13a1B5VievwpKB4LA3NF-10H-9I-8hhaC-16nqPG4wsleTD5zqYF3h1G2B7B4yvGE2Pi1H-7C-21OE6B1uLD1kI4WC1E7C5g1D-8fue1C8C6c1D4D3Hpi1CC4kvGC2E1legallyXB4axVA11rsA4A-9nkdtlmzBA2GD3A13A6CB1dabE1lezrUE6RD5TB4A-7f1C8c1B5d1D4D3tyfCD5C2D2==",T=function(){for(var e=0,t=document.domain,n=t.split("."),r="_gd"+(new Date).getTime();e<n.length-1&&-1==document.cookie.indexOf(r+"="+r);)t=n.slice(-1-++e).join("."),document.cookie=r+"="+r+";domain="+t+";";return document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+t+";",(t||"").replace(/(^\.*)|(\.*$)/g,"")}(),S=d(function(e){if(!e)return e;for(var t="",n=d("charCodeAt"),r=d("fromCharCode"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".indexOf(e[0]),o=1;o<e.length-2;o++){for(var s=u(++i),a=e[n](o),l="";/[0-9-]/.test(e[o+1]);)l+=e[++o];a=h(a,s,l=parseInt(l,10)||0),a^=i-1&31,t+=String[r](a)}return t}),e=0;return{_init:function(){var e=f.o_win.FEK;try{e=e||localStorage&&localStorage.FEK}catch(h){}e=f.opts.key||e||[""];var t=S(d("ziRA1E3B9pA5B-11D-11xg1A3ZB5D1D4B-11ED2EG2pdeoC1clIH4wB-22yQD5uF4YE3E3A9=="));"string"==typeof e&&(e=[e]);for(var n,r,i,o=!(f.ul=!0),s=0,a=0;a<e.length;a++){var l=(r=e[a],3===(i=(S(r)||"").split("|")).length?i:[null,null,S(r)||""]),u=l[2];if(u===S(d(S("mcVRDoB1BGILD7YFe1BTXBA7B6==")))||0<=u.indexOf(T,u.length-T.length)||v(T)){if(!((null===(n=l[1])||new Date(n)<new Date(S("lC4B3B3D4B5A1E1E4I1A1==")))&&0<(T||"").length)||v(T)){f.ul=!1;break}o=!0,E="RCZB17botVG4A-8yzia1C4A5DG3CD2cFB4qflmCE4I2FB1SC7F6PE4WE3RD6e2A4c1D3d1E2E3ehxdGE3CE2IB2LC1HG2LE1QA3QC7B-13cC-9epmkjc1B4e1C4pgjgvkOC5E1eNE1HB2LD2B-13WD5tvabUA5a1A4f1A2G3C2A-21cihKE3FE2DB2cccJE1iC-7G-7tD-17tVD6A-9qC-7QC7a1E4B4je1E3E2G2ecmsAA1xH-8HB11C1D1lgzQA3dTB8od1D4XE3ohb1B4E4D3mbLA10NA7C-21d1genodKC11PD9PE5tA-8
19UI3ZC5XB5B-11qXF2F-7wtwjAG3NA1IB1OD1HC1RD4QJ4evUF2D5XG2G4XA8pqocH1F3G2J2hcpHC4D1MD4C1MB8PD5klcQD1A8A6e2A3ed1E2A24A7HC5C3qA-9tiA-61dcC3MD1LE1D4SA3A9ZZXSE4g1C3Pa2C5ufbcGI3I2B4skLF2CA1vxB-22wgUC4kdH-8cVB5iwe1A2D3H3G-7DD5JC2ED2OH2JB10D3C2xHE1KA29PB11wdC-11C4cixb2C7a1C4YYE3B2A15uB-21wpCA1MF1NuC-21dyzD6pPG4I-7pmjc1A4yte1F3B-22yvCC3VbC-7qC-22qNE2hC1vH-8zad1RF6WF3DpI-7C8A-16hpf1F3D2ylalB-13BB2lpA-63IB3uOF6D5G4gabC-21UD2A3PH4ZA20B11b2C6ED4A2H3I1A15DB4KD2laC-8LA5B8B7==",s=l[0]||-1}}var c=new Image;!0===f.ul&&(m(),c.src=o?d(S(t))+"e="+s:d(S(t))+"u"),!0===f.ul&&f.events.on("contentChanged",function(){(p(y)||p(b)||g(y)||g(b))&&m()}),f.events.on("destroy",function(){y&&y.length&&y.remove()},!0)}}},R.extend(R.FE.DEFAULTS,{pastePlain:!1,pasteDeniedTags:["colgroup","col","meta"],pasteDeniedAttrs:["class","id","style"],pasteAllowedStyleProps:[".*"],pasteAllowLocalImages:!1}),R.FE.MODULES.paste=function(b){function n(e,t){try{b.win.localStorage.setItem("fr-copied-html",e),b.win.localStorage.setItem("fr-copied-text",t)}catch(n){}}function e(e){var t=b.html.getSelected();n(t,R("<div>").html(t).text()),"cut"==e.type&&(b.undo.saveStep(),setTimeout(function(){b.selection.save(),b.html.wrap(),b.selection.restore(),b.events.focus(),b.undo.saveStep()},0))}function t(e){if(f)return!1;if(e.originalEvent&&(e=e.originalEvent),!1===b.events.trigger("paste.before",[e]))return e.preventDefault(),!1;if(b.$win.scrollTop(),e&&e.clipboardData&&e.clipboardData.getData){var t="",n=e.clipboardData.types;if(b.helpers.isArray(n))for(var r=0;r<n.length;r++)t+=n[r]+";";else t=n;if(a="",/text\/rtf/.test(t)&&(u=e.clipboardData.getData("text/rtf")),/text\/html/.test(t)&&!b.browser.safari?a=e.clipboardData.getData("text/html"):/text\/rtf/.test(t)&&b.browser.safari?a=u:/public.rtf/.test(t)&&b.browser.safari&&(a=e.clipboardData.getData("text/rtf")),""!==a)return s(),e.preventDefault&&(e.stopPropagation(),e.preventDefault()),!1;a=null}return b.selection.save(),b.events.disableBlur(),a=null,c?(c.html(""),b.browser.edge&&b.opts.iframe&&b.$el.append(c)):(c=R('<div contenteditable="true" style="position: fixed; top: 0; left: -9999px; height: 100%; width: 0; word-break: break-all; overflow:hidden; z-index: 2147483647; line-height: 140%; -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; user-select: text;" tabIndex="-1"></div>'),b.browser.webkit?(c.css("top",b.$sc.scrollTop()),b.$el.after(c)):b.browser.edge&&b.opts.iframe?b.$el.append(c):b.$box.after(c),b.events.on("destroy",function(){c.remove()})),c.focus(),b.win.setTimeout(s,1),!1}function r(e){if(e.originalEvent&&(e=e.originalEvent),e&&e.dataTransfer&&e.dataTransfer.getData){var t="",n=e.dataTransfer.types;if(b.helpers.isArray(n))for(var r=0;r<n.length;r++)t+=n[r]+";";else t=n;if(a="",/text\/rtf/.test(t)&&(u=e.dataTransfer.getData("text/rtf")),/text\/html/.test(t)?a=e.dataTransfer.getData("text/html"):/text\/rtf/.test(t)&&b.browser.safari?a=u:/text\/plain/.test(t)&&!this.browser.mozilla&&(a=b.html.escapeEntities(e.dataTransfer.getData("text/plain")).replace(/\n/g,"<br>")),""!==a){b.keys.forceUndo(),S=b.snapshot.get(),b.selection.save(),b.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-helper");var i=b.markers.insertAtPoint(e);if(b.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-placeholder"),b.$el.find(".fr-marker-helper").addClass("fr-marker").removeClass("fr-marker-helper"),b.selection.restore(),b.selection.remove(),b.$el.find(".fr-marker-placeholder").addClass("fr-marker").removeClass("fr-marker-placeholder"),!1!==i){var o=b.el.querySelector(".fr-marker");return R(o).replaceWith(R.FE.MARKERS),b.selection.restore(),s(),e.preventDefault&&(e.stopPropagation(),e.preventDefault()),!1}}else a=null}}function s(){b.browser.edge&&b.opts.iframe&&b.$box.after(c),S||(b.keys.forceUndo(),S=b.snapshot.get()),a||(a=c.get(0).innerHTML,b.selection.restore(),b.events.enableBlur());var e=a.match(/(class=\"?Mso|class=\'?Mso|class="?Xl|class='?Xl|class=Xl|style=\"[^\"]*\bmso\-|style=\'[^\']*\bmso\-|w:WordDocument)/gi),t=b.events.chainTrigger("paste.beforeCleanup",a);t&&"string"==typeof t&&(a=t),(!e||e&&!1!==b.events.trigger("paste.wordPaste",[a]))&&i(a,e)}function E(e){for(var t="",n=0;n++<e;)t+="&nbsp;";return t}function i(e,t,n){var r,i=null,o=null;if(0<=e.toLowerCase().indexOf("<body")){var s="";0<=e.indexOf("<style")&&(s=e.replace(/[.\s\S\w\W<>]*(<style[^>]*>[\s]*[.\s\S\w\W<>]*[\s]*<\/style>)[.\s\S\w\W<>]*/gi,"$1")),e=(e=s+e.replace(/[.\s\S\w\W<>]*<body[^>]*>[\s]*([.\s\S\w\W<>]*)[\s]*<\/body>[.\s\S\w\W<>]*/gi,"$1")).replace(/ \n/g," ").replace(/\n /g," ").replace(/([^>])\n([^<])/g,"$1 $2")}var a=!1;0<=e.indexOf('id="docs-internal-guid')&&(e=e.replace(/^[\w\W\s\S]* id="docs-internal-guid[^>]*>([\w\W\s\S]*)<\/b>[\w\W\s\S]*$/g,"$1"),a=!0),0<=e.indexOf('content="Sheets"')&&(e=e.replace(/width:0px;/g,""));var l=!1;if(!t&&((l=function(e){var t=null;try{t=b.win.localStorage.getItem("fr-copied-text")}catch(n){}return!(!t||R("<div>").html(e).text().replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")!=t.replace(/\u00A0/gi," ").replace(/\r|\n/gi,""))}(e))&&(e=b.win.localStorage.getItem("fr-copied-html")),!l)){var u=b.opts.htmlAllowedStyleProps;b.opts.htmlAllowedStyleProps=b.opts.pasteAllowedStyleProps,b.opts.htmlAllowComments=!1,e=(e=(e=e.replace(/<span class="Apple-tab-span">\s*<\/span>/g,E(b.opts.tabSpaces||4))).replace(/<span class="Apple-tab-span" style="white-space:pre">(\t*)<\/span>/g,function(e,t){return E(t.length*(b.opts.tabSpaces||4))})).replace(/\t/g,E(b.opts.tabSpaces||4)),e=b.clean.html(e,b.opts.pasteDeniedTags,b.opts.pasteDeniedAttrs),b.opts.htmlAllowedStyleProps=u,b.opts.htmlAllowComments=!0,e=(e=(e=T(e)).replace(/\r/g,"")).replace(/^ */g,"").replace(/ *$/g,"")}
19!t||b.wordPaste&&n||(0===(e=e.replace(/^\n*/g,"").replace(/^ /g,"")).indexOf("<colgroup>")&&(e="<table>"+e+"</table>"),e=T(e=function(e){var t;e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p(.*?)class="?'?MsoListParagraph"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li>$3</li></ul>")).replace(/<p(.*?)class="?'?NumberedText"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li>$3</li></ol>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li$3>$5</li>")).replace(/<p(.*?)class="?'?NumberedTextCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?NumberedTextCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListBullet"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ul>")).replace(/<p(.*?)class="?'?NumberedTextCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ol>")).replace(/<span([^<]*?)style="?'?mso-list:Ignore"?'?([\s\S]*?)>([\s\S]*?)<span/gi,"<span><span")).replace(/<!--\[if \!supportLists\]-->([\s\S]*?)<!--\[endif\]-->/gi,"")).replace(/<!\[if \!supportLists\]>([\s\S]*?)<!\[endif\]>/gi,"")).replace(/(\n|\r| class=(")?Mso[a-zA-Z0-9]+(")?)/gi," ")).replace(/<!--[\s\S]*?-->/gi,"")).replace(/<(\/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>
19/gi,"");var n,r=["style","script","applet","embed","noframes","noscript"];for(t=0;t<r.length;t++){var i=new RegExp("<"+r[t]+".*?"+r[t]+"(.*?)>","gi");e=e.replace(i,"")}for(e=(e=(e=e.replace(/&nbsp;/gi," ")).replace(/<td([^>]*)><\/td>/g,"<td$1><br></td>")).replace(/<th([^>]*)><\/th>/g,"<th$1><br></th>");(e=(n=e).replace(/<[^\/>][^>]*><\/[^>]+>/gi,""))!=n;);e=(e=e.replace(/<lilevel([^1])([^>]*)>/gi,'<li data-indent="true"$2>')).replace(/<lilevel1([^>]*)>/gi,"<li$1>"),e=(e=(e=b.clean.html(e,b.opts.pasteDeniedTags,b.opts.pasteDeniedAttrs)).replace(/<a>(.[^<]+)<\/a>/gi,"$1")).replace(/<br> */g,"<br>");var o=b.o_doc.createElement("div");o.innerHTML=e;var s=o.querySelectorAll("li[data-indent]");for(t=0;t<s.length;t++){var a=s[t],l=a.previousElementSibling;if(l&&"LI"==l.tagName){var u=l.querySelector(":scope > ul, :scope > ol");u||(u=document.createElement("ul"),l.appendChild(u)),u.appendChild(a)}else a.removeAttribute("data-indent")}return b.html.cleanBlankSpaces(o),o.innerHTML}(e))),b.opts.pastePlain&&!l&&(e=function(e){var t,n=null,r=b.doc.createElement("div");r.innerHTML=e;var i=r.querySelectorAll("p, div, h1, h2, h3, h4, h5, h6, pre, blockquote");for(t=0;t<i.length;t++)(n=i[t]).outerHTML="<"+(b.html.defaultTag()||"DIV")+">"+n.innerHTML+"</"+(b.html.defaultTag()||"DIV")+">";for(t=(i=r.querySelectorAll("*:not("+"p, div, h1, h2, h3, h4, h5, h6, pre, blockquote, ul, ol, li, table, tbody, thead, tr, td, br, img".split(",").join("):not(")+")")).length-1;0<=t;t--)(n=i[t]).outerHTML=n.innerHTML;var o=function(e){for(var t=b.node.contents(e),n=0;n<t.length;n++)t[n].nodeType!=Node.TEXT_NODE&&t[n].nodeType!=Node.ELEMENT_NODE?t[n].parentNode.removeChild(t[n]):o(t[n])};return o(r),r.innerHTML}(e));var c=b.events.chainTrigger("paste.afterCleanup",e);if("string"==typeof c&&(e=c),""!==e){var f=b.o_doc.createElement("div");0<=(f.innerHTML=e).indexOf("<body>")?(b.html.cleanBlankSpaces(f),b.spaces.normalize(f,!0)):b.spaces.normalize(f);var d=f.getElementsByTagName("span");for(r=d.length-1;0<=r;r--){var h=d[r];0===h.attributes.length&&(h.outerHTML=h.innerHTML)}var p=b.selection.element(),g=!1;if(p&&R(p).parentsUntil(b.el,"ul, ol").length&&(g=!0),g){var m=f.children;1==m.length&&0<=["OL","UL"].indexOf(m[0].tagName)&&(m[0].outerHTML=m[0].innerHTML)}if(!a){var v=f.getElementsByTagName("br");for(r=v.length-1;0<=r;r--){var y=v[r];b.node.isBlock(y.previousSibling)&&y.parentNode.removeChild(y)}}if(b.opts.enter==R.FE.ENTER_BR)for(r=(i=f.querySelectorAll("p, div")).length-1;0<=r;r--)0===(o=i[r]).attributes.length&&(o.outerHTML=o.innerHTML+(o.nextSibling&&!b.node.isEmpty(o)?"<br>":""));else if(b.opts.enter==R.FE.ENTER_DIV)for(r=(i=f.getElementsByTagName("p")).length-1;0<=r;r--)0===(o=i[r]).attributes.length&&(o.outerHTML="<div>"+o.innerHTML+"</div>");else b.opts.enter==R.FE.ENTER_P&&1==f.childNodes.length&&"P"==f.childNodes[0].tagName&&0===f.childNodes[0].attributes.length&&(f.childNodes[0].outerHTML=f.childNodes[0].innerHTML);e=f.innerHTML,l&&(e=function(e){var t,n=b.o_doc.createElement("div");n.innerHTML=e;for(var r=n.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not("+R.FE.VOID_ELEMENTS.join("):not(")+"):not("+b.opts.htmlAllowedEmptyTags.join("):not(")+")");r.length;){for(t=0;t<r.length;t++)r[t].parentNode.removeChild(r[t]);r=n.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not("+R.FE.VOID_ELEMENTS.join("):not(")+"):not("+b.opts.htmlAllowedEmptyTags.join("):not(")+")")}return n.innerHTML}(e)),b.html.insert(e,!0)}b.events.trigger("paste.after"),b.undo.saveStep(S),S=null,b.undo.saveStep()}function l(e){for(var t=e.length-1;0<=t;t--)e[t].attributes&&e[t].attributes.length&&e.splice(t,1);return e}function T(e){var t,n=b.o_doc.createElement("div");n.innerHTML=e;for(var r=l(Array.prototype.slice.call(n.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")));r.length;){var i=r[r.length-1];if(b.html.defaultTag()&&"div"!=b.html.defaultTag())i.querySelector(b.html.blockTagsQuery())?i.outerHTML=i.innerHTML:i.outerHTML="<"+b.html.defaultTag()+">"+i.innerHTML+"</"+b.html.defaultTag()+">";else{var o=i.querySelectorAll("*");!o.length||"BR"!==o[o.length-1].tagName&&0===i.innerText.length?
19i.outerHTML=i.innerHTML+"<br>":i.outerHTML=i.innerHTML}r=l(Array.prototype.slice.call(n.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")))}for(r=l(Array.prototype.slice.call(n.querySelectorAll("div:not([style])")));r.length;){for(t=0;t<r.length;t++){var s=r[t],a=s.innerHTML.replace(/\u0009/gi,"").trim();s.outerHTML=a}r=l(Array.prototype.slice.call(n.querySelectorAll("div:not([style])")))}return n.innerHTML}function o(){b.el.removeEventListener("copy",e),b.el.removeEventListener("cut",e),b.el.removeEventListener("paste",t)}var a,u,c,S,f=!1;return{_init:function(){b.el.addEventListener("copy",e),b.el.addEventListener("cut",e),b.el.addEventListener("paste",t,{capture:!0}),b.events.on("drop",r),b.browser.msie&&b.browser.version<11&&(b.events.on("mouseup",function(e){2==e.button&&(setTimeout(function(){f=!1},50),f=!0)},!0),b.events.on("beforepaste",t)),b.events.on("destroy",o)},cleanEmptyTagsAndDivs:T,getRtfClipboard:function(){return u},saveCopiedText:n,clean:i}},R.extend(R.FE.DEFAULTS,{shortcutsEnabled:[],shortcutsHint:!0}),R.FE.SHORTCUTS_MAP={},R.FE.RegisterShortcut=function(e,t,n,r,i,o){R.FE.SHORTCUTS_MAP[(i?"^":"")+(o?"@":"")+e]={cmd:t,val:n,letter:r,shift:i,option:o},R.FE.DEFAULTS.shortcutsEnabled.push(t)},R.FE.RegisterShortcut(R.FE.KEYCODE.E,"show",null,"E",!1,!1),R.FE.RegisterShortcut(R.FE.KEYCODE.B,"bold",null,"B",!1,!1),R.FE.RegisterShortcut(R.FE.KEYCODE.I,"italic",null,"I",!1,!1),R.FE.RegisterShortcut(R.FE.KEYCODE.U,"underline",null,"U",!1,!1),R.FE.RegisterShortcut(R.FE.KEYCODE.S,"strikeThrough",null,"S",!1,!1),R.FE.RegisterShortcut(R.FE.KEYCODE.CLOSE_SQUARE_BRACKET,"indent",null,"]",!1,!1),R.FE.RegisterShortcut(R.FE.KEYCODE.OPEN_SQUARE_BRACKET,"outdent",null,"[",!1,!1),R.FE.RegisterShortcut(R.FE.KEYCODE.Z,"undo",null,"Z",!1,!1),R.FE.RegisterShortcut(R.FE.KEYCODE.Z,"redo",null,"Z",!0,!1),R.FE.RegisterShortcut(R.FE.KEYCODE.Y,"redo",null,"Y",!1,!1),R.FE.MODULES.shortcuts=function(a){function e(e){if(!a.core.hasFocus())return!0;var t=e.which,n=-1!=navigator.userAgent.indexOf("Mac OS X")?e.metaKey:e.ctrlKey;if("keyup"==e.type&&l&&t!=R.FE.KEYCODE.META)return l=!1;"keydown"==e.type&&(l=!1);var r=(e.shiftKey?"^":"")+(e.altKey?"@":"")+t;if(n&&R.FE.SHORTCUTS_MAP[r]){var i=R.FE.SHORTCUTS_MAP[r].cmd;if(i&&0<=a.opts.shortcutsEnabled.indexOf(i)){var o,s=R.FE.SHORTCUTS_MAP[r].val;if(i&&!s?o=a.$tb.find('.fr-command[data-cmd="'+i+'"]'):i&&s&&(o=a.$tb.find('.fr-command[data-cmd="'+i+'"][data-param1="'+s+'"]')),o.length)return e.preventDefault(),e.stopPropagation(),o.parents(".fr-toolbar").data("instance",a),"keydown"==e.type&&(a.button.exec(o),l=!0),!1;if(i&&(a.commands[i]||R.FE.COMMANDS[i]&&R.FE.COMMANDS[i].callback))return e.preventDefault(),e.stopPropagation(),"keydown"==e.type&&((a.commands[i]||R.FE.COMMANDS[i].callback)(),l=!0),!1}}}var r=null,l=!1;return{_init:function(){a.events.on("keydown",e,!0),a.events.on("keyup",e,!0)},get:function(e){if(!a.opts.shortcutsHint)return null;if(!r)for(var t in r={},R.FE.SHORTCUTS_MAP)R.FE.SHORTCUTS_MAP.hasOwnProperty(t)&&0<=a.opts.shortcutsEnabled.indexOf(R.FE.SHORTCUTS_MAP[t].cmd)&&(r[R.FE.SHORTCUTS_MAP[t].cmd+"."+(R.FE.SHORTCUTS_MAP[t].val||"")]={shift:R.FE.SHORTCUTS_MAP[t].shift,option:R.FE.SHORTCUTS_MAP[t].option,letter:R.FE.SHORTCUTS_MAP[t].letter});var n=r[e];return n?(a.helpers.isMac()?String.fromCharCode(8984):a.language.translate("Ctrl")+"+")+(n.shift?a.helpers.isMac()?String.fromCharCode(8679):a.language.translate("Shift")+"+":"")+(n.option?a.helpers.isMac()?String.fromCharCode(8997):a.language.translate("Alt")+"+":"")+n.letter:null}}},R.FE.MODULES.snapshot=function(a){function n(e){for(var t=e.parentNode.childNodes,n=0,r=null,i=0;i<t.length;i++){if(r){var o=t[i].nodeType===Node.TEXT_NODE&&""===t[i].textContent,s=r.nodeType===Node.TEXT_NODE&&t[i].nodeType===Node.TEXT_NODE;o||s||n++}if(t[i]==e)return n;r=t[i]}}function i(e){var t=[];if(!e.parentNode)return[];for(;!a.node.isElement(e);)t.push(n(e)),e=e.parentNode;return t.reverse()}function o(e,t){for(;e&&e.nodeType===Node.TEXT_NODE;){var n=e.previousSibling;n&&n.nodeType==Node.TEXT_NODE&&(t+=n.textContent.length),e=n}return t}function l(e){for(var t=a.el,n=0;n<e.length;n++)t=t.childNodes[e[n]];return t}function r(e,t){try{var n=l(t.scLoc),r=t.scOffset,i=l(t.ecLoc),o=t.ecOffset,s=a.doc.createRange();s.setStart(n,r),s.setEnd(i,o),e.addRange(s)}catch(c){}}return{get:function(){var e,t={};if(a.events.trigger("snapshot.before"),t.html=(a.$wp?a.$el.html():a.$oel.get(0).outerHTML).replace(/ style=""/g,""),t.ranges=[],a.$wp&&a.selection.inEditor()&&a.core.hasFocus())for(var n=a.selection.ranges(),r=0;r<n.length;r++)t.ranges.push({scLoc:i((e=n[r]).startContainer),scOffset:o(e.startContainer,e.startOffset),ecLoc:i(e.endContainer),ecOffset:o(e.endContainer,e.endOffset)});return a.events.trigger("snapshot.after",[t]),t},restore:function(e){a.$el.html()!=e.html&&(a.opts.htmlExecuteScripts?a.$el.html(e.html):a.el.innerHTML=e.html);var t=a.selection.get();a.selection.clear(),a.events.focus(!0);for(var n=0;n<e.ranges.length;n++)r(t,e.ranges[n])},equal:function(e,t){return e.html==t.html&&(!a.core.hasFocus()||JSON.stringify(e.ranges)==JSON.stringify(t.ranges))}}},R.FE.MODULES.undo=function(n){function e(e){var t=e.which;n.keys.ctrlKey(e)&&(90==t&&e.shiftKey&&e.preventDefault(),90==t&&e.preventDefault())}function t(){if(!n.undo_stack||n.undoing)return!1;for(;n.undo_stack.length>n.undo_index;)n.undo_stack.pop()}function r(){n.undo_index=0,n.undo_stack=[]}function i(){n.undo_stack=[]}var o=null;return{_init:function(){r(),n.events.on("initialized",function(){o=(n.$wp?n.$el.html():n.$oel.get(0).outerHTML).replace(/ style=""/g,"")}),n.events.on("blur",function(){n.el.querySelector(".fr-dragging")||n.undo.saveStep()}),n.events.on("keydown",e),n.events.on("destroy",i)},run:function(){if(1<n.undo_index){n.undoing=!0;var e=n.undo_stack[--n.undo_index-1];clearTimeout(n._content_changed_timer),n.snapshot.restore(e),o=e.html,n.popups.hideAll(),n.toolbar.enable(),n.events.trigger("contentChanged"),n.events.trigger("commands.undo"),n.undoing=!1}},redo:function(){if(n.undo_index<n.undo_stack.length){n.undoing=!0;var e=n.undo_stack[n.undo_index++];clearTimeout(n._content_changed_timer),n.snapshot.restore(e),o=e.html,n.popups.hideAll(),n.toolbar.enable(),n.events.trigger("contentChanged"),n.events.trigger("commands.redo"),n.undoing=!1}},canDo:function(){return!(0===n.undo_stack.length||n.undo_index<=1)},canRedo:function(){return n.undo_index!=n.undo_stack.length},dropRedo:t,reset:r,saveStep:function(e){if(!n.undo_stack||n.undoing||n.el.querySelector(".fr-marker"))return!1;
19void 0===e?(e=n.snapshot.get(),n.undo_stack[n.undo_index-1]&&n.snapshot.equal(n.undo_stack[n.undo_index-1],e)||(t(),n.undo_stack.push(e),n.undo_index++,e.html!=o&&(n.events.trigger("contentChanged"),o=e.html))):(t(),0<n.undo_index?n.undo_stack[n.undo_index-1]=e:(n.undo_stack.push(e),n.undo_index++))}}},R.FE.ICON_TEMPLATES={font_awesome:'<i class="fa fa-[NAME]" aria-hidden="true"></i>',font_awesome_5:'<i class="fas fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5r:'<i class="far fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5l:'<i class="fal fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5b:'<i class="fab fa-[FA5NAME]" aria-hidden="true"></i>',text:'<span style="text-align: center;">[NAME]</span>',image:"<img src=[SRC] alt=[ALT] />",svg:'<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">[PATH]</svg>'},R.FE.ICONS={bold:{NAME:"bold"},italic:{NAME:"italic"},underline:{NAME:"underline"},strikeThrough:{NAME:"strikethrough"},subscript:{NAME:"subscript"},superscript:{NAME:"superscript"},color:{NAME:"tint"},outdent:{NAME:"outdent"},indent:{NAME:"indent"},undo:{NAME:"rotate-left",FA5NAME:"undo"},redo:{NAME:"rotate-right",FA5NAME:"redo"},insertHR:{NAME:"minus"},clearFormatting:{NAME:"eraser"},selectAll:{NAME:"mouse-pointer"}},R.FE.DefineIconTemplate=function(e,t){R.FE.ICON_TEMPLATES[e]=t},R.FE.DefineIcon=function(e,t){R.FE.ICONS[e]=t},R.extend(R.FE.DEFAULTS,{iconsTemplate:"font_awesome"}),R.FE.MODULES.icon=function(i){return{create:function(n){var e=null,r=R.FE.ICONS[n];if(void 0!==r){var t=r.template||R.FE.ICON_DEFAULT_TEMPLATE||i.opts.iconsTemplate;r.FA5NAME||(r.FA5NAME=r.NAME),t&&(t=R.FE.ICON_TEMPLATES[t])&&(e=t.replace(/\[([a-zA-Z0-9]*)\]/g,function(e,t){return"NAME"==t?r[t]||n:r[t]}))}return e||n},getTemplate:function(e){var t=R.FE.ICONS[e],n=i.opts.iconsTemplate;return void 0!==t?n=t.template||R.FE.ICON_DEFAULT_TEMPLATE||i.opts.iconsTemplate:n}}},R.extend(R.FE.DEFAULTS,{tooltips:!0}),R.FE.MODULES.tooltip=function(i){function r(){if(i.helpers.isMobile())return!1;i.$tooltip&&i.$tooltip.removeClass("fr-visible").css("left","-3000px").css("position","fixed")}function o(e,t){if(i.helpers.isMobile())return!1;if(e.data("title")||e.data("title",e.attr("title")),!e.data("title"))return!1;i.$tooltip||i.opts.tooltips&&!i.helpers.isMobile()&&(i.shared.$tooltip?i.$tooltip=i.shared.$tooltip:(i.shared.$tooltip=R('<div class="fr-tooltip"></div>'),i.$tooltip=i.shared.$tooltip,i.opts.theme&&i.$tooltip.addClass(i.opts.theme+"-theme"),R(i.o_doc).find("body:first").append(i.$tooltip)),i.events.on("shared.destroy",function(){i.$tooltip.html("").removeData().remove(),i.$tooltip=null},!0)),e.removeAttr("title"),i.$tooltip.text(i.language.translate(e.data("title"))),i.$tooltip.addClass("fr-visible");var n=e.offset().left+(e.outerWidth()-i.$tooltip.outerWidth())/2;n<0&&(n=0),n+i.$tooltip.outerWidth()>R(i.o_win).width()&&(n=R(i.o_win).width()-i.$tooltip.outerWidth()),void 0===t&&(t=i.opts.toolbarBottom);var r=t?e.offset().top-i.$tooltip.height():e.offset().top+e.outerHeight();i.$tooltip.css("position",""),i.$tooltip.css("left",n),i.$tooltip.css("top",Math.ceil(r)),"static"!=R(i.o_doc).find("body:first").css("position")?(i.$tooltip.css("margin-left",-R(i.o_doc).find("body:first").offset().left),i.$tooltip.css("margin-top",-R(i.o_doc).find("body:first").offset().top)):(i.$tooltip.css("margin-left",""),i.$tooltip.css("margin-top",""))}return{hide:r,to:o,bind:function(e,t,n){i.opts.tooltips&&!i.helpers.isMobile()&&(i.events.$on(e,"mouseenter",t,function(e){i.node.hasClass(e.currentTarget,"fr-disabled")||i.edit.isDisabled()||o(R(e.currentTarget),n)},!0),i.events.$on(e,"mouseleave "+i._mousedown+" "+i._mouseup,t,function(){r()},!0))}}},R.FE.MODULES.button=function(h){function s(e,t,n){for(var r=R(),i=0;i<e.length;i++){var o=R(e[i]);if(o.is(t)&&(r=r.add(o)),n&&o.is(".fr-dropdown")){var s=o.next().find(t);r=r.add(s)}}return r}function l(e,t){var n,r=R();if(!e)return r;for(n in r=(r=r.add(s(p,e,t))).add(s(g,e,t)),h.shared.popups)if(h.shared.popups.hasOwnProperty(n)){var i=h.shared.popups[n].children().find(e);r=r.add(i)}for(n in h.shared.modals)if(h.shared.modals.hasOwnProperty(n)){var o=h.shared.modals[n].$modal.find(e);r=r.add(o)}return r}function r(e){e.addClass("fr-blink"),setTimeout(function(){e.removeClass("fr-blink")},500);for(var t=e.data("cmd"),n=[];void 0!==e.data("param"+(n.length+1));)n.push(e.data("param"+(n.length+1)));var r=l(".fr-dropdown.fr-active");r.length&&(r.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),r.parent(".fr-toolbar:not(.fr-inline)").css("zIndex","")),e.parents(".fr-popup, .fr-toolbar").data("instance").commands.exec(t,n)}function t(e){var t=e.parents(".fr-popup, .fr-toolbar").data("instance");if(0!==e.parents(".fr-popup").length||e.data("popup")||t.popups.hideAll(),t.popups.areVisible()&&!t.popups.areVisible(t)){for(var n=0;n<R.FE.INSTANCES.length;n++)R.FE.INSTANCES[n]!=t&&R.FE.INSTANCES[n].popups&&R.FE.INSTANCES[n].popups.areVisible()&&R.FE.INSTANCES[n].$el.find(".fr-marker").remove();t.popups.hideAll()}h.node.hasClass(e.get(0),"fr-dropdown")?function(e){var t=e.next(),n=h.node.hasClass(e.get(0),"fr-active"),r=l(".fr-dropdown.fr-active").not(e),i=e.parents(".fr-toolbar, .fr-popup").data("instance")||h;
19if(i.helpers.isIOS()&&!i.el.querySelector(".fr-marker")&&(i.selection.save(),i.selection.clear(),i.selection.restore()),!n){var o=e.data("cmd");t.find(".fr-command").removeClass("fr-active").attr("aria-selected",!1),R.FE.COMMANDS[o]&&R.FE.COMMANDS[o].refreshOnShow&&R.FE.COMMANDS[o].refreshOnShow.apply(i,[e,t]),t.css("left",e.offset().left-e.parent().offset().left-("rtl"==h.opts.direction?t.width()-e.outerWidth():0)),t.addClass("test-height");var s=t.outerHeight();t.removeClass("test-height"),t.css("top","").css("bottom",""),!h.opts.toolbarBottom&&t.offset().top+e.outerHeight()+s<R(h.o_doc).height()?t.css("top",e.position().top+e.outerHeight()):t.css("bottom",e.parents(".fr-popup, .fr-toolbar").first().height()-e.position().top)}e.addClass("fr-blink").toggleClass("fr-active"),e.hasClass("fr-active")?(t.attr("aria-hidden",!1),e.attr("aria-expanded",!0)):(t.attr("aria-hidden",!0),e.attr("aria-expanded",!1)),setTimeout(function(){e.removeClass("fr-blink")},300),t.css("margin-left",""),t.offset().left+t.outerWidth()>h.$sc.offset().left+h.$sc.width()&&t.css("margin-left",-(t.offset().left+t.outerWidth()-h.$sc.offset().left-h.$sc.width())),t.offset().left<h.$sc.offset().left&&"rtl"==h.opts.direction&&t.css("margin-left",h.$sc.offset().left),r.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),r.parent(".fr-toolbar:not(.fr-inline)").css("zIndex",""),0!==e.parents(".fr-popup").length||h.opts.toolbarInline||(h.node.hasClass(e.get(0),"fr-active")?h.$tb.css("zIndex",(h.opts.zIndex||1)+4):h.$tb.css("zIndex",""));var a=t.find("a.fr-command.fr-active:first");h.helpers.isMobile()||(a.length?h.accessibility.focusToolbarElement(a):h.accessibility.focusToolbarElement(e))}(e):(r(e),R.FE.COMMANDS[e.data("cmd")]&&!1!==R.FE.COMMANDS[e.data("cmd")].refreshAfterCallback&&t.button.bulkRefresh())}function o(e){t(R(e.currentTarget))}function a(e){var t=e.find(".fr-dropdown.fr-active");t.length&&(t.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),t.parent(".fr-toolbar:not(.fr-inline)").css("zIndex",""))}function u(e){e.preventDefault(),e.stopPropagation()}function c(e){if(e.stopPropagation(),!h.helpers.isMobile())return!1}function f(e,t,n){if(h.helpers.isMobile()&&!1===t.showOnMobile)return"";var r,i=t.displaySelection;if("function"==typeof i&&(i=i(h)),i){var o="function"==typeof t.defaultSelection?t.defaultSelection(h):t.defaultSelection;r='<span style="width:'+(t.displaySelectionWidth||100)+'px">'+h.language.translate(o||t.title)+"</span>"}else r=h.icon.create(t.icon||e),r+='<span class="fr-sr-only">'+(h.language.translate(t.title)||"")+"</span>";var s=t.popup?' data-popup="true"':"",a=t.modal?' data-modal="true"':"",l=h.shortcuts.get(e+".");l=l?" ("+l+")":"";var u=e+"-"+h.id,c="dropdown-menu-"+u,f='<button id="'+u+'"type="button" tabIndex="-1" role="button"'+(t.toggle?' aria-pressed="false"':"")+(
20"dropdown"==t.type?' aria-controls="'+c+'" aria-expanded="false" aria-haspopup="true"':"")+(t.disabled?' aria-disabled="true"':"")+' title="'+(h.language.translate(t.title)||"")+l+'" class="fr-command fr-btn'+("dropdown"==t.type?" fr-dropdown":"")+" fr-btn-"+h.icon.getTemplate(t.icon)+(t.displaySelection?" fr-selection":"")+(t.back?" fr-back":"")+(t.disabled?" fr-
20disabled":"")+(n?"":" fr-hidden")+'" data-cmd="'+e+'"'+s+a+">"+r+"</button>";if("dropdown"==t.type){var d='<div id="'+c+'" class="fr-dropdown-menu" role="listbox" aria-labelledby="'+u+'" aria-hidden="true"><div class="fr-dropdown-wrapper" role="presentation"><div class="fr-dropdown-content" role="presentation">';d+=function(e,t){var n="";if(t.html)"function"==typeof t.html?n+=t.html.call(h):n+=t.html;else{var r=t.options;for(var i in"function"==typeof r&&(r=r()),n+='<ul class="fr-dropdown-list" role="presentation">',r)if(r.hasOwnProperty(i)){var o=h.shortcuts.get(e+"."+i);o=o?'<span class="fr-shortcut">'+o+"</span>":"",n+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="'+e+'" data-param1="'+i+'" title="'+r[i]+'">'+h.language.translate(r[i])+"</a></li>"}n+="</ul>"}return n}(e,t),f+=d+="</div></div></div>"}return f}function e(i){var o=h.$tb&&h.$tb.data("instance")||h;if(!1===h.events.trigger("buttons.refresh"))return!0;setTimeout(function(){for(var e=o.selection.inEditor()&&o.core.hasFocus(),t=0;t<i.length;t++){var n=R(i[t]),r=n.data("cmd");0===n.parents(".fr-popup").length?e||R.FE.COMMANDS[r]&&R.FE.COMMANDS[r].forcedRefresh?o.button.refresh(n):h.node.hasClass(n.get(0),"fr-dropdown")||(n.removeClass("fr-active"),n.attr("aria-pressed")&&n.attr("aria-pressed",!1)):n.parents(".fr-popup").is(":visible")&&o.button.refresh(n)}},0)}function n(){e(p),e(g)}function i(){p=[],g=[]}function d(){clearTimeout(m),m=setTimeout(n,50)}var p=[];(h.opts.toolbarInline||h.opts.toolbarContainer)&&(h.shared.buttons||(h.shared.buttons=[]),p=h.shared.buttons);var g=[];h.shared.popup_buttons||(h.shared.popup_buttons=[]),g=h.shared.popup_buttons;var m=null;return{_init:function(){h.opts.toolbarInline?h.events.on("toolbar.show",n):(h.events.on("mouseup",d),h.events.on("keyup",d),h.events.on("blur",d),h.events.on("focus",d),h.events.on("contentChanged",d),h.helpers.isMobile()&&h.events.$on(h.$doc,"selectionchange",n)),h.events.on("shared.destroy",i)},buildList:function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r],o=R.FE.COMMANDS[i];o&&"undefined"!=typeof o.plugin&&h.opts.pluginsEnabled.indexOf(o.plugin)<0||(o?n+=f(i,o,void 0===t||0<=t.indexOf(i)):"|"==i?n+='<div class="fr-separator fr-vs" role="separator" aria-orientation="vertical"></div>':"-"==i&&(n+='<div class="fr-separator fr-hs" role="separator" aria-orientation="horizontal"></div>'))}return n},bindCommands:function(t,e){h.events.bindClick(t,".fr-command:not(.fr-disabled)",o),h.events.$on(t,h._mousedown+" "+h._mouseup+" "+h._move,".fr-dropdown-menu",u,!0),h.events.$on(t,h._mousedown+" "+h._mouseup+" "+h._move,".fr-dropdown-menu .fr-dropdown-wrapper",c,!0);var n=t.get(0).ownerDocument,r="defaultView"in n?n.defaultView:n.parentWindow,i=function(e){(!e||e.type==h._mouseup&&e.target!=R("html").get(0)||"keydown"==e.type&&(h.keys.isCharacter(e.which)&&!h.keys.ctrlKey(e)||e.which==R.FE.KEYCODE.ESC))&&a(t)};h.events.$on(R(r),h._mouseup+" resize keydown",i,!0),h.opts.iframe&&h.events.$on(h.$win,h._mouseup,i,!0),h.node.hasClass(t.get(0),"fr-popup")?R.merge(g,t.find(".fr-btn").toArray()):R.merge(p,t.find(".fr-btn").toArray()),h.tooltip.bind(t,".fr-btn, .fr-title",e)},refresh:function(e){var t,n=e.parents(".fr-popup, .fr-toolbar").data("instance")||h,r=e.data("cmd");h.node.hasClass(e.get(0),"fr-dropdown")?t=e.next():(e.removeClass("fr-active"),e.attr("aria-pressed")&&e.attr("aria-pressed",!1)),R.FE.COMMANDS[r]&&R.FE.COMMANDS[r].refresh?R.FE.COMMANDS[r].refresh.apply(n,[e,t]):h.refresh[r]&&n.refresh[r](e,t)},bulkRefresh:n,exec:r,click:t,hideActiveDropdowns:a,getButtons:l}},R.FE.MODULES.modals=function(l){function e(){for(var e in c){var t=c[e];t&&t.$modal&&t.$modal.removeData().remove()}u&&u.removeData().remove(),c={}}function a(e,t){if(c[e]){var n=c[e].$modal,r=n.data("instance")||l;r.events.enableBlur(),n.hide(),u.hide(),R(r.o_doc).find("body:first").removeClass("prevent-scroll fr-mobile"),n.removeClass("fr-active"),t||(r.accessibility.restoreSelection(),r.events.trigger("modals.hide"))}}function n(e){var t;if("string"==typeof e){if(!c[e])return;t=c[e].$modal}else t=e;return t&&l.node.hasClass(t,"fr-active")&&l.core.sameInstance(t)||!1}l.shared.modals||(l.shared.modals={});var u,c=l.shared.modals;return{_init:function(){l.events.on("shared.destroy",e,!0)},get:function(e){return c[e]},create:function(n,e,t){if(l.shared.$overlay||(l.shared.$overlay=R('<div class="fr-overlay">').appendTo("body:first")),u=l.shared.$overlay,l.opts.theme&&u.addClass(l.opts.theme+"-theme"),!c[n]){var r=(i=e,o=t,s='<div tabIndex="-1" class="fr-modal'+(l.opts.theme?" "+l.opts.theme+"-theme":"")+'"><div class="fr-modal-wrapper">',s+='<div class="fr-modal-head">'+i+'<i title="'+l.language.translate("Cancel")+'" class="fa fa-times fr-modal-close"></i></div>',s+='<div tabIndex="-1" class="fr-modal-body">'+o+"</div>",R(s+="</div></div>"));c[n]={$modal:r,$head:r.find(".fr-modal-head"),$body:r.find(".fr-modal-body")},l.helpers.isMobile()||r.addClass("fr-desktop"),r.appendTo("body:first"),l.events.$on(r,"click",".fr-modal-close",function(){a(n)},!0),c[n].$body.css("margin-top",c[n].$head.outerHeight()),l.events.$on(r,"keydown",function(e){var t=e.which;return t==R.FE.KEYCODE.ESC?(a(n),l.accessibility.focusModalButton(r),!1):!(!R(e.currentTarget).is("input[type=text], textarea")&&t!=R.FE.KEYCODE.ARROW_UP&&t!=R.FE.KEYCODE.ARROW_DOWN&&!l.keys.isBrowserAction(e)&&(e.preventDefault(),e.stopPropagation(),1))},!0),a(n,!0)}var i,o,s;return c[n]},show:function(e){if(c[e]){var t=c[e].$modal;t.data("instance",l),t.show(),u.show(),R(l.o_doc).find("body:first").addClass("prevent-scroll"),l.helpers.isMobile()&&R(l.o_doc).find("body:first").addClass("fr-mobile"),t.addClass("fr-active"),l.accessibility.focusModal(t)}},hide:a,resize:function(e){if(c[e]){var t=c[e],n=t.$modal,r=t.$body,i=R(l.o_win).height(),o=n.find(".fr-modal-wrapper"),s=i-o.outerHeight(!0)+(o.height()-(r.outerHeight(!0)-r.height())),a="auto";s<r.get(0).scrollHeight&&(a=s),r.height(a)}},isVisible:n,areVisible:function(e){for(var t in c)if(c.hasOwnProperty(t)&&n(t)&&(void 0===e||c[t].$modal.data("instance")==e))return c[t].$modal;return!1}}},R.FE.POPUP_TEMPLATES={"text.edit":"[_EDIT_]"},R.FE.RegisterTemplate=function(e,t){R.FE.POPUP_TEMPLATES[e]=t},R.FE.MODULES.popups=function(c){function f(e,t){t.is(":visible")||(t=c.$sc),t.is(v[e].data("c
20ontainer"))||(v[e].data("container",t),t.append(v[e]))}function d(e){return v[e]&&c.node.hasClass(v[e],"fr-active")&&c.core.sameInstance(v[e])||!1}function h(e){for(var t in v)if(v.hasOwnProperty(t)&&d(t)&&(void 0===e||v[t].data("instance")==e))return v[t];return!1}function n(e){var t=null;(t="string"!=typeof e?e:v[e])&&c.node.hasClass(t,"fr-active")&&(t.removeClass("fr-active fr-above"),c.events.trigger("popups.hide."+e),c.$tb&&(1<c.opts.zIndex?c.$tb.css("zIndex",c.opts.zIndex+1):c.$tb.css("zIndex","")),c.events.disableBlur(),t.find("input, textarea, button").filter(":focus").blur(),t.find("input, textarea").attr("disabled","disabled"))}function p(e){for(var t in void 0===e&&(e=[]),v)v.hasOwnProperty(t)&&e.indexOf(t)<0&&n(t)}function t(){c.shared.exit_flag=!0}function g(){c.shared.exit_flag=!1}function o(){return c.shared.exit_flag}function i(e,t){var n,r,i=function(e,t){var n=R.FE.POPUP_TEMPLATES[e];if(!n)return null;for(var r in"function"==typeof n&&(n=n.apply(c)),t)t.hasOwnProperty(r)&&(n=n.replace("[_"+r.toUpperCase()+"_]",t[r]));return n}(e,t);return i?(n=R('<div class="fr-popup'+(c.helpers.isMobile()?" fr-mobile":" fr-desktop")+(c.opts.toolbarInline?" fr-inline":"")+'"><span class="fr-arrow"></span>'+i+"</div>"),c.opts.theme&&n.addClass(c.opts.theme+"-theme"),1<c.opts.zIndex&&(c.opts.editInPopup?n.css("z-index",c.opts.zIndex+2):c.$tb.css("z-index",c.opts.zIndex+2)),"auto"!=c.opts.direction&&n.removeClass("fr-ltr fr-rtl").addClass("fr-"+c.opts.direction),n.find("input, textarea").attr("dir",c.opts.direction).attr("disabled","disabled"),(r=R("body:first")).append(n),n.data("container",r),v[e]=n,c.button.bindCommands(n,!1),n):(n=R('<div class="fr-popup fr-empty"></div>'),(r=R("body:first")).append(n),n.data("container",r),v[e]=n)}function m(r){var i=v[r];return{_windowResize:function(){var e=i.data("instance")||c;!e.helpers.isMobile()&&i.is(":visible")&&(e.events.disableBlur(),e.popups.hide(r),e.events.enableBlur())},_inputFocus:function(e){var t=i.data("instance")||c,n=R(e.currentTarget);if(n.is("input:file")&&n.closest(".fr-layer").addClass("fr-input-focus"),e.preventDefault(),e.stopPropagation(),setTimeout(function(){t.events.enableBlur()},100),t.helpers.isMobile()){var r=R(t.o_win).scrollTop();setTimeout(function(){R(t.o_win).scrollTop(r)},0)}},_inputBlur:function(e){var t=i.data("instance")||c,n=R(e.currentTarget);n.is("input:file")&&n.closest(".fr-layer").removeClass("fr-input-focus"),document.activeElement!=this&&R(this).is(":visible")&&(t.events.blurActive()&&t.events.trigger("blur"),t.events.enableBlur())},_editorKeydown:function(e){var t=i.data("instance")||c;t.keys.ctrlKey(e)||e.which==R.FE.KEYCODE.ALT||e.which==R.FE.KEYCODE.ESC||(d(r)&&i.find(".fr-back:visible").length?t.button.exec(i.find(".fr-back:visible:first")):e.which!=R.FE.KEYCODE.ALT&&t.popups.hide(r))},_preventFocus:function(e){var t=i.data("instance")||c,n=e.originalEvent?e.originalEvent.target||e.originalEvent.originalTarget:null;"mouseup"==e.type||R(n).is(":focus")||t.events.disableBlur(),"mouseup"!=e.type||R(n).hasClass("fr-command")||0<R(n).parents(".fr-command").length||R(n).hasClass("fr-dropdown-content")||c.button.hideActiveDropdowns(i),(c.browser.safari||c.browser.mozilla)&&"mousedown"==e.type&&R(n).is("input[type=file]")&&t.events.disableBlur();var r="input, textarea, button, select, label, .fr-command";if(n&&!R(n).is(r)&&0===R(n).parents(r).length)return e.stopPropagation(),!1;n&&R(n).is(r)&&e.stopPropagation(),g()},_editorMouseup:function(){i.is(":visible")&&o()&&0<i.find("input:focus, textarea:focus, button:focus, select:focus").filter(":visible").length&&c.events.disableBlur()},_windowMouseup:function(e){if(!c.core.sameInstance(i))return!0;var t=i.data("instance")||c;i.is(":visible")&&o()&&(e.stopPropagation(),t.markers.remove(),t.popups.hide(r),g())},_windowKeydown:function(e){if(!c.core.sameInstance(i))return!0;var t=i.data("instance")||c,n=e.which;if(R.FE.KEYCODE.ESC==n){if(t.popups.isVisible(r)&&t.opts.toolbarInline)return e.stopPropagation(),t.popups.isVisible(r)&&(i.find(".fr-back:visible").length?(t.button.exec(i.find(".fr-back:visible:first")),t.accessibility.focusPopupButton(i)):i.find(".fr-dismiss:visible").length?t.button.exec(i.find(".fr-dismiss:visible:first")):(t.popups.hide(r),t.toolbar.showInline(null,!0),t.accessibility.FocusPopupButton(i))),!1;if(t.popups.isVisible(r))return i.find(".fr-back:visible").length?(t.button.exec(i.find(".fr-back:visible:first")),t.accessibility.focusPopupButton(i)):i.find(".fr-dismiss:visible").length?t.button.exec(i.find(".fr-dismiss:visible:first")):(t.popups.hide(r),t.accessibility.focusPopupButton(i)),!1}},_doPlaceholder:function(){0===R(this).next().length&&R(this).attr("placeholder")&&R(this).after('<label for="'+R(this).attr("id")+'">'+R(this).attr("placeholder")+"</label>"),R(this).toggleClass("fr-not-empty",""!==R(this).val())},_repositionPopup:function(){if(!c.opts.height&&!c.opts.heightMax||c.opts.toolbarInline)return!0;
20if(c.$wp&&d(r)&&i.parent().get(0)==c.$sc.get(0)){var e=i.offset().top-c.$wp.offset().top,t=c.$wp.outerHeight();c.node.hasClass(i.get(0),"fr-above")&&(e+=i.outerHeight()),t<e||e<0?i.addClass("fr-hidden"):i.removeClass("fr-hidden")}}}}function s(e,t){c.events.on("mouseup",e._editorMouseup,!0),c.$wp&&c.events.on("keydown",e._editorKeydown),c.events.on("blur",function(){h()&&c.markers.remove(),p()}),c.$wp&&!c.helpers.isMobile()&&c.events.$on(c.$wp,"scroll.popup"+t,e._repositionPopup),c.events.on("window.mouseup",e._windowMouseup,!0),c.events.on("window.keydown",e._windowKeydown,!0),v[t].data("inst"+c.id,!0),c.events.on("destroy",function(){c.core.sameInstance(v[t])&&v[t].removeClass("fr-active").appendTo("body:first")},!0)}function e(){for(var e in v)if(v.hasOwnProperty(e)){var t=v[e];t&&(t.html("").removeData().remove(),v[e]=null)}v=[]}c.shared.popups||(c.shared.popups={});var v=c.shared.popups;return c.shared.exit_flag=!1,{_init:function(){c.events.on("shared.destroy",e,!0),c.events.on("window.mousedown",t),c.events.on("window.touchmove",g),c.events.$on(R(c.o_win),"scroll",g),c.events.on("mousedown",function(e){h()&&(e.stopPropagation(),c.$el.find(".fr-marker").remove(),t(),c.events.disableBlur())})},create:function(e,t){var n=i(e,t),r=m(e);return s(r,e),c.events.$on(n,"mousedown mouseup touchstart touchend touch","*",r._preventFocus,!0),c.events.$on(n,"focus","input, textarea, button, select",r._inputFocus,!0),c.events.$on(n,"blur","input, textarea, button, select",r._inputBlur,!0),c.accessibility.registerPopup(e),c.events.$on(n,"keydown keyup change input","input, textarea",r._doPlaceholder,!0),c.helpers.isIOS()&&c.events.$on(n,"touchend","label",function(){R("#"+R(this).attr("for")).prop("checked",function(e,t){return!t})},!0),c.events.$on(R(c.o_win),"resize",r._windowResize,!0),n},get:function(e){var t=v[e];return t&&!t.data("inst"+c.id)&&s(m(e),e),t},show:function(e,t,n,r){if(d(e)||(h()&&0<c.$el.find(".fr-marker").length?(c.events.disableBlur(),c.selection.restore()):h()||(c.events.disableBlur(),c.events.focus(),c.events.enableBlur())),p([e]),!v[e])return!1;var i=c.button.getButtons(".fr-dropdown.fr-active");i.removeClass("fr-active").attr("aria-expanded",!1).parent(".fr-toolbar").css("zIndex",""),i.next().attr("aria-hidden",!0),v[e].data("instance",c),c.$tb&&c.$tb.data("instance",c);var o=v[e].outerWidth(),s=d(e);v[e].addClass("fr-active").removeClass("fr-hidden").find("input, textarea").removeAttr("disabled");var a,l,u=v[e].data("container");a=e,(l=u).is(":visible")||(l=c.$sc),0===l.find([v[a]]).length&&l.append(v[a]),c.opts.toolbarInline&&u&&c.$tb&&u.get(0)==c.$tb.get(0)&&(f(e,c.$sc),n=c.$tb.offset().top-c.helpers.getPX(c.$tb.css("margin-top")),t=c.$tb.offset().left+c.$tb.outerWidth()/2+(parseFloat(c.$tb.find(".fr-arrow").css("margin-left"))||0)+c.$tb.find(".fr-arrow").outerWidth()/2,c.node.hasClass(c.$tb.get(0),"fr-above")&&n&&(n+=c.$tb.outerHeight()),r=0),u=v[e].data("container"),!c.opts.iframe||r||s||(t&&(t-=c.$iframe.offset().left),n&&(n-=c.$iframe.offset().top)),u.is(c.$tb)?c.$tb.css("zIndex",(c.opts.zIndex||1)+4):v[e].css("zIndex",(c.opts.zIndex||1)+4),t&&(t-=o/2),c.opts.toolbarBottom&&u&&c.$tb&&u.get(0)==c.$tb.get(0)&&(v[e].addClass("fr-above"),n&&(n-=v[e].outerHeight())),v[e].removeClass("fr-active"),c.position.at(t,n,v[e],r||0),v[e].addClass("fr-active"),s||c.accessibility.focusPopup(v[e]),c.opts.toolbarInline&&c.toolbar.hide(),c.events.trigger("popups.show."+e),m(e)._repositionPopup(),g()},hide:n,onHide:function(e,t){c.events.on("popups.hide."+e,t)},hideAll:p,setContainer:f,refresh:function(e){v[e].data("instance",c),c.events.trigger("popups.refresh."+e);for(var t=v[e].find(".fr-command"),n=0;n<t.length;n++){var r=R(t[n]);0===r.parents(".fr-dropdown-menu").length&&c.button.refresh(r)}},onRefresh:function(e,t){c.events.on("popups.refresh."+e,t)},onShow:function(e,t){c.events.on("popups.show."+e,t)},isVisible:d,areVisible:h}},R.FE.MODULES.position=function(v){function i(){var e=v.selection.ranges(0).getBoundingClientRect();if(0===e.top&&0===e.left&&0===e.width||0===e.height){var t=!1;0===v.$el.find(".fr-marker").length&&(v.selection.save(),t=!0);var n=v.$el.find(".fr-marker:first");n.css("display","inline"),n.css("line-height","");var r=n.offset(),i=n.outerHeight();n.css("display","none"),n.css("line-height",0),(e={}
20).left=r.left,e.width=0,e.height=i,e.top=r.top-(v.helpers.isMobile()&&!v.helpers.isIOS()||v.opts.iframe?0:v.helpers.scrollTop()),e.right=1,e.bottom=1,e.ok=!0,t&&v.selection.restore()}return e}function o(e,t,n,r){var i=n.data("container");!i||"BODY"===i.get(0).tagName&&"static"==i.css("position")||(e&&(e-=i.offset().left),t&&(t-=i.offset().top),"BODY"!=i.get(0).tagName?(e&&(e+=i.get(0).scrollLeft),t&&(t+=i.get(0).scrollTop)):"absolute"==i.css("position")&&(e&&(e+=i.position().left),t&&(t+=i.position().top))),v.opts.iframe&&i&&v.$tb&&i.get(0)!=v.$tb.get(0)&&(e&&(e+=v.$iframe.offset().left),t&&(t+=v.$iframe.offset().top));var o,s,a=((o=e)+(s=n.outerWidth(!0))>v.$sc.get(0).clientWidth-10&&(o=v.$sc.get(0).clientWidth-s-10),o<0&&(o=10),o);if(e){n.css("left",a);var l=n.data("fr-arrow");l||(l=n.find(".fr-arrow"),n.data("fr-arrow",l)),l.data("margin-left")||l.data("margin-left",v.helpers.getPX(l.css("margin-left"))),l.css("margin-left",e-a+l.data("margin-left"))}t&&n.css("top",function(e,t,n){var r=e.outerHeight(!0);if(!v.helpers.isMobile()&&v.$tb&&e.parent().get(0)!=v.$tb.get(0)){var i=e.parent().offset().top,o=t-r-(n||0);e.parent().get(0)==v.$sc.get(0)&&(i-=e.parent().position().top);var s=v.$sc.get(0).clientHeight;i+t+r>v.$sc.offset().top+s&&0<e.parent().offset().top+o&&0<o?o>v.$wp.scrollTop()&&(t=o,e.addClass("fr-above")):e.removeClass("fr-above")}return t}(n,t,r))}function n(e){var n=R(e),t=n.is(".fr-sticky-on"),r=n.data("sticky-top"),i=n.data("sticky-scheduled");if(void 0===r){n.data("sticky-top",0);var o=R('<div class="fr-sticky-dummy" style="height: '+n.outerHeight()+'px;"></div>');v.$box.prepend(o)}else v.$box.find(".fr-sticky-dummy").css("height",n.outerHeight());if(v.core.hasFocus()||0<v.$tb.find("input:visible:focus").length){var s=v.helpers.scrollTop(),a=Math.min(Math.max(s-v.$tb.parent().offset().top,0),v.$tb.parent().outerHeight()-n.outerHeight());a!=r&&a!=i&&(clearTimeout(n.data("sticky-timeout")),n.data("sticky-scheduled",a),n.outerHeight()<s-v.$tb.parent().offset().top&&n.addClass("fr-opacity-0"),n.data("sticky-timeout",setTimeout(function(){var e=v.helpers.scrollTop(),t=Math.min(Math.max(e-v.$tb.parent().offset().top,0),v.$tb.parent().outerHeight()-n.outerHeight());0<t&&"BODY"==v.$tb.parent().get(0).tagName&&(t+=v.$tb.parent().position().top),t!=r&&(n.css("top",Math.max(t,0)),n.data("sticky-top",t),n.data("sticky-scheduled",t)),n.removeClass("fr-opacity-0")},100))),t||(n.css("top","0"),n.width(v.$tb.parent().width()),n.addClass("fr-sticky-on"),v.$box.addClass("fr-sticky-box"))}else clearTimeout(R(e).css("sticky-timeout")),n.css("top","0"),n.css("position",""),n.width(""),n.data("sticky-top",0),n.removeClass("fr-sticky-on"),v.$box.removeClass("fr-sticky-box")}function t(e){if(e.offsetWidth){var t,n,r=R(e),i=r.outerHeight(),o=r.data("sticky-position"),s=R("body"==v.opts.scrollableContainer?v.o_win:v.opts.scrollableContainer).outerHeight(),a=0,l=0;"body"!==v.opts.scrollableContainer&&(a=v.$sc.offset().top,l=R(v.o_win).outerHeight()-a-s);var u="body"==v.opts.scrollableContainer?v.helpers.scrollTop():a,c=r.is(".fr-sticky-on");r.data("sticky-parent")||r.data("sticky-parent",r.parent());var f=r.data("sticky-parent"),d=f.offset().top,h=f.outerHeight();if(r.data("sticky-offset")?v.$box.find(".fr-sticky-dummy").css("height",i+"px"):(r.data("sticky-offset",!0),r.after('<div class="fr-sticky-dummy" style="height: '+i+'px;"></div>')),!o){var p="auto"!==r.css("top")||"auto"!==r.css("bottom");p||r.css("position","fixed"),o={top:v.node.hasClass(r.get(0),"fr-top"),bottom:v.node.hasClass(r.get(0),"fr-bottom")},p||r.css("position",""),r.data("sticky-position",o),r.data("top",v.node.hasClass(r.get(0),"fr-top")?r.css("top"):"auto"),r.data("bottom",v.node.hasClass(r.get(0),"fr-bottom")?r.css("bottom"):"auto")}t=v.helpers.getPX(r.data("top")),n=v.helpers.getPX(r.data("bottom"));var g=o.top&&d<u+t&&u+t<=d+h-i&&(v.helpers.isInViewPort(v.$sc.get(0))||"body"==v.opts.scrollableContainer),m=o.bottom&&d+i<u+s-n&&u+s-n<d+h;g||m?(r.css("width",f.get(0).getBoundingClientRect().width+"px"),c||(r.addClass("fr-sticky-on"),r.removeClass("fr-sticky-off"),r.css("top")&&("auto"!=r.data("top")?r.css("top",v.helpers.getPX(r.data("top"))+a):r.data("top","auto")),r.css("bottom")&&("auto"!=r.data("bottom")?r.css("bottom",v.helpers.getPX(r.data("bottom"))+l):r.css("bottom","auto")))):v.node.hasClass(r.get(0),"fr-sticky-off")||(r.width(""),r.removeClass("fr-sticky-on"),r.addClass("fr-sticky-off"),r.css("top")&&"auto"!=r.data("top")&&o.top&&r.css("top",0),r.css("bottom")&&"auto"!=r.data("bottom")&&o.bottom&&r.css("bottom",0))}}function e(){if(v._stickyElements)for(var e=0;e<v._stickyElements.length;e++)t(v._stickyElements[e])}return{_init:function(){!function(){if(v._stickyElements=[],v.helpers.isIOS()){var t=function(){if(v.helpers.requestAnimationFrame()(t),!1!==v.events.trigger("position.refresh"))for(var e=0;e<v._stickyElements.length;e++)n(v._stickyElements[e])};t(),v.events.$on(R(v.o_win),"scroll",function(){if(v.core.hasFocus())for(var e=0;e<v._stickyElements.length;e++){var t=R(v._stickyElements[e]),n=t.parent(),r=v.helpers.scrollTop();
20t.outerHeight()<r-n.offset().top&&(t.addClass("fr-opacity-0"),t.data("sticky-top",-1),t.data("sticky-scheduled",-1))}},!0)}else"body"!==v.opts.scrollableContainer&&v.events.$on(R(v.opts.scrollableContainer),"scroll",e,!0),v.events.$on(R(v.o_win),"scroll",e,!0),v.events.$on(R(v.o_win),"resize",e,!0),v.events.on("initialized",e),v.events.on("focus",e),v.events.$on(R(v.o_win),"resize","textarea",e,!0);v.events.on("destroy",function(){v._stickyElements=[]})}()},forSelection:function(e){var t=i();e.css({top:0,left:0});var n=t.top+t.height,r=t.left+t.width/2-e.get(0).offsetWidth/2+v.helpers.scrollLeft();v.opts.iframe||(n+=v.helpers.scrollTop()),o(r,n,e,t.height)},addSticky:function(e){e.addClass("fr-sticky"),v.helpers.isIOS()&&e.addClass("fr-sticky-ios"),e.removeClass("fr-sticky"),v._stickyElements.push(e.get(0))},refresh:e,at:o,getBoundingRect:i}},R.FE.MODULES.refresh=function(i){function o(e,t){e.toggleClass("fr-disabled",t).attr("aria-disabled",t)}return{undo:function(e){o(e,!i.undo.canDo())},redo:function(e){o(e,!i.undo.canRedo())}
20,outdent:function(e){if(i.node.hasClass(e.get(0),"fr-no-refresh"))return!1;for(var t=i.selection.blocks(),n=0;n<t.length;n++){var r="rtl"==i.opts.direction||"rtl"==R(t[n]).css("direction")?"margin-right":"margin-left";if("LI"==t[n].tagName||"LI"==t[n].parentNode.tagName)return o(e,!1),!0;if(0<i.helpers.getPX(R(t[n]).css(r)))return o(e,!1),!0}o(e,!0)},indent:function(e){if(i.node.hasClass(e.get(0),"fr-no-refresh"))return!1;for(var t=i.selection.blocks(),n=0;n<t.length;n++){for(var r=t[n].previousSibling;r&&r.nodeType==Node.TEXT_NODE&&0===r.textContent.length;)r=r.previousSibling;if("LI"!=t[n].tagName||r)return o(e,!1),!0;o(e,!0)}}}},R.extend(R.FE.DEFAULTS,{editInPopup:!1}),R.FE.MODULES.textEdit=function(n){function t(){n.events.$on(n.$el,n._mouseup,function(){setTimeout(function(){var e,t;t=n.popups.get("text.edit"),e="INPUT"===n.$el.prop("tagName")?n.$el.attr("placeholder"):n.$el.text(),t.find("input").val(e).trigger("change"),n.popups.setContainer("text.edit",n.$sc),n.popups.show("text.edit",n.$el.offset().left+n.$el.outerWidth()/2,n.$el.offset().top+n.$el.outerHeight(),n.$el.outerHeight())},10)})}return{_init:function(){var e;n.opts.editInPopup&&(e={edit:'<div id="fr-text-edit-'+n.id+'" class="fr-layer fr-text-edit-layer"><div class="fr-input-line"><input type="text" placeholder="'+n.language.translate("Text")+'" tabIndex="1"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="updateText" tabIndex="2">'+n.language.translate("Update")+"</button></div></div>"},n.popups.create("text.edit",e),t())},update:function(){var e=n.popups.get("text.edit").find("input").val();0===e.length&&(e=n.opts.placeholderText),"INPUT"===n.$el.prop("tagName")?n.$el.attr("placeholder",e):n.$el.text(e),n.events.trigger("contentChanged"),n.popups.hide("text.edit")}}},R.FE.RegisterCommand("updateText",{focus:!1,undo:!1,callback:function(){this.textEdit.update()}}),R.extend(R.FE.DEFAULTS,{toolbarBottom:!1,toolbarButtons:null,toolbarButtonsXS:null,toolbarButtonsSM:null,toolbarButtonsMD:null,toolbarContainer:null,toolbarInline:!1,toolbarSticky:!0,toolbarStickyOffset:0,toolbarVisibleWithoutSelection:!1}),R.FE.TOOLBAR_BUTTONS=["fullscreen","bold","italic","underline","strikeThrough","subscript","superscript","|","fontFamily","fontSize","color","inlineStyle","paragraphStyle","|","paragraphFormat","align","formatOL","formatUL","outdent","indent","quote","-","insertLink","insertImage","insertVideo","embedly","insertFile","insertTable","|","emoticons","specialCharacters","insertHR","selectAll","clearFormatting","|","print","spellChecker","help","html","|","undo","redo"],R.FE.TOOLBAR_BUTTONS_MD=null,R.FE.TOOLBAR_BUTTONS_SM=["bold","italic","underline","|","fontFamily","fontSize","insertLink","insertImage","table","|","undo","redo"],R.FE.TOOLBAR_BUTTONS_XS=["bold","italic","fontFamily","fontSize","|","undo","redo"],R.FE.MODULES.toolbar=function(i){function r(e,t){for(var n=0;n<t.length;n++)"-"!=t[n]&&"|"!=t[n]&&e.indexOf(t[n])<0&&e.push(t[n])}function o(){var e=i.helpers.screenSize();return f[e]}function e(){var e=o();i.$tb.find(".fr-separator").remove(),i.$tb.find("> .fr-command").addClass("fr-hidden");for(var t=0;t<e.length;t++)if("|"==e[t]||"-"==e[t])i.$tb.append(i.button.buildList([e[t]]));else{var n=i.$tb.find('> .fr-command[data-cmd="'+e[t]+'"]'),r=null;i.node.hasClass(n.next().get(0),"fr-dropdown-menu")&&(r=n.next()),n.removeClass("fr-hidden").appendTo(i.$tb),r&&r.appendTo(i.$tb)}}function t(e,t){setTimeout(function(){if((!e||e.which!=R.FE.KEYCODE.ESC)&&i.selection.inEditor()&&i.core.hasFocus()&&!i.popups.areVisible()&&(i.opts.toolbarVisibleWithoutSelection||!i.selection.isCollapsed()&&!i.keys.isIME()||t)){if(i.$tb.data("instance",i),!1===i.events.trigger("toolbar.show",[e]))return!1;i.$tb.show(),i.opts.toolbarContainer||i.position.forSelection(i.$tb),1<i.opts.zIndex?i.$tb.css("z-index",i.opts.zIndex+1):i.$tb.css("z-index",null)}},0)}function n(e){return(!e||"blur"!==e.type||document.activeElement!==i.el)&&(!(!e||"keydown"!==e.type||!i.keys.ctrlKey(e))||!!i.button.getButtons(".fr-dropdown.fr-active").next().find(i.o_doc.activeElement).length||void(!1!==i.events.trigger("toolbar.hide")&&i.$tb.hide()))}function s(e){clearTimeout(d),e&&e.which==R.FE.KEYCODE.ESC||(d=setTimeout(t,i.opts.typingTimer))}function a(){i.events.on("window.mousedown",n),i.events.on("keydown",n),i.events.on("blur",n),i.helpers.isMobile()||i.events.on("window.mouseup",t),i.helpers.isMobile()?i.helpers.isIOS()||(i.events.on("window.touchend",t),i.browser.mozilla&&setInterval(t,200)):i.events.on("window.keyup",s),i.events.on("keydown",function(e){e&&e.which==R.FE.KEYCODE.ESC&&n()}),i.events.on("keydown",function(e){if(e.which==R.FE.KEYCODE.ALT)return e.stopPropagation(),!1},!0),i.events.$on(i.$wp,"scroll.toolbar",t),i.events.on("commands.after",t),i.helpers.isMobile()&&(i.events.$on(i.$doc,"selectionchange",s),i.events.$on(i.$doc,"orientationchange",t))}
20function l(){i.$tb.html("").removeData().remove(),i.$tb=null}function u(){i.$box.removeClass("fr-top fr-bottom fr-inline fr-basic"),i.$box.find(".fr-sticky-dummy").remove()}function c(){i.opts.theme&&i.$tb.addClass(i.opts.theme+"-theme"),1<i.opts.zIndex&&i.$tb.css("z-index",i.opts.zIndex+1),"auto"!=i.opts.direction&&i.$tb.removeClass("fr-ltr fr-rtl").addClass("fr-"+i.opts.direction),i.helpers.isMobile()?i.$tb.addClass("fr-mobile"):i.$tb.addClass("fr-desktop"),i.opts.toolbarContainer?(i.opts.toolbarInline&&(a(),n()),i.opts.toolbarBottom?i.$tb.addClass("fr-bottom"):i.$tb.addClass("fr-top")):i.opts.toolbarInline?(i.$sc.append(i.$tb),i.$tb.data("container",i.$sc),i.$tb.addClass("fr-inline"),i.$tb.prepend('<span class="fr-arrow"></span>'),a(),i.opts.toolbarBottom=!1):(i.opts.toolbarBottom&&!i.helpers.isIOS()?(i.$box.append(i.$tb),i.$tb.addClass("fr-bottom"),i.$box.addClass("fr-bottom")):(i.opts.toolbarBottom=!1,i.$box.prepend(i.$tb),i.$tb.addClass("fr-top"),i.$box.addClass("fr-top")),i.$tb.addClass("fr-basic"),i.opts.toolbarSticky&&(i.opts.toolbarStickyOffset&&(i.opts.toolbarBottom?i.$tb.css("bottom",i.opts.toolbarStickyOffset):i.$tb.css("top",i.opts.toolbarStickyOffset)),i.position.addSticky(i.$tb))),function(){var e=R.merge([],o());r(e,f[R.FE.XS]),r(e,f[R.FE.SM]),r(e,f[R.FE.MD]),r(e,f[R.FE.LG]);for(var t=e.length-1;0<=t;t--)"-"!=e[t]&&"|"!=e[t]&&e.indexOf(e[t])<t&&e.splice(t,1);var n=i.button.buildList(e,o());i.$tb.append(n),i.button.bindCommands(i.$tb)}(),i.events.$on(R(i.o_win),"resize",e),i.events.$on(R(i.o_win),"orientationchange",e),i.accessibility.registerToolbar(i.$tb),i.events.$on(i.$tb,i._mousedown+" "+i._mouseup,function(e){var t=e.originalEvent?e.originalEvent.target||e.originalEvent.originalTarget:null;if(t&&"INPUT"!=t.tagName&&!i.edit.isDisabled())return e.stopPropagation(),e.preventDefault(),!1},!0)}var f=[];f[R.FE.XS]=i.opts.toolbarButtonsXS||i.opts.toolbarButtons||R.FE.TOOLBAR_BUTTONS_XS||R.FE.TOOLBAR_BUTTONS||[],f[R.FE.SM]=i.opts.toolbarButtonsSM||i.opts.toolbarButtons||R.FE.TOOLBAR_BUTTONS_SM||R.FE.TOOLBAR_BUTTONS||[],f[R.FE.MD]=i.opts.toolbarButtonsMD||i.opts.toolbarButtons||R.FE.TOOLBAR_BUTTONS_MD||R.FE.TOOLBAR_BUTTONS||[],f[R.FE.LG]=i.opts.toolbarButtons||R.FE.TOOLBAR_BUTTONS||[];var d=null,h=!1;return{_init:function(){if(i.$sc=R(i.opts.scrollableContainer).first(),!i.$wp)return!1;i.opts.toolbarContainer?(i.shared.$tb?(i.$tb=i.shared.$tb,i.opts.toolbarInline&&a()):(i.shared.$tb=R('<div class="fr-toolbar"></div>'),i.$tb=i.shared.$tb,R(i.opts.toolbarContainer).append(i.$tb),c(),i.$tb.data("instance",i)),i.opts.toolbarInline?i.$box.addClass("fr-inline"):i.$box.addClass("fr-basic"),i.events.on("focus",function(){i.$tb.data("instance",i)},!0),i.opts.toolbarInline=!1):i.opts.toolbarInline?(i.$box.addClass("fr-inline"),i.shared.$tb?(i.$tb=i.shared.$tb,a()):(i.shared.$tb=R('<div class="fr-toolbar"></div>'),i.$tb=i.shared.$tb,c())):(i.$box.addClass("fr-basic"),i.$tb=R('<div class="fr-toolbar"></div>'),c(),i.$tb.data("instance",i)),i.events.on("destroy",u,!0),i.events.on(i.opts.toolbarInline||i.opts.toolbarContainer?"shared.destroy":"destroy",l,!0)},hide:n,show:function(){if(!1===i.events.trigger("toolbar.show"))return!1;i.$tb.show()},showInline:t,disable:function(){!h&&i.$tb&&(i.$tb.find("> .fr-command").addClass("fr-disabled fr-no-refresh").attr("aria-disabled",!0),h=!0)},enable:function(){h&&i.$tb&&(i.$tb.find("> .fr-command").removeClass("fr-disabled fr-no-refresh").attr("aria-disabled",!1),h=!1),i.button.bulkRefresh()}}}}),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return t===undefined&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t)}:n(window.jQuery)}(function(Q){Q.extend(Q.FE.POPUP_TEMPLATES,{"video.insert":"[_BUTTONS_][_BY_URL_LAYER_][_EMBED_LAYER_][_UPLOAD_LAYER_][_PROGRESS_BAR_]","video.edit":"[_BUTTONS_]","video.size":"[_BUTTONS_][_SIZE_LAYER_]"}),Q.extend(Q.FE.DEFAULTS,{videoAllowedTypes:["mp4","webm","ogg"],videoAllowedProviders:[".*"],videoDefaultAlign:"center",videoDefaultDisplay:"block",videoDefaultWidth:600,videoEditButtons:["videoReplace","videoRemove","|","videoDisplay","videoAlign","videoSize"],videoInsertButtons:["videoBack","|","videoByURL","videoEmbed","videoUpload"],videoMaxSize:52428800,videoMove:!0,videoResize:!0,videoSizeButtons:["videoBack","|"],videoSplitHTML:!1,videoTextNear:!0,videoUpload:!0,videoUploadMethod:"POST",videoUploadParam:"file",videoUploadParams:{},videoUploadToS3:!1,videoUploadURL:null}),Q.FE.VIDEO_PROVIDERS=[{test_regex:/^.*((youtu.be)|(youtube.com))\/((v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))?\??v?=?([^#\&\?]*).*/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=|embed\/)?([0-9a-zA-Z_\-]+)(.+)?/g,url_text:"https://www.youtube.com/embed/$1",html:'<iframe width="640" height="360" src="{url}?wmode=opaque" frameborder="0" allowfullscreen></iframe>',provider:"youtube"},{test_regex:/^.*(?:vimeo.com)\/(?:channels(\/\w+\/)?|groups\/*\/videos\/\u200b\d+\/|video\/|)(\d+)(?:$|\/|\?)/,url_regex:/(?:https?:\/\/)?(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?(\/[a-zA-Z0-9_\-]+)?/i,url_text:"https://player.vimeo.com/video/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"vimeo"},{test_regex:/^.+(dailymotion.com|dai.ly)\/(video|hub)?\/?([^_]+)[^#]*(#video=([^_&]+))?/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:dailymotion\.com|dai\.ly)\/(?:video|hub)?\/?(.+)/g,url_text:"https://www.dailymotion.com/embed/video/$1",
21html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"dailymotion"},{test_regex:/^.+(screen.yahoo.com)\/[^_&]+/,url_regex:"",url_text:"",html:'<iframe width="640" height="360" src="{url}?format=embed" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" allowtransparency="true"></iframe>',provider:"yahoo"},{test_regex:/^.+(rutube.ru)\/[^_&]+/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:rutube\.ru)\/(?:video)?\/?(.+)/g,url_text:"https://rutube.ru/play/embed/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" allowtransparency="true"></iframe>',provider:"rutube"},{test_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&/]+)\/?(?:[^_.&]+)?/,url_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&/]+)\/?(?:[^_.&]+)?/g,url_text:"https://play.vidyard.com/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"vidyard"}],Q.FE.VIDEO_EMBED_REGEX=/^\W*((<iframe.*><\/iframe>)|(<embed.*>))\W*$/i,Q.FE.PLUGINS.video=function(d){function h(){var e=d.popups.get("video.insert");e.find(".fr-video-by-url-layer input").val("").trigger("change");var t=e.find(".fr-video-embed-layer textarea");t.val("").trigger("change"),(t=e.find(".fr-video-upload-layer input")).val("").trigger("change")}function n(){var e=d.popups.get("video.edit");if(e||(e=function(){var e="";if(0<d.opts.videoEditButtons.length){e+='<div class="fr-buttons">',e+=d.button.buildList(d.opts.videoEditButtons);var t={buttons:e+="</div>"},n=d.popups.create("video.edit",t);return d.events.$on(d.$wp,"scroll.video-edit",function(){U&&d.popups.isVisible("video.edit")&&(d.events.disableBlur(),a(U))}),n}return!1}()),e){d.popups.setContainer("video.edit",d.$sc),d.popups.refresh("video.edit");var t=U.find("iframe, embed, video"),n=t.offset().left+t.outerWidth()/2,r=t.offset().top+t.outerHeight();d.popups.show("video.edit",n,r,t.outerHeight())}}function s(e){if(e)return d.popups.onRefresh("video.insert",h),d.popups.onHide("image.insert",P),!0;var t="";d.opts.videoUpload||d.opts.videoInsertButtons.splice(d.opts.videoInsertButtons.indexOf("videoUpload"),1),1<d.opts.videoInsertButtons.length&&(t='<div class="fr-buttons">'+d.button.buildList(d.opts.videoInsertButtons)+"</div>");var n,r="",i=d.opts.videoInsertButtons.indexOf("videoUpload"),o=d.opts.videoInsertButtons.indexOf("videoByURL"),s=d.opts.videoInsertButtons.indexOf("videoEmbed");0<=o&&(n=" fr-active",(i<o&&0<=i||s<o&&0<=s)&&(n=""),r='<div class="fr-video-by-url-layer fr-layer'+n+'" id="fr-video-by-url-layer
21-'+d.id+'"><div class="fr-input-line"><input id="fr-video-by-url-layer-text-'+d.id+'" type="text" placeholder="'+d.language.translate("Paste in a video URL")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoInsertByURL" tabIndex="2" role="button">'+d.language.translate("Insert")+"</button></div></div>");var a="";0<=s&&(n=" fr-active",(i<s&&0<=i||o<s&&0<=o)&&(n=""),a='<div class="fr-video-embed-layer fr-layer'+n+'" id="fr-video-embed-layer-'+d.id+'"><div class="fr-input-line"><textarea id="fr-video-embed-layer-text'+d.id+'" type="text" placeholder="'+d.language.translate("Embedded Code")+'" tabIndex="1" aria-required="true" rows="5"></textarea></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoInsertEmbed" tabIndex="2" role="button">'+d.language.translate("Insert")+"</button></div></div>");var l="";0<=i&&(n=" fr-active",(s<i&&0<=s||o<i&&0<=o)&&(n=""),l='<div class="fr-video-upload-layer fr-layer'+n+'" id="fr-video-upload-layer-'+d.id+'"><strong>'+d.language.translate("Drop video")+"</strong><br>("+d.language.translate("or click")+')<div class="fr-form"><input type="file" accept="video/'+d.opts.videoAllowedTypes.join(", video/").toLowerCase()+'" tabIndex="-1" aria-labelledby="fr-video-upload-layer-'+d.id+'" role="button"></div></div>');var u,c={buttons:t,by_url_layer:r,embed_layer:a,upload_layer:l,progress_bar:'<div class="fr-video-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="videoDismissError" tabIndex="2" role="button">OK</button></div></div>'},f=d.popups.create("video.insert",c);return u=f,d.events.$on(u,"dragover dragenter",".fr-video-upload-layer",function(){return Q(this).addClass("fr-drop"),!1},!0),d.events.$on(u,"dragleave dragend",".fr-video-upload-layer",function(){return Q(this).removeClass("fr-drop"),!1},!0),d.events.$on(u,"drop",".fr-video-upload-layer",function(e){e.preventDefault(),e.stopPropagation(),Q(this).removeClass("fr-drop");var t=e.originalEvent.dataTransfer;if(t&&t.files){var n=u.data("instance")||d;n.events.disableBlur(),n.video.upload(t.files),n.events.enableBlur()}},!0),d.helpers.isIOS()&&d.events.$on(u,"touchstart",'.fr-video-upload-layer input[type="file"]',function(){Q(this).trigger("click")},!0),d.events.$on(u,"change",'.fr-video-upload-layer input[type="file"]',function(){if(this.files){var e=u.data("instance")||d;e.events.disableBlur(),u.find("input:focus").blur(),e.events.enableBlur(),e.video.upload(this.files)}Q(this).val("")},!0),f}function i(e){d.events.focus(!0),d.selection.restore();var t=!1;U&&(k(),t=!0),d.html.insert('<span contenteditable="false" draggable="true" class="fr-jiv fr-video">'+e+"</span>",!1,d.opts.videoSplitHTML),d.popups.hide("video.insert");var n=d.$el.find(".fr-jiv");n.removeClass("fr-jiv"),M(n,d.opts.videoDefaultDisplay,d.opts.videoDefaultAlign),n.toggleClass("fr-draggable",d.opts.videoMove),d.events.trigger(t?"video.replaced":"video.inserted",[n])}function f(){var e=Q(this);d.popups.hide("video.insert"),e.removeClass("fr-uploading"),e.parent().next().is("br")&&e.parent().next().remove(),a(e.parent()),d.events.trigger("video.loaded",[e.parent()])}function u(a,e,l,u,c){d.edit.off(),g("Loading video"),e&&(a=d.helpers.sanitizeURL(a)),p("Loading video"),function(){var e,t;if(u){d.undo.canDo()||u.find("video").hasClass("fr-uploading")||d.undo.saveStep();var n=u.find("video").data("fr-old-src"),r=u.data("fr-replaced");u.data("fr-replaced",!1),d.$wp?((e=u.clone()).find("video").removeData("fr-old-src").removeClass("fr-uploading"),e.find("video").off("canplay"),n&&u.find("video").attr("src",n),u.replaceWith(e)):e=u;for(var i=e.find("video").get(0).attributes,o=0;o<i.length;o++){var s=i[o];0===s.nodeName.indexOf("data-")&&e.find("video").removeAttr(s.nodeName)}if(void 0!==l)for(t in l)l.hasOwnProperty(t)&&"link"!=t&&e.find("video").attr("data-"+t,l[t]);e.find("video").on("canplay",f),e.find("video").attr("src",a),d.edit.on(),S(),d.undo.saveStep(),d.$el.blur(),d.events.trigger(r?"video.replaced":"video.inserted",[e,c])}else e=function(e,t,n){var r,i="";if(t&&void 0!==t)for(r in t)t.hasOwnProperty(r)&&"link"!=r&&(i+=" data-"+r+'="'+t[r]+'"');var o=d.opts.videoDefaultWidth;o&&"auto"!=o&&(o+="px");var s=Q('<span contenteditable="false" draggable="true" class="fr-video fr-dv'+d.opts.videoDefaultDisplay[0]+("center"!=d.opts.videoDefaultAlign?" fr-fv"+d.opts.videoDefaultAlign[0]:"")+'"><video src="'+e+'" '+i+(o?' style="width: '+o+';" ':"")+" controls>"+d.language.translate("Your browser does not support HTML5 video.")+"</video></span>");s.toggleClass("fr-draggable",d.opts.videoMove),d.edit.on(),d.events.focus(!0),d.selection.restore(
vendor: 4,457 bytes, line 21
21),d.undo.saveStep(),d.opts.videoSplitHTML?d.markers.split():d.markers.insert(),d.html.wrap();var a=d.$el.find(".fr-marker");return d.node.isLastSibling(a)&&a.parent().hasClass("fr-deletable")&&a.insertAfter(a.parent()),a.replaceWith(s),d.selection.clear(),s.find("video").get(0).readyState>s.find("video").get(0).HAVE_FUTURE_DATA||d.helpers.isIOS()?n.call(s.find("video").get(0)):s.find("video").on("canplaythrough load",n),s}(a,l,f),S(),d.undo.saveStep(),d.events.trigger("video.inserted",[e,c])}()}function p(e){var t=d.popups.get("video.insert");if(t||(t=s()),t.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),t.find(".fr-video-progress-bar-layer").addClass("fr-active"),t.find(".fr-buttons").hide(),U){var n=U.find("video");d.popups.setContainer("video.insert",d.$sc);var r=n.offset().left+n.width()/2,i=n.offset().top+n.height();d.popups.show("video.insert",r,i,n.outerHeight())}void 0===e&&g(d.language.translate("Uploading"),0)}function o(e){var t=d.popups.get("video.insert");if(t&&(t.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),t.find(".fr-video-progress-bar-layer").removeClass("fr-active"),t.find(".fr-buttons").show(),e||d.$el.find("video.fr-error").length)){if(d.events.focus(),d.$el.find("video.fr-error").length&&(d.$el.find("video.fr-error").parent().remove(),d.undo.saveStep(),d.undo.run(),d.undo.dropRedo()),!d.$wp&&U){var n=U;A(!0),d.selection.setAfter(n.find("video").get(0)),d.selection.restore()}d.popups.hide("video.insert")}}function g(e,t){var n=d.popups.get("video.insert");if(n){var r=n.find(".fr-video-progress-bar-layer");r.find("h3").text(e+(t?" "+t+"%":"")),r.removeClass("fr-error"),t?(r.find("div").removeClass("fr-indeterminate"),r.find("div > span").css("width",t+"%")):r.find("div").addClass("fr-indeterminate")}}function a(e){r.call(e.get(0))}function c(e){g("Loading video");var t=this.status,n=this.response,r=this.responseXML,i=this.responseText;try{if(d.opts.videoUploadToS3)if(201==t){var o=function(e){try{var t=Q(e).find("Location").text(),n=Q(e).find("Key").text();return!1===d.events.trigger("video.uploadedToS3",[t,n,e],!0)?(d.edit.on(),!1):t}catch(r){return N(G,e),!1}}(r);o&&u(o,!1,[],e,n||r)}else N(G,n||r);else if(200<=t&&t<300){var s=function(e){try{if(!1===d.events.trigger("video.uploaded",[e],!0))return d.edit.on(),!1;var t=JSON.parse(e);return t.link?t:(N(j,e),!1)}catch(n){return N(G,e),!1}}(i);s&&u(s.link,!1,s,e,n||i)}else N(z,n||i)}catch($){N(G,n||i)}}function m(){N(G,this.response||this.responseText||this.responseXML)}function v(e){if(e.lengthComputable){var t=e.loaded/e.total*100|0;g(d.language.translate("Uploading"),t)}}function y(){d.edit.on(),o(!0)}function l(e){if(!d.core.sameInstance(H))return!0;e.preventDefault(),e.stopPropagation();var t=e.pageX||(e.originalEvent.touches?e.originalEvent.touches[0].pageX:null),n=e.pageY||(e.originalEvent.touches?e.originalEvent.touches[0].pageY:null);if(!t||!n)return!1;if("mousedown"==e.type){var r=d.$oel.get(0).ownerDocument,i=r.defaultView||r.parentWindow,o=!1;try{o=i.location!=i.parent.location&&!(i.$&&i.$.FE)}catch(s){}o&&i.frameElement&&(t+=d.helpers.getPX(Q(i.frameElement).offset().left)+i.frameElement.clientLeft,n=e.clientY+d.helpers.getPX(Q(i.frameElement).offset().top)+i.frameElement.clientTop)}d.undo.canDo()||d.undo.saveStep(),(B=Q(this)).data("start-x",t),B.data("start-y",n),$.show(),d.popups.hideAll(),C()}function b(e){if(!d.core.sameInstance(H))return!0;if(B){e.preventDefault();var t=e.pageX||(e.originalEvent.touches?e.originalEvent.touches[0].pageX:null),n=e.pageY||(e.originalEvent.touches?e.originalEvent.touches[0].pageY:null);if(!t||!n)return!1;var r=B.data("start-x"),i=B.data("start-y");B.data("start-x",t),B.data("start-y",n);var o=t-r,s=n-i,a=U.find("iframe, embed, video"),l=a.width(),u=a.height();(B.hasClass("fr-hnw")||B.hasClass("fr-hsw"))&&(o=0-o),(B.hasClass("fr-hnw")||B.hasClass("fr-hne"))&&(s=0-s),a.css("width",l+o),a.css("height",u+s),a.removeAttr("width"),a.removeAttr("height"),w()}}function E(e){if(!d.core.sameInstance(H))return!0;B&&U&&(e&&e.stopPropagation(),B=null,$.hide(),w(),n(),d.undo.saveStep())}function t(e){return'<div class="fr-handler fr-h'+e+'"></div>'}function T(e,t,n,r){return e.pageX=t,e.pageY=t,l.call(this,e),e.pageX=e.pageX+n*Math.floor(Math.pow(1.1,r)),e.pageY=e.pageY+n*Math.floor(Math.pow(1.1,r)),b.call(this,e),E.call(this,e),++r}function S(){var e,t=Array.prototype.slice.call(d.el.querySelectorAll("video, .fr
21-video > *")),n=[];for(e=0;e<t.length;e++)n.push(t[e].getAttribute("src")),Q(t[e]).toggleClass("fr-draggable",d.opts.videoMove),""===t[e].getAttribute("class")&&t[e].removeAttribute("class"),""===t[e].getAttribute("style")&&t[e].removeAttribute("style");if(V)for(e=0;e<V.length;e++)n.indexOf(V[e].getAttribute("src"))<0&&d.events.trigger("video.removed",[Q(V[e])]);V=t}function w(){H||function(){var e;if(d.shared.$video_resizer?(H=d.shared.$video_resizer,$=d.shared.$vid_overlay,d.events.on("destroy",function(){H.removeClass("fr-active").appendTo(Q("body:first"))},!0)):(d.shared.$video_resizer=Q('<div class="fr-video-resizer"></div>'),H=d.shared.$video_resizer,d.events.$on(H,"mousedown",function(e){e.stopPropagation()},!0),d.opts.videoResize&&(H.append(t("nw")+t("ne")+t("sw")+t("se")),d.shared.$vid_overlay=Q('<div class="fr-video-overlay"></div>'),$=d.shared.$vid_overlay,e=H.get(0).ownerDocument,Q(e).find("body:first").append($))),d.events.on("shared.destroy",function(){H.html("").removeData().remove(),H=null,d.opts.videoResize&&($.remove(),$=null)},!0),d.helpers.isMobile()||d.events.$on(Q(d.o_win),"resize.video",function(){A(!0)}),d.opts.videoResize){e=H.get(0).ownerDocument,d.events.$on(H,d._mousedown,".fr-handler",l),d.events.$on(Q(e),d._mousemove,b),d.events.$on(Q(e.defaultView||e.parentWindow),d._mouseup,E),d.events.$on($,"mouseleave",E);var r=1,i=null,o=0;d.events.on("keydown",function(e){if(U){var t=-1!=navigator.userAgent.indexOf("Mac OS X")?e.metaKey:e.ctrlKey,n=e.which;(n!==i||200<e.timeStamp-o)&&(r=1),(n==Q.FE.KEYCODE.EQUALS||d.browser.mozilla&&n==Q.FE.KEYCODE.FF_EQUALS)&&t&&!e.altKey?r=T.call(this,e,1,1,r):(n==Q.FE.KEYCODE.HYPHEN||d.browser.mozilla&&n==Q.FE.KEYCODE.FF_HYPHEN)&&t&&!e.altKey&&(r=T.call(this,e,2,-1,r)),i=n,o=e.timeStamp}}),d.events.on("keyup",function(){r=1})}}(),(d.$wp||d.$sc).append(H),H.data("instance",d);var e=U.find("iframe, embed, video");H.css("top",(d.opts.iframe?e.offset().top-1:e.offset().top-d.$wp.offset().top-1)+d.$wp.scrollTop()).css("left",(d.opts.iframe?e.offset().left-1:e.offset().left-d.$wp.offset().left-1)+d.$wp.scrollLeft()).css("width",e.get(0).getBoundingClientRect().width).css("height",e.get(0).getBoundingClientRect().height).addClass("fr-active")}function r(e){if(e&&"touchend"==e.type&&W)return!0;if(e&&d.edit.isDisabled())return e.stopPropagation(),e.preventDefault(),!1;if(d.edit.isDisabled())return!1;for(var t=0;t<Q.FE.INSTANCES.length;t++)Q.FE.INSTANCES[t]!=d&&Q.FE.INSTANCES[t].events.trigger("video.hideResizer");d.toolbar.disable(),d.helpers.isMobile()&&(d.events.disableBlur(),d.$el.blur(),d.events.enableBlur()),d.$el.find(".fr-video.fr-active").removeClass("fr-active"),(U=Q(this)).addClass("fr-active"),d.opts.iframe&&d.size.syncIframe(),F(),w(),n(),d.selection.clear(),d.button.bulkRefresh(),d.events.trigger("image.hideResizer")}function A(e){U&&(d.shared.vid_exit_flag||!0===e)&&(H.removeClass("fr-active"),d.toolbar.enable(),U.removeClass("fr-active"),U=null,C())}function e(){d.shared.vid_exit_flag=!0}function C(){d.shared.vid_exit_flag=!1}function x(e){var t=e.originalEvent.dataTransfer;if(t&&t.files&&t.files.length){var n=t.files[0];if(n&&n.type&&-1!==n.type.indexOf("video")){if(!d.opts.videoUpload)return e.preventDefault(),e.stopPropagation(),!1;d.markers.remove(),d.markers.insertAtPoint(e.originalEvent),d.$el.find(".fr-marker").replaceWith(Q.FE.MARKERS),d.popups.hideAll();var r=d.popups.get("video.insert");return r||(r=s()),d.popups.setContainer("video.insert",d.$sc),d.popups.show("video.insert",e.originalEvent.pageX,e.originalEvent.pageY),p(),0<=d.opts.videoAllowedTypes.indexOf(n.type.replace(/video\//g,""))?_(t.files):N(X),e.preventDefault(),e.stopPropagation(),!1}}}function _(e){if(void 0!==e&&0<e.length){if(!1===d.events.trigger("video.beforeUpload",[e]))return!1;var t,n=e[0];if(null===d.opts.videoUploadURL||d.opts.videoUploadURL==K)return a=n,(l=new FileReader).addEventListener("load",function(){l.result;for(var e=atob(l.result.split(",")[1]),t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n));u(window.URL.createObjectURL(new Blob([new Uint8Array(t)],{type:a.type})),!1,null,U)}
vendor: 1,197 bytes, line 21
21,!1),p(),l.readAsDataURL(a),!1;if(n.size>d.opts.videoMaxSize)return N(q),!1;if(d.opts.videoAllowedTypes.indexOf(n.type.replace(/video\//g,""))<0)return N(X),!1;if(d.drag_support.formdata&&(t=d.drag_support.formdata?new FormData:null),t){var r;if(!1!==d.opts.videoUploadToS3)for(r in t.append("key",d.opts.videoUploadToS3.keyStart+(new Date).getTime()+"-"+(n.name||"untitled")),t.append("success_action_status","201"),t.append("X-Requested-With","xhr"),t.append("Content-Type",n.type),d.opts.videoUploadToS3.params)d.opts.videoUploadToS3.params.hasOwnProperty(r)&&t.append(r,d.opts.videoUploadToS3.params[r]);for(r in d.opts.videoUploadParams)d.opts.videoUploadParams.hasOwnProperty(r)&&t.append(r,d.opts.videoUploadParams[r]);t.append(d.opts.videoUploadParam,n);var i=d.opts.videoUploadURL;d.opts.videoUploadToS3&&(i=d.opts.videoUploadToS3.uploadURL?d.opts.videoUploadToS3.uploadURL:"https://"+d.opts.videoUploadToS3.region+".amazonaws.com/"+d.opts.videoUploadToS3.bucket);var o=d.core.getXHR(i,d.opts.videoUploadMethod);o.onload=function(){c.call(o,U)},o.onerror=m,o.upload.onprogress=v,o.onabort=y,p(),d.events.disableBlur(),d.edit.off(),d.events.enableBlur();var s=d.popups.get("video.insert");
21s&&s.off("abortUpload").on("abortUpload",function(){4!=o.readyState&&o.abort()}),o.send(t)}}var a,l}function N(e,t){d.edit.on(),U&&U.find("video").addClass("fr-error"),function(e){p();var t=d.popups.get("video.insert").find(".fr-video-progress-bar-layer");t.addClass("fr-error");var n=t.find("h3");n.text(e),d.events.disableBlur(),n.focus()}(d.language.translate("Something went wrong. Please try again.")),d.events.trigger("video.error",[{code:e,message:Y[e]},t])}function O(){if(U){var e=d.popups.get("video.size"),t=U.find("iframe, embed, video");e.find('input[name="width"]').val(t.get(0).style.width||t.attr("width")).trigger("change"),e.find('input[name="height"]').val(t.get(0).style.height||t.attr("height")).trigger("change")}}function D(e){if(e)return d.popups.onRefresh("video.size",O),!0;var t={buttons:'<div class="fr-buttons">'+d.button.buildList(d.opts.videoSizeButtons)+"</div>",size_layer:'<div class="fr-video-size-layer fr-layer fr-active" id="fr-video-size-layer-'+d.id+'"><div class="fr-video-group"><div class="fr-input-line"><input id="fr-video-size-layer-width-'+d.id+'" type="text" name="width" placeholder="'+d.language.translate("Width")+'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-video-size-layer-height-'+d.id+'" type="text" name="height" placeholder="'+d.language.translate("Height")+'" tabIndex="1"></div></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoSetSize" tabIndex="2" role="button">'+d.language.translate("Update")+"</button></div></div>"},n=d.popups.create("video.size",t);return d.events.$on(d.$wp,"scroll",function(){U&&d.popups.isVisible("video.size")&&(d.events.disableBlur(),a(U))}),n}function L(e){if(void 0===e&&(e=U),e){if(e.hasClass("fr-fvl"))return"left";if(e.hasClass("fr-fvr"))return"right";if(e.hasClass("fr-dvb")||e.hasClass("fr-dvi"))return"center";if("block"==e.css("display")){if("left"==e.css("text-algin"))return"left";if("right"==e.css("text-align"))return"right"}else{if("left"==e.css("float"))return"left";if("right"==e.css("float"))return"right"}}return"center"}function R(e){void 0===e&&(e=U);var t=e.css("float");return e.css("float","none"),"block"==e.css("display")?(e.css("float",""),e.css("float")!=t&&e.css("float",t),"block"):(e.css("float",""),e.css("float")!=t&&e.css("float",t),"inline")}function k(){if(U&&!1!==d.events.trigger("video.beforeRemove",[U])){var e=U;d.popups.hideAll(),A(!0),d.selection.setBefore(e.get(0))||d.selection.setAfter(e.get(0)),e.remove(),d.selection.restore(),d.html.fillEmptyBlocks(),d.events.trigger("video.removed",[e])}}function P(){o()}function M(e,t,n){!d.opts.htmlUntouched&&d.opts.useClasses?(e.removeClass("fr-fvl fr-fvr fr-dvb fr-dvi"),e.addClass("fr-fv"+n[0]+" fr-dv"+t[0])):"inline"==t?(e.css({display:"inline-block"}),"center"==n?e.css({"float":"none"}):"left"==n?e.css({"float":"left"}):e.css({"float":"right"})):(e.css({display:"block",clear:"both"}),"left"==n?e.css({textAlign:"left"}):"right"==n?e.css({textAlign:"right"}):e.css({textAlign:"center"}))}function I(){d.$el.find("video").filter(function(){return 0===Q(this).parents("span.fr-video").length}).wrap('<span class="fr-video" contenteditable="false"></span>'),d.$el.find("embed, iframe").filter(function(){if(d.browser.safari&&this.getAttribute("src")&&this.setAttribute("src",this.src),0<Q(this).parents("span.fr-video").length)return!1;for(var e=Q(this).attr("src"),t=0;t<Q.FE.VIDEO_PROVIDERS.length;t++){var n=Q.FE.VIDEO_PROVIDERS[t];if(n.test_regex.test(e)&&new RegExp(d.opts.videoAllowedProviders.join("|")).test(n.provider))return!0}return!1}).map(function(){return 0===Q(this).parents("object").length?this:Q(this).parents("object").get(0)}).wrap('<span class="fr-video" contenteditable="false"></span>');for(var e,t,n=d.$el.find("span.fr-video, video"),r=0;r<n.length;r++){var i=Q(n[r]);!d.opts.htmlUntouched&&d.opts.useClasses?((t=i).hasClass("fr-dvi")||t.hasClass("fr-dvb")||(t.addClass("fr-fv"+L(t)[0]),t.addClass("fr-dv"+R(t)[0])),d.opts.videoTextNear||i.removeClass("fr-dvi").addClass("fr-dvb")):d.opts.htmlUntouched||d.opts.useClasses||(M(e=i,e.hasClass("fr-dvb")?"block":e.hasClass("fr-dvi")?"inline":null,e.hasClass("fr-fvl")?"left":e.hasClass("fr-fvr")?"right":L(e)),e.removeClass("fr-dvb fr-dvi fr-fvr fr-fvl"))}n.toggleClass("fr-draggable",d.opts.videoMove)}function F(){if(U){d.selection.clear();var e=d.doc.createRange();e.selectNode(U.get(0)),d.selection.get().addRange(e)}}var $,B,H,U,V,W,K="https://i.froala.com/upload",j=2,z=3,G=4,q=5,X=6,Y={1:"Video cannot be loaded from the passed link."};return Y[j]="No link in upload response.",Y[z]="Error during file upload.",Y[G]="Parsing response failed.",Y[q]="File is too large.",Y[X]="Video file type is invali
21d.",Y[7]="Files can be uploaded only to same domain in IE 8 and IE 9.",d.shared.vid_exit_flag=!1,{_init:function(){d.events.on("drop",x,!0),d.events.on("mousedown window.mousedown",e),d.events.on("window.touchmove",C),d.events.on("mouseup window.mouseup",A),d.events.on("commands.mousedown",function(e){0<e.parents(".fr-toolbar").length&&A()}),d.events.on("video.hideResizer commands.undo commands.redo element.dropped",function(){A(!0)}),d.helpers.isMobile()&&(d.events.$on(d.$el,"touchstart","span.fr-video",function(){W=!1}),d.events.$on(d.$el,"touchmove",function(){W=!0})),d.events.on("html.set",I),I(),d.events.$on(d.$el,"mousedown","span.fr-video",function(e){e.stopPropagation()}),d.events.$on(d.$el,"click touchend","span.fr-video",function(e){if("false"==Q(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable"))return!0;r.call(this,e)}),d.events.on("keydown",function(e){var t=e.which;return!U||t!=Q.FE.KEYCODE.BACKSPACE&&t!=Q.FE.KEYCODE.DELETE?U&&t==Q.FE.KEYCODE.ESC?(A(!0),e.preventDefault(),!1):U&&t!=Q.FE.KEYCODE.F10&&!d.keys.isBrowserAction(e)?(e.preventDefault(),!1):void 0:(e.preventDefault(),k(),d.undo.saveStep(),!1)},!0),d.events.on("toolbar.esc",function(){if(U)return d.events.disableBlur(),d.events.focus(),!1},!0),d.events.on("toolbar.focusEditor",function(){if(U)return!1},!0),d.events.on("keydown",function(){d.$el.find("span.fr-video:empty").remove()}),d.$wp&&(S(),d.events.on("contentChanged",S)),s(!0),D(!0)},showInsertPopup:function(){var e=d.$tb.find('.fr-command[data-cmd="insertVideo"]'),t=d.popups.get("video.insert");if(t||(t=s()),o(),!t.hasClass("fr-active"))if(d.popups.refresh("video.insert"),d.popups.setContainer("video.insert",d.$tb),e.is(":visible")){var n=e.offset().left+e.outerWidth()/2,r=e.offset().top+(d.opts.toolbarBottom?10:e.outerHeight()-10);d.popups.show("video.insert",n,r,e.outerHeight())}else d.position.forSelection(t),d.popups.show("video.insert")},showLayer:function(e){var t,n,r=d.popups.get("video.insert");if(!U&&!d.opts.toolbarInline){var i=d.$tb.find('.fr-command[data-cmd="insertVideo"]');t=i.offset().left+i.outerWidth()/2,n=i.offset().top+(d.opts.toolbarBottom?10:i.outerHeight()-10)}d.opts.toolbarInline&&(n=r.offset().top-d.helpers.getPX(r.css("margin-top")),r.hasClass("fr-above")&&(n+=r.outerHeight())),r.find(".fr-layer").removeClass("fr-active"),r.find(".fr-"+e+"-layer").addClass("fr-active"),d.popups.show("video.insert",t,n,0),d.accessibility.focusPopup(r)},refreshByURLButton:function(e){d.popups.get("video.insert").find(".fr-video-by-url-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},refreshEmbedButton:function(e){d.popups.get("video.insert").find(".fr-video-embed-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},refreshUploadButton:function(e){d.popups.get("video.insert").find(".fr-video-upload-layer").hasClass("fr-active")&&e.addClass("fr-active").attr("aria-pressed",!0)},upload:_,insertByURL:function(e){void 0===e&&(e=(d.popups.get("video.insert").find('.fr-video-by-url-layer input[type="text"]').val()||"").trim());var t=null;if(/^http/.test(e)||(e="https://"+e),d.helpers.isURL(e))for(var n=0;n<Q.FE.VIDEO_PROVIDERS.length;n++){var r=Q.FE.VIDEO_PROVIDERS[n];if(r.test_regex.test(e)&&new RegExp(d.opts.videoAllowedProviders.join("|")).test(r.provider)){t=e.replace(r.url_regex,r.url_text),t=r.html.replace(/\{url\}/,t);break}}t?i(t):d.events.trigger("video.linkError",[e])},insertEmbed:function(e){void 0===e&&(e=d.popups.get("video.insert").find(".fr-video-embed-layer textarea").val()||""),0!==e.length&&Q.FE.VIDEO_EMBED_REGEX.test(e)?i(e):d.events.trigger("video.codeError",[e])},insert:i,align:function(e){U.removeClass("fr-fvr fr-fvl"),!d.opts.htmlUntouched&&d.opts.useClasses?"left"==e?U.addClass("fr-fvl"):"right"==e&&U.addClass("fr-fvr"):M(U,R(),e),F(),w(),n(),d.selection.clear()},refreshAlign:function(e){if(!U)return!1;e.find("> *:first").replaceWith(d.icon.create("video-align-"+L()))}
21,refreshAlignOnShow:function(e,t){U&&t.find('.fr-command[data-param1="'+L()+'"]').addClass("fr-active").attr("aria-selected",!0)},display:function(e){U.removeClass("fr-dvi fr-dvb"),!d.opts.htmlUntouched&&d.opts.useClasses?"inline"==e?U.addClass("fr-dvi"):"block"==e&&U.addClass("fr-dvb"):M(U,e,L()),F(),w(),n(),d.selection.clear()},refreshDisplayOnShow:function(e,t){U&&t.find('.fr-command[data-param1="'+R()+'"]').addClass("fr-active").attr("aria-selected",!0)},remove:k,hideProgressBar:o,showSizePopup:function(){var e=d.popups.get("video.size");e||(e=D()),o(),d.popups.refresh("video.size"),d.popups.setContainer("video.size",d.$sc);var t=U.find("iframe, embed, video"),n=t.offset().left+t.width()/2,r=t.offset().top+t.height();d.popups.show("video.size",n,r,t.height())},replace:function(){var e=d.popups.get("video.insert");e||(e=s()),d.popups.isVisible("video.insert")||(o(),d.popups.refresh("video.insert"),d.popups.setContainer("video.insert",d.$sc));var t=U.offset().left+U.width()/2,n=U.offset().top+U.height();d.popups.show("video.insert",t,n,U.outerHeight())},back:function(){U?(d.events.disableBlur(),U.trigger("click")):(d.events.disableBlur(),d.selection.restore(),d.events.enableBlur(),d.popups.hide("video.insert"),d.toolbar.showInline())},setSize:function(e,t){if(U){var n=d.popups.get("video.size"),r=U.find("iframe, embed, video");r.css("width",e||n.find('input[name="width"]').val()),r.css("height",t||n.find('input[name="height"]').val()),r.get(0).style.width&&r.removeAttr("width"),r.get(0).style.height&&r.removeAttr("height"),n.find("input:focus").blur(),setTimeout(function(){U.trigger("click")},d.helpers.isAndroid()?50:0)}},get:function(){return U}}},Q.FE.RegisterCommand("insertVideo",{title:"Insert Video",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("video.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("video.insert")):this.video.showInsertPopup()},plugin:"video"}),Q.FE.DefineIcon("insertVideo",{NAME:"video-camera",FA5NAME:"camera"}),Q.FE.DefineIcon("videoByURL",{NAME:"link"}),Q.FE.RegisterCommand("videoByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-by-url")},refresh:function(e){this.video.refreshByURLButton(e)}}),Q.FE.DefineIcon("videoEmbed",{NAME:"code"}),Q.FE.RegisterCommand("videoEmbed",{title:"Embedded Code",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-embed")},refresh:function(e){this.video.refreshEmbedButton(e)}}),Q.FE.DefineIcon("videoUpload",{NAME:"upload"}),Q.FE.RegisterCommand("videoUpload",{title:"Upload Video",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-upload")},refresh:function(e){this.video.refreshUploadButton(e)}}),Q.FE.RegisterCommand("videoInsertByURL",{undo:!0,focus:!0,callback:function(){this.video.insertByURL()}}),Q.FE.RegisterCommand("videoInsertEmbed",{undo:!0,focus:!0,callback:function(){this.video.insertEmbed()}}),Q.FE.DefineIcon("videoDisplay",{NAME:"star"}),Q.FE.RegisterCommand("videoDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(e,t){this.video.display(t)},refresh:function(e){this.opts.videoTextNear||e.addClass("fr-hidden")},refreshOnShow:function(e,t){this.video.refreshDisplayOnShow(e,t)}}),Q.FE.DefineIcon("video-align",{NAME:"align-left"}),Q.FE.DefineIcon("video-align-left",{NAME:"align-left"}),Q.FE.DefineIcon("video-align-right",{NAME:"align-right"}),Q.FE.DefineIcon("video-align-center",{NAME:"align-justify"}),Q.FE.DefineIcon("videoAlign",{NAME:"align-center"}),Q.FE.RegisterCommand("videoAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=Q.FE.COMMANDS.videoAlign.options;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="videoAlign" data-param1="'+n+'" title="'+this.language.translate(t[n])+'">'+this.icon.create("video-align-"+n)+'<span class="fr-sr-only">'+this.language.translate(t[n])+"</span></a></li>");return e+"</ul>"},callback:function(e,t){this.video.align(t)},refresh:function(e){this.video.refreshAlign(e)},refreshOnShow:function(e,t){this.video.refreshAlignOnShow(e,t)}}),Q.FE.DefineIcon("videoReplace",{NAME:"exchange",FA5NAME:"exchange-alt"}),Q.FE.RegisterCommand("videoReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.video.replace()}}),Q.FE.DefineIcon("videoRemove",{NAME:"trash"}),Q.FE.RegisterCommand("videoRemove",{title:"Remove",callback:function(){this.video.remove()}}),Q.FE.DefineIcon("videoSize",{NAME:"arrows-alt"}
21),Q.FE.RegisterCommand("videoSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.video.showSizePopup()}}),Q.FE.DefineIcon("videoBack",{NAME:"arrow-left"}),Q.FE.RegisterCommand("videoBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.video.back()},refresh:function(e){this.video.get()||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),Q.FE.RegisterCommand("videoDismissError",{title:"OK",undo:!1,callback:function(){this.video.hideProgressBar(!0)}}),Q.FE.RegisterCommand("videoSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.video.setSize()}})});

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.