var Markdown;!function(){var e=null;window.Logster||(window.Logster={enabled:!0}),window.onerror=function(t,n,r,o,i){if(!(e&&new Date-e<6e4)&&Logster.enabled){e=new Date;var a={message:t,url:n,line:r,column:o,window_location:window.location&&window.location+""};i&&i.stack&&(a.stacktrace=i.stack),$.ajax("/logs/report_js_error",{data:a,type:"POST",cache:!1})}}}(), /**! @license handlebars v4.7.7 Copyright (C) 2011-2019 by Yehuda Katz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Handlebars=t():e.Handlebars=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";var r=n(1).default,o=n(2).default;t.__esModule=!0;var i=r(n(3)),a=o(n(36)),s=o(n(5)),u=r(n(4)),l=r(n(37)),c=o(n(43));function f(){var e=new i.HandlebarsEnvironment;return u.extend(e,i),e.SafeString=a.default,e.Exception=s.default,e.Utils=u,e.escapeExpression=u.escapeExpression,e.VM=l,e.template=function(t){return l.template(t,e)},e}var p=f();p.create=f,c.default(p),p.default=p,t.default=p,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__esModule=!0},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,n){"use strict";var r=n(2).default;t.__esModule=!0,t.HandlebarsEnvironment=f;var o=n(4),i=r(n(5)),a=n(9),s=n(29),u=r(n(31)),l=n(32);t.VERSION="4.7.7";t.COMPILER_REVISION=8;t.LAST_COMPATIBLE_COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var c="[object Object]";function f(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},a.registerDefaultHelpers(this),s.registerDefaultDecorators(this)}f.prototype={constructor:f,logger:u.default,log:u.default.log,registerHelper:function(e,t){if(o.toString.call(e)===c){if(t)throw new i.default("Arg not supported with multiple helpers");o.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(o.toString.call(e)===c)o.extend(this.partials,e);else{if(void 0===t)throw new i.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(o.toString.call(e)===c){if(t)throw new i.default("Arg not supported with multiple decorators");o.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){l.resetLoggedProperties()}};var p=u.default.log;t.log=p,t.createFrame=o.createFrame,t.logger=u.default},function(e,t){"use strict";t.__esModule=!0,t.extend=a,t.indexOf=function(e,t){for(var n=0,r=e.length;n":">",'"':""","'":"'","`":"`","=":"="},r=/[&<>"'`=]/g,o=/[&<>"'`=]/;function i(e){return n[e]}function a(e){for(var t=1;t0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):o(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return i(t,n)}))},e.exports=t.default},function(e,t,n){(function(r){"use strict";var o=n(12).default,i=n(2).default;t.__esModule=!0;var a=n(4),s=i(n(5));t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new s.default("Must pass iterator to #each");var n,i=t.fn,u=t.inverse,l=0,c="",f=void 0,p=void 0;function d(t,n,r){f&&(f.key=t,f.index=n,f.first=0===n,f.last=!!r,p&&(f.contextPath=p+t)),c+=i(e[t],{data:f,blockParams:a.blockParams([e[t],t],[p+t,null])})}if(t.data&&t.ids&&(p=a.appendContextPath(t.data.contextPath,t.ids[0])+"."),a.isFunction(e)&&(e=e.call(this)),t.data&&(f=a.createFrame(t.data)),e&&"object"==typeof e)if(a.isArray(e))for(var h=e.length;l=0?t:parseInt(e,10)}return e},log:function(e){if(e=o.lookupLevel(e),"undefined"!=typeof console&&o.lookupLevel(o.level)<=e){var t=o.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i=l.LAST_COMPATIBLE_COMPILER_REVISION&&t<=l.COMPILER_REVISION)return;if(t0&&(f--,y=!1);var w={"X-SILENCE-LOGGER":"true"};for(var x in e.headers)w[x]=e.headers[x];y||(w["Dont-Chunk"]="true");var k=y?"text":"json",O=function(e,t){var r="\r\n|\r\n",o=e.indexOf(r,t);if(-1===o)return t;var i=e.substring(t,o);i=i.replace(/\r\n\|\|\r\n/g,r);try{b(JSON.parse(i))}catch(e){console.log&&(console.log("FAILED TO PARSE CHUNKED REPLY"),console.log(n))}return O(e,o+r.length)},E=function(){e.longPoll&&(e.longPoll.abort(),f=30)};if(!e.ajax)throw new Error("Either jQuery or the ajax adapter must be loaded");return g&&localStorage.setItem("__mbLastAjax",Date.now()),o=!0,e.ajax({url:e.baseUrl+"message-bus/"+e.clientId+"/poll"+(v?"":"?dlp=t"),data:n,async:!0,dataType:k,type:"POST",headers:w,messageBus:{chunked:y,onProgressListener:function(e){var t=0,n=setTimeout(E,3e3);return e.onprogress=function(){clearTimeout(n),"application/json; charset=utf-8"===e.getResponseHeader("Content-Type")?y=!1:t=O(e.responseText,t)}}},xhr:function(){var e=jQuery.ajaxSettings.xhr();return y?(this.messageBus.onProgressListener(e),e):e},success:function(e){y||("string"==typeof e&&(e=JSON.parse(e)),s=b(e))},error:function(e,t,n){if(429===e.status){var r=parseInt(e.getResponseHeader&&e.getResponseHeader("Retry-After"))||0;(r=r||0)<15&&(r=15),a=r,c=!0}else"abort"===t?l=!0:(u+=1,d+=1)},complete:function(){var n;o=!1;try{c?n=Math.max(e.minPollInterval,1e3*a):s||l?n=e.minPollInterval:(n=e.callbackInterval,u>2?n*=u:_()||(n=e.backgroundCallbackInterval),n>e.maxPollInterval&&(n=e.maxPollInterval),(n-=new Date-r)<100&&(n=100))}catch(e){console.log&&e.message&&console.log("MESSAGE BUS FAIL: "+e.message)}p&&(clearTimeout(p),p=null),i&&(p=setTimeout((function(){p=null,t()}),n)),e.longPoll=null}})}};return e={minHiddenPollInterval:1500,enableChunkedEncoding:!0,enableLongPolling:!0,callbackInterval:15e3,backgroundCallbackInterval:6e4,minPollInterval:100,maxPollInterval:18e4,callbacks:s,clientId:a,alwaysLongPoll:!1,shouldLongPollCallback:void 0,baseUrl:"/",headers:{},ajax:"undefined"!=typeof jQuery&&jQuery.ajax,diagnostics:function(){console.log("Stopped: "+n+" Started: "+i),console.log("Current callbacks"),console.log(s),console.log("Total ajax calls: "+h+" Recent failure count: "+u+" Total failures: "+d),console.log("Last ajax call: "+(new Date-r)/1e3+" seconds ago")},pause:function(){l=!0},resume:function(){l=!1,y(c),c=[]},stop:function(){n=!0,i=!1,t&&(clearTimeout(t),t=null),e.longPoll&&e.longPoll.abort()},start:function(){if(!i){i=!0,n=!1;var r=function(){if(!n)if(0===s.length||function(){if(g&&v()){var t=parseInt(localStorage.getItem("__mbLastAjax"),10),n=Date.now()-t;return n>=0&&n=0;i--){var a,u=s[i];!(a=r?u.channel.substr(0,t.length)!==t:u.channel!==t)&&n&&u.func!==n&&(a=!0),a||(s.splice(i,1),o=!0)}return o&&e.longPoll&&e.longPoll.abort(),o}}})), /*! jQuery UI - v1.12.1+0b7246b6eeadfa9e2696e22f3230f6452f8129dc - 2020-02-20 * http://jqueryui.com * Includes: widget.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery)}((function(e){e.ui=e.ui||{},e.ui.version="1.12.1", /*! * jQuery UI Widget 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ e.expr.pseudos||(e.expr.pseudos=e.expr[":"]),e.uniqueSort||(e.uniqueSort=e.unique);var t,n=0,r=Array.prototype.hasOwnProperty,o=Array.prototype.slice;e.cleanData=(t=e.cleanData,function(n){var r,o,i;for(i=0;null!=(o=n[i]);i++)(r=e._data(o,"events"))&&r.remove&&e(o).triggerHandler("remove");t(n)}),e.widget=function(t,n,r){var o,i,a,s={},u=t.split(".")[0],l=u+"-"+(t=t.split(".")[1]);return r||(r=n,n=e.Widget),e.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr.pseudos[l.toLowerCase()]=function(t){return!!e.data(t,l)},e[u]=e[u]||{},o=e[u][t],i=e[u][t]=function(e,t){if(!this._createWidget)return new i(e,t);arguments.length&&this._createWidget(e,t)},e.extend(i,o,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),(a=new n).options=e.widget.extend({},a.options),e.each(r,(function(t,r){e.isFunction(r)?s[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,i=this._superApply;return this._super=e,this._superApply=o,t=r.apply(this,arguments),this._super=n,this._superApply=i,t}}():s[t]=r})),i.prototype=e.widget.extend(a,{widgetEventPrefix:o&&a.widgetEventPrefix||t},s,{constructor:i,namespace:u,widgetName:t,widgetFullName:l}),o?(e.each(o._childConstructors,(function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,i,n._proto)})),delete o._childConstructors):n._childConstructors.push(i),e.widget.bridge(t,i),i},e.widget.extend=function(t){for(var n,i,a=o.call(arguments,1),s=0,u=a.length;s",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,n){t._removeClass(n,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var r,o,i,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},r=t.split("."),t=r.shift(),r.length){for(o=a[t]=e.widget.extend({},this.options[t]),i=0;i");c.append("");var p=function(){if("function"==typeof o)return o(null)},d=function(){if("function"==typeof o)return o(c.find("input[type=text]").val())},h=l.dialog(c,[{label:n,icon:u.CANCEL,class:s.CANCEL,callback:p},{label:r,icon:u.CONFIRM,class:s.CONFIRM,callback:d}],{header:a,show:!1,onEscape:p});return h.on("shown",(function(){c.find("input[type=text]").focus(),c.on("submit",(function(e){e.preventDefault(),h.find(".btn-primary").click()}))})),h.modal("show"),h},dialog:function(n,s,u){var c="",f=[];u||(u={}),void 0===s?s=[]:void 0===s.length&&(s=[s]);for(var p=s.length;p--;){var d=null,h="btn-default",v="",g=null;if(void 0===s[p].label&&void 0===s[p].class&&void 0===s[p].callback){var m=0,_=null;for(var y in s[p])if(_=y,++m>1)break;1==m&&"function"==typeof s[p][y]&&(s[p].label=_,s[p].callback=s[p][y])}"function"==typeof s[p].callback&&(g=s[p].callback),s[p].class?h=s[p].class:p==s.length-1&&s.length<=2&&(h="btn-primary"),!0!==s[p].link&&(h="btn "+h),d=s[p].label?s[p].label:"Option "+(p+1),s[p].icon&&(v=s[p].icon),c=c+""+v+""+d+"",f[p]=g}var b=["");var x=t(b.join("\n"));(void 0===u.animate?r:u.animate)&&x.addClass("fade");var k=void 0===u.classes?a:u.classes;function O(e){var t=null;"function"==typeof u.onEscape&&(t=u.onEscape()),!1!==t&&x.modal("hide")}return k&&x.addClass(k),x.find(".modal-body").html(n),x.on("keyup.dismiss.modal",(function(e){27===e.which&&!1!==u.onEscape&&O()})),x.on("click","a.close",(function(e){e.preventDefault(),O()})),x.on("shown.bs.modal",(function(){x.find("a.btn-primary:first").focus()})),x.on("hidden.bs.modal",(function(){x.remove()})),x.on("click",".modal-footer a",(function(e){var n=this;Ember.run((function(){var r=t(n).data("handler"),o=f[r],i=null;void 0!==r&&void 0!==s[r].href||(e.preventDefault(),"function"==typeof o&&(i=o(e)),!1!==i&&x.modal("hide"))}))})),(l.$body||t("body")).append(x),x.modal({backdrop:void 0===u.backdrop?o:u.backdrop,keyboard:!1,show:!1}),x.on("show",(function(n){t(e).off("focusin.modal")})),void 0!==u.show&&!0!==u.show||x.modal("show"),x},modal:function(){var e,n,r,i={onEscape:null,keyboard:!0,backdrop:o};switch(arguments.length){case 1:e=arguments[0];break;case 2:e=arguments[0],"object"==typeof arguments[1]?r=arguments[1]:n=arguments[1];break;case 3:e=arguments[0],n=arguments[1],r=arguments[2];break;default:throw new Error("Incorrect number of arguments: expected 1-3")}return i.header=n,r="object"==typeof r?t.extend(i,r):i,l.dialog(e,[],r)},hideAll:function(){t(".bootbox").modal("hide")},animate:function(e){r=e},backdrop:function(e){o=e},classes:function(e){a=e}},c={br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierdź"},ru:{OK:"OK",CANCEL:"Отмена",CONFIRM:"Применить"},zh_CN:{OK:"OK",CANCEL:"取消",CONFIRM:"确认"},zh_TW:{OK:"OK",CANCEL:"取消",CONFIRM:"確認"}};function f(e,t){return void 0===t&&(t=n),"string"==typeof c[t][e]?c[t][e]:"en"!=t?f(e,"en"):e}return l}(document,window.jQuery);window.bootbox=bootbox,define("bootbox",["exports"],(function(e){e.default=window.bootbox})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Popper={})}(this,(function(e){"use strict";function t(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function n(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function r(e){var t=n(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function o(e){return e instanceof n(e).Element}function i(e){return e instanceof n(e).HTMLElement}function a(e){return e?(e.nodeName||"").toLowerCase():null}function s(e){return(o(e)?e.ownerDocument:e.document).documentElement}function u(e){return t(s(e)).left+r(e).scrollLeft}function l(e,o,l){var c;void 0===l&&(l=!1);var f,p,d=t(e),h={scrollLeft:0,scrollTop:0},v={x:0,y:0};return l||("body"!==a(o)&&(h=(f=o)!==n(f)&&i(f)?{scrollLeft:(p=f).scrollLeft,scrollTop:p.scrollTop}:r(f)),i(o)?((v=t(o)).x+=o.clientLeft,v.y+=o.clientTop):(c=s(o))&&(v.x=u(c))),{x:d.left+h.scrollLeft-v.x,y:d.top+h.scrollTop-v.y,width:d.width,height:d.height}}function c(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function f(e){return"html"===a(e)?e:e.parentNode||e.host||document.ownerDocument||document.documentElement}function p(e){return n(e).getComputedStyle(e)}function d(e){if(["html","body","#document"].indexOf(a(e))>=0)return e.ownerDocument.body;if(i(e)){var t=p(e),n=t.overflow,r=t.overflowX,o=t.overflowY;if(/auto|scroll|overlay|hidden/.test(n+o+r))return e}return d(f(e))}function h(e,t){void 0===t&&(t=[]);var r=d(e),o="body"===a(r),i=o?n(r):r,s=t.concat(i);return o?s:s.concat(h(f(i)))}function v(e){return["table","td","th"].indexOf(a(e))>=0}function g(e){var t;return!i(e)||!(t=e.offsetParent)||void 0!==window.InstallTrigger&&"fixed"===p(t).position?null:t}function m(e){for(var t=n(e),r=g(e);r&&v(r);)r=g(r);return r&&"body"===a(r)&&"static"===p(r).position?t:r||t}var _="top",y="bottom",b="right",w="left",x="auto",k=[_,y,b,w],O="start",E="end",j="viewport",C="popper",T=k.reduce((function(e,t){return e.concat([t+"-"+O,t+"-"+E])}),[]),I=[].concat(k,[x]).reduce((function(e,t){return e.concat([t,t+"-"+O,t+"-"+E])}),[]),P=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function S(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==u.reset){var i=u.orderedModifiers[o],a=i.fn,s=i.options,f=void 0===s?{}:s,p=i.name;"function"==typeof a&&(u=a({state:u,options:f,name:p,instance:v})||u)}else u.reset=!1,o=-1}}else console.error(M)}},update:(i=function(){return new Promise((function(e){v.forceUpdate(),e(u)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){g(),d=!0}};if(!L(e,t))return console.error(M),v;function g(){f.forEach((function(e){return e()})),f=[]}return v.setOptions(n).then((function(e){!d&&n.onFirstUpdate&&n.onFirstUpdate(e)})),v}}var q={passive:!0};function B(e){return e.split("-")[1]}function $(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function U(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?N(o):null,a=o?B(o):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case _:t={x:s,y:n.y-r.height};break;case y:t={x:s,y:n.y+n.height};break;case b:t={x:n.x+n.width,y:u};break;case w:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var l=i?$(i):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case O:t[l]=Math.floor(t[l])-Math.floor(n[c]/2-r[c]/2);break;case E:t[l]=Math.floor(t[l])+Math.ceil(n[c]/2-r[c]/2)}}return t}var W={top:"auto",right:"auto",bottom:"auto",left:"auto"};function z(e){var t,r=e.popper,o=e.popperRect,i=e.placement,a=e.offsets,u=e.position,l=e.gpuAcceleration,c=e.adaptive,f=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(a),p=f.x,d=f.y,h=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),g=w,x=_,k=window;if(c){var O=m(r);O===n(r)&&(O=s(r)),i===_&&(x=y,d-=O.clientHeight-o.height,d*=l?1:-1),i===w&&(g=b,p-=O.clientWidth-o.width,p*=l?1:-1)}var E,j=Object.assign({position:u},c&&W);return l?Object.assign({},j,((E={})[x]=v?"0":"",E[g]=h?"0":"",E.transform=(k.devicePixelRatio||1)<2?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",E)):Object.assign({},j,((t={})[x]=v?d+"px":"",t[g]=h?p+"px":"",t.transform="",t))}var V={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=I.reduce((function(e,n){return e[n]=function(e,t,n){var r=N(e),o=[w,_].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[w,b].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l,t.modifiersData[r]=a}},K={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,(function(e){return K[e]}))}var Q={start:"end",end:"start"};function G(e){return e.replace(/start|end/g,(function(e){return Q[e]}))}function Z(e){return parseFloat(e)||0}function J(e){var t=n(e),r=function(e){var t=i(e)?p(e):{};return{top:Z(t.borderTopWidth),right:Z(t.borderRightWidth),bottom:Z(t.borderBottomWidth),left:Z(t.borderLeftWidth)}}(e),o="html"===a(e),s=u(e),l=e.clientWidth+r.right,c=e.clientHeight+r.bottom;return o&&t.innerHeight-e.clientHeight>50&&(c=t.innerHeight-r.bottom),{top:o?0:e.clientTop,right:e.clientLeft>r.left?r.right:o?t.innerWidth-l-s:e.offsetWidth-l,bottom:o?t.innerHeight-c:e.offsetHeight-c,left:o?s:e.clientLeft}}function Y(e,t){var n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ee(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function te(e,o){return o===j?ee(function(e){var t=n(e);return{width:t.innerWidth,height:t.innerHeight,x:0,y:0}}(e)):i(o)?t(o):ee(function(e){var t=n(e),o=r(e),i=l(s(e),t);return i.height=Math.max(i.height,t.innerHeight),i.width=Math.max(i.width,t.innerWidth),i.x=-o.scrollLeft,i.y=-o.scrollTop,i}(s(e)))}function ne(e,t,n){var r="clippingParents"===t?function(e){var t=h(e),n=["absolute","fixed"].indexOf(p(e).position)>=0&&i(e)?m(e):e;return o(n)?t.filter((function(e){return o(e)&&Y(e,n)})):[]}(e):[].concat(t),a=[].concat(r,[n]),u=a[0],l=a.reduce((function(t,n){var r=te(e,n),o=J(i(n)?n:s(e));return t.top=Math.max(r.top+o.top,t.top),t.right=Math.min(r.right-o.right,t.right),t.bottom=Math.min(r.bottom-o.bottom,t.bottom),t.left=Math.max(r.left+o.left,t.left),t}),te(e,u));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function re(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},{},e)}function oe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ie(e,n){void 0===n&&(n={});var r=n,i=r.placement,a=void 0===i?e.placement:i,u=r.boundary,l=void 0===u?"clippingParents":u,c=r.rootBoundary,f=void 0===c?j:c,p=r.elementContext,d=void 0===p?C:p,h=r.altBoundary,v=void 0!==h&&h,g=r.padding,m=void 0===g?0:g,w=re("number"!=typeof m?m:oe(m,k)),x=d===C?"reference":C,O=e.elements.reference,E=e.rects.popper,T=e.elements[v?x:d],I=ne(o(T)?T:s(e.elements.popper),l,f),P=t(O),S=U({reference:P,element:E,strategy:"absolute",placement:a}),A=ee(Object.assign({},E,{},S)),R=d===C?A:P,D={top:I.top-R.top+w.top,bottom:R.bottom-I.bottom+w.bottom,left:I.left-R.left+w.left,right:R.right-I.right+w.right},N=e.modifiersData.offset;if(d===C&&N){var M=N[a];Object.keys(D).forEach((function(e){var t=[b,y].indexOf(e)>=0?1:-1,n=[_,y].indexOf(e)>=0?"y":"x";D[e]+=M[n]*t}))}return D}var ae={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.fallbackPlacements,i=n.padding,a=n.boundary,s=n.rootBoundary,u=n.flipVariations,l=void 0===u||u,c=t.options.placement,f=N(c),p=o||(f===c||!l?[X(c)]:function(e){if(N(e)===x)return[];var t=X(e);return[G(e),t,G(t)]}(c)),d=[c].concat(p).reduce((function(e,n){return e.concat(N(n)===x?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=B(r),l=u?s?T:T.filter((function(e){return B(e)===u})):k,c=l.reduce((function(t,n){return t[n]=ie(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[N(n)],t}),{});return Object.keys(c).sort((function(e,t){return c[e]-c[t]}))}(t,{placement:n,boundary:a,rootBoundary:s,padding:i,flipVariations:l}):n)}),[]),h=t.rects.reference,v=t.rects.popper,g=new Map,m=!0,E=d[0],j=0;j=0,A=S?"width":"height",R=ie(t,{placement:C,boundary:a,rootBoundary:s,padding:i}),D=S?P?b:w:P?y:_;h[A]>v[A]&&(D=X(D));var M=X(D),F=[R[I]<=0,R[D]<=0,R[M]<=0];if(F.every((function(e){return e}))){E=C,m=!1;break}g.set(C,F)}if(m)for(var L=function(e){var t=d.find((function(t){var n=g.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},H=l?3:1;H>0;H--){if("break"===L(H))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function se(e,t,n){return Math.max(e,Math.min(t,n))}var ue={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,l=n.rootBoundary,f=n.padding,p=n.tether,d=void 0===p||p,h=n.tetherOffset,v=void 0===h?0:h,g=ie(t,{boundary:u,rootBoundary:l,padding:f}),m=N(t.placement),x=B(t.placement),k=!x,E=$(m),j="x"===E?"y":"x",C=t.modifiersData.popperOffsets,T=t.rects.reference,I=t.rects.popper,P="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,S={x:0,y:0};if(i){var A="y"===E?_:w,R="y"===E?y:b,D="y"===E?"height":"width",M=C[E],F=C[E]+g[A],L=C[E]-g[R],H=d?-I[D]/2:0,q=x===O?T[D]:I[D],U=x===O?-I[D]:-T[D],W=t.elements.arrow,z=d&&W?c(W):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=V[A],X=V[R],Q=se(0,T[D],z[D]),G=k?T[D]/2-H-Q-K-P:q-Q-K-P,Z=k?-T[D]/2+H+Q+X+P:U+Q+X+P,J=t.modifiersData.offset?t.modifiersData.offset[t.placement][E]:0,Y=C[E]+G-J,ee=C[E]+Z-J,te=se(d?Math.min(F,Y):F,M,d?Math.max(L,ee):L);C[E]=te,S[E]=te-M}if(s){var ne="x"===E?_:w,re="x"===E?y:b,oe=C[j],ae=se(oe+g[ne],oe,oe-g[re]);t.modifiersData.popperOffsets[j]=ae,S[j]=ae-oe}t.modifiersData[r]=S},requiresIfExists:["offset"]};var le={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=n.elements.arrow,i=n.modifiersData.popperOffsets,a=N(n.placement),s=$(a),u=[w,b].indexOf(a)>=0?"height":"width";if(o){var l=n.modifiersData[r+"#persistent"].padding,f=c(o),p="y"===s?_:w,d="y"===s?y:b,h=(n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u])/2-(i[s]-n.rects.reference[s])/2,v=se(l[p],n.rects.popper[u]/2-f[u]/2+h,n.rects.popper[u]-f[u]-l[d]),g=s;n.modifiersData[r]=((t={})[g]=v,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,o=n.element,i=void 0===o?"[data-popper-arrow]":o,a=n.padding,s=void 0===a?0:a;("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&(Y(t.elements.popper,i)?(t.elements.arrow=i,t.modifiersData[r+"#persistent"]={padding:re("number"!=typeof s?s:oe(s,k))}):console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ce(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 fe(e){return[_,b,y,w].some((function(t){return e[t]>=0}))}var pe=[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,u=void 0===s||s,l=n(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",r.update,q)})),u&&l.addEventListener("resize",r.update,q),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",r.update,q)})),u&&l.removeEventListener("resize",r.update,q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=U({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=p(t.elements.popper).transitionProperty;a&&["transform","top","right","bottom","left"].some((function(e){return s.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var u={placement:N(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.styles.popper=Object.assign({},t.styles.popper,{},z(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a}))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,{},z(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(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)&&a(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)})))}))},effect:function(e){var t=e.state,n={popper:{position:"absolute",left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),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]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});i(r)&&a(r)&&(Object.assign(r.style,s),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},V,ae,ue,le,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ie(t,{elementContext:"reference"}),s=ie(t,{altBoundary:!0}),u=ce(a,r),l=ce(s,o,i),c=fe(u),f=fe(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}],de=H({defaultModifiers:pe});e.createPopper=de,e.defaultModifiers=pe,e.popperGenerator=H,Object.defineProperty(e,"__esModule",{value:!0})})),function(e){"use strict";var t=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};function n(n,r){return this.each((function(){var o=e(this),i=o.data("bs.modal"),a=e.extend({},t.DEFAULTS,o.data(),"object"==typeof n&&n);i||o.data("bs.modal",i=new t(this,a)),"string"==typeof n?i[n](r):a.show&&i.show(r)}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(n){var r=this,o=e.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",(function(){r.$element.one("mouseup.dismiss.bs.modal",(function(t){e(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var o=e.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),o&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus();var i=e.Event("shown.bs.modal",{relatedTarget:n});o?r.$dialog.one("bsTransitionEnd",(function(){r.$element.trigger("focus").trigger(i)})).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(i)})))},t.prototype.hide=function(n){n&&n.preventDefault(),n=e.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy((function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")}),this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy((function(e){27==e.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop((function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")}))},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(n){var r=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&o;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy((function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())}),this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;i?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){r.removeBackdrop(),n&&n()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):a()}else n&&n()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth

").appendTo("body")).find("p");var v=$("html").hasClass("rtl");clone.css({border:"1px solid black",padding:i("padding"),resize:i("resize"),"max-height":d.height()+"px","overflow-y":"auto","word-wrap":"break-word",position:"absolute",left:v?"auto":"-7000px",right:v?"-7000px":"auto"}),l.css({margin:0,padding:0,"word-wrap":"break-word","letter-spacing":i("letter-spacing"),"font-family":i("font-family"),"font-size":i("font-size"),"line-height":i("line-height")}),clone.width(d.width()),clone.height(d.height()),f=e&&(e.pos||0===e.pos)?e.pos:$.caret(d[0]),h=d.val().replace("\r",""),e&&e.key&&(h=h.substring(0,f)+e.key+h.substring(f)),t=f,a=!1,"\n"===h[n=f-1]&&"\n"===h[t]&&(a=!0),r=function(e){return e.replace(//g,">").replace(/[ ]/g,"​ ​").replace(/\n/g,"
")},u=function(e,t,n){var o;return"\n"===(o=h.substring(e,e+1))?"
":""+r(o)+""},o="",n>=0&&(o+=r(h.substring(0,f-1))+u(n,"before","#d0ffff"),a&&(o+=u(0,"post-before","#d0ffff"))),t>=0&&(o+=u(t,"after","#ffd0ff"),t-1u.mod/2?i+=u.mod:i-s>u.mod/2&&(i-=u.mod)),f[o]=p((s-i)*t+i,r)))})),this[r](f)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),r=n.pop(),o=s(t)._rgba;return s(e.map(n,(function(e,t){return(1-r)*o[t]+r*e})))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,(function(e,t){return null!=e?e:t>2?1:0}));return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),(function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e}));return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),r=n.pop();return t&&n.push(~~(255*r)),"#"+e.map(n,(function(e){return("0"+(e||0).toString(16)).substr(-2)})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),s.fn.parse.prototype=s.fn,u.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,a=e[3],s=Math.max(r,o,i),u=Math.min(r,o,i),l=s-u,c=s+u,f=.5*c;return t=u===s?0:r===s?60*(o-i)/l+360:o===s?60*(i-r)/l+120:60*(r-o)/l+240,n=0===l?0:f<=.5?l/c:l/(2-c),[Math.round(t)%360,n,f,null==a?1:a]},u.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],r=e[2],o=e[3],i=r<=.5?r*(1+n):r+n-r*n,a=2*r-i;return[Math.round(255*h(a,i,t+1/3)),Math.round(255*h(a,i,t)),Math.round(255*h(a,i,t-1/3)),o]},c(u,(function(e,n){var r=n.props,o=n.cache,a=n.to,u=n.from;s.fn[e]=function(e){if(a&&!this[o]&&(this[o]=a(this._rgba)),e===t)return this[o].slice();var n,i=f(e),l="array"===i||"object"===i?e:arguments,d=this[o].slice();return c(r,(function(e,t){var n=l["object"===i?e:t.idx];null==n&&(n=d[t.idx]),d[t.idx]=p(n,t)})),u?((n=s(u(d)))[o]=d,n):s(d)},c(r,(function(t,n){s.fn[t]||(s.fn[t]=function(r){var o,a,s,u,l=f(r);return a=(o=this[u="alpha"===t?this._hsla?"hsla":"rgba":e]())[n.idx],"undefined"===l?a:("function"===l&&(l=f(r=r.call(this,a))),null==r&&n.empty?this:("string"===l&&(s=i.exec(r))&&(r=a+parseFloat(s[2])*("+"===s[1]?1:-1)),o[n.idx]=r,this[u](o)))})}))})),s.hook=function(t){var n=t.split(" ");c(n,(function(t,n){e.cssHooks[n]={set:function(e,t){var r;"transparent"===t||"string"===f(t)&&!(r=d(t))||(t=(t=s(r||t)).toRgbaString()),e.style[n]=t}},e.fx.step[n]=function(t){t.colorInit||(t.start=s(t.elem,n),t.end=s(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}}))},s.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return c(["Top","Right","Bottom","Left"],(function(n,r){t["border"+r+"Color"]=e})),t}},n=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery-ui/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(r){r.dataTransfer=r.originalEvent&&r.originalEvent.dataTransfer;var o=r.dataTransfer;o&&-1!==e.inArray("Files",o.types)&&!1!==this._trigger(t,e.Event(t,{delegatedEvent:r}))&&(r.preventDefault(),n&&(o.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('').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,uniqueFilenames:void 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(){var e=this.slice||this.webkitSlice||this.mozSlice;return e.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 r=e-this.timestamp;return(!this.bitrate||!n||r>n)&&(this.bitrate=(t-this.loaded)*(1e3/r)*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)Object.prototype.hasOwnProperty.call(e._response,t)&&delete e._response[t];else e._response={}},_onProgress:function(t,n){if(t.lengthComputable){var r,o=Date.now?Date.now():(new Date).getTime();if(n._time&&n.progressInterval&&o-n._time").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),r=t.paramName;return r?e.isArray(r)||(r=[r]):(r=[],n.each((function(){for(var t=e(this),n=t.prop("name")||"files[]",o=(t.prop("files")||[1]).length;o;)r.push(n),o-=1})),r.length||(r=[n.prop("name")||"files[]"])),r},_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,r){var o=e.Deferred(),i=o.promise();return n=n||this.options.context||i,!0===t?o.resolveWith(n,r):!1===t&&o.rejectWith(n,r),i.abort=o.promise,this._enhancePromise(i)},_addConvenienceMethods:function(t,n){var r=this,o=function(t){return e.Deferred().resolveWith(r,t).promise()};n.process=function(t,i){return(t||i)&&(n._processQueue=this._processQueue=(this._processQueue||o([this])).then((function(){return n.errorThrown?e.Deferred().rejectWith(r,[n]).promise():o(arguments)})).then(t,i)),this._processQueue||o([this])},n.submit=function(){return"pending"!==this.state()&&(n.jqXHR=this.jqXHR=!1!==r._trigger("submit",e.Event("submit",{delegatedEvent:t}),this)&&r._onSend(t,this)),this.jqXHR||r._getXHRPromise()},n.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",r._trigger("fail",null,this),r._getXHRPromise(!1))},n.state=function(){return this.jqXHR?r._getDeferredState(this.jqXHR):this._processQueue?r._getDeferredState(this._processQueue):void 0},n.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===r._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("-"),r=n&&n.length>1&&parseInt(n[1],10);return r&&r+1},_chunkedUpload:function(t,n){t.uploadedBytes=t.uploadedBytes||0;var r,o,i=this,a=t.files[0],s=a.size,u=t.uploadedBytes,l=t.maxChunkSize||s,c=this._blobSlice,f=e.Deferred(),p=f.promise();return!(!(this._isXHRUpload(t)&&c&&(u||("function"===e.type(l)?l(t):l)=s?(a.error=t.i18n("uploadedBytes"),this._getXHRPromise(!1,t.context,[null,"error",a.error])):(o=function(){var n=e.extend({},t),p=n._progress.loaded;n.blob=c.call(a,u,u+("function"===e.type(l)?l(n):l),a.type),n.chunkSize=n.blob.size,n.contentRange="bytes "+u+"-"+(u+n.chunkSize-1)+"/"+s,i._trigger("chunkbeforesend",null,n),i._initXHRData(n),i._initProgressListener(n),r=(!1!==i._trigger("chunksend",null,n)&&e.ajax(n)||i._getXHRPromise(!1,n.context)).done((function(r,a,l){u=i._getUploadedBytes(l)||u+n.chunkSize,p+n.chunkSize-n._progress.loaded&&i._onProgress(e.Event("progress",{lengthComputable:!0,loaded:u-n.uploadedBytes,total:u-n.uploadedBytes}),n),t.uploadedBytes=n.uploadedBytes=u,n.result=r,n.textStatus=a,n.jqXHR=l,i._trigger("chunkdone",null,n),i._trigger("chunkalways",null,n),us._sending)for(var r=s._slots.shift();r;){if("pending"===s._getDeferredState(r)){r.resolve();break}r=s._slots.shift()}0===s._active&&s._trigger("stop")}))};return this._beforeSend(t,u),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(i=e.Deferred(),this._slots.push(i),a=i.then(l)):(this._sequence=this._sequence.then(l,l),a=this._sequence),a.abort=function(){return o=[void 0,"abort","abort"],r?r.abort():(i&&i.rejectWith(u.context,o),l())},this._enhancePromise(a)):l()},_onAdd:function(t,n){var r,o,i,a,s=this,u=!0,l=e.extend({},this.options,n),c=n.files,f=c.length,p=l.limitMultiFileUploads,d=l.limitMultiFileUploadSize,h=l.limitMultiFileUploadSizeOverhead,v=0,g=this._getParamName(l),m=0;if(!f)return!1;if(d&&void 0===c[0].size&&(d=void 0),(l.singleFileUploads||p||d)&&this._isXHRUpload(l))if(l.singleFileUploads||d||!p)if(!l.singleFileUploads&&d)for(i=[],r=[],a=0;ad||p&&a+1-m>=p)&&(i.push(c.slice(m,a+1)),(o=g.slice(m,a+1)).length||(o=g),r.push(o),m=a+1,v=0);else r=g;else for(i=[],r=[],a=0;a").append(r)[0].reset(),n.after(r).detach(),o&&r.focus(),e.cleanData(n.off("remove")),this.options.fileInput=this.options.fileInput.map((function(e,t){return t===n[0]?r[0]:t})),n[0]===this.element[0]&&(this.element=r)},_handleFileTreeEntry:function(t,n){var r,o=this,i=e.Deferred(),a=[],s=function(e){e&&!e.entry&&(e.entry=t),i.resolve([e])},u=function(){r.readEntries((function(e){e.length?(a=a.concat(e),u()):function(e){o._handleFileTreeEntries(e,n+t.name+"/").done((function(e){i.resolve(e)})).fail(s)}(a)}),s)};return n=n||"",t.isFile?t._file?(t._file.relativePath=n,i.resolve(t._file)):t.file((function(e){e.relativePath=n,i.resolve(e)}),s):t.isDirectory?(r=t.createReader(),u()):i.resolve([]),i.promise()},_handleFileTreeEntries:function(t,n){var r=this;return e.when.apply(e,e.map(t,(function(e){return r._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,r,o=(t=e(t)).prop("webkitEntries")||t.prop("entries");if(o&&o.length)return this._handleFileTreeEntries(o);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(!(r=t.prop("value")))return e.Deferred().resolve([]).promise();n=[{name:r.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,r={fileInput:e(t.target),form:e(t.target.form)};this._getFileInputFiles(r.fileInput).always((function(o){r.files=o,n.options.replaceFileInput&&n._replaceFileInput(r),!1!==n._trigger("change",e.Event("change",{delegatedEvent:t}),r)&&n._onAdd(t,r)}))},_onPaste:function(t){var n=t.originalEvent&&t.originalEvent.clipboardData&&t.originalEvent.clipboardData.items,r={files:[]};n&&n.length&&(e.each(n,(function(e,t){var n=t.getAsFile&&t.getAsFile();n&&r.files.push(n)})),!1!==this._trigger("paste",e.Event("paste",{delegatedEvent:t}),r)&&this._onAdd(t,r))},_onDrop:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var n=this,r=t.dataTransfer,o={};r&&r.files&&r.files.length&&(t.preventDefault(),this._getDroppedFiles(r).always((function(r){o.files=r,!1!==n._trigger("drop",e.Event("drop",{delegatedEvent:t}),o)&&n._onAdd(t,o)})))},_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")},_destroy:function(){this._destroyEventHandlers()},_setOption:function(t,n){var r=-1!==e.inArray(t,this._specialOptions);r&&this._destroyEventHandlers(),this._super(t,n),r&&(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,r=this.element.data();e.each(this.element[0].attributes,(function(e,o){var i,a=o.name.toLowerCase();/^data-/.test(a)&&(a=a.slice(5).replace(/-[a-z]/g,(function(e){return e.charAt(1).toUpperCase()})),i=r[a],t._isRegExpOption(a,i)&&(i=t._getRegExp(i)),n[a]=i)}))},_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,r,o=this,i=e.Deferred(),a=i.promise();return a.abort=function(){return r=!0,n?n.abort():(i.reject(null,"abort","abort"),a)},this._getFileInputFiles(t.fileInput).always((function(e){r||(e.length?(t.files=e,(n=o._onSend(null,t)).then((function(e,t,n){i.resolve(e,t,n)}),(function(e,t,n){i.reject(e,t,n)}))):i.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){"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,n=e,r="parseJSON";"JSON"in window&&"parse"in JSON&&(n=JSON,r="parse"),e.ajaxTransport("iframe",(function(n){if(n.async){var r,o,i,a=n.initialIframeSrc||"javascript:false;";return{send:function(s,u){(r=e('
')).attr("accept-charset",n.formAcceptCharset),i=/\?/.test(n.url)?"&":"?","DELETE"===n.type?(n.url=n.url+i+"_method=DELETE",n.type="POST"):"PUT"===n.type?(n.url=n.url+i+"_method=PUT",n.type="POST"):"PATCH"===n.type&&(n.url=n.url+i+"_method=PATCH",n.type="POST"),o=e('').on("load",(function(){var t,i=e.isArray(n.paramName)?n.paramName:[n.paramName];o.off("load").on("load",(function(){var t;try{if(!(t=o.contents()).length||!t[0].firstChild)throw new Error}catch(e){t=void 0}u(200,"success",{iframe:t}),e('').appendTo(r),window.setTimeout((function(){r.remove()}),0)})),r.prop("target",o.prop("name")).prop("action",n.url).prop("method",n.type),n.formData&&e.each(n.formData,(function(t,n){e('').prop("name",n.name).val(n.value).appendTo(r)})),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",i[t]||n.paramName)})),r.append(n.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data"),n.fileInput.removeAttr("form")),r.submit(),t&&t.length&&n.fileInput.each((function(n,r){var o=e(t[n]);e(r).prop("name",o.prop("name")).attr("form",o.attr("form")),o.replaceWith(r)}))})),r.append(o).appendTo(document.body)},abort:function(){o&&o.off("load").prop("src",a),r&&r.remove()}}}})),e.ajaxSetup({converters:{"iframe text":function(t){return t&&e(t[0].body).text()},"iframe json":function(t){return t&&n[r](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){var t=new Array,n=new Array;e.fn.doAutosize=function(t){var n=e(this).data("minwidth"),r=e(this).data("maxwidth"),o="",i=e(this),a=e("#"+e(this).data("tester_id"));if(o!==(o=i.val())){var s=o.replace(/&/g,"&").replace(/\s/g," ").replace(//g,">");a.html(s);var u=a.width(),l=u+t.comfortZone>=n?u+t.comfortZone:n;(l=n||l>n&&l").css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:o.css("fontSize"),fontFamily:o.css("fontFamily"),fontWeight:o.css("fontWeight"),letterSpacing:o.css("letterSpacing"),whiteSpace:"nowrap"}),a=e(this).attr("id")+"_autosize_tester";!e("#"+a).length>0&&(i.attr("id",a),i.appendTo("body")),o.data("minwidth",n),o.data("maxwidth",r),o.data("tester_id",a),o.css("width",n)},e.fn.addTag=function(r,o){return o=jQuery.extend({focus:!1,callback:!0},o),this.each((function(){var i=e(this).attr("id"),a=e(this).val().split(t[i]);if(""==a[0]&&(a=new Array),r=jQuery.trim(r),o.unique)1==(s=e(this).tagExist(r))&&e("#"+i+"_tag").addClass("not_valid");else var s=!1;if(""!=r&&1!=s){if(e("").addClass("tag").append(e("").text(r).append("  "),e("",{href:"#",title:"Removing tag",text:"x"}).click((function(){return e("#"+i).removeTag(escape(r))}))).insertBefore("#"+i+"_addTag"),a.push(r),e("#"+i+"_tag").val(""),o.focus?e("#"+i+"_tag").focus():e("#"+i+"_tag").blur(),e.fn.tagsInput.updateTagsField(this,a),o.callback&&n[i]&&n[i].onAddTag)n[i].onAddTag.call(this,r);if(n[i]&&n[i].onChange){var u=a.length;n[i].onChange.call(this,e(this),a[u-1])}}})),!1},e.fn.removeTag=function(r){return r=unescape(r),this.each((function(){var o=e(this).attr("id"),a=e(this).val().split(t[o]);for(e("#"+o+"_tagsinput .tag").remove(),str="",i=0;i=0},e.fn.importTags=function(t){var n=e(this).attr("id");e("#"+n+"_tagsinput .tag").remove(),e.fn.tagsInput.importTags(this,t)},e.fn.tagsInput=function(o){var i=jQuery.extend({interactive:!0,defaultText:"add a tag",minChars:0,width:"300px",height:"100px",autocomplete:{selectFirst:!1},hide:!0,delimiter:",",unique:!0,removeWithBackspace:!0,placeholderColor:"#666666",autosize:!0,comfortZone:20,inputPadding:12},o),a=0;return this.each((function(){if(void 0===e(this).attr("data-tagsinput-init")){e(this).attr("data-tagsinput-init",!0),i.hide&&e(this).hide();var o=e(this).attr("id");o&&!t[e(this).attr("id")]||(o=e(this).attr("id","tags"+(new Date).getTime()+a++).attr("id"));var s=jQuery.extend({pid:o,real_input:"#"+o,holder:"#"+o+"_tagsinput",input_wrapper:"#"+o+"_addTag",fake_input:"#"+o+"_tag"},i);t[o]=s.delimiter,(i.onAddTag||i.onRemoveTag||i.onChange)&&(n[o]=new Array,n[o].onAddTag=i.onAddTag,n[o].onRemoveTag=i.onRemoveTag,n[o].onChange=i.onChange);var u='
';if(i.interactive&&(u=u+''),e(u+='
').insertAfter(this),e(s.holder).css("width",i.width),e(s.holder).css("min-height",i.height),e(s.holder).css("height",i.height),""!=e(s.real_input).val()&&e.fn.tagsInput.importTags(e(s.real_input),e(s.real_input).val()),i.interactive){if(e(s.fake_input).val(e(s.fake_input).attr("data-default")),e(s.fake_input).css("color",i.placeholderColor),e(s.fake_input).resetAutosize(i),e(s.holder).bind("click",s,(function(t){e(t.data.fake_input).focus()})),e(s.fake_input).bind("focus",s,(function(t){e(t.data.fake_input).val()==e(t.data.fake_input).attr("data-default")&&e(t.data.fake_input).val(""),e(t.data.fake_input).css("color","#000000")})),null!=i.autocomplete_url){for(attrname in autocomplete_options={source:i.autocomplete_url},i.autocomplete)autocomplete_options[attrname]=i.autocomplete[attrname];void 0!==jQuery.Autocompleter?(e(s.fake_input).autocomplete(i.autocomplete_url,i.autocomplete),e(s.fake_input).bind("result",s,(function(t,n,r){n&&e("#"+o).addTag(n[0]+"",{focus:!0,unique:i.unique})}))):void 0!==jQuery.ui.autocomplete&&(e(s.fake_input).autocomplete(autocomplete_options),e(s.fake_input).bind("autocompleteselect",s,(function(t,n){return e(t.data.real_input).addTag(n.item.value,{focus:!0,unique:i.unique}),!1})))}else e(s.fake_input).bind("blur",s,(function(t){var n=e(this).attr("data-default");return""!=e(t.data.fake_input).val()&&e(t.data.fake_input).val()!=n?t.data.minChars<=e(t.data.fake_input).val().length&&(!t.data.maxChars||t.data.maxChars>=e(t.data.fake_input).val().length)&&e(t.data.real_input).addTag(e(t.data.fake_input).val(),{focus:!0,unique:i.unique}):(e(t.data.fake_input).val(e(t.data.fake_input).attr("data-default")),e(t.data.fake_input).css("color",i.placeholderColor)),!1}));e(s.fake_input).bind("keypress",s,(function(t){if(r(t))return t.preventDefault(),t.data.minChars<=e(t.data.fake_input).val().length&&(!t.data.maxChars||t.data.maxChars>=e(t.data.fake_input).val().length)&&e(t.data.real_input).addTag(e(t.data.fake_input).val(),{focus:!0,unique:i.unique}),e(t.data.fake_input).resetAutosize(i),!1;t.data.autosize&&e(t.data.fake_input).doAutosize(i)})),s.removeWithBackspace&&e(s.fake_input).bind("keydown",(function(t){if(8==t.keyCode&&""==e(this).val()){t.preventDefault();var n=e(this).closest(".tagsinput").find(".tag:last").text(),r=e(this).attr("id").replace(/_tag$/,"");n=n.replace(/[\s]+x$/,""),e("#"+r).removeTag(escape(n)),e(this).trigger("focus")}})),e(s.fake_input).blur(),s.unique&&e(s.fake_input).keydown((function(t){(8==t.keyCode||String.fromCharCode(t.which).match(/\w+|[áéíóúÁÉÍÓÚñÑ,/]+/))&&e(this).removeClass("not_valid")}))}}})),this},e.fn.tagsInput.updateTagsField=function(n,r){var o=e(n).attr("id");e(n).val(r.join(t[o]))},e.fn.tagsInput.importTags=function(r,o){e(r).val("");var a=e(r).attr("id"),s=o.split(t[a]);for(i=0;i');i.find(r.handle).mousedown((function(){a=!0})).mouseup((function(){a=!1})),e(this).data("items",r.items),n=n.add(u),r.connectWith&&e(r.connectWith).add(this).data("connectWith",r.connectWith),i.attr("draggable","true").on("dragstart.h5s",(function(n){if(r.handle&&!a)return!1;a=!1;var o=n.originalEvent.dataTransfer;o.effectAllowed="move",o.setData("Text","dummy"),s=(t=e(this)).addClass("sortable-dragging").index()})).on("dragend.h5s",(function(){t&&(t.removeClass("sortable-dragging").show(),n.detach(),s!=t.index()&&t.parent().trigger("sortupdate",{item:t}),t=null)})).not("a[href], img").on("selectstart.h5s",(function(){return this.dragDrop&&this.dragDrop(),!1})).end().add([this,u]).on("dragover.h5s dragenter.h5s drop.h5s",(function(o){return!i.is(t)&&r.connectWith!==e(t).parent().data("connectWith")||("drop"==o.type?(o.stopPropagation(),n.filter(":visible").after(t),t.trigger("dragend.h5s"),!1):(o.preventDefault(),o.originalEvent.dataTransfer.dropEffect="move",i.is(this)?(r.forcePlaceholderSize&&u.height(t.outerHeight()),t.hide(),e(this)[u.index()-1}function Pe(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1},Vt.prototype.set=function(e,t){var n=this.__data__,r=Yt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kt.prototype.clear=function(){this.size=0,this.__data__={hash:new zt,map:new(Et||Vt),string:new zt}},Kt.prototype.delete=function(e){var t=sr(this,e).delete(e);return this.size-=t?1:0,t},Kt.prototype.get=function(e){return sr(this,e).get(e)},Kt.prototype.has=function(e){return sr(this,e).has(e)},Kt.prototype.set=function(e,t){var n=sr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Xt.prototype.add=Xt.prototype.push=function(e){return this.__data__.set(e,n),this},Xt.prototype.has=function(e){return this.__data__.has(e)},Qt.prototype.clear=function(){this.__data__=new Vt,this.size=0},Qt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qt.prototype.get=function(e){return this.__data__.get(e)},Qt.prototype.has=function(e){return this.__data__.has(e)},Qt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vt){var r=n.__data__;if(!Et||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kt(r)}return n.set(e,t),this.size=n.size,this};var rn,on,an=(rn=pn,function(e,t){if(null==e)return e;if(!io(e))return rn(e,t);for(var n=e.length,r=on?n:-1,o=Object(e);(on?r--:++r0&&n(s)?t>1?cn(s,t-1,n,r,o):Ae(o,s):r||(o[o.length]=s)}return o}var fn=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}();function pn(e,t){return e&&fn(e,t,Io)}function dn(e,t){return Te(t,(function(t){return uo(e[t])}))}function hn(t,n){for(var r=0,o=(n=qn(n,t)).length;null!=t&&rt}function _n(e,t){return null!=e&&t in Object(e)}function yn(t,n,r){var o=null==(t=wr(t,n=qn(n,t)))?t:t[Sr(Lr(n))];return null==o?e:Oe(o,t,r)}function bn(e){return fo(e)&&gn(e)==u}function wn(t,n,r,o,i){return t===n||(null==t||null==n||!fo(t)&&!fo(n)?t!=t&&n!=n:function(t,n,r,o,i,a){var s=oo(t),d=oo(n),h=s?l:fr(t),_=d?l:fr(n),k=(h=h==u?m:h)==m,j=(_=_==u?m:_)==m,C=h==_;if(C&&so(t)){if(!so(n))return!1;s=!0,k=!1}if(C&&!k)return a||(a=new Qt),s||_o(t)?er(t,n,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!i(new at(e),new at(t)));case c:case f:case g:return no(+e,+t);case p:return e.name==t.name&&e.message==t.message;case y:case w:return e==t+"";case v:var s=$e;case b:var u=1&r;if(s||(s=ze),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var d=er(s(e),s(t),r,o,i,a);return a.delete(e),d;case x:if(Lt)return Lt.call(e)==Lt.call(t)}return!1}(t,n,h,r,o,i,a);if(!(1&r)){var T=k&&Ye.call(t,"__wrapped__"),I=j&&Ye.call(n,"__wrapped__");if(T||I){var P=T?t.value():t,S=I?n.value():n;return a||(a=new Qt),i(P,S,r,o,a)}}if(!C)return!1;return a||(a=new Qt),function(t,n,r,o,i,a){var s=1&r,u=nr(t),l=u.length,c=nr(n).length;if(l!=c&&!s)return!1;var f=l;for(;f--;){var p=u[f];if(!(s?p in n:Ye.call(n,p)))return!1}var d=a.get(t),h=a.get(n);if(d&&h)return d==n&&h==t;var v=!0;a.set(t,n),a.set(n,t);var g=s;for(;++f=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Pn(e,t){return function(e,t,n){var r=-1,o=t.length,i={};for(;++r=200){var l=t?null:Jn(e);if(l)return ze(l);a=!1,o=qe,u=new Xt}else u=t?[]:s;e:for(;++rn||a&&s&&l&&!u&&!c||o&&s&&l||!r&&l||!i)return 1;if(!o&&!a&&!c&&t1?r[i-1]:e,s=i>2?r[2]:e;for(a=t.length>3&&"function"==typeof a?(i--,a):e,s&&vr(r[0],r[1],s)&&(a=i<3?e:a,i=1),n=Object(n);++o1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(q,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return je(s,(function(n){var r="_."+n[0];t&n[1]&&!Ie(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(B);return t?t[1].split($):[]}(r),n)))}(h,t,n)}var Jn=Ct&&1/ze(new Ct([,-0]))[1]==o?function(e){return new Ct(e)}:Ho;function Yn(t){return ho(t)?e:t}function er(t,n,r,o,i,a){var s=1&r,u=t.length,l=n.length;if(u!=l&&!(s&&l>u))return!1;var c=a.get(t),f=a.get(n);if(c&&f)return c==n&&f==t;var p=-1,d=!0,h=2&r?new Xt:e;for(a.set(t,n),a.set(n,t);++p-1&&e%1==0&&eo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}var Cr,Tr,Ir,Pr=(Cr=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(F,(function(e,n,r,o){t.push(r?o.replace(U,"$1"):n||e)})),t},Tr=eo(Cr,(function(e){return 500===Ir.size&&Ir.clear(),e})),Ir=Tr.cache,Tr);function Sr(e){if("string"==typeof e||mo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ar(e){if(null!=e){try{return Je.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Rr(e){if(e instanceof Wt)return e.clone();var t=new Ut(e.__wrapped__,e.__chain__);return t.__actions__=Kn(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Dr(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:wo(n);return o<0&&(o=bt(r+o,0)),Ne(e,ar(t,3),o)}function Nr(e){return(null==e?0:e.length)?cn(e,1):[]}function Mr(t){return t&&t.length?t[0]:e}var Fr=Sn((function(t){var n=Se(t,Hn);return n.length&&n[0]===t[0]?function(t,n,r){for(var o=r?Pe:Ie,i=t[0].length,a=t.length,s=a,u=Array(a),l=1/0,c=[];s--;){var f=t[s];s&&n&&(f=Se(f,He(n))),l=wt(f.length,l),u[s]=!r&&(n||i>=120&&f.length>=120)?new Xt(s&&f):e}f=t[0];var p=-1,d=u[0];e:for(;++p=200&&(i=qe,a=!1,t=new Xt(t));e:for(;++o1||this.__actions__.length)&&o instanceof Wt&&hr(r)?((o=o.slice(r,+r+(n?1:0))).__actions__.push({func:Ur,args:[i],thisArg:e}),new Ut(o,this.__chain__).thru((function(t){return n&&!t.length&&t.push(e),t}))):this.thru(i)}));var Wr,zr=(Wr=Dr,function(t,n,r){var o=Object(t);if(!io(t)){var i=ar(n,3);t=Io(t),n=function(e){return i(o[e],e,o)}}var a=Wr(t,n,r);return a>-1?o[i?t[a]:a]:e});function Vr(e,t){return(oo(e)?je:an)(e,ar(t,3))}var Kr,Xr,Qr=(Kr=function(e,t,n){Ye.call(e,n)?e[n].push(t):tn(e,n,[t])},function(e,t){var n=oo(e)?Ee:en,r=Xr?Xr():{};return n(e,Kr,ar(t,2),r)});var Gr=Sn((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vr(e,t[0],t[1])?t=[]:n>2&&vr(t[0],t[1],t[2])&&(t=[t[0]]),In(e,cn(t,1),[])})),Zr=function(){return ve.Date.now()};function Jr(n,r,o){var i,a,s,u,l,c,f=0,p=!1,d=!1,h=!0;if("function"!=typeof n)throw new TypeError(t);function v(t){var r=i,o=a;return i=a=e,f=t,u=n.apply(o,r)}function g(e){return f=e,l=setTimeout(_,r),p?v(e):u}function m(t){var n=t-c;return c===e||n>=r||n<0||d&&t-f>=s}function _(){var e=Zr();if(m(e))return y(e);l=setTimeout(_,function(e){var t=r-(e-c);return d?wt(t,s-(e-f)):t}(e))}function y(t){return l=e,h&&i?v(t):(i=a=e,u)}function b(){var t=Zr(),n=m(t);if(i=arguments,a=this,c=t,n){if(l===e)return g(c);if(d)return clearTimeout(l),l=setTimeout(_,r),v(c)}return l===e&&(l=setTimeout(_,r)),u}return r=xo(r)||0,co(o)&&(p=!!o.leading,s=(d="maxWait"in o)?bt(xo(o.maxWait)||0,r):s,h="trailing"in o?!!o.trailing:h),b.cancel=function(){l!==e&&clearTimeout(l),f=0,i=c=a=l=e},b.flush=function(){return l===e?u:y(Zr())},b}var Yr=Sn((function(n,r,o){return function(n,r,o){if("function"!=typeof n)throw new TypeError(t);return setTimeout((function(){n.apply(e,o)}),r)}(n,xo(r)||0,o)}));function eo(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new TypeError(t);var r=function(){var t=arguments,o=n?n.apply(this,t):t[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,t);return r.cache=i.set(o,a)||i,a};return r.cache=new(eo.Cache||Kt),r}function to(e){if("function"!=typeof e)throw new TypeError(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function no(e,t){return e===t||e!=e&&t!=t}eo.Cache=Kt;var ro=bn(function(){return arguments}())?bn:function(e){return fo(e)&&Ye.call(e,"callee")&&!ct.call(e,"callee")},oo=Array.isArray;function io(e){return null!=e&&lo(e.length)&&!uo(e)}function ao(e){return fo(e)&&io(e)}var so=_t||Wo;function uo(e){if(!co(e))return!1;var t=gn(e);return t==d||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function lo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function co(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function fo(e){return null!=e&&"object"==typeof e}var po=we?He(we):function(e){return fo(e)&&fr(e)==v};function ho(e){if(!fo(e)||gn(e)!=m)return!1;var t=ut(e);if(null===t)return!0;var n=Ye.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Je.call(n)==nt}var vo=xe?He(xe):function(e){return fo(e)&&fr(e)==b};function go(e){return"string"==typeof e||!oo(e)&&fo(e)&&gn(e)==w}function mo(e){return"symbol"==typeof e||fo(e)&&gn(e)==x}var _o=ke?He(ke):function(e){return fo(e)&&lo(e.length)&&!!ce[gn(e)]};function yo(e){if(!e)return[];if(io(e))return go(e)?Ve(e):Kn(e);if(dt&&e[dt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[dt]());var t=fr(e);return(t==v?$e:t==b?ze:Do)(e)}function bo(e){return e?(e=xo(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function wo(e){var t=bo(e),n=t%1;return t==t?n?t-n:t:0}function xo(e){if("number"==typeof e)return e;if(mo(e))return NaN;if(co(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=co(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Le(e);var n=V.test(e);return n||X.test(e)?pe(e.slice(2),n?2:8):z.test(e)?NaN:+e}function ko(e){return Xn(e,Po(e))}function Oo(e){return null==e?"":Nn(e)}var Eo=Qn((function(e,t){Xn(t,Po(t),e)}));function jo(t,n,r){var o=null==t?e:hn(t,n);return o===e?r:o}function Co(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=qn(t,e)).length,i=!1;++r1),t})),Xn(e,rr(e),n),r&&(n=nn(n,7,Yn));for(var o=t.length;o--;)Fn(n,t[o]);return n})),Ro=tr((function(e,t){return null==e?{}:Pn(e,t)}));function Do(e){return null==e?[]:function(e,t){return Se(t,(function(t){return e[t]}))}(e,Io(e))}function No(e){return function(){return e}}function Mo(e){return e}function Fo(e){return kn("function"==typeof e?e:nn(e,1))}function Lo(e,t,n){var r=Io(t),o=dn(t,r);null!=n||co(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=dn(t,Io(t)));var i=!(co(n)&&"chain"in n&&!n.chain),a=uo(e);return je(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Kn(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ae([this.value()],arguments))})})),e}function Ho(){}function qo(t){return gr(t)?(n=Sr(t),function(t){return null==t?e:t[n]}):function(e){return function(t){return hn(t,e)}}(t);var n}var Bo,$o=function(t){return function(n,r,o){return o&&"number"!=typeof o&&vr(n,r,o)&&(r=o=e),n=bo(n),r===e?(r=n,n=0):r=bo(r),function(e,t,n,r){for(var o=-1,i=bt(gt((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}(n,r,o=o===e?n0||n<0)?new Wt(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=wo(n))<0?r.dropRight(-n):r.take(n-t)),r)},Wt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wt.prototype.toArray=function(){return this.take(a)},pn(Wt.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=qt[o?"take"+("last"==n?"Right":""):n],a=o||/^find/.test(n);i&&(qt.prototype[n]=function(){var n=this.__wrapped__,s=o?[1]:arguments,u=n instanceof Wt,l=s[0],c=u||oo(n),f=function(e){var t=i.apply(qt,Ae([e],s));return o&&p?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,v=u&&!d;if(!a&&c){n=v?n:new Wt(this);var g=t.apply(n,s);return g.__actions__.push({func:Ur,args:[f],thisArg:e}),new Ut(g,p)}return h&&v?t.apply(this,s):(g=this.thru(f),h?o?g.value()[0]:g.value():g)})})),je(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Xe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);qt.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(oo(o)?o:[],e)}return this[n]((function(n){return t.apply(oo(n)?n:[],e)}))}})),pn(Wt.prototype,(function(e,t){var n=qt[t];if(n){var r=n.name+"";Ye.call(St,r)||(St[r]=[]),St[r].push({name:t,func:n})}})),St[function t(n,r,o,i,a,s,u,l,c,f){var p=128&r,d=1&r,h=2&r,v=24&r,g=512&r,m=h?e:Gn(n);return function e(){for(var _=arguments.length,y=Array(_),b=_;b--;)y[b]=arguments[b];if(v)var w=ir(e),x=Be(y,w);if(i&&(y=zn(y,i,a,v)),s&&(y=Vn(y,s,u,v)),_-=x,v&&_1&&y.reverse(),p&&c<_&&(y.length=c),this&&this!==ve&&this instanceof e&&(E=m||Gn(E)),E.apply(O,y)}}(e,2).name]=[{name:"wrapper",func:e}],Wt.prototype.clone=function(){var e=new Wt(this.__wrapped__);return e.__actions__=Kn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Kn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Kn(this.__views__),e},Wt.prototype.reverse=function(){if(this.__filtered__){var e=new Wt(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wt.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=oo(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},qt.prototype.plant=function(t){for(var n,r=this;r instanceof $t;){var o=Rr(r);o.__index__=0,o.__values__=e,n?i.__wrapped__=o:n=o;var i=o;r=r.__wrapped__}return i.__wrapped__=t,n},qt.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Wt){var n=t;return this.__actions__.length&&(n=new Wt(this)),(n=n.reverse()).__actions__.push({func:Ur,args:[Hr],thisArg:e}),new Ut(n,this.__chain__)}return this.thru(Hr)},qt.prototype.toJSON=qt.prototype.valueOf=qt.prototype.value=function(){return Ln(this.__wrapped__,this.__actions__)},qt.prototype.first=qt.prototype.head,dt&&(qt.prototype[dt]=function(){return this}),"function"==typeof define&&"object"==typeof define.amd&&define.amd?(ve._=qt,define((function(){return qt}))):me?((me.exports=qt)._=qt,ge._=qt):ve._=qt}.call(this),function(e,t,n){if(e){for(var r,o={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},i={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},a={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},s={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},u=1;u<20;++u)o[111+u]="f"+u;for(u=0;u<=9;++u)o[u+96]=u.toString();v.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},v.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},v.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},v.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},v.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(h(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},v.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},v.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t]);r=null},v.init=function(){var e=v(t);for(var n in e)"_"!==n.charAt(0)&&(v[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n))},v.init(),e.Mousetrap=v,"undefined"!=typeof module&&module.exports&&(module.exports=v),"function"==typeof define&&define.amd&&define((function(){return v}))}function l(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function c(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return o[e.which]?o[e.which]:i[e.which]?i[e.which]:String.fromCharCode(e.which).toLowerCase()}function f(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function p(e,t,n){return n||(n=function(){if(!r)for(var e in r={},o)e>95&&e<112||o.hasOwnProperty(e)&&(r[o[e]]=e);return r}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function d(e,t){var n,r,o,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o1?m(e,s,t,r):(a=d(e,r),n._callbacks[a.key]=n._callbacks[a.key]||[],p(a.key,a.modifiers,{type:a.action},o,e,i),n._callbacks[a.key][o?"unshift":"push"]({callback:t,modifiers:a.modifiers,action:a.action,seq:o,level:i,combo:e}))}n._handleKey=function(e,t,n){var r,o=p(e,t,n),i={},l=0,c=!1;for(r=0;r").find(">div")).css({margin:0,padding:0,border:0});var i=o.data("jqae");i||(i={});var l=i.originalContent;l?o=i.originalContent.clone(!0).data("jqae",{originalContent:l}).replaceAll(o):o.data("jqae",{originalContent:o.clone(!0)}),t.data("jqae",{wrapperElement:o,containerWidth:t.width(),containerHeight:t.height()});var c=t.height(),f=(parseInt(t.css("padding-top"),10)||0)+(parseInt(t.css("border-top-width"),10)||0)-(o.offset().top-t.offset().top),p=!1,d=o;n.selector&&(d=e(o.find(n.selector).get().reverse())),d.each((function(){var t=e(this),r=t.text(),i=!1;if(o.innerHeight()-t.innerHeight()>c+f)t.remove();else if(u(t),t.contents().length){for(p&&(s(t).get(0).nodeValue+=n.ellipsis,p=!1);o.innerHeight()>c+f;){if(!(i=a(t))){p=!0,t.remove();break}if(u(t),!t.contents().length){p=!0,t.remove();break}s(t).get(0).nodeValue+=n.ellipsis}"onEllipsis"==n.setTitle&&i||"always"==n.setTitle?t.attr("title",r):"never"!=n.setTitle&&t.removeAttr("title")}}))}function a(t){var n=s(t);if(n.length){var r=n.get(0).nodeValue,o=r.lastIndexOf(" ");return o>-1?(r=e.trim(r.substring(0,o)),n.get(0).nodeValue=r):n.get(0).nodeValue="",!0}return!1}function s(e){if(e.contents().length){var t=(n=e.contents()).eq(n.length-1);return t.filter(l).length?t:s(t)}var n;return e.append(""),(n=e.contents()).eq(n.length-1)}function u(t){if(t.contents().length){var n=t.contents(),r=n.eq(n.length-1);if(r.filter(l).length){var o=r.get(0).nodeValue;return""==(o=e.trim(o))&&(r.remove(),!0)}for(;u(r););return!r.contents().length&&(r.remove(),!0)}return!1}function l(){return 3===this.nodeType}e.fn.ellipsis=function(a,s){var u,l,c;return u=e(this),"string"!=typeof a&&(s=a,a=void 0),(l=e.extend({},o,s)).selector=a,u.each((function(){i(e(this),l)})),l.live?function(o,a){n[o]=a,t||(t=window.setInterval((function(){!function(){if(!r){for(var t in r=!0,n)e(t).each((function(){var r,o;(o=(r=e(this)).data("jqae")).containerWidth==r.width()&&o.containerHeight==r.height()||i(r,n[t])}));r=!1}}()}),200))}(u.selector,l):(c=u.selector,n[c]&&(delete n[c],n.length||t&&(window.clearInterval(t),t=void 0))),this}}(jQuery),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.virtualDom=e()}}((function(){return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){var n=t[a][1][e];return o(n||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a * Available under the MIT License * ECMAScript compliant, uniform cross-browser split method */ t.exports=function(e){var t,n=String.prototype.split,r=/()??/.exec("")[1]===e;return t=function(t,o,i){if("[object RegExp]"!==Object.prototype.toString.call(o))return n.call(t,o,i);var a,s,u,l,c=[],f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.extended?"x":"")+(o.sticky?"y":""),p=0;o=new RegExp(o.source,f+"g");for(t+="",r||(a=new RegExp("^"+o.source+"$(?!\\s)",f)),i=i===e?-1>>>0:i>>>0;(s=o.exec(t))&&!((u=s.index+s[0].length)>p&&(c.push(t.slice(p,s.index)),!r&&s.length>1&&s[0].replace(a,(function(){for(var t=1;t1&&s.index=i));)o.lastIndex===s.index&&o.lastIndex++;return p===t.length?!l&&o.test("")||c.push(""):c.push(t.slice(p)),c.length>i?c.slice(0,i):c},t}()},{}],6:[function(e,t,n){},{}],7:[function(e,t,n){"use strict";e("individual/one-version")("ev-store","7");var r="__EV_STORE_KEY@7";t.exports=function(e){var t=e[r];t||(t=e[r]={});return t}},{"individual/one-version":9}],8:[function(e,t,n){(function(e){"use strict";var n="undefined"!=typeof window?window:void 0!==e?e:{};t.exports=function(e,t){if(e in n)return n[e];return n[e]=t,t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,t,n){"use strict";var r=e("./index.js");t.exports=function(e,t,n){var o="__INDIVIDUAL_ONE_VERSION_"+e,i=r(o+"_ENFORCE_SINGLETON",t);if(i!==t)throw new Error("Can only have one copy of "+e+".\nYou already have version "+i+" installed.\nThis means you cannot install version "+t);return r(o,n)}},{"./index.js":8}],10:[function(e,t,n){(function(n){var r=void 0!==n?n:"undefined"!=typeof window?window:{},o=e("min-document");if("undefined"!=typeof document)t.exports=document;else{var i=r["__GLOBAL_DOCUMENT_CACHE@4"];i||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=o),t.exports=i}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":6}],11:[function(e,t,n){"use strict";t.exports=function(e){return"object"==typeof e&&null!==e}},{}],12:[function(e,t,n){var r=Array.isArray,o=Object.prototype.toString;t.exports=r||function(e){return"[object Array]"===o.call(e)}},{}],13:[function(e,t,n){var r=e("./vdom/patch.js");t.exports=r},{"./vdom/patch.js":18}],14:[function(e,t,n){var r=e("is-object"),o=e("../vnode/is-vhook.js");function i(e,t,n,r){if(r){var i=r[t];if(o(i))i.unhook&&i.unhook(e,t,n);else if("attributes"===t)for(var a in i)e.removeAttribute(a);else if("style"===t)for(var s in i)e.style[s]="";else e[t]="string"==typeof i?"":null}}function a(e,t,n,o,i){var a=n?n[o]:void 0;if("attributes"!==o)if(a&&r(a)&&s(a)!==s(i))e[o]=i;else{r(e[o])||(e[o]={});var u="style"===o?"":void 0;for(var l in i){var c=i[l];e[o][l]=void 0===c?u:c}}else for(var f in i){var p=i[f];void 0===p?e.removeAttribute(f):e.setAttribute(f,p)}}function s(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}t.exports=function(e,t,n){for(var s in t){var u=t[s];void 0===u?i(e,s,u,n):o(u)?(i(e,s,u,n),u.hook&&u.hook(e,s,n?n[s]:void 0)):r(u)?a(e,t,n,s,u):e[s]=u}}},{"../vnode/is-vhook.js":26,"is-object":11}],15:[function(e,t,n){var r=e("global/document"),o=e("./apply-properties"),i=e("../vnode/is-vnode.js"),a=e("../vnode/is-vtext.js"),s=e("../vnode/is-widget.js"),u=e("../vnode/handle-thunk.js");t.exports=function e(t,n){var l=n&&n.document||r,c=n?n.warn:null;if(t=u(t).a,s(t))return t.init();if(a(t))return l.createTextNode(t.text);if(!i(t))return c&&c("Item is not a valid virtual dom node",t),null;var f=null===t.namespace?l.createElement(t.tagName):l.createElementNS(t.namespace,t.tagName),p=t.properties;o(f,p);for(var d=t.children,h=0;h>0],i===a)return o>=t&&o<=n;if(on))return!0;a=r-1}}return!1}function a(e,t){return e>t?1:-1}t.exports=function(e,t,n,r){return n&&0!==n.length?(n.sort(a),o(e,t,n,r,0)):{}}},{}],17:[function(e,t,n){var r=e("./apply-properties"),o=e("../vnode/is-widget.js"),i=e("../vnode/vpatch.js"),a=e("./update-widget");function s(e,t){"function"==typeof t.destroy&&o(t)&&t.destroy(e)}t.exports=function(e,t,n){var o=e.type,u=e.vNode,l=e.patch;switch(o){case i.REMOVE:return function(e,t){var n=e.parentNode;n&&n.removeChild(e);return s(e,t),null}(t,u);case i.INSERT:return function(e,t,n){var r=n.render(t,n);e&&e.appendChild(r);return e}(t,l,n);case i.VTEXT:return function(e,t,n,r){var o;if(3===e.nodeType)e.replaceData(0,e.length,n.text),o=e;else{var i=e.parentNode;o=r.render(n,r),i&&o!==e&&i.replaceChild(o,e)}return o}(t,0,l,n);case i.WIDGET:return function(e,t,n,r){var o,i=a(t,n);o=i?n.update(t,e)||e:r.render(n,r);var u=e.parentNode;u&&o!==e&&u.replaceChild(o,e);i||s(e,t);return o}(t,u,l,n);case i.VNODE:return function(e,t,n,r){var o=e.parentNode,i=r.render(n,r);o&&i!==e&&o.replaceChild(i,e);return i}(t,0,l,n);case i.ORDER:return function(e,t){for(var n,r,o,i=e.childNodes,a={},s=0;s=u++?null:i[o.to])}(t,l),t;case i.PROPS:return r(t,l,u.properties),t;case i.THUNK:return function(e,t){e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e);return t}(t,n.patch(t,l,n));default:return t}}},{"../vnode/is-widget.js":29,"../vnode/vpatch.js":32,"./apply-properties":14,"./update-widget":19}],18:[function(e,t,n){var r=e("global/document"),o=e("x-is-array"),i=e("./create-element"),a=e("./dom-index"),s=e("./patch-op");function u(e,t,n){var o=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(t);if(0===o.length)return e;var i=a(e,t.a,o),s=e.ownerDocument;n.document||s===r||(n.document=s);for(var u=0;u=o.length?t.length:o[u],v=0;v=h&&s.push(g)}for(var y,b=s.slice(),w=0,x=[],k=[],O=0;Of?c:f,h=0;h0}});else{var n=[];o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o.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()}},o.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},o.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]}))},o.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},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(e,"resize",this._checkForIntersections,!0),i(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in e&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(e,"resize",this._checkForIntersections,!0),a(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),n=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var i=o.element,a=s(i),u=this._rootContainsTarget(i),l=o.entry,c=t&&u&&this._computeTargetAndRootIntersection(i,n),f=o.entry=new r({time:e.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:n,intersectionRect:c});l?t&&u?this._hasCrossedThreshold(l,f)&&this._queuedEntries.push(f):l&&l.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=e.getComputedStyle(n).display){for(var o,i,a,u,c,f,p,d,h=s(n),v=l(n),g=!1;!g;){var m=null,_=1==v.nodeType?e.getComputedStyle(v):{};if("none"==_.display)return;if(v==this.root||v==t?(g=!0,m=r):v!=t.body&&v!=t.documentElement&&"visible"!=_.overflow&&(m=s(v)),m&&(o=m,i=h,a=void 0,u=void 0,c=void 0,f=void 0,p=void 0,d=void 0,a=Math.max(o.top,i.top),u=Math.min(o.bottom,i.bottom),c=Math.max(o.left,i.left),f=Math.min(o.right,i.right),d=u-a,!(h=(p=f-c)>=0&&d>=0&&{top:a,bottom:u,left:c,right:f,width:p,height:d})))break;v=l(v)}return h}},o.prototype._getRootRect=function(){var e;if(this.root)e=s(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},o.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},o.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o