!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.i=function(e){return e},o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=3)}([function(e,t,o){var n,i,r,a;a=function(e,t){"use strict";var o,n=(o=t)&&o.__esModule?o:{default:o};var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var r=function(){function e(e,t){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,n.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=a},i=[e,o(7)],void 0===(r="function"==typeof(n=a)?n.apply(t,i):n)||(e.exports=r)},function(e,t,o){var n=o(6),i=o(5);e.exports=function(e,t,o){if(!e&&!t&&!o)throw new Error("Missing required arguments");if(!n.string(t))throw new TypeError("Second argument must be a String");if(!n.fn(o))throw new TypeError("Third argument must be a Function");if(n.node(e))return function(e,t,o){return e.addEventListener(t,o),{destroy:function(){e.removeEventListener(t,o)}}}(e,t,o);if(n.nodeList(e))return function(e,t,o){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,o)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,o)})}}}(e,t,o);if(n.string(e))return function(e,t,o){return i(document.body,e,t,o)}(e,t,o);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){function o(){}o.prototype={on:function(e,t,o){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:o}),this},once:function(e,t,o){var n=this;function i(){n.off(e,i),t.apply(o,arguments)}return i._=t,this.on(e,i,o)},emit:function(e){for(var t=[].slice.call(arguments,1),o=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=o.length;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===l(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,a.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return d("action",e)}},{key:"defaultTarget",value:function(e){var t=d("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return d("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return t.forEach(function(e){o=o&&!!document.queryCommandSupported(e)}),o}}]),t}();function d(e,t){var o="data-clipboard-"+e;if(t.hasAttribute(o))return t.getAttribute(o)}e.exports=u},i=[e,o(0),o(2),o(1)],void 0===(r="function"==typeof(n=a)?n.apply(t,i):n)||(e.exports=r)},function(e,t){var o=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&e.nodeType!==o;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,o){var n=o(4);function i(e,t,o,i,r){var a=function(e,t,o,i){return function(o){o.delegateTarget=n(o.target,t),o.delegateTarget&&i.call(e,o)}}.apply(this,arguments);return e.addEventListener(o,a,r),{destroy:function(){e.removeEventListener(o,a,r)}}}e.exports=function(e,t,o,n,r){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof o?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,o,n,r)}))}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var o=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===o||"[object HTMLCollection]"===o)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var o=e.hasAttribute("readonly");o||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),o||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),i=document.createRange();i.selectNodeContents(e),n.removeAllRanges(),n.addRange(i),t=n.toString()}return t}}])}),function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},o=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){s(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,o,n,i){var r=e('
');t&&r.append("

"+t+"

"),o&&r.append("

"+o+"

"),void 0===n&&(n=3e3);var a=function(t){t=t||{},e.blockUI({message:r,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};a();r.css("opacity");r.mouseover(function(){a({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){l(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var r=null,a=[];function s(s,c){var d,h,m=s==window,g=c&&void 0!==c.message?c.message:void 0;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(s).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),d=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),g=void 0===g?c.message:g,m&&r&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var b=g.jquery?g[0]:g,v={};e(s).data("blockUI.history",v),v.el=b,v.parent=b.parentNode,v.display=b.style.display,v.position=b.style.position,v.parent&&v.parent.removeChild(b)}e(s).data("blockUI.onUnblock",c.onUnblock);var y,k,w,x,E=c.baseZ;y=o||c.forceIframe?e(''):e(''),k=c.theme?e(''):e(''),c.theme&&m?(x='"):c.theme?(x='"):x=m?'':'',w=e(x),g&&(c.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(d)),c.theme||k.css(c.overlayCSS),k.css("position",m?"fixed":"absolute"),(o||c.forceIframe)&&y.css("opacity",0);var C=[y,k,w],I=e(m?"body":s);e.each(C,function(){this.appendTo(I)}),c.theme&&c.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var P=i&&(!e.support.boxModel||e("object,embed",m?null:s).length>0);if(n||P){if(m&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(n||!e.support.boxModel)&&!m)var O=p(s,"borderTopWidth"),T=p(s,"borderLeftWidth"),A=O?"(0 - "+O+")":0,S=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)m?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),m?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),S&&o.setExpression("left",S),A&&o.setExpression("top",A);else if(c.centerY)m&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!c.centerY&&m){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';o.setExpression("top",n)}})}if(g&&(c.theme?w.find(".ui-widget-content").append(g):w.append(g),(g.jquery||g.nodeType)&&e(g).show()),(o||c.forceIframe)&&c.showOverlay&&y.show(),c.fadeIn){var _=c.onBlock?c.onBlock:t,M=c.showOverlay&&!g?_:t,U=g?_:t;c.showOverlay&&k._fadeIn(c.fadeIn,M),g&&w._fadeIn(c.fadeIn,U)}else c.showOverlay&&k.show(),g&&w.show(),c.onBlock&&c.onBlock.bind(w)();if(u(1,s,c),m?(r=w[0],a=e(c.focusableElements,r),c.focusInput&&setTimeout(f,20)):function(e,t,o){var n=e.parentNode,i=e.style,r=(n.offsetWidth-e.offsetWidth)/2-p(n,"borderLeftWidth"),a=(n.offsetHeight-e.offsetHeight)/2-p(n,"borderTopWidth");t&&(i.left=r>0?r+"px":"0");o&&(i.top=a>0?a+"px":"0")}(w[0],c.centerX,c.centerY),c.timeout){var j=setTimeout(function(){m?e.unblockUI(c):e(s).unblock(c)},c.timeout);e(s).data("blockUI.timeout",j)}}}function l(t,o){var n,i,s=t==window,l=e(t),d=l.data("blockUI.history"),f=l.data("blockUI.timeout");f&&(clearTimeout(f),l.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),u(0,t,o),null===o.onUnblock&&(o.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),i=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),o.cursorReset&&(i.length>1&&(i[1].style.cursor=o.cursorReset),i.length>2&&(i[2].style.cursor=o.cursorReset)),s&&(r=a=null),o.fadeOut?(n=i.length,i.stop().fadeOut(o.fadeOut,function(){0==--n&&c(i,d,o,t)})):c(i,d,o,t)}function c(t,o,n,i){var r=e(i);if(!r.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),r.removeData("blockUI.history")),r.data("blockUI.static")&&r.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var a=e(document.body),s=a.width(),l=a[0].style.width;a.width(s-1).width(s),a[0].style.width=l}}function u(t,o,n){var i=o==window,a=e(o);if((t||(!i||r)&&(i||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(s,n,d):e(document).unbind(s,d)}}function d(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&r&&t.data.constrainTabKey){var o=a,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){f(i)},10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function f(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function p(t,o){return parseInt(e.css(t,o),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){var t=/\+/g;function o(e){return i.raw?e:encodeURIComponent(e)}function n(o,n){var r=i.raw?o:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(t," ")),i.json?JSON.parse(e):e}catch(e){}}(o);return e.isFunction(n)?n(r):r}var i=e.cookie=function(t,r,a){if(arguments.length>1&&!e.isFunction(r)){if("number"==typeof(a=e.extend({},i.defaults,a)).expires){var s=a.expires,l=a.expires=new Date;l.setMilliseconds(l.getMilliseconds()+864e5*s)}return document.cookie=[o(t),"=",function(e){return o(i.json?JSON.stringify(e):String(e))}(r),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}for(var c,u=t?void 0:{},d=document.cookie?document.cookie.split("; "):[],f=0,p=d.length;f=0;i--)l(e(n[i]),o)}(i)},remove:function(o){var n=d();t||s(n);if(o&&0===e(":focus",o).length)return void f(o);t.children().length&&t.remove()},error:function(e,t,o){return u({type:r.error,iconClass:d().iconClasses.error,message:e,optionsOverride:o,title:t})},getContainer:s,info:function(e,t,o){return u({type:r.info,iconClass:d().iconClasses.info,message:e,optionsOverride:o,title:t})},options:{},subscribe:function(e){o=e},success:function(e,t,o){return u({type:r.success,iconClass:d().iconClasses.success,message:e,optionsOverride:o,title:t})},version:"2.1.2",warning:function(e,t,o){return u({type:r.warning,iconClass:d().iconClasses.warning,message:e,optionsOverride:o,title:t})}};return a;function s(o,n){return o||(o=d()),(t=e("#"+o.containerId)).length?t:(n&&(t=function(o){return(t=e("
").attr("id",o.containerId).addClass(o.positionClass).attr("aria-live","polite").attr("role","alert")).appendTo(e(o.target)),t}(o)),t)}function l(t,o,n){var i=!(!n||!n.force)&&n.force;return!(!t||!i&&0!==e(":focus",t).length)&&(t[o.hideMethod]({duration:o.hideDuration,easing:o.hideEasing,complete:function(){f(t)}}),!0)}function c(e){o&&o(e)}function u(o){var r=d(),a=o.iconClass||r.iconClass;if(void 0!==o.optionsOverride&&(r=e.extend(r,o.optionsOverride),a=o.optionsOverride.iconClass||a),!function(e,t){if(e.preventDuplicates){if(t.message===n)return!0;n=t.message}return!1}(r,o)){i++,t=s(r,!0);var l=null,u=e("
"),p=e("
"),h=e("
"),m=e("
"),g=e(r.closeHtml),b={intervalId:null,hideEta:null,maxHideTime:null},v={toastId:i,state:"visible",startTime:new Date,options:r,map:o};return o.iconClass&&u.addClass(r.toastClass).addClass(a),o.title&&(p.append(r.escapeHtml?y(o.title):o.title).addClass(r.titleClass),u.append(p)),o.message&&(h.append(r.escapeHtml?y(o.message):o.message).addClass(r.messageClass),u.append(h)),r.closeButton&&(g.addClass("toast-close-button").attr("role","button"),u.prepend(g)),r.progressBar&&(m.addClass("toast-progress"),u.prepend(m)),r.newestOnTop?t.prepend(u):t.append(u),u.hide(),u[r.showMethod]({duration:r.showDuration,easing:r.showEasing,complete:r.onShown}),r.timeOut>0&&(l=setTimeout(k,r.timeOut),b.maxHideTime=parseFloat(r.timeOut),b.hideEta=(new Date).getTime()+b.maxHideTime,r.progressBar&&(b.intervalId=setInterval(E,10))),function(){u.hover(x,w),!r.onclick&&r.tapToDismiss&&u.click(k);r.closeButton&&g&&g.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),k(!0)});r.onclick&&u.click(function(e){r.onclick(e),k()})}(),c(v),r.debug&&console&&console.log(v),u}function y(e){return null==e&&(e=""),new String(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function k(t){var o=t&&!1!==r.closeMethod?r.closeMethod:r.hideMethod,n=t&&!1!==r.closeDuration?r.closeDuration:r.hideDuration,i=t&&!1!==r.closeEasing?r.closeEasing:r.hideEasing;if(!e(":focus",u).length||t)return clearTimeout(b.intervalId),u[o]({duration:n,easing:i,complete:function(){f(u),r.onHidden&&"hidden"!==v.state&&r.onHidden(),v.state="hidden",v.endTime=new Date,c(v)}})}function w(){(r.timeOut>0||r.extendedTimeOut>0)&&(l=setTimeout(k,r.extendedTimeOut),b.maxHideTime=parseFloat(r.extendedTimeOut),b.hideEta=(new Date).getTime()+b.maxHideTime)}function x(){clearTimeout(l),b.hideEta=0,u.stop(!0,!0)[r.showMethod]({duration:r.showDuration,easing:r.showEasing})}function E(){var e=(b.hideEta-(new Date).getTime())/b.maxHideTime*100;m.width(e+"%")}}function d(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'',newestOnTop:!0,preventDuplicates:!1,progressBar:!1},a.options)}function f(e){t||(t=s()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),n=void 0))}}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),window.console&&window.console.log||(window.console={log:function(){}}),$(function(){$(document).ajaxError(function(e,t,o){var n="알수없는 오류가 발생하였습니다.";void 0!==t.responseJSON&&void 0!==t.responseJSON.message?n=t.responseJSON.message:500==t.status?n="서버 코드 오류가 발생하였습니다.\n관리자에게 문의하세요":401==t.status&&(n="해당 명령을 실행할 권한이 없습니다."),toastr.error(n,"오류 발생")}).ajaxStart(function(){$.blockUI({css:{width:"25px",top:"49%",left:"49%",border:"0px none",backgroundColor:"transparent",cursor:"wait"},message:'로딩중',baseZ:1e4,overlayCSS:{opacity:0}})}).ajaxComplete(function(){$.unblockUI()})});var APP={POPUP:null,REGEX:{}};APP.REGEX.uniqueID=/^[a-z][a-z0-9_]{2,19}$/g,function(e){APP.POPUP=function(t){var o=e.extend({},{title:"_blank",width:800,height:600,url:""},t);cw=screen.availWidth,ch=screen.availHeight,sw=o.width,sh=o.height,ml=(cw-sw)/2,mt=(ch-sh)/2;t="width="+sw+",height="+sh+",top="+mt+",left="+ml+",scrollbars=yes,resizable=no";var n=window.open(o.url,o.title,t);(null==n||void 0===n||null==n&&0==n.outerWidth||null!=n&&0==n.outerHeight)&&alert("팝업 차단 기능이 설정되어있습니다\n\n차단 기능을 해제(팝업허용) 한 후 다시 이용해 주십시오.")}}(jQuery),APP.SET_LANG=function(e){$.cookie("site_lang",e,{expires:30,path:"/"}),location.reload()},$('[data-toggle="btn-popup-close"]').click(function(e){var t=$(this).data("type"),o=$(this).data("idx"),n=$(this).data("cookie");"Y"==t?window.close():"N"==t&&$("#popup-"+o).remove(),1==n&&$.cookie("popup_"+o,1,{expires:1,path:"/"})}),$("a[data-toggle='sns-share']").not('[data-service="link"]').click(function(e){e.preventDefault();var t=$(this),o=t.data("service"),n=t.data("url"),i=t.data("title"),r="",a=$("meta[name='og:image']").attr("content");if(o&&n&&i){if("facebook"==o)r="//www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(n);else if("twitter"==o)r="//twitter.com/home?status="+encodeURIComponent(i)+" "+n;else if("google"==o)r="//plus.google.com/share?url="+n;else if("pinterest"==o)r="//www.pinterest.com/pin/create/button/?url="+n+"&media="+a+"&description="+encodeURIComponent(i);else if("kakaostory"==o)r="https://story.kakao.com/share?url="+encodeURIComponent(n);else if("band"==o)r="http://www.band.us/plugin/share?body="+encodeURIComponent(i)+"%0A"+encodeURIComponent(n);else if("naver"==o)r="http://share.naver.com/web/shareView.nhn?url="+encodeURIComponent(n)+"&title="+encodeURIComponent(i);else{if("line"!=o)return!1;r="http://line.me/R/msg/text/?"+encodeURIComponent(i+"\n"+n)}return APP.POPUP({url:r}),!1}}),$(function(){new ClipboardJS('a[data-toggle="sns-share"][data-service="link"]',{text:function(e){return e.getAttribute("data-url")}}).on("success",function(){alert("현재 URL이 복사되었습니다.")})}),APP.MEMBER={},APP.MEMBER.init=function(){APP.MEMBER.InitLoginForm(),APP.MEMBER.initCheckExist(),APP.MEMBER.InitRegisterForm(),APP.MEMBER.InitMemberModifyForm()},APP.MEMBER.InitRegisterForm=function(){$('[data-form="form-register"]').submit(function(e){e.preventDefault();var t=$(this);$.ajax({type:"PUT",data:t.serialize(),url:base_url+"/ajax/members/info",success:function(e){1==e.result&&(alert(LANG.member_join_success),location.href=base_url+"/members/login")}})})},APP.MEMBER.InitMemberModifyForm=function(){$('[data-form="form-member-modify"]').submit(function(e){e.preventDefault();var t=$(this);$.ajax({type:"POST",data:t.serialize(),url:base_url+"/ajax/members/info",success:function(e){1==e.result&&(alert(e.message),location.reload())}})})},APP.MEMBER.InitLoginForm=function(){$('[data-role="form-login"]').submit(function(e){e.preventDefault();var t=$(this),o=t.find('[name="login_id"]'),n=t.find('[name="login_pass"]');return""==o.val().trim()?(alert(LANG.member_login_userid_required),o.focus(),!1):""==n.val().trim()?(alert(LANG.member_login_password_required),n.focus(),!1):void $.ajax({url:base_url+"ajax/members/login",type:"POST",data:t.serialize(),success:function(e){1==e.result&&(location.href=e.reurl?e.reurl:base_url)},error:function(e){n.val("")}})})},APP.MEMBER.initCheckExist=function(){$('[data-toggle="check-member-exist"]').each(function(){var e=$(this);e.on("click",function(){var t=$("#"+e.data("target")),o=e.data("check"),n=t.val();if(void 0===n||!n||!n.trim())return alert(LANG.member_join_user_id_required),t.focus(),!1;var i=APP.MEMBER.denyWordCheck(o,n);return"VALID_EMAIL"==i?(alert(LANG.member_join_no_valid_email_address),t.focus(),!1):i?APP.MEMBER.getInfo(o,n)?(alert(LANG.member_join_user_id_already_exists),t.focus(),!1):(alert(LANG.member_join_user_id_available),!0):(alert(LANG.member_join_user_id_contains_deny_word),t.focus(),!1)})})},APP.MEMBER.getInfo=function(e,t){var o=null;return $.ajax({url:base_url+"/ajax/members/info",type:"get",async:!1,cache:!1,data:{key:e,value:t},success:function(e){o=e.result}}),o},APP.MEMBER.denyWordCheck=function(e,t){var o=null;return $.ajax({url:base_url+"/ajax/members/word_check",type:"get",async:!1,cache:!1,data:{key:e,value:t},success:function(e){o=e.result}}),o},APP.MEMBER.POP_CHANGE_PHOTO=function(){APP.POPUP({url:"/members/photo_change",width:600,height:150})},$(document).ready(APP.MEMBER.init),APP.BOARD={},APP.BOARD.CATEGORY={},APP.BOARD.EXTRA={},APP.BOARD.COMMENT={},APP.BOARD.CATEGORY.count=function(e){if(void 0===e||!e)return 0;var t=0;return $.ajax({url:base_url+"/ajax/board/category_count",type:"get",cache:!1,async:!1,data:{bca_idx:e},success:function(e){t=e.result}}),t},APP.BOARD.CATEGORY.postCount=function(e){if(void 0===e||!e)return 0;var t=0;return $.ajax({url:base_url+"/ajax/board/category_post_count",type:"get",cache:!1,async:!1,data:{bca_idx:e},success:function(e){t=e.result}}),t},APP.BOARD.COMMENT.modify=function(e){APP.POPUP({title:"_blank",width:800,height:600,url:base_url+"/board/comment/modify/"+e})},APP.BOARD.COMMENT.reply=function(e,t){APP.POPUP({title:"_blank",width:800,height:600,url:base_url+"/board/comment/reply/"+e+"/"+t})},$(function(){var e=$('[data-form="post"]');e.length>0&&e.on("submit",function(){$.blockUI({css:{width:"25px",top:"49%",left:"49%",border:"0px none",backgroundColor:"transparent",cursor:"wait"},message:'로딩중',baseZ:1e4,overlayCSS:{opacity:0}})})}); //# sourceMappingURL=mobile.min.js.map