if(!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function ir(n,t){t=t||u;var i=t.createElement("script");i.text=n;t.head.appendChild(i).parentNode.removeChild(i)}function fi(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return"function"!==r&&!i.isWindow(n)&&("array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n)}function l(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function oi(n,t,r){return i.isFunction(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return ot.call(t,n)>-1!==r}):er.test(t)?i.filter(t,n,r):(t=i.filter(t,n),i.grep(n,function(n){return ot.call(t,n)>-1!==r&&1===n.nodeType}))}function ar(n,t){while((n=n[t])&&1!==n.nodeType);return n}function ne(n){var t={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function nt(n){return n}function pt(n){throw n;}function vr(n,t,r,u){var f;try{n&&i.isFunction(f=n.promise)?f.call(n).done(t).fail(r):n&&i.isFunction(f=n.then)?f.call(n,t,r):t.apply(void 0,[n].slice(u))}catch(n){r.apply(void 0,[n])}}function bt(){u.removeEventListener("DOMContentLoaded",bt);n.removeEventListener("load",bt);i.ready()}function ht(){this.expando=i.expando+ht.uid++}function re(n){return"true"===n||"false"!==n&&("null"===n?null:n===+n+""?+n:te.test(n)?JSON.parse(n):n)}function pr(n,t,i){var r;if(void 0===i&&1===n.nodeType)if(r="data-"+t.replace(ie,"-$&").toLowerCase(),i=n.getAttribute(r),"string"==typeof i){try{i=re(i)}catch(u){}e.set(n,t,i)}else i=void 0;return i}function kr(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||"px"!==o&&+s)&&ct.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f/=e,i.style(n,t,f+o);while(e!==(e=c()/s)&&1!==e&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function ue(n){var r,f=n.ownerDocument,u=n.nodeName,t=si[u];return t?t:(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),"none"===t&&(t="block"),si[u]=t,t)}function tt(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)u=n[i],u.style&&(e=u.style.display,t?("none"===e&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),""===u.style.display&&kt(u)&&(f[i]=ue(u))):"none"!==e&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)null!=f[i]&&(n[i].style.display=f[i]);return n}function o(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&l(n,t)?i.merge([n],r):r}function hi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function iu(n,t,r,u,f){for(var e,s,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||0===e)if("object"===i.type(e))i.merge(y,e.nodeType?[e]:e);else if(tu.test(e)){for(s=s||h.appendChild(t.createElement("div")),p=(gr.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,s.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)s=s.lastChild;i.merge(y,s.childNodes);s=h.firstChild;s.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];)if(u&&i.inArray(e,u)>-1)f&&f.push(e);else if(w=i.contains(e.ownerDocument,e),s=o(h.appendChild(e),"script"),w&&hi(s),r)for(v=0;e=s[v++];)nu.test(e.type||"")&&r.push(e);return h}function gt(){return!0}function it(){return!1}function uu(){try{return u.activeElement}catch(n){}}function ci(n,t,r,u,f,e){var o,s;if("object"==typeof t){"string"!=typeof r&&(u=u||r,r=void 0);for(s in t)ci(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),f===!1)f=it;else if(!f)return n;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function fu(n,t){return l(n,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")?i(">tbody",n)[0]||n:n}function ae(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function ve(n){var t=ce.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function eu(n,t){var u,c,f,s,h,l,a,o;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),o=s.events)){delete h.handle;h.events={};for(f in o)for(u=0,c=o[f].length;u<c;u++)i.event.add(t,f,o[f][u])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function ye(n,t){var i=t.nodeName.toLowerCase();"input"===i&&dr.test(n.type)?t.checked=n.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=n.defaultValue)}function rt(n,t,u,e){t=gi.apply([],t);var l,p,c,a,s,w,h=0,v=n.length,k=v-1,y=t[0],b=i.isFunction(y);if(b||v>1&&"string"==typeof y&&!f.checkClone&&he.test(y))return n.each(function(i){var r=n.eq(i);b&&(t[0]=y.call(this,i,r.html()));rt(r,t,u,e)});if(v&&(l=iu(t,n[0].ownerDocument,!1,n,e),p=l.firstChild,1===l.childNodes.length&&(l=p),p||e)){for(c=i.map(o(l,"script"),ae),a=c.length;h<v;h++)s=l,h!==k&&(s=i.clone(s,!0,!0),a&&i.merge(c,o(s,"script"))),u.call(n[h],s,h);if(a)for(w=c[c.length-1].ownerDocument,i.map(c,ve),h=0;h<a;h++)s=c[h],nu.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(w,s)&&(s.src?i._evalUrl&&i._evalUrl(s.src):ir(s.textContent.replace(le,""),w))}return n}function ou(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(o(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&hi(o(u,"script")),u.parentNode.removeChild(u));return n}function lt(n,t,r){var o,s,h,u,e=n.style;return r=r||ni(n),r&&(u=r.getPropertyValue(t)||r[t],""!==u||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!f.pixelMarginRight()&&li.test(u)&&su.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=u,u=r.width,e.width=o,e.minWidth=s,e.maxWidth=h)),void 0!==u?u+"":u}function hu(n,t){return{get:function(){return n()?void delete this.get:(this.get=t).apply(this,arguments)}}}function be(n){if(n in vu)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=au.length;t--;)if(n=au[t]+i,n in vu)return n}function yu(n){var t=i.cssProps[n];return t||(t=i.cssProps[n]=be(n)||n),t}function pu(n,t,i){var r=ct.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function wu(n,t,r,u,f){for(var o=0,e=r===(u?"border":"content")?4:"width"===t?1:0;e<4;e+=2)"margin"===r&&(o+=i.css(n,r+b[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+b[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+b[e]+"Width",!0,f))):(o+=i.css(n,"padding"+b[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+b[e]+"Width",!0,f)));return o}function bu(n,t,r){var o,e=ni(n),u=lt(n,t,e),s="border-box"===i.css(n,"boxSizing",!1,e);return li.test(u)?u:(o=s&&(f.boxSizingReliable()||u===n.style[t]),"auto"===u&&(u=n["offset"+t[0].toUpperCase()+t.slice(1)]),u=parseFloat(u)||0,u+wu(n,t,r||(s?"border":"content"),o,e)+"px")}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function ai(){ti&&(u.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(ai):n.setTimeout(ai,i.fx.interval),i.fx.tick())}function gu(){return n.setTimeout(function(){ut=void 0}),ut=i.now()}function ii(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=b[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function nf(n,t,i){for(var u,f=(a.tweeners[t]||[]).concat(a.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function ke(n,t,u){var f,y,w,c,b,s,o,l,k="width"in t||"height"in t,v=this,p={},h=n.style,a=n.nodeType&&kt(n),e=r.get(n,"fxshow");u.queue||(c=i._queueHooks(n,"fx"),null==c.unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})}));for(f in t)if(y=t[f],ku.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if(s=!i.isEmptyObject(t),s||!i.isEmptyObject(p)){k&&1===n.nodeType&&(u.overflow=[h.overflow,h.overflowX,h.overflowY],o=e&&e.display,null==o&&(o=r.get(n,"display")),l=i.css(n,"display"),"none"===l&&(o?l=o:(tt([n],!0),o=n.style.display||o,l=i.css(n,"display"),tt([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(s||(v.done(function(){h.display=o}),null==o&&(l=h.display,o="none"===l?"":l)),h.display="inline-block"));u.overflow&&(h.overflow="hidden",v.always(function(){h.overflow=u.overflow[0];h.overflowX=u.overflow[1];h.overflowY=u.overflow[2]}));s=!1;for(f in p)s||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&tt([n],!0),v.done(function(){a||tt([n]);r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),s=nf(a?e[f]:0,f,v),f in e||(e[f]=s.start,a&&(s.end=s.start,s.start=0))}}function de(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function a(n,t,r){var e,o,s=0,l=a.prefilters.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=ut||gu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?t:(e||f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ut||gu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?(f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u,t])):f.rejectWith(n,[u,t]),this}}),h=u.props;for(de(h,u.opts.specialEasing);s<l;s++)if(e=a.prefilters[s].call(u,n,h,u.opts))return i.isFunction(e.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(e.stop,e)),e;return i.map(h,nf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u}function k(n){var t=n.match(h)||[];return t.join(" ")}function d(n){return n.getAttribute&&n.getAttribute("class")||""}function pi(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||ge.test(n)?u(n,i):pi(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)pi(n+"["+f+"]",t[f],r,u)}function cf(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])"+"===u[0]?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function lf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===wi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ki(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function so(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function ho(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}var p=[],u=n.document,pf=Object.getPrototypeOf,w=p.slice,gi=p.concat,ui=p.push,ot=p.indexOf,vt={},nr=vt.toString,yt=vt.hasOwnProperty,tr=yt.toString,wf=tr.call(Object),f={},rr="3.2.1",i=function(n,t){return new i.fn.init(n,t)},bf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,kf=/^-ms-/,df=/-([a-z])/g,gf=function(n,t){return t.toUpperCase()},y,ei,er,or,sr,hr,cr,lr,h,yr,wt,v,st,si,tu,ut,ti,ku,du,tf,ft,rf,uf,ff,vi,af,et,di,ri,vf,yf;i.fn=i.prototype={jquery:rr,constructor:i,length:0,toArray:function(){return w.call(this)},get:function(n){return null==n?w.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(w.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ui,sort:p.sort,splice:p.splice};i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if(null!=(e=arguments[u]))for(f in e)r=n[f],t=e[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(o?(o=!1,s=r&&Array.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(rr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isWindow:function(n){return null!=n&&n===n.window},isNumeric:function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==nr.call(n))&&(!(t=pf(n))||(i=yt.call(t,"constructor")&&t.constructor,"function"==typeof i&&tr.call(i)===wf))},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?vt[nr.call(n)]||"object":typeof n},globalEval:function(n){ir(n)},camelCase:function(n){return n.replace(kf,"ms-").replace(df,gf)},each:function(n,t){var r,i=0;if(fi(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(bf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(fi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ui.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:ot.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(fi(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return gi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;if("string"==typeof t&&(u=n[t],t=n,n=u),i.isFunction(n))return f=w.call(arguments,2),r=function(){return n.apply(t||this,f.concat(w.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r},now:Date.now,support:f});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=p[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){vt["[object "+t+"]"]=t.toLowerCase()});y=function(n){function u(n,t,r,u){var s,w,l,a,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==v&&9!==v&&11!==v)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==v&&(d=cr.exec(n)))if(s=d[1]){if(9===v){if(!(l=t.getElementById(s)))return r;if(l.id===s)return r.push(l),r}else if(p&&(l=p.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=d[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(1!==v)p=t,g=n;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=f),y=ft(n),w=y.length;w--;)y[w]="#"+a+" "+yt(y[w]);g=y.join(",");p=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(nt){}finally{a===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&"parentNode"===e,s=di++;return t.first?function(t,i,u){while(t=t[r])if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((1===t.nodeType||o)&&n(t,i,h))return!0}else while(t=t[r])if(1===t.nodeType||o)if(a=t[f]||(t[f]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[e]=y,y[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||yr(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?b:wt(b,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[pt(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}e.push(u)}return ui(e)}function pr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&null!=(y=rt[p]);p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,e,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return n.disabled===!0&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(wr){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}e=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return!!t&&"HTML"!==t.nodeName};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement?(i=l,s=i.documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i,u,f,r=t.getElementById(n);if(r){if(i=r.getAttributeNode("id"),i&&i.value===n)return[r];for(f=t.getElementsByName(n),u=0;r=f[u++];)if(i=r.getAttributeNode("id"),i&&i.value===n)return[r]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&r||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return wi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i):i};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(f){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&gi.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):void 0;return void 0!==u?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.escape=function(n){return(n+"").replace(vi,yi)};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(e?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;b=k="only"===n&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(1===c.nodeType&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((e?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&(y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=rr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,t){var r,u=[],e=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=lt(n,pr(e,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if(f=s[0]=s[0].slice(0),f.length>2&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0],!i)return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ni.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),n=u.length&&yt(f),!n)return k.apply(r,u),r;break}}}return(c||bt(n,s))(u,i,!h,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ii("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ii(dt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=y;i.expr=y.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=y.uniqueSort;i.text=y.getText;i.isXMLDoc=y.isXML;i.contains=y.contains;i.escapeSelector=y.escape;var g=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},ur=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},fr=i.expr.match.needsContext;ei=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;er=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(oi(this,n||[],!1))},not:function(n){return this.pushStack(oi(this,n||[],!0))},is:function(n){return!!oi(this,"string"==typeof n&&fr.test(n)?i(n):n||[],!1).length}});sr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;hr=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||or,"string"==typeof n){if(f="<"===n[0]&&">"===n[n.length-1]&&n.length>=3?[null,n,null]:sr.exec(n),!f||!f[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),ei.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}return e=u.getElementById(f[2]),e&&(this[0]=e,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):i.isFunction(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)};hr.prototype=i.fn;or=i(u);cr=/^(?:parents|prev(?:Until|All))/;lr={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!fr.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?ot.call(i(n),this[0]):ot.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return g(n,"parentNode")},parentsUntil:function(n,t,i){return g(n,"parentNode",i)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return g(n,"nextSibling")},prevAll:function(n){return g(n,"previousSibling")},nextUntil:function(n,t,i){return g(n,"nextSibling",i)},prevUntil:function(n,t,i){return g(n,"previousSibling",i)},siblings:function(n){return ur((n.parentNode||{}).firstChild,n)},children:function(n){return ur(n.firstChild)},contents:function(n){return l(n,"iframe")?n.contentDocument:(l(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(lr[n]||i.uniqueSort(f),cr.test(n)&&f.reverse()),this.pushStack(f)}});h=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n="string"==typeof n?ne(n):i.extend({},n);var e,r,h,u,t=[],o=[],f=-1,c=function(){for(u=u||n.once,h=e=!0;o.length;f=-1)for(r=o.shift();++f<t.length;)t[f].apply(r[0],r[1])===!1&&n.stopOnFalse&&(f=t.length,r=!1);n.memory||(r=!1);e=!1;u&&(t=r?[]:"")},s={add:function(){return t&&(r&&!e&&(f=t.length-1,o.push(r)),function u(r){i.each(r,function(r,f){i.isFunction(f)?n.unique&&s.has(f)||t.push(f):f&&f.length&&"string"!==i.type(f)&&u(f)})}(arguments),r&&!e&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),u<=f&&f--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return u=o=[],t=r="",this},disabled:function(){return!t},lock:function(){return u=o=[],r||e||(t=r=""),this},locked:function(){return!!u},fireWith:function(n,t){return u||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),e||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(t){var u=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],e="pending",f={state:function(){return e},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return f.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(u,function(u,f){var e=i.isFunction(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,f){function o(t,r,u,f){return function(){var s=this,h=arguments,l=function(){var n,c;if(!(t<e)){if(n=u.apply(s,h),n===r.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then;i.isFunction(c)?f?c.call(n,o(e,r,nt,f),o(e,r,pt,f)):(e++,c.call(n,o(e,r,nt,f),o(e,r,pt,f),o(e,r,nt,r.notifyWith))):(u!==nt&&(s=void 0,h=[n]),(f||r.resolveWith)(s,h))}},c=f?l:function(){try{l()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,c.stackTrace);t+1>=e&&(u!==pt&&(s=void 0,h=[n]),r.rejectWith(s,h))}};t?c():(i.Deferred.getStackHook&&(c.stackTrace=i.Deferred.getStackHook()),n.setTimeout(c))}}var e=0;return i.Deferred(function(n){u[0][3].add(o(0,n,i.isFunction(f)?f:nt,n.notifyWith));u[1][3].add(o(0,n,i.isFunction(t)?t:nt));u[2][3].add(o(0,n,i.isFunction(r)?r:pt))}).promise()},promise:function(n){return null!=n?i.extend(n,f):f}},r={};return i.each(u,function(n,t){var i=t[2],o=t[5];f[t[1]]=i.add;o&&i.add(function(){e=o},u[3-n][2].disable,u[0][2].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),f.promise(r),t&&t.call(r,r),r},when:function(n){var f=arguments.length,t=f,e=Array(t),u=w.call(arguments),r=i.Deferred(),o=function(n){return function(t){e[n]=this;u[n]=arguments.length>1?w.call(arguments):t;--f||r.resolveWith(e,u)}};if(f<=1&&(vr(n,r.done(o(t)).resolve,r.reject,!f),"pending"===r.state()||i.isFunction(u[t]&&u[t].then)))return r.then();while(t--)vr(u[t],o(t),r.reject);return r.promise()}});yr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&yr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};wt=i.Deferred();i.fn.ready=function(n){return wt.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0||wt.resolveWith(u,[i]))}});i.ready.then=wt.then;"complete"===u.readyState||"loading"!==u.readyState&&!u.documentElement.doScroll?n.setTimeout(i.ready):(u.addEventListener("DOMContentLoaded",bt),n.addEventListener("load",bt));v=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)v(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;s<c;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e};st=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};ht.uid=1;ht.prototype={cache:function(n){var t=n[this.expando];return t||(t={},st(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,r){var u,f=this.cache(n);if("string"==typeof t)f[i.camelCase(t)]=r;else for(u in t)f[i.camelCase(u)]=t[u];return f},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][i.camelCase(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(Array.isArray(t)?t=t.map(i.camelCase):(t=i.camelCase(t),t=(t in r)?[t]:t.match(h)||[]),u=t.length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new ht,e=new ht,te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ie=/[A-Z]/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(void 0===n){if(this.length&&(s=e.get(u),1===u.nodeType&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,0===f.indexOf("data-")&&(f=i.camelCase(f.slice(5)),pr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return"object"==typeof n?this.each(function(){e.set(this,n)}):v(this,function(t){var i;if(u&&void 0===t){if((i=e.get(u,n),void 0!==i)||(i=pr(u,n),void 0!==i))return i}else this.each(function(){e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var wr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ct=new RegExp("^(?:([+-])=|)("+wr+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],kt=function(n,t){return n=t||n,"none"===n.style.display||""===n.style.display&&i.contains(n.ownerDocument,n)&&"none"===i.css(n,"display")},br=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};si={};i.fn.extend({show:function(){return tt(this,!0)},hide:function(){return tt(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){kt(this)?i(this).show():i(this).hide()})}});var dr=/^(?:checkbox|radio)$/i,gr=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,nu=/^$|\/(?:java|ecma)script/i,c={option:[1,"<select multiple='multiple'>","<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;tu=/<|&#?\w+;/;!function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var dt=u.documentElement,fe=/^key/,ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ru=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,c,s,l,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),e&&i.find.matchesSelector(dt,e),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),t=(t||"").match(h)||[""],b=t.length;b--;)w=ru.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},c=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,c),c.handler.guid||(c.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,l,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;)if(c=ru.exec(t[p])||[],o=d=c[1],b=(c[2]||"").split(".").sort(),o){for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(y,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var t=i.event.fix(n),u,c,s,e,f,l,h=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(h[0]=t,u=1;u<arguments.length;u++)h[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,t)!==!1){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,s=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),void 0!==s&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,e,u,o,s,c=[],h=t.delegateCount,r=n.target;if(h&&r.nodeType&&!("click"===n.type&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||r.disabled!==!0)){for(o=[],s={},f=0;f<h;f++)e=t[f],u=e.selector+" ",void 0===s[u]&&(s[u]=e.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),s[u]&&o.push(e);o.length&&c.push({elem:r,handlers:o})}return r=this,h<t.length&&c.push({elem:r,handlers:t.slice(h)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:i.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==uu()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===uu()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&l(this,"input"))return this.click(),!1},_default:function(n){return l(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?gt:it,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={constructor:i.Event,isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=gt;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=gt;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=gt;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var t=n.button;return null==n.which&&fe.test(n.type)?null!=n.charCode?n.charCode:n.keyCode:!n.which&&void 0!==t&&ee.test(n.type)?1&t?1:2&t?3:4&t?2:0:n.which}},i.event.addProp);i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return ci(this,n,t,i,r)},one:function(n,t,i,r){return ci(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return t!==!1&&"function"!=typeof t||(r=t,t=void 0),r===!1&&(r=it),this.each(function(){i.event.remove(this,n,r,t)})}});var oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,se=/<script|<style|<link/i,he=/checked\s*(?:[^=]|=\s*.checked.)/i,ce=/^true\/(.*)/,le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(oe,"<$1><\/$2>")},clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!(f.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=o(h),s=o(n),u=0,c=s.length;u<c;u++)ye(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;u<c;u++)eu(s[u],e[u]);else eu(n,h);return e=o(h,"script"),e.length>0&&hi(e,!l&&o(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,o=0;void 0!==(t=n[o]);o++)if(st(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[e.expando]&&(t[e.expando]=void 0)}}});i.fn.extend({detach:function(n){return ou(this,n,!0)},remove:function(n){return ou(this,n)},text:function(n){return v(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return rt(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=fu(this,n);t.appendChild(n)}})},prepend:function(){return rt(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=fu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return v(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!se.test(n)&&!c[(gr.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},1===t.nodeType&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return rt(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(o(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ui.apply(f,u.get());return this.pushStack(f)}});var su=/^margin/,li=new RegExp("^("+wr+")(?!px)[a-z%]+$","i"),ni=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)};!function(){function r(){if(t){t.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";t.innerHTML="";dt.appendChild(e);var i=n.getComputedStyle(t);o="1%"!==i.top;c="2px"===i.marginLeft;s="4px"===i.width;t.style.marginRight="50%";h="4px"===i.marginRight;dt.removeChild(e);t=null}}var o,s,h,c,e=u.createElement("div"),t=u.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===t.style.backgroundClip,e.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",e.appendChild(t),i.extend(f,{pixelPosition:function(){return r(),o},boxSizingReliable:function(){return r(),s},pixelMarginRight:function(){return r(),h},reliableMarginLeft:function(){return r(),c}}))}();var pe=/^(none|table(?!-c[ea]).+)/,cu=/^--/,we={position:"absolute",visibility:"hidden",display:"block"},lu={letterSpacing:"0",fontWeight:"400"},au=["Webkit","Moz","ms"],vu=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=lt(n,"opacity");return""===i?"1":i}}}},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:"cssFloat"},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var e,s,o,c=i.camelCase(t),l=cu.test(t),h=n.style;return l||(t=yu(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r?o&&"get"in o&&void 0!==(e=o.get(n,!1,u))?e:h[t]:(s=typeof r,"string"===s&&(e=ct.exec(r))&&e[1]&&(r=kr(n,t,e),s="number"),null!=r&&r===r&&("number"===s&&(r+=e&&e[3]||(i.cssNumber[c]?"":"px")),f.clearCloneStyle||""!==r||0!==t.indexOf("background")||(h[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?h.setProperty(t,r):h[t]=r)),void 0)}},css:function(n,t,r,u){var f,o,e,s=i.camelCase(t),h=cu.test(t);return h||(t=yu(s)),e=i.cssHooks[t]||i.cssHooks[s],e&&"get"in e&&(f=e.get(n,!0,r)),void 0===f&&(f=lt(n,t,u)),"normal"===f&&t in lu&&(f=lu[t]),""===r||r?(o=parseFloat(f),r===!0||isFinite(o)?o||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!pe.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?bu(n,t,u):br(n,we,function(){return bu(n,t,u)})},set:function(n,r,u){var f,e=u&&ni(n),o=u&&wu(n,t,u,"border-box"===i.css(n,"boxSizing",!1,e),e);return o&&(f=ct.exec(r))&&"px"!==(f[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),pu(n,r,o)}}});i.cssHooks.marginLeft=hu(f.reliableMarginLeft,function(n,t){if(t)return(parseFloat(lt(n,"marginLeft"))||n.getBoundingClientRect().left-br(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};su.test(n)||(i.cssHooks[n+t].set=pu)});i.fn.extend({css:function(n,t){return v(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ni(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var t,r=s.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||null==n.elem.style[i.cssProps[n.prop]]&&!i.cssHooks[n.prop]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}};s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=s.prototype.init;i.fx.step={};ku=/^(?:toggle|show|hide)$/;du=/queueHooks$/;i.Animation=i.extend(a,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return kr(i.elem,n,ct.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(h);for(var r,u=0,f=n.length;u<f;u++)r=n[u],a.tweeners[r]=a.tweeners[r]||[],a.tweeners[r].unshift(t)},prefilters:[ke],prefilter:function(n,t){t?a.prefilters.unshift(n):a.prefilters.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return i.fx.off?u.duration=0:"number"!=typeof u.duration&&(u.duration=u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default),null!=u.queue&&u.queue!==!0||(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(kt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=a(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&du.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(ii(t,!0),n,i,u)}});i.each({slideDown:ii("show"),slideUp:ii("hide"),slideToggle:ii("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(ut=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();ut=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){ti||(ti=!0,ai())};i.fx.stop=function(){ti=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox";f.checkOn=""!==n.value;f.optSelected=i.selected;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue="t"===n.value}();ft=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return v(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(f=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?tf:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):f&&"set"in f&&void 0!==(u=f.set(n,r,t))?u:(n.setAttribute(t,r+""),r):f&&"get"in f&&null!==(u=f.get(n,t))?u:(u=i.find.attr(n,t),null==u?void 0:u))},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&"radio"===t&&l(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(h);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});tf={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ft[t]||i.find.attr;ft[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ft[u],ft[u]=f,f=null!=r(n,t,i)?u:null,ft[u]=e),f}});rf=/^(?:input|select|textarea|button)$/i;uf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return v(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):rf.test(n.nodeName)||uf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,t,r,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,d(this)))});if("string"==typeof n&&n)for(o=n.match(h)||[];t=this[c++];)if(u=d(t),r=1===t.nodeType&&" "+k(u)+" "){for(s=0;f=o[s++];)r.indexOf(" "+f+" ")<0&&(r+=f+" ");e=k(r);u!==e&&t.setAttribute("class",e)}return this},removeClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,d(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof n&&n)for(o=n.match(h)||[];r=this[c++];)if(u=d(r),t=1===r.nodeType&&" "+k(u)+" "){for(s=0;f=o[s++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=k(t);u!==e&&r.setAttribute("class",e)}return this},toggleClass:function(n,t){var u=typeof n;return"boolean"==typeof t&&"string"===u?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,d(this),t),t)}):this.each(function(){var t,e,f,o;if("string"===u)for(e=0,f=i(this),o=n.match(h)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else void 0!==n&&"boolean"!==u||(t=d(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&(" "+k(d(t))+" ").indexOf(i)>-1)return!0;return!1}});ff=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(ff,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:k(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(t=o[r],(t.selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};f.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});vi=/^(?:focusinfocus|focusoutblur)$/;i.extend(i.event,{trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=yt.call(t,"type")?t.type:t,y=yt.call(t,"namespace")?t.namespace.split("."):[];if(s=c=e=e||u,3!==e.nodeType&&8!==e.nodeType&&!vi.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=e),f=null==f?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,vi.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&st(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||l._default&&l._default.apply(p.pop(),f)!==!1||!st(e)||a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=void 0,c&&(e[a]=c)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});f.focusin="onfocusin"in n;f.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var at=n.location,ef=i.now(),yi=/\?/;i.parseXML=function(t){var r;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=void 0}return r&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var ge=/\[\]$/,of=/\r?\n/g,no=/^(?:submit|button|image|reset|file)$/i,to=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){var r=i.isFunction(t)?t():t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==r?"":r)};if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)pi(r,n[r],t,f);return u.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&to.test(this.nodeName)&&!no.test(n)&&(this.checked||!dr.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(of,"\r\n")}}):{name:t.name,value:r.replace(of,"\r\n")}}).get()}});var io=/%20/g,ro=/#.*$/,uo=/([?&])_=[^&]*/,fo=/^(.*?):[ \t]*([^\r\n]*)$/gm,eo=/^(?:GET|HEAD)$/,oo=/^\/\//,sf={},wi={},hf="*/".concat("*"),bi=u.createElement("a");return bi.href=at.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:at.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(at.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":hf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ki(ki(n,i.ajaxSettings),t):ki(i.ajaxSettings,n)},ajaxPrefilter:cf(sf),ajaxTransport:cf(wi),ajax:function(t,r){function b(t,r,u,h){var y,rt,g,p,b,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=h||"",e.readyState=t>0?4:0,y=t>=200&&t<300||304===t,u&&(p=so(f,e,u)),p=ho(f,p,e,y),y?(f.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),204===t||"HEAD"===f.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,g=p.error,y=!g)):(g=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",y?tt.resolveWith(c,[rt,l,e]):tt.rejectWith(c,[e,l,g]),e.statusCode(w),w=void 0,v&&nt.trigger(y?"ajaxSuccess":"ajaxError",[e,f,y?rt:g]),it.fireWith(c,[e,l]),v&&(nt.trigger("ajaxComplete",[e,f]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,y,d,l,s,v,g,p,f=i.ajaxSetup({},r),c=f.context||f,nt=f.context&&(c.nodeType||c.jquery)?i(c):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=f.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!y)for(y={};t=fo.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return a&&a.abort(t),b(0,t),this}};if(tt.promise(e),f.url=((t||f.url||at.href)+"").replace(oo,at.protocol+"//"),f.type=r.method||r.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(h)||[""],null==f.crossDomain){l=u.createElement("a");try{l.href=f.url;l.href=l.href;f.crossDomain=bi.protocol+"//"+bi.host!=l.protocol+"//"+l.host}catch(et){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=i.param(f.data,f.traditional)),lf(sf,f,r,e),s)return e;v=i.event&&f.global;v&&0==i.active++&&i.event.trigger("ajaxStart");f.type=f.type.toUpperCase();f.hasContent=!eo.test(f.type);o=f.url.replace(ro,"");f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(io,"+")):(p=f.url.slice(o.length),f.data&&(o+=(yi.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(o=o.replace(uo,"$1"),p=(yi.test(o)?"&":"?")+"_="+ef+++p),f.url=o+p);f.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(f.data&&f.hasContent&&f.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",f.contentType);e.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+hf+"; q=0.01":""):f.accepts["*"]);for(g in f.headers)e.setRequestHeader(g,f.headers[g]);if(f.beforeSend&&(f.beforeSend.call(c,e,f)===!1||s))return e.abort();if(ft="abort",it.add(f.complete),e.done(f.success),e.fail(f.error),a=lf(wi,f,r,e)){if(e.readyState=1,v&&nt.trigger("ajaxSend",[e,f]),s)return e;f.async&&f.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},f.timeout));try{s=!1;a.send(rt,b)}catch(et){if(s)throw et;b(-1,et)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(i.isFunction(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},af={0:200,1223:204},et=i.ajaxSettings.xhr(),f.cors=!!et&&"withCredentials"in et,f.ajax=et=!!et,i.ajaxTransport(function(t){var i,r;if(f.cors||et&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(af[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),di=[],ri=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=di.pop()||i.expando+"_"+ef++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ri.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ri.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ri,"$1"+f):t.jsonp!==!1&&(t.url+=(yi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){void 0===e?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,di.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=void 0}),"script"}),f.createHTMLDocument=function(){var n=u.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",2===n.childNodes.length}(),i.parseHTML=function(n,t,r){if("string"!=typeof n)return[];"boolean"==typeof t&&(r=t,t=!1);var s,e,o;return t||(f.createHTMLDocument?(t=u.implementation.createHTMLDocument(""),s=t.createElement("base"),s.href=u.location.href,t.head.appendChild(s)):t=u),e=ei.exec(n),o=!r&&[],e?[t.createElement(e[1])]:(e=iu([n],t,o),o&&o.length&&i(o).remove(),i.merge([],e.childNodes))},i.fn.load=function(n,t,r){var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=k(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(o="POST"),f.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,i.extend({},u)));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,f,e,t=this[0];if(t)return t.getClientRects().length?(f=t.getBoundingClientRect(),r=t.ownerDocument,u=r.documentElement,e=r.defaultView,{top:f.top+e.pageYOffset-u.clientTop,left:f.left+e.pageXOffset-u.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var t,r,u=this[0],n={top:0,left:0};return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(t=this.offsetParent(),r=this.offset(),l(t[0],"html")||(n=t.offset()),n={top:n.top+i.css(t[0],"borderTopWidth",!0),left:n.left+i.css(t[0],"borderLeftWidth",!0)}),{top:r.top-n.top-i.css(u,"marginTop",!0),left:r.left-n.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||dt})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(u){return v(this,function(n,u,f){var e;return i.isWindow(n)?e=n:9===n.nodeType&&(e=n.defaultView),void 0===f?e?e[t]:n[u]:void(e?e.scrollTo(r?e.pageXOffset:f,r?f:e.pageYOffset):n[u]=f)},n,u,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=hu(f.pixelPosition,function(n,r){if(r)return r=lt(n,t),li.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(f===!0||e===!0?"margin":"border");return v(this,function(t,r,f){var e;return i.isWindow(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=l,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),vf=n.jQuery,yf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=yf),t&&n.jQuery===i&&(n.jQuery=vf),i},t||(n.jQuery=n.$=i),i}),!function(n,t,i){function s(n,t){return typeof n===t}function ft(){var i,n,u,f,e,h,t,o;for(o in l)if(l.hasOwnProperty(o)){if(i=[],n=l[o],n.name&&(i.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(u=0;u<n.options.aliases.length;u++)i.push(n.options.aliases[u].toLowerCase());for(f=s(n.fn,"function")?n.fn():n.fn,e=0;e<i.length;e++)h=i[e],t=h.split("."),1===t.length?r[t[0]]=f:(!r[t[0]]||r[t[0]]instanceof Boolean||(r[t[0]]=new Boolean(r[t[0]])),r[t[0]][t[1]]=f),rt.push((f?"":"no-")+t.join("-"))}}function et(n){var t=e.className,i=r._config.classPrefix||"",u;(a&&(t=t.baseVal),r._config.enableJSClass)&&(u=new RegExp("(^|\\s)"+i+"no-js(\\s|$)"),t=t.replace(u,"$1"+i+"js$2"));r._config.enableClasses&&(t+=" "+i+n.join(" "+i),a?e.className.baseVal=t:e.className=t)}function o(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):a?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function nt(n){return n.replace(/([a-z])-([a-z])/g,function(n,t,i){return t+i.toUpperCase()}).replace(/^-/,"")}function ot(){var n=t.body;return n||(n=o(a?"svg":"body"),n.fake=!0),n}function tt(n,i,r,u){var s,a,c,v,l="modernizr",h=o("div"),f=ot();if(parseInt(r,10))for(;r--;)c=o("div"),c.id=u?u[r]:l+(r+1),h.appendChild(c);return s=o("style"),s.type="text/css",s.id="s"+l,(f.fake?f:h).appendChild(s),f.appendChild(h),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(t.createTextNode(n)),h.id=l,f.fake&&(f.style.background="",f.style.overflow="hidden",v=e.style.overflow,e.style.overflow="hidden",e.appendChild(f)),a=i(h,n),f.fake?(f.parentNode.removeChild(f),e.style.overflow=v,e.offsetHeight):h.parentNode.removeChild(h),!!a}function st(n,t){return!!~(""+n).indexOf(t)}function ht(n,t){return function(){return n.apply(t,arguments)}}function ct(n,t,i){var r,u;for(u in n)if(n[u]in t)return i===!1?n[u]:(r=t[n[u]],s(r,"function")?ht(r,i||t):r);return!1}function it(n){return n.replace(/([A-Z])/g,function(n,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function lt(t,r){var f=t.length,u;if("CSS"in n&&"supports"in n.CSS){for(;f--;)if(n.CSS.supports(it(t[f]),r))return!0;return!1}if("CSSSupportsRule"in n){for(u=[];f--;)u.push("("+it(t[f])+":"+r+")");return u=u.join(" or "),tt("@supports ("+u+") { #modernizr { position: absolute; } }",function(n){return"absolute"==getComputedStyle(n,null).position})}return i}function at(n,t,r,u){function c(){a&&(delete f.style,delete f.modElem)}var l,a,h,v,e,y,p;if((u=s(u,"undefined")?!1:u,!s(r,"undefined"))&&(l=lt(n,r),!s(l,"undefined")))return l;for(p=["modernizr","tspan"];!f.style;)a=!0,f.modElem=o(p.shift()),f.style=f.modElem.style;for(v=n.length,h=0;v>h;h++)if(e=n[h],y=f.style[e],st(e,"-")&&(e=nt(e)),f.style[e]!==i){if(u||s(r,"undefined"))return c(),"pfx"==t?e:!0;try{f.style[e]=r}catch(w){}if(f.style[e]!=y)return c(),"pfx"==t?e:!0}return c(),!1}function v(n,t,i,r,u){var f=n.charAt(0).toUpperCase()+n.slice(1),e=(n+" "+b.join(f+" ")+f).split(" ");return s(t,"string")||s(t,"undefined")?at(e,t,r,u):(e=(n+" "+d.join(f+" ")+f).split(" "),ct(e,t,i))}function c(n,t,r){return v(n,i,i,t,r)}var rt=[],l=[],u={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(n,t){var i=this;setTimeout(function(){t(i[n])},0)},addTest:function(n,t,i){l.push({name:n,fn:t,options:i})},addAsyncTest:function(n){l.push({name:null,fn:n})}},r=function(){},e,h,a,p,w,b,k,d,g,f,ut,y;for(r.prototype=u,r=new r,e=t.documentElement,h=u._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""],u._prefixes=h,a="svg"===e.nodeName.toLowerCase(),r.addTest("adownload",!n.externalHost&&"download"in o("a")),r.addTest("csscalc",function(){var n="width:",t=o("a");return t.style.cssText=n+h.join("calc(10px);"+n),!!t.style.length}),r.addTest("cssgradients",function(){for(var e,i,u,f="background-image:",t="",n=0,s=h.length-1;s>n;n++)u=0===n?"to ":"",t+=f+h[n]+"linear-gradient("+u+"left top, #9f9, white);";return r._config.usePrefixes&&(t+=f+"-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));"),e=o("a"),i=e.style,i.cssText=t,(""+i.backgroundImage).indexOf("gradient")>-1}),p=u.testStyles=tt,r.addTest("touchevents",function(){var i,r;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:(r=["@media (",h.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join(""),p(r,function(n){i=9===n.offsetTop})),i}),r.addTest("hiddenscroll",function(){return p("#modernizr {width:100px;height:100px;overflow:scroll}",function(n){return n.offsetWidth===n.clientWidth})}),w="Moz O ms Webkit",b=u._config.usePrefixes?w.split(" "):[],u._cssomPrefixes=b,k=function(t){var u,s=h.length,f=n.CSSRule,r,e,o;if("undefined"==typeof f)return i;if(!t)return!1;if(t=t.replace(/^@/,""),u=t.replace(/-/g,"_").toUpperCase()+"_RULE",u in f)return"@"+t;for(r=0;s>r;r++)if(e=h[r],o=e.toUpperCase()+"_"+u,o in f)return"@-"+e.toLowerCase()+"-"+t;return!1},u.atRule=k,d=u._config.usePrefixes?w.toLowerCase().split(" "):[],u._domPrefixes=d,g={elem:o("modernizr")},r._q.push(function(){delete g.elem}),f={style:g.elem.style},r._q.unshift(function(){delete f.style}),u.testAllProps=v,ut=u.prefixed=function(n,t,i){return 0===n.indexOf("@")?k(n):(-1!=n.indexOf("-")&&(n=nt(n)),t?v(n,t,i):v(n,"pfx"))},r.addTest("backgroundblendmode",ut("backgroundBlendMode","text")),u.testAllProps=c,r.addTest("cssanimations",c("animationName","a",!0)),r.addTest("flexbox",c("flexBasis","1px",!0)),function(){r.addTest("csscolumns",function(){var n=!1,t=c("columnCount");try{(n=!!t)&&(n=new Boolean(n))}catch(i){}return n});for(var n,i,u=["Width","Span","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","BreakBefore","BreakAfter","BreakInside"],t=0;t<u.length;t++)n=u[t].toLowerCase(),i=c("column"+u[t]),("breakbefore"===n||"breakafter"===n||"breakinside"==n)&&(i=i||c(u[t])),r.addTest("csscolumns."+n,i)}(),r.addTest("csstransitions",c("transition","all",!0)),ft(),et(rt),delete u.addTest,delete u.addAsyncTest,y=0;y<r._q.length;y++)r._q[y]();n.Modernizr=r}(window,document),function(n){"use strict";function l(n){return function(){for(var i=arguments[0],u,t,r="["+(n?n+":":"")+i+"] http://errors.angularjs.org/1.5.8/"+(n?n+"/":"")+i,i=1;i<arguments.length;i++)r=r+(1==i?"?":"&")+"p"+(i-1)+"=",u=encodeURIComponent,t=arguments[i],t="function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof t?"undefined":"string"!=typeof t?JSON.stringify(t):t,r+=u(t);return Error(r)}}function kt(n){if(null==n||ur(n))return!1;if(c(n)||h(n)||e&&n instanceof e)return!0;var t="length"in Object(n)&&n.length;return w(t)&&(0<=t&&(t-1 in n||n instanceof Array)||"function"==typeof n.item)}function t(n,i,r){var u,e,o;if(n)if(f(n))for(u in n)"prototype"==u||"length"==u||"name"==u||n.hasOwnProperty&&!n.hasOwnProperty(u)||i.call(r,n[u],u,n);else if(c(n)||kt(n))for(o="object"!=typeof n,u=0,e=n.length;u<e;u++)(o||u in n)&&i.call(r,n[u],u,n);else if(n.forEach&&n.forEach!==t)n.forEach(i,r,n);else if(we(n))for(u in n)i.call(r,n[u],u,n);else if("function"==typeof n.hasOwnProperty)for(u in n)n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else for(u in n)wt.call(n,u)&&i.call(r,n[u],u,n);return n}function ve(n,t,i){for(var r=Object.keys(n).sort(),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function ye(n){return function(t,i){n(i,t)}}function bc(){return++ku}function of(n,t,i){for(var e,u,r,l=n.$$hashKey,o=0,v=t.length;o<v;++o)if(e=t[o],s(e)||f(e))for(var a=Object.keys(e),h=0,y=a.length;h<y;h++)u=a[h],r=e[u],i&&s(r)?et(r)?n[u]=new Date(r.valueOf()):rr(r)?n[u]=new RegExp(r):r.nodeName?n[u]=r.cloneNode(!0):hf(r)?n[u]=r.clone():(s(n[u])||(n[u]=c(r)?[]:{}),of(n[u],[r],!0)):n[u]=r;return l?n.$$hashKey=l:delete n.$$hashKey,n}function a(n){return of(n,bt.call(arguments,1),!1)}function kc(n){return of(n,bt.call(arguments,1),!0)}function tt(n){return parseInt(n,10)}function sf(n,t){return a(Object.create(n),t)}function o(){}function ir(n){return n}function ft(n){return function(){return n}}function pe(n){return f(n.toString)&&n.toString!==rt}function r(n){return"undefined"==typeof n}function u(n){return"undefined"!=typeof n}function s(n){return null!==n&&"object"==typeof n}function we(n){return null!==n&&"object"==typeof n&&!oh(n)}function h(n){return"string"==typeof n}function w(n){return"number"==typeof n}function et(n){return"[object Date]"===rt.call(n)}function f(n){return"function"==typeof n}function rr(n){return"[object RegExp]"===rt.call(n)}function ur(n){return n&&n.window===n}function fr(n){return n&&n.$evalAsync&&n.$watch}function ui(n){return"boolean"==typeof n}function dc(n){return n&&w(n.length)&&bv.test(rt.call(n))}function hf(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}function gc(n){var i={},t;for(n=n.split(","),t=0;t<n.length;t++)i[n[t]]=!0;return i}function at(n){return v(n.nodeName||n[0]&&n[0].nodeName)}function er(n,t){var i=n.indexOf(t);return 0<=i&&n.splice(i,1),i}function dt(n,i){function o(n,t){var u=t.$$hashKey,i,f;if(c(n))for(i=0,f=n.length;i<f;i++)t.push(r(n[i]));else if(we(n))for(i in n)t[i]=r(n[i]);else if(n&&"function"==typeof n.hasOwnProperty)for(i in n)n.hasOwnProperty(i)&&(t[i]=r(n[i]));else for(i in n)wt.call(n,i)&&(t[i]=r(n[i]));return u?t.$$hashKey=u:delete t.$$hashKey,t}function r(n){var t,i;if(!s(n))return n;if(t=u.indexOf(n),-1!==t)return e[t];if(ur(n)||fr(n))throw hi("cpws");return t=!1,i=h(n),void 0===i&&(i=c(n)?[]:Object.create(oh(n)),t=!0),u.push(n),e.push(i),t?o(n,i):i}function h(n){switch(rt.call(n)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new n.constructor(r(n.buffer),n.byteOffset,n.length);case"[object ArrayBuffer]":if(!n.slice){var t=new ArrayBuffer(n.byteLength);return new Uint8Array(t).set(new Uint8Array(n)),t}return n.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new n.constructor(n.valueOf());case"[object RegExp]":return t=new RegExp(n.source,n.toString().match(/[^\/]*$/)[0]),t.lastIndex=n.lastIndex,t;case"[object Blob]":return new n.constructor([n],{type:n.type})}if(f(n.cloneNode))return n.cloneNode(!0)}var u=[],e=[];if(i){if(dc(i)||"[object ArrayBuffer]"===rt.call(i))throw hi("cpta");if(n===i)throw hi("cpi");return c(i)?i.length=0:t(i,function(n,t){"$$hashKey"!==t&&delete i[t]}),u.push(n),e.push(i),o(n,i)}return r(n)}function ot(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!==n&&t!==t)return!0;var r=typeof n,i;if(r==typeof t&&"object"==r)if(c(n)){if(!c(t))return!1;if((r=n.length)==t.length){for(i=0;i<r;i++)if(!ot(n[i],t[i]))return!1;return!0}}else{if(et(n))return et(t)?ot(n.getTime(),t.getTime()):!1;if(rr(n))return rr(t)?n.toString()==t.toString():!1;if(fr(n)||fr(t)||ur(n)||ur(t)||c(t)||et(t)||rr(t))return!1;r=y();for(i in n)if("$"!==i.charAt(0)&&!f(n[i])){if(!ot(n[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&"$"!==i.charAt(0)&&u(t[i])&&!f(t[i]))return!1;return!0}return!1}function or(n,t,i){return n.concat(bt.call(t,i))}function sr(n,t){var i=2<arguments.length?bt.call(arguments,2):[];return!f(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,or(i,arguments,0)):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function nl(t,i){var r=i;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:ur(i)?r="$WINDOW":i&&n.document===i?r="$DOCUMENT":fr(i)&&(r="$SCOPE"),r}function hr(n,t){if(!r(n))return w(t)||(t=t?2:null),JSON.stringify(n,nl,t)}function be(n){return h(n)?JSON.parse(n):n}function ke(n,t){n=n.replace(kv,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(i)?t:i}function cf(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset();return t=ke(t,r),i*=t-r,n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+i),n}function vt(n){n=e(n).clone();try{n.empty()}catch(i){}var t=e("<div>").append(n).html();try{return n[0].nodeType===di?v(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(n,t){return"<"+v(t)})}catch(r){return v(t)}}function de(n){try{return decodeURIComponent(n)}catch(t){}}function ge(n){var i={};return t((n||"").split("&"),function(n){var f,t,r;n&&(t=n=n.replace(/\+/g,"%20"),f=n.indexOf("="),-1!==f&&(t=n.substring(0,f),r=n.substring(f+1)),t=de(t),u(t)&&(r=u(r)?de(r):!0,wt.call(i,t)?c(i[t])?i[t].push(r):i[t]=[i[t],r]:i[t]=r))}),i}function lf(n){var i=[];return t(n,function(n,r){c(n)?t(n,function(n){i.push(ht(r,!0)+(!0===n?"":"="+ht(n,!0)))}):i.push(ht(r,!0)+(!0===n?"":"="+ht(n,!0)))}),i.length?i.join("&"):""}function tu(n){return ht(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ht(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function tl(n,t){for(var i,u=ki.length,r=0;r<u;++r)if(i=ki[r]+t,h(i=n.getAttribute(i)))return i;return null}function il(n,i){var r,u,f={};t(ki,function(t){t+="app";!r&&n.hasAttribute&&n.hasAttribute(t)&&(r=n,u=n.getAttribute(t))});t(ki,function(t){t+="app";var i;!r&&(i=n.querySelector("["+t.replace(":","\\:")+"]"))&&(r=i,u=i.getAttribute(t))});r&&(f.strictDi=null!==tl(r,"strict-di"),i(r,u?[u]:[],f))}function no(i,r,u){s(u)||(u={});u=a({strictDi:!1},u);var o=function(){if(i=e(i),i.injector()){var t=i[0]===n.document?"document":vt(i);throw hi("btstrpd",t.replace(/</,"&lt;").replace(/>/,"&gt;"));}return r=r||[],r.unshift(["$provide",function(n){n.value("$rootElement",i)}]),u.debugInfoEnabled&&r.push(["$compileProvider",function(n){n.debugInfoEnabled(!0)}]),r.unshift("ng"),t=ar(r,u.strictDi),t.invoke(["$rootScope","$rootElement","$compile","$injector",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),t},h=/^NG_ENABLE_DEBUG_INFO!/,c=/^NG_DEFER_BOOTSTRAP!/;if(n&&h.test(n.name)&&(u.debugInfoEnabled=!0,n.name=n.name.replace(h,"")),n&&!c.test(n.name))return o();n.name=n.name.replace(c,"");ut.resumeBootstrap=function(n){return t(n,function(n){r.push(n)}),o()};f(ut.resumeDeferredBootstrap)&&ut.resumeDeferredBootstrap()}function rl(){n.name="NG_ENABLE_DEBUG_INFO!"+n.name;n.location.reload()}function ul(n){if(n=ut.element(n).injector(),!n)throw hi("test");return n.get("$$testability")}function to(n,t){return t=t||"_",n.replace(dv,function(n,i){return(i?t:"")+n.toLowerCase()})}function fl(){var i,t;hh||(t=du(),(ii=r(t)?n.jQuery:t?n[t]:void 0)&&ii.fn.on?(e=ii,a(ii.fn,{scope:nr.scope,isolateScope:nr.isolateScope,controller:nr.controller,injector:nr.injector,inheritedData:nr.inheritedData}),i=ii.cleanData,ii.cleanData=function(n){for(var r,u=0,t;null!=(t=n[u]);u++)(r=ii._data(t,"events"))&&r.$destroy&&ii(t).triggerHandler("$destroy");i(n)}):e=b,ut.element=e,hh=!0)}function iu(n,t,i){if(!n)throw hi("areq",t||"?",i||"required");return n}function vi(n,t,i){return i&&c(n)&&(n=n[n.length-1]),iu(f(n),t,"not a function, got "+(n&&"object"==typeof n?n.constructor.name||"Object":typeof n)),n}function yi(n,t){if("hasOwnProperty"===n)throw hi("badname",t);}function io(n,t,i){if(!t)return n;t=t.split(".");for(var u,e=n,o=t.length,r=0;r<o;r++)u=t[r],n&&(n=(e=n)[u]);return!i&&f(n)?sr(e,n):n}function ru(n){for(var t=n[0],u=n[n.length-1],i,r=1;t!==u&&(t=t.nextSibling);r++)(i||n[r]!==t)&&(i||(i=e(bt.call(n,0,r))),i.push(t));return i||n}function y(){return Object.create(null)}function el(n){function t(n,t,i){return n[t]||(n[t]=i())}var i=l("$injector"),r=l("ng");return n=t(n,"angular",Object),n.$$minErr=n.$$minErr||l,t(n,"module",function(){var n={};return function(u,e,o){if("hasOwnProperty"===u)throw r("badname","module");return e&&n.hasOwnProperty(u)&&(n[u]=null),t(n,u,function(){function t(n,t,i,u){return u||(u=r),function(){return u[i||"push"]([n,t,arguments]),s}}function n(n,t){return function(i,e){return e&&f(e)&&(e.$$moduleName=u),r.push([n,t,arguments]),s}}if(!e)throw i("nomod",u);var r=[],h=[],c=[],l=t("$injector","invoke","push",h),s={_invokeQueue:r,_configBlocks:h,_runBlocks:c,requires:e,name:u,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:l,run:function(n){return c.push(n),this}};return o&&l(o),s})}})}function st(n,t){if(c(n)){t=t||[];for(var i=0,r=n.length;i<r;i++)t[i]=n[i]}else if(s(n))for(i in t=t||{},n)("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(t[i]=n[i]);return t||n}function ol(i){a(i,{bootstrap:no,copy:dt,extend:a,merge:kc,equals:ot,element:e,forEach:t,injector:ar,noop:o,bind:sr,toJson:hr,fromJson:be,identity:ir,isUndefined:r,isDefined:u,isString:h,isFunction:f,isObject:s,isNumber:w,isElement:hf,isArray:c,version:gv,isDate:et,lowercase:v,uppercase:bu,callbacks:{$$counter:0},getTestability:ul,$$minErr:l,$$csp:ci,reloadWithDebugInfo:rl});ue=el(n);ue("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:da});n.provider("$compile",ao).directive({a:tc,input:hc,textarea:hc,form:pp,script:yb,select:bb,style:db,option:kb,ngBind:iw,ngBindHtml:uw,ngBindTemplate:rw,ngClass:ew,ngClassEven:sw,ngClassOdd:ow,ngCloak:hw,ngController:cw,ngForm:wp,ngHide:ob,ngIf:aw,ngInclude:vw,ngInit:pw,ngNonBindable:nb,ngPluralize:ub,ngRepeat:fb,ngShow:eb,ngStyle:sb,ngSwitch:hb,ngSwitchWhen:cb,ngSwitchDefault:lb,ngOptions:rb,ngTransclude:vb,ngModel:kw,ngList:ww,ngChange:fw,pattern:yc,ngPattern:yc,required:vc,ngRequired:vc,minlength:wc,ngMinlength:wc,maxlength:pc,ngMaxlength:pc,ngValue:tw,ngModelOptions:gw}).directive({ngInclude:yw}).directive(kr).directive(cc);n.provider({$anchorScroll:yl,$animate:yy,$animateCss:by,$$animateJs:ay,$$animateQueue:vy,$$AnimateRunner:wy,$$animateAsyncRun:py,$browser:bl,$cacheFactory:kl,$controller:gl,$document:na,$exceptionHandler:ta,$filter:ps,$$forceReflow:dy,$interpolate:sa,$interval:ha,$http:ua,$httpParamSerializer:ia,$httpParamSerializerJQLike:ra,$httpBackend:ea,$xhrFactory:fa,$jsonpCallbacks:rp,$location:ca,$log:la,$parse:ya,$rootScope:ka,$q:pa,$$q:wa,$sce:tv,$sceDelegate:nv,$sniffer:iv,$templateCache:dl,$templateRequest:rv,$$testability:uv,$timeout:fv,$window:ev,$$rAF:ba,$$jqLite:al,$$HashMap:ey,$$cookieReader:ov})}])}function cr(n){return n.replace(ny,function(n,t,i,r){return r?i.toUpperCase():i}).replace(ty,"Moz$1")}function ro(n){return n=n.nodeType,1===n||!n||9===n}function uo(n,i){var u,r,f=i.createDocumentFragment(),e=[];if(ee.test(n)){for(u=f.appendChild(i.createElement("div")),r=(ry.exec(n)||["",""])[1].toLowerCase(),r=ct[r]||ct._default,u.innerHTML=r[1]+n.replace(uy,"<$1><\/$2>")+r[2],r=r[0];r--;)u=u.lastChild;e=or(e,u.childNodes);u=f.firstChild;u.textContent=""}else e.push(i.createTextNode(n));return f.textContent="",f.innerHTML="",t(e,function(n){f.appendChild(n)}),f}function fo(n,t){var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)}function b(t){var i,r;if(t instanceof b)return t;if(h(t)&&(t=p(t),i=!0),!(this instanceof b)){if(i&&"<"!=t.charAt(0))throw fe("nosel");return new b(t)}i&&(i=n.document,t=(r=iy.exec(t))?[i.createElement(r[1])]:(r=uo(t,i))?r.childNodes:[]);oo(this,t)}function af(n){return n.cloneNode(!0)}function uu(n,t){if(t||lr(n),n.querySelectorAll)for(var r=n.querySelectorAll("*"),i=0,u=r.length;i<u;i++)lr(r[i])}function eo(n,i,r,f){var e,o,s;if(u(f))throw fe("offargs");if(e=(f=fu(n))&&f.events,o=f&&f.handle,o)if(i)s=function(t){var i=e[t];u(r)&&er(i||[],r);u(r)&&i&&0<i.length||(n.removeEventListener(t,o,!1),delete e[t])},t(i.split(" "),function(n){s(n);gu[n]&&s(gu[n])});else for(i in e)"$destroy"!==i&&n.removeEventListener(i,o,!1),delete e[i]}function lr(n,t){var r=n.ng339,i=r&&gi[r];i&&(t?delete i.data[t]:(i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),eo(n)),delete gi[r],n.ng339=void 0))}function fu(n,t){var i=n.ng339,i=i&&gi[i];return t&&!i&&(n.ng339=i=++ch,i=gi[i]={events:{},data:{},handle:void 0}),i}function vf(n,t,i){if(ro(n)){var r=u(i),f=!r&&t&&!s(t),e=!t;if(n=(n=fu(n,!f))&&n.data,r)n[t]=i;else{if(e)return n;if(f)return n&&n[t];a(n,t)}}}function eu(n,t){return n.getAttribute?-1<(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" "):!1}function ou(n,i){i&&n.setAttribute&&t(i.split(" "),function(t){n.setAttribute("class",p((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+p(t)+" "," ")))})}function su(n,i){if(i&&n.setAttribute){var r=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");t(i.split(" "),function(n){n=p(n);-1===r.indexOf(" "+n+" ")&&(r+=n+" ")});n.setAttribute("class",p(r))}}function oo(n,t){var i,r;if(t)if(t.nodeType)n[n.length++]=t;else if(i=t.length,"number"==typeof i&&t.window!==t){if(i)for(r=0;r<i;r++)n[n.length++]=t[r]}else n[n.length++]=t}function so(n,t){return hu(n,"$"+(t||"ngController")+"Controller")}function hu(n,t,i){for(9==n.nodeType&&(n=n.documentElement),t=c(t)?t:[t];n;){for(var r=0,f=t.length;r<f;r++)if(u(i=e.data(n,t[r])))return i;n=n.parentNode||11===n.nodeType&&n.host}}function ho(n){for(uu(n,!0);n.firstChild;)n.removeChild(n.firstChild)}function cu(n,t){t||uu(n);var i=n.parentNode;i&&i.removeChild(n)}function sl(t,i){if(i=i||n,"complete"===i.document.readyState)i.setTimeout(t);else e(i).on("load",t)}function co(n,t){var i=nf[t.toLowerCase()];return i&&oe[at(n)]&&i}function hl(n,t){var i=function(i,u){var f,e,s,h,o;if(i.isDefaultPrevented=function(){return i.defaultPrevented},f=t[u||i.type],e=f?f.length:0,e)for(r(i.immediatePropagationStopped)&&(s=i.stopImmediatePropagation,i.stopImmediatePropagation=function(){i.immediatePropagationStopped=!0;i.stopPropagation&&i.stopPropagation();s&&s.call(i)}),i.isImmediatePropagationStopped=function(){return!0===i.immediatePropagationStopped},h=f.specialHandlerWrapper||cl,1<e&&(f=st(f)),o=0;o<e;o++)i.isImmediatePropagationStopped()||h(n,i,f[o])};return i.elem=n,i}function cl(n,t,i){i.call(n,t)}function ll(n,t,i){var r=t.relatedTarget;r&&(r===n||fy.call(n,r))||i.call(n,t)}function al(){this.$get=function(){return a(b,{hasClass:function(n,t){return n.attr&&(n=n[0]),eu(n,t)},addClass:function(n,t){return n.attr&&(n=n[0]),su(n,t)},removeClass:function(n,t){return n.attr&&(n=n[0]),ou(n,t)}})}}function fi(n,t){var i=n&&n.$$hashKey;return i?("function"==typeof i&&(i=n.$$hashKey()),i):(i=typeof n,"function"==i||"object"==i&&null!==n?n.$$hashKey=i+":"+(t||bc)():i+":"+n)}function pi(n,i){if(i){var r=0;this.nextUid=function(){return++r}}t(n,this.put,this)}function lo(n){return n=(Function.prototype.toString.call(n)+" ").replace(ly,""),n.match(oy)||n.match(sy)}function vl(n){return(n=lo(n))?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function ar(n,i){function l(n){return function(i,r){if(s(i))t(i,ye(n));else return n(i,r)}}function w(n,t){if(yi(n,"service"),(f(t)||c(t))&&(t=o.instantiate(t)),!t.$get)throw li("pget",n);return e[n+"Provider"]=t}function tt(n,t){return function(){var i=u.invoke(t,this);if(r(i))throw li("undef",n);return i}}function v(n,t,i){return w(n,{$get:!1!==i?tt(n,t):t})}function b(n){iu(r(n)||c(n),"modulesToLoad","not an array");var i=[],u;return t(n,function(n){function r(n){for(var i,r,t=0,u=n.length;t<u;t++)i=n[t],r=o.get(i[0]),r[i[1]].apply(r,i[2])}if(!d.get(n)){d.put(n,!0);try{h(n)?(u=ue(n),i=i.concat(b(u.requires)).concat(u._runBlocks),r(u._invokeQueue),r(u._configBlocks)):f(n)?i.push(o.invoke(n)):c(n)?i.push(o.invoke(n)):vi(n,"module")}catch(t){throw c(n)&&(n=n[n.length-1]),t.message&&t.stack&&-1==t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),li("modulerr",n,t.stack||t.message||t);}}}),i}function k(n,t){function r(i,r){if(n.hasOwnProperty(i)){if(n[i]===y)throw li("cdep",i+" <- "+a.join(" <- "));return n[i]}try{return a.unshift(i),n[i]=y,n[i]=t(i,r)}catch(u){throw n[i]===y&&delete n[i],u;}finally{a.shift()}}function u(n,t,u){var o=[],e,s,f;for(n=ar.$$annotate(n,i,u),e=0,s=n.length;e<s;e++){if(f=n[e],"string"!=typeof f)throw li("itkn",f);o.push(t&&t.hasOwnProperty(f)?t[f]:r(f,u))}return o}return{invoke:function(n,t,i,r){return"string"==typeof i&&(r=i,i=null),i=u(n,i,r),c(n)&&(n=n[n.length-1]),r=11>=ti?!1:"function"==typeof n&&/^(?:class\b|constructor\()/.test(Function.prototype.toString.call(n)+" "),r?(i.unshift(null),new(Function.prototype.bind.apply(n,i))):n.apply(t,i)},instantiate:function(n,t,i){var r=c(n)?n[n.length-1]:n;return n=u(n,t,i),n.unshift(null),new(Function.prototype.bind.apply(r,n))},get:r,annotate:ar.$$annotate,has:function(t){return e.hasOwnProperty(t+"Provider")||n.hasOwnProperty(t)}}}var nt,u;i=!0===i;var y={},a=[],d=new pi([],!0),e={$provide:{provider:l(w),factory:l(v),service:l(function(n,t){return v(n,["$injector",function(n){return n.instantiate(t)}])}),value:l(function(n,t){return v(n,ft(t),!1)}),constant:l(function(n,t){yi(n,"constant");e[n]=t;g[n]=t}),decorator:function(n,t){var i=o.get(n+"Provider"),r=i.$get;i.$get=function(){var n=u.invoke(r,i);return u.invoke(t,null,{$delegate:n})}}}},o=e.$injector=k(e,function(n,t){ut.isString(t)&&a.push(t);throw li("unpr",a.join(" <- "));}),g={},p=k(g,function(n,t){var i=o.get(n+"Provider",t);return u.invoke(i.$get,i,void 0,n)}),u=p;return e.$injectorProvider={$get:ft(p)},nt=b(n),u=p.get("$injector"),u.strictDi=i,t(nt,function(n){n&&u.invoke(n)}),u}function yl(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,r){function s(n){var t=null;return Array.prototype.some.call(n,function(n){if("a"===at(n))return t=n,!0}),t}function u(n){if(n){n.scrollIntoView();var i;i=e.yOffset;f(i)?i=i():hf(i)?(i=i[0],i="fixed"!==t.getComputedStyle(i).position?0:i.getBoundingClientRect().bottom):w(i)||(i=0);i&&(n=n.getBoundingClientRect().top,t.scrollBy(0,n-i))}else t.scrollTo(0,0)}function e(n){n=h(n)?n:i.hash();var t;n?(t=o.getElementById(n))?u(t):(t=s(o.getElementsByName(n)))?u(t):"top"===n&&u(null):u(null)}var o=t.document;return n&&r.$watch(function(){return i.hash()},function(n,t){n===t&&""===n||sl(function(){r.$evalAsync(e)})}),e}]}function vr(n,t){return!n&&!t?"":n?t?(c(n)&&(n=n.join(" ")),c(t)&&(t=t.join(" ")),n+" "+t):n:t}function pl(n){h(n)&&(n=n.split(" "));var i=y();return t(n,function(n){n.length&&(i[n]=!0)}),i}function ei(n){return s(n)?n:{}}function wl(n,i,u,f){function k(n){try{n.apply(null,bt.call(arguments,1))}finally{if(l--,0===l)for(;b.length;)try{b.pop()()}catch(t){u.error(t)}}}function d(){y=null;g();tt()}function g(){h=st();h=r(h)?null:h;ot(h,nt)&&(h=nt);nt=h}function tt(){(v!==s.url()||a!==h)&&(v=s.url(),a=h,t(it,function(n){n(s.url(),h)}))}var s=this,c=n.location,p=n.history,ut=n.setTimeout,ft=n.clearTimeout,w={},l,b;s.isMock=!1;l=0;b=[];s.$$completeOutstandingRequest=k;s.$$incOutstandingRequestCount=function(){l++};s.notifyWhenNoOutstandingRequests=function(n){0===l?n():b.push(n)};var h,a,v=c.href,et=i.find("base"),y=null,st=f.history?function(){try{return p.state}catch(n){}}:o;g();a=h;s.url=function(t,i,u){var o,e;return(r(u)&&(u=null),c!==n.location&&(c=n.location),p!==n.history&&(p=n.history),t)?(o=a===u,v===t&&(!f.history||o))?s:(e=v&&oi(v)===oi(t),v=t,a=u,!f.history||e&&o?(e||(y=t),i?c.replace(t):e?(i=c,u=t.indexOf("#"),u=-1===u?"":t.substr(u),i.hash=u):c.href=t,c.href!==t&&(y=t)):(p[i?"replaceState":"pushState"](u,"",t),g(),a=h),y&&(y=t),s):y||c.href.replace(/%27/g,"'")};s.state=function(){return h};var it=[],rt=!1,nt=null;s.onUrlChange=function(t){if(!rt){if(f.history)e(n).on("popstate",d);e(n).on("hashchange",d);rt=!0}return it.push(t),t};s.$$applicationDestroyed=function(){e(n).off("hashchange popstate",d)};s.$$checkUrlChange=tt;s.baseHref=function(){var n=et.attr("href");return n?n.replace(/^(https?\:)?\/\/[^\/]*/,""):""};s.defer=function(n,t){var i;return l++,i=ut(function(){delete w[i];k(n)},t||0),w[i]=!0,i};s.defer.cancel=function(n){return w[n]?(delete w[n],ft(n),k(o),!0):!1}}function bl(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new wl(n,r,t,i)}]}function kl(){this.$get=function(){function i(t,i){function v(n){n!=o&&(u?u==n&&(u=n.n):u=n,c(n.n,n.p),c(n,o),o=n,o.n=null)}function c(n,t){n!=t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw l("$cacheFactory")("iid",t);var s=0,p=a({},i,{id:t}),f=y(),h=i&&i.capacity||Number.MAX_VALUE,e=y(),o=null,u=null;return n[t]={put:function(n,t){if(!r(t)){if(h<Number.MAX_VALUE){var i=e[n]||(e[n]={key:n});v(i)}return n in f||s++,f[n]=t,s>h&&this.remove(u.key),t}},get:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;v(t)}return f[n]},remove:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;t==o&&(o=t.p);t==u&&(u=t.n);c(t.n,t.p);delete e[n]}n in f&&(delete f[n],s--)},removeAll:function(){f=y();s=0;e=y();o=u=null},destroy:function(){e=p=f=null;delete n[t]},info:function(){return a({},p,{size:s})}}}var n={};return i.info=function(){var i={};return t(n,function(n,t){i[t]=n.info()}),i},i.get=function(t){return n[t]},i}}function dl(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function ao(i,l){function d(n,i,r){var f=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,u=y();return t(n,function(n,t){if(n in nt)u[t]=nt[n];else{var e=n.match(f);if(!e)throw g("iscp",i,t,n,r?"controller bindings definition":"isolate scope definition");u[t]={mode:e[1][0],collection:"*"===e[2],optional:"?"===e[3],attrName:e[4]||t};e[4]&&(nt[n]=u[t])}}),u}function it(n){var t=n.charAt(0);if(!t||t!==v(t))throw g("baddir",n);if(n!==n.trim())throw g("baddir",n);}function ut(n){var i=n.require||n.controller&&n.name;return!c(i)&&s(i)&&t(i,function(n,t){var r=n.match(tt);n.substring(r[0].length)||(i[t]=r[0]+t)}),i}var b={},et=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,st=/(([\w\-]+)(?:\:([^;]+))?;?)/,ht=gc("ngSrc,ngSrcset,src,srcset"),tt=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,ct=/^(on[a-z]+|formaction)$/,nt=y(),w,k;this.directive=function lt(n,r){return yi(n,"directive"),h(n)?(it(n),iu(r,"directiveFactory"),b.hasOwnProperty(n)||(b[n]=[],i.factory(n+"Directive",["$injector","$exceptionHandler",function(i,r){var u=[];return t(b[n],function(t,e){try{var o=i.invoke(t);f(o)?o={compile:ft(o)}:!o.compile&&o.link&&(o.compile=ft(o.link));o.priority=o.priority||0;o.index=e;o.name=o.name||n;o.require=ut(o);o.restrict=o.restrict||"EA";o.$$moduleName=t.$$moduleName;u.push(o)}catch(s){r(s)}}),u}])),b[n].push(r)):t(n,ye(lt)),this};this.component=function(n,i){function r(n){function r(t){return f(t)||c(t)?function(i,r){return n.invoke(t,this,{$element:i,$attrs:r})}:t}var o=i.template||i.templateUrl?i.template:"",e={controller:u,controllerAs:po(i.controller)||i.controllerAs||"$ctrl",template:r(o),templateUrl:r(i.templateUrl),transclude:i.transclude,scope:{},bindToController:i.bindings||{},restrict:"E",require:i.require};return t(i,function(n,t){"$"===t.charAt(0)&&(e[t]=n)}),e}var u=i.controller||function(){};return t(i,function(n,t){"$"===t.charAt(0)&&(r[t]=n,f(u)&&(u[t]=n))}),r.$inject=["$injector"],this.directive(n,r)};this.aHrefSanitizationWhitelist=function(n){return u(n)?(l.aHrefSanitizationWhitelist(n),this):l.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return u(n)?(l.imgSrcSanitizationWhitelist(n),this):l.imgSrcSanitizationWhitelist()};w=!0;this.debugInfoEnabled=function(n){return u(n)?(w=n,this):w};k=10;this.onChangesTtl=function(n){return arguments.length?(k=n,this):k};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(i,l,nt,it,ut,ft,lt,pt,kt,dt){function ar(){try{if(!--or)throw ni=void 0,g("infchng",k);lt.$apply(function(){for(var n=[],t=0,i=ni.length;t<i;++t)try{ni[t]()}catch(r){n.push(r)}if(ni=void 0,n.length)throw n;})}finally{or++}}function si(n,t){if(t)for(var u=Object.keys(t),r,i=0,f=u.length;i<f;i++)r=u[i],this[r]=t[r];else this.$attr={};this.$$element=n}function vr(n,t,i){ur.innerHTML="<span "+t+">";t=ur.firstChild.attributes;var r=t[0];t.removeNamedItem(r.name);r.value=i;n.attributes.setNamedItem(r)}function hi(n,t){try{n.addClass(t)}catch(i){}}function gt(t,i,r,u,f){var h,c,o;t instanceof e||(t=e(t));for(var s=0,l=t.length;s<l;s++)h=t[s],h.nodeType===di&&h.nodeValue.match(/\S+/)&&fo(h,t[s]=n.document.createElement("span"));return c=ci(t,i,t,r,u,f),gt.$$addScopeClass(t),o=null,function(n,i,r){var u,s,h;if(iu(n,"scope"),f&&f.needsNewScope&&(n=n.$parent.$new()),r=r||{},u=r.parentBoundTranscludeFn,s=r.transcludeControllers,r=r.futureParentElement,u&&u.$$boundTransclude&&(u=u.$$boundTransclude),o||(o=(r=r&&r[0])?"foreignobject"!==at(r)&&rt.call(r).match(/SVG/)?"svg":"html":"html"),r="html"!==o?e(vi(o,e("<div>").append(t).html())):i?nr.clone.call(t):t,s)for(h in s)r.data("$"+h+"Controller",s[h].instance);return gt.$$addScopeInfo(r,n),i&&i(r,n),c&&c(n,r,r,u),r}}function ci(n,t,i,r,u,f){function y(n,i,r,u){var s,h,c,f,v,y,l;if(a)for(l=Array(i.length),f=0;f<o.length;f+=3)s=o[f],l[s]=i[s];else l=i;for(f=0,v=o.length;f<v;)h=l[o[f++]],i=o[f++],s=o[f++],i?(i.scope?(c=n.$new(),gt.$$addScopeInfo(e(h),c)):c=n,y=i.transcludeOnThisElement?ri(n,i.transclude,u):!i.templateOnThisElement&&u?u:!u&&t?ri(n,t):null,i(s,c,h,r,y)):s&&s(n,h.childNodes,void 0,u)}for(var o=[],s,c,l,v,a,h=0;h<n.length;h++)s=new si,c=li(n[h],[],s,0===h?r:void 0,u),(f=c.length?bi(c,n[h],s,t,i,null,[],[],f):null)&&f.scope&&gt.$$addScopeClass(s.$$element),s=f&&f.terminal||!(l=n[h].childNodes)||!l.length?null:ci(l,f?(f.transcludeOnThisElement||!f.templateOnThisElement)&&f.transclude:t),(f||s)&&(o.push(h,f,s),v=!0,a=a||f),f=null;return v?y:null}function ri(n,t,i){function u(r,u,f,e,o){return r||(r=n.$new(!1,o),r.$$transcluded=!0),t(r,u,{parentBoundTranscludeFn:i,transcludeControllers:f,futureParentElement:e})}var f=u.$$slots=y(),r;for(r in t.$$slots)f[r]=t.$$slots[r]?ri(n,t.$$slots[r],i):null;return u}function li(n,t,i,r,u){var o=i.$attr,y,w;switch(n.nodeType){case 1:ei(t,yt(at(n)),"E",r,u);for(var f,e,c,l,a=n.attributes,v=0,b=a&&a.length;v<b;v++)y=!1,w=!1,f=a[v],e=f.name,c=p(f.value),f=yt(e),(l=ru.test(f))&&(e=e.replace(ah,"").substr(8).replace(/_(.)/g,function(n,t){return t.toUpperCase()})),(f=f.match(uu))&&wr(f[1])&&(y=e,w=e.substr(0,e.length-5)+"end",e=e.substr(0,e.length-6)),f=yt(e.toLowerCase()),o[f]=e,(l||!i.hasOwnProperty(f))&&(i[f]=c,co(n,f)&&(i[f]=!0)),nu(n,t,c,f,l),ei(t,f,"A",r,u,y,w);if(o=n.className,s(o)&&(o=o.animVal),h(o)&&""!==o)for(;n=st.exec(o);)f=yt(n[2]),ei(t,f,"C",r,u)&&(i[f]=p(n[3])),o=o.substr(n.index+n[0].length);break;case di:if(11===ti)for(;n.parentNode&&n.nextSibling&&n.nextSibling.nodeType===di;)n.nodeValue+=n.nextSibling.nodeValue,n.parentNode.removeChild(n.nextSibling);dr(t,n.nodeValue);break;case 8:yr(n,t,i,r,u)}return t.sort(kr),t}function yr(n,t,i,r,u){var f,e;try{f=et.exec(n.nodeValue);f&&(e=yt(f[1]),ei(t,e,"M",r,u)&&(i[e]=p(f[2])))}catch(o){}}function pi(n,t,i){var r=[],u=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw g("uterdir",t,i);1==n.nodeType&&(n.hasAttribute(t)&&u++,n.hasAttribute(i)&&u--);r.push(n);n=n.nextSibling}while(0<u)}else r.push(n);return e(r)}function wi(n,t,i){return function(r,u,f,e,o){return u=pi(u[0],t,i),n(r,u,f,e,o)}}function ai(n,t,i,r,u,f){var e;return n?gt(t,i,r,u,f):function(){return e||(e=gt(t,i,r,u,f),t=i=f=null),e.apply(this,arguments)}}function bi(n,i,u,o,h,l,v,w,b){function ur(n,t,i,r){n&&(i&&(n=wi(n,i,r)),n.require=k.require,n.directiveName=ot,(d===k||k.$$isolateScope)&&(n=tr(n,{isolateScope:!0})),v.push(n));t&&(i&&(t=wi(t,i,r)),t.require=k.require,t.directiveName=ot,(d===k||k.$$isolateScope)&&(t=tr(t,{isolateScope:!0})),w.push(t))}function lt(n,o,h,l,y){function at(n,t,i,u){var e,f;if(fr(n)||(u=i,i=t,t=n,n=void 0),ri&&(e=rt),i||(i=ri?b.parent():b),u){if(f=y.$$slots[u],f)return f(n,t,e,i,ht);if(r(f))throw g("noslot",u,vt(b));}else return y(n,t,e,i,ht)}var k,tt,p,it,ft,rt,ot,b,ct,lt,ht;i===h?(l=u,b=u.$$element):(b=e(h),l=new si(b,u));ft=o;d?it=o.$new(!0):ut&&(ft=o.$parent);y&&(ot=at,ot.$$boundTransclude=y,ot.isSlotFilled=function(n){return!!y.$$slots[n]});et&&(rt=pr(b,l,ot,et,it,o,d));d&&(gt.$$addScopeInfo(b,it,!0,!(st&&(st===d||st===d.$$originalDirective))),gt.$$addScopeClass(b,!0),it.$$isolateBindings=d.$$isolateBindings,tt=yi(o,l,it,it.$$isolateBindings,d),tt.removeWatches&&it.$on("$destroy",tt.removeWatches));for(k in rt)tt=et[k],p=rt[k],ct=tt.$$bindings.bindToController,p.bindingInfo=p.identifier&&ct?yi(ft,l,p.instance,ct,tt):{},lt=p(),lt!==p.instance&&(p.instance=lt,b.data("$"+tt.name+"Controller",lt),p.bindingInfo.removeWatches&&p.bindingInfo.removeWatches(),p.bindingInfo=yi(ft,l,p.instance,ct,tt));for(t(et,function(n,t){var i=n.require;n.bindToController&&!c(i)&&s(i)&&a(rt[t].instance,fi(t,i,b,rt))}),t(rt,function(n){var t=n.instance;if(f(t.$onChanges))try{t.$onChanges(n.bindingInfo.initialChanges)}catch(i){nt(i)}if(f(t.$onInit))try{t.$onInit()}catch(r){nt(r)}f(t.$doCheck)&&(ft.$watch(function(){t.$doCheck()}),t.$doCheck());f(t.$onDestroy)&&ft.$on("$destroy",function(){t.$onDestroy()})}),k=0,tt=v.length;k<tt;k++)p=v[k],rr(p,p.isolateScope?it:o,b,l,p.require&&fi(p.directiveName,p.require,b,rt),ot);for(ht=o,d&&(d.template||null===d.templateUrl)&&(ht=it),n&&n(ht,h.childNodes,void 0,y),k=w.length-1;0<=k;k--)p=w[k],rr(p,p.isolateScope?it:o,b,l,p.require&&fi(p.directiveName,p.require,b,rt),ot);t(rt,function(n){n=n.instance;f(n.$postLink)&&n.$postLink()})}var ni,ei,ft,ir,hi,ci,er,bi;b=b||{};for(var dt=-Number.MAX_VALUE,ut=b.newScopeDirective,et=b.controllerDirectives,d=b.newIsolateScopeDirective,st=b.templateDirective,ti=b.nonTlbTranscludeDirective,di=!1,nr=!1,ri=b.hasElementTranscludeDirective,tt=u.$$element=e(i),k,ot,rt,pt=o,wt,ht=!1,ui=!1,it,ct=0,kt=n.length;ct<kt;ct++){if(k=n[ct],ni=k.$$start,ei=k.$$end,ni&&(tt=pi(i,ni,ei)),rt=void 0,dt>k.priority)break;if((it=k.scope)&&(k.templateUrl||(s(it)?(ii("new/isolated scope",d||ut,k,tt),d=k):ii("new/isolated scope",d,k,tt)),ut=ut||k),ot=k.name,!ht&&(k.replace&&(k.templateUrl||k.template)||k.transclude&&!k.$$tlb)){for(it=ct+1;ht=n[it++];)if(ht.transclude&&!ht.$$tlb||ht.replace&&(ht.templateUrl||ht.template)){ui=!0;break}ht=!0}if(!k.templateUrl&&k.controller&&(it=k.controller,et=et||y(),ii("'"+ot+"' controller",et[ot],k,tt),et[ot]=k),it=k.transclude)if(di=!0,k.$$tlb||(ii("transclusion",ti,k,tt),ti=k),"element"==it)ri=!0,dt=k.priority,rt=tt,tt=u.$$element=e(gt.$$createComment(ot,u[ot])),i=tt[0],oi(h,bt.call(rt,0),i),rt[0].$$parentNode=rt[0].parentNode,pt=ai(ui,rt,o,dt,l&&l.name,{nonTlbTranscludeDirective:ti});else{if(ft=y(),rt=e(af(i)).contents(),s(it)){rt=[];ir=y();hi=y();t(it,function(n,t){var i="?"===n.charAt(0);n=i?n.substring(1):n;ir[n]=t;ft[t]=null;hi[t]=i});t(tt.contents(),function(n){var t=ir[yt(at(n))];t?(hi[t]=!0,ft[t]=ft[t]||[],ft[t].push(n)):rt.push(n)});t(hi,function(n,t){if(!n)throw g("reqslot",t);});for(ci in ft)ft[ci]&&(ft[ci]=ai(ui,ft[ci],o))}tt.empty();pt=ai(ui,rt,o,void 0,void 0,{needsNewScope:k.$$isolateScope||k.$$newScope});pt.$$slots=ft}if(k.template)if(nr=!0,ii("template",st,k,tt),st=k,it=f(k.template)?k.template(tt,u):k.template,it=lr(it),k.replace){if(l=k,rt=ee.test(it)?yo(vi(k.templateNamespace,p(it))):[],i=rt[0],1!=rt.length||1!==i.nodeType)throw g("tplrt",ot,"");oi(h,tt,i);kt={$attr:{}};it=li(i,[],kt);er=n.splice(ct+1,n.length-(ct+1));(d||ut)&&ki(it,d,ut);n=n.concat(it).concat(er);gi(u,kt);kt=n.length}else tt.html(it);if(k.templateUrl)nr=!0,ii("template",st,k,tt),st=k,k.replace&&(l=k),lt=br(n.splice(ct,n.length-ct),tt,u,h,di&&pt,v,w,{controllerDirectives:et,newScopeDirective:ut!==k&&ut,newIsolateScopeDirective:d,templateDirective:st,nonTlbTranscludeDirective:ti}),kt=n.length;else if(k.compile)try{wt=k.compile(tt,u,pt);bi=k.$$originalDirective||k;f(wt)?ur(null,sr(bi,wt),ni,ei):wt&&ur(sr(bi,wt.pre),sr(bi,wt.post),ni,ei)}catch(or){nt(or,vt(tt))}k.terminal&&(lt.terminal=!0,dt=Math.max(dt,k.priority))}return lt.scope=ut&&!0===ut.scope,lt.transcludeOnThisElement=di,lt.templateOnThisElement=nr,lt.transclude=pt,b.hasElementTranscludeDirective=ri,lt}function fi(n,i,r,u){var f,o,e,l;if(h(i)){if(e=i.match(tt),i=i.substring(e[0].length),o=e[1]||e[3],e="?"===e[2],"^^"===o?r=r.parent():f=(f=u&&u[i])&&f.instance,f||(l="$"+i+"Controller",f=o?r.inheritedData(l):r.data(l)),!f&&!e)throw g("ctreq",i,n);}else if(c(i))for(f=[],o=0,e=i.length;o<e;o++)f[o]=fi(n,i[o],r,u);else s(i)&&(f={},t(i,function(t,i){f[i]=fi(n,t,r,u)}));return f||null}function pr(n,t,i,r,u,f,e){var c=y(),l;for(l in r){var o=r[l],s={$scope:o===e||o.$$isolateScope?u:f,$element:n,$attrs:t,$transclude:i},h=o.controller;"@"==h&&(h=t[o.name]);s=ft(h,s,!0,o.controllerAs);c[o.name]=s;n.data("$"+o.name+"Controller",s.instance)}return c}function ki(n,t,i){for(var r=0,u=n.length;r<u;r++)n[r]=sf(n[r],{$$isolateScope:t,$$newScope:i})}function ei(n,t,u,f,e,o,h){var c,y,k,p,tt,w;if(t===e)return null;if(e=null,b.hasOwnProperty(t))for(t=i.get(t+"Directive"),y=0,k=t.length;y<k;y++)try{if(c=t[y],(r(f)||f>c.priority)&&-1!=c.restrict.indexOf(u)){if(o&&(c=sf(c,{$$start:o,$$end:h})),!c.$$bindings){var it=c,l=c,v=c.name,a={isolateScope:null,bindToController:null};if(s(l.scope)&&(!0===l.bindToController?(a.bindToController=d(l.scope,v,!0),a.isolateScope={}):a.isolateScope=d(l.scope,v,!1)),s(l.bindToController)&&(a.bindToController=d(l.bindToController,v,!0)),s(a.bindToController)){if(p=l.controller,tt=l.controllerAs,!p)throw g("noctrl",v);if(!po(p,tt))throw g("noident",v);}w=it.$$bindings=a;s(w.isolateScope)&&(c.$$isolateBindings=w.isolateScope)}n.push(c);e=c}}catch(rt){nt(rt)}return e}function wr(n){if(b.hasOwnProperty(n))for(var r=i.get(n+"Directive"),t=0,u=r.length;t<u;t++)if(n=r[t],n.multiElement)return!0;return!1}function gi(n,i){var r=i.$attr,u=n.$attr;t(n,function(t,u){"$"!=u.charAt(0)&&(i[u]&&i[u]!==t&&(t+=("style"===u?";":" ")+i[u]),n.$set(u,t,!0,r[u]))});t(i,function(t,i){n.hasOwnProperty(i)||"$"===i.charAt(0)||(n[i]=t,"class"!==i&&"style"!==i&&(u[i]=r[i]))})}function br(n,i,r,u,o,h,c,l){var v=[],y,w,b=i[0],a=n.shift(),d=sf(a,{templateUrl:null,transclude:null,replace:null,$$originalDirective:a}),k=f(a.templateUrl)?a.templateUrl(i,r):a.templateUrl,nt=a.templateNamespace;return i.empty(),it(k).then(function(f){var tt,rt,it,ft;if(f=lr(f),a.replace){if(f=ee.test(f)?yo(vi(nt,p(f))):[],tt=f[0],1!=f.length||1!==tt.nodeType)throw g("tplrt",a.name,k);f={$attr:{}};oi(u,i,tt);it=li(tt,[],f);s(a.scope)&&ki(it,!0);n=it.concat(n);gi(r,f)}else tt=b,i.html(f);for(n.unshift(d),y=bi(n,tt,r,o,i,a,h,c,l),t(u,function(n,t){n==tt&&(u[t]=i[0])}),w=ci(i[0].childNodes,o);v.length;){f=v.shift();rt=v.shift();var et=v.shift(),ut=v.shift(),it=i[0];f.$$destroyed||(rt!==b&&(ft=rt.className,l.hasElementTranscludeDirective&&a.replace||(it=af(tt)),oi(et,e(rt),it),hi(e(it),ft)),rt=y.transcludeOnThisElement?ri(f,y.transclude,ut):ut,y(w,f,it,u,rt))}v=null}),function(n,t,i,r,u){n=u;t.$$destroyed||(v?v.push(t,i,r,n):(y.transcludeOnThisElement&&(n=ri(t,y.transclude,u)),y(w,t,i,r,n)))}}function kr(n,t){var i=t.priority-n.priority;return 0!==i?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function ii(n,t,i,r){function u(n){return n?" (module: "+n+")":""}if(t)throw g("multidir",t.name,u(t.$$moduleName),i.name,u(i.$$moduleName),n,vt(r));}function dr(n,t){var i=l(t,!0);i&&n.push({priority:0,compile:function(n){n=n.parent();var t=!!n.length;return t&&gt.$$addBindingClass(n),function(n,r){var u=r.parent();t||gt.$$addBindingClass(u);gt.$$addBindingInfo(u,i.expressions);n.$watch(i,function(n){r[0].nodeValue=n})}}})}function vi(t,i){t=v(t||"html");switch(t){case"svg":case"math":var r=n.document.createElement("div");return r.innerHTML="<"+t+">"+i+"<\/"+t+">",r.childNodes[0].childNodes;default:return i}}function gr(n,t){if("srcdoc"==t)return pt.HTML;var i=at(n);if("xlinkHref"==t||"form"==i&&"action"==t||"img"!=i&&("src"==t||"ngSrc"==t))return pt.RESOURCE_URL}function nu(n,t,i,r,u){var e=gr(n,r),f;if(u=ht[r]||u,f=l(i,!0,e,u),f){if("multiple"===r&&"select"===at(n))throw g("selmulti",vt(n));t.push({priority:100,compile:function(){return{pre:function(n,t,o){if(t=o.$$observers||(o.$$observers=y()),ct.test(r))throw g("nodomevents");var s=o[r];s!==i&&(f=s&&l(s,!0,e,u),i=s);f&&(o[r]=f(n),(t[r]||(t[r]=[])).$$inter=!0,(o.$$observers&&o.$$observers[r].$$scope||n).$watch(f,function(n,t){"class"===r&&n!=t?o.$updateClass(n,t):o.$set(r,n)}))}}}})}}function oi(t,i,r){var f=i[0],s=i.length,c=f.parentNode,u,o,h;if(t)for(u=0,o=t.length;u<o;u++)if(t[u]==f){for(t[u++]=r,o=u+s-1,h=t.length;u<h;u++,o++)o<h?t[u]=t[o]:delete t[u];t.length-=s-1;t.context===f&&(t.context=r);break}for(c&&c.replaceChild(r,f),t=n.document.createDocumentFragment(),u=0;u<s;u++)t.appendChild(i[u]);for(e.hasData(f)&&(e.data(r,e.data(f)),e(f).off("$destroy")),e.cleanData(t.querySelectorAll("*")),u=1;u<s;u++)delete i[u];i[0]=r;i.length=1}function tr(n,t){return a(function(){return n.apply(null,arguments)},n,t)}function rr(n,t,i,r,u,f){try{n(t,i,r,u,f)}catch(e){nt(e,vt(i))}}function yi(n,i,r,u,e){function v(t,i,u){f(r.$onChanges)&&i!==u&&(ni||(n.$$postDigest(ar),ni=[]),s||(s={},ni.push(y)),s[t]&&(u=s[t].previousValue),s[t]=new lu(u,i))}function y(){r.$onChanges(s);s=void 0}var c=[],a={},s;return t(u,function(t,u){var f=t.attrName,s=t.optional,p,y,k,w,b;switch(t.mode){case"@":s||wt.call(i,f)||(r[u]=i[f]=void 0);i.$observe(f,function(n){(h(n)||ui(n))&&(v(u,n,r[u]),r[u]=n)});i.$$observers[f].$$scope=n;p=i[f];h(p)?r[u]=l(p)(n):ui(p)&&(r[u]=p);a[u]=new lu(he,r[u]);break;case"=":if(!wt.call(i,f)){if(s)break;i[f]=void 0}if(s&&!i[f])break;y=ut(i[f]);w=y.literal?ot:function(n,t){return n===t||n!==n&&t!==t};k=y.assign||function(){p=r[u]=y(n);throw g("nonassign",i[f],f,e.name);};p=r[u]=y(n);s=function(t){return w(t,r[u])||(w(t,p)?k(n,t=r[u]):r[u]=t),p=t};s.$stateful=!0;s=t.collection?n.$watchCollection(i[f],s):n.$watch(ut(i[f],s),null,y.literal);c.push(s);break;case"<":if(!wt.call(i,f)){if(s)break;i[f]=void 0}if(s&&!i[f])break;y=ut(i[f]);b=r[u]=y(n);a[u]=new lu(he,r[u]);s=n.$watch(y,function(n,t){if(t===n){if(t===b)return;t=b}v(u,n,t);r[u]=n},y.literal);c.push(s);break;case"&":if(y=i.hasOwnProperty(f)?ut(i[f]):o,y===o&&s)break;r[u]=function(t){return y(n,t)}}}),{initialChanges:a,removeWatches:c.length&&function(){for(var n=0,t=c.length;n<t;++n)c[n]()}}}var tu=/^\w/,ur=n.document.createElement("div"),or=k,ni;si.prototype={$normalize:yt,$addClass:function(n){n&&0<n.length&&kt.addClass(this.$$element,n)},$removeClass:function(n){n&&0<n.length&&kt.removeClass(this.$$element,n)},$updateClass:function(n,t){var i=vo(n,t);i&&i.length&&kt.addClass(this.$$element,i);(i=vo(t,n))&&i.length&&kt.removeClass(this.$$element,i)},$set:function(n,i,f,e){var s=co(this.$$element[0],n),o=se[n],l=n;if(s?(this.$$element.prop(n,i),e=s):o&&(this[o]=i,l=o),this[n]=i,e?this.$attr[n]=e:(e=this.$attr[n])||(this.$attr[n]=e=to(n,"-")),s=at(this.$$element),"a"===s&&("href"===n||"xlinkHref"===n)||"img"===s&&"src"===n)this[n]=i=dt(i,"src"===n);else if("img"===s&&"srcset"===n&&u(i)){for(var s="",o=p(i),h=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,h=/\s/.test(o)?h:/(,)/,o=o.split(h),h=Math.floor(o.length/2),c=0;c<h;c++)var a=2*c,s=s+dt(p(o[a]),!0),s=s+(" "+p(o[a+1]));o=p(o[2*c]).split(/\s/);s+=dt(p(o[0]),!0);2===o.length&&(s+=" "+p(o[1]));this[n]=i=s}!1!==f&&(null===i||r(i)?this.$$element.removeAttr(e):tu.test(e)?this.$$element.attr(e,i):vr(this.$$element[0],e,i));(n=this.$$observers)&&t(n[l],function(n){try{n(i)}catch(t){nt(t)}})},$observe:function(n,t){var i=this,f=i.$$observers||(i.$$observers=y()),u=f[n]||(f[n]=[]);return u.push(t),lt.$evalAsync(function(){u.$$inter||!i.hasOwnProperty(n)||r(i[n])||t(i[n])}),function(){er(u,t)}}};var hr=l.startSymbol(),cr=l.endSymbol(),lr="{{"==hr&&"}}"==cr?ir:function(n){return n.replace(/\{\{/g,hr).replace(/}}/g,cr)},ru=/^ngAttr[A-Z]/,uu=/^(.+)Start$/;return gt.$$addBindingInfo=w?function(n,t){var i=n.data("$binding")||[];c(t)?i=i.concat(t):i.push(t);n.data("$binding",i)}:o,gt.$$addBindingClass=w?function(n){hi(n,"ng-binding")}:o,gt.$$addScopeInfo=w?function(n,t,i,r){n.data(i?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope",t)}:o,gt.$$addScopeClass=w?function(n,t){hi(n,t?"ng-isolate-scope":"ng-scope")}:o,gt.$$createComment=function(t,i){var r="";return w&&(r=" "+(t||"")+": ",i&&(r+=i+" ")),n.document.createComment(r)},gt}]}function lu(n,t){this.previousValue=n;this.currentValue=t}function yt(n){return cr(n.replace(ah,""))}function vo(n,t){var r="",e=n.split(/\s+/),o=t.split(/\s+/),u=0,f,i;n:for(;u<e.length;u++){for(f=e[u],i=0;i<o.length;i++)if(f==o[i])continue n;r+=(0<r.length?" ":"")+f}return r}function yo(n){n=e(n);var t=n.length;if(1>=t)return n;for(;t--;)8===n[t].nodeType&&pv.call(n,t,1);return n}function po(n,t){if(t&&h(t))return t;if(h(n)){var i=vh.exec(n);if(i)return i[3]}}function gl(){var n={},t=!1;this.has=function(t){return n.hasOwnProperty(t)};this.register=function(t,i){yi(t,"controller");s(t)?a(n,t):n[t]=i};this.allowGlobals=function(){t=!0};this.$get=["$injector","$window",function(i,r){function u(n,t,i,r){if(!n||!s(n.$scope))throw l("$controller")("noscp",r,t);n.$scope[t]=i}return function(e,o,l,v){var y,p,w;if(l=!0===l,v&&h(v)&&(w=v),h(e)){if(v=e.match(vh),!v)throw ky("ctrlfmt",e);p=v[1];w=w||v[3];e=n.hasOwnProperty(p)?n[p]:io(o.$scope,p,!0)||(t?io(r,p,!0):void 0);vi(e,p,!0)}return l?(l=(c(e)?e[e.length-1]:e).prototype,y=Object.create(l||null),w&&u(o,w,y,p||e.name),a(function(){var n=i.invoke(e,y,o,p);return n!==y&&(s(n)||f(n))&&(y=n,w&&u(o,w,y,p||e.name)),y},{instance:y,identifier:w})):(y=i.instantiate(e,o,p),w&&u(o,w,y,p||e.name),y)}}]}function na(){this.$get=["$window",function(n){return e(n.document)}]}function ta(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function yf(n){return s(n)?et(n)?n.toISOString():hr(n):n}function ia(){this.$get=function(){return function(n){if(!n)return"";var i=[];return ve(n,function(n,u){null===n||r(n)||(c(n)?t(n,function(n){i.push(ht(u)+"="+ht(yf(n)))}):i.push(ht(u)+"="+ht(yf(n))))}),i.join("&")}}}function ra(){this.$get=function(){return function(n){function i(n,f,e){null===n||r(n)||(c(n)?t(n,function(n,t){i(n,f+"["+(s(n)?t:"")+"]")}):s(n)&&!et(n)?ve(n,function(n,t){i(n,f+(e?"":"[")+t+(e?"":"]"))}):u.push(ht(f)+"="+ht(yf(n))))}if(!n)return"";var u=[];return i(n,"",!0),u.join("&")}}}function pf(n,t){var r,i;return h(n)&&(r=n.replace(tp,"").trim(),r&&(i=t("Content-Type"),(i=i&&0===i.indexOf(yh))||(i=(i=r.match(gy))&&np[i[0]].test(r)),i&&(n=be(r)))),n}function wo(n){var i=y(),r;return h(n)?t(n.split("\n"),function(n){r=n.indexOf(":");var t=v(p(n.substr(0,r)));n=p(n.substr(r+1));t&&(i[t]=i[t]?i[t]+", "+n:n)}):s(n)&&t(n,function(n,t){var r=v(t),u=p(n);r&&(i[r]=i[r]?i[r]+", "+u:u)}),i}function bo(n){var t;return function(i){return t||(t=wo(n)),i?(i=t[v(i)],void 0===i&&(i=null),i):t}}function ko(n,i,r,u){return f(u)?u(n,i,r):(t(u,function(t){n=t(n,i,r)}),n)}function ua(){var n=this.defaults={transformResponse:[pf],transformRequest:[function(n){return s(n)&&"[object File]"!==rt.call(n)&&"[object Blob]"!==rt.call(n)&&"[object FormData]"!==rt.call(n)?hr(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:st(ce),put:st(ce),patch:st(ce)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},i=!1,e,o;this.useApplyAsync=function(n){return u(n)?(i=!!n,this):i};e=!0;this.useLegacyPromiseExtensions=function(n){return u(n)?(e=!!n,this):e};o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(y,p,w,b,k,d){function g(i){function c(n,t){for(var u,f,i=0,r=t.length;i<r;)u=t[i++],f=t[i++],n=n.then(u,f);return t.length=0,n}function b(n,i){var r,u={};return t(n,function(n,t){f(n)?(r=n(i),null!=r&&(u[t]=r)):u[t]=n}),u}function y(n){var t=a({},n);return t.data=ko(n.data,n.headers,n.status,o.transformResponse),n=n.status,200<=n&&300>n?t:k.reject(t)}var o;if(!s(i))throw l("$http")("badreq",i);if(!h(i.url))throw l("$http")("badreq",i.url);o=a({method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse,paramSerializer:n.paramSerializer},i);o.headers=function(t){var i=n.headers,u=a({},t.headers),r,f,e,i=a({},i.common,i[v(t.method)]);n:for(r in i){f=v(r);for(e in u)if(v(e)===f)continue n;u[r]=i[r]}return b(u,st(t))}(i);o.method=bu(o.method);o.paramSerializer=h(o.paramSerializer)?d.get(o.paramSerializer):o.paramSerializer;var p=[],w=[],u=k.when(o);return t(nt,function(n){(n.request||n.requestError)&&p.unshift(n.request,n.requestError);(n.response||n.responseError)&&w.push(n.response,n.responseError)}),u=c(u,p),u=u.then(function(i){var u=i.headers,f=ko(i.data,bo(u),void 0,i.transformRequest);return r(f)&&t(u,function(n,t){"content-type"===v(t)&&delete u[t]}),r(i.withCredentials)&&!r(n.withCredentials)&&(i.withCredentials=n.withCredentials),tt(i,f).then(y,y)}),u=c(u,w),e?(u.success=function(n){return vi(n,"fn"),u.then(function(t){n(t.data,t.status,t.headers,o)}),u},u.error=function(n){return vi(n,"fn"),u.then(null,function(t){n(t.data,t.status,t.headers,o)}),u}):(u.success=ph("success"),u.error=ph("error")),u}function tt(e,o){function nt(n){if(n){var r={};return t(n,function(n,t){r[t]=function(t){function r(){n(t)}i?b.$applyAsync(r):b.$$phase?r():b.$apply(r)}}),r}}function et(n,t,r,u){function f(){v(t,n,r,u)}l&&(200<=n&&300>n?l.put(a,[n,t,wo(r),u]):l.remove(a));i?b.$applyAsync(f):(f(),b.$$phase||b.$apply())}function v(n,t,i,r){t=-1<=t?t:0;(200<=t&&300>t?w.resolve:w.reject)({data:n,status:t,headers:bo(i),config:e,statusText:r})}function tt(n){v(n.data,n.status,st(n.headers()),n.statusText)}function ut(){var n=g.pendingRequests.indexOf(e);-1!==n&&g.pendingRequests.splice(n,1)}var w=k.defer(),d=w.promise,l,h,ft=e.headers,a=it(e.url,e.paramSerializer(e.params));return g.pendingRequests.push(e),d.then(ut,ut),(e.cache||n.cache)&&!1!==e.cache&&("GET"===e.method||"JSONP"===e.method)&&(l=s(e.cache)?e.cache:s(n.cache)?n.cache:rt),l&&(h=l.get(a),u(h)?h&&f(h.then)?h.then(tt,tt):c(h)?v(h[1],h[0],st(h[2]),h[3]):v(h,200,{},"OK"):l.put(a,d)),r(h)&&((h=vs(e.url)?p()[e.xsrfCookieName||n.xsrfCookieName]:void 0)&&(ft[e.xsrfHeaderName||n.xsrfHeaderName]=h),y(e.method,a,o,et,ft,e.timeout,e.withCredentials,e.responseType,nt(e.eventHandlers),nt(e.uploadEventHandlers))),d}function it(n,t){return 0<t.length&&(n+=(-1==n.indexOf("?")?"?":"&")+t),n}var rt=w("$http"),nt;return n.paramSerializer=h(n.paramSerializer)?d.get(n.paramSerializer):n.paramSerializer,nt=[],t(o,function(n){nt.unshift(h(n)?d.get(n):d.invoke(n))}),g.pendingRequests=[],function(){t(arguments,function(n){g[n]=function(t,i){return g(a({},i||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){t(arguments,function(n){g[n]=function(t,i,r){return g(a({},r||{},{method:n,url:t,data:i}))}})}("post","put","patch"),g.defaults=n,g}]}function fa(){this.$get=function(){return function(){return new n.XMLHttpRequest}}}function ea(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(n,t,i,r){return oa(n,r,n.defer,t,i[0])}]}function oa(n,i,e,s,h){function c(n,t,i){n=n.replace("JSON_CALLBACK",t);var r=h.createElement("script"),u=null;return r.type="text/javascript",r.src=n,r.async=!0,u=function(n){r.removeEventListener("load",u,!1);r.removeEventListener("error",u,!1);h.body.removeChild(r);r=null;var f=-1,e="unknown";n&&("load"!==n.type||s.wasCalled(t)||(n={type:"error"}),e=n.type,f="error"===n.type?404:200);i&&i(f,e)},r.addEventListener("load",u,!1),r.addEventListener("error",u,!1),h.body.appendChild(r),u}return function(h,l,a,y,p,w,b,k,d,g){function ft(){it&&it();nt&&nt.abort()}function rt(t,i,r,f,s){u(ut)&&e.cancel(ut);it=nt=null;t(i,r,f,s);n.$$completeOutstandingRequest(o)}var tt,it,nt,ut;if(n.$$incOutstandingRequestCount(),l=l||n.url(),"jsonp"===v(h))tt=s.createCallback(l),it=c(l,tt,function(n,t){var i=200===n&&s.getResponse(tt);rt(y,n,i,"",t);s.removeCallback(tt)});else{if(nt=i(h,l),nt.open(h,l,!0),t(p,function(n,t){u(n)&&nt.setRequestHeader(t,n)}),nt.onload=function(){var i=nt.statusText||"",t="response"in nt?nt.response:nt.responseText,n=1223===nt.status?204:nt.status;0===n&&(n=t?200:"file"==ni(l).protocol?404:0);rt(y,n,t,nt.getAllResponseHeaders(),i)},h=function(){rt(y,-1,null,null,"")},nt.onerror=h,nt.onabort=h,t(d,function(n,t){nt.addEventListener(t,n)}),t(g,function(n,t){nt.upload.addEventListener(t,n)}),b&&(nt.withCredentials=!0),k)try{nt.responseType=k}catch(et){if("json"!==k)throw et;}nt.send(r(a)?null:a)}0<w?ut=e(ft,w):w&&f(w.then)&&w.then(ft)}}function sa(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,e,o){function c(n){return"\\\\\\"+n}function s(i){return i.replace(p,n).replace(w,t)}function v(n,t,i,r){var u;return u=n.$watch(function(n){return u(),r(n)},t,i)}function h(h,c,p,w){function et(n){var i,t;try{if(i=n,n=p?o.getTrusted(p,i):o.valueOf(i),w&&!u(n))t=n;else if(null==n)t="";else{switch(typeof n){case"string":break;case"number":n=""+n;break;default:n=hr(n)}t=n}return t}catch(r){e(ai.interr(h,r))}}var k,d,rt,ut;if(!h.length||-1===h.indexOf(n))return c||(c=s(h),k=ft(c),k.exp=h,k.expressions=[],k.$$watchDelegate=v),k;w=!!w;var g,tt,b=0,nt=[],it=[];for(k=h.length,d=[],rt=[];b<k;)if(-1!=(g=h.indexOf(n,b))&&-1!=(tt=h.indexOf(t,g+l)))b!==g&&d.push(s(h.substring(b,g))),b=h.substring(g+l,tt),nt.push(b),it.push(i(b,et)),b=tt+y,rt.push(d.length),d.push("");else{b!==k&&d.push(s(h.substring(b)));break}return p&&1<d.length&&ai.throwNoconcat(h),!c||nt.length?(ut=function(n){for(var t=0,i=nt.length;t<i;t++){if(w&&r(n[t]))return;d[rt[t]]=n[t]}return d.join("")},a(function(n){var t=0,i=nt.length,r=Array(i);try{for(;t<i;t++)r[t]=it[t](n);return ut(r)}catch(u){e(ai.interr(h,u))}},{exp:h,expressions:nt,$$watchDelegate:function(n,t){var i;return n.$watchGroup(it,function(r,u){var e=ut(r);f(t)&&t.call(this,e,r!==u?i:e,n);i=e})}})):void 0}var l=n.length,y=t.length,p=new RegExp(n.replace(/./g,c),"g"),w=new RegExp(t.replace(/./g,c),"g");return h.startSymbol=function(){return n},h.endSymbol=function(){return t},h}]}function ha(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(n,t,i,r,f){function o(o,s,h,c){function p(){w?o.apply(null,b):o(a)}var w=4<arguments.length,b=w?bt.call(arguments,4):[],k=t.setInterval,d=t.clearInterval,a=0,y=u(c)&&!c,v=(y?r:i).defer(),l=v.promise;return h=u(h)?h:0,l.$$intervalId=k(function(){y?f.defer(p):n.$evalAsync(p);v.notify(a++);0<h&&a>=h&&(v.resolve(a),d(l.$$intervalId),delete e[l.$$intervalId]);y||n.$apply()},s),e[l.$$intervalId]=v,l}var e={};return o.cancel=function(n){return n&&n.$$intervalId in e?(e[n.$$intervalId].reject("canceled"),t.clearInterval(n.$$intervalId),delete e[n.$$intervalId],!0):!1},o}]}function wf(n){n=n.split("/");for(var t=n.length;t--;)n[t]=tu(n[t]);return n.join("/")}function go(n,t){var i=ni(n);t.$$protocol=i.protocol;t.$$host=i.hostname;t.$$port=tt(i.port)||fp[i.protocol]||null}function ns(n,t){var r="/"!==n.charAt(0),i;r&&(n="/"+n);i=ni(n);t.$$path=decodeURIComponent(r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname);t.$$search=ge(i.search);t.$$hash=decodeURIComponent(i.hash);t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function pt(n,t){if(0===t.lastIndexOf(n,0))return t.substr(n.length)}function oi(n){var t=n.indexOf("#");return-1==t?n:n.substr(0,t)}function yr(n){return n.replace(/(#.+)|#$/,"$1")}function bf(n,t,i){this.$$html5=!0;i=i||"";go(n,this);this.$$parse=function(n){var i=pt(t,n);if(!h(i))throw tf("ipthprfx",n,t);ns(i,this);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=lf(this.$$search),i=this.$$hash?"#"+tu(this.$$hash):"";this.$$url=wf(this.$$path)+(n?"?"+n:"")+i;this.$$absUrl=t+this.$$url.substr(1)};this.$$parseLinkUrl=function(r,f){if(f&&"#"===f[0])return this.hash(f.slice(1)),!0;var e,o;return u(e=pt(n,r))?(o=e,o=u(e=pt(i,e))?t+(pt("/",e)||e):n+o):u(e=pt(t,r))?o=t+e:t==r+"/"&&(o=t),o&&this.$$parse(o),!!o}}function kf(n,t,i){go(n,this);this.$$parse=function(u){var e=pt(n,u)||pt(t,u),f,o;r(e)||"#"!==e.charAt(0)?this.$$html5?f=e:(f="",r(e)&&(n=u,this.replace())):(f=pt(i,e),r(f)&&(f=e));ns(f,this);u=this.$$path;e=n;o=/^\/[A-Z]:(\/.*)/;0===f.lastIndexOf(e,0)&&(f=f.replace(e,""));o.exec(f)||(u=(f=o.exec(u))?f[1]:u);this.$$path=u;this.$$compose()};this.$$compose=function(){var t=lf(this.$$search),r=this.$$hash?"#"+tu(this.$$hash):"";this.$$url=wf(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+(this.$$url?i+this.$$url:"")};this.$$parseLinkUrl=function(t){return oi(n)==oi(t)?(this.$$parse(t),!0):!1}}function ts(n,t,i){this.$$html5=!0;kf.apply(this,arguments);this.$$parseLinkUrl=function(r,u){if(u&&"#"===u[0])return this.hash(u.slice(1)),!0;var f,e;return n==oi(r)?f=r:(e=pt(t,r))?f=n+i+e:t===r+"/"&&(f=t),f&&this.$$parse(f),!!f};this.$$compose=function(){var t=lf(this.$$search),r=this.$$hash?"#"+tu(this.$$hash):"";this.$$url=wf(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+i+this.$$url}}function au(n){return function(){return this[n]}}function is(n,t){return function(i){return r(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function ca(){var t="",n={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(n){return u(n)?(t=n,this):t};this.html5Mode=function(t){return ui(t)?(n.enabled=t,this):s(t)?(ui(t.enabled)&&(n.enabled=t.enabled),ui(t.requireBase)&&(n.requireBase=t.requireBase),ui(t.rewriteLinks)&&(n.rewriteLinks=t.rewriteLinks),this):n};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(i,u,f,o,h){function w(n,t,i){var r=c.url(),f=c.$$state;try{u.url(n,t,i);c.$$state=u.state()}catch(e){throw c.url(r),c.$$state=f,e;}}function b(n,t){i.$broadcast("$locationChangeSuccess",c.absUrl(),n,c.$$state,t)}var c,a,l,v,p,k,y;if(a=u.baseHref(),l=u.url(),n.enabled){if(!a&&n.requireBase)throw tf("nobase");v=l.substring(0,l.indexOf("/",l.indexOf("//")+2))+(a||"/");a=f.history?bf:ts}else v=oi(l),a=kf;p=v.substr(0,oi(v).lastIndexOf("/")+1);c=new a(v,p,"#"+t);c.$$parseLinkUrl(l,l);c.$$state=u.state();k=/^\s*(javascript|mailto):/i;o.on("click",function(t){var r,f,l;if(n.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(r=e(t.target);"a"!==at(r[0]);)if(r[0]===o[0]||!(r=r.parent())[0])return;f=r.prop("href");l=r.attr("href")||r.attr("xlink:href");s(f)&&"[object SVGAnimatedString]"===f.toString()&&(f=ni(f.animVal).href);k.test(f)||!f||r.attr("target")||t.isDefaultPrevented()||!c.$$parseLinkUrl(f,l)||(t.preventDefault(),c.absUrl()!=u.url()&&(i.$apply(),h.angular["ff-684208-preventDefault"]=!0))}});yr(c.absUrl())!=yr(l)&&u.url(c.absUrl(),!0);y=!0;u.onUrlChange(function(n,t){r(pt(p,n))?h.location.href=n:(i.$evalAsync(function(){var r=c.absUrl(),u=c.$$state,f;n=yr(n);c.$$parse(n);c.$$state=t;f=i.$broadcast("$locationChangeStart",n,r,t,u).defaultPrevented;c.absUrl()===n&&(f?(c.$$parse(r),c.$$state=u,w(r,!1,u)):(y=!1,b(r,u)))}),i.$$phase||i.$digest())});return i.$watch(function(){var t=yr(u.url()),e=yr(c.absUrl()),n=u.state(),o=c.$$replace,r=t!==e||c.$$html5&&f.history&&n!==c.$$state;(y||r)&&(y=!1,i.$evalAsync(function(){var u=c.absUrl(),f=i.$broadcast("$locationChangeStart",u,t,c.$$state,n).defaultPrevented;c.absUrl()===u&&(f?(c.$$parse(t),c.$$state=n):(r&&w(u,o,n===c.$$state?null:c.$$state),b(t,n)))}));c.$$replace=!1}),c}]}function la(){var n=!0,i=this;this.debugEnabled=function(t){return u(t)?(n=t,this):n};this.$get=["$window",function(r){function f(n){return n instanceof Error&&(n.stack?n=n.message&&-1===n.stack.indexOf(n.message)?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var i=r.console||{},u=i[n]||i.log||o;n=!1;try{n=!!u.apply}catch(e){}return n?function(){var n=[];return t(arguments,function(t){n.push(f(t))}),u.apply(i,n)}:function(n,t){u(n,null==t?"":t)}}return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var t=u("debug");return function(){n&&t.apply(i,arguments)}}()}}]}function wi(n,t){if("__defineGetter__"===n||"__defineSetter__"===n||"__lookupGetter__"===n||"__lookupSetter__"===n||"__proto__"===n)throw it("isecfld",t);return n}function aa(n){return n+""}function gt(n,t){if(n){if(n.constructor===n)throw it("isecfn",t);if(n.window===n)throw it("isecwindow",t);if(n.children&&(n.nodeName||n.prop&&n.attr&&n.find))throw it("isecdom",t);if(n===Object)throw it("isecobj",t);}return n}function rs(n,t){if(n){if(n.constructor===n)throw it("isecfn",t);if(n===op||n===sp||n===hp)throw it("isecff",t);}}function vu(n,t){if(n&&(n===0..constructor||n===(!1).constructor||n==="".constructor||n==={}.constructor||n===[].constructor||n===Function.constructor))throw it("isecaf",t);}function va(n,t){return"undefined"!=typeof n?n:t}function us(n,t){return"undefined"==typeof n?t:"undefined"==typeof t?n:n+t}function k(n,r){var u,f;switch(n.type){case i.Program:u=!0;t(n.body,function(n){k(n.expression,r);u=u&&n.expression.constant});n.constant=u;break;case i.Literal:n.constant=!0;n.toWatch=[];break;case i.UnaryExpression:k(n.argument,r);n.constant=n.argument.constant;n.toWatch=n.argument.toWatch;break;case i.BinaryExpression:k(n.left,r);k(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.left.toWatch.concat(n.right.toWatch);break;case i.LogicalExpression:k(n.left,r);k(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.constant?[]:[n];break;case i.ConditionalExpression:k(n.test,r);k(n.alternate,r);k(n.consequent,r);n.constant=n.test.constant&&n.alternate.constant&&n.consequent.constant;n.toWatch=n.constant?[]:[n];break;case i.Identifier:n.constant=!1;n.toWatch=[n];break;case i.MemberExpression:k(n.object,r);n.computed&&k(n.property,r);n.constant=n.object.constant&&(!n.computed||n.property.constant);n.toWatch=[n];break;case i.CallExpression:u=n.filter?!r(n.callee.name).$stateful:!1;f=[];t(n.arguments,function(n){k(n,r);u=u&&n.constant;n.constant||f.push.apply(f,n.toWatch)});n.constant=u;n.toWatch=n.filter&&!r(n.callee.name).$stateful?f:[n];break;case i.AssignmentExpression:k(n.left,r);k(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=[n];break;case i.ArrayExpression:u=!0;f=[];t(n.elements,function(n){k(n,r);u=u&&n.constant;n.constant||f.push.apply(f,n.toWatch)});n.constant=u;n.toWatch=f;break;case i.ObjectExpression:u=!0;f=[];t(n.properties,function(n){k(n.value,r);u=u&&n.value.constant&&!n.computed;n.value.constant||f.push.apply(f,n.value.toWatch)});n.constant=u;n.toWatch=f;break;case i.ThisExpression:n.constant=!1;n.toWatch=[];break;case i.LocalsExpression:n.constant=!1;n.toWatch=[]}}function fs(n){if(1==n.length){n=n[0].expression;var t=n.toWatch;return 1!==t.length?t:t[0]!==n?t:void 0}}function es(n){return n.type===i.Identifier||n.type===i.MemberExpression}function os(n){if(1===n.body.length&&es(n.body[0].expression))return{type:i.AssignmentExpression,left:n.body[0].expression,right:{type:i.NGValueParameter},operator:"="}}function ss(n){return 0===n.body.length||1===n.body.length&&(n.body[0].expression.type===i.Literal||n.body[0].expression.type===i.ArrayExpression||n.body[0].expression.type===i.ObjectExpression)}function hs(n,t){this.astBuilder=n;this.$filter=t}function cs(n,t){this.astBuilder=n;this.$filter=t}function yu(n){return"constructor"==n}function df(n){return f(n.valueOf)?n.valueOf():cp.call(n)}function ya(){var e=y(),s=y(),r={"true":!0,"false":!1,"null":null,undefined:void 0},n,i;this.addLiteral=function(n,t){r[n]=t};this.setIdentifierFns=function(t,r){return n=t,i=r,this};this.$get=["$filter",function(h){function p(n,t,i){var r,l,u,f,p;i=i||c;switch(typeof n){case"string":return u=n=n.trim(),f=i?s:e,r=f[u],r||(":"===n.charAt(0)&&":"===n.charAt(1)&&(l=!0,n=n.substring(2)),r=i?nt:g,p=new uf(r),r=new ff(p,h,r).parse(n),r.constant?r.$$watchDelegate=d:l?r.$$watchDelegate=r.literal?b:w:r.inputs&&(r.$$watchDelegate=v),i&&(r=a(r)),f[u]=r),y(r,t);case"function":return y(n,t);default:return y(o,t)}}function a(n){function t(t,i,r,u){var f=c;c=!0;try{return n(t,i,r,u)}finally{c=f}}if(!n)return n;t.$$watchDelegate=n.$$watchDelegate;t.assign=a(n.assign);t.constant=n.constant;t.literal=n.literal;for(var i=0;n.inputs&&i<n.inputs.length;++i)n.inputs[i]=a(n.inputs[i]);return t.inputs=n.inputs,t}function l(n,t){return null==n||null==t?n===t:"object"==typeof n&&(n=df(n),"object"==typeof n)?!1:n===t||n!==n&&t!==t}function v(n,t,i,r,u){var f=r.inputs,e,s;if(1===f.length)return s=l,f=f[0],n.$watch(function(n){var t=f(n);return l(t,s)||(e=r(n,void 0,void 0,[t]),s=t&&df(t)),e},t,i,u);for(var h=[],c=[],o=0,a=f.length;o<a;o++)h[o]=l,c[o]=null;return n.$watch(function(n){for(var i,u=!1,t=0,o=f.length;t<o;t++)i=f[t](n),(u||(u=!l(i,h[t])))&&(c[t]=i,h[t]=i&&df(i));return u&&(e=r(n,void 0,void 0,c)),e},t,i,u)}function w(n,t,i,r){var e,o;return e=n.$watch(function(n){return r(n)},function(n,i,r){o=n;f(t)&&t.apply(this,arguments);u(n)&&r.$$postDigest(function(){u(o)&&e()})},i)}function b(n,i,r,e){function o(n){var i=!0;return t(n,function(n){u(n)||(i=!1)}),i}var s,h;return s=n.$watch(function(n){return e(n)},function(n,t,r){h=n;f(i)&&i.call(this,n,t,r);o(n)&&r.$$postDigest(function(){o(h)&&s()})},r)}function d(n,t,i,r){var u;return u=n.$watch(function(n){return u(),r(n)},t,i)}function y(n,t){if(!t)return n;var i=n.$$watchDelegate,r=!1,i=i!==b&&i!==w?function(i,u,f,e){return f=r&&e?e[0]:n(i,u,f,e),t(f,i,u)}:function(i,r,f,e){return f=n(i,r,f,e),i=t(f,i,r),u(f)?i:f};return n.$$watchDelegate&&n.$$watchDelegate!==v?i.$$watchDelegate=n.$$watchDelegate:t.$stateful||(i.$$watchDelegate=v,r=!n.inputs,i.inputs=n.inputs?n.inputs:[n]),i}var k=ci().noUnsafeEval,g={csp:k,expensiveChecks:!1,literals:dt(r),isIdentifierStart:f(n)&&n,isIdentifierContinue:f(i)&&i},nt={csp:k,expensiveChecks:!0,literals:dt(r),isIdentifierStart:f(n)&&n,isIdentifierContinue:f(i)&&i},c=!1;return p.$$runningExpensiveChecks=function(){return c},p}]}function pa(){this.$get=["$rootScope","$exceptionHandler",function(n,t){return ls(function(t){n.$evalAsync(t)},t)}]}function wa(){this.$get=["$browser","$exceptionHandler",function(n,t){return ls(function(t){n.defer(t)},t)}]}function ls(n,i){function y(){this.$$state={status:0}}function o(n,t){return function(i){t.call(n,i)}}function p(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,n(function(){var e,n,u,r,o;for(u=t.pending,t.processScheduled=!1,t.pending=void 0,r=0,o=u.length;r<o;++r){n=u[r][0];e=u[r][t.status];try{f(e)?n.resolve(e(t.value)):1===t.status?n.resolve(t.value):n.reject(t.value)}catch(s){n.reject(s);i(s)}}}))}function u(){this.promise=new y}var w=l("$q",TypeError),b=function(){var n=new u;return n.resolve=o(n,n.resolve),n.reject=o(n,n.reject),n.notify=o(n,n.notify),n};a(y.prototype,{then:function(n,t,i){if(r(n)&&r(t)&&r(i))return this;var f=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([f,n,t,i]),0<this.$$state.status&&p(this.$$state),f.promise},"catch":function(n){return this.then(null,n)},"finally":function(n,t){return this.then(function(t){return k(t,!0,n)},function(t){return k(t,!1,n)},t)}});a(u.prototype,{resolve:function(n){this.promise.$$state.status||(n===this.promise?this.$$reject(w("qcycle",n)):this.$$resolve(n))},$$resolve:function(n){function c(n){t||(t=!0,e.$$resolve(n))}function u(n){t||(t=!0,e.$$reject(n))}var r,e=this,t=!1;try{(s(n)||f(n))&&(r=n&&n.then);f(r)?(this.promise.$$state.status=-1,r.call(n,c,u,o(this,this.notify))):(this.promise.$$state.value=n,this.promise.$$state.status=1,p(this.promise.$$state))}catch(h){u(h);i(h)}},reject:function(n){this.promise.$$state.status||this.$$reject(n)},$$reject:function(n){this.promise.$$state.value=n;this.promise.$$state.status=2;p(this.promise.$$state)},notify:function(t){var r=this.promise.$$state.pending;0>=this.promise.$$state.status&&r&&r.length&&n(function(){for(var u,e,n=0,o=r.length;n<o;n++){e=r[n][0];u=r[n][3];try{e.notify(f(u)?u(t):t)}catch(s){i(s)}}})}});var h=function(n,t){var i=new u;return t?i.resolve(n):i.reject(n),i.promise},k=function(n,t,i){var r=null;try{f(i)&&(r=i())}catch(u){return h(u,!1)}return r&&f(r.then)?r.then(function(){return h(n,t)},function(n){return h(n,!1)}):h(n,t)},v=function(n,t,i,r){var f=new u;return f.resolve(n),f.promise.then(t,i,r)},e=function(n){if(!f(n))throw w("norslvr",n);var t=new u;return n(function(n){t.resolve(n)},function(n){t.reject(n)}),t.promise};return e.prototype=y.prototype,e.defer=b,e.reject=function(n){var t=new u;return t.reject(n),t.promise},e.when=v,e.resolve=v,e.all=function(n){var r=new u,f=0,i=c(n)?[]:{};return t(n,function(n,t){f++;v(n).then(function(n){i.hasOwnProperty(t)||(i[t]=n,--f||r.resolve(i))},function(n){i.hasOwnProperty(t)||r.reject(n)})}),0===f&&r.resolve(i),r.promise},e.race=function(n){var i=b();return t(n,function(n){v(n).then(i.resolve,i.reject)}),i.promise},e}function ba(){this.$get=["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]}function ka(){function h(n){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=++ku;this.$$ChildScope=null}return t.prototype=n,t}var u=10,e=l("$rootScope"),n=null,i=null;this.digestTtl=function(n){return arguments.length&&(u=n),u};this.$get=["$exceptionHandler","$parse","$browser",function(c,l,a){function ut(n){n.currentScope.$$destroyed=!0}function b(n){9===ti&&(n.$$childHead&&b(n.$$childHead),n.$$nextSibling&&b(n.$$nextSibling));n.$parent=n.$$nextSibling=n.$$prevSibling=n.$$childHead=n.$$childTail=n.$root=n.$$watchers=null}function p(){this.$id=++ku;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function nt(n){if(v.$$phase)throw e("inprog",v.$$phase);v.$$phase=n}function k(n,t){do n.$$watchersCount+=t;while(n=n.$parent)}function tt(n,t,i){do n.$$listenerCount[i]-=t,0===n.$$listenerCount[i]&&delete n.$$listenerCount[i];while(n=n.$parent)}function it(){}function rt(){for(;d.length;)try{d.shift()()}catch(n){c(n)}i=null}function ft(){null===i&&(i=a.defer(function(){v.$apply(rt)}))}p.prototype={constructor:p,$new:function(n,t){var i;return t=t||this,n?(i=new p,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=h(this)),i=new this.$$ChildScope),i.$parent=t,i.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=i,t.$$childTail=i):t.$$childHead=t.$$childTail=i,(n||t!=this)&&i.$on("$destroy",ut),i},$watch:function(t,i,r,u){var e=l(t);if(e.$$watchDelegate)return e.$$watchDelegate(this,i,r,e,t);var h=this,s=h.$$watchers,c={fn:i,last:it,get:e,exp:u||t,eq:!!r};return n=null,f(i)||(c.fn=o),s||(s=h.$$watchers=[]),s.unshift(c),k(this,1),function(){0<=er(s,c)&&k(h,-1);n=null}},$watchGroup:function(n,i){function c(){o=!1;h?(h=!1,i(r,r,u)):i(r,f,u)}var f=Array(n.length),r=Array(n.length),e=[],u=this,o=!1,h=!0,s;return n.length?1===n.length?this.$watch(n[0],function(n,t,u){r[0]=n;f[0]=t;i(r,n===t?r:f,u)}):(t(n,function(n,t){var i=u.$watch(n,function(n,i){r[t]=n;f[t]=i;o||(o=!0,u.$evalAsync(c))});e.push(i)}),function(){for(;e.length;)e.shift()()}):(s=!0,u.$evalAsync(function(){s&&i(r,r,u)}),function(){s=!1})},$watchCollection:function(n,t){function h(n){i=n;var t,c,o,h;if(!r(i)){if(s(i))if(kt(i))for(u!==a&&(u=a,e=u.length=0,f++),n=i.length,e!==n&&(f++,u.length=e=n),t=0;t<n;t++)h=u[t],o=i[t],c=h!==h&&o!==o,c||h===o||(f++,u[t]=o);else{u!==v&&(u=v={},e=0,f++);n=0;for(t in i)wt.call(i,t)&&(n++,o=i[t],h=u[t],t in u?(c=h!==h&&o!==o,c||h===o||(f++,u[t]=o)):(e++,u[t]=o,f++));if(e>n)for(t in f++,u)wt.call(i,t)||(e--,delete u[t])}else u!==i&&(u=i,f++);return f}}h.$stateful=!0;var c=this,i,u,o,p=1<t.length,f=0,w=l(n,h),a=[],v={},y=!0,e=0;return this.$watch(w,function(){if(y?(y=!1,t(i,i,c)):t(i,o,c),p)if(s(i))if(kt(i)){o=Array(i.length);for(var n=0;n<i.length;n++)o[n]=i[n]}else for(n in o={},i)wt.call(i,n)&&(o[n]=i[n]);else o=i})},$digest:function(){var t,s,h,ut,ft,o,d,l,tt=u,r,p=[],b,k;nt("$digest");a.$$checkUrlChange();this===v&&null!==i&&(a.defer.cancel(i),rt());n=null;do{for(l=!1,r=this,o=0;o<y.length;o++){try{k=y[o];k.scope.$eval(k.expression,k.locals)}catch(et){c(et)}n=null}y.length=0;n:do{if(o=r.$$watchers)for(d=o.length;d--;)try{if(t=o[d])if(ft=t.get,(s=ft(r))===(h=t.last)||(t.eq?ot(s,h):"number"==typeof s&&"number"==typeof h&&isNaN(s)&&isNaN(h))){if(t===n){l=!1;break n}}else l=!0,n=t,t.last=t.eq?dt(s,null):s,ut=t.fn,ut(s,h===it?s:h,r),5>tt&&(b=4-tt,p[b]||(p[b]=[]),p[b].push({msg:f(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:s,oldVal:h}))}catch(st){c(st)}if(!(o=r.$$watchersCount&&r.$$childHead||r!==this&&r.$$nextSibling))for(;r!==this&&!(o=r.$$nextSibling);)r=r.$parent}while(r=o);if((l||y.length)&&!tt--)throw v.$$phase=null,e("infdig",u,p);}while(l||y.length);for(v.$$phase=null;g<w.length;)try{w[g++]()}catch(ht){c(ht)}w.length=g=0},$destroy:function(){var n,t;if(!this.$$destroyed){n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===v&&a.$$applicationDestroyed();k(this,-this.$$watchersCount);for(t in this.$$listenerCount)tt(this,this.$$listenerCount[t],t);n&&n.$$childHead==this&&(n.$$childHead=this.$$nextSibling);n&&n.$$childTail==this&&(n.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=o;this.$on=this.$watch=this.$watchGroup=function(){return o};this.$$listeners={};this.$$nextSibling=null;b(this)}},$eval:function(n,t){return l(n)(this,t)},$evalAsync:function(n,t){v.$$phase||y.length||a.defer(function(){y.length&&v.$digest()});y.push({scope:this,expression:l(n),locals:t})},$$postDigest:function(n){w.push(n)},$apply:function(n){try{nt("$apply");try{return this.$eval(n)}finally{v.$$phase=null}}catch(i){c(i)}finally{try{v.$digest()}catch(t){throw c(t),t;}}},$applyAsync:function(n){function t(){i.$eval(n)}var i=this;n&&d.push(t);n=l(n);ft()},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){var i=r.indexOf(t);-1!==i&&(r[i]=null,tt(u,1,n))}},$emit:function(n){var o=[],u,r=this,e=!1,t={name:n,targetScope:r,stopPropagation:function(){e=!0},preventDefault:function(){t.defaultPrevented=!0},defaultPrevented:!1},s=or([t],arguments,1),i,f;do{for(u=r.$$listeners[n]||o,t.currentScope=r,i=0,f=u.length;i<f;i++)if(u[i])try{u[i].apply(null,s)}catch(h){c(h)}else u.splice(i,1),i--,f--;if(e)return t.currentScope=null,t;r=r.$parent}while(r);return t.currentScope=null,t},$broadcast:function(n){var t=this,i=this,u={name:n,targetScope:this,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},e,r,f;if(!this.$$listenerCount[n])return u;for(e=or([u],arguments,1);t=i;){for(u.currentScope=t,i=t.$$listeners[n]||[],r=0,f=i.length;r<f;r++)if(i[r])try{i[r].apply(null,e)}catch(o){c(o)}else i.splice(r,1),r--,f--;if(!(i=t.$$listenerCount[n]&&t.$$childHead||t!==this&&t.$$nextSibling))for(;t!==this&&!(i=t.$$nextSibling);)t=t.$parent}return u.currentScope=null,u}};var v=new p,y=v.$$asyncQueue=[],w=v.$$postDigestQueue=[],d=v.$$applyAsyncQueue=[],g=0;return v}]}function da(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return u(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return u(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u;return u=ni(i).href,""===u||u.match(f)?i:"unsafe:"+u}}}function ga(n){if("self"===n)return n;if(h(n)){if(-1<n.indexOf("***"))throw ri("iwcard",n);return n=sh(n).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+n+"$")}if(rr(n))return new RegExp("^"+n.source+"$");throw ri("imatcher");}function as(n){var i=[];return u(n)&&t(n,function(n){i.push(ga(n))}),i}function nv(){this.SCE_CONTEXTS=lt;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=as(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=as(n)),t};this.$get=["$injector",function(i){function o(n,t){return"self"===n?vs(t):!!n.exec(t.href)}function f(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var s=function(){throw ri("unsafe");},e,u;return i.has("$sanitize")&&(s=i.get("$sanitize")),e=f(),u={},u[lt.HTML]=f(e),u[lt.CSS]=f(e),u[lt.URL]=f(e),u[lt.JS]=f(e),u[lt.RESOURCE_URL]=f(u[lt.URL]),{trustAs:function(n,t){var i=u.hasOwnProperty(n)?u[n]:null;if(!i)throw ri("icontext",n,t);if(null===t||r(t)||""===t)return t;if("string"!=typeof t)throw ri("itype",n);return new i(t)},getTrusted:function(i,f){var h,e,l,c;if(null===f||r(f)||""===f)return f;if(h=u.hasOwnProperty(i)?u[i]:null,h&&f instanceof h)return f.$$unwrapTrustedValue();if(i===lt.RESOURCE_URL){for(h=ni(f.toString()),c=!1,e=0,l=n.length;e<l;e++)if(o(n[e],h)){c=!0;break}if(c)for(e=0,l=t.length;e<l;e++)if(o(t[e],h)){c=!1;break}if(c)return f;throw ri("insecurl",f.toString());}if(i===lt.HTML)return s(f);throw ri("unsafe");},valueOf:function(n){return n instanceof e?n.$$unwrapTrustedValue():n}}}]}function tv(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sceDelegate",function(i,r){var u;if(n&&8>ti)throw ri("iequirks");u=st(lt);u.isEnabled=function(){return n};u.trustAs=r.trustAs;u.getTrusted=r.getTrusted;u.valueOf=r.valueOf;n||(u.trustAs=u.getTrusted=function(n,t){return t},u.valueOf=ir);u.parseAs=function(n,t){var r=i(t);return r.literal&&r.constant?r:i(t,function(t){return u.getTrusted(n,t)})};var f=u.parseAs,e=u.getTrusted,o=u.trustAs;return t(lt,function(n,t){var i=v(t);u[cr("parse_as_"+i)]=function(t){return f(n,t)};u[cr("get_trusted_"+i)]=function(t){return e(n,t)};u[cr("trust_as_"+i)]=function(t){return o(n,t)}}),u}]}function iv(){this.$get=["$window","$document",function(n,t){var o={},a=!(n.chrome&&n.chrome.app&&n.chrome.app.runtime)&&n.history&&n.history.pushState,s=tt((/android (\d+)/.exec(v((n.navigator||{}).userAgent))||[])[1]),y=/Boxee/i.test((n.navigator||{}).userAgent),c=t[0]||{},i,u=c.body&&c.body.style,f=!1,e=!1,l;if(u){for(l in u)if(f=/^(Moz|webkit|ms)(?=[A-Z])/.exec(l)){i=f[0];i=i[0].toUpperCase()+i.substr(1);break}i||(i="WebkitOpacity"in u&&"webkit");f=!!("transition"in u||i+"Transition"in u);e=!!("animation"in u||i+"Animation"in u);!s||f&&e||(f=h(u.webkitTransition),e=h(u.webkitAnimation))}return{history:!(!a||4>s||y),hasEvent:function(n){if("input"===n&&11>=ti)return!1;if(r(o[n])){var t=c.createElement("div");o[n]="on"+n in t}return o[n]},csp:ci(),vendorPrefix:i,transitions:f,animations:e,android:s}}]}function rv(){var n;this.httpOptions=function(t){return t?(n=t,this):n};this.$get=["$templateCache","$http","$q","$sce",function(t,i,u,f){function e(o,s){e.totalPendingRequests++;(!h(o)||r(t.get(o)))&&(o=f.getTrustedResourceUrl(o));var l=i.defaults&&i.defaults.transformResponse;return c(l)?l=l.filter(function(n){return n!==pf}):l===pf&&(l=null),i.get(o,a({cache:t,transformResponse:l},n))["finally"](function(){e.totalPendingRequests--}).then(function(n){return t.put(o,n.data),n.data},function(n){if(!s)throw lp("tpload",o,n.status,n.statusText);return u.reject(n)})}return e.totalPendingRequests=0,e}]}function uv(){this.$get=["$rootScope","$browser","$location",function(n,i,r){return{findBindings:function(n,i,r){n=n.getElementsByClassName("ng-binding");var u=[];return t(n,function(n){var f=ut.element(n).data("$binding");f&&t(f,function(t){r?new RegExp("(^|\\s)"+sh(i)+"(\\s|\\||$)").test(t)&&u.push(n):-1!=t.indexOf(i)&&u.push(n)})}),u},findModels:function(n,t,i){for(var f,u=["ng-","data-ng-","ng\\:"],r=0;r<u.length;++r)if(f=n.querySelectorAll("["+u[r]+"model"+(i?"=":"*=")+'"'+t+'"]'),f.length)return f},getLocation:function(){return r.url()},setLocation:function(t){t!==r.url()&&(r.url(t),n.$digest())},whenStable:function(n){i.notifyWhenNoOutstandingRequests(n)}}}]}function fv(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(n,t,i,r,e){function h(h,c,l){f(h)||(l=c,c=h,h=o);var w=bt.call(arguments,3),p=u(l)&&!l,a=(p?r:i).defer(),v=a.promise,y;return y=t.defer(function(){try{a.resolve(h.apply(null,w))}catch(t){a.reject(t);e(t)}finally{delete s[v.$$timeoutId]}p||n.$apply()},c),v.$$timeoutId=y,s[y]=a,v}var s={};return h.cancel=function(n){return n&&n.$$timeoutId in s?(s[n.$$timeoutId].reject("canceled"),delete s[n.$$timeoutId],t.defer.cancel(n.$$timeoutId)):!1},h}]}function ni(n){return ti&&(nt.setAttribute("href",n),n=nt.href),nt.setAttribute("href",n),{href:nt.href,protocol:nt.protocol?nt.protocol.replace(/:$/,""):"",host:nt.host,search:nt.search?nt.search.replace(/^\?/,""):"",hash:nt.hash?nt.hash.replace(/^#/,""):"",hostname:nt.hostname,port:nt.port,pathname:"/"===nt.pathname.charAt(0)?nt.pathname:"/"+nt.pathname}}function vs(n){return n=h(n)?ni(n):n,n.protocol===bh.protocol&&n.host===bh.host}function ev(){this.$get=ft(n)}function ys(n){function u(n){try{return decodeURIComponent(n)}catch(t){return n}}var f=n[0]||{},t={},i="";return function(){var n,e,o,s,h;if(n=f.cookie||"",n!==i)for(i=n,n=i.split("; "),t={},o=0;o<n.length;o++)e=n[o],s=e.indexOf("="),0<s&&(h=u(e.substring(0,s)),r(t[h])&&(t[h]=u(e.substring(s+1))));return t}}function ov(){this.$get=ys}function ps(n){function i(r,u){if(s(r)){var f={};return t(r,function(n,t){f[t]=i(t,n)}),f}return n.factory(r+"Filter",u)}this.register=i;this.$get=["$injector",function(n){return function(t){return n.get(t+"Filter")}}];i("currency",ws);i("date",nh);i("filter",sv);i("json",av);i("limitTo",vv);i("lowercase",gh);i("number",bs);i("orderBy",th);i("uppercase",nc)}function sv(){return function(n,t,i,r){if(!kt(n)){if(null==n)return n;throw l("filter")("notarray",n);}r=r||"$";var u;switch(gf(t)){case"function":break;case"boolean":case"null":case"number":case"string":u=!0;case"object":t=hv(t,i,r,u);break;default:return n}return Array.prototype.filter.call(n,t)}}function hv(n,t,i,u){var e=s(n)&&i in n;return!0===t?t=ot:f(t)||(t=function(n,t){return r(n)?!1:null===n||null===t?n===t:s(t)||s(n)&&!pe(n)?!1:(n=v(""+n),t=v(""+t),-1!==n.indexOf(t))}),function(r){return e&&!s(r)?si(r,n[i],t,i,!1):si(r,n,t,i,u)}}function si(n,t,i,u,e,o){var h=gf(n),l=gf(t),s;if("string"===l&&"!"===t.charAt(0))return!si(n,t.substring(1),i,u,e);if(c(n))return n.some(function(n){return si(n,t,i,u,e)});switch(h){case"object":if(e){for(s in n)if("$"!==s.charAt(0)&&si(n[s],t,i,u,!0))return!0;return o?!1:si(n,t,i,u,!1)}if("object"===l){for(s in t)if(o=t[s],!f(o)&&!r(o)&&(h=s===u,!si(h?n:n[s],o,i,u,h,h)))return!1;return!0}return i(n,t);case"function":return!1;default:return i(n,t)}}function gf(n){return null===n?"null":typeof n}function ws(n){var t=n.NUMBER_FORMATS;return function(n,i,u){return r(i)&&(i=t.CURRENCY_SYM),r(u)&&(u=t.PATTERNS[1].maxFrac),null==n?n:ks(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,u).replace(/\u00A4/g,i)}}function bs(n){var t=n.NUMBER_FORMATS;return function(n,i){return null==n?n:ks(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function cv(n){var e=0,r,t,i,f,u;for(-1<(t=n.indexOf(dh))&&(n=n.replace(dh,"")),0<(i=n.search(/e/i))?(0>t&&(t=i),t+=+n.slice(i+1),n=n.substring(0,i)):0>t&&(t=n.length),i=0;n.charAt(i)==le;i++);if(i==(u=n.length))r=[0],t=1;else{for(u--;n.charAt(u)==le;)u--;for(t-=i,r=[],f=0;i<=u;i++,f++)r[f]=+n.charAt(i)}return t>kh&&(r=r.splice(0,kh-1),e=t-1,t=1),{d:r,e:e,i:t}}function lv(n,t,i,u){var f=n.d,o=f.length-n.i,e;if(t=r(t)?Math.min(Math.max(i,o),u):+t,i=t+n.i,u=f[i],0<i)for(f.splice(Math.max(n.i,i)),e=i;e<f.length;e++)f[e]=0;else for(o=Math.max(0,o),n.i=1,f.length=Math.max(1,i=t+1),f[0]=0,e=1;e<i;e++)f[e]=0;if(5<=u)if(0>i-1){for(u=0;u>i;u--)f.unshift(0),n.i++;f.unshift(1);n.i++}else f[i-1]++;for(;o<Math.max(0,t);o++)f.push(0);(t=f.reduceRight(function(n,t,i,r){return t+=n,r[i]=t%10,Math.floor(t/10)},0))&&(f.unshift(t),n.i++)}function ks(n,t,i,r,u){if(!h(n)&&!w(n)||isNaN(n))return"";var s=!isFinite(n),o=!1,e=Math.abs(n)+"",f="";if(s)f="∞";else{for(o=cv(e),lv(o,u,t.minFrac,t.maxFrac),f=o.d,e=o.i,u=o.e,s=[],o=f.reduce(function(n,t){return n&&!t},!0);0>e;)f.unshift(0),e++;for(0<e?s=f.splice(e,f.length):(s=f,f=[0]),e=[],f.length>=t.lgSize&&e.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)e.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&e.unshift(f.join(""));f=e.join(i);s.length&&(f+=r+s.join(""));u&&(f+="e+"+u)}return 0>n&&!o?t.negPre+f+t.negSuf:t.posPre+f+t.posSuf}function pu(n,t,i,r){var u="";for((0>n||r&&0>=n)&&(r?n=-n+1:(n=-n,u="-")),n=""+n;n.length<t;)n=le+n;return i&&(n=n.substr(n.length-t)),u+n}function d(n,t,i,r,u){return i=i||0,function(f){return f=f["get"+n](),(0<i||f>-i)&&(f+=i),0===f&&-12==i&&(f=12),pu(f,t,r,u)}}function pr(n,t,i){return function(r,u){var f=r["get"+n](),e=bu((i?"STANDALONE":"")+(t?"SHORT":"")+n);return u[e][f]}}function ds(n){var t=new Date(n,0,1).getDay();return new Date(n,0,(4>=t?5:12)-t)}function gs(n){return function(t){var i=ds(t.getFullYear());return t=+new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))-+i,t=1+Math.round(t/6048e5),pu(t,n)}}function ne(n,t){return 0>=n.getFullYear()?t.ERAS[0]:t.ERAS[1]}function nh(n){function i(n){var t;if(t=n.match(r)){n=new Date(0);var i=0,u=0,f=t[8]?n.setUTCFullYear:n.setFullYear,e=t[8]?n.setUTCHours:n.setHours;t[9]&&(i=tt(t[9]+t[10]),u=tt(t[9]+t[11]));f.call(n,tt(t[1]),tt(t[2])-1,tt(t[3]));i=tt(t[4]||0)-i;u=tt(t[5]||0)-u;f=tt(t[6]||0);t=Math.round(1e3*parseFloat("0."+(t[7]||0)));e.call(n,i,u,f,t)}return n}var r=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(r,u,f){var c="",e=[],s,l,o;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,h(r)&&(r=yp.test(r)?tt(r):i(r)),w(r)&&(r=new Date(r)),!et(r)||!isFinite(r.getTime()))return r;for(;u;)(l=vp.exec(u))?(e=or(e,l,1),u=e.pop()):(e.push(u),u=null);return o=r.getTimezoneOffset(),f&&(o=ke(f,o),r=cf(r,f,!0)),t(e,function(t){s=ap[t];c+=s?s(r,n.DATETIME_FORMATS,o):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}}function av(){return function(n,t){return r(t)&&(t=2),hr(n,t)}}function vv(){return function(n,t,i){return(t=Infinity===Math.abs(Number(t))?Number(t):tt(t),isNaN(t))?n:(w(n)&&(n=n.toString()),!kt(n))?n:(i=!i||isNaN(i)?0:tt(i),i=0>i?Math.max(0,n.length+i):i,0<=t?te(n,i,i+t):0===i?te(n,t,n.length):te(n,Math.max(0,i+t),i))}}function te(n,t,i){return h(n)?n.slice(t,i):bt.call(n,t,i)}function th(n){function i(t){return t.map(function(t){var r=1,i=ir,u;return f(t)?i=t:h(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(r="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(i=n(t),i.constant)&&(u=i(),i=function(n){return n[u]})),{get:i,descending:r}})}function t(n){switch(typeof n){case"number":case"boolean":case"string":return!0;default:return!1}}function r(n,t){var f=0,u=n.type,i=t.type,r;return u===i?(i=n.value,r=t.value,"string"===u?(i=i.toLowerCase(),r=r.toLowerCase()):"object"===u&&(s(i)&&(i=n.index),s(r)&&(r=t.index)),i!==r&&(f=i<r?-1:1)):f=u<i?-1:1,f}return function(n,u,e,o){if(null==n)return n;if(!kt(n))throw l("orderBy")("notarray",n);c(u)||(u=[u]);0===u.length&&(u=["+"]);var s=i(u),h=e?-1:1,a=f(o)?o:r;return n=Array.prototype.map.call(n,function(n,i){return{value:n,tieBreaker:{value:i,type:"number",index:i},predicateValues:s.map(function(r){var u=r.get(n);if(r=typeof u,null===u)r="string",u="null";else if("object"===r)n:{if(f(u.valueOf)&&(u=u.valueOf(),t(u)))break n;pe(u)&&(u=u.toString(),t(u))}return{value:u,type:r,index:i}})}}),n.sort(function(n,t){for(var r,i=0,u=s.length;i<u;i++)if(r=a(n.predicateValues[i],t.predicateValues[i]),r)return r*s[i].descending*h;return a(n.tieBreaker,t.tieBreaker)*h}),n.map(function(n){return n.value})}}function bi(n){return f(n)&&(n={link:n}),n.restrict=n.restrict||"AC",ft(n)}function ih(n,i,r,u,f){var e=this,o=[];e.$error={};e.$$success={};e.$pending=void 0;e.$name=f(i.name||i.ngForm||"")(r);e.$dirty=!1;e.$pristine=!0;e.$valid=!0;e.$invalid=!1;e.$submitted=!1;e.$$parentForm=dr;e.$rollbackViewValue=function(){t(o,function(n){n.$rollbackViewValue()})};e.$commitViewValue=function(){t(o,function(n){n.$commitViewValue()})};e.$addControl=function(n){yi(n.$name,"input");o.push(n);n.$name&&(e[n.$name]=n);n.$$parentForm=e};e.$$renameControl=function(n,t){var i=n.$name;e[i]===n&&delete e[i];e[t]=n;n.$name=t};e.$removeControl=function(n){n.$name&&e[n.$name]===n&&delete e[n.$name];t(e.$pending,function(t,i){e.$setValidity(i,null,n)});t(e.$error,function(t,i){e.$setValidity(i,null,n)});t(e.$$success,function(t,i){e.$setValidity(i,null,n)});er(o,n);n.$$parentForm=dr};fh({ctrl:this,$element:n,set:function(n,t,i){var r=n[t];r?-1===r.indexOf(i)&&r.push(i):n[t]=[i]},unset:function(n,t,i){var r=n[t];r&&(er(r,i),0===r.length&&delete n[t])},$animate:u});e.$setDirty=function(){u.removeClass(n,tr);u.addClass(n,ef);e.$dirty=!0;e.$pristine=!1;e.$$parentForm.$setDirty()};e.$setPristine=function(){u.setClass(n,tr,ef+" ng-submitted");e.$dirty=!1;e.$pristine=!0;e.$submitted=!1;t(o,function(n){n.$setPristine()})};e.$setUntouched=function(){t(o,function(n){n.$setUntouched()})};e.$setSubmitted=function(){u.addClass(n,"ng-submitted");e.$submitted=!0;e.$$parentForm.$setSubmitted()}}function ie(n){n.$formatters.push(function(t){return n.$isEmpty(t)?t:t.toString()})}function wr(n,t,i,r,u,f){var h=v(t[0].type),s,e,o,c;if(!u.android){s=!1;t.on("compositionstart",function(){s=!0});t.on("compositionend",function(){s=!1;o()})}if(o=function(n){if(e&&(f.defer.cancel(e),e=null),!s){var u=t.val();n=n&&n.type;"password"===h||i.ngTrim&&"false"===i.ngTrim||(u=p(u));(r.$viewValue!==u||""===u&&r.$$hasNativeValidators)&&r.$setViewValue(u,n)}},u.hasEvent("input"))t.on("input",o);else{c=function(n,t,i){e||(e=f.defer(function(){e=null;t&&t.value===i||o(n)}))};t.on("keydown",function(n){var t=n.keyCode;91===t||15<t&&19>t||37<=t&&40>=t||c(n,this,this.value)});if(u.hasEvent("paste"))t.on("paste cut",c)}t.on("change",o);if(oc[h]&&r.$$hasNativeValidators&&h===i.type)t.on("keydown wheel mousedown",function(n){if(!e){var t=this.validity,i=t.badInput,r=t.typeMismatch;e=f.defer(function(){e=null;t.badInput===i&&t.typeMismatch===r||o(n)})}});r.$render=function(){var n=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==n&&t.val(n)}}function wu(n,i){return function(r,u){var e,f;if(et(r))return r;if(h(r)){if('"'==r.charAt(0)&&'"'==r.charAt(r.length-1)&&(r=r.substring(1,r.length-1)),bp.test(r))return new Date(r);if(n.lastIndex=0,e=n.exec(r))return e.shift(),f=u?{yyyy:u.getFullYear(),MM:u.getMonth()+1,dd:u.getDate(),HH:u.getHours(),mm:u.getMinutes(),ss:u.getSeconds(),sss:u.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},t(e,function(n,t){t<i.length&&(f[i[t]]=+n)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1e3*f.sss||0)}return NaN}}function br(n,t,i,f){return function(e,o,s,h,c,l,a){function p(n){return n&&!(n.getTime&&n.getTime()!==n.getTime())}function k(n){return u(n)&&!et(n)?i(n)||void 0:n}var v,y,w,b;rh(e,o,s,h);wr(e,o,s,h,c,l);v=h&&h.$options&&h.$options.timezone;h.$$parserName=n;h.$parsers.push(function(n){return h.$isEmpty(n)?null:t.test(n)?(n=i(n,y),v&&(n=cf(n,v)),n):void 0});h.$formatters.push(function(n){if(n&&!et(n))throw nu("datefmt",n);return p(n)?((y=n)&&v&&(y=cf(y,v,!0)),a("date")(n,f,v)):(y=null,"")});(u(s.min)||s.ngMin)&&(h.$validators.min=function(n){return!p(n)||r(w)||i(n)>=w},s.$observe("min",function(n){w=k(n);h.$validate()}));(u(s.max)||s.ngMax)&&(h.$validators.max=function(n){return!p(n)||r(b)||i(n)<=b},s.$observe("max",function(n){b=k(n);h.$validate()}))}}function rh(n,t,i,r){(r.$$hasNativeValidators=s(t[0].validity))&&r.$parsers.push(function(n){var i=t.prop("validity")||{};if(!i.badInput&&!i.typeMismatch)return n})}function uh(n,t,i,r,f){if(u(r)){if(n=n(r),!n.constant)throw nu("constexpr",i,r);return n(t)}return f}function re(n,i){return n="ngClass"+n,["$animate",function(r){function f(n,t){var f=[],r=0,u,i;n:for(;r<n.length;r++){for(u=n[r],i=0;i<t.length;i++)if(u==t[i])continue n;f.push(u)}return f}function u(n){var i=[];return c(n)?(t(n,function(n){i=i.concat(u(n))}),i):h(n)?n.split(" "):s(n)?(t(n,function(n,t){n&&(i=i.concat(t.split(" ")))}),i):n}return{restrict:"AC",link:function(e,o,s){function a(n){n=h(n,1);s.$addClass(n)}function h(n,i){var r=o.data("$classCounts")||y(),u=[];return t(n,function(n){(0<i||r[n])&&(r[n]=(r[n]||0)+i,r[n]===+(0<i)&&u.push(n))}),o.data("$classCounts",r),u.join(" ")}function p(n,t){var i=f(t,n),u=f(n,t),i=h(i,1),u=h(u,-1);i&&i.length&&r.addClass(o,i);u&&u.length&&r.removeClass(o,u)}function v(n){var t,r;(!0===i||(e.$index&1)===i)&&(t=u(n||[]),l?ot(n,l)||(r=u(l),p(r,t)):a(t));l=c(n)?n.map(function(n){return st(n)}):st(n)}var l;e.$watch(s[n],v,!0);s.$observe("class",function(){v(e.$eval(s[n]))});"ngClass"!==n&&e.$watch("$index",function(t,r){var f=t&1,o;f!==(r&1)&&(o=u(e.$eval(s[n])),f===i?a(o):(f=h(o,-1),s.$removeClass(f)))})}}}]}function fh(n){function f(n,t){t&&!i[n]?(h.addClass(o,n),i[n]=!0):!t&&i[n]&&(h.removeClass(o,n),i[n]=!1)}function e(n,t){n=n?"-"+to(n,"-"):"";f(gr+n,!0===t);f(lc+n,!1===t)}var t=n.ctrl,o=n.$element,i={},s=n.set,u=n.unset,h=n.$animate;i[lc]=!(i[gr]=o.hasClass(gr));t.$setValidity=function(n,i,o){r(i)?(t.$pending||(t.$pending={}),s(t.$pending,n,o)):(t.$pending&&u(t.$pending,n,o),eh(t.$pending)&&(t.$pending=void 0));ui(i)?i?(u(t.$error,n,o),s(t.$$success,n,o)):(s(t.$error,n,o),u(t.$$success,n,o)):(u(t.$error,n,o),u(t.$$success,n,o));t.$pending?(f(ac,!0),t.$valid=t.$invalid=void 0,e("",null)):(f(ac,!1),t.$valid=eh(t.$error),t.$invalid=!t.$valid,e("",t.$valid));i=t.$pending&&t.$pending[n]?void 0:t.$error[n]?!1:t.$$success[n]?!0:null;e(n,i);t.$$parentForm.$setValidity(n,i,t)}}function eh(n){if(n)for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}var yv=/^\/(.+)\/([a-z]*)$/,wt=Object.prototype.hasOwnProperty,v=function(n){return h(n)?n.toLowerCase():n},bu=function(n){return h(n)?n.toUpperCase():n},ti,e,ii,bt=[].slice,pv=[].splice,wv=[].push,rt=Object.prototype.toString,oh=Object.getPrototypeOf,hi=l("ng"),ut=n.angular||(n.angular={}),ue,ku=0,gi,ch,oe,se,wh,uf,i,ff,gh,nc,tc,kr,dr;ti=n.document.documentMode;o.$inject=[];ir.$inject=[];var c=Array.isArray,bv=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,p=function(n){return h(n)?n.trim():n},sh=function(n){return n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},ci=function(){var i,t;if(!u(ci.rules))if(i=n.document.querySelector("[ng-csp]")||n.document.querySelector("[data-ng-csp]"),i)t=i.getAttribute("ng-csp")||i.getAttribute("data-ng-csp"),ci.rules={noUnsafeEval:!t||-1!==t.indexOf("no-unsafe-eval"),noInlineStyle:!t||-1!==t.indexOf("no-inline-style")};else{i=ci;try{new Function("");t=!1}catch(r){t=!0}i.rules={noUnsafeEval:t,noInlineStyle:!1}}return ci.rules},du=function(){if(u(du.name_))return du.name_;for(var r,e=ki.length,i,f,t=0;t<e;++t)if(i=ki[t],r=n.document.querySelector("["+i.replace(":","\\:")+"jq]")){f=r.getAttribute(i+"jq");break}return du.name_=f},kv=/:/g,ki=["ng-","data-ng-","ng:","x-ng-"],dv=/[A-Z]/g,hh=!1,di=3,gv={full:"1.5.8",major:1,minor:5,dot:8,codeName:"arbitrary-fallbacks"};b.expando="ng339";gi=b.cache={};ch=1;b._data=function(n){return this.cache[n[this.expando]]||{}};var ny=/([\:\-\_]+(.))/g,ty=/^moz([A-Z])/,gu={mouseleave:"mouseout",mouseenter:"mouseover"},fe=l("jqLite"),iy=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ee=/<|&#?\w+;/,ry=/<([\w:-]+)/,uy=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ct={option:[1,'<select multiple="multiple">',"<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};ct.optgroup=ct.option;ct.tbody=ct.tfoot=ct.colgroup=ct.caption=ct.thead;ct.th=ct.td;var fy=n.Node.prototype.contains||function(n){return!!(this.compareDocumentPosition(n)&16)},nr=b.prototype={ready:function(t){function i(){r||(r=!0,t())}var r=!1;"complete"===n.document.readyState?n.setTimeout(i):(this.on("DOMContentLoaded",i),b(n).on("load",i))},toString:function(){var n=[];return t(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return 0<=n?e(this[n]):e(this[this.length+n])},length:0,push:wv,sort:[].sort,splice:[].splice},nf={};t("multiple selected checked disabled readOnly required open".split(" "),function(n){nf[v(n)]=n});oe={};t("input select option textarea button form details".split(" "),function(n){oe[n]=!0});se={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};t({data:vf,removeData:lr,hasData:function(n){for(var t in gi[n.ng339])return!0;return!1},cleanData:function(n){for(var t=0,i=n.length;t<i;t++)lr(n[t])}},function(n,t){b[t]=n});t({data:vf,inheritedData:hu,scope:function(n){return e.data(n,"$scope")||hu(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return e.data(n,"$isolateScope")||e.data(n,"$isolateScopeNoTemplate")},controller:so,injector:function(n){return hu(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:eu,css:function(n,t,i){if(t=cr(t),u(i))n.style[t]=i;else return n.style[t]},attr:function(n,t,i){var r=n.nodeType;if(r!==di&&2!==r&&8!==r)if(r=v(t),nf[r])if(u(i))i?(n[t]=!0,n.setAttribute(t,r)):(n[t]=!1,n.removeAttribute(r));else return n[t]||(n.attributes.getNamedItem(t)||o).specified?r:void 0;else if(u(i))n.setAttribute(t,i);else if(n.getAttribute)return n=n.getAttribute(t,2),null===n?void 0:n},prop:function(n,t,i){if(u(i))n[t]=i;else return n[t]},text:function(){function n(n,t){if(r(t)){var i=n.nodeType;return 1===i||i===di?n.textContent:""}n.textContent=t}return n.$dv="",n}(),val:function(n,i){if(r(i)){if(n.multiple&&"select"===at(n)){var u=[];return t(n.options,function(n){n.selected&&u.push(n.value||n.text)}),0===u.length?null:u}return n.value}n.value=i},html:function(n,t){if(r(t))return n.innerHTML;uu(n,!0);n.innerHTML=t},empty:ho},function(n,t){b.prototype[t]=function(t,i){var u,f,e=this.length,o;if(n!==ho&&r(2==n.length&&n!==eu&&n!==so?t:i)){if(s(t)){for(u=0;u<e;u++)if(n===vf)n(this[u],t);else for(f in t)n(this[u],f,t[f]);return this}for(u=n.$dv,e=r(u)?Math.min(e,1):e,f=0;f<e;f++)o=n(this[f],t,i),u=u?u+o:o;return u}for(u=0;u<e;u++)n(this[u],t,i);return this}});t({removeData:lr,on:function(n,t,i,r){var f,e,s,o;if(u(r))throw fe("onargs");if(ro(n))for(r=fu(n,!0),f=r.events,e=r.handle,e||(e=r.handle=hl(n,f)),r=0<=t.indexOf(" ")?t.split(" "):[t],s=r.length,o=function(t,r,u){var o=f[t];o||(o=f[t]=[],o.specialHandlerWrapper=r,"$destroy"===t||u||n.addEventListener(t,e,!1));o.push(i)};s--;)t=r[s],gu[t]?(o(gu[t],ll),o(t,void 0,!0)):o(t)},off:eo,one:function(n,t,i){n=e(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,i){var r,u=n.parentNode;uu(n);t(new b(i),function(t){r?u.insertBefore(t,r.nextSibling):u.replaceChild(t,n);r=t})},children:function(n){var i=[];return t(n.childNodes,function(n){1===n.nodeType&&i.push(n)}),i},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){var i=n.nodeType,r;if(1===i||11===i)for(t=new b(t),i=0,r=t.length;i<r;i++)n.appendChild(t[i])},prepend:function(n,i){if(1===n.nodeType){var r=n.firstChild;t(new b(i),function(t){n.insertBefore(t,r)})}},wrap:function(n,t){fo(n,e(t).eq(0).clone()[0])},remove:cu,detach:function(n){cu(n,!0)},after:function(n,t){var u=n,e=n.parentNode,i,f,r;for(t=new b(t),i=0,f=t.length;i<f;i++)r=t[i],e.insertBefore(r,u.nextSibling),u=r},addClass:su,removeClass:ou,toggleClass:function(n,i,u){i&&t(i.split(" "),function(t){var i=u;r(i)&&(i=!eu(n,t));(i?su:ou)(n,t)})},parent:function(n){return(n=n.parentNode)&&11!==n.nodeType?n:null},next:function(n){return n.nextElementSibling},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:af,triggerHandler:function(n,i,r){var u,e,s=i.type||i,f=fu(n);(f=(f=f&&f.events)&&f[s])&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:o,type:s,target:n},i.type&&(u=a(u,i)),i=st(f),e=r?[u].concat(r):[u],t(i,function(t){u.isImmediatePropagationStopped()||t.apply(n,e)}))}},function(n,t){b.prototype[t]=function(t,i,f){for(var o,s=0,h=this.length;s<h;s++)r(o)?(o=n(this[s],t,i,f),u(o)&&(o=e(o))):oo(o,n(this[s],t,i,f));return u(o)?o:this};b.prototype.bind=b.prototype.on;b.prototype.unbind=b.prototype.off});pi.prototype={put:function(n,t){this[fi(n,this.nextUid)]=t},get:function(n){return this[fi(n,this.nextUid)]},remove:function(n){var t=this[n=fi(n,this.nextUid)];return delete this[n],t}};var ey=[function(){this.$get=[function(){return pi}]}],oy=/^([^\(]+?)=>/,sy=/^[^\(]*\(\s*([^\)]*)\)/m,hy=/,/,cy=/^\s*(_?)(\S+?)\1\s*$/,ly=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,li=l("$injector");ar.$$annotate=function(n,i,r){var u;if("function"==typeof n){if(!(u=n.$inject)){if(u=[],n.length){if(i)throw h(r)&&r||(r=n.name||vl(n)),li("strictdi",r);i=lo(n);t(i[1].split(hy),function(n){n.replace(cy,function(n,t,i){u.push(i)})})}n.$inject=u}}else c(n)?(i=n.length-1,vi(n[i],"fn"),u=n.slice(0,i)):vi(n,"fn",!0);return u};var lh=l("$animate"),ay=function(){this.$get=o},vy=function(){var n=new pi,i=[];this.$get=["$$AnimateRunner","$rootScope",function(r,u){function f(n,i,r){var u=!1;return i&&(i=h(i)?i.split(" "):c(i)?i:[],t(i,function(t){t&&(u=!0,n[t]=r)})),u}function e(){t(i,function(i){var f=n.get(i);if(f){var e=pl(i.attr("class")),r="",u="";t(f,function(n,t){n!==!!e[t]&&(n?r+=(r.length?" ":"")+t:u+=(u.length?" ":"")+t)});t(i,function(n){r&&su(n,r);u&&ou(n,u)});n.remove(i)}});i.length=0}return{enabled:o,on:o,off:o,pin:o,push:function(t,o,s,h){return h&&h(),s=s||{},s.from&&t.css(s.from),s.to&&t.css(s.to),(s.addClass||s.removeClass)&&(o=s.addClass,h=s.removeClass,s=n.get(t)||{},o=f(s,o,!0),h=f(s,h,!1),o||h)&&(n.put(t,s),i.push(t),1===i.length&&u.$$postDigest(e)),t=new r,t.complete(),t}}}]},yy=["$provide",function(n){var t=this;this.$$registeredAnimations=Object.create(null);this.register=function(i,r){if(i&&"."!==i.charAt(0))throw lh("notcsel",i);var u=i+"-animation";t.$$registeredAnimations[i.substr(1)]=u;n.factory(u,r)};this.classNameFilter=function(n){if(1===arguments.length&&(this.$$classNameFilter=n instanceof RegExp?n:null)&&/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw lh("nongcls","ng-animate");return this.$$classNameFilter};this.$get=["$$animateQueue",function(n){function t(n,t,i){var r,u;if(i){n:{for(r=0;r<i.length;r++)if(u=i[r],1===u.nodeType){r=u;break n}r=void 0}!r||r.parentNode||r.previousElementSibling||(i=null)}i?i.after(n):t.prepend(n)}return{on:n.on,off:n.off,pin:n.pin,enabled:n.enabled,cancel:function(n){n.end&&n.end()},enter:function(i,r,u,f){return r=r&&e(r),u=u&&e(u),r=r||u.parent(),t(i,r,u),n.push(i,"enter",ei(f))},move:function(i,r,u,f){return r=r&&e(r),u=u&&e(u),r=r||u.parent(),t(i,r,u),n.push(i,"move",ei(f))},leave:function(t,i){return n.push(t,"leave",ei(i),function(){t.remove()})},addClass:function(t,i,r){return r=ei(r),r.addClass=vr(r.addclass,i),n.push(t,"addClass",r)},removeClass:function(t,i,r){return r=ei(r),r.removeClass=vr(r.removeClass,i),n.push(t,"removeClass",r)},setClass:function(t,i,r,u){return u=ei(u),u.addClass=vr(u.addClass,i),u.removeClass=vr(u.removeClass,r),n.push(t,"setClass",u)},animate:function(t,i,r,u,f){return f=ei(f),f.from=f.from?a(f.from,i):i,f.to=f.to?a(f.to,r):r,f.tempClasses=vr(f.tempClasses,u||"ng-inline-animate"),n.push(t,"animate",f)}}}]}],py=function(){this.$get=["$$rAF",function(n){function i(i){t.push(i);1<t.length||n(function(){for(var n=0;n<t.length;n++)t[n]();t=[]})}var t=[];return function(){var n=!1;return i(function(){n=!0}),function(t){n?t():i(t)}}}]},wy=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(n,i,r,u,f){function e(n){this.setHost(n);var t=r();this._doneCallbacks=[];this._tick=function(n){var i=u[0];i&&i.hidden?f(n,0,!1):t(n)};this._state=0}return e.chain=function(n,t){function r(){i===n.length?t(!0):n[i](function(n){!1===n?t(!1):(i++,r())})}var i=0;r()},e.all=function(n,i){function u(t){r=r&&t;++f===n.length&&i(r)}var f=0,r=!0;t(n,function(n){n.done(u)})},e.prototype={setHost:function(n){this.host=n||{}},done:function(n){2===this._state?n():this._doneCallbacks.push(n)},progress:o,getPromise:function(){if(!this.promise){var t=this;this.promise=n(function(n,i){t.done(function(t){!1===t?i():n()})})}return this.promise},then:function(n,t){return this.getPromise().then(n,t)},"catch":function(n){return this.getPromise()["catch"](n)},"finally":function(n){return this.getPromise()["finally"](n)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(n){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(n)}))},_resolve:function(n){2!==this._state&&(t(this._doneCallbacks,function(t){t(n)}),this._doneCallbacks.length=0,this._state=2)}},e}]},by=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(n,t,i){return function(t,r){function e(){return n(function(){u.addClass&&(t.addClass(u.addClass),u.addClass=null);u.removeClass&&(t.removeClass(u.removeClass),u.removeClass=null);u.to&&(t.css(u.to),u.to=null);o||f.complete();o=!0}),f}var u=r||{},o,f;return u.$$prepared||(u=dt(u)),u.cleanupStyles&&(u.from=u.to=null),u.from&&(t.css(u.from),u.from=null),f=new i,{start:e,end:e}}}]},g=l("$compile"),he=new function(){};ao.$inject=["$provide","$$sanitizeUriProvider"];lu.prototype.isFirstChange=function(){return this.previousValue===he};var ah=/^((?:x|data)[\:\-_])/i,ky=l("$controller"),vh=/^(\S+)(\s+as\s+([\w$]+))?$/,dy=function(){this.$get=["$document",function(n){return function(t){return t?!t.nodeType&&t instanceof e&&(t=t[0]):t=n[0].body,t.offsetWidth+1}}]},yh="application/json",ce={"Content-Type":yh+";charset=utf-8"},gy=/^\[|^\{(?!\{)/,np={"[":/]$/,"{":/}$/},tp=/^\)\]\}',?\n/,ip=l("$http"),ph=function(n){return function(){throw ip("legacy",n);}},ai=ut.$interpolateMinErr=l("$interpolate");ai.throwNoconcat=function(n){throw ai("noconcat",n);};ai.interr=function(n,t){return ai("interr",n,t.toString())};var rp=function(){this.$get=["$window",function(n){function r(n){var t=function(n){t.data=n;t.called=!0};return t.id=n,t}var i=n.angular.callbacks,t={};return{createCallback:function(n){n="_"+(i.$$counter++).toString(36);var u="angular.callbacks."+n,f=r(n);return t[u]=i[n]=f,u},wasCalled:function(n){return t[n].called},getResponse:function(n){return t[n].data},removeCallback:function(n){delete i[t[n].id];delete t[n]}}}]},up=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,fp={http:80,https:443,ftp:21},tf=l("$location"),ep={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:au("$$absUrl"),url:function(n){if(r(n))return this.$$url;var t=up.exec(n);return(t[1]||""===n)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===n)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:au("$$protocol"),host:au("$$host"),port:au("$$port"),path:is("$$path",function(n){return n=null!==n?n.toString():"","/"==n.charAt(0)?n:"/"+n}),search:function(n,i){switch(arguments.length){case 0:return this.$$search;case 1:if(h(n)||w(n))n=n.toString(),this.$$search=ge(n);else if(s(n))n=dt(n,{}),t(n,function(t,i){null==t&&delete n[i]}),this.$$search=n;else throw tf("isrcharg");break;default:r(i)||null===i?delete this.$$search[n]:this.$$search[n]=i}return this.$$compose(),this},hash:is("$$hash",function(n){return null!==n?n.toString():""}),replace:function(){return this.$$replace=!0,this}};t([ts,kf,bf],function(n){n.prototype=Object.create(ep);n.prototype.state=function(t){if(!arguments.length)return this.$$state;if(n!==bf||!this.$$html5)throw tf("nostate");return this.$$state=r(t)?null:t,this}});var it=l("$parse"),op=Function.prototype.call,sp=Function.prototype.apply,hp=Function.prototype.bind,rf=y();t("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(n){rf[n]=!0});wh={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'};uf=function(n){this.options=n};uf.prototype={constructor:uf,lex:function(n){for(this.text=n,this.index=0,this.tokens=[];this.index<this.text.length;)if(n=this.text.charAt(this.index),'"'===n||"'"===n)this.readString(n);else if(this.isNumber(n)||"."===n&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(n,"(){}[].,;:?"))this.tokens.push({index:this.index,text:n}),this.index++;else if(this.isWhitespace(n))this.index++;else{var t=n+this.peek(),i=t+this.peek(2),r=rf[t],u=rf[i];rf[n]||r||u?(n=u?i:r?t:n,this.tokens.push({index:this.index,text:n,operator:!0}),this.index+=n.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(n,t){return-1!==t.indexOf(n)},peek:function(n){return n=n||1,this.index+n<this.text.length?this.text.charAt(this.index+n):!1},isNumber:function(n){return"0"<=n&&"9">=n&&"string"==typeof n},isWhitespace:function(n){return" "===n||"\r"===n||"\t"===n||"\n"===n||"\v"===n||" "===n},isIdentifierStart:function(n){return this.options.isIdentifierStart?this.options.isIdentifierStart(n,this.codePointAt(n)):this.isValidIdentifierStart(n)},isValidIdentifierStart:function(n){return"a"<=n&&"z">=n||"A"<=n&&"Z">=n||"_"===n||"$"===n},isIdentifierContinue:function(n){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(n,this.codePointAt(n)):this.isValidIdentifierContinue(n)},isValidIdentifierContinue:function(n,t){return this.isValidIdentifierStart(n,t)||this.isNumber(n)},codePointAt:function(n){return 1===n.length?n.charCodeAt(0):(n.charCodeAt(0)<<10)+n.charCodeAt(1)-56613888},peekMultichar:function(){var n=this.text.charAt(this.index),t=this.peek(),i,r;return t?(i=n.charCodeAt(0),r=t.charCodeAt(0),55296<=i&&56319>=i&&56320<=r&&57343>=r?n+t:n):n},isExpOperator:function(n){return"-"===n||"+"===n||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;t=u(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw it("lexerr",n,t,this.text);},readNumber:function(){for(var t,i,n="",r=this.index;this.index<this.text.length;){if(t=v(this.text.charAt(this.index)),"."==t||this.isNumber(t))n+=t;else if(i=this.peek(),"e"==t&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&"e"==n.charAt(n.length-1))n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||"e"!=n.charAt(n.length-1))break;else this.throwError("Invalid exponent");this.index++}this.tokens.push({index:r,text:n,constant:!0,value:Number(n)})},readIdent:function(){var t=this.index,n;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){if(n=this.peekMultichar(),!this.isIdentifierContinue(n))break;this.index+=n.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(n){var f=this.index,t,u;this.index++;for(var r="",u=n,i=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),u=u+t,i)"u"===t?(i=this.text.substring(this.index+1,this.index+5),i.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,r+=String.fromCharCode(parseInt(i,16))):r+=wh[t]||t,i=!1;else if("\\"===t)i=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:u,constant:!0,value:r});return}r+=t}this.index++}this.throwError("Unterminated quote",f)}};i=function(n,t){this.lexer=n;this.options=t};i.Program="Program";i.ExpressionStatement="ExpressionStatement";i.AssignmentExpression="AssignmentExpression";i.ConditionalExpression="ConditionalExpression";i.LogicalExpression="LogicalExpression";i.BinaryExpression="BinaryExpression";i.UnaryExpression="UnaryExpression";i.CallExpression="CallExpression";i.MemberExpression="MemberExpression";i.Identifier="Identifier";i.Literal="Literal";i.ArrayExpression="ArrayExpression";i.Property="Property";i.ObjectExpression="ObjectExpression";i.ThisExpression="ThisExpression";i.LocalsExpression="LocalsExpression";i.NGValueParameter="NGValueParameter";i.prototype={ast:function(n){return this.text=n,this.tokens=this.lexer.lex(n),n=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),n},program:function(){for(var n=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&n.push(this.expressionStatement()),!this.expect(";"))return{type:i.Program,body:n}},expressionStatement:function(){return{type:i.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var n=this.expression();this.expect("|");)n=this.filter(n);return n},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary();return this.expect("=")&&(n={type:i.AssignmentExpression,left:n,right:this.assignment(),operator:"="}),n},ternary:function(){var n=this.logicalOR(),t,r;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(r=this.expression(),{type:i.ConditionalExpression,test:n,alternate:t,consequent:r}):n},logicalOR:function(){for(var n=this.logicalAND();this.expect("||");)n={type:i.LogicalExpression,operator:"||",left:n,right:this.logicalAND()};return n},logicalAND:function(){for(var n=this.equality();this.expect("&&");)n={type:i.LogicalExpression,operator:"&&",left:n,right:this.equality()};return n},equality:function(){for(var n=this.relational(),t;t=this.expect("==","!=","===","!==");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.relational()};return n},relational:function(){for(var n=this.additive(),t;t=this.expect("<",">","<=",">=");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.additive()};return n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.multiplicative()};return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.unary()};return n},unary:function(){var n;return(n=this.expect("+","-","!"))?{type:i.UnaryExpression,operator:n.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var n,t;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?n=dt(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?n={type:i.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?n=this.identifier():this.peek().constant?n=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(n={type:i.CallExpression,callee:n,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(n={type:i.MemberExpression,object:n,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?n={type:i.MemberExpression,object:n,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return n},filter:function(n){n=[n];for(var t={type:i.CallExpression,callee:this.identifier(),arguments:n,filter:!0};this.expect(":");)n.push(this.expression());return t},parseArguments:function(){var n=[];if(")"!==this.peekToken().text)do n.push(this.filterChain());while(this.expect(","));return n},identifier:function(){var n=this.consume();return n.identifier||this.throwError("is not a valid identifier",n),{type:i.Identifier,name:n.text}},constant:function(){return{type:i.Literal,value:this.consume().value}},arrayDeclaration:function(){var n=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;n.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:i.ArrayExpression,elements:n}},object:function(){var t=[],n;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;n={type:i.Property,kind:"init"};this.peek().constant?(n.key=this.constant(),n.computed=!1,this.consume(":"),n.value=this.expression()):this.peek().identifier?(n.key=this.identifier(),n.computed=!1,this.peek(":")?(this.consume(":"),n.value=this.expression()):n.value=n.key):this.peek("[")?(this.consume("["),n.key=this.expression(),this.consume("]"),n.computed=!0,this.consume(":"),n.value=this.expression()):this.throwError("invalid key",this.peek());t.push(n)}while(this.expect(","));return this.consume("}"),{type:i.ObjectExpression,properties:t}},throwError:function(n,t){throw it("syntax",t.text,n,t.index+1,this.text,this.text.substring(t.index));},consume:function(n){if(0===this.tokens.length)throw it("ueoe",this.text);var t=this.expect(n);return t||this.throwError("is unexpected, expecting ["+n+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw it("ueoe",this.text);return this.tokens[0]},peek:function(n,t,i,r){return this.peekAhead(0,n,t,i,r)},peekAhead:function(n,t,i,r,u){if(this.tokens.length>n){n=this.tokens[n];var f=n.text;if(f===t||f===i||f===r||f===u||!(t||i||r||u))return n}return!1},expect:function(n,t,i,r){return(n=this.peek(n,t,i,r))?(this.tokens.shift(),n):!1},selfReferential:{"this":{type:i.ThisExpression},$locals:{type:i.LocalsExpression}}};hs.prototype={compile:function(n,i){var u=this,f=this.astBuilder.ast(n),r,e;return this.state={nextId:0,filters:{},expensiveChecks:i,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},k(f,u.$filter),r="",this.stage="assign",(e=os(f))&&(this.state.computing="assign",r=this.nextId(),this.recurse(e,r),this.return_(r),r="fn.assign="+this.generateFunction("assign","s,v,l")),e=fs(f.body),u.stage="inputs",t(e,function(n,t){var i="fn"+t,r;u.state[i]={vars:[],body:[],own:{}};u.state.computing=i;r=u.nextId();u.recurse(n,r);u.return_(r);u.state.inputs.push(i);n.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(f),r='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",r=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",r)(this.$filter,wi,gt,rs,aa,vu,va,us,n),this.state=this.stage=void 0,r.literal=ss(f),r.constant=f.constant,r},USE:"use",STRICT:"strict",watchFns:function(){var n=[],i=this.state.inputs,r=this;return t(i,function(t){n.push("var "+t+"="+r.generateFunction(t,"s"))}),i.length&&n.push("fn.inputs=["+i.join(",")+"];"),n.join("")},generateFunction:function(n,t){return"function("+t+"){"+this.varsPrefix(n)+this.body(n)+"};"},filterPrefix:function(){var n=[],i=this;return t(this.state.filters,function(t,r){n.push(t+"=$filter("+i.escape(r)+")")}),n.length?"var "+n.join(",")+";":""},varsPrefix:function(n){return this.state[n].vars.length?"var "+this.state[n].vars.join(",")+";":""},body:function(n){return this.state[n].body.join("")},recurse:function(n,r,f,e,s,h){var l,v,c=this,y,a,p;if(e=e||o,!h&&u(n.watchId))r=r||this.nextId(),this.if_("i",this.lazyAssign(r,this.computedMember("i",n.watchId)),this.lazyRecurse(n,r,f,e,s,!0));else switch(n.type){case i.Program:t(n.body,function(t,i){c.recurse(t.expression,void 0,void 0,function(n){v=n});i!==n.body.length-1?c.current().body.push(v,";"):c.return_(v)});break;case i.Literal:a=this.escape(n.value);this.assign(r,a);e(a);break;case i.UnaryExpression:this.recurse(n.argument,void 0,void 0,function(n){v=n});a=n.operator+"("+this.ifDefined(v,0)+")";this.assign(r,a);e(a);break;case i.BinaryExpression:this.recurse(n.left,void 0,void 0,function(n){l=n});this.recurse(n.right,void 0,void 0,function(n){v=n});a="+"===n.operator?this.plus(l,v):"-"===n.operator?this.ifDefined(l,0)+n.operator+this.ifDefined(v,0):"("+l+")"+n.operator+"("+v+")";this.assign(r,a);e(a);break;case i.LogicalExpression:r=r||this.nextId();c.recurse(n.left,r);c.if_("&&"===n.operator?r:c.not(r),c.lazyRecurse(n.right,r));e(r);break;case i.ConditionalExpression:r=r||this.nextId();c.recurse(n.test,r);c.if_(r,c.lazyRecurse(n.alternate,r),c.lazyRecurse(n.consequent,r));e(r);break;case i.Identifier:r=r||this.nextId();f&&(f.context="inputs"===c.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),f.computed=!1,f.name=n.name);wi(n.name);c.if_("inputs"===c.stage||c.not(c.getHasOwnProperty("l",n.name)),function(){c.if_("inputs"===c.stage||"s",function(){s&&1!==s&&c.if_(c.not(c.nonComputedMember("s",n.name)),c.lazyAssign(c.nonComputedMember("s",n.name),"{}"));c.assign(r,c.nonComputedMember("s",n.name))})},r&&c.lazyAssign(r,c.nonComputedMember("l",n.name)));(c.state.expensiveChecks||yu(n.name))&&c.addEnsureSafeObject(r);e(r);break;case i.MemberExpression:l=f&&(f.context=this.nextId())||this.nextId();r=r||this.nextId();c.recurse(n.object,l,void 0,function(){c.if_(c.notNull(l),function(){s&&1!==s&&c.addEnsureSafeAssignContext(l);n.computed?(v=c.nextId(),c.recurse(n.property,v),c.getStringValue(v),c.addEnsureSafeMemberName(v),s&&1!==s&&c.if_(c.not(c.computedMember(l,v)),c.lazyAssign(c.computedMember(l,v),"{}")),a=c.ensureSafeObject(c.computedMember(l,v)),c.assign(r,a),f&&(f.computed=!0,f.name=v)):(wi(n.property.name),s&&1!==s&&c.if_(c.not(c.nonComputedMember(l,n.property.name)),c.lazyAssign(c.nonComputedMember(l,n.property.name),"{}")),a=c.nonComputedMember(l,n.property.name),(c.state.expensiveChecks||yu(n.property.name))&&(a=c.ensureSafeObject(a)),c.assign(r,a),f&&(f.computed=!1,f.name=n.property.name))},function(){c.assign(r,"undefined")});e(r)},!!s);break;case i.CallExpression:r=r||this.nextId();n.filter?(v=c.filter(n.callee.name),y=[],t(n.arguments,function(n){var t=c.nextId();c.recurse(n,t);y.push(t)}),a=v+"("+y.join(",")+")",c.assign(r,a),e(r)):(v=c.nextId(),l={},y=[],c.recurse(n.callee,v,l,function(){c.if_(c.notNull(v),function(){c.addEnsureSafeFunction(v);t(n.arguments,function(n){c.recurse(n,c.nextId(),void 0,function(n){y.push(c.ensureSafeObject(n))})});l.name?(c.state.expensiveChecks||c.addEnsureSafeObject(l.context),a=c.member(l.context,l.name,l.computed)+"("+y.join(",")+")"):a=v+"("+y.join(",")+")";a=c.ensureSafeObject(a);c.assign(r,a)},function(){c.assign(r,"undefined")});e(r)}));break;case i.AssignmentExpression:if(v=this.nextId(),l={},!es(n.left))throw it("lval");this.recurse(n.left,void 0,l,function(){c.if_(c.notNull(l.context),function(){c.recurse(n.right,v);c.addEnsureSafeObject(c.member(l.context,l.name,l.computed));c.addEnsureSafeAssignContext(l.context);a=c.member(l.context,l.name,l.computed)+n.operator+v;c.assign(r,a);e(r||a)})},1);break;case i.ArrayExpression:y=[];t(n.elements,function(n){c.recurse(n,c.nextId(),void 0,function(n){y.push(n)})});a="["+y.join(",")+"]";this.assign(r,a);e(a);break;case i.ObjectExpression:y=[];p=!1;t(n.properties,function(n){n.computed&&(p=!0)});p?(r=r||this.nextId(),this.assign(r,"{}"),t(n.properties,function(n){n.computed?(l=c.nextId(),c.recurse(n.key,l)):l=n.key.type===i.Identifier?n.key.name:""+n.key.value;v=c.nextId();c.recurse(n.value,v);c.assign(c.member(r,l,n.computed),v)})):(t(n.properties,function(t){c.recurse(t.value,n.constant?void 0:c.nextId(),void 0,function(n){y.push(c.escape(t.key.type===i.Identifier?t.key.name:""+t.key.value)+":"+n)})}),a="{"+y.join(",")+"}",this.assign(r,a));e(r||a);break;case i.ThisExpression:this.assign(r,"s");e("s");break;case i.LocalsExpression:this.assign(r,"l");e("l");break;case i.NGValueParameter:this.assign(r,"v");e("v")}},getHasOwnProperty:function(n,t){var i=n+"."+t,r=this.current().own;return r.hasOwnProperty(i)||(r[i]=this.nextId(!1,n+"&&("+this.escape(t)+" in "+n+")")),r[i]},assign:function(n,t){if(n)return this.current().body.push(n,"=",t,";"),n},filter:function(n){return this.state.filters.hasOwnProperty(n)||(this.state.filters[n]=this.nextId(!0)),this.state.filters[n]},ifDefined:function(n,t){return"ifDefined("+n+","+this.escape(t)+")"},plus:function(n,t){return"plus("+n+","+t+")"},return_:function(n){this.current().body.push("return ",n,";")},if_:function(n,t,i){if(!0===n)t();else{var r=this.current().body;r.push("if(",n,"){");t();r.push("}");i&&(r.push("else{"),i(),r.push("}"))}},not:function(n){return"!("+n+")"},notNull:function(n){return n+"!=null"},nonComputedMember:function(n,t){return/[$_a-zA-Z][$_a-zA-Z0-9]*/.test(t)?n+"."+t:n+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(n,t){return n+"["+t+"]"},member:function(n,t,i){return i?this.computedMember(n,t):this.nonComputedMember(n,t)},addEnsureSafeObject:function(n){this.current().body.push(this.ensureSafeObject(n),";")},addEnsureSafeMemberName:function(n){this.current().body.push(this.ensureSafeMemberName(n),";")},addEnsureSafeFunction:function(n){this.current().body.push(this.ensureSafeFunction(n),";")},addEnsureSafeAssignContext:function(n){this.current().body.push(this.ensureSafeAssignContext(n),";")},ensureSafeObject:function(n){return"ensureSafeObject("+n+",text)"},ensureSafeMemberName:function(n){return"ensureSafeMemberName("+n+",text)"},ensureSafeFunction:function(n){return"ensureSafeFunction("+n+",text)"},getStringValue:function(n){this.assign(n,"getStringValue("+n+")")},ensureSafeAssignContext:function(n){return"ensureSafeAssignContext("+n+",text)"},lazyRecurse:function(n,t,i,r,u,f){var e=this;return function(){e.recurse(n,t,i,r,u,f)}},lazyAssign:function(n,t){var i=this;return function(){i.assign(n,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)},escape:function(n){if(h(n))return"'"+n.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(w(n))return n.toString();if(!0===n)return"true";if(!1===n)return"false";if(null===n)return"null";if("undefined"==typeof n)return"undefined";throw it("esc");},nextId:function(n,t){var i="v"+this.state.nextId++;return n||this.current().vars.push(i+(t?"="+t:"")),i},current:function(){return this.state[this.state.computing]}};cs.prototype={compile:function(n,i){var s=this,u=this.astBuilder.ast(n),r,h,f,e;return this.expression=n,this.expensiveChecks=i,k(u,s.$filter),(r=os(u))&&(h=this.recurse(r)),r=fs(u.body),r&&(f=[],t(r,function(n,t){var i=s.recurse(n);n.input=i;f.push(i);n.watchId=t})),e=[],t(u.body,function(n){e.push(s.recurse(n.expression))}),r=0===u.body.length?o:1===u.body.length?e[0]:function(n,i){var r;return t(e,function(t){r=t(n,i)}),r},h&&(r.assign=function(n,t,i){return h(n,i,t)}),f&&(r.inputs=f),r.literal=ss(u),r.constant=u.constant,r},recurse:function(n,r,u){var s,o,e=this,f;if(n.input)return this.inputs(n.input,n.watchId);switch(n.type){case i.Literal:return this.value(n.value,r);case i.UnaryExpression:return o=this.recurse(n.argument),this["unary"+n.operator](o,r);case i.BinaryExpression:return s=this.recurse(n.left),o=this.recurse(n.right),this["binary"+n.operator](s,o,r);case i.LogicalExpression:return s=this.recurse(n.left),o=this.recurse(n.right),this["binary"+n.operator](s,o,r);case i.ConditionalExpression:return this["ternary?:"](this.recurse(n.test),this.recurse(n.alternate),this.recurse(n.consequent),r);case i.Identifier:return wi(n.name,e.expression),e.identifier(n.name,e.expensiveChecks||yu(n.name),r,u,e.expression);case i.MemberExpression:return s=this.recurse(n.object,!1,!!u),n.computed||(wi(n.property.name,e.expression),o=n.property.name),n.computed&&(o=this.recurse(n.property)),n.computed?this.computedMember(s,o,r,u,e.expression):this.nonComputedMember(s,o,e.expensiveChecks,r,u,e.expression);case i.CallExpression:return f=[],t(n.arguments,function(n){f.push(e.recurse(n))}),n.filter&&(o=this.$filter(n.callee.name)),n.filter||(o=this.recurse(n.callee,!0)),n.filter?function(n,t,i,u){for(var s=[],e=0;e<f.length;++e)s.push(f[e](n,t,i,u));return n=o.apply(void 0,s,u),r?{context:void 0,name:void 0,value:n}:n}:function(n,t,i,u){var h=o(n,t,i,u),s,c;if(null!=h.value){for(gt(h.context,e.expression),rs(h.value,e.expression),s=[],c=0;c<f.length;++c)s.push(gt(f[c](n,t,i,u),e.expression));s=gt(h.value.apply(h.context,s),e.expression)}return r?{value:s}:s};case i.AssignmentExpression:return s=this.recurse(n.left,!0,1),o=this.recurse(n.right),function(n,t,i,u){var f=s(n,t,i,u);return n=o(n,t,i,u),gt(f.value,e.expression),vu(f.context),f.context[f.name]=n,r?{value:n}:n};case i.ArrayExpression:return f=[],t(n.elements,function(n){f.push(e.recurse(n))}),function(n,t,i,u){for(var e=[],o=0;o<f.length;++o)e.push(f[o](n,t,i,u));return r?{value:e}:e};case i.ObjectExpression:return f=[],t(n.properties,function(n){n.computed?f.push({key:e.recurse(n.key),computed:!0,value:e.recurse(n.value)}):f.push({key:n.key.type===i.Identifier?n.key.name:""+n.key.value,computed:!1,value:e.recurse(n.value)})}),function(n,t,i,u){for(var o={},e=0;e<f.length;++e)f[e].computed?o[f[e].key(n,t,i,u)]=f[e].value(n,t,i,u):o[f[e].key]=f[e].value(n,t,i,u);return r?{value:o}:o};case i.ThisExpression:return function(n){return r?{value:n}:n};case i.LocalsExpression:return function(n,t){return r?{value:t}:t};case i.NGValueParameter:return function(n,t,i){return r?{value:i}:i}}},"unary+":function(n,t){return function(i,r,f,e){return i=n(i,r,f,e),i=u(i)?+i:0,t?{value:i}:i}},"unary-":function(n,t){return function(i,r,f,e){return i=n(i,r,f,e),i=u(i)?-i:0,t?{value:i}:i}},"unary!":function(n,t){return function(i,r,u,f){return i=!n(i,r,u,f),t?{value:i}:i}},"binary+":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e);return r=t(r,u,f,e),o=us(o,r),i?{value:o}:o}},"binary-":function(n,t,i){return function(r,f,e,o){var s=n(r,f,e,o);return r=t(r,f,e,o),s=(u(s)?s:0)-(u(r)?r:0),i?{value:s}:s}},"binary*":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)*t(r,u,f,e),i?{value:r}:r}},"binary/":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)/t(r,u,f,e),i?{value:r}:r}},"binary%":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)%t(r,u,f,e),i?{value:r}:r}},"binary===":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)===t(r,u,f,e),i?{value:r}:r}},"binary!==":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)!==t(r,u,f,e),i?{value:r}:r}},"binary==":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)==t(r,u,f,e),i?{value:r}:r}},"binary!=":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)!=t(r,u,f,e),i?{value:r}:r}},"binary<":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)<t(r,u,f,e),i?{value:r}:r}},"binary>":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)>t(r,u,f,e),i?{value:r}:r}},"binary<=":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)<=t(r,u,f,e),i?{value:r}:r}},"binary>=":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)>=t(r,u,f,e),i?{value:r}:r}},"binary&&":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)&&t(r,u,f,e),i?{value:r}:r}},"binary||":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)||t(r,u,f,e),i?{value:r}:r}},"ternary?:":function(n,t,i,r){return function(u,f,e,o){return u=n(u,f,e,o)?t(u,f,e,o):i(u,f,e,o),r?{value:u}:u}},value:function(n,t){return function(){return t?{context:void 0,name:void 0,value:n}:n}},identifier:function(n,t,i,r,u){return function(f,e){return f=e&&n in e?e:f,r&&1!==r&&f&&!f[n]&&(f[n]={}),e=f?f[n]:void 0,t&&gt(e,u),i?{context:f,name:n,value:e}:e}},computedMember:function(n,t,i,r,u){return function(f,e,o,s){var h=n(f,e,o,s),c,l;return null!=h&&(c=t(f,e,o,s),c+="",wi(c,u),r&&1!==r&&(vu(h),h&&!h[c]&&(h[c]={})),l=h[c],gt(l,u)),i?{context:h,name:c,value:l}:l}},nonComputedMember:function(n,t,i,r,u,f){return function(e,o,s,h){return e=n(e,o,s,h),u&&1!==u&&(vu(e),e&&!e[t]&&(e[t]={})),o=null!=e?e[t]:void 0,(i||yu(t))&&gt(o,f),r?{context:e,name:t,value:o}:o}},inputs:function(n,t){return function(i,r,u,f){return f?f[t]:n(i,r,u)}}};ff=function(n,t,r){this.lexer=n;this.$filter=t;this.options=r;this.ast=new i(n,r);this.astCompiler=r.csp?new cs(this.ast,t):new hs(this.ast,t)};ff.prototype={constructor:ff,parse:function(n){return this.astCompiler.compile(n,this.options.expensiveChecks)}};var cp=Object.prototype.valueOf,ri=l("$sce"),lt={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},lp=l("$compile"),nt=n.document.createElement("a"),bh=ni(n.location.href);ys.$inject=["$document"];ps.$inject=["$provide"];var kh=22,dh=".",le="0";ws.$inject=["$locale"];bs.$inject=["$locale"];var ap={yyyy:d("FullYear",4,0,!1,!0),yy:d("FullYear",2,0,!0,!0),y:d("FullYear",1,0,!1,!0),MMMM:pr("Month"),MMM:pr("Month",!0),MM:d("Month",2,1),M:d("Month",1,1),LLLL:pr("Month",!1,!0),dd:d("Date",2),d:d("Date",1),HH:d("Hours",2),H:d("Hours",1),hh:d("Hours",2,-12),h:d("Hours",1,-12),mm:d("Minutes",2),m:d("Minutes",1),ss:d("Seconds",2),s:d("Seconds",1),sss:d("Milliseconds",3),EEEE:pr("Day"),EEE:pr("Day",!0),a:function(n,t){return 12>n.getHours()?t.AMPMS[0]:t.AMPMS[1]},Z:function(n,t,i){return n=-1*i,(0<=n?"+":"")+(pu(Math[0<n?"floor":"ceil"](n/60),2)+pu(Math.abs(n%60),2))},ww:gs(2),w:gs(1),G:ne,GG:ne,GGG:ne,GGGG:function(n,t){return 0>=n.getFullYear()?t.ERANAMES[0]:t.ERANAMES[1]}},vp=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,yp=/^\-?\d+$/;nh.$inject=["$locale"];gh=ft(v);nc=ft(bu);th.$inject=["$parse"];tc=ft({restrict:"E",compile:function(n,t){if(!t.href&&!t.xlinkHref)return function(n,t){if("a"===t[0].nodeName.toLowerCase()){var i="[object SVGAnimatedString]"===rt.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}}}});kr={};t(nf,function(n,t){function r(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}if("multiple"!=n){var i=yt("ng-"+t),u=r;"checked"===n&&(u=function(n,t,u){u.ngModel!==u[i]&&r(n,t,u)});kr[i]=function(){return{restrict:"A",priority:100,link:u}}}});t(se,function(n,t){kr[t]=function(){return{priority:100,link:function(n,i,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)&&(i=r.ngPattern.match(yv))){r.$set("ngPattern",new RegExp(i[1],i[2]));return}n.$watch(r[t],function(n){r.$set(t,n)})}}}});t(["src","srcset","href"],function(n){var t=yt("ng-"+n);kr[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;"href"===n&&"[object SVGAnimatedString]"===rt.call(r.prop("href"))&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){t?(u.$set(f,t),ti&&e&&r.prop(e,u[f])):"href"===n&&u.$set(f,null)})}}}});dr={$addControl:o,$$renameControl:function(n,t){n.$name=t},$removeControl:o,$setValidity:o,$setDirty:o,$setPristine:o,$setSubmitted:o};ih.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var ic=function(n){return["$timeout","$parse",function(t,i){function r(n){return""===n?i('this[""]').assign:i(n).assign||o}return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:ih,compile:function(i,u){i.addClass(tr).addClass(gr);var f=u.name?"name":n&&u.ngForm?"ngForm":!1;return{pre:function(n,i,u,e){var s=e[0],c,h;if(!("action"in u)){c=function(t){n.$apply(function(){s.$commitViewValue();s.$setSubmitted()});t.preventDefault()};i[0].addEventListener("submit",c,!1);i.on("$destroy",function(){t(function(){i[0].removeEventListener("submit",c,!1)},0,!1)})}(e[1]||s.$$parentForm).$addControl(s);h=f?r(s.$name):o;f&&(h(n,s),u.$observe(f,function(t){s.$name!==t&&(h(n,void 0),s.$$parentForm.$$renameControl(s,t),h=r(s.$name),h(n,s))}));i.on("$destroy",function(){s.$$parentForm.$removeControl(s);h(n,void 0);a(s,dr)})}}}}}]},pp=ic(),wp=ic(!0),bp=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,kp=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,dp=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,gp=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,rc=/^(\d{4,})-(\d{2})-(\d{2})$/,uc=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ae=/^(\d{4,})-W(\d\d)$/,fc=/^(\d{4,})-(\d\d)$/,ec=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,oc=y();t(["date","datetime-local","month","time","week"],function(n){oc[n]=!0});var sc={text:function(n,t,i,r,u,f){wr(n,t,i,r,u,f);ie(r)},date:br("date",rc,wu(rc,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":br("datetimelocal",uc,wu(uc,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:br("time",ec,wu(ec,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:br("week",ae,function(n,t){var i;if(et(n))return n;if(h(n)&&(ae.lastIndex=0,i=ae.exec(n),i)){var u=+i[1],r=+i[2],f=i=0,e=0,o=0,s=ds(u),r=7*(r-1);return t&&(i=t.getHours(),f=t.getMinutes(),e=t.getSeconds(),o=t.getMilliseconds()),new Date(u,0,s.getDate()+r,i,f,e,o)}return NaN},"yyyy-Www"),month:br("month",fc,wu(fc,["yyyy","MM"]),"yyyy-MM"),number:function(n,t,i,f,e,o){var s,h;rh(n,t,i,f);wr(n,t,i,f,e,o);f.$$parserName="number";f.$parsers.push(function(n){return f.$isEmpty(n)?null:gp.test(n)?parseFloat(n):void 0});f.$formatters.push(function(n){if(!f.$isEmpty(n)){if(!w(n))throw nu("numfmt",n);n=n.toString()}return n});(u(i.min)||i.ngMin)&&(f.$validators.min=function(n){return f.$isEmpty(n)||r(s)||n>=s},i.$observe("min",function(n){u(n)&&!w(n)&&(n=parseFloat(n));s=w(n)&&!isNaN(n)?n:void 0;f.$validate()}));(u(i.max)||i.ngMax)&&(f.$validators.max=function(n){return f.$isEmpty(n)||r(h)||n<=h},i.$observe("max",function(n){u(n)&&!w(n)&&(n=parseFloat(n));h=w(n)&&!isNaN(n)?n:void 0;f.$validate()}))},url:function(n,t,i,r,u,f){wr(n,t,i,r,u,f);ie(r);r.$$parserName="url";r.$validators.url=function(n,t){var i=n||t;return r.$isEmpty(i)||kp.test(i)}},email:function(n,t,i,r,u,f){wr(n,t,i,r,u,f);ie(r);r.$$parserName="email";r.$validators.email=function(n,t){var i=n||t;return r.$isEmpty(i)||dp.test(i)}},radio:function(n,t,i,u){r(i.name)&&t.attr("name",++ku);t.on("click",function(n){t[0].checked&&u.$setViewValue(i.value,n&&n.type)});u.$render=function(){t[0].checked=i.value==u.$viewValue};i.$observe("value",u.$render)},checkbox:function(n,t,i,r,u,f,e,o){var s=uh(o,n,"ngTrueValue",i.ngTrueValue,!0),h=uh(o,n,"ngFalseValue",i.ngFalseValue,!1);t.on("click",function(n){r.$setViewValue(t[0].checked,n&&n.type)});r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return!1===n};r.$formatters.push(function(n){return ot(n,s)});r.$parsers.push(function(n){return n?s:h})},hidden:o,button:o,submit:o,reset:o,file:o},hc=["$browser","$sniffer","$filter","$parse",function(n,t,i,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(u,f,e,o){o[0]&&(sc[v(e.type)]||sc.text)(u,f,e,o[0],t,n,i,r)}}}}],nw=/^(true|false|\d+)$/,tw=function(){return{restrict:"A",priority:100,compile:function(n,t){return nw.test(t.ngValue)?function(n,t,i){i.$set("value",n.$eval(i.ngValue))}:function(n,t,i){n.$watch(i.ngValue,function(n){i.$set("value",n)})}}}},iw=["$compile",function(n){return{restrict:"AC",compile:function(t){return n.$$addBindingClass(t),function(t,i,u){n.$$addBindingInfo(i,u.ngBind);i=i[0];t.$watch(u.ngBind,function(n){i.textContent=r(n)?"":n})}}}}],rw=["$interpolate","$compile",function(n,t){return{compile:function(i){return t.$$addBindingClass(i),function(i,u,f){i=n(u.attr(f.$attr.ngBindTemplate));t.$$addBindingInfo(u,i.expressions);u=u[0];f.$observe("ngBindTemplate",function(n){u.textContent=r(n)?"":n})}}}}],uw=["$sce","$parse","$compile",function(n,t,i){return{restrict:"A",compile:function(r,u){var f=t(u.ngBindHtml),e=t(u.ngBindHtml,function(t){return n.valueOf(t)});return i.$$addBindingClass(r),function(t,r,u){i.$$addBindingInfo(r,u.ngBindHtml);t.$watch(e,function(){var i=f(t);r.html(n.getTrustedHtml(i)||"")})}}}}],fw=ft({restrict:"A",require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}}),ew=re("",!0),ow=re("Odd",0),sw=re("Even",1),hw=bi({compile:function(n,t){t.$set("ngCloak",void 0);n.removeClass("ng-cloak")}}),cw=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],cc={},lw={blur:!0,focus:!0};t("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=yt("ng-"+n);cc[t]=["$parse","$rootScope",function(i,r){return{restrict:"A",compile:function(u,f){var e=i(f[t],null,!0);return function(t,i){i.on(n,function(i){var u=function(){e(t,{$event:i})};lw[n]&&r.$$phase?t.$evalAsync(u):t.$apply(u)})}}}}]});var aw=["$animate","$compile",function(n,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,s,o;i.$watch(u.ngIf,function(i){i?s||e(function(i,f){s=f;i[i.length++]=t.$$createComment("end ngIf",u.ngIf);h={clone:i};n.enter(i,r.parent(),r)}):(o&&(o.remove(),o=null),s&&(s.$destroy(),s=null),h&&(o=ru(h.clone),n.leave(o).then(function(){o=null}),h=null))})}}}],vw=["$templateRequest","$anchorScroll","$animate",function(n,t,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ut.noop,compile:function(r,f){var o=f.ngInclude||f.src,s=f.onload||"",e=f.autoscroll;return function(r,f,h,c,l){var p=0,a,v,y,w=function(){v&&(v.remove(),v=null);a&&(a.$destroy(),a=null);y&&(i.leave(y).then(function(){v=null}),v=y,y=null)};r.$watch(o,function(o){var v=function(){u(e)&&(!e||r.$eval(e))&&t()},h=++p;o?(n(o,!0).then(function(n){if(!r.$$destroyed&&h===p){var t=r.$new();c.template=n;n=l(t,function(n){w();i.enter(n,null,f).then(v)});a=t;y=n;a.$emit("$includeContentLoaded",o);r.$eval(s)}},function(){r.$$destroyed||h!==p||(w(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(w(),c.template=null)})}}}}],yw=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(i,r,u,f){rt.call(r[0]).match(/SVG/)?(r.empty(),t(uo(f.template,n.document).childNodes)(i,function(n){r.append(n)},{futureParentElement:r})):(r.html(f.template),t(r.contents())(i))}}}],pw=bi({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),ww=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(n,i,u,f){var e=i.attr(u.$attr.ngList)||", ",o="false"!==u.ngTrim,s=o?p(e):e;f.$parsers.push(function(n){if(!r(n)){var i=[];return n&&t(n.split(s),function(n){n&&i.push(o?p(n):n)}),i}});f.$formatters.push(function(n){if(c(n))return n.join(e)});f.$isEmpty=function(n){return!n||!n.length}}}},gr="ng-valid",lc="ng-invalid",tr="ng-pristine",ef="ng-dirty",ac="ng-pending",nu=l("ngModel"),bw=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(n,i,e,s,h,c,l,a,v,y){var d;this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=void 0;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=void 0;this.$name=y(e.name||"",!1)(n);this.$$parentForm=dr;var k=h(e.ngModel),tt=k.assign,nt=k,it=tt,g=null,b,p=this;this.$$setOptions=function(n){if((p.$options=n)&&n.getterSetter){var t=h(e.ngModel+"()"),i=h(e.ngModel+"($$$p)");nt=function(n){var i=k(n);return f(i)&&(i=t(n)),i};it=function(n,t){f(k(n))?i(n,{$$$p:t}):tt(n,t)}}else if(!k.assign)throw nu("nonassign",e.ngModel,vt(s));};this.$render=o;this.$isEmpty=function(n){return r(n)||""===n||null===n||n!==n};this.$$updateEmptyClasses=function(n){p.$isEmpty(n)?(c.removeClass(s,"ng-not-empty"),c.addClass(s,"ng-empty")):(c.removeClass(s,"ng-empty"),c.addClass(s,"ng-not-empty"))};d=0;fh({ctrl:this,$element:s,set:function(n,t){n[t]=!0},unset:function(n,t){delete n[t]},$animate:c});this.$setPristine=function(){p.$dirty=!1;p.$pristine=!0;c.removeClass(s,ef);c.addClass(s,tr)};this.$setDirty=function(){p.$dirty=!0;p.$pristine=!1;c.removeClass(s,tr);c.addClass(s,ef);p.$$parentForm.$setDirty()};this.$setUntouched=function(){p.$touched=!1;p.$untouched=!0;c.setClass(s,"ng-untouched","ng-touched")};this.$setTouched=function(){p.$touched=!0;p.$untouched=!1;c.setClass(s,"ng-touched","ng-untouched")};this.$rollbackViewValue=function(){l.cancel(g);p.$viewValue=p.$$lastCommittedViewValue;p.$render()};this.$validate=function(){if(!w(p.$modelValue)||!isNaN(p.$modelValue)){var n=p.$$rawModelValue,t=p.$valid,i=p.$modelValue,r=p.$options&&p.$options.allowInvalid;p.$$runValidators(n,p.$$lastCommittedViewValue,function(u){r||t===u||(p.$modelValue=u?n:void 0,p.$modelValue!==i&&p.$$writeModelToScope())})}};this.$$runValidators=function(n,i,u){function c(){var r=!0;return t(p.$validators,function(t,u){var f=t(n,i);r=r&&f;e(u,f)}),r?!0:(t(p.$asyncValidators,function(n,t){e(t,null)}),!1)}function l(){var r=[],u=!0;t(p.$asyncValidators,function(t,o){var s=t(n,i);if(!s||!f(s.then))throw nu("nopromise",s);e(o,void 0);r.push(s.then(function(){e(o,!0)},function(){u=!1;e(o,!1)}))});r.length?v.all(r).then(function(){s(u)},o):s(!0)}function e(n,t){h===d&&p.$setValidity(n,t)}function s(n){h===d&&u(n)}d++;var h=d;(function(){var n=p.$$parserName||"parse";if(r(b))e(n,null);else return b||(t(p.$validators,function(n,t){e(t,null)}),t(p.$asyncValidators,function(n,t){e(t,null)})),e(n,b),b;return!0})()?c()?l():s(!1):s(!1)};this.$commitViewValue=function(){var n=p.$viewValue;l.cancel(g);(p.$$lastCommittedViewValue!==n||""===n&&p.$$hasNativeValidators)&&(p.$$updateEmptyClasses(n),p.$$lastCommittedViewValue=n,p.$pristine&&this.$setDirty(),this.$$parseAndValidate())};this.$$parseAndValidate=function(){var t=p.$$lastCommittedViewValue,i,u,f;if(b=r(t)?void 0:!0)for(i=0;i<p.$parsers.length;i++)if(t=p.$parsers[i](t),r(t)){b=!1;break}w(p.$modelValue)&&isNaN(p.$modelValue)&&(p.$modelValue=nt(n));u=p.$modelValue;f=p.$options&&p.$options.allowInvalid;p.$$rawModelValue=t;f&&(p.$modelValue=t,p.$modelValue!==u&&p.$$writeModelToScope());p.$$runValidators(t,p.$$lastCommittedViewValue,function(n){f||(p.$modelValue=n?t:void 0,p.$modelValue!==u&&p.$$writeModelToScope())})};this.$$writeModelToScope=function(){it(n,p.$modelValue);t(p.$viewChangeListeners,function(n){try{n()}catch(t){i(t)}})};this.$setViewValue=function(n,t){p.$viewValue=n;p.$options&&!p.$options.updateOnDefault||p.$$debounceViewValueCommit(t)};this.$$debounceViewValueCommit=function(t){var r=0,i=p.$options;i&&u(i.debounce)&&(i=i.debounce,w(i)?r=i:w(i[t])?r=i[t]:w(i["default"])&&(r=i["default"]));l.cancel(g);r?g=l(function(){p.$commitViewValue()},r):a.$$phase?p.$commitViewValue():n.$apply(function(){p.$commitViewValue()})};n.$watch(function(){var t=nt(n);if(t!==p.$modelValue&&(p.$modelValue===p.$modelValue||t===t)){p.$modelValue=p.$$rawModelValue=t;b=void 0;for(var r=p.$formatters,u=r.length,i=t;u--;)i=r[u](i);p.$viewValue!==i&&(p.$$updateEmptyClasses(i),p.$viewValue=p.$$lastCommittedViewValue=i,p.$render(),p.$$runValidators(t,i,o))}return t})}],kw=["$rootScope",function(n){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:bw,priority:1,compile:function(t){return t.addClass(tr).addClass("ng-untouched").addClass(gr),{pre:function(n,t,i,r){var u=r[0];t=r[1]||u.$$parentForm;u.$$setOptions(r[2]&&r[2].$options);t.$addControl(u);i.$observe("name",function(n){u.$name!==n&&u.$$parentForm.$$renameControl(u,n)});n.$on("$destroy",function(){u.$$parentForm.$removeControl(u)})},post:function(t,i,r,u){var f=u[0];if(f.$options&&f.$options.updateOn)i.on(f.$options.updateOn,function(n){f.$$debounceViewValueCommit(n&&n.type)});i.on("blur",function(){f.$touched||(n.$$phase?t.$evalAsync(f.$setTouched):t.$apply(f.$setTouched))})}}}}}],dw=/(\s+|^)default(\s+|$)/,gw=function(){return{restrict:"A",controller:["$scope","$attrs",function(n,t){var i=this;this.$options=dt(n.$eval(t.ngModelOptions));u(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=p(this.$options.updateOn.replace(dw,function(){return i.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},nb=bi({terminal:!0,priority:1e3}),tb=l("ngOptions"),ib=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,rb=["$compile","$document","$parse",function(i,r,f){function h(n,t,i){function w(n,t,i,r,u){this.selectValue=n;this.viewValue=t;this.label=i;this.group=r;this.disabled=u}function l(n){var t,i;if(!s&&kt(n))t=n;else{t=[];for(i in n)n.hasOwnProperty(i)&&"$"!==i.charAt(0)&&t.push(i)}return t}var r=n.match(ib),o,s,u;if(!r)throw tb("iexp",n,vt(t));o=r[5]||r[7];s=r[6];n=/ as /.test(r[0])&&r[1];u=r[9];t=f(r[2]?r[1]:o);var b=n&&f(n)||t,k=u&&f(u),h=u?function(n,t){return k(i,t)}:function(n){return fi(n)},a=function(n,t){return h(n,c(n,t))},v=f(r[2]||r[1]),d=f(r[3]||""),y=f(r[4]||""),p=f(r[8]),e={},c=s?function(n,t){return e[s]=t,e[o]=n,e}:function(n){return e[o]=n,e};return{trackBy:u,getTrackByValue:a,getWatchables:f(p,function(n){var f=[];n=n||[];for(var o=l(n),s=o.length,e=0;e<s;e++){var t=n===o?e:o[e],u=n[t],t=c(u,t),u=h(u,t);f.push(u);(r[2]||r[1])&&(u=v(i,t),f.push(u));r[4]&&(t=y(i,t),f.push(t))}return f}),getOptions:function(){for(var k=[],e={},o=p(i)||[],s=l(o),g=s.length,f=0;f<g;f++){var t=o===s?f:s[f],n=c(o[t],t),r=b(i,n),t=h(r,n),nt=v(i,n),tt=d(i,n),n=y(i,n),r=new w(t,r,nt,tt,n);k.push(r);e[t]=r}return{items:k,selectValueMap:e,getOptionFromViewValue:function(n){return e[a(n)]},getViewValueFromOption:function(n){return u?ut.copy(n.viewValue):n.viewValue}}}}}var s=n.document.createElement("option"),l=n.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(n,t,i,r){r[0].registerOption=o},post:function(n,f,o,a){function ut(n,t){n.element=t;t.disabled=n.disabled;n.label!==t.label&&(t.label=n.label,t.textContent=n.label);n.value!==t.value&&(t.value=n.selectValue)}function tt(){var i=y&&d.readValue(),n,t,r;if(y)for(n=y.items.length-1;0<=n;n--)t=y.items[n],u(t.group)?cu(t.element.parentNode):cu(t.element);y=k.getOptions();r={};w&&f.prepend(v);y.items.forEach(function(n){var t,i;u(n.group)?(t=r[n.group],t||(t=l.cloneNode(!1),nt.appendChild(t),t.label=null===n.group?"null":n.group,r[n.group]=t),i=s.cloneNode(!1)):(t=nt,i=s.cloneNode(!1));t.appendChild(i);ut(n,i)});f[0].appendChild(nt);p.$render();p.$isEmpty(i)||(n=d.readValue(),(k.trackBy||it?ot(i,n):i===n)||(p.$setViewValue(n),p.$render()))}var d=a[0],p=a[1],it=o.multiple,v,g,rt,w,b,y,k,nt;for(a=0,g=f.children(),rt=g.length;a<rt;a++)if(""===g[a].value){v=g.eq(a);break}w=!!v;b=e(s.cloneNode(!1));b.val("?");k=h(o.ngOptions,f,n);nt=r[0].createDocumentFragment();it?(p.$isEmpty=function(n){return!n||0===n.length},d.writeValue=function(n){y.items.forEach(function(n){n.element.selected=!1});n&&n.forEach(function(n){(n=y.getOptionFromViewValue(n))&&(n.element.selected=!0)})},d.readValue=function(){var i=f.val()||[],n=[];return t(i,function(t){(t=y.selectValueMap[t])&&!t.disabled&&n.push(y.getViewValueFromOption(t))}),n},k.trackBy&&n.$watchCollection(function(){if(c(p.$viewValue))return p.$viewValue.map(function(n){return k.getTrackByValue(n)})},function(){p.$render()})):(d.writeValue=function(n){var t=y.getOptionFromViewValue(n);t?(f[0].value!==t.selectValue&&(b.remove(),w||v.remove(),f[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):null===n||w?(b.remove(),w||f.prepend(v),f.val(""),v.prop("selected",!0),v.attr("selected",!0)):(w||v.remove(),f.prepend(b),f.val("?"),b.prop("selected",!0),b.attr("selected",!0))},d.readValue=function(){var n=y.selectValueMap[f.val()];return n&&!n.disabled?(w||v.remove(),b.remove(),y.getViewValueFromOption(n)):null},k.trackBy&&n.$watch(function(){return k.getTrackByValue(p.$viewValue)},function(){p.$render()}));w?(v.remove(),i(v)(n),v.removeClass("ng-scope")):v=e(s.cloneNode(!1));f.empty();tt();n.$watchCollection(k.getWatchables,tt)}}}}],ub=["$locale","$interpolate","$log",function(n,i,u){var f=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(s,h,c){function p(n){h.text(n||"")}var b=c.count,k=c.$attr.when&&h.attr(c.$attr.when),d=c.offset||0,a=s.$eval(k)||{},g={},nt=i.startSymbol(),tt=i.endSymbol(),it=nt+b+"-"+d+tt,y=ut.noop,l;t(c,function(n,t){var i=e.exec(t);i&&(i=(i[1]?"-":"")+v(i[2]),a[i]=h.attr(c.$attr[t]))});t(a,function(n,t){g[t]=i(n.replace(f,it))});s.$watch(b,function(t){var i=parseFloat(t),f=isNaN(i);f||i in a||(i=n.pluralCat(i-d));i===l||f&&w(l)&&isNaN(l)||(y(),f=g[i],r(f)?(null!=t&&u.debug("ngPluralize: no rule defined for '"+i+"' in "+k),y=o,p()):y=s.$watch(f,p),l=i)})}}}],fb=["$parse","$animate","$compile",function(n,i,r){var u=l("ngRepeat"),f=function(n,t,i,r,u,f,e){n[i]=r;u&&(n[u]=f);n.$index=t;n.$first=0===t;n.$last=t===e-1;n.$middle=!(n.$first||n.$last);n.$odd=!(n.$even=0==(t&1))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,o){var a=o.ngRepeat,nt=r.$$createComment("end ngRepeat",a),s=a.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),v,c,p,w,d,g,l;if(!s)throw u("iexp",a);var b=s[1],tt=s[2],h=s[3],k=s[4],s=b.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!s)throw u("iidexp",b);if(v=s[3]||s[1],c=s[2],h&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(h)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(h)))throw u("badident",h);return l={$id:fi},k?p=n(k):(d=function(n,t){return fi(t)},g=function(n){return n}),function(n,r,e,o,s){p&&(w=function(t,i,r){return c&&(l[c]=t),l[v]=i,l.$index=r,p(n,l)});var b=y();n.$watchCollection(tt,function(e){var o,et,ot=r[0],tt,st=y(),ut,rt,ft,p,it,l,k;if(h&&(n[h]=e),kt(e))it=e,et=w||d;else for(k in et=w||g,it=[],e)wt.call(e,k)&&"$"!==k.charAt(0)&&it.push(k);for(ut=it.length,k=Array(ut),o=0;o<ut;o++)if(rt=e===it?o:it[o],ft=e[rt],p=et(rt,ft,o),b[p])l=b[p],delete b[p],st[p]=l,k[o]=l;else{if(st[p])throw t(k,function(n){n&&n.scope&&(b[n.id]=n)}),u("dupes",a,p,ft);k[o]={id:p,scope:void 0,clone:void 0};st[p]=!0}for(tt in b){if(l=b[tt],p=ru(l.clone),i.leave(p),p[0].parentNode)for(o=0,et=p.length;o<et;o++)p[o].$$NG_REMOVED=!0;l.scope.$destroy()}for(o=0;o<ut;o++)if(rt=e===it?o:it[o],ft=e[rt],l=k[o],l.scope){tt=ot;do tt=tt.nextSibling;while(tt&&tt.$$NG_REMOVED);l.clone[0]!=tt&&i.move(ru(l.clone),null,ot);ot=l.clone[l.clone.length-1];f(l.scope,o,v,ft,c,rt,ut)}else s(function(n,t){l.scope=t;var r=nt.cloneNode(!1);n[n.length++]=r;i.enter(n,null,ot);ot=r;l.clone=n;st[l.id]=l;f(l.scope,o,v,ft,c,rt,ut)});b=st})}}}}],eb=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngShow,function(t){n[t?"removeClass":"addClass"](i,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],ob=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngHide,function(t){n[t?"addClass":"removeClass"](i,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],sb=bi(function(n,i,r){n.$watch(r.ngStyle,function(n,r){r&&n!==r&&t(r,function(n,t){i.css(t,"")});n&&i.css(n)},!0)}),hb=["$animate","$compile",function(n,i){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(r,u,f,e){var c=[],h=[],o=[],s=[],l=function(n,t){return function(){n.splice(t,1)}};r.$watch(f.ngSwitch||f.on,function(r){for(var a,u=0,f=o.length;u<f;++u)n.cancel(o[u]);for(u=o.length=0,f=s.length;u<f;++u)a=ru(h[u].clone),s[u].$destroy(),(o[u]=n.leave(a)).then(l(o,u));h.length=0;s.length=0;(c=e.cases["!"+r]||e.cases["?"])&&t(c,function(t){t.transclude(function(r,u){s.push(u);var f=t.element;r[r.length++]=i.$$createComment("end ngSwitchWhen");h.push({clone:r});n.enter(r,f.parent(),f)})})})}}}],cb=bi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["!"+i.ngSwitchWhen]=r.cases["!"+i.ngSwitchWhen]||[];r.cases["!"+i.ngSwitchWhen].push({transclude:u,element:t})}}),lb=bi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),ab=l("ngTransclude"),vb=["$compile",function(n){return{restrict:"EAC",terminal:!0,compile:function(t){var i=n(t.contents());return t.empty(),function(n,t,r,u,f){function e(){i(n,function(n){t.append(n)})}if(!f)throw ab("orphan",vt(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");r=r.ngTransclude||r.ngTranscludeSlot;f(function(n,i){n.length?t.append(n):(e(),i.$destroy())},null,r);r&&!f.isSlotFilled(r)&&e()}}}}],yb=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){"text/ng-template"==i.type&&n.put(i.id,t[0].text)}}}],pb={$setViewValue:o,$render:o},wb=["$element","$scope",function(t,i){var r=this,f=new pi;r.ngModelCtrl=pb;r.unknownOption=e(n.document.createElement("option"));r.renderUnknownOption=function(n){n="? "+fi(n)+" ?";r.unknownOption.val(n);t.prepend(r.unknownOption);t.val(n)};i.$on("$destroy",function(){r.renderUnknownOption=o});r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()};r.readValue=function(){return r.removeUnknownOption(),t.val()};r.writeValue=function(n){r.hasOption(n)?(r.removeUnknownOption(),t.val(n),""===n&&r.emptyOption.prop("selected",!0)):null==n&&r.emptyOption?(r.removeUnknownOption(),t.val("")):r.renderUnknownOption(n)};r.addOption=function(n,t){if(8!==t[0].nodeType){yi(n,'"option value"');""===n&&(r.emptyOption=t);var i=f.get(n)||0;f.put(n,i+1);r.ngModelCtrl.$render();t[0].hasAttribute("selected")&&(t[0].selected=!0)}};r.removeOption=function(n){var t=f.get(n);t&&(1===t?(f.remove(n),""===n&&(r.emptyOption=void 0)):f.put(n,t-1))};r.hasOption=function(n){return!!f.get(n)};r.registerOption=function(n,t,i,f,e){if(f){var o;i.$observe("value",function(n){u(o)&&r.removeOption(o);o=n;r.addOption(n,t)})}else e?n.$watch(e,function(n,u){i.$set("value",n);u!==n&&r.removeOption(u);r.addOption(n,t)}):r.addOption(i.value,t);t.on("$destroy",function(){r.removeOption(i.value);r.ngModelCtrl.$render()})}}],bb=function(){return{restrict:"E",require:["select","?ngModel"],controller:wb,priority:1,link:{pre:function(n,i,r,f){var e=f[1],o,h,s;if(e){o=f[0];o.ngModelCtrl=e;i.on("change",function(){n.$apply(function(){e.$setViewValue(o.readValue())})});r.multiple&&(o.readValue=function(){var n=[];return t(i.find("option"),function(t){t.selected&&n.push(t.value)}),n},o.writeValue=function(n){var r=new pi(n);t(i.find("option"),function(n){n.selected=u(r.get(n.value))})},s=NaN,n.$watch(function(){s!==e.$viewValue||ot(h,e.$viewValue)||(h=st(e.$viewValue),e.$render());s=e.$viewValue}),e.$isEmpty=function(n){return!n||0===n.length})}},post:function(n,t,i,r){var u=r[1],f;u&&(f=r[0],u.$render=function(){f.writeValue(u.$viewValue)})}}}},kb=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(t,i){var f,r;return u(i.value)?f=n(i.value,!0):(r=n(t.text(),!0),r||i.$set("value",t.text())),function(n,t,i){var u=t.parent();(u=u.data("$selectController")||u.parent().data("$selectController"))&&u.registerOption(n,t,i,f,r)}}}}],db=ft({restrict:"E",terminal:!1}),vc=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){r&&(i.required=!0,r.$validators.required=function(n,t){return!i.required||!r.$isEmpty(t)},i.$observe("required",function(){r.$validate()}))}}},yc=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,u){if(u){var f,e=i.ngPattern||i.pattern;i.$observe("pattern",function(n){if(h(n)&&0<n.length&&(n=new RegExp("^"+n+"$")),n&&!n.test)throw l("ngPattern")("noregexp",e,n,vt(t));f=n||void 0;u.$validate()});u.$validators.pattern=function(n,t){return u.$isEmpty(t)||r(f)||f.test(t)}}}}},pc=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=-1;i.$observe("maxlength",function(n){n=tt(n);u=isNaN(n)?-1:n;r.$validate()});r.$validators.maxlength=function(n,t){return 0>u||r.$isEmpty(t)||t.length<=u}}}}},wc=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=0;i.$observe("minlength",function(n){u=tt(n)||0;r.$validate()});r.$validators.minlength=function(n,t){return r.$isEmpty(t)||t.length>=u}}}}};n.angular.bootstrap?n.console&&console.log("WARNING: Tried to load angular more than once."):(fl(),ol(ut),ut.module("ngLocale",[],["$provide",function(n){function t(n){n+="";var t=n.indexOf(".");return-1==t?0:n.length-t-1}n.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(n,i){var u=n|0,r=i;return void 0===r&&(r=Math.min(t(n),3)),Math.pow(10,r),1==u&&0==r?"one":"other"}})}]),e(n.document).ready(function(){il(n.document,no)}))}(window),window.angular.$$csp().noInlineStyle||window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}<\/style>'),function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Popper=t()}(this,function(){"use strict";function ut(n){return n&&"[object Function]"==={}.toString.call(n)}function e(n,t){if(1!==n.nodeType)return[];var i=window.getComputedStyle(n,null);return t?i[t]:i}function y(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function o(n){if(!n||-1!==["HTML","BODY","#document"].indexOf(n.nodeName))return window.document.body;var t=e(n),i=t.overflow,r=t.overflowX,u=t.overflowY;return/(auto|scroll)/.test(i+u+r)?n:o(y(n))}function r(n){var t=n&&n.offsetParent,i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===e(t,"position")?r(t):t:window.document.documentElement}function ri(n){var t=n.nodeName;return"BODY"!==t&&("HTML"===t||r(n.firstElementChild)===n)}function p(n){return null===n.parentNode?n:p(n.parentNode)}function h(n,t){var i,f;if(!n||!n.nodeType||!t||!t.nodeType)return window.document.documentElement;var e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=e?n:t,s=e?t:n,u=document.createRange();return(u.setStart(o,0),u.setEnd(s,0),i=u.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?ri(i)?i:r(i):(f=p(n),f.host?h(f.host,t):h(n,p(t).host))}function u(n){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",t="top"===f?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return"BODY"===i||"HTML"===i?(r=window.document.documentElement,u=window.document.scrollingElement||r,u[t]):n[t]}function ui(n,t){var e=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=u(t,"top"),f=u(t,"left"),i=e?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=f*i,n.right+=f*i,n}function ft(n,t){var i="x"===t?"Left":"Top",r="Left"==i?"Right":"Bottom";return+n["border"+i+"Width"].split("px")[0]+ +n["border"+r+"Width"].split("px")[0]}function et(n,t,r,u){return i(t["offset"+n],r["client"+n],r["offset"+n],l()?r["offset"+n]+u["margin"+("Height"===n?"Top":"Left")]+u["margin"+("Height"===n?"Bottom":"Right")]:0)}function ot(){var t=window.document.body,n=window.document.documentElement,i=l()&&window.getComputedStyle(n);return{height:et("Height",t,n,i),width:et("Width",t,n,i)}}function t(t){return n({},t,{right:t.left+t.width,bottom:t.top+t.height})}function w(n){var i={},f,o,c;if(l())try{i=n.getBoundingClientRect();f=u(n,"top");o=u(n,"left");i.top+=f;i.left+=o;i.bottom+=f;i.right+=o}catch(n){}else i=n.getBoundingClientRect();var r={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},a="HTML"===n.nodeName?ot():{},v=a.width||n.clientWidth||r.right-r.left,y=a.height||n.clientHeight||r.bottom-r.top,s=n.offsetWidth-v,h=n.offsetHeight-y;return(s||h)&&(c=e(n),s-=ft(c,"x"),h-=ft(c,"y"),r.width-=s,r.height-=h),t(r)}function b(n,i){var y=l(),b="HTML"===i.nodeName,u=w(n),p=w(i),c=o(n),f=e(i),a=+f.borderTopWidth.split("px")[0],v=+f.borderLeftWidth.split("px")[0],r=t({top:u.top-p.top-a,left:u.left-p.left-v,width:u.width,height:u.height}),s,h;return(r.marginTop=0,r.marginLeft=0,!y&&b)&&(s=+f.marginTop.split("px")[0],h=+f.marginLeft.split("px")[0],r.top-=a-s,r.bottom-=a-s,r.left-=v-h,r.right-=v-h,r.marginTop=s,r.marginLeft=h),(y?i.contains(c):i===c&&"BODY"!==c.nodeName)&&(r=ui(r,i)),r}function fi(n){var r=window.document.documentElement,f=b(n,r),e=i(r.clientWidth,window.innerWidth||0),o=i(r.clientHeight,window.innerHeight||0),s=u(r),h=u(r,"left"),c={top:s-f.top+f.marginTop,left:h-f.left+f.marginLeft,width:e,height:o};return t(c)}function st(n){var t=n.nodeName;return"BODY"===t||"HTML"===t?!1:"fixed"===e(n,"position")||st(y(n))}function k(n,t,i,r){var u={top:0,left:0},s=h(n,t),e,f;if("viewport"===r)u=fi(s);else if("scrollParent"===r?(e=o(y(n)),"BODY"===e.nodeName&&(e=window.document.documentElement)):e="window"===r?window.document.documentElement:r,f=b(e,s),"HTML"!==e.nodeName||st(s))u=f;else{var c=ot(),l=c.height,a=c.width;u.top+=f.top-f.marginTop;u.bottom=l+f.top;u.left+=f.left-f.marginLeft;u.right=a+f.left}return u.left+=i,u.top+=i,u.right-=i,u.bottom-=i,u}function ei(n){var t=n.width,i=n.height;return t*i}function ht(t,i,r,u,f){var l=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var e=k(r,u,l,f),o={top:{width:e.width,height:i.top-e.top},right:{width:e.right-i.right,height:e.height},bottom:{width:e.width,height:e.bottom-i.bottom},left:{width:i.left-e.left,height:e.height}},s=Object.keys(o).map(function(t){return n({key:t},o[t],{area:ei(o[t])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,i=n.height;return t>=r.clientWidth&&i>=r.clientHeight}),a=0<h.length?h[0].key:s[0].key,c=t.split("-")[1];return a+(c?"-"+c:"")}function ct(n,t,i){var r=h(t,i);return b(i,r)}function lt(n){var t=window.getComputedStyle(n),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function c(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function at(n,t,i){i=i.split("-")[0];var r=lt(n),e={width:r.width,height:r.height},u=-1!==["right","left"].indexOf(i),o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[c(f)],e}function s(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function oi(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=s(n,function(n){return n[t]===i});return n.indexOf(r)}function vt(n,i,r){var u=void 0===r?n:n.slice(0,oi(n,"name",r));return u.forEach(function(n){n.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=n.function||n.fn;n.enabled&&ut(r)&&(i.offsets.popper=t(i.offsets.popper),i.offsets.reference=t(i.offsets.reference),i=r(i,n))}),i}function si(){if(!this.state.isDestroyed){var n={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=ct(this.state,this.popper,this.reference);n.placement=ht(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);n.originalPlacement=n.placement;n.offsets.popper=at(this.popper,n.offsets.reference,n.placement);n.offsets.popper.position="absolute";n=vt(this.modifiers,n);this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function yt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function pt(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length-1;t++)if(i=u[t],r=i?""+i+f:n,"undefined"!=typeof window.document.body.style[r])return r;return null}function hi(){return this.state.isDestroyed=!0,yt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[pt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function wt(n,t,i,r){var f="BODY"===n.nodeName,u=f?window:n;u.addEventListener(t,i,{passive:!0});f||wt(o(u.parentNode),t,i,r);r.push(u)}function ci(n,t,i,r){i.updateBound=r;window.addEventListener("resize",i.updateBound,{passive:!0});var u=o(n);return wt(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function li(){this.state.eventsEnabled||(this.state=ci(this.reference,this.options,this.state,this.scheduleUpdate))}function ai(n,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function vi(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=ai(this.reference,this.state))}function d(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function g(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&d(t[i])&&(r="px");n.style[i]=t[i]+r})}function yi(n,t){Object.keys(t).forEach(function(i){var r=t[i];!1===r?n.removeAttribute(i):n.setAttribute(i,t[i])})}function bt(n,t,i){var u=s(n,function(n){var i=n.name;return i===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r;return f||(r="`"+t+"`",console.warn("`"+i+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function pi(n){return"end"===n?"start":"start"===n?"end":n}function kt(n){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=it.indexOf(n),i=it.slice(t+1).concat(it.slice(0,t));return r?i.reverse():i}function wi(n,r,u,f){var h=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+h[1],e=h[2],s,c,l;if(!o)return n;if(0===e.indexOf("%")){switch(e){case"%p":s=u;break;case"%":case"%r":default:s=f}return c=t(s),c[r]/100*o}return"vh"===e||"vw"===e?(l="vh"===e?i(document.documentElement.clientHeight,window.innerHeight||0):i(document.documentElement.clientWidth,window.innerWidth||0),l/100*o):o}function bi(n,t,i,r){var h=[0,0],c=-1!==["right","left"].indexOf(r),u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(s(u,function(n){return-1!==n.search(/,|\s/)})),o,e;return u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,e=-1===f?[u]:[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))],e=e.map(function(n,r){var f=(1===r?!c:c)?"height":"width",u=!1;return n.reduce(function(n,t){return""===n[n.length-1]&&-1!==["+","-"].indexOf(t)?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return wi(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){d(i)&&(h[t]+=i*("-"===n[r-1]?-1:1))})}),h}for(var dt=Math.min,f=Math.floor,i=Math.max,ki=["native code","[object MutationObserverConstructor]"],di=function(n){return ki.some(function(t){return-1<(n||"").toString().indexOf(t)})},gt="undefined"!=typeof window,ni=["Edge","Trident","Firefox"],ti=0,nt=0;nt<ni.length;nt+=1)if(gt&&0<=navigator.userAgent.indexOf(ni[nt])){ti=1;break}var tt,gi=gt&&di(window.MutationObserver),nr=gi?function(n){var t=!1,i=0,r=document.createElement("span"),u=new MutationObserver(function(){n();t=!1});return u.observe(r,{attributes:!0}),function(){t||(t=!0,r.setAttribute("x-index",i),++i)}}:function(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ti))}},l=function(){return void 0==tt&&(tt=-1!==navigator.appVersion.indexOf("MSIE 10")),tt},tr=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},ir=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},n=Object.assign||function(n){for(var t,r,i=1;i<arguments.length;i++)for(r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},ii=["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"],it=ii.slice(3),rt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},v=function(){function t(i,r){var u=this,f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e;tr(this,t);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=nr(this.update.bind(this));this.options=n({},t.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=i.jquery?i[0]:i;this.popper=r.jquery?r[0]:r;this.options.modifiers={};Object.keys(n({},t.Defaults.modifiers,f.modifiers)).forEach(function(i){u.options.modifiers[i]=n({},t.Defaults.modifiers[i]||{},f.modifiers?f.modifiers[i]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(t){return n({name:t},u.options.modifiers[t])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&ut(n.onLoad)&&n.onLoad(u.reference,u.popper,u.options,n,u.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return ir(t,[{key:"update",value:function(){return si.call(this)}},{key:"destroy",value:function(){return hi.call(this)}},{key:"enableEventListeners",value:function(){return li.call(this)}},{key:"disableEventListeners",value:function(){return vi.call(this)}}]),t}();return v.Utils=("undefined"==typeof window?global:window).PopperUtils,v.placements=ii,v.Defaults={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var u=t.placement,c=u.split("-")[0],f=u.split("-")[1];if(f){var e=t.offsets,r=e.reference,o=e.popper,s=-1!==["bottom","top"].indexOf(c),i=s?"left":"top",h=s?"width":"height",l={start:a({},i,r[i]),end:a({},i,r[i]+r[h]-o[h])};t.offsets.popper=n({},o,l[f])}return t}},offset:{order:200,enabled:!0,fn:function(n,t){var r,f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0];return r=d(+f)?[+f,0]:bi(f,i,s,u),"left"===u?(i.top+=r[0],i.left-=r[1]):"right"===u?(i.top+=r[0],i.left+=r[1]):"top"===u?(i.left+=r[0],i.top-=r[1]):"bottom"===u&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,u){var o=u.boundariesElement||r(t.instance.popper),e;t.instance.reference===o&&(o=r(o));e=k(t.instance.popper,t.instance.reference,u.padding,o);u.boundaries=e;var s=u.priority,f=t.offsets.popper,h={primary:function(n){var t=f[n];return f[n]<e[n]&&!u.escapeWithReference&&(t=i(f[n],e[n])),a({},n,t)},secondary:function(n){var t="right"===n?"left":"top",i=f[t];return f[n]>e[n]&&!u.escapeWithReference&&(i=dt(f[t],e[n]-("right"===n?f.width:f.height))),a({},t,i)}};return s.forEach(function(t){var i=-1===["left","top"].indexOf(t)?"secondary":"primary";f=n({},f,h[i](t))}),t.offsets.popper=f,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var s=n.offsets,u=s.popper,i=s.reference,h=n.placement.split("-")[0],r=f,e=-1!==["top","bottom"].indexOf(h),o=e?"right":"bottom",t=e?"left":"top",c=e?"width":"height";return u[o]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[c]),u[t]>r(i[o])&&(n.offsets.popper[t]=r(i[o])),n}},arrow:{order:500,enabled:!0,fn:function(n,r){var f,y,l;if(!bt(n.instance.modifiers,"arrow","keepTogether"))return n;if(f=r.element,"string"==typeof f){if(f=n.instance.popper.querySelector(f),!f)return n}else if(!n.instance.popper.contains(f))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var p=n.placement.split("-")[0],v=n.offsets,s=v.popper,e=v.reference,h=-1!==["left","right"].indexOf(p),a=h?"height":"width",u=h?"top":"left",w=h?"left":"top",c=h?"bottom":"right",o=lt(f)[a];return e[c]-o<s[u]&&(n.offsets.popper[u]-=s[u]-(e[c]-o)),e[u]+o>s[c]&&(n.offsets.popper[u]+=e[u]+o-s[c]),y=e[u]+e[a]/2-o/2,l=y-t(n.offsets.popper)[u],l=i(dt(s[a]-o,l),0),n.arrowElement=f,n.offsets.arrow={},n.offsets.arrow[u]=Math.round(l),n.offsets.arrow[w]="",n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,i){if(yt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var o=k(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement),r=t.placement.split("-")[0],s=c(r),u=t.placement.split("-")[1]||"",e=[];switch(i.behavior){case rt.FLIP:e=[r,s];break;case rt.CLOCKWISE:e=kt(r);break;case rt.COUNTERCLOCKWISE:e=kt(r,!0);break;default:e=i.behavior}return e.forEach(function(h,l){if(r!==h||e.length===l+1)return t;r=t.placement.split("-")[0];s=c(r);var v=t.offsets.popper,y=t.offsets.reference,a=f,w="left"===r&&a(v.right)>a(y.left)||"right"===r&&a(v.left)<a(y.right)||"top"===r&&a(v.bottom)>a(y.top)||"bottom"===r&&a(v.top)<a(y.bottom),b=a(v.left)<a(o.left),k=a(v.right)>a(o.right),d=a(v.top)<a(o.top),g=a(v.bottom)>a(o.bottom),nt="left"===r&&b||"right"===r&&k||"top"===r&&d||"bottom"===r&&g,p=-1!==["top","bottom"].indexOf(r),tt=!!i.flipVariations&&(p&&"start"===u&&b||p&&"end"===u&&k||!p&&"start"===u&&d||!p&&"end"===u&&g);(w||nt||tt)&&(t.flipped=!0,(w||nt)&&(r=e[l+1]),tt&&(u=pi(u)),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,at(t.instance.popper,t.offsets.reference,t.placement)),t=vt(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(n){var i=n.placement,u=i.split("-")[0],f=n.offsets,r=f.popper,o=f.reference,e=-1!==["left","right"].indexOf(u),s=-1===["top","left"].indexOf(u);return r[e?"left":"top"]=o[i]-(s?r[e?"width":"height"]:0),n.placement=c(i),n.offsets.popper=t(r),n}},hide:{order:800,enabled:!0,fn:function(n){if(!bt(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=s(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===n.hide)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function(t,i){var g=i.x,nt=i.y,e=t.offsets.popper,l=s(t.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration,b,k,d;void 0!==l&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,v,tt=void 0===l?i.gpuAcceleration:l,it=r(t.instance.popper),y=w(it),u={position:e.position},c={left:f(e.left),top:f(e.top),bottom:f(e.bottom),right:f(e.right)},o="bottom"===g?"top":"bottom",h="right"===nt?"left":"right",p=pt("transform");return(v="bottom"==o?-y.height+c.bottom:c.top,a="right"==h?-y.width+c.right:c.left,tt&&p)?(u[p]="translate3d("+a+"px, "+v+"px, 0)",u[o]=0,u[h]=0,u.willChange="transform"):(b="bottom"==o?-1:1,k="right"==h?-1:1,u[o]=v*b,u[h]=a*k,u.willChange=o+", "+h),d={"x-placement":t.placement},t.attributes=n({},d,t.attributes),t.styles=n({},u,t.styles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(n){return g(n.instance.popper,n.styles),yi(n.instance.popper,n.attributes),n.offsets.arrow&&g(n.arrowElement,n.offsets.arrow),n},onLoad:function(n,t,i,r,u){var f=ct(u,t,n),e=ht(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),g(t,{position:"absolute"}),i},gpuAcceleration:void 0}}},v}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function t(){return af.apply(null,arguments)}function gs(n){af=n}function tt(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function li(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function nh(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var t;for(t in n)if(n.hasOwnProperty(t))return!1;return!0}function p(n){return n===void 0}function dt(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function gi(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function vf(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function l(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function yt(n,t){for(var i in t)l(t,i)&&(n[i]=t[i]);return l(t,"toString")&&(n.toString=t.toString),l(t,"valueOf")&&(n.valueOf=t.valueOf),n}function et(n,t,i,r){return yo(n,t,i,r,!0).utc()}function th(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function u(n){return n._pf==null&&(n._pf=th()),n._pf}function tu(n){if(n._isValid==null){var t=u(n),r=yf.call(t.parsedDateParts,function(n){return n!=null}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined),Object.isFrozen!=null&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function nr(n){var t=et(NaN);return n!=null?yt(u(t),n):u(t).userInvalidated=!0,t}function iu(n,t){var i,r,f;if(p(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),p(t._i)||(n._i=t._i),p(t._f)||(n._f=t._f),p(t._l)||(n._l=t._l),p(t._strict)||(n._strict=t._strict),p(t._tzm)||(n._tzm=t._tzm),p(t._isUTC)||(n._isUTC=t._isUTC),p(t._offset)||(n._offset=t._offset),p(t._pf)||(n._pf=u(t)),p(t._locale)||(n._locale=t._locale),tr.length>0)for(i=0;i<tr.length;i++)r=tr[i],f=t[r],p(f)||(n[r]=f);return n}function ai(n){iu(this,n);this._d=new Date(n._d!=null?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));ir===!1&&(ir=!0,t.updateOffset(this),ir=!1)}function pt(n){return n instanceof ai||n!=null&&n._isAMomentObject!=null}function d(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function f(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=d(t)),i}function pf(n,t,i){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<e;r++)(i&&n[r]!==t[r]||!i&&f(n[r])!==f(t[r]))&&u++;return u+o}function wf(n){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function g(n,i){var r=!0;return yt(function(){var e,u,f,o;if(t.deprecationHandler!=null&&t.deprecationHandler(null,n),r){for(e=[],f=0;f<arguments.length;f++){if(u="",typeof arguments[f]=="object"){u+="\n["+f+"] ";for(o in arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}wf(n+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function bf(n,i){t.deprecationHandler!=null&&t.deprecationHandler(n,i);ru[n]||(wf(i),ru[n]=!0)}function ot(n){return n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function ih(n){var t,i;for(i in n)t=n[i],ot(t)?this[i]=t:this["_"+i]=t;this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function kf(n,t){var r=yt({},n),i;for(i in t)l(t,i)&&(li(n[i])&&li(t[i])?(r[i]={},yt(r[i],n[i]),yt(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in n)l(n,i)&&!l(t,i)&&li(n[i])&&(r[i]=yt({},r[i]));return r}function uu(n){n!=null&&this.set(n)}function rh(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return ot(r)?r.call(t,i):r}function uh(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])}function fh(){return this._invalidDate}function eh(n){return this._ordinal.replace("%d",n)}function oh(n,t,i,r){var u=this._relativeTime[i];return ot(u)?u(n,t,i,r):u.replace(/%d/i,n)}function sh(n,t){var i=this._relativeTime[n>0?"future":"past"];return ot(i)?i(t):i.replace(/%s/i,t)}function w(n,t){var i=n.toLowerCase();ui[i]=ui[i+"s"]=ui[t]=n}function nt(n){return typeof n=="string"?ui[n]||ui[n.toLowerCase()]:undefined}function fu(n){var r={},i,t;for(t in n)l(n,t)&&(i=nt(t),i&&(r[i]=n[t]));return r}function b(n,t){eu[n]=t}function hh(n){var t=[],i;for(i in n)t.push({unit:i,priority:eu[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}function ct(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(fi[n]=u);t&&(fi[t[0]]=function(){return ct(u.apply(this,arguments),t[1],t[2])});i&&(fi[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function ch(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function lh(n){for(var t=n.match(fe),i=0,r=t.length;i<r;i++)t[i]=fi[t[i]]?fi[t[i]]:ch(t[i]);return function(i){for(var f="",u=0;u<r;u++)f+=ot(t[u])?t[u].call(i,n):t[u];return f}}function ur(n,t){return n.isValid()?(t=ee(t,n.localeData()),ou[t]=ou[t]||lh(t),ou[t](n)):n.localeData().invalidDate()}function ee(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(rr.lastIndex=0;i>=0&&rr.test(n);)n=n.replace(rr,r),rr.lastIndex=0,i-=1;return n}function i(n,t,i){cu[n]=ot(t)?t:function(n){return n&&i?i:t}}function vh(n,t){return l(cu,n)?cu[n](t._strict,t._locale):new RegExp(yh(n))}function yh(n){return gt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function gt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),dt(t)&&(r=function(n,i){i[t]=f(n)}),i=0;i<n.length;i++)cr[n[i]]=r}function yi(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function ph(n,t,i){t!=null&&l(cr,n)&&cr[n](t,i._a,i,n)}function pi(n){return lr(n)?366:365}function lr(n){return n%4==0&&n%100!=0||n%400==0}function kh(){return lr(this.year())}function ei(n,i){return function(r){return r!=null?(le(this,n,r),t.updateOffset(this,i),this):ar(this,n)}}function ar(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function le(n,t,i){n.isValid()&&!isNaN(i)&&(t==="FullYear"&&lr(n.year())&&n.month()===1&&n.date()===29?n._d["set"+(n._isUTC?"UTC":"")+t](i,n.month(),vr(i,n.month())):n._d["set"+(n._isUTC?"UTC":"")+t](i))}function dh(n){return(n=nt(n),ot(this[n]))?this[n]():this}function gh(n,t){var r,i;if(typeof n=="object")for(n=fu(n),r=hh(n),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit]);else if(n=nt(n),ot(this[n]))return this[n](t);return this}function nc(n,t){return(n%t+t)%t}function vr(n,t){if(isNaN(n)||isNaN(t))return NaN;var i=nc(t,12);return n+=(t-i)/12,i===1?lr(n)?29:28:31-i%7%2}function tc(n,t){return n?tt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||au).test(t)?"format":"standalone"][n.month()]:tt(this._months)?this._months:this._months.standalone}function ic(n,t){return n?tt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[au.test(t)?"format":"standalone"][n.month()]:tt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function rc(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=et([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?t==="MMM"?(r=a.call(this._shortMonthsParse,f),r!==-1?r:null):(r=a.call(this._longMonthsParse,f),r!==-1?r:null):t==="MMM"?(r=a.call(this._shortMonthsParse,f),r!==-1)?r:(r=a.call(this._longMonthsParse,f),r!==-1?r:null):(r=a.call(this._longMonthsParse,f),r!==-1)?r:(r=a.call(this._shortMonthsParse,f),r!==-1?r:null)}function uc(n,t,i){var r,u,f;if(this._monthsParseExact)return rc.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=et([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function ve(n,t){var i;if(!n.isValid())return n;if(typeof t=="string")if(/^\d+$/.test(t))t=f(t);else if(t=n.localeData().monthsParse(t),!dt(t))return n;return i=Math.min(n.date(),vr(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function ye(n){return n!=null?(ve(this,n),t.updateOffset(this,!0),this):ar(this,"Month")}function fc(){return vr(this.year(),this.month())}function ec(n){return this._monthsParseExact?(l(this,"_monthsRegex")||be.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=pe),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function oc(n){return this._monthsParseExact?(l(this,"_monthsRegex")||be.call(this),n?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=we),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function be(){function f(n,t){return t.length-n.length}for(var i=[],r=[],t=[],u,n=0;n<12;n++)u=et([2e3,n]),i.push(this.monthsShort(u,"")),r.push(this.months(u,"")),t.push(this.months(u,"")),t.push(this.monthsShort(u,""));for(i.sort(f),r.sort(f),t.sort(f),n=0;n<12;n++)i[n]=gt(i[n]),r[n]=gt(r[n]);for(n=0;n<24;n++)t[n]=gt(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function sc(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<100&&n>=0&&isFinite(o.getFullYear())&&o.setFullYear(n),o}function wi(n){var t=new Date(Date.UTC.apply(null,arguments));return n<100&&n>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function yr(n,t,i){var r=7+t-i,u=(7+wi(n,0,r).getUTCDay()-t)%7;return-u+r-1}function ke(n,t,i,r,u){var s=(7+i-r)%7,h=yr(n,r,u),f=1+7*(t-1)+s+h,e,o;return f<=0?(e=n-1,o=pi(e)+f):f>pi(n)?(e=n+1,o=f-pi(n)):(e=n,o=f),{year:e,dayOfYear:o}}function bi(n,t,i){var e=yr(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1,f,u;return r<1?(u=n.year()-1,f=r+ti(u,t,i)):r>ti(n.year(),t,i)?(f=r-ti(n.year(),t,i),u=n.year()+1):(u=n.year(),f=r),{week:f,year:u}}function ti(n,t,i){var r=yr(n,t,i),u=yr(n+1,t,i);return(pi(n)-r+u)/7}function hc(n){return bi(n,this._week.dow,this._week.doy).week}function cc(){return this._week.dow}function lc(){return this._week.doy}function ac(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function vc(n){var t=bi(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function yc(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function pc(n,t){return typeof n=="string"?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function wc(n,t){return n?tt(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]:tt(this._weekdays)?this._weekdays:this._weekdays.standalone}function bc(n){return n?this._weekdaysShort[n.day()]:this._weekdaysShort}function kc(n){return n?this._weekdaysMin[n.day()]:this._weekdaysMin}function dc(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=et([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?t==="dddd"?(r=a.call(this._weekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=a.call(this._shortWeekdaysParse,u),r!==-1?r:null):(r=a.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="dddd"?(r=a.call(this._weekdaysParse,u),r!==-1)?r:(r=a.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=a.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=a.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=a.call(this._weekdaysParse,u),r!==-1)?r:(r=a.call(this._minWeekdaysParse,u),r!==-1?r:null):(r=a.call(this._minWeekdaysParse,u),r!==-1)?r:(r=a.call(this._weekdaysParse,u),r!==-1)?r:(r=a.call(this._shortWeekdaysParse,u),r!==-1?r:null)}function gc(n,t,i){var r,u,f;if(this._weekdaysParseExact)return dc.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=et([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[r].test(n))||i&&t==="ddd"&&this._shortWeekdaysParse[r].test(n)||i&&t==="dd"&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function nl(n){if(!this.isValid())return n!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=yc(n,this.localeData()),this.add(n-t,"d")):t}function tl(n){if(!this.isValid())return n!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function il(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var t=pc(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function rl(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||pu.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=to),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function ul(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||pu.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=io),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function fl(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||pu.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ro),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function pu(){function u(n,t){return t.length-n.length}for(var e=[],i=[],r=[],t=[],f,o,s,h,n=0;n<7;n++)f=et([2e3,1]).day(n),o=this.weekdaysMin(f,""),s=this.weekdaysShort(f,""),h=this.weekdays(f,""),e.push(o),i.push(s),r.push(h),t.push(o),t.push(s),t.push(h);for(e.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=gt(i[n]),r[n]=gt(r[n]),t[n]=gt(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function wu(){return this.hours()%12||12}function el(){return this.hours()||24}function uo(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function fo(n,t){return t._meridiemParse}function ol(n){return(n+"").toLowerCase().charAt(0)==="p"}function sl(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function so(n){return n?n.toLowerCase().replace("_","-"):n}function cl(n){for(var r=0,i,t,f,u;r<n.length;){for(u=so(n[r]).split("-"),i=u.length,t=so(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=pr(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&pf(u,t,!0)>=i-1)break;i--}r++}return di}function pr(n){var t=null,i;if(!y[n]&&typeof module!="undefined"&&module&&module.exports)try{t=di._abbr;i=require;i("./locale/"+n);oi(t)}catch(r){}return y[n]}function oi(n,t){var i;return n&&(i=p(t)?wt(n):bu(n,t),i?di=i:typeof console!="undefined"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),di._abbr}function bu(n,t){if(t!==null){var r,i=oo;if(t.abbr=n,y[n]!=null)bf("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=y[n]._config;else if(t.parentLocale!=null)if(y[t.parentLocale]!=null)i=y[t.parentLocale]._config;else if(r=pr(t.parentLocale),r!=null)i=r._config;else return ki[t.parentLocale]||(ki[t.parentLocale]=[]),ki[t.parentLocale].push({name:n,config:t}),null;return y[n]=new uu(kf(i,t)),ki[n]&&ki[n].forEach(function(n){bu(n.name,n.config)}),oi(n),y[n]}return delete y[n],null}function ll(n,t){if(t!=null){var i,r,u=oo;r=pr(n);r!=null&&(u=r._config);t=kf(u,t);i=new uu(t);i.parentLocale=y[n];y[n]=i;oi(n)}else y[n]!=null&&(y[n].parentLocale!=null?y[n]=y[n].parentLocale:y[n]!=null&&delete y[n]);return y[n]}function wt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return di;if(!tt(n)){if(t=pr(n),t)return t;n=[n]}return cl(n)}function al(){return df(y)}function ku(n){var i,t=n._a;return t&&u(n).overflow===-2&&(i=t[lt]<0||t[lt]>11?lt:t[st]<1||t[st]>vr(t[it],t[lt])?st:t[v]<0||t[v]>24||t[v]===24&&(t[rt]!==0||t[at]!==0||t[ni]!==0)?v:t[rt]<0||t[rt]>59?rt:t[at]<0||t[at]>59?at:t[ni]<0||t[ni]>999?ni:-1,u(n)._overflowDayOfYear&&(i<it||i>st)&&(i=st),u(n)._overflowWeeks&&i===-1&&(i=wh),u(n)._overflowWeekday&&i===-1&&(i=bh),u(n).overflow=i),n}function si(n,t,i){return n!=null?n:t!=null?t:i}function vl(n){var i=new Date(t.now());return n._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function du(n){var t,i,r=[],f,o,e;if(!n._d){for(f=vl(n),n._w&&n._a[st]==null&&n._a[lt]==null&&yl(n),n._dayOfYear!=null&&(e=si(n._a[it],f[it]),(n._dayOfYear>pi(e)||n._dayOfYear===0)&&(u(n)._overflowDayOfYear=!0),i=wi(e,0,n._dayOfYear),n._a[lt]=i.getUTCMonth(),n._a[st]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=f[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[v]===24&&n._a[rt]===0&&n._a[at]===0&&n._a[ni]===0&&(n._nextDay=!0,n._a[v]=0);n._d=(n._useUTC?wi:sc).apply(null,r);o=n._useUTC?n._d.getUTCDay():n._d.getDay();n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[v]=24);n._w&&typeof n._w.d!="undefined"&&n._w.d!==o&&(u(n).weekdayMismatch=!0)}}function yl(n){var t,o,f,i,r,e,h,s,l;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(r=1,e=4,o=si(t.GG,n._a[it],bi(c(),1,4).year),f=si(t.W,1),i=si(t.E,1),(i<1||i>7)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,l=bi(c(),r,e),o=si(t.gg,n._a[it],l.year),f=si(t.w,l.week),t.d!=null?(i=t.d,(i<0||i>6)&&(s=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);f<1||f>ti(o,r,e)?u(n)._overflowWeeks=!0:s!=null?u(n)._overflowWeekday=!0:(h=ke(o,f,i,r,e),n._a[it]=h.year,n._dayOfYear=h.dayOfYear)}function ho(n){var t,r,o=n._i,i=pl.exec(o)||wl.exec(o),s,e,f,h;if(i){for(u(n).iso=!0,t=0,r=wr.length;t<r;t++)if(wr[t][1].exec(i[1])){e=wr[t][0];s=wr[t][2]!==!1;break}if(e==null){n._isValid=!1;return}if(i[3]){for(t=0,r=gu.length;t<r;t++)if(gu[t][1].exec(i[3])){f=(i[2]||" ")+gu[t][0];break}if(f==null){n._isValid=!1;return}}if(!s&&f!=null){n._isValid=!1;return}if(i[4])if(bl.exec(i[4]))h="Z";else{n._isValid=!1;return}n._f=e+(f||"")+(h||"");nf(n)}else n._isValid=!1}function dl(n,t,i,r,u,f){var e=[gl(n),vu.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10)];return f&&e.push(parseInt(f,10)),e}function gl(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}function na(n){return n.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function ta(n,t,i){if(n){var r=yu.indexOf(n),f=new Date(t[0],t[1],t[2]).getDay();if(r!==f)return u(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function ia(n,t,i){if(n)return lo[n];if(t)return 0;var r=parseInt(i,10),u=r%100,f=(r-u)/100;return f*60+u}function ao(n){var t=co.exec(na(n._i)),i;if(t){if(i=dl(t[4],t[3],t[2],t[5],t[6],t[7]),!ta(t[1],i,n))return;n._a=i;n._tzm=ia(t[8],t[9],t[10]);n._d=wi.apply(null,n._a);n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);u(n).rfc2822=!0}else n._isValid=!1}function ra(n){var i=kl.exec(n._i);if(i!==null){n._d=new Date(+i[1]);return}if(ho(n),n._isValid===!1)delete n._isValid;else return;if(ao(n),n._isValid===!1)delete n._isValid;else return;t.createFromInputFallback(n)}function nf(n){if(n._f===t.ISO_8601){ho(n);return}if(n._f===t.RFC_2822){ao(n);return}n._a=[];u(n).empty=!0;for(var i=""+n._i,r,f,s,c=i.length,h=0,o=ee(n._f,n._locale).match(fe)||[],e=0;e<o.length;e++)f=o[e],r=(i.match(vh(f,n))||[])[0],r&&(s=i.substr(0,i.indexOf(r)),s.length>0&&u(n).unusedInput.push(s),i=i.slice(i.indexOf(r)+r.length),h+=r.length),fi[f]?(r?u(n).empty=!1:u(n).unusedTokens.push(f),ph(f,r,n)):n._strict&&!r&&u(n).unusedTokens.push(f);u(n).charsLeftOver=c-h;i.length>0&&u(n).unusedInput.push(i);n._a[v]<=12&&u(n).bigHour===!0&&n._a[v]>0&&(u(n).bigHour=undefined);u(n).parsedDateParts=n._a.slice(0);u(n).meridiem=n._meridiem;n._a[v]=ua(n._locale,n._a[v],n._meridiem);du(n);ku(n)}function ua(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function fa(n){var t,e,f,r,i;if(n._f.length===0){u(n).invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=iu({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[r],nf(t),tu(t))&&(i+=u(t).charsLeftOver,i+=u(t).unusedTokens.length*10,u(t).score=i,(f==null||i<f)&&(f=i,e=t));yt(n,e||t)}function ea(n){if(!n._d){var t=fu(n._i);n._a=vf([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});du(n)}}function oa(n){var t=new ai(ku(vo(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function vo(n){var t=n._i,i=n._f;return(n._locale=n._locale||wt(n._l),t===null||i===undefined&&t==="")?nr({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),pt(t))?new ai(ku(t)):(gi(t)?n._d=t:tt(i)?fa(n):i?nf(n):sa(n),tu(n)||(n._d=null),n)}function sa(n){var i=n._i;p(i)?n._d=new Date(t.now()):gi(i)?n._d=new Date(i.valueOf()):typeof i=="string"?ra(n):tt(i)?(n._a=vf(i.slice(0),function(n){return parseInt(n,10)}),du(n)):li(i)?ea(n):dt(i)?n._d=new Date(i):t.createFromInputFallback(n)}function yo(n,t,i,r,u){var f={};return(i===!0||i===!1)&&(r=i,i=undefined),(li(n)&&nh(n)||tt(n)&&n.length===0)&&(n=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,oa(f)}function c(n,t,i,r){return yo(n,t,i,r,!1)}function bo(n,t){var r,i;if(t.length===1&&tt(t[0])&&(t=t[0]),!t.length)return c();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function ha(){var n=[].slice.call(arguments,0);return bo("isBefore",n)}function ca(){var n=[].slice.call(arguments,0);return bo("isAfter",n)}function la(n){var i,r,t;for(i in n)if(!(a.call(hi,i)!==-1&&(n[i]==null||!isNaN(n[i]))))return!1;for(r=!1,t=0;t<hi.length;++t)if(n[hi[t]]){if(r)return!1;parseFloat(n[hi[t]])!==f(n[hi[t]])&&(r=!0)}return!0}function aa(){return this._isValid}function va(){return ut(NaN)}function br(n){var t=fu(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._isValid=la(t);this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._locale=wt();this._bubble()}function tf(n){return n instanceof br}function rf(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function go(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+ct(~~(n/60),2)+t+ct(~~n%60,2)})}function uf(n,t){var i=(t||"").match(n);if(i===null)return null;var e=i[i.length-1]||[],r=(e+"").match(ns)||["-",0,0],u=+(r[1]*60)+f(r[2]);return u===0?0:r[0]==="+"?u:-u}function ff(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(pt(n)||gi(n)?n.valueOf():c(n).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),t.updateOffset(r,!1),r):c(n).local()}function ef(n){return-Math.round(n._d.getTimezoneOffset()/15)*15}function ya(n,i,r){var u=this._offset||0,f;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=uf(hr,n),n===null)return this}else Math.abs(n)<16&&!r&&(n=n*60);return!this._isUTC&&i&&(f=ef(this)),this._offset=n,this._isUTC=!0,f!=null&&this.add(f,"m"),u!==n&&(!i||this._changeInProgress?es(this,ut(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?u:ef(this)}function pa(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function wa(n){return this.utcOffset(0,n)}function ba(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(ef(this),"m")),this}function ka(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=uf(ah,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function da(n){return this.isValid()?(n=n?c(n).utcOffset():0,(this.utcOffset()-n)%60==0):!1}function ga(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function nv(){var n,t;return p(this._isDSTShifted)?(n={},iu(n,this),n=vo(n),n._a?(t=n._isUTC?et(n._a):c(n._a),this._isDSTShifted=this.isValid()&&pf(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted}function tv(){return this.isValid()?!this._isUTC:!1}function iv(){return this.isValid()?this._isUTC:!1}function ts(){return this.isValid()?this._isUTC&&this._offset===0:!1}function ut(n,t){var i=n,r=null,u,e,o;return tf(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:dt(n)?(i={},t?i[t]=n:i.milliseconds=n):(r=is.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:f(r[st])*u,h:f(r[v])*u,m:f(r[rt])*u,s:f(r[at])*u,ms:f(rf(r[ni]*1e3))*u}):(r=rs.exec(n))?(u=r[1]==="-"?-1:r[1]==="+"?1:1,i={y:ii(r[2],u),M:ii(r[3],u),w:ii(r[4],u),d:ii(r[5],u),h:ii(r[6],u),m:ii(r[7],u),s:ii(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(o=rv(c(i.from),c(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),e=new br(i),tf(n)&&l(n,"_locale")&&(e._locale=n._locale),e}function ii(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function us(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function rv(n,t){var i;return(n.isValid()&&t.isValid())?(t=ff(t,n),n.isBefore(t)?i=us(n,t):(i=us(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function fs(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(bf(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),i=typeof i=="string"?+i:i,u=ut(i,r),es(this,u,n),this}}function es(n,i,r,u){var o=i._milliseconds,f=rf(i._days),e=rf(i._months);n.isValid()&&(u=u==null?!0:u,e&&ve(n,ar(n,"Month")+e*r),f&&le(n,"Date",ar(n,"Date")+f*r),o&&n._d.setTime(n._d.valueOf()+o*r),u&&t.updateOffset(n,f||e))}function uv(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function fv(n,i){var u=n||c(),f=ff(u,this).startOf("day"),r=t.calendarFormat(this,f)||"sameElse",e=i&&(ot(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,c(u)))}function ev(){return new ai(this)}function ov(n,t){var i=pt(n)?n:c(n);return(this.isValid()&&i.isValid())?(t=nt(p(t)?"millisecond":t),t==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf()):!1}function sv(n,t){var i=pt(n)?n:c(n);return(this.isValid()&&i.isValid())?(t=nt(p(t)?"millisecond":t),t==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf()):!1}function hv(n,t,i,r){return r=r||"()",(r[0]==="("?this.isAfter(n,i):!this.isBefore(n,i))&&(r[1]===")"?this.isBefore(t,i):!this.isAfter(t,i))}function cv(n,t){var i=pt(n)?n:c(n),r;return(this.isValid()&&i.isValid())?(t=nt(t||"millisecond"),t==="millisecond"?this.valueOf()===i.valueOf():(r=i.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function lv(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function av(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function vv(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(r=ff(n,this),!r.isValid())return NaN;f=(r.utcOffset()-this.utcOffset())*6e4;t=nt(t);switch(t){case"year":u=of(this,r)/12;break;case"month":u=of(this,r);break;case"quarter":u=of(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:d(u)}function of(n,t){var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)||0}function yv(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function pv(n){if(!this.isValid())return null;var i=n!==!0,t=i?this.clone().utc():this;return t.year()<0||t.year()>9999?ur(t,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ot(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*6e4).toISOString().replace("Z",ur(t,"Z")):ur(t,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function wv(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment";t="";this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)}function bv(n){n||(n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=ur(this,n);return this.localeData().postformat(i)}function kv(n,t){return this.isValid()&&(pt(n)&&n.isValid()||c(n).isValid())?ut({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dv(n){return this.from(c(),n)}function gv(n,t){return this.isValid()&&(pt(n)&&n.isValid()||c(n).isValid())?ut({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ny(n){return this.to(c(),n)}function hs(n){var t;return n===undefined?this._locale._abbr:(t=wt(n),t!=null&&(this._locale=t),this)}function cs(){return this._locale}function ty(n){n=nt(n);switch(n){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return n==="week"&&this.weekday(0),n==="isoWeek"&&this.isoWeekday(1),n==="quarter"&&this.month(Math.floor(this.month()/3)*3),this}function iy(n){return(n=nt(n),n===undefined||n==="millisecond")?this:(n==="date"&&(n="day"),this.startOf(n).add(1,n==="isoWeek"?"week":n).subtract(1,"ms"))}function ry(){return this._d.valueOf()-(this._offset||0)*6e4}function uy(){return Math.floor(this.valueOf()/1e3)}function fy(){return new Date(this.valueOf())}function ey(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function oy(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function sy(){return this.isValid()?this.toISOString():null}function hy(){return tu(this)}function cy(){return yt({},u(this))}function ly(){return u(this).overflow}function ay(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function kr(n,t){r(0,[n,n.length],0,t)}function vy(n){return ls.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function yy(n){return ls.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function py(){return ti(this.year(),1,4)}function wy(){var n=this.localeData()._week;return ti(this.year(),n.dow,n.doy)}function ls(n,t,i,r,u){var f;return n==null?bi(this,r,u).year:(f=ti(n,r,u),t>f&&(t=f),by.call(this,n,t,i,r,u))}function by(n,t,i,r,u){var e=ke(n,t,i,r,u),f=wi(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function ky(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function dy(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function gy(n,t){t[ni]=f(("0."+n)*1e3)}function np(){return this._isUTC?"UTC":""}function tp(){return this._isUTC?"Coordinated Universal Time":""}function ip(n){return c(n*1e3)}function rp(){return c.apply(null,arguments).parseZone()}function ps(n){return n}function dr(n,t,i,r){var u=wt(),f=et().set(r,t);return u[i](f,n)}function ws(n,t,i){if(dt(n)&&(t=n,n=undefined),n=n||"",t!=null)return dr(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=dr(n,r,i,"month");return u}function cf(n,t,i,r){var o,f,u,e;if(typeof n=="boolean"?(dt(t)&&(i=t,t=undefined),t=t||""):(t=n,i=t,n=!1,dt(t)&&(i=t,t=undefined),t=t||""),o=wt(),f=n?o._week.dow:0,i!=null)return dr(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=dr(t,(u+f)%7,r,"day");return e}function up(n,t){return ws(n,t,"months")}function fp(n,t){return ws(n,t,"monthsShort")}function ep(n,t,i){return cf(n,t,i,"weekdays")}function op(n,t,i){return cf(n,t,i,"weekdaysShort")}function sp(n,t,i){return cf(n,t,i,"weekdaysMin")}function hp(){var n=this._data;return this._milliseconds=ht(this._milliseconds),this._days=ht(this._days),this._months=ht(this._months),n.milliseconds=ht(n.milliseconds),n.seconds=ht(n.seconds),n.minutes=ht(n.minutes),n.hours=ht(n.hours),n.months=ht(n.months),n.years=ht(n.years),this}function bs(n,t,i,r){var u=ut(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function cp(n,t){return bs(this,n,t,1)}function lp(n,t){return bs(this,n,t,-1)}function ks(n){return n<0?Math.floor(n):Math.ceil(n)}function ap(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=ks(lf(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=d(r/1e3),i.seconds=u%60,f=d(u/60),i.minutes=f%60,e=d(f/60),i.hours=e%24,n+=d(e/24),o=d(ds(n)),t+=o,n-=ks(lf(o)),s=d(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function ds(n){return n*4800/146097}function lf(n){return n*146097/4800}function vp(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(n=nt(n),n==="month"||n==="year")return t=this._days+i/864e5,r=this._months+ds(t),n==="month"?r:r/12;t=this._days+Math.round(lf(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}function yp(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+f(this._months/12)*31536e6:NaN}function kt(n){return function(){return this.as(n)}}function iw(){return ut(this)}function rw(n){return n=nt(n),this.isValid()?this[n+"s"]():NaN}function ri(n){return function(){return this.isValid()?this._data[n]:NaN}}function lw(){return d(this.days()/7)}function aw(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function vw(n,t,i){var r=ut(n).abs(),u=vt(r.as("s")),e=vt(r.as("m")),o=vt(r.as("h")),s=vt(r.as("d")),h=vt(r.as("M")),c=vt(r.as("y")),f=u<=ft.ss&&["s",u]||u<ft.s&&["ss",u]||e<=1&&["m"]||e<ft.m&&["mm",e]||o<=1&&["h"]||o<ft.h&&["hh",o]||s<=1&&["d"]||s<ft.d&&["dd",s]||h<=1&&["M"]||h<ft.M&&["MM",h]||c<=1&&["y"]||["yy",c];return f[2]=t,f[3]=+n>0,f[4]=i,aw.apply(null,f)}function yw(n){return n===undefined?vt:typeof n=="function"?(vt=n,!0):!1}function pw(n,t){return ft[n]===undefined?!1:t===undefined?ft[n]:(ft[n]=t,n==="s"&&(ft.ss=t-1),!0)}function ww(n){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),i=vw(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function ci(n){return(n>0)-(n<0)||+n}function nu(){if(!this.isValid())return this.localeData().invalidDate();var t=gr(this._milliseconds)/1e3,y=gr(this._days),r=gr(this._months),i,s,h;i=d(t/60);s=d(i/60);t%=60;i%=60;h=d(r/12);r%=12;var c=h,l=r,a=y,u=s,f=i,e=t?t.toFixed(3).replace(/\.?0+$/,""):"",n=this.asSeconds();if(!n)return"P0D";var p=n<0?"-":"",v=ci(this._months)!==ci(n)?"-":"",w=ci(this._days)!==ci(n)?"-":"",o=ci(this._milliseconds)!==ci(n)?"-":"";return p+"P"+(c?v+c+"Y":"")+(l?v+l+"M":"")+(a?w+a+"D":"")+(u||f||e?"T":"")+(u?o+u+"H":"")+(f?o+f+"M":"")+(e?o+e+"S":"")}var af,yf,tr,ir,ru,df,gf,ne,te,ie,re,ue,ui,eu,cr,lu,a,au,ae,vu,pe,we,de,ge,yu,no,to,io,ro,eo,co,lo,po,wo,ko,hi,ns,is,rs,os,ss,sf,hf,as,vs,bt,ys,n,o,ht,vt,ft,gr,e;yf=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};tr=t.momentProperties=[];ir=!1;ru={};t.suppressDeprecationWarnings=!1;t.deprecationHandler=null;df=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)l(n,t)&&i.push(t);return i};gf={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};ne={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};te="Invalid date";ie="%d";re=/\d{1,2}/;ue={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};ui={};eu={};var fe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,rr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ou={},fi={};var oe=/\d/,k=/\d\d/,se=/\d{3}/,su=/\d{4}/,fr=/[+-]?\d{6}/,s=/\d\d?/,he=/\d\d\d\d?/,ce=/\d\d\d\d\d\d?/,er=/\d{1,3}/,hu=/\d{1,4}/,or=/[+-]?\d{1,6}/,sr=/[+-]?\d+/,ah=/Z|[+-]\d\d:?\d\d/gi,hr=/Z|[+-]\d\d(?::?\d\d)?/gi,vi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,cu={};cr={};var it=0,lt=1,st=2,v=3,rt=4,at=5,ni=6,wh=7,bh=8;r("Y",0,0,function(){var n=this.year();return n<=9999?""+n:"+"+n});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");w("year","y");b("year",1);i("Y",sr);i("YY",s,k);i("YYYY",hu,su);i("YYYYY",or,fr);i("YYYYYY",or,fr);h(["YYYYY","YYYYYY"],it);h("YYYY",function(n,i){i[it]=n.length===2?t.parseTwoDigitYear(n):f(n)});h("YY",function(n,i){i[it]=t.parseTwoDigitYear(n)});h("Y",function(n,t){t[it]=parseInt(n,10)});t.parseTwoDigitYear=function(n){return f(n)+(f(n)>68?1900:2e3)};lu=ei("FullYear",!0);a=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});w("month","M");b("month",8);i("M",s);i("MM",s,k);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});h(["M","MM"],function(n,t){t[lt]=f(n)-1});h(["MMM","MMMM"],function(n,t,i,r){var f=i._locale.monthsParse(n,r,i._strict);f!=null?t[lt]=f:u(i).invalidMonth=n});au=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;ae="January_February_March_April_May_June_July_August_September_October_November_December".split("_");vu="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");pe=vi;we=vi;r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");w("week","w");w("isoWeek","W");b("week",5);b("isoWeek",5);i("w",s);i("ww",s,k);i("W",s);i("WW",s,k);yi(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=f(n)});de={dow:0,doy:6};r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");w("day","d");w("weekday","e");w("isoWeekday","E");b("day",11);b("weekday",11);b("isoWeekday",11);i("d",s);i("e",s);i("E",s);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});yi(["dd","ddd","dddd"],function(n,t,i,r){var f=i._locale.weekdaysParse(n,r,i._strict);f!=null?t.d=f:u(i).invalidWeekday=n});yi(["d","e","E"],function(n,t,i,r){t[r]=f(n)});ge="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");yu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");no="Su_Mo_Tu_We_Th_Fr_Sa".split("_");to=vi;io=vi;ro=vi;r("H",["HH",2],0,"hour");r("h",["hh",2],0,wu);r("k",["kk",2],0,el);r("hmm",0,0,function(){return""+wu.apply(this)+ct(this.minutes(),2)});r("hmmss",0,0,function(){return""+wu.apply(this)+ct(this.minutes(),2)+ct(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+ct(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+ct(this.minutes(),2)+ct(this.seconds(),2)});uo("a",!0);uo("A",!1);w("hour","h");b("hour",13);i("a",fo);i("A",fo);i("H",s);i("h",s);i("k",s);i("HH",s,k);i("hh",s,k);i("kk",s,k);i("hmm",he);i("hmmss",ce);i("Hmm",he);i("Hmmss",ce);h(["H","HH"],v);h(["k","kk"],function(n,t){var i=f(n);t[v]=i===24?0:i});h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});h(["h","hh"],function(n,t,i){t[v]=f(n);u(i).bigHour=!0});h("hmm",function(n,t,i){var r=n.length-2;t[v]=f(n.substr(0,r));t[rt]=f(n.substr(r));u(i).bigHour=!0});h("hmmss",function(n,t,i){var r=n.length-4,e=n.length-2;t[v]=f(n.substr(0,r));t[rt]=f(n.substr(r,2));t[at]=f(n.substr(e));u(i).bigHour=!0});h("Hmm",function(n,t){var i=n.length-2;t[v]=f(n.substr(0,i));t[rt]=f(n.substr(i))});h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[v]=f(n.substr(0,i));t[rt]=f(n.substr(i,2));t[at]=f(n.substr(r))});eo=/[ap]\.?m?\.?/i;var hl=ei("Hours",!0),oo={calendar:gf,longDateFormat:ne,invalidDate:te,ordinal:ie,dayOfMonthOrdinalParse:re,relativeTime:ue,months:ae,monthsShort:vu,week:de,weekdays:ge,weekdaysMin:no,weekdaysShort:yu,meridiemParse:eo},y={},ki={},di;var pl=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wl=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bl=/Z|[+-]\d\d(?::?\d\d)?/,wr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],gu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],kl=/^\/?Date\((\-?\d+)/i;for(co=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,lo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},t.createFromInputFallback=g("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){},po=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:nr()}),wo=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:nr()}),ko=function(){return Date.now?Date.now():+new Date},hi=["year","quarter","month","week","day","hour","minute","second","millisecond"],go("Z",":"),go("ZZ",""),i("Z",hr),i("ZZ",hr),h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=uf(hr,n)}),ns=/([\+\-]|\d\d)/gi,t.updateOffset=function(){},is=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,rs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,ut.fn=br.prototype,ut.invalid=va,os=fs(1,"add"),ss=fs(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",sf=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),kr("gggg","weekYear"),kr("ggggg","weekYear"),kr("GGGG","isoWeekYear"),kr("GGGGG","isoWeekYear"),w("weekYear","gg"),w("isoWeekYear","GG"),b("weekYear",1),b("isoWeekYear",1),i("G",sr),i("g",sr),i("GG",s,k),i("gg",s,k),i("GGGG",hu,su),i("gggg",hu,su),i("GGGGG",or,fr),i("ggggg",or,fr),yi(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),yi(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),w("quarter","Q"),b("quarter",7),i("Q",oe),h("Q",function(n,t){t[lt]=(f(n)-1)*3}),r("D",["DD",2],"Do","date"),w("date","D"),b("date",9),i("D",s),i("DD",s,k),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),h(["D","DD"],st),h("Do",function(n,t){t[st]=f(n.match(s)[0])}),hf=ei("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),w("dayOfYear","DDD"),b("dayOfYear",4),i("DDD",er),i("DDDD",se),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),w("minute","m"),b("minute",14),i("m",s),i("mm",s,k),h(["m","mm"],rt),as=ei("Minutes",!1),r("s",["ss",2],0,"second"),w("second","s"),b("second",15),i("s",s),i("ss",s,k),h(["s","ss"],at),vs=ei("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("millisecond","ms"),b("millisecond",16),i("S",er,oe),i("SS",er,k),i("SSS",er,se),bt="SSSS";bt.length<=9;bt+="S")i(bt,/\d+/);for(bt="S";bt.length<=9;bt+="S")h(bt,gy);ys=ei("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=ai.prototype;n.add=os;n.calendar=fv;n.clone=ev;n.diff=vv;n.endOf=iy;n.format=bv;n.from=kv;n.fromNow=dv;n.to=gv;n.toNow=ny;n.get=dh;n.invalidAt=ly;n.isAfter=ov;n.isBefore=sv;n.isBetween=hv;n.isSame=cv;n.isSameOrAfter=lv;n.isSameOrBefore=av;n.isValid=hy;n.lang=sf;n.locale=hs;n.localeData=cs;n.max=wo;n.min=po;n.parsingFlags=cy;n.set=gh;n.startOf=ty;n.subtract=ss;n.toArray=ey;n.toObject=oy;n.toDate=fy;n.toISOString=pv;n.inspect=wv;n.toJSON=sy;n.toString=yv;n.unix=uy;n.valueOf=ry;n.creationData=ay;n.year=lu;n.isLeapYear=kh;n.weekYear=vy;n.isoWeekYear=yy;n.quarter=n.quarters=ky;n.month=ye;n.daysInMonth=fc;n.week=n.weeks=ac;n.isoWeek=n.isoWeeks=vc;n.weeksInYear=wy;n.isoWeeksInYear=py;n.date=hf;n.day=n.days=nl;n.weekday=tl;n.isoWeekday=il;n.dayOfYear=dy;n.hour=n.hours=hl;n.minute=n.minutes=as;n.second=n.seconds=vs;n.millisecond=n.milliseconds=ys;n.utcOffset=ya;n.utc=wa;n.local=ba;n.parseZone=ka;n.hasAlignedHourOffset=da;n.isDST=ga;n.isLocal=tv;n.isUtcOffset=iv;n.isUtc=ts;n.isUTC=ts;n.zoneAbbr=np;n.zoneName=tp;n.dates=g("dates accessor is deprecated. Use date instead.",hf);n.months=g("months accessor is deprecated. Use month instead",ye);n.years=g("years accessor is deprecated. Use year instead",lu);n.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",pa);n.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",nv);o=uu.prototype;o.calendar=rh;o.longDateFormat=uh;o.invalidDate=fh;o.ordinal=eh;o.preparse=ps;o.postformat=ps;o.relativeTime=oh;o.pastFuture=sh;o.set=ih;o.months=tc;o.monthsShort=ic;o.monthsParse=uc;o.monthsRegex=oc;o.monthsShortRegex=ec;o.week=hc;o.firstDayOfYear=lc;o.firstDayOfWeek=cc;o.weekdays=wc;o.weekdaysMin=kc;o.weekdaysShort=bc;o.weekdaysParse=gc;o.weekdaysRegex=rl;o.weekdaysShortRegex=ul;o.weekdaysMinRegex=fl;o.isPM=ol;o.meridiem=sl;oi("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=f(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});t.lang=g("moment.lang is deprecated. Use moment.locale instead.",oi);t.langData=g("moment.langData is deprecated. Use moment.localeData instead.",wt);ht=Math.abs;var pp=kt("ms"),wp=kt("s"),bp=kt("m"),kp=kt("h"),dp=kt("d"),gp=kt("w"),nw=kt("M"),tw=kt("y");var uw=ri("milliseconds"),fw=ri("seconds"),ew=ri("minutes"),ow=ri("hours"),sw=ri("days"),hw=ri("months"),cw=ri("years");return vt=Math.round,ft={ss:44,s:45,m:45,h:22,d:26,M:11},gr=Math.abs,e=br.prototype,e.isValid=aa,e.abs=hp,e.add=cp,e.subtract=lp,e.as=vp,e.asMilliseconds=pp,e.asSeconds=wp,e.asMinutes=bp,e.asHours=kp,e.asDays=dp,e.asWeeks=gp,e.asMonths=nw,e.asYears=tw,e.valueOf=yp,e._bubble=ap,e.clone=iw,e.get=rw,e.milliseconds=uw,e.seconds=fw,e.minutes=ew,e.hours=ow,e.days=sw,e.weeks=lw,e.months=hw,e.years=cw,e.humanize=ww,e.toISOString=nu,e.toString=nu,e.toJSON=nu,e.locale=hs,e.localeData=cs,e.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nu),e.lang=sf,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",sr),i("X",/[+-]?\d+(\.\d{1,3})?/),h("X",function(n,t,i){i._d=new Date(parseFloat(n,10)*1e3)}),h("x",function(n,t,i){i._d=new Date(f(n))}),t.version="2.22.1",gs(c),t.fn=n,t.min=ha,t.max=ca,t.now=ko,t.utc=et,t.unix=ip,t.months=up,t.isDate=gi,t.locale=oi,t.invalid=nr,t.duration=ut,t.isMoment=pt,t.weekdays=ep,t.parseZone=rp,t.localeData=wt,t.isDuration=tf,t.monthsShort=fp,t.weekdaysMin=sp,t.defineLocale=bu,t.updateLocale=ll,t.locales=al,t.weekdaysShort=op,t.normalizeUnits=nt,t.relativeTimeRounding=yw,t.relativeTimeThreshold=pw,t.calendarFormat=uv,t.prototype=n,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},t}),!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t(n.bootstrap={},n.jQuery,n.Popper)}(this,function(n,t,i){"use strict";function uf(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function nt(n,t,i){return t&&uf(n.prototype,t),i&&uf(n,i),n}function v(n){for(var i,r,t=1;t<arguments.length;t++)i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i),"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable}))),r.forEach(function(t){var r,u,f;r=n;f=i[u=t];u in r?Object.defineProperty(r,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):r[u]=f});return n}t=t&&t.hasOwnProperty("default")?t.default:t;i=i&&i.hasOwnProperty("default")?i.default:i;var y,ti,hr,cr,ff,lr,ef,of,sf,at,c,ii,ar,vr,yr,hf,ri,cf,lf,hu,af,vf,yf,cu,lu,ui,f,vt,ki,tt,au,pf,pr,wf,di,gi,bf,kf,it,df,ot,gf,ne,te,ie,re,rt,yt,s,pt,wt,fi,ue,wr,fe,ei,st,nr,tr,br,vu,ee,kr,oi,e,bt,ir,ut,dr,oe,se,b,yu,ht,he,ce,le,pu,ae,rr,ve,gr,ye,pe,we,be,ke,de,ge,no,to,io,et,r,kt,ur,w,ro,nu,uo,a,fo,eo,wu,dt,fr,ft,si,u,ct,tu,k,oo,bu,so,ho,co,lo,hi,iu,ao,ci,li,vo,yo,ai,ru,po,wo,er,g,gt,uu,d,bo,ku,ko,go,ns,ts,is,rs,us,fs,or,l,lt,fu,sr,es,du,os,eu,ss,ni,p,hs,gu,vi,h,ou,yi,cs,pi,ls,wi,as,vs,nf,ys,ps,tf,rf,ws,bs,ks,bi,o=function(n){function r(i){var u=this,r=!1;return n(this).one(t.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||t.triggerTransitionEnd(u)},i),this}var i="transitionend",t={TRANSITION_END:"bsTransitionEnd",getUID:function(n){for(;n+=~~(1e6*Math.random()),document.getElementById(n););return n},getSelectorFromElement:function(t){var i=t.getAttribute("data-target");i&&"#"!==i||(i=t.getAttribute("href")||"");try{return 0<n(document).find(i).length?i:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var i=n(t).css("transition-duration");return parseFloat(i)?(i=i.split(",")[0],1e3*parseFloat(i)):0},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(t){n(t).trigger(i)},supportsTransitionEnd:function(){return Boolean(i)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,i,r){var u,s;for(u in r)if(Object.prototype.hasOwnProperty.call(r,u)){var e=r[u],f=i[u],o=f&&t.isElement(f)?"element":(s=f,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(e).test(o))throw new Error(n.toUpperCase()+': Option "'+u+'" provided type "'+o+'" but expected type "'+e+'".');}}};return n.fn.emulateTransitionEnd=r,n.event.special[t.TRANSITION_END]={bindType:i,delegateType:i,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},t}(t),ds=(ti="alert",cr="."+(hr="bs.alert"),ff=(y=t).fn[ti],lr={CLOSE:"close"+cr,CLOSED:"closed"+cr,CLICK_DATA_API:"click"+cr+".data-api"},ef="alert",of="fade",sf="show",at=function(){function n(n){this._element=n}var t=n.prototype;return t.close=function(n){var t=this._element;n&&(t=this._getRootElement(n));this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){y.removeData(this._element,hr);this._element=null},t._getRootElement=function(n){var i=o.getSelectorFromElement(n),t=!1;return i&&(t=y(i)[0]),t||(t=y(n).closest("."+ef)[0]),t},t._triggerCloseEvent=function(n){var t=y.Event(lr.CLOSE);return y(n).trigger(t),t},t._removeElement=function(n){var i=this,t;(y(n).removeClass(sf),y(n).hasClass(of))?(t=o.getTransitionDurationFromElement(n),y(n).one(o.TRANSITION_END,function(t){return i._destroyElement(n,t)}).emulateTransitionEnd(t)):this._destroyElement(n)},t._destroyElement=function(n){y(n).detach().trigger(lr.CLOSED).remove()},n._jQueryInterface=function(t){return this.each(function(){var r=y(this),i=r.data(hr);i||(i=new n(this),r.data(hr,i));"close"===t&&i[t](this)})},n._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},nt(n,null,[{key:"VERSION",get:function(){return"4.1.1"}}]),n}(),y(document).on(lr.CLICK_DATA_API,'[data-dismiss="alert"]',at._handleDismiss(new at)),y.fn[ti]=at._jQueryInterface,y.fn[ti].Constructor=at,y.fn[ti].noConflict=function(){return y.fn[ti]=ff,at._jQueryInterface},at),gs=(ii="button",vr="."+(ar="bs.button"),yr=".data-api",hf=(c=t).fn[ii],ri="active",cf="btn",hu='[data-toggle^="button"]',af='[data-toggle="buttons"]',vf="input",yf=".active",cu=".btn",lu={CLICK_DATA_API:"click"+vr+yr,FOCUS_BLUR_DATA_API:(lf="focus")+vr+yr+" blur"+vr+yr},ui=function(){function n(n){this._element=n}var t=n.prototype;return t.toggle=function(){var i=!0,u=!0,t=c(this._element).closest(af)[0],n,r;if(t&&(n=c(this._element).find(vf)[0],n)){if("radio"===n.type&&(n.checked&&c(this._element).hasClass(ri)?i=!1:(r=c(t).find(yf)[0],r&&c(r).removeClass(ri))),i){if(n.hasAttribute("disabled")||t.hasAttribute("disabled")||n.classList.contains("disabled")||t.classList.contains("disabled"))return;n.checked=!c(this._element).hasClass(ri);c(n).trigger("change")}n.focus();u=!1}u&&this._element.setAttribute("aria-pressed",!c(this._element).hasClass(ri));i&&c(this._element).toggleClass(ri)},t.dispose=function(){c.removeData(this._element,ar);this._element=null},n._jQueryInterface=function(t){return this.each(function(){var i=c(this).data(ar);i||(i=new n(this),c(this).data(ar,i));"toggle"===t&&i[t]()})},nt(n,null,[{key:"VERSION",get:function(){return"4.1.1"}}]),n}(),c(document).on(lu.CLICK_DATA_API,hu,function(n){n.preventDefault();var t=n.target;c(t).hasClass(cf)||(t=c(t).closest(cu));ui._jQueryInterface.call(c(t),"toggle")}).on(lu.FOCUS_BLUR_DATA_API,hu,function(n){var t=c(n.target).closest(cu)[0];c(t).toggleClass(lf,/^focus(in)?$/.test(n.type))}),c.fn[ii]=ui._jQueryInterface,c.fn[ii].Constructor=ui,c.fn[ii].noConflict=function(){return c.fn[ii]=hf,ui._jQueryInterface},ui),nh=(vt="carousel",tt="."+(ki="bs.carousel"),au=".data-api",pf=(f=t).fn[vt],pr={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},wf={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},di="next",gi="prev",bf="left",kf="right",it={SLIDE:"slide"+tt,SLID:"slid"+tt,KEYDOWN:"keydown"+tt,MOUSEENTER:"mouseenter"+tt,MOUSELEAVE:"mouseleave"+tt,TOUCHEND:"touchend"+tt,LOAD_DATA_API:"load"+tt+au,CLICK_DATA_API:"click"+tt+au},df="carousel",ot="active",gf="slide",ne="carousel-item-right",te="carousel-item-left",ie="carousel-item-next",re="carousel-item-prev",rt={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"]'},yt=function(){function t(n,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=f(n)[0];this._indicatorsElement=f(this._element).find(rt.INDICATORS)[0];this._addEventListeners()}var n=t.prototype;return n.next=function(){this._isSliding||this._slide(di)},n.nextWhenVisible=function(){!document.hidden&&f(this._element).is(":visible")&&"hidden"!==f(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(gi)},n.pause=function(n){n||(this._isPaused=!0);f(this._element).find(rt.NEXT_PREV)[0]&&(o.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},n.cycle=function(n){n||(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))},n.to=function(n){var r=this,t,i;if(this._activeElement=f(this._element).find(rt.ACTIVE_ITEM)[0],t=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0))if(this._isSliding)f(this._element).one(it.SLID,function(){return r.to(n)});else{if(t===n)return this.pause(),void this.cycle();i=t<n?di:gi;this._slide(i,this._items[n])}},n.dispose=function(){f(this._element).off(tt);f.removeData(this._element,ki);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},n._getConfig=function(n){return n=v({},pr,n),o.typeCheckConfig(vt,n,wf),n},n._addEventListeners=function(){var n=this;this._config.keyboard&&f(this._element).on(it.KEYDOWN,function(t){return n._keydown(t)});"hover"===this._config.pause&&(f(this._element).on(it.MOUSEENTER,function(t){return n.pause(t)}).on(it.MOUSELEAVE,function(t){return n.cycle(t)}),"ontouchstart"in document.documentElement&&f(this._element).on(it.TOUCHEND,function(){n.pause();n.touchTimeout&&clearTimeout(n.touchTimeout);n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval)}))},n._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case 37:n.preventDefault();this.prev();break;case 39:n.preventDefault();this.next()}},n._getItemIndex=function(n){return this._items=f.makeArray(f(n).parent().find(rt.ITEM)),this._items.indexOf(n)},n._getItemByDirection=function(n,t){var u=n===di,f=n===gi,i=this._getItemIndex(t),e=this._items.length-1,r;return(f&&0===i||u&&i===e)&&!this._config.wrap?t:(r=(i+(n===gi?-1:1))%this._items.length,-1===r?this._items[this._items.length-1]:this._items[r])},n._triggerSlideEvent=function(n,t){var r=this._getItemIndex(n),u=this._getItemIndex(f(this._element).find(rt.ACTIVE_ITEM)[0]),i=f.Event(it.SLIDE,{relatedTarget:n,direction:t,from:u,to:r});return f(this._element).trigger(i),i},n._setActiveIndicatorElement=function(n){if(this._indicatorsElement){f(this._indicatorsElement).find(rt.ACTIVE).removeClass(ot);var t=this._indicatorsElement.children[this._getItemIndex(n)];t&&f(t).addClass(ot)}},n._slide=function(n,t){var u,e,s,c=this,r=f(this._element).find(rt.ACTIVE_ITEM)[0],v=this._getItemIndex(r),i=t||r&&this._getItemByDirection(n,r),y=this._getItemIndex(i),l=Boolean(this._interval),h,a;(n===di?(u=te,e=ie,s=bf):(u=ne,e=re,s=kf),i&&f(i).hasClass(ot))?this._isSliding=!1:!this._triggerSlideEvent(i,s).isDefaultPrevented()&&r&&i&&(this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(i),h=f.Event(it.SLID,{relatedTarget:i,direction:s,from:v,to:y}),f(this._element).hasClass(gf)?(f(i).addClass(e),o.reflow(i),f(r).addClass(u),f(i).addClass(u),a=o.getTransitionDurationFromElement(r),f(r).one(o.TRANSITION_END,function(){f(i).removeClass(u+" "+e).addClass(ot);f(r).removeClass(ot+" "+e+" "+u);c._isSliding=!1;setTimeout(function(){return f(c._element).trigger(h)},0)}).emulateTransitionEnd(a)):(f(r).removeClass(ot),f(i).addClass(ot),this._isSliding=!1,f(this._element).trigger(h)),l&&this.cycle())},t._jQueryInterface=function(n){return this.each(function(){var i=f(this).data(ki),r=v({},pr,f(this).data()),u;if("object"==typeof n&&(r=v({},r,n)),u="string"==typeof n?n:r.slide,i||(i=new t(this,r),f(this).data(ki,i)),"number"==typeof n)i.to(n);else if("string"==typeof u){if("undefined"==typeof i[u])throw new TypeError('No method named "'+u+'"');i[u]()}else r.interval&&(i.pause(),i.cycle())})},t._dataApiClickHandler=function(n){var e=o.getSelectorFromElement(this),i,u,r;e&&(i=f(e)[0],i&&f(i).hasClass(df)&&(u=v({},f(i).data(),f(this).data()),r=this.getAttribute("data-slide-to"),r&&(u.interval=!1),t._jQueryInterface.call(f(i),u),r&&f(i).data(ki).to(r),n.preventDefault()))},nt(t,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return pr}}]),t}(),f(document).on(it.CLICK_DATA_API,rt.DATA_SLIDE,yt._dataApiClickHandler),f(window).on(it.LOAD_DATA_API,function(){f(rt.DATA_RIDE).each(function(){var n=f(this);yt._jQueryInterface.call(n,n.data())})}),f.fn[vt]=yt._jQueryInterface,f.fn[vt].Constructor=yt,f.fn[vt].noConflict=function(){return f.fn[vt]=pf,yt._jQueryInterface},yt),th=(pt="collapse",fi="."+(wt="bs.collapse"),ue=(s=t).fn[pt],wr={toggle:!0,parent:""},fe={toggle:"boolean",parent:"(string|element)"},ei={SHOW:"show"+fi,SHOWN:"shown"+fi,HIDE:"hide"+fi,HIDDEN:"hidden"+fi,CLICK_DATA_API:"click"+fi+".data-api"},st="show",nr="collapse",tr="collapsing",br="collapsed",vu="width",ee="height",kr={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},oi=function(){function t(n,t){var u,i,f,r;for(this._isTransitioning=!1,this._element=n,this._config=this._getConfig(t),this._triggerArray=s.makeArray(s('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]')),u=s(kr.DATA_TOGGLE),i=0;i<u.length;i++)f=u[i],r=o.getSelectorFromElement(f),null!==r&&0<s(r).filter(n).length&&(this._selector=r,this._triggerArray.push(f));this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var n=t.prototype;return n.toggle=function(){s(this._element).hasClass(st)?this.hide():this.show()},n.show=function(){var n,u,r=this,f,i,e,h;this._isTransitioning||s(this._element).hasClass(st)||(this._parent&&0===(n=s.makeArray(s(this._parent).find(kr.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(n=null),n&&(u=s(n).not(this._selector).data(wt))&&u._isTransitioning)||(f=s.Event(ei.SHOW),(s(this._element).trigger(f),f.isDefaultPrevented())||(n&&(t._jQueryInterface.call(s(n).not(this._selector),"hide"),u||s(n).data(wt,null)),i=this._getDimension(),s(this._element).removeClass(nr).addClass(tr),(this._element.style[i]=0)<this._triggerArray.length&&s(this._triggerArray).removeClass(br).attr("aria-expanded",!0),this.setTransitioning(!0),e="scroll"+(i[0].toUpperCase()+i.slice(1)),h=o.getTransitionDurationFromElement(this._element),s(this._element).one(o.TRANSITION_END,function(){s(r._element).removeClass(tr).addClass(nr).addClass(st);r._element.style[i]="";r.setTransitioning(!1);s(r._element).trigger(ei.SHOWN)}).emulateTransitionEnd(h),this._element.style[i]=this._element[e]+"px"))},n.hide=function(){var f=this,i,n,t,r,u,e;if(!this._isTransitioning&&s(this._element).hasClass(st)&&(i=s.Event(ei.HIDE),s(this._element).trigger(i),!i.isDefaultPrevented())){if(n=this._getDimension(),this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",o.reflow(this._element),s(this._element).addClass(tr).removeClass(nr).removeClass(st),0<this._triggerArray.length)for(t=0;t<this._triggerArray.length;t++)r=this._triggerArray[t],u=o.getSelectorFromElement(r),null!==u&&(s(u).hasClass(st)||s(r).addClass(br).attr("aria-expanded",!1));this.setTransitioning(!0);this._element.style[n]="";e=o.getTransitionDurationFromElement(this._element);s(this._element).one(o.TRANSITION_END,function(){f.setTransitioning(!1);s(f._element).removeClass(tr).addClass(nr).trigger(ei.HIDDEN)}).emulateTransitionEnd(e)}},n.setTransitioning=function(n){this._isTransitioning=n},n.dispose=function(){s.removeData(this._element,wt);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},n._getConfig=function(n){return(n=v({},wr,n)).toggle=Boolean(n.toggle),o.typeCheckConfig(pt,n,fe),n},n._getDimension=function(){return s(this._element).hasClass(vu)?vu:ee},n._getParent=function(){var r=this,n=null,i;return o.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=s(this._config.parent)[0],i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',s(n).find(i).each(function(n,i){r._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])}),n},n._addAriaAndCollapsedClass=function(n,t){if(n){var i=s(n).hasClass(st);0<t.length&&s(t).toggleClass(br,!i).attr("aria-expanded",i)}},t._getTargetFromElement=function(n){var t=o.getSelectorFromElement(n);return t?s(t)[0]:null},t._jQueryInterface=function(n){return this.each(function(){var r=s(this),i=r.data(wt),u=v({},wr,r.data(),"object"==typeof n&&n?n:{});if(!i&&u.toggle&&/show|hide/.test(n)&&(u.toggle=!1),i||(i=new t(this,u),r.data(wt,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},nt(t,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return wr}}]),t}(),s(document).on(ei.CLICK_DATA_API,kr.DATA_TOGGLE,function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var t=s(this),i=o.getSelectorFromElement(this);s(i).each(function(){var n=s(this),i=n.data(wt)?"toggle":t.data();oi._jQueryInterface.call(n,i)})}),s.fn[pt]=oi._jQueryInterface,s.fn[pt].Constructor=oi,s.fn[pt].noConflict=function(){return s.fn[pt]=ue,oi._jQueryInterface},oi),ih=(bt="dropdown",ut="."+(ir="bs.dropdown"),dr=".data-api",oe=(e=t).fn[bt],se=new RegExp("38|40|27"),b={HIDE:"hide"+ut,HIDDEN:"hidden"+ut,SHOW:"show"+ut,SHOWN:"shown"+ut,CLICK:"click"+ut,CLICK_DATA_API:"click"+ut+dr,KEYDOWN_DATA_API:"keydown"+ut+dr,KEYUP_DATA_API:"keyup"+ut+dr},yu="disabled",ht="show",he="dropup",ce="dropright",le="dropleft",pu="dropdown-menu-right",ae="position-static",rr='[data-toggle="dropdown"]',ve=".dropdown form",gr=".dropdown-menu",ye=".navbar-nav",pe=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",we="top-start",be="top-end",ke="bottom-start",de="bottom-end",ge="right-start",no="left-start",to={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},io={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},et=function(){function n(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var t=n.prototype;return t.toggle=function(){var t,s,u,f,r;if(!this._element.disabled&&!e(this._element).hasClass(yu)&&(t=n._getParentFromElement(this._element),s=e(this._menu).hasClass(ht),(n._clearMenus(),!s)&&(u={relatedTarget:this._element},f=e.Event(b.SHOW,u),e(t).trigger(f),!f.isDefaultPrevented()))){if(!this._inNavbar){if("undefined"==typeof i)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");r=this._element;"parent"===this._config.reference?r=t:o.isElement(this._config.reference)&&(r=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(r=this._config.reference[0]));"scrollParent"!==this._config.boundary&&e(t).addClass(ae);this._popper=new i(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(t).closest(ye).length&&e(document.body).children().on("mouseover",null,e.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);e(this._menu).toggleClass(ht);e(t).toggleClass(ht).trigger(e.Event(b.SHOWN,u))}},t.dispose=function(){e.removeData(this._element,ir);e(this._element).off(ut);this._element=null;(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar();null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var n=this;e(this._element).on(b.CLICK,function(t){t.preventDefault();t.stopPropagation();n.toggle()})},t._getConfig=function(n){return n=v({},this.constructor.Default,e(this._element).data(),n),o.typeCheckConfig(bt,n,this.constructor.DefaultType),n},t._getMenuElement=function(){if(!this._menu){var t=n._getParentFromElement(this._element);this._menu=e(t).find(gr)[0]}return this._menu},t._getPlacement=function(){var t=e(this._element).parent(),n=ke;return t.hasClass(he)?(n=we,e(this._menu).hasClass(pu)&&(n=be)):t.hasClass(ce)?n=ge:t.hasClass(le)?n=no:e(this._menu).hasClass(pu)&&(n=de),n},t._detectNavbar=function(){return 0<e(this._element).closest(".navbar").length},t._getPopperConfig=function(){var i=this,n={},t;return"function"==typeof this._config.offset?n.fn=function(n){return n.offsets=v({},n.offsets,i._config.offset(n.offsets)||{}),n}:n.offset=this._config.offset,t={placement:this._getPlacement(),modifiers:{offset:n,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}},"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},n._jQueryInterface=function(t){return this.each(function(){var i=e(this).data(ir);if(i||(i=new n(this,"object"==typeof t?t:null),e(this).data(ir,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},n._clearMenus=function(t){var r,i,h,f;if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(r=e.makeArray(e(rr)),i=0;i<r.length;i++){var u=n._getParentFromElement(r[i]),o=e(r[i]).data(ir),s={relatedTarget:r[i]};o&&(h=o._menu,!e(u).hasClass(ht)||t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&e.contains(u,t.target)||(f=e.Event(b.HIDE,s),e(u).trigger(f),f.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),r[i].setAttribute("aria-expanded","false"),e(h).removeClass(ht),e(u).removeClass(ht).trigger(e.Event(b.HIDDEN,s)))))}},n._getParentFromElement=function(n){var t,i=o.getSelectorFromElement(n);return i&&(t=e(i)[0]),t||n.parentNode},n._dataApiKeydownHandler=function(t){var u,f,r,i,o;(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||e(t.target).closest(gr).length):!se.test(t.which))||(t.preventDefault(),t.stopPropagation(),this.disabled||e(this).hasClass(yu))||(u=n._getParentFromElement(this),f=e(u).hasClass(ht),(f||27===t.which&&32===t.which)&&(!f||27!==t.which&&32!==t.which)?(r=e(u).find(pe).get(),0!==r.length&&(i=r.indexOf(t.target),38===t.which&&0<i&&i--,40===t.which&&i<r.length-1&&i++,i<0&&(i=0),r[i].focus())):(27===t.which&&(o=e(u).find(rr)[0],e(o).trigger("focus")),e(this).trigger("click")))},nt(n,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return to}},{key:"DefaultType",get:function(){return io}}]),n}(),e(document).on(b.KEYDOWN_DATA_API,rr,et._dataApiKeydownHandler).on(b.KEYDOWN_DATA_API,gr,et._dataApiKeydownHandler).on(b.CLICK_DATA_API+" "+b.KEYUP_DATA_API,et._clearMenus).on(b.CLICK_DATA_API,rr,function(n){n.preventDefault();n.stopPropagation();et._jQueryInterface.call(e(this),"toggle")}).on(b.CLICK_DATA_API,ve,function(n){n.stopPropagation()}),e.fn[bt]=et._jQueryInterface,e.fn[bt].Constructor=et,e.fn[bt].noConflict=function(){return e.fn[bt]=oe,et._jQueryInterface},et),rh=(kt="modal",w="."+(ur="bs.modal"),ro=(r=t).fn[kt],nu={backdrop:!0,keyboard:!0,focus:!0,show:!0},uo={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},a={HIDE:"hide"+w,HIDDEN:"hidden"+w,SHOW:"show"+w,SHOWN:"shown"+w,FOCUSIN:"focusin"+w,RESIZE:"resize"+w,CLICK_DISMISS:"click.dismiss"+w,KEYDOWN_DISMISS:"keydown.dismiss"+w,MOUSEUP_DISMISS:"mouseup.dismiss"+w,MOUSEDOWN_DISMISS:"mousedown.dismiss"+w,CLICK_DATA_API:"click"+w+".data-api"},fo="modal-scrollbar-measure",eo="modal-backdrop",wu="modal-open",dt="fade",fr="show",ft={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"},si=function(){function t(n,t){this._config=this._getConfig(t);this._element=n;this._dialog=r(n).find(ft.DIALOG)[0];this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._scrollbarWidth=0}var n=t.prototype;return n.toggle=function(n){return this._isShown?this.hide():this.show(n)},n.show=function(n){var t=this,i;this._isTransitioning||this._isShown||(r(this._element).hasClass(dt)&&(this._isTransitioning=!0),i=r.Event(a.SHOW,{relatedTarget:n}),r(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),r(document.body).addClass(wu),this._setEscapeEvent(),this._setResizeEvent(),r(this._element).on(a.CLICK_DISMISS,ft.DATA_DISMISS,function(n){return t.hide(n)}),r(this._dialog).on(a.MOUSEDOWN_DISMISS,function(){r(t._element).one(a.MOUSEUP_DISMISS,function(n){r(n.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(n)})))},n.hide=function(n){var f=this,t,i,u;(n&&n.preventDefault(),!this._isTransitioning&&this._isShown)&&(t=r.Event(a.HIDE),(r(this._element).trigger(t),this._isShown&&!t.isDefaultPrevented())&&(this._isShown=!1,i=r(this._element).hasClass(dt),(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r(document).off(a.FOCUSIN),r(this._element).removeClass(fr),r(this._element).off(a.CLICK_DISMISS),r(this._dialog).off(a.MOUSEDOWN_DISMISS),i)?(u=o.getTransitionDurationFromElement(this._element),r(this._element).one(o.TRANSITION_END,function(n){return f._hideModal(n)}).emulateTransitionEnd(u)):this._hideModal()))},n.dispose=function(){r.removeData(this._element,ur);r(window,document,this._element,this._backdrop).off(w);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(n){return n=v({},nu,n),o.typeCheckConfig(kt,n,uo),n},n._showElement=function(n){var t=this,u=r(this._element).hasClass(dt),f,i,e;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;u&&o.reflow(this._element);r(this._element).addClass(fr);this._config.focus&&this._enforceFocus();f=r.Event(a.SHOWN,{relatedTarget:n});i=function(){t._config.focus&&t._element.focus();t._isTransitioning=!1;r(t._element).trigger(f)};u?(e=o.getTransitionDurationFromElement(this._element),r(this._dialog).one(o.TRANSITION_END,i).emulateTransitionEnd(e)):i()},n._enforceFocus=function(){var n=this;r(document).off(a.FOCUSIN).on(a.FOCUSIN,function(t){document!==t.target&&n._element!==t.target&&0===r(n._element).has(t.target).length&&n._element.focus()})},n._setEscapeEvent=function(){var n=this;this._isShown&&this._config.keyboard?r(this._element).on(a.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),n.hide())}):this._isShown||r(this._element).off(a.KEYDOWN_DISMISS)},n._setResizeEvent=function(){var n=this;this._isShown?r(window).on(a.RESIZE,function(t){return n.handleUpdate(t)}):r(window).off(a.RESIZE)},n._hideModal=function(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._isTransitioning=!1;this._showBackdrop(function(){r(document.body).removeClass(wu);n._resetAdjustments();n._resetScrollbar();r(n._element).trigger(a.HIDDEN)})},n._removeBackdrop=function(){this._backdrop&&(r(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(n){var t=this,i=r(this._element).hasClass(dt)?dt:"",f,u,e;if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=eo,i&&r(this._backdrop).addClass(i),r(this._backdrop).appendTo(document.body),r(this._element).on(a.CLICK_DISMISS,function(n){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:n.target===n.currentTarget&&("static"===t._config.backdrop?t._element.focus():t.hide())}),i&&o.reflow(this._backdrop),r(this._backdrop).addClass(fr),!n)return;if(!i)return void n();f=o.getTransitionDurationFromElement(this._backdrop);r(this._backdrop).one(o.TRANSITION_END,n).emulateTransitionEnd(f)}else!this._isShown&&this._backdrop?(r(this._backdrop).removeClass(fr),u=function(){t._removeBackdrop();n&&n()},r(this._element).hasClass(dt)?(e=o.getTransitionDurationFromElement(this._backdrop),r(this._backdrop).one(o.TRANSITION_END,u).emulateTransitionEnd(e)):u()):n&&n()},n._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},n._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=n.left+n.right<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var n=this,t,i;this._isBodyOverflowing&&(r(ft.FIXED_CONTENT).each(function(t,i){var u=r(i)[0].style.paddingRight,f=r(i).css("padding-right");r(i).data("padding-right",u).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),r(ft.STICKY_CONTENT).each(function(t,i){var u=r(i)[0].style.marginRight,f=r(i).css("margin-right");r(i).data("margin-right",u).css("margin-right",parseFloat(f)-n._scrollbarWidth+"px")}),r(ft.NAVBAR_TOGGLER).each(function(t,i){var u=r(i)[0].style.marginRight,f=r(i).css("margin-right");r(i).data("margin-right",u).css("margin-right",parseFloat(f)+n._scrollbarWidth+"px")}),t=document.body.style.paddingRight,i=r(document.body).css("padding-right"),r(document.body).data("padding-right",t).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px"))},n._resetScrollbar=function(){r(ft.FIXED_CONTENT).each(function(n,t){var i=r(t).data("padding-right");"undefined"!=typeof i&&r(t).css("padding-right",i).removeData("padding-right")});r(ft.STICKY_CONTENT+", "+ft.NAVBAR_TOGGLER).each(function(n,t){var i=r(t).data("margin-right");"undefined"!=typeof i&&r(t).css("margin-right",i).removeData("margin-right")});var n=r(document.body).data("padding-right");"undefined"!=typeof n&&r(document.body).css("padding-right",n).removeData("padding-right")},n._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=fo,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},t._jQueryInterface=function(n,i){return this.each(function(){var u=r(this).data(ur),f=v({},nu,r(this).data(),"object"==typeof n&&n?n:{});if(u||(u=new t(this,f),r(this).data(ur,u)),"string"==typeof n){if("undefined"==typeof u[n])throw new TypeError('No method named "'+n+'"');u[n](i)}else f.show&&u.show(i)})},nt(t,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return nu}}]),t}(),r(document).on(a.CLICK_DATA_API,ft.DATA_TOGGLE,function(n){var t,i=this,u=o.getSelectorFromElement(this),f,e;u&&(t=r(u)[0]);f=r(t).data(ur)?"toggle":v({},r(t).data(),r(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||n.preventDefault();e=r(t).one(a.SHOW,function(n){n.isDefaultPrevented()||e.one(a.HIDDEN,function(){r(i).is(":visible")&&i.focus()})});si._jQueryInterface.call(r(t),f,this)}),r.fn[kt]=si._jQueryInterface,r.fn[kt].Constructor=si,r.fn[kt].noConflict=function(){return r.fn[kt]=ro,si._jQueryInterface},si),su=(ct="tooltip",k="."+(tu="bs.tooltip"),oo=(u=t).fn[ct],bu="bs-tooltip",so=new RegExp("(^|\\s)"+bu+"\\S+","g"),lo={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:!(co={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(ho={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)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},iu="out",ao={HIDE:"hide"+k,HIDDEN:"hidden"+k,SHOW:(hi="show")+k,SHOWN:"shown"+k,INSERTED:"inserted"+k,CLICK:"click"+k,FOCUSIN:"focusin"+k,FOCUSOUT:"focusout"+k,MOUSEENTER:"mouseenter"+k,MOUSELEAVE:"mouseleave"+k},ci="fade",li="show",vo=".tooltip-inner",yo=".arrow",ai="hover",ru="focus",po="click",wo="manual",er=function(){function t(n,t){if("undefined"==typeof i)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=n;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var n=t.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(n){if(this._isEnabled)if(n){var i=this.constructor.DATA_KEY,t=u(n.currentTarget).data(i);t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t));t._activeTrigger.click=!t._activeTrigger.click;t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(u(this.getTipElement()).hasClass(li))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout);u.removeData(this.element,this.constructor.DATA_KEY);u(this.element).off(this.constructor.EVENT_KEY);u(this.element).closest(".modal").off("hide.bs.modal");this.tip&&u(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},n.show=function(){var n=this,r,h,t,f,c,e,l,s,a;if("none"===u(this.element).css("display"))throw new Error("Please use show on visible elements");if(r=u.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(u(this.element).trigger(r),h=u.contains(this.element.ownerDocument.documentElement,this.element),r.isDefaultPrevented()||!h)return;t=this.getTipElement();f=o.getUID(this.constructor.NAME);t.setAttribute("id",f);this.element.setAttribute("aria-describedby",f);this.setContent();this.config.animation&&u(t).addClass(ci);c="function"==typeof this.config.placement?this.config.placement.call(this,t,this.element):this.config.placement;e=this._getAttachment(c);this.addAttachmentClass(e);l=!1===this.config.container?document.body:u(this.config.container);u(t).data(this.constructor.DATA_KEY,this);u.contains(this.element.ownerDocument.documentElement,this.tip)||u(t).appendTo(l);u(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new i(this.element,t,{placement:e,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:yo},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&n._handlePopperPlacementChange(t)},onUpdate:function(t){n._handlePopperPlacementChange(t)}});u(t).addClass(li);"ontouchstart"in document.documentElement&&u(document.body).children().on("mouseover",null,u.noop);s=function(){n.config.animation&&n._fixTransition();var t=n._hoverState;n._hoverState=null;u(n.element).trigger(n.constructor.Event.SHOWN);t===iu&&n._leave(null,n)};u(this.tip).hasClass(ci)?(a=o.getTransitionDurationFromElement(this.tip),u(this.tip).one(o.TRANSITION_END,s).emulateTransitionEnd(a)):s()}},n.hide=function(n){var t=this,i=this.getTipElement(),r=u.Event(this.constructor.Event.HIDE),f=function(){t._hoverState!==hi&&i.parentNode&&i.parentNode.removeChild(i);t._cleanTipClass();t.element.removeAttribute("aria-describedby");u(t.element).trigger(t.constructor.Event.HIDDEN);null!==t._popper&&t._popper.destroy();n&&n()},e;(u(this.element).trigger(r),r.isDefaultPrevented())||((u(i).removeClass(li),"ontouchstart"in document.documentElement&&u(document.body).children().off("mouseover",null,u.noop),this._activeTrigger[po]=!1,this._activeTrigger[ru]=!1,this._activeTrigger[ai]=!1,u(this.tip).hasClass(ci))?(e=o.getTransitionDurationFromElement(i),u(i).one(o.TRANSITION_END,f).emulateTransitionEnd(e)):f(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(n){u(this.getTipElement()).addClass(bu+"-"+n)},n.getTipElement=function(){return this.tip=this.tip||u(this.config.template)[0],this.tip},n.setContent=function(){var n=u(this.getTipElement());this.setElementContent(n.find(vo),this.getTitle());n.removeClass(ci+" "+li)},n.setElementContent=function(n,t){var i=this.config.html;"object"==typeof t&&(t.nodeType||t.jquery)?i?u(t).parent().is(n)||n.empty().append(t):n.text(u(t).text()):n[i?"html":"text"](t)},n.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),n},n._getAttachment=function(n){return co[n.toUpperCase()]},n._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)u(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(t!==wo){var i=t===ai?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,r=t===ai?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;u(n.element).on(i,n.config.selector,function(t){return n._enter(t)}).on(r,n.config.selector,function(t){return n._leave(t)})}u(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})});this.config.selector?this.config=v({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==n)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(n,t){var i=this.constructor.DATA_KEY;(t=t||u(n.currentTarget).data(i))||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t));n&&(t._activeTrigger["focusin"===n.type?ru:ai]=!0);u(t.getTipElement()).hasClass(li)||t._hoverState===hi?t._hoverState=hi:(clearTimeout(t._timeout),t._hoverState=hi,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===hi&&t.show()},t.config.delay.show):t.show())},n._leave=function(n,t){var i=this.constructor.DATA_KEY;(t=t||u(n.currentTarget).data(i))||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t));n&&(t._activeTrigger["focusout"===n.type?ru:ai]=!1);t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=iu,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===iu&&t.hide()},t.config.delay.hide):t.hide())},n._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},n._getConfig=function(n){return"number"==typeof(n=v({},this.constructor.Default,u(this.element).data(),"object"==typeof n&&n?n:{})).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),o.typeCheckConfig(ct,n,this.constructor.DefaultType),n},n._getDelegateConfig=function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t},n._cleanTipClass=function(){var t=u(this.getTipElement()),n=t.attr("class").match(so);null!==n&&0<n.length&&t.removeClass(n.join(""))},n._handlePopperPlacementChange=function(n){this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},n._fixTransition=function(){var n=this.getTipElement(),t=this.config.animation;null===n.getAttribute("x-placement")&&(u(n).removeClass(ci),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},t._jQueryInterface=function(n){return this.each(function(){var i=u(this).data(tu),r="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new t(this,r),u(this).data(tu,i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},nt(t,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return lo}},{key:"NAME",get:function(){return ct}},{key:"DATA_KEY",get:function(){return tu}},{key:"Event",get:function(){return ao}},{key:"EVENT_KEY",get:function(){return k}},{key:"DefaultType",get:function(){return ho}}]),t}(),u.fn[ct]=er._jQueryInterface,u.fn[ct].Constructor=er,u.fn[ct].noConflict=function(){return u.fn[ct]=oo,er._jQueryInterface},er),uh=(gt="popover",d="."+(uu="bs.popover"),bo=(g=t).fn[gt],ku="bs-popover",ko=new RegExp("(^|\\s)"+ku+"\\S+","g"),go=v({},su.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>'}),ns=v({},su.DefaultType,{content:"(string|element|function)"}),ts="fade",rs=".popover-header",us=".popover-body",fs={HIDE:"hide"+d,HIDDEN:"hidden"+d,SHOW:(is="show")+d,SHOWN:"shown"+d,INSERTED:"inserted"+d,CLICK:"click"+d,FOCUSIN:"focusin"+d,FOCUSOUT:"focusout"+d,MOUSEENTER:"mouseenter"+d,MOUSELEAVE:"mouseleave"+d},or=function(n){function i(){return n.apply(this,arguments)||this}var r,u,t;return u=n,(r=i).prototype=Object.create(u.prototype),(r.prototype.constructor=r).__proto__=u,t=i.prototype,t.isWithContent=function(){return this.getTitle()||this._getContent()},t.addAttachmentClass=function(n){g(this.getTipElement()).addClass(ku+"-"+n)},t.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},t.setContent=function(){var t=g(this.getTipElement()),n;this.setElementContent(t.find(rs),this.getTitle());n=this._getContent();"function"==typeof n&&(n=n.call(this.element));this.setElementContent(t.find(us),n);t.removeClass(ts+" "+is)},t._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},t._cleanTipClass=function(){var t=g(this.getTipElement()),n=t.attr("class").match(ko);null!==n&&0<n.length&&t.removeClass(n.join(""))},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(uu),r="object"==typeof n?n:null;if((t||!/destroy|hide/.test(n))&&(t||(t=new i(this,r),g(this).data(uu,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},nt(i,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return go}},{key:"NAME",get:function(){return gt}},{key:"DATA_KEY",get:function(){return uu}},{key:"Event",get:function(){return fs}},{key:"EVENT_KEY",get:function(){return d}},{key:"DefaultType",get:function(){return ns}}]),i}(su),g.fn[gt]=or._jQueryInterface,g.fn[gt].Constructor=or,g.fn[gt].noConflict=function(){return g.fn[gt]=bo,or._jQueryInterface},or),fh=(lt="scrollspy",sr="."+(fu="bs.scrollspy"),es=(l=t).fn[lt],du={offset:10,method:"auto",target:""},os={offset:"number",method:"string",target:"(string|element)"},eu={ACTIVATE:"activate"+sr,SCROLL:"scroll"+sr,LOAD_DATA_API:"load"+sr+".data-api"},ss="dropdown-item",ni="active",p={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"},hs="offset",gu="position",vi=function(){function t(n,t){var i=this;this._element=n;this._scrollElement="BODY"===n.tagName?window:n;this._config=this._getConfig(t);this._selector=this._config.target+" "+p.NAV_LINKS+","+this._config.target+" "+p.LIST_ITEMS+","+this._config.target+" "+p.DROPDOWN_ITEMS;this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;l(this._scrollElement).on(eu.SCROLL,function(n){return i._process(n)});this.refresh();this._process()}var n=t.prototype;return n.refresh=function(){var n=this,i=this._scrollElement===this._scrollElement.window?hs:gu,t="auto"===this._config.method?i:this._config.method,r=t===gu?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();l.makeArray(l(this._selector)).map(function(n){var i,u=o.getSelectorFromElement(n),f;return(u&&(i=l(u)[0]),i)&&(f=i.getBoundingClientRect(),f.width||f.height)?[l(i)[t]().top+r,u]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(t){n._offsets.push(t[0]);n._targets.push(t[1])})},n.dispose=function(){l.removeData(this._element,fu);l(this._scrollElement).off(sr);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},n._getConfig=function(n){if("string"!=typeof(n=v({},du,"object"==typeof n&&n?n:{})).target){var t=l(n.target).attr("id");t||(t=o.getUID(lt),l(n.target).attr("id",t));n.target="#"+t}return o.typeCheckConfig(lt,n,os),n},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),u=this._config.offset+r-this._getOffsetHeight(),i,n;if(this._scrollHeight!==r&&this.refresh(),u<=t)i=this._targets[this._targets.length-1],this._activeTarget!==i&&this._activate(i);else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&("undefined"==typeof this._offsets[n+1]||t<this._offsets[n+1])&&this._activate(this._targets[n])}},n._activate=function(n){var i,t;this._activeTarget=n;this._clear();i=this._selector.split(",");i=i.map(function(t){return t+'[data-target="'+n+'"],'+t+'[href="'+n+'"]'});t=l(i.join(","));t.hasClass(ss)?(t.closest(p.DROPDOWN).find(p.DROPDOWN_TOGGLE).addClass(ni),t.addClass(ni)):(t.addClass(ni),t.parents(p.NAV_LIST_GROUP).prev(p.NAV_LINKS+", "+p.LIST_ITEMS).addClass(ni),t.parents(p.NAV_LIST_GROUP).prev(p.NAV_ITEMS).children(p.NAV_LINKS).addClass(ni));l(this._scrollElement).trigger(eu.ACTIVATE,{relatedTarget:n})},n._clear=function(){l(this._selector).filter(p.ACTIVE).removeClass(ni)},t._jQueryInterface=function(n){return this.each(function(){var i=l(this).data(fu);if(i||(i=new t(this,"object"==typeof n&&n),l(this).data(fu,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},nt(t,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return du}}]),t}(),l(window).on(eu.LOAD_DATA_API,function(){for(var i,n=l.makeArray(l(p.DATA_SPY)),t=n.length;t--;)i=l(n[t]),vi._jQueryInterface.call(i,i.data())}),l.fn[lt]=vi._jQueryInterface,l.fn[lt].Constructor=vi,l.fn[lt].noConflict=function(){return l.fn[lt]=es,vi._jQueryInterface},vi),eh=(yi="."+(ou="bs.tab"),cs=(h=t).fn.tab,pi={HIDE:"hide"+yi,HIDDEN:"hidden"+yi,SHOW:"show"+yi,SHOWN:"shown"+yi,CLICK_DATA_API:"click"+yi+".data-api"},ls="dropdown-menu",wi="active",as="disabled",vs="fade",nf="show",ys=".dropdown",ps=".nav, .list-group",tf=".active",rf="> li > .active",ws='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',bs=".dropdown-toggle",ks="> .dropdown-menu .active",bi=function(){function n(n){this._element=n}var t=n.prototype;return t.show=function(){var s=this,i,n,t,r,c,u,f,e;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&h(this._element).hasClass(wi)||h(this._element).hasClass(as)||(t=h(this._element).closest(ps)[0],r=o.getSelectorFromElement(this._element),t&&(c="UL"===t.nodeName?rf:tf,n=(n=h.makeArray(h(t).find(c)))[n.length-1]),u=h.Event(pi.HIDE,{relatedTarget:this._element}),f=h.Event(pi.SHOW,{relatedTarget:n}),(n&&h(n).trigger(u),h(this._element).trigger(f),f.isDefaultPrevented()||u.isDefaultPrevented())||(r&&(i=h(r)[0]),this._activate(this._element,t),e=function(){var t=h.Event(pi.HIDDEN,{relatedTarget:s._element}),i=h.Event(pi.SHOWN,{relatedTarget:n});h(n).trigger(t);h(s._element).trigger(i)},i?this._activate(i,i.parentNode,e):e()))},t.dispose=function(){h.removeData(this._element,ou);this._element=null},t._activate=function(n,t,i){var e=this,r=("UL"===t.nodeName?h(t).find(rf):h(t).children(tf))[0],s=i&&r&&h(r).hasClass(vs),u=function(){return e._transitionComplete(n,r,i)},f;r&&s?(f=o.getTransitionDurationFromElement(r),h(r).one(o.TRANSITION_END,u).emulateTransitionEnd(f)):u()},t._transitionComplete=function(n,t,i){var r,u;t&&(h(t).removeClass(nf+" "+wi),r=h(t.parentNode).find(ks)[0],r&&h(r).removeClass(wi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1));(h(n).addClass(wi),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!0),o.reflow(n),h(n).addClass(nf),n.parentNode&&h(n.parentNode).hasClass(ls))&&(u=h(n).closest(ys)[0],u&&h(u).find(bs).addClass(wi),n.setAttribute("aria-expanded",!0));i&&i()},n._jQueryInterface=function(t){return this.each(function(){var r=h(this),i=r.data(ou);if(i||(i=new n(this),r.data(ou,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},nt(n,null,[{key:"VERSION",get:function(){return"4.1.1"}}]),n}(),h(document).on(pi.CLICK_DATA_API,ws,function(n){n.preventDefault();bi._jQueryInterface.call(h(this),"show")}),h.fn.tab=bi._jQueryInterface,h.fn.tab.Constructor=bi,h.fn.tab.noConflict=function(){return h.fn.tab=cs,bi._jQueryInterface},bi);!function(n){if("undefined"==typeof n)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}(t);n.Util=o;n.Alert=ds;n.Button=gs;n.Carousel=nh;n.Collapse=th;n.Dropdown=ih;n.Modal=rh;n.Popover=uh;n.Scrollspy=fh;n.Tab=eh;n.Tooltip=su;Object.defineProperty(n,"__esModule",{value:!0})}),"undefined"==typeof jQuery)throw new Error("Jasny Bootstrap's JavaScript requires jQuery");+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]};return!1}void 0===n.support.transition&&(n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this},n(function(){n.support.transition=t()}))}(window.jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.state=null;this.placement=null;this.options.recalc&&(this.calcClone(),n(window).on("resize",n.proxy(this.recalc,this)));this.options.autohide&&n(document).on("click",n.proxy(this.autohide,this));this.options.toggle&&this.toggle();this.options.disablescrolling&&(this.options.disableScrolling=this.options.disablescrolling,delete this.options.disablescrolling)},i;t.DEFAULTS={toggle:!0,placement:"auto",autohide:!0,recalc:!0,disableScrolling:!0};t.prototype.offset=function(){switch(this.placement){case"left":case"right":return this.$element.outerWidth();case"top":case"bottom":return this.$element.outerHeight()}};t.prototype.calcPlacement=function(){function i(n,i){if("auto"===t.css(i))return n;if("auto"===t.css(n))return i;var r=parseInt(t.css(n),10),u=parseInt(t.css(i),10);return r>u?i:n}if("auto"!==this.options.placement)return void(this.placement=this.options.placement);this.$element.hasClass("in")||this.$element.css("visiblity","hidden !important").addClass("in");var r=n(window).width()/this.$element.width(),u=n(window).height()/this.$element.height(),t=this.$element;this.placement=r>=u?i("left","right"):i("top","bottom");"hidden !important"===this.$element.css("visibility")&&this.$element.removeClass("in").css("visiblity","")};t.prototype.opposite=function(n){switch(n){case"top":return"bottom";case"left":return"right";case"bottom":return"top";case"right":return"left"}};t.prototype.getCanvasElements=function(){var t=this.options.canvas?n(this.options.canvas):this.$element,i=t.find("*").filter(function(){return"fixed"===n(this).css("position")}).not(this.options.exclude);return t.add(i)};t.prototype.slide=function(t,i,r){var e,u,f;if(!n.support.transition)return e={},e[this.placement]="+="+i,t.animate(e,350,r);u=this.placement;f=this.opposite(u);t.each(function(){"auto"!==n(this).css(u)&&n(this).css(u,(parseInt(n(this).css(u),10)||0)+i);"auto"!==n(this).css(f)&&n(this).css(f,(parseInt(n(this).css(f),10)||0)-i)});this.$element.one(n.support.transition.end,r).emulateTransitionEnd(350)};t.prototype.disableScrolling=function(){var t=n("body").width(),i="padding-"+this.opposite(this.placement),r;(void 0===n("body").data("offcanvas-style")&&n("body").data("offcanvas-style",n("body").attr("style")||""),n("body").css("overflow","hidden"),n("body").width()>t)&&(r=parseInt(n("body").css(i),10)+n("body").width()-t,setTimeout(function(){n("body").css(i,r)},1))};t.prototype.show=function(){var r,e;if(!this.state&&(r=n.Event("show.bs.offcanvas"),this.$element.trigger(r),!r.isDefaultPrevented())){this.state="slide-in";this.calcPlacement();var i=this.getCanvasElements(),t=this.placement,u=this.opposite(t),f=this.offset();-1!==i.index(this.$element)&&(n(this.$element).data("offcanvas-style",n(this.$element).attr("style")||""),this.$element.css(t,-1*f),this.$element.css(t));i.addClass("canvas-sliding").each(function(){void 0===n(this).data("offcanvas-style")&&n(this).data("offcanvas-style",n(this).attr("style")||"");"static"===n(this).css("position")&&n(this).css("position","relative");"auto"!==n(this).css(t)&&"0px"!==n(this).css(t)||"auto"!==n(this).css(u)&&"0px"!==n(this).css(u)||n(this).css(t,0)});this.options.disableScrolling&&this.disableScrolling();e=function(){"slide-in"==this.state&&(this.state="slid",i.removeClass("canvas-sliding").addClass("canvas-slid"),this.$element.trigger("shown.bs.offcanvas"))};setTimeout(n.proxy(function(){this.$element.addClass("in");this.slide(i,f,n.proxy(e,this))},this),1)}};t.prototype.hide=function(){var i;if("slid"===this.state&&(i=n.Event("hide.bs.offcanvas"),this.$element.trigger(i),!i.isDefaultPrevented())){this.state="slide-out";var t=n(".canvas-slid"),r=(this.placement,-1*this.offset()),u=function(){"slide-out"==this.state&&(this.state=null,this.placement=null,this.$element.removeClass("in"),t.removeClass("canvas-sliding"),t.add(this.$element).add("body").each(function(){n(this).attr("style",n(this).data("offcanvas-style")).removeData("offcanvas-style")}),this.$element.trigger("hidden.bs.offcanvas"))};t.removeClass("canvas-slid").addClass("canvas-sliding");setTimeout(n.proxy(function(){this.slide(t,r,n.proxy(u,this))},this),1)}};t.prototype.toggle=function(){"slide-in"!==this.state&&"slide-out"!==this.state&&this["slid"===this.state?"hide":"show"]()};t.prototype.calcClone=function(){this.$calcClone=this.$element.clone().html("").addClass("offcanvas-clone").removeClass("in").appendTo(n("body"))};t.prototype.recalc=function(){if("none"!==this.$calcClone.css("display")&&("slid"===this.state||"slide-in"===this.state)){this.state=null;this.placement=null;var t=this.getCanvasElements();this.$element.removeClass("in");t.removeClass("canvas-slid");t.add(this.$element).add("body").each(function(){n(this).attr("style",n(this).data("offcanvas-style")).removeData("offcanvas-style")})}};t.prototype.autohide=function(t){0===n(t.target).closest(this.$element).length&&this.hide()};i=n.fn.offcanvas;n.fn.offcanvas=function(i){return this.each(function(){var r=n(this),u=r.data("bs.offcanvas"),f=n.extend({},t.DEFAULTS,r.data(),"object"==typeof i&&i);u||r.data("bs.offcanvas",u=new t(this,f));"string"==typeof i&&u[i]()})};n.fn.offcanvas.Constructor=t;n.fn.offcanvas.noConflict=function(){return n.fn.offcanvas=i,this};n(document).on("click.bs.offcanvas.data-api","[data-toggle=offcanvas]",function(t){var u,i=n(this),e=i.attr("data-target")||t.preventDefault()||(u=i.attr("href"))&&u.replace(/.*(?=#[^\s]+$)/,""),f=n(e),r=f.data("bs.offcanvas"),o=r?"toggle":i.data();t.stopPropagation();r?r.toggle():f.offcanvas(o)})}(window.jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$element.on("click.bs.rowlink","td:not(.rowlink-skip)",n.proxy(this.click,this))},i;t.DEFAULTS={target:"a"};t.prototype.click=function(t){var i=n(t.currentTarget).closest("tr").find(this.options.target)[0],r;n(t.target)[0]!==i&&((t.preventDefault(),i.click)?i.click():document.createEvent&&(r=document.createEvent("MouseEvents"),r.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(r)))};i=n.fn.rowlink;n.fn.rowlink=function(i){return this.each(function(){var r=n(this),u=r.data("bs.rowlink");u||r.data("bs.rowlink",u=new t(this,i))})};n.fn.rowlink.Constructor=t;n.fn.rowlink.noConflict=function(){return n.fn.rowlink=i,this};n(document).on("click.bs.rowlink.data-api",'[data-link="row"]',function(t){if(0===n(t.target).closest(".rowlink-skip").length){var i=n(this);i.data("bs.rowlink")||(i.rowlink(i.data()),n(t.target).trigger("click.bs.rowlink"))}})}(window.jQuery);+function(n){"use strict";var r=void 0!==window.orientation,u=navigator.userAgent.toLowerCase().indexOf("android")>-1,f="Microsoft Internet Explorer"==window.navigator.appName,t=function(i,r){u||(this.$element=n(i),this.options=n.extend({},t.DEFAULTS,r),this.mask=String(this.options.mask),this.init(),this.listen(),this.checkVal())},i;t.DEFAULTS={mask:"",placeholder:"_",definitions:{9:"[0-9]",a:"[A-Za-z]",w:"[A-Za-z0-9]","*":"."}};t.prototype.init=function(){var t=this.options.definitions,i=this.mask.length;this.tests=[];this.partialPosition=this.mask.length;this.firstNonMaskPos=null;n.each(this.mask.split(""),n.proxy(function(n,r){"?"==r?(i--,this.partialPosition=n):t[r]?(this.tests.push(new RegExp(t[r])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1)):this.tests.push(null)},this));this.buffer=n.map(this.mask.split(""),n.proxy(function(n){if("?"!=n)return t[n]?this.options.placeholder:n},this));this.focusText=this.$element.val();this.$element.data("rawMaskFn",n.proxy(function(){return n.map(this.buffer,function(n,t){return this.tests[t]&&n!=this.options.placeholder?n:null}).join("")},this))};t.prototype.listen=function(){if(!this.$element.attr("readonly")){var t=(f?"paste":"input")+".mask";this.$element.on("unmask.bs.inputmask",n.proxy(this.unmask,this)).on("focus.bs.inputmask",n.proxy(this.focusEvent,this)).on("blur.bs.inputmask",n.proxy(this.blurEvent,this)).on("keydown.bs.inputmask",n.proxy(this.keydownEvent,this)).on("keypress.bs.inputmask",n.proxy(this.keypressEvent,this)).on(t,n.proxy(this.pasteEvent,this))}};t.prototype.caret=function(n,t){if(0!==this.$element.length){if("number"==typeof n)return t="number"==typeof t?t:n,this.$element.each(function(){if(this.setSelectionRange)this.setSelectionRange(n,t);else if(this.createTextRange){var i=this.createTextRange();i.collapse(!0);i.moveEnd("character",t);i.moveStart("character",n);i.select()}});if(this.$element[0].setSelectionRange)n=this.$element[0].selectionStart,t=this.$element[0].selectionEnd;else if(document.selection&&document.selection.createRange){var i=document.selection.createRange();n=0-i.duplicate().moveStart("character",-1e5);t=n+i.text.length}return{begin:n,end:t}}};t.prototype.seekNext=function(n){for(var t=this.mask.length;++n<=t&&!this.tests[n];);return n};t.prototype.seekPrev=function(n){for(;--n>=0&&!this.tests[n];);return n};t.prototype.shiftL=function(n,t){var u=this.mask.length,r,i;if(!(0>n)){for(r=n,i=this.seekNext(t);u>r;r++)if(this.tests[r]){if(!(u>i&&this.tests[r].test(this.buffer[i])))break;this.buffer[r]=this.buffer[i];this.buffer[i]=this.options.placeholder;i=this.seekNext(i)}this.writeBuffer();this.caret(Math.max(this.firstNonMaskPos,n))}};t.prototype.shiftR=function(n){for(var i,r,u=this.mask.length,t=n,f=this.options.placeholder;u>t;t++)if(this.tests[t]){if(i=this.seekNext(t),r=this.buffer[t],this.buffer[t]=f,!(u>i&&this.tests[i].test(r)))break;f=r}};t.prototype.unmask=function(){this.$element.unbind(".mask").removeData("inputmask")};t.prototype.focusEvent=function(){var r,n,t,i;this.focusText=this.$element.val();r=this.mask.length;n=this.checkVal();this.writeBuffer();t=this;i=function(){n==r?t.caret(0,n):t.caret(n)};i();setTimeout(i,50)};t.prototype.blurEvent=function(){this.checkVal();this.$element.val()!==this.focusText&&this.$element.trigger("change")};t.prototype.keydownEvent=function(n){var i=n.which;if(8==i||46==i||r&&127==i){var f=this.caret(),u=f.begin,t=f.end;return t-u==0&&(u=46!=i?this.seekPrev(u):t=this.seekNext(u-1),t=46==i?this.seekNext(t):t),this.clearBuffer(u,t),this.shiftL(u,t-1),!1}if(27==i)return(this.$element.val(this.focusText),this.caret(0,this.checkVal()),!1)};t.prototype.keypressEvent=function(n){var e=this.mask.length,r=n.which,t=this.caret(),i,u,f;return n.ctrlKey||n.altKey||n.metaKey||32>r?!0:r?(t.end-t.begin!=0&&(this.clearBuffer(t.begin,t.end),this.shiftL(t.begin,t.end-1)),i=this.seekNext(t.begin-1),e>i&&(u=String.fromCharCode(r),this.tests[i].test(u)&&(this.shiftR(i),this.buffer[i]=u,this.writeBuffer(),f=this.seekNext(i),this.caret(f))),!1):void 0};t.prototype.pasteEvent=function(){var n=this;setTimeout(function(){n.caret(n.checkVal(!0))},0)};t.prototype.clearBuffer=function(n,t){for(var r=this.mask.length,i=n;t>i&&r>i;i++)this.tests[i]&&(this.buffer[i]=this.options.placeholder)};t.prototype.writeBuffer=function(){return this.$element.val(this.buffer.join("")).val()};t.prototype.checkVal=function(n){for(var f,e=this.mask.length,u=this.$element.val(),i=-1,t=0,r=0;e>t;t++)if(this.tests[t]){for(this.buffer[t]=this.options.placeholder;r++<u.length;)if(f=u.charAt(r-1),this.tests[t].test(f)){this.buffer[t]=f;i=t;break}if(r>u.length)break}else this.buffer[t]==u.charAt(r)&&t!=this.partialPosition&&(r++,i=t);return!n&&i+1<this.partialPosition?(this.$element.val(""),this.clearBuffer(0,e)):(n||i+1>=this.partialPosition)&&(this.writeBuffer(),n||this.$element.val(this.$element.val().substring(0,i+1))),this.partialPosition?t:this.firstNonMaskPos};i=n.fn.inputmask;n.fn.inputmask=function(i){return this.each(function(){var r=n(this),u=r.data("bs.inputmask");u||r.data("bs.inputmask",u=new t(this,i))})};n.fn.inputmask.Constructor=t;n.fn.inputmask.noConflict=function(){return n.fn.inputmask=i,this};n(document).on("focus.bs.inputmask.data-api","[data-mask]",function(){var t=n(this);t.data("bs.inputmask")||t.inputmask(t.data())})}(window.jQuery);+function(n){"use strict";var r="Microsoft Internet Explorer"==window.navigator.appName,t=function(t,i){if(this.$element=n(t),this.$input=this.$element.find(":file"),0!==this.$input.length){this.name=this.$input.attr("name")||i.name;this.$hidden=this.$element.find('input[type=hidden][name="'+this.name+'"]');0===this.$hidden.length&&(this.$hidden=n('<input type="hidden">').insertBefore(this.$input));this.$preview=this.$element.find(".fileinput-preview");var r=this.$preview.css("height");"inline"!==this.$preview.css("display")&&"0px"!==r&&"none"!==r&&this.$preview.css("line-height",r);this.original={exists:this.$element.hasClass("fileinput-exists"),preview:this.$preview.html(),hiddenVal:this.$hidden.val()};this.listen()}},i;t.prototype.listen=function(){this.$input.on("change.bs.fileinput",n.proxy(this.change,this));n(this.$input[0].form).on("reset.bs.fileinput",n.proxy(this.reset,this));this.$element.find('[data-trigger="fileinput"]').on("click.bs.fileinput",n.proxy(this.trigger,this));this.$element.find('[data-dismiss="fileinput"]').on("click.bs.fileinput",n.proxy(this.clear,this))};t.prototype.change=function(t){var u=void 0===t.target.files?t.target&&t.target.value?[{name:t.target.value.replace(/^.+\\/,"")}]:[]:t.target.files,i;if(t.stopPropagation(),0===u.length)return void this.clear();if(this.$hidden.val(""),this.$hidden.attr("name",""),this.$input.attr("name",this.name),i=u[0],this.$preview.length>0&&("undefined"!=typeof i.type?i.type.match(/^image\/(gif|png|jpeg)$/):i.name.match(/\.(gif|png|jpe?g)$/i))&&"undefined"!=typeof FileReader){var e=new FileReader,r=this.$preview,f=this.$element;e.onload=function(t){var e=n("<img>");e[0].src=t.target.result;u[0].result=t.target.result;f.find(".fileinput-filename").text(i.name);"none"!=r.css("max-height")&&e.css("max-height",parseInt(r.css("max-height"),10)-parseInt(r.css("padding-top"),10)-parseInt(r.css("padding-bottom"),10)-parseInt(r.css("border-top"),10)-parseInt(r.css("border-bottom"),10));r.html(e);f.addClass("fileinput-exists").removeClass("fileinput-new");f.trigger("change.bs.fileinput",u)};e.readAsDataURL(i)}else this.$element.find(".fileinput-filename").text(i.name),this.$preview.text(i.name),this.$element.addClass("fileinput-exists").removeClass("fileinput-new"),this.$element.trigger("change.bs.fileinput")};t.prototype.clear=function(n){if(n&&n.preventDefault(),this.$hidden.val(""),this.$hidden.attr("name",this.name),this.$input.attr("name",""),r){var t=this.$input.clone(!0);this.$input.after(t);this.$input.remove();this.$input=t}else this.$input.val("");this.$preview.html("");this.$element.find(".fileinput-filename").text("");this.$element.addClass("fileinput-new").removeClass("fileinput-exists");void 0!==n&&(this.$input.trigger("change"),this.$element.trigger("clear.bs.fileinput"))};t.prototype.reset=function(){this.clear();this.$hidden.val(this.original.hiddenVal);this.$preview.html(this.original.preview);this.$element.find(".fileinput-filename").text("");this.original.exists?this.$element.addClass("fileinput-exists").removeClass("fileinput-new"):this.$element.addClass("fileinput-new").removeClass("fileinput-exists");this.$element.trigger("reset.bs.fileinput")};t.prototype.trigger=function(n){this.$input.trigger("click");n.preventDefault()};i=n.fn.fileinput;n.fn.fileinput=function(i){return this.each(function(){var u=n(this),r=u.data("bs.fileinput");r||u.data("bs.fileinput",r=new t(this,i));"string"==typeof i&&r[i]()})};n.fn.fileinput.Constructor=t;n.fn.fileinput.noConflict=function(){return n.fn.fileinput=i,this};n(document).on("click.fileinput.data-api",'[data-provides="fileinput"]',function(t){var i=n(this),r;i.data("bs.fileinput")||(i.fileinput(i.data()),r=n(t.target).closest('[data-dismiss="fileinput"],[data-trigger="fileinput"]'),r.length>0&&(t.preventDefault(),r.trigger("click.bs.fileinput")))})}(window.jQuery);window.slimmage={verbose:!1,tryWebP:!0,maxWidth:2048,widthStep:160,jpegQuality:90,jpegRetinaQuality:80,webpTimeout:300},function(n){function i(){if(t.verbose&&n.console&&n.console.log)try{n.console.log.apply(n.console,arguments)}catch(i){}}var t=window.slimmage||{};window.slimmage=t;void 0===t.verbose&&(t.verbose=!1);void 0===t.tryWebP&&(t.tryWebP=!1);void 0===t.maxWidth&&(t.maxWidth=2048);void 0===t.widthStep&&(t.widthStep=160);void 0===t.jpegQuality&&(t.jpegQuality=90);void 0===t.jpegRetinaQuality&&(t.jpegRetinaQuality=80);void 0===t.webpTimeout&&(t.webpTimeout=0);t.changed=[];t.j=function(){if(t.tryWebP&&!t.c){t.c=!0;var n=new Image;n.onload=n.onerror=function(){t.webp=2==n.height;t.c=!1;t.a&&t.a()};n.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"}};t.j();t.b=function(n,t,i){t=t.toLowerCase();"class"==t?n.className=i:"tabindex"==t?n.tabIndex=i:"usemap"==t?n.useMap=i:n.setAttribute(t,i)};t.setAttribute=t.b;t.f=function(n){return"none"===n||null===n||void 0===n||""===n||!1===n};t.getCssValue=function(n,i){var r="undefined"!=typeof window.getComputedStyle&&window.getComputedStyle(n,null).getPropertyValue(i);return t.f(r)?(n.currentStyle&&(r=n.currentStyle[i.replace(/([a-z])\-([a-z])/,function(n,t,i){return t+i.toUpperCase()})]||n.currentStyle[i]),t.f(r)?null:r):r};t.getCssPixels=function(n,i){var r=t.getCssValue(n,i),u;return null===r||"0"===r||0===r?r:"px"==r.slice(-2)?parseFloat(r.slice(0,-2)):(u=document.createElement("div"),u.style.overflow=u.style.visibility="hidden",u.style.cssFloat="none",n.parentNode.appendChild(u),u.style.width=r,r=u.offsetWidth,n.parentNode.removeChild(u),r)};t.g=function(n){for(var i=[],t=n.length>>>0;t--;)i[t]=n[t];return i};t.mutateUrl=function(n,t,i,r){n=/^([^?#]*)?(\?([^#]*))?(#.*)?/.exec(n);var u=n[3]||"",f=/(^&*|&+)([^&=]*)=?([^&]*)/g;return u.replace(f,t),t="?"+u.replace(f,i).replace(/(?:^\?*&*)|(?:[?&]+$)/g,"").replace(/&&+/g,"&"),(n[1]||"")+r(t)+(n[4]||"")};t.getImageInfo=function(n,i,r,u){var o={webp:t.webp,width:n,dpr:window.devicePixelRatio||1,src:i,element:u},h,s,e,f;return(u=t.webp?65:t.jpegRetinaQuality,h=t.webp?78:t.jpegQuality,o.quality=1.49<o.dpr?u:h,o.requestedWidth=Math.min(t.maxWidth,Math.round(Math.ceil(n*o.dpr/t.widthStep)*t.widthStep)),(n=t.adjustImageParameters)&&"function"==typeof n&&n(o),s=o.requestedWidth,s>r)?(e={},f={},{src:t.mutateUrl(i,function(n,t,i,r){e[i.toLowerCase()]=r},function(n,t,i){if(void 0===f.zoom&&(f.zoom=parseFloat(e.zoom||1),isNaN(f.zoom)&&(f.zoom=1),f.i=(s/f.zoom).toFixed()),void 0===f.h){var r=parseFloat(e.width||e.i||e.n),u=parseFloat(e.height||e.e||e.m);!isNaN(r)&&!isNaN(u)&&0<r&&0<u?(f.h=r/u,f.e=(s/f.zoom/r*u).toFixed()):f.h="noclue"}return i.match(/^format$/i)&&o.webp?t+"format=webp":i.match(/^quality/i)?t+"quality="+o.quality:i.match(/^(w|width|maxwidth)$/i)?t+i+"="+f.i:i.match(/^(h|height|maxheight)$/i)?t+i+"="+f.e:n},function(n){return n}),"data-pixel-width":s}):null};t.adjustImageSrc=function(n,r){var f=t.getCssPixels(n,"max-width"),u=t.getImageInfo(f,r,n.getAttribute("data-pixel-width")|0,n);u?(n.src=u.src,t.b(n,"data-pixel-width",u["data-pixel-width"]),t.enforceCss&&(f<u["data-pixel-width"]?(n.style.width=t.getCssValue(n,"max-width"),t.b(n,"data-width-enforced",!0)):n.style.width="auto"),t.changed.push(n),i("Slimming: updating "+u.src)):t.enforceCss&&n.getAttribute("data-width-enforced")&&(u=parseFloat(n.getAttribute("data-pixel-width")),!isNaN(u)&&f>=u&&(n.style.width="auto",n.removeAttribute("data-width-enforced")))};t.a=function(r){var h,e,o,s,l,a,u,c,f;if(0<t.d&&n.clearTimeout(t.d),t.d=0,t.c&&0<t.webpTimeout&&!t.l&&(t.l=!0,r=t.webpTimeout),r&&0<r)t.d=n.setTimeout(t.a,r);else{for(r=(new Date).getTime(),a=0,l=t.g(n.document.getElementsByTagName("noscript")),h=0,e=l.length;h<e;h++)if(u=l[h],null!==u.getAttribute("data-slimmage")){if(o=n.document.createElement("div"),(s=u.textContent||u.innerHTML)&&0!==s.replace(/[\s\t\r\n]+/,"").length)o.innerHTML=s.replace(/\s+src\s*=\s*(['"])/i," data-src=$1").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");else{for(s=new Image,c=0;c<u.attributes.length;c++)f=u.attributes[c],f&&f.specified&&0===f.name.indexOf("data-img-")&&t.b(s,f.name.slice(9-f.name.length),f.value);o.appendChild(s)}for(c=o.getElementsByTagName("img"),o=0,s=c.length;o<s;o++)f=c[o],null!==f.src&&0<f.src.length&&(t.b(f,"data-src",f.src),f.src=""),t.b(f,"data-slimmage",!0),u.parentNode.insertBefore(f,u),a++;u.parentNode.removeChild(u)}for("function"==typeof t.beforeAdjustSrc&&t.beforeAdjustSrc(),h=0,u=t.g(n.document.getElementsByTagName("img")),e=0,l=u.length;e<l;e++)null!==u[e].getAttribute("data-slimmage")&&(o=u[e].getAttribute("data-src")||u[e].src,t.adjustImageSrc(u[e],o),h++);e=t.changed.slice();t.changed.length=0;(0<e.length||!t.k)&&"function"==typeof t.readyCallback&&(t.readyCallback(e),t.k=!0);i("Slimmage: restored "+a+" images from noscript tags, checked "+h+" images, changed "+e.length+". "+((new Date).getTime()-r)+"ms")}};t.checkResponsiveImages=t.a;n.addEventListener?(n.addEventListener("resize",function(){t.a(500)},!1),n.addEventListener("DOMContentLoaded",function(){t.a();n.removeEventListener("load",t.a,!1)},!1),n.addEventListener("load",t.a,!1)):n.attachEvent&&(n.attachEvent("onload",t.a),n.attachEvent("onresize",function(){t.a(500)}))}(this),function(n,t){typeof define=="function"&&define.amd?define(["jquery"],t):typeof exports=="object"?module.exports=t(require("jquery")):n.jquery_dotdotdot_js=t(n.jQuery)}(this,function(n){return!function(n){"use strict";function e(){f=n(window);t={};u={};r={};n.each([t,u,r],function(n,t){t.add=function(n){n=n.split(" ");for(var i=0,r=n.length;i<r;i++)t[n[i]]=t.ddd(n[i])}});t.ddd=function(n){return"ddd-"+n};t.add("truncated keep text");u.ddd=function(n){return"ddd-"+n};u.add("text");r.ddd=function(n){return n+".ddd"};r.add("resize");e=function(){}}var i="dotdotdot",o="3.1.0",t,u,r,f;n[i]&&n[i].version>o||(n[i]=function(n,t){this.$dot=n;this.api=["getInstance","truncate","restore","destroy","watch","unwatch"];this.opts=t;var r=this.$dot.data(i);return r&&r.destroy(),this.init(),this.truncate(),this.opts.watch&&this.watch(),this},n[i].version=o,n[i].uniqueId=0,n[i].defaults={ellipsis:"… ",callback:function(){},truncate:"word",tolerance:0,keep:null,watch:"window",height:null},n[i].prototype={init:function(){this.watchTimeout=null;this.watchInterval=null;this.uniqueId=n[i].uniqueId++;this.originalContent=this.$dot.contents();this.originalStyle=this.$dot.attr("style")||"";"break-word"!==this.$dot.css("word-wrap")&&this.$dot.css("word-wrap","break-word");"nowrap"===this.$dot.css("white-space")&&this.$dot.css("white-space","normal");null===this.opts.height&&(this.opts.height=this._getMaxHeight())},getInstance:function(){return this},truncate:function(){var r=this,i;return this.$inner=this.$dot.wrapInner("<div />").children().css({display:"block",height:"auto",width:"auto",border:"none",padding:0,margin:0}),this.$inner.contents().detach().end().append(this.originalContent.clone(!0)),this.$inner.find("script, style").addClass(t.keep),this.opts.keep&&this.$inner.find(this.opts.keep).addClass(t.keep),this.$inner.find("*").not("."+t.keep).add(this.$inner).contents().each(function(){var u=this,i=n(this),f;if(3==u.nodeType){if(i.parent().is("table, thead, tfoot, tr, dl, ul, ol, video"))return void i.remove();i.parent().contents().length>1&&(f=n('<span class="'+t.text+'">'+r.__getTextContent(u)+"<\/span>").css({display:"inline",height:"auto",width:"auto",border:"none",padding:0,margin:0}),i.replaceWith(f))}else 8==u.nodeType&&i.remove()}),this.maxHeight=this._getMaxHeight(),i=this._truncateNode(this.$dot),this.$dot[i?"addClass":"removeClass"](t.truncated),this.$inner.find("."+t.text).each(function(){n(this).replaceWith(n(this).contents())}),this.$inner.find("."+t.keep).removeClass(t.keep),this.$inner.replaceWith(this.$inner.contents()),this.$inner=null,this.opts.callback.call(this.$dot[0],i),i},restore:function(){this.unwatch();this.$dot.contents().detach().end().append(this.originalContent).attr("style",this.originalStyle).removeClass(t.truncated)},destroy:function(){this.restore();this.$dot.data(i,null)},watch:function(){var n=this,t;this.unwatch();t={};"window"==this.opts.watch?f.on(r.resize+n.uniqueId,function(){n.watchTimeout&&clearTimeout(n.watchTimeout);n.watchTimeout=setTimeout(function(){t=n._watchSizes(t,f,"width","height")},100)}):this.watchInterval=setInterval(function(){t=n._watchSizes(t,n.$dot,"innerWidth","innerHeight")},500)},unwatch:function(){f.off(r.resize+this.uniqueId);this.watchInterval&&clearInterval(this.watchInterval);this.watchTimeout&&clearTimeout(this.watchTimeout)},_api:function(){var i=this,t={};return n.each(this.api,function(){var n=this;t[n]=function(){var r=i[n].apply(i,arguments);return"undefined"==typeof r?t:r}}),t},_truncateNode:function(i){var r=this,u=!1,f=!1;return n(i.children().get().reverse()).not("."+t.keep).each(function(){var i=(n(this).contents()[0],n(this)),e;if(!u&&!i.hasClass(t.keep)){if(i.children().length)u=r._truncateNode(i);else if(!r._fits()||f)if(e=n("<span>").css("display","none"),i.replaceWith(e),i.detach(),r._fits()){if("node"==r.opts.truncate)return!0;e.replaceWith(i);u=r._truncateWord(i);u||(f=!0,i.detach())}else e.remove();i.contents().length||i.remove()}}),u},_truncateWord:function(n){var i=n.contents()[0];if(!i)return!1;for(var t=this,o=this.__getTextContent(i),u=o.indexOf(" ")!==-1?" ":"　",f=o.split(u),e="",r=f.length;r>=0;r--){if(e=f.slice(0,r).join(u),0==r)return"letter"==t.opts.truncate&&(t.__setTextContent(i,f.slice(0,r+1).join(u)),t._truncateLetter(i));if(e.length&&(t.__setTextContent(i,t._addEllipsis(e)),t._fits()))return"letter"!=t.opts.truncate||(t.__setTextContent(i,f.slice(0,r+1).join(u)),t._truncateLetter(i))}return!1},_truncateLetter:function(n){for(var t=this,f=this.__getTextContent(n),u=f.split(""),i="",r=u.length;r>=0;r--)if(i=u.slice(0,r).join(""),i.length&&(t.__setTextContent(n,t._addEllipsis(i)),t._fits()))return!0;return!1},_fits:function(){return this.$inner.innerHeight()<=this.maxHeight+this.opts.tolerance},_addEllipsis:function(t){for(var i=[" ","　",",",";",".","!","?"];n.inArray(t.slice(-1),i)>-1;)t=t.slice(0,-1);return t+this.opts.ellipsis},_getMaxHeight:function(){var n,t,r;if("number"==typeof this.opts.height)return this.opts.height;for(var n=["maxHeight","height"],i=0,t=0;t<n.length;t++)if(i=window.getComputedStyle(this.$dot[0])[n[t]],"px"==i.slice(-2)){i=parseFloat(i);break}n=[];switch(this.$dot.css("boxSizing")){case"border-box":n.push("borderTopWidth");n.push("borderBottomWidth");case"padding-box":n.push("paddingTop");n.push("paddingBottom")}for(t=0;t<n.length;t++)r=window.getComputedStyle(this.$dot[0])[n[t]],"px"==r.slice(-2)&&(i-=parseFloat(r));return Math.max(i,0)},_watchSizes:function(n,t,i,r){if(this.$dot.is(":visible")){var u={width:t[i](),height:t[r]()};return n.width==u.width&&n.height==u.height||this.truncate(),u}return n},__getTextContent:function(n){for(var i=["nodeValue","textContent","innerText"],t=0;t<i.length;t++)if("string"==typeof n[i[t]])return n[i[t]];return""},__setTextContent:function(n,t){for(var r=["nodeValue","textContent","innerText"],i=0;i<r.length;i++)n[r[i]]=t}},n.fn[i]=function(t){return e(),t=n.extend(!0,{},n[i].defaults,t),this.each(function(){n(this).data(i,new n[i](n(this),t)._api())})})}(n),!0}),function(n){n.cookiesDirective=function(u){var f=n.extend({explicitConsent:!0,position:"top",duration:10,limit:0,message:null,acceptText:null,buttonText:null,scriptWrapper:function(){}},u),e;i("cookiesDirective")?f.scriptWrapper.call():(f.limit>0?(i("cookiesDisclosureCount")?(e=i("cookiesDisclosureCount"),e++,t("cookiesDisclosureCount",e,1)):t("cookiesDisclosureCount",1,1),f.limit>=i("cookiesDisclosureCount")&&r(f)):r(f),f.explicitConsent||(t("implicit",1,365),f.scriptWrapper.call()))};n.cookiesDirective.loadScript=function(t){var r=n.extend({uri:"",appendTo:"body"},t),u=String(r.appendTo),i=document.createElement("script");i.src=r.uri;i.type="text/javascript";i.onload=i.onreadystatechange=function(){!i.readyState||i.readyState=="loaded"||i.readyState=="complete"};switch(r.appendTo){case"head":n("head").append(i);break;case"body":n("body").append(i);break;default:n("#"+u).append(i)}};var i=function(n){for(var r=n+"=",u=document.cookie.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return null},t=function(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="";document.cookie=n+"="+t+u+"; path=/"},u=function(){var n,i,r,t;return navigator.appName=="Microsoft Internet Explorer"?(i=navigator.userAgent,r=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),r.exec(i)!=null&&(n=parseFloat(RegExp.$1)),n<=8?!0:n==9?document.compatMode=="BackCompat"?(t=document.createElement("meta"),t.content="IE=EmulateIE8",document.getElementsByTagName("head")[0].appendChild(t),!0):!1:!1):!1},r=function(i){var r=i,f,o,e;r.css="fixed";u()&&(r.position="top",r.css="absolute");f="";f+='<div id="cookiesdirective" class="cookieAlert '+r.position.toLowerCase()+'">';f+='<div class="container">';f+='<div class="row">';f+='<div class="col-12">';f+='<div class="cookieAlertContainer">';f+=r.message;r.explicitConsent?(f+='<div class="cookieAlertSubmit">',f+=r.buttonText?'<a href="javascript:void(0)" name="explicitsubmit" id="explicitsubmit" class="cookieAlertSubmitButton">'+r.buttonText+"<\/a><\/div>":'<a href="javascript:void(0)" name="explicitsubmit" id="explicitsubmit" class="generalButton">Continue<\/a><\/div>'):f+=r.buttonText?'<a href="#" name="impliedsubmit" id="impliedsubmit" class="generalButton">'+r.buttonText+"<\/a><\/div>":'<a href="#" name="impliedsubmit" id="impliedsubmit" class="generalButton">Do not show this message again<\/a><\/div>';f+="<\/div><\/div><\/div><\/div>";n("body").append(f);o=r.position.toLowerCase();o!="top"&&o!="bottom"&&(o="top");e=[];o=="top"?(e["in"]={top:"0"},n("#cookiesdirective").css("bottom","auto"),e.out={top:"-300"}):(e["in"]={bottom:"0"},e.out={bottom:"-300"});n("#cookiesdirective").animate(e["in"],1e3,function(){r.explicitConsent?n("#explicitsubmit").click(function(){var i=window.location.hash.indexOf("#")>-1?window.location.hash.replace("#",""):"";t("cookiesDirective",1,365);n("#cookiesdirective").animate(e.out,1e3,function(){n("#cookiesdirective").remove();i&&(window.location.hash=i);location.reload(!0)})}):n("#impliedsubmit").click(function(){t("cookiesDirective",1,365);n("#cookiesdirective").animate(e.out,1e3,function(){n("#cookiesdirective").remove()})});r.duration>0&&setTimeout(function(){n("#cookiesdirective").animate({opacity:"0"},2e3,function(){n("#cookiesdirective").css(o,"-300px")})},r.duration*1e3)})}}(jQuery);!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";var t=window.Slick||{};t=function(){function t(t,r){var f,u=this;u.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:n(t),appendDots:n(t),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous<\/button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next<\/button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,i){return n('<button type="button" data-role="none" role="button" tabindex="0" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3};u.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1};n.extend(u,u.initials);u.activeBreakpoint=null;u.animType=null;u.animProp=null;u.breakpoints=[];u.breakpointSettings=[];u.cssTransitions=!1;u.focussed=!1;u.interrupted=!1;u.hidden="hidden";u.paused=!0;u.positionProp=null;u.respondTo=null;u.rowCount=1;u.shouldClick=!0;u.$slider=n(t);u.$slidesCache=null;u.transformType=null;u.transitionType=null;u.visibilityChange="visibilitychange";u.windowWidth=0;u.windowTimer=null;f=n(t).data("slick")||{};u.options=n.extend({},u.defaults,r,f);u.currentSlide=u.options.initialSlide;u.originalSettings=u.options;"undefined"!=typeof document.mozHidden?(u.hidden="mozHidden",u.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(u.hidden="webkitHidden",u.visibilityChange="webkitvisibilitychange");u.autoPlay=n.proxy(u.autoPlay,u);u.autoPlayClear=n.proxy(u.autoPlayClear,u);u.autoPlayIterator=n.proxy(u.autoPlayIterator,u);u.changeSlide=n.proxy(u.changeSlide,u);u.clickHandler=n.proxy(u.clickHandler,u);u.selectHandler=n.proxy(u.selectHandler,u);u.setPosition=n.proxy(u.setPosition,u);u.swipeHandler=n.proxy(u.swipeHandler,u);u.dragHandler=n.proxy(u.dragHandler,u);u.keyHandler=n.proxy(u.keyHandler,u);u.instanceUid=i++;u.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;u.registerBreakpoints();u.init(!0)}var i=0;return t}();t.prototype.activateADA=function(){var n=this;n.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})};t.prototype.addSlide=t.prototype.slickAdd=function(t,i,r){var u=this;if("boolean"==typeof i)r=i,i=null;else if(0>i||i>=u.slideCount)return!1;u.unload();"number"==typeof i?0===i&&0===u.$slides.length?n(t).appendTo(u.$slideTrack):r?n(t).insertBefore(u.$slides.eq(i)):n(t).insertAfter(u.$slides.eq(i)):r===!0?n(t).prependTo(u.$slideTrack):n(t).appendTo(u.$slideTrack);u.$slides=u.$slideTrack.children(this.options.slide);u.$slideTrack.children(this.options.slide).detach();u.$slideTrack.append(u.$slides);u.$slides.each(function(t,i){n(i).attr("data-slick-index",t)});u.$slidesCache=u.$slides;u.reinit()};t.prototype.animateHeight=function(){var n=this,t;1===n.options.slidesToShow&&n.options.adaptiveHeight===!0&&n.options.vertical===!1&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.animate({height:t},n.options.speed))};t.prototype.animateSlide=function(t,i){var u={},r=this;r.animateHeight();r.options.rtl===!0&&r.options.vertical===!1&&(t=-t);r.transformsEnabled===!1?r.options.vertical===!1?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,i):r.cssTransitions===!1?(r.options.rtl===!0&&(r.currentLeft=-r.currentLeft),n({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(n){n=Math.ceil(n);r.options.vertical===!1?(u[r.animType]="translate("+n+"px, 0px)",r.$slideTrack.css(u)):(u[r.animType]="translate(0px,"+n+"px)",r.$slideTrack.css(u))},complete:function(){i&&i.call()}})):(r.applyTransition(),t=Math.ceil(t),u[r.animType]=r.options.vertical===!1?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(u),i&&setTimeout(function(){r.disableTransition();i.call()},r.options.speed))};t.prototype.getNavTarget=function(){var i=this,t=i.options.asNavFor;return t&&null!==t&&(t=n(t).not(i.$slider)),t};t.prototype.asNavFor=function(t){var r=this,i=r.getNavTarget();null!==i&&"object"==typeof i&&i.each(function(){var i=n(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)})};t.prototype.applyTransition=function(n){var t=this,i={};i[t.transitionType]=t.options.fade===!1?t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:"opacity "+t.options.speed+"ms "+t.options.cssEase;t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.autoPlay=function(){var n=this;n.autoPlayClear();n.slideCount>n.options.slidesToShow&&(n.autoPlayTimer=setInterval(n.autoPlayIterator,n.options.autoplaySpeed))};t.prototype.autoPlayClear=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer)};t.prototype.autoPlayIterator=function(){var n=this,t=n.currentSlide+n.options.slidesToScroll;n.paused||n.interrupted||n.focussed||(n.options.infinite===!1&&(1===n.direction&&n.currentSlide+1===n.slideCount-1?n.direction=0:0===n.direction&&(t=n.currentSlide-n.options.slidesToScroll,n.currentSlide-1==0&&(n.direction=1))),n.slideHandler(t))};t.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&(t.$prevArrow=n(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=n(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))};t.prototype.buildDots=function(){var i,r,t=this;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){for(t.$slider.addClass("slick-dotted"),r=n("<ul />").addClass(t.options.dotsClass),i=0;i<=t.getDotCount();i+=1)r.append(n("<li />").append(t.options.customPaging.call(this,t,i)));t.$dots=r.appendTo(t.options.appendDots);t.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}};t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide");t.slideCount=t.$slides.length;t.$slides.each(function(t,i){n(i).attr("data-slick-index",t).data("originalStyling",n(i).attr("style")||"")});t.$slider.addClass("slick-slider");t.$slideTrack=0===t.slideCount?n('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent();t.$list=t.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent();t.$slideTrack.css("opacity",0);(t.options.centerMode===!0||t.options.swipeToSlide===!0)&&(t.options.slidesToScroll=1);n("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading");t.setupInfinite();t.buildArrows();t.buildDots();t.updateDots();t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0);t.options.draggable===!0&&t.$list.addClass("draggable")};t.prototype.buildRows=function(){var t,i,r,f,c,u,e,n=this,o,s,h;if(f=document.createDocumentFragment(),u=n.$slider.children(),n.options.rows>1){for(e=n.options.slidesPerRow*n.options.rows,c=Math.ceil(u.length/e),t=0;c>t;t++){for(o=document.createElement("div"),i=0;i<n.options.rows;i++){for(s=document.createElement("div"),r=0;r<n.options.slidesPerRow;r++)h=t*e+(i*n.options.slidesPerRow+r),u.get(h)&&s.appendChild(u.get(h));o.appendChild(s)}f.appendChild(o)}n.$slider.empty().append(f);n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}};t.prototype.checkResponsive=function(t,i){var f,u,e,r=this,o=!1,s=r.$slider.width(),h=window.innerWidth||n(window).width();if("window"===r.respondTo?e=h:"slider"===r.respondTo?e=s:"min"===r.respondTo&&(e=Math.min(h,s)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){u=null;for(f in r.breakpoints)r.breakpoints.hasOwnProperty(f)&&(r.originalSettings.mobileFirst===!1?e<r.breakpoints[f]&&(u=r.breakpoints[f]):e>r.breakpoints[f]&&(u=r.breakpoints[f]));null!==u?null!==r.activeBreakpoint?(u!==r.activeBreakpoint||i)&&(r.activeBreakpoint=u,"unslick"===r.breakpointSettings[u]?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):(r.activeBreakpoint=u,"unslick"===r.breakpointSettings[u]?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t),o=u);t||o===!1||r.$slider.trigger("breakpoint",[r,o])}};t.prototype.changeSlide=function(t,i){var f,e,o,r=this,u=n(t.currentTarget),s;switch(u.is("a")&&t.preventDefault(),u.is("li")||(u=u.closest("li")),o=r.slideCount%r.options.slidesToScroll!=0,f=o?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":e=0===f?r.options.slidesToScroll:r.options.slidesToShow-f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-e,!1,i);break;case"next":e=0===f?r.options.slidesToScroll:f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+e,!1,i);break;case"index":s=0===t.data.index?0:t.data.index||u.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(s),!1,i);u.children().trigger("focus");break;default:return}};t.prototype.checkNavigable=function(n){var t,i,u=this,r;if(t=u.getNavigableIndexes(),i=0,n>t[t.length-1])n=t[t.length-1];else for(r in t){if(n<t[r]){n=i;break}i=t[r]}return n};t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&n("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",n.proxy(t.interrupt,t,!0)).off("mouseleave.slick",n.proxy(t.interrupt,t,!1));t.$slider.off("focus.slick blur.slick");t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide));t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler);t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler);t.$list.off("touchend.slick mouseup.slick",t.swipeHandler);t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler);t.$list.off("click.slick",t.clickHandler);n(document).off(t.visibilityChange,t.visibility);t.cleanUpSlideEvents();t.options.accessibility===!0&&t.$list.off("keydown.slick",t.keyHandler);t.options.focusOnSelect===!0&&n(t.$slideTrack).children().off("click.slick",t.selectHandler);n(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange);n(window).off("resize.slick.slick-"+t.instanceUid,t.resize);n("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault);n(window).off("load.slick.slick-"+t.instanceUid,t.setPosition);n(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",n.proxy(t.interrupt,t,!0));t.$list.off("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.cleanUpRows=function(){var n,t=this;t.options.rows>1&&(n=t.$slides.children().children(),n.removeAttr("style"),t.$slider.empty().append(n))};t.prototype.clickHandler=function(n){var t=this;t.shouldClick===!1&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())};t.prototype.destroy=function(t){var i=this;i.autoPlayClear();i.touchObject={};i.cleanUpEvents();n(".slick-cloned",i.$slider).detach();i.$dots&&i.$dots.remove();i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove());i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove());i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){n(this).attr("style",n(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides));i.cleanUpRows();i.$slider.removeClass("slick-slider");i.$slider.removeClass("slick-initialized");i.$slider.removeClass("slick-dotted");i.unslicked=!0;t||i.$slider.trigger("destroy",[i])};t.prototype.disableTransition=function(n){var t=this,i={};i[t.transitionType]="";t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.fadeSlide=function(n,t){var i=this;i.cssTransitions===!1?(i.$slides.eq(n).css({zIndex:i.options.zIndex}),i.$slides.eq(n).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(n),i.$slides.eq(n).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(n);t.call()},i.options.speed))};t.prototype.fadeSlideOut=function(n){var t=this;t.cssTransitions===!1?t.$slides.eq(n).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(n),t.$slides.eq(n).css({opacity:0,zIndex:t.options.zIndex-2}))};t.prototype.filterSlides=t.prototype.slickFilter=function(n){var t=this;null!==n&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(n).appendTo(t.$slideTrack),t.reinit())};t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(i){i.stopImmediatePropagation();var r=n(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=r.is(":focus"),t.autoPlay())},0)})};t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){var n=this;return n.currentSlide};t.prototype.getDotCount=function(){var n=this,i=0,r=0,t=0;if(n.options.infinite===!0)for(;i<n.slideCount;)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else if(n.options.centerMode===!0)t=n.slideCount;else if(n.options.asNavFor)for(;i<n.slideCount;)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else t=1+Math.ceil((n.slideCount-n.options.slidesToShow)/n.options.slidesToScroll);return t-1};t.prototype.getLeft=function(n){var f,r,i,t=this,u=0;return t.slideOffset=0,r=t.$slides.first().outerHeight(!0),t.options.infinite===!0?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1,u=r*t.options.slidesToShow*-1),t.slideCount%t.options.slidesToScroll!=0&&n+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(n>t.slideCount?(t.slideOffset=(t.options.slidesToShow-(n-t.slideCount))*t.slideWidth*-1,u=(t.options.slidesToShow-(n-t.slideCount))*r*-1):(t.slideOffset=t.slideCount%t.options.slidesToScroll*t.slideWidth*-1,u=t.slideCount%t.options.slidesToScroll*r*-1))):n+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(n+t.options.slidesToShow-t.slideCount)*t.slideWidth,u=(n+t.options.slidesToShow-t.slideCount)*r),t.slideCount<=t.options.slidesToShow&&(t.slideOffset=0,u=0),t.options.centerMode===!0&&t.options.infinite===!0?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:t.options.centerMode===!0&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),f=t.options.vertical===!1?n*t.slideWidth*-1+t.slideOffset:n*r*-1+u,t.options.variableWidth===!0&&(i=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow),f=t.options.rtl===!0?i[0]?-1*(t.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t.options.centerMode===!0&&(i=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow+1),f=t.options.rtl===!0?i[0]?-1*(t.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,f+=(t.$list.width()-i.outerWidth())/2)),f};t.prototype.getOption=t.prototype.slickGetOption=function(n){var t=this;return t.options[n]};t.prototype.getNavigableIndexes=function(){var i,n=this,t=0,r=0,u=[];for(n.options.infinite===!1?i=n.slideCount:(t=-1*n.options.slidesToScroll,r=-1*n.options.slidesToScroll,i=2*n.slideCount);i>t;)u.push(t),t=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;return u};t.prototype.getSlick=function(){return this};t.prototype.getSlideCount=function(){var u,i,r,t=this;return r=t.options.centerMode===!0?t.slideWidth*Math.floor(t.options.slidesToShow/2):0,t.options.swipeToSlide===!0?(t.$slideTrack.find(".slick-slide").each(function(u,f){if(f.offsetLeft-r+n(f).outerWidth()/2>-1*t.swipeLeft)return(i=f,!1)}),u=Math.abs(n(i).attr("data-slick-index")-t.currentSlide)||1):t.options.slidesToScroll};t.prototype.goTo=t.prototype.slickGoTo=function(n,t){var i=this;i.changeSlide({data:{message:"index",index:parseInt(n)}},t)};t.prototype.init=function(t){var i=this;n(i.$slider).hasClass("slick-initialized")||(n(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler());t&&i.$slider.trigger("init",[i]);i.options.accessibility===!0&&i.initADA();i.options.autoplay&&(i.paused=!1,i.autoPlay())};t.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"});t.$slideTrack.attr("role","listbox");t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){n(this).attr({role:"option","aria-describedby":"slick-slide"+t.instanceUid+i})});null!==t.$dots&&t.$dots.attr("role","tablist").find("li").each(function(i){n(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+i,id:"slick-slide"+t.instanceUid+i})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar");t.activateADA()};t.prototype.initArrowEvents=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},n.changeSlide),n.$nextArrow.off("click.slick").on("click.slick",{message:"next"},n.changeSlide))};t.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&n("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide);t.options.dots===!0&&t.options.pauseOnDotsHover===!0&&n("li",t.$dots).on("mouseenter.slick",n.proxy(t.interrupt,t,!0)).on("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",n.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",n.proxy(t.interrupt,t,!1)))};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.initSlideEvents();t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler);t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler);t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler);t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler);t.$list.on("click.slick",t.clickHandler);n(document).on(t.visibilityChange,n.proxy(t.visibility,t));t.options.accessibility===!0&&t.$list.on("keydown.slick",t.keyHandler);t.options.focusOnSelect===!0&&n(t.$slideTrack).children().on("click.slick",t.selectHandler);n(window).on("orientationchange.slick.slick-"+t.instanceUid,n.proxy(t.orientationChange,t));n(window).on("resize.slick.slick-"+t.instanceUid,n.proxy(t.resize,t));n("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault);n(window).on("load.slick.slick-"+t.instanceUid,t.setPosition);n(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.initUI=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.show(),n.$nextArrow.show());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.show()};t.prototype.keyHandler=function(n){var t=this;n.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===n.keyCode&&t.options.accessibility===!0?t.changeSlide({data:{message:t.options.rtl===!0?"next":"previous"}}):39===n.keyCode&&t.options.accessibility===!0&&t.changeSlide({data:{message:t.options.rtl===!0?"previous":"next"}}))};t.prototype.lazyLoad=function(){function f(i){n("img[data-lazy]",i).each(function(){var i=n(this),r=n(this).attr("data-lazy"),u=document.createElement("img");u.onload=function(){i.animate({opacity:0},100,function(){i.attr("src",r).animate({opacity:1},200,function(){i.removeAttr("data-lazy").removeClass("slick-loading")});t.$slider.trigger("lazyLoaded",[t,i,r])})};u.onerror=function(){i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");t.$slider.trigger("lazyLoadError",[t,i,r])};u.src=r})}var e,r,i,u,t=this;t.options.centerMode===!0?t.options.infinite===!0?(i=t.currentSlide+(t.options.slidesToShow/2+1),u=i+t.options.slidesToShow+2):(i=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),u=2+(t.options.slidesToShow/2+1)+t.currentSlide):(i=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,u=Math.ceil(i+t.options.slidesToShow),t.options.fade===!0&&(i>0&&i--,u<=t.slideCount&&u++));e=t.$slider.find(".slick-slide").slice(i,u);f(e);t.slideCount<=t.options.slidesToShow?(r=t.$slider.find(".slick-slide"),f(r)):t.currentSlide>=t.slideCount-t.options.slidesToShow?(r=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow),f(r)):0===t.currentSlide&&(r=t.$slider.find(".slick-cloned").slice(-1*t.options.slidesToShow),f(r))};t.prototype.loadSlider=function(){var n=this;n.setPosition();n.$slideTrack.css({opacity:1});n.$slider.removeClass("slick-loading");n.initUI();"progressive"===n.options.lazyLoad&&n.progressiveLazyLoad()};t.prototype.next=t.prototype.slickNext=function(){var n=this;n.changeSlide({data:{message:"next"}})};t.prototype.orientationChange=function(){var n=this;n.checkResponsive();n.setPosition()};t.prototype.pause=t.prototype.slickPause=function(){var n=this;n.autoPlayClear();n.paused=!0};t.prototype.play=t.prototype.slickPlay=function(){var n=this;n.autoPlay();n.options.autoplay=!0;n.paused=!1;n.focussed=!1;n.interrupted=!1};t.prototype.postSlide=function(n){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,n]),t.animating=!1,t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&t.initADA())};t.prototype.prev=t.prototype.slickPrev=function(){var n=this;n.changeSlide({data:{message:"previous"}})};t.prototype.preventDefault=function(n){n.preventDefault()};t.prototype.progressiveLazyLoad=function(t){t=t||1;var r,u,f,i=this,e=n("img[data-lazy]",i.$slider);e.length?(r=e.first(),u=r.attr("data-lazy"),f=document.createElement("img"),f.onload=function(){r.attr("src",u).removeAttr("data-lazy").removeClass("slick-loading");i.options.adaptiveHeight===!0&&i.setPosition();i.$slider.trigger("lazyLoaded",[i,r,u]);i.progressiveLazyLoad()},f.onerror=function(){3>t?setTimeout(function(){i.progressiveLazyLoad(t+1)},500):(r.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,r,u]),i.progressiveLazyLoad())},f.src=u):i.$slider.trigger("allImagesLoaded",[i])};t.prototype.refresh=function(t){var r,u,i=this;u=i.slideCount-i.options.slidesToShow;!i.options.infinite&&i.currentSlide>u&&(i.currentSlide=u);i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0);r=i.currentSlide;i.destroy(!0);n.extend(i,i.initials,{currentSlide:r});i.init();t||i.changeSlide({data:{message:"index",index:r}},!1)};t.prototype.registerBreakpoints=function(){var u,f,i,t=this,r=t.options.responsive||null;if("array"===n.type(r)&&r.length){t.respondTo=t.options.respondTo||"window";for(u in r)if(i=t.breakpoints.length-1,f=r[u].breakpoint,r.hasOwnProperty(u)){for(;i>=0;)t.breakpoints[i]&&t.breakpoints[i]===f&&t.breakpoints.splice(i,1),i--;t.breakpoints.push(f);t.breakpointSettings[f]=r[u].settings}t.breakpoints.sort(function(n,i){return t.options.mobileFirst?n-i:i-n})}};t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide");t.slideCount=t.$slides.length;t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll);t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0);t.registerBreakpoints();t.setProps();t.setupInfinite();t.buildArrows();t.updateArrows();t.initArrowEvents();t.buildDots();t.updateDots();t.initDotEvents();t.cleanUpSlideEvents();t.initSlideEvents();t.checkResponsive(!1,!0);t.options.focusOnSelect===!0&&n(t.$slideTrack).children().on("click.slick",t.selectHandler);t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0);t.setPosition();t.focusHandler();t.paused=!t.options.autoplay;t.autoPlay();t.$slider.trigger("reInit",[t])};t.prototype.resize=function(){var t=this;n(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=n(window).width();t.checkResponsive();t.unslicked||t.setPosition()},50))};t.prototype.removeSlide=t.prototype.slickRemove=function(n,t,i){var r=this;return"boolean"==typeof n?(t=n,n=t===!0?0:r.slideCount-1):n=t===!0?--n:n,r.slideCount<1||0>n||n>r.slideCount-1?!1:(r.unload(),i===!0?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(n).remove(),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slidesCache=r.$slides,void r.reinit())};t.prototype.setCSS=function(n){var r,u,t=this,i={};t.options.rtl===!0&&(n=-n);r="left"==t.positionProp?Math.ceil(n)+"px":"0px";u="top"==t.positionProp?Math.ceil(n)+"px":"0px";i[t.positionProp]=n;t.transformsEnabled===!1?t.$slideTrack.css(i):(i={},t.cssTransitions===!1?(i[t.animType]="translate("+r+", "+u+")",t.$slideTrack.css(i)):(i[t.animType]="translate3d("+r+", "+u+", 0px)",t.$slideTrack.css(i)))};t.prototype.setDimensions=function(){var n=this,t;n.options.vertical===!1?n.options.centerMode===!0&&n.$list.css({padding:"0px "+n.options.centerPadding}):(n.$list.height(n.$slides.first().outerHeight(!0)*n.options.slidesToShow),n.options.centerMode===!0&&n.$list.css({padding:n.options.centerPadding+" 0px"}));n.listWidth=n.$list.width();n.listHeight=n.$list.height();n.options.vertical===!1&&n.options.variableWidth===!1?(n.slideWidth=Math.ceil(n.listWidth/n.options.slidesToShow),n.$slideTrack.width(Math.ceil(n.slideWidth*n.$slideTrack.children(".slick-slide").length))):n.options.variableWidth===!0?n.$slideTrack.width(5e3*n.slideCount):(n.slideWidth=Math.ceil(n.listWidth),n.$slideTrack.height(Math.ceil(n.$slides.first().outerHeight(!0)*n.$slideTrack.children(".slick-slide").length)));t=n.$slides.first().outerWidth(!0)-n.$slides.first().width();n.options.variableWidth===!1&&n.$slideTrack.children(".slick-slide").width(n.slideWidth-t)};t.prototype.setFade=function(){var i,t=this;t.$slides.each(function(r,u){i=t.slideWidth*r*-1;t.options.rtl===!0?n(u).css({position:"relative",right:i,top:0,zIndex:t.options.zIndex-2,opacity:0}):n(u).css({position:"relative",left:i,top:0,zIndex:t.options.zIndex-2,opacity:0})});t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})};t.prototype.setHeight=function(){var n=this,t;1===n.options.slidesToShow&&n.options.adaptiveHeight===!0&&n.options.vertical===!1&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.css("height",t))};t.prototype.setOption=t.prototype.slickSetOption=function(){var u,f,e,i,r,t=this,o=!1;if("object"===n.type(arguments[0])?(e=arguments[0],o=arguments[1],r="multiple"):"string"===n.type(arguments[0])&&(e=arguments[0],i=arguments[1],o=arguments[2],"responsive"===arguments[0]&&"array"===n.type(arguments[1])?r="responsive":"undefined"!=typeof arguments[1]&&(r="single")),"single"===r)t.options[e]=i;else if("multiple"===r)n.each(e,function(n,i){t.options[n]=i});else if("responsive"===r)for(f in i)if("array"!==n.type(t.options.responsive))t.options.responsive=[i[f]];else{for(u=t.options.responsive.length-1;u>=0;)t.options.responsive[u].breakpoint===i[f].breakpoint&&t.options.responsive.splice(u,1),u--;t.options.responsive.push(i[f])}o&&(t.unload(),t.reinit())};t.prototype.setPosition=function(){var n=this;n.setDimensions();n.setHeight();n.options.fade===!1?n.setCSS(n.getLeft(n.currentSlide)):n.setFade();n.$slider.trigger("setPosition",[n])};t.prototype.setProps=function(){var n=this,t=document.body.style;n.positionProp=n.options.vertical===!0?"top":"left";"top"===n.positionProp?n.$slider.addClass("slick-vertical"):n.$slider.removeClass("slick-vertical");(void 0!==t.WebkitTransition||void 0!==t.MozTransition||void 0!==t.msTransition)&&n.options.useCSS===!0&&(n.cssTransitions=!0);n.options.fade&&("number"==typeof n.options.zIndex?n.options.zIndex<3&&(n.options.zIndex=3):n.options.zIndex=n.defaults.zIndex);void 0!==t.OTransform&&(n.animType="OTransform",n.transformType="-o-transform",n.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.MozTransform&&(n.animType="MozTransform",n.transformType="-moz-transform",n.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(n.animType=!1));void 0!==t.webkitTransform&&(n.animType="webkitTransform",n.transformType="-webkit-transform",n.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.msTransform&&(n.animType="msTransform",n.transformType="-ms-transform",n.transitionType="msTransition",void 0===t.msTransform&&(n.animType=!1));void 0!==t.transform&&n.animType!==!1&&(n.animType="transform",n.transformType="transform",n.transitionType="transition");n.transformsEnabled=n.options.useTransform&&null!==n.animType&&n.animType!==!1};t.prototype.setSlideClasses=function(n){var u,i,r,f,t=this;i=t.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");t.$slides.eq(n).addClass("slick-current");t.options.centerMode===!0?(u=Math.floor(t.options.slidesToShow/2),t.options.infinite===!0&&(n>=u&&n<=t.slideCount-1-u?t.$slides.slice(n-u,n+u+1).addClass("slick-active").attr("aria-hidden","false"):(r=t.options.slidesToShow+n,i.slice(r-u+1,r+u+2).addClass("slick-active").attr("aria-hidden","false")),0===n?i.eq(i.length-1-t.options.slidesToShow).addClass("slick-center"):n===t.slideCount-1&&i.eq(t.options.slidesToShow).addClass("slick-center")),t.$slides.eq(n).addClass("slick-center")):n>=0&&n<=t.slideCount-t.options.slidesToShow?t.$slides.slice(n,n+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=t.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(f=t.slideCount%t.options.slidesToShow,r=t.options.infinite===!0?t.options.slidesToShow+n:n,t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-n<t.options.slidesToShow?i.slice(r-(t.options.slidesToShow-f),r+f).addClass("slick-active").attr("aria-hidden","false"):i.slice(r,r+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"===t.options.lazyLoad&&t.lazyLoad()};t.prototype.setupInfinite=function(){var i,r,u,t=this;if(t.options.fade===!0&&(t.options.centerMode=!1),t.options.infinite===!0&&t.options.fade===!1&&(r=null,t.slideCount>t.options.slidesToShow)){for(u=t.options.centerMode===!0?t.options.slidesToShow+1:t.options.slidesToShow,i=t.slideCount;i>t.slideCount-u;i-=1)r=i-1,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r-t.slideCount).prependTo(t.$slideTrack).addClass("slick-cloned");for(i=0;u>i;i+=1)r=i,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r+t.slideCount).appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){n(this).attr("id","")})}};t.prototype.interrupt=function(n){var t=this;n||t.autoPlay();t.interrupted=n};t.prototype.selectHandler=function(t){var i=this,u=n(t.target).is(".slick-slide")?n(t.target):n(t.target).parents(".slick-slide"),r=parseInt(u.attr("data-slick-index"));return r||(r=0),i.slideCount<=i.options.slidesToShow?(i.setSlideClasses(r),void i.asNavFor(r)):void i.slideHandler(r)};t.prototype.slideHandler=function(n,t,i){var u,f,s,o,e,h=null,r=this;return t=t||!1,r.animating===!0&&r.options.waitForAnimate===!0||r.options.fade===!0&&r.currentSlide===n||r.slideCount<=r.options.slidesToShow?void 0:(t===!1&&r.asNavFor(n),u=n,h=r.getLeft(u),o=r.getLeft(r.currentSlide),r.currentLeft=null===r.swipeLeft?o:r.swipeLeft,r.options.infinite===!1&&r.options.centerMode===!1&&(0>n||n>r.getDotCount()*r.options.slidesToScroll)?void(r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(o,function(){r.postSlide(u)}):r.postSlide(u))):r.options.infinite===!1&&r.options.centerMode===!0&&(0>n||n>r.slideCount-r.options.slidesToScroll)?void(r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(o,function(){r.postSlide(u)}):r.postSlide(u))):(r.options.autoplay&&clearInterval(r.autoPlayTimer),f=0>u?r.slideCount%r.options.slidesToScroll!=0?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+u:u>=r.slideCount?r.slideCount%r.options.slidesToScroll!=0?0:u-r.slideCount:u,r.animating=!0,r.$slider.trigger("beforeChange",[r,r.currentSlide,f]),s=r.currentSlide,r.currentSlide=f,r.setSlideClasses(r.currentSlide),r.options.asNavFor&&(e=r.getNavTarget(),e=e.slick("getSlick"),e.slideCount<=e.options.slidesToShow&&e.setSlideClasses(r.currentSlide)),r.updateDots(),r.updateArrows(),r.options.fade===!0?(i!==!0?(r.fadeSlideOut(s),r.fadeSlide(f,function(){r.postSlide(f)})):r.postSlide(f),void r.animateHeight()):void(i!==!0?r.animateSlide(h,function(){r.postSlide(f)}):r.postSlide(f))))};t.prototype.startLoad=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.hide(),n.$nextArrow.hide());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.hide();n.$slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var i,r,u,n,t=this;return i=t.touchObject.startX-t.touchObject.curX,r=t.touchObject.startY-t.touchObject.curY,u=Math.atan2(r,i),n=Math.round(180*u/Math.PI),0>n&&(n=360-Math.abs(n)),45>=n&&n>=0?t.options.rtl===!1?"left":"right":360>=n&&n>=315?t.options.rtl===!1?"left":"right":n>=135&&225>=n?t.options.rtl===!1?"right":"left":t.options.verticalSwiping===!0?n>=35&&135>=n?"down":"up":"vertical"};t.prototype.swipeEnd=function(){var t,i,n=this;if(n.dragging=!1,n.interrupted=!1,n.shouldClick=n.touchObject.swipeLength>10?!1:!0,void 0===n.touchObject.curX)return!1;if(n.touchObject.edgeHit===!0&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount();n.currentDirection=0;break;case"right":case"up":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount();n.currentDirection=1}"vertical"!=i&&(n.slideHandler(t),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})};t.prototype.swipeHandler=function(n){var t=this;if(!(t.options.swipe===!1||"ontouchend"in document&&t.options.swipe===!1||t.options.draggable===!1&&-1!==n.type.indexOf("mouse")))switch(t.touchObject.fingerCount=n.originalEvent&&void 0!==n.originalEvent.touches?n.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,t.options.verticalSwiping===!0&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),n.data.action){case"start":t.swipeStart(n);break;case"move":t.swipeMove(n);break;case"end":t.swipeEnd(n)}};t.prototype.swipeMove=function(n){var f,e,r,u,i,t=this;return i=void 0!==n.originalEvent?n.originalEvent.touches:null,!t.dragging||i&&1!==i.length?!1:(f=t.getLeft(t.currentSlide),t.touchObject.curX=void 0!==i?i[0].pageX:n.clientX,t.touchObject.curY=void 0!==i?i[0].pageY:n.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),t.options.verticalSwiping===!0&&(t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curY-t.touchObject.startY,2)))),e=t.swipeDirection(),"vertical"!==e?(void 0!==n.originalEvent&&t.touchObject.swipeLength>4&&n.preventDefault(),u=(t.options.rtl===!1?1:-1)*(t.touchObject.curX>t.touchObject.startX?1:-1),t.options.verticalSwiping===!0&&(u=t.touchObject.curY>t.touchObject.startY?1:-1),r=t.touchObject.swipeLength,t.touchObject.edgeHit=!1,t.options.infinite===!1&&(0===t.currentSlide&&"right"===e||t.currentSlide>=t.getDotCount()&&"left"===e)&&(r=t.touchObject.swipeLength*t.options.edgeFriction,t.touchObject.edgeHit=!0),t.swipeLeft=t.options.vertical===!1?f+r*u:f+r*(t.$list.height()/t.listWidth)*u,t.options.verticalSwiping===!0&&(t.swipeLeft=f+r*u),t.options.fade===!0||t.options.touchMove===!1?!1:t.animating===!0?(t.swipeLeft=null,!1):void t.setCSS(t.swipeLeft)):void 0)};t.prototype.swipeStart=function(n){var i,t=this;return t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==n.originalEvent&&void 0!==n.originalEvent.touches&&(i=n.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==i?i.pageX:n.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==i?i.pageY:n.clientY,void(t.dragging=!0))};t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var n=this;null!==n.$slidesCache&&(n.unload(),n.$slideTrack.children(this.options.slide).detach(),n.$slidesCache.appendTo(n.$slideTrack),n.reinit())};t.prototype.unload=function(){var t=this;n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove();t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove();t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")};t.prototype.unslick=function(n){var t=this;t.$slider.trigger("unslick",[t,n]);t.destroy()};t.prototype.updateArrows=function(){var t,n=this;t=Math.floor(n.options.slidesToShow/2);n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&!n.options.infinite&&(n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===n.currentSlide?(n.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-n.options.slidesToShow&&n.options.centerMode===!1?(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-1&&n.options.centerMode===!0&&(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))};t.prototype.updateDots=function(){var n=this;null!==n.$dots&&(n.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),n.$dots.find("li").eq(Math.floor(n.currentSlide/n.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))};t.prototype.visibility=function(){var n=this;n.options.autoplay&&(n.interrupted=document[n.hidden]?!0:!1)};n.fn.slick=function(){for(var u,i=this,r=arguments[0],f=Array.prototype.slice.call(arguments,1),e=i.length,n=0;e>n;n++)if("object"==typeof r||"undefined"==typeof r?i[n].slick=new t(i[n],r):u=i[n].slick[r].apply(i[n].slick,f),"undefined"!=typeof u)return u;return i}});!function(){var u,r,f,n,i,e=[],t,o;i="undefined"!=typeof global?global:window;n=i.jQuery;t=function(){return i.tinymce};n.fn.tinymce=function(u){var s,y,l,h=this,a="",v,c;return h.length?u?(h.css("visibility","hidden"),v=function(){var i=[],r=0;f||(o(),f=!0);h.each(function(n,f){var o,e=f.id,s=u.oninit;e||(f.id=e=t().DOM.uniqueId());t().get(e)||(o=t().createEditor(e,u),i.push(o),o.on("init",function(){var u,n=s;h.css("visibility","");s&&++r==i.length&&("string"==typeof n&&(u=-1===n.indexOf(".")?null:t().resolve(n.replace(/\.\w+$/,"")),n=t().resolve(n)),n.apply(u||t(),i))}))});n.each(i,function(n,t){t.render()})},!i.tinymce&&!r&&(s=u.script_url)?(r=1,y=s.substring(0,s.lastIndexOf("/")),-1!=s.indexOf(".min")&&(a=".min"),i.tinymce=i.tinyMCEPreInit||{base:y,suffix:a},-1!=s.indexOf("gzip")&&(l=u.language||"en",s=s+(/\?/.test(s)?"&":"?")+"js=true&core=true&suffix="+escape(a)+"&themes="+escape(u.theme||"modern")+"&plugins="+escape(u.plugins||"")+"&languages="+(l||""),i.tinyMCE_GZ||(i.tinyMCE_GZ={start:function(){var i=function(n){t().ScriptLoader.markDone(t().baseURI.toAbsolute(n))};i("langs/"+l+".js");i("themes/"+u.theme+"/theme"+a+".js");i("themes/"+u.theme+"/langs/"+l+".js");n.each(u.plugins.split(","),function(n,t){t&&(i("plugins/"+t+"/plugin"+a+".js"),i("plugins/"+t+"/langs/"+l+".js"))})},end:function(){}})),c=document.createElement("script"),c.type="text/javascript",c.onload=c.onreadystatechange=function(i){i=i||window.event;2!==r&&("load"==i.type||/complete|loaded/.test(c.readyState))&&(t().dom.Event.domLoaded=1,r=2,u.script_loaded&&u.script_loaded(),v(),n.each(e,function(n,t){t()}))},c.src=s,document.body.appendChild(c)):1===r?e.push(v):v(),h):t()?t().get(h[0].id):null:h};n.extend(n.expr[":"],{tinymce:function(n){var r;return!!(n.id&&"tinymce"in i&&(r=t().get(n.id))&&r.editorManager===t())}});o=function(){var o=function(n){"remove"===n&&this.each(function(n,t){var i=f(t);i&&i.remove()});this.find("span.mceEditor,div.mceEditor").each(function(n,i){var r=t().get(i.id.replace(/_parent$/,""));r&&r.remove()})},s=function(n){var r,i=this;if(null!=n)o.call(i),i.each(function(i,r){var u;(u=t().get(r.id))&&u.setContent(n)});else if(0<i.length&&(r=t().get(i[0].id)))return r.getContent()},f=function(n){var r=null;return n&&n.id&&i.tinymce&&(r=t().get(n.id)),r},e=function(n){return!!(n&&n.length&&i.tinymce&&n.is(":tinymce"))},r={};n.each(["text","html","val"],function(t,i){var o=r[i]=n.fn[i],h="text"===i;n.fn[i]=function(t){var i=this,r,c;return e(i)?t!==u?(s.call(i.filter(":tinymce"),t),o.apply(i.not(":tinymce"),arguments),i):(r="",c=arguments,(h?i:i.eq(0)).each(function(t,i){var u=f(i);r+=u?h?u.getContent().replace(/<(?:"[^"]*"|'[^']*'|[^'">])*>/g,""):u.getContent({save:!0}):o.apply(n(i),c)}),r):o.apply(i,arguments)}});n.each(["append","prepend"],function(t,i){var o=r[i]=n.fn[i],s="prepend"===i;n.fn[i]=function(n){var t=this;return e(t)?n!==u?("string"==typeof n&&t.filter(":tinymce").each(function(t,i){var r=f(i);r&&r.setContent(s?n+r.getContent():r.getContent()+n)}),o.apply(t.not(":tinymce"),arguments),t):void 0:o.apply(t,arguments)}});n.each(["remove","replaceWith","replaceAll","empty"],function(t,i){var u=r[i]=n.fn[i];n.fn[i]=function(){return o.call(this,i),u.apply(this,arguments)}});r.attr=n.fn.attr;n.fn.attr=function(t,i){var o=this,h=arguments,c,l;return!t||"value"!==t||!e(o)?r.attr.apply(o,h):i!==u?(s.call(o.filter(":tinymce"),i),r.attr.apply(o.not(":tinymce"),h),o):(c=o[0],l=f(c),l?l.getContent({save:!0}):r.attr.apply(n(c),h))}}}();!function(){"use strict";function fw(){var n=[];return function t(i,r){return n.push(i+" ")>b.cacheLength&&delete t[n.shift()],t[i+" "]=r}}function di(n){return n[ot]=!0,n}function trt(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||-2147483648)-(~n.sourceIndex||-2147483648);if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return n?1:-1}function int(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}function rnt(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function yf(n){return di(function(t){return t=+t,di(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ew(n){return n&&typeof n.getElementsByTagName!==el&&n}function irt(){}function hl(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function ow(n,t,i){var r=t.dir,u=i&&"parentNode"===r,f=cgt++;return t.first?function(t,i,f){for(;t=t[r];)if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,e){var o,s,h=[fr,f];if(e){for(;t=t[r];)if((1===t.nodeType||u)&&n(t,i,e))return!0}else for(;t=t[r];)if(1===t.nodeType||u){if((o=(s=t[ot]||(t[ot]={}))[r])&&o[0]===fr&&o[1]===f)return h[2]=o[2];if((s[r]=h)[2]=n(t,i,e))return!0}}}function sw(n){return 1<n.length?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function cl(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function hw(n,t,i,r,u,f){return r&&!r[ot]&&(r=hw(r)),u&&!u[ot]&&(u=hw(u,f)),di(function(f,e,o,s){var l,c,a,w=[],y=[],b=e.length,k=f||function(n,t,i){for(var r=0,u=t.length;r<u;r++)p(n,t[r],i);return i}(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:cl(k,w,n,o,s),h=i?u||(f?n:b||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=cl(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&-1<(l=u?af.call(f,a):w[c])&&(f[l]=!(e[l]=a))}}else h=cl(h===e?h.splice(b,h.length):h),u?u(null,e,h,s):ru.apply(e,h)})}function cw(n){for(var e,r,i,f=n.length,o=b.relative[n[0].type],s=o||b.relative[" "],t=o?1:0,h=ow(function(n){return n===e},s,!0),c=ow(function(n){return-1<af.call(e,n)},s,!0),u=[function(n,t,i){return!o&&(i||t!==tl)||((e=t).nodeType?h(n,t,i):c(n,t,i))}];t<f;t++)if(r=b.relative[n[t].type])u=[ow(sw(u),r)];else{if((r=b.filter[n[t].type].apply(null,n[t].matches))[ot]){for(i=++t;i<f&&!b.relative[n[i].type];i++);return hw(1<t&&sw(u),1<t&&hl(n.slice(0,t-1).concat({value:" "===n[t-2].type?"*":""})).replace(ol,"$1"),r,t<i&&cw(n.slice(t,i)),i<f&&cw(n=n.slice(i)),i<f&&hl(n))}u.push(r)}return sw(u)}function st(n,t){var i=n,r=function(n,i,r,u){var e,f;if(n){if(!u&&n[i])return n[i];if(n!==t){if(e=n[r])return e;for(f=n.parentNode;f&&f!==t;f=f.parentNode)if(e=f[r])return e}}};this.current=function(){return i};this.next=function(n){return i=r(i,"firstChild","nextSibling",n)};this.prev=function(n){return i=r(i,"lastChild","previousSibling",n)};this.prev2=function(n){return i=function(n,i,r,u){var e,o,f;if(n){if(e=n[r],t&&e===t)return;if(e){if(!u)for(f=e[i];f;f=f[i])if(!f[i])return f;return e}if((o=n.parentNode)&&o!==t)return o}}(i,"lastChild","previousSibling",n)}}function lu(n){var v,y,o,p,w,s,b,k,u,h,d,c,g,t={},i={},f=[],nt={},tt={},r=function(t,i,r){var u=n[t];return u?u=we(u,/[, ]/,we(u.toUpperCase(),/[, ]/)):(u=cu[t])||(u=we(i," ",we(i.toUpperCase()," ")),u=eb(u,r),cu[t]=u),u};o=lii((n=n||{}).schema);!1===n.verify_html&&(n.valid_elements="*[*]");v=ob(n.valid_styles);y=ob(n.invalid_styles,"map");k=ob(n.valid_classes,"map");p=r("whitespace_elements","pre script noscript style textarea video audio iframe object code");w=r("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr");s=r("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track");b=r("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls");h=r("non_empty_elements","td th iframe video audio object script pre code",s);d=r("move_caret_before_on_enter_elements","table",h);c=r("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside nav figure");u=r("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",c);g=r("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp");ct((n.special||"script noscript noframes noembed title style textarea xmp").split(" "),function(n){tt[n]=new RegExp("<\/"+n+"[^>]*>","gi")});var it=function(n){return new RegExp("^"+n.replace(/([?+*])/g,".$1")+"$")},e=function(n){var y,g,p,nt,r,i,e,v,h,u,w,c,s,o,b,l,k,d,a,tt=/[*?+]/;if(n)for(n=ut(n,","),t["@"]&&(l=t["@"].attributes,k=t["@"].attributesOrder),y=0,g=n.length;y<g;y++)if(r=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/.exec(n[y])){if(o=r[1],h=r[2],b=r[3],v=r[5],i={attributes:c={},attributesOrder:s=[]},"#"===o&&(i.paddEmpty=!0),"-"===o&&(i.removeEmpty=!0),"!"===r[4]&&(i.removeEmptyAttrs=!0),l){for(d in l)c[d]=l[d];s.push.apply(s,k)}if(v)for(p=0,nt=(v=ut(v,"|")).length;p<nt;p++)if(r=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/.exec(v[p])){if(e={},w=r[1],u=r[2].replace(/[\\:]:/g,":"),o=r[3],a=r[4],"!"===w&&(i.attributesRequired=i.attributesRequired||[],i.attributesRequired.push(u),e.required=!0),"-"===w){delete c[u];s.splice(cii(s,u),1);continue}o&&("="===o&&(i.attributesDefault=i.attributesDefault||[],i.attributesDefault.push({name:u,value:a}),e.defaultValue=a),":"===o&&(i.attributesForced=i.attributesForced||[],i.attributesForced.push({name:u,value:a}),e.forcedValue=a),"<"===o&&(e.validValues=we(a,"?")));tt.test(u)?(i.attributePatterns=i.attributePatterns||[],e.pattern=it(u),i.attributePatterns.push(e)):(c[u]||s.push(u),c[u]=e)}l||"@"!==h||(l=c,k=s);b&&(i.outputName=h,t[b]=i);tt.test(h)?(i.pattern=it(h),f.push(i)):t[h]=i}},rt=function(n){t={};f=[];e(n);ct(o,function(n,t){i[t]=n.children})},ft=function(n){var r=/^(~)?(.+)$/;n&&(cu.text_block_elements=cu.block_elements=null,ct(ut(n,","),function(n){var s=r.exec(n),h="~"===s[1],e=h?"span":"div",f=s[2],o;(i[f]=i[e],nt[f]=e,h||(u[f.toUpperCase()]={},u[f]={}),t[f])||(o=t[e],delete(o=eb({},o)).removeEmptyAttrs,delete o.removeEmpty,t[f]=o);ct(i,function(n,t){n[e]&&(i[t]=n=eb({},i[t]),n[f]=n[e])})}))},l=function(t){var r=/^([+\-]?)(\w+)\[([^\]]+)\]$/;cu[n.schema]=null;t&&ct(ut(t,","),function(n){var u,f,t=r.exec(n);t&&(f=t[1],u=f?i[t[2]]:i[t[2]]={"#comment":{}},u=i[t[2]],ct(ut(t[3],"|"),function(n){"-"===f?delete u[n]:u[n]={}}))})},a=function(n){var r,i=t[n];if(i)return i;for(r=f.length;r--;)if((i=f[r]).pattern.test(n))return i};return n.valid_elements?rt(n.valid_elements):(ct(o,function(n,r){t[r]={attributes:n.attributes,attributesOrder:n.attributesOrder};i[r]=n.children}),"html5"!==n.schema&&ct(ut("strong/b em/i"),function(n){n=ut(n,"/");t[n[1]].outputName=n[0]}),ct(ut("ol ul sub sup blockquote span font a table tbody tr strong em b i"),function(n){t[n]&&(t[n].removeEmpty=!0)}),ct(ut("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(n){t[n].paddEmpty=!0}),ct(ut("span"),function(n){t[n].removeEmptyAttrs=!0})),ft(n.custom_elements),l(n.valid_children),e(n.extended_valid_elements),l("+ol[ul|ol],+ul[ul|ol]"),ct({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},function(n,i){t[i]&&(t[i].parentsRequired=ut(n))}),n.invalid_elements&&ct(dft(n.invalid_elements),function(n){t[n]&&delete t[n]}),a("span")||e("span[!data-mce-type|*]"),{children:i,elements:t,getValidStyles:function(){return v},getValidClasses:function(){return k},getBlockElements:function(){return u},getInvalidStyles:function(){return y},getShortEndedElements:function(){return s},getTextBlockElements:function(){return c},getTextInlineElements:function(){return g},getBoolAttrs:function(){return b},getElementRule:a,getSelfClosingElements:function(){return w},getNonEmptyElements:function(){return h},getMoveCaretBeforeOnEnterElements:function(){return d},getWhiteSpaceElements:function(){return p},getSpecialElements:function(){return tt},isValidChild:function(n,t){var r=i[n.toLowerCase()];return!(!r||!r[t.toLowerCase()])},isValid:function(n,t){var i,r,u=a(n);if(u){if(!t||u.attributes[t])return!0;if(i=u.attributePatterns)for(r=i.length;r--;)if(i[r].pattern.test(n))return!0}return!1},getCustomElements:function(){return nt},addValidElements:e,setValidElements:rt,addCustomElements:ft,addValidChildren:l}}function hb(n,t){var i,r,o,u,s=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,l=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,h=/\s*([^:]+):\s*([^;]+);?/g,c=/\s+$/,f={},e="﻿";for(n=n||{},t&&(o=t.getValidStyles(),u=t.getInvalidStyles()),r=("\\\" \\' \\; \\: ; : "+e).split(" "),i=0;i<r.length;i++)f[r[i]]=e+i,f[e+i]=r[i];return{toHex:function(n){return n.replace(s,sb)},parse:function(t){var v,o,u,w,g,b,y,p,r={},nt=n.url_converter,rt=n.url_converter_scope||this,a=function(n,t,u){var e,o,s,h,f;if((e=r[n+"-top"+t])&&(o=r[n+"-right"+t])&&(s=r[n+"-bottom"+t])&&(h=r[n+"-left"+t])){for(f=[e,o,s,h],i=f.length-1;i--&&f[i]===f[i+1];);-1<i&&u||(r[n+t]=-1===i?f[0]:f.join(" "),delete r[n+"-top"+t],delete r[n+"-right"+t],delete r[n+"-bottom"+t],delete r[n+"-left"+t])}},k=function(n){var i,t=r[n];if(t){for(i=(t=t.split(" ")).length;i--;)if(t[i]!==t[0])return!1;return r[n]=t[0],!0}},tt=function(n){return w=!0,f[n]},d=function(n,t){return w&&(n=n.replace(/\uFEFF[0-9]/g,function(n){return f[n]})),t||(n=n.replace(/\\([\'\";:])/g,"$1")),n},ut=function(n){return String.fromCharCode(parseInt(n.slice(1),16))},it=function(n){return n.replace(/\\[0-9a-f]+/gi,ut)},ft=function(t,i,r,u,f,e){if(f=f||e)return"'"+(f=d(f)).replace(/\'/g,"\\'")+"'";if(i=d(i||r||u),!n.allow_script_urls){var o=i.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(o)||!n.allow_svg_data_urls&&/^data:image\/svg/i.test(o))return""}return nt&&(i=nt.call(rt,i,"style")),"url('"+i.replace(/\'/g,"\\'")+"')"};if(t){for(t=(t=t.replace(/[\u0000-\u001F]/g,"")).replace(/\\[\"\';:\uFEFF]/g,tt).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(n){return n.replace(/[;:]/g,tt)});v=h.exec(t);)if(h.lastIndex=v.index+v[0].length,o=v[1].replace(c,"").toLowerCase(),u=v[2].replace(c,""),o&&u){if(o=it(o),u=it(u),-1!==o.indexOf(e)||-1!==o.indexOf('"'))continue;if(!n.allow_script_urls&&("behavior"===o||/expression\s*\(|\/\*|\*\//.test(u)))continue;"font-weight"===o&&"700"===u?u="bold":"color"!==o&&"background-color"!==o||(u=u.toLowerCase());u=(u=u.replace(s,sb)).replace(l,ft);r[o]=w?d(u,!0):u}a("border","",!0);a("border","-width");a("border","-color");a("border","-style");a("padding","");a("margin","");g="border";y="border-style";p="border-color";k(b="border-width")&&k(y)&&k(p)&&(r[g]=r[b]+" "+r[y]+" "+r[p],delete r[b],delete r[y],delete r[p]);"medium none"===r.border&&delete r.border;"none"===r["border-image"]&&delete r["border-image"]}return r},serialize:function(n,t){var f,s,e,h,i,r="",c=function(t){var u,i,f,e;if(u=o[t])for(i=0,f=u.length;i<f;i++)t=u[i],(e=n[t])&&(r+=(0<r.length?" ":"")+t+": "+e+";")};if(t&&o)c("*"),c(t);else for(f in n)(s=n[f])&&(!u||!(e=f,h=t,i=void 0,(i=u["*"])&&i[e]||(i=u[h])&&i[e]))&&(r+=(0<r.length?" ":"")+f+": "+s+";");return r}}}function de(n,r){var g,fi=this;void 0===r&&(r={});var ot={},w=window,nt={},ei=0,oi=function(n,i){var u,h=0,r={};u=(i=i||{}).maxLoadTime||5e3;var f=function(t){n.getElementsByTagName("head")[0].appendChild(t)},e=function(i,e,o){var c,l,p,s,a=function(){for(var n=s.passed,t=n.length;t--;)n[t]();s.status=2;s.passed=[];s.failed=[]},v=function(){for(var n=s.failed,t=n.length;t--;)n[t]();s.status=3;s.passed=[];s.failed=[]},w=function(n,t){n()||((new Date).getTime()-p<u?gt.setTimeout(t):v())},y=function(){w(function(){for(var t,i,r=n.styleSheets,u=r.length;u--;)if((i=(t=r[u]).ownerNode?t.ownerNode:t.owningElement)&&i.id===c.id)return a(),!0},y)},b=function(){w(function(){try{var n=l.sheet.cssRules;return a(),!!n}catch(t){}},b)},k;if(i=t._addCacheSuffix(i),r[i]?s=r[i]:(s={passed:[],failed:[]},r[i]=s),e&&s.passed.push(e),o&&s.failed.push(o),1!==s.status)if(2!==s.status)if(3!==s.status){if(s.status=1,(c=n.createElement("link")).rel="stylesheet",c.type="text/css",c.id="u"+h++,c.async=!1,c.defer=!1,p=(new Date).getTime(),"onload"in c&&!((k=navigator.userAgent.match(/WebKit\/(\d*)/))&&parseInt(k[1],10)<536))c.onload=y,c.onerror=v;else{if(0<navigator.userAgent.indexOf("Firefox"))return(l=n.createElement("style")).textContent='@import "'+i+'"',b(),void f(l);y()}f(c);c.href=i}else v();else a()},c=function(n){return fft.nu(function(t){e(n,dr(t,o(eft.value(n))),dr(t,o(eft.error(n))))})},s=function(n){return n.fold(bi,bi)};return{load:e,loadAll:function(n,t,i){wti(dt(n,c)).get(function(n){var r=oit(n,function(n){return n.isValue()});0<r.fail.length?i(r.fail.map(s)):t(r.pass.map(s))})}}}(n),h=[],a=r.schema?r.schema:lu({}),l=hb({url_converter:r.url_converter,url_converter_scope:r.url_converter_scope},r.schema),v=r.ownEvents?new lr(r.proxy):lr.Event,ht=a.getBlockElements(),ct=e.overrideDefaults(function(){return{context:n,element:c.getRoot()}}),f=function(t){if(t&&n&&"string"==typeof t){var i=n.getElementById(t);return i&&i.id!==t?n.getElementsByName(t)[1]:i}return t},u=function(n){return"string"==typeof n&&(n=f(n)),ct(n)},tt=function(n,t,i){var f,r,e=u(n);return e.length&&(r=(f=g[t])&&f.get?f.get(e,t):e.attr(t)),void 0===r&&(r=i||""),r},b=function(n){var t=f(n);return t?t.attributes:[]},k=function(n,t,i){var o,e,f;""===i&&(i=null);f=u(n);o=f.attr(t);f.length&&((e=g[t])&&e.set?e.set(f,i,t):f.attr(t,i),o!==i&&r.onSetAttrib&&r.onSetAttrib({attrElm:f,attrName:t,attrValue:i}))},d=function(){return r.root_element||n.body},lt=function(t,i){return vti.getPos(n.body,f(t),i)},it=function(n,t,i){var r=u(n);return i?r.css(t):("float"===(t=t.replace(/-(\D)/g,function(n,t){return t.toUpperCase()}))&&(t=s.ie&&s.ie<12?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:undefined)},at=function(n){var t,i;return n=f(n),t=it(n,"width"),i=it(n,"height"),-1===t.indexOf("px")&&(t=0),-1===i.indexOf("px")&&(i=0),{w:parseInt(t,10)||n.offsetWidth||n.clientWidth,h:parseInt(i,10)||n.offsetHeight||n.clientHeight}},rt=function(n,t){var i,u,f,r;if(!n)return!1;if(!Array.isArray(n)){if("*"===t)return 1===n.nodeType;if(vii.test(t)){for(u=t.toLowerCase().split(/,/),f=n.nodeName.toLowerCase(),i=u.length-1;0<=i;i--)if(u[i]===f)return!0;return!1}if(n.nodeType&&1!==n.nodeType)return!1}return r=Array.isArray(n)?n:[n],0<p(t,r[0].ownerDocument||r[0],null,r).length},vt=function(n,i,r,u){var o,s=[],e=f(n);for(u=u===undefined,r=r||("BODY"!==d().nodeName?d().parentNode:null),t.is(i,"string")&&(i="*"===(o=i)?function(n){return 1===n.nodeType}:function(n){return rt(n,o)});e&&e!==r&&e.nodeType&&9!==e.nodeType;){if(!i||"function"==typeof i&&i(e)){if(!u)return[e];s.push(e)}e=e.parentNode}return u?s:null},yt=function(n,t,i){var r=t;if(n)for("string"==typeof t&&(r=function(n){return rt(n,t)}),n=n[i];n;n=n[i])if("function"==typeof r&&r(n))return n;return null},y=function(n,i,r){var e,u="string"==typeof n?f(n):n,o;return u?t.isArray(u)&&(u.length||0===u.length)?(e=[],be(u,function(n,t){n&&("string"==typeof n&&(n=f(n)),e.push(i.call(r,n,t)))}),e):(o=r||fi,i.call(o,u)):!1},pt=function(n,t){u(n).each(function(n,i){be(t,function(n,t){k(i,t,n)})})},wt=function(n,t){var i=u(n);gft?i.each(function(n,i){if(!1!==i.canHaveHTML){for(;i.firstChild;)i.removeChild(i.firstChild);try{i.innerHTML="<br>"+t;i.removeChild(i.firstChild)}catch(r){e("<div><\/div>").html("<br>"+t).contents().slice(1).appendTo(i)}return t}}):i.html(t)},bt=function(t,i,r,u,f){return y(t,function(t){var e="string"==typeof i?n.createElement(i):i;return pt(e,r),u&&("string"!=typeof u&&u.nodeType?e.appendChild(u):"string"==typeof u&&wt(e,u)),f?e:t.appendChild(e)})},ut=function(t,i,r){return bt(n.createElement(t),t,i,r,!0)},si=wf.decode,kt=wf.encodeAllRaw,ft=function(n,t){var i=u(n);return t?i.each(function(){for(var n;n=this.firstChild;)3===n.nodeType&&0===n.data.length?this.removeChild(n):this.parentNode.insertBefore(n,this)}).remove():i.remove(),1<i.length?i.toArray():i[0]},ni=function(n,t,i){u(n).toggleClass(t,i).each(function(){""===this.className&&e(this).attr("class",null)})},ti=function(n,i,r){return y(i,function(i){return t.is(i,"array")&&(n=n.cloneNode(!0)),r&&be(aii(i.childNodes),function(t){n.appendChild(t)}),i.parentNode.replaceChild(n,i)})},et=function(){return n.createRange()},ii=function(i,u,f,e){if(t.isArray(i)){for(var o=i.length;o--;)i[o]=ii(i[o],u,f,e);return i}return!r.collect||i!==n&&i!==w||h.push([i,u,f,e]),v.bind(i,u,f,e||c)},ri=function(i,r,u){var f,e;if(t.isArray(i)){for(f=i.length;f--;)i[f]=ri(i[f],r,u);return i}if(h&&(i===n||i===w))for(f=h.length;f--;)e=h[f],i!==e[0]||r&&r!==e[1]||u&&u!==e[2]||v.unbind(e[0],e[1],e[2]);return v.unbind(i,r,u)},ui=function(n){if(n&&i.isElement(n)){var t=n.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==n.contentEditable?n.contentEditable:null}return null},c={doc:n,settings:r,win:w,files:nt,stdMode:!0,boxModel:!0,styleSheetLoader:oi,boundEvents:h,styles:l,schema:a,events:v,isBlock:function(n){if("string"==typeof n)return!!ht[n];if(n){var t=n.nodeType;if(t)return!(1!==t||!ht[n.nodeName])}return!1},$:ct,$$:u,root:null,clone:function(t,i){if(!gft||1!==t.nodeType||i)return t.cloneNode(i);if(!i){var r=n.createElement(t.nodeName);return be(b(t),function(n){k(r,n.nodeName,tt(t,n.nodeName))}),r}return null},getRoot:d,getViewPort:function(n){var t=n||w,r=t.document,i=r.documentElement;return{x:t.pageXOffset||i.scrollLeft,y:t.pageYOffset||i.scrollTop,w:t.innerWidth||i.clientWidth,h:t.innerHeight||i.clientHeight}},getRect:function(n){var t,i;return n=f(n),t=lt(n),i=at(n),{x:t.x,y:t.y,w:i.w,h:i.h}},getSize:at,getParent:function(n,t,i){var r=vt(n,t,i,!1);return r&&0<r.length?r[0]:null},getParents:vt,get:f,getNext:function(n,t){return yt(n,t,"nextSibling")},getPrev:function(n,t){return yt(n,t,"previousSibling")},select:function(t,i){return p(t,f(i)||r.root_element||n,[])},is:rt,add:bt,create:ut,createHTML:function(n,t,i){var r,u="";for(r in u+="<"+n,t)t.hasOwnProperty(r)&&null!==t[r]&&"undefined"!=typeof t[r]&&(u+=" "+r+'="'+kt(t[r])+'"');return void 0!==i?u+">"+i+"<\/"+n+">":u+" />"},createFragment:function(t){var i,r=n.createElement("div"),u=n.createDocumentFragment();for(t&&(r.innerHTML=t);i=r.firstChild;)u.appendChild(i);return u},remove:ft,setStyle:function(n,t,i){var f=u(n).css(t,i);r.update_styles&&tet(l,f)},getStyle:it,setStyles:function(n,t){var i=u(n).css(t);r.update_styles&&tet(l,i)},removeAllAttribs:function(n){return y(n,function(n){for(var i=n.attributes,t=i.length-1;0<=t;t--)n.removeAttributeNode(i.item(t))})},setAttrib:k,setAttribs:pt,getAttrib:tt,getPos:lt,parseStyle:function(n){return l.parse(n)},serializeStyle:function(n,t){return l.serialize(n,t)},addStyle:function(t){var r,i;if(c!==de.DOM&&n===document){if(ot[t])return;ot[t]=!0}(i=n.getElementById("mceDefaultStyles"))||((i=n.createElement("style")).id="mceDefaultStyles",i.type="text/css",(r=n.getElementsByTagName("head")[0]).firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i));i.styleSheet?i.styleSheet.cssText+=t:i.appendChild(n.createTextNode(t))},loadCSS:function(i){var r;c===de.DOM||n!==document?(i||(i=""),r=n.getElementsByTagName("head")[0],be(i.split(","),function(n){var i;n=t._addCacheSuffix(n);nt[n]||(nt[n]=!0,i=ut("link",{rel:"stylesheet",href:n}),r.appendChild(i))})):de.DOM.loadCSS(i)},addClass:function(n,t){u(n).addClass(t)},removeClass:function(n,t){ni(n,t,!1)},hasClass:function(n,t){return u(n).hasClass(t)},toggleClass:ni,show:function(n){u(n).show()},hide:function(n){u(n).hide()},isHidden:function(n){return"none"===u(n).css("display")},uniqueId:function(n){return(n||"mce_")+ei++},setHTML:wt,getOuterHTML:function(n){var t="string"==typeof n?f(n):n;return i.isElement(t)?t.outerHTML:e("<div><\/div>").append(e(t).clone()).html()},setOuterHTML:function(n,t){u(n).each(function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(n){}ft(e(this).html(t),!0)})},decode:si,encode:kt,insertAfter:function(n,t){var i=f(t);return y(n,function(n){var t,r;return t=i.parentNode,(r=i.nextSibling)?t.insertBefore(n,r):t.appendChild(n),n})},replace:ti,rename:function(n,t){var i;return n.nodeName!==t.toUpperCase()&&(i=ut(t),be(b(n),function(t){k(i,t.nodeName,tt(n,t.nodeName))}),ti(i,n,!0)),i||n},findCommonAncestor:function(n,t){for(var r,i=n;i;){for(r=t;r&&i!==r;)r=r.parentNode;if(i===r)break;i=i.parentNode}return!i&&n.ownerDocument?n.ownerDocument.documentElement:i},toHex:function(n){return l.toHex(t.trim(n))},run:y,getAttribs:b,isEmpty:function(n,t){var e,s,u,h,f,r,c=0,o;if(n=n.firstChild){f=new st(n,n.parentNode);t=t||(a?a.getNonEmptyElements():null);h=a?a.getWhiteSpaceElements():{};do{if(u=n.nodeType,i.isElement(n)){if(o=n.getAttribute("data-mce-bogus"),o){n=f.next("all"===o);continue}if(r=n.nodeName.toLowerCase(),t&&t[r]){if("br"===r){c++;n=f.next();continue}return!1}for(e=(s=b(n)).length;e--;)if("name"===(r=s[e].nodeName)||"data-mce-bookmark"===r)return!1}if(8===u||3===u&&!net.test(n.nodeValue)||3===u&&n.parentNode&&h[n.parentNode.nodeName]&&net.test(n.nodeValue))return!1;n=f.next()}while(n)}return c<=1},createRng:et,nodeIndex:ke,split:function(n,t,i){var f,e,u,r=et();if(n&&t)return r.setStart(n.parentNode,ke(n)),r.setEnd(t.parentNode,ke(t)),f=r.extractContents(),(r=et()).setStart(t.parentNode,ke(t)+1),r.setEnd(n.parentNode,ke(n)+1),e=r.extractContents(),(u=n.parentNode).insertBefore(wft.trimNode(c,f),n),i?u.insertBefore(i,n):u.insertBefore(t,n),u.insertBefore(wft.trimNode(c,e),n),ft(n),i||t},bind:ii,unbind:ri,fire:function(n,t,i){return v.fire(n,t,i)},getContentEditable:ui,getContentEditableParent:function(n){for(var i=d(),t=null;n&&n!==i&&null===(t=ui(n));n=n.parentNode);return t},destroy:function(){var t,n;if(h)for(t=h.length;t--;)n=h[t],v.unbind(n[0],n[1],n[2]);p.setDocument&&p.setDocument()},isChildOf:function(n,t){for(;n;){if(t===n)return!0;n=n.parentNode}return!1},dumpRng:function(n){return"startContainer: "+n.startContainer.nodeName+", startOffset: "+n.startOffset+", endContainer: "+n.endContainer.nodeName+", endOffset: "+n.endOffset}};return g=yii(l,r,function(){return c}),c}function wt(){var s=this,r=[],t={},n={},i=[],u=function(t){var i;return n[t]&&(i=n[t].dependencies),i||[]},f=function(n,t){return"object"==typeof t?t:"string"==typeof n?{prefix:"",resource:t,suffix:""}:{prefix:n.prefix,resource:t,suffix:n.suffix}},e=function(n,t,i,r){var e=u(n);ea(e,function(n){var i=f(t,n);o(i.resource,i,undefined,undefined)});i&&(r?i.call(r):i.call(yr))},o=function(i,r,u,f,o){if(!t[i]){var s="string"==typeof r?r:r.prefix+r.resource+r.suffix;0!==s.indexOf("/")&&-1===s.indexOf("://")&&(s=wt.baseURL+"/"+s);t[i]=s.substring(0,s.lastIndexOf("/"));n[i]?e(i,r,u,f):yr.ScriptLoader.add(s,function(){return e(i,r,u,f)},f,o)}};return{items:r,urls:t,lookup:n,_listeners:i,get:function(t){return n[t]?n[t].instance:undefined},dependencies:u,requireLangPack:function(n,i){var r=wt.language;if(r&&!1!==wt.languageLoad){if(i)if(-1!==(i=","+i+",").indexOf(","+r.substr(0,2)+","))r=r.substr(0,2);else if(-1===i.indexOf(","+r+","))return;yr.ScriptLoader.add(t[n]+"/langs/"+r+".js")}},add:function(t,u,f){r.push(u);n[t]={instance:u,dependencies:f};var e=oit(i,function(n){return n.name===t});return i=e.fail,ea(e.pass,function(n){n.callback()}),u},remove:function(i){delete t[i];delete n[i]},createUrl:f,addComponents:function(n,t){var i=s.urls[n];ea(t,function(n){yr.ScriptLoader.add(i+"/"+n)})},load:o,waitFor:function(t,r){n.hasOwnProperty(t)?r():i.push({name:t,callback:r})}}}function het(t,i,r,u,f){return t(r,u)?n.some(r):sf(f)&&f(r)?n.none():i(r,u,f)}function et(n,t,i){var r=function(){return i||(i=nui(et(n,t))),i};return{container:ht.constant(n),offset:ht.constant(t),toRange:function(){var i;return(i=fk(n.ownerDocument)).setStart(n,t),i.setEnd(n,t),i},getClientRects:r,isVisible:function(){return 0<r().length},isAtStart:function(){return rh(n),0===t},isAtEnd:function(){return rh(n)?t>=n.data.length:t>=n.childNodes.length},isEqual:function(i){return i&&n===i.container()&&t===i.offset()},getNode:function(i){return va(n,i?t-1:t)}}}function pct(t){var i,u=(i={},{register:function(n,t){i[n]={name:n,settings:t}},lookup:function(t){return i.hasOwnProperty(t)?n.from(i[t]).map(function(n){return n.settings}):n.none()}}),f;return uri(t,u),f=rri(t),{register:function(n,t){u.register(n,t)},annotate:function(n,i){u.lookup(n).each(function(r){fei(t,n,r,i)})},annotationChanged:function(n,t){f.addListener(n,t)},remove:function(i){wet(t,n.some(i)).each(function(n){var t=n.elements;l(t,ft.unwrap)})},getAll:function(n){var u,f,e,o,i,s,h=(u=t,f=n,e=r.fromDom(u.getBody()),o=gi(e,"["+th()+'="'+f+'"]'),i={},l(o,function(n){var t=it.get(n,ha()),r=i.hasOwnProperty(t)?i[t]:[];i[t]=r.concat([n])}),i);return s=function(n){return dt(n,function(n){return n.dom()})},tti(h,function(n,t,i){return{k:t,v:s(n,t,i)}})}}}function dct(n){var i,f,u,r,e,t=[];return i=(n=n||{}).indent,f=kct(n.indent_before||""),u=kct(n.indent_after||""),r=wf.getEncodeFunc(n.entity_encoding||"raw",n.entities),e="html"===n.element_format,{start:function(n,o,s){var h,a,l,c;if(i&&f[n]&&0<t.length&&0<(c=t[t.length-1]).length&&"\n"!==c&&t.push("\n"),t.push("<",n),o)for(h=0,a=o.length;h<a;h++)l=o[h],t.push(" ",l.name,'="',r(l.value,!0),'"');t[t.length]=!s||e?">":" />";s&&i&&u[n]&&0<t.length&&0<(c=t[t.length-1]).length&&"\n"!==c&&t.push("\n")},end:function(n){var r;t.push("<\/",n,">");i&&u[n]&&0<t.length&&0<(r=t[t.length-1]).length&&"\n"!==r&&t.push("\n")},text:function(n,i){0<n.length&&(t[t.length]=i?n:r(n))},cdata:function(n){t.push("<![CDATA[",n,"]\]>")},comment:function(n){t.push("<!--",n,"-->")},pi:function(n,u){u?t.push("<?",n," ",r(u),"?>"):t.push("<?",n,"?>");i&&t.push("\n")},doctype:function(n){t.push("<!DOCTYPE",n,">",i?"\n":"")},reset:function(){t.length=0},getContent:function(){return t.join("").replace(/\n$/,"")}}}function ch(n,t){void 0===t&&(t=lu());var i=dct(n);return(n=n||{}).validate=!("validate"in n)||n.validate,{serialize:function(r){var f,e,u;return e=n.validate,f={3:function(n){i.text(n.value,n.raw)},8:function(n){i.comment(n.value)},7:function(n){i.pi(n.name,n.value)},10:function(n){i.doctype(n.value)},4:function(n){i.cdata(n.value)},11:function(n){if(n=n.firstChild)for(;u(n),n=n.next;);}},i.reset(),u=function(n){var y,a,r,o,c,h,s,l,v,p=f[n.type];if(p)p(n);else{if(y=n.name,a=n.shortEnded,r=n.attributes,e&&r&&1<r.length&&((h=[]).map={},v=t.getElementRule(n.name))){for(s=0,l=v.attributesOrder.length;s<l;s++)(o=v.attributesOrder[s])in r.map&&(c=r.map[o],h.map[o]=c,h.push({name:o,value:c}));for(s=0,l=r.length;s<l;s++)(o=r[s].name)in h.map||(c=r.map[o],h.map[o]=c,h.push({name:o,value:c}));r=h}if(i.start(n.name,r,a),!a){if(n=n.firstChild)for(;u(n),n=n.next;);i.end(y)}}},1!==r.type||n.inner?f[11](r):u(r),i.getContent()}}}function dvt(n){var r,t,u,v,f={state:{},exec:{},value:{}},c=n.settings,o;n.on("PreInit",function(){r=n.dom;t=n.selection;c=n.settings;u=n.formatter});var l=function(t){var i;if(!n.quirks.isHidden()&&!n.removed){if(t=t.toLowerCase(),i=f.state[t])return i(t);try{return n.getDoc().queryCommandState(t)}catch(r){}return!1}},h=function(n,t){t=t||"exec";ry(n,function(n,i){ry(i.toLowerCase().split(","),function(i){f[t][i]=n})})},a=function(t,i,r){t=t.toLowerCase();f.value[t]=function(){return i.call(r||n)}};tli(this,{execCommand:function(t,i,r,u){var s,o,e=!1;if(!n.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(t)||u&&u.skip_focus?gci(n):n.focus(),(u=n.fire("BeforeExecCommand",{command:t,ui:i,value:r})).isDefaultPrevented())return!1;if(o=t.toLowerCase(),s=f.exec[o])return s(o,i,r),n.fire("ExecCommand",{command:t,ui:i,value:r}),!0;if(ry(n.plugins,function(u){if(u.execCommand&&u.execCommand(t,i,r))return n.fire("ExecCommand",{command:t,ui:i,value:r}),!(e=!0)}),e)return e;if(n.theme&&n.theme.execCommand&&n.theme.execCommand(t,i,r))return n.fire("ExecCommand",{command:t,ui:i,value:r}),!0;try{e=n.getDoc().execCommand(t,i,r)}catch(h){}return!!e&&(n.fire("ExecCommand",{command:t,ui:i,value:r}),!0)}},queryCommandState:l,queryCommandValue:function(t){var i;if(!n.quirks.isHidden()&&!n.removed){if(t=t.toLowerCase(),i=f.value[t])return i(t);try{return n.getDoc().queryCommandValue(t)}catch(r){}}},queryCommandSupported:function(t){if(t=t.toLowerCase(),f.exec[t])return!0;try{return n.getDoc().queryCommandSupported(t)}catch(i){}return!1},addCommands:h,addCommand:function(t,i,r){t=t.toLowerCase();f.exec[t]=function(t,u,f,e){return i.call(r||n,u,f,e)}},addQueryStateHandler:function(t,i,r){t=t.toLowerCase();f.state[t]=function(){return i.call(r||n)}},addQueryValueHandler:a,hasCustomCommand:function(n){return n=n.toLowerCase(),!!f.exec[n]}});var y=function(t,i,r){return i===undefined&&(i=!1),r===undefined&&(r=null),n.getDoc().execCommand(t,i,r)},p=function(n){return u.match(n)},e=function(t,i){u.toggle(t,i?{value:i}:undefined);n.nodeChanged()},w=function(n){v=t.getBookmark(n)},b=function(){t.moveToBookmark(v)};h({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){n.undoManager.add()},"Cut,Copy,Paste":function(t){var r,u=n.getDoc(),i;try{y(t)}catch(f){r=!0}("paste"!==t||u.queryCommandEnabled(t)||(r=!0),r||!u.queryCommandSupported(t))&&(i=n.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead."),s.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),n.notificationManager.open({text:i,type:"error"}))},unlink:function(){if(t.isCollapsed()){var i=n.dom.getParent(n.selection.getStart(),"a");i&&n.dom.remove(i,!0)}else u.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var t=n.substring(7);"full"===t&&(t="justify");ry("left,center,right,justify".split(","),function(n){t!==n&&u.remove("align"+n)});"none"!==t&&e("align"+t)},"InsertUnorderedList,InsertOrderedList":function(n){var i,u;y(n);(i=r.getParent(t.getNode(),"ol,ul"))&&(u=i.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(u.nodeName)&&(w(),r.split(u,i),b()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(n){e(n)},"ForeColor,HiliteColor":function(n,t,i){e(n,i)},FontName:function(t,i,r){var u,f;f=r;(u=n).formatter.toggle("fontname",{value:fvt(u,f)});u.nodeChanged()},FontSize:function(t,i,r){var u,f;f=r;(u=n).formatter.toggle("fontsize",{value:fvt(u,f)});u.nodeChanged()},RemoveFormat:function(n){u.remove(n)},mceBlockQuote:function(){e("blockquote")},FormatBlock:function(n,t,i){return e(i||"p")},mceCleanup:function(){var i=t.getBookmark();n.setContent(n.getContent());t.moveToBookmark(i)},mceRemoveNode:function(i,r,u){var f=u||t.getNode();f!==n.getBody()&&(w(),n.dom.remove(f,!0),b())},mceSelectNodeDepth:function(i,u,f){var e=0;r.getParent(t.getNode(),function(n){if(1===n.nodeType&&e++===f)return t.select(n),!1},n.getBody())},mceSelectNode:function(n,i,r){t.select(r)},mceInsertContent:function(t,i,r){dei(n,r)},mceInsertRawHTML:function(i,r,u){var f=n.getContent();t.setContent("tiny_mce_marker");n.setContent(f.replace(/tiny_mce_marker/g,function(){return u}))},mceToggleFormat:function(n,t,i){e(i)},mceSetContent:function(t,i,r){n.setContent(r)},"Indent,Outdent":function(t){nli(n,t)},mceRepaint:function(){},InsertHorizontalRule:function(){n.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){n.hasVisual=!n.hasVisual;n.addVisual()},mceReplaceContent:function(i,r,u){n.execCommand("mceInsertContent",!1,u.replace(/\{\$selection\}/g,t.getContent({format:"text"})))},mceInsertLink:function(n,i,f){var e;"string"==typeof f&&(f={href:f});e=r.getParent(t.getNode(),"a");f.href=f.href.replace(" ","%20");e&&f.href||u.remove("link");f.href&&u.apply("link",f,e)},selectAll:function(){var u=r.getParent(t.getStart(),i.isContentEditableTrue),n;u&&(n=r.createRng(),n.selectNodeContents(u),t.setRng(n))},"delete":function(){tci(n)},forwardDelete:function(){ici(n)},mceNewDocument:function(){n.setContent("")},InsertLineBreak:function(t,i,r){return avt(n,r),!0}});o=function(n){return function(){var i=t.isCollapsed()?[r.getParent(t.getNode(),r.isBlock)]:t.getSelectedBlocks(),f=ili(i,function(t){return!!u.matchNode(t,n)});return-1!==rli(f,!0)}};h({JustifyLeft:o("alignleft"),JustifyCenter:o("aligncenter"),JustifyRight:o("alignright"),JustifyFull:o("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(n){return p(n)},mceBlockQuote:function(){return p("blockquote")},Outdent:function(){var n;return c.inline_styles&&((n=r.getParent(t.getStart(),r.isBlock))&&0<parseInt(n.style.paddingLeft,10)||(n=r.getParent(t.getEnd(),r.isBlock))&&0<parseInt(n.style.paddingLeft,10))?!0:l("InsertUnorderedList")||l("InsertOrderedList")||!c.inline_styles&&!!r.getParent(t.getNode(),"BLOCKQUOTE")},"InsertUnorderedList,InsertOrderedList":function(n){var i=r.getParent(t.getNode(),"ul,ol");return i&&("insertunorderedlist"===n&&"UL"===i.tagName||"insertorderedlist"===n&&"OL"===i.tagName)}},"state");h({Undo:function(){n.undoManager.undo()},Redo:function(){n.undoManager.redo()}});a("FontName",function(){return uvt(t=n).fold(function(){return rvt(t).map(function(n){return gv.getFontFamily(t.getBody(),n)}).getOr("")},function(n){return gv.getFontFamily(t.getBody(),n)});var t},this);a("FontSize",function(){return uvt(t=n).fold(function(){return rvt(t).map(function(n){return gv.getFontSize(t.getBody(),n)}).getOr("")},function(n){return gv.getFontSize(t.getBody(),n)});var t},this)}function eyt(n){var r={},i=[],o=function(n){var r,i,t={};for(i in kd(dd(n,"+"),function(n){n in fyt?t[n]=!0:/^[0-9]{2,}$/.test(n)?t.keyCode=parseInt(n,10):(t.charCode=n.charCodeAt(0),t.keyCode=lli[n]||n.toUpperCase().charCodeAt(0))}),r=[t.keyCode],fyt)t[i]?r.push(i):t[i]=!1;return t.id=r.join(","),t.access&&(t.alt=!0,s.mac?t.ctrl=!0:t.shift=!0),t.meta&&(s.mac?t.meta=!0:(t.ctrl=!0,t.meta=!1)),t},u=function(i,r,u,f){var e;return(e=t.map(dd(i,">"),o))[e.length-1]=t.extend(e[e.length-1],{func:u,scope:f||n}),t.extend(e[0],{desc:n.translate(r),subpatterns:e.slice(1)})},f=function(n,t){return!!t&&t.ctrl===n.ctrlKey&&t.meta===n.metaKey&&t.alt===n.altKey&&t.shift===n.shiftKey&&!!(n.keyCode===t.keyCode||n.charCode&&n.charCode===t.charCode)&&(n.preventDefault(),!0)},e=function(n){return n.func?n.func.call(n.scope):null};n.on("keyup keypress keydown",function(n){var t,u;((u=n).altKey||u.ctrlKey||u.metaKey||"keydown"===(t=n).type&&112<=t.keyCode&&t.keyCode<=123)&&!n.isDefaultPrevented()&&(kd(r,function(t){if(f(n,t))return i=t.subpatterns.slice(0),"keydown"===n.type&&e(t),!0}),f(n,i[0])&&(1===i.length&&"keydown"===n.type&&e(i[0]),i.shift()))});this.add=function(i,f,e,o){var s;return"string"==typeof(s=e)?e=function(){n.execCommand(s,!1,null)}:t.isArray(s)&&(e=function(){n.execCommand(s[0],s[1],s[2])}),kd(dd(t.trim(i.toLowerCase())),function(n){var t=u(n,f,e,o);r[t.id]=t}),!0};this.remove=function(n){var t=u(n);return!!r[t.id]&&(delete r[t.id],!0)}}function vyt(t){var u,i=[],r=function(){var n,i=t.theme;return i&&i.getNotificationManagerImpl?i.getNotificationManagerImpl():{open:n=function(){throw new Error("Theme did not provide a NotificationManager implementation.");},close:n,reposition:n,getArgs:n}},f=function(){0<i.length&&r().reposition(i)},e=function(n){cf(i,function(t){return t===n}).each(function(n){i.splice(n,1)})},o=function(n){if(!t.removed&&nai(t))return ui(i,function(t){return i=r().getArgs(t),u=n,!(i.type!==u.type||i.text!==u.text||i.progressBar||i.timeout||u.progressBar||u.timeout);var i,u}).getOrThunk(function(){t.editorManager.setActive(t);var o,u=r().open(n,function(){e(u);f()});return o=u,i.push(o),f(),u})};return(u=t).on("SkinLoaded",function(){var n=u.settings.service_message;n&&o({text:n,type:"warning",timeout:0,icon:""})}),u.on("ResizeEditor ResizeWindow",function(){gt.requestAnimationFrame(f)}),u.on("remove",function(){l(i,function(n){r().close(n)})}),{open:o,close:function(){n.from(i[0]).each(function(n){r().close(n);e(n);f()})},getNotifications:function(){return i}}}function yyt(t){var i=[],r=function(){var n,i=t.theme;return i&&i.getWindowManagerImpl?i.getWindowManagerImpl():{open:n=function(){throw new Error("Theme did not provide a WindowManager implementation.");},alert:n,confirm:n,close:n,getParams:n,setParams:n}},o=function(n,t){return function(){return t?t.apply(n,arguments):undefined}},f=function(n){var r;i.push(n);r=n;t.fire("OpenWindow",{win:r})},u=function(n){cf(i,function(t){return t===n}).each(function(r){var u;i.splice(r,1);u=n;t.fire("CloseWindow",{win:u});0===i.length&&t.focus()})},e=function(){return n.from(i[i.length-1])};return t.on("remove",function(){l(i.slice(0),function(n){r().close(n)})}),{windows:i,open:function(n,i){t.editorManager.setActive(t);iy(t);var e=r().open(n,i,u);return f(e),e},alert:function(n,t,i){var e=r().alert(n,o(i||this,t),u);f(e)},confirm:function(n,t,i){var e=r().confirm(n,o(i||this,t),u);f(e)},close:function(){e().each(function(n){r().close(n);u(n)})},getParams:function(){return e().map(r().getParams).getOr(null)},setParams:function(n){e().each(function(t){r().setParams(t,n)})},getWindows:function(){return i}}}function ig(){return new(lf.getOrDie("XMLHttpRequest"))}function fai(n,i){var r={},f=function(n,t,r,u){var f,e;(f=new ig).open("POST",i.url);f.withCredentials=i.credentials;f.upload.onprogress=function(n){u(n.loaded/n.total*100)};f.onerror=function(){r("Image upload failed due to a XHR Transport error. Code: "+f.status)};f.onload=function(){var n,u,e;f.status<200||300<=f.status?r("HTTP Error: "+f.status):(n=JSON.parse(f.responseText))&&"string"==typeof n.location?t((u=i.basePath,e=n.location,u?u.replace(/\/$/,"")+"/"+e.replace(/^\//,""):e)):r("Invalid JSON: "+f.responseText)};(e=new FormData).append("file",n.blob(),n.filename());f.send(e)},e=function(n,t){return{url:t,blobInfo:n,status:!0}},u=function(n,t){return{url:"",blobInfo:n,status:!1,error:t}},o=function(n,i){t.each(r[n],function(n){n(i)});delete r[n]},s=function(f,s){return f=t.grep(f,function(t){return!n.isUploaded(t.blobUri())}),ei.all(t.map(f,function(t){return n.isPending(t.blobUri())?(h=t.blobUri(),new ei(function(n){r[h]=r[h]||[];r[h].push(n)})):(f=t,c=i.handler,l=s,n.markPending(f.blobUri()),new ei(function(t){var i,r;try{r=function(){i&&i.close()};c(f,function(i){r();n.markUploaded(f.blobUri(),i);o(f.blobUri(),e(f,i));t(e(f,i))},function(i){r();n.removeFailed(f.blobUri());o(f.blobUri(),u(f,i));t(u(f,i))},function(n){n<0||100<n||(i||(i=l()),i.progressBar.value(n))})}catch(s){t(u(f,s.message))}}));var f,c,l,h}))};return i=t.extend({credentials:!1,handler:f},i),{upload:function(n,t){return i.url||i.handler!==f?s(n,t):new ei(function(n){n([])})}}}function kyt(n,t){return new(lf.getOrDie("Blob"))(n,t)}function eai(){return new(lf.getOrDie("FileReader"))}function oai(n){return new(lf.getOrDie("Uint8Array"))(n)}function yai(n){var u,i,w,b,l,o,c,t,a,v,f=(u=[],i=ht.constant,w=function(n){var t,r,u;if(!n.blob||!n.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");return t=n.id||rg.uuid("blobid"),r=n.name||t,{id:i(t),name:i(r),filename:i(r+"."+(u=n.blob.type,{"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png"}[u.toLowerCase()]||"dat")),blob:i(n.blob),base64:i(n.base64),blobUri:i(n.blobUri||gc.createObjectURL(n.blob)),uri:i(n.uri)}},{create:function(n,t,i,r){return w("object"==typeof n?n:{id:n,name:r,blob:t,base64:i})},add:function(n){b(n.id())||u.push(n)},get:b=function(n){return l(function(t){return t.id()===n})},getByUri:function(n){return l(function(t){return t.blobUri()===n})},findFirst:l=function(n){return h.filter(u,n)[0]},removeByUri:function(n){u=h.filter(u,function(t){return t.blobUri()!==n||(gc.revokeObjectURL(t.blobUri()),!1)})},destroy:function(){h.each(u,function(n){gc.revokeObjectURL(n.blobUri())});u=[]}}),r=n.settings,e=(t={},a=function(n,t){return{status:n,resultUri:t}},{hasBlobUri:v=function(n){return n in t},getResultUri:function(n){var i=t[n];return i?i.resultUri:null},isPending:function(n){return!!v(n)&&1===t[n].status},isUploaded:function(n){return!!v(n)&&2===t[n].status},markPending:function(n){t[n]=a(1,null)},markUploaded:function(n,i){t[n]=a(2,i)},removeFailed:function(n){delete t[n]},destroy:function(){t={}}}),y=function(t){return function(i){return n.selection?t(i):[]}},k=function(n,t,i){for(var r=0;-1!==(r=n.indexOf(t,r))&&(n=n.substring(0,r)+i+n.substr(r+t.length),r+=i.length-t.length+1),-1!==r;);return n},d=function(n,t,i){return n=k(n,'src="'+t+'"','src="'+i+'"'),n=k(n,'data-mce-src="'+t+'"','data-mce-src="'+i+'"')},g=function(t,i){h.each(n.undoManager.data,function(n){"fragmented"===n.type?n.fragments=h.map(n.fragments,function(n){return d(n,t,i)}):n.content=d(n.content,t,i)})},rt=function(){return n.notificationManager.open({text:n.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})},ut=function(t,i){f.removeByUri(t.src);g(t.src,i);n.$(t).attr({src:r.images_reuse_filename?i+"?"+(new Date).getTime():i,"data-mce-src":n.convertURL(i,"src")})},nt=function(t){return o||(o=fai(e,{url:r.images_upload_url,basePath:r.images_upload_base_path,credentials:r.images_upload_credentials,handler:r.images_upload_handler})),p().then(y(function(i){var r;return r=h.map(i,function(n){return n.blobInfo}),o.upload(r,rt).then(y(function(r){var u=h.map(r,function(t,r){var u=i[r].image;return t.status&&!1!==n.settings.images_replace_blob_uris?ut(u,t.url):t.error&&rai(n,t.error),{element:u,status:t.status}});return t&&t(u),u}))}))},tt=function(n){if(!1!==r.automatic_uploads)return nt(n)},ft=function(n){return!r.images_dataimg_filter||r.images_dataimg_filter(n)},p=function(){var i,r,t;return c||(i=e,r=f,t={},c={findAll:function(n,u){var f,e;return u||(u=ht.constant(!0)),f=h.filter(aai(n),function(n){var t=n.src;return!!s.fileApi&&!n.hasAttribute("data-mce-bogus")&&!n.hasAttribute("data-mce-placeholder")&&!(!t||t===s.transparentSrc)&&(0===t.indexOf("blob:")?!i.isUploaded(t):0===t.indexOf("data:")&&u(n))}),e=h.map(f,function(n){if(t[n.src])return new ei(function(i){t[n.src].then(function(t){if("string"==typeof t)return t;i({image:n,blobInfo:t.blobInfo})})});var i=new ei(function(t,i){lai(r,n,t,i)}).then(function(n){return delete t[n.image.src],n})["catch"](function(i){return delete t[n.src],i});return t[n.src]=i}),ei.all(e)}}),c.findAll(n.getBody(),ft).then(y(function(t){return t=h.filter(t,function(t){return"string"!=typeof t||(uai(n,t),!1)}),h.each(t,function(n){g(n.image.src,n.blobInfo.blobUri());n.image.src=n.blobInfo.blobUri();n.image.removeAttribute("data-mce-src")}),t}))},it=function(t){return t.replace(/src="(blob:[^"]+)"/g,function(t,i){var u=e.getResultUri(i),r;return u?'src="'+u+'"':(r=f.getByUri(i),r||(r=h.reduce(n.editorManager.get(),function(n,t){return n||t.editorUpload&&t.editorUpload.blobCache.getByUri(i)},null)),r?'src="data:'+r.blob().type+";base64,"+r.base64()+'"':t)})};return n.on("setContent",function(){!1!==n.settings.automatic_uploads?tt():p()}),n.on("RawSaveContent",function(n){n.content=it(n.content)}),n.on("getContent",function(n){n.source_view||"raw"===n.format||(n.content=it(n.content))}),n.on("PostRender",function(){n.parser.addNodeFilter("img",function(n){h.each(n,function(n){var i=n.attr("src"),t;f.getByUri(i)||(t=e.getResultUri(i),t&&n.attr("src",t))})})}),{blobCache:f,uploadImages:nt,uploadImagesAuto:tt,scanForImages:p,destroy:function(){f.destroy();e.destroy();c=o=null}}}function dai(n){var i,t=[];"onselectionchange"in n.getDoc()||n.on("NodeChange Click MouseUp KeyUp Focus",function(t){var r,u;u={startContainer:(r=n.selection.getRng()).startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==t.type&&vd(u,i)||n.fire("SelectionChange");i=u});n.on("contextmenu",function(){n.fire("SelectionChange")});n.on("SelectionChange",function(){var i=n.selection.getStart(!0);i&&(s.range||!n.selection.isCollapsed())&&og(n)&&!function(i){var r,u;if((u=n.$(i).parentsUntil(n.getBody()).add(i)).length===t.length){for(r=u.length;0<=r&&u[r]===t[r];r--);if(-1===r)return t=u,!0}return t=u,!1}(i)&&n.dom.isChildOf(i,n.getBody())&&n.nodeChanged({selectionChange:!0})});n.on("MouseUp",function(t){!t.isDefaultPrevented()&&og(n)&&("IMG"===n.selection.getNode().nodeName?gt.setEditorTimeout(n,function(){n.nodeChanged()}):n.nodeChanged())});this.nodeChanged=function(t){var i,u,r,f=n.selection;n.initialized&&f&&!n.settings.disable_nodechange&&!n.readonly&&(r=n.getBody(),(i=f.getStart(!0)||r).ownerDocument===n.getDoc()&&n.dom.isChildOf(i,r)||(i=r),u=[],n.dom.getParent(i,function(n){if(n===r)return!0;u.push(n)}),(t=t||{}).element=i,t.parents=u,n.fire("NodeChange",t))}}function vg(n,i){var r;void 0===i&&(i=lu());r=function(){};!1!==(n=n||{}).fix_self_closing&&(n.fix_self_closing=!0);var e=n.comment?n.comment:r,o=n.cdata?n.cdata:r,u=n.text?n.text:r,s=n.start?n.start:r,f=n.end?n.end:r,h=n.pi?n.pi:r,c=n.doctype?n.doctype:r;return{parse:function(r){var a,l,lt,p,y,ut,g,ft,vt,yt,pt,at,it,d,w,nt,tt,wt,et,ot,st,ht,bt,kt,rt,dt,gt,k,ni,v=0,b=[],ti=0,ct=wf.decode,ii=t.makeMap("src,href,data,background,formaction,poster,xlink:href"),ui=/((java|vb)script|mhtml):/i,ri=function(n){for(var i,t=b.length;t--&&b[t].name!==n;);if(0<=t){for(i=b.length-1;t<=i;i--)(n=b[i]).valid&&f(n.name);b.length=t}},fi=function(t,i,r,u,f){var o,s,c,l,h,e;if(r=(i=i.toLowerCase())in pt?i:ct(r||u||f||""),it&&!ft&&0==(0===(c=i).indexOf("data-")||0===c.indexOf("aria-"))){if(!(o=wt[i])&&et){for(s=et.length;s--&&!(o=et[s]).pattern.test(i););-1===s&&(o=null)}if(!o)return;if(o.validValues&&!(r in o.validValues))return}if(ii[i]&&!n.allow_script_urls){e=r.replace(/[\s\u0000-\u001F]+/g,"");try{e=decodeURIComponent(e)}catch(a){e=unescape(e)}if(ui.test(e))return;if(h=e,!(l=n).allow_html_data_urls&&(/^data:image\//i.test(h)?!1===l.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(h):/^data:/i.test(h)))return}ft&&(i in ii||0===i.indexOf("on"))||(p.map[i]=r,p.push({name:i,value:r}))};for(rt=new RegExp("<(?:(?:!--([\\w\\W]*?)-->)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),dt=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,yt=i.getShortEndedElements(),kt=n.self_closing_elements||i.getSelfClosingElements(),pt=i.getBoolAttrs(),it=n.validate,vt=n.remove_internals,ni=n.fix_self_closing,gt=i.getSpecialElements(),bt=r+">";a=rt.exec(bt);){if(v<a.index&&u(ct(r.substr(v,a.index-v))),l=a[6])":"===(l=l.toLowerCase()).charAt(0)&&(l=l.substr(1)),ri(l);else if(l=a[7]){if(a.index+a[0].length>r.length){u(ct(r.substr(a.index)));v=a.index+a[0].length;continue}if(":"===(l=l.toLowerCase()).charAt(0)&&(l=l.substr(1)),at=l in yt,ni&&kt[l]&&0<b.length&&b[b.length-1].name===l&&ri(l),!it||(d=i.getElementRule(l))){if(w=!0,it&&(wt=d.attributes,et=d.attributePatterns),(tt=a[8])?((ft=-1!==tt.indexOf("data-mce-type"))&&vt&&(w=!1),(p=[]).map={},tt.replace(dt,fi)):(p=[]).map={},it&&!ft){if(ot=d.attributesRequired,st=d.attributesDefault,ht=d.attributesForced,d.removeEmptyAttrs&&!p.length&&(w=!1),ht)for(y=ht.length;y--;)g=(nt=ht[y]).name,"{$uid}"===(k=nt.value)&&(k="mce_"+ti++),p.map[g]=k,p.push({name:g,value:k});if(st)for(y=st.length;y--;)(g=(nt=st[y]).name)in p.map||("{$uid}"===(k=nt.value)&&(k="mce_"+ti++),p.map[g]=k,p.push({name:g,value:k}));if(ot){for(y=ot.length;y--&&!(ot[y]in p.map););-1===y&&(w=!1)}if(nt=p.map["data-mce-bogus"]){if("all"===nt){v=lpt(i,r,rt.lastIndex);rt.lastIndex=v;continue}w=!1}}w&&s(l,p,at)}else w=!1;if(lt=gt[l]){lt.lastIndex=v=a.index+a[0].length;(a=lt.exec(r))?(w&&(ut=r.substr(v,a.index-v)),v=a.index+a[0].length):(ut=r.substr(v),v=r.length);w&&(0<ut.length&&u(ut,!0),f(l));rt.lastIndex=v;continue}at||(tt&&tt.indexOf("/")===tt.length-1?w&&f(l):b.push({name:l,valid:w}))}else(l=a[1])?(">"===l.charAt(0)&&(l=" "+l),n.allow_conditional_comments||"[if"!==l.substr(0,3).toLowerCase()||(l=" "+l),e(l)):(l=a[2])?o(l.replace(/<!--|-->/g,"")):(l=a[3])?c(l):(l=a[4])&&h(l,a[5]);v=a.index+a[0].length}for(v<r.length&&u(ct(r.substr(v))),y=b.length-1;0<=y;y--)(l=b[y]).valid&&f(l.name)}}}function bpt(n){var l,s,r=this,u=0,i=[],h=0,c=function(){return 0===h},e=function(n){c()&&(r.typing=n)},o=function(t){n.setDirty(t)},f=function(n){e(!1);r.add({},n)},a=function(){r.typing&&(e(!1),r.add())};return n.on("init",function(){r.add()}),n.on("BeforeExecCommand",function(n){var t=n.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&(a(),r.beforeChange())}),n.on("ExecCommand",function(n){var t=n.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&f(n)}),n.on("ObjectResizeStart Cut",function(){r.beforeChange()}),n.on("SaveContent ObjectResized blur",f),n.on("DragEnd",f),n.on("KeyUp",function(t){var u=t.keyCode;t.isDefaultPrevented()||((33<=u&&u<=36||37<=u&&u<=40||45===u||t.ctrlKey)&&(f(),n.nodeChanged()),46!==u&&8!==u||n.nodeChanged(),s&&r.typing&&!1===kg(wg(n),i[0])&&(!1===n.isDirty()&&(o(!0),n.fire("change",{level:i[0],lastLevel:null})),n.fire("TypingUndo"),s=!1,n.nodeChanged()))}),n.on("KeyDown",function(n){var t=n.keyCode,i;n.isDefaultPrevented()||(33<=t&&t<=36||37<=t&&t<=40||45===t?r.typing&&f(n):(i=n.ctrlKey&&!n.altKey||n.metaKey,(t<16||20<t)&&224!==t&&91!==t&&!r.typing&&!i&&(r.beforeChange(),e(!0),r.add({},n),s=!0)))}),n.on("MouseDown",function(n){r.typing&&f(n)}),n.on("input",function(n){var t;n.inputType&&("insertReplacementText"===n.inputType||"insertText"===(t=n).inputType&&null===t.data)&&f(n)}),n.addShortcut("meta+z","","Undo"),n.addShortcut("meta+y,meta+shift+z","","Redo"),n.on("AddUndo Undo Redo ClearUndos",function(t){t.isDefaultPrevented()||n.nodeChanged()}),r={data:i,typing:!1,beforeChange:function(){c()&&(l=ho.getUndoBookmark(n.selection))},add:function(r,f){var e,s,a,v=n.settings,h;if((a=wg(n),r=r||{},r=t.extend(r,a),!1===c()||n.removed)||(s=i[u],n.fire("BeforeAddUndo",{level:r,lastLevel:s,originalEvent:f}).isDefaultPrevented())||s&&kg(s,r))return null;if(i[u]&&(i[u].beforeBookmark=l),v.custom_undo_redo_levels&&i.length>v.custom_undo_redo_levels){for(e=0;e<i.length-1;e++)i[e]=i[e+1];i.length--;u=i.length}return r.bookmark=ho.getUndoBookmark(n.selection),u<i.length-1&&(i.length=u+1),i.push(r),u=i.length-1,h={level:r,lastLevel:s,originalEvent:f},n.fire("AddUndo",h),0<u&&(o(!0),n.fire("change",h)),r},undo:function(){var t;return r.typing&&(r.add(),r.typing=!1,e(!1)),0<u&&(t=i[--u],bg(n,t,!0),o(!0),n.fire("undo",{level:t})),t},redo:function(){var t;return u<i.length-1&&(t=i[++u],bg(n,t,!1),o(!0),n.fire("redo",{level:t})),t},clear:function(){i=[];u=0;r.typing=!1;r.data=i;n.fire("ClearUndos")},hasUndo:function(){return 0<u||r.typing&&i[0]&&!kg(wg(n),i[0])},hasRedo:function(){return u<i.length-1&&!r.typing},transact:function(n){return a(),r.beforeChange(),r.ignore(n),r.add()},ignore:function(n){try{h++;n()}finally{h--}},extra:function(t,f){var e,o;r.transact(t)&&(o=i[u].bookmark,e=i[u-1],bg(n,e,!0),r.transact(f)&&(i[u-1].beforeBookmark=o))}}}function bwt(n){var e,i,r,u=(e=n,i={},(r=function(n,u){n&&("string"!=typeof n?t.each(n,function(n,t){r(t,n)}):(u=u.length?u:[u],t.each(u,function(n){"undefined"==typeof n.deep&&(n.deep=!n.selector);"undefined"==typeof n.split&&(n.split=!n.selector||n.inline);"undefined"==typeof n.remove&&n.selector&&!n.inline&&(n.remove="none");n.selector&&n.inline&&(n.mixed=!0,n.block_expand=!0);"string"==typeof n.classes&&(n.classes=n.classes.split(/\s+/))}),i[n]=u))})(gyi.get(e.dom)),r(e.settings.formats),{get:function(n){return n?i[n]:i},register:r,unregister:function(n){return n&&i[n]&&delete i[n],i}}),o=au(null);return upi(n),syi(n),{get:u.get,register:u.register,unregister:u.unregister,apply:f(pwt.applyFormat,n),remove:f(swt,n),toggle:f(rpi,n,u),match:f(hi.match,n),matchAll:f(hi.matchAll,n),matchNode:f(hi.matchNode,n),canApply:f(hi.canApply,n),formatChanged:f(dyi,n,o),getCssText:f(ipi,n)}}function cn(n,t){var e,o;void 0===t&&(t=lu());var r={},i=[],u={},f={};return(n=n||{}).validate=!("validate"in n)||n.validate,n.root_name=n.root_name||"body",e=function(n){var o,t,e;for((t in r)&&((e=u[t])?e.push(n):u[t]=[n]),o=i.length;o--;)(t=i[o].name)in n.attributes.map&&((e=f[t])?e.push(n):f[t]=[n]);return n},o={schema:t,addAttributeFilter:function(n,t){rbt(ubt(n),function(n){for(var r=0;r<i.length;r++)if(i[r].name===n)return void i[r].callbacks.push(t);i.push({name:n,callbacks:[t]})})},getAttributeFilters:function(){return[].concat(i)},addNodeFilter:function(n,t){rbt(ubt(n),function(n){var i=r[n];i||(r[n]=i=[]);i.push(t)})},getNodeFilters:function(){var t=[],n;for(n in r)r.hasOwnProperty(n)&&t.push({name:n,callbacks:r[n]});return t},filterNode:e,parse:function(o,s){var et,a,v,d,c,ot,l,g,p,w,h,it=[],y,tt,k;s=s||{};u={};f={};p=ypi(ibt("script,style,head,html,body,title,meta,param"),t.getBlockElements());var st=t.getNonEmptyElements(),ht=t.children,nt=n.validate,rt="forced_root_block"in s?s.forced_root_block:n.forced_root_block,b=t.getWhiteSpaceElements(),ut=/^[ \t\r\n]+/,ft=/[ \t\r\n]+$/,lt=/[ \t\r\n]+/g,ct=/^[ \t\r\n]+$/;if(w=b.hasOwnProperty(s.context)||b.hasOwnProperty(n.root_name),y=function(n,t){var f,i=new wi(n,t);return n in r&&((f=u[n])?f.push(i):u[n]=[i]),i},tt=function(n){for(var r,u,f,e=t.getBlockElements(),i=n.prev;i&&3===i.type;){if(0<(u=i.value.replace(ft,"")).length)return void(i.value=u);if(r=i.next){if(3===r.type&&r.value.length){i=i.prev;continue}if(!e[r.name]&&"script"!==r.name&&"style"!==r.name){i=i.prev;continue}}f=i.prev;i.remove();i=f}},et=yg({validate:nt,allow_script_urls:n.allow_script_urls,allow_conditional_comments:n.allow_conditional_comments,self_closing_elements:function(n){var t,i={};for(t in n)"li"!==t&&"p"!==t&&(i[t]=n[t]);return i}(t.getSelfClosingElements()),cdata:function(n){h.append(y("#cdata",4)).value=n},text:function(n,t){var i;w||(n=n.replace(lt," "),api(h.lastChild,p)&&(n=n.replace(ut,"")));0!==n.length&&((i=y("#text",3)).raw=!!t,h.append(i).value=n)},comment:function(n){h.append(y("#comment",8)).value=n},pi:function(n,t){h.append(y(n,7)).value=t;tt(h)},doctype:function(n){h.append(y("#doctype",10)).value=n;tt(h)},start:function(n,r,u){var e,o,c,s,a;if(c=nt?t.getElementRule(n):{}){for((e=y(c.outputName||n,1)).attributes=r,e.shortEnded=u,h.append(e),(a=ht[h.name])&&ht[e.name]&&!a[e.name]&&it.push(e),o=i.length;o--;)(s=i[o].name)in r.map&&((l=f[s])?l.push(e):f[s]=[e]);p[n]&&tt(e);u||(h=e);!w&&b[n]&&(w=!0)}},end:function(i){var r,e,u,f,o;if(e=nt?t.getElementRule(i):{}){if(p[i]&&!w){if((r=h.firstChild)&&3===r.type)if(0<(u=r.value.replace(ut,"")).length)r.value=u,r=r.next;else for(f=r.next,r.remove(),r=f;r&&3===r.type;)u=r.value,f=r.next,(0===u.length||ct.test(u))&&(r.remove(),r=f),r=f;if((r=h.lastChild)&&3===r.type)if(0<(u=r.value.replace(ft,"")).length)r.value=u,r=r.prev;else for(f=r.prev,r.remove(),r=f;r&&3===r.type;)u=r.value,f=r.prev,(0===u.length||ct.test(u))&&(r.remove(),r=f),r=f}if(w&&b[i]&&(w=!1),e.removeEmpty&&tc(t,st,b,h)&&!h.attributes.map.name&&!h.attr("id"))return o=h.parent,p[h.name]?h.empty().remove():h.unwrap(),void(h=o);e.paddEmpty&&(lpi(h)||tc(t,st,b,h))&&nbt(n,s,p,h);h=h.parent}}},t),k=h=new wi(s.context||n.root_name,11),et.parse(o),nt&&it.length&&(s.context?s.invalid=!0:function(n){var l,i,u,f,a,h,c,s,o,v,y,w,p,b,r,k;for(w=ibt("tr,td,th,tbody,thead,tfoot,table"),v=t.getNonEmptyElements(),y=t.getWhiteSpaceElements(),p=t.getTextBlockElements(),b=t.getSpecialElements(),l=0;l<n.length;l++)if((i=n[l]).parent&&!i.fixed)if(p[i.name]&&"li"===i.parent.name){for(r=i.next;r&&p[r.name];)r.name="li",r.fixed=!0,i.parent.insert(r,i.parent),r=r.next;i.unwrap(i)}else{for(f=[i],u=i.parent;u&&!t.isValidChild(u.name,i.name)&&!w[u.name];u=u.parent)f.push(u);if(u&&1<f.length){for(f.reverse(),a=h=e(f[0].clone()),o=0;o<f.length-1;o++){for(t.isValidChild(h.name,f[o].name)?(c=e(f[o].clone()),h.append(c)):c=h,s=f[o].firstChild;s&&s!==f[o+1];)k=s.next,c.append(s),s=k;h=c}tc(t,v,y,a)?u.insert(i,f[0],!0):(u.insert(a,f[0],!0),u.insert(i,a));u=f[0];(tc(t,v,y,u)||tbt(u,"br"))&&u.empty().remove()}else if(i.parent){if("li"===i.name){if((r=i.prev)&&("ul"===r.name||"ul"===r.name)){r.append(i);continue}if((r=i.next)&&("ul"===r.name||"ul"===r.name)){r.insert(i,r.firstChild,!0);continue}i.wrap(e(new wi("ul",1)));continue}t.isValidChild(i.parent.name,"div")&&t.isValidChild("div",i.name)?i.wrap(e(new wi("div",1))):b[i.name]?i.empty().remove():i.unwrap()}}}(it)),rt&&("body"===k.name||s.isRootContent)&&function(){var u,r,i=k.firstChild,f=function(n){n&&((i=n.firstChild)&&3===i.type&&(i.value=i.value.replace(ut,"")),(i=n.lastChild)&&3===i.type&&(i.value=i.value.replace(ft,"")))};if(t.isValidChild(k.name,rt.toLowerCase())){for(;i;)u=i.next,3===i.type||1===i.type&&"p"!==i.name&&!p[i.name]&&!i.attr("data-mce-type")?(r||((r=y(rt,1)).attr(n.forced_root_block_attrs),k.insert(r,i)),r.append(i)):(f(r),r=null),i=u;f(r)}}(),!s.invalid){for(g in u){for(l=r[g],c=(a=u[g]).length;c--;)a[c].parent||a.splice(c,1);for(v=0,d=l.length;v<d;v++)l[v](a,g,s)}for(v=0,d=i.length;v<d;v++)if((l=i[v]).name in f){for(c=(a=f[l.name]).length;c--;)a[c].parent||a.splice(c,1);for(c=0,ot=l.callbacks.length;c<ot;c++)l.callbacks[c](a,l.name,s)}}return k}},vpi(o,n),hpi.register(o,n),o}function fbt(n,t){var i,r,s,e,o,h,u=(i=n,h=["data-mce-selected"],s=(r=t)&&r.dom?r.dom:g.DOM,e=r&&r.schema?r.schema:lu(i),i.entity_encoding=i.entity_encoding||"named",i.remove_trailing_brs=!("remove_trailing_brs"in i)||i.remove_trailing_brs,o=cn(i,e),dwt.register(o,i,s),{schema:e,addNodeFilter:o.addNodeFilter,addAttributeFilter:o.addAttributeFilter,serialize:function(n,t){var u=nc({format:"html"},t||{}),h=epi.process(r,n,u),c=wpi(s,h,u),f=bpi(o,c,u);return"tree"===u.format?f:kpi(r,i,e,f,u)},addRules:function(n){e.addValidElements(n)},setRules:function(n){e.setValidElements(n)},addTempAttr:f(ppi,o,h),getTempAttrs:function(){return h}});return{schema:u.schema,addNodeFilter:u.addNodeFilter,addAttributeFilter:u.addAttributeFilter,serialize:u.serialize,addRules:u.addRules,setRules:u.setRules,addTempAttr:u.addTempAttr,getTempAttrs:u.getTempAttrs}}function ln(n){return{getBookmark:f(kfi,n),moveToBookmark:f(dfi,n)}}function kbi(n){var o,h,c,p=t.each,l=y.BACKSPACE,g=y.DELETE,i=n.dom,r=n.selection,e=n.settings,nt=n.parser,w=s.gecko,tt=s.ie,it=s.webkit,a="data:text/mce-internal,",b=tt?"Text":"URL",f=function(t,i){try{n.getDoc().execCommand(t,!1,i)}catch(r){}},u=function(n){return n.isDefaultPrevented()},k=function(){n.shortcuts.add("meta+a",null,"SelectAll")},v=function(){n.on("keydown",function(n){if(!u(n)&&n.keyCode===l&&r.isCollapsed()&&0===r.getRng().startOffset){var t=r.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return n.preventDefault(),!1}})},d=function(){n.inline||(n.contentStyles.push("body {min-height: 150px}"),n.on("click",function(t){var i;if("HTML"===t.target.nodeName){if(11<s.ie)return void n.getBody().focus();i=n.selection.getRng();n.getBody().focus();n.selection.setRng(i);n.selection.normalize();n.nodeChanged()}}))};return n.on("keydown",function(t){var e,o,s,h,f;if(!u(t)&&t.keyCode===y.BACKSPACE&&(o=(e=r.getRng()).startContainer,s=e.startOffset,h=i.getRoot(),f=o,e.collapsed&&0===s)){for(;f&&f.parentNode&&f.parentNode.firstChild===f&&f.parentNode!==h;)f=f.parentNode;"BLOCKQUOTE"===f.tagName&&(n.formatter.toggle("blockquote",null,f),(e=i.createRng()).setStart(o,0),e.setEnd(o,0),r.setRng(e))}}),o=function(n){var t=i.create("body"),u=n.cloneContents();return t.appendChild(u),r.serializer.serialize(t,{format:"html"})},n.on("keydown",function(t){var f,r,e,s,h,c=t.keyCode;if(!u(t)&&(c===g||c===l)){if(f=n.selection.isCollapsed(),r=n.getBody(),f&&!i.isEmpty(r))return;if(!f&&(e=n.selection.getRng(),s=o(e),(h=i.createRng()).selectNode(n.getBody()),s!==o(h)))return;t.preventDefault();n.setContent("");r.firstChild&&i.isBlock(r.firstChild)?n.selection.setCursorLocation(r.firstChild,0):n.selection.setCursorLocation(r,0);n.nodeChanged()}}),s.windowsPhone||n.on("keyup focusin mouseup",function(n){y.modifierPressed(n)||r.normalize()},!0),it&&(n.settings.content_editable||i.bind(n.getDoc(),"mousedown mouseup",function(t){var i;if(t.target===n.getDoc().documentElement)if(i=r.getRng(),n.getBody().focus(),"mousedown"===t.type){if(oi(i.startContainer))return;r.placeCaretAt(t.clientX,t.clientY)}else r.setRng(i)}),n.on("click",function(t){var u=t.target;/^(IMG|HR)$/.test(u.nodeName)&&"false"!==i.getContentEditableParent(u)&&(t.preventDefault(),n.selection.select(u),n.nodeChanged());"A"===u.nodeName&&i.hasClass(u,"mce-item-anchor")&&(t.preventDefault(),r.select(u))}),e.forced_root_block&&n.on("init",function(){f("DefaultParagraphSeparator",e.forced_root_block)}),n.on("init",function(){n.dom.bind(n.getBody(),"submit",function(n){n.preventDefault()})}),v(),nt.addNodeFilter("br",function(n){for(var t=n.length;t--;)"Apple-interchange-newline"===n[t].attr("class")&&n[t].remove()}),s.iOS?(n.inline||n.on("keydown",function(){document.activeElement===document.body&&n.getWin().focus()}),d(),n.on("click",function(n){var t=n.target;do if("A"===t.tagName)return void n.preventDefault();while(t=t.parentNode)}),n.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")):k()),11<=s.ie&&(d(),v()),s.ie&&(k(),f("AutoUrlDetect",!1),n.on("dragstart",function(t){var i,u,f;(i=t).dataTransfer&&(n.selection.isCollapsed()&&"IMG"===i.target.tagName&&r.select(i.target),0<(u=n.selection.getContent()).length&&(f=a+escape(n.id)+","+escape(u),i.dataTransfer.setData(b,f)))}),n.on("drop",function(t){var f,o,e,s,h,i;u(t)||(f=(h=t).dataTransfer&&(i=h.dataTransfer.getData(b))&&0<=i.indexOf(a)?(i=i.substr(a.length).split(","),{id:unescape(i[0]),html:unescape(i[1])}):null,f&&f.id!==n.id&&(t.preventDefault(),o=an(t.x,t.y,n.getDoc()),r.setRng(o),e=f.html,s=!0,n.queryCommandSupported("mceInsertClipboardContent")?n.execCommand("mceInsertClipboardContent",!1,{content:e,internal:s}):n.execCommand("mceInsertContent",!1,e)))})),w&&(n.on("keydown",function(t){if(!u(t)&&t.keyCode===l){if(!n.getBody().getElementsByTagName("hr").length)return;if(r.isCollapsed()&&0===r.getRng().startOffset){var e=r.getNode(),f=e.previousSibling;if("HR"===e.nodeName)return i.remove(e),void t.preventDefault();f&&f.nodeName&&"hr"===f.nodeName.toLowerCase()&&(i.remove(f),t.preventDefault())}}}),Range.prototype.getClientRects||n.on("mousedown",function(t){if(!u(t)&&"HTML"===t.target.nodeName){var i=n.getBody();i.blur();gt.setEditorTimeout(n,function(){i.focus()})}}),h=function(){var t=i.getAttribs(r.getStart().cloneNode(!1));return function(){var u=r.getStart();u!==n.getBody()&&(i.setAttrib(u,"style",null),p(t,function(n){u.setAttributeNode(n.cloneNode(!0))}))}},c=function(){return!r.isCollapsed()&&i.getParent(r.getStart(),i.isBlock)!==i.getParent(r.getEnd(),i.isBlock)},n.on("keypress",function(t){var i;if(!u(t)&&(8===t.keyCode||46===t.keyCode)&&c())return i=h(),n.getDoc().execCommand("delete",!1,null),i(),t.preventDefault(),!1}),i.bind(n.getDoc(),"cut",function(t){var i;!u(t)&&c()&&(i=h(),gt.setEditorTimeout(n,function(){i()}))}),e.readonly||n.on("BeforeExecCommand MouseDown",function(){f("StyleWithCSS",!1);f("enableInlineTableEditing",!1);e.object_resizing||f("enableObjectResizing",!1)}),n.on("SetContent ExecCommand",function(n){"setcontent"!==n.type&&"mceInsertLink"!==n.command||p(i.select("a"),function(n){var t=n.parentNode,r=i.getRoot();if(t.lastChild===n){for(;t&&!i.isBlock(t);){if(t.parentNode.lastChild!==t||t===r)return;t=t.parentNode}i.add(t,"br",{"data-mce-bogus":1})}})}),n.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"),s.mac&&n.on("keydown",function(t){!y.metaKeyPressed(t)||t.shiftKey||37!==t.keyCode&&39!==t.keyCode||(t.preventDefault(),n.selection.getSel().modify("move",37===t.keyCode?"backward":"forward","lineboundary"))}),v()),{refreshContentEditable:function(){},isHidden:function(){var t;return!w||n.removed?0:!(t=n.selection.getSel())||!t.rangeCount||0===t.rangeCount}}}function stt(n){return{walk:function(t,i){return ev(n,t,i)},split:tn,normalize:function(t){return ny(n,t).fold(o(!1),function(n){return t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),!0})}}}var wtt,btt,ktt,ap,dtt,vc,ai,yc,pc,gtt,nit,fs,wc,vp,tit,iit,rit,es=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n]},dr=function(n,t){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n(t.apply(null,arguments))}},o=function(n){return function(){return n}},bi=function(n){return n},f=function(n){for(var r,i,u=[],t=1;t<arguments.length;t++)u[t-1]=arguments[t];for(r=new Array(arguments.length-1),i=1;i<arguments.length;i++)r[i-1]=arguments[i];return function(){for(var u,i,e,f=[],t=0;t<arguments.length;t++)f[t]=arguments[t];for(u=new Array(arguments.length),i=0;i<u.length;i++)u[i]=arguments[i];return e=r.concat(u),n.apply(null,e)}},os=o(!1),bc=o(!0),ss=os,yp=bc,ef=function(){return pp},pp=(ap={fold:function(n){return n()},is:ss,isSome:ss,isNone:yp,getOr:ktt=function(n){return n},getOrThunk:btt=function(n){return n()},getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.");},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:ktt,orThunk:btt,map:ef,ap:ef,each:function(){},bind:ef,flatten:ef,exists:ss,forall:yp,filter:ef,equals:wtt=function(n){return n.isNone()},equals_:wtt,toArray:function(){return[]},toString:o("none()")},Object.freeze&&Object.freeze(ap),ap),kc=function(n){var t=function(){return n},u=function(){return r},i=function(t){return t(n)},r={fold:function(t,i){return i(n)},is:function(t){return n===t},isSome:yp,isNone:ss,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:u,orThunk:u,map:function(t){return kc(t(n))},ap:function(t){return t.fold(ef,function(t){return kc(t(n))})},each:function(t){t(n)},bind:i,flatten:t,exists:i,forall:i,filter:function(t){return t(n)?r:pp},equals:function(t){return t.is(n)},equals_:function(t,i){return t.fold(ss,function(t){return i(n,t)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};return r},n={some:kc,none:ef,from:function(n){return null===n||n===undefined?pp:kc(n)}},of=function(n){return function(t){return function(n){if(null===n)return"null";var t=typeof n;return"object"===t&&Array.prototype.isPrototypeOf(n)?"array":"object"===t&&String.prototype.isPrototypeOf(n)?"string":t}(t)===n}},vi=of("string"),ngt=of("object"),hs=of("array"),tgt=of("null"),uit=of("boolean"),sf=of("function"),wp=of("number"),fit=(dtt=Array.prototype.indexOf)===undefined?function(n,t){return igt(n,t)}:function(n,t){return dtt.call(n,t)},cs=function(n,t){return-1<fit(n,t)},eit=function(n,t){return cf(n,t).isSome()},dt=function(n,t){for(var f,r=n.length,u=new Array(r),i=0;i<r;i++)f=n[i],u[i]=t(f,i,n);return u},l=function(n,t){for(var i=0,r=n.length;i<r;i++)t(n[i],i,n)},oit=function(n,t){for(var r,u=[],f=[],i=0,e=n.length;i<e;i++)r=n[i],(t(r,i,n)?u:f).push(r);return{pass:u,fail:f}},vt=function(n,t){for(var r,u=[],i=0,f=n.length;i<f;i++)r=n[i],t(r,i,n)&&u.push(r);return u},hf=function(n,t,i){return l(n,function(n){i=t(i,n)}),i},ui=function(t,i){for(var u,r=0,f=t.length;r<f;r++)if(u=t[r],i(u,r,t))return n.some(u);return n.none()},cf=function(t,i){for(var r=0,u=t.length;r<u;r++)if(i(t[r],r,t))return n.some(r);return n.none()},igt=function(n,t){for(var i=0,r=n.length;i<r;++i)if(n[i]===t)return i;return-1},rgt=Array.prototype.push,dc=function(n,t){return function(n){for(var i=[],t=0,r=n.length;t<r;++t){if(!Array.prototype.isPrototypeOf(n[t]))throw new Error("Arr.flatten item "+t+" was not an array, input: "+n);rgt.apply(i,n[t])}return i}(dt(n,t))},sit=function(n,t){for(var i=0,r=n.length;i<r;++i)if(!0!==t(n[i],i,n))return!1;return!0},bp=Array.prototype.slice,hit=function(n,t){return vt(n,function(n){return!cs(t,n)})},rr=function(t){return 0===t.length?n.none():n.some(t[0])},he=function(t){return 0===t.length?n.none():n.some(t[t.length-1])},ugt=sf(Array.from)?Array.from:function(n){return bp.call(n)},fgt="undefined"!=typeof window?window:Function("return this;")(),egt=function(n,t){return function(n,t){for(var i=t!==undefined&&null!==t?t:fgt,r=0;r<n.length&&i!==undefined&&null!==i;++r)i=i[n[r]];return i}(n.split("."),t)},lf={getOrDie:function(n,t){var i=egt(n,t);if(i===undefined||null===i)throw n+" not available on this browser";return i}},cit=function(){return lf.getOrDie("URL")},gc={createObjectURL:function(n){return cit().createObjectURL(n)},revokeObjectURL:function(n){cit().revokeObjectURL(n)}},kp=navigator,yi=kp.userAgent,lit=function(n){return"matchMedia"in window&&matchMedia(n).matches},p,al,ub,sb,fa,ea,gvt,ph,op,ott,att,lc,se,vtt,ytt,ac;wc=/Android/.test(yi);ai=(ai=!(vc=/WebKit/.test(yi))&&/MSIE/gi.test(yi)&&/Explorer/gi.test(kp.appName))&&/MSIE (\w+)\./.exec(yi)[1];yc=-1!==yi.indexOf("Trident/")&&(-1!==yi.indexOf("rv:")||-1!==kp.appName.indexOf("Netscape"))&&11;pc=-1!==yi.indexOf("Edge/")&&!ai&&!yc&&12;ai=ai||yc||pc;gtt=!vc&&!yc&&/Gecko/.test(yi);nit=-1!==yi.indexOf("Mac");fs=/(iPad|iPhone)/.test(yi);vp="FormData"in window&&"FileReader"in window&&"URL"in window&&!!gc.createObjectURL;tit=lit("only screen and (max-device-width: 480px)")&&(wc||fs);iit=lit("only screen and (min-width: 800px)")&&(wc||fs);rit=-1!==yi.indexOf("Windows Phone");pc&&(vc=!1);var dp,ce,tt,b,nl,ait,ls,gp,vit,tl,gr,le,nu,fi,il,ur,tu,ae,as,s={opera:!1,webkit:vc,ie:ai,gecko:gtt,mac:nit,iOS:fs,android:wc,contentEditable:!fs||vp||534<=parseInt(yi.match(/AppleWebKit\/(\d*)/)[1],10),transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:8!==ai,range:window.getSelection&&"Range"in window,documentMode:ai&&!pc?document.documentMode||7:10,fileApi:vp,ceFalse:!1===ai||8<ai,cacheSuffix:null,container:null,overrideViewPort:null,experimentalShadowDom:!1,canHaveCSP:!1===ai||11<ai,desktop:!tit&&!iit,windowsPhone:rit},ei=window.Promise?window.Promise:function(){function t(n,t){return function(){n.apply(t,arguments)}}function r(n){var t=this;null!==this._state?s(function(){var i=t._state?n.onFulfilled:n.onRejected,r;if(null!==i){try{r=i(t._value)}catch(u){return void n.reject(u)}n.resolve(r)}else(t._state?n.resolve:n.reject)(t._value)}):this._deferreds.push(n)}function u(n){try{if(n===this)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var r=n.then;if("function"==typeof r)return void e(t(r,n),t(u,this),t(i,this))}this._state=!0;this._value=n;f.call(this)}catch(o){i.call(this,o)}}function i(n){this._state=!1;this._value=n;f.call(this)}function f(){for(var n=0,t=this._deferreds.length;n<t;n++)r.call(this,this._deferreds[n]);this._deferreds=null}function h(n,t,i,r){this.onFulfilled="function"==typeof n?n:null;this.onRejected="function"==typeof t?t:null;this.resolve=i;this.reject=r}function e(n,t,i){var r=!1;try{n(function(n){r||(r=!0,t(n))},function(n){r||(r=!0,i(n))})}catch(u){if(r)return;r=!0;i(u)}}var o=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)},n=function(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("not a function");this._state=null;this._value=null;this._deferreds=[];e(n,t(u,this),t(i,this))},s=n.immediateFn||"function"==typeof setImmediate&&setImmediate||function(n){setTimeout(n,1)};return n.prototype["catch"]=function(n){return this.then(null,n)},n.prototype.then=function(t,i){var u=this;return new n(function(n,f){r.call(u,new h(t,i,n,f))})},n.all=function(){var t=Array.prototype.slice.call(1===arguments.length&&o(arguments[0])?arguments[0]:arguments);return new n(function(n,i){function f(r,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var o=e.then;if("function"==typeof o)return void o.call(e,function(n){f(r,n)},i)}t[r]=e;0==--u&&n(t)}catch(s){i(s)}}var u,r;if(0===t.length)return n([]);for(u=t.length,r=0;r<t.length;r++)f(r,t[r])})},n.resolve=function(t){return t&&"object"==typeof t&&t.constructor===n?t:new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,i){i(t)})},n.race=function(t){return new n(function(n,i){for(var r=0,u=t.length;r<u;r++)t[r].then(n,i)})},n}(),nw=function(n,t){return"number"!=typeof t&&(t=0),setTimeout(n,t)},yit=function(n,t){return"number"!=typeof t&&(t=1),setInterval(n,t)},pit=function(n,t){var i,r;return(r=function(){var r=arguments;clearTimeout(i);i=nw(function(){n.apply(this,r)},t)}).stop=function(){clearTimeout(i)},r},gt={requestAnimationFrame:function(n,t){dp?dp.then(n):dp=new ei(function(n){t||(t=document.body),function(n,t){for(var i=window.requestAnimationFrame,u=["ms","moz","webkit"],r=0;r<u.length&&!i;r++)i=window[u[r]+"RequestAnimationFrame"];i||(i=function(n){window.setTimeout(n,0)});i(n,t)}(n,t)}).then(n)},setTimeout:nw,setInterval:yit,setEditorTimeout:function(n,t,i){return nw(function(){n.removed||t()},i)},setEditorInterval:function(n,t,i){var r;return r=yit(function(){n.removed?clearInterval(r):t()},i)},debounce:pit,throttle:pit,clearInterval:function(n){return clearInterval(n)},clearTimeout:function(n){return clearTimeout(n)}},ogt=/^(?:mouse|contextmenu)|click/,sgt={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1},rl=function(){return!1},ul=function(){return!0},fl=function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent&&n.attachEvent("on"+t,i)},tw=function(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r||!1):n.detachEvent&&n.detachEvent("on"+t,i)},vs=function(n,t){var f,e,i=t||{};for(f in n)sgt[f]||(i[f]=n[f]);if(i.target||(i.target=i.srcElement||document),s.experimentalShadowDom&&(i.target=function(n,t){if(n.composedPath){var i=n.composedPath();if(i&&0<i.length)return i[0]}return t}(n,i.target)),n&&ogt.test(n.type)&&n.pageX===undefined&&n.clientX!==undefined){var o=i.target.ownerDocument||document,r=o.documentElement,u=o.body;i.pageX=n.clientX+(r&&r.scrollLeft||u&&u.scrollLeft||0)-(r&&r.clientLeft||u&&u.clientLeft||0);i.pageY=n.clientY+(r&&r.scrollTop||u&&u.scrollTop||0)-(r&&r.clientTop||u&&u.clientTop||0)}return i.preventDefault=function(){i.isDefaultPrevented=ul;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},i.stopPropagation=function(){i.isPropagationStopped=ul;n&&(n.stopPropagation?n.stopPropagation():n.cancelBubble=!0)},!(i.stopImmediatePropagation=function(){i.isImmediatePropagationStopped=ul;i.stopPropagation()})==((e=i).isDefaultPrevented===ul||e.isDefaultPrevented===rl)&&(i.isDefaultPrevented=rl,i.isPropagationStopped=rl,i.isImmediatePropagationStopped=rl),"undefined"==typeof i.metaKey&&(i.metaKey=!1),i},hgt=function(n,t,i){var r=n.document,f={type:"ready"};if(i.domLoaded)t(f);else{var e=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},u=function(){i.domLoaded||(i.domLoaded=!0,t(f))},o=function(){e()&&(tw(r,"readystatechange",o),u())},h=function(){try{r.documentElement.doScroll("left")}catch(n){return void gt.setTimeout(h)}u()};!r.addEventListener||s.ie&&s.ie<11?(fl(r,"readystatechange",o),r.documentElement.doScroll&&n.self===n.top&&h()):e()?u():fl(n,"DOMContentLoaded",u);fl(n,"load",u)}},lr=function(){var u,t,f,e,o,n=this,i={},r;t="mce-data-"+(+new Date).toString(32);e="onmouseenter"in document.documentElement;f="onfocusin"in document.documentElement;o={mouseenter:"mouseover",mouseleave:"mouseout"};u=1;n.domLoaded=!1;n.events=i;r=function(n,t){var u,r,e,f,o=i[t];if(u=o&&o[n.type])for(r=0,e=u.length;r<e;r++)if((f=u[r])&&!1===f.func.call(f.scope,n)&&n.preventDefault(),n.isImmediatePropagationStopped())return};n.bind=function(s,h,c,l){var v,y,k,a,w,p,b,d=window,g=function(n){r(vs(n||d.event),v)};if(s&&3!==s.nodeType&&8!==s.nodeType){for(s[t]?v=s[t]:(v=u++,s[t]=v,i[v]={}),l=l||s,k=(h=h.split(" ")).length;k--;)p=g,w=b=!1,"DOMContentLoaded"===(a=h[k])&&(a="ready"),n.domLoaded&&"ready"===a&&"complete"===s.readyState?c.call(l,vs({type:a})):(e||(w=o[a])&&(p=function(n){var i,t;if(i=n.currentTarget,(t=n.relatedTarget)&&i.contains)t=i.contains(t);else for(;t&&t!==i;)t=t.parentNode;t||((n=vs(n||d.event)).type="mouseout"===n.type?"mouseleave":"mouseenter",n.target=i,r(n,v))}),f||"focusin"!==a&&"focusout"!==a||(b=!0,w="focusin"===a?"focus":"blur",p=function(n){(n=vs(n||d.event)).type="focus"===n.type?"focusin":"focusout";r(n,v)}),(y=i[v][a])?"ready"===a&&n.domLoaded?c({type:a}):y.push({func:c,scope:l}):(i[v][a]=y=[{func:c,scope:l}],y.fakeName=w,y.capture=b,y.nativeHandler=p,"ready"===a?hgt(s,p,n):fl(s,w||a,p,b)));return s=y=0,c}};n.unbind=function(r,u,f){var c,e,l,h,o,s;if(!r||3===r.nodeType||8===r.nodeType)return n;if(c=r[t]){if(s=i[c],u){for(l=(u=u.split(" ")).length;l--;)if(e=s[o=u[l]]){if(f)for(h=e.length;h--;)if(e[h].func===f){var a=e.nativeHandler,v=e.fakeName,y=e.capture;(e=e.slice(0,h).concat(e.slice(h+1))).nativeHandler=a;e.fakeName=v;e.capture=y;s[o]=e}f&&0!==e.length||(delete s[o],tw(r,e.fakeName||o,e.nativeHandler,e.capture))}}else{for(o in s)e=s[o],tw(r,e.fakeName||o,e.nativeHandler,e.capture);s={}}for(o in s)return n;delete i[c];try{delete r[t]}catch(p){r[t]=null}}return n};n.fire=function(i,u,f){var e;if(!i||3===i.nodeType||8===i.nodeType)return n;for((f=vs(null,f)).type=u,f.target=i;(e=i[t])&&r(f,e),(i=i.parentNode||i.ownerDocument||i.defaultView||i.parentWindow)&&!f.isPropagationStopped(););return n};n.clean=function(i){var r,f,u=n.unbind;if(!i||3===i.nodeType||8===i.nodeType)return n;if(i[t]&&u(i),i.getElementsByTagName||(i=i.document),i&&i.getElementsByTagName)for(u(i),r=(f=i.getElementsByTagName("*")).length;r--;)(i=f[r])[t]&&u(i);return n};n.destroy=function(){i={}};n.cancel=function(n){return n&&(n.preventDefault(),n.stopImmediatePropagation()),!1}};lr.Event=new lr;lr.Event.bind(window,"ready",function(){});var ot="sizzle"+-new Date,ki=window.document,fr=0,cgt=0,wit=fw(),bit=fw(),kit=fw(),iw=function(n,t){return n===t&&(le=!0),0},el=typeof undefined,lgt={}.hasOwnProperty,iu=[],agt=iu.pop,vgt=iu.push,ru=iu.push,dit=iu.slice,af=iu.indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(this[t]===n)return t;return-1},nt="[\\x20\\t\\r\\n\\f]",vf="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",git="\\["+nt+"*("+vf+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+vf+"))|)"+nt+"*\\]",nrt=":("+vf+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+git+")*)|.*)\\)|)",ol=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ygt=new RegExp("^"+nt+"*,"+nt+"*"),pgt=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),wgt=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),bgt=new RegExp(nrt),kgt=new RegExp("^"+vf+"$"),sl={ID:new RegExp("^#("+vf+")"),CLASS:new RegExp("^\\.("+vf+")"),TAG:new RegExp("^("+vf+"|[*])"),ATTR:new RegExp("^"+git),PSEUDO:new RegExp("^"+nrt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},dgt=/^(?:input|select|textarea|button)$/i,ggt=/^h\d$/i,rw=/^[^{]+\{\s*\[native \w/,nnt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,uw=/[+~]/,tnt=/'|\\/g,uu=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),fu=function(n,t,i){var r="0x"+t-65536;return r!=r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{ru.apply(iu=dit.call(ki.childNodes),ki.childNodes);iu[ki.childNodes.length].nodeType}catch(hdi){ru={apply:iu.length?function(n,t){vgt.apply(n,dit.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}p=function(n,t,i,r){var h,u,f,o,c,s,l,e,v,a;if((t?t.ownerDocument||t:ki)!==fi&&nu(t),i=i||[],!n||"string"!=typeof n)return i;if(1!==(o=(t=t||fi).nodeType)&&9!==o)return[];if(ur&&!r){if(h=nnt.exec(n))if(f=h[1]){if(9===o){if(!(u=t.getElementById(f))||!u.parentNode)return i;if(u.id===f)return i.push(u),i}else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&as(t,u)&&u.id===f)return i.push(u),i}else{if(h[2])return ru.apply(i,t.getElementsByTagName(n)),i;if((f=h[3])&&tt.getElementsByClassName)return ru.apply(i,t.getElementsByClassName(f)),i}if(tt.qsa&&(!tu||!tu.test(n))){if(e=l=ot,v=t,a=9===o&&n,1===o&&"object"!==t.nodeName.toLowerCase()){for(s=ls(n),(l=t.getAttribute("id"))?e=l.replace(tnt,"\\$&"):t.setAttribute("id",e),e="[id='"+e+"'] ",c=s.length;c--;)s[c]=e+hl(s[c]);v=uw.test(n)&&ew(t.parentNode)||t;a=s.join(",")}if(a)try{return ru.apply(i,v.querySelectorAll(a)),i}catch(y){}finally{l||t.removeAttribute("id")}}}return vit(n.replace(ol,"$1"),t,i,r)};for(ce in tt=p.support={},ait=p.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return!!t&&"HTML"!==t.nodeName},nu=p.setDocument=function(n){var r,t=n?n.ownerDocument||n:ki,i=t.defaultView;return t!==fi&&9===t.nodeType&&t.documentElement?(il=(fi=t).documentElement,ur=!ait(t),i&&i!==function(n){try{return n.top}catch(t){}return null}(i)&&(i.addEventListener?i.addEventListener("unload",function(){nu()},!1):i.attachEvent&&i.attachEvent("onunload",function(){nu()})),tt.attributes=!0,tt.getElementsByTagName=!0,tt.getElementsByClassName=rw.test(t.getElementsByClassName),tt.getById=!0,b.find.ID=function(n,t){if(typeof t.getElementById!==el&&ur){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},b.filter.ID=function(n){var t=n.replace(uu,fu);return function(n){return n.getAttribute("id")===t}},b.find.TAG=tt.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==el)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){for(;i=u[f++];)1===i.nodeType&&r.push(i);return r}return u},b.find.CLASS=tt.getElementsByClassName&&function(n,t){if(ur)return t.getElementsByClassName(n)},ae=[],tu=[],tt.disconnectedMatch=!0,tu=tu.length&&new RegExp(tu.join("|")),ae=ae.length&&new RegExp(ae.join("|")),r=rw.test(il.compareDocumentPosition),as=r||rw.test(il.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},iw=r?function(n,i){if(n===i)return le=!0,0;var r=!n.compareDocumentPosition-!i.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)===(i.ownerDocument||i)?n.compareDocumentPosition(i):1)||!tt.sortDetached&&i.compareDocumentPosition(n)===r?n===t||n.ownerDocument===ki&&as(ki,n)?-1:i===t||i.ownerDocument===ki&&as(ki,i)?1:gr?af.call(gr,n)-af.call(gr,i):0:4&r?-1:1)}:function(n,i){if(n===i)return le=!0,0;var r,u=0,o=n.parentNode,s=i.parentNode,f=[n],e=[i];if(!o||!s)return n===t?-1:i===t?1:o?-1:s?1:gr?af.call(gr,n)-af.call(gr,i):0;if(o===s)return trt(n,i);for(r=n;r=r.parentNode;)f.unshift(r);for(r=i;r=r.parentNode;)e.unshift(r);for(;f[u]===e[u];)u++;return u?trt(f[u],e[u]):f[u]===ki?-1:e[u]===ki?1:0},t):fi},p.matches=function(n,t){return p(n,null,null,t)},p.matchesSelector=function(n,t){if((n.ownerDocument||n)!==fi&&nu(n),t=t.replace(wgt,"='$1']"),tt.matchesSelector&&ur&&(!ae||!ae.test(t))&&(!tu||!tu.test(t)))try{var i=(void 0).call(n,t);if(i||tt.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(r){}return 0<p(t,fi,null,[n]).length},p.contains=function(n,t){return(n.ownerDocument||n)!==fi&&nu(n),as(n,t)},p.attr=function(n,t){(n.ownerDocument||n)!==fi&&nu(n);var r=b.attrHandle[t.toLowerCase()],i=r&&lgt.call(b.attrHandle,t.toLowerCase())?r(n,t,!ur):undefined;return i!==undefined?i:tt.attributes||!ur?n.getAttribute(t):(i=n.getAttributeNode(t))&&i.specified?i.value:null},p.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);},p.uniqueSort=function(n){var r,u=[],t=0,i=0;if(le=!tt.detectDuplicates,gr=!tt.sortStable&&n.slice(0),n.sort(iw),le){for(;r=n[i++];)r===n[i]&&(t=u.push(i));for(;t--;)n.splice(u[t],1)}return gr=null,n},nl=p.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=nl(n)}else if(3===t||4===t)return n.nodeValue}else for(;r=n[u++];)i+=nl(r);return i},(b=p.selectors={cacheLength:50,createPseudo:di,match:sl,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(uu,fu),n[3]=(n[3]||n[4]||n[5]||"").replace(uu,fu),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||p.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&p.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return sl.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&bgt.test(t)&&(i=ls(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(uu,fu).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=wit[n+" "];return t||(t=new RegExp("(^|"+nt+")"+n+"("+nt+"|$)"))&&wit(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==el&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var u=p.attr(r,n);return null==u?"!="===t:!t||(u+="","="===t?u===i:"!="===t?u!==i:"^="===t?i&&0===u.indexOf(i):"*="===t?i&&-1<u.indexOf(i):"$="===t?i&&u.slice(-i.length)===i:"~="===t?-1<(" "+u+" ").indexOf(i):"|="===t&&(u===i||u.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var o="nth"!==n.slice(0,3),e="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,s){var a,b,h,c,l,y,p=o!==e?"nextSibling":"previousSibling",v=t.parentNode,k=f&&t.nodeName.toLowerCase(),w=!s&&!f;if(v){if(o){for(;p;){for(h=t;h=h[p];)if(f?h.nodeName.toLowerCase()===k:1===h.nodeType)return!1;y=p="only"===n&&!y&&"nextSibling"}return!0}if(y=[e?v.firstChild:v.lastChild],e&&w){for(l=(a=(b=v[ot]||(v[ot]={}))[n]||[])[0]===fr&&a[1],c=a[0]===fr&&a[2],h=l&&v.childNodes[l];h=++l&&h&&h[p]||(c=l=0)||y.pop();)if(1===h.nodeType&&++c&&h===t){b[n]=[fr,l,c];break}}else if(w&&(a=(t[ot]||(t[ot]={}))[n])&&a[0]===fr)c=a[1];else for(;(h=++l&&h&&h[p]||(c=l=0)||y.pop())&&((f?h.nodeName.toLowerCase()!==k:1!==h.nodeType)||!++c||(w&&((h[ot]||(h[ot]={}))[n]=[fr,c]),h!==t)););return(c-=u)===r||c%r==0&&0<=c/r}}},PSEUDO:function(n,t){var r,i=b.pseudos[n]||b.setFilters[n.toLowerCase()]||p.error("unsupported pseudo: "+n);return i[ot]?i(t):1<i.length?(r=[n,n,"",t],b.setFilters.hasOwnProperty(n.toLowerCase())?di(function(n,r){for(var e,u=i(n,t),f=u.length;f--;)n[e=af.call(n,u[f])]=!(r[e]=u[f])}):function(n){return i(n,0,r)}):i}},pseudos:{not:di(function(n){var i=[],r=[],t=gp(n.replace(ol,"$1"));return t[ot]?di(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:di(function(n){return function(t){return 0<p(n,t).length}}),contains:di(function(n){return n=n.replace(uu,fu),function(t){return-1<(t.textContent||t.innerText||nl(t)).indexOf(n)}}),lang:di(function(n){return kgt.test(n||"")||p.error("unsupported lang: "+n),n=n.replace(uu,fu).toLowerCase(),function(t){var i;do if(i=ur?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(n){var t=window.location&&window.location.hash;return t&&t.slice(1)===n.id},root:function(n){return n===il},focus:function(n){return n===fi.activeElement&&(!fi.hasFocus||fi.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return!1===n.disabled},disabled:function(n){return!0===n.disabled},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!b.pseudos.empty(n)},header:function(n){return ggt.test(n.nodeName)},input:function(n){return dgt.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:yf(function(){return[0]}),last:yf(function(n,t){return[t-1]}),eq:yf(function(n,t,i){return[i<0?i+t:i]}),even:yf(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:yf(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:yf(function(n,t,i){for(var r=i<0?i+t:i;0<=--r;)n.push(r);return n}),gt:yf(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[ce]=int(ce);for(ce in{submit:!0,reset:!0})b.pseudos[ce]=rnt(ce);irt.prototype=b.filters=b.pseudos;b.setFilters=new irt;ls=p.tokenize=function(n,t){var u,r,e,f,i,o,s,h=bit[n+" "];if(h)return t?0:h.slice(0);for(i=n,o=[],s=b.preFilter;i;){for(f in u&&!(r=ygt.exec(i))||(r&&(i=i.slice(r[0].length)||i),o.push(e=[])),u=!1,(r=pgt.exec(i))&&(u=r.shift(),e.push({value:u,type:r[0].replace(ol," ")}),i=i.slice(u.length)),b.filter)(r=sl[f].exec(i))&&(!s[f]||(r=s[f](r)))&&(u=r.shift(),e.push({value:u,type:f,matches:r}),i=i.slice(u.length));if(!u)break}return t?i.length:i?p.error(n):bit(n,o).slice(0)};gp=p.compile=function(n,t){var u,f,e,r,o,s,h=[],c=[],i=kit[n+" "];if(!i){for(t||(t=ls(n)),u=t.length;u--;)(i=cw(t[u]))[ot]?h.push(i):c.push(i);(i=kit(n,(f=c,r=0<(e=h).length,o=0<f.length,s=function(n,t,i,u,s){var c,y,a,v=0,h="0",w=n&&[],l=[],k=tl,d=n||o&&b.find.TAG("*",s),g=fr+=null==k?1:Math.random()||.1,nt=d.length;for(s&&(tl=t!==fi&&t);h!==nt&&null!=(c=d[h]);h++){if(o&&c){for(y=0;a=f[y++];)if(a(c,t,i)){u.push(c);break}s&&(fr=g)}r&&((c=!a&&c)&&v--,n&&w.push(c))}if(v+=h,r&&h!==v){for(y=0;a=e[y++];)a(w,l,t,i);if(n){if(0<v)for(;h--;)w[h]||l[h]||(l[h]=agt.call(u));l=cl(l)}ru.apply(u,l);s&&!n&&0<l.length&&1<v+e.length&&p.uniqueSort(u)}return s&&(fr=g,tl=k),w},r?di(s):s))).selector=n}return i};vit=p.select=function(n,t,i,r){var e,u,f,h,c,s="function"==typeof n&&n,o=!r&&ls(n=s.selector||n);if(i=i||[],1===o.length){if(2<(u=o[0]=o[0].slice(0)).length&&"ID"===(f=u[0]).type&&tt.getById&&9===t.nodeType&&ur&&b.relative[u[1].type]){if(!(t=(b.find.ID(f.matches[0].replace(uu,fu),t)||[])[0]))return i;s&&(t=t.parentNode);n=n.slice(u.shift().value.length)}for(e=sl.needsContext.test(n)?0:u.length;e--&&(f=u[e],!b.relative[h=f.type]);)if((c=b.find[h])&&(r=c(f.matches[0].replace(uu,fu),uw.test(u[0].type)&&ew(t.parentNode)||t))){if(u.splice(e,1),!(n=r.length&&hl(u)))return ru.apply(i,r),i;break}}return(s||gp(n,o))(r,t,!ur,i,uw.test(n)&&ew(t.parentNode)||t),i};tt.sortStable=ot.split("").sort(iw).join("")===ot;tt.detectDuplicates=!!le;nu();tt.sortDetached=!0;var rrt=Array.isArray,lw=function(n,t,i){var r,u;if(!n)return 0;if(i=i||n,n.length!==undefined){for(r=0,u=n.length;r<u;r++)if(!1===t.call(i,n[r],r,n))return 0}else for(r in n)if(n.hasOwnProperty(r)&&!1===t.call(i,n[r],r,n))return 0;return 1},urt=function(n,t,i){for(var r=0,u=n.length;r<u;r++)if(t.call(i,n[r],r,n))return r;return-1},h={isArray:rrt,toArray:function(n){var t,r,i=n;if(!rrt(n))for(i=[],t=0,r=n.length;t<r;t++)i[t]=n[t];return i},each:lw,map:function(n,t){var i=[];return lw(n,function(r,u){i.push(t(r,u,n))}),i},filter:function(n,t){var i=[];return lw(n,function(r,u){t&&!t(r,u,n)||i.push(r)}),i},indexOf:function(n,t){var i,r;if(n)for(i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},reduce:function(n,t,i,r){var u=0;for(arguments.length<3&&(i=n[0]);u<n.length;u++)i=t.call(r,i,n[u],u);return i},findIndex:urt,find:function(n,t,i){var r=urt(n,t,i);return-1!==r?n[r]:undefined},last:function(n){return n[n.length-1]}},unt=/^\s*|\s*$/g,frt=function(n){return null===n||n===undefined?"":(""+n).replace(unt,"")},ert=function(n,t){return t?!("array"!==t||!h.isArray(n))||typeof n===t:n!==undefined},ort=function(n,t,i,r){r=r||this;n&&(i&&(n=n[i]),h.each(n,function(n,u){if(!1===t.call(r,n,u,i))return!1;ort(n,t,i,r)}))},t={trim:frt,isArray:h.isArray,is:ert,toArray:h.toArray,makeMap:function(n,t,i){var r;for(t=t||",","string"==typeof(n=n||[])&&(n=n.split(t)),i=i||{},r=n.length;r--;)i[n[r]]={};return i},each:h.each,map:h.map,grep:h.filter,inArray:h.indexOf,hasOwn:function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},extend:function(n,t){for(var r,e,u,s,f,o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];for(f=arguments,r=1,e=f.length;r<e;r++)for(u in t=f[r])t.hasOwnProperty(u)&&(s=t[u])!==undefined&&(n[u]=s);return n},create:function(n,t,i){var f,u,r,o,s,e=this,h=0;if(n=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(n),r=n[3].match(/(^|\.)(\w+)$/i)[2],!(u=e.createNS(n[3].replace(/\.\w+$/,""),i))[r]){if("static"===n[2])return u[r]=t,void(this.onCreate&&this.onCreate(n[2],n[3],u[r]));t[r]||(t[r]=function(){},h=1);u[r]=t[r];e.extend(u[r].prototype,t);n[5]&&(f=e.resolve(n[5]).prototype,o=n[5].match(/\.(\w+)$/i)[1],s=u[r],u[r]=h?function(){return f[o].apply(this,arguments)}:function(){return this.parent=f[o],s.apply(this,arguments)},u[r].prototype[r]=u[r],e.each(f,function(n,t){u[r].prototype[t]=f[t]}),e.each(t,function(n,t){f[t]?u[r].prototype[t]=function(){return this.parent=f[t],n.apply(this,arguments)}:t!==r&&(u[r].prototype[t]=n)}));e.each(t["static"],function(n,t){u[r][t]=n})}},walk:ort,createNS:function(n,t){var i,r;for(t=t||window,n=n.split("."),i=0;i<n.length;i++)t[r=n[i]]||(t[r]={}),t=t[r];return t},resolve:function(n,t){var i,r;for(t=t||window,i=0,r=(n=n.split(".")).length;i<r&&(t=t[n[i]]);i++);return t},explode:function(n,t){return!n||ert(n,"array")?n:h.map(n.split(t||","),frt)},_addCacheSuffix:function(n){var t=s.cacheSuffix;return t&&(n+=(-1===n.indexOf("?")?"?":"&")+t),n}},srt=document,aw=Array.prototype.push,fnt=Array.prototype.slice,ent=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,ys=lr.Event,ont=t.makeMap("children,contents,next,prev"),ps=function(n){return void 0!==n},vw=function(n){return"string"==typeof n},hrt=function(n,t){var i,u,r;for(r=(t=t||srt).createElement("div"),i=t.createDocumentFragment(),r.innerHTML=n;u=r.firstChild;)i.appendChild(u);return i},ve=function(n,t,i,r){var u;if(vw(t))t=hrt(t,yw(n[0]));else if(t.length&&!t.nodeType){if(t=e.makeArray(t),r)for(u=t.length-1;0<=u;u--)ve(n,t[u],i,r);else for(u=0;u<t.length;u++)ve(n,t[u],i,r);return n}if(t.nodeType)for(u=n.length;u--;)i.call(n[u],t);return n},crt=function(n,t){return n&&t&&-1!==(" "+n.className+" ").indexOf(" "+t+" ")},lrt=function(n,t,i){var u,r;return t=e(t)[0],n.each(function(){var n=this;i&&u===n.parentNode||(u=n.parentNode,r=t.cloneNode(!1),n.parentNode.insertBefore(r,n));r.appendChild(n)}),n},snt=t.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),hnt=t.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),cnt={"for":"htmlFor","class":"className",readonly:"readOnly"},art={float:"cssFloat"},ws={},ll={},e=function(n,t){return new e.fn.init(n,t)},lnt=/^\s*|\s*$/g,vrt=function(n){return null===n||n===undefined?"":(""+n).replace(lnt,"")},er=function(n,t){var f,u,r,i;if(n)if((f=n.length)===undefined){for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],!1===t.call(i,u,i)))break}else for(r=0;r<f&&(i=n[r],!1!==t.call(i,r,i));r++);return n},yrt=function(n,t){var i=[];return er(n,function(n,r){t(r,n)&&i.push(r)}),i},yw=function(n){return n?9===n.nodeType?n:n.ownerDocument:srt};e.fn=e.prototype={constructor:e,selector:"",context:null,length:0,init:function(n,t){var u,r,i=this;if(!n)return i;if(n.nodeType)return i.context=i[0]=n,i.length=1,i;if(t&&t.nodeType)i.context=t;else{if(t)return e(n).attr(t);i.context=t=document}if(vw(n)){if(!(u="<"===(i.selector=n).charAt(0)&&">"===n.charAt(n.length-1)&&3<=n.length?[null,n,null]:ent.exec(n)))return e(t).find(n);if(u[1])for(r=hrt(n,yw(t)).firstChild;r;)aw.call(i,r),r=r.nextSibling;else{if(!(r=yw(t).getElementById(u[2])))return i;if(r.id!==u[2])return i.find(n);i.length=1;i[0]=r}}else this.add(n,!1);return i},toArray:function(){return t.toArray(this)},add:function(n,t){var u,r,i=this;if(vw(n))return i.add(e(n));if(!1!==t)for(u=e.unique(i.toArray().concat(e.makeArray(n))),i.length=u.length,r=0;r<u.length;r++)i[r]=u[r];else aw.apply(i,e.makeArray(n));return i},attr:function(n,t){var r,i=this;if("object"==typeof n)er(n,function(n,t){i.attr(n,t)});else{if(!ps(t)){if(i[0]&&1===i[0].nodeType){if((r=ws[n])&&r.get)return r.get(i[0],n);if(hnt[n])return i.prop(n)?n:undefined;null===(t=i[0].getAttribute(n,2))&&(t=undefined)}return t}this.each(function(){var i;if(1===this.nodeType){if((i=ws[n])&&i.set)return void i.set(this,t);null===t?this.removeAttribute(n,2):this.setAttribute(n,t,2)}})}return i},removeAttr:function(n){return this.attr(n,null)},prop:function(n,t){var i=this;if("object"==typeof(n=cnt[n]||n))er(n,function(n,t){i.prop(n,t)});else{if(!ps(t))return i[0]&&i[0].nodeType&&n in i[0]?i[0][n]:t;this.each(function(){1===this.nodeType&&(this[n]=t)})}return i},css:function(n,t){var i,r,u=this,f=function(n){return n.replace(/-(\D)/g,function(n,t){return t.toUpperCase()})},e=function(n){return n.replace(/[A-Z]/g,function(n){return"-"+n})};if("object"==typeof n)er(n,function(n,t){u.css(n,t)});else if(ps(t))n=f(n),"number"!=typeof t||snt[n]||(t=t.toString()+"px"),u.each(function(){var i=this.style;if((r=ll[n])&&r.set)r.set(this,t);else{try{this.style[art[n]||n]=t}catch(u){}null!==t&&""!==t||(i.removeProperty?i.removeProperty(e(n)):i.removeAttribute(n))}});else{if(i=u[0],(r=ll[n])&&r.get)return r.get(i);if(!i.ownerDocument.defaultView)return i.currentStyle?i.currentStyle[f(n)]:"";try{return i.ownerDocument.defaultView.getComputedStyle(i,null).getPropertyValue(e(n))}catch(o){return undefined}}return u},remove:function(){for(var n,t=this.length;t--;)n=this[t],ys.clean(n),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){for(var n,t=this.length;t--;)for(n=this[t];n.firstChild;)n.removeChild(n.firstChild);return this},html:function(n){var i,t=this;if(ps(n)){i=t.length;try{for(;i--;)t[i].innerHTML=n}catch(r){e(t[i]).empty().append(n)}return t}return t[0]?t[0].innerHTML:""},text:function(n){var i,t=this;if(ps(n)){for(i=t.length;i--;)"innerText"in t[i]?t[i].innerText=n:t[0].textContent=n;return t}return t[0]?t[0].innerText||t[0].textContent:""},append:function(){return ve(this,arguments,function(n){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(n)})},prepend:function(){return ve(this,arguments,function(n){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(n,this.firstChild)},!0)},before:function(){return this[0]&&this[0].parentNode?ve(this,arguments,function(n){this.parentNode.insertBefore(n,this)}):this},after:function(){return this[0]&&this[0].parentNode?ve(this,arguments,function(n){this.parentNode.insertBefore(n,this.nextSibling)},!0):this},appendTo:function(n){return e(n).append(this),this},prependTo:function(n){return e(n).prepend(this),this},replaceWith:function(n){return this.before(n).remove()},wrap:function(n){return lrt(this,n)},wrapAll:function(n){return lrt(this,n,!0)},wrapInner:function(n){return this.each(function(){e(this).contents().wrapAll(n)}),this},unwrap:function(){return this.parent().each(function(){e(this).replaceWith(this.childNodes)})},clone:function(){var n=[];return this.each(function(){n.push(this.cloneNode(!0))}),e(n)},addClass:function(n){return this.toggleClass(n,!0)},removeClass:function(n){return this.toggleClass(n,!1)},toggleClass:function(n,t){var i=this;return"string"!=typeof n||(-1!==n.indexOf(" ")?er(n.split(" "),function(){i.toggleClass(this,t)}):i.each(function(i,r){var u,f;(f=crt(r,n))!==t&&(u=r.className,f?r.className=vrt((" "+u+" ").replace(" "+n+" "," ")):r.className+=u?" "+n:n)})),i},hasClass:function(n){return crt(this[0],n)},each:function(n){return er(this,n)},on:function(n,t){return this.each(function(){ys.bind(this,n,t)})},off:function(n,t){return this.each(function(){ys.unbind(this,n,t)})},trigger:function(n){return this.each(function(){"object"==typeof n?ys.fire(this,n.type,n):ys.fire(this,n)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new e(fnt.apply(this,arguments))},eq:function(n){return-1===n?this.slice(n):this.slice(n,+n+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(n){for(var r=[],t=0,i=this.length;t<i;t++)e.find(n,this[t],r);return e(r)},filter:function(n){return e("function"==typeof n?yrt(this.toArray(),function(t,i){return n(i,t)}):e.filter(n,this.toArray()))},closest:function(n){var t=[];return n instanceof e&&(n=n[0]),this.each(function(i,r){for(;r;){if("string"==typeof n&&e(r).is(n)){t.push(r);break}if(r===n){t.push(r);break}r=r.parentNode}}),e(t)},offset:function(n){var i,r,t,u,f=0,e=0;return n?this.css(n):((i=this[0])&&(t=(r=i.ownerDocument).documentElement,i.getBoundingClientRect&&(f=(u=i.getBoundingClientRect()).left+(t.scrollLeft||r.body.scrollLeft)-t.clientLeft,e=u.top+(t.scrollTop||r.body.scrollTop)-t.clientTop)),{left:f,top:e})},push:aw,sort:[].sort,splice:[].splice};t.extend(e,{extend:t.extend,makeArray:function(n){return(i=n)&&i===i.window||n.nodeType?[n]:t.toArray(n);var i},inArray:function(n,t){var i;if(t.indexOf)return t.indexOf(n);for(i=t.length;i--;)if(t[i]===n)return i;return-1},isArray:t.isArray,each:er,trim:vrt,grep:yrt,find:p,expr:p.selectors,unique:p.uniqueSort,text:p.getText,contains:p.contains,filter:function(n,t,i){var r=t.length;for(i&&(n=":not("+n+")");r--;)1!==t[r].nodeType&&t.splice(r,1);return 1===t.length?e.find.matchesSelector(t[0],n)?[t[0]]:[]:e.find.matches(n,t)}});var prt=function(n,t,i){var u=[],r=n[t];for("string"!=typeof i&&i instanceof e&&(i=i[0]);r&&9!==r.nodeType;){if(i!==undefined){if(r===i)break;if("string"==typeof i&&e(r).is(i))break}1===r.nodeType&&u.push(r);r=r[t]}return u},pw=function(n,t,i,r){var u=[];for(r instanceof e&&(r=r[0]);n;n=n[t])if(!i||n.nodeType===i){if(r!==undefined){if(n===r)break;if("string"==typeof r&&e(n).is(r))break}u.push(n)}return u},wrt=function(n,t,i){for(n=n[t];n;n=n[t])if(n.nodeType===i)return n;return null};er({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return prt(n,"parentNode")},next:function(n){return wrt(n,"nextSibling",1)},prev:function(n){return wrt(n,"previousSibling",1)},children:function(n){return pw(n.firstChild,"nextSibling",1)},contents:function(n){return t.toArray(("iframe"===n.nodeName?n.contentDocument||n.contentWindow.document:n).childNodes)}},function(n,t){e.fn[n]=function(i){var r=[];return this.each(function(){var n=t.call(r,this,i,r);n&&(e.isArray(n)?r.push.apply(r,n):r.push(n))}),1<this.length&&(ont[n]||(r=e.unique(r)),0===n.indexOf("parents")&&(r=r.reverse())),r=e(r),i?r.filter(i):r}});er({parentsUntil:function(n,t){return prt(n,"parentNode",t)},nextUntil:function(n,t){return pw(n,"nextSibling",1,t).slice(1)},prevUntil:function(n,t){return pw(n,"previousSibling",1,t).slice(1)}},function(n,t){e.fn[n]=function(i,r){var u=[];return this.each(function(){var n=t.call(u,this,i,u);n&&(e.isArray(n)?u.push.apply(u,n):u.push(n))}),1<this.length&&(u=e.unique(u),0!==n.indexOf("parents")&&"prevUntil"!==n||(u=u.reverse())),u=e(u),r?u.filter(r):u}});e.fn.is=function(n){return!!n&&0<this.filter(n).length};e.fn.init.prototype=e.fn;e.overrideDefaults=function(n){var t,i=function(r,u){return t=t||n(),0===arguments.length&&(r=t.element),u||(u=t.context),new i.fn.init(r,u)};return e.extend(i,this),i};al=function(n,t,i){er(i,function(i,r){n[i]=n[i]||{};n[i][t]=r})};s.ie&&s.ie<8&&(al(ws,"get",{maxlength:function(n){var t=n.maxLength;return 2147483647===t?undefined:t},size:function(n){var t=n.size;return 20===t?undefined:t},"class":function(n){return n.className},style:function(n){var t=n.style.cssText;return 0===t.length?undefined:t}}),al(ws,"set",{"class":function(n,t){n.className=t},style:function(n,t){n.style.cssText=t}}));s.ie&&s.ie<9&&(art.float="styleFloat",al(ll,"set",{opacity:function(n,t){var i=n.style;null===t||""===t?i.removeAttribute("filter"):(i.zoom=1,i.filter="alpha(opacity="+100*t+")")}}));e.attrHooks=ws;e.cssHooks=ll;var brt=function(n){var t,i=!1;return function(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];return i||(i=!0,t=n.apply(null,u)),t}},ant=function(n,t){var r=function(n,t){for(var r,i=0;i<n.length;i++)if(r=n[i],r.test(t))return r;return undefined}(n,t),i;return r?(i=function(n){return Number(t.replace(r,"$"+n))},ww(i(1),i(2))):{major:0,minor:0}},krt=function(){return ww(0,0)},ww=function(n,t){return{major:n,minor:t}},vl={nu:ww,detect:function(n,t){var i=String(t).toLowerCase();return 0===n.length?krt():ant(n,i)},unknown:krt},drt="Firefox",ye=function(n,t){return function(){return t===n}},grt=function(n){var t=n.current;return{current:t,version:n.version,isEdge:ye("Edge",t),isChrome:ye("Chrome",t),isIE:ye("IE",t),isOpera:ye("Opera",t),isFirefox:ye(drt,t),isSafari:ye("Safari",t)}},nut={unknown:function(){return grt({current:undefined,version:vl.unknown()})},nu:grt,edge:o("Edge"),chrome:o("Chrome"),ie:o("IE"),opera:o("Opera"),firefox:o(drt),safari:o("Safari")},tut="Windows",iut="Android",rut="Solaris",uut="FreeBSD",pf=function(n,t){return function(){return t===n}},fut=function(n){var t=n.current;return{current:t,version:n.version,isWindows:pf(tut,t),isiOS:pf("iOS",t),isAndroid:pf(iut,t),isOSX:pf("OSX",t),isLinux:pf("Linux",t),isSolaris:pf(rut,t),isFreeBSD:pf(uut,t)}},eut={unknown:function(){return fut({current:undefined,version:vl.unknown()})},nu:fut,windows:o(tut),ios:o("iOS"),android:o(iut),linux:o("Linux"),osx:o("OSX"),solaris:o(rut),freebsd:o(uut)},out=function(n,t){var i=String(t).toLowerCase();return ui(n,function(n){return n.search(i)})},vnt=function(n,t){return out(n,t).map(function(n){var i=vl.detect(n.versionRegexes,t);return{current:n.name,version:i}})},ynt=function(n,t){return out(n,t).map(function(n){var i=vl.detect(n.versionRegexes,t);return{current:n.name,version:i}})},ni=function(n,t){return-1!==n.indexOf(t)},pnt=function(n){return n.replace(/^\s+|\s+$/g,"")},bw=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,eu=function(n){return function(t){return ni(t,n)}},wnt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(n){return ni(n,"edge/")&&ni(n,"chrome")&&ni(n,"safari")&&ni(n,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,bw],search:function(n){return ni(n,"chrome")&&!ni(n,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(n){return ni(n,"msie")||ni(n,"trident")}},{name:"Opera",versionRegexes:[bw,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:eu("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:eu("firefox")},{name:"Safari",versionRegexes:[bw,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(n){return(ni(n,"safari")||ni(n,"mobile/"))&&ni(n,"applewebkit")}}],bnt=[{name:"Windows",search:eu("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(n){return ni(n,"iphone")||ni(n,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:eu("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:eu("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:eu("linux"),versionRegexes:[]},{name:"Solaris",search:eu("sunos"),versionRegexes:[]},{name:"FreeBSD",search:eu("freebsd"),versionRegexes:[]}],sut={browsers:o(wnt),oses:o(bnt)},knt=function(n){var t,e,i,r,s,h,c,u,f,l,a,p=sut.browsers(),w=sut.oses(),v=vnt(p,n).fold(nut.unknown,nut.nu),y=ynt(w,n).fold(eut.unknown,eut.nu);return{browser:v,os:y,deviceType:(e=v,i=n,r=(t=y).isiOS()&&!0===/ipad/i.test(i),s=t.isiOS()&&!r,h=t.isAndroid()&&3===t.version.major,c=t.isAndroid()&&4===t.version.major,u=r||h||c&&!0===/mobile/i.test(i),f=t.isiOS()||t.isAndroid(),l=f&&!u,a=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(i),{isiPad:o(r),isiPhone:o(s),isTablet:o(u),isPhone:o(l),isTouch:o(f),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:o(a)})}},ou={detect:brt(function(){var n=navigator.userAgent;return knt(n)})},bs=function(n){if(null===n||n===undefined)throw new Error("Node cannot be null or undefined");return{dom:o(n)}},r={fromHtml:function(n,t){var i=(t||document).createElement("div");if(i.innerHTML=n,!i.hasChildNodes()||1<i.childNodes.length)throw console.error("HTML does not have a single root node",n),"HTML must have a single root node";return bs(i.childNodes[0])},fromTag:function(n,t){var i=(t||document).createElement(n);return bs(i)},fromText:function(n,t){var i=(t||document).createTextNode(n);return bs(i)},fromDom:bs,fromPoint:function(t,i,r){var u=t.dom();return n.from(u.elementFromPoint(i,r)).map(bs)}},pe={ATTRIBUTE:Node.ATTRIBUTE_NODE,CDATA_SECTION:Node.CDATA_SECTION_NODE,COMMENT:Node.COMMENT_NODE,DOCUMENT:Node.DOCUMENT_NODE,DOCUMENT_TYPE:Node.DOCUMENT_TYPE_NODE,DOCUMENT_FRAGMENT:Node.DOCUMENT_FRAGMENT_NODE,ELEMENT:Node.ELEMENT_NODE,TEXT:Node.TEXT_NODE,PROCESSING_INSTRUCTION:Node.PROCESSING_INSTRUCTION_NODE,ENTITY_REFERENCE:Node.ENTITY_REFERENCE_NODE,ENTITY:Node.ENTITY_NODE,NOTATION:Node.NOTATION_NODE},hut=function(n){return n.dom().nodeName.toLowerCase()},kw=function(n){return n.dom().nodeType},dw=function(n){return function(t){return kw(t)===n}},dnt=dw(pe.ELEMENT),gnt=dw(pe.TEXT),nti=dw(pe.DOCUMENT),d={name:hut,type:kw,value:function(n){return n.dom().nodeValue},isElement:dnt,isText:gnt,isDocument:nti,isComment:function(n){return kw(n)===pe.COMMENT||"#comment"===hut(n)}},yl=Object.keys,pl=function(n,t){for(var r,u=yl(n),i=0,f=u.length;i<f;i++)r=u[i],t(n[r],r,n)},tti=function(n,t){var i={};return pl(n,function(r,u){var f=t(r,u,n);i[f.k]=f.v}),i},cut=function(n,t,i){if(!(vi(i)||uit(i)||wp(i)))throw console.error("Invalid call to Attr.set. Key ",t,":: Value ",i,":: Element ",n),new Error("Attribute value was not simple");n.setAttribute(t,i+"")},lut=function(n,t,i){cut(n.dom(),t,i)},aut=function(n,t){var i=n.dom().getAttribute(t);return null===i?undefined:i},gw=function(n,t){var i=n.dom();return!(!i||!i.hasAttribute)&&i.hasAttribute(t)},it={clone:function(n){return hf(n.dom().attributes,function(n,t){return n[t.name]=t.value,n},{})},set:lut,setAll:function(n,t){var i=n.dom();pl(t,function(n,t){cut(i,t,n)})},get:aut,has:gw,remove:function(n,t){n.dom().removeAttribute(t)},hasNone:function(n){var t=n.dom().attributes;return t===undefined||null===t||0===t.length},transfer:function(n,t,i){d.isElement(n)&&d.isElement(t)&&l(i,function(i){var f,u,r;u=t;gw(f=n,r=i)&&!gw(u,r)&&lut(u,r,aut(f,r))})}},iti=brt(function(){return vut(r.fromDom(document))}),vut=function(n){var t=n.dom().body;if(null===t||t===undefined)throw"Body is not available yet";return r.fromDom(t)},yut={body:iti,getBody:vut,inBody:function(n){var t=d.isText(n)?n.dom().parentNode:n.dom();return t!==undefined&&null!==t&&t.ownerDocument.body.contains(t)}},put=function(n){return n.style!==undefined},rti=function(n,t,i){if(!vi(i))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",i,":: Element ",n),new Error("CSS value must be a string: "+i);put(n)&&n.style.setProperty(t,i)},wut=function(n,t){return put(n)?n.style.getPropertyValue(t):""},uti=function(t,i){var r=t.dom(),u=wut(r,i);return n.from(u).filter(function(n){return 0<n.length})},fti=function(n,t){var i=n.dom();pl(t,function(n,t){rti(i,t,n)})},but=function(n,t){var i=n.dom(),r=window.getComputedStyle(i).getPropertyValue(t),u=""!==r||yut.inBody(n)?r:wut(i,t);return null===u?undefined:u},eti=uti,or=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return function(){for(var r,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];if(n.length!==t.length)throw new Error('Wrong number of arguments to struct. Expected "['+n.length+']", got '+t.length+" arguments");return r={},l(n,function(n,i){r[n]=o(t[i])}),r}},kut=function(n,t){for(var i=[],u=function(n){return i.push(n),t(n)},r=t(n);(r=r.bind(u)).isSome(););return i},oti=function(){return lf.getOrDie("Node")},sti=function(n,t,i){return 0!=(n.compareDocumentPosition(t)&i)},hti=function(n,t){return sti(n,t,oti().DOCUMENT_POSITION_CONTAINED_BY)},dut=pe.ELEMENT,cti=pe.DOCUMENT,gut=function(n){return n.nodeType!==dut&&n.nodeType!==cti||0===n.childElementCount},su={all:function(n,t){var i=t===undefined?document:t.dom();return gut(i)?[]:dt(i.querySelectorAll(n),r.fromDom)},is:function(n,t){var i=n.dom();if(i.nodeType!==dut)return!1;if(i.matches!==undefined)return i.matches(t);if(i.msMatchesSelector!==undefined)return i.msMatchesSelector(t);if(i.webkitMatchesSelector!==undefined)return i.webkitMatchesSelector(t);if(i.mozMatchesSelector!==undefined)return i.mozMatchesSelector(t);throw new Error("Browser lacks native selectors");},one:function(t,i){var u=i===undefined?document:i.dom();return gut(u)?n.none():n.from(u.querySelector(t)).map(r.fromDom)}},nft=function(n,t){return n.dom()===t.dom()},lti=ou.detect().browser.isIE()?function(n,t){return hti(n.dom(),t.dom())}:function(n,t){var i=n.dom(),r=t.dom();return i!==r&&i.contains(r)},w={eq:nft,isEqualNode:function(n,t){return n.dom().isEqualNode(t.dom())},member:function(n,t){return eit(t,f(nft,n))},contains:lti,is:su.is},nb=function(t){var i=t.dom();return n.from(i.parentNode).map(r.fromDom)},tft=function(t){var i=t.dom();return n.from(i.previousSibling).map(r.fromDom)},ift=function(t){var i=t.dom();return n.from(i.nextSibling).map(r.fromDom)},wl=function(n){var t=n.dom();return dt(t.childNodes,r.fromDom)},tb=function(t,i){var u=t.dom().childNodes;return n.from(u[i]).map(r.fromDom)},rft=or("element","offset"),v={owner:function(n){return r.fromDom(n.dom().ownerDocument)},defaultView:function(n){var t=n.dom().ownerDocument.defaultView;return r.fromDom(t)},documentElement:function(n){return r.fromDom(n.dom().ownerDocument.documentElement)},parent:nb,findIndex:function(n){return nb(n).bind(function(t){var i=wl(t);return cf(i,function(t){return w.eq(n,t)})})},parents:function(n,t){for(var u,f,s=sf(t)?t:o(!1),i=n.dom(),e=[];null!==i.parentNode&&i.parentNode!==undefined;){if(u=i.parentNode,f=r.fromDom(u),e.push(f),!0===s(f))break;i=u}return e},siblings:function(n){return nb(n).map(wl).map(function(t){return vt(t,function(t){return!w.eq(n,t)})}).getOr([])},prevSibling:tft,offsetParent:function(t){var i=t.dom();return n.from(i.offsetParent).map(r.fromDom)},prevSiblings:function(n){return t=kut(n,tft),(i=bp.call(t,0)).reverse(),i;var t,i},nextSibling:ift,nextSiblings:function(n){return kut(n,ift)},children:wl,child:tb,firstChild:function(n){return tb(n,0)},lastChild:function(n){return tb(n,n.dom().childNodes.length-1)},childNodesCount:function(n){return n.dom().childNodes.length},hasChildNodes:function(n){return n.dom().hasChildNodes()},leaf:function(n,t){var i=wl(n);return 0<i.length&&t<i.length?rft(i[t],0):rft(n,t)}},ati=ou.detect().browser,uft=function(n){return ui(n,d.isElement)},vti={getPos:function(n,t,i){var u,h,s,e=0,f=0,o=n.ownerDocument;if(i=i||n,t){if(i===n&&t.getBoundingClientRect&&"static"===but(r.fromDom(n),"position"))return{x:e=(h=t.getBoundingClientRect()).left+(o.documentElement.scrollLeft||n.scrollLeft)-o.documentElement.clientLeft,y:f=h.top+(o.documentElement.scrollTop||n.scrollTop)-o.documentElement.clientTop};for(u=t;u&&u!==i&&u.nodeType;)e+=u.offsetLeft||0,f+=u.offsetTop||0,u=u.offsetParent;for(u=t.parentNode;u&&u!==i&&u.nodeType;)e-=u.scrollLeft||0,f-=u.scrollTop||0,u=u.parentNode;f+=(s=r.fromDom(t),ati.isFirefox()&&"table"===d.name(s)?uft(v.children(s)).filter(function(n){return"caption"===d.name(n)}).bind(function(n){return uft(v.nextSiblings(n)).map(function(t){var i=t.dom().offsetTop,r=n.dom().offsetTop,u=n.dom().offsetHeight;return i<=r?-u:0})}).getOr(0):0)}return{x:e,y:f}}},ib=function(t){var i=n.none(),r=[],u=function(n){f()?e(n):r.push(n)},f=function(){return i.isSome()},o=function(n){l(n,e)},e=function(n){i.each(function(t){setTimeout(function(){n(t)},0)})};return t(function(t){i=n.some(t);o(r);r=[]}),{get:u,map:function(n){return ib(function(t){u(function(i){t(n(i))})})},isReady:f}},yti={nu:ib,pure:function(n){return ib(function(t){t(n)})}},ks=function(n){var t=function(t){var i;n((i=t,function(){for(var r,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r=this;setTimeout(function(){i.apply(r,t)},0)}))};return{map:function(n){return ks(function(i){t(function(t){var r=n(t);i(r)})})},bind:function(n){return ks(function(i){t(function(t){n(t).get(i)})})},anonBind:function(n){return ks(function(i){t(function(){n.get(i)})})},toLazy:function(){return yti.nu(t)},get:t}},fft={nu:ks,pure:function(n){return ks(function(t){t(n)})}},pti=function(n,t){return t(function(t){var i=[],r=0;0===n.length?t([]):l(n,function(u,f){var e;u.get((e=f,function(u){i[e]=u;++r>=n.length&&t(i)}))})})},wti=function(n){return pti(n,fft.nu)},bl=function(t){return{is:function(n){return t===n},isValue:bc,isError:os,getOr:o(t),getOrThunk:o(t),getOrDie:o(t),or:function(){return bl(t)},orThunk:function(){return bl(t)},fold:function(n,i){return i(t)},map:function(n){return bl(n(t))},each:function(n){n(t)},bind:function(n){return n(t)},exists:function(n){return n(t)},forall:function(n){return n(t)},toOption:function(){return n.some(t)}}},rb=function(t){return{is:os,isValue:os,isError:bc,getOr:bi,getOrThunk:function(n){return n()},getOrDie:function(){return n=String(t),function(){throw new Error(n);}();var n},or:function(n){return n},orThunk:function(n){return n()},fold:function(n){return n(t)},map:function(){return rb(t)},each:es,bind:function(){return rb(t)},exists:os,forall:bc,toOption:n.none}},eft={value:bl,error:rb};var kl,hu,oft,ar=function(n){var t;return function(i){return(t=t||function(n,t){for(var r,u={},i=0,f=n.length;i<f;i++)r=n[i],u[String(r)]=t(r,i);return u}(n,o(!0))).hasOwnProperty(d.name(i))}},bti=ar(["h1","h2","h3","h4","h5","h6"]),ds=ar(["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"]),sft=function(n){return d.isElement(n)&&!ds(n)},hft=function(n){return d.isElement(n)&&"br"===d.name(n)},cft=ar(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),lft=ar(["ul","ol","dl"]),dl=ar(["li","dd","dt"]),kti=ar(["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param","embed","source","wbr","track"]),dti=ar(["thead","tbody","tfoot"]),gl=ar(["td","th"]),na=ar(["pre","script","textarea","style"]),ta=function(n){return function(t){return!!t&&t.nodeType===n}},vr=ta(1),aft=function(n){var t=n.toLowerCase().split(" ");return function(n){var i,r;if(n&&n.nodeType)for(r=n.nodeName.toLowerCase(),i=0;i<t.length;i++)if(r===t[i])return!0;return!1}},vft=function(n){return function(t){return vr(t)&&(t.contentEditable===n||t.getAttribute("data-mce-contenteditable")===n)?!0:!1}},gti=ta(3),nii=ta(8),tii=ta(9),iii=aft("br"),rii=vft("true"),uii=vft("false"),i={isText:gti,isElement:vr,isComment:nii,isDocument:tii,isBr:iii,isContentEditableTrue:rii,isContentEditableFalse:uii,matchNodeNames:aft,hasPropValue:function(n,t){return function(i){return vr(i)&&i[n]===t}},hasAttribute:function(n){return function(t){return vr(t)&&t.hasAttribute(n)}},hasAttributeValue:function(n,t){return function(i){return vr(i)&&i.getAttribute(n)===t}},matchStyleValues:function(n,t){var i=t.toLowerCase().split(" ");return function(t){var r,u;if(vr(t))for(r=0;r<i.length;r++)if(u=t.ownerDocument.defaultView.getComputedStyle(t,null),(u?u.getPropertyValue(n):null)===i[r])return!0;return!1}},isBogus:function(n){return vr(n)&&n.hasAttribute("data-mce-bogus")},isBogusAll:function(n){return vr(n)&&"all"===n.getAttribute("data-mce-bogus")},isTable:function(n){return vr(n)&&"TABLE"===n.tagName}},yft=function(n){return n&&"SPAN"===n.tagName&&"bookmark"===n.getAttribute("data-mce-type")},pft=function(n,u){var e,f=u.childNodes,s,o,h,c;if(!i.isElement(u)||!yft(u)){for(e=f.length-1;0<=e;e--)pft(n,f[e]);if(!1===i.isDocument(u)){if(i.isText(u)&&0<u.nodeValue.length){if(s=t.trim(u.nodeValue).length,n.isBlock(u.parentNode)||0<s)return;if(0===s&&(h=(o=u).previousSibling&&"SPAN"===o.previousSibling.nodeName,c=o.nextSibling&&"SPAN"===o.nextSibling.nodeName,h&&c))return}else if(i.isElement(u)&&(1===(f=u.childNodes).length&&yft(f[0])&&u.parentNode.insertBefore(f[0],u),f.length||kti(r.fromDom(u))))return;n.remove(u)}return u}},wft={trimNode:pft},fii=t.makeMap,ia=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ra=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eii=/[<>&\"\']/g,oii=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,sii={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};hu={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"};oft={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"};ub=function(n,t){var i,r,u,f={};if(n){for(n=n.split(","),t=t||10,i=0;i<n.length;i+=2)r=String.fromCharCode(parseInt(n[i],t)),hu[r]||(u="&"+n[i+1]+";",f[r]=u,f[u]=r);return f}};kl=ub("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);var bft=function(n,t){return n.replace(t?ia:ra,function(n){return hu[n]||n})},kft=function(n,t){return n.replace(t?ia:ra,function(n){return 1<n.length?"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";":hu[n]||"&#"+n.charCodeAt(0)+";"})},fb=function(n,t,i){return i=i||kl,n.replace(t?ia:ra,function(n){return hu[n]||i[n]||n})},wf={encodeRaw:bft,encodeAllRaw:function(n){return(""+n).replace(eii,function(n){return hu[n]||n})},encodeNumeric:kft,encodeNamed:fb,getEncodeFunc:function(n,t){var r=ub(t)||kl,i=fii(n.replace(/\+/g,","));return i.named&&i.numeric?function(n,t){return n.replace(t?ia:ra,function(n){return hu[n]!==undefined?hu[n]:r[n]!==undefined?r[n]:1<n.length?"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";":"&#"+n.charCodeAt(0)+";"})}:i.named?t?function(n,t){return fb(n,t,r)}:fb:i.numeric?kft:bft},decode:function(n){return n.replace(oii,function(n,t){return t?65535<(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10))?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):sii[t]||String.fromCharCode(t):oft[n]||kl[n]||(i=n,(u=r.fromTag("div").dom()).innerHTML=i,u.textContent||u.innerText||i);var i,u})}},cu={},hii={},we=t.makeMap,ct=t.each,eb=t.extend,dft=t.explode,cii=t.inArray,ut=function(n,i){return(n=t.trim(n))?n.split(i||" "):[]},lii=function(n){var o,e,u,r,s,h,f={},t=function(n,t,i){var r,u,e,s=function(n,t){for(var u={},i=0,r=n.length;i<r;i++)u[n[i]]=t||{};return u};for(t=t||"","string"==typeof(i=i||[])&&(i=ut(i)),r=(n=ut(n)).length;r--;)e={attributes:s(u=ut([o,t].join(" "))),attributesOrder:u,children:s(i,hii)},f[n[r]]=e},i=function(n,t){var r,u,i,e;for(r=(n=ut(n)).length,t=ut(t);r--;)for(u=f[n[r]],i=0,e=t.length;i<e;i++)u.attributes[t[i]]={},u.attributesOrder.push(t[i])};return cu[n]?cu[n]:(o="id accesskey class dir lang style tabindex title role",e="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",u="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==n&&(o+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",e+=" article aside details dialog figure header footer hgroup section nav",u+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==n&&(o+=" xml:lang",u=[u,h="acronym applet basefont big font strike tt"].join(" "),ct(ut(h),function(n){t(n,"",u)}),e=[e,s="center dir isindex noframes"].join(" "),r=[e,u].join(" "),ct(ut(s),function(n){t(n,"",r)})),r=r||[e,u].join(" "),t("html","manifest","head body"),t("head","","base command link meta noscript script style title"),t("title hr noscript br"),t("base","href target"),t("link","href rel media hreflang type sizes hreflang"),t("meta","name http-equiv content charset"),t("style","media type scoped"),t("script","src async defer type charset"),t("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",r),t("address dt dd div caption","",r),t("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",u),t("blockquote","cite",r),t("ol","reversed start type","li"),t("ul","","li"),t("li","value",r),t("dl","","dt dd"),t("a","href target rel media hreflang type",u),t("q","cite",u),t("ins del","cite datetime",r),t("img","src sizes srcset alt usemap ismap width height"),t("iframe","src name width height",r),t("embed","src type width height"),t("object","data type typemustmatch name usemap form width height",[r,"param"].join(" ")),t("param","name value"),t("map","name",[r,"area"].join(" ")),t("area","alt coords shape href target rel media hreflang type"),t("table","border","caption colgroup thead tfoot tbody tr"+("html4"===n?" col":"")),t("colgroup","span","col"),t("col","span"),t("tbody thead tfoot","","tr"),t("tr","","td th"),t("td","colspan rowspan headers",r),t("th","colspan rowspan headers scope abbr",r),t("form","accept-charset action autocomplete enctype method name novalidate target",r),t("fieldset","disabled form name",[r,"legend"].join(" ")),t("label","form for",u),t("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),t("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===n?r:u),t("select","disabled form multiple name required size","option optgroup"),t("optgroup","disabled label","option"),t("option","disabled label selected value"),t("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),t("menu","type label",[r,"li"].join(" ")),t("noscript","",r),"html4"!==n&&(t("wbr"),t("ruby","",[u,"rt rp"].join(" ")),t("figcaption","",r),t("mark rt rp summary bdi","",u),t("canvas","width height",r),t("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[r,"track source"].join(" ")),t("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[r,"track source"].join(" ")),t("picture","","img source"),t("source","src srcset type media sizes"),t("track","kind src srclang label default"),t("datalist","",[u,"option"].join(" ")),t("article section nav aside header footer","",r),t("hgroup","","h1 h2 h3 h4 h5 h6"),t("figure","",[r,"figcaption"].join(" ")),t("time","datetime",u),t("dialog","open",r),t("command","type label icon disabled checked radiogroup command"),t("output","for form name",u),t("progress","value max",u),t("meter","value min max low high optimum",u),t("details","open",[r,"summary"].join(" ")),t("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==n&&(i("script","language xml:space"),i("style","xml:space"),i("object","declare classid code codebase codetype archive standby align border hspace vspace"),i("embed","align name hspace vspace"),i("param","valuetype type"),i("a","charset name rev shape coords"),i("br","clear"),i("applet","codebase archive code object alt name width height align hspace vspace"),i("img","name longdesc align border hspace vspace"),i("iframe","longdesc frameborder marginwidth marginheight scrolling align"),i("font basefont","size color face"),i("input","usemap align"),i("select","onchange"),i("textarea"),i("h1 h2 h3 h4 h5 h6 div p legend caption","align"),i("ul","type compact"),i("li","type"),i("ol dl menu dir","compact"),i("pre","width xml:space"),i("hr","align noshade size width"),i("isindex","prompt"),i("table","summary width frame rules cellspacing cellpadding align bgcolor"),i("col","width align char charoff valign"),i("colgroup","width align char charoff valign"),i("thead","align char charoff valign"),i("tr","align char charoff valign bgcolor"),i("th","axis align char charoff valign nowrap bgcolor width height"),i("form","accept"),i("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),i("tfoot","align char charoff valign"),i("tbody","align char charoff valign"),i("area","nohref"),i("body","background bgcolor text link vlink alink")),"html4"!==n&&(i("input button select textarea","autofocus"),i("input textarea","placeholder"),i("a","download"),i("link script img","crossorigin"),i("iframe","sandbox seamless allowfullscreen")),ct(ut("a form meter progress dfn"),function(n){f[n]&&delete f[n].children[n]}),delete f.caption.children.table,delete f.script,cu[n]=f)},ob=function(n,t){var i;return n&&(i={},"string"==typeof n&&(n={"*":n}),ct(n,function(n,r){i[r]=i[r.toUpperCase()]="map"===t?we(n,/[, ]/):dft(n,/[, ]/)})),i};sb=function(n,t,i,r){var u=function(n){return 1<(n=parseInt(n,10).toString(16)).length?n:"0"+n};return"#"+u(t)+u(i)+u(r)};var cb,be=t.each,aii=t.grep,gft=s.ie,vii=/^([a-z0-9],?)+$/i,net=/^[ \t\r\n]*$/,yii=function(n,t,i){var r={},u=t.keep_values,f={set:function(n,r,u){t.url_converter&&(r=t.url_converter.call(t.url_converter_scope||i(),r,u,n[0]));n.attr("data-mce-"+u,r).attr(u,r)},get:function(n,t){return n.attr("data-mce-"+t)||n.attr(t)}};return r={style:{set:function(n,t){null===t||"object"!=typeof t?(u&&n.attr("data-mce-style",t),n.attr("style",t)):n.css(t)},get:function(t){var i=t.attr("data-mce-style")||t.attr("style");return n.serialize(n.parse(i),t[0].nodeName)}}},u&&(r.href=r.src=f),r},tet=function(n,t){var r=t.attr("style"),i=n.serialize(n.parse(r),t[0].nodeName);i||(i=null);t.attr("data-mce-style",i)},ke=function(n,t){var r,i,u=0;if(n)for(r=n.nodeType,n=n.previousSibling;n;n=n.previousSibling)i=n.nodeType,(!t||3!==i||i!==r&&n.nodeValue.length)&&(u++,r=i);return u};(cb=de||(de={})).DOM=cb(document);cb.nodeIndex=ke;var g=de,pii=g.DOM,lb=t.each,wii=t.grep,ua=function(n){return"function"==typeof n},yr=function(){var n={},f=[],i={},u=[],r=0;this.isDone=function(t){return 2===n[t]};this.markDone=function(t){n[t]=2};this.add=this.load=function(t,r,u,e){n[t]===undefined&&(f.push(t),n[t]=0);r&&(i[t]||(i[t]=[]),i[t].push({success:r,failure:e,scope:u||this}))};this.remove=function(t){delete n[t];delete i[t]};this.loadQueue=function(n,t,i){this.loadScripts(f,n,t,i)};this.loadScripts=function(f,e,o,s){var c,l=[],h=function(n,t){lb(i[t],function(t){ua(t[n])&&t[n].call(t.scope)});i[t]=undefined};u.push({success:e,failure:s,scope:o||this});(c=function(){var e=wii(f),i;(f.length=0,lb(e,function(i){var f,s,e,u,o,a;2!==n[i]?3!==n[i]?1!==n[i]&&(n[i]=1,r++,f=i,s=function(){n[i]=2;r--;h("success",i);c()},e=function(){n[i]=3;r--;l.push(i);h("failure",i);c()},o=(a=pii).uniqueId(),(u=document.createElement("script")).id=o,u.type="text/javascript",u.src=t._addCacheSuffix(f),u.onload=function(){a.remove(o);u&&(u.onreadystatechange=u.onload=u=null);s()},u.onerror=function(){ua(e)?e():"undefined"!=typeof console&&console.log&&console.log("Failed to load script: "+f)},(document.getElementsByTagName("head")[0]||document.body).appendChild(u)):h("failure",i):h("success",i)}),r)||(i=u.slice(0),u.length=0,lb(i,function(n){0===l.length?ua(n.success)&&n.success.call(n.scope):ua(n.failure)&&n.failure.call(n.scope,l)}))})()}};yr.ScriptLoader=new yr;ea=t.each;(fa=wt||(wt={})).PluginManager=fa();fa.ThemeManager=fa();var oa=function(n,t){v.parent(n).each(function(i){i.dom().insertBefore(t.dom(),n.dom())})},gs=function(n,t){n.dom().appendChild(t.dom())},rt={before:oa,after:function(n,t){v.nextSibling(n).fold(function(){v.parent(n).each(function(n){gs(n,t)})},function(n){oa(n,t)})},prepend:function(n,t){v.firstChild(n).fold(function(){gs(n,t)},function(i){n.dom().insertBefore(t.dom(),i.dom())})},append:gs,appendAt:function(n,t,i){v.child(n,i).fold(function(){gs(n,t)},function(n){oa(n,t)})},wrap:function(n,t){oa(n,t);gs(t,n)}},bii=function(n,t){l(t,function(t){rt.before(n,t)})},ab=function(n,t){l(t,function(t){rt.append(n,t)})},vb=function(n){var t=n.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},ft={empty:function(n){n.dom().textContent="";l(v.children(n),function(n){vb(n)})},remove:vb,unwrap:function(n){var t=v.children(n);0<t.length&&bii(n,t);vb(n)}},iet=function(n,t){var i=null;return{cancel:function(){null!==i&&(clearTimeout(i),i=null)},throttle:function(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];null===i&&(i=setTimeout(function(){n.apply(null,u);i=null},t))}}},au=function(n){var t=n,i=function(){return t};return{get:i,set:function(n){t=n},clone:function(){return au(i())}}},yb=function(n,t){var i=it.get(n,t);return i===undefined||""===i?[]:i.split(" ")},kii=yb,dii=function(n,t,i){var r=yb(n,t).concat([i]);return it.set(n,t,r.join(" ")),!0},gii=function(n,t,i){var r=vt(yb(n,t),function(n){return n!==i});return 0<r.length?it.set(n,t,r.join(" ")):it.remove(n,t),!1},ret=function(n){return kii(n,"class")},uet=function(n,t){return dii(n,"class",t)},fet=function(n,t){return gii(n,"class",t)},nri=ret,eet=uet,oet=fet,tri=function(n,t){return cs(ret(n),t)?fet(n,t):uet(n,t)},ge=function(n){return n.dom().classList!==undefined},set=function(n,t){return ge(n)&&n.dom().classList.contains(t)},no={add:function(n,t){ge(n)?n.dom().classList.add(t):eet(n,t)},remove:function(n,t){var i;ge(n)?n.dom().classList.remove(t):oet(n,t);0===(ge(i=n)?i.dom().classList:nri(i)).length&&it.remove(i,"class")},toggle:function(n,t){return ge(n)?n.dom().classList.toggle(t):tri(n,t)},toggler:function(n,t){var r,u,f,i,e,o,s=ge(n),h=n.dom().classList;return r=function(){s?h.remove(t):oet(n,t)},u=function(){s?h.add(t):eet(n,t)},f=set(n,t),i=f||!1,{on:e=function(){u();i=!0},off:o=function(){r();i=!1},toggle:function(){(i?o:e)()},isOn:function(){return i}}},has:set},gi=function(n,t){return su.all(t,n)};var bt,cet=function(t,i,u){for(var e,f=t.dom(),s=sf(u)?u:o(!1);f.parentNode;){if(f=f.parentNode,e=r.fromDom(f),i(e))return n.some(e);if(s(e))break}return n.none()},aet=function(n,t){return ui(n.dom().childNodes,dr(t,r.fromDom)).map(r.fromDom)},vet=function(t,i){var u=function(t){for(var e,f=0;f<t.childNodes.length;f++){if(i(r.fromDom(t.childNodes[f])))return n.some(r.fromDom(t.childNodes[f]));if(e=u(t.childNodes[f]),e.isSome())return e}return n.none()};return u(t.dom())},nh={first:function(n){return vet(yut.body(),n)},ancestor:cet,closest:function(n,t,i){return het(function(n){return t(n)},cet,n,t,i)},sibling:function(t,i){var u=t.dom();return u.parentNode?aet(r.fromDom(u.parentNode),function(n){return!w.eq(t,n)&&i(n)}):n.none()},child:aet,descendant:vet},yet=function(n,t,i){return nh.ancestor(n,function(n){return su.is(n,t)},i)},pb=yet,sa=function(n,t){return su.one(t,n)},pet=function(n,t,i){return het(su.is,yet,n,t,i)},wb=o("mce-annotation"),th=o("data-mce-annotation"),ha=o("data-mce-annotation-uid"),wet=function(t,i){var u=t.selection.getRng(),f=r.fromDom(u.startContainer),o=r.fromDom(t.getBody()),s=i.fold(function(){return"."+wb()},function(n){return"["+th()+'="'+n+'"]'}),h=v.child(f,u.startOffset).getOr(f),c=pet(h,s,function(n){return w.eq(n,o)}),e=function(t,i){return it.has(t,i)?n.some(it.get(t,i)):n.none()};return c.bind(function(n){return e(n,""+ha()).bind(function(i){return e(n,""+th()).map(function(n){var r=iri(t,i);return{uid:i,name:n,elements:r}})})})},iri=function(n,t){var i=r.fromDom(n.getBody());return gi(i,"["+ha()+'="'+t+'"]')},rri=function(t){var f,e,i,r=au({}),o=function(n,t){u(n,function(n){return t(n),n})},u=function(t,i){var u=r.get(),f=i(u.hasOwnProperty(t)?u[t]:{listeners:[],previous:au(n.none())});u[t]=f;r.set(u)},s=(f=function(){var i,e,f,s=r.get(),h=(i=yl(s),(f=bp.call(i,0)).sort(e),f);l(h,function(i){u(i,function(r){var u=r.previous.get();return wet(t,n.some(i)).fold(function(){var t;u.isSome()&&(o(t=i,function(n){l(n.listeners,function(n){return n(!1,t)})}),r.previous.set(n.none()))},function(t){var f,e,s,i=t.uid,h=t.name,c=t.elements;u.is(i)||(e=i,s=c,o(f=h,function(n){l(n.listeners,function(n){return n(!0,f,{uid:e,nodes:dt(s,function(n){return n.dom()})})})}),r.previous.set(n.some(i)))}),{previous:r.previous,listeners:r.listeners}})})},e=30,i=null,{cancel:function(){null!==i&&(clearTimeout(i),i=null)},throttle:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];null!==i&&clearTimeout(i);i=setTimeout(function(){f.apply(null,t);i=null},e)}});return t.on("remove",function(){s.cancel()}),t.on("nodeChange",function(){s.throttle()}),{addListener:function(n,t){u(n,function(n){return{previous:n.previous,listeners:n.listeners.concat([t])}})}}},uri=function(t,i){t.on("init",function(){t.serializer.addNodeFilter("span",function(t){l(t,function(t){var r;(r=t,n.from(r.attributes.map[th()]).bind(i.lookup)).each(function(n){!1===n.persistent&&t.unwrap()})})})})},fri=0,eri=function(n,t){l(t,function(t){no.add(n,t)})},bet=function(n,t){return r.fromDom(n.dom().cloneNode(t))},ori=function(n){return bet(n,!0)},to=function(n){return bet(n,!1)},ket=ori,bb=[].slice,det=function(n){for(var i,r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return i=bb.call(arguments),i.length-1>=n.length?n.apply(this,i.slice(1)):function(){var n=i.concat([].slice.call(arguments));return det.apply(this,n)}},ht={constant:function(n){return function(){return n}},negate:function(n){return function(t){return!n(t)}},and:function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return t=bb.call(arguments),function(n){for(var i=0;i<t.length;i++)if(!t[i](n))return!1;return!0}},or:function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return t=bb.call(arguments),function(n){for(var i=0;i<t.length;i++)if(t[i](n))return!0;return!1}},curry:det,compose:function(n,t){return function(i){return n(t(i))}},noop:function(){}},kb="﻿",sri=function(n){return n===kb},yt=kb,vu=function(n){return n.replace(new RegExp(kb,"g"),"")},hri=i.isElement,io=i.isText,ro=function(n){return io(n)&&(n=n.parentNode),hri(n)&&n.hasAttribute("data-mce-caret")},ca=function(n){return io(n)&&sri(n.data)},oi=function(n){return ro(n)||ca(n)},get=function(n){return n.firstChild!==n.lastChild||!i.isBr(n.firstChild)},db=function(n){var t=n.container();return n&&i.isText(t)&&t.data.charAt(n.offset())===yt},gb=function(n){var t=n.container();return n&&i.isText(t)&&t.data.charAt(n.offset()-1)===yt},cri=function(n,t,i){var r,u,f;return(r=t.ownerDocument.createElement(n)).setAttribute("data-mce-caret",i?"before":"after"),r.setAttribute("data-mce-bogus","all"),r.appendChild(((f=document.createElement("br")).setAttribute("data-mce-bogus","1"),f)),u=t.parentNode,i?u.insertBefore(r,t):t.nextSibling?u.insertBefore(r,t.nextSibling):u.appendChild(r),r},la=function(n){return io(n)&&n.data[0]===yt},aa=function(n){return io(n)&&n.data[n.data.length-1]===yt},nk=function(n){return n&&n.hasAttribute("data-mce-caret")?(r=n.getElementsByTagName("br"),t=r[r.length-1],i.isBogus(t)&&t.parentNode.removeChild(t),n.removeAttribute("data-mce-caret"),n.removeAttribute("data-mce-bogus"),n.removeAttribute("style"),n.removeAttribute("_moz_abspos"),n):null;var r,t},not=i.isContentEditableTrue,lri=i.isContentEditableFalse,ari=i.isBr,vri=i.isText,yri=i.matchNodeNames("script style textarea"),tot=i.matchNodeNames("img input textarea hr iframe video audio object"),pri=i.matchNodeNames("table"),wri=oi,sr=function(n){return!wri(n)&&(vri(n)?!yri(n.parentNode):tot(n)||ari(n)||pri(n)||tk(n))},tk=function(n){return!1===(t=n,i.isElement(t)&&"true"===t.getAttribute("unselectable"))&&lri(n);var t},ik=function(n,t){return sr(n)&&function(n,t){for(n=n.parentNode;n&&n!==t;n=n.parentNode){if(tk(n))return!1;if(not(n))return!0}return!0}(n,t)},uo=Math.round,fo=function(n){return n?{left:uo(n.left),top:uo(n.top),bottom:uo(n.bottom),right:uo(n.right),width:uo(n.width),height:uo(n.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},iot=function(n,t){return n=fo(n),t||(n.left=n.left+n.width),n.right=n.left,n.width=0,n},rot=function(n,t,i){return 0<=n&&n<=Math.min(t.height,i.height)/2},eo=function(n,t){return n.bottom-n.height/2<t.top||!(n.top>t.bottom)&&rot(t.top-n.bottom,n,t)},oo=function(n,t){return n.top>t.bottom||!(n.bottom<t.top)&&rot(t.bottom-n.top,n,t)},rk=function(n){var t=n.startContainer,i=n.startOffset;return t.hasChildNodes()&&n.endOffset===i+1?t.childNodes[i]:null},so=function(n,t){return 1===n.nodeType&&n.hasChildNodes()&&(t>=n.childNodes.length&&(t=n.childNodes.length-1),n=n.childNodes[t]),n},bri=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︯ﾞ-ﾟ]"),uot=function(n){return"string"==typeof n&&768<=n.charCodeAt(0)&&bri.test(n)},ti=function(t,i){for(var f,u=[],r=0;r<t.length;r++){if(f=t[r],!f.isSome())return n.none();u.push(f.getOrDie())}return n.some(i.apply(null,u))},fot=i.isElement,kri=sr,eot=i.matchStyleValues("display","block table"),dri=i.matchStyleValues("float","left right"),ih=ht.and(fot,kri,ht.negate(dri)),gri=ht.negate(i.matchStyleValues("white-space","pre pre-line pre-wrap")),rh=i.isText,uk=i.isBr,oot=g.nodeIndex,va=so,fk=function(n){return"createRange"in n?n.createRange():g.DOM.createRng()},ek=function(n){return n&&/[\r\n\t ]/.test(n)},sot=function(n){return!!n.setStart&&!!n.setEnd},ok=function(n){var t,r=n.startContainer,u=n.startOffset;return!!(ek(n.toString())&&gri(r.parentNode)&&i.isText(r)&&(t=r.data,ek(t[u-1])||ek(t[u+1])))},hot=function(n){return 0===n.left&&0===n.right&&0===n.top&&0===n.bottom},yu=function(n){var r,o,f,s,e,u,t,h;return r=0<(o=n.getClientRects()).length?fo(o[0]):fo(n.getBoundingClientRect()),!sot(n)&&uk(n)&&hot(r)?(e=(f=n).ownerDocument,u=fk(e),t=e.createTextNode(" "),(h=f.parentNode).insertBefore(t,f),u.setStart(t,0),u.setEnd(t,1),s=fo(u.getBoundingClientRect()),h.removeChild(t),s):hot(r)&&sot(n)?function(n){var u=n.startContainer,t=n.endContainer,f=n.startOffset,e=n.endOffset,r;return u===t&&i.isText(t)&&0===f&&1===e?(r=n.cloneRange(),r.setEndAfter(t),yu(r)):null}(n):r},bf=function(n,t){var i=iot(n,t);return i.width=1,i.right=i.left+1,i},nui=function(n){var u,t,i=[],r=function(n){var t,r;0!==n.height&&(0<i.length&&(t=n,r=i[i.length-1],t.left===r.left&&t.top===r.top&&t.bottom===r.bottom&&t.right===r.right)||i.push(n))},f=function(n,t){var u=fk(n.ownerDocument);if(t<n.data.length){if(uot(n.data[t]))return i;if(uot(n.data[t-1])&&(u.setStart(n,t),u.setEnd(n,t+1),!ok(u)))return r(bf(yu(u),!1)),i}0<t&&(u.setStart(n,t-1),u.setEnd(n,t),ok(u)||r(bf(yu(u),!1)));t<n.data.length&&(u.setStart(n,t),u.setEnd(n,t+1),ok(u)||r(bf(yu(u),!0)))};if(rh(n.container()))return f(n.container(),n.offset()),i;if(fot(n.container()))if(n.isAtEnd())t=va(n.container(),n.offset()),rh(t)&&f(t,t.data.length),ih(t)&&!uk(t)&&r(bf(yu(t),!1));else{if(t=va(n.container(),n.offset()),rh(t)&&f(t,0),ih(t)&&n.isAtEnd())return r(bf(yu(t),!1)),i;u=va(n.container(),n.offset()-1);ih(u)&&!uk(u)&&(eot(u)||eot(t)||!ih(t))&&r(bf(yu(u),!1));ih(t)&&r(bf(yu(t),!0))}return i};(bt=et||(et={})).fromRangeStart=function(n){return bt(n.startContainer,n.startOffset)};bt.fromRangeEnd=function(n){return bt(n.endContainer,n.endOffset)};bt.after=function(n){return bt(n.parentNode,oot(n)+1)};bt.before=function(n){return bt(n.parentNode,oot(n))};bt.isAbove=function(n,t){return ti([rr(t.getClientRects()),he(n.getClientRects())],eo).getOr(!1)};bt.isBelow=function(n,t){return ti([he(t.getClientRects()),rr(n.getClientRects())],oo).getOr(!1)};bt.isAtStart=function(n){return!!n&&n.isAtStart()};bt.isAtEnd=function(n){return!!n&&n.isAtEnd()};bt.isTextPosition=function(n){return!!n&&i.isText(n.container())};bt.isElementPosition=function(n){return!1===bt.isTextPosition(n)};var si,ya,u=et,nr=i.isText,cot=i.isBogus,lot=g.nodeIndex,aot=function(n){var t=n.parentNode;return cot(t)?aot(t):t},sk=function(n){return n?h.reduce(n.childNodes,function(n,t){return cot(t)&&"BR"!==t.nodeName?n=n.concat(sk(t)):n.push(t),n},[]):[]},vot=function(n){return function(t){return n===t}},yot=function(n){var r,t,u,f;return(nr(n)?"text()":n.nodeName.toLowerCase())+"["+(t=sk(aot(r=n)),u=h.findIndex(t,vot(r),r),t=t.slice(0,u+1),f=h.reduce(t,function(n,i,r){return nr(i)&&nr(t[r-1])&&n++,n},0),t=h.filter(t,i.matchNodeNames(r.nodeName)),(u=h.findIndex(t,vot(r),r))-f)+"]"},pot=function(n,t){var r,u,f,o,e,s=[];return r=t.container(),u=t.offset(),nr(r)?f=function(n,t){for(;(n=n.previousSibling)&&nr(n);)t+=n.data.length;return t}(r,u):(u>=(o=r.childNodes).length?(f="after",u=o.length-1):f="before",r=o[u]),s.push(yot(r)),e=function(n,t,i){var r=[];for(t=t.parentNode;!(t===n||i&&i(t));t=t.parentNode)r.push(t);return r}(n,r),e=h.filter(e,ht.negate(i.isBogus)),(s=s.concat(h.map(e,function(n){return yot(n)}))).reverse().join("/")+","+f},wot=function(n,t){var e,r,f;return t?(t=(e=t.split(","))[0].split("/"),f=1<e.length?e[1]:"before",(r=h.reduce(t,function(n,t){return(t=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t))?("text()"===t[1]&&(t[1]="#text"),u=n,f=t[1],e=parseInt(t[2],10),r=sk(u),r=h.filter(r,function(n,t){return!nr(n)||!nr(r[t-1])}),(r=h.filter(r,i.matchNodeNames(f)))[e]):null;var u,f,e,r},n))?nr(r)?function(n,t){for(var r,i=n,f=0;nr(i);){if(r=i.data.length,f<=t&&t<=f+r){n=i;t-=f;break}if(!nr(i.nextSibling)){n=i;t=r;break}f+=r;i=i.nextSibling}return nr(n)&&t>n.data.length&&(t=n.data.length),u(n,t)}(r,parseInt(f,10)):(f="after"===f?lot(r)+1:lot(r),u(r.parentNode,f)):null):null},pa=i.isContentEditableFalse,bot=function(n,t,r,u,f){var s,e=u[f?"startContainer":"endContainer"],o=u[f?"startOffset":"endOffset"],h=[],c=0,l=n.getRoot();for(i.isText(e)?h.push(r?function(n,t,r){for(var f=n(t.data.slice(0,r)).length,u=t.previousSibling;u&&i.isText(u);u=u.previousSibling)f+=n(u.data).length;return f}(t,e,o):o):(o>=(s=e.childNodes).length&&s.length&&(c=1,o=Math.max(0,s.length-1)),h.push(n.nodeIndex(s[o],r)+c));e&&e!==l;e=e.parentNode)h.push(n.nodeIndex(e,r));return h},kot=function(n){i.isText(n)&&0===n.data.length&&n.parentNode.removeChild(n)},hk=function(n,i,r){var u=0;return t.each(n.select(i),function(n){if("all"!==n.getAttribute("data-mce-bogus"))return n!==r&&void u++}),u},dot=function(n,t){var r,u,f,e=t?"start":"end";r=n[e+"Container"];u=n[e+"Offset"];i.isElement(r)&&"TR"===r.nodeName&&(r=(f=r.childNodes)[Math.min(t?u:u-1,f.length-1)])&&(u=t?0:r.childNodes.length,n["set"+(t?"Start":"End")](r,u))},got=function(n){return dot(n,!0),dot(n,!1),n},nst=function(n,t){var r;return i.isElement(n)&&(n=so(n,t),pa(n))?n:oi(n)&&((i.isText(n)&&ro(n)&&(n=n.parentNode),r=n.previousSibling,pa(r))||(r=n.nextSibling,pa(r)))?r:void 0},tst=function(n,t,i){var u=i.getNode(),r=u?u.nodeName:null,a=i.getRng(),f,o,v,s,h,c,l,e;return pa(u)||"IMG"===r?{name:r,index:hk(i.dom,r,u)}:(e=nst((f=a).startContainer,f.startOffset)||nst(f.endContainer,f.endOffset),e?{name:r=e.tagName,index:hk(i.dom,r,e)}:(o=n,s=t,h=a,c=(v=i).dom,(l={}).start=bot(c,o,s,h,!0),v.isCollapsed()||(l.end=bot(c,o,s,h,!1)),l))},ist=function(n,t,i){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return i?n.create("span",r,"&#xFEFF;"):n.create("span",r)},rst=function(n,t){var i=n.dom,r=n.getRng(),u=i.uniqueId(),c=n.isCollapsed(),h=n.getNode(),f=h.nodeName,e,o,s;return"IMG"===f?{name:f,index:hk(i,f,h)}:(e=got(r.cloneRange()),c||(e.collapse(!1),o=ist(i,u+"_end",t),e.insertNode(o),kot(o.nextSibling)),(r=got(r)).collapse(!0),s=ist(i,u+"_start",t),r.insertNode(s),kot(s.previousSibling),n.moveToBookmark({id:u,keep:1}),{id:u})},ho={getBookmark:function(n,t,i){return 2===t?tst(vu,i,n):3===t?(f=(r=n).getRng(),{start:pot(r.dom.getRoot(),u.fromRangeStart(f)),end:pot(r.dom.getRoot(),u.fromRangeEnd(f))}):t?{rng:n.getRng()}:rst(n,!1);var r,f},getUndoBookmark:f(tst,bi,!0),getPersistentBookmark:rst},ust="_mce_caret",pu=function(n){return i.isElement(n)&&n.id===ust},kf=function(n,t){for(;t&&t!==n;){if(t.id===ust)return t;t=t.parentNode}return null},tui=i.isElement,fst=i.isText,est=function(n){var t=n.parentNode;t&&t.removeChild(n)},ost=function(n,t){0===t.length?est(n):n.nodeValue=t},sst=function(n){var t=vu(n);return{count:n.length-t.length,text:t}},hst=function(n,t){return ck(n),t},iui=function(t,i){var f,e,r,o=i.container(),s=(f=ugt(o.childNodes),e=t,r=fit(f,e),-1===r?n.none():n.some(r)).map(function(n){return n<i.offset()?u(o,i.offset()-1):i}).getOr(i);return ck(t),s},rui=function(n,t){return fst(n)&&t.container()===n?(i=t,f=sst((r=n).data.substr(0,i.offset())),e=sst(r.data.substr(i.offset())),0<(o=f.text+e.text).length?(ost(r,o),u(r,i.offset()-f.count)):i):hst(n,t);var r,i,f,e,o},ck=function(n){if(tui(n)&&oi(n)&&(get(n)?n.removeAttribute("data-mce-caret"):est(n)),fst(n)){var t=vu(function(n){try{return n.nodeValue}catch(t){return""}}(n));ost(n,t)}},co={removeAndReposition:function(n,t){return u.isTextPosition(t)?rui(n,t):(i=n,(r=t).container()===i.parentNode?iui(i,r):hst(i,r));var i,r},remove:ck},uui=i.isContentEditableTrue,wa=i.isContentEditableFalse,wu=function(n,t,i,r,u){return t._selectionOverrides.showCaret(n,i,r,u)},lk=function(n,t){var i,r;return n.fire("BeforeObjectSelected",{target:t}).isDefaultPrevented()?null:((r=(i=t).ownerDocument.createRange()).selectNode(i),r)},cst=function(n,t,i){var s=iv(1,n.getBody(),t),r=u.fromRangeStart(s),o=r.getNode(),f,e;return wa(o)?wu(1,n,o,!r.isAtEnd(),!1):(f=r.getNode(!0),wa(f))?wu(1,n,f,!1,!1):(e=n.dom.getParent(r.getNode(),function(n){return wa(n)||uui(n)}),wa(e)?wu(1,n,e,!1,i):null)},ba=function(n,t,i){if(!t||!t.collapsed)return t;var r=cst(n,t,i);return r||t};(ya=si||(si={}))[ya.Backwards=-1]="Backwards";ya[ya.Forwards=1]="Forwards";var pr,bu,fui=i.isContentEditableFalse,wr=i.isText,lst=i.isElement,ak=i.isBr,uh=sr,ast=function(n){return tot(n)||!!tk(t=n)&&!0!==h.reduce(t.getElementsByTagName("*"),function(n,t){return n||not(t)},!1);var t},ka=ik,vst=function(n,t){return n.hasChildNodes()&&t<n.childNodes.length?n.childNodes[t]:null},yst=function(n,t){if(lo(n)){if(uh(t.previousSibling)&&!wr(t.previousSibling))return u.before(t);if(wr(t))return u(t,0)}if(gf(n)){if(uh(t.nextSibling)&&!wr(t.nextSibling))return u.after(t);if(wr(t))return u(t,t.data.length)}return gf(n)?ak(t)?u.before(t):u.after(t):u.before(t)},da=function(n,t,r){var l,f,o,a,s,v,y,p,e,c;if(!lst(r)||!t)return null;if(t.isEqual(u.after(r))&&r.lastChild){if(s=u.after(r.lastChild),gf(n)&&uh(r.lastChild)&&lst(r.lastChild))return ak(r.lastChild)?u.before(r.lastChild):s}else s=t;if(e=s.container(),c=s.offset(),wr(e)){if(gf(n)&&0<c)return u(e,--c);if(lo(n)&&c<e.length)return u(e,++c);l=e}else{if(gf(n)&&0<c&&(f=vst(e,c-1),uh(f)))return!ast(f)&&(o=ao(f,n,ka,f))?wr(o)?u(o,o.data.length):u.after(o):wr(f)?u(f,f.data.length):u.before(f);if(lo(n)&&c<e.childNodes.length&&(f=vst(e,c),uh(f)))return ak(f)&&r.lastChild===f?null:(v=f,y=r,i.isBr(v)&&(p=da(1,u.after(v),y))&&!gu(u.before(v),u.before(p),y)?da(n,u.after(f),r):!ast(f)&&(o=ao(f,n,ka,f))?wr(o)?u(o,0):u.before(o):wr(f)?u(f,0):u.after(f));l=f||s.getNode()}return(lo(n)&&s.isAtEnd()||gf(n)&&s.isAtStart())&&(l=ao(l,n,ht.constant(!0),r,!0),ka(l,r))?yst(n,l):(f=ao(l,n,ka,r),!(a=h.last(h.filter(function(n,t){for(var i=[];n&&n!==t;)i.push(n),n=n.parentNode;return i}(e,r),fui)))||f&&a.contains(f)?f?yst(n,f):null:s=lo(n)?u.after(a):u.before(a))},hr=function(n){return{next:function(t){return da(si.Forwards,t,n)},prev:function(t){return da(si.Backwards,t,n)}}};(bu=pr||(pr={}))[bu.Br=0]="Br";bu[bu.Block=1]="Block";bu[bu.Wrap=2]="Wrap";bu[bu.Eol=3]="Eol";var ga,fh,vk,yk,pst,nv=function(n,t){return n===si.Backwards?t.reverse():t},wst=function(t,r,u,f){for(var y,e,a,v,h,c,l,p=hr(u),o=f,s=[];o&&(c=p,l=o,e=r===si.Forwards?c.next(l):c.prev(l));){if(i.isBr(e.getNode(!1)))return r===si.Forwards?{positions:nv(r,s).concat([e]),breakType:pr.Br,breakAt:n.some(e)}:{positions:nv(r,s),breakType:pr.Br,breakAt:n.some(e)};if(e.isVisible()){if(t(o,e))return y=(a=r,v=o,h=e,i.isBr(h.getNode(a===si.Forwards))?pr.Br:!1===gu(v,h)?pr.Block:pr.Wrap),{positions:nv(r,s),breakType:y,breakAt:n.some(e)};s.push(e);o=e}else o=e}return{positions:nv(r,s),breakType:pr.Eol,breakAt:n.none()}},bst=function(n,t,i,r){return t(i,r).breakAt.map(function(r){var u=t(i,r).positions;return n===si.Backwards?u.concat(r):[r].concat(u)}).getOr([])},pk=function(t,i){return hf(t,function(t,r){return t.fold(function(){return n.some(r)},function(n){return ti([rr(n.getClientRects()),rr(r.getClientRects())],function(t,u){var f=Math.abs(i-t.left);return Math.abs(i-u.left)<=f?r:n}).or(t)})},n.none())},kst=function(n,t){return rr(t.getClientRects()).bind(function(t){return pk(n,t.left)})},wk=f(wst,et.isAbove,-1),bk=f(wst,et.isBelow,1),eui=f(bst,-1,wk),oui=f(bst,1,bk),dst=function(t,i,u,f,e){var o,c,s,h,l=gi(r.fromDom(u),"td,th").map(function(n){return n.dom()}),a=vt((o=t,dc(l,function(n){var t,i,r=(t=n.getBoundingClientRect(),i=-1,{left:t.left-i,top:t.top-i,right:t.right+2*i,bottom:t.bottom+2*i,width:t.width+i,height:t.height+i});return[{x:r.left,y:o(r),cell:n},{x:r.right,y:o(r),cell:n}]})),function(n){return i(n,e)});return(c=a,s=f,h=e,hf(c,function(t,i){return t.fold(function(){return n.some(i)},function(t){var r=Math.sqrt(Math.abs(t.x-s)+Math.abs(t.y-h)),u=Math.sqrt(Math.abs(i.x-s)+Math.abs(i.y-h));return n.some(u<r?i:t)})},n.none())).map(function(n){return n.cell})},sui=f(dst,function(n){return n.bottom},function(n,t){return n.y<t}),hui=f(dst,function(n){return n.top},function(n,t){return n.y>t}),cui=function(n,t){return rr(t.getClientRects()).bind(function(t){return sui(n,t.left,t.top)}).bind(function(n){return kst((i=n,c.lastPositionIn(i).map(function(n){return wk(i,n).positions.concat(n)}).getOr([])),t);var i})},lui=function(n,t){return he(t.getClientRects()).bind(function(t){return hui(n,t.left,t.top)}).bind(function(n){return kst((i=n,c.firstPositionIn(i).map(function(n){return[n].concat(bk(i,n).positions)}).getOr([])),t);var i})},gst=function(n){for(var i=0,r=0,t=n;t&&t.nodeType;)i+=t.offsetLeft||0,r+=t.offsetTop||0,t=t.offsetParent;return{x:i,y:r}},aui=function(n,t,r){var u,s,f,e,h,c=n.dom,a=c.getRoot(),l=0,o;if(h={elm:t,alignToTop:r},n.fire("scrollIntoView",h),!h.isDefaultPrevented()&&i.isElement(t)){if((!1===r&&(l=t.offsetHeight),"BODY"!==a.nodeName)&&(o=n.selection.getScrollContainer(),o))return u=gst(t).y-gst(o).y+l,e=o.clientHeight,void((u<(f=o.scrollTop)||f+e<u+25)&&(o.scrollTop=u<f?u:u-e+25));s=c.getViewPort(n.getWin());u=c.getPos(t).y+l;f=s.y;e=s.h;(u<s.y||f+e<u+25)&&n.getWin().scrollTo(0,u<f?u:u-e+25)}},vui=function(n,t){rr(et.fromRangeStart(t).getClientRects()).each(function(t){var c,l,r,u,f,e,o,s,h,a=function(n){if(n.inline)return n.getBody().getBoundingClientRect();var t=n.getWin();return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight}}(n),i={x:(f=c=a,e=l=t,e.left>f.left&&e.right<f.right?0:e.left<f.left?e.left-f.left:e.right-f.right),y:(r=c,u=l,u.top>r.top&&u.bottom<r.bottom?0:u.top<r.top?u.top-r.top:u.bottom-r.bottom)};s=0!==i.x?0<i.x?i.x+4:i.x-4:0;h=0!==i.y?0<i.y?i.y+4:i.y-4:0;(o=n).inline?(o.getBody().scrollLeft+=s,o.getBody().scrollTop+=h):o.getWin().scrollBy(s,h)})},nht=function(n,t,i){var u=n.getParam(t,i),r;return-1!==u.indexOf("=")?(r=n.getParam(t,"","hash"),r.hasOwnProperty(n.id)?r[n.id]:i):u},yui=function(n){return n.getParam("iframe_attrs",{})},pui=function(n){return n.getParam("doctype","<!DOCTYPE html>")},wui=function(n){return n.getParam("document_base_url","")},bui=function(n){return nht(n,"body_id","tinymce")},kui=function(n){return nht(n,"body_class","")},tht=function(n){return n.getParam("content_security_policy","")},dui=function(n){return n.getParam("br_in_pre",!0)},df=function(n){if(n.getParam("force_p_newlines",!1))return"p";var t=n.getParam("forced_root_block","p");return!1===t?"":t},iht=function(n){return n.getParam("forced_root_block_attrs",{})},gui=function(n){return n.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},nfi=function(n){return n.getParam("no_newline_selector","")},tfi=function(n){return n.getParam("keep_styles",!0)},ifi=function(n){return n.getParam("end_container_on_empty_block",!1)},rfi=function(n){return t.explode(n.getParam("font_size_style_values",""))},ufi=function(n){return t.explode(n.getParam("font_size_classes",""))},kk=ou.detect().browser,rht=function(){return kk.isIE()||kk.isEdge()||kk.isFirefox()},eh=function(n,t){n.selection.setRng(t);vui(n,t)},uht=function(n,t,i){var r=n(t,i);return r.breakType===pr.Wrap&&0===r.positions.length?r.breakAt.map(function(i){return n(t,i).breakAt.isNone()}).getOr(!0):r.breakAt.isNone()},ffi=ht.curry(uht,wk),efi=ht.curry(uht,bk),ofi=function(n,t,i){var r,f,e,o,h=n.selection.getRng(),l=t?1:-1,s;return rht()&&(r=t,f=h,e=i,o=u.fromRangeStart(f),c.positionIn(!r,e).map(function(n){return n.isEqual(o)}).getOr(!1))?(s=wu(l,n,i,!t,!0),eh(n,s),!0):!1},sfi=function(t,r){var u=r.getNode(t);return i.isElement(u)&&"TABLE"===u.nodeName?n.some(u):n.none()},fht=function(n,t,i){var u=sfi(!!t,i),f=!1===t;u.fold(function(){return eh(n,i.toRange())},function(u){return c.positionIn(f,n.getBody()).filter(function(n){return n.isEqual(i)}).fold(function(){return eh(n,i.toRange())},function(){return o=t,e=u,s=i,void((h=df(f=n))?f.undoManager.transact(function(){var n=r.fromTag(h),t;it.setAll(n,iht(f));rt.append(n,r.fromTag("br"));o?rt.after(r.fromDom(e),n):rt.before(r.fromDom(e),n);t=f.dom.createRng();t.setStart(n.dom(),0);t.setEnd(n.dom(),0);eh(f,t)}):eh(f,s.toRange()));var o,f,e,s,h})})},hfi=function(n,t,i,r){var h,o,c,l,s,a,y=n.selection.getRng(),f=u.fromRangeStart(y),v=n.getBody(),e;return!t&&ffi(r,f)?(e=(l=v,cui(s=i,a=f).orThunk(function(){return rr(a.getClientRects()).bind(function(n){return pk(eui(l,u.before(s)),n.left)})}).getOr(u.before(s))),fht(n,t,e),!0):!(!t||!efi(r,f))&&(h=v,e=lui(o=i,c=f).orThunk(function(){return rr(c.getClientRects()).bind(function(n){return pk(oui(h,u.after(o)),n.left)})}).getOr(u.after(o)),fht(n,t,e),!0)},eht=function(t,i){return function(){return n.from(t.dom.getParent(t.selection.getNode(),"td,th")).bind(function(r){return n.from(t.dom.getParent(r,"table")).map(function(n){return ofi(t,i,n)})}).getOr(!1)}},oht=function(t,i){return function(){return n.from(t.dom.getParent(t.selection.getNode(),"td,th")).bind(function(r){return n.from(t.dom.getParent(r,"table")).map(function(n){return hfi(t,i,n,r)})}).getOr(!1)}},sht=i.isContentEditableFalse,hht=function(n,t,i){var o,u,f,e,s,r=iot(t.getBoundingClientRect(),i);return"BODY"===n.tagName?(o=n.ownerDocument.documentElement,u=n.scrollLeft||o.scrollLeft,f=n.scrollTop||o.scrollTop):(s=n.getBoundingClientRect(),u=n.scrollLeft-s.left,f=n.scrollTop-s.top),r.left+=u,r.right+=u,r.top+=f,r.bottom+=f,r.width=1,0<(e=t.offsetWidth-t.clientWidth)&&(i&&(e*=-1),r.left+=e,r.right+=e),r},cfi=function(t,r,u){var s,f,o=au(n.none()),h=function(){!function(n){for(var f,t,u,r=e("*[contentEditable=false]",n),i=0;i<r.length;i++)t=(f=r[i]).previousSibling,aa(t)&&(1===(u=t.data).length?t.parentNode.removeChild(t):t.deleteData(u.length-1,1)),t=f.nextSibling,la(t)&&(1===(u=t.data).length?t.parentNode.removeChild(t):t.deleteData(0,1))}(t);f&&(co.remove(f),f=null);o.get().each(function(t){e(t.caret).remove();o.set(n.none())});clearInterval(s)},c=function(){s=gt.setInterval(function(){u()?e("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):e("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")},500)};return{show:function(u,s){var a,l,v,y;return(h(),v=s,i.isElement(v)&&/^(TD|TH)$/i.test(v.tagName))?null:r(s)?(f=cri("p",s,u),a=hht(t,s,u),e(f).css("top",a.top),y=e('<div class="mce-visual-caret" data-mce-bogus="all"><\/div>').css(a).appendTo(t)[0],o.set(n.some({caret:y,element:s,before:u})),o.get().each(function(n){u&&e(n.caret).addClass("mce-visual-caret-before")}),c(),(l=s.ownerDocument.createRange()).setStart(f,0),l.setEnd(f,0),l):(f=function(n,t){var i,r,u;if(r=n.ownerDocument.createTextNode(yt),u=n.parentNode,t){if(i=n.previousSibling,io(i)){if(oi(i))return i;if(aa(i))return i.splitText(i.data.length-1)}u.insertBefore(r,n)}else{if(i=n.nextSibling,io(i)){if(oi(i))return i;if(la(i))return i.splitText(1),i}n.nextSibling?u.insertBefore(r,n.nextSibling):u.appendChild(r)}return r}(s,u),l=s.ownerDocument.createRange(),sht(f.nextSibling)?(l.setStart(f,0),l.setEnd(f,0)):(l.setStart(f,1),l.setEnd(f,1)),l)},hide:h,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:function(){o.get().each(function(n){var i=hht(t,n.element,n.before);e(n.caret).css(i)})},destroy:function(){return gt.clearInterval(s)}}},br=function(n){return sht(n)||i.isTable(n)&&rht()},oh=i.isContentEditableFalse,lfi=i.matchStyleValues("display","block table table-cell table-caption list-item"),cht=oi,dk=ro,ku=ht.curry,lht=i.isElement,afi=sr,lo=function(n){return 0<n},gf=function(n){return n<0},tv=function(n,t){for(var i;i=n(t);)if(!dk(i))return i;return null},ao=function(n,t,i,r,u){var f=new st(n,r);if(gf(t)){if((oh(n)||dk(n))&&i(n=tv(f.prev,!0)))return n;for(;n=tv(f.prev,u);)if(i(n))return n}if(lo(t)){if((oh(n)||dk(n))&&i(n=tv(f.next,!0)))return n;for(;n=tv(f.next,u);)if(i(n))return n}return null},du=function(n,t){for(;n&&n!==t;){if(lfi(n))return n;n=n.parentNode}return null},gu=function(n,t,i){return du(n.container(),i)===du(t.container(),i)},gk=function(n,t){var i,r;return t?(i=t.container(),r=t.offset(),lht(i)?i.childNodes[r+n]:null):null},aht=function(n,t){var i=t.ownerDocument.createRange();return n?(i.setStartBefore(t),i.setEndBefore(t)):(i.setStartAfter(t),i.setEndAfter(t)),i},vht=function(n,t,i){for(var r,f,e,u=n?"previousSibling":"nextSibling";i&&i!==t;){if(r=i[u],cht(r)&&(r=r[u]),oh(r)){if(e=i,du(r,f=t)===du(e,f))return r;break}if(afi(r))break;i=i.parentNode}return null},sh=ku(aht,!0),hh=ku(aht,!1),iv=function(n,t,r){var u,f,e,h,o=ku(vht,!0,t),s=ku(vht,!1,t);if(f=r.startContainer,e=r.startOffset,ro(f)){if(lht(f)||(f=f.parentNode),"before"===(h=f.getAttribute("data-mce-caret"))&&(u=f.nextSibling,br(u)))return sh(u);if("after"===h&&(u=f.previousSibling,br(u)))return hh(u)}if(!r.collapsed)return r;if(i.isText(f)){if(cht(f)){if(1===n){if(u=s(f))return sh(u);if(u=o(f))return hh(u)}if(-1===n){if(u=o(f))return hh(u);if(u=s(f))return sh(u)}return r}if(aa(f)&&e>=f.data.length-1)return 1===n&&(u=s(f))?sh(u):r;if(la(f)&&e<=1)return-1===n&&(u=o(f))?hh(u):r;if(e===f.data.length)return(u=s(f))?sh(u):r;if(0===e)return(u=o(f))?hh(u):r}return r},yht=function(n,t){var r=gk(n,t);return oh(r)&&!i.isBogusAll(r)},pht=function(n,t){return i.isTable(gk(n,t))},wht=function(t,i){return n.from(gk(t?0:-1,i)).filter(oh)},bht=function(n,t,i){var r=iv(n,t,i);return-1===n?et.fromRangeStart(r):et.fromRangeEnd(r)},rv=ku(yht,0),uv=ku(yht,-1),vfi=ku(pht,0),yfi=ku(pht,-1),kht=function(n){return u.isTextPosition(n)?0===n.offset():sr(n.getNode())},dht=function(n){if(u.isTextPosition(n)){var t=n.container();return n.offset()===t.data.length}return sr(n.getNode(!0))},ght=function(n,t){return!u.isTextPosition(n)&&!u.isTextPosition(t)&&n.getNode()===t.getNode(!0)},pfi=function(n,t,r){return n?!ght(t,r)&&(f=t,!(!u.isTextPosition(f)&&i.isBr(f.getNode())))&&dht(t)&&kht(r):!ght(r,t)&&kht(t)&&dht(r);var f},vo=function(t,i,r){var u=hr(i);return n.from(t?u.next(r):u.prev(r))},nd=function(t,r){var s,h,o,c,e,f=t?r.firstChild:r.lastChild;return i.isText(f)?n.some(u(f,t?0:f.data.length)):f?sr(f)?n.some(t?u.before(f):(e=f,i.isBr(e)?u.before(e):u.after(e))):(h=r,o=f,c=(s=t)?u.before(o):u.after(o),vo(s,h,c)):n.none()},c={fromPosition:vo,nextPosition:f(vo,!0),prevPosition:f(vo,!1),navigate:function(t,i,r){return vo(t,i,r).bind(function(u){return gu(r,u,i)&&pfi(t,r,u)?vo(t,i,u):n.some(u)})},positionIn:nd,firstPositionIn:f(nd,!0),lastPositionIn:f(nd,!1)},nct=function(n,t){return!n.isBlock(t)||t.innerHTML||s.ie||(t.innerHTML='<br data-mce-bogus="1" />'),t},wfi=function(n,t){return c.lastPositionIn(n).fold(function(){return!1},function(n){return t.setStart(n.container(),n.offset()),t.setEnd(n.container(),n.offset()),!0})},tct=function(n,t,i){return!(!1!==t.hasChildNodes()||!kf(n,t)||(u=i,r=(f=t).ownerDocument.createTextNode(yt),f.appendChild(r),u.setStart(r,0),u.setEnd(r,0),0));var f,u,r},ict=function(n,t,i,r){var e,u,o,s,f=i[t?"start":"end"],h=n.getRoot();if(f){for(o=f[0],u=h,e=f.length-1;1<=e;e--){if(s=u.childNodes,tct(h,u,r))return!0;if(f[e]>s.length-1)return!!tct(h,u,r)||wfi(u,r);u=s[f[e]]}3===u.nodeType&&(o=Math.min(f[0],u.nodeValue.length));1===u.nodeType&&(o=Math.min(f[0],u.childNodes.length));t?r.setStart(u,o):r.setEnd(u,o)}return!0},td=function(n){return i.isText(n)&&0<n.data.length},rct=function(r,f,e){var c,h,a,l,v,y,o=r.get(e.id+"_"+f),p=e.keep;if(o){if(c=o.parentNode,"start"===f?p?o.hasChildNodes()?(c=o.firstChild,h=1):td(o.nextSibling)?(c=o.nextSibling,h=0):td(o.previousSibling)?(c=o.previousSibling,h=o.previousSibling.data.length):(c=o.parentNode,h=r.nodeIndex(o)+1):h=r.nodeIndex(o):p?o.hasChildNodes()?(c=o.firstChild,h=1):td(o.previousSibling)?(c=o.previousSibling,h=o.previousSibling.data.length):(c=o.parentNode,h=r.nodeIndex(o)):h=r.nodeIndex(o),v=c,y=h,!p){for(l=o.previousSibling,a=o.nextSibling,t.each(t.grep(o.childNodes),function(n){i.isText(n)&&(n.nodeValue=n.nodeValue.replace(/\uFEFF/g,""))});o=r.get(e.id+"_"+f);)r.remove(o,!0);l&&a&&l.nodeType===a.nodeType&&i.isText(l)&&!s.opera&&(h=l.nodeValue.length,l.appendData(a.nodeValue),r.remove(a),v=l,y=h)}return n.some(u(v,y))}return n.none()},bfi=function(i,r){var h,c,f,b,l,k,a,d,v,y,e,u,p,w,o,g,s=i.dom;if(r){if(g=r,t.isArray(g.start))return w=r,o=(p=s).createRng(),ict(p,!0,w,o)&&ict(p,!1,w,o)?n.some(o):n.none();if("string"==typeof r.start)return n.some((y=r,e=(v=s).createRng(),u=wot(v.getRoot(),y.start),e.setStart(u.container(),u.offset()),u=wot(v.getRoot(),y.end),e.setEnd(u.container(),u.offset()),e));if(r.hasOwnProperty("id"))return a=rct(f=s,"start",b=r),d=rct(f,"end",b),ti([a,(l=d,k=a,l.isSome()?l:k)],function(n,t){var i=f.createRng();return i.setStart(nct(f,n.container()),n.offset()),i.setEnd(nct(f,t.container()),t.offset()),i});if(r.hasOwnProperty("name"))return h=s,c=r,n.from(h.select(c.name)[c.index]).map(function(n){var t=h.createRng();return t.selectNode(n),t});if(r.hasOwnProperty("rng"))return n.some(r.rng)}return n.none()},kfi=function(n,t,i){return ho.getBookmark(n,t,i)},dfi=function(n,t){bfi(n,t).each(function(t){n.setRng(t)})},tr=function(n){return i.isElement(n)&&"SPAN"===n.tagName&&"bookmark"===n.getAttribute("data-mce-type")},uct=function(n){return n&&/^(IMG)$/.test(n.nodeName)},id=function(n){return n&&3===n.nodeType&&/^([\t \r\n]+|)$/.test(n.nodeValue)},fct=function(n,t,i){return"color"!==i&&"backgroundColor"!==i||(t=n.toHex(t)),"fontWeight"===i&&700===t&&(t="bold"),"fontFamily"===i&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},a={isInlineBlock:uct,moveStart:function(n,t,i){var f,r,e,o=i.startOffset,u=i.startContainer;if((i.startContainer!==i.endContainer||!uct(i.startContainer.childNodes[i.startOffset]))&&1===u.nodeType)for(o<(e=u.childNodes).length?f=new st(u=e[o],n.getParent(u,n.isBlock)):(f=new st(u=e[e.length-1],n.getParent(u,n.isBlock))).next(!0),r=f.current();r;r=f.next())if(3===r.nodeType&&!id(r))return i.setStart(r,0),void t.setRng(i)},getNonWhiteSpaceSibling:function(n,t,i){if(n)for(t=t?"nextSibling":"previousSibling",n=i?n:n[t];n;n=n[t])if(1===n.nodeType||!id(n))return n},isTextBlock:function(n,t){return t.nodeType&&(t=t.nodeName),!!n.schema.getTextBlockElements()[t.toLowerCase()]},isValid:function(n,t,i){return n.schema.isValidChild(t,i)},isWhiteSpaceNode:id,replaceVars:function(n,t){return"string"!=typeof n?n=n(t):t&&(n=n.replace(/%(\w+)/g,function(n,i){return t[i]||n})),n},isEq:function(n,t){return t=t||"",n=""+((n=n||"").nodeName||n),t=""+(t.nodeName||t),n.toLowerCase()===t.toLowerCase()},normalizeStyleValue:fct,getStyle:function(n,t,i){return fct(n,n.getStyle(t,i),i)},getTextDecoration:function(n,t){var i;return n.getParent(t,function(t){return(i=n.getStyle(t,"text-decoration"))&&"none"!==i}),i},getParents:function(n,t,i){return n.getParents(t,i,n.getRoot())}},ne=tr,ect=a.getParents,oct=a.isWhiteSpaceNode,gfi=a.isTextBlock,sct=function(n,t){for(void 0===t&&(t=3===n.nodeType?n.length:n.childNodes.length);n&&n.hasChildNodes();)(n=n.childNodes[t])&&(t=3===n.nodeType?n.length:n.childNodes.length);return{node:n,offset:t}},hct=function(n,t){for(var i=t;i;){if(1===i.nodeType&&n.getContentEditable(i))return"false"===n.getContentEditable(i)?i:t;i=i.parentNode}return t},cct=function(n,t,i,r){var u,f,e=i.nodeValue;return void 0===r&&(r=n?e.length:0),n?(u=e.lastIndexOf(" ",r),-1===(u=(f=e.lastIndexOf(" ",r))<u?u:f)||t||u++):(u=e.indexOf(" ",r),f=e.indexOf(" ",r),u=-1!==u&&(-1===f||u<f)?u:f),u},lct=function(n,t,i,r,u,f){var h,e,s,o;if(3===i.nodeType){if(-1!==(s=cct(u,f,i,r)))return{container:i,offset:s};o=i}for(h=new st(i,n.getParent(i,n.isBlock)||t);e=h[u?"prev":"next"]();)if(3===e.nodeType){if(-1!==(s=cct(u,f,o=e)))return{container:e,offset:s}}else if(n.isBlock(e))break;if(o)return{container:o,offset:r=u?0:o.length}},act=function(n,t,i,r,u){var e,f,o,s;for(3===r.nodeType&&0===r.nodeValue.length&&r[u]&&(r=r[u]),e=ect(n,r),f=0;f<e.length;f++)for(o=0;o<t.length;o++)if(!("collapsed"in(s=t[o])&&s.collapsed!==i.collapsed)&&n.is(e[f],s.selector))return e[f];return r},vct=function(n,t,i,r){var u,f=n.dom,e=f.getRoot(),o;if((t[0].wrapper||(u=f.getParent(i,t[0].block,e)),u)||(o=f.getParent(i,"LI,TD,TH"),u=f.getParent(3===i.nodeType?i.parentNode:i,function(t){return t!==e&&gfi(n,t)},o)),u&&t[0].wrapper&&(u=ect(f,u,"ul,ol").reverse()[0]||u),!u)for(u=i;u[r]&&!f.isBlock(u[r])&&(u=u[r],!a.isEq(u,"br")););return u||i},fv=function(n,t,i,r,u,f,e){var s,o,h,c,l,a;if(s=o=e?i:u,c=e?"previousSibling":"nextSibling",l=n.getRoot(),3===s.nodeType&&!oct(s)&&(e?0<r:f<s.nodeValue.length))return s;for(;;){if(!t[0].block_expand&&n.isBlock(o))return o;for(h=o[c];h;h=h[c])if(!ne(h)&&!oct(h)&&("BR"!==(a=h).nodeName||!a.getAttribute("data-mce-bogus")||a.nextSibling))return o;if(o===l||o.parentNode===l){s=o;break}o=o.parentNode}return s},yo=function(n,t,i,r){var h,f=t.startContainer,s=t.startOffset,u=t.endContainer,e=t.endOffset,o=n.dom;return 1===f.nodeType&&f.hasChildNodes()&&3===(f=so(f,s)).nodeType&&(s=0),1===u.nodeType&&u.hasChildNodes()&&3===(u=so(u,t.collapsed?e:e-1)).nodeType&&(e=u.nodeValue.length),f=hct(o,f),u=hct(o,u),(ne(f.parentNode)||ne(f))&&3===(f=(f=ne(f)?f:f.parentNode).nextSibling||f).nodeType&&(s=0),(ne(u.parentNode)||ne(u))&&3===(u=(u=ne(u)?u:u.parentNode).previousSibling||u).nodeType&&(e=u.length),i[0].inline&&(t.collapsed&&((h=lct(o,n.getBody(),f,s,!0,r))&&(f=h.container,s=h.offset),(h=lct(o,n.getBody(),u,e,!1,r))&&(u=h.container,e=h.offset)),u=r?u:function(n,t){var i=sct(n,t);if(i.node){for(;i.node&&0===i.offset&&i.node.previousSibling;)i=sct(i.node.previousSibling);i.node&&0<i.offset&&3===i.node.nodeType&&" "===i.node.nodeValue.charAt(i.offset-1)&&1<i.offset&&(n=i.node).splitText(i.offset-1)}return n}(u,e)),(i[0].inline||i[0].block_expand)&&(i[0].inline&&3===f.nodeType&&0!==s||(f=fv(o,i,f,s,u,e,!0)),i[0].inline&&3===u.nodeType&&e!==u.nodeValue.length||(u=fv(o,i,f,s,u,e,!1))),i[0].selector&&!1!==i[0].expand&&!i[0].inline&&(f=act(o,i,t,f,"previousSibling"),u=act(o,i,t,u,"nextSibling")),(i[0].block||i[0].selector)&&(f=vct(n,i,f,"previousSibling"),u=vct(n,i,u,"nextSibling"),i[0].block&&(o.isBlock(f)||(f=fv(o,i,f,s,u,e,!0)),o.isBlock(u)||(u=fv(o,i,f,s,u,e,!1)))),1===f.nodeType&&(s=o.nodeIndex(f),f=f.parentNode),1===u.nodeType&&(e=o.nodeIndex(u)+1,u=u.parentNode),{startContainer:f,startOffset:s,endContainer:u,endOffset:e}},nei=t.each,ev=function(n,t,i){var e,s,h,r,v,c,p,u=t.startContainer,w=t.startOffset,f=t.endContainer,b=t.endOffset;if(0<(p=n.select("td[data-mce-selected],th[data-mce-selected]")).length)nei(p,function(n){i([n])});else{var k,o,l,y=function(n){var t;return 3===(t=n[0]).nodeType&&t===u&&w>=t.nodeValue.length&&n.splice(0,1),t=n[n.length-1],0===b&&0<n.length&&t===f&&3===t.nodeType&&n.splice(n.length-1,1),n},d=function(n,t,i){for(var r=[];n&&n!==i;n=n[t])r.push(n);return r},g=function(n,t){do{if(n.parentNode===t)return n;n=n.parentNode}while(n)},a=function(n,t,u){var f=u?"nextSibling":"previousSibling";for(v=(r=n).parentNode;r&&r!==t;r=v)v=r.parentNode,(c=d(r===n?r:r[f],f)).length&&(u||c.reverse(),i(y(c)))};if(1===u.nodeType&&u.hasChildNodes()&&(u=u.childNodes[w]),1===f.nodeType&&f.hasChildNodes()&&(o=b,l=(k=f).childNodes,--o>l.length-1?o=l.length-1:o<0&&(o=0),f=l[o]||k),u===f)return i(y([u]));for(e=n.findCommonAncestor(u,f),r=u;r;r=r.parentNode){if(r===f)return a(u,e,!0);if(r===e)break}for(r=f;r;r=r.parentNode){if(r===u)return a(f,e);if(r===e)break}s=g(u,e)||u;h=g(f,e)||f;a(u,s,!0);(c=d(s===u?s:s.nextSibling,"nextSibling",h===f?h.nextSibling:h)).length&&i(y(c));a(f,h)}},tei=(ga=d.isText,fh="text",vk=function(t){return ga(t)?n.from(t.dom().nodeValue):n.none()},yk=ou.detect().browser,{get:function(n){if(!ga(n))throw new Error("Can only get "+fh+" value of a "+fh+" node");return pst(n).getOr("")},getOption:pst=yk.isIE()&&10===yk.version.major?function(t){try{return vk(t)}catch(i){return n.none()}}:vk,set:function(n,t){if(!ga(n))throw new Error("Can only set raw "+fh+" value of a "+fh+" node");n.dom().nodeValue=t}}),yct=function(n){return tei.get(n)},iei=function(n,t,i,r){return v.parent(t).fold(function(){return"skipping"},function(u){return"br"===r||(e=t,d.isText(e)&&"﻿"===yct(e))?"skipping":(f=t,d.isElement(f)&&no.has(f,wb())?"existing":pu(t)?"caret":a.isValid(n,i,r)&&a.isValid(n,d.name(u),i)?"valid":"invalid-child");var f,e})},rei=undefined&&undefined.__rest||function(n,t){var u={},i,r;for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(u[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)t.indexOf(i[r])<0&&(u[i[r]]=n[i[r]]);return u},uei=function(t,i,u,f,e){var c,a,y=e.uid,p=void 0===y?(c="mce-annotation",a=(new Date).getTime(),c+"_"+Math.floor(1e9*Math.random())+ ++fri+String(a)):y,tt=rei(e,["uid"]),w=[],o=r.fromTag("span");no.add(o,wb());it.set(o,""+ha(),p);it.set(o,""+th(),u);var b=f(p,tt),k=b.attributes,ut=void 0===k?{}:k,g=b.classes,ft=void 0===g?[]:g;it.setAll(o,ut);eri(o,ft);var s=au(n.none()),h=function(){s.set(n.none())},nt=function(n){l(n,et)},et=function(i){var r,u;switch(iei(t,i,"span",d.name(i))){case"invalid-child":h();r=v.children(i);nt(r);h();break;case"valid":u=s.get().getOrThunk(function(){var t=to(o);return w.push(t),s.set(n.some(t)),t});rt.wrap(i,u)}};return ev(t.dom,i,function(n){var t;h();t=dt(n,r.fromDom);nt(t)}),w},fei=function(n,t,i,r){n.undoManager.transact(function(){var e,f,u,o=n.selection.getRng(),s,h;o.collapsed&&(u=yo(e=n,f=o,[{inline:!0}],!1),f.setStart(u.startContainer,u.startOffset),f.setEnd(u.endContainer,u.endOffset),e.selection.setRng(f));s=ho.getPersistentBookmark(n.selection,!0);h=n.selection.getRng();uei(n,h,t,i.decorate,r);n.selection.moveToBookmark(s)})};var eei=function(n){return t.grep(n.childNodes,function(n){return"LI"===n.nodeName})},oei=function(n){return n&&n.firstChild&&n.firstChild===n.lastChild&&(" "===(t=n.firstChild).data||i.isBr(t));var t},sei=function(n){return 0<n.length&&(!(t=n[n.length-1]).firstChild||oei(t))?n.slice(0,-1):n;var t},rd=function(n,t){var i=n.getParent(t,n.isBlock);return i&&"LI"===i.nodeName?i:null},wct=function(n,t){var r=u.after(n),i=hr(t).prev(r);return i?i.toRange():null},hei=function(n,i,r){var f,e,o,s,h=n.parentNode;return t.each(i,function(t){h.insertBefore(t,n)}),f=n,e=r,o=u.before(f),(s=hr(e).next(o))?s.toRange():null},cei=function(n,t){var o,u,f,s,e,h,i=t.firstChild,r=t.lastChild;return i&&"meta"===i.name&&(i=i.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),u=r,h=(o=n).getNonEmptyElements(),u&&(u.isEmpty(h)||(f=u,o.getBlockElements()[f.name]&&(e=f).firstChild&&e.firstChild===e.lastChild&&("br"===(s=f.firstChild).name||" "===s.value)))&&(r=r.prev),!(!i||i!==r||"ul"!==i.name&&"ol"!==i.name)},lei=function(n,i,r,f){var g,nt,a,o,s,tt,it,rt,v,ut,e,h,ft,y,et,p,w,b,c,st=(g=i,nt=f,tt=n.serialize(nt),it=g.createFragment(tt),o=(a=it).firstChild,s=a.lastChild,o&&"META"===o.nodeName&&o.parentNode.removeChild(o),s&&"mce_marker"===s.id&&s.parentNode.removeChild(s),a),l=rd(i,r.startContainer),k=sei(eei(st.firstChild)),d=i.getRoot(),ot=function(n){var t=u.fromRangeStart(r),f=hr(i.getRoot()),e=1===n?f.prev(t):f.next(t);return!e||rd(i,e.getNode())!==l};return ot(1)?hei(l,k,d):ot(2)?(rt=l,v=k,ut=d,i.insertAfter(v.reverse(),rt),wct(v[0],ut)):(h=k,ft=d,y=e=l,p=(et=r).cloneRange(),w=et.cloneRange(),p.setStartBefore(y),w.setEndAfter(y),b=[p.cloneContents(),w.cloneContents()],(c=e.parentNode).insertBefore(b[0],e),t.each(h,function(n){c.insertBefore(n,e)}),c.insertBefore(b[1],e),c.removeChild(e),wct(h[h.length-1],ft))},aei=function(n,t){return!!rd(n,t)},vei=t.each,bct=function(n){this.compare=function(t,i){if(t.nodeName!==i.nodeName)return!1;var r=function(t){var i={};return vei(n.getAttribs(t),function(r){var u=r.nodeName.toLowerCase();0!==u.indexOf("_")&&"style"!==u&&0!==u.indexOf("data-")&&(i[u]=n.getAttrib(t,u))}),i},u=function(n,t){var r,i;for(i in n)if(n.hasOwnProperty(i)){if(void 0===(r=t[i])||n[i]!==r)return!1;delete t[i]}for(i in t)if(t.hasOwnProperty(i))return!1;return!0};return!(!u(r(t),r(i))||!u(n.parseStyle(n.getAttrib(t,"style")),n.parseStyle(n.getAttrib(i,"style")))||tr(t)||tr(i))}},yei=function(n){var i=gi(n,"br"),t=vt(function(n){for(var i=[],t=n.dom();t;)i.push(r.fromDom(t)),t=t.lastChild;return i}(n).slice(-1),hft);i.length===t.length&&l(t,ft.remove)},ov=function(n){ft.empty(n);rt.append(n,r.fromHtml('<br data-mce-bogus="1">'))},pei=function(n){v.lastChild(n).each(function(t){v.prevSibling(t).each(function(i){ds(n)&&hft(t)&&ds(i)&&ft.remove(t)})})},kct=t.makeMap;var wei=function(n){var t=u.fromRangeStart(n),r=u.fromRangeEnd(n),i=n.commonAncestorContainer;return c.fromPosition(!1,i,r).map(function(u){return!gu(t,r,i)&&gu(t,u,i)?(e=t.container(),o=t.offset(),s=u.container(),h=u.offset(),(f=document.createRange()).setStart(e,o),f.setEnd(s,h),f):n;var e,o,s,h,f}).getOr(n)},ud=function(n){return n.collapsed?n:wei(n)},bei=i.matchNodeNames("td th"),kei=function(i,f,e){var nt,k,l,v,y,p,ut,c,o,d,tt,ft,lt=i.schema.getTextInlineElements(),a=i.selection,h=i.dom,et,it,b,g,ot,w,st,ht,ct,rt;if(/^ | $/.test(f)&&(f=function(n){var i,t,r,u;return i=a.getRng(),t=i.startContainer,r=i.startOffset,u=function(n){return t[n]&&3===t[n].nodeType},3===t.nodeType&&(0<r?n=n.replace(/^&nbsp;/," "):u("previousSibling")||(n=n.replace(/^ /,"&nbsp;")),r<t.length?n=n.replace(/&nbsp;(<br>|)$/," "):u("nextSibling")||(n=n.replace(/(&nbsp;| )(<br>|)$/,"&nbsp;"))),n}(f)),nt=i.parser,ft=e.merge,k=ch({validate:i.settings.validate},i.schema),tt='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;&#x200B;<\/span>',p={content:f,format:"html",selection:!0,paste:e.paste},(p=i.fire("BeforeSetContent",p)).isDefaultPrevented())i.fire("SetContent",{content:p.content,format:"html",selection:!0,paste:e.paste});else{if(-1===(f=p.content).indexOf("{$caret}")&&(f+="{$caret}"),f=f.replace(/\{\$caret\}/,tt),ot=(c=a.getRng()).startContainer||(c.parentElement?c.parentElement():null),w=i.getBody(),ot===w&&a.isCollapsed()&&h.isBlock(w.firstChild)&&(et=w.firstChild)&&!i.schema.getShortEndedElements()[et.nodeName]&&h.isEmpty(w.firstChild)&&((c=h.createRng()).setStart(w.firstChild,0),c.setEnd(w.firstChild,0),a.setRng(c)),a.isCollapsed()||(i.selection.setRng(ud(i.selection.getRng())),i.getDoc().execCommand("Delete",!1,null),b=(it=a.getRng()).startContainer,g=it.startOffset,3===b.nodeType&&it.collapsed&&(" "===b.data[g]?(b.deleteData(g,1),/[\u00a0| ]$/.test(f)||(f+=" ")):" "===b.data[g-1]&&(b.deleteData(g-1,1),/[\u00a0| ]$/.test(f)||(f=" "+f)))),rt={context:(l=a.getNode()).nodeName.toLowerCase(),data:e.data,insert:!0},y=nt.parse(f,rt),!0===e.paste&&cei(i.schema,y)&&aei(h,l))return c=lei(k,h,i.selection.getRng(),y),i.selection.setRng(c),void i.fire("SetContent",p);if(function(n){for(var t=n;t=t.walk();)1===t.type&&t.attr("data-mce-fragment","1")}(y),"mce_marker"===(o=y.lastChild).attr("id"))for(o=(ut=o).prev;o;o=o.walk(!0))if(3===o.type||!h.isBlock(o.name)){i.schema.isValidChild(o.parent.name,"span")&&o.parent.insert(ut,o,"br"===o.name);break}if(i._selectionOverrides.showBlockCaretContainer(l),rt.invalid){for(a.setContent(tt),l=a.getNode(),v=i.getBody(),9===l.nodeType?l=o=v:o=l;o!==v;)o=(l=o).parentNode;f=l===v?v.innerHTML:h.getOuterHTML(l);f=k.serialize(nt.parse(f.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return k.serialize(y)})));l===v?h.setHTML(v,f):h.setOuterHTML(l,f)}else f=k.serialize(y),function(n,t,i){if("all"===i.getAttribute("data-mce-bogus"))i.parentNode.insertBefore(n.dom.createFragment(t),i);else{var r=i.firstChild,u=i.lastChild;!r||r===u&&"BR"===r.nodeName?n.dom.setHTML(i,t):n.selection.setContent(t)}}(i,f,l);!function(){if(ft){var n=i.getBody(),r=new bct(h);t.each(h.select("*[data-mce-fragment]"),function(t){for(var i=t.parentNode;i&&i!==n;i=i.parentNode)lt[t.nodeName.toLowerCase()]&&r.compare(i,t)&&h.remove(t,!0)})}}(),function(n){var r,t,f;if(n){if(a.scrollIntoView(n),r=function(n){for(var t=i.getBody();n&&n!==t;n=n.parentNode)if("false"===i.dom.getContentEditable(n))return n;return null}(n))return h.remove(n),a.select(r);c=h.createRng();(o=n.previousSibling)&&3===o.nodeType?(c.setStart(o,o.nodeValue.length),s.ie||(d=n.nextSibling)&&3===d.nodeType&&(o.appendData(d.data),d.parentNode.removeChild(d))):(c.setStartBefore(n),c.setEndBefore(n));t=h.getParent(n,h.isBlock);h.remove(n);t&&h.isEmpty(t)&&(i.$(t).empty(),c.setStart(t,0),c.setEnd(t,0),bei(t)||t.getAttribute("data-mce-fragment")||!(f=function(n){var t=u.fromRangeStart(n);if(t=hr(i.getBody()).next(t))return t.toRange()}(c))?h.add(t,h.create("br",{"data-mce-bogus":"1"})):(c=f,h.remove(t)));a.setRng(c)}}(h.get("mce_marker"));st=i.getBody();t.each(st.getElementsByTagName("*"),function(n){n.removeAttribute("data-mce-fragment")});ht=i.dom;ct=i.selection.getStart();n.from(ht.getParent(ct,"td,th")).map(r.fromDom).each(pei);i.fire("SetContent",p);i.addVisual()}},dei=function(n,i){var r,u,f="string"!=typeof(r=i)?(u=t.extend({paste:r.paste,data:{paste:r.paste}},r),{content:r.content,details:u}):{content:r,details:{}};kei(n,f.content,f.details)},gei=or("sections","settings"),noi=ou.detect().deviceType.isTouch(),toi=["lists","autolink","autosave"],ioi={theme:"mobile"},sv=function(n){var t=hs(n)?n.join(" "):n,i=dt(vi(t)?t.split(" "):[],pnt);return vt(i,function(n){return 0<n.length})},roi=function(n,t){var u,i,r,f=(u=function(t,i){return cs(n,i)},i={},r={},pl(t,function(n,t){(u(n,t)?i:r)[t]=n}),{t:i,f:r});return gei(f.t,f.f)},gct=function(n,t){return n.sections().hasOwnProperty(t)},uoi=function(n,i,r,u){var e,s=sv(r.forced_plugins),o=sv(u.plugins),h=n&&gct(i,"mobile")?vt(o,f(cs,toi)):o,c=(e=h,[].concat(sv(s)).concat(sv(e)));return t.extend(u,{plugins:c.join(" ")})},foi=function(n,i,r,u){var e,o,s,h,l,c,a,v,y,p,f=roi(["mobile"],u),w=t.extend(i,r,f.settings(),(v=n,p=(y=f).settings().inline,v&&gct(y,"mobile")&&!p?(h="mobile",l=ioi,c=f.sections(),a=c.hasOwnProperty(h)?c[h]:{},t.extend({},l,a)):{}),{validate:!0,content_editable:f.settings().inline,external_plugins:(e=r,o=f.settings(),s=o.external_plugins?o.external_plugins:{},e&&e.external_plugins?t.extend({},e.external_plugins,s):s)});return uoi(n,f,r,w)},nf=function(t,i,r){return n.from(i.settings[r]).filter(t)},eoi=f(nf,vi),ooi=function(n,i,r,u){var o,f,e,s=i in n.settings?n.settings[i]:r;return"hash"===u?(e={},"string"==typeof(f=s)?l(0<f.indexOf("=")?f.split(/[;,](?![^=;,]*(?:[;,]|$))/):f.split(","),function(n){var i=n.split("=");e[t.trim(i[0])]=1<i.length?t.trim(i[1]):t.trim(i)}):e=f,e):"string"===u?nf(vi,n,i).getOr(r):"number"===u?nf(wp,n,i).getOr(r):"boolean"===u?nf(uit,n,i).getOr(r):"object"===u?nf(ngt,n,i).getOr(r):"array"===u?nf(hs,n,i).getOr(r):"string[]"===u?nf((o=vi,function(n){return hs(n)&&sit(n,o)}),n,i).getOr(r):"function"===u?nf(sf,n,i).getOr(r):s},soi=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,fd=function(n,t){var r=t.container(),f=t.offset();return n?ca(r)?i.isText(r.nextSibling)?u(r.nextSibling,0):u.after(r):db(t)?u(r,f+1):t:ca(r)?i.isText(r.previousSibling)?u(r.previousSibling,r.previousSibling.data.length):u.before(r):gb(t)?u(r,f-1):t},k={isInlineTarget:function(n,t){var i=eoi(n,"inline_boundaries_selector").getOr("a[href],code");return su.is(r.fromDom(t),i)},findRootInline:function(t,i,r){var u,f,e,o=(u=t,f=i,e=r,vt(g.DOM.getParents(e.container(),"*",f),u));return n.from(o[o.length-1])},isRtl:function(n){return"rtl"===g.DOM.getStyle(n,"direction",!0)||(t=n.textContent,soi.test(t));var t},isAtZwsp:function(n){return db(n)||gb(n)},normalizePosition:fd,normalizeForwards:f(fd,!0),normalizeBackwards:f(fd,!1),hasSameParentBlock:function(n,t,i){var r=du(t,n),u=du(i,n);return r&&r===u}},hv=function(t,i){return w.contains(t,i)?nh.closest(i,function(n){return cft(n)||dl(n)},(u=t,function(n){return w.eq(u,r.fromDom(n.dom().parentNode))})):n.none();var u},nlt=function(n){var i,t,r;n.dom.isEmpty(n.getBody())&&(n.setContent(""),t=(i=n).getBody(),r=t.firstChild&&i.dom.isBlock(t.firstChild)?t.firstChild:t,i.selection.setCursorLocation(r,0))},hoi=function(n,t,i){return ti([c.firstPositionIn(i),c.lastPositionIn(i)],function(r,u){var f=k.normalizePosition(!0,r),e=k.normalizePosition(!1,u),o=k.normalizePosition(!1,t);return n?c.nextPosition(i,o).map(function(n){return n.isEqual(e)&&t.isEqual(f)}).getOr(!1):c.prevPosition(i,o).map(function(n){return n.isEqual(f)&&t.isEqual(e)}).getOr(!1)}).getOr(!0)},coi=function(n,t,i){return pb(n,t,i).isSome()},loi=function(n,t){return i.isText(t)&&/^[ \t\r\n]*$/.test(t.data)&&!1===(u=n,e=t,o=r.fromDom(u),s=r.fromDom(e),coi(s,"pre,code",f(w.eq,o)));var u,e,o,s},tlt=function(n,t){return sr(t)&&!1===loi(n,t)||(r=t,i.isElement(r)&&"A"===r.nodeName&&r.hasAttribute("name"))||aoi(t);var r},aoi=i.hasAttribute("data-mce-bookmark"),voi=i.hasAttribute("data-mce-bogus"),yoi=i.hasAttributeValue("data-mce-bogus","all"),tf=function(n){return function(n){var r,t,u=0;if(tlt(n,n))return!1;if(!(t=n.firstChild))return!0;r=new st(t,n);do if(yoi(t))t=r.next(!0);else if(voi(t))t=r.next();else if(i.isBr(t))u++,t=r.next();else{if(tlt(n,t))return!1;t=r.next()}while(t);return u<=1}(n.dom())},poi=or("block","position"),woi=or("from","to"),ed=function(n,t){var i=r.fromDom(n),u=r.fromDom(t.container());return hv(i,u).map(function(n){return poi(n,t)})},boi=function(t,r,f){var e=ed(t,u.fromRangeStart(f)),o=e.bind(function(u){return c.fromPosition(r,t,u.position()).bind(function(u){return ed(t,u).map(function(u){return e=t,o=r,f=u,i.isBr(f.position().getNode())&&!1===tf(f.block())?c.positionIn(!1,f.block().dom()).bind(function(t){return t.isEqual(f.position())?c.fromPosition(o,e,t).bind(function(n){return ed(e,n)}):n.some(f)}).getOr(f):f;var e,o,f})})});return ti([e,o],woi).filter(function(n){return u=n,!1===w.eq(u.from().block(),u.to().block())&&(r=n,v.parent(r.from().block()).bind(function(n){return v.parent(r.to().block()).filter(function(t){return w.eq(n,t)})}).isSome())&&(t=n,!1===i.isContentEditableFalse(t.from().block())&&!1===i.isContentEditableFalse(t.to().block()));var t,r,u})},koi=function(t,i,r){return r.collapsed?boi(t,i,r):n.none()},doi=function(n,t,i){return w.contains(t,n)?v.parents(n,function(n){return i(n)||w.eq(n,t)}).slice(0,-1):[]},ilt=function(n,t){return doi(n,t,o(!1))},goi=ilt,lh=function(n,t){return[n].concat(ilt(n,t))},nsi=function(n){var i,t,r=(i=n,t=v.children(i),cf(t,ds).fold(function(){return t},function(n){return t.slice(0,n)}));return l(r,function(n){ft.remove(n)}),r},rlt=function(n,t){c.positionIn(n,t.dom()).each(function(n){var t=n.getNode();i.isBr(t)&&ft.remove(r.fromDom(t))})},ult=function(n,t){var i=lh(t,n);return ui(i.reverse(),tf).each(ft.remove)},tsi=function(t,i){return w.contains(i,t)?v.parent(t).bind(function(r){return w.eq(r,i)?n.some(t):(f=i,e=t,u=v.parents(e,function(n){return w.eq(n,f)}),n.from(u[u.length-2]));var f,e,u}):n.none()},flt=function(n,t,i){if(tf(i))return ft.remove(i),tf(t)&&ov(t),c.firstPositionIn(t.dom());rlt(!0,t);rlt(!1,i);var r=nsi(t);return tsi(t,i).fold(function(){ult(n,t);var u=c.lastPositionIn(i.dom());return l(r,function(n){rt.append(i,n)}),u},function(f){var e=c.prevPosition(i.dom(),u.before(f.dom()));return l(r,function(n){rt.before(f,n)}),ult(n,t),e})},elt=function(n,t,i,r){return t?flt(n,r,i):flt(n,i,r)},cv=function(n,t){var i,u=r.fromDom(n.getBody());return(i=koi(u.dom(),t,n.selection.getRng()).bind(function(n){return elt(u,t,n.from().block(),n.to().block())})).each(function(t){n.selection.setRng(t.toRange())}),i.isSome()},olt=function(n,t){var i=r.fromDom(t),u=f(w.eq,n);return nh.ancestor(i,gl,u).isSome()},isi=function(n,t){var i,r,f=c.prevPosition(n.dom(),u.fromRangeStart(t)).isNone(),e=c.nextPosition(n.dom(),u.fromRangeEnd(t)).isNone();return!(olt(i=n,(r=t).startContainer)||olt(i,r.endContainer))&&f&&e},rsi=function(n){var t,u,i,f,e=r.fromDom(n.getBody()),o=n.selection.getRng();return isi(e,o)?((f=n).setContent(""),f.selection.setCursorLocation(),!0):(t=e,u=n.selection,i=u.getRng(),ti([hv(t,r.fromDom(i.startContainer)),hv(t,r.fromDom(i.endContainer))],function(n,r){return!1===w.eq(n,r)&&(i.deleteContents(),elt(t,!0,n,r).each(function(n){u.setRng(n.toRange())}),!0)}).getOr(!1))},lv=function(n){return!n.selection.isCollapsed()&&rsi(n)},po=function(n){if(!hs(n))throw new Error("cases must be an array");if(0===n.length)throw new Error("there must be at least one case");var t=[],i={};return l(n,function(r,u){var o=yl(r),f,e;if(1!==o.length)throw new Error("one and only one name per case");if(f=o[0],e=r[f],i[f]!==undefined)throw new Error("duplicate key detected:"+f);if("cata"===f)throw new Error("cannot have a case named cata (sorry)");if(!hs(e))throw new Error("case arguments must be an array");t.push(f);i[f]=function(){var o=arguments.length,i,r;if(o!==e.length)throw new Error("Wrong number of arguments to case "+f+". Expected "+e.length+" ("+e+"), got "+o);for(i=new Array(o),r=0;r<i.length;r++)i[r]=arguments[r];return{fold:function(){if(arguments.length!==n.length)throw new Error("Wrong number of arguments to fold. Expected "+n.length+", got "+arguments.length);return arguments[u].apply(null,i)},match:function(n){var r=yl(n);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));if(!sit(t,function(n){return cs(r,n)}))throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return n[f].apply(null,i)},log:function(n){console.log(n,{constructors:t,constructor:f,params:i})}}}}),i},pi=po([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),slt=function(t,i,u,f){var e=f.getNode(!1===i);return hv(r.fromDom(t),r.fromDom(u.getNode())).map(function(n){return tf(n)?pi.remove(n.dom()):pi.moveToElement(e)}).orThunk(function(){return n.some(pi.moveToElement(e))})},hlt=function(t,u,f){return c.fromPosition(u,t,f).bind(function(e){return c=e.getNode(),gl(r.fromDom(c))||dl(r.fromDom(c))?n.none():(l=t,s=e,h=function(n){return sft(r.fromDom(n))&&!gu(v,s,l)},wht(!(a=u),v=f).fold(function(){return wht(a,s).fold(o(!1),h)},h)?n.none():u&&i.isContentEditableFalse(e.getNode())?slt(t,u,f,e):!1===u&&i.isContentEditableFalse(e.getNode(!0))?slt(t,u,f,e):u&&uv(f)?n.some(pi.moveToPosition(e)):!1===u&&rv(f)?n.some(pi.moveToPosition(e)):n.none());var l,a,v,s,h,c})},usi=function(t,r,u){return o=r,s=u.getNode(!1===o),h=o?"after":"before",i.isElement(s)&&s.getAttribute("data-mce-caret")===h?(e=r,f=u.getNode(!1===r),e&&i.isContentEditableFalse(f.nextSibling)?n.some(pi.moveToElement(f.nextSibling)):!1===e&&i.isContentEditableFalse(f.previousSibling)?n.some(pi.moveToElement(f.previousSibling)):n.none()).fold(function(){return hlt(t,r,u)},n.some):hlt(t,r,u).bind(function(i){return r=t,f=u,i.fold(function(t){return n.some(pi.remove(t))},function(t){return n.some(pi.moveToElement(t))},function(t){return gu(f,t,r)?n.none():n.some(pi.moveToPosition(t))});var r,f});var e,f,o,s,h},fsi=function(n,t){return r=n,f=(i=t).container(),e=i.offset(),!1===u.isTextPosition(i)&&f===r.parentNode&&e>u.before(r).offset()?u(t.container(),t.offset()-1):t;var i,r,f,e},clt=function(t){return sr(t.previousSibling)?n.some((r=t.previousSibling,i.isText(r)?u(r,r.data.length):u.after(r))):t.previousSibling?c.lastPositionIn(t.previousSibling):n.none();var r},llt=function(t){return sr(t.nextSibling)?n.some((r=t.nextSibling,i.isText(r)?u(r,0):u.before(r))):t.nextSibling?c.firstPositionIn(t.nextSibling):n.none();var r},esi=function(t,i){return clt(i).orThunk(function(){return llt(i)}).orThunk(function(){return f=t,r=i,e=u.before(r.previousSibling?r.previousSibling:r.parentNode),c.prevPosition(f,e).fold(function(){return c.nextPosition(f,u.after(r))},n.some);var f,r,e})},osi=function(t,i){return llt(i).orThunk(function(){return clt(i)}).orThunk(function(){return r=t,f=i,c.nextPosition(r,u.after(f)).fold(function(){return c.prevPosition(r,u.before(f))},n.some);var r,f})},ssi=function(n,t,i){return(e=n,r=t,u=i,e?osi(r,u):esi(r,u)).map(f(fsi,i));var e,r,u},alt=function(n,t,i){i.fold(function(){n.focus()},function(i){n.selection.setRng(i.toRange(),t)})},hsi=function(n,t){return t&&n.schema.getBlockElements().hasOwnProperty(d.name(t))},csi=function(t){if(tf(t)){var i=r.fromHtml('<br data-mce-bogus="1">');return ft.empty(t),rt.append(t,i),n.some(u.before(i.dom()))}return n.none()},ah=function(t,r,e){var h,o,s,c=ssi(r,t.getBody(),e.dom()),l=nh.ancestor(e,f(hsi,t),(h=t.getBody(),function(n){return n.dom()===h})),a=(o=e,s=c,ti([v.prevSibling(o),v.nextSibling(o),s],function(n,t,r){var s,f=n.dom(),e=t.dom();return i.isText(f)&&i.isText(e)?(s=f.data.length,f.appendData(e.data),ft.remove(t),ft.remove(o),r.container()===e?u(f,s):r):(ft.remove(o),r)}).orThunk(function(){return ft.remove(o),s}));t.dom.isEmpty(t.getBody())?(t.setContent(""),t.selection.setCursorLocation()):l.bind(csi).fold(function(){alt(t,r,a)},function(i){alt(t,r,n.some(i))})},lsi=function(t,i){var o,e,s,h,f;return(o=t.getBody(),e=i,s=t.selection.getRng(),h=iv(e?1:-1,o,s),f=u.fromRangeStart(h),!1===e&&uv(f)?n.some(pi.remove(f.getNode(!0))):e&&rv(f)?n.some(pi.remove(f.getNode())):usi(o,e,f)).map(function(n){return n.fold((f=t,h=i,function(n){return f._selectionOverrides.hideFakeCaret(),ah(f,h,r.fromDom(n)),!0}),(o=t,s=i,function(n){var t=s?u.before(n):u.after(n);return o.selection.setRng(t.toRange()),!0}),(e=t,function(n){return e.selection.setRng(n.toRange()),!0}));var e,o,s,f,h}).getOr(!1)},asi=function(n,t){var u,f=n.selection.getNode();return!!i.isContentEditableFalse(f)&&(u=r.fromDom(n.getBody()),l(gi(u,".mce-offscreen-selection"),ft.remove),ah(n,t,r.fromDom(n.selection.getNode())),nlt(n),!0)},av=function(n,t){return n.selection.isCollapsed()?lsi(n,t):asi(n,t)},vlt=function(n){var r,t=function(n,t){for(;t&&t!==n;){if(i.isContentEditableTrue(t)||i.isContentEditableFalse(t))return t;t=t.parentNode}return null}(n.getBody(),n.selection.getNode());return i.isContentEditableTrue(t)&&n.dom.isBlock(t)&&n.dom.isEmpty(t)&&(r=n.dom.create("br",{"data-mce-bogus":"1"}),n.dom.setHTML(t,""),t.appendChild(r),n.selection.setRng(u.before(r).toRange())),!0},wo=i.isText,ylt=function(n){return wo(n)&&n.data[0]===yt},plt=function(n){return wo(n)&&n.data[n.data.length-1]===yt},wlt=function(n){return n.ownerDocument.createTextNode(yt)},vv=function(n,t){return n?function(n){if(wo(n.previousSibling))return plt(n.previousSibling)||n.previousSibling.appendData(yt),n.previousSibling;if(wo(n))return ylt(n)||n.insertData(0,yt),n;var t=wlt(n);return n.parentNode.insertBefore(t,n),t}(t):function(n){if(wo(n.nextSibling))return ylt(n.nextSibling)||n.nextSibling.insertData(0,yt),n.nextSibling;if(wo(n))return plt(n)||n.appendData(yt),n;var t=wlt(n);return n.nextSibling?n.parentNode.insertBefore(t,n.nextSibling):n.parentNode.appendChild(t),t}(t)},vsi=f(vv,!0),ysi=f(vv,!1),blt=function(n,t){return i.isText(n.container())?vv(t,n.container()):vv(t,n.getNode())},klt=function(n,t){var i=t.get();return i&&n.container()===i&&ca(i)},dlt=function(t,i){return i.fold(function(i){co.remove(t.get());var r=vsi(i);return t.set(r),n.some(u(r,r.length-1))},function(n){return c.firstPositionIn(n).map(function(n){if(klt(n,t))return u(t.get(),1);co.remove(t.get());var i=blt(n,!0);return t.set(i),u(i,1)})},function(n){return c.lastPositionIn(n).map(function(n){if(klt(n,t))return u(t.get(),t.get().length-1);co.remove(t.get());var i=blt(n,!1);return t.set(i),u(i,i.length-1)})},function(i){co.remove(t.get());var r=ysi(i);return t.set(r),n.some(u(r,1))})},glt=function(t,i){for(var u,r=0;r<t.length;r++)if(u=t[r].apply(null,i),u.isSome())return u;return n.none()},lt=po([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),nat=function(n,t){var i=du(t,n);return i||n},psi=function(t,i,r){var u=k.normalizeForwards(r),e=nat(i,u.container());return k.findRootInline(t,e,u).fold(function(){return c.nextPosition(e,u).bind(f(k.findRootInline,t,e)).map(function(n){return lt.before(n)})},n.none)},wsi=function(n,t){return null===kf(n,t)},tat=function(n,t,i){return k.findRootInline(n,t,i).filter(f(wsi,t))},bsi=function(t,i,r){var u=k.normalizeBackwards(r);return tat(t,i,u).bind(function(t){return c.prevPosition(t,u).isNone()?n.some(lt.start(t)):n.none()})},ksi=function(t,i,r){var u=k.normalizeForwards(r);return tat(t,i,u).bind(function(t){return c.nextPosition(t,u).isNone()?n.some(lt.end(t)):n.none()})},dsi=function(t,i,r){var u=k.normalizeBackwards(r),e=nat(i,u.container());return k.findRootInline(t,e,u).fold(function(){return c.prevPosition(e,u).bind(f(k.findRootInline,t,e)).map(function(n){return lt.after(n)})},n.none)},iat=function(n){return!1===k.isRtl(od(n))},yv=function(n,t,i){return glt([psi,bsi,ksi,dsi],[n,t,i]).filter(iat)},od=function(n){return n.fold(bi,bi,bi,bi)},rat=function(n){return n.fold(o("before"),o("start"),o("end"),o("after"))},uat=function(n){return n.fold(lt.before,lt.before,lt.after,lt.after)},gsi=function(n,t,i,r,u,f){return ti([k.findRootInline(t,i,r),k.findRootInline(t,i,u)],function(t,r){return t!==r&&k.hasSameParentBlock(i,t,r)?lt.after(n?t:r):f}).getOr(f)},nhi=function(n,t){return n.fold(o(!0),function(n){return i=t,!(rat(r=n)===rat(i)&&od(r)===od(i));var r,i})},thi=function(t,i){return t?i.fold(dr(n.some,lt.start),n.none,dr(n.some,lt.after),n.none):i.fold(n.none,dr(n.some,lt.before),n.none,dr(n.some,lt.end))},sd=function(n,t,i,r){var u=k.normalizePosition(n,r),e=yv(t,i,u);return yv(t,i,u).bind(f(thi,n)).orThunk(function(){return u=n,s=t,o=i,h=e,a=r,l=k.normalizePosition(u,a),c.fromPosition(u,o,l).map(f(k.normalizePosition,u)).fold(function(){return h.map(uat)},function(n){return yv(s,o,n).map(f(gsi,u,s,o,l,n)).filter(f(nhi,h))}).filter(iat);var u,s,o,h,a,l})},bo=yv,ihi=sd,fat=(f(sd,!1),f(sd,!0),uat),hd=function(n){return n.fold(lt.start,lt.start,lt.end,lt.end)},rhi=function(n){return sf(n.selection.getSel().modify)},eat=function(n,t,i){var r=n?1:-1;return t.setRng(u(i.container(),i.offset()+r).toRange()),t.getSel().modify("move",n?"forward":"backward","word"),!0},uhi=function(n,t){var r=t.selection.getRng(),i=n?u.fromRangeEnd(r):u.fromRangeStart(r);return!!rhi(t)&&(n&&db(i)?eat(!0,t.selection,i):!(n||!gb(i))&&eat(!1,t.selection,i))},cd=function(n,t){var i=n.dom.createRng();i.setStart(t.container(),t.offset());i.setEnd(t.container(),t.offset());n.selection.setRng(i)},ld=function(n){return!1!==n.settings.inline_boundaries},oat=function(n,t){n?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},sat=function(n,t,i){return dlt(t,i).map(function(t){return cd(n,t),i})},hat=function(n,t){return function(){return!!ld(t)&&uhi(n,t)}},ko={move:function(n,t,i){return function(){return!!ld(n)&&(r=n,e=t,o=i,s=r.getBody(),h=u.fromRangeStart(r.selection.getRng()),c=f(k.isInlineTarget,r),ihi(o,c,s,h).bind(function(n){return sat(r,e,n)})).isSome();var r,e,o,s,h,c}},moveNextWord:f(hat,!0),movePrevWord:f(hat,!1),setupSelectedState:function(n){var t=au(null),i=f(k.isInlineTarget,n);return n.on("NodeChange",function(r){var e,h,c,o,s;ld(n)&&(e=i,h=n.dom,c=r.parents,o=vt(h.select('*[data-mce-selected="inline-boundary"]'),e),s=vt(c,e),l(hit(o,s),f(oat,!1)),l(hit(s,o),f(oat,!0)),function(n,t){if(n.selection.isCollapsed()&&!0!==n.composing&&t.get()){var i=u.fromRangeStart(n.selection.getRng());u.isTextPosition(i)&&!1===k.isAtZwsp(i)&&(cd(n,co.removeAndReposition(t.get(),i)),t.set(null))}}(n,t),function(n,t,i,r){if(t.selection.isCollapsed()){var f=vt(r,n);l(f,function(){var r=u.fromRangeStart(t.selection.getRng());bo(n,t.getBody(),r).bind(function(n){return sat(t,i,n)})})}}(i,n,t,r.parents))}),t},setCaretPosition:cd},cat=function(n,t){return function(i){return dlt(t,i).map(function(t){return ko.setCaretPosition(n,t),!0}).getOr(!1)}},lat=function(n,t,i,r){var e=n.getBody(),o=f(k.isInlineTarget,n);n.undoManager.ignore(function(){var f,s,h;n.selection.setRng((f=i,s=r,(h=document.createRange()).setStart(f.container(),f.offset()),h.setEnd(s.container(),s.offset()),h));n.execCommand("Delete");bo(o,e,u.fromRangeStart(n.selection.getRng())).map(hd).map(cat(n,t))});n.nodeChanged()},fhi=function(t,i,u,e){var h,a,s=(h=t.getBody(),a=e.container(),du(a,h)||h),l=f(k.isInlineTarget,t),v=bo(l,s,e);return v.bind(function(t){return u?t.fold(o(n.some(hd(t))),n.none,o(n.some(fat(t))),n.none):t.fold(n.none,o(n.some(fat(t))),n.none,o(n.some(hd(t))))}).map(cat(t,i)).getOrThunk(function(){var n=c.navigate(u,s,e),f=n.bind(function(n){return bo(l,s,n)});return v.isSome()&&f.isSome()?k.findRootInline(l,s,e).map(function(n){return i=n,!!ti([c.firstPositionIn(i),c.lastPositionIn(i)],function(n,t){var r=k.normalizePosition(!0,n),u=k.normalizePosition(!1,t);return c.nextPosition(i,r).map(function(n){return n.isEqual(u)}).getOr(!0)}).getOr(!0)&&(ah(t,u,r.fromDom(n)),!0);var i}).getOr(!1):f.bind(function(){return n.map(function(n){return u?lat(t,i,e,n):lat(t,i,n,e),!0})}).getOr(!1)})},pv=function(n,t,i){if(n.selection.isCollapsed()&&!1!==n.settings.inline_boundaries){var r=u.fromRangeStart(n.selection.getRng());return fhi(n,t,i,r)}return!1},vh=or("start","end"),ehi=or("rng","table","cells"),aat=po([{removeTable:["element"]},{emptyCells:["cells"]}]),wv=function(n,t){return pet(r.fromDom(n),"td,th",t)},yh=function(n,t){return pb(n,"table",t)},ohi=function(n){return!1===w.eq(n.start(),n.end())},vat=function(t,i){return yh(t.start(),i).bind(function(r){return yh(t.end(),i).bind(function(t){return w.eq(r,t)?n.some(r):n.none()})})},bv=function(n){return gi(n,"td,th")},shi=function(t,i){var r=wv(i.startContainer,t),u=wv(i.endContainer,t);return i.collapsed?n.none():ti([r,u],vh).fold(function(){return r.fold(function(){return u.bind(function(n){return yh(n,t).bind(function(t){return rr(bv(t)).map(function(t){return vh(t,n)})})})},function(n){return yh(n,t).bind(function(t){return he(bv(t)).map(function(t){return vh(n,t)})})})},function(i){return yat(t,i)?n.none():(u=t,yh((r=i).start(),u).bind(function(n){return he(bv(n)).map(function(n){return vh(r.start(),n)})}));var r,u})},yat=function(n,t){return vat(t,n).isSome()},hhi=function(n,t){var u,r,i,e,o,s=(u=n,f(w.eq,u));return(r=t,i=s,e=wv(r.startContainer,i),o=wv(r.endContainer,i),ti([e,o],vh).filter(ohi).filter(function(n){return yat(i,n)}).orThunk(function(){return shi(i,r)})).bind(function(n){return vat(t=n,s).map(function(n){return ehi(t,n,bv(n))});var t})},pat=function(n,t){return cf(n,function(n){return w.eq(n,t)})},chi=function(n){return(t=n,ti([pat(t.cells(),t.rng().start()),pat(t.cells(),t.rng().end())],function(n,i){return t.cells().slice(n,i+1)})).map(function(t){var i=n.cells();return t.length===i.length?aat.removeTable(n.table()):aat.emptyCells(t)});var t},lhi=function(n,t){return hhi(n,t).bind(chi)},wat=function(n){var i=[],t;if(n)for(t=0;t<n.rangeCount;t++)i.push(n.getRangeAt(t));return i},bat=wat,ahi=function(n){return dc(n,function(n){var t=rk(n);return t?[r.fromDom(t)]:[]})},vhi=function(n){return 1<wat(n).length},yhi=function(n){return vt(ahi(n),gl)},phi=function(n){return gi(n,"td[data-mce-selected],th[data-mce-selected]")},kat=function(n,t){var i=phi(t),r=yhi(n);return 0<i.length?i:r},whi=kat,dat=function(n){return kat(bat(n.selection.getSel()),r.fromDom(n.getBody()))},gat=function(n,t){return l(t,ov),n.selection.setCursorLocation(t[0].dom(),0),!0},bhi=function(n,t){return ah(n,!1,t),!0},khi=function(n,t,i,r){return ad(t,r).fold(function(){return r=n,lhi(t,i).map(function(n){return n.fold(f(bhi,r),f(gat,r))});var r},function(t){return kv(n,t)}).getOr(!1)},nvt=function(n,t){return ui(lh(t,n),gl)},ad=function(n,t){return ui(lh(t,n),function(n){return"caption"===d.name(n)})},kv=function(t,i){return ov(i),t.selection.setCursorLocation(i.dom(),0),n.some(!0)},dhi=function(t,i,u,f,e){return c.navigate(u,t.getBody(),e).bind(function(n){return o=f,v=u,s=e,h=n,c.firstPositionIn(o.dom()).bind(function(n){return c.lastPositionIn(o.dom()).map(function(t){return v?s.isEqual(n)&&h.isEqual(t):s.isEqual(t)&&h.isEqual(n)})}).getOr(!0)?kv(t,f):(l=f,a=n,ad(i,r.fromDom(a.getNode())).map(function(n){return!1===w.eq(n,l)}));var l,a,o,v,s,h}).or(n.some(!0))},ghi=function(n,t,i,f){var e=u.fromRangeStart(n.selection.getRng());return nvt(i,f).bind(function(u){return tf(u)?kv(n,u):(f=n,o=i,s=t,h=u,l=e,c.navigate(s,f.getBody(),l).bind(function(n){return nvt(o,r.fromDom(n.getNode())).map(function(n){return!1===w.eq(n,h)})}));var f,o,s,h,l})},nci=function(n,t,i){var f=r.fromDom(n.getBody());return ad(f,i).fold(function(){return ghi(n,t,f,i)},function(i){return r=n,o=t,s=f,e=i,h=u.fromRangeStart(r.selection.getRng()),tf(e)?kv(r,e):dhi(r,s,o,e,h);var r,o,s,e,h}).getOr(!1)},dv=function(n,t){var i,u,f,e,o,s=r.fromDom(n.selection.getStart(!0)),h=dat(n);return n.selection.isCollapsed()&&0===h.length?nci(n,t,s):(i=n,u=s,f=r.fromDom(i.getBody()),e=i.selection.getRng(),0!==(o=dat(i)).length?gat(i,o):khi(i,f,e,u))},tvt=function(n,t){n.getDoc().execCommand(t,!1,null)},tci=function(n){av(n,!1)||pv(n,!1)||cv(n,!1)||dv(n)||lv(n,!1)||(tvt(n,"Delete"),nlt(n))},ici=function(n){av(n,!0)||pv(n,!0)||cv(n,!0)||dv(n)||lv(n,!0)||tvt(n,"ForwardDelete")},ivt=function(t){return function(i,u){return n.from(u).map(r.fromDom).filter(d.isElement).bind(function(u){return(s=t,h=i,c=u.dom(),f=function(n){return eti(n,s)},nh.closest(r.fromDom(c),function(n){return f(n).isSome()},function(n){return w.eq(r.fromDom(h),n)}).bind(f)).or((e=t,o=u.dom(),n.from(g.DOM.getStyle(o,e,!0))));var e,o,s,h,c,f}).getOr("")}},gv={getFontSize:ivt("font-size"),getFontFamily:dr(function(n){return n.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},ivt("font-family")),toPt:function(n,t){return/[0-9.]+px$/.test(n)?(r=72*parseInt(n,10)/96,u=t||0,i=Math.pow(10,u),Math.round(r*i)/i+"pt"):n;var r,u,i}},rvt=function(n){return c.firstPositionIn(n.getBody()).map(function(n){var t=n.container();return i.isText(t)?t.parentNode:t})},uvt=function(t){return n.from(t.selection.getRng()).bind(function(i){var r,u,f=t.getBody();return u=f,(r=i).startContainer===u&&0===r.startOffset?n.none():n.from(t.selection.getStart(!0))})},fvt=function(n,t){var i,u,r;return/^[0-9\.]+$/.test(t)?(i=parseInt(t,10),1<=i&&i<=7)?(u=rfi(n),r=ufi(n),r?r[i-1]||t:u[i-1]||t):t:t},vd=function(n,t){return n&&t&&n.startContainer===t.startContainer&&n.startOffset===t.startOffset&&n.endContainer===t.endContainer&&n.endOffset===t.endOffset},evt=function(n,t,i){return null!==function(n,t,i){for(;n&&n!==t;){if(i(n))return n;n=n.parentNode}return null}(n,t,i)},rci=function(n,t,i){return evt(n,t,function(n){return n.nodeName===i})},yd=function(n){return n&&"TABLE"===n.nodeName},ovt=function(n,t,r){for(var u=new st(t,n.getParent(t.parentNode,n.isBlock)||n.getRoot());t=u[r?"prev":"next"]();)if(i.isBr(t))return!0},pd=function(t,r,u,f,e){var l,s,h,o,a,v,c=t.getRoot(),y=t.schema.getNonEmptyElements();if(h=t.getParent(e.parentNode,t.isBlock)||c,f&&i.isBr(e)&&r&&t.isEmpty(h))return n.some(et(e.parentNode,t.nodeIndex(e)));for(l=new st(e,h);o=l[f?"prev":"next"]();){if("false"===t.getContentEditableParent(o)||(v=c,oi(a=o)&&!1===evt(a,v,pu)))return n.none();if(i.isText(o)&&0<o.nodeValue.length)return!1===rci(o,c,"A")?n.some(et(o,f?o.nodeValue.length:0)):n.none();if(t.isBlock(o)||y[o.nodeName.toLowerCase()])return n.none();s=o}return u&&s?n.some(et(s,0)):n.none()},svt=function(t,r,u,f){var e,s,v,o,y,h,l,p,w,b,a=t.getRoot(),c=!1;if(e=f[(u?"start":"end")+"Container"],s=f[(u?"start":"end")+"Offset"],l=i.isElement(e)&&s===e.childNodes.length,y=t.schema.getNonEmptyElements(),h=u,oi(e))return n.none();if(i.isElement(e)&&s>e.childNodes.length-1&&(h=!1),i.isDocument(e)&&(e=a,s=0),e===a){if(h&&(o=e.childNodes[0<s?s-1:0])&&(oi(o)||y[o.nodeName]||yd(o)))return n.none();if(e.hasChildNodes()){if((s=Math.min(!h&&0<s?s-1:s,e.childNodes.length-1),e=e.childNodes[s],s=i.isText(e)&&l?e.data.length:0,!r&&e===a.lastChild&&yd(e))||function(n,t){for(;t&&t!==n;){if(i.isContentEditableFalse(t))return!0;t=t.parentNode}return!1}(a,e)||oi(e))return n.none();if(e.hasChildNodes()&&!1===yd(e)){v=new st(o=e,a);do{if(i.isContentEditableFalse(o)||oi(o)){c=!1;break}if(i.isText(o)&&0<o.nodeValue.length){s=h?0:o.nodeValue.length;e=o;c=!0;break}if(y[o.nodeName.toLowerCase()]&&(!(p=o)||!/^(TD|TH|CAPTION)$/.test(p.nodeName))){s=t.nodeIndex(o);e=o.parentNode;h||s++;c=!0;break}}while(o=h?v.next():v.prev())}}}return r&&(i.isText(e)&&0===s&&pd(t,l,r,!0,e).each(function(n){e=n.container();s=n.offset();c=!0}),i.isElement(e)&&((o=e.childNodes[s])||(o=e.childNodes[s-1]),!o||!i.isBr(o)||(b="A",(w=o).previousSibling&&w.previousSibling.nodeName===b)||ovt(t,o,!1)||ovt(t,o,!0)||pd(t,l,r,!0,o).each(function(n){e=n.container();s=n.offset();c=!0}))),h&&!r&&i.isText(e)&&s===e.nodeValue.length&&pd(t,l,r,!1,e).each(function(n){e=n.container();s=n.offset();c=!0}),c?n.some(et(e,s)):n.none()},ny=function(t,i){var u=i.collapsed,r=i.cloneRange(),f=et.fromRangeStart(i);return svt(t,u,!0,r).each(function(n){u&&et.isAbove(f,n)||r.setStart(n.container(),n.offset())}),u||svt(t,u,!1,r).each(function(n){r.setEnd(n.container(),n.offset())}),u&&r.collapse(!0),vd(i,r)?n.none():n.some(r)},hvt=function(n,t,i){var r=n.create("span",{},"&nbsp;");i.parentNode.insertBefore(r,i);t.scrollIntoView(r);n.remove(r)},cvt=function(n,t,i,r){var u=n.createRng();r?(u.setStartBefore(i),u.setEndBefore(i)):(u.setStartAfter(i),u.setEndAfter(i));t.setRng(u)},uci=function(n,t){var f,c,s=n.selection,r=n.dom,u=s.getRng(),e,i,l;ny(r,u).each(function(n){u.setStart(n.startContainer,n.startOffset);u.setEnd(n.endContainer,n.endOffset)});e=u.startOffset;i=u.startContainer;1===i.nodeType&&i.hasChildNodes()&&(l=e>i.childNodes.length-1,i=i.childNodes[Math.min(e,i.childNodes.length-1)]||i,e=l&&3===i.nodeType?i.nodeValue.length:0);var o=r.getParent(i,r.isBlock),h=o?r.getParent(o.parentNode,r.isBlock):null,a=h?h.nodeName.toUpperCase():"",v=t&&t.ctrlKey;"LI"!==a||v||(o=h);i&&3===i.nodeType&&e>=i.nodeValue.length&&(function(n,t,i){for(var r,u=new st(t,i),f=n.getNonEmptyElements();r=u.next();)if(f[r.nodeName.toLowerCase()]||0<r.length)return!0}(n.schema,i,o)||(f=r.create("br"),u.insertNode(f),u.setStartAfter(f),u.setEndAfter(f),c=!0));f=r.create("br");u.insertNode(f);hvt(r,s,f);cvt(r,s,f,c);n.undoManager.add()},fci=function(n,t){var i=r.fromTag("br");rt.before(r.fromDom(t),i);n.undoManager.add()},eci=function(n,t){oci(n.getBody(),t)||rt.after(r.fromDom(t),r.fromTag("br"));var i=r.fromTag("br");rt.after(r.fromDom(t),i);hvt(n.dom,n.selection,i.dom());cvt(n.dom,n.selection,i.dom(),!1);n.undoManager.add()},oci=function(n,t){return r=u.after(t),!!i.isBr(r.getNode())||c.nextPosition(n,u.after(t)).map(function(n){return i.isBr(n.getNode())}).getOr(!1);var r},lvt=function(n){return n&&"A"===n.nodeName&&"href"in n},sci=function(n){return n.fold(o(!1),lvt,lvt,o(!1))},hci=function(n,t){t.fold(es,f(fci,n),f(eci,n),es)},avt=function(n,t){var i,r,e,o=(i=n,r=f(k.isInlineTarget,i),e=u.fromRangeStart(i.selection.getRng()),bo(r,i.getBody(),e).filter(sci));o.isSome()?o.each(f(hci,n)):uci(n,t)},wd=po([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),cci=(wd.before,wd.on,wd.after,function(n){return n.fold(bi,bi,bi)}),ty=po([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),lci=or("start","soffset","finish","foffset"),vvt={domRange:ty.domRange,relative:ty.relative,exact:ty.exact,exactFromRange:function(n){return ty.exact(n.start(),n.soffset(),n.finish(),n.foffset())},range:lci,getWin:function(n){var t=n.match({domRange:function(n){return r.fromDom(n.startContainer)},relative:function(n){return cci(n)},exact:function(n){return n}});return v.defaultView(t)}},aci=ou.detect().browser,yvt=function(n,t){var i=d.isText(t)?yct(t).length:v.children(t).length+1;return i<n?i:n<0?0:n},vci=function(n){return vvt.range(n.start(),yvt(n.soffset(),n.start()),n.finish(),yvt(n.foffset(),n.finish()))},pvt=function(n,t){return w.contains(n,t)||w.eq(n,t)},wvt=function(n){return function(t){return pvt(n,t.start())&&pvt(n,t.finish())}},yci=function(n){return!0===n.inline||aci.isIE()},pci=function(n){return vvt.range(r.fromDom(n.startContainer),n.startOffset,r.fromDom(n.endContainer),n.endOffset)},wci=function(t){var i=t.getSelection();return(i&&0!==i.rangeCount?n.from(i.getRangeAt(0)):n.none()).map(pci)},bci=function(n){var t=v.defaultView(n);return wci(t.dom()).filter(wvt(n))},kci=function(t,i){return n.from(i).filter(wvt(t)).map(vci)},dci=function(t){var i=document.createRange();try{return i.setStart(t.start().dom(),t.soffset()),i.setEnd(t.finish().dom(),t.foffset()),n.some(i)}catch(r){return n.none()}},bvt=function(t){return(t.bookmark?t.bookmark:n.none()).bind(f(kci,r.fromDom(t.getBody()))).bind(dci)},iy=function(t){var i=yci(t)?bci(r.fromDom(t.getBody())):n.none();t.bookmark=i.isSome()?i:t.bookmark},gci=function(n){bvt(n).each(function(t){n.selection.setRng(t)})},kvt=bvt,nli=function(n,t){var i=n.settings,r=n.dom,u=n.selection,f=n.formatter,e=/[a-z%]+$/i.exec(i.indentation)[0],o=parseInt(i.indentation,10),s=n.getParam("indent_use_margin",!1);n.queryCommandState("InsertUnorderedList")||n.queryCommandState("InsertOrderedList")||(i.forced_root_block||r.getParent(u.getNode(),r.isBlock)||f.apply("div"),l(u.getSelectedBlocks(),function(n){return function(n,t,i,r,u,f){var e,o;"false"!==n.getContentEditable(f)&&"LI"!==f.nodeName&&(e=i?"margin":"padding",(e="TABLE"===f.nodeName?"margin":e,e+="rtl"===n.getStyle(f,"direction",!0)?"Right":"Left","outdent"===t)?(o=Math.max(0,parseInt(f.style[e]||0,10)-r),n.setStyle(f,e,o?o+u:"")):(o=parseInt(f.style[e]||0,10)+r+u,n.setStyle(f,e,o)))}(r,t,s,o,e,n)}))},ry=t.each,tli=t.extend,ili=t.map,rli=t.inArray;gvt=t.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend"," ");ph=function(n){var e,u,r=this,i={},f=function(){return!1},o=function(){return!0},s,h;e=(n=n||{}).scope||r;u=n.toggleEvent||f;s=function(n,e,o,s){var h,l,c;if(!1===e&&(e=f),e)for(e={func:e},s&&t.extend(e,s),c=(l=n.toLowerCase().split(" ")).length;c--;)n=l[c],(h=i[n])||(h=i[n]=[],u(n,!0)),o?h.unshift(e):h.push(e);return r};h=function(n,t){var o,f,s,h,e;if(n)for(o=(h=n.toLowerCase().split(" ")).length;o--;){if(n=h[o],f=i[n],!n){for(s in i)u(s,!1),delete i[s];return r}if(f){if(t)for(e=f.length;e--;)f[e].func===t&&(f=f.slice(0,e).concat(f.slice(e+1)),i[n]=f);else f.length=0;f.length||(u(n,!1),delete i[n])}}else{for(n in i)u(n,!1);i={}}return r};r.fire=function(t,r){var s,u,l,c;if(t=t.toLowerCase(),(r=r||{}).type=t,r.target||(r.target=e),r.preventDefault||(r.preventDefault=function(){r.isDefaultPrevented=o},r.stopPropagation=function(){r.isPropagationStopped=o},r.stopImmediatePropagation=function(){r.isImmediatePropagationStopped=o},r.isDefaultPrevented=f,r.isPropagationStopped=f,r.isImmediatePropagationStopped=f),n.beforeFire&&n.beforeFire(r),s=i[t])for(u=0,l=s.length;u<l;u++){if((c=s[u]).once&&h(t,c.func),r.isImmediatePropagationStopped())return r.stopPropagation(),r;if(!1===c.func.call(e,r))return r.preventDefault(),r}return r};r.on=s;r.off=h;r.once=function(n,t,i){return s(n,t,i,{once:!0})};r.has=function(n){return n=n.toLowerCase(),!(!i[n]||0===i[n].length)}};ph.isNative=function(n){return!!gvt[n.toLowerCase()]};var te,wh=function(n){return n._eventDispatcher||(n._eventDispatcher=new ph({scope:n,toggleEvent:function(t,i){ph.isNative(t)&&n.toggleNativeEvent&&n.toggleNativeEvent(t,i)}})),n._eventDispatcher},uy={fire:function(n,t,i){if(this.removed&&"remove"!==n)return t;if(t=wh(this).fire(n,t,i),!1!==i&&this.parent)for(var r=this.parent();r&&!t.isPropagationStopped();)r.fire(n,t,!1),r=r.parent();return t},on:function(n,t,i){return wh(this).on(n,t,i)},off:function(n,t){return wh(this).off(n,t)},once:function(n,t){return wh(this).once(n,t)},hasEventListeners:function(n){return wh(this).has(n)}},uli=function(n,t){return n.fire("PreProcess",t)},fli=function(n,t){return n.fire("PostProcess",t)},eli=function(n){return n.fire("remove")},oli=function(n,t){return n.fire("SwitchMode",{mode:t})},sli=function(n,t,i,r){n.fire("ObjectResizeStart",{target:t,width:i,height:r})},hli=function(n,t,i,r){n.fire("ObjectResized",{target:t,width:i,height:r})},bd=function(n,t,i){try{n.getDoc().execCommand(t,!1,i)}catch(r){}},nyt=function(n,t){var i,u,f;i=r.fromDom(n.getBody());u="mce-content-readonly";f=t;no.has(i,u)&&!1===f?no.remove(i,u):f&&no.add(i,u);t?(n.selection.controlSelection.hideResizeRect(),n.readonly=!0,n.getBody().contentEditable="false"):(n.readonly=!1,n.getBody().contentEditable="true",bd(n,"StyleWithCSS",!1),bd(n,"enableInlineTableEditing",!1),bd(n,"enableObjectResizing",!1),n.focus(),n.nodeChanged())},cli=function(n){return n.readonly?"readonly":"design"},fy=g.DOM,ey=function(n,t){return"selectionchange"===t?n.getDoc():!n.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t)?n.getDoc().documentElement:n.settings.event_root?(n.eventRoot||(n.eventRoot=fy.select(n.settings.event_root)[0]),n.eventRoot):n.getBody()},tyt=function(n,t,i){var r;(r=n).hidden||r.readonly?!0===n.readonly&&i.preventDefault():n.fire(t,i)},iyt=function(n,t){var r,i;if(n.delegates||(n.delegates={}),!n.delegates[t]&&!n.removed)if(r=ey(n,t),n.settings.event_root){if(te||(te={},n.editorManager.on("removeEditor",function(){var t;if(!n.editorManager.activeEditor&&te){for(t in te)n.dom.unbind(ey(n,t));te=null}})),te[t])return;i=function(i){for(var f,e=i.target,r=n.editorManager.get(),u=r.length;u--;)f=r[u].getBody(),(f===e||fy.isChildOf(e,f))&&tyt(r[u],t,i)};te[t]=i;fy.bind(r,t,i)}else i=function(i){tyt(n,t,i)},fy.bind(r,t,i),n.delegates[t]=i},ryt={bindPendingEventDelegates:function(){var n=this;t.each(n._pendingNativeEvents,function(t){iyt(n,t)})},toggleNativeEvent:function(n,t){var i=this;"focus"!==n&&"blur"!==n&&(t?i.initialized?iyt(i,n):i._pendingNativeEvents?i._pendingNativeEvents.push(n):i._pendingNativeEvents=[n]:i.initialized&&(i.dom.unbind(ey(i,n),n,i.delegates[n]),delete i.delegates[n]))},unbindAllNativeEvents:function(){var i,n=this,r=n.getBody(),t=n.dom;if(n.delegates){for(i in n.delegates)n.dom.unbind(ey(n,i),i,n.delegates[i]);delete n.delegates}!n.inline&&r&&t&&(r.onload=null,t.unbind(n.getWin()),t.unbind(n.getDoc()));t&&(t.unbind(r),t.unbind(n.getContainer()))}},uyt=ryt=t.extend({},uy,ryt),kd=t.each,dd=t.explode,lli={f9:120,f10:121,f11:122},fyt=t.makeMap("alt,ctrl,shift,meta,access");var ali=function(t){var i=t!==undefined?t.dom():document;return n.from(i.activeElement).map(r.fromDom)},oyt=function(n){var t=v.owner(n).dom();return n.dom()===t.activeElement},vli=function(n){return ali(v.owner(n)).filter(function(t){return n.dom().contains(t.dom())})},yli=function(t,i){return(u=i,u.collapsed?n.from(so(u.startContainer,u.startOffset)).map(r.fromDom):n.none()).bind(function(i){return dti(i)?n.some(i):!1===w.contains(t,i)?n.some(t):n.none()});var u},syt=function(n,t){yli(r.fromDom(n.getBody()),t).bind(function(n){return c.firstPositionIn(n.dom())}).fold(function(){n.selection.normalize()},function(t){return n.selection.setRng(t.toRange())})},gd=function(n){if(n.setActive)try{n.setActive()}catch(t){n.focus()}else n.focus()},pli=function(n){var t,i=n.getBody();return i&&(t=r.fromDom(i),oyt(t)||vli(t).isSome())},hyt=function(n){return n.inline?pli(n):(t=n).iframeElement&&oyt(r.fromDom(t.iframeElement));var t},ng=function(n){return n.editorManager.setActive(n)},wli=function(n,t){n.removed||(t?ng(n):function(n){var f=n.selection,e=n.settings.content_editable,t=n.getBody(),i=f.getRng(),r,o,u;if(n.quirks.refreshContentEditable(),u=(r=n,o=f.getNode(),r.dom.getParent(o,function(n){return"true"===r.dom.getContentEditable(n)})),n.$.contains(t,u))return gd(u),syt(n,i),ng(n);n.bookmark!==undefined&&!1===hyt(n)&&kvt(n).each(function(t){n.selection.setRng(t);i=t});e||(s.opera||gd(t),n.getWin().focus());(s.gecko||e)&&(gd(t),syt(n,i));ng(n)}(n))},bh=hyt,cyt=function(n,t){return t.dom()[n]},lyt=function(n,t){return parseInt(but(t,n),10)},bli=f(cyt,"clientWidth"),kli=f(cyt,"clientHeight"),dli=f(lyt,"margin-top"),gli=f(lyt,"margin-left"),ayt=function(n,t,i){var f,u,h,c,e,l,o,s,a,y,p=r.fromDom(n.getBody()),w=n.inline?p:v.documentElement(p),b=(f=n.inline,h=t,c=i,e=(u=w).dom().getBoundingClientRect(),{x:h-(f?e.left+u.dom().clientLeft+gli(u):0),y:c-(f?e.top+u.dom().clientTop+dli(u):0)});return o=b.x,s=b.y,a=bli(l=w),y=kli(l),0<=o&&0<=s&&o<=a&&s<=y},nai=function(t){var i,u=t.inline?t.getBody():t.getContentAreaContainer();return(i=u,n.from(i).map(r.fromDom)).map(function(n){return w.contains(v.owner(n),n)}).getOr(!1)};var pyt=wt.PluginManager,tai=function(n,t){var i=function(n,t){for(var i in pyt.urls)if(pyt.urls[i]+"/plugin"+t+".js"===n)return i;return null}(t,n.suffix);return i?"Failed to load plugin: "+i+" from url "+t:"Failed to load plugin url: "+t},wyt=function(n,t){n.notificationManager.open({type:"error",text:t})},tg=function(n,t){n._skinLoaded?wyt(n,t):n.on("SkinLoaded",function(){wyt(n,t)})},iai=function(n,t){tg(n,tai(n,t))},rai=function(n,t){tg(n,"Failed to upload image: "+t)},uai=tg,byt=function(){for(var n,i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];n=window.console;n&&(n.error?n.error.apply(n,arguments):n.log.apply(n,arguments))},kr=wt.PluginManager,ie=wt.ThemeManager;var sai=function(n){return lf.getOrDie("atob")(n)},dyt=function(n){var t,i;return n=decodeURIComponent(n).split(","),(i=/data:([^;]+)/.exec(n[0]))&&(t=i[1]),{type:t,data:n[1]}},gyt=function(n){return 0===n.indexOf("blob:")?(i=n,new ei(function(n,t){var u=function(){t("Cannot convert "+i+" to Blob. Resource might not exist or is inaccessible.")},r;try{r=new ig;r.open("GET",i,!0);r.responseType="blob";r.onload=function(){200===this.status?n(this.response):u()};r.onerror=u;r.send()}catch(f){u()}})):0===n.indexOf("data:")?(t=n,new ei(function(n){var u,r,i;t=dyt(t);try{u=sai(t.data)}catch(f){return void n(new kyt([]))}for(r=new oai(u.length),i=0;i<r.length;i++)r[i]=u.charCodeAt(i);n(new kyt([r],{type:t.type}))})):null;var i,t},hai=function(n){return new ei(function(t){var i=new eai;i.onloadend=function(){t(i.result)};i.readAsDataURL(n)})},npt=dyt,cai=0,tpt=function(n){return(n||"blobid")+cai++},lai=function(n,t,i,r){var f,u;0!==t.src.indexOf("blob:")?(f=npt(t.src).data,(u=n.findFirst(function(n){return n.base64()===f}))?i({image:t,blobInfo:u}):gyt(t.src).then(function(r){u=n.create(tpt(),r,f);n.add(u);i({image:t,blobInfo:u})},function(n){r(n)})):(u=n.getByUri(t.src))?i({image:t,blobInfo:u}):gyt(t.src).then(function(r){hai(r).then(function(e){f=npt(e).data;u=n.create(tpt(),r,f);n.add(u);i({image:t,blobInfo:u})})},function(n){r(n)})},aai=function(n){return n?n.getElementsByTagName("img"):[]},vai=0,rg={uuid:function(n){return n+vai+++(t=function(){return Math.round(4294967295*Math.random()).toString(36)},"s"+(new Date).getTime().toString(36)+t()+t()+t());var t}};var ug=function(n,t){return n.hasOwnProperty(t.nodeName)},pai=function(n,t){return i.isText(t)&&(0===t.nodeValue.length||/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||ug(n,t.nextSibling)))?!0:!1},wai=function(n){var u,a,v,y,p,f,o,w,b,k,s,ut=n.settings,d=n.dom,h=n.selection,g=n.schema,c=g.getBlockElements(),t=h.getStart(),l=n.getBody(),nt,tt,it,rt,e;if(s=ut.forced_root_block,t&&i.isElement(t)&&s&&(k=l.nodeName.toLowerCase(),g.isValidChild(k,s.toLowerCase())&&(nt=c,tt=l,it=t,!eit(goi(r.fromDom(it),r.fromDom(tt)),function(n){return ug(nt,n.dom())})))){for(a=(u=h.getRng()).startContainer,v=u.startOffset,y=u.endContainer,p=u.endOffset,b=bh(n),t=l.firstChild;t;)if(rt=c,e=t,i.isText(e)||i.isElement(e)&&!ug(rt,e)&&!tr(e)){if(pai(c,t)){t=(o=t).nextSibling;d.remove(o);continue}f||(f=d.create(s,n.settings.forced_root_block_attrs),t.parentNode.insertBefore(f,t),w=!0);t=(o=t).nextSibling;f.appendChild(o)}else f=null,t=t.nextSibling;w&&b&&(u.setStart(a,v),u.setEnd(y,p),h.setRng(u),n.nodeChanged())}},bai=function(n){n.settings.forced_root_block&&n.on("NodeChange",f(wai,n))},ipt=function(n){return v.firstChild(n).fold(o([n]),function(t){return[n].concat(ipt(t))})},fg=function(n){return v.lastChild(n).fold(o([n]),function(t){return"br"===d.name(t)?v.prevSibling(t).map(function(t){return[n].concat(fg(t))}).getOr([]):[n].concat(fg(t))})},kai=function(t,u){return ti([(c=u,o=c.startContainer,l=c.startOffset,i.isText(o)?0===l?n.some(r.fromDom(o)):n.none():n.from(o.childNodes[l]).map(r.fromDom)),(s=u,e=s.endContainer,h=s.endOffset,i.isText(e)?h===e.data.length?n.some(r.fromDom(e)):n.none():n.from(e.childNodes[h-1]).map(r.fromDom))],function(n,i){var r=ui(ipt(t),f(w.eq,n)),u=ui(fg(t),f(w.eq,i));return r.isSome()&&u.isSome()}).getOr(!1);var s,e,h,c,o,l},eg=function(n,i,r,u){var f=r,e=new st(r,f),o=n.schema.getNonEmptyElements();do{if(3===r.nodeType&&0!==t.trim(r.nodeValue).length)return void(u?i.setStart(r,0):i.setEnd(r,r.nodeValue.length));if(o[r.nodeName]&&!/^(TD|TH)$/.test(r.nodeName))return void(u?i.setStartBefore(r):"BR"===r.nodeName?i.setEndBefore(r):i.setEndAfter(r));if(s.ie&&s.ie<11&&n.isBlock(r)&&n.isEmpty(r))return void(u?i.setStart(r,0):i.setEnd(r,0))}while(r=u?e.next():e.prev());"BODY"===f.nodeName&&(u?i.setStart(f,0):i.setEnd(f,f.childNodes.length))},og=function(n){var t=n.selection.getSel();return t&&0<t.rangeCount};var go,oy,rpt=function(n){var u,t,i,r;return r=n.getBoundingClientRect(),t=(u=n.ownerDocument).documentElement,i=u.defaultView,{top:r.top+i.pageYOffset-t.clientTop,left:r.left+i.pageXOffset-t.clientLeft}},gai=function(n,t){return i=(o=n).inline?rpt(o.getBody()):{left:0,top:0},u=(e=n).getBody(),r=e.inline?{left:u.scrollLeft,top:u.scrollTop}:{left:0,top:0},{pageX:(f=function(n,t){var r,u,f,i,e,o,s;return t.target.ownerDocument!==n.getDoc()?(r=rpt(n.getContentAreaContainer()),u=(i=(f=n).getBody(),e=f.getDoc().documentElement,o={left:i.scrollLeft,top:i.scrollTop},s={left:i.scrollLeft||e.scrollLeft,top:i.scrollTop||e.scrollTop},f.inline?o:s),{left:t.pageX-r.left+u.left,top:t.pageY-r.top+u.top}):{left:t.pageX,top:t.pageY}}(n,t)).left-i.left+r.left,pageY:f.top-i.top+r.top};var i,r,f,e,u,o},kh=i.isContentEditableFalse,nvi=i.isContentEditableTrue,upt=function(n){n&&n.parentNode&&n.parentNode.removeChild(n)},tvi=function(n,t){return function(i){var r,o,s;if(0===i.button&&(r=h.find(t.dom.getParents(i.target),ht.or(kh,nvi)),o=t.getBody(),kh(s=r)&&s!==o)){var u=t.dom.getPos(r),f=t.getBody(),e=t.getDoc().documentElement;n.element=r;n.screenX=i.screenX;n.screenY=i.screenY;n.maxX=(t.inline?f.scrollWidth:e.offsetWidth)-2;n.maxY=(t.inline?f.scrollHeight:e.offsetHeight)-2;n.relX=i.pageX-u.x;n.relY=i.pageY-u.y;n.width=r.offsetWidth;n.height=r.offsetHeight;n.ghost=function(n,t,i,r){var u=t.cloneNode(!0),f;return n.dom.setStyles(u,{width:i,height:r}),n.dom.setAttrib(u,"data-mce-selected",null),f=n.dom.create("div",{"class":"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"}),n.dom.setStyles(f,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:i,height:r}),n.dom.setStyles(u,{margin:0,boxSizing:"border-box"}),f.appendChild(u),f}(t,r,n.width,n.height)}}},ivi=function(n,t){return function(i){var r,e,s,h,c,u,o,l,f;!n.dragging||(l=(c=t).selection,f=l.getSel().getRangeAt(0).startContainer,u=3===f.nodeType?f.parentNode:f,o=n.element,u===o||c.dom.isChildOf(u,o)||kh(u))||(r=(s=n.element,(h=s.cloneNode(!0)).removeAttribute("data-mce-selected"),h),e=t.fire("drop",{targetClone:r,clientX:i.clientX,clientY:i.clientY}),e.isDefaultPrevented()||(r=e.targetClone,t.undoManager.transact(function(){upt(n.element);t.insertContent(t.dom.getOuterHTML(r));t._selectionOverrides.hideFakeCaret()})));fpt(n)}},fpt=function(n){n.dragging=!1;n.element=null;upt(n.ghost)},rvi=function(n){var r,h,f,c,o,u,t,i,l,s,a,e={};r=g.DOM;u=document;h=tvi(e,n);t=e;i=n;l=gt.throttle(function(n,t){i._selectionOverrides.hideFakeCaret();i.selection.placeCaretAt(n,t)},0);f=function(n){var u,r,f,e,o,s,h,c,a,v,y,p,b=Math.max(Math.abs(n.screenX-t.screenX),Math.abs(n.screenY-t.screenY)),w;if(t.element&&!t.dragging&&10<b){if(i.fire("dragstart",{target:t.element}).isDefaultPrevented())return;t.dragging=!0;i.focus()}t.dragging&&(w=(y=t,{pageX:(p=gai(i,n)).pageX-y.relX,pageY:p.pageY+5}),a=t.ghost,v=i.getBody(),a.parentNode!==v&&v.appendChild(a),u=t.ghost,r=w,f=t.width,e=t.height,o=t.maxX,s=t.maxY,c=h=0,u.style.left=r.pageX+"px",u.style.top=r.pageY+"px",r.pageX+f>o&&(h=r.pageX+f-o),r.pageY+e>s&&(c=r.pageY+e-s),u.style.width=f-h+"px",u.style.height=e-c+"px",l(n.clientX,n.clientY))};c=ivi(e,n);s=e;o=function(){s.dragging&&a.fire("dragend");fpt(s)};(a=n).on("mousedown",h);n.on("mousemove",f);n.on("mouseup",c);r.bind(u,"mousemove",f);r.bind(u,"mouseup",o);n.on("remove",function(){r.unbind(u,"mousemove",f);r.unbind(u,"mouseup",o)})},uvi=function(n){var t;rvi(n);(t=n).on("drop",function(n){var i="undefined"!=typeof n.clientX?t.getDoc().elementFromPoint(n.clientX,n.clientY):null;(kh(i)||kh(t.dom.getContentEditableParent(i)))&&n.preventDefault()})},sg=function(n){return h.reduce(n,function(n,t){return n.concat(function(n){var r=function(t){return h.map(t,function(t){return(t=fo(t)).node=n,t})},t;return i.isElement(n)?r(n.getClientRects()):i.isText(n)?(t=n.ownerDocument.createRange(),t.setStart(n,0),t.setEnd(n,n.data.length),r(t.getClientRects())):void 0}(t))},[])};(oy=go||(go={}))[oy.Up=-1]="Up";oy[oy.Down=1]="Down";var ept=function(n,t,i,r,u,f){var o,s,c=0,e=[],l=function(r){var l,f,o;for(o=sg([r]),-1===n&&(o=o.reverse()),l=0;l<o.length;l++)if(f=o[l],!i(f,s)){if(0<e.length&&t(f,h.last(e))&&c++,f.line=c,u(f))return!0;e.push(f)}};return(s=h.last(f.getClientRects()))&&(l(o=f.getNode()),function(n,t,i,r){for(;r=ao(r,n,ik,t);)if(i(r))return}(n,r,l,o)),e},fvi=f(ept,go.Up,eo,oo),evi=f(ept,go.Down,oo,eo),opt=function(n){return function(t){return i=n,t.line>i;var i}},hg=function(n){return function(t){return i=n,t.line===i;var i}},ovi=i.isContentEditableFalse,svi=ao,cg=function(n,t){return Math.abs(n.left-t)},lg=function(n,t){return Math.abs(n.right-t)},spt=function(n,t){return n>=t.left&&n<=t.right},sy=function(n,t){return h.reduce(n,function(n,i){var r,u;return r=Math.min(cg(n,t),lg(n,t)),u=Math.min(cg(i,t),lg(i,t)),spt(t,i)?i:spt(t,n)?n:u===r&&ovi(i.node)?i:u<r?i:n})},hpt=function(n,t,i,r){for(;r=svi(r,n,ik,t);)if(i(r))return},hvi=function(n,t,i){var r,a,o,s,c,u,e,l,v=sg((a=n,h.filter(h.toArray(a.getElementsByTagName("*")),br))),y=h.filter(v,function(n){return i>=n.top&&i<=n.bottom});return(r=sy(y,t))&&(r=sy((c=n,l=function(n,t){var i;return i=h.filter(sg([t]),function(t){return!n(t,u)}),e=e.concat(i),0===i.length},(e=[]).push(u=r),hpt(go.Up,c,f(l,eo),u.node),hpt(go.Down,c,f(l,oo),u.node),e),t))&&br(r.node)?(s=t,{node:(o=r).node,before:cg(o,s)<lg(o,s)}):null},cpt=function(n,t,i){return!i.collapsed&&hf(i.getClientRects(),function(i,r){return i||(f=t,(e=n)>=(u=r).left&&e<=u.right&&f>=u.top&&f<=u.bottom);var u,e,f},!1)},cvi=function(n){var t=iet(function(){if(!n.removed&&n.selection.getRng().collapsed){var t=ba(n,n.selection.getRng(),!1);n.selection.setRng(t)}},0);n.on("focus",function(){t.throttle()});n.on("blur",function(){t.cancel()})},y={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,modifierPressed:function(n){return n.shiftKey||n.ctrlKey||n.altKey||this.metaKeyPressed(n)},metaKeyPressed:function(n){return s.mac?n.metaKey:n.ctrlKey&&!n.altKey}},ag=i.isContentEditableTrue,rf=i.isContentEditableFalse,lvi=uv,avi=rv,hy=function(n,t){for(var i=n.getBody();t&&t!==i;){if(ag(t)||rf(t))return t;t=t.parentNode}return null},vvi=function(n){var t,v,c,a=n.getBody(),f=cfi(n.getBody(),function(t){return n.dom.isBlock(t)},function(){return bh(n)}),e="sel-"+n.dom.uniqueId(),p=function(t){t&&n.selection.setRng(t)},b=function(){return n.selection.getRng()},i=function(t,i,r,u){return void 0===u&&(u=!0),n.fire("ShowCaret",{target:i,direction:t,before:r}).isDefaultPrevented()?null:(u&&n.selection.scrollIntoView(i,-1===t),f.show(r,i))},k=function(n,t){return t=iv(n,a,t),-1===n?u.fromRangeStart(t):u.fromRangeEnd(t)},d=function(n){return oi(n)||la(n)||aa(n)},g=function(n){return d(n.startContainer)||d(n.endContainer)},w=function(u,f){var v,c,b,a,p,d,nt,o,y,tt,w=n.$,rt=n.dom;if(!u)return null;if(u.collapsed){if(!g(u))if(!1===f){if(o=k(-1,u),br(o.getNode(!0)))return i(-1,o.getNode(!0),!1,!1);if(br(o.getNode()))return i(-1,o.getNode(),!o.isAtEnd(),!1)}else{if(o=k(1,u),br(o.getNode()))return i(1,o.getNode(),!o.isAtEnd(),!1);if(br(o.getNode(!0)))return i(1,o.getNode(!0),!1,!1)}return null}return a=u.startContainer,p=u.startOffset,d=u.endOffset,3===a.nodeType&&0===p&&rf(a.parentNode)&&(a=a.parentNode,p=rt.nodeIndex(a),a=a.parentNode),1!==a.nodeType?null:(d===p+1&&(v=a.childNodes[p]),rf(v)?(y=tt=v.cloneNode(!0),(nt=n.fire("ObjectSelected",{target:v,targetClone:y})).isDefaultPrevented()?null:(c=sa(r.fromDom(n.getBody()),"#"+e).fold(function(){return w([])},function(n){return w([n.dom()])}),y=nt.targetClone,0===c.length&&(c=w('<div data-mce-bogus="all" class="mce-offscreen-selection"><\/div>').attr("id",e)).appendTo(n.getBody()),u=n.dom.createRng(),y===tt&&s.ie?(c.empty().append('<p style="font-size: 0" data-mce-bogus="all"> <\/p>').append(y),u.setStartAfter(c[0].firstChild.firstChild),u.setEndAfter(y)):(c.empty().append(" ").append(y).append(" "),u.setStart(c[0].firstChild,1),u.setEnd(c[0].lastChild,0)),c.css({top:rt.getPos(v,n.getBody()).y}),c[0].focus(),(b=n.selection.getSel()).removeAllRanges(),b.addRange(u),l(gi(r.fromDom(n.getBody()),"*[data-mce-selected]"),function(n){it.remove(n,"data-mce-selected")}),v.setAttribute("data-mce-selected","1"),t=v,h(),u)):null)},o=function(){t&&(t.removeAttribute("data-mce-selected"),sa(r.fromDom(n.getBody()),"#"+e).each(ft.remove),t=null);sa(r.fromDom(n.getBody()),"#"+e).each(ft.remove);t=null},h=function(){f.hide()};return s.ceFalse&&(function(){n.on("mouseup",function(t){var i=b();i.collapsed&&ayt(n,t.clientX,t.clientY)&&p(cst(n,i,!1))});n.on("click",function(t){var i;(i=hy(n,t.target))&&(rf(i)&&(t.preventDefault(),n.focus()),ag(i)&&n.dom.isChildOf(i,n.selection.getNode())&&o())});n.on("blur NewBlock",function(){o()});n.on("ResizeWindow FullscreenStateChanged",function(){return f.reposition()});var r,c,l=function(t,i){var f,e,r=n.dom.getParent(t,n.dom.isBlock),o=n.dom.getParent(i,n.dom.isBlock);return!(!r||!n.dom.isChildOf(r,o)||!1!==rf(hy(n,r)))||r&&(f=r,e=o,!(n.dom.getParent(f,n.dom.isBlock)===n.dom.getParent(e,n.dom.isBlock)))&&function(n){var r=hr(n),i,t;return n.firstChild?(i=u.before(n.firstChild),t=r.next(i),t&&!avi(t)&&!lvi(t)):!1}(r)};c=!1;(r=n).on("touchstart",function(){c=!1});r.on("touchmove",function(){c=!0});r.on("touchend",function(n){var t=hy(r,n.target);rf(t)&&(c||(n.preventDefault(),w(lk(r,t))))});n.on("mousedown",function(t){var f,r=t.target,u,e;(r===a||"HTML"===r.nodeName||n.dom.isChildOf(r,a))&&!1!==ayt(n,t.clientX,t.clientY)&&((f=hy(n,r))?rf(f)?(t.preventDefault(),w(lk(n,f))):(o(),ag(f)&&t.shiftKey||cpt(t.clientX,t.clientY,n.selection.getRng())||(h(),n.selection.placeCaretAt(t.clientX,t.clientY))):!1===br(r)&&(o(),h(),u=hvi(a,t.clientX,t.clientY),u&&!l(t.target,u.node)&&(t.preventDefault(),e=i(1,u.node,u.before,!1),n.getBody().focus(),p(e))))});n.on("keypress",function(t){y.modifierPressed(t)||(t.keyCode,rf(n.selection.getNode())&&t.preventDefault())});n.on("getSelectionRange",function(n){var i=n.range;if(t){if(!t.parentNode)return void(t=null);(i=i.cloneRange()).selectNode(t);n.range=i}});n.on("setSelectionRange",function(n){var t;(t=w(n.range,n.forward))&&(n.range=t)});n.on("AfterSetSelectionRange",function(t){var r,i=t.range;g(i)||"mcepastebin"===i.startContainer.parentNode.id||h();r=i.startContainer.parentNode;n.dom.hasClass(r,"mce-offscreen-selection")||o()});n.on("copy",function(t){var r,u=t.clipboardData,i;t.isDefaultPrevented()||!t.clipboardData||s.ie||(i=(r=n.dom.get(e))?r.getElementsByTagName("*")[0]:r,i&&(t.preventDefault(),u.clearData(),u.setData("text/html",i.outerHTML),u.setData("text/plain",i.outerText)))});uvi(n);cvi(n)}(),v=n.contentStyles,c=".mce-content-body",v.push(f.getCss()),v.push(c+" .mce-offscreen-selection {position: absolute;left: -9999999999px;max-width: 1000000px;}"+c+" *[contentEditable=false] {cursor: default;}"+c+" *[contentEditable=true] {cursor: text;}")),{showCaret:i,showBlockCaretContainer:function(t){t.hasAttribute("data-mce-caret")&&(nk(t),p(b()),n.selection.scrollIntoView(t[0]))},hideFakeCaret:h,destroy:function(){f.destroy();t=null}}},lpt=function(n,t,i){var u,r,f,o,e=1;for(o=n.getShortEndedElements(),(f=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g).lastIndex=u=i;r=f.exec(t);){if(u=f.lastIndex,"/"===r[1])e--;else if(!r[1]){if(r[2]in o)continue;e++}if(0===e)break}return u};(vg||(vg={})).findEndTag=lpt;var yg=vg,apt=function(n,t){var o,r,u,f,s,h,c,l,i=t,e=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,a=n.schema;for(h=n.getTempAttrs(),c=i,l=new RegExp(["\\s?("+h.join("|")+')="[^"]+"'].join("|"),"gi"),i=c.replace(l,""),s=a.getShortEndedElements();f=e.exec(i);)r=e.lastIndex,u=f[0].length,o=s[f[1]]?r:yg.findEndTag(a,i,r),i=i.substring(0,r-u)+i.substring(o),e.lastIndex=r-u;return vu(i)},vpt={trimExternal:apt,trimInternal:apt},yvi=0,pvi=2,wvi=1,bvi=function(n,t){var f=n.length+t.length+2,r=new Array(f),i=new Array(f),u=function(i,r,f,e,o){var h=s(i,r,f,e),c,l,a;if(null===h||h.start===r&&h.diag===r-e||h.end===i&&h.diag===i-f)for(c=i,l=f;c<r||l<e;)c<r&&l<e&&n[c]===t[l]?(o.push([0,n[c]]),++c,++l):e-f<r-i?(o.push([2,n[c]]),++c):(o.push([1,t[l]]),++l);else{for(u(i,h.start,f,h.start-h.diag,o),a=h.start;a<h.end;++a)o.push([0,n[a]]);u(h.end,r,h.end-h.diag,e,o)}},e=function(i,r,u,f){for(var e=i;e-r<f&&e<u&&n[e]===t[e-r];)++e;return{start:i,end:e,diag:r}},s=function(u,f,o,s){var w=f-u,b=s-o;if(0===w||0===b)return null;var l,c,h,v,y,a=w-b,k=b+w,p=(k%2==0?k:k+1)/2;for(r[1+p]=u,i[1+p]=f+1,l=0;l<=p;++l){for(c=-l;c<=l;c+=2){for(h=c+p,r[h]=c===-l||c!==l&&r[h-1]<r[h+1]?r[h+1]:r[h-1]+1,y=(v=r[h])-u+o-c;v<f&&y<s&&n[v]===t[y];)r[h]=++v,++y;if(a%2!=0&&a-l<=c&&c<=a+l&&i[h-a]<=r[h])return e(i[h-a],c+u-o,f,s)}for(c=a-l;c<=a+l;c+=2){for(h=c+p-a,i[h]=c===a-l||c!==a+l&&i[h+1]<=i[h-1]?i[h+1]-1:i[h-1],y=(v=i[h]-1)-u+o-c;u<=v&&o<=y&&n[v]===t[y];)i[h]=v--,y--;if(a%2==0&&-l<=c&&c<=l&&i[h]<=r[h+a])return e(i[h],c+u-o,f,s)}}},o=[];return u(0,n.length,0,t.length,o),o},ypt=function(n){return i.isElement(n)?n.outerHTML:i.isText(n)?wf.encodeRaw(n.data,!1):i.isComment(n)?"<!--"+n.data+"-->":""},kvi=function(n,t,i){var u=function(n){var t,r,i;for(i=document.createElement("div"),t=document.createDocumentFragment(),n&&(i.innerHTML=n);r=i.firstChild;)t.appendChild(r);return t}(t),r;n.hasChildNodes()&&i<n.childNodes.length?(r=n.childNodes[i],r.parentNode.insertBefore(u,r)):n.appendChild(u)},dvi=function(n){return h.filter(h.map(n.childNodes,ypt),function(n){return 0<n.length})},gvi=function(n,t){var u,r,i,f=h.map(t.childNodes,ypt);return u=bvi(f,n),r=t,i=0,h.each(u,function(n){n[0]===yvi?i++:n[0]===wvi?(kvi(r,n[1],i),i++):n[0]===pvi&&function(n,t){if(n.hasChildNodes()&&t<n.childNodes.length){var i=n.childNodes[t];i.parentNode.removeChild(i)}}(r,i)}),t},nyi=function(n,t){var i=(t||document).createElement("div");return i.innerHTML=n,v.children(r.fromDom(i))},tyi=function(n){return n.dom().innerHTML},iyi=tyi,ryi=function(n,t){var i=v.owner(n).dom(),u=r.fromDom(i.createDocumentFragment()),f=nyi(t,i);ab(u,f);ft.empty(n);rt.append(n,u)},ppt=au(n.none()),uyi=function(n){return{type:"fragmented",fragments:n,content:"",bookmark:null,beforeBookmark:null}},fyi=function(n){return{type:"complete",fragments:null,content:n,bookmark:null,beforeBookmark:null}},pg=function(n){return"fragmented"===n.type?n.fragments.join(""):n.content},wpt=function(t){var i=r.fromTag("body",ppt.get().getOrThunk(function(){var t=document.implementation.createHTMLDocument("undo");return ppt.set(n.some(t)),t}));return ryi(i,pg(t)),l(gi(i,"*[data-mce-bogus]"),ft.unwrap),iyi(i)},wg=function(n){var t,i,r;return t=dvi(n.getBody()),-1!==(i=(r=dc(t,function(t){var i=vpt.trimInternal(n.serializer,t);return 0<i.length?[i]:[]})).join("")).indexOf("<\/iframe>")?uyi(r):fyi(i)},bg=function(n,t,i){"fragmented"===t.type?gvi(t.fragments,n.getBody()):n.setContent(t.content,{format:"raw"});n.selection.moveToBookmark(i?t.beforeBookmark:t.bookmark)},kg=function(n,t){return!(!n||!t)&&(r=t,pg(n)===pg(r)||(i=t,wpt(n)===wpt(i)));var i,r};var dg,kpt,gg=a.isEq,dpt=function(n,t,i){var u=n.formatter.get(i),r;if(u)for(r=0;r<u.length;r++)if(!1===u[r].inherit&&n.dom.is(t,u[r].selector))return!0;return!1},nn=function(n,t,i,r){var u=n.dom.getRoot();return t!==u&&(t=n.dom.getParent(t,function(t){return!!dpt(n,t,i)||t.parentNode===u||!!cy(n,t,i,r,!0)}),cy(n,t,i,r))},gpt=function(n,t,i){return!!gg(t,i.inline)||!!gg(t,i.block)||(i.selector?1===t.nodeType&&n.is(t,i.selector):void 0)},nwt=function(n,t,i,r,u,f){var o,h,s,e=i[r];if(i.onmatch)return i.onmatch(t,i,r);if(e)if("undefined"==typeof e.length){for(o in e)if(e.hasOwnProperty(o)){if(h="attributes"===r?n.getAttrib(t,o):a.getStyle(n,t,o),u&&!h&&!i.exact)return;if((!u||i.exact)&&!gg(h,a.normalizeStyleValue(n,a.replaceVars(e[o],f),o)))return}}else for(s=0;s<e.length;s++)if("attributes"===r?n.getAttrib(t,e[s]):a.getStyle(n,t,e[s]))return i;return i},cy=function(n,t,i,r,u){var f,e,o,s,h=n.formatter.get(i),c=n.dom;if(h&&t)for(e=0;e<h.length;e++)if(f=h[e],gpt(n.dom,t,f)&&nwt(c,t,f,"attributes",u,r)&&nwt(c,t,f,"styles",u,r)){if(s=f.classes)for(o=0;o<s.length;o++)if(!n.dom.hasClass(t,s[o]))return;return f}},hi={matchNode:cy,matchName:gpt,match:function(n,t,i,r){var u;return r?nn(n,r,t,i):(r=n.selection.getNode(),!!nn(n,r,t,i)||!((u=n.selection.getStart())===r||!nn(n,u,t,i)))},matchAll:function(n,t,i){var r,u=[],f={};return r=n.selection.getStart(),n.dom.getParent(r,function(r){for(var e,o=0;o<t.length;o++)e=t[o],!f[e]&&cy(n,r,e,i)&&(f[e]=!0,u.push(e))},n.dom.getRoot()),u},canApply:function(n,t){var e,f,r,i,o,u=n.formatter.get(t),s=n.dom;if(u)for(e=n.selection.getStart(),f=a.getParents(s,e),i=u.length-1;0<=i;i--){if(!(o=u[i].selector)||u[i].defaultBlock)return!0;for(r=f.length-1;0<=r;r--)if(s.is(f[r],o))return!0}return!1},matchesUnInheritedFormatSelector:dpt},ly=function(n,t){return n.splitText(t)},tn=function(n){var t=n.startContainer,r=n.startOffset,u=n.endContainer,f=n.endOffset;return t===u&&i.isText(t)?0<r&&r<t.nodeValue.length&&(t=(u=ly(t,r)).previousSibling,r<f?(t=u=ly(u,f-=r).previousSibling,f=u.nodeValue.length,r=0):f=0):(i.isText(t)&&0<r&&r<t.nodeValue.length&&(t=ly(t,r),r=0),i.isText(u)&&0<f&&f<u.nodeValue.length&&(f=(u=ly(u,f).previousSibling).nodeValue.length)),{startContainer:t,startOffset:r,endContainer:u,endOffset:f}},ns=yt,twt="_mce_caret",eyi=function(n){return 0<function(n){for(var t=[];n;){if(3===n.nodeType&&n.nodeValue!==ns||1<n.childNodes.length)return[];1===n.nodeType&&t.push(n);n=n.firstChild}return t}(n).length},iwt=function(n){var t;if(n)for(n=(t=new st(n,n)).current();n;n=t.next())if(3===n.nodeType)return n;return null},rn=function(n){var t=r.fromTag("span");return it.setAll(t,{id:twt,"data-mce-bogus":"1","data-mce-type":"format-caret"}),n&&rt.append(t,r.fromText(ns)),t},un=function(n,t,i,u){var f,o,e,s;f=t.getRng(!0);o=n.getParent(i,n.isBlock);eyi(i)?(!1!==u&&(f.setStartBefore(i),f.setEndBefore(i)),n.remove(i)):((s=iwt(i))&&s.nodeValue.charAt(0)===ns&&s.deleteData(0,1),e=s,f.startContainer===e&&0<f.startOffset&&f.setStart(e,f.startOffset-1),f.endContainer===e&&0<f.endOffset&&f.setEnd(e,f.endOffset-1),n.remove(i,!0));o&&n.isEmpty(o)&&ov(r.fromDom(o));t.setRng(f)},fn=function(n,t,i,r,u){if(r)un(t,i,r,u);else if(!(r=kf(n,i.getStart())))for(;r=t.get(twt);)un(t,i,r,!1)},oyi=function(n,t,i){var u=n.dom,f=u.getParent(i,ht.curry(a.isTextBlock,n));f&&u.isEmpty(f)?i.parentNode.replaceChild(t,i):(yei(r.fromDom(i)),u.isEmpty(i)?i.parentNode.replaceChild(t,i):u.insertAfter(t,i))},rwt=function(n,t){return n.appendChild(t),t},uwt=function(n,t){var r,i,u=(r=function(n,t){return rwt(n,t.cloneNode(!1))},i=t,function(n,t){for(var i=n.length-1;0<=i;i--)t(n[i],i,n)}(n,function(n){i=r(i,n)}),i);return rwt(u,u.ownerDocument.createTextNode(ns))},syi=function(n){var t=n.dom,i=n.selection,r=n.getBody();n.on("mouseup keydown",function(n){var f,e,u,o;f=r;e=t;u=i;o=n.keyCode;fn(f,e,u,null,!1);8===o&&u.isCollapsed()&&u.getStart().innerHTML===ns&&fn(f,e,u,kf(f,u.getStart()));37!==o&&39!==o||fn(f,e,u,kf(f,u.getStart()))})},hyi=function(n,t){return n.schema.getTextInlineElements().hasOwnProperty(d.name(t))&&!pu(t.dom())&&!i.isBogus(t.dom())},ay={},fwt=h.filter,ewt=h.each;kpt=function(n){var t,r,u=n.selection.getRng();t=i.matchNodeNames("pre");u.collapsed||(r=n.selection.getSelectedBlocks(),ewt(fwt(fwt(r,t),function(n){return t(n.previousSibling)&&-1!==h.indexOf(r,n.previousSibling)}),function(n){var t,i;t=n.previousSibling;e(i=n).remove();e(t).append("<br><br>").append(i.childNodes)}))};ay[dg="pre"]||(ay[dg]=[]);ay[dg].push(kpt);var cyi=function(n,t){ewt(ay[n],function(n){n(t)})},lyi=/^(src|href|style)$/,re=t.each,ts=a.isEq,en=function(n){return/^(TH|TD)$/.test(n.nodeName)},owt=function(n,t,r){var u,f,e;return u=t[r?"startContainer":"endContainer"],f=t[r?"startOffset":"endOffset"],i.isElement(u)&&(e=u.childNodes.length-1,!r&&f&&f--,u=u.childNodes[e<f?e:f]),i.isText(u)&&r&&f>=u.nodeValue.length&&(u=new st(u,n.getBody()).next()||u),i.isText(u)&&!r&&0===f&&(u=new st(u,n.getBody()).prev()||u),u},vy=function(n,t,i,r){var u=n.create(i,r);return t.parentNode.insertBefore(u,t),u.appendChild(t),u},yy=function(n,t,i,r){return!(t=a.getNonWhiteSpaceSibling(t,i,r))||"BR"===t.nodeName||n.isBlock(t)},dh=function(n,r,u,f,e){var y,k,nt,tt,it,p,w,l,o,c,v,d,s,b,h=n.dom,g;if(it=h,!(ts(p=f,(w=r).inline)||ts(p,w.block)||(w.selector?i.isElement(p)&&it.is(p,w.selector):void 0)||(tt=f,r.links&&"A"===tt.tagName)))return!1;if("all"!==r.remove)for(re(r.styles,function(n,t){n=a.normalizeStyleValue(h,a.replaceVars(n,u),t);"number"==typeof t&&(t=n,e=0);(r.remove_similar||!e||ts(a.getStyle(h,e,t),n))&&h.setStyle(f,t,"");nt=1}),nt&&""===h.getAttrib(f,"style")&&(f.removeAttribute("style"),f.removeAttribute("data-mce-style")),re(r.attributes,function(n,t){var i;if(n=a.replaceVars(n,u),"number"==typeof t&&(t=n,e=0),!e||ts(h.getAttrib(e,t),n)){if("class"===t&&(n=h.getAttrib(f,t))&&(i="",re(n.split(/\s+/),function(n){/mce\-\w+/.test(n)&&(i+=(i?" ":"")+n)}),i))return void h.setAttrib(f,t,i);"class"===t&&f.removeAttribute("className");lyi.test(t)&&f.removeAttribute("data-mce-"+t);f.removeAttribute(t)}}),re(r.classes,function(n){n=a.replaceVars(n,u);e&&!h.hasClass(e,n)||h.removeClass(f,n)}),k=h.getAttribs(f),y=0;y<k.length;y++)if(g=k[y].nodeName,0!==g.indexOf("_")&&0!==g.indexOf("data-"))return!1;if("none"!==r.remove)return(l=n,c=r,d=(o=f).parentNode,s=l.dom,b=l.settings.forced_root_block,c.block&&(b?d===s.getRoot()&&(c.list_block&&ts(o,c.list_block)||re(t.grep(o.childNodes),function(n){a.isValid(l,b,n.nodeName.toLowerCase())?v?v.appendChild(n):(v=vy(s,n,b),s.setAttribs(v,l.settings.forced_root_block_attrs)):v=0})):s.isBlock(o)&&!s.isBlock(d)&&(yy(s,o,!1)||yy(s,o.firstChild,!0,1)||o.insertBefore(s.create("br"),o.firstChild),yy(s,o,!0)||yy(s,o.lastChild,!1,1)||o.appendChild(s.create("br")))),c.selector&&c.inline&&!ts(c.inline,o)||s.remove(o,1),!0)},on=dh,swt=function(n,r,u,f,e){var k,p,s=n.formatter.get(r),c=s[0],v=!0,o=n.dom,h=n.selection,y=function(t){var i,o,h,l,v,f,y=(i=n,o=t,h=r,l=u,v=e,re(a.getParents(i.dom,o.parentNode).reverse(),function(n){var t;f||"_start"===n.id||"_end"===n.id||(t=hi.matchNode(i,n,h,l,v))&&!1!==t.split&&(f=n)}),f);return function(n,t,i,r,u,f,e,o){var h,s,c,a,l,y,v=n.dom;if(i){for(y=i.parentNode,h=r.parentNode;h&&h!==y;h=h.parentNode){for(s=v.clone(h,!1),l=0;l<t.length;l++)if(dh(n,t[l],o,s,s)){s=0;break}s&&(c&&s.appendChild(c),a||(a=s),c=s)}!f||e.mixed&&v.isBlock(i)||(r=v.split(i,r));c&&(u.parentNode.insertBefore(c,u),a.appendChild(u))}return r}(n,s,y,t,t,!0,c,u)},d=function(r){var e,f,h,a,l;if(i.isElement(r)&&o.getContentEditable(r)&&(a=v,v="true"===o.getContentEditable(r),l=!0),e=t.grep(r.childNodes),v&&!l)for(f=0,h=s.length;f<h&&!dh(n,s[f],u,r,r);f++);if(c.deep&&e.length){for(f=0,h=e.length;f<h;f++)d(e[f]);l&&(v=a)}},w=function(n){var r=o.get(n?"_start":"_end"),t=r[n?"firstChild":"lastChild"];return tr(t)&&(t=t[n?"firstChild":"lastChild"]),i.isText(t)&&0===t.data.length&&(t=n?r.previousSibling||r.nextSibling:r.nextSibling||r.previousSibling),o.remove(r,!0),t},b=function(t){var r,u,f=t.commonAncestorContainer;if(t=yo(n,t,s,!0),c.split){if((r=owt(n,t,!0))!==(u=owt(n,t))){if(/^(TR|TH|TD)$/.test(r.nodeName)&&r.firstChild&&(r="TR"===r.nodeName?r.firstChild.firstChild||r:r.firstChild||r),f&&/^T(HEAD|BODY|FOOT|R)$/.test(f.nodeName)&&en(u)&&u.firstChild&&(u=u.firstChild||u),o.isChildOf(r,u)&&r!==u&&!o.isBlock(u)&&!en(r)&&!en(u))return r=vy(o,r,"span",{id:"_start","data-mce-type":"bookmark"}),y(r),void(r=w(!0));r=vy(o,r,"span",{id:"_start","data-mce-type":"bookmark"});u=vy(o,u,"span",{id:"_end","data-mce-type":"bookmark"});y(r);y(u);r=w(!0);u=w()}else r=u=y(r);t.startContainer=r.parentNode?r.parentNode:r;t.startOffset=o.nodeIndex(r);t.endContainer=u.parentNode?u.parentNode:u;t.endOffset=o.nodeIndex(u)+1}ev(o,t,function(t){re(t,function(t){d(t);i.isElement(t)&&"underline"===n.dom.getStyle(t,"text-decoration")&&t.parentNode&&"underline"===a.getTextDecoration(o,t.parentNode)&&dh(n,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,t)})})},l,g;if(f)f.nodeType?((p=o.createRng()).setStartBefore(f),p.setEndAfter(f),b(p)):b(f);else if("false"!==o.getContentEditable(h.getNode()))h.isCollapsed()&&c.inline&&!o.select("td[data-mce-selected],th[data-mce-selected]").length?function(n,t,i,r){var h,y,p,c,u,f,l,a=n.dom,e=n.selection,w=[],o=e.getRng(),s,v,b;for(h=o.startContainer,y=o.startOffset,3===(u=h).nodeType&&(y!==h.nodeValue.length&&(c=!0),u=u.parentNode);u;){if(hi.matchNode(n,u,t,i,r)){f=u;break}u.nextSibling&&(c=!0);w.push(u);u=u.parentNode}f&&(c?(p=e.getBookmark(),o.collapse(!0),s=yo(n,o,n.formatter.get(t),!0),s=tn(s),n.formatter.remove(t,i,s),e.moveToBookmark(p)):(l=kf(n.getBody(),f),v=rn(!1).dom(),b=uwt(w,v),oyi(n,v,l||f),un(a,e,l,!1),e.setCursorLocation(b,1),a.isEmpty(f)&&a.remove(f)))}(n,r,u,e):(k=ho.getPersistentBookmark(n.selection,!0),b(h.getRng()),h.moveToBookmark(k),c.inline&&hi.match(n,r,u,h.getStart())&&a.moveStart(o,h,h.getRng()),n.nodeChanged());else for(f=h.getNode(),l=0,g=s.length;l<g&&(!s[l].ceFalseOverride||!dh(n,s[l],u,f,f));l++);},gh=t.each,sn=function(n){return n&&1===n.nodeType&&!tr(n)&&!pu(n)&&!i.isBogus(n)},hwt=function(n,t){for(var i=n;i;i=i[t]){if(3===i.nodeType&&0!==i.nodeValue.length)return n;if(1===i.nodeType&&!tr(i))return i}return n},cwt=function(n,i,r){var u,f,e=new bct(n);if(i&&r&&(i=hwt(i,"previousSibling"),r=hwt(r,"nextSibling"),e.compare(i,r))){for(u=i.nextSibling;u&&u!==r;)u=(f=u).nextSibling,i.appendChild(f);return n.remove(r),t.each(t.grep(r.childNodes),function(n){i.appendChild(n)}),i}return r},hn=function(n,t,i){gh(n.childNodes,function(n){sn(n)&&(t(n)&&i(n),n.hasChildNodes()&&hn(n,t,i))})},lwt=function(n,t){return f(function(t,i){return!(!i||!a.getStyle(n,i,t))},t)},awt=function(n,t,i){return f(function(t,i,r){n.setStyle(r,t,i);""===r.getAttribute("style")&&r.removeAttribute("style");ayi(n,r)},t,i)},ayi=function(n,t){"SPAN"===t.nodeName&&0===n.getAttribs(t).length&&n.remove(t,!0)},vwt=function(n,t){var i;1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType&&(i=a.getTextDecoration(n,t.parentNode),n.getStyle(t,"color")&&i?n.setStyle(t,"text-decoration",i):n.getStyle(t,"text-decoration")===i&&n.setStyle(t,"text-decoration",null))},vyi=function(n,t,i,r){gh(t,function(t){gh(n.dom.select(t.inline,r),function(r){sn(r)&&on(n,t,i,r,t.exact?r:null)}),function(n,t,i){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";gh(n.select(r,i),function(i){sn(i)&&gh(t.styles,function(t,r){n.setStyle(i,r,"")})})}}(n.dom,t,r)})},yyi=function(n,i,r,u){(i.styles.color||i.styles.textDecoration)&&(t.walk(u,f(vwt,n),"childNodes"),vwt(n,u))},pyi=function(n,t,i,r){t.styles&&t.styles.backgroundColor&&hn(r,lwt(n,"fontSize"),awt(n,"backgroundColor",a.replaceVars(t.styles.backgroundColor,i)))},wyi=function(n,t,i,r){"sub"!==t.inline&&"sup"!==t.inline||(hn(r,lwt(n,"fontSize"),awt(n,"fontSize","")),n.remove(n.select("sup"===t.inline?"sub":"sup",r),!0))},byi=function(n,t,i,r){r&&!1!==t.merge_siblings&&(r=cwt(n,a.getNonWhiteSpaceSibling(r),r),r=cwt(n,r,a.getNonWhiteSpaceSibling(r,!0)))},kyi=function(n,t,i,r,u){hi.matchNode(n,u.parentNode,i,r)&&on(n,t,r,u)||t.merge_with_parents&&n.dom.getParent(u.parentNode,function(f){if(hi.matchNode(n,f,i,r))return on(n,t,r,u),!0})},ir=t.each,ywt=function(n,r,u,f){var w,v,s=n.formatter.get(r),e=s[0],b=!f&&n.selection.isCollapsed(),o=n.dom,h=n.selection,c=function(n,t){if(t=t||e,n){if(t.onformat&&t.onformat(n,t,u,f),ir(t.styles,function(t,i){o.setStyle(n,i,a.replaceVars(t,u))}),t.styles){var i=o.getAttrib(n,"style");i&&n.setAttribute("data-mce-style",i)}ir(t.attributes,function(t,i){o.setAttrib(n,i,a.replaceVars(t,u))});ir(t.classes,function(t){t=a.replaceVars(t,u);o.hasClass(n,t)||o.addClass(n,t)})}},k=function(n,t){var i=!1;return!!e.selector&&(ir(n,function(n){if(!("collapsed"in n&&n.collapsed!==b))return o.is(t,n.selector)&&!pu(t)?(c(t,n),!(i=!0)):void 0}),i)},y=function(f,o,h,l){var v,w,p=[],y=!0;v=e.inline||e.block;w=f.create(v);c(w);ev(f,o,function(i){var o,h=function(i){var b,g,d,nt,tt;if(nt=y,b=i.nodeName.toLowerCase(),g=i.parentNode.nodeName.toLowerCase(),1===i.nodeType&&f.getContentEditable(i)&&(nt=y,y="true"===f.getContentEditable(i),d=!0),a.isEq(b,"br"))return o=0,void(e.block&&f.remove(i));if(e.wrapper&&hi.matchNode(n,i,r,u))o=0;else{if(y&&!d&&e.block&&!e.wrapper&&a.isTextBlock(n,b)&&a.isValid(n,g,v))return i=f.rename(i,v),c(i),p.push(i),void(o=0);if(e.selector&&(tt=k(s,i),!e.inline||tt))return void(o=0);!y||d||!a.isValid(n,v,b)||!a.isValid(n,g,v)||!l&&3===i.nodeType&&1===i.nodeValue.length&&65279===i.nodeValue.charCodeAt(0)||pu(i)||e.inline&&f.isBlock(i)?(o=0,ir(t.grep(i.childNodes),h),d&&(y=nt),o=0):(o||(o=f.clone(w,!1),i.parentNode.insertBefore(o,i),p.push(o)),o.appendChild(i))}};ir(i,h)});!0===e.links&&ir(p,function(n){var i=function(n){"A"===n.nodeName&&c(n,e);ir(t.grep(n.childNodes),i)};i(n)});ir(p,function(t){var l,v,y,o,h,w=function(n){var t=!1;return ir(n.childNodes,function(n){if((r=n)&&1===r.nodeType&&!tr(r)&&!pu(r)&&!i.isBogus(r))return t=n,!1;var r}),t};v=0;ir(t.childNodes,function(n){a.isWhiteSpaceNode(n)||tr(n)||v++});l=v;!(1<p.length)&&f.isBlock(t)||0!==l?(e.inline||e.wrapper)&&(e.exact||1!==l||((o=w(y=t))&&!tr(o)&&hi.matchName(f,o,e)&&(h=f.clone(o,!1),c(h),f.replace(h,y,!0),f.remove(o,1)),t=h||y),vyi(n,s,u,t),kyi(n,e,r,u,t),pyi(f,e,u,t),wyi(f,e,u,t),byi(f,e,u,t)):f.remove(t,1)})},p,l,d;if("false"!==o.getContentEditable(h.getNode()))e&&(f?f.nodeType?k(s,f)||((v=o.createRng()).setStartBefore(f),v.setEndAfter(f),y(o,yo(n,v,s),0,!0)):y(o,f,0,!0):b&&e.inline&&!o.select("td[data-mce-selected],th[data-mce-selected]").length?!function(n,t,i){var r,f,s,u,c,e,o=n.selection,l,a,h;u=(r=o.getRng(!0)).startOffset;e=r.startContainer.nodeValue;(f=kf(n.getBody(),o.getStart()))&&(s=iwt(f));h=/[^\s\u00a0\u00ad\u200b\ufeff]/;e&&0<u&&u<e.length&&h.test(e.charAt(u))&&h.test(e.charAt(u-1))?(c=o.getBookmark(),r.collapse(!0),r=yo(n,r,n.formatter.get(t)),r=tn(r),n.formatter.apply(t,i,r),o.moveToBookmark(c)):(f&&s.nodeValue===ns||(l=n.getDoc(),a=rn(!0).dom(),s=(f=l.importNode(a,!0)).firstChild,r.insertNode(f),u=1),n.formatter.apply(t,i,f),o.setCursorLocation(s,u))}(n,r,u):(p=n.selection.getNode(),n.settings.forced_root_block||!s[0].defaultBlock||o.getParent(p,o.isBlock)||ywt(n,s[0].defaultBlock),n.selection.setRng(ud(n.selection.getRng())),w=ho.getPersistentBookmark(n.selection,!0),y(o,yo(n,h.getRng(),s)),e.styles&&yyi(o,e,u,p),h.moveToBookmark(w),a.moveStart(o,h,h.getRng()),n.nodeChanged()),cyi(r,n));else for(f=h.getNode(),l=0,d=s.length;l<d;l++)if(s[l].ceFalseOverride&&o.is(f,s[l].selector))return void c(f,s[l])},pwt={applyFormat:ywt},is=t.each,dyi=function(n,i,r,u,f){var h,o,s,c,l,v,y,e;null===i.get()&&(o=n,s={},(h=i).set({}),o.on("NodeChange",function(n){var i=a.getParents(o.dom,n.element),r={};i=t.grep(i,function(n){return 1===n.nodeType&&!n.getAttribute("data-mce-bogus")});is(h.get(),function(n,t){is(i,function(u){return o.formatter.matchNode(u,t,{},n.similar)?(s[t]||(is(n,function(n){n(!0,{node:u,format:t,parents:i})}),s[t]=n),r[t]=n,!1):!hi.matchesUnInheritedFormatSelector(o,u,t)&&void 0})});is(s,function(t,u){r[u]||(delete s[u],is(t,function(t){t(!1,{node:n.element,format:u,parents:i})}))})}));l=r;v=u;y=f;e=(c=i).get();is(l.split(","),function(n){e[n]||(e[n]=[],e[n].similar=y);e[n].push(v)});c.set(e)},gyi={get:function(n){var i={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(){return!0},onformat:function(i,r,u){t.each(u,function(t,r){n.setAttrib(i,r,t)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return t.each("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),function(n){i[n]={block:n,remove:"all"}}),i}},py=t.each,at=g.DOM,wwt=function(n,i){var f,r,e,s=i&&i.schema||lu({}),u=function(n){var t,i,u;return r="string"==typeof n?{name:n,classes:[],attrs:{}}:n,t=at.create(r.name),i=t,(u=r).classes.length&&at.addClass(i,u.classes.join(" ")),at.setAttribs(i,u.attrs),t},o=function(n,i,r){var e,f,l,a,h,p,v,c,y=0<i.length&&i[0],w=y&&y.name;if(h=w,p="string"!=typeof(a=n)?a.nodeName.toLowerCase():a,v=s.getElementRule(p),l=!(!(c=v&&v.parentsRequired)||!c.length)&&(h&&-1!==t.inArray(c,h)?h:c[0]))w===l?(f=i[0],i=i.slice(1)):f=l;else if(y)f=i[0],i=i.slice(1);else if(!r)return n;return f&&(e=u(f)).appendChild(n),r&&(e||(e=at.create("div")).appendChild(n),t.each(r,function(t){var i=u(t);e.insertBefore(i,n)})),o(e,i,f&&f.siblings)};return n&&n.length?(r=n[0],f=u(r),(e=at.create("div")).appendChild(o(f,n.slice(1),r.siblings)),e):""},npi=function(n){var r,i={classes:[],attrs:{}};return"*"!==(n=i.selector=t.trim(n))&&(r=n.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,function(n,r,u,f,e){switch(r){case"#":i.attrs.id=u;break;case".":i.classes.push(u);break;case":":-1!==t.inArray("checked disabled enabled read-only required".split(" "),u)&&(i.attrs[u]=u)}if("["===f){var o=e.match(/([\w\-]+)(?:\=\"([^\"]+))?/);o&&(i.attrs[o[1]]=o[2])}return""})),i.name=r||"div",i},tpi=function(n){return n&&"string"==typeof n?(n=(n=n.split(/\s*,\s*/)[0]).replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),t.map(n.split(/(?:>|\s+(?![^\[\]]+\]))/),function(n){var i=t.map(n.split(/(?:~\+|~|\+)/),npi),r=i.pop();return i.length&&(r.siblings=i),r}).reverse()):[]},ipi=function(n,t){var f,i,r,o,u,e,h="",s;if(!1===(e=n.settings.preview_styles))return"";if("string"!=typeof e&&(e="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"),s=function(n){return n.replace(/%(\w+)/g,"")},"string"==typeof t){if(!(t=n.formatter.get(t)))return;t=t[0]}return"preview"in t&&!1===(e=t.preview)?"":(f=t.block||t.inline||"span",(o=tpi(t.selector)).length?(o[0].name||(o[0].name=f),f=t.selector,i=wwt(o,n)):i=wwt([f],n),r=at.select(f,i)[0]||i.firstChild,py(t.styles,function(n,t){(n=s(n))&&at.setStyle(r,t,n)}),py(t.attributes,function(n,t){(n=s(n))&&at.setAttrib(r,t,n)}),py(t.classes,function(n){n=s(n);at.hasClass(r,n)||at.addClass(r,n)}),n.fire("PreviewFormats"),at.setStyles(i,{position:"absolute",left:-65535}),n.getBody().appendChild(i),u=at.getStyle(n.getBody(),"fontSize",!0),u=/px$/.test(u)?parseInt(u,10):0,py(e.split(" "),function(t){var i=at.getStyle(r,t,!0);if(!("background-color"===t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(i)&&(i=at.getStyle(n.getBody(),t,!0),"#ffffff"===at.toHex(i).toLowerCase())||"color"===t&&"#000000"===at.toHex(i).toLowerCase())){if("font-size"===t&&/em|%$/.test(i)){if(0===u)return;i=parseFloat(i)/(/%$/.test(i)?100:1)*u+"px"}"border"===t&&i&&(h+="padding:0 2px;");h+=t+":"+i+";"}}),n.fire("AfterPreviewFormats"),at.remove(i),h)},rpi=function(n,t,i,r,u){var f=t.get(i);!hi.match(n,i,r,u)||"toggle"in f[0]&&!f[0].toggle?pwt.applyFormat(n,i,r,u):swt(n,i,r,u)},upi=function(n){n.addShortcut("meta+b","","Bold");n.addShortcut("meta+i","","Italic");n.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)n.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);n.addShortcut("access+7","",["FormatBlock",!1,"p"]);n.addShortcut("access+8","",["FormatBlock",!1,"div"]);n.addShortcut("access+9","",["FormatBlock",!1,"address"])};var kwt,fpi=Object.prototype.hasOwnProperty,nc=(kwt=function(n,t){return t},function(){for(var r,u,f,i,n=new Array(arguments.length),t=0;t<n.length;t++)n[t]=arguments[t];if(0===n.length)throw new Error("Can't merge zero objects");for(r={},u=0;u<n.length;u++){f=n[u];for(i in f)fpi.call(f,i)&&(r[i]=kwt(r[i],f[i]))}return r}),dwt={register:function(n,t,i){n.addAttributeFilter("data-mce-tabindex",function(n,t){for(var i,r=n.length;r--;)(i=n[r]).attr("tabindex",i.attributes.map["data-mce-tabindex"]),i.attr(t,null)});n.addAttributeFilter("src,href,style",function(n,r){for(var f,u,e=n.length,o="data-mce-"+r,s=t.url_converter,h=t.url_converter_scope;e--;)(u=(f=n[e]).attributes.map[o])!==undefined?(f.attr(r,0<u.length?u:null),f.attr(o,null)):(u=f.attributes.map[r],"style"===r?u=i.serializeStyle(i.parseStyle(u),f.name):s&&(u=s.call(h,u,r,f.name)),f.attr(r,0<u.length?u:null))});n.addAttributeFilter("class",function(n){for(var i,t,r=n.length;r--;)(t=(i=n[r]).attr("class"))&&(t=i.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),i.attr("class",0<t.length?t:null))});n.addAttributeFilter("data-mce-type",function(n,t,i){for(var r,u=n.length;u--;)"bookmark"!==(r=n[u]).attributes.map["data-mce-type"]||i.cleanup||r.remove()});n.addNodeFilter("noscript",function(n){for(var t,i=n.length;i--;)(t=n[i].firstChild)&&(t.value=wf.decode(t.value))});n.addNodeFilter("script,style",function(n,i){for(var r,u,f,e=n.length,o=function(n){return n.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};e--;)u=(r=n[e]).firstChild?r.firstChild.value:"","script"===i?((f=r.attr("type"))&&r.attr("type","mce-no/type"===f?null:f.replace(/^mce\-/,"")),"xhtml"===t.element_format&&0<u.length&&(r.firstChild.value="// <![CDATA[\n"+o(u)+"\n// ]\]>")):"xhtml"===t.element_format&&0<u.length&&(r.firstChild.value="<!--\n"+o(u)+"\n-->")});n.addNodeFilter("#comment",function(n){for(var t,i=n.length;i--;)0===(t=n[i]).value.indexOf("[CDATA[")?(t.name="#cdata",t.type=4,t.value=t.value.replace(/^\[CDATA\[|\]\]$/g,"")):0===t.value.indexOf("mce:protected ")&&(t.name="#text",t.type=3,t.raw=!0,t.value=unescape(t.value).substr(14))});n.addNodeFilter("xml:namespace,input",function(n,t){for(var i,r=n.length;r--;)7===(i=n[r]).type?i.remove():1===i.type&&("input"!==t||"type"in i.attributes.map||i.attr("type","text"))});n.addAttributeFilter("data-mce-type",function(t){l(t,function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(n.schema.getNonEmptyElements())?t.remove():t.unwrap())})});n.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize",function(n,t){for(var i=n.length;i--;)n[i].attr(t,null)})},trimTrailingBr:function(n){var t,i,r=function(n){return n&&"br"===n.name};r(t=n.lastChild)&&r(i=t.prev)&&(t.remove(),i.remove())}},epi={process:function(n,i,r){return a=r,(l=n)&&l.hasEventListeners("PreProcess")&&!a.no_events?(u=i,h=r,e=(s=n).dom,u=u.cloneNode(!0),(c=document.implementation).createHTMLDocument&&(f=c.createHTMLDocument(""),t.each("BODY"===u.nodeName?u.childNodes:[u],function(n){f.body.appendChild(f.importNode(n,!0))}),u="BODY"!==u.nodeName?f.body.firstChild:f.body,o=e.doc,e.doc=f),uli(s,nc(h,{node:u})),o&&(e.doc=o),u):i;var s,u,h,c,f,o,e,l,a}},opi=function(n,t,i){n.addNodeFilter("font",function(n){l(n,function(n){var u,r=t.parse(n.attr("style")),f=n.attr("color"),e=n.attr("face"),o=n.attr("size");f&&(r.color=f);e&&(r["font-family"]=e);o&&(r["font-size"]=i[parseInt(n.attr("size"),10)-1]);n.name="span";n.attr("style",t.serialize(r));u=n;l(["color","face","size"],function(n){u.attr(n,null)})})})},spi=function(n,i){var r,u=hb();i.convert_fonts_to_spans&&opi(n,u,t.explode(i.font_size_legacy_values));r=u;n.addNodeFilter("strike",function(n){l(n,function(n){var t=r.parse(n.attr("style"));t["text-decoration"]="line-through";n.name="span";n.attr("style",r.serialize(t))})})},hpi={register:function(n,t){t.inline_styles&&spi(n,t)}},gwt=/^[ \t\r\n]*$/,cpi={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},wy=function(n,t,i){var u,r,f=i?"lastChild":"firstChild",e=i?"prev":"next";if(n[f])return n[f];if(n!==t){if(u=n[e])return u;for(r=n.parent;r&&r!==t;r=r.parent)if(u=r[e])return u}},wi=function(){function n(n,t){this.name=n;1===(this.type=t)&&(this.attributes=[],this.attributes.map={})}return n.create=function(t,i){var r,u;if(r=new n(t,cpi[t]||1),i)for(u in i)r.attr(u,i[u]);return r},n.prototype.replace=function(n){return n.parent&&n.remove(),this.insert(n,this),this.remove(),this},n.prototype.attr=function(n,t){var i,r;if("string"!=typeof n){for(r in n)this.attr(r,n[r]);return this}if(i=this.attributes){if(t!==undefined){if(null===t){if(n in i.map)for(delete i.map[n],r=i.length;r--;)if(i[r].name===n)return i=i.splice(r,1),this;return this}if(n in i.map){for(r=i.length;r--;)if(i[r].name===n){i[r].value=t;break}}else i.push({name:n,value:t});return i.map[n]=t,this}return i.map[n]}},n.prototype.clone=function(){var r,e,f,t,i,u=new n(this.name,this.type);if(f=this.attributes){for((i=[]).map={},r=0,e=f.length;r<e;r++)"id"!==(t=f[r]).name&&(i[i.length]={name:t.name,value:t.value},i.map[t.name]=t.value);u.attributes=i}return u.value=this.value,u.shortEnded=this.shortEnded,u},n.prototype.wrap=function(n){return this.parent.insert(n,this),n.append(this),this},n.prototype.unwrap=function(){for(var t,n=this.firstChild;n;)t=n.next,this.insert(n,this,!0),n=t;this.remove()},n.prototype.remove=function(){var n=this.parent,t=this.next,i=this.prev;return n&&(n.firstChild===this?(n.firstChild=t)&&(t.prev=null):i.next=t,n.lastChild===this?(n.lastChild=i)&&(i.next=null):t.prev=i,this.parent=this.next=this.prev=null),this},n.prototype.append=function(n){var t;return n.parent&&n.remove(),(t=this.lastChild)?((t.next=n).prev=t,this.lastChild=n):this.lastChild=this.firstChild=n,n.parent=this,n},n.prototype.insert=function(n,t,i){var r;return n.parent&&n.remove(),r=t.parent||this,i?(t===r.firstChild?r.firstChild=n:t.prev.next=n,n.prev=t.prev,(n.next=t).prev=n):(t===r.lastChild?r.lastChild=n:t.next.prev=n,n.next=t.next,(n.prev=t).next=n),n.parent=r,n},n.prototype.getAll=function(n){for(var i=[],t=this.firstChild;t;t=wy(t,this))t.name===n&&i.push(t);return i},n.prototype.empty=function(){var t,i,n;if(this.firstChild){for(t=[],n=this.firstChild;n;n=wy(n,this))t.push(n);for(i=t.length;i--;)(n=t[i]).parent=n.firstChild=n.lastChild=n.next=n.prev=null}return this.firstChild=this.lastChild=null,this},n.prototype.isEmpty=function(n,t,i){var u,f,r=this.firstChild;if(t=t||{},r)do{if(1===r.type){if(r.attributes.map["data-mce-bogus"])continue;if(n[r.name])return!1;for(u=r.attributes.length;u--;)if("name"===(f=r.attributes[u].name)||0===f.indexOf("data-mce-bookmark"))return!1}if(8===r.type||3===r.type&&!gwt.test(r.value)||3===r.type&&r.parent&&t[r.parent.name]&&gwt.test(r.value)||i&&i(r))return!1}while(r=wy(r,this));return!0},n.prototype.walk=function(n){return wy(this,null,n)},n}(),nbt=function(n,t,i,r){(n.padd_empty_with_br||t.insert)&&i[r.name]?r.empty().append(new wi("br",1)).shortEnded=!0:r.empty().append(new wi("#text",3)).value=" "},lpi=function(n){return tbt(n,"#text")&&" "===n.firstChild.value},tbt=function(n,t){return n&&n.firstChild&&n.firstChild===n.lastChild&&n.firstChild.name===t},tc=function(n,t,i,r){return r.isEmpty(t,i,function(t){return i=t,(r=n.getElementRule(i.name))&&r.paddEmpty;var i,r})},api=function(n,t){return n&&(t[n.name]||"br"===n.name)},vpi=function(n,i){var r=n.schema;i.remove_trailing_brs&&n.addNodeFilter("br",function(n,u,f){var c,o,e,h,s,a,v,y,p=n.length,l=t.extend({},r.getBlockElements()),w=r.getNonEmptyElements(),b=r.getNonEmptyElements();for(l.body=1,c=0;c<p;c++)if(e=(o=n[c]).parent,l[o.parent.name]&&o===e.lastChild){for(s=o.prev;s;){if("span"!==(a=s.name)||"bookmark"!==s.attr("data-mce-type")){if("br"!==a)break;if("br"===a){o=null;break}}s=s.prev}o&&(o.remove(),tc(r,w,b,e)&&(v=r.getElementRule(e.name))&&(v.removeEmpty?e.remove():v.paddEmpty&&nbt(i,f,l,e)))}else{for(h=o;e&&e.firstChild===h&&e.lastChild===h&&!l[(h=e).name];)e=e.parent;h===e&&!0!==i.padd_empty_with_br&&((y=new wi("#text",3)).value=" ",o.replace(y))}});n.addAttributeFilter("href",function(n){var r,f,u,e=n.length;if(!i.allow_unsafe_link_target)for(;e--;)"a"===(r=n[e]).name&&"_blank"===r.attr("target")&&r.attr("rel",(f=r.attr("rel"),u=f?t.trim(f):"",/\b(noopener)\b/g.test(u)?u:u.split(" ").filter(function(n){return 0<n.length}).concat(["noopener"]).sort().join(" ")))});i.allow_html_in_named_anchor||n.addAttributeFilter("id,name",function(n){for(var i,r,u,t,f=n.length;f--;)if("a"===(t=n[f]).name&&t.firstChild&&!t.attr("href"))for(u=t.parent,i=t.lastChild;r=i.prev,u.insert(i,t),i=r;);});i.fix_list_elements&&n.addNodeFilter("ul,ol",function(n){for(var t,u,r,i=n.length;i--;)("ul"===(u=(t=n[i]).parent).name||"ol"===u.name)&&(t.prev&&"li"===t.prev.name?t.prev.append(t):(r=new wi("li",1),r.attr("style","list-style-type: none"),t.wrap(r)))});i.validate&&r.getValidClasses()&&n.addAttributeFilter("class",function(n){for(var o,s,f,e,t,i,u,h=n.length,c=r.getValidClasses();h--;){for(s=(o=n[h]).attr("class").split(" "),t="",f=0;f<s.length;f++)e=s[f],u=!1,(i=c["*"])&&i[e]&&(u=!0),i=c[o.name],!u&&i&&i[e]&&(u=!0),u&&(t&&(t+=" "),t+=e);t.length||(t=null);o.attr("class",t)}})},ibt=t.makeMap,rbt=t.each,ubt=t.explode,ypi=t.extend;var ppi=function(n,i,r){-1===t.inArray(i,r)&&(n.addAttributeFilter(r,function(n,t){for(var i=n.length;i--;)n[i].attr(t,null)}),i.push(r))},wpi=function(n,i,u){var f=vu(u.getInner?i.innerHTML:n.getOuterHTML(i));return u.selection||na(r.fromDom(i))?f:t.trim(f)},bpi=function(n,t,i){var u=i.selection?nc({forced_root_block:!1},i):i,r=n.parse(t,u);return dwt.trimTrailingBr(r),r},kpi=function(n,t,i,r,u){var o,f,s,e,h=(o=r,ch(t,i).serialize(o));return f=n,e=h,!(s=u).no_events&&f?fli(f,nc(s,{content:e})).content:e};(ln||(ln={})).isBookmarkNode=tr;var ebt=ln,obt=i.isContentEditableFalse,dpi=i.isContentEditableTrue,sbt=function(n,i){var f,e,k,d,l,lt,at,g,nt,v,p,tt,it,o,h,vt,yt,u=i.dom,pt=t.each,w=i.getDoc(),b=document,wt=Math.abs,ft=Math.round,c=i.getBody(),a;d={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};a=".mce-content-body";i.contentStyles.push(a+" div.mce-resizehandle {position: absolute;border: 1px solid black;box-sizing: content-box;background: #FFF;width: 7px;height: 7px;z-index: 10000}"+a+" .mce-resizehandle:hover {background: #000}"+a+" img[data-mce-selected],"+a+" hr[data-mce-selected] {outline: 1px solid black;resize: none}"+a+" .mce-clonedresizable {position: absolute;"+(s.gecko?"":"outline: 1px dashed black;")+"opacity: .5;filter: alpha(opacity=50);z-index: 10000}"+a+" .mce-resize-helper {background: #555;background: rgba(0,0,0,0.75);border-radius: 3px;border: 1px;color: white;display: none;font-family: sans-serif;font-size: 12px;white-space: nowrap;line-height: 14px;margin: 5px 10px;padding: 5px;position: absolute;z-index: 10001}");var st=function(n){return n&&("IMG"===n.nodeName||i.dom.is(n,"figure.image"))},ti=function(n){var t,r,u=n.target;t=n;r=i.selection.getRng();!st(t.target)||cpt(t.clientX,t.clientY,r)||n.isDefaultPrevented()||(n.preventDefault(),i.selection.select(u))},rt=function(n){return i.dom.is(n,"figure.image")?n.querySelector("img"):n},bt=function(n){var t=i.settings.object_resizing;return!1!==t&&!s.iOS&&("string"!=typeof t&&(t="table,img,figure.image,div"),"false"!==n.getAttribute("data-mce-resize")&&n!==i.getBody()&&su.is(r.fromDom(n),t))},et=function(n){var t,r,s,a;t=n.screenX-lt;r=n.screenY-at;o=t*l[2]+v;h=r*l[3]+p;o=o<5?5:o;h=h<5?5:h;(st(f)&&!1!==i.settings.resize_img_proportional?!y.modifierPressed(n):y.modifierPressed(n)||st(f)&&l[2]*l[3]!=0)&&(wt(t)>wt(r)?(h=ft(o*tt),o=ft(h/tt)):(o=ft(h/tt),h=ft(o*tt)));u.setStyles(rt(e),{width:o,height:h});s=0<(s=l.startPos.x+t)?s:0;a=0<(a=l.startPos.y+r)?a:0;u.setStyles(k,{left:s,top:a,display:"block"});k.innerHTML=o+" &times; "+h;l[2]<0&&e.clientWidth<=o&&u.setStyle(e,"left",g+(v-o));l[3]<0&&e.clientHeight<=h&&u.setStyle(e,"top",nt+(p-h));(t=c.scrollWidth-vt)+(r=c.scrollHeight-yt)!=0&&u.setStyles(k,{left:s-t,top:a-r});it||(sli(i,f,v,p),it=!0)},ot=function(){it=!1;var n=function(n,t){t&&(f.style[n]||!i.schema.isValid(f.nodeName.toLowerCase(),n)?u.setStyle(rt(f),n,t):u.setAttrib(rt(f),n,t))};n("width",o);n("height",h);u.unbind(w,"mousemove",et);u.unbind(w,"mouseup",ot);b!==w&&(u.unbind(b,"mousemove",et),u.unbind(b,"mouseup",ot));u.remove(e);u.remove(k);ht(f);hli(i,f,o,h);u.setAttrib(f,"style",u.getAttrib(f,"style"));i.nodeChanged()},ht=function(n){var r,a,y,it,t;ut();ct();r=u.getPos(n,c);g=r.x;nt=r.y;t=n.getBoundingClientRect();a=t.width||t.right-t.left;y=t.height||t.bottom-t.top;f!==n&&(f=n,o=h=0);it=i.fire("ObjectSelected",{target:n});bt(n)&&!it.isDefaultPrevented()?pt(d,function(n,t){var i;(i=u.get("mceResizeHandle"+t))&&u.remove(i);i=u.add(c,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all","class":"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"});11===s.ie&&(i.contentEditable=!1);u.bind(i,"mousedown",function(t){var i;t.stopImmediatePropagation();t.preventDefault();lt=(i=t).screenX;at=i.screenY;v=rt(f).clientWidth;p=rt(f).clientHeight;tt=p/v;(l=n).startPos={x:a*n[0]+g,y:y*n[1]+nt};vt=c.scrollWidth;yt=c.scrollHeight;e=f.cloneNode(!0);u.addClass(e,"mce-clonedresizable");u.setAttrib(e,"data-mce-bogus","all");e.contentEditable=!1;e.unSelectabe=!0;u.setStyles(e,{left:g,top:nt,margin:0});e.removeAttribute("data-mce-selected");c.appendChild(e);u.bind(w,"mousemove",et);u.bind(w,"mouseup",ot);b!==w&&(u.bind(b,"mousemove",et),u.bind(b,"mouseup",ot));k=u.add(c,"div",{"class":"mce-resize-helper","data-mce-bogus":"all"},v+" &times; "+p)});n.elm=i;u.setStyles(i,{left:a*n[0]+g-i.offsetWidth/2,top:y*n[1]+nt-i.offsetHeight/2})}):ut();f.setAttribute("data-mce-selected","1")},ut=function(){var t,n;for(t in ct(),f&&f.removeAttribute("data-mce-selected"),d)(n=u.get("mceResizeHandle"+t))&&(u.unbind(n),u.remove(n))},kt=function(t){var r,f=function(n,t){if(n)do if(n===t)return!0;while(n=n.parentNode)};it||i.removed||(pt(u.select("img[data-mce-selected],hr[data-mce-selected]"),function(n){n.removeAttribute("data-mce-selected")}),r="mousedown"===t.type?t.target:n.getNode(),f(r=u.$(r).closest("table,img,figure.image,hr")[0],c)&&(ni(),f(n.getStart(!0),r)&&f(n.getEnd(!0),r))?ht(r):ut())},dt=function(n){return obt(function(n,t){for(;t&&t!==n;){if(dpi(t)||obt(t))return t;t=t.parentNode}return null}(i.getBody(),n))},ct=function(){var t,n;for(t in d)n=d[t],n.elm&&(u.unbind(n.elm),delete n.elm)},ni=function(){try{i.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(n){}};return i.on("init",function(){ni();s.ie&&11<=s.ie&&(i.on("mousedown click",function(n){var t=n.target,r=t.nodeName;it||!/^(TABLE|IMG|HR)$/.test(r)||dt(t)||(2!==n.button&&i.selection.select(t,"TABLE"===r),"mousedown"===n.type&&i.nodeChanged())}),i.dom.bind(c,"mscontrolselect",function(n){var t=function(n){gt.setEditorTimeout(i,function(){i.selection.select(n)})};if(dt(n.target))return n.preventDefault(),void t(n.target);/^(TABLE|IMG|HR)$/.test(n.target.nodeName)&&(n.preventDefault(),"IMG"===n.target.tagName&&t(n.target))}));var n=gt.throttle(function(n){i.composing||kt(n)});i.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",n);i.on("keyup compositionend",function(t){f&&"TABLE"===f.nodeName&&n(t)});i.on("hide blur",ut);i.on("contextmenu",ti)}),i.on("remove",ct),{isResizable:bt,showResizeRect:ht,hideResizeRect:ut,updateResizeRect:kt,destroy:function(){f=e=null}}},gpi=function(n){return i.isContentEditableTrue(n)||i.isContentEditableFalse(n)},an=function(n,r,u){var f,s,e,h,c,o=u;if(o.caretPositionFromPoint)(s=o.caretPositionFromPoint(n,r))&&((f=u.createRange()).setStart(s.offsetNode,s.offset),f.collapse(!0));else if(u.caretRangeFromPoint)f=u.caretRangeFromPoint(n,r);else if(o.body.createTextRange){f=o.body.createTextRange();try{f.moveToPoint(n,r);f.collapse(!0)}catch(l){f=function(n,i,r){var f,u,e;if(f=r.elementFromPoint(n,i),u=r.body.createTextRange(),f&&"HTML"!==f.tagName||(f=r.body),u.moveToElementText(f),0<(e=(e=t.toArray(u.getClientRects())).sort(function(n,t){return(n=Math.abs(Math.max(n.top-i,n.bottom-i)))-(t=Math.abs(Math.max(t.top-i,t.bottom-i)))})).length){i=(e[0].bottom+e[0].top)/2;try{return u.moveToPoint(n,i),u.collapse(!0),u}catch(o){}}return null}(n,r,u)}return e=f,h=u.body,c=e&&e.parentElement?e.parentElement():null,i.isContentEditableFalse(function(n,t,i){for(;n&&n!==t;){if(i(n))return n;n=n.parentNode}return null}(c,h,gpi))?null:e}return f},vn=function(n,t){return dt(t,function(t){var i=n.fire("GetSelectionRange",{range:t});return i.range!==t?i.range:t})},yn=function(n,t){var i=(t||document).createDocumentFragment();return l(n,function(n){i.appendChild(n.dom())}),r.fromDom(i)},pn=or("element","width","rows"),hbt=or("element","cells"),nwi=or("x","y"),cbt=function(n,t){var i=parseInt(it.get(n,t),10);return isNaN(i)?1:i},lbt=function(n){return hf(n,function(n,t){return t.cells().length>n?t.cells().length:n},0)},abt=function(t,i){for(var e,u,f=t.rows(),r=0;r<f.length;r++)for(e=f[r].cells(),u=0;u<e.length;u++)if(w.eq(e[u],i))return n.some(nwi(u,r));return n.none()},vbt=function(n,t,i,r,u){for(var e,h,o=[],s=n.rows(),f=i;f<=u;f++)e=s[f].cells(),h=t<r?e.slice(t,r+1):e.slice(r,t+1),o.push(hbt(s[f].element(),h));return o},twi=function(n){var t=pn(to(n),0,[]);return l(gi(n,"tr"),function(n,i){l(gi(n,"td,th"),function(r,u){!function(n,t,i,r,u){for(var e,s=cbt(u,"rowspan"),h=cbt(u,"colspan"),o=n.rows(),f=i;f<i+s;f++)for(o[f]||(o[f]=hbt(ket(r),[])),e=t;e<t+h;e++)o[f].cells()[e]=f===i&&e===t?u:to(u)}(t,function(n,t,i){for(;f=t,r=i,u=void 0,((u=n.rows())[r]?u[r].cells():[])[f];)t++;var f,r,u;return t}(t,u,i),i,n,r)})}),pn(t.element(),lbt(t.rows()),t.rows())},iwi=function(n){return f=dt((u=n).rows(),function(n){var i=dt(n.cells(),function(n){var t=ket(n);return it.remove(t,"colspan"),it.remove(t,"rowspan"),t}),t=to(n.element());return ab(t,i),t}),t=to(u.element()),i=r.fromTag("tbody"),ab(i,f),rt.append(t,i),t;var u,f,t,i},rwi=function(n,t,i){return abt(n,t).bind(function(t){return abt(n,i).map(function(i){return r=n,e=i,o=(c=t).x(),u=c.y(),s=e.x(),f=e.y(),h=u<f?vbt(r,o,u,s,f):vbt(r,o,f,s,u),pn(r.element(),lbt(h),h);var r,c,e,o,u,s,f,h})})},uwi=function(n,t){return ui(n,function(n){return"li"===d.name(n)&&kai(n,t)}).fold(o([]),function(){return(t=n,ui(t,function(n){return"ul"===d.name(n)||"ol"===d.name(n)})).map(function(n){return[r.fromTag("li"),r.fromTag(d.name(n))]}).getOr([]);var t})},fwi=function(n,t){var i,u=r.fromDom(t.commonAncestorContainer),f=lh(u,n),s=vt(f,function(n){return sft(n)||bti(n)}),e=uwi(f,t),h=s.concat(e.length?e:dl(i=u)?v.parent(i).filter(lft).fold(o([]),function(n){return[i,n]}):lft(i)?[i]:[]);return dt(h,to)},ybt=function(){return yn([])},ewi=function(n,t){return f=r.fromDom(t.cloneContents()),i=fwi(n,t),u=hf(i,function(n,t){return rt.append(t,n),t},f),0<i.length?yn([u]):u;var f,i,u},owi=function(n,t){return(i=n,r=t[0],pb(r,"table",f(w.eq,i))).bind(function(n){var i=t[0],r=t[t.length-1],u=twi(n);return rwi(u,i,r).map(function(n){return yn([iwi(n)])})}).getOrThunk(ybt);var i,r},swi=function(n,t){var r,i,u=whi(t,n);return 0<u.length?owi(n,u):(r=n,0<(i=t).length&&i[0].collapsed?ybt():ewi(r,i[0]))},hwi=function(n,t){var o,i=n.selection.getRng(),u=n.dom.create("body"),f=n.selection.getSel(),s=vn(n,bat(f)),e;return((t=t||{}).get=!0,t.format=t.format||"html",t.selection=!0,(t=n.fire("BeforeGetContent",t)).isDefaultPrevented())?(n.fire("GetContent",t),t.content):"text"===t.format?n.selection.isCollapsed()?"":vu(i.text||(f.toString?f.toString():"")):(i.cloneContents?(o=t.contextual?swi(r.fromDom(n.getBody()),s).dom():i.cloneContents())&&u.appendChild(o):i.item!==undefined||i.htmlText!==undefined?(u.innerHTML="<br>"+(i.item?i.item(0).outerHTML:i.htmlText),u.removeChild(u.firstChild)):u.innerHTML=i.toString(),t.getInner=!0,e=n.selection.serializer.serialize(u,t),"tree"===t.format?e:(t.content=n.selection.isCollapsed()?"":e,n.fire("GetContent",t),t.content))},cwi=function(n,t,i){var f,e,o,r=n.selection.getRng(),u=n.getDoc();if((i=i||{format:"html"}).set=!0,i.selection=!0,i.content=t,i.no_events||!(i=n.fire("BeforeSetContent",i)).isDefaultPrevented()){if(t=i.content,r.insertNode){t+='<span id="__caret">_<\/span>';r.startContainer===u&&r.endContainer===u?u.body.innerHTML=t:(r.deleteContents(),0===u.body.childNodes.length?u.body.innerHTML=t:r.createContextualFragment?r.insertNode(r.createContextualFragment(t)):(e=u.createDocumentFragment(),o=u.createElement("div"),e.appendChild(o),o.outerHTML=t,r.insertNode(e)));f=n.dom.get("__caret");(r=u.createRange()).setStartBefore(f);r.setEndBefore(f);n.selection.setRng(r);n.dom.remove("__caret");try{n.selection.setRng(r)}catch(s){}}else r.item&&(u.execCommand("Delete",!1,null),r=n.getRng()),/^\s+/.test(t)?(r.pasteHTML('<span id="__mce_tmp">_<\/span>'+t),n.dom.remove("__mce_tmp")):r.pasteHTML(t);i.no_events||n.fire("SetContent",i)}else n.fire("SetContent",i)},pbt=function(t,i,u,f,e){var o=u?i.startContainer:i.endContainer,s=u?i.startOffset:i.endOffset;return n.from(o).map(r.fromDom).map(function(n){return f&&i.collapsed?n:v.child(n,e(n,s)).getOr(n)}).bind(function(t){return d.isElement(t)?n.some(t):v.parent(t)}).map(function(n){return n.dom()}).getOr(t)},wbt=function(n,t,i){return pbt(n,t,!0,i,function(n,t){return Math.min(v.childNodesCount(n),t)})},bbt=function(n,t,i){return pbt(n,t,!1,i,function(n,t){return 0<t?t-1:t})},kbt=function(n,t){for(var r=n;n&&i.isText(n)&&0===n.length;)n=t?n.nextSibling:n.previousSibling;return n||r},ic=t.each,dbt=function(n){return!!n.select},gbt=function(n){return!(!n||!n.ownerDocument)&&w.contains(r.fromDom(n.ownerDocument),r.fromDom(n))},nkt=function(t,i,r,f){var y,p,h,c,l,w=function(n,t){return cwi(f,n,t)},b=function(n){var t=e();t.collapse(!!n);o(t)},a=function(){return i.getSelection?i.getSelection():i.document.selection},e=function(){var u,n,e,r,s=function(n,t,i){try{return t.compareBoundaryPoints(n,i)}catch(r){return-1}},o;if(!i||null==(r=i.document))return null;if(f.bookmark!==undefined&&!1===bh(f)&&(o=kvt(f),o.isSome()))return o.map(function(n){return vn(f,[n])[0]}).getOr(r.createRange());try{(u=a())&&(n=0<u.rangeCount?u.getRangeAt(0):u.createRange?u.createRange():r.createRange())}catch(l){}return(n=vn(f,[n])[0])||(n=r.createRange?r.createRange():r.body.createTextRange()),n.setStart&&9===n.startContainer.nodeType&&n.collapsed&&(e=t.getRoot(),n.setStart(e,0),n.setEnd(e,0)),h&&c&&(0===s(n.START_TO_START,n,h)&&0===s(n.END_TO_END,n,h)?n=c:c=h=null),n},o=function(n,t){var i,r,u,e;if((u=n)&&(dbt(u)||gbt(u.startContainer)&&gbt(u.endContainer)))if(e=dbt(n)?n:null,e){c=null;try{e.select()}catch(o){}}else{if(i=a(),n=f.fire("SetSelectionRange",{range:n,forward:t}).range,i){c=n;try{i.removeAllRanges();i.addRange(n)}catch(o){}!1===t&&i.extend&&(i.collapse(n.endContainer,n.endOffset),i.extend(n.startContainer,n.startOffset));h=0<i.rangeCount?i.getRangeAt(0):null}n.collapsed||n.startContainer!==n.endContainer||!i.setBaseAndExtent||s.ie||n.endOffset-n.startOffset<2&&n.startContainer.hasChildNodes()&&(r=n.startContainer.childNodes[n.startOffset])&&"IMG"===r.tagName&&(i.setBaseAndExtent(n.startContainer,n.startOffset,n.endContainer,n.endOffset),i.anchorNode===n.startContainer&&i.focusNode===n.endContainer||i.setBaseAndExtent(r,0,r,1));f.fire("AfterSetSelectionRange",{range:n,forward:t})}},k=function(){var i,r,n=a();return!(n&&n.anchorNode&&n.focusNode)||((i=t.createRng()).setStart(n.anchorNode,n.anchorOffset),i.collapse(!0),(r=t.createRng()).setStart(n.focusNode,n.focusOffset),r.collapse(!0),i.compareBoundaryPoints(i.START_TO_START,r)<=0)},v={bookmarkManager:null,controlSelection:null,dom:t,win:i,serializer:r,editor:f,collapse:b,setCursorLocation:function(n,i){var r=t.createRng();n?(r.setStart(n,i),r.setEnd(n,i),o(r),b(!1)):(eg(t,r,f.getBody(),!0),o(r))},getContent:function(n){return hwi(f,n)},setContent:w,getBookmark:function(n,t){return y.getBookmark(n,t)},moveToBookmark:function(n){return y.moveToBookmark(n)},select:function(i,r){var u,f,e;return(u=t,f=i,e=r,n.from(f).map(function(n){var i=u.nodeIndex(n),t=u.createRng();return t.setStart(n.parentNode,i),t.setEnd(n.parentNode,i+1),e&&(eg(u,t,n,!0),eg(u,t,n,!1)),t})).each(o),i},isCollapsed:function(){var n=e(),t=a();return!(!n||n.item)&&(n.compareEndPoints?0===n.compareEndPoints("StartToEnd",n):!t||n.collapsed)},isForward:k,setNode:function(n){return w(t.getOuterHTML(n)),n},getNode:function(){return s=f.getBody(),(t=e())?(n=t.startContainer,i=t.endContainer,u=t.startOffset,o=t.endOffset,r=t.commonAncestorContainer,!t.collapsed&&(n===i&&o-u<2&&n.hasChildNodes()&&(r=n.childNodes[u]),3===n.nodeType&&3===i.nodeType&&(n=n.length===u?kbt(n.nextSibling,!0):n.parentNode,i=0===o?kbt(i.previousSibling,!1):i.parentNode,n&&n===i))?n:r&&3===r.nodeType?r.parentNode:r):s;var s,t,r,n,i,u,o},getSel:a,setRng:o,getRng:e,getStart:function(n){return wbt(f.getBody(),e(),n)},getEnd:function(n){return bbt(f.getBody(),e(),n)},getSelectedBlocks:function(n,i){return function(n,t,i,r){var f,u,e=[],o;if(u=n.getRoot(),i=n.getParent(i||wbt(u,t,t.collapsed),n.isBlock),r=n.getParent(r||bbt(u,t,t.collapsed),n.isBlock),i&&i!==u&&e.push(i),i&&r&&i!==r)for(o=new st(f=i,u);(f=o.next())&&f!==r;)n.isBlock(f)&&e.push(f);return r&&i!==r&&r!==u&&e.push(r),e}(t,e(),n,i)},normalize:function(){var n=e(),r=a(),i;return!vhi(r)&&og(f)?(i=ny(t,n),i.each(function(n){o(n,k())}),i.getOr(n)):n},selectorChanged:function(n,i){var r;return l||(l={},r={},f.on("NodeChange",function(n){var u=n.element,i=t.getParents(u,null,t.getRoot()),f={};ic(l,function(n,u){ic(i,function(e){if(t.is(e,u))return r[u]||(ic(n,function(n){n(!0,{node:e,selector:u,parents:i})}),r[u]=n),f[u]=n,!1})});ic(r,function(n,t){f[t]||(delete r[t],ic(n,function(n){n(!1,{node:u,selector:t,parents:i})}))})})),l[n]||(l[n]=[]),l[n].push(i),v},getScrollContainer:function(){for(var i,n=t.getRoot();n&&"BODY"!==n.nodeName;){if(n.scrollHeight>n.clientHeight){i=n;break}n=n.parentNode}return i},scrollIntoView:function(n,t){return aui(f,n,t)},placeCaretAt:function(n,t){return o(an(n,t,f.getDoc()))},getBoundingClientRect:function(){var n=e();return n.collapsed?u.fromRangeStart(n).getClientRects()[0]:n.getBoundingClientRect()},destroy:function(){i=h=c=null;p.destroy()}};return y=ebt(v),p=sbt(v,f),v.bookmarkManager=y,v.controlSelection=p,v},tkt=i.isContentEditableFalse,ikt=rk,rkt=uv,ukt=rv,by=function(n,t){for(;t=n(t);)if(t.isVisible())return t;return t},lwi=function(n,t,r,u){var o,f,s,h,l,a,e=n===si.Forwards,c=e?ukt:rkt;return!u.collapsed&&(o=ikt(u),tkt(o))?wu(n,t,o,n===si.Backwards,!0):(h=ro(u.startContainer),c(f=bht(n,t.getBody(),u))?lk(t,f.getNode(!e)):(f=r(f))?c(f)?wu(n,t,f.getNode(!e),e,!0):c(s=r(f))&&(!(a=gu(l=f,s))&&i.isBr(l.getNode())||a)?wu(n,t,s.getNode(!e),e,!0):h?ba(t,f.toRange(),!0):null:h?u:null)},awi=function(n,t,i,r){var f,a,v,e,c,o,y,p,s,l;return(s=ikt(r),f=bht(n,t.getBody(),r),a=i(t.getBody(),opt(1),f),v=h.filter(a,hg(1)),c=h.last(f.getClientRects()),(ukt(f)||vfi(f))&&(s=f.getNode()),(rkt(f)||yfi(f))&&(s=f.getNode(!0)),!c)?null:(o=c.left,(e=sy(v,o))&&tkt(e.node))?(y=Math.abs(o-e.left),p=Math.abs(o-e.right),wu(n,t,e.node,y<p,!0)):s&&((l=function(n,t,i,r){var s,c,l,f,e,a,v=hr(t),o=[],y=0,p=function(n){return h.last(n.getClientRects())};1===n?(s=v.next,c=oo,l=eo,f=u.after(r)):(s=v.prev,c=eo,l=oo,f=u.before(r));a=p(f);do if(f.isVisible()&&!l(e=p(f),a)){if(0<o.length&&c(e,h.last(o))&&y++,(e=fo(e)).position=f,e.line=y,i(e))return o;o.push(e)}while(f=s(f));return o}(n,t.getBody(),opt(1),s),e=sy(h.filter(l,hg(1)),o))||(e=h.last(h.filter(l,hg(0)))))?ba(t,e.position.toRange(),!0):void 0},fkt=function(n,t,i){var f,r,o,e,h=hr(n.getBody()),c=ht.curry(by,h.next),l=ht.curry(by,h.prev);if(i.collapsed&&n.settings.forced_root_block){if(!(f=n.dom.getParent(i.startContainer,"PRE")))return;(1===t?c(u.fromRangeStart(i)):l(u.fromRangeStart(i)))||(e=(o=n).dom.create(o.settings.forced_root_block),(!s.ie||11<=s.ie)&&(e.innerHTML='<br data-mce-bogus="1">'),r=e,1===t?n.$(f).after(r):n.$(f).before(r),n.selection.select(r,!0),n.selection.collapse())}},ekt=function(n,t){return function(){var i,r,u,f,s,h,e,c,o,l=(r=t,f=hr((i=n).getBody()),s=ht.curry(by,f.next),h=ht.curry(by,f.prev),e=r?si.Forwards:si.Backwards,c=r?s:h,o=i.selection.getRng(),(u=lwi(e,i,c,o))?u:(u=fkt(i,e,o))||null);return!!l&&(n.selection.setRng(l),!0)}},okt=function(n,t){return function(){var i,e,r,u,o,f,s=(u=(e=t)?1:-1,o=e?evi:fvi,f=(i=n).selection.getRng(),(r=awi(u,i,o,f))?r:(r=fkt(i,u,f))||null);return!!s&&(n.selection.setRng(s),!0)}},vwi=function(n,t){return dc(dt(n,function(n){return nc({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:es},n)}),function(n){return i=n,(r=t).keyCode===i.keyCode&&r.shiftKey===i.shiftKey&&r.altKey===i.altKey&&r.ctrlKey===i.ctrlKey&&r.metaKey===i.metaKey?[n]:[];var i,r})},kt=function(n){for(var r,i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return r=Array.prototype.slice.call(arguments,1),function(){return n.apply(null,r)}},ky=function(n,t){return ui(vwi(n,t),function(n){return n.action()})},ywi=function(n,t){n.on("keydown",function(i){var r,u,e,f;!1===i.isDefaultPrevented()&&(r=n,u=t,e=i,f=ou.detect().os,ky([{keyCode:y.RIGHT,action:ekt(r,!0)},{keyCode:y.LEFT,action:ekt(r,!1)},{keyCode:y.UP,action:okt(r,!1)},{keyCode:y.DOWN,action:okt(r,!0)},{keyCode:y.RIGHT,action:eht(r,!0)},{keyCode:y.LEFT,action:eht(r,!1)},{keyCode:y.UP,action:oht(r,!1)},{keyCode:y.DOWN,action:oht(r,!0)},{keyCode:y.RIGHT,action:ko.move(r,u,!0)},{keyCode:y.LEFT,action:ko.move(r,u,!1)},{keyCode:y.RIGHT,ctrlKey:!f.isOSX(),altKey:f.isOSX(),action:ko.moveNextWord(r,u)},{keyCode:y.LEFT,ctrlKey:!f.isOSX(),altKey:f.isOSX(),action:ko.movePrevWord(r,u)}],e).each(function(){e.preventDefault()}))})},pwi=function(n){return 1===v.children(n).length},wwi=function(n,t,i,e){var o,h,s,c,v=f(hyi,t),l=dt(vt(e,v),function(n){return n.dom()}),a;0===l.length?ah(t,n,i):(a=(o=i.dom(),h=l,s=rn(!1),c=uwt(h,s.dom()),rt.before(r.fromDom(o),s),ft.remove(r.fromDom(o)),u(c,0)),t.selection.setRng(a.toRange()))},bwi=function(n,t){var i,e=r.fromDom(n.getBody()),s=r.fromDom(n.selection.getStart()),f=vt((i=lh(s,e),cf(i,ds).fold(o(i),function(n){return i.slice(0,n)})),pwi);return he(f).map(function(i){var r=u.fromRangeStart(n.selection.getRng());return!!hoi(t,r,i.dom())&&(wwi(t,n,i,f),!0)}).getOr(!1)},skt=function(n,t){return!!n.selection.isCollapsed()&&bwi(n,t)},kwi=function(n,t){n.on("keydown",function(i){var r,u,f;!1===i.isDefaultPrevented()&&(r=n,u=t,f=i,ky([{keyCode:y.BACKSPACE,action:kt(av,r,!1)},{keyCode:y.DELETE,action:kt(av,r,!0)},{keyCode:y.BACKSPACE,action:kt(pv,r,u,!1)},{keyCode:y.DELETE,action:kt(pv,r,u,!0)},{keyCode:y.BACKSPACE,action:kt(dv,r,!1)},{keyCode:y.DELETE,action:kt(dv,r,!0)},{keyCode:y.BACKSPACE,action:kt(lv,r,!1)},{keyCode:y.DELETE,action:kt(lv,r,!0)},{keyCode:y.BACKSPACE,action:kt(cv,r,!1)},{keyCode:y.DELETE,action:kt(cv,r,!0)},{keyCode:y.BACKSPACE,action:kt(skt,r,!1)},{keyCode:y.DELETE,action:kt(skt,r,!0)}],f).each(function(){f.preventDefault()}))});n.on("keyup",function(t){var i,r;!1===t.isDefaultPrevented()&&(i=n,r=t,ky([{keyCode:y.BACKSPACE,action:kt(vlt,i)},{keyCode:y.DELETE,action:kt(vlt,i)}],r))})},wn=function(t){return n.from(t.dom.getParent(t.selection.getStart(!0),t.dom.isBlock))},rc=function(n,t){var e,u,r,o=t,f=n.dom,h=n.schema.getMoveCaretBeforeOnEnterElements(),s;if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)&&(s=function(n){for(;n;){if(1===n.nodeType||3===n.nodeType&&n.data&&/[\r\n\s]/.test(n.data))return n;n=n.nextSibling}}(t.firstChild),s&&/^(UL|OL|DL)$/.test(s.nodeName)&&t.insertBefore(f.doc.createTextNode(" "),t.firstChild)),r=f.createRng(),t.normalize(),t.hasChildNodes()){for(e=new st(t,t);u=e.current();){if(i.isText(u)){r.setStart(u,0);r.setEnd(u,0);break}if(h[u.nodeName.toLowerCase()]){r.setStartBefore(u);r.setEndBefore(u);break}o=u;u=e.next()}u||(r.setStart(o,0),r.setEnd(o,0))}else i.isBr(t)?t.nextSibling&&f.isBlock(t.nextSibling)?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)):(r.setStart(t,0),r.setEnd(t,0));n.selection.setRng(r);f.remove(void 0);n.selection.scrollIntoView(t)}},dwi=function(n,t){for(var u,r=n.getRoot(),i=t;i!==r&&"false"!==n.getContentEditable(i);)"true"===n.getContentEditable(i)&&(u=i),i=i.parentNode;return i!==r?u:r},gwi=wn,nbi=function(n){return wn(n).fold(o(""),function(n){return n.nodeName.toUpperCase()})},tbi=function(n){return wn(n).filter(function(n){return dl(r.fromDom(n))}).isSome()},hkt=function(n,t){return n&&n.parentNode&&n.parentNode.nodeName===t},ckt=function(n){return n&&/^(OL|UL|LI)$/.test(n.nodeName)},dy=function(n){var t=n.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:n},gy=function(n,t,r){for(var u=n[r?"firstChild":"lastChild"];u&&!i.isElement(u);)u=u[r?"nextSibling":"previousSibling"];return u===t},ibi=function(n,t,i,r,u){var e=n.dom,a=n.selection.getRng(),h,c,l,f,s,o;i!==n.getBody()&&(ckt(h=i)&&ckt(h.parentNode)&&(u="LI"),f=u?t(u):e.create("BR"),gy(i,r,!0)&&gy(i,r,!1)?hkt(i,"LI")?e.insertAfter(f,dy(i)):e.replace(f,i):gy(i,r,!0)?hkt(i,"LI")?(e.insertAfter(f,dy(i)),f.appendChild(e.doc.createTextNode(" ")),f.appendChild(i)):i.parentNode.insertBefore(f,i):gy(i,r,!1)?e.insertAfter(f,dy(i)):(i=dy(i),s=a.cloneRange(),s.setStartAfter(r),s.setEndAfter(i),o=s.extractContents(),"LI"===u&&(l="LI",(c=o).firstChild&&c.firstChild.nodeName===l)?(f=o.firstChild,e.insertAfter(o,i)):(e.insertAfter(o,i),e.insertAfter(f,i))),e.remove(r),rc(n,f))},bn=function(n){n.innerHTML='<br data-mce-bogus="1">'},kn=function(n,t){return n.nodeName===t||n.previousSibling&&n.previousSibling.nodeName===t},lkt=function(n,t){return t&&n.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==n.getContentEditable(t)},dn=function(n,t,r){return!1===i.isText(t)?r:n?1===r&&t.data.charAt(r-1)===yt?0:r:r===t.data.length-1&&t.data.charAt(r)===yt?t.data.length:r},akt=function(n,t){for(var u,r=n.getRoot(),i=t;i!==r&&"false"!==n.getContentEditable(i);)"true"===n.getContentEditable(i)&&(u=i),i=i.parentNode;return i!==r?u:r},gn=function(n,t){var i=df(n);i&&i.toLowerCase()===t.tagName.toLowerCase()&&n.dom.setAttribs(t,iht(n))},rbi=function(n,r){var tt,it,f,a,u,b,o,k,h,v,d,s,y,g,nt,rt,c,p,e=n.dom,ut=n.schema,ft=ut.getNonEmptyElements(),l=n.selection.getRng(),w=function(t){var i,o,h,r=f,c=ut.getTextInlineElements();if(t||"TABLE"===v||"HR"===v?(i=e.create(t||s),gn(n,i)):i=u.cloneNode(!1),h=i,!1===tfi(n))e.setAttrib(i,"style",null),e.setAttrib(i,"class",null);else do if(c[r.nodeName]){if(pu(r))continue;o=r.cloneNode(!1);e.setAttrib(o,"id","");i.hasChildNodes()?o.appendChild(i.firstChild):h=o;i.appendChild(o)}while((r=r.parentNode)&&r!==it);return bn(h),i},et=function(n){var t,r,o,e;if(e=dn(n,f,a),i.isText(f)&&(n?0<e:e<f.nodeValue.length))return!1;if(f.parentNode===u&&y&&!n||n&&i.isElement(f)&&f===u.firstChild)return!0;if(kn(f,"TABLE")||kn(f,"HR"))return y&&!n||!y&&n;for(t=new st(f,u),i.isText(f)&&(n&&0===e?t.prev():n||e!==f.nodeValue.length||t.next());r=t.current();){if(i.isElement(r)){if(!r.getAttribute("data-mce-bogus")&&(o=r.nodeName.toLowerCase(),ft[o]&&"br"!==o))return!1}else if(i.isText(r)&&!/^[ \t\r\n]*$/.test(r.nodeValue))return!1;n?t.prev():t.next()}return!0},ot=function(){o=/^(H[1-6]|PRE|FIGURE)$/.test(v)&&"HGROUP"!==d?w(s):w();ifi(n)&&lkt(e,h)&&e.isEmpty(u)?o=e.split(h,u):e.insertAfter(o,u);rc(n,o)};ny(e,l).each(function(n){l.setStart(n.startContainer,n.startOffset);l.setEnd(n.endContainer,n.endOffset)});f=l.startContainer;a=l.startOffset;s=df(n);b=r.shiftKey;i.isElement(f)&&f.hasChildNodes()&&(y=a>f.childNodes.length-1,f=f.childNodes[Math.min(a,f.childNodes.length-1)]||f,a=y&&i.isText(f)?f.nodeValue.length:0);(it=akt(e,f))&&((s&&!b||!s&&b)&&(f=function(n,t,i,r,u){var e,o,h,f,l,a,v,c=t||"P",s=n.dom,y=akt(s,r);if(!(o=s.getParent(r,s.isBlock))||!lkt(s,o)){if(a=(o=o||y)===n.getBody()||(v=o)&&/^(TD|TH|CAPTION)$/.test(v.nodeName)?o.nodeName.toLowerCase():o.parentNode.nodeName.toLowerCase(),!o.hasChildNodes())return e=s.create(c),gn(n,e),o.appendChild(e),i.setStart(e,0),i.setEnd(e,0),e;for(f=r;f.parentNode!==o;)f=f.parentNode;for(;f&&!s.isBlock(f);)f=(h=f).previousSibling;if(h&&n.schema.isValidChild(a,c.toLowerCase())){for(e=s.create(c),gn(n,e),h.parentNode.insertBefore(e,h),f=h;f&&!s.isBlock(f);)l=f.nextSibling,e.appendChild(f),f=l;i.setStart(r,u);i.setEnd(r,u)}}return r}(n,s,l,f,a)),u=e.getParent(f,e.isBlock),h=u?e.getParent(u.parentNode,e.isBlock):null,v=u?u.nodeName.toUpperCase():"","LI"!==(d=h?h.nodeName.toUpperCase():"")||r.ctrlKey||(h=(u=h).parentNode,v=d),/^(LI|DT|DD)$/.test(v)&&e.isEmpty(u)?ibi(n,w,h,u,s):s&&u===n.getBody()||(s=s||"P",ro(u)?(o=nk(u),e.isEmpty(u)&&bn(u),rc(n,o)):et()?ot():et(!0)?(o=u.parentNode.insertBefore(w(),u),rc(n,kn(u,"HR")?o:u)):((tt=(c=l,p=c.cloneRange(),p.setStart(c.startContainer,dn(!0,c.startContainer,c.startOffset)),p.setEnd(c.endContainer,dn(!1,c.endContainer,c.endOffset)),p).cloneRange()).setEndAfter(u),function(n){for(;i.isText(n)&&(n.nodeValue=n.nodeValue.replace(/^[\r\n]+/,"")),n=n.firstChild;);}(k=tt.extractContents()),o=k.firstChild,e.insertAfter(k,u),function(n,r,u){var o,f=u,s=[],e;if(f){for(;f=f.firstChild;){if(n.isBlock(f))return;i.isElement(f)&&!r[f.nodeName.toLowerCase()]&&s.push(f)}for(o=s.length;o--;)!(f=s[o]).hasChildNodes()||f.firstChild===f.lastChild&&""===f.firstChild.nodeValue?n.remove(f):(e=f)&&"A"===e.nodeName&&0===t.trim(vu(e.innerText||e.textContent)).length&&n.remove(f)}}(e,ft,o),g=e,(nt=u).normalize(),(rt=nt.lastChild)&&!/^(left|right)$/gi.test(g.getStyle(rt,"float",!0))||g.add(nt,"br"),e.isEmpty(u)&&bn(u),o.normalize(),e.isEmpty(o)?(e.remove(o),ot()):rc(n,o)),e.setAttrib(o,"id",""),n.fire("NewBlock",{newBlock:o})))},vkt=function(n,t){return gwi(n).filter(function(n){return 0<t.length&&su.is(r.fromDom(n),t)}).isSome()},ubi=function(n){return vkt(n,gui(n))},fbi=function(n){return vkt(n,nfi(n))},ii=po([{br:[]},{block:[]},{none:[]}]),ebi=function(n){return fbi(n)},ntt=function(n){return function(t){return""===df(t)===n}},ykt=function(n){return function(t){return tbi(t)===n}},pkt=function(n,t){return function(i){return nbi(i)===n.toUpperCase()===t}},np=function(n){return pkt("pre",n)},tp=function(n){return function(t){return dui(t)===n}},obi=function(n){return ubi(n)},uc=function(n,t){return t},wkt=function(n){var i=df(n),t=dwi(n.dom,n.selection.getStart());return t&&n.schema.isValidChild(t.nodeName,i||"P")},ci=function(t,i){return function(r,u){return hf(t,function(n,t){return n&&t(r,u)},!0)?n.some(i):n.none()}},sbi=function(n,t){return glt([ci([ebi],ii.none()),ci([pkt("summary",!0)],ii.br()),ci([np(!0),tp(!1),uc],ii.br()),ci([np(!0),tp(!1)],ii.block()),ci([np(!0),tp(!0),uc],ii.block()),ci([np(!0),tp(!0)],ii.br()),ci([ykt(!0),uc],ii.br()),ci([ykt(!0)],ii.block()),ci([ntt(!0),uc,wkt],ii.block()),ci([ntt(!0)],ii.br()),ci([obi],ii.br()),ci([ntt(!1),uc],ii.br()),ci([wkt],ii.block())],[n,t.shiftKey]).getOr(ii.none())},hbi=function(n,t){sbi(n,t).fold(function(){avt(n,t)},function(){rbi(n,t)},es)},cbi=function(n){n.on("keydown",function(t){var i,r,u;t.keyCode===y.ENTER&&(i=n,(r=t).isDefaultPrevented()||(r.preventDefault(),(u=i.undoManager).typing&&(u.typing=!1,u.add()),i.undoManager.transact(function(){!1===i.selection.isCollapsed()&&i.execCommand("Delete");hbi(i,r)})))})},lbi=function(n,t,r){return s=t,!(!abi(r)||!i.isText(s.container())||(e=n,u=(o=t).container(),f=o.offset(),u.insertData(f," "),e.selection.setCursorLocation(u,f+1),0));var e,o,u,f,s},abi=function(n){return n.fold(o(!1),o(!0),o(!0),o(!1))},vbi=function(n){return!!n.selection.isCollapsed()&&(t=n,r=f(k.isInlineTarget,t),i=u.fromRangeStart(t.selection.getRng()),bo(r,t.getBody(),i).map(f(lbi,t,i)).getOr(!1));var t,r,i},ybi=function(n){n.on("keydown",function(t){var r,i;!1===t.isDefaultPrevented()&&(r=n,i=t,ky([{keyCode:y.SPACEBAR,action:kt(vbi,r)}],i).each(function(){i.preventDefault()}))})},bkt=function(n,t){var i;t.hasAttribute("data-mce-caret")&&(nk(t),(i=n).selection.setRng(i.selection.getRng()),n.selection.scrollIntoView(t))},pbi=function(n,t){var u,i=(u=n,sa(r.fromDom(u.getBody()),"*[data-mce-caret]").fold(o(null),function(n){return n.dom()}));if(i)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void bkt(n,i)):void(get(i)&&(bkt(n,i),n.undoManager.add()))},wbi=function(n){n.on("keyup compositionstart",f(pbi,n))},bbi=function(n){var t=ko.setupSelectedState(n);wbi(n);ywi(n,t);kwi(n,t);cbi(n);ybi(n)};var kkt=function(n){return i.isElement(n)&&cft(r.fromDom(n))},dbi=function(n){n.on("click",function(t){3<=t.detail&&function(n){var i=n.selection.getRng(),r=et.fromRangeStart(i),u=et.fromRangeEnd(i),t;et.isElementPosition(r)&&(t=r.container(),kkt(t)&&c.firstPositionIn(t).each(function(n){return i.setStart(n.container(),n.offset())}));et.isElementPosition(u)&&(t=r.container(),kkt(t)&&c.lastPositionIn(t).each(function(n){return i.setEnd(n.container(),n.offset())}));n.selection.setRng(ud(i))}(n)})},gbi=function(n){var t,i;(t=n).on("click",function(n){t.dom.getParent(n.target,"details")&&n.preventDefault()});(i=n).parser.addNodeFilter("details",function(n){l(n,function(n){n.attr("data-mce-open",n.attr("open"));n.attr("open","open")})});i.serializer.addNodeFilter("details",function(n){l(n,function(n){var t=n.attr("data-mce-open");n.attr("open",vi(t)?t:null);n.attr("data-mce-open",null)})})},ue=g.DOM,dkt=function(n){var t;n.bindPendingEventDelegates();n.initialized=!0;n.fire("init");n.focus(!0);n.nodeChanged({initial:!0});n.execCallback("init_instance_callback",n);(t=n).settings.auto_focus&&gt.setEditorTimeout(t,function(){var n;(n=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus)).destroyed||n.focus()},100)},ttt=function(n,i){var f,c,o,s,l,v,y,p,h,u=n.settings,a=n.getElement(),e=n.getDoc();u.inline||(n.getElement().style.visibility=n.orgVisibility);i||u.content_editable||(e.open(),e.write(n.iframeHTML),e.close());u.content_editable&&(n.on("remove",function(){var n=this.getBody();ue.removeClass(n,"mce-content-body");ue.removeClass(n,"mce-edit-focus");ue.setAttrib(n,"contentEditable",null)}),ue.addClass(a,"mce-content-body"),n.contentDocument=e=u.content_document||document,n.contentWindow=u.content_window||window,n.bodyElement=a,u.content_document=u.content_window=null,u.root_name=a.nodeName.toLowerCase());(f=n.getBody()).disabled=!0;n.readonly=u.readonly;n.readonly||(n.inline&&"static"===ue.getStyle(f,"position",!0)&&(f.style.position="relative"),f.contentEditable=n.getParam("content_editable_state",!0));f.disabled=!1;n.editorUpload=yai(n);n.schema=lu(u);n.dom=g(e,{keep_values:!0,url_converter:n.convertURL,url_converter_scope:n,hex_colors:u.force_hex_style_colors,class_filter:u.class_filter,update_styles:!0,root_element:n.inline?n.getBody():null,collect:u.content_editable,schema:n.schema,onSetAttrib:function(t){n.fire("SetAttrib",t)}});n.parser=((s=cn((o=n).settings,o.schema)).addAttributeFilter("src,href,style,tabindex",function(n,t){for(var r,i,u,f=n.length,e=o.dom;f--;)if(i=(r=n[f]).attr(t),u="data-mce-"+t,!r.attributes.map[u]){if(0===i.indexOf("data:")||0===i.indexOf("blob:"))continue;"style"===t?((i=e.serializeStyle(e.parseStyle(i),r.name)).length||(i=null),r.attr(u,i),r.attr(t,i)):"tabindex"===t?(r.attr(u,i),r.attr(t,null)):r.attr(u,o.convertURL(i,t,r.name))}}),s.addNodeFilter("script",function(n){for(var t,i,r=n.length;r--;)0!==(i=(t=n[r]).attr("type")||"no/type").indexOf("mce-")&&t.attr("type","mce-"+i)}),s.addNodeFilter("#cdata",function(n){for(var t,i=n.length;i--;)(t=n[i]).type=8,t.name="#comment",t.value="[CDATA["+t.value+"]]"}),s.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(n){for(var t,i=n.length,r=o.schema.getNonEmptyElements();i--;)(t=n[i]).isEmpty(r)&&0===t.getAll("br").length&&(t.append(new wi("br",1)).shortEnded=!0)}),s);n.serializer=fbt(u,n);n.selection=nkt(n.dom,n.getWin(),n.serializer,n);n.annotator=pct(n);n.formatter=bwt(n);n.undoManager=bpt(n);n._nodeChangeDispatcher=new dai(n);n._selectionOverrides=vvi(n);gbi(n);dbi(n);bbi(n);bai(n);n.fire("PreInit");u.browser_spellcheck||u.gecko_spellcheck||(e.body.spellcheck=!1,ue.setAttrib(f,"spellcheck","false"));n.quirks=kbi(n);n.fire("PostRender");u.directionality&&(f.dir=u.directionality);u.nowrap&&(f.style.whiteSpace="nowrap");u.protect&&n.on("BeforeSetContent",function(n){t.each(u.protect,function(t){n.content=n.content.replace(t,function(n){return"<!--mce:protected "+escape(n)+"-->"})})});n.on("SetContent",function(){n.addVisual(n.getBody())});n.load({initial:!0,format:"html"});n.startContent=n.getContent({format:"raw"});n.on("compositionstart compositionend",function(t){n.composing="compositionstart"===t.type});0<n.contentStyles.length&&(c="",t.each(n.contentStyles,function(n){c+=n+"\r\n"}),n.dom.addStyle(c));(l=n,l.inline?ue.styleSheetLoader:l.dom.styleSheetLoader).loadAll(n.contentCSS,function(){dkt(n)},function(){dkt(n)});u.content_style&&(v=n,y=u.content_style,p=r.fromDom(v.getDoc().head),h=r.fromTag("style"),it.set(h,"type","text/css"),rt.append(h,r.fromText(y)),rt.append(p,h))},fc=g.DOM,nki=function(n,t){var h,c,l,a,o,v,u,b=n.editorManager.translate("Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help"),f=(h=n.id,c=b,l=t.height,a=yui(n),u=r.fromTag("iframe"),it.setAll(u,a),it.setAll(u,{id:h+"_ifr",frameBorder:"0",allowTransparency:"true",title:c}),fti(u,{width:"100%",height:(o=l,v="number"==typeof o?o+"px":o,v||""),display:"block"}),u).dom(),i,y,p,e,w;return f.onload=function(){f.onload=null;n.fire("load")},w=function(n,t){var i,r;return document.domain!==window.location.hostname&&s.ie&&s.ie<12?(i=rg.uuid("mce"),n[i]=function(){ttt(n)},r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+n.id+'");document.write(ed.iframeHTML);document.close();ed.'+i+"(true);})()",fc.setAttrib(t,"src",r),!0):!1}(n,f),n.contentAreaContainer=t.iframeContainer,n.iframeElement=f,n.iframeHTML=(e=pui(i=n)+"<html><head>",wui(i)!==i.documentBaseUrl&&(e+='<base href="'+i.documentBaseURI.getURI()+'" />'),e+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',y=bui(i),p=kui(i),tht(i)&&(e+='<meta http-equiv="Content-Security-Policy" content="'+tht(i)+'" />'),e+='<\/head><body id="'+y+'" class="mce-content-body '+p+'" data-id="'+i.id+'"><br><\/body><\/html>'),fc.add(t.iframeContainer,f),w},tki=function(n,t){var i=nki(n,t);t.editorContainer&&(fc.get(t.editorContainer).style.display=n.orgDisplay,n.hidden=fc.isHidden(t.editorContainer));n.getElement().style.display="none";fc.setAttrib(n.id,"aria-hidden","true");i||ttt(n)},ec=g.DOM,gkt=function(n,i,r){var u,f,e=kr.get(r);if(u=kr.urls[r]||n.documentBaseUrl.replace(/\/$/,""),r=t.trim(r),e&&-1===t.inArray(i,r)){if(t.each(kr.dependencies(r),function(t){gkt(n,i,t)}),n.plugins[r])return;f=new e(n,u,n.$);(n.plugins[r]=f).init&&(f.init(n,u),i.push(r))}},ndt=function(n){return n.replace(/^\-/,"")},tdt=function(n){return{editorContainer:n,iframeContainer:n}},iki=function(n){var i,t,r=n.getElement();return n.inline?tdt(null):(i=r,t=ec.create("div"),ec.insertAfter(t,i),tdt(t))},rki=function(n){var u,t,h,c,f,i,s,l,e,r,o,a=n.settings,v=n.getElement();return n.orgDisplay=v.style.display,vi(a.theme)?(r=(c=n).settings,o=c.getElement(),f=r.width||ec.getStyle(o,"width")||"100%",i=r.height||ec.getStyle(o,"height")||o.offsetHeight,s=r.min_height||100,(l=/^[0-9\.]+(|px)$/i).test(""+f)&&(f=Math.max(parseInt(f,10),100)),l.test(""+i)&&(i=Math.max(parseInt(i,10),s)),e=c.theme.renderUI({targetNode:o,width:f,height:i,deltaWidth:r.delta_width,deltaHeight:r.delta_height}),r.content_editable||(i=(e.iframeHeight||i)+("number"==typeof i?e.deltaHeight||0:""))<s&&(i=s),e.height=i,e):sf(a.theme)?(h=(u=n).getElement(),(t=u.settings.theme(u,h)).editorContainer.nodeType&&(t.editorContainer.id=t.editorContainer.id||u.id+"_parent"),t.iframeContainer&&t.iframeContainer.nodeType&&(t.iframeContainer.id=t.iframeContainer.id||u.id+"_iframecontainer"),t.height=t.iframeHeight?t.iframeHeight:h.offsetHeight,t):iki(n)},idt=function(n){var f,i,o,u,e,s,r=n.settings,h=n.getElement();return n.rtl=r.rtl_ui||n.editorManager.i18n.rtl,n.editorManager.i18n.setCode(r.language),r.aria_label=r.aria_label||ec.getAttrib(h,"aria-label",n.getLang("aria.rich_text_area")),n.fire("ScriptsLoaded"),u=(i=n).settings.theme,vi(u)?(i.settings.theme=ndt(u),o=ie.get(u),i.theme=new o(i,ie.urls[u]),i.theme.init&&i.theme.init(i,ie.urls[u]||i.documentBaseUrl.replace(/\/$/,""),i.$)):i.theme={},e=n,s=[],t.each(e.settings.plugins.split(/[ ,]/),function(n){gkt(e,s,ndt(n))}),f=rki(n),n.editorContainer=f.editorContainer?f.editorContainer:null,r.content_css&&t.each(t.explode(r.content_css),function(t){n.contentCSS.push(n.documentBaseURI.toAbsolute(t))}),r.content_editable?ttt(n):tki(n,f)},fe=g.DOM,rdt=function(n){return"-"===n.charAt(0)},uki=function(n,i){var r=yr.ScriptLoader;!function(n,t,i,r){var e=t.settings,u=e.theme,f;vi(u)?(rdt(u)||ie.urls.hasOwnProperty(u)||(f=e.theme_url,f?ie.load(u,t.documentBaseURI.toAbsolute(f)):ie.load(u,"themes/"+u+"/theme"+i+".js")),n.loadQueue(function(){ie.waitFor(u,r)})):r()}(r,n,i,function(){var s,e,u,f,o;s=r;(u=(e=n).settings).language&&"en"!==u.language&&!u.language_url&&(u.language_url=e.editorManager.baseURL+"/langs/"+u.language+".js");u.language_url&&!e.editorManager.i18n.data[u.language]&&s.add(u.language_url);f=n.settings;o=i;t.isArray(f.plugins)&&(f.plugins=f.plugins.join(" "));t.each(f.external_plugins,function(n,t){kr.load(t,n);f.plugins+=" "+t});t.each(f.plugins.split(/[ ,]/),function(n){if((n=t.trim(n))&&!kr.urls[n])if(rdt(n)){n=n.substr(1,n.length);var i=kr.dependencies(n);t.each(i,function(n){var t={prefix:"plugins/",resource:n,suffix:"/plugin"+o+".js"};n=kr.createUrl(t,n);kr.load(n.resource,n)})}else kr.load(n,{prefix:"plugins/",resource:n,suffix:"/plugin"+o+".js"})});r.loadQueue(function(){n.removed||idt(n)},n,function(t){iai(n,t[0]);n.removed||idt(n)})})},fki=function(n){var i=n.settings,r=n.id,u=function(){fe.unbind(window,"ready",u);n.render()},t;lr.Event.domLoaded?n.getElement()&&s.contentEditable&&(i.inline?n.inline=!0:(n.orgVisibility=n.getElement().style.visibility,n.getElement().style.visibility="hidden"),t=n.getElement().form||fe.getParent(r,"form"),t&&(n.formElement=t,i.hidden_input&&!/TEXTAREA|INPUT/i.test(n.getElement().nodeName)&&(fe.insertAfter(fe.create("input",{type:"hidden",name:r}),r),n.hasHiddenInput=!0),n.formEventDelegate=function(t){n.fire(t.type,t)},fe.bind(t,"submit reset",n.formEventDelegate),n.on("reset",function(){n.setContent(n.startContent,{format:"raw"})}),!i.submit_patch||t.submit.nodeType||t.submit.length||t._mceOldSubmit||(t._mceOldSubmit=t.submit,t.submit=function(){return n.editorManager.triggerSave(),n.setDirty(!1),t._mceOldSubmit(t)})),n.windowManager=yyt(n),n.notificationManager=vyt(n),"xml"===i.encoding&&n.on("GetContent",function(n){n.save&&(n.content=fe.encode(n.content))}),i.add_form_submit_trigger&&n.on("submit",function(){n.initialized&&n.save()}),i.add_unload_trigger&&(n._beforeUnload=function(){!n.initialized||n.destroyed||n.isHidden()||n.save({format:"raw",no_events:!0,set_dirty:!1})},n.editorManager.on("BeforeUnload",n._beforeUnload)),n.editorManager.add(n),uki(n,n.suffix)):fe.bind(window,"ready",u)},eki=function(n,t,i){var r=n.sidebars?n.sidebars:[];r.push({name:t,settings:i});n.sidebars=r},udt=t.each,oki=t.trim,ski="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),hki={ftp:21,http:80,https:443,mailto:25},li=function(n,t){var r,u,i=this,f;(n=oki(n),r=(t=i.settings=t||{}).base_uri,/^([\w\-]+):([^\/]{2})/i.test(n)||/^\s*#/.test(n))?i.source=n:(f=0===n.indexOf("//"),0!==n.indexOf("/")||f||(n=(r&&r.protocol||"http")+"://mce_host"+n),/^[\w\-]*:?\/\//.test(n)||(u=t.base_uri?t.base_uri.path:new li(document.location.href).directory,""==t.base_uri.protocol?n="//mce_host"+i.toAbsPath(u,n):(n=/([^#?]*)([#?]?.*)/.exec(n),n=(r&&r.protocol||"http")+"://mce_host"+i.toAbsPath(u,n[1])+n[2])),n=n.replace(/@@/g,"(mce_at)"),n=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(n),udt(ski,function(t,r){var u=n[r];u&&(u=u.replace(/\(mce_at\)/g,"@@"));i[t]=u}),r&&(i.protocol||(i.protocol=r.protocol),i.userInfo||(i.userInfo=r.userInfo),i.port||"mce_host"!==i.host||(i.port=r.port),i.host&&"mce_host"!==i.host||(i.host=r.host),i.source=""),f&&(i.protocol=""))};li.prototype={setPath:function(n){n=/^(.*?)\/?(\w+)?$/.exec(n);this.path=n[0];this.directory=n[1];this.file=n[2];this.source="";this.getURI()},toRelative:function(n){var i,t,r;return"./"===n?n:"mce_host"!==(n=new li(n,{base_uri:this})).host&&this.host!==n.host&&n.host||this.port!==n.port||this.protocol!==n.protocol&&""!==n.protocol?n.getURI():(t=this.getURI(),r=n.getURI(),t===r||"/"===t.charAt(t.length-1)&&t.substr(0,t.length-1)===r?t:(i=this.toRelPath(this.path,n.path),n.query&&(i+="?"+n.query),n.anchor&&(i+="#"+n.anchor),i))},toAbsolute:function(n,t){return(n=new li(n,{base_uri:this})).getURI(t&&this.isSameOrigin(n))},isSameOrigin:function(n){if(this.host==n.host&&this.protocol==n.protocol){if(this.port==n.port)return!0;var t=hki[this.protocol];if(t&&(this.port||t)==(n.port||t))return!0}return!1},toRelPath:function(n,t){var r,i,u,f=0,e="";if(n=(n=n.substring(0,n.lastIndexOf("/"))).split("/"),r=t.split("/"),n.length>=r.length)for(i=0,u=n.length;i<u;i++)if(i>=r.length||n[i]!==r[i]){f=i+1;break}if(n.length<r.length)for(i=0,u=r.length;i<u;i++)if(i>=n.length||n[i]!==r[i]){f=i+1;break}if(1===f)return t;for(i=0,u=n.length-(f-1);i<u;i++)e+="../";for(i=f-1,u=r.length;i<u;i++)e+=i!==f-1?"/"+r[i]:r[i];return e},toAbsPath:function(n,t){var i,e,r,f=0,u=[];for(e=/\/$/.test(t)?"/":"",n=n.split("/"),t=t.split("/"),udt(n,function(n){n&&u.push(n)}),n=u,i=t.length-1,u=[];0<=i;i--)0!==t[i].length&&"."!==t[i]&&(".."!==t[i]?0<f?f--:u.push(t[i]):f++);return 0!==(r=(i=n.length-f)<=0?u.reverse().join("/"):n.slice(0,i).join("/")+"/"+u.reverse().join("/")).indexOf("/")&&(r="/"+r),e&&r.lastIndexOf("/")!==r.length-1&&(r+=e),r},getURI:function(n){var i,t=this;return t.source&&!n||(i="",n||(i+=t.protocol?t.protocol+"://":"//",t.userInfo&&(i+=t.userInfo+"@"),t.host&&(i+=t.host),t.port&&(i+=":"+t.port)),t.path&&(i+=t.path),t.query&&(i+="?"+t.query),t.anchor&&(i+="#"+t.anchor),t.source=i),t.source}};li.parseDataUri=function(n){var t,i;return n=decodeURIComponent(n).split(","),(i=/data:([^;]+)/.exec(n[0]))&&(t=i[1]),{type:t,data:n[1]}};li.getDocumentBaseUrl=function(n){var t;return t=0!==n.protocol.indexOf("http")&&"file:"!==n.protocol?n.href:n.protocol+"//"+n.host+n.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t};var cki=function(n,i,u){var f,o,s,e,h;if(i.format=i.format?i.format:"html",i.get=!0,i.getInner=!0,i.no_events||n.fire("BeforeGetContent",i),"raw"===i.format)f=t.trim(vpt.trimExternal(n.serializer,u.innerHTML));else if("text"===i.format)f=vu(u.innerText||u.textContent);else{if("tree"===i.format)return n.serializer.serialize(u,i);s=(o=n).serializer.serialize(u,i);e=df(o);h=new RegExp("^(<"+e+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+e+">[\r\n]*|<br \\/>[\r\n]*)$");f=s.replace(h,"")}return i.content="text"===i.format||na(r.fromDom(u))?f:t.trim(f),i.no_events||n.fire("GetContent",i),i.content},itt=function(n,t){t(n);n.firstChild&&itt(n.firstChild,t);n.next&&itt(n.next,t)},lki=function(n,t,i){var r=function(n,t,i){var r={},u={},e=[],f;for(f in i.firstChild&&itt(i.firstChild,function(i){l(n,function(n){n.name===i.name&&(r[n.name]?r[n.name].nodes.push(i):r[n.name]={filter:n,nodes:[i]})});l(t,function(n){"string"==typeof i.attr(n.name)&&(u[n.name]?u[n.name].nodes.push(i):u[n.name]={filter:n,nodes:[i]})})}),r)r.hasOwnProperty(f)&&e.push(r[f]);for(f in u)u.hasOwnProperty(f)&&e.push(u[f]);return e}(n,t,i);l(r,function(n){l(n.filter.callbacks,function(t){t(n.nodes,n.filter.name,{})})})},rtt=function(n){return n instanceof wi},utt=function(n,t){var r;n.dom.setHTML(n.getBody(),t);bh(r=n)&&c.firstPositionIn(r.getBody()).each(function(n){var t=n.getNode(),u=i.isTable(t)?c.firstPositionIn(t).getOr(n):n;r.selection.setRng(u.toRange())})},aki=function(i,u,f){return void 0===f&&(f={}),f.format=f.format?f.format:"html",f.set=!0,f.content=rtt(u)?"":u,rtt(u)||f.no_events||(i.fire("BeforeSetContent",f),u=f.content),n.from(i.getBody()).fold(o(u),function(n){return rtt(u)?function(n,i,u,f){lki(n.parser.getNodeFilters(),n.parser.getAttributeFilters(),u);var e=ch({validate:n.validate},n.schema).serialize(u);return f.content=na(r.fromDom(i))?e:t.trim(e),utt(n,f.content),f.no_events||n.fire("SetContent",f),u}(i,n,u,f):(o=i,h=n,s=f,0===(e=u).length||/^\s+$/.test(e)?(c='<br data-mce-bogus="1">',"TABLE"===h.nodeName?e="<tr><td>"+c+"<\/td><\/tr>":/^(UL|OL)$/.test(h.nodeName)&&(e="<li>"+c+"<\/li>"),(l=df(o))&&o.schema.isValidChild(h.nodeName.toLowerCase(),l.toLowerCase())?(e=c,e=o.dom.createHTML(l,o.settings.forced_root_block_attrs,e)):e||(e='<br data-mce-bogus="1">'),utt(o,e),o.fire("SetContent",s)):("raw"!==s.format&&(e=ch({validate:o.validate},o.schema).serialize(o.parser.parse(e,{isRootContent:!0,insert:!0}))),s.content=na(r.fromDom(h))?e:t.trim(e),utt(o,s.content),s.no_events||o.fire("SetContent",s)),s.content);var o,h,e,s,l,c})},ip=g.DOM,rp=function(t){return n.from(t).each(function(n){return n.destroy()})},vki=function(n){var t;if(!n.removed){var u=n._selectionOverrides,f=n.editorUpload,i=n.getBody(),r=n.getElement();i&&n.save({is_removing:!0});n.removed=!0;n.unbindAllNativeEvents();n.hasHiddenInput&&r&&ip.remove(r.nextSibling);!n.inline&&i&&(t=n,ip.setStyle(t.id,"display",t.orgDisplay));eli(n);n.editorManager.remove(n);ip.remove(n.getContainer());rp(u);rp(f);n.destroy()}},yki=function(n,t){var u,r,i,f=n.selection,e=n.dom;n.destroyed||(t||n.removed?(t||(n.editorManager.off("beforeunload",n._beforeUnload),n.theme&&n.theme.destroy&&n.theme.destroy(),rp(f),rp(e)),(r=(u=n).formElement)&&(r._mceOldSubmit&&(r.submit=r._mceOldSubmit,r._mceOldSubmit=null),ip.unbind(r,"submit reset",u.formEventDelegate)),(i=n).contentAreaContainer=i.formElement=i.container=i.editorContainer=null,i.bodyElement=i.contentDocument=i.contentWindow=null,i.iframeElement=i.targetElm=null,i.selection&&(i.selection=i.selection.win=i.selection.dom=i.selection.dom.doc=null),n.destroyed=!0):n.remove())},ee=g.DOM,fdt=t.extend,edt=t.each,odt=t.resolve,pki=s.ie,oc=function(n,t,i){var u,f,o,h,c,l,a,r=this,y=r.documentBaseUrl=i.documentBaseURL,v=i.baseURI;u=r;f=n;o=y;h=i.defaultSettings;c=t;a={id:f,theme:"modern",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:o,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,render_ui:!0,indentation:"30px",inline_styles:!0,convert_fonts_to_spans:!0,indent:"simple",indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:(l=u).convertURL,url_converter_scope:l,ie7_compat:!0};t=foi(noi,a,h,c);r.settings=t;wt.language=t.language||"en";wt.languageLoad=t.language_load;wt.baseURL=i.baseURL;r.id=n;r.setDirty(!1);r.plugins={};r.documentBaseURI=new li(t.document_base_url,{base_uri:v});r.baseURI=v;r.contentCSS=[];r.contentStyles=[];r.shortcuts=new eyt(r);r.loadedCSS={};r.editorCommands=new dvt(r);r.suffix=i.suffix;r.editorManager=i;r.inline=t.inline;r.buttons={};r.menuItems={};t.cache_suffix&&(s.cacheSuffix=t.cache_suffix.replace(/^[\?\&]+/,""));!1===t.override_viewport&&(s.overrideViewPort=!1);i.fire("SetupEditor",{editor:r});r.execCallback("setup",r);r.$=e.overrideDefaults(function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}})};fdt(oc.prototype={render:function(){fki(this)},focus:function(n){wli(this,n)},hasFocus:function(){return bh(this)},execCallback:function(n){for(var t,i,u=[],r=1;r<arguments.length;r++)u[r-1]=arguments[r];return i=this.settings[n],i?(this.callbackLookup&&(t=this.callbackLookup[n])&&(i=t.func,t=t.scope),"string"==typeof i&&(t=(t=i.replace(/\.\w+$/,""))?odt(t):0,i=odt(i),this.callbackLookup=this.callbackLookup||{},this.callbackLookup[n]={func:i,scope:t}),i.apply(t||this,Array.prototype.slice.call(arguments,1))):void 0},translate:function(n){if(n&&t.is(n,"string")){var i=this.settings.language||"en",r=this.editorManager.i18n;n=r.data[i+"."+n]||n.replace(/\{\#([^\}]+)\}/g,function(n,t){return r.data[i+"."+t]||"{#"+t+"}"})}return this.editorManager.translate(n)},getLang:function(n,t){return this.editorManager.i18n.data[(this.settings.language||"en")+"."+n]||(t!==undefined?t:"{#"+n+"}")},getParam:function(n,t,i){return ooi(this,n,t,i)},nodeChanged:function(n){this._nodeChangeDispatcher.nodeChanged(n)},addButton:function(n,t){var i=this;t.cmd&&(t.onclick=function(){i.execCommand(t.cmd)});t.stateSelector&&"undefined"==typeof t.active&&(t.active=!1);t.text||t.icon||(t.icon=n);i.buttons=i.buttons;t.tooltip=t.tooltip||t.title;i.buttons[n]=t},addSidebar:function(n,t){return eki(this,n,t)},addMenuItem:function(n,t){var i=this;t.cmd&&(t.onclick=function(){i.execCommand(t.cmd)});i.menuItems=i.menuItems;i.menuItems[n]=t},addContextToolbar:function(n,t){var r,i=this;i.contextToolbars=i.contextToolbars||[];"string"==typeof n&&(r=n,n=function(n){return i.dom.is(n,r)});i.contextToolbars.push({id:rg.uuid("mcet"),predicate:n,items:t})},addCommand:function(n,t,i){this.editorCommands.addCommand(n,t,i)},addQueryStateHandler:function(n,t,i){this.editorCommands.addQueryStateHandler(n,t,i)},addQueryValueHandler:function(n,t,i){this.editorCommands.addQueryValueHandler(n,t,i)},addShortcut:function(n,t,i,r){this.shortcuts.add(n,t,i,r)},execCommand:function(n,t,i,r){return this.editorCommands.execCommand(n,t,i,r)},queryCommandState:function(n){return this.editorCommands.queryCommandState(n)},queryCommandValue:function(n){return this.editorCommands.queryCommandValue(n)},queryCommandSupported:function(n){return this.editorCommands.queryCommandSupported(n)},show:function(){this.hidden&&(this.hidden=!1,this.inline?this.getBody().contentEditable=!0:(ee.show(this.getContainer()),ee.hide(this.id)),this.load(),this.fire("show"))},hide:function(){var n=this,t=n.getDoc();n.hidden||(pki&&t&&!n.inline&&t.execCommand("SelectAll"),n.save(),n.inline?(n.getBody().contentEditable=!1,n===n.editorManager.focusedEditor&&(n.editorManager.focusedEditor=null)):(ee.hide(n.getContainer()),ee.setStyle(n.id,"display",n.orgDisplay)),n.hidden=!0,n.fire("hide"))},isHidden:function(){return!!this.hidden},setProgressState:function(n,t){this.fire("ProgressState",{state:n,time:t})},load:function(n){var i,t=this.getElement();return this.removed?"":t?((n=n||{}).load=!0,i=this.setContent(t.value!==undefined?t.value:t.innerHTML,n),n.element=t,n.no_events||this.fire("LoadContent",n),n.element=t=null,i):void 0},save:function(n){var r,u,t=this,i=t.getElement();if(i&&t.initialized&&!t.removed)return(n=n||{}).save=!0,n.element=i,n.content=t.getContent(n),n.no_events||t.fire("SaveContent",n),"raw"===n.format&&t.fire("RawSaveContent",n),r=n.content,/TEXTAREA|INPUT/i.test(i.nodeName)?i.value=r:(!n.is_removing&&t.inline||(i.innerHTML=r),(u=ee.getParent(t.id,"form"))&&edt(u.elements,function(n){if(n.name===t.id)return n.value=r,!1})),n.element=i=null,!1!==n.set_dirty&&t.setDirty(!1),r},setContent:function(n,t){return aki(this,n,t)},getContent:function(t){return r=this,void 0===(i=t)&&(i={}),n.from(r.getBody()).fold(o("tree"===i.format?new wi("body",11):""),function(n){return cki(r,i,n)});var r,i},insertContent:function(n,t){t&&(n=fdt({content:n},t));this.execCommand("mceInsertContent",!1,n)},isDirty:function(){return!this.isNotDirty},setDirty:function(n){var t=!this.isNotDirty;this.isNotDirty=!n;n&&n!==t&&this.fire("dirty")},setMode:function(n){var t,i;(i=n)!==cli(t=this)&&(t.initialized?nyt(t,"readonly"===i):t.on("init",function(){nyt(t,"readonly"===i)}),oli(t,i))},getContainer:function(){return this.container||(this.container=ee.get(this.editorContainer||this.id+"_parent")),this.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return this.targetElm||(this.targetElm=ee.get(this.id)),this.targetElm},getWin:function(){var n;return this.contentWindow||(n=this.iframeElement)&&(this.contentWindow=n.contentWindow),this.contentWindow},getDoc:function(){var n;return this.contentDocument||(n=this.getWin())&&(this.contentDocument=n.document),this.contentDocument},getBody:function(){var n=this.getDoc();return this.bodyElement||(n?n.body:null)},convertURL:function(n,t,i){var r=this.settings;return r.urlconverter_callback?this.execCallback("urlconverter_callback",n,i,!0,t):!r.convert_urls||i&&"LINK"===i.nodeName||0===n.indexOf("file:")||0===n.length?n:r.relative_urls?this.documentBaseURI.toRelative(n):n=this.documentBaseURI.toAbsolute(n,r.remove_script_host)},addVisual:function(n){var r,t=this,u=t.settings,i=t.dom;n=n||t.getBody();t.hasVisual===undefined&&(t.hasVisual=u.visual);edt(i.select("table,a",n),function(n){var f;switch(n.nodeName){case"TABLE":return r=u.visual_table_class||"mce-item-table",void((f=i.getAttrib(n,"border"))&&"0"!==f||!t.hasVisual?i.removeClass(n,r):i.addClass(n,r));case"A":return void(i.getAttrib(n,"href")||(f=i.getAttrib(n,"name")||n.id,r=u.visual_anchor_class||"mce-item-anchor",f&&t.hasVisual?i.addClass(n,r):i.removeClass(n,r)))}});t.fire("VisualAid",{element:n,hasVisual:t.hasVisual})},remove:function(){vki(this)},destroy:function(n){yki(this,n)},uploadImages:function(n){return this.editorUpload.uploadImages(n)},_scanForImages:function(){return this.editorUpload.scanForImages()}},uyt);var sc,up,uf,sdt={isEditorUIElement:function(n){return-1!==n.className.toString().indexOf("mce-")}},wki=function(n,t){var i,r;ou.detect().browser.isIE()?(r=n).on("focusout",function(){iy(r)}):(i=t,n.on("mouseup touchend",function(){i.throttle()}));n.on("keyup nodechange",function(t){var i;"nodechange"===(i=t).type&&i.selectionChange||iy(n)})},bki=function(n){var r,u,t,i=iet(function(){iy(n)},0);n.inline&&(r=n,u=i,t=function(){u.throttle()},g.DOM.bind(document,"mouseup",t),r.on("remove",function(){g.DOM.unbind(document,"mouseup",t)}));n.on("init",function(){wki(n,i)});n.on("remove",function(){i.cancel()})},ftt=g.DOM,kki=function(n){return sdt.isEditorUIElement(n)},hdt=function(n,t){var i=n?n.settings.custom_ui_selector:"";return null!==ftt.getParent(t,function(t){return kki(t)||!!i&&n.dom.is(t,i)})},dki=function(n,t){var i=t.editor;bki(i);i.on("focusin",function(){var t=n.focusedEditor;t!==this&&(t&&t.fire("blur",{focusedEditor:this}),n.setActive(this),(n.focusedEditor=this).fire("focus",{blurredEditor:t}),this.focus(!0))});i.on("focusout",function(){var t=this;gt.setEditorTimeout(t,function(){var i=n.focusedEditor;hdt(t,function(){try{return document.activeElement}catch(n){return document.body}}())||i!==t||(t.fire("blur",{focusedEditor:null}),n.focusedEditor=null)})});sc||(sc=function(t){var i,r=n.activeEditor;i=t.target;r&&i.ownerDocument===document&&(i===document.body||hdt(r,i)||n.focusedEditor!==r||(r.fire("blur",{focusedEditor:null}),n.focusedEditor=null))},ftt.bind(document,"focusin",sc))},gki=function(n,t){n.focusedEditor===t.editor&&(n.focusedEditor=null);n.activeEditor||(ftt.unbind(document,"focusin",sc),sc=null)},ndi=function(n){n.on("AddEditor",f(dki,n));n.on("RemoveEditor",f(gki,n))},fp={},ett="en",ep={setCode:function(n){n&&(ett=n,this.rtl=!!this.data[n]&&"rtl"===this.data[n]._dir)},getCode:function(){return ett},rtl:!1,add:function(n,t){var i=fp[n],r;for(r in i||(fp[n]=i={}),t)i[r]=t[r];this.setCode(n)},translate:function(n){var u=fp[ett]||{},i=function(n){return t.is(n,"function")?Object.prototype.toString.call(n):f(n)?"":""+n},f=function(n){return""===n||null===n||t.is(n,"undefined")},e=function(n){return n=i(n),t.hasOwn(u,n)?i(u[n]):n},r;return f(n)?"":t.is(n,"object")&&t.hasOwn(n,"raw")?i(n.raw):(t.is(n,"array")&&(r=n.slice(1),n=e(n[0]).replace(/\{([0-9]+)\}/g,function(n,u){return t.hasOwn(r,u)?i(r[u]):n})),e(n).replace(/{context:\w+}$/,""))},data:fp},ri=g.DOM,tdi=t.explode,cr=t.each,cdt=t.extend,idi=0,ldt=!1,ff=[],pt=[],adt=function(n){cr(uf.get(),function(t){"scroll"===n.type?t.fire("ScrollWindow",n):t.fire("ResizeWindow",n)})},vdt=function(n){n!==ldt&&(n?e(window).on("resize scroll",adt):e(window).off("resize scroll",adt),ldt=n)},ydt=function(n){var i=pt,t;for(delete ff[n.id],t=0;t<ff.length;t++)if(ff[t]===n){ff.splice(t,1);break}return pt=vt(pt,function(t){return n!==t}),uf.activeEditor===n&&(uf.activeEditor=0<pt.length?pt[0]:null),uf.focusedEditor===n&&(uf.focusedEditor=null),i.length!==pt.length};cdt(uf={defaultSettings:{},$:e,majorVersion:"4",minorVersion:"8.2",releaseDate:"2018-08-09",editors:ff,i18n:ep,activeEditor:null,settings:{},setup:function(){var i,n,r,t,u="",e,f,o;if(n=li.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(n)&&(n=n.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(n)||(n+="/")),r=window.tinymce||window.tinyMCEPreInit)i=r.base||r.baseURL,u=r.suffix;else{for(e=document.getElementsByTagName("script"),f=0;f<e.length;f++)if(o=(t=e[f].src).substring(t.lastIndexOf("/")),/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(t)){-1!==o.indexOf(".min")&&(u=".min");i=t.substring(0,t.lastIndexOf("/"));break}!i&&document.currentScript&&(-1!==(t=document.currentScript.src).indexOf(".min")&&(u=".min"),i=t.substring(0,t.lastIndexOf("/")))}this.baseURL=new li(n).toAbsolute(i);this.documentBaseURL=n;this.baseURI=new li(this.baseURL);this.suffix=u;ndi(this)},overrideDefaults:function(n){var r,u,t,i;(r=n.base_url)&&(this.baseURL=new li(this.documentBaseURL).toAbsolute(r.replace(/\/+$/,"")),this.baseURI=new li(this.baseURL));u=n.suffix;n.suffix&&(this.suffix=u);t=(this.defaultSettings=n).plugin_base_urls;for(i in t)wt.PluginManager.urls[i]=t[i]},init:function(n){var r,f,i=this;f=t.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option tbody tfoot thead tr script noscript style textarea video audio iframe object menu"," ");var o=function(n){var t=n.id;return t||(t=(t=n.name)&&!ri.get(t)?n.name:ri.uniqueId(),n.setAttribute("id",t)),t},h=function(n,t){return t.constructor===RegExp?t.test(n.className):ri.hasClass(n,t)},u=function(n){r=n},c=function(){var r,v=0,l=[],a=function(n,t,f){var e=new oc(n,t,i);l.push(e);e.on("init",function(){++v===r.length&&u(l)});e.targetElm=e.targetElm||f;e.render()};ri.unbind(window,"ready",c),function(t){var r=n[t];r&&r.apply(i,Array.prototype.slice.call(arguments,2))}("onpageload");r=e.unique(function(n){var i,t=[];if(s.ie&&s.ie<11)return byt("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(n.types)return cr(n.types,function(n){t=t.concat(ri.select(n.selector))}),t;if(n.selector)return ri.select(n.selector);if(n.target)return[n.target];switch(n.mode){case"exact":0<(i=n.elements||"").length&&cr(tdi(i),function(n){var i;(i=ri.get(n))?t.push(i):cr(document.forms,function(i){cr(i.elements,function(i){i.name===n&&(n="mce_editor_"+idi++,ri.setAttrib(i,"id",n),t.push(i))})})});break;case"textareas":case"specific_textareas":cr(ri.select("textarea"),function(i){n.editor_deselector&&h(i,n.editor_deselector)||n.editor_selector&&!h(i,n.editor_selector)||t.push(i)})}return t}(n));n.types?cr(n.types,function(i){t.each(r,function(t){return!ri.is(t,i.selector)||(a(o(t),cdt({},n,i),t),!1)})}):(t.each(r,function(n){var t;(t=i.get(n.id))&&t.initialized&&!(t.getContainer()||t.getBody()).parentNode&&(ydt(t),t.unbindAllNativeEvents(),t.destroy(!0),t.removed=!0,t=null)}),0===(r=t.grep(r,function(n){return!i.get(n.id)})).length?u([]):cr(r,function(t){var i;i=t;n.inline&&i.tagName.toLowerCase()in f?byt("Could not initialize inline editor on invalid inline target element",t):a(o(t),n,t)}))};return i.settings=n,ri.bind(window,"ready",c),new ei(function(n){r?n(r):u=function(t){n(t)}})},get:function(n){return 0===arguments.length?pt.slice(0):vi(n)?ui(pt,function(t){return t.id===n}).getOr(null):wp(n)&&pt[n]?pt[n]:null},add:function(n){var t=this;return ff[n.id]===n||(null===t.get(n.id)&&("length"!==n.id&&(ff[n.id]=n),ff.push(n),pt.push(n)),vdt(!0),t.activeEditor=n,t.fire("AddEditor",{editor:n}),up||(up=function(){t.fire("BeforeUnload")},ri.bind(window,"beforeunload",up))),n},createEditor:function(n,t){return this.add(new oc(n,t,this))},remove:function(n){var r,t,i=this;if(n){if(!vi(n))return t=n,tgt(i.get(t.id))?null:(ydt(t)&&i.fire("RemoveEditor",{editor:t}),0===pt.length&&ri.unbind(window,"beforeunload",up),t.remove(),vdt(0<pt.length),t);cr(ri.select(n),function(n){(t=i.get(n.id))&&i.remove(t)})}else for(r=pt.length-1;0<=r;r--)i.remove(pt[r])},execCommand:function(n,t,i){var r=this.get(i);switch(n){case"mceAddEditor":return this.get(i)||new oc(i,this.settings,this).render(),!0;case"mceRemoveEditor":return r&&r.remove(),!0;case"mceToggleEditor":return r?r.isHidden()?r.show():r.hide():this.execCommand("mceAddEditor",0,i),!0}return!!this.activeEditor&&this.activeEditor.execCommand(n,t,i)},triggerSave:function(){cr(pt,function(n){n.save()})},addI18n:function(n,t){ep.add(n,t)},translate:function(n){return ep.translate(n)},setActive:function(n){var t=this.activeEditor;this.activeEditor!==n&&(t&&t.fire("deactivate",{relatedTarget:n}),n.fire("activate",{relatedTarget:t}));this.activeEditor=n}},uy);uf.setup();ott=uf;(op=stt||(stt={})).compareRanges=vd;op.getCaretRangeFromPoint=an;op.getSelectedNode=rk;op.getNode=so;var pdt,htt,rdi=stt,wdt=Math.min,rs=Math.max,sp=Math.round,bdt=function(n,t,i){var r,u,f,e,o,s;return r=t.x,u=t.y,f=n.w,e=n.h,o=t.w,s=t.h,"b"===(i=(i||"").split(""))[0]&&(u+=s),"r"===i[1]&&(r+=o),"c"===i[0]&&(u+=sp(s/2)),"c"===i[1]&&(r+=sp(o/2)),"b"===i[3]&&(u-=e),"r"===i[4]&&(r-=f),"c"===i[3]&&(u-=sp(e/2)),"c"===i[4]&&(r-=sp(f/2)),us(r,u,f,e)},us=function(n,t,i,r){return{x:n,y:t,w:i,h:r}},udi={inflate:function(n,t,i){return us(n.x-t,n.y-i,n.w+2*t,n.h+2*i)},relativePosition:bdt,findBestRelativePosition:function(n,t,i,r){for(var u,f=0;f<r.length;f++)if((u=bdt(n,t,r[f])).x>=i.x&&u.x+u.w<=i.w+i.x&&u.y>=i.y&&u.y+u.h<=i.h+i.y)return r[f];return null},intersect:function(n,t){var i,r,u,f;return i=rs(n.x,t.x),r=rs(n.y,t.y),u=wdt(n.x+n.w,t.x+t.w),f=wdt(n.y+n.h,t.y+t.h),u-i<0||f-r<0?null:us(i,r,u-i,f-r)},clamp:function(n,t,i){var o,s,h,c,r,u,f,e,l,a;return r=n.x,u=n.y,f=n.x+n.w,e=n.y+n.h,l=t.x+t.w,a=t.y+t.h,o=rs(0,t.x-r),s=rs(0,t.y-u),h=rs(0,f-l),c=rs(0,e-a),r+=o,u+=s,i&&(f+=o,e+=s,r-=h,u-=c),us(r,u,(f-=h)-r,(e-=c)-u)},create:us,fromClientRect:function(n){return us(n.left,n.top,n.width,n.height)}},hc={},fdi={add:function(n,t){hc[n.toLowerCase()]=t},has:function(n){return!!hc[n.toLowerCase()]},get:function(n){var t=n.toLowerCase(),i=hc.hasOwnProperty(t)?hc[t]:null;if(null===i)throw new Error("Could not find module for type: "+n);return i},create:function(n,t){var i;if("string"==typeof n?(t=t||{}).type=n:n=(t=n).type,n=n.toLowerCase(),!(i=hc[n]))throw new Error("Could not find control by type: "+n);return(i=new i(t)).type=n,i}},hp=t.each,edi=t.extend,kdt=function(){};kdt.extend=pdt=function(n){var u,i,f,t=this.prototype,r=function(){var n,t,i;if(!htt&&(this.init&&this.init.apply(this,arguments),t=this.Mixins))for(n=t.length;n--;)(i=t[n]).init&&i.init.apply(this,arguments)},e=function(){return this},o=function(n,i){return function(){var r,u=this._super;return this._super=t[n],r=i.apply(this,arguments),this._super=u,r}};for(i in htt=!0,u=new this,htt=!1,n.Mixins&&(hp(n.Mixins,function(t){for(var i in t)"init"!==i&&(n[i]=t[i])}),t.Mixins&&(n.Mixins=t.Mixins.concat(n.Mixins))),n.Methods&&hp(n.Methods.split(","),function(t){n[t]=e}),n.Properties&&hp(n.Properties.split(","),function(t){var i="_"+t;n[t]=function(n){return n!==undefined?(this[i]=n,this):this[i]}}),n.Statics&&hp(n.Statics,function(n,t){r[t]=n}),n.Defaults&&t.Defaults&&(n.Defaults=edi({},t.Defaults,n.Defaults)),n)u[i]="function"==typeof(f=n[i])&&t[i]?o(i,f):f;return r.prototype=u,(r.constructor=r).extend=pdt,r};var cp=Math.min,lp=Math.max,oe=Math.round,ctt=function(n,t){var r,i,f,u;if(t=t||'"',null===n)return"null";if("string"==(f=typeof n))return i="\bb\tt\nn\ff\rr\"\"''\\\\",t+n.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g,function(n,u){return'"'===t&&"'"===n?n:(r=i.indexOf(u))+1?"\\"+i.charAt(r+1):(n=u.charCodeAt().toString(16),"\\u"+"0000".substring(n.length)+n)})+t;if("object"===f){if(n.hasOwnProperty&&"[object Array]"===Object.prototype.toString.call(n)){for(r=0,i="[";r<n.length;r++)i+=(0<r?",":"")+ctt(n[r],t);return i+"]"}for(u in i="{",n)n.hasOwnProperty(u)&&(i+="function"!=typeof n[u]?(1<i.length?","+t:t)+u+t+":"+ctt(n[u],t):"");return i+"}"}return""+n},ltt={serialize:ctt,parse:function(n){try{return JSON.parse(n)}catch(t){}}},odi={callbacks:{},count:0,send:function(n){var t=this,i=g.DOM,r=n.count!==undefined?n.count:t.count,u="tinymce_jsonp_"+r;t.callbacks[r]=function(f){i.remove(u);delete t.callbacks[r];n.callback(f)};i.add(i.doc.body,"script",{id:u,src:n.url,type:"text/javascript"});t.count++}},cc={send:function(n){var i,r=0,u=function(){!n.async||4===i.readyState||1e4<r++?(n.success&&r<1e4&&200===i.status?n.success.call(n.success_scope,""+i.responseText,i,n):n.error&&n.error.call(n.error_scope,1e4<r?"TIMED_OUT":"GENERAL",i,n),i=null):setTimeout(u,10)};if(n.scope=n.scope||this,n.success_scope=n.success_scope||n.scope,n.error_scope=n.error_scope||n.scope,n.async=!1!==n.async,n.data=n.data||"",cc.fire("beforeInitialize",{settings:n}),i=new ig){if(i.overrideMimeType&&i.overrideMimeType(n.content_type),i.open(n.type||(n.data?"POST":"GET"),n.url,n.async),n.crossDomain&&(i.withCredentials=!0),n.content_type&&i.setRequestHeader("Content-Type",n.content_type),n.requestheaders&&t.each(n.requestheaders,function(n){i.setRequestHeader(n.key,n.value)}),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),(i=cc.fire("beforeSend",{xhr:i,settings:n}).xhr).send(n.data),!n.async)return u();setTimeout(u,10)}}};t.extend(cc,uy);ytt=t.extend;ac=function(n){this.settings=ytt({},n);this.count=0};ac.sendRPC=function(n){return(new ac).send(n)};ac.prototype={send:function(n){var t=n.error,i=n.success;(n=ytt(this.settings,n)).success=function(r,u){void 0===(r=ltt.parse(r))&&(r={error:"JSON Parse error."});r.error?t.call(n.error_scope||n.scope,r.error,u):i.call(n.success_scope||n.scope,r.result)};n.error=function(i,r){t&&t.call(n.error_scope||n.scope,i,r)};n.data=ltt.serialize({id:n.id||"c"+this.count++,method:n.method,params:n.params});n.content_type="application/json";cc.send(n)}};try{att=window.localStorage}catch(hdi){lc={};se=[];vtt={getItem:function(n){var t=lc[n];return t||null},setItem:function(n,t){se.push(n);lc[n]=String(t)},key:function(n){return se[n]},removeItem:function(n){se=se.filter(function(t){return t===n});delete lc[n]},clear:function(){se=[];lc={}},length:0};Object.defineProperty(vtt,"length",{get:function(){return se.length},configurable:!1,enumerable:!1});att=vtt}var ptt,ddt=ott,sdi={geom:{Rect:udi},util:{Promise:ei,Delay:gt,Tools:t,VK:y,URI:li,Class:kdt,EventDispatcher:ph,Observable:uy,I18n:ep,XHR:cc,JSON:ltt,JSONRequest:ac,JSONP:odi,LocalStorage:att,Color:function(n){var u={},t=0,i=0,r=0,f=function(n){var f;return"object"==typeof n?"r"in n?(t=n.r,i=n.g,r=n.b):"v"in n&&function(n,u,f){var h,e,o,s;if(n=(parseInt(n,10)||0)%360,u=parseInt(u,10)/100,f=parseInt(f,10)/100,u=lp(0,cp(u,1)),f=lp(0,cp(f,1)),0!==u){switch(h=n/60,o=(e=f*u)*(1-Math.abs(h%2-1)),s=f-e,Math.floor(h)){case 0:t=e;i=o;r=0;break;case 1:t=o;i=e;r=0;break;case 2:t=0;i=e;r=o;break;case 3:t=0;i=o;r=e;break;case 4:t=o;i=0;r=e;break;case 5:t=e;i=0;r=o;break;default:t=i=r=0}t=oe(255*(t+s));i=oe(255*(i+s));r=oe(255*(r+s))}else t=i=r=oe(255*f)}(n.h,n.s,n.v):(f=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(n))?(t=parseInt(f[1],10),i=parseInt(f[2],10),r=parseInt(f[3],10)):(f=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(n))?(t=parseInt(f[1],16),i=parseInt(f[2],16),r=parseInt(f[3],16)):(f=/#([0-F])([0-F])([0-F])/gi.exec(n))&&(t=parseInt(f[1]+f[1],16),i=parseInt(f[2]+f[2],16),r=parseInt(f[3]+f[3],16)),t=t<0?0:255<t?255:t,i=i<0?0:255<i?255:i,r=r<0?0:255<r?255:r,u};return n&&f(n),u.toRgb=function(){return{r:t,g:i,b:r}},u.toHsv=function(){return u=t,e=i,f=r,o=0,(n=cp(u/=255,cp(e/=255,f/=255)))===(s=lp(u,lp(e,f)))?{h:0,s:0,v:100*(o=n)}:(h=(s-n)/s,{h:oe(60*((u===n?3:f===n?1:5)-(u===n?e-f:f===n?u-e:f-u)/((o=s)-n))),s:oe(100*h),v:oe(100*o)});var u,e,f,h,o,n,s},u.toHex=function(){var n=function(n){return 1<(n=parseInt(n,10).toString(16)).length?n:"0"+n};return"#"+n(t)+n(i)+n(r)},u.parse=f,u}},dom:{EventUtils:lr,Sizzle:p,DomQuery:e,TreeWalker:st,DOMUtils:g,ScriptLoader:yr,RangeUtils:rdi,Serializer:fbt,ControlSelection:sbt,BookmarkManager:ebt,Selection:nkt,Event:lr.Event},html:{Styles:hb,Entities:wf,Node:wi,Schema:lu,SaxParser:yg,DomParser:cn,Writer:dct,Serializer:ch},ui:{Factory:fdi},Env:s,AddOnManager:wt,Annotator:pct,Formatter:bwt,UndoManager:bpt,EditorCommands:dvt,WindowManager:yyt,NotificationManager:vyt,EditorObservable:uyt,Shortcuts:eyt,Editor:oc,FocusManager:sdt,EditorManager:ott,DOM:g.DOM,ScriptLoader:yr.ScriptLoader,PluginManager:wt.PluginManager,ThemeManager:wt.ThemeManager,trim:t.trim,isArray:t.isArray,is:t.is,toArray:t.toArray,makeMap:t.makeMap,each:t.each,map:t.map,grep:t.grep,inArray:t.inArray,extend:t.extend,create:t.create,walk:t.walk,createNS:t.createNS,resolve:t.resolve,explode:t.explode,_addCacheSuffix:t._addCacheSuffix,isOpera:s.opera,isWebKit:s.webkit,isIE:s.ie,isGecko:s.gecko,isMac:s.mac},gdt=ddt=t.extend(ddt,sdi);ptt=gdt;window.tinymce=ptt;window.tinyMCE=ptt,function(n){if("object"==typeof module)try{module.exports=n}catch(t){}}(gdt)}();+function(n){"use strict";function i(t){return t.is('[type="checkbox"]')?t.prop("checked"):t.is('[type="radio"]')?!!n('[name="'+t.attr("name")+'"]:checked').length:t.is("select[multiple]")?(t.val()||[]).length:t.val()}function r(i){return this.each(function(){var u=n(this),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),r=u.data("bs.validator");(r||i!="destroy")&&(r||u.data("bs.validator",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(r,u){this.options=u;this.validators=n.extend({},t.VALIDATORS,u.custom);this.$element=n(r);this.$btn=n('button[type="submit"], input[type="submit"]').filter('[form="'+this.$element.attr("id")+'"]').add(this.$element.find('input[type="submit"], button[type="submit"]'));this.update();this.$element.on("input.bs.validator change.bs.validator focusout.bs.validator",n.proxy(this.onInput,this));this.$element.on("submit.bs.validator",n.proxy(this.onSubmit,this));this.$element.on("reset.bs.validator",n.proxy(this.reset,this));this.$element.find("[data-match]").each(function(){var t=n(this),r=t.attr("data-match");n(r).on("input.bs.validator",function(){i(t)&&t.trigger("input.bs.validator")})});this.$inputs.filter(function(){return i(n(this))&&!n(this).closest(".has-error").length}).trigger("focusout");this.$element.attr("novalidate",!0)},u;t.VERSION="0.11.9";t.INPUT_SELECTOR=':input:not([type="hidden"], [type="submit"], [type="reset"], button)';t.FOCUS_OFFSET=20;t.DEFAULTS={delay:500,html:!1,disable:!0,focus:!0,custom:{},errors:{match:"Does not match",minlength:"Not long enough"},feedback:{success:"glyphicon-ok",error:"glyphicon-remove"}};t.VALIDATORS={"native":function(n){var t=n[0];if(t.checkValidity)return!t.checkValidity()&&!t.validity.valid&&(t.validationMessage||"error!")},match:function(i){var r=i.attr("data-match");return i.val()!==n(r).val()&&t.DEFAULTS.errors.match},minlength:function(n){var i=n.attr("data-minlength");return n.val().length<i&&t.DEFAULTS.errors.minlength}};t.prototype.update=function(){var i=this;return this.$inputs=this.$element.find(t.INPUT_SELECTOR).add(this.$element.find('[data-validate="true"]')).not(this.$element.find('[data-validate="false"]').each(function(){i.clearErrors(n(this))})),this.toggleSubmit(),this};t.prototype.onInput=function(t){var r=this,i=n(t.target),u=t.type!=="focusout";this.$inputs.is(i)&&this.validateInput(i,u).done(function(){r.toggleSubmit()})};t.prototype.validateInput=function(t,r){var o=i(t),e=t.data("bs.validator.errors"),f,u;if(t.is('[type="radio"]')&&(t=this.$element.find('input[name="'+t.attr("name")+'"]')),f=n.Event("validate.bs.validator",{relatedTarget:t[0]}),this.$element.trigger(f),!f.isDefaultPrevented())return u=this,this.runValidators(t).done(function(i){t.data("bs.validator.errors",i);i.length?r?u.defer(t,u.showErrors):u.showErrors(t):u.clearErrors(t);e&&i.toString()===e.toString()||(f=i.length?n.Event("invalid.bs.validator",{relatedTarget:t[0],detail:i}):n.Event("valid.bs.validator",{relatedTarget:t[0],detail:e}),u.$element.trigger(f));u.toggleSubmit();u.$element.trigger(n.Event("validated.bs.validator",{relatedTarget:t[0]}))})};t.prototype.runValidators=function(t){function e(n){return t.attr("data-"+n+"-error")}function o(){var n=t[0].validity;return n.typeMismatch?t.attr("data-type-error"):n.patternMismatch?t.attr("data-pattern-error"):n.stepMismatch?t.attr("data-step-error"):n.rangeOverflow?t.attr("data-max-error"):n.rangeUnderflow?t.attr("data-min-error"):n.valueMissing?t.attr("data-required-error"):null}function s(){return t.attr("data-error")}function f(n){return e(n)||o()||s()}var r=[],u=n.Deferred();return t.data("bs.validator.deferred")&&t.data("bs.validator.deferred").reject(),t.data("bs.validator.deferred",u),n.each(this.validators,n.proxy(function(n,u){var e=null;(i(t)||t.attr("required"))&&(t.attr("data-"+n)!==undefined||n=="native")&&(e=u.call(this,t))&&(e=f(n)||e,~r.indexOf(e)||r.push(e))},this)),!r.length&&i(t)&&t.attr("data-remote")?this.defer(t,function(){var e={};e[t.attr("name")]=i(t);n.get(t.attr("data-remote"),e).fail(function(n,t,i){r.push(f("remote")||i)}).always(function(){u.resolve(r)})}):u.resolve(r),u.promise()};t.prototype.validate=function(){var t=this;return n.when(this.$inputs.map(function(){return t.validateInput(n(this),!1)})).then(function(){t.toggleSubmit();t.focusError()}),this};t.prototype.focusError=function(){if(this.options.focus){var i=this.$element.find(".has-error :input:first");i.length!==0&&(n("html, body").animate({scrollTop:i.offset().top-t.FOCUS_OFFSET},250),i.focus())}};t.prototype.showErrors=function(t){var e=this.options.html?"html":"text",r=t.data("bs.validator.errors"),i=t.closest(".form-group"),u=i.find(".help-block.with-errors"),f=i.find(".form-control-feedback");r.length&&(r=n("<ul/>").addClass("list-unstyled").append(n.map(r,function(t){return n("<li/>")[e](t)})),u.data("bs.validator.originalContent")===undefined&&u.data("bs.validator.originalContent",u.html()),u.empty().append(r),i.addClass("has-error has-danger"),i.hasClass("has-feedback")&&f.removeClass(this.options.feedback.success)&&f.addClass(this.options.feedback.error)&&i.removeClass("has-success"))};t.prototype.clearErrors=function(n){var t=n.closest(".form-group"),u=t.find(".help-block.with-errors"),r=t.find(".form-control-feedback");u.html(u.data("bs.validator.originalContent"));t.removeClass("has-error has-danger has-success");t.hasClass("has-feedback")&&r.removeClass(this.options.feedback.error)&&r.removeClass(this.options.feedback.success)&&i(n)&&r.addClass(this.options.feedback.success)&&t.addClass("has-success")};t.prototype.hasErrors=function(){function t(){return!!(n(this).data("bs.validator.errors")||[]).length}return!!this.$inputs.filter(t).length};t.prototype.isIncomplete=function(){function t(){var t=i(n(this));return!(typeof t=="string"?n.trim(t):t)}return!!this.$inputs.filter("[required]").filter(t).length};t.prototype.onSubmit=function(n){this.validate();(this.isIncomplete()||this.hasErrors())&&n.preventDefault()};t.prototype.toggleSubmit=function(){this.options.disable&&this.$btn.toggleClass("disabled",this.isIncomplete()||this.hasErrors())};t.prototype.defer=function(t,i){if(i=n.proxy(i,this,t),!this.options.delay)return i();window.clearTimeout(t.data("bs.validator.timeout"));t.data("bs.validator.timeout",window.setTimeout(i,this.options.delay))};t.prototype.reset=function(){return this.$element.find(".form-control-feedback").removeClass(this.options.feedback.error).removeClass(this.options.feedback.success),this.$inputs.removeData(["bs.validator.errors","bs.validator.deferred"]).each(function(){var t=n(this),i=t.data("bs.validator.timeout");window.clearTimeout(i)&&t.removeData("bs.validator.timeout")}),this.$element.find(".help-block.with-errors").each(function(){var t=n(this),i=t.data("bs.validator.originalContent");t.removeData("bs.validator.originalContent").html(i)}),this.$btn.removeClass("disabled"),this.$element.find(".has-error, .has-danger, .has-success").removeClass("has-error has-danger has-success"),this};t.prototype.destroy=function(){return this.reset(),this.$element.removeAttr("novalidate").removeData("bs.validator").off(".bs.validator"),this.$inputs.off(".bs.validator"),this.options=null,this.validators=null,this.$element=null,this.$btn=null,this.$inputs=null,this};u=n.fn.validator;n.fn.validator=r;n.fn.validator.Constructor=t;n.fn.validator.noConflict=function(){return n.fn.validator=u,this};n(window).on("load",function(){n('form[data-toggle="validator"]').each(function(){var t=n(this);r.call(t,t.data())})})}(jQuery);!function(){function t(n,t){window.XMLHttpRequest.prototype[n]=t(window.XMLHttpRequest.prototype[n])}function n(n,t,i){try{Object.defineProperty(n,t,{get:i})}catch(r){}}if(window.FileAPI||(window.FileAPI={}),!window.XMLHttpRequest)throw"AJAX is not supported. XMLHttpRequest is not defined.";if(FileAPI.shouldLoad=!window.FormData||FileAPI.forceLoad,FileAPI.shouldLoad){var i=function(n){if(!n.__listeners){n.upload||(n.upload={});n.__listeners=[];var t=n.upload.addEventListener;n.upload.addEventListener=function(i,r){n.__listeners[i]=r;t&&t.apply(this,arguments)}}};t("open",function(n){return function(t,r,u){i(this);this.__url=r;try{n.apply(this,[t,r,u])}catch(f){f.message.indexOf("Access is denied")>-1&&(this.__origError=f,n.apply(this,[t,"_fix_for_ie_crossdomain__",u]))}}});t("getResponseHeader",function(n){return function(t){return this.__fileApiXHR&&this.__fileApiXHR.getResponseHeader?this.__fileApiXHR.getResponseHeader(t):null==n?null:n.apply(this,[t])}});t("getAllResponseHeaders",function(n){return function(){return this.__fileApiXHR&&this.__fileApiXHR.getAllResponseHeaders?this.__fileApiXHR.getAllResponseHeaders():null==n?null:n.apply(this)}});t("abort",function(n){return function(){return this.__fileApiXHR&&this.__fileApiXHR.abort?this.__fileApiXHR.abort():null==n?null:n.apply(this)}});t("setRequestHeader",function(n){return function(t,r){if("__setXHR_"===t){i(this);var u=r(this);u instanceof Function&&u(this)}else this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[t]=r,n.apply(this,arguments)}});t("send",function(t){return function(){var i=this,e,u,f,r;if(arguments[0]&&arguments[0].__isFileAPIShim){for(e=arguments[0],u={url:i.__url,jsonp:!1,cache:!0,complete:function(t,r){t&&angular.isString(t)&&-1!==t.indexOf("#2174")&&(t=null);i.__completed=!0;!t&&i.__listeners.load&&i.__listeners.load({type:"load",loaded:i.__loaded,total:i.__total,target:i,lengthComputable:!0});!t&&i.__listeners.loadend&&i.__listeners.loadend({type:"loadend",loaded:i.__loaded,total:i.__total,target:i,lengthComputable:!0});"abort"===t&&i.__listeners.abort&&i.__listeners.abort({type:"abort",loaded:i.__loaded,total:i.__total,target:i,lengthComputable:!0});void 0!==r.status&&n(i,"status",function(){return 0===r.status&&t&&"abort"!==t?500:r.status});void 0!==r.statusText&&n(i,"statusText",function(){return r.statusText});n(i,"readyState",function(){return 4});void 0!==r.response&&n(i,"response",function(){return r.response});var u=r.responseText||(t&&0===r.status&&"abort"!==t?t:void 0);n(i,"responseText",function(){return u});n(i,"response",function(){return u});t&&n(i,"err",function(){return t});i.__fileApiXHR=r;i.onreadystatechange&&i.onreadystatechange();i.onload&&i.onload()},progress:function(n){if(n.target=i,i.__listeners.progress&&i.__listeners.progress(n),i.__total=n.total,i.__loaded=n.loaded,n.total===n.loaded){var t=this;setTimeout(function(){i.__completed||(i.getAllResponseHeaders=function(){},t.complete(null,{status:204,statusText:"No Content"}))},FileAPI.noContentTimeout||1e4)}},headers:i.__requestHeaders},u.data={},u.files={},f=0;f<e.data.length;f++)r=e.data[f],null!=r.val&&null!=r.val.name&&null!=r.val.size&&null!=r.val.type?u.files[r.key]=r.val:u.data[r.key]=r.val;setTimeout(function(){if(!FileAPI.hasFlash)throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';i.__fileApiXHR=FileAPI.upload(u)},1)}else{if(this.__origError)throw this.__origError;t.apply(i,arguments)}}});window.XMLHttpRequest.__isFileAPIShim=!0;window.FormData=FormData=function(){return{append:function(n,t,i){t.__isFileAPIBlobShim&&(t=t.data[0]);this.data.push({key:n,val:t,name:i})},data:[],__isFileAPIShim:!0}};window.Blob=Blob=function(n){return{data:n,__isFileAPIBlobShim:!0}}}}(),function(){function h(n){return"input"===n[0].tagName.toLowerCase()&&n.attr("type")&&"file"===n.attr("type").toLowerCase()}function u(){try{var n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(n)return!0}catch(t){if(void 0!==navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1}function f(n){var t=0,i=0;if(window.jQuery)return jQuery(n).offset();if(n.offsetParent)do t+=n.offsetLeft-n.scrollLeft,i+=n.offsetTop-n.scrollTop,n=n.offsetParent;while(n);return{left:t,top:i}}if(FileAPI.shouldLoad){if(FileAPI.hasFlash=u(),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var e,n,t,i,r,o=document.createElement("script"),s=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)e=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)n=window.FileAPI.jsPath;else for(t=0;t<s.length;t++)if(r=s[t].src,i=r.search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/),i>-1){n=r.substring(0,i+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=n);o.setAttribute("src",e||n+"FileAPI.min.js");document.getElementsByTagName("head")[0].appendChild(o)}FileAPI.ngfFixIE=function(n,t,i){var r,e;if(!u())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';r=function(){var r=t.parent();n.attr("disabled")?r&&r.removeClass("js-fileapi-wrapper"):(t.attr("__ngf_flash_")||(t.unbind("change"),t.unbind("click"),t.bind("change",function(n){e.apply(this,[n]);i.apply(this,[n])}),t.attr("__ngf_flash_","true")),r.addClass("js-fileapi-wrapper"),h(n)||(r.css("position","absolute").css("top",f(n[0]).top+"px").css("left",f(n[0]).left+"px").css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("filter","alpha(opacity=0)").css("display",n.css("display")).css("overflow","hidden").css("z-index","900000").css("visibility","visible"),t.css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("position","absolute").css("top","0px").css("left","0px")))};n.bind("mouseenter",r);e=function(n){for(var t=FileAPI.getFiles(n),i=0;i<t.length;i++)void 0===t[i].size&&(t[i].size=0),void 0===t[i].name&&(t[i].name="file"),void 0===t[i].type&&(t[i].type="undefined");n.target||(n.target={});n.target.files=t;n.target.files!==t&&(n.__files_=t);(n.__files_||n.target.files).item=function(t){return(n.__files_||n.target.files)[t]||null}}};FileAPI.disableFileInput=function(n,t){t?n.removeClass("js-fileapi-wrapper"):n.addClass("js-fileapi-wrapper")}}}();window.FileReader||(window.FileReader=function(){var n=this,r=!1,t,i;this.listeners={};this.addEventListener=function(t,i){n.listeners[t]=n.listeners[t]||[];n.listeners[t].push(i)};this.removeEventListener=function(t,i){n.listeners[t]&&n.listeners[t].splice(n.listeners[t].indexOf(i),1)};this.dispatchEvent=function(t){var r=n.listeners[t.type],i;if(r)for(i=0;i<r.length;i++)r[i].call(n,t)};this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;t=function(t,i){var r={type:t,target:n,loaded:i.loaded,total:i.total,error:i.error};return null!=i.result&&(r.target.result=i.result),r};i=function(i){r||(r=!0,n.onloadstart&&n.onloadstart(t("loadstart",i)));var u;"load"===i.type?(n.onloadend&&n.onloadend(t("loadend",i)),u=t("load",i),n.onload&&n.onload(u),n.dispatchEvent(u)):"progress"===i.type?(u=t("progress",i),n.onprogress&&n.onprogress(u),n.dispatchEvent(u)):(u=t("error",i),n.onerror&&n.onerror(u),n.dispatchEvent(u))};this.readAsDataURL=function(n){FileAPI.readAsDataURL(n,i)};this.readAsText=function(n){FileAPI.readAsText(n,i)}});!window.XMLHttpRequest||window.FileAPI&&FileAPI.shouldLoad||(window.XMLHttpRequest.prototype.setRequestHeader=function(n){return function(t,i){if("__setXHR_"===t){var r=i(this);r instanceof Function&&r(this)}else n.apply(this,arguments)}}(window.XMLHttpRequest.prototype.setRequestHeader));var ngFileUpload=angular.module("ngFileUpload",[]);ngFileUpload.version="12.2.13";ngFileUpload.service("UploadBase",["$http","$q","$timeout",function(n,t,i){function f(f){function h(n){o.notify&&o.notify(n);e.progressFunc&&i(function(){e.progressFunc(n)})}function c(n){return null!=f._start&&u?{loaded:n.loaded+f._start,total:f._file&&f._file.size||n.total,type:n.type,config:f,lengthComputable:!0,target:n.target}:n}function s(){n(f).then(function(n){if(u&&f._chunkSize&&!f._finished&&f._file){var t=f._file&&f._file.size||0;h({loaded:Math.min(f._end,t),total:t,config:f,type:"progress"});r.upload(f,!0)}else f._finished&&delete f._finished,o.resolve(n)},function(n){o.reject(n)},function(n){o.notify(n)})}f.method=f.method||"POST";f.headers=f.headers||{};var o=f._deferred=f._deferred||t.defer(),e=o.promise;return f.disableProgress||(f.headers.__setXHR_=function(){return function(n){n&&n.upload&&n.upload.addEventListener&&(f.__XHR=n,f.xhrFn&&f.xhrFn(n),n.upload.addEventListener("progress",function(n){n.config=f;h(c(n))},!1),n.upload.addEventListener("load",function(n){n.lengthComputable&&(n.config=f,h(c(n)))},!1))}}),u?f._chunkSize&&f._end&&!f._finished?(f._start=f._end,f._end+=f._chunkSize,s()):f.resumeSizeUrl?n.get(f.resumeSizeUrl).then(function(n){f._start=f.resumeSizeResponseReader?f.resumeSizeResponseReader(n.data):parseInt((null==n.data.size?n.data:n.data.size).toString());f._chunkSize&&(f._end=f._start+f._chunkSize);s()},function(n){throw n;}):f.resumeSize?f.resumeSize().then(function(n){f._start=n;f._chunkSize&&(f._end=f._start+f._chunkSize);s()},function(n){throw n;}):(f._chunkSize&&(f._start=0,f._end=f._start+f._chunkSize),s()):s(),e.success=function(n){return e.then(function(t){n(t.data,t.status,t.headers,f)}),e},e.error=function(n){return e.then(null,function(t){n(t.data,t.status,t.headers,f)}),e},e.progress=function(n){return e.progressFunc=n,e.then(null,null,function(t){n(t)}),e},e.abort=e.pause=function(){return f.__XHR&&i(function(){f.__XHR.abort()}),e},e.xhr=function(n){return f.xhrFn=function(t){return function(){t&&t.apply(e,arguments);n.apply(e,arguments)}}(f.xhrFn),e},r.promisesCount++,e["finally"]&&e["finally"]instanceof Function&&e["finally"](function(){r.promisesCount--}),e}function e(n){var i={},t;for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i}var r=this,u;r.promisesCount=0;this.isResumeSupported=function(){return window.Blob&&window.Blob.prototype.slice};u=this.isResumeSupported();this.isUploadInProgress=function(){return r.promisesCount>0};this.rename=function(n,t){return n.ngfName=t,n};this.jsonBlob=function(n){null==n||angular.isString(n)||(n=JSON.stringify(n));var t=new window.Blob([n],{type:"application/json"});return t._ngfBlob=!0,t};this.json=function(n){return angular.toJson(n)};this.isFile=function(n){return null!=n&&(n instanceof window.Blob||n.flashId&&n.name&&n.size)};this.upload=function(n,t){function o(t,i){if(t._ngfBlob)return t;if(n._file=n._file||t,null!=n._start&&u){n._end&&n._end>=t.size&&(n._finished=!0,n._end=t.size);var r=t.slice(n._start,n._end||t.size);return r.name=t.name,r.ngfName=t.ngfName,n._chunkSize&&(i.append("_chunkSize",n._chunkSize),i.append("_currentChunkSize",n._end-n._start),i.append("_chunkNumber",Math.floor(n._start/n._chunkSize)),i.append("_totalSize",n._file.size)),r}return t}function i(t,u,f){var s,h,e,c;if(void 0!==u)if(angular.isDate(u)&&(u=u.toISOString()),angular.isString(u))t.append(f,u);else if(r.isFile(u))s=o(u,t),h=f.split(","),h[1]&&(s.ngfName=h[1].replace(/^\s+|\s+$/g,""),f=h[0]),n._fileKey=n._fileKey||f,t.append(f,s,s.ngfName||s.name);else if(angular.isObject(u)){if(u.$$ngfCircularDetection)throw"ngFileUpload: Circular reference in config.data. Make sure specified data for Upload.upload() has no circular reference: "+f;u.$$ngfCircularDetection=!0;try{for(e in u)u.hasOwnProperty(e)&&"$$ngfCircularDetection"!==e&&(c=null==n.objectKey?"[i]":n.objectKey,u.length&&parseInt(e)>-1&&(c=null==n.arrayKey?c:n.arrayKey),i(t,u[e],f+c.replace(/[ik]/g,e)))}finally{delete u.$$ngfCircularDetection}}else t.append(f,u)}function s(){n._chunkSize=r.translateScalars(n.resumeChunkSize);n._chunkSize=n._chunkSize?parseInt(n._chunkSize.toString()):null;n.headers=n.headers||{};n.headers["Content-Type"]=void 0;n.transformRequest=n.transformRequest?angular.isArray(n.transformRequest)?n.transformRequest:[n.transformRequest]:[];n.transformRequest.push(function(t){var r,u=new window.FormData,f;t=t||n.fields||{};n.file&&(t.file=n.file);for(r in t)t.hasOwnProperty(r)&&(f=t[r],n.formDataAppender?n.formDataAppender(u,r,f):i(u,f,r));return u})}return t||(n=e(n)),n._isDigested||(n._isDigested=!0,s()),f(n)};this.http=function(t){return t=e(t),t.transformRequest=t.transformRequest||function(t){return window.ArrayBuffer&&t instanceof window.ArrayBuffer||t instanceof window.Blob?t:n.defaults.transformRequest[0].apply(this,arguments)},t._chunkSize=r.translateScalars(t.resumeChunkSize),t._chunkSize=t._chunkSize?parseInt(t._chunkSize.toString()):null,f(t)};this.translateScalars=function(n){if(angular.isString(n)){if(n.search(/kb/i)===n.length-2)return parseFloat(1024*n.substring(0,n.length-2));if(n.search(/mb/i)===n.length-2)return parseFloat(1048576*n.substring(0,n.length-2));if(n.search(/gb/i)===n.length-2)return parseFloat(1073741824*n.substring(0,n.length-2));if(n.search(/b/i)===n.length-1||n.search(/s/i)===n.length-1)return parseFloat(n.substring(0,n.length-1));if(n.search(/m/i)===n.length-1)return parseFloat(60*n.substring(0,n.length-1));if(n.search(/h/i)===n.length-1)return parseFloat(3600*n.substring(0,n.length-1))}return n};this.urlToBlob=function(i){var r=t.defer();return n({url:i,method:"get",responseType:"arraybuffer"}).then(function(n){var f=new Uint8Array(n.data),e=n.headers("content-type")||"image/WebP",t=new window.Blob([f],{type:e}),u=i.match(/.*\/(.+?)(\?.*)?$/);u.length>1&&(t.name=u[1]);r.resolve(t)},function(n){r.reject(n)}),r.promise};this.setDefaults=function(n){this.defaults=n||{}};this.defaults={};this.version=ngFileUpload.version}]);ngFileUpload.service("Upload",["$parse","$timeout","$compile","$q","UploadExif",function(n,t,i,r,u){function o(n,t,i){var u=[f.emptyPromise()];return angular.forEach(n,function(r,e){0===r.type.indexOf("image/jpeg")&&f.attrGetter("ngfFixOrientation",t,i,{$file:r})&&u.push(f.happyPromise(f.applyExifRotation(r),r).then(function(t){n.splice(e,1,t)}))}),r.all(u)}function s(n,t,i,u){var o=f.attrGetter("ngfResize",t,i),s;return!o||!f.isResizeSupported()||!n.length?f.emptyPromise():o instanceof Function?(s=r.defer(),o(n).then(function(r){e(r,n,t,i,u).then(function(n){s.resolve(n)},function(n){s.reject(n)})},function(n){s.reject(n)})):e(o,n,t,i,u)}function e(n,t,i,u,e){function h(r,o){if(0===r.type.indexOf("image")){if(n.pattern&&!f.validatePattern(r,n.pattern))return;n.resizeIf=function(n,t){return f.attrGetter("ngfResizeIf",i,u,{$width:n,$height:t,$file:r})};var h=f.resize(r,n);s.push(h);h.then(function(n){t.splice(o,1,n)},function(n){r.$error="resize";(r.$errorMessages=r.$errorMessages||{}).resize=!0;r.$errorParam=(n?(n.message?n.message:n)+": ":"")+(r&&r.name);e.$ngfValidations.push({name:"resize",valid:!1});f.applyModelValidation(e,t)})}}for(var s=[f.emptyPromise()],o=0;o<t.length;o++)h(t[o],o);return r.all(s)}var f=u;return f.getAttrWithDefaults=function(n,t){if(null!=n[t])return n[t];var i=f.defaults[t];return null==i?i:angular.isString(i)?i:JSON.stringify(i)},f.attrGetter=function(t,i,r,u){var f=this.getAttrWithDefaults(i,t);if(!r)return f;try{return u?n(f)(r,u):n(f)(r)}catch(e){if(t.search(/min|max|pattern/i))return f;throw e;}},f.shouldUpdateOn=function(n,t,i){var r=f.attrGetter("ngfModelOptions",t,i);return r&&r.updateOn?r.updateOn.split(" ").indexOf(n)>-1:!0},f.emptyPromise=function(){var n=r.defer(),i=arguments;return t(function(){n.resolve.apply(n,i)}),n.promise},f.rejectPromise=function(){var n=r.defer(),i=arguments;return t(function(){n.reject.apply(n,i)}),n.promise},f.happyPromise=function(n,i){var u=r.defer();return n.then(function(n){u.resolve(n)},function(n){t(function(){throw n;});u.resolve(i)}),u.promise},f.updateModel=function(i,r,u,e,h,c,l){function tt(o,s,h,l,a){var v,y,p;r.$$ngfPrevValidFiles=o;r.$$ngfPrevInvalidFiles=s;v=o&&o.length?o[0]:null;y=s&&s.length?s[0]:null;i&&(f.applyModelValidation(i,o),i.$setViewValue(a?v:o));e&&n(e)(u,{$files:o,$file:v,$newFiles:h,$duplicateFiles:l,$invalidFiles:s,$invalidFile:y,$event:c});p=f.attrGetter("ngfModelInvalid",r);p&&t(function(){n(p).assign(u,a?y:s)});t(function(){})}function rt(){function t(n,t){return n.name===t.name&&(n.$ngfOrigSize||n.size)===(t.$ngfOrigSize||t.size)&&n.type===t.type}function i(n){for(var i=0;i<p.length;i++)if(t(n,p[i]))return!0;for(i=0;i<d.length;i++)if(t(n,d[i]))return!0;return!1}if(h){a=[];b=[];for(var n=0;n<h.length;n++)i(h[n])?b.push(h[n]):a.push(h[n])}}function ut(n){return angular.isArray(n)?n:[n]}function it(){function n(){t(function(){tt(y?p.concat(v):v,y?d.concat(k):k,h,b,nt)},w&&w.debounce?w.debounce.change||w.debounce:0)}var e=g?a:v;s(e,r,u,i).then(function(){g?f.validate(a,y?p.length:0,i,r,u).then(function(t){v=t.validsFiles;k=t.invalidsFiles;n()}):n()},function(){for(var i,r,t=0;t<e.length;t++)i=e[t],"resize"===i.$error&&(r=v.indexOf(i),r>-1&&(v.splice(r,1),k.push(i)),n())})}var a,p,d,b=[],k=[],v=[],y,nt,g,w;p=r.$$ngfPrevValidFiles||[];d=r.$$ngfPrevInvalidFiles||[];i&&i.$modelValue&&(p=ut(i.$modelValue));y=f.attrGetter("ngfKeep",r,u);a=(h||[]).slice(0);("distinct"===y||f.attrGetter("ngfKeepDistinct",r,u)===!0)&&rt(r,u);nt=!y&&!f.attrGetter("ngfMultiple",r,u)&&!f.attrGetter("multiple",r);(!y||a.length)&&(f.attrGetter("ngfBeforeModelChange",r,u,{$files:h,$file:h&&h.length?h[0]:null,$newFiles:a,$duplicateFiles:b,$event:c}),g=f.attrGetter("ngfValidateAfterResize",r,u),w=f.attrGetter("ngfModelOptions",r,u),f.validate(a,y?p.length:0,i,r,u).then(function(n){l?tt(a,[],h,b,nt):(w&&w.allowInvalid||g?v=a:(v=n.validFiles,k=n.invalidFiles),f.attrGetter("ngfFixOrientation",r,u)&&f.isExifSupported()?o(v,r,u).then(function(){it()}):it())}))},f}]);ngFileUpload.directive("ngfSelect",["$parse","$timeout","$compile","Upload",function(n,t,i,r){function f(n){var t=n.match(/Android[^\d]*(\d+)\.(\d+)/),i;return t&&t.length>2?(i=r.defaults.androidFixMinorVersion||4,parseInt(t[1])<4||parseInt(t[1])===i&&parseInt(t[2])<i):-1===n.indexOf("Chrome")&&/.*Windows.*Safari.*/.test(n)}function e(n,t,i,r,e,o,s,h){function v(){return"input"===t[0].tagName.toLowerCase()&&i.type&&"file"===i.type.toLowerCase()}function p(){return l("ngfChange")||l("ngfSelect")}function y(t){var u,f,e;if(h.shouldUpdateOn("change",i,n)){if(u=t.__files_||t.target&&t.target.files,f=[],!u)return;for(e=0;e<u.length;e++)f.push(u[e]);h.updateModel(r,i,n,p(),f.length?f:null,t)}}function g(n,r){function e(t){n.attr("id","ngf-"+t);r.attr("id","ngf-label-"+t)}for(var u,f=0;f<t[0].attributes.length;f++)u=t[0].attributes[f],"type"!==u.name&&"class"!==u.name&&"style"!==u.name&&("id"===u.name?(e(u.value),a.push(i.$observe("id",e))):n.attr(u.name,u.value||"required"!==u.name&&"multiple"!==u.name?u.value:u.name))}function nt(){if(v())return t;var i=angular.element('<input type="file">'),n=angular.element("<label>upload<\/label>");return n.css("visibility","hidden").css("position","absolute").css("overflow","hidden").css("width","0px").css("height","0px").css("border","none").css("margin","0px").css("padding","0px").attr("tabindex","-1"),g(i,n),u.push({el:t,ref:n}),document.body.appendChild(n.append(i)[0]),i}function tt(i){if(t.attr("disabled"))return!1;if(!l("ngfSelectDisabled",n)){var r=it(i);if(null!=r)return r;w(i);try{v()||document.body.contains(c[0])||(u.push({el:t,ref:c.parent()}),document.body.appendChild(c.parent()[0]),c.bind("change",y))}catch(e){}return f(navigator.userAgent)?setTimeout(function(){c[0].click()},0):c[0].click(),!1}}function it(n){var t=n.changedTouches||n.originalEvent&&n.originalEvent.changedTouches,i,r;if(t)return"touchstart"===n.type?(d=t[0].clientX,k=t[0].clientY,!0):"touchend"===n.type&&(i=t[0].clientX,r=t[0].clientY,Math.abs(i-d)>20||Math.abs(r-k)>20)?(n.stopPropagation(),n.preventDefault(),!1):!0}function w(t){h.shouldUpdateOn("click",i,n)&&c.val()&&(c.val(null),h.updateModel(r,i,n,p(),null,t,!0))}function b(n){if(c&&!c.attr("__ngf_ie10_Fix_")){if(!c[0].parentNode)return void(c=null);n.preventDefault();n.stopPropagation();c.unbind("click");var t=c.clone();return c.replaceWith(t),c=t,c.attr("__ngf_ie10_Fix_","true"),c.bind("change",y),c.bind("click",b),c[0].click(),!1}c.removeAttr("__ngf_ie10_Fix_")}var l=function(n,t){return h.attrGetter(n,i,t)},a;h.registerModelChangeValidator(r,i,n);a=[];l("ngfMultiple")&&a.push(n.$watch(l("ngfMultiple"),function(){c.attr("multiple",l("ngfMultiple",n))}));l("ngfCapture")&&a.push(n.$watch(l("ngfCapture"),function(){c.attr("capture",l("ngfCapture",n))}));l("ngfAccept")&&a.push(n.$watch(l("ngfAccept"),function(){c.attr("accept",l("ngfAccept",n))}));a.push(i.$observe("accept",function(){c.attr("accept",l("accept"))}));var k=0,d=0,c=t;v()||(c=nt());c.bind("change",y);v()?t.bind("click",w):t.bind("click touchstart touchend",tt);-1!==navigator.appVersion.indexOf("MSIE 10")&&c.bind("click",b);r&&r.$formatters.push(function(n){return(null==n||0===n.length)&&c.val()&&c.val(null),n});n.$on("$destroy",function(){v()||c.parent().remove();angular.forEach(a,function(n){n()})});o(function(){for(var t,n=0;n<u.length;n++)t=u[n],document.body.contains(t.el[0])||(u.splice(n,1),t.ref.remove())});window.FileAPI&&window.FileAPI.ngfFixIE&&window.FileAPI.ngfFixIE(t,c,y)}var u=[];return{restrict:"AEC",require:"?ngModel",link:function(u,f,o,s){e(u,f,o,s,n,t,i,r)}}}]),function(){function t(n){return"img"===n.tagName.toLowerCase()?"image":"audio"===n.tagName.toLowerCase()?"audio":"video"===n.tagName.toLowerCase()?"video":/./}function n(n,i,r,u,f,e,o,s){function h(t){var e=n.attrGetter("ngfNoObjectUrl",f,r);n.dataUrl(t,e)["finally"](function(){i(function(){var n=(e?t.$ngfDataUrl:t.$ngfBlobUrl)||t.$ngfDataUrl;s?u.css("background-image","url('"+(n||"")+"')"):u.attr("src",n);n?u.removeClass("ng-hide"):u.addClass("ng-hide")})})}i(function(){var i=r.$watch(f[e],function(i){var c=o,l;return"ngfThumbnail"===e&&(c||(c={width:u[0].naturalWidth||u[0].clientWidth,height:u[0].naturalHeight||u[0].clientHeight}),0===c.width&&window.getComputedStyle)&&(l=getComputedStyle(u[0]),l.width&&l.width.indexOf("px")>-1&&l.height&&l.height.indexOf("px")>-1&&(c={width:parseInt(l.width.slice(0,-2)),height:parseInt(l.height.slice(0,-2))})),angular.isString(i)?(u.removeClass("ng-hide"),s?u.css("background-image","url('"+i+"')"):u.attr("src",i)):void(!i||!i.type||0!==i.type.search(t(u[0]))||s&&0!==i.type.indexOf("image")?u.addClass("ng-hide"):c&&n.isResizeSupported()?(c.resizeIf=function(t,u){return n.attrGetter("ngfResizeIf",f,r,{$width:t,$height:u,$file:i})},n.resize(i,c).then(function(n){h(n)},function(n){throw n;})):h(i))});r.$on("$destroy",function(){i()})})}ngFileUpload.service("UploadDataUrl",["UploadBase","$timeout","$q",function(n,t,i){var r=n;return r.base64DataUrl=function(n){if(angular.isArray(n)){var t=i.defer(),u=0;return angular.forEach(n,function(i){r.dataUrl(i,!0)["finally"](function(){if(u++,u===n.length){var i=[];angular.forEach(n,function(n){i.push(n.$ngfDataUrl)});t.resolve(i,n)}})}),t.promise}return r.dataUrl(n,!0)},r.dataUrl=function(n,u){var e,f;return n?u&&null!=n.$ngfDataUrl||!u&&null!=n.$ngfBlobUrl?r.emptyPromise(u?n.$ngfDataUrl:n.$ngfBlobUrl,n):(e=u?n.$$ngfDataUrlPromise:n.$$ngfBlobUrlPromise,e)?e:(f=i.defer(),t(function(){var i,e,o;if(window.FileReader&&n&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 8")||n.size<2e4)&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 9")||n.size<4e6))if(i=window.URL||window.webkitURL,i&&i.createObjectURL&&!u){try{e=i.createObjectURL(n)}catch(s){return void t(function(){n.$ngfBlobUrl="";f.reject()})}t(function(){var u,o,t;if(n.$ngfBlobUrl=e,e)for(f.resolve(e,n),r.blobUrls=r.blobUrls||[],r.blobUrlsTotalSize=r.blobUrlsTotalSize||0,r.blobUrls.push({url:e,size:n.size}),r.blobUrlsTotalSize+=n.size||0,u=r.defaults.blobUrlsMaxMemory||268435456,o=r.defaults.blobUrlsMaxQueueSize||200;(r.blobUrlsTotalSize>u||r.blobUrls.length>o)&&r.blobUrls.length>1;)t=r.blobUrls.splice(0,1)[0],i.revokeObjectURL(t.url),r.blobUrlsTotalSize-=t.size})}else o=new FileReader,o.onload=function(i){t(function(){n.$ngfDataUrl=i.target.result;f.resolve(i.target.result,n);t(function(){delete n.$ngfDataUrl},1e3)})},o.onerror=function(){t(function(){n.$ngfDataUrl="";f.reject()})},o.readAsDataURL(n);else t(function(){n[u?"$ngfDataUrl":"$ngfBlobUrl"]="";f.reject()})}),e=u?n.$$ngfDataUrlPromise=f.promise:n.$$ngfBlobUrlPromise=f.promise,e["finally"](function(){delete n[u?"$$ngfDataUrlPromise":"$$ngfBlobUrlPromise"]}),e):r.emptyPromise(n,n)},r}]);ngFileUpload.directive("ngfSrc",["Upload","$timeout",function(t,i){return{restrict:"AE",link:function(r,u,f){n(t,i,r,u,f,"ngfSrc",t.attrGetter("ngfResize",f,r),!1)}}}]);ngFileUpload.directive("ngfBackground",["Upload","$timeout",function(t,i){return{restrict:"AE",link:function(r,u,f){n(t,i,r,u,f,"ngfBackground",t.attrGetter("ngfResize",f,r),!0)}}}]);ngFileUpload.directive("ngfThumbnail",["Upload","$timeout",function(t,i){return{restrict:"AE",link:function(r,u,f){var e=t.attrGetter("ngfSize",f,r);n(t,i,r,u,f,"ngfThumbnail",e,t.attrGetter("ngfAsBackground",f,r))}}}]);ngFileUpload.config(["$compileProvider",function(n){n.imgSrcSanitizationWhitelist&&n.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/);n.aHrefSanitizationWhitelist&&n.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/)}]);ngFileUpload.filter("ngfDataUrl",["UploadDataUrl","$sce",function(n,t){return function(i,r,u){if(angular.isString(i))return t.trustAsResourceUrl(i);var f=i&&((r?i.$ngfDataUrl:i.$ngfBlobUrl)||i.$ngfDataUrl);return i&&!f?(!i.$ngfDataUrlFilterInProgress&&angular.isObject(i)&&(i.$ngfDataUrlFilterInProgress=!0,n.dataUrl(i,r)),""):(i&&delete i.$ngfDataUrlFilterInProgress,(i&&f?u?t.trustAsResourceUrl(f):f:i)||"")}}])}();ngFileUpload.service("UploadValidate",["UploadDataUrl","$q","$timeout",function(n,t,i){function u(n){var t="",f=[],i,r,e;if(n.length>2&&"/"===n[0]&&"/"===n[n.length-1])t=n.substring(1,n.length-1);else if(i=n.split(","),i.length>1)for(r=0;r<i.length;r++)e=u(i[r]),e.regexp?(t+="("+e.regexp+")",r<i.length-1&&(t+="|")):f=f.concat(e.excludes);else 0===n.indexOf("!")?f.push("^((?!"+u(n.substring(1)).regexp+").)*$"):(0===n.indexOf(".")&&(n="*"+n),t="^"+n.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$",t=t.replace(/\\\*/g,".*").replace(/\\\?/g,"."));return{regexp:t,excludes:f}}function f(n,t){null==t||n.$dirty||(n.$setDirty?n.$setDirty():n.$dirty=!0)}var r=n;return r.validatePattern=function(n,t){var i,r,f,e,o;if(!t)return!0;for(i=u(t),r=!0,i.regexp&&i.regexp.length&&(f=new RegExp(i.regexp,"i"),r=null!=n.type&&f.test(n.type)||null!=n.name&&f.test(n.name)),e=i.excludes.length;e--;)o=new RegExp(i.excludes[e],"i"),r=r&&(null==n.type||o.test(n.type))&&(null==n.name||o.test(n.name));return r},r.ratioToFloat=function(n){var t=n.toString(),i=t.search(/[x:]/i);return i>-1?parseFloat(t.substring(0,i))/parseFloat(t.substring(i+1)):parseFloat(t)},r.registerModelChangeValidator=function(n,t,i){n&&n.$formatters.push(function(u){if(n.$dirty){var f=u;u&&!angular.isArray(u)&&(f=[u]);r.validate(f,0,n,t,i).then(function(){r.applyModelValidation(n,f)})}return u})},r.applyModelValidation=function(n,t){f(n,t);angular.forEach(n.$ngfValidations,function(t){n.$setValidity(t.name,t.valid)})},r.getValidationAttr=function(n,t,i,u,f){var s="ngf"+i[0].toUpperCase()+i.substr(1),e=r.attrGetter(s,n,t,{$file:f}),o;return null==e&&(e=r.attrGetter("ngfValidate",n,t,{$file:f}))&&(o=(u||i).split("."),e=e[o[0]],o.length>1&&(e=e&&e[o[1]])),e},r.validate=function(n,i,u,f,e){function c(t,i,o){var c,a,s,v;if(n){for(c=n.length,a=null;c--;)s=n[c],s&&(v=r.getValidationAttr(f,e,t,i,s),null!=v&&(o(s,v,c)||(-1===p.indexOf(t)?(s.$error=t,(s.$errorMessages=s.$errorMessages||{})[t]=!0,s.$errorParam=v,-1===h.indexOf(s)&&h.push(s),l||n.splice(c,1),a=!1):n.splice(c,1))));null!==a&&u.$ngfValidations.push({name:t,valid:a})}}function s(i,o,s,c,v){function y(t,r,u){function f(f){var e,o;f()?-1===p.indexOf(i)?((r.$error=i,(r.$errorMessages=r.$errorMessages||{})[i]=!0,r.$errorParam=u,-1===h.indexOf(r)&&h.push(r),l)||(e=n.indexOf(r),e>-1&&n.splice(e,1)),t.resolve(!1)):(o=n.indexOf(r),o>-1&&n.splice(o,1),t.resolve(!0)):t.resolve(!0)}null!=u?c(r,u).then(function(n){f(function(){return!v(n,u)})},function(){f(function(){return a("ngfValidateForce",{$file:r})})}):t.resolve(!0)}var b=[r.emptyPromise(!0)],w;return n&&(n=void 0===n.length?[n]:n,angular.forEach(n,function(n){var u=t.defer();return b.push(u.promise),!s||null!=n.type&&0===n.type.search(s)?void("dimensions"===i&&null!=r.attrGetter("ngfDimensions",f)?r.imageDimensions(n).then(function(t){y(u,n,a("ngfDimensions",{$file:n,$width:t.width,$height:t.height}))},function(){u.resolve(!1)}):"duration"===i&&null!=r.attrGetter("ngfDuration",f)?r.mediaDuration(n).then(function(t){y(u,n,a("ngfDuration",{$file:n,$duration:t}))},function(){u.resolve(!1)}):y(u,n,r.getValidationAttr(f,e,i,o,n))):void u.resolve(!0)})),w=t.defer(),t.all(b).then(function(n){for(var t=!0,r=0;r<n.length;r++)if(!n[r]){t=!1;break}u.$ngfValidations.push({name:i,valid:t});w.resolve(t)}),w.promise}var h,v,y,o;u=u||{};u.$ngfValidations=u.$ngfValidations||[];angular.forEach(u.$ngfValidations,function(n){n.valid=!0});var a=function(n,t){return r.attrGetter(n,f,e,t)},p=(r.attrGetter("ngfIgnoreInvalid",f,e)||"").split(" "),l=r.attrGetter("ngfRunAllValidations",f,e);return null==n||0===n.length?r.emptyPromise({validFiles:n,invalidFiles:[]}):(n=void 0===n.length?[n]:n.slice(0),h=[],c("pattern",null,r.validatePattern),c("minSize","size.min",function(n,t){return n.size+.1>=r.translateScalars(t)}),c("maxSize","size.max",function(n,t){return n.size-.1<=r.translateScalars(t)}),v=0,c("maxTotalSize",null,function(t,i){return v+=t.size,v>r.translateScalars(i)?(n.splice(0,n.length),!1):!0}),c("validateFn",null,function(n,t){return t===!0||null===t||""===t}),!n.length)?r.emptyPromise({validFiles:[],invalidFiles:h}):(y=t.defer(),o=[],o.push(s("maxHeight","height.max",/image/,this.imageDimensions,function(n,t){return n.height<=t})),o.push(s("minHeight","height.min",/image/,this.imageDimensions,function(n,t){return n.height>=t})),o.push(s("maxWidth","width.max",/image/,this.imageDimensions,function(n,t){return n.width<=t})),o.push(s("minWidth","width.min",/image/,this.imageDimensions,function(n,t){return n.width>=t})),o.push(s("dimensions",null,/image/,function(n,t){return r.emptyPromise(t)},function(n){return n})),o.push(s("ratio",null,/image/,this.imageDimensions,function(n,t){for(var u=t.toString().split(","),f=!1,i=0;i<u.length;i++)Math.abs(n.width/n.height-r.ratioToFloat(u[i]))<.01&&(f=!0);return f})),o.push(s("maxRatio","ratio.max",/image/,this.imageDimensions,function(n,t){return n.width/n.height-r.ratioToFloat(t)<.0001})),o.push(s("minRatio","ratio.min",/image/,this.imageDimensions,function(n,t){return n.width/n.height-r.ratioToFloat(t)>-.0001})),o.push(s("maxDuration","duration.max",/audio|video/,this.mediaDuration,function(n,t){return n<=r.translateScalars(t)})),o.push(s("minDuration","duration.min",/audio|video/,this.mediaDuration,function(n,t){return n>=r.translateScalars(t)})),o.push(s("duration",null,/audio|video/,function(n,t){return r.emptyPromise(t)},function(n){return n})),o.push(s("validateAsyncFn",null,null,function(n,t){return t},function(n){return n===!0||null===n||""===n})),t.all(o).then(function(){var t,r;if(l)for(t=0;t<n.length;t++)r=n[t],r.$error&&n.splice(t--,1);l=!1;c("maxFiles",null,function(n,t,r){return t>i+r});y.resolve({validFiles:n,invalidFiles:h})}),y.promise)},r.imageDimensions=function(n){var f,u;return n.$ngfWidth&&n.$ngfHeight?(f=t.defer(),i(function(){f.resolve({width:n.$ngfWidth,height:n.$ngfHeight})}),f.promise):n.$ngfDimensionPromise?n.$ngfDimensionPromise:(u=t.defer(),i(function(){return 0!==n.type.indexOf("image")?void u.reject("not image"):void r.dataUrl(n).then(function(t){function f(){var t=r[0].naturalWidth||r[0].clientWidth,i=r[0].naturalHeight||r[0].clientHeight;r.remove();n.$ngfWidth=t;n.$ngfHeight=i;u.resolve({width:t,height:i})}function e(){r.remove();u.reject("load error")}function o(){i(function(){r[0].parentNode&&(r[0].clientWidth?f():s++>10?e():o())},1e3)}var r=angular.element("<img>").attr("src",t).css("visibility","hidden").css("position","fixed").css("max-width","none !important").css("max-height","none !important"),s;r.on("load",f);r.on("error",e);s=0;o();angular.element(document.getElementsByTagName("body")[0]).append(r)},function(){u.reject("load error")})}),n.$ngfDimensionPromise=u.promise,n.$ngfDimensionPromise["finally"](function(){delete n.$ngfDimensionPromise}),n.$ngfDimensionPromise)},r.mediaDuration=function(n){var f,u;return n.$ngfDuration?(f=t.defer(),i(function(){f.resolve(n.$ngfDuration)}),f.promise):n.$ngfDurationPromise?n.$ngfDurationPromise:(u=t.defer(),i(function(){return 0!==n.type.indexOf("audio")&&0!==n.type.indexOf("video")?void u.reject("not media"):void r.dataUrl(n).then(function(t){function f(){var t=r[0].duration;n.$ngfDuration=t;r.remove();u.resolve(t)}function e(){r.remove();u.reject("load error")}function o(){i(function(){r[0].parentNode&&(r[0].duration?f():s>10?e():o())},1e3)}var r=angular.element(0===n.type.indexOf("audio")?"<audio>":"<video>").attr("src",t).css("visibility","none").css("position","fixed"),s;r.on("loadedmetadata",f);r.on("error",e);s=0;o();angular.element(document.body).append(r)},function(){u.reject("load error")})}),n.$ngfDurationPromise=u.promise,n.$ngfDurationPromise["finally"](function(){delete n.$ngfDurationPromise}),n.$ngfDurationPromise)},r}]);ngFileUpload.service("UploadResize",["UploadValidate","$q",function(n,t){var i=n,r=function(n,t,i,r,u){var f=u?Math.max(i/n,r/t):Math.min(i/n,r/t);return{width:n*f,height:t*f,marginX:n*f-i,marginY:t*f-r}},u=function(n,u,f,e,o,s,h,c){var a=t.defer(),v=document.createElement("canvas"),l=document.createElement("img");return l.setAttribute("style","visibility:hidden;position:fixed;z-index:-100000"),document.body.appendChild(l),l.onload=function(){var t=l.width,y=l.height,p,w,n,b;if(l.parentNode.removeChild(l),null!=c&&c(t,y)===!1)return void a.reject("resizeIf");try{s&&(p=i.ratioToFloat(s),w=t/y,p>w?(u=t,f=u/p):(f=y,u=f*p));u||(u=t);f||(f=y);n=r(t,y,u,f,h);v.width=Math.min(n.width,u);v.height=Math.min(n.height,f);b=v.getContext("2d");b.drawImage(l,Math.min(0,-n.marginX/2),Math.min(0,-n.marginY/2),n.width,n.height);a.resolve(v.toDataURL(o||"image/WebP",e||.934))}catch(k){a.reject(k)}},l.onerror=function(){l.parentNode.removeChild(l);a.reject()},l.src=n,a.promise};return i.dataUrltoBlob=function(n,t,i){for(var u,f=n.split(","),s=f[0].match(/:(.*?);/)[1],e=atob(f[1]),r=e.length,o=new Uint8Array(r);r--;)o[r]=e.charCodeAt(r);return u=new window.Blob([o],{type:s}),u.name=t,u.$ngfOrigSize=i,u},i.isResizeSupported=function(){var n=document.createElement("canvas");return window.atob&&n.getContext&&n.getContext("2d")&&window.Blob},i.isResizeSupported()&&Object.defineProperty(window.Blob.prototype,"name",{get:function(){return this.$ngfName},set:function(n){this.$ngfName=n},configurable:!0}),i.resize=function(n,r){if(0!==n.type.indexOf("image"))return i.emptyPromise(n);var f=t.defer();return i.dataUrl(n,!0).then(function(t){u(t,r.width,r.height,r.quality,r.type||n.type,r.ratio,r.centerCrop,r.resizeIf).then(function(u){if("image/jpeg"===n.type&&r.restoreExif!==!1)try{u=i.restoreExif(t,u)}catch(e){setTimeout(function(){throw e;},1)}try{var o=i.dataUrltoBlob(u,n.name,n.size);f.resolve(o)}catch(e){f.reject(e)}},function(t){"resizeIf"===t&&f.resolve(n);f.reject(t)})},function(n){f.reject(n)}),f.promise},i}]),function(){function t(t,i,r,u,f,e,o,s,h,c){function v(){return i.attr("disabled")||l("ngfDropDisabled",t)}function w(n,i,r){if(n){var u;try{u=n&&n.getData&&n.getData("text/html")}catch(f){}tt(n.items,n.files,l("ngfAllowDir",t)!==!1,l("multiple")||l("ngfMultiple",t)).then(function(n){n.length?b(n,i):g(r,u).then(function(n){b(n,i)})})}}function b(n,i){s.updateModel(u,r,t,l("ngfChange")||l("ngfDrop"),n,i)}function g(n,i){var u,e,o,f;return!s.shouldUpdateOn(n,r,t)||"string"!=typeof i?s.rejectPromise([]):(u=[],i.replace(/<(img src|img [^>]* src) *=\"([^\"]*)\"/gi,function(n,t,i){u.push(i)}),e=[],o=[],u.length)?(angular.forEach(u,function(n){e.push(s.urlToBlob(n).then(function(n){o.push(n)}))}),f=c.defer(),c.all(e).then(function(){f.resolve(o)},function(n){f.reject(n)}),f.promise):s.emptyPromise()}function nt(n,t,i,r){var u=l("ngfDragOverClass",n,{$event:i}),f="dragover",e,h,o;if(angular.isString(u))f=u;else if(u&&(u.delay&&(d=u.delay),u.accept||u.reject))if(e=i.dataTransfer.items,null!=e&&e.length)for(h=u.pattern||l("ngfPattern",n,{$event:i}),o=e.length;o--;){if(!s.validatePattern(e[o],h)){f=u.reject;break}f=u.accept}else f=u.accept;r(f)}function tt(n,i,u,f){function nt(n,t){var i=c.defer(),u,r;if(null!=n)if(n.isDirectory){u=[s.emptyPromise()];g&&(r={type:"directory"},r.name=r.path=(t||"")+n.name,e.push(r));var h=n.createReader(),f=[],o=function(){h.readEntries(function(r){try{r.length?(f=f.concat(Array.prototype.slice.call(r||[],0)),o()):(angular.forEach(f.slice(0),function(i){e.length<=y&&a>=v&&u.push(nt(i,(t?t:"")+n.name+"/"))}),c.all(u).then(function(){i.resolve()},function(n){i.reject(n)}))}catch(s){i.reject(s)}},function(n){i.reject(n)})};o()}else n.file(function(n){try{n.path=(t?t:"")+n.name;g&&(n=s.rename(n,n.path));e.push(n);v+=n.size;i.resolve()}catch(r){i.reject(r)}},function(n){i.reject(n)});return i.promise}var y=s.getValidationAttr(r,t,"maxFiles"),a,h,b,k,d,p,w;null==y&&(y=Number.MAX_VALUE);a=s.getValidationAttr(r,t,"maxTotalSize");null==a&&(a=Number.MAX_VALUE);var g=l("ngfIncludeDir",t),e=[],v=0,tt=[s.emptyPromise()];if(n&&n.length>0&&"file:"!==o.location.protocol)for(h=0;h<n.length;h++){if(n[h].webkitGetAsEntry&&n[h].webkitGetAsEntry()&&n[h].webkitGetAsEntry().isDirectory){if(b=n[h].webkitGetAsEntry(),b.isDirectory&&!u)continue;null!=b&&tt.push(nt(b))}else k=n[h].getAsFile(),null!=k&&(e.push(k),v+=k.size);if(e.length>y||v>a||!f&&e.length>0)break}else if(null!=i)for(d=0;d<i.length;d++)if(p=i.item(d),(p.type||p.size>0)&&(e.push(p),v+=p.size),e.length>y||v>a||!f&&e.length>0)break;return w=c.defer(),c.all(tt).then(function(){if(f||g||!e.length)w.resolve(e);else{for(var n=0;e[n]&&"directory"===e[n].type;)n++;w.resolve([e[n]])}},function(n){w.reject(n)}),w.promise}var p=n(),l=function(n,t,i){return s.attrGetter(n,r,t,i)};if(l("dropAvailable")&&e(function(){t[l("dropAvailable")]?t[l("dropAvailable")].value=p:t[l("dropAvailable")]=p}),!p)return void(l("ngfHideOnDropNotAvailable",t)===!0&&i.css("display","none"));null==l("ngfSelect")&&s.registerModelChangeValidator(u,r,t);var a,k=null,y=f(l("ngfStopPropagation")),d=1;i[0].addEventListener("dragover",function(n){if(!v()&&s.shouldUpdateOn("drop",r,t)){if(n.preventDefault(),y(t)&&n.stopPropagation(),navigator.userAgent.indexOf("Chrome")>-1){var u=n.dataTransfer.effectAllowed;n.dataTransfer.dropEffect="move"===u||"linkMove"===u?"move":"copy"}e.cancel(k);a||(a="C",nt(t,r,n,function(r){a=r;i.addClass(a);l("ngfDrag",t,{$isDragging:!0,$class:a,$event:n})}))}},!1);i[0].addEventListener("dragenter",function(n){!v()&&s.shouldUpdateOn("drop",r,t)&&(n.preventDefault(),y(t)&&n.stopPropagation())},!1);i[0].addEventListener("dragleave",function(n){!v()&&s.shouldUpdateOn("drop",r,t)&&(n.preventDefault(),y(t)&&n.stopPropagation(),k=e(function(){a&&i.removeClass(a);a=null;l("ngfDrag",t,{$isDragging:!1,$event:n})},d||100))},!1);i[0].addEventListener("drop",function(n){!v()&&s.shouldUpdateOn("drop",r,t)&&(n.preventDefault(),y(t)&&n.stopPropagation(),a&&i.removeClass(a),a=null,w(n.dataTransfer,n,"dropUrl"))},!1);i[0].addEventListener("paste",function(n){navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&l("ngfEnableFirefoxPaste",t)&&n.preventDefault();!v()&&s.shouldUpdateOn("paste",r,t)&&w(n.clipboardData||n.originalEvent.clipboardData,n,"pasteUrl")},!1);navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&l("ngfEnableFirefoxPaste",t)&&(i.attr("contenteditable",!0),i.on("keypress",function(n){n.metaKey||n.ctrlKey||n.preventDefault()}))}function n(){var n=document.createElement("div");return"draggable"in n&&"ondrop"in n&&!/Edge\/12./i.test(navigator.userAgent)}ngFileUpload.directive("ngfDrop",["$parse","$timeout","$window","Upload","$http","$q",function(n,i,r,u,f,e){return{restrict:"AEC",require:"?ngModel",link:function(o,s,h,c){t(o,s,h,c,n,i,r,u,f,e)}}}]);ngFileUpload.directive("ngfNoFileDrop",function(){return function(t,i){n()&&i.css("display","none")}});ngFileUpload.directive("ngfDropAvailable",["$parse","$timeout","Upload",function(t,i,r){return function(u,f,e){if(n()){var o=t(r.attrGetter("ngfDropAvailable",e));i(function(){o(u);o.assign&&o.assign(u,!0)})}}}])}();ngFileUpload.service("UploadExif",["UploadResize","$q",function(n,t){function r(n,t,i,r){switch(t){case 2:return n.transform(-1,0,0,1,i,0);case 3:return n.transform(-1,0,0,-1,i,r);case 4:return n.transform(1,0,0,-1,0,r);case 5:return n.transform(0,1,1,0,0,0);case 6:return n.transform(0,1,-1,0,r,0);case 7:return n.transform(0,-1,-1,0,r,i);case 8:return n.transform(0,-1,1,0,0,i)}}function u(n){for(var i="",r=new Uint8Array(n),u=r.byteLength,t=0;u>t;t++)i+=String.fromCharCode(r[t]);return window.btoa(i)}var i=n;return i.isExifSupported=function(){return window.FileReader&&(new FileReader).readAsArrayBuffer&&i.isResizeSupported()},i.readOrientation=function(n){var i=t.defer(),r=new FileReader,u=n.slice?n.slice(0,65536):n;return r.readAsArrayBuffer(u),r.onerror=function(n){return i.reject(n)},r.onload=function(n){var u={orientation:1},r=new DataView(this.result),h,t,s,f,c,e,o;if(65496!==r.getUint16(0,!1))return i.resolve(u);for(h=r.byteLength,t=2;h>t;)if(s=r.getUint16(t,!1),t+=2,65505===s){if(1165519206!==r.getUint32(t+=2,!1))return i.resolve(u);for(f=18761===r.getUint16(t+=6,!1),t+=r.getUint32(t+4,f),c=r.getUint16(t,f),t+=2,e=0;c>e;e++)if(274===r.getUint16(t+12*e,f))return o=r.getUint16(t+12*e+8,f),o>=2&&8>=o&&(r.setUint16(t+12*e+8,1,f),u.fixedArrayBuffer=n.target.result),u.orientation=o,i.resolve(u)}else{if(65280!=(65280&s))break;t+=r.getUint16(t,!1)}return i.resolve(u)},i.promise},i.applyExifRotation=function(n){if(0!==n.type.indexOf("image/jpeg"))return i.emptyPromise(n);var f=t.defer();return i.readOrientation(n).then(function(t){return t.orientation<2||t.orientation>8?f.resolve(n):void i.dataUrl(n,!0).then(function(e){var s=document.createElement("canvas"),o=document.createElement("img");o.onload=function(){var h,e,c;try{s.width=t.orientation>4?o.height:o.width;s.height=t.orientation>4?o.width:o.height;h=s.getContext("2d");r(h,t.orientation,o.width,o.height);h.drawImage(o,0,0);e=s.toDataURL(n.type||"image/WebP",.934);e=i.restoreExif(u(t.fixedArrayBuffer),e);c=i.dataUrltoBlob(e,n.name);f.resolve(c)}catch(l){return f.reject(l)}};o.onerror=function(){f.reject()};o.src=e},function(n){f.reject(n)})},function(n){f.reject(n)}),f.promise},i.restoreExif=function(n,t){var i={};return i.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i.encode64=function(n){var u,t,o,s,f,h="",i="",r="",e=0;do u=n[e++],t=n[e++],i=n[e++],o=u>>2,s=(3&u)<<4|t>>4,f=(15&t)<<2|i>>6,r=63&i,isNaN(t)?f=r=64:isNaN(i)&&(r=64),h=h+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(f)+this.KEY_STR.charAt(r),u=t=i="",o=s=f=r="";while(e<n.length);return h},i.restore=function(n,t){n.match("data:image/jpeg;base64,")&&(n=n.replace("data:image/jpeg;base64,",""));var i=this.decode64(n),r=this.slice2Segments(i),u=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(u)},i.exifManipulation=function(n,t){var i=this.getExifArray(t),r=this.insertExif(n,i);return new Uint8Array(r)},i.getExifArray=function(n){for(var t,i=0;i<n.length;i++)if(t=n[i],255===t[0]&225===t[1])return t;return[]},i.insertExif=function(n,t){var f=n.replace("data:image/jpeg;base64,",""),r=this.decode64(f),u=r.indexOf(255,3),e=r.slice(0,u),o=r.slice(u),i=e;return i=i.concat(t),i=i.concat(o)},i.slice2Segments=function(n){for(var t=0,i=[];;){if(255===n[t]&218===n[t+1])break;if(255===n[t]&216===n[t+1])t+=2;else{var u=256*n[t+2]+n[t+3],r=t+u+2,f=n.slice(t,r);i.push(f);t=r}if(t>n.length)break}return i},i.decode64=function(n){var e,o,s,r,t,h="",u="",i=0,f=[];/[^A-Za-z0-9\+\/\=]/g.exec(n)&&console.log("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, NaNExpect errors in decoding.");n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");do s=this.KEY_STR.indexOf(n.charAt(i++)),r=this.KEY_STR.indexOf(n.charAt(i++)),t=this.KEY_STR.indexOf(n.charAt(i++)),u=this.KEY_STR.indexOf(n.charAt(i++)),e=s<<2|r>>4,o=(15&r)<<4|t>>2,h=(3&t)<<6|u,f.push(e),64!==t&&f.push(o),64!==u&&f.push(h),e=o=h="",s=r=t=u="";while(i<n.length);return f},i.restore(n,t)},i}]);!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n("object"==typeof exports?require("jquery"):jQuery)}(function(n){var t=function(){var t;return n&&n.fn&&n.fn.select2&&n.fn.select2.amd&&(t=n.fn.select2.amd),function(){if(!t||!t.requirejs){t?i=t:t={};var n,i,r;!function(t){function e(n,t){return nt.call(n,t)}function c(n,t){var e,s,o,r,h,y,c,w,i,l,p,u=t&&t.split("/"),a=f.map,v=a&&a["*"]||{};if(n&&"."===n.charAt(0))if(t){for(n=n.split("/"),h=n.length-1,f.nodeIdCompat&&b.test(n[h])&&(n[h]=n[h].replace(b,"")),n=u.slice(0,u.length-1).concat(n),i=0;i<n.length;i+=1)if(p=n[i],"."===p)n.splice(i,1),i-=1;else if(".."===p){if(1===i&&(".."===n[2]||".."===n[0]))break;i>0&&(n.splice(i-1,2),i-=2)}n=n.join("/")}else 0===n.indexOf("./")&&(n=n.substring(2));if((u||v)&&a){for(e=n.split("/"),i=e.length;i>0;i-=1){if(s=e.slice(0,i).join("/"),u)for(l=u.length;l>0;l-=1)if(o=a[u.slice(0,l).join("/")],o&&(o=o[s])){r=o;y=i;break}if(r)break;!c&&v&&v[s]&&(c=v[s],w=i)}!r&&c&&(r=c,y=w);r&&(e.splice(0,y,r),n=e.join("/"))}return n}function p(n,i){return function(){var r=tt.call(arguments,0);return"string"!=typeof r[0]&&1===r.length&&r.push(null),o.apply(t,r.concat([n,i]))}}function k(n){return function(t){return c(t,n)}}function d(n){return function(t){u[n]=t}}function l(n){if(e(h,n)){var i=h[n];delete h[n];y[n]=!0;a.apply(t,i)}if(!e(u,n)&&!e(y,n))throw new Error("No "+n);return u[n]}function w(n){var i,t=n?n.indexOf("!"):-1;return t>-1&&(i=n.substring(0,t),n=n.substring(t+1,n.length)),[i,n]}function g(n){return function(){return f&&f.config&&f.config[n]||{}}}var a,o,v,s,u={},h={},f={},y={},nt=Object.prototype.hasOwnProperty,tt=[].slice,b=/\.js$/;v=function(n,t){var r,u=w(n),i=u[0];return n=u[1],i&&(i=c(i,t),r=l(i)),i?n=r&&r.normalize?r.normalize(n,k(t)):c(n,t):(n=c(n,t),u=w(n),i=u[0],n=u[1],i&&(r=l(i))),{f:i?i+"!"+n:n,n:n,pr:i,p:r}};s={require:function(n){return p(n)},exports:function(n){var t=u[n];return"undefined"!=typeof t?t:u[n]={}},module:function(n){return{id:n,uri:"",exports:u[n],config:g(n)}}};a=function(n,i,r,f){var w,o,k,b,c,g,a=[],nt=typeof r;if(f=f||n,"undefined"===nt||"function"===nt){for(i=!i.length&&r.length?["require","exports","module"]:i,c=0;c<i.length;c+=1)if(b=v(i[c],f),o=b.f,"require"===o)a[c]=s.require(n);else if("exports"===o)a[c]=s.exports(n),g=!0;else if("module"===o)w=a[c]=s.module(n);else if(e(u,o)||e(h,o)||e(y,o))a[c]=l(o);else{if(!b.p)throw new Error(n+" missing "+o);b.p.load(b.n,p(f,!0),d(o),{});a[c]=u[o]}k=r?r.apply(u[n],a):void 0;n&&(w&&w.exports!==t&&w.exports!==u[n]?u[n]=w.exports:k===t&&g||(u[n]=k))}else n&&(u[n]=r)};n=i=o=function(n,i,r,u,e){if("string"==typeof n)return s[n]?s[n](i):l(v(n,i).f);if(!n.splice){if(f=n,f.deps&&o(f.deps,f.callback),!i)return;i.splice?(n=i,i=r,r=null):n=t}return i=i||function(){},"function"==typeof r&&(r=u,u=e),u?a(t,n,i,r):setTimeout(function(){a(t,n,i,r)},4),o};o.config=function(n){return o(n)};n._defined=u;r=function(n,t,i){if("string"!=typeof n)throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]);e(u,n)||e(h,n)||(h[n]=[n,t,i])};r.amd={jQuery:!0}}();t.requirejs=n;t.require=i;t.define=r}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=n||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(n){function r(n){var i=n.prototype,r=[],t,u;for(t in i)u=i[t],"function"==typeof u&&"constructor"!==t&&r.push(t);return r}var t={},i;return t.Extend=function(n,t){function r(){this.constructor=n}var u={}.hasOwnProperty,i;for(i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},t.Decorate=function(n,t){function i(){var r=Array.prototype.unshift,u=t.prototype.constructor.length,i=n.prototype.constructor;u>0&&(r.call(arguments,n.prototype.constructor),i=t.prototype.constructor);i.apply(this,arguments)}function l(){this.constructor=i}var s=r(t),h=r(n),u,e,c,f,o;for(t.displayName=n.displayName,i.prototype=new l,u=0;u<h.length;u++)e=h[u],i.prototype[e]=n.prototype[e];for(c=function(n){var r=function(){},u;return n in i.prototype&&(r=i.prototype[n]),u=t.prototype[n],function(){var n=Array.prototype.unshift;return n.call(arguments,r),u.apply(this,arguments)}},f=0;f<s.length;f++)o=s[f],i.prototype[o]=c(o);return i},i=function(){this.listeners={}},i.prototype.on=function(n,t){this.listeners=this.listeners||{};n in this.listeners?this.listeners[n].push(t):this.listeners[n]=[t]},i.prototype.trigger=function(n){var i=Array.prototype.slice,t=i.call(arguments,1);this.listeners=this.listeners||{};null==t&&(t=[]);0===t.length&&t.push({});t[0]._type=n;n in this.listeners&&this.invoke(this.listeners[n],i.call(arguments,1));"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(n,t){for(var i=0,r=n.length;r>i;i++)n[i].apply(this,t)},t.Observable=i,t.generateChars=function(n){for(var r,t="",i=0;n>i;i++)r=Math.floor(36*Math.random()),t+=r.toString(36);return t},t.bind=function(n,t){return function(){n.apply(t,arguments)}},t._convertData=function(n){var f,r,i,u,t;for(f in n)if(r=f.split("-"),i=n,1!==r.length){for(u=0;u<r.length;u++)t=r[u],t=t.substring(0,1).toLowerCase()+t.substring(1),t in i||(i[t]={}),u==r.length-1&&(i[t]=n[f]),i=i[t];delete n[f]}return n},t.hasScroll=function(t,i){var u=n(i),f=i.style.overflowX,r=i.style.overflowY;return f!==r||"hidden"!==r&&"visible"!==r?"scroll"===f||"scroll"===r?!0:u.innerHeight()<i.scrollHeight||u.innerWidth()<i.scrollWidth:!1},t.escapeMarkup=function(n){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof n?n:String(n).replace(/[&<>"'\/\\]/g,function(n){return t[n]})},t.appendMany=function(t,i){if("1.7"===n.fn.jquery.substr(0,3)){var r=n();n.map(i,function(n){r=r.add(n)});i=r}t.append(i)},t}),t.define("select2/results",["jquery","./utils"],function(n,t){function i(n,t,r){this.$element=n;this.data=r;this.options=t;i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<ul class="select2-results__options" role="tree"><\/ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var u=this.options.get("escapeMarkup"),i,r;this.clear();this.hideLoading();i=n('<li role="treeitem" aria-live="assertive" class="select2-results__option"><\/li>');r=this.options.get("translations").get(t.message);i.append(u(r(t.args)));i[0].className+=" select2-results__message";this.$results.append(i)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(n){var i,t,r,u;if(this.hideLoading(),i=[],null==n.results||0===n.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));for(n.results=this.sort(n.results),t=0;t<n.results.length;t++)r=n.results[t],u=this.option(r),i.push(u);this.$results.append(i)},i.prototype.position=function(n,t){var i=t.find(".select2-results");i.append(n)},i.prototype.sort=function(n){var t=this.options.get("sorter");return t(n)},i.prototype.highlightFirstItem=function(){var n=this.$results.find(".select2-results__option[aria-selected]"),t=n.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):n.first().trigger("mouseenter");this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(i){var r=n.map(i,function(n){return n.id.toString()}),u=t.$results.find(".select2-results__option[aria-selected]");u.each(function(){var i=n(this),t=n.data(this,"data"),u=""+t.id;null!=t.element&&t.element.selected||null==t.element&&n.inArray(u,r)>-1?i.attr("aria-selected","true"):i.attr("aria-selected","false")})})},i.prototype.showLoading=function(n){this.hideLoading();var i=this.options.get("translations").get("searching"),r={disabled:!0,loading:!0,text:i(n)},t=this.option(r);t.className+=" loading-results";this.$results.prepend(t)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(t){var r=document.createElement("li"),i,e,c,o,u,s,f,l,a,h;r.className="select2-results__option";i={role:"treeitem","aria-selected":"false"};t.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true");null==t.id&&delete i["aria-selected"];null!=t._resultId&&(r.id=t._resultId);t.title&&(r.title=t.title);t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]);for(e in i)c=i[e],r.setAttribute(e,c);if(t.children){for(o=n(r),u=document.createElement("strong"),u.className="select2-results__group",n(u),this.template(t,u),s=[],f=0;f<t.children.length;f++)l=t.children[f],a=this.option(l),s.push(a);h=n("<ul><\/ul>",{"class":"select2-results__options select2-results__options--nested"});h.append(s);o.append(u);o.append(h)}else this.template(t,r);return n.data(r,"data",t),r},i.prototype.bind=function(t){var i=this,r=t.id+"-results";this.$results.attr("id",r);t.on("results:all",function(n){i.clear();i.append(n.data);t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("results:append",function(n){i.append(n.data);t.isOpen()&&i.setClasses()});t.on("query",function(n){i.hideMessages();i.showLoading(n)});t.on("select",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("open",function(){i.$results.attr("aria-expanded","true");i.$results.attr("aria-hidden","false");i.setClasses();i.ensureHighlightVisible()});t.on("close",function(){i.$results.attr("aria-expanded","false");i.$results.attr("aria-hidden","true");i.$results.removeAttr("aria-activedescendant")});t.on("results:toggle",function(){var n=i.getHighlightedResults();0!==n.length&&n.trigger("mouseup")});t.on("results:select",function(){var n=i.getHighlightedResults(),t;0!==n.length&&(t=n.data("data"),"true"==n.attr("aria-selected")?i.trigger("close",{}):i.trigger("select",{data:t}))});t.on("results:previous",function(){var r=i.getHighlightedResults(),u=i.$results.find("[aria-selected]"),f=u.index(r),n,t;if(0!==f){n=f-1;0===r.length&&(n=0);t=u.eq(n);t.trigger("mouseenter");var e=i.$results.offset().top,o=t.offset().top,s=i.$results.scrollTop()+(o-e);0===n?i.$results.scrollTop(0):0>o-e&&i.$results.scrollTop(s)}});t.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),o=t.index(e),r=o+1,n;if(!(r>=t.length)){n=t.eq(r);n.trigger("mouseenter");var u=i.$results.offset().top+i.$results.outerHeight(!1),f=n.offset().top+n.outerHeight(!1),s=i.$results.scrollTop()+f-u;0===r?i.$results.scrollTop(0):f>u&&i.$results.scrollTop(s)}});t.on("results:focus",function(n){n.element.addClass("select2-results__option--highlighted")});t.on("results:message",function(n){i.displayMessage(n)});n.fn.mousewheel&&this.$results.on("mousewheel",function(n){var t=i.$results.scrollTop(),r=i.$results.get(0).scrollHeight-t+n.deltaY,u=n.deltaY>0&&t-n.deltaY<=0,f=n.deltaY<0&&r<=i.$results.height();u?(i.$results.scrollTop(0),n.preventDefault(),n.stopPropagation()):f&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),n.preventDefault(),n.stopPropagation())});this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var r=n(this),u=r.data("data");return"true"===r.attr("aria-selected")?void(i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:u}):i.trigger("close",{})):void i.trigger("select",{originalEvent:t,data:u})});this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var t=n(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted");i.trigger("results:focus",{data:t,element:n(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var n=this.getHighlightedResults();if(0!==n.length){var f=this.$results.find("[aria-selected]"),e=f.index(n),t=this.$results.offset().top,i=n.offset().top,r=this.$results.scrollTop()+(i-t),u=i-t;r-=2*n.outerHeight(!1);2>=e?this.$results.scrollTop(0):(u>this.$results.outerHeight()||0>u)&&this.$results.scrollTop(r)}},i.prototype.template=function(t,i){var u=this.options.get("templateResult"),f=this.options.get("escapeMarkup"),r=u(t,i);null==r?i.style.display="none":"string"==typeof r?i.innerHTML=f(r):n(i).append(r)},i}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var t=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"><\/span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},r.prototype.bind=function(n){var t=this,r=(n.id+"-container",n.id+"-results");this.container=n;this.$selection.on("focus",function(n){t.trigger("focus",n)});this.$selection.on("blur",function(n){t._handleBlur(n)});this.$selection.on("keydown",function(n){t.trigger("keypress",n);n.which===i.SPACE&&n.preventDefault()});n.on("results:focus",function(n){t.$selection.attr("aria-activedescendant",n.data._resultId)});n.on("selection:update",function(n){t.update(n.data)});n.on("open",function(){t.$selection.attr("aria-expanded","true");t.$selection.attr("aria-owns",r);t._attachCloseHandler(n)});n.on("close",function(){t.$selection.attr("aria-expanded","false");t.$selection.removeAttr("aria-activedescendant");t.$selection.removeAttr("aria-owns");t.$selection.focus();t._detachCloseHandler(n)});n.on("enable",function(){t.$selection.attr("tabindex",t._tabindex)});n.on("disable",function(){t.$selection.attr("tabindex","-1")})},r.prototype._handleBlur=function(t){var i=this;window.setTimeout(function(){document.activeElement==i.$selection[0]||n.contains(i.$selection[0],document.activeElement)||i.trigger("blur",t)},1)},r.prototype._attachCloseHandler=function(t){n(document.body).on("mousedown.select2."+t.id,function(t){var i=n(t.target),r=i.closest(".select2"),u=n(".select2.select2-container--open");u.each(function(){var i=n(this),t;this!=r[0]&&(t=i.data("element"),t.select2("close"))})})},r.prototype._detachCloseHandler=function(t){n(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(n,t){var i=t.find(".selection");i.append(n)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.");},r}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--single"),n.html('<span class="select2-selection__rendered"><\/span><span class="select2-selection__arrow" role="presentation"><b role="presentation"><\/b><\/span>'),n},r.prototype.bind=function(n){var t=this,i;r.__super__.bind.apply(this,arguments);i=n.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i);this.$selection.attr("aria-labelledby",i);this.$selection.on("mousedown",function(n){1===n.which&&t.trigger("toggle",{originalEvent:n})});this.$selection.on("focus",function(){});this.$selection.on("blur",function(){});n.on("focus",function(){n.isOpen()||t.$selection.focus()});n.on("selection:update",function(n){t.update(n.data)})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n,t){var i=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(i(n,t))},r.prototype.selectionContainer=function(){return n("<span><\/span>")},r.prototype.update=function(n){if(0===n.length)return void this.clear();var t=n[0],i=this.$selection.find(".select2-selection__rendered"),r=this.display(t,i);i.empty().append(r);i.prop("title",t.title||t.text)},r}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--multiple"),n.html('<ul class="select2-selection__rendered"><\/ul>'),n},r.prototype.bind=function(){var t=this;r.__super__.bind.apply(this,arguments);this.$selection.on("click",function(n){t.trigger("toggle",{originalEvent:n})});this.$selection.on("click",".select2-selection__choice__remove",function(i){if(!t.options.get("disabled")){var r=n(this),u=r.parent(),f=u.data("data");t.trigger("unselect",{originalEvent:i,data:f})}})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n,t){var i=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(i(n,t))},r.prototype.selectionContainer=function(){return n('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;<\/span><\/li>')},r.prototype.update=function(n){var f,r,e;if(this.clear(),0!==n.length){for(f=[],r=0;r<n.length;r++){var u=n[r],t=this.selectionContainer(),o=this.display(u,t);t.append(o);t.prop("title",u.title||u.text);t.data("data",u);f.push(t)}e=this.$selection.find(".select2-selection__rendered");i.appendMany(e,f)}},r}),t.define("select2/selection/placeholder",["../utils"],function(){function n(n,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i)}return n.prototype.normalizePlaceholder=function(n,t){return"string"==typeof t&&(t={id:"",text:t}),t},n.prototype.createPlaceholder=function(n,t){var i=this.selectionContainer();return i.html(this.display(t)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},n.prototype.update=function(n,t){var r=1==t.length&&t[0].id!=this.placeholder.id,u=t.length>1,i;if(u||r)return n.call(this,t);this.clear();i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},n}),t.define("select2/selection/allowClear",["jquery","../keys"],function(n,t){function i(){}return i.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option.");this.$selection.on("mousedown",".select2-selection__clear",function(n){r._handleClear(n)});t.on("keypress",function(n){r._handleKeyboardClear(n,t)})},i.prototype._handleClear=function(n,t){var r,u,i,f;if(!this.options.get("disabled")&&(r=this.$selection.find(".select2-selection__clear"),0!==r.length)){for(t.stopPropagation(),u=r.data("data"),i=0;i<u.length;i++)if(f={data:u[i]},this.trigger("unselect",f),f.prevented)return;this.$element.val(this.placeholder.id).trigger("change");this.trigger("toggle",{})}},i.prototype._handleKeyboardClear=function(n,i,r){r.isOpen()||(i.which==t.DELETE||i.which==t.BACKSPACE)&&this._handleClear(i)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var r=n('<span class="select2-selection__clear">&times;<\/span>');r.data("data",i);this.$selection.find(".select2-selection__rendered").prepend(r)}},i}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(n,t,i){function r(n,t,i){n.call(this,t,i)}return r.prototype.render=function(t){var i=n('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /><\/li>'),r;return this.$searchContainer=i,this.$search=i.find("input"),r=t.call(this),this._transferTabIndex(),r},r.prototype.bind=function(n,t,r){var u=this,f,e;n.call(this,t,r);t.on("open",function(){u.$search.trigger("focus")});t.on("close",function(){u.$search.val("");u.$search.removeAttr("aria-activedescendant");u.$search.trigger("focus")});t.on("enable",function(){u.$search.prop("disabled",!1);u._transferTabIndex()});t.on("disable",function(){u.$search.prop("disabled",!0)});t.on("focus",function(){u.$search.trigger("focus")});t.on("results:focus",function(n){u.$search.attr("aria-activedescendant",n.id)});this.$selection.on("focusin",".select2-search--inline",function(n){u.trigger("focus",n)});this.$selection.on("focusout",".select2-search--inline",function(n){u._handleBlur(n)});this.$selection.on("keydown",".select2-search--inline",function(n){var r,t,f;n.stopPropagation();u.trigger("keypress",n);u._keyUpPrevented=n.isDefaultPrevented();r=n.which;r===i.BACKSPACE&&""===u.$search.val()&&(t=u.$searchContainer.prev(".select2-selection__choice"),t.length>0&&(f=t.data("data"),u.searchRemoveChoice(f),n.preventDefault()))});f=document.documentMode;e=f&&11>=f;this.$selection.on("input.searchcheck",".select2-search--inline",function(){return e?void u.$selection.off("input.search input.searchcheck"):void u.$selection.off("keyup.search")});this.$selection.on("keyup.search input.search",".select2-search--inline",function(n){if(e&&"input"===n.type)return void u.$selection.off("input.search input.searchcheck");var t=n.which;t!=i.SHIFT&&t!=i.CTRL&&t!=i.ALT&&t!=i.TAB&&u.handleSearch(n)})},r.prototype._transferTabIndex=function(){this.$search.attr("tabindex",this.$selection.attr("tabindex"));this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(n,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(n,t){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder","");n.call(this,t);this.$selection.find(".select2-selection__rendered").append(this.$searchContainer);this.resizeSearch();i&&this.$search.focus()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(n,t){this.trigger("unselect",{data:t});this.$search.val(t.text);this.handleSearch()},r.prototype.resizeSearch=function(){var n,t;this.$search.css("width","25px");n="";""!==this.$search.attr("placeholder")?n=this.$selection.find(".select2-selection__rendered").innerWidth():(t=this.$search.val().length+1,n=.75*t+"em");this.$search.css("width",n)},r}),t.define("select2/selection/eventRelay",["jquery"],function(n){function t(){}return t.prototype.bind=function(t,i,r){var u=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],e=["opening","closing","selecting","unselecting"];t.call(this,i,r);i.on("*",function(t,i){if(-1!==n.inArray(t,f)){i=i||{};var r=n.Event("select2:"+t,{params:i});u.$element.trigger(r);-1!==n.inArray(t,e)&&(i.prevented=r.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(n,t){function i(n){this.dict=n||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(n){return this.dict[n]},i.prototype.extend=function(t){this.dict=n.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(n){if(!(n in i._cache)){var r=t(n);i._cache[n]=r}return new i(i._cache[n])},i}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),t.define("select2/data/base",["../utils"],function(n){function t(){t.__super__.constructor.call(this)}return n.Extend(t,n.Observable),t.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.");},t.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.");},t.prototype.bind=function(){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var r=t.id+"-result-";return r+=n.generateChars(4),r+(null!=i.id?"-"+i.id.toString():"-"+n.generateChars(4))},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,n),r.prototype.current=function(n){var t=[],r=this;this.$element.find(":selected").each(function(){var n=i(this),u=r.item(n);t.push(u)});n(t)},r.prototype.select=function(n){var t=this,r;if(n.selected=!0,i(n.element).is("option"))return n.element.selected=!0,void this.$element.trigger("change");this.$element.prop("multiple")?this.current(function(r){var f=[],u,e;for(n=[n],n.push.apply(n,r),u=0;u<n.length;u++)e=n[u].id,-1===i.inArray(e,f)&&f.push(e);t.$element.val(f);t.$element.trigger("change")}):(r=n.id,this.$element.val(r),this.$element.trigger("change"))},r.prototype.unselect=function(n){var t=this;if(this.$element.prop("multiple"))return n.selected=!1,i(n.element).is("option")?(n.element.selected=!1,void this.$element.trigger("change")):void this.current(function(r){for(var e,u=[],f=0;f<r.length;f++)e=r[f].id,e!==n.id&&-1===i.inArray(e,u)&&u.push(e);t.$element.val(u);t.$element.trigger("change")})},r.prototype.bind=function(n){var t=this;this.container=n;n.on("select",function(n){t.select(n.data)});n.on("unselect",function(n){t.unselect(n.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){i.removeData(this,"data")})},r.prototype.query=function(n,t){var r=[],u=this,f=this.$element.children();f.each(function(){var t=i(this),e,f;(t.is("option")||t.is("optgroup"))&&(e=u.item(t),f=u.matches(n,e),null!==f&&r.push(f))});t({results:r})},r.prototype.addOptions=function(n){t.appendMany(this.$element,n)},r.prototype.option=function(n){var t,u,r;return n.children?(t=document.createElement("optgroup"),t.label=n.text):(t=document.createElement("option"),void 0!==t.textContent?t.textContent=n.text:t.innerText=n.text),n.id&&(t.value=n.id),n.disabled&&(t.disabled=!0),n.selected&&(t.selected=!0),n.title&&(t.title=n.title),u=i(t),r=this._normalizeItem(n),r.element=t,i.data(t,"data",r),u},r.prototype.item=function(n){var t={},e,o;if(t=i.data(n[0],"data"),null!=t)return t;if(n.is("option"))t={id:n.val(),text:n.text(),disabled:n.prop("disabled"),selected:n.prop("selected"),title:n.prop("title")};else if(n.is("optgroup")){t={text:n.prop("label"),children:[],title:n.prop("title")};for(var u=n.children("option"),f=[],r=0;r<u.length;r++)e=i(u[r]),o=this.item(e),f.push(o);t.children=f}return t=this._normalizeItem(t),t.element=n[0],i.data(n[0],"data",t),t},r.prototype._normalizeItem=function(n){i.isPlainObject(n)||(n={id:n,text:n});n=i.extend({},{text:""},n);return null!=n.id&&(n.id=n.id.toString()),null!=n.text&&(n.text=n.text.toString()),null==n._resultId&&n.id&&null!=this.container&&(n._resultId=this.generateResultId(this.container,n)),i.extend({},{selected:!1,disabled:!1},n)},r.prototype.matches=function(n,t){var i=this.options.get("matcher");return i(n,t)},r}),t.define("select2/data/array",["./select","../utils","jquery"],function(n,t,i){function r(n,t){var i=t.get("data")||[];r.__super__.constructor.call(this,n,t);this.addOptions(this.convertToOptions(i))}return t.Extend(r,n),r.prototype.select=function(n){var t=this.$element.find("option").filter(function(t,i){return i.value==n.id.toString()});0===t.length&&(t=this.option(n),this.addOptions(t));r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(n){function c(n){return function(){return i(this).val()==n.id}}for(var r,f,h,l=this,e=this.$element.find("option"),a=e.map(function(){return l.item(i(this)).id}).get(),o=[],u=0;u<n.length;u++)if(r=this._normalizeItem(n[u]),i.inArray(r.id,a)>=0){var s=e.filter(c(r)),v=this.item(s),y=i.extend(!0,{},r,v),p=this.option(y);s.replaceWith(p)}else f=this.option(r),r.children&&(h=this.convertToOptions(r.children),t.appendMany(f,h)),o.push(f);return o},r}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(n,t,i){function r(n,t){this.ajaxOptions=this._applyDefaults(t.get("ajax"));null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults);r.__super__.constructor.call(this,n,t)}return t.Extend(r,n),r.prototype._applyDefaults=function(n){var t={data:function(n){return i.extend({},n,{q:n.term})},transport:function(n,t,r){var u=i.ajax(n);return u.then(t),u.fail(r),u}};return i.extend({},t,n,!0)},r.prototype.processResults=function(n){return n},r.prototype.query=function(n,t){function f(){var f=r.transport(r,function(r){var f=u.processResults(r,n);u.options.get("debug")&&window.console&&console.error&&(f&&f.results&&i.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response."));t(f)},function(){f.status&&"0"===f.status||u.trigger("results:message",{message:"errorLoading"})});u._request=f}var u=this,r;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);r=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof r.url&&(r.url=r.url.call(this.$element,n));"function"==typeof r.data&&(r.data=r.data.call(this.$element,n));this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(f,this.ajaxOptions.delay)):f()},r}),t.define("select2/data/tags",["jquery"],function(n){function t(t,i,r){var f=r.get("tags"),o=r.get("createTag"),e,u;if(void 0!==o&&(this.createTag=o),e=r.get("insertTag"),void 0!==e&&(this.insertTag=e),t.call(this,i,r),n.isArray(f))for(u=0;u<f.length;u++){var s=f[u],h=this._normalizeItem(s),c=this.option(h);this.$element.append(c)}}return t.prototype.query=function(n,t,i){function u(n,f){for(var s,c,e=n.results,o=0;o<e.length;o++){var h=e[o],l=null!=h.children&&!u({results:h.children},!0),a=h.text===t.term;if(a||l)return f?!1:(n.data=e,void i(n))}if(f)return!0;s=r.createTag(t);null!=s&&(c=r.option(s),c.attr("data-select2-tag",!0),r.addOptions([c]),r.insertTag(e,s));n.results=e;i(n)}var r=this;return this._removeOldTags(),null==t.term||null!=t.page?void n.call(this,t,i):void n.call(this,t,u)},t.prototype.createTag=function(t,i){var r=n.trim(i.term);return""===r?null:{id:r,text:r}},t.prototype.insertTag=function(n,t,i){t.unshift(i)},t.prototype._removeOldTags=function(){var t=(this._lastTag,this.$element.find("option[data-select2-tag]"));t.each(function(){this.selected||n(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(n){function t(n,t,i){var r=i.get("tokenizer");void 0!==r&&(this.tokenizer=r);n.call(this,t,i)}return t.prototype.bind=function(n,t,i){n.call(this,t,i);this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(t,i,r){function e(t){var i=u._normalizeItem(t),f=u.$element.find("option").filter(function(){return n(this).val()===i.id}),r;f.length||(r=u.option(i),r.attr("data-select2-tag",!0),u._removeOldTags(),u.addOptions([r]));o(i)}function o(n){u.trigger("select",{data:n})}var u=this,f;i.term=i.term||"";f=this.tokenizer(i,this.options,e);f.term!==i.term&&(this.$search.length&&(this.$search.val(f.term),this.$search.focus()),i.term=f.term);t.call(this,i,r)},t.prototype.tokenizer=function(t,i,r,u){for(var o,h=r.get("tokenSeparators")||[],e=i.term,f=0,c=this.createTag||function(n){return{id:n.term,text:n.term}};f<e.length;)if(o=e[f],-1!==n.inArray(o,h)){var l=e.substr(0,f),a=n.extend({},i,{term:l}),s=c(a);null!=s?(u(s),e=e.substr(f+1)||"",f=0):f++}else f++;return{term:e}},t}),t.define("select2/data/minimumInputLength",[],function(){function n(n,t,i){this.minimumInputLength=i.get("minimumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void n.call(this,t,i)},n}),t.define("select2/data/maximumInputLength",[],function(){function n(n,t,i){this.maximumInputLength=i.get("maximumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){return t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void n.call(this,t,i)},n}),t.define("select2/data/maximumSelectionLength",[],function(){function n(n,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){var r=this;this.current(function(u){var f=null!=u?u.length:0;return r.maximumSelectionLength>0&&f>=r.maximumSelectionLength?void r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):void n.call(r,t,i)})},n}),t.define("select2/dropdown",["jquery","./utils"],function(n,t){function i(n,t){this.$element=n;this.options=t;i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<span class="select2-dropdown"><span class="select2-results"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.bind=function(){},i.prototype.position=function(){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),t.define("select2/dropdown/search",["jquery","../utils"],function(n){function t(){}return t.prototype.render=function(t){var r=t.call(this),i=n('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /><\/span>');return this.$searchContainer=i,this.$search=i.find("input"),r.prepend(i),r},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);this.$search.on("keydown",function(n){u.trigger("keypress",n);u._keyUpPrevented=n.isDefaultPrevented()});this.$search.on("input",function(){n(this).off("keyup")});this.$search.on("keyup input",function(n){u.handleSearch(n)});i.on("open",function(){u.$search.attr("tabindex",0);u.$search.focus();window.setTimeout(function(){u.$search.focus()},0)});i.on("close",function(){u.$search.attr("tabindex",-1);u.$search.val("")});i.on("focus",function(){i.isOpen()&&u.$search.focus()});i.on("results:all",function(n){if(null==n.query.term||""===n.query.term){var t=u.showSearch(n);t?u.$searchContainer.removeClass("select2-search--hide"):u.$searchContainer.addClass("select2-search--hide")}})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t}),t.define("select2/dropdown/hidePlaceholder",[],function(){function n(n,t,i,r){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i,r)}return n.prototype.append=function(n,t){t.results=this.removePlaceholder(t.results);n.call(this,t)},n.prototype.normalizePlaceholder=function(n,t){return"string"==typeof t&&(t={id:"",text:t}),t},n.prototype.removePlaceholder=function(n,t){for(var u,r=t.slice(0),i=t.length-1;i>=0;i--)u=t[i],this.placeholder.id===u.id&&r.splice(i,1);return r},n}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function t(n,t,i,r){this.lastParams={};n.call(this,t,i,r);this.$loadingMore=this.createLoadingMore();this.loading=!1}return t.prototype.append=function(n,t){this.$loadingMore.remove();this.loading=!1;n.call(this,t);this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);i.on("query",function(n){u.lastParams=n;u.loading=!0});i.on("query:append",function(n){u.lastParams=n;u.loading=!0});this.$results.on("scroll",function(){var r=n.contains(document.documentElement,u.$loadingMore[0]),t,i;!u.loading&&r&&(t=u.$results.offset().top+u.$results.outerHeight(!1),i=u.$loadingMore.offset().top+u.$loadingMore.outerHeight(!1),t+50>=i&&u.loadMore())})},t.prototype.loadMore=function(){this.loading=!0;var t=n.extend({},{page:1},this.lastParams);t.page++;this.trigger("query:append",t)},t.prototype.showLoadingMore=function(n,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=n('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"><\/li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(n,t){function i(t,i,r){this.$dropdownParent=r.get("dropdownParent")||n(document.body);t.call(this,i,r)}return i.prototype.bind=function(n,t,i){var r=this,u=!1;n.call(this,t,i);t.on("open",function(){r._showDropdown();r._attachPositioningHandler(t);u||(u=!0,t.on("results:all",function(){r._positionDropdown();r._resizeDropdown()}),t.on("results:append",function(){r._positionDropdown();r._resizeDropdown()}))});t.on("close",function(){r._hideDropdown();r._detachPositioningHandler(t)});this.$dropdownContainer.on("mousedown",function(n){n.stopPropagation()})},i.prototype.destroy=function(n){n.call(this);this.$dropdownContainer.remove()},i.prototype.position=function(n,t,i){t.attr("class",i.attr("class"));t.removeClass("select2");t.addClass("select2-container--open");t.css({position:"absolute",top:-999999});this.$container=i},i.prototype.render=function(t){var i=n("<span><\/span>"),r=t.call(this);return i.append(r),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i,r){var u=this,f="scroll.select2."+r.id,o="resize.select2."+r.id,s="orientationchange.select2."+r.id,e=this.$container.parents().filter(t.hasScroll);e.each(function(){n(this).data("select2-scroll-position",{x:n(this).scrollLeft(),y:n(this).scrollTop()})});e.on(f,function(){var t=n(this).data("select2-scroll-position");n(this).scrollTop(t.y)});n(window).on(f+" "+o+" "+s,function(){u._positionDropdown();u._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i,r){var u="scroll.select2."+r.id,f="resize.select2."+r.id,e="orientationchange.select2."+r.id,o=this.$container.parents().filter(t.hasScroll);o.off(u);n(window).off(u+" "+f+" "+e)},i.prototype._positionDropdown=function(){var s=n(window),u=this.$dropdown.hasClass("select2-dropdown--above"),v=this.$dropdown.hasClass("select2-dropdown--below"),t=null,i=this.$container.offset(),r,o;i.bottom=i.top+this.$container.outerHeight(!1);r={height:this.$container.outerHeight(!1)};r.top=i.top;r.bottom=i.top+r.height;var h={height:this.$dropdown.outerHeight(!1)},c={top:s.scrollTop(),bottom:s.scrollTop()+s.height()},l=c.top<i.top-h.height,a=c.bottom>i.bottom+h.height,f={left:i.left,top:r.bottom},e=this.$dropdownParent;"static"===e.css("position")&&(e=e.offsetParent());o=e.offset();f.top-=o.top;f.left-=o.left;u||v||(t="below");a||!l||u?!l&&a&&u&&(t="below"):t="above";("above"==t||u&&"below"!==t)&&(f.top=r.top-o.top-h.height);null!=t&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+t),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+t));this.$dropdownContainer.css(f)},i.prototype._resizeDropdown=function(){var n={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(n.minWidth=n.width,n.position="relative",n.width="auto");this.$dropdown.css(n)},i.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown()},i}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function n(t){for(var u,i=0,r=0;r<t.length;r++)u=t[r],u.children?i+=n(u.children):i++;return i}function t(n,t,i,r){this.minimumResultsForSearch=i.get("minimumResultsForSearch");this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0);n.call(this,t,i,r)}return t.prototype.showSearch=function(t,i){return n(i.data.results)<this.minimumResultsForSearch?!1:t.call(this,i)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("close",function(n){r._handleSelectOnClose(n)})},n.prototype._handleSelectOnClose=function(n,t){var r,u,i;t&&null!=t.originalSelect2Event&&(r=t.originalSelect2Event,"select"===r._type||"unselect"===r._type)||(u=this.getHighlightedResults(),u.length<1||(i=u.data("data"),null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})))},n}),t.define("select2/dropdown/closeOnSelect",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("select",function(n){r._selectTriggered(n)});t.on("unselect",function(n){r._selectTriggered(n)})},n.prototype._selectTriggered=function(n,t){var i=t.originalEvent;i&&i.ctrlKey||this.trigger("close",{originalEvent:i,originalSelect2Event:t})},n}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(n){var t=n.input.length-n.maximum,i="Please delete "+t+" character";return 1!=t&&(i+="s"),i},inputTooShort:function(n){var t=n.minimum-n.input.length;return"Please enter "+t+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(n){var t="You can only select "+n.maximum+" item";return 1!=n.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot){function st(){this.reset()}st.prototype.apply=function(l){var vt,yt,pt,wt,bt,kt,dt,ct,lt,st,ot,ht,gt,at;if((l=n.extend(!0,{},this.defaults,l),null==l.dataAdapter)&&((l.dataAdapter=null!=l.ajax?y:null!=l.data?v:a,l.minimumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,b)),l.maximumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,k)),l.maximumSelectionLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,d)),l.tags&&(l.dataAdapter=h.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=h.Decorate(l.dataAdapter,w)),null!=l.query)&&(vt=t(l.amdBase+"compat/query"),l.dataAdapter=h.Decorate(l.dataAdapter,vt)),null!=l.initSelection&&(yt=t(l.amdBase+"compat/initSelection"),l.dataAdapter=h.Decorate(l.dataAdapter,yt))),(null==l.resultsAdapter&&(l.resultsAdapter=i,null!=l.ajax&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,it)),null!=l.placeholder&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,tt)),l.selectOnClose&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,ft))),null==l.dropdownAdapter)&&(l.multiple?l.dropdownAdapter=g:(pt=h.Decorate(g,nt),l.dropdownAdapter=pt),(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,ut)),l.closeOnSelect&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,et)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass)&&(wt=t(l.amdBase+"compat/dropdownCss"),l.dropdownAdapter=h.Decorate(l.dropdownAdapter,wt)),l.dropdownAdapter=h.Decorate(l.dropdownAdapter,rt)),null==l.selectionAdapter&&((l.selectionAdapter=l.multiple?u:r,null!=l.placeholder&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,e)),l.multiple&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,o)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass)&&(bt=t(l.amdBase+"compat/containerCss"),l.selectionAdapter=h.Decorate(l.selectionAdapter,bt)),l.selectionAdapter=h.Decorate(l.selectionAdapter,s)),"string"==typeof l.language&&(l.language.indexOf("-")>0?(kt=l.language.split("-"),dt=kt[0],l.language=[l.language,dt]):l.language=[l.language]),n.isArray(l.language)){for(ct=new c,l.language.push("en"),lt=l.language,st=0;st<lt.length;st++){ot=lt[st];ht={};try{ht=c.loadPath(ot)}catch(ni){try{ot=this.defaults.amdLanguageBase+ot;ht=c.loadPath(ot)}catch(ti){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+ot+'" could not be automatically loaded. A fallback will be used instead.');continue}}ct.extend(ht)}l.translations=ct}else gt=c.loadPath(this.defaults.amdLanguageBase+"en"),at=new c(l.language),at.extend(gt),l.translations=at;return l};st.prototype.reset=function(){function i(n){function t(n){return l[n]||n}return n.replace(/[^\u0000-\u007E]/g,t)}function t(r,u){var f,e,o,s,h,c;if(""===n.trim(r.term))return u;if(u.children&&u.children.length>0){for(f=n.extend(!0,{},u),e=u.children.length-1;e>=0;e--)o=u.children[e],s=t(r,o),null==s&&f.children.splice(e,1);return f.children.length>0?f:t(r,f)}return h=i(u.text).toUpperCase(),c=i(r.term).toUpperCase(),h.indexOf(c)>-1?u:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:h.escapeMarkup,language:ot,matcher:t,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(n){return n},templateResult:function(n){return n.text},templateSelection:function(n){return n.text},theme:"default",width:"resolve"}};st.prototype.set=function(t,i){var f=n.camelCase(t),r={},u;r[f]=i;u=h._convertData(r);n.extend(this.defaults,u)};return new st}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(n,t,i,r){function u(t,u){if(this.options=t,null!=u&&this.fromElement(u),this.options=i.apply(this.options),u&&u.is("input")){var f=n(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,f)}}return u.prototype.fromElement=function(n){var e=["select2"],f,u,i;null==this.options.multiple&&(this.options.multiple=n.prop("multiple"));null==this.options.disabled&&(this.options.disabled=n.prop("disabled"));null==this.options.language&&(n.prop("lang")?this.options.language=n.prop("lang").toLowerCase():n.closest("[lang]").prop("lang")&&(this.options.language=n.closest("[lang]").prop("lang")));null==this.options.dir&&(this.options.dir=n.prop("dir")?n.prop("dir"):n.closest("[dir]").prop("dir")?n.closest("[dir]").prop("dir"):"ltr");n.prop("disabled",this.options.disabled);n.prop("multiple",this.options.multiple);n.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.data("data",n.data("select2Tags")),n.data("tags",!0));n.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),n.attr("ajax--url",n.data("ajaxUrl")),n.data("ajax--url",n.data("ajaxUrl")));f={};f=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&n[0].dataset?t.extend(!0,{},n[0].dataset,n.data()):n.data();u=t.extend(!0,{},f);u=r._convertData(u);for(i in u)t.inArray(i,e)>-1||(t.isPlainObject(this.options[i])?t.extend(this.options[i],u[i]):this.options[i]=u[i]);return this},u.prototype.get=function(n){return this.options[n]},u.prototype.set=function(n,t){this.options[n]=t},u}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(n,t,i,r){var u=function(n,i){var f,e,r,o,s,h,c;null!=n.data("select2")&&n.data("select2").destroy();this.$element=n;this.id=this._generateId(n);i=i||{};this.options=new t(i,n);u.__super__.constructor.call(this);f=n.attr("tabindex")||0;n.data("old-tabindex",f);n.attr("tabindex","-1");e=this.options.get("dataAdapter");this.dataAdapter=new e(n,this.options);r=this.render();this._placeContainer(r);o=this.options.get("selectionAdapter");this.selection=new o(n,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,r);s=this.options.get("dropdownAdapter");this.dropdown=new s(n,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,r);h=this.options.get("resultsAdapter");this.results=new h(n,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);c=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.dataAdapter.current(function(n){c.trigger("selection:update",{data:n})});n.addClass("select2-hidden-accessible");n.attr("aria-hidden","true");this._syncAttributes();n.data("select2",this)};return i.Extend(u,i.Observable),u.prototype._generateId=function(n){var t="";return t=null!=n.attr("id")?n.attr("id"):null!=n.attr("name")?n.attr("name")+"-"+i.generateChars(2):i.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),t="select2-"+t},u.prototype._placeContainer=function(n){n.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&n.css("width",t)},u.prototype._resolveWidth=function(n,t){var r,u,f,s,i;if("resolve"==t)return r=this._resolveWidth(n,"style"),null!=r?r:this._resolveWidth(n,"element");if("element"==t)return u=n.outerWidth(!1),0>=u?"auto":u+"px";if("style"==t){if(f=n.attr("style"),"string"!=typeof f)return null;for(var o=f.split(";"),e=0,h=o.length;h>e;e+=1)if(s=o[e].replace(/\s/g,""),i=s.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==i&&i.length>=1)return i[1];return null}return t},u.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container);this.selection.bind(this,this.$container);this.dropdown.bind(this,this.$container);this.results.bind(this,this.$container)},u.prototype._registerDomEvents=function(){var t=this,r;this.$element.on("change.select2",function(){t.dataAdapter.current(function(n){t.trigger("selection:update",{data:n})})});this.$element.on("focus.select2",function(n){t.trigger("focus",n)});this._syncA=i.bind(this._syncAttributes,this);this._syncS=i.bind(this._syncSubtree,this);this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r(function(i){n.each(i,t._syncA);n.each(i,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},u.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerSelectionEvents=function(){var t=this,i=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()});this.selection.on("focus",function(n){t.focus(n)});this.selection.on("*",function(r,u){-1===n.inArray(r,i)&&t.trigger(r,u)})},u.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")});this.on("close",function(){n.$container.removeClass("select2-container--open")});this.on("enable",function(){n.$container.removeClass("select2-container--disabled")});this.on("disable",function(){n.$container.addClass("select2-container--disabled")});this.on("blur",function(){n.$container.removeClass("select2-container--focus")});this.on("query",function(t){n.isOpen()||n.trigger("open",{});this.dataAdapter.query(t,function(i){n.trigger("results:all",{data:i,query:t})})});this.on("query:append",function(t){this.dataAdapter.query(t,function(i){n.trigger("results:append",{data:i,query:t})})});this.on("keypress",function(t){var i=t.which;n.isOpen()?i===r.ESC||i===r.TAB||i===r.UP&&t.altKey?(n.close(),t.preventDefault()):i===r.ENTER?(n.trigger("results:select",{}),t.preventDefault()):i===r.SPACE&&t.ctrlKey?(n.trigger("results:toggle",{}),t.preventDefault()):i===r.UP?(n.trigger("results:previous",{}),t.preventDefault()):i===r.DOWN&&(n.trigger("results:next",{}),t.preventDefault()):(i===r.ENTER||i===r.SPACE||i===r.DOWN&&t.altKey)&&(n.open(),t.preventDefault())})},u.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled"));this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},u.prototype._syncSubtree=function(n,t){var i=!1,f=this,r,u;if(!n||!n.target||"OPTION"===n.target.nodeName||"OPTGROUP"===n.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(r=0;r<t.addedNodes.length;r++)u=t.addedNodes[r],u.selected&&(i=!0);else t.removedNodes&&t.removedNodes.length>0&&(i=!0);else i=!0;i&&this.dataAdapter.current(function(n){f.trigger("selection:update",{data:n})})}},u.prototype.trigger=function(n,t){var r=u.__super__.trigger,f={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"},e,i;if((void 0===t&&(t={}),n in f)&&(e=f[n],i={prevented:!1,name:n,args:t},r.call(this,e,i),i.prevented))return void(t.prevented=!0);r.call(this,n,t)},u.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},u.prototype.open=function(){this.isOpen()||this.trigger("query",{})},u.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},u.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},u.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},u.prototype.focus=function(){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},u.prototype.enable=function(n){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');(null==n||0===n.length)&&(n=[!0]);var t=!n[0];this.$element.prop("disabled",t)},u.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var n=[];return this.dataAdapter.current(function(t){n=t}),n},u.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var i=t[0];n.isArray(i)&&(i=n.map(i,function(n){return n.toString()}));this.$element.val(i).trigger("change")},u.prototype.destroy=function(){this.$container.remove();this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA);null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1));this._syncA=null;this._syncS=null;this.$element.off(".select2");this.$element.attr("tabindex",this.$element.data("old-tabindex"));this.$element.removeClass("select2-hidden-accessible");this.$element.attr("aria-hidden","false");this.$element.removeData("select2");this.dataAdapter.destroy();this.selection.destroy();this.dropdown.destroy();this.results.destroy();this.dataAdapter=null;this.selection=null;this.dropdown=null;this.results=null},u.prototype.render=function(){var t=n('<span class="select2 select2-container"><span class="selection"><\/span><span class="dropdown-wrapper" aria-hidden="true"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},u}),t.define("select2/compat/utils",["jquery"],function(n){function t(t,i,r){var u,f,e=[];u=n.trim(t.attr("class"));u&&(u=""+u,n(u.split(/\s+/)).each(function(){0===this.indexOf("select2-")&&e.push(this)}));u=n.trim(i.attr("class"));u&&(u=""+u,n(u.split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&(f=r(this),null!=f&&e.push(f))}));t.attr("class",e.join(" "))}return{syncCssClasses:t}}),t.define("select2/compat/containerCss",["jquery","./utils"],function(n,t){function r(){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),u=this.options.get("containerCssClass")||"",f,s,e;return n.isFunction(u)&&(u=u(this.$element)),f=this.options.get("adaptContainerCssClass"),(f=f||r,-1!==u.indexOf(":all:"))&&(u=u.replace(":all:",""),s=f,f=function(n){var t=s(n);return null!=t?t+" "+n:n}),e=this.options.get("containerCss")||{},n.isFunction(e)&&(e=e(this.$element)),t.syncCssClasses(o,this.$element,f),o.css(e),o.addClass(u),o},i}),t.define("select2/compat/dropdownCss",["jquery","./utils"],function(n,t){function r(){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),u=this.options.get("dropdownCssClass")||"",f,s,e;return n.isFunction(u)&&(u=u(this.$element)),f=this.options.get("adaptDropdownCssClass"),(f=f||r,-1!==u.indexOf(":all:"))&&(u=u.replace(":all:",""),s=f,f=function(n){var t=s(n);return null!=t?t+" "+n:n}),e=this.options.get("dropdownCss")||{},n.isFunction(e)&&(e=e(this.$element)),t.syncCssClasses(o,this.$element,f),o.css(e),o.addClass(u),o},i}),t.define("select2/compat/initSelection",["jquery"],function(n){function t(n,t,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2");this.initSelection=i.get("initSelection");this._isInitialized=!1;n.call(this,t,i)}return t.prototype.current=function(t,i){var r=this;return this._isInitialized?void t.call(this,i):void this.initSelection.call(null,this.$element,function(t){r._isInitialized=!0;n.isArray(t)||(t=[t]);i(t)})},t}),t.define("select2/compat/inputData",["jquery"],function(n){function t(n,t,i){this._currentData=[];this._valueSeparator=i.get("valueSeparator")||",";"hidden"===t.prop("type")&&i.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead.");n.call(this,t,i)}return t.prototype.current=function(t,i){function f(t,i){var r=[];return t.selected||-1!==n.inArray(t.id,i)?(t.selected=!0,r.push(t)):t.selected=!1,t.children&&r.push.apply(r,f(t.children,i)),r}for(var e,r=[],u=0;u<this._currentData.length;u++)e=this._currentData[u],r.push.apply(r,f(e,this.$element.val().split(this._valueSeparator)));i(r)},t.prototype.select=function(t,i){if(this.options.get("multiple")){var r=this.$element.val();r+=this._valueSeparator+i.id;this.$element.val(r);this.$element.trigger("change")}else this.current(function(t){n.map(t,function(n){n.selected=!1})}),this.$element.val(i.id),this.$element.trigger("change")},t.prototype.unselect=function(n,t){var i=this;t.selected=!1;this.current(function(n){for(var f,u=[],r=0;r<n.length;r++)f=n[r],t.id!=f.id&&u.push(f.id);i.$element.val(u.join(i._valueSeparator));i.$element.trigger("change")})},t.prototype.query=function(n,t,i){for(var e,f,u=[],r=0;r<this._currentData.length;r++)e=this._currentData[r],f=this.matches(t,e),null!==f&&u.push(f);i({results:u})},t.prototype.addOptions=function(t,i){var r=n.map(i,function(t){return n.data(t[0],"data")});this._currentData.push.apply(this._currentData,r)},t}),t.define("select2/compat/matcher",["jquery"],function(n){function t(t){function i(i,r){var u=n.extend(!0,{},r),f,e,o;if(null==i.term||""===n.trim(i.term))return u;if(r.children){for(f=r.children.length-1;f>=0;f--)e=r.children[f],o=t(i.term,e.text,e),o||u.children.splice(f,1);if(u.children.length>0)return u}return t(i.term,r.text,r)?u:null}return i}return t}),t.define("select2/compat/query",[],function(){function n(n,t,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2.");n.call(this,t,i)}return n.prototype.query=function(n,t,i){t.callback=i;var r=this.options.get("query");r.call(null,t)},n}),t.define("select2/dropdown/attachContainer",[],function(){function n(n,t,i){n.call(this,t,i)}return n.prototype.position=function(n,t,i){var r=i.find(".dropdown-wrapper");r.append(t);t.addClass("select2-dropdown--below");i.addClass("select2-container--below")},n}),t.define("select2/dropdown/stopPropagation",[],function(){function n(){}return n.prototype.bind=function(n,t,i){n.call(this,t,i);this.$dropdown.on("blur change click dblclick focus focusin focusout input keydown keyup keypress mousedown mouseenter mouseleave mousemove mouseover mouseup search touchend touchstart",function(n){n.stopPropagation()})},n}),t.define("select2/selection/stopPropagation",[],function(){function n(){}return n.prototype.bind=function(n,t,i){n.call(this,t,i);this.$selection.on("blur change click dblclick focus focusin focusout input keydown keyup keypress mousedown mouseenter mouseleave mousemove mouseover mouseup search touchend touchstart",function(n){n.stopPropagation()})},n}),function(i){"function"==typeof t.define&&t.define.amd?t.define("jquery-mousewheel",["jquery"],i):"object"==typeof exports?module.exports=i:i(n)}(function(n){function u(r){var u=r||window.event,w=c.call(arguments,1),l=0,s=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(u),r.type="mousewheel","detail"in u&&(e=-1*u.detail),"wheelDelta"in u&&(e=u.wheelDelta),"wheelDeltaY"in u&&(e=u.wheelDeltaY),"wheelDeltaX"in u&&(s=-1*u.wheelDeltaX),"axis"in u&&u.axis===u.HORIZONTAL_AXIS&&(s=-1*e,e=0),l=0===e?s:e,"deltaY"in u&&(e=-1*u.deltaY,l=e),"deltaX"in u&&(s=u.deltaX,0===e&&(l=-1*s)),0!==e||0!==s)return 1===u.deltaMode?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,s*=v):2===u.deltaMode&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,s*=y),(a=Math.max(Math.abs(e),Math.abs(s)),(!t||t>a)&&(t=a,o(u,a)&&(t/=40)),o(u,a)&&(l/=40,s/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),s=Math[s>=1?"floor":"ceil"](s/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect)&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=s,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,s,e),f&&clearTimeout(f),f=setTimeout(h,200),(n.event.dispatch||n.event.handle).apply(this,w)}function h(){t=null}function o(n,t){return i.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}var f,t,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice,e,i;if(n.event.fixHooks)for(e=s.length;e;)n.event.fixHooks[s[--e]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],u,!1);else this.onmousewheel=u;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],u,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(n,t,i,r){if(null==n.fn.select2){var u=["open","close","destroy"];n.fn.select2=function(t){if(t=t||{},"object"==typeof t)return this.each(function(){var r=n.extend(!0,{},t);new i(n(this),r)}),this;if("string"==typeof t){var r,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=n(this).data("select2");null==i&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2.");r=i[t].apply(i,f)}),n.inArray(t,u)>-1?this:r}throw new Error("Invalid arguments for Select2: "+t);}}return null==n.fn.select2.defaults&&(n.fn.select2.defaults=r),i}),{define:t.define,require:t.require}}(),i=t.require("jquery.select2");return n.fn.select2.amd=t,i}),function(n,t,i){function v(t,i){var u,f;if(n.isArray(t)){for(u=t.length-1;u>=0;u--)f=t[u],n.type(f)==="string"&&r.transports[f]||(i.log("Invalid transport: "+f+", removing it from the transports list."),t.splice(u,1));t.length===0&&(i.log("No transports remain within the specified transport array."),t=null)}else if(r.transports[t]||t==="auto"){if(t==="auto"&&r._.ieVersion<=8)return["longPolling"]}else i.log("Invalid transport: "+t.toString()+"."),t=null;return t}function y(n){return n==="http:"?80:n==="https:"?443:void 0}function h(n,t){return t.match(/:\d+$/)?t:t+":"+y(n)}function p(t,i){var u=this,r=[];u.tryBuffer=function(i){return t.state===n.signalR.connectionState.connecting?(r.push(i),!0):!1};u.drain=function(){if(t.state===n.signalR.connectionState.connected)while(r.length>0)i(r.shift())};u.clear=function(){r=[]}}var f={nojQuery:"jQuery was not found. Please ensure jQuery is referenced before the SignalR client JavaScript file.",noTransportOnInit:"No transport could be initialized successfully. Try specifying a different transport or none at all for auto initialization.",errorOnNegotiate:"Error during negotiation request.",stoppedWhileLoading:"The connection was stopped during page load.",stoppedWhileNegotiating:"The connection was stopped during the negotiate request.",errorParsingNegotiateResponse:"Error parsing negotiate response.",errorDuringStartRequest:"Error during start request. Stopping the connection.",stoppedDuringStartRequest:"The connection was stopped during the start request.",errorParsingStartResponse:"Error parsing start response: '{0}'. Stopping the connection.",invalidStartResponse:"Invalid start response: '{0}'. Stopping the connection.",protocolIncompatible:"You are using a version of the client that isn't compatible with the server. Client version {0}, server version {1}.",sendFailed:"Send failed.",parseFailed:"Failed at parsing response: {0}",longPollFailed:"Long polling request failed.",eventSourceFailedToConnect:"EventSource failed to connect.",eventSourceError:"Error raised by EventSource",webSocketClosed:"WebSocket closed.",pingServerFailedInvalidResponse:"Invalid ping response when pinging server: '{0}'.",pingServerFailed:"Failed to ping server.",pingServerFailedStatusCode:"Failed to ping server.  Server responded with status code {0}, stopping the connection.",pingServerFailedParse:"Failed to parse ping server response, stopping the connection.",noConnectionTransport:"Connection is in an invalid state, there is no transport active.",webSocketsInvalidState:"The Web Socket transport is in an invalid state, transitioning into reconnecting.",reconnectTimeout:"Couldn't reconnect within the configured timeout of {0} ms, disconnecting.",reconnectWindowTimeout:"The client has been inactive since {0} and it has exceeded the inactivity timeout of {1} ms. Stopping the connection."};if(typeof n!="function")throw new Error(f.nojQuery);var r,c,o=t.document.readyState==="complete",e=n(t),l="__Negotiate Aborted__",u={onStart:"onStart",onStarting:"onStarting",onReceived:"onReceived",onError:"onError",onConnectionSlow:"onConnectionSlow",onReconnecting:"onReconnecting",onReconnect:"onReconnect",onStateChanged:"onStateChanged",onDisconnect:"onDisconnect"},w=function(n,i){if(i!==!1){var r;typeof t.console!="undefined"&&(r="["+(new Date).toTimeString()+"] SignalR: "+n,t.console.debug?t.console.debug(r):t.console.log&&t.console.log(r))}},s=function(t,i,r){return i===t.state?(t.state=r,n(t).triggerHandler(u.onStateChanged,[{oldState:i,newState:r}]),!0):!1},b=function(n){return n.state===r.connectionState.disconnected},a=function(n){return n._.keepAliveData.activated&&n.transport.supportsKeepAlive(n)},k=function(i){var f,e;i._.configuredStopReconnectingTimeout||(e=function(t){var i=r._.format(r.resources.reconnectTimeout,t.disconnectTimeout);t.log(i);n(t).triggerHandler(u.onError,[r._.error(i,"TimeoutException")]);t.stop(!1,!1)},i.reconnecting(function(){var n=this;n.state===r.connectionState.reconnecting&&(f=t.setTimeout(function(){e(n)},n.disconnectTimeout))}),i.stateChanged(function(n){n.oldState===r.connectionState.reconnecting&&t.clearTimeout(f)}),i._.configuredStopReconnectingTimeout=!0)};if(r=function(n,t,i){return new r.fn.init(n,t,i)},r._={defaultContentType:"application/x-www-form-urlencoded; charset=UTF-8",ieVersion:function(){var i,n;return t.navigator.appName==="Microsoft Internet Explorer"&&(n=/MSIE ([0-9]+\.[0-9]+)/.exec(t.navigator.userAgent),n&&(i=t.parseFloat(n[1]))),i}(),error:function(n,t,i){var r=new Error(n);return r.source=t,typeof i!="undefined"&&(r.context=i),r},transportError:function(n,t,r,u){var f=this.error(n,r,u);return f.transport=t?t.name:i,f},format:function(){for(var t=arguments[0],n=0;n<arguments.length-1;n++)t=t.replace("{"+n+"}",arguments[n+1]);return t},firefoxMajorVersion:function(n){var t=n.match(/Firefox\/(\d+)/);return!t||!t.length||t.length<2?0:parseInt(t[1],10)},configurePingInterval:function(i){var f=i._.config,e=function(t){n(i).triggerHandler(u.onError,[t])};f&&!i._.pingIntervalId&&f.pingInterval&&(i._.pingIntervalId=t.setInterval(function(){r.transports._logic.pingServer(i).fail(e)},f.pingInterval))}},r.events=u,r.resources=f,r.ajaxDefaults={processData:!0,timeout:null,async:!0,global:!1,cache:!1},r.changeState=s,r.isDisconnecting=b,r.connectionState={connecting:0,connected:1,reconnecting:2,disconnected:4},r.hub={start:function(){throw new Error("SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g. <script src='/signalr/js'><\/script>.");}},typeof e.on=="function")e.on("load",function(){o=!0});else e.load(function(){o=!0});r.fn=r.prototype={init:function(t,i,r){var f=n(this);this.url=t;this.qs=i;this.lastError=null;this._={keepAliveData:{},connectingMessageBuffer:new p(this,function(n){f.triggerHandler(u.onReceived,[n])}),lastMessageAt:(new Date).getTime(),lastActiveAt:(new Date).getTime(),beatInterval:5e3,beatHandle:null,totalTransportConnectTimeout:0};typeof r=="boolean"&&(this.logging=r)},_parseResponse:function(n){var t=this;return n?typeof n=="string"?t.json.parse(n):n:n},_originalJson:t.JSON,json:t.JSON,isCrossDomain:function(i,r){var u;return(i=n.trim(i),r=r||t.location,i.indexOf("http")!==0)?!1:(u=t.document.createElement("a"),u.href=i,u.protocol+h(u.protocol,u.host)!==r.protocol+h(r.protocol,r.host))},ajaxDataType:"text",contentType:"application/json; charset=UTF-8",logging:!1,state:r.connectionState.disconnected,clientProtocol:"1.5",reconnectDelay:2e3,transportConnectTimeout:0,disconnectTimeout:3e4,reconnectWindow:3e4,keepAliveWarnAt:2/3,start:function(i,h){var c=this,y={pingInterval:3e5,waitForPageLoad:!0,transport:"auto",jsonp:!1},d,p=c._deferral||n.Deferred(),w=t.document.createElement("a"),b,g;if(c.lastError=null,c._deferral=p,!c.json)throw new Error("SignalR: No JSON parser found. Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without native JSON parsing support, e.g. IE<8.");if(n.type(i)==="function"?h=i:n.type(i)==="object"&&(n.extend(y,i),n.type(y.callback)==="function"&&(h=y.callback)),y.transport=v(y.transport,c),!y.transport)throw new Error("SignalR: Invalid transport(s) specified, aborting start.");return(c._.config=y,!o&&y.waitForPageLoad===!0)?(c._.deferredStartHandler=function(){c.start(i,h)},e.bind("load",c._.deferredStartHandler),p.promise()):c.state===r.connectionState.connecting?p.promise():s(c,r.connectionState.disconnected,r.connectionState.connecting)===!1?(p.resolve(c),p.promise()):(k(c),w.href=c.url,w.protocol&&w.protocol!==":"?(c.protocol=w.protocol,c.host=w.host):(c.protocol=t.document.location.protocol,c.host=w.host||t.document.location.host),c.baseUrl=c.protocol+"//"+c.host,c.wsProtocol=c.protocol==="https:"?"wss://":"ws://",y.transport==="auto"&&y.jsonp===!0&&(y.transport="longPolling"),c.url.indexOf("//")===0&&(c.url=t.location.protocol+c.url,c.log("Protocol relative URL detected, normalizing it to '"+c.url+"'.")),this.isCrossDomain(c.url)&&(c.log("Auto detected cross domain url."),y.transport==="auto"&&(y.transport=["webSockets","serverSentEvents","longPolling"]),typeof y.withCredentials=="undefined"&&(y.withCredentials=!0),y.jsonp||(y.jsonp=!n.support.cors,y.jsonp&&c.log("Using jsonp because this browser doesn't support CORS.")),c.contentType=r._.defaultContentType),c.withCredentials=y.withCredentials,c.ajaxDataType=y.jsonp?"jsonp":"text",n(c).bind(u.onStart,function(){n.type(h)==="function"&&h.call(c);p.resolve(c)}),c._.initHandler=r.transports._logic.initHandler(c),d=function(i,o){var l=r._.error(f.noTransportOnInit);if(o=o||0,o>=i.length){o===0?c.log("No transports supported by the server were selected."):o===1?c.log("No fallback transports were selected."):c.log("Fallback transports exhausted.");n(c).triggerHandler(u.onError,[l]);p.reject(l);c.stop();return}if(c.state!==r.connectionState.disconnected){var y=i[o],h=r.transports[y],v=function(){d(i,o+1)};c.transport=h;try{c._.initHandler.start(h,function(){var i=r._.firefoxMajorVersion(t.navigator.userAgent)>=11,f=!!c.withCredentials&&i;c.log("The start request succeeded. Transitioning to the connected state.");a(c)&&r.transports._logic.monitorKeepAlive(c);r.transports._logic.startHeartbeat(c);r._.configurePingInterval(c);s(c,r.connectionState.connecting,r.connectionState.connected)||c.log("WARNING! The connection was not in the connecting state.");c._.connectingMessageBuffer.drain();n(c).triggerHandler(u.onStart);e.bind("unload",function(){c.log("Window unloading, stopping the connection.");c.stop(f)});i&&e.bind("beforeunload",function(){t.setTimeout(function(){c.stop(f)},0)})},v)}catch(w){c.log(h.name+" transport threw '"+w.message+"' when attempting to start.");v()}}},b=c.url+"/negotiate",g=function(t,i){var e=r._.error(f.errorOnNegotiate,t,i._.negotiateRequest);n(i).triggerHandler(u.onError,e);p.reject(e);i.stop()},n(c).triggerHandler(u.onStarting),b=r.transports._logic.prepareQueryString(c,b),c.log("Negotiating with '"+b+"'."),c._.negotiateRequest=r.transports._logic.ajax(c,{url:b,error:function(n,t){t!==l?g(n,c):p.reject(r._.error(f.stoppedWhileNegotiating,null,c._.negotiateRequest))},success:function(t){var i,e,h,o=[],s=[];try{i=c._parseResponse(t)}catch(l){g(r._.error(f.errorParsingNegotiateResponse,l),c);return}if(e=c._.keepAliveData,c.appRelativeUrl=i.Url,c.id=i.ConnectionId,c.token=i.ConnectionToken,c.webSocketServerUrl=i.WebSocketServerUrl,c._.pollTimeout=i.ConnectionTimeout*1e3+1e4,c.disconnectTimeout=i.DisconnectTimeout*1e3,c._.totalTransportConnectTimeout=c.transportConnectTimeout+i.TransportConnectTimeout*1e3,i.KeepAliveTimeout?(e.activated=!0,e.timeout=i.KeepAliveTimeout*1e3,e.timeoutWarning=e.timeout*c.keepAliveWarnAt,c._.beatInterval=(e.timeout-e.timeoutWarning)/3):e.activated=!1,c.reconnectWindow=c.disconnectTimeout+(e.timeout||0),!i.ProtocolVersion||i.ProtocolVersion!==c.clientProtocol){h=r._.error(r._.format(f.protocolIncompatible,c.clientProtocol,i.ProtocolVersion));n(c).triggerHandler(u.onError,[h]);p.reject(h);return}n.each(r.transports,function(n){if(n.indexOf("_")===0||n==="webSockets"&&!i.TryWebSockets)return!0;s.push(n)});n.isArray(y.transport)?n.each(y.transport,function(t,i){n.inArray(i,s)>=0&&o.push(i)}):y.transport==="auto"?o=s:n.inArray(y.transport,s)>=0&&o.push(y.transport);d(o)}}),p.promise())},starting:function(t){var i=this;return n(i).bind(u.onStarting,function(){t.call(i)}),i},send:function(n){var t=this;if(t.state===r.connectionState.disconnected)throw new Error("SignalR: Connection must be started before data can be sent. Call .start() before .send()");if(t.state===r.connectionState.connecting)throw new Error("SignalR: Connection has not been fully initialized. Use .start().done() or .start().fail() to run logic after the connection has started.");return t.transport.send(t,n),t},received:function(t){var i=this;return n(i).bind(u.onReceived,function(n,r){t.call(i,r)}),i},stateChanged:function(t){var i=this;return n(i).bind(u.onStateChanged,function(n,r){t.call(i,r)}),i},error:function(t){var i=this;return n(i).bind(u.onError,function(n,r,u){i.lastError=r;t.call(i,r,u)}),i},disconnected:function(t){var i=this;return n(i).bind(u.onDisconnect,function(){t.call(i)}),i},connectionSlow:function(t){var i=this;return n(i).bind(u.onConnectionSlow,function(){t.call(i)}),i},reconnecting:function(t){var i=this;return n(i).bind(u.onReconnecting,function(){t.call(i)}),i},reconnected:function(t){var i=this;return n(i).bind(u.onReconnect,function(){t.call(i)}),i},stop:function(i,h){var c=this,v=c._deferral;if(c._.deferredStartHandler&&e.unbind("load",c._.deferredStartHandler),delete c._.config,delete c._.deferredStartHandler,!o&&(!c._.config||c._.config.waitForPageLoad===!0)){c.log("Stopping connection prior to negotiate.");v&&v.reject(r._.error(f.stoppedWhileLoading));return}if(c.state!==r.connectionState.disconnected)return c.log("Stopping connection."),t.clearTimeout(c._.beatHandle),t.clearInterval(c._.pingIntervalId),c.transport&&(c.transport.stop(c),h!==!1&&c.transport.abort(c,i),a(c)&&r.transports._logic.stopMonitoringKeepAlive(c),c.transport=null),c._.negotiateRequest&&(c._.negotiateRequest.abort(l),delete c._.negotiateRequest),c._.initHandler&&c._.initHandler.stop(),delete c._deferral,delete c.messageId,delete c.groupsToken,delete c.id,delete c._.pingIntervalId,delete c._.lastMessageAt,delete c._.lastActiveAt,c._.connectingMessageBuffer.clear(),n(c).unbind(u.onStart),s(c,c.state,r.connectionState.disconnected),n(c).triggerHandler(u.onDisconnect),c},log:function(n){w(n,this.logging)}};r.fn.init.prototype=r.fn;r.noConflict=function(){return n.connection===r&&(n.connection=c),r};n.connection&&(c=n.connection);n.connection=n.signalR=r}(window.jQuery,window),function(n,t,i){function o(n){n._.keepAliveData.monitoring&&c(n);u.markActive(n)&&(n._.beatHandle=t.setTimeout(function(){o(n)},n._.beatInterval))}function c(t){var i=t._.keepAliveData,u;t.state===r.connectionState.connected&&(u=(new Date).getTime()-t._.lastMessageAt,u>=i.timeout?(t.log("Keep alive timed out.  Notifying transport that connection has been lost."),t.transport.lostConnection(t)):u>=i.timeoutWarning?i.userNotified||(t.log("Keep alive has been missed, connection may be dead/slow."),n(t).triggerHandler(f.onConnectionSlow),i.userNotified=!0):i.userNotified=!1)}function e(n,t){var i=n.url+t;return n.transport&&(i+="?transport="+n.transport.name),u.prepareQueryString(n,i)}function s(n){this.connection=n;this.startRequested=!1;this.startCompleted=!1;this.connectionStopped=!1}var r=n.signalR,f=n.signalR.events,l=n.signalR.changeState,h="__Start Aborted__",u;r.transports={};s.prototype={start:function(n,r,u){var f=this,e=f.connection,o=!1;if(f.startRequested||f.connectionStopped){e.log("WARNING! "+n.name+" transport cannot be started. Initialization ongoing or completed.");return}e.log(n.name+" transport starting.");n.start(e,function(){o||f.initReceived(n,r)},function(t){return o||(o=!0,f.transportFailed(n,t,u)),!f.startCompleted||f.connectionStopped});f.transportTimeoutHandle=t.setTimeout(function(){o||(o=!0,e.log(n.name+" transport timed out when trying to connect."),f.transportFailed(n,i,u))},e._.totalTransportConnectTimeout)},stop:function(){this.connectionStopped=!0;t.clearTimeout(this.transportTimeoutHandle);r.transports._logic.tryAbortStartRequest(this.connection)},initReceived:function(n,i){var u=this,f=u.connection;if(u.startRequested){f.log("WARNING! The client received multiple init messages.");return}u.connectionStopped||(u.startRequested=!0,t.clearTimeout(u.transportTimeoutHandle),f.log(n.name+" transport connected. Initiating start request."),r.transports._logic.ajaxStart(f,function(){u.startCompleted=!0;i()}))},transportFailed:function(i,u,e){var o=this.connection,h=o._deferral,s;this.connectionStopped||(t.clearTimeout(this.transportTimeoutHandle),this.startRequested?this.startCompleted||(s=r._.error(r.resources.errorDuringStartRequest,u),o.log(i.name+" transport failed during the start request. Stopping the connection."),n(o).triggerHandler(f.onError,[s]),h&&h.reject(s),o.stop()):(i.stop(o),o.log(i.name+" transport failed to connect. Attempting to fall back."),e()))}};u=r.transports._logic={ajax:function(t,i){return n.ajax(n.extend(!0,{},n.signalR.ajaxDefaults,{type:"GET",data:{},xhrFields:{withCredentials:t.withCredentials},contentType:t.contentType,dataType:t.ajaxDataType},i))},pingServer:function(t){var e,f,i=n.Deferred();return t.transport?(e=t.url+"/ping",e=u.addQs(e,t.qs),f=u.ajax(t,{url:e,success:function(n){var u;try{u=t._parseResponse(n)}catch(e){i.reject(r._.transportError(r.resources.pingServerFailedParse,t.transport,e,f));t.stop();return}u.Response==="pong"?i.resolve():i.reject(r._.transportError(r._.format(r.resources.pingServerFailedInvalidResponse,n),t.transport,null,f))},error:function(n){n.status===401||n.status===403?(i.reject(r._.transportError(r._.format(r.resources.pingServerFailedStatusCode,n.status),t.transport,n,f)),t.stop()):i.reject(r._.transportError(r.resources.pingServerFailed,t.transport,n,f))}})):i.reject(r._.transportError(r.resources.noConnectionTransport,t.transport)),i.promise()},prepareQueryString:function(n,i){var r;return r=u.addQs(i,"clientProtocol="+n.clientProtocol),r=u.addQs(r,n.qs),n.token&&(r+="&connectionToken="+t.encodeURIComponent(n.token)),n.data&&(r+="&connectionData="+t.encodeURIComponent(n.data)),r},addQs:function(t,i){var r=t.indexOf("?")!==-1?"&":"?",u;if(!i)return t;if(typeof i=="object")return t+r+n.param(i);if(typeof i=="string")return u=i.charAt(0),(u==="?"||u==="&")&&(r=""),t+r+i;throw new Error("Query string property must be either a string or object.");},getUrl:function(n,i,r,f,e){var h=i==="webSockets"?"":n.baseUrl,o=h+n.appRelativeUrl,s="transport="+i;return!e&&n.groupsToken&&(s+="&groupsToken="+t.encodeURIComponent(n.groupsToken)),r?(o+=f?"/poll":"/reconnect",!e&&n.messageId&&(s+="&messageId="+t.encodeURIComponent(n.messageId))):o+="/connect",o+="?"+s,o=u.prepareQueryString(n,o),e||(o+="&tid="+Math.floor(Math.random()*11)),o},maximizePersistentResponse:function(n){return{MessageId:n.C,Messages:n.M,Initialized:typeof n.S!="undefined"?!0:!1,ShouldReconnect:typeof n.T!="undefined"?!0:!1,LongPollDelay:n.L,GroupsToken:n.G}},updateGroups:function(n,t){t&&(n.groupsToken=t)},stringifySend:function(n,t){return typeof t=="string"||typeof t=="undefined"||t===null?t:n.json.stringify(t)},ajaxSend:function(t,i){var h=u.stringifySend(t,i),c=e(t,"/send"),o,s=function(t,u){n(u).triggerHandler(f.onError,[r._.transportError(r.resources.sendFailed,u.transport,t,o),i])};return o=u.ajax(t,{url:c,type:t.ajaxDataType==="jsonp"?"GET":"POST",contentType:r._.defaultContentType,data:{data:h},success:function(n){var i;if(n){try{i=t._parseResponse(n)}catch(r){s(r,t);t.stop();return}u.triggerReceived(t,i)}},error:function(n,i){i!=="abort"&&i!=="parsererror"&&s(n,t)}})},ajaxAbort:function(n,t){if(typeof n.transport!="undefined"){t=typeof t=="undefined"?!0:t;var i=e(n,"/abort");u.ajax(n,{url:i,async:t,timeout:1e3,type:"POST"});n.log("Fired ajax abort async = "+t+".")}},ajaxStart:function(t,i){var s=function(n){var i=t._deferral;i&&i.reject(n)},o=function(i){t.log("The start request failed. Stopping the connection.");n(t).triggerHandler(f.onError,[i]);s(i);t.stop()};t._.startRequest=u.ajax(t,{url:e(t,"/start"),success:function(n,u,f){var e;try{e=t._parseResponse(n)}catch(s){o(r._.error(r._.format(r.resources.errorParsingStartResponse,n),s,f));return}e.Response==="started"?i():o(r._.error(r._.format(r.resources.invalidStartResponse,n),null,f))},error:function(n,i,u){i!==h?o(r._.error(r.resources.errorDuringStartRequest,u,n)):(t.log("The start request aborted because connection.stop() was called."),s(r._.error(r.resources.stoppedDuringStartRequest,null,n)))}})},tryAbortStartRequest:function(n){n._.startRequest&&(n._.startRequest.abort(h),delete n._.startRequest)},tryInitialize:function(n,t,i){t.Initialized&&i?i():t.Initialized&&n.log("WARNING! The client received an init message after reconnecting.")},triggerReceived:function(t,i){t._.connectingMessageBuffer.tryBuffer(i)||n(t).triggerHandler(f.onReceived,[i])},processMessages:function(t,i,r){var f;u.markLastMessage(t);i&&(f=u.maximizePersistentResponse(i),u.updateGroups(t,f.GroupsToken),f.MessageId&&(t.messageId=f.MessageId),f.Messages&&(n.each(f.Messages,function(n,i){u.triggerReceived(t,i)}),u.tryInitialize(t,f,r)))},monitorKeepAlive:function(t){var i=t._.keepAliveData;i.monitoring?t.log("Tried to monitor keep alive but it's already being monitored."):(i.monitoring=!0,u.markLastMessage(t),t._.keepAliveData.reconnectKeepAliveUpdate=function(){u.markLastMessage(t)},n(t).bind(f.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t.log("Now monitoring keep alive with a warning timeout of "+i.timeoutWarning+", keep alive timeout of "+i.timeout+" and disconnecting timeout of "+t.disconnectTimeout))},stopMonitoringKeepAlive:function(t){var i=t._.keepAliveData;i.monitoring&&(i.monitoring=!1,n(t).unbind(f.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t._.keepAliveData={},t.log("Stopping the monitoring of the keep alive."))},startHeartbeat:function(n){n._.lastActiveAt=(new Date).getTime();o(n)},markLastMessage:function(n){n._.lastMessageAt=(new Date).getTime()},markActive:function(n){return u.verifyLastActive(n)?(n._.lastActiveAt=(new Date).getTime(),!0):!1},isConnectedOrReconnecting:function(n){return n.state===r.connectionState.connected||n.state===r.connectionState.reconnecting},ensureReconnectingState:function(t){return l(t,r.connectionState.connected,r.connectionState.reconnecting)===!0&&n(t).triggerHandler(f.onReconnecting),t.state===r.connectionState.reconnecting},clearReconnectTimeout:function(n){n&&n._.reconnectTimeout&&(t.clearTimeout(n._.reconnectTimeout),delete n._.reconnectTimeout)},verifyLastActive:function(t){if((new Date).getTime()-t._.lastActiveAt>=t.reconnectWindow){var i=r._.format(r.resources.reconnectWindowTimeout,new Date(t._.lastActiveAt),t.reconnectWindow);return t.log(i),n(t).triggerHandler(f.onError,[r._.error(i,"TimeoutException")]),t.stop(!1,!1),!1}return!0},reconnect:function(n,i){var f=r.transports[i];if(u.isConnectedOrReconnecting(n)&&!n._.reconnectTimeout){if(!u.verifyLastActive(n))return;n._.reconnectTimeout=t.setTimeout(function(){u.verifyLastActive(n)&&(f.stop(n),u.ensureReconnectingState(n)&&(n.log(i+" reconnecting."),f.start(n)))},n.reconnectDelay)}},handleParseFailure:function(t,i,u,e,o){var s=r._.transportError(r._.format(r.resources.parseFailed,i),t.transport,u,o);e&&e(s)?t.log("Failed to parse server response while attempting to connect."):(n(t).triggerHandler(f.onError,[s]),t.stop())},initHandler:function(n){return new s(n)},foreverFrame:{count:0,connections:{}}}}(window.jQuery,window),function(n,t){var r=n.signalR,u=n.signalR.events,f=n.signalR.changeState,i=r.transports._logic;r.transports.webSockets={name:"webSockets",supportsKeepAlive:function(){return!0},send:function(t,f){var e=i.stringifySend(t,f);try{t.socket.send(e)}catch(o){n(t).triggerHandler(u.onError,[r._.transportError(r.resources.webSocketsInvalidState,t.transport,o,t.socket),f])}},start:function(e,o,s){var h,c=!1,l=this,a=!o,v=n(e);if(!t.WebSocket){s();return}e.socket||(h=e.webSocketServerUrl?e.webSocketServerUrl:e.wsProtocol+e.host,h+=i.getUrl(e,this.name,a),e.log("Connecting to websocket endpoint '"+h+"'."),e.socket=new t.WebSocket(h),e.socket.onopen=function(){c=!0;e.log("Websocket opened.");i.clearReconnectTimeout(e);f(e,r.connectionState.reconnecting,r.connectionState.connected)===!0&&v.triggerHandler(u.onReconnect)},e.socket.onclose=function(t){var i;this===e.socket&&(c&&typeof t.wasClean!="undefined"&&t.wasClean===!1?(i=r._.transportError(r.resources.webSocketClosed,e.transport,t),e.log("Unclean disconnect from websocket: "+(t.reason||"[no reason given]."))):e.log("Websocket closed."),s&&s(i)||(i&&n(e).triggerHandler(u.onError,[i]),l.reconnect(e)))},e.socket.onmessage=function(t){var r;try{r=e._parseResponse(t.data)}catch(u){i.handleParseFailure(e,t.data,u,s,t);return}r&&(n.isEmptyObject(r)||r.M?i.processMessages(e,r,o):i.triggerReceived(e,r))})},reconnect:function(n){i.reconnect(n,this.name)},lostConnection:function(n){this.reconnect(n)},stop:function(n){i.clearReconnectTimeout(n);n.socket&&(n.log("Closing the Websocket."),n.socket.close(),n.socket=null)},abort:function(n,t){i.ajaxAbort(n,t)}}}(window.jQuery,window),function(n,t){var i=n.signalR,u=n.signalR.events,e=n.signalR.changeState,r=i.transports._logic,f=function(n){t.clearTimeout(n._.reconnectAttemptTimeoutHandle);delete n._.reconnectAttemptTimeoutHandle};i.transports.serverSentEvents={name:"serverSentEvents",supportsKeepAlive:function(){return!0},timeOut:3e3,start:function(o,s,h){var c=this,l=!1,a=n(o),v=!s,y;if(o.eventSource&&(o.log("The connection already has an event source. Stopping it."),o.stop()),!t.EventSource){h&&(o.log("This browser doesn't support SSE."),h());return}y=r.getUrl(o,this.name,v);try{o.log("Attempting to connect to SSE endpoint '"+y+"'.");o.eventSource=new t.EventSource(y,{withCredentials:o.withCredentials})}catch(p){o.log("EventSource failed trying to connect with error "+p.Message+".");h?h():(a.triggerHandler(u.onError,[i._.transportError(i.resources.eventSourceFailedToConnect,o.transport,p)]),v&&c.reconnect(o));return}v&&(o._.reconnectAttemptTimeoutHandle=t.setTimeout(function(){l===!1&&o.eventSource.readyState!==t.EventSource.OPEN&&c.reconnect(o)},c.timeOut));o.eventSource.addEventListener("open",function(){o.log("EventSource connected.");f(o);r.clearReconnectTimeout(o);l===!1&&(l=!0,e(o,i.connectionState.reconnecting,i.connectionState.connected)===!0&&a.triggerHandler(u.onReconnect))},!1);o.eventSource.addEventListener("message",function(n){var t;if(n.data!=="initialized"){try{t=o._parseResponse(n.data)}catch(i){r.handleParseFailure(o,n.data,i,h,n);return}r.processMessages(o,t,s)}},!1);o.eventSource.addEventListener("error",function(n){var r=i._.transportError(i.resources.eventSourceError,o.transport,n);this===o.eventSource&&(h&&h(r)||(o.log("EventSource readyState: "+o.eventSource.readyState+"."),n.eventPhase===t.EventSource.CLOSED?(o.log("EventSource reconnecting due to the server connection ending."),c.reconnect(o)):(o.log("EventSource error."),a.triggerHandler(u.onError,[r]))))},!1)},reconnect:function(n){r.reconnect(n,this.name)},lostConnection:function(n){this.reconnect(n)},send:function(n,t){r.ajaxSend(n,t)},stop:function(n){f(n);r.clearReconnectTimeout(n);n&&n.eventSource&&(n.log("EventSource calling close()."),n.eventSource.close(),n.eventSource=null,delete n.eventSource)},abort:function(n,t){r.ajaxAbort(n,t)}}}(window.jQuery,window),function(n,t){var r=n.signalR,e=n.signalR.events,o=n.signalR.changeState,i=r.transports._logic,u=function(){var n=t.document.createElement("iframe");return n.setAttribute("style","position:absolute;top:0;left:0;width:0;height:0;visibility:hidden;"),n},f=function(){var i=null,f=1e3,n=0;return{prevent:function(){r._.ieVersion<=8&&(n===0&&(i=t.setInterval(function(){var n=u();t.document.body.appendChild(n);t.document.body.removeChild(n);n=null},f)),n++)},cancel:function(){n===1&&t.clearInterval(i);n>0&&n--}}}();r.transports.foreverFrame={name:"foreverFrame",supportsKeepAlive:function(){return!0},iframeClearThreshold:50,start:function(n,r,e){var l=this,s=i.foreverFrame.count+=1,h,o=u(),c=function(){n.log("Forever frame iframe finished loading and is no longer receiving messages.");e&&e()||l.reconnect(n)};if(t.EventSource){e&&(n.log("Forever Frame is not supported by SignalR on browsers with SSE support."),e());return}o.setAttribute("data-signalr-connection-id",n.id);f.prevent();h=i.getUrl(n,this.name);h+="&frameId="+s;t.document.documentElement.appendChild(o);n.log("Binding to iframe's load event.");o.addEventListener?o.addEventListener("load",c,!1):o.attachEvent&&o.attachEvent("onload",c);o.src=h;i.foreverFrame.connections[s]=n;n.frame=o;n.frameId=s;r&&(n.onSuccess=function(){n.log("Iframe transport started.");r()})},reconnect:function(n){var r=this;i.isConnectedOrReconnecting(n)&&i.verifyLastActive(n)&&t.setTimeout(function(){if(i.verifyLastActive(n)&&n.frame&&i.ensureReconnectingState(n)){var u=n.frame,t=i.getUrl(n,r.name,!0)+"&frameId="+n.frameId;n.log("Updating iframe src to '"+t+"'.");u.src=t}},n.reconnectDelay)},lostConnection:function(n){this.reconnect(n)},send:function(n,t){i.ajaxSend(n,t)},receive:function(t,u){var f,e,o;if(t.json!==t._originalJson&&(u=t._originalJson.stringify(u)),o=t._parseResponse(u),i.processMessages(t,o,t.onSuccess),t.state===n.signalR.connectionState.connected&&(t.frameMessageCount=(t.frameMessageCount||0)+1,t.frameMessageCount>r.transports.foreverFrame.iframeClearThreshold&&(t.frameMessageCount=0,f=t.frame.contentWindow||t.frame.contentDocument,f&&f.document&&f.document.body)))for(e=f.document.body;e.firstChild;)e.removeChild(e.firstChild)},stop:function(n){var r=null;if(f.cancel(),n.frame){if(n.frame.stop)n.frame.stop();else try{r=n.frame.contentWindow||n.frame.contentDocument;r.document&&r.document.execCommand&&r.document.execCommand("Stop")}catch(u){n.log("Error occurred when stopping foreverFrame transport. Message = "+u.message+".")}n.frame.parentNode===t.document.documentElement&&t.document.documentElement.removeChild(n.frame);delete i.foreverFrame.connections[n.frameId];n.frame=null;n.frameId=null;delete n.frame;delete n.frameId;delete n.onSuccess;delete n.frameMessageCount;n.log("Stopping forever frame.")}},abort:function(n,t){i.ajaxAbort(n,t)},getConnection:function(n){return i.foreverFrame.connections[n]},started:function(t){o(t,r.connectionState.reconnecting,r.connectionState.connected)===!0&&n(t).triggerHandler(e.onReconnect)}}}(window.jQuery,window),function(n,t){var r=n.signalR,u=n.signalR.events,e=n.signalR.changeState,f=n.signalR.isDisconnecting,i=r.transports._logic;r.transports.longPolling={name:"longPolling",supportsKeepAlive:function(){return!1},reconnectDelay:3e3,start:function(o,s,h){var a=this,v=function(){v=n.noop;o.log("LongPolling connected.");s?s():o.log("WARNING! The client received an init message after reconnecting.")},y=function(n){return h(n)?(o.log("LongPolling failed to connect."),!0):!1},c=o._,l=0,p=function(i){t.clearTimeout(c.reconnectTimeoutId);c.reconnectTimeoutId=null;e(i,r.connectionState.reconnecting,r.connectionState.connected)===!0&&(i.log("Raising the reconnect event"),n(i).triggerHandler(u.onReconnect))},w=36e5;o.pollXhr&&(o.log("Polling xhr requests already exists, aborting."),o.stop());o.messageId=null;c.reconnectTimeoutId=null;c.pollTimeoutId=t.setTimeout(function(){(function e(s,h){var g=s.messageId,nt=g===null,k=!nt,tt=!h,d=i.getUrl(s,a.name,k,tt,!0),b={};(s.messageId&&(b.messageId=s.messageId),s.groupsToken&&(b.groupsToken=s.groupsToken),f(s)!==!0)&&(o.log("Opening long polling request to '"+d+"'."),s.pollXhr=i.ajax(o,{xhrFields:{onprogress:function(){i.markLastMessage(o)}},url:d,type:"POST",contentType:r._.defaultContentType,data:b,timeout:o._.pollTimeout,success:function(r){var h,w=0,u,a;o.log("Long poll complete.");l=0;try{h=o._parseResponse(r)}catch(b){i.handleParseFailure(s,r,b,y,s.pollXhr);return}(c.reconnectTimeoutId!==null&&p(s),h&&(u=i.maximizePersistentResponse(h)),i.processMessages(s,h,v),u&&n.type(u.LongPollDelay)==="number"&&(w=u.LongPollDelay),f(s)!==!0)&&(a=u&&u.ShouldReconnect,!a||i.ensureReconnectingState(s))&&(w>0?c.pollTimeoutId=t.setTimeout(function(){e(s,a)},w):e(s,a))},error:function(f,h){var v=r._.transportError(r.resources.longPollFailed,o.transport,f,s.pollXhr);if(t.clearTimeout(c.reconnectTimeoutId),c.reconnectTimeoutId=null,h==="abort"){o.log("Aborted xhr request.");return}if(!y(v)){if(l++,o.state!==r.connectionState.reconnecting&&(o.log("An error occurred using longPolling. Status = "+h+".  Response = "+f.responseText+"."),n(s).triggerHandler(u.onError,[v])),(o.state===r.connectionState.connected||o.state===r.connectionState.reconnecting)&&!i.verifyLastActive(o))return;if(!i.ensureReconnectingState(s))return;c.pollTimeoutId=t.setTimeout(function(){e(s,!0)},a.reconnectDelay)}}}),k&&h===!0&&(c.reconnectTimeoutId=t.setTimeout(function(){p(s)},Math.min(1e3*(Math.pow(2,l)-1),w))))})(o)},250)},lostConnection:function(n){n.pollXhr&&n.pollXhr.abort("lostConnection")},send:function(n,t){i.ajaxSend(n,t)},stop:function(n){t.clearTimeout(n._.pollTimeoutId);t.clearTimeout(n._.reconnectTimeoutId);delete n._.pollTimeoutId;delete n._.reconnectTimeoutId;n.pollXhr&&(n.pollXhr.abort(),n.pollXhr=null,delete n.pollXhr)},abort:function(n,t){i.ajaxAbort(n,t)}}}(window.jQuery,window),function(n){function r(n){return n+s}function e(n,t,i){for(var f=n.length,u=[],r=0;r<f;r+=1)n.hasOwnProperty(r)&&(u[r]=t.call(i,n[r],r,n));return u}function o(t){return n.isFunction(t)?null:n.type(t)==="undefined"?null:t}function u(n){for(var t in n)if(n.hasOwnProperty(t))return!0;return!1}function f(n,t){var i=n._.invocationCallbacks,r,f;u(i)&&n.log("Clearing hub invocation callbacks with error: "+t+".");n._.invocationCallbackId=0;delete n._.invocationCallbacks;n._.invocationCallbacks={};for(f in i)r=i[f],r.method.call(r.scope,{E:t})}function i(n,t){return new i.fn.init(n,t)}function t(i,r){var u={qs:null,logging:!1,useDefaultPath:!0};return n.extend(u,r),(!i||u.useDefaultPath)&&(i=(i||"")+"/signalr"),new t.fn.init(i,u)}var s=".hubProxy",h=n.signalR;i.fn=i.prototype={init:function(n,t){this.state={};this.connection=n;this.hubName=t;this._={callbackMap:{}}},constructor:i,hasSubscriptions:function(){return u(this._.callbackMap)},on:function(t,i){var u=this,f=u._.callbackMap;return t=t.toLowerCase(),f[t]||(f[t]={}),f[t][i]=function(n,t){i.apply(u,t)},n(u).bind(r(t),f[t][i]),u},off:function(t,i){var e=this,o=e._.callbackMap,f;return t=t.toLowerCase(),f=o[t],f&&(f[i]?(n(e).unbind(r(t),f[i]),delete f[i],u(f)||delete o[t]):i||(n(e).unbind(r(t)),delete o[t])),e},invoke:function(t){var i=this,r=i.connection,s=n.makeArray(arguments).slice(1),c=e(s,o),f={H:i.hubName,M:t,A:c,I:r._.invocationCallbackId},u=n.Deferred(),l=function(f){var e=i._maximizeHubResponse(f),s,o;n.extend(i.state,e.State);e.Progress?u.notifyWith?u.notifyWith(i,[e.Progress.Data]):r._.progressjQueryVersionLogged||(r.log("A hub method invocation progress update was received but the version of jQuery in use ("+n.prototype.jquery+") does not support progress updates. Upgrade to jQuery 1.7+ to receive progress notifications."),r._.progressjQueryVersionLogged=!0):e.Error?(e.StackTrace&&r.log(e.Error+"\n"+e.StackTrace+"."),s=e.IsHubException?"HubException":"Exception",o=h._.error(e.Error,s),o.data=e.ErrorData,r.log(i.hubName+"."+t+" failed to execute. Error: "+o.message),u.rejectWith(i,[o])):(r.log("Invoked "+i.hubName+"."+t),u.resolveWith(i,[e.Result]))};return r._.invocationCallbacks[r._.invocationCallbackId.toString()]={scope:i,method:l},r._.invocationCallbackId+=1,n.isEmptyObject(i.state)||(f.S=i.state),r.log("Invoking "+i.hubName+"."+t),r.send(f),u.promise()},_maximizeHubResponse:function(n){return{State:n.S,Result:n.R,Progress:n.P?{Id:n.P.I,Data:n.P.D}:null,Id:n.I,IsHubException:n.H,Error:n.E,StackTrace:n.T,ErrorData:n.D}}};i.fn.init.prototype=i.fn;t.fn=t.prototype=n.connection();t.fn.init=function(t,i){var e={qs:null,logging:!1,useDefaultPath:!0},u=this;n.extend(e,i);n.signalR.fn.init.call(u,t,e.qs,e.logging);u.proxies={};u._.invocationCallbackId=0;u._.invocationCallbacks={};u.received(function(t){var f,o,e,i,s,h;t&&(typeof t.P!="undefined"?(e=t.P.I.toString(),i=u._.invocationCallbacks[e],i&&i.method.call(i.scope,t)):typeof t.I!="undefined"?(e=t.I.toString(),i=u._.invocationCallbacks[e],i&&(u._.invocationCallbacks[e]=null,delete u._.invocationCallbacks[e],i.method.call(i.scope,t))):(f=this._maximizeClientHubInvocation(t),u.log("Triggering client hub event '"+f.Method+"' on hub '"+f.Hub+"'."),s=f.Hub.toLowerCase(),h=f.Method.toLowerCase(),o=this.proxies[s],n.extend(o.state,f.State),n(o).triggerHandler(r(h),[f.Args])))});u.error(function(n,t){var i,r;t&&(i=t.I,r=u._.invocationCallbacks[i],r&&(u._.invocationCallbacks[i]=null,delete u._.invocationCallbacks[i],r.method.call(r.scope,{E:n})))});u.reconnecting(function(){u.transport&&u.transport.name==="webSockets"&&f(u,"Connection started reconnecting before invocation result was received.")});u.disconnected(function(){f(u,"Connection was disconnected before invocation result was received.")})};t.fn._maximizeClientHubInvocation=function(n){return{Hub:n.H,Method:n.M,Args:n.A,State:n.S}};t.fn._registerSubscribedHubs=function(){var t=this;t._subscribedToHubs||(t._subscribedToHubs=!0,t.starting(function(){var i=[];n.each(t.proxies,function(n){this.hasSubscriptions()&&(i.push({name:n}),t.log("Client subscribed to hub '"+n+"'."))});i.length===0&&t.log("No hubs have been subscribed to.  The client will not receive data from hubs.  To fix, declare at least one client side function prior to connection start for each hub you wish to subscribe to.");t.data=t.json.stringify(i)}))};t.fn.createHubProxy=function(n){n=n.toLowerCase();var t=this.proxies[n];return t||(t=i(this,n),this.proxies[n]=t),this._registerSubscribedHubs(),t};t.fn.init.prototype=t.fn;n.hubConnection=t}(window.jQuery,window),function(n){n.signalR.version="2.3.0"}(window.jQuery);angular.module("SignalR",[]).constant("$",window.jQuery).factory("Hub",["$",function(n){function i(t){var i=null;return i=t&&t.rootPath?n.hubConnection(t.rootPath,{useDefaultPath:!1}):n.hubConnection(),i.logging=t&&t.logging?!0:!1,i}function r(n){var r=!(n&&n.useSharedConnection===!1);return r?typeof t[n.rootPath]=="undefined"?t[n.rootPath]=i(n):t[n.rootPath]:i(n)}var t=[];return function(t,i){var u=this;return u.connection=r(i),u.proxy=u.connection.createHubProxy(t),u.on=function(n,t){u.proxy.on(n,t)},u.invoke=function(){return u.proxy.invoke.apply(u.proxy,arguments)},u.disconnect=function(){u.connection.stop()},u.connect=function(n){var t={};return i.transport&&(t.transport=i.transport),i.jsonp&&(t.jsonp=i.jsonp),i.pingInterval!==undefined&&(t.pingInterval=i.pingInterval),angular.isDefined(i.withCredentials)&&(t.withCredentials=i.withCredentials),n&&(u.connection.qs=n),u.connection.start(t)},i&&i.listeners&&Object.getOwnPropertyNames(i.listeners).filter(function(n){return typeof i.listeners[n]=="function"}).forEach(function(n){u.on(n,i.listeners[n])}),i&&i.methods&&angular.forEach(i.methods,function(t){u[t]=function(){var i=n.makeArray(arguments);return i.unshift(t),u.invoke.apply(u,i)}}),i&&i.queryParams&&(u.connection.qs=i.queryParams),i&&i.errorHandler&&u.connection.error(i.errorHandler),i&&i.stateChanged&&u.connection.stateChanged(i.stateChanged),(i.autoConnect===undefined||i.autoConnect)&&(u.promise=u.connect()),u}}]);typeof module!="undefined"&&typeof exports!="undefined"&&module.exports===exports&&(module.exports="SignalR"),function(n){n.fn.floatit=function(t){function l(n,t,i,r){t+r>=i?(n.css({top:r,position:"fixed"}),n.addClass("sideStick")):(n.css({top:i,position:"absolute"}),n.removeClass("sideStick"))}var i=this,e=null,u=0,s=0,v=!1,h=function(t){return n(t).first().offset().top},c=!1,f,p;if(t=t||{},t.hasOwnProperty("limiter")&&(e=n(t.limiter)),t.hasOwnProperty("top_spacing")&&(u=t.top_spacing),t.hasOwnProperty("bottom_spacing")&&(s=t.bottom_spacing),t.hasOwnProperty("preserve_width")&&(v=t.preserve_width),t.hasOwnProperty("limit_fn")&&(h=t.limit_fn),t.hasOwnProperty("recalculate")&&(c=t.recalculate),!(i.outerHeight(!0)>=i.parent().height())){if(i&&i.length>0){i.addClass("floating");var w=null,o=null,r=null,a=null,y=function(){var t=0,f;n(".header").length>0&&n(".header").css("position")==="fixed"&&(t=n(".header").height());u=t+10;r=i.offset();a=i.outerHeight(!0);w=r.top;i.data("fltr_offset",r);i.data("fltr_parent",i.parent());i.css("max-height","calc(100vh - "+t+"px");f={top:r.top,left:r.left,position:"absolute"};v&&(f.width=i.outerWidth());i.css(f);e&&e.length>0&&(o=h(e)-s);i.detach();n("body").append(i)};if(y(),f=function(){if(i.hasClass("floating")){var t=n(document).scrollTop();l(i,t,r.top,u)}},o&&!c&&(f=function(){if(i.hasClass("floating")){var t=n(document).scrollTop(),f=t+a+u;f>=o?i.css({top:o-a,position:"absolute"}):l(i,t,r.top,u)}}),o&&c&&(f=function(){if(i.hasClass("floating")){var t=h(e)-s,f=n(document).scrollTop(),o=i.outerHeight(!0),c=f+o+u;c>=t?i.css({top:t-o,position:"absolute"}):l(i,f,r.top,u)}}),p=function(){i.hasClass("floating")&&(i.detach(),n(i.data("fltr_parent")).append(i),i.attr("style",""),y(),f())},i.data("fltr"))return this;n(window).resize(p);n(document).scroll(f);f();i.data("fltr",!0)}return this}};n.fn.sinkit=function(){var t=this;return t.removeClass("floating"),t.detach(),n(t.data("fltr_parent")).append(t),t.attr("style",""),this}}(jQuery);!function(n,t){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return t(n,i)}):"object"==typeof module&&module.exports?module.exports=t(n,require("jquery")):n.jQueryBridget=t(n,n.jQuery)}(window,function(n,t){"use strict";function i(i,u,o){function s(n,t,r){var u,e="$()."+i+'("'+t+'")';return n.each(function(n,s){var h=o.data(s,i),c,l;if(!h)return void f(i+" not initialized. Cannot call methods, i.e. "+e);if(c=h[t],!c||"_"==t.charAt(0))return void f(e+" is not a valid method");l=c.apply(h,r);u=void 0===u?l:u}),void 0!==u?u:n}function h(n,t){n.each(function(n,r){var f=o.data(r,i);f?(f.option(t),f._init()):(f=new u(r,t),o.data(r,i,f))})}o=o||t||n.jQuery;o&&(u.prototype.option||(u.prototype.option=function(n){o.isPlainObject(n)&&(this.options=o.extend(!0,this.options,n))}),o.fn[i]=function(n){if("string"==typeof n){var t=e.call(arguments,1);return s(this,n,t)}return h(this,n),this},r(o))}function r(n){!n||n&&n.bridget||(n.bridget=i)}var e=Array.prototype.slice,u=n.console,f="undefined"==typeof u?function(){}:function(n){u.error(n)};return r(t||n.jQuery),i}),function(n,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():n.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function t(){}var n=t.prototype;return n.on=function(n,t){if(n&&t){var i=this._events=this._events||{},r=i[n]=i[n]||[];return-1==r.indexOf(t)&&r.push(t),this}},n.once=function(n,t){if(n&&t){this.on(n,t);var i=this._onceEvents=this._onceEvents||{},r=i[n]=i[n]||{};return r[t]=!0,this}},n.off=function(n,t){var i=this._events&&this._events[n],r;if(i&&i.length)return r=i.indexOf(t),-1!=r&&i.splice(r,1),this},n.emitEvent=function(n,t){var i=this._events&&this._events[n],u,f,r,e;if(i&&i.length){for(i=i.slice(0),t=t||[],u=this._onceEvents&&this._onceEvents[n],f=0;f<i.length;f++)r=i[f],e=u&&u[r],e&&(this.off(n,r),delete u[r]),r.apply(this,t);return this}},n.allOff=function(){delete this._events;delete this._onceEvents},t}),function(n,t){"function"==typeof define&&define.amd?define("get-size/get-size",t):"object"==typeof module&&module.exports?module.exports=t():n.getSize=t()}(window,function(){"use strict";function n(n){var t=parseFloat(n),i=-1==n.indexOf("%")&&!isNaN(t);return i&&t}function o(){}function s(){for(var r,t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0;f>n;n++)r=i[n],t[r]=0;return t}function r(n){var t=getComputedStyle(n);return t||c("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function h(){var i,f,o;e||(e=!0,i=document.createElement("div"),i.style.width="200px",i.style.padding="1px 2px 3px 4px",i.style.borderStyle="solid",i.style.borderWidth="1px 2px 3px 4px",i.style.boxSizing="border-box",f=document.body||document.documentElement,f.appendChild(i),o=r(i),t=200==Math.round(n(o.width)),u.isBoxSizeOuter=t,f.removeChild(i))}function u(u){var o,e,a,c,l;if(h(),"string"==typeof u&&(u=document.querySelector(u)),u&&"object"==typeof u&&u.nodeType){if(o=r(u),"none"==o.display)return s();for(e={},e.width=u.offsetWidth,e.height=u.offsetHeight,a=e.isBorderBox="border-box"==o.boxSizing,c=0;f>c;c++){var v=i[c],nt=o[v],y=parseFloat(nt);e[v]=isNaN(y)?0:y}var p=e.paddingLeft+e.paddingRight,w=e.paddingTop+e.paddingBottom,tt=e.marginLeft+e.marginRight,it=e.marginTop+e.marginBottom,b=e.borderLeftWidth+e.borderRightWidth,k=e.borderTopWidth+e.borderBottomWidth,d=a&&t,g=n(o.width);return g!==!1&&(e.width=g+(d?0:p+b)),l=n(o.height),l!==!1&&(e.height=l+(d?0:w+k)),e.innerWidth=e.width-(p+b),e.innerHeight=e.height-(w+k),e.outerWidth=e.width+tt,e.outerHeight=e.height+it,e}}var t,c="undefined"==typeof console?o:function(n){console.error(n)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],f=i.length,e=!1;return u}),function(n,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():n.matchesSelector=t()}(window,function(){"use strict";var n=function(){var t=window.Element.prototype,i,n,u,r;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(i=["webkit","moz","ms","o"],n=0;n<i.length;n++)if(u=i[n],r=u+"MatchesSelector",t[r])return r}();return function(t,i){return t[n](i)}}),function(n,t){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return t(n,i)}):"object"==typeof module&&module.exports?module.exports=t(n,require("desandro-matches-selector")):n.fizzyUIUtils=t(n,n.matchesSelector)}(window,function(n,t){var i={},u,r;return i.extend=function(n,t){for(var i in t)n[i]=t[i];return n},i.modulo=function(n,t){return(n%t+t)%t},u=Array.prototype.slice,i.makeArray=function(n){if(Array.isArray(n))return n;if(null===n||void 0===n)return[];var t="object"==typeof n&&"number"==typeof n.length;return t?u.call(n):[n]},i.removeFrom=function(n,t){var i=n.indexOf(t);-1!=i&&n.splice(i,1)},i.getParent=function(n,i){for(;n.parentNode&&n!=document.body;)if(n=n.parentNode,t(n,i))return n},i.getQueryElement=function(n){return"string"==typeof n?document.querySelector(n):n},i.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},i.filterFindElements=function(n,r){n=i.makeArray(n);var u=[];return n.forEach(function(n){if(n instanceof HTMLElement){if(!r)return void u.push(n);t(n,r)&&u.push(n);for(var f=n.querySelectorAll(r),i=0;i<f.length;i++)u.push(f[i])}}),u},i.debounceMethod=function(n,t,i){i=i||100;var u=n.prototype[t],r=t+"Timeout";n.prototype[t]=function(){var f=this[r],t,n;clearTimeout(f);t=arguments;n=this;this[r]=setTimeout(function(){u.apply(n,t);delete n[r]},i)}},i.docReady=function(n){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(n):document.addEventListener("DOMContentLoaded",n)},i.toDashed=function(n){return n.replace(/(.)([A-Z])/g,function(n,t,i){return t+"-"+i}).toLowerCase()},r=n.console,i.htmlInit=function(t,u){i.docReady(function(){var e=i.toDashed(u),f="data-"+e,s=document.querySelectorAll("["+f+"]"),h=document.querySelectorAll(".js-"+e),c=i.makeArray(s).concat(i.makeArray(h)),l=f+"-options",o=n.jQuery;c.forEach(function(n){var i,e=n.getAttribute(f)||n.getAttribute(l),s;try{i=e&&JSON.parse(e)}catch(h){return void(r&&r.error("Error parsing "+f+" on "+n.className+": "+h))}s=new t(n,i);o&&o.data(n,u,s)})})},i}),function(n,t){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("ev-emitter"),require("get-size")):(n.Outlayer={},n.Outlayer.Item=t(n.EvEmitter,n.getSize))}(window,function(n,t){"use strict";function l(n){for(var t in n)return!1;return t=null,!0}function u(n,t){n&&(this.element=n,this.layout=t,this.position={x:0,y:0},this._create())}function a(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}var f=document.documentElement.style,r="string"==typeof f.transition?"transition":"WebkitTransition",e="string"==typeof f.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],v={transform:e,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},i=u.prototype=Object.create(n.prototype),s,h,c;return i.constructor=u,i._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},i.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},i.getSize=function(){this.size=t(this.element)},i.css=function(n){var r=this.element.style,t,i;for(t in n)i=v[t]||t,r[i]=n[t]},i.getPosition=function(){var r=getComputedStyle(this.element),u=this.layout._getOption("originLeft"),f=this.layout._getOption("originTop"),e=r[u?"left":"right"],o=r[f?"top":"bottom"],n=parseFloat(e),t=parseFloat(o),i=this.layout.size;-1!=e.indexOf("%")&&(n=n/100*i.width);-1!=o.indexOf("%")&&(t=t/100*i.height);n=isNaN(n)?0:n;t=isNaN(t)?0:t;n-=u?i.paddingLeft:i.paddingRight;t-=f?i.paddingTop:i.paddingBottom;this.position.x=n;this.position.y=t},i.layoutPosition=function(){var r=this.layout.size,n={},t=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),u=t?"paddingLeft":"paddingRight",f=t?"left":"right",e=t?"right":"left",o=this.position.x+r[u];n[f]=this.getXValue(o);n[e]="";var s=i?"paddingTop":"paddingBottom",h=i?"top":"bottom",c=i?"bottom":"top",l=this.position.y+r[s];n[h]=this.getYValue(l);n[c]="";this.css(n);this.emitEvent("layout",[this])},i.getXValue=function(n){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?n/this.layout.size.width*100+"%":n+"px"},i.getYValue=function(n){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?n/this.layout.size.height*100+"%":n+"px"},i._transitionTo=function(n,t){this.getPosition();var r=this.position.x,u=this.position.y,f=n==this.position.x&&t==this.position.y;if(this.setPosition(n,t),f&&!this.isTransitioning)return void this.layoutPosition();var e=n-r,o=t-u,i={};i.transform=this.getTranslate(e,o);this.transition({to:i,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},i.getTranslate=function(n,t){var i=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop");return n=i?n:-n,t=r?t:-t,"translate3d("+n+"px, "+t+"px, 0)"},i.goTo=function(n,t){this.setPosition(n,t);this.layoutPosition()},i.moveTo=i._transitionTo,i.setPosition=function(n,t){this.position.x=parseFloat(n);this.position.y=parseFloat(t)},i._nonTransition=function(n){this.css(n.to);n.isCleaning&&this._removeStyles(n.to);for(var t in n.onTransitionEnd)n.onTransitionEnd[t].call(this)},i.transition=function(n){var i,t,r;if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(n);i=this._transn;for(t in n.onTransitionEnd)i.onEnd[t]=n.onTransitionEnd[t];for(t in n.to)i.ingProperties[t]=!0,n.isCleaning&&(i.clean[t]=!0);n.from&&(this.css(n.from),r=this.element.offsetHeight,r=null);this.enableTransition(n.to);this.css(n.to);this.isTransitioning=!0},s="opacity,"+a(e),i.enableTransition=function(){if(!this.isTransitioning){var n=this.layout.options.transitionDuration;n="number"==typeof n?n+"ms":n;this.css({transitionProperty:s,transitionDuration:n,transitionDelay:this.staggerDelay||0});this.element.addEventListener(o,this,!1)}},i.onwebkitTransitionEnd=function(n){this.ontransitionend(n)},i.onotransitionend=function(n){this.ontransitionend(n)},h={"-webkit-transform":"transform"},i.ontransitionend=function(n){var t,i,r;n.target===this.element&&(t=this._transn,i=h[n.propertyName]||n.propertyName,(delete t.ingProperties[i],l(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[n.propertyName]="",delete t.clean[i]),i in t.onEnd)&&(r=t.onEnd[i],r.call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},i.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(o,this,!1);this.isTransitioning=!1},i._removeStyles=function(n){var t={},i;for(i in n)t[i]="";this.css(t)},c={transitionProperty:"",transitionDuration:"",transitionDelay:""},i.removeTransitionStyles=function(){this.css(c)},i.stagger=function(n){n=isNaN(n)?0:n;this.staggerDelay=n+"ms"},i.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:""});this.emitEvent("remove",[this])},i.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},i.reveal=function(){delete this.isHidden;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("visibleStyle");t[i]=this.onRevealTransitionEnd;this.transition({from:n.hiddenStyle,to:n.visibleStyle,isCleaning:!0,onTransitionEnd:t})},i.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},i.getHideRevealTransitionEndProperty=function(n){var t=this.layout.options[n],i;if(t.opacity)return"opacity";for(i in t)return i},i.hide=function(){this.isHidden=!0;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");t[i]=this.onHideTransitionEnd;this.transition({from:n.visibleStyle,to:n.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},i.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},i.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},u}),function(n,t){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,r,u,f){return t(n,i,r,u,f)}):"object"==typeof module&&module.exports?module.exports=t(n,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=t(n,n.EvEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)}(window,function(n,t,i,r,u){"use strict";function e(n,t){var i=r.getQueryElement(n),u,f;if(!i)return void(c&&c.error("Bad element for "+this.constructor.namespace+": "+(i||n)));this.element=i;o&&(this.$element=o(this.element));this.options=r.extend({},this.constructor.defaults);this.option(t);u=++y;this.element.outlayerGUID=u;s[u]=this;this._create();f=this._getOption("initLayout");f&&this.layout()}function h(n){function t(){n.apply(this,arguments)}return t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t}function v(n){var r;if("number"==typeof n)return n;var t=n.match(/(^\d*\.?\d*)(\w*)/),i=t&&t[1],u=t&&t[2];return i.length?(i=parseFloat(i),r=a[u]||1,i*r):0}var c=n.console,o=n.jQuery,l=function(){},y=0,s={},f,a;return e.namespace="outlayer",e.Item=u,e.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},f=e.prototype,r.extend(f,t.prototype),f.option=function(n){r.extend(this.options,n)},f._getOption=function(n){var t=this.constructor.compatOptions[n];return t&&void 0!==this.options[t]?this.options[t]:this.options[n]},e.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);r.extend(this.element.style,this.options.containerStyle);var n=this._getOption("resize");n&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(n){for(var u,f,i=this._filterFindItemElements(n),e=this.constructor.Item,r=[],t=0;t<i.length;t++)u=i[t],f=new e(u,this),r.push(f);return r},f._filterFindItemElements=function(n){return r.filterFindElements(n,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(n){return n.element})},f.layout=function(){this._resetLayout();this._manageStamps();var n=this._getOption("layoutInstant"),t=void 0!==n?n:!this._isLayoutInited;this.layoutItems(this.items,t);this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(n,t){var u,r=this.options[n];r?("string"==typeof r?u=this.element.querySelector(r):r instanceof HTMLElement&&(u=r),this[n]=u?i(u)[t]:r):this[n]=0},f.layoutItems=function(n,t){n=this._getItemsForLayout(n);this._layoutItems(n,t);this._postLayout()},f._getItemsForLayout=function(n){return n.filter(function(n){return!n.isIgnored})},f._layoutItems=function(n,t){if(this._emitCompleteOnItems("layout",n),n&&n.length){var i=[];n.forEach(function(n){var r=this._getItemLayoutPosition(n);r.item=n;r.isInstant=t||n.isLayoutInstant;i.push(r)},this);this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(n){this.updateStagger();n.forEach(function(n,t){this._positionItem(n.item,n.x,n.y,n.isInstant,t)},this)},f.updateStagger=function(){var n=this.options.stagger;return null===n||void 0===n?void(this.stagger=0):(this.stagger=v(n),this.stagger)},f._positionItem=function(n,t,i,r,u){r?n.goTo(t,i):(n.stagger(u*this.stagger),n.moveTo(t,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer"),n;t&&(n=this._getContainerSize(),n&&(this._setContainerMeasure(n.width,!0),this._setContainerMeasure(n.height,!1)))},f._getContainerSize=l,f._setContainerMeasure=function(n,t){if(void 0!==n){var i=this.size;i.isBorderBox&&(n+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth);n=Math.max(n,0);this.element.style[t?"width":"height"]=n+"px"}},f._emitCompleteOnItems=function(n,t){function r(){e.dispatchEvent(n+"Complete",null,[t])}function f(){i++;i==u&&r()}var e=this,u=t.length,i;if(!t||!u)return void r();i=0;t.forEach(function(t){t.once(n,f)})},f.dispatchEvent=function(n,t,i){var u=t?[t].concat(i):i,r;(this.emitEvent(n,u),o)&&((this.$element=this.$element||o(this.element),t)?(r=o.Event(t),r.type=n,this.$element.trigger(r,i)):this.$element.trigger(n,i))},f.ignore=function(n){var t=this.getItem(n);t&&(t.isIgnored=!0)},f.unignore=function(n){var t=this.getItem(n);t&&delete t.isIgnored},f.stamp=function(n){n=this._find(n);n&&(this.stamps=this.stamps.concat(n),n.forEach(this.ignore,this))},f.unstamp=function(n){n=this._find(n);n&&n.forEach(function(n){r.removeFrom(this.stamps,n);this.unignore(n)},this)},f._find=function(n){if(n)return("string"==typeof n&&(n=this.element.querySelectorAll(n)),n=r.makeArray(n))},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),n=this.size;this._boundingRect={left:t.left+n.paddingLeft+n.borderLeftWidth,top:t.top+n.paddingTop+n.borderTopWidth,right:t.right-(n.paddingRight+n.borderRightWidth),bottom:t.bottom-(n.paddingBottom+n.borderBottomWidth)}},f._manageStamp=l,f._getElementOffset=function(n){var t=n.getBoundingClientRect(),r=this._boundingRect,u=i(n);return{left:t.left-r.left-u.marginLeft,top:t.top-r.top-u.marginTop,right:r.right-t.right-u.marginRight,bottom:r.bottom-t.bottom-u.marginBottom}},f.handleEvent=r.handleEvent,f.bindResize=function(){n.addEventListener("resize",this);this.isResizeBound=!0},f.unbindResize=function(){n.removeEventListener("resize",this);this.isResizeBound=!1},f.onresize=function(){this.resize()},r.debounceMethod(e,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var n=i(this.element),t=this.size&&n;return t&&n.innerWidth!==this.size.innerWidth},f.addItems=function(n){var t=this._itemize(n);return t.length&&(this.items=this.items.concat(t)),t},f.appended=function(n){var t=this.addItems(n);t.length&&(this.layoutItems(t,!0),this.reveal(t))},f.prepended=function(n){var t=this._itemize(n),i;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i))},f.reveal=function(n){if(this._emitCompleteOnItems("reveal",n),n&&n.length){var t=this.updateStagger();n.forEach(function(n,i){n.stagger(i*t);n.reveal()})}},f.hide=function(n){if(this._emitCompleteOnItems("hide",n),n&&n.length){var t=this.updateStagger();n.forEach(function(n,i){n.stagger(i*t);n.hide()})}},f.revealItemElements=function(n){var t=this.getItems(n);this.reveal(t)},f.hideItemElements=function(n){var t=this.getItems(n);this.hide(t)},f.getItem=function(n){for(var i,t=0;t<this.items.length;t++)if(i=this.items[t],i.element==n)return i},f.getItems=function(n){n=r.makeArray(n);var t=[];return n.forEach(function(n){var i=this.getItem(n);i&&t.push(i)},this),t},f.remove=function(n){var t=this.getItems(n);this._emitCompleteOnItems("remove",t);t&&t.length&&t.forEach(function(n){n.remove();r.removeFrom(this.items,n)},this)},f.destroy=function(){var n=this.element.style,t;n.height="";n.position="";n.width="";this.items.forEach(function(n){n.destroy()});this.unbindResize();t=this.element.outlayerGUID;delete s[t];delete this.element.outlayerGUID;o&&o.removeData(this.element,this.constructor.namespace)},e.data=function(n){n=r.getQueryElement(n);var t=n&&n.outlayerGUID;return t&&s[t]},e.create=function(n,t){var i=h(e);return i.defaults=r.extend({},e.defaults),r.extend(i.defaults,t),i.compatOptions=r.extend({},e.compatOptions),i.namespace=n,i.data=e.data,i.Item=h(u),r.htmlInit(i,n),o&&o.bridget&&o.bridget(n,i),i},a={ms:1,s:1e3},e.Item=u,e}),function(n,t){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("outlayer"),require("get-size")):n.Masonry=t(n.Outlayer,n.getSize)}(window,function(n,t){var r=n.create("masonry"),i;return r.compatOptions.fitWidth="isFitWidth",i=r.prototype,i._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();this.colYs=[];for(var n=0;n<this.cols;n++)this.colYs.push(0);this.maxY=0;this.horizontalColIndex=0},i.measureColumns=function(){var n,i;(this.getContainerWidth(),this.columnWidth)||(n=this.items[0],i=n&&n.element,this.columnWidth=i&&t(i).outerWidth||this.containerWidth);var r=this.columnWidth+=this.gutter,f=this.containerWidth+this.gutter,u=f/r,e=r-f%r,o=e&&1>e?"round":"floor";u=Math[o](u);this.cols=Math.max(u,1)},i.getContainerWidth=function(){var i=this._getOption("fitWidth"),r=i?this.element.parentNode:this.element,n=t(r);this.containerWidth=n&&n.innerWidth},i._getItemLayoutPosition=function(n){n.getSize();var u=n.size.outerWidth%this.columnWidth,f=u&&1>u?"round":"ceil",i=Math[f](n.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var e=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",t=this[e](i,n),o={x:this.columnWidth*t.col,y:t.y},s=t.y+n.size.outerHeight,h=i+t.col,r=t.col;h>r;r++)this.colYs[r]=s;return o},i._getTopColPosition=function(n){var t=this._getTopColGroup(n),i=Math.min.apply(Math,t);return{col:t.indexOf(i),y:i}},i._getTopColGroup=function(n){if(2>n)return this.colYs;for(var i=[],r=this.cols+1-n,t=0;r>t;t++)i[t]=this._getColGroupY(t,n);return i},i._getColGroupY=function(n,t){if(2>t)return this.colYs[n];var i=this.colYs.slice(n,n+t);return Math.max.apply(Math,i)},i._getHorizontalColPosition=function(n,t){var i=this.horizontalColIndex%this.cols,u=n>1&&i+n>this.cols,r;return i=u?0:i,r=t.size.outerWidth&&t.size.outerHeight,this.horizontalColIndex=r?i+n:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,n)}},i._manageStamp=function(n){var e=t(n),r=this._getElementOffset(n),h=this._getOption("originLeft"),o=h?r.left:r.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i;f=Math.max(0,f);i=Math.floor(s/this.columnWidth);i-=s%this.columnWidth?0:1;i=Math.min(this.cols-1,i);for(var c=this._getOption("originTop"),l=(c?r.top:r.bottom)+e.outerHeight,u=f;i>=u;u++)this.colYs[u]=Math.max(l,this.colYs[u])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this._getOption("fitWidth")&&(n.width=this._getContainerFitWidth()),n},i._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t&&0===this.colYs[t];)n++;return(this.cols-n)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!=this.containerWidth},r});!function(){function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i||n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}return n}()({1:[function(n){(function(t){"use strict";n(2);n(3);n(9);n(8);n(10);n(5);n(6);n(4);n(7);n(275);n(276);t._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning.");t._babelPolyfill=!0}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{10:10,2:2,275:275,276:276,3:3,4:4,5:5,6:6,7:7,8:8,9:9}],2:[function(n,t){n(250);n(187);n(189);n(188);n(191);n(193);n(198);n(192);n(190);n(200);n(199);n(195);n(196);n(194);n(186);n(197);n(201);n(202);n(153);n(155);n(154);n(204);n(203);n(174);n(184);n(185);n(175);n(176);n(177);n(178);n(179);n(180);n(181);n(182);n(183);n(157);n(158);n(159);n(160);n(161);n(162);n(163);n(164);n(165);n(166);n(167);n(168);n(169);n(170);n(171);n(172);n(173);n(237);n(242);n(249);n(240);n(232);n(233);n(238);n(243);n(245);n(228);n(229);n(230);n(231);n(234);n(235);n(236);n(239);n(241);n(244);n(246);n(247);n(248);n(148);n(150);n(149);n(152);n(151);n(136);n(134);n(141);n(138);n(144);n(146);n(133);n(140);n(130);n(145);n(128);n(143);n(142);n(135);n(139);n(127);n(129);n(132);n(131);n(147);n(137);n(220);n(226);n(221);n(222);n(223);n(224);n(225);n(205);n(156);n(227);n(262);n(263);n(251);n(252);n(257);n(260);n(261);n(255);n(258);n(256);n(259);n(253);n(254);n(206);n(207);n(208);n(209);n(210);n(213);n(211);n(212);n(214);n(215);n(216);n(217);n(219);n(218);t.exports=n(29)},{127:127,128:128,129:129,130:130,131:131,132:132,133:133,134:134,135:135,136:136,137:137,138:138,139:139,140:140,141:141,142:142,143:143,144:144,145:145,146:146,147:147,148:148,149:149,150:150,151:151,152:152,153:153,154:154,155:155,156:156,157:157,158:158,159:159,160:160,161:161,162:162,163:163,164:164,165:165,166:166,167:167,168:168,169:169,170:170,171:171,172:172,173:173,174:174,175:175,176:176,177:177,178:178,179:179,180:180,181:181,182:182,183:183,184:184,185:185,186:186,187:187,188:188,189:189,190:190,191:191,192:192,193:193,194:194,195:195,196:196,197:197,198:198,199:199,200:200,201:201,202:202,203:203,204:204,205:205,206:206,207:207,208:208,209:209,210:210,211:211,212:212,213:213,214:214,215:215,216:216,217:217,218:218,219:219,220:220,221:221,222:222,223:223,224:224,225:225,226:226,227:227,228:228,229:229,230:230,231:231,232:232,233:233,234:234,235:235,236:236,237:237,238:238,239:239,240:240,241:241,242:242,243:243,244:244,245:245,246:246,247:247,248:248,249:249,250:250,251:251,252:252,253:253,254:254,255:255,256:256,257:257,258:258,259:259,260:260,261:261,262:262,263:263,29:29}],3:[function(n,t){n(264);t.exports=n(29).Array.includes},{264:264,29:29}],4:[function(n,t){n(265);t.exports=n(29).Object.entries},{265:265,29:29}],5:[function(n,t){n(266);t.exports=n(29).Object.getOwnPropertyDescriptors},{266:266,29:29}],6:[function(n,t){n(267);t.exports=n(29).Object.values},{267:267,29:29}],7:[function(n,t){"use strict";n(205);n(268);t.exports=n(29).Promise.finally},{205:205,268:268,29:29}],8:[function(n,t){n(269);t.exports=n(29).String.padEnd},{269:269,29:29}],9:[function(n,t){n(270);t.exports=n(29).String.padStart},{270:270,29:29}],10:[function(n,t){n(271);t.exports=n(124).f("asyncIterator")},{124:124,271:271}],11:[function(n,t){t.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},{}],12:[function(n,t){var i=n(25);t.exports=function(n,t){if("number"!=typeof n&&"Number"!=i(n))throw TypeError(t);return+n}},{25:25}],13:[function(n,t){var i=n(125)("unscopables"),r=Array.prototype;void 0==r[i]&&n(47)(r,i,{});t.exports=function(n){r[i][n]=!0}},{125:125,47:47}],14:[function(n,t){t.exports=function(n,t,i,r){if(!(n instanceof t)||void 0!==r&&r in n)throw TypeError(i+": incorrect invocation!");return n}},{}],15:[function(n,t){var i=n(56);t.exports=function(n){if(!i(n))throw TypeError(n+" is not an object!");return n}},{56:56}],16:[function(n,t){"use strict";var r=n(115),i=n(110),u=n(114);t.exports=[].copyWithin||function(n,t){var o=r(this),s=u(o.length),f=i(n,s),e=i(t,s),l=arguments.length>2?arguments[2]:void 0,h=Math.min((void 0===l?s:i(l,s))-e,s-f),c=1;for(e<f&&f<e+h&&(c=-1,e+=h-1,f+=h-1);h-->0;)e in o?o[f]=o[e]:delete o[f],f+=c,e+=c;return o}},{110:110,114:114,115:115}],17:[function(n,t){"use strict";var r=n(115),i=n(110),u=n(114);t.exports=function(n){for(var t=r(this),f=u(t.length),e=arguments.length,o=i(e>1?arguments[1]:void 0,f),s=e>2?arguments[2]:void 0,h=void 0===s?f:i(s,f);h>o;)t[o++]=n;return t}},{110:110,114:114,115:115}],18:[function(n,t){var i=n(113),r=n(114),u=n(110);t.exports=function(n){return function(t,f,e){var c,s=i(t),h=r(s.length),o=u(e,h);if(n&&f!=f){for(;h>o;)if((c=s[o++])!=c)return!0}else for(;h>o;o++)if((n||o in s)&&s[o]===f)return n||o||0;return!n&&-1}}},{110:110,113:113,114:114}],19:[function(n,t){var i=n(31),r=n(52),u=n(115),f=n(114),e=n(22);t.exports=function(n,t){var s=1==n,l=2==n,a=3==n,o=4==n,h=6==n,v=5==n||h,c=t||e;return function(t,e,y){for(var w,b,g=u(t),k=r(g),tt=i(e,y,3),nt=f(k.length),p=0,d=s?c(t,nt):l?c(t,0):void 0;nt>p;p++)if((v||p in k)&&(w=k[p],b=tt(w,p,g),n))if(s)d[p]=b;else if(b)switch(n){case 3:return!0;case 5:return w;case 6:return p;case 2:d.push(w)}else if(o)return!1;return h?-1:a||o?o:d}}},{114:114,115:115,22:22,31:31,52:52}],20:[function(n,t){var i=n(11),r=n(115),u=n(52),f=n(114);t.exports=function(n,t,e,o,s){i(t);var l=r(n),c=u(l),a=f(l.length),h=s?a-1:0,v=s?-1:1;if(e<2)for(;;){if(h in c){o=c[h];h+=v;break}if(h+=v,s?h<0:a<=h)throw TypeError("Reduce of empty array with no initial value");}for(;s?h>=0:a>h;h+=v)h in c&&(o=t(o,c[h],h,l));return o}},{11:11,114:114,115:115,52:52}],21:[function(n,t){var r=n(56),i=n(54),u=n(125)("species");t.exports=function(n){var t;return i(n)&&(t=n.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[u])&&(t=void 0)),void 0===t?Array:t}},{125:125,54:54,56:56}],22:[function(n,t){var i=n(21);t.exports=function(n,t){return new(i(n))(t)}},{21:21}],23:[function(n,t){"use strict";var u=n(11),f=n(56),e=n(51),r=[].slice,i={},o=function(n,t,r){if(!(t in i)){for(var f=[],u=0;u<t;u++)f[u]="a["+u+"]";i[t]=Function("F,a","return new F("+f.join(",")+")")}return i[t](n,r)};t.exports=Function.bind||function(n){var t=u(this),s=r.call(arguments,1),i=function(){var u=s.concat(r.call(arguments));return this instanceof i?o(t,u.length,u):e(t,u,n)};return f(t.prototype)&&(i.prototype=t.prototype),i}},{11:11,51:51,56:56}],24:[function(n,t){var i=n(25),r=n(125)("toStringTag"),u="Arguments"==i(function(){return arguments}()),f=function(n,t){try{return n[t]}catch(n){}};t.exports=function(n){var t,e,o;return void 0===n?"Undefined":null===n?"Null":"string"==typeof(e=f(t=Object(n),r))?e:u?i(t):"Object"==(o=i(t))&&"function"==typeof t.callee?"Arguments":o}},{125:125,25:25}],25:[function(n,t){var i={}.toString;t.exports=function(n){return i.call(n).slice(8,-1)}},{}],26:[function(n,t){"use strict";var s=n(74).f,h=n(73),c=n(92),l=n(31),a=n(14),v=n(44),y=n(60),u=n(62),p=n(96),e=n(35),o=n(69).fastKey,i=n(122),r=e?"_s":"size",f=function(n,t){var i,r=o(t);if("F"!==r)return n._i[r];for(i=n._f;i;i=i.n)if(i.k==t)return i};t.exports={getConstructor:function(n,t,u,o){var y=n(function(n,i){a(n,y,t,"_i");n._t=t;n._i=h(null);n._f=void 0;n._l=void 0;n[r]=0;void 0!=i&&v(i,u,n[o],n)});return c(y.prototype,{clear:function(){for(var u=i(this,t),f=u._i,n=u._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete f[n.i];u._f=u._l=void 0;u[r]=0},"delete":function(n){var e=i(this,t),u=f(e,n),o,s;return u&&(o=u.n,s=u.p,delete e._i[u.i],u.r=!0,s&&(s.n=o),o&&(o.p=s),e._f==u&&(e._f=o),e._l==u&&(e._l=s),e[r]--),!!u},forEach:function(n){i(this,t);for(var r,u=l(n,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(u(r.v,r.k,this);r&&r.r;)r=r.p},has:function(n){return!!f(i(this,t),n)}}),e&&s(y.prototype,"size",{get:function(){return i(this,t)[r]}}),y},def:function(n,t,i){var e,s,u=f(n,t);return u?u.v=i:(n._l=u={i:s=o(t,!0),k:t,v:i,p:e=n._l,n:void 0,r:!1},n._f||(n._f=u),e&&(e.n=u),n[r]++,"F"!==s&&(n._i[s]=u)),n},getEntry:f,setStrong:function(n,t,r){y(n,t,function(n,r){this._t=i(n,t);this._k=r;this._l=void 0},function(){for(var t=this,i=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==i?u(0,n.k):"values"==i?u(0,n.v):u(0,[n.k,n.v]):(t._t=void 0,u(1))},r?"entries":"values",!r,!0);p(t)}}},{122:122,14:14,31:31,35:35,44:44,60:60,62:62,69:69,73:73,74:74,92:92,96:96}],27:[function(n,t){"use strict";var c=n(92),r=n(69).getWeak,l=n(15),f=n(56),a=n(14),v=n(44),e=n(19),o=n(46),s=n(122),y=e(5),p=e(6),w=0,i=function(n){return n._l||(n._l=new h)},h=function(){this.a=[]},u=function(n,t){return y(n.a,function(n){return n[0]===t})};h.prototype={get:function(n){var t=u(this,n);if(t)return t[1]},has:function(n){return!!u(this,n)},set:function(n,t){var i=u(this,n);i?i[1]=t:this.a.push([n,t])},"delete":function(n){var t=p(this.a,function(t){return t[0]===n});return~t&&this.a.splice(t,1),!!~t}};t.exports={getConstructor:function(n,t,u,e){var h=n(function(n,i){a(n,h,t,"_i");n._t=t;n._i=w++;n._l=void 0;void 0!=i&&v(i,u,n[e],n)});return c(h.prototype,{"delete":function(n){if(!f(n))return!1;var u=r(n);return!0===u?i(s(this,t)).delete(n):u&&o(u,this._i)&&delete u[this._i]},has:function(n){if(!f(n))return!1;var u=r(n);return!0===u?i(s(this,t)).has(n):u&&o(u,this._i)}}),h},def:function(n,t,u){var f=r(l(t),!0);return!0===f?i(n).set(t,u):f[n._i]=u,n},ufstore:i}},{122:122,14:14,15:15,19:19,44:44,46:46,56:56,69:69,92:92}],28:[function(n,t){"use strict";var f=n(45),i=n(39),e=n(93),o=n(92),s=n(69),h=n(44),c=n(14),r=n(56),u=n(41),l=n(61),a=n(97),v=n(50);t.exports=function(n,t,y,p,w,b){var tt=f[n],k=tt,g=w?"set":"add",d=k&&k.prototype,rt={},nt=function(n){var t=d[n];e(d,n,"delete"==n?function(n){return!(b&&!r(n))&&t.call(this,0===n?0:n)}:"has"==n?function(n){return!(b&&!r(n))&&t.call(this,0===n?0:n)}:"get"==n?function(n){if(!b||r(n))return t.call(this,0===n?0:n)}:"add"==n?function(n){return t.call(this,0===n?0:n),this}:function(n,i){return t.call(this,0===n?0:n,i),this})};if("function"==typeof k&&(b||d.forEach&&!u(function(){(new k).entries().next()}))){var it=new k,ft=it[g](b?{}:-0,1)!=it,et=u(function(){it.has(1)}),ot=l(function(n){new k(n)}),ut=!b&&u(function(){for(var t=new k,n=5;n--;)t[g](n,n);return!t.has(-0)});ot||(k=t(function(t,i){c(t,k,n);var r=v(new tt,t,k);return void 0!=i&&h(i,w,r[g],r),r}),k.prototype=d,d.constructor=k);(et||ut)&&(nt("delete"),nt("has"),w&&nt("get"));(ut||ft)&&nt(g);b&&d.clear&&delete d.clear}else k=p.getConstructor(t,n,w,g),o(k.prototype,y),s.NEED=!0;return a(k,n),rt[n]=k,i(i.G+i.W+i.F*(k!=tt),rt),b||p.setStrong(k,n,w),k}},{14:14,39:39,41:41,44:44,45:45,50:50,56:56,61:61,69:69,92:92,93:93,97:97}],29:[function(n,t){var i=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},{}],30:[function(n,t){"use strict";var i=n(74),r=n(91);t.exports=function(n,t,u){t in n?i.f(n,t,r(0,u)):n[t]=u}},{74:74,91:91}],31:[function(n,t){var i=n(11);t.exports=function(n,t,r){if(i(n),void 0===t)return n;switch(r){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}}},{11:11}],32:[function(n,t){"use strict";var u=n(41),f=Date.prototype.getTime,r=Date.prototype.toISOString,i=function(n){return n>9?n:"0"+n};t.exports=u(function(){return"0385-07-25T07:06:39.999Z"!=r.call(new Date(-50000000000001))})||!u(function(){r.call(new Date(NaN))})?function(){if(!isFinite(f.call(this)))throw RangeError("Invalid time value");var n=this,t=n.getUTCFullYear(),r=n.getUTCMilliseconds(),u=t<0?"-":t>9999?"+":"";return u+("00000"+Math.abs(t)).slice(u?-6:-4)+"-"+i(n.getUTCMonth()+1)+"-"+i(n.getUTCDate())+"T"+i(n.getUTCHours())+":"+i(n.getUTCMinutes())+":"+i(n.getUTCSeconds())+"."+(r>99?r:"0"+i(r))+"Z"}:r},{41:41}],33:[function(n,t){"use strict";var i=n(15),r=n(116);t.exports=function(n){if("string"!==n&&"number"!==n&&"default"!==n)throw TypeError("Incorrect hint");return r(i(this),"number"!=n)}},{116:116,15:15}],34:[function(n,t){t.exports=function(n){if(void 0==n)throw TypeError("Can't call method on  "+n);return n}},{}],35:[function(n,t){t.exports=!n(41)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{41:41}],36:[function(n,t){var r=n(56),i=n(45).document,u=r(i)&&r(i.createElement);t.exports=function(n){return u?i.createElement(n):{}}},{45:45,56:56}],37:[function(n,t){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],38:[function(n,t){var i=n(82),r=n(79),u=n(83);t.exports=function(n){var t=i(n),f=r.f;if(f)for(var e,o=f(n),h=u.f,s=0;o.length>s;)h.call(n,e=o[s++])&&t.push(e);return t}},{79:79,82:82,83:83}],39:[function(n,t){var r=n(45),u=n(29),e=n(47),o=n(93),f=n(31),i=function(n,t,s){var c,v,h,p,k=n&i.F,y=n&i.G,d=n&i.S,w=n&i.P,g=n&i.B,l=y?r:d?r[t]||(r[t]={}):(r[t]||{}).prototype,a=y?u:u[t]||(u[t]={}),b=a.prototype||(a.prototype={});y&&(s=t);for(c in s)v=!k&&l&&void 0!==l[c],h=(v?l:s)[c],p=g&&v?f(h,r):w&&"function"==typeof h?f(Function.call,h):h,l&&o(l,c,h,n&i.U),a[c]!=h&&e(a,c,p),w&&b[c]!=h&&(b[c]=h)};r.core=u;i.F=1;i.G=2;i.S=4;i.P=8;i.B=16;i.W=32;i.U=64;i.R=128;t.exports=i},{29:29,31:31,45:45,47:47,93:93}],40:[function(n,t){var i=n(125)("match");t.exports=function(n){var t=/./;try{"/./"[n](t)}catch(r){try{return t[i]=!1,!"/./"[n](t)}catch(n){}}return!0}},{125:125}],41:[function(n,t){t.exports=function(n){try{return!!n()}catch(n){return!0}}},{}],42:[function(n,t){"use strict";var i=n(47),r=n(93),u=n(41),f=n(34),e=n(125);t.exports=function(n,t,o){var s=e(n),h=o(f,s,""[n]),l=h[0],c=h[1];u(function(){var t={};return t[s]=function(){return 7},7!=""[n](t)})&&(r(String.prototype,n,l),i(RegExp.prototype,s,2==t?function(n,t){return c.call(n,this,t)}:function(n){return c.call(n,this)}))}},{125:125,34:34,41:41,47:47,93:93}],43:[function(n,t){"use strict";var i=n(15);t.exports=function(){var t=i(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},{15:15}],44:[function(n,t,i){var f=n(31),e=n(58),o=n(53),s=n(15),h=n(114),c=n(126),r={},u={},i=t.exports=function(n,t,i,l,a){var d,y,w,v,b=a?function(){return n}:c(n),k=f(i,l,t?2:1),p=0;if("function"!=typeof b)throw TypeError(n+" is not iterable!");if(o(b)){for(d=h(n.length);d>p;p++)if((v=t?k(s(y=n[p])[0],y[1]):k(n[p]))===r||v===u)return v}else for(w=b.call(n);!(y=w.next()).done;)if((v=e(w,k,y.value,t))===r||v===u)return v};i.BREAK=r;i.RETURN=u},{114:114,126:126,15:15,31:31,53:53,58:58}],45:[function(n,t){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},{}],46:[function(n,t){var i={}.hasOwnProperty;t.exports=function(n,t){return i.call(n,t)}},{}],47:[function(n,t){var i=n(74),r=n(91);t.exports=n(35)?function(n,t,u){return i.f(n,t,r(1,u))}:function(n,t,i){return n[t]=i,n}},{35:35,74:74,91:91}],48:[function(n,t){var i=n(45).document;t.exports=i&&i.documentElement},{45:45}],49:[function(n,t){t.exports=!n(35)&&!n(41)(function(){return 7!=Object.defineProperty(n(36)("div"),"a",{get:function(){return 7}}).a})},{35:35,36:36,41:41}],50:[function(n,t){var r=n(56),i=n(95).set;t.exports=function(n,t,u){var f,e=t.constructor;return e!==u&&"function"==typeof e&&(f=e.prototype)!==u.prototype&&r(f)&&i&&i(n,f),n}},{56:56,95:95}],51:[function(n,t){t.exports=function(n,t,i){var r=void 0===i;switch(t.length){case 0:return r?n():n.call(i);case 1:return r?n(t[0]):n.call(i,t[0]);case 2:return r?n(t[0],t[1]):n.call(i,t[0],t[1]);case 3:return r?n(t[0],t[1],t[2]):n.call(i,t[0],t[1],t[2]);case 4:return r?n(t[0],t[1],t[2],t[3]):n.call(i,t[0],t[1],t[2],t[3])}return n.apply(i,t)}},{}],52:[function(n,t){var i=n(25);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==i(n)?n.split(""):Object(n)}},{25:25}],53:[function(n,t){var i=n(63),r=n(125)("iterator"),u=Array.prototype;t.exports=function(n){return void 0!==n&&(i.Array===n||u[r]===n)}},{125:125,63:63}],54:[function(n,t){var i=n(25);t.exports=Array.isArray||function(n){return"Array"==i(n)}},{25:25}],55:[function(n,t){var i=n(56),r=Math.floor;t.exports=function(n){return!i(n)&&isFinite(n)&&r(n)===n}},{56:56}],56:[function(n,t){t.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},{}],57:[function(n,t){var i=n(56),r=n(25),u=n(125)("match");t.exports=function(n){var t;return i(n)&&(void 0!==(t=n[u])?!!t:"RegExp"==r(n))}},{125:125,25:25,56:56}],58:[function(n,t){var i=n(15);t.exports=function(n,t,r,u){try{return u?t(i(r)[0],r[1]):t(r)}catch(t){var f=n.return;throw void 0!==f&&i(f.call(n)),t;}}},{15:15}],59:[function(n,t){"use strict";var r=n(73),u=n(91),f=n(97),i={};n(47)(i,n(125)("iterator"),function(){return this});t.exports=function(n,t,e){n.prototype=r(i,{next:u(1,e)});f(n,t+" Iterator")}},{125:125,47:47,73:73,91:91,97:97}],60:[function(n,t){"use strict";var f=n(64),r=n(39),h=n(93),e=n(47),o=n(63),c=n(59),l=n(97),a=n(80),i=n(125)("iterator"),u=!([].keys&&"next"in[].keys()),s=function(){return this};t.exports=function(n,t,v,y,p,w,b){c(v,t,y);var nt,it,tt,rt=function(n){if(!u&&n in k)return k[n];switch(n){case"keys":return function(){return new v(this,n)};case"values":return function(){return new v(this,n)}}return function(){return new v(this,n)}},et=t+" Iterator",ut="values"==p,ft=!1,k=n.prototype,d=k[i]||k["@@iterator"]||p&&k[p],g=d||rt(p),st=p?ut?rt("entries"):g:void 0,ot="Array"==t?k.entries||d:d;if(ot&&(tt=a(ot.call(new n)))!==Object.prototype&&tt.next&&(l(tt,et,!0),f||"function"==typeof tt[i]||e(tt,i,s)),ut&&d&&"values"!==d.name&&(ft=!0,g=function(){return d.call(this)}),f&&!b||!u&&!ft&&k[i]||e(k,i,g),o[t]=g,o[et]=s,p)if(nt={values:ut?g:rt("values"),keys:w?g:rt("keys"),entries:st},b)for(it in nt)it in k||h(k,it,nt[it]);else r(r.P+r.F*(u||ft),t,nt);return nt}},{125:125,39:39,47:47,59:59,63:63,64:64,80:80,93:93,97:97}],61:[function(n,t){var i=n(125)("iterator"),u=!1,r;try{r=[7][i]();r.return=function(){u=!0};Array.from(r,function(){throw 2;})}catch(n){}t.exports=function(n,t){var f,r,e;if(!t&&!u)return!1;f=!1;try{r=[7];e=r[i]();e.next=function(){return{done:f=!0}};r[i]=function(){return e};n(r)}catch(n){}return f}},{125:125}],62:[function(n,t){t.exports=function(n,t){return{value:t,done:!!n}}},{}],63:[function(n,t){t.exports={}},{}],64:[function(n,t){t.exports=!1},{}],65:[function(n,t){var i=Math.expm1;t.exports=!i||i(10)>22025.465794806718||i(10)<22025.465794806718||-2e-17!=i(-2e-17)?function(n){return 0==(n=+n)?n:n>-1e-6&&n<1e-6?n+n*n/2:Math.exp(n)-1}:i},{}],66:[function(n,t){var e=n(68),i=Math.pow,u=i(2,-52),r=i(2,-23),o=i(2,127)*(2-r),f=i(2,-126),s=function(n){return n+1/u-1/u};t.exports=Math.fround||function(n){var h,t,i=Math.abs(n),c=e(n);return i<f?c*s(i/f/r)*f*r:(h=(1+r/u)*i,t=h-(h-i),t>o||t!=t?c*(1/0):c*t)}},{68:68}],67:[function(n,t){t.exports=Math.log1p||function(n){return(n=+n)>-1e-8&&n<1e-8?n-n*n/2:Math.log(1+n)}},{}],68:[function(n,t){t.exports=Math.sign||function(n){return 0==(n=+n)||n!=n?n:n<0?-1:1}},{}],69:[function(n,t){var i=n(120)("meta"),e=n(56),u=n(46),o=n(74).f,s=0,r=Object.isExtensible||function(){return!0},h=!n(41)(function(){return r(Object.preventExtensions({}))}),f=function(n){o(n,i,{value:{i:"O"+ ++s,w:{}}})},c=function(n,t){if(!e(n))return"symbol"==typeof n?n:("string"==typeof n?"S":"P")+n;if(!u(n,i)){if(!r(n))return"F";if(!t)return"E";f(n)}return n[i].i},l=function(n,t){if(!u(n,i)){if(!r(n))return!0;if(!t)return!1;f(n)}return n[i].w},a=function(n){return h&&v.NEED&&r(n)&&!u(n,i)&&f(n),n},v=t.exports={KEY:i,NEED:!1,fastKey:c,getWeak:l,onFreeze:a}},{120:120,41:41,46:46,56:56,74:74}],70:[function(n,t){var i=n(45),o=n(109).set,f=i.MutationObserver||i.WebKitMutationObserver,r=i.process,u=i.Promise,e="process"==n(25)(r);t.exports=function(){var n,s,t,h=function(){var i,u;for(e&&(i=r.domain)&&i.exit();n;){u=n.fn;n=n.next;try{u()}catch(i){throw n?t():s=void 0,i;}}s=void 0;i&&i.enter()},a,c,l;return e?t=function(){r.nextTick(h)}:!f||i.navigator&&i.navigator.standalone?u&&u.resolve?(a=u.resolve(void 0),t=function(){a.then(h)}):t=function(){o.call(i,h)}:(c=!0,l=document.createTextNode(""),new f(h).observe(l,{characterData:!0}),t=function(){l.data=c=!c}),function(i){var r={fn:i,next:void 0};s&&(s.next=r);n||(n=r,t());s=r}}},{109:109,25:25,45:45}],71:[function(n,t){"use strict";function r(n){var t,r;this.promise=new n(function(n,i){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=n;r=i});this.resolve=i(t);this.reject=i(r)}var i=n(11);t.exports.f=function(n){return new r(n)}},{11:11}],72:[function(n,t){"use strict";var r=n(82),u=n(79),f=n(83),e=n(115),o=n(52),i=Object.assign;t.exports=!i||n(41)(function(){var n={},t={},r=Symbol(),u="abcdefghijklmnopqrst";return n[r]=7,u.split("").forEach(function(n){t[n]=n}),7!=i({},n)[r]||Object.keys(i({},t)).join("")!=u})?function(n){for(var s=e(n),v=arguments.length,h=1,c=u.f,y=f.f;v>h;)for(var i,t=o(arguments[h++]),l=c?r(t).concat(c(t)):r(t),p=l.length,a=0;p>a;)y.call(t,i=l[a++])&&(s[i]=t[i]);return s}:i},{115:115,41:41,52:52,79:79,82:82,83:83}],73:[function(n,t){var f=n(15),e=n(75),u=n(37),o=n(98)("IE_PROTO"),r=function(){},i=function(){var t,r=n(36)("iframe"),f=u.length;for(r.style.display="none",n(48).appendChild(r),r.src="javascript:",t=r.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),i=t.F;f--;)delete i.prototype[u[f]];return i()};t.exports=Object.create||function(n,t){var u;return null!==n?(r.prototype=f(n),u=new r,r.prototype=null,u[o]=n):u=i(),void 0===t?u:e(u,t)}},{15:15,36:36,37:37,48:48,75:75,98:98}],74:[function(n,t,i){var r=n(15),u=n(49),f=n(116),e=Object.defineProperty;i.f=n(35)?Object.defineProperty:function(n,t,i){if(r(n),t=f(t,!0),r(i),u)try{return e(n,t,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(n[t]=i.value),n}},{116:116,15:15,35:35,49:49}],75:[function(n,t){var i=n(74),r=n(15),u=n(82);t.exports=n(35)?Object.defineProperties:function(n,t){r(n);for(var f,e=u(t),s=e.length,o=0;s>o;)i.f(n,f=e[o++],t[f]);return n}},{15:15,35:35,74:74,82:82}],76:[function(n,t,i){var u=n(83),f=n(91),e=n(113),o=n(116),s=n(46),h=n(49),r=Object.getOwnPropertyDescriptor;i.f=n(35)?r:function(n,t){if(n=e(n),t=o(t,!0),h)try{return r(n,t)}catch(n){}if(s(n,t))return f(!u.f.call(n,t),n[t])}},{113:113,116:116,35:35,46:46,49:49,83:83,91:91}],77:[function(n,t){var u=n(113),i=n(78).f,f={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],e=function(n){try{return i(n)}catch(n){return r.slice()}};t.exports.f=function(n){return r&&"[object Window]"==f.call(n)?e(n):i(u(n))}},{113:113,78:78}],78:[function(n,t,i){var r=n(81),u=n(37).concat("length","prototype");i.f=Object.getOwnPropertyNames||function(n){return r(n,u)}},{37:37,81:81}],79:[function(n,t,i){i.f=Object.getOwnPropertySymbols},{}],80:[function(n,t){var r=n(46),u=n(115),i=n(98)("IE_PROTO"),f=Object.prototype;t.exports=Object.getPrototypeOf||function(n){return n=u(n),r(n,i)?n[i]:"function"==typeof n.constructor&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?f:null}},{115:115,46:46,98:98}],81:[function(n,t){var i=n(46),r=n(113),u=n(18)(!1),f=n(98)("IE_PROTO");t.exports=function(n,t){var e,s=r(n),h=0,o=[];for(e in s)e!=f&&i(s,e)&&o.push(e);for(;t.length>h;)i(s,e=t[h++])&&(~u(o,e)||o.push(e));return o}},{113:113,18:18,46:46,98:98}],82:[function(n,t){var i=n(81),r=n(37);t.exports=Object.keys||function(n){return i(n,r)}},{37:37,81:81}],83:[function(n,t,i){i.f={}.propertyIsEnumerable},{}],84:[function(n,t){var i=n(39),r=n(29),u=n(41);t.exports=function(n,t){var f=(r.Object||{})[n]||Object[n],e={};e[n]=t(f);i(i.S+i.F*u(function(){f(1)}),"Object",e)}},{29:29,39:39,41:41}],85:[function(n,t){var i=n(82),r=n(113),u=n(83).f;t.exports=function(n){return function(t){for(var f,e=r(t),o=i(e),c=o.length,s=0,h=[];c>s;)u.call(e,f=o[s++])&&h.push(n?[f,e[f]]:e[f]);return h}}},{113:113,82:82,83:83}],86:[function(n,t){var r=n(78),u=n(79),f=n(15),i=n(45).Reflect;t.exports=i&&i.ownKeys||function(n){var t=r.f(f(n)),i=u.f;return i?t.concat(i(n)):t}},{15:15,45:45,78:78,79:79}],87:[function(n,t){var i=n(45).parseFloat,r=n(107).trim;t.exports=1/i(n(108)+"-0")!=-1/0?function(n){var t=r(String(n),3),u=i(t);return 0===u&&"-"==t.charAt(0)?-0:u}:i},{107:107,108:108,45:45}],88:[function(n,t){var i=n(45).parseInt,u=n(107).trim,r=n(108),f=/^[-+]?0[xX]/;t.exports=8!==i(r+"08")||22!==i(r+"0x16")?function(n,t){var r=u(String(n),3);return i(r,t>>>0||(f.test(r)?16:10))}:i},{107:107,108:108,45:45}],89:[function(n,t){t.exports=function(n){try{return{e:!1,v:n()}}catch(n){return{e:!0,v:n}}}},{}],90:[function(n,t){var i=n(15),r=n(56),u=n(71);t.exports=function(n,t){if(i(n),r(t)&&t.constructor===n)return t;var f=u.f(n);return f.resolve(t),f.promise}},{15:15,56:56,71:71}],91:[function(n,t){t.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},{}],92:[function(n,t){var i=n(93);t.exports=function(n,t,r){for(var u in t)i(n,u,t[u],r);return n}},{93:93}],93:[function(n,t){var e=n(45),i=n(47),f=n(46),r=n(120)("src"),u=Function.toString,o=(""+u).split("toString");n(29).inspectSource=function(n){return u.call(n)};(t.exports=function(n,t,u,s){var h="function"==typeof u;h&&(f(u,"name")||i(u,"name",t));n[t]!==u&&(h&&(f(u,r)||i(u,r,n[t]?""+n[t]:o.join(String(t)))),n===e?n[t]=u:s?n[t]?n[t]=u:i(n,t,u):(delete n[t],i(n,t,u)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[r]||u.call(this)})},{120:120,29:29,45:45,46:46,47:47}],94:[function(n,t){t.exports=Object.is||function(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}},{}],95:[function(n,t){var r=n(56),u=n(15),i=function(n,t){if(u(n),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!");};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r,u){try{u=n(31)(Function.call,n(76).f(Object.prototype,"__proto__").set,2);u(t,[]);r=!(t instanceof Array)}catch(n){r=!0}return function(n,t){return i(n,t),r?n.__proto__=t:u(n,t),n}}({},!1):void 0),check:i}},{15:15,31:31,56:56,76:76}],96:[function(n,t){"use strict";var r=n(45),u=n(74),f=n(35),i=n(125)("species");t.exports=function(n){var t=r[n];f&&t&&!t[i]&&u.f(t,i,{configurable:!0,get:function(){return this}})}},{125:125,35:35,45:45,74:74}],97:[function(n,t){var r=n(74).f,u=n(46),i=n(125)("toStringTag");t.exports=function(n,t,f){n&&!u(n=f?n:n.prototype,i)&&r(n,i,{configurable:!0,value:t})}},{125:125,46:46,74:74}],98:[function(n,t){var i=n(99)("keys"),r=n(120);t.exports=function(n){return i[n]||(i[n]=r(n))}},{120:120,99:99}],99:[function(n,t){var u=n(29),i=n(45),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(n,t){return r[n]||(r[n]=void 0!==t?t:{})})("versions",[]).push({version:u.version,mode:n(64)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},{29:29,45:45,64:64}],100:[function(n,t){var i=n(15),r=n(11),u=n(125)("species");t.exports=function(n,t){var f,e=i(n).constructor;return void 0===e||void 0==(f=i(e)[u])?t:r(f)}},{11:11,125:125,15:15}],101:[function(n,t){"use strict";var i=n(41);t.exports=function(n,t){return!!n&&i(function(){t?n.call(null,function(){},1):n.call(null)})}},{41:41}],102:[function(n,t){var i=n(112),r=n(34);t.exports=function(n){return function(t,u){var e,s,o=String(r(t)),f=i(u),h=o.length;return f<0||f>=h?n?"":void 0:(e=o.charCodeAt(f),e<55296||e>56319||f+1===h||(s=o.charCodeAt(f+1))<56320||s>57343?n?o.charAt(f):e:n?o.slice(f,f+2):s-56320+(e-55296<<10)+65536)}}},{112:112,34:34}],103:[function(n,t){var i=n(57),r=n(34);t.exports=function(n,t,u){if(i(t))throw TypeError("String#"+u+" doesn't accept regex!");return String(r(n))}},{34:34,57:57}],104:[function(n,t){var i=n(39),r=n(41),u=n(34),f=/"/g,e=function(n,t,i,r){var o=String(u(n)),e="<"+t;return""!==i&&(e+=" "+i+'="'+String(r).replace(f,"&quot;")+'"'),e+">"+o+"<\/"+t+">"};t.exports=function(n,t){var u={};u[n]=t(e);i(i.P+i.F*r(function(){var t=""[n]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",u)}},{34:34,39:39,41:41}],105:[function(n,t){var i=n(114),r=n(106),u=n(34);t.exports=function(n,t,f,e){var s=String(u(n)),l=s.length,c=void 0===f?" ":String(f),a=i(t),h,o;return a<=l||""==c?s:(h=a-l,o=r.call(c,Math.ceil(h/c.length)),o.length>h&&(o=o.slice(0,h)),e?o+s:s+o)}},{106:106,114:114,34:34}],106:[function(n,t){"use strict";var i=n(112),r=n(34);t.exports=function(n){var u=String(r(this)),f="",t=i(n);if(t<0||t==1/0)throw RangeError("Count can't be negative");for(;t>0;(t>>>=1)&&(u+=u))1&t&&(f+=u);return f}},{112:112,34:34}],107:[function(n,t){var r=n(39),o=n(34),s=n(41),u=n(108),i="["+u+"]",f="​",h=RegExp("^"+i+i+"*"),c=RegExp(i+i+"*$"),e=function(n,t,i){var e={},o=s(function(){return!!u[n]()||f[n]()!=f}),h=e[n]=o?t(l):u[n];i&&(e[i]=h);r(r.P+r.F*o,"String",e)},l=e.trim=function(n,t){return n=String(o(n)),1&t&&(n=n.replace(h,"")),2&t&&(n=n.replace(c,"")),n};t.exports=e},{108:108,34:34,39:39,41:41}],108:[function(n,t){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},{}],109:[function(n,t){var r,o,s,e=n(31),k=n(51),v=n(48),y=n(36),i=n(45),p=i.process,h=i.setImmediate,c=i.clearImmediate,w=i.MessageChannel,l=i.Dispatch,a=0,u={},f=function(){var n=+this,t;u.hasOwnProperty(n)&&(t=u[n],delete u[n],t())},b=function(n){f.call(n.data)};h&&c||(h=function(n){for(var t=[],i=1;arguments.length>i;)t.push(arguments[i++]);return u[++a]=function(){k("function"==typeof n?n:Function(n),t)},r(a),a},c=function(n){delete u[n]},"process"==n(25)(p)?r=function(n){p.nextTick(e(f,n,1))}:l&&l.now?r=function(n){l.now(e(f,n,1))}:w?(o=new w,s=o.port2,o.port1.onmessage=b,r=e(s.postMessage,s,1)):i.addEventListener&&"function"==typeof postMessage&&!i.importScripts?(r=function(n){i.postMessage(n+"","*")},i.addEventListener("message",b,!1)):r="onreadystatechange"in y("script")?function(n){v.appendChild(y("script")).onreadystatechange=function(){v.removeChild(this);f.call(n)}}:function(n){setTimeout(e(f,n,1),0)});t.exports={set:h,clear:c}},{25:25,31:31,36:36,45:45,48:48,51:51}],110:[function(n,t){var i=n(112),r=Math.max,u=Math.min;t.exports=function(n,t){return n=i(n),n<0?r(n+t,0):u(n,t)}},{112:112}],111:[function(n,t){var i=n(112),r=n(114);t.exports=function(n){if(void 0===n)return 0;var t=i(n),u=r(t);if(t!==u)throw RangeError("Wrong length!");return u}},{112:112,114:114}],112:[function(n,t){var i=Math.ceil,r=Math.floor;t.exports=function(n){return isNaN(n=+n)?0:(n>0?r:i)(n)}},{}],113:[function(n,t){var i=n(52),r=n(34);t.exports=function(n){return i(r(n))}},{34:34,52:52}],114:[function(n,t){var i=n(112),r=Math.min;t.exports=function(n){return n>0?r(i(n),9007199254740991):0}},{112:112}],115:[function(n,t){var i=n(34);t.exports=function(n){return Object(i(n))}},{34:34}],116:[function(n,t){var i=n(56);t.exports=function(n,t){if(!i(n))return n;var r,u;if(t&&"function"==typeof(r=n.toString)&&!i(u=r.call(n))||"function"==typeof(r=n.valueOf)&&!i(u=r.call(n))||!t&&"function"==typeof(r=n.toString)&&!i(u=r.call(n)))return u;throw TypeError("Can't convert object to primitive value");}},{56:56}],117:[function(n,t){"use strict";var e;if(n(35)){var ut=n(64),w=n(45),u=n(41),i=n(39),b=n(119),yt=n(118),gi=n(31),pt=n(14),nr=n(91),f=n(47),ft=n(92),tr=n(112),k=n(114),wt=n(111),bt=n(110),kt=n(116),a=n(46),dt=n(24),h=n(56),gt=n(115),ir=n(53),rr=n(73),ur=n(80),et=n(78).f,fr=n(126),ni=n(120),ti=n(125),s=n(19),ii=n(18),ot=n(100),st=n(137),er=n(63),or=n(61),sr=n(96),hr=n(17),cr=n(16),ri=n(74),ui=n(76),v=ri.f,lr=ui.f,y=w.RangeError,fi=w.TypeError,c=w.Uint8Array,o=Array.prototype,ht=yt.ArrayBuffer,ar=yt.DataView,ei=s(0),vr=s(2),yr=s(3),pr=s(4),wr=s(5),br=s(6),kr=ii(!0),dr=ii(!1),gr=st.values,nu=st.keys,tu=st.entries,iu=o.lastIndexOf,ru=o.reduce,uu=o.reduceRight,oi=o.join,fu=o.sort,si=o.slice,p=o.toString,ct=o.toLocaleString,lt=ti("iterator"),d=ti("toStringTag"),hi=ni("typed_constructor"),g=ni("def_constructor"),ci=b.CONSTR,l=b.TYPED,eu=b.VIEW,ou=s(1,function(n,t){return tt(ot(n,n[g]),t)}),li=u(function(){return 1===new c(new Uint16Array([1]).buffer)[0]}),su=!!c&&!!c.prototype.set&&u(function(){new c(1).set({})}),nt=function(n,t){var i=tr(n);if(i<0||i%t)throw y("Wrong offset!");return i},r=function(n){if(h(n)&&l in n)return n;throw fi(n+" is not a typed array!");},tt=function(n,t){if(!(h(n)&&hi in n))throw fi("It is not a typed array constructor!");return new n(t)},ai=function(n,t){return at(ot(n,n[g]),t)},at=function(n,t){for(var i=0,r=t.length,u=tt(n,r);r>i;)u[i]=t[i++];return u},it=function(n,t,i){v(n,t,{get:function(){return this._d[i]}})},vt=function(n){var t,u,f,e,s,h,i=gt(n),c=arguments.length,r=c>1?arguments[1]:void 0,l=void 0!==r,o=fr(i);if(void 0!=o&&!ir(o)){for(h=o.call(i),f=[],t=0;!(s=h.next()).done;t++)f.push(s.value);i=f}for(l&&c>2&&(r=gi(r,arguments[2],2)),t=0,u=k(i.length),e=tt(this,u);u>t;t++)e[t]=l?r(i[t],t):i[t];return e},hu=function(){for(var n=0,t=arguments.length,i=tt(this,t);t>n;)i[n]=arguments[n++];return i},cu=!!c&&u(function(){ct.call(new c(1))}),vi=function(){return ct.apply(cu?si.call(r(this)):r(this),arguments)},yi={copyWithin:function(n,t){return cr.call(r(this),n,t,arguments.length>2?arguments[2]:void 0)},every:function(n){return pr(r(this),n,arguments.length>1?arguments[1]:void 0)},fill:function(){return hr.apply(r(this),arguments)},filter:function(n){return ai(this,vr(r(this),n,arguments.length>1?arguments[1]:void 0))},find:function(n){return wr(r(this),n,arguments.length>1?arguments[1]:void 0)},findIndex:function(n){return br(r(this),n,arguments.length>1?arguments[1]:void 0)},forEach:function(n){ei(r(this),n,arguments.length>1?arguments[1]:void 0)},indexOf:function(n){return dr(r(this),n,arguments.length>1?arguments[1]:void 0)},includes:function(n){return kr(r(this),n,arguments.length>1?arguments[1]:void 0)},join:function(){return oi.apply(r(this),arguments)},lastIndexOf:function(){return iu.apply(r(this),arguments)},map:function(n){return ou(r(this),n,arguments.length>1?arguments[1]:void 0)},reduce:function(){return ru.apply(r(this),arguments)},reduceRight:function(){return uu.apply(r(this),arguments)},reverse:function(){for(var u,n=this,t=r(n).length,f=Math.floor(t/2),i=0;i<f;)u=n[i],n[i++]=n[--t],n[t]=u;return n},some:function(n){return yr(r(this),n,arguments.length>1?arguments[1]:void 0)},sort:function(n){return fu.call(r(this),n)},subarray:function(n,t){var i=r(this),u=i.length,f=bt(n,u);return new(ot(i,i[g]))(i.buffer,i.byteOffset+f*i.BYTES_PER_ELEMENT,k((void 0===t?u:bt(t,u))-f))}},pi=function(n,t){return ai(this,si.call(r(this),n,t))},wi=function(n){r(this);var i=nt(arguments[1],1),e=this.length,u=gt(n),f=k(u.length),t=0;if(f+i>e)throw y("Wrong length!");for(;t<f;)this[i+t]=u[t++]},rt={entries:function(){return tu.call(r(this))},keys:function(){return nu.call(r(this))},values:function(){return gr.call(r(this))}},bi=function(n,t){return h(n)&&n[l]&&"symbol"!=typeof t&&t in n&&String(+t)==String(t)},ki=function(n,t){return bi(n,t=kt(t,!0))?nr(2,n[t]):lr(n,t)},di=function(n,t,i){return!(bi(n,t=kt(t,!0))&&h(i)&&a(i,"value"))||a(i,"get")||a(i,"set")||i.configurable||a(i,"writable")&&!i.writable||a(i,"enumerable")&&!i.enumerable?v(n,t,i):(n[t]=i.value,n)};ci||(ui.f=ki,ri.f=di);i(i.S+i.F*!ci,"Object",{getOwnPropertyDescriptor:ki,defineProperty:di});u(function(){p.call({})})&&(p=ct=function(){return oi.call(this)});e=ft({},yi);ft(e,rt);f(e,lt,rt.values);ft(e,{slice:pi,set:wi,constructor:function(){},toString:p,toLocaleString:vi});it(e,"buffer","b");it(e,"byteOffset","o");it(e,"byteLength","l");it(e,"length","e");v(e,d,{get:function(){return this[l]}});t.exports=function(n,t,r,o){o=!!o;var c=n+(o?"Clamped":"")+"Array",yt="get"+n,bt="set"+n,s=w[c],tt=s||{},ot=s&&ur(s),kt=!s||!b.ABV,st={},a=s&&s.prototype,gt=function(n,i){var r=n._d;return r.v[yt](i*t+r.o,li)},ni=function(n,i,r){var u=n._d;o&&(r=(r=Math.round(r))<0?0:r>255?255:255&r);u.v[bt](i*t+u.o,r,li)},ti=function(n,t){v(n,t,{get:function(){return gt(this,t)},set:function(n){return ni(this,t,n)},enumerable:!0})};kt?(s=r(function(n,i,r,u){var v,e,o,b,w,a,p;if(pt(n,s,c,"_d"),w=0,a=0,h(i)){if(!(i instanceof ht||"ArrayBuffer"==(b=dt(i))||"SharedArrayBuffer"==b))return l in i?at(s,i):vt.call(s,i);if(v=i,a=nt(r,t),p=i.byteLength,void 0===u){if(p%t)throw y("Wrong length!");if((e=p-a)<0)throw y("Wrong length!");}else if((e=k(u)*t)+a>p)throw y("Wrong length!");o=e/t}else o=wt(i),e=o*t,v=new ht(e);for(f(n,"_d",{b:v,o:a,l:e,e:o,v:new ar(v)});w<o;)ti(n,w++)}),a=s.prototype=rr(e),f(a,"constructor",s)):u(function(){s(1)})&&u(function(){new s(-1)})&&or(function(n){new s;new s(null);new s(1.5);new s(n)},!0)||(s=r(function(n,i,r,u){pt(n,s,c);var f;return h(i)?i instanceof ht||"ArrayBuffer"==(f=dt(i))||"SharedArrayBuffer"==f?void 0!==u?new tt(i,nt(r,t),u):void 0!==r?new tt(i,nt(r,t)):new tt(i):l in i?at(s,i):vt.call(s,i):new tt(wt(i))}),ei(ot!==Function.prototype?et(tt).concat(et(ot)):et(tt),function(n){n in s||f(s,n,tt[n])}),s.prototype=a,ut||(a.constructor=s));var it=a[lt],ft=!!it&&("values"==it.name||void 0==it.name),ct=rt.values;f(s,hi,!0);f(a,l,c);f(a,eu,!0);f(a,g,s);(o?new s(1)[d]==c:d in a)||v(a,d,{get:function(){return c}});st[c]=s;i(i.G+i.W+i.F*(s!=tt),st);i(i.S,c,{BYTES_PER_ELEMENT:t});i(i.S+i.F*u(function(){tt.of.call(s,1)}),c,{from:vt,of:hu});"BYTES_PER_ELEMENT"in a||f(a,"BYTES_PER_ELEMENT",t);i(i.P,c,yi);sr(c);i(i.P+i.F*su,c,{set:wi});i(i.P+i.F*!ft,c,rt);ut||a.toString==p||(a.toString=p);i(i.P+i.F*u(function(){new s(1).slice()}),c,{slice:pi});i(i.P+i.F*(u(function(){return[1,2].toLocaleString()!=new s([1,2]).toLocaleString()})||!u(function(){a.toLocaleString.call([1,2])})),c,{toLocaleString:vi});er[c]=ft?it:ct;ut||ft||f(a,lt,ct)}}else t.exports=function(){}},{100:100,110:110,111:111,112:112,114:114,115:115,116:116,118:118,119:119,120:120,125:125,126:126,137:137,14:14,16:16,17:17,18:18,19:19,24:24,31:31,35:35,39:39,41:41,45:45,46:46,47:47,53:53,56:56,61:61,63:63,64:64,73:73,74:74,76:76,78:78,80:80,91:91,92:92,96:96}],118:[function(n,t,i){"use strict";function ut(n,t,i){var r,u,e,s=new Array(i),h=8*i-t-1,c=(1<<h)-1,o=c>>1,a=23===t?f(2,-24)-f(2,-77):0,l=0,v=n<0||0===n&&1/n<0?1:0;for(n=ui(n),n!=n||n===g?(u=n!=n?1:0,r=c):(r=fi(ei(n)/oi),n*(e=f(2,-r))<1&&(r--,e*=2),n+=r+o>=1?a/e:a*f(2,1-o),n*e>=2&&(r++,e/=2),r+o>=c?(u=0,r=c):r+o>=1?(u=(n*e-1)*f(2,t),r+=o):(u=n*f(2,o-1)*f(2,t),r=0));t>=8;s[l++]=255&u,u/=256,t-=8);for(r=r<<t|u,h+=t;h>0;s[l++]=255&r,r/=256,h-=8);return s[--l]|=128*v,s}function ft(n,t,i){var e,h=8*i-t-1,c=(1<<h)-1,l=c>>1,u=h-7,o=i-1,s=n[o--],r=127&s;for(s>>=7;u>0;r=256*r+n[o],o--,u-=8);for(e=r&(1<<-u)-1,r>>=-u,u+=t;u>0;e=256*e+n[o],o--,u-=8);if(0===r)r=1-l;else{if(r===c)return e?NaN:s?-g:g;e+=f(2,t);r-=l}return(s?-1:1)*e*f(2,r-t)}function et(n){return n[3]<<24|n[2]<<16|n[1]<<8|n[0]}function ot(n){return[255&n]}function st(n){return[255&n,n>>8&255]}function ht(n){return[255&n,n>>8&255,n>>16&255,n>>24&255]}function bt(n){return ut(n,52,8)}function kt(n){return ut(n,23,4)}function v(n,t,i){ii(n[s],t,{get:function(){return this[i]}})}function e(n,t,i,r){var o=+i,u=w(o);if(u+t>n[l])throw b(yt);var s=n[nt]._b,f=u+n[tt],e=s.slice(f,f+t);return r?e:e.reverse()}function o(n,t,i,r,u,f){var s=+i,o=w(s);if(o+t>n[l])throw b(yt);for(var h=n[nt]._b,c=o+n[tt],a=r(+u),e=0;e<t;e++)h[c+e]=a[f?e:t-e-1]}var h=n(45),y=n(35),dt=n(64),ct=n(119),lt=n(47),at=n(92),d=n(41),p=n(14),gt=n(112),ni=n(114),w=n(111),ti=n(78).f,ii=n(74).f,ri=n(17),vt=n(97),s="prototype",yt="Wrong index!",r=h.ArrayBuffer,u=h.DataView,c=h.Math,b=h.RangeError,g=h.Infinity,k=r,ui=c.abs,f=c.pow,fi=c.floor,ei=c.log,oi=c.LN2,nt=y?"_b":"buffer",l=y?"_l":"byteLength",tt=y?"_o":"byteOffset",a,rt;if(ct.ABV){if(!d(function(){r(1)})||!d(function(){new r(-1)})||d(function(){return new r,new r(1.5),new r(NaN),"ArrayBuffer"!=r.name})){r=function(n){return p(this,r),new k(w(n))};for(var it,si=r[s]=k[s],pt=ti(k),wt=0;pt.length>wt;)(it=pt[wt++])in r||lt(r,it,k[it]);dt||(si.constructor=r)}a=new u(new r(2));rt=u[s].setInt8;a.setInt8(0,2147483648);a.setInt8(1,2147483649);!a.getInt8(0)&&a.getInt8(1)||at(u[s],{setInt8:function(n,t){rt.call(this,n,t<<24>>24)},setUint8:function(n,t){rt.call(this,n,t<<24>>24)}},!0)}else r=function(n){p(this,r,"ArrayBuffer");var t=w(n);this._b=ri.call(new Array(t),0);this[l]=t},u=function(n,t,i){p(this,u,"DataView");p(n,r,"DataView");var e=n[l],f=gt(t);if(f<0||f>e)throw b("Wrong offset!");if(i=void 0===i?e-f:ni(i),f+i>e)throw b("Wrong length!");this[nt]=n;this[tt]=f;this[l]=i},y&&(v(r,"byteLength","_l"),v(u,"buffer","_b"),v(u,"byteLength","_l"),v(u,"byteOffset","_o")),at(u[s],{getInt8:function(n){return e(this,1,n)[0]<<24>>24},getUint8:function(n){return e(this,1,n)[0]},getInt16:function(n){var t=e(this,2,n,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(n){var t=e(this,2,n,arguments[1]);return t[1]<<8|t[0]},getInt32:function(n){return et(e(this,4,n,arguments[1]))},getUint32:function(n){return et(e(this,4,n,arguments[1]))>>>0},getFloat32:function(n){return ft(e(this,4,n,arguments[1]),23,4)},getFloat64:function(n){return ft(e(this,8,n,arguments[1]),52,8)},setInt8:function(n,t){o(this,1,n,ot,t)},setUint8:function(n,t){o(this,1,n,ot,t)},setInt16:function(n,t){o(this,2,n,st,t,arguments[2])},setUint16:function(n,t){o(this,2,n,st,t,arguments[2])},setInt32:function(n,t){o(this,4,n,ht,t,arguments[2])},setUint32:function(n,t){o(this,4,n,ht,t,arguments[2])},setFloat32:function(n,t){o(this,4,n,kt,t,arguments[2])},setFloat64:function(n,t){o(this,8,n,bt,t,arguments[2])}});vt(r,"ArrayBuffer");vt(u,"DataView");lt(u[s],ct.VIEW,!0);i.ArrayBuffer=r;i.DataView=u},{111:111,112:112,114:114,119:119,14:14,17:17,35:35,41:41,45:45,47:47,64:64,74:74,78:78,92:92,97:97}],119:[function(n,t){for(var i,r=n(45),u=n(47),f=n(120),e=f("typed_array"),o=f("view"),s=!(!r.ArrayBuffer||!r.DataView),h=s,c=0,l="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");c<9;)(i=r[l[c++]])?(u(i.prototype,e,!0),u(i.prototype,o,!0)):h=!1;t.exports={ABV:s,CONSTR:h,TYPED:e,VIEW:o}},{120:120,45:45,47:47}],120:[function(n,t){var i=0,r=Math.random();t.exports=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++i+r).toString(36))}},{}],121:[function(n,t){var r=n(45),i=r.navigator;t.exports=i&&i.userAgent||""},{45:45}],122:[function(n,t){var i=n(56);t.exports=function(n,t){if(!i(n)||n._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return n}},{56:56}],123:[function(n,t){var r=n(45),i=n(29),u=n(64),f=n(124),e=n(74).f;t.exports=function(n){var t=i.Symbol||(i.Symbol=u?{}:r.Symbol||{});"_"==n.charAt(0)||n in t||e(t,n,{value:f.f(n)})}},{124:124,29:29,45:45,64:64,74:74}],124:[function(n,t,i){i.f=n(125)},{125:125}],125:[function(n,t){var i=n(99)("wks"),f=n(120),r=n(45).Symbol,u="function"==typeof r;(t.exports=function(n){return i[n]||(i[n]=u&&r[n]||(u?r:f)("Symbol."+n))}).store=i},{120:120,45:45,99:99}],126:[function(n,t){var i=n(24),r=n(125)("iterator"),u=n(63);t.exports=n(29).getIteratorMethod=function(n){if(void 0!=n)return n[r]||n["@@iterator"]||u[i(n)]}},{125:125,24:24,29:29,63:63}],127:[function(n){var t=n(39);t(t.P,"Array",{copyWithin:n(16)});n(13)("copyWithin")},{13:13,16:16,39:39}],128:[function(n){"use strict";var t=n(39),i=n(19)(4);t(t.P+t.F*!n(101)([].every,!0),"Array",{every:function(n){return i(this,n,arguments[1])}})},{101:101,19:19,39:39}],129:[function(n){var t=n(39);t(t.P,"Array",{fill:n(17)});n(13)("fill")},{13:13,17:17,39:39}],130:[function(n){"use strict";var t=n(39),i=n(19)(2);t(t.P+t.F*!n(101)([].filter,!0),"Array",{filter:function(n){return i(this,n,arguments[1])}})},{101:101,19:19,39:39}],131:[function(n){"use strict";var t=n(39),u=n(19)(6),i="findIndex",r=!0;i in[]&&Array(1)[i](function(){r=!1});t(t.P+t.F*r,"Array",{findIndex:function(n){return u(this,n,arguments.length>1?arguments[1]:void 0)}});n(13)(i)},{13:13,19:19,39:39}],132:[function(n){"use strict";var t=n(39),r=n(19)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1});t(t.P+t.F*i,"Array",{find:function(n){return r(this,n,arguments.length>1?arguments[1]:void 0)}});n(13)("find")},{13:13,19:19,39:39}],133:[function(n){"use strict";var t=n(39),i=n(19)(0),r=n(101)([].forEach,!0);t(t.P+t.F*!r,"Array",{forEach:function(n){return i(this,n,arguments[1])}})},{101:101,19:19,39:39}],134:[function(n){"use strict";var r=n(31),t=n(39),u=n(115),f=n(58),e=n(53),o=n(114),i=n(30),s=n(126);t(t.S+t.F*!n(61)(function(n){Array.from(n)}),"Array",{from:function(n){var a,h,v,y,c=u(n),p="function"==typeof this?this:Array,k=arguments.length,l=k>1?arguments[1]:void 0,w=void 0!==l,t=0,b=s(c);if(w&&(l=r(l,k>2?arguments[2]:void 0,2)),void 0==b||p==Array&&e(b))for(a=o(c.length),h=new p(a);a>t;t++)i(h,t,w?l(c[t],t):c[t]);else for(y=b.call(c),h=new p;!(v=y.next()).done;t++)i(h,t,w?f(y,l,[v.value,t],!0):v.value);return h.length=t,h}})},{114:114,115:115,126:126,30:30,31:31,39:39,53:53,58:58,61:61}],135:[function(n){"use strict";var t=n(39),u=n(18)(!1),i=[].indexOf,r=!!i&&1/[1].indexOf(1,-0)<0;t(t.P+t.F*(r||!n(101)(i)),"Array",{indexOf:function(n){return r?i.apply(this,arguments)||0:u(this,n,arguments[1])}})},{101:101,18:18,39:39}],136:[function(n){var t=n(39);t(t.S,"Array",{isArray:n(54)})},{39:39,54:54}],137:[function(n,t){"use strict";var r=n(13),i=n(62),u=n(63),f=n(113);t.exports=n(60)(Array,"Array",function(n,t){this._t=f(n);this._i=0;this._k=t},function(){var t=this._t,r=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==r?i(0,n):"values"==r?i(0,t[n]):i(0,[n,t[n]])},"values");u.Arguments=u.Array;r("keys");r("values");r("entries")},{113:113,13:13,60:60,62:62,63:63}],138:[function(n){"use strict";var t=n(39),r=n(113),i=[].join;t(t.P+t.F*(n(52)!=Object||!n(101)(i)),"Array",{join:function(n){return i.call(r(this),void 0===n?",":n)}})},{101:101,113:113,39:39,52:52}],139:[function(n){"use strict";var t=n(39),u=n(113),f=n(112),e=n(114),i=[].lastIndexOf,r=!!i&&1/[1].lastIndexOf(1,-0)<0;t(t.P+t.F*(r||!n(101)(i)),"Array",{lastIndexOf:function(n){if(r)return i.apply(this,arguments)||0;var o=u(this),s=e(o.length),t=s-1;for(arguments.length>1&&(t=Math.min(t,f(arguments[1]))),t<0&&(t=s+t);t>=0;t--)if(t in o&&o[t]===n)return t||0;return-1}})},{101:101,112:112,113:113,114:114,39:39}],140:[function(n){"use strict";var t=n(39),i=n(19)(1);t(t.P+t.F*!n(101)([].map,!0),"Array",{map:function(n){return i(this,n,arguments[1])}})},{101:101,19:19,39:39}],141:[function(n){"use strict";var t=n(39),i=n(30);t(t.S+t.F*n(41)(function(){function n(){}return!(Array.of.call(n)instanceof n)}),"Array",{of:function(){for(var n=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>n;)i(r,n,arguments[n++]);return r.length=t,r}})},{30:30,39:39,41:41}],142:[function(n){"use strict";var t=n(39),i=n(20);t(t.P+t.F*!n(101)([].reduceRight,!0),"Array",{reduceRight:function(n){return i(this,n,arguments.length,arguments[1],!0)}})},{101:101,20:20,39:39}],143:[function(n){"use strict";var t=n(39),i=n(20);t(t.P+t.F*!n(101)([].reduce,!0),"Array",{reduce:function(n){return i(this,n,arguments.length,arguments[1],!1)}})},{101:101,20:20,39:39}],144:[function(n){"use strict";var t=n(39),i=n(48),e=n(25),r=n(110),u=n(114),f=[].slice;t(t.P+t.F*n(41)(function(){i&&f.call(i)}),"Array",{slice:function(n,t){var o=u(this.length),h=e(this);if(t=void 0===t?o:t,"Array"==h)return f.call(this,n,t);for(var s=r(n,o),a=r(t,o),c=u(a-s),l=new Array(c),i=0;i<c;i++)l[i]="String"==h?this.charAt(s+i):this[s+i];return l}})},{110:110,114:114,25:25,39:39,41:41,48:48}],145:[function(n){"use strict";var t=n(39),i=n(19)(3);t(t.P+t.F*!n(101)([].some,!0),"Array",{some:function(n){return i(this,n,arguments[1])}})},{101:101,19:19,39:39}],146:[function(n){"use strict";var t=n(39),e=n(11),r=n(115),u=n(41),i=[].sort,f=[1,2,3];t(t.P+t.F*(u(function(){f.sort(void 0)})||!u(function(){f.sort(null)})||!n(101)(i)),"Array",{sort:function(n){return void 0===n?i.call(r(this)):i.call(r(this),e(n))}})},{101:101,11:11,115:115,39:39,41:41}],147:[function(n){n(96)("Array")},{96:96}],148:[function(n){var t=n(39);t(t.S,"Date",{now:function(){return(new Date).getTime()}})},{39:39}],149:[function(n){var t=n(39),i=n(32);t(t.P+t.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},{32:32,39:39}],150:[function(n){"use strict";var t=n(39),i=n(115),r=n(116);t(t.P+t.F*n(41)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(){var n=i(this),t=r(n);return"number"!=typeof t||isFinite(t)?n.toISOString():null}})},{115:115,116:116,39:39,41:41}],151:[function(n){var t=n(125)("toPrimitive"),i=Date.prototype;t in i||n(47)(i,t,n(33))},{125:125,33:33,47:47}],152:[function(n){var t=Date.prototype,i=t.toString,r=t.getTime;new Date(NaN)+""!="Invalid Date"&&n(93)(t,"toString",function(){var n=r.call(this);return n===n?i.call(this):"Invalid Date"})},{93:93}],153:[function(n){var t=n(39);t(t.P,"Function",{bind:n(23)})},{23:23,39:39}],154:[function(n){"use strict";var t=n(56),u=n(80),i=n(125)("hasInstance"),r=Function.prototype;i in r||n(74).f(r,i,{value:function(n){if("function"!=typeof this||!t(n))return!1;if(!t(this.prototype))return n instanceof this;for(;n=u(n);)if(this.prototype===n)return!0;return!1}})},{125:125,56:56,74:74,80:80}],155:[function(n){var i=n(74).f,t=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in t||n(35)&&i(t,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(n){return""}}})},{35:35,74:74}],156:[function(n,t){"use strict";var i=n(26),r=n(122);t.exports=n(28)("Map",function(n){return function(){return n(this,arguments.length>0?arguments[0]:void 0)}},{get:function(n){var t=i.getEntry(r(this,"Map"),n);return t&&t.v},set:function(n,t){return i.def(r(this,"Map"),0===n?0:n,t)}},i,!0)},{122:122,26:26,28:28}],157:[function(n){var t=n(39),u=n(67),r=Math.sqrt,i=Math.acosh;t(t.S+t.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))&&i(1/0)==1/0),"Math",{acosh:function(n){return(n=+n)<1?NaN:n>94906265.624251559?Math.log(n)+Math.LN2:u(n-1+r(n-1)*r(n+1))}})},{39:39,67:67}],158:[function(n){function i(n){return isFinite(n=+n)&&0!=n?n<0?-i(-n):Math.log(n+Math.sqrt(n*n+1)):n}var t=n(39),r=Math.asinh;t(t.S+t.F*!(r&&1/r(0)>0),"Math",{asinh:i})},{39:39}],159:[function(n){var t=n(39),i=Math.atanh;t(t.S+t.F*!(i&&1/i(-0)<0),"Math",{atanh:function(n){return 0==(n=+n)?n:Math.log((1+n)/(1-n))/2}})},{39:39}],160:[function(n){var t=n(39),i=n(68);t(t.S,"Math",{cbrt:function(n){return i(n=+n)*Math.pow(Math.abs(n),1/3)}})},{39:39,68:68}],161:[function(n){var t=n(39);t(t.S,"Math",{clz32:function(n){return(n>>>=0)?31-Math.floor(Math.log(n+.5)*Math.LOG2E):32}})},{39:39}],162:[function(n){var t=n(39),i=Math.exp;t(t.S,"Math",{cosh:function(n){return(i(n=+n)+i(-n))/2}})},{39:39}],163:[function(n){var t=n(39),i=n(65);t(t.S+t.F*(i!=Math.expm1),"Math",{expm1:i})},{39:39,65:65}],164:[function(n){var t=n(39);t(t.S,"Math",{fround:n(66)})},{39:39,66:66}],165:[function(n){var t=n(39),i=Math.abs;t(t.S,"Math",{hypot:function(){for(var n,t,u=0,f=0,e=arguments.length,r=0;f<e;)n=i(arguments[f++]),r<n?(t=r/n,u=u*t*t+1,r=n):n>0?(t=n/r,u+=t*t):u+=n;return r===1/0?1/0:r*Math.sqrt(u)}})},{39:39}],166:[function(n){var t=n(39),i=Math.imul;t(t.S+t.F*n(41)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(n,t){var i=+n,r=+t,u=65535&i,f=65535&r;return 0|u*f+((65535&i>>>16)*f+u*(65535&r>>>16)<<16>>>0)}})},{39:39,41:41}],167:[function(n){var t=n(39);t(t.S,"Math",{log10:function(n){return Math.log(n)*Math.LOG10E}})},{39:39}],168:[function(n){var t=n(39);t(t.S,"Math",{log1p:n(67)})},{39:39,67:67}],169:[function(n){var t=n(39);t(t.S,"Math",{log2:function(n){return Math.log(n)/Math.LN2}})},{39:39}],170:[function(n){var t=n(39);t(t.S,"Math",{sign:n(68)})},{39:39,68:68}],171:[function(n){var t=n(39),i=n(65),r=Math.exp;t(t.S+t.F*n(41)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(n){return Math.abs(n=+n)<1?(i(n)-i(-n))/2:(r(n-1)-r(-n-1))*(Math.E/2)}})},{39:39,41:41,65:65}],172:[function(n){var t=n(39),i=n(65),r=Math.exp;t(t.S,"Math",{tanh:function(n){var t=i(n=+n),u=i(-n);return t==1/0?1:u==1/0?-1:(t-u)/(r(n)+r(-n))}})},{39:39,65:65}],173:[function(n){var t=n(39);t(t.S,"Math",{trunc:function(n){return(n>0?Math.floor:Math.ceil)(n)}})},{39:39}],174:[function(n){"use strict";var o=n(45),s=n(46),h=n(25),l=n(50),a=n(116),v=n(41),y=n(78).f,p=n(76).f,w=n(74).f,b=n(107).trim,t=o.Number,i=t,r=t.prototype,k="Number"==h(n(73)(r)),d="trim"in String.prototype,c=function(n){var t=a(n,!1),o,r,u,i;if("string"==typeof t&&t.length>2)if(t=d?t.trim():b(t,3),i=t.charCodeAt(0),43===i||45===i){if(88===(o=t.charCodeAt(2))||120===o)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2;u=49;break;case 79:case 111:r=8;u=55;break;default:return+t}for(var s,f=t.slice(2),e=0,h=f.length;e<h;e++)if((s=f.charCodeAt(e))<48||s>u)return NaN;return parseInt(f,r)}return+t},u,e,f;if(!t(" 0o1")||!t("0b1")||t("+0x1")){for(t=function(n){var f=arguments.length<1?0:n,u=this;return u instanceof t&&(k?v(function(){r.valueOf.call(u)}):"Number"!=h(u))?l(new i(c(f)),u,t):c(f)},e=n(35)?y(i):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),f=0;e.length>f;f++)s(i,u=e[f])&&!s(t,u)&&w(t,u,p(i,u));t.prototype=r;r.constructor=t;n(93)(o,"Number",t)}},{107:107,116:116,25:25,35:35,41:41,45:45,46:46,50:50,73:73,74:74,76:76,78:78,93:93}],175:[function(n){var t=n(39);t(t.S,"Number",{EPSILON:Math.pow(2,-52)})},{39:39}],176:[function(n){var t=n(39),i=n(45).isFinite;t(t.S,"Number",{isFinite:function(n){return"number"==typeof n&&i(n)}})},{39:39,45:45}],177:[function(n){var t=n(39);t(t.S,"Number",{isInteger:n(55)})},{39:39,55:55}],178:[function(n){var t=n(39);t(t.S,"Number",{isNaN:function(n){return n!=n}})},{39:39}],179:[function(n){var t=n(39),i=n(55),r=Math.abs;t(t.S,"Number",{isSafeInteger:function(n){return i(n)&&r(n)<=9007199254740991}})},{39:39,55:55}],180:[function(n){var t=n(39);t(t.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{39:39}],181:[function(n){var t=n(39);t(t.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{39:39}],182:[function(n){var t=n(39),i=n(87);t(t.S+t.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},{39:39,87:87}],183:[function(n){var t=n(39),i=n(88);t(t.S+t.F*(Number.parseInt!=i),"Number",{parseInt:i})},{39:39,88:88}],184:[function(n){"use strict";var u=n(39),l=n(112),a=n(12),f=n(106),o=1..toFixed,s=Math.floor,t=[0,0,0,0,0,0],h="Number.toFixed: incorrect invocation!",i=function(n,i){for(var u=-1,r=i;++u<6;)r+=n*t[u],t[u]=r%1e7,r=s(r/1e7)},e=function(n){for(var r=6,i=0;--r>=0;)i+=t[r],t[r]=s(i/n),i=i%n*1e7},c=function(){for(var r,i=6,n="";--i>=0;)(""!==n||0===i||0!==t[i])&&(r=String(t[i]),n=""===n?r:n+f.call("0",7-r.length)+r);return n},r=function(n,t,i){return 0===t?i:t%2==1?r(n,t-1,i*n):r(n*n,t/2,i)},v=function(n){for(var i=0,t=n;t>=4096;)i+=12,t/=4096;for(;t>=2;)i+=1,t/=2;return i};u(u.P+u.F*(!!o&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0))||!n(41)(function(){o.call({})})),"Number",{toFixed:function(n){var s,w,y,p,t=a(this,h),o=l(n),b="",u="0";if(o<0||o>20)throw RangeError(h);if(t!=t)return"NaN";if(t<=-1e21||t>=1e21)return String(t);if(t<0&&(b="-",t=-t),t>1e-21)if(s=v(t*r(2,69,1))-69,w=s<0?t*r(2,-s,1):t/r(2,s,1),w*=4503599627370496,(s=52-s)>0){for(i(0,w),y=o;y>=7;)i(1e7,0),y-=7;for(i(r(10,y,1),0),y=s-1;y>=23;)e(8388608),y-=23;e(1<<y);i(1,1);e(2);u=c()}else i(0,w),i(1<<-s,0),u=c()+f.call("0",o);return o>0?(p=u.length,u=b+(p<=o?"0."+f.call("0",o-p)+u:u.slice(0,p-o)+"."+u.slice(p-o))):u=b+u,u}})},{106:106,112:112,12:12,39:39,41:41}],185:[function(n){"use strict";var i=n(39),r=n(41),u=n(12),t=1..toPrecision;i(i.P+i.F*(r(function(){return"1"!==t.call(1,void 0)})||!r(function(){t.call({})})),"Number",{toPrecision:function(n){var i=u(this,"Number#toPrecision: incorrect invocation!");return void 0===n?t.call(i):t.call(i,n)}})},{12:12,39:39,41:41}],186:[function(n){var t=n(39);t(t.S+t.F,"Object",{assign:n(72)})},{39:39,72:72}],187:[function(n){var t=n(39);t(t.S,"Object",{create:n(73)})},{39:39,73:73}],188:[function(n){var t=n(39);t(t.S+t.F*!n(35),"Object",{defineProperties:n(75)})},{35:35,39:39,75:75}],189:[function(n){var t=n(39);t(t.S+t.F*!n(35),"Object",{defineProperty:n(74).f})},{35:35,39:39,74:74}],190:[function(n){var t=n(56),i=n(69).onFreeze;n(84)("freeze",function(n){return function(r){return n&&t(r)?n(i(r)):r}})},{56:56,69:69,84:84}],191:[function(n){var t=n(113),i=n(76).f;n(84)("getOwnPropertyDescriptor",function(){return function(n,r){return i(t(n),r)}})},{113:113,76:76,84:84}],192:[function(n){n(84)("getOwnPropertyNames",function(){return n(77).f})},{77:77,84:84}],193:[function(n){var t=n(115),i=n(80);n(84)("getPrototypeOf",function(){return function(n){return i(t(n))}})},{115:115,80:80,84:84}],194:[function(n){var t=n(56);n(84)("isExtensible",function(n){return function(i){return!!t(i)&&(!n||n(i))}})},{56:56,84:84}],195:[function(n){var t=n(56);n(84)("isFrozen",function(n){return function(i){return!t(i)||!!n&&n(i)}})},{56:56,84:84}],196:[function(n){var t=n(56);n(84)("isSealed",function(n){return function(i){return!t(i)||!!n&&n(i)}})},{56:56,84:84}],197:[function(n){var t=n(39);t(t.S,"Object",{is:n(94)})},{39:39,94:94}],198:[function(n){var t=n(115),i=n(82);n(84)("keys",function(){return function(n){return i(t(n))}})},{115:115,82:82,84:84}],199:[function(n){var t=n(56),i=n(69).onFreeze;n(84)("preventExtensions",function(n){return function(r){return n&&t(r)?n(i(r)):r}})},{56:56,69:69,84:84}],200:[function(n){var t=n(56),i=n(69).onFreeze;n(84)("seal",function(n){return function(r){return n&&t(r)?n(i(r)):r}})},{56:56,69:69,84:84}],201:[function(n){var t=n(39);t(t.S,"Object",{setPrototypeOf:n(95).set})},{39:39,95:95}],202:[function(n){"use strict";var i=n(24),t={};t[n(125)("toStringTag")]="z";t+""!="[object z]"&&n(93)(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},{125:125,24:24,93:93}],203:[function(n){var t=n(39),i=n(87);t(t.G+t.F*(parseFloat!=i),{parseFloat:i})},{39:39,87:87}],204:[function(n){var t=n(39),i=n(88);t(t.G+t.F*(parseInt!=i),{parseInt:i})},{39:39,88:88}],205:[function(n){"use strict";var c,w,b,a,k=n(64),r=n(45),u=n(31),et=n(24),t=n(39),ot=n(56),st=n(11),ht=n(14),d=n(44),ct=n(100),g=n(109).set,nt=n(70)(),tt=n(71),v=n(89),lt=n(121),at=n(90),it=r.TypeError,f=r.process,rt=f&&f.versions,vt=rt&&rt.v8||"",i=r.Promise,o="process"==et(f),l=function(){},s=w=tt.f,h=!!function(){try{var t=i.resolve(1),r=(t.constructor={})[n(125)("species")]=function(n){n(l,l)};return(o||"function"==typeof PromiseRejectionEvent)&&t.then(l)instanceof r&&0!==vt.indexOf("6.6")&&-1===lt.indexOf("Chrome/66")}catch(n){}}(),ut=function(n){var t;return!(!ot(n)||"function"!=typeof(t=n.then))&&t},y=function(n,t){if(!n._n){n._n=!0;var i=n._c;nt(function(){for(var r=n._v,u=1==n._s,f=0;i.length>f;)!function(t){var i,s,h,o=u?t.ok:t.fail,c=t.resolve,e=t.reject,f=t.domain;try{o?(u||(2==n._h&&pt(n),n._h=1),!0===o?i=r:(f&&f.enter(),i=o(r),f&&(f.exit(),h=!0)),i===t.promise?e(it("Promise-chain cycle")):(s=ut(i))?s.call(i,c,e):c(i)):e(r)}catch(n){f&&!h&&f.exit();e(n)}}(i[f++]);n._c=[];n._n=!1;t&&!n._h&&yt(n)})}},yt=function(n){g.call(r,function(){var t,e,i,u=n._v,s=ft(n);if(s&&(t=v(function(){o?f.emit("unhandledRejection",u,n):(e=r.onunhandledrejection)?e({promise:n,reason:u}):(i=r.console)&&i.error&&i.error("Unhandled promise rejection",u)}),n._h=o||ft(n)?2:1),n._a=void 0,s&&t.e)throw t.v;})},ft=function(n){return 1!==n._h&&0===(n._a||n._c).length},pt=function(n){g.call(r,function(){var t;o?f.emit("rejectionHandled",n):(t=r.onrejectionhandled)&&t({promise:n,reason:n._v})})},e=function(n){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=n,t._s=2,t._a||(t._a=t._c.slice()),y(t,!0))},p=function(n){var i,t=this;if(!t._d){t._d=!0;t=t._w||t;try{if(t===n)throw it("Promise can't be resolved itself");(i=ut(n))?nt(function(){var r={_w:t,_d:!1};try{i.call(n,u(p,r,1),u(e,r,1))}catch(n){e.call(r,n)}}):(t._v=n,t._s=1,y(t,!1))}catch(n){e.call({_w:t,_d:!1},n)}}};h||(i=function(n){ht(this,i,"Promise","_h");st(n);c.call(this);try{n(u(p,this,1),u(e,this,1))}catch(n){e.call(this,n)}},c=function(){this._c=[];this._a=void 0;this._s=0;this._d=!1;this._v=void 0;this._h=0;this._n=!1},c.prototype=n(92)(i.prototype,{then:function(n,t){var r=s(ct(this,i));return r.ok="function"!=typeof n||n,r.fail="function"==typeof t&&t,r.domain=o?f.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&y(this,!1),r.promise},"catch":function(n){return this.then(void 0,n)}}),b=function(){var n=new c;this.promise=n;this.resolve=u(p,n,1);this.reject=u(e,n,1)},tt.f=s=function(n){return n===i||n===a?new b(n):w(n)});t(t.G+t.W+t.F*!h,{Promise:i});n(97)(i,"Promise");n(96)("Promise");a=n(29).Promise;t(t.S+t.F*!h,"Promise",{reject:function(n){var t=s(this);return t.reject(n),t.promise}});t(t.S+t.F*(k||!h),"Promise",{resolve:function(n){return at(k&&this===a?i:this,n)}});t(t.S+t.F*!(h&&n(61)(function(n){i.all(n).catch(l)})),"Promise",{all:function(n){var i=this,t=s(i),r=t.resolve,u=t.reject,f=v(function(){var t=[],e=0,f=1;d(n,!1,function(n){var s=e++,o=!1;t.push(void 0);f++;i.resolve(n).then(function(n){o||(o=!0,t[s]=n,--f||r(t))},u)});--f||r(t)});return f.e&&u(f.v),t.promise},race:function(n){var i=this,t=s(i),r=t.reject,u=v(function(){d(n,!1,function(n){i.resolve(n).then(t.resolve,r)})});return u.e&&r(u.v),t.promise}})},{100:100,109:109,11:11,121:121,125:125,14:14,24:24,29:29,31:31,39:39,44:44,45:45,56:56,61:61,64:64,70:70,71:71,89:89,90:90,92:92,96:96,97:97}],206:[function(n){var t=n(39),r=n(11),u=n(15),i=(n(45).Reflect||{}).apply,f=Function.apply;t(t.S+t.F*!n(41)(function(){i(function(){})}),"Reflect",{apply:function(n,t,e){var o=r(n),s=u(e);return i?i(o,t,s):f.call(o,t,s)}})},{11:11,15:15,39:39,41:41,45:45}],207:[function(n){var t=n(39),s=n(73),r=n(11),h=n(15),u=n(56),f=n(41),c=n(23),i=(n(45).Reflect||{}).construct,e=f(function(){function n(){}return!(i(function(){},[],n)instanceof n)}),o=!f(function(){i(function(){})});t(t.S+t.F*(e||o),"Reflect",{construct:function(n,t){var f,l;if(r(n),h(t),f=arguments.length<3?n:r(arguments[2]),o&&!e)return i(n,t,f);if(n==f){switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3])}return l=[null],l.push.apply(l,t),new(c.apply(n,l))}var a=f.prototype,v=s(u(a)?a:Object.prototype),y=Function.apply.call(n,v,t);return u(y)?y:v}})},{11:11,15:15,23:23,39:39,41:41,45:45,56:56,73:73}],208:[function(n){var i=n(74),t=n(39),r=n(15),u=n(116);t(t.S+t.F*n(41)(function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(n,t,f){r(n);t=u(t,!0);r(f);try{return i.f(n,t,f),!0}catch(n){return!1}}})},{116:116,15:15,39:39,41:41,74:74}],209:[function(n){var t=n(39),i=n(76).f,r=n(15);t(t.S,"Reflect",{deleteProperty:function(n,t){var u=i(r(n),t);return!(u&&!u.configurable)&&delete n[t]}})},{15:15,39:39,76:76}],210:[function(n){"use strict";var t=n(39),r=n(15),i=function(n){this._t=r(n);this._i=0;var t,i=this._k=[];for(t in n)i.push(t)};n(59)(i,"Object",function(){var t,n=this,i=n._k;do if(n._i>=i.length)return{value:void 0,done:!0};while(!((t=i[n._i++])in n._t));return{value:t,done:!1}});t(t.S,"Reflect",{enumerate:function(n){return new i(n)}})},{15:15,39:39,59:59}],211:[function(n){var i=n(76),t=n(39),r=n(15);t(t.S,"Reflect",{getOwnPropertyDescriptor:function(n,t){return i.f(r(n),t)}})},{15:15,39:39,76:76}],212:[function(n){var t=n(39),i=n(80),r=n(15);t(t.S,"Reflect",{getPrototypeOf:function(n){return i(r(n))}})},{15:15,39:39,80:80}],213:[function(n){function t(n,i){var s,c,h=arguments.length<3?n:arguments[2];return o(n)===h?n[i]:(s=r.f(n,i))?f(s,"value")?s.value:void 0!==s.get?s.get.call(h):void 0:e(c=u(n))?t(c,i,h):void 0}var r=n(76),u=n(80),f=n(46),i=n(39),e=n(56),o=n(15);i(i.S,"Reflect",{get:t})},{15:15,39:39,46:46,56:56,76:76,80:80}],214:[function(n){var t=n(39);t(t.S,"Reflect",{has:function(n,t){return t in n}})},{39:39}],215:[function(n){var t=n(39),r=n(15),i=Object.isExtensible;t(t.S,"Reflect",{isExtensible:function(n){return r(n),!i||i(n)}})},{15:15,39:39}],216:[function(n){var t=n(39);t(t.S,"Reflect",{ownKeys:n(86)})},{39:39,86:86}],217:[function(n){var t=n(39),r=n(15),i=Object.preventExtensions;t(t.S,"Reflect",{preventExtensions:function(n){r(n);try{return i&&i(n),!0}catch(n){return!1}}})},{15:15,39:39}],218:[function(n){var i=n(39),t=n(95);t&&i(i.S,"Reflect",{setPrototypeOf:function(n,i){t.check(n,i);try{return t.set(n,i),!0}catch(n){return!1}}})},{39:39,95:95}],219:[function(n){function t(n,u,c){var l,y,a=arguments.length<4?n:arguments[3],v=r.f(h(n),u);if(!v){if(e(y=o(n)))return t(y,u,c,a);v=f(0)}if(s(v,"value")){if(!1===v.writable||!e(a))return!1;if(l=r.f(a,u)){if(l.get||l.set||!1===l.writable)return!1;l.value=c;i.f(a,u,l)}else i.f(a,u,f(0,c));return!0}return void 0!==v.set&&(v.set.call(a,c),!0)}var i=n(74),r=n(76),o=n(80),s=n(46),u=n(39),f=n(91),h=n(15),e=n(56);u(u.S,"Reflect",{set:t})},{15:15,39:39,46:46,56:56,74:74,76:76,80:80,91:91}],220:[function(n){var s=n(45),c=n(50),l=n(74).f,a=n(78).f,v=n(57),y=n(43),t=s.RegExp,i=t,u=t.prototype,r=/a/g,f=/a/g,h=new t(r)!==r,e,o;if(n(35)&&(!h||n(41)(function(){return f[n(125)("match")]=!1,t(r)!=r||t(f)==f||"/a/i"!=t(r,"i")}))){for(t=function(n,r){var o=this instanceof t,f=v(n),e=void 0===r;return!o&&f&&n.constructor===t&&e?n:c(h?new i(f&&!e?n.source:n,r):i((f=n instanceof t)?n.source:n,f&&e?y.call(n):r),o?this:u,t)},e=a(i),o=0;e.length>o;)!function(n){n in t||l(t,n,{configurable:!0,get:function(){return i[n]},set:function(t){i[n]=t}})}(e[o++]);u.constructor=t;t.prototype=u;n(93)(s,"RegExp",t)}n(96)("RegExp")},{125:125,35:35,41:41,43:43,45:45,50:50,57:57,74:74,78:78,93:93,96:96}],221:[function(n){n(35)&&"g"!=/./g.flags&&n(74).f(RegExp.prototype,"flags",{configurable:!0,get:n(43)})},{35:35,43:43,74:74}],222:[function(n){n(42)("match",1,function(n,t,i){return[function(i){"use strict";var r=n(this),u=void 0==i?void 0:i[t];return void 0!==u?u.call(i,r):new RegExp(i)[t](String(r))},i]})},{42:42}],223:[function(n){n(42)("replace",2,function(n,t,i){return[function(r,u){"use strict";var f=n(this),e=void 0==r?void 0:r[t];return void 0!==e?e.call(r,f,u):i.call(String(f),r,u)},i]})},{42:42}],224:[function(n){n(42)("search",1,function(n,t,i){return[function(i){"use strict";var r=n(this),u=void 0==i?void 0:i[t];return void 0!==u?u.call(i,r):new RegExp(i)[t](String(r))},i]})},{42:42}],225:[function(n){n(42)("split",2,function(t,i,r){"use strict";var o=n(57),e=r,s=[].push,u="length",f;return"c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[u]||2!="ab".split(/(?:ab)*/)[u]||4!=".".split(/(.?)(.?)/)[u]||".".split(/()()/)[u]>1||"".split(/.?/)[u]?(f=void 0===/()??/.exec("")[1],r=function(n,t){var h=String(this);if(void 0===n&&0===t)return[];if(!o(n))return e.call(h,n,t);var y,i,p,w,c,r=[],b=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(n.sticky?"y":""),l=0,v=void 0===t?4294967295:t>>>0,a=new RegExp(n.source,b+"g");for(f||(y=new RegExp("^"+a.source+"$(?!\\s)",b));(i=a.exec(h))&&!((p=i.index+i[0][u])>l&&(r.push(h.slice(l,i.index)),!f&&i[u]>1&&i[0].replace(y,function(){for(c=1;c<arguments[u]-2;c++)void 0===arguments[c]&&(i[c]=void 0)}),i[u]>1&&i.index<h[u]&&s.apply(r,i.slice(1)),w=i[0][u],l=p,r[u]>=v));)a.lastIndex===i.index&&a.lastIndex++;return l===h[u]?!w&&a.test("")||r.push(""):r.push(h.slice(l)),r[u]>v?r.slice(0,v):r}):"0".split(void 0,0)[u]&&(r=function(n,t){return void 0===n&&0===t?[]:e.call(this,n,t)}),[function(n,u){var f=t(this),e=void 0==n?void 0:n[i];return void 0!==e?e.call(n,f,u):r.call(String(f),n,u)},r]})},{42:42,57:57}],226:[function(n){"use strict";n(221);var r=n(15),u=n(43),f=n(35),t=/./.toString,i=function(t){n(93)(RegExp.prototype,"toString",t,!0)};n(41)(function(){return"/a/b"!=t.call({source:"a",flags:"b"})})?i(function(){var n=r(this);return"/".concat(n.source,"/","flags"in n?n.flags:!f&&n instanceof RegExp?u.call(n):void 0)}):"toString"!=t.name&&i(function(){return t.call(this)})},{15:15,221:221,35:35,41:41,43:43,93:93}],227:[function(n,t){"use strict";var i=n(26),r=n(122);t.exports=n(28)("Set",function(n){return function(){return n(this,arguments.length>0?arguments[0]:void 0)}},{add:function(n){return i.def(r(this,"Set"),n=0===n?0:n,n)}},i)},{122:122,26:26,28:28}],228:[function(n){"use strict";n(104)("anchor",function(n){return function(t){return n(this,"a","name",t)}})},{104:104}],229:[function(n){"use strict";n(104)("big",function(n){return function(){return n(this,"big","","")}})},{104:104}],230:[function(n){"use strict";n(104)("blink",function(n){return function(){return n(this,"blink","","")}})},{104:104}],231:[function(n){"use strict";n(104)("bold",function(n){return function(){return n(this,"b","","")}})},{104:104}],232:[function(n){"use strict";var t=n(39),i=n(102)(!1);t(t.P,"String",{codePointAt:function(n){return i(this,n)}})},{102:102,39:39}],233:[function(n){"use strict";var t=n(39),i=n(114),u=n(103),r="".endsWith;t(t.P+t.F*n(40)("endsWith"),"String",{endsWith:function(n){var t=u(this,n,"endsWith"),o=arguments.length>1?arguments[1]:void 0,s=i(t.length),f=void 0===o?s:Math.min(i(o),s),e=String(n);return r?r.call(t,e,f):t.slice(f-e.length,f)===e}})},{103:103,114:114,39:39,40:40}],234:[function(n){"use strict";n(104)("fixed",function(n){return function(){return n(this,"tt","","")}})},{104:104}],235:[function(n){"use strict";n(104)("fontcolor",function(n){return function(t){return n(this,"font","color",t)}})},{104:104}],236:[function(n){"use strict";n(104)("fontsize",function(n){return function(t){return n(this,"font","size",t)}})},{104:104}],237:[function(n){var t=n(39),u=n(110),i=String.fromCharCode,r=String.fromCodePoint;t(t.S+t.F*(!!r&&1!=r.length),"String",{fromCodePoint:function(){for(var n,t=[],f=arguments.length,r=0;f>r;){if(n=+arguments[r++],u(n,1114111)!==n)throw RangeError(n+" is not a valid code point");t.push(n<65536?i(n):i(55296+((n-=65536)>>10),n%1024+56320))}return t.join("")}})},{110:110,39:39}],238:[function(n){"use strict";var t=n(39),i=n(103);t(t.P+t.F*n(40)("includes"),"String",{includes:function(n){return!!~i(this,n,"includes").indexOf(n,arguments.length>1?arguments[1]:void 0)}})},{103:103,39:39,40:40}],239:[function(n){"use strict";n(104)("italics",function(n){return function(){return n(this,"i","","")}})},{104:104}],240:[function(n){"use strict";var t=n(102)(!0);n(60)(String,"String",function(n){this._t=String(n);this._i=0},function(){var n,i=this._t,r=this._i;return r>=i.length?{value:void 0,done:!0}:(n=t(i,r),this._i+=n.length,{value:n,done:!1})})},{102:102,60:60}],241:[function(n){"use strict";n(104)("link",function(n){return function(t){return n(this,"a","href",t)}})},{104:104}],242:[function(n){var t=n(39),i=n(113),r=n(114);t(t.S,"String",{raw:function(n){for(var f=i(n.raw),e=r(f.length),o=arguments.length,u=[],t=0;e>t;)u.push(String(f[t++])),t<o&&u.push(String(arguments[t]));return u.join("")}})},{113:113,114:114,39:39}],243:[function(n){var t=n(39);t(t.P,"String",{repeat:n(106)})},{106:106,39:39}],244:[function(n){"use strict";n(104)("small",function(n){return function(){return n(this,"small","","")}})},{104:104}],245:[function(n){"use strict";var t=n(39),r=n(114),u=n(103),i="".startsWith;t(t.P+t.F*n(40)("startsWith"),"String",{startsWith:function(n){var t=u(this,n,"startsWith"),f=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),e=String(n);return i?i.call(t,e,f):t.slice(f,f+e.length)===e}})},{103:103,114:114,39:39,40:40}],246:[function(n){"use strict";n(104)("strike",function(n){return function(){return n(this,"strike","","")}})},{104:104}],247:[function(n){"use strict";n(104)("sub",function(n){return function(){return n(this,"sub","","")}})},{104:104}],248:[function(n){"use strict";n(104)("sup",function(n){return function(){return n(this,"sup","","")}})},{104:104}],249:[function(n){"use strict";n(107)("trim",function(n){return function(){return n(this,3)}})},{107:107}],250:[function(n){"use strict";var v=n(45),t=n(46),k=n(35),u=n(39),lt=n(93),ui=n(69).KEY,at=n(41),d=n(99),g=n(97),fi=n(120),h=n(125),ei=n(124),oi=n(123),si=n(38),hi=n(54),nt=n(15),ci=n(56),y=n(113),tt=n(116),it=n(91),c=n(73),vt=n(77),yt=n(76),pt=n(74),li=n(82),wt=yt.f,o=pt.f,bt=vt.f,i=v.Symbol,p=v.JSON,w=p&&p.stringify,r=h("_hidden"),kt=h("toPrimitive"),ai={}.propertyIsEnumerable,l=d("symbol-registry"),e=d("symbols"),a=d("op-symbols"),f=Object.prototype,s="function"==typeof i,rt=v.QObject,ut=!rt||!rt.prototype||!rt.prototype.findChild,ft=k&&at(function(){return 7!=c(o({},"a",{get:function(){return o(this,"a",{value:7}).a}})).a})?function(n,t,i){var r=wt(f,t);r&&delete f[t];o(n,t,i);r&&n!==f&&o(f,t,r)}:o,dt=function(n){var t=e[n]=c(i.prototype);return t._k=n,t},et=s&&"symbol"==typeof i.iterator?function(n){return"symbol"==typeof n}:function(n){return n instanceof i},b=function(n,i,u){return n===f&&b(a,i,u),nt(n),i=tt(i,!0),nt(u),t(e,i)?(u.enumerable?(t(n,r)&&n[r][i]&&(n[r][i]=!1),u=c(u,{enumerable:it(0,!1)})):(t(n,r)||o(n,r,it(1,{})),n[r][i]=!0),ft(n,i,u)):o(n,i,u)},gt=function(n,t){nt(n);for(var i,r=si(t=y(t)),u=0,f=r.length;f>u;)b(n,i=r[u++],t[i]);return n},vi=function(n,t){return void 0===t?c(n):gt(c(n),t)},ni=function(n){var i=ai.call(this,n=tt(n,!0));return!(this===f&&t(e,n)&&!t(a,n))&&(!(i||!t(this,n)||!t(e,n)||t(this,r)&&this[r][n])||i)},ti=function(n,i){if(n=y(n),i=tt(i,!0),n!==f||!t(e,i)||t(a,i)){var u=wt(n,i);return!u||!t(e,i)||t(n,r)&&n[r][i]||(u.enumerable=!0),u}},ii=function(n){for(var i,u=bt(y(n)),f=[],o=0;u.length>o;)t(e,i=u[o++])||i==r||i==ui||f.push(i);return f},ri=function(n){for(var i,r=n===f,u=bt(r?a:y(n)),o=[],s=0;u.length>s;)t(e,i=u[s++])&&(!r||t(f,i))&&o.push(e[i]);return o},ot,st,ht,ct;for(s||(i=function(){if(this instanceof i)throw TypeError("Symbol is not a constructor!");var n=fi(arguments.length>0?arguments[0]:void 0),u=function(i){this===f&&u.call(a,i);t(this,r)&&t(this[r],n)&&(this[r][n]=!1);ft(this,n,it(1,i))};return k&&ut&&ft(f,n,{configurable:!0,set:u}),dt(n)},lt(i.prototype,"toString",function(){return this._k}),yt.f=ti,pt.f=b,n(78).f=vt.f=ii,n(83).f=ni,n(79).f=ri,k&&!n(64)&&lt(f,"propertyIsEnumerable",ni,!0),ei.f=function(n){return dt(h(n))}),u(u.G+u.W+u.F*!s,{Symbol:i}),ot="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),st=0;ot.length>st;)h(ot[st++]);for(ht=li(h.store),ct=0;ht.length>ct;)oi(ht[ct++]);u(u.S+u.F*!s,"Symbol",{"for":function(n){return t(l,n+="")?l[n]:l[n]=i(n)},keyFor:function(n){if(!et(n))throw TypeError(n+" is not a symbol!");for(var t in l)if(l[t]===n)return t},useSetter:function(){ut=!0},useSimple:function(){ut=!1}});u(u.S+u.F*!s,"Object",{create:vi,defineProperty:b,defineProperties:gt,getOwnPropertyDescriptor:ti,getOwnPropertyNames:ii,getOwnPropertySymbols:ri});p&&u(u.S+u.F*(!s||at(function(){var n=i();return"[null]"!=w([n])||"{}"!=w({a:n})||"{}"!=w(Object(n))})),"JSON",{stringify:function(n){for(var t,r,i=[n],u=1;arguments.length>u;)i.push(arguments[u++]);if(r=t=i[1],(ci(t)||void 0!==n)&&!et(n))return hi(t)||(t=function(n,t){if("function"==typeof r&&(t=r.call(this,n,t)),!et(t))return t}),i[1]=t,w.apply(p,i)}});i.prototype[kt]||n(47)(i.prototype,kt,i.prototype.valueOf);g(i,"Symbol");g(Math,"Math",!0);g(v.JSON,"JSON",!0)},{113:113,116:116,120:120,123:123,124:124,125:125,15:15,35:35,38:38,39:39,41:41,45:45,46:46,47:47,54:54,56:56,64:64,69:69,73:73,74:74,76:76,77:77,78:78,79:79,82:82,83:83,91:91,93:93,97:97,99:99}],251:[function(n){"use strict";var t=n(39),r=n(119),u=n(118),f=n(15),e=n(110),l=n(114),a=n(56),o=n(45).ArrayBuffer,v=n(100),i=u.ArrayBuffer,s=u.DataView,h=r.ABV&&o.isView,c=i.prototype.slice,y=r.VIEW;t(t.G+t.W+t.F*(o!==i),{ArrayBuffer:i});t(t.S+t.F*!r.CONSTR,"ArrayBuffer",{isView:function(n){return h&&h(n)||a(n)&&y in n}});t(t.P+t.U+t.F*n(41)(function(){return!new i(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(n,t){if(void 0!==c&&void 0===t)return c.call(f(this),n);for(var r=f(this).byteLength,u=e(n,r),o=e(void 0===t?r:t,r),h=new(v(this,i))(l(o-u)),a=new s(this),y=new s(h),p=0;u<o;)y.setUint8(p++,a.getUint8(u++));return h}});n(96)("ArrayBuffer")},{100:100,110:110,114:114,118:118,119:119,15:15,39:39,41:41,45:45,56:56,96:96}],252:[function(n){var t=n(39);t(t.G+t.W+t.F*!n(119).ABV,{DataView:n(118).DataView})},{118:118,119:119,39:39}],253:[function(n){n(117)("Float32",4,function(n){return function(t,i,r){return n(this,t,i,r)}})},{117:117}],254:[function(n){n(117)("Float64",8,function(n){return function(t,i,r){return n(this,t,i,r)}})},{117:117}],255:[function(n){n(117)("Int16",2,function(n){return function(t,i,r){return n(this,t,i,r)}})},{117:117}],256:[function(n){n(117)("Int32",4,function(n){return function(t,i,r){return n(this,t,i,r)}})},{117:117}],257:[function(n){n(117)("Int8",1,function(n){return function(t,i,r){return n(this,t,i,r)}})},{117:117}],258:[function(n){n(117)("Uint16",2,function(n){return function(t,i,r){return n(this,t,i,r)}})},{117:117}],259:[function(n){n(117)("Uint32",4,function(n){return function(t,i,r){return n(this,t,i,r)}})},{117:117}],260:[function(n){n(117)("Uint8",1,function(n){return function(t,i,r){return n(this,t,i,r)}})},{117:117}],261:[function(n){n(117)("Uint8",1,function(n){return function(t,i,r){return n(this,t,i,r)}},!0)},{117:117}],262:[function(n,t){"use strict";var r,l=n(19)(0),a=n(93),u=n(69),v=n(72),i=n(27),f=n(56),y=n(41),e=n(122),p=u.getWeak,w=Object.isExtensible,b=i.ufstore,o={},s=function(n){return function(){return n(this,arguments.length>0?arguments[0]:void 0)}},h={get:function(n){if(f(n)){var t=p(n);return!0===t?b(e(this,"WeakMap")).get(n):t?t[this._i]:void 0}},set:function(n,t){return i.def(e(this,"WeakMap"),n,t)}},c=t.exports=n(28)("WeakMap",s,h,i,!0,!0);y(function(){return 7!=(new c).set((Object.freeze||Object)(o),7).get(o)})&&(r=i.getConstructor(s,"WeakMap"),v(r.prototype,h),u.NEED=!0,l(["delete","has","get","set"],function(n){var t=c.prototype,i=t[n];a(t,n,function(t,u){if(f(t)&&!w(t)){this._f||(this._f=new r);var e=this._f[n](t,u);return"set"==n?this:e}return i.call(this,t,u)})}))},{122:122,19:19,27:27,28:28,41:41,56:56,69:69,72:72,93:93}],263:[function(n){"use strict";var t=n(27),i=n(122);n(28)("WeakSet",function(n){return function(){return n(this,arguments.length>0?arguments[0]:void 0)}},{add:function(n){return t.def(i(this,"WeakSet"),n,!0)}},t,!1,!0)},{122:122,27:27,28:28}],264:[function(n){"use strict";var t=n(39),i=n(18)(!0);t(t.P,"Array",{includes:function(n){return i(this,n,arguments.length>1?arguments[1]:void 0)}});n(13)("includes")},{13:13,18:18,39:39}],265:[function(n){var t=n(39),i=n(85)(!0);t(t.S,"Object",{entries:function(n){return i(n)}})},{39:39,85:85}],266:[function(n){var t=n(39),i=n(86),r=n(113),u=n(76),f=n(30);t(t.S,"Object",{getOwnPropertyDescriptors:function(n){for(var t,e,o=r(n),l=u.f,s=i(o),h={},c=0;s.length>c;)void 0!==(e=l(o,t=s[c++]))&&f(h,t,e);return h}})},{113:113,30:30,39:39,76:76,86:86}],267:[function(n){var t=n(39),i=n(85)(!1);t(t.S,"Object",{values:function(n){return i(n)}})},{39:39,85:85}],268:[function(n){"use strict";var t=n(39),r=n(29),u=n(45),f=n(100),i=n(90);t(t.P+t.R,"Promise",{"finally":function(n){var t=f(this,r.Promise||u.Promise),e="function"==typeof n;return this.then(e?function(r){return i(t,n()).then(function(){return r})}:n,e?function(r){return i(t,n()).then(function(){throw r;})}:n)}})},{100:100,29:29,39:39,45:45,90:90}],269:[function(n){"use strict";var t=n(39),i=n(105),r=n(121);t(t.P+t.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(r),"String",{padEnd:function(n){return i(this,n,arguments.length>1?arguments[1]:void 0,!1)}})},{105:105,121:121,39:39}],270:[function(n){"use strict";var t=n(39),i=n(105),r=n(121);t(t.P+t.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(r),"String",{padStart:function(n){return i(this,n,arguments.length>1?arguments[1]:void 0,!0)}})},{105:105,121:121,39:39}],271:[function(n){n(123)("asyncIterator")},{123:123}],272:[function(n){for(var f=n(137),p=n(82),w=n(93),b=n(45),e=n(47),o=n(63),s=n(125),h=s("iterator"),c=s("toStringTag"),l=o.Array,a={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=p(a),u=0;u<v.length;u++){var i,r=v[u],k=a[r],y=b[r],t=y&&y.prototype;if(t&&(t[h]||e(t,h,l),t[c]||e(t,c,r),o[r]=l,k))for(i in f)t[i]||w(t,i,f[i],!0)}},{125:125,137:137,45:45,47:47,63:63,82:82,93:93}],273:[function(n){var t=n(39),i=n(109);t(t.G+t.B,{setImmediate:i.set,clearImmediate:i.clear})},{109:109,39:39}],274:[function(n){var i=n(45),t=n(39),u=n(121),f=[].slice,e=/MSIE .\./.test(u),r=function(n){return function(t,i){var r=arguments.length>2,u=!!r&&f.call(arguments,2);return n(r?function(){("function"==typeof t?t:Function(t)).apply(this,u)}:t,i)}};t(t.G+t.B+t.F*e,{setTimeout:r(i.setTimeout),setInterval:r(i.setInterval)})},{121:121,39:39,45:45}],275:[function(n,t){n(274);n(273);n(272);t.exports=n(29)},{272:272,273:273,274:274,29:29}],276:[function(n,t){!function(n){"use strict";function tt(n,t,i,r){var f=t&&t.prototype instanceof w?t:w,u=Object.create(f.prototype),e=new k(r||[]);return u._invoke=ht(n,i,e),u}function p(n,t,i){try{return{type:"normal",arg:n.call(t,i)}}catch(n){return{type:"throw",arg:n}}}function w(){}function h(){}function o(){}function it(n){["next","throw","return"].forEach(function(t){n[t]=function(n){return this._invoke(t,n)}})}function c(n){function t(i,r,u,e){var h=p(n[i],n,r),s,o;if("throw"!==h.type)return s=h.arg,o=s.value,o&&"object"==typeof o&&f.call(o,"__await")?Promise.resolve(o.__await).then(function(n){t("next",n,u,e)},function(n){t("throw",n,u,e)}):Promise.resolve(o).then(function(n){s.value=n;u(s)},e);e(h.arg)}function r(n,r){function u(){return new Promise(function(i,u){t(n,r,i,u)})}return i=i?i.then(u,u):u()}var i;this._invoke=r}function ht(n,t,i){var u=ot;return function(f,e){var h,s,o;if(u===st)throw new Error("Generator is already running");if(u===v){if("throw"===f)throw e;return ut()}for(i.method=f,i.arg=e;;){if(h=i.delegate,h&&(s=rt(h,i),s)){if(s===r)continue;return s}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(u===ot)throw u=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);if(u=st,o=p(n,t,i),"normal"===o.type){if(u=i.done?v:at,o.arg===r)continue;return{value:o.arg,done:i.done}}"throw"===o.type&&(u=v,i.method="throw",i.arg=o.arg)}}}function rt(n,t){var e=n.iterator[t.method],f,i;if(e===u){if(t.delegate=null,"throw"===t.method){if(n.iterator.return&&(t.method="return",t.arg=u,rt(n,t),"throw"===t.method))return r;t.method="throw";t.arg=new TypeError("The iterator does not provide a 'throw' method")}return r}return(f=p(e,n.iterator,t.arg),"throw"===f.type)?(t.method="throw",t.arg=f.arg,t.delegate=null,r):(i=f.arg,i?i.done?(t[n.resultName]=i.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=u),t.delegate=null,r):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,r))}function ct(n){var t={tryLoc:n[0]};1 in n&&(t.catchLoc=n[1]);2 in n&&(t.finallyLoc=n[2],t.afterLoc=n[3]);this.tryEntries.push(t)}function b(n){var t=n.completion||{};t.type="normal";delete t.arg;n.completion=t}function k(n){this.tryEntries=[{tryLoc:"root"}];n.forEach(ct,this);this.reset(!0)}function d(n){var r,i,e;if(n){if(r=n[l],r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length))return i=-1,e=function t(){for(;++i<n.length;)if(f.call(n,i))return t.value=n[i],t.done=!1,t;return t.value=u,t.done=!0,t},e.next=e}return{next:ut}}function ut(){return{value:u,done:!0}}var u,ft=Object.prototype,f=ft.hasOwnProperty,g="function"==typeof Symbol?Symbol:{},l=g.iterator||"@@iterator",lt=g.asyncIterator||"@@asyncIterator",a=g.toStringTag||"@@toStringTag",et="object"==typeof t,i=n.regeneratorRuntime,y,s,e;if(i)return void(et&&(t.exports=i));i=n.regeneratorRuntime=et?t.exports:{};i.wrap=tt;var ot="suspendedStart",at="suspendedYield",st="executing",v="completed",r={},nt={};nt[l]=function(){return this};y=Object.getPrototypeOf;s=y&&y(y(d([])));s&&s!==ft&&f.call(s,l)&&(nt=s);e=o.prototype=w.prototype=Object.create(nt);h.prototype=e.constructor=o;o.constructor=h;o[a]=h.displayName="GeneratorFunction";i.isGeneratorFunction=function(n){var t="function"==typeof n&&n.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))};i.mark=function(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,o):(n.__proto__=o,a in n||(n[a]="GeneratorFunction")),n.prototype=Object.create(e),n};i.awrap=function(n){return{__await:n}};it(c.prototype);c.prototype[lt]=function(){return this};i.AsyncIterator=c;i.async=function(n,t,r,u){var f=new c(tt(n,t,r,u));return i.isGeneratorFunction(t)?f:f.next().then(function(n){return n.done?n.value:f.next()})};it(e);e[a]="Generator";e[l]=function(){return this};e.toString=function(){return"[object Generator]"};i.keys=function(n){var i=[],r;for(r in n)i.push(r);return i.reverse(),function t(){for(;i.length;){var r=i.pop();if(r in n)return t.value=r,t.done=!1,t}return t.done=!0,t}};i.values=d;k.prototype={constructor:k,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(b),!n)for(var t in this)"t"===t.charAt(0)&&f.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=u)},stop:function(){this.done=!0;var t=this.tryEntries[0],n=t.completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function(n){function i(t,i){return o.type="throw",o.arg=n,r.next=t,i&&(r.method="next",r.arg=u),!!i}var r,e,t,o,s,h;if(this.done)throw n;for(r=this,e=this.tryEntries.length-1;e>=0;--e){if(t=this.tryEntries[e],o=t.completion,"root"===t.tryLoc)return i("end");if(t.tryLoc<=this.prev)if(s=f.call(t,"catchLoc"),h=f.call(t,"finallyLoc"),s&&h){if(this.prev<t.catchLoc)return i(t.catchLoc,!0);if(this.prev<t.finallyLoc)return i(t.finallyLoc)}else if(s){if(this.prev<t.catchLoc)return i(t.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<t.finallyLoc)return i(t.finallyLoc)}}},abrupt:function(n,t){for(var u,i,o,e=this.tryEntries.length-1;e>=0;--e)if(u=this.tryEntries[e],u.tryLoc<=this.prev&&f.call(u,"finallyLoc")&&this.prev<u.finallyLoc){i=u;break}return i&&("break"===n||"continue"===n)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null),o=i?i.completion:{},o.type=n,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,r):this.complete(o)},complete:function(n,t){if("throw"===n.type)throw n.arg;return"break"===n.type||"continue"===n.type?this.next=n.arg:"return"===n.type?(this.rval=this.arg=n.arg,this.method="return",this.next="end"):"normal"===n.type&&t&&(this.next=t),r},finish:function(n){for(var t,i=this.tryEntries.length-1;i>=0;--i)if(t=this.tryEntries[i],t.finallyLoc===n)return this.complete(t.completion,t.afterLoc),b(t),r},"catch":function(n){for(var i,r,u,t=this.tryEntries.length-1;t>=0;--t)if(i=this.tryEntries[t],i.tryLoc===n)return r=i.completion,"throw"===r.type&&(u=r.arg,b(i)),u;throw new Error("illegal catch attempt");},delegateYield:function(n,t,i){return this.delegate={iterator:d(n),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=u),r}}}(function(){return this}()||Function("return this")())},{}]},{},[1])