/*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.0.0
*/
!function(a,b){"use strict";var c,d=a,e=d.document,f=d.navigator,g=d.setTimeout,h=d.Number.parseInt||d.parseInt,i=d.Number.parseFloat||d.parseFloat,j=d.Number.isNaN||d.isNaN,k=d.encodeURIComponent,l=d.Math,m=d.Date,n=d.ActiveXObject,o=d.Array.prototype.slice,p=d.Object.keys,q=d.Object.prototype.hasOwnProperty,r=function(){return"function"==typeof d.Object.defineProperty&&function(){try{var a={};return d.Object.defineProperty(a,"y",{value:"z"}),"z"===a.y}catch(b){return!1}}()?d.Object.defineProperty:void 0}(),s=function(a){return o.call(a,0)},t=function(a,b,c){if("function"==typeof b.indexOf)return b.indexOf(a,c);var d,e=b.length;for("undefined"==typeof c?c=0:0>c&&(c=e+c),d=c;e>d;d++)if(q.call(b,d)&&b[d]===a)return d;return-1},u=function(){var a,c,d,e,f,g,h=s(arguments),i=h[0]||{};for(a=1,c=h.length;c>a;a++)if(null!=(d=h[a]))for(e in d)if(q.call(d,e)){if(f=i[e],g=d[e],i===g)continue;g!==b&&(i[e]=g)}return i},v=function(a){var b,c,d,e;if("object"!=typeof a||null==a)b=a;else if("number"==typeof a.length)for(b=[],c=0,d=a.length;d>c;c++)q.call(a,c)&&(b[c]=v(a[c]));else{b={};for(e in a)q.call(a,e)&&(b[e]=v(a[e]))}return b},w=function(a,b){for(var c={},d=0,e=b.length;e>d;d++)b[d]in a&&(c[b[d]]=a[b[d]]);return c},x=function(a,b){var c={};for(var d in a)-1===t(d,b)&&(c[d]=a[d]);return c},y=function(a){if(null==a)return[];if(p)return p(a);var b=[];for(var c in a)q.call(a,c)&&b.push(c);return b},z=function(a){if(a)for(var b in a)q.call(a,b)&&delete a[b];return a},A=function(a,b){b in a&&"function"==typeof r&&r(a,b,{value:a[b],writable:!1,configurable:!0,enumerable:!0})},B=function(a){return function(){var b;return b=a.now?a.now():(new a).getTime()}}(m),C={bridge:null,version:"0.0.0",pluginType:"unknown",disabled:null,outdated:null,unavailable:null,deactivated:null,overdue:null,ready:null},D="11.0.0",E={},F={},G=null,H={ready:"Flash communication is established",error:{"flash-disabled":"Flash is disabled or not installed","flash-outdated":"Flash is too outdated to support ZeroClipboard","flash-unavailable":"Flash is unable to communicate bidirectionally with JavaScript","flash-deactivated":"Flash is too outdated for your browser and/or is configured as click-to-activate","flash-overdue":"Flash communication was established but NOT within the acceptable time limit"}},I=function(){var a,b,c,d,f="ZeroClipboard.swf";if(!e.currentScript||!(d=e.currentScript.src)){var g=e.getElementsByTagName("script");if("readyState"in g[0])for(a=g.length;a--&&("interactive"!==g[a].readyState||!(d=g[a].src)););else if("loading"===e.readyState)d=g[g.length-1].src;else{for(a=g.length;a--;){if(c=g[a].src,!c){b=null;break}if(c=c.split("#")[0].split("?")[0],c=c.slice(0,c.lastIndexOf("/")+1),null==b)b=c;else if(b!==c){b=null;break}}null!==b&&(d=b)}}return d&&(d=d.split("#")[0].split("?")[0],f=d.slice(0,d.lastIndexOf("/")+1)+f),f}(),J={swfPath:I,trustedDomains:a.location.host?[a.location.host]:[],cacheBust:!0,forceEnhancedClipboard:!1,flashLoadTimeout:3e4,autoActivate:!0,bubbleEvents:!0,containerId:"global-zeroclipboard-html-bridge",containerClass:"global-zeroclipboard-container",swfObjectId:"global-zeroclipboard-flash-bridge",hoverClass:"zeroclipboard-is-hover",activeClass:"zeroclipboard-is-active",forceHandCursor:!1,title:null,zIndex:999999999},K=function(a){if("object"==typeof a&&null!==a)for(var b in a)if(q.call(a,b))if(/^(?:forceHandCursor|title|zIndex|bubbleEvents)$/.test(b))J[b]=a[b];else if(null==C.bridge)if("containerId"===b||"swfObjectId"===b){if(!X(a[b]))throw new Error("The specified `"+b+"` value is not valid as an HTML4 Element ID");J[b]=a[b]}else J[b]=a[b];{if("string"!=typeof a||!a)return v(J);if(q.call(J,a))return J[a]}},L=function(){return{browser:w(f,["userAgent","platform","appName"]),flash:x(C,["bridge"]),zeroclipboard:{version:zb.version,config:zb.config()}}},M=function(){return!!(C.disabled||C.outdated||C.unavailable||C.deactivated)},N=function(a,b){var c,d,e,f={};if("string"==typeof a&&a)e=a.toLowerCase().split(/\s+/);else if("object"==typeof a&&a&&"undefined"==typeof b)for(c in a)q.call(a,c)&&"string"==typeof c&&c&&"function"==typeof a[c]&&zb.on(c,a[c]);if(e&&e.length){for(c=0,d=e.length;d>c;c++)a=e[c].replace(/^on/,""),f[a]=!0,E[a]||(E[a]=[]),E[a].push(b);if(f.ready&&C.ready&&zb.emit({type:"ready"}),f.error){var g=["disabled","outdated","unavailable","deactivated","overdue"];for(c=0,d=g.length;d>c;c++)if(C[g[c]]===!0){zb.emit({type:"error",name:"flash-"+g[c]});break}}}return zb},O=function(a,b){var c,d,e,f,g;if(0===arguments.length)f=y(E);else if("string"==typeof a&&a)f=a.split(/\s+/);else if("object"==typeof a&&a&&"undefined"==typeof b)for(c in a)q.call(a,c)&&"string"==typeof c&&c&&"function"==typeof a[c]&&zb.off(c,a[c]);if(f&&f.length)for(c=0,d=f.length;d>c;c++)if(a=f[c].toLowerCase().replace(/^on/,""),g=E[a],g&&g.length)if(b)for(e=t(b,g);-1!==e;)g.splice(e,1),e=t(b,g,e);else g.length=0;return zb},P=function(a){var b;return b="string"==typeof a&&a?v(E[a])||null:v(E)},Q=function(a){var b,c,d;return a=Y(a),a&&!cb(a)?"ready"===a.type&&C.overdue===!0?zb.emit({type:"error",name:"flash-overdue"}):(b=u({},a),bb.call(this,b),"copy"===a.type&&(d=ib(F),c=d.data,G=d.formatMap),c):void 0},R=function(){if("boolean"!=typeof C.ready&&(C.ready=!1),!zb.isFlashUnusable()&&null===C.bridge){var a=J.flashLoadTimeout;"number"==typeof a&&a>=0&&g(function(){"boolean"!=typeof C.deactivated&&(C.deactivated=!0),C.deactivated===!0&&zb.emit({type:"error",name:"flash-deactivated"})},a),C.overdue=!1,gb()}},S=function(){zb.clearData(),zb.deactivate(),zb.emit("destroy"),hb(),zb.off()},T=function(a,b){var c;if("object"==typeof a&&a&&"undefined"==typeof b)c=a,zb.clearData();else{if("string"!=typeof a||!a)return;c={},c[a]=b}for(var d in c)"string"==typeof d&&d&&q.call(c,d)&&"string"==typeof c[d]&&c[d]&&(F[d]=c[d])},U=function(a){"undefined"==typeof a?(z(F),G=null):"string"==typeof a&&q.call(F,a)&&delete F[a]},V=function(a){if(a&&1===a.nodeType){c&&(qb(c,J.activeClass),c!==a&&qb(c,J.hoverClass)),c=a,pb(a,J.hoverClass);var b=a.getAttribute("title")||J.title;if("string"==typeof b&&b){var d=fb(C.bridge);d&&d.setAttribute("title",b)}var e=J.forceHandCursor===!0||"pointer"===sb(a,"cursor");wb(e),vb()}},W=function(){var a=fb(C.bridge);a&&(a.removeAttribute("title"),a.style.left="0px",a.style.top="-9999px",a.style.width="1px",a.style.top="1px"),c&&(qb(c,J.hoverClass),qb(c,J.activeClass),c=null)},X=function(a){return"string"==typeof a&&a&&/^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(a)},Y=function(a){var b;if("string"==typeof a&&a?(b=a,a={}):"object"==typeof a&&a&&"string"==typeof a.type&&a.type&&(b=a.type),b){u(a,{type:b.toLowerCase(),target:a.target||c||null,relatedTarget:a.relatedTarget||null,currentTarget:C&&C.bridge||null,timeStamp:a.timeStamp||B()||null});var d=H[a.type];return"error"===a.type&&a.name&&d&&(d=d[a.name]),d&&(a.message=d),"ready"===a.type&&u(a,{target:null,version:C.version}),"error"===a.type&&(/^flash-(disabled|outdated|unavailable|deactivated|overdue)$/.test(a.name)&&u(a,{target:null,minimumVersion:D}),/^flash-(outdated|unavailable|deactivated|overdue)$/.test(a.name)&&u(a,{version:C.version})),"copy"===a.type&&(a.clipboardData={setData:zb.setData,clearData:zb.clearData}),"aftercopy"===a.type&&(a=jb(a,G)),a.target&&!a.relatedTarget&&(a.relatedTarget=Z(a.target)),a=$(a)}},Z=function(a){var b=a&&a.getAttribute&&a.getAttribute("data-clipboard-target");return b?e.getElementById(b):null},$=function(a){if(a&&/^_(?:click|mouse(?:over|out|down|up|move))$/.test(a.type)){var c=a.target,f="_mouseover"===a.type&&a.relatedTarget?a.relatedTarget:b,g="_mouseout"===a.type&&a.relatedTarget?a.relatedTarget:b,h=ub(c),i=d.screenLeft||d.screenX||0,j=d.screenTop||d.screenY||0,k=e.body.scrollLeft+e.documentElement.scrollLeft,l=e.body.scrollTop+e.documentElement.scrollTop,m=h.left+("number"==typeof a._stageX?a._stageX:0),n=h.top+("number"==typeof a._stageY?a._stageY:0),o=m-k,p=n-l,q=i+o,r=j+p,s="number"==typeof a.movementX?a.movementX:0,t="number"==typeof a.movementY?a.movementY:0;delete a._stageX,delete a._stageY,u(a,{srcElement:c,fromElement:f,toElement:g,screenX:q,screenY:r,pageX:m,pageY:n,clientX:o,clientY:p,x:o,y:p,movementX:s,movementY:t,offsetX:0,offsetY:0,layerX:0,layerY:0})}return a},_=function(a){var b=a&&"string"==typeof a.type&&a.type||"";return!/^(?:(?:before)?copy|destroy)$/.test(b)},ab=function(a,b,c,d){d?g(function(){a.apply(b,c)},0):a.apply(b,c)},bb=function(a){if("object"==typeof a&&a&&a.type){var b=_(a),c=E["*"]||[],e=E[a.type]||[],f=c.concat(e);if(f&&f.length){var g,h,i,j,k,l=this;for(g=0,h=f.length;h>g;g++)i=f[g],j=l,"string"==typeof i&&"function"==typeof d[i]&&(i=d[i]),"object"==typeof i&&i&&"function"==typeof i.handleEvent&&(j=i,i=i.handleEvent),"function"==typeof i&&(k=u({},a),ab(i,j,[k],b))}return this}},cb=function(a){var b=a.target||c||null,d="swf"===a._source;switch(delete a._source,a.type){case"error":t(a.name,["flash-disabled","flash-outdated","flash-deactivated","flash-overdue"])&&u(C,{disabled:"flash-disabled"===a.name,outdated:"flash-outdated"===a.name,unavailable:"flash-unavailable"===a.name,deactivated:"flash-deactivated"===a.name,overdue:"flash-overdue"===a.name,ready:!1});break;case"ready":var e=C.deactivated===!0;u(C,{disabled:!1,outdated:!1,unavailable:!1,deactivated:!1,overdue:e,ready:!e});break;case"copy":var f,g,h=a.relatedTarget;!F["text/html"]&&!F["text/plain"]&&h&&(g=h.value||h.outerHTML||h.innerHTML)&&(f=h.value||h.textContent||h.innerText)?(a.clipboardData.clearData(),a.clipboardData.setData("text/plain",f),g!==f&&a.clipboardData.setData("text/html",g)):!F["text/plain"]&&a.target&&(f=a.target.getAttribute("data-clipboard-text"))&&(a.clipboardData.clearData(),a.clipboardData.setData("text/plain",f));break;case"aftercopy":zb.clearData(),b&&b!==ob()&&b.focus&&b.focus();break;case"_mouseover":zb.activate(b),J.bubbleEvents===!0&&d&&(db(u({},a,{type:"mouseover"})),db(u({},a,{type:"mouseenter",bubbles:!1})));break;case"_mouseout":zb.deactivate(),J.bubbleEvents===!0&&d&&(db(u({},a,{type:"mouseout"})),db(u({},a,{type:"mouseleave",bubbles:!1})));break;case"_mousedown":pb(b,J.activeClass),J.bubbleEvents===!0&&d&&db(u({},a,{type:a.type.slice(1)}));break;case"_mouseup":qb(b,J.activeClass),J.bubbleEvents===!0&&d&&db(u({},a,{type:a.type.slice(1)}));break;case"_click":case"_mousemove":J.bubbleEvents===!0&&d&&db(u({},a,{type:a.type.slice(1)}))}return/^_(?:click|mouse(?:over|out|down|up|move))$/.test(a.type)?!0:void 0},db=function(a){if(a&&"string"==typeof a.type&&a){var b,c=a.target||a.srcElement||null,f=c&&c.ownerDocument||e,g={view:f.defaultView||d,canBubble:!0,cancelable:!0,detail:"click"===a.type?1:0,button:"number"==typeof a.which?a.which-1:"number"==typeof a.button?a.button:f.createEvent?0:1},h=u(g,a);c&&(f.createEvent&&c.dispatchEvent?(h=[h.type,h.canBubble,h.cancelable,h.view,h.detail,h.screenX,h.screenY,h.clientX,h.clientY,h.ctrlKey,h.altKey,h.shiftKey,h.metaKey,h.button,h.relatedTarget],b=f.createEvent("MouseEvents"),b.initMouseEvent&&(b.initMouseEvent.apply(b,h),c.dispatchEvent(b))):f.createEventObject&&c.fireEvent&&(b=f.createEventObject(h),c.fireEvent("on"+h.type,b)))}},eb=function(){var a=e.createElement("div");return a.id=J.containerId,a.className=J.containerClass,a.style.position="absolute",a.style.left="0px",a.style.top="-9999px",a.style.width="1px",a.style.height="1px",a.style.zIndex=""+xb(J.zIndex),a},fb=function(a){for(var b=a&&a.parentNode;b&&"OBJECT"===b.nodeName&&b.parentNode;)b=b.parentNode;return b||null},gb=function(){var a,b=C.bridge,c=fb(b);if(!b){var f=nb(d.location.host,J),g="never"===f?"none":"all",h=lb(J),i=J.swfPath+kb(J.swfPath,J);c=eb();var j=e.createElement("div");c.appendChild(j),e.body.appendChild(c);var k=e.createElement("div"),l="activex"===C.pluginType;k.innerHTML='',b=k.firstChild,k=null,b.ZeroClipboard=zb,c.replaceChild(b,j)}return b||(b=e[J.swfObjectId],b&&(a=b.length)&&(b=b[a-1]),!b&&c&&(b=c.firstChild)),C.bridge=b||null,b},hb=function(){var a=C.bridge;if(a){var b=fb(a);b&&("activex"===C.pluginType&&"readyState"in a?(a.style.display="none",function c(){if(4===a.readyState){for(var d in a)"function"==typeof a[d]&&(a[d]=null);a.parentNode&&a.parentNode.removeChild(a),b.parentNode&&b.parentNode.removeChild(b)}else g(c,10)}()):(a.parentNode&&a.parentNode.removeChild(a),b.parentNode&&b.parentNode.removeChild(b))),C.ready=null,C.bridge=null,C.deactivated=null}},ib=function(a){var b={},c={};if("object"==typeof a&&a){for(var d in a)if(d&&q.call(a,d)&&"string"==typeof a[d]&&a[d])switch(d.toLowerCase()){case"text/plain":case"text":case"air:text":case"flash:text":b.text=a[d],c.text=d;break;case"text/html":case"html":case"air:html":case"flash:html":b.html=a[d],c.html=d;break;case"application/rtf":case"text/rtf":case"rtf":case"richtext":case"air:rtf":case"flash:rtf":b.rtf=a[d],c.rtf=d}return{data:b,formatMap:c}}},jb=function(a,b){if("object"!=typeof a||!a||"object"!=typeof b||!b)return a;var c={};for(var d in a)if(q.call(a,d)){if("success"!==d&&"data"!==d){c[d]=a[d];continue}c[d]={};var e=a[d];for(var f in e)f&&q.call(e,f)&&q.call(b,f)&&(c[d][b[f]]=e[f])}return c},kb=function(a,b){var c=null==b||b&&b.cacheBust===!0;return c?(-1===a.indexOf("?")?"?":"&")+"noCache="+B():""},lb=function(a){var b,c,e,f,g="",h=[];if(a.trustedDomains&&("string"==typeof a.trustedDomains?f=[a.trustedDomains]:"object"==typeof a.trustedDomains&&"length"in a.trustedDomains&&(f=a.trustedDomains)),f&&f.length)for(b=0,c=f.length;c>b;b++)if(q.call(f,b)&&f[b]&&"string"==typeof f[b]){if(e=mb(f[b]),!e)continue;if("*"===e){h=[e];break}h.push.apply(h,[e,"//"+e,d.location.protocol+"//"+e])}return h.length&&(g+="trustedOrigins="+k(h.join(","))),a.forceEnhancedClipboard===!0&&(g+=(g?"&":"")+"forceEnhancedClipboard=true"),"string"==typeof a.swfObjectId&&a.swfObjectId&&(g+=(g?"&":"")+"swfObjectId="+k(a.swfObjectId)),g},mb=function(a){if(null==a||""===a)return null;if(a=a.replace(/^\s+|\s+$/g,""),""===a)return null;var b=a.indexOf("//");a=-1===b?a:a.slice(b+2);var c=a.indexOf("/");return a=-1===c?a:-1===b||0===c?null:a.slice(0,c),a&&".swf"===a.slice(-4).toLowerCase()?null:a||null},nb=function(){var a=function(a,b){var c,d,e;if(null!=a&&"*"!==b[0]&&("string"==typeof a&&(a=[a]),"object"==typeof a&&"number"==typeof a.length))for(c=0,d=a.length;d>c;c++)if(q.call(a,c)&&(e=mb(a[c]))){if("*"===e){b.length=0,b.push("*");break}-1===t(e,b)&&b.push(e)}};return function(b,c){var d=mb(c.swfPath);null===d&&(d=b);var e=[];a(c.trustedOrigins,e),a(c.trustedDomains,e);var f=e.length;if(f>0){if(1===f&&"*"===e[0])return"always";if(-1!==t(b,e))return 1===f&&b===d?"sameDomain":"always"}return"never"}}(),ob=function(){try{return e.activeElement}catch(a){return null}},pb=function(a,b){if(!a||1!==a.nodeType)return a;if(a.classList)return a.classList.contains(b)||a.classList.add(b),a;if(b&&"string"==typeof b){var c=(b||"").split(/\s+/);if(1===a.nodeType)if(a.className){for(var d=" "+a.className+" ",e=a.className,f=0,g=c.length;g>f;f++)d.indexOf(" "+c[f]+" ")<0&&(e+=" "+c[f]);a.className=e.replace(/^\s+|\s+$/g,"")}else a.className=b}return a},qb=function(a,b){if(!a||1!==a.nodeType)return a;if(a.classList)return a.classList.contains(b)&&a.classList.remove(b),a;if("string"==typeof b&&b){var c=b.split(/\s+/);if(1===a.nodeType&&a.className){for(var d=(" "+a.className+" ").replace(/[\n\t]/g," "),e=0,f=c.length;f>e;e++)d=d.replace(" "+c[e]+" "," ");a.className=d.replace(/^\s+|\s+$/g,"")}}return a},rb=function(){var a=/\-([a-z])/g,b=function(a,b){return b.toUpperCase()};return function(c){return c.replace(a,b)}}(),sb=function(a,b){var c,e,f;return d.getComputedStyle?c=d.getComputedStyle(a,null).getPropertyValue(b):(e=rb(b),c=a.currentStyle?a.currentStyle[e]:a.style[e]),"cursor"!==b||c&&"auto"!==c||(f=a.tagName.toLowerCase(),"a"!==f)?c:"pointer"},tb=function(){var a,b,c,d=1;return"function"==typeof e.body.getBoundingClientRect&&(a=e.body.getBoundingClientRect(),b=a.right-a.left,c=e.body.offsetWidth,d=l.round(b/c*100)/100),d},ub=function(a){var b={left:0,top:0,width:0,height:0};if(a.getBoundingClientRect){var c,f,g,h=a.getBoundingClientRect();"pageXOffset"in d&&"pageYOffset"in d?(c=d.pageXOffset,f=d.pageYOffset):(g=tb(),c=l.round(e.documentElement.scrollLeft/g),f=l.round(e.documentElement.scrollTop/g));var i=e.documentElement.clientLeft||0,j=e.documentElement.clientTop||0;b.left=h.left+c-i,b.top=h.top+f-j,b.width="width"in h?h.width:h.right-h.left,b.height="height"in h?h.height:h.bottom-h.top}return b},vb=function(){var a;if(c&&(a=fb(C.bridge))){var b=ub(c);u(a.style,{width:b.width+"px",height:b.height+"px",top:b.top+"px",left:b.left+"px",zIndex:""+xb(J.zIndex)})}},wb=function(a){C.ready===!0&&(C.bridge&&"function"==typeof C.bridge.setHandCursor?C.bridge.setHandCursor(a):C.ready=!1)},xb=function(a){if(/^(?:auto|inherit)$/.test(a))return a;var b;return"number"!=typeof a||j(a)?"string"==typeof a&&(b=xb(h(a,10))):b=a,"number"==typeof b?b:"auto"},yb=function(a){function b(a){var b=a.match(/[\d]+/g);return b.length=3,b.join(".")}function c(a){return!!a&&(a=a.toLowerCase())&&(/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(a)||"chrome.plugin"===a.slice(-13))}function d(a){a&&(j=!0,a.version&&(m=b(a.version)),!m&&a.description&&(m=b(a.description)),a.filename&&(l=c(a.filename)))}var e,g,h,j=!1,k=!1,l=!1,m="";if(f.plugins&&f.plugins.length)e=f.plugins["Shockwave Flash"],d(e),f.plugins["Shockwave Flash 2.0"]&&(j=!0,m="2.0.0.11");else if(f.mimeTypes&&f.mimeTypes.length)h=f.mimeTypes["application/x-shockwave-flash"],e=h&&h.enabledPlugin,d(e);else if("undefined"!=typeof a){k=!0;try{g=new a("ShockwaveFlash.ShockwaveFlash.7"),j=!0,m=b(g.GetVariable("$version"))}catch(n){try{g=new a("ShockwaveFlash.ShockwaveFlash.6"),j=!0,m="6.0.21"}catch(o){try{g=new a("ShockwaveFlash.ShockwaveFlash"),j=!0,m=b(g.GetVariable("$version"))}catch(p){k=!1}}}}C.disabled=j!==!0,C.outdated=m&&i(m)c;c++)a=e[c].replace(/^on/,""),f[a]=!0,g[a]||(g[a]=[]),g[a].push(b);if(f.ready&&C.ready&&this.emit({type:"ready",client:this}),f.error){var h=["disabled","outdated","unavailable","deactivated","overdue"];for(c=0,d=h.length;d>c;c++)if(C[h[c]]){this.emit({type:"error",name:"flash-"+h[c],client:this});break}}}return this},Hb=function(a,b){var c,d,e,f,g,h=Bb[this.id]&&Bb[this.id].handlers;if(0===arguments.length)f=y(h);else if("string"==typeof a&&a)f=a.split(/\s+/);else if("object"==typeof a&&a&&"undefined"==typeof b)for(c in a)q.call(a,c)&&"string"==typeof c&&c&&"function"==typeof a[c]&&this.off(c,a[c]);if(f&&f.length)for(c=0,d=f.length;d>c;c++)if(a=f[c].toLowerCase().replace(/^on/,""),g=h[a],g&&g.length)if(b)for(e=t(b,g);-1!==e;)g.splice(e,1),e=t(b,g,e);else g.length=0;return this},Ib=function(a){var b=null,c=Bb[this.id]&&Bb[this.id].handlers;return c&&(b="string"==typeof a&&a?c[a]?c[a].slice(0):[]:v(c)),b},Jb=function(a){if(Ob.call(this,a)){"object"==typeof a&&a&&"string"==typeof a.type&&a.type&&(a=u({},a));var b=u({},Y(a),{client:this});Pb.call(this,b)}return this},Kb=function(a){a=Qb(a);for(var b=0;b0,d=!a.target||c&&-1!==t(a.target,b),e=a.relatedTarget&&c&&-1!==t(a.relatedTarget,b),f=a.client&&a.client===this;return d||e||f?!0:!1},Pb=function(a){if("object"==typeof a&&a&&a.type){var b=_(a),c=Bb[this.id]&&Bb[this.id].handlers["*"]||[],e=Bb[this.id]&&Bb[this.id].handlers[a.type]||[],f=c.concat(e);if(f&&f.length){var g,h,i,j,k,l=this;for(g=0,h=f.length;h>g;g++)i=f[g],j=l,"string"==typeof i&&"function"==typeof d[i]&&(i=d[i]),"object"==typeof i&&i&&"function"==typeof i.handleEvent&&(j=i,i=i.handleEvent),"function"==typeof i&&(k=u({},a),ab(i,j,[k],b))}return this}},Qb=function(a){return"string"==typeof a&&(a=[]),"number"!=typeof a.length?[a]:a},Rb=function(a,b,c){return a&&1===a.nodeType?(a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c),a):a},Sb=function(a,b,c){return a&&1===a.nodeType?(a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c),a):a},Tb=function(a){if(a&&1===a.nodeType){var b=function(b){(b||d.event)&&zb.activate(a)};Rb(a,"mouseover",b),Eb[a.zcClippingId]={mouseover:b}}},Ub=function(a){if(a&&1===a.nodeType){var b=Eb[a.zcClippingId];"object"==typeof b&&b&&("function"==typeof b.mouseover&&Sb(a,"mouseover",b.mouseover),delete Eb[a.zcClippingId])}};zb._createClient=function(){Fb.apply(this,s(arguments))},zb.prototype.on=function(){return Gb.apply(this,s(arguments))},zb.prototype.off=function(){return Hb.apply(this,s(arguments))},zb.prototype.handlers=function(){return Ib.apply(this,s(arguments))},zb.prototype.emit=function(){return Jb.apply(this,s(arguments))},zb.prototype.clip=function(){return Kb.apply(this,s(arguments))},zb.prototype.unclip=function(){return Lb.apply(this,s(arguments))},zb.prototype.elements=function(){return Mb.apply(this,s(arguments))},zb.prototype.destroy=function(){return Nb.apply(this,s(arguments))},zb.prototype.setText=function(a){return zb.setData("text/plain",a),this},zb.prototype.setHtml=function(a){return zb.setData("text/html",a),this},zb.prototype.setRichText=function(a){return zb.setData("application/rtf",a),this},zb.prototype.setData=function(){return zb.setData.apply(this,s(arguments)),this},zb.prototype.clearData=function(){return zb.clearData.apply(this,s(arguments)),this},"function"==typeof define&&define.amd?define(function(){return zb}):"object"==typeof module&&module&&"object"==typeof module.exports&&module.exports?module.exports=zb:a.ZeroClipboard=zb}(function(){return this}());
//# sourceMappingURL=ZeroClipboard.min.map