function AboutViewModel(e){this.el="#about-app",this.data={can_upgrade:!1,is_loading:!0,version_body:"",version_date:"",version_name:"",version_url:""},this.computed={},this.methods={init:function(){var t=this;$.ajax(e.latest_release_url,{complete:function(){t.is_loading=!1},dataType:"json",error:function(e,t,c){},method:"GET",success:function(e){t.version_body=e.body,t.version_date=e.publish_date,t.version_name=e.name,t.version_url=e.url,t.can_upgrade=e.can_upgrade}})}}}function CreateAlbumViewModel(){this.el="#create-album-app",this.data={is_inherit_permissions:!0,is_private:!1,parent_id:""},this.computed={isParentAlbum:function(){return""==this.parent_id},isPrivateDisabled:function(){return!this.isParentAlbum&&this.is_inherit_permissions}}}function EditAlbumViewModel(){this.el="#edit-album-app",this.data={parent_id:""},this.computed={isParentAlbum:function(){return""==this.parent_id}}}function SettingsViewModel(c,n){this.el="#settings-app",this.data={is_rebuilding_permissions_cache:!1},this.methods={rebuildPermissionsCache:function(e){var t=this;return $.ajax(c.rebuild_permissions_cache,{complete:function(){t.is_rebuilding_permissions_cache=!1},dataType:"json",error:function(e,t,c){alert(n.permissions_cache_rebuild_failed)},method:"POST",success:function(e){alert(n.permissions_cache_rebuild_succeeded)}}),e.preventDefault(),!1}}}function AnalyseAlbumViewModel(){this.el="#analyse-album",this.data={imagesFailed:[],imagesToAnalyse:[],imagesInProgress:[],imagesRecentlyCompleted:[],numberSuccessful:0,numberFailed:0},this.computed={failedPercentage:function(){var e=0;return 0=this.numberTotal},latestCompletedImages:function(){var e=this.imagesRecentlyCompleted.length-3<0?0:this.imagesRecentlyCompleted.length-3,t=3+e;return this.imagesRecentlyCompleted.slice(e,t)},numberTotal:function(){return this.imagesToAnalyse.length},successfulPercentage:function(){var e=0;return 0").attr("name","album_id").addClass("form-control"),n=0;n").attr("value",t[n].id).html(t[n].name).appendTo(c);r===t[n].id&&i.attr("selected","selected")}bootbox.dialog({message:$("

").html(a.change_album_message).prop("outerHTML")+c.prop("outerHTML"),title:a.change_album_title,buttons:{cancel:{label:a.action_cancel,className:"btn-secondary"},confirm:{label:a.action_continue,className:"btn-success",callback:function(){e(this)}}}})},regenerateThumbnails:function(e){this.selectPhotoSingle(e.target);var t=$(e.target).closest(".photo"),c=o.regenerate_thumbnails;return c=c.replace(/\/0$/,"/"+this.photoIDs[0]),$(".loading",t).show(),$.post(c,function(e){$("img.photo-thumbnail",t).attr("src",e.thumbnail_url),$(".loading",t).hide()}),this.photoIDs=[],e.preventDefault(),!1},replacePhoto:function(e){var t=this;this.selectPhotoSingle(e.target);$(e.target).closest(".photo");return bootbox.dialog({message:$("

").html(a.replace_image_message).prop("outerHTML")+$("#replace-image-form").clone().removeAttr("style").attr("id","replace-image-form-visible").prop("outerHTML"),title:a.replace_image_title,buttons:{cancel:{label:a.action_cancel,className:"btn-secondary"},confirm:{label:a.action_continue,className:"btn-success",callback:function(){$('input[name="photo_id"]',"#replace-image-form-visible").val(t.photoIDs[0]),$("#replace-image-form-visible").submit()}}}}),e.preventDefault(),!1},rotate:function(e,t){var c=o.rotate_photo;c=(c=c.replace("/0/","/"+this.photoIDs[0]+"/")).replace(/\/1$/,"/"+e),$(".loading",t).show(),$.post(c,function(e){$("img.photo-thumbnail",t).attr("src",e),$(".loading",t).hide()}),this.photoIDs=[]},rotateLeft:function(e){return this.selectPhotoSingle(e.target),this.rotate(90,$(e.target).closest(".photo")),e.preventDefault(),!1},rotateRight:function(e){return this.selectPhotoSingle(e.target),this.rotate(270,$(e.target).closest(".photo")),e.preventDefault(),!1},selectAll:function(){var e=this;return bootbox.dialog({title:a.select_all_choice_title,message:a.select_all_choice_message,buttons:{select_all:{label:a.select_all_choice_all_action,className:"btn-secondary",callback:function(){for(e.selectAllInAlbum=1,i=0;i=this.images.length&&(e=0),this.current=this.images[e],this.currentIndex=e},startSlideshow:function(){this.images.length<=0||(this.interval=window.setInterval(this.rotateNextImage,n),this.current=this.images[0],this.isRunning=!0)}}}function UploadPhotosViewModel(i,r,a,e){this.el="#upload-tab",this.data={currentStatus:"",imagesFailed:0,imagesTotal:0,imagesUploaded:0,isBulkUploadInProgress:!1,isUploadInProgress:!1,statusMessages:[]},this.computed={failedPercentage:function(){var e=0;return 0=this.imagesTotal&&(this.isUploadInProgress=!1,0===this.imagesFailed&&0'+e[t].params.user_name+"")),e[t].params.photo_name&&e[t].params.photo_url&&(e[t].description=e[t].description.replace(":photo_name",''+e[t].params.photo_name+"")),e[t].params.album_name&&e[t].params.album_url&&(e[t].description=e[t].description.replace(":album_name",''+e[t].params.album_name+"")),e[t].params.app_name&&e[t].params.app_url&&(e[t].description=e[t].description.replace(":app_name",''+e[t].params.app_name+""));c.feed_items=e,c.is_loading=!1})},switchToFeed:function(e){return this.selected_view="feed",history.pushState("","",t.current_url+"?tab=feed"),e.preventDefault(),!1},switchToProfile:function(e){return this.selected_view="profile",history.pushState("","",t.current_url+"?tab=profile"),e.preventDefault(),!1},unFollowUser:function(e){return $.post(t.unfollow_user_url,"",function(e){window.location.reload(!0)}),e.preventDefault(),!1}}}function StorageLocationViewModel(){this.el="#storage-options",this.data={storage_driver:"LocalFilesystemSource"}}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(H,e){"use strict";function m(e){return null!=e&&e===e.window}var t=[],_=H.document,n=Object.getPrototypeOf,o=t.slice,p=t.concat,s=t.push,i=t.indexOf,c={},r=c.toString,g=c.hasOwnProperty,a=g.toString,l=a.call(Object),z={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},h={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,c){var n,i,r=(c=c||_).createElement("script");if(r.text=e,t)for(n in h)(i=t[n]||t.getAttribute&&t.getAttribute(n))&&r.setAttribute(n,i);c.head.appendChild(r).parentNode.removeChild(r)}function M(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[r.call(e)]||"object":typeof e}var u="3.4.1",V=function(e,t){return new V.fn.init(e,t)},f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,c=M(e);return!y(e)&&!m(e)&&("array"===c||0===t||"number"==typeof t&&0>10|55296,1023&n|56320)}function i(){C()}var e,d,b,r,a,v,f,m,M,s,l,C,H,o,_,p,h,g,z,V="sizzle"+ +new Date,y=c.document,L=0,n=0,w=se(),x=se(),S=se(),k=se(),A=function(e,t){return e===t&&(l=!0),0},T={}.hasOwnProperty,t=[],D=t.pop,O=t.push,E=t.push,I=t.slice,N=function(e,t){for(var c=0,n=e.length;c+~]|"+F+")"+F+"*"),U=new RegExp(F+"|>"),K=new RegExp($),Z=new RegExp("^"+R+"$"),G={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ce=/[+~]/,ne=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{E.apply(t=I.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(e){E={apply:t.length?function(e,t){O.apply(e,I.call(t))}:function(e,t){for(var c=e.length,n=0;e[c++]=t[n++];);e.length=c-1}}}function oe(t,e,c,n){var i,r,a,o,s,l,h,u=e&&e.ownerDocument,f=e?e.nodeType:9;if(c=c||[],"string"!=typeof t||!t||1!==f&&9!==f&&11!==f)return c;if(!n&&((e?e.ownerDocument||e:y)!==H&&C(e),e=e||H,_)){if(11!==f&&(s=te.exec(t)))if(i=s[1]){if(9===f){if(!(a=e.getElementById(i)))return c;if(a.id===i)return c.push(a),c}else if(u&&(a=u.getElementById(i))&&z(e,a)&&a.id===i)return c.push(a),c}else{if(s[2])return E.apply(c,e.getElementsByTagName(t)),c;if((i=s[3])&&d.getElementsByClassName&&e.getElementsByClassName)return E.apply(c,e.getElementsByClassName(i)),c}if(d.qsa&&!k[t+" "]&&(!p||!p.test(t))&&(1!==f||"object"!==e.nodeName.toLowerCase())){if(h=t,u=e,1===f&&U.test(t)){for((o=e.getAttribute("id"))?o=o.replace(ie,re):e.setAttribute("id",o=V),r=(l=v(t)).length;r--;)l[r]="#"+o+" "+ye(l[r]);h=l.join(","),u=ce.test(t)&&ge(e.parentNode)||e}try{return E.apply(c,u.querySelectorAll(h)),c}catch(e){k(t,!0)}finally{o===V&&e.removeAttribute("id")}}}return m(t.replace(W,"$1"),e,c,n)}function se(){var c=[];function n(e,t){return c.push(e+" ")>b.cacheLength&&delete n[c.shift()],n[e+" "]=t}return n}function le(e){return e[V]=!0,e}function he(e){var t=H.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var c=e.split("|"),n=c.length;n--;)b.attrHandle[c[n]]=t}function fe(e,t){var c=t&&e,n=c&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(c)for(;c=c.nextSibling;)if(c===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ve(c){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===c}}function me(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function pe(a){return le(function(r){return r=+r,le(function(e,t){for(var c,n=a([],e.length,r),i=n.length;i--;)e[c=n[i]]&&(e[c]=!(t[c]=e[c]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=oe.support={},a=oe.isXML=function(e){var t=e.namespaceURI,c=(e.ownerDocument||e).documentElement;return!Q.test(t||c&&c.nodeName||"HTML")},C=oe.setDocument=function(e){var t,c,n=e?e.ownerDocument||e:y;return n!==H&&9===n.nodeType&&n.documentElement&&(o=(H=n).documentElement,_=!a(H),y!==H&&(c=H.defaultView)&&c.top!==c&&(c.addEventListener?c.addEventListener("unload",i,!1):c.attachEvent&&c.attachEvent("onunload",i)),d.attributes=he(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=he(function(e){return e.appendChild(H.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=ee.test(H.getElementsByClassName),d.getById=he(function(e){return o.appendChild(e).id=V,!H.getElementsByName||!H.getElementsByName(V).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(ne,u);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&_){var c=t.getElementById(e);return c?[c]:[]}}):(b.filter.ID=function(e){var c=e.replace(ne,u);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===c}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&_){var c,n,i,r=t.getElementById(e);if(r){if((c=r.getAttributeNode("id"))&&c.value===e)return[r];for(i=t.getElementsByName(e),n=0;r=i[n++];)if((c=r.getAttributeNode("id"))&&c.value===e)return[r]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var c,n=[],i=0,r=t.getElementsByTagName(e);if("*"!==e)return r;for(;c=r[i++];)1===c.nodeType&&n.push(c);return n},b.find.CLASS=d.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&_)return t.getElementsByClassName(e)},h=[],p=[],(d.qsa=ee.test(H.querySelectorAll))&&(he(function(e){o.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&p.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||p.push("\\["+F+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+V+"-]").length||p.push("~="),e.querySelectorAll(":checked").length||p.push(":checked"),e.querySelectorAll("a#"+V+"+*").length||p.push(".#.+[+~]")}),he(function(e){e.innerHTML="";var t=H.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&p.push("name"+F+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&p.push(":enabled",":disabled"),o.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")})),(d.matchesSelector=ee.test(g=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&he(function(e){d.disconnectedMatch=g.call(e,"*"),g.call(e,"[s!='']:x"),h.push("!=",$)}),p=p.length&&new RegExp(p.join("|")),h=h.length&&new RegExp(h.join("|")),t=ee.test(o.compareDocumentPosition),z=t||ee.test(o.contains)?function(e,t){var c=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(c.contains?c.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return l=!0,0;var c=!e.compareDocumentPosition-!t.compareDocumentPosition;return c||(1&(c=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===c?e===H||e.ownerDocument===y&&z(y,e)?-1:t===H||t.ownerDocument===y&&z(y,t)?1:s?N(s,e)-N(s,t):0:4&c?-1:1)}:function(e,t){if(e===t)return l=!0,0;var c,n=0,i=e.parentNode,r=t.parentNode,a=[e],o=[t];if(!i||!r)return e===H?-1:t===H?1:i?-1:r?1:s?N(s,e)-N(s,t):0;if(i===r)return fe(e,t);for(c=e;c=c.parentNode;)a.unshift(c);for(c=t;c=c.parentNode;)o.unshift(c);for(;a[n]===o[n];)n++;return n?fe(a[n],o[n]):a[n]===y?-1:o[n]===y?1:0}),H},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==H&&C(e),d.matchesSelector&&_&&!k[t+" "]&&(!h||!h.test(t))&&(!p||!p.test(t)))try{var c=g.call(e,t);if(c||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return c}catch(e){k(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ne,u),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,u),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,c=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":c&&K.test(c)&&(t=v(c,!0))&&(t=c.indexOf(")",c.length-t)-c.length)&&(e[0]=e[0].slice(0,t),e[2]=c.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,u).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&w(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(c,n,i){return function(e){var t=oe.attr(e,c);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function k(e,c,n){return y(c)?V.grep(e,function(e,t){return!!c.call(e,t,e)!==n}):c.nodeType?V.grep(e,function(e){return e===c!==n}):"string"!=typeof c?V.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(V.fn.init=function(e,t,c){var n,i;if(!e)return this;if(c=c||A,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==c.ready?c.ready(e):e(V):V.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:T.exec(e))||!n[1]&&t)return!t||t.jquery?(t||c).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof V?t[0]:t,V.merge(this,V.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),S.test(n[1])&&V.isPlainObject(t))for(n in t)y(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(i=_.getElementById(n[2]))&&(this[0]=i,this.length=1),this}).prototype=V.fn,A=V(_);var D=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function E(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}V.fn.extend({has:function(e){var t=V(e,this),c=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i,me={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function pe(e,t){var c;return c=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&x(e,t)?V.merge([e],c):c}function ge(e,t){for(var c=0,n=e.length;cx",z.noCloneChecked=!!ze.cloneNode(!0).lastChild.defaultValue;var Ce=/^key/,He=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_e=/^([^.]*)(?:\.(.+)|)/;function Ve(){return!0}function Le(){return!1}function we(e,t){return e===function(){try{return _.activeElement}catch(e){}}()==("focus"===t)}function xe(e,t,c,n,i,r){var a,o;if("object"==typeof t){for(o in"string"!=typeof c&&(n=n||c,c=void 0),t)xe(e,o,c,n,t[o],r);return e}if(null==n&&null==i?(i=c,n=c=void 0):null==i&&("string"==typeof c?(i=n,n=void 0):(i=n,n=c,c=void 0)),!1===i)i=Le;else if(!i)return e;return 1===r&&(a=i,(i=function(e){return V().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=V.guid++)),e.each(function(){V.event.add(this,t,i,n,c)})}function Se(e,i,r){r?(G.set(e,i,!1),V.event.add(e,i,{namespace:!1,handler:function(e){var t,c,n=G.get(this,i);if(1&e.isTrigger&&this[i]){if(n.length)(V.event.special[i]||{}).delegateType&&e.stopPropagation();else if(n=o.call(arguments),G.set(this,i,n),t=r(this,i),this[i](),n!==(c=G.get(this,i))||t?G.set(this,i,!1):c={},n!==c)return e.stopImmediatePropagation(),e.preventDefault(),c.value}else n.length&&(G.set(this,i,{value:V.event.trigger(V.extend(n[0],V.Event.prototype),n.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===G.get(e,i)&&V.event.add(e,i,Ve)}V.event={global:{},add:function(t,e,c,n,i){var r,a,o,s,l,h,u,f,d,v,m,p=G.get(t);if(p)for(c.handler&&(c=(r=c).handler,i=r.selector),i&&V.find.matchesSelector(ie,i),c.guid||(c.guid=V.guid++),(s=p.events)||(s=p.events={}),(a=p.handle)||(a=p.handle=function(e){return void 0!==V&&V.event.triggered!==e.type?V.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(I)||[""]).length;l--;)d=m=(o=_e.exec(e[l])||[])[1],v=(o[2]||"").split(".").sort(),d&&(u=V.event.special[d]||{},d=(i?u.delegateType:u.bindType)||d,u=V.event.special[d]||{},h=V.extend({type:d,origType:m,data:n,handler:c,guid:c.guid,selector:i,needsContext:i&&V.expr.match.needsContext.test(i),namespace:v.join(".")},r),(f=s[d])||((f=s[d]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,v,a)||t.addEventListener&&t.addEventListener(d,a)),u.add&&(u.add.call(t,h),h.handler.guid||(h.handler.guid=c.guid)),i?f.splice(f.delegateCount++,0,h):f.push(h),V.event.global[d]=!0)},remove:function(e,t,c,n,i){var r,a,o,s,l,h,u,f,d,v,m,p=G.hasData(e)&&G.get(e);if(p&&(s=p.events)){for(l=(t=(t||"").match(I)||[""]).length;l--;)if(d=m=(o=_e.exec(t[l])||[])[1],v=(o[2]||"").split(".").sort(),d){for(u=V.event.special[d]||{},f=s[d=(n?u.delegateType:u.bindType)||d]||[],o=o[2]&&new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=f.length;r--;)h=f[r],!i&&m!==h.origType||c&&c.guid!==h.guid||o&&!o.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(f.splice(r,1),h.selector&&f.delegateCount--,u.remove&&u.remove.call(e,h));a&&!f.length&&(u.teardown&&!1!==u.teardown.call(e,v,p.handle)||V.removeEvent(e,d,p.handle),delete s[d])}else for(d in s)V.event.remove(e,d+t[l],c,n,!0);V.isEmptyObject(s)&&G.remove(e,"handle events")}},dispatch:function(e){var t,c,n,i,r,a,o=V.event.fix(e),s=new Array(arguments.length),l=(G.get(this,"events")||{})[o.type]||[],h=V.event.special[o.type]||{};for(s[0]=o,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/\s*$/g;function Oe(e,t){return x(e,"table")&&x(11!==t.nodeType?t:t.firstChild,"tr")&&V(e).children("tbody")[0]||e}function Ee(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(e,t){var c,n,i,r,a,o,s,l;if(1===t.nodeType){if(G.hasData(e)&&(r=G.access(e),a=G.set(t,r),l=r.events))for(i in delete a.handle,a.events={},l)for(c=0,n=l[i].length;c")},clone:function(e,t,c){var n,i,r,a,o,s,l,h=e.cloneNode(!0),u=re(e);if(!(z.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||V.isXMLDoc(e)))for(a=pe(h),n=0,i=(r=pe(e)).length;n").attr(c.scriptAttrs||{}).prop({charset:c.scriptCharset,src:c.url}).on("load error",i=function(e){n.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),_.head.appendChild(n[0])},abort:function(){i&&i()}}});var cc,nc=[],ic=/(=)\?(?=&|$)|\?\?/;V.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=nc.pop()||V.expando+"_"+Ot++;return this[e]=!0,e}}),V.ajaxPrefilter("json jsonp",function(e,t,c){var n,i,r,a=!1!==e.jsonp&&(ic.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ic.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(ic,"$1"+n):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return r||V.error(n+" was not called"),r[0]},e.dataTypes[0]="json",i=H[n],H[n]=function(){r=arguments},c.always(function(){void 0===i?V(H).removeProp(n):H[n]=i,e[n]&&(e.jsonpCallback=t.jsonpCallback,nc.push(n)),r&&y(i)&&i(r[0]),r=i=void 0}),"script"}),z.createHTMLDocument=((cc=_.implementation.createHTMLDocument("").body).innerHTML="

",2===cc.childNodes.length),V.parseHTML=function(e,t,c){return"string"!=typeof e?[]:("boolean"==typeof t&&(c=t,t=!1),t||(z.createHTMLDocument?((n=(t=_.implementation.createHTMLDocument("")).createElement("base")).href=_.location.href,t.head.appendChild(n)):t=_),r=!c&&[],(i=S.exec(e))?[t.createElement(i[1])]:(i=Me([e],t,r),r&&r.length&&V(r).remove(),V.merge([],i.childNodes)));var n,i,r},V.fn.load=function(e,t,c){var n,i,r,a=this,o=e.indexOf(" ");return-1").append(V.parseHTML(e)).find(n):e)}).always(c&&function(e,t){a.each(function(){c.apply(this,r||[e.responseText,t,e])})}),this},V.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){V.fn[t]=function(e){return this.on(t,e)}}),V.expr.pseudos.animated=function(t){return V.grep(V.timers,function(e){return t===e.elem}).length},V.offset={setOffset:function(e,t,c){var n,i,r,a,o,s,l=V.css(e,"position"),h=V(e),u={};"static"===l&&(e.style.position="relative"),o=h.offset(),r=V.css(e,"top"),s=V.css(e,"left"),i=("absolute"===l||"fixed"===l)&&-1<(r+s).indexOf("auto")?(a=(n=h.position()).top,n.left):(a=parseFloat(r)||0,parseFloat(s)||0),y(t)&&(t=t.call(e,c,V.extend({},o))),null!=t.top&&(u.top=t.top-o.top+a),null!=t.left&&(u.left=t.left-o.left+i),"using"in t?t.using.call(e,u):h.css(u)}},V.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){V.offset.setOffset(this,t,e)});var e,c,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),c=n.ownerDocument.defaultView,{top:e.top+c.pageYOffset,left:e.left+c.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,c,n=this[0],i={top:0,left:0};if("fixed"===V.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),c=n.ownerDocument,e=n.offsetParent||c.documentElement;e&&(e===c.body||e===c.documentElement)&&"static"===V.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((i=V(e).offset()).top+=V.css(e,"borderTopWidth",!0),i.left+=V.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-V.css(n,"marginTop",!0),left:t.left-i.left-V.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===V.css(e,"position");)e=e.offsetParent;return e||ie})}}),V.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var r="pageYOffset"===i;V.fn[t]=function(e){return q(this,function(e,t,c){var n;if(m(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===c)return n?n[i]:e[t];n?n.scrollTo(r?n.pageXOffset:c,r?c:n.pageYOffset):e[t]=c},t,e,arguments.length)}}),V.each(["top","left"],function(e,c){V.cssHooks[c]=Je(z.pixelPosition,function(e,t){if(t)return t=Xe(e,c),Ue.test(t)?V(e).position()[c]+"px":t})}),V.each({Height:"height",Width:"width"},function(a,o){V.each({padding:"inner"+a,content:o,"":"outer"+a},function(n,r){V.fn[r]=function(e,t){var c=arguments.length&&(n||"boolean"!=typeof e),i=n||(!0===e||!0===t?"margin":"border");return q(this,function(e,t,c){var n;return m(e)?0===r.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+a],n["scroll"+a],e.body["offset"+a],n["offset"+a],n["client"+a])):void 0===c?V.css(e,t,i):V.style(e,t,c,i)},o,c?e:void 0,c)}})}),V.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,c){V.fn[c]=function(e,t){return 0this._items.length-1||e<0))if(this._isSliding)v(this._element).one(Y.SLID,function(){return t.to(e)});else{if(c===e)return this.pause(),void this.cycle();var n=c=n.clientWidth&&c>=n.clientHeight}),u=0s[e]&&!n.escapeWithReference&&(c=Math.min(h[t],s[e]-("right"===e?h.width:h.height))),Ue({},t,c)}};return l.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";h=Ke({},h,u[t](e))}),e.offsets.popper=h,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,c=t.popper,n=t.reference,i=e.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(i),o=a?"right":"bottom",s=a?"left":"top",l=a?"width":"height";return c[o]r(n[o])&&(e.offsets.popper[s]=r(n[o])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var c;if(!pt(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],r=e.offsets,a=r.popper,o=r.reference,s=-1!==["left","right"].indexOf(i),l=s?"height":"width",h=s?"Top":"Left",u=h.toLowerCase(),f=s?"left":"top",d=s?"bottom":"right",v=ct(n)[l];o[d]-va[d]&&(e.offsets.popper[u]+=o[u]+v-a[d]),e.offsets.popper=Ze(e.offsets.popper);var m=o[u]+o[l]/2-v/2,p=Ae(e.instance.popper),g=parseFloat(p["margin"+h],10),z=parseFloat(p["border"+h+"Width"],10),y=m-e.offsets.popper[u]-g-z;return y=Math.max(Math.min(a[l]-v,y),0),e.arrowElement=n,e.offsets.arrow=(Ue(c={},u,Math.round(y)),Ue(c,f,""),c),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(p,g){if(ot(p.instance.modifiers,"inner"))return p;if(p.flipped&&p.placement===p.originalPlacement)return p;var z=Je(p.instance.popper,p.instance.reference,g.padding,g.boundariesElement,p.positionFixed),y=p.placement.split("-")[0],b=nt(y),M=p.placement.split("-")[1]||"",C=[];switch(g.behavior){case bt:C=[y,b];break;case Mt:C=yt(y);break;case Ct:C=yt(y,!0);break;default:C=g.behavior}return C.forEach(function(e,t){if(y!==e||C.length===t+1)return p;y=p.placement.split("-")[0],b=nt(y);var c,n=p.offsets.popper,i=p.offsets.reference,r=Math.floor,a="left"===y&&r(n.right)>r(i.left)||"right"===y&&r(n.left)r(i.top)||"bottom"===y&&r(n.top)r(z.right),l=r(n.top)r(z.bottom),u="left"===y&&o||"right"===y&&s||"top"===y&&l||"bottom"===y&&h,f=-1!==["top","bottom"].indexOf(y),d=!!g.flipVariations&&(f&&"start"===M&&o||f&&"end"===M&&s||!f&&"start"===M&&l||!f&&"end"===M&&h),v=!!g.flipVariationsByContent&&(f&&"start"===M&&s||f&&"end"===M&&o||!f&&"start"===M&&h||!f&&"end"===M&&l),m=d||v;(a||u||m)&&(p.flipped=!0,(a||u)&&(y=C[t+1]),m&&(M="end"===(c=M)?"start":"start"===c?"end":c),p.placement=y+(M?"-"+M:""),p.offsets.popper=Ke({},p.offsets.popper,it(p.instance.popper,p.offsets.reference,p.placement)),p=at(p.instance.modifiers,p,"flip"))}),p},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,c=t.split("-")[0],n=e.offsets,i=n.popper,r=n.reference,a=-1!==["left","right"].indexOf(c),o=-1===["top","left"].indexOf(c);return i[a?"left":"top"]=r[c]-(o?i[a?"width":"height"]:0),e.placement=nt(t),e.offsets.popper=Ze(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!pt(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,c=rt(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomc.right||t.top>c.bottom||t.rightdocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Hc,popperConfig:null},Nc="show",Pc="out",Fc={HIDE:"hide"+Sc,HIDDEN:"hidden"+Sc,SHOW:"show"+Sc,SHOWN:"shown"+Sc,INSERTED:"inserted"+Sc,CLICK:"click"+Sc,FOCUSIN:"focusin"+Sc,FOCUSOUT:"focusout"+Sc,MOUSEENTER:"mouseenter"+Sc,MOUSELEAVE:"mouseleave"+Sc},Rc="fade",jc="show",$c=".tooltip-inner",qc=".arrow",Wc="hover",Bc="focus",Yc="click",Uc="manual",Kc=function(){function n(e,t){if(void 0===Vt)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=n.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,c=v(e.currentTarget).data(t);c||(c=new this.constructor(e.currentTarget,this._getDelegateConfig()),v(e.currentTarget).data(t,c)),c._activeTrigger.click=!c._activeTrigger.click,c._isWithActiveTrigger()?c._enter(null,c):c._leave(null,c)}else{if(v(this.getTipElement()).hasClass(jc))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),v.removeData(this.element,this.constructor.DATA_KEY),v(this.element).off(this.constructor.EVENT_KEY),v(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&v(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===v(this.element).css("display"))throw new Error("Please use show on visible elements");var e=v.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){v(this.element).trigger(e);var c=m.findShadowRoot(this.element),n=v.contains(null!==c?c:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!n)return;var i=this.getTipElement(),r=m.getUID(this.constructor.NAME);i.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&v(i).addClass(Rc);var a="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,o=this._getAttachment(a);this.addAttachmentClass(o);var s=this._getContainer();v(i).data(this.constructor.DATA_KEY,this),v.contains(this.element.ownerDocument.documentElement,this.tip)||v(i).appendTo(s),v(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Vt(this.element,i,this._getPopperConfig(o)),v(i).addClass(jc),"ontouchstart"in document.documentElement&&v(document.body).children().on("mouseover",null,v.noop);var l=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,v(t.element).trigger(t.constructor.Event.SHOWN),e===Pc&&t._leave(null,t)};if(v(this.tip).hasClass(Rc)){var h=m.getTransitionDurationFromElement(this.tip);v(this.tip).one(m.TRANSITION_END,l).emulateTransitionEnd(h)}else l()}},e.hide=function(e){function t(){c._hoverState!==Nc&&n.parentNode&&n.parentNode.removeChild(n),c._cleanTipClass(),c.element.removeAttribute("aria-describedby"),v(c.element).trigger(c.constructor.Event.HIDDEN),null!==c._popper&&c._popper.destroy(),e&&e()}var c=this,n=this.getTipElement(),i=v.Event(this.constructor.Event.HIDE);if(v(this.element).trigger(i),!i.isDefaultPrevented()){if(v(n).removeClass(jc),"ontouchstart"in document.documentElement&&v(document.body).children().off("mouseover",null,v.noop),this._activeTrigger[Yc]=!1,this._activeTrigger[Bc]=!1,this._activeTrigger[Wc]=!1,v(this.tip).hasClass(Rc)){var r=m.getTransitionDurationFromElement(n);v(n).one(m.TRANSITION_END,t).emulateTransitionEnd(r)}else t();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){v(this.getTipElement()).addClass(Ac+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||v(this.config.template)[0],this.tip},e.setContent=function(){var e=this.getTipElement();this.setElementContent(v(e.querySelectorAll($c)),this.getTitle()),v(e).removeClass(Rc+" "+jc)},e.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Lc(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?v(t).parent().is(e)||e.empty().append(t):e.text(v(t).text())},e.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e=e||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},e._getPopperConfig=function(e){var t=this;return s({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:qc},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?v(this.config.container):v(document).find(this.config.container)},e._getAttachment=function(e){return Ec[e.toUpperCase()]},e._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)v(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(e){return n.toggle(e)});else if(e!==Uc){var t=e===Wc?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,c=e===Wc?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;v(n.element).on(t,n.config.selector,function(e){return n._enter(e)}).on(c,n.config.selector,function(e){return n._leave(e)})}}),this._hideModalHandler=function(){n.element&&n.hide()},v(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var c=this.constructor.DATA_KEY;(t=t||v(e.currentTarget).data(c))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),v(e.currentTarget).data(c,t)),e&&(t._activeTrigger["focusin"===e.type?Bc:Wc]=!0),v(t.getTipElement()).hasClass(jc)||t._hoverState===Nc?t._hoverState=Nc:(clearTimeout(t._timeout),t._hoverState=Nc,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Nc&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var c=this.constructor.DATA_KEY;(t=t||v(e.currentTarget).data(c))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),v(e.currentTarget).data(c,t)),e&&(t._activeTrigger["focusout"===e.type?Bc:Wc]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Pc,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===Pc&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){var t=v(this.element).data();return Object.keys(t).forEach(function(e){-1!==Dc.indexOf(e)&&delete t[e]}),"number"==typeof(e=s({},this.constructor.Default,{},t,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),m.typeCheckConfig(wc,e,this.constructor.DefaultType),e.sanitize&&(e.template=Lc(e.template,e.whiteList,e.sanitizeFn)),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=v(this.getTipElement()),t=e.attr("class").match(Tc);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(v(e).removeClass(Rc),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},n._jQueryInterface=function(c){return this.each(function(){var e=v(this).data(xc),t="object"==typeof c&&c;if((e||!/dispose|hide/.test(c))&&(e||(e=new n(this,t),v(this).data(xc,e)),"string"==typeof c)){if(void 0===e[c])throw new TypeError('No method named "'+c+'"');e[c]()}})},a(n,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Ic}},{key:"NAME",get:function(){return wc}},{key:"DATA_KEY",get:function(){return xc}},{key:"Event",get:function(){return Fc}},{key:"EVENT_KEY",get:function(){return Sc}},{key:"DefaultType",get:function(){return Oc}}]),n}();v.fn[wc]=Kc._jQueryInterface,v.fn[wc].Constructor=Kc,v.fn[wc].noConflict=function(){return v.fn[wc]=kc,Kc._jQueryInterface};var Zc="popover",Gc="bs.popover",Qc="."+Gc,Xc=v.fn[Zc],Jc="bs-popover",en=new RegExp("(^|\\s)"+Jc+"\\S+","g"),tn=s({},Kc.Default,{placement:"right",trigger:"click",content:"",template:''}),cn=s({},Kc.DefaultType,{content:"(string|element|function)"}),nn="fade",rn="show",an=".popover-header",on=".popover-body",sn={HIDE:"hide"+Qc,HIDDEN:"hidden"+Qc,SHOW:"show"+Qc,SHOWN:"shown"+Qc,INSERTED:"inserted"+Qc,CLICK:"click"+Qc,FOCUSIN:"focusin"+Qc,FOCUSOUT:"focusout"+Qc,MOUSEENTER:"mouseenter"+Qc,MOUSELEAVE:"mouseleave"+Qc},ln=function(e){var t,c;function n(){return e.apply(this,arguments)||this}c=e,(t=n).prototype=Object.create(c.prototype),(t.prototype.constructor=t).__proto__=c;var i=n.prototype;return i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(e){v(this.getTipElement()).addClass(Jc+"-"+e)},i.getTipElement=function(){return this.tip=this.tip||v(this.config.template)[0],this.tip},i.setContent=function(){var e=v(this.getTipElement());this.setElementContent(e.find(an),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(on),t),e.removeClass(nn+" "+rn)},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var e=v(this.getTipElement()),t=e.attr("class").match(en);null!==t&&0=this._offsets[i]&&(void 0===this._offsets[i+1]||e