PageSourceSearch

https://www.facebookblueprint.com/assets/student/application-c7505…22c43d14c019e2275c40037a981e9ff0d55e5874.js

js facebookblueprint.com collected 2026-09-24 08:59:08 UTC 413,848 bytes, 13 lines download raw bytes

1function createFlashNotification(e,t,n){Intellum.flashnotice.show(e,t,n)}function trim(e){return e.replace(/^\s*|\s*$/g,"")}function getQueryStringFromKeys(e){var t=getJsonFromUrl(),n="";return e.forEach(function(i){e.indexOf(i)>-1&&void 0!==t[i]&&(n+="&"+i+"="+t[i])}),n}function getJsonFromUrl(){var e=location.search.substr(1),t={};return e.split("&").forEach(function(e){var n=e.split("=");t[n[0]]=n[1]}),t}function getDataLayerValueOf(e){return result="",window.dataLayer&&window.dataLayer.forEach(function(t){null!=t[e]&&(result=t[e])}),result}function time_from_seconds(e){0===e.length&&(e=0);var t=Math.floor(e/3600);e-=60*t*60;var n=Math.floor(e/60),i=e-=60*n,r=[];return r.push(t<10?"0"+t:t),r.push(n<10?"0"+n:n),r.push(i<10?"0"+i:i),r.join(":")}function updateAssessmentTime(e){var t=parseInt($("#question_time").val());t+=e,$("#question_time").val(t);var n=parseInt($("#time").val());n+=e,$("#time").val(n),$("#left-assessment-time").val(n),$("#time_header").text(time_from_seconds(n))}function updateTextAreaCharactersLeft(e,t){e.find("span").text(t)}function markAssessmentTimeExpired(){return $("form#time-limit-expired").submit(),$("#timed_assessment_time_ran_out")[0].dispatchEvent(new window.CustomEvent("show.dialog")),!0}
1function redirectToActivityURL(){var e=$("#time-remaining-display").data("activity-url");window.location=e}function leaveTimedAssessmentEarly(){$("form#leave-early").submit()}function startAssessmentTimer(e,t){function n(){var n,o,a,s,l,c,u;a=(n=e-((Date.now()-r)/1e3|0))/60-60*(o=n/3600|0)|0,(s=n%60|0)<0&&(s=0),0==o&&0==a&&s<=20?$(t).addClass("course__time-warning"):$(t).removeClass("course__time-warning"),l=o<10?"0"+o:o,c=a<10?"0"+a:a,u=s<10?"0"+s:s,t.textContent=l+":"+c+":"+u,0==o&&0==a&&0==s&&(clearInterval(i),markAssessmentTimeExpired())}var i,r=Date.now();n(),i=setInterval(n,1e3)}function getCurrentTextValues(){var e={};return $("[data-unsaved-answer-or-grading] textarea, [data-unsaved-answer-or-grading] input[type='text']").each(function(){e[this.name]=this.value}),e}function submitQuestionFormIfTextHasChanged(){var e=getCurrentTextValues();jQuery.each(e,function(e,t){t!=window.textValuesSinceTheirLastSave[e]&&($("[name='"+e+"']").parents("form").submit(),window.textValuesSinceTheirLastSave[e]=t)})}function submitQuestionFormOnUserInteraction(){$(document).on("change sortableStop","[data-unsaved-answer-or-grading] input[type=radio],[data-unsaved-answer-or-grading] input[type=checkbox], [data-unsaved-answer-or-grading] .sequence__list--enabled",function(){const e=$(this).parents("form");e.attr("data-unsaved-answer-or-grading",!0);const t=e.attr("action");inFlightSubmissions[t]=inFlightSubmissions[t]||[],inFlightSubmissions[t].push(e),1===inFlightSubmissions[t].length&&e.submit()}),$(document).on("ajax:success","form[data-unsaved-answer-or-grading]",function(e){$(this).find($("[data-error-message]")).hide();const t=e.target.getAttribute("action");if((inFlightSubmissions[t]||[]).shift(),(inFlightSubmissions[t]||[]).length>0){inFlightSubmissions[t][0].submit()}else $(this).attr("data-unsaved-answer-or-grading",!1)}),$(document).on("ajax:error","form[data-unsaved-answer-or-grading]",function(e){const t=e.target.getAttribute("action");if((inFlightSubmissions[t]||[]).shift(),(inFlightSubmissions[t]||[]).length>0){inFlightSubmissions[t][0].submit()}$(this).find($("[data-error-message]")).show()}),window.textValuesSinceTheirLastSave=getCurrentTextValues(),setInterval(submitQuestionFormIfTextHasChanged,5e3)}function createSortables(){jQuery.each($(".sequence__list--enabled"),function(){createSortable($(this))})}function createSortable(e){var t=!1,n=function(){t||$(this).addClass("sequence__listitem--hover")},i=function(){$(this).removeClass("sequence__listitem--hover")};e.children().hover(n,i),e.keyboardSortable({axis:"y",placeholder:"sequence__listitem sequence__listitem--placeholder",forcePlaceholderSize:!0,tolerance:"pointer",revert:200,start:function(e,n){
1n.item.addClass("sequence__listitem--moving"),t=!0},stop:function(n,i){i.item.removeClass("sequence__listitem--moving"),t=!1,e.trigger("sortableStop")}})}function handleSectionNavigation(){$("[data-move-to-assessment-section]").on("click keyup",function(e){return e.preventDefault(),e.stopPropagation(),e.key&&"Enter"!=e.key||"true"==$(this).attr("data-already-clicked")||($(this).attr("data-already-clicked",!0),$(this).text($(this).attr("data-clicked-text")),handleAssessmentSubmitOrSectionMove($(this))),!1})}function handleAssessmentSubmitOrSectionMove(e){0!==$(document).find("[data-unsaved-answer-or-grading=true]").length?setTimeout(handleAssessmentSubmitOrSectionMove,100,e):$.ajax({url:e.data("href")||e.data("url"),data:{time:$("#time").val()},type:e.data("http-method"),success:function(e){if($("#confirm-single-page-assessment-submit").trigger("hide.dialog"),$("#confirm-single-page-grading-submit").trigger("hide.dialog"),e.html){if($(document).find("[data-assessment-single-page]").replaceWith(e.html),$(document).find("[data-question-text-area]").each(function(){$(this).val()===$(this).attr("placeholder")&&$(this).val("")}
1),!0===e.scroll_to_first_error){$(document).find(".question__errors:visible").not("[data-main-error-message]").first().parents(".question")[0].scrollIntoView()}else{var t=$(document).find("[data-assessment-single-page]");t&&t[0]&&t[0].scrollIntoView()}createSortables(),window.textValuesSinceTheirLastSave=getCurrentTextValues(),$("a[data-assessment-single-page-submit]").text($("a[data-assessment-single-page-submit]").attr("data-unclicked-text")),$("a[data-assessment-single-page-submit]").attr("data-already-clicked",!1),$(document).find("[data-assessment-sections-list]").replaceWith(e.sections_list_html),handleSectionNavigation(),$("[data-unsaved-answer-or-grading=true] .sequence__list--enabled").closest("form").submit(),window.Intellum.util.reinitialize.trigger()}else e.assessment_redirect_url?window.location.replace(e.assessment_redirect_url):window.location.reload()}})}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t,n){var i,r,o=(n=n||de).createElement("script");if(o.text=e,t)for(i in fe)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function i(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ie[re.call(e)]||"object":typeof e}function r(e){var t=!!e&&"length"in e&&e.length,n=i(e);return!ce(e)&&!ue(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function o(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function a(e,t,n){return ce(t)?he.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?he.grep(e,function(e){return e===t!==n}):"string"!=typeof t?he.grep(e,function(e){return-1<ne.call(t,e)!==n}):he.filter(t,e,n)}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e){return e}function c(e){throw e}function u(e,t,n,i){var r;try{e&&ce(r=e.promise)?r.call(e).done(t).fail(n):e&&ce(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}function d(){de.removeEventListener("DOMContentLoaded",d),e.removeEventListener("load",d),he.ready()}function f(e,t){return t.toUpperCase()}function p(e){return e.replace(Ce,"ms-").replace(Se,f)}function h(){this.expando=he.expando+h.uid++}function m(e,t,n){var i,r;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(qe,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:Ne.test(r)?JSON.parse(r):r)}catch(e){}Oe.set(e,t,n)}else n=void 0;return n}function g(e,t,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return he.css(e,t,"")},l=s(),c=n&&n[3]||(he.cssNumber[t]?"":"px"),u=e.nodeType&&(he.cssNumber[t]||"px"!==c&&+l)&&Me.exec(he.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)he.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,he.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}function v(e,t){for(var n,i,r,o,a,s,l,c=[],u=0,d=e.length;u<d;u++)(i=e[u]).style&&(n=i.style.display,t?("none"===n&&(c[u]=Le.get(i,"display")||null,c[u]||(i.style.display="")),""===i.style.display&&Be(i)&&(c[u]=(l=a=o=void 0,a=(r=i).ownerDocument,s=r.nodeName,(l=$e[s])||(o=a.body.appendChild(a.createElement(s)),l=he.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),$e[s]=l)))):"none"!==n&&(c[u]="none",Le.set(i,"display",n)));for(u=0;u<d;u++)null!=c[u]&&(e[u].style.display=c[u]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&o(e,t)?he.merge([e],n):n}function b(e,t){for(var n=0,i=e.length;n<i;n++)Le.set(e[n],"globalEval",!t||Le.get(t[n],"globalEval"))}function w(e,t,n,r,o){for(var a,s,l,c,u,d,f=t.createDocumentFragment(),p=[],h=0,m=e.length;h<m;h++)if((a=e[h])||0===a)if("object"===i(a))he.merge(p,a.nodeType?[a]:a);else if(Qe.test(a)){for(s=s||f.appendChild(t.createElement("div")),l=(Xe.exec(a)||["",""])[1].toLowerCase(),c=Ve[l]||Ve._default,s.innerHTML=c[1]+he.htmlPrefilter(a)+c[2],d=c[0];d--;)s=s.lastChild;he.merge(p,s.childNodes),(s=f.firstChild).textContent=""}else p.push(t.createTextNode(a));for(f.textContent="",h=0;a=p[h++];)if(r&&-1<he.inArray(a,r))o&&o.push(a);else if(u=He(a),s=y(f.appendChild(a),"script"),u&&b(s),n)for(d=0;a=s[d++];)Ye.test(a.type||"")&&n.push(a);return f}function x(){return!0}function _(){return!1}function E(e,t){return e===function(){try{return de.activeElement}catch(e){}}()==("focus"===t)}function A(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)A(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=_;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return he().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=he.guid++)),e.each(function(){he.event.add(this,t,r,i,n)})}
vendor: 4,870 bytes, line 1
1function k(e,t,n){n?(Le.set(e,t,!1),he.event.add(e,t,{namespace:!1,handler:function(e){var i,r,o=Le.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(he.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=Z.call(arguments),Le.set(this,t,o),i=n(this,t),this[t](),o!==(r=Le.get(this,t))||i?Le.set(this,t,!1):r={},o!==r)return e.stopImmediatePropagation(),e.preventDefault(),r&&r.value}else o.length&&(Le.set(this,t,{value:he.event.trigger(he.extend(o[0],he.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Le.get(e,t)&&he.event.add(e,t,x)}function T(e,t){return o(e,"table")&&o(11!==t.nodeType?t:t.firstChild,"tr")&&he(e).children("tbody")[0]||e}function I(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function C(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function S(e,t){var n,i,r,o,a,s;if(1===t.nodeType){if(Le.hasData(e)&&(s=Le.get(e).events))for(r in Le.remove(t,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)he.event.add(t,r,s[r][n]);Oe.hasData(e)&&(o=Oe.access(e),a=he.extend({},o),Oe.set(t,a))}}function D(e,t,i,r){t=ee(t);var o,a,s,l,c,u,d=0,f=e.length,p=f-1,h=t[0],m=ce(h);if(m||1<f&&"string"==typeof h&&!le.checkClone&&Ge.test(h))return e.each(function(n){var o=e.eq(n);m&&(t[0]=h.call(this,n,o.html())),D(o,t,i,r)});if(f&&(a=(o=w(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=a),a||r)){for(l=(s=he.map(y(o,"script"),I)).length;d<f;d++)c=o,d!==p&&(c=he.clone(c,!0,!0),l&&he.merge(s,y(c,"script"))),i.call(e[d],c,d);if(l)for(u=s[s.length-1].ownerDocument,he.map(s,C),d=0;d<l;d++)c=s[d],Ye.test(c.type||"")&&!Le.access(c,"globalEval")&&he.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?he._evalUrl&&!c.noModule&&he._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):n(c.textContent.replace(Ze,""),c,u))}return e}function L(e,t,n){for(var i,r=t?he.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||he.cleanData(y(i)),i.parentNode&&(n&&He(i)&&b(y(i,"script")),i.parentNode.removeChild(i));return e}function O(e,t,n){var i,r,o,a,s=e.style;return(n=n||tt(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||He(e)||(a=he.style(e,t)),!le.pixelBoxStyles()&&et.test(a)&&it.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function N(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function q(e){return he.cssProps[e]||at[e]||(e in ot?e:at[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=rt.length;n--;)if((e=rt[n]+t)in ot)return e}(e)||e)}function j(e,t,n){var i=Me.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function M(e,t,n,i,r,o){var a="width"===t?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=he.css(e,n+Re[a],!0,r)),i?("content"===n&&(l-=he.css(e,"padding"+Re[a],!0,r)),"margin"!==n&&(l-=he.css(e,"border"+Re[a]+"Width",!0,r))):(l+=he.css(e,"padding"+Re[a],!0,r),"padding"!==n?l+=he.css(e,"border"+Re[a]+"Width",!0,r):s+=he.css(e,"border"+Re[a]+"Width",!0,r));return!i&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function R(e,t,n){var i=tt(e),r=(!le.boxSizingReliable()||n)&&"border-box"===he.css(e,"boxSizing",!1,i),a=r,s=O(e,t,i),l="offset"+t[0].toUpperCase()+t.slice(1);if(et.test(s)){if(!n)return s;s="auto"}return(!le.boxSizingReliable()&&r||!le.reliableTrDimensions()&&o(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===he.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===he.css(e,"boxSizing",!1,i),(a=l in e)&&(s=e[l])),(s=parseFloat(s)||0)+M(e,t,n||(r?"border":"content"),a,i,s)+"px"}function P(e,t,n,i,r){return new P.prototype.init(e,t,n,i,r)}function H(){ft&&(!1===de.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(H):e.setTimeout(H,he.fx.interval),he.fx.tick())}function F(){return e.setTimeout(function(){dt=void 0}),dt=Date.now()}function B(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=Re[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function $(e,t,n){for(var i,r=(z.tweeners[t]||[]).concat(z.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function z(e,t,n){var i,r,o=0,a=z.prefilters.length,s=he.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=dt||F(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(i);return s.notifyWith(e,[c,i,n]),i<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:he.extend({},t),opts:he.extend(!0,{specialEasing:{},easing:he.easing._default},n),originalProperties:t,originalOptions:n,startTime:dt||F(),duration:n.duration,tweens:[],createTween:function(t,n){var i=he.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||
vendor: 6,970 bytes, line 1
1c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=p(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=he.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);o<a;o++)if(i=z.prefilters[o].call(c,e,u,c.opts))return ce(i.stop)&&(he._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return he.map(u,$,c),ce(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),he.fx.timer(he.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}function W(e){return(e.match(Ae)||[]).join(" ")}function U(e){return e.getAttribute&&e.getAttribute("class")||""}function X(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Ae)||[]}function Y(e,t,n,r){var o;if(Array.isArray(t))he.each(t,function(t,i){n||It.test(e)?r(e,i):Y(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==i(t))r(e,t);else for(o in t)Y(e+"["+o+"]",t[o],n,r)}function V(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(Ae)||[];if(ce(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Q(e,t,n,i){function r(s){var l;return o[s]=!0,he.each(e[s]||[],function(e,s){var c=s(t,n,i);return"string"!=typeof c||a||o[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),r(c),!1)}),l}var o={},a=e===Pt;return r(t.dataTypes[0])||!o["*"]&&r("*")}function J(e,t){var n,i,r=he.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&he.extend(!0,e,i),e}var K=[],G=Object.getPrototypeOf,Z=K.slice,ee=K.flat?function(e){return K.flat.call(e)}:function(e){return K.concat.apply([],e)},te=K.push,ne=K.indexOf,ie={},re=ie.toString,oe=ie.hasOwnProperty,ae=oe.toString,se=ae.call(Object),le={},ce=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},ue=function(e){return null!=e&&e===e.window},de=e.document,fe={type:!0,src:!0,nonce:!0,noModule:!0},pe="3.6.0",he=function(e,t){return new he.fn.init(e,t)};he.fn=he.prototype={jquery:pe,constructor:he,length:0,toArray:function(){return Z.call(this)},get:function(e){return null==e?Z.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=he.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return he.each(this,e)},map:function(e){return this.pushStack(he.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(Z.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(he.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(he.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:te,sort:K.sort,splice:K.splice},he.extend=he.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||ce(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&a!==i&&(c&&i&&(he.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[t],o=r&&!Array.isArray(n)?[]:r||he.isPlainObject(n)?n:{},r=!1,a[t]=he.extend(c,o,i)):void 0!==i&&(a[t]=i));return a},he.extend({expando:"jQuery"+(pe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==re.call(e)||(t=G(e))&&("function"!=typeof(n=oe.call(t,"constructor")&&t.constructor)||ae.call(n)!==se))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){n(e,{nonce:t&&t.nonce},i)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?he.merge(n,"string"==typeof e?[e]:e):te.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:ne.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!==a&&i.push(e[r]);return i},map:function(e,t,n){var i,o,a=0,s=[];if(r(e))for(i=e.length;a<i;a++)null!=(o=t(e[a],a,n))&&s.push(o);else for(a in e)null!=(o=t(e[a],a,n))&&s.push(o);return ee(s)},guid:1,support:le}),"function"==typeof Symbol&&(he.fn[Symbol.iterator]=K[Symbol.iterator]),he.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ie["[object "+t+"]"]=t.toLowerCase()});var me=function(e){function t(e,t,n,i){var r,o,a,s,l,c,u,f=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!i&&(D(t),t=t||L,N)){if(11!==h&&(l=ve.exec(e)))if(r=l[1]){if(9===h){if(!(a=t.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(f&&(a=f.getElementById(r))&&R(t,a)&&a.id===r)return n.push(a),n}else{if(l[2])return K.apply(n,t.getElementsByTagName(e)),n;if((r=l[3])&&w.getElementsByClassName&&t.getElementsByClassName)return K.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!U[e+" "]&&(!q||!q.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(u=e,f=t,1===h&&(ce.test(e)||le.test(e))){for((f=ye.test(e)&&d(t.parentNode)||t)===t&&w.scope||((s=t.getAttribute("id"))?s=s.replace(xe,_e):t.setAttribute("id",s=P)),o=(c=A(e)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+p(c[o]);u=c.join(",")}try{return K.apply(n,f.querySelectorAll(u)),n}catch(t){U(e,!0)}finally{s===P&&t.removeAttribute("id")}}}return T(e.replace(ae,"$1"),t,n,i)}function n(){var e=[];return function t(n,i){return e.push(n+" ")>x.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function i(e){return e[P]=!0,e}function r(e){var t=L.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),i=n.length;i--;)x.attrHandle[n[i]]=t}function a(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ae(t)===e
1:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return i(function(t){return t=+t,i(function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function d(e){return e&&void 0!==e.getElementsByTagName&&e}function f(){}function p(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function h(e,t,n){var i=t.dir,r=t.next,o=r||i,a=n&&"parentNode"===o,s=B++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,l){var c,u,d,f=[F,s];if(l){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(u=(d=t[P]||(t[P]={}))[t.uniqueID]||(d[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[i]||t;else{if((c=u[o])&&c[0]===F&&c[1]===s)return f[2]=c[2];if((u[o]=f)[2]=e(t,n,l))return!0}return!1}}function m(e){return 1<e.length?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function g(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),c&&t.push(s)));return a}function v(e,n,r,o,a,s){return o&&!o[P]&&(o=v(o)),a&&!a[P]&&(a=v(a,s)),i(function(i,s,l,c){var u,d,f,p=[],h=[],m=s.length,v=i||function(e,n,i){for(var r=0,o=n.length;r<o;r++)t(e,n[r],i);return i}(n||"*",l.nodeType?[l]:l,[]),y=!e||!i&&n?v:g(v,p,e,l,c),b=r?a||(i?e:m||o)?[]:s:y;if(r&&r(y,b,l,c),o)for(u=g(b,h),o(u,[],l,c),d=u.length;d--;)(f=u[d])&&(b[h[d]]=!(y[h[d]]=f));if(i){if(a||e){if(a){for(u=[],d=b.length;d--;)(f=b[d])&&u.push(y[d]=f);a(null,b=[],u,c)}for(d=b.length;d--;)(f=b[d])&&-1<(u=a?Z(i,f):p[d])&&(i[u]=!(s[u]=f))}}else b=g(b===s?b.splice(m,b.length):b),a?a(null,s,b,c):K.apply(s,b)})}function y(e){for(var t,n,i,r=e.length,o=x.relative[e[0].type],a=o||x.relative[" "],s=o?1:0,l=h(function(e){return e===t},a,!0),c=h(function(e){return-1<Z(t,e)},a,!0),u=[function(e,n,i){var r=!o&&(i||n!==I)||((t=n).nodeType?l(e,n,i):c(e,n,i));return t=null,r}];s<r;s++)if(n=x.relative[e[s].type])u=[h(m(u),n)];else{if((n=x.filter[e[s].type].apply(null,e[s].matches))[P]){for(i=++s;i<r&&!x.relative[e[i].type];i++);return v(1<s&&m(u),1<s&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ae,"$1"),n,s<i&&y(e.slice(s,i)),i<r&&y(e=e.slice(i)),i<r&&p(e))}u.push(n)}return m(u)}var b,w,x,_,E,A,k,T,I,C,S,D,L,O,N,q,j,M,R,P="sizzle"+1*new Date,H=e.document,F=0,B=0,$=n(),z=n(),W=n(),U=n(),X=function(e,t){return e===t&&(S=!0),0},Y={}.hasOwnProperty,V=[],Q=V.pop,J=V.push,K=V.push,G=V.slice,Z=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},ee="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",te="[\\x20\\t\\r\\n\\f]",ne="(?:\\\\[\\da-fA-F]{1,6}"+te+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",ie="\\["+te+"*("+ne+")(?:"+te+"*([*^$|!~]?=)"+te+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ne+"))|)"+te+"*\\]",re=":("+ne+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",oe=new RegExp(te+"+","g"),ae=new RegExp("^"+te+"+|((?:^|[^\\\\])(?:\\\\.)*)"+te+"+$","g"),se=new RegExp("^"+te+"*,"+te+"*"),le=new RegExp("^"+te+"*([>+~]|"+te+")"+te+"*"),ce=new RegExp(te+"|>"),ue=new RegExp(re),de=new RegExp("^"+ne+"$"),fe={ID:new RegExp("^#("+ne+")"),CLASS:new RegExp("^\\.("+ne+")"),TAG:new RegExp("^("+ne+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+te+"*(even|odd|(([+-]|)(\\d*)n|)"+te+"*(?:([+-]|)"+te+"*(\\d+)|))"+te+"*\\)|)","i"),bool:new RegExp("^(?:"+ee+")$","i"),needsContext:new RegExp("^"+te+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+te+"*((?:-\\d)?\\d*)"+te+"*\\)|)(?=[^-]|$)","i")},pe=/HTML$/i,he=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=new RegExp("\\\\[\\da-fA-F]{1,6}"+te+"?|\\\\([^\\r\\n\\f])","g"),we=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,_e=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Ee=function(){D()},Ae=h(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{K.apply(V=G.call(H.childNodes),H.childNodes),V[H.childNodes.length].nodeType}catch(b){K={apply:V.length?function(e,t){J.apply(e,G.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}for(b in w=t.support={},E=t.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;
vendor: 4,344 bytes, line 1
1return!pe.test(t||n&&n.nodeName||"HTML")},D=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:H;return i!=L&&9===i.nodeType&&i.documentElement&&(O=(L=i).documentElement,N=!E(L),H!=L&&(n=L.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ee,!1):n.attachEvent&&n.attachEvent("onunload",Ee)),w.scope=r(function(e){return O.appendChild(e).appendChild(L.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),w.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=r(function(e){return e.appendChild(L.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=ge.test(L.getElementsByClassName),w.getById=r(function(e){return O.appendChild(e).id=P,!L.getElementsByName||!L.getElementsByName(P).length}),w.getById?(x.filter.ID=function(e){var t=e.replace(be,we);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&N){var n=t.getElementById(e);return n?[n]:[]}}):(x.filter.ID=function(e){var t=e.replace(be,we);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&N){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),x.find.TAG=w.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},x.find.CLASS=w.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&N)return t.getElementsByClassName(e)},j=[],q=[],(w.qsa=ge.test(L.querySelectorAll))&&(r(function(e){var t;O.appendChild(e).innerHTML="<a id='"+P+"'></a><select id='"+P+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+te+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||q.push("\\["+te+"*(?:value|"+ee+")"),e.querySelectorAll("[id~="+P+"-]").length||q.push("~="),(t=L.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||q.push("\\["+te+"*name"+te+"*="+te+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||q.push(":checked"),e.querySelectorAll("a#"+P+"+*").length||q.push(".#.+[+~]"),e.querySelectorAll("\\\f"),q.push("[\\r\\n\\f]")}),r(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=L.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&q.push("name"+te+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),q.push(",.*:")})),(w.matchesSelector=ge.test(M=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&r(function(e){w.disconnectedMatch=M.call(e,"*"),M.call(e,"[s!='']:x"),j.push("!=",re)}),q=q.length&&new RegExp(q.join("|")),j=j.length&&new RegExp(j.join("|")),t=ge.test(O.compareDocumentPosition),R=t||ge.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},X=t?function(e,t){if(e===t)return S=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!w.sortDetached&&t.compareDocumentPosition(e)===n?e==L||e.ownerDocument==H&&R(H,e)?-1:t==L||t.ownerDocument==H&&R(H,t)?1:C?Z(C,e)-Z(C,t):0:4&n?-1:1)}:function(e,t){if(e===t)return S=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],l=[t];if(!r||!o)return e==L?-1:t==L?1:r?-1:o?1:C?Z(C,e)-Z(C,t):0;if(r===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;
vendor: 4,351 bytes, lines 1-2
1s[i]===l[i];)i++;return i?a(s[i],l[i]):s[i]==H?-1:l[i]==H?1:0}),L},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if(D(e),w.matchesSelector&&N&&!U[n+" "]&&(!j||!j.test(n))&&(!q||!q.test(n)))try{var i=M.call(e,n);if(i||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){U(n,!0)}return 0<t(n,L,null,[e]).length},t.contains=function(e,t){return(e.ownerDocument||e)!=L&&D(e),R(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!=L&&D(e);var n=x.attrHandle[t.toLowerCase()],i=n&&Y.call(x.attrHandle,t.toLowerCase())?n(e,t,!N):void 0;return void 0!==i?i:w.attributes||!N?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.escape=function(e){return(e+"").replace(xe,_e)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,r=0;if(S=!w.detectDuplicates,C=!w.sortStable&&e.slice(0),e.sort(X),S){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return C=null,e},_=t.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=_(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=_(t);return n},(x=t.selectors={cacheLength:50,createPseudo:i,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){
2return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ue.test(n)&&(t=A(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+te+")"+e+"("+te+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(r){var o=t.attr(r,e);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&-1<o.indexOf(i):"$="===n?i&&o.slice(-i.length)===i:"~="===n?-1<(" "+o.replace(oe," ")+" ").indexOf(i):"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(b=(p=(c=(u=(d=(f=g)[P]||(f[P]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===F&&c[1])&&c[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(b=p=0)||h.pop();)if(1===f.nodeType&&++b&&f===t){u[e]=[F,p,b];break}}else if(y&&(b=p=(c=(u=(d=(f=t)[P]||(f[P]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===F&&c[1]),!1===b)for(;(f=++p&&f&&f[m]||(b=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((u=(d=f[P]||(f[P]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[F,b]),f!==t)););return(b-=r)===i||b%i==0&&0<=b/i}}},PSEUDO:function(e,n){var r,o=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[P]?o(n):1<o.length?(r=[e,e,"",n],x.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,r=o(e,n),a=r.length;a--;)e[i=Z(e,r[a])]=!(t[i]=r[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var t=[],n=[],r=k(e.replace(ae,"$1"));return r[P]?i(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(n){return 0<t(e,n).length}}
vendor: 6,262 bytes, line 2
2),contains:i(function(e){return e=e.replace(be,we),function(t){return-1<(t.textContent||_(t)).indexOf(e)}}),lang:i(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,we).toLowerCase(),function(t){var n;do{if(n=N?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:u(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=s(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=l(b);return f.prototype=x.filters=x.pseudos,x.setFilters=new f,A=t.tokenize=function(e,n){var i,r,o,a,s,l,c,u=z[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],c=x.preFilter;s;){for(a in i&&!(r=se.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=le.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(ae," ")}),s=s.slice(i.length)),x.filter)!(r=fe[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?t.error(e):z(e,l).slice(0)},k=t.compile=function(e,n){var r,o,a,s,l,c,u=[],d=[],f=W[e+" "];if(!f){for(n||(n=A(e)),r=n.length;r--;)(f=y(n[r]))[P]?u.push(f):d.push(f);(f=W(e,(o=d,s=0<(a=u).length,l=0<o.length,c=function(e,n,i,r,c){var u,d,f,p=0,h="0",m=e&&[],v=[],y=I,b=e||l&&x.find.TAG("*",c),w=F+=null==y?1:Math.random()||.1,_=b.length;for(c&&(I=n==L||n||c);h!==_&&null!=(u=b[h]);h++){if(l&&u){for(d=0,n||u.ownerDocument==L||(D(u),i=!N);f=o[d++];)if(f(u,n||L,i)){r.push(u);break}c&&(F=w)}s&&((u=!f&&u)&&p--,e&&m.push(u))}if(p+=h,s&&h!==p){for(d=0;f=a[d++];)f(m,v,n,i);if(e){if(0<p)for(;h--;)m[h]||v[h]||(v[h]=Q.call(r));v=g(v)}K.apply(r,v),c&&!e&&0<v.length&&1<p+a.length&&t.uniqueSort(r)}return c&&(F=w,I=y),m},s?i(c):c))).selector=e}return f},T=t.select=function(e,t,n,i){var r,o,a,s,l,c="function"==typeof e&&e,u=!i&&A(e=c.selector||e);if(n=n||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&N&&x.relative[o[1].type]){if(!(t=(x.find.ID(a.matches[0].replace(be,we),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=fe.needsContext.test(e)?0:o.length;r--&&(a=o[r],!x.relative[s=a.type]);)if((l=x.find[s])&&(i=l(a.matches[0].replace(be,we),ye.test(o[0].type)&&d(t.parentNode)||t))){if(o.splice(r,1),!(e=i.length&&p(o)))return K.apply(n,i),n;break}}return(c||k(e,u))(i,t,!N,n,!t||ye.test(e)&&d(t.parentNode)||t),n},w.sortStable=P.split("").sort(X).join("")===P,w.detectDuplicates=!!S,D(),w.sortDetached=r(function(e){return 1&e.compareDocumentPosition(L.createElement("fieldset"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||o(ee,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);he.find=me,he.expr=me.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=me.uniqueSort,he.text=me.getText,he.isXMLDoc=me.isXML,he.contains=me.contains,he.escapeSelector=me.escape;var ge=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&he(e).is(n))break;i.push(e)}return i},ve=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},ye=he.expr.match.needsContext,be=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;he.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?he.find.matchesSelector(i,e)?[i]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t<i;t++)if(he.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)he.find(e,r[t],n);return 1<i?he.uniqueSort(n):n},filter:function(e){return this.pushStack(a(this,e||[],!1))},not:function(e){return this.pushStack(a(this,e||[],!0))},is:function(e){return!!a(this,"string"==typeof e&&ye.test(e)?he(e):e||[],!1).length}});var we,xe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(he.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||we,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:xe.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:de,!0)),be.test(i[1])&&he.isPlainObject(t))for(i in t)ce(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=de.getElementById(i[2]))&&(this[0]=r,this.length=1),this}
vendor: 6,205 bytes, line 2
2return e.nodeType?(this[0]=e,this.length=1,this):ce(e)?void 0!==n.ready?n.ready(e):e(he):he.makeArray(e,this)}).prototype=he.fn,we=he(de);var _e=/^(?:parents|prev(?:Until|All))/,Ee={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t=he(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(he.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,r=this.length,o=[],a="string"!=typeof e&&he(e);if(!ye.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&he.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?he.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?ne.call(he(e),this[0]):ne.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(he.uniqueSort(he.merge(this.get(),he(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),he.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ge(e,"parentNode")},parentsUntil:function(e,t,n){return ge(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return ge(e,"nextSibling")},prevAll:function(e){return ge(e,"previousSibling")},nextUntil:function(e,t,n){return ge(e,"nextSibling",n)},prevUntil:function(e,t,n){return ge(e,"previousSibling",n)},siblings:function(e){return ve((e.parentNode||{}).firstChild,e)},children:function(e){return ve(e.firstChild)},contents:function(e){return null!=e.contentDocument&&G(e.contentDocument)?e.contentDocument:(o(e,"template")&&(e=e.content||e),he.merge([],e.childNodes))}},function(e,t){he.fn[e]=function(n,i){var r=he.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=he.filter(i,r)),1<this.length&&(Ee[e]||he.uniqueSort(r),_e.test(e)&&r.reverse()),this.pushStack(r)}});var Ae=/[^\x20\t\r\n\f]+/g;he.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},he.each(t.match(Ae)||[],function(e,t){n[t]=!0}),n):he.extend({},e);var r,o,a,s,l=[],c=[],u=-1,d=function(){for(s=s||e.once,a=r=!0;c.length;u=-1)for(o=c.shift();++u<l.length;)!1===l[u].apply(o[0],o[1])&&e.stopOnFalse&&(u=l.length,o=!1);e.memory||(o=!1),r=!1,s&&(l=o?[]:"")},f={add:function(){return l&&(o&&!r&&(u=l.length-1,c.push(o)),function t(n){he.each(n,function(n,r){ce(r)?e.unique&&f.has(r)||l.push(r):r&&r.length&&"string"!==i(r)&&t(r)})}(arguments),o&&!r&&d()),this},remove:function(){return he.each(arguments,function(e,t){for(var n;-1<(n=he.inArray(t,l,n));)l.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<he.inArray(e,l):0<l.length},empty:function(){return l&&(l=[]),this},disable:function(){return s=c=[],l=o="",this},disabled:function(){return!l},lock:function(){return s=c=[],o||r||(l=o=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),r||d()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!a}};return f},he.extend({Deferred:function(t){var n=[["notify","progress",he.Callbacks("memory"),he.Callbacks("memory"),2],["resolve","done",he.Callbacks("once memory"),he.Callbacks("once memory"),0,"resolved"],["reject","fail",he.Callbacks("once memory"),he.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return he.Deferred(function(t){he.each(n,function(n,i){var r=ce(e[i[4]])&&e[i[4]];o[i[1]](function(){var e=r&&r.apply(this,arguments);e&&ce(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(t,i,r){function o(t,n,i,r){return function(){var s=this,u=arguments,d=function(){var e,d;if(!(t<a)){if((e=i.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");d=e&&("object"==typeof e||"function"==typeof e)&&e.then,ce(d)?r?d.call(e,o(a,n,l,r),o(a,n,c,r)):(a++,d.call(e,o(a,n,l,r),o(a,n,c,r),o(a,n,l,n.notifyWith))):(i!==l&&(s=void 0,u=[e]),(r||n.resolveWith)(s,u))}},f=r?d:function(){try{d()}catch(e){he.Deferred.exceptionHook&&he.Deferred.exceptionHook(e,f.stackTrace),a<=t+1&&(i!==c&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?f():(he.Deferred.getStackHook&&(f.stackTrace=he.Deferred.getStackHook()),e.setTimeout(f))}}var a=0;return he.Deferred(function(e){n[0][3].add(o(0,e,ce(r)?r:l,e.notifyWith)),n[1][3].add(o(0,e,ce(t)?t:l)),n[2][3].add(o(0,e,ce(i)?i:c))}).promise()},promise:function(e){return null!=e?he.extend(e,r):r}},o={};return he.each(n,function(e,t){var a=t[2],s=t[5];r[t[1]]=a.add,s&&a.add(function(){i=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=Z.call(arguments),o=he.Deferred(),a=function(e){return function(n){i[e]=this,r[e]=1<arguments.length?Z.call(arguments):n,--t||o.resolveWith(i,r)}};if(t<=1&&(u(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||ce(r[n]&&r[n].then)))return o.then();for(;n--;)u(r[n],a(n),o.reject);return o.promise()}});var ke=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;he.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&ke.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},he.readyException=function(t){e.setTimeout(function(){throw t})};var Te=he.Deferred();he.fn.ready=function(e){return Te.then(e).catch(function(e){he.readyException(e)}),this},he.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--he.readyWait:he.isReady)||(he.isReady=!0)!==e&&0<--he.readyWait||Te.resolveWith(de,[he])}}),he.ready.then=Te.then,"complete"===de.readyState||"loading"!==de.readyState&&!de.documentElement.doScroll?e.setTimeout(he.ready):(de.addEventListener("DOMContentLoaded",d),e.addEventListener("load",d));var Ie=function(e,t,n,r,o,a,s){var l=0,c=e.length,u=null==n;
vendor: 4,382 bytes, line 2
2if("object"===i(n))for(l in o=!0,n)Ie(e,t,l,n[l],!0,a,s);else if(void 0!==r&&(o=!0,ce(r)||(s=!0),u&&(s?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(he(e),n)})),t))for(;l<c;l++)t(e[l],n,s?r:r.call(e[l],l,t(e[l],n)));return o?e:u?t.call(e):c?t(e[0],n):a},Ce=/^-ms-/,Se=/-([a-z])/g,De=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};h.uid=1,h.prototype={cache:function(e){var t=e[this.expando];return t||(t={},De(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[p(t)]=n;else for(i in t)r[p(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][p(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(p):(t=p(t))in i?[t]:t.match(Ae)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||he.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!he.isEmptyObject(t)}};var Le=new h,Oe=new h,Ne=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,qe=/[A-Z]/g;he.extend({hasData:function(e){return Oe.hasData(e)||Le.hasData(e)},data:function(e,t,n){return Oe.access(e,t,n)},removeData:function(e,t){Oe.remove(e,t)},_data:function(e,t,n){return Le.access(e,t,n)},_removeData:function(e,t){Le.remove(e,t)}}),he.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=Oe.get(o),1===o.nodeType&&!Le.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=p(i.slice(5)),m(o,i,r[i]));Le.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){Oe.set(this,e)}):Ie(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=Oe.get(o,e))||void 0!==(n=m(o,e))?n:void 0;this.each(function(){Oe.set(this,e,t)})},null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Oe.remove(this,e)})}}),he.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Le.get(e,t),n&&(!i||Array.isArray(n)?i=Le.access(e,t,he.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=he.queue(e,t),i=n.length,r=n.shift(),o=he._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){he.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Le.get(e,n)||Le.access(e,n,{empty:he.Callbacks("once memory").add(function(){Le.remove(e,[t+"queue",n])})})}}),he.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?he.queue(this[0],e):void 0===t?this:this.each(function(){var n=he.queue(this,e,t);he._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&he.dequeue(this,e)})},dequeue:function(e){return this.each(function(){he.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=he.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Le.get(o[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var je=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Me=new RegExp("^(?:([+-])=|)("+je+")([a-z%]*)$","i"),Re=["Top","Right","Bottom","Left"],Pe=de.documentElement,He=function(e){return he.contains(e.ownerDocument,e)},Fe={composed:!0};Pe.getRootNode&&(He=function(e){return he.contains(e.ownerDocument,e)||e.getRootNode(Fe)===e.ownerDocument});var Be=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&He(e)&&"none"===he.css(e,"display")},$e={};he.fn.extend({show:function(){return v(this,!0)},hide:function(){return v(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Be(this)?he(this).show():he(this).hide()})}});var ze,We,Ue=/^(?:checkbox|radio)$/i,Xe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ye=/^$|^module$|\/(?:java|ecma)script/i;ze=de.createDocumentFragment().appendChild(de.createElement("div")),(We=de.createElement("input")).setAttribute("type","radio"),We.setAttribute("checked","checked"),We.setAttribute("name","t"),ze.appendChild(We),le.checkClone
vendor: 6,109 bytes, line 2
2=ze.cloneNode(!0).cloneNode(!0).lastChild.checked,ze.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!ze.cloneNode(!0).lastChild.defaultValue,ze.innerHTML="<option></option>",le.option=!!ze.lastChild;var Ve={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,"",""]};Ve.tbody=Ve.tfoot=Ve.colgroup=Ve.caption=Ve.thead,Ve.th=Ve.td,le.option||(Ve.optgroup=Ve.option=[1,"<select multiple='multiple'>","</select>"]);var Qe=/<|&#?\w+;/,Je=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,c,u,d,f,p,h,m,g=Le.get(e);if(De(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&he.find.matchesSelector(Pe,r),n.guid||(n.guid=he.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==he&&he.event.triggered!==t.type?he.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Ae)||[""]).length;c--;)p=m=(s=Je.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=he.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=he.event.special[p]||{},u=he.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&he.expr.match.needsContext.test(r),namespace:h.join(".")},o),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,u):f.push(u),he.event.global[p]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,c,u,d,f,p,h,m,g=Le.hasData(e)&&Le.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(Ae)||[""]).length;c--;)if(p=m=(s=Je.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=he.event.special[p]||{},f=l[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)u=f[o],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(f.splice(o,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||he.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)he.event.remove(e,p+t[c],n,i,!0);he.isEmptyObject(l)&&Le.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,a,s=new Array(arguments.length),l=he.event.fix(e),c=(Le.get(this,"events")||Object.create(null))[l.type]||[],u=he.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=he.event.handlers.call(this,l,c),t=0;(r=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((he.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,o,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?-1<he(r,this).index(c):he.find(r,this,null,[c]).length),a[r]&&o.push(i);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(he.Event.prototype,e,{enumerable:!0,configurable:!0,get:ce(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[he.expando]?e:new he.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Ue.test(t.type)&&t.click&&o(t,"input")&&k(t,"click",x),!1},trigger:function(e){var t=this||e;return Ue.test(t.type)&&t.click&&o(t,"input")&&k(t,"click"),!0},_default:function(e){var t=e.target;return Ue.test(t.type)&&t.click&&o(t,"input")&&Le.get(t,"click")||o(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},he.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},he.Event=function(e,t){if(!(this instanceof he.Event))return new he.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?x:_,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&he.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[he.expando]=!0},he.Event.prototype={constructor:he.Event,isDefaultPrevented:_,isPropagationStopped:_,isImmediatePropagationStopped:_,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=x,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=x,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=x,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},he.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},he.event.addProp),he.each({focus:"focusin",blur:"focusout"},function(e,t){he.event.special[e]={setup:function(){return k(this,e,E),!1},trigger:function(){return k(this,e),!0},_default:function(){return!0},delegateType:t}}
vendor: 11,645 bytes, lines 2-3
2),he.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){he.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||he.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),he.fn.extend({on:function(e,t,n,i){return A(this,e,t,n,i)},one:function(e,t,n,i){return A(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,he(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=_),this.each(function(){he.event.remove(this,e,n,t)})}});var Ke=/<script|<style|<link/i,Ge=/checked\s*(?:[^=]|=\s*.checked.)/i,Ze=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;he.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,a,s,l,c,u=e.cloneNode(!0),d=He(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(a=y(u),i=0,r=(o=y(e)).length;i<r;i++)s=o[i],"input"===(c=(l=a[i]).nodeName.toLowerCase())&&Ue.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||y(e),a=a||y(u),i=0,r=o.length;i<r;i++)S(o[i],a[i]);else S(e,u);return 0<(a=y(u,"script")).length&&b(a,!d&&y(e,"script")),u},cleanData:function(e){for(var t,n,i,r=he.event.special,o=0;void 0!==(n=e[o]);o++)if(De(n)){if(t=n[Le.expando]){if(t.events)for(i in t.events)r[i]?he.event.remove(n,i):he.removeEvent(n,i,t.handle);n[Le.expando]=void 0}n[Oe.expando]&&(n[Oe.expando]=void 0)}}}),he.fn.extend({detach:function(e){return L(this,e,!0)},remove:function(e){return L(this,e)},text:function(e){return Ie(this,function(e){return void 0===e?he.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return D(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||T(this,e).appendChild(e)})},prepend:function(){return D(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(he.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return he.clone(this,e,t)})},html:function(e){return Ie(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ke.test(e)&&!Ve[(Xe.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(he.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return D(this,arguments,function(t){var n=this.parentNode;he.inArray(this,e)<0&&(he.cleanData(y(this)),n&&n.replaceChild(t,this))},e)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){he.fn[e]=function(e){for(var n,i=[],r=he(e),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),he(r[a])[t](n),te.apply(i,n.get());return this.pushStack(i)}});var et=new RegExp("^("+je+")(?!px)[a-z%]+$","i"),tt=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},nt=function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i},it=new RegExp(Re.join("|"),"i");!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Pe.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);i="1%"!==t.top,l=12===n(t.marginLeft),u.style.right="60%",a=36===n(t.right),r=36===n(t.width),u.style.position="absolute",o=12===n(u.offsetWidth/3),Pe.removeChild(c),u=null}}function n(e){return Math.round(parseFloat(e))}var i,r,o,a,s,l,c=de.createElement("div"),u=de.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===u.style.backgroundClip,he.extend(le,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,i,r;return null==s&&(t=de.createElement("table"),n=de.createElement("tr"),i=de.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",Pe.appendChild(t).appendChild(n).appendChild(i),r=e.getComputedStyle(n),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===n.offsetHeight,Pe.removeChild(t)),s}}))}();var rt=["Webkit","Moz","ms"],ot=de.createElement("div").style,at={},st=/^(none|table(?!-c[ea]).+)/,lt=/^--/,ct={position:"absolute",visibility:"hidden",display:"block"},ut={letterSpacing:"0",fontWeight:"400"};he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=O(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=p(t),l=lt.test(t),c=e.style;if(l||(t=q(s)),a=he.cssHooks[t]||he.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:c[t];"string"==(o=typeof n)&&(r=Me.exec(n))&&r[1]&&(n=g(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(he.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,o,a,s=p(t);return lt.test(t)||(t=q(s)),(a=he.cssHooks[t]||he.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=O(e,t,i)),"normal"===r&&t in ut&&(r=ut[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),he.each(["height","width"],function(e,t){he.cssHooks[t]={get:function(e,n,i){if(n)return!st.test(he.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?R(e,t,i):nt(e,ct,function(){return R(e,t,i)})},set:function(e,n,i){
3var r,o=tt(e),a=!le.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===he.css(e,"boxSizing",!1,o),l=i?M(e,t,i,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-M(e,t,"border",!1,o)-.5)),l&&(r=Me.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=he.css(e,t)),j(0,n,l)}}}),he.cssHooks.marginLeft=N(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(O(e,"marginLeft"))||e.getBoundingClientRect().left-nt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),he.each({margin:"",padding:"",border:"Width"},function(e,t){he.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+Re[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(he.cssHooks[e+t].set=j)}),he.fn.extend({css:function(e,t){return Ie(this,function(e,t,n){var i,r,o={},a=0;if(Array.isArray(t)){for(i=tt(e),r=t.length;a<r;a++)o[t[a]]=he.css(e,t[a],!1,i);return o}return void 0!==n?he.style(e,t,n):he.css(e,t)},e,t,1<arguments.length)}}),((he.Tween=P).prototype={constructor:P,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||he.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(he.cssNumber[n]?"":"px")},cur:function(){var e=P.propHooks[this.prop];return e&&e.get?e.get(this):P.propHooks._default.get(this)},run:function(e){var t,n=P.propHooks[this.prop];return this.options.duration?this.pos=t=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):P.propHooks._default.set(this),this}}).init.prototype=P.prototype,(P.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=he.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||!he.cssHooks[e.prop]&&null==e.elem.style[q(e.prop)]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=P.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=P.prototype.init,he.fx.step={};var dt,ft,pt,ht,mt=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;he.Animation=he.extend(z,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return g(n.elem,e,Me.exec(t),n),n}]},tweener:function(e,t){ce(e)?(t=e,e=["*"]):e=e.match(Ae);for(var n,i=0,r=e.length;i<r;i++)n=e[i],z.tweeners[n]=z.tweeners[n]||[],z.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,a,s,l,c,u,d="width"in t||"height"in t,f=this,p={},h=e.style,m=e.nodeType&&Be(e),g=Le.get(e,"fxshow");for(i in n.queue||(null==(a=he._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,he.queue(e,"fx").length||a.empty.fire()})})),t)if(r=t[i],mt.test(r)){if(delete t[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||he.style(e,i)}if((l=!he.isEmptyObject(t))||!he.isEmptyObject(p))for(i in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=g&&g.display)&&(c=Le.get(e,"display")),"none"===(u=he.css(e,"display"))&&(c?u=c:(v([e],!0),c=e.style.display||c,u=he.css(e,"display"),v([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===he.css(e,"float")&&(l||(f.done(function(){h.display=c}),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=Le.access(e,"fxshow",{display:c}),o&&(g.hidden=!m),m&&v([e],!0),f.done(function(){for(i in m||v([e]),Le.remove(e,"fxshow"),p)he.style(e,i,p[i])})),l=$(m?g[i]:0,i,f),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?z.prefilters.unshift(e):z.prefilters.push(e)}}),he.speed=function(e,t,n){var i=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||ce(e)&&e,duration:e,easing:n&&t||t&&!ce(t)&&t};return he.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in he.fx.speeds?i.duration=he.fx.speeds[i.duration]:i.duration=he.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){ce(i.old)&&i.old.call(this),i.queue&&he.dequeue(this,i.queue)},i}
vendor: 4,101 bytes, line 3
3,he.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Be).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=he.isEmptyObject(e),o=he.speed(t,n,i),a=function(){var t=z(this,he.extend({},e),o);(r||Le.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",o=he.timers,a=Le.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&gt.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Le.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=he.timers,a=i?i.length:0;for(n.finish=!0,he.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(B(t,!0),e,i,r)}}),he.each({slideDown:B("show"),slideUp:B("hide"),slideToggle:B("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),he.timers=[],he.fx.tick=function(){var e,t=0,n=he.timers;for(dt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||he.fx.stop(),dt=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){ft||(ft=!0,H())},he.fx.stop=function(){ft=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx&&he.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,i){var r=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(r)}})},pt=de.createElement("input"),ht=de.createElement("select").appendChild(de.createElement("option")),pt.type="checkbox",le.checkOn=""!==pt.value,le.optSelected=ht.selected,(pt=de.createElement("input")).value="t",pt.type="radio",le.radioValue="t"===pt.value;var vt,yt=he.expr.attrHandle;he.fn.extend({attr:function(e,t){return Ie(this,he.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(r=he.attrHooks[t.toLowerCase()]||(he.expr.match.bool.test(t)?vt:void 0)),void 0!==n?null===n?void he.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=he.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&o(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(Ae);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),vt={set:function(e,t,n){return!1===t?he.removeAttr(e,n):e.setAttribute(n,n),n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var n=yt[t]||he.find.attr;yt[t]=function(e,t,i){var r,o,a=t.toLowerCase();return i||(o=yt[a],yt[a]=r,r=null!=n(e,t,i)?a:null,yt[a]=o),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return Ie(this,he.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[he.propFix[e]||e]})}}),he.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&he.isXMLDoc(e)||(t=he.propFix[t]||t,r=he.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?
vendor: 7,578 bytes, line 3
30:-1}}},propFix:{for:"htmlFor",class:"className"}}),le.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),he.fn.extend({addClass:function(e){var t,n,i,r,o,a,s,l=0;if(ce(e))return this.each(function(t){he(this).addClass(e.call(this,t,U(this)))});if((t=X(e)).length)for(;n=this[l++];)if(r=U(n),i=1===n.nodeType&&" "+W(r)+" "){for(a=0;o=t[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=W(i))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,r,o,a,s,l=0;if(ce(e))return this.each(function(t){he(this).removeClass(e.call(this,t,U(this)))});if(!arguments.length)return this.attr("class","");if((t=X(e)).length)for(;n=this[l++];)if(r=U(n),i=1===n.nodeType&&" "+W(r)+" "){for(a=0;o=t[a++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(s=W(i))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):ce(e)?this.each(function(n){he(this).toggleClass(e.call(this,n,U(this),t),t)}):this.each(function(){var t,r,o,a;if(i)for(r=0,o=he(this),a=X(e);t=a[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=U(this))&&Le.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Le.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+W(U(n))+" ").indexOf(t))return!0;return!1}});var xt=/\r/g;he.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=ce(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,he(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=he.map(r,function(e){return null==e?"":e+""})),(t=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=he.valHooks[r.type]||he.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(xt,""):null==n?"":n:void 0}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:W(he.text(e))}},select:{get:function(e){var t,n,i,r=e.options,a=e.selectedIndex,s="select-one"===e.type,l=s?null:[],c=s?a+1:r.length;for(i=a<0?c:s?a:0;i<c;i++)if(((n=r[i]).selected||i===a)&&!n.disabled&&(!n.parentNode.disabled||!o(n.parentNode,"optgroup"))){if(t=he(n).val(),s)return t;l.push(t)}return l},set:function(e,t){for(var n,i,r=e.options,o=he.makeArray(t),a=r.length;a--;)((i=r[a]).selected=-1<he.inArray(he.valHooks.option.get(i),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),he.each(["radio","checkbox"],function(){he.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<he.inArray(he(e).val(),t)}},le.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),le.focusin="onfocusin"in e;var _t=/^(?:focusinfocus|focusoutblur)$/,Et=function(e){e.stopPropagation()};he.extend(he.event,{trigger:function(t,n,i,r){var o,a,s,l,c,u,d,f,p=[i||de],h=oe.call(t,"type")?t.type:t,m=oe.call(t,"namespace")?t.namespace.split("."):[];if(a=f=s=i=i||de,3!==i.nodeType&&8!==i.nodeType&&!_t.test(h+he.event.triggered)&&(-1<h.indexOf(".")&&(h=(m=h.split(".")).shift(),m.sort()),c=h.indexOf(":")<0&&"on"+h,(t=t[he.expando]?t:new he.Event(h,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:he.makeArray(n,[t]),d=he.event.special[h]||{},r||!d.trigger||!1!==d.trigger.apply(i,n))){if(!r&&!d.noBubble&&!ue(i)){for(l=d.delegateType||h,_t.test(l+h)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(i.ownerDocument||de)&&p.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)f=a,t.type=1<o?l:d.bindType||h,(u=(Le.get(a,"events")||Object.create(null))[t.type]&&Le.get(a,"handle"))&&u.apply(a,n),(u=c&&a[c])&&u.apply&&De(a)&&(t.result=u.apply(a,n),!1===t.result&&t.preventDefault());return t.type=h,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),n)||!De(i)||c&&ce(i[h])&&!ue(i)&&((s=i[c])&&(i[c]=null),he.event.triggered=h,t.isPropagationStopped()&&f.addEventListener(h,Et),i[h](),t.isPropagationStopped()&&f.removeEventListener(h,Et),he.event.triggered=void 0,s&&(i[c]=s)),t.result}},simulate:function(e,t,n){var i=he.extend(new he.Event,n,{type:e,isSimulated:!0});he.event.trigger(i,null,t)}}),he.fn.extend({trigger:function(e,t){return this.each(function(){he.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return he.event.trigger(e,t,n,!0)}}),le.focusin||he.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){he.event.simulate(t,e.target,he.event.fix(e))};he.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=Le.access(i,t);r||i.addEventListener(e,n,!0),Le.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=Le.access(i,t)-1;r?Le.access(i,t,r):(i.removeEventListener(e,n,!0),Le.remove(i,t))}}});var At=e.location,kt={guid:Date.now()},Tt=/\?/;he.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||he.error("Invalid XML: "+(i?he.map(i.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var It=/\[\]$/,Ct=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;he.param=function(e,t){var n,i=[],r=function(e,t){var n=ce(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,function(){r(this.name,this.value)});else for(n in e)Y(n,e[n],t,r);return i.join("&")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&Dt.test(this.nodeName)&&!St.test(e)&&(this.checked||!Ue.test(e))}).map(function(e,t){var n=he(this).val();return null==n?null:Array.isArray(n)?he.map(n,function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}}):{name:t.name,value:n.replace(Ct,"\r\n")}}).get()}});var Lt=/%20/g,Ot=/#.*$/,Nt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,jt=/^(?:GET|HEAD)$/,Mt=/^\/\//,Rt={},Pt={},Ht="*/".concat("*"),Ft=de.createElement("a");Ft.href=At.href,he.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:{"*":Ht,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":he.parseXML}
vendor: 4,222 bytes, line 3
3,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?J(J(e,he.ajaxSettings),t):J(he.ajaxSettings,e)},ajaxPrefilter:V(Rt),ajaxTransport:V(Pt),ajax:function(t,n){function i(t,n,i,s){var c,f,p,w,x,_=n;u||(u=!0,l&&e.clearTimeout(l),r=void 0,a=s||"",E.readyState=0<t?4:0,c=200<=t&&t<300||304===t,i&&(w=function(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(h,E,i)),!c&&-1<he.inArray("script",h.dataTypes)&&he.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),w=function(e,t,n,i){var r,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(h,w,E,c),c?(h.ifModified&&((x=E.getResponseHeader("Last-Modified"))&&(he.lastModified[o]=x),(x=E.getResponseHeader("etag"))&&(he.etag[o]=x)),204===t||"HEAD"===h.type?_="nocontent":304===t?_="notmodified":(_=w.state,f=w.data,c=!(p=w.error))):(p=_,!t&&_||(_="error",t<0&&(t=0))),E.status=t,E.statusText=(n||_)+"",c?v.resolveWith(m,[f,_,E]):v.rejectWith(m,[E,_,p]),E.statusCode(b),b=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[E,h,c?f:p]),y.fireWith(m,[E,_]),d&&(g.trigger("ajaxComplete",[E,h]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,o,a,s,l,c,u,d,f,p,h=he.ajaxSetup({},n),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?he(m):he.event,v=he.Deferred(),y=he.Callbacks("once memory"),b=h.statusCode||{},w={},x={},_="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=qt.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?a:null},setRequestHeader:function(e,t){return null==u&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)E.always(e[E.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||_;return r&&r.abort(t),i(0,t),this}};if(v.promise(E),h.url=((t||h.url||At.href)+"").replace(Mt,At.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Ae)||[""],null==h.crossDomain){c=de.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Ft.protocol+"//"+Ft.host!=c.protocol+"//"+c.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=he.param(h.data,h.traditional)),Q(Rt,h,n,E),u)return E;for(f in(d=he.event&&h.global)&&0==he.active++&&he.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!jt.test(h.type),o=h.url.replace(Ot,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Lt,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(Tt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Nt,"$1"),p=(Tt.test(o)?"&":"?")+"_="+kt.guid+++p),h.url=o+p),h.ifModified&&(he.lastModified[o]&&E.setRequestHeader("If-Modified-Since",he.lastModified[o]),he.etag[o]&&E.setRequestHeader("If-None-Match",he.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ht+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(f,h.headers[f]);
vendor: 5,846 bytes, line 3
3if(h.beforeSend&&(!1===h.beforeSend.call(m,E,h)||u))return E.abort();if(_="abort",y.add(h.complete),E.done(h.success),E.fail(h.error),r=Q(Pt,h,n,E)){if(E.readyState=1,d&&g.trigger("ajaxSend",[E,h]),u)return E;h.async&&0<h.timeout&&(l=e.setTimeout(function(){E.abort("timeout")},h.timeout));try{u=!1,r.send(w,i)}catch(t){if(u)throw t;i(-1,t)}}else i(-1,"No Transport");return E},getJSON:function(e,t,n){return he.get(e,t,n,"json")},getScript:function(e,t){return he.get(e,void 0,t,"script")}}),he.each(["get","post"],function(e,t){he[t]=function(e,n,i,r){return ce(n)&&(r=r||i,i=n,n=void 0),he.ajax(he.extend({url:e,type:t,dataType:r,data:n,success:i},he.isPlainObject(e)&&e))}}),he.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),he._evalUrl=function(e,t,n){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){he.globalEval(e,t,n)}})},he.fn.extend({wrapAll:function(e){var t;return this[0]&&(ce(e)&&(e=e.call(this[0])),t=he(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ce(e)?this.each(function(t){he(this).wrapInner(e.call(this,t))}):this.each(function(){var t=he(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ce(e);return this.each(function(n){he(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){he(this).replaceWith(this.childNodes)}),this}}),he.expr.pseudos.hidden=function(e){return!he.expr.pseudos.visible(e)},he.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},he.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Bt={0:200,1223:204},$t=he.ajaxSettings.xhr();le.cors=!!$t&&"withCredentials"in $t,le.ajax=$t=!!$t,he.ajaxTransport(function(t){var n,i;if(le.cors||$t&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);n=function(e){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Bt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(r){if(n)throw r}},abort:function(){n&&n()}}}),he.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),he.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=he("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),de.head.appendChild(t[0])},abort:function(){n&&n()}}});var zt,Wt=[],Ut=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Wt.pop()||he.expando+"_"+kt.guid++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(t,n,i){var r,o,a,s=!1!==t.jsonp&&(Ut.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=ce(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ut,"$1"+r):!1!==t.jsonp&&(t.url+=(Tt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||he.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){a=arguments},i.always(function(){void 0===o?he(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,Wt.push(r)),a&&ce(o)&&o(a[0]),a=o=void 0}),"script"}),le.createHTMLDocument=((zt=de.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===zt.childNodes.length),he.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((i=(t=de.implementation.createHTMLDocument("")).createElement("base")).href=de.location.href,t.head.appendChild(i)):t=de),o=!n&&[],(r=be.exec(e))?[t.createElement(r[1])]:(r=w([e],t,o),o&&o.length&&he(o).remove(),he.merge([],r.childNodes)));var i,r,o},he.fn.load=function(e,t,n){var i,r,o,a=this,s=e.indexOf(" ");return-1<s&&(i=W(e.slice(s)),e=e.slice(0,s)),ce(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<a.length&&he.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?he("<div>").append(he.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.expr.pseudos.animated=function(e){return he.grep(he.timers,function(t){return e===t.elem}).length},he.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,c=he.css(e,"position"),u=he(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=he.css(e,"to
3p"),l=he.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(a=(i=u.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),ce(t)&&(t=t.call(e,n,he.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){he.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===he.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===he.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=he(e).offset()).top+=he.css(e,"borderTopWidth",!0),r.left+=he.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-he.css(i,"marginTop",!0),left:t.left-r.left-he.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===he.css(e,"position");)e=e.offsetParent;return e||Pe})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;he.fn[e]=function(i){return Ie(this,function(e,i,r){var o;if(ue(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r},e,i,arguments.length)}}),he.each(["top","left"],function(e,t){he.cssHooks[t]=N(le.pixelPosition,function(e,n){if(n)return n=O(e,t),et.test(n)?he(e).position()[t]+"px":n})}),he.each({Height:"height",Width:"width"},function(e,t){he.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){he.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return Ie(this,function(t,n,r){var o;return ue(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?he.css(t,n,s):he.style(t,n,r,s)},t,a?r:void 0,a)}})}),he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),he.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){he.fn[t]=function(e,n){return 0<arguments.length?this.on(t,null,e,n):this.trigger(t)}});var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;he.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),ce(e))return i=Z.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(Z.call(arguments)))}).guid=e.guid=e.guid||he.guid++,r},he.holdReady=function(e){e?he.readyWait++:he.ready(!0)},he.isArray=Array.isArray,he.parseJSON=JSON.parse,he.nodeName=o,he.isFunction=ce,he.isWindow=ue,he.camelCase=p,he.type=i,he.now=Date.now,he.isNumeric=function(e){var t=he.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},he.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return he});var Yt=e.jQuery,Vt=e.$;return he.noConflict=function(t){return e.$===he&&(e.$=Vt),t&&e.jQuery===he&&(e.jQuery=Yt),he},void 0===t&&(e.jQuery=e.$=he),he}),function(e){e.fn.uploadProgress=function(t){return t=e.extend({dataType:"json",interval:2e3,progressBar:"#progressbar",progressUrl:"/progress",start:function(){},uploading:function(){},complete:function(){},success:function(){},error:function(){},preloadImages:[],timer:""},t),e(function(){for(var n=0;n<t.preloadImages.length;n++)t.preloadImages[n]=e("<img>").attr("src",t.preloadImages[n])}),this.each(function(){e(this).bind("submit",function(){var n="";for(i=0;i<32;i++)n+=Math.floor(16*Math.random()).toString(16);if(t.uuid=n,t.start(),old_id=/X-Progress-ID=([^&]+)/.exec(e(this).attr("action"))){var r=e(this).attr("action").replace(old_id[1],n);e(this).attr("action",r)}else{var o=-1!=(r=jQuery(this).attr("action")).lastIndexOf("?")?"&":"?";e(this).attr("action",r+o+"X-Progress-ID="+n)}var a=jQuery.uploadProgress;t.timer=window.setInterval(function(){a(this,t)},t.interval)})})},jQuery.uploadProgress=function(t,n){jQuery.ajax({type:"GET",url:n.progressUrl+"?X-Progress-ID="+n.uuid,dataType:n.dataType,success:function(t){if(t){switch(t.state){case"uploading":t.percents=Math.floor(t.received/t.size*1e3)/10,e(n.progressBar).css({width:t.percents+"%"}),n.uploading(t);break;case"done":n.success(t);case"error":window.clearTimeout(n.timer),n.complete(t)}"error"==t.state&&n.error(t)}else n.success(t)}})}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(e){var t,n=0,i=Array.prototype.slice;e.cleanData=(t=e.cleanData,function(n){var i,r,o;for(o=0;
3null!=(r=n[o]);o++)try{(i=e._data(r,"events"))&&i.remove&&e(r).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,i){var r,o,a,s,l={},c=t.split(".")[0];return t=t.split(".")[1],r=c+"-"+t,i||(i=n,n=e.Widget),e.expr[":"][r.toLowerCase()]=function(t){return!!e.data(t,r)},e[c]=e[c]||{},o=e[c][t],a=e[c][t]=function(e,t){if(!this._createWidget)return new a(e,t);arguments.length&&this._createWidget(e,t)},e.extend(a,o,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(s=new n).options=e.widget.extend({},s.options),e.each(i,function(t,i){var r,o;e.isFunction(i)?l[t]=(r=function(){return n.prototype[t].apply(this,arguments)},o=function(e){return n.prototype[t].apply(this,e)},function(){var e,t=this._super,n=this._superApply;return this._super=r,this._superApply=o,e=i.apply(this,arguments),this._super=t,this._superApply=n,e}):l[t]=i}),a.prototype=e.widget.extend(s,{widgetEventPrefix:o&&s.widgetEventPrefix||t},l,{
4constructor:a,namespace:c,widgetName:t,widgetFullName:r}),o?(e.each(o._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,a,n._proto)}),delete o._childConstructors):n._childConstructors.push(a),e.widget.bridge(t,a),a},e.widget.extend=function(t){for(var n,r,o=i.call(arguments,1),a=0,s=o.length;a<s;a++)for(n in o[a])r=o[a][n],o[a].hasOwnProperty(n)&&void 0!==r&&(e.isPlainObject(r)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],r):e.widget.extend({},r):t[n]=r);return t},e.widget.bridge=function(t,n){var r=n.prototype.widgetFullName||t;e.fn[t]=function(o){var a="string"==typeof o,s=i.call(arguments,1),l=this;return a?this.each(function(){var n,i=e.data(this,r);return"instance"===o?(l=i,!1):i?e.isFunction(i[o])&&"_"!==o.charAt(0)?(n=i[o].apply(i,s))!==i&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+o+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'")}):(s.length&&(o=e.widget.extend.apply(null,[o].concat(s))),this.each(function(){var t=e.data(this,r);t?(t.option(o||{}),t._init&&t._init()):e.data(this,r,new n(o,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,r,o,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},i=t.split("."),t=i.shift(),i.length){for(r=a[t]=e.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)r[i[o]]=r[i[o]]||{},r=r[i[o]];if(t=i.pop(),1===arguments.length)return void 0===r[t]?null:r[t];r[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=n}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(t,n,i){var r,o=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=r=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),e.each(i,function(i,a){function s(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||e.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+o.eventNamespace,u=l[2];u?r.delegate(u,c,s):n.bind(c,s)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(n).undelegate(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function n(){return("string"==typeof e?i[e]:e).apply(i,arguments)}var i=this;return setTimeout(n,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,n,i){var r,o,a=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(r in o)r in n||(n[r]=o[r]);return this.element.trigger(n,i),!(e.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(i,r,o){"string"==typeof r&&(r={effect:r});var a,s=r?!0===r||"number"==typeof r?n:r.effect||n:t;"number"==typeof(r=r||{})&&(r={duration:r}),a=!e.isEmptyObject(r),r.complete=o,r.delay&&i.delay(r.delay),a&&e.effects&&e.effects.effect[s]?i[t](r):s!==t&&i[s]?i[s](r.duration,r.easing,o):i.queue(function(n){e(this)[t](),o&&o.call(i[0]),n()})}});e.widget}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery)}(function(e){"use strict";var t=0;e.ajaxTransport("iframe",function(n){if(n.async){var i,r,o,a=n.initialIframeSrc||"javascript:false;";return{send:function(s,l){(i=e('<form style="display:none;"></form>')).attr("accept-charset",n.formAcceptCharset),o=/\?/.test(n.url)?"&":"?","DELETE"===n.type?(n.url=n.url+o+"_method=DELETE",n.type="POST"):"PUT"===n.type?(n.url=n.url+o+"_method=PUT",n.type="POST"):"PATCH"===n.type&&(n.url=n.url+o+"_method=PATCH",n.type="POST"),r=e('<iframe src="'+a+'" name="iframe-transport-'+(t+=1)+'"></iframe>').bind("load",function(){var t,o=e.isArray(n.paramName)?n.paramName:[n.paramName];r.unbind("load").bind("load",function(){var t;try{if(!(t=r.contents()).length||!t[0].firstChild)throw new Error}catch(e){t=void 0}l(200,"success",{iframe:t}),e('<iframe src="'+a+'"></iframe>').appendTo(i),window.setTimeout(function(){i.remove()},0)}),i.prop("target",r.prop("name")).prop("action",n.url).prop("method",n.type),n.formData&&e.each(n.formData,function(t,n){e('<input type="hidden"/>').prop("name",n.name).val(n.value).appendTo(i)}),n.fileInput&&n.fileInput.length&&"POST"===n.type&&(t=n.fileInput.clone(),n.fileInput.after(function(e){return t[e]}),n.paramName&&n.fileInput.each(function(t){e(this).prop("name",o[t]||n.paramName)}),i.append(n.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data"),n.fileInput.removeAttr("form")),i.submit(),t&&t.length&&n.fileInput.each(function(n,i){var r=e(t[n]);e(i).prop("name",r.prop("name")).attr("form",r.attr("form")),r.replaceWith(i)})}),i.append(r).appendTo(document.body)},abort:function(){r&&r.unbind("load").prop("src",a),i&&i.remove()}}}}),e.ajaxSetup({converters:{"iframe text":function(t){return t&&e(t[0].body).text()},"iframe json":function(t){return t&&e.parseJSON(e(t[0].body).text())},"iframe html":function(t){return t&&e(t[0].body).html()},"iframe xml":function(t){var n=t&&t[0];return n&&e.isXMLDoc(n)?n:e.parseXML(n.XMLDocument&&n.XMLDocument.xml||e(n.body).html())},"iframe script":function(t){return t&&e.globalEval(e(t[0].body).text())}}})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery.ui.widget"],e):"object"==typeof exports?e(require("jquery"),require("./vendor/jquery.ui.widget")):e(window.jQuery)}(function(e){"use strict";function t(t){var n="dragover"===t;return function(i){i.dataTransfer=i.originalEvent&&i.originalEvent.dataTransfer;var r=i.dataTransfer;r&&-1!==e.inArray("Files",r.types)&&!1!==this._trigger(t,e.Event(t,{delegatedEvent:i}))&&(i.preventDefault(),n&&(r.dropEffect="copy"))}}e.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||e('<input type="file">').prop("disabled")),e.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),e.support.xhrFormDataFileUpload=!!window.FormData,e.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),e.widget("blueimp.fileupload",{options:{dropZone:e(document),pasteZone:void 0,fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(t,n){return t=this.messages[t]||t.toString(),n&&e.each(n,function(e,n){t=t.replace("{"+e+"}",n)}),t},formData:function(e){return e.serializeArray()},add:function(t,n){if(t.isDefaultPrevented())return!1;(n.autoUpload||!1!==n.autoUpload&&e(this).fileupload("option","autoUpload"))&&n.process().done(function(){n.submit()})},processData:!1,contentType:!1,cache:!1,timeout:0},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:e.support.blobSlice&&function(){return(this.slice||this.webkitSlice||this.mozSlice).apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(e,t,n){var i=e-this.timestamp;return(!this.bitrate||!n||i>n)&&(this.bitrate=(t-this.loaded)*(1e3/i)*8,this.loaded=t,this.timestamp=e),this.bitrate}},_isXHRUpload:function(t){return!t.forceIframeTransport&&(!t.multipart&&e.support.xhrFileUpload||e.support.xhrFormDataFileUpload)},_getFormData:function(t){var n;return"function"===e.type(t.formData)?t.formData(t.form):e.isArray(t.formData)?t.formData:"object"===e.type(t.formData)?(n=[],e.each(t.formData,function(e,t){n.push({name:e,value:t})}),n):[]},_getTotal:function(t){var n=0;return e.each(t,function(e,t){n+=t.size||1}),n},_initProgressObject:function(t){var n={loaded:0,total:0,bitrate:0};t._progress?e.extend(t._progress,n):t._progress=n},_initResponseObject:function(e){var t;if(e._response)for(t in e._response)e._response.hasOwnProperty(t)&&delete e._response[t];else e._response={}},_onProgress:function(t,n){if(t.lengthComputable){var i,r=Date.now?Date.now():(new Date).getTime();if(n._time&&n.progressInterval&&r-n._time<n.progressInterval&&t.loaded!==t.total)return;n._time=r,i=Math.floor(t.loaded/t.total*(n.chunkSize||n._progress.total))+(n.uploadedBytes||0),this._progress.loaded+=i-n._progress.loaded,this._progress.bitrate=this._bitrateTimer.getBitrate(r,this._progress.loaded,n.bitrateInterval),n._progress.loaded=n.loaded=i,n._progress.bitrate=n.bitrate=n._bitrateTimer.getBitrate(r,i,n.bitrateInterval),this._trigger("progress",e.Event("progress",{delegatedEvent:t}),n),this._trigger("progressall",e.Event("progressall",{delegatedEvent:t}),this._progress)}},_initProgressListener:function(t){var n=this,i=t.xhr?t.xhr():e.ajaxSettings.xhr();i.upload&&(e(i.upload).bind("progress",function(e){var i=e.originalEvent;e.lengthComputable=i.lengthComputable,e.loaded=i.loaded,e.total=i.total,n._onProgress(e,t)}),t.xhr=function(){return i})},_isInstanceOf:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"},_initXHRData:function(t){var n,i=this,r=t.files[0],o=t.multipart||!e.support.xhrFileUpload,a="array"===e.type(t.paramName)?t.paramName[0]:t.paramName;t.headers=e.extend({},t.headers),t.contentRange&&(t.headers["Content-Range"]=t.contentRange),o&&!t.blob&&this._isInstanceOf("File",r)||(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(r.name)+'"'),o?e.support.xhrFormDataFileUpload&&(t.postMessage?(n=this._getFormData(t),t.blob?n.push({name:a,value:t.blob}):e.each(t.files,function(i,r){n.push({name:"array"===e.type(t.paramName)&&t.paramName[i]||a,value:r})})):(i._isInstanceOf("FormData",t.formData)?n=t.formData:(n=new FormData,e.each(this._getFormData(t),function(e,t){n.append(t.name,t.value)})),t.blob?n.append(a,t.blob,r.name):e.each(t.files,function(r,o){(i._isInstanceOf("File",o)||i._isInstanceOf("Blob",o))&&n.append("array"===e.type(t.paramName)&&t.paramName[r]||a,o,o.uploadName||o.name)})),t.data=n):(t.contentType=r.type||"application/octet-stream",t.data=t.blob||r),t.blob=null},_initIframeSettings:function(t){var n=e("<a></a>").prop("href",t.url).prop("host");t.dataType="iframe "+(t.dataType||""),t.formData=this._getFormData(t),t.redirect&&n&&n!==location.host&&t.formData.push({name:t.redirectParamName||"redirect",value:t.redirect})},_initDataSettings:function(e){this._isXHRUpload(e)?(this._chunkedUpload(e,!0)||(e.data||this._initXHRData(e),this._initProgressListener(e)),e.postMessage&&(e.dataType="postmessage "+(e.dataType||""))):this._initIframeSettings(e)},_getParamName:function(t){var n=e(t.fileInput),i=t.paramName;return i?e.isArray(i)||(i=[i]):(i=[],n.each(function(){for(var t=e(this),n=t.prop("name")||"files[]",r=(t.prop("files")||[1]).length;r;)i.push(n),r-=1}),i.length||(i=[n.prop("name")||"files[]"])),i},_initFormSettings:function(t){t.form&&t.form.length||(t.form=e(t.fileInput.prop("form")),t.form.length||(t.form=e(this.options.fileInput.prop("form")))),t.paramName=this._getParamName(t),t.url||(t.url=t.form.prop("action")||location.href),t.type=(t.type||"string"===e.type(t.form.prop("method"))&&t.form.prop("method")||"").toUpperCase(),"POST"!==t.type&&"PUT"!==t.type&&"PATCH"!==t.type&&(t.type="POST"),t.formAcceptCharset||(t.formAcceptCharset=t.form.attr("accept-charset"))},_getAJAXSettings:function(t){var n=e.extend({},this.options,t);return this._initFormSettings(n),this._initDataSettings(n),n},_getDeferredState:function(e){return e.state?e.state():e.isResolved()?"resolved":e.isRejected()?"rejected":"pending"},_enhancePromise:function(e){return e.success=e.done,e.error=e.fail,e.complete=e.always,e},_getXHRPromise:function(t,n,i){var r=e.Deferred(),o=r.promise();return n=n||this.options.context||o,!0===t?r.resolveWith(n,i):!1===t&&r.rejectWith(n,i),o.abort=r.promise,this._enhancePromise(o)},_addConvenienceMethods:function(t,n){var i=this,r=function(t){return e.Deferred().resolveWith(i,t).promise()};n.process=function(t,o){return(t||o)&&(n._processQueue=this._processQueue=(this._processQueue||r([this])).then(function(){return n.errorThrown?e.Deferred().rejectWith(i,[n]).promise():r(arguments)}).then(t,o)),this._processQueue||r([this])},n.submit=function(){return"pending"!==this.state()&&(n.jqXHR=this.jqXHR=!1!==i._trigger("submit",e.Event("submit",{delegatedEvent:t}),this)&&i._onSend(t,this)),this.jqXHR||i._getXHRPromise()},n.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",i._trigger("fail",null,this),i._getXHRPromise(!1))},n.state=function(){return this.jqXHR?i._getDeferredState(this.jqXHR):this._processQueue?i._g
4etDeferredState(this._processQueue):void 0},n.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===i._getDeferredState(this._processQueue)},n.progress=function(){return this._progress},n.response=function(){return this._response}},_getUploadedBytes:function(e){var t=e.getResponseHeader("Range"),n=t&&t.split("-"),i=n&&n.length>1&&parseInt(n[1],10);return i&&i+1},_chunkedUpload:function(t,n){t.uploadedBytes=t.uploadedBytes||0;var i,r,o=this,a=t.files[0],s=a.size,l=t.uploadedBytes,c=t.maxChunkSize||s,u=this._blobSlice,d=e.Deferred(),f=d.promise();return!(!(this._isXHRUpload(t)&&u&&(l||c<s))||t.data)&&(!!n||(l>=s?(a.error=t.i18n("uploadedBytes"),this._getXHRPromise(!1,t.context,[null,"error",a.error])):(r=function(){var n=e.extend({},t),f=n._progress.loaded;n.blob=u.call(a,l,l+c,a.type),n.chunkSize=n.blob.size,n.contentRange="bytes "+l+"-"+(l+n.chunkSize-1)+"/"+s,o._initXHRData(n),o._initProgressListener(n),i=(!1!==o._trigger("chunksend",null,n)&&e.ajax(n)||o._getXHRPromise(!1,n.context)).done(function(i,a,c){l=o._getUploadedBytes(c)||l+n.chunkSize,f+n.chunkSize-n._progress.loaded&&o._onProgress(e.Event("progress",{lengthComputable:!0,loaded:l-n.uploadedBytes,total:l-n.uploadedBytes}),n),t.uploadedBytes=n.uploadedBytes=l,n.result=i,n.textStatus=a,n.jqXHR=c,o._trigger("chunkdone",null,n),o._trigger("chunkalways",null,n),l<s?r():d.resolveWith(n.context,[i,a,c])}).fail(function(e,t,i){n.jqXHR=e,n.textStatus=t,n.errorThrown=i,o._trigger("chunkfail",null,n),o._trigger("chunkalways",null,n),d.rejectWith(n.context,[e,t,i])})},this._enhancePromise(f),f.abort=function(){return i.abort()},r(),f)))},_beforeSend:function(e,t){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0),this._initResponseObject(t),this._initProgressObject(t),t._progress.loaded=t.loaded=t.uploadedBytes||0,t._progress.total=t.total=this._getTotal(t.files)||1,t._progress.bitrate=t.bitrate=0,this._active+=1,this._progress.loaded+=t.loaded,this._progress.total+=t.total},_onDone:function(t,n,i,r){var o=r._progress.total,a=r._response;r._progress.loaded<o&&this._onProgress(e.Event("progress",{lengthComputable:!0,loaded:o,total:o}),r),a.result=r.result=t,a.textStatus=r.textStatus=n,a.jqXHR=r.jqXHR=i,this._trigger("done",null,r)},_onFail:function(e,t,n,i){var r=i._response;i.recalculateProgress&&(this._progress.loaded-=i._progress.loaded,this._progress.total-=i._progress.total),r.jqXHR=i.jqXHR=e,r.textStatus=i.textStatus=t,r.errorThrown=i.errorThrown=n,this._trigger("fail",null,i)},_onAlways:function(e,t,n,i){this._trigger("always",null,i)},_onSend:function(t,n){n.submit||this._addConvenienceMethods(t,n);var i,r,o,a,s=this,l=s._getAJAXSettings(n),c=function(){return s._sending+=1,l._bitrateTimer=new s._BitrateTimer,i=i||((r||!1===s._trigger("send",e.Event("send",{delegatedEvent:t}),l))&&s._getXHRPromise(!1,l.context,r)||s._chunkedUpload(l)||e.ajax(l)).done(function(e,t,n){s._onDone(e,t,n,l)}).fail(function(e,t,n){s._onFail(e,t,n,l)}).always(function(e,t,n){if(s._onAlways(e,t,n,l),s._sending-=1,s._active-=1,l.limitConcurrentUploads&&l.limitConcurrentUploads>s._sending)for(var i=s._slots.shift();i;){if("pending"===s._getDeferredState(i)){i.resolve();break}i=s._slots.shift()}0===s._active&&s._trigger("stop")})};return this._beforeSend(t,l),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(o=e.Deferred(),this._slots.push(o),a=o.then(c)):(this._sequence=this._sequence.then(c,c),a=this._sequence),a.abort=function(){return r=[void 0,"abort","abort"],i?i.abort():(o&&o.rejectWith(l.context,r),c())},this._enhancePromise(a)):c()},_onAdd:function(t,n){var i,r,o,a,s=this,l=!0,c=e.extend({},this.options,n),u=n.files,d=u.length,f=c.limitMultiFileUploads,p=c.limitMultiFileUploadSize,h=c.limitMultiFileUploadSizeOverhead,m=0,g=this._getParamName(c),v=0;if(!d)return!1;if(p&&void 0===u[0].size&&(p=void 0),(c.singleFileUploads||f||p)&&this._isXHRUpload(c))if(c.singleFileUploads||p||!f)if(!c.singleFileUploads&&p)for(o=[],i=[],a=0;a<d;a+=1)m+=u[a].size+h,(a+1===d||m+u[a+1].size+h>p||f&&a+1-v>=f)&&(o.push(u.slice(v,a+1)),(r=g.slice(v,a+1)).length||(r=g),i.push(r),v=a+1,m=0);else i=g;else for(o=[],i=[],a=0;a<d;a+=f)o.push(u.slice(a,a+f)),(r=g.slice(a,a+f)).length||(r=g),i.push(r);else o=[u],i=[g];return n.originalFiles=u,e.each(o||u,function(r,a){var c=e.extend({},n);return c.files=o?a:[a],c.paramName=i[r],s._initResponseObject(c),s._initProgressObject(c),s._addConvenienceMethods(t,c),l=s._trigger("add",e.Event("add",{delegatedEvent:t}),c)}),l},_replaceFileInput:function(t){var n=t.fileInput,i=n.clone(!0),r=n.is(document.activeElement);t.fileInputClone=i,e("<form></form>").append(i)[0].reset(),n.after(i).detach(),r&&i.focus(),e.cleanData(n.unbind("remove")),this.options.fileInput=this.options.fileInput.map(function(e,t){return t===n[0]?i[0]:t}),n[0]===this.element[0]&&(this.element=i)},_handleFileTreeEntry:function(t,n){var i,r=this,o=e.Deferred(),a=function(e){e&&!e.entry&&(e.entry=t),o.resolve([e])},s=function(e){r._handleFileTreeEntries(e,n+t.name+"/").done(function(e){o.resolve(e)}).fail(a)},l=function(){i.readEntries(function(e){e.length?(c=c.concat(e),l()):s(c)},a)},c=[];return n=n||"",t.isFile?t._file?(t._file.relativePath=n,o.resolve(t._file)):t.file(function(e){e.relativePath=n,o.resolve(e)},a):t.isDirectory?(i=t.createReader(),l()):o.resolve([]),o.promise()},_handleFileTreeEntries:function(t,n){var i=this;return e.when.apply(e,e.map(t,function(e){return i._handleFileTreeEntry(e,n)})).then(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(t){var n=(t=t||{}).items;return n&&n.length&&(n[0].webkitGetAsEntry||n[0].getAsEntry)?this._handleFileTreeEntries(e.map(n,function(e){var t;return e.webkitGetAsEntry?((t=e.webkitGetAsEntry())&&(t._file=e.getAsFile()),t):e.getAsEntry()})):e.Deferred().resolve(e.makeArray(t.files)).promise()},_getSingleFileInputFiles:function(t){var n,i,r=(t=e(t)).prop("webkitEntries")||t.prop("entr
4ies");if(r&&r.length)return this._handleFileTreeEntries(r);if((n=e.makeArray(t.prop("files"))).length)void 0===n[0].name&&n[0].fileName&&e.each(n,function(e,t){t.name=t.fileName,t.size=t.fileSize});else{if(!(i=t.prop("value")))return e.Deferred().resolve([]).promise();n=[{name:i.replace(/^.*\\/,"")}]}return e.Deferred().resolve(n).promise()},_getFileInputFiles:function(t){return t instanceof e&&1!==t.length?e.when.apply(e,e.map(t,this._getSingleFileInputFiles)).then(function(){return Array.prototype.concat.apply([],arguments)}):this._getSingleFileInputFiles(t)},_onChange:function(t){var n=this,i={fileInput:e(t.target),form:e(t.target.form)};this._getFileInputFiles(i.fileInput).always(function(r){i.files=r,n.options.replaceFileInput&&n._replaceFileInput(i),!1!==n._trigger("change",e.Event("change",{delegatedEvent:t}),i)&&n._onAdd(t,i)})},_onPaste:function(t){var n=t.originalEvent&&t.originalEvent.clipboardData&&t.originalEvent.clipboardData.items,i={files:[]};n&&n.length&&(e.each(n,function(e,t){var n=t.getAsFile&&t.getAsFile();n&&i.files.push(n)}),!1!==this._trigger("paste",e.Event("paste",{delegatedEvent:t}),i)&&this._onAdd(t,i))},_onDrop:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var n=this,i=t.dataTransfer,r={};i&&i.files&&i.files.length&&(t.preventDefault(),this._getDroppedFiles(i).always(function(i){r.files=i,!1!==n._trigger("drop",e.Event("drop",{delegatedEvent:t}),r)&&n._onAdd(t,r)}))},_onDragOver:t("dragover"),_onDragEnter:t("dragenter"),_onDragLeave:t("dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on(this.options.pasteZone,{paste:this._onPaste})),e.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragenter dragleave dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_setOption:function(t,n){var i=-1!==e.inArray(t,this._specialOptions);i&&this._destroyEventHandlers(),this._super(t,n),i&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var t=this.options;void 0===t.fileInput?t.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):t.fileInput instanceof e||(t.fileInput=e(t.fileInput)),t.dropZone instanceof e||(t.dropZone=e(t.dropZone)),t.pasteZone instanceof e||(t.pasteZone=e(t.pasteZone))},_getRegExp:function(e){var t=e.split("/"),n=t.pop();return t.shift(),new RegExp(t.join("/"),n)},_isRegExpOption:function(t,n){return"url"!==t&&"string"===e.type(n)&&/^\/.*\/[igm]{0,3}$/.test(n)},_initDataAttributes:function(){var t=this,n=this.options,i=this.element.data();e.each(this.element[0].attributes,function(e,r){var o,a=r.name.toLowerCase();/^data-/.test(a)&&(a=a.slice(5).replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()}),o=i[a],t._isRegExpOption(a,o)&&(o=t._getRegExp(o)),n[a]=o)})},_create:function(){this._initDataAttributes(),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=0,this._initProgressObject(this),this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(t){var n=this;t&&!this.options.disabled&&(t.fileInput&&!t.files?this._getFileInputFiles(t.fileInput).always(function(e){t.files=e,n._onAdd(null,t)}):(t.files=e.makeArray(t.files),this._onAdd(null,t)))},send:function(t){if(t&&!this.options.disabled){if(t.fileInput&&!t.files){var n,i,r=this,o=e.Deferred(),a=o.promise();return a.abort=function(){return i=!0,n?n.abort():(o.reject(null,"abort","abort"),a)},this._getFileInputFiles(t.fileInput).always(function(e){i||(e.length?(t.files=e,(n=r._onSend(null,t)).then(function(e,t,n){o.resolve(e,t,n)},function(e,t,n){o.reject(e,t,n)})):o.reject())}),this._enhancePromise(a)}if(t.files=e.makeArray(t.files),t.files.length)return this._onSend(null,t)}return this._getXHRPromise(!1,t&&t.context)}})}),function(e,t){var n;e.rails!==t&&e.error("jquery-ujs has already been loaded!");
4var i=e(document);e.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote], a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not(form button), button[data-confirm]:not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]),textarea[name][required]:not([disabled])",fileInputSelector:"input[type=file]",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",CSRFProtection:function(t){var n=e('meta[name="csrf-token"]').attr("content");n&&t.setRequestHeader("X-CSRF-Token",n)},refreshCSRFTokens:function(){var t=e("meta[name=csrf-token]").attr("content"),n=e("meta[name=csrf-param]").attr("content");e('form input[name="'+n+'"]').val(t)},fire:function(t,n,i){var r=e.Event(n);return t.trigger(r,i),!1!==r.result},confirm:function(e){return confirm(e)},ajax:function(t){return e.ajax(t)},href:function(e){return e.attr("href")},handleRemote:function(i){var r,o,a,s,l,c,u,d;if(n.fire(i,"ajax:before")){if(l=(s=i.data("cross-domain"))===t?null:s,c=i.data("with-credentials")||null,u=i.data("type")||e.ajaxSettings&&e.ajaxSettings.dataType,i.is("form")){r=i.attr("method"),o=i.attr("action"),a=i.serializeArray();var f=i.data("ujs:submit-button");f&&(a.push(f),i.data("ujs:submit-button",null))}else i.is(n.inputChangeSelector)?(r=i.data("method"),o=i.data("url"),a=i.serialize(),i.data("params")&&(a=a+"&"+i.data("params"))):i.is(n.buttonClickSelector)?(r=i.data("method")||"get",o=i.data("url"),a=i.serialize(),i.data("params")&&(a=a+"&"+i.data("params"))):(r=i.data("method"),o=n.href(i),a=i.data("params")||null);return d={type:r||"GET",data:a,dataType:u,beforeSend:function(e,r){if(r.dataType===t&&e.setRequestHeader("accept","*/*;q=0.5, "+r.accepts.script),!n.fire(i,"ajax:beforeSend",[e,r]))return!1;i.trigger("ajax:send",e)},success:function(e,t,n){i.trigger("ajax:success",[e,t,n])},complete:function(e,t){i.trigger("ajax:complete",[e,t])},error:function(e,t,n){i.trigger("ajax:error",[e,t,n])},crossDomain:l},c&&(d.xhrFields={withCredentials:c}),o&&(d.url=o),n.ajax(d)}return!1},handleMethod:function(i){var r=n.href(i),o=i.data("method"),a=i.attr("target"),s=e("meta[name=csrf-token]").attr("content"),l=e("meta[name=csrf-param]").attr("content"),c=e('<form method="post" action="'+r+'"></form>'),u='<input name="_method" value="'+o+'" type="hidden" />';l!==t&&s!==t&&(u+='<input name="'+l+'" value="'+s+'" type="hidden" />'),a&&c.attr("target",a),c.hide().append(u).appendTo("body"),c.submit()},formElements:function(t,n){return t.is("form")?e(t[0].elements).filter(n):t.find(n)},disableFormElements:function(t){n.formElements(t,n.disableSelector).each(function(){n.disableFormElement(e(this))})},disableFormElement:function(e){var n,i;n=e.is("button")?"html":"val",i=e.data("disable-with"),e.data("ujs:enable-with",e[n]()),i!==t&&e[n](i),e.prop("disabled",!0)},enableFormElements:function(t){n.formElements(t,n.enableSelector).each(function(){n.enableFormElement(e(this))})},enableFormElement:function(e){var t=e.is("button")?"html":"val";e.data("ujs:enable-with")&&e[t](e.data("ujs:enable-with")),e.prop("disabled",!1)},allowAction:function(e){var t,i=e.data("confirm"),r=!1;return!i||(n.fire(e,"confirm")&&(r=n.confirm(i),t=n.fire(e,"confirm:complete",[r])),r&&t)},blankInputs:function(t,n,i){var r,o=e(),a=n||"input,textarea",s=t.find(a);return s.each(function(){if(r=e(this),!(r.is("input[type=checkbox],input[type=radio]")?r.is(":checked"):r.val())==!i){if(r.is("input[type=radio]")&&s.filter('input[type=radio]:checked[name="'+r.attr("name")+'"]').length)return!0;o=o.add(r)}}),!!o.length&&o},nonBlankInputs:function(e,t){return n.blankInputs(e,t,!0)},stopEverything:function(t){return e(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(e){var i=e.data("disable-with");e.data("ujs:enable-with",e.html()),i!==t&&e.html(i),e.bind("click.railsDisable",function(e){return n.stopEverything(e)})},enableElement:function(e){e.data("ujs:enable-with")!==t&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.unbind("click.railsDisable")}},n.fire(i,"rails:attachBindings")&&(e.ajaxPrefilter(function(e,t,i){e.crossDomain||n.CSRFProtection(i)}),e(window).on("pageshow.rails",function(){e(e.rails.enableSelector).each(function(){var t=e(this);t.data("ujs:enable-with")&&e.rails.enableFormElement(t)}),e(e.rails.linkDisableSelector).each(function(){var t=e(this);t.data("ujs:enable-with")&&e.rails.enableElement(t)})}),i.delegate(n.linkDisableSelector,"ajax:complete",function(){n.enableElement(e(this))}),i.delegate(n.buttonDisableSelector,"ajax:complete",function(){n.enableFormElement(e(this))}),i.delegate(n.linkClickSelector,"click.rails",function(i){var r=e(this),o=r.data("method"),a=r.data("params"),s=i.metaKey||i.ctrlKey;if(!n.allowAction(r))return n.stopEverything(i);if(!s&&r.is(n.linkDisableSelector)&&n.disableElement(r),r.data("remote")!==t){if(s&&(!o||"GET"===o)&&!a)return!0;var l=n.handleRemote(r);return!1===l?n.enableElement(r):l.fail(function(){n.enableElement(r)}),!1}return o?(n.handleMethod(r),!1):void 0}),i.delegate(n.buttonClickSelector,"click.rails",function(t){var i=e(this);if(!n.allowAction(i))return n.stopEverything(t);i.is(n.buttonDisableSelector)&&n.disableFormElement(i);var r=n.handleRemote(i);return!1===r?n.enableFormElement(i):r.fail(function(){n.enableFormElement(i)}),!1}),i.delegate(n.inputChangeSelector,"change.rails",function(t){var i=e(this);return n.allowAction(i)?(n.handleRemote(i),!1):n.stopEverything(t)}),i.delegate(n.formSubmitSelector,"submit.rails",function(i){var r,o,a=e(this),s=a.data("remote")!==t;if(!n.allowAction(a))return n.stopEverything(i);if(a.attr("novalidate")==t&&(r=n.blankInputs(a,n.requiredInputSelector))&&n.fire(a,"ajax:aborted:required",[r]))return n.stopEverything(i);if(s){if(o=n.nonBlankInputs(a,n.fileInputSelector)){setTimeout(function(){n.disableFormElements(a)},13);var l=n.fire(a,"ajax:aborted:file",[o]);return l||setTimeout(function(){n.enableFormElements(a)},13),l}return n.handleRemote(a),!1}setTimeout(function(){n.disableFormElements(a)},13)}),
5i.delegate(n.formInputClickSelector,"click.rails",function(t){var i=e(this);if(!n.allowAction(i))return n.stopEverything(t);var r=i.attr("name"),o=r?{name:r,value:i.val()}:null;i.closest("form").data("ujs:submit-button",o)}),i.delegate(n.formSubmitSelector,"ajax:send.rails",function(t){this==t.target&&n.disableFormElements(e(this))}),i.delegate(n.formSubmitSelector,"ajax:complete.rails",function(t){this==t.target&&n.enableFormElements(e(this))}),e(function(){n.refreshCSRFTokens()}))}(jQuery),function(e){"use strict";"function"==typeof define&&define.amd?define(e):"undefined"!=typeof module&&void 0!==module.exports?module.exports=e():window.Sortable=e()}(function(){"use strict";function e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(e);this.el=e,this.options=t=b({},t),e[X]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0}};for(var i in n)!(i in t)&&(t[i]=n[i]);for(var r in se(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Z,o(e,"mousedown",this._onTapStart),o(e,"touchstart",this._onTapStart),o(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(o(e,"dragover",this),o(e,"dragenter",this)),oe.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function t(e,t){"clone"!==e.lastPullMode&&(t=!0),k&&k.state!==t&&(l(k,"display",t?"none":""),t||k.state&&(e.options.group.revertClone?(T.insertBefore(k,I),e._animate(_,k)):T.insertBefore(k,_)),k.state=t)}function n(e,t,n){if(e){n=n||V;do{if(">*"===t&&e.parentNode===n||v(e,t))return e}while(e=i(e))}return null}function i(e){var t=e.host;return t&&t.nodeType?t:e.parentNode}function r(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault()}function o(e,t,n){e.addEventListener(t,n,G)}function a(e,t,n){e.removeEventListener(t,n,G)}function s(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(W," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(W," ")}}function l(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return V.defaultView&&V.defaultView.getComputedStyle?n=V.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}
5function c(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r<o;r++)n(i[r],r);return i}return[]}function u(e,t,n,i,r,o,a,s){e=e||t[X];var l=V.createEvent("Event"),c=e.options,u="on"+n.charAt(0).toUpperCase()+n.substr(1);l.initEvent(n,!0,!0),l.to=r||t,l.from=o||t,l.item=i||t,l.clone=k,l.oldIndex=a,l.newIndex=s,t.dispatchEvent(l),c[u]&&c[u].call(e,l)}function d(e,t,n,i,r,o,a,s){var l,c,u=e[X],d=u.options.onMove;return(l=V.createEvent("Event")).initEvent("move",!0,!0),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=r||t,l.relatedRect=o||t.getBoundingClientRect(),l.willInsertAfter=s,e.dispatchEvent(l),d&&(c=d.call(u,l,a)),c}function f(e){e.draggable=!1}function p(){te=!1}function h(e,t){var n=e.lastElementChild.getBoundingClientRect();return t.clientY-(n.top+n.height)>5||t.clientX-(n.left+n.width)>5}function m(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function g(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e&&(e=e.previousElementSibling);)"TEMPLATE"===e.nodeName.toUpperCase()||">*"!==t&&!v(e,t)||n++;return n}function v(e,t){if(e){var n=(t=t.split(".")).shift().toUpperCase(),i=new RegExp("\\s("+t.join("|")+")(?=\\s)","g");return!(""!==n&&e.nodeName.toUpperCase()!=n||t.length&&((" "+e.className+" ").match(i)||[]).length!=t.length)}return!1}function y(e,t){var n,i;return function(){void 0===n&&(n=arguments,i=this,setTimeout(function(){1===n.length?e.call(i,n[0]):e.apply(i,n),n=void 0},t))}}function b(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function w(e){return J?J(e).clone(!0)[0]:K&&K.dom?K.dom(e).cloneNode(!0):e.cloneNode(!0)}function x(e){for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&re.push(i)}}if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var _,E,A,k,T,I,C,S,D,L,O,N,q,j,M,R,P,H,F,B,$,z={},W=/\s+/g,U=/left|right|inline/,X="Sortable"+(new Date).getTime(),Y=window,V=Y.document,Q=Y.parseInt,J=Y.jQuery||Y.Zepto,K=Y.Polymer,G=!1,Z=!!("draggable"in V.createElement("div")),ee=!navigator.userAgent.match(/Trident.*rv[ :]?11\./)&&(($=V.createElement("x")).style.cssText="pointer-events:auto","auto"===$.style.pointerEvents),te=!1,ne=Math.abs,ie=Math.min,re=[],oe=[],ae=y(function(e,t,n){if(n&&t.scroll){var i,r,o,a,s,l,c=n[X],u=t.scrollSensitivity,d=t.scrollSpeed,f=e.clientX,p=e.clientY,h=window.innerWidth,m=window.innerHeight;if(D!==n&&(S=t.scroll,D=n,L=t.scrollFn,!0===S)){S=n;do{if(S.offsetWidth<S.scrollWidth||S.offsetHeight<S.scrollHeight)break}while(S=S.parentNode)}S&&(i=S,r=S.getBoundingClientRect(),o=(ne(r.right-f)<=u)-(ne(r.left-f)<=u),a=(ne(r.bottom-p)<=u)-(ne(r.top-p)<=u)),o||a||(a=(m-p<=u)-(p<=u),((o=(h-f<=u)-(f<=u))||a)&&(i=Y)),z.vx===o&&z.vy===a&&z.el===i||(z.el=i,z.vx=o,z.vy=a,clearInterval(z.pid),i&&(z.pid=setInterval(function(){if(l=a?a*d:0,s=o?o*d:0,"function"==typeof L)return L.call(c,s,l,e);i===Y?Y.scrollTo(Y.pageXOffset+s,Y.pageYOffset+l):(i.scrollTop+=l,i.scrollLeft+=s)},24)))}},30),se=function(e){function t(e,t){return void 0!==e&&!0!==e||(e=n.name),"function"==typeof e?e:function(n,i){var r=i.options.group.name;return t?e:e&&(e.join?e.indexOf(r)>-1:r==e)}}var n={},i=e.group;i&&"object"==typeof i||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n};e.prototype={constructor:e,_onTapStart:function(e){var t,i=this,r=this.el,o=this.options,a=o.preventOnFilter,s=e.type,l=e.touches&&e.touches[0],c=(l||e).target,d=e.target.shadowRoot&&e.path&&e.path[0]||c,f=o.filter;if(x(r),!_&&!(/mousedown|pointerdown/.test(s)&&0!==e.button||o.disabled)&&(c=n(c,o.draggable,r))&&C!==c){if(t=g(c,o.draggable),"function"==typeof f){if(f.call(this,e,c,this))return u(i,d,"filter",c,r,r,t),void(a&&e.preventDefault())}else if(f&&(f=f.split(",").some(function(e){if(e=n(d,e.trim(),r))return u(i,e,"filter",c,r,r,t),!0})))return void(a&&e.preventDefault());o.handle&&!n(d,o.handle,r)||this._prepareDragStart(e,l,c,t)}},_prepareDragStart:function(e,t,n,i){var r,a=this,l=a.el,d=a.options,p=l.ownerDocument;n&&!_&&n.parentNode===l&&(H=e,T=l,E=(_=n).parentNode,I=_.nextSibling,C=n,R=d.group,j=i,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,_.style["will-change"]="transform",r=function(){a._disableDelayedDrag(),_.draggable=a.nativeDraggable,s(_,d.chosenClass,!0),a._triggerDragStart(e,t),u(a,T,"choose",_,T,T,j)},d.ignore.split(",").forEach(function(e){c(_,e.trim(),f)}),o(p,"mouseup",a._onDrop),o(p,"touchend",a._onDrop),o(p,"touchcancel",a._onDrop),o(p,"pointercancel",a._onDrop),o(p,"selectstart",a),d.delay?(o(p,"mouseup",a._disableDelayedDrag),o(p,"touchend",a._disableDelayedDrag),o(p,"touchcancel",a._disableDelayedDrag),o(p,"mousemove",a._disableDelayedDrag),o(p,"touchmove",a._disableDelayedDrag),o(p,"pointermove",a._disableDelayedDrag),a._dragStartTimer=setTimeout(r,d.delay)):r())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),a(e,"mouseup",this._disableDelayedDrag),a(e,"touchend",this._disableDelayedDrag),a(e,"touchcancel",this._disableDelayedDrag),a(e,"mousemove",this._disableDelayedDrag),a(e,"touchmove",this._disableDelayedDrag),a(e,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(e,t){(t=t||("touch"==e.pointerType?e:null))?(H={target:_,clientX:t.clientX,clientY:t.clientY},this._onDragStart(H,"touch")):this.nativeDraggable?(o(_,"dragend",this),o(T,"dragstart",this._onDragStart)):this._onDragStart(H,!0);try{V.selection?setTimeout(function(){V.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(){if(T&&_){var t=this.options;s(_,t.ghostClass,!0),s(_,t.dragClass,!1),e.active=this,u(this,T,"start",_,T,T,j)}
5else this._nulling()},_emulateDragOver:function(){if(F){if(this._lastX===F.clientX&&this._lastY===F.clientY)return;this._lastX=F.clientX,this._lastY=F.clientY,ee||l(A,"display","none");var e=V.elementFromPoint(F.clientX,F.clientY),t=e,n=oe.length;if(t)do{if(t[X]){for(;n--;)oe[n]({clientX:F.clientX,clientY:F.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);ee||l(A,"display","")}},_onTouchMove:function(t){if(H){var n=this.options,i=n.fallbackTolerance,r=n.fallbackOffset,o=t.touches?t.touches[0]:t,a=o.clientX-H.clientX+r.x,s=o.clientY-H.clientY+r.y,c=t.touches?"translate3d("+a+"px,"+s+"px,0)":"translate("+a+"px,"+s+"px)";if(!e.active){if(i&&ie(ne(o.clientX-this._lastX),ne(o.clientY-this._lastY))<i)return;this._dragStarted()}this._appendGhost(),B=!0,F=o,l(A,"webkitTransform",c),l(A,"mozTransform",c),l(A,"msTransform",c),l(A,"transform",c),t.preventDefault()}},_appendGhost:function(){if(!A){var e,t=_.getBoundingClientRect(),n=l(_),i=this.options;s(A=_.cloneNode(!0),i.ghostClass,!1),s(A,i.fallbackClass,!0),s(A,i.dragClass,!0),l(A,"top",t.top-Q(n.marginTop,10)),l(A,"left",t.left-Q(n.marginLeft,10)),l(A,"width",t.width),l(A,"height",t.height),l(A,"opacity","0.8"),l(A,"position","fixed"),l(A,"zIndex","100000"),l(A,"pointerEvents","none"),i.fallbackOnBody&&V.body.appendChild(A)||T.appendChild(A),e=A.getBoundingClientRect(),l(A,"width",2*t.width-e.width),l(A,"height",2*t.height-e.height)}},_onDragStart:function(e,t){var n=e.dataTransfer,i=this.options;this._offUpEvents(),R.checkPull(this,this,_,e)&&((k=w(_)).draggable=!1,k.style["will-change"]="",l(k,"display","none"),s(k,this.options.chosenClass,!1),T.insertBefore(k,_),u(this,T,"clone",_)),s(_,i.dragClass,!0),t?("touch"===t?(o(V,"touchmove",this._onTouchMove),o(V,"touchend",this._onDrop),o(V,"touchcancel",this._onDrop),o(V,"pointermove",this._onTouchMove),o(V,"pointerup",this._onDrop)):(o(V,"mousemove",this._onTouchMove),o(V,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(n&&(n.effectAllowed="move",i.setData&&i.setData.call(this,n,_)),o(V,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(i){var r,o,a,s,c=this.el,u=this.options,f=u.group,m=e.active,g=R===f,v=!1,y=u.sort;if(void 0!==i.preventDefault&&(i.preventDefault(),!u.dragoverBubble&&i.stopPropagation()),!_.animated&&(B=!0,m&&!u.disabled&&(g?y||(s=!T.contains(_)):P===this||(m.lastPullMode=R.checkPull(this,m,_,i))&&f.checkPut(this,m,_,i))&&(void 0===i.rootEl||i.rootEl===this.el))){if(ae(i,u,this.el),te)return;if(r=n(i.target,u.draggable,c),o=_.getBoundingClientRect(),P!==this&&(P=this,v=!0),s)return t(m,!0),E=T,void(k||I?T.insertBefore(_,k||I):y||T.appendChild(_));if(0===c.children.length||c.children[0]===A||c===i.target&&h(c,i)){if(0!==c.children.length&&c.children[0]!==A&&c===i.target&&(r=c.lastElementChild),r){if(r.animated)return;a=r.getBoundingClientRect()}t(m,g),!1!==d(T,c,_,o,r,a,i)&&(_.contains(c)||(c.appendChild(_),E=c),this._animate(o,_),r&&this._animate(a,r))}else if(r&&!r.animated&&r!==_&&void 0!==r.parentNode[X]){O!==r&&(O=r,N=l(r),q=l(r.parentNode));var b=(a=r.getBoundingClientRect()).right-a.left,w=a.bottom-a.top,x=U.test(N.cssFloat+N.display)||"flex"==q.display&&0===q["flex-direction"].indexOf("row"),C=r.offsetWidth>_.offsetWidth,S=r.offsetHeight>_.offsetHeight,D=(x?(i.clientX-a.left)/b:(i.clientY-a.top)/w)>.5,L=r.nextElementSibling,j=!1;if(x){var M=_.offsetTop,H=r.offsetTop;j=M===H?r.previousElementSibling===_&&!C||D&&C:r.previousElementSibling===_||_.previousElementSibling===r?(i.clientY-a.top)/w>.5:H>M}else v||(j=L!==_&&!S||D&&S);var F=d(T,c,_,o,r,a,i,j);!1!==F&&(1!==F&&-1!==F||(j=1===F),te=!0,setTimeout(p,30),t(m,g),_.contains(c)||(j&&!L?c.appendChild(_):r.parentNode.insertBefore(_,j?L:r)),E=_.parentNode,this._animate(o,_),this._animate(a,r))}}},_animate:function(e,t){var n=this.options.animation;if(n){var i=t.getBoundingClientRect();1===e.nodeType&&(e=e.getBoundingClientRect()),l(t,"transition","none"),l(t,"transform","translate3d("+(e.left-i.left)+"px,"+(e.top-i.top)+"px,0)"),t.offsetWidth,l(t,"transition","all "+n+"ms"),l(t,"transform","translate3d(0,
50,0)"),clearTimeout(t.animated),t.animated=setTimeout(function(){l(t,"transition",""),l(t,"transform",""),t.animated=!1},n)}},_offUpEvents:function(){var e=this.el.ownerDocument;a(V,"touchmove",this._onTouchMove),a(V,"pointermove",this._onTouchMove),a(e,"mouseup",this._onDrop),a(e,"touchend",this._onDrop),a(e,"pointerup",this._onDrop),a(e,"touchcancel",this._onDrop),a(e,"pointercancel",this._onDrop),a(e,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;clearInterval(this._loopId),clearInterval(z.pid),clearTimeout(this._dragStartTimer),a(V,"mousemove",this._onTouchMove),this.nativeDraggable&&(a(V,"drop",this),a(n,"dragstart",this._onDragStart)),this._offUpEvents(),t&&(B&&(t.preventDefault(),!i.dropBubble&&t.stopPropagation()),A&&A.parentNode&&A.parentNode.removeChild(A),T!==E&&"clone"===e.active.lastPullMode||k&&k.parentNode&&k.parentNode.removeChild(k),_&&(this.nativeDraggable&&a(_,"dragend",this),f(_),_.style["will-change"]="",s(_,this.options.ghostClass,!1),s(_,this.options.chosenClass,!1),u(this,T,"unchoose",_,E,T,j),T!==E?(M=g(_,i.draggable))>=0&&(u(null,E,"add",_,E,T,j,M),u(this,T,"remove",_,E,T,j,M),u(null,E,"sort",_,E,T,j,M),u(this,T,"sort",_,E,T,j,M)):_.nextSibling!==I&&(M=g(_,i.draggable))>=0&&(u(this,T,"update",_,E,T,j,M),u(this,T,"sort",_,E,T,j,M)),e.active&&(null!=M&&-1!==M||(M=j),u(this,T,"end",_,E,T,j,M),this.save()))),this._nulling()},_nulling:function(){T=_=E=A=I=k=C=S=D=H=F=B=M=O=N=P=R=e.active=null,re.forEach(function(e){e.checked=!0}),re.length=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragover":case"dragenter":_&&(this._onDragOver(e),r(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],i=this.el.children,r=0,o=i.length,a=this.options;r<o;r++)n(e=i[r],a.draggable,this.el)&&t.push(e.getAttribute(a.dataIdAttr)||m(e));return t},sort:function(e){var t={},i=this.el;this.toArray().forEach(function(e,r){var o=i.children[r];n(o,this.options.draggable,i)&&(t[e]=o)},this),e.forEach(function(e){t[e]&&(i.removeChild(t[e]),i.appendChild(t[e]))})},save:function(){var e=this.options.store;e&&e.set(this)},closest:function(e,t){return n(e,t||this.options.draggable,this.el)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];n[e]=t,"group"===e&&se(n)},destroy:function(){var e=this.el;e[X]=null,a(e,"mousedown",this._onTapStart),a(e,"touchstart",this._onTapStart),a(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(a(e,"dragover",this),a(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),oe.splice(oe.indexOf(this._onDragOver),1),this._onDrop(),this.el=e=null}},o(V,"touchmove",function(t){e.active&&t.preventDefault()});try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){G={capture:!1,passive:!1}}}))}catch(e){}return e.utils={on:o,off:a,css:l,find:c,is:function(e,t){return!!n(e,t,e)},extend:b,throttle:y,closest:n,toggleClass:s,clone:w,index:g},e.create=function(t,n){return new e(t,n)},e.version="1.6.1",e}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,function(){return function(){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{}};return t[i](r,r.exports,e),r.exports}var t={686:function(e,t,n){"use strict";function i(e){try{return document.execCommand(e)}catch(e){return!1}}function r(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(i,"px"),n.setAttribute("readonly",""),n.value=e,n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
5function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){var t=m();return function(){var n,i=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function v(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}n.d(t,{default:function(){return L}});var y=n(279),b=n.n(y),w=n(370),x=n.n(w),_=n(817),E=n.n(_),A=function(e){var t=E()(e);return i("cut"),t},k=function(e,t){var n=r(e);t.container.appendChild(n);var o=E()(n);return i("copy"),n.remove(),o},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=k(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=k(e.value,t):(n=E()(e),i("copy")),n},I=T,C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,i=e.container,r=e.target,a=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r){if(!r||"object"!==o(r)||1!==r.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&r.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return a?I(a,{container:i}):r?"cut"===n?A(r):I(r,{container:i}):void 0},S=C,D=function(e){function t(e,i){var r;return s(this,t),(r=n.call(this)).resolveOptions(i),r.listenClick(e),r}u(t,e);var n=f(t);return c(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===a(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=x()(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",i=S({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(i?"success":"error",{action:n,text:i,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return v("action",e)}},{key:"defaultTarget",value:function(e){var t=v("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return v("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return I(e,t)}},{key:"cut",value:function(e){return A(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}(b()),L=D},828:function(e){function t(e,t){for(;e&&e.nodeType!==n;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}e.exports=t},438:function(e,t,n){function i(e,t,n,i,r){var a=o.apply(this,arguments);return e.addEventListener(n,a,r),{destroy:function(){e.removeEventListener(n,a,r)}}}function r(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,r,o)}))}function o(e,t,n,i){return function(n){n.delegateTarget=a(n.target,t),n.delegateTarget&&i.call(e,n)}}var a=n(828);e.exports=r},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){function i(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return r(e,t,n);if(s.nodeList(e))return o(e,t,n);if(s.string(e))return a(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function r(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function o(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function a(e,t,n){return l(document.body,e,t,n)}var s=n(879),l=n(438);e.exports=i},817:function(e){function t(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(e),i.removeAllRanges(),i.addRange(r),t=i.toString()}return t}e.exports=t},279:function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function i(){r.off(e,i),t.apply(n,arguments)}var r=this;return i._=t,this.on(e,i,n)}
5,emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var o=0,a=i.length;o<a;o++)i[o].fn!==t&&i[o].fn._!==t&&r.push(i[o]);return r.length?n[e]=r:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},n={};return e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e(686)}().default}),function(e){var t,n,i,r,o,a,s,l=navigator.userAgent;e.HTMLPictureElement&&/ecko/.test(l)&&l.match(/rv\:(\d+)/)&&RegExp.$1<45&&addEventListener("resize",(n=document.createElement("source"),i=function(e){var t,i,r=e.parentNode;"PICTURE"===r.nodeName.toUpperCase()?(t=n.cloneNode(),r.insertBefore(t,r.firstElementChild),setTimeout(function(){r.removeChild(t)})):(!e._pfLastSize||e.offsetWidth>e._pfLastSize)&&(e._pfLastSize=e.offsetWidth,i=e.sizes,e.sizes+=",100vw",setTimeout(function(){e.sizes=i}))},r=function(){var e,t=document.querySelectorAll("picture > img, img[srcset][sizes]");for(e=0;e<t.length;e++)i(t[e])},o=function(){clearTimeout(t),t=setTimeout(r,99)},a=e.matchMedia&&matchMedia("(orientation: landscape)"),s=function(){o(),a&&a.addListener&&a.addListener(o)},n.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?s():document.addEventListener("DOMContentLoaded",s),o))}(window),function(e,t,n){"use strict";function i(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function r(t,n){var i=new e.Image;return i.onerror=function(){H[t]=!1,he()},i.onload=function(){H[t]=1===i.width,he()},i.src=n,"pending"}function o(){K=!1,ee=e.devicePixelRatio,G={},Z={},L.DPR=ee||1,te.width=Math.max(e.innerWidth||0,P.clientWidth),te.height=Math.max(e.innerHeight||0,P.clientHeight),te.vw=te.width/100,te.vh=te.height/100,g=[te.height,te.width,ee].join("-"),te.em=L.getEmValue(),te.rem=te.em}function a(e,t,n,i){var r,o,a;return"saveData"===F.algorithm?e>2.7?a=n+1:(o=(t-n)*(r=Math.pow(e-.6,1.5)),i&&(o+=.1*r),a=e+o):a=n>1?Math.sqrt(e*t):e,a>n}function s(e){var t,n=L.getSet(e),i=!1;"pending"!==n&&(i=g,n&&(t=L.setRes(n),L.applySetCandidate(t,e))),e[L.ns].evaled=i}function l(e,t){return e.res-t.res}function c(e,t,n){var i;return!n&&t&&(n=(n=e[L.ns].sets)&&n[n.length-1]),(i=u(t,n))&&(t=L.makeUrl(t),e[L.ns].curSrc=t,e[L.ns].curCan=i,i.res||pe(i,i.set.sizes)),i}function u(e,t){var n,i,r;if(e&&t)for(r=L.parseSet(t),e=L.makeUrl(e),n=0;n<r.length;n++)if(e===L.makeUrl(r[n].url)){i=r[n];break}return i}function d(e,t){var n,i,r,o,a=e.getElementsByTagName("source");for(n=0,i=a.length;n<i;n++)(r=a[n])[L.ns]=!0,(o=r.getAttribute("srcset"))&&t.push({srcset:o,media:r.getAttribute("media"),type:r.getAttribute("type"),sizes:r.getAttribute("sizes")})}function f(e,t){function n(t){var n,i=t.exec(e.substring(f));if(i)return n=i[0],f+=n.length,n}function r(){var e,n,i,r,o,l,c,u,d,f=!1,h={};for(r=0;r<s.length;r++)l=(o=s[r])[o.length-1],c=o.substring(0,o.length-1),u=parseInt(c,10),d=parseFloat(c),le.test(c)&&"w"===l?((e||n)&&(f=!0),0===u?f=!0:e=u):ce.test(c)&&"x"===l?((e||n||i)&&(f=!0),d<0?f=!0:n=d):le.test(c)&&"h"===l?((i||n)&&(f=!0),0===u?f=!0:i=u):f=!0;f||(h.url=a,e&&(h.w=e),n&&(h.d=n),i&&(h.h=i),i||n||e||(h.d=1),1===h.d&&(t.has1x=!0),h.set=t,p.push(h))}function o(){for(n(re),l="",c="in descriptor";;){if(u=e.charAt(f),"in descriptor"===c)if(i(u))l&&(s.push(l),l="",c="after descriptor");else{if(","===u)return f+=1,l&&s.push(l),void r();if("("===u)l+=u,c="in parens";else{if(""===u)return l&&s.push(l),void r();l+=u}}else if("in parens"===c)if(")"===u)l+=u,c="in descriptor";else{if(""===u)return s.push(l),void r();l+=u}else if("after descriptor"===c)if(i(u));else{if(""===u)return void r();c="in descriptor",f-=1}f+=1}}for(var a,s,l,c,u,d=e.length,f=0,p=[];;){if(n(oe),f>=d)return p;a=n(ae),s=[],","===a.slice(-1)?(a=a.replace(se,""),r()):o()}}function p(e){function t(e){function t(){o&&(a.push(o),o="")}function n(){a[0]&&(s.push(a),a=[])}for(var r,o="",a=[],s=[],l=0,c=0,u=!1;;){if(""===(r=e.charAt(c)))return t(),n(),s;if(u){if("*"===r&&"/"===e[c+1]){u=!1,c+=2,t();continue}c+=1}else{if(i(r)){if(e.charAt(c-1)&&i(e.charAt(c-1))||!o){c+=1;continue}if(0===l){t(),c+=1;continue}r=" "}else if("("===r)l+=1;else if(")"===r)l-=1;else{if(","===r){t(),n(),c+=1;continue}if("/"===r&&"*"===e.charAt(c+1)){u=!0,c+=2;continue}}
5o+=r,c+=1}}}function n(e){return!!(u.test(e)&&parseFloat(e)>=0)||(!!d.test(e)||("0"===e||"-0"===e||"+0"===e))}var r,o,a,s,l,c,u=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,d=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(a=(o=t(e)).length,r=0;r<a;r++)if(n(l=(s=o[r])[s.length-1])){if(c=l,s.pop(),0===s.length)return c;if(s=s.join(" "),L.matchesMedia(s))return c}return"100vw"}var h,m,g;t.createElement("picture");var v,y,b,w,x,_,E,A,k,T,I,C,S,D,L={},O=!1,N=function(){},q=t.createElement("img"),j=q.getAttribute,M=q.setAttribute,R=q.removeAttribute,P=t.documentElement,H={},F={algorithm:""},B="data-pfsrc",$=B+"set",z=navigator.userAgent,W=/rident/.test(z)||/ecko/.test(z)&&z.match(/rv\:(\d+)/)&&RegExp.$1>35,U="currentSrc",X=/\s+\+?\d+(e\d+)?w/,Y=/(\([^)]+\))?\s*(.+)/,V=e.picturefillCFG,Q="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",J="font-size:100%!important;",K=!0,G={},Z={},ee=e.devicePixelRatio,te={px:1,in:96},ne=t.createElement("a"),ie=!1,re=/^[ \t\n\r\u000c]+/,oe=/^[, \t\n\r\u000c]+/,ae=/^[^ \t\n\r\u000c]+/,se=/[,]+$/,le=/^\d+$/,ce=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,ue=function(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i||!1):e.attachEvent&&e.attachEvent("on"+t,n)},de=function(e){var t={};return function(n){return n in t||(t[n]=e(n)),t[n]}},fe=(v=/^([\d\.]+)(em|vw|px)$/,y=function(){for(var e=arguments,t=0,n=e[0];++t in e;)n=n.replace(e[t],e[++t]);return n},b=de(function(e){return"return "+y((e||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"}),function(e,t){var n;if(!(e in G))if(G[e]=!1,t&&(n=e.match(v)))G[e]=n[1]*te[n[2]];else try{G[e]=new Function("e",b(e))(te)}catch(e){}return G[e]}),pe=function(e,t){return e.w?(e.cWidth=L.calcListLength(t||"100vw"),e.res=e.w/e.cWidth):e.res=e.d,e},he=function(e){if(O){var n,i,r,o=e||{};if(o.elements&&1===o.elements.nodeType&&("IMG"===o.elements.nodeName.toUpperCase()?o.elements=[o.elements]:(o.context=o.elements,o.elements=null)),r=(n=o.elements||L.qsa(o.context||t,o.reevaluate||o.reselect?L.sel:L.selShort)).length){for(L.setupRun(o),ie=!0,i=0;i<r;i++)L.fillImg(n[i],o);L.teardownRun(o)}}};e.console&&console.warn,U in q||(U="src"),H["image/jpeg"]=!0,H["image/gif"]=!0,H["image/png"]=!0,H["image/svg+xml"]=t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),L.ns=("pf"+(new Date).getTime()).substr(0,9),L.supSrcset="srcset"in q,L.supSizes="sizes"in q,L.supPicture=!!e.HTMLPictureElement,L.supSrcset&&L.supPicture&&!L.supSizes&&(w=t.createElement("img"),q.srcset="data:,a",w.src="data:,a",L.supSrcset=q.complete===w.complete,L.supPicture=L.supSrcset&&L.supPicture),L.supSrcset&&!L.supSizes?(x="data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==",_="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E=t.createElement("img"),A=function(){2===E.width&&(L.supSizes=!0),m=L.supSrcset&&!L.supSizes,O=!0,setTimeout(he)},E.onload=A,E.onerror=A,E.setAttribute("sizes","9px"),E.srcset=_+" 1w,"+x+" 9w",E.src=_):O=!0,L.selShort="picture>img,img[srcset]",L.sel=L.selShort,L.cfg=F,L.DPR=ee||1,L.u=te,L.types=H,L.setSize=N,L.makeUrl=de(function(e){return ne.href=e,ne.href}),L.qsa=function(e,t){return"querySelector"in e?e.querySelectorAll(t):[]},L.matchesMedia=function(){return e.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?L.matchesMedia=function(e){return!e||matchMedia(e).matches}:L.matchesMedia=L.mMQ,L.matchesMedia.apply(this,arguments)},
6L.mMQ=function(e){return!e||fe(e)},L.calcLength=function(e){var t=fe(e,!0)||!1;return t<0&&(t=!1),t},L.supportsType=function(e){return!e||H[e]},L.parseSize=de(function(e){var t=(e||"").match(Y);return{media:t&&t[1],length:t&&t[2]}}),L.parseSet=function(e){return e.cands||(e.cands=f(e.srcset,e)),e.cands},L.getEmValue=function(){var e;if(!h&&(e=t.body)){var n=t.createElement("div"),i=P.style.cssText,r=e.style.cssText;n.style.cssText=Q,P.style.cssText=J,e.style.cssText=J,e.appendChild(n),h=n.offsetWidth,e.removeChild(n),h=parseFloat(h,10),P.style.cssText=i,e.style.cssText=r}return h||16},L.calcListLength=function(e){if(!(e in Z)||F.uT){var t=L.calcLength(p(e));Z[e]=t||te.width}return Z[e]},L.setRes=function(e){var t;if(e)for(var n=0,i=(t=L.parseSet(e)).length;n<i;n++)pe(t[n],e.sizes);return t},L.setRes.res=pe,L.applySetCandidate=function(e,t){if(e.length){var n,i,r,o,s,u,d,f,p,h=t[L.ns],m=L.DPR;if(u=h.curSrc||t[U],(d=h.curCan||c(t,u,e[0].set))&&d.set===e[0].set&&((p=W&&!t.complete&&d.res-.1>m)||(d.cached=!0,d.res>=m&&(s=d))),!s)for(e.sort(l),s=e[(o=e.length)-1],i=0;i<o;i++)if((n=e[i]).res>=m){s=e[r=i-1]&&(p||u!==L.makeUrl(n.url))&&a(e[r].res,n.res,m,e[r].cached)?e[r]:n;break}s&&(f=L.makeUrl(s.url),h.curSrc=f,h.curCan=s,f!==u&&L.setSrc(t,s),L.setSize(t))}},L.setSrc=function(e,t){var n;e.src=t.url,"image/svg+xml"===t.set.type&&(n=e.style.width,e.style.width=e.offsetWidth+1+"px",e.offsetWidth+1&&(e.style.width=n))},L.getSet=function(e){var t,n,i,r=!1,o=e[L.ns].sets;for(t=0;t<o.length&&!r;t++)if((n=o[t]).srcset&&L.matchesMedia(n.media)&&(i=L.supportsType(n.type))){"pending"===i&&(n=i),r=n;break}return r},L.parseSets=function(e,t,i){var r,o,a,s,l=t&&"PICTURE"===t.nodeName.toUpperCase(),c=e[L.ns];(c.src===n||i.src)&&(c.src=j.call(e,"src"),c.src?M.call(e,B,c.src):R.call(e,B)),(c.srcset===n||i.srcset||!L.supSrcset||e.srcset)&&(r=j.call(e,"srcset"),c.srcset=r,s=!0),c.sets=[],l&&(c.pic=!0,d(t,c.sets)),c.srcset?(o={srcset:c.srcset,sizes:j.call(e,"sizes")}
6,c.sets.push(o),(a=(m||c.src)&&X.test(c.srcset||""))||!c.src||u(c.src,o)||o.has1x||(o.srcset+=", "+c.src,o.cands.push({url:c.src,d:1,set:o}))):c.src&&c.sets.push({srcset:c.src,sizes:null}),c.curCan=null,c.curSrc=n,c.supported=!(l||o&&!L.supSrcset||a&&!L.supSizes),s&&L.supSrcset&&!c.supported&&(r?(M.call(e,$,r),e.srcset=""):R.call(e,$)),c.supported&&!c.srcset&&(!c.src&&e.src||e.src!==L.makeUrl(c.src))&&(null===c.src?e.removeAttribute("src"):e.src=c.src),c.parsed=!0},L.fillImg=function(e,t){var n,i=t.reselect||t.reevaluate;e[L.ns]||(e[L.ns]={}),n=e[L.ns],(i||n.evaled!==g)&&(n.parsed&&!t.reevaluate||L.parseSets(e,e.parentNode,t),n.supported?n.evaled=g:s(e))},L.setupRun=function(){ie&&!K&&ee===e.devicePixelRatio||o()},L.supPicture?(he=N,L.fillImg=N):(T=e.attachEvent?/d$|^c/:/d$|^c|^i/,I=function(){var e=t.readyState||"";C=setTimeout(I,"loading"===e?200:999),t.body&&(L.fillImgs(),(k=k||T.test(e))&&clearTimeout(C))},C=setTimeout(I,t.body?9:99),S=function(e,t){var n,i,r=function(){var o=new Date-i;o<t?n=setTimeout(r,t-o):(n=null,e())};return function(){i=new Date,n||(n=setTimeout(r,t))}},D=P.clientHeight,ue(e,"resize",S(function(){K=Math.max(e.innerWidth||0,P.clientWidth)!==te.width||P.clientHeight!==D,D=P.clientHeight,K&&L.fillImgs()},99)),ue(t,"readystatechange",I)),L.picturefill=he,L.fillImgs=he,L.teardownRun=N,he._=L,e.picturefillCFG={pf:L,push:function(e){var t=e.shift();"function"==typeof L[t]?L[t].apply(L,e):(F[t]=e[0],ie&&L.fillImgs({reselect:!0}))}};for(;V&&V.length;)e.picturefillCFG.push(V.shift());e.picturefill=he,"object"==typeof module&&"object"==typeof module.exports?module.exports=he:"function"==typeof define&&define.amd&&define("picturefill",function(){return he}),L.supPicture||(H["image/webp"]=r("image/webp","data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="))}(window,document),function(e,t){if("function"==typeof define&&define.amd)define(["exports","module"],t);else if("undefined"!=typeof exports&&"undefined"!=typeof module)t(exports,module);else{var n={exports:{}};t(n.exports,n),e.autosize=n.exports}}(this,function(e,t){"use strict";function n(e){function t(){var t=window.getComputedStyle(e,null);"vertical"===t.resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),a="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(a)&&(a=0),o()}function n(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function i(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function r(){var t=e.style.height,n=i(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="";var o=e.scrollHeight+a;0!==e.scrollHeight?(e.style.height=o+"px",c=e.clientWidth,n.forEach(function(e){e.node.scrollTop=e.scrollTop}),r&&(document.documentElement.scrollTop=r)):e.style.height=t}function o(){r();var t=Math.round(parseFloat(e.style.height)),i=window.getComputedStyle(e,null),o="content-box"===i.boxSizing?Math.round(parseFloat(i.height)):e.offsetHeight;if(o!==t?"hidden"===i.overflowY&&(n("scroll"),r(),o="content-box"===i.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==i.overflowY&&(n("hidden"),r(),o="content-box"===i.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),u!==o){u=o;var a=l("autosize:resized");try{e.dispatchEvent(a)}catch(e){}}}if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!s.has(e)){var a=null,c=e.clientWidth,u=null,d=function(){e.clientWidth!==c&&o()},f=function(t){window.removeEventListener("resize",d,!1),e.removeEventListener("input",o,!1),e.removeEventListener("keyup",o,!1),e.removeEventListener("autosize:destroy",f,!1),e.removeEventListener("autosize:update",o,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),s.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",f,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",o,!1),window.addEventListener("resize",d,!1),e.addEventListener("input",o,!1),e.addEventListener("autosize:update",o,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",s.set(e,{destroy:f,update:o}),t()}}function i(e){var t=s.get(e);t&&t.destroy()}function r(e){var t=s.get(e);
6t&&t.update()}var o,a,s="function"==typeof Map?new Map:(o=[],a=[],{has:function(e){return o.indexOf(e)>-1},get:function(e){return a[o.indexOf(e)]},set:function(e,t){-1===o.indexOf(e)&&(o.push(e),a.push(t))},delete:function(e){var t=o.indexOf(e);t>-1&&(o.splice(t,1),a.splice(t,1))}}),l=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){l=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e,t)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e}),t.exports=c}),function(e){"object"==typeof exports&&exports&&"object"==typeof module&&module&&module.exports===exports?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){function t(e){var t=e[0];return t.offsetWidth>0&&t.offsetHeight>0}function n(t){if(t.minTime&&(t.minTime=b(t.minTime)),t.maxTime&&(t.maxTime=b(t.maxTime)),t.durationTime&&"function"!=typeof t.durationTime&&(t.durationTime=b(t.durationTime)),"now"==t.scrollDefault)t.scrollDefault=function(){return t.roundingFunction(b(new Date),t)};else if(t.scrollDefault&&"function"!=typeof t.scrollDefault){var n=t.scrollDefault;t.scrollDefault=function(){return t.roundingFunction(b(n),t)}}else t.minTime&&(t.scrollDefault=function(){return t.roundingFunction(t.minTime,t)});if("string"===e.type(t.timeFormat)&&t.timeFormat.match(/[gh]/)&&(t._twelveHourTime=!0),!1===t.showOnFocus&&-1!=t.showOn.indexOf("focus")&&t.showOn.splice(t.showOn.indexOf("focus"),1),t.disableTimeRanges.length>0){for(var i in t.disableTimeRanges)t.disableTimeRanges[i]=[b(t.disableTimeRanges[i][0]),b(t.disableTimeRanges[i][1])];t.disableTimeRanges=t.disableTimeRanges.sort(function(e,t){return e[0]-t[0]});for(i=t.disableTimeRanges.length-1;i>0;i--)t.disableTimeRanges[i][0]<=t.disableTimeRanges[i-1][1]&&(t.disableTimeRanges[i-1]=[Math.min(t.disableTimeRanges[i][0],t.disableTimeRanges[i-1][0]),Math.max(t.disableTimeRanges[i][1],t.disableTimeRanges[i-1][1])],t.disableTimeRanges.splice(i,1))}return t}function i(t){var n=t.data("timepicker-settings"),i=t.data("timepicker-list");if(i&&i.length&&(i.remove(),t.data("timepicker-list",!1)),n.useSelect)var a=i=e("<select />",{class:"ui-timepicker-select"});else i=e("<ul />",{class:"ui-timepicker-list"}),(a=e("<div />",{class:"ui-timepicker-wrapper",tabindex:-1})).css({display:"none",position:"absolute"}).append(i);if(n.noneOption)if(!0===n.noneOption&&(n.noneOption=n.useSelect?"Time...":"None"),e.isArray(n.noneOption)){for(var l in n.noneOption)if(parseInt(l,10)==l){var u=r(n.noneOption[l],n.useSelect);i.append(u)}}else{u=r(n.noneOption,n.useSelect);i.append(u)}if(n.className&&a.addClass(n.className),(null!==n.minTime||null!==n.durationTime)&&n.showDuration){"function"==typeof n.step||n.step;a.addClass("ui-timepicker-with-duration"),a.addClass("ui-timepicker-step-"+n.step)}var d=n.minTime;"function"==typeof n.durationTime?d=b(n.durationTime()):null!==n.durationTime&&(d=n.durationTime);var p=null!==n.minTime?n.minTime:0,h=null!==n.maxTime?n.maxTime:p+x-1;h<p&&(h+=x),h===x-1&&"string"===e.type(n.timeFormat)&&n.show2400&&(h=x);var m=n.disableTimeRanges,_=0,E=m.length,k=n.step;"function"!=typeof k&&(k=function(){return n.step});l=p;for(var T=0;l<=h;l+=60*k(++T)){var I,C=l,S=y(C,n);if(n.useSelect)(I=e("<option />",{value:S})).text(S);else(I=e("<li />")).addClass(C%x<x/2?"ui-timepicker-am":"ui-timepicker-pm"),I.data("time",w(C,n)),I.text(S);if((null!==n.minTime||null!==n.durationTime)&&n.showDuration){var D=v(l-d,n.step);if(n.useSelect)I.text(I.text()+" ("+D+")");else{var L=e("<span />",{class:"ui-timepicker-duration"});L.text(" ("+D+")"),I.append(L)}}_<E&&(C>=m[_][1]&&(_+=1),m[_]&&C>=m[_][0]&&C<m[_][1]&&(n.useSelect?I.prop("disabled",!0):I.addClass("ui-timepicker-disabled"))),i.append(I)}if(a.data("timepicker-input",t),t.data("timepicker-list",a),n.useSelect)t.val()&&i.val(o(b(t.val()),n)),i.on("focus",function(){e(this).data("timepicker-input").trigger("showTimepicker")}),i.on("blur",function(){e(this).data("timepicker-input").trigger("hideTimepicker")}),i.on("change",function(){f(t,e(this).val(),"select")}),f(t,i.val(),"initial"),t.hide().after(i);else{var O=n.appendTo;"string"==typeof O?O=e(O):"function"==typeof O&&(O=O(t)),O.append(a),c(t,i),i.on("mousedown click","li",function(){t.off("focus.timepicker"),t.on("focus.timepicker-ie-hack",function(){t.off("focus.timepicker-ie-hack"),t.on("focus.timepicker",A.
6show)}),s(t)||t[0].focus(),i.find("li").removeClass("ui-timepicker-selected"),e(this).addClass("ui-timepicker-selected"),g(t)&&(t.trigger("hideTimepicker"),i.on("mouseup.timepicker click.timepicker","li",function(){i.off("mouseup.timepicker click.timepicker"),a.hide()}))})}}function r(t,n){var i,r,o;return"object"==typeof t?(i=t.label,r=t.className,o=t.value):"string"==typeof t?(i=t,o=""):e.error("Invalid noneOption value"),n?e("<option />",{value:o,class:r,text:i}):e("<li />",{class:r,text:i}).data("time",String(o))}function o(e,t){if(null!==(e=t.roundingFunction(e,t)))return y(e,t)}function a(t){if(t.target!=window){var n=e(t.target);n.closest(".ui-timepicker-input").length||n.closest(".ui-timepicker-wrapper").length||(A.hide(),e(document).unbind(".ui-timepicker"),e(window).unbind(".ui-timepicker"))}}function s(e){var t=e.data("timepicker-settings");return(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&t.disableTouchKeyboard}function l(t,n,i){if(!i&&0!==i)return!1;var r=t.data("timepicker-settings"),o=!1;i=r.roundingFunction(i,r);return n.find("li").each(function(t,n){var r=e(n);if("number"==typeof r.data("time"))return r.data("time")==i?(o=r,!1):void 0}),o}function c(e,t){t.find("li").removeClass("ui-timepicker-selected");var n=e.data("timepicker-settings"),i=b(d(e),n);if(null!==i){var r=l(e,t,i);if(r){var o=r.offset().top-t.offset().top;(o+r.outerHeight()>t.outerHeight()||o<0)&&t.scrollTop(t.scrollTop()+r.position().top-r.outerHeight()),(n.forceRoundTime||r.data("time")===i)&&r.addClass("ui-timepicker-selected")}}}function u(t,n){if("timepicker"!=n){var i=e(this);if(""!==this.value){if(!i.is(":focus")||t&&"change"==t.type){var r=i.data("timepicker-settings"),o=b(this.value,r);if(null!==o){var a=!1;if(null!==r.minTime&&null!==r.maxTime&&(o<r.minTime||o>r.maxTime)&&(a=!0),e.each(r.disableTimeRanges,function(){if(o>=this[0]&&o<this[1])return a=!0,!1}),r.forceRoundTime){var s=r.roundingFunction(o,r);s!=o&&(o=s,n=null)}var l=y(o,r);a?(f(i,l,"error")||t&&"change"==t.type)&&i.trigger("timeRangeError"):f(i,l,n)}else i.trigger("timeFormatError")}}else f(i,null,n)}}function d(e){return e.is("input")?e.val():e.data("ui-timepicker-value")}function f(e,t,n){if(e.is("input")){e.val(t);var i=e.data("timepicker-settings");i.useSelect&&"select"!=n&&e.data("timepicker-list").val(o(b(t),i))}return e.data("ui-timepicker-value")!=t?(e.data("ui-timepicker-value",t),"select"==n?e.trigger("selectTime").trigger("changeTime").trigger("change","timepicker"):-1==["error","initial"].indexOf(n)&&e.trigger("changeTime"),!0):(-1==["error","initial"].indexOf(n)&&e.trigger("selectTime"),!1)}function p(e){switch(e.keyCode){case 13:case 9:return;default:e.preventDefault()}}function h(n){var i=e(this),r=i.data("timepicker-list");if(!r||!t(r)){if(40!=n.keyCode)return!0;A.show.call(i.get(0)),r=i.data("timepicker-list"),s(i)||i.focus()}switch(n.keyCode){case 13:return g(i)&&(u.call(i.get(0),{type:"change"}),A.hide.apply(this)),n.preventDefault(),!1;case 38:var o=r.find(".ui-timepicker-selected");return o.length?o.is(":first-child")||(o.removeClass("ui-timepicker-selected"),o.prev().addClass("ui-timepicker-selected"),o.prev().position().top<o.outerHeight()&&r.scrollTop(r.scrollTop()-o.outerHeight())):(r.find("li").each(function(t,n){if(e(n).position().top>0)return o=e(n),!1}),o.addClass("ui-timepicker-selected")),!1;case 40:return 0===(o=r.find(".ui-timepicker-selected")).length?(r.find("li").each(function(t,n){if(e(n).position().top>0)return o=e(n),!1}),o.addClass("ui-timepicker-selected")):o.is(":last-child")||(o.removeClass("ui-timepicker-selected"),o.next().addClass("ui-timepicker-selected"),o.next().position().top+2*o.outerHeight()>r.outerHeight()&&r.scrollTop(r.scrollTop()+o.outerHeight())),!1;case 27:r.find("li").removeClass("ui-timepicker-selected"),A.hide();break;case 9:A.hide();break;default:return!0}}function m(n){var i=e(this),r=i.data("timepicker-list"),o=i.data("timepicker-settings");if(!r||!t(r)||o.disableTextInput)return!0;if("paste"!==n.type&&"cut"!==n.type)switch(n.keyCode){case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 77:case 80:case 186:case 8:case 46:o.typeaheadHighlight?c(i,r):r.hide()}else setTimeout(function(){o.typeaheadHighlight?c(i,r):r.hide()},0)}function g(e){var t=e.data("timepicker-settings"),n=null,i=e.data("timepicker-list").find(".ui-timepicker-selected");return!i.hasClass("ui-timepicker-disabled")&&(i.length&&(n=i.data("time")),null!==n&&("string"!=typeof n&&(n=y(n,t)),f(e,n,"select")),!0)}function v(e,t){e=Math.abs(e);var n,i,r=Math.round(e/60),o=[];return r<60?o=[r,_.mins]:(n=Math.floor(r/60),i=r%60,30==t&&30==i&&(n+=_.decimal+5),o.push(n),o.push(1==n?_.hr:_.hrs),30!=t&&i&&(o.push(i),o.push(_.mins))
6),o.join(" ")}function y(t,n){if("number"!=typeof t)return null;var i=parseInt(t%60),r=parseInt(t/60%60),o=parseInt(t/3600%24),a=new Date(1970,0,2,o,r,i,0);if(isNaN(a.getTime()))return null;if("function"===e.type(n.timeFormat))return n.timeFormat(a);for(var s,l,c="",u=0;u<n.timeFormat.length;u++)switch(l=n.timeFormat.charAt(u)){case"a":c+=a.getHours()>11?_.pm:_.am;break;case"A":c+=a.getHours()>11?_.PM:_.AM;break;case"g":c+=0===(s=a.getHours()%12)?"12":s;break;case"G":s=a.getHours(),t===x&&(s=n.show2400?24:0),c+=s;break;case"h":0!==(s=a.getHours()%12)&&s<10&&(s="0"+s),c+=0===s?"12":s;break;case"H":s=a.getHours(),t===x&&(s=n.show2400?24:0),c+=s>9?s:"0"+s;break;case"i":c+=(r=a.getMinutes())>9?r:"0"+r;break;case"s":c+=(i=a.getSeconds())>9?i:"0"+i;break;case"\\":u++,c+=n.timeFormat.charAt(u);break;default:c+=l}return c}function b(e,t){if(""===e||null===e)return null;if("object"==typeof e)return 3600*e.getHours()+60*e.getMinutes()+e.getSeconds();if("string"!=typeof e)return e;"a"!=(e=e.toLowerCase().replace(/[\s\.]/g,"")).slice(-1)&&"p"!=e.slice(-1)||(e+="m");var n="("+_.am.replace(".","")+"|"+_.pm.replace(".","")+"|"+_.AM.replace(".","")+"|"+_.PM.replace(".","")+")?",i=new RegExp("^"+n+"([0-9]?[0-9])\\W?([0-5][0-9])?\\W?([0-5][0-9])?"+n+"$"),r=e.match(i);if(!r)return null;var o=parseInt(1*r[2],10),a=r[1]||r[5],s=o,l=1*r[3]||0,c=1*r[4]||0;if(o<=12&&a){var u=a==_.pm||a==_.PM;s=12==o?u?12:0:o+(u?12:0)}else if(t){if(3600*o+60*l+c>=x+(t.show2400?1:0)){if(!1===t.wrapHours)return null;s=o%24}}var d=3600*s+60*l+c;if(o<12&&!a&&t&&t._twelveHourTime&&t.scrollDefault){var f=d-t.scrollDefault();f<0&&f>=x/-2&&(d=(d+x/2)%x)}return d}function w(e,t){return e==x&&t.show2400?e:e%x}var x=86400,_={am:"am",pm:"pm",AM:"AM",PM:"PM",decimal:".",mins:"mins",hr:"hr",hrs:"hrs"},E={appendTo:"body",className:null,closeOnWindowScroll:!1,disableTextInput:!1,disableTimeRanges:[],disableTouchKeyboard:!1,durationTime:null,forceRoundTime:!1,maxTime:null,minTime:null,noneOption:!1,orientation:"l",roundingFunction:function(e,t){if(null===e)return null;if("number"!=typeof t.step)return e;var n=e%(60*t.step);return(n-=(t.minTime||0)%(60*t.step))>=30*t.step?e+=60*t.step-n:e-=n,w(e,t)},scrollDefault:null,selectOnBlur:!1,show2400:!1,showDuration:!1,showOn:["click","focus"],showOnFocus:!0,step:30,stopScrollPropagation:!1,timeFormat:"g:ia",typeaheadHighlight:!0,useSelect:!1,wrapHours:!0},A={init:function(t){return this.each(function(){var r=e(this),o=[];for(var a in E)r.data(a)&&(o[a]=r.data(a));var s=e.extend({},E,t,o);if(s.lang&&(_=e.extend(_,s.lang)),s=n(s),r.data("timepicker-settings",s),r.addClass("ui-timepicker-input"),s.useSelect)i(r);else{if(r.prop("autocomplete","off"),s.showOn)for(var l in s.showOn)r.on(s.showOn[l]+".timepicker",A.show);r.on("change.timepicker",u),r.on("keydown.timepicker",h),r.on("keyup.timepicker",m),s.disableTextInput&&r.on("key
6down.timepicker",p),r.on("cut.timepicker",m),r.on("paste.timepicker",m),u.call(r.get(0),null,"initial")}})},show:function(n){var r=e(this),o=r.data("timepicker-settings");if(n&&n.preventDefault(),o.useSelect)r.data("timepicker-list").focus();else{s(r)&&r.blur();var u=r.data("timepicker-list");if(!r.prop("readonly")&&(u&&0!==u.length&&"function"!=typeof o.durationTime||(i(r),u=r.data("timepicker-list")),!t(u))){r.data("ui-timepicker-value",r.val()),c(r,u),A.hide(),u.show();var f={};o.orientation.match(/r/)?f.left=r.offset().left+r.outerWidth()-u.outerWidth()+parseInt(u.css("marginLeft").replace("px",""),10):f.left=r.offset().left+parseInt(u.css("marginLeft").replace("px",""),10),"t"==(o.orientation.match(/t/)?"t":o.orientation.match(/b/)?"b":r.offset().top+r.outerHeight(!0)+u.outerHeight()>e(window).height()+e(window).scrollTop()?"t":"b")?(u.addClass("ui-timepicker-positioned-top"),f.top=r.offset().top-u.outerHeight()+parseInt(u.css("marginTop").replace("px",""),10)):(u.removeClass("ui-timepicker-positioned-top"),f.top=r.offset().top+r.outerHeight()+parseInt(u.css("marginTop").replace("px",""),10)),u.offset(f);var p=u.find(".ui-timepicker-selected");if(!p.length){var h=b(d(r));null!==h?p=l(r,u,h):o.scrollDefault&&(p=l(r,u,o.scrollDefault()))}if(p.length&&!p.hasClass("ui-timepicker-disabled")||(p=u.find("li:not(.ui-timepicker-disabled):first")),p&&p.length){var m=u.scrollTop()+p.position().top-p.outerHeight();u.scrollTop(m)}else u.scrollTop(0);return o.stopScrollPropagation&&e(document).on("wheel.ui-timepicker",".ui-timepicker-wrapper",function(t){t.preventDefault();var n=e(this).scrollTop();e(this).scrollTop(n+t.originalEvent.deltaY)}),e(document).on("touchstart.ui-timepicker mousedown.ui-timepicker",a),e(window).on("resize.ui-timepicker",a),o.closeOnWindowScroll&&e(document).on("scroll.ui-timepicker",a),r.trigger("showTimepicker"),this}}},hide:function(){var n=e(this),i=n.data("timepicker-settings");return i&&i.useSelect&&n.blur(),e(".ui-timepicker-wrapper").each(function(){var n=e(this);if(t(n)){var i=n.data("timepicker-input"),r=i.data("timepicker-settings");r&&r.selectOnBlur&&g(i),n.hide(),i.trigger("hideTimepicker")}}),this},option:function(t,r){return"string"==typeof t&&void 0===r?e(this).data("timepicker-settings")[t]:this.each(function(){var o=e(this),a=o.data("timepicker-settings"),s=o.data("timepicker-list");"object"==typeof t?a=e.extend(a,t):"string"==typeof t&&(a[t]=r),a=n(a),o.data("timepicker-settings",a),u.call(o.get(0),{type:"change"},"initial"),s&&(s.remove(),o.data("timepicker-list",!1)),a.useSelect&&i(o)})},getSecondsFromMidnight:function(){return b(d(this))},getTime:function(e){var t=d(this);if(!t)return null;var n=b(t);if(null===n)return null;e||(e=new Date);var i=new Date(e);return i.setHours(n/3600),i.setMinutes(n%3600/60),i.setSeconds(n%60),i.setMilliseconds(0),i},isVisible:function(){var e=this.data("timepicker-list");return!(!e||!t(e))},setTime:function(e){var t=this,n=t.data("timepicker-settings");if(n.forceRoundTime)var i=o(b(e),n);else i=y(b(e),n);return e&&null===i&&n.noneOption&&(i=e),f(t,i,"initial"),u.call(t.get(0),{type:"change"},"initial"),t.data("timepicker-list")&&c(t,t.data("timepicker-list")),this},remove:function(){var e=this;if(e.hasClass("ui-timepicker-input")){var t=e.data("timepicker-settings");return e.removeAttr("autocomplete","off"),e.removeClass("ui-timepicker-input"),e.removeData("timepicker-settings"),e.off(".timepicker"),e.data("timepicker-list")&&e.data("timepicker-list").remove(),t.useSelect&&e.show(),e.removeData("timepicker-list"),this}}};e.fn.timepicker=function(t){return this.length?A[t]?this.hasClass("ui-timepicker-input")?A[t].apply(this,Array.prototype.slice.call(arguments,1)):this:"object"!=typeof t&&t?void e.error("Method "+t+" does not exist on jQuery.timepicker"):A.init.apply(this,arguments):this}}),function(e,t){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(e){}module.exports=t(n)}else"function"==typeof define&&define.amd?define(function(e){var i="moment";try{n=e(i)}catch(e){}return t(n)}):e.Pikaday=t(e.moment)}(this,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,i=window.document,r=window.setTimeout,o=function(e,t,i,r){n?e.addEventListener(t,i,!!r):e.attachEvent("on"+t,i)},a=function(e,t,i,r){n?e.removeEventListener(t,i,!!r):e.detachEvent("on"+t,i)},s=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},l=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},c=function(e,t){l(e,t)||(e.className=""===e.className?t:e.className+" "+t)},u=function(e,t){e.className=s((" "+e.className+" ").replace(" "+t+" "," "))},d=function(e){return/Array/.test(Object.prototype.toString.call(e))},f=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},p=function(e){var t=e.getDay();return 0===t||6===t},h=function(e){return e%4==0&&e%100!=0||e%400==0},m=function(e,t){return[31,h(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},g=function(e){f(e)&&e.setHours(0,0,0,0)},v=function(e,t){return e.getTime()===t.getTime()},y=function(e,t,n){var i,r;for(i in t)(r=void 0!==e[i])&&"object"==typeof t[i]&&null!==t[i]&&void 0===t[i].nodeName?f(t[i])?n&&(e[i]=new Date(t[i].getTime())):d(t[i])?n&&(e[i]=t[i].slice(0)):e[i]=y({},t[i],n):!n&&r||(e[i]=t[i]);return e},b=function(e,t,n){var r;i.createEvent?((r=i.createEvent("HTMLEvents")).initEvent(t,!0,!1),r=y(r,n),e.dispatchEvent(r)):i.createEventObject&&(r=i.createEventObject(),r=y(r,n),e.fireEvent("on"+t,r))},w=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},x={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
6ay","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},_=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},E=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.hasEvent&&t.push("has-event"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},A=function(e,t,n){var i=new Date(n,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(n,t,e)-i)/864e5+i.getDay()+1)/7)+"</td>"},k=function(e,t,n,i){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(i?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},T=function(e){return"<tbody>"+e.join("")+"</tbody>"},I=function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+_(e,t)+'">'+_(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"},C=function(e,t,n,i,r,o){var a,s,l,c,u,f=e._o,p=n===f.minYear,h=n===f.maxYear,m='<div id="'+o+'" class="pika-title" role="heading" aria-live="assertive">',g=!0,v=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===r?a-t:12+a-t)+'"'+(a===i?' selected="selected"':"")+(p&&a<f.minMonth||h&&a>f.maxMonth?'disabled="disabled"':"")+">"+f.i18n.months[a]+"</option>");for(c='<div class="pika-label">'+f.i18n.months[i]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",d(f.yearRange)?(a=f.yearRange[0],s=f.yearRange[1]+1):(a=n-f.yearRange,s=1+n+f.yearRange),l=[];a<s&&a<=f.maxYear;a++)a>=f.minYear&&l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return u='<div class="pika-label">'+n+f.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",f.showMonthAfterYear?m+=u+c:m+=c+u,p&&(0===i||f.minMonth>=i)&&(g=!1),h&&(11===i||f.maxMonth<=i)&&(v=!1),0===t&&(m+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+f.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(m+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+f.i18n.nextMonth+"</button>"),m+"</div>"},S=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+I(e)+T(t)+"</table>"},D=function(a){var s=this,c=s.config(a);s._onMouseDown=function(e){if(s._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(l(t,"is-disabled")||(!l(t,"pika-button")||l(t,"is-empty")||l(t.parentNode,"is-disabled")?l(t,"pika-prev")?s.prevMonth():l(t,"pika-next")&&s.nextMonth():(s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),c.bound&&r(function(){s.hide(),c.blurFieldOnSelect&&c.field&&c.field.blur()},100))),l(t,"pika-select"))s._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},s._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(l(t,"pika-select-month")?s.gotoMonth(t.value):l(t,"pika-select-year")&&s.gotoYear(t.value))},s._onKeyChange=function(e){if(e=e||window.event,s.isVisible())switch(e.keyCode){case 13:case 27:c.field&&c.field.blur();break;case 37:e.preventDefault(),s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7)}},s._onInputChange=function(n){var i;n.firedBy!==s&&(i=c.parse?c.parse(c.field.value,c.format):t?(i=e(c.field.value,c.format,c.formatStrict))&&i.isValid()?i.toDate():null:new Date(Date.parse(c.field.value)),f(i)&&s.setDate(i),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var e=i.activeElement;do{if(l(e,"pika-single"))return}while(e=e.parentNode);s._c||(s._b=r(function(){s.hide()},50)),s._c=!1},s._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,i=t;if(t){!n&&l(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),o(t,"change",s._onChange)));do{if(l(i,"pika-single")||i===c.trigger)return}while(i=i.parentNode);s._v&&t!==c.trigger&&i!==c.trigger&&s.hide()}},s.el=i.createElement("div"),s.el.className="pika-single"+(c.isRTL?" is-rtl":"")+(c.theme?" "+c.theme:""),o(s.el,"mousedown",s._onMouseDown,!0),o(s.el,"touchend",s._onMouseDown,!0),o(s.el,"change",s._onChange),c.keyboardInput&&o(i,"keydown",s._onKeyChange),c.field&&(c.container?c.container.appendChild(s.el):c.bound?i.body.appendChild(s.el):c.field.parentNode.insertBefore(s.el,c.field.nextSibling),o(c.field,"change",s._onInputChange),c.defaultDate||(t&&c.field.value?c.defaultDate=e(c.field.value,c.format).toDate():c.defaultDate=new Date(Date.parse(c.field.value)),c.setDefaultDate=!0));var u=c.defaultDate;f(u)?c.setDefaultDate?s.setDate(u,!0):s.gotoDate(u):s.gotoDate(new Date),c.bound?(this.hide(),s.el.className+=" is-bound",o(c.trigger,"click",s._onInputClick),o(c.trigger,"focus",s._onInputFocus),o(c.trigger,"blur",s._onInputBlur)):this.show()};return D.prototype={config:function(e){this._o||(this._o=y({},x,!0));var t=y(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,f(t.minDate)||(t.minDate=!1),f(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),d(t.yearRange)){var i=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||i,t.yearRange[1]=parseInt(t.yearRange[1],10)||i}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||x.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return n=n||this._o.format,f(this._d)?this._o.toString?this._o.toString(this._d,n):t?e(this._d).format(n):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,i){t&&e.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",b(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),f(e)){var n=this._o.minDate,i=this._o.maxDate;f(n)&&e<n?e=n:f(i)&&e>i&&(e=i),this._d=new Date(e.getTime()),g(this._d),this.gotoDate(this._d),
7this._o.field&&(this._o.field.value=this.toString(),b(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(f(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),r=e.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),t=r<n.getTime()||i.getTime()<r}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(e,t){var n,i=this.getDate()||new Date,r=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(i.valueOf()+r):"subtract"===e&&(n=new Date(i.valueOf()-r)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=w(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=w({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(g(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=x.minDate,this._o.minYear=x.minYear,this._o.minMonth=x.minMonth,this._o.startRange=x.startRange),this.draw()}
7,setMaxDate:function(e){e instanceof Date?(g(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=x.maxDate,this._o.maxYear=x.maxYear,this._o.maxMonth=x.maxMonth,this._o.endRange=x.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,i=n.minYear,o=n.maxYear,a=n.minMonth,s=n.maxMonth,l="";this._y<=i&&(this._y=i,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=o&&(this._y=o,!isNaN(s)&&this._m>s&&(this._m=s)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var c=0;c<n.numberOfMonths;c++)l+='<div class="pika-lendar">'+C(this,c,this.calendars[c].year,this.calendars[c].month,this.calendars[0].year,t)+this.render(this.calendars[c].year,this.calendars[c].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&r(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label",n.ariaLabel)}},adjustPosition:function(){var e,t,n,r,o,a,s,l,d,f,p,h;if(!this._o.container){if(this.el.style.position="absolute",t=e=this._o.trigger,n=this.el.offsetWidth,r=this.el.offsetHeight,o=window.innerWidth||i.documentElement.clientWidth,a=window.innerHeight||i.documentElement.clientHeight,s=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,p=!0,h=!0,"function"==typeof e.getBoundingClientRect)l=(f=e.getBoundingClientRect()).left+window.pageXOffset,d=f.bottom+window.pageYOffset;else for(l=t.offsetLeft,d=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,d+=t.offsetTop;(this._o.reposition&&l+n>o||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth,p=!1),(this._o.reposition&&d+r>a+s||this._o.position.indexOf("top")>-1&&d-r-e.offsetHeight>0)&&(d=d-r-e.offsetHeight,h=!1),this.el.style.left=l+"px",this.el.style.top=d+"px",c(this.el,p?"left-aligned":"right-aligned"),c(this.el,h?"bottom-aligned":"top-aligned"),u(this.el,p?"right-aligned":"left-aligned"),u(this.el,h?"top-aligned":"bottom-aligned")}},render:function(e,t,n){var i=this._o,r=new Date,o=m(e,t),a=new Date(e,t,1).getDay(),s=[],l=[];g(r),i.firstDay>0&&(a-=i.firstDay)<0&&(a+=7);for(var c=0===t?11:t-1,u=11===t?0:t+1,d=0===t?e-1:e,h=11===t?e+1:e,y=m(d,c),b=o+a,w=b;w>7;)w-=7;b+=7-w;for(var x=!1,_=0,T=0;_<b;_++){var I=new Date(e,t,_-a+1),C=!!f(this._d)&&v(I,this._d),D=v(I,r),L=-1!==i.events.indexOf(I.toDateString()),O=_<a||_>=o+a,N=_-a+1,q=t,j=e,M=i.startRange&&v(i.startRange,I),R=i.endRange&&v(i.endRange,I),P=i.startRange&&i.endRange&&i.startRange<I&&I<i.endRange;O&&(_<a?(N=y+N,q=c,j=d):(N-=o,q=u,j=h));var H={day:N,month:q,year:j,hasEvent:L,isSelected:C,isToday:D,isDisabled:i.minDate&&I<i.minDate||i.maxDate&&I>i.maxDate||i.disableWeekends&&p(I)||i.disableDayFn&&i.disableDayFn(I),isEmpty:O,isStartRange:M,isEndRange:R,isInRange:P,showDaysInNextAndPreviousMonths:i.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:i.enableSelectionDaysInNextAndPreviousMonths};i.pickWholeWeek&&C&&(x=!0),l.push(E(H)),7===++T&&(i.showWeekNumber&&l.unshift(A(_-a,t,e)),s.push(k(l,i.isRTL,i.pickWholeWeek,x)),l=[],T=0,x=!1)}return S(i,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),u(this.el,"is-hidden"),this._o.bound&&(o(i,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&a(i,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",c(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var e=this._o;this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),e.keyboardInput&&a(i,"keydown",this._onKeyChange),e.field&&(a(e.field,"change",this._onInputChange),e.bound&&(a(e.trigger,"click",this._onInputClick),a(e.trigger,"focus",this._onInputFocus),a(e.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},D}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,function(e){"use strict";function t(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n(e){return e instanceof t(e).Element||e instanceof Element}function i(e){return e instanceof t(e).HTMLElement||e instanceof HTMLElement}function r(e){return"undefined"!=typeof ShadowRoot&&(e instanceof t(e).ShadowRoot||e instanceof ShadowRoot)}function o(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function a(){return!/^((?!chrome|android).)*safari/i.test(o())}function s(e,r,o){void 0===r&&(r=!1),void 0===o&&(o=!1);var s=e.getBoundingClientRect(),l=1,c=1;r&&i(e)&&(l=e.offsetWidth>0&&be(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&be(s.height)/e.offsetHeight||1);
vendor: 6,418 bytes, line 7
7var u=(n(e)?t(e):window).visualViewport,d=!a()&&o,f=(s.left+(d&&u?u.offsetLeft:0))/l,p=(s.top+(d&&u?u.offsetTop:0))/c,h=s.width/l,m=s.height/c;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function l(e){var n=t(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function c(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function u(e){return e!==t(e)&&i(e)?c(e):l(e)}function d(e){return e?(e.nodeName||"").toLowerCase():null}function f(e){return((n(e)?e.ownerDocument:e.document)||window.document).documentElement}function p(e){return s(f(e)).left+l(e).scrollLeft}function h(e){return t(e).getComputedStyle(e)}function m(e){var t=h(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function g(e){var t=e.getBoundingClientRect(),n=be(t.width)/e.offsetWidth||1,i=be(t.height)/e.offsetHeight||1;return 1!==n||1!==i}function v(e,t,n){void 0===n&&(n=!1);var r=i(t),o=i(t)&&g(t),a=f(t),l=s(e,o,n),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(r||!r&&!n)&&(("body"!==d(t)||m(a))&&(c=u(t)),i(t)?((h=s(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):a&&(h.x=p(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function y(e){var t=s(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function b(e){return"html"===d(e)?e:e.assignedSlot||e.parentNode||(r(e)?e.host:null)||f(e)}function w(e){return["html","body","#document"].indexOf(d(e))>=0?e.ownerDocument.body:i(e)&&m(e)?e:w(b(e))}function x(e,n){var i;void 0===n&&(n=[]);var r=w(e),o=r===(null==(i=e.ownerDocument)?void 0:i.body),a=t(r),s=o?[a].concat(a.visualViewport||[],m(r)?r:[]):r,l=n.concat(s);return o?l:l.concat(x(b(s)))}function _(e){return["table","td","th"].indexOf(d(e))>=0}function E(e){return i(e)&&"fixed"!==h(e).position?e.offsetParent:null}function A(e){var t=/firefox/i.test(o());if(/Trident/i.test(o())&&i(e)&&"fixed"===h(e).position)return null;var n=b(e);for(r(n)&&(n=n.host);i(n)&&["html","body"].indexOf(d(n))<0;){var a=h(n);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return n;n=n.parentNode}return null}function k(e){for(var n=t(e),i=E(e);i&&_(i)&&"static"===h(i).position;)i=E(i);return i&&("html"===d(i)||"body"===d(i)&&"static"===h(i).position)?n:i||A(e)||n}function T(e){function t(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!i.has(e)){var r=n.get(e);r&&t(r)}}),r.push(e)}var n=new Map,i=new Set,r=[];return e.forEach(function(e){n.set(e.name,e)}),e.forEach(function(e){i.has(e.name)||t(e)}),r}function I(e){var t=T(e);return qe.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function C(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function S(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}function D(e,n){var i=t(e),r=f(e),o=i.visualViewport,s=r.clientWidth,l=r.clientHeight,c=0,u=0;if(o){s=o.width,l=o.height;var d=a();(d||!d&&"fixed"===n)&&(c=o.offsetLeft,u=o.offsetTop)}return{width:s,height:l,x:c+p(e),y:u}}function L(e){var t,n=f(e),i=l(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=ve(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=ve(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+p(e),c=-i.scrollTop;return"rtl"===h(r||n).direction&&(s+=ve(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}function O(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&r(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function N(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q(e,t){var n=s(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function j(e,t,i){return t===Se?N(D(e,i)):n(t)?q(t,i):N(L(f(e)))}function M(e){var t=x(b(e)),r=["absolute","fixed"].indexOf(h(e).position)>=0&&i(e)?k(e):e;return n(r)?t.filter(function(e){return n(e)&&O(e,r)&&"body"!==d(e)}):[]}function R(e,t,n,i){var r="clippingParents"===t?M(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce(function(t,n){var r=j(e,n,i);return t.top=ve(r.top,t.top),t.right=ye(r.right,t.right),t.bottom=ye(r.bottom,t.bottom),t.left=ve(r.left,t.left),t},j(e,a,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function P(e){return e.split("-")[0]}function H(e){return e.split("-")[1]}function F(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function B(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?P(r):null,a=r?H(r):null,s=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case we:t={x:s,y:n.y-i.height};break;case xe:t={x:s,y:n.y+n.height};break;case _e:t={x:n.x+n.width,y:l};break;case Ee:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?F(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Te:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Ie:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function $(){return{top:0,right:0,bottom:0,left:0}}function z(e){return Object.assign({},$(),e)}function W(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function U(e,t){void 0===t&&(t={});var i=t,r=i.placement,o=void 0===r?e.placement:r,a=i.strategy,l=void 0===a?e.strategy:a,c=i.boundary,u=void 0===c?Ce:c,d=i.rootBoundary,p=void 0===d?Se:d,h=i.elementContext,m=void 0===h?De:h,g=i.altBoundary,v=void 0!==g&&g,y=i.padding,b=void 0===y?0:y,w=z("number"!=typeof b?b:W(b,ke)),x=m===De?Le:De,_=e.rects.popper,E=e.elements[v?x:m],A=R(n(E)?E:E.contextElement||f(e.elements.popper),u,p,l),k=s(e.elements.reference),T=B({reference:k,element:_,strategy:"absolute",placement:o}),I=N(Object.assign({},_,T)),C=m===De?I:k,S={top:A.top-C.top+w.top,bottom:C.bottom-A.bottom+w.bottom,left:A.left-C.left+w.left,right:C.right-A.right+w.right},D=e.modifiersData.offset;if(m===De&&D){var L=D[o];
7Object.keys(S).forEach(function(e){var t=[_e,xe].indexOf(e)>=0?1:-1,n=[we,xe].indexOf(e)>=0?"y":"x";S[e]+=L[n]*t})}return S}function X(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Y(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,r=void 0===i?[]:i,o=t.defaultOptions,a=void 0===o?je:o;return function(e,t,i){function o(){l.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var o=r({state:l,name:t,instance:d,options:i}),a=function(){};c.push(o||a)}})}function s(){c.forEach(function(e){return e()}),c=[]}void 0===i&&(i=a);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},je,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,d={state:l,setOptions:function(i){var c="function"==typeof i?i(l.options):i;s(),l.options=Object.assign({},a,l.options,c),l.scrollParents={reference:n(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var u=I(S([].concat(r,l.options.modifiers)));return l.orderedModifiers=u.filter(function(e){return e.enabled}),o(),d.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(X(t,n)){l.rects={reference:v(t,k(n),"fixed"===l.options.strategy),popper:y(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<l.orderedModifiers.length;i++)if(!0!==l.reset){var r=l.orderedModifiers[i],o=r.fn,a=r.options,s=void 0===a?{}:a,c=r.name;"function"==typeof o&&(l=o({state:l,options:s,name:c,instance:d})||l)}else l.reset=!1,i=-1}}},update:C(function(){return new Promise(function(e){d.forceUpdate(),e(l)})}),destroy:function(){s(),u=!0}};return X(e,t)?(d.setOptions(i).then(function(e){!u&&i.onFirstUpdate&&i.onFirstUpdate(e)}),d):d}}function V(e){var n=e.state,i=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,s=r.resize,l=void 0===s||s,c=t(n.elements.popper),u=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&u.forEach(function(e){e.addEventListener("scroll",i.update,Me)}),l&&c.addEventListener("resize",i.update,Me),function(){a&&u.forEach(function(e){e.removeEventListener("scroll",i.update,Me)}),l&&c.removeEventListener("resize",i.update,Me)}}function Q(e){var t=e.state,n=e.name;t.modifiersData[n]=B({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}function J(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:be(n*r)/r||0,y:be(i*r)/r||0}}function K(e){var n,i=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,m=s.x,g=void 0===m?0:m,v=s.y,y=void 0===v?0:v,b="function"==typeof d?d({x:g,y:y}):{x:g,y:y};g=b.x,y=b.y;var w=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),_=Ee,E=we,A=window;if(u){var T=k(i),I="clientHeight",C="clientWidth";if(T===t(i)&&"static"!==h(T=f(i)).position&&"absolute"===l&&(I="scrollHeight",C="scrollWidth"),o===we||(o===Ee||o===_e)&&a===Ie)E=xe,y-=(p&&T===A&&A.visualViewport?A.visualViewport.height:T[I])-r.height,y*=c?1:-1;if(o===Ee||(o===we||o===xe)&&a===Ie)_=_e,g-=(p&&T===A&&A.visualViewport?A.visualViewport.width:T[C])-r.width,g*=c?1:-1}var S,D=Object.assign({position:l},u&&He),L=!0===d?J({x:g,y:y},t(i)):{x:g,y:y};return g=L.x,y=L.y,c?Object.assign({},D,((S={})[E]=x?"0":"",S[_]=w?"0":"",S.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",S)):Object.assign({},D,((n={})[E]=x?y+"px":"",n[_]=w?g+"px":"",n.transform="",n))}function G(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:P(t.placement),variation:H(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,K(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roun
vendor: 7,311 bytes, line 7
7dOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}function Z(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];i(o)&&d(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})}function ee(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});i(r)&&d(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}}function te(e,t,n){var i=P(e),r=[Ee,we].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[Ee,_e].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}function ne(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,a=Ne.reduce(function(e,n){return e[n]=te(n,t.rects,o),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=a}function ie(e){return e.replace(/left|right|bottom|top/g,function(e){return ze[e]})}function re(e){return e.replace(/start|end/g,function(e){return We[e]})}function oe(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Ne:l,u=H(i),d=u?s?Oe:Oe.filter(function(e){return H(e)===u}):ke,f=d.filter(function(e){return c.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,n){return t[n]=U(e,{placement:n,boundary:r,rootBoundary:o,padding:a})[P(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function ae(e){if(P(e)===Ae)return[];var t=ie(e);return[re(e),t,re(t)]}function se(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=P(g),y=l||(v===g||!h?[ie(g)]:ae(g)),b=[g].concat(y).reduce(function(e,n){return e.concat(P(n)===Ae?oe(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,x=t.rects.popper,_=new Map,E=!0,A=b[0],k=0;k<b.length;k++){var T=b[k],I=P(T),C=H(T)===Te,S=[we,xe].indexOf(I)>=0,D=S?"width":"height",L=U(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),O=S?C?_e:Ee:C?xe:we;w[D]>x[D]&&(O=ie(O));var N=ie(O),q=[];if(o&&q.push(L[I]<=0),s&&q.push(L[O]<=0,L[N]<=0),q.every(function(e){return e})){A=T,E=!1;break}_.set(T,q)}if(E)for(var j=function(e){var t=b.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},M=h?3:1;M>0;M--){if("break"===j(M))break}t.placement!==A&&(t.modifiersData[i]._skip=!0,t.placement=A,t.reset=!0)}}function le(e){return"x"===e?"y":"x"}function ce(e,t,n){return ve(e,ye(t,n))}function ue(e,t,n){var i=ce(e,t,n);return i>n?n:i}function de(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=U(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=P(t.placement),b=H(t.placement),w=!b,x=F(v),_=le(x),E=t.modifiersData.popperOffsets,A=t.rects.reference,T=t.rects.popper,I="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(E){if(o){var L,O="y"===x?we:Ee,N="y"===x?xe:_e,q="y"===x?"height":"width",j=E[x],M=j+g[O],R=j-g[N],B=p?-T[q]/2:0,z=b===Te?A[q]:T[q],W=b===Te?-T[q]:-A[q],X=t.elements.arrow,Y=p&&X?y(X):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$(),Q=V[O],J=V[N],K=ce(0,A[q],Y[q]),G=w?A[q]/2-B-K-Q-C.mainAxis:z-K-Q-C.mainAxis,Z=w?-A[q]/2+B+K+J+C.mainAxis:W+K+J+C.mainAxis,ee=t.elements.arrow&&k(t.elements.arrow),te=ee?"y"===x?ee.clientTop||0:ee.clientLeft||0:0,ne=null!=(L=null==S?void 0:S[x])?L:0,ie=j+Z-ne,re=ce(p?ye(M,j+G-ne-te):M,j,p?ve(R,ie):R);E[x]=re,D[x]=re-j}if(s){var oe,ae="x"===x?we:Ee,se="x"===x?xe:_e,de=E[_],fe="y"===_?"height":"width",pe=de+g[ae],he=de-g[se],me=-1!==[we,Ee].indexOf(v),ge=null!=(oe=null==S?void 0:S[_])?oe:0,be=me?pe:de-A[fe]-T[fe]-ge+C.altAxis,Ae=me?de+A[fe]+T[fe]-ge-C.altAxis:he,ke=p&&me?ue(be,de,Ae):ce(p?be:pe,de,p?Ae:he);E[_]=ke,D[_]=ke-de}t.modifiersData[i]=D}}function fe(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=P(n.placement),l=F(s),c=[Ee,_e].indexOf(s)>=0?"height":"width";if(o&&a){var u=Ye(r.padding,n),d=y(o),f="y"===l?we:Ee,p="y"===l?xe:_e,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=k(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,w=u[f],x=v-d[c]-u[p],_=v/2-d[c]/2+b,E=ce(w,_,x),A=l;n.modifiersData[i]=((t={})[A]=E,t.centerOffset=E-_,t)}}function pe(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&O(t.elements.popper,i)&&(t.elements.arrow=i)}function he(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function me(e){return[we,_e,xe,Ee].some(function(t){return e[t]>=0})}function ge(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,a=U(t,{elementContext:"reference"}),s=U(t,{altBoundary:!0}),l=he(a,i),c=he(s,r,o),u=me(l),d=me(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var ve=Math.max,ye=Math.min,be=Math.round,we="top",xe="bottom",_e="right",Ee="left",Ae="auto",ke=[we,xe,_e,Ee],Te="start",Ie="end",Ce="clippingParents",Se="viewport",De="popper",Le="reference",Oe=ke.reduce(function(e,t){return e.concat([t+"-"+Te,t+"-"+Ie])},[]),Ne=[].concat(ke,[Ae]).reduce(function(e,t){return e.concat([t,t+"-"+Te,t+"-"+Ie])},[]),qe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],je={placement:"bottom",modifiers:[],strategy:"absolute"},Me={passive:!0},Re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:V,data:{}},Pe={name:"popperOffsets",enabled:!0,phase:"read",fn:Q,data:{}},He={top:"auto",right:"auto",bottom:"auto",left:"auto"}
7,Fe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:G,data:{}},Be={name:"applyStyles",enabled:!0,phase:"write",fn:Z,effect:ee,requires:["computeStyles"]},$e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ne},ze={left:"right",right:"left",bottom:"top",top:"bottom"},We={start:"end",end:"start"},Ue={name:"flip",enabled:!0,phase:"main",fn:se,requiresIfExists:["offset"],data:{_skip:!1}},Xe={name:"preventOverflow",enabled:!0,phase:"main",fn:de,requiresIfExists:["offset"]},Ye=function(e,t){return z("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:W(e,ke))},Ve={name:"arrow",enabled:!0,phase:"main",fn:fe,effect:pe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Qe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ge},Je=Y({defaultModifiers:[Re,Pe,Fe,Be]}),Ke=[Re,Pe,Fe,Be,$e,Ue,Xe,Ve,Qe],Ge=Y({defaultModifiers:Ke});e.applyStyles=Be,e.arrow=Ve,e.computeStyles=Fe,e.createPopper=Ge,e.createPopperLite=Je,e.defaultModifiers=Ke,e.detectOverflow=U,e.eventListeners=Re,e.flip=Ue,e.hide=Qe,e.offset=$e,e.popperGenerator=Y,e.popperOffsets=Pe,e.preventOverflow=Xe,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e=e||self).tippy=t(e.Popper)}(this,function(e){"use strict";function t(e){var t=document.createElement("style");t.textContent=e,t.setAttribute("data-tippy-stylesheet","");var n=document.head,i=document.querySelector("head>style,head>link");i?n.insertBefore(t,i):n.appendChild(t)}function n(e,t){return{}.hasOwnProperty.call(e,t)}function i(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function r(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function o(e,t){return"function"==typeof e?e.apply(void 0,t):e}function a(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout(function(){e(i)},t)};var n}function s(e,t){var n=Object.assign({},e);return t.forEach(function(e){delete n[e]}),n}function l(e){return e.split(/\s+/).filter(Boolean)}function c(e){return[].concat(e)}function u(e,t){-1===e.indexOf(t)&&e.push(t)}function d(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function f(e){return e.split("-")[0]}function p(e){return[].slice.call(e)}function h(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function m(){return document.createElement("div")}function g(e){return["Element","Fragment"].some(function(t){return r(e,t)})}function v(e){return r(e,"NodeList")}function y(e){return r(e,"MouseEvent")}function b(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function w(e){return g(e)?[e]:v(e)?p(e):Array.isArray(e)?e:p(document.querySelectorAll(e))}function x(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function _(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function E(e){var t,n=c(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function A(e,t){var n=t.clientX,i=t.clientY;return e.every(function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,a=f(r.placement),s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=t.top-i+l>o,h=i-t.bottom-c>o,m=t.left-n+u>o,g=n-t.right-d>o;return p||h||m||g})}function k(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[i](t,n)})}function T(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}function I(){ge.isTouch||(ge.isTouch=!0,window.performance&&document.addEventListener("mousemove",C))}function C(){var e=performance.now();e-ve<20&&(ge.isTouch=!1,document.removeEventListener("mousemove",C)),ve=e}function S(){var e=document.activeElement;if(b(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function D(){document.addEventListener("touchstart",I,he),window.addEventListener("blur",S)}
7function L(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function O(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function N(e){return O("\n  %ctippy.js\n\n  %c"+O(e)+"\n\n  %c\ud83d\udc77\u200d This is a development-only message. It will be removed in production.\n  ")}function q(e){return[N(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function j(){re=new Set}function M(e,t){var n;e&&!re.has(t)&&(re.add(t),(n=console).warn.apply(n,q(t)))}function R(e,t){var n;e&&!re.has(t)&&(re.add(t),(n=console).error.apply(n,q(t)))}function P(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;R(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),R(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}function H(e){var t=(e.plugins||[]).reduce(function(t,n){var i,r=n.name,o=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=we[r])?i:o);return t},{});return Object.assign({},e,t)}function F(e,t){return(t?Object.keys(H(Object.assign({},we,{plugins:t}))):xe).reduce(function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t},{})}function B(e,t){var n=Object.assign({},t,{content:o(t.content,[e])},t.ignoreAttributes?{}:F(e,t.plugins));return n.aria=Object.assign({},we.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function $(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach(function(e){var i=!n(s(we,Object.keys(ye)),e);i&&(i=0===t.filter(function(t){return t.name===e}).length),M(i,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}function z(e,t){e[Ee()]=t}function W(e){var t=m();return!0===e?t.className=fe:(t.className=pe,g(e)?t.appendChild(e):z(t,e)),t}function U(e,t){g(t.content)?(z(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?z(e,t.content):e.textContent=t.content)}function X(e){var t=e.firstElementChild,n=p(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(ue)}),arrow:n.find(function(e){return e.classList.contains(fe)||e.classList.contains(pe)}),backdrop:n.find(function(e){return e.classList.contains(de)})}}function Y(e){function t(t,i){var r=X(n),o=r.box,a=r.content,s=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),t.content===i.content&&t.allowHTML===i.allowHTML||U(a,e.props),i.arrow?s?t.arrow!==i.arrow&&(o.removeChild(s),o.appendChild(W(i.arrow))):o.appendChild(W(i.arrow)):s&&o.removeChild(s)}var n=m(),i=m();i.className=ce,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var r=m();return r.className=ue,
8r.setAttribute("data-state","hidden"),U(r,e.props),n.appendChild(i),i.appendChild(r),t(e.props,e.props),{popper:n,onUpdate:t}}function V(t,n){function r(){var e=$e.props.touch;return Array.isArray(e)?e:[e,0]}function s(){return"hold"===r()[0]}function f(){var e;return!(null==(e=$e.props.render)||!e.$$tippy)}function g(){return De||t}function v(){var e=g().parentNode;return e?E(e):document}function b(){return X(We)}function w(e){return $e.state.isMounted&&!$e.state.isVisible||ge.isTouch||Ie&&"focus"===Ie.type?0:i($e.props.delay,e?0:1,we.delay)}function I(e){void 0===e&&(e=!1),We.style.pointerEvents=$e.props.interactive&&!e?"":"none",We.style.zIndex=""+$e.props.zIndex}
8function C(e,t,n){var i;(void 0===n&&(n=!0),Xe.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(i=$e.props)[e].apply(i,t)}function S(){var e=$e.props.aria;if(e.content){var n="aria-"+e.content,i=We.id;c($e.props.triggerTarget||t).forEach(function(e){var t=e.getAttribute(n);if($e.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}})}}function D(){!Ye&&$e.props.aria.expanded&&c($e.props.triggerTarget||t).forEach(function(e){$e.props.interactive?e.setAttribute("aria-expanded",$e.state.isVisible&&e===g()?"true":"false"):e.removeAttribute("aria-expanded")})}function O(){v().removeEventListener("mousemove",Re),ke=ke.filter(function(e){return e!==Re})}function N(e){if(!ge.isTouch||!qe&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!$e.props.interactive||!T(We,n)){if(c($e.props.triggerTarget||t).some(function(e){return T(e,n)})){if(ge.isTouch)return;if($e.state.isVisible&&$e.props.trigger.indexOf("click")>=0)return}else C("onClickOutside",[$e,e]);!0===$e.props.hideOnClick&&($e.clearDelayTimeouts(),$e.hide(),Ne=!0,setTimeout(function(){Ne=!1}),$e.state.isMounted||F())}}}function q(){qe=!0}function j(){qe=!1}function P(){var e=v();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,he),e.addEventListener("touchstart",j,he),e.addEventListener("touchmove",q,he)}function F(){var e=v();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,he),e.removeEventListener("touchstart",j,he),e.removeEventListener("touchmove",q,he)}function $(e,t){W(e,function(){!$e.state.isVisible&&We.parentNode&&We.parentNode.contains(We)&&t()})}function z(e,t){W(e,t)}function W(e,t){function n(e){e.target===i&&(k(i,"remove",n),t())}var i=b().box;if(0===e)return t();k(i,"remove",Ce),k(i,"add",n),Ce=n}function U(e,n,i){void 0===i&&(i=!1),c($e.props.triggerTarget||t).forEach(function(t){t.addEventListener(e,n,i),Me.push({node:t,eventType:e,handler:n,options:i})})}function Y(){s()&&(U("touchstart",Q,{passive:!0}),U("touchend",K,{passive:!0})),l($e.props.trigger).forEach(function(e){if("manual"!==e)switch(U(e,Q),e){case"mouseenter":U("mouseleave",K);break;case"focus":U(se?"focusout":"blur",G);break;case"focusin":U("focusout",G)}})}function V(){Me.forEach(function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)}),Me=[]}function Q(e){var t,n=!1;if($e.state.isEnabled&&!Z(e)&&!Ne){var i="focus"===(null==(t=Ie)?void 0:t.type);Ie=e,De=e.currentTarget,D(),!$e.state.isVisible&&y(e)&&ke.forEach(function(t){return t(e)}),"click"===e.type&&($e.props.trigger.indexOf("mouseenter")<0||Oe)&&!1!==$e.props.hideOnClick&&$e.state.isVisible?n=!0:re(e),"click"===e.type&&(Oe=!n),n&&!i&&oe(e)}}function J(e){var t=e.target,n=g().contains(t)||We.contains(t);if("mousemove"!==e.type||!n){var i=ie().concat(We).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:Le}:null}).filter(Boolean);A(i,e)&&(O(),oe(e))}}function K(e){Z(e)||$e.props.trigger.indexOf("click")>=0&&Oe||($e.props.interactive?$e.hideWithInteractivity(e):oe(e))}function G(e){$e.props.trigger.indexOf("focusin")<0&&e.target!==g()||$e.props.interactive&&e.relatedTarget&&We.contains(e.relatedTarget)||oe(e)}function Z(e){return!!ge.isTouch&&s()!==e.type.indexOf("touch")>=0}function ee(){te();var n=$e.props,i=n.popperOptions,r=n.placement,o=n.offset,a=n.getReferenceClientRect,s=n.moveTransition,l=f()?X(We).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||g()}:t,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(f()){var n=b().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},u];f()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==i?void 0:i.modifiers)||[]),$e.popperInstance=e.createPopper(c,We,Object.assign({},i,{placement:r,onFirstUpdate:Se,modifiers:d}))}function te(){$e.popperInstance&&($e.popperInstance.destroy(),$e.popperInstance=null)}function ne(){var e,t=$e.props.appendTo,n=g();(e=$e.props.interactive&&t===me||"parent"===t?n.parentNode:o(t,[n])).contains(We)||e.appendChild(We),$e.state.isMounted=!0,ee(),M($e.props.interactive&&t===we.appendTo&&n.nextElementSibling!==We,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function ie(){return p(We.querySelectorAll("[data-tippy-root]"))}function re(e){$e.clearDelayTimeouts(),e&&C("onTrigger",[$e,e]),P();var t=w(!0),n=r(),i=n[0],o=n[1];ge.isTouch&&"hold"===i&&o&&(t=o),t?xe=setTimeout(function(){$e.show()},t):$e.show()}function oe(e){if($e.clearDelayTimeouts(),C("onUntrigger",[$e,e]),$e.state.isVisible){if(!($e.props.trigger.indexOf("mou
8seenter")>=0&&$e.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&Oe)){var t=w(!1);t?_e=setTimeout(function(){$e.state.isVisible&&$e.hide()},t):Ee=requestAnimationFrame(function(){$e.hide()})}}else F()}function ae(){$e.state.isEnabled=!0}function le(){$e.hide(),$e.state.isEnabled=!1}function ce(){clearTimeout(xe),clearTimeout(_e),cancelAnimationFrame(Ee)}function ue(e){if(M($e.state.isDestroyed,L("setProps")),!$e.state.isDestroyed){C("onBeforeUpdate",[$e,e]),V();var n=$e.props,i=B(t,Object.assign({},n,h(e),{ignoreAttributes:!0}));$e.props=i,Y(),n.interactiveDebounce!==i.interactiveDebounce&&(O(),Re=a(J,i.interactiveDebounce)),n.triggerTarget&&!i.triggerTarget?c(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):i.triggerTarget&&t.removeAttribute("aria-expanded"),D(),I(),Ue&&Ue(n,i),$e.popperInstance&&(ee(),ie().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),C("onAfterUpdate",[$e,e])}}function de(e){$e.setProps({content:e})}function fe(){M($e.state.isDestroyed,L("show"));var e=$e.state.isVisible,t=$e.state.isDestroyed,n=!$e.state.isEnabled,r=ge.isTouch&&!$e.props.touch,o=i($e.props.duration,0,we.duration);if(!(e||t||n||r||g().hasAttribute("disabled")||(C("onShow",[$e],!1),!1===$e.props.onShow($e)))){if($e.state.isVisible=!0,f()&&(We.style.visibility="visible"),I(),P(),$e.state.isMounted||(We.style.transition="none"),f()){var a=b();x([a.box,a.content],0)}Se=function(){var e;if($e.state.isVisible&&!je){if(je=!0,We.offsetHeight,We.style.transition=$e.props.moveTransition,f()&&$e.props.animation){var t=b(),n=t.box,i=t.content;x([n,i],o),_([n,i],"visible")}S(),D(),u(Te,$e),null==(e=$e.popperInstance)||e.forceUpdate(),C("onMount",[$e]),$e.props.animation&&f()&&z(o,function(){$e.state.isShown=!0,C("onShown",[$e])})}},ne()}}function pe(){M($e.state.isDestroyed,L("hide"));var e=!$e.state.isVisible,t=$e.state.isDestroyed,n=!$e.state.isEnabled,r=i($e.props.duration,1,we.duration);if(!(e||t||n)&&(C("onHide",[$e],!1),!1!==$e.props.onHide($e))){if($e.state.isVisible=!1,$e.state.isShown=!1,je=!1,Oe=!1,f()&&(We.style.visibility="hidden"),O(),F(),I(!0),f()){var o=b(),a=o.box,s=o.content;$e.props.animation&&(x([a,s],r),_([a,s],"hidden"))}S(),D(),$e.props.animation?f()&&$(r,$e.unmount):$e.unmount()}}function ve(e){M($e.state.isDestroyed,L("hideWithInteractivity")),v().addEventListener("mousemove",Re),u(ke,Re),Re(e)}function ye(){M($e.state.isDestroyed,L("unmount")),$e.state.isVisible&&$e.hide(),$e.state.isMounted&&(te(),ie().forEach(function(e){e._tippy.unmount()}),We.parentNode&&We.parentNode.removeChild(We),Te=Te.filter(function(e){return e!==$e}),$e.state.isMounted=!1,C("onHidden",[$e]))}function be(){M($e.state.isDestroyed,L("destroy")),$e.state.isDestroyed||($e.clearDelayTimeouts(),$e.unmount(),V(),delete t._tippy,$e.state.isDestroyed=!0,C("onDestroy",[$e]))}var xe,_e,Ee,Ie,Ce,Se,De,Le=B(t,Object.assign({},we,H(h(n)))),Oe=!1,Ne=!1,qe=!1,je=!1,Me=[],Re=a(J,Le.interactiveDebounce),Pe=Ae++,He=null,Fe=d(Le.plugins),Be={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},$e={id:Pe,reference:t,popper:m(),popperInstance:He,props:Le,state:Be,plugins:Fe,clearDelayTimeouts:ce,setProps:ue,setContent:de,show:fe,hide:pe,hideWithInteractivity:ve,enable:ae,disable:le,unmount:ye,destroy:be};if(!Le.render)return R(!0,"render() function has not been supplied."),$e;var ze=Le.render($e),We=ze.popper,Ue=ze.onUpdate;We.setAttribute("data-tippy-root",""),We.id="tippy-"+$e.id,$e.popper=We,t._tippy=$e,We._tippy=$e;var Xe=Fe.map(function(e){return e.fn($e)}),Ye=t.hasAttribute("aria-expanded");return Y(),D(),I(),C("onCreate",[$e]),Le.showOnCreate&&re(),We.addEventListener("mouseenter",function(){$e.props.interactive&&$e.state.isVisible&&$e.clearDelayTimeouts()}),We.addEventListener("mouseleave",function(){$e.props.interactive&&$e.props.trigger.indexOf("mouseenter")>=0&&v().addEventListener("mousemove",Re)}),$e}function Q(e,t){void 0===t&&(t={});var n=we.plugins.concat(t.plugins||[]);P(e),$(t,n),D();var i=Object.assign({},t,{plugins:n}),r=w(e),o=g(i.content),a=r.length>1;
8M(o&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var s=r.reduce(function(e,t){var n=t&&V(t,i);return n&&e.push(n),e},[]);return g(e)?s[0]:s}function J(e,t){function n(e){if(e.target&&!d){var n=e.target.closest(f);if(n){var i=n.getAttribute("data-tippy-trigger")||t.trigger||we.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof m.touch||"touchstart"!==e.type&&i.indexOf(De[e.type])<0)){var r=Q(n,m);r&&(u=u.concat(r))}}}}function i(e,t,n,i){void 0===i&&(i=!1),e.addEventListener(t,n,i),l.push({node:e,eventType:t,handler:n,options:i})}function r(e){var t=e.reference;i(t,"touchstart",n,he),i(t,"mouseover",n),i(t,"focusin",n),i(t,"click",n)}function o(){l.forEach(function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)}),l=[]}function a(e){var t=e.destroy,n=e.enable,i=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&u.forEach(function(e){e.destroy()}),u=[],o(),t()},e.enable=function(){n(),u.forEach(function(e){return e.enable()}),d=!1},e.disable=function(){i(),u.forEach(function(e){return e.disable()}),d=!0},r(e)}R(!(t&&t.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var l=[],u=[],d=!1,f=t.target,p=s(t,["target"]),h=Object.assign({},p,{trigger:"manual",touch:!1}),m=Object.assign({touch:we.touch},p,{showOnCreate:!0}),g=Q(e,h);return c(g).forEach(a),g}function K(){var e=m();return e.className=de,_([e],"hidden"),e}function G(e){var t=e.clientX,n=e.clientY;Oe={clientX:t,clientY:n}}function Z(e){e.addEventListener("mousemove",G)}function ee(e){e.removeEventListener("mousemove",G)}function te(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter(function(e){return e.name!==t.name}),[t])})}}function ne(e,t,n,i){if(n.length<2||null===e)return t;if(2===n.length&&i>=0&&n[0].left>n[1].right)return n[i]||t;switch(e){case"top":case"bottom":var r=n[0],o=n[n.length-1],a="top"===e,s=r.top,l=o.bottom,c=a?r.left:o.left,u=a?r.right:o.right;return{top:s,bottom:l,left:c,right:u,width:u-c,height:l-s};case"left":case"right":var d=Math.min.apply(Math,n.map(function(e){return e.left})),f=Math.max.apply(Math,n.map(function(e){return e.right})),p=n.filter(function(t){return"left"===e?t.left===d:t.right===f}),h=p[0].top,m=p[p.length-1].bottom;return{top:h,bottom:m,left:d,right:f,width:f-d,height:m-h};default:return t}}function ie(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}var re,oe='.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}
8',ae="undefined"!=typeof window&&"undefined"!=typeof document,se=!!ae&&!!window.msCrypto,le='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',ce="tippy-box",ue="tippy-content",de="tippy-backdrop",fe="tippy-arrow",pe="tippy-svg-arrow",he={passive:!0,capture:!0},me=function(){return document.body},ge={isTouch:!1},ve=0;j();var ye={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},be={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},we=Object.assign({appendTo:me,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ye,be),xe=Object.keys(we),_e=function(e){$(e,[]),Object.keys(e).forEach(function(t){we[t]=e[t]})},Ee=function(){return"innerHTML"};Y.$$tippy=!0;var Ae=1,ke=[],Te=[];Q.defaultProps=we,Q.setDefaultProps=_e,Q.currentInput=ge;var Ie=function(e){var t=void 0===e?{}:e,n=t.exclude,i=t.duration;Te.forEach(function(e){var t=!1;if(n&&(t=b(n)?e.reference===n:e.popper===n.popper),!t){var r=e.props.duration;e.setProps({duration:i}),e.hide(),e.state.isDestroyed||e.setProps({duration:r})}})},Ce=Object.assign({},e.applyStyles,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Se=function(e,t){function n(){p=d.map(function(e){return c(e.props.triggerTarget||e.reference)}).reduce(function(e,t){return e.concat(t)},[])}function i(){f=d.map(function(e){return e.reference})}function r(e){d.forEach(function(t){e?t.enable():t.disable()})}function o(e){return d.map(function(t){var n=t.setProps;return t.setProps=function(i){n(i),t.reference===u&&e.setProps(i)},function(){t.setProps=n}})}function a(e,t){var n=p.indexOf(t);if(t!==u){u=t;var i=(h||[]).concat("content").reduce(function(e,t){return e[t]=d[n].props[t],e},{});e.setProps(Object.assign({},i,{getReferenceClientRect:"function"==typeof i.getReferenceClientRect?i.getReferenceClientRect:function(){var e;return null==(e=f[n])?void 0:e.getBoundingClientRect()}}))}}var l;void 0===t&&(t={}),R(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var u,d=e,f=[],p=[],h=t.overrides,g=[],v=!1;r(!1),i(),n();var y={fn:function(){return{onDestroy:function(){r(!0)},onHidden:function(){u=null},onClickOutside:function(e){e.props.showOnCreate&&!v&&(v=!0,u=null)},onShow:function(e){e.props.showOnCreate&&!v&&(v=!0,a(e,f[0]))},onTrigger:function(e,t){a(e,t.currentTarget)}}}},b=Q(m(),Object.assign({},s(t,["overrides"]),{plugins:[y].concat(t.plugins||[]),triggerTarget:p,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(l=t.popperOptions)?void 0:l.modifiers)||[],[Ce])})})),w=b.show;b.show=function(e){if(w(),!u&&null==e)return a(b,f[0]);if(!u||null!=e){if("number"==typeof e)return f[e]&&a(b,f[e]);if(d.indexOf(e)>=0){var t=e.reference;return a(b,t)}return f.indexOf(e)>=0?a(b,e):void 0}},b.showNext=function(){var e=f[0];if(!u)return b.show(0);var t=f.indexOf(u);b.show(f[t+1]||e)},b.showPrevious=function(){var e=f[f.length-1];if(!u)return b.show(e);var t=f.indexOf(u),n=f[t-1]||e;b.show(n)};var x=b.setProps;return b.setProps=function(e){h=e.overrides||h,x(e)},b.setInstances=function(e){r(!0),g.forEach(function(e){return e()}),d=e,r(!1),i(),n(),g=o(b),b.setProps({triggerTarget:p})},g=o(b),b}
8,De={mouseover:"mouseenter",focusin:"focus",click:"click"},Le={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return R(e.props.animateFill,"The `animateFill` plugin requires the default render function."),{};var n=X(e.popper),i=n.box,r=n.content,o=e.props.animateFill?K():null;return{onCreate:function(){o&&(i.insertBefore(o,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var e=i.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",o.style.transitionDuration=e,_([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&_([o],"hidden")}}}},Oe={clientX:0,clientY:0},Ne=[],qe={name:"followCursor",defaultValue:!1,fn:function(e){function t(){return"initial"===e.props.followCursor&&e.state.isVisible}function n(){c.addEventListener("mousemove",o)}function i(){c.removeEventListener("mousemove",o)}function r(){u=!0,e.setProps({getReferenceClientRect:null}),u=!1}function o(t){var n=!t.target||l.contains(t.target),i=e.props.followCursor,r=t.clientX,o=t.clientY,a=l.getBoundingClientRect(),s=r-a.left,c=o-a.top;!n&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=l.getBoundingClientRect(),t=r,n=o;"initial"===i&&(t=e.left+s,n=e.top+c);var a="horizontal"===i?e.top:n,u="vertical"===i?e.right:t,d="horizontal"===i?e.bottom:n,f="vertical"===i?e.left:t;return{width:u-f,height:d-a,top:a,right:u,bottom:d,left:f}}})}function a(){e.props.followCursor&&(Ne.push({instance:e,doc:c}),Z(c))}function s(){0===(Ne=Ne.filter(function(t){return t.instance!==e})).filter(function(e){return e.doc===c}).length&&ee(c)}var l=e.reference,c=E(e.props.triggerTarget||l),u=!1,d=!1,f=!0,p=e.props;return{onCreate:a,onDestroy:s,onBeforeUpdate:function(){p=e.props},onAfterUpdate:function(o,l){var c=l.followCursor;u||void 0!==c&&p.followCursor!==c&&(s(),c?(a(),!e.state.isMounted||d||t()||n()):(i(),r()))},onMount:function(){e.props.followCursor&&!d&&(f&&(o(Oe),f=!1),t()||n())},onTrigger:function(e,t){y(t)&&(Oe={clientX:t.clientX,clientY:t.clientY}),d="focus"===t.type},onHidden:function(){e.props.followCursor&&(r(),i(),f=!0)}}}},je={name:"inlinePositioning",defaultValue:!1,fn:function(e){function t(){return!!e.props.inlinePositioning}function n(e){return ne(f(e),a.getBoundingClientRect(),p(a.getClientRects()),s)}function i(t){l=!0,e.setProps(t),l=!1}function r(){l||i(te(e.props,u))}var o,a=e.reference,s=-1,l=!1,c=[],u={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(i){var r=i.state;t()&&(-1!==c.indexOf(r.placement)&&(c=[]),o!==r.placement&&-1===c.indexOf(r.placement)&&(c.push(r.placement),e.setProps({getReferenceClientRect:function(){return n(r.placement)}})),o=r.placement)}};return{onCreate:r,onAfterUpdate:r,onTrigger:function(t,n){if(y(n)){var i=p(e.reference.getClientRects()),r=i.find(function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY}),o=i.indexOf(r);s=o>-1?o:s}},onHidden:function(){s=-1}}}},Me={name:"sticky",defaultValue:!1,fn:function(e){function t(){return e.popperInstance?e.popperInstance.state.elements.reference:r}function n(t){return!0===e.props.sticky||e.props.sticky===t}function i(){var r=n("reference")?t().getBoundingClientRect():null,l=n("popper")?o.getBoundingClientRect():null;(r&&ie(a,r)||l&&ie(s,l))&&e.popperInstance&&e.popperInstance.update(),a=r,s=l,e.state.isMounted&&requestAnimationFrame(i)}var r=e.reference,o=e.popper,a=null,s=null;return{onMount:function(){e.props.sticky&&i()}}}};return ae&&t(oe),Q.setDefaultProps({plugins:[Le,qe,je,Me],render:Y}),Q.createSingleton=Se,Q.delegate=J,Q.hideAll=Ie,Q.roundArrow=le,Q}),function(e,t){"use strict";function n(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||u(),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,i=this.intersectionRect,r=i.width*i.height;this.intersectionRatio=n?r/n:this.isIntersecting?1:0}function i(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=o(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" ")}function r(){return e.performance&&performance.now&&performance.now()}function o(e,t){var n=null;return function(){n||(n=setTimeout(function(){e(),n=null},t))}}function a(e,t,n,i){"function"==typeof e.addEventListener?e.addEventListener(t,n,i||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function s(e,t,n,i){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,i||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function l(e,t){var n=Math.max(e.top,t.top),i=Math.min(e.bottom,t.bottom),r=Math.max(e.left,t.left),o=Math.min(e.right,t.right),a=o-r,s=i-n;return a>=0&&s>=0&&{top:n,bottom:i,left:r,right:o,width:a,height:s}}function c(e){var t;try{t=e.getBoundingClientRect()}catch(e){}
8return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):u()}function u(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t}if("IntersectionObserver"in e&&"IntersectionObserverEntry"in e&&"intersectionRatio"in e.IntersectionObserverEntry.prototype)"isIntersecting"in e.IntersectionObserverEntry.prototype||Object.defineProperty(e.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var p=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},i.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},i.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(a(e,"resize",this._checkForIntersections,!0),a(t,"scroll",this._checkForIntersections,!0),"MutationObserver"in e&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(e,"resize",this._checkForIntersections,!0),s(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():u();this._observationTargets.forEach(function(i){var o=i.element,a=c(o),s=this._rootContainsTarget(o),l=i.entry,u=e&&s&&this._computeTargetAndRootIntersection(o,t),d=i.entry=new n({time:r(),target:o,boundingClientRect:a,rootBounds:t,intersectionRect:u});l?e&&s?this._hasCrossedThreshold(l,d)&&this._queuedEntries.push(d):l&&l.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(n,i){if("none"!=e.getComputedStyle(n).display){for(var r=c(n),o=f(n),a=!1;!a;){var s=null,u=1==o.nodeType?e.getComputedStyle(o):{};if("none"==u.display)return;if(o==this.root||o==t?(a=!0,s=i):o!=t.body&&o!=t.documentElement&&"visible"!=u.overflow&&(s=c(o)),s&&!(r=l(s,r)))break;
8o=f(o)}return r}},i.prototype._getRootRect=function(){var e;if(this.root)e=c(this.root);else{var n=t.documentElement,i=t.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},i.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,i=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==i)for(var r=0;r<this.thresholds.length;r++){var o=this.thresholds[r];if(o==n||o==i||o<n!=o<i)return!0}},i.prototype._rootIsInDom=function(){return!this.root||d(t,this.root)},i.prototype._rootContainsTarget=function(e){return d(this.root||t,e)},i.prototype._registerInstance=function(){p.indexOf(this)<0&&p.push(this)},i.prototype._unregisterInstance=function(){var e=p.indexOf(this);-1!=e&&p.splice(e,1)},e.IntersectionObserver=i,e.IntersectionObserverEntry=n}}(window,document),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.lozad=t()}(this,function(){"use strict";function e(e){e.setAttribute("data-loaded",!0)}var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},n={rootMargin:"0px",threshold:0,load:function(e){e.getAttribute("data-src")&&(e.src=e.getAttribute("data-src")),e.getAttribute("data-srcset")&&(e.srcset=e.getAttribute("data-srcset")),e.getAttribute("data-background-image")&&(e.style.backgroundImage="url("+e.getAttribute("data-background-image")+")")}},i=function(e){return"true"===e.getAttribute("data-loaded")},r=function(t){return function(n,r){n.forEach(function(n){n.intersectionRatio>0&&(r.unobserve(n.target),i(n.target)||(t(n.target),e(n.target)))})}},o=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".lozad",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=t({},n,a),l=s.rootMargin,c=s.threshold,u=s.load,d=void 0;return window.IntersectionObserver&&(d=new IntersectionObserver(r(u),{rootMargin:l,threshold:c})),{observe:function(){for(var t=document.querySelectorAll(o),n=0;n<t.length;n++)i(t[n])||(d?d.observe(t[n]):(u(t[n]),e(t[n])))},triggerLoad:function(t){i(t)||(u(t),e(t))}}};return o}
8),window.requestIdleCallback=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)},function(e,t){"use strict";function n(){Array.prototype.slice.call(e.querySelectorAll('[data-behavior~="show.confetti"]')).forEach(function(e){e.addEventListener("click",t.Intellum.confetti.start)}),e.body.hasAttribute("data-confetti")&&"true"===e.body.getAttribute("data-confetti")&&t.Intellum.confetti.start()}var i,r,o,a,s,l,c,u,d;t.Intellum=t.Intellum||{},t.Intellum.confetti=(r={colors:["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722"],heights:[5,20],widths:[2,15],skewXs:[-25,25],skewYs:[-5,5],zIndex:1e4,number:t.innerHeight*t.innerWidth/5e3,duration:1e4},o=!1,a=[],s=0,l=function(e){return e[0]+(e[1]-e[0])*Math.random()},c=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)},u=function(){var n,i,o,a,c,u,d,f,p,h,m,g,v=t.innerWidth,y=t.innerHeight,b=r.skewXs[0],w=r.skewXs[1],x=e.createElement("span");x.style.display="inline-block",x.style.position="fixed",x.style.zIndex=r.zIndex,x.classList.add("confetto"),e.body.appendChild(x),s++;var _=function(){x&&(x.style.opacity=c,x.style.transform=["translateX("+o+"px)","translateY("+a+"px)","skewX("+d+"deg)","skewY("+f+"deg)"].join(" "))},E=function(){x.style.height=n+"px",x.style.width=i+"px",x.style.backgroundColor=u,x.style.left=0,x.style.top=0,_()},A=function(){n=l(r.heights),i=l(r.widths),o=l([0,t.innerWidth-i]),a=l([-20,t.innerHeight-n]),d=l(r.skewXs),f=l(r.skewYs),c=0,u=r.colors[~~l([0,r.colors.length])],p=.03*l([1,4]),h=l([-5,5]),m=l([1,5]),
9g=l([-5,5]),E()},k=function(t){((d+=g)<b||d>w)&&(g*=-1),((o+=h)>v||o<0)&&(h*=-1),a+=m,(c+=p)>1&&(c=1,p*=-1),(c<0||a>y)&&(t?x&&(e.body.removeChild(x),x=null,s--):A()),_()};return{start:A,step:k}},d=function(){a.forEach(function(e){e.step(!o)}),s>0&&c(d)},{start:function(){if(!o){a=[];for(var e=0;e<r.number;e++)a.push(new u);o=!0,i=t.setTimeout(function(){o=!1},r.duration),a.forEach(function(e){e.start()}),d()}},stop:function(){o=!1,t.clearTimeout(i),i=null}}),e.addEventListener("DOMContentLoaded",n)}(window.document,window),function(e,t){"use strict";var n,i,r,o,a,s,l;t.Intellum=t.Intellum||{},t.Intellum.confirm=(n=function(e){var n=e.target.Intellum&&e.target.Intellum.confirm&&e.target.Intellum.confirm.callback;if(s(e.target.Intellum.confirm.parent),"function"==typeof n)n(!0);else if("string"==typeof n){var i=new t.XMLHttpRequest;i.open("GET",encodeURI(n)),i.send()}},i=function(e){var t=e.target.Intellum&&e.target.Intellum.confirm&&e.target.Intellum.confirm.callback;s(e.target.Intellum.confirm.parent),"function"==typeof t&&t(!1)},r=function(e,t,r,o){for(var a=0;a<e.length;a++)e[a].Intellum=e[a].Intellum||{},e[a].Intellum.confirm=e[a].Intellum.confirm||{},e[a].Intellum.confirm.parent=r,e[a].Intellum.confirm.callback=o,e[a].addEventListener("click",t?n:i)},o=function(e,t){for(var r=0;r<e.length;r++)e[r].Intellum&&e[r].Intellum.confirm&&e[r].Intellum.confirm.callback&&(e[r].removeEventListener("click",t?n:i),e[r].Intellum.confirm.callback=!1)},a=function(e,n){-1===e.className.indexOf("confirm--visible")&&(e.className+=" confirm--visible"),e.setAttribute("aria-hidden","false"),r(e.getElementsByClassName("confirm__accept"),!0,e,n),r(e.getElementsByClassName("confirm__cancel"),!1,e,n),r(e.getElementsByClassName("confirm__close"),!1,e,n),1!==e.className.indexOf("dialog")&&t.Intellum.a11y.trapFocus(e,null,function(){s(e)})},s=function(e){e.className=e.className.slice(0,-17),e.setAttribute("aria-hidden","true"),o(e.getElementsByClassName("confirm__accept"),!0),o(e.getElementsByClassName("confirm__cancel"),!1),o(e.getElementsByClassName("confirm__close"),!1),1!==e.className.indexOf("dialog")&&t.Intellum.a11y.releaseFocus()},l=function(){for(var n=function(n){return function(){var i=n.getAttribute("data-trigger-confirm"),r=n.getAttribute("data-confirm-accept"),o=e.getElementById(i);o&&t.Intellum.confirm.show(o,r)}},i=e.getElementsByTagName("button"),r=0;r<i.length;r++){var o=i[r];o.hasAttribute("data-trigger-confirm")&&o.addEventListener("click",n(o))}},{hide:function(e){s(e)},init:function(){l()},show:function(e,t){a(e,t)}}),e.addEventListener("DOMContentLoaded",t.Intellum.confirm.init)}(window.document,window),function(e){if("function"==typeof define&&define.amd)define(e);
9else if("object"==typeof exports)module.exports=e();else{var t=window.Cookies,n=window.Cookies=e();n.noConflict=function(){return window.Cookies=t,n}}}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}function t(n){function i(t,r,o){var a;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(o=e({path:"/"},i.defaults,o)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}try{a=JSON.stringify(r),/^[\{\[]/.test(a)&&(r=a)}catch(e){}return r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",r,o.expires&&"; expires="+o.expires.toUTCString(),o.path&&"; path="+o.path,o.domain&&"; domain="+o.domain,o.secure?"; secure":""].join("")}t||(a={});for(var l=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,u=0;u<l.length;u++){var d=l[u].split("="),f=d.slice(1).join("=");'"'===f.charAt(0)&&(f=f.slice(1,-1));try{var p=d[0].replace(c,decodeURIComponent);if(f=n.read?n.read(f,p):n(f,p)||f.replace(c,decodeURIComponent),this.json)try{f=JSON.parse(f)}catch(e){}if(t===p){a=f;break}t||(a[p]=f)}catch(e){}}return a}}return i.set=i,i.get=function(e){return i(e)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(t,n){i(t,"",e(n,{expires:-1}))},i.withConverter=t,i}return t(function(){})}),function(e,t){"function"==typeof define&&define.amd?define([],function(){return e.svg4everybody=t()}):"object"==typeof exports?module.exports=t():e.svg4everybody=t()}(this,function(){function e(e,t){if(t){var n=document.createDocumentFragment(),i=!e.getAttribute("viewBox")&&t.getAttribute("viewBox"),r=!e.getAttribute("preserveAspectRatio")&&t.getAttribute("preserveAspectRatio");i&&e.setAttribute("viewBox",i),r&&e.setAttribute("preserveAspectRatio",r);for(var o=t.cloneNode(!0);o.childNodes.length;)n.appendChild(o.firstChild);e.appendChild(n)}}function t(t){t.onreadystatechange=function(){if(4===t.readyState){var n=t._cachedDocument;n||((n=t._cachedDocument=document.implementation.createHTMLDocument("")).body.innerHTML=t.responseText,t._cachedTarget={}),t._embeds.splice(0).map(function(i){var r=t._cachedTarget[i.id];r||(r=t._cachedTarget[i.id]=n.getElementById(i.id)),e(i.svg,r)})}},t.onreadystatechange()}function n(n){function i(){for(var n=0;n<d.length;){var a=d[n],s=a.parentNode;if(s&&/svg/i.test(s.nodeName)){var l=a.getAttribute("xlink:href");if(r&&(!o.validate||o.validate(l,s,a))){s.removeChild(a);var f=l.split("#"),p=f.shift(),h=f.join("#");if(p.length){var m=c[p];m||((m=c[p]=new XMLHttpRequest).open("GET",p),m.send(),m._embeds=[]),m._embeds.push({svg:s,id:h}),t(m)}else e(s,document.getElementById(h))}}else++n}u(i,67)}var r,o=Object(n),a=/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/,s=/\bAppleWebKit\/(\d+)\b/,l=/\bEdge\/12\.(\d+)\b/;r="polyfill"in o?o.polyfill:a.test(navigator.userAgent)||(navigator.userAgent.match(l)||[])[1]<10547||(navigator.userAgent.match(s)||[])[1]<537;var c={},u=window.requestAnimationFrame||setTimeout,d=document.getElementsByTagName("use");r&&i()}return n}),function(e,t){"use strict";t.Intellum=t.Intellum||{},t.Intellum.util=t.Intellum.util||{};var n=!1,i=[];t.Intellum.util.ready=function(r){function o(){e.removeEventListener("DOMContentLoaded",o),t.removeEventListener("load",o),n=!1,i.forEach(function(e){e()}),i=[]}"complete"===e.readyState||"loading"!==e.readyState&&!e.documentElement.doScroll?t.setTimeout(r,0):(i.push(r),n||(n=!0,e.addEventListener("DOMContentLoaded",o),t.addEventListener("load",o)))}}(window.document,window),function(e,t){"use strict";var n=[];e.addEventListener("Intellum.reinitialize",function(){n.forEach(function(e){e()})}),t.Intellum=t.Intellum||{},t.Intellum.util=t.Intellum.util||{},t.Intellum.util.reinitialize=function(){function t(){e.dispatchEvent(new CustomEvent("Intellum.reinitialize"))}function i(e){n.push(e)}return{trigger:t,register:i}}()}(window.document,window),function(e,t){"use strict";function n(){var t=e.body;-1===t.className.indexOf("a11y-nofocus")&&(t.className+=" a11y-nofocus"),e.addEventListener("keydown",function(e){"Tab"===e.key&&(t.className=t.className.replace(" a11y-nofocus",""),t.setAttribute("data-keyboard-user","true"))})}t.Intellum=t.Intellum||{},t.Intellum.a11y=function(){function n(e,t){return e.some(function(e){return e.contains(t)})}function i(t,i,r){if("Tab"===r.key){var o=d.indexOf(e.activeElement);d.length>0&&!n(i,e.activeElement)?d[0].focus():r.shiftKey?0===o&&(d[d.length-1].focus(),r.preventDefault()):o===d.length-1&&(
9d[0].focus(),r.preventDefault())}else!t||"function"!=typeof t||"Escape"!==event.key&&"Esc"!==event.key||t()}function r(t){return void 0===t&&(t=e.body),Array.isArray(t)||(t=t.length?Array.prototype.slice.call(t):[t]),t}function o(e){return r(e).reduce(function(e,t){return e.concat(t.matches(p)?[t]:[],Array.prototype.slice.call(t.querySelectorAll(p)))},[])}function a(e){o(r(e)).forEach(function(e){e.prevTabindex=e.getAttribute("tabindex"),e.setAttribute("tabindex","-1")})}function s(e){o(r(e)).forEach(function(e){"-1"===e.getAttribute("tabindex")&&(e.prevTabindex?e.setAttribute("tabindex",e.prevTabindex):e.removeAttribute("tabindex"))})}function l(a,s,l){function c(){p.removeEventListener("transitionend",c),s.focus()}var p;a=r(a),f=e.activeElement,d=o(a),s=s||n(a,e.activeElement)&&e.activeElement||d.length>0&&d[0],a.some(function(e){var n=t.getComputedStyle(e),i=n.getPropertyValue("transition-duration"),r=i&&i.split(",").some(function(e){return e&&0!==t.parseInt(e)}),o=n.getPropertyValue("transition-delay"),a=o&&o.split(",").some(function(e){return e&&0!==t.parseInt(e)});if(r||a)return p=e,!0}),s&&(p&&"undefined"!==e.body.style.transition?p.addEventListener("transitionend",c):s.focus()),d.length>0&&(u=i.bind(this,l,a),e.addEventListener("keydown",u))}function c(){e.removeEventListener("keydown",u),f&&f.focus&&f.focus(),d=null,f=null}var u,d=null,f=null,p=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not(.hidden)',"select:not([disabled])","textarea:not([disabled])","button:not([disabled]):not(.hidden)","iframe","object","embed",'*[tabindex="0"]',"*[contenteditable]"].join(", ");return{excludeFocus:a,includeFocus:s,releaseFocus:c,trapFocus:l}}(),t.Intellum.util.ready(n)}(window.document,window),function(e,t){"use strict";if("function"!=typeof Element.prototype.matches&&(Element.prototype.matches=Element.prototype.msMatchesSelector),"function"!=typeof Element.prototype.closest&&(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}}),"function"!=typeof t.CustomEvent){var n=function(t,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var i=e.createEvent("CustomEvent");return i.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),i};n.prototype=t.Event.prototype,t.CustomEvent=n}"undefined"==typeof global&&(t.global=t)}(window.document,window),function(e,t){"use strict";t.Intellum=t.Intellum||{},t.Intellum.util=t.Intellum.util||{},t.Intellum.util.resized=function(){function e(){u=t.innerWidth,d=t.innerHe
9ight,n()}function n(){a||(t.requestAnimationFrame?t.requestAnimationFrame(i):t.setTimeout(i,250),a=!0)}function i(){u===l&&d===c||(l=u,c=d,s.forEach(function(e){e()})),a=!1}function r(e){s.push(e)}function o(e){var t=s.indexOf(e);-1!==t&&s.splice(t,1)}var a=!1,s=[],l=t.innerWidth,c=t.innerHeight,u=l,d=c;return t.addEventListener("resize",e),{addHandler:r,removeHandler:o}}()}(window.document,window),function(e,t){"use strict";t.Intellum=t.Intellum||{},t.Intellum.util=t.Intellum.util||{},t.Intellum.util.scroll=function(){function e(e,n){var i=!1;return function(){i||(e.call(),i=!0,t.setTimeout(function(){i=!1},n))}}function n(e){o.push(e)}function i(e){var t=o.indexOf(e);-1!==t&&o.splice(t,1)}function r(){o.forEach(function(e){e()})}var o=[];return t.addEventListener("scroll",e(r,100)),t.addEventListener("wheel",e(r,100)),{addHandler:n,removeHandler:i}}()}(window.document,window),function(e,t){"use strict";function n(){"function"==typeof t.svg4everybody&&t.svg4everybody()}t.Intellum.util.ready(n)}(window.document,window),function(e,t){"use strict";t.Intellum=t.Intellum||{},t.Intellum.util=t.Intellum.util||{};var n=0;t.Intellum.util.uniqueid=function(){return"intellum-id-"+Date.now()+"-"+n++}}(window.document,window),function(e,t){"use strict";t.Intellum=t.Intellum||{},t.Intellum.util=t.Intellum.util||{},t.Intellum.util.throttle=function(e,n){var i=!1;return function(){i||(e.call(),i=!0,t.setTimeout(function(){i=!1},n))}}}(window.document,window),function(e,t){"use strict";t.Intellum=t.Intellum||{},t.Intellum.util=t.Intellum.util||{},t.Intellum.util.now=Date.now||function(){return(new Date).getTime()},t.Intellum.util.debounce=function(e,n,i){var r,o,a,s,l,c=function(){var u=t.Intellum.util.now()-s;u<n&&u>=0?r=setTimeout(c,n-u):(r=null,i||(l=e.apply(a,o),r||(a=o=null)))};return function(){a=this,o=arguments,s=t.Intellum.util.now();var u=i&&!r;return r||(r=setTimeout(c,n)),u&&(l=e.apply(a,o),a=o=null),l}}}(window.document,window),function(e,t){"use strict";function n(){Array.prototype.slice.call(e.querySelectorAll(".comment")).forEac
9h(function(e){new t.Intellum.comment(e)})}t.Intellum=t.Intellum||{},t.Intellum.comment=function(n){function i(){-1===n.className.indexOf("comment--editing")&&(n.className+=" comment--editing"),n.className=n.className.replace(" comment--replying","")}function r(){n.className=n.className.replace(" comment--editing","")}function o(){-1===n.className.indexOf("comment--editing")?n.dispatchEvent(new t.CustomEvent("startedit.comment")):n.dispatchEvent(new t.CustomEvent("stopedit.comment"))}function a(e){if(t.FormData){e.preventDefault();var n=new XMLHttpRequest,i=new t.FormData(b),r=b.getAttribute("action");n.open("POST",r),n.setRequestHeader("Accept","application/json"),n.onload=function(){if(n.status>=200&&n.status<400){var e=JSON.parse(n.responseText);e.success&&s(e.html),e.message&&t.Intellum.flashnotice.show(e.message)}},n.send(i)}}function s(e){A&&(A.innerHTML=e.trim(),w&&(w.value=Array.prototype.slice.call(A.querySelectorAll("p")).map(function(e){return e.textContent}).join("\r\n\r\n")),n.dispatchEvent(new t.CustomEvent("stopedit.comment")))}function l(){-1===n.className.indexOf("comment--replying")&&(n.className+=" comment--replying"),n.className=n.className.replace(" comment--editing",""),_&&_.focus()}function c(){n.className=n.className.replace(" comment--replying","")}function u(){-1===n.className.indexOf("comment--replying")?n.dispatchEvent(new t.CustomEvent("startreply.comment")):n.dispatchEvent(new t.CustomEvent("stopreply.comment"))}function d(e){if(t.FormData){e.preventDefault();var n=new XMLHttpRequest,i=new t.FormData(x),r=x.getAttribute("action");n.open("POST",r),n.setRequestHeader("Accept","application/json"),n.onload=function(){if(n.status>=200&&n.status<400){var e=JSON.parse(n.responseText);e.success&&f(e.html),e.message&&t.Intellum.flashnotice.show(e.message)}},n.send(i)}}function f(i){if(E){var r=e.createElement("div");r.innerHTML=i.trim();var o=r.firstChild;E.insertBefore(o,E.firstChild),new t.Intellum.comment(o),n.dispatchEvent(new t.CustomEvent("stopreply.comment",{detail:{reply:o}}))}}function p(e){if(k){k.setAttribute("data-like-count",e);var t=k.getAttribute("data-likes-template");0===e&&k.hasAttribute("data-likes-0-template")?t=k.getAttribute("data-likes-0-template"):1===e&&k.hasAttribute("data-likes-1-template")&&(t=k.getAttribute("data-likes-1-template")),k.textContent=t.replace("${likes}",e)}}function h(e){k&&p((k.hasAttribute("data-like-count")?parseInt(k.getAttribute("data-like-count")):0)+e)}function m(e){if(e.detail&&e.detail.trigger&&e.detail.trigger.hasAttribute("data-like-url")){var t=new XMLHttpRequest;t.open("POST",e.detail.trigger.getAttribute("data-like-url"),!0),t.onload=function(){if(t.status>=200&&t.status<400){var e=t.responseText;-1===n.className.indexOf("comment--liked")&&(n.className+=" comment--liked"),p(JSON.parse(e).likes_count||0)}},t.send()}else-1===n.className.indexOf("comment--liked")&&(n.className+=" comment--liked"),h(1)}function g(e){if(e.detail&&e.detail.trigger&&e.detail.trigger.hasAttribute("data-like-url")){var t=new XMLHttpRequest;t.open("DELETE",e.detail.trigger.getAttribute("data-like-url"),!0),t.onload=function(){if(t.status>=200&&t.status<400){var e=t.responseText;n.className=n.className.replace(" comment--liked",""),p(JSON.parse(e).likes_count||0)}},t.send()}else n.className=n.className.replace(" comment--liked",""),h(-1)}function v(){for(var t=n.querySelector(".comment__content");t.firstChild;)t.removeChild(t.firstChild);var i=e.createElement("p");i.className="comment__paragraph",i.textContent=t.getAttribute("data-deleted-content"),t.appendChild(i),Array.prototype.slice.call(n.querySelectorAll(".comment__editaction, .comment__responseaction")).forEach(function(e){e.closest(".comment")===n&&e.parentNode.removeChild(e)})}function y(){n.addEventListener("startedit.comment",i),n.addEventListener("stopedit.comment",r),n.addEventListener("toggleedit.comment",o),n.addEventListener("startreply.comment",l),n.addEventListener("stopreply.comment",c),n.addEventListener("togglereply.comment",u),n.addEventListener("like.comment",m),n.addEventListener("unlike.comment",g),n.addEventListener("clear.comment",v),n.onstartedit=i,n.onstopedit=r,n.ontoggleedit=o,n.onstartreply=l,n.onstopreply=c,n.ontogglereply=u,n.onlike=m,n.onunlike=g,n.clear=v,b&&b.addEventListener("submit",a),x&&x.addEventListener("submit",d),Array.prototype.slice.call(n.querySelectorAll('[data-behavior~="startedit"], [data-behavior~="startedit.comment"]')).forEac
9h(function(e){e.closest(".comment")===n&&e.addEventListener("click",function(){n.dispatchEvent(new t.CustomEvent("startedit.comment"))})}),Array.prototype.slice.call(n.querySelectorAll('[data-behavior~="stopedit"], [data-behavior~="stopedit.comment"]')).forEach(function(e){e.closest(".comment")===n&&e.addEventListener("click",function(){n.dispatchEvent(new t.CustomEvent("stopedit.comment"))})}),Array.prototype.slice.call(n.querySelectorAll('[data-behavior~="toggleedit"], [data-behavior~="toggleedit.comment"]')).forEach(function(e){e.closest(".comment")===n&&e.addEventListener("click",function(){n.dispatchEvent(new t.CustomEvent("toggleedit.comment"))})}),Array.prototype.slice.call(n.querySelectorAll('[data-behavior~="startreply"], [data-behavior~="startreply.comment"]')).forEach(function(e){e.closest(".comment")===n&&e.addEventListener("click",function(){n.dispatchEvent(new t.CustomEvent("startreply.comment"))})}),Array.prototype.slice.call(n.querySelectorAll('[data-behavior~="stopreply"], [data-behavior~="stopreply.comment"]')).forEach(function(e){e.closest(".comment")===n&&e.addEventListener("click",function(){n.dispatchEvent(new t.CustomEvent("stopreply.comment"))})}),Array.prototype.slice.call(n.querySelectorAll('[data-behavior~="togglereply"], [data-behavior~="togglereply.comment"]')).forEach(function(e){e.closest(".comment")===n&&e.addEventListener("click",function(){n.dispatchEvent(new t.CustomEvent("togglereply.comment"))})}),Array.prototype.slice.call(n.querySelectorAll('[data-behavior~="like"], [data-behavior~="like.comment"]')).forEach(function(e){e.closest(".comment")===n&&e.addEventListener("click",function(){n.dispatchEvent(new t.CustomEvent("like.comment",{detail:{trigger:e}}))})}),Array.prototype.slice.call(n.querySelectorAll('[data-behavior~="unlike"], [data-behavior~="unlike.comment"]')).forEach(function(e){e.closest(".comment")===n&&e.addEventListener("click",function(){n.dispatchEvent(new t.CustomEvent("unlike.comment",{detail:{trigger:e}}))})}),Array.prototype.slice.call(n.querySelectorAll('[data-behavior~="delete"], [data-behavior~="delete.comment"]')).forEach(function(e){e.closest(".comment")===n&&e.addEventListener("click",function(){n.dispatchEvent(new t.CustomEvent("delete.comment"))})})}var b=n.querySelector('form.comment__edit[data-behavior~="submit.form"]'),w=n.querySelector("textarea.comment__edittext"),x=n.querySelector('form.comment__reply[data-behavior~="submit.form"]'),_=n.querySelector("textarea.comment__replytext"),E=n.querySelector(".comment__replies"),A=n.querySelector(".comment__content"),k=n.querySelector(".comment__likecount");y()},t.Intellum.util.ready(n)}(window.document,window),function(e,t){"use strict";function n(){t.Intellum.forums={},Array.prototype.slice.call(e.querySelectorAll(".comments")).forEach(function(e){e.hasAttribute("id")?t.Intellum.forums[e.id]=new t.Intellum.comments(e):new t.Intellum.updatedrawer(updatedrawerEl)})}t.Intellum=t.Intellum||{},t.Intellum.comments=function(n){function i(e){var n=e.target;N?t.Intellum.confirm.show(N,function(e){e&&r(n)}):r(n)}function r(n){var i=n.getAttribute("data-delete-url");if(i){var r=e.querySelector("meta[name=csrf-token]"),a=r&&r.getAttribute("content"),s=new XMLHttpRequest;s.open("DELETE",i,!0),s.setRequestHeader("X-CSRF-Token",a),s.setRequestHeader("Accept","application/json"),s.onload=function(){s.status>=200&&s.status<400&&o(n);var e=JSON.parse(s.responseText);e.message&&t.Intellum.flashnotice.show(e.message)},s.send()}}function o(e){0===e.querySelectorAll(".comment").length?e.parentNode.removeChild(e):e.dispatchEvent(new t.CustomEvent("clear.comment")),a(-1)}function a(e){k.length>0&&Array.prototype.slice.call(k).forEach(function(t){var i=t.hasAttribute("data-comments-count")?parseInt(t.getAttribute("data-comments-count")):0;i+=e,t.setAttribute("data-comments-count",i);var r=t.getAttribute("data-comments-template");0===i&&t.hasAttribute("data-comments-0-template")?r=t.getAttribute("data-comments-0-template"):1===i&&t.hasAttribute("data-comments-1-template")&&(r=t.getAttribute("data-comments-1-template")),t.textContent=r.replace("${comments}",i),0===i?-1===n.className.indexOf("comments--empty")&&(n.className+=" comments--empty"):i>0&&(n.className=n.className.replace(" comments--empty","")),m(i)})}function s(e){if(t.FormData){e.preventDefault();var n,i=new XMLHttpRequest,r=new t.FormData(_),o=_.getAttribute("action");i.open("POST",o),i.setRequestHeader("Accept","application/json"),i.onload=function(){if(i.status>=200&&i.status<400){var e=JSON.parse(i.responseText);e.success&&null==n&&(l(n=e.html),D=e.lastupdate),e.message&&t.Intellum.flashnotice.show(e.message)}},i.send(r)}}function l(n){if(T){var i=e.createElement("div");i.innerHTML=n.trim();var r=i.firstChild;T.insertBefore(r,T.firstChild),new t.Intellum.comment(r),a(1),c(),u(r)}}function c(){E&&(E.value="")}function u(e){e.addEventListener("delete.comment",i),e.addEventListener("stopreply.comment",d)}function d(e){e.detail&&e.detail.reply&&(u(e.detail.reply),a(1))}function f(){var t=e.querySelector("meta[name=csrf-token]"),i=t&&t.getAttribute("content"),r=new XMLHttpRequest,o=n.getAttribute("data-status-url");o+="&random="+Math.random(),r.open("GET",o,!0),r.setRequestHeader("X-CSRF-Token",i),r.setRequestHeader("Accept","application/json"),r.setRequestHeader("IF_MODIFIED_SINCE",new Date(D).toUTCString()),r.onload=function(){if(r.status>=200&&r.status<300){var e=JSON.parse(r.responseText);if(e.success){var t=e.lastupdate;D&&t!==D&&-1===n.className.indexOf("comments--outdated")&&(n.className+=" comments--outdated"),D=t}}},r.send()}function p(i){for(var r=i.target;r&&r!==t.document&&r!==t.document.body&&!1===r.hasAttribute("data-refresh-url");)r=r.parentNode;if(r&&r.hasAttribute("data-refresh-url")){var o=e.querySelector("meta[name=csrf-token]"),a=o&&o.getAttribute("content"),s=new XMLHttpRequest,l=r.getAttribute("data-refresh-url");return l=l+"&per_page="+L*O,s.open("GET",l,!0),s.setRequestHeader("X-CSRF-Token",a),s.setRequestHeader("Accept","application/json"),s.onload=function(){if(s.status>=200&&s.status<400){var e=JSON.parse(s.responseText);if(e.success){if(h(e.html,e.count),I&&(l=e.refresh_url||l,I.setAttribute("data-refresh-url",l)),S&&(l=e.refresh_url||l,S.setAttribute("data-refresh-url",l)),i.target.hasAttribute("data-sort-label")){var t=i.target.getAttribute("data-sort-label"),r=n.querySelector("[data-sort]");r&&(r.textContent=t,r.focus());var o=i.target.closest("#comments-select-content");o&&Array.prototype.slice.call(o.querySelectorAll('[role="option"')).forEac
9h(function(e){e==i.target?e.setAttribute("aria-selected","true"):e.setAttribute("aria-selected","false")})}v(e.first_level_comments_count-e.visible_count),b(e.visible_count)}e.lastupdate&&(D=e.lastupdate)}},s.send(),i.preventDefault(),!1}}function h(i,r){var o=e.createElement("div");(o.innerHTML=i.trim(),T.parentNode.replaceChild(o.firstChild,T),T=n.querySelector(".comments__list"),Array.prototype.slice.call(T.querySelectorAll(".comment")).forEach(function(e){new t.Intellum.comment(e),u(e)}),k.length>0)&&a(r-(k[0].hasAttribute("data-comments-count")?parseInt(k[0].getAttribute("data-comments-count")):0));n.className=n.className.replace(" comments--outdated","")}function m(e){e>0?"placeholderComments"in E.dataset&&E.setAttribute("placeholder",E.dataset.placeholderComments):"placeholderNocomments"in E.dataset&&E.setAttribute("placeholder",E.dataset.placeholderNocomments)}function g(e){L+=1,p(e)}function v(e){S&&(e<1?S.parentNode.removeChild(S):(S.querySelector("#comments_count").innerHTML=e,C.focus()))}function y(){_&&_.addEventListener("submit",s),E&&A&&A.addEventListener("mousedown",c),Array.prototype.slice.call(n.querySelectorAll('[data-behavior~="refresh.comments"][data-refresh-url]')).forEach(function(e){e.addEventListener("click",function(e){var t=e;setTimeout(function(){p(t)},250)}),e.addEventListener("keydown",function(e){if("Enter"===e.key){var t=e;setTimeout(function(){p(t)},250)}})}),Array.prototype.slice.call(n.querySelectorAll(".comment")).forEac
9h(function(e){u(e)}),n.hasAttribute("data-status-url")&&!n.hasAttribute("hidden")&&f()}function b(e){var t=n.querySelector("#live_announcement_comments");t.innerHTML=t.innerHTML.replace(/\d+/g,e)}function w(){var e=C.parentNode;e.removeChild(C),e.classList.add("course__commentscontainer--expanded"),n.removeAttribute("hidden"),y(),b(10)}function x(){C.addEventListener("click",function(e){e.preventDefault(),w()}),"true"==n.getAttribute("data-scroll-into-view")&&(w(),n.scrollIntoView()),S&&S.addEventListener("click",function(e){g(e)})}var _=n.querySelector('form.comments__newcomment[data-behavior~="submit.form"]'),E=n.querySelector(".comments__newtext"),A=(n.querySelector(".comments__newsubmit"),n.querySelector(".comments__newcancel")),k=e.querySelectorAll("[data-comments-count]"),T=n.querySelector(".comments__list"),I=n.querySelector('[data-behavior~="masterrefresh.comments"]'),C=e.querySelector(".course__comments__showbutton"),S=e.querySelector(".course__comments__morebutton"),D=0,L=1,O=10,N=n.querySelector("#comments-confirm-delete");return x(),{checkForUpdates:f}},t.Intellum.util.ready(n)}(window.document,window),window.fireworks=function(){function e(e){c=(l=e).getContext("2d"),(new Date).getTime(),l.width=d,l.height=f,d=l.width=window.innerWidth,f=l.height=document.body.offsetHeight,p=f/2,m=d/2}function t(){this.reset()}function n(e,t,n,i){this.x=e,this.y=t,this.z=n,this.startX=this.x,this.startY=this.y,this.startZ=this.z,this.ox=this.x,this.oy=this.y,this.oz=this.z,this.xPos=0,this.yPos=0,this.vx=10*Math.random()-5,this.vy=10*Math.random()-5,this.vz=10*Math.random()-5,this.color=[i.r,i.g,i.b],this.render=!0,this.size=Math.round(1+1*Math.random())}function r(){o(),Math.sin(y+=.01),Math.sin(y),v=Math.sin(y);for(var e=c.createImageData(d,f),t=0;t<30;t++)u[t]&&(u[t].update(),u[t].render(e));c.putImageData(e,0,0),requestAnimationFrame(r)}function o(){(b+=.6)>100&&(b=0),x.r=~~(127*Math.sin(.3*b+0)+128),x.g=~~(127*Math.sin(.3*b+2)+128),x.b=~~(127*Math.sin(.3*b+4)+128)}function a(){u=[];for(var e=0;e<30;e++)o(),u.push(new t);r()}function s(){requestAnimationFrame(function(){if(c.clearRect(0,0,l.width,l.height),u.length)for(var e=0;e<30;e++)u[e]&&(u[e].particles=[],u[e]=null)})}var l,c,u,d=0,f=0,p=0,m=0,g=300,v=180,y=0,b=0,x={r:255,g:0,b:0};return t.prototype.reset=function(){var e=200,t=400*Math.random()-200,i=400*Math.random()-200,r=800*Math.random()-200;this.x=t||0,this.y=i||0,this.z=r||0;Math.random(),Math.random(),Math.random();this.particles=[];for(var o=0;o<e;o++)this.particles.push(new n(this.x,this.y,this.z,{r:x.r,g:x.g,b:x.b}))},t.prototype.update=function(){var e=this.particles.length;this.particles.sort(function(e,t){return t.z-e.z});for(var t=0;t<e;t++)this.particles[t].update();this.particles.length<=0&&this.reset()},t.prototype.render=function(e){var t=e.data;for(i=0;i<this.particles.length;i++){var n=this.particles[i],r=Math.sqrt((n.x-n.ox)*(n.x-n.ox)+(n.y-n.oy)*(n.y-n.oy)+(n.z-n.oz)*(n.z-n.oz));if(r>255&&(n.render=!1,this.particles.splice(i,1),this.particles.length--),n.render&&n.xPos<d&&n.xPos>0&&n.yPos>0&&n.yPos<f)for(w=0;w<n.size;w++)for(h=0;h<n.size;h++)n.xPos+w<d&&n.xPos+w>0&&n.yPos+h>0&&n.yPos+h<f&&(pData=4*(~~(n.xPos+w)+~~(n.yPos+h)*d),t[pData]=n.color[0],t[pData+1]=n.color[1],t[pData+2]=n.color[2],t[pData+3]=255-r)}},n.prototype.rotate=function(){var e=this.startX*Math.cos(v)-this.startY*Math.sin(v),t=this.startY*Math.cos(v)+this.startX*Math.sin(v);this.x=e,this.y=t},n.prototype.update=function(){if(this.x=this.startX+=this.vx,this.y=this.startY+=this.vy,this.z=this.startZ-=this.vz,this.rotate(),this.vy+=.1,this.x+=this.vx,this.y+=this.vy,this.z-=this.vz,this.render=!1,this.z>-g){var e=g/(g+this.z);this.size=2*e,this.xPos=m+this.x*e,this.yPos=p+this.y*e,this.render=!0}},{initialise:e,start:a,stop:s}}(),function(e,t){"use strict";t.Intellum=t.Intellum||{},t.Intellum.fireworks=function(){function n(){var n=e.getElementById("fireworksCanvas");t.fireworks&&n&&(t.fireworks.initialise(n),t.fireworks.start())}function i(){t.fireworks&&t.fireworks.stop()}return{start:n,stop:i}}()}(window.document,window),function(e,t){"use strict";function n(){e.body.style.overflow="hidden"}function i(){e.body.style.overflow=""}
9function r(){i(),Array.prototype.slice.call(s).forEach(function(e){e.dispatchEvent(new t.CustomEvent("collapse.sidemenu"))})}function o(){if(a=e.querySelector(".header"),s=e.querySelectorAll(".sidemenu"),a&&s.length){var o=e.querySelector(".header__btn--mobile"),l=!0;o&&"none"==t.getComputedStyle(o).getPropertyValue("display")&&(l=!1),l&&a.addEventListener("showsearch.header",r)}Array.prototype.slice.call(s).forEach(function(e){e.addEventListener("scrollstart.sidemenu",n),e.addEventListener("scrollend.sidemenu",i)})}var a,s;t.Intellum.util.ready(o)}(window.document,window),function(e,t){function n(e,n){function i(e){s=e-a,t.scrollTo(0,r(s,l,c,u)),s<u?t.requestAnimationFrame(i):o()}function r(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function o(){t.scrollTo(0,l+c),e.focus(),d&&e.removeAttribute("tabIndex")}n=n||0;var a,s,l=t.pageYOffset,c=e.getBoundingClientRect().top-n,u=400,d=!1;/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||e.hasAttribute("tabIndex")||(e.setAttribute("tabIndex","-1"),d=!0),t.requestAnimationFrame(function(e){a=e,i(e)})}function i(){"scrollBehavior"in e.documentElement.style||t.requestAnimationFrame&&Array.prototype.slice.call(e.querySelectorAll('a[href^="#"][data-behavior~="scroll"]')).forEach(function(e){new t.Intellum.smoothscroll.link(e)})}t.Intellum=t.Intellum||{},t.Intellum.smoothscroll=(link=function(t){t.addEventListener("click",function(i){i.preventDefault(),n(e.getElementById(i.target.hash.substring(1)),+t.getAttribute("data-scroll-offset"))})},{link:link,scrollTo:n}),t.Intellum.util.ready(i)}(window.document,window),$(function(){function e(){("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&$("a","[onclick]").on("touchend",function(e){return $(this).trigger("click"),e.preventDefault(),!1})}"object"==typeof Foundation&&$(document).foundation(),$(document).on("click",".double_click_protection",function(){var e=$
9(this);e.attr("data-double-click-protected",!0),e.hasClass("keep_double_click_protection")||setTimeout(function(){e.removeAttr("data-double-click-protected")},2e3)}),$(document).on("click",".double_click_protection[data-double-click-protected]",function(e){e.preventDefault()}),e(),$("#change_adobe_connect_password").click(function(e){e.preventDefault(),$("#adobe_connect_authentication_password").prop("disabled",!1),$("#adobe_connect_authentication_password").show(),$("#change_adobe_connect_password").hide(),$("#cancel_change_adobe_connect_password").show()}),$("#cancel_change_adobe_connect_password").click(function(e){e.preventDefault(),$("#adobe_connect_authentication_password").prop("disabled",!0),$("#adobe_connect_authentication_password").hide(),$("#change_adobe_connect_password").show(),$("#cancel_change_adobe_connect_password").hide()});var t=!1;$('[data-start-enrollment="true"]').on("click",function(){t||($.post("/student/enrollments/mark_as_started/"+$(this).data("enrollment-id")),t=!0)});var n=function(e,n){$(e).find("a").on("click",function(){t||($.post("/student/enrollments/mark_as_started/"+n),t=!0)})};$('[data-start-enrollment-iframe="true"]').each(function(){var e=$
9(this).data("enrollment-id");embedly("on","card.rendered",function(t){n($(t).contents(),e)})})}),function(e){var t,n,i,r,o,a,s,l=(r=function(){t=e("#curation-add-activity-to-path-search"),n=e("#curation-add-activity-to-path-results"),i=e("#curation-selected-path-id"),t.length&&(o(),a(),s())},o=function(){t.on("keydown",function(e){if(13===e.keyCode)return e.preventDefault(),e.stopPropagation(),!1}),t.on("keyup",function(){var i=t.val(),r=t.data("search-path");e.get(r,{q:i}).done(function(t){var i="";t.length?(i='<p class="publiccourses-selectpathmessage">'+n.data("instruction-text")+"</p>",i+='<div class="publiccourses-selectpathlist">',t.forEach(function(e){i+='<span class="tagbutton tagbutton--fullwidth" data-path-id="'+e[0]+'">'+e[1]+"</span>"}),i+="</div>"):i+=e("#add-activity-to-existing-path-no-results").html(),n.html(i)})})},a=function(){n.on("click",".tagbutton",function(){
10var r=e(this);t.val(r.text()),i.val(r.data("path-id")),n.html("")})},s=function(){n.on("click","[data-create-new-path-trigger]",function(){e("[data-add-activity-to-new-path-dialog-trigger]").first().click()})},{init:r});Intellum.util.ready(l.init)}(jQuery),function(e){var t,n,i,r,o=(i=function(){t=e("#new-path-from-public-activity-form"),n=e("#add-public-activity-to-path-form"),[t,n].forEach(function(e){e.length&&r(e)})},r=function(t){t.on("ajax:success",function(n,i){var r,o,a,s=t.parents(".dialog__content").find("[data-success-message]"),l=e("[data-path-added-link]",s);if(i.course?(r=i.course.id,o=i.course.name):(r=i.id,o=i.name),a="/student/path/"+r,l.length)l.attr("href",a),l.text(o);else{var c="<a href="+a+' class="curation__dialoglink" data-path-added-link>'+o+"</a>";s.html(s.html().replace("{{PATHNAME}}",c))}s.show(),t.hide(),t.parents(".dialog")[0].addEventListener("hide.dialog",function(){e("[data-reset-on-dialog-show]",t).val(""),e("#curation-add-activity-to-path-results").html(""),t.show(),s.hide()})}),t.on("ajax:error",function(){Intellum.flashnotice.show(t.data("error-msg"),"warning")})},{init:i});Intellum.util.ready(o.init)}(jQuery),$(document).ready(function(){var e=document.querySelector("#user_picture_attributes_target"),t=document.querySelector("#selected-avatar");null!=e&&null!=t&&e.addEventListener("change",function(e){document.querySelector("#selected-avatar").setAttribute("src",e.target.value)})}),$(function(){if(!(0==$(".video-wrapper").length||$('[data-video-events-enabled="false"]').length>0)){var e,t=$("#vimeo-player"),n=$("#youtube-player"),i=$("#facebook-player"),r=$(".video-wrapper").data("enrollment-id"),o=$(".video-wrapper").data("enrollment-started").length>0,a=function(){return $("#course-completed").length>0};if(r&&t.length>0&&!a()){var s=$f(t[0]),l=function(){s.removeEvent("playProgress")};s.addEvent("ready",function(){s.addEvent("playProgress",function(e){var n=e.duration,i=e.seconds,r=n-i,a=1==t.data().videoAutoCompletes?30:0;o||h(),n<=60&&(a=1==t.data().videoAutoCompletes?6:0),a>0&&r<a&&p(i,l)})})}if(r&&n.length>0&&!a()){var c=document.createElement("script");c.src="https://www.youtube.com/iframe_api";var u=document.getElementsByTagName("script")[0];u.parentNode.insertBefore(c,u);var d=null,f=function(){clearInterval(d)};window.onYouTubeIframeAPIReady=function(){s=new YT.Player("youtube-player",{events:{onReady:function(){d=setInterval(function(){var e=s.getDuration(),t=s.getCurrentTime(),i=e-t,r=1==n.data().videoAutoCompletes?30:0;o||h(),0!=e&&e<=60&&(r=1==n.data().videoAutoCompletes?6:0),0!=e&&r>0&&i<r&&p(t,f)},3e3)}}})}}r&&i.length>0&&!a()&&(window.fbCompletionChecker=(e=function(e){var t=e.detail,n=null;t.subscribe("startedPlaying",function(){n=setInterval(function(){var n=t.getDuration(),r=t.getCurrentPosition(),a=n-r,s=0;o||h(),i.data().videoAutoCompletes&&(s=n>60?30:6),s>0&&a<s&&p(r,e)},3e3);var e=function(){clearInterval(n)}})},{init:e}),document.addEventListener("init.fbvideoplayer",window.fbCompletionChecker.init));var p=function(e,t){r&&(data={enrollment_id:r,time_watched:e},$.post("/student/video_activity_completions",data).done(function(){t(),$("#confirm-enrollment").addClass("iconbutton--imageonly iconbutton--static").removeClass("iconbutton--textonly"),$("#drop-enrollment").hide();
10var e=$(".course");e.length&&e.trigger("course_complete")}))},h=function(){r&&($.post("/student/enrollments/mark_as_started/"+r),o=!0)}}}),function(){var e=$("#activity-sessions-list-filter-form");e.on("change","select, input",function(){e.submit()}),e.on("ajax:success",function(e,t){$("#activity-sessions-list").replaceWith(t),window.Intellum.util.reinitialize.trigger()})}(),function(){var e="catcat_login_modal_seen",t=document.getElementById("public-login-dialog"),n=document.getElementById("catcat-login-dialog"),i=sessionStorage.getItem(e),r=function(){!i&&t.hasAttribute("aria-hidden")&&"true"===t.getAttribute("aria-hidden")&&(n.classList.add("dialog--previsible"),n.classList.add("dialog--visible"),sessionStorage.setItem(e,!0))};if(n){var o={delay:9e4};window.setTimeout(function(){r()},o.delay)}}(),function(){var e,t,n;window.Intellum=window.Intellum||{},window.Intellum.pageActivityCompletionTracker=(e=function(){var e;if(document.querySelector("#course_page")){if(document.querySelectorAll(".course__completebutton[data-requires-external-action-to-complete]").length>0)return;e=document.querySelectorAll(".pgcomponent[data-completion-url]"),t(e)}},t=function(e){var t;t=new IntersectionObserver(n,{root:null,rootMargin:"0px",threshold:.01}),Array.prototype.forEach.call(e,function(e){t.observe(e)})},n=function(e){Array.prototype.forEach.call(e,function(e){var t=e.target,n={};e.isIntersecting&&"false"==t.dataset.alreadyCompleted&&t.dataset.completionUrl&&(t.dataset.alreadyCompleted=!0,$.post(t.dataset.completionUrl,n,function(e){if(e&&"passed"==e.enrollment_status){var t=$(".page"),n=$("header.page__header");n&&e.enrollment_msg&&n.prepend($(e.enrollment_msg)),t.length&&t.trigger("course_complete")}}))})},{init:e}),Intellum.util.ready(Intellum.pageActivityCompletionTracker.init)}(),function(){"use strict";window.Neeman=window.Neeman||{},window.Neeman.util=window.Neeman.util||{};var e=!1,t=[];window.Neeman.util.ready=function(n){function i(){document.removeEventListener("DOMContentLoaded",i),window.removeEventListener("load",i),e=!1,null!==document.querySelector(".neeman")&&(t.forEach(function(e){e()}),t=[])}"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?null!==document.querySelector("html.neeman")&&window.setTimeout(n,0):(t.push(n),e||(e=!0,document.addEventListener("DOMContentLoaded",i),window.addEventListener("load",i)))},window.Neeman.util.sendMessage=function(e,t){if(void 0!==window.webkit&&null!==window.webkit&&window.webkit.messageHandlers){var n=window.webkit.messageHandlers[e];void 0!==n&&n.postMessage(t)}else window.NeemanAndroid&&"function"==typeof window.NeemanAndroid.postMessage&&window.NeemanAndroid.postMessage(JSON.stringify({handler:e,message:t}))},window.Neeman.util.toggleClass=function(e,t){var n=document.querySelectorAll(e),i=document.querySelectorAll(e+"."+t).length;Array.prototype.slice.call(n).forEach(function(e){i?e.classList.remove(t):e.classList.add(t)})}}(window.document,window),function(e,t){"use strict";t.Neeman.util.ready(function(){var t=e.querySelectorAll("a[data-activity-type]");Array.prototype.slice.call(t).forEach(function(e){-1==e.href.indexOf("#")&&(e.search+=(e.search.match(/\?.*/)?"&":"?")+"neeman-activity-type="+e.dataset.activityType)})})}(window.document,window),function(e,t){"use strict";t.Neeman.showPathNav=function(){var t=e.querySelector('[data-neeman-class="pathdrawer"]');t&&(t.classList.add("pathdrawer--expanded"),t.setAttribute("aria-expanded","true"))},t.Neeman.hidePathNav=function(){var t=e.querySelector('[data-neeman-class="pathdrawer"]');t&&(t.classList.remove("pathdrawer--expanded"),t.setAttribute("aria-expanded","false"))}}(window.document,window),$(document).ready(function(){$("body.body--logged-out .authentication-required-smart-link").on("click",function(e){var t=$(this).attr("href");null!=t&&(e.preventDefault(),$.ajax({url:"/student/authentication/set_unauthenticated_post_authentication_destination",type:"POST",data:{authenticity_token:$("meta[name='csrf-token']").attr("content"),destination_url:t}}).done(function(){$("button.button--appheader").trigger("click")}))})}),function(){function e(){return window.location!==window.parent.location}function t(){"true"!=Cookies.get("is_exceed_embedded_widget")&&e()&&(Cookies.set("is_exceed_embedded_widget","true"),"true"==Cookies.get("is_exceed_embedded_widget")&&location.reload())}function n(){t()}n()}(),function(e,t,n){"use strict";n.intellum=n.intellum||{},n.intellum.radioswitch=function(e,t){var i=this,r={};i.settings=n.extend({},r,t);var o=n(e),a=null,s=function(e){null!==a&&c(a),l(n(e.target))},l=function(e){var t=n(e.data("reveal-selector")),i=t.find("input");a=e,i.each(function(e,t){n(t).attr("name",n(t).data("name"))}),t.show()},c=function(e){var t=n(e.data("reveal-selector")),i=t.find("input");t.hide(),i.each(function(e,t){n(t).data("name",n(t).attr("name")),n(t).attr("name",null)})};i.init=function(){o.find("input[type=radio]").each(function(e,t){var i=n(t);i.is(":checked")?l(i):c(i)}
10).on("click",s)},i.init()},n.fn.intellum_radioswitch=function(e){return this.each(function(){void 0===n(this).data("intellum.radioswitch")&&n(this).data("intellum.radioswitch",new n.intellum.radioswitch(this,e))})},n(function(){n(".radioswitch").intellum_radioswitch()})}(document,window,jQuery),function(e,t,n){var i=function(){function i(){h.length&&h.attr("disabled","disabled").addClass("button--disabled")}function r(){h.removeAttr("disabled").removeClass("button--disabled")}function o(){var i,r=h.attr("data-confirm-dialog-id");h.length&&h.text(h.attr("data-completed-text")),t.dispatchEvent(new CustomEvent("course.complete")),n('[data-rewardtype="certificate"]').length?t.location.reload(!0):(a(),c(),y&&(y.classList.contains("activitynotification--avoidCompleted")||u()),f(),p(),v=!0,r&&(i=e.getElementById(r))&&i.dispatchEvent(new t.CustomEvent("hide.dialog")))}function a(){var e=n("#pathdrawer");if(!e.length)return l();var t,i,r,o,a=e.data("current-enrollment-id"),c=n('li[data-enrollment-id="'+a+'"]',e),u=c.find(".pathmenu__itemmarker").first(),d=u.parent().parent().data("shape"),f=null!=d?"_"+d:"",p=c.closest("section.pathmenu__section").next("section.pathmenu__section");if("facilitator"!=c.attr("data-userrole")&&(u.empty(),u.append(n("#mark_as_complete_icon"+f)),c.attr("data-status","completed")),0==(t=c.next(".pathmenu__sectionitem")).length&&(t=p.find(".pathmenu__sectionitem").first()),t.length){if(o=t.data("activity-url"),i=t.data("isLocked"),r=t.data("isLockedByDate"),i&&!r){t.html('<a href="'+o+'" class="courselist__link">'+t.html()+"</a>"),s(),t.removeData("status"),t.removeAttr("data-status");var h=t.data("shape");null!=h?t.find(".pathmenu__markericon").replaceWith(n("#"+h+"_icon")):t.find(".pathmenu__markericon").remove()}}else l()}function s(){var e=n(".coursepage__navlink--next");nextItemUrl=e.data("activity-url"),e.find(".coursepage__navicon--locked").first().remove(),e.find(".coursepage__navicon--hidden").first().show(),e.replaceWith(n.parseHTML('<a href="'+nextItemUrl+'" class="coursepage__navlink coursepage__navlink--next">'+e.html()+"</a>"))}function l(){var e=n(".coursepage__navlink--next"),t=e.data("rerender-url");if(!t)return!1;n.get(t,function(t){e.parent().replaceWith(t)})}function c(){var t=e.getElementById("activity-rating");t&&t.dispatchEvent(new CustomEvent("enable.rating"))}function u(){y&&(y.classList.add("activitynotification--active"),y.setAttribute("role","alert"),y.setAttribute("aria-hidden","false")),t.Neeman.util.sendMessage("didUpdateCompletedState",!0),d()}function d(){setTimeout(function(){y.classList.remove("activitynotification--active"),y.setAttribute("aria-hidden","true")},6e3),b.addEventListener("click",function(){y.classList.remove("activitynotification--active"),y.setAttribute("aria-hidden","true")})}function f(){var e=n("#drop_session_btn");e.length&&e.remove()}function p(){var e=n("#find_another_time_btn");e.length&&e.remove()}var h=n("#mark_as_complete"),m=n(".course"),g=n(".page"),v=!1,y=e.getElementById("activitynotification"),b=e.querySelector(".activitynotification__close");m.on("course_autocomplete",function(){var e=function(){var e=t.IntellumDataLayer.enrollment.id,i="/enrollments/autocomplete_video_message/"+e;e&&n.get(i).done(function(e){if(e&&"passed"==e.enrollment_status){var t=n("header.page__header, header.course__headercontainer");t&&e.enrollment_msg&&t.prepend(n(e.enrollment_msg))}})};i(),o(),t.dispatchEvent(new CustomEvent("course.complete")),e()}),m.on("course_complete",function(){i(),o()}),g.on("course_complete",function(){o()}),m.on("rerender_next_link",function(){l()}),h.length&&h.on("click",function(a){var s,l,c=h.attr("data-confirm-dialog-id"),u=h.attr("data-confirm-accept");i();var d=function(){u?n.post(u).done(function(e){if(e&&"passed"==e.enrollment_status){var t=n("header.page__header, header.course__headercontainer");t&&e.enrollment_msg&&t.prepend(n(e.enrollment_msg))}o()}):o()};c&&(s=e.getElementById(c))?(a.preventDefault(),l=n("#confirm_activity_completion_button"),s.dispatchEvent(new t.CustomEvent("show.dialog",{detail:{target:null}})),l.off("click").on("click",function(){l.removeClass("button--primary").addClass("button--disabled").attr("disabled","true"),d()}),s.addEventListener("hide.dialog",function(){v||r()})):h.is("button")&&d()}),y&&y.classList.contains("activitynotification--completed")&&(t.dispatchEvent(new CustomEvent("course.complete")),u())};Intellum.util.ready(i)}(document,window,jQuery),function(e,t,n){n(function(){n(".librarylist__item[data-href]").on("click",function(e){e.stopPropagation(),n(this).find("a").first()[0].click()}).find("a, button").on("click",function(e){e.stopPropagation()})})}(document,window,jQuery),function(e,t,n){n(function(){var e=n("#search-input"),i=n(".filterbar__filtergroup"),r=function(){var r=e.data("search-path")+"?search="+encodeURIComponent(e.val().trim());$filters=i.find("[data-filter]"),$filters.each(function(){r+="&"+n(this).attr("data-filter")+"=",filterValue=n(this).find(".dropdown__listitem--selected").first().attr("data-value"),r+=filterValue});var o=/locale=[^&]*/;return!o.test(r)&&location.search&&o.test(location.search)&&(r+="&"+o.exec(location.search)[0]),-1==r.indexOf("content_type=")&&(r+=getQueryStringFromKeys(["content_type"])),-1==r.indexOf("course_type=")&&(r+=getQueryStringFromKeys(["course_type"])),r+=getQueryStringFromKeys(["category_ids"]),t.location=r,!1};
10e.on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),n(this).prop("disabled",!0),r())}),i.find(".dropdown__listitem[data-value]").on("click",function(){n(this).parents(".dropdown__content--filter").find(".dropdown__listitem[data-value]").each(function(){n(this).removeClass("dropdown__listitem--selected")}),n(this).addClass("dropdown__listitem--selected"),n(this).parents(".dropdown").trigger("hide"),r()})})}(document,window,jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(e){var t,n,i,r,o,a,s="Close",l="BeforeClose",c="AfterClose",u="BeforeAppend",d="MarkupParse",f="Open",p="Change",h="mfp",m="."+h,g="mfp-ready",v="mfp-removing",y="mfp-prevent-close",b=function(){},w=!!window.jQuery,x=e(window),_=function(e,n){t.ev.on(h+e+m,n)},E=function(t,n,i,r){var o=document.createElement("div");return o.className="mfp-"+t,i&&(o.innerHTML=i),r?n&&n.appendChild(o):(o=e(o),n&&o.appendTo(n)),o},A=function(n,i){t.ev.triggerHandler(h+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},k=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},T=function(){e.magnificPopup.instance||((t=new b).init(),e.magnificPopup.instance=t)},I=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};b.prototype={constructor:b,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=I(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var r;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(r=0;r<s.length;r++)if((a=s[r]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=r;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],o="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=E("bg").on("click"+m,function(){t.close()}),t.wrap=E("wrap").attr("tabindex",-1).on("click"+m,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=E("container",t.wrap)),t.contentContainer=E("content"),t.st.preloader&&(t.preloader=E("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(r=0;r<l.length;r++){var c=l[r];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}A("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(_(d,function(e,t,n,i){n.close_replaceWith=k(i.type)}),o+=" mfp-close-btn-in"):t.wrap.append(k())),t.st.alignTop&&(o+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:x.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+m,function(e){27===e.keyCode&&t.close()}),x.on("resize"+m,function(){t.updateSize()}),t.st.closeOnContentClick||(o+=" mfp-auto-cursor"),o&&t.wrap.addClass(o);var u=t.wH=x.height(),p={};if(t.fixedContentPos&&t._hasScrollBar(u)){var h=t._getScrollbarSize();h&&(p.marginRight=h)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):p.overflow="hidden");var v=t.st.mainClass;return t.isIE7&&(v+=" mfp-ie7"),v&&t._addClassToMFP(v),t.updateItemHTML(),A("BuildControls"),e("html").css(p),t.bgOverlay.add(t.wrap).prependTo(t.st.prepe
10ndTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(g),t._setFocus()):t.bgOverlay.addClass(g),i.on("focusin"+m,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(u),A(f),n}t.updateItemHTML()},close:function(){t.isOpen&&(A(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(v),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){A(s);var n=v+" "+g+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var r={marginRight:""};t.isIE7?e("body, html").css("overflow",""):r.overflow="",e("html").css(r)}i.off("keyup"+m+" focusin"+m),t.ev.off(m),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),t.st.showCloseBtn&&(!t.st.closeBtnInside||!0===t.currTemplate[t.currItem.type])&&t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,A(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||x.height();t.fixedContentPos||t.wrap.css("height",t.wH),A("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(A("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var o=!!t.st[i]&&t.st[i].markup;A("FirstMarkupParse",o),t.currTemplate[i]=!o||e(o)}r&&r!==n.type&&t.container.removeClass("mfp-"+r+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,A(p,n),r=n.type,t.container.prepend(t.contentContainer),A("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(k()):t.content=e:t.content="",A(u),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,r=t.items[n];if(r.tagName?r={el:e(r)}:(i=r.type,r={data:r,src:r.src}),r.el){for(var o=t.types,a=0;a<o.length;a++)if(r.el.hasClass("mfp-"+o[a])){i=o[a];break}r.src=r.el.attr("data-mfp-src"),r.src||(r.src=r.el.attr("href"))}return r.type=i||t.st.type||"inline",r.index=n,r.parsed=!0,t.items[n]=r,A("ElementParse",r),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var r="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(r).on(r,i)):(n.isObj=!1,n.delegate?e.off(r).on(r,n.delegate,i):(n.items=e,e.off(r).on(r,i)))},_openClick:function(n,i,r){if((void 0!==r.midClick?r.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var o=void 0!==r.disableOn?r.disableOn:e.magnificPopup.defaults.disableOn;if(o)if(e.isFunction(o)){if(!o.call(t))return!0}else if(x.width()<o)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),r.el=e(n.mfpEl),r.delegate&&(r.items=i.find(r.delegate)),t.open(r)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),!i&&"loading"===e&&(i=t.st.tLoading);var r={status:e,text:i};A("UpdateStatus",r),e=r.status,i=r.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(y)){var i=t.st.closeOnContentClick,r=t.st.closeOnBgClick;if(i&&r)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(r&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||x.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var r;i.data&&(n=e.extend(i.data,n)),A(d,[t,n,i]),e.each(n,function(n,i){if
10(void 0===i||!1===i)return!0;if((r=n.split("_")).length>1){var o=t.find(m+"-"+r[0]);if(o.length>0){var a=r[1];"replaceWith"===a?o[0]!==i[0]&&o.replaceWith(i):"img"===a?o.is("img")?o.attr("src",i):o.replaceWith(e("<img>").attr("src",i).attr("class",o.attr("class"))):o.attr(r[1],i)}}else t.find(m+"-"+n).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:b.prototype,modules:[],open:function(t,n){return T(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){T();var i=e(this);if("string"==typeof n)if("open"===n){var r,o=w?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?r=o.items[a]:(r=i,o.delegate&&(r=r.find(o.delegate)),r=r.eq(a)),t._openClick({mfpEl:r},i,o)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),w?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var C,S,D,L="inline",O=function(){D&&(S.after(D.addClass(C)).detach(),D=null)};e.magnificPopup.registerModule(L,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(L),_(s+"."+L,function(){O()})},getInline:function(n,i){if(O(),n.src){var r=t.st.inline,o=e(n.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(S||(C=r.hiddenClass,S=E(C),C="mfp-"+C),D=o.after(S).detach().removeClass(C)),t.updateStatus("ready")}else t.updateStatus("error",r.tNotFound),o=e("<div>");return n.inlineElement=o,o}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var N,q="ajax",j=function(){N&&e(document.body).removeClass(N)},M=function(){j(),t.req&&t.req.abort()};e.magnificPopup.registerModule(q,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(q),N=t.st.ajax.cursor,_(s+"."+q,M),_("BeforeChange."+q,M)},getAjax:function(n){N&&e(document.body).addClass(N),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,r,o){var a={data:i,xhr:o};A("ParseAjax",a),t.appendContent(e(a.data),q),n.finished=!0,j(),t._setFocus(),setTimeout(function(){t.wrap.addClass(g)},16),t.updateStatus("ready"),A("AjaxContentAdded")},error:function(){j(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var R,P=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;
10var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),_(f+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),_(s+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),x.off("resize"+m)}),_("Resize"+i,t.resizeImage),t.isLowIE&&_("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,R&&clearInterval(R),e.isCheckingImgSize=!1,A("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],r=function(o){R&&clearInterval(R),R=setInterval(function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(R),3===++n?r(10):40===n?r(50):100===n&&r(500))},o)};r(1)},getImage:function(n,i){var r=0,o=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,A("ImageLoadComplete")):++r<200?setTimeout(o,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",o).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:P(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(R&&clearInterval(R),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var H,F=function(){return void 0===H&&(H=void 0!==document.createElement("p").style.MozTransform),H};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var r,o,a=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,r={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return r["-webkit-"+o]=r["-moz-"+o]=r["-o-"+o]=r[o]=i,t.css(r),t},u=function(){t.content.css("visibility","visible")};_("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(r),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void u();(o=c(e)).css(t._getOffset()),t.wrap.append(o),r=setTimeout(function(){o.css(t._getOffset(!0)),r=setTimeout(function(){u(),setTimeout(function(){o.remove(),e=o=null,A("ZoomAnimationEnded")},16)},a)},16)}}),_(l+i,function(){if(t._allowZoom()){if(clearTimeout(r),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;o=c(e)}o.css(t._getOffset(!0)),t.wrap.append(o),t.content.css("visibility","hidden"),setTimeout(function(){o.css(t._getOffset())},16)}}),_(s+i,function(){t._allowZoom()&&(u(),o&&o.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,r=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),o=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);r.top-=e(window).scrollTop()-o;var s={width:i.width(),height:(w?i.innerHeight():i[0].offsetHeight)-a-o};return F()?s["-moz-transform"]=s.transform="translate("+r.left+"px,"+r.top+"px)":(s.left=r.left,s.top=r.top),s}}});
10var B="iframe",$="//about:blank",z=function(e){if(t.currTemplate[B]){var n=t.currTemplate[B].find("iframe");n.length&&(e||(n[0].src=$),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(B,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(B),_("BeforeChange",function(e,t,n){t!==n&&(t===B?z():n===B&&z(!0))}),_(s+"."+B,function(){z()})},getIframe:function(n,i){var r=n.src,o=t.st.iframe;e.each(o.patterns,function(){if(r.indexOf(this.index)>-1)return this.id&&(r="string"==typeof this.id?r.substr(r.lastIndexOf(this.id)+this.id.length,r.length):this.id.call(this,r)),r=this.src.replace("%id%",r),!1});var a={};return o.srcAction&&(a[o.srcAction]=r),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var W=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},U=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,r=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;o+=" mfp-gallery",_(f+r,function(){n.navigateByImgClick&&t.wrap.on("click"+r,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+r,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}
10),_("UpdateStatus"+r,function(e,n){n.text&&(n.text=U(n.text,t.currItem.index,t.items.length))}),_(d+r,function(e,i,r,o){var a=t.items.length;r.counter=a>1?U(n.tCounter,o.index,a):""}),_("BuildControls"+r,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,r=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(y),o=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(y);r.click(function(){t.prev()}),o.click(function(){t.next()}),t.container.append(r.add(o))}}),_(p+r,function(){
11t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),_(s+r,function(){i.off(r),t.wrap.off("click"+r),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=W(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=W(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),r=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?r:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:r);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=W(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),A("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,A("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var X="retina";e.magnificPopup.registerModule(X,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(_("ImageHasSize."+X,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),_("ElementParse."+X,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),T()}),function(e){"use strict";var t=function(){e.Intellum=e.Intellum||{},e.Intellum.util=e.Intellum.util||{},e.Intellum.util.templateStrings={loading:'<span class="loading" role="img" aria-label="'+Intellum.i18nStrings.loading+'"><svg id="loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66 66"><circle class="path" fill="none" stroke="#393b3d" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle></svg></span>'}};e.Intellum.util.ready(t)}(window),function(e,t){"use strict";function n(){Array.prototype.slice.call(e.querySelectorAll(".actionbar")).forEac
11h(function(e){new t.Intellum.actionbar(e)})}t.Intellum=t.Intellum||{},t.Intellum.actionbar=function(n){function i(){var i=e.getElementById("main").offsetTop,r=n.offsetTop,o=e.getElementById("main").clientHeight+i,a=(n.clientHeight,"actionbar--stuck"),s=function(){var e=n.parentElement,r=e.offsetLeft,o=t.innerWidth-r-e.offsetWidth;n.style.left=r+"px",n.style.right=o+"px",n.style.top=i+"px",n.clientHeight},l=function(){var e=t.scrollY,s=o-e>t.innerHeight;e>=r-i&&s?n.classList.add(a):n.classList.remove(a)};s(),Intellum.util.resized.addHandler(s),t.addEventListener("scroll",l),l()}function r(e){Array.prototype.slice.call(e).forEach(function(e){e.setAttribute("aria-live","polite")})}function o(e,t,n){Array.prototype.slice.call(t).forEach(function(e){var t=e.dataset.actionbarActionProperty,i=e.dataset.actionbarActionTemplate;1===n.length?(e.setAttribute(t,i.replace(encodeURIComponent("{CHECKED_ITEM_ID_PLACEHOLDER}"),n[0].value)),e.classList.remove("button--disabled")):(e.removeAttribute(t),e.classList.add("button--disabled"))})}function a(e,t,n){Array.prototype.slice.call(t).forEach(function(e){n.length?e.style.display="block":e.style.display="none"})}function s(e,t,n){e.addEventListener("click",function(i){var r=i.target.getAttribute("type");"checkbox"!==r&&"radio"!==r||setTimeout(function(){var i=e.querySelectorAll("input:checked");a(e,t,i),o(e,n,i)})})}function l(e){var t=n.querySelectorAll('[data-actionbar-section="toggle"]'),i=n.querySelectorAll("[data-actionbar-action-property][data-actionbar-action-template]"),l=e.querySelectorAll("input:checked");r(t),a(e,t,l),o(e,i,l),s(e,t,i)}function c(){var t=e.getElementById(n.dataset.actionbarFor);t&&l(t),n.classList.contains("actionbar--sticky")&&i()}c()},t.Intellum.util.ready(n)}(window.document,window,$),function(e,t){"use strict";function n(){Array.prototype.slice.call(e.querySelectorAll(".button[data-behavior]")).forEach(function(e){new t.Intellum.button(e)})}t.Intellum=t.Intellum||{},t.Intellum.button=function(t){function n(){var n=e.getElementById(t.dataset.formFor),i=n.querySelectorAll("input:not([type=hidden]), textarea, input[type=hidden][required]"),r=n.querySelectorAll("*[required]"),o=function(e){var t;return"radio"===e.getAttribute("type")?(t=n.querySelectorAll('[name="'+e.getAttribute("name")+'"]'),Array.prototype.slice.call(t).some(function(e){return e.checked})):"checkbox"===e.getAttribute("type")?e.checked:!!e.value},a=function(){var e;r&&r.length?(e=!0,Array.prototype.slice.call(r).some(function(t){o(t)||(e=!1)})):(e=!1,Array.prototype.slice.call(i).some(function(t){o(t)&&(e=!0)})),e?t.removeAttribute("disabled"):t.setAttribute("disabled","true")};n&&(a(),Array.prototype.slice.call(i).forEach(function(e){"checkbox"===e.getAttribute("type")||"radio"===e.getAttribute("type")||"hidden"===e.getAttribute("type")?e.addEventListener("change",function(){a()}):e.addEventListener("input",function(){a()})}))}function i(){"button.enable"===t.dataset.behavior&&n()}i()},t.Intellum.util.ready(n)}(window.document,window,$),function(e,t){"use strict";function n(){Array.prototype.slice.call(e.querySelectorAll("*[data-behavior=checkall]")).forEach(function(e){new t.Intellum.checkall(e)})}t.Intellum=t.Intellum||{},t.Intellum.checkall=function(t){function n(){t.addEventListener("change",function(){var n=e.querySelectorAll("input[name="+i+"]");Array.prototype.slice.call(n).forEach(function(e){e.checked=t.checked})})}var i=t.dataset.checkallName.replace("[","\\[").replace("]","\\]");n()},t.Intellum.util.ready(n)}(window.document,window,$),function(){var e=function(){var e=document.querySelectorAll("[data-copy-to-clipboard]");new ClipboardJS(e).on("success",function(e){Intellum.flashnotice.show(e.trigger.getAttribute("data-clipboard-success-message")),e.clearSelection()})};window.Intellum.util&&(window.Intellum.util.ready(e),window.Intellum.util.reinitialize&&window.Intellum.util.reinitialize.register(e))}(),function(e,t){"use strict";var n,i,r,o,a="collapsible--collapsed",s="data-collapsed";t.Intellum=t.Intellum||{},t.Intellum.collapsible=(r=function(e,t){var n="exceed_collapsed",i=Cookies.getJSON(n)||{};
11t=t?1:0,i[e]=t,Cookies.set(n,i,{expires:365})},o=function(t){var o=t.currentTarget,l=e.getElementById(o.getAttribute("data-collapse-target")),c=o.getAttribute("data-collapse-save-key");t.preventDefault(),l&&(l.classList.contains(a)?(o.removeAttribute(s),o.setAttribute("aria-expanded","true"),i(l)):(o.setAttribute(s,"true"),o.setAttribute("aria-expanded","false"),n(l)),c&&r(c,o.hasAttribute(s)))},{init:function(){Array.prototype.slice.call(e.querySelectorAll('[data-behavior="toggle.collapsible"][data-collapse-target]:not([data-intelluminitialized])')).forEach(function(e){e.addEventListener("click",o),e.setAttribute("data-intelluminitialized","true")})},expand:i=function(e){var t=e.scrollHeight,n=function(e){e.currentTarget.removeEventListener("transitionend",n),e.currentTarget.style.height=null};e.style.height=t+"px",e.classList.remove(a),e.removeAttribute("aria-hidden"),e.addEventListener("transitionend",n)},collapse:n=function(e){var t=e.scrollHeight,n=e.style.transition;e.style.transition="",requestAnimationFrame(function(){e.style.height=t+"px",e.style.transition=n,requestAnimationFrame(function(){e.style.height="0px",e.classList.add(a),e.setAttribute("aria-hidden","true")})})}}),t.Intellum.util.ready(t.Intellum.collapsible.init),t.Intellum.util.reinitialize.register(t.Intellum.collapsible.init)}(window.document,window),function(e,t,n){"use strict";t.Intellum=t.Intellum||{},t.Intellum.coursepictureupdater=function(i){var r,o=i.querySelector(".uploadfile"),a=i.querySelector(".coursepictureupdater__filepathinput"),s=e.getElementById(i.getAttribute("data-dialog-id")),l=i.querySelectorAll(".updateableimage"),c=e.querySelectorAll('[data-updater-id="'+i.getAttribute("id")+'"]'),u=e.getElementById(i.getAttribute("data-dependent-updater-id")),d=i.getAttribute("data-course-id"),f=i.getAttribute("data-art-type"),p=i.getAttribute("data-art-format"),h=function(e,n,i){e.length&&Array.prototype.forEach.call(e,function(e){e.dispatchEvent(new t.CustomEvent("update",{detail:{status:n,imagePath:i}}))})},m=function(e){h(c,"removing","");var t={course:{}};
11t.course[r.requestPictureKey]={_destroy:1,id:i.getAttribute("data-resource-id")},n.ajax({url:"/public_courses/"+d,type:"PUT",dataType:"json",data:t,success:function(){y(!0),h(c,"none",""),e&&location.reload()}})},g=function(){h(c,"saving",a.value);var t={course:{}};t.course[r.requestPictureKey]={},t.course[r.requestPictureKey][r.targetKey]=a.value,"mobile_target"===r.targetKey&&(t.course.hero_picture_attributes.target=e.getElementById("public_course_curriculum_desktop_hero_path").value),n.ajax({url:"/public_courses/"+d,type:"PUT",dataType:"json",data:t,success:function(){h(c,"saved"),y(!1)},error:function(){h(c,"none",""),o.dispatchEvent(new CustomEvent("error"))}})},v=function(){o.addEventListener("uploadfile.start",function(){h(l,"uploading","")}),o.addEventListener("uploadfile.removed",function(){m()}),o.addEventListener("uploadfile.complete",function(){g()})},y=function(e){u&&u.dispatchEvent(new t.CustomEvent("coursepictureupdater.setdisabled",{detail:{isDisabled:e}}))},b=function(e){var t=o.querySelector(".uploadfile__choosebtn"),n=o.querySelector(".uploadfile__input");e?(t.setAttribute("disabled","true"),n.setAttribute("disabled","true"),i.setAttribute("data-disabled","true")):(t.removeAttribute("disabled"),n.removeAttribute("disabled"),i.removeAttribute("data-disabled"))};
11"coverart"===f?r={requestPictureKey:"picture_attributes",responsePictureKey:"picture",destinationFolder:"resource_course_pictures",targetKey:"target",targetSize:"full_size",fileNameKey:"target_file_name"}:"hero"===f&&(r={requestPictureKey:"hero_picture_attributes",responsePictureKey:"hero_picture",destinationFolder:"resource_hero_pictures",targetKey:"target",targetSize:"google_full",fileNameKey:"target_file_name"},"mobile"===p&&(r.targetKey="mobile_target",r.targetSize="full",r.fileNameKey="mobile_target_file_name")),r&&v(),i.getAttribute("data-disabled")&&b(!0),i.addEventListener("coursepictureupdater.setdisabled",function(e){b(e.detail.isDisabled)}),s&&s.addEventListener("hide.dialog",function(){o.dispatchEvent(new CustomEvent("reset"))}),i.querySelector(".coursepictureupdater__deleteallbutton")&&i.querySelector(".coursepictureupdater__deleteallbutton").addEventListener("click",function(e){e.preventDefault(),h(s.querySelectorAll(".updateableimage"),"removing",""),m(!0)})};var i=function(){Array.prototype.slice.call(e.querySelectorAll(".coursepictureupdater")).forEach(function(e){new t.Intellum.coursepictureupdater(e)})};t.Intellum.util.ready(i)}(window.document,window,jQuery),function(e,t){"use strict";function n(e){return e<10?"0"+e:e}function i(e){return e.getFullYear()+"-"+n(e.getMonth()+1)+"-"+n(e.getDate())}function r(e){var t=+e.substring(5,7)-1;return new Date(+e.substring(0,4),t,+e.substring(8,10))}function o(){function n(n){var i=n.hasAttribute("id")?"datepicker-instructions-"+n.id:"datepicker-instructions",r=t.Intellum.i18nStrings&&t.Intellum.i18nStrings.when_datepicket_widget_appears?t.Intellum.i18nStrings.when_datepicket_widget_appears:"When the datepicker widget appears, use arrow keys to navigate dates and select a date.",o=e.createElement("p");o.setAttribute("class","a11y-atonly"),o.setAttribute("id",i),o.innerText=r,n.parentNode.insertBefore(o,n),n.setAttribute("aria-describedby",o.id)}a=e.getElementsByTagName("html")[0].getAttribute("lang")||t.navigator.language||"en",t.Pikaday&&(t.Pikaday.prototype.toString=function(){return i(this._d)}),Array.prototype.slice.call(e.querySelectorAll('input[data-behavior~="show.datepicker"]:not([data-intelluminitialized])')).forEach(function(e){new t.Intellum.datepicker(e),n(e)})}var a,s={previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]};t.Intellum=t.Intellum||{},t.Intellum.datepicker=function(n){function o(){var t=d.getDate();if(n.getAttribute("data-datepicker-use-locale")?n.value=t.toLocaleDateString(a):n.value=i(t),n.dispatchEvent(new CustomEvent("input")),n.getAttribute("data-datepicker-range-start-for")){var r=e.getElementById(n.getAttribute("data-datepicker-range-start-for"));r&&r.dispatchEvent(new CustomEvent("setMinDate",{detail:{minDate:t}}))}}function l(){var t=350,i=e.body.scrollHeight-n.offsetTop,r=e.getElementById("main");i<t&&r&&(r.style.paddingBottom=t-i+"px")}function c(){Array.prototype.slice.call(e.querySelectorAll(".datepicker")).forEach(function(e){Array.prototype.slice.call(e.querySelectorAll("input, a[href], button")).forEach(function(e){e.setAttribute("tabindex","-1")})})}function u(){c(),t.setTimeout(function(){n.removeAttribute("aria-label")},50)}var d,f,p;if("function"==typeof t.Pikaday){var h;(f=n.value.trim()).match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/i)&&(p=r(f));var m=n.getAttribute("data-datepicker-containerid");m?h=e.getElementById(m):n.getAttribute("data-datepicker-use-parent-container")&&n.parentElement&&n.parentElement.className.indexOf("datepicker__container")>=0&&(h=n.parentElement),d=new t.Pikaday({defaultDate:p,setDefaultDate:!0,field:n,i18n:t.Intellum.datepickerI18n||JSON.parse(n.getAttribute("data-datepicker-i18n"))||s,theme:"datepicker",container:h,onSelect:o,onOpen:c,onDraw:u,parse:function(e){var t,n=/^\d{4}-\d{2}-\d{2}$/;if(e.match(n)){var i=e.split("-");t=new Date(i[0],i[1]-1,i[2])}return t}}),n.addEventListener("setMinDate",function(e){e.detail&&e.detail.minDate&&(d.setDate(0,!1),d.gotoMonth(e.detail.minDate.getMonth()),d.setMinDate(e.detail.minDate))}),l(),n.setAttribute("autocomplete","off"),n.setAttribute("data-intelluminitialized",!0)}},t.Intellum.util.ready(o),t.Intellum.util.reinitialize.register(o)}(window.document,window),function(e,t){"use strict";function n(){function n(n){var i=n.currentTarget,r=i.getAttribute("data-dialog-id"),o=e.getElementById(r);o&&o.dispatchEvent(new t.CustomEvent("show.dialog",{detail:{url:i.getAttribute("data-dialog-url"),trigger:i}}))}Array.prototype.slice.call(e.querySelectorAll(".dialog:not([data-intelluminitialized]
11)")).forEach(function(e){e.setAttribute("data-intelluminitialized",!0),new t.Intellum.dialog(e)}),Array.prototype.slice.call(e.querySelectorAll('[data-behavior~="show.dialog"][data-dialog-id]:not([data-intelluminitialized])')).forEach(function(e){e.setAttribute("data-intelluminitialized",!0),e.addEventListener("click",n),e.addEventListener("keydown",function(e){"Enter"===e.key&&n(e)})})}t.Intellum=t.Intellum||{},t.Intellum.dialog=function(n){function i(e){if(e&&e.detail&&e.detail.url&&(n.getAttribute("data-ignore-cache")||!n.hasAttribute("data-current-content")||n.getAttribute("data-current-content")!=e.detail.url))if(n.hasAttribute("data-current-content")&&f&&(f.innerHtml=p),n.hasAttribute("data-no-jquery")){var t=new XMLHttpRequest;t.open("GET",e.detail.url,!0),t.onload=function(){t.status>=200&&t.status<400&&(f&&(f.innerHTML=t.response),n.setAttribute("data-current-content",e.detail.url),o())},t.send()}else f&&"object"!=typeof Prototype&&$(f).load(e.detail.url,function(){n.setAttribute("data-current-content",e.detail.url),o(e.detail)});else e&&e.detail&&e.detail.content?(f.innerHTML=e.detail.content,o(e.detail)):e&&e.detail&&(r(),o(e.detail));r(),s(!0),Intellum.util.resized.addHandler(s)}function r(){-1===n.className.indexOf("dialog--visible")&&(e.body.classList.add("dialog__documentbody--noscroll"),n.classList.add("dialog--previsible"),n.offsetWidth,n.classList.add("dialog--visible")),n.setAttribute("aria-hidden","false")}function o(e){e=e||{},s(),e.dialogElement=n;var i=new t.CustomEvent("rendered.dialog",{detail:e});n.dispatchEvent(i),t.dispatchEvent(i),t.Intellum.a11y.trapFocus(n,null,a)}function a(){n.hasAttribute("data-dialog-noesc")||n.dispatchEvent(new CustomEvent("hide.dialog"))}function s(e){var i=n.querySelector(".dialog__contentbody--fixedheight");i?i.style.maxHeight=t.innerHeight-200+"px":t.innerHeight<f.clientHeight&&(n.classList.add("dialog--scroll"),e&&(n.scrollTop=0))}function l(){n.classList.remove("dialog--previsible"),n.classList.remove("dialog--scroll"),n.classList.remove("dialog--visible"),e.body.classList.remove("dialog__documentbody--noscroll"),n.setAttribute("aria-hidden","true"),t.Intellum.a11y.releaseFocus()}function c(){Array.prototype.slice.call(n.querySelectorAll("input, textarea")).forEach(function(e){["utf8","_method","authenticity_token"].includes(e.getAttribute("name"))||("checked"===e.getAttribute("data-initial-state")?e.checked=!0:"checkbox"===e.getAttribute("type")||"radio"===e.getAttribute("type")?e.checked=!1:"submit"!==e.getAttribute("type")&&(e.value=""))}),l()}function u(){var e=f.getBoundingClientRect().top-parseInt(getComputedStyle(f).paddingTop.replace("px",""),10);n.classList.add("dialog--scroll"),f.style.marginTop=e+"px"}function d(){n.addEventListener("show.dialog",i),n.addEventListener("hide.dialog",l),n.addEventListener("cancel.dialog",c),n.addEventListener("expand.dialog",u),n.onshow=i,n.onhide=l,n.addEventListener("click",function(e){e.target.matches('[data-behavior~="hide"], [data-behavior~="hide.dialog"]')?n.dispatchEvent(new t.CustomEvent("hide.dialog")):e.target.matches('[data-behavior~="cancel.dialog"]')&&n.dispatchEvent(new t.CustomEvent("cancel.dialog"))}),n.classList.contains("dialog--visible")&&(e.body.classList.add("dialog__documentbody--noscroll"),o())}var f=n.querySelector(".dialog__content"),p=f&&f.innerHtml;d()},t.Intellum.util&&(t.Intellum.util.ready(n),t.Intellum.util.reinitialize&&t.Intellum.util.reinitialize.register(n))}(window.document,window),function(e,t){"use strict";function n(n){var i,r=n.target;do{r.hasAttribute&&r.hasAttribute("data-dropdown-id")?i=e.getElementById(r.getAttribute("data-dropdown-id")):r.className&&r.className.search&&-1!==r.className.search(/dropdown($|\s)/)&&(i=r),r=r.parentNode}while(!i&&r&&r!==e.body&&r!==e);Array.prototype.slice.call(e.querySelectorAll(".dropdown")).forEach(function(e){i!==e&&e.dispatchEvent(new t.CustomEvent("hide.dropdown"))})}function i(e){n(e)}function r(e){"Tab"==e.key&&n(e)}function o(){function n(n,i){var r,o,a=n.target;do{r=a.getAttribute&&a.getAttribute("data-dropdown-id"),o=e.getElementById(r),a=a.parentNode}while(!r&&!o&&a&&a!==e.body&&a!==e);o&&o.dispatchEvent(new t.CustomEvent(i))}function o(e){n(e,"show.dropdown")}function a(e){n(e,"hide.dropdown")}function s(e){n(e,"toggle.dropdown")}Array.prototype.slice.call(e.querySelectorAll(".dropdown:not([data-intelluminitialized]
11)")).forEach(function(e){e.setAttribute("data-intelluminitialized","true"),new t.Intellum.dropdown(e)}),Array.prototype.slice.call(e.querySelectorAll('[data-behavior~="show.dropdown"][data-dropdown-id]:not([data-intelluminitialized])')).forEach(function(e){e.addEventListener("click",o),e.setAttribute("data-intelluminitialized","true")}),Array.prototype.slice.call(e.querySelectorAll('[data-behavior~="hide.dropdown"][data-dropdown-id]:not([data-intelluminitialized])')).forEach(function(e){e.addEventListener("click",a),e.setAttribute("data-intelluminitialized","true")}),Array.prototype.slice.call(e.querySelectorAll('[data-behavior~="toggle.dropdown"][data-dropdown-id]:not([data-intelluminitialized])')).forEach(function(e){e.addEventListener("click",s),e.setAttribute("data-intelluminitialized","true")}),Array.prototype.slice.call(e.querySelectorAll('[data-behavior~="close-dropdown"][data-dropdown-id]:not([data-intelluminitialized])')).forEach(function(n){n.addEventListener("click",function(){var i=n.getAttribute("data-dropdown-id"),r=e.getElementById(i);r&&r.dispatchEvent(new t.CustomEvent("hide.dropdown"))}),n.setAttribute("data-intelluminitialized","true")}),e.addEventListener("click",i),e.addEventListener("keyup",r)}t.Intellum=t.Intellum||{},t.Intellum.dropdown=function(e){function n(){-1===s.className.indexOf("dropdown__content--visible")&&(s.className+=" dropdown__content--visible"),a.setAttribute("aria-expanded","true")}function i(){s.className=s.className.replace(" dropdown__content--visible",""),a.setAttribute("aria-expanded","false")}function r(){"true"===a.getAttribute("aria-expanded")?i():n()}function o(){a.hasAttribute("id")||a.setAttribute("id",t.Intellum.util.uniqueid()),s.hasAttribute("id")||s.setAttribute("id",t.Intellum.util.uniqueid()),a.setAttribute("aria-controls",s.getAttribute("id")),a.setAttribute("aria-expanded","false"),s.setAttribute("aria-labelledby",a.getAttribute("id")),s.setAttribute("role","group"),s.setAttribute("aria-expanded","false"),e.addEventListener("show.dropdown",n),e.addEventListener("hide.dropdown",i),e.addEventListener("toggle.dropdown",r),e.onshow=n,e.onhide=i,e.ontoggle=r,a.addEventListener("click",function(){a.focus(),e.dispatchEvent(new t.CustomEvent("toggle.dropdown"))}),s.addEventListener("click",function(n){s.getAttribute("data-close-on-click")&&e.dispatchEvent(new t.CustomEvent("toggle.dropdown")),n.stopPropagation()})}var a=e.getElementsByClassName("dropdown__trigger")[0]||e,s=e.getElementsByClassName("dropdown__content")[0]||e.nextElementSibling;o()},t.Intellum.util&&(t.Intellum.util.ready(o),t.Intellum.util.reinitialize&&t.Intellum.util.reinitialize.register(o))}(window.document,window),function(e,t,n){"use strict";t.Intellum=t.Intellum||{},t.Intellum.editContent=function(e){var i=n("input, textarea",e),r=i.val(),o=function(){i.is("textarea")&&!i.data("editcontentPreventEnter")||i.on("keydown",function(e){if(13===e.keyCode)return e.preventDefault(),e.stopPropagation(),!1}),i.on("keyup",Intellum.util.debounce(function(){var e=i.val().trim();e!==r&&(i.trigger("change.rails"),r=e)},500)),i.on("blur change",function(e){e.preventDefault(),e.stopPropagation()})},a=function(){t.autosize&&e.data("autosize")&&autosize(i[0])};e.attr("data-intelluminitialized","true"),a(),o()};var i=function(){n(".editcontent:not([data-intelluminitialized])").each(function(){new t.Intellum.editContent(n(this))})};t.Intellum.util.ready(i),t.Intellum.util.reinitialize.register(i)}(window.document,window,jQuery),function(e,t){"use strict";var n,i;t.Intellum=t.Intellum||{},t.Intellum.flashnotice=(n=function(n,i,r){for(var o=e.getElementsByClassName("flashnotice");o.length;)o[0].parentElement.removeChild(o[0]);var a="flashnotice"+((i=i&&i.replace("modal_",""))?" flashnotice--"+i:"")+(r?" flashnotice--dialog":""),s=e.createElement("div");if(s.className=a+" flashnotice--preloaded",s.innerHTML=n,s.setAttribute("role","alert"),!r){var l=e.createElement("button");l.className="flashnotice__close",s.appendChild(l);var c=e.createElement("span");c.className="a11y-atonly",c.textContent="close notice",l.appendChild(c)}var u=function(){s&&(s.parentElement.classList.remove("dialog--modal-flash"),s.parentElement.removeChild(s),s=!1)};
11r?Array.from(e.querySelectorAll(".dialog")).forEach(function(e){e.addEventListener("rendered.dialog",function(){var t=e.querySelector(".dialog__content");s&&(t.appendChild(s),t.classList.add("dialog--modal-flash"),e.addEventListener("hide.dialog",u))})}):e.body.appendChild(s),r||l.addEventListener("click",u),s.offsetHeight,s.className=a,t.setTimeout(function(){if(s){var e=s.parentElement;e&&s.addEventListener("transitionend",function(){e.removeChild(s)}),s.className=a+" flashnotice--removing"}},15e3)},i=function(){Array.prototype.slice.call(e.querySelectorAll(".flashnotice--placeholder")).forEach(function(e){n(e.innerHTML,e.dataset.flashType)})},t.Intellum.util.ready(i),{show:n})}(window.document,window),function(e,t,n){"use strict";function i(){var t=e.getElementById("gdpr-consent__button");t&&t.addEventListener("click",function(){e.cookie="exceedlms-gdpr-cookie-consent=1; expires=Fri, 31 Dec 2060 23:59:59 UTC; path=/",n("#gdpr-consent").remove()})}t.Intellum.util.ready(i)}(window.document,window,$),function(e,t){"use strict";t.Intellum=t.Intellum||{},t.Intellum.header=function(n){function i(){-1===n.className.indexOf("header--searchvisible")&&(n.className+=" header--searchvisible")}function r(){n.className=n.className.replace(" header--searchvisible",""),c=t.setTimeout(function(){c=!1},200)}function o(){c||(-1!==n.className.indexOf("header--searchvisible")?(e.body.focus(),n.dispatchEvent(new t.CustomEvent("hidesearch.header"))):s&&(n.dispatchEvent(new t.CustomEvent("showsearch.header")),s.focus()))}var a=n.getElementsByClassName("header__search")[0],s=a&&a.querySelector(".header__searchinput"),l=n.querySelector('[data-behavior~="toggle.search"]'),c=!1;l&&l.addEventListener("click",o),s&&(s.addEventListener("focus",function(){n.dispatchEvent(new t.CustomEvent("showsearch.header"))}),s.addEventListener("blur",function(){n.dispatchEvent(new t.CustomEvent("hidesearch.header"))}),s.addEventListener("mouseup",function(){s.value&&t.setTimeout(function(){""===s.value&&n.dispatchEvent(new t.CustomEvent("clearsearch.header"))},1)})),n.addEventListener("showsearch.header",i),n.addEventListener("hidesearch.header",r),n.onshowsearch=i,n.onhidesearch=r};var n=function(){Array.prototype.slice.call(e.querySelectorAll(".header")).forEach(function(e){new t.Intellum.header(e)})};t.Intellum.util.ready(n)}(window.document,window),function(e,t){"use strict";t.Intellum=t.Intellum||{},t.Intellum.headerUpdates=function(t){function n(e){if(i){var t,n=e.detail||{};"set"==n.type?t=n.value:"increment"==n.type&&(t=parseInt(i.innerHTML)+n.value),void 0!==t&&(t<1?(i.innerHTML=0,i.classList.add("badge--empty")):(i.innerHTML=t,i.classList.remove("badge--empty")),r&&r.dataset.countLabel&&(r.textContent=r.dataset.countLabel.replace("%{count}",t)))}}var i=t.querySelector('[data-behavior~="notifications.unreadNumber"]'),r=e.getElementById("notifications-count-badge");i&&e.addEventListener("notifications.unreadNumberChange",n),t.onNotificationsUnreadNumberChange=n};var n=function(){Array.prototype.slice.call(e.querySelectorAll(".appheader")).forEach(function(e){new t.Intellum.headerUpdates(e)})};t.Intellum.util.ready(n)}(window.document,window),function(e,t){"use strict";var n;t.Intellum=t.Intellum||{},t.Intellum.lazyload={init:function(){t.lozad&&(n=lozad(".lazyload",{rootMargin:"250px",threshold:.1})).observe()},observe:function(){n&&n.observe()}},t.Intellum.util.ready(t.Intellum.lazyload.init)}(window.document,window),function(e,t){"use strict";t.Intellum=t.Intellum||{};var n=Math.floor(1e3*Math.random());t.Intellum.hint=function(i){var r=i,o=r.getAttribute("data-hint");if(o){if(!r.hasAttribute("data-disable-hint-a11y")){var a=e.createElement("span"),s="hint-id-"+n++,l=r.hasAttribute("data-hint-is-label")?"aria-labelledby":"aria-describedby";a.className="hint--a11y",a.setAttribute("role","tooltip"),a.setAttribute("id",s),a.textContent=o,r.parentNode.insertBefore(a,r.nextSibling),r.setAttribute(l,s),"SPAN"===r.nodeName&&r.setAttribute("role","button")}var c=i.getBoundingClientRect(),u=parseInt(getComputedStyle(i,":after").width.replace("px",""),10);c.left+c.width/2-u/2<0?i.classList.contains("hint--top")?i.classList.add("hint--top-right"):i.classList.contains("hint--bottom")&&i.classList.add("hint--bottom-right"):c.left+c.width/2+u/2>t.innerWidth&&(i.classList.contains("hint--top")?i.classList.add("hint--top-left"):i.classList.contains("hint--bottom")&&i.classList.add("hint--bottom-left"));var d=function(e){if(27===(e.which||e.keyCode))return p(e),e.preventDefault(),e.stopPropagation(),!1},f=function(){r.addEventListener("keydown",d)},p=function(e){e&&("blur"==e.type?r.classList.remove("hint--hide"):"keydown"==e.type&&r.classList.add("hint--hide")),r.removeEventListener("keydown",d)},h=function(){r.hasAttribute("data-hide-hint-on-click")&&("_blank"==r.getAttribute("target")?r.blur():r.getAttribute("href")&&!r.getAttribute("href").length||(r.classList.add("hint--hide"),r.addEventListener("mouseleave",function(){r.classList.remove("hint--hide")})))};r.addEventListener("focus",f),r.addEventListener("mouseenter",f),r.addEventListener("blur",p),r.addEventListener("mouseleave",p),r.addEventListener("show.hint",f),r.addEventListener("click",h)}};var i=function(){Array.prototype.slice.call(e.querySelectorAll("[data-hint]")).forEac
11h(function(e){new t.Intellum.hint(e)})};t.Intellum.util&&(t.Intellum.util.ready(i),t.Intellum.util.reinitialize&&t.Intellum.util.reinitialize.register(i))}(window.document,window),function(e,t,n){"use strict";function i(){Array.prototype.slice.call(e.querySelectorAll("*[data-behavior=infinitescroll]")).forEach(function(e){new t.Intellum.infinitescroll(e)})}t.Intellum=t.Intellum||{},t.Intellum.infinitescroll=function(i){function r(){var e=p.hasAttribute("href")?p.getAttribute("href"):p.querySelector("[href]").getAttribute("href");v||(v=!0,o(),n.get(e,function(e){a(e),s(),u(),l(),Intellum.util&&Intellum.util.reinitialize&&Intellum.util.reinitialize.trigger(),v=!1}))}function o(){var e=p.getAttribute("data-infinitescroll-loading-text")||t.Intellum.i18nStrings.loading||"Loading";p.innerHTML=e+' <span class="loading--textdots"></span>',p.setAttribute("role","alert")}function a(t){var n=(t=e.createRange().createContextualFragment(t)).querySelector(g),r=t.querySelector(m);r?r.hasAttribute("data-append-dependent-nodes")?h.insertAdjacentHTML("beforeEnd",r.innerHTML):(t=e.createRange().createContextualFragment(r.innerHTML),h.appendChild(t)):h.appendChild(t),n&&h.parentNode.appendChild(n),i.getAttribute("data-infinitescroll-lazy-loaded-images")&&Intellum.lazyload&&Intellum.lazyload.observe()}function s(){f.unobserve(p),p.parentNode.removeChild(p)}function l(){i.dispatchEvent(new CustomEvent("infinitescroll.loadednext"))}function c(e){e.forEach(function(e){e.isIntersecting&&r()})}function u(){(p=i.querySelector(g))&&(p.addEventListener("click",function(e){e.preventDefault(),r()}),f.observe(p))}function d(){(h=i.querySelector(m))||(h=i);var t={rootMargin:"0px 0px 150px 0px",threshold:.5};i.dataset.scrollerEl&&(t.root=e.getElementById(i.dataset.infinitescrollScrollerEl)),(f=new IntersectionObserver(c,t)).POLL_INTERVAL=100,u(),i.addEventListener("infinitescroll.ready",u)}var f,p,h,m="[data-infinitescroll-content-wrapper]",g="[data-infinitescroll-next=true]",v=!1;d()},t.Intellum.util.ready(i)}(window.document,window,$),function(e,t){"use strict";function n(){Array.prototype.slice.call(e.querySelectorAll(".levelbadge")).forEach(function(e){new t.Intellum.levelbadge(e)})}t.Intellum=t.Intellum||{},t.Intellum.levelbadge=function(t){var n=e.getElementById("levelbadge-dialog"),i=function(){["name","description","date"].forEach(function(n){e.getElementById("badge-dialog-"+n).innerHTML=t.getAttribute("data-badge-"+n)}),t.getAttribute("data-badge-imgsrc").length&&(e.getElementById("badge-dialog-img").innerHTML='<img src="'+t.getAttribute("data-badge-imgsrc")+'" alt=""/>')},r=function(){Array.prototype.slice.call(n.querySelectorAll(".levelbadge__dialog > *")).forEach(function(e){e.innerHTML=""})};(function(){n&&(t.addEventListener("click",function(e){i(),n.dispatchEvent(new CustomEvent("show.dialog",{detail:{trigger:e.target.id}}))}),n.addEventListener("hide.dialog",function(){r()}))})()},t.Intellum.util.ready(n)}(window.document,window),function(e,t){"use strict";var n=function(){var t=Array.prototype.slice.call(e.querySelectorAll('[data-behavior="locale.change"]')),n=!1;t&&t.forEach(function(e){e.addEventListener("change",function(e){n||(n=!0,location.href=e.target.value)})})};t.Intellum.util.ready(n)}(window.document,window),function(e,t){"use strict";var n,i,r,o,a,s,l,c="exceed_page_state";t.Intellum=t.Intellum||{},t.Intellum.pagestate=(n={"scroll.y":{getScrollElement:function(){return e.querySelector("[data-scroll-y-state]")},getState:function(){var n=this.getScrollElement();return n?n.scrollTop:t.scrollY||e.body.scrollTop},restoreState:function(e){var n=this.getScrollElement();n?n.scrollTop=e:t.scroll(0,e)}}},i=function(){var e=sessionStorage.getItem(c);if(e)try{e=JSON.parse(e)}catch(t){e=!1}return e},r=function(){sessionStorage.removeItem(c)},o=function(e){var t=i(),r=location.pathname+location.search;t&&t[r]&&e.forEach(function(e){var i=t[r][e];i&&n[e]&&n[e].restoreState(i)})},a=function(e){var t=i()||{},r={},o=location.pathname+location.search;e.forEach(function(e){n[e]&&(r[e]=n[e].getState())}),t[o]=r,sessionStorage.setItem(c,JSON.stringify(t))},s=function(e){t.addEventListener("pagehide",function(){a(e)})},l=function(){var e="t";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}},{init:function(){var t,n,i=e.getElementById("main");i&&l()&&(t=i.getAttribute("data-save-state"),n=i.hasAttribute("data-reset-state"),t&&(t=t.split(" "),o(t,n),s(t),i.setAttribute("data-state-restored","true")),n&&r())}}),t.Intellum.util.ready(t.Intellum.pagestate.init)
12}(window.document,window),function(e,t){"use strict";function n(){var t=new Date;t.setDate(t.getDate()+5),t.toUTCString(),e.cookie="exceedlms-path-"+s.dataset.curriculumEnrollmentId+"-state-cookie
12=1; expires="+t+"; path=/"}function i(){e.cookie="exceedlms-path-"+s.dataset.curriculumEnrollmentId+"-state-cookie=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/"}function r(){o&&s&&(t.innerWidth<l&&(o.classList.remove("pathdrawer__btn--active"),s.classList.remove("pathdrawer--expanded"),s.setAttribute("aria-expanded","false"),s.setAttribute("aria-hidden","true"),i()),o.addEventListener("click",function(){t.innerWidth>l&&(o.classList.contains("pathdrawer__btn--active")?i():n())}),a.addEventListener("click",function(){o.classList.remove("pathdrawer__btn--active"),i()}))}var o=e.getElementById("pathdrawer-trigger"),a=e.getElementById("pathdrawer-close"),s=e.getElementById("pathdrawer"),l=420;t.Intellum.util.ready(r)}(window.document,window,$),function(e,t){"use strict";var n;t.Intellum=t.Intellum||{},t.Intellum.pgmedia=(n=function(e,t){e.offsetHeight<t.offsetHeight&&(t.style.minHeight=e.offsetHeight+"px")},{init:function(){Array.prototype.slice.call(e.querySelectorAll(".pgmedia__imagewrapper")).forEach(function(e){if(e.style.minHeight){var t=e.querySelector(".pgmedia__image--sized");t&&(t.height>0?n(t,e):t.onload=function(){n(t,e)})}})}}),Intellum.util.ready(function(){t.Intellum.pgmedia.init()}),Intellum.util.resized.addHandler(t.Intellum.pgmedia.init)}(window.document,window),function(e,t,n){"use strict";function i(e){Array.prototype.slice.call(e.querySelectorAll("*[data-rating=true]")).forEach(function(e){new t.Intellum.rating(e)})}function r(){i(e),t.addEventListener("rendered.dialog",function(e){e.detail&&e.detail.dialogElement&&i(e.detail.dialogElement)})}t.Intellum=t.Intellum||{},t.Intellum.rating=function(t){function i(e){e.preventDefault(),a(e),l(e)}function r(e){"Enter"==e.key&&i(e)}function o(e){if(e.relatedTarget&&"review[stars]"!=e.relatedTarget.getAttribute("name")){var n=t.querySelector('[name="review[stars]"]:checked'),i=n?n.value:0,r=t.getAttribute("data-rating-value")||0;(r=parseInt(r))!=i&&l()}}function a(n){var i="keydown"==n.type?n.target:e.getElementById(n.currentTarget.htmlFor),r=n.currentTarget.getAttribute("data-linked-star"),o=e.getElementById(r);s(),i.setAttribute("checked","checked"),o&&o.setAttribute("checked","checked"),t.setAttribute(p,!0)}function s(){Array.prototype.slice.call(e.querySelectorAll("[data-review-enabled] input[type=radio][checked]")).forEach(function(e){e.removeAttribute("checked")})}function l(e){n.ajax({type:"post",url:t.getAttribute("action"),data:n(t).serializeArray(),success:function(t){u({content:t,trigger:e.target})}})}function c(){var e=t.querySelector("fieldset.rating__fieldset");e&&e.addEventListener("keydown",r),Array.prototype.slice.call(t.querySelectorAll('[data-behavior~="submit.rating"]')).forEach(function(e){e.addEventListener("click",i)}),Array.prototype.slice.call(t.querySelectorAll('[name="review[stars]"]')).forEach(function(e){e.addEventListener("blur",o)})}function u(n){var i=t.getAttribute("data-dialog-id");i&&e.getElementById(i).dispatchEvent(new CustomEvent("show.dialog",{detail:n}))}function d(){t.classList.remove("rating--disabled"),t.setAttribute(h,!0),t.setAttribute("data-review-enabled",!0),t.setAttribute("data-hint",t.getAttribute("data-hint-when-complete")),t.dispatchEvent(new CustomEvent("show.hint")),t.classList.add("hint--active"),Array.prototype.slice.call(t.querySelectorAll('input[type="radio"]')).forEach(function(e){e.removeAttribute("checked"),e.removeAttribute("disabled"),e.removeAttribute("aria-hidden")}),c()}function f(){"true"===t.getAttribute(h)?c():t.addEventListener("click",function(n){var i={url:t.getAttribute("data-dialog-url")};"INPUT"==n.target.tagName&&(i.trigger=e.activeElement),u(i)}),t.addEventListener("enable.rating",d)}var p="data-student-reviewed",h="data-rating-enabled";f()},t.Intellum.util.ready(r)}(window.document,window,$),function(e,t,n){"use strict";t.Intellum=t.Intellum||{},t.Intellum.reviews=function(){function i(t){t.preventDefault();var i=t.target.getAttribute("data-review-id"),o=e.getElementById("review_form_"+i);o&&n.ajax({type:"post",url:o.getAttribute("action"),data:n(o).serializeArray(),success:function(e){r(o,e)}})}function r(e,t){e.parentElement.outerHTML=t,u(),s()}function o(t){t.preventDefault();var n=t.currentTarget.getAttribute("data-review-id");e.getElementById("review_"+n).classList.add("review--hidden"),Array.prototype.slice.call(e.getElementById("review_"+n).querySelectorAll("button")).forEac
12h(function(e){e.classList.add("hidden")}),e.getElementById("review_form_"+n).classList.remove("review--hidden"),Array.prototype.slice.call(e.getElementById("review_form_"+n).querySelectorAll(".hidden")).forEach(function(e){e.classList.remove("hidden")}),s()}function a(t){t.preventDefault();var i=t.currentTarget.getAttribute("data-review-id");n.ajax({type:"delete",url:t.currentTarget.getAttribute("data-action"),data:n(m).serializeArray(),success:function(){var t=e.getElementById("review_"+i);t.parentElement.outerHTML="",t.matches("[data-close-dialog-on-delete]")&&m.dispatchEvent(new CustomEvent("hide.dialog"))}})}function s(){Intellum.a11y.releaseFocus(),Intellum.a11y.trapFocus(m,null,function(){m.dispatchEvent(new CustomEvent("hide.dialog"))})}function l(t){var n=t.currentTarget,i=e.getElementById("review_submit");n.value.length>0?i.removeAttribute("disabled"):i.setAttribute("disabled",!0)}function c(){var e=m.querySelector("#review_body:not(["+w+"])");e&&(e.addEventListener("input",l),e.setAttribute(w,"true"))}function u(){Array.prototype.slice.call(m.querySelectorAll('[data-behavior~="submit.review"]:not(['+w+"])")).forEach(function(e){e.addEventListener("click",i),e.setAttribute(w,"true")}),Array.prototype.slice.call(m.querySelectorAll('[data-behavior~="edit.review"]')).forEach(function(e){e.addEventListener("click",o),e.setAttribute(w,"true")}),Array.prototype.slice.call(m.querySelectorAll('[data-behavior~="delete.review"]')).forEach(function(e){e.addEventListener("click",a),e.setAttribute(w,"true")}),c()}function d(){g=m.querySelector("*[data-behavior=infinitescroll]"),new t.Intellum.infinitescroll(g),g.dispatchEvent(new CustomEvent("infinitescroll.ready")),g.addEventListener("infinitescroll.loadednext",u)}function f(){b&&m.addEventListener("hide.dialog",p)}function p(){n.get(b.getAttribute("data-rating-url"),function(n){var i=e.createRange().createContextualFragment(n);b.innerHTML=i.childNodes[0].innerHTML,new t.Intellum.rating(b.querySelector(".rating")),m.removeEventListener("hide.dialog",p),t.Intellum.util.reinitialize.trigger(),v&&v.id?(v=b.querySelector("#"+v.id)).focus():(v=b.querySelector("#update-review-trigger"))&&v.focus()})}function h(){t.addEventListener("rendered.dialog",function(t){t.detail&&t.detail.dialogElement&&t.detail.dialogElement.hasAttribute("data-reviews")&&(m=t.detail.dialogElement,(v=t.detail.trigger)&&v.classList.add("a11y-hidefocus"),y=m.getAttribute("data-summary-ratings-id"),b=e.getElementById(y||null),d(),u(),f())})}var m,g,v,y,b,w="data-intelluminitialized";return{initModule:h}}(),t.Intellum.util.ready(Intellum.reviews.initModule)}(window.document,window,$),function(e,t){"use strict";function n(){Array.prototype.slice.call(e.querySelectorAll(".sidemenu")).forEach(function(e){i.push(e),new t.Intellum.sidemenu(e)}),Array.prototype.slice.call(e.querySelectorAll('[data-behavior~="toggle.sidemenu"][data-sidemenu-id]')).forEach(function(n){r.push(n),n.setAttribute("aria-pressed","false");var i=n.getAttribute("data-sidemenu-id"),o=e.getElementById(i);o&&(n.setAttribute("aria-controls",i),n.addEventListener("click",function(){o.dispatchEvent(new t.CustomEvent("toggle.sidemenu"))}))}),e.addEventListener("click",function(n){for(var r=null,o=n.target;!r&&o&&o!==e.body&&o!==e;)o.hasAttribute("data-sidemenu-id")?r=e.getElementById(o.getAttribute("data-sidemenu-id")):o.className&&o.className.indexOf&&o.className.match(/(^|\s)sidemenu($|\s)/)&&(r=o),o=o.parentNode;i.forEach(function(e){e!==r&&e.dispatchEvent(new t.CustomEvent("collapse.sidemenu"))})})}t.Intellum=t.Intellum||{};var i=[],r=[];t.Intellum.sidemenu=function(n){function i(){-1===n.className.indexOf("sidemenu--expanded")&&(n.className+=" sidemenu--expanded"),n.setAttribute("aria-expanded","true"),d&&(d.scrollTop=0),a(n.id,"true")}function o(){n.className=n.className.replace(" sidemenu--expanded",""),n.setAttribute("aria-expanded","false"),a(n.id,"false")}function a(e,t){r.forEach(function(n){n.getAttribute("data-sidemenu-id")==e&&n.setAttribute("aria-pressed",t)})}function s(){-1===n.className.indexOf("sidemenu--expanded")?n.dispatchEvent(new t.CustomEvent("expand.sidemenu")):n.dispatchEvent(new t.CustomEvent("collapse.sidemenu"))}function l(){f=null,n.dispatchEvent(new t.CustomEvent("scrollend.sidemenu"))}function c(){f?t.clearTimeout(f):n.dispatchEvent(new t.CustomEvent("scrollstart.sidemenu")),f=t.setTimeout(l,2e3)}function u(){n.addEventListener("expand.sidemenu",i),n.addEventListener("collapse.sidemenu",o),n.addEventListener("toggle.sidemenu",s),n.onexpand=i,n.oncollapse=o,n.ontoggle=s,d&&d.addEventListener("scroll",t.Intellum.util.throttle(c,100)),n.setAttribute("aria-expanded","fal
12se")}var d=n.querySelector(".sidemenu__list"),f=null;e.getElementsByClassName("header__titlelink")[0];u()},t.Intellum.util.ready(n)}(window.document,window),function(e,t){"use strict";function n(){Array.prototype.slice.call(e.querySelectorAll(".studentform")).forEach(function(e){new t.Intellum.studentform(e)})}t.Intellum=t.Intellum||{},t.Intellum.studentform=function(e){function t(){Array.prototype.slice.call(e.querySelectorAll("*[data-invalid-text]")).forEach(function(e){e.getAttribute("data-invalid-text").length&&(e.addEventListener("invalid",function(e){e.target.setCustomValidity(e.target.getAttribute("data-invalid-text"))}),e.addEventListener("input",function(e){e.target.setCustomValidity("")}))})}t()},t.Intellum.util.ready(n),t.Intellum.util.reinitialize.register(n)}(window.document,window),function(e,t){"use strict";t.Intellum=t.Intellum||{},t.Intellum.topicpicker=function(n){var i,r,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,w=function(t){null==t&&(t="topic-onboarding-dialog"),null!=(i=e.getElementById(t))&&(r="topic-onboarding-dialog"==t,o="topic-following-dialog"==t,a=n("#topics-suggested-container"),s=n("#topics-suggested-list"),c=n("#topics-selected-list"),u=n("#topics-save"),l=n("#followed_topic_ids"),f=n("#display-all-topics"),d=n(o?"#following-topics-modal":"#onboarding-topics-modal"),n("#new_evaluation").length>0,b=n("#onboarding-loading-modal"),p=[],h=[],m=[],v=i.getAttribute("data-user-id"),"true"==i.getAttribute("data-is-catcat"),y="<div>"+Intellum.i18nStrings.loading+"</div>",C(),T(),I(),M(),r?(x(),setTimeout(function(){"false"!=Cookies.get("topic_onboarding")&&i.dispatchEvent(new CustomEvent("show.dialog",{detail:{trigger:null}}))})):o&&_())},x=function(){A(),S()},_=function(){n.get("/category_follows/").done(function(e){E(e)}).fail(function(){})},E=function(e){if(p=e.all_topics||[],h=e.suggested_topics||[],m=e.followed_topics||[],g=e.locked_topics||[],o){var t=m.filter(function(e,t,n){return n.map(function(e){return e.id}).indexOf(e.id)==t});D(t,!1,[],!0),k()}else{if(!p.concat(m).length)return void i.dispatchEvent(new CustomEvent("hide.dialog"));(t=m.concat(h).filter(function(e,t,n){return n.map(function(e){return e.id}).indexOf(e.id)==t})).forEach(L),D(p,!0,t),r&&!t.length&&u.attr("disabled","disabled"),k()}},A=function(){d.hide(),u.hide(),b.show()},k=function(){d.show(),b.hide(),a.innerHeight()+15>=a[0].scrollHeight?f.remove():f.removeAttr("disabled"),u.show()},T=function(){f.on("click",function(){i.dispatchEvent(new t.CustomEvent("expand.dialog")),a.addClass("topicpicker__choices--expanded"),f.remove()})},I=function(){u.on("click",function(){var e=c.find("[data-topic-id]").map(function(e,t){return n(t).data("topicId")}).toArray();l.val(e);l.html();u.html(y)})},C=function(){s.on("click",".topicpicker__listitem",function(e){var t=n(e.target).data();n(e.target).hasClass("tagbutton--locked")||(n(e.target).hasClass("tagbutton--selected")?O({id:t.topicId,name:t.topicTitle}):L({id:t.topicId,name:t.topicTitle}))})},S=function(){var e="/category_follows?suggested=true";r&&(e+="&topic_onboarding=true"),n.get(e).done(function(e){E(e)}).fail(function(){N()})},D=function(e,t,n,r){n=n||[];var o="";t?(n.forEach(function(e){o+=q(e,!0)}),e.forEach(function(e){n.find(function(t){return t.id==e.id})||(o+=q(e,!1))})):e.forEach(function(e){o+=r?j(e):q(e,!1)}),s.html(o),Intellum.a11y.releaseFocus(),Intellum.a11y.trapFocus(i,null,function(){i.dispatchEvent(new CustomEvent("hide.dialog"))})},L=function(e){var t=s.find('[data-topic-id="'+e.id+'"]');t.addClass("tagbutton--selected"),t.attr("aria-pressed","true"),c.find(".tagbutton").length||c.html(""),c.append(q(e,!0,!0)),u.removeAttr("disabled")},O=function(e){c.find('[data-topic-id="'+e.id+'"]').remove(),c.find("[data-topic-id]").length<1&&N(),s.find('[data-topic-id="'+e.id+'"]').removeClass("tagbutton--selected").attr("aria-pressed","false")},N=function(){var e='<div class="publiccourse-nocontent">';e+="<p>"+Intellum.i18nStrings.topicsFollowedSelectionEmpty+"</p>",e+="</div>",c.html(e),r&&u.attr("disabled","disabled")},q=function(e,t,n){var i,r="tagbutton",o=n?" disabled":"",a=e.name,s="";return e.parent&&(a=e.parent.name+" > "+a),g&&g.indexOf(e.id)>-1?(r+=" tagbutton--locked hint hint--top",s=' data-hint="Topic cannot be unfollowed" '):t&&(r+=" tagbutton--selected"),i='<li class=" topicpicker__listitem"><button type="button" class="'+r+'"    aria-pressed="'+t+'"    data-topic-id="'+(e.id||!1)+'"'+s+'    data-topic-title="'+e.name+'"'+o+">",i+=a,i+="</button></li>"},j=function(e){var t,n=e.name;return e.parent&&(n=e.parent.name+" > "+n),t='<li class="topicpicker__listitem">',t+='<a href="'+tagLink+'" class="tagbutton">',t+=n,t+="</a></li>"},M=function(){i.addEventListener("hide.dialog",function(){if(r){var e=new Date((new Date).getTime()+6e4);Cookies.set("topic_onboarding",!1,{expires:e}),n.post("/student/users/"+v+"/mark_as_topic_onboarded/"),i.querySelector(".dialog__content").innerHTML=""}})};return{init:w}}(jQuery),Intellum.util.ready(t.Intellum.topicpicker.init)}(window.document,window),function(e,t){"use strict";function n(){Array.prototype.slice.call(e.querySelectorAll('[data-behavior="limit.touchscroll"]')).forEac
12h(function(e){new t.Intellum.touchscroll(e)})}t.Intellum=t.Intellum||{},t.Intellum.util=t.Intellum.util||{},t.Intellum.touchscroll=function(e){var t=function(t){var n=e.scrollWidth-e.offsetWidth;(e.scrollLeft+t.deltaX<0||e.scrollLeft+t.deltaX>n)&&(t.preventDefault(),e.scrollLeft=Math.max(0,Math.min(n,e.scrollLeft+t.deltaX)))};(function(){e.addEventListener("wheel",function(e){t(e)})})()},t.Intellum.util.ready(n)}(window.document,window),function(e,t){"use strict";function n(){Array.prototype.slice.call(e.querySelectorAll(".tabs--tabsets")).forEach(function(e){new t.Intellum.tabsets(e)})}t.Intellum=t.Intellum||{},t.Intellum.tabsets=function(t){var n="tabs__tab",i="tabs__tab--selected",r=function(e){Array.prototype.slice.call(t.querySelectorAll("."+n)).forEach(function(t){t==e?(t.classList.add(i),t.setAttribute("aria-selected","true")):(t.classList.remove(i),t.setAttribute("aria-selected","false"))})},o=function(){Array.prototype.slice.call(t.querySelectorAll('[role="tabpanel"]')).forEach(function(e){e.setAttribute("hidden",""),e.setAttribute("aria-expanded","false")})},a=function(t){var n=e.querySelector("#"+t.getAttribute("data-tabcontent"));n&&(n.removeAttribute("hidden"),n.setAttribute("aria-expanded","true"))},s=function(e){e.classList.contains(i)||(r(e),o(),a(e))};(function(){Array.prototype.slice.call(t.querySelectorAll('[role="tab"]')).forEach(function(e){e.addEventListener("click",function(){s(e)})})})()},t.Intellum.util.ready(n)}(window.document,window),function(e,t){"use strict";function n(){Array.prototype.slice.call(e.querySelectorAll('*[data-behavior="show.timepicker"]')).forEach(function(e){new t.Intellum.timepicker(e)})}t.Intellum=t.Intellum||{},t.Intellum.timepicker=function(e){function t(){var t=e.form;t.classList.contains("changed")||t.classList.contains("unchanged"),e.value==e.getAttribute("data-initial-value")?(t.classList.remove("changed"),t.classList.add("unchanged")):(t.classList.remove("unchanged"),t.classList.add("changed"))}function n(){jQuery(e).timepicker({scrollDefault:"now",step:5})}n(),jQuery(e).on("change",t)},t.Intellum.util.ready(n),t.Intellum.util.reinitialize.register(n)}(window.document,window,$),function(e,t){"use strict";var n,i,r,o,a,s,l,c;t.Intellum=t.Intellum||{},t.Intellum.truncate=(n=.625,i=function(e,t){Array.prototype.forEach.call(e,function(e){t&&r(e),o(e)})},r=function(e){var t=a(e);getComputedStyle(e).lineHeight.replace("px",""),null!=t&&(t.offsetWidth,s(t)),e.innerHTML=e.textContent.trim(),null!=t&&l(e,t)},o=function(t){var i,r,o=getComputedStyle(t),u=a(t),d=o.lineHeight.replace("px",""),f=o.maxHeight.replace("px",""),p=n*d,h=Math.ceil(t.getBoundingClientRect().height)+1;if(null!=u&&(p+=u.offsetWidth,s(u)),r=(i=(h=h>f?f:h)/d)*d,t.scrollHeight>r+2){var m=d*(i-1),g=e.createElement("div");g.className="truncate__lastline",i>1?g.innerHTML=c(t,m):(g.innerHTML=t.textContent.trim(),t.innerHTML=""),t.appendChild(g),g.style.paddingRight=p+"px";var v=e.createElement("span");v.innerHTML=g.textContent.trim(),v.className="truncate__overflow",v.innerHTML=c(g,d),t.appendChild(v),g.style.paddingRight="0",g.classList.add("truncate__lastline--truncated")}null!=u&&l(t,u)},a=function(e){var t=e.getAttribute("data-decoration");if(null!=t)return e.querySelector("#"+t)},s=function(e){e.parentNode.removeChild(e)},l=function(e,t){e.appendChild(t)},c=function(e,t){for(var n=e.textContent.trim().split(" "),i=n.length-1;i>0&&(e.innerHTML=n.slice(0,i).join(" "),!(parseInt(getComputedStyle(e).height)<=t));i--);return e.innerHTML=" "+e.innerHTML," "+n.slice(i).join(" ")},{init:function(t){var n=!!(t="object"==typeof t?t:{}).isResize,r=!!t.isFilechange,o=void 0!==t.scope?t.scope:e,a=void 0!==t.selector?t.selector:'[data-behavior*="truncate"]';!0===t.isResize?a='[data-behavior="truncate"]':!0===t.isFilechange&&(a='[data-behavior*="truncate"][data-behavior-modifier="onfilechange"]'),i(o.querySelectorAll(a),n||r)}}),Intellum.util.ready(function(){t.Intellum.truncate.init()}),Intellum.util.resized.addHandler(function(){t.Intellum.truncate.init({isResize:!0})})}(window.document,window),function(e,t){"use strict";t.Intellum=t.Intellum||{},t.Intellum.updateableImage=function(e){var t="updateableimage--uploadingstatus",n="updateableimage--generalstatus",i="updateableimage--removingstatus",r={saving:{class:n,text:Intellum.i18nStrings.saving_ellipsis||"Saving..."},saved:{class:n,text:Intellum.i18nStrings.saving_ellipsis||"Saving..."},processing:{class:n,text:Intellum.i18nStrings.processing_ellipsis||"Processing..."},uploading:{class:t,text:Intellum.i18nStrings.uploading_ellipsis||"Uploading..."},removing:{class:i,text:Intellum.i18nStrings.removing_ellipsis||"Removing..."},none:{class:"",text:""}}
12,o=function(){Object.keys(r).map(function(t){var n=r[t].class;n.length>0&&e.classList.remove(n)})};e.addEventListener("update",function(t){var n,i,a,s=t.detail.status,l=t.detail.imagePath;o(),s&&r[s]&&(n=r[s].class,i=r[s].text,n&&e.classList.add(n),i?e.setAttribute("data-status-text",i):e.setAttribute("data-status-text",""),"saved"===s?setTimeout(function(){o()},3e3):(a="none",l?(a='url("'+l+'")',e.removeAttribute("data-show-default")):e.setAttribute("data-show-default","true"),e.style.backgroundImage=a))})};var n=function(){Array.prototype.slice.call(e.querySelectorAll(".updateableimage")).forEach(function(e){new t.Intellum.updateableImage(e)})};t.Intellum.util.ready(n),t.Intellum.util.reinitialize.register(n)}(window.document,window,jQuery),function(e,t){"use strict";function n(){t.Intellum.updatedrawers={},Array.prototype.slice.call(e.querySelectorAll(".updatedrawer")).forEach(function(e){e.hasAttribute("id")?t.Intellum.updatedrawers[e.id]=new t.Intellum.updatedrawer(e):new t.Intellum.updatedrawer(e)})}t.Intellum=t.Intellum||{},t.Intellum.updatedrawer=function(n){var i,r=!1,o=!1,a=!1,s=!1,l=!1,c=function(){var t=new XMLHttpRequest;t.open("POST","/student/user_mentor_cards/mark_all_as_read"),t.setRequestHeader("X-CSRF-Token",e.querySelector('meta[name="csrf-token"]').getAttribute("content")),t.onload=function(){t.status>=200&&t.status<400&&(o=!0)},t.onerror=function(){},t.send()},u=function(t){var n=new XMLHttpRequest;n.open("POST","/student/user_mentor_cards/"+t+"/mark_as_read"),n.setRequestHeader("X-CSRF-Token",e.querySelector('meta[name="csrf-token"]').getAttribute("content")),n.onload=function(){n.status>=200&&n.status<400&&(o=!0)},n.onerror=function(){},n.send()},d=function(t){var n=new XMLHttpRequest;n.open("PUT","/student/user_mentor_cards/"+t),n.setRequestHeader("X-CSRF-Token",e.querySelector('meta[name="csrf-token"]').getAttribute("content")),n.onload=function(){n.status>=200&&n.status},n.onerror=function(){},n.send()},f=function(e){n.contains(e.relatedTarget)||n.classList.add("updatedrawer--hidden")},p=function(e){n.innerHTML=e,n.querySelectorAll(".updatecard").forEach(function(e){if(e.hasAttribute("data-id")){var n=e.getAttribute("data-id");e.hasAttribute("href")||e.hasAttribute("data-dialog-url")?(e.addEventListener("click",function(){d(n)}),e.addEventListener("blur",f)):e.querySelectorAll("a[href]").forEach(function(e){e.addEventListener("click",function(){d(n)}),e.addEventListener("blur",f)}),"show.dialog"===e.getAttribute("data-behavior")&&t.Intellum&&t.Intellum.util&&t.Intellum.util.reinitialize&&t.Intellum.util.reinitialize.trigger()}}),o?l=!0:n.classList.contains("updatedrawer--hidden")||c()},h=function(){var t=e.createElement("p"),n=Intellum.i18nStrings.there_was_a_problem_getting_your_updates||"There was a problem in getting your updates.";t.classList.add("updatecards__error"),t.innerHTML=n,p(t.outerHTML)},m=function(){if((!s||o&&!l)&&!a){a=!0;var e=new XMLHttpRequest;e.open("GET","/student/user_mentor_cards"),e.onload=function(){e.status>=200&&e.status<400?(s=!0,a=!1,p(e.responseText)):h()},e.onerror=function(){h()},e.send()}},g=function(){r||(m(),r=!0)},v=function(){n.classList.contains("updatedrawer--hidden")?(n.querySelector(".updatecards")?o?m():c():m(),i.setAttribute("aria-expanded","true")):(o||c(),i.setAttribute("aria-expanded","false")),e.dispatchEvent(new t.CustomEvent("notifications.unreadNumberChange",{detail:{type:"set",value:0}})),n.classList.toggle("updatedrawer--hidden")},y=function(){n.classList.contains("updatedrawer--hidden")&&v()},b=function(){o=!1,a=!1,s=!1,l=!1,n.classList.contains("updatedrawer--hidden")?r=!1:m()},w=function(e){if(!n.classList.contains("updatedrawer--hidden")){for(var t=e.target;t!=n&&t!=i&&"BODY"!=t.tagName;)t=t.parentElement;t!=n&&t!=i&&v()}},x=function(){if(null==n)return!1;null!=(i=e.querySelector('[data-behavior="toggle.updatedrawer"][data-updatedrawer-id="'+n.id+'"]'))&&(i.addEventListener("mouseover",g),i.addEventListener("click",v),e.addEventListener("click",w))};return x(),{init:x,postMarkOneRead:u,openUpdatedrawer:y,toggleUpdatedrawer:v,resetOnUnreadNumberChange:b}},t.Intellum.util.ready(n)}(window.document,window),function(e,t,n){"use strict";t.Intellum=t.Intellum||{},t.Intellum.uploadFile=function(e){var i,r,o,a,s,l=n("input",e),c=n(".uploadfile__progress",e),u=n(".uploadfile__progresscontainer",e),d=n(".uploadfile__status",e),f=n(".uploadfile__choosebtn",e),p=n(".uploadfile__cancelbtn",e),h=n(".uploadfile__changebtn",e),m=n(".uploadfile__removebtn",e),g=n("#"+l.data("target")),v=n(".uploadfile__loading",e),y="data-progress-status",b="uploadfile__choosebtn--hidden",w="uploadfile__loading--hidden",x="",_="",E="data-show-remove",A="data-has-file-input-selector",k=e.data("hasManagedPreview");A.length&&(r=l.closest("form").find(e.attr(A)));var T="gcs"===e.data("provider"),I=function(e){d.text(Intellum.i18nStrings.uploadfile_no_file_selected),f.removeClass(b),m.show(),h.hide(),p.hide(),d.hide(),e&&g.val(""),S(),l.removeAttr("disabled")},C=function(t){t?(m.show(),e.attr(E,"true"),N(!0)):(m.hide(),h.hide(),e.attr(E,"false"),N(!1))},S=function(){u.attr(y,"none"),c.css("width","0")},D=function(t,n){e[0].dispatchEvent(new CustomEvent(t,{detail:n}))},L=function(n){var i,r=e.data("fileType");r||(0===n.type.indexOf("image")?r="image":0===n.type.indexOf("video")&&(r="video"));var o,a=parseFloat(e.data("maxSizeMb")),s=e.data("useCourseFileMaxSize"),l=function(e){switch(e){case"pdf":case"Pdf":return/\.(pdf)$/i;case"image":case"Image":return/\.(gif|jpe?g|png|webp)$/i;case"video":case"Video":return/\.(avi|flv|m4v|mov|ogg|quicktime|mp4|mpe?g|webm|wmv)$/i;case"caption":case"Caption":return/\.(vtt)$/i;case"audio":case"Audio":return/\.(mp3|ogg|m4a|m4b|oga|wav|wma|flac)$/i;case"Elearning":case"elearning":return/\.(zip|gzip|tar|jar)$/i;case"File":case"file":return/\.(csv|doc|docx|gzip|jar|key|numbers|odp|odt|pages|pdf|ppt|pptx|tar|xls|xlsx|zip)$/i;case"Any":case"any":return/\.(avi|csv|doc|docx|flac|flv|gif|gzip|jar|jpeg|jpg|key|m4a|m4b|m4v|mov|mp3|mp4|mpeg|mpg|numbers|odp|odt|oga|ogg|pages|pdf|png|ppt|pptx|qsys|tar|vtt|wav|webm|wma|wmv|xls|xlsx|zip)$/i}};return s?"image"==r?o=t.Intellum.properties.courseContentFileSizeConstraintsInMB.image:"video"==r?o=t.Intellum.properties.courseContentFileSizeConstraintsInMB.video:0===n.t
12ype.indexOf("audio")&&(o=t.Intellum.properties.courseContentFileSizeConstraintsInMB.audio):a&&(o=1024*a*1024),(i=l(r))&&!i.test(n.name.toLowerCase())?t.Intellum.i18nStrings.uploadfile_error_format_msg:!!(o&&n.size&&n.size>o)&&(s?t.Intellum.i18nStrings.uploadfile_error_size_coursefile_msg:t.Intellum.i18nStrings.uploadfile_error_size_msg)},O=function(e){var n=e;n&&(n=n.replace("{{FILENAME}}",x));var i=e||t.Intellum.i18nStrings.uploadfile_error_msg;I(!0),d.html('<span class="uploadfile__error">'+i.replace("{{FILENAME}}","<strong>"+x+"</strong>")+"</span>"),S(),d.show(),D("uploadfile.fail",{fileName:x,errorMessage:n})},N=function(e){e?f.text(f.data("replace-text")).removeClass("button--primary").addClass("button--text").addClass("link--primary"):f.text(f.data("choose-text")).addClass("button--primary").removeClass("button--text").removeClass("link--primary")};e.attr("data-intelluminitialized","true"),l.fileupload({autoUpload:!0,replaceFileInput:!1,url:e.data("uploadTo"),type:T?"PUT":"POST",multipart:!T,paramName:"file",fileInput:l,add:function(t,r){var c=l.prop("files"),u=c[0];r.files=c,s=u;var d=function(e){e&&l.fileupload("option","url",e),o=r.submit()};x=l.val().split("\\").pop(),_=u.type||"application/octet-stream";var f=L(u);if(f)O(f);else{if(u&&_.startsWith("image/")){var p=new FileReader;p.onload=function(e){D("uploadfile.preview",{previewUrl:e.target.result,fileName:x,contentType:_})},p.readAsDataURL(u)}T?n.getJSON("/gcs_signed_urls/new?name="+encodeURIComponent(x)+"&content_type="+encodeURIComponent(_),function(e){i=e.get_signed_url,d(e.post_signed_url)}).fail(function(){O()}):n.getJSON("/aws_signed_urls/new?file_name="+encodeURIComponent(x)+"&content_type="+encodeURIComponent(_)+"&max_file_size_mb="+encodeURIComponent(e.data("maxSizeMb"))+"&file_type="+encodeURIComponent(e.data("fileType")),function(e){a=JSON.parse(e.data),d(e.signed_url)}).fail(function(e){O(e.responseJSON.errors[0])})}},send:function(e,n){d.html(t.Intellum.i18nStrings.uploadfile_uploading_msg.replace("{{FILENAME}}","<strong>"+x+"</strong>")),u.attr(y,"init"),c.css("width","0"),f.addClass(b),d.show(),m.hide(),p.show(),T&&delete n.headers["Content-Disposition"],D("uploadfile.start",{fileName:x,fileType:_})},fail:function(){O()},progressall:function(e,t){var n=parseInt(t.loaded/t.total*100,10);"init"===u.attr(y)&&u.attr(y,"uploading"),c.css("width",n+"%")},done:function(t,o){S(),d.html("<strong>"+x+"</strong>"),v&&v.removeClass(w),T||(i=n(o.jqXHR.responseXML).find("Location").text()),i=i.replace(/%2F/g,"/"),g.val(i),g[0].dispatchEvent(new CustomEvent("change")),l.attr("disabled","true"),k?(I(!1),N(!0)):(p.hide(),h.show()),e.attr(E,"true"),r&&r.attr("value","true"),D("uploadfile.complete",{path:i,fileName:x,contentType:_,file:s})}}),l.bind("fileuploadsubmit",function(e,t){if(T)t.headers={"content-type":_};else{var n=a;n["Content-Type"]=_,t.formData=n}}),p.on("click",function(e){e.preventDefault(),o.abort(),I(!0),D("uploadfile.cancel",{fileName:x})}),h.on("click",function(e){e.preventDefault(),I(!0)}),m.on("click",function(t){t.preventDefault(),D("uploadfile.removed",{path:"",fileName:""}),l.val(""),d.html("").hide(),f.removeClass(b),e.attr(E,"false"),m.hide(),S()}),e.on("reset",function(){I(!0)}),e.on("revert",function(e){C(e.originalEvent.detail.initialImageState)}),e.on("error",function(){O(),N(!1)}),e.on("delete",function(){I(!0),N(!1),g.val("DELETE"),r&&r.attr("value","false")})};var i=function(){n(".uploadfile:not([data-intelluminitialized])").each(function(){new t.Intellum.uploadFile(n(this))})};t.Intellum.util.ready(i),t.Intellum.util.reinitialize.register(i)}(window.document,window,jQuery),function(e,t){"use strict";var n,i,r,o,a;t.Intellum=t.Intellum||{},t.Intellum.coursesEdit=(n="#course_is_active",i="#confirm-course-inactive-dialog",r="#cancel_active_checkbox",o=function(t){t.target.matches(n)&&!t.target.checked&&e.querySelector(i).dispatchEvent(new CustomEvent("show.dialog"))},a=function(t){t.target.matches(r)&&(e.querySelector(n).checked=!0)},{init:function(){e.querySelector(n)&&e.querySelector(i)&&e.querySelector(r)&&(e.addEventListener("click",o),e.addEventListener("click",a))}}),Intellum.util.ready(t.Intellum.coursesEdit.init)}(window.document,window),function(e,t,n){n(function(){n("#confirm-drop-activity").on("click",function(){var e=n(this).attr("data-confirm-accept");e&&n.ajax({method:"POST",url:e}).done(function(){t.location="/student/home"})})})}(document,window,jQuery),function(e){var t,n,i,r,o,a,s,l,c,u,d,f,p,h,m,g=(n=e("#sync-button"),i=e("#syncing-in-progress"),r=e("#syncing-downloading"),o=e("#sync-error"),a=e("#syncing-complete"),s=e('[data-check-sync="true"]'),l=e(".dialog__checksynctext"),c=1==n.data("is-syncing"),u=function(e){n.hide(),a.hide(),i.hide();var t="An unexpected error occurred, please refresh and try again";e.responseJSON&&e.responseJSON.error&&(t=e.responseJSON.error),o.show().text(t)},d=function(){e.get(n.data("evolve-sync-status-url"),function(e){"complete"==e.status?(i.hide(),r.hide(),a.show(),clearInterval(t),window.location.reload()):"downloading"==e.status&&(i.hide(),r.show())}).fail(u)},f=function(){n.hide(),o.hide(),i.show(),e.get(n.data("evolve-sync-url"),function(){t=setInterval(d,3e3)}).fail(u),p(!1)},p=function(t){s.each(function(){e(this).attr("data-behavior",t?"show.dialog":""),e(this).attr("data-dialog-id",t?e(this).attr("data-dialog-string"):""),t?e(this).on("click",!1):e(this).off("click",!1)}),t&&window.Intellum.util.reinitialize.trigger(),l.each(function(){t?e(this).removeClass("a11y-hidden"):e(this).addClass("a11y-hidden")})},h=function(){n.is("span")?n.css("display","inline-flex"):n.show().on("click",f),p(!0)},m=function(){e.get(n.data("evolve-sync-required-url"),function(e){e.sync_in_progress?(a.hide(),n.hide(),i.show(),t||(t=setInterval(m,3e3))):(clearInterval(t),t=null,i.hide(),e.is_sync_required?h():a.show())}).fail(function(e){clearInterval(t),t=null,u(e)})},{init:function(){c?(t=setInterval(d,3e3),i.show(),n.hide()):n.length&&m()}});Intellum.util.ready(g.init)}(jQuery),function(e){var t,n,i=(t=function(t){var n=t.parents(".dialog");t.length&&(t.on("ajax:send",function(){t.html(window.Intellum.util.templateStrings.loading)}),t.on("ajax:success",function(i,r){t.replaceWith(r),e(".dialog__close",n).on("click",function(t){t.preventDefault(),t.stopPropagation(),location.href=e("#enrolled_participants_okay_button").attr("href")})}))},n=function(t){var n=e("#send_letter_participants_form");t.addEventListener("rendered.dialog",function(){var e=document.querySelectorAll("input[name=enrollment_ids\\[\\]]:checked"),t=[];Array.prototype.slice.call(e).forEach(function(e){t.push(e.value)}),document.getElementById("send_letter_enrollments_list").value=t,document.getElementById("send_letter_recipients_count").innerHTML=t.length}),n.on("ajax:send",function(){n.html(window.Intellum.util.templateStrings.loading)}),n.on("ajax:success",function(e,t){n.html(t)})},{init:function(){var i=e("#enroll_participants_form"),r=document.getElementById("send_letter_participants_dialog");i.length&&t(i),r&&n(r)}});Intellum.util.ready(i.init)}(jQuery),function(e){var t,n,i,r,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b=(o=".editcourselist",a="editcourselist--empty",s=function(){(n=document.getElementById("edit-course-container"))&&(r=n.getAttribute("data-course-id"),i=document.querySelector(".coursepage"),l(),d(),p(),m(),g(),v(),y())},l=function(){
13var e=document.getElementById("edit-path-sortable-sections");Sortable.create(e,{group:"pathSection",handle:".activitysection__movehandle",draggable:".activitysection--editable",dragClass:"activitysection--dragging",ghostClass:"activitysection__droptarget",scroll:i,scrollSensitivity:100,onEnd:function(e){c({sectionEl:e.item,newIndex:e.newIndex,courseId:r})}})},c=function(t){var n={course_id:t.courseId,id:t.sectionEl.getAttribute("data-section-id"),move_to_position:t.newIndex};e.post("/public_curriculum_activities/update_position/",n).done(function(){})},u=function(){Array.prototype.forEach.call(t,function(e){var t=e.querySelectorAll(".editcourselist__item").length;e.setAttribute("data-count",t)})}
13,d=function(){(t=document.querySelectorAll(o)).length&&Array.prototype.forEach.call(t,function(e){u(e),Sortable.create(e,{group:"pathSectionItems",dragClass:"editcourselist__item--dragging",filter:".editcourselist__emptyitem",ghostClass:"editcourselist__item--droptarget",scroll:i,scrollSensitivity:100,onEnd:function(e){var t=e.from;t.querySelectorAll(".editcourselist__item").length||t.classList.add(a),e.to.classList.remove(a),u(),f({activityEl:e.item,newIndex:e.newIndex,newSection:e.to,courseId:r})},onMove:function(t){e.classList.add("editcourselist--moving"),u(),t.related.classList.remove(a)},onStart:function(e){e.clone.classList.add("editcourselist__item--hiding")},onUpdate:function(){u()}})})},f=function(t){var n={course_id:t.courseId,id:t.activityEl.getAttribute("data-activity-id"),move_to_section_id:t.newSection.getAttribute("data-section-id"),move_to_position:t.newIndex};e.post("/public_curriculum_activities/update_position/",n).done(function(){})},p=function(){autosize(document.querySelectorAll("textarea.editcontent__input"))},h=function(e){var t=document.getElementById("course_name"),n=document.getElementById("curation-topics-checkboxes");return t.value.trim().length?!!n.querySelectorAll(".tagbutton").length||(e&&createFlashNotification(n.dataset.translationSubmissionError,"warning"),!1):(e&&createFlashNotification(t.dataset.translationSubmissionError,"warning"),!1)},m=function(){var e=document.getElementById("course_submission_button");e&&e.addEventListener("click",function(e){h(!0)||e.preventDefault()})},g=function(){var t=document.getElementById("course_featured_state_toggle"),n=document.getElementById("course_featured_state_target");t&&n&&t.addEventListener("change",function(){n.value=t.checked,e(n).trigger("change")})},v=function(){var e=document.getElementById("add-activity-to-public-path");e&&e.addEventListener("rendered.dialog",function(e){document.getElementById("section_id").value=e.detail.trigger.getAttribute("data-section-id");var t=document.getElementById("addNewCurationUrl");t&&(t.value="")}
13)},y=function(){var t=document.getElementById("curation-add-more-topics"),n=document.getElementById("form_public_course_curriculum_categories");t&&n&&t.addEventListener("hide.dialog",function(){e(n).trigger("submit.rails")})},{init:s});Intellum.util.ready(b.init)}(jQuery),function(){var e,t,n,i,r,o,a,s,l,c,u=(r=!1,o=!1,a=function(){(e=document.getElementById("edit-category-develop"))&&(t=document.getElementById("category_allow_develop_tab_target"),n=document.getElementById("uncheck-disclaimer-message-dialog"),i=document.getElementById("invalid-disclaimer-message-dialog"),s(),n&&l(),i&&c())},s=function(){t&&t.addEventListener("change",function(a){if(!t.checked&&!r)return n.dispatchEvent(new window.CustomEvent("show.dialog",{detail:{trigger:null}})),a.preventDefault(),void a.stopPropagation();var s=e.getElementsByTagName("exceed-sortable-items")[0].getAttribute("empty-list-class"),l=e.getElementsByClassName(s);if(t.checked&&l.length>0&&!o)return i.dispatchEvent(new window.CustomEvent("show.dialog",{detail:{trigger:null}})),a.preventDefault(),void a.stopPropagation();r=!1,o=!1})},l=function(){n.querySelector('*[data-behaviour="dialog-accept"]').addEventListener("click",function(){r=!0,n.dispatchEvent(new window.CustomEvent("hide.dialog")),jQuery?jQuery(t).trigger("change"):t.dispatchEvent(new Event("change"))}),n.querySelector('*[data-behaviour="dialog-cancel"]').addEventListener("click",function(){r=!1,t.checked=!0,n.dispatchEvent(new window.CustomEvent("hide.dialog"))})},c=function(){i.querySelector('*[data-behaviour="dialog-accept"]').addEventListener("click",function(){o=!0,i.dispatchEvent(new window.CustomEvent("hide.dialog")),jQuery?jQuery(t).trigger("change"):t.dispatchEvent(new Event("change"))}),i.querySelector('*[data-behaviour="dialog-cancel"]').addEventListener("click",function(){o=!1,t.checked=!1,i.dispatchEvent(new window.CustomEvent("hide.dialog"))})},{init:a});Intellum.util.ready(u.init)}(jQuery),function(e){var t={init:function(){var t=e("#public_curriculum_activity_new_form");t.length&&(t.on("ajax:send",function(){document.getElementById("curation-add-url-submit").disabled=!0,e("#get_external_data").show()}),t.on("ajax:success",function(){location.reload()}),t.on("ajax:error",function(){document.getElementById("curation-add-url-submit").disabled=!1,t.data().errorMessage&&Intellum.flashnotice.show(t.data().errorMessage,"warning")}))}};Intellum.util.ready(t.init)}(jQuery),function(e){var t,n,i,r,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,_,E,A,k,T,I,C,S,D=(p=!1,h=function(){c=e("[data-js-topics-name]"),u=e("[data-js-topics-description]"),t=e("#curation-topic-input"),n=e("#curation-topic-input-results"),i=e("#curation-topics-suggested"),r=e("#curation-topics-save"),o=document.getElementById("curation-add-more-topics"),a=e("#curation-topics-checkboxes"),s=e("#curation-topics-selected"),l=e("#edit-topics-dialog-trigger"),d='<span class="loading--textdots"><span class="a11y-atonly">',d+=Intellum.i18nStrings.loading,d+="</span></span>",p=s.hasClass("publiccourse-selectedtopics--hidden"),f=parseInt(s.data("maxtopics")),o&&a.length&&(m(),C(),_(),k(),T(),S(),I())},m=function(){t.on("keydown",function(e){if(13===e.keyCode)return e.preventDefault(),e.stopPropagation(),!1}),t.on("keyup",Intellum.util.debounce(function(){t.val().trim().length>0?g(t.val().trim()):y(v())},500))},g=function(t){var i="";n.html(d),e.post("/categories/curation_autocomplete",{category:{name:t}}).done(function(r){r.categories.length?r.categories.forEach(function(t){0===e("span[data-topictag-id="+t.id+"]",s).length&&(i+=A(t.name,t.id,t.key))}):i="",n.html(i),e(".tagbutton",n).length||r.categories.length||!t||b()})},v=function(){return[c.val(),u.val()].join(" ")},y=function(t){if(!n.data("useLocalTopics")){var i="",r=e("#edit-course-container[data-course-id]").data("course-id");n.html(d),e.post("/categories/curation_suggestion",{text:t,course_id:r}).done(function(t){t.categories.length?t.categories.forEach(function(t){0===e("span[data-topictag-key="+t.key+"]",s).length&&(i+=A(t.name,t.id,t.key))}):i="",n.html(i),e(".tagbutton",n).length||w()})}},b=function(){var e='<div class="noresults">';e+='<h2 class="noresults__heading">'+n.data("no-topics-match-msg")+"</h2>",e+="<p>"+n.data("add-topic-msg")+"</p>",e+="<p>",e+='<span class="tagbutton">'+t.val()+"</span>",e+="</p>",e+="</div>",n.html(e)},w=function(){var e='<p class="curation__newtopicsmessage">';e+=Intellum.i18nStrings.topicsSuggestionEmpty,e+="</p>",i.html(e)},x=function(){var e='<div class="publiccourse-nocontent">';e+="<p>"+Intellum.i18nStrings.topicsSelectionEmpty+"</p>",e+="</div>",s.html(e)},_=function(){var r=function(){var i=e(this);i.hasClass("tagbutton--selected")||(E(i),p?(1==f&&e(".tagbutton--selected",n).each(function(){e(".tagbutton__remove",this).trigger("click")}),i.append('<button type="button" class="tagbutton__remove" title="'+Intellum.i18nStrings.remove+'">\xd7</button>'),i.addClass("tagbutton--selected")):i.data("topictag-id")||i.data("topictag-key")?i.remove():(g(""),t.val("")))};n.on("click",".tagbutton:not(.tagbutton--selected)",r),i.on("click",".tagbutton",r)},E=function(t){if(!(t.data("topictag-id")&&e("span[data-topictag-id="+t.data("topictag-id")+"]",s).length||t.data("topictag-key")&&e("span[data-topictag-key="+t.data("topictag-key")+"]",s).length)){var n=A(t.text(),t.data("topictag-id"),t.data("topictag-key"),!0);s.find(".tagbutton").length||s.html(""),s.append(n)}},A=function(e,t,n,i,r){var o,a="tagbutton";return i&&(a+=" tagbutton--selected"),t||i||r||(a+=" tagbutton--curationtopicnew"),o='<span class="'+a+'" data-topictag-id="'+(t||!1)+'" data-topicname="'+e+'" data-topictag-key="'+(n||!1)+'">',o+=e,r&&t&&(o+='<input type="hidden" name="course[category_ids][]" value="'+t+'" />'),i&&(o+='<button type="button" class="tagbutton__remove" title="'+Intellum.i18nStrings.remove+'">\xd7</button>'),o+="</span>"},k=function(){p?n.on("click",".tagbutton__remove",function(){var t=e(this).parent(".tagbutton--selected"),n=t.data();e("span[data-topictag-id="+n.topictagId+"][data-topictag-key="+n.topictagKey+"]",s).remove(),e(this).remove(),t.removeClass("tagbutton--selected")}):s.on("click",".tagbutton__remove",function(){var i=e(this).parent(".tagbutton--selected"),r=i.data();i.remove(),s.find(".tagbutton").length||x(),t.length&&t.val().trim().length?g(t.val()):(0==e(".tagbutton",n).length&&n.html(""),n.append(A(r.topicname,r.topictagId,r.topictagKey)))})},T=function(){r.on("click",function(){var t="",n=e(".tagbutton",s),i=e("#edit-topics-dialog-trigger"),r=e("#curation-topics-checkboxes");n.length?(n.each(function(){var n=e(this),i=n.data("topictag-id"),r=n.data("topictag-key");t+=A(n.data("topicname"),i,r,!1,!0)}),i.html(i.data("translation-default")),i.removeClass("button--primary").addClass("button--link")):(t+='<input type="hidden" name="course[category_ids][]" value="" />',i.html(i.data("translation-nocontent")),i.removeClass("button--link").addClass("button--primary")),r.html(t),o.dispatchEvent(new window.CustomEvent("hide.dialog"))})},I=function(){e(document).bind("course-categories-set",function(t,n){var i="";
13n.categories.forEach(function(e){i+=A(e.name,e.id,e.key,!1,!0)}),e("#curation-topics-checkboxes").html(i)})},C=function(){o.addEventListener("hide.dialog",function(){t.val(""),n.data("useLocalTopics")||n.html(""),e(".tagbutton",s).remove()})},S=function(){l.on("click",function(){x(),e(".tagbutton",a).each(function(){E(e(this)),p&&(e("span[data-topictag-id="+e(this).data("topictag-id")+"][data-topictag-key="+e(this).data("topictag-key")+"]",n).length?e("span[data-topictag-id="+e(this).data("topictag-id")+"][data-topictag-key="+e(this).data("topictag-key")+"]",n).addClass("tagbutton--selected"):n.prepend(A(e(this).data("topicname"),e(this).data("topictag-id"),e(this).data("topictag-key"),!0)))}),y(v())})},{init:h});Intellum.util.ready(D.init)}(jQuery),function(e){var t=function(){var t=document.getElementById("profile-public-toggle"),n=document.getElementById("public_profile_target"),i=function(){t&&n&&t.addEventListener("change",function(i){var r=document.getElementById("edit-public-profile-dialog");if("true"==n.getAttribute("data-confirmation")&&r&&t.checked){var o=r.querySelector('button[data-response="true"]');r.querySelector('button[data-response="false"]');o.addEventListener("click",function(){n.value="true",e(n).trigger("change"),r.dispatchEvent(new CustomEvent("hide.dialog"))}),r.addEventListener("hide.dialog",function(){"false"==n.value&&(t.checked=!1)}),r.dispatchEvent(new CustomEvent("show.dialog",{detail:{trigger:i.currentTarget}}))}else n.value=t.checked?"true":"false",e(n).trigger("change")})};(function(){i()})()};Intellum.util.ready(t)}(jQuery);const inFlightSubmissions={};jQuery.fn.extend({keyboardSortable:function(e){const t=$(this),n=t.children().length,i=t.attr("data-choice-id-prefix"),r=$(document.createElement("div")).addClass("a11y-atonly").attr("aria-live","assertive").attr("aria-atomic","true").appendTo(t.parent()),o=t.attr("data-aria-grabbed-message"),a=t.attr("data-aria-dropped-message"),s=t.attr("data-aria-moved-message"),l=t.attr("data-aria-esc-message"),c=function(e){return $("li",t).toArray().findIndex(function(t){return t.id===e.attr("id")})+1},u=function(e){return i?$("#"+i+(c(e)-1)).text().trim():""},d=function(e,t){r.html(t?e.replace("{{POSITION}}",c(t)).replace("{{TOTAL ITEMS}}",n).replace("{{CHOICE TEXT}}",u(t)):e)};this.sortable(e);const f={isMoving:!1},p=function(){f.isMoving&&($("li",t).remove(),t.append(f.originalListItems),f.isMoving=!1,f.originalListItems=null,f.item=null,d(l))};$(document).bind("click",function(e){f.isMoving&&!f.item.contains(e.target)&&p()}),$("li",this).attr("tabindex",0).attr("aria-pressed",!1).attr("aria-describedby","aria-drag-message").bind("keydown",function(e){const n=$(this);[" ","Spacebar"].includes(e.key)?(e.preventDefault(),f.isMoving=!f.isMoving,f.isMoving?(f.originalListItems=$("li",t).clone(!0,!0),f.item=n[0],n.attr("aria-pressed",!0),d(o,n)):(f.originalListItems=null,f.item=null,n.attr("aria-pressed",!1),d(a,n),t.trigger("sortableStop"))):"Escape"===e.key?(e.preventDefault(),p()):["Up","ArrowUp"].includes(e.key)?(e.preventDefault(),f.isMoving?(n.insertBefore(n.prev("li")),d(s,n),n.focus()):n.prev("li").focus()):["Down","ArrowDown"].includes(e.key)?(e.preventDefault(),f.isMoving?(n.insertAfter(n.next("li")),d(s,n),n.focus()):n.next("li").focus()):"Tab"===e.key&&f.isMoving&&(e.preventDefault(),e.stopPropagation(),n.focus())})}}
13),$(function(){var e=$("#time-remaining-display").data("time-remaining"),t=$("#time-remaining-display")[0];t&&(startAssessmentTimer(e,t),$("a.coursebar__close").on("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),$("#confirm_timed_assessment_leave_early")[0].dispatchEvent(new window.CustomEvent("show.dialog"))}),$("#leave_timed_assessment_early_button").on("click",function(){leaveTimedAssessmentEarly()}));var n=$("#timed_assessment_time_ran_out")[0];n&&n.addEventListener("hide.dialog",function(){redirectToActivityURL()});var i=$("#assessment_response_form");if(i.length){i.serialize();$("#submit_answer").on("click",function(e){e.preventDefault(),$("#target_path_after_submit").val(e.currentTarget.getAttribute("data-url")),i.submit()})}setInterval(function(){$(".studentform__textarea").each(function(){var e=$(this),t=256-e.val().length;updateTextAreaCharactersLeft(e.siblings(".question__charcount[aria-hidden]").first(),t)})},100),$(document).on("input",".studentform__textarea",function(){var e=$(this),t=256-e.val().length,n=e.siblings(".question__charcount[role='status']").first();if(0!==n.length){if(0===t)return clearTimeout(e.data("srTimer")),void updateTextAreaCharactersLeft(n,t);clearTimeout(e.data("srTimer")),e.data("srTimer",setTimeout(function(){updateTextAreaCharactersLeft(n,t)},1e3))}}),$(document).on("input"," [data-unsaved-answer-or-grading=false] textarea:not([data-flagging]), [data-unsaved-answer-or-grading=false] input[type='text']",function(){$(this).parents("[data-unsaved-answer-or-grading=false]").attr("data-unsaved-answer-or-grading",!0)}),createSortables(),$(document).on("click",".radio__input[data-non-text-option-of-question-id]",function(){var e=$
13(this).attr("data-non-text-option-of-question-id");$("[data-other-choice-value-question-id="+e+"]").val("")}),$(document).on("click","[data-other-choice-checkox-question-id]",function(){var e=$(this).attr("data-other-choice-checkox-question-id");$(this).is(":checked")?$("[data-other-choice-value-question-id="+e+"]").focus():$("[data-other-choice-value-question-id="+e+"]").val("")}),$(document).on("click","[data-other-choice-value-question-id]",function(){var e=$(this).attr("data-other-choice-value-question-id"),t=$("[data-other-choice-checkox-question-id="+e+"]");t.is(":checked")||t.click()});var r=function(){return!1},o=function(){return!1};$('[data-question-type="grid"]').length>0&&(r=function(){var e=!0;return $('[data-question-type="grid"] tr[data-question-row]').each(function(){if(!(e=$(this).find("input[type=radio]:checked").length>0))return!1}),e},$('[data-question-type="grid"] input[type=radio]').each(function(){$(this).on("change",function(){o=function(){return!0},setQuestionSubmitButtonStatus()})})),$("#media_file_upload").length>0&&(r=function(){return""!==$("#media_asset_id").val()},$("#media_asset_id").on("change",function(){setQuestionSubmitButtonStatus()})),$(".question .rank").length>0&&(r=function(){return $(".question .rank input[type=radio]:checked").length>0},$(".question .rank input[type=radio]").each(function(){$(this).on("change",function(){setQuestionSubmitButtonStatus()})})),$(".question .number_input").length>0&&(r=function(){return $(".question .number_input input[type=text]").val().match(/^[-+]?\d+$/)},$(".question .number_input input[type=text]").on("keyup",function(){setQuestionSubmitButtonStatus()})),$("[data-question-text-area]").length>0&&(r=function(){return""!==$("[data-question-text-area]").val()},$("[data-question-text-area]").on("keyup",function(){setQuestionSubmitButtonStatus()})),$('[data-question-type="multiplechoice"]').length&&(r=function(){return $('[data-question-type="multiplechoice"] input[type=checkbox]:checked, [data-question-type="multiplechoice"] input[type=radio]:checked').length>0},$('[data-question-type="multiplechoice"] input[type=checkbox], [data-question-type="multiplechoice"] input[type=radio]').each(function(){$(this).on("change",function(){setQuestionSubmitButtonStatus()})})),$('[data-question-type="rank"]').length&&(r=function(){return $(".rank__listitem input[type=radio]:checked").length>0},$(".rank__listitem input[type=radio]").each(function(){$(this).on("change",function(){setQuestionSubmitButtonStatus()})})),$('[data-question-type="checklist"]').length&&(r=function(){return!0}),$(".sequence, .matching").length>0&&(r=function(){return!0});var a=$("#assessment_response_question_grading_comment");a.length>0&&a.on("input",function(){setQuestionSubmitButtonStatus()}
13),window.setQuestionSubmitButtonStatus=function(){var e=$("#assessment-response-submit, #submit_answer"),t=e.data("optionalQuestion");"feedback_prompt"!=e.data("questionType")||t?r()?enableButton(e,e.data("submitText")):t&&!o()?enableButton(e,e.data("skipText")):disableButton(e,e.data("submitText")):$("#assessment_response_question_grading_comment").val().length>0?enableButton(e,e.data("submitText")):disableButton(e,e.data("submitText"))},window.enableButton=function(e,t){e.attr("readonly",!1),e.removeClass("button--disabled"),e.find(".text").html(t)},window.disableButton=function(e,t){e.attr("readonly",!0),e.addClass("button--disabled"),e.find(".text").html(t)},setQuestionSubmitButtonStatus(),$(document).on("submit","#assessment_response_form",function(e){$(this).find("button.button--disabled").length>0&&(e.stopPropagation(),e.preventDefault())}),$(document).on("click","#feedback_form button.button--disabled",function(e){e.stopPropagation(),e.preventDefault()}),$(document).on("keyup","#assessment_response_feedback_body",function(){var e=$
13(this),t=$("#submit-feedback");""===e.val()?(t.attr("readonly",!0),t.addClass("button--disabled"),t.find(".text").html(t.data("submitText"))):(t.attr("readonly",!1),t.removeClass("button--disabled"),t.find(".text").html(t.data("submitText")))}),handleSectionNavigation(),$(document).on("click","a[data-assessment-single-page-submit]",function(e){return e.preventDefault(),e.stopPropagation(),"true"==$(this).attr("data-already-clicked")||($(this).attr("data-already-clicked",!0),$(this).text($(this).attr("data-clicked-text")),handleAssessmentSubmitOrSectionMove($(this))),!1}),$(document).on("click","button[data-show-comment-section]",function(){$(this).next(".assessment__subsection").removeClass("hide"),$(this).remove()}),$(document).on("change",".toggleswitch__input",function(){$(this).is(":checked")?($("#"+$(this).attr("data-element-to-check-when-checked")).prop("checked",!0),$("#"+$(this).attr("data-element-to-check-when-unchecked")).prop("checked",!1)):($("#"+$(this).attr("data-element-to-check-when-checked")).prop("checked",!1),$("#"+$(this).attr("data-element-to-check-when-unchecked")).prop("checked",!0))})}
13),$(function(){var e=$("#grading-form"),t=$("#submit-grade-button");if(e.length){var n=e.serialize(),i=!1;t.on("click",function(r){if($(this).is(".disabled")||$(this).is(".button--disabled"))r.preventDefault();else{var o=$(this).attr("href"),a=$("#target_path_after_submit").val();e.serialize()!==n||t.data("is-new-grading")?(""===a&&$("#target_path_after_submit").val(o),r.preventDefault(),e.submit()):""!==a||i?$(this).attr("href",a):(i=!0,location.href=o)}});var r=function(){return $('[name^="assessment_response_question_grading[points"]:checked, [name^="toggle-assessment_response_question_grading[points"]:checked, input[type="hidden"][name^="assessment_response_question_grading[points"]').length>0},o=function(){var e="addClass";(t.data("isAutomaticallyGraded")||r())&&(e="removeClass"),t[e]("button--disabled")};o(),$('[name="toggle-assessment_response_question_grading[points]"]').change(function(){o()}),$('[name^="assessment_response_question_grading[points"]').change(function(){o()})}});

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